diff --git a/src/main/java/com/github/felipeucelli/javatube/Cipher.java b/src/main/java/com/github/felipeucelli/javatube/Cipher.java index 92bb0a0..00b195d 100644 --- a/src/main/java/com/github/felipeucelli/javatube/Cipher.java +++ b/src/main/java/com/github/felipeucelli/javatube/Cipher.java @@ -19,7 +19,7 @@ public Cipher(String js, String ytPlayerJs) throws Exception { } private static String getInitialFunctionName(String js) throws Exception { String[] functionPattern = { - "(?[a-zA-Z0-9_$]+)\\s*=\\s*function\\(\\s*(?[a-zA-Z0-9_$]+)\\s*\\)\\s*\\{\\s*(\\k)\\s*=\\s*(\\k)\\.split\\(\\s*\\\"\\\"\\s*\\)\\s*;\\s*[^}]+;\\s*return\\s+(\\k)\\.join\\(\\s*\\\"\\\"\\s*\\)\\}", + "(?[a-zA-Z0-9_$]+)\\s*=\\s*function\\(\\s*(?[a-zA-Z0-9_$]+)\\s*\\)\\s*\\{\\s*(\\k)\\s*=\\s*(\\k)\\.split\\(\\s*[a-zA-Z0-9_\\$\"\\[\\]]+\\s*\\)\\s*;\\s*[^}]+;\\s*return\\s+(\\k)\\.join\\(\\s*[a-zA-Z0-9_\\$\"\\[\\]]+\\s*\\)\\}", "\\b[cs]\\s*&&\\s*[adf]\\.set\\([^,]+\\s*,\\s*encodeURIComponent\\s*\\(\\s*([a-zA-Z0-9$]+)\\(", "(?[a-zA-Z0-9$]+)\\s*=\\s*function\\(\\s*(?[a-zA-Z0-9$]+)\\s*\\)\\s*\\{\\s*(?=arg)\\s*=\\s*(?=arg)\\.split\\(\\s*\\\"\\\"\\s*\\)\\s*;\\s*[^}]+;\\s*return\\s+(?=arg)\\.join\\(\\s*\\\"\\\"\\s*\\)", "\\b[a-zA-Z0-9]+\\s*&&\\s*[a-zA-Z0-9]+\\.set\\([^,]+\\s*,\\s*encodeURIComponent\\s*\\(\\s*([a-zA-Z0-9$]+)\\(", @@ -71,7 +71,7 @@ private String getThrottlingFunctionName(String js) throws Exception { // New pattern used in player "2f238d39" on October 10, 2024 // a.D && (b = "nn" [+a.D], zM(a), c = a.j[b] || null) && (c = XDa[0](c), a.set(b, c)) - ";[a-zA-Z]\\.[a-zA-Z]&&\\((?[a-zA-Z])=(?:\\\"nn\\\"|[a-zA-Z0-9]+\\(\\)).*?&&\\((?[a-zA-Z])=(?[a-zA-Z0-9-_$]{3})\\[(?\\d{1})\\].*?[a-zA-Z].set\\(\\k.\\k\\).*?\\}\\};" + ";[a-zA-Z]\\.[a-zA-Z]&&\\((?[a-zA-Z])=(?:\\\"nn\\\"|[a-zA-Z0-9$]+\\(\\)).*?&&\\((?[a-zA-Z])=(?[a-zA-Z0-9-_$]{3})\\[(?\\d{1})\\].*?[a-zA-Z].set\\(\\k.\\k\\).*?\\}\\};" }; for(String pattern : functionPatterns){ diff --git a/src/main/java/com/github/felipeucelli/javatube/JsInterpreter.java b/src/main/java/com/github/felipeucelli/javatube/JsInterpreter.java index 9ec9eaf..03d9f5b 100644 --- a/src/main/java/com/github/felipeucelli/javatube/JsInterpreter.java +++ b/src/main/java/com/github/felipeucelli/javatube/JsInterpreter.java @@ -225,6 +225,17 @@ public class JsInterpreter { private static final String QUOTES = "'\"/"; private int namedObjectCounter = 0; private static final Map> OPERATORS = createOperatorsMap(); + private static final Map> UNARY_OPERATORS_X = createUnaryXOperatorsMap(); + private static final Map> ALL_OPERATORS = mergeOperators(); + + private static Map> mergeOperators() { + Map> mergedMap = new LinkedHashMap<>(); + mergedMap.putAll(OPERATORS); + mergedMap.putAll(UNARY_OPERATORS_X); + return mergedMap; + } + + private static final Object JS_Undefined = new Object(); private static final Map RE_FLAGS = new HashMap<>(); static { @@ -274,6 +285,25 @@ private static Map> createOperatorsMa return OPERATORS; } + private static Map> createUnaryXOperatorsMap() { + Map> OPERATORS = new LinkedHashMap<>(); + + OPERATORS.put("typeof", JsInterpreter::jsTypeof); + + return OPERATORS; + } + + private static Object jsTypeof(Object expr, Object o) { + if (expr == null) return "object"; + if (expr instanceof Boolean) return "boolean"; + if (expr instanceof Number) + return "number"; + if (expr instanceof String) return "string"; + if (expr instanceof Runnable) return "function"; + + return "object"; + } + private static int jsBitOpOr(Object a, Object b) { return zeroise(a) | zeroise(b); } @@ -583,11 +613,11 @@ private Object[] interpretStatement(String stmt, LocalNameSpace localVars, int a String obj = expr.substring(4); if (obj.startsWith("Date(")){ List result = separateAtParen(obj.substring(4), null); - String left = result.get(0).substring(1).replace("\"", ""); + String left = result.get(0).substring(1); String right = result.get(1); DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss.SSSXXX"); - ZonedDateTime zonedDateTime = ZonedDateTime.parse(left, formatter); + ZonedDateTime zonedDateTime = ZonedDateTime.parse((String) interpretExpression(left, localVars, allowRecursion), formatter); Instant instant = zonedDateTime.toInstant(); expr = dump(instant.toEpochMilli(), localVars) + right; @@ -601,6 +631,21 @@ private Object[] interpretStatement(String stmt, LocalNameSpace localVars, int a return new Object[]{0, shouldReturn}; } + + for (String op : UNARY_OPERATORS_X.keySet()) { + if (!expr.startsWith(op)) { + continue; + } + String operand = expr.substring(op.length()); + if (operand.isEmpty() || operand.charAt(0) != ' ') { + continue; + } + Object[] opResult = handleOperators(expr, localVars, allowRecursion); + if (opResult.length > 0) { + return new Object[]{opResult[0], shouldReturn}; + } + } + if (expr.startsWith("{")){ List result = separateAtParen(expr, "}"); String inner = result.get(0).substring(1); @@ -692,7 +737,12 @@ Object[] dictItem(Object key, Object val) throws Exception { List result = separateAtParen(expr.substring(m.end() - 1), null); Object cndn = result.get(0).substring(1); expr = result.get(1); - List result2 = separateAtParen(expr, null); + List result2; + if (expr.startsWith("{")){ + result2 = separateAtParen(expr, null); + }else{ + result2 = separateAtParen(String.format(" %s;", expr), ";"); + } String ifExpr = result2.get(0).substring(1); expr = result2.get(1); String elseExpr = ""; @@ -957,7 +1007,12 @@ Object[] dictItem(Object key, Object val) throws Exception { return new Object[]{Double.NaN, shouldReturn}; }else if(find && m2.group("return") != null){ - return new Object[]{localVars.getValue(m2.group("name")), shouldReturn}; + Object r = localVars.getValue(m2.group("name")); + if (r == null){ + return new Object[]{extractGlobalVar(m2.group("name"), localVars), shouldReturn}; + }else { + return new Object[]{r, shouldReturn}; + } } if (find && m2.group("indexing") != null && m2.start() == 0){ @@ -966,25 +1021,9 @@ Object[] dictItem(Object key, Object val) throws Exception { return new Object[]{index(val, idx, false), shouldReturn}; } - for(String op : OPERATORS.keySet()){ - List separated = _separate(expr, op, null); - StringBuilder rightExpr = new StringBuilder(separated.remove(separated.size() - 1)); - while (true){ - if ((op.equals("?") || op.equals("<") || op.equals(">") || op.equals("*") || op.equals("-")) && separated.size() > 1 && separated.get(separated.size() - 1).isEmpty()){ - separated.remove(separated.size() - 1); - }else if (!(!separated.isEmpty() && op.equals("?") && rightExpr.toString().startsWith("."))){ - break; - } - rightExpr.insert(0, op); - if (!op.equals("-")){ - rightExpr.insert(0, separated.remove(separated.size() - 1) + op); - } - } - if (separated.isEmpty()){ - continue; - } - Object leftVal = interpretExpression(String.join(op, separated), localVars, allowRecursion); - return new Object[]{operator(op, leftVal, rightExpr.toString(), expr, localVars, allowRecursion), shouldReturn}; + Object[] opResult = handleOperators(expr, localVars, allowRecursion); + if(opResult.length > 0){ + return new Object[]{opResult[0], shouldReturn}; } try{ @@ -1105,7 +1144,7 @@ Object evalMethod() throws Exception { assert obj != null; String arg = (String) argvals.get(0); - return new ArrayList<>(Arrays.asList(((String) obj).split(arg))); + return new ArrayList<>(Arrays.asList(((String) obj).split(Pattern.quote(arg)))); } case "join" -> { assertion(obj instanceof List, "must be applied on a list"); @@ -1245,6 +1284,18 @@ Object evalMethod() throws Exception { } throw new Exception("Unsupported JS expression: " + expr); } + + private Object extractGlobalVar(String var, LocalNameSpace localVars) { + Matcher matcher = Pattern.compile("var\\s?" + Pattern.quote(var) + "=(?.*?)[,;]").matcher(code); + if (matcher.find()){ + Object code = matcher.group("var"); + localVars.put(var, code); + return code; + }else { + return null; + } + } + private Object extractObject(String objName) throws Exception { Map obj = new HashMap<>(); Pattern pattern = Pattern.compile("(?x)" + @@ -1293,6 +1344,30 @@ private static int customIndexOf(List list, Object value, int start) { return -1; } + private Object[] handleOperators(String expr, LocalNameSpace localVars, int allowRecursion) throws Exception { + for(String op : ALL_OPERATORS.keySet()){ + List separated = _separate(expr, op, null); + StringBuilder rightExpr = new StringBuilder(separated.remove(separated.size() - 1)); + while (true){ + if ((op.equals("?") || op.equals("<") || op.equals(">") || op.equals("*") || op.equals("-")) && separated.size() > 1 && separated.get(separated.size() - 1).isEmpty()){ + separated.remove(separated.size() - 1); + }else if (!(!separated.isEmpty() && op.equals("?") && rightExpr.toString().startsWith("."))){ + break; + } + rightExpr.insert(0, op); + if (!op.equals("-")){ + rightExpr.insert(0, separated.remove(separated.size() - 1) + op); + } + } + if (separated.isEmpty()){ + continue; + } + Object leftVal = interpretExpression(String.join(op, separated), localVars, allowRecursion); + return new Object[]{operator(op, leftVal, rightExpr.toString(), expr, localVars, allowRecursion), true}; + } + return new Object[]{}; + } + private Object operator(String op, Object leftVal, Object rightExpr, String expr, LocalNameSpace localVars, int allowRecursion) throws Exception { if(Objects.equals(op, "||") || Objects.equals(op, "&&")){ if((Objects.equals(op, "&&") ^ (boolean) jsTernary(leftVal, true, false))){ @@ -1454,7 +1529,35 @@ private Map extractFunctionCode(String funName) throws Exception return r; } - private String fixup_n_function_code(String[] argnames, String code){ + private String extractPlayerJsGlobalVar(String jsCode){ + Pattern pattern1 = Pattern.compile(""" + (?x) + (?[\\"\\'])use\\s+strict(\\k);\\s* + (? + var\\s+(?[a-zA-Z0-9_$]+)\\s*=\\s* + (? + (?[\\"\\'])(?:(?!(\\k)).|\\.)+(\\k) + \\.split\\((?[\\"\\'])(?:(?!(\\k)).)+(\\k)\\) + |\\[\\s*(?:(?[\\"\\'])(?:(?!(\\k)).|\\.)*(\\k)\\s*,?\\s*)+\\] + ) + )[;,] + """); + Matcher matcher = pattern1.matcher(jsCode); + if (matcher.find()){ + String value = matcher.group("value"); + String code = matcher.group("code"); + return code; + } + else { + return null; + } + } + + private String fixup_n_function_code(String[] argnames, String code, String fullCode){ + String globalVar = extractPlayerJsGlobalVar(fullCode); + if (globalVar != null){ + code = globalVar + "; " + code; + } String regex = ";\\s*if\\s*\\(\\s*typeof\\s+[a-zA-Z0-9_$]+\\s*===?\\s*(['\"])undefined\\1\\s*\\)\\s*return\\s+" + Pattern.quote(argnames[0]) + ";"; Pattern pattern = Pattern.compile(regex); Matcher matcher = pattern.matcher(code); @@ -1465,7 +1568,7 @@ private String fixup_n_function_code(String[] argnames, String code){ private FunctionWithRepr extractFuName(String funName) throws Exception { Map code = extractFunctionCode(funName); - Object obj = extractFunctionFromCode(List.of(code.get("args").split(",")), fixup_n_function_code(code.get("args").split(","), code.get("code")), new HashMap<>()); + Object obj = extractFunctionFromCode(List.of(code.get("args").split(",")), fixup_n_function_code(code.get("args").split(","), code.get("code"), this.code), new HashMap<>()); return new FunctionWithRepr(obj, "F<" + funName +">"); } public Object callFunction(String funName, Object arg) throws Exception { diff --git a/src/test/java/com/github/felipeucelli/javatube/CipherTest.java b/src/test/java/com/github/felipeucelli/javatube/CipherTest.java index 518ed74..1041b4d 100644 --- a/src/test/java/com/github/felipeucelli/javatube/CipherTest.java +++ b/src/test/java/com/github/felipeucelli/javatube/CipherTest.java @@ -36,7 +36,9 @@ static java.util.stream.Stream fileNames() { "b7240855-player_ias.vflset-en_US.txt", "3bb1f723-player_ias.vflset-en_US.txt", "2f1832d2-player_ias.vflset-en_US.txt", - "f3d47b5a-player_ias.vflset-en_US.txt" + "f3d47b5a-player_ias.vflset-en_US.txt", + "e7567ecf-player_ias_tce.vflset-en_US.txt", + "91201489-player_ias_tce.vflset-en_US.txt" ); } private String readFileContent(String fileName) throws IOException { @@ -87,6 +89,8 @@ private String getNSigFunName(String fileName) { case "3bb1f723-player_ias.vflset-en_US.txt" -> "fyn"; case "2f1832d2-player_ias.vflset-en_US.txt" -> "dCH"; case "f3d47b5a-player_ias.vflset-en_US.txt" -> "xyN"; + case "e7567ecf-player_ias_tce.vflset-en_US.txt" -> "X_S"; + case "91201489-player_ias_tce.vflset-en_US.txt" -> "K48"; default -> ""; }; } @@ -111,6 +115,8 @@ private String getSigFunName(String fileName) { case "3bb1f723-player_ias.vflset-en_US.txt" -> "pen"; case "2f1832d2-player_ias.vflset-en_US.txt" -> "B_H"; case "f3d47b5a-player_ias.vflset-en_US.txt" -> "ouU"; + case "e7567ecf-player_ias_tce.vflset-en_US.txt" -> "$oW"; + case "91201489-player_ias_tce.vflset-en_US.txt" -> "N4a"; default -> ""; }; } diff --git a/src/test/java/com/github/felipeucelli/javatube/JsInterpreterTest.java b/src/test/java/com/github/felipeucelli/javatube/JsInterpreterTest.java index 8bdddf2..22c6fb9 100644 --- a/src/test/java/com/github/felipeucelli/javatube/JsInterpreterTest.java +++ b/src/test/java/com/github/felipeucelli/javatube/JsInterpreterTest.java @@ -37,7 +37,10 @@ static Stream fileNames() { "20dfca59-player_ias.vflset-en_US.txt", "b12cc44b-player_ias.vflset-en_US.txt", "3bb1f723-player_ias.vflset-en_US.txt", - "2f1832d2-player_ias.vflset-en_US.txt" + "2f1832d2-player_ias.vflset-en_US.txt", + "e7567ecf-player_ias_tce.vflset-en_US.txt", + "74e4bb46-player_ias_tce.vflset-en_US.txt", + "4fcd6e4a-player_ias.vflset-en_US.txt" ); } private String readFileContent(String fileName) throws IOException { @@ -112,6 +115,9 @@ private List getNSigParams(String fileName) { case "b12cc44b-player_ias.vflset-en_US.txt" -> List.of("FnDBX5UEM1NHNyr", "Ema", "70QzMb0nhneLLS6BN"); case "3bb1f723-player_ias.vflset-en_US.txt" -> List.of("-zeqduSAj2ON5", "fyn", "70QzMb0nhneLLS6BN"); case "2f1832d2-player_ias.vflset-en_US.txt" -> List.of("e7hn0bMSQ", "B_H", "70QzMb0nhneLLS6BN"); + case "e7567ecf-player_ias_tce.vflset-en_US.txt" -> List.of("eGJT0Dt7IGpKgk", "X_S", "70QzMb0nhneLLS6BN"); + case "74e4bb46-player_ias_tce.vflset-en_US.txt" -> List.of("YRvnhiNcKsUj", "Bzs", "70QzMb0nhneLLS6BN"); + case "4fcd6e4a-player_ias.vflset-en_US.txt" -> List.of("DtBH24Jm4Vu4ga", "gGu", "70QzMb0nhneLLS6BN"); default -> List.of("", "", ""); }; } @@ -148,6 +154,9 @@ private List getSigParams(String fileName) { case "b12cc44b-player_ias.vflset-en_US.txt" -> List.of("EJ8wRAIgINWRWqXhcJg0Am3IRnTm5qrUo93yib6IL45hGtp70P4CQEFnKG9FWGINGP6ymEHCqjN_Orw5jK63ReERDDoOU", "PBa", "AOq0QJ8wRAIgINWRWqXhcJg0Em3IRnTm5qrUo93yib6IL45hGtp70P4CIEFnKG9FWGINGP6ymEHCqjN_Orw5jK63ReERDDogUxTO"); case "3bb1f723-player_ias.vflset-en_US.txt" -> List.of("iwR8IgIN5RWqXhcJg0Em3IRATm5qrUo93yAb6IL40hGtp70P4CIEFnKG9FWGINGP6ymEHCqjN_Orw5jK63ReERDDogUxTO", "pen", "AOq0QJ8wRAIgINWRWqXhcJg0Em3IRnTm5qrUo93yib6IL45hGtp70P4CIEFnKG9FWGINGP6ymEHCqjN_Orw5jK63ReERDDogUxTO"); case "2f1832d2-player_ias.vflset-en_US.txt" -> List.of("KpC5ut2EHrCarJWeXtsVBjE-IM3YQwOpfz8kcrr8emyEL62UySqmFPy6MPf8wVOXd41yKQhDHvEx_8f-Gu75ltKNohkk-", "dCH", "AOq0QJ8wRAIgINWRWqXhcJg0Em3IRnTm5qrUo93yib6IL45hGtp70P4CIEFnKG9FWGINGP6ymEHCqjN_Orw5jK63ReERDDogUxTO"); + case "e7567ecf-player_ias_tce.vflset-en_US.txt" -> List.of("UgoDDREOR36Kj5wrO_NjqCHEmy6PGNIGWF9GKnFEIC4P0eptGh54LI6biy39oUrq5mTnRI3mE0gJchXqWRWNIgIARw8JQ0qO", "$oW", "AOq0QJ8wRAIgINWRWqXhcJg0Em3IRnTm5qrUo93yib6IL45hGtp70P4CIEFnKG9FWGINGP6ymEHCqjN_Orw5jK63ReERDDogUxTO"); + case "74e4bb46-player_ias_tce.vflset-en_US.txt" -> List.of("TxUgoDDREeR36Kj5wrO_NjqCHEmy6PGNIGWF9GKnFEIC4P07ptGh54LI6biy39oUrqAmTnRIOmE0gJchXqWRWNIgIARw8JQ0q3", "bol", "AOq0QJ8wRAIgINWRWqXhcJg0Em3IRnTm5qrUo93yib6IL45hGtp70P4CIEFnKG9FWGINGP6ymEHCqjN_Orw5jK63ReERDDogUxTO"); + case "4fcd6e4a-player_ias.vflset-en_US.txt" -> List.of("eTxUgoDDREOR36Kj5wrO_NjqCHEmy6PGNIGWq9GKnFEIC4P07ptGh54LI6biy39oUrq5mTnRI3mE0gJchXqWRWNIgIARw8JQ0", "YqR", "AOq0QJ8wRAIgINWRWqXhcJg0Em3IRnTm5qrUo93yib6IL45hGtp70P4CIEFnKG9FWGINGP6ymEHCqjN_Orw5jK63ReERDDogUxTO"); default -> List.of("", "", ""); }; diff --git a/src/test/resources/com/github/felipeucelli/javatube/base/4fcd6e4a-player_ias.vflset-en_US.txt b/src/test/resources/com/github/felipeucelli/javatube/base/4fcd6e4a-player_ias.vflset-en_US.txt new file mode 100644 index 0000000..b415f33 --- /dev/null +++ b/src/test/resources/com/github/felipeucelli/javatube/base/4fcd6e4a-player_ias.vflset-en_US.txt @@ -0,0 +1,13787 @@ +var _yt_player={};(function(g){var window=this;/* + + Copyright The Closure Library Authors. + SPDX-License-Identifier: Apache-2.0 +*/ +/* + + Copyright Google LLC + SPDX-License-Identifier: Apache-2.0 +*/ +/* + + Copyright Google LLC All Rights Reserved. + + Use of this source code is governed by an MIT-style license that can be + found in the LICENSE file at https://angular.dev/license +*/ +/* + + (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). +*/ +/* + + + The MIT License (MIT) + + Copyright (c) 2015-present Dan Abramov + + 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. +*/ +'use strict';var e4=[",,],])","push","_ic4vHW","","\\[]];{)",'[}][\\"}',"undefined","1969-12-31T16:45:01.000-07:15","1970-01-01T10:01:33.000+10:00","1970-01-01T06:15:30.000+06:15","1969-12-31T15:00:10.000-09:00","1970-01-01T09:15:48.000+09:15","1970-01-01T09:15:07.000+09:15","TU3NPLfXwtgzJ0Bs-L-_w8_","application/json","local","mn",",","/videoplayback","playerfallback","1","fvip","rr","r","---","fallback_count","\\.a1\\.googlevideo\\.com$","\\.googlevideo\\.com$","redirector.googlevideo.com","rr?[1-9].*\\.c\\.youtube\\.com$", +"www.youtube.com","cmo=pf","cmo=td","a1.googlevideo.com","Untrusted URL",":","/initplayback","/api/manifest","/","index.m3u8","/file/index.m3u8","://","//","=","?","&","cmo","cmo=","%3D","youtube.player.web_20250324_01_RC00"],TE,Juj,mfb,du,ebu,Euq,Oz,Zqb,pq,FbE,Nf,GE,X1,iqq,cuj,Wbb,Ds,bj,lsq,wqj,qz1,dfu,xu,Mf,Au,oq,j4,hu,Isu,uj,Uz,Rq,pqq,yuu,e9,Nuq,GEu,E1,Xqu,nus,wg,q1,dg,Cju,asq,Kbz,BuR,Szb,fsz,Dfb,bq4,O1,$fu,G9,guq,ouu,Xv,jqq,hbR,YO,u1u,Bc,fN,M1,A4,oe,j9,V4f,Pj4,h4,Pc,uF,t4b,Hq1,Ufq,Rbj,t4,kEu, +Hc,U1,Re,Lbz,Qqb,LN,sq4,ruf,Ek,z$b,Wu,J4u,m14,i9,e$j,Tgu,EO1,y9,ZN4,iNj,d1u,n0,q14,Wvu,ON4,Ngz,C0,K0,Sn,Bu,G9z,Y14,f0,DE,b9,xU,Mi,ot,jn,D1q,hs,u9,bN4,V9,Hu,Rt,M9E,vu,re,J5,A4j,zY,oOj,jej,ey,sk,TY,Ei,Z_,h$b,F7,cv,V9u,Wv,lQ,wy,HNq,y1,U1f,R$q,k9u,Lvb,pW,Ia,qs,PF1,t91,Qef,ses,r4u,zWs,X7,nW,Yj,JsR,CW,KW,Bv,Sy,mis,D_,eWz,xj,gy,FYq,A5,jy,i0E,csu,h5,uQ,Pv,V1,Hv,t5,vv,Ui,kj,LW,lEE,ry,wuj,z8,J_,EJ,ZF,FS,mw,T8,em,c0,W0,lW,qku,Zz,qc,d8,Ra,Q1,Ij,OJ,cc,pP,O0u,yI,Nc,G8,XS,nP,Yc,puR,CP,ysj,aj,Neu,Sm,B0,fP,DF,bW, +$c,g8,GCu,nUz,Mc,Ykb,C9j,aEz,oj,jm,VI,Beb,P0,Skq,t_,Dij,H0,$ij,UJ,Rj,kc,gUu,LP,xib,QI,Mn1,As4,v0,oUR,sJ,r8,JB,m$,hWE,EW,P94,jtf,Zm,iN,c5,Uiz,tnu,lN,qE,RWu,LYu,QtE,dm,Ir,OW,pI,y2,NE,GO,stj,rsz,zvu,msq,evq,XG,Tyz,Ejq,nI,YX,CI,ar,ZWb,Wr1,l_q,qij,wv1,dsR,OWq,fI,Dm,bN,$X,gm,ME,AB,GYs,jt,uN,V2,P5,H5,UW,Xvb,Rr,kX,Q2,YiR,CQq,v5,rm,zy,mP,ef,E8,ZL,$sq,gjs,xs1,Myj,FT,iu,A5j,ojz,jas,cm,Wm,lu,wC,qr,yz,Gy,Yf,KY,hvu,u7q,gC,Vy4,Vz,Pm,HWq,Qaj,kYR,sau,U8,LY,zb,J_u,efu,mcu,m0,Tb,T81,eX,cF,Hm,ZPR,Ecb,d2,qu,tP,Im,OX, +pL,Fw4,yr,c_q,XD,Wws,nL,CL,am,KL,lFR,w0E,qJu,BF,dcq,IFz,J5E,$L,OPu,p0E,g2,y_u,bV,G81,N8q,D$,xL,Mu,X0q,ncR,YJE,CWu,AM,aFE,om,iWb,Frb,jX,hM,Vr,PF,SJq,tM,HF,Qr,fFf,Dcs,vF,Mmq,mW,$cj,xcE,zw,r2,FV,iy,A_u,ly,oc4,wB,qe,jjj,uSq,pB,PWs,Ne,Gw,XV,tmb,CB,KB,k8f,Lwq,Qjq,B1,z_q,nB,Ucu,mEz,r_R,vcb,sjb,e_z,JBq,fB,xV,EX1,ZIq,F$j,iIq,cBf,A0,W$R,jz,lm4,dEu,Imf,h0,uy,VB,Uw,p5z,RY,kV,LB,yBR,pm1,rB,yPR,zH,J2,Xmq,Y8u,aLb,Cuz,KPz,eB,ZO,WY,wE,q8,dE,IZ,OA,fLb,Drq,pS,bYu,yu,N8,lX,GH,XF,nS,Fv,Ya,$rb,aZ,Mff,BY,SB,fS,APu,ofb, +ji4,h4R,DO,uTu,bX,$a,Puq,Urz,R4f,gE,vfq,Qiu,siu,rP1,zX1,xa,JMu,ky4,M8,muq,eXq,A2,EL1,ZLu,F0b,iLj,cMs,jB,W0s,l$4,wFq,qXb,OLq,duj,h2,uX,Vu,t2,HY,UA,RZ,ka,yMb,Qu,LS,N2b,vY,Gbu,sA,XFq,nLu,YXb,CVq,rE,JV,B2R,zd,SXz,m_,eJ,f$u,Td,E7,ZK,Fn,ie,cD,xuf,Du1,q_,gLq,dA,$u1,wA,WD,bLb,le,O7,AMj,yh,pv,Yz,Cv,Kv,hXz,a$,fv,uDj,DK,oLq,tX4,HLz,Uu1,gA,xz,M_,RXu,AV,o$,jJ,hV,kbq,ue,Vh,R$,L0u,Qmb,kz,vLb,zlu,tff,rMs,J0q,me4,elR,smj,EVE,ZBR,Lv,iBb,Qh,FWq,c0E,WWu,vD,lBu,s7,rA,zq,JS,mM,eL,Tq,w1b,ET,Z0,FA,qwq,IBf,OBb,cN,lx,WN,q7, +d1,Ig,y01,NB1,OT,ph,yC,X1f,nVu,aBb,Ywf,KW4,DeE,N7,fB4,BBq,Gq,XA,bBj,nh,$e4,YK,xeu,gV1,Mzu,A0R,BN,SL,oVu,jYs,hlu,fh,D0,uVu,bx,Vzb,Pyq,HBz,LWu,$K,QYb,vVu,sY4,r0u,z1q,M7,J2z,m8q,e1q,PN,VC,ux,TEu,Eaq,ZSE,tS,HN,UT,iSu,vN,sT,r1,z6,Jf,mJ,WUq,lOb,wYq,e$,Et,Z4,WM,wX,Ot,d8u,OSz,IOz,pYq,y2E,YZ,NEu,GHq,CU,XY1,naR,YAs,CX1,S$,KU,fU,D4,M9,aOs,KUq,BEE,Af,oS,SAs,j$,fOu,D8u,bSb,hf,$8j,uA,V5,gau,x8R,MBz,A2u,oaq,jZR,PM,tf,HM,RS,VBR,kZ,LU,PXz,uFu,Ut,tBu,Q5,vM,rX,Jd,zI,HSq,U8q,R1q,mS,LUu,e1,vau,sZj,r2j,zNE,JVz,m_u,eNq, +TAs,Z1,FH,iS,Zv1,Ezu,F_4,ivs,WU,cVu,lS,W_q,lKu,ww,q$,dw,wDf,IL,Os,q7E,p8,yU,N$,GI,XH,n8,YG,C8,d_b,IKu,OvR,pDR,aL,yVq,Gdq,NAu,BU,S1,nzE,XDf,aK4,S7R,BA4,f8,fKf,D_z,bvR,gzb,$_b,x_q,D1,MJf,AVE,$G,ozb,j$j,hNq,un4,gw,VJf,xG,Peb,M$,Ad,Hvs,oL,U_j,j1,hd,RNE,kd4,uS,PU,Q$u,td,L_f,vzj,s$u,rVz,JSu,HU,m7q,kG,L8,T1q,EKq,ihq,cSu,QU,vU,rw,za,JQ,mA,ep,Ta,ED,Zn,Fm,cl,Wl,qTb,wNu,d7j,Ohu,I04,yS1,l01,pNq,WMq,lf,wQ,Gqb,XNu,nKf,OD,pE,yH,q6,Cxb,N6,N1E,KMz,B1u,a0z,Ga,Xm,nE,CE,STu,YT4,f0b,az,D7f,bhs,$7f,gKq,x7q,oKf,jg1,hmb, +uAq,KE,Pxb,tLj,RmR,kqb,Sp,Qgf,fE,Bl,sgz,vKE,JfE,bf,gQ,ejz,TXb,EZR,ZUu,iUq,AQ,M6,cfq,FJz,l4R,qtE,NX1,Pl,G6u,VH,Hl,XMu,UD,kT,LE,nZ1,Ytu,mH,CAE,T5,a4R,KJj,I7,BXq,f4u,OE,D9z,bU4,Afb,$9R,G5,XE,nz,Cz,a7,V$R,Kz,Bd,SZ,t$E,bI,HUu,U9b,$D,k6z,xD,Mt,AA,o7,LJb,jZ,uI,Vo,Pd,tA,QSj,vZb,sSz,UE,R7,kD,Lz,Qo,vd,rfj,zzu,JdE,m$b,ezz,Twf,sE,EGq,ES,Z8s,FSu,i84,ZQ,i2,cT,WT,qK,dx,I3,WSq,NK,GK,X0,l1u,wUb,n3,qs4,d$b,C3,nGb,Ysb,CSR,a3,a14,KSs,f1b,BT,b8E,D$u,f3,gGu,x$q,M1E,b2,$H,Ad4,gx,xH,MK,A9,o3,j3,h9,u2,Vt,PT,t9,HT,US,R3,oGz, +jLR,hzR,L3,vT,uHb,eA,To,EL,Z8,Fj,cf,Wf,H8u,lv,wj,qp,Rzz,U$4,V14,OL,IQ,vG4,pH,KH,YJ,Bf,SA,rdu,m6z,D8,ETR,ehf,TQb,FAz,wlb,iEq,WAE,lnq,$J,bv,qDb,xJ,Mp,Aj,d6u,Pf,Inq,tj,Hf,UL,kJ,OEu,Qp,vf,plf,sL,rj,NQu,my,T7,EF,Ze,Fa,iM,cR,WR,lM,ws,Xlz,qN,OF,IW,YDq,BQz,anf,KAf,SDb,fnR,bEs,$61,D6j,x6z,NN,G7,Ys,Mpq,AQu,nJ,CJ,jzq,hhE,tpE,Pfu,SO,fJ,De,bM,$s,xs,U6q,Rhb,kau,Vx,PR,LAq,Qzs,vTq,ks,LJ,Qx,szb,rQ4,JAz,eQR,zf,TLz,ee,J8,Zx,F2,cj,EDR,O0,p$,yO,Nq,X2,n$,C$,WHb,lvz,K$,wds,qEj,Se,dts,Iv1,f$,Dx,Ozu,pdz,NLq,x4,Xdu,nDR,$4, +YER,CIq,KHb,avq,je,G51,SEz,fvu,Hj,Pj,Dtq,bzq,U0,RV,$tb,gDj,QO,xtb,MZs,AAb,oDE,JC,j7R,hQj,uEz,VZu,PIq,tZb,Hzu,Utb,eV,RQ4,EK,LHu,Q7u,vDs,s7u,rAE,ZX,wn,J9E,Txq,qh,EH1,Foj,zgu,i3q,c9b,Wo1,mKb,egs,Ff,im,lm,Z3u,WA,cA,lQ1,wTj,qSz,dKE,IQs,O3b,XTu,pT1,pT,ye,GL,C2s,Bx4,Ko4,Nh,Yo,SS1,bm,fQ1,b3b,AC,DKR,u0q,$Ku,hgb,um,V3R,H3q,Ve,hC,P2q,t3q,UKj,tC,kKj,Lob,Q3s,vHE,s3q,r9b,zJE,Rg4,mpR,eJ1,Tjq,ZHE,EJb,iHu,ko,cjj,LT,Qe,vA,Whq,l8q,zQ,JN,qLz,wfu,mt,dpR,OHz,yjR,pfq,Njq,nJu,Gob,qb,O6,Ix,YLR,d$,pg,yL,Nb,GQ,Cvj,Kg,Khu,fg, +S5,bE,$w,g$,xw,Bj4,Mb,ox,SLR,hN,VL,PK,f8q,DpE,bHu,$pj,tN,U6,gJs,Rx,kw,Lg,MAb,QL,vK,Ajb,r$,mK,Jr,zM,ek,TM,hJq,Upq,kou,HHE,tAq,RJq,FX,WP,sQb,Lhq,QQu,vJq,jQE,Fy1,GM,ZJf,WyR,Esq,Zc,XX,df,yg,iJq,wf,VAb,ujj,Pvb,cP,Tsq,aK,OJu,Kd,yYs,NsE,G74,Sk,XRb,nsE,YF4,ae1,Kyu,bc,SFs,$B,feE,DNs,$NR,gsb,xB,xNq,AYj,MV,osu,Ar,oK,wW,tOq,Lyu,tr,vsR,zYu,U$,mqu,eYf,TWu,E4E,eb,Z$u,JJ,aQb,rf,m4,zZ,RK,lY,WV,q3,I0,i$b,Og,y7,N3,c8b,WVu,ny,wjb,q0E,dqq,Ixu,O$f,pjq,y8z,NW1,Gf4,Xjj,Ky,n4q,BV,fy,Y04,C5u,axR,DN,KVR,BWR,xC,M3,AJ,S0z,o0, +fx1,hJ,b$q,Dqq,V7,PV,tJ,HV,$q4,Ug,R0,g4R,xqu,kC,Ly,jVs,Me4,o4b,A84,Q7,vV,sg,hYq,u2q,Vez,rF,teq,RYz,Uqu,ze,JL,mk,eD,Te,ZC,FW,iB,cy,Wy,lB,kfz,LV1,QV1,w9,qo,d9,IU,pO,No,r8q,sVq,XW,zMu,nO,YE,CO,aU,KO,fO,DC,bB,$E,g9,xE,Mo,AL,oU,jD,hL,eMu,VK,tL,Tnf,Hy,ZT4,Fej,iTj,Wes,wAf,vy,qKz,r9,sx,OTE,pAq,yC1,JR,mi,GLq,Tr,Ep,ZI,Fe,nou,iq,ch,Wh,YKR,lq,XAb,w6,CM,aXq,Cmf,aE,KM,Bh,Sj,DI,Bnu,SKq,$d,g6,Ml,AR,fXu,xd,$h1,go1,xhE,MV1,AC4,ooj,jTb,jj,oE,bTz,VV1,hR,tVb,HTq,Hh,UhR,Vj,Ph,RME,Up,Le4,voR,RE,kd,sTE,LM,zys,Qj,Zgb,T$E, +JNj,eyR,mbb,sp,r6,zU,Jv,mg,e6,TU,ZD,igq,lJu,c2,LMz,W2,wKR,dbb,wY,OO,qT,Ik,dY,pKu,Ogu,IJ4,yN4,pc,N$z,Y6u,yJ,GU,aJz,X9,nc,Y7,Cc,Ktj,ak,B$j,S64,B2,b_,$7,gY,x7,MT,Av,ok,j6,hv,u_,VJ,P2,tv,fJ4,DbR,H2,UO,Rk,k7,Lc,QJ,bgf,$bq,v2,JZ,M5f,ANq,mT,e0,Nz,GV,jxb,Yr,KF,hyu,V51,uPu,PEq,t5f,Hgq,Ubb,Ryu,kQz,Qxb,Ltz,vwb,zP4,mVb,rNj,ePf,Tfq,Zdu,S0,fF,idq,FKq,DP,bG,$r,WKz,gG,xr,Mz,wPs,q$u,AZ,lcu,o6,Ods,j0,hZ,uG,V_,PB,tZ,HB,Uf,R6,kr,LF,Q_,vB,sf,rG,zS,JT,mj,eS,TS,Er,ZS,FJ,iR,ce,We,lR,wO,qk,dO,Il,Or,pK,yk,Nk,GS,XJ,nK,Y$,CK, +al,KK,Be,SS,fK,DS,bR,$$,gO,x$,Mk,AT,ol,jS,hT,uR,Vk,Pe,tT,He,Ur,Rl,k$,LK,Qk,ve,sr,rO,z_,Jk,eP,T_,Nfu,Eq,L,Zj,mG,FB,iU,c9,XPu,lU,Y$q,W9,Cc1,qP,acq,IG,wv,Oq,p1,y6,G_,Bfu,S$1,fcq,DVf,f1,Dj,aG,bU,$Vb,gBu,xVu,Mkb,KKq,ArE,NP,oBu,jKs,gv,jP,xb,n1,hPR,XB,$b,MP,hk,Vkz,Yb,C1,oG,Ak,Pcu,uU,V6,P9,tk,tks,H9,Uq,RG,kb,L1,Hdj,UVq,kMb,LK4,sq,rv,zs,Jl,zAu,m3z,TFu,ECj,eo,F4E,iyf,c6,cJq,W6,lw,wo,qQ,IP,Oc,W44,wVq,qgz,lNj,d3R,INb,Gs,X8,YP,aP,Kf,B6,Oyq,So,pVb,ff,D3,nf,go,xP,MQ,Al,yJb,$P,GZj,oP,XVs,nCz,jo,YgR,hl,uw,CYu,aNq, +VY,K4u,BFq,P6,Sgu,fNu,D3s,byq,tl,H6,$3j,gCu,Uc,RP,kP,x3E,Lf,QY,v6,sc,Mb4,ro,zk,AJu,J7,oCu,ms,j0j,hAf,ulq,Vb1,PY4,tbq,el,Hy4,U3q,RAb,Tk,kZR,Ee,L4q,Zk,Q0b,FQ,vCb,s0u,iO,qO,rJE,dS,IB,Oe,pG,zo4,yD,NO,Gk,JLz,moq,nG,Yy,T9z,CG,EEq,ZOs,eos,FkR,iOs,cLf,KG,Wkq,BQ,Sl,fG,Dk,lC4,bO,$y,MO,wy1,A7,oB,qx1,h7,PQ,uO,RB,ky,doE,LG,IC1,vQ,se,rS,OOq,Jo,pyq,ei,T1,E2,HQ,ZU,Fz,i1,yLs,cz,Wz,l1,N9q,w7,qU,d7,Ib,O2,y$,NU,G1,Xz,Geu,Xy4,nEz,Yxu,Q$,n2,vz,s2,CBb,aCR,Kku,r7,zX,JK,B9E,Sxf,L2,fCz,Dou,mI,bOq,e2,TX,ZH,Fg,ik,cr,Wr,wT,q4, +IO,O3,p5,yQ,dT,xob,MDR,GX,Xg,n5,ALq,C5,jU4,aO,K5,hoE,Br,S2,f5,bk,uWu,DH,$k,gT,xk,VDb,oO,tDb,HOu,j2,hK,Uof,Rob,kej,uk,QUq,Yk,Lkq,vE1,VQ,sUb,Pr,rLz,tK,zTR,JRs,mlf,eT1,T6s,Hr,ZMR,Edu,U3,L5,FiR,QQ,iMj,vr,cRE,Wiq,s3,lIE,wh4,qpq,dlq,rT,IIE,zi,phq,m6,ex,N6z,yRs,Grs,Xhb,ndb,ER,Zl,Fk,Ypz,Cq1,aIq,KiR,B61,SpR,fIq,Dl4,bMu,$lR,cI,WI,gdq,xlb,l4,wU,Mjq,qG,dU,OR,ARb,pu,yP,NG,odq,Gi,jEq,Xk,hTb,nu,ueq,Vjq,Yg,Pq1,tj4,HMq,Cu,aA,Ku,BI,Sx,Ulq,RT1,fu,Dl,b4,krq,$g,gU,xg,MG,Aw,Li4,QEz,oA,jx,vdE,hw,u4,VP,PI,RPu,sEq,rRu,tw, +zOz,Jvq,mTq,HI,UR,RA,kg,Lu,QP,vI,sR,rU,zA,Jm,eOu,TYu,ir,c3,E7q,W3,p6,wR,GA,lDj,OcE,w2u,p2R,NYu,GUs,yvb,X2u,n7b,YOj,hm,Kgj,SOu,DTu,bcb,$TE,P3,tm,xTu,M64,hOq,H3,u94,AvR,UU,RR,kA,L6,P_u,UTz,t6q,Lgz,mzE,JZu,QkE,ea4,v3,skz,v74,ZFq,cZb,iF4,qfb,WT1,sU,rR,yZ1,m1,NGz,KTf,aPu,CGE,Yfu,XBz,fPb,SfR,nrq,xzu,grq,M0s,Fp,j6j,AZq,oru,GVf,haz,uoq,eT,Ev,bFR,Dzs,$zu,V04,Tc,BGb,t0b,Uzj,kV1,Q6b,rZ1,z5u,mk1,e5q,E$b,TOz,Wjq,FjR,ZKq,lSu,dkq,ISu,OKq,pe4,yc,BYf,GSz,yTu,Xp,Yru,Cw,aSb,Kjf,CRu,ay,BOu,Kw,BC,pf,ST,aD4,fw,DA,bg,Srb, +fSs,$i,Dkq,bKq,$kE,gV,xi,MF,Az,oy,jT,hz,ug,Vc,g$b,xkq,PC,MSb,tz,kk,HC,Uv,o$4,ATq,Ry,jlq,h5R,ki,Lw,uJu,Qc,VS1,PRE,fDz,n$b,tSu,vC,yY,v9,ig,HKu,Uku,zu,pBj,zc,R5R,NF,Gc,WC,cC,QA,wV,vrb,JTj,lg,dzu,we4,kSR,TG1,rv1,Jh,XeR,VA,Qlz,Lj4,V6u,s6u,v$1,qrz,Ov,IPu,OFq,FTq,LTE,Rab,kUu,Hcq,jk1,o71,g7j,PGj,zau,iK4,lPq,wBj,dV,Iy,qF,cTu,HFq,rTR,slu,mO,e7,Tu,EQ,ZZ,ct,wH,qS,dH,IC,pQ,yN,zLq,Fu,iK,OQ,mPu,Jkq,NS,eL1,Tvj,Xu,Ebu,Z1R,nQ,Ym,CQ,aC,KQ,Bt,S7,fQ,WGu,bK,DZ,lj1,i1u,ckR,w9R,$m,gH,qqq,dPj,xm,Iju,l5,p9j,O1u,Nvs,X94,nbj, +G_u,YqR,KGq,uK,VN,Bvq,Sqb,Pt,th,fj1,DPs,b1E,$Pu,UQ,km,LQ,xPu,MPz,jGq,uBu,VP4,hLq,sQ,zv,rH,PUu,tP4,QN,H1q,UPq,RLq,k_u,vt,sGu,rkR,zFu,vbu,QGq,LGs,Jlq,mQb,Akb,eF4,obj,Tou,EPq,clR,Zfz,Fub,ifq,w6q,Wuq,l3u,qc4,dQq,m2,p6b,I3u,ylu,Ofq,Noq,Gs4,X6b,nP4,Ycs,Cw4,a3z,KuR,Boq,Scq,f3z,DQb,ec,$Qj,gPj,xQz,bfj,Mob,Alq,hFR,EM,ia,WJ,u8E,la,wb,qg,Hfj,RFb,UQf,Lus,TSz,vPR,XU,I1,ksf,toq,Pwj,Vob,Gv,OM,Ng,KZ,BJ,Fs1,Sc,fZ,a1,lku,iGR,c7u,wQu,Dr,ba,dOR,gb,xe,Mg,AF,o1,jc,hF,Iku,OGj,ua,Vf,tF,y7u,NSb,PJ,HJ,nyz,Yeu,UM,COR,LZ,aku, +Qf,sM,KsE,vJ,rb,BSs,Je,fkz,DOf,eF,Tm,co,$Oq,Zh,Wo,wt,gys,dt,i0,l0,xOu,In,Ml1,OI,A7j,EI,Fc,bGq,qx,pa,oy1,jBu,y0,hpb,Nx,Gm,Xc,na,uQ1,Ca,YY,an,Ka,Vl4,POq,Bo,SF,fa,Dh,b0,tls,$Y,gt,HGq,UOu,xY,Mx,Ae,kkz,Rp4,on,Ls1,QBu,vyb,jF,sBj,r71,z91,Jos,mUz,he,u0,V0,Po,e9q,T7E,Ho,E_4,UI,Rn,Z2z,F94,kY,i21,coq,q2q,dUu,W9q,lUu,wzu,Q0,vo,sI,rt,IUz,O2q,z4,pz1,N7b,yoq,T4,eh,Xz1,n_R,Y2b,C1q,EY,aUb,Fb,is,K9u,S2E,fUE,Wp,dK,g_1,mOq,pZ,Mif,Aoq,o_1,jbu,h9u,db,ls,uzj,pt,y4,tib,H2u,UUE,Nd,Qbz,R9q,k1u,sbu,rou,G4,z2b,v_s,JKR,Xb,nt, +YQ,m4q,e2j,Ct,as,TTu,Kt,Ekq,Bp,Is,bs,Z5q,epq,QPb,$Q,gK,Md,AG,os,jh,hG,xQ,Pp,i51,UY,cKb,WIb,lH1,wrb,q3q,Rs,IHu,kQ,pr4,Lt,NTq,GX4,yKq,O5q,Xrq,nku,Y3q,zt,Ckj,aH4,BTq,JD,ZGq,mz,fHE,b5q,nZ,$4f,Tt,x4R,yf,gkb,sPu,zpu,J7f,S3s,Ej,Z6,F_,M2b,AKu,il,oku,WZ,ll,wc,qA,dc,jOu,IJ,Oj,h2b,ugb,pi,ys,NA,Gt,X_,ni,Pkq,V2j,Y5,t21,U4j,Ci,R2z,H5j,tD,Vs,HZ,RJ,k5,sY,kXq,Jwf,B9,PZ,sj,EgE,F61,bl,mp,D6,e8,Zf,ul,Fw,wIs,ih,c$,qRu,dGq,IlR,Ouu,W$,pIu,ywb,lh,NU4,C4z,YRz,Gib,ng1,XIq,wN,alj,qJ,K61,BUu,flR,DGb,buR,Aw4,ym,NJ,h8b,Gx,Xw, +uk1,txR,HuE,UGq,R8q,nr,kiz,QA4,vgz,xt,Z6R,Jmj,mWR,i61,MJ,cmE,lgE,WZb,w3f,oo,uh,qUj,Ac,Vm,P$,dWb,O6j,NRs,Ro,sl,eg,ZR,$Ws,gAf,WH,cH,w0,qL,xWf,oAq,Amq,jRq,IN,d0,h7u,Vvq,Pru,H6q,yX,tvu,UW1,R74,GF,Xr,LZE,Ul,pn,Cn,CrE,Igs,SUq,Sg,li,u3j,ML,TF,oN,jg,hX,iwb,F1z,EH,czj,VX,PH,lAq,tX,HH,wCu,Fr,UH,Mvb,kv,z3q,Ln,qvq,X3b,GAb,p3b,QX,eM,Eu,Yvq,niq,aAz,K14,i8,WL,l8,cL,q0,dd,BV4,Ip,fAq,Ou,bwq,N0,DFj,GD,Xq,MTj,ne,jyE,h3R,ap,upu,Pgj,op,h3,u8,t3,tTz,HL,Uu,Q3,vL,rd,zT,HwE,Jp,mF,L1E,ew,TT,Qy4,viu,Eh,syu,rzz,zxb,Jhu,Zy,FO, +mSf,THs,WO,l6,dk,Ic,Emj,ZQq,Oh,pj,yi,Nv,FOq,iQu,GT,chu,WOb,XO,wtE,lZu,qQR,nj,IZE,dSq,Yl,OQq,Cj,ac,ptu,NHq,Guq,Kj,BO,Sw,Xt4,fj,YQR,b6,CK4,aZj,Dy,$l,gk,xl,fZE,bQf,KOq,DSf,$Sq,BH1,SQb,gmu,xS4,oc,M7q,omb,uuE,PKu,V7b,Uh,HO,Lj,HQz,Qi,vO,sh,RxR,rk,kuj,US1,z0,vmu,Ja,m3,sC1,eW,rhb,z74,EAq,JFq,zSu,eSR,mg1,Tbf,EN,Eeu,ZZu,FL,cFq,io,cX,WX,lru,dgz,qm,dD,IF,OZR,IrE,lo,pJE,yFq,NbE,XJu,ON,Dgq,G0,XL,AFq,hp,j1u,hSs,uUf,Vcs,Paj,Yp,tcu,Cs,aF,Ks,HZ1,fs,Ugu,RSq,DM,bo,kvb,L2b,Q1z,vef,s1u,$p,SW,rFq,gD,Jes,mxR,ecR,xp,Ttu, +EYs,Zau,Flj,iau,ceE,Wlq,lhu,wou,qIz,Mm,Ihb,Aa,Oaq,jW,pof,Ntb,VT,dxf,oF,PX,ta,HX,UN,RF,kp,GmR,Ls,XoE,vX,Klu,fhq,Dxb,bab,$x1,zG,gYq,SIq,ahu,xxR,sN,MFj,oYb,QT,rD,YIs,C0j,J6,jnu,hcE,Btf,nYq,ucq,eQ,VFb,TG,E9,P0q,ZY,UxR,tFj,Haj,Ft,Rcu,iC,cs,Ws,lC,kmR,Llu,Qn1,wr,snq,reb,qn,zEE,dr,If,JGj,mdz,eEf,TKz,EQb,Ztq,l7u,itj,jC1,pC,qYb,ddb,cGb,Wmb,Fmb,GG,NKj,Nn,yW,wps,Xp1,yGq,ppb,Otf,I7u,nC,nQz,jw,YS,CC,af,YYu,KC,Csq,Bs,a7q,kl,Kms,SQ,Vi,tp,AhR,bC,gr,f7j,Ddb,xS,A6,$S,DY,jQ,fC,BKq,SYz,h6,btb,$du,uo,yeu,u6,uC,gQz,Mn, +xd1,Mhq,AG1,oQu,VW,Ps,t6,hEb,ubu,Vh4,Psb,thb,Ht4,Aeq,U9,Rf,kS,Hs,REu,LO4,QCf,LC,k4u,Lmb,Qsb,vQq,QW,zKE,ssq,JD4,eKb,rGu,Tcu,Zij,E54,cDz,vs,zg,wZq,l6q,Oij,dA1,pZz,yDq,qj1,I6q,WzE,Ncb,JH,Gtf,Yjq,XZj,n5R,e_,zcb,Cls,a6z,Kzq,Bcs,Sj4,Tg,f61,EC,DAs,Zi,FK,bi4,i3,$Aq,g51,c4,xAu,MRq,ADq,o5z,W4,qMb,l3,u_q,wI,hKu,VRR,PlE,wJj,wD,tRE,Hiz,dI,sJ1,v5f,NC,rDq,QJz,mJE,Gg,etu,TNq,Fp1,ir4,Wpj,Zrb,lfu,w$E,ql1,dJ4,If4,p$4,ycu,NNz,Orj,hH,qC,X$u,EtR,ntu,ccq,u3,Chs,Gxq,j_,afq,Kpu,ff4,gtR,DJz,xJE,$Ju,M8z,BNE,VM,Acq,Slb,UC,uwb, +PhR,V8b,t81,HrR,UJf,htu,Rt1,kx1,P4,LpR,Qob,vtq,soE,rcu,mLu,JXb,zIf,kM,eIq,Evq,Znf,FB4,inz,cXq,v4,ha,WBR,lRq,wHq,IRs,dLu,qHs,Onq,yXb,N0b,pHu,H4,Fzu,XHz,nvu,YHf,DLE,KBb,B0R,SHf,bnu,gvz,G4b,Ll,aRb,CiE,$Lq,Rc,fRu,O9,PO,brb,jNR,ovq,hIj,urR,Hnu,ULu,T04,rr,s9,Mgb,RIb,AXj,kFz,LB4,mAb,QNq,jou,otq,xLq,iij,z$,Jg,sNq,mQ,rXq,zej,J3u,m0b,eeq,E24,Zez,Wcu,FcE,c31,l54,T$,I5u,quR,d0E,y3u,Ndb,GDE,EB,XLb,eU,n2z,pLR,wL4,Za,Yu1,ief,C8E,F4,Kc1,a5u,Suj,f5j,D0u,Bdq,iL,g2R,$0E,VQq,MMu,x0q,PCu,tQu,c7,HCu,Un1,kG1,L7u,RRu,Qfs, +JHu,sfu,r6z,ziq,mCf,eiq,TI1,Zlu,EMb,Fqb,ilu,cHR,liq,w4u,dCq,qCu,IiE,Wqj,Olb,yHu,NIR,X4q,YCz,Ggb,wa,C3u,aib,p4u,Kqu,nMz,q2,BIR,SC4,fij,DC1,blq,$Cu,gMj,M_z,oM1,j5f,hiu,uKu,V_u,da,P3s,Iw,Hlq,UCq,N2,kgE,G$,Q5u,vMb,s54,rHu,Jgz,zZR,Pis,Taj,EFE,Vgf,X4,YF,m2f,eZq,Zo1,aw,iob,FQE,cg1,WQs,lab,d21,w7u,p7u,Ko,qBu,ygz,B7,YBf,NaE,fo,Da,CLf,SU,aaj,bL,SBu,Baf,X7b,nFb,fau,D2q,bo1,G$R,$2u,$F,gFs,KQu,Lqq,Co,MUf,M2,Agq,oFq,jwR,hZu,u4E,VUb,PLu,tU1,Hob,Ag,U2f,RZ1,LQu,Qwf,vFb,k$E,swf,rg4,zU1,Jbj,mD1,eU4,jU,gEz,TP4,EWq,hg, +Zb1,FNj,Vn,WN4,lbb,P7,qmR,dDE,wkq,cbq,tg,uL,ib4,Rw,UB,Ibq,kF,H7,NPu,nWu,CJu,abb,BPb,pk1,Ymq,Smb,ybz,fbz,DDq,ra,Lo,$Ds,gWq,bbq,v7,Abb,oWu,XkE,Gjs,MGb,j2q,KNq,Obs,zj,Jb,mN,hUf,eG,UDu,PJb,RUu,tGq,VG1,kjb,uxq,s2z,LNq,Tj,rbf,J$4,eGj,Thu,ENj,i7q,iJ,c$q,Z74,sB,w_b,qbq,qD,Ylz,Em,d5z,ITq,p_u,O7s,y$R,lTR,Wk,Nhs,GpE,X_b,Ybu,nNu,GFq,Czq,ck,aTu,Bh1,KE1,fTq,Sbs,m5R,b7f,D54,lJ,Zb,$5u,I2,x5u,MKR,A$f,oNf,jDu,dP,vSq,FEq,hGz,vvu,Qn,u6b,VKu,Pzb,tKb,H7R,Om,pb,RG4,kpf,LEu,U5q,QDb,yv,zVf,sDu,r$j,JOz,ND,mRu,eV4,Tlu,Gj,EIz, +Fxs,i_E,cOz,Xx,Z_q,nb,YW,Wx1,lWq,Kb,Cb,a2,w8q,Bk,qa4,dRR,IWs,p8z,O_u,gP,Nl1,GN1,yOq,X8u,xW,nI4,MD,Ya4,Ab,CtR,aWu,DRq,fWb,gIu,Sab,Kx4,b_q,o2,Bls,$Ru,MdR,AOb,oIj,j_4,uJ,hVq,tb,Vv,uyf,Hk,Um,Ptb,kW,Lb,tdR,R2,H_4,Qv,RVb,URq,sm,rP,zp,Q_s,kNR,Lxf,J$,vIE,JtR,rO1,s_u,zd4,mE,edb,Fnq,i44,eK,ctq,Wnz,TMq,E6u,qVq,dwq,I9u,O4q,pab,yt1,ZT,n61,F6,Glq,Xab,Knq,Eb,iz,c_,NM4,YVb,BMq,W_,SVs,f9u,Dw4,lz,b4q,wh,$wR,g64,xwu,MHq,Atb,o6z,jM1,VHj,hds,P$q,tH1,UwE,RdE,YN,rt4,Lnf,QM4,zwb,JIE,sMu,klE,mjq,Tiu,ewq,E3q,l2R,aD,dju,pEq, +OXu,I2q,cIR,Wfb,ZX1,Ffq,wEb,K7,B_,Nib,D5,$Fu,GBE,f7,bz,n3u,XEE,qou,Cbq,a2u,Kfb,$N,Biu,h$,f2R,Dju,bXq,g34,$jq,xjR,uz,Vy,MEz,jhb,hwz,H_,o3E,uYj,VEu,AIb,kN,Pb4,tEj,RD,HXu,Ujz,Rwf,kB1,Qhz,Lfj,rIs,zr1,v3u,ma4,ers,shq,v_,sb,T4u,ZRj,rh,E01,Fab,cnu,iRq,Waz,zN,lqq,wS4,q_u,JO,mx,ed,daq,IqR,OR4,ynu,pSb,N41,GWE,XS1,n0j,Y_u,aqu,Ea,TN,ZW,Kau,B44,CTz,$au,g01,xau,o0u,AnR,Muq,jIR,hru,Fy,it,uiR,VuE,PTj,tus,Ua1,Rru,W8,kWs,c8,wl,HRu,Laj,QIb,v0s,sIb,rnz,dl,zuj,Jiq,TpE,I_,E8E,euu,Oa,p_,ZxR,FCf,ci4,ltE,ixu,WCs,NR,wxq,dB1, +Itf,pxf,yiq,GN,Xy,NpR,qG4,n8u,Xxq,G3q,n_,YI,CZ1,YGu,C_,a_,atq,K_,KCs,Bpq,SGs,B8,ftq,Sd,DBf,f_,DW,g84,xB1,Mqb,o8j,jvb,huz,Aiu,Vqb,u5q,PZ1,UBE,gl,k3u,Ruq,tqq,Hxu,LCz,Qvu,xI,MR,v8q,svu,riE,zDq,J1q,mIE,TZR,E1R,qyR,ikq,c1q,ZkE,Idu,Va,tO,NZu,R_,kI,Gnz,Ok4,ut,v8,Qa,H8,n1q,Yyf,sa,ads,BZ1,KXq,rl,Ua,hO,Cpb,L_,pGs,XG4,fdE,AO,zl,DIs,bku,P8,y11,Jt,mn,$Ib,eH,Tl,EV,g1s,xIq,A1s,o1R,MCE,Z9,Fs,j9q,i$,hDs,ca,Wa,u$u,VCu,Pps,tC1,Hkq,UIq,knu,RDR,wM,l$,LXu,v1b,Q9E,qw,dM,s9q,zss,Jyf,IM,r1u,mHs,esR,TJE,Ehb,ZA1,Fdq,iAz,p4, +yb,Wdu,cyq,Nw,Gl,lpu,wwb,qdq,Xs,dHR,n4,Ipq,pwq,OAR,C4,aM,yyj,NJu,Ba,Gz1,Xw4,nh4,Ydz,CPz,apj,BJq,Sdu,fpu,Kdu,DHq,bAq,$Hq,ghq,xHb,Mrf,Ayq,ohE,$6,jdj,hsz,uCb,trq,kzu,UHb,PPs,Mw,HAq,Vrb,Rsj,At,Qdb,Ldj,oM,vhE,sdu,ryq,W7,T31,E9E,ZDb,u$,FL4,Pa,R5,iDb,tt,cUE,Vb,WLu,lGz,piq,L4,Qb,sV,rM,N3q,yUE,wiu,zB,Ghf,Xiu,YZs,JI,CDu,aGs,KLq,va,SZz,B3j,mf,eE,IGz,RM,fGb,DZq,bDq,$Zb,qZq,dZs,k6,g9u,xZR,MYb,AUu,uh1,VYj,tYu,hn4,Rnu,Mv,Ap,tH,QH1,v9u,LLu,sH1,PDf,khb,o9R,rUj,UZq,z0f,HD1,of,jsq,xDq,TB,mq,jHu,mYz,Z9b,Z2,FDE,i9j,T_q, +ib,cEu,WDq,JEE,lVz,Exu,wbb,cE,FY,qPf,IVz,dYb,Eo,pbb,wi,xRb,WE,qj,lb,di,WEf,yEu,Xb1,GRq,YPb,CdR,nxf,Oo,Ih,KDs,B_q,SPb,ox1,gxq,xYE,b9u,uMq,DYu,Nj,tsb,Vsq,H9q,UY1,yG,XY,nX,QuR,LDq,kRb,CX,AEf,SE,suq,BE,Y3,zqz,eqs,Tzu,h0q,JxE,bb,Eq1,Msq,vxj,ah,Zpq,GB,F84,ipu,cxb,x3,Mj,rEb,W8u,loR,AI,oh,wnu,KX,Pdq,q5s,dMq,IoE,mMu,Opf,fX,pnj,D2,y3,yx1,G2s,jE,hI,Xnq,nqb,Y5q,gi,$3,CH1,N_1,ao4,K8z,Bzu,S5u,fou,ub,VG,$ME,Maz,oqs,bpb,UMz,Rqu,k2z,L8u,Q4u,vqq,s4q,zk4,rxu,PE,tI,HE,JWf,mXE,ekq,RO,Tqq,Uo,ERb,Rh,k3,aB,LX,Q6,ZVu,nw, +NOu,FRf,Jz,iVu,M4,AK,cWR,rV,WRj,lwq,Yi,yr1,wWR,q4u,QG,Iwj,OVj,vE,ri,zW,pWb,GJf,XWR,Jn,nRq,yWb,Nqq,Y4q,Cnf,awb,KRq,Bqu,ma,fwR,NF4,Cf,Jw,DXu,bVf,Ti,S4q,bw,$Xs,gRE,xXq,eu,N4,AW1,oRq,TW,E_,j8u,Zq,hku,so,uNE,VNq,PBb,Fi,iT,Pns,cS,WS,tNR,lT,HVj,w4,qa,UXq,Rkq,OMR,d4,kJf,Q8j,LRu,II,vRz,O_,pR,s8u,rWb,z6z,Jqq,myb,e6f,T5R,Zm1,Na,Enu,F5u,imu,cqj,W5s,dyf,lus,wgb,qnu,Omu,yqs,N5q,GPb,pgq,GW,Xg1,nns,Ynb,C7b,au4,nR,K54,Y0,CR,aI,B5b,SnR,Dyu,bm1,$yb,gnq,MIj,xyq,Aqs,KR,BS,h6j,onu,jXq,Su,uZE,VIR,fR,Dq,P7z,bT,tIq,$0,Hmb, +g4,x0,UyE,Ma,An,R6j,kPu,oI,ju,L5b,hn,QXb,vnb,tn,HS,sXz,rqq,zbg,ebg,mfv,U_,Tuz,EuN,Zqv,C_s,JuF,iqN,cuF,lsN,zbu,qf;TE=function(z){return function(){return zbu[z].apply(this,arguments)}}; +g.cq=function(z,J){return zbu[z]=J}; +Juj=function(z){var J=0;return function(){return J=this.length))return this[z]}; +hu=function(z){return z?z:j4}; +Isu=function(z,J,m){z instanceof String&&(z=String(z));for(var e=z.length-1;e>=0;e--){var T=z[e];if(J.call(m,T,e,z))return{HC:e,ZG:T}}return{HC:-1,ZG:void 0}}; +uj=function(z){return z?z:function(J,m){return Isu(this,J,m).HC}}; +g.tu=function(z,J,m){z=z.split(".");m=m||g.VR;for(var e;z.length&&(e=z.shift());)z.length||J===void 0?m[e]&&m[e]!==Object.prototype[e]?m=m[e]:m=m[e]={}:m[e]=J}; +Uz=function(z,J){var m=g.Hq("CLOSURE_FLAGS");z=m&&m[z];return z!=null?z:J}; +g.Hq=function(z,J){z=z.split(".");J=J||g.VR;for(var m=0;m2){var e=Array.prototype.slice.call(arguments,2);return function(){var T=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(T,e);return z.apply(J,T)}}return function(){return z.apply(J,arguments)}}; +g.ru=function(z,J,m){g.ru=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?pqq:yuu;return g.ru.apply(null,arguments)}; +g.z9=function(z,J){var m=Array.prototype.slice.call(arguments,1);return function(){var e=m.slice();e.push.apply(e,arguments);return z.apply(this,e)}}; +g.mv=function(){return Date.now()}; +e9=function(z){return z}; +g.T9=function(z,J){function m(){} +m.prototype=J.prototype;z.iC=J.prototype;z.prototype=new m;z.prototype.constructor=z;z.base=function(e,T,E){for(var Z=Array(arguments.length-2),c=2;cJ&&m.push(cc(e,1))}); +return m}; +g.Wc=function(z){z&&typeof z.dispose=="function"&&z.dispose()}; +g.lF=function(z){for(var J=0,m=arguments.length;J>6|192;else{if(E>=55296&&E<=57343){if(E<=56319&&T=56320&&Z<=57343){E=(E-55296)*1024+ +Z-56320+65536;e[m++]=E>>18|240;e[m++]=E>>12&63|128;e[m++]=E>>6&63|128;e[m++]=E&63|128;continue}else T--}if(J)throw Error("Found an unpaired surrogate");E=65533}e[m++]=E>>12|224;e[m++]=E>>6&63|128}e[m++]=E&63|128}}z=m===e.length?e:e.subarray(0,m)}return z}; +Xv=function(z){g.VR.setTimeout(function(){throw z;},0)}; +jqq=function(z){return Array.prototype.map.call(z,function(J){J=J.toString(16);return J.length>1?J:"0"+J}).join("")}; +hbR=function(z){for(var J=[],m=0;m>6|192:((T&64512)==55296&&e+1>18|240,J[m++]=T>>12&63|128):J[m++]=T>>12|224,J[m++]=T>>6&63|128),J[m++]=T&63|128)}return J}; +YO=function(z,J){return z.lastIndexOf(J,0)==0}; +u1u=function(z,J){var m=z.length-J.length;return m>=0&&z.indexOf(J,m)==m}; +g.CN=function(z){return/^[\s\xa0]*$/.test(z)}; +g.ae=function(z,J){return z.indexOf(J)!=-1}; +Bc=function(z,J){return g.ae(z.toLowerCase(),J.toLowerCase())}; +g.Dz=function(z,J){var m=0;z=S9(String(z)).split(".");J=S9(String(J)).split(".");for(var e=Math.max(z.length,J.length),T=0;m==0&&TJ?1:0}; +g.bF=function(){var z=g.VR.navigator;return z&&(z=z.userAgent)?z:""}; +M1=function(z){if(!$O&&!gg||!xO)return!1;for(var J=0;J0:!1}; +j9=function(){return oe()?!1:A4("Opera")}; +V4f=function(){return oe()?!1:A4("Trident")||A4("MSIE")}; +Pj4=function(){return oe()?M1("Microsoft Edge"):A4("Edg/")}; +h4=function(){return A4("Firefox")||A4("FxiOS")}; +Pc=function(){return A4("Safari")&&!(uF()||(oe()?0:A4("Coast"))||j9()||(oe()?0:A4("Edge"))||Pj4()||(oe()?M1("Opera"):A4("OPR"))||h4()||A4("Silk")||A4("Android"))}; +uF=function(){return oe()?M1("Chromium"):(A4("Chrome")||A4("CriOS"))&&!(oe()?0:A4("Edge"))||A4("Silk")}; +t4b=function(){return A4("Android")&&!(uF()||h4()||j9()||A4("Silk"))}; +Hq1=function(z){var J={};z.forEach(function(m){J[m[0]]=m[1]}); +return function(m){return J[m.find(function(e){return e in J})]||""}}; +Ufq=function(z){var J=g.bF();if(z==="Internet Explorer"){if(V4f())if((z=/rv: *([\d\.]*)/.exec(J))&&z[1])J=z[1];else{z="";var m=/MSIE +([\d\.]+)/.exec(J);if(m&&m[1])if(J=/Trident\/(\d.\d)/.exec(J),m[1]=="7.0")if(J&&J[1])switch(J[1]){case "4.0":z="8.0";break;case "5.0":z="9.0";break;case "6.0":z="10.0";break;case "7.0":z="11.0"}else z="7.0";else z=m[1];J=z}else J="";return J}var e=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");m=[];for(var T;T=e.exec(J);)m.push([T[1],T[2],T[3]||void 0]); +J=Hq1(m);switch(z){case "Opera":if(j9())return J(["Version","Opera"]);if(oe()?M1("Opera"):A4("OPR"))return J(["OPR"]);break;case "Microsoft Edge":if(oe()?0:A4("Edge"))return J(["Edge"]);if(Pj4())return J(["Edg"]);break;case "Chromium":if(uF())return J(["Chrome","CriOS","HeadlessChrome"])}return z==="Firefox"&&h4()||z==="Safari"&&Pc()||z==="Android Browser"&&t4b()||z==="Silk"&&A4("Silk")?(J=m[2])&&J[1]||"":""}; +Rbj=function(z){if(oe()&&z!=="Silk"){var J=xO.brands.find(function(m){return m.brand===z}); +if(!J||!J.version)return NaN;J=J.version.split(".")}else{J=Ufq(z);if(J==="")return NaN;J=J.split(".")}return J.length===0?NaN:Number(J[0])}; +t4=function(){return $O||gg?!!xO&&!!xO.platform:!1}; +kEu=function(){return t4()?xO.platform==="Android":A4("Android")}; +Hc=function(){return A4("iPhone")&&!A4("iPod")&&!A4("iPad")}; +U1=function(){return Hc()||A4("iPad")||A4("iPod")}; +Re=function(){return t4()?xO.platform==="macOS":A4("Macintosh")}; +Lbz=function(){return t4()?xO.platform==="Windows":A4("Windows")}; +g.kO=function(z){return z[z.length-1]}; +Qqb=function(z,J){var m=z.length,e=typeof z==="string"?z.split(""):z;for(--m;m>=0;--m)m in e&&J.call(void 0,e[m],m,z)}; +g.QS=function(z,J,m){J=LN(z,J,m);return J<0?null:typeof z==="string"?z.charAt(J):z[J]}; +LN=function(z,J,m){for(var e=z.length,T=typeof z==="string"?z.split(""):z,E=0;E=0;e--)if(e in T&&J.call(m,T[e],e,z))return e;return-1}; +g.s1=function(z,J){return vub(z,J)>=0}; +sq4=function(z){if(!Array.isArray(z))for(var J=z.length-1;J>=0;J--)delete z[J];z.length=0}; +g.zC=function(z,J){J=vub(z,J);var m;(m=J>=0)&&g.rg(z,J);return m}; +g.rg=function(z,J){return Array.prototype.splice.call(z,J,1).length==1}; +g.Js=function(z,J){J=LN(z,J);J>=0&&g.rg(z,J)}; +ruf=function(z,J){var m=0;Qqb(z,function(e,T){J.call(void 0,e,T,z)&&g.rg(z,T)&&m++})}; +g.mY=function(z){return Array.prototype.concat.apply([],arguments)}; +g.en=function(z){var J=z.length;if(J>0){for(var m=Array(J),e=0;e>>1),W=void 0;m?W=J.call(void 0,z[c],c,z):W=J(e,z[c]);W>0?T=c+1:(E=c,Z=!W)}return Z?T:-T-1}; +g.l9=function(z,J){z.sort(J||i9)}; +m14=function(z,J){var m=i9;g.l9(z,function(e,T){return m(J(e),J(T))})}; +g.we=function(z,J,m){if(!g.Lq(z)||!g.Lq(J)||z.length!=J.length)return!1;var e=z.length;m=m||e$j;for(var T=0;TJ?1:z=0})}; +g.GC=function(z,J){J===void 0&&(J=0);Wvu();J=lzE[J];for(var m=Array(Math.floor(z.length/3)),e=J[64]||"",T=0,E=0;T>2];Z=J[(Z&3)<<4|c>>4];c=J[(c&15)<<2|W>>6];W=J[W&63];m[E++]=""+l+Z+c+W}l=0;W=e;switch(z.length-T){case 2:l=z[T+1],W=J[(l&15)<<2]||e;case 1:z=z[T],m[E]=""+J[z>>2]+J[(z&3)<<4|l>>4]+W+e}return m.join("")}; +g.Xd=function(z,J){if(wcq&&!J)z=g.VR.btoa(z);else{for(var m=[],e=0,T=0;T255&&(m[e++]=E&255,E>>=8);m[e++]=E}z=g.GC(m,J)}return z}; +d1u=function(z){var J=[];q14(z,function(m){J.push(m)}); +return J}; +n0=function(z){var J=z.length,m=J*3/4;m%3?m=Math.floor(m):g.ae("=.",z[J-1])&&(m=g.ae("=.",z[J-2])?m-2:m-1);var e=new Uint8Array(m),T=0;q14(z,function(E){e[T++]=E}); +return T!==m?e.subarray(0,T):e}; +q14=function(z,J){function m(W){for(;e>4);Z!=64&&(J(E<<4&240|Z>>2),c!=64&&J(Z<<6&192|c))}}; +Wvu=function(){if(!YU){YU={};for(var z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),J=["+/=","+/","-_=","-_.","-_"],m=0;m<5;m++){var e=z.concat(J[m].split(""));lzE[m]=e;for(var T=0;T=J||(e[z]=m+1,z=Error(),Y14(z,"incident"),Xv(z))}}; +b9=function(z,J,m){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(m===void 0?0:m)&&Symbol.for&&z?Symbol.for(z):z!=null?Symbol(z):Symbol():J}; +xU=function(z,J){$U||ge in z||azq(z,Kvj);z[ge]|=J}; +Mi=function(z,J){$U||ge in z||azq(z,Kvj);z[ge]=J}; +ot=function(z){z=z[As];var J=z===Bgu;S1b&&z&&!J&&DE(fzq,3);return J}; +jn=function(z){return z!==null&&typeof z==="object"&&!Array.isArray(z)&&z.constructor===Object}; +D1q=function(z,J){if(z!=null)if(typeof z==="string")z=z?new C0(z,at):K0();else if(z.constructor!==C0)if(nOb&&z!=null&&z instanceof Uint8Array)z=z.length?new C0(new Uint8Array(z),at):K0();else{if(!J)throw Error();z=void 0}return z}; +hs=function(z){if(z&2)throw Error();}; +u9=function(z,J){if(typeof J!=="number"||J<0||J>=z.length)throw Error();}; +bN4=function(z,J,m){var e=J&512?0:-1,T=z.length;J=J&64?J&256:!!T&&jn(z[T-1]);for(var E=T+(J?-1:0),Z=0;ZJ.length)return!1;if(z.lengthT)return!1;if(e>>0;kU=J;L0=(z-J)/4294967296>>>0}; +re=function(z){if(z<0){vu(0-z);var J=g.y(sk(kU,L0));z=J.next().value;J=J.next().value;kU=z>>>0;L0=J>>>0}else vu(z)}; +J5=function(z,J){var m=J*4294967296+(z>>>0);return Number.isSafeInteger(m)?m:zY(z,J)}; +A4j=function(z,J){var m=J&2147483648;m&&(z=~z+1>>>0,J=~J>>>0,z==0&&(J=J+1>>>0));z=J5(z,J);return typeof z==="number"?m?-z:z:m?"-"+z:z}; +zY=function(z,J){J>>>=0;z>>>=0;if(J<=2097151)var m=""+(4294967296*J+z);else V9()?m=""+(BigInt(J)<>>24|J<<8)&16777215,J=J>>16&65535,z=(z&16777215)+m*6777216+J*6710656,m+=J*8147497,J*=2,z>=1E7&&(m+=z/1E7>>>0,z%=1E7),m>=1E7&&(J+=m/1E7>>>0,m%=1E7),m=J+oOj(m)+oOj(z));return m}; +oOj=function(z){z=String(z);return"0000000".slice(z.length)+z}; +jej=function(){var z=kU,J=L0;J&2147483648?V9()?z=""+(BigInt(J|0)<>>0)):(J=g.y(sk(z,J)),z=J.next().value,J=J.next().value,z="-"+zY(z,J)):z=zY(z,J);return z}; +ey=function(z){if(z.length<16)re(Number(z));else if(V9())z=BigInt(z),kU=Number(z&BigInt(4294967295))>>>0,L0=Number(z>>BigInt(32)&BigInt(4294967295));else{var J=+(z[0]==="-");L0=kU=0;for(var m=z.length,e=0+J,T=(m-J)%6+J;T<=m;e=T,T+=6)e=Number(z.slice(e,T)),L0*=1E6,kU=kU*1E6+e,kU>=4294967296&&(L0+=Math.trunc(kU/4294967296),L0>>>=0,kU>>>=0);J&&(J=g.y(sk(kU,L0)),z=J.next().value,J=J.next().value,kU=z,L0=J)}}; +sk=function(z,J){J=~J;z?z=~z+1:J+=1;return[z,J]}; +TY=function(z){return Array.prototype.slice.call(z)}; +Ei=function(z,J){throw Error(J===void 0?"unexpected value "+z+"!":J);}; +Z_=function(z){if(z!=null&&typeof z!=="number")throw Error("Value of float/double field must be a number, found "+typeof z+": "+z);return z}; +h$b=function(z){return z.displayName||z.name||"unknown type name"}; +F7=function(z){if(z!=null&&typeof z!=="boolean")throw Error("Expected boolean but got "+Rq(z)+": "+z);return z}; +cv=function(z){switch(typeof z){case "bigint":return!0;case "number":return iQ(z);case "string":return uvb.test(z);default:return!1}}; +V9u=function(z){if(typeof z!=="number")throw f0("int32");if(!iQ(z))throw f0("int32");return z|0}; +Wv=function(z){return z==null?z:V9u(z)}; +lQ=function(z){if(z==null)return z;if(typeof z==="string"&&z)z=+z;else if(typeof z!=="number")return;return iQ(z)?z|0:void 0}; +wy=function(z){if(z==null)return z;if(typeof z==="string"&&z)z=+z;else if(typeof z!=="number")return;return iQ(z)?z>>>0:void 0}; +HNq=function(z){var J=0;J=J===void 0?0:J;if(!cv(z))throw f0("int64");var m=typeof z;switch(J){case 2048:switch(m){case "string":return qs(z);case "bigint":return String(dy(64,z));default:return Ia(z)}case 4096:switch(m){case "string":return PF1(z);case "bigint":return Rt(dy(64,z));default:return t91(z)}case 0:switch(m){case "string":return qs(z);case "bigint":return Rt(dy(64,z));default:return pW(z)}default:return Ei(J,"Unknown format requested type for int64")}}; +y1=function(z){return z==null?z:HNq(z)}; +U1f=function(z){if(z[0]==="-")return!1;var J=z.length;return J<20?!0:J===20&&Number(z.substring(0,6))<184467}; +R$q=function(z){var J=z.length;return z[0]==="-"?J<20?!0:J===20&&Number(z.substring(0,7))>-922337:J<19?!0:J===19&&Number(z.substring(0,6))<922337}; +k9u=function(z){if(z<0){re(z);var J=zY(kU,L0);z=Number(J);return Ns(z)?z:J}J=String(z);if(U1f(J))return J;re(z);return J5(kU,L0)}; +Lvb=function(z){if(R$q(z))return z;ey(z);return jej()}; +pW=function(z){cv(z);z=GY(z);Ns(z)||(re(z),z=A4j(kU,L0));return z}; +Ia=function(z){cv(z);z=GY(z);if(Ns(z))z=String(z);else{var J=String(z);R$q(J)?z=J:(re(z),z=jej())}return z}; +qs=function(z){cv(z);var J=GY(Number(z));if(Ns(J))return String(J);J=z.indexOf(".");J!==-1&&(z=z.substring(0,J));return Lvb(z)}; +PF1=function(z){var J=GY(Number(z));if(Ns(J))return Rt(J);J=z.indexOf(".");J!==-1&&(z=z.substring(0,J));return V9()?Rt(dy(64,BigInt(z))):Rt(Lvb(z))}; +t91=function(z){return Ns(z)?Rt(pW(z)):Rt(Ia(z))}; +Qef=function(z){if(z==null)return z;var J=typeof z;if(J==="bigint")return String(dy(64,z));if(cv(z)){if(J==="string")return qs(z);if(J==="number")return pW(z)}}; +ses=function(z){if(z==null)return z;var J=typeof z;if(J==="bigint")return String(vOu(64,z));if(cv(z)){if(J==="string")return cv(z),J=GY(Number(z)),Ns(J)&&J>=0?z=String(J):(J=z.indexOf("."),J!==-1&&(z=z.substring(0,J)),U1f(z)||(ey(z),z=zY(kU,L0))),z;if(J==="number")return cv(z),z=GY(z),z>=0&&Ns(z)?z:k9u(z)}}; +r4u=function(z){if(z==null||typeof z=="string"||z instanceof C0)return z}; +zWs=function(z){if(typeof z!=="string")throw Error();return z}; +X7=function(z){if(z!=null&&typeof z!=="string")throw Error();return z}; +nW=function(z){return z==null||typeof z==="string"?z:void 0}; +Yj=function(z,J){if(!(z instanceof J))throw Error("Expected instanceof "+h$b(J)+" but got "+(z&&h$b(z.constructor)));return z}; +JsR=function(z,J,m){if(z!=null&&typeof z==="object"&&ot(z))return z;if(Array.isArray(z)){var e=z[ge]|0,T=e;T===0&&(T|=m&32);T|=m&2;T!==e&&Mi(z,T);return new J(z)}}; +CW=function(z){return z}; +KW=function(z){var J=e9(aa);return J?z[J]:void 0}; +Bv=function(){}; +Sy=function(z,J){for(var m in z)!isNaN(m)&&J(z,+m,z[m])}; +mis=function(z){var J=new Bv;Sy(z,function(m,e,T){J[e]=T.slice()}); +J.K=z.K;return J}; +D_=function(z,J,m,e,T){var E=e?!!(J&32):void 0;e=[];var Z=z.length,c=!1;if(J&64){if(J&256){Z--;var W=z[Z];var l=Z}else l=4294967295,W=void 0;if(!(T||J&512)){c=!0;var w;var q=((w=fW)!=null?w:CW)(W?l- -1:J>>15&1023||536870912,-1,z,W);l=q+-1}}else l=4294967295,J&1||(W=Z&&z[Z-1],jn(W)?(Z--,l=Z,q=0):W=void 0);w=void 0;for(var d=0;d=l){var O=void 0;((O=w)!=null?O:w={})[d- -1]=I}else e[d]=I}if(W)for(var G in W)Z=W[G],Z!=null&&(Z=m(Z,E))!=null&&(d=+G,d< +q?e[d+-1]=Z:(d=void 0,((d=w)!=null?d:w={})[G]=Z));w&&(c?e.push(w):e[l]=w);T&&(Mi(e,J&33522241|(w!=null?290:34)),e9(aa)&&(z=KW(z))&&z instanceof Bv&&(e[aa]=mis(z)));return e}; +eWz=function(z){switch(typeof z){case "number":return Number.isFinite(z)?z:""+z;case "bigint":return bQ(z)?Number(z):""+z;case "boolean":return z?1:0;case "object":if(Array.isArray(z)){var J=z[ge]|0;return z.length===0&&J&1?void 0:D_(z,J,eWz,!1,!1)}if(ot(z))return gy(z);if(z instanceof C0){J=z.K;if(J==null)z="";else if(typeof J==="string")z=J;else{if(pcu){for(var m="",e=0,T=J.length-10240;e0?void 0:z===0?Z0z||(Z0z=[0,void 0]):[-z,void 0];case "string":return[0,z];case "object":return z}}; +A5=function(z,J,m){z=i0E(z,J[0],J[1],m?1:2);J!==Ms&&m&&xU(z,8192);return z}; +jy=function(z,J,m){return i0E(z,J,m,3)}; +i0E=function(z,J,m,e){if(z==null){var T=96;m?(z=[m],T|=512):z=[];J&&(T=T&-33521665|(J&1023)<<15)}else{if(!Array.isArray(z))throw Error("narr");T=z[ge]|0;8192&T||!(64&T)||2&T||csu();if(T&1024)throw Error("farr");if(T&64)return e!==3||T&16384||Mi(z,T|16384),z;e===1||e===2||(T|=64);if(m&&(T|=512,m!==z[0]))throw Error("mid");a:{m=z;var E=m.length;if(E){var Z=E-1,c=m[Z];if(jn(c)){T|=256;J=T&512?0:-1;Z-=J;if(Z>=1024)throw Error("pvtlmt");for(var W in c)E=+W,E1024)throw Error("spvt");T=T&-33521665|(W&1023)<<15}}}e===3&&(T|=16384);Mi(z,T);return z}; +csu=function(){DE(WY1,5)}; +h5=function(z,J){if(typeof z!=="object")return z;if(Array.isArray(z)){var m=z[ge]|0;if(z.length===0&&m&1)return;if(m&2)return z;var e;if(e=J)e=m===0||!!(m&32)&&!(m&64||!(m&16));return e?(xU(z,34),m&4&&Object.freeze(z),z):D_(z,m,h5,J!==void 0,!0)}if(ot(z))return ot(z),ot(z),J=z.eE,m=J[ge]|0,m&2?z:D_(J,m,h5,!0,!0);if(z instanceof C0)return z}; +uQ=function(z){var J=z;ot(J);J=J.eE;if(!((J[ge]|0)&2))return z;J=z=new z.constructor(D_(J,J[ge]|0,h5,!0,!0));ot(J);J=J.eE;J[ge]&=-3;return z}; +Pv=function(z,J){Object.isExtensible(z);ot(z);z=z.eE;return V1(z,z[ge]|0,J)}; +V1=function(z,J,m,e){if(m===-1)return null;var T=m+(J&512?0:-1),E=z.length-1;if(T>=E&&J&256){J=z[E][m];var Z=!0}else if(T<=E)J=z[T];else return;if(e&&J!=null){e=e(J);if(e==null)return e;if(e!==J)return Z?z[E][m]=e:z[T]=e,e}return J}; +Hv=function(z,J,m){ot(z);var e=z.eE;var T=e[ge]|0;hs(T);t5(e,T,J,m);return z}; +t5=function(z,J,m,e){var T=J&512?0:-1,E=m+T,Z=z.length-1;if(E>=Z&&J&256)return z[Z][m]=e,J;if(E<=Z)return z[E]=e,J;e!==void 0&&(Z=J>>15&1023||536870912,m>=Z?e!=null&&(E={},z[Z+T]=(E[m]=e,E),J|=256,Mi(z,J)):z[E]=e);return J}; +vv=function(z,J,m,e,T){ot(z);var E=z.eE;z=E[ge]|0;var Z=2&z?1:e;T=!!T;e=Ui(E,z,J);var c=e[ge]|0;if(!(4&c)){4&c&&(e=TY(e),c=Ra(c,z),z=t5(E,z,J,e));for(var W=0,l=0;W "+z)}; +aj=function(z,J){if(typeof z==="string")return{buffer:Ngz(z),nz:J};if(Array.isArray(z))return{buffer:new Uint8Array(z),nz:J};if(z.constructor===Uint8Array)return{buffer:z,nz:!1};if(z.constructor===ArrayBuffer)return{buffer:new Uint8Array(z),nz:!1};if(z.constructor===C0)return{buffer:Bu(z)||new Uint8Array(0),nz:!0};if(z instanceof Uint8Array)return{buffer:new Uint8Array(z.buffer,z.byteOffset,z.byteLength),nz:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers"); +}; +Neu=function(z,J,m,e){this.T=null;this.Z=!1;this.K=this.S=this.U=0;this.init(z,J,m,e)}; +Sm=function(z){var J=0,m=0,e=0,T=z.T,E=z.K;do{var Z=T[E++];J|=(Z&127)<32&&(m|=(Z&127)>>4);for(e=3;e<32&&Z&128;e+=7)Z=T[E++],m|=(Z&127)<>>0,m>>>0);throw CP();}; +B0=function(z,J){z.K=J;if(J>z.S)throw ysj(z.S,J);}; +fP=function(z){var J=z.T,m=z.K,e=J[m++],T=e&127;if(e&128&&(e=J[m++],T|=(e&127)<<7,e&128&&(e=J[m++],T|=(e&127)<<14,e&128&&(e=J[m++],T|=(e&127)<<21,e&128&&(e=J[m++],T|=e<<28,e&128&&J[m++]&128&&J[m++]&128&&J[m++]&128&&J[m++]&128&&J[m++]&128)))))throw CP();B0(z,m);return T}; +DF=function(z){var J=z.T,m=z.K,e=J[m+0],T=J[m+1],E=J[m+2];J=J[m+3];B0(z,z.K+4);return(e<<0|T<<8|E<<16|J<<24)>>>0}; +bW=function(z){var J=DF(z);z=DF(z);return J5(J,z)}; +$c=function(z){var J=DF(z),m=DF(z);z=(m>>31)*2+1;var e=m>>>20&2047;J=4294967296*(m&1048575)+J;return e==2047?J?NaN:z*Infinity:e==0?z*4.9E-324*J:z*Math.pow(2,e-1075)*(J+4503599627370496)}; +g8=function(z){for(var J=0,m=z.K,e=m+10,T=z.T;mz.S)throw ysj(J,z.S-m);z.K=e;return m}; +nUz=function(z,J){if(J==0)return K0();var m=GCu(z,J);z.sX&&z.Z?m=z.T.subarray(m,m+J):(z=z.T,J=m+J,m=m===J?new Uint8Array(0):XuR?z.slice(m,J):new Uint8Array(z.subarray(m,J)));return m.length==0?K0():new C0(m,at)}; +Mc=function(z,J,m,e){if(xc.length){var T=xc.pop();T.init(z,J,m,e);z=T}else z=new Neu(z,J,m,e);this.K=z;this.S=this.K.K;this.T=this.U=-1;Ykb(this,e)}; +Ykb=function(z,J){J=J===void 0?{}:J;z.gM=J.gM===void 0?!1:J.gM}; +C9j=function(z,J,m,e){if(A_.length){var T=A_.pop();Ykb(T,e);T.K.init(z,J,m,e);return T}return new Mc(z,J,m,e)}; +aEz=function(z){var J=z.K;if(J.K==J.S)return!1;z.S=z.K.K;var m=fP(z.K)>>>0;J=m>>>3;m&=7;if(!(m>=0&&m<=5))throw puR(m,z.S);if(J<1)throw Error("Invalid field number: "+J+" (at position "+z.S+")");z.U=J;z.T=m;return!0}; +oj=function(z){switch(z.T){case 0:z.T!=0?oj(z):g8(z.K);break;case 1:z=z.K;B0(z,z.K+8);break;case 2:if(z.T!=2)oj(z);else{var J=fP(z.K)>>>0;z=z.K;B0(z,z.K+J)}break;case 5:z=z.K;B0(z,z.K+4);break;case 3:J=z.U;do{if(!aEz(z))throw Error("Unmatched start-group tag: stream EOF");if(z.T==4){if(z.U!=J)throw Error("Unmatched end-group tag");break}oj(z)}while(1);break;default:throw puR(z.T,z.S);}}; +jm=function(z,J,m){var e=z.K.S,T=fP(z.K)>>>0,E=z.K.K+T,Z=E-e;Z<=0&&(z.K.S=E,m(J,z,void 0,void 0,void 0),Z=E-z.K.K);if(Z)throw Error("Message parsing ended unexpectedly. Expected to read "+(T+" bytes, instead read "+(T-Z)+" bytes, either the data ended unexpectedly or the message misreported its own length"));z.K.K=E;z.K.S=e}; +VI=function(z){var J=fP(z.K)>>>0;z=z.K;var m=GCu(z,J);z=z.T;if(KYj){var e=z,T;(T=h_)||(T=h_=new TextDecoder("utf-8",{fatal:!0}));J=m+J;e=m===0&&J===e.length?e:e.subarray(m,J);try{var E=T.decode(e)}catch(l){if(uW===void 0){try{T.decode(new Uint8Array([128]))}catch(w){}try{T.decode(new Uint8Array([97])),uW=!0}catch(w){uW=!1}}!uW&&(h_=void 0);throw l;}}else{E=m;J=E+J;m=[];for(var Z=null,c,W;E=J?G9():(W=z[E++],c<194||(W&192)!==128?(E--,G9()):m.push((c&31)<<6|W&63)): +c<240?E>=J-1?G9():(W=z[E++],(W&192)!==128||c===224&&W<160||c===237&&W>=160||((T=z[E++])&192)!==128?(E--,G9()):m.push((c&15)<<12|(W&63)<<6|T&63)):c<=244?E>=J-2?G9():(W=z[E++],(W&192)!==128||(c<<28)+(W-144)>>30!==0||((T=z[E++])&192)!==128||((e=z[E++])&192)!==128?(E--,G9()):(c=(c&7)<<18|(W&63)<<12|(T&63)<<6|e&63,c-=65536,m.push((c>>10&1023)+55296,(c&1023)+56320))):G9(),m.length>=8192&&(Z=guq(Z,m),m.length=0);E=guq(Z,m)}return E}; +Beb=function(z){var J=fP(z.K)>>>0;return nUz(z.K,J)}; +P0=function(z,J,m){z=jy(z,J,m);ot(this);this.eE=z}; +Skq=function(z,J){if(J==null||J=="")return new z;J=JSON.parse(J);if(!Array.isArray(J))throw Error("dnarr");xU(J,32);return new z(J)}; +t_=function(z,J){this.T=z>>>0;this.K=J>>>0}; +Dij=function(z){if(!z)return fEb||(fEb=new t_(0,0));if(!/^\d+$/.test(z))return null;ey(z);return new t_(kU,L0)}; +H0=function(z,J){this.T=z>>>0;this.K=J>>>0}; +$ij=function(z){if(!z)return b0j||(b0j=new H0(0,0));if(!/^-?\d+$/.test(z))return null;ey(z);return new H0(kU,L0)}; +UJ=function(){this.K=[]}; +Rj=function(z,J,m){for(;m>0||J>127;)z.K.push(J&127|128),J=(J>>>7|m<<25)>>>0,m>>>=7;z.K.push(J)}; +kc=function(z,J){for(;J>127;)z.K.push(J&127|128),J>>>=7;z.K.push(J)}; +gUu=function(z,J){if(J>=0)kc(z,J);else{for(var m=0;m<9;m++)z.K.push(J&127|128),J>>=7;z.K.push(1)}}; +LP=function(z,J){z.K.push(J>>>0&255);z.K.push(J>>>8&255);z.K.push(J>>>16&255);z.K.push(J>>>24&255)}; +xib=function(){this.S=[];this.T=0;this.K=new UJ}; +QI=function(z,J){J.length!==0&&(z.S.push(J),z.T+=J.length)}; +Mn1=function(z,J){v0(z,J,2);J=z.K.end();QI(z,J);J.push(z.T);return J}; +As4=function(z,J){var m=J.pop();for(m=z.T+z.K.length()-m;m>127;)J.push(m&127|128),m>>>=7,z.T++;J.push(m);z.T++}; +v0=function(z,J,m){kc(z.K,J*8+m)}; +oUR=function(z,J,m){if(m!=null){switch(typeof m){case "string":Dij(m)}v0(z,J,1);switch(typeof m){case "number":z=z.K;vu(m);LP(z,kU);LP(z,L0);break;case "bigint":m=BigInt.asUintN(64,m);m=new t_(Number(m&BigInt(4294967295)),Number(m>>BigInt(32)));z=z.K;J=m.K;LP(z,m.T);LP(z,J);break;default:m=Dij(m),z=z.K,J=m.K,LP(z,m.T),LP(z,J)}}}; +sJ=function(z,J,m){v0(z,J,2);kc(z.K,m.length);QI(z,z.K.end());QI(z,m)}; +r8=function(){function z(){throw Error();} +Object.setPrototypeOf(z,z.prototype);return z}; +JB=function(z,J,m){this.Xv=z;this.A$=J;z=e9(zO);this.K=!!z&&m===z||!1}; +m$=function(z,J){var m=m===void 0?zO:m;return new JB(z,J,m)}; +hWE=function(z,J,m,e,T){J=jtf(J,e);J!=null&&(m=Mn1(z,m),T(J,z),As4(z,m))}; +EW=function(z,J,m,e){var T=e[z];if(T)return T;T={};T.FN=e;T.gp=FYq(e[0]);var E=e[1],Z=1;E&&E.constructor===Object&&(T.extensions=E,E=e[++Z],typeof E==="function"&&(T.K7=!0,et!=null||(et=E),TO!=null||(TO=e[Z+1]),E=e[Z+=2]));for(var c={};E&&Array.isArray(E)&&E.length&&typeof E[0]==="number"&&E[0]>0;){for(var W=0;W>BigInt(32)));Rj(z.K,m.T,m.K);break;default:m=$ij(J),Rj(z.K,m.T,m.K)}}}; +GO=function(z,J,m){J=lQ(J);J!=null&&J!=null&&(v0(z,m,0),gUu(z.K,J))}; +stj=function(z,J,m){J=J==null||typeof J==="boolean"?J:typeof J==="number"?!!J:void 0;J!=null&&(v0(z,m,0),z.K.K.push(J?1:0))}; +rsz=function(z,J,m){J=nW(J);J!=null&&sJ(z,m,ouu(J))}; +zvu=function(z,J,m,e,T){J=jtf(J,e);J!=null&&(m=Mn1(z,m),T(J,z),As4(z,m))}; +msq=function(){this.K=J5E;this.isRepeated=0;this.T=lW;this.defaultValue=void 0}; +evq=function(z){return function(){var J=new xib;ot(this);LYu(this.eE,J,EW(wm,lN,qE,z));QI(J,J.K.end());for(var m=new Uint8Array(J.T),e=J.S,T=e.length,E=0,Z=0;Z>>31)&4294967295;q=T[0];var O=T[1],G=T[2],n=T[3],C=T[4];for(I=0;I<80;I++){if(I<40)if(I<20){var K=n^O&(G^n);var f=1518500249}else K=O^G^n,f=1859775393;else I<60?(K=O&G|n&(O|G),f=2400959708):(K=O^G^n,f=3395469782);K=((q<<5|q>>>27)&4294967295)+K+C+f+d[I]&4294967295;C=n;n=G;G=(O<<30|O>>>2)&4294967295;O=q;q=K}T[0]=T[0]+q&4294967295;T[1]=T[1]+O&4294967295;T[2]= +T[2]+G&4294967295;T[3]=T[3]+n&4294967295;T[4]=T[4]+C&4294967295} +function m(q,d){if(typeof q==="string"){q=unescape(encodeURIComponent(q));for(var I=[],O=0,G=q.length;O=56;I--)E[I]=d&255,d>>>=8;J(E);for(I=d=0;I<5;I++)for(var O=24;O>=0;O-=8)q[d++]=T[I]>>O&255;return q} +for(var T=[],E=[],Z=[],c=[128],W=1;W<64;++W)c[W]=0;var l,w;z();return{reset:z,update:m,digest:e,JG:function(){for(var q=e(),d="",I=0;I4);T++)J[rm(z[T])]||(m+="\nInner error "+e++ +": ",z[T].stack&&z[T].stack.indexOf(z[T].toString())==0||(m+=typeof z[T]==="string"?z[T]:z[T].message+"\n"),m+=v5(z[T],J));T")!=-1&&(z=z.replace(Si1,">")),z.indexOf('"')!=-1&&(z=z.replace(f_j,""")),z.indexOf("'")!=-1&&(z=z.replace(DsR,"'")),z.indexOf("\x00")!=-1&&(z=z.replace(bWq,"�")));return z}; +g.Ty=function(z){return z==null?"":String(z)}; +E8=function(z){for(var J=0,m=0;m>>0;return J}; +ZL=function(z){var J=Number(z);return J==0&&g.CN(z)?NaN:J}; +$sq=function(z){return String(z).replace(/\-([a-z])/g,function(J,m){return m.toUpperCase()})}; +gjs=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; +xs1=function(z){return z.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(J,m,e){return m+e.toUpperCase()})}; +Myj=function(z){var J=1;z=z.split(":");for(var m=[];J>0&&z.length;)m.push(z.shift()),J--;z.length&&m.push(z.join(":"));return m}; +FT=function(z){this.K=z||{cookie:""}}; +iu=function(z){z=(z.K.cookie||"").split(";");for(var J=[],m=[],e,T,E=0;E/g,">").replace(/"/g,""").replace(/'/g,"'");return V2(z)}; +HWq=function(z){var J=Pm("");return V2(z.map(function(m){return P5(Pm(m))}).join(P5(J).toString()))}; +Qaj=function(z){var J;if(!Usb.test("div"))throw Error("");if(Rvq.indexOf("DIV")!==-1)throw Error("");var m="":(z=HWq(J.map(function(e){return e instanceof uN?e:Pm(String(e))})),m+=">"+z.toString()+""); +return V2(m)}; +kYR=function(z){for(var J="",m=Object.keys(z),e=0;e2&&T81(T,Z,e,2);return Z}; +T81=function(z,J,m,e){function T(c){c&&J.appendChild(typeof c==="string"?z.createTextNode(c):c)} +for(;e0)T(E);else{a:{if(E&&typeof E.length=="number"){if(g.QR(E)){var Z=typeof E.item=="function"||typeof E.item=="string";break a}if(typeof E==="function"){Z=typeof E.item=="function";break a}}Z=!1}g.de(Z?g.en(E):E,T)}}}; +g.EX=function(z){return eX(document,z)}; +eX=function(z,J){J=String(J);z.contentType==="application/xhtml+xml"&&(J=J.toLowerCase());return z.createElement(J)}; +g.Z$=function(z){return document.createTextNode(String(z))}; +g.FD=function(z,J){z.appendChild(J)}; +g.iV=function(z){for(var J;J=z.firstChild;)z.removeChild(J)}; +cF=function(z,J,m){z.insertBefore(J,z.childNodes[m]||null)}; +g.WF=function(z){return z&&z.parentNode?z.parentNode.removeChild(z):null}; +g.lV=function(z,J){if(!z||!J)return!1;if(z.contains&&J.nodeType==1)return z==J||z.contains(J);if(typeof z.compareDocumentPosition!="undefined")return z==J||!!(z.compareDocumentPosition(J)&16);for(;J&&z!=J;)J=J.parentNode;return J==z}; +Hm=function(z){return z.nodeType==9?z:z.ownerDocument||z.document}; +g.w2=function(z,J){if("textContent"in z)z.textContent=J;else if(z.nodeType==3)z.data=String(J);else if(z.firstChild&&z.firstChild.nodeType==3){for(;z.lastChild!=z.firstChild;)z.removeChild(z.lastChild);z.firstChild.data=String(J)}else g.iV(z),z.appendChild(Hm(z).createTextNode(String(J)))}; +ZPR=function(z){return z.tagName=="A"&&z.hasAttribute("href")||z.tagName=="INPUT"||z.tagName=="TEXTAREA"||z.tagName=="SELECT"||z.tagName=="BUTTON"?!z.disabled&&(!z.hasAttribute("tabindex")||Ecb(z)):z.hasAttribute("tabindex")&&Ecb(z)}; +Ecb=function(z){z=z.tabIndex;return typeof z==="number"&&z>=0&&z<32768}; +d2=function(z,J,m){if(!J&&!m)return null;var e=J?String(J).toUpperCase():null;return qu(z,function(T){return(!e||T.nodeName==e)&&(!m||typeof T.className==="string"&&g.s1(T.className.split(/\s+/),m))},!0)}; +qu=function(z,J,m){z&&!m&&(z=z.parentNode);for(m=0;z;){if(J(z))return z;z=z.parentNode;m++}return null}; +tP=function(z){this.K=z||g.VR.document||document}; +Im=function(z){z=jy(z);ot(this);this.eE=z}; +OX=function(z){z=jy(z);ot(this);this.eE=z}; +pL=function(z){z=jy(z);ot(this);this.eE=z}; +Fw4=function(z,J){d8(z,OX,1,J)}; +yr=function(z){z=jy(z);ot(this);this.eE=z}; +c_q=function(z,J){J=J===void 0?iPb:J;if(!Nu){var m;z=(m=z.navigator)==null?void 0:m.userAgentData;if(!z||typeof z.getHighEntropyValues!=="function"||z.brands&&typeof z.brands.map!=="function")return Promise.reject(Error("UACH unavailable"));m=(z.brands||[]).map(function(T){var E=new OX;E=XS(E,1,T.brand);return XS(E,2,T.version)}); +Fw4(Hv(Gb,2,F7(z.mobile)),m);Nu=z.getHighEntropyValues(J)}var e=new Set(J);return Nu.then(function(T){var E=Gb.clone();e.has("platform")&&XS(E,3,T.platform);e.has("platformVersion")&&XS(E,4,T.platformVersion);e.has("architecture")&&XS(E,5,T.architecture);e.has("model")&&XS(E,6,T.model);e.has("uaFullVersion")&&XS(E,7,T.uaFullVersion);return E}).catch(function(){return Gb.clone()})}; +XD=function(z){z=jy(z);ot(this);this.eE=z}; +Wws=function(z){z=jy(z);ot(this);this.eE=z}; +nL=function(z){z=jy(z,4);ot(this);this.eE=z}; +CL=function(z){z=jy(z,36);ot(this);this.eE=z}; +am=function(z){z=jy(z,19);ot(this);this.eE=z}; +KL=function(z,J){this.Nb=J=J===void 0?!1:J;this.uach=this.locale=null;this.T=0;this.isFinal=!1;this.K=new am;Number.isInteger(z)&&this.K.GP(z);J||(this.locale=document.documentElement.getAttribute("lang"));lFR(this,new XD)}; +lFR=function(z,J){qc(z.K,XD,1,J);Nc(J,1)||Yc(J,1,1);z.Nb||(J=BF(z),yI(J,5)||XS(J,5,z.locale));z.uach&&(J=BF(z),lW(J,pL,9)||qc(J,pL,9,z.uach))}; +w0E=function(z,J){z.T=J}; +qJu=function(z){var J=J===void 0?iPb:J;var m=z.Nb?void 0:m0();m?c_q(m,J).then(function(e){z.uach=e;e=BF(z);qc(e,pL,9,z.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)}; +BF=function(z){z=lW(z.K,XD,1);var J=lW(z,yr,11);J||(J=new yr,qc(z,yr,11,J));return J}; +dcq=function(z){return g.JM?"webkit"+z:z.toLowerCase()}; +g.SX=function(z,J,m,e){this.U=z;this.Z=J;this.K=this.S=z;this.Y=m||0;this.V=e||2}; +g.fL=function(z){z.K=Math.min(z.Z,z.K*z.V);z.S=Math.min(z.Z,z.K+(z.Y?Math.round(z.Y*(Math.random()-.5)*2*z.K):0));z.T++}; +IFz=function(z){z=jy(z,8);ot(this);this.eE=z}; +J5E=function(z){z=jy(z);ot(this);this.eE=z}; +$L=function(z){g.h.call(this);var J=this;this.componentId="";this.K=[];this.h6="";this.pageId=null;this.Lh=this.wb=-1;this.V=this.experimentIds=null;this.Y=this.U=0;this.B=null;this.fh=this.Tf=0;this.qD=1;this.timeoutMillis=0;this.x3=!1;this.logSource=z.logSource;this.xk=z.xk||function(){}; +this.S=new KL(z.logSource,z.Nb);this.network=z.network||null;this.u1=z.u1||null;this.X=z.Cz1||null;this.sessionIndex=z.sessionIndex||null;this.Ux=z.Ux||!1;this.logger=null;this.withCredentials=!z.tC;this.Nb=z.Nb||!1;this.Ry=!this.Nb&&!!m0()&&!!m0().navigator&&m0().navigator.sendBeacon!==void 0;this.Gf=typeof URLSearchParams!=="undefined"&&!!(new URL(D$())).searchParams&&!!(new URL(D$())).searchParams.set;var m=Yc(new XD,1,1);lFR(this.S,m);this.Z=new g.SX(1E4,3E5,.1);z=OPu(this,z.Ds);this.T=new lu(this.Z.getValue(), +z);this.Qx=new lu(6E5,z);this.Ux||this.Qx.start();this.Nb||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){bV(J);var e;(e=J.B)==null||e.flush()}}),document.addEventListener("pagehide",function(){bV(J); +var e;(e=J.B)==null||e.flush()}))}; +OPu=function(z,J){return z.Gf?J?function(){J().then(function(){z.flush()})}:function(){z.flush()}:function(){}}; +p0E=function(z){z.X||(z.X=D$());try{return(new URL(z.X)).toString()}catch(J){return(new URL(z.X,m0().location.origin)).toString()}}; +g2=function(z,J,m){z.B&&z.B.ML(J,m)}; +y_u=function(z,J,m){m=m===void 0?z.xk():m;var e=e===void 0?z.withCredentials:e;var T={},E=new URL(p0E(z));m&&(T.Authorization=m);z.sessionIndex&&(T["X-Goog-AuthUser"]=z.sessionIndex,E.searchParams.set("authuser",z.sessionIndex));z.pageId&&(Object.defineProperty(T,"X-Goog-PageId",{value:z.pageId}),E.searchParams.set("pageId",z.pageId));return{url:E.toString(),body:J,jz:1,requestHeaders:T,requestType:"POST",withCredentials:e,timeoutMillis:z.timeoutMillis}}; +bV=function(z){z.S.isFinal=!0;z.flush();z.S.isFinal=!1}; +G81=function(z){N8q(z,function(J,m){J=new URL(J);J.searchParams.set("format","json");var e=!1;try{e=m0().navigator.sendBeacon(J.toString(),m.G7())}catch(T){}e||(z.Ry=!1);return e})}; +N8q=function(z,J){if(z.K.length!==0){var m=new URL(p0E(z));m.searchParams.delete("format");var e=z.xk();e&&m.searchParams.set("auth",e);m.searchParams.set("authuser",z.sessionIndex||"0");for(e=0;e<10&&z.K.length;++e){var T=z.K.slice(0,32),E=z.S.build(T,z.U,z.Y,z.u1,z.Tf,z.fh);if(!J(m.toString(),E)){++z.Y;break}z.U=0;z.Y=0;z.Tf=0;z.fh=0;z.K=z.K.slice(T.length)}z.T.enabled&&z.T.stop()}}; +D$=function(){return"https://play.google.com/log?format=json&hasfast=true"}; +xL=function(){this.GN=typeof AbortController!=="undefined"}; +Mu=function(z,J){g.h.call(this);this.logSource=z;this.sessionIndex=J;this.o8="https://play.google.com/log?format=json&hasfast=true";this.T=null;this.U=!1;this.network=null;this.componentId="";this.K=this.u1=null;this.S=!1;this.pageId=null}; +X0q=function(z,J){z.T=J;return z}; +ncR=function(z,J){z.network=J;return z}; +YJE=function(z,J){z.K=J}; +CWu=function(z){z.S=!0;return z}; +AM=function(z,J,m,e,T,E,Z){z=z===void 0?-1:z;J=J===void 0?"":J;m=m===void 0?"":m;e=e===void 0?!1:e;T=T===void 0?"":T;g.h.call(this);this.logSource=z;this.componentId=J;E?J=E:(z=new Mu(z,"0"),z.componentId=J,g.u(this,z),m!==""&&(z.o8=m),e&&(z.U=!0),T&&X0q(z,T),Z&&ncR(z,Z),J=z.build());this.K=J}; +aFE=function(z){this.K=z}; +om=function(z,J,m){this.T=z;this.U=J;this.fields=m||[];this.K=new Map}; +iWb=function(z){return z.fields.map(function(J){return J.fieldType})}; +Frb=function(z){return z.fields.map(function(J){return J.fieldName})}; +jX=function(z,J){om.call(this,z,3,J)}; +hM=function(z,J){om.call(this,z,2,J)}; +g.uV=function(z,J){this.type=z;this.currentTarget=this.target=J;this.defaultPrevented=this.T=!1}; +Vr=function(z,J){g.uV.call(this,z?z.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.K=null;z&&this.init(z,J)}; +PF=function(z){return!(!z||!z[Kwz])}; +SJq=function(z,J,m,e,T){this.listener=z;this.proxy=null;this.src=J;this.type=m;this.capture=!!e;this.Ij=T;this.key=++B8f;this.removed=this.wP=!1}; +tM=function(z){z.removed=!0;z.listener=null;z.proxy=null;z.src=null;z.Ij=null}; +HF=function(z){this.src=z;this.listeners={};this.K=0}; +g.UX=function(z,J){var m=J.type;m in z.listeners&&g.zC(z.listeners[m],J)&&(tM(J),z.listeners[m].length==0&&(delete z.listeners[m],z.K--))}; +Qr=function(z,J,m,e){for(var T=0;T1)));Z=Z.next)T||(E=Z);T&&(m.K==0&&e==1?Qjq(m,J):(E?(e=E,e.next==m.U&&(m.U=e),e.next=e.next.next):vcb(m),sjb(m,T,3,J)))}z.S=null}else nB(z,3,J)}; +B1=function(z,J){z.T||z.K!=2&&z.K!=3||r_R(z);z.U?z.U.next=J:z.T=J;z.U=J}; +z_q=function(z,J,m,e){var T=CB(null,null,null);T.K=new g.YV(function(E,Z){T.S=J?function(c){try{var W=J.call(e,c);E(W)}catch(l){Z(l)}}:E; +T.T=m?function(c){try{var W=m.call(e,c);W===void 0&&c instanceof fB?Z(c):E(W)}catch(l){Z(l)}}:Z}); +T.K.S=z;B1(z,T);return T.K}; +nB=function(z,J,m){z.K==0&&(z===m&&(J=3,m=new TypeError("Promise cannot resolve to itself")),z.K=1,Ucu(m,z.Ui2,z.Dii,z)||(z.V=m,z.K=J,z.S=null,r_R(z),J!=3||m instanceof fB||JBq(z,m)))}; +Ucu=function(z,J,m,e){if(z instanceof g.YV)return Lwq(z,J,m,e),!0;if(z)try{var T=!!z.$goog_Thenable}catch(Z){T=!1}else T=!1;if(T)return z.then(J,m,e),!0;if(g.QR(z))try{var E=z.then;if(typeof E==="function")return mEz(z,E,J,m,e),!0}catch(Z){return m.call(e,Z),!0}return!1}; +mEz=function(z,J,m,e,T){function E(W){c||(c=!0,e.call(T,W))} +function Z(W){c||(c=!0,m.call(T,W))} +var c=!1;try{J.call(z,Z,E)}catch(W){E(W)}}; +r_R=function(z){z.Y||(z.Y=!0,g.Ow(z.tY,z))}; +vcb=function(z){var J=null;z.T&&(J=z.T,z.T=J.next,J.next=null);z.T||(z.U=null);return J}; +sjb=function(z,J,m,e){if(m==3&&J.T&&!J.U)for(;z&&z.Z;z=z.S)z.Z=!1;if(J.K)J.K.S=null,e_z(J,m,e);else try{J.U?J.S.call(J.context):e_z(J,m,e)}catch(T){Tmu.call(null,T)}A_u(HPE,J)}; +e_z=function(z,J,m){J==2?z.S.call(z.context,m):z.T&&z.T.call(z.context,m)}; +JBq=function(z,J){z.Z=!0;g.Ow(function(){z.Z&&Tmu.call(null,J)})}; +fB=function(z){O1.call(this,z)}; +g.DB=function(z,J){g.ZB.call(this);this.ai=z||1;this.r5=J||g.VR;this.Y8=(0,g.ru)(this.RBf,this);this.Qt=g.mv()}; +g.gB=function(z,J,m){if(typeof z==="function")m&&(z=(0,g.ru)(z,m));else if(z&&typeof z.handleEvent=="function")z=(0,g.ru)(z.handleEvent,z);else throw Error("Invalid listener argument");return Number(J)>2147483647?-1:g.VR.setTimeout(z,J||0)}; +xV=function(z,J){var m=null;return(new g.YV(function(e,T){m=g.gB(function(){e(J)},z); +m==-1&&T(Error("Failed to schedule timer."))})).IF(function(e){g.VR.clearTimeout(m); +throw e;})}; +g.Me=function(z){g.h.call(this);this.V=z;this.U=0;this.S=100;this.Z=!1;this.T=new Map;this.Y=new Set;this.flushInterval=3E4;this.K=new g.DB(this.flushInterval);this.K.listen("tick",this.Ms,!1,this);g.u(this,this.K)}; +EX1=function(z){z.K.enabled||z.K.start();z.U++;z.U>=z.S&&z.Ms()}; +ZIq=function(z,J){return z.Y.has(J)?void 0:z.T.get(J)}; +F$j=function(z){for(var J=0;J=0){var E=z[m].substring(0,e);T=z[m].substring(e+1)}else E=z[m];J(E,T?mP(T):"")}}}; +kV=function(z,J){if(!J)return z;var m=z.indexOf("#");m<0&&(m=z.length);var e=z.indexOf("?");if(e<0||e>m){e=m;var T=""}else T=z.substring(e+1,m);z=[z.slice(0,e),T,z.slice(m)];m=z[1];z[1]=J?m?m+"&"+J:J:m;return z[0]+(z[1]?"?"+z[1]:"")+z[2]}; +LB=function(z,J,m){if(Array.isArray(J))for(var e=0;e=0&&Jm)T=m;e+=J.length+1;return mP(z.slice(e,T!==-1?T:0))}; +J2=function(z,J){for(var m=z.search(NCq),e=0,T,E=[];(T=yPR(z,e,J,m))>=0;)E.push(z.substring(e,T)),e=Math.min(z.indexOf("&",T)+1||m,m);E.push(z.slice(e));return E.join("").replace(Gyq,"$1")}; +Xmq=function(z,J,m){return rB(J2(z,J),J,m)}; +g.mU=function(z){g.ZB.call(this);this.headers=new Map;this.x3=z||null;this.S=!1;this.K=null;this.X="";this.T=0;this.U="";this.Z=this.Tf=this.B=this.fh=!1;this.Ry=0;this.Y=null;this.wb="";this.V=!1}; +Y8u=function(z,J,m,e,T,E,Z){var c=new g.mU;nfj.push(c);J&&c.listen("complete",J);c.bT("ready",c.HF);E&&(c.Ry=Math.max(0,E));Z&&(c.V=Z);c.send(z,m,e,T)}; +aLb=function(z,J){z.S=!1;z.K&&(z.Z=!0,z.K.abort(),z.Z=!1);z.U=J;z.T=5;Cuz(z);eB(z)}; +Cuz=function(z){z.fh||(z.fh=!0,z.dispatchEvent("complete"),z.dispatchEvent("error"))}; +KPz=function(z){if(z.S&&typeof TH!="undefined")if(z.B&&g.EA(z)==4)setTimeout(z.bq.bind(z),0);else if(z.dispatchEvent("readystatechange"),z.isComplete()){z.getStatus();z.S=!1;try{if(ZO(z))z.dispatchEvent("complete"),z.dispatchEvent("success");else{z.T=6;try{var J=g.EA(z)>2?z.K.statusText:""}catch(m){J=""}z.U=J+" ["+z.getStatus()+"]";Cuz(z)}}finally{eB(z)}}}; +eB=function(z,J){if(z.K){z.Y&&(clearTimeout(z.Y),z.Y=null);var m=z.K;z.K=null;J||z.dispatchEvent("ready");try{m.onreadystatechange=null}catch(e){}}}; +ZO=function(z){var J=z.getStatus();a:switch(J){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var m=!0;break a;default:m=!1}if(!m){if(J=J===0)z=g.t0(1,String(z.X)),!z&&g.VR.self&&g.VR.self.location&&(z=g.VR.self.location.protocol.slice(0,-1)),J=!BCs.test(z?z.toLowerCase():"");m=J}return m}; +g.EA=function(z){return z.K?z.K.readyState:0}; +g.FF=function(z){try{return z.K?z.K.responseText:""}catch(J){return""}}; +g.iX=function(z){try{if(!z.K)return null;if("response"in z.K)return z.K.response;switch(z.wb){case "":case "text":return z.K.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in z.K)return z.K.mozResponseArrayBuffer}return null}catch(J){return null}}; +g.S8f=function(z){var J={};z=(z.K&&g.EA(z)>=2?z.K.getAllResponseHeaders()||"":"").split("\r\n");for(var m=0;m>1,J),A2(z,z.length>>1)]}; +ZLu=function(z){var J=g.y(EL1(z,oZ));z=J.next().value;J=J.next().value;return z.toString(16)+J.toString(16)}; +F0b=function(z,J){var m=EL1(J);z=new Uint32Array(z.buffer);J=z[0];var e=g.y(m);m=e.next().value;e=e.next().value;for(var T=1;T>>8|Z<<24,Z+=E|0,Z^=c+38293,E=E<<3|E>>>29,E^=Z,W=W>>>8|W<<24,W+=c|0,W^=l+38293,c=c<<3|c>>>29,c^=W;E=[E,Z];z[T]^=E[0];T+1=m?(globalThis.sessionStorage.removeItem(z),["e"]):["a",new Uint8Array(e.buffer,J+4)]}; +jB=function(z,J,m){m=m===void 0?[]:m;this.maxItems=z;this.K=J===void 0?0:J;this.T=m}; +W0s=function(z){var J=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!J)return new jB(z);var m=J.split(",");if(m.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new jB(z);J=m.slice(1);J.length===1&&J[0]===""&&(J=[]);m=Number(m[0]);return isNaN(m)||m<0||m>J.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new jB(z)):new jB(z,m,J)}; +l$4=function(z,J){this.logger=J;try{var m=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(e){m=!1}m&&(this.index=W0s(z))}; +wFq=function(z,J,m,e,T){var E=z.index?dE(z.logger,function(){return iLj(z.index,ZLu(J),m,e,T)},"W"):"u"; +z.logger.G_(E)}; +qXb=function(z,J,m){var e=g.y(z.index?dE(z.logger,function(){return cMs(ZLu(J),m)},"R"):["u"]),T=e.next().value; +e=e.next().value;z.logger.UH(T);return e}; +OLq=function(z){function J(){m-=e;m-=T;m^=T>>>13;e-=T;e-=m;e^=m<<8;T-=m;T-=e;T^=e>>>13;m-=e;m-=T;m^=T>>>12;e-=T;e-=m;e^=m<<16;T-=m;T-=e;T^=e>>>5;m-=e;m-=T;m^=T>>>3;e-=T;e-=m;e^=m<<10;T-=m;T-=e;T^=e>>>15} +z=duj(z);for(var m=2654435769,e=2654435769,T=314159265,E=z.length,Z=E,c=0;Z>=12;Z-=12,c+=12)m+=h2(z,c),e+=h2(z,c+4),T+=h2(z,c+8),J();T+=E;switch(Z){case 11:T+=z[c+10]<<24;case 10:T+=z[c+9]<<16;case 9:T+=z[c+8]<<8;case 8:e+=z[c+7]<<24;case 7:e+=z[c+6]<<16;case 6:e+=z[c+5]<<8;case 5:e+=z[c+4];case 4:m+=z[c+3]<<24;case 3:m+=z[c+2]<<16;case 2:m+=z[c+1]<<8;case 1:m+=z[c+0]}J();return I$z.toString(T)}; +duj=function(z){for(var J=[],m=0;m>7,z.error.code]);e.set(m,4);return e}; +Qu=function(z,J,m){uX.call(this,z);this.U=J;this.clientState=m;this.K="S";this.S="q"}; +LS=function(z){return globalThis.TextEncoder?(new TextEncoder).encode(z):g.nN(z)}; +N2b=function(z,J,m){return z instanceof $a?Urz(z,m,J,1):z.cn(m)}; +vY=function(z,J,m){g.h.call(this);var e=this;this.logger=z;this.onError=J;this.state=m;this.V=0;this.T=void 0;this.addOnDisposeCallback(function(){e.K&&(e.K.dispose(),e.K=void 0)})}; +Gbu=function(z,J){J=J instanceof E1?J:new E1(5,"TVD:error",J);return z.reportError(J)}; +sA=function(z,J,m){try{if(z.mF())throw new E1(21,"BNT:disposed");if(!z.K&&z.T)throw z.T;var e,T;return(T=(e=XFq(z,J,m))!=null?e:nLu(z,J,m))!=null?T:YXb(z,J,m)}catch(E){if(!J.U$)throw Gbu(z,E);return CVq(z,m,E)}}; +XFq=function(z,J,m){var e;return(e=z.K)==null?void 0:t2(e,function(){return rE(z,J)},m,function(T){var E; +if(z.K instanceof HY&&((E=J.hs)==null?0:E.f6))try{var Z;(Z=z.cache)==null||wFq(Z,rE(z,J),T,J.hs.B0,z.X-120)}catch(c){z.reportError(new E1(24,"ELX:write",c))}})}; +nLu=function(z,J,m){var e;if((e=J.hs)!=null&&e.dF)try{var T,E=(T=z.cache)==null?void 0:qXb(T,rE(z,J),J.hs.B0);return E?m?dE(z.logger,function(){return g.GC(E,2)},"a"):E:void 0}catch(Z){z.reportError(new E1(23,"RXO:read",Z))}}; +YXb=function(z,J,m){var e={stack:[],error:void 0,hasError:!1};try{if(!J.SV)throw new E1(29,"SDF:notready");return t2(Nuq(e,new Qu(z.logger,z.V,z.state)),function(){return rE(z,J)},m)}catch(T){e.error=T,e.hasError=!0}finally{GEu(e)}}; +CVq=function(z,J,m){var e={stack:[],error:void 0,hasError:!1};try{var T=Gbu(z,m);return t2(Nuq(e,new ka(z.logger,T)),function(){return[]},J)}catch(E){e.error=E,e.hasError=!0}finally{GEu(e)}}; +rE=function(z,J){return J.h1?J.h1:J.Up?dE(z.logger,function(){return J.h1=LS(J.Up)},"c"):[]}; +JV=function(z){var J;vY.call(this,z.xP.bk(),(J=z.onError)!=null?J:function(){},2); +var m=this;this.Z=0;this.U=new g.CS;this.S=!1;this.xP=z.xP;this.fJ=z.fJ;this.d5=Object.assign({},a$f,z.d5||{});z.QC&&(this.logger instanceof N8||this.logger instanceof OA)&&this.logger.A2(z.QC);this.c5=z.c5||!1;if(K0u(z)){var e=this.xP;this.Y=function(){return vfq(e).catch(function(Z){Z=m.reportError(new E1(m.S?20:32,"TRG:Disposed",Z));m.T=Z;var c;(c=m.K)==null||c.dispose();m.K=void 0;m.U.reject(Z)})}; +siu(e,function(){return void zd(m)}); +e.X===2&&zd(this)}else this.Y=z.VnD,zd(this);var T=this.logger.share();T.o3("o");var E=new wE(T,"o");this.U.promise.then(function(){E.done();T.U6();T.dispose()},function(){return void T.dispose()}); +this.addOnDisposeCallback(function(){m.S||(m.T?m.logger.U6():(m.T=m.reportError(new E1(32,"TNP:Disposed")),m.logger.U6(),m.U.reject(m.T)))}); +g.u(this,this.logger)}; +B2R=function(z,J){if(!(J instanceof E1))if(J instanceof A0){var m=Error(J.toString());m.stack=J.stack;J=new E1(11,"EBH:Error",m)}else J=new E1(12,"BSO:Unknown",J);return z.reportError(J)}; +zd=function(z){var J,m,e,T,E,Z,c,W,l,w,q,d,I,O,G;return g.D(function(n){switch(n.K){case 1:J=void 0;z.Z++;m=new g.CS;z.xP instanceof gE&&z.xP.U.push(m.promise);if(!z.c5){n.U2(2);break}e=new g.CS;setTimeout(function(){return void e.resolve()}); +return g.S(n,e.promise,2);case 2:return T=z.logger.share(),g.Yu(n,4,5),z.state=5,E={},Z=[],g.S(n,M8(z.xP.snapshot({Up:E,Fa:Z}),z.d5.Xmh,function(){return Promise.reject(new E1(15,"MDA:Timeout"))}),7); +case 7:c=n.T;if(z.mF())throw new E1(z.S?20:32,"MDA:Disposed");W=Z[0];z.state=6;return g.S(n,M8(N2b(z.fJ,T,c),z.d5.UO,function(){return Promise.reject(new E1(10,"BWB:Timeout"))}),8); +case 8:l=n.T;if(z.mF())throw new E1(z.S?20:32,"BWB:Disposed");z.state=7;J=dE(T,function(){var K=SXz(z,l,m,W);K.T.promise.then(function(){return void z.Y()}).catch(function(){}); +return K},"i"); +case 5:g.Bq(n);T.dispose();g.fq(n,6);break;case 4:w=g.Kq(n);(q=J)==null||q.dispose();if(!z.T){d=B2R(z,w);m.resolve();var C;if(C=z.xP instanceof gE&&z.Z<2)a:if(w instanceof E1)C=w.code!==32&&w.code!==20&&w.code!==10;else{if(w instanceof A0)switch(w.code){case 2:case 13:case 14:case 4:break;default:C=!1;break a}C=!0}if(C)return I=(1+Math.random()*.25)*(z.S?6E4:1E3),O=setTimeout(function(){return void z.Y()},I),z.addOnDisposeCallback(function(){return void clearTimeout(O)}),n.return(); +z.T=d}T.YA(z.S?13:14);z.U.reject(z.T);return n.return();case 6:z.state=8,z.Z=0,(G=z.K)==null||G.dispose(),z.K=J,z.S=!0,z.U.resolve(),g.nq(n)}})}; +SXz=function(z,J,m,e){var T=pP(J,2)*1E3;if(T<=0)throw new E1(31,"TTM:Invalid");if(yI(J,4))return new RZ(z.logger,yI(J,4),T);if(!pP(J,3))return new UA(z.logger,Sn(ry(J,1)),T);if(!e)throw new E1(4,"PMD:Undefined");e=e(Sn(ry(J,1)));if(!(e instanceof Function))throw new E1(16,"APF:Failed");z.X=Math.floor((Date.now()+T)/1E3);z=new HY(z.logger,e,pP(J,3),T);z.addOnDisposeCallback(function(){return void m.resolve()}); +return z}; +m_=function(){var z=0,J;return function(m){J||(J=new IZ);var e=new Qu(J,z,1),T=t2(e,function(){return LS(m)},!0); +e.dispose();z++;return T}}; +eJ=function(z){z=jy(z);ot(this);this.eE=z}; +f$u=function(z,J,m){this.rN=z;this.RE=J;this.metadata=m}; +Td=function(z,J){J=J===void 0?{}:J;this.BWx=z;this.metadata=J;this.status=null}; +E7=function(z,J,m,e,T){this.name=z;this.methodType="unary";this.requestType=J;this.responseType=m;this.K=e;this.T=T}; +ZK=function(z){z=jy(z);ot(this);this.eE=z}; +Fn=function(z){z=jy(z);ot(this);this.eE=z}; +ie=function(z){z=jy(z);ot(this);this.eE=z}; +cD=function(z,J){this.V=z.BEf;this.X=J;this.K=z.xhr;this.S=[];this.Z=[];this.Y=[];this.U=[];this.T=[];this.V&&Du1(this)}; +xuf=function(z,J){var m=new bLb;g.sX(z.K,"complete",function(){if(ZO(z.K)){var e=g.FF(z.K);if(J&&z.K.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");e=atob(e)}try{var T=z.X(e)}catch(c){WD(z,le(new A0(13,"Error when deserializing response data; error: "+c+(", response: "+e)),m));return}e=iIq(z.K.getStatus());wA(z,q_(z));e==0?$u1(z,T):WD(z,le(new A0(e,"Xhr succeeded but the status code is not 200"),m))}else{e=g.FF(z.K);T=q_(z);if(e){var E=gLq(z, +e);e=E.code;var Z=E.details;E=E.metadata}else e=2,Z="Rpc failed due to xhr error. uri: "+String(z.K.X)+", error code: "+z.K.T+", error: "+z.K.getLastError(),E=T;wA(z,T);WD(z,le(new A0(e,Z,E),m))}})}; +Du1=function(z){z.V.py("data",function(J){if("1"in J){var m=J["1"];try{var e=z.X(m)}catch(T){WD(z,new A0(13,"Error when deserializing response data; error: "+T+(", response: "+m)))}e&&$u1(z,e)}if("2"in J)for(J=gLq(z,J["2"]),m=0;m-1&&z.splice(J,1)}; +$u1=function(z,J){for(var m=0;m>4&15).toString(16)+(z&15).toString(16)}; +a$=function(z,J){this.T=this.K=null;this.S=z||null;this.U=!!J}; +fv=function(z){z.K||(z.K=new Map,z.T=0,z.S&&RY(z.S,function(J,m){z.add(mP(J),m)}))}; +uDj=function(z,J){fv(z);J=DK(z,J);return z.K.has(J)}; +g.VXu=function(z,J,m){z.remove(J);m.length>0&&(z.S=null,z.K.set(DK(z,J),g.en(m)),z.T=z.T+m.length)}; +DK=function(z,J){J=String(J);z.U&&(J=J.toLowerCase());return J}; +oLq=function(z,J){J&&!z.U&&(fv(z),z.S=null,z.K.forEach(function(m,e){var T=e.toLowerCase();e!=T&&(this.remove(e),g.VXu(this,T,m))},z)); +z.U=J}; +g.PVz=function(z){var J="";g.CY(z,function(m,e){J+=e;J+=":";J+=m;J+="\r\n"}); +return J}; +g.be=function(z,J,m){if(g.xf(m))return z;m=g.PVz(m);if(typeof z==="string")return rB(z,g.JP(J),m);g.BD(z,J,m);return z}; +g.$z=function(z){g.h.call(this);this.T=z;this.K={}}; +tX4=function(z,J,m,e,T,E){if(Array.isArray(m))for(var Z=0;Z0&&(J[T]=e)},z); +return J}; +qwq=function(z){z=FA(z);var J=[];g.CY(z,function(m,e){e in Object.prototype||typeof m!="undefined"&&J.push([e,":",m].join(""))}); +return J}; +IBf=function(z){Tq(z,"od",dej);Tq(z,"opac",ix).K=!0;Tq(z,"sbeos",ix).K=!0;Tq(z,"prf",ix).K=!0;Tq(z,"mwt",ix).K=!0;Tq(z,"iogeo",ix)}; +OBb=function(){this.K=this.d9=null}; +cN=function(){}; +lx=function(){if(!WN())throw Error();}; +WN=function(){return!(!w1||!w1.performance)}; +q7=function(z){return z?z.passive&&p1f()?z:z.capture||!1:!1}; +d1=function(z,J,m,e){return z.addEventListener?(z.addEventListener(J,m,q7(e)),!0):!1}; +Ig=function(z){return z.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[z.visibilityState||z.webkitVisibilityState||z.mozVisibilityState||""]||0}; +y01=function(){}; +NB1=function(){return($O||gg)&&xO?xO.mobile:!OT()&&(A4("iPod")||A4("iPhone")||A4("Android")||A4("IEMobile"))}; +OT=function(){return($O||gg)&&xO?!xO.mobile&&(A4("iPad")||A4("Android")||A4("Silk")):A4("iPad")||A4("Android")&&!A4("Mobile")||A4("Silk")}; +ph=function(z){try{return!!z&&z.location.href!=null&&ZN4(z,"foo")}catch(J){return!1}}; +yC=function(z,J){if(z)for(var m in z)Object.prototype.hasOwnProperty.call(z,m)&&J(z[m],m,z)}; +X1f=function(){var z=[];yC(Gw4,function(J){z.push(J)}); +return z}; +nVu=function(z){var J,m;return(m=(J=/https?:\/\/[^\/]+/.exec(z))==null?void 0:J[0])!=null?m:""}; +aBb=function(){var z=Ywf("IFRAME"),J={};g.de(Cyq(),function(m){z.sandbox&&z.sandbox.supports&&z.sandbox.supports(m)&&(J[m]=!0)}); +return J}; +Ywf=function(z,J){J=J===void 0?document:J;return J.createElement(String(z).toLowerCase())}; +KW4=function(z){for(var J=z;z&&z!=z.parent;)z=z.parent,ph(z)&&(J=z);return J}; +DeE=function(z){z=z||N7();for(var J=new BBq(g.VR.location.href,!1),m=null,e=z.length-1,T=e;T>=0;--T){var E=z[T];!m&&Sw1.test(E.url)&&(m=E);if(E.url&&!E.K){J=E;break}}T=null;E=z.length&&z[e].url;J.depth!==0&&E&&(T=z[e]);return new fB4(J,T,m)}; +N7=function(){var z=g.VR,J=[],m=null;do{var e=z;if(ph(e)){var T=e.location.href;m=e.document&&e.document.referrer||null}else T=m,m=null;J.push(new BBq(T||""));try{z=e.parent}catch(E){z=null}}while(z&&e!==z);e=0;for(z=J.length-1;e<=z;++e)J[e].depth=z-e;e=g.VR;if(e.location&&e.location.ancestorOrigins&&e.location.ancestorOrigins.length===J.length-1)for(z=1;zJ&&(J=m.length);return 3997-J-z.S.length-1}; +YK=function(z,J){this.K=z;this.depth=J}; +xeu=function(){function z(c,W){return c==null?W:c} +var J=N7(),m=Math.max(J.length-1,0),e=DeE(J);J=e.K;var T=e.T,E=e.S,Z=[];E&&Z.push(new YK([E.url,E.K?2:0],z(E.depth,1)));T&&T!=E&&Z.push(new YK([T.url,2],0));J.url&&J!=E&&Z.push(new YK([J.url,0],z(J.depth,m)));e=g.Ch(Z,function(c,W){return Z.slice(0,Z.length-W)}); +!J.url||(E||T)&&J!=E||(T=nVu(J.url))&&e.push([new YK([T,1],z(J.depth,m))]);e.push([]);return g.Ch(e,function(c){return gV1(m,c)})}; +gV1=function(z,J){g.ag(J,function(T){return T.depth>=0}); +var m=Kh(J,function(T,E){return Math.max(T,E.depth)},-1),e=Tgu(m+2); +e[0]=z;g.de(J,function(T){return e[T.depth+1]=T.K}); +return e}; +Mzu=function(){var z=z===void 0?xeu():z;return z.map(function(J){return nh(J)})}; +A0R=function(z){var J=!1;J=J===void 0?!1:J;w1.google_image_requests||(w1.google_image_requests=[]);var m=Ywf("IMG",w1.document);J&&(m.attributionSrc="");m.src=z;w1.google_image_requests.push(m)}; +BN=function(z){var J="Fy";if(z.Fy&&z.hasOwnProperty(J))return z.Fy;var m=new z;z.Fy=m;z.hasOwnProperty(J);return m}; +SL=function(){this.T=new y01;this.K=WN()?new lx:new cN}; +oVu=function(){fh();var z=w1.document;return!!(z&&z.body&&z.body.getBoundingClientRect&&typeof w1.setInterval==="function"&&typeof w1.clearInterval==="function"&&typeof w1.setTimeout==="function"&&typeof w1.clearTimeout==="function")}; +jYs=function(){fh();return Mzu()}; +hlu=function(){}; +fh=function(){var z=BN(hlu);if(!z.K){if(!w1)throw Error("Context has not been set and window is undefined.");z.K=BN(SL)}return z.K}; +D0=function(z){z=jy(z);ot(this);this.eE=z}; +uVu=function(z){this.S=z;this.K=-1;this.T=this.U=0}; +bx=function(z,J){return function(){var m=g.gu.apply(0,arguments);if(z.K>-1)return J.apply(null,g.X(m));try{return z.K=z.S.K.now(),J.apply(null,g.X(m))}finally{z.U+=z.S.K.now()-z.K,z.K=-1,z.T+=1}}}; +Vzb=function(z,J){this.T=z;this.S=J;this.K=new uVu(z)}; +Pyq=function(){this.K={}}; +HBz=function(){var z=$K().flags,J=tzq;z=z.K[J.key];if(J.valueType==="proto"){try{var m=JSON.parse(z);if(Array.isArray(m))return m}catch(e){}return J.defaultValue}return typeof z===typeof J.defaultValue?z:J.defaultValue}; +LWu=function(){this.S=void 0;this.T=this.Y=0;this.Z=-1;this.VQ=new eL;Tq(this.VQ,"mv",UeR).K=!0;Tq(this.VQ,"omid",ix);Tq(this.VQ,"epoh",ix).K=!0;Tq(this.VQ,"epph",ix).K=!0;Tq(this.VQ,"umt",ix).K=!0;Tq(this.VQ,"phel",ix).K=!0;Tq(this.VQ,"phell",ix).K=!0;Tq(this.VQ,"oseid",Rlu).K=!0;var z=this.VQ;z.K.sloi||(z.K.sloi=new JS);z.K.sloi.K=!0;Tq(this.VQ,"mm",g1);Tq(this.VQ,"ovms",kwz).K=!0;Tq(this.VQ,"xdi",ix).K=!0;Tq(this.VQ,"amp",ix).K=!0;Tq(this.VQ,"prf",ix).K=!0;Tq(this.VQ,"gtx",ix).K=!0;Tq(this.VQ, +"mvp_lv",ix).K=!0;Tq(this.VQ,"ssmol",ix).K=!0;Tq(this.VQ,"fmd",ix).K=!0;Tq(this.VQ,"gen204simple",ix);this.K=new Vzb(fh(),this.VQ);this.U=!1;this.flags=new Pyq}; +$K=function(){return BN(LWu)}; +QYb=function(z,J,m,e){if(Math.random()<(e||z.K))try{if(m instanceof Gq)var T=m;else T=new Gq,yC(m,function(Z,c){var W=T,l=W.U++;Z=XA(c,Z);W.K.push(l);W.T[l]=Z}); +var E=T.jO(z.T,"pagead2.googlesyndication.com","/pagead/gen_204?id="+J+"&");E&&(fh(),A0R(E))}catch(Z){}}; +vVu=function(z,J,m){m=m===void 0?{}:m;this.error=z;this.meta=m;this.context=J.context;this.msg=J.message||"";this.id=J.id||"jserror"}; +sY4=function(){var z=z===void 0?g.VR:z;return(z=z.performance)&&z.now&&z.timing?Math.floor(z.now()+z.timing.navigationStart):g.mv()}; +r0u=function(){var z=z===void 0?g.VR:z;return(z=z.performance)&&z.now?z.now():null}; +z1q=function(z,J,m){this.label=z;this.type=J;this.value=m;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; +M7=function(){var z=window;this.events=[];this.T=z||g.VR;var J=null;z&&(z.google_js_reporting_queue=z.google_js_reporting_queue||[],this.events=z.google_js_reporting_queue,J=z.google_measure_js_timing);this.K=xK()||(J!=null?J:Math.random()<1)}; +J2z=function(z){z&&AS&&xK()&&(AS.clearMarks("goog_"+z.label+"_"+z.uniqueId+"_start"),AS.clearMarks("goog_"+z.label+"_"+z.uniqueId+"_end"))}; +m8q=function(){var z=og;this.K=jL;this.Gv="jserror";this.sJ=!0;this.nw=null;this.T=this.Rp;this.z4=z===void 0?null:z}; +e1q=function(z,J,m){var e=hS;return bx($K().K.K,function(){try{if(e.z4&&e.z4.K){var T=e.z4.start(z.toString(),3);var E=J();e.z4.end(T)}else E=J()}catch(c){var Z=e.sJ;try{J2z(T),Z=e.T(z,new ux(VC(c)),void 0,m)}catch(W){e.Rp(217,W)}if(!Z)throw c;}return E})()}; +PN=function(z,J,m,e){return bx($K().K.K,function(){var T=g.gu.apply(0,arguments);return e1q(z,function(){return J.apply(m,T)},e)})}; +VC=function(z){var J=z.toString();z.name&&J.indexOf(z.name)==-1&&(J+=": "+z.name);z.message&&J.indexOf(z.message)==-1&&(J+=": "+z.message);if(z.stack)a:{z=z.stack;var m=J;try{z.indexOf(m)==-1&&(z=m+"\n"+z);for(var e;z!=e;)e=z,z=z.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");J=z.replace(/\n */g,"\n");break a}catch(T){J=m;break a}J=void 0}return J}; +ux=function(z){vVu.call(this,Error(z),{message:z})}; +TEu=function(){w1&&typeof w1.google_measure_js_timing!="undefined"&&(w1.google_measure_js_timing||og.disable())}; +Eaq=function(z){hS.nw=function(J){g.de(z,function(m){m(J)})}}; +ZSE=function(z,J){return e1q(z,J)}; +tS=function(z,J){return PN(z,J)}; +HN=function(z,J,m,e){hS.Rp(z,J,m,e)}; +UT=function(){return Date.now()-FUR}; +iSu=function(){var z=$K().S,J=Rg>=0?UT()-Rg:-1,m=kK?UT()-Lh:-1,e=QC>=0?UT()-QC:-1;if(z==947190542)return 100;if(z==79463069)return 200;z=[2E3,4E3];var T=[250,500,1E3];HN(637,Error(),.001);var E=J;m!=-1&&m1500&&e<4E3?500:Z}; +vN=function(z,J,m,e){this.top=z;this.right=J;this.bottom=m;this.left=e}; +sT=function(z){return z.right-z.left}; +r1=function(z,J){return z==J?!0:z&&J?z.top==J.top&&z.right==J.right&&z.bottom==J.bottom&&z.left==J.left:!1}; +z6=function(z,J,m){J instanceof g.Nr?(z.left+=J.x,z.right+=J.x,z.top+=J.y,z.bottom+=J.y):(z.left+=J,z.right+=J,typeof m==="number"&&(z.top+=m,z.bottom+=m));return z}; +Jf=function(z,J,m){var e=new vN(0,0,0,0);this.time=z;this.volume=null;this.S=J;this.K=e;this.T=m}; +mJ=function(z,J,m,e,T,E,Z,c){this.U=z;this.V=J;this.S=m;this.Y=e;this.K=T;this.Z=E;this.T=Z;this.X=c}; +WUq=function(z){var J=z!==z.top,m=z.top===KW4(z),e=-1,T=0;if(J&&m&&z.top.mraid){e=3;var E=z.top.mraid}else e=(E=z.mraid)?J?m?2:1:0:-1;E&&(E.IS_GMA_SDK||(T=2),hvu(c24,function(Z){return typeof E[Z]==="function"})||(T=1)); +return{Wu:E,compatibility:T,JWD:e}}; +lOb=function(){var z=window.document;return z&&typeof z.elementFromPoint==="function"}; +wYq=function(z,J,m){if(z&&J!==null&&J!=J.top){if(!J.top)return new g.XT(-12245933,-12245933);J=J.top}try{return(m===void 0?0:m)?(new g.XT(J.innerWidth,J.innerHeight)).round():J_u(J||window).round()}catch(e){return new g.XT(-12245933,-12245933)}}; +e$=function(z,J,m){try{if(z){if(!J.top)return new vN(-12245933,-12245933,-12245933,-12245933);J=J.top}var e=wYq(z,J,m),T=e.height,E=e.width;if(E===-12245933)return new vN(E,E,E,E);var Z=efu(U8(J.document).K),c=Z.x,W=Z.y;return new vN(W,c+E,W+T,c)}catch(l){return new vN(-12245933,-12245933,-12245933,-12245933)}}; +g.T6=function(z,J,m,e){this.left=z;this.top=J;this.width=m;this.height=e}; +Et=function(z,J){return z==J?!0:z&&J?z.left==J.left&&z.width==J.width&&z.top==J.top&&z.height==J.height:!1}; +g.FR=function(z,J,m){if(typeof J==="string")(J=Z4(z,J))&&(z.style[J]=m);else for(var e in J){m=z;var T=J[e],E=Z4(m,e);E&&(m.style[E]=T)}}; +Z4=function(z,J){var m=qAq[J];if(!m){var e=$sq(J);m=e;z.style[e]===void 0&&(e=(g.JM?"Webkit":iA?"Moz":null)+xs1(e),z.style[e]!==void 0&&(m=e));qAq[J]=m}return m}; +g.cM=function(z,J){var m=z.style[$sq(J)];return typeof m!=="undefined"?m:z.style[Z4(z,J)]||""}; +WM=function(z,J){var m=Hm(z);return m.defaultView&&m.defaultView.getComputedStyle&&(z=m.defaultView.getComputedStyle(z,null))?z[J]||z.getPropertyValue(J)||"":""}; +wX=function(z,J){return WM(z,J)||(z.currentStyle?z.currentStyle[J]:null)||z.style&&z.style[J]}; +g.IS=function(z,J,m){if(J instanceof g.Nr){var e=J.x;J=J.y}else e=J,J=m;z.style.left=g.dX(e,!1);z.style.top=g.dX(J,!1)}; +Ot=function(z){try{return z.getBoundingClientRect()}catch(J){return{left:0,top:0,right:0,bottom:0}}}; +d8u=function(z){var J=Hm(z),m=wX(z,"position"),e=m=="fixed"||m=="absolute";for(z=z.parentNode;z&&z!=J;z=z.parentNode)if(z.nodeType==11&&z.host&&(z=z.host),m=wX(z,"position"),e=e&&m=="static"&&z!=J.documentElement&&z!=J.body,!e&&(z.scrollWidth>z.clientWidth||z.scrollHeight>z.clientHeight||m=="fixed"||m=="absolute"||m=="relative"))return z;return null}; +g.pU=function(z){var J=Hm(z),m=new g.Nr(0,0);if(z==(J?Hm(J):document).documentElement)return m;z=Ot(z);J=efu(U8(J).K);m.x=z.left+J.x;m.y=z.top+J.y;return m}; +OSz=function(z,J){var m=new g.Nr(0,0),e=m0(Hm(z));if(!ZN4(e,"parent"))return m;do{var T=e==J?g.pU(z):IOz(z);m.x+=T.x;m.y+=T.y}while(e&&e!=J&&e!=e.parent&&(z=e.frameElement)&&(e=e.parent));return m}; +g.y5=function(z,J){z=pYq(z);J=pYq(J);return new g.Nr(z.x-J.x,z.y-J.y)}; +IOz=function(z){z=Ot(z);return new g.Nr(z.left,z.top)}; +pYq=function(z){if(z.nodeType==1)return IOz(z);z=z.changedTouches?z.changedTouches[0]:z;return new g.Nr(z.clientX,z.clientY)}; +g.N9=function(z,J,m){if(J instanceof g.XT)m=J.height,J=J.width;else if(m==void 0)throw Error("missing height argument");z.style.width=g.dX(J,!0);z.style.height=g.dX(m,!0)}; +g.dX=function(z,J){typeof z=="number"&&(z=(J?Math.round(z):z)+"px");return z}; +g.G6=function(z){var J=y2E;if(wX(z,"display")!="none")return J(z);var m=z.style,e=m.display,T=m.visibility,E=m.position;m.visibility="hidden";m.position="absolute";m.display="inline";z=J(z);m.display=e;m.position=E;m.visibility=T;return z}; +y2E=function(z){var J=z.offsetWidth,m=z.offsetHeight,e=g.JM&&!J&&!m;return(J===void 0||e)&&z.getBoundingClientRect?(z=Ot(z),new g.XT(z.right-z.left,z.bottom-z.top)):new g.XT(J,m)}; +g.nU=function(z,J){z.style.display=J?"":"none"}; +YZ=function(z,J){J=Math.pow(10,J);return Math.floor(z*J)/J}; +NEu=function(z){return new vN(z.top,z.right,z.bottom,z.left)}; +GHq=function(z){var J=z.top||0,m=z.left||0;return new vN(J,m+(z.width||0),J+(z.height||0),m)}; +CU=function(z){return z!=null&&z>=0&&z<=1}; +XY1=function(){var z=g.bF();return z?aS("AmazonWebAppPlatform;Android TV;Apple TV;AppleTV;BRAVIA;BeyondTV;Freebox;GoogleTV;HbbTV;LongTV;MiBOX;MiTV;NetCast.TV;Netcast;Opera TV;PANASONIC;POV_TV;SMART-TV;SMART_TV;SWTV;Smart TV;SmartTV;TV Store;UnionTV;WebOS".split(";"),function(J){return Bc(z,J)})||Bc(z,"OMI/")&&!Bc(z,"XiaoMi/")?!0:Bc(z,"Presto")&&Bc(z,"Linux")&&!Bc(z,"X11")&&!Bc(z,"Android")&&!Bc(z,"Mobi"):!1}; +naR=function(){this.S=!ph(w1.top);this.isMobileDevice=OT()||NB1();var z=N7();this.domain=z.length>0&&z[z.length-1]!=null&&z[z.length-1].url!=null?g.H1(z[z.length-1].url)||"":"";this.K=new vN(0,0,0,0);this.U=new g.XT(0,0);this.Z=new g.XT(0,0);this.V=new vN(0,0,0,0);this.frameOffset=new g.Nr(0,0);this.Y=0;this.X=!1;this.T=!(!w1||!WUq(w1).Wu);this.update(w1)}; +YAs=function(z,J){J&&J.screen&&(z.U=new g.XT(J.screen.width,J.screen.height))}; +CX1=function(z,J){a:{var m=z.K?new g.XT(sT(z.K),z.K.getHeight()):new g.XT(0,0);J=J===void 0?w1:J;J!==null&&J!=J.top&&(J=J.top);var e=0,T=0;try{var E=J.document,Z=E.body,c=E.documentElement;if(E.compatMode=="CSS1Compat"&&c.scrollHeight)e=c.scrollHeight!=m.height?c.scrollHeight:c.offsetHeight,T=c.scrollWidth!=m.width?c.scrollWidth:c.offsetWidth;else{var W=c.scrollHeight,l=c.scrollWidth,w=c.offsetHeight,q=c.offsetWidth;c.clientHeight!=w&&(W=Z.scrollHeight,l=Z.scrollWidth,w=Z.offsetHeight,q=Z.offsetWidth); +W>m.height?W>w?(e=W,T=l):(e=w,T=q):W0||z.X)return!0;z=fh().T.isVisible();var J=Ig(BM)===0;return z||J}; +KU=function(){return BN(naR)}; +fU=function(z){this.S=z;this.T=0;this.K=null}; +D4=function(z,J,m){this.S=z;this.h6=m===void 0?"na":m;this.Z=[];this.isInitialized=!1;this.U=new Jf(-1,!0,this);this.K=this;this.X=J;this.Ry=this.B=!1;this.x3="uk";this.wb=!1;this.Y=!0}; +M9=function(z,J){g.s1(z.Z,J)||(z.Z.push(J),J.BJ(z.K),J.Mb(z.U),J.EB()&&(z.B=!0))}; +aOs=function(z){z=z.K;z.Nf();z.gT();var J=KU();J.V=e$(!1,z.S,J.isMobileDevice);CX1(KU(),z.S);z.U.K=z.oC()}; +KUq=function(z){z.B=z.Z.length?aS(z.Z,function(J){return J.EB()}):!1}; +BEE=function(z){var J=g.en(z.Z);g.de(J,function(m){m.Mb(z.U)})}; +Af=function(z){var J=g.en(z.Z);g.de(J,function(m){m.BJ(z.K)}); +z.K!=z||BEE(z)}; +oS=function(z,J,m,e){this.element=z;this.K=new vN(0,0,0,0);this.S=null;this.Y=new vN(0,0,0,0);this.T=J;this.VQ=m;this.wb=e;this.Tf=!1;this.timestamp=-1;this.B=new mJ(J.U,this.element,this.K,new vN(0,0,0,0),0,0,UT(),0);this.Z=void 0}; +SAs=function(z,J){return z.Z?new vN(Math.max(J.top+z.Z.top,J.top),Math.min(J.left+z.Z.right,J.right),Math.min(J.top+z.Z.bottom,J.bottom),Math.max(J.left+z.Z.left,J.left)):J.clone()}; +j$=function(z){this.Z=!1;this.K=z;this.U=function(){}}; +fOu=function(z,J,m){this.S=m===void 0?0:m;this.T=z;this.K=J==null?"":J}; +D8u=function(z){switch(Math.trunc(z.S)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; +bSb=function(z,J){return z.SJ.S?!1:z.TJ.T?!1:typeof z.Ktypeof J.K?!1:z.K0?e[m]-e[m-1]:e[m]})}; +Q5=function(){this.T=new tf;this.h6=this.Gf=0;this.qD=new PM;this.fh=this.V=-1;this.O2=1E3;this.yH=new tf([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.x3=this.Tf=-1}; +vM=function(z,J){return VBR(z.T,J===void 0?!0:J)}; +rX=function(z,J,m,e){var T=T===void 0?!1:T;m=PN(e,m);d1(z,J,m,{capture:T})}; +Jd=function(z,J){J=zI(J);return J===0?0:zI(z)/J}; +zI=function(z){return Math.max(z.bottom-z.top,0)*Math.max(z.right-z.left,0)}; +HSq=function(z,J){if(!z||!J)return!1;for(var m=0;z!==null&&m++<100;){if(z===J)return!0;try{if(z=z.parentElement||z){var e=Hm(z),T=e&&m0(e),E=T&&T.frameElement;E&&(z=E)}}catch(Z){break}}return!1}; +U8q=function(z,J,m){if(!z||!J)return!1;J=z6(z.clone(),-J.left,-J.top);z=(J.left+J.right)/2;J=(J.top+J.bottom)/2;ph(window.top)&&window.top&&window.top.document&&(window=window.top);if(!lOb())return!1;z=window.document.elementFromPoint(z,J);if(!z)return!1;J=(J=(J=Hm(m))&&J.defaultView&&J.defaultView.frameElement)&&HSq(J,z);var e=z===m;z=!e&&z&&qu(z,function(T){return T===m}); +return!(J||e||z)}; +R1q=function(z,J,m,e){return KU().S?!1:sT(z)<=0||z.getHeight()<=0?!0:m&&e?ZSE(208,function(){return U8q(z,J,m)}):!1}; +mS=function(z,J,m){g.h.call(this);this.position=kHu.clone();this.VE=this.Uv();this.yX=-2;this.timeCreated=Date.now();this.kW=-1;this.l7=J;this.ev=null;this.Yz=!1;this.Rv=null;this.opacity=-1;this.requestSource=m;this.Tai=!1;this.f2=function(){}; +this.YW=function(){}; +this.nA=new OBb;this.nA.d9=z;this.nA.K=z;this.Af=!1;this.Ru={Ip:null,DY:null};this.Vs=!0;this.Wl=null;this.tL=this.RwD=!1;$K().Y++;this.nF=this.CP();this.sZ=-1;this.kP=null;this.hasCompleted=this.HqW=!1;this.VQ=new eL;IBf(this.VQ);LUu(this);this.requestSource==1?ET(this.VQ,"od",1):ET(this.VQ,"od",0)}; +LUu=function(z){z=z.nA.d9;var J;if(J=z&&z.getAttribute)J=/-[a-z]/.test("googleAvInapp")?!1:QZ1&&z.dataset?"googleAvInapp"in z.dataset:z.hasAttribute?z.hasAttribute("data-"+gjs()):!!z.getAttribute("data-"+gjs());J&&(KU().T=!0)}; +e1=function(z,J){J!=z.tL&&(z.tL=J,z=KU(),J?z.Y++:z.Y>0&&z.Y--)}; +vau=function(z,J){if(z.kP){if(J.getName()===z.kP.getName())return;z.kP.dispose();z.kP=null}J=J.create(z.nA.K,z.VQ,z.EB());if(J=J!=null&&J.observe()?J:null)z.kP=J}; +sZj=function(z,J,m){if(!z.ev||z.l7==-1||J.T===-1||z.ev.T===-1)return 0;z=J.T-z.ev.T;return z>m?0:z}; +r2j=function(z,J,m){if(z.kP){z.kP.H4();var e=z.kP.B,T=e.U,E=T.K;if(e.Y!=null){var Z=e.S;z.Rv=new g.Nr(Z.left-E.left,Z.top-E.top)}E=z.Ok()?Math.max(e.K,e.Z):e.K;Z={};T.volume!==null&&(Z.volume=T.volume);T=z.sW(e);z.ev=e;z.MD(E,J,m,!1,Z,T,e.X)}}; +zNE=function(z){if(z.Yz&&z.Wl){var J=Z0(z.VQ,"od")==1,m=KU().K,e=z.Wl,T=z.kP?z.kP.getName():"ns",E=z.Rv,Z=new g.XT(sT(m),m.getHeight());m=z.Ok();z={Os6:T,Rv:E,XK3:Z,Ok:m,y8:z.nF.y8,Jsx:J};if(J=e.T){J.H4();T=J.B;E=T.U.K;var c=Z=null;T.Y!=null&&E&&(Z=T.S,Z=new g.Nr(Z.left-E.left,Z.top-E.top),c=new g.XT(E.right-E.left,E.bottom-E.top));T=m?Math.max(T.K,T.Z):T.K;m={Os6:J.getName(),Rv:Z,XK3:c,Ok:m,Jsx:!1,y8:T}}else m=null;m&&jZR(e,z,m)}}; +JVz=function(z,J,m){J&&(z.f2=J);m&&(z.YW=m)}; +g.TI=function(){}; +g.Es=function(z){return{value:z,done:!1}}; +m_u=function(){this.U=this.K=this.S=this.T=this.Z=0}; +eNq=function(z){var J={};var m=g.mv()-z.Z;J=(J.ptlt=m,J);(m=z.T)&&(J.pnk=m);(m=z.S)&&(J.pnc=m);(m=z.U)&&(J.pnmm=m);(z=z.K)&&(J.pns=z);return J}; +TAs=function(){s7.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; +Z1=function(z){return CU(z.volume)&&z.volume>0}; +FH=function(z,J,m,e){m=m===void 0?!0:m;e=e===void 0?function(){return!0}:e; +return function(T){var E=T[z];if(Array.isArray(E)&&e(T))return Ezu(E,J,m)}}; +iS=function(z,J){return function(m){return J(m)?m[z]:void 0}}; +Zv1=function(z){return function(J){for(var m=0;m0?E[T-1]+1:0,e+1).reduce(function(Z,c){return Z+c},0)})}; +F_4=function(){this.T=this.K=""}; +ivs=function(){}; +WU=function(z,J){var m={};if(z!==void 0)if(J!=null)for(var e in J){var T=J[e];e in Object.prototype||T!=null&&(m[e]=typeof T==="function"?T(z):z[T])}else g.hP(m,z);return V5(uA(new hf,m))}; +cVu=function(){var z={};this.T=(z.vs=[1,0],z.vw=[0,1],z.am=[2,2],z.a=[4,4],z.f=[8,8],z.bm=[16,16],z.b=[32,32],z.avw=[0,64],z.avs=[64,0],z.pv=[256,256],z.gdr=[0,512],z.p=[0,1024],z.r=[0,2048],z.m=[0,4096],z.um=[0,8192],z.ef=[0,16384],z.s=[0,32768],z.pmx=[0,16777216],z.mut=[33554432,33554432],z.umutb=[67108864,67108864],z.tvoff=[134217728,134217728],z);this.K={};for(var J in this.T)this.T[J][1]>0&&(this.K[J]=0);this.S=0}; +lS=function(z,J){var m=z.T[J],e=m[1];z.S+=m[0];e>0&&z.K[J]==0&&(z.K[J]=1)}; +W_q=function(z){var J=g.DL(z.T),m=0,e;for(e in z.K)g.s1(J,e)&&z.K[e]==1&&(m+=z.T[e][1],z.K[e]=2);return m}; +lKu=function(z){var J=0,m;for(m in z.K){var e=z.K[m];if(e==1||e==2)J+=z.T[m][1]}return J}; +ww=function(){this.K=this.T=0}; +q$=function(){Q5.call(this);this.S=new PM;this.Lh=this.B=this.wb=0;this.X=-1;this.Hd=new PM;this.Z=new PM;this.K=new tf;this.Y=this.U=-1;this.Ry=new PM;this.O2=2E3;this.Qx=new ww;this.nh=new ww;this.ND=new ww}; +dw=function(z,J,m){var e=z.Lh;kK||m||z.X==-1||(e+=J-z.X);return e}; +wDf=function(){this.S=!1}; +IL=function(z,J){this.S=!1;this.U=z;this.B=J;this.Z=0}; +Os=function(z,J){IL.call(this,z,J);this.V=[]}; +q7E=function(){}; +p8=function(){}; +yU=function(z,J,m,e){oS.call(this,z,J,m,e)}; +N$=function(z,J,m){oS.call(this,null,z,J,m);this.X=z.isActive();this.V=0}; +GI=function(z){return[z.top,z.left,z.bottom,z.right]}; +XH=function(z,J,m,e,T,E){E=E===void 0?new p8:E;mS.call(this,J,m,e);this.nt=T;this.Av=0;this.cK={};this.xZ=new cVu;this.nY={};this.iy="";this.ND=null;this.IT=!1;this.K=[];this.OU=E.T();this.Y=E.S();this.U=null;this.S=-1;this.h6=this.B=void 0;this.fh=this.Ry=0;this.x3=-1;this.O2=this.nh=!1;this.wb=this.X=this.T=this.S9=this.tZ=0;new tf;this.Qx=this.Lh=0;this.qD=-1;this.t7=0;this.V=g.yB;this.Tf=[this.Uv()];this.gE=2;this.Y_={};this.Y_.pause="p";this.Y_.resume="r";this.Y_.skip="s";this.Y_.mute="m";this.Y_.unmute= +"um";this.Y_.exitfullscreen="ef";this.Z=null;this.yH=this.Hd=!1;this.GS=Math.floor(Date.now()/1E3-1704067200);this.Gf=0}; +n8=function(z){z.hasCompleted=!0;z.t7!=0&&(z.t7=3)}; +YG=function(z){return z===void 0?z:Number(z)?YZ(z,3):0}; +C8=function(z,J){return z.Tf[J!=null&&JMath.max(1E4,z.S/3)?0:J);var m=z.V(z)||{};m=m.currentTime!==void 0?m.currentTime:z.Ry;var e=m-z.Ry,T=0;e>=0?(z.fh+=J,z.Qx+=Math.max(J-e,0),T=Math.min(e,z.fh)):z.Lh+=Math.abs(e);e!=0&&(z.fh=0);z.qD==-1&&e>0&&(z.qD=QC>=0?UT()-QC:-1);z.Ry=m;return T}; +OvR=function(z,J){aS(z.Y,function(m){return m.U==J.U})||z.Y.push(J)}; +pDR=function(z){var J=RS(z.Op().K,1);return aL(z,J)}; +aL=function(z,J,m){return J>=15E3?!0:z.nh?(m===void 0?0:m)?!0:z.S>0?J>=z.S/2:z.x3>0?J>=z.x3:!1:!1}; +yVq=function(z){var J=YZ(z.nF.y8,2),m=z.xZ.S,e=z.nF,T=C8(z),E=YG(T.U),Z=YG(T.Y),c=YG(e.volume),W=YZ(T.V,2),l=YZ(T.fh,2),w=YZ(e.y8,2),q=YZ(T.Tf,2),d=YZ(T.x3,2);e=YZ(e.Qy,2);var I=z.Qu().clone().round();z=z.kP&&z.kP.S?(z.kP?z.kP.S:null).clone().round():null;T=vM(T,!1);return{qL2:J,aP:m,qB:E,QE:Z,N3:c,X_:W,Zw:l,y8:w,Aq:q,iL:d,Qy:e,position:I,vZ:z,uL:T}}; +Gdq=function(z,J){NAu(z.K,J,function(){return{qL2:0,aP:void 0,qB:-1,QE:-1,N3:-1,X_:-1,Zw:-1,y8:-1,Aq:-1,iL:-1,Qy:-1,position:void 0,vZ:void 0,uL:[]}}); +z.K[J]=yVq(z)}; +NAu=function(z,J,m){for(var e=z.length;e0?1:0;q.atos= +HM(l.K);q.ssb=HM(l.yH,!1);q.amtos=VBR(l.K,!1);q.uac=z.tZ;q.vpt=l.S.K;w=="nio"&&(q.nio=1,q.avms="nio");q.gmm="4";q.gdr=aL(z,l.S.K,!0)?1:0;q.efpf=z.gE;if(w=="gsv"||w=="nis")w=z.kP,w.V>0&&(q.nnut=w.V);q.tcm=d_b(z);q.nmt=z.Lh;q.bt=z.Qx;q.pst=z.qD;q.vpaid=z.B;q.dur=z.S;q.vmtime=z.Ry;q.is=z.xZ.S;z.K.length>=1&&(q.i0=z.K[0].aP,q.a0=[z.K[0].N3],q.c0=[z.K[0].y8],q.ss0=[z.K[0].Qy],w=z.K[0].position,E=z.K[0].vZ,q.p0=w?GI(w):void 0,w&&E&&!r1(E,w)&&(q.cp0=GI(E)));z.K.length>=2&&(q.i1=z.K[1].aP,q.a1=S1(z.K[1].qB, +z.K[1].N3,z.K[1].QE),q.c1=S1(z.K[1].X_,z.K[1].y8,z.K[1].Zw),q.ss1=S1(z.K[1].Aq,z.K[1].Qy,z.K[1].iL),w=z.K[1].position,E=z.K[1].vZ,q.p1=w?GI(w):void 0,w&&E&&!r1(E,w)&&(q.cp1=GI(E)),q.mtos1=z.K[1].uL);z.K.length>=3&&(q.i2=z.K[2].aP,q.a2=S1(z.K[2].qB,z.K[2].N3,z.K[2].QE),q.c2=S1(z.K[2].X_,z.K[2].y8,z.K[2].Zw),q.ss2=S1(z.K[2].Aq,z.K[2].Qy,z.K[2].iL),w=z.K[2].position,E=z.K[2].vZ,q.p2=w?GI(w):void 0,w&&E&&!r1(E,w)&&(q.cp2=GI(E)),q.mtos2=z.K[2].uL);z.K.length>=4&&(q.i3=z.K[3].aP,q.a3=S1(z.K[3].qB,z.K[3].N3, +z.K[3].QE),q.c3=S1(z.K[3].X_,z.K[3].y8,z.K[3].Zw),q.ss3=S1(z.K[3].Aq,z.K[3].Qy,z.K[3].iL),w=z.K[3].position,E=z.K[3].vZ,q.p3=w?GI(w):void 0,w&&E&&!r1(E,w)&&(q.cp3=GI(E)),q.mtos3=z.K[3].uL);q.cs=lKu(z.xZ);J&&(q.ic=W_q(z.xZ),q.dvpt=l.S.T,q.dvs=LU(l.T,.5),q.dfvs=LU(l.T,1),q.davs=LU(l.K,.5),q.dafvs=LU(l.K,1),m&&(l.S.T=0,PXz(l.T),PXz(l.K)),z.un()&&(q.dtos=l.wb,q.dav=l.B,q.dtoss=z.Av+1,m&&(l.wb=0,l.B=0,z.Av++)),q.dat=l.Z.T,q.dft=l.Ry.T,m&&(l.Z.T=0,l.Ry.T=0));q.ps=[c.Z.width,c.Z.height];q.bs=[sT(c.K),c.K.getHeight()]; +q.scs=[c.U.width,c.U.height];q.dom=c.domain;z.S9&&(q.vds=z.S9);if(z.Y.length>0||z.OU)J=g.en(z.Y),z.OU&&J.push(z.OU),q.pings=g.Ch(J,function(d){return d.toString()}); +J=g.Ch(g.cU(z.Y,function(d){return d.Y()}),function(d){return d.getId()}); +z$b(J);q.ces=J;z.T&&(q.vmer=z.T);z.X&&(q.vmmk=z.X);z.wb&&(q.vmiec=z.wb);q.avms=z.kP?z.kP.getName():"ns";z.kP&&g.hP(q,z.kP.Gq());e?(q.c=YZ(z.nF.y8,2),q.ss=YZ(z.nF.Qy,2)):q.tth=UT()-Ce4;q.mc=YZ(l.fh,2);q.nc=YZ(l.V,2);q.mv=YG(l.Y);q.nv=YG(l.U);q.lte=YZ(z.yX,2);e=C8(z,T);vM(l);q.qmtos=vM(e);q.qnc=YZ(e.V,2);q.qmv=YG(e.Y);q.qnv=YG(e.U);q.qas=e.U>0?1:0;q.qi=z.iy;q.avms||(q.avms="geo");q.psm=l.Qx.K;q.psv=l.Qx.getValue();q.psfv=l.nh.getValue();q.psa=l.ND.getValue();W=qwq(W.VQ);W.length&&(q.veid=W);z.Z&&g.hP(q, +eNq(z.Z));q.avas=z.yY();q.vs=z.e_();q.co=aK4(z);q.tm=l.Gf;q.tu=l.h6;return q}; +XDf=function(z,J){if(g.s1(K_u,J))return!0;var m=z.cK[J];return m!==void 0?(z.cK[J]=!0,!m):!1}; +aK4=function(z){var J=z.Gf.toString(10).padStart(2,"0");J=""+z.GS+J;z.Gf<99&&z.Gf++;return J}; +S7R=function(){this.K={};var z=m0();f8(this,z,document);var J=BA4();try{if("1"==J){for(var m=z.parent;m!=z.top;m=m.parent)f8(this,m,m.document);f8(this,z.top,z.top.document)}}catch(e){}}; +BA4=function(){var z=document.documentElement;try{if(!ph(m0().top))return"2";var J=[],m=m0(z.ownerDocument);for(z=m;z!=m.top;z=z.parent)if(z.frameElement)J.push(z.frameElement);else break;return J&&J.length!=0?"1":"0"}catch(e){return"2"}}; +f8=function(z,J,m){rX(m,"mousedown",function(){return fKf(z)},301); +rX(J,"scroll",function(){return D_z(z)},302); +rX(m,"touchmove",function(){return bvR(z)},303); +rX(m,"mousemove",function(){return $_b(z)},304); +rX(m,"keydown",function(){return gzb(z)},305)}; +fKf=function(z){g.CY(z.K,function(J){J.S>1E5||++J.S})}; +D_z=function(z){g.CY(z.K,function(J){J.K>1E5||++J.K})}; +bvR=function(z){g.CY(z.K,function(J){J.K>1E5||++J.K})}; +gzb=function(z){g.CY(z.K,function(J){J.T>1E5||++J.T})}; +$_b=function(z){g.CY(z.K,function(J){J.U>1E5||++J.U})}; +x_q=function(){this.K=[];this.T=[]}; +D1=function(z,J){return g.QS(z.K,function(m){return m.iy==J})}; +MJf=function(z,J){return J?g.QS(z.K,function(m){return m.nA.d9==J}):null}; +AVE=function(z,J){return g.QS(z.T,function(m){return m.gD()==2&&m.iy==J})}; +$G=function(){var z=bS;return z.K.length==0?z.T:z.T.length==0?z.K:g.mY(z.T,z.K)}; +ozb=function(z,J){z=J.gD()==1?z.K:z.T;var m=LN(z,function(e){return e==J}); +return m!=-1?(z.splice(m,1),J.kP&&J.kP.unobserve(),J.dispose(),!0):!1}; +j$j=function(z){var J=bS;if(ozb(J,z)){switch(z.gD()){case 0:var m=function(){return null}; +case 2:m=function(){return AVE(J,z.iy)}; +break;case 1:m=function(){return D1(J,z.iy)}}for(var e=m();e;e=m())ozb(J,e)}}; +hNq=function(z){var J=bS;z=g.cU(z,function(m){return!MJf(J,m.nA.d9)}); +J.K.push.apply(J.K,g.X(z))}; +un4=function(z){var J=[];g.de(z,function(m){aS(bS.K,function(e){return e.nA.d9===m.nA.d9&&e.iy===m.iy})||(bS.K.push(m),J.push(m))})}; +gw=function(){this.K=this.T=null}; +VJf=function(z,J){function m(e,T){J(e,T)} +if(z.T==null)return!1;z.K=g.QS(z.T,function(e){return e!=null&&e.bf()}); +z.K&&(z.K.init(m)?aOs(z.K.K):J(z.K.K.XP(),z.K));return z.K!=null}; +xG=function(z){z=Peb(z);j$.call(this,z.length?z[z.length-1]:new D4(w1,0));this.S=z;this.T=null}; +Peb=function(z){if(!z.length)return[];z=(0,g.cU)(z,function(m){return m!=null&&m.bl()}); +for(var J=1;Jm.time?J:m},z[0])}; +j1=function(z){z=z===void 0?w1:z;j$.call(this,new D4(z,2))}; +hd=function(){var z=RNE();D4.call(this,w1.top,z,"geo")}; +RNE=function(){$K();var z=KU();return z.S||z.T?0:2}; +kd4=function(){}; +uS=function(){this.done=!1;this.K={Zy:0,y9:0,BOb:0,eH:0,SP:-1,xw:0,wA:0,S1:0,Fbf:0};this.Z=null;this.Y=!1;this.S=null;this.V=0;this.T=new fU(this)}; +PU=function(){var z=VU;z.Y||(z.Y=!0,L_f(z,function(){return z.U.apply(z,g.X(g.gu.apply(0,arguments)))}),z.U())}; +Q$u=function(){BN(kd4);var z=BN(gw);z.K!=null&&z.K.K?aOs(z.K.K):KU().update(w1)}; +td=function(z,J,m){if(!z.done&&(z.T.cancel(),J.length!=0)){z.S=null;try{Q$u();var e=UT();$K().Z=e;if(BN(gw).K!=null)for(var T=0;T=0?UT()-Rg:-1,c=UT();T.K.SP==-1&&(Z=c);var W=KU(),l=$K(),w=FA(l.VQ),q=$G();try{if(q.length>0){var d=W.K;d&&(w.bs=[sT(d),d.getHeight()]);var I=W.Z;I&&(w.ps=[I.width,I.height]);w1.screen&&(w.scs=[w1.screen.width,w1.screen.height])}else w.url=encodeURIComponent(w1.location.href.substring(0,512)),E.referrer&&(w.referrer=encodeURIComponent(E.referrer.substring(0,512))); +w.tt=Z;w.pt=Rg;w.bin=l.T;w1.google_osd_load_pub_page_exp!==void 0&&(w.olpp=w1.google_osd_load_pub_page_exp);w.deb=[1,T.K.Zy,T.K.y9,T.K.eH,T.K.SP,0,T.T.T,T.K.xw,T.K.wA,T.K.S1,T.K.Fbf,-1].join(";");w.tvt=s$u(T,c);W.T&&(w.inapp=1);if(w1!==null&&w1!=w1.top){q.length>0&&(w.iframe_loc=encodeURIComponent(w1.location.href.substring(0,512)));var O=W.V;w.is=[sT(O),O.getHeight()]}}catch(G){w.error=1}VU.S=w}d=g.oi(VU.S);I=$K().K;Z0(I.S,"prf")==1?(O=new D0,T=I.K,E=0,T.K>-1&&(E=T.S.K.now()-T.K),O=z8(O,1,Z_(T.U+ +E),0),T=I.K,O=z8(O,5,Wv(T.K>-1?T.T+1:T.T),0),O=z8(O,2,y1(I.T.K.S()),"0"),O=z8(O,3,y1(I.T.K.T()),"0"),I=z8(O,4,y1(I.T.K.K()),"0"),O={},I=(O.pf=g.GC(I.K()),O)):I={};g.hP(d,I);g.hP(J,e,m,d,z())}])}; +JSu=function(){var z=zmu||w1;if(!z)return"";var J=[];if(!z.location||!z.location.href)return"";J.push("url="+encodeURIComponent(z.location.href.substring(0,512)));z.document&&z.document.referrer&&J.push("referrer="+encodeURIComponent(z.document.referrer.substring(0,512)));return J.join("&")}; +HU=function(){var z="youtube.player.web_20250324_01_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250324_01_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250324_01_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250324_01_RC00".match(/_(\d{8})_\d+_RC\d+$/),J;if(((J=z)==null?void 0:J.length)==2)return z[1];z="youtube.player.web_20250324_01_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var m;return((m=z)==null?void 0:m.length)==3?"20"+z[1]+z[2]:null}; +m7q=function(){return"av.default_js".includes("ima_html5_sdk")?{iR:"ima",h0:null}:"av.default_js".includes("ima_native_sdk")?{iR:"nima",h0:null}:"av.default_js".includes("admob-native-video-javascript")?{iR:"an",h0:null}:"youtube.player.web_20250324_01_RC00".includes("cast_js_sdk")?{iR:"cast",h0:HU()}:"youtube.player.web_20250324_01_RC00".includes("youtube.player.web")?{iR:"yw",h0:HU()}:"youtube.player.web_20250324_01_RC00".includes("outstream_web_client")?{iR:"out",h0:HU()}:"youtube.player.web_20250324_01_RC00".includes("drx_rewarded_web")? +{iR:"r",h0:HU()}:"youtube.player.web_20250324_01_RC00".includes("gam_native_web_video")?{iR:"n",h0:HU()}:"youtube.player.web_20250324_01_RC00".includes("admob_interstitial_video")?{iR:"int",h0:HU()}:{iR:"j",h0:null}}; +kG=function(z,J){var m={sv:"966"};Us!==null&&(m.v=Us);m.cb=emb;m.nas=bS.K.length;m.msg=z;J!==void 0&&(z=T1q(J))&&(m.e=RL[z]);return m}; +L8=function(z){return YO(z,"custom_metric_viewable")}; +T1q=function(z){var J=L8(z)?"custom_metric_viewable":z.toLowerCase();return gC(K8,function(m){return m==J})}; +EKq=function(){this.K=void 0;this.T=!1;this.S=0;this.U=-1;this.Z="tos"}; +ihq=function(z){try{var J=z.split(",");return J.length>g.DL(Zhq).length?null:Kh(J,function(m,e){e=e.toLowerCase().split("=");if(e.length!=2||FMz[e[0]]===void 0||!FMz[e[0]](e[1]))throw Error("Entry ("+e[0]+", "+e[1]+") is invalid.");m[e[0]]=e[1];return m},{})}catch(m){return null}}; +cSu=function(z,J){if(z.K==void 0)return 0;switch(z.Z){case "mtos":return z.T?kZ(J.K,z.K):kZ(J.T,z.K);case "tos":return z.T?RS(J.K,z.K):RS(J.T,z.K)}return 0}; +QU=function(z,J,m,e){IL.call(this,J,e);this.V=z;this.X=m}; +vU=function(){}; +rw=function(z){IL.call(this,"fully_viewable_audible_half_duration_impression",z)}; +za=function(z){this.K=z}; +JQ=function(z,J){IL.call(this,z,J)}; +mA=function(z){Os.call(this,"measurable_impression",z)}; +ep=function(){za.apply(this,arguments)}; +Ta=function(z,J,m){N$.call(this,z,J,m)}; +ED=function(z){z=z===void 0?w1:z;j$.call(this,new D4(z,2))}; +Zn=function(z,J,m){N$.call(this,z,J,m)}; +Fm=function(z){z=z===void 0?w1:z;j$.call(this,new D4(z,2))}; +cl=function(){D4.call(this,w1,2,"mraid");this.Qx=0;this.fh=this.Tf=!1;this.V=null;this.T=WUq(this.S);this.U.K=new vN(0,0,0,0);this.Gf=!1}; +Wl=function(z,J,m){z.EQ("addEventListener",J,m)}; +qTb=function(z){$K().U=!!z.EQ("isViewable");Wl(z,"viewableChange",WMq);z.EQ("getState")==="loading"?Wl(z,"ready",l01):wNu(z)}; +wNu=function(z){typeof z.T.Wu.AFMA_LIDAR==="string"?(z.Tf=!0,d7j(z)):(z.T.compatibility=3,z.V="nc",z.Ii("w"))}; +d7j=function(z){z.fh=!1;var J=Z0($K().VQ,"rmmt")==1,m=!!z.EQ("isViewable");(J?!m:1)&&fh().setTimeout(tS(524,function(){z.fh||(I04(z),HN(540,Error()),z.V="mt",z.Ii("w"))}),500); +Ohu(z);Wl(z,z.T.Wu.AFMA_LIDAR,pNq)}; +Ohu=function(z){var J=Z0($K().VQ,"sneio")==1,m=z.T.Wu.AFMA_LIDAR_EXP_1!==void 0,e=z.T.Wu.AFMA_LIDAR_EXP_2!==void 0;(J=J&&e)&&(z.T.Wu.AFMA_LIDAR_EXP_2=!0);m&&(z.T.Wu.AFMA_LIDAR_EXP_1=!J)}; +I04=function(z){z.EQ("removeEventListener",z.T.Wu.AFMA_LIDAR,pNq);z.Tf=!1}; +yS1=function(z,J){if(z.EQ("getState")==="loading")return new g.XT(-1,-1);J=z.EQ(J);if(!J)return new g.XT(-1,-1);z=parseInt(J.width,10);J=parseInt(J.height,10);return isNaN(z)||isNaN(J)?new g.XT(-1,-1):new g.XT(z,J)}; +l01=function(){try{var z=BN(cl);z.EQ("removeEventListener","ready",l01);wNu(z)}catch(J){HN(541,J)}}; +pNq=function(z,J){try{var m=BN(cl);m.fh=!0;var e=z?new vN(z.y,z.x+z.width,z.y+z.height,z.x):new vN(0,0,0,0);var T=UT(),E=S$();var Z=new Jf(T,E,m);Z.K=e;Z.volume=J;m.Mb(Z)}catch(c){HN(542,c)}}; +WMq=function(z){var J=$K(),m=BN(cl);z&&!J.U&&(J.U=!0,m.Gf=!0,m.V&&m.Ii("w",!0))}; +lf=function(){this.isInitialized=!1;this.K=this.T=null;var z={};this.V=(z.start=this.A6x,z.firstquartile=this.M4F,z.midpoint=this.q2y,z.thirdquartile=this.n33,z.complete=this.Cif,z.error=this.V4D,z.pause=this.Wo,z.resume=this.ys,z.skip=this.WFF,z.viewable_impression=this.N$,z.mute=this.PE,z.unmute=this.PE,z.fullscreen=this.LFD,z.exitfullscreen=this.J6b,z.fully_viewable_audible_half_duration_impression=this.N$,z.measurable_impression=this.N$,z.abandon=this.Wo,z.engagedview=this.N$,z.impression=this.N$, +z.creativeview=this.N$,z.progress=this.PE,z.custom_metric_viewable=this.N$,z.bufferstart=this.Wo,z.bufferfinish=this.ys,z.audio_measurable=this.N$,z.audio_audible=this.N$,z);z={};this.X=(z.overlay_resize=this.X1D,z.abandon=this.HD,z.close=this.HD,z.collapse=this.HD,z.overlay_unmeasurable_impression=function(J){return BU(J,"overlay_unmeasurable_impression",S$())},z.overlay_viewable_immediate_impression=function(J){return BU(J,"overlay_viewable_immediate_impression",S$())},z.overlay_unviewable_impression= +function(J){return BU(J,"overlay_unviewable_impression",S$())},z.overlay_viewable_end_of_session_impression=function(J){return BU(J,"overlay_viewable_end_of_session_impression",S$())},z); +$K().T=3;N1E(this);this.S=null}; +wQ=function(z,J,m,e){z=z.BL(null,e,!0,J);z.U=m;hNq([z]);return z}; +Gqb=function(z,J,m){lBu(J);var e=z.K;g.de(J,function(T){var E=g.Ch(T.criteria,function(Z){var c=ihq(Z);if(c==null)Z=null;else if(Z=new EKq,c.visible!=null&&(Z.K=c.visible/100),c.audible!=null&&(Z.T=c.audible==1),c.time!=null){var W=c.timetype=="mtos"?"mtos":"tos",l=u1u(c.time,"%")?"%":"ms";c=parseInt(c.time,10);l=="%"&&(c/=100);Z.setTime(c,l,W)}return Z}); +aS(E,function(Z){return Z==null})||OvR(m,new QU(T.id,T.event,E,e))})}; +XNu=function(){var z=[],J=$K();z.push(BN(hd));Z0(J.VQ,"mvp_lv")&&z.push(BN(cl));J=[new ED,new Fm];J.push(new xG(z));J.push(new j1(w1));return J}; +nKf=function(z){if(!z.isInitialized){z.isInitialized=!0;try{var J=UT(),m=$K(),e=KU();Rg=J;m.S=79463069;z.T!=="o"&&(zmu=KW4(w1));if(oVu()){VU.K.y9=0;VU.K.SP=UT()-J;var T=XNu(),E=BN(gw);E.T=T;VJf(E,function(){q6()})?VU.done||(vzj(),M9(E.K.K,z),PU()):e.S?q6():PU()}else dQ=!0}catch(Z){throw bS.reset(),Z; +}}}; +OD=function(z){VU.T.cancel();Iz=z;VU.done=!0}; +pE=function(z){if(z.T)return z.T;var J=BN(gw).K;if(J)switch(J.getName()){case "nis":z.T="n";break;case "gsv":z.T="m"}z.T||(z.T="h");return z.T}; +yH=function(z,J,m){if(z.K==null)return J.S9|=4,!1;z=YT4(z.K,m,J);J.S9|=z;return z==0}; +q6=function(){var z=[new j1(w1)],J=BN(gw);J.T=z;VJf(J,function(){OD("i")})?VU.done||(vzj(),PU()):OD("i")}; +Cxb=function(z,J){if(!z.IT){var m=BU(z,"start",S$());m=z.nt.K(m).K;var e={id:"lidarv"};e.r=J;e.sv="966";Us!==null&&(e.v=Us);RY(m,function(T,E){return e[T]=T=="mtos"||T=="tos"?E:encodeURIComponent(E)}); +J=JSu();RY(J,function(T,E){return e[T]=encodeURIComponent(E)}); +J="//pagead2.googlesyndication.com/pagead/gen_204?"+V5(uA(new hf,e));A2u(J);z.IT=!0}}; +N6=function(z,J,m){td(VU,[z],!S$());Gdq(z,m);m!=4&&NAu(z.Tf,m,z.Uv);return BU(z,J,S$())}; +N1E=function(z){rVz(function(){var J=a0z();z.T!=null&&(J.sdk=z.T);var m=BN(gw);m.K!=null&&(J.avms=m.K.getName());return J})}; +KMz=function(z,J,m,e){var T=MJf(bS,m);T!==null&&T.iy!==J&&(z.V6(T),T=null);T||(J=z.BL(m,UT(),!1,J),bS.T.length==0&&($K().S=79463069),un4([J]),T=J,T.U=pE(z),e&&(T.ND=e));return T}; +B1u=function(z,J){var m=z[J];m!==void 0&&m>0&&(z[J]=Math.floor(m*1E3))}; +a0z=function(){var z=KU(),J={},m={},e={};return Object.assign({},(J.sv="966",J),Us!==null&&(m.v=Us,m),(e["if"]=z.S?"1":"0",e.nas=String(bS.K.length),e))}; +Ga=function(z){IL.call(this,"audio_audible",z)}; +Xm=function(z){Os.call(this,"audio_measurable",z)}; +nE=function(){za.apply(this,arguments)}; +CE=function(){}; +STu=function(z){this.K=z}; +YT4=function(z,J,m){z=z.T();if(typeof z==="function"){var e={};var T={};e=Object.assign({},Us!==null&&(e.v=Us,e),(T.sv="966",T.cb=emb,T.e=f0b(J),T));T=BU(m,J,S$());g.hP(e,T);m.nY[J]=T;e=m.gD()==2?MBz(e).join("&"):m.nt.K(e).K;try{return z(m.iy,e,J),0}catch(E){return 2}}else return 1}; +f0b=function(z){var J=L8(z)?"custom_metric_viewable":z;z=gC(K8,function(m){return m==J}); +return RL[z]}; +az=function(){lf.call(this);this.Y=null;this.Z=!1;this.U="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; +D7f=function(z,J,m){m=m.opt_configurable_tracking_events;z.K!=null&&Array.isArray(m)&&Gqb(z,m,J)}; +bhs=function(z,J,m){var e=D1(bS,J);e||(e=m.opt_nativeTime||-1,e=wQ(z,J,pE(z),e),m.opt_osdId&&(e.ND=m.opt_osdId));return e}; +$7f=function(z,J,m){var e=D1(bS,J);e||(e=wQ(z,J,"n",m.opt_nativeTime||-1));return e}; +gKq=function(z,J){var m=D1(bS,J);m||(m=wQ(z,J,"h",-1));return m}; +x7q=function(z){$K();switch(pE(z)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; +oKf=function(z,J,m,e){m=m===void 0?{}:m;var T={};g.hP(T,{opt_adElement:void 0,opt_fullscreen:void 0},m);var E=z.VY(J,m);m=E?E.nt:z.Em();if(T.opt_bounds)return m.K(kG("ol",e));if(e!==void 0)if(T1q(e)!==void 0)if(dQ)z=kG("ue",e);else if(nKf(z),Iz=="i")z=kG("i",e),z["if"]=0;else if(J=z.VY(J,T)){b:{Iz=="i"&&(J.Af=!0);E=T.opt_fullscreen;E!==void 0&&e1(J,!!E);var Z;if(E=!KU().T)(E=Bc(g.bF(),"CrKey")&&!(Bc(g.bF(),"CrKey")&&Bc(g.bF(),"SmartSpeaker"))||Bc(g.bF(),"PlayStation")||Bc(g.bF(),"Roku")||XY1()||Bc(g.bF(), +"Xbox"))||(E=g.bF(),E=Bc(E,"AppleTV")||Bc(E,"Apple TV")||Bc(E,"CFNetwork")||Bc(E,"tvOS")),E||(E=g.bF(),E=Bc(E,"sdk_google_atv_x86")||Bc(E,"Android TV")),E=!E;E&&(fh(),E=Ig(BM)===0);if(Z=E){switch(J.gD()){case 1:Cxb(J,"pv");break;case 2:z.lx(J)}OD("pv")}E=e.toLowerCase();if(Z=!Z)Z=Z0($K().VQ,"ssmol")&&E==="loaded"?!1:g.s1(MLE,E);if(Z&&J.t7==0){Iz!="i"&&(VU.done=!1);Z=T!==void 0?T.opt_nativeTime:void 0;QC=Z=typeof Z==="number"?Z:UT();J.Yz=!0;var c=S$();J.t7=1;J.cK={};J.cK.start=!1;J.cK.firstquartile= +!1;J.cK.midpoint=!1;J.cK.thirdquartile=!1;J.cK.complete=!1;J.cK.resume=!1;J.cK.pause=!1;J.cK.skip=!1;J.cK.mute=!1;J.cK.unmute=!1;J.cK.viewable_impression=!1;J.cK.measurable_impression=!1;J.cK.fully_viewable_audible_half_duration_impression=!1;J.cK.fullscreen=!1;J.cK.exitfullscreen=!1;J.Av=0;c||(J.Op().X=Z);td(VU,[J],!c)}(Z=J.Y_[E])&&lS(J.xZ,Z);Z0($K().VQ,"fmd")||g.s1(ASj,E)&&J.OU&&J.OU.T(J,null);switch(J.gD()){case 1:var W=L8(E)?z.V.custom_metric_viewable:z.V[E];break;case 2:W=z.X[E]}if(W&&(e=W.call(z, +J,T,e),Z0($K().VQ,"fmd")&&g.s1(ASj,E)&&J.OU&&J.OU.T(J,null),e!==void 0)){T=kG(void 0,E);g.hP(T,e);e=T;break b}e=void 0}J.t7==3&&z.V6(J);z=e}else z=kG("nf",e);else z=void 0;else dQ?z=kG("ue"):E?(z=kG(),g.hP(z,nzE(E,!0,!1,!1))):z=kG("nf");return typeof z==="string"?m.K():m.K(z)}; +jg1=function(z,J){J&&(z.U=J)}; +hmb=function(z){var J={};return J.viewability=z.K,J.googleViewability=z.T,J}; +uAq=function(z,J,m){m=m===void 0?{}:m;z=oKf(BN(az),J,m,z);return hmb(z)}; +KE=function(z){var J=g.gu.apply(1,arguments).filter(function(e){return e}).join("&"); +if(!J)return z;var m=z.match(/[?&]adurl=/);return m?z.slice(0,m.index+1)+J+"&"+z.slice(m.index+1):z+(z.indexOf("?")===-1?"?":"&")+J}; +Pxb=function(z){var J=z.url;z=z.iS6;this.K=J;this.V=z;z=/[?&]dsh=1(&|$)/.test(J);this.Z=!z&&/[?&]ae=1(&|$)/.test(J);this.Y=!z&&/[?&]ae=2(&|$)/.test(J);if((this.T=/[?&]adurl=([^&]*)/.exec(J))&&this.T[1]){try{var m=decodeURIComponent(this.T[1])}catch(e){m=null}this.S=m}this.U=(new Date).getTime()-VLb}; +tLj=function(z){z=z.V;if(!z)return"";var J="";z.platform&&(J+="&uap="+encodeURIComponent(z.platform));z.platformVersion&&(J+="&uapv="+encodeURIComponent(z.platformVersion));z.uaFullVersion&&(J+="&uafv="+encodeURIComponent(z.uaFullVersion));z.architecture&&(J+="&uaa="+encodeURIComponent(z.architecture));z.model&&(J+="&uam="+encodeURIComponent(z.model));z.bitness&&(J+="&uab="+encodeURIComponent(z.bitness));z.fullVersionList&&(J+="&uafvl="+encodeURIComponent(z.fullVersionList.map(function(m){return encodeURIComponent(m.brand)+ +";"+encodeURIComponent(m.version)}).join("|"))); +typeof z.wow64!=="undefined"&&(J+="&uaw="+Number(z.wow64));return J.substring(1)}; +RmR=function(z,J,m,e,T){var E=window;var Z=Z===void 0?!1:Z;var c;m?c=(Z===void 0?0:Z)?"//ep1.adtrafficquality.google/bg/"+ef(m)+".js":"//pagead2.googlesyndication.com/bg/"+ef(m)+".js":c="";Z=Z===void 0?!1:Z;m=E.document;var W={};J&&(W._scs_=J);W._bgu_=c;W._bgp_=e;W._li_="v_h.3.0.0.0";T&&(W._upb_=T);(J=E.GoogleTyFxhY)&&typeof J.push=="function"||(J=E.GoogleTyFxhY=[]);J.push(W);J=U8(m).createElement("SCRIPT");J.type="text/javascript";J.async=!0;z=(Z===void 0?0:Z)?sau(Hhz,ef(z)+".js"):sau(U7b,ef(z)+ +".js");g.LI(J,z);(E=(E.GoogleTyFxhYEET||{})[J.src])?E():m.getElementsByTagName("head")[0].appendChild(J)}; +kqb=function(){try{var z,J;return!!((z=window)==null?0:(J=z.top)==null?0:J.location.href)&&!1}catch(m){return!0}}; +Sp=function(){var z=LMz();z=z===void 0?"bevasrsg":z;return new Promise(function(J){var m=window===window.top?window:kqb()?window:window.top,e=m[z],T;((T=e)==null?0:T.bevasrs)?J(new Bl(e.bevasrs)):(e||(e={},e=(e.nqfbel=[],e),m[z]=e),e.nqfbel.push(function(E){J(new Bl(E))}))})}; +Qgf=function(z){var J={c:z.Up,e:z.h1,mc:z.SV,me:z.U$};z.hs&&(J.co={c:z.hs.B0,a:z.hs.dF,s:z.hs.f6});return J}; +fE=function(z){g.h.call(this);this.wpc=z}; +Bl=function(z){g.h.call(this);var J=this;this.xP=z;this.S="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.K=void 0;this.rR=this.xP.p;this.U=this.Ag.bind(this);this.addOnDisposeCallback(function(){return void vKE(J)})}; +sgz=function(z){var J;return g.D(function(m){if(m.K==1){if(!z.xP.wpc)throw new E1(30,"NWA");return z.T?m.return(z.T):g.S(m,z.xP.wpc(),2)}J=m.T;z.T=new fE(J);return m.return(z.T)})}; +vKE=function(z){z.K!==void 0&&(z.S.forEach(function(J){var m;(m=z.K)==null||m.removeEventListener(J,z.U)}),z.K=void 0)}; +JfE=function(z){if(g.CN(g.Ty(z)))return!1;if(z.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")>=0)return!0;try{var J=new g.N_(z)}catch(m){return g.QS(rS1,function(e){return z.search(e)>0})!=null}return J.Y.match(zjs)?!0:g.QS(rS1,function(m){return z.match(m)!=null})!=null}; +g.Dn=function(z,J){return z.replace(m9j,function(m,e){try{var T=g.Mr(J,e);if(T==null||T.toString()==null)return m;T=T.toString();if(T==""||!g.CN(g.Ty(T)))return encodeURIComponent(T).replace(/%2C/g,",")}catch(E){}return m})}; +bf=function(z,J){return Object.is(z,J)}; +gQ=function(z){var J=$T;$T=z;return J}; +ejz=function(z){if(z.l3!==void 0){var J=xT;xT=!0;try{for(var m=g.y(z.l3),e=m.next();!e.done;e=m.next()){var T=e.value;T.UU||(z=void 0,T.UU=!0,ejz(T),(z=T.jL)==null||z.call(T,T))}}finally{xT=J}}}; +TXb=function(){var z;return((z=$T)==null?void 0:z.NO)!==!1}; +EZR=function(z){z&&(z.bL=0);return gQ(z)}; +ZUu=function(z,J){gQ(J);if(z&&z.jb!==void 0&&z.Y$!==void 0&&z.Mk!==void 0){if(M6(z))for(J=z.bL;Jz.bL;)z.jb.pop(),z.Mk.pop(),z.Y$.pop()}}; +iUq=function(z,J,m){FJz(z);if(z.l3.length===0&&z.jb!==void 0)for(var e=0;e0}; +cfq=function(z){z.jb!=null||(z.jb=[]);z.Y$!=null||(z.Y$=[]);z.Mk!=null||(z.Mk=[])}; +FJz=function(z){z.l3!=null||(z.l3=[]);z.l1!=null||(z.l1=[])}; +l4R=function(z){function J(){if(xT)throw Error("");if($T!==null){var e=$T.bL++;cfq($T);e<$T.jb.length&&$T.jb[e]!==m&&M6($T)&&AQ($T.jb[e],$T.Y$[e]);$T.jb[e]!==m&&($T.jb[e]=m,$T.Y$[e]=M6($T)?iUq(m,$T,e):0);$T.Mk[e]=m.version}return m.value} +var m=Object.create(WJb);m.value=z;J[uf]=m;return J}; +qtE=function(z,J){if(!TXb())throw Error();z.Cd(z.value,J)||(z.value=J,z.version++,wMb++,ejz(z))}; +NX1=function(z,J){function m(){d9q++;return e()} +J=J===void 0?"":J;var e=l4R(z);I4b++;var T=e[uf];T.lK=J!=null?J:"[signal]";m[uf]=T;return[m,function(E){if(OU1.SH){var Z,c;(c=(Z=performance).mark)==null||c.call(Z,"signalSetStart__"+T.lK)}pMj++;try{if(E&&E[yfq]){var W=E[yfq];if(!TXb())throw Error();qtE(T,W(T.value))}else qtE(T,E)}finally{if(E=T.lK,OU1.SH){var l,w;(w=(l=performance).measure)==null||w.call(l,"signalSet__"+E,"signalSetStart__"+E)}}}]}; +Pl=function(z){g.ZB.call(this);var J=this;this.Z=this.T=0;this.L$=z!=null?z:{wy:function(T,E){return setTimeout(T,E)}, +Xo:function(T){clearTimeout(T)}}; +var m,e;this.K=(e=(m=window.navigator)==null?void 0:m.onLine)!=null?e:!0;this.S=function(){return g.D(function(T){return g.S(T,VH(J),0)})}; +window.addEventListener("offline",this.S);window.addEventListener("online",this.S);this.Z||this.n1()}; +G6u=function(){var z=g.tQ;Pl.instance||(Pl.instance=new Pl(z));return Pl.instance}; +VH=function(z,J){return z.U?z.U:z.U=new Promise(function(m){var e,T,E,Z;return g.D(function(c){switch(c.K){case 1:return e=window.AbortController?new window.AbortController:void 0,E=(T=e)==null?void 0:T.signal,Z=!1,g.Yu(c,2,3),e&&(z.T=z.L$.wy(function(){e.abort()},J||2E4)),g.S(c,fetch("/generate_204",{method:"HEAD", +signal:E}),5);case 5:Z=!0;case 3:g.Bq(c);z.U=void 0;z.T&&(z.L$.Xo(z.T),z.T=0);Z!==z.K&&(z.K=Z,z.K?z.dispatchEvent("networkstatus-online"):z.dispatchEvent("networkstatus-offline"));m(Z);g.fq(c,0);break;case 2:g.Kq(c),Z=!1,c.U2(3)}})})}; +Hl=function(){this.data=[];this.K=-1}; +XMu=function(z){z.K===-1&&(z.K=z.data.reduce(function(J,m,e){return J+(m?Math.pow(2,e):0)},0)); +return z.K}; +UD=function(z){z.setAttribute("role","link")}; +kT=function(z,J){Array.isArray(J)&&(J=J.join(" "));J===""||J==void 0?(Rz||(J={},Rz=(J.atomic=!1,J.autocomplete="none",J.dropeffect="none",J.haspopup=!1,J.live="off",J.multiline=!1,J.multiselectable=!1,J.orientation="vertical",J.readonly=!1,J.relevant="additions text",J.required=!1,J.sort="none",J.busy=!1,J.disabled=!1,J.hidden=!1,J.invalid="false",J)),J=Rz,"label"in J?z.setAttribute("aria-label",J.label):z.removeAttribute("aria-label")):z.setAttribute("aria-label",J)}; +LE=function(z){z=z.getAttribute("aria-label");return z==null||z==void 0?"":String(z)}; +g.QH=function(z,J,m){g.h.call(this);this.K=null;this.U=!1;this.Y=z;this.Z=m;this.T=J||window;this.S=(0,g.ru)(this.BY,this)}; +nZ1=function(z){z=z.T;return z.requestAnimationFrame||z.webkitRequestAnimationFrame||z.mozRequestAnimationFrame||z.oRequestAnimationFrame||z.msRequestAnimationFrame||null}; +Ytu=function(z){z=z.T;return z.cancelAnimationFrame||z.cancelRequestAnimationFrame||z.webkitCancelRequestAnimationFrame||z.mozCancelRequestAnimationFrame||z.oCancelRequestAnimationFrame||z.msCancelRequestAnimationFrame||null}; +g.vl=function(z,J,m){g.h.call(this);this.K=z;this.ai=J||0;this.T=m;this.S=(0,g.ru)(this.jX,this)}; +g.sD=function(z,J){z.isActive()||z.start(J)}; +g.rQ=function(z){z.stop();z.jX()}; +g.z5=function(z){z.isActive()&&g.rQ(z)}; +g.JA=function(z,J,m){g.h.call(this);this.U=m!=null?z.bind(m):z;this.ai=J;this.S=null;this.K=!1;this.T=0;this.z4=null}; +mH=function(z){z.z4=g.gB(function(){z.z4=null;z.K&&!z.T&&(z.K=!1,mH(z))},z.ai); +var J=z.S;z.S=null;z.U.apply(null,J)}; +g.eZ=function(z,J){this.K=z[g.VR.Symbol.iterator]();this.T=J}; +CAE=function(z){return typeof z.className=="string"?z.className:z.getAttribute&&z.getAttribute("class")||""}; +T5=function(z){return z.classList?z.classList:CAE(z).match(/\S+/g)||[]}; +g.EE=function(z,J){typeof z.className=="string"?z.className=J:z.setAttribute&&z.setAttribute("class",J)}; +g.Zv=function(z,J){return z.classList?z.classList.contains(J):g.s1(T5(z),J)}; +g.FE=function(z,J){if(z.classList)z.classList.add(J);else if(!g.Zv(z,J)){var m=CAE(z);g.EE(z,m+(m.length>0?" "+J:J))}}; +g.Wd=function(z,J){if(z.classList)Array.prototype.forEach.call(J,function(T){g.FE(z,T)}); +else{var m={};Array.prototype.forEach.call(T5(z),function(T){m[T]=!0}); +Array.prototype.forEach.call(J,function(T){m[T]=!0}); +J="";for(var e in m)J+=J.length>0?" "+e:e;g.EE(z,J)}}; +g.lI=function(z,J){z.classList?z.classList.remove(J):g.Zv(z,J)&&g.EE(z,Array.prototype.filter.call(T5(z),function(m){return m!=J}).join(" "))}; +g.wL=function(z,J){z.classList?Array.prototype.forEach.call(J,function(m){g.lI(z,m)}):g.EE(z,Array.prototype.filter.call(T5(z),function(m){return!g.s1(J,m)}).join(" "))}; +g.qt=function(z,J,m){m?g.FE(z,J):g.lI(z,J)}; +a4R=function(z,J){var m=!g.Zv(z,J);g.qt(z,J,m)}; +g.dL=function(){g.ZB.call(this);this.K=0;this.endTime=this.startTime=null}; +KJj=function(z,J){Array.isArray(J)||(J=[J]);J=J.map(function(m){return typeof m==="string"?m:m.property+" "+m.duration+"s "+m.timing+" "+m.delay+"s"}); +g.FR(z,"transition",J.join(","))}; +I7=function(z,J,m,e,T){g.dL.call(this);this.T=z;this.Z=J;this.Y=m;this.U=e;this.V=Array.isArray(T)?T:[T]}; +BXq=function(z,J,m,e){return new I7(z,J,{opacity:m},{opacity:e},{property:"opacity",duration:J,timing:"ease-in",delay:0})}; +f4u=function(z){z=S9(z);if(z=="")return null;var J=String(z.slice(0,4)).toLowerCase();if(("url("1||z&&z.split(")"),null;if(z.indexOf("(")>0){if(/"|'/.test(z))return null;J=/([\-\w]+)\(/g;for(var m;m=J.exec(z);)if(!(m[1].toLowerCase()in Stb))return null}return z}; +OE=function(z,J){z=g.VR[z];return z&&z.prototype?(J=Object.getOwnPropertyDescriptor(z.prototype,J))&&J.get||null:null}; +D9z=function(z){var J=g.VR.CSSStyleDeclaration;return J&&J.prototype&&J.prototype[z]||null}; +bU4=function(z,J,m,e){if(z)return z.apply(J,e);if(g.pz&&document.documentMode<10){if(!J[m].call)throw Error("IE Clobbering detected");}else if(typeof J[m]!="function")throw Error("Clobbering detected");return J[m].apply(J,e)}; +Afb=function(z){if(!z)return"";var J=document.createElement("div").style;$9R(z).forEach(function(m){var e=g.JM&&m in gZu?m:m.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");YO(e,"--")||YO(e,"var")||(m=bU4(x9R,z,z.getPropertyValue?"getPropertyValue":"getAttribute",[m])||"",m=f4u(m),m!=null&&bU4(M$q,J,J.setProperty?"setProperty":"setAttribute",[e,m]))}); +return J.cssText||""}; +$9R=function(z){g.Lq(z)?z=g.en(z):(z=g.DL(z),g.zC(z,"cssText"));return z}; +g.Nt=function(z){var J,m=J=0,e=!1;z=z.split(oZ1);for(var T=0;T.4?-1:1;return(J==0?null:J)==-1?"rtl":"ltr"}; +g.YD=function(z){if(z instanceof G5||z instanceof XE||z instanceof nz)return z;if(typeof z.next=="function")return new G5(function(){return z}); +if(typeof z[Symbol.iterator]=="function")return new G5(function(){return z[Symbol.iterator]()}); +if(typeof z.OA=="function")return new G5(function(){return z.OA()}); +throw Error("Not an iterator or iterable.");}; +G5=function(z){this.T=z}; +XE=function(z){this.T=z}; +nz=function(z){G5.call(this,function(){return z}); +this.S=z}; +Cz=function(z,J,m,e,T,E,Z,c){this.K=z;this.V=J;this.S=m;this.Z=e;this.U=T;this.Y=E;this.T=Z;this.X=c}; +a7=function(z,J){if(J==0)return z.K;if(J==1)return z.T;var m=yz(z.K,z.S,J),e=yz(z.S,z.U,J);z=yz(z.U,z.T,J);m=yz(m,e,J);e=yz(e,z,J);return yz(m,e,J)}; +V$R=function(z,J){var m=(J-z.K)/(z.T-z.K);if(m<=0)return 0;if(m>=1)return 1;for(var e=0,T=1,E=0,Z=0;Z<8;Z++){E=a7(z,m);var c=(a7(z,m+1E-6)-E)/1E-6;if(Math.abs(E-J)<1E-6)return m;if(Math.abs(c)<1E-6)break;else E1E-6&&Z<8;Z++)E=0}; +g.fz=function(z){g.h.call(this);this.Y=1;this.S=[];this.U=0;this.K=[];this.T={};this.V=!!z}; +t$E=function(z,J,m){g.Ow(function(){z.apply(J,m)})}; +g.Dv=function(z){this.K=z}; +bI=function(z){this.K=z}; +HUu=function(z){this.data=z}; +U9b=function(z){return z===void 0||z instanceof HUu?z:new HUu(z)}; +$D=function(z){this.K=z}; +g.Rj4=function(z){var J=z.creation;z=z.expiration;return!!z&&zg.mv()}; +g.gL=function(z){this.K=z}; +k6z=function(){}; +xD=function(){}; +Mt=function(z){this.K=z;this.T=null}; +AA=function(z){if(z.K==null)throw Error("Storage mechanism: Storage unavailable");var J;((J=z.T)!=null?J:z.isAvailable())||Xv(Error("Storage mechanism: Storage unavailable"))}; +o7=function(){var z=null;try{z=g.VR.localStorage||null}catch(J){}Mt.call(this,z)}; +LJb=function(){var z=null;try{z=g.VR.sessionStorage||null}catch(J){}Mt.call(this,z)}; +jZ=function(z,J){this.T=z;this.K=J+"::"}; +g.hA=function(z){var J=new o7;return J.isAvailable()?z?new jZ(J,z):J:null}; +uI=function(z,J){this.K=z;this.T=J}; +Vo=function(z){this.K=[];if(z)a:{if(z instanceof Vo){var J=z.IV();z=z.KJ();if(this.K.length<=0){for(var m=this.K,e=0;e>>6:(E<65536?c[m++]=224|E>>>12:(c[m++]=240|E>>>18,c[m++]=128|E>>>12&63),c[m++]=128|E>>> +6&63),c[m++]=128|E&63);return c}; +UE=function(z){for(var J=z.length;--J>=0;)z[J]=0}; +R7=function(z,J,m,e,T){this.Aa=z;this.Ph=J;this.Tg=m;this.bE=e;this.VE3=T;this.qy=z&&z.length}; +kD=function(z,J){this.PP=z;this.n5=0;this.u5=J}; +Lz=function(z,J){z.FG[z.pending++]=J&255;z.FG[z.pending++]=J>>>8&255}; +Qo=function(z,J,m){z.yn>16-m?(z.gy|=J<>16-z.yn,z.yn+=m-16):(z.gy|=J<>>=1,m<<=1;while(--J>0);return m>>>1}; +zzu=function(z,J,m){var e=Array(16),T=0,E;for(E=1;E<=15;E++)e[E]=T=T+m[E-1]<<1;for(m=0;m<=J;m++)T=z[m*2+1],T!==0&&(z[m*2]=rfj(e[T]++,T))}; +JdE=function(z){var J;for(J=0;J<286;J++)z.bV[J*2]=0;for(J=0;J<30;J++)z.Kz[J*2]=0;for(J=0;J<19;J++)z.Sf[J*2]=0;z.bV[512]=1;z.Ky=z.RM=0;z.Dq=z.matches=0}; +m$b=function(z){z.yn>8?Lz(z,z.gy):z.yn>0&&(z.FG[z.pending++]=z.gy);z.gy=0;z.yn=0}; +ezz=function(z,J,m){m$b(z);Lz(z,m);Lz(z,~m);Hd.rF(z.FG,z.window,J,m,z.pending);z.pending+=m}; +Twf=function(z,J,m,e){var T=J*2,E=m*2;return z[T]>>7)];vd(z,Z,m);c=e3[Z];c!==0&&(T-=TK[Z],Qo(z,T,c))}}while(e>1;Z>=1;Z--)sE(z,m,Z);W=E;do Z=z.rW[1],z.rW[1]=z.rW[z.Mt--],sE(z,m,1),e=z.rW[1],z.rW[--z.z5]=Z,z.rW[--z.z5]=e,m[W*2]=m[Z*2]+m[e*2],z.depth[W]=(z.depth[Z]>=z.depth[e]?z.depth[Z]:z.depth[e])+1,m[Z*2+1]=m[e*2+1]=W,z.rW[1]=W++,sE(z,m,1);while(z.Mt>= +2);z.rW[--z.z5]=z.rW[1];Z=J.PP;W=J.n5;e=J.u5.Aa;T=J.u5.qy;E=J.u5.Ph;var l=J.u5.Tg,w=J.u5.VE3,q,d=0;for(q=0;q<=15;q++)z.Pv[q]=0;Z[z.rW[z.z5]*2+1]=0;for(J=z.z5+1;J<573;J++){var I=z.rW[J];q=Z[Z[I*2+1]*2+1]+1;q>w&&(q=w,d++);Z[I*2+1]=q;if(!(I>W)){z.Pv[q]++;var O=0;I>=l&&(O=E[I-l]);var G=Z[I*2];z.Ky+=G*(q+O);T&&(z.RM+=G*(e[I*2+1]+O))}}if(d!==0){do{for(q=w-1;z.Pv[q]===0;)q--;z.Pv[q]--;z.Pv[q+1]+=2;z.Pv[w]--;d-=2}while(d>0);for(q=w;q!==0;q--)for(I=z.Pv[q];I!==0;)e=z.rW[--J],e>W||(Z[e*2+1]!==q&&(z.Ky+=(q- +Z[e*2+1])*Z[e*2],Z[e*2+1]=q),I--)}zzu(m,c,z.Pv)}; +Z8s=function(z,J,m){var e,T=-1,E=J[1],Z=0,c=7,W=4;E===0&&(c=138,W=3);J[(m+1)*2+1]=65535;for(e=0;e<=m;e++){var l=E;E=J[(e+1)*2+1];++Z>>=1)if(J&1&&z.bV[m*2]!==0)return 0;if(z.bV[18]!==0||z.bV[20]!==0||z.bV[26]!==0)return 1;for(m=32;m<256;m++)if(z.bV[m*2]!==0)return 1;return 0}; +ZQ=function(z,J,m){z.FG[z.xz+z.Dq*2]=J>>>8&255;z.FG[z.xz+z.Dq*2+1]=J&255;z.FG[z.Fe+z.Dq]=m&255;z.Dq++;J===0?z.bV[m*2]++:(z.matches++,J--,z.bV[(rL[m]+256+1)*2]++,z.Kz[(J<256?mo[J]:mo[256+(J>>>7)])*2]++);return z.Dq===z.Fi-1}; +i2=function(z,J){z.msg=F0[J];return J}; +cT=function(z){for(var J=z.length;--J>=0;)z[J]=0}; +WT=function(z){var J=z.state,m=J.pending;m>z.Di&&(m=z.Di);m!==0&&(Hd.rF(z.output,J.FG,J.E5,m,z.OP),z.OP+=m,J.E5+=m,z.Gn+=m,z.Di-=m,J.pending-=m,J.pending===0&&(J.E5=0))}; +qK=function(z,J){var m=z.zk>=0?z.zk:-1,e=z.Zd-z.zk,T=0;if(z.level>0){z.lF.Xc===2&&(z.lF.Xc=i84(z));ES(z,z.ol);ES(z,z.Ec);Z8s(z,z.bV,z.ol.n5);Z8s(z,z.Kz,z.Ec.n5);ES(z,z.aJ);for(T=18;T>=3&&z.Sf[cdj[T]*2+1]===0;T--);z.Ky+=3*(T+1)+5+5+4;var E=z.Ky+3+7>>>3;var Z=z.RM+3+7>>>3;Z<=E&&(E=Z)}else E=Z=e+5;if(e+4<=E&&m!==-1)Qo(z,J?1:0,3),ezz(z,m,e);else if(z.strategy===4||Z===E)Qo(z,2+(J?1:0),3),EGq(z,l2,wx);else{Qo(z,4+(J?1:0),3);m=z.ol.n5+1;e=z.Ec.n5+1;T+=1;Qo(z,m-257,5);Qo(z,e-1,5);Qo(z,T-4,4);for(E=0;E>>8&255;z.FG[z.pending++]=J&255}; +WSq=function(z,J){var m=z.B8,e=z.Zd,T=z.Z4,E=z.wH,Z=z.Zd>z.LB-262?z.Zd-(z.LB-262):0,c=z.window,W=z.zd,l=z.Go,w=z.Zd+258,q=c[e+T-1],d=c[e+T];z.Z4>=z.wj&&(m>>=2);E>z.dE&&(E=z.dE);do{var I=J;if(c[I+T]===d&&c[I+T-1]===q&&c[I]===c[e]&&c[++I]===c[e+1]){e+=2;for(I++;c[++e]===c[++I]&&c[++e]===c[++I]&&c[++e]===c[++I]&&c[++e]===c[++I]&&c[++e]===c[++I]&&c[++e]===c[++I]&&c[++e]===c[++I]&&c[++e]===c[++I]&&eT){z.WC=J;T=I;if(I>=E)break;q=c[e+T-1];d=c[e+T]}}}while((J=l[J&W])>Z&&--m!== +0);return T<=z.dE?T:z.dE}; +NK=function(z){var J=z.LB,m;do{var e=z.Fu-z.dE-z.Zd;if(z.Zd>=J+(J-262)){Hd.rF(z.window,z.window,J,J,0);z.WC-=J;z.Zd-=J;z.zk-=J;var T=m=z.gf;do{var E=z.head[--T];z.head[T]=E>=J?E-J:0}while(--m);T=m=J;do E=z.Go[--T],z.Go[T]=E>=J?E-J:0;while(--m);e+=J}if(z.lF.uy===0)break;T=z.lF;m=z.window;E=z.Zd+z.dE;var Z=T.uy;Z>e&&(Z=e);Z===0?m=0:(T.uy-=Z,Hd.rF(m,T.input,T.Q5,Z,E),T.state.wrap===1?T.W7=OS(T.W7,m,Z,E):T.state.wrap===2&&(T.W7=p3(T.W7,m,Z,E)),T.Q5+=Z,T.x_+=Z,m=Z);z.dE+=m;if(z.dE+z.eb>=3)for(e=z.Zd-z.eb, +z.Pk=z.window[e],z.Pk=(z.Pk<=3&&(z.Pk=(z.Pk<=3)if(m=ZQ(z,z.Zd-z.WC,z.E4-3),z.dE-=z.E4,z.E4<=z.kh&&z.dE>=3){z.E4--;do z.Zd++,z.Pk=(z.Pk<=3&&(z.Pk=(z.Pk<4096)&&(z.E4=2));if(z.Z4>=3&&z.E4<=z.Z4){e=z.Zd+z.dE-3;m=ZQ(z,z.Zd-1-z.JO,z.Z4-3);z.dE-=z.Z4-1;z.Z4-=2;do++z.Zd<=e&&(z.Pk=(z.Pk<=3&&z.Zd>0&&(e=z.Zd-1,m=E[e],m===E[++e]&&m===E[++e]&&m===E[++e])){for(T=z.Zd+258;m===E[++e]&&m===E[++e]&&m===E[++e]&&m===E[++e]&&m===E[++e]&&m===E[++e]&&m===E[++e]&&m===E[++e]&&ez.dE&&(z.E4=z.dE)}z.E4>=3?(m=ZQ(z,1,z.E4-3),z.dE-=z.E4,z.Zd+=z.E4,z.E4=0):(m=ZQ(z,0,z.window[z.Zd]),z.dE--,z.Zd++);if(m&&(qK(z,!1),z.lF.Di===0))return 1}z.eb=0;return J=== +4?(qK(z,!0),z.lF.Di===0?3:4):z.Dq&&(qK(z,!1),z.lF.Di===0)?1:2}; +wUb=function(z,J){for(var m;;){if(z.dE===0&&(NK(z),z.dE===0)){if(J===0)return 1;break}z.E4=0;m=ZQ(z,0,z.window[z.Zd]);z.dE--;z.Zd++;if(m&&(qK(z,!1),z.lF.Di===0))return 1}z.eb=0;return J===4?(qK(z,!0),z.lF.Di===0?3:4):z.Dq&&(qK(z,!1),z.lF.Di===0)?1:2}; +n3=function(z,J,m,e,T){this.o3f=z;this.Cbh=J;this.Oqi=m;this.Euh=e;this.func=T}; +qs4=function(){this.lF=null;this.status=0;this.FG=null;this.wrap=this.pending=this.E5=this.Qc=0;this.Jw=null;this.ZO=0;this.method=8;this.hL=-1;this.zd=this.Nc=this.LB=0;this.window=null;this.Fu=0;this.head=this.Go=null;this.wH=this.wj=this.strategy=this.level=this.kh=this.B8=this.Z4=this.dE=this.WC=this.Zd=this.wU=this.JO=this.E4=this.zk=this.Jx=this.Vd=this.vD=this.gf=this.Pk=0;this.bV=new Hd.yd(1146);this.Kz=new Hd.yd(122);this.Sf=new Hd.yd(78);cT(this.bV);cT(this.Kz);cT(this.Sf);this.aJ=this.Ec= +this.ol=null;this.Pv=new Hd.yd(16);this.rW=new Hd.yd(573);cT(this.rW);this.z5=this.Mt=0;this.depth=new Hd.yd(573);cT(this.depth);this.yn=this.gy=this.eb=this.matches=this.RM=this.Ky=this.xz=this.Dq=this.Fi=this.Fe=0}; +d$b=function(z,J){if(!z||!z.state||J>5||J<0)return z?i2(z,-2):-2;var m=z.state;if(!z.output||!z.input&&z.uy!==0||m.status===666&&J!==4)return i2(z,z.Di===0?-5:-2);m.lF=z;var e=m.hL;m.hL=J;if(m.status===42)if(m.wrap===2)z.W7=0,dx(m,31),dx(m,139),dx(m,8),m.Jw?(dx(m,(m.Jw.text?1:0)+(m.Jw.qb?2:0)+(m.Jw.extra?4:0)+(m.Jw.name?8:0)+(m.Jw.comment?16:0)),dx(m,m.Jw.time&255),dx(m,m.Jw.time>>8&255),dx(m,m.Jw.time>>16&255),dx(m,m.Jw.time>>24&255),dx(m,m.level===9?2:m.strategy>=2||m.level<2?4:0),dx(m,m.Jw.os& +255),m.Jw.extra&&m.Jw.extra.length&&(dx(m,m.Jw.extra.length&255),dx(m,m.Jw.extra.length>>8&255)),m.Jw.qb&&(z.W7=p3(z.W7,m.FG,m.pending,0)),m.ZO=0,m.status=69):(dx(m,0),dx(m,0),dx(m,0),dx(m,0),dx(m,0),dx(m,m.level===9?2:m.strategy>=2||m.level<2?4:0),dx(m,3),m.status=113);else{var T=8+(m.Nc-8<<4)<<8;T|=(m.strategy>=2||m.level<2?0:m.level<6?1:m.level===6?2:3)<<6;m.Zd!==0&&(T|=32);m.status=113;I3(m,T+(31-T%31));m.Zd!==0&&(I3(m,z.W7>>>16),I3(m,z.W7&65535));z.W7=1}if(m.status===69)if(m.Jw.extra){for(T= +m.pending;m.ZO<(m.Jw.extra.length&65535)&&(m.pending!==m.Qc||(m.Jw.qb&&m.pending>T&&(z.W7=p3(z.W7,m.FG,m.pending-T,T)),WT(z),T=m.pending,m.pending!==m.Qc));)dx(m,m.Jw.extra[m.ZO]&255),m.ZO++;m.Jw.qb&&m.pending>T&&(z.W7=p3(z.W7,m.FG,m.pending-T,T));m.ZO===m.Jw.extra.length&&(m.ZO=0,m.status=73)}else m.status=73;if(m.status===73)if(m.Jw.name){T=m.pending;do{if(m.pending===m.Qc&&(m.Jw.qb&&m.pending>T&&(z.W7=p3(z.W7,m.FG,m.pending-T,T)),WT(z),T=m.pending,m.pending===m.Qc)){var E=1;break}E=m.ZOT&&(z.W7=p3(z.W7,m.FG,m.pending-T,T));E===0&&(m.ZO=0,m.status=91)}else m.status=91;if(m.status===91)if(m.Jw.comment){T=m.pending;do{if(m.pending===m.Qc&&(m.Jw.qb&&m.pending>T&&(z.W7=p3(z.W7,m.FG,m.pending-T,T)),WT(z),T=m.pending,m.pending===m.Qc)){E=1;break}E=m.ZOT&&(z.W7=p3(z.W7,m.FG,m.pending-T,T));E===0&&(m.status=103)}else m.status= +103;m.status===103&&(m.Jw.qb?(m.pending+2>m.Qc&&WT(z),m.pending+2<=m.Qc&&(dx(m,z.W7&255),dx(m,z.W7>>8&255),z.W7=0,m.status=113)):m.status=113);if(m.pending!==0){if(WT(z),z.Di===0)return m.hL=-1,0}else if(z.uy===0&&(J<<1)-(J>4?9:0)<=(e<<1)-(e>4?9:0)&&J!==4)return i2(z,-5);if(m.status===666&&z.uy!==0)return i2(z,-5);if(z.uy!==0||m.dE!==0||J!==0&&m.status!==666){e=m.strategy===2?wUb(m,J):m.strategy===3?l1u(m,J):YH[m.level].func(m,J);if(e===3||e===4)m.status=666;if(e===1||e===3)return z.Di===0&&(m.hL= +-1),0;if(e===2&&(J===1?(Qo(m,2,3),vd(m,256,l2),m.yn===16?(Lz(m,m.gy),m.gy=0,m.yn=0):m.yn>=8&&(m.FG[m.pending++]=m.gy&255,m.gy>>=8,m.yn-=8)):J!==5&&(Qo(m,0,3),ezz(m,0,0),J===3&&(cT(m.head),m.dE===0&&(m.Zd=0,m.zk=0,m.eb=0))),WT(z),z.Di===0))return m.hL=-1,0}if(J!==4)return 0;if(m.wrap<=0)return 1;m.wrap===2?(dx(m,z.W7&255),dx(m,z.W7>>8&255),dx(m,z.W7>>16&255),dx(m,z.W7>>24&255),dx(m,z.x_&255),dx(m,z.x_>>8&255),dx(m,z.x_>>16&255),dx(m,z.x_>>24&255)):(I3(m,z.W7>>>16),I3(m,z.W7&65535));WT(z);m.wrap>0&& +(m.wrap=-m.wrap);return m.pending!==0?0:1}; +C3=function(z){if(!(this instanceof C3))return new C3(z);z=this.options=Hd.assign({level:-1,method:8,chunkSize:16384,yW:15,Xd3:8,strategy:0,WR:""},z||{});z.raw&&z.yW>0?z.yW=-z.yW:z.KFb&&z.yW>0&&z.yW<16&&(z.yW+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.lF=new I1u;this.lF.Di=0;var J=this.lF;var m=z.level,e=z.method,T=z.yW,E=z.Xd3,Z=z.strategy;if(J){var c=1;m===-1&&(m=6);T<0?(c=0,T=-T):T>15&&(c=2,T-=16);if(E<1||E>9||e!==8||T<8||T>15||m<0||m>9||Z<0||Z>4)J=i2(J,-2);else{T===8&&(T=9); +var W=new qs4;J.state=W;W.lF=J;W.wrap=c;W.Jw=null;W.Nc=T;W.LB=1<>=7;E<30;E++)for(TK[E]=Z<<7,T=0;T<1<=l.LB&&(J===0&&(cT(l.head),l.Zd=0,l.zk=0,l.eb=0),m=new Hd.ET(l.LB),Hd.rF(m,E,Z-l.LB,l.LB,0),E=m,Z=l.LB);m=z.uy;e=z.Q5;T=z.input;z.uy=Z;z.Q5=0;z.input=E;for(NK(l);l.dE>=3;){E=l.Zd;Z=l.dE-2;do l.Pk=(l.Pk<=-6&&(0,m[12])(m[18],m[86]),m[53]>=6&&(0,m[79])(m[95],m[21]),m[8]!=-6&&(m[3]<1||((0,m[79])(m[3],m[77])-(0,m[38])(m[100],m[18]),null))&&(0,m[19])((0,m[38])(m[100],m[42]),m[38],m[4],m[new Date(e4[7])/1E3]),m[69]!==-10&&(m[58]!==-1?(0,m[19])((0,m[26])(m[58],m[4]),m[99],m[55],m[100],(0,m[66])()):(0,m[19])((0,m[43])(m[4]), +m[73],m[86],m[83])),(m[85]>4||((0,m[99])(m[55],m[83],(0,m[27])()),(0,m[95])(m[94],m[83]),(0,m[95])(m[92],m[35]),0))&&(0,m[61])((0,m[95])(m[50],m[46]),m[new Date(e4[8])/1E3],(0,m[95])(m[88],m[46]),m[39],m[91]),m[76]!==8?(((0,m[13])((0,m[35])(m[80],m[77]),m[16],(0,m[40])(m[1]),m[65],m[68],m[5]),m[87])((0,m[84])((0,m[30])(m[78],m[12]),m[48],m[56],m[50]),m[91],(0,m[17])(m[0],m[10])^(0,m[17])(m[81],m[75]),m[15],m[56],m[5]),m[91])(((0,m[37])(m[80],m[27]),m[17])(m[26],m[5]),m[18],m[89],m[13]):(((0,m[72])((0,m[14])(m[58], +m[30],(0,m[50])()),(0,m[64])(m[70],(0,m[75])(m[8],m[38]),(0,m[75])(m[13],m[80]),(0,m[75])(m[new Date(e4[9])/1E3],m[16]),(0,m[75])(m[30],m[new Date(e4[10])/1E3]),m[13]),m[94],((0,m[75])(m[13],m[56]),m[40])(m[46],m[13]),m[93],m[8]),m[87])(m[0],m[78]),m[14])(m[58],m[78],(0,m[50])()),m[96]!=9&&(m[24]===3?(0,m[40])(m[37],m[22]):(0,m[20])(m[new Date(e4[11])/1E3],m[22])),m[1]!==5&&(m[12]===-1?(0,m[21])((0,m[21])((0,m[2])(m[58],m[12]),m[48],m[60],m[95]),m[42],m[3],m[41],(0,m[6])()):((0,m[21])((0,m[14])(m[27], +m[41]),m[14],m[17],m[36]),m[68])(m[62],m[41]))}catch(e){(0,m[42])(m[86],m[58],(0,m[13])()),(0,m[68])(m[25],m[5]),(0,m[2])(m[5],m[63]),(0,m[80])((0,m[21])((0,m[2])(m[41],m[82]),m[68],m[37],m[41]),m[42],(0,m[2])(m[41],m[54]),m[86],m[41],(0,m[78])()),(0,m[48])(m[69],m[50])}finally{m[93]!==-10&&(m[64]!=8?(0,m[80])((0,m[21])((0,m[68])(m[19],m[36]),m[94],m[97],m[82]),m[10],(0,m[10])(m[95],m[0]),m[36],m[48]):((((0,m[85])(m[28],m[0],(0,m[56])()),m[40])(m[48]),m[45])(m[48],m[83]),m[45])(m[0],m[35])),m[36]!== +-2?((0,m[19])(m[57],(0,m[57])(m[52],m[84]),((0,m[10])(m[43],m[37]),m[9])(m[71],m[73],(0,m[74])()),(0,m[13])(m[52],m[73]),m[64],m[17]),m[44])(m[13],((0,m[15])(m[34],m[25]),m[35])(m[48],m[3]),(0,m[22])(m[19]),(0,m[27])(m[4],m[39]),m[99],m[23])+(0,m[61])(m[70],m[88]):((((((0,m[new Date(e4[12])/1E3])((0,m[26])(m[34],m[41]),m[83],m[10],m[34]),m[31])(m[23]),m[59])((0,m[87])(m[43],m[23],(0,m[22])()),m[26],(0,m[26])(m[23],m[40]),m[34],m[56]),m[7])((0,m[26])(m[71],m[65])+(0,m[83])(m[57],m[93]),m[26],m[34], +m[84]),m[8])(m[88]),m[87])(m[43],m[23],(0,m[51])())}}catch(e){return e4[13]+z}return J.join(e4[3])}; +x$q=function(z){return z,e4[14][10+!!z]}; +g.DQ=function(z){this.name=z}; +M1E=function(z){z=jy(z);ot(this);this.eE=z}; +b2=function(z){z=jy(z);ot(this);this.eE=z}; +$H=function(z){z=jy(z);ot(this);this.eE=z}; +Ad4=function(z){z=jy(z);ot(this);this.eE=z}; +gx=function(z){z=jy(z);ot(this);this.eE=z}; +xH=function(z){z=jy(z);ot(this);this.eE=z}; +MK=function(z){z=jy(z);ot(this);this.eE=z}; +A9=function(z){z=jy(z);ot(this);this.eE=z}; +o3=function(z){z=jy(z);ot(this);this.eE=z}; +j3=function(z){z=jy(z);ot(this);this.eE=z}; +h9=function(z){z=jy(z);ot(this);this.eE=z}; +u2=function(z){z=jy(z);ot(this);this.eE=z}; +Vt=function(z){z=jy(z);ot(this);this.eE=z}; +PT=function(z){z=jy(z);ot(this);this.eE=z}; +t9=function(z){z=jy(z);ot(this);this.eE=z}; +HT=function(z){z=jy(z,500);ot(this);this.eE=z}; +US=function(z){z=jy(z);ot(this);this.eE=z}; +R3=function(z){z=jy(z);ot(this);this.eE=z}; +oGz=function(z){z=jy(z);ot(this);this.eE=z}; +jLR=function(){return g.Hq("yt.ads.biscotti.lastId_")||""}; +hzR=function(z){g.tu("yt.ads.biscotti.lastId_",z)}; +L3=function(){var z=arguments,J=kH;z.length>1?J[z[0]]=z[1]:z.length===1&&Object.assign(J,z[0])}; +g.Qt=function(z,J){return z in kH?kH[z]:J}; +vT=function(z){var J=kH.EXPERIMENT_FLAGS;return J?J[z]:void 0}; +uHb=function(z){sS.forEach(function(J){return J(z)})}; +g.zo=function(z){return z&&window.yterr?function(){try{return z.apply(this,arguments)}catch(J){g.rx(J)}}:z}; +g.rx=function(z){var J=g.Hq("yt.logging.errors.log");J?J(z,"ERROR",void 0,void 0,void 0,void 0,void 0):(J=g.Qt("ERRORS",[]),J.push([z,"ERROR",void 0,void 0,void 0,void 0,void 0]),L3("ERRORS",J));uHb(z)}; +eA=function(z,J,m,e,T){var E=g.Hq("yt.logging.errors.log");E?E(z,"WARNING",J,m,e,void 0,T):(E=g.Qt("ERRORS",[]),E.push([z,"WARNING",J,m,e,void 0,T]),L3("ERRORS",E))}; +To=function(z,J){J=z.split(J);for(var m={},e=0,T=J.length;e1?z[1]:z[0])):{}}; +cf=function(z,J){return H8u(z,J||{},!0)}; +Wf=function(z,J){return H8u(z,J||{},!1)}; +H8u=function(z,J,m){var e=z.split("#",2);z=e[0];e=e.length>1?"#"+e[1]:"";var T=z.split("?",2);z=T[0];T=Z8(T[1]||"");for(var E in J)if(m||!g.bu(T,E))T[E]=J[E];return g.v1(z,T)+e}; +lv=function(z){if(!J)var J=window.location.href;var m=g.t0(1,z),e=g.H1(z);m&&e?(z=z.match(P1),J=J.match(P1),z=z[3]==J[3]&&z[1]==J[1]&&z[4]==J[4]):z=e?g.H1(J)===e&&(Number(g.t0(4,J))||null)===(Number(g.t0(4,z))||null):!0;return z}; +wj=function(z){z||(z=document.location.href);z=g.t0(1,z);return z!==null&&z==="https"}; +qp=function(z){z=U$4(z);return z===null?!1:z[0]==="com"&&z[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; +Rzz=function(z){z=U$4(z);return z===null?!1:z[1]==="google"?!0:z[2]==="google"?z[0]==="au"&&z[1]==="com"?!0:z[0]==="uk"&&z[1]==="co"?!0:!1:!1}; +U$4=function(z){z=g.H1(z);return z!==null?z.split(".").reverse():null}; +V14=function(z){return z&&z.match(kIq)?z:mP(z)}; +OL=function(z){var J=dj;z=z===void 0?jLR():z;var m=Object,e=m.assign,T=IQ(J);var E=J.K;try{var Z=E.screenX;var c=E.screenY}catch(C){}try{var W=E.outerWidth;var l=E.outerHeight}catch(C){}try{var w=E.innerWidth;var q=E.innerHeight}catch(C){}try{var d=E.screenLeft;var I=E.screenTop}catch(C){}try{w=E.innerWidth,q=E.innerHeight}catch(C){}try{var O=E.screen.availWidth;var G=E.screen.availTop}catch(C){}E=[d,I,Z,c,O,G,W,l,w,q];Z=wYq(!1,J.K.top);c={};var n=n===void 0?g.VR:n;W=new Hl;"SVGElement"in n&&"createElementNS"in +n.document&&W.set(0);l=aBb();l["allow-top-navigation-by-user-activation"]&&W.set(1);l["allow-popups-to-escape-sandbox"]&&W.set(2);n.crypto&&n.crypto.subtle&&W.set(3);"TextDecoder"in n&&"TextEncoder"in n&&W.set(4);n=XMu(W);J=(c.bc=n,c.bih=Z.height,c.biw=Z.width,c.brdim=E.join(),c.vis=Ig(J.T),c.wgl=!!w1.WebGLRenderingContext,c);m=e.call(m,T,J);m.ca_type="image";z&&(m.bid=z);return m}; +IQ=function(z){var J={};J.dt=LSs;J.flash="0";a:{try{var m=z.K.top.location.href}catch(w){z=2;break a}z=m?m===z.T.location.href?0:1:2}J=(J.frm=z,J);try{J.u_tz=-(new Date).getTimezoneOffset();var e=e===void 0?w1:e;try{var T=e.history.length}catch(w){T=0}J.u_his=T;var E;J.u_h=(E=w1.screen)==null?void 0:E.height;var Z;J.u_w=(Z=w1.screen)==null?void 0:Z.width;var c;J.u_ah=(c=w1.screen)==null?void 0:c.availHeight;var W;J.u_aw=(W=w1.screen)==null?void 0:W.availWidth;var l;J.u_cd=(l=w1.screen)==null?void 0: +l.colorDepth}catch(w){}return J}; +vG4=function(){if(!QLu)return null;var z=QLu();return"open"in z?z:null}; +g.yp=function(z){switch(pH(z)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; +pH=function(z){return z&&"status"in z?z.status:-1}; +g.Np=function(z,J){typeof z==="function"&&(z=g.zo(z));return window.setTimeout(z,J)}; +g.Go=function(z,J){typeof z==="function"&&(z=g.zo(z));return window.setInterval(z,J)}; +g.Xj=function(z){window.clearTimeout(z)}; +g.nH=function(z){window.clearInterval(z)}; +g.CH=function(z){z=YJ(z);return typeof z==="string"&&z==="false"?!1:!!z}; +g.aQ=function(z,J){z=YJ(z);return z===void 0&&J!==void 0?J:Number(z||0)}; +KH=function(){return g.Qt("EXPERIMENTS_TOKEN","")}; +YJ=function(z){return g.Qt("EXPERIMENT_FLAGS",{})[z]}; +Bf=function(){for(var z=[],J=g.Qt("EXPERIMENTS_FORCED_FLAGS",{}),m=g.y(Object.keys(J)),e=m.next();!e.done;e=m.next())e=e.value,z.push({key:e,value:String(J[e])});m=g.Qt("EXPERIMENT_FLAGS",{});e=g.y(Object.keys(m));for(var T=e.next();!T.done;T=e.next())T=T.value,T.startsWith("force_")&&J[T]===void 0&&z.push({key:T,value:String(m[T])});return z}; +SA=function(z,J,m,e,T,E,Z,c){function W(){(l&&"readyState"in l?l.readyState:0)===4&&J&&g.zo(J)(l)} +m=m===void 0?"GET":m;e=e===void 0?"":e;c=c===void 0?!1:c;var l=vG4();if(!l)return null;"onloadend"in l?l.addEventListener("loadend",W,!1):l.onreadystatechange=W;g.CH("debug_forward_web_query_parameters")&&(z=sLE(z,window.location.search));l.open(m,z,!0);E&&(l.responseType=E);Z&&(l.withCredentials=!0);m=m==="POST"&&(window.FormData===void 0||!(e instanceof FormData));if(T=rdu(z,T))for(var w in T)l.setRequestHeader(w,T[w]),"content-type"===w.toLowerCase()&&(m=!1);m&&l.setRequestHeader("Content-Type", +"application/x-www-form-urlencoded");if(c&&"setAttributionReporting"in XMLHttpRequest.prototype){z={eventSourceEligible:!0,triggerEligible:!1};try{l.setAttributionReporting(z)}catch(q){eA(q)}}l.send(e);return l}; +rdu=function(z,J){J=J===void 0?{}:J;var m=lv(z),e=g.Qt("INNERTUBE_CLIENT_NAME"),T=g.CH("web_ajax_ignore_global_headers_if_set"),E;for(E in zhu){var Z=g.Qt(zhu[E]),c=E==="X-Goog-AuthUser"||E==="X-Goog-PageId";E!=="X-Goog-Visitor-Id"||Z||(Z=g.Qt("VISITOR_DATA"));var W;if(!(W=!Z)){if(!(W=m||(g.H1(z)?!1:!0))){W=z;var l;if(l=g.CH("add_auth_headers_to_remarketing_google_dot_com_ping")&&E==="Authorization"&&(e==="TVHTML5"||e==="TVHTML5_UNPLUGGED"||e==="TVHTML5_SIMPLY")&&Rzz(W))W=VB(g.t0(5,W))||"",W=W.split("/"), +W="/"+(W.length>1?W[1]:""),l=W==="/pagead";W=l?!0:!1}W=!W}W||T&&J[E]!==void 0||e==="TVHTML5_UNPLUGGED"&&c||(J[E]=Z)}"X-Goog-EOM-Visitor-Id"in J&&"X-Goog-Visitor-Id"in J&&delete J["X-Goog-Visitor-Id"];if(m||!g.H1(z))J["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(m||!g.H1(z)){try{var w=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(q){}w&&(J["X-YouTube-Time-Zone"]=w)}document.location.hostname.endsWith("youtubeeducation.com")||!m&&g.H1(z)||(J["X-YouTube-Ad-Signals"]= +EL(OL()));return J}; +m6z=function(z,J){var m=g.H1(z);g.CH("debug_handle_relative_url_for_query_forward_killswitch")||!m&&lv(z)&&(m=document.location.hostname);var e=VB(g.t0(5,z));e=(m=m&&(m.endsWith("youtube.com")||m.endsWith("youtube-nocookie.com")))&&e&&e.startsWith("/api/");if(!m||e)return z;var T=Z8(J),E={};g.de(JQs,function(Z){T[Z]&&(E[Z]=T[Z])}); +return Wf(z,E)}; +D8=function(z,J){J.method="POST";J.postParams||(J.postParams={});return g.fH(z,J)}; +ETR=function(z,J){if(window.fetch&&J.format!=="XML"){var m={method:J.method||"GET",credentials:"same-origin"};J.headers&&(m.headers=J.headers);J.priority&&(m.priority=J.priority);z=ehf(z,J);var e=TQb(z,J);e&&(m.body=e);J.withCredentials&&(m.credentials="include");var T=J.context||g.VR,E=!1,Z;fetch(z,m).then(function(c){if(!E){E=!0;Z&&g.Xj(Z);var W=c.ok,l=function(w){w=w||{};W?J.onSuccess&&J.onSuccess.call(T,w,c):J.onError&&J.onError.call(T,w,c);J.onFinish&&J.onFinish.call(T,w,c)}; +(J.format||"JSON")==="JSON"&&(W||c.status>=400&&c.status<500)?c.json().then(l,function(){l(null)}):l(null)}}).catch(function(){J.onError&&J.onError.call(T,{},{})}); +z=J.timeout||0;J.onFetchTimeout&&z>0&&(Z=g.Np(function(){E||(E=!0,g.Xj(Z),J.onFetchTimeout.call(J.context||g.VR))},z))}else g.fH(z,J)}; +g.fH=function(z,J){var m=J.format||"JSON";z=ehf(z,J);var e=TQb(z,J),T=!1,E=ZEs(z,function(W){if(!T){T=!0;c&&g.Xj(c);var l=g.yp(W),w=null,q=400<=W.status&&W.status<500,d=500<=W.status&&W.status<600;if(l||q||d)w=FAz(z,m,W,J.convertToSafeHtml);l&&(l=iEq(m,W,w));w=w||{};q=J.context||g.VR;l?J.onSuccess&&J.onSuccess.call(q,W,w):J.onError&&J.onError.call(q,W,w);J.onFinish&&J.onFinish.call(q,W,w)}},J.method,e,J.headers,J.responseType,J.withCredentials); +e=J.timeout||0;if(J.onTimeout&&e>0){var Z=J.onTimeout;var c=g.Np(function(){T||(T=!0,E.abort(),g.Xj(c),Z.call(J.context||g.VR,E))},e)}return E}; +ehf=function(z,J){J.includeDomain&&(z=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+z);var m=g.Qt("XSRF_FIELD_NAME");if(J=J.urlParams)J[m]&&delete J[m],z=cf(z,J);return z}; +TQb=function(z,J){var m=g.Qt("XSRF_FIELD_NAME"),e=g.Qt("XSRF_TOKEN"),T=J.postBody||"",E=J.postParams,Z=g.Qt("XSRF_FIELD_NAME"),c;J.headers&&(c=J.headers["Content-Type"]);J.excludeXsrf||g.H1(z)&&!J.withCredentials&&g.H1(z)!==document.location.hostname||J.method!=="POST"||c&&c!=="application/x-www-form-urlencoded"||J.postParams&&J.postParams[Z]||(E||(E={}),E[m]=e);(g.CH("ajax_parse_query_data_only_when_filled")&&E&&Object.keys(E).length>0||E)&&typeof T==="string"&&(T=Z8(T),g.hP(T,E),T=J.postBodyFormat&& +J.postBodyFormat==="JSON"?JSON.stringify(T):g.QB(T));E=T||E&&!g.xf(E);!cQ1&&E&&J.method!=="POST"&&(cQ1=!0,g.rx(Error("AJAX request with postData should use POST")));return T}; +FAz=function(z,J,m,e){var T=null;switch(J){case "JSON":try{var E=m.responseText}catch(Z){throw e=Error("Error reading responseText"),e.params=z,eA(e),Z;}z=m.getResponseHeader("Content-Type")||"";E&&z.indexOf("json")>=0&&(E.substring(0,5)===")]}'\n"&&(E=E.substring(5)),T=JSON.parse(E));break;case "XML":if(z=(z=m.responseXML)?WAE(z):null)T={},g.de(z.getElementsByTagName("*"),function(Z){T[Z.tagName]=lnq(Z)})}e&&wlb(T); +return T}; +wlb=function(z){if(g.QR(z))for(var J in z)J==="html_content"||u1u(J,"_html")?z[J]=V2(z[J]):wlb(z[J])}; +iEq=function(z,J,m){if(J&&J.status===204)return!0;switch(z){case "JSON":return!!m;case "XML":return Number(m&&m.return_code)===0;case "RAW":return!0;default:return!!m}}; +WAE=function(z){return z?(z=("responseXML"in z?z.responseXML:z).getElementsByTagName("root"))&&z.length>0?z[0]:null:null}; +lnq=function(z){var J="";g.de(z.childNodes,function(m){J+=m.nodeValue}); +return J}; +$J=function(z,J){var m=g.oi(J),e;return(new g.YV(function(T,E){m.onSuccess=function(Z){g.yp(Z)?T(new qDb(Z)):E(new bv("Request failed, status="+pH(Z),"net.badstatus",Z))}; +m.onError=function(Z){E(new bv("Unknown request error","net.unknown",Z))}; +m.onTimeout=function(Z){E(new bv("Request timed out","net.timeout",Z))}; +e=g.fH(z,m)})).IF(function(T){if(T instanceof fB){var E; +(E=e)==null||E.abort()}return KB(T)})}; +g.gj=function(z,J,m,e){function T(c,W,l){return c.IF(function(w){if(W<=0||pH(w.xhr)===403)return KB(new bv("Request retried too many times","net.retryexhausted",w.xhr,w));w=Math.pow(2,m-W+1)*l;var q=Z>0?Math.min(Z,w):w;return E(l).then(function(){return T($J(z,J),W-1,q)})})} +function E(c){return new g.YV(function(W){setTimeout(W,c)})} +var Z=Z===void 0?-1:Z;return T($J(z,J),m-1,e)}; +bv=function(z,J,m){O1.call(this,z+", errorCode="+J);this.errorCode=J;this.xhr=m;this.name="PromiseAjaxError"}; +qDb=function(z){this.xhr=z}; +xJ=function(z){this.K=z===void 0?null:z;this.S=0;this.T=null}; +Mp=function(z){var J=new xJ;z=z===void 0?null:z;J.S=2;J.T=z===void 0?null:z;return J}; +Aj=function(z){var J=new xJ;z=z===void 0?null:z;J.S=1;J.T=z===void 0?null:z;return J}; +g.hj=function(z,J,m,e,T){oQ||jA.set(""+z,J,{cV:m,path:"/",domain:e===void 0?"youtube.com":e,secure:T===void 0?!1:T})}; +g.uv=function(z,J){if(!oQ)return jA.get(""+z,J)}; +g.Vp=function(z,J,m){oQ||jA.remove(""+z,J===void 0?"/":J,m===void 0?"youtube.com":m)}; +d6u=function(){if(g.CH("embeds_web_enable_cookie_detection_fix")){if(!g.VR.navigator.cookieEnabled)return!1}else if(!jA.isEnabled())return!1;if(!jA.isEmpty())return!0;g.CH("embeds_web_enable_cookie_detection_fix")?jA.set("TESTCOOKIESENABLED","1",{cV:60,k22:"none",secure:!0}):jA.set("TESTCOOKIESENABLED","1",{cV:60});if(jA.get("TESTCOOKIESENABLED")!=="1")return!1;jA.remove("TESTCOOKIESENABLED");return!0}; +g.P=function(z,J){if(z)return z[J.name]}; +Pf=function(z){var J=g.Qt("INNERTUBE_HOST_OVERRIDE");J&&(z=String(J)+String(Uw(z)));return z}; +Inq=function(z){var J={};g.CH("json_condensed_response")&&(J.prettyPrint="false");return z=Wf(z,J)}; +tj=function(z,J){var m=m===void 0?{}:m;z={method:J===void 0?"POST":J,mode:lv(z)?"same-origin":"cors",credentials:lv(z)?"same-origin":"include"};J={};for(var e=g.y(Object.keys(m)),T=e.next();!T.done;T=e.next())T=T.value,m[T]&&(J[T]=m[T]);Object.keys(J).length>0&&(z.headers=J);return z}; +Hf=function(){var z=/Chrome\/(\d+)/.exec(g.bF());return z?parseFloat(z[1]):NaN}; +UL=function(){var z=/\sCobalt\/(\S+)\s/.exec(g.bF());if(!z)return NaN;var J=[];z=g.y(z[1].split("."));for(var m=z.next();!m.done;m=z.next())m=parseInt(m.value,10),m>=0&&J.push(m);return parseFloat(J.join("."))}; +kJ=function(){return g.RQ("android")&&g.RQ("chrome")&&!(g.RQ("trident/")||g.RQ("edge/"))&&!g.RQ("cobalt")}; +OEu=function(){return g.RQ("armv7")||g.RQ("aarch64")||g.RQ("android")}; +g.LH=function(){return g.RQ("cobalt")}; +Qp=function(){return g.RQ("cobalt")&&g.RQ("appletv")}; +vf=function(){return g.RQ("(ps3; leanback shell)")||g.RQ("ps3")&&g.LH()}; +plf=function(){return g.RQ("(ps4; leanback shell)")||g.RQ("ps4")&&g.LH()}; +g.yQs=function(){return g.LH()&&(g.RQ("ps4 vr")||g.RQ("ps4 pro vr"))}; +sL=function(){var z=/WebKit\/([0-9]+)/.exec(g.bF());return!!(z&&parseInt(z[1],10)>=600)}; +rj=function(){var z=/WebKit\/([0-9]+)/.exec(g.bF());return!!(z&&parseInt(z[1],10)>=602)}; +NQu=function(){return g.RQ("iemobile")||g.RQ("windows phone")&&g.RQ("edge")}; +my=function(){return(z7||JY)&&g.RQ("applewebkit")&&!g.RQ("version")&&(!g.RQ("safari")||g.RQ("gsa/"))}; +T7=function(){return g.eO&&g.RQ("version/")}; +EF=function(){return g.RQ("smart-tv")&&g.RQ("samsung")}; +g.RQ=function(z){var J=g.bF();return J?J.toLowerCase().indexOf(z)>=0:!1}; +Ze=function(){return A5j()||my()||T7()?!0:g.Qt("EOM_VISITOR_DATA")?!1:!0}; +Fa=function(z,J){return J===void 0||J===null?z:J==="1"||J===!0||J===1||J==="True"?!0:!1}; +iM=function(z,J,m){for(var e in m)if(m[e]==J)return m[e];return z}; +cR=function(z,J){return J===void 0||J===null?z:Number(J)}; +WR=function(z,J){return J===void 0||J===null?z:J.toString()}; +lM=function(z,J){if(J){if(z==="fullwidth")return Infinity;if(z==="fullheight")return 0}return z&&(J=z.match(Ga4))&&(z=Number(J[2]),J=Number(J[1]),!isNaN(z)&&!isNaN(J)&&z>0)?J/z:NaN}; +ws=function(z){var J=z.docid||z.video_id||z.videoId||z.id;if(J)return J;J=z.raw_player_response;J||(z=z.player_response)&&(J=JSON.parse(z));return J&&J.videoDetails&&J.videoDetails.videoId||null}; +Xlz=function(z){return qN(z,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; +g.ds=function(z){return z==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||z==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; +qN=function(z,J){J=(J===void 0?0:J)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(J="EMBEDDED_PLAYER_MODE_PFL");var m=z.raw_embedded_player_response;if(!m&&(z=z.embedded_player_response))try{m=JSON.parse(z)}catch(e){return J}return m?iM(J,m.embeddedPlayerMode,nTz):J}; +OF=function(z){O1.call(this,z.message||z.description||z.name);this.isMissing=z instanceof IW;this.isTimeout=z instanceof bv&&z.errorCode=="net.timeout";this.isCanceled=z instanceof fB}; +IW=function(){O1.call(this,"Biscotti ID is missing from server")}; +YDq=function(){if(g.CH("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!Ze())return Error("User has not consented - not fetching biscotti id.");var z=g.Qt("PLAYER_VARS",{});if(g.Mr(z,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(Xlz(z))return Error("Biscotti id fetching has been disabled for pfl.")}; +BQz=function(){var z=YDq();if(z!==void 0)return KB(z);pJ||(pJ=$J("//googleads.g.doubleclick.net/pagead/id",Cfs).then(anf).IF(function(J){return KAf(2,J)})); +return pJ}; +anf=function(z){z=z.xhr.responseText;if(!YO(z,")]}'"))throw new IW;z=JSON.parse(z.substr(4));if((z.type||1)>1)throw new IW;z=z.id;hzR(z);pJ=Aj(z);SDb(18E5,2);return z}; +KAf=function(z,J){J=new OF(J);hzR("");pJ=Mp(J);z>0&&SDb(12E4,z-1);throw J;}; +SDb=function(z,J){g.Np(function(){$J("//googleads.g.doubleclick.net/pagead/id",Cfs).then(anf,function(m){return KAf(J,m)}).IF(g.yB)},z)}; +fnR=function(){try{var z=g.Hq("yt.ads.biscotti.getId_");return z?z():BQz()}catch(J){return KB(J)}}; +bEs=function(z){z&&(z.dataset?z.dataset[D6j()]="true":YiR(z))}; +$61=function(z){return z?z.dataset?z.dataset[D6j()]:z.getAttribute("data-loaded"):null}; +D6j=function(){return gTq.loaded||(gTq.loaded="loaded".replace(/\-([a-z])/g,function(z,J){return J.toUpperCase()}))}; +x6z=function(){var z=document;if("visibilityState"in z)return z.visibilityState;var J=yx+"VisibilityState";if(J in z)return z[J]}; +NN=function(z,J){var m;aS(z,function(e){m=J[e];return!!m}); +return m}; +G7=function(z){if(z.requestFullscreen)z=z.requestFullscreen(void 0);else if(z.webkitRequestFullscreen)z=z.webkitRequestFullscreen();else if(z.mozRequestFullScreen)z=z.mozRequestFullScreen();else if(z.msRequestFullscreen)z=z.msRequestFullscreen();else if(z.webkitEnterFullscreen)z=z.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return z instanceof Promise?z:Promise.resolve()}; +Ys=function(z){var J;g.Xa()?nJ()==z&&(J=document):J=z;return J&&(z=NN(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],J))?(J=z.call(J),J instanceof Promise?J:Promise.resolve()):Promise.resolve()}; +Mpq=function(z){return g.QS(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(J){return"on"+J.toLowerCase()in z})}; +AQu=function(){var z=document;return g.QS(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(J){return"on"+J.toLowerCase()in z})}; +g.Xa=function(){return!!NN(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; +nJ=function(z){z=z===void 0?!1:z;var J=NN(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(z)for(;J&&J.shadowRoot;)J=J.shadowRoot.fullscreenElement;return J?J:null}; +CJ=function(z){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(z=z||window.event){this.event=z;for(var J in z)J in oTR||(this[J]=z[J]);this.scale=z.scale;this.rotation=z.rotation;var m=z.target||z.srcElement;m&&m.nodeType==3&&(m=m.parentNode);this.target=m;var e=z.relatedTarget; +if(e)try{e=e.nodeName?e:null}catch(T){e=null}else this.type=="mouseover"?e=z.fromElement:this.type=="mouseout"&&(e=z.toElement);this.relatedTarget=e;this.clientX=z.clientX!=void 0?z.clientX:z.pageX;this.clientY=z.clientY!=void 0?z.clientY:z.pageY;this.keyCode=z.keyCode?z.keyCode:z.which;this.charCode=z.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=z.altKey;this.ctrlKey=z.ctrlKey;this.shiftKey=z.shiftKey;this.metaKey=z.metaKey;this.K=z.pageX;this.T=z.pageY}}catch(T){}}; +jzq=function(z){if(document.body&&document.documentElement){var J=document.body.scrollTop+document.documentElement.scrollTop;z.K=z.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);z.T=z.clientY+J}}; +hhE=function(z,J,m,e){e=e===void 0?{}:e;z.addEventListener&&(J!="mouseenter"||"onmouseenter"in document?J!="mouseleave"||"onmouseenter"in document?J=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(J="MozMousePixelScroll"):J="mouseout":J="mouseover");return gC(aW,function(T){var E=typeof T[4]==="boolean"&&T[4]==!!e,Z=g.QR(T[4])&&g.QR(e)&&g.AP(T[4],e);return!!T.length&&T[0]==z&&T[1]==J&&T[2]==m&&(E||Z)})}; +g.KJ=function(z,J,m,e){e=e===void 0?{}:e;if(!z||!z.addEventListener&&!z.attachEvent)return"";var T=hhE(z,J,m,e);if(T)return T;T=++umq.count+"";var E=!(J!="mouseenter"&&J!="mouseleave"||!z.addEventListener||"onmouseenter"in document);var Z=E?function(c){c=new CJ(c);if(!qu(c.relatedTarget,function(W){return W==z},!0))return c.currentTarget=z,c.type=J,m.call(z,c)}:function(c){c=new CJ(c); +c.currentTarget=z;return m.call(z,c)}; +Z=g.zo(Z);z.addEventListener?(J=="mouseenter"&&E?J="mouseover":J=="mouseleave"&&E?J="mouseout":J=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(J="MozMousePixelScroll"),Vpq()||typeof e==="boolean"?z.addEventListener(J,Z,e):z.addEventListener(J,Z,!!e.capture)):z.attachEvent("on"+J,Z);aW[T]=[z,J,m,Z,e];return T}; +tpE=function(z){return Pfu(z,function(J){return g.Zv(J,"ytp-ad-has-logging-urls")})}; +Pfu=function(z,J){var m=document.body||document;return g.KJ(m,"click",function(e){var T=qu(e.target,function(E){return E===m||J(E)},!0); +T&&T!==m&&!T.disabled&&(e.currentTarget=T,z.call(T,e))})}; +g.BR=function(z){z&&(typeof z=="string"&&(z=[z]),g.de(z,function(J){if(J in aW){var m=aW[J],e=m[0],T=m[1],E=m[3];m=m[4];e.removeEventListener?Vpq()||typeof m==="boolean"?e.removeEventListener(T,E,m):e.removeEventListener(T,E,!!m.capture):e.detachEvent&&e.detachEvent("on"+T,E);delete aW[J]}}))}; +SO=function(z){for(var J in aW)aW[J][0]==z&&g.BR(J)}; +fJ=function(z){z=z||window.event;var J;z.composedPath&&typeof z.composedPath==="function"?J=z.composedPath():J=z.path;J&&J.length?z=J[0]:(z=z||window.event,z=z.target||z.srcElement,z.nodeType==3&&(z=z.parentNode));return z}; +De=function(z){this.V=z;this.K=null;this.U=0;this.Y=null;this.Z=0;this.T=[];for(z=0;z<4;z++)this.T.push(0);this.S=0;this.fh=g.KJ(window,"mousemove",(0,g.ru)(this.B,this));this.X=g.Go((0,g.ru)(this.Ry,this),25)}; +bM=function(z){g.h.call(this);this.X=[];this.IT=z||this}; +$s=function(z,J,m,e){for(var T=0;T0?m:0;m=e?Date.now()+e*1E3:0;if((e=e?(0,g.MN)():AY())&&window.JSON){typeof J!=="string"&&(J=JSON.stringify(J,void 0));try{e.set(z,J,m)}catch(T){e.remove(z)}}}; +g.jO=function(z){var J=AY(),m=(0,g.MN)();if(!J&&!m||!window.JSON)return null;try{var e=J.get(z)}catch(T){}if(typeof e!=="string")try{e=m.get(z)}catch(T){}if(typeof e!=="string")return null;try{e=JSON.parse(e,void 0)}catch(T){}return e}; +Rhb=function(){var z=(0,g.MN)();if(z&&(z=z.T("yt-player-quality")))return z.creation}; +g.hY=function(z){try{var J=AY(),m=(0,g.MN)();J&&J.remove(z);m&&m.remove(z)}catch(e){}}; +g.uM=function(){return g.jO("yt-remote-session-screen-id")}; +kau=function(z){var J=this;this.T=void 0;this.K=!1;z.addEventListener("beforeinstallprompt",function(m){m.preventDefault();J.T=m}); +z.addEventListener("appinstalled",function(){J.K=!0},{once:!0})}; +Vx=function(){if(!g.VR.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.VR.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.VR.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.VR.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.VR.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(z){return"WEB_DISPLAY_MODE_UNKNOWN"}}; +PR=function(){this.Fx=!0}; +LAq=function(){PR.instance||(PR.instance=new PR);return PR.instance}; +Qzs=function(z){switch(z){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}}; +vTq=function(){this.K=g.Qt("ALT_PREF_COOKIE_NAME","PREF");this.T=g.Qt("ALT_PREF_COOKIE_DOMAIN","youtube.com");var z=g.uv(this.K);z&&this.parse(z)}; +g.HR=function(){tY||(tY=new vTq);return tY}; +g.UF=function(z,J){return!!((szb("f"+(Math.floor(J/31)+1))||0)&1<0;)switch(z=dW.shift(),z.type){case "ERROR":Wj.YA(z.payload);break;case "EVENT":Wj.logEvent(z.eventType,z.payload)}}; +O0=function(z){IV||(Wj?Wj.YA(z):(dW.push({type:"ERROR",payload:z}),dW.length>10&&dW.shift()))}; +p$=function(z,J){IV||(Wj?Wj.logEvent(z,J):(dW.push({type:"EVENT",eventType:z,payload:J}),dW.length>10&&dW.shift()))}; +yO=function(z){if(z.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; +Nq=function(z){return z.substr(0,z.indexOf(":"))||z}; +g.Gf=function(z,J,m,e,T){J=J===void 0?{}:J;m=m===void 0?Zzf[z]:m;e=e===void 0?FHz[z]:e;T=T===void 0?izb[z]:T;g.vR.call(this,m,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:z},J));this.type=z;this.message=m;this.level=e;this.K=T;Object.setPrototypeOf(this,g.Gf.prototype)}; +X2=function(z,J){g.Gf.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:J,foundObjectStores:z},Zzf.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,X2.prototype)}; +n$=function(z,J){var m=Error.call(this);this.message=m.message;"stack"in m&&(this.stack=m.stack);this.index=z;this.objectStore=J;Object.setPrototypeOf(this,n$.prototype)}; +C$=function(z,J,m,e){J=Nq(J);var T=z instanceof Error?z:Error("Unexpected error: "+z);if(T instanceof g.Gf)return T;z={objectStoreNames:m,dbName:J,dbVersion:e};if(T.name==="QuotaExceededError")return new g.Gf("QUOTA_EXCEEDED",z);if(g.Y4&&T.name==="UnknownError")return new g.Gf("QUOTA_MAYBE_EXCEEDED",z);if(T instanceof n$)return new g.Gf("MISSING_INDEX",Object.assign({},z,{objectStore:T.objectStore,index:T.index}));if(T.name==="InvalidStateError"&&cA4.some(function(E){return T.message.includes(E)}))return new g.Gf("EXECUTE_TRANSACTION_ON_CLOSED_DB", +z); +if(T.name==="AbortError")return new g.Gf("UNKNOWN_ABORT",z,T.message);T.args=[Object.assign({},z,{name:"IdbError",MS:T.name})];T.level="WARNING";return T}; +g.aV=function(z,J,m){var e=cj();return new g.Gf("IDB_NOT_SUPPORTED",{context:{caller:z,publicName:J,version:m,hasSucceededOnce:e==null?void 0:e.hasSucceededOnce}})}; +WHb=function(z){if(!z)throw Error();throw z;}; +lvz=function(z){return z}; +K$=function(z){this.K=z}; +g.Bj=function(z){function J(T){if(e.state.status==="PENDING"){e.state={status:"REJECTED",reason:T};T=g.y(e.T);for(var E=T.next();!E.done;E=T.next())E=E.value,E()}} +function m(T){if(e.state.status==="PENDING"){e.state={status:"FULFILLED",value:T};T=g.y(e.K);for(var E=T.next();!E.done;E=T.next())E=E.value,E()}} +var e=this;this.state={status:"PENDING"};this.K=[];this.T=[];z=z.K;try{z(m,J)}catch(T){J(T)}}; +wds=function(z,J,m,e,T){try{if(z.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var E=m(z.state.value);E instanceof g.Bj?Se(z,J,E,e,T):e(E)}catch(Z){T(Z)}}; +qEj=function(z,J,m,e,T){try{if(z.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var E=m(z.state.reason);E instanceof g.Bj?Se(z,J,E,e,T):e(E)}catch(Z){T(Z)}}; +Se=function(z,J,m,e,T){J===m?T(new TypeError("Circular promise chain detected.")):m.then(function(E){E instanceof g.Bj?Se(z,J,E,e,T):e(E)},function(E){T(E)})}; +dts=function(z,J,m){function e(){m(z.error);E()} +function T(){J(z.result);E()} +function E(){try{z.removeEventListener("success",T),z.removeEventListener("error",e)}catch(Z){}} +z.addEventListener("success",T);z.addEventListener("error",e)}; +Iv1=function(z){return new Promise(function(J,m){dts(z,J,m)})}; +f$=function(z){return new g.Bj(new K$(function(J,m){dts(z,J,m)}))}; +Dx=function(z,J){return new g.Bj(new K$(function(m,e){function T(){var E=z?J(z):null;E?E.then(function(Z){z=Z;T()},e):m()} +T()}))}; +Ozu=function(z,J){this.request=z;this.cursor=J}; +pdz=function(z){return f$(z).then(function(J){return J?new Ozu(z,J):null})}; +g.yAs=function(z){z.cursor.continue(void 0);return pdz(z.request)}; +NLq=function(z,J){this.K=z;this.options=J;this.transactionCount=0;this.S=Math.round((0,g.b5)());this.T=!1}; +g.gW=function(z,J,m){z=z.K.createObjectStore(J,m);return new $4(z)}; +x4=function(z,J){z.K.objectStoreNames.contains(J)&&z.K.deleteObjectStore(J)}; +g.oV=function(z,J,m){return g.Mq(z,[J],{mode:"readwrite",Md:!0},function(e){return g.A8(e.objectStore(J),m)})}; +g.Mq=function(z,J,m,e){var T,E,Z,c,W,l,w,q,d,I,O,G;return g.D(function(n){switch(n.K){case 1:var C={mode:"readonly",Md:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof m==="string"?C.mode=m:Object.assign(C,m);T=C;z.transactionCount++;E=T.Md?3:1;Z=0;case 2:if(c){n.U2(4);break}Z++;W=Math.round((0,g.b5)());g.Yu(n,5);l=z.K.transaction(J,T.mode);C=new je(l);C=G51(C,e);return g.S(n,C,7);case 7:return w=n.T,q=Math.round((0,g.b5)()),Xdu(z,W,q,Z,void 0,J.join(),T),n.return(w);case 5:d=g.Kq(n);I=Math.round((0,g.b5)()); +O=C$(d,z.K.name,J.join(),z.K.version);if((G=O instanceof g.Gf&&!O.K)||Z>=E)Xdu(z,W,I,Z,O,J.join(),T),c=O;n.U2(2);break;case 4:return n.return(Promise.reject(c))}})}; +Xdu=function(z,J,m,e,T,E,Z){J=m-J;T?(T instanceof g.Gf&&(T.type==="QUOTA_EXCEEDED"||T.type==="QUOTA_MAYBE_EXCEEDED")&&p$("QUOTA_EXCEEDED",{dbName:Nq(z.K.name),objectStoreNames:E,transactionCount:z.transactionCount,transactionMode:Z.mode}),T instanceof g.Gf&&T.type==="UNKNOWN_ABORT"&&(m-=z.S,m<0&&m>=2147483648&&(m=0),p$("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:E,transactionDuration:J,transactionCount:z.transactionCount,dbDuration:m}),z.T=!0),nDR(z,!1,e,E,J,Z.tag),O0(T)):nDR(z,!0,e,E,J, +Z.tag)}; +nDR=function(z,J,m,e,T,E){p$("TRANSACTION_ENDED",{objectStoreNames:e,connectionHasUnknownAbortedTransaction:z.T,duration:T,isSuccessful:J,tryCount:m,tag:E===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":E})}; +$4=function(z){this.K=z}; +g.h8=function(z,J,m){z.K.createIndex(J,m,{unique:!1})}; +YER=function(z,J){return g.u5(z,{query:J},function(m){return m.delete().then(function(){return g.VO(m)})}).then(function(){})}; +CIq=function(z,J,m){var e=[];return g.u5(z,{query:J},function(T){if(!(m!==void 0&&e.length>=m))return e.push(T.getValue()),g.VO(T)}).then(function(){return e})}; +KHb=function(z){return"getAllKeys"in IDBObjectStore.prototype?f$(z.K.getAllKeys(void 0,void 0)):avq(z)}; +avq=function(z){var J=[];return g.BLq(z,{query:void 0},function(m){J.push(m.cursor.primaryKey);return g.yAs(m)}).then(function(){return J})}; +g.A8=function(z,J,m){return f$(z.K.put(J,m))}; +g.u5=function(z,J,m){z=z.K.openCursor(J.query,J.direction);return Pj(z).then(function(e){return Dx(e,m)})}; +g.BLq=function(z,J,m){var e=J.query;J=J.direction;z="openKeyCursor"in IDBObjectStore.prototype?z.K.openKeyCursor(e,J):z.K.openCursor(e,J);return pdz(z).then(function(T){return Dx(T,m)})}; +je=function(z){var J=this;this.K=z;this.S=new Map;this.T=!1;this.done=new Promise(function(m,e){J.K.addEventListener("complete",function(){m()}); +J.K.addEventListener("error",function(T){T.currentTarget===T.target&&e(J.K.error)}); +J.K.addEventListener("abort",function(){var T=J.K.error;if(T)e(T);else if(!J.T){T=g.Gf;for(var E=J.K.objectStoreNames,Z=[],c=0;c=m))return e.push(T.getValue()),g.VO(T)}).then(function(){return e})}; +g.t8=function(z,J,m){z=z.K.openCursor(J.query===void 0?null:J.query,J.direction===void 0?"next":J.direction);return Pj(z).then(function(e){return Dx(e,m)})}; +Hj=function(z,J){this.request=z;this.cursor=J}; +Pj=function(z){return f$(z).then(function(J){return J?new Hj(z,J):null})}; +g.VO=function(z){z.cursor.continue(void 0);return Pj(z.request)}; +Dtq=function(z,J,m){return new Promise(function(e,T){function E(){d||(d=new NLq(Z.result,{closed:q}));return d} +var Z=J!==void 0?self.indexedDB.open(z,J):self.indexedDB.open(z);var c=m.blocked,W=m.blocking,l=m.HF1,w=m.upgrade,q=m.closed,d;Z.addEventListener("upgradeneeded",function(I){try{if(I.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(Z.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");I.dataLoss&&I.dataLoss!=="none"&&p$("IDB_DATA_CORRUPTED",{reason:I.dataLossMessage||"unknown reason",dbName:Nq(z)});var O=E(),G=new je(Z.transaction); +w&&w(O,function(n){return I.oldVersion=n},G); +G.done.catch(function(n){T(n)})}catch(n){T(n)}}); +Z.addEventListener("success",function(){var I=Z.result;W&&I.addEventListener("versionchange",function(){W(E())}); +I.addEventListener("close",function(){p$("IDB_UNEXPECTEDLY_CLOSED",{dbName:Nq(z),dbVersion:I.version});l&&l()}); +e(E())}); +Z.addEventListener("error",function(){T(Z.error)}); +c&&Z.addEventListener("blocked",function(){c()})})}; +bzq=function(z,J,m){m=m===void 0?{}:m;return Dtq(z,J,m)}; +U0=function(z,J){J=J===void 0?{}:J;var m,e,T,E;return g.D(function(Z){if(Z.K==1)return g.Yu(Z,2),m=self.indexedDB.deleteDatabase(z),e=J,(T=e.blocked)&&m.addEventListener("blocked",function(){T()}),g.S(Z,Iv1(m),4); +if(Z.K!=2)return g.aq(Z,0);E=g.Kq(Z);throw C$(E,z,"",-1);})}; +RV=function(z,J){this.name=z;this.options=J;this.S=!0;this.Z=this.U=0}; +$tb=function(z,J){return new g.Gf("INCOMPATIBLE_DB_VERSION",{dbName:z.name,oldVersion:z.options.version,newVersion:J})}; +g.k4=function(z,J){if(!J)throw g.aV("openWithToken",Nq(z.name));return z.open()}; +gDj=function(z,J){var m;return g.D(function(e){if(e.K==1)return g.S(e,g.k4(L$,J),2);m=e.T;return e.return(g.Mq(m,["databases"],{Md:!0,mode:"readwrite"},function(T){var E=T.objectStore("databases");return E.get(z.actualName).then(function(Z){if(Z?z.actualName!==Z.actualName||z.publicName!==Z.publicName||z.userIdentifier!==Z.userIdentifier:1)return g.A8(E,z).then(function(){})})}))})}; +QO=function(z,J){var m;return g.D(function(e){if(e.K==1)return z?g.S(e,g.k4(L$,J),2):e.return();m=e.T;return e.return(m.delete("databases",z))})}; +xtb=function(z,J){var m,e;return g.D(function(T){return T.K==1?(m=[],g.S(T,g.k4(L$,J),2)):T.K!=3?(e=T.T,g.S(T,g.Mq(e,["databases"],{Md:!0,mode:"readonly"},function(E){m.length=0;return g.u5(E.objectStore("databases"),{},function(Z){z(Z.getValue())&&m.push(Z.getValue());return g.VO(Z)})}),3)):T.return(m)})}; +MZs=function(z,J){return xtb(function(m){return m.publicName===z&&m.userIdentifier!==void 0},J)}; +AAb=function(){var z,J,m,e;return g.D(function(T){switch(T.K){case 1:z=cj();if((J=z)==null?0:J.hasSucceededOnce)return T.return(!0);if(vj&&sL()&&!rj()||g.s0)return T.return(!1);try{if(m=self,!(m.indexedDB&&m.IDBIndex&&m.IDBKeyRange&&m.IDBObjectStore))return T.return(!1)}catch(E){return T.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return T.return(!1);g.Yu(T,2);e={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; +return g.S(T,gDj(e,rW),4);case 4:return g.S(T,QO("yt-idb-test-do-not-use",rW),5);case 5:return T.return(!0);case 2:return g.Kq(T),T.return(!1)}})}; +oDE=function(){if(zL!==void 0)return zL;IV=!0;return zL=AAb().then(function(z){IV=!1;var J;if((J=i5())!=null&&J.K){var m;J={hasSucceededOnce:((m=cj())==null?void 0:m.hasSucceededOnce)||z};var e;(e=i5())==null||e.set("LAST_RESULT_ENTRY_KEY",J,2592E3,!0)}return z})}; +JC=function(){return g.Hq("ytglobal.idbToken_")||void 0}; +g.me=function(){var z=JC();return z?Promise.resolve(z):oDE().then(function(J){(J=J?rW:void 0)&&g.tu("ytglobal.idbToken_",J);return J})}; +j7R=function(z){if(!g.rs())throw z=new g.Gf("AUTH_INVALID",{dbName:z}),O0(z),z;var J=g.sF();return{actualName:z+":"+J,publicName:z,userIdentifier:J}}; +hQj=function(z,J,m,e){var T,E,Z,c,W,l;return g.D(function(w){switch(w.K){case 1:return E=(T=Error().stack)!=null?T:"",g.S(w,g.me(),2);case 2:Z=w.T;if(!Z)throw c=g.aV("openDbImpl",z,J),g.CH("ytidb_async_stack_killswitch")||(c.stack=c.stack+"\n"+E.substring(E.indexOf("\n")+1)),O0(c),c;yO(z);W=m?{actualName:z,publicName:z,userIdentifier:void 0}:j7R(z);g.Yu(w,3);return g.S(w,gDj(W,Z),5);case 5:return g.S(w,bzq(W.actualName,J,e),6);case 6:return w.return(w.T);case 3:return l=g.Kq(w),g.Yu(w,7),g.S(w,QO(W.actualName, +Z),9);case 9:g.aq(w,8);break;case 7:g.Kq(w);case 8:throw l;}})}; +uEz=function(z,J,m){m=m===void 0?{}:m;return hQj(z,J,!1,m)}; +VZu=function(z,J,m){m=m===void 0?{}:m;return hQj(z,J,!0,m)}; +PIq=function(z,J){J=J===void 0?{}:J;var m,e;return g.D(function(T){if(T.K==1)return g.S(T,g.me(),2);if(T.K!=3){m=T.T;if(!m)return T.return();yO(z);e=j7R(z);return g.S(T,U0(e.actualName,J),3)}return g.S(T,QO(e.actualName,m),0)})}; +tZb=function(z,J,m){z=z.map(function(e){return g.D(function(T){return T.K==1?g.S(T,U0(e.actualName,J),2):g.S(T,QO(e.actualName,m),0)})}); +return Promise.all(z).then(function(){})}; +Hzu=function(z){var J=J===void 0?{}:J;var m,e;return g.D(function(T){if(T.K==1)return g.S(T,g.me(),2);if(T.K!=3){m=T.T;if(!m)return T.return();yO(z);return g.S(T,MZs(z,m),3)}e=T.T;return g.S(T,tZb(e,J,m),0)})}; +Utb=function(z,J){J=J===void 0?{}:J;var m;return g.D(function(e){if(e.K==1)return g.S(e,g.me(),2);if(e.K!=3){m=e.T;if(!m)return e.return();yO(z);return g.S(e,U0(z,J),3)}return g.S(e,QO(z,m),0)})}; +eV=function(z,J){RV.call(this,z,J);this.options=J;yO(z)}; +RQ4=function(z,J){var m;return function(){m||(m=new eV(z,J));return m}}; +g.TL=function(z,J){return RQ4(z,J)}; +EK=function(z){return g.k4(k5q(),z)}; +LHu=function(z,J,m,e){var T,E,Z;return g.D(function(c){switch(c.K){case 1:return T={config:z,hashData:J,timestamp:e!==void 0?e:(0,g.b5)()},g.S(c,EK(m),2);case 2:return E=c.T,g.S(c,E.clear("hotConfigStore"),3);case 3:return g.S(c,g.oV(E,"hotConfigStore",T),4);case 4:return Z=c.T,c.return(Z)}})}; +Q7u=function(z,J,m,e,T){var E,Z,c;return g.D(function(W){switch(W.K){case 1:return E={config:z,hashData:J,configData:m,timestamp:T!==void 0?T:(0,g.b5)()},g.S(W,EK(e),2);case 2:return Z=W.T,g.S(W,Z.clear("coldConfigStore"),3);case 3:return g.S(W,g.oV(Z,"coldConfigStore",E),4);case 4:return c=W.T,W.return(c)}})}; +vDs=function(z){var J,m;return g.D(function(e){return e.K==1?g.S(e,EK(z),2):e.K!=3?(J=e.T,m=void 0,g.S(e,g.Mq(J,["coldConfigStore"],{mode:"readwrite",Md:!0},function(T){return g.t8(T.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(E){m=E.getValue()})}),3)):e.return(m)})}; +s7u=function(z){var J,m;return g.D(function(e){return e.K==1?g.S(e,EK(z),2):e.K!=3?(J=e.T,m=void 0,g.S(e,g.Mq(J,["hotConfigStore"],{mode:"readwrite",Md:!0},function(T){return g.t8(T.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(E){m=E.getValue()})}),3)):e.return(m)})}; +rAE=function(){return g.D(function(z){return g.S(z,Hzu("ytGcfConfig"),0)})}; +ZX=function(){g.h.call(this);this.T=[];this.K=[];var z=g.Hq("yt.gcf.config.hotUpdateCallbacks");z?(this.T=[].concat(g.X(z)),this.K=z):(this.K=[],g.tu("yt.gcf.config.hotUpdateCallbacks",this.K))}; +wn=function(){var z=this;this.Z=!1;this.S=this.U=0;this.Y=new ZX;this.So={pNh:function(){z.Z=!0}, +dQ1:function(){return z.K}, +f8y:function(J){Ff(z,J)}, +Qr:function(J){z.Qr(J)}, +zP4:function(J){im(z,J)}, +JY:function(){return z.coldHashData}, +uh:function(){return z.hotHashData}, +SUy:function(){return z.T}, +tT2:function(){return cA()}, +KL1:function(){return WA()}, +oXW:function(){return g.Hq("yt.gcf.config.coldHashData")}, +Tdx:function(){return g.Hq("yt.gcf.config.hotHashData")}, +mbz:function(){zgu(z)}, +Fw4:function(){z.Qr(void 0);lm(z);delete wn.instance}, +p46:function(J){z.S=J}, +Rn6:function(){return z.S}}}; +J9E=function(){if(!wn.instance){var z=new wn;wn.instance=z}return wn.instance}; +Txq=function(z){var J;g.D(function(m){if(m.K==1)return g.CH("start_client_gcf")||g.CH("delete_gcf_config_db")?g.CH("start_client_gcf")?g.S(m,g.me(),3):m.U2(2):m.return();m.K!=2&&((J=m.T)&&g.rs()&&!g.CH("delete_gcf_config_db")?(z.Z=!0,zgu(z)):(mKb(z),egs(z)));return g.CH("delete_gcf_config_db")?g.S(m,rAE(),0):m.U2(0)})}; +qh=function(){var z;return(z=WA())!=null?z:g.Qt("RAW_HOT_CONFIG_GROUP")}; +EH1=function(z){var J,m,e,T,E,Z;return g.D(function(c){switch(c.K){case 1:if(z.T)return c.return(WA());if(!z.Z)return J=g.aV("getHotConfig IDB not initialized"),eA(J),c.return(Promise.reject(J));m=JC();e=g.Qt("TIME_CREATED_MS");if(!m){T=g.aV("getHotConfig token error");eA(T);c.U2(2);break}return g.S(c,s7u(m),3);case 3:if((E=c.T)&&E.timestamp>e)return Ff(z,E.config),z.Qr(E.hashData),c.return(WA());case 2:egs(z);if(!(m&&z.T&&z.hotHashData)){c.U2(4);break}return g.S(c,LHu(z.T,z.hotHashData,m,e),4);case 4:return z.T? +c.return(WA()):(Z=new g.vR("Config not available in ytConfig"),eA(Z),c.return(Promise.reject(Z)))}})}; +Foj=function(z){var J,m,e,T,E,Z;return g.D(function(c){switch(c.K){case 1:if(z.K)return c.return(cA());if(!z.Z)return J=g.aV("getColdConfig IDB not initialized"),eA(J),c.return(Promise.reject(J));m=JC();e=g.Qt("TIME_CREATED_MS");if(!m){T=g.aV("getColdConfig");eA(T);c.U2(2);break}return g.S(c,vDs(m),3);case 3:if((E=c.T)&&E.timestamp>e)return im(z,E.config),Z3u(z,E.configData),lm(z,E.hashData),c.return(cA());case 2:mKb(z);if(!(m&&z.K&&z.coldHashData&&z.configData)){c.U2(4);break}return g.S(c,Q7u(z.K, +z.coldHashData,z.configData,m,e),4);case 4:return z.K?c.return(cA()):(Z=new g.vR("Config not available in ytConfig"),eA(Z),c.return(Promise.reject(Z)))}})}; +zgu=function(z){if(!z.T||!z.K){if(!JC()){var J=g.aV("scheduleGetConfigs");eA(J)}z.U||(z.U=g.tQ.wy(function(){return g.D(function(m){switch(m.K){case 1:return g.Yu(m,2),g.S(m,EH1(z),4);case 4:g.aq(m,3);break;case 2:g.Kq(m);case 3:return g.Yu(m,5),g.S(m,Foj(z),7);case 7:g.aq(m,6);break;case 5:g.Kq(m);case 6:z.U&&(z.U=0),g.nq(m)}})},100))}}; +i3q=function(z,J,m){var e,T,E;return g.D(function(Z){switch(Z.K){case 1:if(!g.CH("start_client_gcf")){Z.U2(0);break}m&&Ff(z,m);z.Qr(J);e=JC();if(!e){Z.U2(3);break}if(m){Z.U2(4);break}return g.S(Z,s7u(e),5);case 5:T=Z.T,m=(E=T)==null?void 0:E.config;case 4:return g.S(Z,LHu(m,J,e),3);case 3:if(m)for(var c=m,W=g.y(z.Y.K),l=W.next();!l.done;l=W.next())l=l.value,l(c);g.nq(Z)}})}; +c9b=function(z,J,m){var e,T,E,Z;return g.D(function(c){if(c.K==1){if(!g.CH("start_client_gcf"))return c.U2(0);lm(z,J);return(e=JC())?m?c.U2(4):g.S(c,vDs(e),5):c.U2(0)}c.K!=4&&(T=c.T,m=(E=T)==null?void 0:E.config);if(!m)return c.U2(0);Z=m.configData;return g.S(c,Q7u(m,J,Z,e),0)})}; +Wo1=function(){var z=J9E(),J=(0,g.b5)()-z.S;if(!(z.S!==0&&J0&&(J.request={internalExperimentFlags:m});wTj(z,void 0,J);qSz(void 0,J);dKE(void 0,J);IQs(z,void 0,J);O3b(void 0,J);g.CH("start_client_gcf")&&pT1(void 0,J);g.Qt("DELEGATED_SESSION_ID")&& +!g.CH("pageid_as_header_web")&&(J.user={onBehalfOfUser:g.Qt("DELEGATED_SESSION_ID")});!g.CH("fill_delegate_context_in_gel_killswitch")&&(z=g.Qt("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(J.user=Object.assign({},J.user,{serializedDelegationContext:z}));z=g.Qt("INNERTUBE_CONTEXT");var e;if(g.CH("enable_persistent_device_token")&&(z==null?0:(e=z.client)==null?0:e.rolloutToken)){var T;J.client.rolloutToken=z==null?void 0:(T=z.client)==null?void 0:T.rolloutToken}e=Object;T=e.assign;z=J.client; +m={};for(var E=g.y(Object.entries(Z8(g.Qt("DEVICE","")))),Z=E.next();!Z.done;Z=E.next()){var c=g.y(Z.value);Z=c.next().value;c=c.next().value;Z==="cbrand"?m.deviceMake=c:Z==="cmodel"?m.deviceModel=c:Z==="cbr"?m.browserName=c:Z==="cbrver"?m.browserVersion=c:Z==="cos"?m.osName=c:Z==="cosver"?m.osVersion=c:Z==="cplatform"&&(m.platform=c)}J.client=T.call(e,z,m);return J}; +wTj=function(z,J,m){z=z.UI;if(z==="WEB"||z==="MWEB"||z===1||z===2)if(J){m=lW(J,$H,96)||new $H;var e=Vx();e=Object.keys(y9q).indexOf(e);e=e===-1?null:e;e!==null&&Yc(m,3,e);qc(J,$H,96,m)}else m&&(m.client.mainAppWebInfo=(e=m.client.mainAppWebInfo)!=null?e:{},m.client.mainAppWebInfo.webDisplayMode=Vx())}; +qSz=function(z,J){var m=g.Hq("yt.embedded_player.embed_url");m&&(z?(J=lW(z,o3,7)||new o3,XS(J,4,m),qc(z,o3,7,J)):J&&(J.thirdParty={embedUrl:m}))}; +dKE=function(z,J){var m;if(g.CH("web_log_memory_total_kbytes")&&((m=g.VR.navigator)==null?0:m.deviceMemory)){var e;m=(e=g.VR.navigator)==null?void 0:e.deviceMemory;z?Hv(z,95,y1(m*1E6)):J&&(J.client.memoryTotalKbytes=""+m*1E6)}}; +IQs=function(z,J,m){if(z.appInstallData)if(J){var e;m=(e=lW(J,b2,62))!=null?e:new b2;XS(m,6,z.appInstallData);qc(J,b2,62,m)}else m&&(m.client.configInfo=m.client.configInfo||{},m.client.configInfo.appInstallData=z.appInstallData)}; +O3b=function(z,J){var m=JAz();m&&(z?Yc(z,61,Nxj[m]):J&&(J.client.connectionType=m));g.CH("web_log_effective_connection_type")&&(m=eQR())&&(z?Yc(z,94,GKq[m]):J&&(J.client.effectiveConnectionType=m))}; +XTu=function(z,J,m){m=m===void 0?{}:m;var e={};g.Qt("EOM_VISITOR_DATA")?e={"X-Goog-EOM-Visitor-Id":g.Qt("EOM_VISITOR_DATA")}:e={"X-Goog-Visitor-Id":m.visitorData||g.Qt("VISITOR_DATA","")};if(J&&J.includes("www.youtube-nocookie.com"))return e;J=m.Tm||g.Qt("AUTHORIZATION");J||(z?J="Bearer "+g.Hq("gapi.auth.getToken")().access_token:(z=LAq().N6(OK),g.CH("pageid_as_header_web")||delete z["X-Goog-PageId"],e=Object.assign({},e,z)));J&&(e.Authorization=J);return e}; +pT1=function(z,J){var m=Wo1();if(m){var e=m.coldConfigData,T=m.coldHashData;m=m.hotHashData;if(z){var E;J=(E=lW(z,b2,62))!=null?E:new b2;e=XS(J,1,e);XS(e,3,T).Qr(m);qc(z,b2,62,J)}else J&&(J.client.configInfo=J.client.configInfo||{},e&&(J.client.configInfo.coldConfigData=e),T&&(J.client.configInfo.coldHashData=T),m&&(J.client.configInfo.hotHashData=m))}}; +pT=function(z,J){this.version=z;this.args=J}; +ye=function(z,J){this.topic=z;this.K=J}; +GL=function(z,J){var m=Nh();m&&m.publish.call(m,z.toString(),z,J)}; +C2s=function(z){var J=nHj,m=Nh();if(!m)return 0;var e=m.subscribe(J.toString(),function(T,E){var Z=g.Hq("ytPubsub2Pubsub2SkipSubKey");Z&&Z==e||(Z=function(){if(Xf[e])try{if(E&&J instanceof ye&&J!=T)try{var c=J.K,W=E;if(!W.args||!W.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!c.d_){var l=new c;c.d_=l.version}var w=c.d_}catch(q){}if(!w||W.version!=w)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{E=Reflect.construct(c, +g.en(W.args))}catch(q){throw q.message="yt.pubsub2.Data.deserialize(): "+q.message,q;}}catch(q){throw q.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+J.toString()+": "+q.message,q;}z.call(window,E)}catch(q){g.rx(q)}},YSE[J.toString()]?g.E0()?g.tQ.wy(Z):g.Np(Z,0):Z())}); +Xf[e]=!0;nT[J.toString()]||(nT[J.toString()]=[]);nT[J.toString()].push(e);return e}; +Bx4=function(){var z=aQb,J=C2s(function(m){z.apply(void 0,arguments);Ko4(J)}); +return J}; +Ko4=function(z){var J=Nh();J&&(typeof z==="number"&&(z=[z]),g.de(z,function(m){J.unsubscribeByKey(m);delete Xf[m]}))}; +Nh=function(){return g.Hq("ytPubsub2Pubsub2Instance")}; +Yo=function(z,J,m){m=m===void 0?{sampleRate:.1}:m;Math.random()gHq||Z=oHq&&(jV++,g.CH("abandon_compression_after_N_slow_zips")?oT===g.aQ("compression_disable_point")&&jV>j3u&&(xo=!1):xo=!1);hgb(J);e.headers||(e.headers={});e.headers["Content-Encoding"]="gzip";e.postBody=z;e.postParams=void 0;T(m,e)}; +u0q=function(z){var J=J===void 0?!1:J;var m=m===void 0?!1:m;var e=(0,g.b5)(),T={startTime:e,ticks:{},infos:{}},E=J?g.Hq("yt.logging.gzipForFetch",!1):!0;if(xo&&E){if(!z.body)return z;try{var Z=m?z.body:typeof z.body==="string"?z.body:JSON.stringify(z.body);E=Z;if(!m&&typeof Z==="string"){var c=$Ku(Z);if(c!=null&&(c>gHq||c=oHq)if(jV++,g.CH("abandon_compression_after_N_slow_zips")||g.CH("abandon_compression_after_N_slow_zips_lr")){J=jV/oT;var l=j3u/g.aQ("compression_disable_point");oT>0&&oT%g.aQ("compression_disable_point")===0&&J>=l&&(xo=!1)}else xo=!1;hgb(T)}}z.headers=Object.assign({},{"Content-Encoding":"gzip"},z.headers||{});z.body=E;return z}catch(w){return eA(w),z}}else return z}; +$Ku=function(z){try{return(new Blob(z.split(""))).size}catch(J){return eA(J),null}}; +hgb=function(z){g.CH("gel_compression_csi_killswitch")||!g.CH("log_gel_compression_latency")&&!g.CH("log_gel_compression_latency_lr")||Yo("gel_compression",z,{sampleRate:.1})}; +um=function(z){var J=this;this.Kl=this.K=!1;this.potentialEsfErrorCounter=this.T=0;this.handleError=function(){}; +this.cJ=function(){}; +this.now=Date.now;this.DZ=!1;this.So={HSy:function(w){J.eI=w}, +ZSf:function(){J.oM()}, +r0:function(){J.R9()}, +Dz:function(w){return g.D(function(q){return g.S(q,J.Dz(w),0)})}, +Uk:function(w,q){return J.Uk(w,q)}, +Q_:function(){J.Q_()}}; +var m;this.cg=(m=z.cg)!=null?m:100;var e;this.kL=(e=z.kL)!=null?e:1;var T;this.jh=(T=z.jh)!=null?T:2592E6;var E;this.AO=(E=z.AO)!=null?E:12E4;var Z;this.pO=(Z=z.pO)!=null?Z:5E3;var c;this.eI=(c=z.eI)!=null?c:void 0;this.X4=!!z.X4;var W;this.Iq=(W=z.Iq)!=null?W:.1;var l;this.sy=(l=z.sy)!=null?l:10;z.handleError&&(this.handleError=z.handleError);z.cJ&&(this.cJ=z.cJ);z.DZ&&(this.DZ=z.DZ);z.Kl&&(this.Kl=z.Kl);this.j4=z.j4;this.L$=z.L$;this.Sb=z.Sb;this.rG=z.rG;this.sendFn=z.sendFn;this.EG=z.EG;this.iB= +z.iB;hC(this)&&(!this.j4||this.j4("networkless_logging"))&&V3R(this)}; +V3R=function(z){hC(z)&&!z.DZ&&(z.K=!0,z.X4&&Math.random()<=z.Iq&&z.Sb.yD(z.eI),z.Q_(),z.rG.O9()&&z.oM(),z.rG.listen(z.EG,z.oM.bind(z)),z.rG.listen(z.iB,z.R9.bind(z)))}; +H3q=function(z,J){if(!hC(z))throw Error("IndexedDB is not supported: updateRequestHandlers");var m=J.options.onError?J.options.onError:function(){}; +J.options.onError=function(T,E){var Z,c,W,l;return g.D(function(w){switch(w.K){case 1:Z=P2q(E);(c=t3q(E))&&z.j4&&z.j4("web_enable_error_204")&&z.handleError(Error("Request failed due to compression"),J.url,E);if(!(z.j4&&z.j4("nwl_consider_error_code")&&Z||z.j4&&!z.j4("nwl_consider_error_code")&&z.potentialEsfErrorCounter<=z.sy)){w.U2(2);break}if(!z.rG.V_){w.U2(3);break}return g.S(w,z.rG.V_(),3);case 3:if(z.rG.O9()){w.U2(2);break}m(T,E);if(!z.j4||!z.j4("nwl_consider_error_code")||((W=J)==null?void 0: +W.id)===void 0){w.U2(6);break}return g.S(w,z.Sb.Pa(J.id,z.eI,!1),6);case 6:return w.return();case 2:if(z.j4&&z.j4("nwl_consider_error_code")&&!Z&&z.potentialEsfErrorCounter>z.sy)return w.return();z.potentialEsfErrorCounter++;if(((l=J)==null?void 0:l.id)===void 0){w.U2(8);break}return J.sendCount=400&&z<=599?!1:!0}; +t3q=function(z){var J;z=z==null?void 0:(J=z.error)==null?void 0:J.code;return!(z!==400&&z!==415)}; +UKj=function(){if(PA)return PA();var z={};PA=g.TL("LogsDatabaseV2",{HN:(z.LogsRequestsStore={dJ:2},z),shared:!1,upgrade:function(J,m,e){m(2)&&g.gW(J,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});m(3);m(5)&&(e=e.objectStore("LogsRequestsStore"),e.K.indexNames.contains("newRequest")&&e.K.deleteIndex("newRequest"),g.h8(e,"newRequestV2",["status","interface","timestamp"]));m(7)&&x4(J,"sapisid");m(9)&&x4(J,"SWHealthLog")}, +version:9});return PA()}; +tC=function(z){return g.k4(UKj(),z)}; +kKj=function(z,J){var m,e,T,E;return g.D(function(Z){if(Z.K==1)return m={startTime:(0,g.b5)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.S(Z,tC(J),2);if(Z.K!=3)return e=Z.T,T=Object.assign({},z,{options:JSON.parse(JSON.stringify(z.options)),interface:g.Qt("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.S(Z,g.oV(e,"LogsRequestsStore",T),3);E=Z.T;m.ticks.tc=(0,g.b5)();Rg4(m);return Z.return(E)})}; +Lob=function(z,J){var m,e,T,E,Z,c,W,l;return g.D(function(w){if(w.K==1)return m={startTime:(0,g.b5)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.S(w,tC(J),2);if(w.K!=3)return e=w.T,T=g.Qt("INNERTUBE_CONTEXT_CLIENT_NAME",0),E=[z,T,0],Z=[z,T,(0,g.b5)()],c=IDBKeyRange.bound(E,Z),W="prev",g.CH("use_fifo_for_networkless")&&(W="next"),l=void 0,g.S(w,g.Mq(e,["LogsRequestsStore"],{mode:"readwrite",Md:!0},function(q){return g.t8(q.objectStore("LogsRequestsStore").index("newRequestV2"), +{query:c,direction:W},function(d){d.getValue()&&(l=d.getValue(),z==="NEW"&&(l.status="QUEUED",d.update(l)))})}),3); +m.ticks.tc=(0,g.b5)();Rg4(m);return w.return(l)})}; +Q3s=function(z,J){var m;return g.D(function(e){if(e.K==1)return g.S(e,tC(J),2);m=e.T;return e.return(g.Mq(m,["LogsRequestsStore"],{mode:"readwrite",Md:!0},function(T){var E=T.objectStore("LogsRequestsStore");return E.get(z).then(function(Z){if(Z)return Z.status="QUEUED",g.A8(E,Z).then(function(){return Z})})}))})}; +vHE=function(z,J,m,e){m=m===void 0?!0:m;var T;return g.D(function(E){if(E.K==1)return g.S(E,tC(J),2);T=E.T;return E.return(g.Mq(T,["LogsRequestsStore"],{mode:"readwrite",Md:!0},function(Z){var c=Z.objectStore("LogsRequestsStore");return c.get(z).then(function(W){return W?(W.status="NEW",m&&(W.sendCount+=1),e!==void 0&&(W.options.compress=e),g.A8(c,W).then(function(){return W})):g.Bj.resolve(void 0)})}))})}; +s3q=function(z,J){var m;return g.D(function(e){if(e.K==1)return g.S(e,tC(J),2);m=e.T;return e.return(m.delete("LogsRequestsStore",z))})}; +r9b=function(z){var J,m;return g.D(function(e){if(e.K==1)return g.S(e,tC(z),2);J=e.T;m=(0,g.b5)()-2592E6;return g.S(e,g.Mq(J,["LogsRequestsStore"],{mode:"readwrite",Md:!0},function(T){return g.u5(T.objectStore("LogsRequestsStore"),{},function(E){if(E.getValue().timestamp<=m)return E.delete().then(function(){return g.VO(E)})})}),0)})}; +zJE=function(){g.D(function(z){return g.S(z,Hzu("LogsDatabaseV2"),0)})}; +Rg4=function(z){g.CH("nwl_csi_killswitch")||Yo("networkless_performance",z,{sampleRate:1})}; +mpR=function(z){return g.k4(Jju(),z)}; +eJ1=function(z){var J,m;g.D(function(e){if(e.K==1)return g.S(e,mpR(z),2);J=e.T;m=(0,g.b5)()-2592E6;return g.S(e,g.Mq(J,["SWHealthLog"],{mode:"readwrite",Md:!0},function(T){return g.u5(T.objectStore("SWHealthLog"),{},function(E){if(E.getValue().timestamp<=m)return E.delete().then(function(){return g.VO(E)})})}),0)})}; +Tjq=function(z){var J;return g.D(function(m){if(m.K==1)return g.S(m,mpR(z),2);J=m.T;return g.S(m,J.clear("SWHealthLog"),0)})}; +g.HA=function(z,J,m,e,T,E,Z){T=T===void 0?"":T;E=E===void 0?!1:E;Z=Z===void 0?!1:Z;if(z)if(m&&!g.LH())eA(new g.vR("Legacy referrer-scrubbed ping detected")),z&&EJb(z,void 0,{scrubReferrer:!0});else if(T)SA(z,J,"POST",T,e);else if(g.Qt("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||e||Z)SA(z,J,"GET","",e,void 0,E,Z);else{b:{try{var c=new Pxb({url:z});if(c.Z?typeof c.S!=="string"||c.S.length===0?0:{version:3,MM:c.S,uw:KE(c.K,"act=1","ri=1",tLj(c))}:c.Y&&{version:4,MM:KE(c.K,"dct=1","suid="+c.U,""),uw:KE(c.K, +"act=1","ri=1","suid="+c.U)}){var W=VB(g.t0(5,z));var l=!(!W||!W.endsWith("/aclk")||zH(z,"ri")!=="1");break b}}catch(w){}l=!1}l?ZHE(z)?(J&&J(),m=!0):m=!1:m=!1;m||EJb(z,J)}}; +ZHE=function(z,J){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(z,J===void 0?"":J))return!0}catch(m){}return!1}; +EJb=function(z,J,m){m=m===void 0?{}:m;var e=new Image,T=""+Fhf++;UK[T]=e;e.onload=e.onerror=function(){J&&UK[T]&&J();delete UK[T]}; +m.scrubReferrer&&(e.referrerPolicy="no-referrer");e.src=z}; +iHu=function(z){var J;return((J=document.featurePolicy)==null?0:J.allowedFeatures().includes("attribution-reporting"))?z+"&nis=6":z+"&nis=5"}; +ko=function(){RT||(RT=new F2("yt.offline"));return RT}; +cjj=function(z){if(g.CH("offline_error_handling")){var J=ko().get("errors",!0)||{};J[z.message]={name:z.name,stack:z.stack};z.level&&(J[z.message].level=z.level);ko().set("errors",J,2592E3,!0)}}; +LT=function(){this.K=new Map;this.T=!1}; +Qe=function(){if(!LT.instance){var z=g.Hq("yt.networkRequestMonitor.instance")||new LT;g.tu("yt.networkRequestMonitor.instance",z);LT.instance=z}return LT.instance}; +vA=function(){g.ZB.call(this);var z=this;this.T=!1;this.K=G6u();this.K.listen("networkstatus-online",function(){if(z.T&&g.CH("offline_error_handling")){var J=ko().get("errors",!0);if(J){for(var m in J)if(J[m]){var e=new g.vR(m,"sent via offline_errors");e.name=J[m].name;e.stack=J[m].stack;e.level=J[m].level;g.rx(e)}ko().set("errors",{},2592E3,!0)}}})}; +Whq=function(){if(!vA.instance){var z=g.Hq("yt.networkStatusManager.instance")||new vA;g.tu("yt.networkStatusManager.instance",z);vA.instance=z}return vA.instance}; +g.sK=function(z){z=z===void 0?{}:z;g.ZB.call(this);var J=this;this.K=this.U=0;this.T=Whq();var m=g.Hq("yt.networkStatusManager.instance.listen").bind(this.T);m&&(z.rateLimit?(this.rateLimit=z.rateLimit,m("networkstatus-online",function(){l8q(J,"publicytnetworkstatus-online")}),m("networkstatus-offline",function(){l8q(J,"publicytnetworkstatus-offline")})):(m("networkstatus-online",function(){J.dispatchEvent("publicytnetworkstatus-online")}),m("networkstatus-offline",function(){J.dispatchEvent("publicytnetworkstatus-offline")})))}; +l8q=function(z,J){z.rateLimit?z.K?(g.tQ.Xo(z.U),z.U=g.tQ.wy(function(){z.S!==J&&(z.dispatchEvent(J),z.S=J,z.K=(0,g.b5)())},z.rateLimit-((0,g.b5)()-z.K))):(z.dispatchEvent(J),z.S=J,z.K=(0,g.b5)()):z.dispatchEvent(J)}; +zQ=function(){var z=um.call;rn||(rn=new g.sK({S64:!0,aQF:!0}));z.call(um,this,{Sb:{yD:r9b,Dt:s3q,dh:Lob,md2:Q3s,Pa:vHE,set:kKj},rG:rn,handleError:function(J,m,e){var T,E=e==null?void 0:(T=e.error)==null?void 0:T.code;if(E===400||E===415){var Z;eA(new g.vR(J.message,m,e==null?void 0:(Z=e.error)==null?void 0:Z.code),void 0,void 0,void 0,!0)}else g.rx(J)}, +cJ:eA,sendFn:wfu,now:g.b5,jJ:cjj,L$:g.Tf(),EG:"publicytnetworkstatus-online",iB:"publicytnetworkstatus-offline",X4:!0,Iq:.1,sy:g.aQ("potential_esf_error_limit",10),j4:g.CH,DZ:!(g.rs()&&g.H1(document.location.toString())!=="www.youtube-nocookie.com")});this.S=new g.CS;g.CH("networkless_immediately_drop_all_requests")&&zJE();Utb("LogsDatabaseV2")}; +JN=function(){var z=g.Hq("yt.networklessRequestController.instance");z||(z=new zQ,g.tu("yt.networklessRequestController.instance",z),g.CH("networkless_logging")&&g.me().then(function(J){z.eI=J;V3R(z);z.S.resolve();z.X4&&Math.random()<=z.Iq&&z.eI&&eJ1(z.eI);g.CH("networkless_immediately_drop_sw_health_store")&&qLz(z)})); +return z}; +qLz=function(z){var J;g.D(function(m){if(!z.eI)throw J=g.aV("clearSWHealthLogsDb"),J;return m.return(Tjq(z.eI).catch(function(e){z.handleError(e)}))})}; +wfu=function(z,J,m,e){e=e===void 0?!1:e;J=g.CH("web_fp_via_jspb")?Object.assign({},J):J;g.CH("use_cfr_monitor")&&dpR(z,J);if(g.CH("use_request_time_ms_header"))J.headers&&lv(z)&&(J.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.b5)())));else{var T;if((T=J.postParams)==null?0:T.requestTimeMs)J.postParams.requestTimeMs=Math.round((0,g.b5)())}m&&Object.keys(J).length===0?g.HA(z):J.compress?J.postBody?(typeof J.postBody!=="string"&&(J.postBody=JSON.stringify(J.postBody)),AC(z,J.postBody, +J,g.fH,e)):AC(z,JSON.stringify(J.postParams),J,D8,e):g.fH(z,J)}; +mt=function(z,J){g.CH("use_event_time_ms_header")&&lv(z)&&(J.headers||(J.headers={}),J.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.b5)())));return J}; +dpR=function(z,J){var m=J.onError?J.onError:function(){}; +J.onError=function(T,E){Qe().requestComplete(z,!1);m(T,E)}; +var e=J.onSuccess?J.onSuccess:function(){}; +J.onSuccess=function(T,E){Qe().requestComplete(z,!0);e(T,E)}}; +g.e5=function(z){this.config_=null;z?this.config_=z:lQ1()&&(this.config_=g.dn())}; +g.TQ=function(z,J,m,e){function T(l){try{if((l===void 0?0:l)&&e.retry&&!e.networklessOptions.bypassNetworkless)E.method="POST",e.networklessOptions.writeThenSend?JN().writeThenSend(W,E):JN().sendAndWrite(W,E);else if(e.compress){var w=!e.networklessOptions.writeThenSend;if(E.postBody){var q=E.postBody;typeof q!=="string"&&(q=JSON.stringify(E.postBody));AC(W,q,E,g.fH,w)}else AC(W,JSON.stringify(E.postParams),E,D8,w)}else g.CH("web_all_payloads_via_jspb")?g.fH(W,E):D8(W,E)}catch(d){if(d.name==="InvalidAccessError")eA(Error("An extension is blocking network request.")); +else throw d;}} +!g.Qt("VISITOR_DATA")&&J!=="visitor_id"&&Math.random()<.01&&eA(new g.vR("Missing VISITOR_DATA when sending innertube request.",J,m,e));if(!z.isReady())throw z=new g.vR("innertube xhrclient not ready",J,m,e),g.rx(z),z;var E={headers:e.headers||{},method:"POST",postParams:m,postBody:e.postBody,postBodyFormat:e.postBodyFormat||"JSON",onTimeout:function(){e.onTimeout()}, +onFetchTimeout:e.onTimeout,onSuccess:function(l,w){if(e.onSuccess)e.onSuccess(w)}, +onFetchSuccess:function(l){if(e.onSuccess)e.onSuccess(l)}, +onError:function(l,w){if(e.onError)e.onError(w)}, +onFetchError:function(l){if(e.onError)e.onError(l)}, +timeout:e.timeout,withCredentials:!0,compress:e.compress};E.headers["Content-Type"]||(E.headers["Content-Type"]="application/json");m="";var Z=z.config_.H8;Z&&(m=Z);Z=z.config_.p7||!1;var c=XTu(Z,m,e);Object.assign(E.headers,c);E.headers.Authorization&&!m&&Z&&(E.headers["x-origin"]=window.location.origin);var W=cf(""+m+("/youtubei/"+z.config_.innertubeApiVersion+"/"+J),{alt:"json"});g.Hq("ytNetworklessLoggingInitializationOptions")&&I8R.isNwlInitialized?oDE().then(function(l){T(l)}):T(!1)}; +g.cK=function(z,J,m){var e=g.E6();if(e&&J){var T=e.subscribe(z,function(){function E(){ZJ[T]&&J.apply&&typeof J.apply=="function"&&J.apply(m||window,Z)} +var Z=arguments;try{g.FP[z]?E():g.Np(E,0)}catch(c){g.rx(c)}},m); +ZJ[T]=!0;iE[z]||(iE[z]=[]);iE[z].push(T);return T}return 0}; +OHz=function(z){var J=g.cK("LOGGED_IN",function(m){z.apply(void 0,arguments);g.WK(J)})}; +g.WK=function(z){var J=g.E6();J&&(typeof z==="number"?z=[z]:typeof z==="string"&&(z=[parseInt(z,10)]),g.de(z,function(m){J.unsubscribeByKey(m);delete ZJ[m]}))}; +g.lE=function(z,J){var m=g.E6();return m?m.publish.apply(m,arguments):!1}; +yjR=function(z){var J=g.E6();if(J)if(J.clear(z),z)pfq(z);else for(var m in iE)pfq(m)}; +g.E6=function(){return g.VR.ytPubsubPubsubInstance}; +pfq=function(z){iE[z]&&(z=iE[z],g.de(z,function(J){ZJ[J]&&delete ZJ[J]}),z.length=0)}; +g.w$=function(z,J,m){Njq(z,J,m===void 0?null:m)}; +Njq=function(z,J,m){m=m===void 0?null:m;var e=Gob(z),T=document.getElementById(e),E=T&&$61(T),Z=T&&!E;E?J&&J():(J&&(E=g.cK(e,J),J=""+g.sz(J),Xfb[J]=E),Z||(T=nJu(z,e,function(){$61(T)||(bEs(T),g.lE(e),g.Np(function(){yjR(e)},0))},m)))}; +nJu=function(z,J,m,e){e=e===void 0?null:e;var T=g.EX("SCRIPT");T.id=J;T.onload=function(){m&&setTimeout(m,0)}; +T.onreadystatechange=function(){switch(T.readyState){case "loaded":case "complete":T.onload()}}; +e&&T.setAttribute("nonce",e);g.LI(T,g.S3(z));z=document.getElementsByTagName("head")[0]||document.body;z.insertBefore(T,z.firstChild);return T}; +Gob=function(z){var J=document.createElement("a");g.hB(J,z);z=J.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+E8(z)}; +qb=function(z,J){if(z===J)z=!0;else if(Array.isArray(z)&&Array.isArray(J))z=g.we(z,J,qb);else if(g.QR(z)&&g.QR(J))a:if(g.DL(z).length!=g.DL(J).length)z=!1;else{for(var m in z)if(!qb(z[m],J[m])){z=!1;break a}z=!0}else z=!1;return z}; +O6=function(z){var J=g.gu.apply(1,arguments);if(!d$(z)||J.some(function(e){return!d$(e)}))throw Error("Only objects may be merged."); +J=g.y(J);for(var m=J.next();!m.done;m=J.next())Ix(z,m.value)}; +Ix=function(z,J){for(var m in J)if(d$(J[m])){if(m in z&&!d$(z[m]))throw Error("Cannot merge an object into a non-object.");m in z||(z[m]={});Ix(z[m],J[m])}else if(pg(J[m])){if(m in z&&!pg(z[m]))throw Error("Cannot merge an array into a non-array.");m in z||(z[m]=[]);YLR(z[m],J[m])}else z[m]=J[m];return z}; +YLR=function(z,J){J=g.y(J);for(var m=J.next();!m.done;m=J.next())m=m.value,d$(m)?z.push(Ix({},m)):pg(m)?z.push(YLR([],m)):z.push(m);return z}; +d$=function(z){return typeof z==="object"&&!Array.isArray(z)}; +pg=function(z){return typeof z==="object"&&Array.isArray(z)}; +yL=function(z){g.h.call(this);this.T=z}; +Nb=function(z){yL.call(this,!0);this.K=z}; +GQ=function(z,J){g.h.call(this);var m=this;this.S=[];this.V=!1;this.T=0;this.Z=this.Y=this.U=!1;this.Ry=null;var e=(0,g.ru)(z,J);this.K=new g.vl(function(){return e(m.Ry)},300); +g.u(this,this.K);this.B=this.X=Infinity}; +Cvj=function(z,J){if(!J)return!1;for(var m=0;m-1)throw Error("Deps cycle for: "+J);if(z.T.has(J))return z.T.get(J);if(!z.K.has(J)){if(e)return;throw Error("No provider for: "+J);}e=z.K.get(J);m.push(J);if(e.n0!==void 0)var T=e.n0;else if(e.VbW)T=e[AN]?SLR(z,e[AN],m):[],T=e.VbW.apply(e,g.X(T));else if(e.Ae){T=e.Ae;var E=T[AN]?SLR(z,T[AN],m):[];T=new (Function.prototype.bind.apply(T,[null].concat(g.X(E))))}else throw Error("Could not resolve providers for: "+J);m.pop();e.UbF||z.T.set(J,T); +return T}; +SLR=function(z,J,m){return J?J.map(function(e){return e instanceof g$?ox(z,e.key,m,!0):ox(z,e,m)}):[]}; +hN=function(){j5||(j5=new Bj4);return j5}; +VL=function(){var z,J;return"h5vcc"in uE&&((z=uE.h5vcc.traceEvent)==null?0:z.traceBegin)&&((J=uE.h5vcc.traceEvent)==null?0:J.traceEnd)?1:"performance"in uE&&uE.performance.mark&&uE.performance.measure?2:0}; +PK=function(z){var J=VL();switch(J){case 1:uE.h5vcc.traceEvent.traceBegin("YTLR",z);break;case 2:uE.performance.mark(z+"-start");break;case 0:break;default:Ei(J,"unknown trace type")}}; +f8q=function(z){var J=VL();switch(J){case 1:uE.h5vcc.traceEvent.traceEnd("YTLR",z);break;case 2:J=z+"-start";var m=z+"-end";uE.performance.mark(m);uE.performance.measure(z,J,m);break;case 0:break;default:Ei(J,"unknown trace type")}}; +DpE=function(z){var J,m;(m=(J=window).onerror)==null||m.call(J,z.message,"",0,0,z)}; +bHu=function(z){var J=this;var m=m===void 0?0:m;var e=e===void 0?g.Tf():e;this.S=m;this.scheduler=e;this.T=new g.CS;this.K=z;for(z={Cz:0};z.Cz=1E3?T():e>=z?qV||(qV=df(function(){T();qV=void 0},0)):E-c>=10&&(Lhq(J,m.tier),Z.U=E)}; +tAq=function(z,J){if(z.endpoint==="log_event"){g.CH("more_accurate_gel_parser")&&TM().storePayload({isJspb:!1},z.payload);Zc(z);var m=FX(z),e=new Map;e.set(m,[z.payload]);var T=ujj(z.payload)||"";J&&(lc=new J);return new g.YV(function(E,Z){lc&&lc.isReady()?QQu(e,lc,E,Z,{bypassNetworkless:!0},!0,cP(T)):E()})}}; +RJq=function(z,J,m){if(J.endpoint==="log_event"){Zc(void 0,J);var e=FX(J,!0),T=new Map;T.set(e,[xj(J.payload)]);m&&(lc=new m);return new g.YV(function(E){lc&&lc.isReady()?vJq(T,lc,E,{bypassNetworkless:!0},!0,cP(z)):E()})}}; +FX=function(z,J){var m="";if(z.dangerousLogToVisitorSession)m="visitorOnlyApprovedKey";else if(z.cttAuthInfo){if(J===void 0?0:J){J=z.cttAuthInfo.token;m=z.cttAuthInfo;var e=new R3;m.videoId?e.setVideoId(m.videoId):m.playlistId&&EJ(e,2,IK,X7(m.playlistId));O$[J]=e}else J=z.cttAuthInfo,m={},J.videoId?m.videoId=J.videoId:J.playlistId&&(m.playlistId=J.playlistId),pd[z.cttAuthInfo.token]=m;m=z.cttAuthInfo.token}return m}; +WP=function(z,J,m){z=z===void 0?{}:z;J=J===void 0?!1:J;new g.YV(function(e,T){var E=wf(J,m),Z=E.S;E.S=!1;yg(E.T);yg(E.K);E.K=0;lc&&lc.isReady()?m===void 0&&g.CH("enable_web_tiered_gel")?sQb(e,T,z,J,300,Z):sQb(e,T,z,J,m,Z):(Lhq(J,m),e())})}; +sQb=function(z,J,m,e,T,E){var Z=lc;m=m===void 0?{}:m;e=e===void 0?!1:e;T=T===void 0?200:T;E=E===void 0?!1:E;var c=new Map,W=new Map,l={isJspb:e,cttAuthInfo:void 0,tier:T},w={isJspb:e,cttAuthInfo:void 0};if(e){J=g.y(Object.keys(ic));for(T=J.next();!T.done;T=J.next())T=T.value,W=g.CH("enable_web_tiered_gel")?TM().smartExtractMatchingEntries({keys:[l,w],sizeLimit:1E3}):TM().extractMatchingEntries({isJspb:!0,cttAuthInfo:T}),W.length>0&&c.set(T,W),(g.CH("web_fp_via_jspb_and_json")&&m.writeThenSend||!g.CH("web_fp_via_jspb_and_json"))&& +delete ic[T];vJq(c,Z,z,m,!1,E)}else{c=g.y(Object.keys(ic));for(l=c.next();!l.done;l=c.next())l=l.value,w=g.CH("enable_web_tiered_gel")?TM().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:l,tier:T},{isJspb:!1,cttAuthInfo:l}],sizeLimit:1E3}):TM().extractMatchingEntries({isJspb:!1,cttAuthInfo:l}),w.length>0&&W.set(l,w),(g.CH("web_fp_via_jspb_and_json")&&m.writeThenSend||!g.CH("web_fp_via_jspb_and_json"))&&delete ic[l];QQu(W,Z,z,J,m,!1,E)}}; +Lhq=function(z,J){function m(){WP({writeThenSend:!0},z,J)} +z=z===void 0?!1:z;J=J===void 0?200:J;var e=wf(z,J),T=e===rjR||e===zBq?5E3:JYE;g.CH("web_gel_timeout_cap")&&!e.K&&(T=df(function(){m()},T),e.K=T); +yg(e.T);T=g.Qt("LOGGING_BATCH_TIMEOUT",g.aQ("web_gel_debounce_ms",1E4));g.CH("shorten_initial_gel_batch_timeout")&&NV&&(T=mNu);T=df(function(){g.aQ("gel_min_batch_size")>0?TM().getSequenceCount({cttAuthInfo:void 0,isJspb:z,tier:J})>=eBq&&m():m()},T); +e.T=T}; +QQu=function(z,J,m,e,T,E,Z){T=T===void 0?{}:T;var c=Math.round((0,g.b5)()),W=z.size,l=Tsq(Z);z=g.y(z);var w=z.next();for(Z={};!w.done;Z={QX:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,Yc:void 0,XO:void 0},w=z.next()){var q=g.y(w.value);w=q.next().value;q=q.next().value;Z.batchRequest=g.jf({context:g.IT(J.config_||g.dn())});if(!g.Lq(q)&&!g.CH("throw_err_when_logevent_malformed_killswitch")){e();break}Z.batchRequest.events=q;(q=pd[w])&&Esq(Z.batchRequest,w,q);delete pd[w];Z.dangerousLogToVisitorSession= +w==="visitorOnlyApprovedKey";ZJf(Z.batchRequest,c,Z.dangerousLogToVisitorSession);Fy1(T);Z.Yc=function(d){g.CH("start_client_gcf")&&g.tQ.wy(function(){return g.D(function(I){return g.S(I,iJq(d),0)})}); +W--;W||m()}; +Z.QX=0;Z.XO=function(d){return function(){d.QX++;if(T.bypassNetworkless&&d.QX===1)try{g.TQ(J,l,d.batchRequest,GM({writeThenSend:!0},d.dangerousLogToVisitorSession,d.Yc,d.XO,E)),NV=!1}catch(I){g.rx(I),e()}W--;W||m()}}(Z); +try{g.TQ(J,l,Z.batchRequest,GM(T,Z.dangerousLogToVisitorSession,Z.Yc,Z.XO,E)),NV=!1}catch(d){g.rx(d),e()}}}; +vJq=function(z,J,m,e,T,E){e=e===void 0?{}:e;var Z=Math.round((0,g.b5)()),c={value:z.size},W=new Map([].concat(g.X(z)));W=g.y(W);for(var l=W.next();!l.done;l=W.next()){var w=g.y(l.value).next().value,q=z.get(w);l=new oGz;var d=J.config_||g.dn(),I=new u2,O=new gx;XS(O,1,d.It);XS(O,2,d.D1);Yc(O,16,d.z6);XS(O,17,d.innertubeContextClientVersion);if(d.zI){var G=d.zI,n=new b2;G.coldConfigData&&XS(n,1,G.coldConfigData);G.appInstallData&&XS(n,6,G.appInstallData);G.coldHashData&&XS(n,3,G.coldHashData);G.hotHashData&& +n.Qr(G.hotHashData);qc(O,b2,62,n)}(G=g.VR.devicePixelRatio)&&G!=1&&Hv(O,65,Z_(G));G=KH();G!==""&&XS(O,54,G);G=Bf();if(G.length>0){n=new A9;for(var C=0;C65535&&(z=1);L3("BATCH_CLIENT_COUNTER",z);return z}; +Esq=function(z,J,m){if(m.videoId)var e="VIDEO";else if(m.playlistId)e="PLAYLIST";else return;z.credentialTransferTokenTargetId=m;z.context=z.context||{};z.context.user=z.context.user||{};z.context.user.credentialTransferTokens=[{token:J,scope:e}]}; +Zc=function(z,J){if(!g.Hq("yt.logging.transport.enableScrapingForTest")){var m=YJ("il_payload_scraping");if((m!==void 0?String(m):"")==="enable_il_payload_scraping")YB=[],g.tu("yt.logging.transport.enableScrapingForTest",!0),g.tu("yt.logging.transport.scrapedPayloadsForTesting",YB),g.tu("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.tu("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), +g.tu("yt.logging.transport.scrapeClientEvent",!0);else return}m=g.Hq("yt.logging.transport.scrapedPayloadsForTesting");var e=g.Hq("yt.logging.transport.payloadToScrape");J&&(J=J.payload,(J=g.Hq("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(J)())&&m.push(J));J=g.Hq("yt.logging.transport.scrapeClientEvent");if(e&&e.length>=1)for(var T=0;T0&&feE(z,J,E)}else feE(z,J)}; +feE=function(z,J,m){z=DNs(z);J=J?g.QB(J):"";m=m||5;Ze()&&g.hj(z,J,m)}; +DNs=function(z){for(var J=g.y(bJR),m=J.next();!m.done;m=J.next())z=J2(z,m.value);return"ST-"+E8(z).toString(36)}; +$NR=function(z){if(z.name==="JavaException")return!0;z=z.stack;return z.includes("chrome://")||z.includes("chrome-extension://")||z.includes("moz-extension://")}; +gsb=function(){this.wd=[];this.rd=[]}; +xB=function(){if(!gf){var z=gf=new gsb;z.rd.length=0;z.wd.length=0;xNq(z,MOf)}return gf}; +xNq=function(z,J){J.rd&&z.rd.push.apply(z.rd,J.rd);J.wd&&z.wd.push.apply(z.wd,J.wd)}; +AYj=function(z){function J(){return z.charCodeAt(e++)} +var m=z.length,e=0;do{var T=MV(J);if(T===Infinity)break;var E=T>>3;switch(T&7){case 0:T=MV(J);if(E===2)return T;break;case 1:if(E===2)return;e+=8;break;case 2:T=MV(J);if(E===2)return z.substr(e,T);e+=T;break;case 5:if(E===2)return;e+=4;break;default:return}}while(e500));e++);e=T}else if(typeof z==="object")for(T in z){if(z[T]){var E=T;var Z=z[T],c=J,W=m;E=typeof Z!=="string"||E!=="clickTrackingParams"&&E!=="trackingParams"?0:(Z=AYj(atob(Z.replace(/-/g,"+").replace(/_/g,"/"))))?Ar(E+".ve",Z,c,W):0;e+=E;e+=Ar(T,z[T],J,m);if(e>500)break}}else m[J]=oK(z),e+=m[J].length;else m[J]=oK(z),e+=m[J].length;return e}; +Ar=function(z,J,m,e){m+="."+z;z=oK(J);e[m]=z;return m.length+z.length}; +oK=function(z){try{return(typeof z==="string"?z:String(JSON.stringify(z))).substr(0,500)}catch(J){return"unable to serialize "+typeof z+" ("+J.message+")"}}; +wW=function(z){g.jk(z)}; +g.hr=function(z){g.jk(z,"WARNING")}; +g.jk=function(z,J){var m=m===void 0?{}:m;m.name=g.Qt("INNERTUBE_CONTEXT_CLIENT_NAME",1);m.version=g.Qt("INNERTUBE_CONTEXT_CLIENT_VERSION");J=J===void 0?"ERROR":J;var e=!1;J=J===void 0?"ERROR":J;e=e===void 0?!1:e;if(z){z.hasOwnProperty("level")&&z.level&&(J=z.level);if(g.CH("console_log_js_exceptions")){var T=[];T.push("Name: "+z.name);T.push("Message: "+z.message);z.hasOwnProperty("params")&&T.push("Error Params: "+JSON.stringify(z.params));z.hasOwnProperty("args")&&T.push("Error args: "+JSON.stringify(z.args)); +T.push("File name: "+z.fileName);T.push("Stacktrace: "+z.stack);window.console.log(T.join("\n"),z)}if(!(jWb>=5)){T=[];for(var E=g.y(hBb),Z=E.next();!Z.done;Z=E.next()){Z=Z.value;try{Z()&&T.push(Z())}catch(G){}}T=[].concat(g.X(ua4),g.X(T));var c=CQq(z);E=c.message||"Unknown Error";Z=c.name||"UnknownError";var W=c.stack||z.T||"Not available";if(W.startsWith(Z+": "+E)){var l=W.split("\n");l.shift();W=l.join("\n")}l=c.lineNumber||"Not available";c=c.fileName||"Not available";var w=0;if(z.hasOwnProperty("args")&& +z.args&&z.args.length)for(var q=0;q=500);q++);else if(z.hasOwnProperty("params")&&z.params){var d=z.params;if(typeof z.params==="object")for(q in d){if(d[q]){var I="params."+q,O=oK(d[q]);m[I]=O;w+=I.length+O.length;if(w>500)break}}else m.params=oK(d)}if(T.length)for(q=0;q=500);q++);navigator.vendor&&!m.hasOwnProperty("vendor")&&(m["device.vendor"]=navigator.vendor);m={message:E,name:Z,lineNumber:l, +fileName:c,stack:W,params:m,sampleWeight:1};q=Number(z.columnNumber);isNaN(q)||(m.lineNumber=m.lineNumber+":"+q);if(z.level==="IGNORED")z=0;else a:{z=xB();q=g.y(z.rd);for(T=q.next();!T.done;T=q.next())if(T=T.value,m.message&&m.message.match(T.Bv)){z=T.weight;break a}z=g.y(z.wd);for(q=z.next();!q.done;q=z.next())if(q=q.value,q.callback(m)){z=q.weight;break a}z=1}m.sampleWeight=z;z=g.y(VOu);for(q=z.next();!q.done;q=z.next())if(q=q.value,q.uu[m.name])for(E=g.y(q.uu[m.name]),T=E.next();!T.done;T=E.next())if(Z= +T.value,T=m.message.match(Z.Pz)){m.params["params.error.original"]=T[0];E=Z.groups;Z={};for(l=0;l1E3&&g.hr(new g.vR("IL Attach cache exceeded limit"))}c= +rf(m,J);kB.has(c)?zZ(m,J):Qg.set(c,!0)}}e=e.filter(function(w){w.csn!==J?(w.csn=J,w=!0):w=!1;return w}); +m={csn:J,parentVe:m.getAsJson(),childVes:g.Ch(e,function(w){return w.getAsJson()})}; +J==="UNDEFINED_CSN"?JJ("visualElementAttached",E,m):z?aK("visualElementAttached",m,z,E):g.qq("visualElementAttached",m,E)}; +eYf=function(z,J,m,e,T){m4(m,J);e=RK({cttAuthInfo:bc(J)||void 0},J);m={csn:J,ve:m.getAsJson(),eventType:1};T&&(m.clientData=T);J==="UNDEFINED_CSN"?JJ("visualElementShown",e,m):z?aK("visualElementShown",m,z,e):g.qq("visualElementShown",m,e)}; +TWu=function(z,J,m,e){var T=(e=e===void 0?!1:e)?16:8;e=RK({cttAuthInfo:bc(J)||void 0,endOfSequence:e},J);m={csn:J,ve:m.getAsJson(),eventType:T};J==="UNDEFINED_CSN"?JJ("visualElementHidden",e,m):z?aK("visualElementHidden",m,z,e):g.qq("visualElementHidden",m,e)}; +E4E=function(z,J,m,e,T){eb(z,J,m,void 0,e,T)}; +eb=function(z,J,m,e,T){m4(m,J);e=e||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var E=RK({cttAuthInfo:bc(J)||void 0},J);m={csn:J,ve:m.getAsJson(),gestureType:e};T&&(m.clientData=T);J==="UNDEFINED_CSN"?JJ("visualElementGestured",E,m):z?aK("visualElementGestured",m,z,E):g.qq("visualElementGestured",m,E)}; +Z$u=function(){var z=Kg(16);for(var J=[],m=0;m0&&m.push(g.EX("BR"));m.push(g.Z$(E))}):m.push(g.Z$(e))}return m}; +Og=function(z,J,m,e){if(m==="child"){g.iV(J);var T;e===void 0?T=void 0:T=!Array.isArray(e)||e&&typeof e.D==="string"?[e]:e;m=i$b(z,T);m=g.y(m);for(z=m.next();!z.done;z=m.next())J.appendChild(z.value)}else m==="style"?g.FR(J,"cssText",e?e:""):e===null||e===void 0?J.removeAttribute(m):(z=e.toString(),m==="href"&&(z=g.xX(g.or(z))),J.setAttribute(m,z))}; +g.U=function(z){g.dF.call(this,z);this.oT=!0;this.Z=!1;this.listeners=[]}; +g.py=function(z){g.U.call(this,z);this.Lh=new g.wF;g.u(this,this.Lh)}; +y7=function(z,J,m,e,T,E,Z){Z=Z===void 0?null:Z;g.py.call(this,J);this.api=z;this.macros={};this.componentType=m;this.V=this.X=null;this.Hd=Z;this.layoutId=e;this.interactionLoggingClientData=T;this.gb=E;this.ND=null;this.UJ=new Nb(this.element);g.u(this,this.UJ);this.yH=this.L(this.element,"click",this.onClick);this.wb=[];this.Tf=new GQ(this.onClick,this);g.u(this,this.Tf);this.tZ=!1;this.Qx=this.Ry=null}; +N3=function(z,J){z=z===void 0?null:z;J=J===void 0?null:J;if(z==null)return g.hr(Error("Got null or undefined adText object")),"";var m=g.Ty(z.text);if(!z.isTemplated)return m;if(J==null)return g.hr(Error("Missing required parameters for a templated message")),m;z=g.y(Object.entries(J));for(J=z.next();!J.done;J=z.next()){var e=g.y(J.value);J=e.next().value;e=e.next().value;m=m.replace("{"+J+"}",e)}return m}; +c8b=function(z){z=z===void 0?null:z;return z!=null&&(z=z.thumbnail,z!=null&&z.thumbnails!=null&&z.thumbnails.length!=0&&z.thumbnails[0].url!=null)?g.Ty(z.thumbnails[0].url):""}; +WVu=function(z){z=z===void 0?null:z;return z!=null&&(z=z.thumbnail,z!=null&&z.thumbnails!=null&&z.thumbnails.length!=0&&z.thumbnails[0].width!=null&&z.thumbnails[0].height!=null)?new g.XT(z.thumbnails[0].width||0,z.thumbnails[0].height||0):new g.XT(0,0)}; +g.GZ=function(z){if(z.simpleText)return z.simpleText;if(z.runs){var J=[];z=g.y(z.runs);for(var m=z.next();!m.done;m=z.next())m=m.value,m.text&&J.push(m.text);return J.join("")}return""}; +g.Xl=function(z){if(z.simpleText)return z=document.createTextNode(z.simpleText),z;var J=[];if(z.runs)for(var m=0;m1){for(var J=[z[0]],m=1;m0&&(this.K=new g.vl(this.eL,J,this),g.u(this,this.K));this.Z=new g.vl(this.eL,m,this);g.u(this,this.Z);this.X=BXq(this.T,T,1,e);g.u(this,this.X);this.V=BXq(this.T,0,e,1);g.u(this,this.V);this.U=new bM;g.u(this,this.U)}; +lB=function(z,J,m){this.T=z;this.isAsync=J;this.K=m}; +kfz=function(z){switch(z){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:Ei(z,"unknown result type")}}; +LV1=function(z,J){var m=1;z.isTrusted===!1&&(m=0);L3("ISDSTAT",m);w9(m,"i.s_",{triggerContext:"sk",metadata:J});return m}; +QV1=function(z,J){var m=[];J?J.isTrusted===!0?m.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):J.isTrusted===!1?m.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):m.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):m.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");w9(0,"a.s_",{metadata:z,states:m});L3("ASDSTAT",0)}; +w9=function(z,J,m){J=v4j[J];var e,T,E={detected:z===0,source:""+J.T+((e=m.triggerContext)!=null?e:"")+((T=m.VO)!=null?T:""),detectionStates:m.states,durationMs:m.CN};m.metadata&&(E.contentCpn=m.metadata.contentCpn,E.adCpn=m.metadata.adCpn);g.qq("biscottiBasedDetection",E);J.K!==void 0&&(m=Number(g.Qt("CATSTAT",0)),J.K!==void 0?(J=J.K,z=kfz(z),z=m&~(3<0}; +No=function(z,J,m,e,T,E){mk.call(this,z,{D:"div",J:"ytp-ad-skip-button-slot"},"skip-button",J,m,e,T);var Z=this;this.fh=null;this.x3=!1;this.qD=E;this.Y=this.api.W().experiments.j4("enable_modern_skip_button_on_web");this.nh=!1;this.S=new g.py({D:"span",Iy:["ytp-ad-skip-button-container"]});this.Y&&this.S.element.classList.add("ytp-ad-skip-button-container-detached");this.api.C("enable_ad_pod_index_autohide")&&this.S.element.classList.add("ytp-ad-skip-button-container--clean-player");g.u(this,this.S); +this.S.S4(this.element);this.T=this.U=null;this.O2=new g.Ex(this.S,500,!1,100,function(){return Z.hide()}); +g.u(this,this.O2);this.Gf=new Wy(this.S.element,15E3,5E3,.5,.5,this.Y);g.u(this,this.Gf);this.hide()}; +r8q=function(z){z=z.fh&&z.fh.adRendererCommands;return(z&&z.clickCommand&&g.P(z.clickCommand,g.Ge)&&g.P(z.clickCommand,g.Ge).commands||[]).some(function(J){return J.adLifecycleCommand?sVq(J.adLifecycleCommand):!1})}; +sVq=function(z){return z.action==="END_LINEAR_AD"||z.action==="END_LINEAR_AD_PLACEMENT"}; +XW=function(z,J,m,e,T,E){mk.call(this,z,{D:"div",J:"ytp-ad-skip-ad-slot"},"skip-ad",J,m,e,T);this.fh=E;this.U=!1;this.Y=0;this.S=this.T=null;this.hide()}; +zMu=function(z,J){z.U||(z.U=!0,z.T&&(J?z.T.fh.hide():z.T.hide()),J?(z=z.S,z.O2.show(),z.show()):z.S.show())}; +nO=function(z,J,m,e){AJ.call(this,z,J,m,e,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; +YE=function(z,J,m,e,T,E,Z){E=E===void 0?!1:E;Z=Z===void 0?!1:Z;y7.call(this,z,{D:"span",J:"ytp-ad-simple-ad-badge"},"simple-ad-badge",J,m,e);this.S=T;this.K=this.P1("ytp-ad-simple-ad-badge");(this.T=E)&&this.K.classList.add("ytp-ad-simple-ad-badge--clean-player");Z&&this.K.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; +CO=function(z,J,m,e,T){T=T===void 0?!1:T;lY.call(this,"player-overlay",z,{},J,e);this.videoAdDurationSeconds=m;this.interactionLoggingClientData=e;this.F0=T}; +aU=function(z,J){g.wF.call(this);this.api=z;this.durationMs=J;this.K=null;this.Ij=new bM(this);g.u(this,this.Ij);this.T=JC1;this.Ij.L(this.api,"presentingplayerstatechange",this.cY);this.K=this.Ij.L(this.api,"onAdPlaybackProgress",this.Xq)}; +KO=function(z){g.wF.call(this);this.K=!1;this.Vn=0;this.Ij=new bM(this);g.u(this,this.Ij);this.durationMs=z;this.vk=new g.DB(100);g.u(this,this.vk);this.Ij.L(this.vk,"tick",this.Xq);this.T={seekableStart:0,seekableEnd:z/1E3,current:0};this.start()}; +g.By=function(z,J){var m=Math.abs(Math.floor(z)),e=Math.floor(m/86400),T=Math.floor(m%86400/3600),E=Math.floor(m%3600/60);m=Math.floor(m%60);if(J){J="";e>0&&(J+=" "+e+" Days");if(e>0||T>0)J+=" "+T+" Hours";J+=" "+E+" Minutes";J+=" "+m+" Seconds";e=J.trim()}else{J="";e>0&&(J+=e+":",T<10&&(J+="0"));if(e>0||T>0)J+=T+":",E<10&&(J+="0");J+=E+":";m<10&&(J+="0");e=J+m}return z>=0?e:"-"+e}; +g.SD=function(z){return(!("button"in z)||typeof z.button!=="number"||z.button===0)&&!("shiftKey"in z&&z.shiftKey)&&!("altKey"in z&&z.altKey)&&!("metaKey"in z&&z.metaKey)&&!("ctrlKey"in z&&z.ctrlKey)}; +fO=function(z,J,m,e,T,E,Z){mk.call(this,z,{D:"span",J:Z?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",J,m,e,T);this.videoAdDurationSeconds=E;this.T=null;this.api.C("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-ad-duration-remaining--clean-player-with-light-shadow");Z&&this.api.W().T&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),this.api.C("clean_player_style_fix_on_web")&&(this.element.classList.add("ytp-ad-duration-remaining--mweb-light"), +vj&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios")));this.hide()}; +DC=function(z,J,m,e){ze.call(this,z,J,m,e,"ytp-video-ad-top-bar-title","ad-title")}; +bB=function(z){this.content=z.content;if(z.commandRuns){z=g.y(z.commandRuns);for(var J=z.next();!J.done;J=z.next())J=J.value,this.loggingDirectives=g.P(J,mhz),J.onTap&&(this.interaction={onTap:J.onTap})}}; +$E=function(z,J,m,e){y7.call(this,z,{D:"div",J:"ad-simple-attributed-string"},"ad-simple-attributed-string",J,m,e);this.hide()}; +g9=function(z,J,m,e,T){y7.call(this,z,{D:"span",J:T?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",J,m,e);this.T=T;this.adBadgeText=new $E(this.api,this.layoutId,this.interactionLoggingClientData,this.gb);this.adBadgeText.S4(this.element);g.u(this,this.adBadgeText);T?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),vj&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; +xE=function(z,J,m,e){y7.call(this,z,{D:"span",J:"ytp-ad-pod-index"},"ad-pod-index",J,m,e);this.api.W().T&&(this.element.classList.add("ytp-ad-pod-index--mweb"),vj&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}; +Mo=function(z,J,m,e){y7.call(this,z,{D:"div",J:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",J,m,e);this.hide()}; +AL=function(z,J){this.T=z;this.K=J}; +oU=function(z,J,m){if(!z.getLength())return m!=null?m:Infinity;z=(J-z.T)/z.getLength();return g.O8(z,0,1)}; +jD=function(z,J,m,e){e=e===void 0?!1:e;g.py.call(this,{D:"div",J:"ytp-ad-persistent-progress-bar-container",N:[{D:"div",J:"ytp-ad-persistent-progress-bar"}]});this.api=z;this.T=J;this.S=m;e&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.u(this,this.T);this.progressBar=this.P1("ytp-ad-persistent-progress-bar");this.K=-1;this.L(z,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; +hL=function(z,J,m,e,T,E){y7.call(this,z,{D:"div",J:"ytp-ad-player-overlay",N:[{D:"div",J:"ytp-ad-player-overlay-flyout-cta"},{D:"div",J:"ytp-ad-player-overlay-instream-info"},{D:"div",J:"ytp-ad-player-overlay-skip-or-preview"},{D:"div",J:"ytp-ad-player-overlay-progress-bar"},{D:"div",J:"ytp-ad-player-overlay-instream-user-sentiment"},{D:"div",J:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",J,m,e);this.B=E;this.Y=this.P1("ytp-ad-player-overlay-flyout-cta");this.Y.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); +this.K=this.P1("ytp-ad-player-overlay-instream-info");this.U=null;eMu(this)&&(z=Tb("div"),g.FE(z,"ytp-ad-player-overlay-top-bar-gradients"),J=this.K,J.parentNode&&J.parentNode.insertBefore(z,J),(J=this.api.getVideoData(2))&&J.isListed&&J.title&&(m=new DC(this.api,this.layoutId,this.interactionLoggingClientData,this.gb),m.S4(z),m.init(WV("ad-title"),{text:J.title},this.macros),g.u(this,m)),this.U=z);this.S=null;this.h6=this.P1("ytp-ad-player-overlay-skip-or-preview");this.Gf=this.P1("ytp-ad-player-overlay-progress-bar"); +this.x3=this.P1("ytp-ad-player-overlay-instream-user-sentiment");this.fh=this.P1("ytp-ad-player-overlay-ad-disclosure-banner");this.T=T;g.u(this,this.T);this.hide()}; +eMu=function(z){z=z.api.W();return g.uB(z)&&z.T}; +VK=function(z,J,m){var e={};J&&(e.v=J);m&&(e.list=m);z={name:z,locale:void 0,feature:void 0};for(var T in e)z[T]=e[T];e=g.v1("/sharing_services",z);g.HA(e)}; +g.Py=function(z){z&=16777215;var J=[(z&16711680)>>16,(z&65280)>>8,z&255];z=J[0];var m=J[1];J=J[2];z=Number(z);m=Number(m);J=Number(J);if(z!=(z&255)||m!=(m&255)||J!=(J&255))throw Error('"('+z+","+m+","+J+'") is not a valid RGB color');m=z<<16|m<<8|J;return z<16?"#"+(16777216|m).toString(16).slice(1):"#"+m.toString(16)}; +tL=function(z){this.K=new $D(z)}; +Tnf=function(){var z=!1;try{z=!!window.sessionStorage.getItem("session_logininfo")}catch(J){z=!0}return(g.Qt("INNERTUBE_CLIENT_NAME")==="WEB"||g.Qt("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&z}; +Hy=function(z){if(g.Qt("LOGGED_IN",!0)&&Tnf()){var J=g.Qt("VALID_SESSION_TEMPDATA_DOMAINS",[]);var m=g.H1(window.location.href);m&&J.push(m);m=g.H1(z);g.s1(J,m)||!m&&YO(z,"/")?(J=Uw(z),(J=p5z(J))?(J=DNs(J),J=(J=g.uv(J)||null)?Z8(J):{}):J=null):J=null;J==null&&(J={});m=J;var e=void 0;Tnf()?(e||(e=g.Qt("LOGIN_INFO")),e?(m.session_logininfo=e,m=!0):m=!1):m=!1;m&&$B(z,J)}}; +g.Eof=function(z){var J=J===void 0?{}:J;var m=m===void 0?"":m;var e=e===void 0?window:e;z=g.v1(z,J);Hy(z);m=g.or(z+m);e=e.location;m=jt(m);m!==void 0&&(e.href=m)}; +g.Ux=function(z,J,m){J=J===void 0?{}:J;m=m===void 0?!1:m;var e=g.Qt("EVENT_ID");e&&(J.ei||(J.ei=e));J&&$B(z,J);m||(Hy(z),g.Eof(z))}; +g.RU=function(z,J,m,e,T){T=T===void 0?!1:T;m&&$B(z,m);m=g.or(z);var E=g.xX(m);z!=E&&eA(Error("Unsafe window.open URL: "+z));z=E;J=J||E8(z).toString(36);try{if(T)return T=z,T=iHu(T),Hy(T),g.tB(window,T,J,"attributionsrc")}catch(Z){g.rx(Z)}Hy(z);return g.tB(window,m,J,e)}; +ZT4=function(z){kE=z}; +Fej=function(z){LO=z}; +iTj=function(z){QK=z}; +Wes=function(){cCb=QK=LO=kE=null}; +wAf=function(){var z=z===void 0?window.location.href:z;if(g.CH("kevlar_disable_theme_param"))return null;var J=VB(g.t0(5,z));if(g.CH("enable_dark_theme_only_on_shorts")&&J!=null&&J.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var m=g.iv(z).theme;return lXu.get(m)||null}catch(e){}return null}; +vy=function(){this.K={};if(this.T=d6u()){var z=g.uv("CONSISTENCY");z&&qKz(this,{encryptedTokenJarContents:z})}}; +qKz=function(z,J){if(J.encryptedTokenJarContents&&(z.K[J.encryptedTokenJarContents]=J,typeof J.expirationSeconds==="string")){var m=Number(J.expirationSeconds);setTimeout(function(){delete z.K[J.encryptedTokenJarContents]},m*1E3); +z.T&&g.hj("CONSISTENCY",J.encryptedTokenJarContents,m,void 0,!0)}}; +r9=function(){this.T=-1;var z=g.Qt("LOCATION_PLAYABILITY_TOKEN");g.Qt("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=sx(this))&&(z=this.localStorage.get("yt-location-playability-token"));z&&(this.locationPlayabilityToken=z,this.K=void 0)}; +sx=function(z){return z.localStorage===void 0?new F2("yt-client-location"):z.localStorage}; +g.zr=function(z,J,m){J=J===void 0?!1:J;m=m===void 0?!1:m;var e=g.Qt("INNERTUBE_CONTEXT");if(!e)return g.jk(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};e=g.jf(e);g.CH("web_no_tracking_params_in_shell_killswitch")||delete e.clickTracking;e.client||(e.client={});var T=e.client;T.clientName==="MWEB"&&T.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(T.clientFormFactor=g.Qt("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");T.screenWidthPoints=window.innerWidth;T.screenHeightPoints= +window.innerHeight;T.screenPixelDensity=Math.round(window.devicePixelRatio||1);T.screenDensityFloat=window.devicePixelRatio||1;T.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var E=E===void 0?!1:E;g.HR();var Z="USER_INTERFACE_THEME_LIGHT";g.UF(0,165)?Z="USER_INTERFACE_THEME_DARK":g.UF(0,174)?Z="USER_INTERFACE_THEME_LIGHT":!g.CH("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& +(Z="USER_INTERFACE_THEME_DARK");E=E?Z:wAf()||Z;T.userInterfaceTheme=E;if(!J){if(E=JAz())T.connectionType=E;g.CH("web_log_effective_connection_type")&&(E=eQR())&&(e.client.effectiveConnectionType=E)}var c;if(g.CH("web_log_memory_total_kbytes")&&((c=g.VR.navigator)==null?0:c.deviceMemory)){var W;c=(W=g.VR.navigator)==null?void 0:W.deviceMemory;e.client.memoryTotalKbytes=""+c*1E6}g.CH("web_gcf_hashes_innertube")&&(E=Wo1())&&(W=E.coldConfigData,c=E.coldHashData,E=E.hotHashData,e.client.configInfo=e.client.configInfo|| +{},W&&(e.client.configInfo.coldConfigData=W),c&&(e.client.configInfo.coldHashData=c),E&&(e.client.configInfo.hotHashData=E));W=g.iv(g.VR.location.href);!g.CH("web_populate_internal_geo_killswitch")&&W.internalcountrycode&&(T.internalGeo=W.internalcountrycode);T.clientName==="MWEB"||T.clientName==="WEB"?(T.mainAppWebInfo={graftUrl:g.VR.location.href},g.CH("kevlar_woffle")&&kau.instance&&(W=kau.instance,T.mainAppWebInfo.pwaInstallabilityStatus=!W.K&&W.T?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": +"PWA_INSTALLABILITY_STATUS_UNKNOWN"),T.mainAppWebInfo.webDisplayMode=Vx(),T.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):T.clientName==="TVHTML5"&&(!g.CH("web_lr_app_quality_killswitch")&&(W=g.Qt("LIVING_ROOM_APP_QUALITY"))&&(T.tvAppInfo=Object.assign(T.tvAppInfo||{},{appQuality:W})),W=g.Qt("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(T.tvAppInfo=Object.assign(T.tvAppInfo||{},{certificationScope:W}));if(!g.CH("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== +"undefined")try{var l=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(x){}l=void 0}l&&(T.timeZone=l)}(l=KH())?T.experimentsToken=l:delete T.experimentsToken;l=Bf();vy.instance||(vy.instance=new vy);e.request=Object.assign({},e.request,{internalExperimentFlags:l,consistencyTokenJars:g.fY(vy.instance.K)});!g.CH("web_prequest_context_killswitch")&&(l=g.Qt("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(e.request.externalPrequestContext=l);T=g.HR();l=g.UF(0,58);T=T.get("gsml","");e.user=Object.assign({}, +e.user);l&&(e.user.enableSafetyMode=l);T&&(e.user.lockedSafetyMode=!0);g.CH("warm_op_csn_cleanup")?m&&(J=g.Dc())&&(e.clientScreenNonce=J):!J&&(J=g.Dc())&&(e.clientScreenNonce=J);z&&(e.clickTracking={clickTrackingParams:z});if(z=g.Hq("yt.mdx.remote.remoteClient_"))e.remoteClient=z;r9.getInstance().setLocationOnInnerTubeContext(e);try{var w=OL(),q=w.bid;delete w.bid;e.adSignalsInfo={params:[],bid:q};for(var d=g.y(Object.entries(w)),I=d.next();!I.done;I=d.next()){var O=g.y(I.value),G=O.next().value, +n=O.next().value;w=G;q=n;z=void 0;(z=e.adSignalsInfo.params)==null||z.push({key:w,value:""+q})}var C,K;if(((C=e.client)==null?void 0:C.clientName)==="TVHTML5"||((K=e.client)==null?void 0:K.clientName)==="TVHTML5_UNPLUGGED"){var f=g.Qt("INNERTUBE_CONTEXT");f.adSignalsInfo&&(e.adSignalsInfo.advertisingId=f.adSignalsInfo.advertisingId,e.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",e.adSignalsInfo.limitAdTracking=f.adSignalsInfo.limitAdTracking)}}catch(x){g.jk(x)}return e}; +OTE=function(z,J){if(!z)return!1;var m,e=(m=g.P(z,dhq))==null?void 0:m.signal;if(e&&J.v9)return!!J.v9[e];var T;if((m=(T=g.P(z,IXs))==null?void 0:T.request)&&J.a9)return!!J.a9[m];for(var E in z)if(J.Sj[E])return!0;return!1}; +pAq=function(z){var J={"Content-Type":"application/json"};g.Qt("EOM_VISITOR_DATA")?J["X-Goog-EOM-Visitor-Id"]=g.Qt("EOM_VISITOR_DATA"):g.Qt("VISITOR_DATA")&&(J["X-Goog-Visitor-Id"]=g.Qt("VISITOR_DATA"));J["X-Youtube-Bootstrap-Logged-In"]=g.Qt("LOGGED_IN",!1);g.Qt("DEBUG_SETTINGS_METADATA")&&(J["X-Debug-Settings-Metadata"]=g.Qt("DEBUG_SETTINGS_METADATA"));z!=="cors"&&((z=g.Qt("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(J["X-Youtube-Client-Name"]=z),(z=g.Qt("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(J["X-Youtube-Client-Version"]= +z),(z=g.Qt("CHROME_CONNECTED_HEADER"))&&(J["X-Youtube-Chrome-Connected"]=z),(z=g.Qt("DOMAIN_ADMIN_STATE"))&&(J["X-Youtube-Domain-Admin-State"]=z),g.Qt("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(z=g.Qt("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(J["X-YouTube-Lava-Device-Context"]=z));return J}; +yC1=function(){this.K={}}; +JR=function(){this.mappings=new yC1}; +mi=function(z){return function(){return new z}}; +GLq=function(z){var J=J===void 0?"UNKNOWN_INTERFACE":J;if(z.length===1)return z[0];var m=Nnu[J];if(m){m=new RegExp(m);for(var e=g.y(z),T=e.next();!T.done;T=e.next())if(T=T.value,m.exec(T))return T}var E=[];Object.entries(Nnu).forEach(function(Z){var c=g.y(Z);Z=c.next().value;c=c.next().value;J!==Z&&E.push(c)}); +m=new RegExp(E.join("|"));z.sort(function(Z,c){return Z.length-c.length}); +e=g.y(z);for(T=e.next();!T.done;T=e.next())if(T=T.value,!m.exec(T))return T;return z[0]}; +g.ej=function(z){return"/youtubei/v1/"+GLq(z)}; +Tr=function(){}; +Ep=function(){}; +ZI=function(){}; +Fe=function(z){return g.Hq("ytcsi."+(z||"")+"data_")||XAb(z)}; +nou=function(){var z=Fe();z.info||(z.info={});return z.info}; +iq=function(z){z=Fe(z);z.metadata||(z.metadata={});return z.metadata}; +ch=function(z){z=Fe(z);z.tick||(z.tick={});return z.tick}; +Wh=function(z){z=Fe(z);if(z.gel){var J=z.gel;J.gelInfos||(J.gelInfos={});J.gelTicks||(J.gelTicks={})}else z.gel={gelTicks:{},gelInfos:{}};return z.gel}; +YKR=function(z){z=Wh(z);z.gelInfos||(z.gelInfos={});return z.gelInfos}; +lq=function(z){var J=Fe(z).nonce;J||(J=g.BK(16),Fe(z).nonce=J);return J}; +XAb=function(z){var J={tick:{},info:{}};g.tu("ytcsi."+(z||"")+"data_",J);return J}; +w6=function(){var z=g.Hq("ytcsi.debug");z||(z=[],g.tu("ytcsi.debug",z),g.tu("ytcsi.reference",{}));return z}; +CM=function(z){z=z||"";var J=Cmf();if(J[z])return J[z];var m=w6(),e={timerName:z,info:{},tick:{},span:{},jspbInfo:[]};m.push(e);return J[z]=e}; +aXq=function(z){z=z||"";var J=Cmf();J[z]&&delete J[z];var m=w6(),e={timerName:z,info:{},tick:{},span:{},jspbInfo:[]};m.push(e);J[z]=e}; +Cmf=function(){var z=g.Hq("ytcsi.reference");if(z)return z;w6();return g.Hq("ytcsi.reference")}; +aE=function(z){return Keq[z]||"LATENCY_ACTION_UNKNOWN"}; +KM=function(z,J){pT.call(this,1,arguments);this.vk=J}; +Bh=function(){this.K=0}; +Sj=function(){Bh.instance||(Bh.instance=new Bh);return Bh.instance}; +DI=function(z,J){fM[J]=fM[J]||{count:0};var m=fM[J];m.count++;m.time=(0,g.b5)();z.K||(z.K=g.mV(0,function(){var e=(0,g.b5)(),T;for(T in fM)fM[T]&&e-fM[T].time>6E4&&delete fM[T];z&&(z.K=0)},5E3)); +return m.count>5?(m.count===6&&Math.random()*1E5<1&&(m=new g.vR("CSI data exceeded logging limit with key",J.split("_")),J.indexOf("plev")>=0||g.hr(m)),!0):!1}; +Bnu=function(){this.timing={};this.clearResourceTimings=function(){}; +this.webkitClearResourceTimings=function(){}; +this.mozClearResourceTimings=function(){}; +this.msClearResourceTimings=function(){}; +this.oClearResourceTimings=function(){}}; +SKq=function(){var z;if(g.CH("csi_use_performance_navigation_timing")||g.CH("csi_use_performance_navigation_timing_tvhtml5")){var J,m,e,T=bq==null?void 0:(z=bq.getEntriesByType)==null?void 0:(J=z.call(bq,"navigation"))==null?void 0:(m=J[0])==null?void 0:(e=m.toJSON)==null?void 0:e.call(m);T?(T.requestStart=$d(T.requestStart),T.responseEnd=$d(T.responseEnd),T.redirectStart=$d(T.redirectStart),T.redirectEnd=$d(T.redirectEnd),T.domainLookupEnd=$d(T.domainLookupEnd),T.connectStart=$d(T.connectStart), +T.connectEnd=$d(T.connectEnd),T.responseStart=$d(T.responseStart),T.secureConnectionStart=$d(T.secureConnectionStart),T.domainLookupStart=$d(T.domainLookupStart),T.isPerformanceNavigationTiming=!0,z=T):z=bq.timing}else z=g.CH("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(bq.timing)):bq.timing;return z}; +$d=function(z){return Math.round(g6()+z)}; +g6=function(){return(g.CH("csi_use_time_origin")||g.CH("csi_use_time_origin_tvhtml5"))&&bq.timeOrigin?Math.floor(bq.timeOrigin):bq.timing.navigationStart}; +Ml=function(z,J){xd("_start",z,J)}; +AR=function(z,J){if(!g.CH("web_csi_action_sampling_enabled")||!Fe(J).actionDisabled){var m=CM(J||"");O6(m.info,z);z.loadType&&(m=z.loadType,iq(J).loadType=m);O6(YKR(J),z);m=lq(J);J=Fe(J).cttAuthInfo;Sj().info(z,m,J)}}; +fXu=function(){var z,J,m,e;return((e=hN().resolve(xw(wn))==null?void 0:(z=qh())==null?void 0:(J=z.loggingHotConfig)==null?void 0:(m=J.csiConfig)==null?void 0:m.debugTicks)!=null?e:[]).map(function(T){return Object.values(T)[0]})}; +xd=function(z,J,m){if(!g.CH("web_csi_action_sampling_enabled")||!Fe(m).actionDisabled){var e=lq(m),T;if(T=g.CH("web_csi_debug_sample_enabled")&&e){(hN().resolve(xw(wn))==null?0:qh())&&!Dhj&&(Dhj=!0,xd("gcfl",(0,g.b5)(),m));var E,Z,c;T=(hN().resolve(xw(wn))==null?void 0:(E=qh())==null?void 0:(Z=E.loggingHotConfig)==null?void 0:(c=Z.csiConfig)==null?void 0:c.debugSampleWeight)||0;if(E=T!==0)b:{E=fXu();if(E.length>0)for(Z=0;Zm.duration?e:m},{duration:0}))&&J.startTime>0&&J.responseEnd>0&&(xd("wffs",$d(J.startTime)),xd("wffe",$d(J.responseEnd)))}; +ooj=function(z,J,m){bq&&bq.measure&&(z.startsWith("measure_")||(z="measure_"+z),m?bq.measure(z,J,m):J?bq.measure(z,J):bq.measure(z))}; +jTb=function(z){var J=oE("aft",z);if(J)return J;J=g.Qt((z||"")+"TIMING_AFT_KEYS",["ol"]);for(var m=J.length,e=0;e0&&AR(J);J={isNavigation:!0,actionType:aE(g.Qt("TIMING_ACTION"))};var m=g.Qt("PREVIOUS_ACTION");m&&(J.previousAction=aE(m));if(m=g.Qt("CLIENT_PROTOCOL"))J.httpProtocol=m;if(m=g.Qt("CLIENT_TRANSPORT"))J.transportProtocol=m;(m=g.Dc())&&m!=="UNDEFINED_CSN"&&(J.clientScreenNonce=m);m=go1();if(m===1||m===-1)J.isVisible= +!0;m=iq().loadType==="cold";var e=nou();m||(m=e.yt_lt==="cold");if(m){J.loadType="cold";m=nou();e=SKq();var T=g6(),E=g.Qt("CSI_START_TIMESTAMP_MILLIS",0);E>0&&!g.CH("embeds_web_enable_csi_start_override_killswitch")&&(T=E);T&&(xd("srt",e.responseStart),m.prerender!==1&&Ml(T));m=VV1();m>0&&xd("fpt",m);m=SKq();m.isPerformanceNavigationTiming&&AR({performanceNavigationTiming:!0},void 0);xd("nreqs",m.requestStart,void 0);xd("nress",m.responseStart,void 0);xd("nrese",m.responseEnd,void 0);m.redirectEnd- +m.redirectStart>0&&(xd("nrs",m.redirectStart,void 0),xd("nre",m.redirectEnd,void 0));m.domainLookupEnd-m.domainLookupStart>0&&(xd("ndnss",m.domainLookupStart,void 0),xd("ndnse",m.domainLookupEnd,void 0));m.connectEnd-m.connectStart>0&&(xd("ntcps",m.connectStart,void 0),xd("ntcpe",m.connectEnd,void 0));m.secureConnectionStart>=g6()&&m.connectEnd-m.secureConnectionStart>0&&(xd("nstcps",m.secureConnectionStart,void 0),xd("ntcpe",m.connectEnd,void 0));bq&&"getEntriesByType"in bq&&AC4();m=[];if(document.querySelector&& +bq&&bq.getEntriesByName)for(var Z in uq)uq.hasOwnProperty(Z)&&(e=uq[Z],MV1(Z,e)&&m.push(e));if(m.length>0)for(J.resourceInfo=[],Z=g.y(m),m=Z.next();!m.done;m=Z.next())J.resourceInfo.push({resourceCache:m.value})}AR(J);J=Wh();J.preLoggedGelInfos||(J.preLoggedGelInfos=[]);Z=J.preLoggedGelInfos;J=YKR();m=void 0;for(e=0;e-1&&(delete N["@type"],k=N);G&&z.T.has(G)&&z.T.delete(G);((Pq=J.config)==null?0:Pq.ruD)&&Ph(J.config.ruD);if(k||(KN=z.S)==null||!KN.RSy(J.input,J.s7)){S4.U2(15);break}return g.S(S4,z.S.wN3(J.input,J.s7),16);case 16:k=S4.T;case 15:return Zgb(z,k,J),((pN=J.config)==null?0:pN.mL3)&&Ph(J.config.mL3),e(),S4.return(k||void 0)}})}; +JNj=function(z,J){a:{z=z.jj;var m,e=(m=g.P(J,dhq))==null?void 0:m.signal;if(e&&z.v9&&(m=z.v9[e])){var T=m();break a}var E;if((m=(E=g.P(J,IXs))==null?void 0:E.request)&&z.a9&&(E=z.a9[m])){T=E();break a}for(T in J)if(z.Sj[T]&&(J=z.Sj[T])){T=J();break a}T=void 0}if(T!==void 0)return Promise.resolve(T)}; +eyR=function(z,J,m){var e,T,E,Z,c,W,l;return g.D(function(w){if(w.K==1){E=((e=J)==null?void 0:(T=e.uA)==null?void 0:T.identity)||OK;W=(Z=J)==null?void 0:(c=Z.uA)==null?void 0:c.sessionIndex;var q=g.aY(z.K.N6(E,{sessionIndex:W}));return g.S(w,q,2)}l=w.T;return w.return(Promise.resolve(Object.assign({},pAq(m),l)))})}; +mbb=function(z,J,m){var e,T=(J==null?void 0:(e=J.uA)==null?void 0:e.identity)||OK,E;J=J==null?void 0:(E=J.uA)==null?void 0:E.sessionIndex;z=z.K.N6(T,{sessionIndex:J});return Object.assign({},pAq(m),z)}; +sp=function(){}; +r6=function(){}; +zU=function(z){this.Y=z}; +Jv=function(){}; +mg=function(){}; +e6=function(){}; +TU=function(){}; +g.EO=function(z,J){var m=g.gu.apply(2,arguments);z=z===void 0?0:z;g.vR.call(this,J,m);this.errorType=z;Object.setPrototypeOf(this,this.constructor.prototype)}; +ZD=function(z,J,m,e){this.K=z;this.T=J;this.S=m;this.U=e}; +igq=function(z,J,m){if(z.K){var e=VB(g.t0(5,J2(J,"key")))||"/UNKNOWN_PATH";z.K.start(e)}e=m;g.CH("wug_networking_gzip_request")&&(e=u0q(m));var T;return new ((T=z.U)!=null?T:window.Request)(J,e)}; +g.i_=function(z,J){if(!F9){var m=hN();Mb(m,{Y2:cNE,Ae:ZD});var e={Sj:{feedbackEndpoint:mi(Jv),modifyChannelNotificationPreferenceEndpoint:mi(mg),playlistEditEndpoint:mi(e6),shareEntityEndpoint:mi(zU),subscribeEndpoint:mi(sp),unsubscribeEndpoint:mi(r6),webPlayerShareEntityServiceEndpoint:mi(TU)}},T=r9.getInstance(),E={};T&&(E.client_location=T);z===void 0&&(z=LAq());J===void 0&&(J=m.resolve(cNE));zys(e,J,z,E);Mb(m,{Y2:Wtu,n0:LM.instance});F9=m.resolve(Wtu)}return F9}; +lJu=function(z){var J=new nS;if(z.interpreterJavascript){var m=f1b(z.interpreterJavascript);m=Rr(m).toString();var e=new GH;XS(e,6,m);qc(J,GH,1,e)}else z.interpreterUrl&&(m=BT(z.interpreterUrl),m=$X(m).toString(),e=new XF,XS(e,4,m),qc(J,XF,2,e));z.interpreterHash&&nP(J,3,z.interpreterHash);z.program&&nP(J,4,z.program);z.globalName&&nP(J,5,z.globalName);z.clientExperimentsStateBlob&&nP(J,7,z.clientExperimentsStateBlob);return J}; +c2=function(z){var J={};z=z.split("&");z=g.y(z);for(var m=z.next();!m.done;m=z.next())m=m.value.split("="),m.length===2&&(J[m[0]]=m[1]);return J}; +LMz=function(){if(g.CH("bg_st_hr"))return"havuokmhhs-0";var z,J=((z=performance)==null?void 0:z.timeOrigin)||0;return"havuokmhhs-"+Math.floor(J)}; +W2=function(z){this.K=z}; +wKR=function(){return new Promise(function(z){var J=window.top;J.ntpevasrs!==void 0?z(new W2(J.ntpevasrs)):(J.ntpqfbel===void 0&&(J.ntpqfbel=[]),J.ntpqfbel.push(function(m){z(new W2(m))}))})}; +dbb=function(){if(!g.CH("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.CH("disable_biscotti_fetch_entirely_for_all_web_clients")&&Ze()){var z=g.Qt("PLAYER_VARS",{});if(g.Mr(z,"privembed",!1)!="1"&&!Xlz(z)){var J=function(){l_=!0;"google_ad_status"in window?L3("DCLKSTAT",1):L3("DCLKSTAT",2)}; +try{g.w$("//static.doubleclick.net/instream/ad_status.js",J)}catch(m){}q6j.push(g.tQ.wy(function(){if(!(l_||"google_ad_status"in window)){try{if(J){var m=""+g.sz(J),e=Xfb[m];e&&g.WK(e)}}catch(T){}l_=!0;L3("DCLKSTAT",3)}},5E3))}}}; +wY=function(){var z=Number(g.Qt("DCLKSTAT",0));return isNaN(z)?0:z}; +OO=function(z,J,m){var e=this;this.network=z;this.options=J;this.T=m;this.K=null;if(J.Etx){var T=new g.CS;this.K=T.promise;g.VR.ytAtRC&&J8(function(){var E,Z;return g.D(function(c){if(c.K==1){if(!g.VR.ytAtRC)return c.return();E=qT(null);return g.S(c,dY(e,E),2)}Z=c.T;g.VR.ytAtRC&&g.VR.ytAtRC(JSON.stringify(Z));g.nq(c)})},2); +wKR().then(function(E){var Z,c,W,l;return g.D(function(w){if(w.K==1)return E.bindInnertubeChallengeFetcher(function(q){return dY(e,qT(q))}),g.S(w,Sp(),2); +Z=w.T;c=E.getLatestChallengeResponse();W=c.challenge;if(!W)throw Error("BGE_MACIL");l={challenge:W,zE:c2(W),xP:Z,bgChallenge:new nS};T.resolve(l);E.registerChallengeFetchedCallback(function(q){q=q.challenge;if(!q)throw Error("BGE_MACR");q={challenge:q,zE:c2(q),xP:Z,bgChallenge:new nS};e.K=Promise.resolve(q)}); +g.nq(w)})})}else J.preload&&IJ4(this,new Promise(function(E){g.mV(0,function(){E(Ik(e))},0)}))}; +qT=function(z){var J={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};z&&(J.interpreterHash=z);return J}; +Ik=function(z,J){J=J===void 0?0:J;var m,e,T,E,Z,c,W,l,w,q,d,I;return g.D(function(O){switch(O.K){case 1:m=qT(SB().K);if(g.CH("att_fet_ks"))return g.Yu(O,7),g.S(O,dY(z,m),9);g.Yu(O,4);return g.S(O,Ogu(z,m),6);case 6:Z=O.T;T=Z.yu6;E=Z.Hch;e=Z;g.aq(O,3);break;case 4:return g.Kq(O),g.hr(Error("Failed to fetch attestation challenge after "+(J+" attempts; not retrying for 24h."))),pc(z,864E5),O.return({challenge:"",zE:{},xP:void 0,bgChallenge:void 0});case 9:e=O.T;if(!e)throw Error("Fetching Attestation challenge returned falsy"); +if(!e.challenge)throw Error("Missing Attestation challenge");T=e.challenge;E=c2(T);if("c1a"in E&&(!e.bgChallenge||!e.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.aq(O,3);break;case 7:c=g.Kq(O);g.hr(c);J++;if(J>=5)return g.hr(Error("Failed to fetch attestation challenge after "+(J+" attempts; not retrying for 24h."))),pc(z,864E5),O.return({challenge:"",zE:{},xP:void 0,bgChallenge:void 0});W=1E3*Math.pow(2,J-1)+Math.random()*1E3;return O.return(new Promise(function(G){g.mV(0, +function(){G(Ik(z,J))},W)})); +case 3:l=Number(E.t)||7200;pc(z,l*1E3);w=void 0;if(!("c1a"in E&&e.bgChallenge)){O.U2(10);break}q=lJu(e.bgChallenge);g.Yu(O,11);return g.S(O,fS(SB(),q),13);case 13:g.aq(O,12);break;case 11:return d=g.Kq(O),g.hr(d),O.return({challenge:T,zE:E,xP:w,bgChallenge:q});case 12:return g.Yu(O,14),w=new aZ({challenge:q,No:{Dc:"aGIf"}}),g.S(O,w.rR,16);case 16:g.aq(O,10);break;case 14:I=g.Kq(O),g.hr(I),w=void 0;case 10:return O.return({challenge:T,zE:E,xP:w,bgChallenge:q})}})}; +dY=function(z,J){var m;return g.D(function(e){m=z.T;if(!m||m.O9())return e.return(dY(z.network,J));kd("att_pna",void 0,"attestation_challenge_fetch");return e.return(new Promise(function(T){m.bT("publicytnetworkstatus-online",function(){dY(z.network,J).then(T)})}))})}; +pKu=function(z){if(!z)throw Error("Fetching Attestation challenge returned falsy");if(!z.challenge)throw Error("Missing Attestation challenge");var J=z.challenge,m=c2(J);if("c1a"in m&&(!z.bgChallenge||!z.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},z,{yu6:J,Hch:m})}; +Ogu=function(z,J){var m,e,T,E,Z;return g.D(function(c){switch(c.K){case 1:m=void 0,e=0,T={};case 2:if(!(e<5)){c.U2(4);break}if(!(e>0)){c.U2(5);break}T.IJ=1E3*Math.pow(2,e-1)+Math.random()*1E3;return g.S(c,new Promise(function(W){return function(l){g.mV(0,function(){l(void 0)},W.IJ)}}(T)),5); +case 5:return g.Yu(c,7),g.S(c,dY(z,J),9);case 9:return E=c.T,c.return(pKu(E));case 7:m=Z=g.Kq(c),Z instanceof Error&&g.hr(Z);case 8:e++;T={IJ:void 0};c.U2(2);break;case 4:throw m;}})}; +IJ4=function(z,J){z.K=J}; +yN4=function(z){var J,m,e;return g.D(function(T){if(T.K==1)return g.S(T,Promise.race([z.K,null]),2);J=T.T;var E=Ik(z);z.K=E;(m=J)==null||(e=m.xP)==null||e.dispose();g.nq(T)})}; +pc=function(z,J){function m(){var T;return g.D(function(E){T=e-Date.now();return T<1E3?g.S(E,yN4(z),0):(J8(m,0,Math.min(T,6E4)),E.U2(0))})} +var e=Date.now()+J;m()}; +N$z=function(z,J){return new Promise(function(m){g.mV(0,function(){m(J())},z)})}; +g.GQE=function(z,J){var m;return g.D(function(e){var T=g.Hq("yt.aba.att");return(m=T?T:OO.instance!==void 0?OO.instance.S.bind(OO.instance):null)?e.return(m("ENGAGEMENT_TYPE_PLAYBACK",z,J)):e.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; +g.XKu=function(){var z;return(z=(z=g.Hq("yt.aba.att2"))?z:OO.instance!==void 0?OO.instance.U.bind(OO.instance):null)?z():Promise.resolve(!1)}; +Y6u=function(z,J){var m=g.Hq("ytDebugData.callbacks");m||(m={},g.tu("ytDebugData.callbacks",m));if(g.CH("web_dd_iu")||nwu.includes(z))m[z]=J}; +yJ=function(){var z=CEb;var J=J===void 0?[]:J;var m=m===void 0?[]:m;J=Ysb.apply(null,[CSR.apply(null,g.X(J))].concat(g.X(m)));this.store=KSs(z,void 0,J)}; +g.NT=function(z,J,m){for(var e=Object.assign({},z),T=g.y(Object.keys(J)),E=T.next();!E.done;E=T.next()){E=E.value;var Z=z[E],c=J[E];if(c===void 0)delete e[E];else if(Z===void 0)e[E]=c;else if(Array.isArray(c)&&Array.isArray(Z))e[E]=m?[].concat(g.X(Z),g.X(c)):c;else if(!Array.isArray(c)&&g.QR(c)&&!Array.isArray(Z)&&g.QR(Z))e[E]=g.NT(Z,c,m);else if(typeof c===typeof Z)e[E]=c;else return J=new g.vR("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:E,MnW:Z,updateValue:c}),g.jk(J), +z}return e}; +GU=function(z){var J=this;z=z===void 0?[]:z;this.Eu=[];this.LA=this.A8=0;this.q6=void 0;this.totalLength=0;z.forEach(function(m){J.append(m)})}; +aJz=function(z,J){return z.Eu.length===0?!1:(z=z.Eu[z.Eu.length-1])&&z.buffer===J.buffer&&z.byteOffset+z.length===J.byteOffset}; +X9=function(z,J){J=g.y(J.Eu);for(var m=J.next();!m.done;m=J.next())z.append(m.value)}; +nc=function(z,J,m){return z.split(J).Li.split(m).NJ}; +Y7=function(z){z.q6=void 0;z.A8=0;z.LA=0}; +Cc=function(z,J,m){z.isFocused(J);return J-z.LA+m<=z.Eu[z.A8].length}; +Ktj=function(z){if(!z.q6){var J=z.Eu[z.A8];z.q6=new DataView(J.buffer,J.byteOffset,J.length)}return z.q6}; +ak=function(z,J,m){z=z.cz(J===void 0?0:J,m===void 0?-1:m);J=new Uint8Array(z.length);try{J.set(z)}catch(e){for(m=0;m>10;E=56320|E&1023}S6[T++]=E}}E=String.fromCharCode.apply(String,S6); +T<1024&&(E=E.substring(0,T));m.push(E)}return m.join("")}; +b_=function(z,J){var m;if((m=DD)==null?0:m.encodeInto)return J=DD.encodeInto(z,J),J.read>6|192:((T&64512)===55296&&e+1>18|240,J[m++]=T>>12&63|128):J[m++]=T>>12|224,J[m++]=T>>6&63|128),J[m++]=T&63|128)}return m}; +$7=function(z){if(DD)return DD.encode(z);var J=new Uint8Array(Math.ceil(z.length*1.2)),m=b_(z,J);J.lengthm&&(J=J.subarray(0,m));return J}; +gY=function(z){this.K=z;this.pos=0;this.T=-1}; +x7=function(z){var J=z.K.getUint8(z.pos);++z.pos;if(J<128)return J;for(var m=J&127,e=1;J>=128;)J=z.K.getUint8(z.pos),++z.pos,e*=128,m+=(J&127)*e;return m}; +MT=function(z,J){var m=z.T;for(z.T=-1;z.K.hQ(z.pos,1);){m<0&&(m=x7(z));var e=m>>3,T=m&7;if(e===J)return!0;if(e>J){z.T=m;break}m=-1;switch(T){case 0:x7(z);break;case 1:z.pos+=8;break;case 2:e=x7(z);z.pos+=e;break;case 5:z.pos+=4}}return!1}; +Av=function(z,J){if(MT(z,J))return x7(z)}; +ok=function(z,J){if(MT(z,J))return!!x7(z)}; +j6=function(z,J){if(MT(z,J)){J=x7(z);var m=z.K.cz(z.pos,J);z.pos+=J;return m}}; +hv=function(z,J){if(z=j6(z,J))return g.fc(z)}; +u_=function(z,J,m){if(z=j6(z,J))return m(new gY(new GU([z])))}; +VJ=function(z,J){for(var m=[];MT(z,J);)m.push(x7(z));return m.length?m:void 0}; +P2=function(z,J,m){for(var e=[],T;T=j6(z,J);)e.push(m(new gY(new GU([T]))));return e.length?e:void 0}; +tv=function(z,J){z=z instanceof Uint8Array?new GU([z]):z;return J(new gY(z))}; +fJ4=function(z,J,m){if(J&&m&&m.buffer===J.exports.memory.buffer){var e=J.realloc(m.byteOffset,z);if(e)return new Uint8Array(J.exports.memory.buffer,e,z)}z=J?new Uint8Array(J.exports.memory.buffer,J.malloc(z),z):new Uint8Array(z);m&&z.set(m);return z}; +DbR=function(z,J){this.Qv=J;this.pos=0;this.T=[];this.K=fJ4(z===void 0?4096:z,J);this.view=new DataView(this.K.buffer,this.K.byteOffset,this.K.byteLength)}; +H2=function(z,J){J=z.pos+J;if(!(z.K.length>=J)){for(var m=z.K.length*2;m268435455){H2(z,4);for(var m=J&1073741823,e=0;e<4;e++)z.view.setUint8(z.pos,m&127|128),m>>=7,z.pos+=1;J=Math.floor(J/268435456)}for(H2(z,4);J>127;)z.view.setUint8(z.pos,J&127|128),J>>=7,z.pos+=1;z.view.setUint8(z.pos,J);z.pos+=1}; +Rk=function(z,J,m){m!==void 0&&(UO(z,J*8),UO(z,m))}; +k7=function(z,J,m){m!==void 0&&Rk(z,J,m?1:0)}; +Lc=function(z,J,m){m!==void 0&&(UO(z,J*8+2),J=m.length,UO(z,J),H2(z,J),z.K.set(m,z.pos),z.pos+=J)}; +QJ=function(z,J,m){m!==void 0&&(bgf(z,J,Math.ceil(Math.log2(m.length*4+2)/7)),H2(z,m.length*1.2),J=b_(m,z.K.subarray(z.pos)),z.pos+J>z.K.length&&(H2(z,J),J=b_(m,z.K.subarray(z.pos))),z.pos+=J,$bq(z))}; +bgf=function(z,J,m){m=m===void 0?2:m;UO(z,J*8+2);z.T.push(z.pos);z.T.push(m);z.pos+=m}; +$bq=function(z){for(var J=z.T.pop(),m=z.T.pop(),e=z.pos-m-J;J--;){var T=J?128:0;z.view.setUint8(m++,e&127|T);e>>=7}}; +v2=function(z,J,m,e,T){m&&(bgf(z,J,T===void 0?3:T),e(z,m),$bq(z))}; +g.sO=function(z,J,m){m=new DbR(4096,m);J(m,z);return new Uint8Array(m.K.buffer,m.K.byteOffset,m.pos)}; +g.rY=function(z){var J=new gY(new GU([n0(decodeURIComponent(z))]));z=hv(J,2);J=Av(J,4);var m=gw4[J];if(typeof m==="undefined")throw z=new g.vR("Failed to recognize field number",{name:"EntityKeyHelperError",XRF:J}),g.jk(z),z;return{zO:J,entityType:m,entityId:z}}; +g.zV=function(z,J){var m=m===void 0?0:m;var e=new DbR;Lc(e,2,$7(z));z=xbR[J];if(typeof z==="undefined")throw m=new g.vR("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:J}),g.jk(m),m;Rk(e,4,z);Rk(e,5,1);J=new Uint8Array(e.K.buffer,e.K.byteOffset,e.pos);return encodeURIComponent(g.GC(J,m))}; +JZ=function(z,J,m,e){if(e===void 0)return e=Object.assign({},z[J]||{}),m=(delete e[m],e),e={},Object.assign({},z,(e[J]=m,e));var T={},E={};return Object.assign({},z,(E[J]=Object.assign({},z[J],(T[m]=e,T)),E))}; +M5f=function(z,J,m,e,T){var E=z[J];if(E==null||!E[m])return z;e=g.NT(E[m],e,T==="REPEATED_FIELDS_MERGE_OPTION_APPEND");T={};E={};return Object.assign({},z,(E[J]=Object.assign({},z[J],(T[m]=e,T)),E))}; +ANq=function(z,J){z=z===void 0?{}:z;switch(J.type){case "ENTITY_LOADED":return J.payload.reduce(function(e,T){var E,Z=(E=T.options)==null?void 0:E.persistenceOption;if(Z&&Z!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&Z!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return e;if(!T.entityKey)return g.jk(Error("Missing entity key")),e;if(T.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!T.payload)return g.jk(new g.vR("REPLACE entity mutation is missing a payload",{entityKey:T.entityKey})),e;var c=g.Sf(T.payload); +return JZ(e,c,T.entityKey,T.payload[c])}if(T.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{T=T.entityKey;try{var W=g.rY(T).entityType;c=JZ(e,W,T);break a}catch(q){if(q instanceof Error){g.jk(new g.vR("Failed to deserialize entity key",{entityKey:T,Ct:q.message}));c=e;break a}throw q;}c=void 0}return c}if(T.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!T.payload)return g.jk(new g.vR("UPDATE entity mutation is missing a payload",{entityKey:T.entityKey})),e;c=g.Sf(T.payload);var l,w;return M5f(e,c,T.entityKey, +T.payload[c],(l=T.fieldMask)==null?void 0:(w=l.mergeOptions)==null?void 0:w.repeatedFieldsMergeOption)}return e},z); +case "REPLACE_ENTITY":var m=J.payload;return JZ(z,m.entityType,m.key,m.dA);case "REPLACE_ENTITIES":return Object.keys(J.payload).reduce(function(e,T){var E=J.payload[T];return Object.keys(E).reduce(function(Z,c){return JZ(Z,T,c,E[c])},e)},z); +case "UPDATE_ENTITY":return m=J.payload,M5f(z,m.entityType,m.key,m.dA,m.Ign);default:return z}}; +mT=function(z,J,m){return z[J]?z[J][m]||null:null}; +e0=function(z){return window.Int32Array?new Int32Array(z):Array(z)}; +Nz=function(z){g.h.call(this);this.counter=[0,0,0,0];this.T=new Uint8Array(16);this.K=16;if(!owR){var J,m=new Uint8Array(256),e=new Uint8Array(256);var T=1;for(J=0;J<256;J++)m[T]=J,e[J]=T,T^=T<<1^(T>>7&&283);TV=new Uint8Array(256);Ef=e0(256);Of=e0(256);pF=e0(256);y_=e0(256);for(var E=0;E<256;E++){T=E?e[255^m[E]]:0;T^=T<<1^T<<2^T<<3^T<<4;T=T&255^T>>>8^99;TV[E]=T;J=T<<1^(T>>7&&283);var Z=J^T;Ef[E]=J<<24|T<<16|T<<8|Z;Of[E]=Z<<24|Ef[E]>>>8;pF[E]=T<<24|Of[E]>>>8;y_[E]=T<<24|pF[E]>>>8}owR=!0}T=e0(44);for(m= +0;m<4;m++)T[m]=z[4*m]<<24|z[4*m+1]<<16|z[4*m+2]<<8|z[4*m+3];for(e=1;m<44;m++)z=T[m-1],m%4||(z=(TV[z>>16&255]^e)<<24|TV[z>>8&255]<<16|TV[z&255]<<8|TV[z>>>24],e=e<<1^(e>>7&&283)),T[m]=T[m-4]^z;this.key=T}; +GV=function(z,J){for(var m=0;m<4;m++)z.counter[m]=J[m*4]<<24|J[m*4+1]<<16|J[m*4+2]<<8|J[m*4+3];z.K=16}; +jxb=function(z){for(var J=z.key,m=z.counter[0]^J[0],e=z.counter[1]^J[1],T=z.counter[2]^J[2],E=z.counter[3]^J[3],Z=3;Z>=0&&!(z.counter[Z]=-~z.counter[Z]);Z--);for(var c,W,l=4;l<40;)Z=Ef[m>>>24]^Of[e>>16&255]^pF[T>>8&255]^y_[E&255]^J[l++],c=Ef[e>>>24]^Of[T>>16&255]^pF[E>>8&255]^y_[m&255]^J[l++],W=Ef[T>>>24]^Of[E>>16&255]^pF[m>>8&255]^y_[e&255]^J[l++],E=Ef[E>>>24]^Of[m>>16&255]^pF[e>>8&255]^y_[T&255]^J[l++],m=Z,e=c,T=W;z=z.T;Z=J[40];z[0]=TV[m>>>24]^Z>>>24;z[1]=TV[e>>16&255]^Z>>16&255;z[2]=TV[T>>8&255]^ +Z>>8&255;z[3]=TV[E&255]^Z&255;Z=J[41];z[4]=TV[e>>>24]^Z>>>24;z[5]=TV[T>>16&255]^Z>>16&255;z[6]=TV[E>>8&255]^Z>>8&255;z[7]=TV[m&255]^Z&255;Z=J[42];z[8]=TV[T>>>24]^Z>>>24;z[9]=TV[E>>16&255]^Z>>16&255;z[10]=TV[m>>8&255]^Z>>8&255;z[11]=TV[e&255]^Z&255;Z=J[43];z[12]=TV[E>>>24]^Z>>>24;z[13]=TV[m>>16&255]^Z>>16&255;z[14]=TV[e>>8&255]^Z>>8&255;z[15]=TV[T&255]^Z&255}; +Yr=function(){if(!Xo&&!g.s0){if(nF)return nF;var z;nF=(z=window.crypto)==null?void 0:z.subtle;var J,m,e;if(((J=nF)==null?0:J.importKey)&&((m=nF)==null?0:m.sign)&&((e=nF)==null?0:e.encrypt))return nF;nF=void 0}}; +g.CF=function(z){this.U=z}; +g.a6=function(z){this.T=z}; +KF=function(z){this.Z=new Uint8Array(64);this.S=new Uint8Array(64);this.U=0;this.Y=new Uint8Array(64);this.T=0;this.Z.set(z);this.S.set(z);for(z=0;z<64;z++)this.Z[z]^=92,this.S[z]^=54;this.reset()}; +hyu=function(z,J,m){for(var e=z.V,T=z.K[0],E=z.K[1],Z=z.K[2],c=z.K[3],W=z.K[4],l=z.K[5],w=z.K[6],q=z.K[7],d,I,O,G=0;G<64;)G<16?(e[G]=O=J[m]<<24|J[m+1]<<16|J[m+2]<<8|J[m+3],m+=4):(d=e[G-2],I=e[G-15],O=e[G-7]+e[G-16]+((d>>>17|d<<15)^(d>>>19|d<<13)^d>>>10)+((I>>>7|I<<25)^(I>>>18|I<<14)^I>>>3),e[G]=O),d=q+BB[G]+O+((W>>>6|W<<26)^(W>>>11|W<<21)^(W>>>25|W<<7))+(W&l^~W&w),I=((T>>>2|T<<30)^(T>>>13|T<<19)^(T>>>22|T<<10))+(T&E^T&Z^E&Z),q=d+I,c+=d,G++,G<16?(e[G]=O=J[m]<<24|J[m+1]<<16|J[m+2]<<8|J[m+3],m+=4):(d= +e[G-2],I=e[G-15],O=e[G-7]+e[G-16]+((d>>>17|d<<15)^(d>>>19|d<<13)^d>>>10)+((I>>>7|I<<25)^(I>>>18|I<<14)^I>>>3),e[G]=O),d=w+BB[G]+O+((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))+(c&W^~c&l),I=((q>>>2|q<<30)^(q>>>13|q<<19)^(q>>>22|q<<10))+(q&T^q&E^T&E),w=d+I,Z+=d,G++,G<16?(e[G]=O=J[m]<<24|J[m+1]<<16|J[m+2]<<8|J[m+3],m+=4):(d=e[G-2],I=e[G-15],O=e[G-7]+e[G-16]+((d>>>17|d<<15)^(d>>>19|d<<13)^d>>>10)+((I>>>7|I<<25)^(I>>>18|I<<14)^I>>>3),e[G]=O),d=l+BB[G]+O+((Z>>>6|Z<<26)^(Z>>>11|Z<<21)^(Z>>>25|Z<<7))+(Z&c^ +~Z&W),I=((w>>>2|w<<30)^(w>>>13|w<<19)^(w>>>22|w<<10))+(w&q^w&T^q&T),l=d+I,E+=d,G++,G<16?(e[G]=O=J[m]<<24|J[m+1]<<16|J[m+2]<<8|J[m+3],m+=4):(d=e[G-2],I=e[G-15],O=e[G-7]+e[G-16]+((d>>>17|d<<15)^(d>>>19|d<<13)^d>>>10)+((I>>>7|I<<25)^(I>>>18|I<<14)^I>>>3),e[G]=O),d=W+BB[G]+O+((E>>>6|E<<26)^(E>>>11|E<<21)^(E>>>25|E<<7))+(E&Z^~E&c),I=((l>>>2|l<<30)^(l>>>13|l<<19)^(l>>>22|l<<10))+(l&w^l&q^w&q),O=q,q=c,c=O,O=w,w=Z,Z=O,O=l,l=E,E=O,W=T+d,T=d+I,G++;z.K[0]=T+z.K[0]|0;z.K[1]=E+z.K[1]|0;z.K[2]=Z+z.K[2]|0;z.K[3]= +c+z.K[3]|0;z.K[4]=W+z.K[4]|0;z.K[5]=l+z.K[5]|0;z.K[6]=w+z.K[6]|0;z.K[7]=q+z.K[7]|0}; +V51=function(z){var J=new Uint8Array(32),m=64-z.T;z.T>55&&(m+=64);var e=new Uint8Array(m);e[0]=128;for(var T=z.U*8,E=1;E<9;E++){var Z=T%256;e[m-E]=Z;T=(T-Z)/256}z.update(e);for(m=0;m<8;m++)J[m*4]=z.K[m]>>>24,J[m*4+1]=z.K[m]>>>16&255,J[m*4+2]=z.K[m]>>>8&255,J[m*4+3]=z.K[m]&255;uPu(z);return J}; +uPu=function(z){z.K=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];z.V=[];z.V.length=64;z.U=0;z.T=0}; +PEq=function(z){this.K=z}; +t5f=function(z,J,m){z=new KF(z.K);z.update(J);z.update(m);J=V51(z);z.update(z.Z);z.update(J);J=V51(z);z.reset();return J}; +Hgq=function(z){this.T=z}; +Ubb=function(z,J,m,e){var T,E,Z;return g.D(function(c){switch(c.K){case 1:if(z.K){c.U2(2);break}return g.S(c,e.importKey("raw",z.T,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:z.K=c.T;case 2:return T=new Uint8Array(J.length+m.length),T.set(J),T.set(m,J.length),E={name:"HMAC",hash:"SHA-256"},g.S(c,e.sign(E,z.K,T),4);case 4:return Z=c.T,c.return(new Uint8Array(Z))}})}; +Ryu=function(z,J,m){z.S||(z.S=new PEq(z.T));return t5f(z.S,J,m)}; +kQz=function(z,J,m){var e,T;return g.D(function(E){if(E.K==1){e=Yr();if(!e)return E.return(Ryu(z,J,m));g.Yu(E,3);return g.S(E,Ubb(z,J,m,e),5)}if(E.K!=3)return E.return(E.T);T=g.Kq(E);g.hr(T);Xo=!0;return E.return(Ryu(z,J,m))})}; +Qxb=function(z){for(var J="",m=0;m=1?z[z.length-1]:null;for(var e=g.y(z),T=e.next();!T.done;T=e.next())if(T=T.value,T.width&&T.height&&(m&&T.width>=J||!m&&T.height>=J))return T;for(J=z.length-1;J>=0;J--)if(m&&z[J].width||!m&&z[J].height)return z[J];return z[0]}; +fF=function(){this.state=1;this.xP=null;this.qA=void 0}; +idq=function(z,J,m,e,T,E){var Z=Z===void 0?"trayride":Z;m?(z.f1(2),g.w$(m,function(){if(window[Z])FKq(z,e,Z,T);else{z.f1(3);var c=Gob(m),W=document.getElementById(c);W&&(yjR(c),W.parentNode.removeChild(W));g.hr(new g.vR("BL:ULB",""+m))}},E)):J?(E=g.EX("SCRIPT"),J instanceof UW?(E.textContent=Rr(J),kX(E)):E.textContent=J,E.nonce=H5(document),document.head.appendChild(E),document.head.removeChild(E),window[Z]?FKq(z,e,Z,T):(z.f1(4),g.hr(new g.vR("BL:ULBJ")))):g.hr(new g.vR("BL:ULV"))}; +FKq=function(z,J,m,e){z.f1(5);var T=!!z.qA&&cr1.includes(g.H1(z.qA)||"");try{var E=new aZ({program:J,globalName:m,No:{disable:!g.CH("att_web_record_metrics")||!g.CH("att_skip_metrics_for_cookieless_domains_ks")&&T,Dc:"aGIf"}});E.rR.then(function(){z.f1(6);e&&e(J)}); +z.Wa(E)}catch(Z){z.f1(7),Z instanceof Error&&g.hr(Z)}}; +DP=function(){var z=g.Hq("yt.abuse.playerAttLoader");return z&&["bgvma","bgvmb","bgvmc"].every(function(J){return J in z})?z:null}; +bG=function(){fF.apply(this,arguments)}; +$r=function(){}; +WKz=function(z,J,m){for(var e=!1,T=g.y(z.CB.entries()),E=T.next();!E.done;E=T.next())E=g.y(E.value).next().value,E.slotType==="SLOT_TYPE_PLAYER_BYTES"&&E.A6==="core"&&(e=!0);if(e){a:if(!m){z=g.y(z.CB.entries());for(m=z.next();!m.done;m=z.next())if(e=g.y(m.value),m=e.next().value,e=e.next().value,m.slotType==="SLOT_TYPE_IN_PLAYER"&&m.A6==="core"){m=e.layoutId;break a}m=void 0}m?J.sY(m):IU("No triggering layout ID available when attempting to mute.")}}; +gG=function(z,J){this.D4=z;this.Az=J}; +xr=function(){}; +Mz=function(){}; +wPs=function(z){g.h.call(this);var J=this;this.TB=z;this.K=new Map;AZ(this,"commandExecutorCommand",function(m,e,T){lcu(J,m.commands,e,T)}); +AZ(this,"clickTrackingParams",function(){})}; +q$u=function(z,J){AZ(z,J.Qd(),function(m,e,T){J.Jf(m,e,T)})}; +AZ=function(z,J,m){z.mF();z.K.get(J)&&g.jk(Error("Extension name "+J+" already registered"));z.K.set(J,m)}; +lcu=function(z,J,m,e){J=J===void 0?[]:J;z.mF();var T=[],E=[];J=g.y(J);for(var Z=J.next();!Z.done;Z=J.next())Z=Z.value,g.P(Z,dVb)||g.P(Z,Icu)?T.push(Z):E.push(Z);T=g.y(T);for(J=T.next();!J.done;J=T.next())o6(z,J.value,m,e);E=g.y(E);for(T=E.next();!T.done;T=E.next())o6(z,T.value,m,e)}; +o6=function(z,J,m,e){z.mF();J.loggingUrls&&Ods(z,"loggingUrls",J.loggingUrls,m,e);J=g.y(Object.entries(J));for(var T=J.next();!T.done;T=J.next()){var E=g.y(T.value);T=E.next().value;E=E.next().value;T==="openPopupAction"?z.TB.get().I_("innertubeCommand",{openPopupAction:E}):T==="confirmDialogEndpoint"?z.TB.get().I_("innertubeCommand",{confirmDialogEndpoint:E}):pPR.hasOwnProperty(T)||Ods(z,T,E,m,e)}}; +Ods=function(z,J,m,e,T){if((z=z.K.get(J))&&typeof z==="function")try{z(m,e,T)}catch(E){g.jk(E)}else J=new g.vR("Unhandled field",J),g.hr(J)}; +j0=function(z,J,m){this.md=z;this.K=J;this.Zn=m;yr1(this.K)&&Mb(hN(),{Y2:EBq,Ae:Tfq})}; +hZ=function(z){this.value=z}; +uG=function(z){this.value=z}; +V_=function(z){this.value=z}; +PB=function(z){this.value=z}; +tZ=function(z){this.value=z}; +HB=function(z){this.value=z}; +Uf=function(z){this.value=z}; +R6=function(){hZ.apply(this,arguments)}; +kr=function(z){this.value=z}; +LF=function(z){this.value=z}; +Q_=function(z){this.value=z}; +vB=function(z){this.value=z}; +sf=function(z){this.value=z}; +rG=function(z){this.value=z}; +zS=function(z){this.value=z}; +JT=function(z){this.value=z}; +mj=function(z){this.value=z}; +eS=function(z){this.value=z}; +TS=function(){hZ.apply(this,arguments)}; +Er=function(z){this.value=z}; +ZS=function(z){this.value=z}; +FJ=function(z){this.value=z}; +iR=function(z){this.value=z}; +ce=function(z){this.value=z}; +We=function(z){this.value=z}; +lR=function(z){this.value=z}; +wO=function(z){this.value=z}; +qk=function(z){this.value=z}; +dO=function(z){this.value=z}; +Il=function(z){this.value=z}; +Or=function(z){this.value=z}; +pK=function(z){this.value=z}; +yk=function(z){this.value=z}; +Nk=function(z){this.value=z}; +GS=function(z){this.value=z}; +XJ=function(z){this.value=z}; +nK=function(z){this.value=z}; +Y$=function(z){this.value=z}; +CK=function(z){this.value=z}; +al=function(z){this.value=z}; +KK=function(z){this.value=z}; +Be=function(z){this.value=z}; +SS=function(z){this.value=z}; +fK=function(z){this.value=z}; +DS=function(z){this.value=z}; +bR=function(z){this.value=z}; +$$=function(z){this.value=z}; +gO=function(z){this.value=z}; +x$=function(z){this.value=z}; +Mk=function(z){this.value=z}; +AT=function(z){this.value=z}; +ol=function(z){this.value=z}; +jS=function(z){this.value=z}; +hT=function(z){this.value=z}; +uR=function(z){this.value=z}; +Vk=function(z){this.value=z}; +Pe=function(z){this.value=z}; +tT=function(){hZ.apply(this,arguments)}; +He=function(z){this.value=z}; +Ur=function(){hZ.apply(this,arguments)}; +Rl=function(){hZ.apply(this,arguments)}; +k$=function(){hZ.apply(this,arguments)}; +LK=function(){hZ.apply(this,arguments)}; +Qk=function(){hZ.apply(this,arguments)}; +ve=function(z){this.value=z}; +sr=function(z){this.value=z}; +rO=function(z){this.value=z}; +z_=function(z){this.value=z}; +Jk=function(z){this.value=z}; +eP=function(z,J,m){if(m&&!m.includes(z.layoutType))return!1;J=g.y(J);for(m=J.next();!m.done;m=J.next())if(!mG(z.clientMetadata,m.value))return!1;return!0}; +T_=function(){return""}; +Nfu=function(z,J){switch(z){case "TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL":return 0;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED":return 1;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED":return 2;case "TRIGGER_CATEGORY_SLOT_EXPIRATION":return 3;case "TRIGGER_CATEGORY_SLOT_FULFILLMENT":return 4;case "TRIGGER_CATEGORY_SLOT_ENTRY":return 5;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED":return 6;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED":return 7;default:return J(z),8}}; +Eq=function(z,J,m,e){e=e===void 0?!1:e;O1.call(this,z);this.rq=m;this.nH=e;this.args=[];J&&this.args.push(J)}; +L=function(z,J,m,e){e=e===void 0?!1:e;O1.call(this,z);this.rq=m;this.nH=e;this.args=[];J&&this.args.push(J)}; +Zj=function(z){var J=new Map;z.forEach(function(m){J.set(m.getType(),m)}); +this.K=J}; +mG=function(z,J){return z.K.has(J)}; +FB=function(z,J){z=z.K.get(J);if(z!==void 0)return z.get()}; +iU=function(z){return Array.from(z.K.keys())}; +c9=function(z,J,m){if(m&&m!==z.slotType)return!1;J=g.y(J);for(m=J.next();!m.done;m=J.next())if(!mG(z.clientMetadata,m.value))return!1;return!0}; +XPu=function(z){var J;return((J=GMq.get(z))==null?void 0:J.Tl)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; +lU=function(z,J){var m={type:J.slotType,controlFlowManagerLayer:nBq.get(J.A6)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};J.slotEntryTrigger&&(m.entryTriggerType=J.slotEntryTrigger.triggerType);J.slotPhysicalPosition!==1&&(m.slotPhysicalPosition=J.slotPhysicalPosition);if(z){m.debugData={slotId:J.slotId};if(z=J.slotEntryTrigger)m.debugData.slotEntryTriggerData=W9(z);z=J.slotFulfillmentTriggers;m.debugData.fulfillmentTriggerData=[];z=g.y(z);for(var e=z.next();!e.done;e=z.next())m.debugData.fulfillmentTriggerData.push(W9(e.value)); +J=J.slotExpirationTriggers;m.debugData.expirationTriggerData=[];J=g.y(J);for(z=J.next();!z.done;z=J.next())m.debugData.expirationTriggerData.push(W9(z.value))}return m}; +Y$q=function(z,J){var m={type:J.layoutType,controlFlowManagerLayer:nBq.get(J.A6)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};z&&(m.debugData={layoutId:J.layoutId});return m}; +W9=function(z,J){var m={type:z.triggerType};J!=null&&(m.category=J);z.triggeringSlotId!=null&&(m.triggerSourceData||(m.triggerSourceData={}),m.triggerSourceData.associatedSlotId=z.triggeringSlotId);z.triggeringLayoutId!=null&&(m.triggerSourceData||(m.triggerSourceData={}),m.triggerSourceData.associatedLayoutId=z.triggeringLayoutId);return m}; +Cc1=function(z,J,m,e){J={opportunityType:J};z&&(e||m)&&(e=g.Ch(e||[],function(T){return lU(z,T)}),J.debugData=Object.assign({},m&&m.length>0?{associatedSlotId:m}:{},e.length>0?{slots:e}:{})); +return J}; +qP=function(z,J){return function(m){return acq(wv(z),J.slotId,J.slotType,J.slotPhysicalPosition,J.A6,J.slotEntryTrigger,J.slotFulfillmentTriggers,J.slotExpirationTriggers,m.layoutId,m.layoutType,m.A6)}}; +acq=function(z,J,m,e,T,E,Z,c,W,l,w){return{adClientDataEntry:{slotData:lU(z,{slotId:J,slotType:m,slotPhysicalPosition:e,A6:T,slotEntryTrigger:E,slotFulfillmentTriggers:Z,slotExpirationTriggers:c,clientMetadata:new Zj([])}),layoutData:Y$q(z,{layoutId:W,layoutType:l,A6:w,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],NT:[],wE:new Map,clientMetadata:new Zj([]),qd:{}})}}}; +IG=function(z){this.Kh=z;z=Math.random();var J=this.Kh.get();J=g.dv(J.G.W().experiments,"html5_debug_data_log_probability");J=Number.isFinite(J)&&J>=0&&J<=1?J:0;this.K=z1){g.hr(new g.vR("Exit already started",{current:z.currentState}));var m=!1}else m=!0;if(!m)return!1;z.currentState=2;z.K=J;return!0}; +Gk=function(z){if(z.currentState!==2)return!1;z.currentState=3;return!0}; +JLz=function(z,J){var m=new Map;z=g.y(z);for(var e=z.next();!e.done;e=z.next()){e=e.value;if(e.layoutType==="LAYOUT_TYPE_MEDIA")var T="v";else e.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(T=FB(e.clientMetadata,"metadata_type_linked_in_player_layout_type"),T=T==="LAYOUT_TYPE_ENDCAP"||T==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":T==="LAYOUT_TYPE_SURVEY"?"s":T==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):T="u";m.set(e.layoutId,T);if(T==="u"){var E={};T=J;e=(E.c=e.layoutId,E);T.G.ph("uct",e)}}z= +J.vU();XQ={contentCpn:z,pS:m};e={};m=(e.ct=m.size,e.c=z,e);J.G.ph("acc",m)}; +moq=function(){XQ={contentCpn:"",pS:new Map}}; +nG=function(z){var J;return(J=XQ.pS.get(z))!=null?J:"u"}; +Yy=function(z,J,m){z.G.ph(J,m);eos(z)}; +T9z=function(z){var J=z.layoutId,m=z.nj;if(z.Jz){var e={};Yy(z.md,"slso",(e.ec=J,e.is=m,e.ctp=nG(J),e))}}; +CG=function(z){var J=z.layoutId,m=z.nj;if(z.Jz){var e={};Yy(z.md,"slse",(e.ec=J,e.is=m,e.ctp=nG(J),e))}}; +EEq=function(z){var J=z.layoutId,m=z.nj,e=z.md;z.Jz&&(z={},Yy(e,"sleo",(z.xc=J,z.is=m,z.ctp=nG(J),z)),eos(e))}; +ZOs=function(z){var J=z.cpn,m=z.md;z=z.nj;var e=m.vU(),T={};Yy(m,"ce",(T.ec=J,T.ia=J!==e,T.r=XQ.pS.has(J),T.is=z,T.ctp=nG(J),T))}; +eos=function(z){if(z.vU()!==XQ.contentCpn){var J={};J=(J.c=XQ.contentCpn,J);z.G.ph("ccm",J)}}; +FkR=function(z){var J=z.cpn,m=z.md;z=z.nj;var e=m.vU(),T={};Yy(m,"cx",(T.xc=J,T.ia=J!==e,T.r=XQ.pS.has(J),T.is=z,T.ctp=nG(J),T))}; +iOs=function(z){this.params=z;this.K=new Set}; +cLf=function(z,J,m){if(!z.K.has(J)){z.K.add(J);var e={};z.params.Df.fq(J,Object.assign({},m,(e.p_ac=z.params.adCpn,e.p_isv=z.params.fdf&&z.params.HA,e)))}}; +KG=function(z,J,m){if(aB(z.params.Df.Kh.get(),!0)){var e=m.flush,T={};cLf(z,J,(T.cts=m.currentTimeSec,T.f=e,T))}}; +Wkq=function(z,J){this.md=z;this.Kh=J}; +BQ=function(z){var J=[];if(z){z=g.y(Object.entries(z));for(var m=z.next();!m.done;m=z.next()){var e=g.y(m.value);m=e.next().value;e=e.next().value;e!==void 0&&(e=typeof e==="boolean"?""+ +e:(""+e).replace(/[:,=]/g,"_"),J.push(m+"."+e))}}return J.join(";")}; +Sl=function(z,J,m){J=J===void 0?{}:J;this.errorCode=z;this.details=J;this.severity=m===void 0?0:m}; +fG=function(z){return z===1||z===2}; +Dk=function(z,J){J=J===void 0?0:J;if(z instanceof Sl)return z;z=z&&z instanceof Error?z:Error(""+z);fG(J)?g.jk(z):g.hr(z);return new Sl(J===1?"player.fatalexception":"player.exception",{name:""+z.name,message:""+z.message},J)}; +lC4=function(z,J){function m(){var e=g.gu.apply(0,arguments);z.removeEventListener("playing",m);J.apply(null,g.X(e))} +z.addEventListener("playing",m)}; +bO=function(){var z=g.Hq("yt.player.utils.videoElement_");z||(z=g.EX("VIDEO"),g.tu("yt.player.utils.videoElement_",z));return z}; +$y=function(z){var J=bO();return!!(J&&J.canPlayType&&J.canPlayType(z))}; +MO=function(z){if(/opus/.test(z)&&g.gS&&!SZ("38")&&!g.LH())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(z);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(z);if(/webm/.test(z)&&!plf())return!1;z==='audio/mp4; codecs="mp4a.40.2"'&&(z='video/mp4; codecs="avc1.4d401f"');return!!$y(z)}; +wy1=function(z){try{var J=MO('video/mp4; codecs="avc1.42001E"')||MO('video/webm; codecs="vp9"');return(MO('audio/mp4; codecs="mp4a.40.2"')||MO('audio/webm; codecs="opus"'))&&(J||!z)||$y('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(m){return"html5.missingapi"}}; +A7=function(){var z=bO();return!(!z.webkitSupportsPresentationMode||typeof z.webkitSetPresentationMode!=="function")}; +oB=function(){var z=bO();try{var J=z.muted;z.muted=!J;return z.muted!==J}catch(m){}return!1}; +qx1=function(){var z;return((z=navigator.connection)==null?void 0:z.type)||""}; +g.jl=function(){bM.apply(this,arguments)}; +h7=function(z,J,m,e,T,E,Z){this.sampleRate=z===void 0?0:z;this.numChannels=J===void 0?0:J;this.spatialAudioType=m===void 0?"SPATIAL_AUDIO_TYPE_NONE":m;this.K=e===void 0?!1:e;this.S=T===void 0?0:T;this.T=E===void 0?0:E;this.audioQuality=Z===void 0?"AUDIO_QUALITY_UNKNOWN":Z}; +PQ=function(z,J,m,e,T,E,Z,c,W){this.width=z;this.height=J;this.quality=E||uO(z,J);this.qualityOrdinal=g.VD[this.quality];this.fps=m||0;this.stereoLayout=!T||e!=null&&e!=="UNKNOWN"&&e!=="RECTANGULAR"?0:T;this.projectionType=e?e==="EQUIRECTANGULAR"&&T===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":e:"UNKNOWN";(z=Z)||(z=g.VD[this.quality],z===0?z="Auto":(J=this.fps,m=this.projectionType,z=z.toString()+(m==="EQUIRECTANGULAR"||m==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||m==="MESH"?"s":"p")+(J>55?"60":J>49?"50": +J>39?"48":"")));this.qualityLabel=z;this.K=c||"";this.primaries=W||""}; +uO=function(z,J){var m=Math.max(z,J);z=Math.min(z,J);J=t7[0];for(var e=0;e=Math.floor(E*16/9)*1.3||z>=E*1.3)return J;J=T}return"tiny"}; +RB=function(z,J,m){m=m===void 0?{}:m;this.id=z;this.mimeType=J;m.RT>0||(m.RT=16E3);Object.assign(this,m);z=g.y(this.id.split(";"));this.itag=z.next().value;this.K=z.next().value;this.containerType=HQ(J);this.rb=Ue[this.itag]||""}; +ky=function(z){return z.rb==="9"||z.rb==="("||z.rb==="9h"||z.rb==="(h"}; +doE=function(z){return z.rb==="H"||z.rb==="h"}; +LG=function(z){return z.rb==="9h"||z.rb==="(h"}; +IC1=function(z){return!!z.Nx&&!!z.Nx.fairplay&&(z.rb==="("||z.rb==="(h"||z.rb==="A"||z.rb==="MEAC3")||QD&&!!z.Nx&&z.rb==="1e"}; +vQ=function(z){return z.rb==="1"||z.rb==="1h"||QD&&z.rb==="1e"}; +se=function(z){return z.rb==="mac3"||z.rb==="meac3"||z.rb==="m"||z.rb==="i"}; +rS=function(z){return z.rb==="MAC3"||z.rb==="MEAC3"||z.rb==="M"||z.rb==="I"}; +g.z1=function(z){return z.containerType===1}; +OOq=function(z){return z.rb==="("||z.rb==="(h"||z.rb==="H"||QD&&z.rb==="1e"}; +Jo=function(z){return z.mimeType==="application/x-mpegURL"}; +g.m9=function(z,J){return{itag:+z.itag,lmt:J?0:z.lastModified,xtags:z.K||""}}; +pyq=function(z){var J=navigator.mediaCapabilities;if(J==null||!J.decodingInfo||z.rb==="f")return Promise.resolve();var m={type:z.audio&&z.video?"file":"media-source"};z.video&&(m.video={contentType:z.mimeType,width:z.video.width||640,height:z.video.height||360,bitrate:z.RT*8||1E6,framerate:z.video.fps||30});z.audio&&(m.audio={contentType:z.mimeType,channels:""+(z.audio.numChannels||2),bitrate:z.RT*8||128E3,samplerate:z.audio.sampleRate||44100});return J.decodingInfo(m).then(function(e){z.T=e})}; +ei=function(z){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(z)}; +T1=function(z){return/(vp9|vp09|vp8|avc1|av01)/.test(z)}; +E2=function(z){return z.includes("vtt")||z.includes("text/mp4")}; +HQ=function(z){return z.indexOf("/mp4")>=0?1:z.indexOf("/webm")>=0?2:z.indexOf("/x-flv")>=0?3:z.indexOf("/vtt")>=0?4:0}; +ZU=function(z,J,m,e,T,E){var Z=new h7;J in g.VD||(J="small");J==="light"&&(J="tiny");e&&T?(T=Number(T),e=Number(e)):(T=g.VD[J],e=Math.round(T*16/9));E=new PQ(e,T,0,null,void 0,J,E);z=unescape(z.replace(/"/g,'"'));return new RB(m,z,{audio:Z,video:E})}; +Fz=function(z){var J="id="+z.id;z.video&&(J+=", res="+z.video.qualityLabel);var m,e;return J+", byterate=("+((m=z.N7)==null?void 0:m.toFixed(0))+", "+((e=z.RT)==null?void 0:e.toFixed(0))+")"}; +i1=function(z,J){return{start:function(m){return z[m]}, +end:function(m){return J[m]}, +length:z.length}}; +yLs=function(z,J,m){for(var e=[],T=[],E=0;E=J)return m}catch(e){}return-1}; +l1=function(z,J){return Wz(z,J)>=0}; +N9q=function(z,J){if(!z)return NaN;J=Wz(z,J);return J>=0?z.start(J):NaN}; +w7=function(z,J){if(!z)return NaN;J=Wz(z,J);return J>=0?z.end(J):NaN}; +qU=function(z){return z&&z.length?z.end(z.length-1):NaN}; +d7=function(z,J){z=w7(z,J);return z>=0?z-J:0}; +Ib=function(z,J,m){for(var e=[],T=[],E=0;Em||(e.push(Math.max(J,z.start(E))-J),T.push(Math.min(m,z.end(E))-J));return i1(e,T)}; +O2=function(z,J,m,e){g.wF.call(this);var T=this;this.Ul=z;this.start=J;this.end=m;this.isActive=e;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.QV={error:function(){!T.mF()&&T.isActive&&T.publish("error",T)}, +updateend:function(){!T.mF()&&T.isActive&&T.publish("updateend",T)}}; +this.Ul.qw(this.QV);this.wx=this.isActive}; +y$=function(z,J,m,e,T,E){g.wF.call(this);var Z=this;this.Lq=z;this.pF=J;this.id=m;this.containerType=e;this.rb=T;this.HA=E;this.BD=this.WV=this.Db=null;this.GU=!1;this.appendWindowStart=this.timestampOffset=0;this.y0=i1([],[]);this.d2=!1;this.Xi=[];this.Cx=p2?[]:void 0;this.Ij=function(W){return Z.publish(W.type,Z)}; +var c;if((c=this.Lq)==null?0:c.addEventListener)this.Lq.addEventListener("updateend",this.Ij),this.Lq.addEventListener("error",this.Ij)}; +NU=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; +G1=function(z,J){this.QH=z;this.K=J===void 0?!1:J;this.T=!1}; +Xz=function(z,J,m){m=m===void 0?!1:m;g.h.call(this);this.mediaElement=z;this.J6=J;this.isView=m;this.Y=0;this.U=!1;this.Z=!0;this.B=0;this.callback=null;this.X=!1;this.J6||(this.pF=this.mediaElement.aT());this.events=new g.jl(this);g.u(this,this.events);this.S=new G1(this.J6?window.URL.createObjectURL(this.J6):this.pF.webkitMediaSourceURL,!0);z=this.J6||this.pF;$s(this.events,z,["sourceopen","webkitsourceopen"],this.Jp4);$s(this.events,z,["sourceclose","webkitsourceclose"],this.VC3);this.V={updateend:this.r8}}; +Geu=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; +Xy4=function(z,J){n2(z)?g.Ow(function(){J(z)}):z.callback=J}; +nEz=function(z,J,m){if(Y_){var e;L2(z.mediaElement,{l:"mswssb",sr:(e=z.mediaElement.H1)==null?void 0:e.Ep()},!1);J.qw(z.V,z);m.qw(z.V,z)}z.K=J;z.T=m;g.u(z,J);g.u(z,m)}; +Yxu=function(z,J,m,e){e=J.mimeType+(e===void 0?"":e);var T=m.mimeType;J=J.rb;m=m.rb;var E;z.Ry=(E=z.J6)==null?void 0:E.addSourceBuffer(T);var Z;z.fh=e.split(";")[0]==="fakesb"?void 0:(Z=z.J6)==null?void 0:Z.addSourceBuffer(e);z.pF&&(z.pF.webkitSourceAddId("0",T),z.pF.webkitSourceAddId("1",e));E=new y$(z.Ry,z.pF,"0",HQ(T),m,!1);e=new y$(z.fh,z.pF,"1",HQ(e),J,!0);nEz(z,E,e)}; +Q$=function(z){return!!z.K||!!z.T}; +n2=function(z){try{return vz(z)==="open"}catch(J){return!1}}; +vz=function(z){if(z.J6)return z.J6.readyState;switch(z.pF.webkitSourceState){case z.pF.SOURCE_OPEN:return"open";case z.pF.SOURCE_ENDED:return"ended";default:return"closed"}}; +s2=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; +CBb=function(z){n2(z)&&(z.J6?z.J6.endOfStream():z.pF.webkitSourceEndOfStream(z.pF.EOS_NO_ERROR))}; +aCR=function(z,J,m,e){if(!z.K||!z.T)return null;var T=z.K.isView()?z.K.Ul:z.K,E=z.T.isView()?z.T.Ul:z.T,Z=new Xz(z.mediaElement,z.J6,!0);Z.S=z.S;nEz(Z,new O2(T,J,m,e),new O2(E,J,m,e));n2(z)||z.K.Vc(z.K.Kr());return Z}; +Kku=function(z){var J;(J=z.K)==null||J.l0();var m;(m=z.T)==null||m.l0();z.Z=!1}; +r7=function(){var z=this;this.kf=this.yj=$fu;this.promise=new g.YV(function(J,m){z.yj=J;z.kf=m})}; +zX=function(){g.h.call(this);this.Bs=!1;this.QH=null;this.V=this.Y=!1;this.U=new g.ZB;this.H1=null;g.u(this,this.U)}; +JK=function(z){z=z.b0();return z.length<1?NaN:z.end(z.length-1)}; +B9E=function(z){!z.T&&Geu()&&(z.S?z.S.then(function(){return B9E(z)}):z.Mi()||(z.T=z.Ki()))}; +Sxf=function(z){z.T&&(z.T.dispose(),z.T=void 0)}; +L2=function(z,J,m){var e;((e=z.H1)==null?0:e.AZ())&&z.H1.ph("rms",J,m===void 0?!1:m)}; +fCz=function(z,J,m){z.isPaused()||z.getCurrentTime()>J||m>10||(z.play(),g.Np(function(){fCz(z,z.getCurrentTime(),m+1)},500))}; +Dou=function(z,J){z.QH&&z.QH.NL(J)||(z.QH&&z.QH.dispose(),z.QH=J)}; +mI=function(z){return d7(z.G2(),z.getCurrentTime())}; +bOq=function(z,J){if(z.WW()===0||z.hasError())return!1;var m=z.getCurrentTime()>0;return J>=0&&(z=z.b0(),z.length||!m)?l1(z,J):m}; +e2=function(z){z.Mi()&&(z.H1&&z.H1.b5("rs_s"),vj&&z.getCurrentTime()>0&&z.seekTo(0),z.P_(),z.load(),Dou(z,null));delete z.S}; +TX=function(z){switch(z.KF()){case 2:return"progressive.net.retryexhausted";case 3:return z=z.Cc(),(z==null?0:z.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||$oq&&(z==null?0:z.includes("audio_output_change"))?"capability.changed":"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}}; +g.E3=function(z,J,m){this.Io=J===void 0?null:J;this.seekSource=m===void 0?null:m;this.state=z||64}; +ZH=function(z,J,m){m=m===void 0?!1:m;return gEz(z,J.getCurrentTime(),(0,g.b5)(),mI(J),m)}; +Fg=function(z,J,m,e){if(!(J===z.state&&m===z.Io&&e===z.seekSource||J!==void 0&&(J&128&&!m||J&2&&J&16))){var T;if(T=J)T=J||z.state,T=!!(T&16||T&32);z=new g.E3(J,m,T?e?e:z.seekSource:null)}return z}; +ik=function(z,J,m){return Fg(z,z.state|J,null,m===void 0?null:m)}; +cr=function(z,J){return Fg(z,z.state&~J,null,null)}; +Wr=function(z,J,m,e){return Fg(z,(z.state|J)&~m,null,e===void 0?null:e)}; +g.R=function(z,J){return!!(z.state&J)}; +g.lk=function(z,J){return J.state===z.state&&J.Io===z.Io}; +wT=function(z){return z.isPlaying()&&!g.R(z,16)&&!g.R(z,32)}; +q4=function(z){return g.R(z,128)?-1:g.R(z,2)?0:g.R(z,2048)?3:g.R(z,64)?-1:g.R(z,1)&&!g.R(z,32)?3:g.R(z,8)?1:g.R(z,4)?2:-1}; +IO=function(z,J,m,e,T,E,Z,c,W,l,w,q,d,I,O,G,n){g.h.call(this);var C=this;this.Ht=z;this.slot=J;this.layout=m;this.Zn=e;this.xu=T;this.Ch=E;this.Dn=Z;this.Cr=c;this.EC=W;this.iG=l;this.position=q;this.Y=d;this.Kh=I;this.FR=O;this.UL=G;this.context=n;this.YZ=!0;this.Z=!1;this.Hr="not_rendering";this.T=!1;this.S=new yD;z=FB(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.FW=new ff(m.wE,this.Zn,z,m.layoutId);var K;z=((K=dT(this))==null?void 0:K.progressCommands)||[];this.U=new byq(W, +z,m.layoutId,function(){return C.nR()}); +this.K=new iOs({adCpn:this.layout.layoutId,Df:n.Df,fdf:this.FR,HA:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; +O3=function(z){return{layoutId:z.u0(),nj:z.FR,md:z.Ch.get(),Jz:z.LZ()}}; +p5=function(z,J){return J.layoutId!==z.layout.layoutId?(z.Ht.GG(z.slot,J,new Eq("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+z.layout.layoutId+("and LayoutType: "+z.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; +yQ=function(z){z.Hr="rendering_start_requested";z.iG(-1)}; +dT=function(z){return FB(z.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; +xob=function(z){IU("Received layout exit signal when not in layout exit flow.",z.slot,z.layout)}; +MDR=function(z){var J;return((J=N4(z.Ch.get(),2))==null?void 0:J.clientPlaybackNonce)||""}; +GX=function(z,J){switch(J){case "normal":z.jE("complete");break;case "skipped":z.jE("skip");break;case "abandoned":MQ(z.FW,"impression")&&z.jE("abandon")}}; +Xg=function(z,J){z.Z||(J=new g.Ox(J.state,new g.E3),z.Z=!0);return J}; +n5=function(z,J){dS(J)?z.iG(1):g.yK(J,4)&&!g.yK(J,2)&&z.eJ();pO(J,4)<0&&!(pO(J,2)<0)&&z.P5()}; +ALq=function(z){z.position===0&&(z.Cr.get(),z=FB(z.layout.clientMetadata,"metadata_type_ad_placement_config").kind,z={adBreakType:Yk(z)},Ph("ad_bl"),g.tR(z))}; +C5=function(z,J){go(z.FW,J,!z.T)}; +jU4=function(z){var J;return(((J=dT(z))==null?void 0:J.progressCommands)||[]).findIndex(function(m){return!!g.P(m==null?void 0:m.command,oEu)})!==-1}; +aO=function(z,J){var m=FB(z.clientMetadata,"metadata_type_eligible_for_ssap");return m===void 0?(IU("Expected SSAP eligibility in PlayerBytes factory",z),!1):J.LZ(m)}; +K5=function(z,J){if(!Q6(J.get(),"html5_ssap_pass_transition_reason"))return 3;switch(z){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return IU("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return IU("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:z}),3;default:Ei(z,"unknown layoutExitReason")}}; +hoE=function(z){IU("getExitReason: unexpected reason",void 0,void 0,{reason:z})}; +Br=function(z,J){if(Q6(J.get(),"html5_ssap_pass_transition_reason"))switch(z){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return hoE(z),"abandoned";case 3:case 1:return hoE(z),"error";default:Ei(z,"unexpected transition reason")}else switch(z){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return IU("getExitReason: unexpected reason",void 0,void 0,{reason:z}),"error";default:Ei(z,"unexpected transition reason")}}; +S2=function(z,J,m){Up(z,m)||kd(z,J,m);Up(z,"video_to_ad")||kd(z,J,"video_to_ad");Up(z,"ad_to_video")||kd(z,J,"ad_to_video");Up(z,"ad_to_ad")||kd(z,J,"ad_to_ad")}; +f5=function(z,J,m,e,T,E,Z,c,W,l,w,q,d,I,O,G,n,C){IO.call(this,z,J,m,e,T,E,Z,c,l,w,q,d,I,O,G,n,C);var K=this;this.TB=W;this.rD=q;this.Rl=!0;this.sI=this.Vn=0;this.Q6=Gw(function(){T9z(O3(K));K.Ht.zS(K.slot,K.layout)}); +this.fd=Gw(function(){EEq(O3(K));K.Hr!=="rendering_stop_requested"&&K.rD(K);K.layoutExitReason?K.Ht.QQ(K.slot,K.layout,K.layoutExitReason):xob(K)}); +this.vk=new g.DB(200);this.vk.listen("tick",function(){K.Xq()}); +g.u(this,this.vk)}; +bk=function(z){z.sI=Date.now();DH(z,z.Vn);z.vk.start()}; +uWu=function(z){z.Vn=z.nR();z.SA(z.Vn/1E3,!0);DH(z,z.Vn)}; +DH=function(z,J){J={current:J/1E3,duration:z.nR()/1E3};z.TB.get().I_("onAdPlaybackProgress",J)}; +$k=function(z){f5.call(this,z.Ht,z.slot,z.jI,z.Zn,z.xu,z.Ch,z.Dn,z.Cr,z.TB,z.EC,z.iG,z.rD,z.LJ,z.ye,z.Kh,z.FR,z.UL,z.context)}; +gT=function(z){f5.call(this,z.Ht,z.slot,z.jI,z.Zn,z.xu,z.Ch,z.Dn,z.Cr,z.TB,z.EC,z.iG,z.rD,z.LJ,z.ye,z.Kh,z.FR,z.UL,z.context)}; +xk=function(){gT.apply(this,arguments)}; +VDb=function(z){return aO(z.slot,z.Kh.get())?new xk(z):new $k(z)}; +oO=function(z){IO.call(this,z.callback,z.slot,z.jI,z.Zn,z.xu,z.Ch,z.Dn,z.Cr,z.EC,z.iG,z.rD,z.LJ,z.ye,z.Kh,z.FR,z.UL,z.context);var J=this;this.adCpn="";this.Si=this.pI=0;this.Q6=Gw(function(){T9z(O3(J));J.Ht.zS(J.slot,J.layout)}); +this.fd=Gw(function(){EEq(O3(J));J.Hr!=="rendering_stop_requested"&&J.rD(J);J.layoutExitReason?J.Ht.QQ(J.slot,J.layout,J.layoutExitReason):xob(J)}); +this.lC=z.lC;this.K1=z.K1;this.gw=z.gw;this.TB=z.TB;this.zG=z.zG;this.rD=z.rD;if(!this.LZ()){Q6(this.Kh.get(),"html5_disable_media_load_timeout")||(this.MB=new g.vl(function(){J.sH("load_timeout",new Eq("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); +z=M4(this.Kh.get());var m=AK(this.Kh.get());z&&m&&(this.uZ=new g.vl(function(){var e=FB(J.layout.clientMetadata,"metadata_type_preload_player_vars");e&&J.K1.get().G.preloadVideoByPlayerVars(e,2,300)}))}}; +tDb=function(z,J){var m=FB(J.clientMetadata,"metadata_type_ad_video_id"),e=FB(J.clientMetadata,"metadata_type_legacy_info_card_vast_extension");m&&e&&z.zG.get().G.W().Qx.add(m,{Dh:e});(J=FB(J.clientMetadata,"metadata_type_sodar_extension_data"))&&Hdj(z.lC.get(),J);PBb(z.Dn.get(),!1)}; +HOu=function(z){PBb(z.Dn.get(),!0);var J;((J=z.shrunkenPlayerBytesConfig)==null?0:J.shouldRequestShrunkenPlayerBytes)&&z.Dn.get().JT(!1)}; +j2=function(){oO.apply(this,arguments)}; +hK=function(){j2.apply(this,arguments)}; +Uof=function(z){return VDb(Object.assign({},z,{Ht:z.callback,iG:function(){}}))}; +Rob=function(z){return new oO(Object.assign({},z,{iG:function(J){z.TB.get().I_("onAdIntroStateChange",J)}}))}; +kej=function(z){function J(m){z.TB.get().WL(m)} +return aO(z.slot,z.Kh.get())?new hK(Object.assign({},z,{iG:J})):new oO(Object.assign({},z,{iG:J}))}; +uk=function(z){for(var J=z.jI,m=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],e=g.y(D3()),T=e.next();!T.done;T=e.next())m.push(T.value);if(ro(J,{El:m,wL:["LAYOUT_TYPE_MEDIA_BREAK"]}))return Uof(z);J=z.jI;m=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];e=g.y(D3());for(T=e.next();!T.done;T=e.next())m.push(T.value);if(ro(J,{El:m,wL:["LAYOUT_TYPE_MEDIA"]}))return mG(z.jI.clientMetadata,"metadata_type_ad_intro")?Rob(z):kej(z)}; +QUq=function(z){var J=FB(z.clientMetadata,"metadata_type_ad_placement_config").kind,m=FB(z.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:z.layoutId,adType:Lkq(m),adBreakType:Yk(J)}}; +Yk=function(z){switch(z){case "AD_PLACEMENT_KIND_START":return"LATENCY_AD_BREAK_TYPE_PREROLL";case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return"LATENCY_AD_BREAK_TYPE_MIDROLL";case "AD_PLACEMENT_KIND_END":return"LATENCY_AD_BREAK_TYPE_POSTROLL";default:return"LATENCY_AD_BREAK_TYPE_UNKNOWN"}}; +Lkq=function(z){switch(z){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; +vE1=function(z){try{return new VQ(z.Xr,z.slot,z.layout,z.gs,z.Mp,z.Ch,z.UD,z.K1,z.vr,z.Dn,z.BGz,z)}catch(J){}}; +VQ=function(z,J,m,e,T,E,Z,c,W,l,w,q){g.h.call(this);this.Xr=z;this.slot=J;this.layout=m;this.gs=e;this.Mp=T;this.Ch=E;this.UD=Z;this.K1=c;this.vr=W;this.Dn=l;this.params=q;this.YZ=!0;z=uk(w);if(!z)throw Error("Invalid params for sublayout");this.v7=z}; +sUb=function(){this.K=1;this.T=new yD}; +Pr=function(z,J,m,e,T,E,Z,c,W,l,w,q,d){g.h.call(this);this.callback=z;this.Ch=J;this.UD=m;this.K1=e;this.Dn=T;this.Cr=E;this.yp=Z;this.slot=c;this.layout=W;this.gs=l;this.vX=w;this.vr=q;this.Kh=d;this.YZ=!0;this.Lz=!1;this.aW=[];this.AP=-1;this.mU=!1;this.fS=new sUb}; +rLz=function(z){var J;return(J=z.layout.qQ)!=null?J:FB(z.layout.clientMetadata,"metadata_type_sub_layouts")}; +tK=function(z){return{md:z.Ch.get(),nj:!1,Jz:z.LZ()}}; +zTR=function(z,J,m){if(z.RB()===z.aW.length-1){var e,T;IU("Unexpected skip requested during the last sublayout",(e=z.PA())==null?void 0:e.FM(),(T=z.PA())==null?void 0:T.XW(),{requestingSlot:J,requestingLayout:m})}}; +JRs=function(z,J,m){return m.layoutId!==Hr(z,J,m)?(IU("onSkipRequested for a PlayerBytes layout that is not currently active",z.FM(),z.XW()),!1):!0}; +mlf=function(z){z.RB()===z.aW.length-1&&IU("Unexpected skip with target requested during the last sublayout")}; +eT1=function(z,J,m){return m.renderingContent===void 0&&m.layoutId!==Hr(z,J,m)?(IU("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",z.FM(),z.XW(),{requestingSlot:J,requestingLayout:m}),!1):!0}; +T6s=function(z,J,m,e){var T=FB(J.XW().clientMetadata,"metadata_type_ad_pod_skip_target");if(T&&T>0&&T0)){IU("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",z.slot,z.layout,{indexToPlay:J,layoutId:z.layout.layoutId});break a}z.AP=J;J=z.PA();if(z.RB()>0&&!z.LZ()){var m=z.Cr.get();m.T=!1;var e={};m.K&&m.videoId&&(e.cttAuthInfo={token:m.K,videoId:m.videoId});Hh("ad_to_ad",e)}z.f0(J)}}; +L5=function(z){Pr.call(this,z.Xr,z.Ch,z.UD,z.K1,z.Dn,z.Cr,z.yp,z.slot,z.layout,z.gs,z.vX,z.vr,z.Kh)}; +FiR=function(z){(z=z.PA())&&z.On()}; +QQ=function(z){Pr.call(this,z.Xr,z.Ch,z.UD,z.K1,z.Dn,z.Cr,z.yp,z.slot,z.layout,z.gs,z.vX,z.vr,z.Kh);this.Wk=void 0}; +iMj=function(z,J){z.qH()&&!Gk(z.fS.T)||z.callback.QQ(z.slot,z.layout,J)}; +vr=function(z){return Q6(z.Kh.get(),"html5_ssap_pass_transition_reason")}; +cRE=function(z,J,m){J.Ui().currentState<2&&(m=Br(m,z.Kh),J.Do(J.XW(),m));m=J.Ui().K;z.I9(z.slot,J.XW(),m)}; +Wiq=function(z,J){if(z.fS.T.currentState<2){var m=Br(J,z.Kh);m==="error"?z.callback.GG(z.slot,z.layout,new Eq("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:J},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):kk(z.vX,z.layout,m)}}; +s3=function(z,J,m){J.Ui().currentState>=2||(J.Do(J.XW(),m),Gk(J.Ui())&&(Dj(z.yp,z.slot,J.XW(),m),z.Wk=void 0))}; +lIE=function(z,J){z.fS.K===2&&J!==z.vU()&&IU("onClipEntered: unknown cpn",z.slot,z.layout,{cpn:J})}; +wh4=function(z,J){var m=z.PA();if(m){var e=m.XW().layoutId,T=z.RB()+1;z.qH()?s3(z,m,J):m.Do(m.XW(),J);T>=0&&TT&&Z.k0(w,T-e);return w}; +Xhb=function(z,J,m){var e=FB(J.clientMetadata,"metadata_type_sodar_extension_data");if(e)try{Hdj(m,e)}catch(T){IU("Unexpected error when loading Sodar",z,J,{error:T})}}; +ndb=function(z,J,m,e,T,E,Z){ER(z,J,new g.Ox(m,new g.E3),e,T,Z,!1,E)}; +ER=function(z,J,m,e,T,E,Z,c){Z=Z===void 0?!0:Z;dS(m)&&IB(T,0,null)&&(!MQ(z,"impression")&&c&&c(),z.jE("impression"));MQ(z,"impression")&&(g.yK(m,4)&&!g.yK(m,2)&&z.YE("pause"),pO(m,4)<0&&!(pO(m,2)<0)&&z.YE("resume"),g.yK(m,16)&&T>=.5&&z.YE("seek"),Z&&g.yK(m,2)&&Zl(z,m.state,J,e,T,E))}; +Zl=function(z,J,m,e,T,E,Z,c){MQ(z,"impression")&&(E?(E=T-e,E=E>=-1&&E<=2):E=Math.abs(e-T)<=1,Fk(z,J,E?e:T,m,e,Z,c&&E),E&&z.jE("complete"))}; +Fk=function(z,J,m,e,T,E,Z){xP(z,m*1E3,Z);T<=0||m<=0||(J==null?0:g.R(J,16))||(J==null?0:g.R(J,32))||(IB(m,T*.25,e)&&(E&&!MQ(z,"first_quartile")&&E("first"),z.jE("first_quartile")),IB(m,T*.5,e)&&(E&&!MQ(z,"midpoint")&&E("second"),z.jE("midpoint")),IB(m,T*.75,e)&&(E&&!MQ(z,"third_quartile")&&E("third"),z.jE("third_quartile")))}; +Ypz=function(z,J){MQ(z,"impression")&&z.YE(J?"fullscreen":"end_fullscreen")}; +Cq1=function(z){MQ(z,"impression")&&z.YE("clickthrough")}; +aIq=function(z){z.YE("active_view_measurable")}; +KiR=function(z){MQ(z,"impression")&&!MQ(z,"seek")&&z.YE("active_view_fully_viewable_audible_half_duration")}; +B61=function(z){MQ(z,"impression")&&!MQ(z,"seek")&&z.YE("active_view_viewable")}; +SpR=function(z){MQ(z,"impression")&&!MQ(z,"seek")&&z.YE("audio_audible")}; +fIq=function(z){MQ(z,"impression")&&!MQ(z,"seek")&&z.YE("audio_measurable")}; +Dl4=function(z,J,m,e,T,E,Z,c,W,l,w,q){this.callback=z;this.slot=J;this.layout=m;this.UD=e;this.FW=T;this.Dn=E;this.qF=Z;this.xu=c;this.lC=W;this.Kh=l;this.Zn=w;this.Ch=q;this.Rl=!0;this.P7=this.Hr=null;this.adCpn=void 0;this.K=!1}; +bMu=function(z,J,m){var e;Ti(z.Zn.get(),"ads_qua","cpn."+FB(z.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((e=N4(z.Ch.get(),2))==null?void 0:e.clientPlaybackNonce)+";qt."+J+";clr."+m)}; +$lR=function(z,J){var m,e;Ti(z.Zn.get(),"ads_imp","cpn."+FB(z.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((m=N4(z.Ch.get(),2))==null?void 0:m.clientPlaybackNonce)+";clr."+J+";skp."+!!g.P((e=FB(z.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:e.skipOrPreviewRenderer,i4))}; +cI=function(z){return{enterMs:FB(z.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:FB(z.clientMetadata,"metadata_type_layout_exit_ms")}}; +WI=function(z,J,m,e,T,E,Z,c,W,l,w,q,d,I){zi.call(this,z,J,m,e,T,Z,c,W,l,q);this.qF=E;this.lC=w;this.xu=d;this.Kh=I;this.P7=this.Hr=null}; +gdq=function(z,J){var m;Ti(z.Zn.get(),"ads_imp","acpn."+((m=N4(z.Ch.get(),2))==null?void 0:m.clientPlaybackNonce)+";clr."+J)}; +xlb=function(z,J,m){var e;Ti(z.Zn.get(),"ads_qua","cpn."+FB(z.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((e=N4(z.Ch.get(),2))==null?void 0:e.clientPlaybackNonce)+";qt."+J+";clr."+m)}; +l4=function(z,J,m,e,T,E,Z,c,W,l,w,q,d,I,O,G,n,C,K,f,x){this.vr=z;this.gs=J;this.vX=m;this.Ch=e;this.UD=T;this.Dn=E;this.Zn=Z;this.qF=c;this.KZ=W;this.xu=l;this.lC=w;this.K1=q;this.gw=d;this.Cr=I;this.TB=O;this.EC=G;this.zG=n;this.Kh=C;this.K=K;this.context=f;this.UL=x}; +wU=function(z,J,m,e,T,E,Z,c,W,l,w,q,d,I,O,G,n,C){this.vr=z;this.gs=J;this.vX=m;this.Zn=e;this.xu=T;this.lC=E;this.K1=Z;this.Ch=c;this.Dn=W;this.gw=l;this.Cr=w;this.TB=q;this.EC=d;this.zG=I;this.Kh=O;this.UD=G;this.context=n;this.UL=C}; +Mjq=function(z,J,m,e){lY.call(this,"survey-interstitial",z,J,m,e)}; +qG=function(z,J,m,e,T){X8.call(this,m,z,J,e);this.Zn=T;z=FB(J.clientMetadata,"metadata_type_ad_placement_config");this.FW=new ff(J.wE,T,z,J.layoutId)}; +dU=function(z){return Math.round(z.width)+"x"+Math.round(z.height)}; +OR=function(z,J,m){m=m===void 0?IA:m;m.widthz.width*z.height*.2)return{LM:3,v$:501,errorMessage:"ad("+dU(m)+") to container("+dU(z)+") ratio exceeds limit."};if(m.height>z.height/3-J)return{LM:3,v$:501,errorMessage:"ad("+dU(m)+") covers container("+dU(z)+") center."}}; +ARb=function(z,J){var m=FB(z.clientMetadata,"metadata_type_ad_placement_config");return new ff(z.wE,J,m,z.layoutId)}; +pu=function(z){return FB(z.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; +yP=function(z,J,m,e){lY.call(this,"invideo-overlay",z,J,m,e);this.interactionLoggingClientData=e}; +NG=function(z,J,m,e,T,E,Z,c,W,l,w,q){X8.call(this,E,z,J,T);this.Zn=m;this.U=Z;this.Dn=c;this.EC=W;this.Kh=l;this.Y=w;this.Z=q;this.FW=ARb(J,m)}; +odq=function(){var z=["metadata_type_invideo_overlay_ad_renderer"];D3().forEach(function(J){z.push(J)}); +return{El:z,wL:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; +Gi=function(z,J,m,e,T,E,Z,c,W,l,w,q,d){X8.call(this,E,z,J,T);this.Zn=m;this.U=Z;this.X=c;this.Dn=W;this.EC=l;this.Kh=w;this.Y=q;this.Z=d;this.FW=ARb(J,m)}; +jEq=function(){for(var z=["metadata_type_invideo_overlay_ad_renderer"],J=g.y(D3()),m=J.next();!m.done;m=J.next())z.push(m.value);return{El:z,wL:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; +Xk=function(z){this.Dn=z;this.K=!1}; +hTb=function(z,J,m){lY.call(this,"survey",z,{},J,m)}; +nu=function(z,J,m,e,T,E,Z){X8.call(this,m,z,J,e);this.U=T;this.Dn=E;this.Kh=Z}; +ueq=function(z,J,m,e,T,E,Z,c,W,l){this.ww=z;this.Dn=J;this.Zn=m;this.U=e;this.xu=T;this.T=E;this.S=Z;this.EC=c;this.Kh=W;this.K=l}; +Vjq=function(z,J,m,e,T,E,Z,c,W,l){this.ww=z;this.Dn=J;this.Zn=m;this.U=e;this.xu=T;this.T=E;this.S=Z;this.EC=c;this.Kh=W;this.K=l}; +Yg=function(z,J,m,e,T,E,Z,c,W,l){Ee.call(this,z,J,m,e,T,E,Z,W);this.BB=c;this.Ch=l}; +Pq1=function(){var z=L4q();z.El.push("metadata_type_ad_info_ad_metadata");return z}; +tj4=function(z,J,m,e,T,E,Z){this.ww=z;this.Dn=J;this.Zn=m;this.T=e;this.BB=T;this.K=E;this.Ch=Z}; +HMq=function(z,J,m,e,T,E,Z,c){this.ww=z;this.Dn=J;this.Zn=m;this.T=e;this.BB=T;this.K=E;this.Kh=Z;this.Ch=c}; +Cu=function(z,J){this.slotId=J;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=z(this.triggerType)}; +aA=function(z,J){this.adPodIndex=z;this.K=J.length;this.adBreakLengthSeconds=J.reduce(function(e,T){return e+T},0); +var m=0;for(z+=1;z0}; +ir=function(z){return!!(z.syb&&z.slot&&z.layout)}; +c3=function(z){var J,m=(J=z.config)==null?void 0:J.adPlacementConfig;z=z.renderer;return!(!m||m.kind==null||!z)}; +E7q=function(z){if(!Jm(z.adLayoutMetadata))return!1;z=z.renderingContent;return g.P(z,lO)||g.P(z,wS)||g.P(z,cQ)||g.P(z,WQ)?!0:!1}; +W3=function(z){return z.playerVars!==void 0&&z.pings!==void 0&&z.externalVideoId!==void 0}; +p6=function(z){if(!Jm(z.adLayoutMetadata))return!1;z=z.renderingContent;var J=g.P(z,lr);return J?wR(J):(J=g.P(z,qW))?W3(J):(J=g.P(z,dR))?J.playerVars!==void 0:(J=g.P(z,lO))?J.durationMilliseconds!==void 0:g.P(z,IR)||g.P(z,OU)?!0:!1}; +wR=function(z){z=(z.sequentialLayouts||[]).map(function(J){return g.P(J,yA)}); +return z.length>0&&z.every(p6)}; +GA=function(z){return Jm(z.adLayoutMetadata)?(z=g.P(z.renderingContent,NW))&&z.pings?!0:!1:!1}; +lDj=function(z){if(!Jm(z.adLayoutMetadata))return!1;if(g.P(z.renderingContent,Zcu)||g.P(z.renderingContent,FgE))return!0;var J=g.P(z.renderingContent,X3);return g.P(z.renderingContent,n6)||g.P(J==null?void 0:J.sidePanel,icu)||g.P(J==null?void 0:J.sidePanel,cv1)||g.P(J==null?void 0:J.sidePanel,Wgu)?!0:!1}; +OcE=function(z){var J;(J=!z)||(J=z.adSlotMetadata,J=!((J==null?void 0:J.slotId)!==void 0&&(J==null?void 0:J.slotType)!==void 0));if(J||!(w2u(z)||z.slotEntryTrigger&&z.slotFulfillmentTriggers&&z.slotExpirationTriggers))return!1;var m;z=(m=z.fulfillmentContent)==null?void 0:m.fulfilledLayout;return(m=g.P(z,yA))?p6(m):(m=g.P(z,Dg))?lDj(m):(m=g.P(z,qOf))?E7q(m):(m=g.P(z,dTj))?eOu(m):(m=g.P(z,ID1))?Jm(m.adLayoutMetadata)?g.P(m.renderingContent,mZ)?!0:!1:!1:(z=g.P(z,br))?GA(z):!1}; +w2u=function(z){var J;z=g.P((J=z.fulfillmentContent)==null?void 0:J.fulfilledLayout,Dg);var m;return z&&((m=z.adLayoutMetadata)==null?void 0:m.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&z.layoutExitNormalTriggers===void 0}; +p2R=function(z){var J;return(z==null?void 0:(J=z.adSlotMetadata)==null?void 0:J.slotType)==="SLOT_TYPE_IN_PLAYER"}; +NYu=function(z,J){var m;if((m=z.questions)==null||!m.length||!z.playbackCommands||(J===void 0||!J)&&z.questions.length!==1)return!1;z=g.y(z.questions);for(J=z.next();!J.done;J=z.next()){J=J.value;var e=m=void 0,T=((m=g.P(J,$A))==null?void 0:m.surveyAdQuestionCommon)||((e=g.P(J,gR))==null?void 0:e.surveyAdQuestionCommon);if(!yvb(T))return!1}return!0}; +GUs=function(z){z=((z==null?void 0:z.playerOverlay)||{}).instreamSurveyAdRenderer;var J;if(z)if(z.playbackCommands&&z.questions&&z.questions.length===1){var m,e=((J=g.P(z.questions[0],$A))==null?void 0:J.surveyAdQuestionCommon)||((m=g.P(z.questions[0],gR))==null?void 0:m.surveyAdQuestionCommon);J=yvb(e)}else J=!1;else J=!1;return J}; +yvb=function(z){if(!z)return!1;z=g.P(z.instreamAdPlayerOverlay,xA);var J=g.P(z==null?void 0:z.skipOrPreviewRenderer,i4),m=g.P(z==null?void 0:z.adInfoRenderer,MW);return(g.P(z==null?void 0:z.skipOrPreviewRenderer,Am)||J)&&m?!0:!1}; +X2u=function(z){return z.linearAds!=null&&Jm(z.adLayoutMetadata)}; +n7b=function(z){return z.linearAd!=null&&z.adVideoStart!=null}; +YOj=function(z){if(isNaN(Number(z.timeoutSeconds))||!z.text||!z.ctaButton||!g.P(z.ctaButton,g.oR)||!z.brandImage)return!1;var J;return z.backgroundImage&&g.P(z.backgroundImage,jv)&&((J=g.P(z.backgroundImage,jv))==null?0:J.landscape)?!0:!1}; +hm=function(z,J,m,e,T,E,Z){g.h.call(this);this.Kh=z;this.K=J;this.S=e;this.Ch=T;this.U=E;this.T=Z}; +Kgj=function(z,J,m){var e,T=((e=m.adSlots)!=null?e:[]).map(function(c){return g.P(c,ur)}); +if(m.tN)if(FB(J.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))pf(z.K.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},J.slotId); +else{if(z.Kh.get().G.W().C("h5_check_forecasting_renderer_for_throttled_midroll")){var E=m.Ad.filter(function(c){var W;return((W=c.renderer)==null?void 0:W.clientForecastingAdRenderer)!=null}); +E.length!==0?C_s(z.T,E,T,J.slotId,m.ssdaiAdsConfig):pf(z.K.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},J.slotId)}else pf(z.K.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},J.slotId); +aD4(z.U,J)}else{var Z;e={Sn:Math.round(((E=FB(J.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:E.Sn)||0),xG:(Z=FB(J.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:Z.xG};C_s(z.T,m.Ad,T,J.slotId,m.ssdaiAdsConfig,e)}}; +SOu=function(z,J,m,e,T,E,Z){var c=N4(z.Ch.get(),1);pf(z.K.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return BYf(z.S.get(),m,e,T,c.clientPlaybackNonce,c.NW,c.daiEnabled,c,E,Z)},J)}; +DTu=function(z,J,m,e,T,E,Z){J=fDz(J,E,Number(e.prefetchMilliseconds)||0,Z);z=J instanceof L?J:VA(z,e,T,J,m);return z instanceof L?z:[z]}; +bcb=function(z,J,m,e,T){var E=yY(z.T.get(),"SLOT_TYPE_AD_BREAK_REQUEST");e=[new jS({getAdBreakUrl:e.getAdBreakUrl,Sn:0,xG:0}),new rO(!0)];z=J.pauseDurationMs?J.lactThresholdMs?{slotId:E,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new QP(z.K,E),slotFulfillmentTriggers:[new RT1(z.K)],slotExpirationTriggers:[new PI(z.K,T),new RA(z.K,E)],A6:"core",clientMetadata:new Zj(e),adSlotLoggingData:m}:new L("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new L("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); +return z instanceof L?z:[z]}; +$TE=function(z){var J,m;return((J=z.renderer)==null?void 0:(m=J.adBreakServiceRenderer)==null?void 0:m.getAdBreakUrl)!==void 0}; +P3=function(z,J,m){if(z.beforeContentVideoIdStartedTrigger)z=z.beforeContentVideoIdStartedTrigger?new Ku(T_,J,z.id):new L("Not able to create BeforeContentVideoIdStartedTrigger");else{if(z.layoutIdExitedTrigger){var e;J=(e=z.layoutIdExitedTrigger)!=null&&e.triggeringLayoutId?new $g(T_,z.layoutIdExitedTrigger.triggeringLayoutId,z.id):new L("Not able to create LayoutIdExitedTrigger")}else{if(z.layoutExitedForReasonTrigger){var T,E;((T=z.layoutExitedForReasonTrigger)==null?0:T.triggeringLayoutId)&&((E= +z.layoutExitedForReasonTrigger)==null?0:E.layoutExitReason)?(J=krq(z.layoutExitedForReasonTrigger.layoutExitReason),z=J instanceof L?J:new b4(T_,z.layoutExitedForReasonTrigger.triggeringLayoutId,[J],z.id)):z=new L("Not able to create LayoutIdExitedForReasonTrigger")}else{if(z.onLayoutSelfExitRequestedTrigger){var Z;J=(Z=z.onLayoutSelfExitRequestedTrigger)!=null&&Z.triggeringLayoutId?new VP(T_,z.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,z.id):new L("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(z.onNewPlaybackAfterContentVideoIdTrigger)z= +z.onNewPlaybackAfterContentVideoIdTrigger?new PI(T_,J,z.id):new L("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(z.skipRequestedTrigger){var c;J=(c=z.skipRequestedTrigger)!=null&&c.triggeringLayoutId?new HI(T_,z.skipRequestedTrigger.triggeringLayoutId,z.id):new L("Not able to create SkipRequestedTrigger")}else if(z.slotIdEnteredTrigger){var W;J=(W=z.slotIdEnteredTrigger)!=null&&W.triggeringSlotId?new UR(T_,z.slotIdEnteredTrigger.triggeringSlotId,z.id):new L("Not able to create SlotIdEnteredTrigger")}else if(z.slotIdExitedTrigger){var l; +J=(l=z.slotIdExitedTrigger)!=null&&l.triggeringSlotId?new RA(T_,z.slotIdExitedTrigger.triggeringSlotId,z.id):new L("Not able to create SkipRequestedTrigger")}else if(z.surveySubmittedTrigger){var w;J=(w=z.surveySubmittedTrigger)!=null&&w.triggeringLayoutId?new sR(T_,z.surveySubmittedTrigger.triggeringLayoutId,z.id):new L("Not able to create SurveySubmittedTrigger")}else{if(z.mediaResumedTrigger)z=z.mediaResumedTrigger&&z.id?new Li4(z.id):new L("Not able to create MediaResumedTrigger");else{if(z.closeRequestedTrigger){var q; +J=(q=z.closeRequestedTrigger)!=null&&q.triggeringLayoutId?new BI(T_,z.closeRequestedTrigger.triggeringLayoutId,z.id):new L("Not able to create CloseRequestedTrigger")}else if(z.slotIdScheduledTrigger){var d;J=(d=z.slotIdScheduledTrigger)!=null&&d.triggeringSlotId?new QP(T_,z.slotIdScheduledTrigger.triggeringSlotId,z.id):new L("Not able to create SlotIdScheduledTrigger")}else{if(z.mediaTimeRangeTrigger){var I;e=Number((I=z.mediaTimeRangeTrigger)==null?void 0:I.offsetStartMilliseconds);var O;Z=Number((O= +z.mediaTimeRangeTrigger)==null?void 0:O.offsetEndMilliseconds);isFinite(e)&&isFinite(Z)?(O=Z,O===-1&&(O=m),m=e>O?new L("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:e,offsetEndMs:O},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",O===m&&e-500<=O):new Kz(e,O),z=m instanceof L?m:new oA(T_,J,m,!1,z.id)):z=new L("Not able to create MediaTimeRangeTrigger")}else if(z.contentVideoIdEndedTrigger)z=z.contentVideoIdEndedTrigger?new Sx(T_,J,!1,z.id):new L("Not able to create ContentVideoIdEndedTrigger"); +else{if(z.layoutIdEnteredTrigger){var G;J=(G=z.layoutIdEnteredTrigger)!=null&&G.triggeringLayoutId?new Dl(T_,z.layoutIdEnteredTrigger.triggeringLayoutId,z.id):new L("Not able to create LayoutIdEnteredTrigger")}else if(z.timeRelativeToLayoutEnterTrigger){var n;J=(n=z.timeRelativeToLayoutEnterTrigger)!=null&&n.triggeringLayoutId?new rU(T_,Number(z.timeRelativeToLayoutEnterTrigger.durationMs),z.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,z.id):new L("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(z.onDifferentLayoutIdEnteredTrigger){var C; +J=(C=z.onDifferentLayoutIdEnteredTrigger)!=null&&C.triggeringLayoutId&&z.onDifferentLayoutIdEnteredTrigger.slotType&&z.onDifferentLayoutIdEnteredTrigger.layoutType?new hw(T_,z.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,z.onDifferentLayoutIdEnteredTrigger.slotType,z.onDifferentLayoutIdEnteredTrigger.layoutType,z.id):new L("Not able to create CloseRequestedTrigger")}else{if(z.liveStreamBreakStartedTrigger)z=z.liveStreamBreakStartedTrigger&&z.id?new Aw(T_,z.id):new L("Not able to create LiveStreamBreakStartedTrigger"); +else if(z.liveStreamBreakEndedTrigger)z=z.liveStreamBreakEndedTrigger&&z.id?new gU(T_,z.id):new L("Not able to create LiveStreamBreakEndedTrigger");else{if(z.liveStreamBreakScheduledDurationMatchedTrigger){var K;J=(K=z.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&K.breakDurationMs?new xg(Number(z.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,z.id):new L("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(z.liveStreamBreakScheduledDurationNotMatchedTrigger){var f; +J=(f=z.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&f.breakDurationMs?new MG(Number(z.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,z.id):new L("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(z.newSlotScheduledWithBreakDurationTrigger){var x;J=(x=z.newSlotScheduledWithBreakDurationTrigger)!=null&&x.breakDurationMs?new jx(Number(z.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,z.id):new L("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else J= +z.prefetchCacheExpiredTrigger?new tw(T_,z.id):new L("Not able to convert an AdsControlflowTrigger.");z=J}J=z}z=J}J=z}z=J}J=z}z=J}J=z}z=J}J=z}z=J}return z}; +tm=function(z,J){J.K>=2&&(z.slot_pos=J.adPodIndex);z.autoplay="1"}; +xTu=function(z,J,m,e,T,E,Z,c){return J===null?new L("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:J,ActionCompanionAdRenderer:e}):[g7j(z,J,Z,E,function(W){var l=W.slotId;W=c(W);var w=e.adLayoutLoggingData,q=new Zj([new uG(e),new rG(T)]);l=v9(m.T.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",l);var d={layoutId:l,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",A6:"core"};return{layoutId:l,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",wE:new Map, +layoutExitNormalTriggers:[new PI(m.K,Z)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],NT:[],A6:"core",clientMetadata:q,qd:W(d),adLayoutLoggingData:w}})]}; +M64=function(z,J,m,e,T,E,Z,c){return J===null?new L("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:J,TopBannerImageTextIconButtonedLayoutViewModel:e}):[g7j(z,J,Z,E,function(W){var l=W.slotId;W=c(W);var w=e.adLayoutLoggingData,q=new Zj([new V_(e),new rG(T)]);l=v9(m.T.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",l);var d={layoutId:l,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",A6:"core"};return{layoutId:l,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", +wE:new Map,layoutExitNormalTriggers:[new PI(m.K,Z)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],NT:[],A6:"core",clientMetadata:q,qd:W(d),adLayoutLoggingData:w}})]}; +hOq=function(z,J,m,e,T,E){if(!E)for(J=g.y(J),E=J.next();!E.done;E=J.next())E=E.value,H3(z,E.renderer,E.config.adPlacementConfig.kind);z=Array.from(z.values()).filter(function(w){return AvR(w)}); +J=[];E=g.y(z);for(var Z=E.next(),c={};!Z.done;c={dI:void 0},Z=E.next()){c.dI=Z.value;Z=g.y(c.dI.Lw);for(var W=Z.next(),l={};!W.done;l={cB:void 0},W=Z.next())l.cB=W.value,W=function(w,q){return function(d){return w.cB.iH(d,q.dI.instreamVideoAdRenderer.elementId,w.cB.Mj)}}(l,c),l.cB.isContentVideoCompanion?J.push(o71(m,e,T,c.dI.instreamVideoAdRenderer.elementId,l.cB.associatedCompositePlayerBytesLayoutId,l.cB.adSlotLoggingData,W)):z.length>1?J.push(jk1(m,e,T,c.dI.instreamVideoAdRenderer.elementId,l.cB.adSlotLoggingData, +function(w,q){return function(d){return w.cB.iH(d,q.dI.instreamVideoAdRenderer.elementId,w.cB.Mj,w.cB.associatedCompositePlayerBytesLayoutId)}}(l,c))):J.push(jk1(m,e,T,c.dI.instreamVideoAdRenderer.elementId,l.cB.adSlotLoggingData,W))}return J}; +H3=function(z,J,m){if(J=u94(J)){J=g.y(J);for(var e=J.next();!e.done;e=J.next())if((e=e.value)&&e.externalVideoId){var T=UU(z,e.externalVideoId);T.instreamVideoAdRenderer||(T.instreamVideoAdRenderer=e,T.Ya=m)}else IU("InstreamVideoAdRenderer without externalVideoId")}}; +u94=function(z){var J=[],m=z.sandwichedLinearAdRenderer&&z.sandwichedLinearAdRenderer.linearAd&&g.P(z.sandwichedLinearAdRenderer.linearAd,qW);if(m)return J.push(m),J;if(z.instreamVideoAdRenderer)return J.push(z.instreamVideoAdRenderer),J;if(z.linearAdSequenceRenderer&&z.linearAdSequenceRenderer.linearAds){z=g.y(z.linearAdSequenceRenderer.linearAds);for(m=z.next();!m.done;m=z.next())m=m.value,g.P(m,qW)&&J.push(g.P(m,qW));return J}return null}; +AvR=function(z){if(z.instreamVideoAdRenderer===void 0)return IU("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var J=g.y(z.Lw),m=J.next();!m.done;m=J.next()){m=m.value;if(m.iH===void 0)return!1;if(m.Mj===void 0)return IU("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(z.Ya===void 0||m.B$===void 0||z.Ya!==m.B$&&m.B$!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(z.instreamVideoAdRenderer.elementId===void 0)return IU("InstreamVideoAdRenderer has no elementId", +void 0,void 0,{kind:z.Ya,"matching APSR kind":m.B$}),!1}return!0}; +UU=function(z,J){z.has(J)||z.set(J,{instreamVideoAdRenderer:void 0,Ya:void 0,adVideoId:J,Lw:[]});return z.get(J)}; +RR=function(z,J,m,e,T,E,Z,c,W){T?UU(z,T).Lw.push({r03:J,B$:m,isContentVideoCompanion:e,Mj:Z,associatedCompositePlayerBytesLayoutId:E,adSlotLoggingData:c,iH:W}):IU("Companion AdPlacementSupportedRenderer without adVideoId")}; +kA=function(z){var J=0;z=g.y(z.questions);for(var m=z.next();!m.done;m=z.next())if(m=m.value,m=g.P(m,$A)||g.P(m,gR)){var e=void 0;J+=((e=m.surveyAdQuestionCommon)==null?void 0:e.durationMilliseconds)||0}return J}; +L6=function(z){var J,m,e,T,E=((m=g.P((J=z.questions)==null?void 0:J[0],$A))==null?void 0:m.surveyAdQuestionCommon)||((T=g.P((e=z.questions)==null?void 0:e[0],gR))==null?void 0:T.surveyAdQuestionCommon),Z;J=[].concat(g.X(((Z=z.playbackCommands)==null?void 0:Z.instreamAdCompleteCommands)||[]),g.X((E==null?void 0:E.timeoutCommands)||[]));var c,W,l,w,q,d,I,O,G,n,C,K,f,x,V,zE,k,Ez,ij,r;return{impressionCommands:(c=z.playbackCommands)==null?void 0:c.impressionCommands,errorCommands:(W=z.playbackCommands)== +null?void 0:W.errorCommands,muteCommands:(l=z.playbackCommands)==null?void 0:l.muteCommands,unmuteCommands:(w=z.playbackCommands)==null?void 0:w.unmuteCommands,pauseCommands:(q=z.playbackCommands)==null?void 0:q.pauseCommands,rewindCommands:(d=z.playbackCommands)==null?void 0:d.rewindCommands,resumeCommands:(I=z.playbackCommands)==null?void 0:I.resumeCommands,skipCommands:(O=z.playbackCommands)==null?void 0:O.skipCommands,progressCommands:(G=z.playbackCommands)==null?void 0:G.progressCommands,tBb:(n= +z.playbackCommands)==null?void 0:n.clickthroughCommands,fullscreenCommands:(C=z.playbackCommands)==null?void 0:C.fullscreenCommands,activeViewViewableCommands:(K=z.playbackCommands)==null?void 0:K.activeViewViewableCommands,activeViewMeasurableCommands:(f=z.playbackCommands)==null?void 0:f.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(x=z.playbackCommands)==null?void 0:x.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(V=z.playbackCommands)== +null?void 0:(zE=V.activeViewTracking)==null?void 0:zE.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(k=z.playbackCommands)==null?void 0:(Ez=k.activeViewTracking)==null?void 0:Ez.activeViewAudioMeasurableCommands,endFullscreenCommands:(ij=z.playbackCommands)==null?void 0:ij.endFullscreenCommands,abandonCommands:(r=z.playbackCommands)==null?void 0:r.abandonCommands,completeCommands:J}}; +P_u=function(z,J,m,e,T,E,Z){return function(c,W){return V6u(z,W.slotId,c,E,function(l,w){var q=W.layoutId;l=Z(l);return QA(J,q,w,T,l,"LAYOUT_TYPE_SURVEY",[new Il(m),e],m.adLayoutLoggingData)})}}; +UTz=function(z,J,m,e,T,E,Z){if(!t6q(z))return new L("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:z});var c=z.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[Hcq(E,J,m,e,function(W){var l=W.slotId;W=Z(W);l=v9(T.T.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",l);var w={layoutId:l,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",A6:"core"},q=new $g(T.K,e);return{layoutId:l,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",wE:new Map,layoutExitNormalTriggers:[q], +layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],NT:[],A6:"core",clientMetadata:new Zj([new Or(c)]),qd:W(w)}})]}; +t6q=function(z){z=g.P(z==null?void 0:z.additionalPlayerOverlay,ROs);if(!z)return!1;var J=z.slidingMessages;return z.title&&J&&J.length!==0?!0:!1}; +Lgz=function(z,J,m,e,T){var E;if((E=z.playerOverlay)==null||!E.instreamSurveyAdRenderer)return function(){return[]}; +if(!GUs(z))return function(){return new L("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:z})}; +var Z=z.playerOverlay.instreamSurveyAdRenderer,c=kA(Z);return c<=0?function(){return new L("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:Z})}:function(W,l){var w=kUu(W,m,e,function(q){var d=q.slotId; +q=l(q);var I=L6(Z);d=v9(T.T.get(),"LAYOUT_TYPE_SURVEY",d);var O={layoutId:d,layoutType:"LAYOUT_TYPE_SURVEY",A6:"core"},G=new $g(T.K,e),n=new HI(T.K,d),C=new sR(T.K,d),K=new rRu(T.K);return{layoutId:d,layoutType:"LAYOUT_TYPE_SURVEY",wE:new Map,layoutExitNormalTriggers:[G,K],layoutExitSkipTriggers:[n],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[C],NT:[],A6:"core",clientMetadata:new Zj([new dO(Z),new rG(J),new Vk(c/1E3),new Ur(I)]),qd:q(O),adLayoutLoggingData:Z.adLayoutLoggingData}}); +W=UTz(z,m,w.slotId,e,T,W,l);return W instanceof L?W:[w].concat(g.X(W))}}; +mzE=function(z,J,m,e,T,E,Z){Z=Z===void 0?!1:Z;var c=[];try{var W=[];if(m.renderer.linearAdSequenceRenderer)var l=function(G){G=QkE(G.slotId,m,J,T(G),e,E,Z);W=G.dAW;return G.hG}; +else if(m.renderer.instreamVideoAdRenderer)l=function(G){var n=G.slotId;G=T(G);var C=Z,K=m.config.adPlacementConfig,f=v74(K),x=f.Ik,V=f.mB;f=m.renderer.instreamVideoAdRenderer;var zE;if(f==null?0:(zE=f.playerOverlay)==null?0:zE.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var k=v3(f,C);zE=Math.min(x+k.videoLengthSeconds*1E3,V);C=new aA(0,[k.videoLengthSeconds]);V=k.videoLengthSeconds;var Ez=k.playerVars,ij=k.instreamAdPlayerOverlayRenderer,r=k.playerOverlayLayoutRenderer, +t=k.adVideoId,v=skz(m),N=k.wE;k=k.s6;var H=f==null?void 0:f.adLayoutLoggingData;f=f==null?void 0:f.sodarExtensionData;n=v9(J.T.get(),"LAYOUT_TYPE_MEDIA",n);var Pq={layoutId:n,layoutType:"LAYOUT_TYPE_MEDIA",A6:"core"};return{layoutId:n,layoutType:"LAYOUT_TYPE_MEDIA",wE:N,layoutExitNormalTriggers:[new gU(J.K)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],NT:[],A6:"core",clientMetadata:new Zj([new Er(e),new KK(V),new Be(Ez),new DS(x),new bR(zE),ij&&new ZS(ij), +r&&new FJ(r),new rG(K),new TS(t),new zS(C),new AT(v),f&&new fK(f),new nK({current:null}),new gO({}),new LK(k)].filter(rv1)),qd:G(Pq),adLayoutLoggingData:H}}; +else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var w=zau(z,e,m.adSlotLoggingData,l);c.push(w);for(var q=g.y(W),d=q.next();!d.done;d=q.next()){var I=d.value,O=I(z,T);if(O instanceof L)return O;c.push.apply(c,g.X(O))}}catch(G){return new L(G,{errorMessage:G.message,AdPlacementRenderer:m,numberOfSurveyRenderers:JZu(m)})}return c}; +JZu=function(z){z=(z.renderer.linearAdSequenceRenderer||{}).linearAds;return z!=null&&z.length?z.filter(function(J){var m,e;return((m=g.P(J,qW))==null?void 0:(e=m.playerOverlay)==null?void 0:e.instreamSurveyAdRenderer)!=null}).length:0}; +QkE=function(z,J,m,e,T,E,Z){var c=J.config.adPlacementConfig,W=v74(c),l=W.Ik,w=W.mB;W=(J.renderer.linearAdSequenceRenderer||{}).linearAds;if(W==null||!W.length)throw new TypeError("Expected linear ads");var q=[],d={ut:l,LJ:0,cWx:q};W=W.map(function(O){return ea4(z,O,d,m,e,c,T,w,Z)}).map(function(O,G){G=new aA(G,q); +return O(G)}); +var I=W.map(function(O){return O.ER}); +return{hG:TG1(m,z,l,I,c,skz(J),e,w,E),dAW:W.map(function(O){return O.sof})}}; +ea4=function(z,J,m,e,T,E,Z,c,W){var l=v3(g.P(J,qW),W),w=m.ut,q=m.LJ,d=Math.min(w+l.videoLengthSeconds*1E3,c);m.ut=d;m.LJ++;m.cWx.push(l.videoLengthSeconds);var I,O,G=(I=g.P(J,qW))==null?void 0:(O=I.playerOverlay)==null?void 0:O.instreamSurveyAdRenderer;if(l.adVideoId==="nPpU29QrbiU"&&G==null)throw new TypeError("Survey slate media has no survey overlay");return function(n){tm(l.playerVars,n);var C,K,f=l.videoLengthSeconds,x=l.playerVars,V=l.wE,zE=l.s6,k=l.instreamAdPlayerOverlayRenderer,Ez=l.playerOverlayLayoutRenderer, +ij=l.adVideoId,r=(C=g.P(J,qW))==null?void 0:C.adLayoutLoggingData;C=(K=g.P(J,qW))==null?void 0:K.sodarExtensionData;K=v9(e.T.get(),"LAYOUT_TYPE_MEDIA",z);var t={layoutId:K,layoutType:"LAYOUT_TYPE_MEDIA",A6:"adapter"};n={layoutId:K,layoutType:"LAYOUT_TYPE_MEDIA",wE:V,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],NT:[],A6:"adapter",clientMetadata:new Zj([new Er(Z),new KK(f),new Be(x),new DS(w),new bR(d),new $$(q),new nK({current:null}), +k&&new ZS(k),Ez&&new FJ(Ez),new rG(E),new TS(ij),new zS(n),C&&new fK(C),G&&new k$(G),new gO({}),new LK(zE)].filter(rv1)),qd:T(t),adLayoutLoggingData:r};f=Lgz(g.P(J,qW),E,Z,n.layoutId,e);return{ER:n,sof:f}}}; +v3=function(z,J){if(!z)throw new TypeError("Expected instream video ad renderer");if(!z.playerVars)throw new TypeError("Expected player vars in url encoded string");var m=Z8(z.playerVars),e=Number(m.length_seconds);if(isNaN(e))throw new TypeError("Expected valid length seconds in player vars");var T=Number(z.trimmedMaxNonSkippableAdDurationMs);e=isNaN(T)?e:Math.min(e,T/1E3);T=z.playerOverlay||{};T=T.instreamAdPlayerOverlayRenderer===void 0?null:T.instreamAdPlayerOverlayRenderer;var E=z.playerOverlay|| +{};E=E.playerOverlayLayoutRenderer===void 0?null:E.playerOverlayLayoutRenderer;var Z=m.video_id;Z||(Z=(Z=z.externalVideoId)?Z:void 0);if(!Z)throw new TypeError("Expected valid video id in IVAR");if(J&&e===0){var c;J=(c=Eru[Z])!=null?c:e}else J=e;return{playerVars:m,videoLengthSeconds:J,instreamAdPlayerOverlayRenderer:T,playerOverlayLayoutRenderer:E,adVideoId:Z,wE:z.pings?So(z.pings):new Map,s6:B6(z.pings)}}; +skz=function(z){z=Number(z.driftRecoveryMs);return isNaN(z)||z<=0?null:z}; +v74=function(z){var J=z.adTimeOffset||{};z=J.offsetEndMilliseconds;J=Number(J.offsetStartMilliseconds);if(isNaN(J))throw new TypeError("Expected valid start offset");z=Number(z);if(isNaN(z))throw new TypeError("Expected valid end offset");return{Ik:J,mB:z}}; +ZFq=function(z){var J,m=(J=FB(z.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:J.current;if(!m)return null;J=FB(z.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var e=z.layoutId,T=FB(z.clientMetadata,"metadata_type_content_cpn"),E=FB(z.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),Z=FB(z.clientMetadata,"metadata_type_player_underlay_renderer"),c=FB(z.clientMetadata,"metadata_type_ad_placement_config"),W=FB(z.clientMetadata,"metadata_type_video_length_seconds"); +var l=mG(z.clientMetadata,"metadata_type_layout_enter_ms")&&mG(z.clientMetadata,"metadata_type_layout_exit_ms")?(FB(z.clientMetadata,"metadata_type_layout_exit_ms")-FB(z.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{n3:e,contentCpn:T,FJ:m,qj:J,instreamAdPlayerOverlayRenderer:E,instreamAdPlayerUnderlayRenderer:Z,adPlacementConfig:c,videoLengthSeconds:W,Jq:l,inPlayerLayoutId:FB(z.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:FB(z.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; +cZb=function(z,J,m,e,T,E,Z,c,W,l,w,q,d,I,O){e=yY(e,"SLOT_TYPE_PLAYER_BYTES");z=FTq(T,z,Z,m,e,W,l);if(z instanceof L)return z;var G;l=(G=FB(z.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:G.layoutId;if(!l)return new L("Invalid adNotify layout");J=iF4(l,T,E,m,c,J,W,w,q,d,I,O,Z);return J instanceof L?J:[z].concat(g.X(J))}; +iF4=function(z,J,m,e,T,E,Z,c,W,l,w,q,d){m=WT1(J,m,e,E,Z,c,W,l,w,q,d);if(m instanceof L)return m;z=lPq(J,z,Z,T,m);return z instanceof L?z:[].concat(g.X(z.FH),[z.Ak])}; +qfb=function(z,J,m,e,T,E,Z,c,W,l,w,q,d,I){J=WT1(z,J,m,T,E,c,W,l,w,q,d,I);if(J instanceof L)return J;z=wBj(z,m,E,Z,e,c.Cq,J);return z instanceof L?z:z.FH.concat(z.Ak)}; +WT1=function(z,J,m,e,T,E,Z,c,W,l,w,q){var d=sU(e,m,l);return d instanceof Eq?new L(d):l.G.W().experiments.j4("html5_refactor_in_player_slot_generation")?function(I){var O=new aA(0,[d.Gz]);I=dzu(J,d.layoutId,d.fn,m,rR(d.playerVars,d.m8,E,W,O),d.Gz,T,O,Z(I),c.get(d.fn.externalVideoId),q);O=[];if(d.fn.playerOverlay.instreamAdPlayerOverlayRenderer){var G=ZFq(I);if(!G)return IU("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,I),{layout:I,FH:[]}; +O=[IPu(z,G.contentCpn,G.n3,function(C){return zc(J,C.slotId,"core",G,qP(w,C))},G.inPlayerSlotId)].concat(g.X(O)); +if(G.instreamAdPlayerUnderlayRenderer&&Jz(l)){var n=G.instreamAdPlayerUnderlayRenderer;O=[OFq(z,G.contentCpn,G.n3,function(C){return pBj(J,C.slotId,n,G.adPlacementConfig,G.n3,qP(w,C))})].concat(g.X(O))}}return{layout:I, +FH:O}}:function(I){var O=new aA(0,[d.Gz]); +return{layout:dzu(J,d.layoutId,d.fn,m,rR(d.playerVars,d.m8,E,W,O),d.Gz,T,O,Z(I),c.get(d.fn.externalVideoId),q),FH:[]}}}; +sU=function(z,J,m){if(!z.playerVars)return new Eq("No playerVars available in InstreamVideoAdRenderer.");var e,T;if(z.elementId==null||z.playerVars==null||z.playerOverlay==null||((e=z.playerOverlay)==null?void 0:e.instreamAdPlayerOverlayRenderer)==null&&((T=z.playerOverlay)==null?void 0:T.playerOverlayLayoutRenderer)==null||z.pings==null||z.externalVideoId==null)return new Eq("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:z});e=Z8(z.playerVars);T=Number(e.length_seconds); +isNaN(T)&&(T=0,IU("Expected valid length seconds in player vars but got NaN"));if(m.LZ(J.kind==="AD_PLACEMENT_KIND_START")){if(z.layoutId===void 0)return new Eq("Expected server generated layout ID in instreamVideoAdRenderer");J=z.layoutId}else J=z.elementId;return{layoutId:J,fn:z,playerVars:e,m8:z.playerVars,Gz:T}}; +rR=function(z,J,m,e,T){z.iv_load_policy=e;J=Z8(J);if(J.cta_conversion_urls)try{z.cta_conversion_urls=JSON.parse(J.cta_conversion_urls)}catch(E){IU(E)}m.h8&&(z.ctrl=m.h8);m.wu&&(z.ytr=m.wu);m.pz&&(z.ytrcc=m.pz);m.isMdxPlayback&&(z.mdx="1");z.vvt&&(z.vss_credentials_token=z.vvt,m.nJ&&(z.vss_credentials_token_type=m.nJ),m.mdxEnvironment&&(z.mdx_environment=m.mdxEnvironment));tm(z,T);return z}; +yZ1=function(z){var J=new Map;z=g.y(z);for(var m=z.next();!m.done;m=z.next())(m=m.value.renderer.remoteSlotsRenderer)&&m.hostElementId&&J.set(m.hostElementId,m);return J}; +m1=function(z){return z.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; +NGz=function(z){return z!=null}; +KTf=function(z,J,m,e,T,E,Z,c,W,l,w,q,d,I){for(var O=[],G=g.y(z),n=G.next();!n.done;n=G.next())if(n=n.value,!w2u(n)&&!p2R(n)){var C=m1(n)&&!!n.slotEntryTrigger.beforeContentVideoIdStartedTrigger,K=W.LZ(C),f=GVf(n,l,e,m.NW,K);if(f instanceof L)return f;var x=void 0,V={slotId:n.adSlotMetadata.slotId,slotType:n.adSlotMetadata.slotType,slotPhysicalPosition:(x=n.adSlotMetadata.slotPhysicalPosition)!=null?x:1,A6:"core",slotEntryTrigger:f.slotEntryTrigger,slotFulfillmentTriggers:f.slotFulfillmentTriggers, +slotExpirationTriggers:f.slotExpirationTriggers},zE=g.P(n.fulfillmentContent.fulfilledLayout,yA);if(zE){if(!p6(zE))return new L("Invalid PlayerBytesAdLayoutRenderer");x=q&&!(m1(n)&&n.slotEntryTrigger.beforeContentVideoIdStartedTrigger);f=f.slotFulfillmentTriggers.some(function(k){return k instanceof xg}); +K=x?XBz(V,n.adSlotMetadata.triggerEvent,zE,m,e,E,l,z,K,d,f,I):nrq(V,n.adSlotMetadata.triggerEvent,zE,J,m,e,T,E,Z,c,W,l,z,w,K,n.adSlotMetadata.triggeringSourceLayoutId);if(K instanceof L)return K;f=[];m1(n)&&f.push(new z_({g9:m1(n)&&!!n.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));x&&f.push(new gO({}));m.Cq&&f.push(new Rl({}));f.push(new sr(C));n=Object.assign({},V,{clientMetadata:new Zj(f),fulfilledLayout:K.layout,adSlotLoggingData:n.adSlotMetadata.adSlotLoggingData});O.push.apply(O,g.X(K.FH)); +O.push(n)}else if(C=g.P(n.fulfillmentContent.fulfilledLayout,Dg)){if(!lDj(C))return new L("Invalid PlayerUnderlayAdLayoutRenderer");C=Yfu(C,e,m.NW,E,V,n.adSlotMetadata.triggerEvent,n.adSlotMetadata.triggeringSourceLayoutId);if(C instanceof L)return C;n=Object.assign({},V,{clientMetadata:new Zj([]),fulfilledLayout:C,adSlotLoggingData:n.adSlotMetadata.adSlotLoggingData});O.push(n)}else if(C=g.P(n.fulfillmentContent.fulfilledLayout,dTj)){if(!eOu(C))return new L("Invalid AboveFeedAdLayoutRenderer");C= +CGE(C,e,m.NW,E,V,n.adSlotMetadata.triggerEvent,n.adSlotMetadata.triggeringSourceLayoutId);if(C instanceof L)return C;n=Object.assign({},V,{clientMetadata:new Zj([]),fulfilledLayout:C,adSlotLoggingData:n.adSlotMetadata.adSlotLoggingData});O.push(n)}else if(C=g.P(n.fulfillmentContent.fulfilledLayout,ID1)){if(!Jm(C.adLayoutMetadata)||!g.P(C.renderingContent,mZ))return new L("Invalid BelowPlayerAdLayoutRenderer");C=CGE(C,e,m.NW,E,V,n.adSlotMetadata.triggerEvent,n.adSlotMetadata.triggeringSourceLayoutId); +if(C instanceof L)return C;n=Object.assign({},V,{clientMetadata:new Zj([]),fulfilledLayout:C,adSlotLoggingData:n.adSlotMetadata.adSlotLoggingData});O.push(n)}else if(C=g.P(n.fulfillmentContent.fulfilledLayout,br)){if(!GA(C))return new L("Invalid PlayerBytesSequenceItemAdLayoutRenderer");C=aPu(C,e,m.NW,E,V,n.adSlotMetadata.triggerEvent);if(C instanceof L)return C;n=Object.assign({},V,{clientMetadata:new Zj([]),fulfilledLayout:C,adSlotLoggingData:n.adSlotMetadata.adSlotLoggingData});O.push(n)}else return new L("Unable to retrieve a client slot ["+ +V.slotType+"] from a given AdSlotRenderer")}return O}; +aPu=function(z,J,m,e,T,E){var Z={layoutId:z.adLayoutMetadata.layoutId,layoutType:z.adLayoutMetadata.layoutType,A6:"core"};J=eT(z,J,m);return J instanceof L?J:(m=g.P(z.renderingContent,NW))&&m.pings?Object.assign({},Z,{renderingContent:z.renderingContent,wE:So(m.pings)},J,{qd:qP(e,T)(Z),clientMetadata:new Zj([new rG(Tc(E))]),adLayoutLoggingData:z.adLayoutMetadata.adLayoutLoggingData}):new L("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")}; +CGE=function(z,J,m,e,T,E,Z){var c={layoutId:z.adLayoutMetadata.layoutId,layoutType:z.adLayoutMetadata.layoutType,A6:"core"};J=eT(z,J,m);if(J instanceof L)return J;m=[];m.push(new rG(Tc(E)));E==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&Z!==void 0&&m.push(new pK(Z));return Object.assign({},c,{renderingContent:z.renderingContent,wE:new Map([["impression",BGb(z)]])},J,{qd:qP(e,T)(c),clientMetadata:new Zj(m),adLayoutLoggingData:z.adLayoutMetadata.adLayoutLoggingData})}; +Yfu=function(z,J,m,e,T,E,Z){if(z.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(Z=g.P(z.renderingContent,X3))if(Z=g.P(Z.sidePanel,cv1)){var c={layoutId:z.adLayoutMetadata.layoutId,layoutType:z.adLayoutMetadata.layoutType,A6:"core"};J=eT(z,J,m);z=J instanceof L?J:Object.assign({},c,{renderingContent:z.renderingContent,wE:new Map([["impression",Z.impressionPings||[]],["resume",Z.resumePings||[]]])},J,{qd:qP(e,T)(c),clientMetadata:new Zj([new rG(Tc(E))]),adLayoutLoggingData:z.adLayoutMetadata.adLayoutLoggingData})}else z= +new L("DismissablePanelTextPortraitImageRenderer is missing");else z=new L("SqueezebackPlayerSidePanelRenderer is missing");else z.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.P(z.renderingContent,Zcu)?(Z={layoutId:z.adLayoutMetadata.layoutId,layoutType:z.adLayoutMetadata.layoutType,A6:"core"},J=eT(z,J,m),z=J instanceof L?J:Object.assign({},Z,{renderingContent:z.renderingContent,wE:new Map},J,{qd:qP(e,T)(Z),clientMetadata:new Zj([new rG(Tc(E))]),adLayoutLoggingData:z.adLayoutMetadata.adLayoutLoggingData})): +z=new L("CounterfactualRenderer is missing"):z.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?z=new L("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):z.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?z=new L("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):z.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.P(z.renderingContent,n6)?(E={layoutId:z.adLayoutMetadata.layoutId,layoutType:z.adLayoutMetadata.layoutType, +A6:"core"},J=eT(z,J,m),z=J instanceof L?J:Z?Object.assign({},E,{renderingContent:z.renderingContent,wE:new Map},J,{qd:qP(e,T)(E),clientMetadata:new Zj([new pK(Z)]),adLayoutLoggingData:z.adLayoutMetadata.adLayoutLoggingData}):new L("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):z=new L("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):z.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.P(z.renderingContent,FgE)? +(E={layoutId:z.adLayoutMetadata.layoutId,layoutType:z.adLayoutMetadata.layoutType,A6:"core"},J=eT(z,J,m),z=J instanceof L?J:Object.assign({},E,{renderingContent:z.renderingContent,wE:new Map([])},J,{qd:qP(e,T)(E),adLayoutLoggingData:z.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new Zj([])})):z=new L("AdsEngagementPanelSectionListViewModel is missing"):z=new L("LayoutType ["+z.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return z}; +XBz=function(z,J,m,e,T,E,Z,c,W,l,w,q){if((q==null?void 0:q.Sn)===void 0||(q==null?void 0:q.xG)===void 0)return new L("Cached ad break range from cue point is missing");var d=eT(m,T,e.NW);if(d instanceof L)return d;d={layoutExitMuteTriggers:[],layoutExitNormalTriggers:d.layoutExitNormalTriggers,layoutExitSkipTriggers:[],NT:[],layoutExitUserInputSubmittedTriggers:[]};if(g.P(m.renderingContent,qW))return z=SfR(z,J,m,d,T,E,c,W,e.NW,Z,q.Sn,q.xG),z instanceof L?z:z.Rm===void 0?new L("Expecting associatedInPlayerSlot for single DAI media layout"): +{layout:z.layout,FH:[z.Rm]};var I=g.P(m.renderingContent,lr);if(I){if(!Jm(m.adLayoutMetadata))return new L("Invalid ad layout metadata");if(!wR(I))return new L("Invalid sequential layout");I=I.sequentialLayouts.map(function(O){return O.playerBytesAdLayoutRenderer}); +z=fPb(z,J,m,d,I,T,e,E,Z,W,c,l,q.Sn,q.xG,w);return z instanceof L?z:{layout:z.Um,FH:z.FH}}return new L("Not able to convert a sequential layout")}; +fPb=function(z,J,m,e,T,E,Z,c,W,l,w,q,d,I,O){var G=Dzs(T,d,I);if(G instanceof L)return G;var n=[],C=[];G=g.y(G);for(var K=G.next();!K.done;K=G.next()){var f=K.value;K=z;var x=T[f.LJ],V=f,zE=J;f=E;var k=Z,Ez=c,ij=W,r=l,t=w,v=Ev(x);if(v instanceof L)K=v;else{var N={layoutId:x.adLayoutMetadata.layoutId,layoutType:x.adLayoutMetadata.layoutType,A6:"adapter"};V=bFR(zE,x,V,f);V instanceof L?K=V:(K=Object.assign({},N,ZA,{wE:v,renderingContent:x.renderingContent,clientMetadata:new Zj(V),qd:qP(Ez,K)(N),adLayoutLoggingData:x.adLayoutMetadata.adLayoutLoggingData}), +K=(x=Fp(t,K,f,k.NW,Ez,ij,r,void 0,!0))?x instanceof L?x:{layout:K,Rm:x}:new L("Expecting associatedInPlayerSlot"))}if(K instanceof L)return K;n.push(K.layout);C.push(K.Rm)}T={layoutId:m.adLayoutMetadata.layoutId,layoutType:m.adLayoutMetadata.layoutType,A6:"core"};J=[new AT(Number(m.driftRecoveryMs)),new DS(d),new bR(I),new rG(Tc(J)),new ve(q),new gO({})];O&&J.push(new Jk({}));return{Um:Object.assign({},T,e,{qQ:n,wE:new Map,clientMetadata:new Zj(J),qd:qP(c,z)(T)}),FH:C}}; +SfR=function(z,J,m,e,T,E,Z,c,W,l,w,q){if(!p6(m))return new L("Invalid PlayerBytesAdLayoutRenderer");var d=Ev(m);if(d instanceof L)return d;var I={layoutId:m.adLayoutMetadata.layoutId,layoutType:m.adLayoutMetadata.layoutType,A6:"core"},O=g.P(m.renderingContent,qW);if(!O)return new L("Invalid rendering content for DAI media layout");O=v3(O,!1);w={Cl:O,LJ:0,ut:w,g$:Math.min(w+O.videoLengthSeconds*1E3,q),IA:new aA(0,[O.videoLengthSeconds])};var G;q=(G=Number(m.driftRecoveryMs))!=null?G:void 0;J=bFR(J, +m,w,T,q);if(J instanceof L)return J;z=Object.assign({},I,e,{wE:d,renderingContent:m.renderingContent,clientMetadata:new Zj(J),qd:qP(E,z)(I),adLayoutLoggingData:m.adLayoutMetadata.adLayoutLoggingData});return(T=Fp(Z,z,T,W,E,l,c,void 0,!0))?T instanceof L?T:{layout:z,Rm:T}:new L("Expecting associatedInPlayerSlot")}; +nrq=function(z,J,m,e,T,E,Z,c,W,l,w,q,d,I,O,G){var n=eT(m,E,T.NW);if(n instanceof L)return n;if(g.P(m.renderingContent,qW)){W=$zu([m],T,W);if(W instanceof L)return W;if(W.length!==1)return new L("Only expected one media layout.");z=grq(z,J,m,n,W[0],void 0,"core",e,E,Z,c,l,d,I,O,T.NW,q,void 0,G);return z instanceof L?z:{layout:z.layout,FH:z.Rm?[z.Rm]:[]}}var C=g.P(m.renderingContent,lr);if(C){if(!Jm(m.adLayoutMetadata))return new L("Invalid ad layout metadata");if(!wR(C))return new L("Invalid sequential layout"); +C=C.sequentialLayouts.map(function(K){return K.playerBytesAdLayoutRenderer}); +z=xzu(z,J,m.adLayoutMetadata,n,C,e,E,T,W,Z,c,l,w,q,O,d,I,G);return z instanceof L?z:{layout:z.Um,FH:z.FH}}return new L("Not able to convert a sequential layout")}; +xzu=function(z,J,m,e,T,E,Z,c,W,l,w,q,d,I,O,G,n,C){var K=new eS({current:null}),f=$zu(T,c,W);if(f instanceof L)return f;W=[];for(var x=[],V=void 0,zE=0;zE0&&(zE.push(C),zE.push(new mj(V.adPodSkipTarget)));(E=l.get(V.externalVideoId))&&zE.push(new uR(E));E=zE}else E= +new L("Invalid vod media renderer")}if(E instanceof L)return E;z=Object.assign({},Z,e,{wE:f,renderingContent:m.renderingContent,clientMetadata:new Zj(E),qd:qP(w,z)(Z),adLayoutLoggingData:m.adLayoutMetadata.adLayoutLoggingData});m=g.P(m.renderingContent,qW);if(!m||!W3(m))return new L("Invalid meida renderer");q=UU(q,m.externalVideoId);q.instreamVideoAdRenderer=m;q.Ya="AD_PLACEMENT_KIND_START";return I?(W=Fp(d,z,W,G,w,n,O,C,!1),W instanceof L?W:oru(z.layoutId,d)&&W?{layout:Object.assign({},z,{clientMetadata:new Zj(E.concat(new We(W)))})}: +{layout:z,Rm:W}):{layout:z}}; +M0s=function(z,J,m,e,T){if(!p6(J))return new L("Invalid PlayerBytesAdLayoutRenderer");var E=g.P(J.renderingContent,lO);if(!E||E.durationMilliseconds===void 0)return new L("Invalid endcap renderer");var Z={layoutId:J.adLayoutMetadata.layoutId,layoutType:J.adLayoutMetadata.layoutType,A6:"adapter"};e=[new Pe(E.durationMilliseconds),new Ur({impressionCommands:void 0,abandonCommands:E.abandonCommands?[{commandExecutorCommand:E.abandonCommands}]:void 0,completeCommands:E.completionCommands}),new rG(e), +new Nk("LAYOUT_TYPE_ENDCAP")];if(T){e.push(new JT(T.IA.adPodIndex-1));e.push(new $$(T.IA.adPodIndex));var c;e.push(new mj((c=T.adPodSkipTarget)!=null?c:-1))}return Object.assign({},Z,ZA,{renderingContent:J.renderingContent,clientMetadata:new Zj(e),wE:E.skipPings?new Map([["skip",E.skipPings]]):new Map,qd:qP(m,z)(Z),adLayoutLoggingData:J.adLayoutMetadata.adLayoutLoggingData})}; +Fp=function(z,J,m,e,T,E,Z,c,W){z=z.filter(function(w){return w.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&w.adSlotMetadata.triggeringSourceLayoutId===J.layoutId}); +if(z.length!==0){if(z.length!==1)return new L("Invalid InPlayer slot association for the given PlayerBytes layout");z=z[0];Z=GVf(z,E,m,e,Z);if(Z instanceof L)return Z;var l;E={slotId:z.adSlotMetadata.slotId,slotType:z.adSlotMetadata.slotType,slotPhysicalPosition:(l=z.adSlotMetadata.slotPhysicalPosition)!=null?l:1,A6:"core",slotEntryTrigger:Z.slotEntryTrigger,slotFulfillmentTriggers:Z.slotFulfillmentTriggers,slotExpirationTriggers:Z.slotExpirationTriggers};l=g.P(z.fulfillmentContent.fulfilledLayout, +qOf);if(!l||!E7q(l))return new L("Invalid InPlayerAdLayoutRenderer");Z={layoutId:l.adLayoutMetadata.layoutId,layoutType:l.adLayoutMetadata.layoutType,A6:"core"};m=eT(l,m,e);if(m instanceof L)return m;e=[];W&&e.push(new gO({}));if(l.adLayoutMetadata.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")e.push.apply(e,g.X(j6j(z.adSlotMetadata.triggerEvent,J)));else if(l.adLayoutMetadata.layoutType==="LAYOUT_TYPE_ENDCAP")e.push(new rG(Tc(z.adSlotMetadata.triggerEvent))),c&&e.push(c);else return new L("Not able to parse an SDF InPlayer layout"); +T=Object.assign({},Z,m,{renderingContent:l.renderingContent,wE:new Map,qd:qP(T,E)(Z),clientMetadata:new Zj(e),adLayoutLoggingData:l.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},E,{fulfilledLayout:T,clientMetadata:new Zj([])})}}; +j6j=function(z,J){var m=[];m.push(new rG(Tc(z)));m.push(new pK(J.layoutId));(z=FB(J.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&m.push(new nK(z));(z=FB(J.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&m.push(new eS(z));(z=FB(J.clientMetadata,"metadata_type_remote_slots_data"))&&m.push(new uR(z));(z=FB(J.clientMetadata,"metadata_type_ad_next_params"))&&m.push(new HB(z));(z=FB(J.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&m.push(new Uf(z));(z= +FB(J.clientMetadata,"metadata_type_ad_pod_info"))&&m.push(new zS(z));(J=FB(J.clientMetadata,"metadata_type_ad_video_id"))&&m.push(new TS(J));return m}; +AZq=function(z,J,m,e,T,E){function Z(l){return ig(J,l)} +var c=e.uX.inPlayerSlotId,W={layoutId:e.uX.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",A6:"core"};m={slotId:c,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,A6:"core",slotEntryTrigger:new Dl(Z,z),slotFulfillmentTriggers:[new UR(Z,c)],slotExpirationTriggers:[new RA(Z,c),new PI(Z,m)]};z=Object.assign({},W,{layoutExitNormalTriggers:[new $g(Z,z)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],NT:[],wE:new Map,clientMetadata:new Zj([new wO(e.uX), +new rG(e.adPlacementConfig),T]),qd:qP(E,m)(W),adLayoutLoggingData:e.uX.adLayoutLoggingData});return Object.assign({},m,{clientMetadata:new Zj([new ol(z)])})}; +oru=function(z,J){J=g.y(J);for(var m=J.next();!m.done;m=J.next())if(m=m.value,m.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var e=g.P(m.fulfillmentContent.fulfilledLayout,Dg);if(e&&(e=g.P(e.renderingContent,X3))&&e.associatedPlayerBytesLayoutId===z)return m}}; +GVf=function(z,J,m,e,T){var E=haz(P3(z.slotEntryTrigger,m,e),T,z,J);if(E instanceof L)return E;for(var Z=[],c=g.y(z.slotFulfillmentTriggers),W=c.next();!W.done;W=c.next()){W=P3(W.value,m,e);if(W instanceof L)return W;Z.push(W)}Z=uoq(Z,T,z,J);J=[];z=g.y(z.slotExpirationTriggers);for(T=z.next();!T.done;T=z.next()){T=P3(T.value,m,e);if(T instanceof L)return T;J.push(T)}return{slotEntryTrigger:E,slotFulfillmentTriggers:Z,slotExpirationTriggers:J}}; +haz=function(z,J,m,e){return J&&m.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&z instanceof Ku?new Cu(function(T){return ig(e,T)},m.adSlotMetadata.slotId):z}; +uoq=function(z,J,m,e){return J&&m.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?z.map(function(T){return T instanceof UR?new QP(function(E){return ig(e,E)},m.adSlotMetadata.slotId):T}):z}; +eT=function(z,J,m){for(var e=[],T=g.y(z.layoutExitNormalTriggers||[]),E=T.next();!E.done;E=T.next()){E=P3(E.value,J,m);if(E instanceof L)return E;e.push(E)}T=[];E=g.y(z.layoutExitSkipTriggers||[]);for(var Z=E.next();!Z.done;Z=E.next()){Z=P3(Z.value,J,m);if(Z instanceof L)return Z;T.push(Z)}E=[];Z=g.y(z.layoutExitMuteTriggers||[]);for(var c=Z.next();!c.done;c=Z.next()){c=P3(c.value,J,m);if(c instanceof L)return c;E.push(c)}Z=[];z=g.y(z.layoutExitUserInputSubmittedTriggers||[]);for(c=z.next();!c.done;c= +z.next()){c=P3(c.value,J,m);if(c instanceof L)return c;Z.push(c)}return{layoutExitNormalTriggers:e,layoutExitSkipTriggers:T,layoutExitMuteTriggers:E,layoutExitUserInputSubmittedTriggers:Z,NT:[]}}; +Ev=function(z){var J=g.P(z.renderingContent,qW);if(J==null?0:J.pings)return So(J.pings);z=g.P(z.renderingContent,lO);return(z==null?0:z.skipPings)?new Map([["skip",z.skipPings]]):new Map}; +bFR=function(z,J,m,e,T){J=g.P(J.renderingContent,qW);if(!J)return new L("Invalid rendering content for DAI media layout");z=[new Er(e),new KK(m.Cl.videoLengthSeconds),new Be(m.Cl.playerVars),new DS(m.ut),new bR(m.g$),new $$(m.LJ),new rG(Tc(z)),new TS(m.Cl.adVideoId),new zS(m.IA),J.sodarExtensionData&&new fK(J.sodarExtensionData),new nK({current:null}),new gO({}),new LK(B6(J.pings))].filter(NGz);T!==void 0&&z.push(new AT(T));return z}; +Dzs=function(z,J,m){z=z.map(function(W){return v3(g.P(W.renderingContent,qW),!1)}); +var e=z.map(function(W){return W.videoLengthSeconds}),T=e.map(function(W,l){return new aA(l,e)}),E=J,Z=m,c=[]; +z.forEach(function(W,l){Z=Math.min(E+W.videoLengthSeconds*1E3,m);tm(W.playerVars,T[l]);c.push({Cl:W,ut:E,g$:Z,LJ:l,IA:T[l]});E=Z}); +return c}; +$zu=function(z,J,m){for(var e=[],T=g.y(z),E=T.next();!E.done;E=T.next())if(E=g.P(E.value.renderingContent,qW)){if(!W3(E))return new L("Invalid vod media renderer");e.push(V04(E))}T=e.map(function(q){return q.Gz}); +E=[];for(var Z=0,c=0;c0?r:-1;else if(N=g.P(v,lO)){v=rZ1(z,J,m,N,E,G,c,k,r);if(v instanceof L){I=v;break a}v= +v(d);n.push(v.jI);C=[].concat(g.X(v.HB),g.X(C));K=[].concat(g.X(v.Wz),g.X(K));v.Rm&&(ij=[v.Rm].concat(g.X(ij)))}else if(N=g.P(v,IR)){if(I===void 0){I=new L("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:N});break a}v=mk1(z,J,m,E,N,zE,c,I,G,Q6(w,"supports_multi_step_on_desktop"));if(v instanceof L){I=v;break a}v=v(d);n.push(v.jI);v.Rm&&ij.push(v.Rm);C=[].concat(g.X(v.HB),g.X(C));K=[].concat(g.X(v.Wz),g.X(K));f=[].concat(g.X(v.eF),g.X(f));x=[].concat(g.X(v.T5), +g.X(x));V=[zE].concat(g.X(V))}else if(v=g.P(v,OU)){v=e5q(z,J,m,E,v,zE,c,G);if(v instanceof L){I=v;break a}v=v(d);n.push(v.jI);v.Rm&&ij.push(v.Rm);K=[].concat(g.X(v.Wz),g.X(K))}else{I=new L("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}I={qQ:n,layoutExitSkipTriggers:C,layoutExitUserInputSubmittedTriggers:f,NT:x,layoutExitMuteTriggers:K,oD:V,FH:ij}}}else a:if(G=lSu(e,m,w),G instanceof L)I=G;else{n=0;C=[];K=[];f=[];x=[];V=[];zE=[];k=new Y$({current:null});Ez=new eS({current:null}); +ij=!1;t=[];r=-1;O=g.y(e);for(v=O.next();!v.done;v=O.next())if(v=v.value,g.P(v,dR)){v=z5u(J,m,g.P(v,dR),c);if(v instanceof L){I=v;break a}v=v(d);C.push(v.jI);K=[].concat(g.X(v.HB),g.X(K));f=[].concat(g.X(v.Wz),g.X(f));v.Rm&&(t=[v.Rm].concat(g.X(t)))}else if(g.P(v,qW)){r=sU(g.P(v,qW),m,w);if(r instanceof Eq){I=new L(r);break a}v=new aA(n,G);v=we4(J,r.layoutId,r.fn,m,rR(r.playerVars,r.m8,Z,l,v),r.Gz,E,v,c(d),Ez,W.get(r.fn.externalVideoId),void 0,q);n++;C.push(v.jI);K=[].concat(g.X(v.HB),g.X(K));f=[].concat(g.X(v.Wz), +g.X(f));ij||(zE.push(Ez),ij=!0);r=(r=r.fn.adPodSkipTarget)&&r>0?r:-1}else if(g.P(v,lO)){v=rZ1(z,J,m,g.P(v,lO),E,n,c,Ez,r);if(v instanceof L){I=v;break a}v=v(d);C.push(v.jI);K=[].concat(g.X(v.HB),g.X(K));f=[].concat(g.X(v.Wz),g.X(f));v.Rm&&(t=[v.Rm].concat(g.X(t)))}else if(g.P(v,IR)){if(I===void 0){I=new L("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.P(v,IR)});break a}v=mk1(z,J,m,E,g.P(v,IR),k,c,I,n,Q6(w,"supports_multi_step_on_desktop")); +if(v instanceof L){I=v;break a}v=v(d);C.push(v.jI);v.Rm&&t.push(v.Rm);K=[].concat(g.X(v.HB),g.X(K));f=[].concat(g.X(v.Wz),g.X(f));x=[].concat(g.X(v.eF),g.X(x));V=[].concat(g.X(v.T5),g.X(V));zE=[k].concat(g.X(zE))}else if(g.P(v,OU)){v=e5q(z,J,m,E,g.P(v,OU),k,c,n);if(v instanceof L){I=v;break a}v=v(d);C.push(v.jI);v.Rm&&t.push(v.Rm);f=[].concat(g.X(v.Wz),g.X(f))}else{I=new L("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}I={qQ:C,layoutExitSkipTriggers:K,layoutExitUserInputSubmittedTriggers:x, +NT:V,layoutExitMuteTriggers:f,oD:zE,FH:t}}I instanceof L?d=I:(V=d.slotId,G=I.qQ,n=I.layoutExitSkipTriggers,C=I.layoutExitMuteTriggers,K=I.layoutExitUserInputSubmittedTriggers,f=I.oD,d=c(d),x=T?T.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",V=T?T.layoutId:v9(J.T.get(),x,V),zE={layoutId:V,layoutType:x,A6:"core"},d={layout:{layoutId:V,layoutType:x,wE:new Map,layoutExitNormalTriggers:[new VP(J.K,V)],layoutExitSkipTriggers:n,layoutExitMuteTriggers:C,layoutExitUserInputSubmittedTriggers:K,NT:[],A6:"core", +clientMetadata:new Zj([new CK(G)].concat(g.X(f))),qd:d(zE)},FH:I.FH});return d}}; +lSu=function(z,J,m){var e=[];z=g.y(z);for(var T=z.next();!T.done;T=z.next())if(T=T.value,g.P(T,qW)){T=sU(g.P(T,qW),J,m);if(T instanceof Eq)return new L(T);e.push(T.Gz)}return e}; +dkq=function(z,J,m,e,T,E,Z,c){if(!NYu(m,c===void 0?!1:c))return new L("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:m});var W=kA(m);if(W<=0)return new L("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:m});var l=new Y$({current:null}),w=P_u(z,J,m,l,e,E,Z);return qrz(z,e,E,W,T,function(q,d){var I=q.slotId,O=L6(m);q=Z(q);var G,n=(G=wV(J,e,m.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?G: +v9(J.T.get(),"LAYOUT_TYPE_MEDIA_BREAK",I);I={layoutId:n,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",A6:"core"};G=w(n,d);var C=FB(G.clientMetadata,"metadata_type_fulfilled_layout");C||IU("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");O=[new rG(e),new Pe(W),new Ur(O),l];C&&O.push(new Nk(C.layoutType));return{Ll3:{layoutId:n,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",wE:new Map,layoutExitNormalTriggers:[new VP(J.K,n)],layoutExitSkipTriggers:[new HI(J.K, +d.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new sR(J.K,d.layoutId)],NT:[],A6:"core",clientMetadata:new Zj(O),qd:q(I)},FFD:G}})}; +ISu=function(z){if(!n7b(z))return!1;var J=g.P(z.adVideoStart,pw);return J?g.P(z.linearAd,qW)&&ir(J)?!0:(IU("Invalid Sandwich with notify"),!1):!1}; +OKq=function(z){if(z.linearAds==null)return!1;z=g.P(z.adStart,pw);return z?ir(z)?!0:(IU("Invalid LASR with notify"),!1):!1}; +pe4=function(z){if(!X2u(z))return!1;z=g.P(z.adStart,pw);return z?ir(z)?!0:(IU("Invalid LASR with notify"),!1):!1}; +yc=function(z,J,m,e,T,E,Z,c,W,l){this.U=z;this.T=J;this.K=m;this.Kh=e;this.YP=T;this.S=E;this.Dn=Z;this.uV=c;this.pc=W;this.loadPolicy=l===void 0?1:l}; +BYf=function(z,J,m,e,T,E,Z,c,W,l){var w=[];if(J.length===0&&e.length===0&&m.length===0)return w;J=J.filter(c3);var q=m.filter(OcE),d=e.filter(c3),I=new Map,O=yZ1(J),G=m.some(function(H){var Pq;return(H==null?void 0:(Pq=H.adSlotMetadata)==null?void 0:Pq.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),n=m.some(function(H){var Pq; +return(H==null?void 0:(Pq=H.adSlotMetadata)==null?void 0:Pq.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),C=m.some(function(H){var Pq; +return(H==null?void 0:(Pq=H.adSlotMetadata)==null?void 0:Pq.slotType)==="SLOT_TYPE_IN_PLAYER"}),K=m.some(function(H){var Pq,KN; +return(H==null?void 0:(Pq=H.adSlotMetadata)==null?void 0:Pq.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(H==null?void 0:(KN=H.adSlotMetadata)==null?void 0:KN.slotType)==="SLOT_TYPE_ABOVE_FEED"}); +m=m.some(function(H){var Pq;return(H==null?void 0:(Pq=H.adSlotMetadata)==null?void 0:Pq.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); +if(G||n||C||K||m)l=KTf(q,J,c,T,O,z.YP.get(),z.loadPolicy,I,z.Kh.get(),z.U.get(),C,Z,W,l),l instanceof L?IU(l,void 0,void 0,{contentCpn:T}):w.push.apply(w,g.X(l));l=g.y(J);for(m=l.next();!m.done;m=l.next())m=m.value,n=yTu(z,I,m,T,E,Z,G,c,O,W,q),n instanceof L?IU(n,void 0,void 0,{renderer:m.renderer,config:m.config.adPlacementConfig,kind:m.config.adPlacementConfig.kind,contentCpn:T,daiEnabled:Z}):w.push.apply(w,g.X(n));NOu(z.Kh.get())||(E=GSz(z,d,T,c,O,I),w.push.apply(w,g.X(E)));if(z.S===null||Z&&!c.po){var f, +x,V;z=c.Cq&&J.length===1&&((f=J[0].config)==null?void 0:(x=f.adPlacementConfig)==null?void 0:x.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((V=J[0].renderer)==null?void 0:V.adBreakServiceRenderer);if(!w.length&&!z){var zE,k,Ez,ij;IU("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":J.length,contentCpn:T,"first APR kind":(zE=J[0])==null?void 0:(k=zE.config)==null?void 0:(Ez=k.adPlacementConfig)==null?void 0:Ez.kind,renderer:(ij=J[0])==null?void 0: +ij.renderer})}return w}f=e.filter(c3);w.push.apply(w,g.X(hOq(I,f,z.T.get(),z.S,T,G)));if(!w.length){var r,t,v,N;IU("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":J.length,contentCpn:T,daiEnabled:Z.toString(),"first APR kind":(r=J[0])==null?void 0:(t=r.config)==null?void 0:(v=t.adPlacementConfig)==null?void 0:v.kind,renderer:(N=J[0])==null?void 0:N.renderer})}return w}; +GSz=function(z,J,m,e,T,E){function Z(d){return qP(z.YP.get(),d)} +var c=[];J=g.y(J);for(var W=J.next();!W.done;W=J.next()){W=W.value;var l=W.renderer,w=l.sandwichedLinearAdRenderer,q=l.linearAdSequenceRenderer;w&&ISu(w)?(IU("Found AdNotify with SandwichedLinearAdRenderer"),q=g.P(w.adVideoStart,pw),w=g.P(w.linearAd,qW),H3(E,l,W.config.adPlacementConfig.kind),l=void 0,q=iF4((l=q)==null?void 0:l.layout.layoutId,z.T.get(),z.K.get(),W.config.adPlacementConfig,W.adSlotLoggingData,w,m,e,Z,T,z.loadPolicy,z.Kh.get(),z.YP.get()),q instanceof L?IU(q):c.push.apply(c,g.X(q))): +q&&(!q.adLayoutMetadata&&OKq(q)||q.adLayoutMetadata&&pe4(q))&&(IU("Found AdNotify with LinearAdSequenceRenderer"),H3(E,l,W.config.adPlacementConfig.kind),l=void 0,w=TOz((l=g.P(q.adStart,pw))==null?void 0:l.layout.layoutId,z.T.get(),z.K.get(),W.config.adPlacementConfig,W.adSlotLoggingData,q.linearAds,Jm(q.adLayoutMetadata)?q.adLayoutMetadata:void 0,m,e,Z,T,z.loadPolicy,z.Kh.get()),w instanceof L?IU(w):c.push.apply(c,g.X(w)))}return c}; +yTu=function(z,J,m,e,T,E,Z,c,W,l,w){function q(C){return qP(z.YP.get(),C)} +var d=m.renderer,I=m.config.adPlacementConfig,O=I.kind,G=m.adSlotLoggingData,n=c.po&&O==="AD_PLACEMENT_KIND_START";n=E&&!n;if(d.adsEngagementPanelRenderer!=null)return RR(J,m.elementId,O,d.adsEngagementPanelRenderer.isContentVideoEngagementPanel,d.adsEngagementPanelRenderer.adVideoId,d.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,I,G,function(C,K,f,x){var V=z.K.get(),zE=C.slotId,k=d.adsEngagementPanelRenderer;C=qP(z.YP.get(),C);return NF(V,zE,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", +new PB(k),K,f,k.impressionPings,C,d.adsEngagementPanelRenderer.adLayoutLoggingData,x)}),[]; +if(d.adsEngagementPanelLayoutViewModel)return RR(J,m.elementId,O,d.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,d.adsEngagementPanelLayoutViewModel.adVideoId,d.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,I,G,function(C,K,f,x){var V=z.K.get(),zE=C.slotId,k=d.adsEngagementPanelLayoutViewModel;C=qP(z.YP.get(),C);return Gc(V,zE,"LAYOUT_TYPE_PANEL",new tZ(k),K,f,C,d.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,x)}),[]; +if(d.actionCompanionAdRenderer!=null){if(d.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return xTu(z.T.get(),z.S,z.K.get(),d.actionCompanionAdRenderer,I,G,e,q);RR(J,m.elementId,O,d.actionCompanionAdRenderer.isContentVideoCompanion,d.actionCompanionAdRenderer.adVideoId,d.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,I,G,function(C,K,f,x){var V=z.K.get(),zE=C.slotId,k=d.actionCompanionAdRenderer;C=qP(z.YP.get(),C);return NF(V,zE,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", +new uG(k),K,f,k.impressionPings,C,d.actionCompanionAdRenderer.adLayoutLoggingData,x)})}else if(d.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(d.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return M64(z.T.get(),z.S,z.K.get(),d.topBannerImageTextIconButtonedLayoutViewModel,I,G,e,q); +RR(J,m.elementId,O,d.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,d.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,d.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,I,G,function(C,K,f,x){var V=z.K.get(),zE=C.slotId,k=d.topBannerImageTextIconButtonedLayoutViewModel;C=qP(z.YP.get(),C);return Gc(V,zE,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new V_(k),K,f,C,d.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,x)})}else if(d.imageCompanionAdRenderer)RR(J, +m.elementId,O,d.imageCompanionAdRenderer.isContentVideoCompanion,d.imageCompanionAdRenderer.adVideoId,d.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,I,G,function(C,K,f,x){var V=z.K.get(),zE=C.slotId,k=d.imageCompanionAdRenderer; +C=qP(z.YP.get(),C);return NF(V,zE,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new kr(k),K,f,k.impressionPings,C,d.imageCompanionAdRenderer.adLayoutLoggingData,x)}); +else if(d.bannerImageLayoutViewModel)RR(J,m.elementId,O,d.bannerImageLayoutViewModel.isContentVideoCompanion,d.bannerImageLayoutViewModel.adVideoId,d.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,I,G,function(C,K,f,x){var V=z.K.get(),zE=C.slotId,k=d.bannerImageLayoutViewModel;C=qP(z.YP.get(),C);return Gc(V,zE,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new LF(k),K,f,C,d.bannerImageLayoutViewModel.adLayoutLoggingData,x)}); +else if(d.shoppingCompanionCarouselRenderer)RR(J,m.elementId,O,d.shoppingCompanionCarouselRenderer.isContentVideoCompanion,d.shoppingCompanionCarouselRenderer.adVideoId,d.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,I,G,function(C,K,f,x){var V=z.K.get(),zE=C.slotId,k=d.shoppingCompanionCarouselRenderer;C=qP(z.YP.get(),C);return NF(V,zE,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new Q_(k),K,f,k.impressionPings,C,d.shoppingCompanionCarouselRenderer.adLayoutLoggingData,x)}); +else if(d.adBreakServiceRenderer){if(!$TE(m))return[];if(O==="AD_PLACEMENT_KIND_PAUSE")return bcb(z.T.get(),I,G,m.renderer.adBreakServiceRenderer,e);if(O!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&O!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return DTu(z.T.get(),I,G,m.renderer.adBreakServiceRenderer,e,T,E);c.Cq||IU("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:O,adPlacementConfig:I,daiEnabledForContentVideo:String(E),isServedFromLiveInfra:String(c.Cq),clientPlaybackNonce:c.clientPlaybackNonce}); +if(O==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!z.Dn)return new L("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!z.pc)return new L("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");z.pc.A9({adPlacementRenderer:m,contentCpn:e,NW:T});T=z.Dn.get().getCurrentTimeSec(1,!1);return XeR(z.T.get(),m.renderer.adBreakServiceRenderer,I,T,e,G,E)}if(!z.uV)return new L("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); +z.uV.A9({adPlacementRenderer:m,contentCpn:e,NW:T})}else{if(d.clientForecastingAdRenderer)return Uzj(z.T.get(),z.K.get(),I,G,d.clientForecastingAdRenderer,e,T,q);if(d.invideoOverlayAdRenderer)return Q6b(z.T.get(),z.K.get(),I,G,d.invideoOverlayAdRenderer,e,T,q);if(d.instreamAdPlayerOverlayRenderer)return kV1(z.T.get(),z.K.get(),I,G,d.instreamAdPlayerOverlayRenderer,e,q);if((d.linearAdSequenceRenderer||d.instreamVideoAdRenderer)&&n)return mzE(z.T.get(),z.K.get(),m,e,q,l,!z.Kh.get().G.W().C("html5_override_ad_video_length_killswitch")); +if(d.linearAdSequenceRenderer&&!n){if(Z)return[];H3(J,d,O);if(d.linearAdSequenceRenderer.adLayoutMetadata){if(!X2u(d.linearAdSequenceRenderer))return new L("Received invalid LinearAdSequenceRenderer.")}else if(d.linearAdSequenceRenderer.linearAds==null)return new L("Received invalid LinearAdSequenceRenderer.");if(g.P(d.linearAdSequenceRenderer.adStart,pw)){IU("Found AdNotify in LinearAdSequenceRenderer");m=g.P(d.linearAdSequenceRenderer.adStart,pw);if(!TYu(m))return new L("Invalid AdMessageRenderer."); +E=d.linearAdSequenceRenderer.linearAds;return E$b(z.U.get(),z.T.get(),z.K.get(),z.YP.get(),I,G,m,Jm(d.linearAdSequenceRenderer.adLayoutMetadata)?d.linearAdSequenceRenderer.adLayoutMetadata:void 0,E,e,T,c,q,W,z.loadPolicy,z.Kh.get())}return Wjq(z.T.get(),z.K.get(),I,G,d.linearAdSequenceRenderer.linearAds,Jm(d.linearAdSequenceRenderer.adLayoutMetadata)?d.linearAdSequenceRenderer.adLayoutMetadata:void 0,e,T,c,q,W,z.loadPolicy,z.Kh.get(),w)}if(!d.remoteSlotsRenderer||E){if(d.instreamVideoAdRenderer&& +!n){if(Z)return[];H3(J,d,O);return qfb(z.T.get(),z.K.get(),I,G,d.instreamVideoAdRenderer,e,T,c,q,W,z.loadPolicy,z.Kh.get(),z.YP.get(),w)}if(d.instreamSurveyAdRenderer)return dkq(z.T.get(),z.K.get(),d.instreamSurveyAdRenderer,I,G,e,q,Q6(z.Kh.get(),"supports_multi_step_on_desktop"));if(d.sandwichedLinearAdRenderer!=null)return n7b(d.sandwichedLinearAdRenderer)?g.P(d.sandwichedLinearAdRenderer.adVideoStart,pw)?(IU("Found AdNotify in SandwichedLinearAdRenderer"),m=g.P(d.sandwichedLinearAdRenderer.adVideoStart, +pw),TYu(m)?(E=g.P(d.sandwichedLinearAdRenderer.linearAd,qW))?cZb(m,E,I,z.U.get(),z.T.get(),z.K.get(),z.YP.get(),G,e,T,c,q,W,z.loadPolicy,z.Kh.get()):new L("Missing IVAR from Sandwich"):new L("Invalid AdMessageRenderer.")):Wjq(z.T.get(),z.K.get(),I,G,[d.sandwichedLinearAdRenderer.adVideoStart,d.sandwichedLinearAdRenderer.linearAd],void 0,e,T,c,q,W,z.loadPolicy,z.Kh.get()):new L("Received invalid SandwichedLinearAdRenderer.");if(d.videoAdTrackingRenderer!=null)return t0b(z.T.get(),z.K.get(),d.videoAdTrackingRenderer, +I,G,e,T,c.pA,q)}}return[]}; +Xp=function(z,J,m,e,T,E,Z,c){g.h.call(this);var W=this;this.T=z;this.S=J;this.KZ=e;this.Dn=T;this.Kh=E;this.Zn=Z;this.UD=c;this.K=null;m.get().addListener(this);this.addOnDisposeCallback(function(){m.mF()||m.get().removeListener(W)}); +e.get().addListener(this);this.addOnDisposeCallback(function(){e.mF()||e.get().removeListener(W)})}; +Yru=function(z,J,m){var e=z.Dn.get().getCurrentTimeSec(1,!1);z.Kh.get().G.W().AZ()&&Ti(z.Zn.get(),"sdai","onopp.1;evt."+m.event+";start."+m.startSecs.toFixed(3)+";d."+m.zt.toFixed(3));pf(z.T.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var T=z.S.get(),E=J.adPlacementRenderer.renderer.adBreakServiceRenderer,Z=J.contentCpn,c=J.adPlacementRenderer.adSlotLoggingData,W=nw(z.Kh.get()),l=z.Zn;if(T.Kh.get().G.W().experiments.j4("enable_smearing_expansion_dai")){var w=g.dv(T.Kh.get().G.W().experiments, +"max_prefetch_window_sec_for_livestream_optimization");var q=g.dv(T.Kh.get().G.W().experiments,"min_prefetch_offset_sec_for_livestream_optimization");W={h4:n$b(m),Q3:!1,cueProcessedMs:e*1E3};var d=m.startSecs+m.zt;if(e===0)W.T8=new Kz(0,d*1E3);else{q=m.startSecs-q;var I=q-e;W.T8=I<=0?new Kz(q*1E3,d*1E3):new Kz(Math.floor(e+Math.random()*Math.min(I,w))*1E3,d*1E3)}w=W}else w={h4:n$b(m),Q3:!1},d=m.startSecs+m.zt,m.startSecs<=e?W=new Kz((m.startSecs-4)*1E3,d*1E3):(q=Math.max(0,m.startSecs-e-10),W=new Kz(Math.floor(e+ +Math.random()*(W?e===0?0:Math.min(q,5):q))*1E3,d*1E3)),w.T8=W;E=VA(T,E,Z,w,c,[new al(m)]);Yi(T.Kh.get())&&Ti(l.get(),"abrsm","cpi."+m.identifier+";cps."+m.startSecs+";cpd."+m.zt+";cts."+e+";rbf."+w.T8.start);l.get().G.YH(w.T8.start/1E3-e,m.startSecs-e);return[E]})}; +Cw=function(z){var J,m=(J=FB(z.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:J.current;if(!m)return null;J=FB(z.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var e=z.layoutId,T=FB(z.clientMetadata,"metadata_type_content_cpn"),E=FB(z.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),Z=FB(z.clientMetadata,"metadata_type_player_overlay_layout_renderer"),c=FB(z.clientMetadata,"metadata_type_player_underlay_renderer"),W=FB(z.clientMetadata, +"metadata_type_ad_placement_config"),l=FB(z.clientMetadata,"metadata_type_video_length_seconds");var w=mG(z.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?FB(z.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):mG(z.clientMetadata,"metadata_type_layout_enter_ms")&&mG(z.clientMetadata,"metadata_type_layout_exit_ms")?(FB(z.clientMetadata,"metadata_type_layout_exit_ms")-FB(z.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{n3:e,contentCpn:T,FJ:m,qj:J,instreamAdPlayerOverlayRenderer:E, +playerOverlayLayoutRenderer:Z,instreamAdPlayerUnderlayRenderer:c,adPlacementConfig:W,videoLengthSeconds:l,Jq:w,inPlayerLayoutId:FB(z.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:FB(z.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; +aSb=function(z,J){return CRu(z,J)}; +Kjf=function(z,J){J=CRu(z,J);if(!J)return null;var m;J.Jq=(m=FB(z.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:m.adBreakRemainingLengthSeconds;return J}; +CRu=function(z,J){var m,e=(m=FB(z.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:m.current;if(!e)return null;m=U3q(z,J);return{hV:Hy4(z,J),adPlacementConfig:FB(z.clientMetadata,"metadata_type_ad_placement_config"),JV:m,contentCpn:FB(z.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:FB(z.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:FB(z.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:FB(z.clientMetadata, +"metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,Jq:void 0,FJ:e,n3:z.layoutId,videoLengthSeconds:FB(z.clientMetadata,"metadata_type_video_length_seconds")}}; +ay=function(z,J,m,e,T,E,Z,c,W){g.h.call(this);this.U=z;this.Y=J;this.Z=m;this.S=e;this.K=T;this.T=E;this.YP=Z;this.Kh=c;this.Ch=W;this.YZ=!0}; +BOu=function(z,J,m){return OFq(z.K.get(),J.contentCpn,J.n3,function(e){return pBj(z.T.get(),e.slotId,m,J.adPlacementConfig,J.n3,qP(z.YP.get(),e))})}; +Kw=function(z,J,m,e,T,E,Z,c){g.h.call(this);this.T=z;this.K=J;this.S=m;this.Kh=e;this.U=T;this.Ch=E;this.Dn=Z;this.Cr=c}; +BC=function(z){g.h.call(this);this.K=z}; +pf=function(z,J,m,e){z.K().y$(J,e);m=m();z=z.K();z.XM.gx("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",J,e,m);J=g.y(m);for(m=J.next();!m.done;m=J.next())a:{e=z;m=m.value;e.XM.CA("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",m);e.XM.CA("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",m);try{var T=e.K;if(g.CN(m.slotId))throw new L("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(n1(T,m))throw new L("Duplicate registration for slot.",{slotId:m.slotId,slotEntryTriggerType:m.slotEntryTrigger.triggerType}, +"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!T.kE.SN.has(m.slotType))throw new L("No fulfillment adapter factory registered for slot of type: "+m.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!T.kE.WQ.has(m.slotType))throw new L("No SlotAdapterFactory registered for slot of type: "+m.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");hk(T,"TRIGGER_CATEGORY_SLOT_ENTRY",m.slotEntryTrigger?[m.slotEntryTrigger]:[]);hk(T,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", +m.slotFulfillmentTriggers);hk(T,"TRIGGER_CATEGORY_SLOT_EXPIRATION",m.slotExpirationTriggers);var E=e.K,Z=m.slotType+"_"+m.slotPhysicalPosition,c=xb(E,Z);if(n1(E,m))throw new L("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");c.set(m.slotId,new jKs(m));E.K.set(Z,c)}catch(Ez){Ez instanceof L&&Ez.rq?(e.XM.FU("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",Ez.rq,m),IU(Ez,m,void 0,void 0,Ez.nH)):(e.XM.FU("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", +m),IU(Ez,m));break a}n1(e.K,m).Y=!0;try{var W=e.K,l=n1(W,m),w=m.slotEntryTrigger,q=W.kE.WB.get(w.triggerType);q&&(q.Ia("TRIGGER_CATEGORY_SLOT_ENTRY",w,m,null),l.Tf.set(w.triggerId,q));for(var d=g.y(m.slotFulfillmentTriggers),I=d.next();!I.done;I=d.next()){var O=I.value,G=W.kE.WB.get(O.triggerType);G&&(G.Ia("TRIGGER_CATEGORY_SLOT_FULFILLMENT",O,m,null),l.Ry.set(O.triggerId,G))}for(var n=g.y(m.slotExpirationTriggers),C=n.next();!C.done;C=n.next()){var K=C.value,f=W.kE.WB.get(K.triggerType);f&&(f.Ia("TRIGGER_CATEGORY_SLOT_EXPIRATION", +K,m,null),l.B.set(K.triggerId,f))}var x=W.kE.SN.get(m.slotType).get().build(W.S,m);l.V=x;var V=W.kE.WQ.get(m.slotType).get().build(W.Z,m);V.init();l.T=V}catch(Ez){Ez instanceof L&&Ez.rq?(e.XM.FU("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",Ez.rq,m),IU(Ez,m,void 0,void 0,Ez.nH)):(e.XM.FU("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",m),IU(Ez,m));NP(e,m,!0);break a}e.XM.CA("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",m);e.K.Ro(m);for(var zE=g.y(e.T),k=zE.next();!k.done;k= +zE.next())k.value.Ro(m);aG(e,m)}}; +ST=function(z,J,m,e,T){g.h.call(this);var E=this;this.T=z;this.S=J;this.gw=m;this.context=T;this.K=new Map;e.get().addListener(this);this.addOnDisposeCallback(function(){e.mF()||e.get().removeListener(E)})}; +aD4=function(z,J){var m=0x8000000000000;var e=0;for(var T=g.y(J.slotFulfillmentTriggers),E=T.next();!E.done;E=T.next())E=E.value,E instanceof oA?(m=Math.min(m,E.K.start),e=Math.max(e,E.K.end)):IU("Found unexpected fulfillment trigger for throttled slot.",J,null,{fulfillmentTrigger:E});e=new Kz(m,e);m="throttledadcuerange:"+J.slotId;z.K.set(m,J);z.gw.get().addCueRange(m,e.start,e.end,!1,z);aB(z.context.Kh.get())&&(J=e.start,e=e.end,T={},z.context.Df.fq("tcrr",(T.cid=m,T.sm=J,T.em=e,T)))}; +fw=function(){g.h.apply(this,arguments);this.YZ=!0;this.CB=new Map;this.K=new Map}; +DA=function(z,J){z=g.y(z.CB.values());for(var m=z.next();!m.done;m=z.next())if(m.value.layoutId===J)return!0;return!1}; +bg=function(z,J){z=g.y(z.K.values());for(var m=z.next();!m.done;m=z.next()){m=g.y(m.value);for(var e=m.next();!e.done;e=m.next())if(e=e.value,e.layoutId===J)return e}IU("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.CN(J)),layoutId:J})}; +Srb=function(){this.K=new Map}; +fSs=function(z,J){this.callback=z;this.slot=J}; +$i=function(){}; +Dkq=function(z,J,m){this.callback=z;this.slot=J;this.Dn=m}; +bKq=function(z,J,m){this.callback=z;this.slot=J;this.Dn=m;this.T=!1;this.K=0}; +$kE=function(z,J,m){this.callback=z;this.slot=J;this.Dn=m}; +gV=function(z){this.Dn=z}; +xi=function(z){g.h.call(this);this.Kw=z;this.VH=new Map}; +MF=function(z,J){for(var m=[],e=g.y(z.VH.values()),T=e.next();!T.done;T=e.next()){T=T.value;var E=T.trigger;E instanceof sR&&E.triggeringLayoutId===J&&m.push(T)}m.length?bU(z.Kw(),m):IU("Survey is submitted but no registered triggers can be activated.")}; +Az=function(z,J,m){xi.call(this,z);var e=this;this.Kh=m;J.get().addListener(this);this.addOnDisposeCallback(function(){J.mF()||J.get().removeListener(e)})}; +oy=function(z){g.h.call(this);this.K=z;this.YZ=!0;this.VH=new Map;this.Z=new Set;this.S=new Set;this.U=new Set;this.Y=new Set;this.T=new Set}; +jT=function(z){g.h.call(this);this.K=z;this.VH=new Map}; +hz=function(z,J){for(var m=[],e=g.y(z.VH.values()),T=e.next();!T.done;T=e.next())T=T.value,T.trigger.K===J.layoutId&&m.push(T);m.length&&bU(z.K(),m)}; +ug=function(z,J,m){g.h.call(this);var e=this;this.K=z;this.context=m;this.VH=new Map;J.get().addListener(this);this.addOnDisposeCallback(function(){J.mF()||J.get().removeListener(e)})}; +Vc=function(z,J,m,e,T){g.h.call(this);var E=this;this.T=z;this.gw=J;this.Dn=m;this.Ch=e;this.context=T;this.YZ=!0;this.VH=new Map;this.K=new Set;m.get().addListener(this);this.addOnDisposeCallback(function(){m.mF()||m.get().removeListener(E)})}; +g$b=function(z,J,m,e,T,E,Z,c,W,l){if(N4(z.Ch.get(),1).clientPlaybackNonce!==W)throw new L("Cannot register CueRange-based trigger for different content CPN",{trigger:m});z.VH.set(m.triggerId,{Oo:new zA(J,m,e,T),cueRangeId:E});z.gw.get().addCueRange(E,Z,c,l,z);aB(z.context.Kh.get())&&(W={},z.context.Df.fq("crr",(W.ca=J,W.tt=m.triggerType,W.st=e.slotType,W.lt=T==null?void 0:T.layoutType,W.cid=E,W.sm=Z,W.em=c,W)))}; +xkq=function(z,J){z=g.y(z.VH.entries());for(var m=z.next();!m.done;m=z.next()){var e=g.y(m.value);m=e.next().value;e=e.next().value;if(J===e.cueRangeId)return m}return""}; +PC=function(z,J){g.h.call(this);var m=this;this.U=z;this.T=new Map;this.S=new Map;this.K=null;J.get().addListener(this);this.addOnDisposeCallback(function(){J.mF()||J.get().removeListener(m)}); +var e;this.K=((e=J.get().lm)==null?void 0:e.slotId)||null}; +MSb=function(z,J){var m=[];z=g.y(z.values());for(var e=z.next();!e.done;e=z.next())e=e.value,e.slot.slotId===J&&m.push(e);return m}; +tz=function(z){g.h.call(this);this.K=z;this.YZ=!0;this.VH=new Map}; +kk=function(z,J,m){J=J.layoutId;for(var e=[],T=g.y(z.VH.values()),E=T.next();!E.done;E=T.next())if(E=E.value,E.trigger instanceof VP){var Z;if(Z=E.trigger.layoutId===J){Z=m;var c=bdR.get(E.category);Z=c?c===Z:!1}Z&&e.push(E)}e.length&&bU(z.K(),e)}; +HC=function(z){g.h.call(this);this.K=z;this.YZ=!0;this.VH=new Map}; +Uv=function(z,J,m,e,T){g.h.call(this);var E=this;this.Z=z;this.KZ=J;this.Dn=m;this.Zn=e;this.K=null;this.YZ=!0;this.VH=new Map;this.S=new Map;J.get().addListener(this);this.addOnDisposeCallback(function(){J.mF()||J.get().removeListener(E)}); +T.get().addListener(this);this.addOnDisposeCallback(function(){T.mF()||T.get().removeListener(E)})}; +o$4=function(z){z.K&&(z.T&&(z.T.stop(),z.T.start()),ATq(z,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"))}; +ATq=function(z,J){for(var m=[],e=g.y(z.VH.values()),T=e.next();!T.done;T=e.next())T=T.value,T.trigger.triggerType===J&&m.push(T);m.length>0&&bU(z.Z(),m)}; +Ry=function(z,J,m,e,T){T=T===void 0?!0:T;for(var E=[],Z=g.y(z.VH.values()),c=Z.next();!c.done;c=Z.next()){c=c.value;var W=c.trigger;if(W.triggerType===J){if(W instanceof xg||W instanceof MG||W instanceof jx){if(T&&W.breakDurationMs!==m)continue;if(!T&&W.breakDurationMs===m)continue;if(e.has(W.triggerId))continue}E.push(c)}}E.length>0&&bU(z.Z(),E)}; +jlq=function(z){z=z.adPlacementRenderer.config.adPlacementConfig;if(!z.prefetchModeConfig||!z.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;z=Number(z.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(z)||z<=0?0:Math.floor(Math.random()*z)}; +h5R=function(z){z=z.adPlacementRenderer.config.adPlacementConfig;if(z.prefetchModeConfig&&z.prefetchModeConfig.cacheFetchRefreshDurationMs&&(z=Number(z.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(z)||z<=0)))return z}; +ki=function(z){z.K=null;z.VH.clear();z.S.clear();z.T&&z.T.stop();z.U&&z.U.stop()}; +Lw=function(z){g.h.call(this);this.S=z;this.YZ=!0;this.VH=new Map;this.K=new Map;this.T=new Map}; +uJu=function(z,J){var m=[];if(J=z.K.get(J.layoutId)){J=g.y(J);for(var e=J.next();!e.done;e=J.next())(e=z.T.get(e.value.triggerId))&&m.push(e)}return m}; +Qc=function(z){g.h.call(this);this.K=z;this.VH=new Map}; +VS1=function(z,J){for(var m=[],e=g.y(z.VH.values()),T=e.next();!T.done;T=e.next())T=T.value,T.trigger instanceof Cu&&T.trigger.slotId===J&&m.push(T);m.length>=1&&bU(z.K(),m)}; +PRE=function(z,J){var m={slotId:yY(J,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],A6:"surface",clientMetadata:new Zj([])},e=Object,T=e.assign;J=v9(J,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",m.slotId);J={layoutId:J,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",wE:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],NT:[],A6:"surface", +clientMetadata:new Zj([]),qd:acq(!1,m.slotId,m.slotType,m.slotPhysicalPosition,m.A6,m.slotEntryTrigger,m.slotFulfillmentTriggers,m.slotExpirationTriggers,J,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return T.call(e,{},z,{syb:!0,slot:m,layout:J})}; +fDz=function(z,J,m,e){var T=z.kind;e=e?!1:!z.hideCueRangeMarker;switch(T){case "AD_PLACEMENT_KIND_START":return e={h4:new Kz(-0x8000000000000,-0x8000000000000),Q3:e},m!=null&&(e.T8=new Kz(-0x8000000000000,-0x8000000000000)),e;case "AD_PLACEMENT_KIND_END":return e={h4:new Kz(0x7ffffffffffff,0x8000000000000),Q3:e},m!=null&&(e.T8=new Kz(Math.max(0,J-m),0x8000000000000)),e;case "AD_PLACEMENT_KIND_MILLISECONDS":T=z.adTimeOffset;T.offsetStartMilliseconds||IU("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); +T.offsetEndMilliseconds||IU("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");z=Number(T.offsetStartMilliseconds);T=Number(T.offsetEndMilliseconds);T===-1&&(T=J);if(Number.isNaN(z)||Number.isNaN(T)||z>T)return new L("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:z,offsetEndMs:T},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",T===J&&z-500<=T);e={h4:new Kz(z,T),Q3:e};if(m!=null){z=Math.max(0,z-m);if(z===T)return e;e.T8=new Kz(z,T)}return e; +default:return new L("AdPlacementKind not supported in convertToRange.",{kind:T,adPlacementConfig:z})}}; +n$b=function(z){var J=z.startSecs*1E3;return new Kz(J,J+z.zt*1E3)}; +tSu=function(z){if(!z||!z.adPlacements&&!z.adSlots)return!1;for(var J=g.y(z.adPlacements||[]),m=J.next();!m.done;m=J.next())if(m=m.value)if(m=m.adPlacementRenderer,m!=null&&(m.config&&m.config.adPlacementConfig&&m.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;z=g.y(z.adSlots||[]);for(J=z.next();!J.done;J=z.next()){var e=m=void 0;if(((m=g.P(J.value,ur))==null?void 0:(e=m.adSlotMetadata)==null?void 0:e.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; +vC=function(z){this.Kh=z;this.T=new Map;this.K=new Map;this.S=new Map}; +yY=function(z,J){if(rV(z.Kh.get())){var m=z.T.get(J)||0;m++;z.T.set(J,m);return J+"_"+m}return g.BK(16)}; +v9=function(z,J,m){if(rV(z.Kh.get())){var e=z.K.get(J)||0;e++;z.K.set(J,e);return m+"_"+J+"_"+e}return g.BK(16)}; +ig=function(z,J){if(rV(z.Kh.get())){var m=z.S.get(J)||0;m++;z.S.set(J,m);return J+"_"+m}return g.BK(16)}; +HKu=function(z){var J=[new pK(z.n3),new XJ(z.FJ),new rG(z.adPlacementConfig),new KK(z.videoLengthSeconds),new Vk(z.Jq)];z.instreamAdPlayerOverlayRenderer&&J.push(new ZS(z.instreamAdPlayerOverlayRenderer));z.playerOverlayLayoutRenderer&&J.push(new FJ(z.playerOverlayLayoutRenderer));z.qj&&J.push(new eS(z.qj));return J}; +Uku=function(z,J,m,e,T,E){z=m.inPlayerLayoutId?m.inPlayerLayoutId:v9(E,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",z);var Z,c,W=m.instreamAdPlayerOverlayRenderer?(Z=m.instreamAdPlayerOverlayRenderer)==null?void 0:Z.adLayoutLoggingData:(c=m.playerOverlayLayoutRenderer)==null?void 0:c.adLayoutLoggingData;Z={layoutId:z,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",A6:J};return{layoutId:z,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",wE:new Map,layoutExitNormalTriggers:[new $g(function(l){return ig(E, +l)},m.n3)], +layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],NT:[],A6:J,clientMetadata:e,qd:T(Z),adLayoutLoggingData:W}}; +zu=function(z,J){var m=this;this.T=z;this.Kh=J;this.K=function(e){return ig(m.T.get(),e)}}; +pBj=function(z,J,m,e,T,E){m=new Zj([new iR(m),new rG(e)]);J=v9(z.T.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",J);e={layoutId:J,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",A6:"core"};return{layoutId:J,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",wE:new Map,layoutExitNormalTriggers:[new $g(function(Z){return ig(z.T.get(),Z)},T)], +layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],NT:[],A6:"core",clientMetadata:m,qd:E(e),adLayoutLoggingData:void 0}}; +zc=function(z,J,m,e,T){var E=HKu(e);return Uku(J,m,e,new Zj(E),T,z.T.get())}; +R5R=function(z,J,m,e,T){var E=HKu(e);E.push(new vB(e.hV));E.push(new sf(e.JV));return Uku(J,m,e,new Zj(E),T,z.T.get())}; +NF=function(z,J,m,e,T,E,Z,c,W,l){J=v9(z.T.get(),m,J);var w={layoutId:J,layoutType:m,A6:"core"},q=new Map;Z&&q.set("impression",Z);Z=[new hw(z.K,T,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];l&&Z.push(new b4(z.K,l,["normal"]));return{layoutId:J,layoutType:m,wE:q,layoutExitNormalTriggers:Z,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],NT:[],A6:"core",clientMetadata:new Zj([e,new rG(E),new pK(T)]),qd:c(w),adLayoutLoggingData:W}}; +Gc=function(z,J,m,e,T,E,Z,c,W){J=v9(z.T.get(),m,J);var l={layoutId:J,layoutType:m,A6:"core"},w=[new hw(z.K,T,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];W&&w.push(new b4(z.K,W,["normal"]));return{layoutId:J,layoutType:m,wE:new Map,layoutExitNormalTriggers:w,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],NT:[],A6:"core",clientMetadata:new Zj([e,new rG(E),new pK(T)]),qd:Z(l),adLayoutLoggingData:c}}; +WC=function(z,J,m){var e=[];e.push(new u4(z.K,m));J&&e.push(J);return e}; +cC=function(z,J,m,e,T,E,Z){var c={layoutId:J,layoutType:m,A6:"core"};return{layoutId:J,layoutType:m,wE:new Map,layoutExitNormalTriggers:Z,layoutExitSkipTriggers:[new BI(z.K,J)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],NT:[],A6:"core",clientMetadata:new Zj([new R6(e),new rG(T)]),qd:E(c),adLayoutLoggingData:e.adLayoutLoggingData}}; +QA=function(z,J,m,e,T,E,Z,c){var W={layoutId:J,layoutType:E,A6:"core"};return{layoutId:J,layoutType:E,wE:new Map,layoutExitNormalTriggers:[new $g(z.K,m)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],NT:[],A6:"core",clientMetadata:new Zj([new rG(e)].concat(g.X(Z))),qd:T(W),adLayoutLoggingData:c}}; +wV=function(z,J,m,e){if(z.Kh.get().LZ(J.kind==="AD_PLACEMENT_KIND_START"))if(m===void 0)IU("Expected SSAP layout ID in renderer",void 0,void 0,{caller:e});else return m}; +vrb=function(z,J,m,e,T,E,Z,c,W,l,w,q,d){z=lg(z,J,m,T,E,Z,c,W,q,wV(z,m,e.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),d);J=z.oD;m=new yk(z.La);e=z.layoutExitSkipTriggers;l>0&&(J.push(m),J.push(new mj(l)),e=[]);J.push(new JT(w));return{jI:{layoutId:z.layoutId,layoutType:z.layoutType,wE:z.wE,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],NT:[],A6:z.A6,clientMetadata:new Zj(J),qd:z.qd,adLayoutLoggingData:z.adLayoutLoggingData}, +HB:e,Wz:z.layoutExitMuteTriggers,eF:z.layoutExitUserInputSubmittedTriggers,T5:z.NT,Rm:z.Rm}}; +JTj=function(z,J,m,e,T,E,Z,c,W,l){J=lg(z,J,m,e,E,new Map,Z,function(w){return c(w,W)},void 0,wV(z,m,T.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); +z=new sR(z.K,J.La);m=new yk(J.La);l=new JT(l);return{jI:{layoutId:J.layoutId,layoutType:J.layoutType,wE:J.wE,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],NT:[],A6:J.A6,clientMetadata:new Zj([].concat(g.X(J.oD),[m,l])),qd:J.qd,adLayoutLoggingData:J.adLayoutLoggingData},HB:J.layoutExitSkipTriggers,Wz:J.layoutExitMuteTriggers,eF:[].concat(g.X(J.layoutExitUserInputSubmittedTriggers),[z]),T5:J.NT,Rm:J.Rm}}; +lg=function(z,J,m,e,T,E,Z,c,W,l,w){J=l!=null?l:v9(z.T.get(),"LAYOUT_TYPE_MEDIA_BREAK",J);l={layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",A6:"adapter"};c=c(J);var q=FB(c.clientMetadata,"metadata_type_fulfilled_layout");q||IU("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var d=q?q.layoutId:"";m=[new rG(m),new Pe(e),new Ur(T)];q&&m.push(new Nk(q.layoutType));w&&m.push(new $$(w));return{layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", +wE:E,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new HI(z.K,d)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],NT:[],A6:"adapter",oD:m,qd:Z(l),adLayoutLoggingData:W,Rm:c,La:d}}; +dzu=function(z,J,m,e,T,E,Z,c,W,l,w){z=kSR(z,J,"core",m,e,T,E,Z,c,W,l,void 0,w);return{layoutId:z.layoutId,layoutType:z.layoutType,wE:z.wE,layoutExitNormalTriggers:z.layoutExitNormalTriggers,layoutExitSkipTriggers:z.layoutExitSkipTriggers,layoutExitMuteTriggers:z.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:z.layoutExitUserInputSubmittedTriggers,NT:z.NT,A6:z.A6,clientMetadata:new Zj(z.WI),qd:z.qd,adLayoutLoggingData:z.adLayoutLoggingData}}; +we4=function(z,J,m,e,T,E,Z,c,W,l,w,q,d){J=kSR(z,J,"adapter",m,e,T,E,Z,c,W,w,q,d);e=J.layoutExitSkipTriggers;T=J.WI;m.adPodSkipTarget&&m.adPodSkipTarget>0&&(T.push(l),T.push(new mj(m.adPodSkipTarget)),e=[]);T.push(new JT(c.adPodIndex));m.isCritical&&(e=[new b4(z.K,J.layoutId,["error"])].concat(g.X(e)));return{jI:{layoutId:J.layoutId,layoutType:J.layoutType,wE:J.wE,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],NT:[],A6:J.A6,clientMetadata:new Zj(T), +qd:J.qd,adLayoutLoggingData:J.adLayoutLoggingData},HB:e,Wz:J.layoutExitMuteTriggers,eF:J.layoutExitUserInputSubmittedTriggers,T5:J.NT}}; +kSR=function(z,J,m,e,T,E,Z,c,W,l,w,q,d){var I={layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA",A6:m};T=[new rG(T),new zS(W),new TS(e.externalVideoId),new Er(c),new Ur({impressionCommands:e.impressionCommands,abandonCommands:e.onAbandonCommands,completeCommands:e.completeCommands,progressCommands:e.adVideoProgressCommands}),new Be(E),new nK({current:null}),new KK(Z)];(E=e.playerOverlay.instreamAdPlayerOverlayRenderer)&&T.push(new ZS(E));(Z=e.playerOverlay.playerOverlayLayoutRenderer)&&T.push(new FJ(Z)); +q&&T.push(new SS(q));(q=e.playerUnderlay)&&T.push(new iR(q));c=yY(z.T.get(),"SLOT_TYPE_IN_PLAYER");q=(q=E?E.elementId:Z==null?void 0:Z.layoutId)?q:v9(z.T.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",c);T.push(new yk(q));T.push(new GS(c));T.push(new $$(W.adPodIndex));e.adNextParams&&T.push(new HB(e.adNextParams));e.shrunkenPlayerBytesConfig&&T.push(new lR(e.shrunkenPlayerBytesConfig));e.clickthroughEndpoint&&T.push(new Uf(e.clickthroughEndpoint));e.legacyInfoCardVastExtension&&T.push(new tT(e.legacyInfoCardVastExtension)); +e.sodarExtensionData&&T.push(new fK(e.sodarExtensionData));w&&T.push(new uR(w));T.push(new LK(B6(e.pings)));W=So(e.pings);if(d){a:{d=g.y(d);for(w=d.next();!w.done;w=d.next())if(w=w.value,w.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(E=g.P(w.fulfillmentContent.fulfilledLayout,Dg))&&(E=g.P(E.renderingContent,X3))&&E.associatedPlayerBytesLayoutId===J){d=w;break a}d=void 0}d&&T.push(new ce(d))}return{layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA",wE:W,layoutExitNormalTriggers:[new VP(z.K,J)],layoutExitSkipTriggers:e.skipOffsetMilliseconds? +[new HI(z.K,q)]:[],layoutExitMuteTriggers:[new HI(z.K,q)],layoutExitUserInputSubmittedTriggers:[],NT:[],A6:m,WI:T,qd:l(I),adLayoutLoggingData:e.adLayoutLoggingData}}; +TG1=function(z,J,m,e,T,E,Z,c,W){e.every(function(w){return eP(w,[],["LAYOUT_TYPE_MEDIA"])})||IU("Unexpect subLayout type for DAI composite layout"); +J=v9(z.T.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",J);var l={layoutId:J,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",A6:"core"};return{layoutId:J,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",wE:new Map,layoutExitNormalTriggers:[new gU(z.K)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],NT:[],A6:"core",clientMetadata:new Zj([new DS(m),new bR(c),new CK(e),new rG(T),new AT(E),new gO({}),new ve(W)]),qd:Z(l)}}; +rv1=function(z){return z!=null}; +Jh=function(z,J,m){var e=this;this.T=z;this.S=J;this.Kh=m;this.K=function(T){return ig(e.T.get(),T)}}; +XeR=function(z,J,m,e,T,E,Z){if(!m.prefetchModeConfig)return new L("AdPlacementConfig for Live Prefetch is missing prefetch_config");m=m.prefetchModeConfig;e*=1E3;var c=[];if(!m.breakLengthMs)return new L("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var W=g.y(m.breakLengthMs),l=W.next();!l.done;l=W.next())if(l=l.value,Number(l)>0){var w=e+Number(m.startTimeOffsetMs),q=w+Number(m.cacheFetchSmearingDurationMs);l={h4:new Kz(q,q+Number(l)),Q3:!1,T8:new Kz(Math.floor(w+Math.random()* +Number(m.cacheFetchSmearingDurationMs)),q),cueProcessedMs:e?e:w};w=[];w.push(new Jk({}));q=[];q.push(new tw(z.K));q.push(new Ulq(z.K));Z&&w.push(new gO({}));c.push(VA(z,J,T,l,E,w,q))}return c}; +VA=function(z,J,m,e,T,E,Z){E=E===void 0?[]:E;var c=yY(z.T.get(),"SLOT_TYPE_AD_BREAK_REQUEST");Z||(Z=[],e.T8&&e.T8.start!==e.h4.start&&Z.push(new oA(z.K,m,new Kz(e.T8.start,e.h4.start),!1)),Z.push(new oA(z.K,m,new Kz(e.h4.start,e.h4.end),e.Q3)));e={getAdBreakUrl:J.getAdBreakUrl,Sn:e.h4.start,xG:e.h4.end,cueProcessedMs:e.cueProcessedMs};J=new Lu(z.K,c);E=[new jS(e)].concat(g.X(E));return{slotId:c,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:J,slotFulfillmentTriggers:Z, +slotExpirationTriggers:[new PI(z.K,m),new RA(z.K,c),new kg(z.K,c)],A6:"core",clientMetadata:new Zj(E),adSlotLoggingData:T}}; +Qlz=function(z,J,m){var e=[];m=g.y(m);for(var T=m.next();!T.done;T=m.next())e.push(Lj4(z,J,T.value));return e}; +Lj4=function(z,J,m){return m.triggeringSlotId!=null&&m.triggeringSlotId===z?m.clone(J):m}; +V6u=function(z,J,m,e,T){return v$1(z,J,m,e,T)}; +s6u=function(z,J,m,e){var T=yY(z.T.get(),"SLOT_TYPE_IN_PLAYER");return v$1(z,T,J,m,e)}; +v$1=function(z,J,m,e,T){var E=new Dl(z.K,m),Z=[new UR(z.K,J)];z=[new RA(z.K,J),new PI(z.K,e)];return{slotId:J,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:E,slotFulfillmentTriggers:Z,slotExpirationTriggers:z,A6:"core",clientMetadata:new Zj([new ol(T({slotId:J,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,A6:"core",slotEntryTrigger:E,slotFulfillmentTriggers:Z,slotExpirationTriggers:z},m))]),adSlotLoggingData:void 0}}; +qrz=function(z,J,m,e,T,E){var Z=yY(z.T.get(),"SLOT_TYPE_PLAYER_BYTES"),c=yY(z.T.get(),"SLOT_TYPE_IN_PLAYER"),W=v9(z.T.get(),"LAYOUT_TYPE_SURVEY",c);e=mO(z,J,m,e);var l=[new UR(z.K,Z)];m=[new RA(z.K,Z),new PI(z.K,m),new BI(z.K,W)];if(e instanceof L)return e;c=E({slotId:Z,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,A6:"core",slotEntryTrigger:e,slotFulfillmentTriggers:l,slotExpirationTriggers:m},{slotId:c,layoutId:W});E=c.Ll3;c=c.FFD;return[{slotId:Z,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, +slotEntryTrigger:dV(z,J,Z,e),slotFulfillmentTriggers:Iy(z,J,Z,l),slotExpirationTriggers:m,A6:"core",clientMetadata:new Zj([new ol(E),new sr(Ov(J)),new z_({g9:z.g9(J)})]),adSlotLoggingData:T},c]}; +Ov=function(z){return z.kind==="AD_PLACEMENT_KIND_START"}; +IPu=function(z,J,m,e,T){T=T?T:yY(z.T.get(),"SLOT_TYPE_IN_PLAYER");m=new Dl(z.K,m);var E=[new UR(z.K,T)];z=[new PI(z.K,J),new RA(z.K,T)];return{slotId:T,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:m,slotFulfillmentTriggers:E,slotExpirationTriggers:z,A6:"core",clientMetadata:new Zj([new ol(e({slotId:T,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,A6:"core",slotEntryTrigger:m,slotFulfillmentTriggers:E,slotExpirationTriggers:z}))])}}; +OFq=function(z,J,m,e){var T=yY(z.T.get(),"SLOT_TYPE_PLAYER_UNDERLAY");m=new Dl(z.K,m);var E=[new UR(z.K,T)];z=[new PI(z.K,J),new RA(z.K,T)];return{slotId:T,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:m,slotFulfillmentTriggers:E,slotExpirationTriggers:z,A6:"core",clientMetadata:new Zj([new ol(e({slotId:T,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,A6:"core",slotEntryTrigger:m,slotFulfillmentTriggers:E,slotExpirationTriggers:z}))])}}; +FTq=function(z,J,m,e,T,E,Z){var c=yY(z.T.get(),"SLOT_TYPE_IN_PLAYER"),W=v9(z.T.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",c);e=slu(z,e,E,Z,W);if(e instanceof L)return e;Z=[new UR(z.K,c)];T=[new PI(z.K,E),new UR(z.K,T),new vI(z.K,T)];m=qP(m,{slotId:c,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,A6:"core",slotEntryTrigger:e,slotFulfillmentTriggers:Z,slotExpirationTriggers:T});z=z.S.get();E={layoutId:W,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",A6:"core"};J={layoutId:W,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", +wE:new Map,layoutExitNormalTriggers:[new zOz(z.K,W,J.durationMs)],layoutExitSkipTriggers:[new mTq(z.K,W,J.durationMs)],NT:[new Jvq(z.K,W)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],A6:"core",clientMetadata:new Zj([new He(J)]),qd:m(E)};return{slotId:c,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,A6:"core",slotEntryTrigger:e,slotFulfillmentTriggers:Z,slotExpirationTriggers:T,clientMetadata:new Zj([new ol(J)])}}; +LTE=function(z,J,m,e,T,E){J=mO(z,J,m,e);if(J instanceof L)return J;var Z=J instanceof oA?new vdE(z.K,m,J.K):null;e=yY(z.T.get(),"SLOT_TYPE_IN_PLAYER");var c=[new UR(z.K,e)];z=[new PI(z.K,m),new RA(z.K,e)];E=E({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,A6:"core",slotEntryTrigger:J,slotFulfillmentTriggers:c,slotExpirationTriggers:z},Z);return E instanceof Eq?new L(E):{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:J,slotFulfillmentTriggers:c,slotExpirationTriggers:z, +A6:"core",clientMetadata:new Zj([new ol(E)]),adSlotLoggingData:T}}; +Rab=function(z,J,m,e){var T=yY(z.T.get(),"SLOT_TYPE_IN_PLAYER"),E=new Ku(z.K,J),Z=[new QP(z.K,T)];z=[new PI(z.K,J),new RA(z.K,T)];return{slotId:T,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:E,slotFulfillmentTriggers:Z,slotExpirationTriggers:z,A6:"core",clientMetadata:new Zj([new ol(e({slotId:T,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,A6:"core",slotEntryTrigger:E,slotFulfillmentTriggers:Z,slotExpirationTriggers:z}))]),adSlotLoggingData:m}}; +kUu=function(z,J,m,e){var T=yY(z.T.get(),"SLOT_TYPE_IN_PLAYER");m=new Dl(z.K,m);var E=[new UR(z.K,T)],Z=[new RA(z.K,T),new PI(z.K,J)];E={slotId:T,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,A6:"core",slotEntryTrigger:m,slotFulfillmentTriggers:E,slotExpirationTriggers:Z};return{slotId:T,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:m,slotFulfillmentTriggers:[new UR(z.K,T)],slotExpirationTriggers:[new PI(z.K,J),new RA(z.K,T)],A6:"core",clientMetadata:new Zj([new ol(e(E))])}}; +Hcq=function(z,J,m,e,T){var E=yY(z.T.get(),"SLOT_TYPE_IN_PLAYER");m=new fu(z.K,e,m);e=[new UR(z.K,E)];z=[new PI(z.K,J)];return{slotId:E,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:m,slotFulfillmentTriggers:e,slotExpirationTriggers:z,A6:"core",clientMetadata:new Zj([new ol(T({slotId:E,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,A6:"core",slotEntryTrigger:m,slotFulfillmentTriggers:e,slotExpirationTriggers:z}))])}}; +jk1=function(z,J,m,e,T,E){var Z=yY(z.T.get(),J);return e7(z,Z,J,new Dl(z.K,e),[new PI(z.K,m),new RA(z.K,Z),new b4(z.K,e,["error"])],T,E)}; +o71=function(z,J,m,e,T,E,Z){var c=yY(z.T.get(),J);return e7(z,c,J,new b4(z.K,T,["normal"]),[new PI(z.K,m),new RA(z.K,c),new b4(z.K,e,["error"])],E,Z)}; +g7j=function(z,J,m,e,T){var E=yY(z.T.get(),J);return e7(z,E,J,new Ku(z.K,m),[new PI(z.K,m),new RA(z.K,E)],e,T)}; +PGj=function(z,J,m,e,T){m=m?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var E=yY(z.T.get(),m);J=new Ku(z.K,J);var Z=[new UR(z.K,E)];z=[new RA(z.K,E)];return{slotId:E,slotType:m,slotPhysicalPosition:1,slotEntryTrigger:J,slotFulfillmentTriggers:Z,slotExpirationTriggers:z,A6:"core",clientMetadata:new Zj([new ol(T({slotId:E,slotType:m,slotPhysicalPosition:1,A6:"core",slotEntryTrigger:J,slotFulfillmentTriggers:Z,slotExpirationTriggers:z}))]),adSlotLoggingData:e}}; +zau=function(z,J,m,e){var T=yY(z.T.get(),"SLOT_TYPE_PLAYER_BYTES"),E=new Aw(z.K),Z=[new QP(z.K,T)];z=[new PI(z.K,J)];return{slotId:T,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:E,slotFulfillmentTriggers:Z,slotExpirationTriggers:z,A6:"core",clientMetadata:new Zj([new ol(e({slotId:T,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,A6:"core",slotEntryTrigger:E,slotFulfillmentTriggers:Z,slotExpirationTriggers:z})),new gO({})]),adSlotLoggingData:m}}; +iK4=function(z,J){return NOu(z.Kh.get())?new b4(z.K,J,["normal","error","skipped"]):new b4(z.K,J,["normal"])}; +lPq=function(z,J,m,e,T){J=iK4(z,J);z=qF(z,J,m);T=T({slotId:z.slotId,slotType:z.slotType,slotPhysicalPosition:z.slotPhysicalPosition,slotEntryTrigger:z.slotEntryTrigger,slotFulfillmentTriggers:z.slotFulfillmentTriggers,slotExpirationTriggers:z.slotExpirationTriggers,A6:z.A6});return T instanceof L?T:{Ak:Object.assign({},z,{clientMetadata:new Zj([new ol(T.layout)]),adSlotLoggingData:e}),FH:T.FH}}; +wBj=function(z,J,m,e,T,E,Z){m=cTu(z,J,m,e);if(m instanceof L)return m;Z=Z({slotId:m.slotId,slotType:m.slotType,slotPhysicalPosition:m.slotPhysicalPosition,slotEntryTrigger:m.slotEntryTrigger,slotFulfillmentTriggers:m.slotFulfillmentTriggers,slotExpirationTriggers:m.slotExpirationTriggers,A6:m.A6});if(Z instanceof L)return Z;e=[new sr(Ov(J)),new ol(Z.layout),new z_({g9:z.g9(J)})];E&&e.push(new Rl({}));return{Ak:{slotId:m.slotId,slotType:m.slotType,slotPhysicalPosition:m.slotPhysicalPosition,slotEntryTrigger:dV(z, +J,m.slotId,m.slotEntryTrigger),slotFulfillmentTriggers:Iy(z,J,m.slotId,m.slotFulfillmentTriggers),slotExpirationTriggers:m.slotExpirationTriggers,A6:m.A6,clientMetadata:new Zj(e),adSlotLoggingData:T},FH:Z.FH}}; +dV=function(z,J,m,e){return z.Kh.get().LZ(Ov(J))?new Cu(z.K,m):e}; +Iy=function(z,J,m,e){return z.Kh.get().LZ(Ov(J))?[new QP(z.K,m)]:e}; +qF=function(z,J,m){var e=yY(z.T.get(),"SLOT_TYPE_PLAYER_BYTES"),T=[new UR(z.K,e)];z=[new RA(z.K,e),new PI(z.K,m)];return{slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:J,slotFulfillmentTriggers:T,slotExpirationTriggers:z,A6:"core"}}; +cTu=function(z,J,m,e){J=mO(z,J,m,e);return J instanceof L?J:qF(z,J,m)}; +HFq=function(z,J,m,e,T,E){var Z=yY(z.T.get(),"SLOT_TYPE_FORECASTING");J=mO(z,J,m,e);if(J instanceof L)return J;e=[new UR(z.K,Z)];z=[new RA(z.K,Z),new PI(z.K,m)];return{slotId:Z,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:J,slotFulfillmentTriggers:e,slotExpirationTriggers:z,A6:"core",clientMetadata:new Zj([new ol(E({slotId:Z,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,A6:"core",slotEntryTrigger:J,slotFulfillmentTriggers:e,slotExpirationTriggers:z}))]),adSlotLoggingData:T}}; +rTR=function(z,J,m,e,T){var E=!J.hideCueRangeMarker;switch(J.kind){case "AD_PLACEMENT_KIND_START":return new Ku(z.K,m);case "AD_PLACEMENT_KIND_MILLISECONDS":return z=fDz(J,e),z instanceof L?z:T(z.h4,E);case "AD_PLACEMENT_KIND_END":return new Sx(z.K,m,E);default:return new L("Cannot construct entry trigger",{kind:J.kind})}}; +slu=function(z,J,m,e,T){return rTR(z,J,m,e,function(E,Z){return new QEz(z.K,m,E,Z,T)})}; +mO=function(z,J,m,e){return rTR(z,J,m,e,function(T,E){return new oA(z.K,m,T,E)})}; +e7=function(z,J,m,e,T,E,Z){z=[new QP(z.K,J)];return{slotId:J,slotType:m,slotPhysicalPosition:1,slotEntryTrigger:e,slotFulfillmentTriggers:z,slotExpirationTriggers:T,A6:"core",clientMetadata:new Zj([new ol(Z({slotId:J,slotType:m,slotPhysicalPosition:1,A6:"core",slotEntryTrigger:e,slotFulfillmentTriggers:z,slotExpirationTriggers:T}))]),adSlotLoggingData:E}}; +Tu=function(z,J){g.h.call(this);this.Kh=z;this.K=J;this.eventCount=0}; +EQ=function(z,J,m,e){Tu.call(this,z,J);this.Kh=z;this.Ch=m;this.context=e}; +ZZ=function(){this.K=new Map}; +ct=function(z,J){var m=this;this.currentState="wait";this.onSuccess=[];this.onFailure=[];this.currentState=z;this.result=J.result;this.error=J.error;J.promise&&J.promise.then(function(e){Fu(m,e)},function(e){iK(m,e)})}; +wH=function(z){if(Wt(z)){if(z instanceof ct)return z;if(lK(z))return new ct("wait",{promise:z})}return new ct("done",{result:z})}; +qS=function(){return new ct("wait",{})}; +dH=function(z){return new ct("fail",{error:z})}; +IC=function(z){try{return wH(z())}catch(J){return dH(J)}}; +pQ=function(z,J){var m=qS();z.onSuccess.push(function(e){try{var T=J(e);Fu(m,T)}catch(E){iK(m,E)}}); +z.onFailure.push(function(e){iK(m,e)}); +OQ(z);return m}; +yN=function(z,J){var m=qS();z.onSuccess.push(function(e){Fu(m,e)}); +z.onFailure.push(function(e){try{var T=J(e);Fu(m,T)}catch(E){iK(m,E)}}); +OQ(z);return m}; +zLq=function(z,J){var m=qS();z.onSuccess.push(function(e){try{J(),Fu(m,e)}catch(T){iK(m,T)}}); +z.onFailure.push(function(e){try{J(),iK(m,e)}catch(T){iK(m,T)}}); +OQ(z)}; +Fu=function(z,J){if(Wt(J)){if(lK(J)){J.then(function(m){Fu(z,m)},function(m){iK(z,m)}); +return}if(J instanceof ct){pQ(J,function(m){Fu(z,m)}); +yN(J,function(m){iK(z,m)}); +return}}z.currentState="done";z.result=J;OQ(z)}; +iK=function(z,J){z.currentState="fail";z.error=J;OQ(z)}; +OQ=function(z){if(z.currentState==="done"){var J=z.onSuccess;z.onSuccess=[];z.onFailure=[];J=g.y(J);for(var m=J.next();!m.done;m=J.next())m=m.value,m(z.result)}else if(z.currentState==="fail")for(J=z.onFailure,z.onSuccess=[],z.onFailure=[],J=g.y(J),m=J.next();!m.done;m=J.next())m=m.value,m(z.error)}; +mPu=function(z){return function(){return Jkq(z.apply(this,g.gu.apply(0,arguments)))}}; +Jkq=function(z){return IC(function(){return NS(z,z.next())})}; +NS=function(z,J){return J.done?wH(J.value):yN(pQ(J.value.m5,function(m){return NS(z,z.next(m))}),function(m){return NS(z,z.throw(m))})}; +eL1=function(z,J){if(z.length===0)return wH(NaN);var m=qS(),e=z.length;z.forEach(function(T,E){zLq(wH(T),function(){m.currentState==="wait"&&(J!==void 0&&J(E)&&m.currentState==="wait"?m.resolve(E):(--e,e===0&&m.resolve(NaN)))})}); +return m}; +Tvj=function(z){return z.map(function(J){return wH(J)})}; +Xu=function(z){var J=z.hours||0;var m=z.minutes||0,e=z.seconds||0;J=e+m*60+J*3600+(z.days||0)*86400+(z.weeks||0)*604800+(z.months||0)*2629800+(z.years||0)*31557600;J<=0?J={hours:0,minutes:0,seconds:0}:(z=J,J=Math.floor(z/3600),z%=3600,m=Math.floor(z/60),e=Math.floor(z%60),J={hours:J,minutes:m,seconds:e});var T=J.hours===void 0?0:J.hours;m=J.minutes===void 0?0:J.minutes;z=J.seconds===void 0?0:J.seconds;e=T>0;J=[];if(e){T=(new Intl.NumberFormat("en-u-nu-latn")).format(T);var E=["fr"],Z="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(" "); +T="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(Gu)?T.replace(",","\u00a0"):E.includes(Gu)?T.replace(",","\u202f"):Z.includes(Gu)?T.replace(",","."):T;J.push(T)}e=e===void 0?!1:e;m=(["af","be","lt"].includes(Gu)||e)&&m<10?Ebu().format(m):(new Intl.NumberFormat("en-u-nu-latn")).format(m);J.push(m);m=Ebu().format(z);J.push(m);m=":";"da fi id si sr sr-Latn".split(" ").includes(Gu)&&(m=".");return J.join(m)}; +Ebu=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; +Z1R=function(z,J){var m,e;z=((m=z.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(e=m.videoAuthorizationToken)==null?void 0:e.credentialTransferTokens)||[];for(m=0;mJ;z=m}else z=!1;return z}; +YqR=function(z){z=z.split(e4[3]);oC.f4(z,2);oC.yU(z,39);oC.jp(z,10);oC.yU(z,41);oC.jp(z,61);oC.f4(z,1);oC.yU(z,12);return z.join(e4[3])}; +g.j7=function(z,J){return z.qA+"timedtext_video?ref=player&v="+J.videoId}; +g.CUu=function(z){var J=this;this.videoData=z;z={};this.K=(z.c1a=function(){var m=[];if(g.MS.isInitialized()){var e="";J.videoData&&J.videoData.eT&&(e=J.videoData.eT+("&r1b="+J.videoData.clientPlaybackNonce));var T={};e=(T.atr_challenge=e,T);kd("bg_v",void 0,"player_att");(e=nbj(e))?(kd("bg_s",void 0,"player_att"),m.push("r1a="+e)):(kd("bg_e",void 0,"player_att"),m.push("r1c=2"))}else kd("bg_e",void 0,"player_att"),window.trayride||window.botguard?m.push("r1c=1"):m.push("r1c=4");m.push("r1d="+g.MS.getState()); +return m.join("&")},z.c6a=function(m){return"r6a="+(Number(m.c)^wY())},z.c6b=function(m){return"r6b="+(Number(m.c)^Number(g.Qt("CATSTAT",0)))},z); +this.videoData&&this.videoData.eT?this.zE=Z8(this.videoData.eT):this.zE={}}; +g.ajb=function(z){if(z.videoData&&z.videoData.eT){for(var J=[z.videoData.eT],m=g.y(Object.keys(z.K)),e=m.next();!e.done;e=m.next())e=e.value,z.zE[e]&&z.K[e]&&(e=z.K[e](z.zE))&&J.push(e);return J.join("&")}return null}; +g.hh=function(z,J){X94(z,{Jui:g.dv(J.experiments,"bg_vm_reinit_threshold"),cspNonce:J.cspNonce,qA:J.qA||""})}; +KGq=function(){var z=XMLHttpRequest.prototype.fetch;return!!z&&z.length===3}; +uK=function(z){z=z===void 0?2592E3:z;if(z>0&&!(Rhb()>(0,g.b5)()-z*1E3))return 0;z=g.jO("yt-player-quality");if(typeof z==="string"){if(z=g.VD[z],z>0)return z}else if(z instanceof Object)return z.quality;return 0}; +VN=function(){var z=g.jO("yt-player-proxima-pref");return z==null?null:z}; +Bvq=function(){var z=g.jO("yt-player-quality");if(z instanceof Object&&z.quality&&z.previousQuality){if(z.quality>z.previousQuality)return 1;if(z.quality0&&J[0]?z.getAutoplayPolicy(J[0]):z.getAutoplayPolicy("mediaelement");if(gb4[m])return gb4[m]}}catch(e){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; +LQ=function(z){return z.Bk||z.oi||z.mutedAutoplay}; +xPu=function(z,J){return LQ(z)?J!==1&&J!==2&&J!==0?"AUTOPLAY_STATUS_UNAVAILABLE":z.F_?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; +MPz=function(z,J,m){var e=J.W();z.thirdParty||(z.thirdParty={});e.ancestorOrigins&&(z.thirdParty.embeddedPlayerContext=Object.assign({},z.thirdParty.embeddedPlayerContext,{ancestorOrigins:e.ancestorOrigins}));e.C("embeds_enable_autoplay_and_visibility_signals")&&(e.Vy!=null&&(z.thirdParty.embeddedPlayerContext=Object.assign({},z.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(e.Vy)})),e.J7&&(z.thirdParty.embeddedPlayerContext=Object.assign({},z.thirdParty.embeddedPlayerContext,{visibilityFractionSource:e.J7})), +z.thirdParty.embeddedPlayerContext=Object.assign({},z.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:km(),autoplayIntended:LQ(J),autoplayStatus:xPu(J,m)}))}; +jGq=function(z,J){v2(z,2,J.xX,QN,3);v2(z,3,J.Gy,Akb,3);Lc(z,4,J.onesieUstreamerConfig);Lc(z,9,J.vt);v2(z,10,J.ll,vt,3);v2(z,15,J.reloadPlaybackParams,obj,3)}; +uBu=function(z,J){v2(z,1,J.formatId,sQ,3);Rk(z,2,J.startTimeMs);Rk(z,3,J.durationMs);Rk(z,4,J.Z_);Rk(z,5,J.D2);v2(z,9,J.z9W,hLq,3);v2(z,11,J.Wwn,rH,1);v2(z,12,J.q4,rH,1)}; +VP4=function(z,J){QJ(z,1,J.videoId);Rk(z,2,J.lmt)}; +hLq=function(z,J){if(J.HI)for(var m=0;m>31));Rk(z,16,J.ou3);Rk(z,17,J.detailedNetworkType);Rk(z,18,J.vF);Rk(z,19,J.lE);Rk(z,21,J.NG2);Rk(z,23,J.NV);Rk(z,28,J.OG);Rk(z,29,J.lcb);Rk(z,34,J.visibility);m=J.playbackRate;if(m!==void 0){var e=new ArrayBuffer(4);(new Float32Array(e))[0]=m;m=(new Uint32Array(e))[0];if(m!==void 0)for(UO(z,285),H2(z,4),e=0;e<4;)z.view.setUint8(z.pos,m&255),m>>=8,z.pos+=1,e+=1}Rk(z,36,J.gA); +v2(z,38,J.mediaCapabilities,H1q,3);Rk(z,39,J.fch);Rk(z,40,J.ZZ);Rk(z,44,J.playerState);k7(z,46,J.WF);Rk(z,48,J.pQ);Rk(z,50,J.Ow);Rk(z,51,J.P9);Rk(z,54,J.hT);if(J.qh)for(m=0;m>31));QJ(z,2,J.message)}; +zFu=function(z,J){Rk(z,1,J.clientState);v2(z,2,J.QU1,sGu,1)}; +vbu=function(z,J){Lc(z,1,J.vib);v2(z,2,J.lbF,rkR,3);v2(z,3,J.coldStartInfo,zFu,3)}; +QGq=function(z,J){Rk(z,1,J.type);Lc(z,2,J.value)}; +LGs=function(z,J){QJ(z,1,J.hl);QJ(z,12,J.deviceMake);QJ(z,13,J.deviceModel);Rk(z,16,J.clientName);QJ(z,17,J.clientVersion);QJ(z,18,J.osName);QJ(z,19,J.osVersion)}; +Jlq=function(z,J){QJ(z,1,J.name);QJ(z,2,J.value)}; +mQb=function(z,J){QJ(z,1,J.url);if(J.PD)for(var m=0;m1&&(this.Z=z[1]==="2")}; +EM=function(z,J,m,e,T){this.T=z;this.K=J;this.S=m;this.reason=e;this.RT=T===void 0?0:T}; +g.Zr=function(z,J,m,e){return new EM(g.VD[z]||0,g.VD[J]||0,m,e)}; +ia=function(z){if(FU&&z.RT)return!1;var J=g.VD.auto;return z.T===J&&z.K===J}; +WJ=function(z){return cJ[z.K||z.T]||"auto"}; +u8E=function(z,J){J=g.VD[J];return z.T<=J&&(!z.K||z.K>=J)}; +la=function(z){return"["+z.T+"-"+z.K+", override: "+(z.S+", reason: "+z.reason+"]")}; +wb=function(z,J,m){this.videoInfos=z;this.K=J;this.audioTracks=[];if(this.K){z=new Set;m==null||m({ainfolen:this.K.length});J=g.y(this.K);for(var e=J.next();!e.done;e=J.next())if(e=e.value,!e.sC||z.has(e.sC.id)){var T=void 0,E=void 0,Z=void 0;(Z=m)==null||Z({atkerr:!!e.sC,itag:e.itag,xtag:e.K,lang:((T=e.sC)==null?void 0:T.name)||"",langid:((E=e.sC)==null?void 0:E.id)||""})}else T=new g.Tv(e.id,e.sC),z.add(e.sC.id),this.audioTracks.push(T);m==null||m({atklen:this.audioTracks.length})}}; +qg=function(){g.h.apply(this,arguments);this.K=null}; +Hfj=function(z,J,m,e,T,E,Z){if(z.K)return z.K;var c={},W=new Set,l={};if(db(e)){for(var w in e.K)e.K.hasOwnProperty(w)&&(z=e.K[w],l[z.info.rb]=[z.info]);return l}w=Vob(J,e,c);E&&T({aftsrt:I1(w)});for(var q={},d=g.y(Object.keys(w)),I=d.next();!I.done;I=d.next()){I=I.value;for(var O=g.y(w[I]),G=O.next();!G.done;G=O.next()){G=G.value;var n=G.itag,C=void 0,K=I+"_"+(((C=G.video)==null?void 0:C.fps)||0);q.hasOwnProperty(K)?q[K]===!0?l[I].push(G):c[n]=q[K]:(C=OM(J,G,m,e.isLive,W),C!==!0?(Z.add(I),c[n]=C, +C==="disablevp9hfr"&&(q[K]="disablevp9hfr")):(l[I]=l[I]||[],l[I].push(G),q[K]=!0))}}E&&T({bfflt:I1(l)});for(var f in l)l.hasOwnProperty(f)&&(e=f,l[e]&&l[e][0].HA()&&(l[e]=l[e],l[e]=Pwj(J,l[e],c),l[e]=toq(l[e],c)));E&&Object.keys(c).length>0&&T({rjr:BQ(c)});J=g.y(W.values());for(e=J.next();!e.done;e=J.next())(e=m.T.get(e.value))&&--e.Hg;E&&T({aftflt:I1(l)});z.K=g.ai(l,function(x){return!!x.length}); +return z.K}; +RFb=function(z,J,m,e,T,E,Z,c){c=c===void 0?!1:c;if(J.OD&&Z&&Z.length>1&&!(J.nB>0||J.B)){for(var W=J.T||!!T,l=W&&J.ub?E:void 0,w=Vob(J,e),q=[],d=[],I={},O=0;O0&&d&&T&&(w=[Z,m],n=T.concat(d).filter(function(C){return C})); +if(n.length&&!J.FV){Ng(n,w);if(W){W=[];J=g.y(n);for(e=J.next();!e.done;e=J.next())W.push(e.value.itag);E({hbdfmt:W.join(".")})}return Aj(new wb(n,z,l))}n=epq(J);n=g.QS(n,c);if(!n){if(q[Z])return E=q[Z],Ng(E),Aj(new wb(E,z,l));W&&E({novideo:1});return Mp()}J.ED&&(n==="1"||n==="1h")&&q[m]&&(Z=Gv(q[n]),w=Gv(q[m]),w>Z?n=m:w===Z&&TSz(q[m])&&(n=m));n==="9"&&q.h&&Gv(q.h)>Gv(q["9"])&&(n="h");J.IT&&e.isLive&&n==="("&&q.H&&Gv(q["("])<1440&&(n="H");W&&E({vfmly:XU(n)});J=q[n];if(!J.length)return W&&E({novfmly:XU(n)}), +Mp();Ng(J);return Aj(new wb(J,z,l))}; +Lus=function(z,J){var m=!(!z.m&&!z.M),e=!(!z.mac3&&!z.MAC3),T=!(!z.meac3&&!z.MEAC3);z=!(!z.i&&!z.I);J.yv=z;return m||e||T||z}; +TSz=function(z){z=g.y(z);for(var J=z.next();!J.done;J=z.next())if(J=J.value,J.itag&&Eyu.has(J.itag))return!0;return!1}; +vPR=function(z){z=g.y(z);for(var J=z.next();!J.done;J=z.next())if(J.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1}; +XU=function(z){switch(z){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return z}}; +I1=function(z){var J=[],m;for(m in z)if(z.hasOwnProperty(m)){var e=m;J.push(XU(e));e=g.y(z[e]);for(var T=e.next();!T.done;T=e.next())J.push(T.value.itag)}return J.join(".")}; +ksf=function(z,J,m,e,T,E){var Z={},c={};g.CY(J,function(W,l){W=W.filter(function(w){var q=w.itag;if(!w.Nx)return c[q]="noenc",!1;if(E.GS&&w.rb==="(h"&&E.tZ)return c[q]="lichdr",!1;if(!z.U&&w.rb==="1e")return c[q]="noav1enc",!1;if(w.rb==="("||w.rb==="(h"){if(z.S&&m&&m.flavor==="widevine"){var d=w.mimeType+"; experimental=allowed";(d=!!w.Nx[m.flavor]&&!!m.K[d])||(c[q]=w.Nx[m.flavor]?"unspt":"noflv");return d}if(!nZ(z,Ye.CRYPTOBLOCKFORMAT)&&!z.Qx||z.wb)return c[q]=z.wb?"disvp":"vpsub",!1}return m&&w.Nx[m.flavor]&& +m.K[w.mimeType]?!0:(c[q]=m?w.Nx[m.flavor]?"unspt":"noflv":"nosys",!1)}); +W.length&&(Z[l]=W)}); +e&&Object.entries(c).length&&T({rjr:BQ(c)});return Z}; +toq=function(z,J){var m=Kh(z,function(e,T){return T.video.fps>32?Math.min(e,T.video.width):e},Infinity); +m32||e.video.widthz.V)return"max"+z.V;if(z.yH&&J.rb==="h"&&J.video&&J.video.qualityOrdinal>1080)return"blkhigh264";if(J.rb==="(h"&&!m.V)return"enchdr";if((e===void 0?0:e)&&rS(J)&&!z.Lh)return"blk51live";if((J.rb==="MAC3"||J.rb==="mac3")&&!z.Z)return"blkac3";if((J.rb==="MEAC3"||J.rb==="meac3")&&!z.Y)return"blkeac3";if(J.rb==="M"||J.rb==="m")return"blkaac51"; +if((J.rb==="so"||J.rb==="sa")&&!z.fh)return"blkamb";if(!z.GS&&IC1(J)&&(!m.U||J.rb!=="1e"))return"cbc";if(!m.U&&IC1(J)&&J.rb==="1e")return"cbcav1";if((J.rb==="i"||J.rb==="I")&&!z.gE)return"blkiamf";if(J.itag==="774"&&!z.wb)return"blkouh";var E,Z;if(z.nh&&(J.rb==="1"||J.rb==="1h"||m.U&&J.rb==="1e")&&((E=J.video)==null?0:E.qualityOrdinal)&&((Z=J.video)==null?void 0:Z.qualityOrdinal)>z.nh)return"av1cap";if((e=m.T.get(J.rb))&&e.Hg>0)return T.add(J.rb),"byerr";var c;if((c=J.video)==null?0:c.fps>32){if(!m.x3&& +!nZ(m,Ye.FRAMERATE))return"capHfr";if(z.O2&&J.video.qualityOrdinal>=4320)return"blk8khfr";if(ky(J)&&z.hw&&J.Nx&&J.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(z.RT&&J.RT>z.RT)return"ratecap";z=ZGq(m,J);return z!==!0?z:!0}; +Ng=function(z,J){J=J===void 0?[]:J;g.l9(z,function(m,e){var T=e.RT-m.RT;if(!m.HA()||!e.HA())return T;var E=e.video.height*e.video.width-m.video.height*m.video.width;!E&&J&&J.length>0&&(m=J.indexOf(m.rb)+1,e=J.indexOf(e.rb)+1,E=m===0||e===0?e||-1:m-e);E||(E=T);return E})}; +g.CZ=function(z,J){this.T=z;this.U=J===void 0?!1:J;this.S=this.path=this.scheme=e4[3];this.K={};this.url=e4[3]}; +KZ=function(z){a1(z);return z.S}; +BJ=function(z){return z.T?z.T.startsWith(e4[15]):z.scheme===e4[15]}; +Fs1=function(z){a1(z);return g.Bm(z.K,function(J){return J!==null})}; +Sc=function(z){a1(z);var J=decodeURIComponent(z.get(e4[16])||e4[3]).split(e4[17]);return z.path===e4[18]&&J.length>1&&!!J[1]}; +fZ=function(z,J){J=J===void 0?!1:J;a1(z);if(z.path!==e4[18]){var m=z.clone();m.set(e4[19],e4[20]);return m}var e=z.jO();m=new g.N_(e);var T=z.get(e4[21]),E=decodeURIComponent(z.get(e4[16])||e4[3]).split(e4[17]);if(T&&E&&E.length>1&&E[1])return e=m.K,z=e.replace(/^[^.]*/,e4[3]),g.Xn(m,(e.indexOf(e4[22])===0?e4[22]:e4[23])+T+e4[24]+E[1]+z),m=new g.CZ(m.toString()),m.set(e4[25],e4[20]),m;if(J)return m=z.clone(),m.set(e4[25],e4[20]),m;T=m.K.match(e4[26]);m.K.match(e4[27])?(g.Xn(m,e4[28]),e=m.toString()): +m.K.match(e4[29])?(g.Xn(m,e4[30]),e=m.toString()):(m=ECj(e),Jl(m)&&(e=m));m=new g.CZ(e);m.set(e4[31],e4[20]);T&&m.set(e4[32],e4[33]);return m}; +a1=function(z){if(z.T){if(!Jl(z.T)&&!z.T.startsWith(e4[15]))throw new g.vR(e4[34],z.T);var J=g.SJ(z.T);z.scheme=J.Z;z.S=J.K+(J.S!=null?e4[35]+J.S:e4[3]);var m=J.T;if(m.startsWith(e4[18]))z.path=e4[18],m=m.slice(14);else if(m.startsWith(e4[36]))z.path=e4[36],m=m.slice(13);else if(m.startsWith(e4[37])){var e=m.indexOf(e4[38],12),T=m.indexOf(e4[38],e+1);e>0&&T>0?(z.path=m.slice(0,T),m=m.slice(T+1)):(z.path=m,m=e4[3])}else z.path=m,m=e4[3];e=z.K;z.K=iGR(m);Object.assign(z.K,c7u(J.U.toString()));Object.assign(z.K, +e);z.K.file===e4[39]&&(delete z.K.file,z.path+=e4[40]);z.T=e4[3];z.url=e4[3];z.U&&(J=x$q(),a1(z),m=z.K[J]||null)&&(m=Wsb[0](m),z.set(J,m),z.U||x$q(e4[3]))}}; +lku=function(z){a1(z);var J=z.scheme+(z.scheme?e4[41]:e4[42])+z.S+z.path;if(Fs1(z)){var m=[];g.CY(z.K,function(e,T){e!==null&&m.push(T+e4[43]+e)}); +J+=e4[44]+m.join(e4[45])}return J}; +iGR=function(z){z=z.split(e4[38]);var J=0;z[0]||J++;for(var m={};J0?wQu(J,e.slice(0,T),e.slice(T+1)):e&&(J[e]=e4[3])}return J}; +wQu=function(z,J,m){if(J===e4[46]){var e;(e=m.indexOf(e4[43]))>=0?(J=e4[47]+m.slice(0,e),m=m.slice(e+1)):(e=m.indexOf(e4[48]))>=0&&(J=e4[47]+m.slice(0,e),m=m.slice(e+3))}z[J]=m}; +Dr=function(z){var J=g.P(z,qef)||z.signatureCipher;z={iY:!1,yP:e4[3],Le:e4[3],s:e4[3]};if(!J)return z;J=Z8(J);z.iY=!0;z.yP=J.url;z.Le=J.sp;z.s=J.s;return z}; +ba=function(z,J,m,e,T,E,Z,c,W){this.Y3=z;this.startTime=J;this.duration=m;this.ingestionTime=e;this.sourceURL=T;this.dL=W;this.endTime=J+m;this.K=Z||0;this.range=E||null;this.pending=c||!1;this.dL=W||null}; +g.$e=function(){this.segments=[];this.K=null;this.T=!0;this.S=""}; +dOR=function(z,J){if(J>z.eO())z.segments=[];else{var m=LN(z.segments,function(e){return e.Y3>=J},z); +m>0&&z.segments.splice(0,m)}}; +gb=function(z,J,m,e,T){T=T===void 0?!1:T;this.data=z;this.offset=J;this.size=m;this.type=e;this.K=(this.T=T)?0:8;this.dataOffset=this.offset+this.K}; +xe=function(z){var J=z.data.getUint8(z.offset+z.K);z.K+=1;return J}; +Mg=function(z){var J=z.data.getUint16(z.offset+z.K);z.K+=2;return J}; +AF=function(z){var J=z.data.getInt32(z.offset+z.K);z.K+=4;return J}; +o1=function(z){var J=z.data.getUint32(z.offset+z.K);z.K+=4;return J}; +jc=function(z){var J=z.data;var m=z.offset+z.K;J=J.getUint32(m)*4294967296+J.getUint32(m+4);z.K+=8;return J}; +hF=function(z,J){J=J===void 0?NaN:J;if(isNaN(J))var m=z.size;else for(m=z.K;m1?Math.ceil(T*J):Math.floor(T*J))}z.skip(1);m=xe(z)<<16|Mg(z);if(m&256){e=m&1;T=m&4;var E=m&512,Z=m&1024,c=m&2048;m=o1(z);e&&z.skip(4);T&&z.skip(4);e=(E?4:0)+(Z?4:0)+(c?4:0);for(T=0;T1?Math.ceil(Z*J):Math.floor(Z*J)),z.skip(e)}}}; +LZ=function(z){z=new DataView(z.buffer,z.byteOffset,z.byteLength);return(z=g.R1(z,0,1836476516))?g.ke(z):NaN}; +aku=function(z){var J=g.R1(z,0,1937011556);if(!J)return null;J=Qf(z,J.dataOffset+8,1635148593)||Qf(z,J.dataOffset+8,1635135537);if(!J)return null;var m=Qf(z,J.dataOffset+78,1936995172),e=Qf(z,J.dataOffset+78,1937126244);if(!e)return null;J=null;if(m)switch(m.skip(4),xe(m)){default:J=0;break;case 1:J=2;break;case 2:J=1;break;case 3:J=255}var T=m=null,E=null;if(e=Qf(z,e.dataOffset,1886547818)){var Z=Qf(z,e.dataOffset,1886546020),c=Qf(z,e.dataOffset,2037673328);if(!c&&(c=Qf(z,e.dataOffset,1836279920), +!c))return null;Z&&(Z.skip(4),m=AF(Z)/65536,E=AF(Z)/65536,T=AF(Z)/65536);z=Iku(c);z=new DataView(z.buffer,z.byteOffset+8,z.byteLength-8);return new Yeu(J,m,E,T,z)}return null}; +Qf=function(z,J,m){for(;vJ(z,J);){var e=sM(z,J);if(e.type===m)return e;J+=e.size}return null}; +g.R1=function(z,J,m){for(;vJ(z,J);){var e=sM(z,J);if(e.type===m)return e;J=rb(e.type)?J+8:J+e.size}return null}; +g.zm=function(z){if(z.data.getUint8(z.dataOffset)){var J=z.data;z=z.dataOffset+4;J=J.getUint32(z)*4294967296+J.getUint32(z+4)}else J=z.data.getUint32(z.dataOffset+4);return J}; +sM=function(z,J){var m=z.getUint32(J),e=z.getUint32(J+4);return new gb(z,J,m,e)}; +g.ke=function(z){var J=z.data.getUint8(z.dataOffset)?20:12;return z.data.getUint32(z.dataOffset+J)}; +KsE=function(z){z=new gb(z.data,z.offset,z.size,z.type,z.T);var J=xe(z);z.skip(7);var m=o1(z);if(J===0){J=o1(z);var e=o1(z)}else J=jc(z),e=jc(z);z.skip(2);for(var T=Mg(z),E=[],Z=[],c=0;c122)return!1}return!0}; +rb=function(z){return z===1701082227||z===1836019558||z===1836019574||z===1835297121||z===1835626086||z===1937007212||z===1953653094||z===1953653099||z===1836475768}; +BSs=function(z){z.skip(4);return{RC4:hF(z,0),value:hF(z,0),timescale:o1(z),gGb:o1(z),Z36:o1(z),id:o1(z),HH:hF(z),offset:z.offset}}; +g.Ses=function(z){var J=Qf(z,0,1701671783);if(!J)return null;var m=BSs(J),e=m.RC4;m=UM(m.HH);if(z=Qf(z,J.offset+J.size,1701671783))if(z=BSs(z),z=UM(z.HH),m&&z){J=g.y(Object.keys(z));for(var T=J.next();!T.done;T=J.next())T=T.value,m[T]=z[T]}return m?new tF(m,e):null}; +Je=function(z,J){for(var m=Qf(z,0,J);m;){var e=m;e.type=1936419184;e.data.setUint32(e.offset+4,1936419184);m=Qf(z,m.offset+m.size,J)}}; +g.ml=function(z,J){for(var m=0,e=[];vJ(z,m);){var T=sM(z,m);T.type===J&&e.push(T);m=rb(T.type)?m+8:m+T.size}return e}; +fkz=function(z,J){var m=g.R1(z,0,1937011556),e=g.R1(z,0,1953654136);if(!m||!e||z.getUint32(m.offset+12)>=2)return null;var T=new DataView(J.buffer,J.byteOffset,J.length),E=g.R1(T,0,1937011556);if(!E)return null;J=T.getUint32(E.dataOffset+8);e=T.getUint32(E.dataOffset+12);if(e!==1701733217&&e!==1701733238)return null;e=new OGj(z.byteLength+J);ua(e,z,0,m.offset+12);e.data.setInt32(e.offset,2);e.offset+=4;ua(e,z,m.offset+16,m.size-16);ua(e,T,T.byteOffset+E.dataOffset+8,J);ua(e,z,m.offset+m.size,z.byteLength- +(m.offset+m.size));m=g.y([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(T=m.next();!T.done;T=m.next())T=g.R1(z,0,T.value),e.data.setUint32(T.offset,T.size+J);z=g.R1(e.data,0,1953654136);e.data.setUint32(z.offset+16,2);return e.data}; +DOf=function(z){var J=g.R1(z,0,1937011556);if(!J)return null;var m=z.getUint32(J.dataOffset+12);if(m!==1701733217&&m!==1701733238)return null;J=Qf(z,J.offset+24+(m===1701733217?28:78),1936289382);if(!J)return null;m=Qf(z,J.offset+8,1935894637);if(!m||z.getUint32(m.offset+12)!==1667392371)return null;J=Qf(z,J.offset+8,1935894633);if(!J)return null;J=Qf(z,J.offset+8,1952804451);if(!J)return null;m=new Uint8Array(16);for(var e=0;e<16;e++)m[e]=z.getInt8(J.offset+16+e);return m}; +eF=function(z,J){this.K=z;this.pos=0;this.start=J||0}; +Tm=function(z){return z.pos>=z.K.byteLength}; +co=function(z,J,m){var e=new eF(m);if(!EI(e,z))return!1;e=Zh(e);if(!Fc(e,J))return!1;for(z=0;J;)J>>>=8,z++;J=e.start+e.pos;var T=i0(e,!0);e=z+(e.start+e.pos-J)+T;e=e>9?bGq(e-9,8):bGq(e-2,1);z=J-z;m.setUint8(z++,236);for(J=0;Jm;T++)m=m*256+dt(z),e*=128;return J?m-e:m}; +l0=function(z){var J=i0(z,!0);z.pos+=J}; +xOu=function(z){if(!Fc(z,440786851,!0))return null;var J=z.pos;i0(z,!1);var m=i0(z,!0)+z.pos-J;z.pos=J+m;if(!Fc(z,408125543,!1))return null;i0(z,!0);if(!Fc(z,357149030,!0))return null;var e=z.pos;i0(z,!1);var T=i0(z,!0)+z.pos-e;z.pos=e+T;if(!Fc(z,374648427,!0))return null;var E=z.pos;i0(z,!1);var Z=i0(z,!0)+z.pos-E,c=new Uint8Array(m+12+T+Z),W=new DataView(c.buffer);c.set(new Uint8Array(z.K.buffer,z.K.byteOffset+J,m));W.setUint32(m,408125543);W.setUint32(m+4,33554431);W.setUint32(m+8,4294967295); +c.set(new Uint8Array(z.K.buffer,z.K.byteOffset+e,T),m+12);c.set(new Uint8Array(z.K.buffer,z.K.byteOffset+E,Z),m+12+T);return c}; +In=function(z){var J=z.pos;z.pos=0;var m=1E6;EI(z,[408125543,357149030,2807729])&&(m=Wo(z));z.pos=J;return m}; +Ml1=function(z,J){var m=z.pos;z.pos=0;if(z.K.getUint8(z.pos)!==160&&!OI(z)||!Fc(z,160))return z.pos=m,NaN;i0(z,!0);var e=z.pos;if(!Fc(z,161))return z.pos=m,NaN;i0(z,!0);dt(z);var T=dt(z)<<8|dt(z);z.pos=e;if(!Fc(z,155))return z.pos=m,NaN;e=Wo(z);z.pos=m;return(T+e)*J/1E9}; +OI=function(z){if(!A7j(z)||!Fc(z,524531317))return!1;i0(z,!0);return!0}; +A7j=function(z){if(z.Vo()){if(!Fc(z,408125543))return!1;i0(z,!0)}return!0}; +EI=function(z,J){for(var m=0;m0){var e=c7u(J.substring(m+1));g.CY(e,function(T,E){this.set(E,T)},z); +J=J.substring(0,m)}J=iGR(J);g.CY(J,function(T,E){this.set(E,T)},z)}; +jBu=function(z){var J=z.base.jO(),m=[];g.CY(z.K,function(T,E){m.push(E+"="+T)}); +if(!m.length)return J;var e=m.join("&");z=Fs1(z.base)?"&":"?";return J+z+e}; +y0=function(z,J){var m=new g.CZ(J);(J=m.get("req_id"))&&z.set("req_id",J);g.CY(z.K,function(e,T){m.set(T,null)}); +return m}; +hpb=function(){this.U=this.S=this.K=this.timedOut=this.started=this.Z=this.T=0}; +Nx=function(z){z.Z=(0,g.b5)();z.started=0;z.timedOut=0;z.K=0}; +Gm=function(z,J){var m=z.started+z.K*4;J&&(m+=z.S);m=Math.max(0,m-3);return Math.pow(1.6,m)}; +Xc=function(z,J){z[J]||(z[J]=new hpb);return z[J]}; +na=function(z){this.B=this.V=this.Z=this.T=0;this.X=this.Y=!1;this.K=z;this.S=z.clone()}; +uQ1=function(z,J,m){if(BJ(z.K))return!1;var e=Xc(m,KZ(z.K));if(e.timedOut<1&&e.K<1)return!1;e=e.timedOut+e.K;z=YY(z,J);m=Xc(m,KZ(z));return m.timedOut+m.K+01?J=J.jg:(m=Xc(m,an(z,z.aF(J,m),J)),J=Math.max(z.Z,m.timedOut)+J.LG*(z.T-z.Z)+.25*z.V,J=J>3?1E3*Math.pow(1.6,J-3):0);return J===0?!0:z.B+J<(0,g.b5)()}; +Vl4=function(z,J,m){z.K.set(J,m);z.S.set(J,m);z.U&&z.U.set(J,m)}; +POq=function(z,J,m,e,T){++z.T;J&&++z.Z;KZ(m.base).startsWith("redirector.")&&(z.K=z.S.clone(),delete z.U,e.xq&&delete T[KZ(z.K)])}; +Bo=function(z){return z?(z.itag||"")+";"+(z.lmt||0)+";"+(z.xtags||""):""}; +SF=function(z,J,m,e){this.initRange=m;this.indexRange=e;this.K=null;this.S=!1;this.Y=0;this.U=this.GW=this.T=null;this.info=J;this.QH=new na(z)}; +fa=function(z,J){this.start=z;this.end=J;this.length=J-z+1}; +Dh=function(z){z=z.split("-");var J=Number(z[0]),m=Number(z[1]);if(!isNaN(J)&&!isNaN(m)&&z.length===2&&(z=new fa(J,m),!isNaN(z.start)&&!isNaN(z.end)&&!isNaN(z.length)&&z.length>0))return z}; +b0=function(z,J){return new fa(z,z+J-1)}; +tls=function(z){return z.end==null?{start:String(z.start)}:{start:String(z.start),end:String(z.end)}}; +$Y=function(z){if(!z)return new fa(0,0);var J=Number(z.start);z=Number(z.end);if(!isNaN(J)&&!isNaN(z)&&(J=new fa(J,z),J.length>0))return J}; +gt=function(z,J,m,e,T,E,Z,c,W,l,w,q){e=e===void 0?"":e;this.type=z;this.K=J;this.range=m;this.source=e;this.xx=w;this.clipId=q===void 0?"":q;this.B=[];this.V="";this.Y3=-1;this.Ry=this.fh=0;this.V=e;this.Y3=T>=0?T:-1;this.startTime=E||0;this.duration=Z||0;this.T=c||0;this.S=W>=0?W:this.range?this.range.length:NaN;this.Z=this.range?this.T+this.S===this.range.length:l===void 0?!!this.S:l;this.range?(this.U=this.startTime+this.duration*this.T/this.range.length,this.X=this.duration*this.S/this.range.length, +this.Y=this.U+this.X):HGq(this)}; +HGq=function(z){z.U=z.startTime;z.X=z.duration;z.Y=z.U+z.X}; +UOu=function(z,J,m){var e=!(!J||J.K!==z.K||J.type!==z.type||J.Y3!==z.Y3);return m?e&&!!J&&(z.range&&J.range?J.range.end===z.range.end:J.range===z.range)&&J.T+J.S===z.T+z.S:e}; +xY=function(z){return z.type===1||z.type===2}; +Mx=function(z){return z.type===3||z.type===6}; +Ae=function(z,J){return z.K===J.K?z.range&&J.range?z.range.start+z.T+z.S===J.range.start+J.T:z.Y3===J.Y3?z.T+z.S===J.T:z.Y3+1===J.Y3&&J.T===0&&z.Z:!1}; +kkz=function(z,J){return z.Y3!==J.Y3&&J.Y3!==z.Y3+1||z.type!==J.type?!1:Ae(z,J)?!0:Math.abs(z.U-J.U)<=1E-6&&z.Y3===J.Y3?!1:Rp4(z,J)}; +Rp4=function(z,J){return Ae(z,J)||Math.abs(z.Y-J.U)<=1E-6||z.Y3+1===J.Y3&&J.T===0&&z.Z?!0:!1}; +on=function(z){return z.Y3+(z.Z?1:0)}; +Ls1=function(z){z.length===1||g.ag(z,function(m){return!!m.range}); +for(var J=1;J=J.range.start+J.T&&z.range.start+z.T+z.S<=J.range.start+J.T+J.S:z.Y3===J.Y3&&z.T>=J.T&&(z.T+z.S<=J.T+J.S||J.Z)}; +mUz=function(z,J){return z.K!==J.K?!1:z.type===4&&J.type===3&&z.K.bC()?(z=z.K.EK(z),aS(z,function(m){return mUz(m,J)})):z.Y3===J.Y3&&!!J.S&&J.T+J.S>z.T&&J.T+J.S<=z.T+z.S}; +he=function(z,J){var m=J.Y3;z.V="updateWithSegmentInfo";z.Y3=m;if(z.startTime!==J.startTime||z.duration!==J.duration)z.startTime=J.startTime+z.fh,z.duration=J.duration,HGq(z)}; +u0=function(z,J){var m=this;this.s2=z;this.U=this.K=null;this.Z=this.bU=NaN;this.aF=this.requestId=null;this.So={MTi:function(){return m.range}}; +this.QH=z[0].K.QH;this.T=J||"";this.s2[0].range&&this.s2[0].S>0&&(QBu(z)?(this.range=Ls1(z),this.S=this.range.length):(this.range=this.s2[this.s2.length-1].range,this.S=vyb(z)))}; +V0=function(z){return!xY(z.s2[z.s2.length-1])}; +Po=function(z){return z.s2[z.s2.length-1].type===4}; +g.te=function(z,J,m){m=z.aF===null?z.QH.aF(J,m,z.s2[0].type):z.aF;if(z.K){J=m?fZ(z.K,J.DX):z.K;var e=new pa(J);e.get("alr")||e.set("alr","yes");z.T&&oy1(e,z.T)}else/http[s]?:\/\//.test(z.T)?e=new pa(new g.CZ(z.T)):(e=Ca(z.QH,m,J),z.T&&oy1(e,z.T));(J=z.range)?e.set("range",J.toString()):z.s2[0].K.Ff()&&z.s2.length===1&&z.s2[0].T&&e.set("range",z.s2[0].T+"-");z.requestId&&e.set("req_id",z.requestId);isNaN(z.bU)||e.set("headm",z.bU.toString());isNaN(z.Z)||e.set("mffa",z.Z+"ms");z.urlParams&&g.CY(z.urlParams, +function(T,E){e.set(E,T)}); +return e}; +e9q=function(z){if(z.range)return z.S;z=z.s2[0];return Math.round(z.X*z.K.info.RT)}; +T7E=function(z,J){return Math.max(0,z.s2[0].U-J)}; +Ho=function(z,J,m,e,T,E){E=E===void 0?0:E;SF.call(this,z,J,e,void 0);this.Z=m;this.Sd=E;this.index=T||new g.$e}; +E_4=function(z,J,m,e,T){this.Y3=z;this.startSecs=J;this.zt=m;this.K=e||NaN;this.T=T||NaN}; +UI=function(z,J,m){for(;z;z=z.parentNode)if(z.attributes&&(!m||z.nodeName===m)){var e=z.getAttribute(J);if(e)return e}return""}; +Rn=function(z,J){for(;z;z=z.parentNode){var m=z.getElementsByTagName(J);if(m.length>0)return m[0]}return null}; +Z2z=function(z){if(!z)return 0;var J=z.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return J?(Number(J[2])|0)*3600+(Number(J[4])|0)*60+(Number(J[6])|0):Number(z)|0}; +F94=function(z){return z.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?z+"Z":z}; +kY=function(){this.K=[];this.T=null;this.Y=0;this.S=[];this.Z=!1;this.V="";this.U=-1}; +i21=function(z){var J=z.S;z.S=[];return J}; +coq=function(){this.U=[];this.K=null;this.T={};this.S={}}; +q2q=function(z,J){var m=[];J=Array.from(J.getElementsByTagName("SegmentTimeline"));J=g.y(J);for(var e=J.next();!e.done;e=J.next()){e=e.value;var T=e.parentNode.parentNode,E=null;T.nodeName==="Period"?E=W9q(z):T.nodeName==="AdaptationSet"?(T=T.getAttribute("id")||T.getAttribute("mimetype")||"",E=lUu(z,T)):T.nodeName==="Representation"&&(T=T.getAttribute("id")||"",E=wzu(z,T));if(E==null)return;E.update(e);g.TC(m,i21(E))}g.TC(z.U,m);m14(z.U,function(Z){return Z.startSecs*1E3+Z.K})}; +dUu=function(z){z.K&&(z.K.K=[]);g.CY(z.T,function(J){J.K=[]}); +g.CY(z.S,function(J){J.K=[]})}; +W9q=function(z){z.K||(z.K=new kY);return z.K}; +lUu=function(z,J){z.T[J]||(z.T[J]=new kY);return z.T[J]}; +wzu=function(z,J){z.S[J]||(z.S[J]=new kY);return z.S[J]}; +Q0=function(z){var J=z===void 0?{}:z;z=J.Sd===void 0?0:J.Sd;var m=J.zC===void 0?!1:J.zC;var e=J.DJ===void 0?0:J.DJ;var T=J.Jp===void 0?0:J.Jp;var E=J.Ni===void 0?Infinity:J.Ni;var Z=J.AL===void 0?0:J.AL;var c=J.Ol===void 0?!1:J.Ol;J=J.fU===void 0?!1:J.fU;g.$e.call(this);this.wJ=this.O7=-1;this.Ou=z;this.DJ=e;this.zC=m;this.Jp=T;this.Ni=E;this.AL=Z;((this.Ol=c)||isFinite(E)&&this.Ni>0)&&m&&La&&(this.T=!1,this.S="postLive");this.fU=J}; +vo=function(z,J){return Wu(z.segments,function(m){return J-m.Y3})}; +sI=function(z,J,m){m=m===void 0?{}:m;Ho.call(this,z,J,"",void 0,void 0,m.Sd||0);this.index=new Q0(m)}; +rt=function(z,J,m){SF.call(this,z,J);this.Z=m;z=this.index=new g.$e;z.T=!1;z.S="d"}; +IUz=function(z,J,m){var e=z.index.QY(J),T=z.index.getStartTime(J),E=z.index.getDuration(J);m?E=m=0:m=z.info.RT*E;return new u0([new gt(3,z,void 0,"otfCreateRequestInfoForSegment",J,T,E,0,m)],e)}; +O2q=function(z,J){if(!z.index.isLoaded()){var m=[],e=J.U;J=J.Z.split(",").filter(function(w){return w.length>0}); +for(var T=0,E=0,Z=0,c=/^(\d+)/,W=/r=(\d+)/,l=0;le)return null}else if(m&&(m=z.K,e=J.K,m=!(e.Eu.length?aJz(m,e.Eu[0]):1)),m)return null;m=new gt(z.info.type,z.info.K,z.info.range,z.info.V,z.info.Y3,z.info.startTime,z.info.duration,z.info.T,z.info.S,z.info.Z,z.info.xx,z.info.clipId);e=J.info;m.S+=e.S;m.range&&(m.X+=e.X);m.Y=e.Y;m.Z=e.Z;e=new GU;X9(e,z.K);X9(e,J.K);m=new z4(m,e);m.T= +J.T||z.T;m.S=z.S!==-1?z.S:J.S;m.U=z.U!==-1?z.U:J.U;return m}; +g.mm=function(z){g.z1(z.info.K.info)||z.info.K.info.hp();if(z.S!==-1)return z.S;if(z.T&&NSb(z.T))return z.S=NSb(z.T),z.S;if(g.z1(z.info.K.info)){var J=z.C1();for(var m=z.info.K.K,e=NaN,T=NaN,E=0;vJ(J,E);){var Z=sM(J,E);Z.type===1936286840?T=Z.data.getUint32(Z.dataOffset+8):Z.type===1836476516?T=g.ke(Z):Z.type===1952867444&&isNaN(e)&&(e=g.zm(Z));E=rb(Z.type)?E+8:E+Z.size}!T&&m&&(T=LZ(m));J=e/T}else J=new eF(z.C1()),m=z.Z?J:new eF(new DataView(z.info.K.K.buffer)),e=In(m),m=J.pos,J.pos=0,OI(J)?Fc(J, +231)?(e=Wo(J)*e/1E9,J.pos=m,J=e):(J.pos=m,J=NaN):(J.pos=m,J=NaN);z.S=J||z.info.U;return z.S}; +N7b=function(z,J){z.timestampOffset>0&&(J-=z.timestampOffset);var m=g.mm(z)+J;yoq(z,m);z.timestampOffset=J}; +yoq=function(z,J){g.z1(z.info.K.info)||z.info.K.info.hp();z.S=J;if(g.z1(z.info.K.info)){var m=z.C1();z=z.info.K.K;for(var e=NaN,T=NaN,E=0;vJ(m,E);){var Z=sM(m,E);isNaN(e)&&(Z.type===1936286840?e=Z.data.getUint32(Z.dataOffset+8):Z.type===1836476516&&(e=g.ke(Z)));if(Z.type===1952867444){!e&&z&&(e=LZ(z));var c=g.zm(Z);isNaN(T)&&(T=Math.round(J*e)-c);var W=Z;c+=T;if(W.data.getUint8(W.dataOffset)){var l=W.data;W=W.dataOffset+4;l.setUint32(W,Math.floor(c/4294967296));l.setUint32(W+4,c&4294967295)}else W.data.setUint32(W.dataOffset+ +4,c)}E=rb(Z.type)?E+8:E+Z.size}return!0}m=new eF(z.C1());z=z.Z?m:new eF(new DataView(z.info.K.K.buffer));e=In(z);z=m.pos;m.pos=0;if(OI(m)&&Fc(m,231))if(T=i0(m,!0),J=Math.floor(J*1E9/e),Math.ceil(Math.log(J)/Math.log(2)/8)>T)J=!1;else{for(e=T-1;e>=0;e--)m.K.setUint8(m.pos+e,J&255),J>>>=8;m.pos=z;J=!0}else J=!1;return J}; +T4=function(z,J){J=J===void 0?!1:J;var m=eh(z);z=J?0:z.info.X;return m||z}; +eh=function(z){g.z1(z.info.K.info)||z.info.K.info.hp();if(z.T&&z.info.type===6)return z.T.Sd;if(g.z1(z.info.K.info)){var J=z.C1();var m=0;J=g.ml(J,1936286840);J=g.y(J);for(var e=J.next();!e.done;e=J.next())e=KsE(e.value),m+=e.Tn[0]/e.timescale;m=m||NaN;if(!(m>=0))a:{m=z.C1();J=z.info.K.K;for(var T=e=0,E=0;vJ(m,e);){var Z=sM(m,e);if(Z.type===1836476516)T=g.ke(Z);else if(Z.type===1836019558){!T&&J&&(T=LZ(J));if(!T){m=NaN;break a}var c=Qf(Z.data,Z.dataOffset,1953653094),W=c;c=T;var l=Qf(W.data,W.dataOffset, +1952868452);W=Qf(W.data,W.dataOffset,1953658222);var w=AF(l);AF(l);w&2&&AF(l);l=w&8?AF(l):0;var q=AF(W),d=q&1;w=q&4;var I=q&256,O=q&512,G=q&1024;q&=2048;var n=o1(W);d&&AF(W);w&&AF(W);for(var C=d=0;C2048?"":J.indexOf("https://")===0?J:""}; +Wp=function(z,J,m){J.match(b2u);return z(J,m).then(function(e){var T=g.DUu(e.xhr);return T?Wp(z,T,m):e.xhr})}; +dK=function(z,J,m){z=z===void 0?"":z;J=J===void 0?null:J;m=m===void 0?!1:m;g.wF.call(this);var e=this;this.sourceUrl=z;this.isLivePlayback=m;this.ND=this.duration=0;this.isPremiere=this.Ol=this.U=this.isLiveHeadPlayable=this.isLive=this.T=!1;this.Ni=this.Jp=0;this.isOtf=this.Cq=!1;this.Lh=(0,g.b5)();this.Ry=Infinity;this.K={};this.S=new Map;this.state=this.dW=0;this.timeline=null;this.isManifestless=!1;this.Tf=[];this.Y=null;this.wb=0;this.Z="";this.x3=NaN;this.Gf=this.OC=this.timestampOffset=this.V= +0;this.qY=this.UB=NaN;this.ED=0;this.qD=this.B=!1;this.Qx=[];this.h6={};this.fh=NaN;this.So={sAn:function(c){ls(e,c)}}; +var T;this.nh=(T=J)==null?void 0:T.j4("html5_use_network_error_code_enums");$Ub=!!J&&J.j4("html5_modern_vp9_mime_type");var E;wK=!((E=J)==null||!E.j4("html5_enable_flush_during_seek"))&&g.LH();var Z;qd=!((Z=J)==null||!Z.j4("html5_enable_reset_audio_decoder"))&&g.LH()}; +g_1=function(z){return g.Bm(z.K,function(J){return!!J.info.video&&J.info.video.qualityOrdinal>=2160})}; +mOq=function(z){return g.Bm(z.K,function(J){return!!J.info.video&&J.info.video.isHdr()})}; +pZ=function(z){return g.Bm(z.K,function(J){return!!J.info.Nx})}; +g.xUR=function(z){return g.Bm(z.K,function(J){return E2(J.info.mimeType)})}; +Mif=function(z){return g.Bm(z.K,function(J){return J.info.video?J.info.video.projectionType==="EQUIRECTANGULAR":!1})}; +Aoq=function(z){return g.Bm(z.K,function(J){return J.info.video?J.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; +o_1=function(z){return g.Bm(z.K,function(J){return J.info.video?J.info.video.projectionType==="MESH":!1})}; +jbu=function(z){return g.Bm(z.K,function(J){return J.info.video?J.info.video.stereoLayout===1:!1})}; +h9u=function(z){return hvu(z.K,function(J){return J.info.video?J.uP():!0})}; +db=function(z){return g.Bm(z.K,function(J){return BJ(J.QH.K)})}; +ls=function(z,J){z.K[J.info.id]=J;z.S.set(Bo(g.m9(J.info,z.Cq)),J)}; +uzj=function(z,J){return Bo({itag:J.itag,lmt:z.Cq?0:J.lmt||0,xtags:J.xtags})}; +pt=function(z,J,m){m=m===void 0?0:m;var e=z.mimeType||"",T=z.itag;var E=z.xtags;T=T?T.toString():"";E&&(T+=";"+E);E=T;if(T1(e)){var Z=z.width||640;T=z.height||360;var c=z.fps,W=z.qualityLabel,l=z.colorInfo,w=z.projectionType,q;z.stereoLayout&&(q=ViE[z.stereoLayout]);var d=S2E(z)||void 0;if(l==null?0:l.primaries)var I=P1j[l.primaries]||void 0;Z=new PQ(Z,T,c,w,q,void 0,W,d,I);e=Is(e,Z,Ue[z.itag||""]);wK&&(e+="; enableflushduringseek=true");qd&&(e+="; enableresetaudiodecoder=true")}var O;if(ei(e)){var G= +z.audioSampleRate;q=z.audioTrack;G=new h7(G?+G:void 0,z.audioChannels,z.spatialAudioType,z.isDrc,z.loudnessDb,z.trackAbsoluteLoudnessLkfs,z.audioQuality||"AUDIO_QUALITY_UNKNOWN");q&&(I=q.displayName,T=q.id,q=q.audioIsDefault,I&&(O=new g.cp(I,T||"",!!q)))}var n;z.captionTrack&&(W=z.captionTrack,q=W.displayName,I=W.vssId,T=W.languageCode,c=W.kind,W=W.id,q&&I&&T&&(n=new K9u(q,I,T,c,z.xtags,W)));q=Number(z.bitrate)/8;I=Number(z.contentLength);T=Number(z.lastModified);W=z.drmFamilies;c=z.type;m=m&&I?I/ +m:0;z=Number(z.approxDurationMs);if(J&&W){var C={};W=g.y(W);for(l=W.next();!l.done;l=W.next())(l=OY[l.value])&&(C[l]=J[l])}return new RB(E,e,{audio:G,video:Z,sC:O,Nx:C,RT:q,N7:m,contentLength:I,lastModified:T,captionTrack:n,streamType:c,approxDurationMs:z})}; +y4=function(z,J,m){m=m===void 0?0:m;var e=z.type;var T=z.itag;var E=z.xtags;E&&(T=z.itag+";"+E);if(T1(e)){var Z=(z.size||"640x360").split("x");Z=new PQ(+Z[0],+Z[1],+z.fps,z.projection_type,+z.stereo_layout,void 0,z.quality_label,z.eotf,z.primaries);e=Is(e,Z,Ue[z.itag]);wK&&(e+="; enableflushduringseek=true");qd&&(e+="; enableresetaudiodecoder=true")}var c;if(ei(e)){var W=new h7(+z.audio_sample_rate||void 0,+z.audio_channels||0,z.spatial_audio_type,!!z.drc);z.name&&(c=new g.cp(z.name,z.audio_track_id, +z.isDefault==="1"))}var l;z.caption_display_name&&z.caption_vss_id&&z.caption_language_code&&(l=new K9u(z.caption_display_name,z.caption_vss_id,z.caption_language_code,z.caption_kind,z.xtags,z.caption_id));E=Number(z.bitrate)/8;var w=Number(z.clen),q=Number(z.lmt);m=m&&w?w/m:0;if(J&&z.drm_families){var d={};for(var I=g.y(z.drm_families.split(",")),O=I.next();!O.done;O=I.next())O=O.value,d[O]=J[O]}return new RB(T,e,{audio:W,video:Z,sC:c,Nx:d,RT:E,N7:m,contentLength:w,lastModified:q,captionTrack:l, +streamType:z.stream_type,approxDurationMs:Number(z.approx_duration_ms)})}; +tib=function(z){return aS(z,function(J){return"FORMAT_STREAM_TYPE_OTF"===J.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; +H2u=function(z){return aS(z,function(J){return"FORMAT_STREAM_TYPE_OTF"===J.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; +UUE=function(z,J){return z.timeline?Ek(z.timeline.U,J):z.Tf.length?Ek(z.Tf,J):[]}; +Nd=function(z,J,m){J=J===void 0?"":J;m=m===void 0?"":m;z=new g.CZ(z,!0);z.set("alr","yes");m&&(m=YqR(decodeURIComponent(m)),z.set(J,encodeURIComponent(m)));return z}; +Qbz=function(z,J){var m=UI(J,"id");m=m.replace(":",";");var e=UI(J,"mimeType"),T=UI(J,"codecs");e=T?e+'; codecs="'+T+'"':e;T=Number(UI(J,"bandwidth"))/8;var E=Number(Rn(J,"BaseURL").getAttribute(z.Z+":contentLength")),Z=z.duration&&E?E/z.duration:0;if(T1(e)){var c=Number(UI(J,"width"));var W=Number(UI(J,"height")),l=Number(UI(J,"frameRate")),w=R9q(UI(J,z.Z+":projectionType"));a:switch(UI(J,z.Z+":stereoLayout")){case "layout_left_right":var q=1;break a;case "layout_top_bottom":q=2;break a;default:q= +0}c=new PQ(c,W,l,w,q)}if(ei(e)){var d=Number(UI(J,"audioSamplingRate"));var I=Number(UI(J.getElementsByTagName("AudioChannelConfiguration")[0],"value"));W=k1u(UI(J,z.Z+":spatialAudioType"));d=new h7(d,I,W);a:{I=UI(J,"lang")||"und";if(W=Rn(J,"Role"))if(w=UI(W,"value")||"",g.bu(L9j,w)){W=I+"."+L9j[w];l=w==="main";z=UI(J,z.Z+":langName")||I+" - "+w;I=new g.cp(z,W,l);break a}I=void 0}}if(J=Rn(J,"ContentProtection"))if(J.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var O={};for(J= +J.firstChild;J!=null;J=J.nextSibling)J instanceof Element&&/SystemURL/.test(J.nodeName)&&(z=J.getAttribute("type"),W=J.textContent,z&&W&&(O[z]=W.trim()))}else O=void 0;return new RB(m,e,{audio:d,video:c,sC:I,Nx:O,RT:T,N7:Z,contentLength:E})}; +R9q=function(z){switch(z){case "equirectangular":return"EQUIRECTANGULAR";case "equirectangular_threed_top_bottom":return"EQUIRECTANGULAR_THREED_TOP_BOTTOM";case "mesh":return"MESH";case "rectangular":return"RECTANGULAR";default:return"UNKNOWN"}}; +k1u=function(z){switch(z){case "spatial_audio_type_ambisonics_5_1":return"SPATIAL_AUDIO_TYPE_AMBISONICS_5_1";case "spatial_audio_type_ambisonics_quad":return"SPATIAL_AUDIO_TYPE_AMBISONICS_QUAD";case "spatial_audio_type_foa_with_non_diegetic":return"SPATIAL_AUDIO_TYPE_FOA_WITH_NON_DIEGETIC";default:return"SPATIAL_AUDIO_TYPE_NONE"}}; +sbu=function(z,J){J=J===void 0?"":J;z.state=1;z.Lh=(0,g.b5)();return fUE(J||z.sourceUrl).then(function(m){if(!z.mF()){z.dW=m.status;m=m.responseText;var e=new DOMParser;m=zy(e,b8E(m),"text/xml").getElementsByTagName("MPD")[0];z.Ry=Z2z(UI(m,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(m.attributes){e=g.y(m.attributes);for(var T=e.next();!T.done;T=e.next())if(T=T.value,T.value==="http://youtube.com/yt/2012/10/10"){e=T.name.split(":")[1];break b}}e=""}z.Z=e;z.isLive=z.Ry=z.Ry}; +z2b=function(z){z.Y&&z.Y.stop()}; +v_s=function(z){var J=z.Ry;isFinite(J)&&(G4(z)?z.refresh():(J=Math.max(0,z.Lh+J-(0,g.b5)()),z.Y||(z.Y=new g.vl(z.refresh,J,z),g.u(z,z.Y)),z.Y.start(J)))}; +JKR=function(z){z=z.K;for(var J in z){var m=z[J].index;if(m.isLoaded())return m.eO()+1}return 0}; +Xb=function(z){return z.OC?z.OC-(z.V||z.timestampOffset):0}; +nt=function(z){return z.Gf?z.Gf-(z.V||z.timestampOffset):0}; +YQ=function(z){if(!isNaN(z.x3))return z.x3;var J=z.K,m;for(m in J){var e=J[m].index;if(e.isLoaded()&&!E2(J[m].info.mimeType)){J=0;for(m=e.DO();m<=e.eO();m++)J+=e.getDuration(m);J/=e.g6();J=Math.round(J/.5)*.5;e.g6()>10&&(z.x3=J);return J}if(z.isLive&&(e=J[m],e.Sd))return e.Sd}return NaN}; +m4q=function(z,J){z=Vy4(z.K,function(e){return e.index.isLoaded()}); +if(!z)return NaN;z=z.index;var m=z.T7(J);return z.getStartTime(m)===J?J:m=0&&T.segments.splice(E,1)}}}; +TTu=function(z){for(var J in z.K)E2(z.K[J].info.mimeType)||dOR(z.K[J].index,Infinity)}; +Kt=function(z,J,m){for(var e in z.K){var T=z.K[e].index,E=J,Z=m;T.zC&&(E&&(T.O7=Math.max(T.O7,E)),Z&&(T.wJ=Math.max(T.wJ||0,Z)))}m&&(z.fh=m/1E3)}; +Ekq=function(z){z.Gf=0;z.OC=0;z.ED=0}; +Bp=function(z){return z.qD&&z.isManifestless?z.isLiveHeadPlayable:z.isLive}; +Is=function(z,J,m){Sh===null&&(Sh=window.MediaSource&&MediaSource.isTypeSupported&&MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.16.09.00"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.99.99.00"'));if($Ub&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return Sh||m!=="9"&&m!=="("?Sh||m!=="9h"&&m!=="(h"||(z='video/webm; codecs="vp9.2"'):z='video/webm; codecs="vp9"',z;if(!Sh&&!ft||z!=='video/webm; codecs="vp9"'&&z!=='video/webm; codecs="vp9.2"')return z; +m="00";var e="08",T="01",E="01",Z="01";z==='video/webm; codecs="vp9.2"'&&(m="02",e="10",J.primaries==="bt2020"&&(Z=T="09"),J.K==="smpte2084"&&(E="16"),J.K==="arib-std-b67"&&(E="18"));return'video/webm; codecs="'+["vp09",m,"51",e,"01",T,E,Z,"00"].join(".")+'"'}; +bs=function(z,J,m){z=""+z+(J>49?"p60":J>32?"p48":"");J=Pt()[z];if(J!=null&&J>0)return J;J=D7.get(z);if(J!=null&&J>0)return J;m=m==null?void 0:m.get(z);return m!=null&&m>0?m:8192}; +Z5q=function(z){this.e4=z;this.l8=this.FV=this.Gf=this.Y=this.Z=this.h6=this.ND=this.fh=!1;this.X=this.V=0;this.yH=!1;this.Tf=!0;this.O2=!1;this.nB=0;this.zb=this.x3=!1;this.ED=!0;this.qD=this.Lh=!1;this.K={};this.Rs=this.disableAv1=this.tZ=this.yv=this.Hd=this.IT=this.T=this.B=!1;this.Zo=this.e4.C("html5_disable_aac_preference");this.OC=Infinity;this.Qx=0;this.ub=this.e4.AZ();this.GS=this.e4.experiments.j4("html5_enable_vp9_fairplay");this.SC=this.e4.C("html5_force_av1_for_testing");this.nh=g.dv(this.e4.experiments, +"html5_av1_ordinal_cap");this.hw=this.e4.C("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.OD=this.e4.C("html5_account_onesie_format_selection_during_format_filter");this.RT=g.dv(this.e4.experiments,"html5_max_byterate");this.S=this.e4.C("html5_sunset_aac_high_codec_family");this.wb=this.e4.C("html5_sunset_aac_high_codec_family");this.gE=this.e4.C("html5_enable_iamf_audio");this.qx=this.e4.experiments.j4("html5_allow_capability_merge");this.Wr=this.e4.C("html5_enable_encrypted_av1")}; +epq=function(z){if(z.ND)return["f"];if(g.RQ("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var J=["9h","9","h","8"];z.Wr&&J.push("1e");J=J.concat(["(h","(","H","*"]);z.x3&&(J.unshift("1"),J.unshift("1h"));z.FV&&J.unshift("h");z.Ry&&(J=(FIs[z.Ry]||[z.Ry]).concat(J));return J}; +QPb=function(z){var J=["o","a","A"];z.Qx===1&&(z.Z&&(J=["mac3","MAC3"].concat(J)),z.Y&&(J=["meac3","MEAC3"].concat(J)),z.gE&&(J=["i","I"].concat(J)));z.fh&&(J=["so","sa"].concat(J));!z.l8||z.Gf||z.U||z.Zo||J.unshift("a");z.h6&&!z.S&&J.unshift("ah");z.U&&(J=(FIs[z.U]||[z.U]).concat(J));return J}; +$Q=function(z,J,m,e){J=J===void 0?{}:J;if(e===void 0?0:e)return J.disabled=1,0;if(nZ(z.Z,Ye.AV1_CODECS)&&nZ(z.Z,Ye.HEIGHT)&&nZ(z.Z,Ye.BITRATE))return J.isCapabilityUsable=1,8192;try{var T=$Pu();if(T)return J.localPref=T}catch(c){}e=1080;T=navigator.hardwareConcurrency;T<=2&&(e=480);J.coreCount=T;if(T=g.dv(z.experiments,"html5_default_av1_threshold"))e=J["default"]=T;!z.C("html5_disable_av1_arm_check")&&OEu()&&(J.isArm=1,e=240);if(z=z.Z.Tf)J.mcap=z,e=Math.max(e,z);if(m){var E,Z;if(z=(E=m.videoInfos.find(function(c){return vQ(c)}))== +null?void 0:(Z=E.T)==null?void 0:Z.powerEfficient)e=8192,J.isEfficient=1; +m=m.videoInfos[0].video;E=Math.min(bs("1",m.fps),bs("1",30));J.perfCap=E;e=Math.min(e,E);m.isHdr()&&!z&&(J.hdr=1,e*=.75)}else m=bs("1",30),J.perfCap30=m,e=Math.min(e,m),m=bs("1",60),J.perfCap60=m,e=Math.min(e,m);return J.av1Threshold=e}; +gK=function(z,J,m,e){this.flavor=z;this.keySystem=J;this.T=m;this.experiments=e;this.K={};this.O2=this.keySystemAccess=null;this.W0=this.F5=-1;this.Oe=null;this.S=!!e&&e.j4("edge_nonprefixed_eme");e&&e.j4("html5_enable_vp9_fairplay")}; +Md=function(z){return z.S?!1:!z.keySystemAccess&&!!xQ()&&z.keySystem==="com.microsoft.playready"}; +AG=function(z){return z.keySystem==="com.microsoft.playready"}; +os=function(z){return!z.keySystemAccess&&!!xQ()&&z.keySystem==="com.apple.fps.1_0"}; +jh=function(z){return z.keySystem==="com.youtube.fairplay"}; +hG=function(z){return z.keySystem==="com.youtube.fairplay.sbdl"}; +g.us=function(z){return z.flavor==="fairplay"}; +xQ=function(){var z=window,J=z.MSMediaKeys;sL()&&!J&&(J=z.WebKitMediaKeys);return J&&J.isTypeSupported?J:null}; +Pp=function(z){return navigator.requestMediaKeySystemAccess?g.gS&&!g.LH()?SZ("45"):g.s0||g.pz?z.j4("edge_nonprefixed_eme"):g.V4?SZ("47"):g.Y4&&z.j4("html5_enable_safari_fairplay")?!1:!0:!1}; +i51=function(z,J,m,e){var T=Qp(),E=(m=T||m&&sL())?["com.youtube.fairplay"]:["com.widevine.alpha"];J&&E.unshift("com.youtube.widevine.l3");T&&e&&E.unshift("com.youtube.fairplay.sbdl");return m?E:z?[].concat(g.X(E),g.X(tG.playready)):[].concat(g.X(tG.playready),g.X(E))}; +UY=function(){this.T=this.p$=0;this.K=Array.from({length:Hp.length}).fill(0)}; +cKb=function(){}; +WIb=function(){this.startTimeMs=(0,g.b5)();this.K=!1}; +lH1=function(){this.K=new cKb}; +wrb=function(z,J,m,e){e=e===void 0?1:e;m>=0&&(J in z.K||(z.K[J]=new UY),z.K[J].Ci(m,e))}; +q3q=function(z,J,m,e,T){var E=(0,g.b5)(),Z=T?T(J):void 0,c;T=(c=Z==null?void 0:Z.p$)!=null?c:1;if(T!==0){var W;c=(W=Z==null?void 0:Z.profile)!=null?W:m;wrb(z,c,E-e,T)}return J}; +Rs=function(z,J,m,e,T){if(J&&typeof J==="object"){var E=function(Z){return q3q(z,Z,m,e,T)}; +if(lK(J))return J.then(E);if(d41(J))return pQ(J,E)}return q3q(z,J,m,e,T)}; +IHu=function(){}; +kQ=function(z,J,m,e,T){e=e===void 0?!1:e;g.h.call(this);this.e4=J;this.useCobaltWidevine=e;this.ph=T;this.T=[];this.S={};this.K={};this.callback=null;this.Z=!1;this.U=[];this.initialize(z,!m)}; +pr4=function(z,J){z.callback=J;z.U=[];Pp(z.e4.experiments)?Lt(z):O5q(z)}; +Lt=function(z){if(!z.mF())if(z.T.length===0)z.callback(z.U);else{var J=z.T[0],m=z.S[J],e=yKq(z,m);if(Q4&&Q4.keySystem===J&&Q4.j16===JSON.stringify(e))z.ph("remksa",{re:!0}),NTq(z,m,Q4.keySystemAccess);else{var T,E;z.ph("remksa",{re:!1,ok:(E=(T=Q4)==null?void 0:T.keySystem)!=null?E:""});Q4=void 0;(vp.isActive()?vp.ZQ("emereq",function(){return navigator.requestMediaKeySystemAccess(J,e)}):navigator.requestMediaKeySystemAccess(J,e)).then(Ym(function(Z){NTq(z,m,Z,e)}),Ym(function(){z.Z=!z.Z&&z.S[z.T[0]].flavor=== +"widevine"; +z.Z||z.T.shift();Lt(z)}))}}}; +NTq=function(z,J,m,e){if(!z.mF()){e&&(Q4={keySystem:J.keySystem,keySystemAccess:m,j16:JSON.stringify(e)});J.keySystemAccess=m;if(AG(J)){m=bO();e=g.y(Object.keys(z.K[J.flavor]));for(var T=e.next();!T.done;T=e.next())T=T.value,J.K[T]=!!m.canPlayType(T)}else{m=J.keySystemAccess.getConfiguration();if(m.audioCapabilities)for(e=g.y(m.audioCapabilities),T=e.next();!T.done;T=e.next())GX4(z,J,T.value);if(m.videoCapabilities)for(m=g.y(m.videoCapabilities),e=m.next();!e.done;e=m.next())GX4(z,J,e.value)}z.U.push(J); +z.useCobaltWidevine||z.C("html5_enable_vp9_fairplay")&&hG(J)?(z.T.shift(),Lt(z)):z.callback(z.U)}}; +GX4=function(z,J,m){z.C("log_robustness_for_drm")?J.K[m.contentType]=m.robustness||!0:J.K[m.contentType]=!0}; +yKq=function(z,J){var m={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(z.C("html5_enable_vp9_fairplay")&&jh(J))return m.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),m.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[m];AG(J)&&(m.initDataTypes=["keyids","cenc"]);for(var e=g.y(Object.keys(z.K[J.flavor])),T=e.next();!T.done;T=e.next()){T=T.value;var E=T.indexOf("audio/")===0,Z=E?m.audioCapabilities:m.videoCapabilities;J.flavor!== +"widevine"||z.Z?Z.push({contentType:T}):E?Z.push({contentType:T,robustness:"SW_SECURE_CRYPTO"}):(g.gS&&g.RQ("windows nt")&&!z.C("html5_drm_enable_moho")||Z.push({contentType:T,robustness:"HW_SECURE_ALL"}),E=T,z.e4.Z.S&&T.includes("vp09")&&(E=T+"; experimental=allowed"),Z.push({contentType:E,robustness:"SW_SECURE_DECODE"}),sY(z.e4)==="MWEB"&&(T7()||kJ())&&(z.ph("swcrypto",{}),Z.push({contentType:T,robustness:"SW_SECURE_CRYPTO"})))}return[m]}; +O5q=function(z){if(xQ()&&(g.Y4||z7))z.U.push(new gK("fairplay","com.apple.fps.1_0","",z.e4.experiments));else{var J=Xrq(),m=g.QS(z.T,function(e){var T=z.S[e],E=!1,Z=!1,c;for(c in z.K[T.flavor])J(c,e)&&(T.K[c]=!0,E=E||c.indexOf("audio/")===0,Z=Z||c.indexOf("video/")===0);return E&&Z}); +m&&z.U.push(z.S[m]);z.T=[]}z.callback(z.U)}; +Xrq=function(){var z=xQ();if(z){var J=z.isTypeSupported;return function(e,T){return J(T,e)}}var m=bO(); +return m&&(m.addKey||m.webkitAddKey)?function(e,T){return!!m.canPlayType(e,T)}:function(){return!1}}; +nku=function(z){this.experiments=z;this.K=2048;this.U=0;this.Tf=(this.V=this.C("html5_streaming_resilience"))?.5:.25;var J=J===void 0?0:J;this.S=g.dv(this.experiments,"html5_media_time_weight_prop")||J;this.fh=g.dv(this.experiments,"html5_sabr_timeout_penalty_factor")||1;this.B=(this.Z=this.experiments.j4("html5_consider_end_stall"))&&rK;this.T=this.experiments.j4("html5_measure_max_progress_handling");this.X=this.C("html5_treat_requests_pre_elbow_as_metadata");this.Y=this.C("html5_media_time_weight")|| +!!this.S;this.Ry=g.dv(this.experiments,"html5_streaming_fallback_byterate");this.C("html5_sabr_live_audio_early_return_fix")&&rK&&(this.K=65536)}; +Y3q=function(z,J){this.K=void 0;this.experimentIds=z?z.split(","):[];this.flags=To(J||"","&");z={};J=g.y(this.experimentIds);for(var m=J.next();!m.done;m=J.next())z[m.value]=!0;this.experiments=z}; +g.dv=function(z,J){z=z.flags[J];JSON.stringify(z);return Number(z)||0}; +zt=function(z,J){return(z=z.flags[J])?z.toString():""}; +Ckj=function(z){if(z=z.flags.html5_web_po_experiment_ids)if(z=z.replace(/\[ *(.*?) *\]/,"$1"))return z.split(",").map(Number);return[]}; +aH4=function(z){if(z.K)return z.K;if(z.experimentIds.length<=1)return z.K=z.experimentIds,z.K;var J=[].concat(g.X(z.experimentIds)).map(function(e){return Number(e)}); +J.sort();for(var m=J.length-1;m>0;--m)J[m]-=J[m-1];z.K=J.map(function(e){return e.toString()}); +z.K.unshift("v1");return z.K}; +BTq=function(z){return KIs.then(z)}; +JD=function(z,J,m){this.experiments=z;this.x3=J;this.Qx=m===void 0?!1:m;this.fh=!!g.Hq("cast.receiver.platform.canDisplayType");this.B={};this.X=!1;this.T=new Map;this.V=!0;this.Z=this.S=!1;this.K=new Map;this.Tf=0;this.wb=this.experiments.j4("html5_disable_vp9_encrypted");this.U=this.experiments.j4("html5_enable_encrypted_av1");z=g.Hq("cast.receiver.platform.getValue");this.Y=!this.fh&&z&&z("max-video-resolution-vpx")||null;S3s(this);this.S=!!(Qp()&&UL()>=21)}; +ZGq=function(z,J,m){m=m===void 0?1:m;var e=J.itag;if(e==="0")return!0;var T=J.mimeType;if(J.rb==="1e"&&!z.U)return"dav1enc";if(vQ(J)&&z.X)return"dav1";if(J.video&&(J.video.isHdr()||J.video.primaries==="bt2020")&&!(nZ(z,Ye.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high), (video-dynamic-range: high)").matches||window.screen.pixelDepth>24&&window.matchMedia("(color-gamut: p3)").matches)))return"dhdr";if(e==="338"&&!(g.gS?SZ(53):g.V4&&SZ(64)))return"dopus";var E=m;E=E===void 0?1:E; +m={};J.video&&(J.video.width&&(m[Ye.WIDTH.name]=J.video.width),J.video.height&&(m[Ye.HEIGHT.name]=J.video.height),J.video.fps&&(m[Ye.FRAMERATE.name]=J.video.fps*E),J.video.K&&(m[Ye.EOTF.name]=J.video.K),J.RT&&(m[Ye.BITRATE.name]=J.RT*8*E),J.rb==="("&&(m[Ye.CRYPTOBLOCKFORMAT.name]="subsample"),J.video.projectionType==="EQUIRECTANGULAR"||J.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||J.video.projectionType==="MESH")&&(m[Ye.DECODETOTEXTURE.name]="true");J.audio&&J.audio.numChannels&&(m[Ye.CHANNELS.name]= +J.audio.numChannels);z.S&&ky(J)&&(m[Ye.EXPERIMENTAL.name]="allowed");E=g.y(Object.keys(Ye));for(var Z=E.next();!Z.done;Z=E.next()){Z=Ye[Z.value];var c;if(c=m[Z.name])if(c=!(Z===Ye.EOTF&&J.mimeType.indexOf("vp09.02")>0)){c=Z;var W=J;c=!(z.experiments.j4("html5_ignore_h264_framerate_cap")&&c===Ye.FRAMERATE&&doE(W))}if(c)if(nZ(z,Z))if(z.Y){if(z.Y[Z.name]1080&&J.Nx&& +(T+="; hdcp=2.2");return e==="227"?"hqcenc":e!=="585"&&e!=="588"&&e!=="583"&&e!=="586"&&e!=="584"&&e!=="587"&&e!=="591"&&e!=="592"||z.experiments.j4("html5_enable_new_hvc_enc")?z.isTypeSupported(T)?!0:"tpus":"newhvc"}; +mz=function(){var z=kJ()&&!SZ(29),J=g.RQ("google tv")&&g.RQ("chrome")&&!SZ(30);return z||J?!1:Geu()}; +fHE=function(z,J,m){var e=480;J=g.y(J);for(var T=J.next();!T.done;T=J.next()){T=T.value;var E=T.video.qualityOrdinal;E<=1080&&E>e&&ZGq(z,T,m)===!0&&(e=E)}return e}; +g.eR=function(z,J){J=J===void 0?!1:J;return mz()&&z.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!J&&z.canPlayType(bO(),"application/x-mpegURL")?!0:!1}; +b5q=function(z){D4u(function(){for(var J=g.y(Object.keys(Ye)),m=J.next();!m.done;m=J.next())nZ(z,Ye[m.value])})}; +nZ=function(z,J){J.name in z.B||(z.B[J.name]=$4f(z,J));return z.B[J.name]}; +$4f=function(z,J){if(z.Y)return!!z.Y[J.name];if(J===Ye.BITRATE&&z.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!z.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(J===Ye.AV1_CODECS)return z.isTypeSupported("video/mp4; codecs="+J.valid)&&!z.isTypeSupported("video/mp4; codecs="+J.iJ);if(J.video){var m='video/webm; codecs="vp9"';z.isTypeSupported(m)||(m='video/mp4; codecs="avc1.4d401e"')}else m='audio/webm; codecs="opus"', +z.isTypeSupported(m)||(m='audio/mp4; codecs="mp4a.40.2"');return z.isTypeSupported(m+"; "+J.name+"="+J.valid)&&!z.isTypeSupported(m+"; "+J.name+"="+J.iJ)}; +Tt=function(z){z.Z=!0;z.experiments.j4("html5_ssap_update_capabilities_on_change")&&gkb(z)}; +x4R=function(z,J){var m=0;z.T.has(J)&&(m=z.T.get(J).wQ);z.T.set(J,{wQ:m+1,Hg:Math.pow(2,m+1)});Tt(z)}; +yf=function(z){for(var J=[],m=g.y(z.K.keys()),e=m.next();!e.done;e=m.next()){e=e.value;var T=z.K.get(e);J.push(e+"_"+T.maxWidth+"_"+T.maxHeight)}return J.join(".")}; +gkb=function(z){z.Ry=[];for(var J=g.y(z.K.values()),m=J.next();!m.done;m=J.next()){m=m.value;var e=m.rb;z.experiments.j4("html5_ssap_force_mp4_aac")&&e!=="a"&&e!=="h"||z.T.has(e)||z.X&&(e==="1"||e==="1h"||z.U&&e==="1e")||z.Ry.push(m)}}; +sPu=function(z,J){for(var m=new Map,e=g.y(z.K.keys()),T=e.next();!T.done;T=e.next()){T=T.value;var E=T.split("_")[0];J.has(E)||m.set(T,z.K.get(T))}z.K=m}; +zpu=function(z,J,m){var e,T=((e=m.video)==null?void 0:e.fps)||0;e=J+"_"+T;var E=!!m.audio,Z={itag:m.itag,rb:J,SI:E};if(E)Z.numChannels=m.audio.numChannels;else{var c=m.video;Z.maxWidth=c==null?void 0:c.width;Z.maxHeight=c==null?void 0:c.height;Z.maxFramerate=T;nZ(z,Ye.BITRATE)&&(Z.maxBitrateBps=m.RT*8);Z.Zz=c==null?void 0:c.isHdr()}c=z.K.get(e);c?E||(m=Math.max(c.maxWidth||0,c.maxHeight||0)>Math.max(Z.maxWidth||0,Z.maxHeight||0)?c:Z,J={itag:m.itag,rb:J,SI:E,maxWidth:Math.max(c.maxWidth||0,Z.maxWidth|| +0),maxHeight:Math.max(c.maxHeight||0,Z.maxHeight||0),maxFramerate:T,Zz:m.Zz},nZ(z,Ye.BITRATE)&&(J.maxBitrateBps=m.maxBitrateBps),z.K.set(e,J)):z.K.set(e,Z)}; +J7f=function(z,J,m){var e,T=((e=m.video)==null?void 0:e.fps)||0;e=J+"_"+T;var E=!!m.audio,Z=z.K.get(e);a:{var c=z.K.get(e),W=!!m.audio;if(c){if(W){var l=!1;break a}var w;if(!W&&((l=m.video)==null?0:l.height)&&c.maxHeight&&c.maxHeight>=((w=m.video)==null?void 0:w.height)){l=!1;break a}}l=!0}l&&(l=m.itag,J=Z?Z:{itag:l,rb:J,SI:E},E?J.numChannels=m.audio.numChannels:(E=m.video,J.maxWidth=E==null?void 0:E.width,J.maxHeight=E==null?void 0:E.height,J.maxFramerate=T,nZ(z,Ye.BITRATE)&&(J.maxBitrateBps=m.RT* +8),J.Zz=E==null?void 0:E.isHdr()),z.K.set(e,J))}; +S3s=function(z){var J;(J=navigator.mediaCapabilities)!=null&&J.decodingInfo&&navigator.mediaCapabilities.decodingInfo({type:"media-source",video:{contentType:'video/mp4; codecs="av01.0.12M.08"',width:3840,height:2160,bitrate:32E6,framerate:60}}).then(function(m){m.smooth&&m.powerEfficient&&(z.Tf=2160)})}; +Ej=function(){g.wF.call(this);this.items={}}; +Z6=function(){g.CF.apply(this,arguments)}; +F_=function(){g.a6.apply(this,arguments)}; +M2b=function(z,J,m){this.encryptedClientKey=J;this.Z=m;this.K=new Uint8Array(z.buffer,0,16);this.S=new Uint8Array(z.buffer,16)}; +AKu=function(z){z.T||(z.T=new Z6(z.K));return z.T}; +il=function(z){try{return n0(z)}catch(J){return null}}; +oku=function(z,J){if(!J&&z)try{J=JSON.parse(z)}catch(T){}if(J){z=J.clientKey?il(J.clientKey):null;var m=J.encryptedClientKey?il(J.encryptedClientKey):null,e=J.keyExpiresInSeconds?Number(J.keyExpiresInSeconds)*1E3+(0,g.b5)():null;z&&m&&e&&(this.K=new M2b(z,m,e));J.onesieUstreamerConfig&&(this.onesieUstreamerConfig=il(J.onesieUstreamerConfig)||void 0);this.baseUrl=J.baseUrl}}; +WZ=function(){this.data=new Uint8Array(2048);this.pos=0;cZ||(cZ=$7("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}; +ll=function(z,J){z.add(J==null||isNaN(J)?0:J+1)}; +wc=function(z){this.K=this.T=0;this.alpha=Math.exp(Math.log(.5)/z)}; +qA=function(z){this.T=z===void 0?15:z;this.values=new Float64Array(176);this.K=new Float64Array(11);this.S=new Float64Array(16)}; +dc=function(z,J,m,e){m=m===void 0?.5:m;e=e===void 0?0:e;this.resolution=J;this.T=0;this.S=!1;this.UU=!0;this.K=Math.round(z*this.resolution);this.values=Array(this.K);for(z=0;z0)J=z.byterate,this.Ry=!0;else{var e; +m=(((e=navigator.connection)==null?void 0:e.downlink)||0)*64*1024;m>0&&(J=m,this.Ry=!0)}this.S.xA(this.policy.Y,J);z.delay>0&&this.X.xA(1,Math.min(z.delay,2));z.stall>0&&this.V.xA(1,z.stall);z.init>0&&(this.Gf=Math.min(z.init,this.Gf));z.interruptions&&(this.U=this.U.concat(z.interruptions),this.U.length>16&&this.U.pop());this.fh=(0,g.b5)();this.policy.V>0&&(this.h6=new g.vl(this.qD,this.policy.V,this),g.u(this,this.h6),this.h6.start())}; +Oj=function(z,J,m,e){z.S.xA(e===void 0?J:e,m/J);z.Y=(0,g.b5)()}; +h2b=function(z){z.Z||(z.Z=(0,g.b5)());z.policy.B&&(z.Y=(0,g.b5)())}; +ugb=function(z,J){if(z.Z){var m=J-z.Z;if(m<6E4){if(m>1E3){var e=z.interruptions;e.push(Math.ceil(m));e.sort(function(T,E){return E-T}); +e.length>16&&e.pop()}z.wb+=m}}z.Z=J}; +pi=function(z,J,m,e,T,E){E=E===void 0?!1:E;z.Qx.xA(J,m/J);z.Y=(0,g.b5)();T||z.B.xA(1,J-e);E||(z.Z=0);z.fh>-1&&(0,g.b5)()-z.fh>3E4&&V2j(z)}; +ys=function(z,J,m){J=Math.max(J,z.T.K);z.V.xA(1,m/J)}; +NA=function(z){z=z.X.ao()+z.x3.ao()||0;z=isNaN(z)?.5:z;return z=Math.min(z,5)}; +Gt=function(z,J,m){isNaN(m)||(z.Tf+=m);isNaN(J)||(z.Lh+=J)}; +X_=function(z){z=z.S.ao();return z>0?z:1}; +ni=function(z,J,m){J=J===void 0?!1:J;m=m===void 0?1048576:m;var e=X_(z);e=1/((z.V.ao()||0)*z.policy.Ry+1/e);var T=z.Qx.ao();T=T>0?T:1;var E=Math.max(e,T);z.policy.Z>0&&T=4E3}; +t21=function(z){this.experiments=z;this.K=17;this.S=13E4;this.Y=.5;this.T=!1;this.fh=this.C("html5_use_histogram_for_bandwidth");this.U=!1;this.Z=g.dv(this.experiments,"html5_auxiliary_estimate_weight");this.Ry=g.dv(this.experiments,"html5_stall_factor")||1;this.V=g.dv(this.experiments,"html5_check_for_idle_network_interval_ms");this.X=this.experiments.j4("html5_trigger_loader_when_idle_network");this.B=this.experiments.j4("html5_sabr_fetch_on_idle_network_preloaded_players")}; +U4j=function(z,J){z=z===void 0?{}:z;J=J===void 0?{}:J;g.h.call(this);var m=this;this.values=z;this.Cj=J;this.T={};this.S=this.K=0;this.U=new g.vl(function(){H5j(m)},1E4); +g.u(this,this.U)}; +Ci=function(z,J){R2z(z,J);return z.values[J]&&z.Cj[J]?z.values[J]/Math.pow(2,z.K/z.Cj[J]):0}; +R2z=function(z,J){z.values[J]||(J=Sqb(),z.values=J.values||{},z.Cj=J.halfLives||{},z.T=J.values?Object.assign({},J.values):{})}; +H5j=function(z){var J=Sqb();if(J.values){J=J.values;for(var m={},e=g.y(Object.keys(z.values)),T=e.next();!T.done;T=e.next())T=T.value,J[T]&&z.T[T]&&(z.values[T]+=J[T]-z.T[T]),m[T]=Ci(z,T);z.T=m}J=z.Cj;m={};m.values=z.T;m.halfLives=J;g.oW("yt-player-memory",m,2592E3)}; +tD=function(z,J,m,e,T){g.h.call(this);this.webPlayerContextConfig=J;this.qY=e;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.zs=this.gE=this.ND=this.oW=this.userDisplayName=this.userDisplayImage=this.Pm="";this.K={};this.OC={};this.controlsType="0";this.qx=NaN;this.Hd=!1;this.rL=(0,g.b5)();this.ub=0;this.u3=this.xK=!1;this.bG=!0;this.preferGapless=this.MY=this.Bk=this.S=this.LV=this.XH=!1;this.Oi=[];this.s4=!1;z=z?g.oi(z):{};J&&J.csiPageType&&(this.csiPageType=J.csiPageType);J&&J.csiServiceName&& +(this.csiServiceName=J.csiServiceName);J&&J.preferGapless&&(this.preferGapless=J.preferGapless);this.experiments=new Y3q(J?J.serializedExperimentIds:z.fexp,J?J.serializedExperimentFlags:z.fflags);this.forcedExperiments=J?J.serializedForcedExperimentIds:WR("",z.forced_experiments)||void 0;this.cspNonce=(J==null?0:J.cspNonce)?J.cspNonce:WR("",z.csp_nonce);this.C("web_player_deprecated_uvr_killswitch");try{var E=document.location.toString()}catch(Ez){E=""}this.SC=E;this.ancestorOrigins=(e=window.location.ancestorOrigins)? +Array.from(e):[];this.U=Fa(!1,J?J.isEmbed:z.is_embed);if(J&&J.device){if(e=J.device,e.androidOsExperience&&(this.K.caoe=""+e.androidOsExperience),e.androidPlayServicesVersion&&(this.K.capsv=""+e.androidPlayServicesVersion),e.brand&&(this.K.cbrand=e.brand),e.browser&&(this.K.cbr=e.browser),e.browserVersion&&(this.K.cbrver=e.browserVersion),e.cobaltReleaseVehicle&&(this.K.ccrv=""+e.cobaltReleaseVehicle),this.K.c=e.interfaceName||"WEB",this.K.cver=e.interfaceVersion||"html5",e.interfaceTheme&&(this.K.ctheme= +e.interfaceTheme),this.K.cplayer=e.interfacePlayerType||"UNIPLAYER",e.model&&(this.K.cmodel=e.model),e.network&&(this.K.cnetwork=e.network),e.os&&(this.K.cos=e.os),e.osVersion&&(this.K.cosver=e.osVersion),e.platform&&(this.K.cplatform=e.platform),E=zt(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),E==="all"||E==="once")e.chipset&&(this.OC.cchip=e.chipset),e.cobaltAppVersion&&(this.OC.ccappver=e.cobaltAppVersion),e.firmwareVersion&&(this.OC.cfrmver=e.firmwareVersion),e.deviceYear&&(this.OC.crqyear= +e.deviceYear)}else this.K.c=z.c||"web",this.K.cver=z.cver||"html5",this.K.cplayer="UNIPLAYER";this.loaderUrl=J?this.U||kXq(this)&&J.loaderUrl?J.loaderUrl||"":this.SC:this.U||kXq(this)&&z.loaderUrl?WR("",z.loaderUrl):this.SC;this.U&&g.tu("yt.embedded_player.embed_url",this.loaderUrl);this.V=rv(this.loaderUrl,LIq);e=this.loaderUrl;var Z=Z===void 0?!1:Z;this.Qm=sq(rv(e,QOj),e,Z,"Trusted Ad Domain URL");this.ED=Fa(!1,z.privembed);this.protocol=this.SC.indexOf("http:")===0?"http":"https";this.qA=zs((J? +J.customBaseYoutubeUrl:z.BASE_YT_URL)||"")||zs(this.SC)||this.protocol+"://www.youtube.com/";Z=J?J.eventLabel:z.el;e="detailpage";Z==="adunit"?e=this.U?"embedded":"detailpage":Z==="embedded"||this.V?e=iM(e,Z,vkz):Z&&(e="embedded");this.x3=e;Khu();Z=null;e=J?J.playerStyle:z.ps;E=g.s1(sOb,e);!e||E&&!this.V||(Z=e);this.playerStyle=Z;this.Y=g.s1(sOb,this.playerStyle);this.houseBrandUserStatus=J==null?void 0:J.houseBrandUserStatus;this.fh=this.Y&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard"; +this.UB=!this.fh;this.Gf=Fa(!1,z.disableplaybackui);this.disablePaidContentOverlay=Fa(!1,J==null?void 0:J.disablePaidContentOverlay);this.disableSeek=Fa(!1,J==null?void 0:J.disableSeek);this.enableSpeedOptions=(J==null?void 0:J.enableSpeedOptions)||(bO().defaultPlaybackRate?aJ||g.eO||Ki?g.V4&&SZ("20")||g.gS&&SZ("4")||g.BZ&&SZ("11")||rj():!(g.BZ&&!g.RQ("chrome")||aJ||g.RQ("android")||g.RQ("silk")):!1);this.U7=Fa(!1,z.enable_faster_speeds);var c;this.supportsVarispeedExtendedFeatures=(c=J==null?void 0: +J.supportsVarispeedExtendedFeatures)!=null?c:!1;this.T=Fa(this.playerStyle==="blazer",z.is_html5_mobile_device||J&&J.isMobileDevice);this.Lh=my()||T7();this.vR=this.C("mweb_allow_background_playback")?!1:this.T&&!this.Y;this.h6=oB();this.Kn=g.SR;var W;this.gq=!!(J==null?0:(W=J.embedsHostFlags)==null?0:W.optOutApiDeprecation);var l;this.E7=!!(J==null?0:(l=J.embedsHostFlags)==null?0:l.allowPfpImaIntegration);this.k$=this.C("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var w;J?J.hideInfo!== +void 0&&(w=!J.hideInfo):w=z.showinfo;this.jY=g.fi(this)&&!this.gq||Fa(!D6(this)&&!bl(this)&&!this.Y,w);this.Oe=J?!!J.mobileIphoneSupportsInlinePlayback:Fa(!1,z.playsinline);c=this.T&&$5&&gc!=null&&gc>0&&gc<=2.3;W=J?J.useNativeControls:z.use_native_controls;this.X=g.fi(this)&&this.T;l=this.T&&!this.X;W=g.x5(this)||!c&&Fa(l,W)?"3":"1";this.disableOrganicUi=!(J==null||!J.disableOrganicUi);l=J?J.controlsType:z.controls;this.controlsType=this.disableOrganicUi?"0":l!=="0"&&l!==0?W:"0";this.ES=this.T;this.color= +iM("red",J?J.progressBarColor:z.color,rKu);this.jB=this.controlsType==="3";this.l8=!this.U;this.Nw=(W=!this.l8&&!bl(this)&&!this.fh&&!this.Y&&!D6(this))&&!this.jB&&this.controlsType==="1";this.yv=g.MA(this)&&W&&this.controlsType==="0"&&!this.Nw&&!(J==null?0:J.embedsEnableEmc3ds);this.Pt=this.oA=c;this.Wr=(this.controlsType==="3"||this.T||Fa(!1,z.use_media_volume))&&!this.X;this.FF=z7&&!g.Ni(601)?!1:!0;this.R3=this.U||!1;this.nh=bl(this)?"":(this.loaderUrl||z.post_message_origin||"").substring(0,128); +this.widgetReferrer=WR("",J?J.widgetReferrer:z.widget_referrer);var q;J?J.disableCastApi&&(q=!1):q=z.enablecastapi;q=!this.V||Fa(!0,q);c=!0;J&&J.disableMdxCast&&(c=!1);this.KA=this.C("enable_cast_for_web_unplugged")&&g.AD(this)&&c||g.uB(this)&&c||q&&c&&this.controlsType==="1"&&!this.T&&(bl(this)||g.MA(this)||g.oJ(this));this.e8=!!window.document.pictureInPictureEnabled||A7();q=J?!!J.supportsAutoplayOverride:Fa(!1,z.autoplayoverride);this.Ks=!(this.T&&!g.fi(this))&&!g.RQ("nintendo wiiu")||q;this.T2= +(J?!!J.enableMutedAutoplay:Fa(!1,z.mutedautoplay))&&!1;q=(bl(this)||D6(this))&&this.playerStyle==="blazer";this.Tp=J?!!J.disableFullscreen:!Fa(!0,z.fs);c=g.ds(g.jR(this))&&g.fi(this);this.GS=!this.Tp&&(q||g.Xa())&&!c;this.sB=this.C("html5_picture_in_picture_logging_onresize");var d;this.zo=(d=g.dv(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?d:.33;this.b3=this.C("html5_picture_in_picture_blocking_onresize");this.Fj=this.C("html5_picture_in_picture_blocking_ontimeupdate"); +this.BR=this.C("html5_picture_in_picture_blocking_document_fullscreen");this.jg=this.C("html5_picture_in_picture_blocking_standard_api");d=kJ()&&SZ(58)&&!T7();q=vj||typeof MediaSource==="undefined";this.CV=this.C("uniplayer_block_pip")&&(d||q)||this.b3||this.Fj||this.jg;d=g.fi(this)&&!this.gq;var I;J?J.disableRelatedVideos!==void 0&&(I=!J.disableRelatedVideos):I=z.rel;this.OD=d||Fa(!this.Y,I);this.cW=Fa(!1,J?J.enableContentOwnerRelatedVideos:z.co_rel);this.B=T7()&&gc>0&&gc<=4.4?"_top":"_blank";this.o1= +g.oJ(this);this.hJ=Fa(this.playerStyle==="blazer",J?J.enableCsiLogging:z.enablecsi);switch(this.playerStyle){case "blogger":I="bl";break;case "gmail":I="gm";break;case "gac":I="ga";break;case "ads-preview":I="ap";break;case "books":I="gb";break;case "docs":case "flix":I="gd";break;case "duo":I="gu";break;case "google-live":I="gl";break;case "google-one":I="go";break;case "play":I="gp";break;case "chat":I="hc";break;case "hangouts-meet":I="hm";break;case "photos-edu":case "picasaweb":I="pw";break; +default:I="yt"}this.Ry=I;this.Tf=WR("",J?J.authorizedUserIndex:z.authuser);this.Rs=g.fi(this)&&(this.ED||!d6u()||this.Lh);var O;J?J.disableWatchLater!==void 0&&(O=!J.disableWatchLater):O=z.showwatchlater;this.gW=((I=!this.Rs)||!!this.Tf&&I)&&Fa(!this.fh,this.V?O:void 0);this.hw=J?J.isMobileDevice||!!J.disableKeyboardControls:Fa(!1,z.disablekb);this.loop=Fa(!1,z.loop);this.pageId=WR("",J?J.initialDelegatedSessionId:z.pageid);this.Tz=Fa(!0,z.canplaylive);this.yH=Fa(!1,z.livemonitor);this.disableSharing= +Fa(this.Y,J?J.disableSharing:z.ss);(O=J&&this.C("fill_video_container_size_override_from_wpcc")?J.videoContainerOverride:z.video_container_override)?(I=O.split("x"),I.length!==2?O=null:(O=Number(I[0]),I=Number(I[1]),O=isNaN(O)||isNaN(I)||O*I<=0?null:new g.XT(O,I))):O=null;this.jx=O;this.mute=J?!!J.startMuted:Fa(!1,z.mute);this.storeUserVolume=!this.mute&&Fa(this.controlsType!=="0",J?J.storeUserVolume:z.store_user_volume);O=J?J.annotationsLoadPolicy:z.iv_load_policy;this.annotationsLoadPolicy=this.controlsType=== +"3"?3:iM(void 0,O,hD);this.captionsLanguagePreference=J?J.captionsLanguagePreference||"":WR("",z.cc_lang_pref);O=iM(2,J?J.captionsLanguageLoadPolicy:z.cc_load_policy,hD);this.controlsType==="3"&&O===2&&(O=3);this.tZ=O;this.IT=J?J.hl||"en_US":WR("en_US",z.hl);this.region=J?J.contentRegion||"US":WR("US",z.cr);this.hostLanguage=J?J.hostLanguage||"en":WR("en",z.host_language);this.S8=!this.ED&&Math.random()=480;this.schedule=new IJ(q,new nku(this.experiments),T);g.u(this,this.schedule);var G;this.enableSafetyMode=(G=J==null?void 0:J.initialEnableSafetyMode)!=null? +G:Fa(!1,z.enable_safety_mode);T=this.Gf?!1:bl(this)&&this.playerStyle!=="blazer";var n;J?J.disableAutonav!=null&&(n=!J.disableAutonav):n=z.allow_autonav;this.Zo=Fa(T,!this.fh&&n);this.sendVisitorIdHeader=J?!!J.sendVisitorIdHeader:Fa(!1,z.send_visitor_id_header);var C;this.playerStyle==="docs"&&(J?C=J.disableNativeContextMenu:C=z.disable_native_context_menu);this.disableNativeContextMenu=Fa(!1,C);this.j8=B9(this)&&this.C("enable_skip_intro_button");this.embedConfig=WR("",J?J.serializedEmbedConfig: +z.embed_config);this.wb=qN(z,g.fi(this));this.S=this.wb==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!(J==null||!J.embedsErrorLinks);this.US=Fa(!1,z.full_window);var K;this.O2=!((K=this.webPlayerContextConfig)==null?0:K.chromeless);var f;this.livingRoomAppMode=iM("LIVING_ROOM_APP_MODE_UNSPECIFIED",z.living_room_app_mode||(J==null?void 0:(f=J.device)==null?void 0:f.livingRoomAppMode),mGq);var x;n=cR(NaN,J==null?void 0:(x=J.device)==null?void 0:x.deviceYear);isNaN(n)||(this.deviceYear=n);this.transparentBackground= +J?!!J.transparentBackground:Fa(!1,z.transparent_background);this.showMiniplayerButton=J?!!J.showMiniplayerButton:Fa(!1,z.show_miniplayer_button);var V;g.fi(this)&&!(J==null?0:(V=J.embedsHostFlags)==null?0:V.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=J?!!J.externalFullscreen:Fa(!1,z.external_fullscreen);this.showMiniplayerUiWhenMinimized=J?!!J.showMiniplayerUiWhenMinimized:Fa(!1,z.use_miniplayer_ui);var zE;this.bG=(zE=z.show_loop_video_toggle)!=null?zE:!0;this.u7=Math.random()< +1E-4;this.Z9=z.onesie_hot_config||(J==null?0:J.onesieHotConfig)?new oku(z.onesie_hot_config,J==null?void 0:J.onesieHotConfig):void 0;this.isTectonic=J?!!J.isTectonic:!!z.isTectonic;this.playerCanaryState=m;this.playerCanaryStage=J==null?void 0:J.canaryStage;this.qp=new U4j;g.u(this,this.qp);this.LV=Fa(!1,z.force_gvi);this.datasyncId=(J==null?void 0:J.datasyncId)||g.Qt("DATASYNC_ID");this.mY=g.Qt("LOGGED_IN",!1);this.jf=(J==null?void 0:J.allowWoffleManagement)||!1;this.Ee=Infinity;this.iV=NaN;this.livingRoomPoTokenId= +J==null?void 0:J.livingRoomPoTokenId;this.C("html5_high_res_logging_always")?this.Bk=!0:this.Bk=Math.random()*100=0&&z0&&z.u7&&(e.sort(),g.hr(new g.vR("Player client parameters changed after startup",e)));z.userAge=cR(z.userAge,J.user_age);z.Pm=WR(z.Pm,J.user_display_email);z.userDisplayImage=WR(z.userDisplayImage,J.user_display_image);g.mu(z.userDisplayImage)||(z.userDisplayImage= +"");z.userDisplayName=WR(z.userDisplayName,J.user_display_name);z.oW=WR(z.oW,J.user_gender);z.csiPageType=WR(z.csiPageType,J.csi_page_type);z.csiServiceName=WR(z.csiServiceName,J.csi_service_name);z.hJ=Fa(z.hJ,J.enablecsi);z.pageId=WR(z.pageId,J.pageid);if(m=J.enabled_engage_types)z.enabledEngageTypes=new Set(m.split(","));J.living_room_session_po_token&&(z.vA=J.living_room_session_po_token.toString())}; +HZ=function(z,J){return!z.Y&&kJ()&&SZ(55)&&z.controlsType==="3"&&!J}; +g.Uj=function(z){z=ul(z.qA);return z==="www.youtube-nocookie.com"?"www.youtube.com":z}; +RJ=function(z,J,m){return z.protocol+"://i1.ytimg.com/vi/"+J+"/"+(m||"hqdefault.jpg")}; +k5=function(z){return bl(z)&&!g.AD(z)}; +g.x5=function(z){return z.C("html5_local_playsinline")?z7&&!g.Ni(602)&&!("playsInline"in bO()):z7&&!z.Oe||g.RQ("nintendo wiiu")?!0:!1}; +sY=function(z){return z.K.c}; +g.SP=function(z){return/^TVHTML5/.test(sY(z))}; +g.Li=function(z){return sY(z)==="TVHTML5"}; +kXq=function(z){return sY(z)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; +Jwf=function(z){return z.K.cmodel==="CHROMECAST ULTRA/STEAK"||z.K.cmodel==="CHROMECAST/STEAK"}; +g.Qs=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; +B9=function(z){return/web/i.test(sY(z))}; +g.vZ=function(z){return sY(z).toUpperCase()==="WEB"}; +PZ=function(z){return sY(z)==="WEB_KIDS"}; +g.AD=function(z){return sY(z)==="WEB_UNPLUGGED"}; +sj=function(z){return sY(z)==="TVHTML5_UNPLUGGED"}; +g.K1=function(z){return g.AD(z)||sY(z)==="TV_UNPLUGGED_CAST"||sj(z)}; +g.uB=function(z){return sY(z)==="WEB_REMIX"}; +g.rc=function(z){return sY(z)==="WEB_EMBEDDED_PLAYER"}; +g.Jc=function(z){return(z.deviceIsAudioOnly||!g.gS||vj||z.controlsType==="3"?!1:g.eO?z.U&&g.Ni(51):!0)||(z.deviceIsAudioOnly||!g.V4||vj||z.controlsType==="3"?!1:g.eO?z.U&&g.Ni(48):g.Ni(38))||(z.deviceIsAudioOnly||!g.BZ||vj||z.controlsType==="3"?!1:g.eO?z.U&&g.Ni(37):g.Ni(27))||!z.deviceIsAudioOnly&&g.zx&&!NQu()&&g.Ni(11)||!z.deviceIsAudioOnly&&g.Y4&&g.Ni("604.4")}; +EgE=function(z){if(g.MA(z)&&$5)return!1;if(g.V4){if(!g.Ni(47)||!g.Ni(52)&&g.Ni(51))return!1}else if(g.Y4)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; +F61=function(z,J){return z.enabledEngageTypes.has(J.toString())||Zuq.includes(J)}; +bl=function(z){return z.x3==="detailpage"}; +g.MA=function(z){return z.x3==="embedded"}; +mp=function(z){return z.x3==="leanback"}; +D6=function(z){return z.x3==="adunit"||z.playerStyle==="gvn"}; +g.oJ=function(z){return z.x3==="profilepage"}; +g.fi=function(z){return z.U&&g.MA(z)&&!D6(z)&&!z.Y}; +e8=function(z){if(!z.userDisplayImage)return"";var J=z.userDisplayImage.split("/");if(J.length===5)return z=J[J.length-1].split("="),z[1]="s20-c",J[J.length-1]=z.join("="),J.join("/");if(J.length===8)return J.splice(7,0,"s20-c"),J.join("/");if(J.length===9)return J[7]+="-s20-c",J.join("/");g.hr(new g.vR("Profile image not a FIFE URL.",z.userDisplayImage));return z.userDisplayImage}; +g.Tx=function(z){var J=g.Uj(z);iuE.includes(J)&&(J="www.youtube.com");return z.protocol+"://"+J}; +g.El=function(z,J){J=J===void 0?"":J;if(z.qY){var m=new r7,e,T=z.qY();T.signedOut?e="":T.token?e=T.token:T.pendingResult.then(function(E){T.signedOut?m.resolve(""):m.resolve(E.token)},function(E){g.hr(new g.vR("b189348328_oauth_callback_failed",{error:E})); +m.resolve(J)}); +return e!==void 0?Aj(e):new xJ(m)}return Aj(J)}; +Zf=function(z,J){J=J===void 0?"":J;return z.mY?wH(!0):yN(pQ(wH(g.El(z,J)),function(m){return wH(!!m)}),function(){return wH(!1)})}; +ul=function(z){var J=g.H1(z);return(z=Number(g.t0(4,z))||null)?J+":"+z:J}; +Fw=function(z,J){J=J===void 0?!1:J;var m=Ue[z],e=cwq[m],T=W6q[z];if(!T||!e)return null;J=new PQ(J?T.height:T.width,J?T.width:T.height,T.fps);e=Is(e,J,m);return new RB(z,e,{video:J,RT:T.bitrate/8})}; +wIs=function(z){var J=cwq[Ue[z]],m=llu[z];return m&&J?new RB(z,J,{audio:new h7(m.audioSampleRate,m.numChannels)}):null}; +ih=function(z){this.K=z}; +c$=function(z,J,m,e){if(m)return Mp();m={};var T=bO();J=g.y(J);for(var E=J.next();!E.done;E=J.next())if(E=E.value,z.canPlayType(T,E.getInfo().mimeType)||e){var Z=E.K.video.quality;if(!m[Z]||m[Z].getInfo().hp())m[Z]=E}z=[];m.auto&&z.push(m.auto);e=g.y(t7);for(T=e.next();!T.done;T=e.next())(T=m[T.value])&&z.push(T);return z.length?Aj(z):Mp()}; +qRu=function(z){this.itag=z.itag;this.url=z.url;this.codecs=z.codecs;this.width=z.width;this.height=z.height;this.fps=z.fps;this.bitrate=z.bitrate;var J;this.T=((J=z.audioItag)==null?void 0:J.split(","))||[];this.UV=z.UV;this.Nx=z.Nx||"";this.sC=z.sC;this.audioChannels=z.audioChannels;this.K=""}; +dGq=function(z,J,m,e){J=J===void 0?!1:J;m=m===void 0?!0:m;e=e===void 0?{}:e;var T={};z=g.y(z);for(var E=z.next();!E.done;E=z.next()){E=E.value;if(J&&MediaSource&&MediaSource.isTypeSupported){var Z=E.type;E.audio_channels&&(Z=Z+"; channels="+E.audio_channels);if(!MediaSource.isTypeSupported(Z)){e[E.itag]="tpus";continue}}if(m||!E.drm_families||E.eotf!=="smpte2084"&&E.eotf!=="arib-std-b67"){Z=void 0;var c={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},W=E.type.match(/codecs="([^"]*)"/); +W=W?W[1]:"";E.audio_track_id&&(Z=new g.cp(E.name,E.audio_track_id,!!E.is_default));var l=E.eotf;E=new qRu({itag:E.itag,url:E.url,codecs:W,width:Number(E.width),height:Number(E.height),fps:Number(E.fps),bitrate:Number(E.bitrate),audioItag:E.audio_itag,UV:l?c[l]:void 0,Nx:E.drm_families,sC:Z,audioChannels:Number(E.audio_channels)});T[E.itag]=T[E.itag]||[];T[E.itag].push(E)}else e[E.itag]="enchdr"}return T}; +IlR=function(z,J,m,e,T){this.S=z;this.T=J;this.Z=m;this.cpn=e;this.Y=T;this.U=0;this.K=""}; +Ouu=function(z,J){z.S.some(function(m){var e;return((e=m.sC)==null?void 0:e.getId())===J}); +z.K=J}; +W$=function(z,J,m){z.cpn&&(J=g.v1(J,{cpn:z.cpn}));m&&(J=g.v1(J,{paired:m}));return J}; +pIu=function(z,J){z=z.itag.toString();J!==null&&(z+=J.itag.toString());return z}; +ywb=function(z){for(var J=[],m=[],e=g.y(z.T),T=e.next();!T.done;T=e.next())T=T.value,T.bitrate<=z.U?J.push(T):m.push(T);J.sort(function(E,Z){return Z.bitrate-E.bitrate}); +m.sort(function(E,Z){return E.bitrate-Z.bitrate}); +z.T=J.concat(m)}; +lh=function(z,J,m){this.K=z;this.T=J;this.expiration=m;this.QH=null}; +NU4=function(z,J){if(!(vj||sL()||Qp()))return null;z=dGq(J,z.C("html5_filter_fmp4_in_hls"));if(!z)return null;J=[];for(var m={},e=g.y(Object.keys(z)),T=e.next();!T.done;T=e.next()){T=g.y(z[T.value]);for(var E=T.next();!E.done;E=T.next()){var Z=E.value;Z.sC&&(E=Z.sC.getId(),m[E]||(Z=new g.Tv(E,Z.sC),m[E]=Z,J.push(Z)))}}return J.length>0?J:null}; +C4z=function(z,J,m,e,T,E,Z){if(!(vj||sL()||Qp()))return Mp();var c={},W=Gib(m),l=dGq(m,z.C("html5_filter_fmp4_in_hls"),z.Z.V,c);if(!l)return Z({noplst:1}),Mp();XIq(l);m={};var w=(m.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",m),q;m=[];var d=[],I=[],O=null,G="";e=e&&e.match(/hls_timedtext_playlist/)?new qRu({itag:"0",url:e,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,sC:new g.cp("English","en",!1)}):null;for(var n=g.y(Object.keys(l)),C=n.next();!C.done;C=n.next())if(C=C.value,!z.C("html5_disable_drm_hfr_1080")|| +C!=="383"&&C!=="373"){C=g.y(l[C]);for(var K=C.next();!K.done;K=C.next())if(K=K.value,K.width){for(var f=g.y(K.T),x=f.next();!x.done;x=f.next())if(x=x.value,l[x]){K.K=x;break}K.K||(K.K=ng1(l,K));if(f=l[K.K])if(m.push(K),K.Nx==="fairplay"&&(q=w),x="",K.UV==="PQ"?x="smpte2084":K.UV==="HLG"&&(x="arib-std-b67"),x&&(G=x),I.push(YRz(f,[K],e,E,K.itag,K.width,K.height,K.fps,W,void 0,void 0,q,x)),!O||K.width*K.height*K.fps>O.width*O.height*O.fps)O=K}else d.push(K)}else c[C]="disdrmhfr";I.reduce(function(V, +zE){return zE.getInfo().isEncrypted()&&V},!0)&&(q=w); +T=Math.max(T,0);w=O||{};l=w.fps===void 0?0:w.fps;O=w.width===void 0?0:w.width;w=w.height===void 0?0:w.height;n=z.C("html5_native_audio_track_switching");I.push(YRz(d,m,e,E,"93",O,w,l,W,"auto",T,q,G,n));Object.entries(c).length&&Z(c);return c$(z.Z,I,HZ(z,J),!1)}; +YRz=function(z,J,m,e,T,E,Z,c,W,l,w,q,d,I){for(var O=0,G="",n=g.y(z),C=n.next();!C.done;C=n.next())C=C.value,G||(G=C.itag),C.audioChannels&&C.audioChannels>O&&(O=C.audioChannels,G=C.itag);T=new RB(T,"application/x-mpegURL",{audio:new h7(0,O),video:new PQ(E,Z,c,null,void 0,l,void 0,d),Nx:q,NB:G});z=new IlR(z,J,m?[m]:[],e,!!I);z.U=w?w:1369843;return new lh(T,z,W)}; +Gib=function(z){z=g.y(z);for(var J=z.next();!J.done;J=z.next())if(J=J.value,J.url&&(J=J.url.split("expire/"),!(J.length<=1)))return+J[1].split("/")[0];return NaN}; +ng1=function(z,J){for(var m=g.y(Object.keys(z)),e=m.next();!e.done;e=m.next()){e=e.value;var T=z[e][0];if(!T.width&&T.Nx===J.Nx&&!T.audioChannels)return e}return""}; +XIq=function(z){for(var J=new Set,m=g.y(Object.values(z)),e=m.next();!e.done;e=m.next())e=e.value,e.length&&(e=e[0],e.height&&e.codecs.startsWith("vp09")&&J.add(e.height));m=[];if(J.size){e=g.y(Object.keys(z));for(var T=e.next();!T.done;T=e.next())if(T=T.value,z[T].length){var E=z[T][0];E.height&&J.has(E.height)&&!E.codecs.startsWith("vp09")&&m.push(T)}}J=g.y(m);for(m=J.next();!m.done;m=J.next())delete z[m.value]}; +wN=function(z,J){this.K=z;this.T=J}; +alj=function(z,J,m,e){var T=[];m=g.y(m);for(var E=m.next();!E.done;E=m.next()){var Z=E.value;if(Z.url){E=new g.CZ(Z.url,!0);if(Z.s){var c=E,W=Z.sp,l=YqR(decodeURIComponent(Z.s));c.set(W,encodeURIComponent(l))}c=g.y(Object.keys(e));for(W=c.next();!W.done;W=c.next())W=W.value,E.set(W,e[W]);Z=ZU(Z.type,Z.quality,Z.itag,Z.width,Z.height);T.push(new wN(Z,E))}}return c$(z.Z,T,HZ(z,J),!1)}; +qJ=function(z,J){this.K=z;this.T=J}; +K61=function(z,J,m){var e=[];m=g.y(m);for(var T=m.next();!T.done;T=m.next())if((T=T.value)&&T.url){var E=ZU(T.type,"medium","0");e.push(new qJ(E,T.url))}return c$(z.Z,e,HZ(z,J),!1)}; +BUu=function(z,J){var m=[],e=ZU(J.type,"auto",J.itag);m.push(new qJ(e,J.url));return c$(z.Z,m,!1,!0)}; +flR=function(z){return z&&SRq[z]?SRq[z]:null}; +DGb=function(z){if(z=z.commonConfig)this.url=z.url,this.urlQueryOverride=z.urlQueryOverride,z.ustreamerConfig&&(this.vt=il(z.ustreamerConfig)||void 0)}; +buR=function(z,J){var m;if(J=J==null?void 0:(m=J.watchEndpointSupportedOnesieConfig)==null?void 0:m.html5PlaybackOnesieConfig)z.iP=new DGb(J)}; +g.dN=function(z){z=z===void 0?{}:z;this.languageCode=z.languageCode||"";this.languageName=z.languageName||null;this.kind=z.kind||"";this.name=z.name===void 0?null:z.name;this.displayName=z.displayName||null;this.id=z.id||null;this.K=z.is_servable||!1;this.isTranslateable=z.is_translateable||!1;this.url=z.url||null;this.vssId=z.vss_id||"";this.isDefault=z.is_default||!1;this.translationLanguage=z.translationLanguage||null;this.xtags=z.xtags||"";this.captionId=z.captionId||""}; +g.Ol=function(z){var J={languageCode:z.languageCode,languageName:z.languageName,displayName:g.Io(z),kind:z.kind,name:z.name,id:z.id,is_servable:z.K,is_default:z.isDefault,is_translateable:z.isTranslateable,vss_id:z.vssId};z.xtags&&(J.xtags=z.xtags);z.captionId&&(J.captionId=z.captionId);z.translationLanguage&&(J.translationLanguage=z.translationLanguage);return J}; +g.pr=function(z){return z.translationLanguage?z.translationLanguage.languageCode:z.languageCode}; +g.$Gs=function(z){var J=z.vssId;z.translationLanguage&&J&&(J="t"+J+"."+g.pr(z));return J}; +g.Io=function(z){var J=[];if(z.displayName)J.push(z.displayName);else{var m=z.languageName||"";J.push(m);z.kind==="asr"&&m.indexOf("(")===-1&&J.push(" (Automatic Captions)");z.name&&J.push(" - "+z.name)}z.translationLanguage&&J.push(" >> "+z.translationLanguage.languageName);return J.join("")}; +Aw4=function(z,J,m,e){z||(z=J&&ggs.hasOwnProperty(J)&&xGR.hasOwnProperty(J)?xGR[J]+"_"+ggs[J]:void 0);J=z;if(!J)return null;z=J.match(Mxb);if(!z||z.length!==5)return null;if(z=J.match(Mxb)){var T=Number(z[3]),E=[7,8,10,5,6];z=!(Number(z[1])===1&&T===8)&&E.indexOf(T)>=0}else z=!1;return m||e||z?J:null}; +ym=function(z,J){for(var m={},e=g.y(Object.keys(ogu)),T=e.next();!T.done;T=e.next()){T=T.value;var E=J?J+T:T;E=z[E+"_webp"]||z[E];g.mu(E)&&(m[ogu[T]]=E)}return m}; +NJ=function(z){var J={};if(!z||!z.thumbnails)return J;z=z.thumbnails.filter(function(c){return!!c.url}); +z.sort(function(c,W){return c.width-W.width||c.height-W.height}); +for(var m=g.y(Object.keys(jAb)),e=m.next();!e.done;e=m.next()){var T=Number(e.value);e=jAb[T];for(var E=g.y(z),Z=E.next();!Z.done;Z=E.next())if(Z=Z.value,Z.width>=T){T=h8b(Z.url);g.mu(T)&&(J[e]=T);break}}(z=z.pop())&&z.width>=1280&&(z=h8b(z.url),g.mu(z)&&(J["maxresdefault.jpg"]=z));return J}; +h8b=function(z){return z.startsWith("//")?"https:"+z:z}; +Gx=function(z){return z&&z.baseUrl||""}; +Xw=function(z){z=g.iv(z);for(var J=g.y(Object.keys(z)),m=J.next();!m.done;m=J.next()){m=m.value;var e=z[m];z[m]=Array.isArray(e)?e[0]:e}return z}; +uk1=function(z,J){z.botguardData=J.playerAttestationRenderer.botguardData;J=J.playerAttestationRenderer.challenge;J!=null&&(z.eT=J)}; +txR=function(z,J){J=g.y(J);for(var m=J.next();!m.done;m=J.next()){m=m.value;var e=m.interstitials.map(function(Z){var c=g.P(Z,VxE);if(c)return{is_yto_interstitial:!0,raw_player_response:c};if(Z=g.P(Z,P4b))return Object.assign({is_yto_interstitial:!0},Z8(Z))}); +e=g.y(e);for(var T=e.next();!T.done;T=e.next())switch(T=T.value,m.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":z.interstitials=z.interstitials.concat({time:0,playerVars:T,lR:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":z.interstitials=z.interstitials.concat({time:0x7ffffffffffff,playerVars:T,lR:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var E=Number(m.podConfig.timeToInsertAtMillis);z.interstitials=z.interstitials.concat({time:E,playerVars:T, +lR:E===0?5:7})}}}; +HuE=function(z,J){if(J=J.find(function(m){return!(!m||!m.tooltipRenderer)}))z.tooltipRenderer=J.tooltipRenderer}; +UGq=function(z,J){J.subscribeCommand&&(z.subscribeCommand=J.subscribeCommand);J.unsubscribeCommand&&(z.unsubscribeCommand=J.unsubscribeCommand);J.addToWatchLaterCommand&&(z.addToWatchLaterCommand=J.addToWatchLaterCommand);J.removeFromWatchLaterCommand&&(z.removeFromWatchLaterCommand=J.removeFromWatchLaterCommand);J.getSharePanelCommand&&(z.getSharePanelCommand=J.getSharePanelCommand)}; +R8q=function(z,J){J!=null?(z.Vp=J,z.yb=!0):(z.Vp="",z.yb=!1)}; +nr=function(z,J){this.type=z||"";this.id=J||""}; +g.Yt=function(z){return new nr(z.substring(0,2),z.substring(2))}; +g.Cr=function(z,J){this.e4=z;this.author="";this.Ex=null;this.playlistLength=0;this.K=this.sessionData=null;this.B={};this.title="";if(J){this.author=J.author||J.playlist_author||"";this.title=J.playlist_title||"";if(z=J.session_data)this.sessionData=To(z,"&");var m;this.K=((m=J.thumbnail_ids)==null?void 0:m.split(",")[0])||null;this.B=ym(J,"playlist_");this.videoId=J.video_id||void 0;if(m=J.list)switch(J.listType){case "user_uploads":this.playlistId=(new nr("UU","PLAYER_"+m)).toString();break;default:if(z= +J.playlist_length)this.playlistLength=Number(z)||0;this.playlistId=g.Yt(m).toString();if(J=J.video)this.videoId=(J[0]||null).video_id||void 0}else J.playlist&&(this.playlistLength=J.playlist.toString().split(",").length)}}; +g.ao=function(z,J){this.e4=z;this.zc=this.author="";this.Ex=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.R7=this.lengthText="";this.sessionData=null;this.B={};this.title="";if(J){this.ariaLabel=J.aria_label||void 0;this.author=J.author||"";this.zc=J.zc||"";if(z=J.endscreen_autoplay_session_data)this.Ex=To(z,"&");this.QR=J.QR;this.isLivePlayback=J.live_playback==="1";this.isUpcoming=!!J.isUpcoming;if(z=J.length_seconds)this.lengthSeconds=typeof z==="string"?Number(z):z;this.lengthText= +J.lengthText||"";this.R7=J.R7||"";this.publishedTimeText=J.publishedTimeText||void 0;if(z=J.session_data)this.sessionData=To(z,"&");this.shortViewCount=J.short_view_count_text||void 0;this.B=ym(J);this.title=J.title||"";this.videoId=J.docid||J.video_id||J.videoId||J.id||void 0;this.watchUrl=J.watchUrl||void 0}}; +kiz=function(z){var J,m,e=(J=z.getWatchNextResponse())==null?void 0:(m=J.contents)==null?void 0:m.twoColumnWatchNextResults,T,E,Z,c,W;z=(T=z.getWatchNextResponse())==null?void 0:(E=T.playerOverlays)==null?void 0:(Z=E.playerOverlayRenderer)==null?void 0:(c=Z.endScreen)==null?void 0:(W=c.watchNextEndScreenRenderer)==null?void 0:W.results;if(!z){var l,w;z=e==null?void 0:(l=e.endScreen)==null?void 0:(w=l.endScreen)==null?void 0:w.results}return z}; +g.B$=function(z){var J,m,e;z=g.P((J=z.getWatchNextResponse())==null?void 0:(m=J.playerOverlays)==null?void 0:(e=m.playerOverlayRenderer)==null?void 0:e.decoratedPlayerBarRenderer,Kr);return g.P(z==null?void 0:z.playerBar,L6b)}; +QA4=function(z){this.K=z.playback_progress_0s_url;this.S=z.playback_progress_2s_url;this.T=z.playback_progress_10s_url}; +vgz=function(){if(S8===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(J){}a:{try{var z=!!self.localStorage}catch(J){z=!1}if(z&&(z=g.hA(g.sF()+"::yt-player"))){S8=new tL(z);break a}S8=void 0}}return S8}; +g.fr=function(){var z=vgz();if(!z)return{};try{var J=z.get("yt-player-lv");return JSON.parse(J||"{}")}catch(m){return{}}}; +g.sAs=function(z){var J=vgz();J&&(z=JSON.stringify(z),J.set("yt-player-lv",z))}; +g.Df=function(z){return g.fr()[z]||0}; +g.bh=function(z,J){var m=g.fr();J!==m[z]&&(J!==0?m[z]=J:delete m[z],g.sAs(m))}; +g.$t=function(z){return g.D(function(J){return J.return(g.k4(rwq(),z))})}; +xt=function(z,J,m,e,T,E,Z,c){var W,l,w,q,d,I;return g.D(function(O){switch(O.K){case 1:return W=g.Df(z),W===4?O.return(4):g.S(O,g.me(),2);case 2:l=O.T;if(!l)throw g.aV("wiac");if(!c||Z===void 0){O.U2(3);break}return g.S(O,z74(c,Z),4);case 4:Z=O.T;case 3:return w=m.lastModified||"0",g.S(O,g.$t(l),5);case 5:return q=O.T,g.Yu(O,6),gN++,g.S(O,g.Mq(q,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",Md:!0},function(G){if(E!==void 0&&Z!==void 0){var n=""+z+"|"+J.id+"|"+w+"|"+String(E).padStart(10, +"0");n=g.A8(G.objectStore("media"),Z,n)}else n=g.Bj.resolve(void 0);var C=Jmj(z,J.HA()),K=Jmj(z,!J.HA()),f={fmts:mWR(e),format:m||{}};C=g.A8(G.objectStore("index"),f,C);var x=e.downloadedEndTime===-1;f=x?G.objectStore("index").get(K):g.Bj.resolve(void 0);var V={fmts:"music",format:{}};G=x&&T&&!J.HA()?g.A8(G.objectStore("index"),V,K):g.Bj.resolve(void 0);return g.Bj.all([G,f,n,C]).then(function(zE){zE=g.y(zE);zE.next();zE=zE.next().value;gN--;var k=g.Df(z);if(k!==4&&x&&T||zE!==void 0&&g.e7E(zE.fmts))k= +1,g.bh(z,k);return k})}),8); +case 8:return O.return(O.T);case 6:d=g.Kq(O);gN--;I=g.Df(z);if(I===4)return O.return(I);g.bh(z,4);throw d;}})}; +g.TRq=function(z){var J,m;return g.D(function(e){if(e.K==1)return g.S(e,g.me(),2);if(e.K!=3){J=e.T;if(!J)throw g.aV("ri");return g.S(e,g.$t(J),3)}m=e.T;return e.return(g.Mq(m,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(T){var E=IDBKeyRange.bound(z+"|",z+"~");return T.objectStore("index").getAll(E).then(function(Z){return Z.map(function(c){return c?c.format:{}})})}))})}; +Z6R=function(z,J,m,e,T){var E,Z,c;return g.D(function(W){if(W.K==1)return g.S(W,g.me(),2);if(W.K!=3){E=W.T;if(!E)throw g.aV("rc");return g.S(W,g.$t(E),3)}Z=W.T;c=g.Mq(Z,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(l){var w=""+z+"|"+J+"|"+m+"|"+String(e).padStart(10,"0");return l.objectStore("media").get(w)}); +return T?W.return(c.then(function(l){if(l===void 0)throw Error("No data from indexDb");return EAq(T,l)}).catch(function(l){throw new g.vR("Error while reading chunk: "+l.name+", "+l.message); +})):W.return(c)})}; +g.e7E=function(z){return z?z==="music"?!0:z.includes("dlt=-1")||!z.includes("dlt="):!1}; +Jmj=function(z,J){return""+z+"|"+(J?"v":"a")}; +mWR=function(z){var J={};return EL((J.dlt=z.downloadedEndTime.toString(),J.mket=z.maxKnownEndTime.toString(),J.avbr=z.averageByteRate.toString(),J))}; +i61=function(z){var J={},m={};z=g.y(z);for(var e=z.next();!e.done;e=z.next()){var T=e.value,E=T.split("|");T.match(g.FZs)?(e=Number(E.pop()),isNaN(e)?m[T]="?":(E=E.join("|"),(T=J[E])?(E=T[T.length-1],e===E.end+1?E.end=e:T.push({start:e,end:e})):J[E]=[{start:e,end:e}])):m[T]="?"}z=g.y(Object.keys(J));for(e=z.next();!e.done;e=z.next())e=e.value,m[e]=J[e].map(function(Z){return Z.start+"-"+Z.end}).join(","); +return m}; +MJ=function(z){g.wF.call(this);this.K=null;this.S=new Pd;this.K=null;this.Y=new Set;this.crossOrigin=z||""}; +cmE=function(z,J,m){for(m=Ac(z,m);m>=0;){var e=z.levels[m];if(e.isLoaded(oo(e,J))&&(e=g.j8(e,J)))return e;m--}return g.j8(z.levels[0],J)}; +lgE=function(z,J,m){m=Ac(z,m);for(var e,T;m>=0;m--)if(e=z.levels[m],T=oo(e,J),!e.isLoaded(T)){e=z;var E=m,Z=E+"-"+T;e.Y.has(Z)||(e.Y.add(Z),e.S.enqueue(E,{JI:E,tR:T}))}WZb(z)}; +WZb=function(z){if(!z.K&&!z.S.isEmpty()){var J=z.S.remove();z.K=w3f(z,J)}}; +w3f=function(z,J){var m=document.createElement("img");z.crossOrigin&&(m.crossOrigin=z.crossOrigin);m.src=z.levels[J.JI].jO(J.tR);m.onload=function(){var e=J.JI,T=J.tR;z.K!==null&&(z.K.onload=null,z.K=null);e=z.levels[e];e.loaded.add(T);WZb(z);var E=e.columns*e.rows;T*=E;e=Math.min(T+E-1,e.le()-1);T=[T,e];z.publish("l",T[0],T[1])}; +return m}; +g.hc=function(z,J,m,e){this.level=z;this.U=J;this.loaded=new Set;this.level=z;this.U=J;z=m.split("#");this.width=Math.floor(Number(z[0]));this.height=Math.floor(Number(z[1]));this.frameCount=Math.floor(Number(z[2]));this.columns=Math.floor(Number(z[3]));this.rows=Math.floor(Number(z[4]));this.K=Math.floor(Number(z[5]));this.S=z[6];this.signature=z[7];this.videoLength=e}; +oo=function(z,J){return Math.floor(J/(z.columns*z.rows))}; +g.j8=function(z,J){J>=z.eq()&&z.uQ();var m=oo(z,J),e=z.columns*z.rows,T=J%e;J=T%z.columns;T=Math.floor(T/z.columns);var E=z.uQ()+1-e*m;if(E1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; +qUj=function(z,J,m){return(z=z.levels[J])?z.bj(m):-1}; +Ac=function(z,J){var m=z.U.get(J);if(m)return m;m=z.levels.length;for(var e=0;e=J)return z.U.set(J,e),e;z.U.set(J,m-1);return m-1}; +Vm=function(z,J,m,e){m=m.split("#");m=[m[1],m[2],0,m[3],m[4],-1,m[0],""].join("#");g.hc.call(this,z,J,m,0);this.T=null;this.Z=e?2:0}; +P$=function(z,J,m,e){uh.call(this,z,0,void 0,J,!(e===void 0||!e));for(z=0;z(m!=null?m:50)&&(m=nAj.shift())&&Qm.delete(m),m=T),T!==m&&z.OM("ssei","dcpn_"+T+"_"+m+"_"+z.clientPlaybackNonce),m)}; +Ro=function(z,J){var m=J.raw_watch_next_response;if(!m){var e=J.watch_next_response;e&&(m=JSON.parse(e))}if(m){z.Lh=m;var T=z.Lh.playerCueRangeSet;T&&g.v$(z,T);var E=z.Lh.playerOverlays;if(E){var Z=E.playerOverlayRenderer;if(Z){var c=Z.autonavToggle;c&&(z.autoplaySwitchButtonRenderer=g.P(c,YUR),z.C("web_player_autonav_use_server_provided_state")&&sl(z)&&(z.autonavState=z.autoplaySwitchButtonRenderer.enabled?2:1));var W=Z.videoDetails;if(W){var l=W.embeddedPlayerOverlayVideoDetailsRenderer;var w=W.playerOverlayVideoDetailsRenderer; +w&&(w.title&&(J.title=g.GZ(w.title)),w.subtitle&&(J.subtitle=g.GZ(w.subtitle)))}g.MA(z.e4)&&(z.gW=!!Z.addToMenu);CrE(z,Z.shareButton);Z.startPosition&&Z.endPosition&&(z.progressBarStartPosition=Z.startPosition,z.progressBarEndPosition=Z.endPosition);var q=Z.gatedActionsOverlayRenderer;q&&(z.er=g.P(q,agu));var d,I,O,G=g.P((d=z.getWatchNextResponse())==null?void 0:(I=d.playerOverlays)==null?void 0:(O=I.playerOverlayRenderer)==null?void 0:O.infoPanel,KZz);if(G){z.AK=Number(G==null?void 0:G.durationMs)|| +NaN;if(G==null?0:G.infoPanelOverviewViewModel)z.vA=G==null?void 0:G.infoPanelOverviewViewModel;if(G==null?0:G.infoPanelDetailsViewModel)z.Vy=G==null?void 0:G.infoPanelDetailsViewModel}z.showSeekingControls=!!Z.showSeekingControls}}var n,C,K=(n=z.getWatchNextResponse())==null?void 0:(C=n.contents)==null?void 0:C.twoColumnWatchNextResults;if(K){var f=K.desktopOverlay&&g.P(K.desktopOverlay,BRf);f&&(f.suppressShareButton&&(z.showShareButton=!1),f.suppressWatchLaterButton&&(z.gW=!1))}l&&SUq(z,J,l);var x= +cR(0,J.autoplay_count),V=z.getWatchNextResponse(),zE,k=(zE=V.contents)==null?void 0:zE.twoColumnWatchNextResults,Ez,ij,r,t=(Ez=V.playerOverlays)==null?void 0:(ij=Ez.playerOverlayRenderer)==null?void 0:(r=ij.autoplay)==null?void 0:r.playerOverlayAutoplayRenderer,v=kiz(z),N,H=(N=V.contents)==null?void 0:N.singleColumnWatchNextResults;if(H){var Pq;if(((Pq=H.autoplay)==null?0:Pq.autoplay)&&!H.playlist){var KN=H.autoplay.autoplay.sets,pN={},S4=new g.ao(z.W()),J4=null,iF;if(KN){for(var N1=g.y(KN),Y=N1.next();!Y.done;Y= +N1.next()){var a=Y.value.autoplayVideoRenderer;if(a&&a.compactVideoRenderer){J4=a.compactVideoRenderer;break}}if(iF=KN[0].autoplayVideo){var B=iF.clickTrackingParams;B&&(pN.itct=B);pN.autonav="1";pN.playnext=String(x)}}else pN.feature="related-auto";var b=g.P(iF,g.rN);if(J4){S4.videoId=J4.videoId;var A=J4.shortBylineText;A&&(S4.author=g.GZ(A));var Ju=J4.title;Ju&&(S4.title=g.GZ(Ju))}else b!=null&&b.videoId&&(S4.videoId=b.videoId);S4.Ex=pN;z.suggestions=[];z.mC=S4}}if(v){for(var Zs=[],F1=g.y(v),M= +F1.next();!M.done;M=F1.next()){var wu=M.value,yR=void 0,Wq=null;if(wu.endScreenVideoRenderer){var $u=wu.endScreenVideoRenderer,yS=$u.title;Wq=new g.ao(z.W());Wq.videoId=$u.videoId;Wq.lengthSeconds=$u.lengthInSeconds||0;var VS=$u.publishedTimeText;VS&&(Wq.publishedTimeText=g.GZ(VS));var Ok=$u.shortBylineText;Ok&&(Wq.author=g.GZ(Ok));var ku=$u.shortViewCountText;ku&&(Wq.shortViewCount=g.GZ(ku));if(yS){Wq.title=g.GZ(yS);var Pu=yS.accessibility;if(Pu){var w8=Pu.accessibilityData;w8&&w8.label&&(Wq.ariaLabel= +w8.label)}}var oa=$u.navigationEndpoint;if(oa){yR=oa.clickTrackingParams;var Ri=g.P(oa,g.rN),dC=g.P(oa,g.uY);Ri?Wq.QR=Ri:dC!=null&&(Wq.watchUrl=dC.url)}var Rm=$u.thumbnailOverlays;if(Rm)for(var ts=g.y(Rm),kL=ts.next();!kL.done;kL=ts.next()){var YL=kL.value.thumbnailOverlayTimeStatusRenderer;if(YL)if(YL.style==="LIVE"){Wq.isLivePlayback=!0;break}else if(YL.style==="UPCOMING"){Wq.isUpcoming=!0;break}}Wq.B=NJ($u.thumbnail)}else if(wu.endScreenPlaylistRenderer){var Ii=wu.endScreenPlaylistRenderer,by= +Ii.navigationEndpoint;if(!by)continue;var Oi=g.P(by,g.rN);if(!Oi)continue;var $V=Oi.videoId;Wq=new g.Cr(z.W());Wq.playlistId=Ii.playlistId;Wq.playlistLength=Number(Ii.videoCount)||0;Wq.K=$V||null;Wq.videoId=$V;var PD=Ii.title;PD&&(Wq.title=g.GZ(PD));var tV=Ii.shortBylineText;tV&&(Wq.author=g.GZ(tV));yR=by.clickTrackingParams;Wq.B=NJ(Ii.thumbnail)}Wq&&(yR&&(Wq.sessionData={itct:yR}),Zs.push(Wq))}z.suggestions=Zs}if(t){z.ju=!!t.preferImmediateRedirect;z.SC=z.SC||!!t.webShowNewAutonavCountdown;z.gq= +z.gq||!!t.webShowBigThumbnailEndscreen;if(z.SC||z.gq){var KS=k||null,mr=new g.ao(z.W());mr.videoId=t.videoId;var LL=t.videoTitle;if(LL){mr.title=g.GZ(LL);var ZE=LL.accessibility;if(ZE){var oz=ZE.accessibilityData;oz&&oz.label&&(mr.ariaLabel=oz.label)}}var Jj=t.byline;Jj&&(mr.author=g.GZ(Jj));var p0=t.publishedTimeText;p0&&(mr.publishedTimeText=g.GZ(p0));var C2=t.shortViewCountText;C2&&(mr.shortViewCount=g.GZ(C2));var ab=t.thumbnailOverlays;if(ab)for(var K2=g.y(ab),ql=K2.next();!ql.done;ql=K2.next()){var lA= +ql.value.thumbnailOverlayTimeStatusRenderer;if(lA)if(lA.style==="LIVE"){mr.isLivePlayback=!0;break}else if(lA.style==="UPCOMING"){mr.isUpcoming=!0;break}else if(lA.style==="DEFAULT"&&lA.text){mr.lengthText=g.GZ(lA.text);var d6=lA.text.accessibility;if(d6){var IE=d6.accessibilityData;IE&&IE.label&&(mr.R7=IE.label||"")}break}}mr.B=NJ(t.background);var Bz=t.nextButton;if(Bz){var Si=Bz.buttonRenderer;if(Si){var f2=Si.navigationEndpoint;if(f2){var DU=g.P(f2,g.rN);DU&&(mr.QR=DU)}}}if(t.topBadges){var b1= +t.topBadges[0];if(b1){var $_=g.P(b1,fgq);$_&&$_.style==="BADGE_STYLE_TYPE_PREMIUM"&&(mr.hCi=!0)}}var vH=t.alternativeTitle;vH&&(mr.zc=g.GZ(vH));var jp={autonav:"1",playnext:String(x)};mr.playlistId&&(jp.autoplay="1");if(KS){var sH,kf,Op,g7,pM=(sH=KS.autoplay)==null?void 0:(kf=sH.autoplay)==null?void 0:(Op=kf.sets)==null?void 0:(g7=Op[0])==null?void 0:g7.autoplayVideo;if(pM){var x_=pM.clickTrackingParams;x_&&(jp.itct=x_);var yj=g.P(pM,g.rN);yj&&(mr.x8=yj)}}else if(t){var MU,Ao,ob,ji=(MU=t.nextButton)== +null?void 0:(Ao=MU.buttonRenderer)==null?void 0:(ob=Ao.navigationEndpoint)==null?void 0:ob.clickTrackingParams;ji&&(jp.itct=ji)}jp.itct||(jp.feature="related-auto");mr.Ex=jp;z.suggestions||(z.suggestions=[]);z.mC=mr}t.countDownSecs!=null&&(z.p4=t.countDownSecs*1E3);t.countDownSecsForFullscreen!=null&&(z.xd=t.countDownSecsForFullscreen>=0?t.countDownSecsForFullscreen*1E3:-1);z.C("web_autonav_color_transition")&&t.watchToWatchTransitionRenderer&&(z.watchToWatchTransitionRenderer=g.P(t.watchToWatchTransitionRenderer, +DWE))}var Nl=kiz(z);if(Nl){var aT,ho,Gr,Xe=Nl==null?void 0:(aT=Nl[0])==null?void 0:(ho=aT.endScreenVideoRenderer)==null?void 0:(Gr=ho.navigationEndpoint)==null?void 0:Gr.clickTrackingParams,u1=g.zF(z);Xe&&u1&&(u1.sessionData={itct:Xe})}z.Lh.currentVideoThumbnail&&(z.B=NJ(z.Lh.currentVideoThumbnail));var r0,V$,Pz,zD,to,KT=(r0=z.Lh)==null?void 0:(V$=r0.contents)==null?void 0:(Pz=V$.twoColumnWatchNextResults)==null?void 0:(zD=Pz.results)==null?void 0:(to=zD.results)==null?void 0:to.contents;if(KT&&KT[1]){var Hz, +U2,hQ,KP,HD=(Hz=KT[1].videoSecondaryInfoRenderer)==null?void 0:(U2=Hz.owner)==null?void 0:(hQ=U2.videoOwnerRenderer)==null?void 0:(KP=hQ.thumbnail)==null?void 0:KP.thumbnails;HD&&HD.length&&(z.profilePicture=HD[HD.length-1].url)}var Rb=ws(J),nM,BA=(nM=z.getWatchNextResponse())==null?void 0:nM.onResponseReceivedEndpoints;if(BA)for(var SV=g.y(BA),Yd=SV.next();!Yd.done;Yd=SV.next()){var U7=Yd.value;g.P(U7,JX)&&(z.MP=g.P(U7,JX));var fT=g.P(U7,b6q),k_=void 0;if((k_=fT)==null?0:k_.entityKeys)z.y5=fT.entityKeys|| +[],fT.visibleOnLoadKeys&&(z.visibleOnLoadKeys=fT.visibleOnLoadKeys)}if(z.C("web_key_moments_markers")){var mc=g.mB.getState().entities,q9=g.zV("visibility_override","markersVisibilityOverrideEntity");var mh=mT(mc,"markersVisibilityOverrideEntity",q9);z.tZ=(mh==null?void 0:mh.videoId)===(z.videoId||Rb)&&(mh==null?0:mh.visibilityOverrideMarkersKey)?mh.visibilityOverrideMarkersKey:z.visibleOnLoadKeys;z.visibleOnLoadKeys=[].concat(g.X(z.tZ))}}}; +sl=function(z){var J;return((J=z.autoplaySwitchButtonRenderer)==null?void 0:J.enabled)!==void 0}; +eg=function(z){return!!(z.S&&z.S.videoInfos&&z.S.videoInfos.length)}; +g.ii=function(z){var J=z.X;z.C("html5_gapless_unlimit_format_selection")&&TF(z)&&(J=!1);var m=!!z.K&&z.K.Cq,e=z.e4,T=z.Cf(),E=EH(z),Z=z.h6,c=J,W=z.isOtf();J=z.zb();var l=z.yH,w=z.getUserAudio51Preference(),q=ZR(z),d=new Z5q(e);if(e.AZ()||e.C("html5_logging_format_selection"))d.T=!0;d.ND=E;d.h6=Z&&e.V;d.Qx=w;g.RQ("windows nt 5.1")&&!g.V4&&(d.FV=!0);if(E=T)E=g.Jc(e)?EgE(e):!1;E&&(d.fh=!0);c&&(d.FV=!0,d.l8=!0);W&&!e.C("html5_otf_prefer_vp9")&&(d.FV=!0);e.playerStyle==="picasaweb"&&(W&&(d.FV=!1),d.Tf= +!1);l&&(d.FV=!0);nZ(e.Z,Ye.CHANNELS)&&(e.C("html5_enable_ac3")&&(d.Z=!0),e.C("html5_enable_eac3")&&(d.Y=!0),e.C("html5_enable_ac3_gapless")&&(d.Gf=!0));e.C("html5_block_8k_hfr")&&(d.O2=!0);d.V=g.dv(e.experiments,"html5_max_selectable_quality_ordinal");d.X=g.dv(e.experiments,"html5_min_selectable_quality_ordinal");Ki&&(d.OC=480);if(m||T)d.Tf=!1;d.yH=!1;d.disableAv1=q;m=$Q(e,d.K,void 0,d.disableAv1);m>0&&m<2160&&(NU()||e.C("html5_format_hybridization"))&&(d.K.supportsChangeType=+NU(),d.nB=m);m>=2160&& +(d.x3=!0);$Pu()&&(d.K.serveVp9OverAv1IfHigherRes=0,d.ED=!1);d.zb=J;d.qD=g.s0||EF()&&!J?!1:!0;d.B=e.C("html5_format_hybridization");d.IT=e.C("html5_disable_encrypted_vp9_live_non_2k_4k");Fr(z)&&(d.Rs=z.C("html5_prefer_language_over_codec"));Qp()&&z.playerResponse&&z.playerResponse.playerConfig&&z.playerResponse.playerConfig.webPlayerConfig&&z.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(d.Z=!0,d.Y=!0);z.X&&z.isAd()&&(z.KH&&(d.Ry=z.KH),z.ow&&(d.U=z.ow));d.Lh=z.isLivePlayback&& +z.xE()&&z.e4.C("html5_drm_live_audio_51");d.tZ=z.JP;return z.s4=d}; +ZR=function(z){return z.e4.C("html5_disable_av1")||z.C("html5_gapless_shorts_disable_av1")&&TF(z)?!0:!1}; +$Ws=function(z){Ph("drm_pb_s",void 0,z.qD);z.O2||z.K&&pZ(z.K);var J={};z.K&&(J=Hfj(z.Jd,g.ii(z),z.e4.Z,z.K,function(m){return z.publish("ctmp","fmtflt",m)},!0,new Set)); +J=new kQ(J,z.e4,z.Xu,z.useCobaltWidevine?Qp()?cH(z):!1:!1,function(m,e){z.ph(m,e)}); +g.u(z,J);z.S8=!1;z.loading=!0;pr4(J,function(m){Ph("drm_pb_f",void 0,z.qD);for(var e=g.y(m),T=e.next();!T.done;T=e.next())switch(T=T.value,T.flavor){case "fairplay":T.O2=z.O2;T.F5=z.F5;T.W0=z.W0;break;case "widevine":T.Oe=z.Oe}z.k$=m;if(z.k$.length>0&&(z.Z=z.k$[0],z.e4.AZ())){m={};e=g.y(Object.entries(z.Z.K));for(T=e.next();!T.done;T=e.next()){var E=g.y(T.value);T=E.next().value;E=E.next().value;var Z="unk";(T=T.match(/(.*)codecs="(.*)"/))&&(Z=T[2]);m[Z]=E}z.ph("drmProbe",m)}z.sP()})}; +gAf=function(z,J){if(J.length===0||WH(z))return null;z.e4.Z.S&&(ft=!0);var m=z.Nx;var e=z.lengthSeconds,T=z.isLivePlayback,E=z.Ol,Z=z.e4,c=H2u(J);if(T||E){Z=Z.experiments;e=new dK("",Z,!0);e.T=!E;e.Cq=!0;e.isManifestless=!0;e.isLive=!E;e.Ol=E;J=g.y(J);for(T=J.next();!T.done;T=J.next()){var W=T.value;T=pt(W,m);c=Dr(W);c=Nd(c.yP||W.url||"",c.Le,c.s);var l=c.get("id");l&&l.includes("%7E")&&(e.B=!0);var w=void 0;l=(w=Z)==null?void 0:w.j4("html5_max_known_end_time_rebase");w=Number(W.targetDurationSec|| +5);W=Number(W.maxDvrDurationSec||14400);var q=Number(c.get("mindsq")||c.get("min_sq")||"0"),d=Number(c.get("maxdsq")||c.get("max_sq")||"0")||Infinity;e.Jp=e.Jp||q;e.Ni=e.Ni||d;var I=!E2(T.mimeType);c&&ls(e,new sI(c,T,{Sd:w,zC:I,DJ:W,Jp:q,Ni:d,AL:300,Ol:E,fU:l}))}m=e}else if(c==="FORMAT_STREAM_TYPE_OTF"){e=e===void 0?0:e;E=new dK("",Z.experiments,!1);E.duration=e||0;Z=g.y(J);for(e=Z.next();!e.done;e=Z.next())e=e.value,J=pt(e,m,E.duration),T=Dr(e),(T=Nd(T.yP||e.url||"",T.Le,T.s))&&(J.streamType==="FORMAT_STREAM_TYPE_OTF"? +ls(E,new rt(T,J,"sq/0")):ls(E,new is(T,J,$Y(e.initRange),$Y(e.indexRange))));E.isOtf=!0;m=E}else{e=e===void 0?0:e;E=new dK("",Z.experiments,!1);E.duration=e||0;Z=g.y(J);for(e=Z.next();!e.done;e=Z.next())c=e.value,e=pt(c,m,E.duration),J=$Y(c.initRange),T=$Y(c.indexRange),l=Dr(c),(c=Nd(l.yP||c.url||"",l.Le,l.s))&&ls(E,new is(c,e,J,T));m=E}E=z.isLivePlayback&&!z.Ol&&!z.Qx&&!z.isPremiere;z.C("html5_live_head_playable")&&(!li(z)&&E&&z.ph("missingLiveHeadPlayable",{}),z.e4.Ry==="yt"&&(m.qD=!0));return m}; +WH=function(z){return Qp()?!cH(z):sL()?!(!z.O2||!z.C("html5_enable_safari_fairplay")&&mz()):!1}; +cH=function(z){return z.C("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; +g.v$=function(z,J){J=g.y(J);for(var m=J.next();!m.done;m=J.next())if(m=m.value,m.cueRangeSetIdentifier){var e=void 0;z.e7.set(m.cueRangeSetIdentifier,(e=m.playerCueRanges)!=null?e:[])}}; +w0=function(z){return!(!z.K||!z.K.isManifestless)}; +qL=function(z){return z.Wr?z.isLowLatencyLiveStream&&z.K!=null&&YQ(z.K)>=5:z.isLowLatencyLiveStream&&z.K!=void 0&&YQ(z.K)>=5}; +xWf=function(z){return Qp()&&cH(z)?!1:WH(z)&&(g.K1(z.e4)?!z.isLivePlayback:z.hlsvp)||!mz()||z.Eo?!0:!1}; +oAq=function(z){z.loading=!0;z.jf=!1;if(Mvb(z))g.TRq(z.videoId).then(function(e){Amq(z,e)}).then(function(){z.sP()}); +else{Jl(z.OD)||g.hr(new g.vR("DASH MPD Origin invalid: ",z.OD));var J=z.OD,m=g.dv(z.e4.experiments,"dash_manifest_version")||4;J=g.v1(J,{mpd_version:m});z.isLowLatencyLiveStream&&z.latencyClass!=="NORMAL"||(J=g.v1(J,{pacing:0}));rou(J,z.e4.experiments,z.isLivePlayback).then(function(e){z.mF()||(d0(z,e,!0),Ph("mrc",void 0,z.qD),z.sP())},function(e){z.mF()||(z.loading=!1,z.publish("dataloaderror",new Sl("manifest.net.retryexhausted",{backend:"manifest", +rc:e.status},1)))}); +Ph("mrs",void 0,z.qD)}}; +Amq=function(z,J){var m=J.map(function(W){return W.itag}),e; +if((e=z.playerResponse)!=null&&e.streamingData){e=[];if(z.C("html5_offline_always_use_local_formats")){m=0;for(var T=g.y(J),E=T.next();!E.done;E=T.next()){E=E.value;var Z=Object.assign({},E);Z.signatureCipher="";e.push(Z);Z=g.y(z.playerResponse.streamingData.adaptiveFormats);for(var c=Z.next();!c.done;c=Z.next())if(c=c.value,E.itag===c.itag&&E.xtags===c.xtags){m+=1;break}}mw&&(w=I.getInfo().audio.numChannels)}w>2&&z.ph("hlschl",{mn:w});var n;((n=z.s4)==null?0:n.T)&&z.ph("hlsfmtaf",{itags:q.join(".")});var C;if(z.C("html5_enable_vp9_fairplay")&&((C=z.Z)==null?0:hG(C)))for(z.ph("drm",{sbdlfbk:1}),w=g.y(z.k$),q=w.next();!q.done;q=w.next())if(q=q.value,jh(q)){z.Z=q;break}yX(z,l)})}return Mp()}; +Pru=function(z){if(z.isExternallyHostedPodcast&&z.Ks){var J=pn(z.Ks);if(!J[0])return Mp();z.BS=J[0];return BUu(z.e4,J[0]).then(function(m){yX(z,m)})}return z.Fj&&z.hE?K61(z.e4,z.isAd(),z.Fj).then(function(m){yX(z,m)}):Mp()}; +H6q=function(z){if(z.isExternallyHostedPodcast)return Mp();var J=pn(z.Ks,z.uT);if(z.hlsvp){var m=dWb(z.hlsvp,z.clientPlaybackNonce,z.qx);J.push(m)}return alj(z.e4,z.isAd(),J,tvu(z)).then(function(e){yX(z,e)})}; +yX=function(z,J){z.Zo=J;z.q8(new wb(g.Ch(z.Zo,function(m){return m.getInfo()})))}; +tvu=function(z){var J={cpn:z.clientPlaybackNonce,c:z.e4.K.c,cver:z.e4.K.cver};z.Hw&&(J.ptk=z.Hw,J.oid=z.Xk,J.ptchn=z.qP,J.pltype=z.Wj,z.q7&&(J.m=z.q7));return J}; +g.NL=function(z){return WH(z)&&z.O2?(z={},z.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",z):z.T&&z.T.Nx||null}; +UW1=function(z){var J=GF(z);return J&&J.text?g.GZ(J.text):z.paidContentOverlayText}; +R74=function(z){var J=GF(z);return J&&J.durationMs?ZL(J.durationMs):z.paidContentOverlayDurationMs}; +GF=function(z){var J,m,e;return z.playerResponse&&z.playerResponse.paidContentOverlay&&z.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.P((J=z.Lh)==null?void 0:(m=J.playerOverlays)==null?void 0:(e=m.playerOverlayRenderer)==null?void 0:e.playerDisclosure,kAu)||null}; +Xr=function(z){var J="";if(z.ZI)return z.ZI;z.isLivePlayback&&(J=z.allowLiveDvr?"dvr":z.isPremiere?"lp":z.Qx?"window":"live");z.Ol&&(J="post");return J}; +g.nn=function(z,J){return typeof z.keywords[J]!=="string"?null:z.keywords[J]}; +LZE=function(z){return!!z.KA||!!z.yB||!!z.NN||!!z.b1||z.ax||z.V.focEnabled||z.V.rmktEnabled}; +g.Yv=function(z){return!!(z.OD||z.Ks||z.Fj||z.hlsvp||z.im())}; +Ul=function(z){if(z.C("html5_onesie")&&z.errorCode)return!1;var J=g.s1(z.Tf,"ypc");z.ypcPreview&&(J=!1);return z.pZ()&&!z.loading&&(g.Yv(z)||g.s1(z.Tf,"heartbeat")||J)}; +pn=function(z,J){z=Fj(z);var m={};if(J){J=g.y(J.split(","));for(var e=J.next();!e.done;e=J.next())(e=e.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(m[e[1]]={width:e[2],height:e[3]})}J=g.y(z);for(e=J.next();!e.done;e=J.next()){e=e.value;var T=m[e.itag];T&&(e.width=T.width,e.height=T.height)}return z}; +Cn=function(z){var J=z.getAvailableAudioTracks();J=J.concat(z.zs);for(var m=0;m0:J||z.adFormat!=="17_8"||z.isAutonav||g.rc(z.e4)||z.rk?z.XH?!1:z.e4.Ks||z.e4.T2||!g.fi(z.e4)?!J&&ML(z)==="adunit"&&z.KA?!1:!0:!1:!1:(z.XH?0:z.Bk)&&g.fi(z.e4)?!0:!1;z.C("html5_log_detailpage_autoplay")&&ML(z)==="detailpage"&&z.ph("autoplay_info",{autoplay:z.oi,autonav:z.isAutonav,wasDompaused:z.XH,result:J});return J}; +g.ui=function(z){return z.oauthToken||z.e4.zs}; +iwb=function(z){if(z.C("html5_stateful_audio_normalization")){var J=1,m=g.dv(z.e4.experiments,"html5_default_ad_gain");m&&z.isAd()&&(J=m);var e;if(m=((e=z.U)==null?void 0:e.audio.T)||z.Ix){e=(0,g.b5)();z.DX=2;var T=e-z.e4.iV<=z.maxStatefulTimeThresholdSec*1E3;z.applyStatefulNormalization&&T?z.DX=4:T||(z.e4.Ee=Infinity,z.e4.iV=NaN);T=(z.DX===4?g.O8(z.e4.Ee,z.minimumLoudnessTargetLkfs,z.loudnessTargetLkfs):z.loudnessTargetLkfs)-m;if(z.DX!==4){var E,Z,c,W,l=((E=z.playerResponse)==null?void 0:(Z=E.playerConfig)== +null?void 0:(c=Z.audioConfig)==null?void 0:(W=c.loudnessNormalizationConfig)==null?void 0:W.statelessLoudnessAdjustmentGain)||0;T+=l}T=Math.min(T,0);z.preserveStatefulLoudnessTarget&&(z.e4.Ee=m+T,z.e4.iV=e);z=Math.min(1,Math.pow(10,T/20))||J}else z=F1z(z)}else z=F1z(z);return z}; +F1z=function(z){var J=1,m=g.dv(z.e4.experiments,"html5_default_ad_gain");m&&z.isAd()&&(J=m);var e;if(m=((e=z.U)==null?void 0:e.audio.S)||z.US)z.DX=1;return Math.min(1,Math.pow(10,-m/20))||J}; +EH=function(z){var J=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],m=sY(z.e4)==="TVHTML5_SIMPLY"&&z.e4.K.ctheme==="MUSIC";z.T2||!g.uB(z.e4)&&!m||!J.includes(z.musicVideoType)&&!z.isExternallyHostedPodcast||(z.T2=!0);if(J=g.LH())J=/Starboard\/([0-9]+)/.exec(g.bF()),J=(J?parseInt(J[1],10):NaN)<10;m=z.e4;m=(sY(m)==="TVHTML5_CAST"||sY(m)==="TVHTML5"&&(m.K.cver.startsWith("6.20130725")||m.K.cver.startsWith("6.20130726")))&&z.e4.K.ctheme==="MUSIC";var e;if(e=!z.T2)m||(m=z.e4,m=sY(m)=== +"TVHTML5"&&m.K.cver.startsWith("7")),e=m;e&&!J&&(J=z.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",m=(z.C("cast_prefer_audio_only_for_atv_and_uploads")||z.C("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&z.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",J||m||z.isExternallyHostedPodcast)&&(z.T2=!0);return z.e4.deviceIsAudioOnly||z.T2&&z.e4.V}; +czj=function(z){var J,m,e;return((J=z.playerResponse)==null?void 0:(m=J.playerConfig)==null?void 0:(e=m.compositeVideoConfig)==null?void 0:e.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; +g.W1u=function(z){return z.C("html5_enable_sabr_live_captions")&&z.Cq()&&Fr(z)||czj(z)}; +VX=function(z){var J,m,e;return!!((J=z.playerResponse)==null?0:(m=J.playerConfig)==null?0:(e=m.mediaCommonConfig)==null?0:e.splitScreenEligible)}; +PH=function(z){var J;return!((J=z.playerResponse)==null||!J.compositePlayabilityStatus)}; +lAq=function(z){return isNaN(z)?0:Math.max((Date.now()-z)/1E3-30,0)}; +tX=function(z){return!(!z.bG||!z.e4.V)&&z.im()}; +HH=function(z){return z.LH&&z.enableServerStitchedDai}; +wCu=function(z){return z.mY&&!z.Gp}; +Fr=function(z){var J=z.C("html5_enable_sabr_on_drive")&&z.e4.Ry==="gd";if(z.Gb)return z.mY&&z.ph("fds",{fds:!0},!0),!1;if(z.e4.Ry!=="yt"&&!J)return z.mY&&z.ph("dsvn",{ns:z.e4.Ry},!0),!1;if(z.cotn||!z.K||z.K.isOtf||z.Qg&&!z.C("html5_enable_sabr_csdai"))return!1;if(z.C("html5_use_sabr_requests_for_debugging"))return!0;z.mY&&z.ph("esfw",{usbc:z.mY,hsu:!!z.Gp},!0);if(z.mY&&z.Gp)return!0;if(z.C("html5_remove_client_sabr_determination"))return!1;var m=!z.K.Cq&&!z.xE();J=m&&rK&&z.C("html5_enable_sabr_vod_streaming_xhr"); +m=m&&!rK&&z.C("html5_enable_sabr_vod_non_streaming_xhr");var e=UH(z),T=z.C("html5_enable_sabr_drm_vod_streaming_xhr")&&rK&&z.xE()&&!z.K.Cq&&(z.hJ==="1"?!1:!0);(J=J||m||e||T)&&!z.Gp&&z.ph("sabr",{loc:"m"},!0);return J&&!!z.Gp}; +UH=function(z){var J;if(!(J=rK&&z.Cq()&&z.xE()&&(z.hJ==="1"?!1:!0)&&z.C("html5_sabr_live_drm_streaming_xhr"))){J=z.Cq()&&!z.xE()&&rK;var m=z.Cq()&&z.latencyClass!=="ULTRALOW"&&!z.isLowLatencyLiveStream&&z.C("html5_sabr_live_normal_latency_streaming_xhr"),e=z.isLowLatencyLiveStream&&z.C("html5_sabr_live_low_latency_streaming_xhr"),T=z.latencyClass==="ULTRALOW"&&z.C("html5_sabr_live_ultra_low_latency_streaming_xhr");J=J&&(m||e||T)}m=J;J=z.enableServerStitchedDai&&m&&z.C("html5_enable_sabr_ssdai_streaming_xhr"); +m=!z.enableServerStitchedDai&&m;e=z.Cq()&&!rK&&z.C("html5_enable_sabr_live_non_streaming_xhr");z=rK&&(z.b8()||VX(z)&&z.C("html5_enable_sabr_for_lifa_eligible_streams"));return J||m||e||z}; +g.Lr=function(z){return z.qm&&Fr(z)}; +Mvb=function(z){var J;if(J=!!z.cotn)J=z.videoId,J=!!J&&g.Df(J)===1;return J&&!z.bG}; +g.RN=function(z){if(!z.K||!z.T||!z.U)return!1;var J=z.K.K,m=!!J[z.T.id]&&BJ(J[z.T.id].QH.K);J=!!J[z.U.id]&&BJ(J[z.U.id].QH.K);return(z.T.itag==="0"||m)&&J}; +kv=function(z){return z.UM?["OK","LIVE_STREAM_OFFLINE"].includes(z.UM.status):!0}; +z3q=function(z){return(z=z.FF)&&z.showError?z.showError:!1}; +Ln=function(z,J){return z.C(J)?!0:(z.fflags||"").includes(J+"=true")}; +qvq=function(z){return z.C("html5_heartbeat_iff_heartbeat_params_filled")}; +X3b=function(z,J){J.inlineMetricEnabled&&(z.inlineMetricEnabled=!0);J.playback_progress_0s_url&&(z.b1=new QA4(J));if(J=J.video_masthead_ad_quartile_urls)z.yB=J.quartile_0_url,z.Bj=J.quartile_25_url,z.cj=J.quartile_50_url,z.r4=J.quartile_75_url,z.O_=J.quartile_100_url,z.NN=J.quartile_0_urls,z.RL=J.quartile_25_urls,z.l4=J.quartile_50_urls,z.tP=J.quartile_75_urls,z.pW=J.quartile_100_urls}; +GAb=function(z){var J={};z=g.y(z);for(var m=z.next();!m.done;m=z.next()){m=m.value;var e=m.split("=");e.length===2?J[e[0]]=e[1]:J[m]=!0}return J}; +p3b=function(z){if(z){if(TFu(z))return z;z=ECj(z);if(TFu(z,!0))return z}return""}; +g.dFR=function(z){return z.captionsLanguagePreference||z.e4.captionsLanguagePreference||g.nn(z,"yt:cc_default_lang")||z.e4.IT}; +QX=function(z){return!(!z.isLivePlayback||!z.hasProgressBarBoundaries())}; +g.zF=function(z){var J;return z.mC||((J=z.suggestions)==null?void 0:J[0])||null}; +g.J3=function(z){return z.yb&&(z.C("embeds_enable_pfp_always_unbranded")||z.e4.E7)}; +eM=function(z,J){z.C("html5_log_autoplay_src")&&TF(z)&&z.ph("apsrc",{src:J})}; +g.TD=function(z){var J,m;return!!((J=z.embeddedPlayerConfig)==null?0:(m=J.embeddedPlayerFlags)==null?0:m.enableMusicUx)}; +Eu=function(z){return z.e4.U&&z.isPrivate}; +g.Fq=function(z){var J=z.W(),m=g.Z5(J),e=J.nh;(J.C("embeds_web_enable_iframe_api_send_full_embed_url")||J.C("embeds_web_enable_rcat_validation_in_havs")||J.C("embeds_enable_autoplay_and_visibility_signals"))&&g.MA(J)&&(e&&(m.thirdParty=Object.assign({},m.thirdParty,{embedUrl:e})),MPz(m,z));if(e=z.x3)m.clickTracking={clickTrackingParams:e};e=m.client||{};var T="EMBED",E=ML(z);E==="leanback"?T="WATCH":J.C("gvi_channel_client_screen")&&E==="profilepage"?T="CHANNEL":z.yH?T="LIVE_MONITOR":E==="detailpage"? +T="WATCH_FULL_SCREEN":E==="adunit"?T="ADUNIT":E==="sponsorshipsoffer"&&(T="UNKNOWN");e.clientScreen=T;if(J=z.kidsAppInfo)e.kidsAppInfo=JSON.parse(J);(T=z.U7)&&!J&&(e.kidsAppInfo={contentSettings:{ageUpMode:IA1[T]}});if(J=z.ZD)e.unpluggedAppInfo={enableFilterMode:!0};(T=z.unpluggedFilterModeType)&&!J&&(e.unpluggedAppInfo={filterModeType:Owu[T]});if(J=z.Ry)e.unpluggedLocationInfo=J;m.client=e;e=m.request||{};z.yv&&(e.isPrefetch=!0);if(J=z.mdxEnvironment)e.mdxEnvironment=J;if(J=z.mdxControlMode)e.mdxControlMode= +pCE[J];m.request=e;e=m.user||{};if(J=z.fh)e.credentialTransferTokens=[{token:J,scope:"VIDEO"}];if(J=z.IT)e.delegatePurchases={oauthToken:J},e.kidsParent={oauthToken:J};m.user=e;if(e=z.contextParams)m.activePlayers=[{playerContextParams:e}];if(z=z.clientScreenNonce)m.clientScreenNonce=z;return m}; +g.Z5=function(z){var J=g.zr(),m=J.client||{};if(z.forcedExperiments){var e=z.forcedExperiments.split(","),T=[];e=g.y(e);for(var E=e.next();!E.done;E=e.next())T.push(Number(E.value));m.experimentIds=T}if(T=z.homeGroupInfo)m.homeGroupInfo=JSON.parse(T);if(T=z.getPlayerType())m.playerType=T;if(T=z.K.ctheme)m.theme=T;if(T=z.livingRoomAppMode)m.tvAppInfo=Object.assign({},m.tvAppInfo,{livingRoomAppMode:T});T=z.deviceYear;z.C("html5_propagate_device_year")&&T&&(m.tvAppInfo=Object.assign({},m.tvAppInfo,{deviceYear:T})); +if(T=z.livingRoomPoTokenId)m.tvAppInfo=Object.assign({},m.tvAppInfo,{livingRoomPoTokenId:T});J.client=m;m=J.user||{};z.enableSafetyMode&&(m=Object.assign({},m,{enableSafetyMode:!0}));z.pageId&&(m=Object.assign({},m,{onBehalfOfUser:z.pageId}));J.user=m;m=z.nh;z.C("embeds_web_enable_iframe_api_send_full_embed_url")||z.C("embeds_web_enable_rcat_validation_in_havs")||z.C("embeds_enable_autoplay_and_visibility_signals")||!m||(J.thirdParty={embedUrl:m});return J}; +Yvq=function(z,J,m){var e=z.videoId,T=g.Fq(z),E=z.W(),Z={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(bE()),referer:document.location.toString(),signatureTimestamp:20172};g.HR();z.isAutonav&&(Z.autonav=!0);g.UF(0,141)&&(Z.autonavState=g.UF(0,140)?"STATE_OFF":"STATE_ON");Z.autoCaptionsDefaultOn=g.UF(0,66);hX(z)&&(Z.autoplay=!0);E.V&&z.cycToken&&(Z.cycToken=z.cycToken);E.enablePrivacyFilter&&(Z.enablePrivacyFilter=!0);z.isFling&&(Z.fling=!0);var c=z.forceAdsUrl;if(c){var W={},l=[];c=c.split(","); +c=g.y(c);for(var w=c.next();!w.done;w=c.next()){w=w.value;var q=w.split("|");q.length!==3||w.includes("=")||(q[0]="breaktype="+q[0],q[1]="offset="+q[1],q[2]="url="+q[2]);w={adtype:"video_ad"};q=g.y(q);for(var d=q.next();!d.done;d=q.next()){var I=g.y(d.value.split("="));d=I.next().value;I=Euq(I);w[d]=I.join("=")}q=w.url;d=w.presetad;I=w.viralresponseurl;var O=Number(w.campaignid);if(w.adtype==="in_display_ad")q&&(W.url=q),d&&(W.presetAd=d),I&&(W.viralAdResponseUrl=I),O&&(W.viralCampaignId=String(O)); +else if(w.adtype==="video_ad"){var G={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(w.offset)||0)}};if(w=yzE[w.breaktype])G.breakType=w;q&&(G.url=q);d&&(G.presetAd=d);I&&(G.viralAdResponseUrl=I);O&&(G.viralCampaignId=String(O));l.push(G)}}Z.forceAdParameters={videoAds:l,inDisplayAd:W}}z.isInlinePlaybackNoAd&&(Z.isInlinePlaybackNoAd=!0);z.isLivingRoomDeeplink&&(Z.isLivingRoomDeeplink=!0);W=z.hN;if(W!=null){W={startWalltime:String(W)};if(l=z.J7)W.manifestDuration=String(l||14400);Z.liveContext= +W}if(z.mutedAutoplay){Z.mutedAutoplay=!0;W=E.getWebPlayerContextConfig();var n,C;(W==null?0:(n=W.embedsHostFlags)==null?0:n.allowMutedAutoplayDurationMode)&&(W==null?0:(C=W.embedsHostFlags)==null?0:C.allowMutedAutoplayDurationMode.includes(NVs[z.mutedAutoplayDurationMode]))&&(Z.mutedAutoplayDurationMode=NVs[z.mutedAutoplayDurationMode])}if(z.XH?0:z.Bk)Z.splay=!0;n=z.vnd;n===5&&(Z.vnd=n);n={};if(C=z.isMdxPlayback)n.triggeredByMdx=C;if(C=z.pz)n.skippableAdsSupported=C.split(",").includes("ska");if(l= +z.wu){C=z.KW;W=[];l=g.y(Alq(l));for(c=l.next();!c.done;c=l.next()){c=c.value;w=c.platform;c={applicationState:c.Ny?"INACTIVE":"ACTIVE",clientFormFactor:Gcq[w]||"UNKNOWN_FORM_FACTOR",clientName:jPq[c.LO]||"UNKNOWN_INTERFACE",clientVersion:c.deviceVersion||"",platform:XCb[w]||"UNKNOWN_PLATFORM"};w={};if(C){q=void 0;try{q=JSON.parse(C)}catch(K){g.hr(K)}q&&(w={params:[{key:"ms",value:q.ms}]},q.advertising_id&&(w.advertisingId=q.advertising_id),q.limit_ad_tracking!==void 0&&q.limit_ad_tracking!==null&& +(w.limitAdTracking=q.limit_ad_tracking),c.osName=q.os_name,c.userAgent=q.user_agent,c.windowHeightPoints=q.window_height_points,c.windowWidthPoints=q.window_width_points)}W.push({adSignalsInfo:w,remoteClient:c})}n.remoteContexts=W}C=z.sourceContainerPlaylistId;W=z.serializedMdxMetadata;if(C||W)l={},C&&(l.mdxPlaybackContainerInfo={sourceContainerPlaylistId:C}),W&&(l.serializedMdxMetadata=W),n.mdxPlaybackSourceContext=l;Z.mdxContext=n;n=J.width;n>0&&(Z.playerWidthPixels=Math.round(n));if(J=J.height)Z.playerHeightPixels= +Math.round(J);m!==0&&(Z.vis=m);if(m=E.widgetReferrer)Z.widgetReferrer=m.substring(0,128);g.fi(E)&&Z&&(Z.ancestorOrigins=E.ancestorOrigins);z.defaultActiveSourceVideoId&&(Z.compositeVideoContext={defaultActiveSourceVideoId:z.defaultActiveSourceVideoId});if(E=E.getWebPlayerContextConfig())Z.encryptedHostFlags=E.encryptedHostFlags;e={videoId:e,context:T,playbackContext:{contentPlaybackContext:Z}};z.reloadPlaybackParams&&(e.playbackContext.reloadPlaybackContext={reloadPlaybackParams:z.reloadPlaybackParams}); +z.contentCheckOk&&(e.contentCheckOk=!0);if(T=z.clientPlaybackNonce)e.cpn=T;if(T=z.playerParams)e.params=T;if(T=z.playlistId)e.playlistId=T;z.racyCheckOk&&(e.racyCheckOk=!0);T=z.W();if(Z=T.embedConfig)e.serializedThirdPartyEmbedConfig=Z;e.captionParams={};Z=g.UF(g.HR(),65);z.deviceCaptionsOn!=null?e.captionParams.deviceCaptionsOn=z.deviceCaptionsOn:g.vZ(T)&&(e.captionParams.deviceCaptionsOn=Z!=null?!Z:!1);z.CM&&(e.captionParams.deviceCaptionsLangPref=z.CM);z.VB.length?e.captionParams.viewerSelectedCaptionLangs= +z.VB:g.vZ(T)&&(Z=g.Ht(),Z==null?0:Z.length)&&(e.captionParams.viewerSelectedCaptionLangs=Z);Z=z.fetchType==="onesie"&&z.C("html5_onesie_attach_po_token");E=z.fetchType!=="onesie"&&z.C("html5_non_onesie_attach_po_token");if(Z||E)Z=z.W(),Z.vA&&(e.serviceIntegrityDimensions={},e.serviceIntegrityDimensions.poToken=Z.vA);T.C("fetch_att_independently")&&(e.attestationRequest={omitBotguardData:!0});e.playbackContext||(e.playbackContext={});e.playbackContext.devicePlaybackCapabilities=niq(z);e.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding=== +!1&&z.ph("noVp9",{});return e}; +niq=function(z){var J=!(z==null?0:z.zb())&&(z==null?void 0:z.Cq())&&EF(),m;if(m=z==null?0:z.C("html5_report_supports_vp9_encoding")){if(z==null)m=0;else{m=g.ii(z);z=z.W().Z;var e=Fw("243");m=e?OM(m,e,z,!0)===!0:!1}m=m&&!J}return{supportsVp9Encoding:!!m,supportXhr:rK}}; +aAz=function(z,J){var m,e,T;return g.D(function(E){if(E.K==1)return m={context:g.Z5(z.W()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:z.videoId,cpn:z.clientPlaybackNonce}}]},e=g.ej(Cgq),g.S(E,g.vh(J,m,e),2);T=E.T;return E.return(T)})}; +K14=function(z,J,m){var e=g.dv(J.experiments,"bg_vm_reinit_threshold");(!Ah||(0,g.b5)()-Ah>e)&&aAz(z,m).then(function(T){T&&(T=T.botguardData)&&g.hh(T,J)},function(T){z.mF()||(T=Dk(T),z.ph("attf",T.details))})}; +i8=function(z,J){g.h.call(this);this.app=z;this.state=J}; +WL=function(z,J,m){z.state.K.hasOwnProperty(J)||cL(z,J,m);z.state.V[J]=function(){return m.apply(z,g.gu.apply(0,arguments))}; +z.state.Y.add(J)}; +l8=function(z,J,m){z.state.K.hasOwnProperty(J)||cL(z,J,m);z.app.W().V&&(z.state.X[J]=function(){return m.apply(z,g.gu.apply(0,arguments))},z.state.Y.add(J))}; +cL=function(z,J,m){z.state.K[J]=function(){return m.apply(z,g.gu.apply(0,arguments))}}; +g.wd=function(z,J,m){return z.state.K[J].apply(z.state.K,g.X(m))}; +q0=function(){g.fz.call(this);this.Z=new Map}; +dd=function(){g.h.apply(this,arguments);this.element=null;this.Y=new Set;this.V={};this.X={};this.K={};this.B=new Set;this.S=new q0;this.T=new q0;this.U=new q0;this.Z=new q0}; +BV4=function(z,J,m){typeof z==="string"&&(z={mediaContentUrl:z,startSeconds:J,suggestedQuality:m});a:{if((J=z.mediaContentUrl)&&(J=/\/([ve]|embed)\/([^#?]+)/.exec(J))&&J[2]){J=J[2];break a}J=null}z.videoId=J;return Ip(z)}; +Ip=function(z,J,m){if(typeof z==="string")return{videoId:z,startSeconds:J,suggestedQuality:m};J={};m=g.y(Svq);for(var e=m.next();!e.done;e=m.next())e=e.value,z[e]&&(J[e]=z[e]);return J}; +fAq=function(z,J,m,e){if(g.QR(z)&&!Array.isArray(z)){J="playlist list listType index startSeconds suggestedQuality".split(" ");m={};for(e=0;e32&&e.push("hfr");J.isHdr()&&e.push("hdr");J.primaries==="bt2020"&&e.push("wcg");m.video_quality_features=e}}if(z=z.getPlaylistId())m.list=z;return m}; +GD=function(){Ou.apply(this,arguments)}; +Xq=function(z,J){var m={};if(z.app.W().fh){z=g.y(giq);for(var e=z.next();!e.done;e=z.next())e=e.value,J.hasOwnProperty(e)&&(m[e]=J[e]);if(J=m.qoe_cat)z="",typeof J==="string"&&J.length>0&&(z=J.split(",").filter(function(T){return xFj.includes(T)}).join(",")),m.qoe_cat=z; +MTj(m)}else for(z=g.y(Azb),e=z.next();!e.done;e=z.next())e=e.value,J.hasOwnProperty(e)&&(m[e]=J[e]);return m}; +MTj=function(z){var J=z.raw_player_response;if(!J){var m=z.player_response;m&&(J=JSON.parse(m))}delete z.player_response;delete z.raw_player_response;if(J){z.raw_player_response={streamingData:J.streamingData,playerConfig:J.playerConfig};var e;if((e=J.playbackTracking)==null?0:e.qoeUrl)z.raw_player_response=Object.assign({},z.raw_player_response,{playbackTracking:{qoeUrl:J.playbackTracking.qoeUrl}});var T;if((T=J.videoDetails)==null?0:T.videoId)z.raw_player_response=Object.assign({},z.raw_player_response, +{videoDetails:{videoId:J.videoDetails.videoId}})}}; +ne=function(z,J,m){var e=z.app.Hk(m);if(!e)return 0;z=e-z.app.getCurrentTime(m);return J-z}; +jyE=function(z){var J=J===void 0?5:J;return z?oij[z]||J:J}; +g.Y2=function(){GD.apply(this,arguments)}; +h3R=function(z){cL(z,"getInternalApiInterface",z.getInternalApiInterface);cL(z,"addEventListener",z.qV);cL(z,"removeEventListener",z.XAz);cL(z,"cueVideoByPlayerVars",z.QD);cL(z,"loadVideoByPlayerVars",z.SC4);cL(z,"preloadVideoByPlayerVars",z.UL3);cL(z,"getAdState",z.getAdState);cL(z,"sendAbandonmentPing",z.sendAbandonmentPing);cL(z,"setLoopRange",z.setLoopRange);cL(z,"getLoopRange",z.getLoopRange);cL(z,"setAutonavState",z.setAutonavState);cL(z,"seekTo",z.vZz);cL(z,"seekBy",z.f2x);cL(z,"seekToLiveHead", +z.seekToLiveHead);cL(z,"requestSeekToWallTimeSeconds",z.requestSeekToWallTimeSeconds);cL(z,"seekToStreamTime",z.seekToStreamTime);cL(z,"startSeekCsiAction",z.startSeekCsiAction);cL(z,"getStreamTimeOffset",z.getStreamTimeOffset);cL(z,"getVideoData",z.p1D);cL(z,"setInlinePreview",z.setInlinePreview);cL(z,"getAppState",z.getAppState);cL(z,"updateLastActiveTime",z.updateLastActiveTime);cL(z,"setBlackout",z.setBlackout);cL(z,"setUserEngagement",z.setUserEngagement);cL(z,"updateSubtitlesUserSettings",z.updateSubtitlesUserSettings); +cL(z,"getPresentingPlayerType",z.GI);cL(z,"canPlayType",z.canPlayType);cL(z,"updatePlaylist",z.updatePlaylist);cL(z,"updateVideoData",z.updateVideoData);cL(z,"updateEnvironmentData",z.updateEnvironmentData);cL(z,"sendVideoStatsEngageEvent",z.eC4);cL(z,"productsInVideoVisibilityUpdated",z.productsInVideoVisibilityUpdated);cL(z,"setSafetyMode",z.setSafetyMode);cL(z,"isAtLiveHead",function(J){return z.isAtLiveHead(void 0,J)}); +cL(z,"getVideoAspectRatio",z.getVideoAspectRatio);cL(z,"getPreferredQuality",z.getPreferredQuality);cL(z,"getPlaybackQualityLabel",z.getPlaybackQualityLabel);cL(z,"setPlaybackQualityRange",z.G2n);cL(z,"onAdUxClicked",z.onAdUxClicked);cL(z,"getFeedbackProductData",z.getFeedbackProductData);cL(z,"getStoryboardFrame",z.getStoryboardFrame);cL(z,"getStoryboardFrameIndex",z.getStoryboardFrameIndex);cL(z,"getStoryboardLevel",z.getStoryboardLevel);cL(z,"getNumberOfStoryboardLevels",z.getNumberOfStoryboardLevels); +cL(z,"getCaptionWindowContainerId",z.getCaptionWindowContainerId);cL(z,"getAvailableQualityLabels",z.getAvailableQualityLabels);cL(z,"addCueRange",z.addCueRange);cL(z,"addUtcCueRange",z.addUtcCueRange);cL(z,"showAirplayPicker",z.showAirplayPicker);cL(z,"dispatchReduxAction",z.dispatchReduxAction);cL(z,"getPlayerResponse",z.jm);cL(z,"getWatchNextResponse",z.v36);cL(z,"getHeartbeatResponse",z.AY);cL(z,"getCurrentTime",z.MR);cL(z,"getDuration",z.gh);cL(z,"getPlayerState",z.getPlayerState);cL(z,"getPlayerStateObject", +z.OO);cL(z,"getVideoLoadedFraction",z.getVideoLoadedFraction);cL(z,"getProgressState",z.getProgressState);cL(z,"getVolume",z.getVolume);cL(z,"setVolume",z.gZ);cL(z,"isMuted",z.isMuted);cL(z,"mute",z.gr);cL(z,"unMute",z.xT);cL(z,"loadModule",z.loadModule);cL(z,"unloadModule",z.unloadModule);cL(z,"getOption",z.yV);cL(z,"getOptions",z.getOptions);cL(z,"setOption",z.setOption);cL(z,"loadVideoById",z.W8);cL(z,"loadVideoByUrl",z.AI);cL(z,"playVideo",z.N4);cL(z,"loadPlaylist",z.loadPlaylist);cL(z,"nextVideo", +z.nextVideo);cL(z,"previousVideo",z.previousVideo);cL(z,"playVideoAt",z.playVideoAt);cL(z,"getDebugText",z.getDebugText);cL(z,"getWebPlayerContextConfig",z.getWebPlayerContextConfig);cL(z,"notifyShortsAdSwipeEvent",z.notifyShortsAdSwipeEvent);cL(z,"getVideoContentRect",z.getVideoContentRect);cL(z,"setSqueezeback",z.setSqueezeback);cL(z,"toggleSubtitlesOn",z.toggleSubtitlesOn);cL(z,"isSubtitlesOn",z.isSubtitlesOn);cL(z,"reportPlaybackIssue",z.reportPlaybackIssue);cL(z,"setAutonav",z.setAutonav);cL(z, +"isNotServable",z.isNotServable);cL(z,"channelSubscribed",z.channelSubscribed);cL(z,"channelUnsubscribed",z.channelUnsubscribed);cL(z,"togglePictureInPicture",z.togglePictureInPicture);cL(z,"supportsGaplessAudio",z.supportsGaplessAudio);cL(z,"supportsGaplessShorts",z.supportsGaplessShorts);cL(z,"enqueueVideoByPlayerVars",function(J){return void z.enqueueVideoByPlayerVars(J)}); +cL(z,"clearQueue",z.clearQueue);cL(z,"getAudioTrack",z.ZK);cL(z,"setAudioTrack",z.PU6);cL(z,"getAvailableAudioTracks",z.EO);cL(z,"getMaxPlaybackQuality",z.getMaxPlaybackQuality);cL(z,"getUserPlaybackQualityPreference",z.getUserPlaybackQualityPreference);cL(z,"getSubtitlesUserSettings",z.getSubtitlesUserSettings);cL(z,"resetSubtitlesUserSettings",z.resetSubtitlesUserSettings);cL(z,"setMinimized",z.setMinimized);cL(z,"setOverlayVisibility",z.setOverlayVisibility);cL(z,"confirmYpcRental",z.confirmYpcRental); +cL(z,"queueNextVideo",z.queueNextVideo);cL(z,"handleExternalCall",z.handleExternalCall);cL(z,"logApiCall",z.logApiCall);cL(z,"isExternalMethodAvailable",z.isExternalMethodAvailable);cL(z,"setScreenLayer",z.setScreenLayer);cL(z,"getCurrentPlaylistSequence",z.getCurrentPlaylistSequence);cL(z,"getPlaylistSequenceForTime",z.getPlaylistSequenceForTime);cL(z,"shouldSendVisibilityState",z.shouldSendVisibilityState);cL(z,"syncVolume",z.syncVolume);cL(z,"highlightSettingsMenuItem",z.highlightSettingsMenuItem); +cL(z,"openSettingsMenuItem",z.openSettingsMenuItem);cL(z,"getEmbeddedPlayerResponse",z.getEmbeddedPlayerResponse);cL(z,"getVisibilityState",z.getVisibilityState);cL(z,"isMutedByMutedAutoplay",z.isMutedByMutedAutoplay);cL(z,"isMutedByEmbedsMutedAutoplay",z.isMutedByEmbedsMutedAutoplay);cL(z,"setGlobalCrop",z.setGlobalCrop);cL(z,"setInternalSize",z.setInternalSize);cL(z,"setFauxFullscreen",z.setFauxFullscreen);cL(z,"setAppFullscreen",z.setAppFullscreen)}; +ap=function(z,J,m){z=g.Ce(z.iF(),J);return m?(m.addOnDisposeCallback(z),null):z}; +g.Ke=function(z,J,m){return z.app.W().hw?J:g.NQ("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:J,SHORTCUT:m})}; +upu=function(z){z.iF().element.setAttribute("aria-live","polite")}; +g.BL=function(z,J){g.Y2.call(this,z,J);h3R(this);l8(this,"addEventListener",this.W6);l8(this,"removeEventListener",this.AuF);l8(this,"cueVideoByPlayerVars",this.mM);l8(this,"loadVideoByPlayerVars",this.Udy);l8(this,"preloadVideoByPlayerVars",this.DLf);l8(this,"loadVideoById",this.W8);l8(this,"loadVideoByUrl",this.AI);l8(this,"playVideo",this.N4);l8(this,"loadPlaylist",this.loadPlaylist);l8(this,"nextVideo",this.nextVideo);l8(this,"previousVideo",this.previousVideo);l8(this,"playVideoAt",this.playVideoAt); +l8(this,"getVideoData",this.K_);l8(this,"seekBy",this.l2x);l8(this,"seekTo",this.oZW);l8(this,"showControls",this.showControls);l8(this,"hideControls",this.hideControls);l8(this,"cancelPlayback",this.cancelPlayback);l8(this,"getProgressState",this.getProgressState);l8(this,"isInline",this.isInline);l8(this,"setInline",this.setInline);l8(this,"setLoopVideo",this.setLoopVideo);l8(this,"getLoopVideo",this.getLoopVideo);l8(this,"getVideoContentRect",this.getVideoContentRect);l8(this,"getVideoStats",this.fnx); +l8(this,"getCurrentTime",this.qR);l8(this,"getDuration",this.gh);l8(this,"getPlayerState",this.rQ);l8(this,"getVideoLoadedFraction",this.kf2);l8(this,"mute",this.gr);l8(this,"unMute",this.xT);l8(this,"setVolume",this.gZ);l8(this,"loadModule",this.loadModule);l8(this,"unloadModule",this.unloadModule);l8(this,"getOption",this.yV);l8(this,"getOptions",this.getOptions);l8(this,"setOption",this.setOption);l8(this,"addCueRange",this.addCueRange);l8(this,"getDebugText",this.getDebugText);l8(this,"getStoryboardFormat", +this.getStoryboardFormat);l8(this,"toggleFullscreen",this.toggleFullscreen);l8(this,"isFullscreen",this.isFullscreen);l8(this,"getPlayerSize",this.getPlayerSize);l8(this,"toggleSubtitles",this.toggleSubtitles);this.app.W().C("embeds_enable_move_set_center_crop_to_public")||l8(this,"setCenterCrop",this.setCenterCrop);l8(this,"setFauxFullscreen",this.setFauxFullscreen);l8(this,"setSizeStyle",this.setSizeStyle);l8(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);l8(this,"handleGlobalKeyUp",this.handleGlobalKeyUp); +bwq(this)}; +g.SM=function(z){z=z.UC();var J=z.Gt.get("endscreen");return J&&J.X6()?!0:z.hj()}; +g.fe=function(z,J){z.getPresentingPlayerType()===3?z.publish("mdxautoplaycancel"):z.B1("onAutonavCancelled",J)}; +g.b8=function(z){var J=D5(z.UC());return z.app.Fg&&!z.isFullscreen()||z.getPresentingPlayerType()===3&&J&&J.wl()&&J.F2()||!!z.getPlaylist()}; +g.$2=function(z,J){g.wd(z,"addEmbedsConversionTrackingParams",[J])}; +g.x2=function(z){return(z=g.gd(z.UC()))?z.mV():{}}; +g.VTq=function(z){z=(z=z.getVideoData())&&z.T;return!!z&&!(!z.audio||!z.video)&&z.mimeType!=="application/x-mpegURL"}; +g.M0=function(z,J,m){z=z.zf().element;var e=Wu(z.children,function(T){T=Number(T.getAttribute("data-layer"));return m-T||1}); +e<0&&(e=-(e+1));cF(z,J,e);J.setAttribute("data-layer",String(m))}; +g.A3=function(z){var J=z.W();if(!J.Zo)return!1;var m=z.getVideoData();if(!m||z.getPresentingPlayerType()===3)return!1;var e=(!m.isLiveDefaultBroadcast||J.C("allow_poltergust_autoplay"))&&!QX(m);e=m.isLivePlayback&&(!J.C("allow_live_autoplay")||!e);var T=m.isLivePlayback&&J.C("allow_live_autoplay_on_mweb");z=z.getPlaylist();z=!!z&&z.wl();var E=m.Lh&&m.Lh.playerOverlays||null;E=!!(E&&E.playerOverlayRenderer&&E.playerOverlayRenderer.autoplay);E=m.yb&&E;return!m.ypcPreview&&(!e||T)&&!g.s1(m.Tf,"ypc")&& +!z&&(!g.fi(J)||E)}; +Pgj=function(z){z=z.app.W1();if(!z)return!1;var J=z.getVideoData();if(!J.T||!J.T.video||J.T.video.qualityOrdinal<1080||J.sz)return!1;var m=/^qsa/.test(J.clientPlaybackNonce),e="r";J.T.id.indexOf(";")>=0&&(m=/^[a-p]/.test(J.clientPlaybackNonce),e="x");return m?(z.ph("iqss",{trigger:e},!0),!0):!1}; +op=function(){PR.apply(this,arguments);this.requestHeaders={}}; +h3=function(){jM||(jM=new op);return jM}; +u8=function(z,J){J?z.requestHeaders.Authorization="Bearer "+J:delete z.requestHeaders.Authorization}; +g.V3=function(z){var J=this;this.H1=z;this.So={Oj6:function(){return J.H1}}}; +g.PL=function(z,J,m,e){e=e===void 0?!1:e;g.py.call(this,J);var T=this;this.G=z;this.Tf=e;this.X=new g.jl(this);this.fade=new g.Ex(this,m,!0,void 0,void 0,function(){T.JC()}); +g.u(this,this.X);g.u(this,this.fade)}; +t3=function(z){var J=z.G.getRootNode();return z.G.C("web_watch_pip")||z.G.C("web_shorts_pip")?Hm(J):document}; +tTz=function(z){z.T&&(document.activeElement&&g.lV(z.element,document.activeElement)&&z.T.focus(),z.T.setAttribute("aria-expanded","false"),z.T=void 0);g.gs(z.X);z.B=void 0}; +HL=function(z,J,m){z.yy()?z.JZ():z.sD(J,m)}; +Uu=function(z,J,m,e){e=new g.U({D:"div",Iy:["ytp-linked-account-popup-button"],t6:e,j:{role:"button",tabindex:"0"}});J=new g.U({D:"div",J:"ytp-linked-account-popup",j:{role:"dialog","aria-modal":"true",tabindex:"-1"},N:[{D:"div",J:"ytp-linked-account-popup-title",t6:J},{D:"div",J:"ytp-linked-account-popup-description",t6:m},{D:"div",J:"ytp-linked-account-popup-buttons",N:[e]}]});g.PL.call(this,z,{D:"div",J:"ytp-linked-account-popup-container",N:[J]},100);var T=this;this.dialog=J;g.u(this,this.dialog); +e.listen("click",function(){T.JZ()}); +g.u(this,e);g.M0(this.G,this.element,4);this.hide()}; +g.k2=function(z,J,m,e){g.py.call(this,z);this.priority=J;m&&g.Rp(this,m);e&&this.ws(e)}; +g.Le=function(z,J,m,e){z=z===void 0?{}:z;J=J===void 0?[]:J;m=m===void 0?!1:m;e=e===void 0?!1:e;J.push("ytp-menuitem");var T=z;"role"in T||(T.role="menuitem");m||(T=z,"tabindex"in T||(T.tabindex="0"));z={D:m?"a":"div",Iy:J,j:z,N:[{D:"div",J:"ytp-menuitem-icon",t6:"{{icon}}"},{D:"div",J:"ytp-menuitem-label",t6:"{{label}}"},{D:"div",J:"ytp-menuitem-content",t6:"{{content}}"}]};e&&z.N.push({D:"div",J:"ytp-menuitem-secondary-icon",t6:"{{secondaryIcon}}"});return z}; +g.Rp=function(z,J){z.updateValue("label",J)}; +Q3=function(z){g.k2.call(this,g.Le({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var J=this;this.G=z;this.T=this.K=!1;this.Yu=z.o$();z.createServerVe(this.element,this,!0);this.L(this.G,"settingsMenuVisibilityChanged",function(m){J.bb(m)}); +this.L(this.G,"videodatachange",this.U);this.listen("click",this.onClick);this.U()}; +vL=function(z){return z?g.GZ(z):""}; +rd=function(z){g.h.call(this);this.api=z}; +zT=function(z){rd.call(this,z);var J=this;cL(z,"setAccountLinkState",function(m){J.setAccountLinkState(m)}); +cL(z,"updateAccountLinkingConfig",function(m){J.updateAccountLinkingConfig(m)}); +z.addEventListener("videodatachange",function(m,e){J.onVideoDataChange(e)}); +z.addEventListener("settingsMenuInitialized",function(){J.menuItem=new Q3(J.api);g.u(J,J.menuItem)})}; +HwE=function(z){this.api=z;this.K={}}; +Jp=function(z,J,m,e){J in z.K||(m=new g.Ec(m,e,{id:J,priority:2,namespace:"appad"}),z.api.U4([m],1),z.K[J]=m)}; +mF=function(z){rd.call(this,z);var J=this;this.events=new g.jl(this);g.u(this,this.events);this.K=new HwE(this.api);this.events.L(this.api,"legacyadtrackingpingreset",function(){J.K.K={}}); +this.events.L(this.api,"legacyadtrackingpingchange",function(m){var e=J.K;Jp(e,"part2viewed",1,0x8000000000000);Jp(e,"engagedview",Math.max(1,m.gE*1E3),0x8000000000000);if(!m.isLivePlayback){var T=m.lengthSeconds*1E3;TF(m)&&e.api.C("html5_shorts_gapless_ads_duration_fix")&&(T=e.api.getProgressState().seekableEnd*1E3-m.XL);Jp(e,"videoplaytime25",T*.25,T);Jp(e,"videoplaytime50",T*.5,T);Jp(e,"videoplaytime75",T*.75,T);Jp(e,"videoplaytime100",T,0x8000000000000);Jp(e,"conversionview",T,0x8000000000000); +Jp(e,"videoplaybackstart",1,T);Jp(e,"videoplayback2s",2E3,T);Jp(e,"videoplayback10s",1E4,T)}}); +this.events.L(this.api,g.F8("appad"),this.T);this.events.L(this.api,g.iw("appad"),this.T)}; +L1E=function(z,J,m){if(!(m in J))return!1;J=J[m];Array.isArray(J)||(J=[J]);J=g.y(J);for(m=J.next();!m.done;m=J.next()){m=m.value;var e={CPN:z.api.getVideoData().clientPlaybackNonce};m=g.Dn(m,e);e=void 0;e=e===void 0?!1:e;(e=sq(rv(m,UF1),m,e,"Active View 3rd Party Integration URL"))||(e=void 0,e=e===void 0?!1:e,e=sq(rv(m,R3E),m,e,"Google/YouTube Brand Lift URL"));e||(e=void 0,e=e===void 0?!1:e,e=sq(rv(m,kc1),m,e,"Nielsen OCR URL"));g.HA(m,void 0,e)}return!0}; +ew=function(z,J){Qy4(z,J).then(function(m){g.HA(J,void 0,void 0,m)})}; +TT=function(z,J){J.forEach(function(m){ew(z,m)})}; +Qy4=function(z,J){return g.SP(z.api.W())&&qp(J)&&wj(J)?g.El(z.api.W(),g.ui(z.api.getVideoData())).then(function(m){var e;m&&(e={Authorization:"Bearer "+m});return e},void 0):Aj()}; +viu=function(z){rd.call(this,z);this.events=new g.jl(z);g.u(this,this.events);this.events.L(z,"videoready",function(J){if(z.getPresentingPlayerType()===1){var m,e,T={playerDebugData:{pmlSignal:!!((m=J.getPlayerResponse())==null?0:(e=m.adPlacements)==null?0:e.some(function(E){var Z;return E==null?void 0:(Z=E.adPlacementRenderer)==null?void 0:Z.renderer})), +contentCpn:J.clientPlaybackNonce}};g.qq("adsClientStateChange",T)}})}; +Eh=function(z){g.U.call(this,{D:"button",Iy:["ytp-button"],j:{title:"{{title}}","aria-label":"{{label}}","data-priority":"2","data-tooltip-target-id":"ytp-autonav-toggle-button"},N:[{D:"div",J:"ytp-autonav-toggle-button-container",N:[{D:"div",J:"ytp-autonav-toggle-button",j:{"aria-checked":"true"}}]}]});this.G=z;this.T=[];this.K=!1;this.isChecked=!0;z.createClientVe(this.element,this,113681);this.L(z,"presentingplayerstatechange",this.cE);this.listen("click",this.onClick);this.G.W().C("web_player_autonav_toggle_always_listen")&& +syu(this);ap(z,this.element,this);this.cE()}; +syu=function(z){z.T.push(z.L(z.G,"videodatachange",z.cE));z.T.push(z.L(z.G,"videoplayerreset",z.cE));z.T.push(z.L(z.G,"onPlaylistUpdate",z.cE));z.T.push(z.L(z.G,"autonavchange",z.pT))}; +rzz=function(z){z.isChecked=z.isChecked;z.P1("ytp-autonav-toggle-button").setAttribute("aria-checked",String(z.isChecked));var J=z.isChecked?"Autoplay is on":"Autoplay is off";z.updateValue("title",J);z.updateValue("label",J);z.G.CF()}; +zxb=function(z){return z.G.W().C("web_player_autonav_use_server_provided_state")&&sl(z.H7())}; +Jhu=function(z){rd.call(this,z);var J=this;this.events=new g.jl(z);g.u(this,this.events);this.events.L(z,"standardControlsInitialized",function(){var m=new Eh(z);g.u(J,m);z.c9(m,"RIGHT_CONTROLS_LEFT")})}; +Zy=function(z,J){g.k2.call(this,g.Le({role:"menuitemcheckbox","aria-checked":"false"}),J,z,{D:"div",J:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; +FO=function(z,J){z.checked=J;z.element.setAttribute("aria-checked",String(z.checked))}; +mSf=function(z){var J=!z.W().Tp&&z.getPresentingPlayerType()!==3;return z.isFullscreen()||J}; +g.i6=function(z,J,m,e){var T=z.currentTarget;if((m===void 0||!m)&&g.SD(z))return z.preventDefault(),!0;J.pauseVideo();z=T.getAttribute("href");g.Ux(z,e,!0);return!1}; +g.cO=function(z,J,m){if(k5(J.W())&&J.getPresentingPlayerType()!==2){if(g.SD(m))return J.isFullscreen()&&!J.W().externalFullscreen&&J.toggleFullscreen(),m.preventDefault(),!0}else{var e=g.SD(m);e&&J.pauseVideo();g.Ux(z,void 0,!0);e&&(g.RU(z),m.preventDefault())}return!1}; +THs=function(){var z=exj.includes("en")?{D:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{D:"path",xQ:!0,j:{d:"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z", +fill:"#fff"}}]}:{D:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{D:"path",xQ:!0,j:{d:"M11,11 C9.9,11 9,11.9 9,13 L9,23 C9,24.1 9.9,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M11,17 L14,17 L14,19 L11,19 L11,17 L11,17 Z M20,23 L11,23 L11,21 L20,21 L20,23 L20,23 Z M25,23 L22,23 L22,21 L25,21 L25,23 L25,23 Z M25,19 L16,19 L16,17 L25,17 L25,19 L25,19 Z",fill:"#fff"}}]};z.J="ytp-subtitles-button-icon";return z}; +WO=function(){return{D:"div",J:"ytp-spinner-container",N:[{D:"div",J:"ytp-spinner-rotator",N:[{D:"div",J:"ytp-spinner-left",N:[{D:"div",J:"ytp-spinner-circle"}]},{D:"div",J:"ytp-spinner-right",N:[{D:"div",J:"ytp-spinner-circle"}]}]}]}}; +l6=function(z){if(document.createRange){var J=document.createRange();J&&(J.selectNodeContents(z),z=window.getSelection())&&(z.removeAllRanges(),z.addRange(J))}}; +dk=function(z){var J=z.C("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";Zy.call(this,J,g.wk.x6);var m=this;this.G=z;this.K=!1;this.T=new g.vl(function(){g.lI(m.element,"ytp-menuitem-highlighted")},0); +this.Yu=z.o$();this.setIcon({D:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},N:[{D:"path",j:{d:"M21 7v10H3V7h18m1-1H2v12h20V6zM11.5 2v3h1V2h-1zm1 17h-1v3h1v-3zM3.79 3 6 5.21l.71-.71L4.5 2.29 3.79 3zm2.92 16.5L6 18.79 3.79 21l.71.71 2.21-2.21zM19.5 2.29 17.29 4.5l.71.71L20.21 3l-.71-.71zm0 19.42.71-.71L18 18.79l-.71.71 2.21 2.21z",fill:"white"}}]});this.subscribe("select",this.S,this);this.listen(qv,this.U);g.u(this,this.T)}; +Ic=function(z){rd.call(this,z);var J=this;this.K=!1;z.addEventListener("settingsMenuInitialized",function(){Emj(J)}); +z.addEventListener("highlightSettingsMenu",function(m){Emj(J);var e=J.menuItem;m==="menu_item_cinematic_lighting"&&(g.FE(e.element,"ytp-menuitem-highlighted"),g.FE(e.element,"ytp-menuitem-highlight-transition-enabled"),e.T.start())}); +cL(z,"updateCinematicSettings",function(m){J.updateCinematicSettings(m)})}; +Emj=function(z){z.menuItem||(z.menuItem=new dk(z.api),g.u(z,z.menuItem),z.menuItem.MD(z.K))}; +ZQq=function(z){rd.call(this,z);var J=this;this.events=new g.jl(z);g.u(this,this.events);this.events.L(z,"applicationvideodatachange",function(m,e){e=e.clipConfig;m==="dataloaded"&&e&&e.startTimeMs!=null&&e.endTimeMs!=null&&J.api.setLoopRange({startTimeMs:Math.floor(Number(e.startTimeMs)),endTimeMs:Math.floor(Number(e.endTimeMs)),postId:e.postId,type:"clips"})})}; +Oh=function(z){rd.call(this,z);this.events=new g.jl(z);g.u(this,this.events);cL(z,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));cL(z,"setCreatorEndscreenHideButton",this.K.bind(this))}; +pj=function(z,J,m,e){Zy.call(this,"Stable Volume",g.wk.ez);g.FE(this.element,"ytp-drc-menu-item");this.Yu=z.o$();this.U=J;this.K=m;this.hasDrcAudioTrack=e;z.addEventListener("videodatachange",this.T.bind(this));z.C("mta_drc_mutual_exclusion_removal")&&this.L(z,"onPlaybackAudioChange",this.T);z=this.K()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());this.setIcon({D:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},N:[{D:"path",j:{d:"M7 13H5v-2h2v2zm3-4H8v6h2V9zm3-3h-2v12h2V6zm3 2h-2v8h2V8zm3 2h-2v4h2v-4zm-7-7c-4.96 0-9 4.04-9 9s4.04 9 9 9 9-4.04 9-9-4.04-9-9-9m0-1c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2z", +fill:"white"}}]});this.subscribe("select",this.S,this);FO(this,z);this.Yu.AX(this)}; +yi=function(z){rd.call(this,z);var J=this;this.events=new g.jl(z);g.u(this,this.events);z.C("html5_show_drc_toggle")&&z.addEventListener("settingsMenuInitialized",function(){J.menuItem||(J.menuItem=new pj(J.api,J.setDrcUserPreference.bind(J),J.getDrcUserPreference.bind(J),J.T.bind(J)),g.u(J,J.menuItem))}); +cL(this.api,"setDrcUserPreference",function(e){J.setDrcUserPreference(e)}); +cL(this.api,"getDrcUserPreference",function(){return J.getDrcUserPreference()}); +cL(this.api,"hasDrcAudioTrack",function(){return J.T()}); +var m;this.K=(m=g.jO("yt-player-drc-pref"))!=null?m:1;this.updateEnvironmentData()}; +Nv=function(z){rd.call(this,z);var J=this;this.K={};this.events=new g.jl(z);g.u(this,this.events);this.events.L(z,"videodatachange",function(){J.onVideoDataChange()}); +this.events.L(z,g.F8("embargo"),function(m){J.api.D_(!0);var e,T=(e=J.K[m.id])!=null?e:[];e=g.y(T);for(T=e.next();!T.done;T=e.next()){var E=T.value;J.api.hideControls();J.api.O4("auth",2,"This video isn't available in your current playback area",BQ({embargoed:1,id:m.id,idx:m.T,start:m.start}));T=void 0;(E=(T=E.embargo)==null?void 0:T.onTrigger)&&J.api.B1("innertubeCommand",E)}})}; +FOq=function(z,J){var m;return(m=J.onEnter)==null?void 0:m.some(z.T)}; +iQu=function(z,J){J=g.y(J);for(var m=J.next();!m.done;m=J.next()){m=m.value;var e=void 0,T=Number((e=m.playbackPosition)==null?void 0:e.utcTimeMillis)/1E3,E=void 0;e=T+Number((E=m.duration)==null?void 0:E.seconds);E="embargo_"+T;z.api.addUtcCueRange(E,T,e,"embargo",!1);m.onEnter&&(z.K[E]=m.onEnter.filter(z.T))}}; +GT=function(z){rd.call(this,z);var J=this;this.K=[];this.events=new g.jl(z);g.u(this,this.events);cL(z,"addEmbedsConversionTrackingParams",function(m){J.api.W().k$&&J.addEmbedsConversionTrackingParams(m)}); +this.events.L(z,"veClickLogged",function(m){J.api.hasVe(m)&&(m=cc(m.visualElement.getAsJspb(),2),J.K.push(m))})}; +chu=function(z){rd.call(this,z);cL(z,"isEmbedsShortsMode",function(){return z.isEmbedsShortsMode()})}; +WOb=function(z){rd.call(this,z);var J=this;this.events=new g.jl(z);g.u(this,this.events);this.events.L(z,"initialvideodatacreated",function(m){fQ(S7(),16623);J.K=g.Dc();var e=z.W().Ks&&!m.XH;if(jg(m)&&e){fQ(S7(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(m.getWatchNextResponse()){var T,E=(T=m.getWatchNextResponse())==null?void 0:T.trackingParams;E&&bK(E)}if(m.getPlayerResponse()){var Z;(m=(Z=m.getPlayerResponse())==null?void 0:Z.trackingParams)&&bK(m)}}else fQ(S7(), +32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),m.getEmbeddedPlayerResponse()&&(Z=(E=m.getEmbeddedPlayerResponse())==null?void 0:E.trackingParams)&&bK(Z)}); +this.events.L(z,"loadvideo",function(){fQ(S7(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:J.K})}); +this.events.L(z,"cuevideo",function(){fQ(S7(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:J.K})}); +this.events.L(z,"largeplaybuttonclicked",function(m){fQ(S7(),27240,m.visualElement)}); +this.events.L(z,"playlistnextbuttonclicked",function(m){fQ(S7(),27240,m.visualElement)}); +this.events.L(z,"playlistprevbuttonclicked",function(m){fQ(S7(),27240,m.visualElement)}); +this.events.L(z,"playlistautonextvideo",function(){fQ(S7(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; +XO=function(z,J){g.h.call(this);var m=this;this.K=null;this.S=J;J=[];for(var e=0;e<=100;e++)J.push(e/100);J={threshold:J,trackVisibility:!0,delay:1E3};(this.T=window.IntersectionObserver?new IntersectionObserver(function(T){T=T[T.length-1];typeof T.isVisible==="undefined"?document.visibilityState==="visible"&&T.isIntersecting&&T.intersectionRatio>0?m.K=T.intersectionRatio:document.visibilityState==="hidden"?m.K=0:m.K=null:m.K=T.isVisible?T.intersectionRatio:0;typeof m.S==="function"&&m.S(m.K)},J): +null)&&this.T.observe(z)}; +wtE=function(z){rd.call(this,z);var J=this;this.events=new g.jl(z);g.u(this,this.events);this.events.L(z,"applicationInitialized",function(){lZu(J)})}; +lZu=function(z){var J=z.api.getRootNode(),m,e=z.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((m=J.parentElement)==null?void 0:m.parentElement)||J:J;z.K=new XO(e,function(T){T!=null&&(z.api.W().Vy=T,z.api.W().J7="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); +g.u(z,z.K);z.events.L(z.api,"videoStatsPingCreated",function(T){var E=z.K;E=E.K==null?null:Math.round(E.K*100)/100;T.inview=E!=null?E:void 0;E=z.api.getPlayerSize();if(E.height>0&&E.width>0){E=[Math.round(E.width),Math.round(E.height)];var Z=g.Qs();Z>1&&E.push(Z);E=E.join(":")}else E=void 0;T.size=E})}; +qQR=function(z){var J;return((J=((z==null?void 0:z.messageRenderers)||[]).find(function(m){return!!m.timeCounterRenderer}))==null?void 0:J.timeCounterRenderer)||null}; +nj=function(z){g.U.call(this,{D:"div",Iy:["ytp-player-content","ytp-iv-player-content"],N:[{D:"div",J:"ytp-free-preview-countdown-timer",N:[{D:"span",t6:"{{label}}"},{D:"span",J:"ytp-free-preview-countdown-timer-separator",t6:"\u2022"},{D:"span",t6:"{{duration}}"}]}]});this.api=z;this.K=null;this.S=this.T=0;this.L(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; +IZE=function(z,J){z.K||(z.T=J,z.S=(0,g.b5)(),z.K=new g.QH(function(){dSq(z)},null),dSq(z))}; +dSq=function(z){var J=Math,m=J.round,e=Math.min((0,g.b5)()-z.S,z.T);J=m.call(J,(z.T-e)/1E3);z.updateValue("duration",Xu({seconds:J}));J<=0&&z.K?Yl(z):z.K&&z.K.start()}; +Yl=function(z){z.K&&(z.K.dispose(),z.K=null)}; +OQq=function(z){rd.call(this,z);var J=this;this.events=new g.jl(z);g.u(this,this.events);this.events.L(z,"basechromeinitialized",function(){J.K=new nj(z);g.u(J,J.K);g.M0(z,J.K.element,4);J.K.hide()})}; +Cj=function(z){g.U.call(this,{D:"button",Iy:["ytp-fullerscreen-edu-button","ytp-button"],N:[{D:"div",Iy:["ytp-fullerscreen-edu-text"],t6:"Scroll for details"},{D:"div",Iy:["ytp-fullerscreen-edu-chevron"],N:[{D:"svg",j:{height:"100%",viewBox:"0 0 24 24",width:"100%"},N:[{D:"path",j:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],j:{"data-priority":"1"}});this.Vx=z;this.fade=new g.Ex(this,250,void 0,100);this.T=this.K=!1;z.createClientVe(this.element,this,61214);g.u(this, +this.fade);this.L(z,"fullscreentoggled",this.MD);this.L(z,"presentingplayerstatechange",this.MD);this.listen("click",this.onClick);this.MD()}; +ac=function(z){rd.call(this,z);var J=this;this.events=new g.jl(z);g.u(this,this.events);cL(this.api,"updateFullerscreenEduButtonSubtleModeState",function(e){J.updateFullerscreenEduButtonSubtleModeState(e)}); +cL(this.api,"updateFullerscreenEduButtonVisibility",function(e){J.updateFullerscreenEduButtonVisibility(e)}); +var m=z.W();z.C("external_fullscreen_with_edu")&&m.externalFullscreen&&k5(m)&&m.controlsType==="1"&&this.events.L(z,"standardControlsInitialized",function(){J.K=new Cj(z);g.u(J,J.K);z.c9(J.K)})}; +ptu=function(z){g.U.call(this,{D:"div",J:"ytp-gated-actions-overlay",N:[{D:"div",J:"ytp-gated-actions-overlay-background",N:[{D:"div",J:"ytp-gated-actions-overlay-background-overlay"}]},{D:"button",Iy:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],j:{"aria-label":"Close"},N:[g.a0()]},{D:"div",J:"ytp-gated-actions-overlay-bar",N:[{D:"div",J:"ytp-gated-actions-overlay-text-container",N:[{D:"div",J:"ytp-gated-actions-overlay-title",t6:"{{title}}"},{D:"div",J:"ytp-gated-actions-overlay-subtitle", +t6:"{{subtitle}}"}]},{D:"div",J:"ytp-gated-actions-overlay-button-container"}]}]});var J=this;this.api=z;this.background=this.P1("ytp-gated-actions-overlay-background");this.T=this.P1("ytp-gated-actions-overlay-button-container");this.K=[];this.L(this.P1("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){J.api.B1("onCloseMiniplayer")}); +this.hide()}; +NHq=function(z,J){var m=0;m=0;for(var e={};m +T&&(T=c.width,E="url("+c.url+")")}m.background.style.backgroundImage=E;NHq(m,e.actionButtons||[]);m.show()}else m.hide()}); +g.M0(this.api,this.K.element,4)}; +Kj=function(z){rd.call(this,z);var J=this;l8(this.api,"getSphericalProperties",function(){return J.getSphericalProperties()}); +l8(this.api,"setSphericalProperties",function(){J.setSphericalProperties.apply(J,g.X(g.gu.apply(0,arguments)))}); +WL(this.api,"getSphericalProperties",function(){return J.api.getPresentingPlayerType()===2?{}:J.getSphericalProperties()}); +WL(this.api,"setSphericalProperties",function(){var m=g.gu.apply(0,arguments);J.api.getPresentingPlayerType()!==2&&J.setSphericalProperties.apply(J,g.X(m))})}; +BO=function(z){rd.call(this,z);cL(z,"createClientVe",this.createClientVe.bind(this));cL(z,"createServerVe",this.createServerVe.bind(this));cL(z,"destroyVe",this.destroyVe.bind(this));cL(z,"hasVe",this.hasVe.bind(this));cL(z,"logClick",this.logClick.bind(this));cL(z,"logVisibility",this.logVisibility.bind(this));cL(z,"setTrackingParams",this.setTrackingParams.bind(this))}; +Sw=function(z,J,m,e){function T(Z){var c=!(Z.status!==204&&Z.status!==200&&!Z.response),W;Z={succ:""+ +c,rc:Z.status,lb:((W=Z.response)==null?void 0:W.byteLength)||0,rt:((0,g.b5)()-E).toFixed(),shost:g.H1(z),trigger:J};Xt4(Z,z);m&&m(Z);e&&!c&&e(new Sl("pathprobe.net",Z))} +var E=(0,g.b5)();g.fH(z,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:T,onTimeout:T})}; +Xt4=function(z,J){var m;((m=window.performance)==null?0:m.getEntriesByName)&&(J=performance.getEntriesByName(J))&&J.length&&(J=J[0],z.pedns=(J.domainLookupEnd-J.startTime).toFixed(),z.pecon=(J.connectEnd-J.domainLookupEnd).toFixed(),z.perqs=(J.requestStart-J.connectEnd).toFixed(),nm1&&(z.perqsa=J.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; +fj=function(z,J){this.G4=z;this.policy=J;this.playbackRate=1}; +YQR=function(z,J){var m=Math.min(2.5,NA(z.G4));z=Dy(z);return J-m*z}; +b6=function(z,J,m,e,T){T=T===void 0?!1:T;if(z.policy.Kn)return Math.ceil(z.policy.Kn*J);z.policy.FF&&(e=Math.abs(e));e/=z.playbackRate;var E=1/ni(z.G4);m=Math.max(.9*(e-3),NA(z.G4)+z.G4.T.K*E)/E*.8/(J+m);m=Math.min(m,e);z.policy.Ee>0&&T&&(m=Math.max(m,z.policy.Ee));return CK4(z,m,J)}; +CK4=function(z,J,m){return Math.ceil(Math.max(Math.max(z.policy.LV,z.policy.y5*m),Math.min(Math.min(z.policy.qD,31*m),Math.ceil(J*m))))||z.policy.LV}; +aZj=function(z,J,m){m=b6(z,J.K.info.RT,m.K.info.RT,0);var e=NA(z.G4)+m/ni(z.G4);return Math.max(e,e+z.policy.S7-m/J.K.info.RT)}; +Dy=function(z){return ni(z.G4,!z.policy.iV,z.policy.Ef)}; +$l=function(z){return Dy(z)/z.playbackRate}; +gk=function(z,J,m){var e=z.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],T=z.policy.playbackStartPolicy.startMinReadaheadPolicy||[];z=Infinity;J=g.y(J&&e.length>0?e:T);for(e=J.next();!e.done;e=J.next())e=e.value,T=e.minReadaheadMs||0,m<(e.minBandwidthBytesPerSec||0)||z>T&&(z=T);return z0&&(this.T=m.ZF)}; +fZE=function(z,J,m,e,T){if(!e.info.Z){if(m.length===0)m.push(e);else{var E;(z=(E=m.pop())==null?void 0:g.JG(E,e))?m.push(z):m.push(e)}return T}var Z;(m=(Z=m.pop())==null?void 0:g.JG(Z,e))||(m=e);if(z.policy.OD&&m.info.T)return z.logger&&z.logger({incompleteSegment:m.info.YQ()}),T;Z=z.yI(m);e=Z.formatId;T=Z.Y3;m=Z.clipId;E=Z.AG;Z=Z.startTimeMs;if(!z.policy.kx&&z.policy.T&&z.Fq){var c=Mv(z.Fq,m);Z+=c}e={clipId:m,formatId:e,startTimeMs:Z,durationMs:E,Z_:T,D2:T};T=KOq(J,e.startTimeMs);(m=T>=0?J[T]:null)&& +BH1(z,m,e)?e=m:(T+=1,J.splice(T,0,e));m=0;for(E=T+1;E=l+Z.T?Z=!0:w+Z.T=0?z:-z-2}; +DSf=function(z,J){if(z.Lq){var m=z.Lq.eC();if(m.length!==0){if(z.S&&J){var e=z.S,T=e.info.U;!l1(m,T)&&e.info.X>0&&(0,g.b5)()-z.Y<5E3&&(z.logger&&z.logger({dend:e.info.YQ()}),m=yLs(m,T,T+.01))}z.policy.cW&&z.logger&&z.logger({cbri:""+z.K});e=[];for(var E=T=0;T=Z){var w=0;if(z.Fq){var q=Ap(z.Fq,W*1E3);q&&(w=q.YF/1E3)}q=Object.assign({},z.rE[E]);var d=z.E2.S.get(Bo(z.rE[E].formatId)), +I=Math.max(W,Z);Z=d.index.T7(I+z.T/1E3-w);W=d.index.getStartTime(Z)+w;var O=Z+ +(Math.abs(W-I)>z.T/1E3);I=O+z.U;O=(d.index.getStartTime(O)+w)*1E3;E!==z.K||J?(q.Z_=I,q.startTimeMs=O):(z.logger&&z.logger({pEvict:"1",og:q.startTimeMs,adj:W*1E3}),q.Z_=Z+z.U,q.startTimeMs=W*1E3);Z=void 0;W=((Z=z.S)==null?void 0:Z.info.duration)||11;E===z.K&&cz.T/1E3);Z=W+z.U;w=(d.index.Rz(W)+w)*1E3;q.D2=Z;q.durationMs=w-q.startTimeMs;q.Z_<=q.D2&&e.push(q)}lz.T)return!1;if(SQb(z,J.formatId,m.formatId))return J.durationMs=Math.max(e,T)-J.startTimeMs,J.D2=Math.max(J.D2,m.D2),!0;if(Math.abs(J.startTimeMs-m.startTimeMs)<=z.T){if(J.durationMs>m.durationMs+z.T){z=J.formatId;var E=J.Z_,Z=J.D2;J.formatId=m.formatId;J.durationMs=m.durationMs;J.Z_=m.Z_;J.D2=m.D2;m.formatId=z;m.startTimeMs=T;m.durationMs=e-T;m.Z_=E;m.D2=Z;return!1}J.formatId=m.formatId;return!0}e> +m.startTimeMs&&(J.durationMs=m.startTimeMs-J.startTimeMs,J.clipId===m.clipId&&(J.D2=m.Z_-1));return!1}; +SQb=function(z,J,m){return J.itag!==m.itag||J.xtags!==m.xtags?!1:z.E2.Cq||J.lmt===m.lmt}; +gmu=function(z,J,m){if(z.logger){for(var e=[],T=0;T=0&&Vi(z.audioTrack,z.K)>=0&&E?((z.videoTrack.Z||z.audioTrack.Z)&&z.v1.ph("iterativeSeeking",{status:"done",count:z.seekCount}),z.videoTrack.Z=!1,z.audioTrack.Z=!1):e&&g.Ow(function(){if(z.T||!z.policy.IT)HO(z);else{var Z=J.startTime,c=J.duration;if(!z.policy.Y){var W=m?z.videoTrack.Z:z.audioTrack.Z,l=z.videoTrack.Y!==-1&&z.audioTrack.Y!==-1,w=z.K>=Z&&z.K432E3&&Ekq(z.E2);z.S&&(T=z.S,z.S=0);g.Ow(function(){z.policy.Y||Uh(z,T,102)}); +z.v1.ph("initManifestlessSync",{st:T,ost:T+z.v1.Kr(),a:z.audioTrack.Y,v:z.videoTrack.Y});z.U&&(z.U.resolve(T+.1),z.U=null);z.policy.Y&&Uh(z,T,102)}}}; +Lj=function(z,J){var m=this;this.Dd=z;this.requestNumber=++t7b;this.K=this.now();this.X=this.B=NaN;this.V=this.K;this.S=this.ub=this.Z=0;this.Y=this.K;this.nh=this.fh=this.Qx=this.l8=this.Rs=this.wb=this.T=this.U=0;this.Ry=this.isActive=!1;this.GS=this.yH=0;this.So={Kw2:function(){return m.kV}}; +this.G4=J.G4;this.snapshot=Pkq(this.G4);this.policy=this.G4.T;this.Cn=!!J.Cn;this.mJ=J.mJ;this.aB=J.aB||0;this.Ou=J.Ou||0;J.Wn&&(this.x3=new WZ);var e;this.kV=(e=J.kV)!=null?e:!1;this.Cn||h2b(this.G4)}; +HQz=function(z){z.Qx=Math.max(z.Qx,z.Z-z.Rs);z.fh=Math.max(z.fh,z.V-z.l8);z.wb=0}; +Qi=function(z,J,m){ugb(z.G4,J);z.x3&&(z.x3.add(Math.ceil(J)-Math.ceil(z.V)),z.x3.add(Math.max(0,Math.ceil(m/1024)-Math.ceil(z.Z/1024))));var e=J-z.V,T=m-z.Z;z.ub=T;z.nh=Math.max(z.nh,T/(e+.01)*1E3);z.V=J;z.Z=m;z.wb&&m>z.wb&&HQz(z)}; +vO=function(z,J){z.url=J;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; +sh=function(z,J){Lj.call(this,z,J);this.tZ=this.gE=!1;this.Gf=this.Tf=Infinity;this.h6=NaN;this.IT=!1;this.O2=NaN;this.OC=this.Lh=this.qD=0;this.mT=J.mT||1;this.VU=J.VU||this.mT;this.GE=J.GE;this.Y3=J.Y3;this.bU=J.bU;US1(this);this.va(this.K);this.Hd=(this.O2-this.K)/1E3}; +RxR=function(z){var J=z.Lh||z.qD;return J?z.snapshot.delay+Math.min(z.Ou,(z.X-z.B)/1E3)+J:z.Hd}; +rk=function(z,J,m){if(!z.Cn){J=Math.max(J,.01);var e=z.aB?Math.max(J,m/z.aB):J,T=z.G4.T.S;T&&(e=J,z.aB&&(e=Math.max(J,m/z.aB*T)));Oj(z.G4,J,m,e)}}; +kuj=function(z){return(z.Y-z.K)/1E3}; +US1=function(z){z.h6=z.K+z.snapshot.delay*1E3;z.IT=!1}; +z0=function(z,J){if(z.GE&&z.Y3!==void 0&&z.bU!==void 0){var m=Math,e=m.min,T=z.Tf;var E=z.GE;var Z=z.K;if(LO4(E,z.Y3))E=J;else{var c=0;E.MW&&(c=.2);E=Z+(E.Ou+c)*1E3}z.Tf=e.call(m,T,E);m=Math;e=m.min;T=z.Gf;E=z.GE;Z=z.K;c=QCf(E,z.Y3,z.bU);c!==2&&(J=c?J:Z+E.Ou*1E3,E.MW&&(J+=E.Ou*1E3));z.Gf=e.call(m,T,J);z.Tf<=z.K?US1(z):(z.h6=z.Tf,z.IT=!0)}}; +vmu=function(z,J){if(z.hQ(J,1)){var m=z.getUint8(J);m=m<128?1:m<192?2:m<224?3:m<240?4:5}else m=0;if(m<1||!z.hQ(J,m))return[-1,J];if(m===1)z=z.getUint8(J++);else if(m===2)m=z.getUint8(J++),z=z.getUint8(J++),z=(m&63)+64*z;else if(m===3){m=z.getUint8(J++);var e=z.getUint8(J++);z=z.getUint8(J++);z=(m&31)+32*(e+256*z)}else if(m===4){m=z.getUint8(J++);e=z.getUint8(J++);var T=z.getUint8(J++);z=z.getUint8(J++);z=(m&15)+16*(e+256*(T+256*z))}else m=J+1,z.focus(m),Cc(z,m,4)?z=Ktj(z).getUint32(m-z.LA,!0):(e= +z.getUint8(m+2)+256*z.getUint8(m+3),z=z.getUint8(m)+256*(z.getUint8(m+1)+256*e)),J+=5;return[z,J]}; +Ja=function(z){this.Dd=z;this.K=new GU}; +m3=function(z,J){this.info=z;this.callback=J;this.state=1;this.Kx=this.lN=!1;this.XG=null}; +sC1=function(z){return g.ag(z.info.s2,function(J){return J.type===3})}; +eW=function(z,J,m,e){var T=this;e=e===void 0?{}:e;this.policy=J;this.Dd=m;this.status=0;this.K=new GU;this.T=0;this.mF=this.U=this.S=!1;this.xhr=new XMLHttpRequest;this.xhr.open(e.method||"GET",z);if(e.headers)for(z=e.headers,J=g.y(Object.keys(z)),m=J.next();!m.done;m=J.next())m=m.value,this.xhr.setRequestHeader(m,z[m]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return T.zD()}; +this.xhr.onload=function(){return T.onDone()}; +this.xhr.onerror=function(){return T.onError()}; +this.xhr.fetch(function(E){T.K.append(E);T.T+=E.length;E=(0,g.b5)();T.Dd.oU(E,T.T)},function(){},e.body||null)}; +rhb=function(z,J){this.T=(new TextEncoder).encode(z);this.K=(new TextEncoder).encode(J)}; +z74=function(z,J){var m,e,T;return g.D(function(E){if(E.K==1){if(!J)return E.return(J);m=T0.p6();e=new g.CF(z.T);return g.S(E,e.encrypt(J,z.K),2)}T=E.T;T0.En("woe",m,Math.ceil(J.byteLength/16));return E.return(T)})}; +EAq=function(z,J){var m,e,T;return g.D(function(E){if(E.K==1){if(!J)return E.return(J);m=T0.p6();e=new g.CF(z.T);return g.S(E,e.decrypt(J,z.K),2)}T=E.T;T0.En("wod",m,Math.ceil(J.byteLength/16));return E.return(T)})}; +JFq=function(z,J){var m=this;this.K=z;this.Dd=J;this.loaded=this.status=0;this.error="";z=Dh(this.K.get("range")||"");if(!z)throw Error("bad range");this.range=z;this.T=new GU;zSu(this).then(function(){m.Dd.gk()},function(e){m.error=""+e||"unknown_err"; +m.Dd.gk()})}; +zSu=function(z){var J,m,e,T,E,Z,c,W,l,w,q,d,I,O,G;return g.D(function(n){if(n.K==1){z.status=200;J=z.K.get("docid");m=mP(z.K.get("fmtid")||"");e=z.K.get("lmt")||"0";T=+(z.K.get("csz")||0);if(!J||!m||!T)throw Error("Invalid local URL");z.K.get("ck")&&z.K.get("civ")&&(E=new rhb(z.K.get("ck"),z.K.get("civ")));Z=z.range;c=Math.floor(Z.start/T);W=Math.floor(Z.end/T);l=c}if(n.K!=5)return l<=W?g.S(n,Z6R(J,m,e,l,E),5):n.U2(0);w=n.T;if(w===void 0)throw Error("invariant: data is undefined");q=l*T;d=(l+1)*T; +I=Math.max(0,Z.start-q);O=Math.min(Z.end+1,d)-(I+q);G=new Uint8Array(w.buffer,I,O);z.T.append(G);z.loaded+=O;z.loaded0&&(T.K=Math.min(T.K+Z,10),T.T=E);T.K>0?(T.K--,T=!0):T=!1;if(T)typeof e==="function"&&(e=e()),console.log("plyr."+J,e);else{var c;e=((c=W2z.get(J))!=null?c:0)+1;W2z.set(J,e);e%100===1&&console.warn("plyr","plyr."+J+" is chatty, dropping logs.")}}}; +cFq=function(){this.K=10;this.T=Date.now()}; +io=function(z,J){g.h.call(this);var m=this;this.policy=z;this.s2=J;this.T=0;this.K=null;this.R1=[];this.S=null;this.So={uR:function(){return m.s2}}; +this.s2.length===1||g.ag(this.s2,function(e){return!!e.range})}; +cX=function(z,J,m){z.K&&(X9(z.K,J),J=z.K,z.K=null);for(var e=0,T=0,E=g.y(z.s2),Z=E.next();!Z.done;Z=E.next())if(Z=Z.value,Z.range&&e+Z.S<=z.T)e+=Z.S;else{J.getLength();if(xY(Z)&&!m&&z.T+J.getLength()-T=400?(z.lastError="net.badstatus",!0):(T===void 0?0:T)?(z.lastError="ump.spsrejectfailure",!0):m||e!==void 0&&e?!1:(z.lastError=J===204?"net.nocontent":"net.connect",!0)}; +IF=function(z,J){if(z.policy.P2)return!1;var m=J.getResponseHeader("content-type"),e=J.Fz();z=!e||e<=z.policy.Iw;return(!J.g_()||!m||m.indexOf("text/plain")!==-1)&&z}; +OZR=function(z,J){var m="";J=J.NS();J.getLength()<=z.policy.Iw&&(m=IrE(z,J.cz()));return m}; +IrE=function(z,J){var m=B2(J);return Jl(m)?(z.logger.debug(function(){return"Redirecting to "+m}),m):""}; +lo=function(z){return Xc(z.S,KZ(z.L1.base))}; +pJE=function(z){var J=z.timing.Kj();J.shost=KZ(z.L1.base);return J}; +yFq=function(z,J){return(z==null?void 0:z.maxWidth)>(J==null?void 0:J.maxWidth)||(z==null?void 0:z.maxHeight)>(J==null?void 0:J.maxHeight)}; +NbE=function(z,J){for(var m=g.y(J.keys()),e=m.next();!e.done;e=m.next())if(e=J.get(e.value),e.length!==0){g.l9(e,function(c,W){return W.maxFramerate-c.maxFramerate}); +for(var T=[e[0]],E=0,Z=1;Zz.K||m.push(e)}return m}; +ON=function(z,J,m){var e=neb[z]||[];m.C("html5_shorts_onesie_mismatched_fix")&&(e=YMj[z]||[]);J.push.apply(J,g.X(e));m.C("html5_early_media_for_drm")&&J.push.apply(J,g.X(Ca4[z]||[]))}; +Dgq=function(z,J){var m=g.ii(z),e=z.W(),T=e.Z;e=e.C("html5_shorts_onesie_mismatched_fix");var E=z.pA();if(e){if(!T.Z){if(E&&ps)return ps;if(yT)return yT}}else if(yT&&!T.Z)return yT;var Z=[],c=[],W={},l=Nm.concat(arj);e&&(l=Nm.concat(K24));z.C("html5_early_media_for_drm")&&(l=l.concat(Bb1),z.C("allow_vp9_1080p_mq_enc")&&l.push(SMb));var w=[].concat(g.X(frq));if(m.S)for(var q=0;qm.nB)){var G=g.dv(z.W().experiments,"html5_drm_byterate_soft_cap");G>0&&OOq(O)&&O.RT>G||(q?(Z.push(I),ON(I,Z,z)):(O=OM(m,O,T),O===!0?(q=!0,Z.push(I),ON(I,Z,z)):W[I]=O))}}}w=g.y(w);for(l=w.next();!l.done;l=w.next())for(l=g.y(l.value),q=l.next();!q.done;q= +l.next())if(q=q.value,(d=wIs(q))&&d.audio&&(z.C("html5_onesie_51_audio")||!se(d)&&!rS(d)))if(d=OM(m,d,T),d===!0){c.push(q);ON(q,c,z);break}else W[q]=d;m.T&&J("orfmts",W);if(e)return T.Z&&(T.Z=!1,ps=yT=void 0),E?ps={video:Z,audio:c}:yT={video:Z,audio:c};yT={video:Z,audio:c};T.Z=!1;return yT}; +g.ge1=function(z,J,m){var e=m.Z,T=[],E=[],Z=m.C("html5_shorts_onesie_mismatched_fix");z=z.pA();var c=Nm.concat(arj);Z&&(c=Nm.concat(K24));m.C("html5_early_media_for_drm")&&(c=c.concat(Bb1),m.C("allow_vp9_1080p_mq_enc")&&c.push(SMb));var W=[].concat(g.X(frq));if(J.S)for(var l=0;l0&&OOq(q)&&q.RT>d)&&OM(J,q,e)===!0){T.push({videoCodec:bZz[Ue[w]],maxWidth:q.video.width,maxHeight:q.video.height,maxFramerate:q.video.fps});break}}}}Z=g.y(W);for(z=Z.next();!z.done;z=Z.next())for(z=g.y(z.value),W=z.next();!W.done;W=z.next())if(W=W.value,(c=wIs(W))&&c.audio&&(m.C("html5_onesie_51_audio")||!se(c)&&!rS(c))&&OM(J,c,e)=== +!0){E.push({audioCodec:$gq[Ue[W]],numChannels:c.audio.numChannels});break}return{videoFormatCapabilities:T,audioFormatCapabilities:E}}; +G0=function(z){var J={},m=z.H1,e=z.e4,T=m.getVideoData(),E=uK(0),Z=m.getPlayerSize(),c=m.getVisibilityState();E&&(J.ou3=E,J.lastManualDirection=Bvq(),E=Rhb()||0,E>0&&(E=(e.C("html5_use_date_now_for_local_storage")?Date.now():(0,g.b5)())-E,e.C("html5_use_date_now_for_local_storage")?E>0&&(J.timeSinceLastManualFormatSelectionMs=E):J.timeSinceLastManualFormatSelectionMs=E));E=e.C("html5_use_streamer_bandwidth_for_low_latency_live")&&T.isLowLatencyLiveStream;if(e.schedule.Ry&&!E){var W;E=e.C("html5_disable_bandwidth_cofactors_for_sabr_live")? +!((W=z.dw)==null||!W.iV):!1;J.NV=ni(e.schedule,!E)}W=g.Qs();var l=g.VD.medium,w=Math.floor(l*16/9);E=T.pA()?l:w;l=T.pA()?w:l;J.vF=Math.max(Z.width*W,E);J.lE=Math.max(Z.height*W,l);J.visibility=c;J.fch=bE();J.gA=m.Wt()*1E3;Z=z.H1.TY(!0);var q,d,I,O,G,n;J.hdn={defaultPolicy:(Z==null?void 0:(q=Z.Cb)==null?void 0:q.K)||0,smooth:(Z==null?void 0:(d=Z.Lb2)==null?void 0:d.K)||0,visibility:(Z==null?void 0:(I=Z.WPy)==null?void 0:I.K)||0,cF:(Z==null?void 0:(O=Z.rA)==null?void 0:O.K)||0,performance:(Z==null? +void 0:(G=Z.Sh)==null?void 0:G.K)||0,speed:(Z==null?void 0:(n=Z.AWW)==null?void 0:n.K)||0};var C;J.NG2=(Z==null?void 0:(C=Z.gZb)==null?void 0:C.K)||0;e.C("html5_enable_sabr_drm_hd720p")&&z.qh&&z.qh.length>0&&(J.qh=z.qh);e.C("html5_enable_sabr_drm_hd720p")&&z.sabrLicenseConstraint&&(J.sabrLicenseConstraint=z.sabrLicenseConstraint);if(e.C("html5_onesie_media_capabilities")||e.C("html5_enable_server_format_filter"))J.ZZ=3;e.C("html5_onesie_audio_only_playback")&&EH(T)&&(J.ZZ=1);var K;((K=z.dw)==null? +0:K.tZ)&&z.zz6&&(J.ZZ=J.ZZ===void 0?7:J.ZZ|4);q=T.s4?T.s4:g.ii(T);e.C("html5_onesie_media_capabilities")&&(J.mediaCapabilities=g.ge1(T,q,e));var f;if((f=z.dw)==null?0:f.K&&f.qp){I=e.Z;f=[];d=[];O=new Map;e.C("html5_ssap_update_capabilities_on_change")?(I.Ry||gkb(I),G=I.Ry||[]):G=Array.from(I.K.values());G=g.y(G);for(n=G.next();!n.done;n=G.next())C=n.value,C.SI?d.push({audioCodec:$gq[C.rb],numChannels:C.numChannels,spatialCapabilityBitmask:xgq[C.rb]}):(K=bZz[C.rb],n={videoCodec:K,maxWidth:C.maxWidth|| +0,maxHeight:C.maxHeight||0,maxFramerate:C.maxFramerate||0,is10BitSupported:C.Zz||!1},C.maxBitrateBps&&(n.maxBitrateBps=C.maxBitrateBps,Z=Fw(C.itag),c=void 0,((c=Z)==null?0:c.video)&&OM(q,Z,I)===!0&&(Z=Z.RT*8,Z>n.maxBitrateBps&&(n.maxBitrateBps=Z))),C=K+"_"+C.Zz,K=O.get(C)||[],K.push(n),O.set(C,K));f=NbE(f,O);I={};e.C("html5_ssff_denylist_opus_low")&&(I={itagDenylist:[249,350]});J.mediaCapabilities={videoFormatCapabilities:f,audioFormatCapabilities:d,hdrModeBitmask:3,perPlaybackAttributes:I}}var x; +if((x=z.dw)==null?0:x.K){J.FV=q.FV;var V;J.nB=(V=z.dw)==null?void 0:V.nB}e.s4&&(J.WF=e.s4);J.OG=z.wi;J.rV=z.rV;J.s8=z.s8;J.pQ=z.pQ;if(e.C("html5_fix_time_since_last_seek_reporting")?z.f3!==void 0:z.f3)J.lcb=(0,g.b5)()-z.f3;z.isPrefetch&&e.C("html5_report_prefetch_requests")&&(J.isPrefetch=!0);rK||(J.uM1=!0);x=NA(e.schedule)*1E3;x>0&&(J.e1=x);var zE;((zE=z.dw)==null?0:zE.TH)&&z.YY&&z.YY0?k:e.schedule.interruptions[0]||0);var Ez;if((Ez=z.dw)==null?0:Ez.gE)J.rI=z.rI;var ij;((ij=z.dw)==null?0:ij.lr)&&T.jg&&(J.audioTrackId=T.jg);var r;if((r=z.dw)==null?0:r.m7)if(z=qx1())J.detailedNetworkType=Mcq[z]||Mcq.other;return J}; +XL=function(z,J,m,e,T,E,Z){var c={};J&&(c.Pf=J);if(!z)return c;c.playbackCookie=m==null?void 0:m.playbackCookie;T&&(c.X1=T);c.e9=[];c.H9=[];if(Z==null?0:Z.size)for(J=g.y(Z.values()),m=J.next();!m.done;m=J.next())c.H9.push(m.value);if(z.sabrContextUpdates.size>0)for(J=g.y(z.sabrContextUpdates.values()),m=J.next();!m.done;m=J.next())AFq(c,m.value,e);Fr(z)&&!g.Lr(z)&&z.C("html5_enable_sabr_request_pipelining")&&E&&AFq(c,E,e);z.UT&&(c.CU3=z.UT);e=z.W().K;c.clientInfo={clientName:oeq[e.c.toUpperCase()]|| +0};e.cbrand&&(c.clientInfo.deviceMake=e.cbrand);e.cmodel&&(c.clientInfo.deviceModel=e.cmodel);e.cver&&(c.clientInfo.clientVersion=e.cver);e.cos&&(c.clientInfo.osName=e.cos);e.cosver&&(c.clientInfo.osVersion=e.cosver);e=z.W();e.C("html5_sabr_enable_server_xtag_selection")&&e.IT&&(c.clientInfo.hl=e.IT);z.vt&&(c.vt=z.vt);return c}; +AFq=function(z,J,m){var e=J.type||0;(m==null?0:m.has(e))?z.H9.push(J):z.e9.push(e)}; +hp=function(z,J,m,e,T,E){var Z=E===void 0?{}:E;var c=Z.Cu===void 0?[]:Z.Cu;var W=Z.Aj===void 0?!1:Z.Aj;var l=Z.jR===void 0?0:Z.jR;var w=Z.poToken===void 0?"":Z.poToken;var q=Z.Ww===void 0?void 0:Z.Ww;var d=Z.nu===void 0?"":Z.nu;var I=Z.fF===void 0?0:Z.fF;var O=Z.z7===void 0?new Uint8Array(0):Z.z7;var G=Z.z9===void 0?!1:Z.z9;E=Z.K3===void 0?0:Z.K3;Z=Z.Pf===void 0?void 0:Z.Pf;m3.call(this,J,T);var n=this;this.policy=z;this.logger=new g.ZM("dash/request");this.KR=this.dW=0;this.Pg=!1;this.wJ=this.O7= +null;this.My=!1;this.z7=this.fF=null;this.wB=this.DB=!1;this.eD=null;this.K3=this.Tq=0;this.By=!1;this.So={f1:function(K){n.f1(K)}, +Xvz:function(){return n.XG}, +tNx:function(K){n.XG=K}, +vty:function(K){n.dW=K}, +l8h:function(K){n.qT.lastError=K}, +bD:function(){return n.xhr}}; +this.timing=new sh(this,m);this.Aj=W;this.fF=I;this.z7=O;this.L1=g.te(this.info,this.policy,e);this.L1.set("rn",this.t4().toString());this.L1.set("rbuf",(l*1E3).toFixed().toString());this.Aj&&this.L1.set("smb","1");this.policy.Oj&&w&&this.L1.set("pot",w);d&&this.L1.set("bbs",d);this.policy.useUmp&&!BJ(this.L1.base)&&(this.XU=new Ja(this),this.L1.set("ump","1"),this.L1.set("srfvp","1"));if(z=this.policy.Fm?this.policy.F_&&!isNaN(this.info.bU)&&this.info.bU>this.policy.l4?!1:!0:!1)J=null,this.policy.EV&& +this.policy.Nh?J=[1]:G&&(J=[]),J!=null&&(this.policy.lL&&J.push(2),this.L1.set("defsel",J.join(",")));this.qT=new WX(this,this.policy,this.L1,this.info.QH,this.timing,this.logger,e,q);this.Cu=c||null;this.Kx=j1u(this);lru(this.qT);e=void 0;if(this.policy.Y0||this.XU||this.policy.Qx)e={method:"POST"},c=(0,g.ns)([120,0]),q={},this.policy.LW&&Z&&(Z=XL(void 0,Z),q.ll=Z),this.policy.b1&&this.z7&&(q.videoPlaybackUstreamerConfig=this.z7),this.policy.Qx&&(Z=this.info.U)&&Object.assign(q,Z),Object.keys(q).length> +0?e.body=g.sO(q,g.JF):e.body=c;if(this.fF&&this.z7){this.L1.set("iwts","1");e={method:"POST"};Z={pQ:this.fF*1E3};var C;c=(C=this.info.U)==null?void 0:C.Ej;C=g.sO({xX:Z,Ej:c||void 0,videoPlaybackUstreamerConfig:this.z7},g.JF);e.body=C}try{this.xhr=EN(this.L1,this.policy.X,this.timing,z,e),this.qT.T.start(),E&&(this.R_=new g.vl(this.r7,E,this),this.R_.start(E+(this.timing.G4.X.ao()||0)*1E3)),this.policy.LH&&vO(this.timing,this.jO()),this.logger.debug(function(){return"Sent, itag="+n.L1.get("itag")+ +" seg="+n.info.s2[0].Y3+" range="+n.L1.get("range")+" time="+Math.round(n.info.s2[0].U)+"-"+Math.round(g.kO(n.info.s2).Y)+" rtp="+(n.timing.Y7()-Date.now()).toFixed(0)}),g.Ow(function(){})}catch(K){hSs(this,K,!0)}}; +j1u=function(z){if(!(Po(z.info)&&z.info.kV()&&z.policy.Ks&&z.Cu)||z.info.QH.T>=2||uK()>0||!b1E())return!1;var J=z.L1.get("aitags");if(!J)return!1;J=mP(J).split(",");for(var m=[],e=g.y(z.Cu),T=e.next();!T.done;T=e.next())T=T.value,g.s1(J,T)&&m.push(T);if(!m.length)return!1;z.L1.set("altitags",g.JP(m.join(",")));return!0}; +hSs=function(z,J,m){m=m===void 0?!1:m;g.jk(J);z.qT.lastError="player.exception";z.errorMessage=J.name+"_"+J.message;m?g.Ow(function(){qm(z.qT)}):qm(z.qT)}; +uUf=function(z,J){z.timing.Ry=!0;z.xhr.g_()&&z.timing.a_();if(z.policy.yv){var m;(m=z.R_)==null||m.stop()}cX(z.XG,J,!1)}; +Vcs=function(z,J){z.info=J;if(z.XG){var m=z.XG;J=J.s2;(J.length!==m.s2.length||J.length0){J=g.y(J.s2);for(var m=J.next();!m.done;m=J.next()){var e=void 0;z+=((e=m.value.range)==null?void 0:e.length)||0}return z}if(J.dV.length>0)for(m=g.y(J.dV),e=m.next();!e.done;e=m.next())z+=e.value.YG||0;return z+J.cq}; +DM=function(z,J){if(BX){var m=0;z=z.jo.get(J);if(z==null||!z.RF)return 0;z=g.y(z.RF.values());for(J=z.next();!J.done;J=z.next())m+=J.value.data.getLength();return m}return((m=z.jo.get(J))==null?void 0:m.R1.getLength())||0}; +bo=function(z,J){z=z.jo.get(J);if(BX){if(z==null||!z.W2)return!1;J=z.RF.size>0;return z.D3.length>0||J}return!(z==null||!z.W2)&&!(z==null||!z.R1.getLength())}; +kvb=function(z,J){var m=z.jo.get(J),e=RSq(z,J),T=!e&&!!m.bytesReceived;if(BX){var E;if((E=z.E2)==null?0:E.Cq){z=g.y(m.RF.values());for(J=z.next();!J.done;J=z.next())if(!J.value.NE)return!1;return T}}else if(E=z.Xf(J),T&&z.K&&E!==void 0)return E;return(T||m.bytesReceived===e)&&m.pR+DM(z,J)===m.bytesReceived}; +L2b=function(z,J,m){z.jo.set(J,{R1:new GU,pR:0,bytesReceived:0,cq:0,z1:!1,Z2:!1,Xf:!1,SI:m,Yf:[],s2:[],dV:[],W2:!1,RF:new Map,Jj:new Map,D3:[]});z.logger.debug(function(){return"[initStream] formatId: "+J})}; +Q1z=function(z,J,m,e){m.s2.push.apply(m.s2,g.X(e));if(BX){m.Jj.has(J)||m.Jj.set(J,[]);var T;(T=m.Jj.get(J)).push.apply(T,g.X(e))}else if(m.XG)for(z=g.y(e),J=z.next();!J.done;J=z.next())m.XG.s2.push(J.value);else{m.XG=new io(z.dw,[].concat(g.X(m.s2)));var E;((E=z.dw)==null?0:E.u3)&&g.u(z,m.XG)}}; +vef=function(z,J,m){var e,T=(e=z.E2)==null?void 0:e.S.get(J);if(!T)return[];if(m.Vo){var E;return((E=T.GH(0,m.clipId))==null?void 0:E.s2)||[]}if(T.Sx()){var Z=m.startMs,c=m.durationMs,W=1E3,l;if(((l=z.dw)==null?0:l.K)&&m.timeRange){var w;Z=(w=m.timeRange.startTicks)!=null?w:-1;var q;c=(q=m.timeRange.aG)!=null?q:-1;var d;W=(d=m.timeRange.timescale)!=null?d:-1}if(m.Me<0||m.Bu<0||c<0||Z<0||m.YG<0||W<0)return fs(z,J),[];z=b0(m.Me,m.YG);J=m.Hb||0;return[new gt(3,T,z,"makeSliceInfosMediaBytes",m.Bu-1,Z/ +W,c/W,J,z.length-J,void 0,m.xx,m.clipId)]}if(m.Bu<0)return fs(z,J),[];var I;return((I=z.E2)==null?0:I.Cq)?(J=T.Sd,l=J*T.info.RT,w=((Z=z.dw)==null?0:Z.OD)?m.Hb:void 0,((W=z.dw)==null?0:W.pH)&&m.timeRange&&!w&&(c=m.timeRange.startTicks/m.timeRange.timescale),[new gt(3,T,void 0,"makeSliceInfosMediaBytes",m.Bu,c,J,w,l,!0,m.xx,m.clipId)]):[]}; +s1u=function(z,J,m){z.E2=J;z.dw=m;J=g.y(z.jo);for(m=J.next();!m.done;m=J.next()){var e=g.y(m.value);m=e.next().value;e=e.next().value;for(var T=g.y(e.Yf),E=T.next();!E.done;E=T.next()){E=E.value;var Z=vef(z,m,E);Q1z(z,E.Bt,e,Z)}}}; +$p=function(z,J,m,e){z.logger.debug(function(){return"[addStreamData] formatId: "+m+",headerId: "+J+" bytes: "+e.getLength()}); +(z=z.jo.get(m))&&!z.Z2&&(BX?(z.RF.has(J)||z.RF.set(J,{data:new GU,TU:0,NE:!1}),X9(z.RF.get(J).data,e)):X9(z.R1,e),z.bytesReceived+=e.getLength(),z.z1=!0)}; +SW=function(z,J){z.logger.debug(function(){return"[closeStream] formatId: "+J}); +var m=z.jo.get(J);m&&!m.Z2&&(m.Z2=!0,m.kZ&&m.kZ(),rFq(z)&&z.U.Ud())}; +rFq=function(z){z=g.y(z.jo.values());for(var J=z.next();!J.done;J=z.next())if(!J.value.Z2)return!1;return!0}; +gD=function(z,J,m,e,T,E,Z,c){g.h.call(this);this.policy=z;this.info=J;this.E2=m;this.Dd=T;this.sE=c;this.logger=new g.ZM("sabr");this.XU=new Ja(this);this.vg=new aF(this);this.I1=new Ks(this);this.state=1;this.l6=!1;this.oQ=0;this.clipId="";this.C9=this.BK=-1;this.Ob=0;this.qU=-1;this.By=this.tU=!1;this.Ed=0;this.UW=!1;this.policy.LD?this.aj=new Yp(this,E):this.aj=new sh(this,E);this.L1=this.policy.gE?J.Ek:zcb(J,this.policy,e);this.L1.set("rn",""+this.t4());this.L1.set("alr","yes");s1u(this.I1,m, +z);this.qT=new WX(this,this.policy,this.L1,J.QH,this.aj,this.logger,e,Z,this.policy.enableServerDrivenRequestCancellation);lru(this.qT);var W;if((W=this.policy)==null?0:W.u3)g.u(this,this.I1),g.u(this,this.qT);z=J.T;J={method:"POST",body:z};z&&(this.Ob=z.length);try{this.xhr=EN(this.L1,this.policy.X,this.aj,rK,J),this.policy.LH&&vO(this.aj,this.jO()),this.qT.T.start()}catch(l){g.hr(l)}}; +Jes=function(z){z.policy.NN&&z.Z7&&!z.UW?z.UW=!0:z.aj.a_()}; +mxR=function(z,J){var m=-1,e=-1,T=-1,E;if((E=z.t2)==null?0:E.items)for(z=g.y(z.t2.items),E=z.next();!E.done;E=z.next())E=E.value,J=c,W=z.E2.isManifestless&&z.policy.M7,Z){var l;if(((l=z.K)==null?void 0:l.dL.event)==="predictStart"&&z.K.Y3z.Y&&(z.Y=NaN,z.V=NaN);z.K&&z.K.Y3===J?pof(z,J,m,z.K,T):z.T===1&&oF(z,5,"noad")}; +pof=function(z,J,m,e,T){if(T&&e){var E=e.dL,Z=T.o_(E);E.event==="predictStart"&&(z.fh=J);z.ph("sdai",{onqevt:E.event,sq:J,mt:m,gab:Z,cst:E.startSecs,cueid:z.policy.oL&&(Z||E.event==="start")?E.identifier:void 0},!0);if(Z)if(E.event!=="predictStart")E.event==="start"&&z.fh===J-1&&z.ph("sdai",{gabonstart:J}),e.r6?oF(z,4,"cue"):(z.Y=J,z.V=m,z.ph("sdai",{joinad:z.T,sg:z.Y,st:z.V.toFixed(3)}),z.B=Date.now(),oF(z,2,"join"),T.qJ(e.dL));else{var c=J+Math.max(Math.ceil(-E.K/5E3),1);Z=Math.floor(m-E.K/1E3); +z.policy.Z?z.Z=Z:z.U=c;z.ph("sdai",{onpred:m,estsq:c,estmt:Z.toFixed(3)});ha(z.v1,Z,Z,c);z.B=Date.now();oF(z,3,"predict");T.qJ(e.dL)}else z.T===1?((c=z.S)==null?0:c.NU(m))?(ha(z.v1,m,m,J),oF(z,4,"sk2had")):oF(z,5,"nogab"):E.event==="predictStart"&&(z.policy.Z&&z.Z>0?(m=Math.floor(m-E.K/1E3),z.Z!==m&&z.ph("sdai",{updateSt:m,old:z.Z}),z.Z=m):z.U>0&&(m=J+Math.max(Math.ceil(-E.K/5E3),1),z.U!==m&&(z.ph("sdai",{updateSt:m,old:z.U}),z.U=m)));var W,l;if(z.b8&&E.event==="start"&&((W=z.K)==null?void 0:W.dL.event)!== +"predictStart"&&((l=z.K)==null?void 0:l.Y3)===J-1){var w;z.ph("sdai",{ovlpst:(w=z.K)==null?void 0:w.dL.event,sq:J})}}else z.ph("sdai",{nulldec:1,sq:J,mt:m.toFixed(3),evt:(e==null?void 0:(E=e.dL)==null?void 0:E.event)||"none"})}; +Ntb=function(z,J,m){if(z.policy.BR&&z.policy.Z)return!(z.T===1||z.T===2||z.T===3&&m>=z.U);if(z.T===1||z.T===2)return!1;if(z.T!==0&&J===z.audioTrack){if(z.policy.Z)return yeu(z.videoTrack,m)||yeu(z.videoTrack,m+1);z=uo(z.videoTrack);if(m>(z?z.Y3:-1))return!1}return!0}; +VT=function(z,J,m){return(m<0||m===z.Y)&&!isNaN(z.V)?z.V:J}; +dxf=function(z,J){if(z.K){var m=z.K.dL.zt-(J.startTime+z.X-z.K.dL.startSecs);m<=0||(m=new Vf(z.K.dL.startSecs-(isNaN(z.X)?0:z.X),m,z.K.dL.context,z.K.dL.identifier,"stop",z.K.dL.K+J.duration*1E3),z.ph("cuepointdiscontinuity",{segNum:J.Y3}),Aa(z,m,J.Y3))}}; +oF=function(z,J,m){z.T!==J&&(z.ph("sdai",{setsst:J,old:z.T,r:m}),z.T=J)}; +PX=function(z,J,m,e){(e===void 0?0:e)?oF(z,1,"seek"):J>0&&Math.abs(J-m)>=5&&z.T===4&&oF(z,5,"sk2t."+J.toFixed(2)+";ct."+m.toFixed(2))}; +ta=function(z,J,m){this.audio=z;this.video=J;this.reason=m}; +HX=function(z,J,m){this.K=z;this.reason=J;this.token=m;this.videoId=void 0}; +UN=function(z,J,m){g.h.call(this);this.policy=z;this.U=J;this.ph=m;this.S=new Map;this.Z=0;this.Y=!1;this.K="";this.T=!1}; +RF=function(z,J,m){if(m===void 0?0:m)z.Y=!0;++z.Z;m=6E4*Math.pow(2,z.Z);m=(0,g.b5)()+m;z.S.set(J.info.id,m)}; +kp=function(z){for(var J=g.y(z.S.entries()),m=J.next();!m.done;m=J.next()){var e=g.y(m.value);m=e.next().value;e=e.next().value;e<(0,g.b5)()&&z.S.delete(m)}return z.S}; +GmR=function(z){return z.Y&&kp(z).size>0}; +Ls=function(z,J){z.K!==J&&(z.K=J,z.T=!0)}; +XoE=function(z,J){var m;J&&(m=g.QS(z.U.K,function(T){return T.id===J})); +if(!m&&(m=g.QS(z.U.K,function(T){var E;return!((E=T.sC)==null||!E.isDefault)}),J)){var e; +z.ph("iaf",{id:J,sid:(e=m)==null?void 0:e.id})}return m}; +vX=function(z,J,m,e,T,E){var Z=this;E=E===void 0?[]:E;this.v1=z;this.Tf=J;this.policy=m;this.E2=e;this.Y=T;this.O2=E;this.logger=new g.ZM("dash/abr");this.K=tc;this.S=this.V=null;this.B=-1;this.Gf=!1;this.nextVideo=this.T=null;this.U=[];this.Lh=new Set;this.Qx={};this.nh=new wc(1);this.X=0;this.qD=this.fh=this.Ry=!1;this.wb=0;this.ND=!1;this.x3=new Set;this.h6=!1;this.So={KO:function(){QT(Z)}}; +this.Z=new UN(this.policy,T,function(c,W){Z.v1.ph(c,W)})}; +Klu=function(z,J,m){sN(z,J);J=XoE(z.Z,m);m||J||(J=nYq(z));J=J||z.Y.K[0];z.T=z.E2.K[J.id];QT(z);z.V=z.T;YIs(z);C0j(z);z.S=z.nextVideo;z.V=z.T;return ahu(z)}; +fhq=function(z,J){if(Btf(z,J))return null;if(J.reason==="m"&&J.isLocked())return z.logger.debug(function(){return"User sets constraint to: "+la(J)}),sN(z,J),z.X=z.U.length-1,QT(z),rD(z),z.fh=z.fh||z.S!==z.nextVideo,z.S=z.nextVideo,new ta(z.T,z.S,J.reason); +J.reason==="r"&&(z.B=-1);sN(z,J);rD(z);if(J.reason==="r"&&z.nextVideo===z.S)return new ta(z.T,z.nextVideo,J.reason);SIq(z);return null}; +Dxb=function(z,J,m){z.T=z.E2.K[J];z.V=z.T;return new ta(z.V,z.S,m?"t":"m")}; +bab=function(z,J){if(J.info.video){if(z.S!==J)return z.S=J,ahu(z)}else z.qD=z.V!==J,z.V=J;return null}; +$x1=function(z,J){if(J.K.info.video&&J.Z){var m=(J.T+J.S)/J.duration,e=J.K.info.RT;m&&e&&(z.nh.xA(1,m/e),z.policy.S&&m/e>1.5&&z.v1.ph("overshoot",{sq:J.Y3,br:m,max:e}))}}; +zG=function(z,J,m){RF(z.Z,J,m===void 0?!1:m);z.B=-1;sN(z,z.K)}; +gYq=function(z,J){return new ta(z.V,z.S,J||z.K.reason)}; +SIq=function(z){if(z.S&&z.nextVideo&&J6(z,z.S.info)z.policy.nB,c=T<=z.policy.nB?vQ(e):ky(e);if(!E||Z||c)m[T]=e}return m}; +sN=function(z,J){z.K=J;var m=z.Y.videoInfos;if(!z.K.isLocked()){var e=(0,g.b5)();m=g.cU(m,function(c){if(c.RT>this.policy.RT)return!1;var W=this.E2.K[c.id];return kp(this.Z).get(c.id)>e?!1:W.QH.T>4||W.Y>4?(this.logger.debug(function(){return"Remove "+Fz(c)+"; 4 load failures"}),!1):this.x3.has(+c.itag)?!1:!0},z); +GmR(z.Z)&&(m=g.cU(m,function(c){return c.video.width<=854&&c.video.height<=480}))}m.length||(m=z.Y.videoInfos); +var T=m;z.policy.Tz&&(T=MFj(z,T,J));T=g.cU(T,J.U,J);if(z.K.isLocked()&&z.Z.K){var E=g.QS(m,function(c){return c.id===z.Z.K}); +E?T=[E]:Ls(z.Z,"")}z.policy.Tz||(T=MFj(z,T,J));T.length||(T=[m[0]]);T.sort(function(c,W){return J6(z,c)-J6(z,W)}); +J={};for(m=1;mJ.Bx.video.width?(g.rg(T,m),m--):J6(z,J.iO)*z.policy.B>J6(z,J.Bx)&&(g.rg(T,m-1),m--);var Z=T[T.length-1];z.ND=!!z.S&&!!z.S.info&&z.S.info.rb!==Z.rb;z.logger.debug(function(){return"Constraint: "+la(z.K)+", "+T.length+" fmts selectable, max selectable fmt: "+Fz(Z)}); +z.U=T;z.Lh.clear();J=!1;for(m=0;m=1080&&(J=!0);Aeq(z.policy,Z,z.E2.Cq)}; +MFj=function(z,J,m){var e=m.reason==="m"||m.reason==="s";z.policy.UX&&m7&&g.Y4&&(!e||m.K<1080)&&(J=J.filter(function(l){return l.video&&(!l.T||l.T.powerEfficient)})); +if(J.length>0)if(NU()){var T=xxR(z,J);J=J.filter(function(l){return!!l&&!!l.video&&l.rb===T[l.video.qualityOrdinal].rb})}else{var E,Z,c=(E=J[0])==null?void 0:(Z=E.video)==null?void 0:Z.qualityOrdinal; +if(c){m=J.filter(function(l){return!!l&&!!l.video&&l.video.qualityOrdinal===c}); +var W=xxR(z,m)[c].rb;J=J.filter(function(l){return!!l&&!!l.video&&l.rb===W})}}return J}; +oYb=function(z,J){for(var m=0;m+1e}; +QT=function(z){if(!z.T||!z.policy.U&&!z.T.info.sC){var J=z.Y.K;z.T&&(J=J.filter(function(e){return e.audio.K===z.T.info.audio.K}),J.length||(J=z.Y.K)); +z.T=z.E2.K[J[0].id];if(J.length>1){if(z.policy.bG){if(z.policy.CQ&&z.V===null){var m=g.Ch(J,function(e){return e.audio.audioQuality}); +z.v1.ph("aq",{hqa:z.policy.h6,qs:m.join("_")})}if(z.policy.h6)return;if(m=g.QS(J,function(e){return e.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}))z.T=z.E2.K[m.id]}m=!1; +if(m=z.policy.Zo?!0:z.K.isLocked()?z.K.K<240:oYb(z,z.T))z.T=z.E2.K[g.kO(J).id]}}}; +rD=function(z){if(!z.nextVideo||!z.policy.U)if(z.K.isLocked())z.nextVideo=z.K.K<=360?z.E2.K[z.U[0].id]:z.E2.K[g.kO(z.U).id],z.logger.debug(function(){return"Select max fmt: "+Fz(z.nextVideo.info)}); +else{for(var J=Math.min(z.X,z.U.length-1),m=$l(z.Tf),e=J6(z,z.T.info),T=m/z.policy.Ry-e;J>0&&!(J6(z,z.U[J])<=T);J--);for(var E=m/z.policy.B-e;J=E);J++);z.nextVideo=z.E2.K[z.U[J].id];z.X!==J&&z.logger.info(function(){return"Adapt to: "+Fz(z.nextVideo.info)+", bandwidth: "+m.toFixed(0)+", bandwidth to downgrade: "+T.toFixed(0)+", bandwidth to upgrade: "+E.toFixed(0)+", constraint: "+la(z.K)}); +z.X=J}}; +YIs=function(z){var J=z.policy.Ry,m=$l(z.Tf),e=m/J-J6(z,z.T.info);J=g.vc(z.U,function(T){return J6(this,T)E?T=0:e[Z]>z.buffered[Z]&&(Z===E-1?T=2:Z===E-2&&e[Z+1]>z.buffered[Z+1]&&(T=3))}z.K.add(J<<3|(m&&4)|T);J=Math.ceil(z.track.Wt()*1E3);z.K.add(J-z.Z);z.Z=J;if(T===1)for(z.K.add(E),Z=J=0;Z=2&&z.K.add(e[E- +1]-z.buffered[E-1]);m&&z.K.add(m);z.buffered=e}; +E9=function(z,J,m){var e=this;this.policy=z;this.K=J;this.wb=m;this.U=this.T=0;this.Db=null;this.Ry=new Set;this.B=[];this.indexRange=this.initRange=null;this.X=new r7;this.fh=this.Tf=!1;this.So={CnD:function(){return e.S}, +s3h:function(){return e.chunkSize}, +b3z:function(){return e.V}, +Nmh:function(){return e.Y}}; +(J=P0q(this))?(this.chunkSize=J.csz,this.S=Math.floor(J.clen/J.csz),this.V=J.ck,this.Y=J.civ):(this.chunkSize=z.ma,this.S=0,this.V=g.BK(16),this.Y=g.BK(16));this.Z=new Uint8Array(this.chunkSize);this.V&&this.Y&&(this.crypto=new rhb(this.V,this.Y))}; +P0q=function(z){if(z.policy.jf&&z.policy.Eo)for(var J=g.y(z.policy.jf),m=J.next(),e={};!m.done;e={wM:void 0,Jv:void 0},m=J.next())if(m=g.iv(m.value),e.wM=+m.clen,e.Jv=+m.csz,e.wM>0&&e.Jv>0&&z.policy.U===m.docid&&z.K.info.id===m.fmtid&&z.K.info.lastModified===+m.lmt)return z={},z.clen=e.wM,z.csz=e.Jv,z.ck=m.ck,z.civ=m.civ,z}; +ZY=function(z){return!!z.Db&&z.Db.yC()}; +UxR=function(z,J){if(!ZY(z)&&!z.mF()){if(!(z.Tf||(z.Tf=!0,z.S>0))){var m=Ft(z);m=xt(z.policy.U,z.K.info,iC(z),m,z.policy.yH);cs(z,m)}if(J.info.type===1){if(z.Db){Ws(z,Error("Woffle: Expect INIT slices to always start us off"));return}z.initRange=b0(0,J.K.getLength())}else if(J.info.type===2)z.Db&&z.Db.type===1||Ws(z,Error("Woffle: Index before init")),z.indexRange=b0(z.initRange.end+1,J.K.getLength());else if(J.info.type===3){if(!z.Db){Ws(z,Error("Woffle: Expect MEDIA slices to always have lastSlice")); +return}if(z.Db.type===3&&!Ae(z.Db,J.info)&&(z.B=[],J.info.Y3!==on(z.Db)||J.info.T!==0))return;if(J.info.Z){m=g.y(z.B);for(var e=m.next();!e.done;e=m.next())tFj(z,e.value);z.B=[]}else{z.B.push(J);z.Db=J.info;return}}else{Ws(z,Error("Woffle: Unexpected slice type"));return}z.Db=J.info;tFj(z,J);Haj(z)}}; +tFj=function(z,J){var m=0,e=J.K.cz();if(z.U=e.length)return;if(m<0)throw Error("Missing data");z.U=z.S;z.T=0}for(T={};m0){var Z=e.getUint32(m+28);E+=Z*16+4}var c=e.getUint32(m+E-4);try{var W=vYR(J.subarray(m+E,m+E+c));if(W!==null){var l=W;break a}}catch(w){}}m+=T}l=null;break a}catch(w){l=null;break a}l=void 0}if(l!=null)for(J=wy(Pv(l,7)),J==null||z.hp||(z.cryptoPeriodIndex=J),J=wy(Pv(l,10)),J!=null&&J>0&&!z.hp&&(z.K=J),l=vv(l, +2,lEE,void 0===di4?2:4),l=g.y(l),J=l.next();!J.done;J=l.next())z.S.push(g.GC(Sn(J.value),4))}; +reb=function(z){return isNaN(z.cryptoPeriodIndex)?g.GC(z.initData):""+z.cryptoPeriodIndex}; +qn=function(z,J,m){var e=m===void 0?{}:m;m=e.videoDuration===void 0?0:e.videoDuration;var T=e.Lu===void 0?void 0:e.Lu;e=e.Ov===void 0?!1:e.Ov;this.videoId=z;this.status=J;this.videoDuration=m;this.Lu=T;this.Ov=e}; +zEE=function(z,J,m,e,T){this.videoId=z;this.lD=J;this.T=m;this.bytesDownloaded=e;this.K=T}; +dr=function(z){this.K=z;this.offset=0}; +If=function(z){if(z.offset>=z.K.getLength())throw Error();return z.K.getUint8(z.offset++)}; +JGj=function(z,J){J=J===void 0?!1:J;var m=If(z);if(m===1){J=-1;for(m=0;m<7;m++){var e=If(z);J===-1&&e!==255&&(J=0);J>-1&&(J=J*256+e)}return J}e=128;for(var T=0;T<6&&e>m;T++)m=m*256+If(z),e*=128;return J?m:m-e}; +mdz=function(z){try{var J=JGj(z,!0),m=JGj(z,!1);return{id:J,size:m}}catch(e){return{id:-1,size:-1}}}; +eEf=function(z){for(var J=new dr(z),m=-1,e=0,T=0;!e||!T;){var E=mdz(J),Z=E.id;E=E.size;if(Z<0)return;if(Z===176){if(E!==2)return;e=J.vB()}else if(Z===186){if(E!==2)return;T=J.vB()}Z===374648427?m=J.vB()+E:Z!==408125543&&Z!==174&&Z!==224&&J.skip(E)}J=ak(z,0,m);m=new DataView(J.buffer);m.setUint16(e,3840);m.setUint16(T,2160);e=new GU([J]);X9(e,z);return e}; +TKz=function(z,J,m){var e=this;this.v1=z;this.policy=J;this.Y=m;this.logger=new g.ZM("dash");this.T=[];this.K=null;this.Tf=-1;this.B=0;this.x3=NaN;this.Ry=0;this.S=NaN;this.X=this.Gf=0;this.ND=-1;this.Qx=this.Z=this.U=this.wb=null;this.nh=this.qD=NaN;this.V=this.fh=this.Lh=this.O2=null;this.yH=!1;this.h6=this.timestampOffset=0;this.So={p_:function(){return e.T}}; +if(this.policy.U){var T=this.Y,E=this.policy.U;this.policy.yH&&z.ph("atv",{ap:this.policy.yH});this.V=new E9(this.policy,T,function(Z,c,W){O9(z,new qn(e.policy.U,2,{Lu:new zEE(E,Z,T.info,c,W)}))}); +this.V.X.promise.then(function(Z){e.V=null;Z===1?O9(z,new qn(e.policy.U,Z)):e.v1.ph("offlineerr",{status:Z.toString()})},function(Z){var c=(Z.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); +Z instanceof lC&&!Z.K?(e.logger.info(function(){return"Assertion failed: "+c}),e.v1.ph("offlinenwerr",{em:c}),pC(e),O9(z,new qn(e.policy.U,4))):(e.logger.info(function(){return"Failed to write to disk: "+c}),e.v1.ph("dldbwerr",{em:c}),pC(e),O9(z,new qn(e.policy.U,4,{Ov:!0})))})}}; +EQb=function(z){return z.T.length?z.T[0]:null}; +Ztq=function(z,J){return z.T.some(function(m){return m.info.Y3===J})}; +l7u=function(z,J,m,e){e=e===void 0?0:e;if(z.Z){var T=z.Z.T+z.Z.S;if(m.info.T>0)if(m.info.Y3===z.Z.Y3&&m.info.T=0&&z.Z.Y3>=0&&!Ae(z.Z,m.info))throw new g.vR("improper_continuation",z.Z.YQ(),m.info.YQ());kkz(z.Z,m.info)||yW(z,"d")}else if(m.info.T>0)throw new g.vR("continuation_of_null",m.info.YQ());z.Z=m.info;z.Y=m.info.K;if(m.info.T===0){if(z.K)if(!z.v1.isOffline()||z.policy.Vy)z.v1.ph("slice_not_fully_processed",{buffered:z.K.info.YQ(), +push:m.info.YQ()});else throw new g.vR("slice_not_fully_processed",z.K.info.YQ(),m.info.YQ());Nn(z);z.Gf=e}else{if(z.Gf&&e&&z.Gf!==e)throw z=new g.vR("lmt_mismatch",m.info.Y3,z.Gf,e),z.level="WARNING",z;!m.info.K.Sx()&&z.U&&(e=m.info,T=z.U.BK,e.V="updateWithEmsg",e.Y3=T)}if(z.K){e=g.JG(z.K,m);if(!e)throw new g.vR("failed_to_merge",z.K.info.YQ(),m.info.YQ());z.K=e}else z.K=m;a:{m=g.z1(z.K.info.K.info);if(z.K.info.type!==3){if(!z.K.info.Z)break a;z.K.info.type===6?Fmb(z,J,z.K):itj(z,z.K);z.K=null}for(;z.K;){e= +z.K.K.getLength();if(z.Tf<=0&&z.B===0){var E=z.K.K,Z=-1;T=-1;if(m){for(var c=0;c+80))break;if(q!==408125543)if(q===524531317)c=!0,w>=0&&(T=E.vB()+w,W=!0);else{if(c&&(q===160||q===163)&&(Z<0&&(Z=l),W))break;q===163&&(Z=Math.max(0,Z),T=E.vB()+w);if(q===160){Z<0&&(T=Z=E.vB()+w);break}E.skip(w)}}Z<0&&(T=-1)}if(Z< +0)break;z.Tf=Z;z.B=T-Z}if(z.Tf>e)break;z.Tf?(e=cGb(z,z.Tf),e.Z&&Wmb(z,e),Fmb(z,J,e),GG(z,e),z.Tf=0):z.B&&(e=cGb(z,z.B<0?Infinity:z.B),z.B-=e.K.getLength(),GG(z,e))}}z.K&&z.K.info.Z&&(GG(z,z.K),z.K=null)}; +itj=function(z,J){!J.info.K.Sx()&&J.info.T===0&&(g.z1(J.info.K.info)||J.info.K.info.hp())&&Y2b(J);if(J.info.type===1)try{Wmb(z,J),wps(z,J)}catch(T){g.jk(T);var m=jF(J.info);m.hms="1";z.v1.handleError("fmt.unparseable",m||{},1)}m=J.info.K;m.rK(J);z.V&&UxR(z.V,J);if(m.bC()&&z.policy.K)a:{z=z.v1.E2;J=J.info.clipId;m=g.m9(m.info,z.Cq);if(J){var e=uzj(z,m);if(z.h6[e])break a;z.h6[e]=J}z.Qx.push(m)}}; +jC1=function(z,J,m){if(z.T.length!==0&&(m||z.T.some(function(E){return E.info.U=nC(Z)+c):J=z.getDuration()>=Z.getDuration(),J=!J;J&&I7u(m)&&(J=z.wb,Xt?(c=Xz1(m),Z=1/c,c=nC(z,c),J=nC(J)+Z-c):J=J.getDuration()- +z.getDuration(),J=1+J/m.info.duration,COR(m.C1(),J))}else{Z=!1;z.U||(Y2b(m),m.T&&(z.U=m.T,Z=!0,E=m.info,e=m.T.BK,E.V="updateWithEmsg",E.Y3=e,E=m.T,E.yC&&(e=z.Y.index,e.T=!E.yC,e.S="emsg"),E=m.info.K.info,e=m.C1(),g.z1(E)?Je(e,1701671783):E.hp()&&co([408125543],307544935,e)));a:if((E=T4(m,z.policy.Rs))&&n_R(m))c=Otf(z,m),z.X+=c,E-=c,z.Ry+=E,z.S=z.policy.qY?z.S+E:NaN;else{if(z.policy.UT){if(e=W=z.v1.sA(g.mm(m),1),z.S>=0&&m.info.type!==6){if(z.policy.qY&&isNaN(z.qD)){g.hr(new g.vR("Missing duration while processing previous chunk", +m.info.YQ()));z.v1.isOffline()&&!z.policy.Vy||ppb(z,m,e);yW(z,"m");break a}var l=W-z.S,w=l-z.X,q=m.info.Y3,d=z.Qx?z.Qx.Y3:-1,I=z.nh,O=z.qD,G=z.policy.ow&&l>z.policy.ow,n=Math.abs(w)>10,C=Math.abs(z.S-e)<1E-7;if(Math.abs(w)>1E-4){z.h6+=1;var K=(T=z.U)==null?void 0:HJ(T);T={audio:""+ +z.SI(),sq:q.toFixed(),sliceStart:W,lastSq:d.toFixed(),lastSliceStart:I,lastSliceDuration:O,totalDrift:(l*1E3).toFixed(),segDrift:(w*1E3).toFixed(),skipRewrite:""+ +(G||n)};if(K==null?0:K.length)T.adCpn=K[0];z.v1.handleError("qoe.avsync", +T);z.ND=q}G||n||C||(e=z.S);T=Otf(z,m,W);E-=T;z.X=l+T;z.policy.S&&(w&&!C||T)&&(l=(c=z.U)==null?void 0:HJ(c),z.v1.ph("discontinuityRewrite",{adCpn:(l==null?0:l.length)?l.join("."):"",itag:m.info.K.info.itag,sq:m.info.Y3,originalStartTime:W,rewrittenStartTime:e,startTimeAdjustment:e-W,segDrift:(w*1E3).toFixed(),originalDuration:E+T,rewrittenDuration:E,durationAdjustment:T}))}}else e=isNaN(z.S)?m.info.startTime:z.S;ppb(z,m,e)&&(z.Ry+=E,z.S=e+E,z.policy.td&&z.h6>=z.policy.td&&(z.h6=0,z.v1.jc({resetForRewrites:"count"})))}z.Qx= +m.info;z.qD=eh(m);m.S>=0&&(z.nh=m.S);if(Z&&z.U){Z=yGq(z,!0);he(m.info,Z);z.K&&he(z.K.info,Z);J=g.y(J);for(c=J.next();!c.done;c=J.next())c=c.value,T=void 0,z.policy.Y&&c.Y3!==((T=z.U)==null?void 0:T.BK)||he(c,Z);(m.info.Z||z.K&&z.K.info.Z)&&m.info.type!==6||(z.fh=Z,z.policy.O2?(J=NKj(z.U),z.v1.Iv(z.Y,Z,J)):(J=z.v1,J.E2.isManifestless&&G4b(J,Z,null,!!z.Y.info.video)),z.policy.oW||Xp1(z))}}wps(z,m);z.timestampOffset&&N7b(m,z.timestampOffset)}; +GG=function(z,J){if(J.info.Z){z.O2=J.info;if(z.U){var m=z.U,e=yGq(z,!1);m=NKj(m);z.v1.Iv(z.Y,e,m);z.fh||z.policy.oW||Xp1(z);z.fh=null}Nn(z)}z.V&&UxR(z.V,J);if(e=z.bJ())if(e=g.JG(e,J,z.policy.zJ,z.policy.o1)){z.T.pop();z.T.push(e);return}z.T.push(J)}; +NKj=function(z){if(z.r6()){var J=z.data["Stitched-Video-Id"]?z.data["Stitched-Video-Id"].split(",").slice(0,-1):[],m=HJ(z),e=[];if(z.data["Stitched-Video-Duration-Us"])for(var T=g.y(z.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),E=T.next();!E.done;E=T.next())e.push((Number(E.value)||0)/1E6);T=[];if(z.data["Stitched-Video-Start-Frame-Index"]){E=g.y(z.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var Z=E.next();!Z.done;Z=E.next())T.push(Number(Z.value)||0)}T=[]; +if(z.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(E=g.y(z.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),Z=E.next();!Z.done;Z=E.next())T.push((Number(Z.value)||0)/1E6);z=new Qn1(J,m,e,T,g.Gkf(z),g.XQj(z))}else z=null;return z}; +Nn=function(z){z.K=null;z.Tf=-1;z.B=0;z.U=null;z.x3=NaN;z.Ry=0;z.fh=null}; +yW=function(z,J){J={rst4disc:J,cd:z.X.toFixed(3),sq:z.Qx?z.Qx.Y3:-1};z.S=NaN;z.X=0;z.ND=-1;z.Qx=null;z.nh=NaN;z.qD=NaN;z.Lh=null;z.v1.ph("mdstm",J)}; +wps=function(z,J){if(z.Y.info.Nx){if(J.info.K.info.hp()){var m=new eF(J.C1());if(EI(m,[408125543,374648427,174,28032,25152,20533,18402])){var e=i0(m,!0);m=e!==16?null:qx(m,e)}else m=null;e="webm"}else J.info.B=kmR(J.C1()),m=Llu(J.info.B),e="cenc";m&&m.length&&(m=new wr(m,e),z.policy.Z6&&g.z1(J.info.K.info)&&(e=DOf(J.C1()))&&(m.T=e),m.hp=J.info.K.info.hp(),J.T&&J.T.cryptoPeriodIndex&&(m.cryptoPeriodIndex=J.T.cryptoPeriodIndex),J.T&&J.T.T&&(m.K=J.T.T),z.v1.Td(m))}}; +Xp1=function(z){var J=z.U,m=y7u(J);m&&(m.startSecs+=z.x3,z.v1.oZ(z.Y,m,J.BK,J.r6()))}; +yGq=function(z,J){var m,e=z.U;if(m=y7u(e))m.startSecs+=z.x3;return new ba(e.BK,z.x3,J?e.Sd:z.Ry,e.ingestionTime,"sq/"+e.BK,void 0,void 0,J,m)}; +ppb=function(z,J,m){if(!yoq(J,m))return J=jF(J.info),J.smst="1",z.v1.handleError("fmt.unparseable",J||{},1),!1;isNaN(z.x3)&&(z.x3=m);return!0}; +Otf=function(z,J,m){var e=0;if(J.info.K.info.hp()&&!n_R(J))return 0;if(z.wb&&!z.SI()){var T=0;m&&g.z1(J.info.K.info)?T=m-z.S:J.info.K.info.hp()&&(T=z.X);var E=J.info.Y3;m=T4(J,z.policy.Rs);var Z=z.wb;var c=Z.ND;Z=Z.X;var W=Math.abs(Z-T)>.02;if((E===c||E>c&&E>z.ND)&&W){e=Math.max(.95,Math.min(1.05,(m-(Z-T))/m));if(g.z1(J.info.K.info))COR(J.C1(),e);else if(J.info.K.info.hp()&&(E=T-Z,!g.z1(J.info.K.info)&&(J.info.K.info.hp(),e=new eF(J.C1()),c=J.Z?e:new eF(new DataView(J.info.K.K.buffer)),T4(J,!0)))){var l= +E*1E3,w=In(c);c=e.pos;e.pos=0;if(e.K.getUint8(e.pos)===160||OI(e))if(Fc(e,160))if(i0(e,!0),Fc(e,155)){if(E=e.pos,W=i0(e,!0),e.pos=E,l=l*1E9/w,w=Wo(e),l=w+Math.max(-w*.7,Math.min(w,l)),l=Math.sign(l)*Math.floor(Math.abs(l)),!(Math.ceil(Math.log(l)/Math.log(2)/8)>W)){e.pos=E+1;for(E=W-1;E>=0;E--)e.K.setUint8(e.pos+E,l&255),l>>>=8;e.pos=c}}else e.pos=c;else e.pos=c;else e.pos=c}e=T4(J,z.policy.Rs);e=m-e}e&&J.info.K.info.hp()&&z.v1.ph("webmDurationAdjustment",{durationAdjustment:e,videoDrift:T+e,audioDrift:Z})}return e}; +I7u=function(z){return z.info.K.Sx()&&z.info.Y3===z.info.K.index.eO()}; +nC=function(z,J){J=(J=J===void 0?0:J)?Math.round(z.timestampOffset*J)/J:z.timestampOffset;z.Y.U&&J&&(J+=z.Y.U.K);return J+z.getDuration()}; +nQz=function(z,J){J<0||(z.T.forEach(function(m){N7b(m,J)}),z.timestampOffset=J)}; +jw=function(z,J,m,e,T){m3.call(this,m,T);var E=this;this.policy=z;this.formatId=J;this.I1=e;this.lastError=null;this.kZ=function(){E.mF()||(E.I1.jo.has(E.formatId)?(E.isComplete()||E.K.start(),bo(E.I1,E.formatId)&&E.BC(2),E.I1.Z2(E.formatId)&&(kvb(E.I1,E.formatId)?E.f1(4):(E.lastError="net.closed",E.f1(5)))):(E.lastError="player.exception",E.f1(5)))}; +this.K=new g.vl(function(){E.isComplete()||(E.lastError="net.timeout",E.f1(5))},1E3); +this.K.start();HZ1(this.I1,this.formatId,this.kZ);g.Ow(this.kZ)}; +YS=function(z,J,m,e){g.h.call(this);var T=this;this.v1=z;this.policy=J;this.K=m;this.timing=e;this.logger=new g.ZM("dash");this.S=[];this.wb=[];this.T=this.Lq=null;this.Gf=!1;this.h6=this.Lh=0;this.Y=-1;this.Tf=!1;this.x3=-1;this.Qx=null;this.fh=NaN;this.Ry=[];this.So={hn:function(){return T.U}, +hn4:function(){return T.S}, +Bmx:function(){return T.X}}; +this.U=new TKz(z,J,m);this.policy.K&&(this.X=new xl(this.U,this.v1.getManifest(),this.policy,function(E){T.policy.Pt&&T.ph("buftl",E)})); +this.policy.OC&&(this.B=new eQ(this));this.RT=m.info.RT;this.V=this.policy.fh?!1:m.xI();this.isManifestless=m.xI();this.Z=this.V;g.u(this,this.Qx)}; +CC=function(z,J,m){m=m===void 0?!1:m;J&&Xt&&nQz(z.U,J.gK());if(!m){var e;(e=z.X)==null||xS4(e)}z.Lq=J;(J=z.X)!=null&&(J.Lq=z.Lq)}; +af=function(z){var J=z.Lq&&z.Lq.Ps();if(z.policy.Rw){if((z=z.X)==null)z=void 0;else{var m;z=(m=z.S)==null?void 0:m.info}return z||null}return J}; +YYu=function(z){for(var J={},m=0;m4&&z.wb.shift()}; +Csq=function(z,J){if(J.mS()){var m=J.Jb();m=g.y(m);for(var e=m.next();!e.done;e=m.next())e=e.value,z.policy.S&&J instanceof jw&&z.ph("omblss",{s:e.info.YQ()}),Bs(z,J.info.s2,e,J.An())}}; +Bs=function(z,J,m,e){e=e===void 0?0:e;isNaN(z.fh)||(z.ph("aswm",{sq:J[0].Y3,id:J[0].K.info.itag,xtag:J[0].K.info.K,ep:Date.now()-z.fh}),z.fh=NaN);switch(m.info.type){case 1:case 2:a7q(z,m);break;case 4:var T=m.info.K,E=T.yg(m),Z;((Z=z.T)==null?0:Z.type===4)&&Jos(m.info,z.T)&&(z.T=T.EK(z.T).pop());m=g.y(E);for(T=m.next();!T.done;T=m.next())Bs(z,J,T.value,e);break;case 3:m.info.K.info.video?(T=z.timing,T.wb||(T.wb=(0,g.b5)(),S2("fvb_r",T.wb,T.K))):(T=z.timing,T.Y||(T.Y=(0,g.b5)(),S2("fab_r",T.Y,T.K))); +l7u(z.U,J,m,e);z.policy.K&&Kms(z);break;case 6:l7u(z.U,J,m,e),z.T=m.info}}; +a7q=function(z,J){if(J.info.type===1)if(J.info.K.info.video){var m=z.timing;m.Qx||(m.Qx=(0,g.b5)(),S2("vis_r",m.Qx,m.K))}else m=z.timing,m.X||(m.X=(0,g.b5)(),S2("ais_r",m.X,m.K));itj(z.U,J);z=z.v1;z.videoTrack.K.bC()&&z.audioTrack.K.bC()&&z.policy.K&&!z.E2.Cq&&(J=z.audioTrack.getDuration(),m=z.videoTrack.getDuration(),Math.abs(J-m)>1&&z.ph("trBug",{af:""+g.m9(z.audioTrack.K.info,!1),vf:""+g.m9(z.videoTrack.K.info,!1),a:""+J,v:""+m}))}; +kl=function(z){return EQb(z.U)}; +Kms=function(z){z.S.length?z.T=g.kO(g.kO(z.S).info.s2):z.U.T.length?z.T=z.U.bJ().info:z.T=af(z)}; +SQ=function(z,J){var m={rE:[],mR:[]},e;if((z=z.X)==null)z=void 0;else{gmu(z,z.rE,"og");DSf(z,J);gmu(z,z.rE,"trim");var T=$Sq(z);J=T.rE;T=T.Yl;for(var E=[],Z=0;Z0){var d=Wz(q,W);d>=0&&(w=(q.end(d)-W+.1)*1E3)}E.push({formatId:g.m9(c.info.K.info,z.E2.Cq), +xx:c.info.xx,sequenceNumber:c.info.Y3+z.U,rP:l,Vt:c.info.S,Ym:w})}z={rE:J,mR:E}}return(e=z)!=null?e:m}; +Vi=function(z,J,m){m=m===void 0?!1:m;if(z.Lq){var e=z.Lq.eC(),T=w7(e,J),E=NaN,Z=af(z);Z&&(E=w7(e,Z.K.index.getStartTime(Z.Y3)));if(T===E&&z.T&&z.T.S&&BKq(fC(z),0))return J}z=SYz(z,J,m);return z>=0?z:NaN}; +tp=function(z,J,m){z.K.bC();var e=SYz(z,J);if(e>=0)return e;var T;(T=z.X)==null||bQf(T,J,m);m=Math;e=m.min;T=z.U;if(T.V)if(T=T.V,T.Db&&T.Db.type===3)T=T.Db.startTime;else if(T.S>0){var E=T.K.index;E=g.cu(E.offsets.subarray(0,E.count),T.S*T.chunkSize);T=T.K.index.getStartTime(E>=0?E:Math.max(0,-E-2))}else T=0;else T=Infinity;J=e.call(m,J,T);if(z.policy.T){var Z,c;m=(Z=z.v1.wW())==null?void 0:(c=Ap(Z,J))==null?void 0:c.clipId;z.T=z.K.ZJ(J,void 0,m).s2[0]}else z.T=z.policy.fh?null:z.K.ZJ(J).s2[0];DY(z)&& +(z.Lq&&z.Lq.abort(),z.policy.UM&&(Z=z.X)!=null&&(Z.S=void 0));z.h6=0;return z.T?z.T.startTime:J}; +AhR=function(z){z.V=!0;z.Z=!0;z.Y=-1;tp(z,Infinity)}; +bC=function(z){for(var J=0,m=g.y(z.S),e=m.next();!e.done;e=m.next())J+=e9q(e.value.info);return J+=qYb(z.U)}; +gr=function(z,J){J=J===void 0?!1:J;var m=z.v1.getCurrentTime(),e=z.U.bJ(),T=(e==null?void 0:e.info.Y)||0;z.policy.hJ&&(e==null?0:e.info.K.xI())&&!e.info.Z&&(T=e.info.U);if(z.policy.T&&e&&e.info.clipId){var E,Z=(((E=z.v1.wW())==null?void 0:Mv(E,e.info.clipId))||0)/1E3;T+=Z}if(!z.Lq)return z.policy.K&&J&&!isNaN(m)&&e?T-m:0;if((E=af(z))&&$S(z,E))return E.Y;Z=z.Lq.eC(!0);if(J&&e)return E=0,z.policy.K&&(E=d7(Z,T+.02)),E+T-m;T=d7(Z,m);z.policy.v2&&E&&(J=Wz(Z,m),Z=Wz(Z,E.U-.02),J===Z&&(m=E.Y-m,z.policy.S&& +m>T+.02&&z.ph("abh",{bh:T,bhtls:m}),T=Math.max(T,m)));return T}; +f7j=function(z){var J=af(z);return J?J.Y-z.v1.getCurrentTime():0}; +Ddb=function(z,J){if(z.S.length){if(z.S[0].info.s2[0].startTime<=J)return;u6(z)}for(var m=z.U,e=m.T.length-1;e>=0;e--)m.T[e].info.startTime>J&&m.T.pop();Kms(z);z.T&&J=0;Z--){var c=T.T[Z];c.info.Y3>=J&&(T.T.pop(),T.S-=T4(c,T.policy.Rs),E=c.info)}E&&(T.Z=T.T.length>0?T.T[T.T.length-1].info:T.Lh,T.T.length!==0||T.Z||yW(T,"r"));T.v1.ph("mdstm",{rollbk:1,itag:E?E.K.info.itag:"",popped:E?E.Y3:-1,sq:J,lastslc:T.Z?T.Z.Y3:-1,lastfraget:T.S.toFixed(3)});if(z.policy.K)return z.T=null,!0;e>m?tp(z,e):z.T=z.K.cN(J-1,!1).s2[0]}catch(W){return J=Dk(W),J.details.reason="rollbkerr", +z.v1.handleError(J.errorCode,J.details,J.severity),!1}return!0}; +A6=function(z,J){var m;for(m=0;m0?m||J.Y3>=z.x3:m}; +jQ=function(z){var J;return DY(z)||$S(z,(J=z.U.bJ())==null?void 0:J.info)}; +fC=function(z){var J=[],m=af(z);m&&J.push(m);J=g.mY(J,z.U.uR());m=g.y(z.S);for(var e=m.next();!e.done;e=m.next()){e=e.value;for(var T=g.y(e.info.s2),E=T.next(),Z={};!E.done;Z={Rr:void 0},E=T.next())Z.Rr=E.value,e.lN&&(J=g.cU(J,function(c){return function(W){return!Jos(W,c.Rr)}}(Z))),(Mx(Z.Rr)||Z.Rr.type===4)&&J.push(Z.Rr)}z.T&&!UOu(z.T,g.kO(J),z.T.K.Sx())&&J.push(z.T); +return J}; +BKq=function(z,J){if(!z.length)return!1;for(J+=1;J=J){J=E;break a}}J=T}return J<0?NaN:BKq(z,m?J:0)?z[J].startTime:NaN}; +h6=function(z){return!(!z.T||z.T.K===z.K)}; +btb=function(z){return h6(z)&&z.K.bC()&&z.T.K.info.RTJ&&e.Y1080&&!z.hd&&(z.Lh=36700160,z.Hd=5242880,z.qD=Math.max(4194304,z.qD),z.hd=!0);J.video.qualityOrdinal>2160&&!z.Ew&&(z.Lh=104857600,z.RT=13107200,z.Ew=!0);g.dv(z.e4.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?J.isEncrypted()&&g.LH()&&g.RQ("samsung")&&(g.RQ("kant")||g.RQ("muse"))&&(z.RT=g.dv(z.e4.experiments,"html5_samsung_kant_limit_max_bitrate")):J.isEncrypted()&&g.LH()&&g.RQ("kant")&&(z.RT=1310720);z.UB!==0&&J.isEncrypted()&& +(z.RT=z.UB);z.Qm!==0&&J.isEncrypted()&&m&&(z.RT=z.Qm);J.RT&&(z.Ef=Math.max(z.LV,Math.min(z.qD,5*J.RT)))}; +U9=function(z){return z.K&&z.Gp&&z.playbackStartPolicy}; +Rf=function(z){return z.T||z.K&&z.qp}; +kS=function(z,J,m,e){z.Gp&&(z.playbackStartPolicy=J,z.q3=m,z.M3=e)}; +Hs=function(z,J,m){m=m===void 0?0:m;return g.dv(z.e4.experiments,J)||m}; +REu=function(z){var J=z===void 0?{}:z;z=J.Nh;var m=J.MW;var e=J.Ou;var T=J.eO;J=J.Uf;this.Nh=z;this.MW=m;this.Ou=e;this.eO=T;this.Uf=J}; +LO4=function(z,J){if(J<0)return!0;var m=z.eO();return J0)return 2;if(J<0)return 1;m=z.eO();return J(0,g.b5)()?0:1}; +QW=function(z,J,m,e,T,E,Z,c,W,l,w,q,d,I){I=I===void 0?null:I;g.h.call(this);var O=this;this.v1=z;this.policy=J;this.videoTrack=m;this.audioTrack=e;this.U=T;this.K=E;this.timing=Z;this.Z=c;this.schedule=W;this.E2=l;this.S=w;this.Ry=q;this.z9=d;this.z7=I;this.fh=!1;this.nu="";this.GE=null;this.bU=NaN;this.Tf=!1;this.T=null;this.fF=this.B=NaN;this.K3=this.Y=0;this.logger=new g.ZM("dash");this.So={Xe:function(G,n){return O.Xe(G,n)}}; +this.policy.mC>0&&(this.nu=g.BK(this.policy.mC));this.policy.Oi&&(this.X=new LC(this.v1,this.policy,this.schedule),g.u(this,this.X))}; +zKE=function(z,J,m){var e=J.T?J.T.K.QH:J.K.QH;var T=z.U,E;(E=!z.policy.LX)||(E=KZ(e.K)===KZ(e.S));E?e=!1:(T=Xc(T,KZ(e.S)),E=6E4*Math.pow(T.U,1.6),(0,g.b5)()=T.U?(T.ph("sdai",{haltrq:E+1,est:T.U}),e=!1):e=T.T!==2;if(!e||!Ka(J.T?J.T.K.QH:J.K.QH,z.policy,z.U,z.v1.hf())||z.v1.isSuspended&&(!Y5(z.schedule)||z.v1.Mz))return!1;if(z.policy.U&&gN>=5)return g.sD(z.v1.qo),!1;if(z.E2.isManifestless){if(J.S.length>0&&J.T&&J.T.Y3===-1||J.S.length>=z.policy.v0||!z.policy.hP&&J.S.length>0&&!z.policy.X.MW)return!1;if(J.V)return!z.E2.isLive||!isNaN(z.bU)}if(AG1(J))return z.logger.debug("Pending request with server-selectable format found"), +!1;if(!J.T){if(!J.K.bC())return!1;tp(J,z.v1.getCurrentTime())}if(kl(J)&&(J.bJ()!==kl(J)||z.v1.isSuspended))return!1;T=(e=z.policy.H2)&&!J.S.length&&gr(J,!0)=z.policy.KH)return!1;e=J.T;if(!e)return!0;e.type===4&&e.K.bC()&&(J.T=g.kO(e.K.EK(e)),e=J.T);if(!e.yC()&&!e.K.BN(e))return!1;E=z.E2.Ol||z.E2.U;if(z.E2.isManifestless&&E){E=J.K.index.eO();var Z=m.K.index.eO(); +E=Math.min(E,Z);if(J.K.index.oz()>0&&E>0&&e.Y3>=E)return J.x3=E,m.x3=E,!1}if(e.K.info.audio&&e.type===4||e.yC())return!1;E=!J.Z&&!m.Z;if(T=!T)T=e.Y,T=!!(m.T&&!$S(m,m.T)&&m.T.YJD4(z,J)?(JD4(z,J),!1):(z=J.Lq)&&z.isLocked()?!1:!0}; +JD4=function(z,J){var m=z.K;m=m.K?m.K.dL:null;if(z.policy.wb&&m)return m.startSecs+m.zt+15;J=PO(z.v1,J);z.policy.GS>0&&(m=((0,g.b5)()-z.v1.f3)/1E3,J=Math.min(J,z.policy.GS+z.policy.US*m));m=z.v1.getCurrentTime()+J;return z.policy.CH&&(J=mAb(z.v1)+z.policy.CH,J=0||J.QH.Dx("defrag")==="1"||J.QH.Dx("otf")==="1"){J=null;break a}T=b0(0,4096)}T=new u0([new gt(5,e.K,T,"createProbeRequestInfo"+e.V,e.Y3)],J.T);T.aF=m;T.K=J.K;J=T}J&&rGu(z,J)}}; +rGu=function(z,J){z.v1.S_(J);var m=e9q(J),e=z.v1.Iz();m={G4:z.schedule,mT:m,VU:YQR(z.Z,m),kV:xY(J.s2[0]),Cn:BJ(J.QH.K),Wn:z.policy.S,mJ:function(Z,c){z.v1.jW(Z,c)}}; +if(z.schedule.T.Y){var T,E;m.aB=(((T=z.videoTrack.K)==null?void 0:T.info.RT)||0)+(((E=z.audioTrack.K)==null?void 0:E.info.RT)||0)}z.GE&&(m.Y3=J.s2[0].Y3,m.bU=J.bU,m.GE=z.GE);e={jR:T7E(J,z.v1.getCurrentTime()),Cu:z.policy.Ks&&Po(J)&&J.s2[0].K.info.video?hcE(z.S):void 0,Aj:z.policy.wb,poToken:z.v1.Qo(),Ww:z.v1.Na(),nu:z.nu,fF:isNaN(z.fF)?null:z.fF,z7:z.z7,z9:z.z9,K3:z.K3,Pf:e};return new hp(z.policy,J,m,z.U,function(Z,c){try{a:{var W=Z.info.s2[0].K,l=W.info.video?z.videoTrack:z.audioTrack;if(!(Z.state>= +2)||Z.isComplete()||Z.mL()||!(!z.v1.J6||z.v1.isSuspended||gr(l)>3)){var w=Qsb(Z,z.policy,z.U);w===1&&(z.Tf=!0);eKb(z,Z,w);if(Z.isComplete()||Z.mF()&&c<3){if(z.policy.S){var q=Z.timing.Kj();q.rst=Z.state;q.strm=Z.xhr.g_();q.cncl=Z.xhr&&Z.qT.U?1:0;z.v1.ph("rqs",q)}Z.Pg&&z.v1.ph("sbwe3",{},!0)}if(!z.mF()&&Z.state>=2){wou(z.timing,Z,W);var d=z.v1;z.fF&&Z.eD&&d&&(z.fF=NaN,z.v1.Xd(Z.eD),z.v1.HZ(),z.v1.ph("cabrUtcSeek",{mediaTimeSeconds:Z.eD}));Z.J_&&z.fF&&Z.J_&&!Z.J_.action&&(z.v1.zq(z.fF),z.fF=NaN,z.v1.ph("cabrUtcSeekFallback", +{targetUtcTimeSeconds:z.fF}));Z.L3&&z.v1.xH(Z.L3);z.policy.yv&&(z.K3=Z.K3);if(Z.state===3){A6(l,Z);Po(Z.info)&&vs(z,l,W,!0);if(z.T){var I=Z.info.LR();I&&z.T.sS(Z.info.s2[0].Y3,W.info.id,I)}z.v1.n1()}else if(Z.isComplete()&&Z.info.s2[0].type===5){if(Z.state!==4)Z.UA()&&z.v1.handleError(Z.KF(),Z.Ln());else{var O=(Z.info.s2[0].K.info.video?z.videoTrack:z.audioTrack).S[0]||null;O&&O instanceof hp&&O.mL()&&O.OQ()}Z.dispose()}else{Z.UA()||Tcu(z,Z);var G;((G=Z.C5)==null?0:G.itagDenylist)&&z.v1.SS(Z.C5.itagDenylist); +if(Z.state===4)E54(z,Z),z.K&&Oaq(z.K,Z.info,z.T);else if(z.policy.Fm&&Z.mS()&&!Z.isComplete()&&!E54(z,Z)&&!Z.UA())break a;Z.UA()&&(Zij(z,Z),isNaN(z.fF)||(z.v1.zq(z.fF),z.fF=NaN));z.policy.l8&&!Z.isComplete()?Fzu(z.v1):z.v1.n1();var n=vQq(Z,z.policy,z.U);eKb(z,Z,n)}}}}}catch(C){c=z.fh?1:0,z.fh=!0,Z=fG(c),c=Dk(C,c),z.v1.handleError(c.errorCode,c.details,c.severity),Z||z.v1.HX()}},e)}; +Tcu=function(z,J){if(J.Kx&&J.state>=2&&J.state!==3){var m=J.xhr.getResponseHeader("X-Response-Itag");if(m){z.logger.debug(function(){return"Applying streamer-selected format "+m}); +var e=jnu(z.S,m),T=J.info.S;T&&(T-=e.EY(),e.S=!0,J.info.s2[0].K.S=!1,Vcs(J,e.GH(T)),s9(z.v1,z.videoTrack,e),oQu(z.videoTrack,e),z.v1.Zr(e.info.video.quality),(T=J.An())&&e.info.lastModified&&e.info.lastModified!==+T&&A6(z.videoTrack,J))}else J.Kx=!1}}; +Zij=function(z,J){var m=J.info.s2[0].K,e=J.KF();if(BJ(m.QH.K)){var T=g.Xd(J.Cc(),3);z.v1.ph("dldbrerr",{em:T||"none"})}T=J.info.s2[0].Y3;var E=VT(z.K,J.info.s2[0].U,T);e==="net.badstatus"&&(z.Y+=1);if(J.canRetry()&&iij(z.v1)){if(!(J.info.QH.T>=z.policy.mQ&&z.T&&J.info.isDecorated()&&e==="net.badstatus"&&z.T.G5(E,T))){T=(m.info.video&&m.QH.T>1||J.dW===410||J.dW===500||J.dW===503)&&!(kp(z.S.Z).size>0)&&!BJ(m.QH.K);E=J.Ln();var Z=m.info.video?z.videoTrack:z.audioTrack;T&&(E.stun="1");z.v1.handleError(e, +E);z.mF()||(T&&(z.logger.debug(function(){return"Stunning format "+m.info.id}),zG(z.S,m)),A6(Z,J),z.v1.n1())}}else Z=1,z.T&&J.info.isDecorated()&&e==="net.badstatus"&&z.T.G5(E,T)&&(Z=0),z.E2.isLive&&J.KF()==="net.badstatus"&&z.Y<=z.policy.Z9*2?(TTu(z.E2),z.E2.Ol||z.E2.isPremiere?Rc(z.v1,0,{i8:"badStatusWorkaround"}):z.E2.U?Rc(z.v1,z.E2.Gf,{i8:"badStatusWorkaround", +sA:!0}):rr(z.v1)):z.v1.handleError(e,J.Ln(),Z)}; +E54=function(z,J){if(z.policy.useUmp&&J.mF())return!1;try{var m=J.info.s2[0].K,e=m.info.video?z.videoTrack:z.audioTrack;if(z.E2.isManifestless&&e){z.Y=0;e.V&&(J.mF(),J.isComplete()||J.mS(),e.V=!1);J.xp()&&z.v1.kz.xA(1,J.xp());var T=J.oz(),E=J.jH();Kt(z.E2,T,E)}if(J.info.kV()&&!V0(J.info))for(var Z=g.y(J.Jb()),c=Z.next();!c.done;c=Z.next())a7q(e,c.value);for(z.v1.getCurrentTime();e.S.length&&e.S[0].state===4;){var W=e.S.shift();Csq(e,W);e.Lh=W.AC()}e.S.length&&Csq(e,e.S[0]);var l=!!kl(e);l&&J instanceof +jw&&(m.info.SI()?EYs(z.timing):Ttu(z.timing));return l}catch(w){J=J.Ln();J.origin="hrhs";a:{z=z.v1;m=w;if(m instanceof Error){J.msg||(J.msg=""+m.message);J.name||(J.name=""+m.name);if(m instanceof g.vR&&m.args)for(e=g.y(Object.entries(m.args)),T=e.next();!T.done;T=e.next())E=g.y(T.value),T=E.next().value,E=E.next().value,J["arg"+T]=""+E;g.hr(m);if(m.level==="WARNING"){z.H1.jc(J);break a}}z.handleError("fmt.unplayable",J,1)}return!1}}; +cDz=function(z){var J=z.videoTrack.K.index;z.GE=new REu({Nh:z.policy.Nh,MW:z.policy.X.MW,Ou:J.oP(),eO:function(){return J.eO()}, +Uf:function(){return J.Uf()}})}; +vs=function(z,J,m,e){var T=z.policy.AK?z.v1.hf():0;m.bC()||m.QJ()||m.S||!Ka(m.QH,z.policy,z.U,T)||m.info.rb==="f"||z.policy.K||(e?(e=z.Z,T=m.info,e=CK4(e,T.video?e.policy.lA:e.policy.xK,T.RT)):e=0,e=m.GH(e),z=rGu(z,e),V0(e)&&KC(J,z),m.S=!0)}; +zg=function(z,J,m,e,T,E,Z,c){g.h.call(this);var W=this;this.v1=z;this.dw=J;this.videoTrack=m;this.audioTrack=e;this.E2=T;this.B=E;this.isAudioOnly=Z;this.V=c;this.T=tc;this.Tf=!1;this.logger=new g.ZM("sabr");this.Z=this.fh=this.Ry=!1;this.videoInfos=this.X=this.B.videoInfos;this.S=this.wb=this.B.K;this.K=new UN(J,E,function(l,w){W.v1.ph(l,w)}); +this.dw.Fj||WzE(this);this.isAudioOnly&&l6q(this,this.E2.K["0"])}; +wZq=function(z,J){var m=[];J=g.y(J);for(var e=J.next();!e.done;e=J.next())m.push(g.m9(e.value,z.E2.Cq));return m}; +l6q=function(z,J,m){J!==z.U&&(z.U&&(z.Tf=!0),z.U=J,z.xg(J,z.videoTrack,m))}; +Oij=function(z,J){z.logger.debug("setConstraint: "+la(J));Rf(z.dw)&&(z.fh=J.reason==="m"||J.reason==="l"?!0:!1);J.reason==="m"?J.isLocked()&&qj1(z,J.K):dA1(z,J)?I6q(z,J.T,J.K):z.videoInfos=z.X;z.T=J}; +dA1=function(z,J){return z.dw.JS&&J.reason==="b"||z.dw.ud&&J.reason==="l"||z.dw.F$?!1:z.dw.JN?!0:J.reason==="l"||J.reason==="b"||J.reason==="o"}; +pZz=function(z,J){return J.isLocked()&&z.K.T||z.T===void 0?!1:J.NL(z.T)}; +yDq=function(z,J){var m,e=(m=z.U)==null?void 0:m.info.video.qualityOrdinal;return z.Tf?!0:z.U?J!==e?!0:!z.K.T||z.dw.cR&&z.K.K===z.U.info.itag?!1:!0:!1}; +qj1=function(z,J){var m=z.K.K;if(m){z.videoInfos=z.X;var e=g.QS(z.videoInfos,function(T){return T.id===m}); +e&&e.video.qualityOrdinal===J?z.videoInfos=[e]:(e=z.videoInfos.map(function(T){return T.id}),z.v1.ph("sabrpf",{pfid:""+m, +vfids:""+e.join(".")}),I6q(z,J,J),Ls(z.K,""))}else I6q(z,J,J)}; +I6q=function(z,J,m){z.videoInfos=z.X;z.videoInfos=g.cU(z.videoInfos,function(e){return e.video.qualityOrdinal>=J&&e.video.qualityOrdinal<=m})}; +WzE=function(z){var J=XoE(z.K,z.V);J&&(z.S=[J])}; +Ncb=function(z,J,m){if(z.dw.Fj){if(z.V){var e=g.cU(z.S,function(T){return T.id===z.V}); +return JH(e,m).includes(J)}e=g.cU(z.S,function(T){var E;return!((E=T.sC)==null||!E.isDefault)}); +if(e.length>0)return JH(e,m).includes(J)}return JH(z.S,m).includes(J)}; +JH=function(z,J){return z.map(function(m){return Bo(g.m9(m,J))})}; +Gtf=function(z){var J;if((J=z.T)==null?0:J.isLocked())return z.videoInfos;var m=kp(z.K);J=g.cU(z.videoInfos,function(e){return e.RT>z.dw.RT?!1:!m.has(e.id)}); +GmR(z.K)&&(J=g.cU(J,function(e){return e.video.width<=854&&e.video.height<=480})); +return J}; +Yjq=function(z,J,m,e){var T=z.E2,E=z.H1.getVideoData(),Z=g.Lr(E),c=z.S$,W=G0({e4:E.W(),H1:z.H1,wi:z.wi,dw:z.dw,f3:z.f3,YY:z.YY,Ow:z.Ow,P9:z.P9,hT:z.hT,isPrefetch:z.isPrefetch,AU:z.AU,sabrLicenseConstraint:E.sabrLicenseConstraint,pQ:z.pQ,rI:z.rI,rV:z.rV,s8:z.s8,zz6:!!c,qh:E.qh}),l=XL(E,z.Pf,z.nextRequestPolicy,z.zp,z.X1,z.bcF,z.UR);e&&m&&(e=l.H9?l.H9.map(function(G){return G.type}):[],m("sabr",{stmctxt:e.join("_"), +unsntctxt:l.e9?l.e9.join("_"):""}));e=z.xO;var w=z.Ut;if(w===void 0&&e===void 0){var q;w=XZj(T.Cq,(q=z.OF)==null?void 0:q.video);var d;e=XZj(T.Cq,(d=z.OF)==null?void 0:d.audio)}if(E.z7)var I=E.z7;E={xX:W,mR:z.mR,xO:e,Ut:w,S$:c,videoPlaybackUstreamerConfig:I,ll:l};z.Ej&&(E.Ej=z.Ej);if(Z&&J){Z=new Map;var O=g.y(T.Qx);for(c=O.next();!c.done;c=O.next())c=c.value,(W=T.h6[uzj(T,c)]||"")?(Z.has(W)||Z.set(W,[]),Z.get(W).push(c)):m&&m("ssap",{nocid4fmt:(c.itag||"")+"_"+(c.lmt||0)+"_"+(c.xtags||"")});T=new Map; +O=g.y(z.rE);for(c=O.next();!c.done;c=O.next())c=c.value,W=c.startTimeMs||0,l=void 0,q=(l=J)==null?void 0:Ap(l,W),l=q.clipId,q=q.YF,l?(T.has(l)||(d=Z.get(l)||[],T.set(l,{clipId:l,rE:[],qE:d})),q!==0&&(c.startTimeMs=W-q),T.get(l).rE.push(c)):m&&(l=void 0,m("ssap",{nocid4range:"1",fmt:((l=c.formatId)==null?void 0:l.itag)||"",st:W.toFixed(3),d:(c.durationMs||0).toFixed(3),timeline:mq(J)}));E.XA=[];T=g.y(T.entries());for(Z=T.next();!Z.done;Z=T.next())Z=g.y(Z.value),Z.next(),Z=Z.next().value,E.XA.push(Z); +if(z.rE.length&&!E.XA.length){m&&m("ssap",{nobfrange:"1",br:n5R(z.rE),timeline:mq(J)});return}z.wr&&(E.wr=z.wr);z.T_&&(E.T_=z.T_)}else E.rE=z.rE,E.qE=T.Qx,Z&&((O=z.rE)==null?void 0:O.length)>0&&!J&&m&&m("ssap",{bldmistlm:"1"});return E}; +XZj=function(z,J){return J?[g.m9(J.info,z)]:[]}; +n5R=function(z){var J="";z=g.y(z);for(var m=z.next();!m.done;m=z.next()){m=m.value;var e=void 0,T=void 0,E=void 0;J+="fmt."+(((e=m.formatId)==null?void 0:e.itag)||"")+"_"+(((T=m.formatId)==null?void 0:T.lmt)||0)+"_"+(((E=m.formatId)==null?void 0:E.xtags)||"")+";st."+(m.startTimeMs||0).toFixed(3)+";d."+(m.durationMs||0).toFixed(3)+";"}return J}; +e_=function(z,J,m){var e=this;this.requestType=z;this.QH=J;this.Dd=m;this.T=null;this.So={oG2:function(){var T;return(T=e.data)==null?void 0:T.isPrefetch}, +X1:function(){var T;return(T=e.data)==null?void 0:T.X1}}}; +zcb=function(z,J,m){J=Ca(z.QH,Cls(z,J,m),J);z.Wv()&&J.set("probe","1");return J}; +Cls=function(z,J,m){z.aF===void 0&&(z.aF=z.QH.aF(J,m));return z.aF}; +a6z=function(z){var J,m;return((J=z.K)==null?void 0:(m=J.xX)==null?void 0:m.OG)||0}; +Kzq=function(z){var J,m;return!!((J=z.K)==null?0:(m=J.xX)==null?0:m.pQ)}; +Bcs=function(z){var J={},m=[],e=[];if(!z.data)return J;for(var T=0;T0;W--)m.push(c)}m.length!==Z?J.error=!0:(E=m.slice(-E),m.length=T,sJ1(J,m,E));break;case 1:sJ1(J,I5,UA1);break;case 0:rDq(J, +J.K&7);m=NC(J,16);T=NC(J,16);(m^T)!==65535&&(J.error=!0);J.output.set(J.data.subarray(J.T,J.T+m),J.S);J.T+=m;J.S+=m;break;default:J.error=!0}z.S>z.output.length&&(z.output=new Uint8Array(z.S*2),z.S=0,z.T=0,z.U=!1,z.K=0,z.register=0)}z.output.length!==z.S&&(z.output=z.output.subarray(0,z.S));return z.error?new Uint8Array(0):z.output}; +sJ1=function(z,J,m){J=QJz(J);m=QJz(m);for(var e=z.data,T=z.output,E=z.S,Z=z.register,c=z.K,W=z.T;;){if(c<15){if(W>e.length){z.error=!0;break}Z|=(e[W+1]<<8)+e[W]<>=7;l<0;)l=J[(Z&1)-l],Z>>=1;else Z>>=l&15;c-=l&15;l>>=4;if(l<256)T[E++]=l;else if(z.register=Z,z.K=c,z.T=W,l>256){Z=pl[l];Z+=NC(z,OC[l]);W=v5f(z,m);c=yM[W];c+=NC(z,RKz[W]);if(JcE&&Zm.length&&(z.error=!0);z.register|=(m[e+1]<<8)+m[e]<=0)return rDq(z,m&15),m>>4;for(rDq(z,7);m<0;)m=J[NC(z,1)-m];return m>>4}; +NC=function(z,J){for(;z.K=z.data.length)return z.error=!0,0;z.register|=z.data[z.T++]<>=J;z.K-=J;return m}; +rDq=function(z,J){z.K-=J;z.register>>=J}; +QJz=function(z){for(var J=[],m=g.y(z),e=m.next();!e.done;e=m.next())e=e.value,J[e]||(J[e]=0),J[e]++;var T=J[0]=0;m=[];var E=0;e=0;for(var Z=1;Z7&&(E+=J[Z]);for(T=1;T>W&1;c=E<<4|Z;if(Z<=7)for(W=1<<7-Z;W--;)e[W<>=7;Z--;){e[W]||(e[W]=-J,J+=2);var l=T&1;T>>=1;W=l-e[W]}e[W]=c}}return e}; +mJE=function(z){var J,m,e,T,E,Z,c;return g.D(function(W){switch(W.K){case 1:if(!("DecompressionStream"in window))return W.return(g.ztj(new g.kt4(z)));J=new DecompressionStream("gzip");m=J.writable.getWriter();m.write(z);m.close();e=J.readable.getReader();T=new GU([]);case 2:return g.S(W,e.read(),5);case 5:E=W.T;Z=E.value;if(c=E.done){W.U2(4);break}T.append(Z);W.U2(2);break;case 4:return W.return(T.cz())}})}; +Gg=function(z,J){this.K=z;this.Qv=J}; +etu=function(z){return yN(yN(IC(function(){return pQ(z.Qv,function(J){return z.Bq(z.K,J)})}),function(){return z.Oa(z.K)}),function(){return z.j_(z.K)})}; +TNq=function(z,J){return etu(new Gg(z,J))}; +Fp1=function(z){Cs.call(this,"onesie");this.Is=z;this.K={};this.S=!0;this.U=null;this.queue=new Hiz(this);this.Z={};this.Y=mPu(function(J,m){var e=this;return function E(){var Z,c,W,l,w,q,d,I,O,G,n,C,K,f,x,V,zE,k,Ez,ij;return wqj(E,function(r){switch(r.K){case 1:g.Cq(r,2);e.Is.Gw();Z=function(t){return function(v){throw{name:t,message:v};}}; +c=J.cz();g.Yu(r,4,5);if(!m){r.U2(7);break}return iqq(r,yN(EtR(e.Is,c,e.iv),Z("DecryptError")).wait(),8);case 8:W=r.T;case 7:if(!e.Is.enableCompression){r.U2(9);break}return iqq(r,yN(TNq((q=W)!=null?q:c,e.Is.W().Xy),Z("DecompressError")).wait(),10);case 10:l=r.T;case 9:w=tv((I=(d=l)!=null?d:W)!=null?I:c,eF4);case 5:g.Bq(r,0,2);if(G=(O=e.Is.W())==null?void 0:O.Qv)((n=W)==null?void 0:n.buffer)===G.exports.memory.buffer&&G.free(W.byteOffset),((C=l)==null?void 0:C.buffer)===G.exports.memory.buffer&&G.free(l.byteOffset); +g.fq(r,6);break;case 4:throw f=K=g.Kq(r),new Sl("onesie.response.parse",{name:(k=f.name)!=null?k:"unknown",message:(Ez=f.message)!=null?Ez:"unknown",wasm:((x=e.Is.W())==null?0:x.Qv)?((V=e.Is.W())==null?0:(zE=V.Qv)==null?0:zE.zz)?"1js":"1":"0",enc:e.S,gz:e.Is.enableCompression,webcrypto:!!Yr()});case 6:return Zrb(w),ij=g.fc(w.body),r.return(ij);case 2:g.Bq(r),g.fq(r,0)}})}()})}; +ir4=function(z){var J=z.queue;J.K.length&&J.K[0].isEncrypted&&!J.T&&(J.K.length=0);J=g.y(Object.keys(z.K));for(var m=J.next();!m.done;m=J.next()){m=m.value;var e=z.K[m];if(!e.Ea){var T=z.queue;T.K.push({videoId:e.videoId,formatId:m,isEncrypted:!1});T.T||dI(T)}}}; +Wpj=function(z,J){var m=J.getLength(),e=!1;switch(z.U){case 0:z.Is.C("html5_future_onesie_ump_handler_on_player_response")?yN(pQ(z.Y(J,z.S),function(T){ccq(z.Is,T)}),function(T){z.Is.Ii(T)}):z.Gw(J,z.S).then(function(T){ccq(z.Is,T)},function(T){z.Is.Ii(T)}); +break;case 2:z.Yr("ormk");J=J.cz();z.queue.decrypt(J);break;default:e=!0}z.Is.ex&&z.Is.ph("ombup","id.11;pt."+z.U+";len."+m+(e?";ignored.1":""));z.U=null}; +Zrb=function(z){if(z.tO!==1)throw new Sl("onesie.response.badproxystatus",{st:z.tO,webcrypto:!!Yr(),textencoder:!!g.VR.TextEncoder});if(z.n_!==200)throw new Sl("onesie.response.badstatus",{st:z.n_});}; +lfu=function(z){return new Promise(function(J){setTimeout(J,z)})}; +w$E=function(z,J){var m=z.W();m=z.yv&&m.C("html5_onesie_preload_use_content_owner");var e=z.iP,T=zt(J.yx.experiments,"debug_bandaid_hostname");if(T)J=l3(J,T);else if((m===void 0?0:m)&&(e==null?0:e.url)&&!J.T){var E=KZ(new g.CZ(e.url));J=l3(J,E)}else J=(E=J.K.get(0))==null?void 0:E.location.clone();if(J&&z.videoId){E=il(z.videoId);z=[];if(E)for(E=g.y(E),m=E.next();!m.done;m=E.next())z.push(m.value.toString(16).padStart(2,"0"));J.set("id",z.join(""));return J}}; +ql1=function(z,J,m){m=m===void 0?0:m;var e,T;return g.D(function(E){if(E.K==1)return e=[],e.push(J.load()),m>0&&e.push(lfu(m)),g.S(E,Promise.race(e),2);T=w$E(z,J);return E.return(T)})}; +dJ4=function(z,J,m,e){e=e===void 0?!1:e;z.set("cpn",J.clientPlaybackNonce);z.set("opr","1");var T=J.W();z.set("por","1");Yr()||z.set("onem","1");J.startSeconds>0&&z.set("osts",""+J.startSeconds);e||(T.C("html5_onesie_disable_partial_segments")&&z.set("oses","1"),J=T.C("html5_gapless_onesie_no_media_bytes")&&TF(J)&&J.yv,m&&!J?(J=m.audio,z.set("pvi",m.video.join(",")),T.C("html5_onesie_disable_audio_bytes")||z.set("pai",J.join(",")),rK||z.set("osh","1")):(z.set("oad","0"),z.set("ovd","0"),z.set("oaad", +"0"),z.set("oavd","0")))}; +If4=function(z,J,m,e,T){T=T===void 0?!1:T;var E="https://youtubei.googleapis.com/youtubei/"+J.Gp.innertubeApiVersion+"/player",Z=[{name:"Content-Type",value:"application/json"}];e&&Z.push({name:"Authorization",value:"Bearer "+e});Z.push({name:"User-Agent",value:g.bF()});g.Qt("EOM_VISITOR_DATA")?Z.push({name:"X-Goog-EOM-Visitor-Id",value:g.Qt("EOM_VISITOR_DATA")}):(m=m.visitorData||g.Qt("VISITOR_DATA"))&&Z.push({name:"X-Goog-Visitor-Id",value:m});(m=g.Qt("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&Z.push({name:"X-YouTube-Lava-Device-Context", +value:m});(J=zt(J.experiments,"debug_sherlog_username"))&&Z.push({name:"X-Youtube-Sherlog-Username",value:J});z=$7(JSON.stringify(z));return{url:E,PD:Z,postBody:z,Zcb:T,yS:T}}; +p$4=function(z,J,m,e,T,E){var Z=g.sO(z,mQb,z.yS?void 0:m.Qv),c={encryptedClientKey:J.K.encryptedClientKey,ea:!0,xm:!0,Fc:Orj(m,!!z.yS),Mn:m.experiments.j4("html5_use_jsonformatter_to_parse_player_response")};if(z.yS)c.Ic6=Z;else{z=J.encrypt(Z);var W;if(((W=m.Qv)==null?void 0:W.exports.memory.buffer)===Z.buffer&&z.byteOffset!==Z.byteOffset){var l;(l=m.Qv)==null||l.free(Z.byteOffset)}var w;z=((w=m.Qv)==null?void 0:w.Ga(z))||z;Z=c.Dk=z;(0,g.b5)();Z=t5f(new PEq(J.K.S),Z,J.iv);c.Wq=Z;c.iv=J.iv}J=e.getVideoData(); +m=G0({e4:m,H1:e,wi:J.startSeconds*1E3});T={Gy:c,xX:m,onesieUstreamerConfig:T,vt:E,ll:XL(J)};J.reloadPlaybackParams&&(T.reloadPlaybackParams=J.reloadPlaybackParams);return T}; +ycu=function(z,J,m){var e,T,E;return g.D(function(Z){if(Z.K==1)return e=g.sO(J,mQb),g.S(Z,MRq(m,e),2);if(Z.K!=3)return T=Z.T,g.S(Z,ADq(m,T),3);E=Z.T;return Z.return({Dk:T,encryptedClientKey:m.K.encryptedClientKey,iv:m.iv,Wq:E,ea:!0,xm:!0,Fc:Orj(z,!!J.yS),Mn:z.experiments.j4("html5_use_jsonformatter_to_parse_player_response")})})}; +NNz=function(z,J,m,e,T,E){var Z,c,W,l;return g.D(function(w){if(w.K==1)return g.S(w,ycu(m,z,J),2);Z=w.T;c=e.getVideoData();W=G0({e4:m,H1:e,wi:c.startSeconds*1E3});l={Gy:Z,xX:W,onesieUstreamerConfig:T,vt:E,ll:XL(c)};c.reloadPlaybackParams&&(l.reloadPlaybackParams=c.reloadPlaybackParams);return w.return(l)})}; +Orj=function(z,J){z=ni(z.schedule,!0);J=J||!!Yr()&&z>1572864;return"DecompressionStream"in window||!J}; +hH=function(z,J){g.h.call(this);var m=this;this.H1=z;this.playerRequest=J;this.logger=new g.ZM("onesie");this.xhr=null;this.state=1;this.Xm=new r7;this.JM=!1;this.playerResponse="";this.XU=new Ja(this);this.a$=new Fp1(this);this.DN="";this.kq=this.l2=!1;this.hH="";this.enableCompression=this.lB=this.PC=!1;this.g5=[];this.C9=this.BK=-1;this.yx=this.H1.W();this.videoData=this.H1.getVideoData();this.ex=this.yx.AZ();this.MU=this.yx.Z9;this.lS=new c4(this.MU.K,this.yx.Xy,Sj4(this.yx));this.Rx=this.yx.C("html5_onesie_check_timeout"); +this.tv=new g.vl(this.zN,500,this);this.Qh=new g.vl(this.yk,1E4,this);this.V1=new g.vl(function(){if(!m.isComplete()){var e=j_(m);m.Ii(new Sl("net.timeout",e))}},1E3); +this.vp=new g.vl(this.JZb,2E3,this);this.yJ=this.H1.Na();this.tj=this.C("html5_onesie_wait_for_media_availability");g.u(this.videoData,this);g.u(this,this.tv);g.u(this,this.Qh);g.u(this,this.vp);g.u(this,this.lS);z=mz();rK&&z&&(this.Lc=new Map);this.Lo=new Map;this.TF=new Map;this.Bp=new Map;this.fP=new Map}; +qC=function(z,J){var m;return(m=z.Lc)==null?void 0:m.get(J)}; +X$u=function(z,J,m){var e;return g.D(function(T){if(T.K==1)return z.Yr("oprd_s"),Gxq(z)?g.S(T,o5z(z.lS,J,m),3):(e=z.lS.decrypt(J,m),T.U2(2));T.K!=2&&(e=T.T);z.Yr("oprd_c");return T.return(e)})}; +EtR=function(z,J,m){z.Yr("oprd_s");J=xAu(z.lS).encrypt(J,m);pQ(J,function(){z.Yr("oprd_c")}); +return J}; +ntu=function(z){return z.C("html5_onesie_host_probing")||z.ex?rK:!1}; +ccq=function(z,J){z.Yr("oprr");z.playerResponse=J;z.lB||(z.tj=!1);u3(z)}; +u3=function(z){if(!z.playerResponse)return!1;if(z.PC)return!0;var J=z.videoData.C("html5_onesie_audio_only_playback")&&EH(z.videoData);if(z.Lc&&z.tj){if(!z.Lc.has(z.DN))return!1;var m=z.Lc.get(z.DN),e;if(e=m){e=!1;for(var T=g.y(m.jo.keys()),E=T.next();!E.done;E=T.next())if(E=m.jo.get(E.value))for(var Z=g.y(E.dV),c=Z.next();!c.done;c=Z.next())c.value.YG>0&&(E.SI?e=!0:J=!0);e=!(J&&e)}if(e)return!1}z.Yr("ofr");z.Xm.resolve(z.playerResponse);if(!z.Rx){var W;(W=z.V1)==null||W.start();z.Qh.start()}return z.PC= +!0}; +Chs=function(z){if(z.Lc&&!z.C("html5_onesie_media_capabilities")){z.Yr("ogsf_s");var J=Dgq(z.H1.getVideoData(),function(e,T){z.ph(e,T)}),m=Ylz(z.H1); +J.video=XJu(m,J.video);z.Yr("ogsf_c");if(J.video.length)return J;z.ph("ombspf","l."+m.T+";u."+m.K+";o."+m.S+";r."+m.reason)}}; +Gxq=function(z,J){return z.C("html5_onesie_sync_request_encryption")||(J==null?0:J.yS)||g.rc(z.yx)&&z.C("html5_embed_onesie_use_sync_encryption")?!1:!!Yr()}; +j_=function(z){if(!z.aj)return{};var J=z.aj.Kj(),m;J.d=(m=z.aj.x3)==null?void 0:m.G7();J.shost=z.Ek;J.ty="o";return J}; +afq=function(z,J){var m,e;(e=(z=(m=z.Lc)==null?void 0:m.get(J))==null)||(J=z.S?!1:z.S=!0,e=!J);return!e}; +Kpu=function(z,J,m,e,T,E,Z,c,W,l,w){g.h.call(this);var q=this;this.H1=z;this.v1=J;this.policy=m;this.audioTrack=e;this.videoTrack=T;this.E2=E;this.G4=Z;this.ND=c;this.S=W;this.timing=l;this.B=w;this.K=[];this.V={};this.Lh=this.qD=!1;this.zp=new Set;this.Z=this.h6=this.Ry=this.hT=0;this.U=null;this.Tf={rE:[],mR:[]};this.wb={rE:[],mR:[]};this.Y=null;this.Gf=[];this.So={qUi:function(){return q.K}, +pvD:function(){return q.V}, +v$W:function(){q.K.length=0}, +Utz:function(){return q.zp}, +Pnn:function(){return q.Ry}, +R6i:function(d){q.Ry=d}, +Krf:function(d){q.Z=d}, +YL:function(d){q.Y=d}}; +this.videoData=this.H1.getVideoData();this.policy.Oi&&(this.Qx=new LC(this.v1,this.policy,this.G4),g.u(this,this.Qx))}; +ff4=function(z,J){J=J===void 0?!1:J;if(BNE(z,J)){z.policy.V&&z.v1.ph("sabrcrq",{create:1});var m=new e_(0,z.E2.X,z);z.policy.Pm>0&&z.Z++;J=Slb(z,m,J);z.K.push(J);var e;(e=z.Qx)==null||k4u(e,z.E2.X)}}; +gtR=function(z,J){var m=DJz(z);if(z.policy.jY){var e=z.Tf;var T=z.wb}else e=VM(z,z.audioTrack),T=VM(z,z.videoTrack);var E=[].concat(g.X(e.rE),g.X(T.rE));z.policy.tZ&&z.Y&&E.push.apply(E,g.X(z.Gf));var Z=[].concat(g.X(e.mR),g.X(T.mR)),c=z.v1.Iz(),W,l,w=z.H1,q=z.E2,d=z.T,I=z.zp,O=z.policy,G=z.v1.f3,n=mAb(z.v1)*1E3,C=(W=z.x3)==null?void 0:W.Ow;W=(l=z.x3)==null?void 0:l.P9;var K;l=Number((K=z.S.U)==null?void 0:K.info.itag)||0;var f;K=Number((f=z.S.Y)==null?void 0:f.info.itag)||0;J={H1:w,E2:q,rE:E,mR:Z, +wi:m,nextRequestPolicy:d,zp:I,dw:O,f3:G,YY:n,Ow:C,P9:W,hT:z.hT,isPrefetch:J||z.v1.isSuspended,wr:l,T_:K,Pf:c,UR:z.H1.UY()};m=z.v1.Qo();E=il(m);m&&(J.X1=E);if(m=z.H1.au())J.pQ=m*1E3;var x;m=z.S;E=m.Ry;if((m.dw.T&&m.dw.Se||((x=m.dw)==null?0:x.K&&x.qp))&&!E)for(x=g.y(m.S),Z=x.next();!Z.done;Z=x.next())if(Z.value.sC){E=!0;break}x=Rf(m.dw)&&!E?[]:wZq(m,m.S);J.xO=x;x=z.S;Rf(x.dw)&&!x.fh?x=[]:(m=Gtf(x),m.length===0&&(m=x.X),x=wZq(x,m));J.Ut=x;J.S$=z.policy.tZ&&z.Y?[z.Y]:void 0;z.policy.tq&&(J.rV=brb(z.v1, +z.audioTrack),J.s8=brb(z.v1,z.videoTrack));if(z.policy.Z){e=$Ju(z,e.rE,T.rE);var V;if(T=(V=z.U)==null?void 0:V.nP(e))J.Ej=T}z.policy.Gf&&z.K.length>0&&z.K[0].pK()&&(J.bcF=z.K[0].XB());return J}; +DJz=function(z){var J,m=z.policy.Y&&((J=z.v1)==null?void 0:J.CD());J=z.v1.getCurrentTime()||0;J=xJE(z,J);var e=z.v1.Kr()||0;J+=e;e=Sg(z.videoData)||g.BH(z.videoData);var T=0;m?(e&&(T=Number.MAX_SAFE_INTEGER),z.videoData.Qx&&(T=Math.ceil(z.videoData.Gf*1E3))):T=Math.ceil(J*1E3);return Math.min(Number.MAX_SAFE_INTEGER,T)}; +xJE=function(z,J){if(z.v1.isSeeking())return J;var m=z.H1.Vv();if(!m)return J;m=m.G2();if(m.length===0||l1(m,J))return J;if(!VW(z.videoTrack,J)&&!VW(z.audioTrack,J))return z.v1.ph("sundrn",{b:0,lt:J}),J;for(var e=J,T=Infinity,E=0;EJ)){var Z=J-m.end(E);Z=20)?(z.v1.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),J):e}; +$Ju=function(z,J,m){var e=z.v1.getCurrentTime()||0;J=M8z(z,J,e);z=M8z(z,m,e);return Math.min(J,z)}; +M8z=function(z,J,m){z=z.v1.Kr()||0;J=g.y(J);for(var e=J.next();!e.done;e=J.next()){var T=e.value;e=T.startTimeMs?T.startTimeMs/1E3-z:0;T=e+(T.durationMs?T.durationMs/1E3:0);if(e<=m&&m<=T)return T}return m}; +BNE=function(z,J){if(z.policy.Pm>0){var m=Math.floor((0,g.b5)()/1E4);if(m===z.h6){if(z.Z>=z.policy.Pm){if(z.Z===z.policy.Pm){var e={reason:"toomanyrequests"};e.limit=z.Z;z.v1.handleError("player.exception",e);z.Z+=1}return!1}}else z.h6=m,z.Z=0}J=!J&&!Y5(z.G4)&&!z.policy.Xy;if(z.v1.isSuspended&&(z.v1.Mz||J))return!1;if(z.fh&&(0,g.b5)()0&&(!z.policy.Gf||z.K.length!==1||!z.K[0].pK()))return!1;var T;if((T=z.E2.X)==null||!Ka(T,z.policy,z.V,z.v1.hf()))return!1; +T=z.policy.Qe&&z.policy.T&&z.v1.wW();if(jQ(z.audioTrack)&&jQ(z.videoTrack)&&!T)return!1;if(z.policy.T&&z.X&&!z.v1.wW())return z.fq("ssap",{pauseontlm:1}),!1;if(P4(z,z.audioTrack)&&P4(z,z.videoTrack))return z.policy.S&&z.v1.ph("sabrHeap",{a:""+bC(z.audioTrack),v:""+bC(z.videoTrack)}),!1;if(T=z.policy.Z)T=!1,z.B.T===2?T=!0:z.B.T===3&&(DJz(z),z.v1.Kr(),J=$Ju(z,SQ(z.audioTrack,z.v1.isSeeking()).rE,SQ(z.videoTrack,z.v1.isSeeking()).rE),m=z.B,J>=m.Z?(m.ph("sdai",{haltrq:J,est:m.Z}),J=!0):J=!1,J&&(T=!0)), +T&&z.policy.V&&z.v1.ph("sabrcrq",{waitad:1});if(T)return!1;z.policy.jY&&(z.Tf=VM(z,z.audioTrack),z.wb=VM(z,z.videoTrack));if(!z.T)return z.policy.V&&z.v1.ph("sabrcrq",{nopolicy:1}),!0;if(z.H1.au())return z.policy.V&&z.v1.ph("sabrcrq",{utc:1}),!0;if(z.S.Z)return z.policy.V&&z.v1.ph("sabrcrq",{audio:1}),!0;if(!z.T.targetAudioReadaheadMs||!z.T.targetVideoReadaheadMs)return z.policy.V&&z.v1.ph("sabrcrq",{noreadahead:1}),!0;if(z.policy.Y&&z.v1.CD())return z.policy.V&&z.v1.ph("sabrcrq",{seekToHead:1}), +!0;T=Math.min(PO(z.v1,z.audioTrack)*1E3,z.T.targetAudioReadaheadMs);J=Math.min(PO(z.v1,z.videoTrack)*1E3,z.T.targetVideoReadaheadMs);var E=Math.min(T,J);m=gr(z.audioTrack,!0)*1E3;var Z=gr(z.videoTrack,!0)*1E3;if(z.policy.jY){var c=z.H1.getCurrentTime()*1E3;var W=Acq(z.Tf.rE,c);c=Acq(z.wb.rE,c)}else W=m,c=Z;var l=WJ||e>=0&&T.Z_>e+1)break;m=Math.max(m,T.startTimeMs+T.durationMs);e=Math.max(e,T.D2)}return Math.max(0,m-J)}; +Slb=function(z,J,m){var e={G4:z.G4,mJ:function(W,l){z.H1.jW(W,l)}, +kV:z.policy.vR,Wn:z.policy.S};z.G4.T.Y&&(e.aB=(z.videoTrack.K.info.RT||0)+(z.audioTrack.K.info.RT||0));z.policy.gq&&(e.Ou=z.audioTrack.K.index.oP(),e.kV=!1);var T=Cls(J,z.policy,z.V)?2:1;T!==z.Ry&&(z.Ry=T,htu(z));m=gtR(z,m);if((z.policy.T||z.policy.Gf)&&z.policy.S&&m.zp){for(var E=T="",Z=g.y(m.zp),c=Z.next();!c.done;c=Z.next())c=c.value,z.videoData.sabrContextUpdates.has(c)?T+="_"+c:E+="_"+c;z.v1.ph("sabrbldrqs",{ctxts:T,misctxts:E})}J.setData(m,z.v1.wW(),z.policy,z.V)||!z.policy.T&&!z.policy.Gf|| +z.v1.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);e=new gD(z.policy,J,z.E2,z.V,z,e,z.v1.Na(),z.policy.kx?z.v1.wW():void 0);xp(z.timing);z.policy.V&&z.v1.ph("sabrcrq",{rn:e.t4(),probe:J.Wv()});return e}; +UC=function(z,J){if(J.mF()||z.mF())z.policy.k$||(z.policy.Y?H4(z.v1):z.v1.n1());else{if(z.policy.S&&J.isComplete()&&J instanceof gD){var m=z.v1,e=m.ph,T,E,Z=Object.assign(J.aj.Kj(),{rst:J.state,strm:J.xhr.g_(),d:(T=J.aj.x3)==null?void 0:T.G7(),cncl:J.xhr&&J.qT.U?1:0,rqb:J.Ob,cwt:J.Ed,swt:(E=J.Z7)==null?void 0:E.b_});T=Object.assign(Bcs(J.info),Z);e.call(m,"rqs",T)}if(J.isComplete()&&J.Wv()&&J instanceof gD)z.policy.ED?J.P8()?(J.dispose(),z.K.length===0?z.v1.n1():(z=z.K[0],z instanceof gD&&z.mL()&& +z.OQ())):J.UA()&&z.v1.handleError(J.KF(),J.Ln()):(J.dispose(),z.v1.n1());else{if(J.T3())J instanceof gD&&wou(z.timing,J),htu(z),uwb(z);else if(J.UA())m=z.H1.au(),J instanceof gD&&Kzq(J.info)&&m&&z.v1.zq(m),J instanceof hH?z.K.pop():(m=1,J.canRetry()&&iij(z.v1)&&(V8b(z,J),m=0),z.v1.handleError(J.KF(),J.Ln(),m));else{if(z.v1.isSuspended&&!J.isComplete())return;uwb(z)}J.mF()||J instanceof hH||(J.isComplete()?m=vQq(J,z.policy,z.V):(m=Qsb(J,z.policy,z.V),m===1&&(z.qD=!0)),m!==0&&(e=new e_(1,J.info.QH), +e.aF=m===2,Slb(z,e)));z.policy.l8&&!J.isComplete()?Fzu(z.v1):z.v1.n1()}}}; +uwb=function(z){for(;z.K.length&&z.K[0].Rt(z.uF());){var J=z.K.shift();PhR(z,J);if(z.policy.Z){var m=z;if(!m.policy.O2&&J.Rt(m.uF())){var e=J.t4();if(m.nh!==e){var T=J.tM();J=T.BK;var E=T.C9;T=T.isDecorated;!m.U||E<0||(m.nh=e,e=VT(m.B,E/1E3,J),E=m.v1.Kr()||0,jW(m.B,J,e-E,T,m.U))}}}}z.K.length&&PhR(z,z.K[0])}; +PhR=function(z,J){var m=new Set(J.D8(z.uF()));m=g.y(m);for(var e=m.next();!e.done;e=m.next()){var T=e.value;if(!(e=!(J instanceof hH))){e=z.S;var E=e.E2.Cq,Z=JH(e.videoInfos,E);E=Ncb(e,T,E);var c=Z.includes(T);!e.dw.M9||E||c||e.v1.ph("sabrcpf",{fid:""+T,vfids:""+Z.join("."),said:e.V||""});e=E||Z.includes(T)}if(e&&(e=J.uR(T,z.uF()),Z=z.policy.tZ&&E2(e[0].K.info.mimeType),(!(!Z&&z.policy.T$&&e.length>0&&(e[0].K.info.SI()?gr(z.audioTrack):gr(z.videoTrack))>3)||J.isComplete())&&J.mS(T,z.uF()))){T=J.Jb(T, +z.uF());if(z.policy.T&&(E=e[0].K.info,(c=z.v1.wW())&&E)){var W=J.qg();c.api.C("html5_ssap_set_format_info_on_video_data")&&W===of(c)&&(E.SI()?c.playback.getVideoData().U=E:c.playback.getVideoData().T=E);if(c=R5(c.timeline,W))if(c=c[0].getVideoData())E.SI()?c.U=E:c.T=E}T=g.y(T);for(E=T.next();!E.done;E=T.next())if(E=E.value,z.policy.S&&J instanceof hH&&z.v1.ph("omblss",{s:E.info.YQ()}),Z)c=z,c.videoData.Cq()&&c.Y&&Bo(c.Y)===Bo(g.m9(E.info.K.info,c.E2.Cq))&&c.H1.publish("sabrCaptionsDataLoaded",E,c.xL.bind(c)); +else{c=E.info.K.info.SI();var l=E.info.K;if(c){W=void 0;var w=z.S,q=(W=J.LP(z.uF()))==null?void 0:W.token;w.dw.rL&&w.Z&&l!==w.Y?W=!0:(w.Z=!1,l!==w.Y&&(w.Y=l,w.xg(l,w.audioTrack,q)),W=!1);if(z.policy.rL&&W)continue}else W=void 0,l6q(z.S,l,(W=J.LP(z.uF()))==null?void 0:W.token);W=c?z.audioTrack:z.videoTrack;J instanceof hH&&(W.V=!1,J instanceof hH&&(c?EYs(z.timing):Ttu(z.timing)));try{Bs(W,e,E)}catch(d){E=Dk(d),z.v1.handleError(E.errorCode,E.details,E.severity),W.HX(),z.IU(!1,"pushSlice"),H4(z.v1)}}}}}; +V8b=function(z,J){z.policy.Gf?z.K.splice(z.K.indexOf(J)).forEach(function(m){m.dispose()}):(z.K.pop(),J==null||J.dispose())}; +t81=function(z,J,m){for(var e=[],T=0;T0)for(var J=g.y(z.videoData.sabrContextUpdates.keys()),m=J.next();!m.done;m=J.next()){m=m.value;var e=void 0;((e=z.videoData.sabrContextUpdates.get(m))==null?0:e.sendByDefault)&&z.zp.add(m)}if(z.policy.Gf&&z.K.length)for(J=g.y(z.K),m=J.next();!m.done;m=J.next())(m=m.value.XB())&&m.type&&m.sendByDefault&&z.zp.add(m.type)}; +Rt1=function(z){z.policy.Wr&&(z.x3=void 0,z.hT=0)}; +kx1=function(z,J){if(J.UA()||J.mF()){var m=z.v1,e=m.ph,T=J.state;z=z.uF();var E,Z;if((J=(E=J.Lc)==null?void 0:E.get(z))==null)J=void 0;else{E=0;z=J.D8();for(var c=0;c=z.policy.iQ,Z=!1;if(E){var c=0;!isNaN(J)&&J>z.Z&&(c=J-z.Z,z.Z=J);c/T=z.policy.BW&&!z.S;if(!E&&!m&&zIf(z,J))return NaN;m&&(z.S=!0);a:{e=Z;m=(0,g.b5)()/1E3-(z.KR.ao()||0)-z.V.K-z.policy.qx;E=z.T.startTime;m=E+m;if(e){if(isNaN(J)){kM(z,NaN,"n",J);E=NaN;break a}e=J-z.policy.Oe;e=E.U&&e<=E.Y){e=!0;break a}e=!1}e=!e}if(e)return z.ph("ostmf",{ct:z.getCurrentTime(),a:J.K.info.SI()}),!1;(z=z.fh)!=null&&(z.jo.get(m).W2=!0);return!0}; +FB4=function(z){if(!z.E2.Cq)return!0;var J=z.H1.getVideoData();if(z.H1.C$())return z.ph("ombpa",{}),!1;var m,e;if(z.policy.i4&&!!((m=z.Ry)==null?0:(e=m.L7)==null?0:e.wAD)!==z.E2.Ol)return z.ph("ombplmm",{}),!1;m=J.ub||J.liveUtcStartSeconds||J.qp;if(z.E2.Ol&&m)return z.ph("ombplst",{}),!1;if(z.E2.B)return z.ph("ombab",{}),!1;m=Date.now();return Bp(z.E2)&&!isNaN(z.Tf)&&m-z.Tf>z.policy.G$*1E3?(z.ph("ombttl",{}),!1):z.E2.Jp&&z.E2.U||!z.policy.Gb&&z.E2.isPremiere||!(IN(J)===0||z.policy.K&&J.C("html5_enable_onesie_media_for_sabr_proxima_optin"))|| +J.C("html5_disable_onesie_media_for_mosaic")&&PH(J)||J.C("html5_disable_onesie_media_for_ssdai")&&J.isDaiEnabled()&&J.enableServerStitchedDai||J.C("html5_disable_onesie_media_for_lifa_eligible")&&VX(J)?!1:!0}; +inz=function(z,J){var m=J.K,e=z.E2.Cq;if(FB4(z))if(z.fh&&z.fh.jo.has(Bo(g.m9(m.info,e)))){if(e=Bo(g.m9(m.info,e)),Znf(z,J)){var T=new u0(z.fh.uR(e)),E=function(Z){try{if(Z.UA())z.handleError(Z.KF(),Z.Ln()),A6(J,Z),Po(Z.info)&&vs(z.Z,J,m,!0),z.n1();else if(E54(z.Z,Z)){var c;(c=z.U)==null||Oaq(c,Z.info,z.X);z.n1()}}catch(W){Z=Dk(W),z.handleError(Z.errorCode,Z.details,Z.severity),z.HX()}}; +m.S=!0;V0(T)&&(KC(J,new jw(z.policy,e,T,z.fh,E)),xp(z.timing))}}else z.ph("ombfmt",{})}; +cXq=function(z,J){J=J||z.videoTrack&&z.videoTrack.T&&z.videoTrack.T.startTime||z.getCurrentTime();var m=s9,e=z.videoTrack,T=z.K;J=T.nextVideo&&T.nextVideo.index.T7(J)||0;T.wb!==J&&(T.Qx={},T.wb=J,sN(T,T.K));J=!T.K.isLocked()&&T.B>-1&&(0,g.b5)()-T.BJ.K&&J.reason==="b";e||T||m?(z.H1.jc({reattachOnConstraint:e?"u":T?"drm":"perf",lo:J.T,up:J.K}),z.policy.cR||(z.T.K.T=!1)):(z.policy.cR&&(z.T.K.T=!1),H4(z))}}else if(!Btf(z.K,J)&&z.videoTrack){z.logger.debug(function(){return"Setting constraint: r="+J.reason+" u="+J.K}); +m=z.K.K;pHu(z,fhq(z.K,J));cXq(z);e=J.isLocked()&&J.reason==="m"&&z.K.fh;T=z.policy.KA&&J.reason==="l"&&h6(z.videoTrack);m=m.K>J.K&&J.reason==="b";var E=z.K.ND&&!NU();e||T||m||E?z.H1.jc({reattachOnConstraint:e?"u":T?"drm":E?"codec":"perf"}):H4(z)}}; +N0b=function(z,J,m){if((!z.J6||n2(z.J6)&&!z.policy.E7)&&!z.Sp.isSeeking()&&(z.policy.K||h6(J)&&J.K.bC()&&z.K.Ry)){var e=z.getCurrentTime()+aZj(z.B,J,m);z.logger.debug(function(){return"Clearing back to "+e.toFixed(3)}); +Ddb(J,e)}}; +pHu=function(z,J){J&&(z.logger.debug(function(){return"Logging new format: "+Fz(J.video.info)}),GFq(z.H1,new HX(J.video,J.reason))); +if(z.K.qD){var m=gYq(z.K,"a");z.H1.MN(new HX(m.audio,m.reason))}}; +H4=function(z){g.sD(z.IT)}; +Fzu=function(z){z.policy.l8&&z.policy.Fm&&Math.min(f7j(z.videoTrack),f7j(z.audioTrack))*1E3>z.policy.Yd?g.sD(z.tZ):z.n1()}; +XHz=function(z,J){var m=(0,g.b5)()-J,e=gr(z.audioTrack,!0)*1E3,T=gr(z.videoTrack,!0)*1E3;z.logger.debug(function(){return"Appends paused for "+m}); +if(z.policy.S&&(z.ph("apdpe",{dur:m.toFixed(),abuf:e.toFixed(),vbuf:T.toFixed()}),U9(z.policy))){var E=$l(z.B);z.ph("sdps",{ct:J,ah:e.toFixed(),vh:T.toFixed(),mr:gk(z.B,z.Ax,E),bw:E.toFixed(),js:z.isSeeking(),re:+z.Ax,ps:(z.policy.q3||"").toString(),rn:(z.policy.M3||"").toString()})}}; +nvu=function(z){if(z.policy.T&&Ps(z.videoTrack)&&Ps(z.audioTrack))return"ssap";if(AG1(z.videoTrack))return z.logger.debug("Pausing appends for server-selectable format"),"ssf";if(z.policy.ND&&t6(z.videoTrack)&&t6(z.audioTrack))return"updateEnd";if(jQ(z.audioTrack)||jQ(z.videoTrack)&&z.videoTrack.K.info.rb!=="f")return"";if(z.Sp.isSeeking()){var J=z.B;var m=z.videoTrack;var e=z.audioTrack;if(J.policy.K){var T=J.policy.CV;U9(J.policy)&&(T=gk(J,!1,$l(J)));J=T;m=gr(e,!0)>=J&&gr(m,!0)>=J}else m.S.length|| +e.S.length?(T=m.K.info.RT+e.K.info.RT,T=10*(1-$l(J)/T),J=Math.max(T,J.policy.CV),m=gr(e,!0)>=J&&gr(m,!0)>=J):m=!0;if(!m)return"abr";m=z.videoTrack;if(m.S.length>0&&m.U.T.length===1&&EQb(m.U).info.X360);e=U9(z.policy)&&z.policy.R3;if(!z.Ax||!e&&m)return"";m=z.policy.ES;U9(z.policy)&&(m=gk(z.B,z.Ax,$l(z.B)));m=$du(z.videoTrack, +z.getCurrentTime(),m)||$du(z.audioTrack,z.getCurrentTime(),m);return U9(z.policy)?m?"mbnm":"":(z.videoTrack.S.length>0||z.audioTrack.S.length>0||ssq(z.Z,z.videoTrack,z.audioTrack)||ssq(z.Z,z.audioTrack,z.videoTrack))&&m?"nord":""}; +YHf=function(z){if(z.V){var J=z.V.n1(z.audioTrack,qU(z.J6.T.eC()));J&&z.H1.seekTo(J,{ME:!0,i8:"pollSubsegmentReadahead",sA:!0})}}; +DLE=function(z,J,m){if(z.policy.ND&&t6(J))return!1;if(m.Z1())return!0;if(!m.SD())return!1;var e=kl(J);if(!e||e.info.type===6)return!1;var T;if(z.policy.q7||((T=z.U)==null?0:Ntb(T,J,e.info.Y3)))z.Qx=0;else return z.Sp.isSeeking()&&H4(z),z.Qx=z.Qx||(0,g.b5)(),!1;if(!Ll(z,J,m,e.info))return!1;if(z.E2.T&&e.info.T===0){if(T=CiE(J,m,e)){var E=af(J);z.ph("initchg",{it:e.info.K.info.id,sr:!!E&&E.K===e.info.K,ty:e.info.type,seg:e.info.Y3})}E=g.z1(e.info.K.info);z.policy.gW&&E&&!T&&C1q(e)}E=z.V&&!!z.V.U&&J.K.info.audio; +T=z.E2.isManifestless||e.Z;if(!(z.E2.T&&e.info.T!==0||T&&!E)&&aRb(z,J,m,e))return!0;if(E)return!1;E=PO(z,J);E=z.getCurrentTime()+E;if(e.info.U>E)return z.policy.K&&KBb(z,J),z.policy.W0&&jC1(J.U,E,!1),!1;B0R(z,J);var Z;z.policy.s4&&m===((Z=z.J6)==null?void 0:Z.K)&&z.nh&&(m.MJ()===0?(z.nh=!1,z.policy.s4=!1):z.O2=m.MJ());if(!SHf(z,m,e,J))return!1;z.policy.ND&&e.info.yC()?(z.H1.W().AZ()&&z.ph("eosl",{ls:e.info.YQ()}),e.isLocked=!0):(J.Vr(e),$x1(z.K,e.info),z.logger.debug(function(){return"Appended "+ +e.info.YQ()+", buffered: "+cz(m.eC())})); +T&&fRu(z,e.info.K.GW);return!0}; +KBb=function(z,J){J===z.videoTrack?z.Gf=z.Gf||(0,g.b5)():z.x3=z.x3||(0,g.b5)()}; +B0R=function(z,J){J===z.videoTrack?z.Gf=0:z.x3=0}; +SHf=function(z,J,m,e){var T=z.policy.OC?(0,g.b5)():0,E=m.Z&&m.info.K.K||void 0,Z=m.K;m.Z&&(Z=bnu(z,m,Z)||Z);var c=Z.cz();Z=z.policy.OC?(0,g.b5)():0;J=$Lq(z,J,c,m.info,E);(e=e.B)!=null&&(E=m.info,T=Z-T,Z=(0,g.b5)()-Z,!e.T||kkz(e.T,E)&&e.T.Y3===E.Y3||e.flush(),e.U+=T,e.S+=Z,T=1,!e.T&&E.T&&(T=2),TG(e,T,J),Z=Math.ceil(E.T/1024),T===2&&e.K.add(Z),e.K.add(Math.ceil((E.T+E.S)/1024)-Z),e.T=E);z.wb=0;if(J===0)return z.h6&&(z.logger.debug("Retry succeed, back to normal append logic."),z.h6=!1,z.Hd=!1),z.yH= +0,!0;if(J===2||J===5)return gvz(z,"checked",J,m.info),!1;if(J===1){if(!z.h6)return z.logger.debug("QuotaExceeded, retrying."),z.h6=!0,!1;if(!z.Hd)return z.Hd=!0,z.H1.seekTo(z.getCurrentTime(),{i8:"quotaExceeded",sA:!0}),!1;m.info.HA()?(T=z.policy,T.Lh=Math.floor(T.Lh*.8),T.Tf=Math.floor(T.Tf*.8)):(T=z.policy,T.Hd=Math.floor(T.Hd*.8),T.Tf=Math.floor(T.Tf*.8));z.policy.K?RF(z.T.K,m.info.K,!1):zG(z.K,m.info.K)}z.H1.jc({reattachOnAppend:J});return!1}; +bnu=function(z,J,m){var e;if(e=z.policy.Qj&&z.J6&&!z.J6.X&&!z.H1.A3())J=J.info.K.info,e=J.hp()&&ky(J)&&J.video&&J.video.width<3840&&J.video.width>J.video.height;if(e&&(z.J6.X=!0,MO('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return m=eEf(m),z.policy.S&&z.ph("sp4k",{s:!!m}),m}; +gvz=function(z,J,m,e){var T="fmt.unplayable",E=1;m===5||m===3?(T="fmt.unparseable",z.policy.K?!e.K.info.video||kp(z.T.K).size>0||RF(z.T.K,e.K,!1):!e.K.info.video||kp(z.K.Z).size>0||zG(z.K,e.K)):m===2&&(z.yH<15?(z.yH++,T="html5.invalidstate",E=0):T="fmt.unplayable");e=jF(e);var Z;e.mrs=(Z=z.J6)==null?void 0:vz(Z);e.origin=J;e.reason=m;z.handleError(T,e,E)}; +G4b=function(z,J,m,e,T){var E=z.E2;var Z=z.policy.K,c=!1,W=-1,l;for(l in E.K){var w=E2(E.K[l].info.mimeType)||E.K[l].info.HA();if(e===w)if(w=E.K[l].index,w.PB(J.Y3)){c=w;var q=J,d=c.Pu(q.Y3);d&&d.startTime!==q.startTime?(c.segments=[],c.Nr(q),c=!0):c=!1;c?W=J.Y3:!J.pending&&Z&&(q=w.getDuration(J.Y3),q!==J.duration&&(E.publish("clienttemp","mfldurUpdate",{itag:E.K[l].info.itag,seg:J.Y3,od:q,nd:J.duration},!1),w.Nr(J),c=!0))}else w.Nr(J),c=!0}W>=0&&(Z={},E.publish("clienttemp","resetMflIndex",(Z[e? +"v":"a"]=W,Z),!1));E=c;PKu(z.Sp,J,e,E);z.U.Iv(J,m,e,T);if(z.policy.vA&&m){var I;(I=z.Rs)!=null&&I.S.set(J.Y3,m)}J.Y3===z.E2.Jp&&E&&nt(z.E2)&&J.startTime>nt(z.E2)&&(z.E2.Gf=J.startTime+(isNaN(z.timestampOffset)?0:z.timestampOffset),z.Sp.isSeeking()&&z.Sp.K +5)return z.wb=0,z.H1.jc({initSegStuck:1,as:e.info.YQ()}),!0}else z.wb=0,z.gE=e;z.policy.Vj&&(m.abort(),(Z=J.B)!=null&&(TG(Z,4),Z.flush()));T=$Lq(z,m,E,W,T);var l;(l=J.B)==null||VFb(l,T,W);if(T!==0)return xLq(z,T,e),!0;e.info.HA()?iau(z.timing):ceE(z.timing);z.logger.debug(function(){return"Appended init for "+e.info.K.info.id}); +fRu(z,e.info.K.GW);return m.Ra()}; +CiE=function(z,J,m){if(J.Sw()==null){z=af(z);if(!(J=!z||z.K!==m.info.K)){a:if(z=z.B,m=m.info.B,z.length!==m.length)m=!1;else{for(J=0;J1)return 6;W.Qx=new g.vl(function(){var l=kl(W);z.mF()||l==null||!l.isLocked?z.H1.W().AZ()&&z.ph("eosl",{delayA:l==null?void 0:l.info.YQ()}):Mgb(W)?(z.H1.W().AZ()&&z.ph("eosl",{dunlock:l==null?void 0:l.info.YQ()}),AXj(z, +W===z.audioTrack)):(z.ph("nue",{ls:l.info.YQ()}),l.info.Ry+=1,z.J6&&z.UK())},1E4,z); +z.H1.W().AZ()&&z.ph("eosl",{delayS:e.YQ()});W.Qx.start()}z.policy.fH&&(e==null?void 0:e.K)instanceof Ho&&e.yC()&&z.ph("poseos",{itag:e.K.info.itag,seg:e.Y3,lseg:e.K.index.eO(),es:e.K.index.S});J.appendBuffer(m,e,T)}catch(l){if(l instanceof DOMException){if(l.code===11)return 2;if(l.code===12)return 5;if(l.code===22||l.message.indexOf("Not enough storage")===0)return J=Object.assign({name:"QuotaExceededError",buffered:cz(J.eC()).replace(/,/g,"_"),vheap:bC(z.videoTrack),aheap:bC(z.audioTrack),message:g.Xd(l.message, +3),track:z.J6?J===z.J6.T?"v":"a":"u"},eIq()),z.handleError("player.exception",J),1;g.jk(l)}return 4}return z.J6.Z2()?3:0}; +Rc=function(z,J,m){z.H1.seekTo(J,m)}; +fRu=function(z,J){J&&z.H1.Td(new wr(J.key,J.type))}; +O9=function(z,J){z.H1.DP(J)}; +PO=function(z,J){if(z.h6&&!z.Ax)return 3;if(z.isSuspended)return 1;var m;if((m=z.J6)==null?0:m.J6&&m.J6.streaming===!1)return 4;m=(J.K.info.audio?z.policy.Hd:z.policy.Lh)/(J.RT*z.policy.S8);if(z.policy.Yb>0&&z.J6&&n2(z.J6)&&(J=J.K.info.video?z.J6.T:z.J6.K)&&!J.Ra()){J=J.eC();var e=Wz(J,z.getCurrentTime());e>=0&&(J=z.getCurrentTime()-J.start(e),m+=Math.max(0,Math.min(J-z.policy.Yb,z.policy.e7)))}z.policy.Tf>0&&(m=Math.min(m,z.policy.Tf));return m}; +brb=function(z,J){return(PO(z,J)+z.policy.VB)*J.RT}; +jNR=function(z){z.ND&&!z.isSuspended&&Y5(z.schedule)&&(ovq(z,z.ND),z.ND="")}; +ovq=function(z,J){Sw(J,"cms",function(m){z.policy.S&&z.ph("pathprobe",m)},function(m){z.H1.handleError(m)})}; +hIj=function(z,J){if(z.J6&&z.J6.U&&!z.J6.Z2()&&(J.jR=gr(z.videoTrack),J.T=gr(z.audioTrack),z.policy.S)){var m=bC(z.videoTrack),e=bC(z.audioTrack),T=cz(z.J6.T.eC(),"_",5),E=cz(z.J6.K.eC(),"_",5);Object.assign(J.K,{lvq:m,laq:e,lvb:T,lab:E})}J.bandwidthEstimate=Dy(z.B);var Z;(Z=z.audioTrack.B)==null||Z.flush();var c;(c=z.videoTrack.B)==null||c.flush();z.logger.debug(function(){return BQ(J.K)})}; +urR=function(z,J){z.X=J;z.U&&(z.U.S=J);z.X.nk(z.videoTrack.K.info.hp());z.Z.T=z.X;z.policy.Z&&(z.S.U=z.X)}; +Hnu=function(z,J){if(z.J6&&z.J6.T){if(z.policy.YB){var m=Vh4(z.audioTrack);if(m&&m.SI()){var e=z.H1;if(e.g2&&(e.g2.K=m,m=e.Nd(e.g2.videoId),m.qoe)){m=m.qoe;e=e.g2;var T=g.sC(m.provider);Vgf(m,T,e)}}}z.policy.QS&&(m=Vh4(z.videoTrack))&&m.HA()&&(e=z.H1,e.ox&&(e.ox.K=m,m=e.Nd(e.ox.videoId),m.qoe&&Pis(m.qoe,e.ox)));J-=isNaN(z.timestampOffset)?0:z.timestampOffset;z.getCurrentTime()!==J&&z.resume();z.Sp.isSeeking()&&z.J6&&!z.J6.Z2()&&(e=z.getCurrentTime()<=J&&J=0&&E1?c.T[0]=J&&T04(z,e.startTime,!1)}); +return m&&m.startTimez.getCurrentTime())return m.start/1E3;return Infinity}; +QNq=function(z){var J=af(z.videoTrack),m=af(z.audioTrack);return J&&!ubu(z.videoTrack)?J.startTime:m&&!ubu(z.audioTrack)?m.startTime:NaN}; +jou=function(z){if(z.H1.getVideoData().isLivePlayback)return!1;var J=z.H1.Vv();if(!J)return!1;J=J.getDuration();return otq(z,J)}; +otq=function(z,J){if(!z.J6||!z.J6.K||!z.J6.T)return!1;var m=z.getCurrentTime(),e=z.J6.K.eC();z=z.J6.T.eC();e=e?w7(e,m):m;m=z?w7(z,m):m;m=Math.min(e,m);return isNaN(m)?!1:m>=J-.01}; +xLq=function(z,J,m){z.policy.DS&&TF(z.H1.getVideoData())?(z.H1.Lf()||gvz(z,"sepInit",J,m.info),vvu(z.H1,"sie")):gvz(z,"sepInit",J,m.info)}; +iij=function(z){return z.H1.hf()0){var T=e.K.shift();rXq(e,T.info)}e.K.length>0&&(T=e.K[0].time-(0,g.b5)(),e.T.start(Math.max(0,T)))}},0); +g.u(this,this.T);J.subscribe("widevine_set_need_key_info",this.Z,this)}; +rXq=function(z,J){a:{var m=J.cryptoPeriodIndex;if(isNaN(m)&&z.S.size>0)m=!0;else{for(var e=g.y(z.S.values()),T=e.next();!T.done;T=e.next())if(T.value.cryptoPeriodIndex===m){m=!0;break a}m=!1}}z.publish("log_qoe",{wvagt:"reqnews",canskip:m});m||z.publish("rotated_need_key_info_ready",J)}; +zej=function(){var z={};var J=z.url;var m=z.interval;z=z.retries;this.url=J;this.interval=m;this.retries=z}; +J3u=function(z,J){this.statusCode=z;this.message=J;this.T=this.heartbeatParams=this.errorMessage=null;this.K={};this.nextFairplayKeyId=null}; +m0b=function(z,J,m){m=m===void 0?"":m;g.h.call(this);this.message=z;this.requestNumber=J;this.vk=m;this.onError=this.onSuccess=null;this.K=new g.SX(5E3,2E4,.2)}; +eeq=function(z,J,m){z.onSuccess=J;z.onError=m}; +E24=function(z,J,m,e){var T={timeout:3E4,onSuccess:function(E){if(!z.mF()){Ph("drm_net_r",void 0,z.vk);var Z=E.status==="LICENSE_STATUS_OK"?0:9999,c=null;if(E.license)try{c=n0(E.license)}catch(O){g.jk(O)}if(Z!==0||c){c=new J3u(Z,c);Z!==0&&E.reason&&(c.errorMessage=E.reason);if(E.authorizedFormats){Z={};for(var W=[],l={},w=g.y(E.authorizedFormats),q=w.next();!q.done;q=w.next())if(q=q.value,q.trackType&&q.keyId){var d=TdR[q.trackType];if(d){d==="HD"&&E.isHd720&&(d="HD720");q.isHdr&&(d+="HDR");Z[d]|| +(W.push(d),Z[d]=!0);var I=null;try{I=n0(q.keyId)}catch(O){g.jk(O)}I&&(l[g.GC(I,4)]=d)}}c.T=W;c.K=l}E.nextFairplayKeyId&&(c.nextFairplayKeyId=E.nextFairplayKeyId);E.sabrLicenseConstraint&&(c.sabrLicenseConstraint=n0(E.sabrLicenseConstraint));E=c}else E=null;if(E)z.onSuccess(E,z.requestNumber);else z.onError(z,"drm.net","t.p;p.i")}}, +onError:function(E){if(!z.mF())if(E&&E.error)E=E.error,z.onError(z,"drm.net.badstatus","t.r;p.i;c."+E.code+";s."+E.status,E.code);else z.onError(z,"drm.net.badstatus","t.r;p.i;c.n")}, +onTimeout:function(){z.onError(z,"drm.net","rt.req."+z.requestNumber)}}; +e&&(T.Tm="Bearer "+e);g.TQ(m,"player/get_drm_license",J,T)}; +Zez=function(z,J,m,e){g.wF.call(this);this.videoData=z;this.yx=J;this.X=m;this.sessionId=e;this.Z={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.Ry=this.fh=!1;this.S=null;this.Tf=[];this.U=[];this.qh=[];this.V=!1;this.K={};this.status="";this.Y=NaN;this.T=z.Z;this.cryptoPeriodIndex=m.cryptoPeriodIndex;z={};Object.assign(z,this.yx.K);z.cpn=this.videoData.clientPlaybackNonce;this.videoData.fh&&(z.vvt=this.videoData.fh,this.videoData.mdxEnvironment&&(z.mdx_environment=this.videoData.mdxEnvironment)); +this.yx.Tf&&(z.authuser=this.yx.Tf);this.yx.pageId&&(z.pageid=this.yx.pageId);isNaN(this.cryptoPeriodIndex)||(z.cpi=this.cryptoPeriodIndex.toString());var T=(T=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.bF()))?T[1]:"";T==="ATV"&&(z.cdt=T);this.Z=z;this.Z.session_id=e;this.B=!0;this.T.flavor==="widevine"&&(this.Z.hdr="1");this.T.flavor==="playready"&&(J=Number(zt(J.experiments,"playready_first_play_expiration")),!isNaN(J)&&J>=0&&(this.Z.mfpe=""+J),this.B=!1);J="";g.us(this.T)?hG(this.T)?(e=m.T)&&(J="https://www.youtube.com/api/drm/fps?ek="+ +jqq(e)):(J=m.initData.subarray(4),J=new Uint16Array(J.buffer,J.byteOffset,J.byteLength/2),J=String.fromCharCode.apply(null,J).replace("skd://","https://")):J=this.T.T;this.baseUrl=J;this.fairplayKeyId=zH(this.baseUrl,"ek")||"";if(J=zH(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(J);this.Tf=m.hp?[g.GC(m.initData,4)]:m.S;eU(this,{sessioninit:m.cryptoPeriodIndex});this.status="in"}; +Wcu=function(z,J){eU(z,{createkeysession:1});z.status="gr";Ph("drm_gk_s",void 0,z.videoData.qD);z.url=FcE(z);try{z.S=J.createSession(z.X,function(m){eU(z,{m:m})})}catch(m){J="t.g"; +m instanceof DOMException&&(J+=";c."+m.code);z.publish("licenseerror","drm.unavailable",1,J,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}z.S&&(ief(z.S,function(m,e){c31(z,m,e)},function(m,e,T){if(!z.mF()){e=void 0; +var E=1;g.us(z.T)&&g.AD(z.yx)&&z.yx.C("html5_enable_safari_fairplay")&&T===1212433232&&(e="ERROR_HDCP",E=z.yx.C("html5_safari_fairplay_ignore_hdcp")?0:E);z.error("drm.keyerror",E,m,e)}},function(){z.mF()||(eU(z,{onkyadd:1}),z.Ry||(z.publish("sessionready"),z.Ry=!0))},function(m){z.eB(m)}),g.u(z,z.S))}; +FcE=function(z){var J=z.baseUrl;m3z(J)||z.error("drm.net",2,"t.x");if(!zH(J,"fexp")){var m=["23898307","23914062","23916106","23883098"].filter(function(T){return z.yx.experiments.experiments[T]}); +m.length>0&&(z.Z.fexp=m.join())}m=g.y(Object.keys(z.Z));for(var e=m.next();!e.done;e=m.next())e=e.value,J=Xmq(J,e,z.Z[e]);return J}; +c31=function(z,J,m){if(!z.mF())if(J){eU(z,{onkmtyp:m});z.status="km";switch(m){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":l54(z,J);return;default:z.publish("ctmp","message_type",{t:m,l:J.byteLength})}z.fh||(Ph("drm_gk_f",void 0,z.videoData.qD),z.fh=!0,z.publish("newsession",z));if(AG(z.T)&&(J=wL4(J),!J))return;J=new m0b(J,++z.requestNumber,z.videoData.qD);eeq(J,function(e){quR(z,e)},function(e,T,E){if(!z.mF()){var Z=0; +e.K.T>=3&&(Z=1,T="drm.net.retryexhausted");eU(z,{onlcsrqerr:T,info:E});z.error(T,Z,E);z.shouldRetry(fG(Z),e)&&d0E(z,e)}}); +g.u(z,J);I5u(z,J)}else z.error("drm.unavailable",1,"km.empty")}; +l54=function(z,J){eU(z,{sdpvrq:1});z.Y=Date.now();if(z.T.flavor!=="widevine")z.error("drm.provision",1,"e.flavor;f."+z.T.flavor+";l."+J.byteLength);else{var m={cpn:z.videoData.clientPlaybackNonce};Object.assign(m,z.yx.K);m=g.v1("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",m);J={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, +J)}),responseType:"arraybuffer"};g.gj(m,J,3,500).then(Ym(function(e){e=e.xhr;if(!z.mF()){e=new Uint8Array(e.response);var T=String.fromCharCode.apply(null,e);try{var E=JSON.parse(T)}catch(Z){}E&&E.signedResponse?(z.publish("ctmp","drminfo",{provisioning:1}),E=(Date.now()-z.Y)/1E3,z.Y=NaN,z.publish("ctmp","provs",{et:E.toFixed(3)}),z.S&&z.S.update(e)):(E=E&&E.error&&E.error.message,e="e.parse",E&&(e+=";m."+E),z.error("drm.provision",1,e))}}),Ym(function(e){z.mF()||z.error("drm.provision",1,"e."+e.errorCode+ +";c."+(e.xhr&&e.xhr.status))}))}}; +T$=function(z){var J;if(J=z.B&&z.S!=null)z=z.S,J=!(!z.K||!z.K.keyStatuses);return J}; +I5u=function(z,J){z.status="km";Ph("drm_net_s",void 0,z.videoData.qD);var m=new g.e5(z.yx.Gp),e={context:g.IT(m.config_||g.dn())};e.drmSystem=Oef[z.T.flavor];e.videoId=z.videoData.videoId;e.cpn=z.videoData.clientPlaybackNonce;e.sessionId=z.sessionId;e.licenseRequest=g.GC(J.message);e.drmParams=z.videoData.drmParams;isNaN(z.cryptoPeriodIndex)||(e.isKeyRotated=!0,e.cryptoPeriodIndex=z.cryptoPeriodIndex);var T,E,Z=!!((T=z.videoData.T)==null?0:(E=T.video)==null?0:E.isHdr());e.drmVideoFeature=Z?"DRM_VIDEO_FEATURE_PREFER_HDR": +"DRM_VIDEO_FEATURE_SDR";if(e.context&&e.context.client){if(T=z.yx.K)e.context.client.deviceMake=T.cbrand,e.context.client.deviceModel=T.cmodel,e.context.client.browserName=T.cbr,e.context.client.browserVersion=T.cbrver,e.context.client.osName=T.cos,e.context.client.osVersion=T.cosver;e.context.user=e.context.user||{};e.context.request=e.context.request||{};z.videoData.fh&&(e.context.user.credentialTransferTokens=[{token:z.videoData.fh,scope:"VIDEO"}]);e.context.request.mdxEnvironment=z.videoData.mdxEnvironment|| +e.context.request.mdxEnvironment;z.videoData.IT&&(e.context.user.kidsParent={oauthToken:z.videoData.IT});g.us(z.T)&&(e.fairplayKeyId=g.GC(hbR(z.fairplayKeyId)));g.El(z.yx,g.ui(z.videoData)).then(function(c){E24(J,e,m,c);z.status="rs"})}else z.error("drm.net",2,"t.r;ic.0")}; +quR=function(z,J){if(!z.mF())if(eU(z,{onlcsrsp:1}),z.status="rr",J.statusCode!==0)z.error("drm.auth",1,"t.f;c."+J.statusCode,J.errorMessage||void 0);else{Ph("drm_kr_s",void 0,z.videoData.qD);if(J.heartbeatParams&&J.heartbeatParams.url&&z.videoData.C("outertube_streaming_data_always_use_staging_license_service")){var m=z.T.T.match(/(.*)youtube.com/g);m&&(J.heartbeatParams.url=m[0]+J.heartbeatParams.url)}J.heartbeatParams&&z.publish("newlicense",J.heartbeatParams);J.T&&(z.U=J.T,z.videoData.LD||z.publish("newlicense", +new zej),z.videoData.LD=!0,z.V=aS(z.U,function(e){return e.includes("HDR")})); +J.K&&(z.yx.C("html5_enable_vp9_fairplay")&&hG(z.T)?(m=g.GC(hbR(z.fairplayKeyId),4),z.K[m]={type:J.K[m],status:"unknown"}):z.K=KY(J.K,function(e){return{type:e,status:"unknown"}})); +jh(z.T)&&(J.message=S64(g.GC(J.message)));z.S&&(eU(z,{updtks:1}),z.status="ku",z.S.update(J.message).then(function(){Ph("drm_kr_f",void 0,z.videoData.qD);T$(z)||(eU(z,{ksApiUnsup:1}),z.publish("keystatuseschange",z))},function(e){e="msuf.req."+z.requestNumber+";msg."+g.Xd(e.message,3); +z.error("drm.keyerror",1,e)})); +g.us(z.T)&&z.publish("fairplay_next_need_key_info",z.baseUrl,J.nextFairplayKeyId);z.yx.C("html5_enable_vp9_fairplay")&&hG(z.T)&&z.publish("qualitychange",pLR(z.U));J.sabrLicenseConstraint&&z.publish("sabrlicenseconstraint",J.sabrLicenseConstraint)}}; +d0E=function(z,J){var m=J.K.getValue();m=new g.vl(function(){I5u(z,J)},m); +g.u(z,m);m.start();g.fL(J.K);eU(z,{rtyrq:1})}; +y3u=function(z,J){for(var m=[],e=g.y(Object.keys(z.K)),T=e.next();!T.done;T=e.next())T=T.value,m.push(T+"_"+z.K[T].type+"_"+z.K[T].status);return m.join(J)}; +Ndb=function(z){var J={};J[z.status]=T$(z)?y3u(z,"."):z.U.join(".");return J}; +GDE=function(z){switch(z){case "AUDIO":return 1;case "SD":return 2;case "HD":return 3;case "UHD1":return 4;case "UHD2":return 5;default:return 0}}; +EB=function(z,J){for(var m in z.K)if(z.K[m].status==="usable"&&z.K[m].type===J)return!0;return!1}; +XLb=function(z,J){for(var m in z.K)if(z.K[m].type===J)return z.K[m].status}; +eU=function(z,J){var m=m===void 0?!1:m;BQ(J);(m||z.yx.AZ())&&z.publish("ctmp","drmlog",J)}; +n2z=function(z){var J=z[0];z[0]=z[3];z[3]=J;J=z[1];z[1]=z[2];z[2]=J;J=z[4];z[4]=z[5];z[5]=J;J=z[6];z[6]=z[7];z[7]=J}; +pLR=function(z){return g.s1(z,"UHD2")||g.s1(z,"UHD2HDR")?"highres":g.s1(z,"UHD1")||g.s1(z,"UHD1HDR")?"hd2160":g.s1(z,"HD")||g.s1(z,"HDHDR")?"hd1080":g.s1(z,"HD720")||g.s1(z,"HD720HDR")?"hd720":"large"}; +wL4=function(z){for(var J="",m=0;m'.charCodeAt(e);z=z.S.createSession("video/mp4",J,m);return new Za(null,null,null,null,z)}; +D0u=function(z,J){var m=z.Y[J.sessionId];!m&&z.U&&(m=z.U,z.U=null,m.sessionId=J.sessionId,z.Y[J.sessionId]=m);return m}; +Bdq=function(z,J){var m=z.subarray(4);m=new Uint16Array(m.buffer,m.byteOffset,m.byteLength/2);m=String.fromCharCode.apply(null,m).match(/ek=([0-9a-f]+)/)[1];for(var e="",T=0;T +19.2999?(z=m.F5,m=m.W0,m>=z&&(m=z*.75),J=(z-m)*.5,m=new Jg(J,z,z-J-m,this)):m=null;break a;case "widevine":m=new mQ(J,this,z);break a;default:m=null}if(this.Z=m)g.u(this,this.Z),this.Z.subscribe("rotated_need_key_info_ready",this.RJ,this),this.Z.subscribe("log_qoe",this.Xg,this);Pp(this.yx.experiments);this.Xg({cks:this.K.getInfo()})}; +$0E=function(z){var J=Kc1(z.U);J?J.then(Ym(function(){x0q(z)}),Ym(function(m){if(!z.mF()){g.jk(m); +var e="t.a";m instanceof DOMException&&(e+=";n."+m.name+";m."+m.message);z.publish("licenseerror","drm.unavailable",1,e,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(z.Xg({mdkrdy:1}),z.B=!0); +z.Ry&&(J=Kc1(z.Ry))}; +VQq=function(z,J,m){z.h6=!0;m=new wr(J,m);z.yx.C("html5_eme_loader_sync")&&(z.Y.get(J)||z.Y.set(J,m));MMu(z,m)}; +MMu=function(z,J){if(!z.mF()){z.Xg({onInitData:1});if(z.yx.C("html5_eme_loader_sync")&&z.videoData.S&&z.videoData.S.K){var m=z.V.get(J.initData);J=z.Y.get(J.initData);if(!m||!J)return;J=m;m=J.initData;z.Y.remove(m);z.V.remove(m)}z.Xg({initd:J.initData.length,ct:J.contentType});if(z.K.flavor==="widevine")if(z.x3&&!z.videoData.isLivePlayback)c7(z);else{if(!(z.yx.C("vp9_drm_live")&&z.videoData.isLivePlayback&&J.hp)){z.x3=!0;m=J.cryptoPeriodIndex;var e=J.K;snq(J);J.hp||(e&&J.K!==e?z.publish("ctmp","cpsmm", +{emsg:e,pssh:J.K}):m&&J.cryptoPeriodIndex!==m&&z.publish("ctmp","cpimm",{emsg:m,pssh:J.cryptoPeriodIndex}));z.publish("widevine_set_need_key_info",J)}}else z.RJ(J)}}; +x0q=function(z){if(!z.mF())if(z.yx.C("html5_drm_set_server_cert")||hG(z.K)){var J=z.U.setServerCertificate();J?J.then(Ym(function(m){z.yx.AZ()&&z.publish("ctmp","ssc",{success:m})}),Ym(function(m){z.publish("ctmp","ssce",{n:m.name, +m:m.message})})).then(Ym(function(){PCu(z)})):PCu(z)}else PCu(z)}; +PCu=function(z){z.mF()||(z.B=!0,z.Xg({onmdkrdy:1}),c7(z))}; +tQu=function(z){return z.K.flavor==="widevine"&&z.videoData.C("html5_drm_cpi_license_key")}; +c7=function(z){if((z.h6||z.yx.C("html5_widevine_use_fake_pssh"))&&z.B&&!z.wb){for(;z.S.length;){var J=z.S[0],m=tQu(z)?reb(J):g.GC(J.initData);if(hG(z.K)&&!J.T)z.S.shift();else{if(z.T.get(m))if(z.K.flavor!=="fairplay"||hG(z.K)){z.S.shift();continue}else z.T.delete(m);snq(J);break}}z.S.length&&z.createSession(z.S[0])}}; +HCu=function(z){var J;if(J=g.LH()){var m;J=!((m=z.U.T)==null||!m.getMetrics)}J&&(J=z.U.getMetrics())&&(J=g.fc(J),z.publish("ctmp","drm",{metrics:J}))}; +Un1=function(){var z=x6z();return!(!z||z==="visible")}; +kG1=function(z){var J=RRu();J&&document.addEventListener(J,z,!1)}; +L7u=function(z){var J=RRu();J&&document.removeEventListener(J,z,!1)}; +RRu=function(){if(document.visibilityState)var z="visibilitychange";else{if(!document[yx+"VisibilityState"])return"";z=yx+"visibilitychange"}return z}; +Qfs=function(z){g.h.call(this);var J=this;this.H1=z;this.nD=0;this.Y=this.T=this.Z=!1;this.U=0;this.e4=this.H1.W();this.videoData=this.H1.getVideoData();this.S=g.dv(this.e4.experiments,"html5_delayed_retry_count");this.K=new g.vl(function(){J.H1.Vb()},g.dv(this.e4.experiments,"html5_delayed_retry_delay_ms")); +g.u(this,this.K)}; +JHu=function(z,J,m){var e=z.videoData.T,T=z.videoData.U;TF(z.H1.getVideoData())&&z.e4.C("html5_gapless_fallback_on_qoe_restart")&&vvu(z.H1,"pe");if((J==="progressive.net.retryexhausted"||J==="fmt.unplayable"||J==="fmt.decode")&&!z.H1.PW.Z&&e&&e.itag==="22")return z.H1.PW.Z=!0,z.Br("qoe.restart",{reason:"fmt.unplayable.22"}),z.H1.us(),!0;var E=!1;if(z.videoData.isExternallyHostedPodcast){if(E=z.videoData.BS)m.mimeType=E.type,z.ph("3pp",{url:E.url});m.ns="3pp";z.H1.O4(J,1,"VIDEO_UNAVAILABLE",BQ((new Sl(J, +m,1)).details));return!0}var Z=z.nD+3E4<(0,g.b5)()||z.K.isActive();if(z.e4.C("html5_empty_src")&&z.videoData.isAd()&&J==="fmt.unplayable"&&/Empty src/.test(""+m.msg))return m.origin="emptysrc",z.Br("auth",m),!0;Z||W7(z.H1.BX())||(m.nonfg="paused",Z=!0,z.H1.pauseVideo());(J==="fmt.decode"||J==="fmt.unplayable")&&(T==null?0:se(T)||rS(T))&&(x4R(z.e4.Z,T.rb),m.acfallexp=T.rb,E=Z=!0);!Z&&z.S>0&&(z.K.start(),Z=!0,m.delayed="1",--z.S);T=z.H1.v1;!Z&&((e==null?0:vQ(e))||(e==null?0:ky(e)))&&(x4R(z.e4.Z,e.rb), +E=Z=!0,m.cfallexp=e.rb);if(z.e4.C("html5_ssap_ignore_decode_error_for_next_video")&&g.Lr(z.videoData)&&J==="fmt.unplayable"&&m.cid&&m.ccid&&W7(z.H1.BX())){if(m.cid!==m.ccid)return m.ignerr="1",z.Br("ssap.transitionfailure",m),!0;z.Br("ssap.transitionfailure",m);if(vSq(z.H1,J))return!0}if(!Z)return sfu(z,m);if(z.e4.C("html5_ssap_skip_decoding_clip_with_incompatible_codec")&&g.Lr(z.videoData)&&J==="fmt.unplayable"&&m.cid&&m.ccid&&m.cid!==m.ccid&&W7(z.H1.BX())&&(z.Br("ssap.transitionfailure",m),vSq(z.H1, +J)))return!0;Z=!1;z.Z?z.nD=(0,g.b5)():Z=z.Z=!0;var c=z.videoData;if(c.Hd){c=c.Hd.Ng();var W=Date.now()/1E3+1800;c=c6048E5&&EMb(z,"signature");return!1}; +EMb=function(z,J){try{window.location.reload(),z.Br("qoe.restart",{detail:"pr."+J})}catch(m){}}; +Fqb=function(z,J){J=J===void 0?"fmt.noneavailable":J;var m=z.e4.Z;m.V=!1;Tt(m);z.Br("qoe.restart",{e:J,detail:"hdr"});z.H1.Vb(!0)}; +ilu=function(z,J,m,e,T,E){this.videoData=z;this.K=J;this.reason=m;this.T=e;this.token=T;this.videoId=E}; +cHR=function(z,J,m){this.yx=z;this.zr=J;this.H1=m;this.X=this.Y=this.K=this.U=this.V=this.T=0;this.Z=!1;this.B=g.dv(this.yx.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.S=new Map}; +liq=function(z,J,m){!z.yx.C("html5_tv_ignore_capable_constraint")&&g.SP(z.yx)&&(m=m.compose(Wqj(z,J)));return m}; +w4u=function(z){if(z.H1.BX().isInline())return tc;var J;z.C("html5_exponential_memory_for_sticky")?J=Ci(z.yx.qp,"sticky-lifetime")<.5?"auto":cJ[uK()]:J=cJ[uK()];return g.Zr("auto",J,!1,"s")}; +dCq=function(z,J){var m,e=qCu(z,(m=J.K)==null?void 0:m.videoInfos);m=z.H1.getPlaybackRate();return m>1&&e?(z=fHE(z.yx.Z,J.K.videoInfos,m),new EM(0,z,!0,"o")):new EM(0,0,!1,"o")}; +qCu=function(z,J){return J&&g.SP(z.yx)?J.some(function(m){return m.video.fps>32}):!1}; +IiE=function(z,J){var m=z.H1.fX();z.C("html5_use_video_quality_cap_for_ustreamer_constraint")&&m&&m.u_>0&&ia(J.videoData.H0)&&(z=m.u_,J.videoData.H0=new EM(0,z,!1,"u"));return J.videoData.H0}; +Wqj=function(z,J){if(g.SP(z.yx)&&nZ(z.yx.Z,Ye.HEIGHT))var m=J.K.videoInfos[0].video.qualityOrdinal;else{var e=!!J.K.K;var T;g.x5(z.yx)&&(T=window.screen&&window.screen.width?new g.XT(window.screen.width,window.screen.height):null);T||(T=z.yx.jx?z.yx.jx.clone():z.zr.XE());(z7||m7||e)&&T.scale(g.Qs());e=T;EH(J.videoData)||tX(J.videoData);J=J.K.videoInfos;if(J.length){T=g.dv(z.yx.experiments,"html5_override_oversend_fraction")||.85;var E=J[0].video;E.projectionType!=="MESH"&&E.projectionType!=="EQUIRECTANGULAR"&& +E.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||$5||(T=.45);z=g.dv(z.yx.experiments,"html5_viewport_undersend_maximum");for(E=0;E0&&(m=Math.min(m,e));if(e=g.dv(z.yx.experiments,"html5_max_vertical_resolution")){z=4320;for(T=0;Te&&(z=Math.min(z,E.video.qualityOrdinal));if(z<4320){for(T=e=0;T32){T=!0;break a}}T=!1}T&&(m=Math.min(m,e));(e=g.dv(z.yx.experiments,"html5_live_quality_cap"))&&J.videoData.isLivePlayback&&(m=Math.min(m,e));m=p4u(z,J,m);z=g.dv(z.yx.experiments,"html5_byterate_soft_cap");return new EM(0,m===4320?0:m,!1,"d",z)}; +NIR=function(z){var J,m,e,T;return g.D(function(E){switch(E.K){case 1:return z.K.K&&typeof((J=navigator.mediaCapabilities)==null?void 0:J.decodingInfo)==="function"?g.S(E,Promise.resolve(),2):E.return(Promise.resolve());case 2:m=g.y(z.K.videoInfos),e=m.next();case 3:if(e.done){E.U2(0);break}T=e.value;return g.S(E,pyq(T),4);case 4:e=m.next(),E.U2(3)}})}; +X4q=function(z,J){if(!J.videoData.T||z.C("html5_disable_performance_downgrade"))return!1;Date.now()-z.V>6E4&&(z.T=0);z.T++;z.V=Date.now();if(z.T!==4)return!1;Ggb(z,J.videoData.T);return!0}; +YCz=function(z,J,m,e){if(!J||!m||!J.videoData.T)return!1;var T=g.dv(z.yx.experiments,"html5_df_downgrade_thresh"),E=z.C("html5_log_media_perf_info");if(!((0,g.b5)()-z.U<5E3?0:E||T>0))return!1;var Z=((0,g.b5)()-z.U)/1E3;z.U=(0,g.b5)();m=m.getVideoPlaybackQuality();if(!m)return!1;var c=m.droppedVideoFrames-z.Y,W=m.totalVideoFrames-z.X;z.Y=m.droppedVideoFrames;z.X=m.totalVideoFrames;var l=m.displayCompositedVideoFrames===0?0:m.displayCompositedVideoFrames||-1;E&&z.yx.AZ()&&z.H1.ph("ddf",{dr:m.droppedVideoFrames, +de:m.totalVideoFrames,comp:l});if(e)return z.K=0,!1;if((W-c)/Z>z.B||!T||g.SP(z.yx))return!1;z.K=(W>60?c/W:0)>T?z.K+1:0;if(z.K!==3)return!1;Ggb(z,J.videoData.T);z.H1.ph("dfd",Object.assign({dr:m.droppedVideoFrames,de:m.totalVideoFrames},nMz()));return!0}; +Ggb=function(z,J){var m=J.rb,e=J.video.fps,T=J.video.qualityOrdinal-1,E=z.S;J=""+m+(e>49?"p60":e>32?"p48":"");m=bs(m,e,E);T>0&&(m=Math.min(m,T));if(!lL.has(J)&&th().includes(J)){var Z=m;m=Pt();+m[J]>0&&(Z=Math.min(+m[J],Z));m[J]!==Z&&(m[J]=Z,g.oW("yt-player-performance-cap",m,2592E3))}else if(lL.has(J)||E==null){a:{Z=Z===void 0?!0:Z;e=th().slice();if(Z){if(e.includes(J))break a;e.push(J)}else{if(!e.includes(J))break a;e.splice(e.indexOf(J),1)}g.oW("yt-player-performance-cap-active-set",e,2592E3)}D7.set(J, +m)}else lL.add(J),E==null||E.set(J,m);z.H1.RA()}; +wa=function(z,J){if(!J.K.K)return z.Z?new EM(0,360,!1,"b"):tc;for(var m=!1,e=!1,T=g.y(J.K.videoInfos),E=T.next();!E.done;E=T.next())vQ(E.value)?m=!0:e=!0;m=m&&e;e=0;T=g.dv(z.yx.experiments,"html5_performance_cap_floor");T=z.yx.T?240:T;J=g.y(J.K.videoInfos);for(E=J.next();!E.done;E=J.next()){var Z=E.value;if(!m||!vQ(Z))if(E=bs(Z.rb,Z.video.fps,z.S),Z=Z.video.qualityOrdinal,Math.max(E,T)>=Z){e=Z;break}}return new EM(0,e,!1,"b")}; +C3u=function(z,J){var m=z.H1.BX();return m.isInline()&&!J.hP?new EM(0,480,!1,"v"):m.isBackground()&&bE()/1E3>60&&!g.SP(z.yx)?new EM(0,360,!1,"v"):tc}; +aib=function(z,J,m){if(z.yx.experiments.j4("html5_disable_client_autonav_cap_for_onesie")&&J.fetchType==="onesie"||g.SP(z.yx)&&(uK(-1)>=1080||J.osid))return tc;var e=g.dv(z.yx.experiments,"html5_autonav_quality_cap"),T=g.dv(z.yx.experiments,"html5_autonav_cap_idle_secs");return e&&J.isAutonav&&bE()/1E3>T?(m&&(e=p4u(z,m,e)),new EM(0,e,!1,"e")):tc}; +p4u=function(z,J,m){if(z.C("html5_optimality_defaults_chooses_next_higher")&&m)for(z=J.K.videoInfos,J=1;J=0||(z.provider.H1.getVisibilityState()===3?z.Z=!0:(z.K=g.sC(z.provider),z.delay.start()))}; +SC4=function(z){if(!(z.T<0)){var J=g.sC(z.provider),m=J-z.U;z.U=J;z.playerState.state===8?z.playTimeSecs+=m:z.playerState.isBuffering()&&!g.R(z.playerState,16)&&(z.rebufferTimeSecs+=m)}}; +fij=function(z){var J;switch((J=z.yx.playerCanaryStage)==null?void 0:J.toLowerCase()){case "xsmall":return"HTML5_PLAYER_CANARY_STAGE_XSMALL";case "small":return"HTML5_PLAYER_CANARY_STAGE_SMALL";case "medium":return"HTML5_PLAYER_CANARY_STAGE_MEDIUM";case "large":return"HTML5_PLAYER_CANARY_STAGE_LARGE";default:return"HTML5_PLAYER_CANARY_STAGE_UNSPECIFIED"}}; +DC1=function(z){return window.PressureObserver&&new window.PressureObserver(z)}; +blq=function(z){z=z===void 0?DC1:z;g.h.call(this);var J=this;try{this.S=z(function(e){J.T=e.at(-1)}); +var m;this.U=(m=this.S)==null?void 0:m.observe("cpu",{sampleInterval:2E3}).catch(function(e){e instanceof DOMException&&(J.K=e)})}catch(e){e instanceof DOMException&&(this.K=e)}}; +$Cu=function(z){var J={},m=window.h5vcc;J.hwConcurrency=navigator.hardwareConcurrency;z.K&&(J.cpe=z.K.message);z.T&&(J.cpt=z.T.time,J.cps=z.T.state);if(m==null?0:m.cVal)J.cb2s=m.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),J.cb5s=m.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),J.cb30s=m.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return J}; +gMj=function(z){var J;g.D(function(m){switch(m.K){case 1:return g.Yu(m,2),g.S(m,z.U,4);case 4:g.aq(m,3);break;case 2:g.Kq(m);case 3:(J=z.S)==null||J.disconnect(),g.nq(m)}})}; +M_z=function(z,J){J?xCj.test(z):(z=g.iv(z),Object.keys(z).includes("cpn"))}; +oM1=function(z,J,m,e,T,E,Z){var c={format:"RAW"},W={};if(lv(z)&&wj()){if(Z){var l;((l=AHb.uaChPolyfill)==null?void 0:l.state.type)!==2?Z=null:(Z=AHb.uaChPolyfill.state.data.values,Z={"Synth-Sec-CH-UA-Arch":Z.architecture,"Synth-Sec-CH-UA-Model":Z.model,"Synth-Sec-CH-UA-Platform":Z.platform,"Synth-Sec-CH-UA-Platform-Version":Z.platformVersion,"Synth-Sec-CH-UA-Full-Version":Z.uaFullVersion});W=Object.assign(W,Z);c.withCredentials=!0}(Z=g.Qt("EOM_VISITOR_DATA"))?W["X-Goog-EOM-Visitor-Id"]=Z:e?W["X-Goog-Visitor-Id"]= +e:g.Qt("VISITOR_DATA")&&(W["X-Goog-Visitor-Id"]=g.Qt("VISITOR_DATA"));m&&(W["X-Goog-PageId"]=m);(e=J.Tf)&&!sj(J)&&(W["X-Goog-AuthUser"]=e);T&&(W.Authorization="Bearer "+T);J.C("enable_datasync_id_header_in_web_vss_pings")&&J.mY&&J.datasyncId&&(W["X-YouTube-DataSync-Id"]=J.datasyncId);Z||W["X-Goog-Visitor-Id"]||T||m||e?c.withCredentials=!0:J.C("html5_send_cpn_with_options")&&xCj.test(z)&&(c.withCredentials=!0)}Object.keys(W).length>0&&(c.headers=W);E&&(c.onFinish=E);return Object.keys(c).length>1? +c:null}; +j5f=function(z,J,m,e,T,E,Z,c){wj()&&m.token&&(z=cf(z,{ctt:m.token,cttype:m.Dm,mdx_environment:m.mdxEnvironment}));e.C("net_pings_low_priority")&&(J||(J={}),J.priority="low");E||c&&e.C("nwl_skip_retry")?(J==null?J={}:M_z(z,e.C("html5_assert_cpn_with_regex")),Z?JN().sendAndWrite(z,J):JN().sendThenWrite(z,J,c)):J?(M_z(z,e.C("html5_assert_cpn_with_regex")),e.C("net_pings_use_fetch")?ETR(z,J):g.fH(z,J)):g.HA(z,T)}; +hiu=function(z){for(var J=[],m=0;m0&&m>0&&!z.T&&z.S<1E7)try{z.U=z.Z({sampleInterval:J,maxBufferSize:m});var e;(e=z.U)==null||e.addEventListener("samplebufferfull",function(){return g.D(function(T){if(T.K==1)return g.S(T,z.stop(),2);P3s(z);g.nq(T)})})}catch(T){z.T=V_u(T.message)}}; +Iw=function(z,J){var m,e;return!!((m=window.h5vcc)==null?0:(e=m.settings)==null?0:e.set(z,J))}; +Hlq=function(){var z,J,m,e=(z=window.h5vcc)==null?void 0:(J=z.settings)==null?void 0:(m=J.getPersistentSettingAsString)==null?void 0:m.call(J,"cpu_usage_tracker_intervals");if(e!=null){var T;z=(T=JSON.parse(e))!=null?T:[];T=z.filter(function(l){return l.type==="total"}).map(function(l){return l.seconds}); +J=g.y(t_1);for(m=J.next();!m.done;m=J.next())m=m.value,T.indexOf(m)===-1&&z.push({type:"total",seconds:m});var E,Z;(E=window.h5vcc)==null||(Z=E.settings)==null||Z.set("cpu_usage_tracker_intervals_enabled",1);var c,W;(c=window.h5vcc)==null||(W=c.settings)==null||W.set("cpu_usage_tracker_intervals",JSON.stringify(z))}}; +UCq=function(){var z=window.H5vccPlatformService,J="";if(z&&z.has("dev.cobalt.coat.clientloginfo")&&(z=z.open("dev.cobalt.coat.clientloginfo",function(){}))){var m=z.send(new ArrayBuffer(0)); +m&&(J=String.fromCharCode.apply(String,g.X(new Uint8Array(m))));z.close()}return J}; +g.yn=function(z,J){g.h.call(this);var m=this;this.provider=z;this.logger=new g.ZM("qoe");this.K=new Map;this.sequenceNumber=1;this.Y=NaN;this.B7="N";this.B=this.Gr=this.Ig=this.Gf=this.S=0;this.Rs=this.h6=this.V=this.qD="";this.ED=this.Lh=NaN;this.l8=0;this.OD=-1;this.Wr=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.IT=this.isEmbargoed=this.x3=this.isOffline=this.isBuffering=!1;this.yv=[];this.Ry=null;this.tZ=this.U=this.Hd=this.X=!1;this.T=-1;this.nh=!1;this.qx=new g.vl(this.Qy4,750,this);this.B9= +this.adCpn=this.fh=this.contentCpn="";this.adFormat=void 0;this.hw=0;this.yH=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.Zo=new Set(["gd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.GS=!1;this.OC=NaN;this.Qx=0;this.gE=!1;this.wb=0;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.ub=!1;this.So={v_:function(T){m.v_(T)}, +IJ4:function(){return m.Z}, +vU:function(){return m.contentCpn}, +yxW:function(){return m.fh}, +reportStats:function(){m.reportStats()}, +cT3:function(){return m.K.get("cat")||[]}, +Dx:function(T){return m.K.get(T)||[]}, +FL4:function(){return m.K}, +rx3:function(){return m.wb}, +n$z:function(){return{adCpn:m.adCpn,B9:m.B9,adFormat:m.adFormat}}}; +this.Tf=this.provider.yx.C("html5_qoe_relaxed_reporting");var e=g.dv(this.provider.yx.experiments,"html5_qoe_proto_mock_length");e&&!OB.length&&(OB=hiu(e));g.u(this,this.qx);try{navigator.getBattery().then(function(T){m.Ry=T})}catch(T){}g.po(this,0,"vps",["N"]); +z.yx.AZ()&&(this.Qx=(0,g.b5)(),this.OC=g.Go(function(){var T=(0,g.b5)(),E=T-m.Qx;E>500&&m.ph("vmlock",{diff:E.toFixed()});m.Qx=T},250)); +z.H1.wW()&&J&&(this.wb=J-Math.round(g.sC(z)*1E3));this.provider.videoData.h8&&(this.remoteControlMode=Ri4[this.provider.videoData.h8]||0);this.provider.videoData.wu&&(J=hFR(this.provider.videoData.wu),J==null?0:J.length)&&(this.remoteConnectedDevices=J);if(z.yx.AZ()||z.C("html5_log_cpu_info"))this.O2=new blq,g.u(this,this.O2);J=g.dv(z.yx.experiments,"html5_js_self_profiler_sample_interval_ms");z=g.dv(z.yx.experiments,"html5_js_self_profiler_max_samples");J>0&&z>0&&(this.ND=new da(J,z),g.u(this,this.ND))}; +N2=function(z,J,m){var e=z.K.get(J);e?e.push(m):z.K.set(J,[m])}; +g.po=function(z,J,m,e){N2(z,m,J.toFixed(3)+":"+e.join(":"))}; +kgE=function(z,J){var m=z.adCpn||z.provider.videoData.clientPlaybackNonce,e=z.provider.getCurrentTime(m);g.po(z,J,"cmt",[e.toFixed(3)]);e=z.provider.Ap(m);if(z.Z&&e*1E3>z.Z.PH+100&&z.Z){var T=z.Z;m=T.isAd;e=e*1E3-T.PH;z.iZ=J*1E3-T.zd4-e-T.Ldi;T=(0,g.b5)()-e;J=z.iZ;e=z.provider.videoData;var E=e.isAd();if(m||E){E=(m?"ad":"video")+"_to_"+(E?"ad":"video");var Z={};e.Y&&(Z.cttAuthInfo={token:e.Y,videoId:e.videoId});Z.startTime=T-J;Hh(E,Z);g.tR({targetVideoId:e.videoId,targetCpn:e.clientPlaybackNonce}, +E);Ph("pbs",T,E)}else T=z.provider.H1.uU(),T.Y!==e.clientPlaybackNonce?(T.Z=e.clientPlaybackNonce,T.T=J):e.pA()||g.hr(new g.vR("CSI timing logged before gllat",{cpn:e.clientPlaybackNonce}));z.ph("gllat",{l:z.iZ.toFixed(),prev_ad:+m});delete z.Z}}; +G$=function(z,J){J=J===void 0?NaN:J;J=J>=0?J:g.sC(z.provider);var m=z.provider.H1.vV(),e=m.Ac-(z.Lh||0);e>0&&g.po(z,J,"bwm",[e,(m.F6-(z.ED||0)).toFixed(3)]);isNaN(z.Lh)&&m.Ac&&z.isOffline&&z.v_(!1);z.Lh=m.Ac;z.ED=m.F6;isNaN(m.bandwidthEstimate)||g.po(z,J,"bwe",[m.bandwidthEstimate.toFixed(0)]);z.provider.yx.AZ()&&Object.keys(m.K).length!==0&&z.ph("bwinfo",m.K);if(z.provider.yx.AZ()||z.provider.yx.C("html5_log_meminfo"))e=eIq(),Object.values(e).some(function(E){return E!==void 0})&&z.ph("meminfo", +e); +if(z.provider.yx.AZ()||z.provider.yx.C("html5_log_cpu_info")){var T;(e=(T=z.O2)==null?void 0:$Cu(T))&&Object.values(e).some(function(E){return E!=null})&&z.ph("cpuinfo",e)}z.ND&&z.ph("jsprof",z.ND.flush()); +z.Ry&&g.po(z,J,"bat",[z.Ry.level,z.Ry.charging?"1":"0"]);T=z.provider.H1.getVisibilityState();z.OD!==T&&(g.po(z,J,"vis",[T]),z.OD=T);kgE(z,J);(T=Lqq(z.provider))&&T!==z.l8&&(g.po(z,J,"conn",[T]),z.l8=T);Q5u(z,J,m)}; +Q5u=function(z,J,m){if(!isNaN(m.jR)){var e=m.jR;m.T96E3&&(new g.vl(z.reportStats,0,z)).start()}}; +rHu=function(z){z.provider.videoData.yv&&X4(z,"prefetch");z.provider.videoData.l8&&z.ph("reload",{r:z.provider.videoData.reloadReason,ct:z.provider.videoData.l8});z.provider.videoData.yH&&X4(z,"monitor");z.provider.videoData.isLivePlayback&&X4(z,"live");rK&&X4(z,"streaming");z.provider.videoData.h8&&z.ph("ctrl",{mode:z.provider.videoData.h8},!0);if(z.provider.videoData.wu){var J=z.provider.videoData.wu.replace(/,/g,"_");z.ph("ytp",{type:J},!0)}z.provider.videoData.w7&&(J=z.provider.videoData.w7.replace(/,/g, +"."),z.ph("ytrexp",{ids:J},!0));var m=z.provider.videoData;J=z.provider.yx.C("enable_white_noise")||z.provider.yx.C("enable_webgl_noop");m=g.OH(m)||g.fn(m)||g.DR(m)||g.bi(m);(J||m)&&(J=(0,g.no)())&&z.K.set("gpu",[J]);tX(z.provider.videoData)&&g.po(z,g.sC(z.provider),"dt",["1"]);z.provider.yx.AZ()&&(J=(0,g.b5)()-z.provider.yx.rL,z.ph("playerage",{secs:Math.pow(1.6,Math.round(Math.log(J/1E3)/Math.log(1.6))).toFixed()}));z.U=!0;z.Y=g.Go(function(){z.reportStats()},1E4)}; +Jgz=function(z,J,m){var e=g.sC(z.provider);zZR(z,e,J,0,m);G$(z,e);s54(z)}; +zZR=function(z,J,m,e,T){var E=z.provider.yx.K.cbrver;z.provider.yx.K.cbr==="Chrome"&&/^96[.]/.test(E)&&m==="net.badstatus"&&/rc\.500/.test(T)&&m2f(z,3);z.provider.yx.C("html5_use_ump")&&/b248180278/.test(T)&&m2f(z,4);E=z.provider.getCurrentTime(z.adCpn||z.provider.videoData.clientPlaybackNonce);e=e===1?"fatal":"";m=[m,e,E.toFixed(3)];e&&(T+=";a6s."+wY());T&&m.push(eZq(T));g.po(z,J,"error",m);z.U=!0}; +Pis=function(z,J){var m=g.sC(z.provider);if(!z.provider.yx.experiments.j4("html5_refactor_sabr_video_format_selection_logging")||J.K.id!==z.qD){var e=[J.K.id,J.T,z.qD,J.reason];J.token&&e.push(J.token);g.po(z,m,"vfs",e);z.qD=J.K.id;e=z.provider.H1.getPlayerSize();if(e.width>0&&e.height>0){e=[Math.round(e.width),Math.round(e.height)];var T=g.Qs();T>1&&e.push(T);g.po(z,m,"view",e)}z.Hd||(z.provider.yx.AZ()&&X4(z,"rqs2"),z.provider.videoData.K&&db(z.provider.videoData.K)&&z.K.set("preload",["1"]));z.Hd= +!0;z.U=!0}J.reason==="m"&&++z.hw===100&&m2f(z,2);g.po(z,m,"vps",[z.B7]);z.Tf||z.reportStats(m)}; +Taj=function(z){z.T>=0||(z.provider.yx.XH||z.provider.H1.getVisibilityState()!==3?z.T=g.sC(z.provider):z.nh=!0)}; +EFE=function(z,J,m,e){if(m!==z.B7){z.Tf||J=10&&z.playTimeSecs<=180&&(z.K.set("qoealert",["1"]),z.IT=!0)),m!=="B"||z.B7!=="PL"&&z.B7!=="PB"||(z.isBuffering=!0),z.S=J);z.B7==="PL"&&(m==="B"||m==="S")||z.provider.yx.AZ()?G$(z,J):(z.GS||m!=="PL"||(z.GS=!0,Q5u(z,J,z.provider.H1.vV())),kgE(z,J));m==="PL"&&g.sD(z.qx);var T=[m];m==="S"&&e&&T.push("ss."+e);g.po(z,J,"vps", +T);z.B7=m;z.Gf=J;z.S=J;z.U=!0}}; +Vgf=function(z,J,m){if(z.provider.yx.experiments.j4("html5_refactor_sabr_audio_format_selection_logging")){J=m.K;var e=[J.audio&&J.video?J.NB?J.NB:"":J.id];J.sC&&J.sC.id&&e.push(J.sC.id);J=e.join(";");J!==z.V&&(e=[J,z.V,m.reason],m.token&&e.push(m.token),g.po(z,g.sC(z.provider),"afs",e),z.V=J)}else m.K.id!==z.V&&(e=[m.K.id,z.V,m.reason],m.token&&e.push(m.token),g.po(z,J,"afs",e),z.V=m.K.id)}; +X4=function(z,J){N2(z,"cat",J)}; +YF=function(z,J,m,e,T,E){var Z=g.sC(z.provider);m!==1&&m!==3&&m!==5||g.po(z,Z,"vps",[z.B7]);N2(z,"xvt","t."+Z.toFixed(3)+";m."+E.toFixed(3)+";g."+J+";tt."+m+";np.0;c."+e+";d."+T)}; +m2f=function(z,J){z.tZ||(N2(z,"fcnz",""+J),z.tZ=!0)}; +eZq=function(z){/[^a-zA-Z0-9;.!_-]/.test(z)&&(z=z.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return z}; +Zo1=function(z){this.provider=z;this.V=!1;this.K=0;this.U=-1;this.l7=NaN;this.S=0;this.segments=[];this.Y=this.Z=0;this.previouslyEnded=!1;this.B=this.provider.H1.getVolume();this.X=this.provider.H1.isMuted()?1:0;this.T=Co(this.provider)}; +aw=function(z){z.T.startTime=z.S;z.T.endTime=z.K;var J=!1;z.segments.length&&g.kO(z.segments).isEmpty()?(z.segments[z.segments.length-1].previouslyEnded&&(z.T.previouslyEnded=!0),z.segments[z.segments.length-1]=z.T,J=!0):z.segments.length&&z.T.isEmpty()||(z.segments.push(z.T),J=!0);J?z.T.endTime===0&&(z.previouslyEnded=!1):z.T.previouslyEnded&&(z.previouslyEnded=!0);z.Z+=z.K-z.S;z.T=Co(z.provider);z.T.previouslyEnded=z.previouslyEnded;z.previouslyEnded=!1;z.S=z.K}; +iob=function(z){FQE(z);z.Y=g.Go(function(){z.update()},100); +z.l7=g.sC(z.provider);z.T=Co(z.provider)}; +FQE=function(z){g.nH(z.Y);z.Y=NaN}; +cg1=function(z,J,m){m-=z.l7;return J===z.K&&m>.5}; +WQs=function(z,J,m,e){this.yx=J;this.OC=m;this.segments=[];this.experimentIds=[];this.qD=this.GS=this.isFinal=this.delayThresholdMet=this.tZ=this.Wr=this.autoplay=this.autonav=!1;this.Rs="yt";this.Y=[];this.V=this.B=null;this.sendVisitorIdHeader=this.ND=!1;this.X=this.pageId="";this.Z=m==="watchtime";this.S=m==="playback";this.Tf=m==="atr";this.XH=m==="engage";this.sendVisitorIdHeader=!1;this.uri=this.Tf?"/api/stats/"+m:"//"+J.Oj+"/api/stats/"+m;e&&(this.GS=e.fs,e.rtn&&(this.V=e.rtn),this.Z?(this.playerState= +e.state,e.rti>0&&(this.B=e.rti)):(this.Bk=e.mos,this.o1=e.volume,e.at&&(this.adType=e.at)),e.autonav&&(this.autonav=e.autonav),e.inview!=null&&(this.ED=e.inview),e.size&&(this.l8=e.size),e.playerwidth&&(this.playerWidth=e.playerwidth),e.playerheight&&(this.playerHeight=e.playerheight));this.Zo=g.oi(J.K);this.X=zt(J.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.X==="all"||this.X==="once")this.IT=g.oi(J.OC);this.qp=J.nh;this.experimentIds=aH4(J.experiments);this.Lh=J.IT;this.Rs=J.Ry;this.region= +J.region;this.userAge=J.userAge;this.O2=J.oW;this.qx=bE();this.sendVisitorIdHeader=J.sendVisitorIdHeader;this.wb=J.C("vss_pings_using_networkless")||J.C("kevlar_woffle");this.rL=J.C("vss_final_ping_send_and_write");this.x3=J.C("vss_use_send_and_write");this.pageId=J.pageId;this.s4=J.C("vss_playback_use_send_and_write");J.livingRoomAppMode&&(this.livingRoomAppMode=J.livingRoomAppMode);this.gW=J.U&&J.C("embeds_append_synth_ch_headers");g.fi(J)&&(this.Gf=J.wb);g.ds(g.jR(J))&&this.Y.push(1);this.accessToken= +g.ui(z);z.E7[this.OC]?this.U=z.E7[this.OC]:z.E7.playback&&(this.U=z.E7.playback);this.adFormat=z.adFormat;this.adQueryId=z.adQueryId;this.autoplay=hX(z);this.S&&(this.Wr=(z.C("html5_enable_log_server_autoplay")||z.C("enable_cleanup_masthead_autoplay_hack_fix"))&&z.rk&&ML(z)==="adunit"?!0:!1);this.autonav=z.isAutonav||this.autonav;this.contentVideoId=oN(z);this.clientPlaybackNonce=z.clientPlaybackNonce;this.tZ=z.yb;z.Y&&(this.Ry=z.Y,this.Hd=z.nJ);z.mdxEnvironment&&(this.mdxEnvironment=z.mdxEnvironment); +this.K=z.ND;this.gE=z.gE;z.T&&(this.yv=z.T.itag,z.U&&z.U.itag!==this.yv&&(this.yH=z.U.itag));z.K&&db(z.K)&&(this.offlineDownloadUserChoice="1");this.eventLabel=ML(z);this.qD=z.XH?!1:z.Bk;this.hw=z.zJ;if(J=Xr(z))this.vA=J;this.SC=z.H2;this.partnerId=z.partnerId;this.eventId=z.eventId;this.playlistId=z.Or||z.playlistId;this.eA=z.eA;this.h8=z.h8;this.wu=z.wu;this.u7=z.u7;this.subscribed=z.subscribed;this.videoId=z.videoId;this.videoMetadata=z.videoMetadata;this.visitorData=z.visitorData;this.osid=z.osid; +this.M9=z.M9;this.referrer=z.referrer;this.vR=z.Xh||z.vR;this.nh=z.fW;this.mQ=z.mQ;this.userGenderAge=z.userGenderAge;this.Iw=z.Iw;this.embedsRct=z.embedsRct;this.embedsRctn=z.embedsRctn;g.fi(this.yx)&&z.mutedAutoplay&&(z.mutedAutoplayDurationMode===2&&z.limitedPlaybackDurationInSeconds===0&&z.endSeconds===0?this.Y.push(7):this.Y.push(2));z.isEmbedsShortsMode(new g.XT(this.playerWidth,this.playerHeight),!!this.playlistId)&&this.Y.push(3);g.TD(z)&&this.Y.push(4);this.h6=z.J3;z.compositeLiveIngestionOffsetToken&& +(this.compositeLiveIngestionOffsetToken=z.compositeLiveIngestionOffsetToken)}; +lab=function(z,J){var m=z.sendVisitorIdHeader?z.visitorData:void 0;return g.El(z.yx,z.accessToken).then(function(e){return oM1(z.uri,z.yx,z.pageId,m,e,J,z.gW)})}; +d21=function(z,J){return function(){z.yx.C("html5_simplify_pings")?(z.K=z.Qx,z.OD=J(),z.qx=0,z.send()):lab(z).then(function(m){var e=w7u(z);e.cmt=e.len;e.lact="0";var T=J().toFixed(3);e.rt=Number(T).toString();e=g.v1(z.uri,e);z.yx.C("vss_through_gel_double")&&qBu(e);z.wb?(m==null&&(m={}),z.x3?JN().sendAndWrite(e,m):JN().sendThenWrite(e,m)):m?g.fH(e,m):g.HA(e)})}}; +w7u=function(z){var J={ns:z.Rs,el:z.eventLabel,cpn:z.clientPlaybackNonce,ver:2,cmt:z.T(z.K),fmt:z.yv,fs:z.GS?"1":"0",rt:z.T(z.OD),adformat:z.adFormat,content_v:z.contentVideoId,euri:z.qp,lact:z.qx,live:z.vA,cl:(740099560).toString(),mos:z.Bk,state:z.playerState,volume:z.o1};z.subscribed&&(J.subscribed="1");Object.assign(J,z.Zo);z.X==="all"?Object.assign(J,z.IT):z.X==="once"&&z.S&&Object.assign(J,z.IT);z.autoplay&&(J.autoplay="1");z.Wr&&(J.sautoplay="1");z.tZ&&(J.dni="1");!z.Z&&z.Gf&&(J.epm=Iau[z.Gf]); +z.isFinal&&(J["final"]="1");z.qD&&(J.splay="1");z.gE&&(J.delay=z.gE);z.Lh&&(J.hl=z.Lh);z.region&&(J.cr=z.region);z.userGenderAge&&(J.uga=z.userGenderAge);z.userAge!==void 0&&z.O2&&(J.uga=z.O2+z.userAge);z.Qx!==void 0&&(J.len=z.T(z.Qx));!z.Z&&z.experimentIds.length>0&&(J.fexp=z.experimentIds.toString());z.V!==null&&(J.rtn=z.T(z.V));z.vR&&(J.feature=z.vR);z.h8&&(J.ctrl=z.h8);z.wu&&(J.ytr=z.wu);z.yH&&(J.afmt=z.yH);z.offlineDownloadUserChoice&&(J.ODUC=z.offlineDownloadUserChoice);z.ub&&(J.lio=z.T(z.ub)); +z.Z?(J.idpj=z.hw,J.ldpj=z.SC,z.delayThresholdMet&&(J.dtm="1"),z.B!=null&&(J.rti=z.T(z.B)),z.Iw&&(J.ald=z.Iw),z.compositeLiveIngestionOffsetToken&&(J.clio=z.compositeLiveIngestionOffsetToken)):z.adType!==void 0&&(J.at=z.adType);z.l8&&(z.S||z.Z)&&(J.size=z.l8);z.S&&z.Y.length&&(J.pbstyle=z.Y.join(","));z.ED!=null&&(z.S||z.Z)&&(J.inview=z.T(z.ED));z.Z&&(J.volume=Ko(z,g.Ch(z.segments,function(e){return e.volume})),J.st=Ko(z,g.Ch(z.segments,function(e){return e.startTime})),J.et=Ko(z,g.Ch(z.segments,function(e){return e.endTime})), +aS(z.segments,function(e){return e.playbackRate!==1})&&(J.rate=Ko(z,g.Ch(z.segments,function(e){return e.playbackRate}))),aS(z.segments,function(e){return e.K!=="-"})&&(J.als=g.Ch(z.segments,function(e){return e.K}).join(",")),aS(z.segments,function(e){return e.previouslyEnded})&&(J.pe=g.Ch(z.segments,function(e){return""+ +e.previouslyEnded}).join(","))); +J.muted=Ko(z,g.Ch(z.segments,function(e){return e.muted?1:0})); +aS(z.segments,function(e){return e.visibilityState!==0})&&(J.vis=Ko(z,g.Ch(z.segments,function(e){return e.visibilityState}))); +aS(z.segments,function(e){return e.connectionType!==0})&&(J.conn=Ko(z,g.Ch(z.segments,function(e){return e.connectionType}))); +aS(z.segments,function(e){return e.T!==0})&&(J.blo=Ko(z,g.Ch(z.segments,function(e){return e.T}))); +aS(z.segments,function(e){return!!e.S})&&(J.blo=g.Ch(z.segments,function(e){return e.S}).join(",")); +aS(z.segments,function(e){return!!e.compositeLiveStatusToken})&&(J.cbs=g.Ch(z.segments,function(e){return e.compositeLiveStatusToken}).join(",")); +aS(z.segments,function(e){return e.U!=="-"})&&(J.cc=g.Ch(z.segments,function(e){return e.U}).join(",")); +aS(z.segments,function(e){return e.clipId!=="-"})&&(J.clipid=g.Ch(z.segments,function(e){return e.clipId}).join(",")); +if(aS(z.segments,function(e){return!!e.audioId})){var m="au"; +z.S&&(m="au_d");J[m]=g.Ch(z.segments,function(e){return e.audioId}).join(",")}wj()&&z.Ry&&(J.ctt=z.Ry,J.cttype=z.Hd,J.mdx_environment=z.mdxEnvironment); +z.XH&&(J.etype=z.fh!==void 0?z.fh:0);z.nh&&(J.uoo=z.nh);z.livingRoomAppMode&&z.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(J.clram=Ooq[z.livingRoomAppMode]||z.livingRoomAppMode);z.U?p7u(z,J):(J.docid=z.videoId,J.referrer=z.referrer,J.ei=z.eventId,J.of=z.M9,J.osid=z.osid,J.vm=z.videoMetadata,z.adQueryId&&(J.aqi=z.adQueryId),z.autonav&&(J.autonav="1"),z.playlistId&&(J.list=z.playlistId),z.u7&&(J.ssrt="1"),z.mQ&&(J.upt=z.mQ));z.S&&(z.embedsRct&&(J.rct=z.embedsRct),z.embedsRctn&&(J.rctn= +z.embedsRctn),z.compositeLiveIngestionOffsetToken&&(J.clio=z.compositeLiveIngestionOffsetToken));z.h6&&(J.host_cpn=z.h6);return J}; +p7u=function(z,J){if(J&&z.U){var m=new Set(["q","feature","mos"]),e=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),T=new Set(["aqi","autonav","list","ssrt","upt"]);z.U.ns==="3pp"&&(J.ns="3pp");for(var E=g.y(Object.keys(z.U)),Z=E.next();!Z.done;Z=E.next())Z=Z.value,e.has(Z)||m.has(Z)||T.has(Z)&&!z.U[Z]||(J[Z]=z.U[Z])}}; +Ko=function(z,J){return g.Ch(J,z.T).join(",")}; +qBu=function(z){z.indexOf("watchtime")!==-1&&g.qq("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:z}})}; +ygz=function(z,J){z.attestationResponse&&lab(z).then(function(m){m=m||{};m.method="POST";m.postParams={atr:z.attestationResponse};z.wb?z.x3?JN().sendAndWrite(J,m):JN().sendThenWrite(J,m):g.fH(J,m)})}; +B7=function(z){g.h.call(this);this.provider=z;this.Y="paused";this.Z=NaN;this.V=[10,10,10,40];this.B=this.X=0;this.fh=this.wb=this.Tf=this.Ry=this.S=!1;this.T=this.U=NaN;this.logger=new g.ZM("vss");this.K=new Zo1(z)}; +YBf=function(z){if(!z.S){z.provider.videoData.TP===16623&&g.hr(Error("Playback for EmbedPage"));var J=SU(z,"playback");z.V=NaE(z);iob(z.K);J.V=fo(z);z.T>0&&(J.K-=z.T);J.send();if(z.provider.videoData.Hw){J=z.provider.yx;var m=z.provider.videoData,e={html5:"1",video_id:m.videoId,cpn:m.clientPlaybackNonce,ei:m.eventId,ptk:m.Hw,oid:m.Xk,ptchn:m.qP,pltype:m.Wj,content_v:oN(m)};m.q7&&Object.assign(e,{m:m.q7});J=g.v1(J.qA+"ptracking",e);G$R(z,J)}z.provider.videoData.gE||(X7b(z),nFb(z),z.A4());z.S=!0;z= +z.K;z.K=z.provider.H1.Ap();z.l7=g.sC(z.provider);!(z.S===0&&z.K<5)&&z.K-z.S>2&&(z.S=z.K);z.V=!0}}; +NaE=function(z){var J=z.provider.videoData.zJ,m=z.provider.videoData.H2,e=[10+J,10,10,40+m-J,40],T,E=(T=z.provider.videoData.getPlayerResponse())==null?void 0:T.playbackTracking,Z=E==null?void 0:E.videostatsScheduledFlushWalltimeSeconds;T=E==null?void 0:E.videostatsDefaultFlushIntervalSeconds;if(!(Z&&Z.length>0&&T))return z.logger.K(347111855,"Unexpected scheduled pings config "+Z+" "+T),e;J=[Z[0]+J].concat(g.X(Z.slice(1).map(function(c,W){return c-Z[W]})),[T+m-J, +T]);return J.some(function(c){return c<0})?(z.logger.K(347111855,"Neg vss scheduled pings "+Z+" "+T),e):J}; +fo=function(z,J){J=J===void 0?NaN:J;var m=g.sC(z.provider);J=isNaN(J)?m:J;J=Math.ceil(J);var e=z.V[z.X];z.X+11E3;!(E.length>1)&&E[0].isEmpty()||c||(Z.V=fo(z,T));Z.send();z.B++}},(T-m)*1E3); +return z.U=T}; +Da=function(z){g.Xj(z.Z);z.Z=NaN}; +CLf=function(z){z.K.update();z=z.K;z.segments.length&&z.K===z.S||aw(z);var J=z.segments;z.segments=[];return J}; +SU=function(z,J){var m=KQu(z.provider);Object.assign(m,{state:z.Y});J=new WQs(z.provider.videoData,z.provider.yx,J,m);J.K=z.provider.H1.Ap();m=z.provider.videoData.clientPlaybackNonce;J.K=z.provider.H1.Hs(m);z.provider.videoData.isLivePlayback||(J.Qx=z.provider.H1.getDuration(m));z.provider.videoData.K&&(m=z.provider.videoData.K.Hk(J.K))&&(J.ub=m-J.K);J.OD=g.sC(z.provider);J.segments=[Co(z.provider)];return J}; +aaj=function(z,J){var m=SU(z,"watchtime");Baf(z)&&(m.delayThresholdMet=!0,z.Tf=!0);if(z.T>0){for(var e=g.y(J),T=e.next();!T.done;T=e.next())T=T.value,T.startTime-=z.T,T.endTime-=z.T;m.K-=z.T}else m.K=z.K.iD();m.segments=J;return m}; +bL=function(z,J){var m=SBu(z,!isNaN(z.U));J&&(z.U=NaN);return m}; +SBu=function(z,J){var m=aaj(z,CLf(z));!isNaN(z.U)&&J&&(m.B=z.U);return m}; +Baf=function(z){var J;if(J=z.provider.videoData.isLoaded()&&z.provider.videoData.gE&&z.S&&!z.Tf)J=z.K,J=J.Z+J.provider.H1.Ap()-J.S>=z.provider.videoData.gE;return!!J}; +X7b=function(z){z.provider.videoData.youtubeRemarketingUrl&&!z.wb&&(G$R(z,z.provider.videoData.youtubeRemarketingUrl),z.wb=!0)}; +nFb=function(z){z.provider.videoData.googleRemarketingUrl&&!z.fh&&(G$R(z,z.provider.videoData.googleRemarketingUrl),z.fh=!0)}; +fau=function(z){if(!z.mF()&&z.S){z.Y="paused";var J=bL(z);J.isFinal=!0;J.send();z.dispose()}}; +D2q=function(z,J){if(!z.mF())if(g.R(J.state,2)||g.R(J.state,512)){if(z.Y="paused",g.yK(J,2)||g.yK(J,512))g.yK(J,2)&&(z.K.previouslyEnded=!0),z.S&&(Da(z),bL(z).send(),z.U=NaN)}else if(g.R(J.state,8)){z.Y="playing";var m=z.S&&isNaN(z.Z)?fo(z):NaN;if(!isNaN(m)&&(pO(J,64)<0||pO(J,512)<0)){var e=SBu(z,!1);e.V=m;e.send()}g.yK(J,16)&&J.state.seekSource===58&&(z.K.previouslyEnded=!0)}else z.Y="paused"}; +bo1=function(z,J,m){if(!z.Ry){m||(m=SU(z,"atr"));m.attestationResponse=J;try{m.send()}catch(e){if(e.message!=="Unknown Error")throw e;}z.Ry=!0}}; +G$R=function(z,J){var m=z.provider.yx;g.El(z.provider.yx,g.ui(z.provider.videoData)).then(function(e){var T=z.provider.yx.pageId,E=z.provider.yx.sendVisitorIdHeader?z.provider.videoData.visitorData:void 0,Z=z.provider.yx.C("vss_pings_using_networkless")||z.provider.yx.C("kevlar_woffle"),c=z.provider.yx.C("allow_skip_networkless");e=oM1(J,m,T,E,e);j5f(J,e,{token:z.provider.videoData.Y,Dm:z.provider.videoData.nJ,mdxEnvironment:z.provider.videoData.mdxEnvironment},m,void 0,Z&&!c,!1,!0)})}; +$2u=function(){this.endTime=this.startTime=-1;this.U="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.T=0;this.compositeLiveStatusToken=this.S=void 0;this.volume=this.connectionType=0;this.muted=!1;this.K=this.clipId="-";this.previouslyEnded=!1}; +$F=function(z,J,m){this.videoData=z;this.yx=J;this.H1=m;this.K=void 0}; +g.sC=function(z){return gFs(z)()}; +gFs=function(z){if(!z.K){var J=g.z9(function(e){var T=(0,g.b5)();e&&T<=631152E6&&(z.H1.ph("ytnerror",{issue:28799967,value:""+T}),T=(new Date).getTime()+2);return T},z.yx.C("html5_validate_yt_now")),m=J(); +z.K=function(){return Math.round(J()-m)/1E3}; +z.H1.UG()}return z.K}; +KQu=function(z){var J=z.H1.hx()||{};J.fs=z.H1.dD();J.volume=z.H1.getVolume();J.muted=z.H1.isMuted()?1:0;J.mos=J.muted;J.clipid=z.H1.VR();var m;J.playerheight=((m=z.H1.getPlayerSize())==null?void 0:m.height)||0;var e;J.playerwidth=((e=z.H1.getPlayerSize())==null?void 0:e.width)||0;z=z.videoData;m={};z.T&&(m.fmt=z.T.itag,z.U&&(z.Wr?z.U.itag!==z.T.itag:z.U.itag!=z.T.itag)&&(m.afmt=z.U.itag));m.ei=z.eventId;m.list=z.playlistId;m.cpn=z.clientPlaybackNonce;z.videoId&&(m.v=z.videoId);z.iV&&(m.infringe=1); +(z.XH?0:z.Bk)&&(m.splay=1);(e=Xr(z))&&(m.live=e);z.rk&&(m.sautoplay=1);z.oi&&(m.autoplay=1);z.eA&&(m.sdetail=z.eA);z.partnerId&&(m.partnerid=z.partnerId);z.osid&&(m.osid=z.osid);z.i4&&(m.cc=g.$Gs(z.i4));return Object.assign(J,m)}; +Lqq=function(z){var J=qx1();if(J)return x2z[J]||x2z.other;if(g.SP(z.yx)){z=navigator.userAgent;if(/[Ww]ireless[)]/.test(z))return 3;if(/[Ww]ired[)]/.test(z))return 30}return 0}; +Co=function(z){var J=new $2u,m;J.U=((m=KQu(z).cc)==null?void 0:m.toString())||"-";J.playbackRate=z.H1.getPlaybackRate();m=z.H1.getVisibilityState();m!==0&&(J.visibilityState=m);z.yx.Hd&&(J.T=1);J.S=z.videoData.v0;J.compositeLiveStatusToken=z.videoData.compositeLiveStatusToken;m=z.H1.getAudioTrack();m.sC&&m.sC.id&&m.sC.id!=="und"&&(J.audioId=m.sC.id);J.connectionType=Lqq(z);J.volume=z.H1.getVolume();J.muted=z.H1.isMuted();J.clipId=z.H1.VR()||"-";J.K=z.videoData.Rq||"-";return J}; +g.xF=function(z,J){g.h.call(this);var m=this;this.provider=z;this.U=!1;this.S=new Map;this.B7=new g.E3;this.So={VTy:function(){return m.qoe}, +cxz:function(){return m.K}, +en6:function(){return m.T}}; +this.provider.videoData.pZ()&&!this.provider.videoData.Fj&&(this.K=new B7(this.provider),this.K.T=this.provider.videoData.hw/1E3,g.u(this,this.K),this.qoe=new g.yn(this.provider,J),g.u(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.U9=this.provider.videoData.clientPlaybackNonce)&&this.S.set(this.U9,this.K));if(z.yx.playerCanaryState==="canary"||z.yx.playerCanaryState==="holdback")this.T=new q2(this.provider),g.u(this,this.T)}; +MUf=function(z){return!!z.K&&!!z.qoe}; +M2=function(z){z.T&&BIR(z.T);z.qoe&&Taj(z.qoe)}; +Agq=function(z){if(z.qoe){z=z.qoe;for(var J=z.provider.videoData,m=z.provider.yx,e=g.y(m.Oi),T=e.next();!T.done;T=e.next())X4(z,T.value);if(z.provider.C("html5_enable_qoe_cat_list"))for(e=g.y(J.R3),T=e.next();!T.done;T=e.next())X4(z,T.value);else J.Oi&&X4(z,z.provider.videoData.Oi);J.Cq()&&(e=J.K,w0(J)&&X4(z,"manifestless"),e&&YQ(e)&&X4(z,"live-segment-"+YQ(e).toFixed(1)));Fr(J)?X4(z,"sabr"):z.Bw(IN(J));if(VX(J)||J.b8())J.b8()&&X4(z,"ssa"),X4(z,"lifa");czj(J)&&X4(z,"cdm");J.gatewayExperimentGroup&& +(e=J.gatewayExperimentGroup,e==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?e="spkadtrt":e==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(e="spkadctrl"),X4(z,e));m.Ry!=="yt"&&z.K.set("len",[J.lengthSeconds.toFixed(2)]);J.cotn&&!tX(J)&&z.v_(!0);m.AZ()&&(J=UCq())&&z.ph("cblt",{m:J});if(m.C("html5_log_screen_diagonal")){m=z.ph;var E;J=((E=window.H5vccScreen)==null?0:E.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;m.call(z,"cbltdiag",{v:J})}}}; +oFq=function(z){if(z.provider.H1.wW()){if(z.U)return;z.U=!0}z.K&&YBf(z.K);if(z.T){z=z.T;var J=g.sC(z.provider);z.K<0&&(z.K=J,z.delay.start());z.T=J;z.U=J}}; +jwR=function(z,J){z.K&&(z=z.K,J===58?z.K.update():z.S&&(Da(z),bL(z).send(),z.U=NaN))}; +hZu=function(z,J){if(g.yK(J,1024)||g.yK(J,512)||g.yK(J,4)){if(z.T){var m=z.T;m.T>=0||(m.K=-1,m.delay.stop())}z.qoe&&(m=z.qoe,m.X||(m.T=-1))}if(z.provider.videoData.enableServerStitchedDai&&z.U9){var e;(e=z.S.get(z.U9))==null||D2q(e,J)}else z.K&&D2q(z.K,J);if(z.qoe){e=z.qoe;m=J.state;var T=g.sC(e.provider),E=e.getPlayerState(m);EFE(e,T,E,m.seekSource||void 0);E=m.Io;g.R(m,128)&&E&&(E.kS=E.kS||"",zZR(e,T,E.errorCode,E.VP,E.kS));(g.R(m,2)||g.R(m,128))&&e.reportStats(T);m.isPlaying()&&!e.X&&(e.T>=0&& +e.K.set("user_intent",[e.T.toString()]),e.X=!0);s54(e)}z.T&&(e=z.T,SC4(e),e.playerState=J.state,e.T>=0&&g.yK(J,16)&&e.seekCount++,J.state.isError()&&e.send());z.provider.H1.wW()&&(z.B7=J.state)}; +u4E=function(z){z.T&&z.T.send();if(z.qoe){var J=z.qoe;if(J.U){J.B7==="PL"&&(J.B7="N");var m=g.sC(J.provider);g.po(J,m,"vps",[J.B7]);J.X||(J.T>=0&&J.K.set("user_intent",[J.T.toString()]),J.X=!0);J.provider.yx.AZ()&&J.ph("finalized",{});J.x3=!0;J.reportStats(m)}}if(z.provider.videoData.enableServerStitchedDai)for(J=g.y(z.S.values()),m=J.next();!m.done;m=J.next())fau(m.value);else z.K&&fau(z.K);z.dispose()}; +VUb=function(z,J){z.K&&bo1(z.K,J)}; +PLu=function(z){if(!z.K)return null;var J=SU(z.K,"atr");return function(m){z.K&&bo1(z.K,m,J)}}; +tU1=function(z,J,m,e){m.adFormat=m.Rs;var T=J.H1;J=new B7(new $F(m,J.yx,{getDuration:function(){return m.lengthSeconds}, +getCurrentTime:function(){return T.getCurrentTime()}, +Ap:function(){return T.Ap()}, +Hs:function(){return T.Hs()}, +wW:function(){return T.wW()}, +vV:function(){return T.vV()}, +getPlayerSize:function(){return T.getPlayerSize()}, +getAudioTrack:function(){return m.getAudioTrack()}, +getPlaybackRate:function(){return T.getPlaybackRate()}, +e3:function(){return T.e3()}, +getVisibilityState:function(){return T.getVisibilityState()}, +uU:function(){return T.uU()}, +hx:function(){return T.hx()}, +getVolume:function(){return T.getVolume()}, +isMuted:function(){return T.isMuted()}, +dD:function(){return T.dD()}, +VR:function(){return T.VR()}, +getProximaLatencyPreference:function(){return T.getProximaLatencyPreference()}, +UG:function(){T.UG()}, +ph:function(E,Z){T.ph(E,Z)}, +ey:function(){return T.ey()}})); +J.T=e;g.u(z,J);return J}; +Hob=function(){this.jR=0;this.S=this.F6=this.Ac=this.T=NaN;this.K={};this.bandwidthEstimate=NaN}; +Ag=function(z,J,m){g.h.call(this);var e=this;this.yx=z;this.H1=J;this.T=m;this.K=new Map;this.U9="";this.So={IV:function(){return Array.from(e.K.keys())}}}; +U2f=function(z,J){z.K.has(J)&&(u4E(z.K.get(J)),z.K.delete(J))}; +RZ1=function(){this.K=g.Z3;this.array=[]}; +LQu=function(z,J,m){var e=[];for(J=k$E(z,J);Jm)break}return e}; +Qwf=function(z,J){var m=[];z=g.y(z.array);for(var e=z.next();!e.done&&!(e=e.value,e.contains(J)&&m.push(e),e.start>J);e=z.next());return m}; +vFb=function(z){return z.array.slice(k$E(z,0x7ffffffffffff),z.array.length)}; +k$E=function(z,J){z=Wu(z.array,function(m){return J-m.start||1}); +return z<0?-(z+1):z}; +swf=function(z,J){var m=NaN;z=g.y(z.array);for(var e=z.next();!e.done;e=z.next())if(e=e.value,e.contains(J)&&(isNaN(m)||e.endJ&&(isNaN(m)||e.startz.mediaTime+z.Z&&J1)z.U=!0;if((T===void 0?0:T)||isNaN(z.T))z.T=J;if(z.K)J!==z.mediaTime&&(z.K=!1);else if(J>0&&z.mediaTime===J){T=1500;if(z.yx.C("html5_buffer_underrun_transition_fix")){T=g.dv(z.yx.experiments,"html5_min_playback_advance_for_steady_state_secs");var E=g.dv(z.yx.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");T=T>0&&E>0&&Math.abs(J-z.T)(e||!z.U?T:400)}z.mediaTime=J;z.S=m;return!1}; +TP4=function(z,J){this.videoData=z;this.K=J}; +EWq=function(z,J,m){return J.vn(m).then(function(){return Aj(new TP4(J,J.S))},function(e){e instanceof Error&&g.hr(e); +var T=$y('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),E=MO('audio/mp4; codecs="mp4a.40.2"'),Z=T||E,c=J.isLivePlayback&&!g.eR(z.Z,!0);e="fmt.noneavailable";c?e="html5.unsupportedlive":Z||(e="html5.missingapi");Z=c||!Z?2:1;T={buildRej:"1",a:J.im(),d:!!J.OD,drm:J.xE(),f18:J.Ks.indexOf("itag=18")>=0,c18:T};J.K&&(J.xE()?(T.f142=!!J.K.K["142"],T.f149=!!J.K.K["149"],T.f279=!!J.K.K["279"]):(T.f133=!!J.K.K["133"],T.f140=!!J.K.K["140"],T.f242=!!J.K.K["242"]),T.cAAC=E,T.cAVC=MO('video/mp4; codecs="avc1.42001E"'), +T.cVP9=MO('video/webm; codecs="vp9"'));J.Z&&(T.drmsys=J.Z.keySystem,E=0,J.Z.K&&(E=Object.keys(J.Z.K).length),T.drmst=E);return new Sl(e,T,Z)})}; +hg=function(z){this.data=window.Float32Array?new Float32Array(z):Array(z);this.T=this.K=z-1}; +Zb1=function(z){return z.data[z.K]||0}; +FNj=function(z){this.Z=z;this.S=this.T=0;this.U=new hg(50)}; +Vn=function(z,J,m){g.wF.call(this);this.videoData=z;this.experiments=J;this.Z=m;this.T=[];this.yR=0;this.S=!0;this.U=!1;this.Y=0;m=new ib4;z.latencyClass==="ULTRALOW"&&(m.Z=!1);z.yH?m.T=3:g.BH(z)&&(m.T=2);z.latencyClass==="NORMAL"&&(m.U=!0);g.dv(J,"html5_low_latency_adaptive_liveness_adjustment_segments")===0&&g.dv(J,"html5_low_latency_max_allowable_liveness_drift_chunks")===0||z.latencyClass!=="LOW"&&z.latencyClass!=="ULTRALOW"||(m.U=!0);var e=g.dv(J,"html5_liveness_drift_proxima_override");if(IN(z)!== +0&&e){m.K=e;var T;((T=z.K)==null?0:g_1(T))&&m.K--}Fr(z)&&J.j4("html5_sabr_parse_live_metadata_playback_boundaries")&&(m.B=!0);if(g.RQ("trident/")||g.RQ("edge/"))T=g.dv(J,"html5_platform_minimum_readahead_seconds")||3,m.S=Math.max(m.S,T);g.dv(J,"html5_minimum_readahead_seconds")&&(m.S=g.dv(J,"html5_minimum_readahead_seconds"));g.dv(J,"html5_maximum_readahead_seconds")&&(m.X=g.dv(J,"html5_maximum_readahead_seconds"));J.j4("html5_force_adaptive_readahead")&&(m.Z=!0);if(T=g.dv(J,"html5_liveness_drift_chunk_override"))m.K= +T;qL(z)&&(m.K=(m.K+1)/5,z.latencyClass==="LOW"&&(m.K*=2));if(z.latencyClass==="ULTRALOW"||z.latencyClass==="LOW")m.Y=g.dv(J,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,m.V=g.dv(J,"html5_low_latency_max_allowable_liveness_drift_chunks")||10;this.policy=m;this.V=this.policy.T!==1;this.K=uL(this,cbq(this,isNaN(z.liveChunkReadahead)?3:z.liveChunkReadahead,z))}; +WN4=function(z,J){if(J)return J=z.videoData,J=cbq(z,isNaN(J.liveChunkReadahead)?3:J.liveChunkReadahead,J),uL(z,J);if(z.T.length){if(Math.min.apply(null,z.T)>1)return uL(z,z.K-1);if(z.policy.Z)return uL(z,z.K+1)}return z.K}; +lbb=function(z,J){if(!z.T.length)return!1;var m=z.K;z.K=WN4(z,J===void 0?!1:J);if(J=m!==z.K)z.T=[],z.yR=0;return J}; +P7=function(z,J){return J>=z.OS()-wkq(z)}; +qmR=function(z,J,m){J=P7(z,J);m||J?J&&(z.S=!0):z.S=!1;z.V=z.policy.T===2||z.policy.T===3&&z.S}; +dDE=function(z,J){J=P7(z,J);z.U!==J&&z.publish("livestatusshift",J);z.U=J}; +wkq=function(z){var J=z.policy.K;z.U||(J=Math.max(J-1,0));return J*tg(z)}; +cbq=function(z,J,m){m.yH&&J--;qL(m)&&(J=1);if(IN(m)!==0&&(z=g.dv(z.experiments,"html5_live_chunk_readahead_proxima_override"))){J=z;var e;((e=m.K)==null?0:g_1(e))&&J++}return J}; +tg=function(z){return z.videoData.K?YQ(z.videoData.K)||5:5}; +uL=function(z,J){J=Math.max(Math.max(1,Math.ceil(z.policy.S/tg(z))),J);return Math.min(Math.min(8,Math.floor(z.policy.X/tg(z))),J)}; +ib4=function(){this.S=0;this.X=Infinity;this.Z=!0;this.K=2;this.T=1;this.U=!1;this.V=10;this.B=!1;this.Y=1}; +Rw=function(z){g.h.call(this);this.H1=z;this.K=0;this.T=null;this.Y=this.U=0;this.S={};this.yx=this.H1.W();this.Z=new g.vl(this.n1,1E3,this);this.yH=new H7({delayMs:g.dv(this.yx.experiments,"html5_seek_timeout_delay_ms")});this.x3=new H7({delayMs:g.dv(this.yx.experiments,"html5_long_rebuffer_threshold_ms")});this.Hd=UB(this,"html5_seek_set_cmt");this.Lh=UB(this,"html5_seek_jiggle_cmt");this.ND=UB(this,"html5_seek_new_elem");this.ub=UB(this,"html5_unreported_seek_reseek");this.Tf=UB(this,"html5_long_rebuffer_jiggle_cmt"); +this.Qx=UB(this,"html5_long_rebuffer_ssap_clip_not_match");this.wb=new H7({delayMs:2E4});this.qD=UB(this,"html5_seek_new_elem_shorts");this.O2=UB(this,"html5_seek_new_media_source_shorts_reuse");this.nh=UB(this,"html5_seek_new_media_element_shorts_reuse");this.h6=UB(this,"html5_reseek_after_time_jump");this.X=UB(this,"html5_gapless_handoff_close_end_long_rebuffer");this.Ry=UB(this,"html5_gapless_slow_seek");this.B=UB(this,"html5_gapless_slice_append_stuck");this.fh=UB(this,"html5_gapless_slow_start"); +this.V=UB(this,"html5_ads_preroll_lock_timeout");this.gE=UB(this,"html5_ssap_ad_longrebuffer_new_element");this.tZ=new H7({delayMs:g.dv(this.yx.experiments,"html5_skip_slow_ad_delay_ms")||5E3,SF:!this.yx.C("html5_report_slow_ads_as_error")});this.IT=new H7({delayMs:g.dv(this.yx.experiments,"html5_skip_slow_ad_delay_ms")||5E3,SF:!this.yx.C("html5_skip_slow_buffering_ad")});this.GS=new H7({delayMs:g.dv(this.yx.experiments,"html5_slow_start_timeout_delay_ms")});this.Gf=UB(this,"html5_slow_start_no_media_source"); +g.u(this,this.Z)}; +UB=function(z,J){var m=g.dv(z.yx.experiments,J+"_delay_ms");z=z.yx.C(J+"_cfl");return new H7({delayMs:m,SF:z})}; +Ibq=function(z,J){z.K=J}; +kF=function(z,J,m,e,T,E,Z,c){J.test(m)?(z.Br(T,J,Z),J.SF||E()):(J.xS&&J.T&&!J.U?(m=(0,g.b5)(),e?J.K||(J.K=m):J.K=0,E=!e&&m-J.T>J.xS,m=J.K&&m-J.K>J.fk||E?J.U=!0:!1):m=!1,m&&(c=Object.assign({},z.kQ(J),c),c.wn=Z,c.we=T,c.wsuc=e,z.H1.ph("workaroundReport",c),e&&(J.reset(),z.S[T]=!1)))}; +H7=function(z){var J=z===void 0?{}:z;z=J.delayMs===void 0?0:J.delayMs;var m=J.fk===void 0?1E3:J.fk;var e=J.xS===void 0?3E4:J.xS;J=J.SF===void 0?!1:J.SF;this.K=this.T=this.S=this.startTimestamp=0;this.U=!1;this.Z=Math.ceil(z/1E3);this.fk=m;this.xS=e;this.SF=J}; +NPu=function(z){g.h.call(this);var J=this;this.H1=z;this.V=this.K=this.v1=this.mediaElement=this.playbackData=null;this.S=0;this.Z=this.fh=this.U=null;this.Tf=!1;this.tZ=0;this.Ry=!1;this.timestampOffset=0;this.X=!0;this.Lh=0;this.ND=this.GS=!1;this.Y=0;this.O2=!1;this.wb=0;this.yx=this.H1.W();this.videoData=this.H1.getVideoData();this.policy=new Obs;this.B=new Rw(this.H1);this.yH=this.h6=this.Gf=this.T=NaN;this.Qx=new g.vl(function(){pk1(J,!1)},2E3); +this.IT=new g.vl(function(){Lo(J)}); +this.qD=new g.vl(function(){J.Tf=!0;ybz(J,{})}); +this.Hd=NaN;this.x3=new g.vl(function(){var m=J.yx.qp;m.K+=1E4/36E5;m.K-m.S>1/6&&(H5j(m),m.S=m.K);J.x3.start()},1E4); +g.u(this,this.B);g.u(this,this.Qx);g.u(this,this.qD);g.u(this,this.IT);g.u(this,this.x3)}; +nWu=function(z,J){z.playbackData=J;z.videoData.isLivePlayback&&(z.V=new FNj(function(){a:{if(z.playbackData&&z.playbackData.K.K){if(w0(z.videoData)&&z.v1){var m=z.v1.kz.ao()||0;break a}if(z.videoData.K){m=z.videoData.K.wb;break a}}m=0}return m}),z.K=new Vn(z.videoData,z.yx.experiments,function(){return z.Aw(!0)})); +Qn(z.H1)?(J=Gjs(z),J.Qa?(Fr(z.videoData)&&z.Dg(J.Qa,J.startSeconds),z.S=J.startSeconds):J.startSeconds>0&&z.seekTo(J.startSeconds,{i8:"seektimeline_startPlayback",seekSource:15}),z.X=!1):XkE(z)||(z.S=z.S||(g.Lr(z.videoData)?0:z.videoData.startSeconds)||0)}; +CJu=function(z,J){(z.v1=J)?Ymq(z,!0):v7(z)}; +abb=function(z,J){g.sD(z.B.Z);z.C("html5_exponential_memory_for_sticky")&&(J.state.isPlaying()?g.sD(z.x3):z.x3.stop());if(z.mediaElement)if(J.oldState.state===8&&wT(J.state)&&J.state.isBuffering()){J=z.mediaElement.getCurrentTime();var m=z.mediaElement.G2();var e=z.C("manifestless_post_live_ufph")||z.C("manifestless_post_live")?Wz(m,Math.max(J-3.5,0)):Wz(m,J-3.5);e>=0&&J>m.end(e)-1.1&&e+10?(sB(z.H1,z.getCurrentTime()+z.videoData.limitedPlaybackDurationInSeconds),z.ND=!0):z.videoData.isLivePlayback&&z.videoData.endSeconds>0&&(sB(z.H1,z.getCurrentTime()+z.videoData.endSeconds),z.ND=!0))}; +BPb=function(z,J){var m=z.getCurrentTime(),e=z.isAtLiveHead(m);if(z.V&&e){var T=z.V;if(T.K&&!(m>=T.T&&m50&&T.T.shift())),T=z.K,qmR(T,m,J===void 0?!0:J),dDE(T,m),J&&pk1(z,!0));e!==z.GS&&(J=z.getCurrentTime()-z.yH<=500,m=z.tZ>=1E3,J||m||(J=z.H1.Nd(),J.qoe&&(J=J.qoe,m=g.sC(J.provider), +g.po(J,m,"lh",[e?"1":"0"])),z.GS=e,z.tZ++,z.yH=z.getCurrentTime()))}; +pk1=function(z,J){if(z.K){var m=z.K;var e=z.getCurrentTime();!P7(m,e)&&m.HR()?(m.policy.U&&(m.policy.K=Math.max(m.policy.K+m.policy.Y,m.policy.V)),m=Infinity):m=e0&&JK(z.mediaElement)>0&&(z.T=ra(z,z.T,!1)),!z.mediaElement||!$Ds(z))z.IT.start(750);else if(!isNaN(z.T)&&isFinite(z.T)){var J=z.h6-(z.T-z.timestampOffset);if(!(J===0||z.C("html5_enable_new_seek_timeline_logic")&&Math.abs(J)<.005))if(J=z.mediaElement.getCurrentTime()-z.T,Math.abs(J)<=z.Lh||z.C("html5_enable_new_seek_timeline_logic")&&Math.abs(J)<.005)gWq(z);else{if(z.videoData.LW)z.videoData.LW= +!1;else if(!li(z.videoData)&&z.T>=z.Aw()-.1){z.T=z.Aw();z.U.resolve(z.Aw());z.H1.Vi();return}try{var m=z.T-z.timestampOffset;z.mediaElement.seekTo(m);z.B.K=m;z.h6=m;z.S=z.T;z.C("html5_enable_new_seek_timeline_logic")&&(z.Ry=!1)}catch(e){}}}}; +$Ds=function(z){if(!z.mediaElement||z.mediaElement.WW()===0||z.mediaElement.hasError())return!1;var J=z.mediaElement.getCurrentTime()>0;if(!(z.videoData.S&&z.videoData.S.K||z.videoData.isLivePlayback)&&z.videoData.xE())return J;if(z.T>=0){var m=z.mediaElement.b0();if(m.length||!J)return l1(m,z.T-z.timestampOffset)}return J}; +gWq=function(z){z.U&&(z.U.resolve(z.mediaElement.getCurrentTime()),z.B.T=null)}; +bbq=function(z,J){z.Z&&(z.Z.resolve(J),z.H1.IZ(),z.yx.AZ()&&(J=z.kQ(),J["native"]=""+ +z.Ry,J.otgt=""+(z.T+z.timestampOffset),z.H1.ph("seekEnd",J)));v7(z)}; +v7=function(z){z.T=NaN;z.h6=NaN;z.U=null;z.fh=null;z.Z=null;z.Tf=!1;z.Ry=!1;z.Lh=0;z.Qx.stop();z.qD.stop()}; +Abb=function(z,J,m){var e=z.mediaElement,T=J.type;switch(T){case "seeking":var E=e.getCurrentTime()+z.timestampOffset;if(!z.U||z.Ry&&E!==z.T){var Z=!!z.U;z.U=new r7;z.C("html5_enable_new_seek_timeline_logic")&&z.U.then(function(W){bbq(z,W)},function(){v7(z)}); +if(z.videoData.isAd()){var c;QV1({adCpn:z.videoData.clientPlaybackNonce,contentCpn:(c=z.videoData.J3)!=null?c:""},J.K)}z.h6=E;Ibq(z.B,e.getCurrentTime());z.seekTo(E,{seekSource:104,i8:"seektimeline_mediaElementEvent"});m&&xDq(m,E*1E3,!!Z);z.Ry=!0}break;case "seeked":gWq(z);break;case "loadedmetadata":Qn(z.H1)||MGb(z);Lo(z);break;case "progress":Lo(z);break;case "pause":z.Y=z.getCurrentTime()}z.Y&&((T==="play"||T==="playing"||T==="timeupdate"||T==="progress")&&z.getCurrentTime()-z.Y>10&&(z.C("html5_enable_new_media_element_puase_jump")? +(z.H1.Br(new Sl("qoe.restart",{reason:"pauseJump"})),z.H1.Vb(),z.seekTo(z.Y,{i8:"pauseJumpNewElement"})):z.seekTo(z.Y,{i8:"pauseJump"})),T!=="pause"&&T!=="play"&&T!=="playing"&&T!=="progress"&&(z.Y=0))}; +oWu=function(z){return(Sg(z.videoData)||!!z.videoData.liveUtcStartSeconds)&&(!!z.videoData.liveUtcStartSeconds||XkE(z))&&!!z.videoData.K}; +XkE=function(z){return!!z.videoData.startSeconds&&isFinite(z.videoData.startSeconds)&&z.videoData.startSeconds>1E9}; +Gjs=function(z){var J=0,m=NaN,e="";if(!z.X)return{startSeconds:J,Qa:m,source:e};z.videoData.Qx?J=z.videoData.Gf:li(z.videoData)&&(J=Infinity);if(g.BH(z.videoData))return{startSeconds:J,Qa:m,source:e};z.videoData.startSeconds?(e="ss",J=z.videoData.startSeconds):z.videoData.qp&&(e="stss",J=z.videoData.qp);z.videoData.liveUtcStartSeconds&&(m=z.videoData.liveUtcStartSeconds);if(isFinite(J)&&(J>z.Aw()||Jz.Aw()||m0?(e.onesie="0",z.handleError(new Sl("html5.missingapi",e)),!1):!0}; +RUu=function(z){var J=h3();u8(J,z);return g.i_(J,qqq())}; +tGq=function(z,J){var m,e,T,E,Z,c,W,l,w,q,d,I,O,G,n,C,K,f,x,V,zE,k,Ez,ij,r,t;return g.D(function(v){if(v.K==1)return J.fetchType="onesie",m=Yvq(J,z.getPlayerSize(),z.getVisibilityState()),e=new hH(z,m),g.S(v,e.fetch(),2);T=v.T;E={player_response:T};J.loading=!1;Z=z.u8.p9;if(e.Lc){c=g.y(e.Lc.entries());for(W=c.next();!W.done;W=c.next())l=W.value,w=g.y(l),q=w.next().value,d=w.next().value,I=q,O=d,Z.K.set(I,O,180),I===J.videoId&&(G=O.D8(),J.C6=G);Z.fJ=e}n=g.y(e.Lo.entries());for(C=n.next();!C.done;C= +n.next())K=C.value,f=g.y(K),x=f.next().value,V=f.next().value,zE=x,k=V,Z.T.set(zE,k,180);g.kt(J,E,!0);if(J.loading||Ul(J))return v.return(Promise.resolve());Z.K.removeAll();Z.T.removeAll();J.C6=[];Ez={};ij="onesie.response";r=0;J.errorCode?(ij="auth",Ez.ec=J.errorCode,Ez.ed=J.errorDetail,Ez.es=J.oV||"",r=2):(Ez.successButUnplayable="1",Ez.disposed=""+ +J.mF(),Ez.afmts=""+ +/adaptiveFormats/.test(T),Ez.cpn=J.clientPlaybackNonce);t=new Sl(ij,Ez,r);return v.return(Promise.reject(t))})}; +VG1=function(z,J){var m,e,T,E,Z,c,W,l,w,q,d;return g.D(function(I){switch(I.K){case 1:m=J.isAd(),e=!m,T=m?1:3,E=0;case 2:if(!(E0)){I.U2(5);break}return g.S(I,xV(5E3),6);case 6:Z=new g.vR("Retrying OnePlatform request",{attempt:E}),g.hr(Z);case 5:return g.Yu(I,7),g.S(I,kjb(z,J),9);case 9:return I.return();case 7:c=g.Kq(I);W=Dk(c);l=W.errorCode;w=z.W();q=w.C("html5_use_network_error_code_enums")?401:"401";e&&l==="manifest.net.badstatus"&&W.details.rc===q&&(e=!1,E===T-1&&(T+= +1));if(E===T-1)return d=LNq(m,W.details),d.details.backend="op",d.details.originec=l,I.return(Promise.reject(d));if(l==="auth"||l==="manifest.net.retryexhausted")return I.return(Promise.reject(W));z.handleError(W);if(fG(W.severity)){I.U2(4);break}case 3:E++;I.U2(2);break;case 4:return I.return(Promise.reject(LNq(m,{backend:"op"})))}})}; +kjb=function(z,J){function m(ij){ij.readyState===2&&z.Yr("ps_c")} +var e,T,E,Z,c,W,l,w,q,d,I,O,G,n,C,K,f,x,V,zE,k,Ez;return g.D(function(ij){switch(ij.K){case 1:J.fetchType="gp";e=z.W();T=g.El(e,g.ui(J));if(!T.K){E=T.getValue();ij.U2(2);break}return g.S(ij,T.K,3);case 3:E=ij.T;case 2:return Z=E,c=RUu(Z),W=Yvq(J,z.getPlayerSize(),z.getVisibilityState()),l=g.ej(Q2u),w=g.ui(J),q=(0,g.b5)(),d=!1,I="empty",O=0,z.Yr("psns"),G={zD:m},g.S(ij,g.vh(c,W,l,void 0,G),4);case 4:n=ij.T;z.Yr("psnr");if(J.mF())return ij.return();n?"error"in n&&n.error?(d=!0,I="esf:"+n.error.message, +O=n.error.code):n.errorMetadata&&(d=!0,I="its",O=n.errorMetadata.status):d=!0;if(d)return C=0,K=((0,g.b5)()-q).toFixed(),f={},f=e.C("html5_use_network_error_code_enums")?{backend:"op",rc:O,rt:K,reason:I,has_kpt:J.IT?"1":"0",has_mdx_env:J.mdxEnvironment?"1":"0",has_omit_key_flag:g.Qt("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:e.pageId?"1":"0",has_token:w?"1":"0",has_vvt:J.fh?"1":"0",is_mdx:J.isMdxPlayback?"1":"0",mdx_ctrl:J.h8||"",token_eq:w===g.ui(J)?"1":"0"}:{backend:"op", +rc:""+O,rt:K,reason:I,has_kpt:J.IT?"1":"0",has_mdx_env:J.mdxEnvironment?"1":"0",has_omit_key_flag:g.Qt("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:e.pageId?"1":"0",has_token:w?"1":"0",has_vvt:J.fh?"1":"0",is_mdx:J.isMdxPlayback?"1":"0",mdx_ctrl:J.h8||"",token_eq:w===g.ui(J)?"1":"0"},x="manifest.net.connect",O===429?(x="auth",C=2):O>200&&(x="manifest.net.badstatus",O===400&&(C=2)),ij.return(Promise.reject(new Sl(x,f,C)));J.loading=!1;g.kt(J,{raw_player_response:n},!0); +V=n;g.MA(J.W())&&V&&V.trackingParams&&bK(V.trackingParams);if(J.errorCode)return zE={ec:J.errorCode,ed:J.errorDetail,es:J.oV||""},ij.return(Promise.reject(new Sl("auth",zE,2)));if(!J.loading&&!Ul(J))return k=J.isAd()?"auth":"manifest.net.retryexhausted",Ez=J.isAd()?2:1,ij.return(Promise.reject(new Sl(k,{successButUnplayable:"1",hasMedia:g.Yv(J)?"1":"0"},Ez)));g.nq(ij)}})}; +uxq=function(z,J,m){function e(O){O=Dk(O);if(fG(O.severity))return Promise.reject(O);z.handleError(O);return!1} +function T(){return!0} +var E,Z,c,W,l,w,q,d,I;return g.D(function(O){switch(O.K){case 1:var G=z.W(),n=z.getPlayerSize(),C=z.getVisibilityState();z.isFullscreen();var K=window.location.search;if(J.partnerId===38&&G.playerStyle==="books")K=J.videoId.indexOf(":"),K=g.v1("//play.google.com/books/volumes/"+J.videoId.slice(0,K)+"/content/media",{aid:J.videoId.slice(K+1),sig:J.QG});else if(J.partnerId===30&&G.playerStyle==="docs")K=g.v1("https://docs.google.com/get_video_info",{docid:J.videoId,authuser:J.vM,authkey:J.Gh,eurl:G.nh}); +else if(J.partnerId===33&&G.playerStyle==="google-live")K=g.v1("//google-liveplayer.appspot.com/get_video_info",{key:J.videoId});else{G.Ry!=="yt"&&g.jk(Error("getVideoInfoUrl for invalid namespace: "+G.Ry));var f={html5:"1",video_id:J.videoId,cpn:J.clientPlaybackNonce,eurl:G.nh,ps:G.playerStyle,el:ML(J),hl:G.IT,list:J.playlistId,agcid:J.lL,aqi:J.adQueryId,sts:20172,lact:bE()};Object.assign(f,G.K);G.forcedExperiments&&(f.forced_experiments=G.forcedExperiments);J.fh?(f.vvt=J.fh,J.mdxEnvironment&&(f.mdx_environment= +J.mdxEnvironment)):g.ui(J)&&(f.access_token=g.ui(J));J.adFormat&&(f.adformat=J.adFormat);J.slotPosition>=0&&(f.slot_pos=J.slotPosition);J.breakType&&(f.break_type=J.breakType);J.v2!==null&&(f.ad_id=J.v2);J.T$!==null&&(f.ad_sys=J.T$);J.JS!==null&&(f.encoded_ad_playback_context=J.JS);G.captionsLanguagePreference&&(f.cc_lang_pref=G.captionsLanguagePreference);G.tZ&&G.tZ!==2&&(f.cc_load_policy=G.tZ);var x=g.UF(g.HR(),65);g.vZ(G)&&x!=null&&!x&&(f.device_captions_on="1");G.mute&&(f.mute=G.mute);J.annotationsLoadPolicy&& +G.annotationsLoadPolicy!==2&&(f.iv_load_policy=J.annotationsLoadPolicy);J.X5&&(f.endscreen_ad_tracking=J.X5);(x=G.Qx.get(J.videoId))&&x.vT&&(f.ic_track=x.vT);J.x3&&(f.itct=J.x3);hX(J)&&(f.autoplay="1");J.mutedAutoplay&&(f.mutedautoplay=J.mutedAutoplay);J.isAutonav&&(f.autonav="1");J.Se&&(f.noiba="1");J.isMdxPlayback&&(f.mdx="1",f.ytr=J.wu);J.mdxControlMode&&(f.mdx_control_mode=J.mdxControlMode);J.pz&&(f.ytrcc=J.pz);J.QS&&(f.utpsa="1");J.isFling&&(f.is_fling="1");J.isInlinePlaybackNoAd&&(f.mute="1"); +J.vnd&&(f.vnd=J.vnd);J.forceAdsUrl&&(x=J.forceAdsUrl.split("|").length===3,f.force_ad_params=x?J.forceAdsUrl:"||"+J.forceAdsUrl);J.yv&&(f.preload=J.yv);n.width&&(f.width=n.width);n.height&&(f.height=n.height);(J.XH?0:J.Bk)&&(f.splay="1");J.ypcPreview&&(f.ypc_preview="1");oN(J)&&(f.content_v=oN(J));J.yH&&(f.livemonitor=1);G.Tf&&(f.authuser=G.Tf);G.pageId&&(f.pageid=G.pageId);G.ND&&(f.ei=G.ND);G.U&&(f.iframe="1");J.contentCheckOk&&(f.cco="1");J.racyCheckOk&&(f.rco="1");G.V&&J.hN&&(f.live_start_walltime= +J.hN);G.V&&J.J7&&(f.live_manifest_duration=J.J7);G.V&&J.playerParams&&(f.player_params=J.playerParams);G.V&&J.cycToken&&(f.cyc=J.cycToken);G.V&&J.G$&&(f.tkn=J.G$);C!==0&&(f.vis=C);G.enableSafetyMode&&(f.enable_safety_mode="1");J.IT&&(f.kpt=J.IT);J.U7&&(f.kids_age_up_mode=J.U7);J.kidsAppInfo&&(f.kids_app_info=J.kidsAppInfo);J.ZD&&(f.upg_content_filter_mode="1");G.widgetReferrer&&(f.widget_referrer=G.widgetReferrer.substring(0,128));J.Ry?(n=J.Ry.latitudeE7!=null&&J.Ry.longitudeE7!=null?J.Ry.latitudeE7+ +","+J.Ry.longitudeE7:",",n+=","+(J.Ry.clientPermissionState||0)+","+(J.Ry.locationRadiusMeters||"")+","+(J.Ry.locationOverrideToken||"")):n=null;n&&(f.uloc=n);J.Oj&&(f.internalipoverride=J.Oj);G.embedConfig&&(f.embed_config=G.embedConfig);G.cW&&(f.co_rel="1");G.ancestorOrigins.length>0&&(f.ancestor_origins=Array.from(G.ancestorOrigins).join(","));G.homeGroupInfo!==void 0&&(f.home_group_info=G.homeGroupInfo);G.livingRoomAppMode!==void 0&&(f.living_room_app_mode=G.livingRoomAppMode);G.enablePrivacyFilter&& +(f.enable_privacy_filter="1");J.isLivingRoomDeeplink&&(f.is_living_room_deeplink="1");J.Ew&&J.CH&&(f.clip=J.Ew,f.clipt=J.CH);J.M7&&(f.disable_watch_next="1");J.jx&&(f.forced_by_var="1");for(var V in f)!vWs.has(V)&&f[V]&&String(f[V]).length>512&&(g.hr(Error("GVI param too long: "+V)),f[V]="");V=G.qA;g.AD(G)&&(V=zs(V.replace(/\b(?:www|web)([.-])/,"tv$1"))||G.qA);G=g.v1(V+"get_video_info",f);K&&(G=m6z(G,K));K=G}E=K;c=(Z=J.isAd())?1:3;W=0;case 2:if(!(W0)){O.U2(5);break}return g.S(O, +xV(5E3),6);case 6:w={playerretry:W,playerretrysrc:m},Z||(w.recover="embedded"),l=Wf(E,w);case 5:return g.S(O,s2z(J,l).then(T,e),7);case 7:if(q=O.T)return O.return();W++;O.U2(2);break;case 4:d=Z?"auth":"manifest.net.retryexhausted";I=Z?2:1;if(!Z&&Math.random()<1E-4)try{g.hr(new g.vR("b/152131571",btoa(E)))}catch(zE){}return O.return(Promise.reject(new Sl(d,{backend:"gvi"},I)))}})}; +s2z=function(z,J){function m(n){return e(n.xhr)} +function e(n){if(!z.mF()){n=n?n.status:-1;var C=0,K=((0,g.b5)()-w).toFixed();K=T.C("html5_use_network_error_code_enums")?{backend:"gvi",rc:n,rt:K}:{backend:"gvi",rc:""+n,rt:K};var f="manifest.net.connect";n===429?(f="auth",C=2):n>200&&(f="manifest.net.badstatus",n===400&&(C=2));return Promise.reject(new Sl(f,K,C))}} +var T,E,Z,c,W,l,w,q,d,I,O,G;return g.D(function(n){if(n.K==1){z.fetchType="gvi";T=z.W();var C={};z.KW&&(C.ytrext=z.KW);(c=g.xf(C)?void 0:C)?(E={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:c},Z=Wf(J,{action_display_post:1})):(E={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},Z=J);W={};T.sendVisitorIdHeader&&z.visitorData&&(W["X-Goog-Visitor-Id"]=z.visitorData);(l=zt(T.experiments,"debug_sherlog_username"))&&(W["X-Youtube-Sherlog-Username"]=l);Object.keys(W).length> +0&&(E.headers=W);w=(0,g.b5)();return g.S(n,Wp($J,Z,E).then(void 0,m),2)}q=n.T;if(!q||!q.responseText)return n.return(e(q));z.loading=!1;d=Z8(q.responseText);g.kt(z,d,!0);if(z.errorCode)return I={ec:z.errorCode,ed:z.errorDetail,es:z.oV||""},n.return(Promise.reject(new Sl("auth",I,2)));if(!z.loading&&!Ul(z))return O=z.isAd()?"auth":"manifest.net.retryexhausted",G=z.isAd()?2:1,n.return(Promise.reject(new Sl(O,{successButUnplayable:"1"},G)));g.nq(n)})}; +LNq=function(z,J){return new Sl(z?"auth":"manifest.net.retryexhausted",J,z?2:1)}; +Tj=function(z,J,m){m=m===void 0?!1:m;var e,T,E,Z;g.D(function(c){if(c.K==1){e=z.W();if(m&&(!g.rc(e)||ML(J)!=="embedded")||J.M7||ML(J)!=="adunit"&&(g.SP(e)||PZ(e)||g.uB(e)||g.AD(e)||sY(e)==="WEB_CREATOR"))return c.return();T=g.El(e,g.ui(J));return T.K?g.S(c,T.K,3):(E=T.getValue(),c.U2(2))}c.K!=2&&(E=c.T);Z=E;return c.return(rbf(z,J,Z))})}; +rbf=function(z,J,m){var e,T,E,Z,c;return g.D(function(W){if(W.K==1){g.Yu(W,2);e=RUu(m);var l=J.W();g.HR();var w={context:g.Fq(J),videoId:J.videoId,racyCheckOk:J.racyCheckOk,contentCheckOk:J.contentCheckOk,autonavState:"STATE_NONE"};ML(J)==="adunit"&&(w.isAdPlayback=!0);l.embedConfig&&(w.serializedThirdPartyEmbedConfig=l.embedConfig);l.cW&&(w.showContentOwnerOnly=!0);J.RR&&(w.showShortsOnly=!0);g.UF(0,141)&&(w.autonavState=g.UF(0,140)?"STATE_OFF":"STATE_ON");if(g.vZ(l)){var q=g.UF(0,65);q=q!=null? +!q:!1;var d=!!g.jO("yt-player-sticky-caption");w.captionsRequested=q&&d}var I;if(l=(I=l.getWebPlayerContextConfig())==null?void 0:I.encryptedHostFlags)w.playbackContext={encryptedHostFlags:l};T=w;E=g.ej(zGq);z.Yr("wn_s");return g.S(W,g.vh(e,T,E),4)}if(W.K!=2)return Z=W.T,z.Yr("wn_r"),!Z||"error"in Z&&Z.error||(c=Z,g.MA(J.W())&&c.trackingParams&&bK(c.trackingParams),g.kt(J,{raw_watch_next_response:Z},!1)),g.aq(W,0);g.Kq(W);g.nq(W)})}; +J$4=function(z){z.Yr("vir");z.Yr("ps_s");kd("vir",void 0,"video_to_ad");var J=UDu(z);J.then(function(){z.Yr("virc");kd("virc",void 0,"video_to_ad");z.Yr("ps_r");kd("ps_r",void 0,"video_to_ad")},function(){z.Yr("virc"); +kd("virc",void 0,"video_to_ad")}); +return J}; +g.Fx=function(z,J,m,e,T,E,Z,c,W,l){W=W===void 0?new g.H$(z):W;l=l===void 0?!0:l;g.wF.call(this);var w=this;this.yx=z;this.playerType=J;this.hZ=m;this.zr=e;this.getVisibilityState=E;this.visibility=Z;this.u8=c;this.videoData=W;this.c6=l;this.logger=new g.ZM("VideoPlayer");this.Tt=null;this.Tr=new iL;this.Ic=null;this.ZW=!0;this.J6=this.v1=null;this.DQ=[];this.PN=new eG;this.Qb=this.Zl=null;this.wO=new eG;this.bu=null;this.L_=this.uW=!1;this.FT=NaN;this.IY=!1;this.playerState=new g.E3;this.Bb=[];this.tB= +new g.jl;this.HU=new Qfs(this);this.mediaElement=null;this.KL=new g.vl(this.Fix,15E3,this);this.aQ=this.Bi=!1;this.gU=NaN;this.kR=!1;this.bO=0;this.m1=!1;this.KG=NaN;this.vO=new zj(new Map([["bufferhealth",function(){return KNq(w.Lr)}], +["bandwidth",function(){return w.Pc()}], +["networkactivity",function(){return w.yx.schedule.Tf}], +["livelatency",function(){return w.isAtLiveHead()&&w.isPlaying()?m5R(w):NaN}], +["rawlivelatency",function(){return m5R(w)}]])); +this.nD=0;this.loop=!1;this.playbackRate=1;this.I5=0;this.Lr=new NPu(this);this.SL=!1;this.Oy=[];this.OI=this.GV=0;this.SG=this.hh=!1;this.F6=this.Ac=0;this.h3=-1;this.oJ="";this.V4=new g.vl(this.TbD,0,this);this.Pd=this.Fq=null;this.cZF=[this.tB,this.V4,this.KL,this.vO];this.ox=this.g2=null;this.Yi=function(){var q=w.Nd();q.provider.yx.XH||q.provider.H1.getVisibilityState()===3||(q.provider.yx.XH=!0);q.vy();if(q.T){var d=q.T;d.Z&&d.K<0&&d.provider.H1.getVisibilityState()!==3&&BIR(d)}q.qoe&&(q=q.qoe, +q.nh&&q.T<0&&q.provider.yx.XH&&Taj(q),q.U&&G$(q));w.v1&&Em(w);w.yx.vR&&!w.videoData.backgroundable&&w.mediaElement&&!w.Q$()&&(w.isBackground()&&w.mediaElement.nU()?(w.ph("bgmobile",{suspend:1}),w.Gk(!0,!0)):w.isBackground()||Zb(w)&&w.ph("bgmobile",{resume:1}))}; +this.So={eB:function(q){w.eB(q)}, +kqz:function(q){w.Tt=q}, +aJ2:function(){return w.Mo}, +zW:function(){return w.L5}, +Ki:function(){return w.J6}, +Fuz:function(){return w.FX}, +j3b:function(){return w.jq}, +EGy:function(){}, +W:function(){return w.yx}, +Vv:function(){return w.mediaElement}, +Csy:function(q){w.lM(q)}, +NdF:function(){return w.zr}}; +this.logger.debug(function(){return"creating, type "+J}); +this.j7=new eU4(this.yx);this.PW=new cHR(this.yx,this.zr,this);this.VL=new g.ow(this,function(q,d){q!==g.F8("endcr")||g.R(w.playerState,32)||w.Vi();T(q,d,w.playerType)},function(q,d){g.Lr(w.videoData)&&w.ph(q,d)}); +g.u(this,this.VL);g.u(this,this.Lr);eGj(this,W);this.videoData.subscribe("dataupdated",this.jmW,this);this.videoData.subscribe("dataloaded",this.o9,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.ph,this);this.videoData.subscribe("ctmpstr",this.OM,this);this.hv();kG1(this.Yi);this.visibility.subscribe("visibilitystatechange",this.Yi);this.FX=new g.vl(this.C4,g.dv(this.yx.experiments,"html5_player_att_initial_delay_ms")||4500,this);this.jq= +new g.vl(this.C4,g.dv(this.yx.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.NK=new g.JA(this.gH,g.dv(this.yx.experiments,"html5_progress_event_throttle_ms")||350,this);g.u(this,this.NK)}; +eGj=function(z,J){if(z.playerType===2||z.yx.Qm)J.hE=!0;var m=Aw4(J.Rs,J.pH,z.yx.U,z.yx.V);m&&(J.adFormat=m);z.playerType===2&&(J.oi=!0);if(z.isFullscreen()||z.yx.U)m=g.jO("yt-player-autonavstate"),J.autonavState=m||(z.yx.U?2:z.videoData.autonavState);J.endSeconds&&J.endSeconds>J.startSeconds&&sB(z,J.endSeconds)}; +Thu=function(z){u4E(z.Mo);g.Wc(z.Mo);for(var J=z.L5,m=g.y(J.K.values()),e=m.next();!e.done;e=m.next())u4E(e.value);J.K.clear();g.Wc(z.L5)}; +ENj=function(z){var J=z.videoData;J$4(z).then(void 0,function(m){z.videoData!==J||J.mF()||(m=Dk(m),m.errorCode==="auth"&&z.videoData.errorDetail?z.O4(m.errorCode,2,unescape(z.videoData.errorReason),BQ(m.details),z.videoData.errorDetail,z.videoData.oV||void 0):z.handleError(m))})}; +i7q=function(z){if(!g.R(z.playerState,128))if(z.videoData.isLoaded(),z.logger.debug("finished loading playback data"),z.DQ=g.en(z.videoData.Tf),g.Yv(z.videoData)){z.hZ.tick("bpd_s");iJ(z).then(function(){z.hZ.tick("bpd_c");if(!z.mF()){z.uW&&(z.DH(ik(ik(z.playerState,512),1)),Zb(z));var e=z.videoData;e.endSeconds&&e.endSeconds>e.startSeconds&&sB(z,e.endSeconds);z.PN.finished=!0;ck(z,"dataloaded");z.wO.bW()&&Z74(z);Kqu(z.PW,z.Qb)}}); +z.C("html5_log_media_perf_info")&&z.ph("loudness",{v:z.videoData.US.toFixed(3)},!0);var J,m=(J=z.mediaElement)==null?void 0:J.aT();if(m&&"disablePictureInPicture"in m&&z.yx.jg)try{m.disablePictureInPicture=z.yx.CV&&!z.videoData.backgroundable}catch(e){g.hr(e)}FEq(z)}else ck(z,"dataloaded")}; +iJ=function(z){Wk(z);z.Qb=null;var J=EWq(z.yx,z.videoData,z.Q$());z.Zl=J;z.Zl.then(function(m){c$q(z,m)},function(m){z.mF()||(m=Dk(m),z.visibility.isBackground()?(lJ(z,"vp_none_avail"),z.Zl=null,z.PN.reset()):(z.PN.finished=!0,z.O4(m.errorCode,m.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",BQ(m.details))))}); +return J}; +c$q=function(z,J){if(!z.mF()&&!J.videoData.mF()){z.logger.debug("finished building playback data");z.Qb=J;nWu(z.Lr,z.Qb);if(z.videoData.isLivePlayback){var m=WEf(z.u8.p9,z.videoData.videoId)||z.v1&&!isNaN(z.v1.Tf);m=z.C("html5_onesie_live")&&m;Qn(z)||z.videoData.ub>0&&!w0(z.videoData)||m||z.seekTo(z.Aw(),{i8:"videoplayer_playbackData",seekSource:18})}if(z.videoData.S.K){if(z.C("html5_sabr_report_missing_url_as_error")&&wCu(z.videoData)){z.handleError(new Sl("fmt.missing",{missabrurl:"1"},2));return}z.v1? +g.hr(Error("Duplicated Loader")):(m=g.dv(z.yx.experiments,"html5_onesie_defer_content_loader_ms"))&&z.C$()&&WEf(z.u8.p9,z.videoData.hm)?g.Np(function(){z.mF()||z.v1||lTR(z)},m):lTR(z)}else!z.videoData.S.K&&tX(z.videoData)&&z.DP(new qn(z.videoData.videoId||"",4)); +z.NQ();NIR(J).then(function(){var e={};z.RA(e);z.yx.AZ()&&z.C("html5_log_media_perf_info")&&z.ph("av1Info",e);Em(z)})}}; +Z74=function(z){z.mF();z.logger.debug("try finish readying playback");if(z.wO.finished)z.logger.debug("already finished readying");else if(z.PN.finished)if(g.R(z.playerState,128))z.logger.debug("cannot finish readying because of error");else if(z.DQ.length)z.logger.debug(function(){return"cannot finish readying because of pending preroll: "+z.DQ}); +else if(z.VL.started||zU1(z.VL),z.du())z.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{z.v1&&(z.L_=qIz(z.v1.timing));z.wO.finished||(z.wO.finished=!0);var J=z.C("html5_onesie_live")&&z.v1&&!isNaN(z.v1.Tf);!z.videoData.isLivePlayback||z.videoData.ub>0&&!w0(z.videoData)||J||Qn(z)||(z.logger.debug("seek to head for live"),z.seekTo(Infinity,{i8:"videoplayer_readying",seekSource:18}),z.isBackground()&&(z.aQ=!0));Agq(z.Nd());z.logger.debug("finished readying playback"); +z.publish("playbackready");Up("pl_c",z.hZ.timerName)||(z.hZ.tick("pl_c"),kd("pl_c",void 0,"video_to_ad"));Up("pbr",z.hZ.timerName)||(z.hZ.tick("pbr"),kd("pbr",void 0,"video_to_ad"))}else z.logger.debug("playback data not loaded")}; +sB=function(z,J){z.Ic&&w_b(z);z.Ic=new g.Ec(J*1E3,0x7ffffffffffff);z.Ic.namespace="endcr";z.addCueRange(z.Ic)}; +w_b=function(z){z.removeCueRange(z.Ic);z.Ic=null}; +qbq=function(z,J,m,e,T){var E=z.Nd(T),Z=g.Lr(z.videoData)?E.getVideoData():z.videoData;Z.T=m;var c=g.wP(z);m=new ilu(Z,m,J,c?c.itag:"",e);z.yx.experiments.j4("html5_refactor_sabr_video_format_selection_logging")?(m.videoId=T,z.ox=m):E.qoe&&Pis(E.qoe,m);T=z.PW;T.T=0;T.K=0;z.publish("internalvideoformatchange",Z,J==="m")}; +g.wP=function(z){var J=qD(z);return ia(J)||!z.Qb?null:g.QS(z.Qb.K.videoInfos,function(m){return J.U(m)})}; +qD=function(z){if(z.Qb){var J=z.PW;var m=z.Qb;z=z.Dj();var e=w4u(J);if(ia(e)){if(e=Wqj(J,m).compose(Olb(J,m)).compose(yHu(J,m)).compose(C3u(J,m.videoData)).compose(aib(J,m.videoData,m)).compose(wa(J,m)).compose(dCq(J,m)),ia(z)||J.C("html5_apply_pbr_cap_for_drm"))e=e.compose(IiE(J,m))}else J.C("html5_perf_cap_override_sticky")&&(e=e.compose(wa(J,m))),J.C("html5_ustreamer_cap_override_sticky")&&(e=e.compose(IiE(J,m)));e=e.compose(dCq(J,m));J=m.videoData.iQ.compose(e).compose(m.videoData.N8).compose(z)}else J= +tc;return J}; +Ylz=function(z){var J=z.PW;z=z.videoData;var m=C3u(J,z);J.C("html5_disable_client_autonav_cap_for_onesie")||m.compose(aib(J,z));return m}; +Em=function(z){if(z.videoData.S&&z.videoData.S.K){var J=qD(z);z.v1&&yXb(z.v1,J)}}; +d5z=function(z){var J;return!!(z.C("html5_native_audio_track_switching")&&g.Y4&&((J=z.videoData.T)==null?0:Jo(J)))}; +ITq=function(z){if(!d5z(z))return!1;var J;z=(J=z.mediaElement)==null?void 0:J.audioTracks();return!!(z&&z.length>1)}; +p_u=function(z){var J=O7s(z);if(J)return z.videoData.getAvailableAudioTracks().find(function(m){return m.sC.getName()===J})}; +O7s=function(z){var J;if(z=(J=z.mediaElement)==null?void 0:J.audioTracks())for(J=0;J0&&(J.jf=e.td)); +J.KA=e.ES;J.nB=$Q(m,{},e.S||void 0,ZR(e));J.yH=EH(e)&&g.uB(m);Fr(e)&&(J.SC=!0,m.C("html5_sabr_report_partial_segment_estimated_duration")&&(J.F5=!0),J.K=!0,J.sB=m.C("html5_sabr_enable_live_clock_offset"),J.R3=m.C("html5_disable_client_resume_policy_for_sabr"),J.ZD=m.C("html5_trigger_loader_when_idle_network"),J.J7=m.C("html5_sabr_parse_live_metadata_playback_boundaries"),J.iA=m.C("html5_enable_platform_backpressure_with_sabr"),J.j8=m.C("html5_consume_onesie_next_request_policy_for_sabr"),J.TH=m.C("html5_sabr_report_next_ad_break_time"), +J.Pt=m.C("html5_log_high_res_buffer_timeline")&&m.AZ(),J.W0=m.C("html5_remove_stuck_slices_beyond_max_buffer_limits"),J.Rw=m.C("html5_gapless_sabr_btl_last_slice")&&TF(e),J.UM=m.C("html5_reset_last_appended_slice_on_seek")&&TF(e),w0(e)?(J.X5=!0,J.vR=m.C("html5_disable_variability_tracker_for_live"),J.nh=m.C("html5_sabr_use_accurate_slice_info_params"),m.C("html5_simplified_backup_timeout_sabr_live")&&(J.b3=!0,J.T2=J.e8)):J.ED=m.C("html5_probe_request_on_sabr_request_progress"),J.VW=m.C("html5_serve_start_seconds_seek_for_post_live_sabr"), +J.Bk=m.C("html5_flush_index_on_updated_timestamp_offset"),J.Gf=m.C("html5_enable_sabr_request_pipelining")&&!g.Lr(e),J.hJ=m.C("html5_ignore_partial_segment_from_live_readahead"),J.fH=m.C("html5_use_non_active_broadcast_for_post_live"),J.x3=m.C("html5_use_centralized_player_time"),J.Tp=m.C("html5_consume_onesie_sabr_seek"),J.fh=m.C("html5_enable_sabr_seek_loader_refactor"),J.pH=m.C("html5_update_segment_start_time_from_media_header"),e.enableServerStitchedDai&&(J.Z=!0,J.eA=m.C("html5_reset_server_stitch_state_for_non_sabr_seek"), +J.q7=m.C("html5_remove_ssdai_append_pause")&&!e.b8(),J.O2=m.C("html5_consume_ssdai_info_with_streaming"),J.vA=m.C("html5_ssdai_log_ssevt_in_loader")),J.zo=m.AZ()||e.b8());J.Y=J.K&&m.C("html5_sabr_live");J.tZ=g.W1u(e);nZ(m.Z,Ye.BITRATE)&&(J.RT=NaN);if(c=g.dv(m.experiments,"html5_request_size_max_kb"))J.qD=c*1024;m.Z.S?J.XH="; "+Ye.EXPERIMENTAL.name+"=allowed":m.C("html5_enable_cobalt_tunnel_mode")&&(J.XH="; tunnelmode=true");c=e.serverPlaybackStartConfig;(c==null?0:c.enable)&&(c==null?0:c.playbackStartPolicy)&& +(J.Gp=!0,kS(J,c.playbackStartPolicy,2));c=y$R(z);z.Tr.removeAll();a:{m=z.u8.p9;if(e=z.videoData.videoId)if(T=m.K.get(e)){m.K.remove(e);m=T;break a}m=void 0}z.v1=new g.QM(z,z.yx.schedule,J,z.videoData.K,z.videoData.S,qD(z),c,z.videoData.enableServerStitchedDai,m,z.videoData.qD);J=z.videoData.C("html5_disable_preload_for_ssdai_with_preroll")&&z.videoData.isLivePlayback&&z.C$()?!0:z.uW&&g.SP(z.yx)&&z.videoData.isLivePlayback;z.v1.initialize(z.getCurrentTime(),qD(z),J);z.videoData.probeUrl&&(z.v1.ND= +z.videoData.probeUrl);if(z.DQ.length||z.uW)z.videoData.cotn||dP(z,!1);CJu(z.Lr,z.v1);z.Fq&&(urR(z.v1,new g.rI(z.Fq)),z.ph("sdai",{sdl:1}));z.Pd&&(z.v1.L9(z.Pd),z.Lr.X=!1);g.RN(z.videoData)&&(z=z.v1,z.policy.Z9=z.policy.D6)}; +Wk=function(z){z.v1&&(z.v1.dispose(),z.v1=null,CJu(z.Lr,null));z.Ep()?Nhs(z):z.i7()}; +Nhs=function(z){if(z.J6)if(z.logger.debug("release media source"),z.ID(),z.J6.Z)try{z.yx.AZ()&&z.ph("rms",{l:"vprms",sr:z.Ep(),rs:vz(z.J6)});z.J6.clear();var J;(J=z.mediaElement)!=null&&(J.T=z.J6);z.J6=null}catch(m){J=new g.vR("Error while clearing Media Source in VideoPlayer: "+m.name+", "+m.message),J=Dk(J),z.handleError(J),z.i7()}else z.i7()}; +GpE=function(z,J){J=J===void 0?!1:J;if(z.J6)return z.J6.S;z.logger.debug("update media source");a:{J=J===void 0?!1:J;try{g.LH()&&z.videoData.Cf()&&Sxf(z.mediaElement);var m=z.mediaElement.Ki(z.M$(),z.I4())}catch(T){if(JHu(z.HU,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",T);z.O4("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}z.XS(m,!1,!1,J)}var e;return((e=z.Ki())==null?void 0:e.S)||null}; +X_b=function(z,J){J=J===void 0?!1:J;if(z.v1){z.C("html5_keep_ssdai_avsync_in_loader_track")&&LB4(z.v1);var m=z.getCurrentTime()-z.Kr();z.v1.seek(m,{Nt:J}).IF(function(){})}else lTR(z)}; +Ybu=function(z,J,m,e){m=m===void 0?!1:m;e=e===void 0?!1:e;if(z.J6&&(!J||z.J6===J)){z.logger.debug("media source opened");var T=z.getDuration();!T&&w0(z.videoData)&&(T=25200);if(z.J6.isView){var E=T;z.logger.debug(function(){return"Set media source duration to "+E+", video duration "+T}); +E>z.J6.getDuration()&&nNu(z,E)}else nNu(z,T);IRs(z.v1,z.J6,m,e);z.publish("mediasourceattached")}}; +nNu=function(z,J){if(z.J6){z.J6.Vm(J);var m;(m=z.v1)!=null&&m.policy.x3&&(m.Y=J)}}; +GFq=function(z,J){qbq(z,J.reason,J.K.info,J.token,J.videoId)}; +Czq=function(z,J){z.yx.experiments.j4("enable_adb_handling_in_sabr")&&(z.pauseVideo(!0),z.publish("onAbnormalityDetected"),J&&z.O4("sabr.config",1,"BROWSER_OR_EXTENSION_ERROR"))}; +ck=function(z,J){z.publish("internalvideodatachange",J===void 0?"dataupdated":J,z.videoData)}; +aTu=function(z){var J="loadstart loadedmetadata play playing pause ended seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ");z.C("html5_remove_progress_event_listener")||(J.push("progress"),J.push("suspend"));J=g.y(J);for(var m=J.next();!m.done;m=J.next())z.tB.L(z.mediaElement,m.value,z.lM,z);z.yx.BW&&z.mediaElement.Uw()&&(z.tB.L(z.mediaElement,"webkitplaybacktargetavailabilitychanged",z.yXz,z),z.tB.L(z.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",z.Hrx, +z))}; +Bh1=function(z){g.nH(z.FT);KE1(z)||(z.FT=g.Go(function(){return KE1(z)},100))}; +KE1=function(z){var J=z.mediaElement;J&&z.Bi&&!z.videoData.wb&&!Up("vfp",z.hZ.timerName)&&J.WW()>=2&&!J.isEnded()&&qU(J.G2())>0&&z.hZ.tick("vfp");return(J=z.mediaElement)&&!z.videoData.wb&&J.getDuration()>0&&(J.isPaused()&&J.WW()>=2&&qU(J.G2())>0&&(Up("pbp",z.hZ.timerName)||z.hZ.tick("pbp"),!z.videoData.MY||z.IY||J.isSeeking()||(z.IY=!0,z.publish("onPlaybackPauseAtStart"))),J=J.getCurrentTime(),jU(z.j7,J))?(z.RX(),!0):!1}; +fTq=function(z){z.Nd().kZ();if(li(z.videoData)&&Date.now()>z.I5+6283){if(!(!z.isAtLiveHead()||z.videoData.K&&G4(z.videoData.K))){var J=z.Nd();if(J.qoe){J=J.qoe;var m=J.provider.H1.vV(),e=g.sC(J.provider);Q5u(J,e,m);m=m.S;isNaN(m)||g.po(J,e,"e2el",[m.toFixed(3)])}}z.C("html5_alc_live_log_rawlat")?(J=z.videoData,J=g.K1(J.W())?!0:g.Li(J.W())?J.hJ==="6":!1):J=g.K1(z.yx);J&&z.ph("rawlat",{l:mN(z.vO,"rawlivelatency").toFixed(3)});z.I5=Date.now()}z.videoData.T&&Jo(z.videoData.T)&&(J=z.CS())&&J.videoHeight!== +z.OI&&(z.OI=J.videoHeight,qbq(z,"a",Sbs(z,z.videoData.Hd)))}; +Sbs=function(z,J){if(J.K.video.quality==="auto"&&Jo(J.getInfo())&&z.videoData.Zo)for(var m=g.y(z.videoData.Zo),e=m.next();!e.done;e=m.next())if(e=e.value,e.getHeight()===z.OI&&e.K.video.quality!=="auto")return e.getInfo();return J.getInfo()}; +m5R=function(z){if(!li(z.videoData))return NaN;var J=0;z.v1&&z.videoData.K&&(J=w0(z.videoData)?z.v1.kz.ao()||0:z.videoData.K.wb);return(0,g.b5)()/1E3-z.Hk()-J}; +b7f=function(z){z.mediaElement&&z.mediaElement.Q$()&&(z.KG=(0,g.b5)());z.yx.Kn?g.Np(function(){D54(z)},0):D54(z)}; +D54=function(z){var J;if((J=z.J6)==null||!J.xl()){if(z.mediaElement)try{z.bu=z.mediaElement.playVideo()}catch(e){lJ(z,"err."+e)}if(z.bu){var m=z.bu;m.then(void 0,function(e){z.logger.debug(function(){return"playMediaElement failed: "+e}); +if(!g.R(z.playerState,4)&&!g.R(z.playerState,256)&&z.bu===m)if(e&&e.name==="AbortError"&&e.message&&e.message.includes("load"))z.logger.debug(function(){return"ignore play media element failure: "+e.message}); +else{var T="promise";e&&e.name&&(T+=";m."+e.name);lJ(z,T);z.SL=!0;z.videoData.XH=!0}})}}}; +lJ=function(z,J){g.R(z.playerState,128)||(z.DH(Wr(z.playerState,1028,9)),z.ph("dompaused",{r:J}),z.publish("onAutoplayBlocked"))}; +Zb=function(z,J){J=J===void 0?!1:J;if(!z.mediaElement||!z.videoData.S)return!1;var m=J;m=m===void 0?!1:m;var e=null;var T;if((T=z.videoData.S)==null?0:T.K){e=GpE(z,m);var E;(E=z.v1)==null||E.resume()}else Wk(z),z.videoData.Hd&&(e=z.videoData.Hd.BE());T=z.mediaElement.nU();m=!1;T&&T.NL(e)||($5u(z,e),m=!0);g.R(z.playerState,2)||(e=z.Lr,J=J===void 0?!1:J,e.Z||!(e.S>0)||e.mediaElement&&e.mediaElement.getCurrentTime()>0||(J={i8:"seektimeline_resumeTime",Nt:J},e.videoData.wb||(J.seekSource=15),e.seekTo(e.S, +J)));a:{J=m;if(Fr(z.videoData)){if(!z.videoData.xE())break a}else if(!g.NL(z.videoData))break a;if(z.mediaElement)if((e=z.videoData.Z)&&z.mediaElement.Uw()){T=z.mediaElement.aT();if(z.Tt)if(T!==z.Tt.element)I2(z);else if(J&&e.flavor==="fairplay"&&!Qp())I2(z);else break a;if(z.C("html5_report_error_for_unsupported_tvos_widevine")&&Qp()&&e.flavor==="widevine")z.O4("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{z.Tt=new g2R(T,z.videoData,z.yx);z.Tt.subscribe("licenseerror", +z.Uy,z);z.Tt.subscribe("qualitychange",z.brz,z);z.Tt.subscribe("heartbeatparams",z.FO,z);z.Tt.subscribe("keystatuseschange",z.eB,z);z.Tt.subscribe("ctmp",z.ph,z);z.C("html5_widevine_use_fake_pssh")&&!z.videoData.isLivePlayback&&e.flavor==="widevine"&&z.Tt.Td(new wr(gNu,"cenc",!1));J=g.y(z.Tr.keys);for(e=J.next();!e.done;e=J.next())e=z.Tr.get(e.value),z.Tt.Td(e);z.C("html5_eme_loader_sync")||z.Tr.removeAll()}}else z.O4("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}return m}; +$5u=function(z,J){z.hZ.tick("vta");kd("vta",void 0,"video_to_ad");z.getCurrentTime()>0&&Smb(z.Lr,z.getCurrentTime());z.mediaElement.activate(J);z.J6&&Zx(0,4);!z.videoData.wb&&z.playerState.isOrWillBePlaying()&&z.KL.start();if(d5z(z)){var m;if(J=(m=z.mediaElement)==null?void 0:m.audioTracks())J.onchange=function(){z.publish("internalaudioformatchange",z.videoData,!0)}}}; +I2=function(z){z.Tt&&(z.Tt.dispose(),z.Tt=null)}; +x5u=function(z){var J=J===void 0?!1:J;z.logger.debug("reattachVideoSource");z.mediaElement&&(z.J6?(I2(z),z.i7(),GpE(z,J)):(z.videoData.Hd&&z.videoData.Hd.ZR(),z.mediaElement.stopVideo()),z.playVideo())}; +MKR=function(z,J){z.yx.C("html5_log_rebuffer_reason")&&(J={r:J,lact:bE()},z.mediaElement&&(J.bh=mI(z.mediaElement)),z.ph("bufreason",J))}; +A$f=function(z,J){if(z.yx.AZ()&&z.mediaElement){var m=z.mediaElement.kQ();m.omt=(z.mediaElement.getCurrentTime()+z.Kr()).toFixed(3);m.ps=z.playerState.state.toString(16);m.rt=(g.sC(z.Nd().provider)*1E3).toFixed();m.e=J;z.Oy[z.GV++%5]=m}try{if(J==="timeupdate"||J==="progress")return}catch(e){}z.logger.debug(function(){return"video element event "+J})}; +oNf=function(z){if(z.yx.AZ()){z.Oy.sort(function(e,T){return+e.rt-+T.rt}); +for(var J=g.y(z.Oy),m=J.next();!m.done;m=J.next())m=m.value,z.ph("vpe",Object.assign({t:m.rt},m));z.Oy=[];z.GV=0}}; +jDu=function(z){if(g.RQ("cobalt")&&g.RQ("nintendo switch")){var J=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;z.ph("nxdock",{d:J})}}; +dP=function(z,J){var m;(m=z.v1)==null||v4(m,J)}; +vSq=function(z,J){return g.Lr(z.videoData)&&z.Pd?z.Pd.handleError(J,void 0):!1}; +FEq=function(z){Ln(z.videoData,"html5_set_debugging_opt_in")&&(z=g.HR(),g.UF(0,183)||(ks(183,!0),z.save()))}; +hGz=function(z){return g.Lr(z.videoData)&&z.Pd?tH(z.Pd):z.videoData.Aw()}; +vvu=function(z,J){z.u8.As()||(z.ph("sgap",{f:J}),z.u8.clearQueue(!1,J==="pe"))}; +Qn=function(z){return z.C("html5_disable_video_player_initiated_seeks")&&Fr(z.videoData)}; +u6b=function(z){rd.call(this,z);var J=this;this.events=new g.jl(z);g.u(this,this.events);cL(this.api,"isLifaAdPlaying",function(){return J.api.isLifaAdPlaying()}); +this.events.L(z,"serverstitchedvideochange",function(){var m;(m=J.api.getVideoData())!=null&&m.b8()&&(J.api.isLifaAdPlaying()?(J.playbackRate=J.api.getPlaybackRate(),J.api.setPlaybackRate(1)):J.api.setPlaybackRate(J.playbackRate))}); +this.playbackRate=1}; +VKu=function(z){rd.call(this,z);var J=this;this.events=new g.jl(z);g.u(this,this.events);cL(this.api,"seekToChapterWithAnimation",function(m){J.seekToChapterWithAnimation(m)}); +cL(this.api,"seekToTimeWithAnimation",function(m,e){J.seekToTimeWithAnimation(m,e)}); +cL(this.api,"renderChapterSeekingAnimation",function(m,e,T){J.api.renderChapterSeekingAnimation(m,e,T)}); +cL(this.api,"setMacroMarkers",function(m){J.setMacroMarkers(z,m)}); +cL(this.api,"changeMarkerVisibility",function(m,e,T){J.changeMarkerVisibility(m,e,T)}); +cL(this.api,"isSameMarkerTypeVisible",function(m){return J.isSameMarkerTypeVisible(m)})}; +Pzb=function(z,J,m){var e=z.api.getCurrentTime()*1E30&&T>0&&(m.width+=T,g.FR(J.element,"width",m.width+"px")));z.size=m}}; +g.bJ=function(z,J){var m=z.K[z.K.length-1];m!==J&&(z.K.push(J),IWs(z,m,J))}; +g.$W=function(z){if(!(z.K.length<=1)){var J=z.K.pop(),m=z.K[0];z.K=[m];IWs(z,J,m,!0)}}; +IWs=function(z,J,m,e){O_u(z);J&&(J.unsubscribe("size-change",z.xB,z),J.unsubscribe("back",z.Zf,z));m.subscribe("size-change",z.xB,z);m.subscribe("back",z.Zf,z);if(z.oT){g.FE(m.element,e?"ytp-panel-animate-back":"ytp-panel-animate-forward");m.S4(z.element);m.focus();z.element.scrollLeft=0;z.element.scrollTop=0;var T=z.size;dRR(z);g.N9(z.element,T);z.Y=new g.vl(function(){p8z(z,J,m,e)},20,z); +z.Y.start()}else m.S4(z.element),J&&J.detach()}; +p8z=function(z,J,m,e){z.Y.dispose();z.Y=null;g.FE(z.element,"ytp-popup-animating");e?(g.FE(J.element,"ytp-panel-animate-forward"),g.lI(m.element,"ytp-panel-animate-back")):(g.FE(J.element,"ytp-panel-animate-back"),g.lI(m.element,"ytp-panel-animate-forward"));g.N9(z.element,z.size);z.V=new g.vl(function(){g.lI(z.element,"ytp-popup-animating");J.detach();g.wL(J.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);z.V.dispose();z.V=null},250,z); +z.V.start()}; +O_u=function(z){z.Y&&g.rQ(z.Y);z.V&&g.rQ(z.V)}; +gP=function(z){g.Db.call(this,z,"ytp-shopping-product-menu");this.Q8=new g.SG(this.G);g.u(this,this.Q8);this.hide();g.bJ(this,this.Q8);g.M0(this.G,this.element,4)}; +Nl1=function(z,J,m){var e,T=J==null?void 0:(e=J.text)==null?void 0:e.simpleText;T&&(m=yOq(z,m,T,J==null?void 0:J.icon,J==null?void 0:J.secondaryIcon),J.navigationEndpoint&&m.listen("click",function(){z.G.B1("innertubeCommand",J.navigationEndpoint);z.hide()},z))}; +GN1=function(z,J,m){var e,T=J==null?void 0:(e=J.text)==null?void 0:e.simpleText;T&&yOq(z,m,T,J==null?void 0:J.icon).listen("click",function(){var E;(J==null?void 0:(E=J.icon)==null?void 0:E.iconType)==="HIDE"?z.G.publish("featuredproductdismissed"):J.serviceEndpoint&&z.G.B1("innertubeCommand",J.serviceEndpoint);z.hide()},z)}; +yOq=function(z,J,m,e,T){J=new g.k2(g.Le({},[],!1,!!T),J,m);T&&J.updateValue("secondaryIcon",X8u(T));J.setIcon(X8u(e));g.u(z,J);z.Q8.AX(J,!0);return J}; +X8u=function(z){if(!z)return null;switch(z.iconType){case "ACCOUNT_CIRCLE":return{D:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},N:[{D:"path",j:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 1c4.96 0 9 4.04 9 9 0 1.42-.34 2.76-.93 3.96-1.53-1.72-3.98-2.89-7.38-3.03A3.99 3.99 0 0016 9c0-2.21-1.79-4-4-4S8 6.79 8 9c0 1.97 1.43 3.6 3.31 3.93-3.4.14-5.85 1.31-7.38 3.03C3.34 14.76 3 13.42 3 12c0-4.96 4.04-9 9-9zM9 9c0-1.65 1.35-3 3-3s3 1.35 3 3-1.35 3-3 3-3-1.35-3-3zm3 12c-3.16 0-5.94-1.64-7.55-4.12C6.01 14.93 8.61 13.9 12 13.9c3.39 0 5.99 1.03 7.55 2.98C17.94 19.36 15.16 21 12 21z", +fill:"#fff"}}]};case "FLAG":return{D:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{D:"path",j:{d:"M13.18 4L13.42 5.2L13.58 6H14.4H19V13H13.82L13.58 11.8L13.42 11H12.6H6V4H13.18ZM14 3H5V21H6V12H12.6L13 14H20V5H14.4L14 3Z",fill:"white"}}]};case "HELP":return y8z();case "HIDE":return{D:"svg",j:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{D:"g",N:[{D:"path",j:{d:"M16.24,9.17L13.41,12l2.83,2.83l-1.41,1.41L12,13.41l-2.83,2.83l-1.41-1.41L10.59,12L7.76,9.17l1.41-1.41L12,10.59 l2.83-2.83L16.24,9.17z M4.93,4.93c-3.91,3.91-3.91,10.24,0,14.14c3.91,3.91,10.24,3.91,14.14,0c3.91-3.91,3.91-10.24,0-14.14 C15.17,1.02,8.83,1.02,4.93,4.93z M18.36,5.64c3.51,3.51,3.51,9.22,0,12.73s-9.22,3.51-12.73,0s-3.51-9.22,0-12.73 C9.15,2.13,14.85,2.13,18.36,5.64z"}}]}]}; +case "OPEN_IN_NEW":return fy()}}; +xW=function(z){Kb.call(this,z,!1,!0);this.isCounterfactual=this.T=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.X=!0;this.overflowButton=new g.U({D:"button",Iy:["ytp-featured-product-overflow-icon","ytp-button"],j:{"aria-haspopup":"true"}});this.overflowButton.hide();g.u(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.U({D:"img",J:"ytp-suggested-action-badge-img",j:{src:"{{url}}"}}); +this.thumbnailImage.hide();g.u(this,this.thumbnailImage);this.thumbnailIcon=new g.U({D:"div",J:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.u(this,this.thumbnailIcon);this.banner=new g.U({D:"a",J:"ytp-suggested-action-container",N:[this.thumbnailImage,this.thumbnailIcon,{D:"div",J:"ytp-suggested-action-details",N:[{D:"text",J:"ytp-suggested-action-title",t6:"{{title}}"},{D:"text",J:"ytp-suggested-action-subtitle",t6:"{{subtitle}}"},{D:"text",J:"ytp-suggested-action-metadata-text", +t6:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.u(this,this.banner);this.banner.S4(this.S.element);this.L(this.G,"videodatachange",this.onVideoDataChange);this.L(this.G,g.F8("suggested_action_view_model"),this.Li4);this.L(this.G,g.iw("suggested_action_view_model"),this.Xry);this.L(this.overflowButton.element,"click",this.fp);this.L(z,"featuredproductdismissed",this.tF);this.G.createServerVe(this.banner.element,this.banner,!0)}; +nI4=function(z){z.isInitialized&&(z.enabled=z.isVisible,z.fh=z.isVisible,a2(z),z.WU(),z.thumbnailImage.T4(z.isVisible),z.shouldHideDismissButton||z.dismissButton.T4(z.isVisible),z.shouldShowOverflowButton&&z.overflowButton.T4(z.isVisible))}; +MD=function(){xW.apply(this,arguments)}; +Ya4=function(z){rd.call(this,z);this.K=new MD(this.api);g.u(this,this.K);g.M0(this.api,this.K.element,4)}; +Ab=function(z){rd.call(this,z);var J=this;this.K="";this.S=!0;this.T=this.api.C("html5_enable_audio_track_stickiness_phase_two");this.U=this.api.C("html5_update_preloaded_playback_with_sticky_audio_track");var m=new g.jl(z);g.u(this,m);m.L(z,"internalaudioformatchange",function(e,T){CtR(J,e,T)}); +m.L(z,"videoplayerreset",function(){aWu(J)}); +m.L(z,"videodatachange",function(e,T){J.onVideoDataChange(e,T)})}; +CtR=function(z,J,m){if(m){var e="";Kx4(z,J)&&(e=J,z.T||(z.K=J),z.api.C("html5_sabr_enable_server_xtag_selection")&&(m=z.api.getVideoData(void 0,!0)))&&(m.jg=J);if(z.T&&e&&Bls(z,e)){z.U&&Sab(z,e);var T;pQ(Zf(z.api.W(),(T=z.api.getVideoData())==null?void 0:g.ui(T)),function(E){fWb(z,e,E)})}}}; +aWu=function(z){if(z.K)DRq(z);else{var J;if(z.T&&((J=UQ())==null?0:J.size)){var m;pQ(Zf(z.api.W(),(m=z.api.getVideoData())==null?void 0:g.ui(m)),function(e){if((e=b_q(e))&&Bls(z,e)){var T=z.api.getVideoData(void 0,!0);T&&(T.jg=e)}})}}}; +DRq=function(z){var J=z.api.getVideoData(void 0,!0);J&&(J.jg=z.K)}; +fWb=function(z,J,m){b_q(m)!==J&&($Ru([{settingItemId:o2(m),settingOptionValue:{stringValue:J}}]),pQ(z.fB(),function(e){mVb(e,o2(m),{stringValue:J})}))}; +gIu=function(z,J){yN(pQ(pQ(z.fB(),function(m){return zP4(m,[o2(J)])}),function(m){if(m){m=g.y(m); +for(var e=m.next();!e.done;e=m.next()){var T=e.value;e=T.key;T=T.value;e&&T&&$Ru([{settingItemId:e,settingOptionValue:T}])}}}),function(){z.S=!0})}; +Sab=function(z,J){if(J=Kx4(z,z.K||J)){z=xRb(z.api.app.Yt().U);z=g.y(z);for(var m=z.next();!m.done;m=z.next())m.value.I2(J,!0)}}; +Kx4=function(z,J){z=z.api.getAvailableAudioTracks();z=g.y(z);for(var m=z.next();!m.done;m=z.next())if(m=m.value,m.getLanguageInfo().getId()===J)return m;return null}; +b_q=function(z){z=o2(z);var J=UQ();z=J?J.get(z):void 0;return z&&z.stringValue?z.stringValue:""}; +o2=function(z){var J=(484).toString();z&&(J=(483).toString());return J}; +Bls=function(z,J){var m;return J.split(".")[0]!==""&&((m=z.api.getVideoData())==null?void 0:!PH(m))}; +$Ru=function(z){var J=UQ();J||(J=new Map);z=g.y(z);for(var m=z.next();!m.done;m=z.next())m=m.value,J.set(m.settingItemId,m.settingOptionValue);J=JSON.stringify(Object.fromEntries(J));g.oW("yt-player-user-settings",J,2592E3)}; +g.jG=function(z,J,m,e,T,E,Z){g.k2.call(this,g.Le({"aria-haspopup":"true"}),J,z);this.Yu=e;this.X=!1;this.S=null;this.options={};this.T=new g.SG(m,void 0,z,T,E,Z);g.u(this,this.T);this.listen("keydown",this.l$);this.listen("click",this.open)}; +MdR=function(z){if(z.S){var J=z.options[z.S];J.element.getAttribute("aria-checked");J.element.setAttribute("aria-checked","false");z.S=null}}; +AOb=function(z,J){g.jG.call(this,"Sleep timer",g.wk.SLEEP_TIMER,z,J);this.G=z;this.B={};this.Y=this.WJ("Off");this.V=this.K="";z.C("web_settings_menu_icons")&&this.setIcon({D:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},N:[{D:"path",j:{d:"M16.67,4.31C19.3,5.92,21,8.83,21,12c0,4.96-4.04,9-9,9c-2.61,0-5.04-1.12-6.72-3.02C5.52,17.99,5.76,18,6,18 c6.07,0,11-4.93,11-11C17,6.08,16.89,5.18,16.67,4.31 M14.89,2.43C15.59,3.8,16,5.35,16,7c0,5.52-4.48,10-10,10 c-1,0-1.97-0.15-2.89-0.43C4.77,19.79,8.13,22,12,22c5.52,0,10-4.48,10-10C22,7.48,19,3.67,14.89,2.43L14.89,2.43z M12,6H6v1h4.5 L6,10.99v0.05V12h6v-1H7.5L12,7.01V6.98V6L12,6z", +fill:"#fff"}}]});this.U=new g.U({D:"div",Iy:["ytp-menuitem-label-wrapper"],N:[{D:"div",t6:"End of video"},{D:"div",Iy:["ytp-menuitem-sublabel"],t6:"{{content}}"}]});g.u(this,this.U);this.listen("click",this.onClick);this.L(z,"videodatachange",this.onVideoDataChange);this.L(z,"presentingplayerstatechange",this.MD);this.L(z,"settingsMenuVisibilityChanged",this.ZZb);z.createClientVe(this.element,this,218889);this.MD();this.G.B1("onSleepTimerFeatureAvailable")}; +oIj=function(z){var J="Off 10 15 20 30 45 60".split(" "),m;((m=z.G.getVideoData())==null?0:m.isLivePlayback)||J.push("End of video");m=z.G.getPlaylist();var e;m&&((e=m.listId)==null?void 0:e.type)!=="RD"&&J.push("End of playlist");z.nV(g.Ch(J,z.WJ));z.B=g.It(J,z.WJ,z);J=z.WJ("End of video");z.options[J]&&g.Rp(z.options[J],z.U)}; +j_4=function(z,J){var m=z.B[J],e=m==="End of video"||m==="End of playlist";m==="Off"&&(z.K="");z.G.getPlayerState()!==0&&z.G.getPlayerState()!==5||!e?(z.Y=J,g.jG.prototype.MA.call(z,J),z.iz(J),z.G.B1("onSleepTimerSettingsChanged",m)):z.G.B1("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"Video has already ended"}}}}})}; +uJ=function(z){rd.call(this,z);var J=this;z.addEventListener("settingsMenuInitialized",function(){J.menuItem||(J.menuItem=new AOb(J.api,J.api.o$()),g.u(J,J.menuItem))}); +z.addEventListener("openSettingsMenuItem",function(m){if(m==="menu_item_sleep_timer"){if(!J.menuItem){var e;(e=J.api.o$())==null||e.sD()}J.menuItem.open()}}); +cL(z,"resetSleepTimerMenuSettings",function(){J.resetSleepTimerMenuSettings()}); +cL(z,"setSleepTimerTimeLeft",function(m){J.setSleepTimerTimeLeft(m)}); +cL(z,"setVideoTimeLeft",function(m){J.setVideoTimeLeft(m)})}; +hVq=function(z){rd.call(this,z);var J=this;this.events=new g.jl(z);g.u(this,this.events);this.events.L(z,"onSnackbarMessage",function(m){switch(m){case 1:m=J.api.getPlayerStateObject(),m.isBuffering()&&g.R(m,8)&&g.R(m,16)&&J.api.B1("innertubeCommand",{openPopupAction:{popup:{notificationActionRenderer:{responseText:{runs:[{text:"Experiencing interruptions?"}]},actionButton:{buttonRenderer:{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:{runs:[{text:"Find out why"}]},navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers", +webPageType:"WEB_PAGE_TYPE_UNKNOWN"}},urlEndpoint:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers",target:"TARGET_NEW_WINDOW"}},loggingDirectives:{clientVeSpec:{uiType:232471}}}},loggingDirectives:{clientVeSpec:{uiType:232470}}}},durationHintMs:5E3,popupType:"TOAST"}})}})}; +g.Pk=function(z,J,m,e,T){J=J===void 0?!1:J;e=e===void 0?!1:e;T=T===void 0?!1:T;g.wF.call(this);this.B=T;this.V=!1;this.U=new bM(this);this.Z=this.Y=null;this.S=this.T=!1;g.u(this,this.U);this.target=z;this.K=J;this.X=m||z;this.V=e;J&&(g.JM&&this.target.setAttribute("draggable","true"),T||(this.target.style.touchAction="none"));Vv(this)}; +tb=function(z){g.gs(z.U,!z.K)}; +Vv=function(z){z.Z=null;z.Y=null;z.L(Hk("over"),z.GL);z.L("touchstart",z.xo);z.K&&z.L(Hk("down"),z.NEb)}; +uyf=function(z,J){for(var m=0;mT.start&&m>=5;G+=C}d=G.substr(0,4)+" "+G.substr(4,4)+" "+G.substr(8,4)+" "+(G.substr(12,4)+" "+G.substr(16,4))}else d="";Z={video_id_and_cpn:String(J.videoId)+" / "+d,codecs:"", +dims_and_frames:"",bandwidth_kbps:Z.toFixed(0)+" Kbps",buffer_health_seconds:W.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:l?"":"display:none",drm:l,debug_info:m,extra_debug_info:"",bandwidth_style:q,network_activity_style:q,network_activity_bytes:c.toFixed(0)+" KB",shader_info:w,shader_info_style:w?"":"display:none",playback_categories:""};c=e.clientWidth+"x"+e.clientHeight+(T>1?"*"+T.toFixed(2):"");W="-";E.totalVideoFrames&&(W=(E.droppedVideoFrames||0)+" dropped of "+E.totalVideoFrames); +Z.dims_and_frames=c+" / "+W;z=z.getVolume();c=iwb(J);var f;W=((f=J.U)==null?0:f.audio.K)?"DRC":Math.round(z*c)+"%";f=Math.round(z)+"% / "+W;z=J.US.toFixed(1);isFinite(Number(z))&&(f+=" (content loudness "+z+"dB)");Z.volume=f;Z.resolution=e.videoWidth+"x"+e.videoHeight;if(e=J.T){if(f=e.video)z=f.fps,z>1&&(Z.resolution+="@"+z),(z=E.KC)&&z.video&&(Z.resolution+=" / "+z.video.width+"x"+z.video.height,z.video.fps>1&&(Z.resolution+="@"+z.video.fps)),Z.codecs=URq(e),!J.U||e.audio&&e.video?e.NB&&(Z.codecs+= +" / "+e.NB+"A"):Z.codecs+=" / "+URq(J.U),f.K||f.primaries?(z=f.K||"unknown",z==="smpte2084"?z+=" (PQ)":z==="arib-std-b67"&&(z+=" (HLG)"),Z.color=z+" / "+(f.primaries||"unknown"),Z.color_style=""):Z.color_style="display:none";if(e.debugInfo)for(Z.fmt_debug_info="",e=g.y(e.debugInfo),f=e.next();!f.done;f=e.next())f=f.value,Z.fmt_debug_info+=f.label+":"+f.text+" ";Z.fmt_debug_info_style=Z.fmt_debug_info&&Z.fmt_debug_info.length>0?"":"display:none"}e=J.isLivePlayback;f=J.Ol;Z.live_mode_style=e||f?"": +"display:none";Z.live_latency_style=e?"":"display:none";if(f)Z.live_mode="Post-Live"+(w0(J)?" Manifestless":"");else if(e){f=E.EE;Z.live_latency_secs=f.toFixed(2)+"s";e=w0(J)?"Manifestless, ":"";J.Qx&&(e+="Windowed, ");z="Uncertain";if(f>=0&&f<120)if(J.latencyClass&&J.latencyClass!=="UNKNOWN")switch(J.latencyClass){case "NORMAL":z="Optimized for Normal Latency";break;case "LOW":z="Optimized for Low Latency";break;case "ULTRALOW":z="Optimized for Ultra Low Latency";break;default:z="Unknown Latency Setting"}else z= +J.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";e+=z;(f=E.ZC)&&(e+=", seq "+f.sequence);Z.live_mode=e}!E.isGapless||TF(J)&&E.As||(Z.playback_categories+="Gapless ");Z.playback_categories_style=Z.playback_categories?"":"display:none";Z.bandwidth_samples=E.Gm;Z.network_activity_samples=E.oE;Z.live_latency_samples=E.M2;Z.buffer_health_samples=E.yR;E=g.RN(J);if(J.cotn||E)Z.cotn_and_local_media=(J.cotn?J.cotn:"null")+" / "+E;Z.cotn_and_local_media_style=Z.cotn_and_local_media? +"":"display:none";Ln(J,"web_player_release_debug")?(Z.release_name=e4[49],Z.release_style=""):Z.release_style="display:none";Z.debug_info&&I.length>0&&Z.debug_info.length+I.length<=60?Z.debug_info+=" "+I:Z.extra_debug_info=I;Z.extra_debug_info_style=Z.extra_debug_info&&Z.extra_debug_info.length>0?"":"display:none";return Z}; +URq=function(z){var J=/codecs="([^"]*)"/.exec(z.mimeType);return J&&J[1]?J[1]+" ("+z.itag+")":z.itag}; +sm=function(z,J,m,e,T){g.U.call(this,{D:"div",J:"ytp-horizonchart"});this.V=J;this.sampleCount=m;this.U=e;this.Y=T;this.index=0;this.heightPx=-1;this.S=this.T=null;this.K=Math.round(z/m);this.element.style.width=this.K*this.sampleCount+"px";this.element.style.height=this.V+"em"}; +rP=function(z,J){if(z.heightPx===-1){var m=null;try{m=g.EX("CANVAS"),z.T=m.getContext("2d")}catch(c){}if(z.T){var e=z.K*z.sampleCount;z.S=m;z.S.width=e;z.S.style.width=e+"px";z.element.appendChild(z.S)}else for(z.sampleCount=Math.floor(z.sampleCount/4),z.K*=4,m=0;m1?2:1,z.S.height=z.heightPx*m,z.S.style.height= +z.heightPx+"px",z.T.scale(1,m)));J=g.y(J);for(e=J.next();!e.done;e=J.next()){m=z;var T=z.index,E=e.value;for(e=0;e+20&&g.iV(J.S.element);e.classList.add("ytp-timely-actions-overlay");J.S.element.appendChild(e)}); +g.u(this,this.S);g.M0(this.api,this.S.element,4)}; +i44=function(z){z.timelyActions&&(z.U=z.timelyActions.reduce(function(J,m){if(m.cueRangeId===void 0)return J;J[m.cueRangeId]=0;return J},{}))}; +eK=function(z,J){if(z.timelyActions){z=g.y(z.timelyActions);for(var m=z.next();!m.done;m=z.next())if(m=m.value,m.cueRangeId===J)return m}}; +ctq=function(z,J){if((z=eK(z,J))&&z.onCueRangeExit)return tr(z.onCueRangeExit)}; +Wnz=function(z){if(z.K!==void 0){var J=(J=eK(z,z.K))&&J.onCueRangeEnter?tr(J.onCueRangeEnter):void 0;var m=eK(z,z.K);if(m&&m.additionalTrigger){var e=!1;for(var T=g.y(m.additionalTrigger),E=T.next();!E.done;E=T.next())E=E.value,E.type&&E.args&&z.Y[E.type]!==void 0&&(e=e||z.Y[E.type](E.args))}else e=!0;J&&e&&(z.api.B1("innertubeCommand",J),z.setTimeout(m),z.U[z.K]!==void 0&&z.U[z.K]++,z.V=!0)}}; +TMq=function(z,J){return z.T===void 0?!1:J.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(J.seekLengthMilliseconds)===5E3?z.T===72:J.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(J.seekLengthMilliseconds)===1E4?z.T===74:J.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(J.seekLengthMilliseconds)===5E3?z.T===71:J.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(J.seekLengthMilliseconds)===1E4?z.T===73:!1}; +E6u=function(z){if(z=z.getWatchNextResponse()){var J,m;z=(J=z.playerOverlays)==null?void 0:(m=J.playerOverlayRenderer)==null?void 0:m.timelyActionsOverlayViewModel;J=g.P(z,l9f);if(J!=null&&J.timelyActions)return J==null?void 0:J.timelyActions.map(function(e){return g.P(e,wab)}).filter(function(e){return!!e})}}; +qVq=function(z){rd.call(this,z);var J=this;WL(this.api,"getPlaybackRate",function(){return J.api.getPlaybackRate()}); +WL(this.api,"setPlaybackRate",function(m){typeof m==="number"&&J.api.setPlaybackRate(m)})}; +dwq=function(z){z=z.jO();if(!z)return!1;z=g.iv(z).exp||"";return z.includes("xpv")||z.includes("xpe")}; +I9u=function(z){z=g.y(g.Tp(z,!0));for(var J=z.next();!J.done;J=z.next())if(dwq(J.value))return!0;return!1}; +O4q=function(z,J){z=g.y(g.Tp(z,!0));for(var m=z.next();!m.done;m=z.next())if(m=m.value,dwq(m)){var e={potc:"1",pot:J};m.url&&(m.url=cf(m.url,e))}}; +pab=function(z){var J=new EVE,m={},e=(m["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",m);return new $a(J,z,function(){return e})}; +yt1=function(z){return g.D(function(J){if(J.K==1)return g.Yu(J,2),g.S(J,z,4);if(J.K!=2)return g.aq(J,0);g.Kq(J);g.nq(J)})}; +ZT=function(z){rd.call(this,z);var J=this;this.useLivingRoomPoToken=!1;this.U=new g.CS;this.hZ=null;this.V=!1;this.S=null;this.Z=!1;var m=z.W().getWebPlayerContextConfig();this.events=new g.jl(z);g.u(this,this.events);this.events.L(z,"spsumpreject",function(e,T,E){J.Z=T;e&&J.V&&!J.S&&(J.C("html5_generate_content_po_token")&&E?J.wS(E):J.C("html5_generate_session_po_token")&&NM4(J));J.S||J.api.ph("stp",{s:+J.V,b:+J.Z})}); +this.events.L(z,"poTokenVideoBindingChange",function(e){J.wS(e)}); +this.useLivingRoomPoToken=!(m==null||!m.useLivingRoomPoToken);z.addEventListener("csiinitialized",function(){J.hZ=z.uU();var e=(J.C("html5_generate_session_po_token")||J.C("html5_generate_content_po_token"))&&!J.useLivingRoomPoToken;try{if(J.C("html5_use_shared_owl_instance"))Glq(J);else if(e){J.hZ.Au("pot_isc");J.C("html5_new_wpo_client")||Xab(J);var T=g.dv(J.api.W().experiments,"html5_webpo_kaios_defer_timeout_ms");T?(J.C("html5_new_wpo_client")&&(J.T=m_()),g.Np(function(){Eb(J)},T)):J.C("html5_webpo_idle_priority_job")? +(J.C("html5_new_wpo_client")&&(J.T=m_()),g.mV(g.Tf(),function(){Eb(J)})):Eb(J)}}catch(E){E instanceof Error&&g.hr(E)}}); +z.addEventListener("trackListLoaded",this.t8.bind(this));z.Lk(this)}; +n61=function(z){var J=zt(z.experiments,"html5_web_po_request_key");return J?J:g.SP(z)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; +F6=function(z,J){if(z.C("html5_webpo_bge_ctmp")){var m,e={hwpo:!!z.K,hwpor:!((m=z.K)==null||!m.isReady())};z.api.ph(J,e)}}; +Glq=function(z){var J,m;g.D(function(e){if(e.K==1)return F6(z,"swpo_i"),z.T=m_(),iz(z),g.S(e,Sp(),2);if(e.K!=3)return J=e.T,F6(z,"swpo_co"),g.S(e,sgz(J),3);m=e.T;z.K=YVb(z,m);F6(z,"swpo_cc");z.K.ready().then(function(){z.U.resolve();F6(z,"swpo_re")}); +g.Np(function(){Eb(z);F6(z,"swpo_si")},0); +g.nq(e)})}; +Xab=function(z){var J=z.api.W(),m=n61(J),e=pab(m);J=new Lv({Dc:"CLEn",kO:m,fJ:e,onEvent:function(T){(T=C$z[T])&&z.hZ.Au(T)}, +onError:g.hr,P4:Ckj(J.experiments),O$:function(){return void z.api.ph("itr",{})}, +qux:J.experiments.j4("html5_web_po_disable_remote_logging")||a9u.includes(g.H1(J.qA)||"")});J.ready().then(function(){return void z.U.resolve()}); +g.u(z,J);z.K=J}; +Knq=function(z){var J=z.api.W(),m=pab(n61(J)),e=m.cn.bind(m);m.cn=function(c){var W;return g.D(function(l){if(l.K==1)return g.S(l,e(c),2);W=l.T;z.api.ph("itr",{});return l.return(W)})}; +try{var T=new gE({fJ:m,d5:{maxAttempts:5},No:{Dc:"CLEn",disable:J.experiments.j4("html5_web_po_disable_remote_logging")||a9u.includes(g.H1(J.qA)||""),Kv:Ckj(J.experiments),nun:z.C("wpo_dis_lfdms")?0:1E3},qDF:g.hr});var E=new JV({xP:T,fJ:m,onError:g.hr});yt1(E.kp()).then(function(){return void z.U.resolve()}); +g.u(z,T);g.u(z,E);z.K=YVb(z,E)}catch(c){g.hr(c);var Z;(Z=T)==null||Z.dispose()}}; +Eb=function(z){var J=z.api.W();z.hZ.Au("pot_ist");z.K?z.K.start():z.C("html5_new_wpo_client")&&Knq(z);z.C("html5_bandaid_attach_content_po_token")||(z.C("html5_generate_session_po_token")&&(iz(z),NM4(z)),J=g.dv(J.experiments,"html5_session_po_token_interval_time_ms")||0,J>0&&(z.Y=g.Go(function(){iz(z)},J)),z.V=!0)}; +iz=function(z){var J,m,e,T;g.D(function(E){if(!z.C("html5_generate_session_po_token")||z.useLivingRoomPoToken)return E.return();J=z.api.W();m=g.Qt("EOM_VISITOR_DATA")||g.Qt("VISITOR_DATA");e=J.mY?J.datasyncId:m;T=zt(J.experiments,"html5_mock_content_binding_for_session_token")||J.livingRoomPoTokenId||e;J.vA=c_(z,T);g.nq(E)})}; +c_=function(z,J){if(!z.K){if(z.T)try{return z.T(J)}catch(Z){g.hr(Z)}return""}try{var m=z.K.isReady();z.hZ.Au(m?"pot_cms":"pot_csms");var e="";e=z.C("html5_web_po_token_disable_caching")?z.K.zR({Up:J}):z.K.zR({Up:J,hs:{B0:J,ZqF:150,dF:!0,f6:!0}});z.hZ.Au(m?"pot_cmf":"pot_csmf");if(m){var T;(T=z.S)==null||T.resolve();z.S=null;if(z.Z){z.Z=!1;var E;(E=z.api.app.W1())==null||E.xY(!1)}}return e}catch(Z){return g.hr(Z),""}}; +NM4=function(z){z.K&&(z.S=new r7,z.K.ready().then(function(){z.hZ.Au("pot_if");iz(z)}))}; +YVb=function(z,J){z.C("html5_web_po_token_disable_caching")||J.ZL(150);var m=!1,e=yt1(J.kp()).then(function(){m=!0}); +return{isReady:function(){return m}, +ready:function(){return e}, +zR:function(T){return J.zR({Up:T.Up,SV:!0,U$:!0,hs:T.hs?{B0:T.hs.B0,dF:T.hs.dF,f6:T.hs.f6}:void 0})}, +start:function(){}}}; +BMq=function(z){rd.call(this,z);var J=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.jl(z);g.u(this,this.events);this.events.L(z,"heartbeatRequest",function(m){if(J.freePreviewUsageDetails.length||J.freePreviewWatchedDuration!==null)m.heartbeatRequestParams||(m.heartbeatRequestParams={}),m.heartbeatRequestParams.unpluggedParams||(m.heartbeatRequestParams.unpluggedParams={}),J.freePreviewUsageDetails.length>0?m.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= +J.freePreviewUsageDetails:m.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+J.freePreviewWatchedDuration}}); +cL(z,"setFreePreviewWatchedDuration",function(m){J.freePreviewWatchedDuration=m}); +cL(z,"setFreePreviewUsageDetails",function(m){J.freePreviewUsageDetails=m})}; +W_=function(z){g.h.call(this);this.features=[];var J=this.K,m=new BO(z),e=new zT(z),T=new ND(z),E=new ZT(z);var Z=g.K1(z.W())?void 0:new Nv(z);var c=new yv(z),W=new Q_s(z),l=new qVq(z),w=new Kj(z);var q=g.K1(z.W())?new BMq(z):void 0;var d=z.C("html5_enable_ssap")?new H_4(z):void 0;var I=z.C("web_cinematic_watch_settings")&&(I=z.W().getWebPlayerContextConfig())!=null&&I.cinematicSettingsAvailable?new Ic(z):void 0;var O=new ac(z);var G=z.C("enable_courses_player_overlay_purchase")?new Guq(z):void 0; +var n=g.vZ(z.W())?new OQq(z):void 0;var C=new GT(z);var K=z.W().U?new WOb(z):void 0;var f=g.fi(z.W())?new chu(z):void 0;var x=z.C("web_player_move_autonav_toggle")&&z.W().Zo?new Jhu(z):void 0;var V=g.vZ(z.W())?new VKu(z):void 0;var zE=z.C("web_enable_speedmaster")&&g.vZ(z.W())?new kW(z):void 0;var k=z.W().US?void 0:new edb(z);var Ez=z.C("report_pml_debug_signal")?new viu(z):void 0;var ij=new JOz(z),r=new YW(z);var t=g.uB(z.W())?new lWq(z):void 0;var v=navigator.mediaSession&&window.MediaMetadata&& +z.W().DX?new Om(z):void 0;var N=z.C("html5_enable_drc")&&!z.W().Y?new yi(z):void 0;var H=new mF(z);var Pq=g.vZ(z.W())?new Ya4(z):void 0;var KN=z.C("html5_enable_d6de4")?new Gj(z):void 0;var pN=g.vZ(z.W())&&z.C("web_sleep_timer")?new uJ(z):void 0;var S4=g.fi(z.W())?new wtE(z):void 0;var J4=new Ab(z),iF=new ZQq(z),N1=new u6b(z);var Y=z.C("enable_sabr_snackbar_message")?new hVq(z):void 0;var a=z.C("web_enable_timely_actions")?new Fnq(z):void 0;J.call(this,m,e,T,E,Z,c,W,l,w,q,d,I,O,G,n,C,K,f,x,V,zE,k, +Ez,ij,r,t,void 0,v,N,H,void 0,Pq,KN,pN,S4,void 0,J4,iF,N1,void 0,Y,a,new Oh(z))}; +SVs=function(){this.T=this.K=NaN}; +f9u=function(z,J){this.yx=z;this.timerName="";this.S=!1;this.T=NaN;this.U=new SVs;this.K=J||null;this.S=!1}; +Dw4=function(z,J,m){var e=g.MA(J.e4)&&!J.e4.Y;if(J.e4.hJ&&(bl(J.e4)||J.e4.x3==="shortspage"||mp(J.e4)||e)&&!z.S){z.S=!0;z.Y=J.clientPlaybackNonce;g.Qt("TIMING_ACTION")||L3("TIMING_ACTION",z.yx.csiPageType);z.yx.csiServiceName&&L3("CSI_SERVICE_NAME",z.yx.csiServiceName);if(z.K){e=z.K.uU();for(var T=g.y(Object.keys(e)),E=T.next();!E.done;E=T.next())E=E.value,Ph(E,e[E],z.timerName);e=g.zo(xhE)(z.K.Zh);g.tR(e,z.timerName);e=z.K;e.T={};e.Zh={}}g.tR({playerInfo:{visibilityState:g.zo(go1)()},playerType:"LATENCY_PLAYER_HTML5"}, +z.timerName);z.Z!==J.clientPlaybackNonce||Number.isNaN(z.T)||(Up("_start",z.timerName)?m=g.zo(oE)("_start",z.timerName)+z.T:g.hr(new g.vR("attempted to log gapless pbs before CSI timeline started",{cpn:J.clientPlaybackNonce})));m&&!Up("pbs",z.timerName)&&lz(z,m)}}; +lz=function(z,J,m){Ph("pbs",J!=null?J:(0,g.b5)(),m!=null?m:z.timerName)}; +b4q=function(z,J,m,e,T,E,Z,c){J=(J===e?"video":"ad")+"_to_"+(m===e?"video":"ad");if(J!=="video_to_ad"||Z!=null&&Z.wb){Z=J==="ad_to_video"?Z:T;e=Z==null?void 0:Z.iX;var W={};if(T==null?0:T.Y)W.cttAuthInfo={token:T.Y,videoId:T.videoId};E&&(W.startTime=E);Hh(J,W);var l,w,q;T={targetVideoId:(l=T==null?void 0:T.videoId)!=null?l:"empty_video",targetCpn:m,adVideoId:(w=Z==null?void 0:Z.videoId)!=null?w:"empty_video",adClientPlaybackNonce:(q=e==null?void 0:e.cpn)!=null?q:Z==null?void 0:Z.clientPlaybackNonce}; +e&&(T.adBreakType=e.adBreakType,T.adType=e.adType);g.tR(T,J);lz(z,c,J)}}; +wh=function(z){HTq();tVb();z.timerName=""}; +$wR=function(z){if(z.K){var J=z.K;J.T={};J.Zh={}}z.S=!1;z.Z=void 0;z.T=NaN}; +g64=function(z,J){g.wF.call(this);this.e4=z;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.K=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.B={};this.T=0;if(z=J.session_data)this.sessionData=To(z,"&");this.index=Math.max(0,Number(J.index)||0);this.loop=!!J.loop;this.startSeconds=Number(J.startSeconds)||0;this.title=J.playlist_title||"";this.description=J.playlist_description||"";this.author= +J.author||J.playlist_author||"";J.video_id&&(this.items[this.index]=J);if(z=J.api)typeof z==="string"&&z.length===16?J.list="PL"+z:J.playlist=z;if(z=J.list)switch(J.listType){case "user_uploads":this.listId=new nr("UU","PLAYER_"+z);break;default:var m=J.playlist_length;m&&(this.length=Number(m)||0);this.listId=g.Yt(z);if(z=J.video)this.items=z.slice(0),this.loaded=!0}else if(J.playlist){z=J.playlist.toString().split(",");this.index>0&&(this.items=[]);z=g.y(z);for(m=z.next();!m.done;m=z.next())(m= +m.value)&&this.items.push({video_id:m});this.length=this.items.length;if(z=J.video)this.items=z.slice(0),this.loaded=!0}this.setShuffle(!!J.shuffle);if(z=J.suggestedQuality)this.quality=z;this.B=ym(J,"playlist_");this.S=(J=J.thumbnail_ids)?J.split(","):[]}; +xwu=function(z){return!!(z.playlist||z.list||z.api)}; +MHq=function(z){var J=z.index+1;return J>=z.length?0:J}; +Atb=function(z){var J=z.index-1;return J<0?z.length-1:J}; +g.q5=function(z,J,m,e){J=J!==void 0?J:z.index;J=z.items&&J in z.items?z.items[z.order[J]]:null;var T=null;J&&(m&&(J.autoplay="1"),e&&(J.autonav="1"),T=new g.H$(z.e4,J),g.u(z,T),T.jY=!0,T.startSeconds=z.startSeconds||T.clipStart||0,z.listId&&(T.playlistId=z.listId.toString()));return T}; +o6z=function(z,J){z.index=g.O8(J,0,z.length-1);z.startSeconds=0}; +jM1=function(z,J){if(J.video&&J.video.length){z.title=J.title||"";z.description=J.description;z.views=J.views;z.likes=J.likes;z.dislikes=J.dislikes;z.author=J.author||"";var m=J.loop;m&&(z.loop=m);m=g.q5(z);z.items=[];for(var e=g.y(J.video),T=e.next();!T.done;T=e.next())if(T=T.value)T.video_id=T.encrypted_id,z.items.push(T);z.length=z.items.length;(J=J.index)?z.index=J:z.findIndex(m);z.setShuffle(!1);z.loaded=!0;z.T++;z.K&&z.K()}}; +VHj=function(z,J){var m,e,T,E,Z,c,W;return g.D(function(l){if(l.K==1){m=g.i_();var w=z.W(),q={context:g.Fq(z),playbackContext:{contentPlaybackContext:{ancestorOrigins:w.ancestorOrigins}}},d=w.getWebPlayerContextConfig();if(d==null?0:d.encryptedHostFlags)q.playbackContext.contentPlaybackContext.encryptedHostFlags=d.encryptedHostFlags;if(d==null?0:d.hideInfo)q.playerParams={showinfo:!1};w=w.embedConfig;d=J.docid||J.video_id||J.videoId||J.id;if(!d){d=J.raw_embedded_player_response;if(!d){var I=J.embedded_player_response; +I&&(d=JSON.parse(I))}if(d){var O,G,n,C,K,f;d=((f=g.P((O=d)==null?void 0:(G=O.embedPreview)==null?void 0:(n=G.thumbnailPreviewRenderer)==null?void 0:(C=n.playButton)==null?void 0:(K=C.buttonRenderer)==null?void 0:K.navigationEndpoint,g.rN))==null?void 0:f.videoId)||null}else d=null}O=(O=d)?O:void 0;G=z.playlistId?z.playlistId:J.list;n=J.listType;if(G){var x;n==="user_uploads"?x={username:G}:x={playlistId:G};hds(w,O,J,x);q.playlistRequest=x}else J.playlist?(x={templistVideoIds:J.playlist.toString().split(",")}, +hds(w,O,J,x),q.playlistRequest=x):O&&(x={videoId:O},w&&(x.serializedThirdPartyEmbedConfig=w),q.singleVideoRequest=x);e=q;T=g.ej(usb);g.Yu(l,2);return g.S(l,g.vh(m,e,T),4)}if(l.K!=2)return E=l.T,Z=z.W(),J.raw_embedded_player_response=E,Z.wb=qN(J,g.fi(Z)),Z.S=Z.wb==="EMBEDDED_PLAYER_MODE_PFL",E&&(c=E,c.trackingParams&&bK(c.trackingParams)),l.return(new g.H$(Z,J));W=g.Kq(l);W instanceof Error||(W=Error("b259802748"));g.jk(W);return l.return(z)})}; +hds=function(z,J,m,e){m.index&&(e.playlistIndex=String(Number(m.index)+1));e.videoId=J?J:"";z&&(e.serializedThirdPartyEmbedConfig=z)}; +g.ID=function(z,J){dh.get(z);dh.set(z,J)}; +g.Ob=function(z){g.wF.call(this);this.loaded=!1;this.player=z}; +P$q=function(){this.T=[];this.K=[]}; +g.Tp=function(z,J){return J?z.K.concat(z.T):z.K}; +g.p7=function(z,J){switch(J.kind){case "asr":tH1(J,z.T);break;default:tH1(J,z.K)}}; +tH1=function(z,J){g.QS(J,function(m){return z.NL(m)})||J.push(z)}; +g.yy=function(z){g.h.call(this);this.Vx=z;this.T=new P$q;this.U=null;this.Z=[];this.X=[]}; +g.N5=function(z,J,m){g.yy.call(this,z);this.videoData=J;this.audioTrack=m;this.K=null;this.S=!1;this.Z=J.hd;this.X=J.IL;this.S=g.AX(J)}; +g.Gp=function(z,J){return E2(z.info.mimeType)?J?z.info.itag===J:!0:!1}; +g.H4q=function(z,J){if(z.K!=null&&g.K1(J.W())&&!z.K.isManifestless&&z.K.K.rawcc!=null)return!0;if(!z.Cq())return!1;J=!!z.K&&z.K.isManifestless&&Object.values(z.K.K).some(function(m){return g.Gp(m,"386")}); +z=!!z.K&&!z.K.isManifestless&&g.xUR(z.K);return J||z}; +g.X6=function(z,J,m,e,T,E){g.yy.call(this,z);this.videoId=m;this.bY=T;this.eventId=E;this.Y={};this.K=null;z=e||g.iv(J).hl||"";z=z.split("_").join("-");this.S=cf(J,{hl:z})}; +UwE=function(z,J){this.T=z;this.K=J;this.onFailure=void 0}; +RdE=function(z,J){return{sT:z.sT&&J.sT,Qv:z.Qv&&J.Qv,sync:z.sync&&J.sync,streaming:z.streaming&&J.streaming}}; +YN=function(z,J){var m=klE,e=this;this.path=z;this.S=J;this.U=m;this.capabilities={sT:!!this.S,Qv:"WebAssembly"in window,sync:"WebAssembly"in window,streaming:"WebAssembly"in window&&"instantiateStreaming"in WebAssembly&&"compileStreaming"in WebAssembly};this.Z=new UwE([{name:"compileStreaming",condition:function(T){return!!e.T&&T.streaming}, +Py:n7.IM("wmcx",function(){return WebAssembly.compileStreaming(fetch(e.path))}), +onFailure:function(){return e.capabilities.streaming=!1}}, +{name:"sync",condition:function(T){return T.sync}, +Py:function(){return pQ(Lnf(e),n7.IM("wmcs",function(T){return new WebAssembly.Module(T)}))}, +onFailure:function(){return e.capabilities.sync=!1}}, +{name:"async",condition:function(){return!0}, +Py:function(){return pQ(Lnf(e),n7.IM("wmca",function(T){return WebAssembly.compile(T)}))}, +onFailure:function(){return e.capabilities.Qv=!1}}]); +this.Y=new UwE([{name:"instantiateStreaming",condition:function(T){return T.Qv&&T.streaming&&!e.T&&!e.K}, +Py:function(T,E){return n7.ZQ("wmix",function(){return WebAssembly.instantiateStreaming(fetch(e.path),E)}).then(function(Z){e.K=wH(Z.module); +return{instance:Z.instance,zz:!1}})}, +onFailure:function(){return e.capabilities.streaming=!1}}, +{name:"sync",condition:function(T){return T.Qv&&T.sync}, +Py:function(T,E){return pQ(QM4(e,T),n7.IM("wmis",function(Z){return{instance:new WebAssembly.Instance(Z,E),zz:!1}}))}, +onFailure:function(){return e.capabilities.sync=!1}}, +{name:"async",condition:function(T){return T.Qv}, +Py:function(T,E){return pQ(pQ(QM4(e,T),n7.IM("wmia",function(Z){return WebAssembly.instantiate(Z,E)})),function(Z){return{instance:Z, +zz:!1}})}, +onFailure:function(){return e.capabilities.Qv=!1}}, +{name:"asmjs",condition:function(T){return T.sT}, +Py:function(T,E){return wH(n7.ZQ("wmij",function(){return e.S(E)}).then(function(Z){return{instance:{exports:Z}, +zz:!0}}))}, +onFailure:function(){return e.capabilities.sT=!1}}],function(T,E,Z){return e.U(Z,T.instance.exports)})}; +rt4=function(z){var J=v6b;return J.instantiate(z?RdE(J.capabilities,z):J.capabilities,new sMu)}; +Lnf=function(z){if(z.T)return z.T;var J=fetch(z.path).then(function(m){return m.arrayBuffer()}).then(function(m){z.T=wH(m); +return m}).then(void 0,function(m){g.hr(Error("wasm module fetch failure: "+m.message,{cause:m})); +z.T=void 0;throw m;}); +z.T=wH(J);return z.T}; +QM4=function(z,J){if(!J.Qv)return dH(Error("wasm unavailable"));if(z.K)return z.K;z.K=yN(pQ(z.compile(J),function(m){z.K=wH(m);return m}),function(m){g.hr(Error("wasm module compile failure: "+m.message,{cause:m})); +z.K=void 0;throw m;}); +return z.K}; +zwb=function(){}; +JIE=function(){var z=this;this.proc_exit=function(){}; +this.fd_write=function(J,m,e){if(!z.exports)return 1;J=new Uint32Array(z.exports.memory.buffer,m,e*2);m=[];for(var T=0;T=11;z=z.api.W().X&&gh;return!(!J&&!z)}; +H_=function(z,J){return!z.api.isInline()&&!jhb(z,fJ(J))&&g.SD(J)}; +o3E=function(z){z.wG.jK();if(z.l9&&z.Q0)z.Q0=!1;else if(!z.api.W().Gf&&!z.GR()){var J=z.api.getPlayerStateObject();g.R(J,2)&&g.SM(z.api)||z.Et(J);!z.api.W().GS||J.isCued()||g.R(J,1024)?z.WN():z.kT.isActive()?(z.Ty(),z.kT.stop()):z.kT.start()}}; +uYj=function(z,J){var m;if((m=z.api.getVideoData())==null?0:m.mutedAutoplay){var e,T;if((e=J.target)==null?0:(T=e.className)==null?0:T.includes("ytp-info-panel"))return!1}return g.SD(J)&&z.api.isMutedByMutedAutoplay()?(z.api.unMute(),z.api.getPresentingPlayerType()===2&&z.api.playVideo(),J=z.api.getPlayerStateObject(),!g.R(J,4)||g.R(J,8)||g.R(J,2)||z.WN(),!0):!1}; +VEu=function(z,J,m){z.api.isFullscreen()?m<1-J&&z.api.toggleFullscreen():m>1+J&&z.api.toggleFullscreen()}; +AIb=function(z){var J=kJ()&&Hf()>=67&&!z.api.W().X;z=z.api.W().disableOrganicUi;return!g.RQ("tizen")&&!Ki&&!J&&!z}; +g.Ub=function(z){g.U.call(this,{D:"div",N:[{D:"div",J:"ytp-bezel-text-wrapper",N:[{D:"div",J:"ytp-bezel-text",t6:"{{title}}"}]},{D:"div",J:"ytp-bezel",j:{role:"status","aria-label":"{{label}}"},N:[{D:"div",J:"ytp-bezel-icon",t6:"{{icon}}"}]}]});this.G=z;this.T=new g.vl(this.show,10,this);z=this.G.C("delhi_modern_web_player")?1E3:500;this.K=new g.vl(this.hide,z,this);g.u(this,this.T);g.u(this,this.K);this.hide()}; +kN=function(z,J,m){if(J<=0){m=xC();J="muted";var e=0}else m=m?{D:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{D:"path",xQ:!0,j:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{D:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{D:"path",xQ:!0,j:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z", +fill:"#fff"}}]},e=Math.floor(J),J=e+"volume";RD(z,m,J,e+"%")}; +Pb4=function(z,J){J=J?{D:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{D:"path",xQ:!0,J:"ytp-svg-fill",j:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:pjq();var m=z.G.getPlaybackRate(),e=g.NQ("Speed is $RATE",{RATE:String(m)});RD(z,J,e,m+"x")}; +tEj=function(z,J){J=J?"Subtitles/closed captions on":"Subtitles/closed captions off";RD(z,THs(),J)}; +RD=function(z,J,m,e){e=e===void 0?"":e;z.updateValue("label",m===void 0?"":m);z.updateValue("icon",J);g.z5(z.K);z.T.start();z.updateValue("title",e);g.qt(z.element,"ytp-bezel-text-hide",!e)}; +HXu=function(z,J){g.U.call(this,{D:"button",Iy:["ytp-button","ytp-cards-button"],j:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.fi(z.W()))},N:[{D:"span",J:"ytp-cards-button-icon-default",N:[{D:"div",J:"ytp-cards-button-icon",N:[z.W().C("player_new_info_card_format")?Gf4():{D:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{D:"path",xQ:!0,J:"ytp-svg-fill",j:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]}, +{D:"div",J:"ytp-cards-button-title",t6:"Info"}]},{D:"span",J:"ytp-cards-button-icon-shopping",N:[{D:"div",J:"ytp-cards-button-icon",N:[{D:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{D:"path",J:"ytp-svg-shadow",j:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{D:"path",J:"ytp-svg-fill",j:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z", +"fill-opacity":"1"}},{D:"path",J:"ytp-svg-shadow-fill",j:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{D:"div", +J:"ytp-cards-button-title",t6:"Shopping"}]}]});this.G=z;this.T=J;this.K=null;this.fade=new g.Ex(this,250,!0,100);g.u(this,this.fade);g.qt(this.T,"ytp-show-cards-title",g.fi(z.W()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.Qz(!0)}; +Ujz=function(z,J){g.U.call(this,{D:"div",J:"ytp-cards-teaser",N:[{D:"div",J:"ytp-cards-teaser-box"},{D:"div",J:"ytp-cards-teaser-text",N:z.W().C("player_new_info_card_format")?[{D:"button",J:"ytp-cards-teaser-info-icon",j:{"aria-label":"Show cards","aria-haspopup":"true"},N:[Gf4()]},{D:"span",J:"ytp-cards-teaser-label",t6:"{{text}}"},{D:"button",J:"ytp-cards-teaser-close-button",j:{"aria-label":"Close"},N:[g.a0()]}]:[{D:"span",J:"ytp-cards-teaser-label",t6:"{{text}}"}]}]});var m=this;this.G=z;this.Wm= +J;this.fade=new g.Ex(this,250,!1,250);this.K=null;this.V=new g.vl(this.H1y,300,this);this.Y=new g.vl(this.ywF,2E3,this);this.U=[];this.T=null;this.X=new g.vl(function(){m.element.style.margin="0"},250); +this.onClickCommand=this.S=null;g.u(this,this.fade);g.u(this,this.V);g.u(this,this.Y);g.u(this,this.X);z.W().C("player_new_info_card_format")?(g.FE(z.getRootNode(),"ytp-cards-teaser-dismissible"),this.L(this.P1("ytp-cards-teaser-close-button"),"click",this.xU),this.L(this.P1("ytp-cards-teaser-info-icon"),"click",this.eM),this.L(this.P1("ytp-cards-teaser-label"),"click",this.eM)):this.listen("click",this.eM);this.L(J.element,"mouseover",this.Tx);this.L(J.element,"mouseout",this.KT);this.L(z,"cardsteasershow", +this.q4b);this.L(z,"cardsteaserhide",this.JZ);this.L(z,"cardstatechange",this.QZ);this.L(z,"presentingplayerstatechange",this.QZ);this.L(z,"appresize",this.Sq);this.L(z,"onShowControls",this.Sq);this.L(z,"onHideControls",this.RN);this.listen("mouseenter",this.St)}; +Rwf=function(z){g.U.call(this,{D:"button",Iy:[L7.BUTTON,L7.TITLE_NOTIFICATIONS],j:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},N:[{D:"div",J:L7.TITLE_NOTIFICATIONS_ON,j:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},N:[g.Sb()]},{D:"div",J:L7.TITLE_NOTIFICATIONS_OFF,j:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},N:[{D:"svg",j:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},N:[{D:"path",j:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]}); +this.api=z;this.K=!1;z.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Get notified about every new video")}; +kB1=function(z,J){z.K=J;z.element.classList.toggle(L7.NOTIFICATIONS_ENABLED,z.K);var m=z.api.getVideoData();m?(J=J?m.Z6:m.Yd)?(z=z.api.fB())?Qj(z,J):g.jk(Error("No innertube service available when updating notification preferences.")):g.jk(Error("No update preferences command available.")):g.jk(Error("No video data when updating notification preferences."))}; +Qhz=function(z,J,m){var e=e===void 0?800:e;var T=T===void 0?600:T;var E=document.location.protocol;z=pm1(E+"//"+z+"/signin?context=popup","feature",J,"next",E+"//"+location.hostname+"/post_login");Lfj(z,m,e,T)}; +Lfj=function(z,J,m,e){m=m===void 0?800:m;e=e===void 0?600:e;if(z=g.tB(window,z,"loginPopup","width="+m+",height="+e+",resizable=yes,scrollbars=yes"))OHz(function(){J()}),z.moveTo((screen.width-m)/2,(screen.height-e)/2)}; +g.Qy=function(z,J,m,e,T,E,Z,c,W,l,w,q){z=z.charAt(0)+z.substring(1).toLowerCase();m=m.charAt(0)+m.substring(1).toLowerCase();if(J==="0"||J==="-1")J=null;if(e==="0"||e==="-1")e=null;var d=w.W(),I=d.userDisplayName&&g.MA(d);g.U.call(this,{D:"div",Iy:["ytp-button","ytp-sb"],N:[{D:"div",J:"ytp-sb-subscribe",j:I?{title:g.NQ("Subscribe as $USER_NAME",{USER_NAME:d.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":e8(d),"data-tooltip-opaque":String(g.fi(d)),tabindex:"0",role:"button"}: +{"aria-label":"Subscribe to channel"},N:[{D:"div",J:"ytp-sb-text",N:[{D:"div",J:"ytp-sb-icon"},z]},J?{D:"div",J:"ytp-sb-count",t6:J}:""]},{D:"div",J:"ytp-sb-unsubscribe",j:I?{title:g.NQ("Subscribed as $USER_NAME",{USER_NAME:d.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":e8(d),"data-tooltip-opaque":String(g.fi(d)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},N:[{D:"div",J:"ytp-sb-text",N:[{D:"div",J:"ytp-sb-icon"},m]},e?{D:"div",J:"ytp-sb-count", +t6:e}:""]}],j:{"aria-live":"polite"}});var O=this;this.channelId=Z;this.G=w;this.S=q;var G=this.P1("ytp-sb-subscribe"),n=this.P1("ytp-sb-unsubscribe");E&&g.FE(this.element,"ytp-sb-classic");if(T){c?this.K():this.T();var C=function(){if(d.Tf){var f=O.channelId;if(W||l){var x={c:f};var V;g.MS.isInitialized()&&(V=nbj(x));x=V||"";if(V=w.getVideoData())if(V=V.subscribeCommand){var zE=w.fB();zE?(Qj(zE,V,{botguardResponse:x,feature:W}),w.B1("SUBSCRIBE",f)):g.jk(Error("No innertube service available when updating subscriptions."))}else g.jk(Error("No subscribe command in videoData.")); +else g.jk(Error("No video data available when updating subscription."))}n.focus();n.removeAttribute("aria-hidden");G.setAttribute("aria-hidden","true")}else Qhz(g.Uj(O.G.W()),"sb_button",O.U)},K=function(){var f=O.channelId; +if(W||l){var x=w.getVideoData();Qj(w.fB(),x.unsubscribeCommand,{feature:W});w.B1("UNSUBSCRIBE",f)}G.focus();G.removeAttribute("aria-hidden");n.setAttribute("aria-hidden","true")}; +this.L(G,"click",C);this.L(n,"click",K);this.L(G,"keypress",function(f){f.keyCode===13&&C(f)}); +this.L(n,"keypress",function(f){f.keyCode===13&&K(f)}); +this.L(w,"SUBSCRIBE",this.K);this.L(w,"UNSUBSCRIBE",this.T);this.S&&I&&(upu(w),ap(w,G,this),ap(w,n,this))}else g.FE(G,"ytp-sb-disabled"),g.FE(n,"ytp-sb-disabled")}; +rIs=function(z){g.U.call(this,{D:"div",J:"ytp-title-channel",N:[{D:"div",J:"ytp-title-beacon"},{D:"a",J:"ytp-title-channel-logo",j:{href:"{{channelLink}}",target:z.W().B,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{D:"div",J:"ytp-title-expanded-overlay",j:{"aria-hidden":"{{flyoutUnfocusable}}"},N:[{D:"div",J:"ytp-title-expanded-heading",N:[{D:"div",J:"ytp-title-expanded-title",N:[{D:"a",t6:"{{expandedTitle}}",j:{href:"{{channelTitleLink}}",target:z.W().B,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", +tabIndex:"{{channelTitleFocusable}}"}}]},{D:"div",J:"ytp-title-expanded-subtitle",t6:"{{expandedSubtitle}}",j:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var J=this;this.api=z;this.channel=this.P1("ytp-title-channel");this.T=this.P1("ytp-title-channel-logo");this.channelName=this.P1("ytp-title-expanded-title");this.Y=this.P1("ytp-title-expanded-overlay");this.S=this.K=this.subscribeButton=null;this.U=!1;z.createClientVe(this.T,this,36925);z.createClientVe(this.channelName,this, +37220);g.fi(this.api.W())&&v3u(this);this.L(z,"videodatachange",this.MD);this.L(z,"videoplayerreset",this.MD);this.L(this.channelName,"click",function(m){J.api.logClick(J.channelName);g.tB(window,shq(J));m.preventDefault()}); +this.L(this.T,"click",this.UT2);this.MD()}; +zr1=function(z){if(!z.api.W().Rs){var J=z.api.getVideoData(),m=new g.Qy("Subscribe",null,"Subscribed",null,!0,!1,J.Ab,J.subscribed,"channel_avatar",null,z.api,!0);z.api.createServerVe(m.element,z);var e;z.api.setTrackingParams(m.element,((e=J.subscribeButtonRenderer)==null?void 0:e.trackingParams)||null);z.L(m.element,"click",function(){z.api.logClick(m.element)}); +z.subscribeButton=m;g.u(z,z.subscribeButton);z.subscribeButton.S4(z.Y);z.subscribeButton.hide();var T=new Rwf(z.api);z.K=T;g.u(z,T);T.S4(z.Y);T.hide();z.L(z.api,"SUBSCRIBE",function(){J.b3&&(T.show(),z.api.logVisibility(T.element,!0))}); +z.L(z.api,"UNSUBSCRIBE",function(){J.b3&&(T.hide(),z.api.logVisibility(T.element,!1),kB1(T,!1))})}}; +v3u=function(z){var J=z.api.W();zr1(z);z.updateValue("flyoutUnfocusable","true");z.updateValue("channelTitleFocusable","-1");z.updateValue("shouldHideExpandedTitleForA11y","true");z.updateValue("shouldHideExpandedSubtitleForA11y","true");J.T||J.Lh||(z.L(z.channel,"mouseenter",z.y7),z.L(z.channel,"mouseleave",z.x9),z.L(z.channel,"focusin",z.y7),z.L(z.channel,"focusout",function(m){z.channel.contains(m.relatedTarget)||z.x9()})); +z.S=new g.vl(function(){z.isExpanded()&&(z.api.logVisibility(z.channelName,!1),z.subscribeButton&&(z.subscribeButton.hide(),z.api.logVisibility(z.subscribeButton.element,!1)),z.K&&(z.K.hide(),z.api.logVisibility(z.K.element,!1)),z.channel.classList.remove("ytp-title-expanded"),z.channel.classList.add("ytp-title-show-collapsed"))},500); +g.u(z,z.S);z.L(z.channel,Jnb,function(){ma4(z)}); +z.L(z.api,"onHideControls",z.eG);z.L(z.api,"appresize",z.eG);z.L(z.api,"fullscreentoggled",z.eG)}; +ma4=function(z){z.channel.classList.remove("ytp-title-show-collapsed");z.channel.classList.remove("ytp-title-show-expanded")}; +ers=function(z){var J=z.api.getPlayerSize();return g.fi(z.api.W())&&J.width>=524}; +shq=function(z){var J=z.api.W(),m=z.api.getVideoData(),e=g.Tx(J)+m.GS;g.TD(m)&&(e="https://music.youtube.com"+m.GS);if(!g.fi(J))return e;J={};g.wd(z.api,"addEmbedsConversionTrackingParams",[J]);return g.v1(e,J)}; +v_=function(z){var J=g.Le({"aria-haspopup":"true"});g.k2.call(this,J,z);this.listen("keydown",this.K)}; +sb=function(z,J){z.element.setAttribute("aria-haspopup",String(J))}; +T4u=function(z,J){g.U.call(this,{D:"div",J:"ytp-user-info-panel",j:{"aria-label":"User info"},N:z.W().Tf&&!z.C("embeds_web_always_enable_signed_out_state")?[{D:"div",J:"ytp-user-info-panel-icon",t6:"{{icon}}"},{D:"div",J:"ytp-user-info-panel-content",N:[{D:"div",J:"ytp-user-info-panel-info",j:{tabIndex:"{{userInfoFocusable}}",role:"text"},t6:"{{watchingAsUsername}}"},{D:"div",J:"ytp-user-info-panel-info",j:{tabIndex:"{{userInfoFocusable2}}",role:"text"},t6:"{{watchingAsEmail}}"}]}]:[{D:"div",J:"ytp-user-info-panel-icon", +t6:"{{icon}}"},{D:"div",J:"ytp-user-info-panel-content",N:[{D:"div",N:[{D:"text",j:{tabIndex:"{{userInfoFocusable}}"},t6:"Signed out"}]},{D:"div",J:"ytp-user-info-panel-login",N:[{D:"a",j:{tabIndex:"{{userInfoFocusable2}}",role:"button"},t6:z.W().Rs?"":"Sign in on YouTube"}]}]}]});this.Vx=z;this.K=J;z.W().Tf||z.W().Rs||this.L(this.P1("ytp-user-info-panel-login"),"click",this.DU);this.closeButton=new g.U({D:"button",Iy:["ytp-collapse","ytp-button"],j:{title:"Close"},N:[g.gF()]});this.closeButton.S4(this.element); +g.u(this,this.closeButton);this.L(window,"blur",this.hide);this.L(document,"click",this.Ug);this.MD()}; +ZRj=function(z,J,m){g.SG.call(this,z);this.Yu=J;this.zB=m;this.getVideoUrl=new v_(6);this.mW=new v_(5);this.Sc=new v_(4);this.kQ=new v_(3);this.yz=new g.k2(g.Le({href:"{{href}}",target:this.G.W().B},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.k2(g.Le(),1,"Stats for nerds");this.xD=new g.py({D:"div",Iy:["ytp-copytext","ytp-no-contextmenu"],j:{draggable:"false",tabindex:"1"},t6:"{{text}}"});this.BI=new Bk(this.G,this.xD);this.lj=this.XR=null;g.fi(this.G.W())&&(this.closeButton= +new g.U({D:"button",Iy:["ytp-collapse","ytp-button"],j:{title:"Close"},N:[g.gF()]}),g.u(this,this.closeButton),this.closeButton.S4(this.element),this.closeButton.listen("click",this.tG,this));g.fi(this.G.W())&&(this.M1=new g.k2(g.Le(),8,"Account"),g.u(this,this.M1),this.AX(this.M1,!0),this.M1.listen("click",this.iZi,this),z.createClientVe(this.M1.element,this.M1,137682));this.G.W().bG&&(this.IB=new Zy("Loop",7),g.u(this,this.IB),this.AX(this.IB,!0),this.IB.listen("click",this.Ori,this),z.createClientVe(this.IB.element, +this.IB,28661));g.u(this,this.getVideoUrl);this.AX(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.uqh,this);z.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.u(this,this.mW);this.AX(this.mW,!0);this.mW.listen("click",this.gQ2,this);z.createClientVe(this.mW.element,this.mW,28660);g.u(this,this.Sc);this.AX(this.Sc,!0);this.Sc.listen("click",this.nQ2,this);z.createClientVe(this.Sc.element,this.Sc,28658);g.u(this,this.kQ);this.AX(this.kQ,!0);this.kQ.listen("click",this.AXi, +this);g.u(this,this.yz);this.AX(this.yz,!0);this.yz.listen("click",this.li1,this);g.u(this,this.showVideoInfo);this.AX(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.hl6,this);g.u(this,this.xD);this.xD.listen("click",this.YD1,this);g.u(this,this.BI);J=document.queryCommandSupported&&document.queryCommandSupported("copy");Rbj("Chromium")>=43&&(J=!0);Rbj("Firefox")<=40&&(J=!1);J&&(this.XR=new g.U({D:"textarea",J:"ytp-html5-clipboard",j:{readonly:"",tabindex:"-1"}}),g.u(this,this.XR), +this.XR.S4(this.element));var e;(e=this.M1)==null||e.setIcon(C5u());var T;(T=this.IB)==null||T.setIcon({D:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{D:"path",j:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});this.kQ.setIcon({D:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},N:[{D:"path",j:{"clip-rule":"evenodd",d:"M20 10V8H17.19C16.74 7.22 16.12 6.54 15.37 6.04L17 4.41L15.59 3L13.42 5.17C13.39 5.16 13.37 5.16 13.34 5.16C13.18 5.12 13.02 5.1 12.85 5.07C12.79 5.06 12.74 5.05 12.68 5.04C12.46 5.02 12.23 5 12 5C11.51 5 11.03 5.07 10.58 5.18L10.6 5.17L8.41 3L7 4.41L8.62 6.04H8.63C7.88 6.54 7.26 7.22 6.81 8H4V10H6.09C6.03 10.33 6 10.66 6 11V12H4V14H6V15C6 15.34 6.04 15.67 6.09 16H4V18H6.81C7.85 19.79 9.78 21 12 21C14.22 21 16.15 19.79 17.19 18H20V16H17.91C17.96 15.67 18 15.34 18 15V14H20V12H18V11C18 10.66 17.96 10.33 17.91 10H20ZM16 15C16 17.21 14.21 19 12 19C9.79 19 8 17.21 8 15V11C8 8.79 9.79 7 12 7C14.21 7 16 8.79 16 11V15ZM10 14H14V16H10V14ZM10 10H14V12H10V10Z", +fill:"white","fill-rule":"evenodd"}}]});this.yz.setIcon(y8z());this.showVideoInfo.setIcon(NW1());this.L(z,"onLoopChange",this.onLoopChange);this.L(z,"videodatachange",this.onVideoDataChange);E01(this);this.n4(this.G.getVideoData())}; +rh=function(z,J){var m=!1;if(z.XR){var e=z.XR.element;e.value=J;e.select();try{m=document.execCommand("copy")}catch(T){}}m?z.Yu.JZ():(z.xD.ws(J,"text"),g.bJ(z.Yu,z.BI),l6(z.xD.element),z.XR&&(z.XR=null,E01(z)));return m}; +E01=function(z){var J=!!z.XR;g.Rp(z.kQ,J?"Copy debug info":"Get debug info");sb(z.kQ,!J);g.Rp(z.Sc,J?"Copy embed code":"Get embed code");sb(z.Sc,!J);g.Rp(z.getVideoUrl,J?"Copy video URL":"Get video URL");sb(z.getVideoUrl,!J);g.Rp(z.mW,J?"Copy video URL at current time":"Get video URL at current time");sb(z.mW,!J);z.Sc.setIcon(J?Ixu():null);z.getVideoUrl.setIcon(J?Ky():null);z.mW.setIcon(J?Ky():null)}; +Fab=function(z){return g.fi(z.G.W())?z.M1:z.IB}; +cnu=function(z,J){g.Db.call(this,z);this.zB=J;this.U=new g.jl(this);this.Ry=new g.vl(this.gPi,1E3,this);this.fh=this.S=null;g.u(this,this.U);g.u(this,this.Ry);J=this.G.W();z.createClientVe(this.element,this,28656);g.FE(this.element,"ytp-contextmenu");this.G.W().experiments.j4("delhi_modern_web_player")&&g.vZ(J)&&g.FE(this.element,"ytp-delhi-modern-contextmenu");iRq(this);this.hide()}; +iRq=function(z){g.gs(z.U);var J=z.G.W();J.playerStyle==="gvn"||J.T||J.Lh||(J=z.G.zf(),z.U.L(J,"contextmenu",z.G4F),z.U.L(J,"touchstart",z.onTouchStart,null,!0),z.U.L(J,"touchmove",z.RY,null,!0),z.U.L(J,"touchend",z.RY,null,!0))}; +Waz=function(z){z.G.isFullscreen()?g.M0(z.G,z.element,10):z.S4(t3(z).body)}; +zN=function(z,J,m){m=m===void 0?240:m;g.U.call(this,{D:"button",Iy:["ytp-button","ytp-copylink-button"],j:{title:"{{title-attr}}","data-tooltip-opaque":String(g.fi(z.W()))},N:[{D:"div",J:"ytp-copylink-icon",t6:"{{icon}}"},{D:"div",J:"ytp-copylink-title",t6:"Copy link",j:{"aria-hidden":"true"}}]});this.api=z;this.K=J;this.T=m;this.visible=!1;this.tooltip=this.K.iF();J=z.W();this.tooltip.element.setAttribute("aria-live","polite");g.qt(this.element,"ytp-show-copylink-title",g.fi(J));z.createClientVe(this.element, +this,86570);this.listen("click",this.onClick);this.L(z,"videodatachange",this.MD);this.L(z,"videoplayerreset",this.MD);this.L(z,"appresize",this.MD);this.MD();this.addOnDisposeCallback(g.Ce(this.tooltip,this.element))}; +lqq=function(z){var J=z.api.W(),m=z.api.getVideoData(),e=z.api.zf().getPlayerSize().width;J=J.S;return!!m.videoId&&e>=z.T&&m.jB&&!g.J3(m)&&!z.api.isEmbedsShortsMode()&&!J}; +wS4=function(z){z.updateValue("icon",ny());if(z.api.W().T)z.tooltip.Ce(z.element,"Link copied to clipboard");else{z.updateValue("title-attr","Link copied to clipboard");z.tooltip.CF();z.tooltip.Ce(z.element);var J=z.listen("mouseleave",function(){z.hX(J);z.MD();z.tooltip.dl()})}}; +q_u=function(z,J){return g.D(function(m){if(m.K==1)return g.Yu(m,2),g.S(m,navigator.clipboard.writeText(J),4);if(m.K!=2)return m.return(!0);g.Kq(m);var e=m.return,T=!1,E=g.EX("TEXTAREA");E.value=J;E.setAttribute("readonly","");var Z=z.api.getRootNode();Z.appendChild(E);if(vj){var c=window.getSelection();c.removeAllRanges();var W=document.createRange();W.selectNodeContents(E);c.addRange(W);E.setSelectionRange(0,J.length)}else E.select();try{T=document.execCommand("copy")}catch(l){}Z.removeChild(E); +return e.call(m,T)})}; +JO=function(z){g.U.call(this,{D:"div",J:"ytp-doubletap-ui-legacy",N:[{D:"div",J:"ytp-doubletap-fast-forward-ve"},{D:"div",J:"ytp-doubletap-rewind-ve"},{D:"div",J:"ytp-doubletap-static-circle",N:[{D:"div",J:"ytp-doubletap-ripple"}]},{D:"div",J:"ytp-doubletap-overlay-a11y"},{D:"div",J:"ytp-doubletap-seek-info-container",N:[{D:"div",J:"ytp-doubletap-arrows-container",N:[{D:"span",J:"ytp-doubletap-base-arrow"},{D:"span",J:"ytp-doubletap-base-arrow"},{D:"span",J:"ytp-doubletap-base-arrow"}]},{D:"div", +J:"ytp-doubletap-tooltip",N:[{D:"div",J:"ytp-seek-icon-text-container",N:[{D:"div",J:"ytp-seek-icon",t6:"{{seekIcon}}"},{D:"div",J:"ytp-chapter-seek-text-legacy",t6:"{{seekText}}"}]},{D:"div",J:"ytp-doubletap-tooltip-label",t6:"{{seekTime}}"}]}]}]});this.G=z;this.U=new g.vl(this.show,10,this);this.T=new g.vl(this.hide,700,this);this.V=this.S=0;this.Ry=this.Y=!1;this.K=this.P1("ytp-doubletap-static-circle");g.u(this,this.U);g.u(this,this.T);this.hide();this.X=this.P1("ytp-doubletap-fast-forward-ve"); +this.B=this.P1("ytp-doubletap-rewind-ve");this.G.createClientVe(this.X,this,28240);this.G.createClientVe(this.B,this,28239);this.G.logVisibility(this.X,!0);this.G.logVisibility(this.B,!0);this.Y=z.C("web_show_cumulative_seek_time");this.Ry=z.C("web_center_static_circles")}; +mx=function(z,J,m,e){if(e=e===void 0?null:e){var T=J===-1?z.B.visualElement:z.X.visualElement;e={seekData:e};var E=g.Dc();E&&g.zo(eb)(void 0,E,T,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",e,void 0)}z.S=J===z.V?z.S+m:m;z.V=J;T=z.G.zf().getPlayerSize();z.Y?z.T.stop():g.z5(z.T);z.U.start();z.element.setAttribute("data-side",J===-1?"back":"forward");g.FE(z.element,"ytp-time-seeking");z.K.style.width="110px";z.K.style.height="110px";e=T.width*.1-15;J===1?z.Ry?(z.K.style.right=e+"px",z.K.style.left=""): +(z.K.style.right="",z.K.style.left=T.width*.8-30+"px"):J===-1&&(z.Ry?(z.K.style.right="",z.K.style.left=e+"px"):(z.K.style.right="",z.K.style.left=T.width*.1-15+"px"));z.K.style.top=T.height*.5+15+"px";daq(z,z.Y?z.S:m)}; +ed=function(z,J,m,e){e=e===void 0?null:e;g.z5(z.T);z.U.start();switch(J){case -1:J="back";break;case 1:J="forward";break;default:J=""}z.element.setAttribute("data-side",J);z.K.style.width="0";z.K.style.height="0";g.FE(z.element,"ytp-chapter-seek");z.updateValue("seekText",m);z.updateValue("seekTime","");m=z.P1("ytp-seek-icon");if(e){a:if(e){switch(e){case "PREMIUM_STANDALONE":e={D:"svg",j:{height:"24px",version:"1.1",viewBox:"-2 -2 24 24",width:"24px"},N:[{D:"path",j:{d:"M 0 1.43 C 0 .64 .64 0 1.43 0 L 18.56 0 C 19.35 0 20 .64 20 1.43 L 20 18.56 C 20 19.35 19.35 20 18.56 20 L 1.43 20 C .64 20 0 19.35 0 18.56 Z M 0 1.43 ", +fill:"#c00"}},{D:"path",j:{d:"M 7.88 11.42 L 7.88 15.71 L 5.37 15.71 L 5.37 3.52 L 10.12 3.52 C 11.04 3.52 11.84 3.69 12.54 4.02 C 13.23 4.36 13.76 4.83 14.14 5.45 C 14.51 6.07 14.70 6.77 14.70 7.56 C 14.70 8.75 14.29 9.69 13.48 10.38 C 12.66 11.07 11.53 11.42 10.08 11.42 Z M 7.88 9.38 L 10.12 9.38 C 10.79 9.38 11.30 9.23 11.64 8.91 C 11.99 8.60 12.17 8.16 12.17 7.57 C 12.17 6.98 11.99 6.5 11.64 6.12 C 11.29 5.76 10.80 5.57 10.18 5.56 L 7.88 5.56 Z M 7.88 9.38 ",fill:"#fff","fill-rule":"nonzero"}}]}; +break a;case "PREMIUM_STANDALONE_CAIRO":e={D:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},N:[{D:"rect",j:{fill:"white",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{D:"rect",j:{fill:"url(#ytp-premium-standalone-gradient)",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{D:"path",j:{d:"M12.75 13.02H9.98V11.56H12.75C13.24 11.56 13.63 11.48 13.93 11.33C14.22 11.17 14.44 10.96 14.58 10.68C14.72 10.40 14.79 10.09 14.79 9.73C14.79 9.39 14.72 9.08 14.58 8.78C14.44 8.49 14.22 8.25 13.93 8.07C13.63 7.89 13.24 7.80 12.75 7.80H10.54V17H8.70V6.33H12.75C13.58 6.33 14.28 6.48 14.86 6.77C15.44 7.06 15.88 7.46 16.18 7.97C16.48 8.48 16.64 9.06 16.64 9.71C16.64 10.40 16.48 10.99 16.18 11.49C15.88 11.98 15.44 12.36 14.86 12.62C14.28 12.89 13.58 13.02 12.75 13.02Z", +fill:"white"}},{D:"defs",N:[{D:"linearGradient",j:{gradientUnits:"userSpaceOnUse",id:"ytp-premium-standalone-gradient",x1:"2",x2:"22",y1:"22",y2:"2"},N:[{D:"stop",j:{offset:"0.3","stop-color":"#E1002D"}},{D:"stop",j:{offset:"0.9","stop-color":"#E01378"}}]}]}]};break a}e=void 0}else e=null;z.updateValue("seekIcon",e);m.style.display="inline-block"}else m.style.display="none"}; +daq=function(z,J){J=g.NQ("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:J.toString()});z.updateValue("seekTime",J)}; +IqR=function(z){Kb.call(this,z,!1,!0);this.wb=[];this.ub=[];this.X=!0;this.badge.element.classList.add("ytp-featured-product");this.x3=new g.U({D:"div",J:"ytp-featured-product-open-in-new"});g.u(this,this.x3);this.countdownTimer=new g.U({D:"text",J:"ytp-featured-product-countdown",t6:"{{content}}"});this.countdownTimer.hide();g.u(this,this.countdownTimer);this.T=new g.U({D:"div",J:"ytp-featured-product-trending",N:[{D:"div",J:"ytp-featured-product-trending-icon"},{D:"text",J:"ytp-featured-product-trending-text", +t6:"{{trendingOffer}}"}]});this.T.hide();g.u(this,this.T);this.overflowButton=new g.U({D:"button",Iy:["ytp-featured-product-overflow-icon","ytp-button"],j:{"aria-haspopup":"true"}});this.overflowButton.hide();g.u(this,this.overflowButton);this.V=new g.U({D:"text",J:"ytp-featured-product-exclusive-countdown",t6:"{{content}}",j:{id:"exclusiveCountdown","aria-hidden":"true"}});this.V.hide();g.u(this,this.V);this.Y=new g.U({D:"div",J:"ytp-featured-product-exclusive-container",j:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"}, +N:[{D:"div",J:"ytp-featured-product-exclusive-badge-container",N:[{D:"div",J:"ytp-featured-product-exclusive-badge",N:[{D:"text",J:"ytp-featured-product-exclusive-badge-text",t6:"{{exclusive}}",j:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.V]});this.Y.hide();g.u(this,this.Y);this.banner=new g.U({D:"a",J:"ytp-featured-product-container",N:[{D:"div",J:"ytp-featured-product-thumbnail",N:[{D:"img",j:{src:"{{thumbnail}}"}},this.x3]},{D:"div",J:"ytp-featured-product-details",N:[{D:"text",J:"ytp-featured-product-title", +t6:"{{title}}"},this.G.C("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{D:"div",J:"ytp-featured-product-price-container",j:{"aria-label":"{{priceA11yText}}"},N:[{D:"text",J:"ytp-featured-product-price-when-promotion-text-enabled",t6:"{{price}}",j:{"aria-hidden":"true"}},{D:"text",J:"ytp-featured-product-promotion-text",t6:"{{promotionText}}",j:{"aria-hidden":"true"}}]}:{D:"div",j:{"aria-label":"{{priceA11yText}}"},N:[{D:"text",J:"ytp-featured-product-price",t6:"{{price}}", +j:{"aria-hidden":"true"}},{D:"text",J:"ytp-featured-product-sales-original-price",t6:"{{salesOriginalPrice}}",j:{"aria-hidden":"true"}},{D:"text",J:"ytp-featured-product-price-drop-reference-price",t6:"{{priceDropReferencePrice}}",j:{"aria-hidden":"true"}}]},this.G.C("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{D:"div",J:"ytp-featured-product-when-promotion-text-enabled",N:[{D:"text",J:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",t6:"{{affiliateDisclaimer}}"}, +this.T,{D:"text",J:"ytp-featured-product-vendor-when-promotion-text-enabled",t6:"{{vendor}}"}]}:{D:"div",N:[{D:"text",J:"ytp-featured-product-affiliate-disclaimer",t6:"{{affiliateDisclaimer}}"},this.G.C("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.Y:null,this.T,{D:"text",J:"ytp-featured-product-vendor",t6:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.u(this,this.banner);this.banner.S4(this.S.element);this.L(this.G,g.F8("featured_product"),this.S9f);this.L(this.G, +g.iw("featured_product"),this.cL);this.L(this.G,"videodatachange",this.onVideoDataChange);this.L(this.overflowButton.element,"click",this.GK);this.L(z,"featuredproductdismissed",this.tF)}; +OR4=function(z){var J,m;z=(J=z.K)==null?void 0:(m=J.bannerData)==null?void 0:m.itemData;var e,T,E;return(z==null||!z.affiliateDisclaimer)&&(z==null?0:(e=z.exclusivesData)==null?0:e.exclusiveOfferLabelText)&&(z==null?0:(T=z.exclusivesData)==null?0:T.expirationTimestampMs)&&(z==null?0:(E=z.exclusivesData)==null?0:E.exclusiveOfferCountdownText)?!0:!1}; +ynu=function(z){var J,m,e,T,E=(J=z.K)==null?void 0:(m=J.bannerData)==null?void 0:(e=m.itemData)==null?void 0:(T=e.exclusivesData)==null?void 0:T.expirationTimestampMs;J=(Number(E)-Date.now())/1E3;if(J>0){if(J<604800){var Z,c,W,l;m=(Z=z.K)==null?void 0:(c=Z.bannerData)==null?void 0:(W=c.itemData)==null?void 0:(l=W.exclusivesData)==null?void 0:l.exclusiveOfferCountdownText;if(m!==void 0)for(Z=Date.now(),c=g.y(m),W=c.next();!W.done;W=c.next())if(W=W.value,W!==void 0&&W.text!==void 0&&(l=Number(W.textDisplayStartTimestampMs), +!isNaN(l)&&Z>=l)){W.insertCountdown?(J=W.text.replace(/\$0/,String(Xu({seconds:J}))),z.V.ws(J)):z.V.ws(W.text);z.V.show();break}}var w,q,d,I;z.Y.update({exclusive:(w=z.K)==null?void 0:(q=w.bannerData)==null?void 0:(d=q.itemData)==null?void 0:(I=d.exclusivesData)==null?void 0:I.exclusiveOfferLabelText});z.Y.show();TN(z);var O;(O=z.OC)==null||O.start()}else pSb(z)}; +pSb=function(z){var J;(J=z.OC)==null||J.stop();z.V.hide();z.Y.hide();Ea(z)}; +N41=function(z){var J,m,e=(J=z.K)==null?void 0:(m=J.bannerData)==null?void 0:m.itemData;return z.G.C("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(e==null||!e.priceReplacementText)&&(e==null?0:e.promotionText)?e==null?void 0:e.promotionText.content:null}; +GWE=function(z){var J,m,e=(J=z.K)==null?void 0:(m=J.bannerData)==null?void 0:m.itemData,T,E;if(!(e!=null&&e.priceReplacementText||z.G.C("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(e==null?0:(T=e.dealsData)==null?0:(E=T.sales)==null?0:E.originalPrice)){var Z,c;return e==null?void 0:(Z=e.dealsData)==null?void 0:(c=Z.sales)==null?void 0:c.originalPrice}return null}; +XS1=function(z){var J,m,e=(J=z.K)==null?void 0:(m=J.bannerData)==null?void 0:m.itemData,T,E,Z,c;if(!((e==null?0:e.priceReplacementText)||z.G.C("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(e==null?0:(T=e.dealsData)==null?0:(E=T.sales)==null?0:E.originalPrice))&&(e==null?0:(Z=e.dealsData)==null?0:(c=Z.priceDrop)==null?0:c.referencePrice)){var W,l;return e==null?void 0:(W=e.dealsData)==null?void 0:(l=W.priceDrop)==null?void 0:l.referencePrice}return null}; +n0j=function(z){var J,m,e=(J=z.K)==null?void 0:(m=J.bannerData)==null?void 0:m.itemData;if(e==null?0:e.priceReplacementText)return e==null?void 0:e.priceReplacementText;if((e==null?0:e.promotionText)&&z.G.C("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var T;return(e==null?void 0:e.price)+" "+(e==null?void 0:(T=e.promotionText)==null?void 0:T.content)}var E,Z;if(e==null?0:(E=e.dealsData)==null?0:(Z=E.sales)==null?0:Z.originalPrice){var c,W;return e==null?void 0:(c=e.dealsData)== +null?void 0:(W=c.sales)==null?void 0:W.salesPriceAccessibilityLabel}var l,w;if(e==null?0:(l=e.dealsData)==null?0:(w=l.priceDrop)==null?0:w.referencePrice){var q,d;return(e==null?void 0:e.price)+" "+(e==null?void 0:(q=e.dealsData)==null?void 0:(d=q.priceDrop)==null?void 0:d.referencePrice)}return e==null?void 0:e.price}; +Y_u=function(z){if(z.G.C("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var J,m,e;return z.T.oT?null:(J=z.K)==null?void 0:(m=J.bannerData)==null?void 0:(e=m.itemData)==null?void 0:e.vendorName}var T,E,Z,c,W,l;return z.T.oT||z.Y.oT||((T=z.K)==null?0:(E=T.bannerData)==null?0:(Z=E.itemData)==null?0:Z.affiliateDisclaimer)?null:(c=z.K)==null?void 0:(W=c.bannerData)==null?void 0:(l=W.itemData)==null?void 0:l.vendorName}; +aqu=function(z,J){ZW(z);if(J){var m=g.mB.getState().entities;m=mT(m,"featuredProductsEntity",J);if(m!=null&&m.productsData){J=[];m=g.y(m.productsData);for(var e=m.next();!e.done;e=m.next()){e=e.value;var T=void 0;if((T=e)!=null&&T.identifier&&e.featuredSegments){z.wb.push(e);var E=void 0;T=g.y((E=e)==null?void 0:E.featuredSegments);for(E=T.next();!E.done;E=T.next()){var Z=E.value;E=CTz(Z.startTimeSec);E!==void 0&&(Z=CTz(Z.endTimeSec),J.push(new g.Ec(E*1E3,Z===void 0?0x7ffffffffffff:Z*1E3,{id:e.identifier, +namespace:"featured_product"})))}}}z.G.U4(J)}}}; +Ea=function(z){if(z.trendingOfferEntityKey){var J=g.mB.getState().entities;if(J=mT(J,"trendingOfferEntity",z.trendingOfferEntityKey)){var m,e,T;J.encodedSkuId!==((m=z.K)==null?void 0:(e=m.bannerData)==null?void 0:(T=e.itemData)==null?void 0:T.encodedOfferSkuId)?TN(z):(z.T.update({trendingOffer:J.shortLabel+" \u2022 "+J.countLabel}),z.T.show(),z.banner.update({vendor:Y_u(z)}))}else TN(z)}else TN(z)}; +TN=function(z){z.T.hide();z.banner.update({vendor:Y_u(z)})}; +ZW=function(z){z.wb=[];z.cL();z.G.c7("featured_product")}; +Kau=function(z){var J,m,e,T,E=(J=z.K)==null?void 0:(m=J.bannerData)==null?void 0:(e=m.itemData)==null?void 0:(T=e.hiddenProductOptions)==null?void 0:T.dropTimestampMs;J=(Number(E)-Date.now())/1E3;z.countdownTimer.ws(Xu({seconds:J}));if(J>0){var Z;(Z=z.gE)==null||Z.start()}}; +B44=function(z){var J;(J=z.gE)==null||J.stop();z.countdownTimer.hide()}; +CTz=function(z){if(z!==void 0&&z.trim()!==""&&(z=Math.trunc(Number(z.trim())),!(isNaN(z)||z<0)))return z}; +$au=function(z,J,m){g.U.call(this,{D:"div",Iy:["ytp-info-panel-action-item"],N:[{D:"div",J:"ytp-info-panel-action-item-disclaimer",t6:"{{disclaimer}}"},{D:"a",Iy:["ytp-info-panel-action-item-button","ytp-button"],j:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},N:[{D:"div",J:"ytp-info-panel-action-item-icon",t6:"{{icon}}"},{D:"div",J:"ytp-info-panel-action-item-label",t6:"{{label}}"}]}]});this.G=z;this.K=m;this.disclaimer=this.P1("ytp-info-panel-action-item-disclaimer");this.button= +this.P1("ytp-info-panel-action-item-button");this.pZ=!1;this.G.createServerVe(this.element,this,!0);this.listen("click",this.onClick);z="";m=g.P(J==null?void 0:J.onTap,Vg);var e=g.P(m,g.uY);this.pZ=!1;e?(z=e.url||"",z.startsWith("//")&&(z="https:"+z),this.pZ=!0,g.hB(this.button,g.or(z))):(e=g.P(m,S_q))&&!this.K?((z=e.phoneNumbers)&&z.length>0?(z="sms:"+z[0],e.messageText&&(z+="?&body="+encodeURI(e.messageText))):z="",this.pZ=!0,g.hB(this.button,g.or(z,[fqz]))):(m=g.P(m,Dau))&&!this.K&&(z=m.phoneNumber? +"tel:"+m.phoneNumber:"",this.pZ=!0,g.hB(this.button,g.or(z,[bRz])));var T;if(m=(T=J.disclaimerText)==null?void 0:T.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var E;this.update({label:(E=J.bodyText)==null?void 0:E.content,icon:fy(),disclaimer:m})}else{this.disclaimer.style.display="none";var Z;this.update({label:(Z=J.bodyText)==null?void 0:Z.content,icon:fy()})}this.G.setTrackingParams(this.element,J.trackingParams||null);this.pZ&&(this.T={externalLinkData:{url:z}})}; +g01=function(z,J){var m=q3();g.PL.call(this,z,{D:"div",J:"ytp-info-panel-detail-skrim",N:[{D:"div",J:"ytp-info-panel-detail",j:{role:"dialog",id:m},N:[{D:"div",J:"ytp-info-panel-detail-header",N:[{D:"div",J:"ytp-info-panel-detail-title",t6:"{{title}}"},{D:"button",Iy:["ytp-info-panel-detail-close","ytp-button"],j:{"aria-label":"Close"},N:[g.a0()]}]},{D:"div",J:"ytp-info-panel-detail-body",t6:"{{body}}"},{D:"div",J:"ytp-info-panel-detail-items"}]}]},250);this.K=J;this.items=this.P1("ytp-info-panel-detail-items"); +this.S=new g.jl(this);this.itemData=[];this.U=m;this.L(this.P1("ytp-info-panel-detail-close"),"click",this.JZ);this.L(this.P1("ytp-info-panel-detail-skrim"),"click",this.JZ);this.L(this.P1("ytp-info-panel-detail"),"click",function(e){e.stopPropagation()}); +g.u(this,this.S);this.G.createServerVe(this.element,this,!0);this.L(z,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",z.getVideoData());this.hide()}; +xau=function(z,J){z=g.y(z.itemData);for(var m=z.next();!m.done;m=z.next())m=m.value,m.G.logVisibility(m.element,J)}; +o0u=function(z,J){g.U.call(this,{D:"div",J:"ytp-info-panel-preview",j:{"aria-live":"assertive","aria-atomic":"true","aria-owns":J.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.fi(z.W()))},N:[{D:"div",J:"ytp-info-panel-preview-text",t6:"{{text}}"},{D:"div",J:"ytp-info-panel-preview-chevron",t6:"{{chevron}}"}]});var m=this;this.G=z;this.B7=this.K=this.videoId=null;this.S=this.showControls=this.T=!1;this.L(this.element,"click",function(){z.logClick(m.element);z.GR();HL(J)}); +this.fade=new g.Ex(this,250,!1,100);g.u(this,this.fade);this.G.createServerVe(this.element,this,!0);this.L(z,"videodatachange",this.onVideoDataChange);this.L(z,"presentingplayerstatechange",this.QK);this.L(this.G,"paidcontentoverlayvisibilitychange",this.mO);this.L(this.G,"infopaneldetailvisibilitychange",this.mO);var e=z.getVideoData()||{};Muq(e)&&AnR(this,e);this.L(z,"onShowControls",this.YU);this.L(z,"onHideControls",this.aS)}; +AnR=function(z,J){if(!J.Pm||!z.G.du()){var m=J.AK||1E4,e=Muq(J);z.K?J.videoId&&J.videoId!==z.videoId&&(g.z5(z.K),z.videoId=J.videoId,e?(jIR(z,m,J),z.sD()):(z.JZ(),z.K.dispose(),z.K=null)):e&&(J.videoId&&(z.videoId=J.videoId),jIR(z,m,J),z.sD())}}; +Muq=function(z){var J,m,e,T;return!!((J=z.vA)==null?0:(m=J.title)==null?0:m.content)||!!((e=z.vA)==null?0:(T=e.bodyText)==null?0:T.content)}; +jIR=function(z,J,m){z.K&&z.K.dispose();z.K=new g.vl(z.Y9F,J,z);g.u(z,z.K);var e;J=((e=m.vA)==null?void 0:e.trackingParams)||null;z.G.setTrackingParams(z.element,J);var T;var E,Z;if(m==null?0:(E=m.vA)==null?0:(Z=E.title)==null?0:Z.content){var c;e=(T=m.vA)==null?void 0:(c=T.title)==null?void 0:c.content;var W,l;if((W=m.vA)==null?0:(l=W.bodyText)==null?0:l.content)e+=" \u2022 ";T=e}else T="";var w,q;m=((w=m.vA)==null?void 0:(q=w.bodyText)==null?void 0:q.content)||"";z.update({text:T+m,chevron:g.Cy()})}; +hru=function(z,J){z.K&&(g.R(J,8)?(z.T=!0,z.sD(),z.K.start()):(g.R(J,2)||g.R(J,64))&&z.videoId&&(z.videoId=null))}; +Fy=function(z){var J=null;try{J=z.toLocaleString("en",{style:"percent"})}catch(m){J=z.toLocaleString(void 0,{style:"percent"})}return J}; +it=function(z,J){var m=0;z=g.y(z);for(var e=z.next();!(e.done||e.value.startTime>J);e=z.next())m++;return m===0?m:m-1}; +uiR=function(z,J){for(var m=0,e=g.y(z),T=e.next();!T.done;T=e.next()){T=T.value;if(J=T.timeRangeStartMillis&&J0?J[0]:null;var m=g.rC("ytp-chrome-bottom"),e=g.rC("ytp-ad-module");z.U=!(m==null||!m.contains(J));z.X=!(e==null||!e.contains(J));z.B=!(J==null||!J.hasAttribute("data-tooltip-target-fixed"));return J}; +TpE=function(z,J,m){if(!z.Y){if(J){z.tooltipRenderer=J;J=z.tooltipRenderer.text;var e=!1,T;(J==null?0:(T=J.runs)==null?0:T.length)&&J.runs[0].text&&(z.update({title:J.runs[0].text.toString()}),e=!0);g.nU(z.title,e);J=z.tooltipRenderer.detailsText;T=!1;var E;if((J==null?0:(E=J.runs)==null?0:E.length)&&J.runs[0].text){e=J.runs[0].text.toString();E=e.indexOf("$TARGET_ICON");if(E>-1)if(z.tooltipRenderer.targetId){J=[];e=e.split("$TARGET_ICON");var Z=new g.dF({D:"span",J:"ytp-promotooltip-details-icon", +N:[mBE[z.tooltipRenderer.targetId]]});g.u(z,Z);for(var c=[],W=g.y(e),l=W.next();!l.done;l=W.next())l=new g.dF({D:"span",J:"ytp-promotooltip-details-component",t6:l.value}),g.u(z,l),c.push(l);e.length===2?(J.push(c[0].element),J.push(Z.element),J.push(c[1].element)):e.length===1&&(E===0?(J.push(Z.element),J.push(c[0].element)):(J.push(c[0].element),J.push(Z.element)));E=J.length?J:null}else E=null;else E=e;if(E){if(typeof E!=="string")for(g.iV(z.details),T=g.y(E),E=T.next();!E.done;E=T.next())z.details.appendChild(E.value); +else z.update({details:E});T=!0}}g.nU(z.details,T);T=z.tooltipRenderer.acceptButton;E=!1;var w,q,d;((w=g.P(T,g.oR))==null?0:(q=w.text)==null?0:(d=q.runs)==null?0:d.length)&&g.P(T,g.oR).text.runs[0].text&&(z.update({acceptButtonText:g.P(T,g.oR).text.runs[0].text.toString()}),E=!0);g.nU(z.acceptButton,E);w=z.tooltipRenderer.dismissButton;q=!1;var I,O,G;((I=g.P(w,g.oR))==null?0:(O=I.text)==null?0:(G=O.runs)==null?0:G.length)&&g.P(w,g.oR).text.runs[0].text&&(z.update({dismissButtonText:g.P(w,g.oR).text.runs[0].text.toString()}), +q=!0);g.nU(z.dismissButton,q)}m&&(z.S=m);z.K=Jiq(z);z.V=!1;z.G.W().C("web_player_hide_nitrate_promo_tooltip")||z.T4(!0);euu(z);z.oT&&!z.Ry&&(z.Ry=!0,z.So.D$(0));z.T&&z.G.logVisibility(z.element,z.oT)}}; +I_=function(z){z.T4(!1);z.T&&z.G.logVisibility(z.element,z.oT)}; +E8E=function(z){var J,m,e,T=((J=g.P(z.acceptButton,g.oR))==null?void 0:(m=J.text)==null?void 0:(e=m.runs)==null?void 0:e.length)&&!!g.P(z.acceptButton,g.oR).text.runs[0].text,E,Z,c;J=((E=g.P(z.dismissButton,g.oR))==null?void 0:(Z=E.text)==null?void 0:(c=Z.runs)==null?void 0:c.length)&&!!g.P(z.dismissButton,g.oR).text.runs[0].text;return T||J}; +euu=function(z){var J;if(!(J=!z.K)){J=z.K;var m=window.getComputedStyle(J);J=m.display==="none"||m.visibility==="hidden"||J.getAttribute("aria-hidden")==="true"}if(J||z.G.isMinimized())z.T4(!1);else if(J=g.G6(z.K),J.width&&J.height){z.G.nL(z.element,z.K);var e=z.G.zf().getPlayerSize().height;m=g.G6(z.P1("ytp-promotooltip-container")).height;z.U?z.element.style.top=e-m-J.height-12+"px":z.B||(e=z.G.eY().height-m-J.height-12,z.element.style.top=e+"px");e=z.P1("ytp-promotooltip-pointer");var T=g.y5(z.K, +z.G.getRootNode()),E=Number(z.element.style.left.replace(/[^\d\.]/g,""));z=z.G.isFullscreen()?18:12;e.style.left=T.x-E+J.width/2-z+"px";e.style.top=m+"px"}else z.T4(!1)}; +Oa=function(z){g.U.call(this,{D:"button",Iy:["ytp-replay-button","ytp-button"],j:{title:"Replay"},N:[g.bY()]});this.G=z;this.L(z,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.f1(z.getPlayerStateObject());ap(this.G,this.element,this)}; +p_=function(z,J){J=J===void 0?240:J;g.U.call(this,{D:"button",Iy:["ytp-button","ytp-search-button"],j:{title:"Search","data-tooltip-opaque":String(g.fi(z.W()))},N:[{D:"div",J:"ytp-search-icon",t6:"{{icon}}"},{D:"div",J:"ytp-search-title",t6:"Search"}]});this.api=z;this.T=J;this.visible=!1;this.updateValue("icon",{D:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},N:[{D:"path",J:"ytp-svg-fill",j:{d:"M21.24,19.83l-5.64-5.64C16.48,13.02,17,11.57,17,10c0-3.87-3.13-7-7-7s-7,3.13-7,7c0,3.87,3.13,7,7,7 c1.57,0,3.02-0.52,4.19-1.4l5.64,5.64L21.24,19.83z M5,10c0-2.76,2.24-5,5-5s5,2.24,5,5c0,2.76-2.24,5-5,5S5,12.76,5,10z"}}]}); +z.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.K();this.L(z,"appresize",this.K);this.L(z,"videodatachange",this.K);ap(z,this.element,this)}; +g.ya=function(z,J,m,e){e=e===void 0?240:e;g.U.call(this,{D:"button",Iy:["ytp-button","ytp-share-button"],j:{title:"Share","aria-haspopup":"true","aria-owns":m.element.id,"data-tooltip-opaque":String(g.fi(z.W()))},N:[{D:"div",J:"ytp-share-icon",t6:"{{icon}}"},{D:"div",J:"ytp-share-title",t6:"Share"}]});this.api=z;this.K=J;this.S=m;this.U=e;this.T=this.visible=!1;this.tooltip=this.K.iF();z.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.L(z,"videodatachange",this.MD); +this.L(z,"videoplayerreset",this.MD);this.L(z,"appresize",this.MD);this.L(z,"presentingplayerstatechange",this.MD);this.MD();this.addOnDisposeCallback(g.Ce(this.tooltip,this.element))}; +ZxR=function(z){var J=z.api.W(),m=z.api.getVideoData(),e=g.fi(J)&&g.b8(z.api)&&g.R(z.api.getPlayerStateObject(),128);J=J.S||J.disableSharing&&z.api.getPresentingPlayerType()!==2||!m.showShareButton||m.jB||e||g.J3(m)||z.T;e=z.api.zf().getPlayerSize().width;return!!m.videoId&&e>=z.U&&!J}; +FCf=function(z,J){J.name!=="InvalidStateError"&&J.name!=="AbortError"&&(J.name==="NotAllowedError"?(z.K.GR(),HL(z.S,z.element,!1)):g.jk(J))}; +ci4=function(z,J){var m=q3(),e=z.W();m={D:"div",J:"ytp-share-panel",j:{id:q3(),role:"dialog","aria-labelledby":m},N:[{D:"div",J:"ytp-share-panel-inner-content",N:[{D:"div",J:"ytp-share-panel-title",j:{id:m},t6:"Share"},{D:"a",Iy:["ytp-share-panel-link","ytp-no-contextmenu"],j:{href:"{{link}}",target:e.B,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},t6:"{{linkText}}"},{D:"label",J:"ytp-share-panel-include-playlist",N:[{D:"input",J:"ytp-share-panel-include-playlist-checkbox",j:{type:"checkbox", +checked:"true"}},"Include playlist"]},{D:"div",J:"ytp-share-panel-loading-spinner",N:[WO()]},{D:"div",J:"ytp-share-panel-service-buttons",t6:"{{buttons}}"},{D:"div",J:"ytp-share-panel-error",t6:"An error occurred while retrieving sharing information. Please try again later."}]},{D:"button",Iy:["ytp-share-panel-close","ytp-button"],j:{title:"Close"},N:[g.a0()]}]};g.PL.call(this,z,m,250);var T=this;this.moreButton=null;this.api=z;this.tooltip=J.iF();this.S=[];this.Y=this.P1("ytp-share-panel-inner-content"); +this.closeButton=this.P1("ytp-share-panel-close");this.L(this.closeButton,"click",this.JZ);this.addOnDisposeCallback(g.Ce(this.tooltip,this.closeButton));this.U=this.P1("ytp-share-panel-include-playlist-checkbox");this.L(this.U,"click",this.MD);this.K=this.P1("ytp-share-panel-link");this.addOnDisposeCallback(g.Ce(this.tooltip,this.K));this.api.createClientVe(this.K,this,164503);this.L(this.K,"click",function(E){E.preventDefault();T.api.logClick(T.K);var Z=T.api.getVideoUrl(!0,!0,!1,!1);Z=ixu(T,Z); +g.cO(Z,T.api,E)&&T.api.B1("SHARE_CLICKED")}); +this.listen("click",this.VK);this.L(z,"videoplayerreset",this.hide);this.L(z,"fullscreentoggled",this.onFullscreenToggled);this.L(z,"onLoopRangeChange",this.QTW);this.hide()}; +ltE=function(z,J){WCs(z);for(var m=J.links||J.shareTargets,e=0,T={},E=0;E'),(G=I.document)&&G.write&&(G.write(P5(O)),G.close()))):((I=g.tB(I,G,d,f))&&O.noopener&&(I.opener=null),I&&O.noreferrer&&(I.opener=null));I&&(I.opener||(I.opener=window),I.focus());q.preventDefault()}}}(T)); +T.CJ.addOnDisposeCallback(g.Ce(z.tooltip,T.CJ.element));c==="Facebook"?z.api.createClientVe(T.CJ.element,T.CJ,164504):c==="Twitter"&&z.api.createClientVe(T.CJ.element,T.CJ,164505);z.L(T.CJ.element,"click",function(w){return function(){z.api.logClick(w.CJ.element)}}(T)); +z.api.logVisibility(T.CJ.element,!0);z.S.push(T.CJ);e++}}var W=J.more||J.moreLink,l=new g.U({D:"a",Iy:["ytp-share-panel-service-button","ytp-button"],N:[{D:"span",J:"ytp-share-panel-service-button-more",N:[{D:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},N:[{D:"rect",j:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{D:"path",j:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z", +fill:"#4e4e4f","fill-rule":"evenodd"}}]}]}],j:{href:W,target:"_blank",title:"More"}});l.listen("click",function(w){var q=W;z.api.logClick(z.moreButton.element);q=ixu(z,q);g.cO(q,z.api,w)&&z.api.B1("SHARE_CLICKED")}); +l.addOnDisposeCallback(g.Ce(z.tooltip,l.element));z.api.createClientVe(l.element,l,164506);z.L(l.element,"click",function(){z.api.logClick(l.element)}); +z.api.logVisibility(l.element,!0);z.S.push(l);z.moreButton=l;z.updateValue("buttons",z.S)}; +ixu=function(z,J){var m={};g.fi(z.api.W())&&(g.wd(z.api,"addEmbedsConversionTrackingParams",[m]),J=g.v1(J,m));return J}; +WCs=function(z){for(var J=g.y(z.S),m=J.next();!m.done;m=J.next())m=m.value,m.detach(),g.Wc(m);z.S=[]}; +NR=function(z){return z===void 0||z.startSec===void 0||z.endSec===void 0?!1:!0}; +wxq=function(z,J){z.startSec+=J;z.endSec+=J}; +dB1=function(z){Kb.call(this,z);this.T=this.K=this.isContentForward=this.V=!1;qG4(this);this.L(this.G,"changeProductsInVideoVisibility",this.Nsf);this.L(this.G,"videodatachange",this.onVideoDataChange)}; +Itf=function(z){z.Y&&z.Qx.element.removeChild(z.Y.element);z.Y=void 0}; +pxf=function(z,J){return J.map(function(m){var e,T;if((m=(e=g.P(m,OxE))==null?void 0:(T=e.thumbnail)==null?void 0:T.thumbnails)&&m.length!==0)return m[0].url}).filter(function(m){return m!==void 0}).map(function(m){m=new g.U({D:"img", +J:"ytp-suggested-action-product-thumbnail",j:{alt:"",src:m}});g.u(z,m);return m})}; +yiq=function(z,J){z.isContentForward=J;g.qt(z.badge.element,"ytp-suggested-action-badge-content-forward",J)}; +GN=function(z){var J=z.isContentForward&&!z.jU();g.qt(z.badge.element,"ytp-suggested-action-badge-preview-collapsed",J&&z.K);g.qt(z.badge.element,"ytp-suggested-action-badge-preview-expanded",J&&z.T)}; +Xy=function(z,J,m){return new g.Ec(z*1E3,J*1E3,{priority:9,namespace:m})}; +NpR=function(z){z.G.c7("shopping_overlay_visible");z.G.c7("shopping_overlay_preview_collapsed");z.G.c7("shopping_overlay_preview_expanded");z.G.c7("shopping_overlay_expanded")}; +qG4=function(z){z.L(z.G,g.F8("shopping_overlay_visible"),function(){z.Yi(!0)}); +z.L(z.G,g.iw("shopping_overlay_visible"),function(){z.Yi(!1)}); +z.L(z.G,g.F8("shopping_overlay_expanded"),function(){z.fh=!0;a2(z)}); +z.L(z.G,g.iw("shopping_overlay_expanded"),function(){z.fh=!1;a2(z)}); +z.L(z.G,g.F8("shopping_overlay_preview_collapsed"),function(){z.K=!0;GN(z)}); +z.L(z.G,g.iw("shopping_overlay_preview_collapsed"),function(){z.K=!1;GN(z)}); +z.L(z.G,g.F8("shopping_overlay_preview_expanded"),function(){z.T=!0;GN(z)}); +z.L(z.G,g.iw("shopping_overlay_preview_expanded"),function(){z.T=!1;GN(z)})}; +n8u=function(z){g.U.call(this,{D:"div",J:"ytp-shorts-title-channel",N:[{D:"a",J:"ytp-shorts-title-channel-logo",j:{href:"{{channelLink}}",target:z.W().B,"aria-label":"{{channelLogoLabel}}"}},{D:"div",J:"ytp-shorts-title-expanded-heading",N:[{D:"div",J:"ytp-shorts-title-expanded-title",N:[{D:"a",t6:"{{expandedTitle}}",j:{href:"{{channelTitleLink}}",target:z.W().B,tabIndex:"0"}}]}]}]});var J=this;this.api=z;this.K=this.P1("ytp-shorts-title-channel-logo");this.channelName=this.P1("ytp-shorts-title-expanded-title"); +this.subscribeButton=null;z.createClientVe(this.K,this,36925);this.L(this.K,"click",function(m){J.api.logClick(J.K);g.tB(window,G3q(J));m.preventDefault()}); +z.createClientVe(this.channelName,this,37220);this.L(this.channelName,"click",function(m){J.api.logClick(J.channelName);g.tB(window,G3q(J));m.preventDefault()}); +Xxq(this);this.L(z,"videodatachange",this.MD);this.L(z,"videoplayerreset",this.MD);this.MD()}; +Xxq=function(z){if(!z.api.W().Rs){var J=z.api.getVideoData(),m=new g.Qy("Subscribe",null,"Subscribed",null,!0,!1,J.Ab,J.subscribed,"channel_avatar",null,z.api,!0);z.api.createServerVe(m.element,z);var e;z.api.setTrackingParams(m.element,((e=J.subscribeButtonRenderer)==null?void 0:e.trackingParams)||null);z.L(m.element,"click",function(){z.api.logClick(m.element)}); +z.subscribeButton=m;g.u(z,z.subscribeButton);z.subscribeButton.S4(z.element)}}; +G3q=function(z){var J=z.api.W(),m=z.api.getVideoData();m=g.Tx(J)+m.GS;if(!g.fi(J))return m;J={};g.wd(z.api,"addEmbedsConversionTrackingParams",[J]);return g.v1(m,J)}; +n_=function(z){g.PL.call(this,z,{D:"button",Iy:["ytp-skip-intro-button","ytp-popup","ytp-button"],N:[{D:"div",J:"ytp-skip-intro-button-text",t6:"Skip Intro"}]},100);var J=this;this.S=!1;this.K=new g.vl(function(){J.hide()},5E3); +this.o1=this.kx=NaN;g.u(this,this.K);this.V=function(){J.show()}; +this.Y=function(){J.hide()}; +this.U=function(){var m=J.G.getCurrentTime();m>J.kx/1E3&&m0?{D:"svg",j:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},N:[{D:"path",Iy:["ytp-circle-arrow","ytp-svg-fill"],j:{d:"m19,12c0,2.1 -0.93,4.07 -2.55,5.4c-1.62,1.34 -3.76,1.87 -5.86,1.46c-2.73,-0.53 -4.92,-2.72 -5.45,-5.45c-0.41,-2.1 .12,-4.24 1.46,-5.86c1.33,-1.62 3.3,-2.55 5.4,-2.55l1.27,0l-0.85,.85l1.41,1.41l3.35,-3.35l-3.35,-3.35l-1.41,1.41l1.01,1.03l-1.43,0c-2.7,0 -5.23,1.19 -6.95,3.28c-1.72,2.08 -2.4,4.82 -1.88,7.52c0.68,3.52 3.51,6.35 7.03,7.03c0.6,.11 1.19,.17 1.78,.17c2.09,0 4.11,-0.71 5.74,-2.05c2.09,-1.72 3.28,-4.25 3.28,-6.95l-2,0z"}}, +{D:"text",Iy:["ytp-jump-button-text","ytp-svg-fill"],j:{x:"7.05",y:"15.05"}}]}:{D:"svg",j:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},N:[{D:"path",Iy:["ytp-circle-arrow","ytp-svg-fill"],j:{d:"m18.95,6.28c-1.72,-2.09 -4.25,-3.28 -6.95,-3.28l-1.43,0l1.02,-1.02l-1.41,-1.41l-3.36,3.35l3.35,3.35l1.41,-1.41l-0.85,-0.86l1.27,0c2.1,0 4.07,.93 5.4,2.55c1.34,1.62 1.87,3.76 1.46,5.86c-0.53,2.73 -2.72,4.92 -5.45,5.45c-2.11,.41 -4.24,-0.12 -5.86,-1.46c-1.62,-1.33 -2.55,-3.3 -2.55,-5.4l-2,0c0,2.7 1.19,5.23 3.28,6.95c1.62,1.34 3.65,2.05 5.74,2.05c0.59,0 1.19,-0.06 1.78,-0.17c3.52,-0.68 6.35,-3.51 7.03,-7.03c0.52,-2.7 -0.17,-5.44 -1.88,-7.52z"}}, +{D:"text",Iy:["ytp-jump-button-text","ytp-svg-fill"],j:{x:"6.5",y:"15"}}]}]});var m=this;this.G=z;this.K=J;this.T=new g.vl(function(){m.S?(m.S=!1,m.T.start()):m.element.classList.remove("ytp-jump-spin","backwards")},250); +this.S=!1;(J=J>0)?this.G.createClientVe(this.element,this,36843):this.G.createClientVe(this.element,this,36844);var e=g.NQ(J?"Seek forward $SECONDS seconds. (\u2192)":"Seek backwards $SECONDS seconds. (\u2190)",{SECONDS:Math.abs(this.K).toString()});this.update({title:e,"data-title-no-tooltip":e,"aria-keyshortcuts":J?"\u2192":"\u2190"});this.U=this.element.querySelector(".ytp-jump-button-text");this.U.textContent=Math.abs(this.K).toString();this.listen("click",this.onClick,this);ap(z,this.element, +this)}; +ftq=function(z,J){J?z.element.classList.add("ytp-jump-button-enabled"):z.element.classList.remove("ytp-jump-button-enabled");z.G.logVisibility(z.element,J);z.G.CF()}; +Sd=function(z,J){C_.call(this,z,J,"timedMarkerCueRange","View key moments");this.L(z,g.iw("timedMarkerCueRange"),this.Xq);this.L(z,"updatemarkervisibility",this.updateVideoData)}; +DBf=function(z){var J,m=(J=z.G.getVideoData())==null?void 0:J.tZ;if(m)for(z=z.U.h6,m=g.y(m),J=m.next();!J.done;J=m.next())if(J=z[J.value]){var e=void 0,T=void 0,E=void 0;if(((e=J.onTap)==null?void 0:(T=e.innertubeCommand)==null?void 0:(E=T.changeEngagementPanelVisibilityAction)==null?void 0:E.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return J}}; +f_=function(z){var J=z.C("web_enable_pip_on_miniplayer");g.U.call(this,{D:"button",Iy:["ytp-miniplayer-button","ytp-button"],j:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"6","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},N:[J?{D:"svg",j:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},N:[{D:"g",j:{transform:"translate(96, -96) scale(0.8)"},N:[{D:"path",xQ:!0,j:{d:"M96-480v-72h165L71-743l50-50 191 190v-165h72v288H96Zm72 288q-29.7 0-50.85-21.15Q96-234.3 96-264v-144h72v144h336v72H168Zm624-264v-240H456v-72h336q29.7 0 50.85 21.15Q864-725.7 864-696v240h-72ZM576-192v-192h288v192H576Z"}}]}]}: +axR()]});this.G=z;this.visible=!1;this.listen("click",this.onClick);this.L(z,"fullscreentoggled",this.MD);this.updateValue("title",g.Ke(z,"Miniplayer","i"));this.update({"data-title-no-tooltip":"Miniplayer"});ap(z,this.element,this);z.createClientVe(this.element,this,62946);this.MD()}; +DW=function(z,J,m){m=m===void 0?!1:m;g.U.call(this,{D:"button",Iy:["ytp-mute-button","ytp-button"],j:z.W().h6?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}"}:{"aria-disabled":"true","aria-haspopup":"true"},t6:"{{icon}}"});this.G=z;this.x3=m;this.K=null;this.U=this.B=this.Y=this.fh=NaN;this.Tf=this.V=null;this.S=[];this.T=[];this.visible=!1;this.X=null;z.C("delhi_modern_web_player")&&this.update({"data-priority":3}); +m=this.G.W();this.updateValue("icon",xC());this.tooltip=J.iF();this.K=new g.dF({D:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{D:"defs",N:[{D:"clipPath",j:{id:"ytp-svg-volume-animation-mask"},N:[{D:"path",j:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{D:"path",j:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{D:"path",J:"ytp-svg-volume-animation-mover",j:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{D:"clipPath",j:{id:"ytp-svg-volume-animation-slash-mask"}, +N:[{D:"path",J:"ytp-svg-volume-animation-mover",j:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{D:"path",xQ:!0,Iy:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],j:{"clip-path":"url(#ytp-svg-volume-animation-mask)",d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{D:"path",xQ:!0,Iy:["ytp-svg-fill","ytp-svg-volume-animation-hider"],j:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)", +d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z",fill:"#fff"}}]});g.u(this,this.K);this.V=this.K.P1("ytp-svg-volume-animation-speaker");this.Tf=this.V.getAttribute("d");this.S=g.vm("ytp-svg-volume-animation-mover",this.K.element);this.T=g.vm("ytp-svg-volume-animation-hider",this.K.element);this.wb=new J$;g.u(this,this.wb);this.Ry=new J$;g.u(this,this.Ry);this.listen("click",this.p73);this.L(z,"appresize",this.Pj);this.L(z,"onVolumeChange",this.onVolumeChange);var e=null;m.h6?this.addOnDisposeCallback(g.Ce(J.iF(), +this.element)):(J="Your browser doesn't support changing the volume. $BEGIN_LINKLearn More$END_LINK".split(/\$(BEGIN|END)_LINK/),e=new g.PL(z,{D:"span",Iy:["ytp-popup","ytp-generic-popup"],j:{tabindex:"0"},N:[J[0],{D:"a",j:{href:"https://support.google.com/youtube/?p=noaudio",target:m.B},t6:J[2]},J[4]]},100,!0),g.u(this,e),e.hide(),e.subscribe("show",function(T){z.mm(e,T)}),g.M0(z,e.element,4)); +this.message=e;z.createClientVe(this.element,this,28662);this.Pj(z.zf().getPlayerSize());this.setVolume(z.getVolume(),z.isMuted())}; +g84=function(z,J){z.fh=J;var m=z.Tf;J&&(m+=zd4(bxb,$Bu,J));z.V.setAttribute("d",m)}; +xB1=function(z,J){z.B=J;for(var m=20*J,e=0;e=3&&z.G.getPresentingPlayerType()!==2}; +huz=function(z){var J=D5(z.G.UC());return J?z.K?J.wl():J.F2():!1}; +Aiu=function(z){var J={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},m=z.playlist!=null&&z.playlist.wl();m=g.b8(z.G)&&(!z.K||m);var e=z.K&&g.A3(z.G),T=huz(z),E=z.K&&z.G.getPresentingPlayerType()===5,Z=g.Ke(z.G,"Next","SHIFT+n"),c=g.Ke(z.G,"Previous","SHIFT+p");if(E)J.title="Start video";else if(z.S)J.title="Replay";else if(m){var W=null;z.playlist&&(W=g.q5(z.playlist,z.K?MHq(z.playlist):Atb(z.playlist)));if(W){if(W.videoId){var l=z.playlist.listId; +J.url=z.G.W().getVideoUrl(W.videoId,l?l.toString():void 0)}J.text=W.title;J.duration=W.lengthText?W.lengthText:W.lengthSeconds?g.By(W.lengthSeconds):null;J.preview=W.NA("mqdefault.jpg")}z.K?(J.title=Z,J["data-title-no-tooltip"]="Next",J["aria-keyshortcuts"]="SHIFT+n"):(J.title=c,J["data-title-no-tooltip"]="Previous",J["aria-keyshortcuts"]="SHIFT+p")}else if(e){if(c=(W=z.videoData)==null?void 0:g.zF(W))J.url=c.cX(),J.text=c.title,J.duration=c.lengthText?c.lengthText:c.lengthSeconds?g.By(c.lengthSeconds): +null,J.preview=c.NA("mqdefault.jpg");J.title=Z;J["data-title-no-tooltip"]="Next";J["aria-keyshortcuts"]="SHIFT+n"}J.disabled=!e&&!m&&!T&&!E;z.update(J);z.V=!!J.url;e||m||z.S||T||E?z.T||(z.T=g.Ce(z.tooltip,z.element),z.Y=z.listen("click",z.onClick,z)):z.T&&(z.T(),z.T=null,z.hX(z.Y),z.Y=null);z.tooltip.CF();g.qt(z.element,"ytp-playlist-ui",z.K&&m)}; +Vqb=function(z,J){g.U.call(this,{D:"div",J:"ytp-fine-scrubbing",N:[{D:"div",J:"ytp-fine-scrubbing-draggable",N:[{D:"div",J:"ytp-fine-scrubbing-thumbnails",j:{tabindex:"0",role:"slider",type:"range","aria-label":"Click or scroll the panel for the precise seeking.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{D:"div",j:{"aria-hidden":"true"},J:"ytp-fine-scrubbing-cursor"},{D:"div",J:"ytp-fine-scrubbing-seek-time",j:{"aria-hidden":"true"}, +t6:"{{seekTime}}"},{D:"div",J:"ytp-fine-scrubbing-play",N:[DN()],j:{title:"Play from this position",role:"button"}},{D:"div",J:"ytp-fine-scrubbing-dismiss",N:[g.a0()],j:{title:"Exit precise seeking",role:"button"}}]});var m=this;this.api=z;this.Y=this.P1("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.P1("ytp-fine-scrubbing-dismiss");this.Tf=this.P1("ytp-fine-scrubbing-draggable");this.playButton=this.P1("ytp-fine-scrubbing-play");this.thumbnails=[];this.T=[];this.Gf=this.K=0;this.Qx=void 0; +this.Ry=NaN;this.h6=this.B=this.S=this.X=0;this.U=[];this.interval=this.frameCount=0;this.V=160;this.scale=1;this.Lh=0;this.isEnabled=this.x3=!1;u5q(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.Ce(J,this.dismissButton));this.addOnDisposeCallback(g.Ce(J,this.playButton));this.wb=new g.Pk(this.Tf,!0);this.wb.subscribe("dragstart",this.Gu,this);this.wb.subscribe("dragmove",this.Ih,this);this.wb.subscribe("dragend",this.M_,this);this.L(z,"SEEK_COMPLETE",this.q_);z.C("web_fix_fine_scrubbing_false_play")&& +this.L(z,"rootnodemousedown",function(e){m.fh=e}); +this.Y.addEventListener("keydown",function(){}); +g.u(this,this.wb);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.Y,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; +u5q=function(z,J){var m=g.By(J),e=g.NQ("Seek to $PROGRESS",{PROGRESS:g.By(J,!0)});z.update({ariamin:0,ariamax:Math.floor(z.api.getDuration()),arianow:Math.floor(J),arianowtext:e,seekTime:m})}; +PZ1=function(z){z.Ry=NaN;z.B=0;z.X=z.S}; +UBE=function(z){var J=z.api.LF();if(J){var m=90*z.scale,e=Ac(J,160*z.scale);if(J=J.levels[e]){z.V=J.width;if(!z.U.length){e=[];for(var T=oo(J,J.uQ()),E=J.columns*J.rows,Z=J.frameCount,c=0;c<=T;c++)for(var W=Zz.U.length;)e= +void 0,(e=z.thumbnails.pop())==null||e.dispose();for(;z.thumbnails.lengthm.length;)e=void 0,(e=z.T.pop())==null||e.dispose(); +for(;z.T.length-m?-J/m*z.interval*.5:-(J+m/2)/m*z.interval}; +Ruq=function(z){return-((z.Y.offsetWidth||(z.frameCount-1)*z.V*z.scale)-z.K/2)}; +tqq=function(){g.U.call(this,{D:"div",J:"ytp-fine-scrubbing-thumbnail"})}; +Hxu=function(){g.U.call(this,{D:"div",J:"ytp-fine-scrubbing-chapter-title",N:[{D:"div",J:"ytp-fine-scrubbing-chapter-title-content",t6:"{{chapterTitle}}"}]})}; +LCz=function(z){g.U.call(this,{D:"div",J:"ytp-heat-map-chapter",N:[{D:"svg",J:"ytp-heat-map-svg",j:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},N:[{D:"defs",N:[{D:"clipPath",j:{id:"{{id}}"},N:[{D:"path",J:"ytp-heat-map-path",j:{d:"",fill:"white"}}]},{D:"linearGradient",j:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},N:[{D:"stop",j:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{D:"stop",j:{offset:"100%", +"stop-color":"white","stop-opacity":"0"}}]}]},{D:"rect",J:"ytp-heat-map-graph",j:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{D:"rect",J:"ytp-heat-map-hover",j:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{D:"rect",J:"ytp-heat-map-play",j:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{D:"path",J:"ytp-modern-heat-map",j:{d:"",fill:"url(#ytp-heat-map-gradient-def)",height:"100%", +stroke:"white","stroke-opacity":"0.7","stroke-width":"2px",style:"display: none;",width:"100%",x:"0",y:"0"}}]}]});this.api=z;this.X=this.P1("ytp-heat-map-svg");this.Y=this.P1("ytp-heat-map-path");this.U=this.P1("ytp-heat-map-graph");this.V=this.P1("ytp-heat-map-play");this.K=this.P1("ytp-heat-map-hover");this.S=this.P1("ytp-modern-heat-map");this.pZ=!1;this.T=60;z=""+g.sz(this);this.update({id:z});z="url(#"+z+")";this.U.setAttribute("clip-path",z);this.V.setAttribute("clip-path",z);this.K.setAttribute("clip-path", +z)}; +Qvu=function(z,J){J>0&&(z.T=J,z.X.style.height=z.T+"px")}; +xI=function(){g.U.call(this,{D:"div",J:"ytp-chapter-hover-container",N:[{D:"div",J:"ytp-progress-bar-padding"},{D:"div",J:"ytp-progress-list",N:[{D:"div",Iy:["ytp-play-progress","ytp-swatch-background-color"]},{D:"div",J:"ytp-progress-linear-live-buffer"},{D:"div",J:"ytp-load-progress"},{D:"div",J:"ytp-hover-progress"},{D:"div",J:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.T=this.P1("ytp-progress-list");this.Y=this.P1("ytp-progress-linear-live-buffer"); +this.U=this.P1("ytp-ad-progress-list");this.V=this.P1("ytp-load-progress");this.X=this.P1("ytp-play-progress");this.S=this.P1("ytp-hover-progress");this.K=this.P1("ytp-chapter-hover-container")}; +MR=function(z,J){g.FR(z.K,"width",J)}; +v8q=function(z,J){g.FR(z.K,"margin-right",J+"px")}; +svu=function(){this.T=this.position=this.S=this.K=this.U=this.width=NaN}; +riE=function(){g.U.call(this,{D:"div",J:"ytp-timed-marker"});this.K=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; +g.o_=function(z,J){g.py.call(this,{D:"div",J:"ytp-progress-bar-container",j:{"aria-disabled":"true"},N:[{D:"div",Iy:["ytp-heat-map-container"],N:[{D:"div",J:"ytp-heat-map-edu"}]},{D:"div",Iy:["ytp-progress-bar"],j:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},N:[{D:"div",J:"ytp-chapters-container"},{D:"div",J:"ytp-timed-markers-container"},{D:"div",J:"ytp-clip-start-exclude"}, +{D:"div",J:"ytp-clip-end-exclude"},{D:"div",J:"ytp-scrubber-container",N:[{D:"div",Iy:["ytp-scrubber-button","ytp-swatch-background-color"],N:[{D:"div",J:"ytp-scrubber-pull-indicator"},{D:"img",Iy:["ytp-decorated-scrubber-button"]}]}]}]},{D:"div",Iy:["ytp-fine-scrubbing-container"],N:[{D:"div",J:"ytp-fine-scrubbing-edu"}]},{D:"div",J:"ytp-bound-time-left",t6:"{{boundTimeLeft}}"},{D:"div",J:"ytp-bound-time-right",t6:"{{boundTimeRight}}"},{D:"div",J:"ytp-clip-start",j:{title:"{{clipstarttitle}}"},t6:"{{clipstarticon}}"}, +{D:"div",J:"ytp-clip-end",j:{title:"{{clipendtitle}}"},t6:"{{clipendicon}}"}]});this.api=z;this.s4=!1;this.SC=this.Xy=this.qD=this.Y=this.Pm=0;this.gW=null;this.hw=!1;this.Gf={};this.ub={};this.clipEnd=Infinity;this.GS=this.P1("ytp-clip-end");this.Rs=new g.Pk(this.GS,!0);this.OC=this.P1("ytp-clip-end-exclude");this.l8=this.P1("ytp-clip-start-exclude");this.clipStart=0;this.gE=this.P1("ytp-clip-start");this.ED=new g.Pk(this.gE,!0);this.B=this.yH=0;this.progressBar=this.P1("ytp-progress-bar");this.tZ= +{};this.h6={};this.ND=this.P1("ytp-chapters-container");this.T2=this.P1("ytp-timed-markers-container");this.K=[];this.V=[];this.Bk={};this.vA=null;this.Tf=-1;this.Hd=this.wb=0;this.yv=this.X=null;this.qp=this.P1("ytp-scrubber-button");this.Wr=this.P1("ytp-decorated-scrubber-button");this.oW=this.P1("ytp-scrubber-container");this.O2=new g.Nr;this.o1=new svu;this.S=new AL(0,0);this.ib=null;this.Ry=this.rL=!1;this.Ks=null;this.fh=this.P1("ytp-heat-map-container");this.qx=this.P1("ytp-heat-map-edu"); +this.U=[];this.heatMarkersDecorations=[];this.nh=this.P1("ytp-fine-scrubbing-container");this.OD=this.P1("ytp-fine-scrubbing-edu");this.T=void 0;this.x3=this.Zo=this.Qx=!1;this.tooltip=J.iF();this.addOnDisposeCallback(g.Ce(this.tooltip,this.GS));g.u(this,this.Rs);this.Rs.subscribe("hoverstart",this.aE,this);this.Rs.subscribe("hoverend",this.GF,this);this.L(this.GS,"click",this.eU);this.addOnDisposeCallback(g.Ce(this.tooltip,this.gE));g.u(this,this.ED);this.ED.subscribe("hoverstart",this.aE,this); +this.ED.subscribe("hoverend",this.GF,this);this.L(this.gE,"click",this.eU);zDq(this);this.L(z,"resize",this.yQ);this.L(z,"presentingplayerstatechange",this.anD);this.L(z,"videodatachange",this.PU);this.L(z,"videoplayerreset",this.Gf4);this.L(z,"cuerangesadded",this.iF4);this.L(z,"cuerangesremoved",this.nih);this.L(z,"onLoopRangeChange",this.w4);this.L(z,"innertubeCommand",this.onClickCommand);this.L(z,g.F8("timedMarkerCueRange"),this.Apx);this.L(z,"updatemarkervisibility",this.ZB);this.L(z,"serverstitchedvideochange", +this.hBF);this.updateVideoData(z.getVideoData(),!0);this.w4(z.getLoopRange());AO(this)&&!this.T&&(this.T=new Vqb(this.api,this.tooltip),z=g.pU(this.element).x||0,this.T.yQ(z,this.Y),this.T.S4(this.nh),g.u(this,this.T),this.L(this.T.dismissButton,"click",this.ew),this.L(this.T.playButton,"click",this.pP),this.L(this.T.element,"dblclick",this.pP));this.api.createClientVe(this.fh,this,139609,!0);this.api.createClientVe(this.qx,this,140127,!0);this.api.createClientVe(this.OD,this,151179,!0);this.api.createClientVe(this.progressBar, +this,38856,!0)}; +zDq=function(z){if(z.K.length===0){var J=new xI;z.K.push(J);g.u(z,J);J.S4(z.ND,0)}for(;z.K.length>1;)z.K.pop().dispose();MR(z.K[0],"100%");z.K[0].startTime=0;z.K[0].title=""}; +J1q=function(z){var J=J===void 0?NaN:J;var m=new LCz(z.api);z.U.push(m);g.u(z,m);m.S4(z.fh);J>=0&&(m.element.style.width=J+"px")}; +mIE=function(z){for(;z.V.length;)z.V.pop().dispose()}; +TZR=function(z){var J,m,e,T,E;return(E=g.P((T=g.P((J=z.getWatchNextResponse())==null?void 0:(m=J.playerOverlays)==null?void 0:(e=m.playerOverlayRenderer)==null?void 0:e.decoratedPlayerBarRenderer,Kr))==null?void 0:T.playerBar,eDE))==null?void 0:E.chapters}; +E1R=function(z){for(var J=z.K,m=[],e=0;e=Z&&G<=w&&E.push(d)}W>0&&(z.fh.style.height=W+"px");Z=z.U[e];w=E;d=T;O=W;G=e===0;G=G===void 0?!1:G;Qvu(Z,O);q=w;I=Z.T;G=G===void 0?!1:G;var n=1E3/q.length,C=[];C.push({x:0,y:100});for(var K=0;K0&&(m=E[E.length-1])}g.jd(z);c=[];J=g.y(J.heatMarkersDecorations||[]);for(T=J.next();!T.done;T=J.next())if(T=g.P(T.value,wGs))W=T.label,e=m=l=void 0,c.push({visibleTimeRangeStartMillis:(l=T.visibleTimeRangeStartMillis)!=null?l:-1,visibleTimeRangeEndMillis:(m=T.visibleTimeRangeEndMillis)!=null?m:-1,decorationTimeMillis:(e=T.decorationTimeMillis)!=null?e:NaN,label:W?g.GZ(W):""});z.heatMarkersDecorations=c}}; +ikq=function(z,J){z.V.push(J);g.u(z,J);J.S4(z.T2,z.T2.children.length)}; +c1q=function(z,J){J=g.y(J);for(var m=J.next();!m.done;m=J.next()){m=m.value;var e=hO(z,m.timeRangeStartMillis/(z.S.K*1E3),ut(z));g.FR(m.element,"transform","translateX("+e+"px) scaleX(0.6)")}}; +ZkE=function(z,J){var m=0,e=!1;J=g.y(J);for(var T=J.next();!T.done;T=J.next()){T=T.value;if(g.P(T,dIj)){T=g.P(T,dIj);var E={startTime:NaN,title:null,onActiveCommand:void 0},Z=T.title;E.title=Z?g.GZ(Z):"";Z=T.timeRangeStartMillis;Z!=null&&(E.startTime=Z);E.onActiveCommand=T.onActiveCommand;T=E;m===0&&T.startTime!==0&&(z.K[m].startTime=0,z.K[m].title="",z.K[m].onActiveCommand=T.onActiveCommand,m++,e=!0);z.K.length<=m&&(E=new xI,z.K.push(E),g.u(z,E),E.S4(z.ND,z.ND.children.length));z.K[m].startTime= +T.startTime;z.K[m].title=T.title?T.title:"";z.K[m].onActiveCommand=T.onActiveCommand;z.K[m].index=e?m-1:m}m++}for(;m=0;e--)if(z.K[e].width>0){v8q(z.K[e],0);var T=Math.floor(z.K[e].width);z.K[e].width=T;MR(z.K[e],T+"px");break}z.K[m].width=0;MR(z.K[m],"0")}else m===z.K.length-1?(e=Math.floor(z.K[m].width+J),z.K[m].width=e,MR(z.K[m],e+"px")):(J=z.K[m].width+J,e=Math.round(J),J-=e,z.K[m].width=e,MR(z.K[m],e+"px"));m=0;if(z.U.length===z.K.length)for(J=0;J< +z.U.length;J++)e=z.K[J].width,z.U[J].element.style.width=e+"px",z.U[J].element.style.left=m+"px",m+=e+P8(z);z.api.C("delhi_modern_web_player")&&(z.K.length===1?z.K[0].T.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(z.K[0].T.classList.remove("ytp-progress-bar-end"),z.K[0].T.classList.add("ytp-progress-bar-start"),z.K[z.K.length-1].T.classList.add("ytp-progress-bar-end")))}; +Idu=function(z,J){var m=0,e=!1,T=z.K.length,E=z.S.K*1E3;E===0&&(E=z.api.getProgressState().seekableEnd*1E3);if(E>0&&z.Y>0){for(var Z=z.Y-P8(z)*z.wb,c=z.Hd===0?3:Z*z.Hd,W=g.y(z.K),l=W.next();!l.done;l=W.next())l.value.width=0;for(;m1);l=(E===0?0:W/E*Z)+z.K[m].width;if(l>c)z.K[m].width=l;else{z.K[m].width=0;var w=z,q=m,d=w.K[q-1];d!==void 0&&d.width>0? +d.width+=l:qz.Hd&&(z.Hd=W/E),e=!0)}m++}}return e}; +Va=function(z){if(z.Y){var J=z.api.getProgressState(),m=z.api.getVideoData();if(!(m&&m.enableServerStitchedDai&&m.LH)||isFinite(J.current)){var e;if(((e=z.api.getVideoData())==null?0:QX(e))&&J.airingStart&&J.airingEnd)var T=tO(z,J.airingStart,J.airingEnd);else if(z.api.getPresentingPlayerType()===2&&z.api.W().C("show_preskip_progress_bar_for_skippable_ads")){var E,Z,c;T=(m=(T=z.api.getVideoData())==null?void 0:(E=T.getPlayerResponse())==null?void 0:(Z=E.playerConfig)==null?void 0:(c=Z.webPlayerConfig)== +null?void 0:c.skippableAdProgressBarDuration)?tO(z,J.seekableStart,m/1E3):tO(z,J.seekableStart,J.seekableEnd)}else T=tO(z,J.seekableStart,J.seekableEnd);E=oU(T,J.loaded,0);J=oU(T,J.current,0);Z=z.S.T!==T.T||z.S.K!==T.K;z.S=T;H8(z,J,E);Z&&Ok4(z);pGs(z)}}}; +tO=function(z,J,m){return y11(z)?new AL(Math.max(J,z.ib.startTimeMs/1E3),Math.min(m,z.ib.endTimeMs/1E3)):new AL(J,m)}; +NZu=function(z,J){var m;if(((m=z.ib)==null?void 0:m.type)==="repeatChapter"||(J==null?void 0:J.type)==="repeatChapter")J&&(J=z.K[it(z.K,J.startTimeMs)],g.qt(J.K,"ytp-repeating-chapter",!1)),z.ib&&(J=z.K[it(z.K,z.ib.startTimeMs)],g.qt(J.K,"ytp-repeating-chapter",!0)),z.K.forEach(function(e){g.qt(e.K,"ytp-exp-chapter-hover-container",!z.ib)})}; +R_=function(z,J){var m=z.S;m=m.T+J.T*m.getLength();if(z.K.length>1){m=Ua(z,J.S,!0);for(var e=0,T=0;T0&&(e+=z.K[T].width,e+=P8(z));m=(z.K[m].startTime+(J.S-e)/z.K[m].width*((m===z.K.length-1?z.S.K*1E3:z.K[m+1].startTime)-z.K[m].startTime))/1E3||0}return m}; +kI=function(z,J,m,e,T){J=J<0?0:Math.floor(Math.min(J,z.api.getDuration())*1E3);m=m<0?0:Math.floor(Math.min(m,z.api.getDuration())*1E3);z=z.progressBar.visualElement;e={seekData:{startMediaTimeMs:J,endMediaTimeMs:m,seekSource:e}};(J=g.Dc())&&g.zo(eb)(void 0,J,z,T,e,void 0)}; +Gnz=function(z,J,m){if(m>=z.K.length)return!1;var e=z.Y-P8(z)*z.wb;return Math.abs(J-z.K[m].startTime/1E3)/z.S.K*e<4}; +Ok4=function(z){z.qp.style.removeProperty("height");for(var J=g.y(Object.keys(z.Gf)),m=J.next();!m.done;m=J.next())XG4(z,m.value);L_(z);H8(z,z.B,z.yH)}; +ut=function(z){var J=z.O2.x;J=g.O8(J,0,z.Y);z.o1.update(J,z.Y);return z.o1}; +v8=function(z){return(z.Ry?135:90)-Qa(z)}; +Qa=function(z){var J=48,m=z.api.W();z.Ry?J=54:g.fi(m)&&!m.T?J=40:z.api.C("delhi_modern_web_player")&&(J=68);return J}; +H8=function(z,J,m){z.B=J;z.yH=m;var e=ut(z),T=z.S.K;var E=z.S;E=E.T+z.B*E.getLength();var Z=g.NQ("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.By(E,!0),DURATION:g.By(T,!0)}),c=it(z.K,E*1E3);c=z.K[c].title;z.update({ariamin:Math.floor(z.S.T),ariamax:Math.floor(T),arianow:Math.floor(E),arianowtext:c?c+" "+Z:Z});T=z.clipStart;E=z.clipEnd;z.ib&&z.api.getPresentingPlayerType()!==2&&(T=z.ib.startTimeMs/1E3,E=z.ib.endTimeMs/1E3);T=oU(z.S,T,0);c=oU(z.S,E,1);Z=z.api.getVideoData();E=g.O8(J,T,c);m=(Z==null? +0:g.RN(Z))?1:g.O8(m,T,c);J=hO(z,J,e);g.FR(z.oW,"transform","translateX("+J+"px)");z.api.C("delhi_modern_web_player")&&n1q(z,J);sa(z,e,T,E,"PLAY_PROGRESS");(Z==null?0:QX(Z))?(J=z.api.getProgressState().seekableEnd)&&sa(z,e,E,oU(z.S,J),"LIVE_BUFFER"):sa(z,e,T,m,"LOAD_PROGRESS");if(z.api.C("web_player_heat_map_played_bar")){var W;(W=z.U[0])!=null&&W.V.setAttribute("width",(E*100).toFixed(2)+"%")}}; +n1q=function(z,J){z.api.getPresentingPlayerType()!==1?z.ND.style.removeProperty("clip-path"):(J||(J=hO(z,z.B,ut(z))),z.ND.style.clipPath='path("'+(z.hw?Yyf(z,8,J,z.Ry?50:36,0,6):Yyf(z,4,J,z.Ry?34:24,2,3))+'")')}; +Yyf=function(z,J,m,e,T,E){var Z=m-e/2;m+=e/2;J+=T;return"M 0 "+T+" L 0 "+(J+" L ")+(Z+" "+J+" C ")+(Z+E+" "+J+" "+(Z+E)+" "+T+" "+Z+" "+T+" L 0 ")+(T+" M ")+(m+" "+T+" L ")+(z.Y+" "+T+" L ")+(z.Y+" "+J+" L ")+(m+" "+J+" C ")+(m-E+" "+J+" "+(m-E)+" "+T+" "+m+" "+T)}; +sa=function(z,J,m,e,T){var E=z.K.length,Z=J.K-z.wb*P8(z),c=m*Z;m=Ua(z,c);var W=e*Z;Z=Ua(z,W);T==="HOVER_PROGRESS"&&(Z=Ua(z,J.K*e,!0),W=J.K*e-Cpb(z,J.K*e)*P8(z));e=Math.max(c-ads(z,m),0);for(c=m;c=z.K.length)return z.Y;for(var m=0,e=0;e0||z.OC.clientWidth>0?(E=J.clientWidth/m,z=-1*z.l8.clientWidth/m):(E/=m,z=-1*z.K[T].element.offsetLeft/m),g.FR(J,"background-size",E+"px"),g.FR(J,"background-position-x",z+"px"))}; +rl=function(z,J,m,e,T){T||z.api.W().T?J.style.width=m+"px":g.FR(J,"transform","scalex("+(e?m/e:0)+")")}; +Ua=function(z,J,m){var e=0;(m===void 0?0:m)&&(J-=Cpb(z,J)*P8(z));m=g.y(z.K);for(var T=m.next();!T.done;T=m.next()){T=T.value;if(J>T.width)J-=T.width;else break;e++}return e===z.K.length?e-1:e}; +hO=function(z,J,m){var e=J*z.S.K*1E3;for(var T=-1,E=g.y(z.K),Z=E.next();!Z.done;Z=E.next())Z=Z.value,e>Z.startTime&&Z.width>0&&T++;e=T<0?0:T;T=m.K-P8(z)*z.wb;return J*T+P8(z)*e+m.U}; +Cpb=function(z,J){for(var m=z.K.length,e=0,T=g.y(z.K),E=T.next();!E.done;E=T.next())if(E=E.value,E.width!==0)if(J>E.width)J-=E.width,J-=P8(z),e++;else break;return e===m?m-1:e}; +g.Syu=function(z,J,m,e){var T=z.Y!==m,E=z.Ry!==e;z.Pm=J;z.Y=m;z.Ry=e;AO(z)&&(J=z.T)!=null&&(J.scale=e?1.5:1);Ok4(z);z.K.length===1&&(z.K[0].width=m||0);T&&g.jd(z);z.T&&E&&AO(z)&&(z.T.isEnabled&&(m=z.Ry?135:90,e=m-Qa(z),z.nh.style.height=m+"px",g.FR(z.fh,"transform","translateY("+-e+"px)"),g.FR(z.progressBar,"transform","translateY("+-e+"px)")),UBE(z.T))}; +L_=function(z){var J=!!z.ib&&z.api.getPresentingPlayerType()!==2,m=z.clipStart,e=z.clipEnd,T=!0,E=!0;J&&z.ib?(m=z.ib.startTimeMs/1E3,e=z.ib.endTimeMs/1E3):(T=m>z.S.T,E=z.S.K>0&&ez.B);g.qt(z.qp,"ytp-scrubber-button-hover",m===e&&z.K.length>1);if(z.api.C("web_player_heat_map_played_bar")){var E;(E=z.U[0])!=null&&E.K.setAttribute("width",(J.T*100).toFixed(2)+"%")}}}; +XG4=function(z,J){var m=z.Gf[J];J=z.ub[J];var e=ut(z),T=oU(z.S,m.start/1E3,0),E=iyf(m,z.Ry)/e.width;var Z=oU(z.S,m.end/1E3,1);E!==Number.POSITIVE_INFINITY&&(T=g.O8(T,0,Z-E));Z=Math.min(Z,T+E);m.color&&(J.style.background=m.color);m=T;J.style.left=Math.max(m*e.K+e.U,0)+"px";rl(z,J,g.O8((Z-m)*e.K+e.U,0,e.width),e.width,!0)}; +fdE=function(z,J){var m=J.getId();z.Gf[m]===J&&(g.WF(z.ub[m]),delete z.Gf[m],delete z.ub[m])}; +AO=function(z){var J=g.vZ(z.api.W())&&(z.api.C("web_shorts_pip")||z.api.C("web_watch_pip")),m;return!((m=z.api.getVideoData())==null?0:m.isLivePlayback)&&!z.api.isMinimized()&&!z.api.isInline()&&(!z.api.Hz()||!J)}; +zl=function(z){z.T&&(z.T.disable(),z.qD=0,z.fh.style.removeProperty("transform"),z.progressBar.style.removeProperty("transform"),z.nh.style.removeProperty("height"),z.element.parentElement&&z.element.parentElement.style.removeProperty("height"))}; +DIs=function(z,J){var m=J/v8(z)*Qa(z);g.FR(z.progressBar,"transform","translateY("+-J+"px)");g.FR(z.fh,"transform","translateY("+-J+"px)");g.FR(z.nh,"transform","translateY("+m+"px)");z.nh.style.height=J+m+"px";z.element.parentElement&&(z.element.parentElement.style.height=Qa(z)-m+"px")}; +bku=function(z,J){J?z.X||(z.element.removeAttribute("aria-disabled"),z.X=new g.Pk(z.progressBar,!0),z.X.subscribe("hovermove",z.jji,z),z.X.subscribe("hoverend",z.Foi,z),z.X.subscribe("dragstart",z.b1f,z),z.X.subscribe("dragmove",z.Bsh,z),z.X.subscribe("dragend",z.O16,z),z.api&&z.api.C("delhi_modern_web_player")&&(z.yv=new g.Pk(z.progressBar,!0),z.yv.subscribe("hoverstart",function(){z.hw=!0;n1q(z)},z),z.yv.subscribe("hoverend",function(){z.hw=!1; +n1q(z)},z)),z.Ks=z.listen("keydown",z.Xn)):z.X&&(z.element.setAttribute("aria-disabled","true"),z.hX(z.Ks),z.X.cancel(),z.X.dispose(),z.X=null)}; +P8=function(z){return z.api.C("delhi_modern_web_player")?4:z.Ry?3:2}; +y11=function(z){var J;return!((J=z.ib)==null||!J.postId)&&z.api.getPresentingPlayerType()!==2}; +Jt=function(z,J){g.U.call(this,{D:"button",Iy:["ytp-remote-button","ytp-button"],j:{title:"Play on TV","aria-haspopup":"true","data-priority":"9"},t6:"{{icon}}"});this.G=z;this.Yu=J;this.K=null;this.L(z,"onMdxReceiversChange",this.MD);this.L(z,"presentingplayerstatechange",this.MD);this.L(z,"appresize",this.MD);z.createClientVe(this.element,this,139118);this.MD();this.listen("click",this.T,this);ap(z,this.element,this)}; +mn=function(z,J){g.U.call(this,{D:"button",Iy:["ytp-button","ytp-settings-button"],j:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":q3(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},N:[g.$C()]});this.G=z;this.Yu=J;this.T=!0;this.listen("click",this.S);this.L(z,"onPlaybackQualityChange",this.updateBadge);this.L(z,"videodatachange",this.updateBadge);this.L(z,"webglsettingschanged",this.updateBadge);this.L(z,"appresize",this.K);ap(z,this.element,this);this.G.createClientVe(this.element, +this,28663);this.updateBadge();this.K(z.zf().getPlayerSize())}; +$Ib=function(z,J){z.T=!!J;z.K(z.G.zf().getPlayerSize())}; +eH=function(z,J){Zy.call(this,"Annotations",g.wk.HM);this.G=z;this.Yu=J;this.K=!1;z.C("web_settings_menu_icons")&&this.setIcon({D:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},N:[{D:"path",j:{d:"M17.5,7c1.93,0,3.5,1.57,3.5,3.5c0,1-0.53,4.5-0.85,6.5h-2.02l0.24-1.89l0.14-1.09l-1.1-0.03C15.5,13.94,14,12.4,14,10.5 C14,8.57,15.57,7,17.5,7 M6.5,7C8.43,7,10,8.57,10,10.5c0,1-0.53,4.5-0.85,6.5H7.13l0.24-1.89l0.14-1.09l-1.1-0.03 C4.5,13.94,3,12.4,3,10.5C3,8.57,4.57,7,6.5,7 M17.5,6C15.01,6,13,8.01,13,10.5c0,2.44,1.95,4.42,4.38,4.49L17,18h4c0,0,1-6,1-7.5 C22,8.01,19.99,6,17.5,6L17.5,6z M6.5,6C4.01,6,2,8.01,2,10.5c0,2.44,1.95,4.42,4.38,4.49L6,18h4c0,0,1-6,1-7.5 C11,8.01,8.99,6,6.5,6L6.5,6z", +fill:"white"}}]});this.L(z,"videodatachange",this.MD);this.L(z,"onApiChange",this.MD);this.subscribe("select",this.onSelect,this);this.MD()}; +Tl=function(z,J){g.jG.call(this,"Audio track",g.wk.AUDIO,z,J);this.G=z;this.tracks={};g.FE(this.element,"ytp-audio-menu-item");this.countLabel=new g.U({D:"div",N:[{D:"span",t6:"Audio track"},{D:"span",J:"ytp-menuitem-label-count",t6:"{{content}}"}]});z.C("web_settings_menu_icons")&&this.setIcon({D:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},N:[{D:"path",j:{d:"M11.72,11.93C13.58,11.59,15,9.96,15,8c0-2.21-1.79-4-4-4C8.79,4,7,5.79,7,8c0,1.96,1.42,3.59,3.28,3.93 C4.77,12.21,2,15.76,2,20h18C20,15.76,17.23,12.21,11.72,11.93z M8,8c0-1.65,1.35-3,3-3s3,1.35,3,3s-1.35,3-3,3S8,9.65,8,8z M11,12.9c5.33,0,7.56,2.99,7.94,6.1H3.06C3.44,15.89,5.67,12.9,11,12.9z M16.68,11.44l-0.48-0.88C17.31,9.95,18,8.77,18,7.5 c0-1.27-0.69-2.45-1.81-3.06l0.49-0.88C18.11,4.36,19,5.87,19,7.5C19,9.14,18.11,10.64,16.68,11.44z M18.75,13.13l-0.5-0.87 C19.95,11.28,21,9.46,21,7.5s-1.05-3.78-2.75-4.76l0.5-0.87C20.75,3.03,22,5.19,22,7.5S20.76,11.97,18.75,13.13z", +fill:"white"}}]});g.u(this,this.countLabel);g.Rp(this,this.countLabel);this.L(z,"videodatachange",this.MD);this.L(z,"onPlaybackAudioChange",this.MD);this.MD()}; +EV=function(z,J){Zy.call(this,"Autoplay",g.wk.lI);this.G=z;this.Yu=J;this.K=!1;this.S=[];this.L(z,"presentingplayerstatechange",this.T);this.subscribe("select",this.onSelect,this);z.createClientVe(this.element,this,113682);this.T()}; +g1s=function(z,J){g.k2.call(this,g.Le({"aria-haspopup":"false"}),0,"More options");this.G=z;this.Yu=J;this.L(this.element,"click",this.onClick);this.Yu.AX(this)}; +xIq=function(z,J){var m;g.vZ(z.W())&&(m={D:"div",J:"ytp-panel-footer-content",N:[{D:"span",t6:"Adjust download quality from your "},{D:"a",J:"ytp-panel-footer-content-link",t6:"Settings",j:{href:"/account_downloads"}}]});g.jG.call(this,"Quality",g.wk.tV,z,J,void 0,void 0,m);this.G=z;this.Tf={};this.B={};this.U={};this.wb=new Set;this.K=this.Y=!1;this.V="unknown";this.Ry="";this.fh=new g.sK;g.u(this,this.fh);this.Y=this.G.C("web_player_use_new_api_for_quality_pullback");this.K=this.G.C("web_player_enable_premium_hbr_playback_cap"); +z.C("web_settings_menu_icons")&&this.setIcon({D:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},N:[{D:"path",j:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",fill:"white"}}]});g.FE(this.T.element,"ytp-quality-menu");this.L(z,"videodatachange",this.rS);this.L(z,"videoplayerreset",this.rS);this.L(z,"onPlaybackQualityChange",this.xM);this.rS();z.createClientVe(this.element,this,137721)}; +A1s=function(z,J,m){var e=z.Tf[J],T=g.VD[J];return MCE(z,e?e.qualityLabel:T?T+"p":"Auto",J,m)}; +o1R=function(z,J,m,e,T){var E=(J=z.K?z.U[J]:z.B[J])&&J.quality,Z=J&&J.qualityLabel;Z=Z?Z:"Auto";e&&(Z="("+Z);z=MCE(z,Z,E||"",T);e&&z.N.push(")");(e=(e=J&&J.paygatedQualityDetails)&&e.paygatedIndicatorText)&&m&&z.N.push({D:"div",J:"ytp-premium-label",t6:e});return z}; +MCE=function(z,J,m,e){J={D:"span",Iy:e,N:[J]};var T;e="ytp-swatch-color";if(z.Y||z.K)e="ytp-swatch-color-white";m==="highres"?T="8K":m==="hd2880"?T="5K":m==="hd2160"?T="4K":m.indexOf("hd")===0&&m!=="hd720"&&(T="HD");T&&(J.N.push(" "),J.N.push({D:"sup",J:e,t6:T}));return J}; +Z9=function(z,J,m,e,T,E){E=E===void 0?!1:E;var Z={D:"div",Iy:["ytp-input-slider-section"],N:[{D:"input",J:"ytp-input-slider",j:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};T&&Z.N.unshift(T);E&&Z.Iy.push("ytp-vertical-slider");g.U.call(this,Z);this.Y=z;this.V=J;this.X=m;this.initialValue=e;this.header=T;this.T=this.P1("ytp-input-slider");this.K=e?e:z;this.init();this.L(this.T,"input",this.U);this.L(this.T,"keydown", +this.S)}; +Fs=function(z,J){z.K=J;z.updateValue("slidervalue",z.K);z.T.valueAsNumber=z.K;j9q(z,J)}; +j9q=function(z,J){z.T.style.setProperty("--yt-slider-shape-gradient-percent",(J-z.Y)/(z.V-z.Y)*100+"%")}; +i$=function(z){Z9.call(this,z.getAvailablePlaybackRates()[0],z.getAvailablePlaybackRates()[z.getAvailablePlaybackRates().length-1],.05,z.getPlaybackRate(),{D:"div",J:"ytp-speedslider-indicator-container",N:[{D:"div",J:"ytp-speedslider-badge"},{D:"p",J:"ytp-speedslider-text"}]});this.G=z;this.Ry=XV(this.fh,50,this);g.FE(this.T,"ytp-speedslider");this.B=this.P1("ytp-speedslider-text");this.wb=this.P1("ytp-speedslider-badge");hDs(this);this.L(this.T,"change",this.Tf)}; +hDs=function(z){z.B.textContent=z.K+"x";z.wb.classList.toggle("ytp-speedslider-premium-badge",z.K>2&&z.G.C("enable_web_premium_varispeed"))}; +ca=function(z,J,m,e,T,E,Z){g.U.call(this,{D:"div",J:"ytp-slider-section",j:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},N:[{D:"div",J:"ytp-slider",N:[{D:"div",J:"ytp-slider-handle"}]}]});this.X=z;this.B=J;this.T=m;this.S=e;this.Ry=T;this.x3=E;this.range=this.S-this.T;this.Qx=this.P1("ytp-slider-section");this.U=this.P1("ytp-slider");this.fh=this.P1("ytp-slider-handle");this.V=new g.Pk(this.U, +!0);this.K=Z?Z:m;g.u(this,this.V);this.V.subscribe("dragmove",this.Ao,this);this.L(this.element,"keydown",this.u$);this.L(this.element,"wheel",this.WS);this.init()}; +Wa=function(z){ca.call(this,.05,.05,z.getAvailablePlaybackRates()[0],z.getAvailablePlaybackRates()[z.getAvailablePlaybackRates().length-1],150,20,z.getPlaybackRate());this.G=z;this.Y=g.EX("P");this.wb=XV(this.Tf,50,this);g.FE(this.U,"ytp-speedslider");g.FE(this.Y,"ytp-speedslider-text");z=this.Y;var J=this.U;J.parentNode&&J.parentNode.insertBefore(z,J.nextSibling);u$u(this);this.L(this.G,"onPlaybackRateChange",this.updateValues)}; +u$u=function(z){z.Y.textContent=VCu(z,z.K)+"x"}; +VCu=function(z,J){z=Number(g.O8(J,z.T,z.S).toFixed(2));J=Math.floor((z+.001)*100%5+2E-15);var m=z;J!==0&&(m=z-J*.01);return Number(m.toFixed(2))}; +Pps=function(z){g.py.call(this,{D:"div",J:"ytp-speedslider-component"});z.C("web_settings_use_input_slider")?this.K=new i$(z):this.K=new Wa(z);g.u(this,this.K);this.element.appendChild(this.K.element)}; +tC1=function(z){var J=new Pps(z);Bk.call(this,z,J,"Custom");g.u(this,J)}; +Hkq=function(z,J){var m=new tC1(z);g.jG.call(this,"Playback speed",g.wk.TN,z,J,l$(z)?void 0:"Custom",l$(z)?void 0:function(){g.bJ(J,m)}); +var e=this;this.U=!1;g.u(this,m);this.V=new i$(z);g.u(this,this.V);z.C("web_settings_menu_icons")&&this.setIcon({D:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},N:[{D:"path",j:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z", +fill:"white"}}]});this.G=z;this.U=!1;this.Ry=null;l$(z)?(this.K=g.NQ("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.G.getPlaybackRate().toString()}),this.Y=this.G.getPlaybackRate()):this.Y=this.K=null;this.B=this.G.getAvailablePlaybackRates();this.L(z,"presentingplayerstatechange",this.MD);var T;((T=this.G.getVideoData())==null?0:T.b8())&&this.L(z,"serverstitchedvideochange",this.MD);this.L(this.V.T,"change",function(){e.U=!0;e.MD()}); +this.MD()}; +UIq=function(z,J){var m=wM(J);z.K&&(z.U||J===z.Y)?(z.iz(z.K),z.ws(J.toString())):z.iz(m)}; +knu=function(z){z.nV(z.B.map(wM));z.K=null;z.Y=null;var J=z.G.getPlaybackRate();l$(z.G)&&RDR(z,J);!z.B.includes(J)||z.U?z.iz(z.K):z.iz(wM(J))}; +RDR=function(z,J){z.Y=J;z.K=g.NQ("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:J.toString()});J=z.B.map(wM);J.unshift(z.K);z.nV(J)}; +wM=function(z){return z.toString()}; +l$=function(z){return z.C("web_settings_menu_surface_custom_playback")}; +LXu=function(z){return z.C("web_settings_menu_surface_custom_playback")&&z.C("web_settings_use_input_slider")}; +v1b=function(z,J,m,e){var T=new g.SG(J,void 0,"Video Override");g.jG.call(this,e.text||"",z,J,m,"Video Override",function(){g.bJ(m,T)}); +var E=this;g.FE(this.element,"ytp-subtitles-options-menu-item");this.setting=e.option.toString();z=e.options;this.settings=g.It(z,this.Su,this);this.Y=T;g.u(this,this.Y);J=new g.k2({D:"div",J:"ytp-menuitemtitle",t6:"Allow for a different caption style if specified by the video."},0);g.u(this,J);this.Y.AX(J,!0);this.U=new g.k2({D:"div",J:"ytp-menuitem",j:{role:"menuitemradio",tabindex:"0"},N:[{D:"div",J:"ytp-menuitem-label",t6:"On"}]},-1);g.u(this,this.U);this.Y.AX(this.U,!0);this.L(this.U.element, +"click",function(){Q9E(E,!0)}); +this.K=new g.k2({D:"div",J:"ytp-menuitem",j:{role:"menuitemradio",tabindex:"0"},N:[{D:"div",J:"ytp-menuitem-label",t6:"Off"}]},-2);g.u(this,this.K);this.Y.AX(this.K,!0);this.L(this.K.element,"click",function(){Q9E(E,!1)}); +this.nV(g.Ch(z,this.Su))}; +Q9E=function(z,J){z.publish("settingChange",z.setting+"Override",!J);z.Yu.Zf()}; +qw=function(z,J){g.SG.call(this,z,void 0,"Options");var m=this;this.kH={};for(var e=0;e=0);if(!(J<0||J===z.U)){z.U=J;J=243*z.scale;var m=141*z.scale,e=cmE(z.T,z.U,J);atq(z.bg,e,J,m,!0);z.fh.start()}}; +apj=function(z){var J=z.K;z.type===3&&z.Tf.stop();z.api.removeEventListener("appresize",z.Ry);z.X||J.setAttribute("title",z.S);z.S="";z.K=null;z.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});z.wrapper.style.width=""}; +BJq=function(z){g.U.call(this,{D:"button",Iy:["ytp-watch-later-button","ytp-button"],j:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.fi(z.W()))},N:[{D:"div",J:"ytp-watch-later-icon",t6:"{{icon}}"},{D:"div",J:"ytp-watch-later-title",t6:"Watch later"}]});this.G=z;this.icon=null;this.visible=this.isRequestPending=this.K=!1;upu(z);z.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.L(z,"videoplayerreset",this.onReset);this.L(z,"appresize", +this.dS);this.L(z,"videodatachange",this.dS);this.L(z,"presentingplayerstatechange",this.dS);this.dS();z=this.G.W();var J=g.jO("yt-player-watch-later-pending");z.U&&J?(DPs(),Kdu(this)):this.MD(2);g.qt(this.element,"ytp-show-watch-later-title",g.fi(z));ap(this.G,this.element,this)}; +Sdu=function(z){var J=z.G.getPlayerSize(),m=z.G.W(),e=z.G.getVideoData(),T=g.fi(m)&&g.b8(z.G)&&g.R(z.G.getPlayerStateObject(),128),E=m.S;return m.gW&&J.width>=240&&!e.isAd()&&e.gW&&!T&&!g.J3(e)&&!z.G.isEmbedsShortsMode()&&!E}; +fpu=function(z,J){Qhz(g.Uj(z.G.W()),"wl_button",function(){DPs({videoId:J});window.location.reload()})}; +Kdu=function(z){if(!z.isRequestPending){z.isRequestPending=!0;z.MD(3);var J=z.G.getVideoData();J=z.K?J.removeFromWatchLaterCommand:J.addToWatchLaterCommand;var m=z.G.fB(),e=z.K?function(){z.K=!1;z.isRequestPending=!1;z.MD(2);z.G.W().V&&z.G.B1("WATCH_LATER_VIDEO_REMOVED")}:function(){z.K=!0; +z.isRequestPending=!1;z.MD(1);z.G.W().T&&z.G.Ce(z.element);z.G.W().V&&z.G.B1("WATCH_LATER_VIDEO_ADDED")}; +Qj(m,J).then(e,function(){z.isRequestPending=!1;z.MD(4,"An error occurred. Please try again later.");z.G.W().V&&z.G.B1("WATCH_LATER_ERROR","An error occurred. Please try again later.")})}}; +DHq=function(z,J){if(J!==z.icon){switch(J){case 3:var m=WO();break;case 1:m=ny();break;case 2:m={D:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{D:"path",xQ:!0,J:"ytp-svg-fill",j:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:m={D:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{D:"path", +xQ:!0,j:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}z.updateValue("icon",m);z.icon=J}}; +g.f4=function(){g.P_.apply(this,arguments);this.pG=(this.qt=g.fi(this.api.W()))&&(this.api.W().T||T7()||my());this.KK=48;this.T0=69;this.e2=this.pB=null;this.f9=[];this.R0=this.sL=this.fM=this.ou=this.zB=null;this.zP=[];this.contextMenu=this.lU=this.overflowButton=this.FE=this.Wm=this.searchButton=this.copyLinkButton=this.shareButton=this.t0=this.V$=this.title=this.channelAvatar=this.Ss=this.tooltip=null;this.ON=!1;this.qk=this.pL=this.WZ=this.A1=null;this.JH=this.v3=this.Y9=!1}; +bAq=function(z){var J=z.api.W(),m=g.R(z.api.getPlayerStateObject(),128);return J.U&&m&&!z.api.isFullscreen()}; +$Hq=function(z){if(z.iU()&&!z.api.isEmbedsShortsMode()&&z.FE){var J=z.api.C("web_player_hide_overflow_button_if_empty_menu");!z.t0||J&&!Sdu(z.t0)||QIb(z.FE,z.t0);!z.shareButton||J&&!ZxR(z.shareButton)||QIb(z.FE,z.shareButton);!z.copyLinkButton||J&&!lqq(z.copyLinkButton)||QIb(z.FE,z.copyLinkButton)}else{if(z.FE){J=z.FE;for(var m=g.y(J.actionButtons),e=m.next();!e.done;e=m.next())e.value.detach();J.actionButtons=[]}z.searchButton&&!g.lV(z.V$.element,z.searchButton.element)&&z.searchButton.S4(z.V$.element); +z.t0&&!g.lV(z.V$.element,z.t0.element)&&z.t0.S4(z.V$.element);z.shareButton&&!g.lV(z.V$.element,z.shareButton.element)&&z.shareButton.S4(z.V$.element);z.copyLinkButton&&!g.lV(z.V$.element,z.copyLinkButton.element)&&z.copyLinkButton.S4(z.V$.element)}}; +ghq=function(z,J,m){J=m?J.lastElementChild:J.firstElementChild;for(var e=null;J;){if(WM(J,"display")!=="none"&&J.getAttribute("aria-hidden")!=="true"){var T=void 0;J.tabIndex>=0?T=J:T=ghq(z,J,m);T&&(e?m?T.tabIndex>e.tabIndex&&(e=T):T.tabIndexe/1E3+1)return{msg:"in-the-past"};if(E.isLivePlayback&&!isFinite(e))return{msg:"live-infinite"};(e=J.Vv())&&e.isView()&&(e=e.mediaElement);if(e&&e.Yk().length>12&&g.NL(T))return{msg:"played-ranges"};if(!T.S)return null;if(!Z)return{msg:"no-pvd-formats"};if(!T.S.K||!Z.K)return{msg:"non-dash"};e=Z.videoInfos[0];var c=T.S.videoInfos[0];z.V&&TF(E)&&(e=J.M$(),c= +m.M$());if(!e||!c)return{msg:"no-video-info"};if(z.S&&(vQ(e)||vQ(c)))return{msg:"av1"};J=z.K&&E.pA()&&NU();if(c.containerType!==e.containerType)if(J)E.ph("sgap",{ierr:"container"});else return{msg:"container"};if(z.T&&!J&&(c.rb!==e.rb||c.rb===""||e.rb===""))return{msg:"codec"};if(z.U&&c.video&&e.video&&Math.abs(c.video.width/c.video.height-e.video.width/e.video.height)>.01)return{msg:"ratio"};if(g.NL(E)&&g.NL(T))return{msg:"content-protection"};Z=Z.K[0];T=T.S.K[0];m=Z.audio;var W=T.audio;if(m.sampleRate!== +W.sampleRate&&!g.gS)if(J)E.ph("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:Z.itag,cr:m.sampleRate,ni:T.itag,nr:W.sampleRate};return(m.numChannels||2)!==(W.numChannels||2)?{msg:"channel-count"}:z.Z&&E.pA()&&e.video.fps!==c.video.fps?{msg:"fps"}:null}; +ohE=function(z,J,m){var e=z.getVideoData(),T=J.getVideoData();if(!e.W().supportsGaplessShorts())return{nq:"env"};if(m.Y){if(e.oi&&!e.isAd()||T.oi&&!T.isAd())return{nq:"autoplay"}}else if(e.oi||T.oi)return{nq:"autoplay"};if(!e.X)return{nq:"client"};if(!z.As())return{nq:"no-empty"};z=Ayq(m,z,J,Infinity);return z!=null?{nq:z.msg}:null}; +$6=function(z){g.h.call(this);this.app=z;this.Z=this.U=this.T=this.K=null;this.S=1;this.events=new g.jl(this);this.events.L(this.app.Vx,g.iw("gaplessshortslooprange"),this.X);g.u(this,this.events)}; +jdj=function(){this.U=this.Y=this.S=this.V=this.Z=this.T=this.K=!1}; +hsz=function(z){var J=new jdj;J.K=z.C("h5_gapless_support_types_diff");J.Z=z.C("h5_gapless_error_on_fps_diff");J.V=z.C("html5_gapless_use_format_info_fix");J.S=z.C("html5_gapless_disable_on_av1")&&!z.C("html5_gapless_enable_on_av1");J.T=z.C("html5_gapless_check_codec_diff_strictly");J.Y=z.C("html5_gapless_on_ad_autoplay");J.U=z.C("html5_gapless_disable_diff_aspect_radio");return J}; +g.gM=function(z,J,m,e){e=e===void 0?!1:e;zX.call(this);this.mediaElement=z;this.start=J;this.end=m;this.K=e}; +uCb=function(z,J,m,e,T,E){E=E===void 0?0:E;g.h.call(this);var Z=this;this.policy=z;this.K=J;this.T=m;this.u8=T;this.Z=E;this.U=this.S=null;this.currentVideoDuration=this.Y=-1;this.V=!1;this.Xm=new r7;this.XF=e-J.Kr()*1E3;this.Xm.then(void 0,function(){}); +this.timeout=new g.vl(function(){Z.Cs("timeout")},1E4); +g.u(this,this.timeout);this.X=isFinite(e)||this.u8.W().experiments.j4("html5_pseudogapless_shorts")&&TF(J.getVideoData());this.status={status:0,error:null}}; +trq=function(z){var J,m,e,T,E,Z,c,W,l,w;return g.D(function(q){if(q.K==1){if(z.mF())return q.return(Promise.reject(Error(z.status.error||"disposed")));z.timeout.start();J=g.x6.p6();return g.S(q,z.Xm,2)}g.x6.En("gtfta",J);m=z.K.Vv();if(m.isEnded())return z.Cs("ended_in_finishTransition"),q.return(Promise.reject(Error(z.status.error||"")));if(!z.U||!n2(z.U))return z.Cs("next_mse_closed"),q.return(Promise.reject(Error(z.status.error||"")));if(z.T.Ki()!==z.U)return z.Cs("next_mse_mismatch"),q.return(Promise.reject(Error(z.status.error|| +"")));e=Vrb(z);T=e.ek;E=e.HP;Z=e.KE;z.K.OL(!1,!0);c=PPs(m,T,Z,!z.T.getVideoData().isAd());z.T.setMediaElement(c);(W=z.K.Z8())&&z.T.MH(W.Ig,W.Gr);z.X&&(z.T.seekTo(z.T.getCurrentTime()+.001,{ME:!0,Id:3,i8:"gapless_pseudo"}),c.play(),Aj());l=m.kQ();l.cpn=z.K.getVideoData().clientPlaybackNonce;l.st=""+T;l.et=""+Z;z.T.ph("gapless",l);z.K.ph("gaplessTo",{cpn:z.T.getVideoData().clientPlaybackNonce});w=z.K.getPlayerType()===z.T.getPlayerType();z.K.Nk(E,!0,!1,w,z.T.getVideoData().clientPlaybackNonce);z.T.Nk(z.T.getCurrentTime(), +!0,!0,w,z.K.getVideoData().clientPlaybackNonce);g.Ow(function(){!z.T.getVideoData().wb&&z.T.getPlayerState().isOrWillBePlaying()&&z.T.RX()}); +Mw(z,6);z.dispose();return q.return(Promise.resolve())})}; +kzu=function(z){if(z.T.getVideoData().S){var J=z.u8.W().C("html5_gapless_suspend_next_loader")&&z.Z===1;z.T.XS(z.U,J,HAq(z));Mw(z,3);UHb(z);var m=Rsj(z);J=m.gX;m=m.ZE;J.subscribe("updateend",z.N0,z);m.subscribe("updateend",z.N0,z);z.N0(J);z.N0(m)}}; +UHb=function(z){z.K.unsubscribe("internalvideodatachange",z.Hu,z);z.T.unsubscribe("internalvideodatachange",z.Hu,z);z.u8.W().C("html5_gapless_use_format_info_fix")&&(z.K.unsubscribe("internalvideoformatchange",z.Hu,z),z.T.unsubscribe("internalvideoformatchange",z.Hu,z));z.K.unsubscribe("mediasourceattached",z.Hu,z);z.T.unsubscribe("statechange",z.IK,z)}; +PPs=function(z,J,m,e){z=z.isView()?z.mediaElement:z;return new g.gM(z,J,m,e)}; +Mw=function(z,J){J<=z.status.status||(z.status={status:J,error:null},J===5&&z.Xm.resolve())}; +HAq=function(z){return z.u8.W().C("html5_gapless_no_clear_buffer_timeline")&&z.Z===1&&Fr(z.K.getVideoData())}; +Vrb=function(z){var J=z.K.Vv();J=J.isView()?J.start:0;var m=z.K.getVideoData().isLivePlayback?Infinity:z.K.YV(!0);m=Math.min(z.XF/1E3,m)+J;var e=z.X?100:0;z=m-z.T.Ap()+e;return{iE:J,ek:z,HP:m,KE:Infinity}}; +Rsj=function(z){return{gX:z.S.K.Ul,ZE:z.S.T.Ul}}; +At=function(z){g.h.call(this);var J=this;this.app=z;this.Z=this.T=this.K=null;this.X=!1;this.S=this.U=null;this.V=hsz(this.app.W());this.Y=function(){g.Ow(function(){Ldj(J)})}}; +Qdb=function(z,J,m,e,T){e=e===void 0?0:e;T=T===void 0?0:T;z.As()||oM(z);z.U=new r7;z.K=J;var E=m,Z=T===0;Z=Z===void 0?!0:Z;var c=z.app.W1(),W=c.getVideoData().isLivePlayback?Infinity:c.YV(!0)*1E3;E>W&&(E=W-200,z.X=!0);Z&&c.getCurrentTime()>=E/1E3?z.Y():(z.T=c,Z&&(Z=E,E=z.T,z.app.Vx.addEventListener(g.F8("vqueued"),z.Y),Z=isFinite(Z)||Z/1E3>E.getDuration()?Z:0x8000000000000,z.Z=new g.Ec(Z,0x8000000000000,{namespace:"vqueued"}),E.addCueRange(z.Z)));Z=e/=1E3;E=J.getVideoData().K;e&&E&&z.T&&(c=e,W=0, +J.getVideoData().isLivePlayback&&(Z=Math.min(m/1E3,z.T.YV(!0)),W=Math.max(0,Z-z.T.getCurrentTime()),c=Math.min(e,J.YV()+W)),Z=m4q(E,c)||e,Z!==e&&z.K.ph("qvaln",{st:e,at:Z,rm:W,ct:c}));J=Z;e=z.K;e.getVideoData().yv=!0;e.getVideoData().X=!0;e.MF(!0);E={};z.T&&(E=z.T.Wt(),Z=z.T.getVideoData().clientPlaybackNonce,E={crt:(E*1E3).toFixed(),cpn:Z});e.ph("queued",E);J!==0&&e.seekTo(J+.01,{ME:!0,Id:3,i8:"videoqueuer_queued"});z.S=new uCb(z.V,z.app.W1(),z.K,m,z.app,T);m=z.S;m.status.status!==Infinity&&(Mw(m, +1),m.K.subscribe("internalvideodatachange",m.Hu,m),m.T.subscribe("internalvideodatachange",m.Hu,m),m.u8.W().C("html5_gapless_use_format_info_fix")&&(m.K.subscribe("internalvideoformatchange",m.Hu,m),m.T.subscribe("internalvideoformatchange",m.Hu,m)),m.K.subscribe("mediasourceattached",m.Hu,m),m.T.subscribe("statechange",m.IK,m),m.K.subscribe("newelementrequired",m.CE,m),m.Hu());return z.U}; +Ldj=function(z){var J,m,e,T,E,Z,c,W,l;g.D(function(w){switch(w.K){case 1:if(z.mF()||!z.U||!z.K)return w.return();z.X&&z.app.W1().Vi(!0,!1);m=z.app.W().C("html5_force_csdai_gapful_transition")&&((J=z.app.W1())==null?void 0:J.getVideoData().isDaiEnabled());e=null;if(!z.S||m){w.U2(2);break}g.Yu(w,3);return g.S(w,trq(z.S),5);case 5:g.aq(w,2);break;case 3:e=T=g.Kq(w);case 2:if(!z.K)return w.return();g.x6.ZQ("vqsp",function(){z.app.E6(z.K)}); +if(!z.K)return w.return();E=z.K.Vv();z.app.W().C("html5_gapless_seek_on_negative_time")&&E&&E.getCurrentTime()<-.01&&z.K.seekTo(0);g.x6.ZQ("vqpv",function(){z.app.playVideo()}); +if(e||m)z.K?(Z=e?e.message:"forced",(c=z.T)==null||c.ph("gapfulfbk",{r:Z}),z.K.At(Z)):(W=z.T)==null||W.ph("gapsp",{});l=z.U;oM(z);l&&l.resolve();return w.return(Promise.resolve())}})}; +oM=function(z,J){J=J===void 0?!1:J;if(z.T){if(z.Z){var m=z.T;z.app.Vx.removeEventListener(g.F8("vqueued"),z.Y);m.removeCueRange(z.Z)}z.T=null;z.Z=null}z.S&&(z.S.status.status!==6&&(m=z.S,m.status.status!==Infinity&&m.Z!==1&&m.Cs("Canceled")),z.S=null);z.U=null;z.K&&!J&&z.K!==z.app.Kq()&&z.K!==z.app.W1()&&z.K.vu();z.K&&J&&z.K.i7();z.K=null;z.X=!1}; +vhE=function(z){var J;return((J=z.S)==null?void 0:J.currentVideoDuration)||-1}; +sdu=function(z,J,m){if(z.As())return"qie";if(z.K==null||z.K.Z0()||z.K.getVideoData()==null)return"qpd";if(J.videoId!==z.K.uF())return"vinm";if(vhE(z)<=0)return"ivd";if(m!==1)return"upt";if((m=z.S)==null)z=void 0;else if(m.getStatus().status!==5)z="niss";else if(Ayq(m.policy,m.K,m.T,m.XF)!=null)z="pge";else{J=Rsj(m);z=J.gX;var e=J.ZE;J=g.dv(m.u8.W().experiments,"html5_shorts_gapless_next_buffer_in_seconds");m=m.Y+J;e=l1(e.eC(),m);z=l1(z.eC(),m);z=!(J>0)||e&&z?null:"neb"}return z!=null?z:null}; +ryq=function(){g.wF.call(this);var z=this;this.fullscreen=0;this.U=this.S=this.pictureInPicture=this.K=this.T=this.inline=!1;this.Z=function(){z.Yi()}; +kG1(this.Z);this.Y=this.getVisibilityState(this.Q$(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Hz(),this.wp(),this.m3(),this.HW())}; +W7=function(z){return!(z.isMinimized()||z.isInline()||z.isBackground()||z.Hz()||z.wp()||z.m3()||z.HW())}; +g.jH=function(z){this.yx=z;this.videoData=this.playerState=null}; +g.ht=function(z,J){g.h.call(this);this.yx=z;this.S={};this.vW=this.T=this.Z=null;this.K=new g.jH(z);z.C("web_player_present_empty")&&(this.T=this.K);this.U=J}; +T31=function(z){var J=z.experiments,m=J.j4.bind(J);znq=m("html5_use_async_stopVideo");JUb=m("html5_pause_for_async_stopVideo");mZE=m("html5_not_reset_media_source");m("html5_listen_for_audio_output_changed")&&($oq=!0);Y_=m("html5_not_reset_media_source");enu=m("html5_not_reset_media_source");p2=m("html5_retain_source_buffer_appends_for_debugging");Vdq=m("web_watch_pip");m("html5_mediastream_applies_timestamp_offset")&&(Xt=!0);var e=g.dv(J,"html5_cobalt_override_quic");e&&Iw("QUIC",+(e>0));(e=g.dv(J, +"html5_cobalt_audio_write_ahead_ms"))&&Iw("Media.AudioWriteDurationLocal",e);(e=m("html5_cobalt_enable_decode_to_texture"))&&Iw("Media.PlayerConfiguration.DecodeToTexturePreferred",e?1:0);(z.AZ()||m("html5_log_cpu_info"))&&Hlq();Error.stackTraceLimit=50;var T=g.dv(J,"html5_idle_rate_limit_ms");T&&Object.defineProperty(window,"requestIdleCallback",{value:function(E){return window.setTimeout(E,T)}}); +b5q(z.Z);BX=m("html5_use_ump_request_slicer");nm1=m("html5_record_now");m("html5_disable_streaming_xhr")&&(rK=!1);m("html5_byterate_constraints")&&(FU=!0);m("html5_use_non_active_broadcast_for_post_live")&&(La=!0);m("html5_sunset_aac_high_codec_family")&&(Ue["141"]="a");m("html5_enable_encrypted_av1")&&(QD=!0)}; +E9E=function(z){return z.slice(12).replace(/_[a-z]/g,function(J){return J.toUpperCase().replace("_","")}).replace("Dot",".")}; +ZDb=function(z){var J={},m;for(m in z.experiments.flags)if(m.startsWith("cobalt_h5vcc")){var e=E9E(m),T=g.dv(z.experiments,m);e&&T&&(J[e]=Iw(e,T))}return J}; +u$=function(z,J,m,e,T){T=T===void 0?[]:T;g.h.call(this);this.yx=z;this.Wd=J;this.U=m;this.segments=T;this.K=void 0;this.T=new Map;T.length&&(this.K=T[0])}; +FL4=function(z){if(!(z.segments.length<2)){var J=z.segments.shift();if(J){var m=J.K,e=[];if(m.size){m=g.y(m.values());for(var T=m.next();!T.done;T=m.next()){T=g.y(T.value);for(var E=T.next();!E.done;E=T.next()){E=E.value;for(var Z=g.y(E.segments),c=Z.next();!c.done;c=Z.next())(c=Vb(c.value))&&e.push(c);E.removeAll()}}}(m=Vb(J))&&e.push(m);e=g.y(e);for(m=e.next();!m.done;m=e.next())z.T.delete(m.value);J.dispose()}}}; +Pa=function(z,J,m,e){if(!z.K||J>m)return!1;J=new u$(z.yx,J,m,z.K,e);e=g.y(e);for(m=e.next();!m.done;m=e.next()){m=m.value;var T=Vb(m);T&&T!==Vb(z.K)&&z.T.set(T,[m])}z=z.K;z.K.has(J.nZ())?z.K.get(J.nZ()).push(J):z.K.set(J.nZ(),[J]);return!0}; +R5=function(z,J){return z.T.get(J)}; +iDb=function(z,J,m){z.T.set(J,m)}; +tt=function(z,J,m,e,T,E){return new cUE(m,m+(e||0),!e,J,z,T,E)}; +cUE=function(z,J,m,e,T,E,Z){g.h.call(this);this.Wd=z;this.S=J;this.T=m;this.type=e;this.U=T;this.videoData=E;this.m9=Z;this.K=new Map;Cn(E)}; +Vb=function(z){return z.videoData.clientPlaybackNonce}; +WLu=function(z){if(z.K.size)for(var J=g.y(z.K.values()),m=J.next();!m.done;m=J.next()){m=g.y(m.value);for(var e=m.next();!e.done;e=m.next())e.value.dispose()}z.K.clear()}; +lGz=function(z){this.end=this.start=z}; +g.Ha=function(){this.K=new Map;this.S=new Map;this.T=new Map}; +g.UV=function(z,J,m,e){g.h.call(this);var T=this;this.api=z;this.yx=J;this.playback=m;this.app=e;this.Gf=new g.Ha;this.T=new Map;this.Y=[];this.Z=[];this.S=new Map;this.Rs=new Map;this.V=new Map;this.ND=null;this.OC=NaN;this.GS=this.ub=null;this.gE=new g.vl(function(){wiu(T,T.OC,T.ub||void 0)}); +this.events=new g.jl(this);this.tZ=15E3;this.x3=new g.vl(function(){T.Qx=!0;T.playback.t5(T.tZ);qZq(T);if(T.playback.getVideoData().b8()){var E;T.fq({togab:(E=T.fh)==null?void 0:E.identifier})}T.Vu(!1)},this.tZ); +this.Qx=!1;this.X=new Map;this.yH=[];this.fh=null;this.IT=new Set;this.h6=[];this.l8=[];this.qx=[];this.OD=[];this.K=void 0;this.wb=0;this.qD=!0;this.B=!1;this.Lh=[];this.O2=new Set;this.Zo=new Set;this.yv=new Set;this.by=0;this.nh=new Set;this.Wr=0;this.pJ=this.ED=!1;this.SE=this.U="";this.Tf=null;this.logger=new g.ZM("dai");this.So={AT1:function(){return T.T}, +zS3:function(){return T.Y}, +g$F:function(){return T.S}, +sR:function(E){T.onCueRangeEnter(T.T.get(E))}, +JTi:function(E){T.onCueRangeExit(T.T.get(E))}, +dFx:function(E,Z){T.T.set(E,Z)}, +yfh:function(E){T.SE=E}, +xV:function(){return T.xV()}, +umh:function(E){return T.V.get(E)}, +bjb:function(){return T.Tf}}; +this.playback.getPlayerType();this.playback.A5(this);this.Hd=this.yx.AZ();g.u(this,this.gE);g.u(this,this.events);g.u(this,this.x3);this.events.L(this.api,g.F8("serverstitchedcuerange"),this.onCueRangeEnter);this.events.L(this.api,g.iw("serverstitchedcuerange"),this.onCueRangeExit)}; +piq=function(z,J,m,e,T,E,Z,c,W){if(z.yx.C("html5_ignore_ads_after_noadresponse")&&W&&z.IT.has(W))return RM(z,{reason:"addafternoad",cueid:W}),"";W=dZs(z,E,E+T);z.Qx&&z.fq({adaftto:1});m||z.fq({missadcon:1,enter:E,len:T,aid:c});z.Ry&&!z.Ry.je&&(z.Ry.je=c);z.pJ&&z.fq({adfbk:1,enter:E,len:T,aid:c});var l=z.playback;Z=Z===void 0?E+T:Z;E===Z&&!T&&z.yx.C("html5_allow_zero_duration_ads_on_timeline")&&z.fq({attl0d:1});E>Z&&RM(z,{reason:"enterTime_greater_than_return",Wd:E,GB:Z});var w=l.JX()*1E3;El&&RM(z,{reason:"parent_return_greater_than_content_duration",GB:Z,Lw1:l});l=null;w=g.cu(z.Z,{GB:E},function(q,d){return q.GB-d.GB}); +w>=0&&(l=z.Z[w],l.GB>E&&IGz(z,J.video_id||"",E,Z,l));if(W&&l)for(w=0;w.5&&z.fq({ttdtb:1,delta:Z,cpn:T.cpn,enter:J.adCpn,exit:m.adCpn,seek:e,skip:E});z.api.C("html5_ssdai_enable_media_end_cue_range")&&z.api.AT();if(J.isAd&&m.isAd){T=!!E;if(J.adCpn&&m.adCpn){var c=z.S.get(J.adCpn);var W=z.S.get(m.adCpn)}T?z.fq({igtransskip:1,enter:J.adCpn,exit:m.adCpn,seek:e,skip:E}):va(z,W,c,m.lz,J.lz,e,T)}else if(!J.isAd&&m.isAd){z.SE=T.cpn;z.api.publish("serverstitchedvideochange");c=L4(z,"a2c");z.fq(c); +z.by=0;if(c=m.FQ)z.wb=c.end;var l;m.adCpn&&(l=z.S.get(m.adCpn));l&&z.playback.ZN(l,T,m.lz,J.lz,e,!!E)}else if(J.isAd&&!m.isAd){var w;J.adCpn&&(w=z.S.get(J.adCpn));w&&(z.wb=0,z.SE=w.cpn,Qb(z,w),l=L4(z,"c2a",w),z.fq(l),z.by=1,z.playback.ZN(T,w,m.lz,J.lz,e,!!E))}}; +rM=function(z,J,m){m=m===void 0?0:m;var e=g.cu(z.Z,{Wd:(J+m)*1E3},function(c,W){return c.Wd-W.Wd}); +e=e<0?(e+2)*-1:e;if(e>=0)for(var T=J*1E3,E=e;E<=e+1&&E=Z.Wd-m*1E3&&T<=Z.GB+m*1E3)return{yc:Z,vQ:J}}return{yc:void 0,vQ:J}}; +N3q=function(z,J){var m="";(J=yUE(z,J))&&(m=J.getId());return m?z.S.get(m):void 0}; +yUE=function(z,J){if(z.SE){var m=z.T.get(z.SE);if(m&&m.start-200<=J&&m.end+200>=J)return m}z=g.y(z.T.values());for(m=z.next();!m.done;m=z.next())if(m=m.value,m.start<=J&&m.end>=J)return m}; +wiu=function(z,J,m){var e=z.GS||z.app.W1().getPlayerState();zB(z,!0);z.playback.seekTo(J,m);z=z.app.W1();J=z.getPlayerState();e.isOrWillBePlaying()&&!J.isOrWillBePlaying()?z.playVideo():e.isPaused()&&!J.isPaused()&&z.pauseVideo()}; +zB=function(z,J){z.OC=NaN;z.ub=null;z.gE.stop();z.ND&&J&&z.ND.CR();z.GS=null;z.ND=null}; +Ghf=function(z){var J=J===void 0?-1:J;var m=m===void 0?Infinity:m;for(var e=[],T=g.y(z.Z),E=T.next();!E.done;E=T.next())E=E.value,(E.Wdm)&&e.push(E);z.Z=e;e=g.y(z.T.values());for(T=e.next();!T.done;T=e.next())T=T.value,T.start>=J&&T.end<=m&&(z.playback.removeCueRange(T),z.T.delete(T.getId()),z.fq({rmAdCR:1}));e=rM(z,J/1E3);J=e.yc;e=e.vQ;if(J&&(e=e*1E3-J.Wd,T=J.Wd+e,J.durationMs=e,J.GB=T,e=z.T.get(J.cpn))){T=g.y(z.Y);for(E=T.next();!E.done;E=T.next())E=E.value,E.start===e.end?E.start=J.Wd+ +J.durationMs:E.end===e.start&&(E.end=J.Wd);e.start=J.Wd;e.end=J.Wd+J.durationMs}if(J=rM(z,m/1E3).yc){var Z;e="playback_timelinePlaybackId_"+J.P7+"_video_id_"+((Z=J.videoData)==null?void 0:Z.videoId)+"_durationMs_"+J.durationMs+"_enterTimeMs_"+J.Wd+"_parentReturnTimeMs_"+J.GB;z.YA("Invalid_clearEndTimeMs_"+m+"_that_falls_during_"+e+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; +Xiu=function(z){z.Gf.clearAll();z.T.clear();z.Y=[];z.Z=[];z.S.clear();z.Rs.clear();z.V.clear();z.X.clear();z.yH=[];z.fh=null;z.IT.clear();z.h6=[];z.l8=[];z.qx=[];z.OD=[];z.Lh=[];z.O2.clear();z.Zo.clear();z.yv.clear();z.nh.clear();z.Qx=!1;z.K=void 0;z.wb=0;z.qD=!0;z.B=!1;z.by=0;z.Wr=0;z.ED=!1;z.pJ=!1;z.U="";z.x3.isActive()&&k6(z)}; +YZs=function(z,J,m,e,T,E){if(!z.pJ)if(g.n9z(z,m))z.fq({gdu:"undec",seg:m,itag:T});else if(J=JI(z,J,m,e,E),!(z.playback.getVideoData().b8()&&(J==null?0:J.GD)))return J}; +JI=function(z,J,m,e,T){var E=z.X.get(m);if(!E){if(E=CDu(z,J))return E;J=z.FP(m-1,e!=null?e:2);if(T)return z.fq({misscue:T,sq:m,type:e,prevsstate:J==null?void 0:J.jA,prevrecord:z.X.has(m-1)}),z.X.get(m-1);if((J==null?void 0:J.jA)===2)return z.fq({adnf:1,sq:m,type:e,prevrecord:z.X.has(m-1)}),z.X.get(m-1)}return E}; +CDu=function(z,J){J+=z.Bz();if(z.playback.getVideoData().b8())a:{var m=1;m=m===void 0?0:m;var e=J*1E3;z=g.y(z.Z);for(var T=z.next();!T.done;T=z.next()){T=T.value;var E=T.rJ?T.rJ*1E3:T.Wd;if(e>=T.Wd-m*1E3&&e<=E+T.durationMs+m*1E3){e={yc:T,vQ:J};break a}}e={yc:void 0,vQ:J}}else e=rM(z,J),((m=e)==null?0:m.yc)||(e=rM(z,J,1));var Z;return(Z=e)==null?void 0:Z.yc}; +aGs=function(z,J){J=J===void 0?"":J;var m=il(J)||void 0;if(!J||!m){var e;z.fq({adcfg:(e=J)==null?void 0:e.length,dcfg:m==null?void 0:m.length})}return m}; +KLq=function(z){if(z.Lh.length)for(var J=g.y(z.Lh),m=J.next();!m.done;m=J.next())z.onCueRangeExit(m.value);J=g.y(z.T.values());for(m=J.next();!m.done;m=J.next())z.playback.removeCueRange(m.value);J=g.y(z.Y);for(m=J.next();!m.done;m=J.next())z.playback.removeCueRange(m.value);z.T.clear();z.Y=[];z.Gf.clearAll();z.K||(z.qD=!0)}; +va=function(z,J,m,e,T,E,Z){if(J&&m){z.SE=m.cpn;Qb(z,m);var c=L4(z,"a2a",m);z.fq(c);z.by++;z.playback.ZN(J,m,e||0,T||0,!!E,!!Z)}else z.fq({misspbkonadtrans:1,enter:(m==null?void 0:m.cpn)||"",exit:(J==null?void 0:J.cpn)||"",seek:E,skip:Z})}; +SZz=function(z,J,m,e){if(e)for(e=0;em){var E=T.end;T.end=J;B3j(z,m,E)}else if(T.start>=J&&T.startm)T.start=m;else if(T.end>J&&T.end<=m&&T.start=J&&T.end<=m){z.playback.removeCueRange(T);if(z.Lh.includes(T))z.onCueRangeExit(T);z.Y.splice(e,1);continue}e++}else B3j(z,J,m)}; +B3j=function(z,J,m){J=z.Kd(J,m);m=!0;g.qi(z.Y,J,function(Z,c){return Z.start-c.start}); +for(var e=0;e0){var T=z.Y[e],E=z.Y[e-1];if(Math.round(E.end/1E3)>=Math.round(T.start/1E3)){E.end=T.end;T!==J?z.playback.removeCueRange(T):m=!1;z.Y.splice(e,1);continue}}e++}if(m)for(z.playback.addCueRange(J),J=z.playback.YX("serverstitchedcuerange",36E5),J=g.y(J),m=J.next();!m.done;m=J.next())z.T.delete(m.value.getId())}; +mf=function(z,J,m){if(m===void 0||!m){m=g.y(z.yH);for(var e=m.next();!e.done;e=m.next()){e=e.value;if(J>=e.start&&J<=e.end)return;if(J===e.end+1){e.end+=1;return}}z.yH.push(new lGz(J))}}; +g.n9z=function(z,J){z=g.y(z.yH);for(var m=z.next();!m.done;m=z.next())if(m=m.value,J>=m.start&&J<=m.end)return!0;return!1}; +eE=function(z,J,m){var e;if(e=z.playback.getVideoData().b8()||z.yx.C("html5_ssdai_extent_last_unfinished_ad_cue_range"))e=(e=z.S.get(J))&&e.WX?(z=z.V.get(e==null?void 0:e.WX))&&z.slice(-1)[0].cpn===J:!1;return e&&m===2?1E3:0}; +IGz=function(z,J,m,e,T){var E;J={reason:"overlapping_playbacks",hPx:J,Wd:m,GB:e,C7z:T.P7,VBx:((E=T.videoData)==null?void 0:E.videoId)||"",i31:T.durationMs,hSn:T.Wd,E$z:T.GB};RM(z,J)}; +RM=function(z,J,m){z.playback.oe(J,m)}; +fGb=function(z,J){var m=[];z=z.V.get(J);if(!z)return[];z=g.y(z);for(J=z.next();!J.done;J=z.next())J=J.value,J.cpn&&m.push(J.cpn);return m}; +DZq=function(z,J,m){var e=0;z=z.V.get(m);if(!z)return-1;z=g.y(z);for(m=z.next();!m.done;m=z.next()){if(m.value.cpn===J)return e;e++}return-1}; +bDq=function(z,J){var m=0;z=z.V.get(J);if(!z)return 0;z=g.y(z);for(J=z.next();!J.done;J=z.next())J=J.value,J.durationMs!==0&&J.GB!==J.Wd&&m++;return m}; +$Zb=function(z,J,m){var e=!1;if(m&&(m=z.V.get(m))){m=g.y(m);for(var T=m.next();!T.done;T=m.next())T=T.value,T.durationMs!==0&&T.GB!==T.Wd&&(T=T.cpn,J===T&&(e=!0),e&&!z.Zo.has(T)&&(z.fq({decoratedAd:T}),z.Zo.add(T)))}}; +qZq=function(z){z.Hd&&z.fq({adf:"0_"+((new Date).getTime()/1E3-z.Wr)+"_isTimeout_"+z.Qx})}; +dZs=function(z,J,m){if(z.h6.length)for(var e=g.y(z.h6),T=e.next(),E={};!T.done;E={Un:void 0},T=e.next()){E.Un=T.value;T=E.Un.startSecs*1E3;var Z=E.Un.zt*1E3+T;if(J>T&&JT&&m0&&e>J*1E3+z.Kb2)&&(e=PDf(z,m))){J=!1;m=void 0;e=g.y(e.segments);for(T=e.next();!T.done;T=e.next()){T=T.value;if(J){m=T;break}Vb(T)===z.SE&&(J=!0)}e=void 0;if(m)e=Vb(m);else if(J){var E;e=(E=z.timeline.K)==null?void 0:Vb(E)}if(e)z.finishSegmentByCpn(z.SE,e,2,void 0);else{var Z;z.api.ph("ssap",{mfnc:1,mfncc:(Z=z.timeline.K)== +null?void 0:Vb(Z)})}}}}; +hn4=function(z){return z.api.C("html5_force_ssap_gapful_switch")||z.api.C("html5_ssap_enable_legacy_browser_logic")&&!NU()}; +Rnu=function(z,J,m,e){z.K6.set(J,e);HD1(z,J,m);UZq(z,m)}; +Mv=function(z,J){z=R5(z.timeline,J);return(z==null?0:z.length)?z[0].nZ():0}; +Ap=function(z,J){var m=m===void 0?!1:m;var e=z.timeline.K;if(!e)return{clipId:"",YF:0};var T=khb(z,J,m);if(T)return{clipId:Vb(T)||"",YF:T.nZ()};z.api.ph("mci",{cs:Vb(e),mt:J,tl:mq(z),invt:!!m});return{clipId:"",YF:0}}; +tH=function(z){var J=z.timeline.K;if(!J)return 0;z=0;if(J.K.size===0)return(J.Ri()-J.nZ())/1E3;J=J.K.values();J=g.y(J);for(var m=J.next();!m.done;m=J.next()){m=g.y(m.value);for(var e=m.next();!e.done;e=m.next())e=e.value,z+=(e.Ri()-e.nZ())/1E3}return z}; +QH1=function(z,J){return(z=LLu(z,J*1E3))?z.nZ():0}; +v9u=function(z,J){var m=R5(z.timeline,J);J=0;if(m==null?0:m.length)for(z=g.y(m),m=z.next();!m.done;m=z.next())m=m.value,J+=(m.Ri()-m.nZ())/1E3;else return tH(z);return J}; +LLu=function(z,J){if(z=R5(z.timeline,z.SE)){z=g.y(z);for(var m=z.next();!m.done;m=z.next())if(m=m.value,m.nZ()<=J&&m.Ri()>=J)return m}}; +sH1=function(z){var J=z.playback.getVideoData();z.SE&&(z=z.RV.get(z.SE))&&(J=z);return J}; +PDf=function(z,J,m){m=m===void 0?!1:m;var e=z.timeline.K;if(e){e=e.K;var T=Array.from(e.keys());g.l9(T);J=g.cu(T,J);J=e.get(T[J<0?(J+2)*-1:J]);if(!m&&J){m=g.y(J);for(J=m.next();!J.done;J=m.next())if(J=J.value,J.nZ()!==J.Ri())return J;return z.timeline}return J&&J.length>0?J[J.length-1]:void 0}}; +khb=function(z,J,m){m=m===void 0?!1:m;var e=PDf(z,J,m);if(e){if(z=e.segments,z.length){for(var T=g.y(z),E=T.next();!E.done;E=T.next())if(E=E.value,E.nZ()<=J&&E.Ri()>J)return E;if(m&&e.nZ()===e.Ri())return z[0]}}else z.api.ph("ssap",{ctnf:1})}; +o9R=function(z,J){var m;if(z.o2)for(m=z.hK.shift();m&&m!==z.o2;)m=z.hK.shift();else m=z.hK.shift();if(m){if(z.KV.has(m))rUj(z,m);else if(J===3||J===4)z.OH.stop(),z.api.playVideo(1,z.api.C("html5_ssap_keep_media_on_finish_segment"));z.K6.set(z.SE,J);z.api.ph("ssap",{onvftn:1});UZq(z,m);return!1}z.api.ph("ssap",{onvftv:1});z.OH.stop();return!0}; +rUj=function(z,J){J=R5(z.timeline,J);if(J==null?0:J.length)z.api.pauseVideo(),z.OH.start(J[0].m9)}; +UZq=function(z,J){var m=z.playback.getVideoData(),e=m.clientPlaybackNonce;z.h$&&(z.events.hX(z.h$),z.h$=null,z.playback.Ie());var T=z.SE,E=!1;if(T==="")T=e,E=!0;else if(T===void 0){var Z=z.playback.WP();Z&&z.timeline.T.has(Z)&&(T=Z);z.api.ph("ssap",{mcc:T+";"+J});z.playback.Br(new Sl("ssap.timelineerror",{e:"missing_current_cpn",pcpn:T,ccpn:J}))}if(T===J)E&&m&&z0f(z,m,E);else{Z=z.K6.get(T);if(!E&&(!Z||Z!==3&&Z!==5&&Z!==6&&Z!==7)){var c=z.api.AT(z.SE);z.api.ph("ssap",{nmec:c,cpc:z.SE,ec:J})}Z&&Z!== +2||z.Ly();z.SE=J;z.Ly();J=R5(z.timeline,z.SE);if(J==null?0:J.length){J=J[0];c=J.getType();T!==e&&(z.Pi=T,m=z.RV.get(T));Z?z.K6.delete(T):Z=E?1:2;z.api.C("html5_ssap_pacf_qoe_ctmp")&&c===2&&!J.T&&(z.h$=z.events.L(z.api,"onVideoProgress",z.OZx));z.api.ph("ssapt",{ostro:Z,pcpn:T,ccpn:z.SE});a:{var W=z.SE;if(!z.AJ.has(W))for(var l=g.y(z.AJ),w=l.next();!w.done;w=l.next()){var q=g.y(w.value);w=q.next().value;q=q.next().value;if(q.getId().includes(W)){W=w;break a}}}l=z.api.W().C("html5_ssap_insert_su_before_nonvideo")&& +W!==z.SE;z.playback.DE(W,l);W=Math.max(0,TB(z,T));l=z.playback.getCurrentTime();l=Math.max(0,l-Mv(z,z.SE)/1E3);w=J.getVideoData();q=Z===3||Z===5||Z===6||Z===7;if(z.api.C("html5_ssap_skip_illegal_seeking")){var d=z.playback.getPlayerState();d=!g.R(d,8)&&g.R(d,16);q=q||d;d&&z.api.ph("ssap",{iis:1})}z.playback.zF(T,z.SE,W,l,!1,q,z.playback.getPlayerState(),!0);z.api.ph("ssapt",{ostri:Z,pcpn:T,ccpn:z.SE});var I;z.playback.N2(T,z.SE,e,w,(I=z.t$.get(T))!=null?I:(0,g.b5)(),m);z.t$.delete(T);E?m=void 0:m|| +z.api.ph("ssap",{pvdm:T+";"+z.SE,pvdmc:z.SE===e?"1":"0"});z.api.ph("ssap",{tpac:T+";"+z.SE,tpcc:e,tpv:(w==null?0:w.pZ())?"1":"0"},!1,1);z.api.W().C("html5_ssap_cleanup_player_switch_ad_player")&&z.api.RD();z.api.publish("videodatachange","newdata",w,c,m,Z);J.T||z.playback.getVideoData().publish("dataupdated");z.KV.delete(T);z.o2="";w&&c===1?z0f(z,w):z.playback.ph("ssap",{nis:z.SE});c===2?z.by++:z.by=0}}}; +z0f=function(z,J,m){m=m===void 0?!1:m;if(J.startSeconds&&z.CO){var e=J.startSeconds;J=R5(z.timeline,J.clientPlaybackNonce);if(J==null?0:J.length)e+=J[0].nZ()/1E3,z.api.C("htm5_ssap_ignore_initial_seek_if_too_big")&&e>=z.iD()||(z.playback.seekTo(e,{dX:!0}),z.CO=!1,z.playback.ph("ssap",{is:z.SE,co:m?"1":"0",tse:e.toFixed()}))}}; +HD1=function(z,J,m){J=R5(z.timeline,J);if(J!=null&&J.length&&(J=PDf(z,J[0].nZ()))){J=g.y(J.segments);for(var e=J.next();!e.done;e=J.next()){e=e.value;if(Vb(e)===m)break;if(e=Vb(e)){var T=z.AJ.get(e);T&&z.playback.removeCueRange(T);z.AJ.delete(e)}}}}; +of=function(z){return z.playback.getVideoData().clientPlaybackNonce}; +jsq=function(z,J){if(z.sK&&z.SE!==J)return!1;if(z.Lb)return!0;if(J=z.AJ.get(J))if(J=J.getId().split(","),J.length>1)for(var m=0;mE)return Eo(z,"enterAfterReturn enterTimeMs="+T+" is greater than parentReturnTimeMs="+E.toFixed(3),Z,c),"";var l=W.JX()*1E3;if(Tl)return W="returnAfterDuration parentReturnTimeMs="+E.toFixed(3)+" is greater than parentDurationMs="+l+". And timestampOffset in seconds is "+ +W.Kr(),Eo(z,W,Z,c),"";l=null;for(var w=g.y(z.T),q=w.next();!q.done;q=w.next()){q=q.value;if(T>=q.Wd&&Tq.Wd)return Eo(z,"overlappingReturn",Z,c),"";if(E===q.Wd)return Eo(z,"outOfOrder",Z,c),"";T===q.GB&&(l=q)}Z="cs_childplayback_"+e0q++;c={FQ:Z2(e,!0),XF:Infinity,target:null};var d={P7:Z,playerVars:J,playerType:m,durationMs:e,Wd:T,GB:E,eN:c};z.T=z.T.concat(d).sort(function(G,n){return G.Wd-n.Wd}); +l?T_q(z,l,{FQ:Z2(l.durationMs,!0),XF:l.eN.XF,target:d}):(J={FQ:Z2(T,!1),XF:T,target:d},z.Z.set(J.FQ,J),W.addCueRange(J.FQ));J=!0;if(z.K===z.app.W1()&&(W=W.getCurrentTime()*1E3,W>=d.Wd&&WJ)break;if(E>J)return{yc:e,vQ:J-T};m=E-e.GB/1E3}return{yc:null,vQ:J-m}}; +JEE=function(z,J,m){m=m===void 0?{}:m;var e=z.Y||z.app.W1().getPlayerState();cE(z,!0);J=isFinite(J)?J:z.K.OS();var T=WDq(z,J);J=T.vQ;var E=(T=T.yc)&&!FY(z,T)||!T&&z.K!==z.app.W1(),Z=J*1E3;Z=z.S&&z.S.start<=Z&&Z<=z.S.end;!E&&Z||ib(z);T?Exu(z,T,J,m,e):lVz(z,J,m,e)}; +lVz=function(z,J,m,e){var T=z.K;T!==z.app.W1()&&z.app.rU();T.seekTo(J,Object.assign({},{i8:"application_timelinemanager"},m));wbb(z,e)}; +Exu=function(z,J,m,e,T){var E=FY(z,J);if(!E){J.playerVars.prefer_gapless=!0;z.yx.C("html5_enable_ssap_entity_id")&&(J.playerVars.cached_load=!0);var Z=new g.H$(z.yx,J.playerVars);Z.P7=J.P7;z.api.s3(Z,J.playerType)}Z=z.app.W1();E||Z.addCueRange(J.eN.FQ);Z.seekTo(m,Object.assign({},{i8:"application_timelinemanager"},e));wbb(z,T)}; +wbb=function(z,J){z=z.app.W1();var m=z.getPlayerState();J.isOrWillBePlaying()&&!m.isOrWillBePlaying()?z.playVideo():J.isPaused()&&!m.isPaused()&&z.pauseVideo()}; +cE=function(z,J){z.Ry=NaN;z.B=null;z.X.stop();z.U&&J&&z.U.CR();z.Y=null;z.U=null}; +FY=function(z,J){z=z.app.W1();return!!z&&z.getVideoData().P7===J.P7}; +qPf=function(z){var J=z.T.find(function(T){return FY(z,T)}); +if(J){var m=z.app.W1();ib(z);var e=new g.E3(8);J=cEu(z,J)/1E3;lVz(z,J,{},e);m.ph("forceParentTransition",{childPlayback:1});z.K.ph("forceParentTransition",{parentPlayback:1})}}; +IVz=function(z,J,m){J=J===void 0?-1:J;m=m===void 0?Infinity:m;for(var e=J,T=m,E=g.y(z.Z),Z=E.next();!Z.done;Z=E.next()){var c=g.y(Z.value);Z=c.next().value;c=c.next().value;c.XF>=e&&c.target&&c.target.GB<=T&&(z.K.removeCueRange(Z),z.Z.delete(Z))}e=J;T=m;E=[];Z=g.y(z.T);for(c=Z.next();!c.done;c=Z.next())if(c=c.value,c.Wd>=e&&c.GB<=T){var W=z;W.V===c&&ib(W);FY(W,c)&&W.app.rU()}else E.push(c);z.T=E;e=WDq(z,J/1E3);J=e.yc;e=e.vQ;J&&(e*=1E3,dYb(z,J,e,J.GB===J.Wd+J.durationMs?J.Wd+e:J.GB));(J=WDq(z,m/1E3).yc)&& +Eo(z,"Invalid clearEndTimeMs="+m+" that falls during playback={timelinePlaybackId="+(J.P7+" video_id="+J.playerVars.video_id+" durationMs="+J.durationMs+" enterTimeMs="+J.Wd+" parentReturnTimeMs="+J.GB+"}.Child playbacks can only have duration updated not their start."))}; +dYb=function(z,J,m,e){J.durationMs=m;J.GB=e;e={FQ:Z2(m,!0),XF:m,target:null};T_q(z,J,e);FY(z,J)&&z.app.W1().getCurrentTime()*1E3>m&&(J=cEu(z,J)/1E3,m=z.app.W1().getPlayerState(),lVz(z,J,{},m))}; +Eo=function(z,J,m,e){z.K.ph("timelineerror",{e:J,cpn:m?m:void 0,videoId:e?e:void 0})}; +pbb=function(z){z&&z!=="web"&&O9R.includes(z)}; +wi=function(z,J){g.h.call(this);var m=this;this.data=[];this.S=z||NaN;this.T=J||null;this.K=new g.vl(function(){WE(m);lb(m)}); +g.u(this,this.K)}; +xRb=function(z){WE(z);return z.data.map(function(J){return J.value})}; +WE=function(z){var J=(0,g.b5)();z.data.forEach(function(m){m.expireE?{width:J.width,height:J.width/T,aspectRatio:T}:TT?z.width=z.height*m:mW;if(Oo(z)){var l=YPb(z);var w=isNaN(l)||g.s0||m7&&g.Y4||W;vj&&!g.Ni(601)?l=T.aspectRatio:w=w||E.controlsType==="3";w?W?(w=E.C("place_shrunken_video_on_left_of_player")?16:z.getPlayerSize().width-J.width-16,l=Math.max((z.getPlayerSize().height-J.height)/2,0),w=new g.T6(w,l,J.width, +J.height),z.Pr.style.setProperty("border-radius","12px")):w=new g.T6(0,0,J.width,J.height):(m=T.aspectRatio/l,w=new g.T6((J.width-T.width/m)/2,(J.height-T.height)/2,T.width/m,T.height),m===1&&g.Y4&&(l=w.width-J.height*l,l>0&&(w.width+=l,w.height+=l)));g.qt(z.element,"ytp-fit-cover-video",Math.max(w.width-T.width,w.height-T.height)<1);if(c||z.EZ)z.Pr.style.display="";z.Nu=!0}else{w=-J.height;vj?w*=window.devicePixelRatio:g.zx&&(w-=window.screen.height);w=new g.T6(0,w,J.width,J.height);if(c||z.EZ)z.Pr.style.display= +"none";z.Nu=!1}Et(z.zw,w)||(z.zw=w,g.AD(E)?(z.Pr.style.setProperty("width",w.width+"px","important"),z.Pr.style.setProperty("height",w.height+"px","important")):g.N9(z.Pr,w.getSize()),e=new g.Nr(w.left,w.top),g.IS(z.Pr,Math.round(e.x),Math.round(e.y)),e=!0);J=new g.T6((J.width-T.width)/2,(J.height-T.height)/2,T.width,T.height);Et(z.Dp,J)||(z.Dp=J,e=!0);g.FR(z.Pr,"transform",m===1?"":"scaleX("+m+")");Z&&W!==z.rg&&(W&&(z.Pr.addEventListener(qv,z.Ey),z.Pr.addEventListener("transitioncancel",z.Ey),z.Pr.classList.add(g.RC.VIDEO_CONTAINER_TRANSITIONING)), +z.rg=W,z.app.Vx.publish("playerUnderlayVisibilityChange",z.rg?"transitioning":"hidden"));return e}; +B_q=function(){this.csn=g.Dc();this.clientPlaybackNonce=null;this.elements=new Set;this.S=new Set;this.K=new Set;this.T=new Set}; +SPb=function(z){if(z.csn!==g.Dc())if(z.csn==="UNDEFINED_CSN")z.csn=g.Dc();else{var J=g.Dc(),m=g.fd();if(J&&m){z.csn=J;for(var e=g.y(z.elements),T=e.next();!T.done;T=e.next())(T=T.value.visualElement)&&T.isClientVe()&&J&&m&&(g.CH("combine_ve_grafts")?DZ(S7(),T,m):g.zo(g.s$)(void 0,J,m,T))}if(J)for(z=g.y(z.K),m=z.next();!m.done;m=z.next())(m=m.value.visualElement)&&m.isClientVe()&&g.ZN(J,m)}}; +g.pX=function(z,J,m,e){g.h.call(this);var T=this;this.logger=new g.ZM("App");this.jQ=this.Fg=!1;this.H_={};this.V3=[];this.dj=!1;this.Ye=null;this.intentionalPlayback=!1;this.Of=!0;this.Fd=!1;this.Y4=this.cD=null;this.g7=!0;this.mediaElement=this.ib=null;this.Yh=NaN;this.mG=!1;this.tp=this.DI=this.Pd=this.fZ=this.screenLayer=this.playlist=null;this.ix=[];this.H3=0;this.So={Yt:function(){return T.Rj}, +wW:function(){return T.Pd}, +L9:function(Z){T.Pd=Z}, +Wx:function(Z,c){T.Pd&&T.Pd.Wx(Z,c)}}; +this.logger.debug("constructor begin");this.config=U6q(J||{});this.webPlayerContextConfig=m;EDR();J=this.config.args||{};this.yx=new tD(J,m,m?m.canaryState:this.config.assets.player_canary_state,e,this);g.u(this,this.yx);T31(this.yx);e=ZDb(this.yx);this.yx.AZ()&&this.ix.push({key:"h5vcc",value:e});this.yx.experiments.j4("jspb_serialize_with_worker")&&hJq();this.yx.experiments.j4("gzip_gel_with_worker")&&b3b();this.yx.T&&!fVb&&(window.addEventListener(aJ?"touchstart":"click",Mrf,{capture:!0,passive:!0}), +fVb=!0);this.C("html5_onesie")&&(this.Ww=new W4(this.yx),g.u(this,this.Ww));this.Ja=Fa(bl(this.yx)&&!0,J.enablesizebutton);this.nf=Fa(!1,J.player_wide);this.visibility=new ryq;g.u(this,this.visibility);this.C("web_log_theater_mode_visibility")&&this.FS(Fa(!1,J.player_wide));this.Fg=Fa(!1,J.external_list);this.events=new g.jl(this);g.u(this,this.events);this.C("start_client_gcf")&&(Mb(hN(),{Y2:wn,n0:J9E()}),this.TO=hN().resolve(wn),Txq(this.TO));this.Q12=new q0;g.u(this,this.Q12);this.Lj=new B_q;e= +new dd;this.Vx=new g.BL(this,e);g.u(this,this.Vx);this.template=new Xb1(this);g.u(this,this.template);this.appState=1;this.Ts=DYu(this);g.u(this,e);e={};this.Nj=(e.internalvideodatachange=this.to1,e.playbackready=this.fHf,e.playbackstarted=this.lHW,e.statechange=this.vQy,e);this.xJ=new W_(this.Vx);this.Im=b9u(this);e=this.C("html5_load_wasm");J=this.C("html5_allow_asmjs");if(e&&$YR||J)this.yx.Xy=n3u(this.Im,J),yN(pQ(this.yx.Xy,function(Z){T.yx.Qv=Z;var c;(c=T.W1())==null||c.ph("wasm",{a:Z.zz})}), +function(Z){g.hr(Z); +Z="message"in Z&&Z.message||Z.toString()||"";var c;(c=T.W1())==null||c.ph("wasm",{e:Z})}); +else if(e&&!$YR){var E;(E=this.W1())==null||E.ph("wasm",{e:"wasm unavailable"})}this.hZ=new f9u(this.yx,this.Im);this.Vx.publish("csiinitialized");E=10;g.SP(this.yx)&&(E=3);sj(this.yx)&&(E=g.dv(this.yx.experiments,"tvhtml5_unplugged_preload_cache_size"));E=new wi(E,function(Z){Z!==T.tX(Z.getPlayerType())&&Z.vu()}); +g.u(this,E);this.Rj=new g.ht(this.yx,E);E=gxq(this);this.Rj.J5(E);xYE(this);E={};this.CC=(E.airplayactivechange=this.Pgi,E.airplayavailabilitychange=this.w7b,E.beginseeking=this.Uxx,E.sabrCaptionsDataLoaded=this.JwD,E.endseeking=this.Iof,E.internalAbandon=this.ao4,E.internalaudioformatchange=this.xxx,E.internalvideodatachange=this.Aw4,E.internalvideoformatchange=this.uQW,E.liveviewshift=this.Yl2,E.playbackstalledatstart=this.WoW,E.progresssync=this.Cgh,E.onAbnormalityDetected=this.esx,E.onSnackbarMessage= +this.X7F,E.onLoadProgress=this.Qj1,E.SEEK_COMPLETE=this.MOD,E.SEEK_TO=this.LoF,E.onVideoProgress=this.gry,E.onLoadedMetadata=this.mxx,E.onAutoplayBlocked=this.Slz,E.onPlaybackPauseAtStart=this.i16,E.playbackready=this.hs2,E.statechange=this.nE,E.newelementrequired=this.AR,E.heartbeatparams=this.GBf,E.videoelementevent=this.nry,E.drmoutputrestricted=this.DxF,E.signatureexpired=this.qlW,E.nonfatalerror=this.Z1x,E.reloadplayer=this.VOb,E);this.HQ=new g.jl(this);g.u(this,this.HQ);this.p9=new di;g.u(this, +this.p9);this.Hc=this.Bn=-1;this.G9=new g.vl(this.template.resize,16,this.template);g.u(this,this.G9);this.Fq=new mYz(this.Vx,this.yx,this.Kq(),this);this.I3=new u$(this.yx);this.Yx=new At(this);g.u(this,this.Yx);this.Eq=new $6(this);g.u(this,this.Eq);pbb(this.yx.K.c);this.events.L(this.Vx,g.F8("appapi"),this.pr4);this.events.L(this.Vx,g.iw("appapi"),this.k43);this.events.L(this.Vx,g.F8("appprogressboundary"),this.cw1);this.events.L(this.Vx,g.iw("applooprange"),this.h5);this.events.L(this.Vx,"presentingplayerstatechange", +this.bz);this.events.L(this.Vx,"resize",this.vPx);this.template.S4(LY(document,z));this.events.L(this.Vx,"offlineslatestatechange",this.lox);this.events.L(this.Vx,"sabrCaptionsTrackChanged",this.Up1);this.events.L(this.Vx,"sabrCaptionsBufferedRangesUpdated",this.S4y);this.Im.G.W().jf&&aD(this.Im,"offline");this.yx.O2&&g.ID("ux",g.D9);z=g.dv(this.yx.experiments,"html5_defer_fetch_att_ms");this.KI=new g.vl(this.CCz,z,this);g.u(this,this.KI);this.H7().pZ()&&(g.uM()&&this.H7().Tf.push("remote"),Msq(this)); +this.hZ.tick("fs");AEf(this);this.yx.O2&&aD(this.Im,"ux",!0);g.fi(this.Im.G.W())&&aD(this.Im,"embed");this.C("web_player_sentinel_is_uniplayer")||g.hr(new g.vR("Player experiment flags missing","web_player_sentinel_is_uniplayer"));z=this.C("web_player_sentinel_yt_experiments_sync");E=g.CH("web_player_sentinel_yt_experiments_sync");z!==E&&g.hr(new g.vR("b/195699950",{yt:z,player:E}));m||g.hr(new g.vR("b/179532961"));this.I6=ox1(this);if(m=g.dv(this.yx.experiments,"html5_block_pip_safari_delay"))this.o4= +new g.vl(this.hU,m,this),g.u(this,this.o4);oQ=this.yx.ED;m=g.dv(this.yx.experiments,"html5_performance_impact_profiling_timer_ms");m>0&&(this.wN=new g.DB(m),g.u(this,this.wN),this.events.L(this.wN,"tick",function(){T.xj&&jub.En("apit",T.xj);T.xj=jub.p6()})); +this.Vx.publish("applicationInitialized");this.logger.debug("constructor end")}; +ox1=function(z){function J(m){m.stack&&m.stack.indexOf("player")!==-1&&(z.W1()||z.Kq()).Pb(m)} +uc.subscribe("handleError",J);sS.push(J);return function(){uc.unsubscribe("handleError",J);var m=sS.indexOf(J);m!==-1&&sS.splice(m,1)}}; +gxq=function(z){var J=new g.H$(z.yx,z.config.args);z.Vx.publish("initialvideodatacreated",J);return yG(z,1,J,!1)}; +xYE=function(z){var J=z.Kq();J.setPlaybackRate(z.yx.U?1:h0q(z,Number(g.jO("yt-player-playback-rate"))||1));J.qw(z.Nj,z);J.Bf()}; +b9u=function(z){var J="",m=N_1(z);m.indexOf("//")===0&&(m=z.yx.protocol+":"+m);var e=m.lastIndexOf("/base.js");e!==-1&&(J=m.substring(0,e+1));if(m=Error().stack)if(m=m.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))m=m[1],m.includes(J)||g.hr(Error("Player module URL mismatch: "+(m+" vs "+J+".")));J=new E3q(z.Vx,J);uMq(z,J);return J}; +uMq=function(z,J){var m={};m=(m.destroyed=function(){z.onApiChange()},m); +J.S=m}; +DYu=function(z){if(z.yx.storeUserVolume){z=g.jO("yt-player-volume")||{};var J=z.volume;z={volume:isNaN(J)?100:g.O8(Math.floor(J),0,100),muted:!!z.muted}}else z={volume:100,muted:z.yx.mute};return z}; +Nj=function(z){z.mediaElement=z.yx.deviceIsAudioOnly?new g.vk(g.EX("AUDIO")):b$.pop()||new g.vk(g.EX("VIDEO"));g.u(z,z.mediaElement);var J=z.W1();J&&J.setMediaElement(z.mediaElement);try{z.yx.Wr?(z.DI&&z.events.hX(z.DI),z.DI=z.events.L(z.mediaElement,"volumechange",z.zbb)):(z.mediaElement.Wf(z.Ts.muted),z.mediaElement.setVolume(z.Ts.volume/100))}catch(T){z.Cs("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(T&&typeof T==="object"&&"message"in T&&typeof T.message==="string"&&T.message.replace(/[;:,]/g, +"_")));return}g.gs(z.HQ);Vsq(z);J=z.template;var m=z.mediaElement.aT();J.Pr=m;J.j5=!1;J.Pr.parentNode||cF(J.w6,J.Pr,0);J.zw=new g.T6(0,0,0,0);KDs(J);Ih(J);m=J.Pr;g.FE(m,"video-stream");g.FE(m,g.RC.MAIN_VIDEO);var e=J.app.W();e.Tp&&m.setAttribute("data-no-fullscreen","true");e.C("html5_local_playsinline")?"playsInline"in bO()&&(m.playsInline=!0):e.Oe&&(m.setAttribute("webkit-playsinline",""),m.setAttribute("playsinline",""));e.oA&&J.Pr&&J.L(m,"click",m.play,m);try{z.mediaElement.activate()}catch(T){z.Cs("html5.missingapi", +2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(T&&typeof T==="object"&&"message"in T&&typeof T.message==="string"&&T.message.replace(/[;:,]/g,"_")))}}; +tsb=function(z){if(!Pdq(z)){var J=z.Kq().Vv();J&&(J=J.J1(),J instanceof Promise&&J.catch(function(){})); +GB(z,q4(z.getPlayerStateObject()))}}; +Vsq=function(z){var J=z.mediaElement;A7()?z.HQ.L(J,"webkitpresentationmodechanged",z.Iif):window.document.pictureInPictureEnabled&&(z.HQ.L(J,"enterpictureinpicture",function(){z.JF(!0)}),z.HQ.L(J,"leavepictureinpicture",function(){z.JF(!1)})); +z7&&(z.HQ.L(J,"webkitbeginfullscreen",function(){z.V2(3)}),z.HQ.L(J,"webkitendfullscreen",function(){z.V2(0)}))}; +H9q=function(z,J){var m=J.getPlayerType(),e=z.Rj.S[m]||null;J!==z.Kq()&&J!==e&&(e==null||e.vu(),z.Rj.S[m]=J)}; +UY1=function(z,J){J=J===void 0?!0:J;z.logger.debug("start clear presenting player");var m;if(m=z.tp){m=z.tp;var e=z.mediaElement;m=!!e&&e===m.mediaElement}m&&(z.OL(),Nj(z));if(m=z.W1())m.OL(!J),m.cQ(z.CC,z),m.getPlayerType()!==1&&m.vu();J=z.Rj;J.yx.C("web_player_present_empty")?J.T=J.K:J.T=null;z.logger.debug("finish clear presenting player")}; +g.R0f=function(z,J,m,e){var T=z.hZ;J===2&&(T=new f9u(z.yx));return new g.Fx(z.yx,J,T,z.template,function(E,Z,c){z.Vx.publish(E,Z,c)},function(){return z.Vx.getVisibilityState()},z.visibility,z,m,e)}; +yG=function(z,J,m,e,T){z=g.R0f(z,J,m,T);z=new g.V3(z);e&&z.Bf();return z}; +XY=function(z,J){return z.Uu(J)?z.Kq():J}; +nX=function(z,J){var m=z.W1(),e=z.Kq();return m&&J===e&&z.Uu(J)&&z.Uu(m)?m:J}; +QuR=function(z){z.logger.debug("start application playback");if(z.Kq().getPlayerState().isError())z.logger.debug("start application playback done, player in error state");else{var J=Y3(z);z.H7().isLoaded();J&&z.C3(6);kRb(z);I2q(z.Im)||LDq(z)}}; +LDq=function(z){if(!Y3(z)){var J=B_(z.Im);J&&!J.created&&ZX1(z.Im)&&(z.logger.debug("reload ad module"),J.create())}}; +kRb=function(z){z.logger.debug("start presenter playback");var J=z.getVideoData(),m=z.Im;I2q(m)||m.mH();!$YR&&m.G.C("html5_allow_asmjs")&&XEE(m);aD(m,"embed");aD(m,"kids");aD(m,"remote");aD(m,"miniplayer");aD(m,"offline");aD(m,"unplugged");aD(m,"ypc",!1,!0);aD(m,"ypc_clickwrap",!1,!0);aD(m,"yto",!1,!0);aD(m,"webgl",!1,!0);OXu(m)||(aD(m,"captions",!0),aD(m,"endscreen"),m.bx()||m.mE(),aD(m,"creatorendscreen",!0));m.cI();z.Vx.publish("videoready",J)}; +CX=function(z){z=z.H7();z.pZ();return jg(z)}; +AEf=function(z){z.logger.debug("start prepare initial playback");z.WG();var J=z.config.args;Nj(z);z.C("web_player_present_empty")&&z.events.L(window,"resize",z.Od);var m=z.H7();z.Vx.jC("onVolumeChange",z.Ts);if(J&&xwu(J)){var e=k5(z.yx);e&&!z.Fg&&(J.fetch=0);var T=g.fi(z.yx);T&&!z.Fg&&(J.fetch=0);ah(z,J);g.fi(z.yx)&&z.hZ.tick("ep_pr_s");if(!e||z.Fg)if(T&&!z.Fg)vxj(z);else if(!m.pZ())z.playlist.onReady(function(){KX(z)})}z.E6(z.Kq(),!1,!0); +g.R(z.Kq().getPlayerState(),128)||(J=wy1(!z.yx.deviceIsAudioOnly),J==="fmt.noneavailable"?z.Cs("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):J==="html5.missingapi"?z.Cs(J,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):m&&m.pZ()&&CX(z)&&(z.yx.Ks||z.yx.T2)?BE(z):m.S7?z.Vx.mutedAutoplay({durationMode:m.mutedAutoplayDurationMode}):g.jO("yt-player-playback-on-reload")?(g.qq("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!z.yx.Tf}),g.oW("yt-player-playback-on-reload",!1), +BE(z)):mp(z.yx)||suq(z),g.vZ(z.yx)||sY(z.yx)==="MWEB"?(g.mV(g.Tf(),function(){SE(z)}),g.mV(g.Tf(),function(){dbb()})):(SE(z),dbb()),z.logger.debug("finish prepare initial playback"))}; +SE=function(z){if(!z.C("use_rta_for_player"))if(z.C("fetch_att_independently"))g.sD(z.KI);else{var J=z.getVideoData().botguardData;J&&g.hh(J,z.yx,z.getVideoData().eT||"")}}; +suq=function(z){z.logger.debug("start initialize to CUED mode");z.Vx.publish("initializingmode");z.C3(2);z.C("embeds_web_enable_defer_loading_remote_js")&&g.rc(z.yx)?g.mV(g.Tf(),function(){aD(z.Im,"remote")}):aD(z.Im,"remote"); +aD(z.Im,"miniplayer");z.logger.debug("initialized to CUED mode")}; +BE=function(z){z.logger.debug("start initialize application playback");var J=z.Kq();if(g.R(J.getPlayerState(),128))return!1;var m=J.getVideoData();CX(z)&&z.yx.T2&&(b$.length&&z.jQ?(fX(z,{muted:!1,volume:z.Ts.volume},!1),D2(z,!1)):b$.length||z.Ts.muted||(fX(z,{muted:!0,volume:z.Ts.volume},!1),D2(z,!0)));CX(z)&&g.fi(z.yx)&&m.mutedAutoplay&&(fX(z,{muted:!0,volume:z.Ts.volume},!1),D2(z,!0));m.LG&&fX(z,{muted:!0,volume:z.Ts.volume},!1);rEb(z,1,m,!1);z.Vx.publish("initializingmode");z.E6(z.Kq());z.C3(3); +var e;if(!(e=!z.yx.FF)){if(e=z.tp){e=z.tp;var T=z.mediaElement;e=!!T&&T===e.mediaElement}e=e&&z.dj}e&&(z.OL(),Nj(z),J.setMediaElement(z.mediaElement));J.HE();if(g.R(J.getPlayerState(),128))return!1;m.MY||GB(z,3);return z.dj=!0}; +Y3=function(z){z=D5(z.Im);return!!z&&z.loaded}; +zqz=function(z,J){if(!z.ib)return!1;var m=z.ib.startTimeMs*.001-1,e=z.ib.endTimeMs*.001;z.ib.type==="repeatChapter"&&e--;return Math.abs(J-m)<=1E-6||Math.abs(J-e)<=1E-6||J>=m&&J<=e}; +eqs=function(z){var J=z.W1();J&&TF(J.getVideoData())&&!J.AQ()&&(J=JxE(z)*1E3-z.getVideoData().XL,z.C("html5_gapless_new_slr")?(z=z.Eq,mMu(z.app,"gaplessshortslooprange"),J=new g.Ec(0,J,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(z=z.app.W1())&&z.addCueRange(J)):z.setLoopRange({startTimeMs:0,endTimeMs:J,type:"shortsLoop"}))}; +Tzu=function(z){var J=z.Kq();if(!(g.R(J.getPlayerState(),64)&&z.H7().isLivePlayback&&z.ib.startTimeMs<5E3)){if(z.ib.type==="repeatChapter"){var m,e=(m=$Fu(z.UC()))==null?void 0:m.kA(),T;m=(T=z.getVideoData())==null?void 0:T.oW;e instanceof g.P_&&m&&(T=m[it(m,z.ib.startTimeMs)],e.renderChapterSeekingAnimation(0,T.title));isNaN(Number(z.ib.loopCount))?z.ib.loopCount=0:z.ib.loopCount++;z.ib.loopCount===1&&z.Vx.B1("innertubeCommand",z.getVideoData().E0)}e={i8:"application_loopRangeStart"};if(z.ib.type=== +"clips"||z.ib.type==="shortsLoop")e.seekSource=58;J.seekTo(z.ib.startTimeMs*.001,e)}}; +h0q=function(z,J){var m=z.Vx.getAvailablePlaybackRates();J=Number(J.toFixed(2));z=m[0];m=m[m.length-1];J<=z?J=z:J>=m?J=m:(z=Math.floor(J*100+.001)%5,J=z===0?J:Math.floor((J-z*.01)*100+.001)/100);return J}; +JxE=function(z,J){J=z.tX(J);if(!J)return z.Rj.K.YV();J=XY(z,J);return bb(z,J.YV(),J)}; +bb=function(z,J,m){if(z.Uu(m)){m=m.getVideoData();if($3(z))m=J;else{z=z.Fq;for(var e=g.y(z.T),T=e.next();!T.done;T=e.next())if(T=T.value,m.P7===T.P7){J+=T.Wd/1E3;break}e=J;z=g.y(z.T);for(T=z.next();!T.done;T=z.next()){T=T.value;if(m.P7===T.P7)break;var E=T.Wd/1E3;if(E1&&(T=!1);if(!z.mG||T!==J){m=m.lock(T?"portrait":"landscape");if(m!=null)m["catch"](function(){}); +z.mG=!0}}else z.mG&&(z.mG=!1,m.unlock())}; +jE=function(z,J,m){z.Vx.publish(J,m);var e=g.SP(z.yx)||g.AD(z.yx)||g.uB(z.yx);if(m&&e){switch(J){case "cuerangemarkersupdated":var T="onCueRangeMarkersUpdated";break;case "cuerangesadded":T="onCueRangesAdded";break;case "cuerangesremoved":T="onCueRangesRemoved"}T&&z.Vx.B1(T,m.map(function(E){return{getId:function(){return this.id}, +end:E.end,id:E.getId(),namespace:E.namespace==="ad"?"ad":"",start:E.start,style:E.style,visible:E.visible}}))}}; +hI=function(z,J,m,e,T,E){m=m===void 0?!0:m;var Z=z.tX(T);Z&&(Z.getPlayerType()===2&&!z.Uu(Z)||g.BH(Z.getVideoData()))||(z.getPresentingPlayerType()===3?z.Rj.vW.seekTo(J,{DD:!m,PT:e,i8:"application",seekSource:E}):(Z&&Z===z.Kq()&&z.ib&&!zqz(z,J)&&z.setLoopRange(null),z.seekTo(J,m,e,T,E)))}; +Xnq=function(z,J,m,e){m&&(z.OL(),Nj(z));m=z.W1();m.K4(J);var T=z.getVideoData(),E={};E.video_id=T.videoId;E.adformat=T.adFormat;T.isLivePlayback||(E.start=m.getCurrentTime(),E.resume="1");T.isLivePlayback&&w0(T)&&g.K1(z.yx)&&(E.live_utc_start=m.Hk(),E.resume="1");T.fh&&(E.vvt=T.fh);T.Y&&(E.vss_credentials_token=T.Y,E.vss_credentials_token_type=T.nJ);T.oauthToken&&(E.oauth_token=T.oauthToken);T.jx&&(E.force_gvi=T.jx);E.autoplay=1;E.reload_count=T.l8+1;E.reload_reason=J;T.fW&&(E.unplugged_partner_opt_out= +T.fW);T.Xy&&(E.ypc_is_premiere_trailer=T.Xy);T.playerParams&&(E.player_params=T.playerParams);z.loadVideoByPlayerVars(E,void 0,!0,void 0,void 0,e);J==="signature"&&z.fZ&&LDq(z)}; +nqb=function(z,J){z.H7().autonavState=J;g.oW("yt-player-autonavstate",J);z.Vx.publish("autonavchange",J)}; +Y5q=function(z){var J=z.getVideoData().iV,m=z.yx.Hd,e=z.isInline()&&!z.getVideoData().Mm,T=z.mediaElement;J||m||e?T.nK():(T.bH(),fX(z,z.Ts))}; +gi=function(z){var J=B_(z.UC());J&&J.created&&(z.logger.debug("reset ad module"),J.destroy())}; +$3=function(z){return z.getVideoData().enableServerStitchedDai&&!!z.fZ}; +CH1=function(z,J){J.bounds=z.getBoundingClientRect();for(var m=g.y(["display","opacity","visibility","zIndex"]),e=m.next();!e.done;e=m.next())e=e.value,J[e]=WM(z,e);J.hidden=!!z.hidden}; +N_1=function(z){if(z.webPlayerContextConfig){var J=z.webPlayerContextConfig.trustedJsUrl;return J?BT(J).toString():z.webPlayerContextConfig.jsUrl}return z.config.assets&&z.config.assets.js?z.config.assets.js:""}; +ao4=function(z,J){var m=z.tX(1);if(m){if(m.getVideoData().clientPlaybackNonce===J)return m;if((z=z.Yx.K)&&z.getVideoData().clientPlaybackNonce===J)return z}return null}; +K8z=function(z){return z.name==="TypeError"&&z.stack.includes("/s/player/")&&Hf()<=105}; +Bzu=function(z){return z.isTimeout?"NO_BID":"ERR_BID"}; +S5u=function(){var z=null;fnR().then(function(J){return z=J},function(J){return z=Bzu(J)}); +return z}; +fou=function(){var z=xV(1E3,"NO_BID");return g.Sz(k8f([fnR(),z]).IF(Bzu),function(){z.cancel()})}; +ub=function(z){return z.Zo?g.UF(g.HR(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; +VG=function(z){this.player=z;this.S=this.K=1}; +$ME=function(z,J,m,e,T,E){J.client||(J.client={});z.player.W().C("h5_remove_url_for_get_ad_break")||(J.client.originalUrl=m);var Z=lv(m),c=g.H1(m)?!1:!0;(Z||c)&&typeof Intl!=="undefined"&&(J.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);c=g.H1(m)?!1:!0;if(Z||c||e!==""){var W={};m=EL(OL(e)).split("&");var l=new Map;m.forEach(function(w){w=w.split("=");w.length>1&&l.set(w[0].toString(),decodeURIComponent(w[1].toString()))}); +l.has("bid")&&(W.bid=l.get("bid"));W.params=[];DMu.forEach(function(w){l.has(w)&&(w={key:w,value:l.get(w)},W.params.push(w))}); +bpb(z,W);J.adSignalsInfo=W}J.client.unpluggedAppInfo||(J.client.unpluggedAppInfo={});J.client.unpluggedAppInfo.enableFilterMode=!1;m=T.K.cosver;m!=null&&m!=="cosver"&&(J.client.osVersion=m);m=T.K.cplatform;m!=null&&m!=="cplatform"&&m!==""&&(J.client.platform=m);m=T.K.cmodel;m!=null&&m!=="cmodel"&&(J.client.deviceModel=m);m=T.K.cplayer;m!=null&&m!=="cplayer"&&(J.client.playerType=m);m=T.K.cbrand;m!=null&&m!=="cbrand"&&(J.client.deviceMake=m);J.user||(J.user={});J.user.lockedSafetyMode=!1;(T.C("embeds_web_enable_iframe_api_send_full_embed_url")|| +T.C("embeds_enable_autoplay_and_visibility_signals"))&&g.MA(T)&&MPz(J,E,z.player.getPlayerState(1))}; +Maz=function(z,J){var m=!1;if(J==="")return m;J.split(",").forEach(function(e){var T={},E={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},Z="ACTIVE";e[0]==="!"&&(e=e.substring(1),Z="INACTIVE");e=e.split("-");e.length<3||(e[0]in gqq&&(E.clientName=gqq[e[0]]),e[1]in xM4&&(E.platform=xM4[e[1]]),E.applicationState=Z,E.clientVersion=e.length>2?e[2]:"",T.remoteClient=E,z.remoteContexts?z.remoteContexts.push(T):z.remoteContexts=[T],m=!0)}); +return m}; +oqs=function(z){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in Ax4))return!1;z=z.split(RegExp("[:&]"));var J=Ax4.FLAG_AUTO_CAPTIONS_DEFAULT_ON,m="f"+(1+Math.floor(J/31)).toString();J=1<=2?Z[1]:"";var c=hq1.test(J),W=uI1.exec(J);W=W!=null&&W.length>=2?W[1]:"";var l=Vaj.exec(J);l=l!=null&&l.length>=2&&!Number.isNaN(Number(l[1]))?Number(l[1]):1;var w=PHR.exec(J);w=w!=null&&w.length>=2?w[1]:"0";var q=ul(z.player.W().qA),d=z.player.getVideoData(1),I=g.zr(d.x3,!0),O="BISCOTTI_ID"in m?m.BISCOTTI_ID:"";$ME(z,I,J,O.toString(),z.player.W(), +d);d={splay:!1,lactMilliseconds:m.LACT.toString(),playerHeightPixels:Math.trunc(m.P_H),playerWidthPixels:Math.trunc(m.P_W),vis:Math.trunc(m.VIS),signatureTimestamp:20172,autonavState:ub(z.player.W())};e&&(e={},Maz(e,m.YT_REMOTE)&&(d.mdxContext=e));if(e=taq.includes(q)?void 0:g.uv("PREF")){for(var G=e.split(RegExp("[:&]")),n=0,C=G.length;n1&&K[1].toUpperCase()==="TRUE"){I.user.lockedSafetyMode=!0;break}}d.autoCaptionsDefaultOn= +oqs(e)}J=Hpu.exec(J);(J=J!=null&&J.length>=2?J[1]:"")&&W&&(I.user.credentialTransferTokens=[{token:J,scope:"VIDEO"}]);J={contentPlaybackContext:d};Z={adBlock:Math.trunc(m.AD_BLOCK),params:Z,breakIndex:l,breakPositionMs:w,clientPlaybackNonce:m.CPN,topLevelDomain:q,isProxyAdTagRequest:c,context:I,adSignalsInfoString:EL(OL(O.toString())),overridePlaybackContext:J};T!==void 0&&(Z.cueProcessedMs=Math.round(T).toString());W&&(Z.videoId=W);m.LIVE_TARGETING_CONTEXT&&(Z.liveTargetingParams=m.LIVE_TARGETING_CONTEXT); +m.AD_BREAK_LENGTH&&(Z.breakLengthMs=Math.trunc(m.AD_BREAK_LENGTH*1E3).toString());E&&(Z.driftFromHeadMs=E.toString());Z.currentMediaTimeMs=Math.round(z.player.getCurrentTime(1)*1E3);(z=z.player.getGetAdBreakContext())&&(Z.getAdBreakContext=z);return Z}; +Rqu=function(){VG.apply(this,arguments)}; +k2z=function(z,J,m,e,T){var E=m.fz;var Z=m.FQ;var c=z.player.W().kx,W=0;m.cueProcessedMs&&Z&&!E&&(m=Z.end-Z.start,m>0&&(W=Math.floor(m/1E3)));var l={AD_BLOCK:T,AD_BREAK_LENGTH:E?E.zt:W,AUTONAV_STATE:ub(z.player.W()),CA_TYPE:"image",CPN:z.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:z.player.oB()*1E3,LACT:bE(),LIVE_INDEX:E?z.S++:1,LIVE_TARGETING_CONTEXT:E&&E.context?E.context:"",MIDROLL_POS:Z?Math.round(Z.start/1E3):0,MIDROLL_POS_MS:Z?Math.round(Z.start):0,VIS:z.player.getVisibilityState(), +P_H:z.player.zf().XE().height,P_W:z.player.zf().XE().width,YT_REMOTE:c?c.join(","):""},w=IQ(dj);Object.keys(w).forEach(function(q){w[q]!=null&&(l[q.toUpperCase()]=w[q].toString())}); +e!==""&&(l.BISCOTTI_ID=e);e={};qp(J)&&(e.sts="20172",(z=z.player.W().forcedExperiments)&&(e.forced_experiments=z));return Wf(g.Dn(J,l),e)}; +L8u=function(z,J){var m=z.player.W(),e,T=(e=z.player.getVideoData(1))==null?void 0:e.oauthToken;return g.El(m,T).then(function(E){if(E&&wj()){var Z=h3();u8(Z,E)}return g.vh(z.player.fB(Z),J,"/youtubei/v1/player/ad_break").then(function(c){return c})})}; +Q4u=function(z){this.Zn=z}; +vqq=function(z){this.G=z}; +s4q=function(z){this.Zn=z}; +zk4=function(z){g.h.call(this);this.K=z;this.Og=rxu(this)}; +rxu=function(z){var J=new wPs(z.K.TB);g.u(z,J);z=[new Q4u(z.K.Zn),new vqq(z.K.G),new s4q(z.K.Zn),new gG(z.K.D4,z.K.Az),new Mz,new j0(z.K.md,z.K.kF,z.K.Zn),new xr,new $r];z=g.y(z);for(var m=z.next();!m.done;m=z.next())q$u(J,m.value);z=g.y(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(m=z.next();!m.done;m=z.next())AZ(J,m.value,function(){}); +return J}; +PE=function(z){var J=z.Ch,m=z.Kh;z=z.YP;var e=new Srb,T={Df:new Wkq(J.get(),m),Kh:m};return{XM:new EQ(m,z,J,T),context:T,UL:e}}; +tI=function(z,J,m,e,T){g.h.call(this);this.T=J;this.Dn=m;this.Ch=e;this.KZ=T;this.listeners=[];var E=new bM(this);g.u(this,E);E.L(z,"internalAbandon",this.B3);this.addOnDisposeCallback(function(){g.gs(E)})}; +HE=function(z){this.G=z;this.adVideoId=this.K=this.videoId=this.adCpn=this.contentCpn=null;this.Z=!0;this.T=this.S=!1;this.adFormat=null;this.U="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; +JWf=function(z){z.contentCpn=null;z.adCpn=null;z.videoId=null;z.adVideoId=null;z.adFormat=null;z.U="AD_PLACEMENT_KIND_UNKNOWN";z.actionType="unknown_type";z.S=!1;z.T=!1}; +mXE=function(z,J){z=g.y(J);for(J=z.next();!J.done;J=z.next())if((J=J.value.renderer)&&(J.instreamVideoAdRenderer||J.linearAdSequenceRenderer||J.sandwichedLinearAdRenderer||J.instreamSurveyAdRenderer)){Ph("ad_i");g.tR({isMonetized:!0});break}}; +ekq=function(z){var J;(J=z.G.getVideoData(1))!=null&&J.wb&&(z.T=!1,J={},z.K&&z.videoId&&(J.cttAuthInfo={token:z.K,videoId:z.videoId}),Hh("video_to_ad",J))}; +RO=function(z){z.T=!1;var J={};z.K&&z.videoId&&(J.cttAuthInfo={token:z.K,videoId:z.videoId});Hh("ad_to_video",J);Tqq(z)}; +Tqq=function(z){if(z.S)if(z.U==="AD_PLACEMENT_KIND_START"&&z.actionType==="video_to_ad")hR("video_to_ad");else{var J={adBreakType:Yk(z.U),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:z.videoStreamType};z.actionType==="ad_to_video"?(z.contentCpn&&(J.targetCpn=z.contentCpn),z.videoId&&(J.targetVideoId=z.videoId)):(z.adCpn&&(J.targetCpn=z.adCpn),z.adVideoId&&(J.targetVideoId=z.adVideoId));z.adFormat&&(J.adType=z.adFormat);z.contentCpn&& +(J.clientPlaybackNonce=z.contentCpn);z.videoId&&(J.videoId=z.videoId);z.adCpn&&(J.adClientPlaybackNonce=z.adCpn);z.adVideoId&&(J.adVideoId=z.adVideoId);g.tR(J,z.actionType)}}; +Uo=function(z){g.h.call(this);this.G=z;this.K=new Map;this.T=new bM(this);g.u(this,this.T);this.T.L(this.G,g.F8("ad"),this.onCueRangeEnter,this);this.T.L(this.G,g.iw("ad"),this.onCueRangeExit,this)}; +ERb=function(z,J,m,e,T){g.Ec.call(this,J,m,{id:z,namespace:"ad",priority:T,visible:e})}; +Rh=function(z){this.G=z}; +k3=function(z){this.G=z;g.dv(this.G.W().experiments,"tv_pacf_logging_sample_rate")}; +aB=function(z,J){J=J===void 0?!1:J;return z.G.W().C("html5_ssap_force_ads_ctmp")?!0:(J||z.G.W().AZ())&&z.G.W().C("html5_ssap_pacf_qoe_ctmp")}; +LX=function(z){var J,m;return(m=(J=z.G.getVideoData(1))==null?void 0:g.Lr(J))!=null?m:!1}; +Q6=function(z,J){return z.G.W().C(J)}; +ZVu=function(z){return z.G.W().C("substitute_ad_cpn_macro_in_ssdai")}; +nw=function(z){var J,m,e;return((J=z.G.getVideoData(1).getPlayerResponse())==null?void 0:(m=J.playerConfig)==null?void 0:(e=m.daiConfig)==null?void 0:e.enableServerStitchedDai)||!1}; +NOu=function(z){return z.G.W().C("html5_enable_vod_slar_with_notify_pacf")}; +FRf=function(z){return z.G.W().C("html5_recognize_predict_start_cue_point")}; +Jz=function(z){return z.G.W().experiments.j4("enable_desktop_player_underlay")}; +iVu=function(z){return z.G.W().experiments.j4("html5_load_empty_player_in_media_break_sub_lra")}; +M4=function(z){return z.G.W().experiments.j4("html5_load_ads_instead_of_cue")}; +AK=function(z){return z.G.W().experiments.j4("html5_preload_ads")}; +cWR=function(z){return z.G.W().experiments.j4("should_ignore_cuepoints_during_lifa_preroll")}; +rV=function(z){return z.G.W().experiments.j4("enable_ads_control_flow_deterministic_id_generation")}; +WRj=function(z){return z.G.W().experiments.j4("enable_desktop_discovery_video_abandon_pings")||g.Li(z.G.W())}; +lwq=function(z){return z.G.W().experiments.j4("enable_progres_commands_lr_feeds")}; +Yi=function(z){return z.G.W().experiments.j4("html5_cuepoint_identifier_logging")}; +yr1=function(z){return z.G.W().experiments.j4("enable_postmessage_tunnel_for_ad_clicks")}; +wWR=function(z){switch(z){case "audio_audible":return"adaudioaudible";case "audio_measurable":return"adaudiomeasurable";case "fully_viewable_audible_half_duration_impression":return"adfullyviewableaudiblehalfdurationimpression";case "measurable_impression":return"adactiveviewmeasurable";case "overlay_unmeasurable_impression":return"adoverlaymeasurableimpression";case "overlay_unviewable_impression":return"adoverlayunviewableimpression";case "overlay_viewable_end_of_session_impression":return"adoverlayviewableendofsessionimpression"; +case "overlay_viewable_immediate_impression":return"adoverlayviewableimmediateimpression";case "viewable_impression":return"adviewableimpression";default:return null}}; +q4u=function(){g.wF.call(this);var z=this;this.K={};this.addOnDisposeCallback(function(){for(var J=g.y(Object.keys(z.K)),m=J.next();!m.done;m=J.next())delete z.K[m.value]})}; +QG=function(){if(dXb===null){dXb=new q4u;BN(az).T="b";var z=BN(az),J=pE(z)=="h"||pE(z)=="b",m=!($K(),!1);J&&m&&(z.Z=!0,z.Y=new S7R)}return dXb}; +Iwj=function(z,J,m){z.K[J]=m}; +OVj=function(z){switch(z){case "abandon":case "unmuted_abandon":return"abandon";case "active_view_fully_viewable_audible_half_duration":return"fully_viewable_audible_half_duration_impression";case "active_view_measurable":return"measurable_impression";case "active_view_viewable":return"viewable_impression";case "audio_audible":return"audio_audible";case "audio_measurable":return"audio_measurable";case "complete":case "unmuted_complete":return"complete";case "end_fullscreen":case "unmuted_end_fullscreen":return"exitfullscreen"; +case "first_quartile":case "unmuted_first_quartile":return"firstquartile";case "fullscreen":case "unmuted_fullscreen":return"fullscreen";case "impression":case "unmuted_impression":return"impression";case "midpoint":case "unmuted_midpoint":return"midpoint";case "mute":case "unmuted_mute":return"mute";case "pause":case "unmuted_pause":return"pause";case "progress":case "unmuted_progress":return"progress";case "resume":case "unmuted_resume":return"resume";case "swipe":case "skip":case "unmuted_skip":return"skip"; +case "start":case "unmuted_start":return"start";case "third_quartile":case "unmuted_third_quartile":return"thirdquartile";case "unmute":case "unmuted_unmute":return"unmute";default:return null}}; +vE=function(z,J,m){this.Dn=z;this.G=J;this.Kh=m;this.T=new Set;this.K=new Map;QG().subscribe("adactiveviewmeasurable",this.EM,this);QG().subscribe("adfullyviewableaudiblehalfdurationimpression",this.hk,this);QG().subscribe("adviewableimpression",this.CL,this);QG().subscribe("adaudioaudible",this.m2,this);QG().subscribe("adaudiomeasurable",this.Z3,this)}; +ri=function(z,J,m){var e=m.s6,T=m.KU,E=m.listener,Z=m.QO;m=m.Jz===void 0?!1:m.Jz;if(z.K.has(J))IU("Unexpected registration of layout in LidarApi");else{if(Z){if(z.T.has(Z))return;z.T.add(Z)}z.K.set(J,E);ET($K().VQ,"fmd",1);jg1(BN(az),e);var c=m?J:void 0;Iwj(QG(),J,{Yp:function(){if(!T)return{};var W=z.G.getPresentingPlayerType(!0),l;return(l=z.G.getVideoData(W))!=null&&l.isAd()?{currentTime:z.Dn.get().getCurrentTimeSec(W,!1,c),duration:T,isPlaying:so(z.Dn.get(),W).isPlaying(),isVpaid:!1,isYouTube:!0, +volume:z.Dn.get().isMuted()?0:z.Dn.get().getVolume()/100}:{}}})}}; +zW=function(z,J){z.K.has(J)?(z.K.delete(J),delete QG().K[J]):IU("Unexpected unregistration of layout in LidarApi")}; +pWb=function(z,J){if(z.G.isLifaAdPlaying()){var m=z.G.eY(!0,!0);z.sQ(J,m.width*.5*1.1,m.height*.25*1.1,m.width*.5*.9,m.height*.5*.9)}}; +GJf=function(z,J,m){var e={};yWb(z,e,J,m);Nqq(e);e.LACT=Jn(function(){return bE().toString()}); +e.VIS=Jn(function(){return z.getVisibilityState().toString()}); +e.SDKV="h.3.0";e.VOL=Jn(function(){return z.isMuted()?"0":Math.round(z.getVolume()).toString()}); +e.VED="";return e}; +XWR=function(z,J){var m={};if(J)return m;if(!z.kind)return g.jk(Error("AdPlacementConfig without kind")),m;if(z.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||z.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!z.adTimeOffset||!z.adTimeOffset.offsetStartMilliseconds)return g.jk(Error("malformed AdPlacementConfig")),m;m.MIDROLL_POS=Jn(pB(Math.round(ZL(z.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else m.MIDROLL_POS=Jn(pB("0"));return m}; +Jn=function(z){return{toString:function(){return z()}}}; +nRq=function(z,J,m){function e(c,W){(W=m[W])&&(E[c]=W)} +function T(c,W){(W=m[W])&&(E[c]=Z(W))} +if(!m||g.xf(m))return z;var E=Object.assign({},z),Z=J?encodeURIComponent:function(c){return c}; +T("DV_VIEWABILITY","doubleVerifyViewability");T("IAS_VIEWABILITY","integralAdsViewability");T("MOAT_INIT","moatInit");T("MOAT_VIEWABILITY","moatViewability");e("GOOGLE_VIEWABILITY","googleViewability");e("VIEWABILITY","viewability");return E}; +yWb=function(z,J,m,e){J.CPN=Jn(function(){var T;(T=z.getVideoData(1))?T=T.clientPlaybackNonce:(g.hr(Error("Video data is null.")),T=null);return T}); +J.AD_MT=Jn(function(){if(e!=null)var T=e;else{var E=m;z.W().C("html5_ssap_use_cpn_to_get_time")||(E=void 0);if(z.W().C("enable_h5_shorts_ad_fill_ad_mt_macro")||z.W().C("enable_desktop_discovery_pings_ad_mt_macro")||g.Li(z.W())){var Z=z.getPresentingPlayerType(!0),c;T=((c=z.getVideoData(Z))==null?0:c.isAd())?Y4q(z,Z,E):0}else T=Y4q(z,2,E)}return Math.round(Math.max(0,T*1E3)).toString()}); +J.MT=Jn(function(){return Math.round(Math.max(0,z.getCurrentTime(1,!1)*1E3)).toString()}); +J.P_H=Jn(function(){return z.zf().XE().height.toString()}); +J.P_W=Jn(function(){return z.zf().XE().width.toString()}); +J.PV_H=Jn(function(){return z.zf().getVideoContentRect().height.toString()}); +J.PV_W=Jn(function(){return z.zf().getVideoContentRect().width.toString()})}; +Nqq=function(z){z.CONN=Jn(pB("0"));z.WT=Jn(function(){return Date.now().toString()})}; +Y4q=function(z,J,m){return m!==void 0?z.getCurrentTime(J,!1,m):z.getCurrentTime(J,!1)}; +Cnf=function(){}; +awb=function(z,J,m,e,T){var E,Z,c,W,l,w,q,d,I,O,G,n,C;g.D(function(K){switch(K.K){case 1:E=!!J.scrubReferrer;Z=g.Dn(J.baseUrl,nRq(m,E,e));c={};if(!J.headers){K.U2(2);break}W=z.U();if(!W.K){l=W.getValue();K.U2(3);break}return g.S(K,W.K,4);case 4:l=K.T;case 3:w=l;q=g.y(J.headers);for(d=q.next();!d.done;d=q.next())switch(I=d.value,I.headerType){case "VISITOR_ID":g.Qt("VISITOR_DATA")&&(c["X-Goog-Visitor-Id"]=g.Qt("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.Qt("EOM_VISITOR_DATA")&&(c["X-Goog-EOM-Visitor-Id"]= +g.Qt("EOM_VISITOR_DATA"));break;case "USER_AUTH":w&&(c.Authorization="Bearer "+w);break;case "PLUS_PAGE_ID":(O=z.Z())&&(c["X-Goog-PageId"]=O);break;case "AUTH_USER":G=z.K();!w&&G&&(c["X-Goog-AuthUser"]=G);break;case "DATASYNC_ID":if(n=void 0,(n=z.S())==null?0:n.j4("enable_datasync_id_header_in_web_vss_pings"))C=z.T(),lv(Z)&&g.Qt("LOGGED_IN")&&C&&(c["X-YouTube-DataSync-Id"]=C)}"X-Goog-EOM-Visitor-Id"in c&&"X-Goog-Visitor-Id"in c&&delete c["X-Goog-Visitor-Id"];case 2:g.HA(Z,void 0,E,Object.keys(c).length!== +0?c:void 0,"",!0,T),g.nq(K)}})}; +KRq=function(z,J,m,e,T){this.U=z;this.Z=J;this.K=m;this.T=e;this.S=T}; +Bqu=function(z,J){this.K=z;this.Kh=J}; +ma=function(z,J,m,e,T,E,Z){var c=c===void 0?new KRq(function(){var W=z.W(),l=z.getVideoData(1);return g.El(W,l?g.ui(l):"")},function(){return z.W().pageId},function(){return z.W().Tf},function(){var W; +return(W=z.W().datasyncId)!=null?W:""},function(){return z.W().experiments}):c; +this.G=z;this.T=J;this.xu=m;this.Ch=e;this.XM=T;this.Kh=E;this.UL=Z;this.U=c;this.j$=null;this.K=new Map;this.S=new Bqu(c,this.Kh)}; +fwR=function(z,J,m,e,T){var E=bg(z.T.get(),m);E?(m=bw(z,S4q(E),E,void 0,void 0,e),J.hasOwnProperty("baseUrl")?z.U.send(J,m):z.S.send(J,m,{},T)):IU("Trying to ping from an unknown layout",void 0,void 0,{layoutId:m})}; +NF4=function(z,J,m,e,T,E){e=e===void 0?[]:e;var Z=bg(z.T.get(),J);if(Z){var c=z.xu.get().YE(J,m),W=bw(z,S4q(Z),Z,T,E);e.forEach(function(l,w){l.baseUrl&&(z.S.send(l.baseUrl,W,c,l.attributionSrcMode),l.serializedAdPingMetadata&&z.XM.jT("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,Z,new sEq(l,w),void 0,void 0,Z.adLayoutLoggingData))})}else IU("Trying to track from an unknown layout.",void 0,void 0,{layoutId:J, +trackingType:m})}; +Cf=function(z,J){z.G.sendVideoStatsEngageEvent(J,void 0,2)}; +Jw=function(z,J){g.qq("adsClientStateChange",J)}; +DXu=function(z,J){z.K.has(J.u0())?IU("Trying to register an existing AdErrorInfoSupplier."):z.K.set(J.u0(),J)}; +bVf=function(z,J){z.K.delete(J.u0())||IU("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; +Ti=function(z,J,m){typeof m==="string"?z.G.getVideoData(1).OM(J,m):z.G.getVideoData(1).ph(J,m)}; +S4q=function(z){var J=FB(z.clientMetadata,"metadata_type_ad_placement_config");z=FB(z.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:J,d7:z}}; +bw=function(z,J,m,e,T,E){var Z=m?$Xs(z):{},c=m?gRE(z,m.layoutId):{},W=xXq(z),l,w=T!=null?T:(l=N4(z.Ch.get(),2))==null?void 0:l.clientPlaybackNonce;T=void 0;if(m){var q;if((q=z.UL.K.get(m.layoutId))==null?0:q.Jz)T=m.layoutId}q={};z=Object.assign({},GJf(z.G,T,e),XWR(J.adPlacementConfig,(m==null?void 0:m.renderingContent)!==void 0),c,Z,W,(q.FINAL=Jn(function(){return"1"}),q.AD_CPN=Jn(function(){return w||""}),q)); +(m==null?void 0:m.renderingContent)!==void 0||(z.SLOT_POS=Jn(function(){return(J.d7||0).toString()})); +m={};E=Object.assign({},z,E);z=g.y(Object.values(MNf));for(e=z.next();!e.done;e=z.next())e=e.value,Z=E[e],Z!=null&&Z.toString()!=null&&(m[e]=Z.toString());return m}; +$Xs=function(z){var J={},m,e=(m=z.j$)==null?void 0:m.Vn/1E3;e!=null&&(J.SURVEY_ELAPSED_MS=Jn(function(){return Math.round(e*1E3).toString()})); +J.SURVEY_LOCAL_TIME_EPOCH_S=Jn(function(){return Math.round(Date.now()/1E3).toString()}); +return J}; +gRE=function(z,J){z=z.K.get(J);if(!z)return{};z=z.KP();if(!z)return{};J={};return J.YT_ERROR_CODE=z.LM.toString(),J.ERRORCODE=z.v$.toString(),J.ERROR_MSG=z.errorMessage,J}; +xXq=function(z){var J={},m=z.G.getVideoData(1);J.ASR=Jn(function(){var e;return(e=m==null?void 0:m.Yb)!=null?e:null}); +J.EI=Jn(function(){var e;return(e=m==null?void 0:m.eventId)!=null?e:null}); +return J}; +eu=function(z,J,m){g.h.call(this);this.G=z;this.qF=J;this.Kh=m;this.listeners=[];this.zy=null;this.XX=new Map;J=new g.jl(this);g.u(this,J);J.L(z,"videodatachange",this.FNi);J.L(z,"serverstitchedvideochange",this.Y4y);this.lm=N4(this)}; +N4=function(z,J){var m=z.G.getVideoData(J);return m?z.vn(m,J||z.G.getPresentingPlayerType(!0)):null}; +AW1=function(z,J,m){var e=z.vn(J,m);z.lm=e;z.listeners.forEach(function(T){T.Yg(e)})}; +oRq=function(z){switch(z){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7}}; +TW=function(z,J,m){g.h.call(this);this.G=z;this.Ch=J;this.Kh=m;this.listeners=[];this.t1=[];this.K=function(){IU("Called 'doUnlockPreroll' before it's initialized.")}; +J=new bM(this);m=new g.jl(this);g.u(this,m);g.u(this,J);J.L(z,"progresssync",this.rwy);J.L(z,"presentingplayerstatechange",this.Er6);J.L(z,"fullscreentoggled",this.onFullscreenToggled);J.L(z,"onVolumeChange",this.onVolumeChange);J.L(z,"minimized",this.s9);J.L(z,"overlayvisibilitychange",this.vz);J.L(z,"shortsadswipe",this.oF);J.L(z,"resize",this.yQ);m.L(z,g.F8("appad"),this.fA)}; +E_=function(z){LX(z.Kh.get())||z.K()}; +j8u=function(z,J){z.t1=z.t1.filter(function(m){return m!==J})}; +Zq=function(z,J,m){return z.getCurrentTimeSec(J,m)}; +hku=function(z,J){var m;J=(m=z.Ch.get().XX.get(J))!=null?m:null;if(J===null)return IU("Expected ad video start time on playback timeline"),0;z=z.G.getCurrentTime(2,!0);return z0){var E=J.end.toString();T.forEach(function(Z){(Z=Z.config&&Z.config.adPlacementConfig)&&Z.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&Z.adTimeOffset&&Z.adTimeOffset.offsetEndMilliseconds==="-1"&&Z.adTimeOffset.offsetEndMilliseconds!==E&&(Z.adTimeOffset.offsetEndMilliseconds=E)}); +e.map(function(Z){return g.P(Z,ur)}).forEach(function(Z){var c; +(Z=Z==null?void 0:(c=Z.slotEntryTrigger)==null?void 0:c.mediaTimeRangeTrigger)&&Z.offsetEndMilliseconds==="-1"&&(Z.offsetEndMilliseconds=E)})}return{Ad:T, +adSlots:e,tN:!1,ssdaiAdsConfig:z.ssdaiAdsConfig}}; +lT=function(z){g.h.call(this);this.G=z;this.listeners=[];this.K=new bM(this);g.u(this,this.K);this.K.L(this.G,"aduxclicked",this.onAdUxClicked);this.K.L(this.G,"aduxmouseover",this.E$);this.K.L(this.G,"aduxmouseout",this.h9);this.K.L(this.G,"muteadaccepted",this.zwz)}; +HVj=function(z,J,m){J=g.Ch(J,function(e){return new xqu(e,m,e.id)}); +z.G.B1("onAdUxUpdate",J)}; +w4=function(z,J){z=g.y(z.listeners);for(var m=z.next();!m.done;m=z.next())J(m.value)}; +qa=function(z,J){this.T=z;this.S=J===void 0?!1:J;this.K={}}; +UXq=function(z,J){var m=z.startSecs+z.zt;m=m<=0?null:m;if(m===null)return null;switch(z.event){case "start":case "continue":case "stop":break;case "predictStart":if(J)break;return null;default:return null}J=Math.max(z.startSecs,0);return{GO:new Kz(J,m),r62:new Vf(J,m-J,z.context,z.identifier,z.event,z.K)}}; +Rkq=function(){this.K=[]}; +OMR=function(z,J,m){var e=g.cu(z.K,J);if(e>=0)return J;J=-e-1;return J>=z.K.length||z.K[J]>m?null:z.K[J]}; +d4=function(z,J,m){g.h.call(this);this.G=z;this.Kh=J;this.Zn=m;this.listeners=[];this.U=!1;this.TJ=[];this.K=null;this.Z=new qa(this,FRf(J.get()));this.S=new Rkq;this.T=null}; +kJf=function(z,J){z.TJ.push(J);for(var m=!1,e=g.y(z.listeners),T=e.next();!T.done;T=e.next())m=T.value.Po(J)||m;z.U=m;Yi(z.Kh.get())&&Ti(z.Zn.get(),"onci","cpi."+J.identifier+";cpe."+J.event+";cps."+J.startSecs+";cbi."+m)}; +Q8j=function(z,J){Jw(z.Zn.get(),{cuepointTrigger:{event:LRu(J.event),cuepointId:J.identifier,totalCueDurationMs:J.zt*1E3,playheadTimeMs:J.K,cueStartTimeMs:J.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:z.G.getVideoData(1).clientPlaybackNonce}})}; +LRu=function(z){switch(z){case "unknown":return"CUEPOINT_EVENT_UNKNOWN";case "start":return"CUEPOINT_EVENT_START";case "continue":return"CUEPOINT_EVENT_CONTINUE";case "stop":return"CUEPOINT_EVENT_STOP";case "predictStart":return"CUEPOINT_EVENT_PREDICT_START";default:return Ei(z,"Unexpected cuepoint event")}}; +II=function(z){this.G=z}; +vRz=function(z,J){z.G.cueVideoByPlayerVars(J,2)}; +O_=function(z){this.G=z}; +pR=function(z){this.G=z}; +s8u=function(z){switch(z){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7;default:Ei(z,"unknown transitionReason")}}; +rWb=function(z){this.G=z}; +z6z=function(z,J,m,e,T){g.h.call(this);var E=this,Z=P9(function(){return new vC(E.Kh)}); +g.u(this,Z);var c=P9(function(){return new zu(Z,E.Kh)}); +g.u(this,c);var W=P9(function(){return new fw}); +g.u(this,W);var l=P9(function(){return new BC(z)}); +g.u(this,l);var w=P9(function(){return new Jh(Z,c,E.Kh)}); +g.u(this,w);var q=P9(function(){return new ZZ}); +g.u(this,q);this.ww=P9(function(){return new lT(J)}); +g.u(this,this.ww);this.EC=P9(function(){return new H9(T)}); +g.u(this,this.EC);this.Cr=P9(function(){return new HE(J)}); +g.u(this,this.Cr);this.gw=P9(function(){return new Uo(J)}); +g.u(this,this.gw);this.K1=P9(function(){return new II(J)}); +g.u(this,this.K1);this.TB=P9(function(){return new Rh(J)}); +g.u(this,this.TB);this.Kh=P9(function(){return new k3(J)}); +g.u(this,this.Kh);var d=P9(function(){return new WS(e)}); +g.u(this,d);var I=P9(function(){return new IG(E.Kh)}); +g.u(this,I);this.zG=P9(function(){return new O_(J)}); +g.u(this,this.zG);this.XV=P9(function(){return new kb}); +g.u(this,this.XV);this.Ch=P9(function(){return new eu(J,q,E.Kh)}); +g.u(this,this.Ch);var O=PE({Ch:this.Ch,Kh:this.Kh,YP:I}),G=O.context,n=O.UL;this.XM=O.XM;this.KZ=P9(function(){return new d4(J,E.Kh,E.Zn)}); +g.u(this,this.KZ);this.UD=P9(function(){return new pR(J)}); +g.u(this,this.UD);this.Dn=P9(function(){return new TW(J,E.Ch,E.Kh)}); +g.u(this,this.Dn);O=P9(function(){return new yc(Z,w,c,E.Kh,I,"SLOT_TYPE_ABOVE_FEED",E.Dn,E.uV,E.pc)}); +g.u(this,O);this.lC=P9(function(){return new L1(E.Kh)}); +this.xu=P9(function(){return new vE(E.Dn,J,E.Kh)}); +g.u(this,this.xu);this.Zn=P9(function(){return new ma(J,W,E.xu,E.Ch,E.XM,E.Kh,n)}); +g.u(this,this.Zn);this.Sg=new ay(Cw,yl,function(K,f,x,V){return zc(c.get(),K,f,x,V)},l,w,c,I,this.Kh,this.Ch); +g.u(this,this.Sg);this.Mx=new Kw(l,O,m,this.Kh,z,this.Ch,this.Dn,this.Cr);g.u(this,this.Mx);var C=new tI(J,this.Mx,this.Dn,this.Ch,this.KZ);this.BA=P9(function(){return C}); +this.V5=C;this.uV=new Xp(l,w,this.BA,this.KZ,this.Dn,this.Kh,this.Zn,this.UD);g.u(this,this.uV);this.tW=new ST(l,w,this.gw,this.BA,G);g.u(this,this.tW);this.XQ=new hm(this.Kh,l,w,O,this.Ch,this.tW,m);g.u(this,this.XQ);this.JJ=P9(function(){return new IP(d,c,I,E.Kh,E.Zn,E.Dn,E.UD)}); +g.u(this,this.JJ);this.CZ=P9(function(){return new Oc}); +g.u(this,this.CZ);this.Ls=new Az(z,this.ww,this.Kh);g.u(this,this.Ls);this.Bd=new oy(z);g.u(this,this.Bd);this.Hy=new jT(z);g.u(this,this.Hy);this.vK=new ug(z,this.BA,G);g.u(this,this.vK);this.TG=new Vc(z,this.gw,this.Dn,this.Ch,G);g.u(this,this.TG);this.o7=new PC(z,this.Ch);g.u(this,this.o7);this.pc=new Uv(z,this.KZ,this.Dn,this.Zn,this.BA);g.u(this,this.pc);this.Mp=new tz(z);g.u(this,this.Mp);this.gs=new Qc(z);g.u(this,this.gs);this.eg=new HC(z);g.u(this,this.eg);this.wF=new Lw(z);g.u(this,this.wF); +this.gs=new Qc(z);g.u(this,this.gs);this.Zi=P9(function(){return new $i}); +g.u(this,this.Zi);this.Ue=P9(function(){return new gV(E.Dn)}); +g.u(this,this.Ue);this.zx=P9(function(){return new hAf(E.ww,E.Zn,z,W,E.xu)}); +g.u(this,this.zx);this.VC=P9(function(){return new zk(E.XQ,l,Z)}); +g.u(this,this.VC);this.Fo=P9(function(){return new el(E.Kh,E.Zn,E.Mp,E.xu)}); +g.u(this,this.Fo);this.wq=P9(function(){return new l4(z,E.gs,E.Mp,E.Ch,E.UD,E.Dn,E.Zn,q,E.KZ,E.xu,E.lC,E.K1,E.gw,E.Cr,E.TB,E.EC,E.zG,E.Kh,W,G,n)}); +g.u(this,this.wq);this.bP=P9(function(){return new zo4(E.Dn,E.Zn,E.EC,E.Kh,E.xu,E.Ch)}); +g.u(this,this.bP);this.W4=P9(function(){return new ueq(E.ww,E.Dn,E.Zn,W,E.xu,E.Hy,E.wF,E.EC,E.Kh,m)}); +g.u(this,this.W4);this.Gi=P9(function(){return new ulq(E.ww,E.Zn,W)}); +g.u(this,this.Gi);this.Jr=new cS(z,this.XV,Z);g.u(this,this.Jr);this.kE={t_:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.XQ],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.uV],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Sg],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Mx],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.tW]]),SN:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.JJ],["SLOT_TYPE_ABOVE_FEED",this.CZ],["SLOT_TYPE_FORECASTING",this.CZ], +["SLOT_TYPE_IN_PLAYER",this.CZ],["SLOT_TYPE_PLAYER_BYTES",this.CZ],["SLOT_TYPE_PLAYER_UNDERLAY",this.CZ],["SLOT_TYPE_PLAYBACK_TRACKING",this.CZ],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.CZ]]),WB:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ls],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.Ls],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Bd],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Bd],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Bd],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Bd],["TRIGGER_TYPE_SLOT_ID_ENTERED", +this.Bd],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Bd],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Bd],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Bd],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Bd],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.Bd],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Bd],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Hy],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.vK],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.TG],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", +this.TG],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.TG],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.TG],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.TG],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.TG],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.TG],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.o7],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.o7],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Mp],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", +this.vK],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.eg],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.wF],["TRIGGER_TYPE_AD_BREAK_STARTED",this.gs],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.pc],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.pc],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.pc],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.pc],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.pc]]),WQ:new Map([["SLOT_TYPE_ABOVE_FEED",this.Zi], +["SLOT_TYPE_AD_BREAK_REQUEST",this.Zi],["SLOT_TYPE_FORECASTING",this.Zi],["SLOT_TYPE_IN_PLAYER",this.Zi],["SLOT_TYPE_PLAYER_BYTES",this.Ue],["SLOT_TYPE_PLAYER_UNDERLAY",this.Zi],["SLOT_TYPE_PLAYBACK_TRACKING",this.Zi],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Zi]]),B4:new Map([["SLOT_TYPE_ABOVE_FEED",this.zx],["SLOT_TYPE_AD_BREAK_REQUEST",this.VC],["SLOT_TYPE_FORECASTING",this.Fo],["SLOT_TYPE_PLAYER_BYTES",this.wq],["SLOT_TYPE_PLAYBACK_TRACKING",this.bP],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", +this.bP],["SLOT_TYPE_IN_PLAYER",this.W4],["SLOT_TYPE_PLAYER_UNDERLAY",this.Gi]])};this.listeners=[W.get()];this.VJ={XQ:this.XQ,kF:this.Kh.get(),gb:this.EC.get(),wR:this.Dn.get(),Mx:this.Mx,JQ:Z.get(),gV:this.XV.get(),Az:this.Ls,D4:W.get(),md:this.Ch.get()}}; +Jqq=function(z,J,m,e,T){g.h.call(this);var E=this,Z=P9(function(){return new vC(E.Kh)}); +g.u(this,Z);var c=P9(function(){return new zu(Z,E.Kh)}); +g.u(this,c);var W=P9(function(){return new fw}); +g.u(this,W);var l=P9(function(){return new BC(z)}); +g.u(this,l);var w=P9(function(){return new Jh(Z,c,E.Kh)}); +g.u(this,w);var q=P9(function(){return new ZZ}); +g.u(this,q);this.ww=P9(function(){return new lT(J)}); +g.u(this,this.ww);this.EC=P9(function(){return new H9(T)}); +g.u(this,this.EC);this.Cr=P9(function(){return new HE(J)}); +g.u(this,this.Cr);this.gw=P9(function(){return new Uo(J)}); +g.u(this,this.gw);this.K1=P9(function(){return new II(J)}); +g.u(this,this.K1);this.TB=P9(function(){return new Rh(J)}); +g.u(this,this.TB);this.Kh=P9(function(){return new k3(J)}); +g.u(this,this.Kh);var d=P9(function(){return new WS(e)}); +g.u(this,d);var I=P9(function(){return new IG(E.Kh)}); +g.u(this,I);var O=P9(function(){return new yc(Z,w,c,E.Kh,I,null,null,E.uV,E.pc)}); +g.u(this,O);this.zG=P9(function(){return new O_(J)}); +g.u(this,this.zG);this.XV=P9(function(){return new kb}); +g.u(this,this.XV);this.Ch=P9(function(){return new eu(J,q,E.Kh)}); +g.u(this,this.Ch);var G=PE({Ch:this.Ch,Kh:this.Kh,YP:I}),n=G.context,C=G.UL;this.XM=G.XM;this.KZ=P9(function(){return new d4(J,E.Kh,E.Zn)}); +this.Dn=P9(function(){return new TW(J,E.Ch,E.Kh)}); +g.u(this,this.Dn);this.xu=P9(function(){return new vE(E.Dn,J,E.Kh)}); +g.u(this,this.xu);this.Zn=P9(function(){return new ma(J,W,E.xu,E.Ch,E.XM,E.Kh,C)}); +g.u(this,this.Zn);this.lC=P9(function(){return new L1(E.Kh)}); +g.u(this,this.lC);this.Sg=new ay(Cw,yl,function(f,x,V,zE){return zc(c.get(),f,x,V,zE)},l,w,c,I,this.Kh,this.Ch); +g.u(this,this.Sg);this.Mx=new Kw(l,O,m,this.Kh,z,this.Ch,this.Dn,this.Cr);g.u(this,this.Mx);var K=new tI(J,this.Mx,this.Dn,this.Ch,this.KZ);this.BA=P9(function(){return K}); +this.V5=K;this.uV=new Xp(l,w,this.BA,this.KZ,this.Dn,this.Kh,this.Zn);g.u(this,this.uV);this.tW=new ST(l,w,this.gw,this.BA,n);g.u(this,this.tW);this.XQ=new hm(this.Kh,l,w,O,this.Ch,this.tW,m);g.u(this,this.XQ);this.JJ=P9(function(){return new IP(d,c,I,E.Kh,E.Zn,E.Dn)}); +g.u(this,this.JJ);this.CZ=P9(function(){return new Oc}); +g.u(this,this.CZ);this.Ls=new Az(z,this.ww,this.Kh);g.u(this,this.Ls);this.Bd=new oy(z);g.u(this,this.Bd);this.Hy=new jT(z);g.u(this,this.Hy);this.vK=new ug(z,this.BA,n);g.u(this,this.vK);this.TG=new Vc(z,this.gw,this.Dn,this.Ch,n);g.u(this,this.TG);this.Mp=new tz(z);g.u(this,this.Mp);this.eg=new HC(z);g.u(this,this.eg);this.wF=new Lw(z);g.u(this,this.wF);this.UD=P9(function(){return new pR(J)}); +g.u(this,this.UD);this.gs=new Qc(z);g.u(this,this.gs);this.pc=new Uv(z,this.KZ,this.Dn,this.Zn,this.BA);g.u(this,this.pc);this.Zi=P9(function(){return new $i}); +g.u(this,this.Zi);this.Ue=P9(function(){return new gV(E.Dn)}); +g.u(this,this.Ue);this.VC=P9(function(){return new zk(E.XQ,l,Z)}); +g.u(this,this.VC);this.Fo=P9(function(){return new el(E.Kh,E.Zn,E.Mp,E.xu)}); +g.u(this,this.Fo);this.W4=P9(function(){return new Vjq(E.ww,E.Dn,E.Zn,W,E.xu,E.Hy,E.wF,E.EC,E.Kh,m)}); +g.u(this,this.W4);this.wq=P9(function(){return new wU(z,E.gs,E.Mp,E.Zn,E.xu,E.lC,E.K1,E.Ch,E.Dn,E.gw,E.Cr,E.TB,E.EC,E.zG,E.Kh,E.UD,n,C)}); +g.u(this,this.wq);this.Jr=new cS(z,this.XV,Z);g.u(this,this.Jr);this.kE={t_:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.XQ],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.uV],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Sg],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Mx],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.tW]]),SN:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.JJ],["SLOT_TYPE_FORECASTING",this.CZ],["SLOT_TYPE_IN_PLAYER",this.CZ], +["SLOT_TYPE_PLAYER_BYTES",this.CZ]]),WB:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ls],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Bd],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Bd],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Bd],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Bd],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Bd],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Bd],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Bd],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Bd],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Bd], +["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.Bd],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Hy],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.vK],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.TG],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.TG],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.TG],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Mp],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.vK],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.eg],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", +this.wF],["TRIGGER_TYPE_AD_BREAK_STARTED",this.gs],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.pc],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.pc],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.pc],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.pc],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.pc]]),WQ:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Zi],["SLOT_TYPE_FORECASTING",this.Zi],["SLOT_TYPE_IN_PLAYER",this.Zi],["SLOT_TYPE_PLAYER_BYTES",this.Ue]]), +B4:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.VC],["SLOT_TYPE_FORECASTING",this.Fo],["SLOT_TYPE_IN_PLAYER",this.W4],["SLOT_TYPE_PLAYER_BYTES",this.wq]])};this.listeners=[W.get()];this.VJ={XQ:this.XQ,kF:this.Kh.get(),gb:this.EC.get(),wR:this.Dn.get(),Mx:this.Mx,JQ:Z.get(),gV:this.XV.get(),Az:this.Ls,D4:W.get(),md:this.Ch.get()}}; +myb=function(z,J,m,e,T){g.h.call(this);var E=this,Z=P9(function(){return new vC(E.Kh)}); +g.u(this,Z);var c=P9(function(){return new zu(Z,E.Kh)}); +g.u(this,c);var W=P9(function(){return new fw}); +g.u(this,W);var l=P9(function(){return new BC(z)}); +g.u(this,l);var w=P9(function(){return new Jh(Z,c,E.Kh)}); +g.u(this,w);var q=P9(function(){return new ZZ}); +g.u(this,q);this.ww=P9(function(){return new lT(J)}); +g.u(this,this.ww);this.EC=P9(function(){return new H9(T)}); +g.u(this,this.EC);this.Cr=P9(function(){return new HE(J)}); +g.u(this,this.Cr);this.gw=P9(function(){return new Uo(J)}); +g.u(this,this.gw);this.K1=P9(function(){return new II(J)}); +g.u(this,this.K1);this.TB=P9(function(){return new Rh(J)}); +g.u(this,this.TB);this.Kh=P9(function(){return new k3(J)}); +g.u(this,this.Kh);var d=P9(function(){return new WS(e)}); +g.u(this,d);var I=P9(function(){return new IG(E.Kh)}); +g.u(this,I);var O=P9(function(){return new yc(Z,w,c,E.Kh,I,null,null,null,null)}); +g.u(this,O);this.zG=P9(function(){return new O_(J)}); +g.u(this,this.zG);this.Ch=P9(function(){return new eu(J,q,E.Kh)}); +g.u(this,this.Ch);var G=PE({Ch:this.Ch,Kh:this.Kh,YP:I}),n=G.context,C=G.UL;this.XM=G.XM;this.Dn=P9(function(){return new TW(J,E.Ch,E.Kh)}); +g.u(this,this.Dn);this.xu=P9(function(){return new vE(E.Dn,J,E.Kh)}); +g.u(this,this.xu);this.Zn=P9(function(){return new ma(J,W,E.xu,E.Ch,E.XM,E.Kh,C)}); +g.u(this,this.Zn);this.lC=P9(function(){return new L1(E.Kh)}); +g.u(this,this.lC);this.Sg=new ay(Cw,yl,function(f,x,V,zE){return zc(c.get(),f,x,V,zE)},l,w,c,I,this.Kh,this.Ch); +g.u(this,this.Sg);this.Mx=new Kw(l,O,m,this.Kh,z,this.Ch,this.Dn,this.Cr);g.u(this,this.Mx);var K=new tI(J,this.Mx,this.Dn,this.Ch);this.BA=P9(function(){return K}); +this.V5=K;this.tW=new ST(l,w,this.gw,this.BA,n);g.u(this,this.tW);this.XQ=new hm(this.Kh,l,w,O,this.Ch,this.tW,m);g.u(this,this.XQ);this.JJ=P9(function(){return new IP(d,c,I,E.Kh,E.Zn,E.Dn)}); +g.u(this,this.JJ);this.CZ=P9(function(){return new Oc}); +g.u(this,this.CZ);this.Ls=new Az(z,this.ww,this.Kh);g.u(this,this.Ls);this.Bd=new oy(z);g.u(this,this.Bd);this.vK=new ug(z,this.BA,n);g.u(this,this.vK);this.TG=new Vc(z,this.gw,this.Dn,this.Ch,n);g.u(this,this.TG);this.Mp=new tz(z);g.u(this,this.Mp);this.eg=new HC(z);g.u(this,this.eg);this.UD=P9(function(){return new pR(J)}); +g.u(this,this.UD);this.gs=new Qc(z);g.u(this,this.gs);this.Zi=P9(function(){return new $i}); +g.u(this,this.Zi);this.Ue=P9(function(){return new gV(E.Dn)}); +g.u(this,this.Ue);this.VC=P9(function(){return new zk(E.XQ,l,Z)}); +g.u(this,this.VC);this.Fo=P9(function(){return new el(E.Kh,E.Zn,E.Mp,E.xu)}); +g.u(this,this.Fo);this.Pp=P9(function(){return new rJE(E.ww,E.Dn,E.Zn,W,m,E.Kh)}); +g.u(this,this.Pp);this.wq=P9(function(){return new wU(z,E.gs,E.Mp,E.Zn,E.xu,E.lC,E.K1,E.Ch,E.Dn,E.gw,E.Cr,E.TB,E.EC,E.zG,E.Kh,E.UD,n,C)}); +g.u(this,this.wq);this.kE={t_:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.XQ],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Sg],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Mx],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.tW]]),SN:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.JJ],["SLOT_TYPE_FORECASTING",this.CZ],["SLOT_TYPE_IN_PLAYER",this.CZ],["SLOT_TYPE_PLAYER_BYTES",this.CZ]]),WB:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ls],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", +this.Bd],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Bd],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Bd],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Bd],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Bd],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Bd],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Bd],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Bd],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Bd],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.vK],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.TG],["TRIGGER_TYPE_MEDIA_TIME_RANGE", +this.TG],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Mp],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.vK],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.eg],["TRIGGER_TYPE_AD_BREAK_STARTED",this.gs]]),WQ:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Zi],["SLOT_TYPE_ABOVE_FEED",this.Zi],["SLOT_TYPE_FORECASTING",this.Zi],["SLOT_TYPE_IN_PLAYER",this.Zi],["SLOT_TYPE_PLAYER_BYTES",this.Ue]]),B4:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.VC],["SLOT_TYPE_FORECASTING",this.Fo],["SLOT_TYPE_IN_PLAYER", +this.Pp],["SLOT_TYPE_PLAYER_BYTES",this.wq]])};this.listeners=[W.get()];this.VJ={XQ:this.XQ,kF:this.Kh.get(),gb:this.EC.get(),wR:this.Dn.get(),Mx:this.Mx,JQ:Z.get(),gV:null,Az:this.Ls,D4:W.get(),md:this.Ch.get()}}; +e6f=function(z,J,m,e,T){g.h.call(this);var E=this,Z=P9(function(){return new vC(E.Kh)}); +g.u(this,Z);var c=P9(function(){return new zu(Z,E.Kh)}); +g.u(this,c);var W=P9(function(){return new fw}); +g.u(this,W);var l=P9(function(){return new BC(z)}); +g.u(this,l);var w=P9(function(){return new Jh(Z,c,E.Kh)}); +g.u(this,w);var q=P9(function(){return new ZZ}); +g.u(this,q);this.BB=P9(function(){return new rWb(J)}); +g.u(this,this.BB);this.ww=P9(function(){return new lT(J)}); +g.u(this,this.ww);this.EC=P9(function(){return new H9(T)}); +g.u(this,this.EC);this.Cr=P9(function(){return new HE(J)}); +g.u(this,this.Cr);this.gw=P9(function(){return new Uo(J)}); +g.u(this,this.gw);this.K1=P9(function(){return new II(J)}); +g.u(this,this.K1);this.TB=P9(function(){return new Rh(J)}); +g.u(this,this.TB);this.Kh=P9(function(){return new k3(J)}); +g.u(this,this.Kh);var d=P9(function(){return new WS(e)}); +g.u(this,d);var I=P9(function(){return new IG(E.Kh)}); +g.u(this,I);var O=P9(function(){return new yc(Z,w,c,E.Kh,I,null,null,null,null)}); +g.u(this,O);this.zG=P9(function(){return new O_(J)}); +g.u(this,this.zG);this.Ch=P9(function(){return new eu(J,q,E.Kh)}); +g.u(this,this.Ch);var G=PE({Ch:this.Ch,Kh:this.Kh,YP:I}),n=G.context,C=G.UL;this.XM=G.XM;this.Dn=P9(function(){return new TW(J,E.Ch,E.Kh)}); +g.u(this,this.Dn);this.xu=P9(function(){return new vE(E.Dn,J,E.Kh)}); +g.u(this,this.xu);this.Zn=P9(function(){return new ma(J,W,E.xu,E.Ch,E.XM,E.Kh,C)}); +g.u(this,this.Zn);this.lC=P9(function(){return new L1(E.Kh)}); +g.u(this,this.lC);this.Sg=new ay(aSb,yl,function(f,x,V,zE){return R5R(c.get(),f,x,V,zE)},l,w,c,I,this.Kh,this.Ch); +g.u(this,this.Sg);this.Mx=new Kw(l,O,m,this.Kh,z,this.Ch,this.Dn,this.Cr);g.u(this,this.Mx);var K=new tI(J,this.Mx,this.Dn,this.Ch);this.BA=P9(function(){return K}); +this.V5=K;this.tW=new ST(l,w,this.gw,this.BA,n);g.u(this,this.tW);this.XQ=new hm(this.Kh,l,w,O,this.Ch,this.tW,m);g.u(this,this.XQ);this.JJ=P9(function(){return new IP(d,c,I,E.Kh,E.Zn,E.Dn)}); +g.u(this,this.JJ);this.CZ=P9(function(){return new Oc}); +g.u(this,this.CZ);this.Ls=new Az(z,this.ww,this.Kh);g.u(this,this.Ls);this.Bd=new oy(z);g.u(this,this.Bd);this.vK=new ug(z,this.BA,n);g.u(this,this.vK);this.TG=new Vc(z,this.gw,this.Dn,this.Ch,n);g.u(this,this.TG);this.Mp=new tz(z);g.u(this,this.Mp);this.eg=new HC(z);g.u(this,this.eg);this.UD=P9(function(){return new pR(J)}); +g.u(this,this.UD);this.gs=new Qc(z);g.u(this,this.gs);this.Zi=P9(function(){return new $i}); +g.u(this,this.Zi);this.Ue=P9(function(){return new gV(E.Dn)}); +g.u(this,this.Ue);this.VC=P9(function(){return new zk(E.XQ,l,Z)}); +g.u(this,this.VC);this.Fo=P9(function(){return new el(E.Kh,E.Zn,E.Mp,E.xu)}); +g.u(this,this.Fo);this.wq=P9(function(){return new wU(z,E.gs,E.Mp,E.Zn,E.xu,E.lC,E.K1,E.Ch,E.Dn,E.gw,E.Cr,E.TB,E.EC,E.zG,E.Kh,E.UD,n,C)}); +g.u(this,this.wq);this.g3=P9(function(){return new tj4(E.ww,E.Dn,E.Zn,W,E.BB,m,E.Ch)}); +g.u(this,this.g3);this.kE={t_:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.XQ],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Sg],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Mx],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.tW]]),SN:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.JJ],["SLOT_TYPE_FORECASTING",this.CZ],["SLOT_TYPE_IN_PLAYER",this.CZ],["SLOT_TYPE_PLAYER_BYTES",this.CZ]]),WB:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Ls],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", +this.Bd],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Bd],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Bd],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Bd],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Bd],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Bd],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Bd],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Bd],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Bd],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.vK],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.TG],["TRIGGER_TYPE_MEDIA_TIME_RANGE", +this.TG],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Mp],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.vK],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.eg],["TRIGGER_TYPE_AD_BREAK_STARTED",this.gs]]),WQ:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Zi],["SLOT_TYPE_FORECASTING",this.Zi],["SLOT_TYPE_IN_PLAYER",this.Zi],["SLOT_TYPE_PLAYER_BYTES",this.Ue]]),B4:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.VC],["SLOT_TYPE_FORECASTING",this.Fo],["SLOT_TYPE_IN_PLAYER",this.g3],["SLOT_TYPE_PLAYER_BYTES", +this.wq]])};this.listeners=[W.get()];this.VJ={XQ:this.XQ,kF:this.Kh.get(),gb:this.EC.get(),wR:this.Dn.get(),Mx:this.Mx,JQ:Z.get(),gV:null,Az:this.Ls,D4:W.get(),md:this.Ch.get()}}; +T5R=function(z,J,m,e,T){g.h.call(this);var E=this,Z=P9(function(){return new vC(E.Kh)}); +g.u(this,Z);var c=P9(function(){return new zu(Z,E.Kh)}); +g.u(this,c);var W=P9(function(){return new fw}); +g.u(this,W);var l=P9(function(){return new BC(z)}); +g.u(this,l);var w=P9(function(){return new Jh(Z,c,E.Kh)}); +g.u(this,w);var q=P9(function(){return new ZZ}); +g.u(this,q);this.BB=P9(function(){return new rWb(J)}); +g.u(this,this.BB);this.ww=P9(function(){return new lT(J)}); +g.u(this,this.ww);this.EC=P9(function(){return new H9(T)}); +g.u(this,this.EC);this.Cr=P9(function(){return new HE(J)}); +g.u(this,this.Cr);this.gw=P9(function(){return new Uo(J)}); +g.u(this,this.gw);this.K1=P9(function(){return new II(J)}); +g.u(this,this.K1);this.TB=P9(function(){return new Rh(J)}); +g.u(this,this.TB);this.Kh=P9(function(){return new k3(J)}); +g.u(this,this.Kh);var d=P9(function(){return new WS(e)}); +g.u(this,d);var I=P9(function(){return new IG(E.Kh)}); +g.u(this,I);this.zG=P9(function(){return new O_(J)}); +g.u(this,this.zG);this.Ch=P9(function(){return new eu(J,q,E.Kh)}); +g.u(this,this.Ch);var O=PE({Ch:this.Ch,Kh:this.Kh,YP:I}),G=O.context,n=O.UL;this.XM=O.XM;this.KZ=P9(function(){return new d4(J,E.Kh,E.Zn)}); +g.u(this,this.KZ);this.UD=P9(function(){return new pR(J)}); +g.u(this,this.UD);this.Dn=P9(function(){return new TW(J,E.Ch,E.Kh)}); +g.u(this,this.Dn);O=P9(function(){return new yc(Z,w,c,E.Kh,I,null,E.Dn,E.uV,E.pc,3)}); +g.u(this,O);this.lC=P9(function(){return new L1(E.Kh)}); +this.xu=P9(function(){return new vE(E.Dn,J,E.Kh)}); +g.u(this,this.xu);this.Zn=P9(function(){return new ma(J,W,E.xu,E.Ch,E.XM,E.Kh,n)}); +g.u(this,this.Zn);this.Mx=new Kw(l,O,m,this.Kh,z,this.Ch,this.Dn,this.Cr);g.u(this,this.Mx);var C=new tI(J,this.Mx,this.Dn,this.Ch,this.KZ);this.BA=P9(function(){return C}); +this.V5=C;this.Sg=new ay(Kjf,yl,function(K,f,x,V){return R5R(c.get(),K,f,x,V)},l,w,c,I,this.Kh,this.Ch); +g.u(this,this.Sg);this.uV=new Xp(l,w,this.BA,this.KZ,this.Dn,this.Kh,this.Zn,this.UD);g.u(this,this.uV);this.tW=new ST(l,w,this.gw,this.BA,G);g.u(this,this.tW);this.XQ=new hm(this.Kh,l,w,O,this.Ch,this.tW,m);g.u(this,this.XQ);this.JJ=P9(function(){return new IP(d,c,I,E.Kh,E.Zn,E.Dn,E.UD)}); +g.u(this,this.JJ);this.CZ=P9(function(){return new Oc}); +g.u(this,this.CZ);this.Ls=new Az(z,this.ww,this.Kh);g.u(this,this.Ls);this.Bd=new oy(z);g.u(this,this.Bd);this.vK=new ug(z,this.BA,G);g.u(this,this.vK);this.TG=new Vc(z,this.gw,this.Dn,this.Ch,G);g.u(this,this.TG);this.o7=new PC(z,this.Ch);g.u(this,this.o7);this.pc=new Uv(z,this.KZ,this.Dn,this.Zn,this.BA);g.u(this,this.pc);this.Mp=new tz(z);g.u(this,this.Mp);this.eg=new HC(z);g.u(this,this.eg);this.gs=new Qc(z);g.u(this,this.gs);this.Zi=P9(function(){return new $i}); +g.u(this,this.Zi);this.Ue=P9(function(){return new gV(E.Dn)}); +g.u(this,this.Ue);this.VC=P9(function(){return new zk(E.XQ,l,Z)}); +g.u(this,this.VC);this.Fo=P9(function(){return new el(E.Kh,E.Zn,E.Mp,E.xu)}); +g.u(this,this.Fo);this.wq=P9(function(){return new l4(z,E.gs,E.Mp,E.Ch,E.UD,E.Dn,E.Zn,q,E.KZ,E.xu,E.lC,E.K1,E.gw,E.Cr,E.TB,E.EC,E.zG,E.Kh,W,G,n)}); +g.u(this,this.wq);this.W4=P9(function(){return new HMq(E.ww,E.Dn,E.Zn,W,E.BB,m,E.Kh,E.Ch)}); +g.u(this,this.W4);this.kE={t_:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.XQ],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.uV],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Sg],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Mx],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.tW]]),SN:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.JJ],["SLOT_TYPE_FORECASTING",this.CZ],["SLOT_TYPE_IN_PLAYER",this.CZ],["SLOT_TYPE_PLAYER_BYTES",this.CZ]]),WB:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", +this.Ls],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.Bd],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.Bd],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.Bd],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.Bd],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.Bd],["TRIGGER_TYPE_SLOT_ID_EXITED",this.Bd],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.Bd],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.Bd],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.Bd],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.vK],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", +this.TG],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.TG],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.o7],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.o7],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.Mp],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.vK],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.eg],["TRIGGER_TYPE_AD_BREAK_STARTED",this.gs],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.pc],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", +this.pc],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.pc],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.pc],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.pc]]),WQ:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Zi],["SLOT_TYPE_FORECASTING",this.Zi],["SLOT_TYPE_IN_PLAYER",this.Zi],["SLOT_TYPE_PLAYER_BYTES",this.Ue]]),B4:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.VC],["SLOT_TYPE_FORECASTING",this.Fo],["SLOT_TYPE_PLAYER_BYTES",this.wq],["SLOT_TYPE_IN_PLAYER",this.W4]])};this.listeners=[W.get()]; +this.VJ={XQ:this.XQ,kF:this.Kh.get(),gb:this.EC.get(),wR:this.Dn.get(),Mx:this.Mx,JQ:Z.get(),gV:null,Az:this.Ls,D4:W.get(),md:this.Ch.get()}}; +Zm1=function(z,J,m,e){function T(){return E.T} +g.h.call(this);var E=this;z.W().experiments.j4("html5_dispose_of_manager_before_dependency")?(this.K=Enu(T,z,J,m,e),this.T=(new tk(this.K)).S(),g.u(this,this.T),g.u(this,this.K)):(this.K=Enu(T,z,J,m,e),g.u(this,this.K),this.T=(new tk(this.K)).S(),g.u(this,this.T))}; +Na=function(z){return z.K.VJ}; +Enu=function(z,J,m,e,T){try{var E=J.W();if(g.vZ(E))var Z=new z6z(z,J,m,e,T);else if(g.rc(E))Z=new Jqq(z,J,m,e,T);else if(PZ(E))Z=new myb(z,J,m,e,T);else if(g.uB(E))Z=new e6f(z,J,m,e,T);else if(g.AD(E))Z=new T5R(z,J,m,e,T);else throw new TypeError("Unknown web interface");return Z}catch(c){return Z=J.W(),IU("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:Z.K.cplatform,interface:Z.K.c,fg1:Z.K.cver,RP6:Z.K.ctheme,kcW:Z.K.cplayer,Ac1:Z.playerStyle}),new Pns(z,J,m,e,T)}}; +F5u=function(z){kC.call(this,z)}; +imu=function(z,J,m,e,T){mk.call(this,z,{D:"div",J:"ytp-ad-timed-pie-countdown-container",N:[{D:"svg",J:"ytp-ad-timed-pie-countdown",j:{viewBox:"0 0 20 20"},N:[{D:"circle",J:"ytp-ad-timed-pie-countdown-background",j:{r:"10",cx:"10",cy:"10"}},{D:"circle",J:"ytp-ad-timed-pie-countdown-inner",j:{r:"5",cx:"10",cy:"10"}},{D:"circle",J:"ytp-ad-timed-pie-countdown-outer",j:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",J,m,e,T);this.U=this.P1("ytp-ad-timed-pie-countdown-container");this.S=this.P1("ytp-ad-timed-pie-countdown-inner"); +this.Y=this.P1("ytp-ad-timed-pie-countdown-outer");this.T=Math.ceil(2*Math.PI*5);this.hide()}; +cqj=function(z,J,m,e,T,E){y7.call(this,z,{D:"div",J:"ytp-ad-action-interstitial",j:{tabindex:"0"},N:[{D:"div",J:"ytp-ad-action-interstitial-background-container"},{D:"div",J:"ytp-ad-action-interstitial-slot",N:[{D:"div",J:"ytp-ad-action-interstitial-instream-info"},{D:"div",J:"ytp-ad-action-interstitial-card",N:[{D:"div",J:"ytp-ad-action-interstitial-image-container"},{D:"div",J:"ytp-ad-action-interstitial-headline-container"},{D:"div",J:"ytp-ad-action-interstitial-description-container"},{D:"div", +J:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",J,m,e);this.OJ=T;this.F0=E;this.navigationEndpoint=this.K=this.skipButton=this.T=this.actionButton=null;this.h6=this.P1("ytp-ad-action-interstitial-instream-info");this.Gf=this.P1("ytp-ad-action-interstitial-image-container");this.B=new tJ(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,"ytp-ad-action-interstitial-image");g.u(this,this.B);this.B.S4(this.Gf);this.x3=this.P1("ytp-ad-action-interstitial-headline-container"); +this.Y=new ze(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,"ytp-ad-action-interstitial-headline");g.u(this,this.Y);this.Y.S4(this.x3);this.fh=this.P1("ytp-ad-action-interstitial-description-container");this.S=new ze(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,"ytp-ad-action-interstitial-description");g.u(this,this.S);this.S.S4(this.fh);this.O2=this.P1("ytp-ad-action-interstitial-background-container");this.qD=new tJ(this.api,this.layoutId,this.interactionLoggingClientData, +this.gb,"ytp-ad-action-interstitial-background",!0);g.u(this,this.qD);this.qD.S4(this.O2);this.nh=this.P1("ytp-ad-action-interstitial-action-button-container");this.slot=this.P1("ytp-ad-action-interstitial-slot");this.Kc=this.P1("ytp-ad-action-interstitial-card");this.U=new bM;g.u(this,this.U);this.hide()}; +W5s=function(z){var J=g.rC("html5-video-player");J&&g.qt(J,"ytp-ad-display-override",z)}; +dyf=function(z,J,m,e){y7.call(this,z,{D:"div",J:"ytp-ad-overlay-slot",N:[{D:"div",J:"ytp-ad-overlay-container"}]},"invideo-overlay",J,m,e);this.B=[];this.O2=this.x3=this.U=this.nh=this.h6=null;this.qD=!1;this.Y=null;this.fh=0;z=this.P1("ytp-ad-overlay-container");this.Gf=new Wy(z,45E3,6E3,.3,.4);g.u(this,this.Gf);this.S=lus(this);g.u(this,this.S);this.S.S4(z);this.T=wgb(this);g.u(this,this.T);this.T.S4(z);this.K=qnu(this);g.u(this,this.K);this.K.S4(z);this.hide()}; +lus=function(z){var J=new g.py({D:"div",J:"ytp-ad-text-overlay",N:[{D:"div",J:"ytp-ad-overlay-ad-info-button-container"},{D:"div",J:"ytp-ad-overlay-close-container",N:[{D:"button",J:"ytp-ad-overlay-close-button",N:[M3(Iuq)]}]},{D:"div",J:"ytp-ad-overlay-title",t6:"{{title}}"},{D:"div",J:"ytp-ad-overlay-desc",t6:"{{description}}"},{D:"div",Iy:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],t6:"{{displayUrl}}"}]});z.L(J.P1("ytp-ad-overlay-title"),"click",function(m){GW(z,J.element,m)}); +z.L(J.P1("ytp-ad-overlay-link"),"click",function(m){GW(z,J.element,m)}); +z.L(J.P1("ytp-ad-overlay-close-container"),"click",z.Yo);J.hide();return J}; +wgb=function(z){var J=new g.py({D:"div",Iy:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],N:[{D:"div",J:"ytp-ad-overlay-ad-info-button-container"},{D:"div",J:"ytp-ad-overlay-close-container",N:[{D:"button",J:"ytp-ad-overlay-close-button",N:[M3(Iuq)]}]},{D:"div",J:"ytp-ad-overlay-text-image",N:[{D:"img",j:{src:"{{imageUrl}}"}}]},{D:"div",J:"ytp-ad-overlay-title",t6:"{{title}}"},{D:"div",J:"ytp-ad-overlay-desc",t6:"{{description}}"},{D:"div",Iy:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], +t6:"{{displayUrl}}"}]});z.L(J.P1("ytp-ad-overlay-title"),"click",function(m){GW(z,J.element,m)}); +z.L(J.P1("ytp-ad-overlay-link"),"click",function(m){GW(z,J.element,m)}); +z.L(J.P1("ytp-ad-overlay-close-container"),"click",z.Yo);z.L(J.P1("ytp-ad-overlay-text-image"),"click",z.Xkf);J.hide();return J}; +qnu=function(z){var J=new g.py({D:"div",J:"ytp-ad-image-overlay",N:[{D:"div",J:"ytp-ad-overlay-ad-info-button-container"},{D:"div",J:"ytp-ad-overlay-close-container",N:[{D:"button",J:"ytp-ad-overlay-close-button",N:[M3(Iuq)]}]},{D:"div",J:"ytp-ad-overlay-image",N:[{D:"img",j:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});z.L(J.P1("ytp-ad-overlay-image"),"click",function(m){GW(z,J.element,m)}); +z.L(J.P1("ytp-ad-overlay-close-container"),"click",z.Yo);J.hide();return J}; +Omu=function(z,J){if(J){var m=g.P(J,MW)||null;m==null?g.jk(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(J=g.rC("video-ads ytp-ad-module")||null,J==null?g.jk(Error("Could not locate the root ads container element to attach the ad info dialog.")):(z.x3=new g.py({D:"div",J:"ytp-ad-overlay-ad-info-dialog-container"}),g.u(z,z.x3),z.x3.S4(J),J=new rF(z.api,z.layoutId,z.interactionLoggingClientData,z.gb,z.x3.element,!1),g.u(z,J),J.init(WV("ad-info-hover-text-button"),m,z.macros), +z.Y?(J.S4(z.Y,0),J.subscribe("f",z.sTf,z),J.subscribe("e",z.T1,z),z.L(z.Y,"click",z.ddF),z.L(g.rC("ytp-ad-button",J.element),"click",function(){var e;if(g.P((e=g.P(m.button,g.oR))==null?void 0:e.serviceEndpoint,H$1))z.qD=z.api.getPlayerState(1)===2,z.api.pauseVideo();else z.api.onAdUxClicked("ad-info-hover-text-button",z.layoutId)}),z.O2=J):g.jk(Error("Ad info button container within overlay ad was not present."))))}else g.hr(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; +yqs=function(z,J){if(pgq(z,Xi)||z.api.isMinimized())return!1;var m=N3(J.title),e=N3(J.description);if(g.CN(m)||g.CN(e))return!1;z.createServerVe(z.S.element,J.trackingParams||null);z.S.updateValue("title",N3(J.title));z.S.updateValue("description",N3(J.description));z.S.updateValue("displayUrl",N3(J.displayUrl));J.navigationEndpoint&&g.TC(z.B,J.navigationEndpoint);z.S.show();z.Gf.start();z.logVisibility(z.S.element,!0);z.L(z.S.element,"mouseover",function(){z.fh++}); +return!0}; +N5q=function(z,J){if(pgq(z,Xi)||z.api.isMinimized())return!1;var m=N3(J.title),e=N3(J.description);if(g.CN(m)||g.CN(e))return!1;z.createServerVe(z.T.element,J.trackingParams||null);z.T.updateValue("title",N3(J.title));z.T.updateValue("description",N3(J.description));z.T.updateValue("displayUrl",N3(J.displayUrl));z.T.updateValue("imageUrl",c8b(J.image));J.navigationEndpoint&&g.TC(z.B,J.navigationEndpoint);z.nh=J.imageNavigationEndpoint||null;z.T.show();z.Gf.start();z.logVisibility(z.T.element,!0); +z.L(z.T.element,"mouseover",function(){z.fh++}); +return!0}; +GPb=function(z,J){if(z.api.isMinimized())return!1;var m=WVu(J.image),e=m;m.width0?(J=new jD(z.api,z.K),J.S4(z.playerOverlay), +g.u(z,J)):g.jk(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(J)))}}else g.jk(Error("addCommonComponents() needs to be called before starting countdown."))}; +bm1=function(z){function J(m){return{toString:function(){return m()}}} +z.macros.SURVEY_LOCAL_TIME_EPOCH_S=J(function(){var m=new Date;return(Math.round(m.valueOf()/1E3)+-1*m.getTimezoneOffset()*60).toString()}); +z.macros.SURVEY_ELAPSED_MS=J(function(){return(Date.now()-z.S).toString()})}; +$yb=function(z,J,m,e,T){aI.call(this,z,J,m,e,"survey-question-multi-select");this.fh=T;this.noneOfTheAbove=null;this.submitEndpoints=[];this.Y=null;this.hide()}; +gnq=function(z,J,m){z.noneOfTheAbove=new K54(z.api,z.layoutId,z.interactionLoggingClientData,z.gb);z.noneOfTheAbove.S4(z.answers);z.noneOfTheAbove.init(WV("survey-none-of-the-above"),J,m)}; +MIj=function(z){z.T.forEach(function(J){J.K.toggleButton(!1)}); +xyq(z,!0)}; +xyq=function(z,J){var m=z.U;z=Aqs(z);J=J===void 0?!1:J;m.K&&(z?m.K.hide():m.K.show(),J&&m.K instanceof XW&&!m.K.U&&zMu(m.K,!1));m.T&&(z?m.T.show():m.T.hide())}; +Aqs=function(z){return z.T.some(function(J){return J.K.isToggled()})||z.noneOfTheAbove.button.isToggled()}; +KR=function(z,J,m,e,T){aI.call(this,z,J,m,e,"survey-question-single-select",function(Z){E.api.W().C("supports_multi_step_on_desktop")&&T([Z])}); +var E=this;this.hide()}; +BS=function(z,J,m,e){y7.call(this,z,{D:"div",J:"ytp-ad-survey",N:[{D:"div",J:"ytp-ad-survey-questions"}]},"survey",J,m,e);this.questions=[];this.T=[];this.conditioningRules=[];this.K=0;this.Y=this.P1("ytp-ad-survey-questions");this.api.W().C("fix_survey_color_contrast_on_destop")&&this.P1("ytp-ad-survey").classList.add("color-contrast-fix");this.api.W().C("web_enable_speedmaster")&&this.P1("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; +h6j=function(z,J){var m=z.T[J],e;(e=z.S)==null||e.dispose();g.P(m,gR)?onu(z,g.P(m,gR),z.macros):g.P(m,$A)&&jXq(z,g.P(m,$A),z.macros);z.K=J}; +onu=function(z,J,m){var e=new KR(z.api,z.layoutId,z.interactionLoggingClientData,z.gb,z.U.bind(z));e.S4(z.Y);e.init(WV("survey-question-single-select"),J,m);z.api.W().C("supports_multi_step_on_desktop")?z.S=e:z.questions.push(e);g.u(z,e)}; +jXq=function(z,J,m){var e=new $yb(z.api,z.layoutId,z.interactionLoggingClientData,z.gb,z.U.bind(z));e.S4(z.Y);e.init(WV("survey-question-multi-select"),J,m);z.api.W().C("supports_multi_step_on_desktop")?z.S=e:z.questions.push(e);g.u(z,e)}; +Su=function(z,J,m,e){y7.call(this,z,{D:"div",J:"ytp-ad-survey-interstitial",N:[{D:"div",J:"ytp-ad-survey-interstitial-contents",N:[{D:"div",J:"ytp-ad-survey-interstitial-logo",N:[{D:"div",J:"ytp-ad-survey-interstitial-logo-image"}]},{D:"div",J:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",J,m,e);this.K=this.actionButton=null;this.interstitial=this.P1("ytp-ad-survey-interstitial");this.T=this.P1("ytp-ad-survey-interstitial-contents");this.text=this.P1("ytp-ad-survey-interstitial-text"); +this.logoImage=this.P1("ytp-ad-survey-interstitial-logo-image");this.transition=new g.Ex(this,500,!1,300);g.u(this,this.transition)}; +uZE=function(z,J){J=J&&PV(J)||"";if(g.CN(J))g.hr(Error("Found ThumbnailDetails without valid image URL"));else{var m=z.style;z=z.style.cssText;var e=document.implementation.createHTMLDocument("").createElement("DIV");e.style.cssText=z;z=Afb(e.style);m.cssText=[z,'background-image:url("'+J+'");'].join("")}}; +VIR=function(z){var J=g.rC("html5-video-player");J&&g.qt(J,"ytp-ad-display-override",z)}; +fR=function(z,J,m,e,T,E){E=E===void 0?0:E;mk.call(this,z,{D:"div",J:"ytp-preview-ad",N:[{D:"div",J:"ytp-preview-ad__text"}]},"preview-ad",J,m,e,T);var Z=this;this.fh=E;this.T=0;this.U=-1;this.S=this.P1("ytp-preview-ad__text");switch(this.fh){case 1:this.S.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.Ex(this,400,!1,100,function(){Z.hide()}); +g.u(this,this.transition);this.hide()}; +Dq=function(z,J,m,e){y7.call(this,z,{D:"img",J:"ytp-ad-avatar"},"ad-avatar",J,m,e);this.hide()}; +P7z=function(z){switch(z.size){case "AD_AVATAR_SIZE_XXS":return 16;case "AD_AVATAR_SIZE_XS":return 24;case "AD_AVATAR_SIZE_S":return 32;case "AD_AVATAR_SIZE_M":return 36;case "AD_AVATAR_SIZE_L":return 56;case "AD_AVATAR_SIZE_XL":return 72;default:return 36}}; +bT=function(z,J,m,e,T,E){T=T===void 0?!1:T;E=E===void 0?!1:E;y7.call(this,z,{D:"button",J:"ytp-ad-button-vm"},"ad-button",J,m,e);this.buttonText=this.buttonIcon=null;this.hide();this.K=T;this.T=E}; +tIq=function(z,J,m,e,T){mk.call(this,z,{D:"div",Iy:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],N:[{D:"div",J:"ytp-ad-avatar-lockup-card__avatar_and_text_container",N:[{D:"div",J:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",J,m,e,T);this.startMilliseconds=0;this.adAvatar=new Dq(this.api,this.layoutId,this.interactionLoggingClientData,this.gb);g.u(this,this.adAvatar);cF(this.element,this.adAvatar.element,0);this.headline=new $E(this.api,this.layoutId, +this.interactionLoggingClientData,this.gb);g.u(this,this.headline);this.headline.S4(this.P1("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new $E(this.api,this.layoutId,this.interactionLoggingClientData,this.gb);g.u(this,this.description);this.description.S4(this.P1("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new bT(this.api, +this.layoutId,this.interactionLoggingClientData,this.gb);g.u(this,this.adButton);this.adButton.S4(this.element);this.hide()}; +$0=function(z,J,m,e){y7.call(this,z,{D:"button",J:"ytp-skip-ad-button",N:[{D:"div",J:"ytp-skip-ad-button__text"}]},"skip-button",J,m,e);var T=this;this.T=!1;this.U=this.P1("ytp-skip-ad-button__text");this.transition=new g.Ex(this,500,!1,100,function(){T.hide()}); +g.u(this,this.transition);this.K=new Wy(this.element,15E3,5E3,.5,.5,!0);g.u(this,this.K);this.hide()}; +Hmb=function(z,J,m,e,T){mk.call(this,z,{D:"div",J:"ytp-skip-ad"},"skip-ad",J,m,e,T);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.S=new $0(this.api,this.layoutId,this.interactionLoggingClientData,this.gb);g.u(this,this.S);this.S.S4(this.element);this.hide()}; +g4=function(z,J,m,e){y7.call(this,z,{D:"div",J:"ytp-visit-advertiser-link"},"visit-advertiser-link",J,m,e);this.hide()}; +x0=function(z,J,m,e,T){y7.call(this,z,{D:"div",J:"ytp-ad-player-overlay-layout",N:[{D:"div",J:"ytp-ad-player-overlay-layout__player-card-container"},{D:"div",J:"ytp-ad-player-overlay-layout__ad-info-container",N:[z.W().C("delhi_modern_web_player")?{D:"div",J:"ytp-ad-player-overlay-layout__ad-info-container-left"}:null]},{D:"div",J:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{D:"div",J:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",J,m,e);this.T= +T;this.Gf=this.P1("ytp-ad-player-overlay-layout__player-card-container");this.S=this.P1("ytp-ad-player-overlay-layout__ad-info-container");this.fh=this.P1("ytp-ad-player-overlay-layout__skip-or-preview-container");this.x3=this.P1("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");z.W().C("delhi_modern_web_player")&&(this.U=this.P1("ytp-ad-player-overlay-layout__ad-info-container-left"));this.hide()}; +UyE=function(z,J,m,e){y7.call(this,z,{D:"div",J:"ytp-ad-grid-card-text",N:[{D:"div",J:"ytp-ad-grid-card-text__metadata",N:[{D:"div",J:"ytp-ad-grid-card-text__metadata__headline"},{D:"div",J:"ytp-ad-grid-card-text__metadata__description",N:[{D:"div",J:"ytp-ad-grid-card-text__metadata__description__line"},{D:"div",J:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{D:"div",J:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",J,m,e);this.headline=new $E(this.api,this.layoutId,this.interactionLoggingClientData, +this.gb);g.u(this,this.headline);this.headline.S4(this.P1("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new bT(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,!0);g.u(this,this.moreInfoButton);this.moreInfoButton.S4(this.P1("ytp-ad-grid-card-text__button"))}; +Ma=function(z,J,m,e){y7.call(this,z,{D:"div",J:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",J,m,e);this.K=[]}; +An=function(z,J,m,e,T,E,Z){mk.call(this,z,E,Z,J,m,e,T);this.playerProgressOffsetMs=0;this.T=!1}; +R6j=function(z){var J=g.rC("html5-video-player");J&&g.qt(J,"ytp-ad-display-override",z)}; +kPu=function(z,J,m,e,T){An.call(this,z,J,m,e,T,{D:"div",J:"ytp-display-underlay-text-grid-cards",N:[{D:"div",J:"ytp-display-underlay-text-grid-cards__content_container",N:[{D:"div",J:"ytp-display-underlay-text-grid-cards__content_container__header",N:[{D:"div",J:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{D:"div",J:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{D:"div",J:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, +{D:"div",J:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new Ma(this.api,this.layoutId,this.interactionLoggingClientData,this.gb);g.u(this,this.adGridCardCollection);this.adGridCardCollection.S4(this.P1("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new bT(this.api,this.layoutId,this.interactionLoggingClientData,this.gb);g.u(this,this.adButton);this.adButton.S4(this.P1("ytp-display-underlay-text-grid-cards__content_container__ad_button")); +this.S=this.P1("ytp-display-underlay-text-grid-cards__content_container");this.U=this.P1("ytp-display-underlay-text-grid-cards__content_container__header")}; +oI=function(z,J,m,e){y7.call(this,z,{D:"div",J:"ytp-ad-details-line"},"ad-details-line",J,m,e);this.K=[];this.hide()}; +ju=function(z,J,m,e){y7.call(this,z,{D:"div",J:"ytp-image-background",N:[{D:"img",J:"ytp-image-background-image"}]},"image-background",J,m,e);this.hide()}; +L5b=function(z,J,m,e,T){mk.call(this,z,{D:"svg",J:"ytp-timed-pie-countdown",j:{viewBox:"0 0 20 20"},N:[{D:"circle",J:"ytp-timed-pie-countdown__background",j:{r:"10",cx:"10",cy:"10"}},{D:"circle",J:"ytp-timed-pie-countdown__inner",j:{r:"5",cx:"10",cy:"10"}},{D:"circle",J:"ytp-timed-pie-countdown__outer",j:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",J,m,e,T);this.S=this.P1("ytp-timed-pie-countdown__inner");this.T=Math.ceil(2*Math.PI*5);this.hide()}; +hn=function(z,J,m,e){y7.call(this,z,{D:"div",J:"ytp-video-interstitial-buttoned-centered-layout",j:{tabindex:"0"},N:[{D:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content",N:[{D:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{D:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",N:[{D:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{D:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, +{D:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{D:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{D:"div",J:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",J,m,e);this.T=null;this.U=this.P1("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.S=new bM;g.u(this,this.S);this.hide()}; +QXb=function(z){var J=g.rC("html5-video-player");J&&g.qt(J,"ytp-ad-display-override",z)}; +vnb=function(z){if(!z.adAvatar||!g.P(z.adAvatar,uT))return g.jk(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!z.headline)return g.jk(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!z.adBadge||!g.P(z.adBadge,Vl))return g.jk(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!z.adButton||!g.P(z.adButton,PS))return g.jk(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!z.adInfoRenderer|| +!g.P(z.adInfoRenderer,MW))return g.jk(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;z=z.durationMilliseconds||0;return typeof z!=="number"||z<=0?(g.jk(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+z)),!1):!0}; +tn=function(z,J){J=J===void 0?2:J;g.wF.call(this);this.api=z;this.K=null;this.Ij=new bM(this);g.u(this,this.Ij);this.T=JC1;this.Ij.L(this.api,"presentingplayerstatechange",this.MI);this.K=this.Ij.L(this.api,"progresssync",this.Xq);this.lR=J;this.lR===1&&this.Xq()}; +HS=function(z,J,m){kC.call(this,z);this.api=z;this.gb=J;this.T={};z=new g.U({D:"div",Iy:["video-ads","ytp-ad-module"]});g.u(this,z);Ki&&g.FE(z.element,"ytp-ads-tiny-mode");this.Z=new Nb(z.element);g.u(this,this.Z);g.M0(this.api,z.element,4);Jz(m)&&(m=new g.U({D:"div",Iy:["ytp-ad-underlay"]}),g.u(this,m),this.S=new Nb(m.element),g.u(this,this.S),g.M0(this.api,m.element,0));g.u(this,fx1())}; +sXz=function(z,J){z=g.Mr(z.T,J.id,null);z==null&&g.hr(Error("Component not found for element id: "+J.id));return z||null}; +rqq=function(z){g.Ob.call(this,z);var J=this;this.T=null;this.created=!1;this.S=z.W().C("h5_use_refactored_get_ad_break")?new Rqu(this.player):new VG(this.player);this.U=function(){if(J.T!=null)return J.T;var e=new zk4({Az:Na(J.K).Az,md:Na(J.K).md,G:J.player,kF:Na(J.K).kF,Zn:J.K.K.Zn,D4:Na(J.K).D4,TB:J.K.K.TB});J.T=e.Og;return J.T}; +this.K=new Zm1(this.player,this,this.S,this.U);g.u(this,this.K);var m=z.W();!B9(m)||g.AD(m)||PZ(m)||(g.u(this,new HS(z,Na(this.K).gb,Na(this.K).kF)),g.u(this,new F5u(z)))}; +zbg=function(z){z.created!==z.loaded&&IU("Created and loaded are out of sync")}; +ebg=function(z){g.Ob.prototype.load.call(z);var J=Na(z.K).kF;try{z.player.getRootNode().classList.add("ad-created")}catch(W){IU(W instanceof Error?W:String(W))}var m=z.player.getVideoData(1),e=m&&m.videoId||"",T=m&&m.getPlayerResponse()||{},E=(!z.player.W().experiments.j4("debug_ignore_ad_placements")&&T&&T.adPlacements||[]).map(function(W){return W.adPlacementRenderer}),Z=((T==null?void 0:T.adSlots)||[]).map(function(W){return g.P(W,ur)}); +T=T.playerConfig&&T.playerConfig.daiConfig&&T.playerConfig.daiConfig.enableDai||!1;m&&m.Cq();E=JuF(E,Z,J,Na(z.K).JQ);Z=m&&m.clientPlaybackNonce||"";m=m&&m.Qp||!1;if(aB(J,!0)&&m){var c;J={};(c=z.player.getVideoData())==null||c.ph("p_cpb",(J.cc=Z,J))}c=1E3*z.player.getDuration(1);mfv(z);z.K.K.V5.lV(Z,c,m,E.Wb,E.k8,E.Wb,T,e)}; +mfv=function(z){var J,m;if(m=(J=z.player.getVideoData(1))==null||!J.Qp)J=z.player.W(),m=B9(J)&&!g.K1(J)&&J.playerStyle==="desktop-polymer";m&&(z=z.player.getInternalApi(),z.addEventListener("updateKevlarOrC3Companion",ZT4),z.addEventListener("updateEngagementPanelAction",Fej),z.addEventListener("changeEngagementPanelVisibility",iTj),window.addEventListener("yt-navigate-start",Wes))}; +U_=function(z,J){J===z.rO&&(z.rO=void 0)}; +Tuz=function(z){var J=Na(z.K).Mx,m=J.U().Wc("SLOT_TYPE_PLAYER_BYTES",1);J=N4(J.Ch.get(),1).clientPlaybackNonce;var e=!1;m=g.y(m);for(var T=m.next();!T.done;T=m.next()){T=T.value;var E=T.slotType==="SLOT_TYPE_PLAYER_BYTES"&&T.slotEntryTrigger instanceof Ku?T.slotEntryTrigger.BQ:void 0;E&&E===J&&(e&&IU("More than 1 preroll playerBytes slot detected",T),e=!0)}e||E_(Na(z.K).wR)}; +EuN=function(z){if(LX(Na(z.K).kF))return!0;var J="";z=g.y(Na(z.K).D4.CB.keys());for(var m=z.next();!m.done;m=z.next()){m=m.value;if(m.slotType==="SLOT_TYPE_PLAYER_BYTES"&&m.A6==="core")return!0;J+=m.slotType+" "}Math.random()<.01&&IU("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:J});return!1}; +Zqv=function(z){z=g.y(Na(z.K).D4.CB.values());for(var J=z.next();!J.done;J=z.next())if(J.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; +C_s=function(z,J,m,e,T,E){m=m===void 0?[]:m;e=e===void 0?"":e;T=T===void 0?"":T;var Z=Na(z.K).kF,c=z.player.getVideoData(1);c&&c.getPlayerResponse();c&&c.Cq();m=JuF(J,m,Z,Na(z.K).JQ);SOu(Na(z.K).XQ,e,m.Wb,m.k8,J,T,E)}; +JuF=function(z,J,m,e){J={Wb:[],k8:J};z=g.y(z);for(var T=z.next();!T.done;T=z.next())if((T=T.value)&&T.renderer!=null){var E=T.renderer;if(!m.G.W().C("html5_enable_vod_lasr_with_notify_pacf")){var Z=void 0,c=void 0,W=void 0,l=void 0,w=e;g.P((l=E.sandwichedLinearAdRenderer)==null?void 0:l.adVideoStart,pw)?(Z=g.P((W=E.sandwichedLinearAdRenderer)==null?void 0:W.adVideoStart,pw),Z=PRE(Z,w),g.HP(E.sandwichedLinearAdRenderer.adVideoStart,pw,Z)):g.P((c=E.linearAdSequenceRenderer)==null?void 0:c.adStart,pw)&& +(W=g.P((Z=E.linearAdSequenceRenderer)==null?void 0:Z.adStart,pw),Z=PRE(W,w),g.HP(E.linearAdSequenceRenderer.adStart,pw,Z))}J.Wb.push(T)}return J}; +g.RI=function(z){if(typeof DOMParser!="undefined")return zy(new DOMParser,b8E(z),"application/xml");throw Error("Your browser does not support loading xml documents");}; +g.k0=function(z){g.h.call(this);this.callback=z;this.K=new Cz(0,0,.4,0,.2,1,1,1);this.delay=new g.QH(this.next,window,this);g.u(this,this.delay)}; +g.Fb9=function(z){var J=z.W();return J.OD&&!J.S&&g.fi(J)?z.isEmbedsShortsMode()?(z=z.eY(),Math.min(z.width,z.height)>=315):!z.iU():!1}; +g.LR=function(z){g.U.call(this,{D:"div",J:"ytp-more-videos-view",j:{tabIndex:"-1"}});var J=this;this.api=z;this.T=!0;this.S=new g.jl(this);this.K=[];this.suggestionData=[];this.columns=this.containerWidth=this.X=this.U=this.scrollPosition=0;this.title=new g.U({D:"h2",J:"ytp-related-title",t6:"{{title}}"});this.previous=new g.U({D:"button",Iy:["ytp-button","ytp-previous"],j:{"aria-label":"Show previous suggested videos"},N:[g.YC()]});this.V=new g.k0(function(m){J.suggestions.element.scrollLeft=-m}); +this.next=new g.U({D:"button",Iy:["ytp-button","ytp-next"],j:{"aria-label":"Show more suggested videos"},N:[g.Cy()]});g.u(this,this.S);this.Y=z.W().U;g.u(this,this.title);this.title.S4(this.element);this.suggestions=new g.U({D:"div",J:"ytp-suggestions"});g.u(this,this.suggestions);this.suggestions.S4(this.element);g.u(this,this.previous);this.previous.S4(this.element);this.previous.listen("click",this.qI,this);g.u(this,this.V);iqN(this);g.u(this,this.next);this.next.S4(this.element);this.next.listen("click", +this.Lm,this);this.S.L(this.api,"appresize",this.yQ);this.S.L(this.api,"fullscreentoggled",this.Jk);this.S.L(this.api,"videodatachange",this.onVideoDataChange);this.yQ(this.api.zf().getPlayerSize());this.onVideoDataChange()}; +iqN=function(z){for(var J={kI:0};J.kI<16;J={kI:J.kI},++J.kI){var m=new g.U({D:"a",J:"ytp-suggestion-link",j:{href:"{{link}}",target:z.api.W().B,"aria-label":"{{aria_label}}"},N:[{D:"div",J:"ytp-suggestion-image"},{D:"div",J:"ytp-suggestion-overlay",j:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},N:[{D:"div",J:"ytp-suggestion-title",t6:"{{title}}"},{D:"div",J:"ytp-suggestion-author",t6:"{{author_and_views}}"},{D:"div",j:{"data-is-live":"{{is_live}}"},J:"ytp-suggestion-duration", +t6:"{{duration}}"}]}]});g.u(z,m);var e=m.P1("ytp-suggestion-link");g.FR(e,"transitionDelay",J.kI/20+"s");z.S.L(e,"click",function(T){return function(E){var Z=T.kI;if(z.T){var c=z.suggestionData[Z],W=c.sessionData;z.Y&&z.api.C("web_player_log_click_before_generating_ve_conversion_params")?(z.api.logClick(z.K[Z].element),Z=c.cX(),c={},g.$2(z.api,c),Z=g.v1(Z,c),g.cO(Z,z.api,E)):g.i6(E,z.api,z.Y,W||void 0)&&z.api.uG(c.videoId,W,c.playlistId)}else E.preventDefault(),document.activeElement.blur()}}(J)); +m.S4(z.suggestions.element);z.K.push(m);z.api.createServerVe(m.element,m)}}; +cuF=function(z){if(z.api.W().C("web_player_log_click_before_generating_ve_conversion_params"))for(var J=Math.floor(-z.scrollPosition/(z.U+8)),m=Math.min(J+z.columns,z.suggestionData.length)-1;J<=m;J++)z.api.logVisibility(z.K[J].element,!0)}; +g.Ql=function(z){var J=z.api.PK()?32:16;J=z.X/2+J;z.next.element.style.bottom=J+"px";z.previous.element.style.bottom=J+"px";J=z.scrollPosition;var m=z.containerWidth-z.suggestionData.length*(z.U+8);g.qt(z.element,"ytp-scroll-min",J>=0);g.qt(z.element,"ytp-scroll-max",J<=m)}; +lsN=function(z){for(var J=z.suggestionData.length,m=0;m>>0)+"_",T=0;return J}); +du("Symbol.iterator",function(z){if(z)return z;z=Symbol("Symbol.iterator");for(var J="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),m=0;m=E}}); +du("String.prototype.endsWith",function(z){return z?z:function(J,m){var e=xu(this,J,"endsWith");J+="";m===void 0&&(m=e.length);m=Math.max(0,Math.min(m|0,e.length));for(var T=J.length;T>0&&m>0;)if(e[--m]!=J[--T])return!1;return T<=0}}); +du("Array.prototype.entries",function(z){return z?z:function(){return Mf(this,function(J,m){return[J,m]})}}); +du("Math.imul",function(z){return z?z:function(J,m){J=Number(J);m=Number(m);var e=J&65535,T=m&65535;return e*T+((J>>>16&65535)*T+e*(m>>>16&65535)<<16>>>0)|0}}); +du("Math.trunc",function(z){return z?z:function(J){J=Number(J);if(isNaN(J)||J===Infinity||J===-Infinity||J===0)return J;var m=Math.floor(Math.abs(J));return J<0?-m:m}}); +du("Math.clz32",function(z){return z?z:function(J){J=Number(J)>>>0;if(J===0)return 32;var m=0;(J&4294901760)===0&&(J<<=16,m+=16);(J&4278190080)===0&&(J<<=8,m+=8);(J&4026531840)===0&&(J<<=4,m+=4);(J&3221225472)===0&&(J<<=2,m+=2);(J&2147483648)===0&&m++;return m}}); +du("Number.isNaN",function(z){return z?z:function(J){return typeof J==="number"&&isNaN(J)}}); +du("Array.prototype.keys",function(z){return z?z:function(){return Mf(this,function(J){return J})}}); +du("Array.prototype.values",function(z){return z?z:function(){return Mf(this,function(J,m){return m})}}); +du("Array.prototype.fill",function(z){return z?z:function(J,m,e){var T=this.length||0;m<0&&(m=Math.max(0,T+m));if(e==null||e>T)e=T;e=Number(e);e<0&&(e=Math.max(0,T+e));for(m=Number(m||0);m1342177279)throw new RangeError("Invalid count value");J|=0;for(var e="";J;)if(J&1&&(e+=m),J>>>=1)m+=m;return e}}); +du("Promise.prototype.finally",function(z){return z?z:function(J){return this.then(function(m){return Promise.resolve(J()).then(function(){return m})},function(m){return Promise.resolve(J()).then(function(){throw m; +})})}}); +du("String.prototype.padStart",function(z){return z?z:function(J,m){var e=xu(this,null,"padStart");J-=e.length;m=m!==void 0?String(m):" ";return(J>0&&m?m.repeat(Math.ceil(J/m.length)).substring(0,J):"")+e}}); +du("Array.prototype.findIndex",function(z){return z?z:function(J,m){return dfu(this,J,m).HC}}); +du("Math.sign",function(z){return z?z:function(J){J=Number(J);return J===0||isNaN(J)?J:J>0?1:-1}}); +du("WeakSet",function(z){function J(m){this.K=new WeakMap;if(m){m=g.y(m);for(var e;!(e=m.next()).done;)this.add(e.value)}} +if(function(){if(!z||!Object.seal)return!1;try{var m=Object.seal({}),e=Object.seal({}),T=new z([m]);if(!T.has(m)||T.has(e))return!1;T.delete(m);T.add(e);return!T.has(m)&&T.has(e)}catch(E){return!1}}())return z; +J.prototype.add=function(m){this.K.set(m,!0);return this}; +J.prototype.has=function(m){return this.K.has(m)}; +J.prototype.delete=function(m){return this.K.delete(m)}; +return J}); +du("Array.prototype.copyWithin",function(z){function J(m){m=Number(m);return m===Infinity||m===-Infinity?m:m|0} +return z?z:function(m,e,T){var E=this.length;m=J(m);e=J(e);T=T===void 0?E:J(T);m=m<0?Math.max(E+m,0):Math.min(m,E);e=e<0?Math.max(E+e,0):Math.min(e,E);T=T<0?Math.max(E+T,0):Math.min(T,E);if(me;)--T in this?this[--m]=this[T]:delete this[--m];return this}}); +du("Int8Array.prototype.copyWithin",oq);du("Uint8Array.prototype.copyWithin",oq);du("Uint8ClampedArray.prototype.copyWithin",oq);du("Int16Array.prototype.copyWithin",oq);du("Uint16Array.prototype.copyWithin",oq);du("Int32Array.prototype.copyWithin",oq);du("Uint32Array.prototype.copyWithin",oq);du("Float32Array.prototype.copyWithin",oq);du("Float64Array.prototype.copyWithin",oq);du("Array.prototype.at",function(z){return z?z:j4}); +du("Int8Array.prototype.at",hu);du("Uint8Array.prototype.at",hu);du("Uint8ClampedArray.prototype.at",hu);du("Int16Array.prototype.at",hu);du("Uint16Array.prototype.at",hu);du("Int32Array.prototype.at",hu);du("Uint32Array.prototype.at",hu);du("Float32Array.prototype.at",hu);du("Float64Array.prototype.at",hu);du("String.prototype.at",function(z){return z?z:j4}); +du("Array.prototype.findLastIndex",function(z){return z?z:function(J,m){return Isu(this,J,m).HC}}); +du("Int8Array.prototype.findLastIndex",uj);du("Uint8Array.prototype.findLastIndex",uj);du("Uint8ClampedArray.prototype.findLastIndex",uj);du("Int16Array.prototype.findLastIndex",uj);du("Uint16Array.prototype.findLastIndex",uj);du("Int32Array.prototype.findLastIndex",uj);du("Uint32Array.prototype.findLastIndex",uj);du("Float32Array.prototype.findLastIndex",uj);du("Float64Array.prototype.findLastIndex",uj);du("Number.parseInt",function(z){return z||parseInt});var TH,vq,Oqj;TH=TH||{};g.VR=this||self;vq="closure_uid_"+(Math.random()*1E9>>>0);Oqj=0;g.p(E1,Error);g.h.prototype.cR=!1;g.h.prototype.mF=function(){return this.cR}; +g.h.prototype.dispose=function(){this.cR||(this.cR=!0,this.oy())}; +g.h.prototype[Symbol.dispose]=function(){this.dispose()}; +g.h.prototype.addOnDisposeCallback=function(z,J){this.cR?J!==void 0?z.call(J):z():(this.n$||(this.n$=[]),J&&(z=z.bind(J)),this.n$.push(z))}; +g.h.prototype.oy=function(){if(this.n$)for(;this.n$.length;)this.n$.shift()()};var Yzf;g.p(q1,g.h);q1.prototype.share=function(){if(this.mF())throw Error("E:AD");this.U++;return this}; +q1.prototype.dispose=function(){--this.U||g.h.prototype.dispose.call(this)}; +Yzf=Symbol.dispose;Cju.prototype.Ci=function(z,J){this.K.Ci("/client_streamz/bg/frs",z,J)}; +asq.prototype.Ci=function(z,J,m,e,T,E){this.K.Ci("/client_streamz/bg/wrl",z,J,m,e,T,E)}; +Kbz.prototype.ML=function(z,J){this.K.gJ("/client_streamz/bg/ec",z,J)}; +BuR.prototype.Ci=function(z,J,m,e){this.K.Ci("/client_streamz/bg/el",z,J,m,e)}; +Szb.prototype.ML=function(z,J,m){this.K.gJ("/client_streamz/bg/cec",z,J,m)}; +fsz.prototype.ML=function(z,J,m){this.K.gJ("/client_streamz/bg/po/csc",z,J,m)}; +Dfb.prototype.ML=function(z,J,m){this.K.gJ("/client_streamz/bg/po/ctav",z,J,m)}; +bq4.prototype.ML=function(z,J,m){this.K.gJ("/client_streamz/bg/po/cwsc",z,J,m)};g.T9(O1,Error);O1.prototype.name="CustomError";var r5j;var uW=void 0,h_,KYj=typeof TextDecoder!=="undefined",Aub,M4b=typeof String.prototype.isWellFormed==="function",xfb=typeof TextEncoder!=="undefined";var S9=String.prototype.trim?function(z){return z.trim()}:function(z){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(z)[1]},KrE=/&/g,Byu=//g,f_j=/"/g,DsR=/'/g,bWq=/\x00/g,a_R=/[\x00&<>"']/;var yu4=Uz(1,!0),$O=Uz(610401301,!1);Uz(899588437,!1);var Nue=Uz(725719775,!1),GEO=Uz(513659523,!1),XqO=Uz(568333945,!1);Uz(651175828,!1);Uz(722764542,!1);Uz(2147483644,!1);Uz(2147483645,!1);Uz(2147483646,yu4);Uz(2147483647,!0);var gg=!!g.Hq("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var xO,nuz=g.VR.navigator;xO=nuz?nuz.userAgentData||null:null;var vub,Kh,aS;vub=Array.prototype.indexOf?function(z,J){return Array.prototype.indexOf.call(z,J,void 0)}:function(z,J){if(typeof z==="string")return typeof J!=="string"||J.length!=1?-1:z.indexOf(J,0); +for(var m=0;m=0;m--)if(m in z&&z[m]===J)return m;return-1}; +g.de=Array.prototype.forEach?function(z,J,m){Array.prototype.forEach.call(z,J,m)}:function(z,J,m){for(var e=z.length,T=typeof z==="string"?z.split(""):z,E=0;EparseFloat(Sz$)){BuS=String(vS);break a}}BuS=Sz$}var c44=BuS,Fvj={};var z7,JY;g.V4=h4();z7=Hc()||A4("iPod");JY=A4("iPad");g.SR=t4b();g.gS=uF();g.Y4=Pc()&&!U1();var lzE={},YU=null,wcq=iA||g.JM||typeof g.VR.btoa=="function";var nOb=typeof Uint8Array!=="undefined",pcu=!g.pz&&typeof btoa==="function",y4u=/[-_.]/g,IzE={"-":"+",_:"/",".":"="},at={};C0.prototype.isEmpty=function(){return this.K==null}; +C0.prototype.sizeBytes=function(){var z=Bu(this);return z?z.length:0}; +var Xcb;var CFq=void 0;var $U=typeof Symbol==="function"&&typeof Symbol()==="symbol",bq9=b9("jas",void 0,!0),iW=b9(void 0,"1oa"),aa=b9(void 0,Symbol()),$f4=b9(void 0,"0ub"),WY1=b9(void 0,"0actk"),As=b9("m_m","Gcy",!0),fzq=b9(void 0,"mrtk"),TeE=b9(void 0,"vps");Math.max.apply(Math,g.X(Object.values({eLW:1,Tl6:2,KRy:4,fq2:8,RDx:16,sBi:32,PV2:64,qii:128,Qai:256,Ye6:512,vyz:1024,mvx:2048,oyW:4096,mh2:8192,mY2:16384})));var Kvj={BbW:{value:0,configurable:!0,writable:!0,enumerable:!1}},azq=Object.defineProperties,ge=$U?bq9:"BbW",si,gue=[];Mi(gue,55);si=Object.freeze(gue);var S1b=typeof As==="symbol",Bgu={},di4=Object.freeze({});var gOq=Hu(function(z){return typeof z==="number"}),$1q=Hu(function(z){return typeof z==="string"}),x14=Hu(function(z){return typeof z==="boolean"}),lK=Hu(function(z){return z!=null&&typeof z==="object"&&typeof z.then==="function"}),Wt=Hu(function(z){return!!z&&(typeof z==="object"||typeof z==="function")});var Uk=typeof g.VR.BigInt==="function"&&typeof g.VR.BigInt(0)==="bigint";var bQ=Hu(function(z){return Uk?z>=xfv&&z<=M4v:z[0]==="-"?M9E(z,Auv):M9E(z,ouO)}),Auv=Number.MIN_SAFE_INTEGER.toString(),xfv=Uk?BigInt(Number.MIN_SAFE_INTEGER):void 0,ouO=Number.MAX_SAFE_INTEGER.toString(),M4v=Uk?BigInt(Number.MAX_SAFE_INTEGER):void 0;var XuR=typeof Uint8Array.prototype.slice==="function",kU=0,L0=0,vUs;var dy=typeof BigInt==="function"?BigInt.asIntN:void 0,vOu=typeof BigInt==="function"?BigInt.asUintN:void 0,Ns=Number.isSafeInteger,iQ=Number.isFinite,GY=Math.trunc,uvb=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var EUb={};var fW;var Ms,Z0z;var IEb=Rt(0);g.F=Neu.prototype;g.F.init=function(z,J,m,e){var T=e===void 0?{}:e;e=T.sX===void 0?!1:T.sX;T=T.o0===void 0?!1:T.o0;this.sX=e;this.o0=T;z&&(z=aj(z,this.o0),this.T=z.buffer,this.Z=z.nz,this.U=J||0,this.S=m!==void 0?this.U+m:this.T.length,this.K=this.U)}; +g.F.free=function(){this.clear();xc.length<100&&xc.push(this)}; +g.F.clear=function(){this.T=null;this.Z=!1;this.K=this.S=this.U=0;this.sX=!1}; +g.F.reset=function(){this.K=this.U}; +g.F.C1=function(){var z=this.Y;z||(z=this.T,z=this.Y=new DataView(z.buffer,z.byteOffset,z.byteLength));return z}; +var xc=[];Mc.prototype.free=function(){this.K.clear();this.T=this.U=-1;A_.length<100&&A_.push(this)}; +Mc.prototype.reset=function(){this.K.reset();this.S=this.K.K;this.T=this.U=-1}; +var A_=[];P0.prototype.toJSON=function(){return xj(this)}; +P0.prototype.G7=function(z){return JSON.stringify(xj(this,z))}; +P0.prototype.clone=function(){var z=this;ot(z);var J=z;ot(J);J=J.eE;J=z=new z.constructor(D_(J,J[ge]|0,h5,!0,!0));ot(J);J=J.eE;J[ge]&=-3;return z}; +P0.prototype.nz=function(){ot(this);return!!((this.eE[ge]|0)&2)}; +P0.prototype[As]=Bgu;P0.prototype.toString=function(){ot(this);return this.eE.toString()};var fEb,b0j;UJ.prototype.length=function(){return this.K.length}; +UJ.prototype.end=function(){var z=this.K;this.K=[];return z};var zO=r8(),jqc=r8(),hbS=r8(),u1g=r8(),V41=r8(),Pj9=r8(),t4$=r8(),Hqv=r8();var udq=m$(function(z,J,m,e,T){if(z.T!==2)return!1;jm(z,c0(J,e,m),T);return!0},hWE),Vnf=m$(function(z,J,m,e,T){if(z.T!==2)return!1; +jm(z,c0(J,e,m),T);return!0},hWE),wm=Symbol(),FG=Symbol(),W5=Symbol(),kCj=Symbol(),H0u=Symbol(),et,TO;var Ufc=Ir(function(z,J,m){if(z.T!==1)return!1;pI(J,m,$c(z.K));return!0},y2,t4$),RbF=Ir(function(z,J,m){if(z.T!==1)return!1; +z=$c(z.K);pI(J,m,z===0?void 0:z);return!0},y2,t4$),kE4=Ir(function(z,J,m,e){if(z.T!==1)return!1; +ZF(J,m,e,$c(z.K));return!0},y2,t4$),Lb1=Ir(function(z,J,m){if(z.T!==0)return!1; +pI(J,m,Sm(z.K));return!0},NE,V41),Qq$=Ir(function(z,J,m){if(z.T!==0)return!1; +z=Sm(z.K);pI(J,m,z===0?void 0:z);return!0},NE,V41),vu$=Ir(function(z,J,m,e){if(z.T!==0)return!1; +ZF(J,m,e,Sm(z.K));return!0},NE,V41),sq9=Ir(function(z,J,m){if(z.T!==0)return!1; +pI(J,m,fP(z.K));return!0},GO,u1g),ru1=Ir(function(z,J,m){if(z.T!==0)return!1; +z=fP(z.K);pI(J,m,z===0?void 0:z);return!0},GO,u1g),z$v=Ir(function(z,J,m,e){if(z.T!==0)return!1; +ZF(J,m,e,fP(z.K));return!0},GO,u1g),J4g=Ir(function(z,J,m){if(z.T!==1)return!1; +pI(J,m,bW(z.K));return!0},function(z,J,m){oUR(z,m,ses(J))},Pj9),m19=OW(function(z,J,m){if(z.T!==1&&z.T!==2)return!1; +J=J_(J,J[ge]|0,m);if(z.T==2)for(m=fP(z.K)>>>0,m=z.K.K+m;z.K.K>>0);return!0},function(z,J,m){J=wy(J); +J!=null&&J!=null&&(v0(z,m,0),kc(z.K,J))},r8()),c49=Ir(function(z,J,m){if(z.T!==0)return!1; +pI(J,m,fP(z.K));return!0},function(z,J,m){J=lQ(J); +J!=null&&(J=parseInt(J,10),v0(z,m,0),gUu(z.K,J))},r8());msq.prototype.register=function(){y9(this)};g.p(Tyz,P0);g.p(nI,P0);var B5=[1,2,3];var Wvg=[0,B5,ZN9,z$v,Tg4];var lz9=[0,r4,[0,Ufc,Lb1]];g.p(YX,P0);var KI=[1,2,3];var wce=[0,KI,vu$,kE4,Ji,lz9];g.p(CI,P0);var q19=[0,r4,Wvg,wce];var d1O=[0,[1,2,3],Ji,[0,s_,-1,e$F],Ji,[0,s_,-1,sq9,e$F],Ji,[0,s_]];g.p(ar,P0);ar.prototype.Qd=function(){var z=vv(this,3,nW,3,!0);u9(z);return z[void 0]};ar.prototype.K=evq([0,s_,d1O,EOv,r4,q19,J4g,m19]);g.p(ZWb,P0);var I_z=globalThis.trustedTypes,St;Dm.prototype.toString=function(){return this.K+""};gm.prototype.toString=function(){return this.K}; +var y5q=new gm("about:invalid#zClosurez");var bRz=AB("tel"),fqz=AB("sms"),pvf=[AB("data"),AB("http"),AB("https"),AB("mailto"),AB("ftp"),new ME(function(z){return/^[^:]*([/?#]|$)/.test(z)})],Nys=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;uN.prototype.toString=function(){return this.K+""};UW.prototype.toString=function(){return this.K+""};Q2.prototype.toString=function(){return this.K};var sW={};g.Iz9=String.prototype.repeat?function(z,J){return z.repeat(J)}:function(z,J){return Array(J+1).join(z)};g.F=FT.prototype;g.F.isEnabled=function(){if(!g.VR.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{cV:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; +g.F.set=function(z,J,m){var e=!1;if(typeof m==="object"){var T=m.k22;e=m.secure||!1;var E=m.domain||void 0;var Z=m.path||void 0;var c=m.cV}if(/[;=\s]/.test(z))throw Error('Invalid cookie name "'+z+'"');if(/[;\r\n]/.test(J))throw Error('Invalid cookie value "'+J+'"');c===void 0&&(c=-1);m=E?";domain="+E:"";Z=Z?";path="+Z:"";e=e?";secure":"";c=c<0?"":c==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+c*1E3)).toUTCString();this.K.cookie=z+"="+J+m+Z+c+e+(T!=null?";samesite="+ +T:"")}; +g.F.get=function(z,J){for(var m=z+"=",e=(this.K.cookie||"").split(";"),T=0,E;T=0;J--)this.remove(z[J])}; +var jA=new FT(typeof document=="undefined"?null:document);cm.prototype.compress=function(z){var J,m,e,T;return g.D(function(E){switch(E.K){case 1:return J=new CompressionStream("gzip"),m=(new Response(J.readable)).arrayBuffer(),e=J.writable.getWriter(),g.S(E,e.write((new TextEncoder).encode(z)),2);case 2:return g.S(E,e.close(),3);case 3:return T=Uint8Array,g.S(E,m,4);case 4:return E.return(new T(E.T))}})}; +cm.prototype.isSupported=function(z){return z<1024?!1:typeof CompressionStream!=="undefined"};g.p(Wm,P0);lu.prototype.setInterval=function(z){this.intervalMs=z;this.vk&&this.enabled?(this.stop(),this.start()):this.vk&&this.stop()}; +lu.prototype.start=function(){var z=this;this.enabled=!0;this.vk||(this.vk=setTimeout(function(){z.tick()},this.intervalMs),this.T=this.K())}; +lu.prototype.stop=function(){this.enabled=!1;this.vk&&(clearTimeout(this.vk),this.vk=void 0)}; +lu.prototype.tick=function(){var z=this;if(this.enabled){var J=Math.max(this.K()-this.T,0);J0?m:void 0));m=Hv(m,4,Wv(T>0?T:void 0));m=Hv(m,5,Wv(E>0?E:void 0));ot(m);T=m.eE;E=T[ge]|0;m=E&2?m:new m.constructor(D_(T,E,h5,!0,!0));qc(Z,Im,10,m)}Z=this.K.clone();m=Date.now().toString();Z=Hv(Z,4,y1(m));z=d8(Z,CL,3,z.slice());e&&(Z=new wC,e= +Hv(Z,13,Wv(e)),Z=new qr,e=qc(Z,wC,2,e),Z=new nL,e=qc(Z,qr,1,e),e=Yc(e,2,9),qc(z,nL,18,e));J&&G8(z,14,J);return z};var bPb=function(){if(!g.VR.addEventListener||!Object.defineProperty)return!1;var z=!1,J=Object.defineProperty({},"passive",{get:function(){z=!0}}); +try{var m=function(){}; +g.VR.addEventListener("test",m,J);g.VR.removeEventListener("test",m,J)}catch(e){}return z}();var Jnb=dcq("AnimationEnd"),qv=dcq("TransitionEnd");g.SX.prototype.T=0;g.SX.prototype.reset=function(){this.K=this.S=this.U;this.T=0}; +g.SX.prototype.getValue=function(){return this.S};g.p(IFz,P0);var ON9=XG(IFz);g.p(J5E,P0);var eq=new msq;g.p($L,g.h);g.F=$L.prototype;g.F.oy=function(){bV(this);this.T.stop();this.Qx.stop();g.h.prototype.oy.call(this)}; +g.F.dispatch=function(z){if(z instanceof CL)this.log(z);else try{var J=new CL,m=z.G7();var e=XS(J,8,m);this.log(e)}catch(T){g2(this,4,1)}}; +g.F.log=function(z){g2(this,2,1);if(this.Gf){z=z.clone();var J=this.qD++;z=G8(z,21,J);this.componentId&&XS(z,26,this.componentId);J=z;var m=Pv(J,1);var e=e===void 0?!1:e;var T=typeof m;e=m==null?m:T==="bigint"?String(dy(64,m)):cv(m)?T==="string"?qs(m):e?Ia(m):pW(m):void 0;e==null&&(e=Date.now(),e=Number.isFinite(e)?e.toString():"0",Hv(J,1,y1(e)));e=Pv(J,15);e!=null&&(typeof e==="bigint"?bQ(e)?e=Number(e):(e=dy(64,e),e=bQ(e)?Number(e):String(e)):e=cv(e)?typeof e==="number"?pW(e):qs(e):void 0);e!=null|| +G8(J,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(e=this.experimentIds.clone(),qc(J,Wm,16,e));g2(this,1,1);J=this.K.length-1E3+1;J>0&&(this.K.splice(0,J),this.U+=J,g2(this,3,J));this.K.push(z);this.Ux||this.T.enabled||this.T.start()}}; +g.F.flush=function(z,J){var m=this;if(this.K.length===0)z&&z();else if(this.x3&&this.Ry)this.S.T=3,G81(this);else{var e=Date.now();if(this.Lh>e&&this.wb0&&(m.wb=Date.now(),m.Lh=m.wb+d);var G;ot(I);d=e9(aa);if(O=$U&&d)ot(I),O=((G=I.eE[d])==null?void 0:G[175237375])!=null;O&&DE($f4,3);G=eq.K?eq.T(I,eq.K,175237375):eq.T(I,175237375,null);if(G=G===null?void 0:G)G=cc(G,1,-1),G!==-1&&(m.Z=new g.SX(G<1?1:G,3E5,.1),m.T.setInterval(m.Z.getValue()))}}z&& +z();m.Y=0},w=function(d,I){var O=Zz(E,CL,3); +var G=Number(O0u(E,14));g.fL(m.Z);m.T.setInterval(m.Z.getValue());d===401&&Z&&(m.h6=Z);G&&(m.U+=G);I===void 0&&(I=m.isRetryable(d));I&&(m.K=O.concat(m.K),m.Ux||m.T.enabled||m.T.start());g2(m,7,1);J&&J("net-send-failed",d);++m.Y},q=function(){m.network&&m.network.send(W,l,w)}; +c?c.then(function(d){g2(m,5,T);W.requestHeaders["Content-Encoding"]="gzip";W.requestHeaders["Content-Type"]="application/binary";W.body=d;W.jz=2;q()},function(){g2(m,6,T); +q()}):q()}}}}; +g.F.isRetryable=function(z){return 500<=z&&z<600||z===401||z===0};xL.prototype.send=function(z,J,m){var e=this,T,E,Z,c,W,l,w,q,d,I;return g.D(function(O){switch(O.K){case 1:return E=(T=e.GN?new AbortController:void 0)?setTimeout(function(){T.abort()},z.timeoutMillis):void 0,g.Yu(O,2,3),Z=Object.assign({},{method:z.requestType, +headers:Object.assign({},z.requestHeaders)},z.body&&{body:z.body},z.withCredentials&&{credentials:"include"},{signal:z.timeoutMillis&&T?T.signal:null}),g.S(O,fetch(z.url,Z),5);case 5:c=O.T;if(c.status!==200){(W=m)==null||W(c.status);O.U2(3);break}if((l=J)==null){O.U2(7);break}return g.S(O,c.text(),8);case 8:l(O.T);case 7:case 3:g.Bq(O);clearTimeout(E);g.fq(O,0);break;case 2:w=g.Kq(O);switch((q=w)==null?void 0:q.name){case "AbortError":(d=m)==null||d(408);break;default:(I=m)==null||I(400)}O.U2(3)}})}; +xL.prototype.CX=function(){return 4};g.p(Mu,g.h);Mu.prototype.tC=function(){this.Z=!0;return this}; +Mu.prototype.build=function(){this.network||(this.network=new xL);var z=new $L({logSource:this.logSource,xk:this.xk?this.xk:jas,sessionIndex:this.sessionIndex,Cz1:this.o8,Nb:this.U,Ux:!1,tC:this.Z,Ds:this.Ds,network:this.network});g.u(this,z);if(this.T){var J=this.T,m=BF(z.S);XS(m,7,J)}z.V=new cm;this.componentId&&(z.componentId=this.componentId);this.u1&&(z.u1=this.u1);this.pageId&&(z.pageId=this.pageId);this.K&&((m=this.K)?(z.experimentIds||(z.experimentIds=new Wm),J=z.experimentIds,m=m.G7(),XS(J, +4,m)):z.experimentIds&&Hv(z.experimentIds,4));this.S&&(z.x3=z.Ry);qJu(z.S);this.network.GP&&this.network.GP(this.logSource);this.network.Qoz&&this.network.Qoz(z);return z};g.p(AM,g.h);AM.prototype.flush=function(z){z=z||[];if(z.length){for(var J=new ZWb,m=[],e=0;e-1?(J=z[Z],m||(J.wP=!1)):(J=new SJq(J,this.src,E,!!e,T),J.wP=m,z.push(J));return J}; +g.F.remove=function(z,J,m,e){z=z.toString();if(!(z in this.listeners))return!1;var T=this.listeners[z];J=Qr(T,J,m,e);return J>-1?(tM(T[J]),g.rg(T,J),T.length==0&&(delete this.listeners[z],this.K--),!0):!1}; +g.F.removeAll=function(z){z=z&&z.toString();var J=0,m;for(m in this.listeners)if(!z||m==z){for(var e=this.listeners[m],T=0;T-1?z[T]:null}; +g.F.hasListener=function(z,J){var m=z!==void 0,e=m?z.toString():"",T=J!==void 0;return g.Bm(this.listeners,function(E){for(var Z=0;Z>>0);g.T9(g.ZB,g.h);g.ZB.prototype[Kwz]=!0;g.F=g.ZB.prototype;g.F.addEventListener=function(z,J,m,e){g.sX(this,z,J,m,e)}; +g.F.removeEventListener=function(z,J,m,e){Mmq(this,z,J,m,e)}; +g.F.dispatchEvent=function(z){var J=this.Lt;if(J){var m=[];for(var e=1;J;J=J.Lt)m.push(J),++e}J=this.mp;e=z.type||z;if(typeof z==="string")z=new g.uV(z,J);else if(z instanceof g.uV)z.target=z.target||J;else{var T=z;z=new g.uV(e,J);g.hP(z,T)}T=!0;var E;if(m)for(E=m.length-1;!z.T&&E>=0;E--){var Z=z.currentTarget=m[E];T=FV(Z,e,!0,z)&&T}z.T||(Z=z.currentTarget=J,T=FV(Z,e,!0,z)&&T,z.T||(T=FV(Z,e,!1,z)&&T));if(m)for(E=0;!z.T&&E0){this.T--;var z=this.K;this.K=z.next;z.next=null}else z=this.S();return z};var W1;wB.prototype.add=function(z,J){var m=Vmq.get();m.set(z,J);this.T?this.T.next=m:this.K=m;this.T=m}; +wB.prototype.remove=function(){var z=null;this.K&&(z=this.K,this.K=this.K.next,this.K||(this.T=null),z.next=null);return z}; +var Vmq=new iy(function(){return new qe},function(z){return z.reset()}); +qe.prototype.set=function(z,J){this.K=z;this.scope=J;this.next=null}; +qe.prototype.reset=function(){this.next=this.scope=this.K=null};var dB,IY=!1,hfq=new wB;tmb.prototype.reset=function(){this.context=this.T=this.S=this.K=null;this.U=!1}; +var HPE=new iy(function(){return new tmb},function(z){z.reset()}); +g.YV.prototype.then=function(z,J,m){return z_q(this,c1(typeof z==="function"?z:null),c1(typeof J==="function"?J:null),m)}; +g.YV.prototype.$goog_Thenable=!0;g.F=g.YV.prototype;g.F.finally=function(z){var J=this;z=c1(z);return new Promise(function(m,e){Lwq(J,function(T){z();m(T)},function(T){z(); +e(T)})})}; +g.F.IF=function(z,J){return z_q(this,null,c1(z),J)}; +g.F.catch=g.YV.prototype.IF;g.F.cancel=function(z){if(this.K==0){var J=new fB(z);g.Ow(function(){Qjq(this,J)},this)}}; +g.F.Ui2=function(z){this.K=0;nB(this,2,z)}; +g.F.Dii=function(z){this.K=0;nB(this,3,z)}; +g.F.tY=function(){for(var z;z=vcb(this);)sjb(this,z,this.K,this.V);this.Y=!1}; +var Tmu=Xv;g.T9(fB,O1);fB.prototype.name="cancel";g.T9(g.DB,g.ZB);g.F=g.DB.prototype;g.F.enabled=!1;g.F.z4=null;g.F.setInterval=function(z){this.ai=z;this.z4&&this.enabled?(this.stop(),this.start()):this.z4&&this.stop()}; +g.F.RBf=function(){if(this.enabled){var z=g.mv()-this.Qt;z>0&&z0&&(this.getStatus(),this.Y=setTimeout(this.Oh.bind(this), +this.Ry)),this.getStatus(),this.B=!0,this.K.send(z),this.B=!1}catch(Z){this.getStatus(),aLb(this,Z)}}; +g.F.Oh=function(){typeof TH!="undefined"&&this.K&&(this.U="Timed out after "+this.Ry+"ms, aborting",this.T=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; +g.F.abort=function(z){this.K&&this.S&&(this.getStatus(),this.S=!1,this.Z=!0,this.K.abort(),this.Z=!1,this.T=z||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),eB(this))}; +g.F.oy=function(){this.K&&(this.S&&(this.S=!1,this.Z=!0,this.K.abort(),this.Z=!1),eB(this,!0));g.mU.iC.oy.call(this)}; +g.F.bq=function(){this.mF()||(this.Tf||this.B||this.Z?KPz(this):this.zsn())}; +g.F.zsn=function(){KPz(this)}; +g.F.isActive=function(){return!!this.K}; +g.F.isComplete=function(){return g.EA(this)==4}; +g.F.getStatus=function(){try{return g.EA(this)>2?this.K.status:-1}catch(z){return-1}}; +g.F.getResponseHeader=function(z){if(this.K&&this.isComplete())return z=this.K.getResponseHeader(z),z===null?void 0:z}; +g.F.getLastError=function(){return typeof this.U==="string"?this.U:String(this.U)};WY.prototype.send=function(z,J,m){J=J===void 0?function(){}:J; +m=m===void 0?function(){}:m; +Y8u(z.url,function(e){e=e.target;ZO(e)?J(g.FF(e)):m(e.getStatus())},z.requestType,z.body,z.requestHeaders,z.timeoutMillis,z.withCredentials)}; +WY.prototype.CX=function(){return 1};wE.prototype.done=function(){this.logger.e0(this.event,lX()-this.startTime)}; +g.p(q8,q1);g.p(IZ,q8);g.F=IZ.prototype;g.F.j3=function(){}; +g.F.o3=function(){}; +g.F.e0=function(){}; +g.F.YA=function(){}; +g.F.U6=function(){}; +g.F.Pw=function(z,J,m){return m}; +g.F.al=function(){}; +g.F.UH=function(){}; +g.F.G_=function(){}; +g.F.Uq=function(){}; +g.p(OA,q8);g.F=OA.prototype;g.F.update=function(z){this.logger.dispose();this.logger=z}; +g.F.o3=function(z){this.logger.o3(z)}; +g.F.e0=function(z,J){this.logger.e0(z,J)}; +g.F.YA=function(z){this.logger.YA(z)}; +g.F.U6=function(){this.logger.U6()}; +g.F.Pw=function(z,J,m){return this.logger.Pw(z,J,m)}; +g.F.al=function(z){this.logger.al(z)}; +g.F.UH=function(z){this.logger.UH(z)}; +g.F.G_=function(z){this.logger.G_(z)}; +g.F.Uq=function(z){this.logger.Uq(z)}; +g.F.A2=function(z){this.logger instanceof N8&&this.logger.A2(z)}; +g.F.j3=function(z){this.logger.j3(z)}; +g.p(pS,g.h);g.p(yu,q8);g.F=yu.prototype;g.F.A2=function(z){this.QC=z}; +g.F.j3=function(z){this.metrics.q9n.Ci(z,this.Dc)}; +g.F.o3=function(z){this.metrics.eventCount.ML(z,this.Dc)}; +g.F.e0=function(z,J){this.metrics.lh.Ci(J,z,this.QC,this.Dc)}; +g.F.YA=function(z){this.metrics.errorCount.ML(z,this.QC,this.Dc)}; +g.F.Pw=function(z,J,m){function e(Z){if(!T.mF()){var c=lX()-E;T.metrics.As4.Ci(c,z,J,Z,T.QC,T.Dc)}} +var T=this,E=lX();m.then(function(){return void e(0)},function(Z){return void e(Z instanceof A0?Z.code:-1)}); +return m}; +g.F.al=function(z){this.metrics.uE2.ML(z,this.QC,this.Dc)}; +g.F.UH=function(z){this.metrics.B6.ML(z,this.QC,this.Dc)}; +g.F.G_=function(z){this.metrics.nE2.ML(z,this.QC,this.Dc)}; +g.p(N8,yu);N8.prototype.Uq=function(z){var J=this;this.K.dispose();this.T&&this.service.dispose();this.service=this.options.vE("48",this.options.P4.concat(z));this.K=new pS(function(){return void J.service.Ms()},this.options.Dw); +this.metrics=fLb(this.service);this.S=z}; +N8.prototype.U6=function(){bYu(this.K)};g.p(GH,P0);g.p(XF,P0);g.p(nS,P0);var Vfu=XG(nS),gfq=function(z){return Hu(function(J){var m;if(m=J instanceof z)ot(J),m=!((J.eE[ge]|0)&2);return m})}(nS); +nS.messageId="bfkj";g.p(Fv,P0);g.p(Ya,P0);var xrq=XG(Ya);g.p(aZ,g.h);aZ.prototype.snapshot=function(z){if(this.mF())throw Error("Already disposed");this.logger.o3("n");var J=this.logger.share();return this.S.then(function(m){var e=m.nN;return new Promise(function(T){var E=new wE(J,"n");e(function(Z){E.done();J.j3(Z.length);J.U6();J.dispose();T(Z)},[z.Up, +z.rX,z.Fa,z.zQ])})})}; +aZ.prototype.HO=function(z){var J=this;if(this.mF())throw Error("Already disposed");this.logger.o3("n");var m=dE(this.logger,function(){return J.U([z.Up,z.rX,z.Fa,z.zQ])},"n"); +this.logger.j3(m.length);this.logger.U6();return m}; +aZ.prototype.Ag=function(z){this.S.then(function(J){var m;(m=J.kGW)==null||m(z)})}; +aZ.prototype.bk=function(){return this.logger.share()};g.p(DO,P0);g.p(bX,P0);$a.prototype.M6=function(z,J){return Puq(this,z,J,new IZ,0)}; +$a.prototype.cn=function(z){return Urz(this,z,new IZ,0)};g.p(gE,g.h);gE.prototype.snapshot=function(z){var J=this;return g.D(function(m){switch(m.K){case 1:if(J.mF())throw Error("Already disposed");if(J.T||J.V){m.U2(2);break}return g.S(m,J.Z.promise,2);case 2:if(!J.T){m.U2(4);break}return g.S(m,J.T.snapshot(z),5);case 5:return m.return(m.T);case 4:throw J.V;}})}; +gE.prototype.Ag=function(z){var J,m;(J=this.T)==null||(m=J.Ag)==null||m.call(J,z)}; +gE.prototype.handleError=function(z){if(!this.mF()){this.V=z;this.Z.resolve();var J,m;(m=(J=this.options).qDF)==null||m.call(J,z)}}; +gE.prototype.bk=function(){return this.logger.share()}; +var LPq={VIx:432E5,r$:3E5,pY:10,PF:1E4,Sm:3E4,wdn:3E4,is1:6E4,kJ:1E3,Hh:6E4,Rn:6E5,fv:.25,yA:2,maxAttempts:10};var Ng1,T2u=(Ng1=Math.imul)!=null?Ng1:function(z,J){return z*J|0},oZ=[196, +200,224,18];jB.prototype.G7=function(){return String(this.K)+","+this.T.join()}; +jB.prototype.eb=function(z,J){var m=void 0;if(this.T[this.K]!==z){var e=this.T.indexOf(z);e!==-1?(this.T.splice(e,1),e0;)J[m++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(z%62),z=Math.floor(z/62);return J.join("")}};var pFu;g.p(uX,g.h);uX.prototype.zR=function(z,J){var m=this.sU(z);J==null||J(m);return dE(this.logger,function(){return g.GC(m,2)},this.S)}; +pFu=Symbol.dispose;g.p(HY,uX);HY.prototype.sU=function(z,J){var m=this;this.logger.o3(this.K);++this.Z>=this.Y&&this.T.resolve();var e=z();z=dE(this.logger,function(){return m.U(e)},"C"); +if(z===void 0)throw new E1(17,"YNJ:Undefined");if(!(z instanceof Uint8Array))throw new E1(18,"ODM:Invalid");J==null||J(z);return z}; +g.p(UA,uX);UA.prototype.sU=function(){return this.U}; +g.p(RZ,uX);RZ.prototype.sU=function(){var z=this;return dE(this.logger,function(){return n0(z.U)},"d")}; +RZ.prototype.zR=function(){return this.U}; +g.p(ka,uX);ka.prototype.sU=function(){if(this.U)return this.U;this.U=yMb(this,function(z){return"_"+OLq(z)}); +return yMb(this,function(z){return z})}; +g.p(Qu,uX);Qu.prototype.sU=function(z){var J=z();if(J.length>118)throw new E1(19,"DFO:Invalid");z=Math.floor(Date.now()/1E3);var m=[Math.random()*255,Math.random()*255],e=m.concat([this.U&255,this.clientState],[z>>24&255,z>>16&255,z>>8&255,z&255]);z=new Uint8Array(2+e.length+J.length);z[0]=34;z[1]=e.length+J.length;z.set(e,2);z.set(J,2+e.length);J=z.subarray(2);for(e=m=m.length;e150))try{this.cache=new l$4(z,this.logger)}catch(J){this.reportError(new E1(22,"GBJ:init",J))}}; +vY.prototype.reportError=function(z){this.logger.YA(z.code);this.onError(z);return z}; +g.p(JV,vY);JV.prototype.kp=function(){return this.U.promise}; +JV.prototype.sU=function(z){return sA(this,Object.assign({},z),!1)}; +JV.prototype.zR=function(z){return sA(this,Object.assign({},z),!0)}; +var K0u=function(z){return Hu(function(J){if(!Wt(J))return!1;for(var m=g.y(Object.entries(z)),e=m.next();!e.done;e=m.next()){var T=g.y(e.value);e=T.next().value;T=T.next().value;if(!(e in J)){if(T.tnb===!0)continue;return!1}if(!T(J[e]))return!1}return!0})}({xP:function(z){return Hu(function(J){return J instanceof z})}(gE)},"");g.p(eJ,P0);var G91=XG(eJ);f$u.prototype.getMetadata=function(){return this.metadata};Td.prototype.getMetadata=function(){return this.metadata}; +Td.prototype.getStatus=function(){return this.status};E7.prototype.V=function(z,J){J=J===void 0?{}:J;return new f$u(z,this,J)}; +E7.prototype.getName=function(){return this.name};var Xc$=new E7("/google.internal.waa.v1.Waa/Create",DO,eJ,function(z){return z.G7()},G91);g.p(ZK,P0);var HYj=new E7("/google.internal.waa.v1.Waa/GenerateIT",bX,ZK,function(z){return z.G7()},XG(ZK));var TBj=new Set(["SAPISIDHASH","APISIDHASH"]);g.p(Fn,P0);Fn.prototype.getValue=function(){var z=Pv(this,2);if(Array.isArray(z)||z instanceof P0)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return ry(this,2)};g.p(ie,P0);ie.prototype.getMessage=function(){return yI(this,2)}; +var MXb=XG(ie);cD.prototype.py=function(z,J){z=="data"?this.S.push(J):z=="metadata"?this.Z.push(J):z=="status"?this.Y.push(J):z=="end"?this.U.push(J):z=="error"&&this.T.push(J);return this}; +cD.prototype.removeListener=function(z,J){z=="data"?dA(this.S,J):z=="metadata"?dA(this.Z,J):z=="status"?dA(this.Y,J):z=="end"?dA(this.U,J):z=="error"&&dA(this.T,J);return this}; +cD.prototype.cancel=function(){this.K.abort()}; +cD.prototype.cancel=cD.prototype.cancel;cD.prototype.removeListener=cD.prototype.removeListener;cD.prototype.on=cD.prototype.py;g.p(bLb,Error);g.T9(g.I$,Imf);g.I$.prototype.K=function(){var z=new O7(this.U,this.S);this.T&&z.setCredentialsMode(this.T);return z}; +g.I$.prototype.setCredentialsMode=function(z){this.T=z}; +g.T9(O7,g.ZB);g.F=O7.prototype;g.F.open=function(z,J){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.Ry=z;this.B=J;this.readyState=1;pv(this)}; +g.F.send=function(z){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.K=!0;var J={headers:this.X,method:this.Ry,credentials:this.Z,cache:void 0};z&&(J.body=z);(this.fh||g.VR).fetch(new Request(this.B,J)).then(this.ihy.bind(this),this.ue.bind(this))}; +g.F.abort=function(){this.response=this.responseText="";this.X=new Headers;this.status=0;this.S&&this.S.cancel("Request was aborted.").catch(function(){}); +this.readyState>=1&&this.K&&this.readyState!=4&&(this.K=!1,yh(this));this.readyState=0}; +g.F.ihy=function(z){if(this.K&&(this.U=z,this.T||(this.status=this.U.status,this.statusText=this.U.statusText,this.T=z.headers,this.readyState=2,pv(this)),this.K&&(this.readyState=3,pv(this),this.K)))if(this.responseType==="arraybuffer")z.arrayBuffer().then(this.mDW.bind(this),this.ue.bind(this));else if(typeof g.VR.ReadableStream!=="undefined"&&"body"in z){this.S=z.body.getReader();if(this.Y){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.'); +this.response=[]}else this.response=this.responseText="",this.V=new TextDecoder;AMj(this)}else z.text().then(this.Zhh.bind(this),this.ue.bind(this))}; +g.F.xD1=function(z){if(this.K){if(this.Y&&z.value)this.response.push(z.value);else if(!this.Y){var J=z.value?z.value:new Uint8Array(0);if(J=this.V.decode(J,{stream:!z.done}))this.response=this.responseText+=J}z.done?yh(this):pv(this);this.readyState==3&&AMj(this)}}; +g.F.Zhh=function(z){this.K&&(this.response=this.responseText=z,yh(this))}; +g.F.mDW=function(z){this.K&&(this.response=z,yh(this))}; +g.F.ue=function(){this.K&&yh(this)}; +g.F.setRequestHeader=function(z,J){this.X.append(z,J)}; +g.F.getResponseHeader=function(z){return this.T?this.T.get(z.toLowerCase())||"":""}; +g.F.getAllResponseHeaders=function(){if(!this.T)return"";for(var z=[],J=this.T.entries(),m=J.next();!m.done;)m=m.value,z.push(m[0]+": "+m[1]),m=J.next();return z.join("\r\n")}; +g.F.setCredentialsMode=function(z){this.Z=z}; +Object.defineProperty(O7.prototype,"withCredentials",{get:function(){return this.Z==="include"}, +set:function(z){this.setCredentialsMode(z?"include":"same-origin")}});g.N_.prototype.toString=function(){var z=[],J=this.Z;J&&z.push(Kv(J,nO$,!0),":");var m=this.K;if(m||J=="file")z.push("//"),(J=this.X)&&z.push(Kv(J,nO$,!0),"@"),z.push(g.JP(m).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),m=this.S,m!=null&&z.push(":",String(m));if(m=this.T)this.K&&m.charAt(0)!="/"&&z.push("/"),z.push(Kv(m,m.charAt(0)=="/"?Y19:CFc,!0));(m=this.U.toString())&&z.push("?",m);(m=this.Y)&&z.push("#",Kv(m,aze));return z.join("")}; +g.N_.prototype.resolve=function(z){var J=this.clone(),m=!!z.Z;m?g.Gd(J,z.Z):m=!!z.X;m?J.X=z.X:m=!!z.K;m?g.Xn(J,z.K):m=z.S!=null;var e=z.T;if(m)g.nv(J,z.S);else if(m=!!z.T){if(e.charAt(0)!="/")if(this.K&&!this.T)e="/"+e;else{var T=J.T.lastIndexOf("/");T!=-1&&(e=J.T.slice(0,T+1)+e)}T=e;if(T==".."||T==".")e="";else if(g.ae(T,"./")||g.ae(T,"/.")){e=YO(T,"/");T=T.split("/");for(var E=[],Z=0;Z1||E.length==1&&E[0]!="")&&E.pop(), +e&&Z==T.length&&E.push("")):(E.push(c),e=!0)}e=E.join("/")}else e=T}m?J.T=e:m=z.U.toString()!=="";m?Yz(J,z.U.clone()):m=!!z.Y;m&&(J.Y=z.Y);return J}; +g.N_.prototype.clone=function(){return new g.N_(this)}; +var nO$=/[#\/\?@]/g,CFc=/[#\?:]/g,Y19=/[#\?]/g,jm1=/[#\?@]/g,aze=/#/g;g.F=a$.prototype;g.F.add=function(z,J){fv(this);this.S=null;z=DK(this,z);var m=this.K.get(z);m||this.K.set(z,m=[]);m.push(J);this.T=this.T+1;return this}; +g.F.remove=function(z){fv(this);z=DK(this,z);return this.K.has(z)?(this.S=null,this.T=this.T-this.K.get(z).length,this.K.delete(z)):!1}; +g.F.clear=function(){this.K=this.S=null;this.T=0}; +g.F.isEmpty=function(){fv(this);return this.T==0}; +g.F.forEach=function(z,J){fv(this);this.K.forEach(function(m,e){m.forEach(function(T){z.call(J,T,e,this)},this)},this)}; +g.F.IV=function(){fv(this);for(var z=Array.from(this.K.values()),J=Array.from(this.K.keys()),m=[],e=0;e0?String(z[0]):J}; +g.F.toString=function(){if(this.S)return this.S;if(!this.K)return"";for(var z=[],J=Array.from(this.K.keys()),m=0;m>>3;E.S!=1&&E.S!=2&&E.S!=15&&xz(E,Z,c,"unexpected tag");E.K=1;E.T=0;E.U=0} +function m(W){E.U++;E.U==5&&W&240&&xz(E,Z,c,"message length too long");E.T|=(W&127)<<(E.U-1)*7;W&128||(E.K=2,E.X=0,typeof Uint8Array!=="undefined"?E.Z=new Uint8Array(E.T):E.Z=Array(E.T),E.T==0&&T())} +function e(W){E.Z[E.X++]=W;E.X==E.T&&T()} +function T(){if(E.S<15){var W={};W[E.S]=E.Z;E.V.push(W)}E.K=0} +for(var E=this,Z=z instanceof Array?z:new Uint8Array(z),c=0;c0?z:null};M_.prototype.isInputValid=function(){return this.K===null}; +M_.prototype.Cc=function(){return this.K}; +M_.prototype.Fp=function(){return!1}; +M_.prototype.parse=function(z){this.K!==null&&RXu(this,z,"stream already broken");var J=null;try{var m=this.S;m.S||Uu1(m,z,"stream already broken");m.K+=z;var e=Math.floor(m.K.length/4);if(e==0)var T=null;else{try{var E=d1u(m.K.slice(0,e*4))}catch(Z){Uu1(m,m.K,Z.message)}m.T+=e*4;m.K=m.K.slice(e*4);T=E}J=T===null?null:this.U.parse(T)}catch(Z){RXu(this,z,Z.message)}this.T+=z.length;return J};var Bgg={INIT:0,QB:1,Zv:2,bQ:3,aM:4,GJ:5,STRING:6,Q4:7,mI:8,AE:9,nT:10,g4:11,jM:12,Oz:13,BO:14,cO:15,E_:16,CT:17,Vg:18,lw:19,m_:20};g.F=o$.prototype;g.F.isInputValid=function(){return this.Z!=3}; +g.F.Cc=function(){return this.B}; +g.F.done=function(){return this.Z===2}; +g.F.Fp=function(){return!1}; +g.F.parse=function(z){function J(){for(;d0;)if(O=z[d++], +E.X===4?E.X=0:E.X++,!O)break a;if(O==='"'&&!E.V){E.K=e();break}if(O==="\\"&&!E.V&&(E.V=!0,O=z[d++],!O))break;if(E.V)if(E.V=!1,O==="u"&&(E.X=1),O=z[d++])continue;else break;c.lastIndex=d;O=c.exec(z);if(!O){d=z.length+1;break}d=O.index+1;O=z[O.index];if(!O)break}E.S+=d-G;continue;case W.AE:if(!O)continue;O==="r"?E.K=W.nT:jJ(E,z,d);continue;case W.nT:if(!O)continue;O==="u"?E.K=W.g4:jJ(E,z,d);continue;case W.g4:if(!O)continue;O==="e"?E.K=e():jJ(E,z,d);continue;case W.jM:if(!O)continue;O==="a"?E.K=W.Oz: +jJ(E,z,d);continue;case W.Oz:if(!O)continue;O==="l"?E.K=W.BO:jJ(E,z,d);continue;case W.BO:if(!O)continue;O==="s"?E.K=W.cO:jJ(E,z,d);continue;case W.cO:if(!O)continue;O==="e"?E.K=e():jJ(E,z,d);continue;case W.E_:if(!O)continue;O==="u"?E.K=W.CT:jJ(E,z,d);continue;case W.CT:if(!O)continue;O==="l"?E.K=W.Vg:jJ(E,z,d);continue;case W.Vg:if(!O)continue;O==="l"?E.K=e():jJ(E,z,d);continue;case W.lw:O==="."?E.K=W.m_:jJ(E,z,d);continue;case W.m_:if("0123456789.eE+-".indexOf(O)!==-1)continue;else d--,E.S--,E.K= +e();continue;default:jJ(E,z,d)}}} +function e(){var O=Z.pop();return O!=null?O:W.QB} +function T(O){E.T>1||(O||(O=q===-1?E.U+z.substring(w,d):z.substring(q,d)),E.Ry?E.Y.push(O):E.Y.push(JSON.parse(O)),q=d)} +for(var E=this,Z=E.fh,c=E.Tf,W=Bgg,l=z.length,w=0,q=-1,d=0;d0?(I=E.Y,E.Y=[],I):null}return null};hV.prototype.isInputValid=function(){return this.Z===null}; +hV.prototype.Cc=function(){return this.Z}; +hV.prototype.Fp=function(){return!1}; +hV.prototype.parse=function(z){function J(W){E.T=6;E.Z="The stream is broken @"+E.K+"/"+Z+". Error: "+W+". With input:\n";throw Error(E.Z);} +function m(){E.S=new o$({yT3:!0,VD:!0})} +function e(W){if(W)for(var l=0;l1)&&J("extra status: "+W);E.Y=!0;var l={};l[2]=W[0];E.U.push(l)}} +for(var E=this,Z=0;Z0?(z=E.U,E.U=[],z):null};ue.prototype.bD=function(){return this.K}; +ue.prototype.getStatus=function(){return this.Z}; +ue.prototype.Ry=function(z){z=z.target;try{if(z==this.K)a:{var J=g.EA(this.K),m=this.K.T,e=this.K.getStatus(),T=g.FF(this.K);z=[];if(g.iX(this.K)instanceof Array){var E=g.iX(this.K);E.length>0&&E[0]instanceof Uint8Array&&(this.B=!0,z=E)}if(!(J<3||J==3&&!T&&z.length==0))if(e=e==200||e==206,J==4&&(m==8?Vh(this,7):m==7?Vh(this,8):e||Vh(this,3)),this.T||(this.T=kbq(this.K),this.T==null&&Vh(this,5)),this.Z>2)R$(this);else{if(z.length>this.S){var Z=z.length;m=[];try{if(this.T.Fp())for(var c=0;cthis.S){c=T.slice(this.S);this.S=T.length;try{var l=this.T.parse(c);l!=null&&this.U&&this.U(l)}catch(w){Vh(this,5);R$(this);break a}}J==4?(T.length!= +0||this.B?Vh(this,2):Vh(this,4),R$(this)):Vh(this,1)}}}catch(w){Vh(this,6),R$(this)}};g.F=L0u.prototype;g.F.py=function(z,J){var m=this.T[z];m||(m=[],this.T[z]=m);m.push(J);return this}; +g.F.addListener=function(z,J){this.py(z,J);return this}; +g.F.removeListener=function(z,J){var m=this.T[z];m&&g.zC(m,J);(z=this.K[z])&&g.zC(z,J);return this}; +g.F.once=function(z,J){var m=this.K[z];m||(m=[],this.K[z]=m);m.push(J);return this}; +g.F.mTy=function(z){var J=this.T.data;J&&Qmb(z,J);(J=this.K.data)&&Qmb(z,J);this.K.data=[]}; +g.F.MCf=function(){switch(this.S.getStatus()){case 1:kz(this,"readable");break;case 5:case 6:case 4:case 7:case 3:kz(this,"error");break;case 8:kz(this,"close");break;case 2:kz(this,"end")}};vLb.prototype.serverStreaming=function(z,J,m,e){var T=this,E=z.substring(0,z.length-e.name.length);return smj(function(Z){var c=Z.RE,W=Z.getMetadata(),l=J0q(T,!1);W=me4(T,W,l,E+c.getName());var w=elR(l,c.T,!0);Z=c.K(Z.rN);l.send(W,"POST",Z);return w},this.U).call(this,e.V(J,m))};EVE.prototype.create=function(z,J){return tff(this.K,this.T+"/$rpc/google.internal.waa.v1.Waa/Create",z,J||{},Xc$)};g.p(Lv,vY);g.F=Lv.prototype;g.F.isReady=function(){return!!this.K}; +g.F.ready=function(){var z=this;return g.D(function(J){return g.S(J,z.S.promise,0)})}; +g.F.M6=function(z){return FWq(this,this.logger.Pw("c",z===void 0?1:z,this.fJ.M6(SB().K,null)),new E1(10,"JVZ:Timeout"))}; +g.F.prefetch=function(){this.state===1&&(this.IP=this.M6())}; +g.F.start=function(){if(this.state===1){this.state=2;var z=new wE(this.logger,"r");this.ready().finally(function(){return void z.done()}); +c0E(this)}}; +g.F.sU=function(z){WWu(this,z);return sA(this,ZBR(z),!1)}; +g.F.zR=function(z){WWu(this,z);return sA(this,ZBR(z),!0)}; +g.p(vD,O1);var dej={NONE:0,nxD:1},kwz={II:0,j$i:1,FS3:2,OJ3:3},g1={pm:"a",LY3:"d",VIDEO:"v"};s7.prototype.isVisible=function(){return this.gt?this.y8>=.3:this.y8>=.5};var ix={SSW:0,kk2:1},UeR={NONE:0,jan:1,Kyb:2};rA.prototype.getValue=function(){return this.T}; +g.p(zq,rA);zq.prototype.S=function(z){this.T===null&&g.$f(this.U,z)&&(this.T=z)}; +g.p(JS,rA);JS.prototype.S=function(z){this.T===null&&typeof z==="number"&&(this.T=z)}; +g.p(mM,rA);mM.prototype.S=function(z){this.T===null&&typeof z==="string"&&(this.T=z)};eL.prototype.disable=function(){this.T=!1}; +eL.prototype.enable=function(){this.T=!0}; +eL.prototype.isEnabled=function(){return this.T}; +eL.prototype.reset=function(){this.K={};this.T=!0;this.S={}};var BM=document,w1=window;var QZ1=!g.pz&&!Pc();cN.prototype.now=function(){return 0}; +cN.prototype.T=function(){return 0}; +cN.prototype.S=function(){return 0}; +cN.prototype.K=function(){return 0};g.p(lx,cN);lx.prototype.now=function(){return WN()&&w1.performance.now?w1.performance.now():cN.prototype.now.call(this)}; +lx.prototype.T=function(){return WN()&&w1.performance.memory?w1.performance.memory.totalJSHeapSize||0:cN.prototype.T.call(this)}; +lx.prototype.S=function(){return WN()&&w1.performance.memory?w1.performance.memory.usedJSHeapSize||0:cN.prototype.S.call(this)}; +lx.prototype.K=function(){return WN()&&w1.performance.memory?w1.performance.memory.jsHeapSizeLimit||0:cN.prototype.K.call(this)};var p1f=Ne(function(){var z=!1;try{var J=Object.defineProperty({},"passive",{get:function(){z=!0}}); +g.VR.addEventListener("test",null,J)}catch(m){}return z});y01.prototype.isVisible=function(){return Ig(BM)===1};var Gw4={pXb:"allow-forms",ksD:"allow-modals",R22:"allow-orientation-lock",ff4:"allow-pointer-lock",lf3:"allow-popups",vAx:"allow-popups-to-escape-sandbox",tfD:"allow-presentation",oAh:"allow-same-origin",KAD:"allow-scripts",Ty2:"allow-top-navigation",e2i:"allow-top-navigation-by-user-activation"},Cyq=Ne(function(){return X1f()});var Sw1=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");Gq.prototype.jO=function(z,J,m){z=z+"//"+J+m;var e=$e4(this)-m.length;if(e<0)return"";this.K.sort(function(l,w){return l-w}); +m=null;J="";for(var T=0;T=W.length){e-=W.length;z+=W;J=this.S;break}m=m==null?E:m}}e="";m!=null&&(e=""+J+"trn="+m);return z+e};SL.prototype.setInterval=function(z,J){return w1.setInterval(z,J)}; +SL.prototype.clearInterval=function(z){w1.clearInterval(z)}; +SL.prototype.setTimeout=function(z,J){return w1.setTimeout(z,J)}; +SL.prototype.clearTimeout=function(z){w1.clearTimeout(z)};g.p(D0,P0);D0.prototype.K=evq([0,RbF,Qq$,-2,ru1]);var Rlu={iJy:1,Ib:2,bi4:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};LWu.prototype.dc=function(z){if(typeof z==="string"&&z.length!=0){var J=this.VQ;if(J.T){z=z.split("&");for(var m=z.length-1;m>=0;m--){var e=z[m].split("="),T=decodeURIComponent(e[0]);e.length>1?(e=decodeURIComponent(e[1]),e=/^[0-9]+$/g.exec(e)?parseInt(e,10):e):e=1;(T=J.K[T])&&T.S(e)}}}};var T3=null;var AS=g.VR.performance,S1$=!!(AS&&AS.mark&&AS.measure&&AS.clearMarks),xK=Ne(function(){var z;if(z=S1$){var J=J===void 0?window:J;if(T3===null){T3="";try{z="";try{z=J.top.location.hash}catch(e){z=J.location.hash}if(z){var m=z.match(/\bdeid=([\d,]+)/);T3=m?m[1]:""}}catch(e){}}J=T3;z=!!J.indexOf&&J.indexOf("1337")>=0}return z}); +M7.prototype.disable=function(){this.K=!1;this.events!==this.T.google_js_reporting_queue&&(xK()&&g.de(this.events,J2z),this.events.length=0)}; +M7.prototype.start=function(z,J){if(!this.K)return null;var m=r0u()||sY4();z=new z1q(z,J,m);J="goog_"+z.label+"_"+z.uniqueId+"_start";AS&&xK()&&AS.mark(J);return z}; +M7.prototype.end=function(z){if(this.K&&typeof z.value==="number"){var J=r0u()||sY4();z.duration=J-z.value;J="goog_"+z.label+"_"+z.uniqueId+"_end";AS&&xK()&&AS.mark(J);!this.K||this.events.length>2048||this.events.push(z)}};m8q.prototype.Rp=function(z,J,m,e,T){T=T||this.Gv;try{var E=new Gq;E.K.push(1);E.T[1]=XA("context",z);J.error&&J.meta&&J.id||(J=new ux(VC(J)));if(J.msg){var Z=J.msg.substring(0,512);E.K.push(2);E.T[2]=XA("msg",Z)}var c=J.meta||{};if(this.nw)try{this.nw(c)}catch(I){}if(e)try{e(c)}catch(I){}e=[c];E.K.push(3);E.T[3]=e;var W=DeE();if(W.T){var l=W.T.url||"";E.K.push(4);E.T[4]=XA("top",l)}var w={url:W.K.url||""};if(W.K.url){var q=W.K.url.match(P1);var d=uy(q[1],null,q[3],q[4])}else d="";l=[w,{url:d}];E.K.push(5); +E.T[5]=l;QYb(this.K,T,E,m)}catch(I){try{QYb(this.K,T,{context:"ecmserr",rctx:z,msg:VC(I),url:W&&W.K.url},m)}catch(O){}}return this.sJ}; +g.p(ux,vVu);var jL,hS,og=new M7;jL=new function(){var z="https:";w1&&w1.location&&w1.location.protocol==="http:"&&(z="http:");this.T=z;this.K=.01}; +hS=new m8q;w1&&w1.document&&(w1.document.readyState=="complete"?TEu():og.K&&d1(w1,"load",function(){TEu()}));var FUR=Date.now(),Lh=-1,Rg=-1,Ce4,QC=-1,kK=!1;g.F=vN.prototype;g.F.getHeight=function(){return this.bottom-this.top}; +g.F.clone=function(){return new vN(this.top,this.right,this.bottom,this.left)}; +g.F.contains=function(z){return this&&z?z instanceof vN?z.left>=this.left&&z.right<=this.right&&z.top>=this.top&&z.bottom<=this.bottom:z.x>=this.left&&z.x<=this.right&&z.y>=this.top&&z.y<=this.bottom:!1}; +g.F.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.F.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.F.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.F.scale=function(z,J){J=typeof J==="number"?J:z;this.left*=z;this.right*=z;this.top*=J;this.bottom*=J;return this};Jf.prototype.NL=function(z,J){return!!z&&(!(J===void 0?0:J)||this.volume==z.volume)&&this.S==z.S&&r1(this.K,z.K)&&!0};mJ.prototype.aT=function(){return this.V}; +mJ.prototype.NL=function(z,J){return this.U.NL(z.U,J===void 0?!1:J)&&this.V==z.V&&r1(this.S,z.S)&&r1(this.Y,z.Y)&&this.K==z.K&&this.Z==z.Z&&this.T==z.T&&this.X==z.X};var fze={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},K8={P6:"start",mx:"firstquartile",pN:"midpoint",w0:"thirdquartile",COMPLETE:"complete",ERROR:"error",H6:"metric",PAUSE:"pause",ob:"resume",KN:"skip",Dy:"viewable_impression",fN:"mute",Sz:"unmute",Z5:"fullscreen",Y6:"exitfullscreen",Th:"bufferstart",Km:"bufferfinish",iI:"fully_viewable_audible_half_duration_impression",yO:"measurable_impression",zi:"abandon",aI:"engagedview",VG:"impression",Sr:"creativeview",zK:"loaded", +Vxf:"progress",CLOSE:"close",Tun:"collapse",eDf:"overlay_resize",PGi:"overlay_unmeasurable_impression",wBi:"overlay_unviewable_impression",Sj4:"overlay_viewable_immediate_impression",xw3:"overlay_viewable_end_of_session_impression",U0:"custom_metric_viewable",k6:"audio_audible",fm:"audio_measurable",RI:"audio_impression"},MLE="start firstquartile midpoint thirdquartile resume loaded".split(" "),ASj=["start","firstquartile","midpoint","thirdquartile"],K_u=["abandon"],RL={UNKNOWN:-1,P6:0,mx:1,pN:2, +w0:3,COMPLETE:4,H6:5,PAUSE:6,ob:7,KN:8,Dy:9,fN:10,Sz:11,Z5:12,Y6:13,iI:14,yO:15,zi:16,aI:17,VG:18,Sr:19,zK:20,U0:21,Th:22,Km:23,RI:27,fm:28,k6:29};var c24={jWF:"addEventListener",eR1:"getMaxSize",P3n:"getScreenSize",wWx:"getState",xYf:"getVersion",uF3:"removeEventListener",Pvz:"isViewable"};g.F=g.T6.prototype;g.F.clone=function(){return new g.T6(this.left,this.top,this.width,this.height)}; +g.F.contains=function(z){return z instanceof g.Nr?z.x>=this.left&&z.x<=this.left+this.width&&z.y>=this.top&&z.y<=this.top+this.height:this.left<=z.left&&this.left+this.width>=z.left+z.width&&this.top<=z.top&&this.top+this.height>=z.top+z.height}; +g.F.getSize=function(){return new g.XT(this.width,this.height)}; +g.F.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; +g.F.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; +g.F.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; +g.F.scale=function(z,J){J=typeof J==="number"?J:z;this.left*=z;this.width*=z;this.top*=J;this.height*=J;return this};var qAq={};naR.prototype.update=function(z){z&&z.document&&(this.V=e$(!1,z,this.isMobileDevice),this.K=e$(!0,z,this.isMobileDevice),CX1(this,z),YAs(this,z))};fU.prototype.cancel=function(){fh().clearTimeout(this.K);this.K=null}; +fU.prototype.schedule=function(){var z=this,J=fh(),m=$K().K.K;this.K=J.setTimeout(bx(m,tS(143,function(){z.T++;z.S.sample()})),iSu())};g.F=D4.prototype;g.F.bl=function(){return!1}; +g.F.initialize=function(){return this.isInitialized=!0}; +g.F.XP=function(){return this.K.x3}; +g.F.wV=function(){return this.K.Ry}; +g.F.Ii=function(z,J){if(!this.Ry||(J===void 0?0:J))this.Ry=!0,this.x3=z,this.X=0,this.K!=this||Af(this)}; +g.F.getName=function(){return this.K.h6}; +g.F.Gq=function(){return this.K.OW()}; +g.F.OW=function(){return{}}; +g.F.EU=function(){return this.K.X}; +g.F.gT=function(){var z=KU();z.K=e$(!0,this.S,z.isMobileDevice)}; +g.F.Nf=function(){YAs(KU(),this.S)}; +g.F.oC=function(){return this.U.K}; +g.F.sample=function(){}; +g.F.isActive=function(){return this.K.Y}; +g.F.BJ=function(z){var J=this.K;this.K=z.EU()>=this.X?z:this;J!==this.K?(this.Y=this.K.Y,Af(this)):this.Y!==this.K.Y&&(this.Y=this.K.Y,Af(this))}; +g.F.Mb=function(z){if(z.T===this.K){var J=!this.U.NL(z,this.B);this.U=z;J&&BEE(this)}}; +g.F.EB=function(){return this.B}; +g.F.dispose=function(){this.wb=!0}; +g.F.mF=function(){return this.wb};g.F=oS.prototype;g.F.observe=function(){return!0}; +g.F.unobserve=function(){}; +g.F.sQ=function(z){this.Z=z}; +g.F.dispose=function(){if(!this.mF()){var z=this.T;g.zC(z.Z,this);z.B&&this.EB()&&KUq(z);this.unobserve();this.Tf=!0}}; +g.F.mF=function(){return this.Tf}; +g.F.Gq=function(){return this.T.Gq()}; +g.F.EU=function(){return this.T.EU()}; +g.F.XP=function(){return this.T.XP()}; +g.F.wV=function(){return this.T.wV()}; +g.F.BJ=function(){}; +g.F.Mb=function(){this.H4()}; +g.F.EB=function(){return this.wb};g.F=j$.prototype;g.F.EU=function(){return this.K.EU()}; +g.F.XP=function(){return this.K.XP()}; +g.F.wV=function(){return this.K.wV()}; +g.F.create=function(z,J,m){var e=null;this.K&&(e=this.Xp(z,J,m),M9(this.K,e));return e}; +g.F.bf=function(){return this.FZ()}; +g.F.FZ=function(){return!1}; +g.F.init=function(z){return this.K.initialize()?(M9(this.K,this),this.U=z,!0):!1}; +g.F.BJ=function(z){z.EU()==0&&this.U(z.XP(),this)}; +g.F.Mb=function(){}; +g.F.EB=function(){return!1}; +g.F.dispose=function(){this.Z=!0}; +g.F.mF=function(){return this.Z}; +g.F.Gq=function(){return{}};hf.prototype.add=function(z,J,m){++this.S;z=new fOu(z,J,m);this.K.push(new fOu(z.T,z.K,z.S+this.S/4096));this.T=!0;return this};x8R.prototype.toString=function(){var z="//pagead2.googlesyndication.com//pagead/gen_204",J=V5(this.K);J.length>0&&(z+="?"+J);return z};PM.prototype.update=function(z,J,m){z&&(this.K+=J,this.T+=J,this.U+=J,this.S=Math.max(this.S,this.U));if(m===void 0?!z:m)this.U=0};var h1j=[1,.75,.5,.3,0];tf.prototype.update=function(z,J,m,e,T,E){E=E===void 0?!0:E;J=T?Math.min(z,J):J;for(T=0;T0&&J>=Z;Z=!(z>0&&z>=Z)||m;this.K[T].update(E&&c,e,!E||Z)}};Q5.prototype.update=function(z,J,m,e){this.V=this.V!=-1?Math.min(this.V,J.y8):J.y8;this.fh=Math.max(this.fh,J.y8);this.Tf=this.Tf!=-1?Math.min(this.Tf,J.Qy):J.Qy;this.x3=Math.max(this.x3,J.Qy);this.yH.update(J.Qy,m.Qy,J.K,z,e);this.Gf+=z;J.y8===0&&(this.h6+=z);this.T.update(J.y8,m.y8,J.K,z,e);m=e||m.gt!=J.gt?m.isVisible()&&J.isVisible():m.isVisible();J=!J.isVisible()||J.K;this.qD.update(m,z,J)}; +Q5.prototype.un=function(){return this.qD.S>=this.O2};if(BM&&BM.URL){var D1N=BM.URL,bN9;if(bN9=!!D1N){var $1e;a:{if(D1N){var gOe=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var EG=gOe.exec(decodeURIComponent(D1N));if(EG){$1e=EG[1]&&EG[1].length>1?EG[1].substring(1):"true";break a}}catch(z){}}$1e=""}bN9=$1e.length>0}hS.sJ=!bN9};var x19=new vN(0,0,0,0);var kHu=new vN(0,0,0,0);g.p(mS,g.h);g.F=mS.prototype; +g.F.oy=function(){if(this.nA.K){if(this.Ru.Ip){var z=this.nA.K;z.removeEventListener&&z.removeEventListener("mouseover",this.Ru.Ip,q7());this.Ru.Ip=null}this.Ru.DY&&(z=this.nA.K,z.removeEventListener&&z.removeEventListener("mouseout",this.Ru.DY,q7()),this.Ru.DY=null)}this.Wl&&this.Wl.dispose();this.kP&&this.kP.dispose();delete this.VE;delete this.f2;delete this.YW;delete this.nA.d9;delete this.nA.K;delete this.Ru;delete this.Wl;delete this.kP;delete this.VQ;g.h.prototype.oy.call(this)}; +g.F.Qu=function(){return this.kP?this.kP.K:this.position}; +g.F.dc=function(z){$K().dc(z)}; +g.F.EB=function(){return!1}; +g.F.Uv=function(){return new Q5}; +g.F.Op=function(){return this.VE}; +g.F.sW=function(z){return sZj(this,z,1E4)}; +g.F.MD=function(z,J,m,e,T,E,Z){this.Af||(this.Yz&&(z=this.dC(z,m,T,Z),e=e&&this.nF.y8>=(this.gt()?.3:.5),this.Mc(E,z,e),this.l7=J,z.y8>0&&-1===this.sZ&&(this.sZ=J),this.kW==-1&&this.un()&&(this.kW=J),this.yX==-2&&(this.yX=zI(this.Qu())?z.y8:-1),this.nF=z),this.f2(this))}; +g.F.Mc=function(z,J,m){this.Op().update(z,J,this.nF,m)}; +g.F.CP=function(){return new s7}; +g.F.dC=function(z,J,m,e){m=this.CP();m.K=J;J=fh().T;J=Ig(BM)===0?-1:J.isVisible()?0:1;m.T=J;m.y8=this.DL(z);m.gt=this.gt();m.Qy=e;return m}; +g.F.DL=function(z){return this.opacity===0&&Z0(this.VQ,"opac")===1?0:z}; +g.F.gt=function(){return!1}; +g.F.Ok=function(){return this.HqW||this.RwD}; +g.F.GL=function(){UT()}; +g.F.Fl=function(){UT()}; +g.F.gD=function(){return 0}; +g.F.un=function(){return this.VE.un()}; +g.F.e_=function(){var z=this.Yz;z=(this.hasCompleted||this.mF())&&!z;var J=$K().T!==2||this.Tai;return this.Af||J&&z?2:this.un()?4:3}; +g.F.yY=function(){return 0};g.TI.prototype.next=function(){return g.Zt}; +g.Zt={done:!0,value:void 0};g.TI.prototype.OA=function(){return this};g.p(TAs,s7);var F5=Zv1([void 0,1,2,3,4,8,16]),iZ=Zv1([void 0,4,8,16]),M99={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:iS("p0",iZ),p1:iS("p1",iZ),p2:iS("p2",iZ),p3:iS("p3",iZ),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:FH("mtos1",[0,2,4],!1,iZ),mtos2:FH("mtos2",[0,2,4],!1,iZ),mtos3:FH("mtos3",[0,2,4],!1,iZ),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:iS("a0",iZ),a1:iS("a1",iZ),a2:iS("a2",iZ),a3:iS("a3",iZ),ft:"ft",dft:"dft",at:"at",dat:"dat",as:"as", +vpt:"vpt",gmm:"gmm",std:"std",efpf:"efpf",swf:"swf",nio:"nio",px:"px",nnut:"nnut",vmer:"vmer",vmmk:"vmmk",vmiec:"vmiec",nmt:"nmt",tcm:"tcm",bt:"bt",pst:"pst",vpaid:"vpaid",dur:"dur",vmtime:"vmtime",dtos:"dtos",dtoss:"dtoss",dvs:"dvs",dfvs:"dfvs",dvpt:"dvpt",fmf:"fmf",vds:"vds",is:"is",i0:"i0",i1:"i1",i2:"i2",i3:"i3",ic:"ic",cs:"cs",c:"c",c0:iS("c0",iZ),c1:iS("c1",iZ),c2:iS("c2",iZ),c3:iS("c3",iZ),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:iS("qmtos",F5),qnc:iS("qnc",F5),qmv:iS("qmv",F5),qnv:iS("qnv",F5), +raf:"raf",rafc:"rafc",lte:"lte",ces:"ces",tth:"tth",femt:"femt",femvt:"femvt",emc:"emc",emuc:"emuc",emb:"emb",avms:"avms",nvat:"nvat",qi:"qi",psm:"psm",psv:"psv",psfv:"psfv",psa:"psa",pnk:"pnk",pnc:"pnc",pnmm:"pnmm",pns:"pns",ptlt:"ptlt",pngs:"pings",veid:"veid",ssb:"ssb",ss0:iS("ss0",iZ),ss1:iS("ss1",iZ),ss2:iS("ss2",iZ),ss3:iS("ss3",iZ),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids",omidpv:"omidpv",omidam:"omidam",omidct:"omidct",omidia:"omidia", +omiddc:"omiddc",omidlat:"omidlat",omiddit:"omiddit",nopd:"nopd",co:"co",tm:"tm",tu:"tu"},A4F=Object.assign({},M99,{avid:pB("audio"),avas:"avas",vs:"vs"}),oOF={atos:"atos",avt:FH("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(z,J){return function(m){return m[z]===void 0&&J!==void 0?J:m[z]}}("ss",0), +t:"t"};ww.prototype.getValue=function(){return this.T}; +ww.prototype.update=function(z,J){z>=32||(this.K&1<=.5;CU(J.volume)&&(this.U=this.U!=-1?Math.min(this.U,J.volume):J.volume,this.Y=Math.max(this.Y,J.volume));E&&(this.wb+=z,this.B+=T?z:0);this.K.update(J.y8,m.y8,J.K,z,e,T);this.S.update(!0,z);this.Z.update(T,z);this.Ry.update(m.fullscreen,z);this.Hd.update(T&&!E,z);z=Math.floor(J.mediaTime/1E3);this.Qx.update(z,J.isVisible());this.nh.update(z,J.y8>=1);this.ND.update(z, +Z1(J))}};wDf.prototype.T=function(z){this.S||(this.K(z)?(z=YT4(this.B,this.U,z),this.Z|=z,z=z==0):z=!1,this.S=z)};g.p(IL,wDf);IL.prototype.K=function(){return!0}; +IL.prototype.Y=function(){return!1}; +IL.prototype.getId=function(){var z=this,J=gC(K8,function(m){return m==z.U}); +return RL[J].toString()}; +IL.prototype.toString=function(){var z="";this.Y()&&(z+="c");this.S&&(z+="s");this.Z>0&&(z+=":"+this.Z);return this.getId()+z};g.p(Os,IL);Os.prototype.T=function(z,J){J=J===void 0?null:J;J!=null&&this.V.push(J);IL.prototype.T.call(this,z)};g.p(p8,q7E);p8.prototype.T=function(){return null}; +p8.prototype.S=function(){return[]};g.p(yU,oS);g.F=yU.prototype;g.F.HG=function(){if(this.element){var z=this.element,J=this.T.K.S;try{try{var m=NEu(z.getBoundingClientRect())}catch(l){m=new vN(0,0,0,0)}var e=m.right-m.left,T=m.bottom-m.top,E=OSz(z,J),Z=E.x,c=E.y;var W=new vN(Math.round(c),Math.round(Z+e),Math.round(c+T),Math.round(Z))}catch(l){W=x19.clone()}this.S=W;this.K=SAs(this,this.S)}}; +g.F.Q9=function(){this.Y=this.T.U.K}; +g.F.tI=function(z){var J=Z0(this.VQ,"od")==1;return R1q(z,this.Y,this.element,J)}; +g.F.Zs=function(){this.timestamp=UT()}; +g.F.H4=function(){this.Zs();this.HG();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var z=this.element;var J=new g.XT(z.videoWidth,z.videoHeight);z=this.K;var m=sT(z),e=z.getHeight(),T=J.width;J=J.height;T<=0||J<=0||m<=0||e<=0||(T/=J,J=m/e,z=z.clone(),T>J?(m/=T,e=(e-m)/2,e>0&&(e=z.top+e,z.top=Math.round(e),z.bottom=Math.round(e+m))):(e*=T,m=Math.round((m-e)/2),m>0&&(m=z.left+m,z.left=Math.round(m),z.right=Math.round(m+e))));this.K=z}this.Q9(); +z=this.K;m=this.Y;z=z.left<=m.right&&m.left<=z.right&&z.top<=m.bottom&&m.top<=z.bottom?new vN(Math.max(z.top,m.top),Math.min(z.right,m.right),Math.min(z.bottom,m.bottom),Math.max(z.left,m.left)):new vN(0,0,0,0);m=z.top>=z.bottom||z.left>=z.right?new vN(0,0,0,0):z;z=this.T.U;J=T=e=0;if((this.K.bottom-this.K.top)*(this.K.right-this.K.left)>0)if(this.tI(m))m=new vN(0,0,0,0);else{e=KU().U;J=new vN(0,e.height,e.width,0);var E;e=Jd(m,(E=this.Z)!=null?E:this.K);T=Jd(m,KU().K);J=Jd(m,J)}E=m.top>=m.bottom|| +m.left>=m.right?new vN(0,0,0,0):z6(m,-this.K.left,-this.K.top);S$()||(T=e=0);this.B=new mJ(z,this.element,this.K,E,e,T,this.timestamp,J)}; +g.F.getName=function(){return this.T.getName()};var jeF=new vN(0,0,0,0);g.p(N$,yU);g.F=N$.prototype;g.F.observe=function(){this.U();return!0}; +g.F.Mb=function(){yU.prototype.H4.call(this)}; +g.F.Zs=function(){}; +g.F.HG=function(){}; +g.F.H4=function(){this.U();yU.prototype.H4.call(this)}; +g.F.BJ=function(z){z=z.isActive();z!==this.X&&(z?this.U():(KU().K=new vN(0,0,0,0),this.K=new vN(0,0,0,0),this.Y=new vN(0,0,0,0),this.timestamp=-1));this.X=z};var cx={},Y7f=(cx.firstquartile=0,cx.midpoint=1,cx.thirdquartile=2,cx.complete=3,cx);g.p(XH,mS);g.F=XH.prototype;g.F.EB=function(){return!0}; +g.F.Mv=function(){return this.t7==2}; +g.F.sW=function(z){return sZj(this,z,Math.max(1E4,this.S/3))}; +g.F.MD=function(z,J,m,e,T,E,Z){var c=this,W=this.V(this)||{};g.hP(W,T);this.S=W.duration||this.S;this.B=W.isVpaid||this.B;this.h6=W.isYouTube||this.h6;fh();this.yH=!1;T=IKu(this,J);d_b(this)===1&&(E=T);mS.prototype.MD.call(this,z,J,m,e,W,E,Z);this.OU&&this.OU.S&&g.de(this.Y,function(l){l.T(c)})}; +g.F.Mc=function(z,J,m){mS.prototype.Mc.call(this,z,J,m);C8(this).update(z,J,this.nF,m);this.O2=Z1(this.nF)&&Z1(J);this.x3==-1&&this.nh&&(this.x3=this.Op().S.K);this.xZ.S=0;z=this.un();J.isVisible()&&lS(this.xZ,"vs");z&&lS(this.xZ,"vw");CU(J.volume)&&lS(this.xZ,"am");Z1(J)?lS(this.xZ,"a"):lS(this.xZ,"mut");this.tL&&lS(this.xZ,"f");J.T!=-1&&(lS(this.xZ,"bm"),J.T==1&&(lS(this.xZ,"b"),Z1(J)&&lS(this.xZ,"umutb")));Z1(J)&&J.isVisible()&&lS(this.xZ,"avs");this.O2&&z&&lS(this.xZ,"avw");J.y8>0&&lS(this.xZ, +"pv");aL(this,this.Op().S.K,!0)&&lS(this.xZ,"gdr");kZ(this.Op().T,1)>=2E3&&lS(this.xZ,"pmx");this.yH&&lS(this.xZ,"tvoff")}; +g.F.Uv=function(){return new q$}; +g.F.Op=function(){return this.VE}; +g.F.CP=function(){return new TAs}; +g.F.dC=function(z,J,m,e){z=mS.prototype.dC.call(this,z,J,m,e===void 0?-1:e);z.fullscreen=this.tL;z.paused=this.Mv();z.volume=m.volume;CU(z.volume)||(this.tZ++,J=this.nF,CU(J.volume)&&(z.volume=J.volume));m=m.currentTime;z.mediaTime=m!==void 0&&m>=0?m:-1;return z}; +g.F.DL=function(z){return KU(),this.tL?1:mS.prototype.DL.call(this,z)}; +g.F.gD=function(){return 1}; +g.F.getDuration=function(){return this.S}; +g.F.e_=function(){return this.Af?2:pDR(this)?5:this.un()?4:3}; +g.F.yY=function(){return this.Hd?this.Op().Z.S>=2E3?4:3:2}; +g.F.sQ=function(z){this.kP&&this.kP.sQ(z)};var h$v=g.mv();x_q.prototype.reset=function(){this.K=[];this.T=[]}; +var bS=BN(x_q);g.p(xG,j$);g.F=xG.prototype;g.F.getName=function(){return(this.T?this.T:this.K).getName()}; +g.F.Gq=function(){return(this.T?this.T:this.K).Gq()}; +g.F.EU=function(){return(this.T?this.T:this.K).EU()}; +g.F.init=function(z){var J=!1;(0,g.de)(this.S,function(m){m.initialize()&&(J=!0)}); +J&&(this.U=z,M9(this.K,this));return J}; +g.F.dispose=function(){(0,g.de)(this.S,function(z){z.dispose()}); +j$.prototype.dispose.call(this)}; +g.F.bf=function(){return aS(this.S,function(z){return z.bl()})}; +g.F.FZ=function(){return aS(this.S,function(z){return z.bl()})}; +g.F.Xp=function(z,J,m){return new yU(z,this.K,J,m)}; +g.F.Mb=function(z){this.T=z.T};var tJb={threshold:[0,.3,.5,.75,1]};g.p(M$,yU);g.F=M$.prototype;g.F.observe=function(){var z=this;this.fh||(this.fh=UT());if(ZSE(298,function(){return Hvs(z)}))return!0; +this.T.Ii("msf");return!1}; +g.F.unobserve=function(){if(this.U&&this.element)try{this.U.unobserve(this.element),this.X?(this.X.unobserve(this.element),this.X=null):this.V&&(this.V.disconnect(),this.V=null)}catch(z){}}; +g.F.H4=function(){var z=Ad(this);z.length>0&&oL(this,z);yU.prototype.H4.call(this)}; +g.F.HG=function(){}; +g.F.tI=function(){return!1}; +g.F.Q9=function(){}; +g.F.Gq=function(){var z={};return Object.assign(this.T.Gq(),(z.niot_obs=this.fh,z.niot_cbk=this.Ry,z))}; +g.F.getName=function(){return"nio"};g.p(j1,j$);j1.prototype.getName=function(){return"nio"}; +j1.prototype.FZ=function(){return!KU().T&&this.K.K.S.IntersectionObserver!=null}; +j1.prototype.Xp=function(z,J,m){return new M$(z,this.K,J,m)};g.p(hd,D4);hd.prototype.oC=function(){return KU().K}; +hd.prototype.bl=function(){var z=RNE();this.X!==z&&(this.K!=this&&z>this.K.X&&(this.K=this,Af(this)),this.X=z);return z==2};uS.prototype.sample=function(){td(this,$G(),!1)}; +uS.prototype.U=function(){var z=S$(),J=UT();z?(kK||(Lh=J,g.de(bS.K,function(m){var e=m.Op();e.Lh=dw(e,J,m.t7!=1)})),kK=!0):(this.V=s$u(this,J),kK=!1,Ce4=J,g.de(bS.K,function(m){m.Yz&&(m.Op().X=J)})); +td(this,$G(),!z)}; +var VU=BN(uS);var zmu=null,Iz="",dQ=!1;var emb=m7q().iR,Us=m7q().h0;var Zhq={RRb:"visible",XXW:"audible",hgF:"time",EVf:"timetype"},FMz={visible:function(z){return/^(100|[0-9]{1,2})$/.test(z)}, +audible:function(z){return z=="0"||z=="1"}, +timetype:function(z){return z=="mtos"||z=="tos"}, +time:function(z){return/^(100|[0-9]{1,2})%$/.test(z)||/^([0-9])+ms$/.test(z)}}; +EKq.prototype.setTime=function(z,J,m){J=="ms"?(this.S=z,this.U=-1):(this.S=-1,this.U=z);this.Z=m===void 0?"tos":m;return this};g.p(QU,IL);QU.prototype.getId=function(){return this.V}; +QU.prototype.Y=function(){return!0}; +QU.prototype.K=function(z){var J=z.Op(),m=z.getDuration();return aS(this.X,function(e){if(e.K!=void 0)var T=cSu(e,J);else b:{switch(e.Z){case "mtos":T=e.T?J.Z.S:J.S.K;break b;case "tos":T=e.T?J.Z.K:J.S.K;break b}T=0}T==0?e=!1:(e=e.S!=-1?e.S:m!==void 0&&m>0?e.U*m:-1,e=e!=-1&&T>=e);return e})};g.p(vU,ivs);vU.prototype.K=function(z){var J=new F_4;J.K=WU(z,M99);J.T=WU(z,oOF);return J};g.p(rw,IL);rw.prototype.K=function(z){return pDR(z)};g.p(za,q7E);g.p(JQ,IL);JQ.prototype.K=function(z){return z.Op().un()};g.p(mA,Os);mA.prototype.K=function(z){var J=g.s1(this.V,Z0($K().VQ,"ovms"));return!z.Af&&(z.t7!=0||J)};g.p(ep,za);ep.prototype.T=function(){return new mA(this.K)}; +ep.prototype.S=function(){return[new JQ("viewable_impression",this.K),new rw(this.K)]};g.p(Ta,N$);Ta.prototype.U=function(){var z=g.Hq("ima.admob.getViewability"),J=Z0(this.VQ,"queryid");typeof z==="function"&&J&&z(J)}; +Ta.prototype.getName=function(){return"gsv"};g.p(ED,j$);ED.prototype.getName=function(){return"gsv"}; +ED.prototype.FZ=function(){var z=KU();$K();return z.T&&!1}; +ED.prototype.Xp=function(z,J,m){return new Ta(this.K,J,m)};g.p(Zn,N$);Zn.prototype.U=function(){var z=this,J=g.Hq("ima.bridge.getNativeViewability"),m=Z0(this.VQ,"queryid");typeof J==="function"&&m&&J(m,function(e){g.xf(e)&&z.V++;var T=e.opt_nativeViewVisibleBounds||{},E=e.opt_nativeViewHidden;z.K=GHq(e.opt_nativeViewBounds||{});var Z=z.T.U;Z.K=E?jeF.clone():GHq(T);z.timestamp=e.opt_nativeTime||-1;KU().K=Z.K;e=e.opt_nativeVolume;e!==void 0&&(Z.volume=e)})}; +Zn.prototype.getName=function(){return"nis"};g.p(Fm,j$);Fm.prototype.getName=function(){return"nis"}; +Fm.prototype.FZ=function(){var z=KU();$K();return z.T&&!1}; +Fm.prototype.Xp=function(z,J,m){return new Zn(this.K,J,m)};g.p(cl,D4);g.F=cl.prototype;g.F.bl=function(){return this.T.Wu!=null}; +g.F.OW=function(){var z={};this.Qx&&(z.mraid=this.Qx);this.Tf&&(z.mlc=1);z.mtop=this.T.JWD;this.V&&(z.mse=this.V);this.Gf&&(z.msc=1);z.mcp=this.T.compatibility;return z}; +g.F.EQ=function(z){var J=g.gu.apply(1,arguments);try{return this.T.Wu[z].apply(this.T.Wu,J)}catch(m){HN(538,m,.01,function(e){e.method=z})}}; +g.F.initialize=function(){var z=this;if(this.isInitialized)return!this.wV();this.isInitialized=!0;if(this.T.compatibility===2)return this.V="ng",this.Ii("w"),!1;if(this.T.compatibility===1)return this.V="mm",this.Ii("w"),!1;KU().X=!0;this.S.document.readyState&&this.S.document.readyState=="complete"?qTb(this):rX(this.S,"load",function(){fh().setTimeout(tS(292,function(){return qTb(z)}),100)},292); +return!0}; +g.F.gT=function(){var z=KU(),J=yS1(this,"getMaxSize");z.K=new vN(0,J.width,J.height,0)}; +g.F.Nf=function(){KU().U=yS1(this,"getScreenSize")}; +g.F.dispose=function(){I04(this);D4.prototype.dispose.call(this)};var tzq=new function(z,J){this.key=z;this.defaultValue=J===void 0?!1:J;this.valueType="boolean"}("45378663");g.F=lf.prototype;g.F.V6=function(z){e1(z,!1);j$j(z)}; +g.F.VY=function(){}; +g.F.BL=function(z,J,m,e){var T=this;z=new XH(w1,z,m?J:-1,7,this.Em(),this.d1());z.iy=e;w1b(z.VQ);ET(z.VQ,"queryid",z.iy);z.dc("");JVz(z,function(){return T.IC.apply(T,g.X(g.gu.apply(0,arguments)))},function(){return T.E3h.apply(T,g.X(g.gu.apply(0,arguments)))}); +(e=BN(gw).K)&&vau(z,e);this.S&&(z.sQ(this.S),this.S=null);z.nA.d9&&BN(kd4);return z}; +g.F.BJ=function(z){switch(z.EU()){case 0:if(z=BN(gw).K)z=z.K,g.zC(z.Z,this),z.B&&this.EB()&&KUq(z);q6();break;case 2:PU()}}; +g.F.Mb=function(){}; +g.F.EB=function(){return!1}; +g.F.E3h=function(z,J){z.Af=!0;switch(z.gD()){case 1:Cxb(z,J);break;case 2:this.lx(z)}}; +g.F.A6x=function(z){var J=z.V(z);J&&(J=J.volume,z.Hd=CU(J)&&J>0);Gdq(z,0);return BU(z,"start",S$())}; +g.F.PE=function(z,J,m){td(VU,[z],!S$());return this.N$(z,J,m)}; +g.F.N$=function(z,J,m){return BU(z,m,S$())}; +g.F.M4F=function(z){return N6(z,"firstquartile",1)}; +g.F.q2y=function(z){z.nh=!0;return N6(z,"midpoint",2)}; +g.F.n33=function(z){return N6(z,"thirdquartile",3)}; +g.F.Cif=function(z){var J=N6(z,"complete",4);n8(z);return J}; +g.F.V4D=function(z){z.t7=3;return BU(z,"error",S$())}; +g.F.ys=function(z,J,m){J=S$();if(z.Mv()&&!J){var e=z.Op(),T=UT();e.X=T}td(VU,[z],!J);z.Mv()&&(z.t7=1);return BU(z,m,J)}; +g.F.WFF=function(z,J){J=this.PE(z,J||{},"skip");n8(z);return J}; +g.F.LFD=function(z,J){e1(z,!0);return this.PE(z,J||{},"fullscreen")}; +g.F.J6b=function(z,J){e1(z,!1);return this.PE(z,J||{},"exitfullscreen")}; +g.F.Wo=function(z,J,m){J=z.Op();var e=UT();J.Lh=dw(J,e,z.t7!=1);td(VU,[z],!S$());z.t7==1&&(z.t7=2);return BU(z,m,S$())}; +g.F.X1D=function(z){td(VU,[z],!S$());return z.T()}; +g.F.HD=function(z){td(VU,[z],!S$());this.FL(z);n8(z);return z.T()}; +g.F.IC=function(){}; +g.F.lx=function(){}; +g.F.FL=function(){}; +g.F.FD=function(){}; +g.F.V0=function(){}; +g.F.d1=function(){this.K||(this.K=this.V0());return this.K==null?new p8:new ep(this.K)}; +g.F.Em=function(){return new vU};g.p(Ga,IL);Ga.prototype.K=function(z){return z.yY()==4};g.p(Xm,Os);Xm.prototype.K=function(z){z=z.yY();return z==3||z==4};g.p(nE,za);nE.prototype.T=function(){return new Xm(this.K)}; +nE.prototype.S=function(){return[new Ga(this.K)]};g.p(CE,ivs);CE.prototype.K=function(z){z&&(z.e===28&&(z=Object.assign({},z,{avas:3})),z.vs===4||z.vs===5)&&(z=Object.assign({},z,{vs:3}));var J=new F_4;J.K=WU(z,A4F);J.T=WU(z,oOF);return J};STu.prototype.T=function(){return g.Hq(this.K)};g.p(az,lf);g.F=az.prototype;g.F.VY=function(z,J){var m=this,e=BN(gw);if(e.K!=null)switch(e.K.getName()){case "nis":var T=$7f(this,z,J);break;case "gsv":T=bhs(this,z,J);break;case "exc":T=gKq(this,z)}T||(J.opt_overlayAdElement?T=void 0:J.opt_adElement&&(T=KMz(this,z,J.opt_adElement,J.opt_osdId)));T&&T.gD()==1&&(T.V==g.yB&&(T.V=function(E){return m.FD(E)}),D7f(this,T,J)); +return T}; +g.F.FD=function(z){z.T=0;z.wb=0;if(z.U=="h"||z.U=="n"){$K();z.ND&&($K(),pE(this)!="h"&&pE(this));var J=g.Hq("ima.common.getVideoMetadata");if(typeof J==="function")try{var m=J(z.iy)}catch(T){z.T|=4}else z.T|=2}else if(z.U=="b")if(J=g.Hq("ytads.bulleit.getVideoMetadata"),typeof J==="function")try{m=J(z.iy)}catch(T){z.T|=4}else z.T|=2;else if(z.U=="ml")if(J=g.Hq("ima.common.getVideoMetadata"),typeof J==="function")try{m=J(z.iy)}catch(T){z.T|=4}else z.T|=2;else z.T|=1;z.T||(m===void 0?z.T|=8:m===null? +z.T|=16:g.xf(m)?z.T|=32:m.errorCode!=null&&(z.wb=m.errorCode,z.T|=64));m==null&&(m={});J=m;z.X=0;for(var e in fze)J[e]==null&&(z.X|=fze[e]);B1u(J,"currentTime");B1u(J,"duration");CU(m.volume)&&CU()&&(m.volume*=NaN);return m}; +g.F.V0=function(){$K();pE(this)!="h"&&pE(this);var z=x7q(this);return z!=null?new STu(z):null}; +g.F.lx=function(z){!z.K&&z.Af&&yH(this,z,"overlay_unmeasurable_impression")&&(z.K=!0)}; +g.F.FL=function(z){z.Vs&&(z.un()?yH(this,z,"overlay_viewable_end_of_session_impression"):yH(this,z,"overlay_unviewable_impression"),z.Vs=!1)}; +g.F.IC=function(){}; +g.F.BL=function(z,J,m,e){if(HBz()){var T=Z0($K().VQ,"mm"),E={};(T=(E[g1.pm]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",E[g1.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",E)[T])&&jg1(this,T);this.U==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&HN(1044,Error())}z=lf.prototype.BL.call(this,z,J,m,e);this.Z&&(J=this.Y,z.Z==null&&(z.Z=new m_u),J.K[z.iy]=z.Z,z.Z.Z=h$v);return z}; +g.F.V6=function(z){z&&z.gD()==1&&this.Z&&delete this.Y.K[z.iy];return lf.prototype.V6.call(this,z)}; +g.F.d1=function(){this.K||(this.K=this.V0());return this.K==null?new p8:this.U==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new nE(this.K):new ep(this.K)}; +g.F.Em=function(){return this.U==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new CE:new vU}; +g.F.sQ=function(z,J,m,e,T){J=new vN(m,J+e,m+T,J);(z=D1(bS,z))?z.sQ(J):this.S=J}; +var uv$=PN(193,uAq,void 0,a0z);g.tu("Goog_AdSense_Lidar_sendVastEvent",uv$);var V94=tS(194,function(z,J){J=J===void 0?{}:J;z=oKf(BN(az),z,J);return hmb(z)}); +g.tu("Goog_AdSense_Lidar_getViewability",V94);var PFv=PN(195,function(){return jYs()}); +g.tu("Goog_AdSense_Lidar_getUrlSignalsArray",PFv);var t9v=tS(196,function(){return JSON.stringify(jYs())}); +g.tu("Goog_AdSense_Lidar_getUrlSignalsList",t9v);var VLb=(new Date("2024-01-01T00:00:00Z")).getTime();var Hhz=Oz(["//ep2.adtrafficquality.google/sodar/",""]),U7b=Oz(["//tpc.googlesyndication.com/sodar/",""]);g.p(fE,g.h);fE.prototype.kp=function(){return this.wpc.f()}; +fE.prototype.ZL=function(z){this.wpc.c(z)}; +fE.prototype.sU=function(z){return this.wpc.m(Qgf(z))}; +fE.prototype.zR=function(z){return this.wpc.mws(Qgf(z))}; +g.p(Bl,g.h);Bl.prototype.snapshot=function(z){return this.xP.s(Object.assign({},z.Up&&{c:z.Up},z.rX&&{s:z.rX},z.zQ!==void 0&&{p:z.zQ}))}; +Bl.prototype.Ag=function(z){this.xP.e(z)}; +Bl.prototype.bk=function(){return this.xP.l()};var LSs=(new Date).getTime();var rS1="://secure-...imrworldwide.com/ ://cdn.imrworldwide.com/ ://aksecure.imrworldwide.com/ ://[^.]*.moatads.com ://youtube[0-9]+.moatpixel.com ://pm.adsafeprotected.com/youtube ://pm.test-adsafeprotected.com/youtube ://e[0-9]+.yt.srs.doubleverify.com www.google.com/pagead/xsul www.youtube.com/pagead/slav".split(" "),zjs=/\bocr\b/;var m9j=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var I4b=0,d9q=0,pMj=0;var OU1=Object.assign({},{attributes:{},handleError:function(z){throw z;}},{UQD:!0, +IQn:!0,Goz:GEO,YBD:XqO,SH:!1,H3y:!1,eSx:!1,DQz:Nue,SB3:!1});var $T=null,xT=!1,wMb=1,uf=Symbol("SIGNAL"),Wx={version:0,ePD:0,UU:!1,jb:void 0,Mk:void 0,Y$:void 0,bL:0,l3:void 0,l1:void 0,NO:!1,Fw:!1,kind:"unknown",MG:function(){return!1}, +LC:function(){}, +jL:function(){}, +Tmb:function(){}};var lZ=Symbol("UNSET"),wp=Symbol("COMPUTING"),qB=Symbol("ERRORED");Object.assign({},Wx,{value:lZ,UU:!0,error:null,Cd:bf,kind:"computed",MG:function(z){return z.value===lZ||z.value===wp}, +LC:function(z){if(z.value===wp)throw Error("Detected cycle in computations.");var J=z.value;z.value=wp;var m=EZR(z),e=!1;try{var T=z.Kb();gQ(null);e=J!==lZ&&J!==qB&&T!==qB&&z.Cd(J,T)}catch(E){T=qB,z.error=E}finally{ZUu(z,m)}e?z.value=J:(z.value=T,z.version++)}});var WJb=Object.assign({},Wx,{Cd:bf,value:void 0,kind:"signal"});Object.assign({},Wx,{value:lZ,UU:!0,error:null,Cd:bf,kind:"linkedSignal",MG:function(z){return z.value===lZ||z.value===wp}, +LC:function(z){if(z.value===wp)throw Error("Detected cycle in computations.");var J=z.value;z.value=wp;var m=EZR(z);try{var e=z.source();var T=z.Kb(e,J===lZ||J===qB?void 0:{source:z.Wbz,value:J});z.Wbz=e}catch(E){T=qB,z.error=E}finally{ZUu(z,m)}J!==lZ&&T!==qB&&z.Cd(J,T)?z.value=J:(z.value=T,z.version++)}});Object.assign({},Wx,{Fw:!0,NO:!1,jL:function(z){z.schedule!==null&&z.schedule(z.by1)}, +dtn:!1,lQW:function(){}});var yfq=Symbol("updater");g.p(Pl,g.ZB);Pl.prototype.dispose=function(){window.removeEventListener("offline",this.S);window.removeEventListener("online",this.S);this.L$.Xo(this.Z);delete Pl.instance}; +Pl.prototype.O9=function(){return this.K}; +Pl.prototype.n1=function(){var z=this;this.Z=this.L$.wy(function(){var J;return g.D(function(m){if(m.K==1)return z.K?((J=window.navigator)==null?0:J.onLine)?m.U2(3):g.S(m,VH(z),3):g.S(m,VH(z),3);z.n1();g.nq(m)})},3E4)};Hl.prototype.set=function(z,J){J=J===void 0?!0:J;0<=z&&z<52&&Number.isInteger(z)&&this.data[z]!==J&&(this.data[z]=J,this.K=-1)}; +Hl.prototype.get=function(z){return!!this.data[z]};var Rz;g.T9(g.QH,g.h);g.F=g.QH.prototype;g.F.start=function(){this.stop();this.U=!1;var z=nZ1(this),J=Ytu(this);z&&!J&&this.T.mozRequestAnimationFrame?(this.K=g.sX(this.T,"MozBeforePaint",this.S),this.T.mozRequestAnimationFrame(null),this.U=!0):this.K=z&&J?z.call(this.T,this.S):this.T.setTimeout(PWs(this.S),20)}; +g.F.stop=function(){if(this.isActive()){var z=nZ1(this),J=Ytu(this);z&&!J&&this.T.mozRequestAnimationFrame?mW(this.K):z&&J?J.call(this.T,this.K):this.T.clearTimeout(this.K)}this.K=null}; +g.F.isActive=function(){return this.K!=null}; +g.F.BY=function(){this.U&&this.K&&mW(this.K);this.K=null;this.Y.call(this.Z,g.mv())}; +g.F.oy=function(){this.stop();g.QH.iC.oy.call(this)};g.T9(g.vl,g.h);g.F=g.vl.prototype;g.F.j9=0;g.F.oy=function(){g.vl.iC.oy.call(this);this.stop();delete this.K;delete this.T}; +g.F.start=function(z){this.stop();this.j9=g.gB(this.S,z!==void 0?z:this.ai)}; +g.F.stop=function(){this.isActive()&&g.VR.clearTimeout(this.j9);this.j9=0}; +g.F.isActive=function(){return this.j9!=0}; +g.F.jX=function(){this.j9=0;this.K&&this.K.call(this.T)};g.p(g.JA,g.h);g.F=g.JA.prototype;g.F.W$=function(z){this.S=arguments;this.z4||this.T?this.K=!0:mH(this)}; +g.F.stop=function(){this.z4&&(g.VR.clearTimeout(this.z4),this.z4=null,this.K=!1,this.S=null)}; +g.F.pause=function(){this.T++}; +g.F.resume=function(){this.T--;this.T||!this.K||this.z4||(this.K=!1,mH(this))}; +g.F.oy=function(){g.h.prototype.oy.call(this);this.stop()};g.eZ.prototype[Symbol.iterator]=function(){return this}; +g.eZ.prototype.next=function(){var z=this.K.next();return{value:z.done?void 0:this.T.call(void 0,z.value),done:z.done}};g.T9(g.dL,g.ZB);g.F=g.dL.prototype;g.F.isPlaying=function(){return this.K==1}; +g.F.isPaused=function(){return this.K==-1}; +g.F.ov=function(){this.lJ("begin")}; +g.F.kG=function(){this.lJ("end")}; +g.F.onFinish=function(){this.lJ("finish")}; +g.F.onStop=function(){this.lJ("stop")}; +g.F.lJ=function(z){this.dispatchEvent(z)};var HNc=Ne(function(){var z=g.EX("DIV"),J=g.JM?"-webkit":iA?"-moz":null,m="transition:opacity 1s linear;";J&&(m+=J+"-transition:opacity 1s linear;");J=Qaj({style:m});if(z.nodeType===1&&/^(script|style)$/i.test(z.tagName))throw Error("");z.innerHTML=P5(J);return g.cM(z.firstChild,"transition")!=""});g.T9(I7,g.dL);g.F=I7.prototype;g.F.play=function(){if(this.isPlaying())return!1;this.ov();this.lJ("play");this.startTime=g.mv();this.K=1;if(HNc())return g.FR(this.T,this.Y),this.S=g.gB(this.Kd3,void 0,this),!0;this.vx(!1);return!1}; +g.F.Kd3=function(){g.G6(this.T);KJj(this.T,this.V);g.FR(this.T,this.U);this.S=g.gB((0,g.ru)(this.vx,this,!1),this.Z*1E3)}; +g.F.stop=function(){this.isPlaying()&&this.vx(!0)}; +g.F.vx=function(z){g.FR(this.T,"transition","");g.VR.clearTimeout(this.S);g.FR(this.T,this.U);this.endTime=g.mv();this.K=0;if(z)this.onStop();else this.onFinish();this.kG()}; +g.F.oy=function(){this.stop();I7.iC.oy.call(this)}; +g.F.pause=function(){};var Stb={rgb:!0,rgba:!0,alpha:!0,rect:!0,image:!0,"linear-gradient":!0,"radial-gradient":!0,"repeating-linear-gradient":!0,"repeating-radial-gradient":!0,"cubic-bezier":!0,matrix:!0,perspective:!0,rotate:!0,rotate3d:!0,rotatex:!0,rotatey:!0,steps:!0,rotatez:!0,scale:!0,scale3d:!0,scalex:!0,scaley:!0,scalez:!0,skew:!0,skewx:!0,skewy:!0,translate:!0,translate3d:!0,translatex:!0,translatey:!0,translatez:!0};OE("Element","attributes")||OE("Node","attributes");OE("Element","innerHTML")||OE("HTMLElement","innerHTML");OE("Node","nodeName");OE("Node","nodeType");OE("Node","parentNode");OE("Node","childNodes");OE("HTMLElement","style")||OE("Element","style");OE("HTMLStyleElement","sheet");var x9R=D9z("getPropertyValue"),M$q=D9z("setProperty");OE("Element","namespaceURI")||OE("Node","namespaceURI");var gZu={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var hjq,Wb$,jSq,oZ1,uRu;hjq=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]");Wb$=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.U11=RegExp("^[^\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]*[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"); +g.yo=RegExp("^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");jSq=/^http:\/\/.*/;g.R$e=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");oZ1=/\s+/;uRu=/[\d\u06f0-\u06f9]/;G5.prototype.OA=function(){return new XE(this.T())}; +G5.prototype[Symbol.iterator]=function(){return new nz(this.T())}; +G5.prototype.K=function(){return new nz(this.T())}; +g.p(XE,g.TI);XE.prototype.next=function(){return this.T.next()}; +XE.prototype[Symbol.iterator]=function(){return new nz(this.T)}; +XE.prototype.K=function(){return new nz(this.T)}; +g.p(nz,G5);nz.prototype.next=function(){return this.S.next()};Cz.prototype.clone=function(){return new Cz(this.K,this.V,this.S,this.Z,this.U,this.Y,this.T,this.X)}; +Cz.prototype.NL=function(z){return this.K==z.K&&this.V==z.V&&this.S==z.S&&this.Z==z.Z&&this.U==z.U&&this.Y==z.Y&&this.T==z.T&&this.X==z.X};Kz.prototype.clone=function(){return new Kz(this.start,this.end)}; +Kz.prototype.getLength=function(){return this.end-this.start};(function(){if(Nzu){var z=/Windows NT ([0-9.]+)/;return(z=z.exec(g.bF()))?z[1]:"0"}return m7?(z=/1[0|1][_.][0-9_.]+/,(z=z.exec(g.bF()))?z[0].replace(/_/g,"."):"10"):g.eO?(z=/Android\s+([^\);]+)(\)|;)/,(z=z.exec(g.bF()))?z[1]:""):CjO||asc||Kb1?(z=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(z=z.exec(g.bF()))?z[1].replace(/_/g,"."):""):""})();var PAb=function(){if(g.V4)return Bd(/Firefox\/([0-9.]+)/);if(g.pz||g.s0||g.BZ)return c44;if(g.gS){if(U1()||Re()){var z=Bd(/CriOS\/([0-9.]+)/);if(z)return z}return Bd(/Chrome\/([0-9.]+)/)}if(g.Y4&&!U1())return Bd(/Version\/([0-9.]+)/);if(z7||JY){if(z=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.bF()))return z[1]+"."+z[2]}else if(g.SR)return(z=Bd(/Android\s+([0-9.]+)/))?z:Bd(/Version\/([0-9.]+)/);return""}();g.T9(g.fz,g.h);g.F=g.fz.prototype;g.F.subscribe=function(z,J,m){var e=this.T[z];e||(e=this.T[z]=[]);var T=this.Y;this.K[T]=z;this.K[T+1]=J;this.K[T+2]=m;this.Y=T+3;e.push(T);return T}; +g.F.unsubscribe=function(z,J,m){if(z=this.T[z]){var e=this.K;if(z=z.find(function(T){return e[T+1]==J&&e[T+2]==m}))return this.QL(z)}return!1}; +g.F.QL=function(z){var J=this.K[z];if(J){var m=this.T[J];this.U!=0?(this.S.push(z),this.K[z+1]=function(){}):(m&&g.zC(m,z),delete this.K[z],delete this.K[z+1],delete this.K[z+2])}return!!J}; +g.F.publish=function(z,J){var m=this.T[z];if(m){var e=Array(arguments.length-1),T=arguments.length,E;for(E=1;E0&&this.U==0)for(;m=this.S.pop();)this.QL(m)}}return E!=0}return!1}; +g.F.clear=function(z){if(z){var J=this.T[z];J&&(J.forEach(this.QL,this),delete this.T[z])}else this.K.length=0,this.T={}}; +g.F.oy=function(){g.fz.iC.oy.call(this);this.clear();this.S.length=0};g.Dv.prototype.set=function(z,J){J===void 0?this.K.remove(z):this.K.set(z,g.oY(J))}; +g.Dv.prototype.get=function(z){try{var J=this.K.get(z)}catch(m){return}if(J!==null)try{return JSON.parse(J)}catch(m){throw"Storage: Invalid value was encountered";}}; +g.Dv.prototype.remove=function(z){this.K.remove(z)};g.T9(bI,g.Dv);bI.prototype.set=function(z,J){bI.iC.set.call(this,z,U9b(J))}; +bI.prototype.T=function(z){z=bI.iC.get.call(this,z);if(z===void 0||z instanceof Object)return z;throw"Storage: Invalid value was encountered";}; +bI.prototype.get=function(z){if(z=this.T(z)){if(z=z.data,z===void 0)throw"Storage: Invalid value was encountered";}else z=void 0;return z};g.T9($D,bI);$D.prototype.set=function(z,J,m){if(J=U9b(J)){if(m){if(m=m.length)return g.Zt;var T=m.key(J++);if(z)return g.Es(T);T=m.getItem(T);if(typeof T!=="string")throw"Storage mechanism: Invalid value was encountered";return g.Es(T)}; +return e}; +g.F.clear=function(){AA(this);this.K.clear()}; +g.F.key=function(z){AA(this);return this.K.key(z)};g.T9(o7,Mt);g.T9(LJb,Mt);g.T9(jZ,xD);jZ.prototype.set=function(z,J){this.T.set(this.K+z,J)}; +jZ.prototype.get=function(z){return this.T.get(this.K+z)}; +jZ.prototype.remove=function(z){this.T.remove(this.K+z)}; +jZ.prototype.OA=function(z){var J=this.T[Symbol.iterator](),m=this,e=new g.TI;e.next=function(){var T=J.next();if(T.done)return T;for(T=T.value;T.slice(0,m.K.length)!=m.K;){T=J.next();if(T.done)return T;T=T.value}return g.Es(z?T.slice(m.K.length):m.T.get(T))}; +return e};uI.prototype.getValue=function(){return this.T}; +uI.prototype.clone=function(){return new uI(this.K,this.T)};g.F=Vo.prototype;g.F.eb=function(z,J){var m=this.K;m.push(new uI(z,J));z=m.length-1;J=this.K;for(m=J[z];z>0;){var e=z-1>>1;if(J[e].K>m.K)J[z]=J[e],z=e;else break}J[z]=m}; +g.F.remove=function(){var z=this.K,J=z.length,m=z[0];if(!(J<=0)){if(J==1)z.length=0;else{z[0]=z.pop();z=0;J=this.K;for(var e=J.length,T=J[z];z>1;){var E=z*2+1,Z=z*2+2;E=ZT.K)break;J[z]=J[E];z=E}J[z]=T}return m.getValue()}}; +g.F.KJ=function(){for(var z=this.K,J=[],m=z.length,e=0;e>>16&65535|0;for(var E;m!==0;){E=m>2E3?2E3:m;m-=E;do T=T+J[e++]|0,z=z+T|0;while(--E);T%=65521;z%=65521}return T|z<<16|0};for(var p3={},dp,sez=[],Iv=0;Iv<256;Iv++){dp=Iv;for(var r4O=0;r4O<8;r4O++)dp=dp&1?3988292384^dp>>>1:dp>>>1;sez[Iv]=dp}p3=function(z,J,m,e){m=e+m;for(z^=-1;e>>8^sez[(z^J[e])&255];return z^-1};var F0={};F0={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"};var zK=[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],e3=[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],GIq=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],cdj=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],l2=Array(576);UE(l2);var wx=Array(60);UE(wx);var mo=Array(512);UE(mo);var rL=Array(256);UE(rL);var J9=Array(29);UE(J9);var TK=Array(30);UE(TK);var pUR,ydE,NwR,O8b=!1;var YH;YH=[new n3(0,0,0,0,function(z,J){var m=65535;for(m>z.Qc-5&&(m=z.Qc-5);;){if(z.dE<=1){NK(z);if(z.dE===0&&J===0)return 1;if(z.dE===0)break}z.Zd+=z.dE;z.dE=0;var e=z.zk+m;if(z.Zd===0||z.Zd>=e)if(z.dE=z.Zd-e,z.Zd=e,qK(z,!1),z.lF.Di===0)return 1;if(z.Zd-z.zk>=z.LB-262&&(qK(z,!1),z.lF.Di===0))return 1}z.eb=0;if(J===4)return qK(z,!0),z.lF.Di===0?3:4;z.Zd>z.zk&&qK(z,!1);return 1}), +new n3(4,4,8,4,GK),new n3(4,5,16,8,GK),new n3(4,6,32,32,GK),new n3(4,4,16,16,X0),new n3(8,16,32,32,X0),new n3(8,16,128,128,X0),new n3(8,32,128,256,X0),new n3(32,128,258,1024,X0),new n3(32,258,258,4096,X0)];var I1u={};I1u=function(){this.input=null;this.x_=this.uy=this.Q5=0;this.output=null;this.Gn=this.Di=this.OP=0;this.msg="";this.state=null;this.Xc=2;this.W7=0};var XUb=Object.prototype.toString; +C3.prototype.push=function(z,J){var m=this.lF,e=this.options.chunkSize;if(this.ended)return!1;var T=J===~~J?J:J===!0?4:0;typeof z==="string"?m.input=sSz(z):XUb.call(z)==="[object ArrayBuffer]"?m.input=new Uint8Array(z):m.input=z;m.Q5=0;m.uy=m.input.length;do{m.Di===0&&(m.output=new Hd.ET(e),m.OP=0,m.Di=e);z=d$b(m,T);if(z!==1&&z!==0)return this.kG(z),this.ended=!0,!1;if(m.Di===0||m.uy===0&&(T===4||T===2))if(this.options.WR==="string"){var E=Hd.Ba(m.output,m.OP);J=E;E=E.length;if(E<65537&&(J.subarray&& +vOO||!J.subarray))J=String.fromCharCode.apply(null,Hd.Ba(J,E));else{for(var Z="",c=0;c0||m.Di===0)&&z!==1);if(T===4)return(m=this.lF)&&m.state?(e=m.state.status,e!==42&&e!==69&&e!==73&&e!==91&&e!==103&&e!==113&&e!==666?z=i2(m,-2):(m.state=null,z=e===113?i2(m,-3):0)):z=-2,this.kG(z),this.ended=!0,z===0;T===2&&(this.kG(0),m.Di=0);return!0}; +C3.prototype.kG=function(z){z===0&&(this.result=this.options.WR==="string"?this.chunks.join(""):Hd.Co(this.chunks));this.chunks=[];this.err=z;this.msg=this.lF.msg};var K3="@@redux/INIT"+a3(),Bwq="@@redux/REPLACE"+a3();var Ssq=typeof Symbol==="function"&&Symbol.observable||"@@observable";var zWz=[0,FvF,-3,mC];g.p(f3,P0);f3.prototype.getType=function(){return Nc(this,11)};var vYR=function(){var z=[0,c49,iNF,s_,FvF,s_,-1,mC,FvF,mC,-1,c49,mC,iNF,r4,zWz,s_,-1,mC];return function(J,m){var e={o0:!0};m&&Object.assign(e,m);J=C9j(J,void 0,void 0,e);try{var T=new f3;ot(T);var E=T.eE;c5(z)(E,J);var Z=T}finally{J.free()}return Z}}();var $$u=-1748283633;var H$1=new g.DQ("adInfoDialogEndpoint");var Icu=new g.DQ("adPingingEndpoint");var oEu=new g.DQ("crossDeviceProgressCommand");var mZ=new g.DQ("actionCompanionAdRenderer");var lO=new g.DQ("adActionInterstitialRenderer");var JsS=new g.DQ("adDurationRemainingRenderer");var MW=new g.DQ("adHoverTextButtonRenderer");var P5j=new g.DQ("adInfoDialogRenderer");var pw=new g.DQ("adMessageRenderer");var Am=new g.DQ("adPreviewRenderer");var TA=new g.DQ("adsEngagementPanelRenderer");var cv1=new g.DQ("dismissablePanelTextPortraitImageRenderer");var FgE=new g.DQ("adsEngagementPanelSectionListViewModel");var miz=new g.DQ("flyoutCtaRenderer");var ev=new g.DQ("imageCompanionAdRenderer");var cQ=new g.DQ("instreamAdPlayerOverlayRenderer");var fuu=new g.DQ("instreamSurveyAdBackgroundImageRenderer");var xA=new g.DQ("instreamSurveyAdPlayerOverlayRenderer");var IR=new g.DQ("instreamSurveyAdRenderer"),gR=new g.DQ("instreamSurveyAdSingleSelectQuestionRenderer"),$A=new g.DQ("instreamSurveyAdMultiSelectQuestionRenderer"),OG=new g.DQ("instreamSurveyAdAnswerRenderer"),eW1=new g.DQ("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var qW=new g.DQ("instreamVideoAdRenderer");var Te9=new g.DQ("textOverlayAdContentRenderer"),EUv=new g.DQ("enhancedTextOverlayAdContentRenderer"),Z01=new g.DQ("imageOverlayAdContentRenderer");var WQ=new g.DQ("playerOverlayLayoutRenderer");var wS=new g.DQ("videoInterstitialButtonedCenteredLayoutRenderer");var dTj=new g.DQ("aboveFeedAdLayoutRenderer");var ID1=new g.DQ("belowPlayerAdLayoutRenderer");var qOf=new g.DQ("inPlayerAdLayoutRenderer");var yA=new g.DQ("playerBytesAdLayoutRenderer");var br=new g.DQ("playerBytesSequenceItemAdLayoutRenderer");var Dg=new g.DQ("playerUnderlayAdLayoutRenderer");var dR=new g.DQ("adIntroRenderer");var lr=new g.DQ("playerBytesSequentialLayoutRenderer");var ROs=new g.DQ("slidingTextPlayerOverlayRenderer");var OU=new g.DQ("surveyTextInterstitialRenderer");var NW=new g.DQ("videoAdTrackingRenderer");var FYe=new g.DQ("simpleAdBadgeRenderer");var i4=new g.DQ("skipAdRenderer"),i09=new g.DQ("skipButtonRenderer");var ur=new g.DQ("adSlotRenderer");var X3=new g.DQ("squeezebackPlayerSidePanelRenderer");var csg=new g.DQ("timedPieCountdownRenderer");var uT=new g.DQ("adAvatarViewModel");var Vl=new g.DQ("adBadgeViewModel");var PS=new g.DQ("adButtonViewModel");var WYv=new g.DQ("adDetailsLineViewModel");var lE9=new g.DQ("adDisclosureBannerViewModel");var wuF=new g.DQ("adPodIndexViewModel");var qkg=new g.DQ("imageBackgroundViewModel");var di9=new g.DQ("adGridCardCollectionViewModel");var IE$=new g.DQ("adGridCardTextViewModel");var O04=new g.DQ("adPreviewViewModel");var puS=new g.DQ("playerAdAvatarLockupCardButtonedViewModel");var ysF=new g.DQ("skipAdButtonViewModel");var NeO=new g.DQ("skipAdViewModel");var GCO=new g.DQ("timedPieCountdownViewModel");var XuS=new g.DQ("visitAdvertiserLinkViewModel");var EU=new g.DQ("bannerImageLayoutViewModel");var Zg=new g.DQ("topBannerImageTextIconButtonedLayoutViewModel");var F3=new g.DQ("adsEngagementPanelLayoutViewModel");var n6=new g.DQ("displayUnderlayTextGridCardsLayoutViewModel");g.aN=new g.DQ("browseEndpoint");var nU1=new g.DQ("confirmDialogEndpoint");var Z4j=new g.DQ("commandContext");var wRb=new g.DQ("rawColdConfigGroup");var leb=new g.DQ("rawHotConfigGroup");g.Ge=new g.DQ("commandExecutorCommand");g.p(M1E,P0);var z8u={dvD:0,KZ2:1,aXy:32,EKy:61,Xt4:67,J0y:103,V8F:86,GzW:42,Y7D:60,e9h:62,h93:73,m$F:76,M82:88,LZf:90,WZz:99,D$b:98,q7f:100,ZnD:102,A0x:41,nKD:69,u21:70,gKh:71,d13:2,zL1:27,ANDROID:3,xWD:54,Spx:14,h2F:91,UWW:55,DWf:24,If4:20,Gs4:18,Qi3:21,mWx:104,Cy1:30,MfD:29,LA1:28,fX3:101,qpy:34,EAy:36,Yp2:38,IOS:5,Bqb:15,RLh:92,c7b:40,sa6:25,dYz:17,zR3:19,yb2:64,Hi2:66,pUx:26,l4x:22,vFz:33,tY6:68,oF1:35,kE6:53,f43:37,r7W:39,AzF:7,nVb:57,uVb:43,NkF:59,gVW:93,J8x:74,b$y:75,FW1:85,jVn:65,Bk2:80,czi:8,Xux:10, +sV1:58,rz2:63,O$D:72,Vf6:23,FZn:11,jAF:13,tdx:12,WWb:16,IXn:56,CR6:31,cb1:77,Sen:84,QA4:87,DYb:89,UYW:94,qAh:95};g.p(b2,P0);b2.prototype.JY=function(){return yI(this,3)}; +b2.prototype.uh=function(){return yI(this,5)}; +b2.prototype.Qr=function(z){return XS(this,5,z)};g.p($H,P0);g.p(Ad4,P0);g.p(gx,P0);g.F=gx.prototype;g.F.getDeviceId=function(){return yI(this,6)}; +g.F.qa=function(z){var J=vv(this,9,lQ,3,!0);u9(J,z);return J[z]}; +g.F.getPlayerType=function(){return Nc(this,36)}; +g.F.setHomeGroupInfo=function(z){return qc(this,Ad4,81,z)}; +g.F.clearLocationPlayabilityToken=function(){return Hv(this,89)};g.p(xH,P0);xH.prototype.getValue=function(){return yI(this,FS(this,cYf)===2?2:-1)}; +var cYf=[2,3,4,5,6];g.p(MK,P0);MK.prototype.setTrackingParams=function(z){return Hv(this,1,D1q(z,!1))};g.p(A9,P0);g.p(o3,P0);o3.prototype.qa=function(z){var J=vv(this,5,wy,3,!0);u9(J,z);return J[z]};g.p(j3,P0);j3.prototype.getToken=function(){return OJ(this,2)}; +j3.prototype.setToken=function(z){return XS(this,2,z)};g.p(h9,P0);h9.prototype.setSafetyMode=function(z){return Yc(this,5,z)};g.p(u2,P0);u2.prototype.Ir=function(z){return qc(this,gx,1,z)};var jv=new g.DQ("thumbnailLandscapePortraitRenderer");g.Ykv=new g.DQ("changeEngagementPanelVisibilityAction");var IXs=new g.DQ("continuationCommand");g.C9F=new g.DQ("openPopupAction");g.px=new g.DQ("webCommandMetadata");var fgq=new g.DQ("metadataBadgeRenderer");var dhq=new g.DQ("signalServiceEndpoint");var Vg=new g.DQ("innertubeCommand");var mhz=new g.DQ("loggingDirectives");var nTz={FYy:"EMBEDDED_PLAYER_MODE_UNKNOWN",gxh:"EMBEDDED_PLAYER_MODE_DEFAULT",bAy:"EMBEDDED_PLAYER_MODE_PFP",Nuy:"EMBEDDED_PLAYER_MODE_PFL"};var mFu=new g.DQ("channelThumbnailEndpoint");var Jzq=new g.DQ("embeddedPlayerErrorMessageRenderer");var vAR=new g.DQ("embeddedPlayerOverlayVideoDetailsRenderer"),e3u=new g.DQ("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),TV1=new g.DQ("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var KZz=new g.DQ("embedsInfoPanelRenderer");var aE1=new g.DQ("feedbackEndpoint");var KYF=new g.DQ("callToActionButtonViewModel");var Bev=new g.DQ("interactionLoggingCommandMetadata");var y9q={U$4:"WEB_DISPLAY_MODE_UNKNOWN",PRf:"WEB_DISPLAY_MODE_BROWSER",x$1:"WEB_DISPLAY_MODE_MINIMAL_UI",S7x:"WEB_DISPLAY_MODE_STANDALONE",wtf:"WEB_DISPLAY_MODE_FULLSCREEN"};g.p(Vt,P0);Vt.prototype.getPlayerType=function(){return Nc(this,7)}; +Vt.prototype.uF=function(){return yI(this,19)}; +Vt.prototype.setVideoId=function(z){return XS(this,19,z)};g.p(PT,P0);g.p(t9,P0);g.p(HT,P0); +var SkN=[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];var fEv=new g.DQ("loggingContext");g.p(US,P0);g.p(R3,P0);R3.prototype.uF=function(){return OJ(this,FS(this,IK)===1?1:-1)}; +R3.prototype.setVideoId=function(z){return EJ(this,1,IK,X7(z))}; +R3.prototype.getPlaylistId=function(){return OJ(this,FS(this,IK)===2?2:-1)}; +var IK=[1,2];g.p(oGz,P0);var JX=new g.DQ("changeKeyedMarkersVisibilityCommand");var DiF=new g.DQ("changeMarkersVisibilityCommand");var b6q=new g.DQ("loadMarkersCommand");var b0F=new g.DQ("suggestedActionDataViewModel");var wab=new g.DQ("timelyActionViewModel");var l9f=new g.DQ("timelyActionsOverlayViewModel");var OxE=new g.DQ("productListItemRenderer");var $iF=new g.DQ("shoppingOverlayRenderer");var sR4=new g.DQ("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var gUg=new g.DQ("adFeedbackEndpoint");var xi$=new g.DQ("menuEndpoint");var Dau=new g.DQ("phoneDialerEndpoint");var S_q=new g.DQ("sendSmsEndpoint");var QRb=new g.DQ("copyTextEndpoint");var Mnv=new g.DQ("shareEndpoint"),As9=new g.DQ("shareEntityEndpoint"),oUS=new g.DQ("shareEntityServiceEndpoint"),jt1=new g.DQ("webPlayerShareEntityServiceEndpoint");g.uY=new g.DQ("urlEndpoint");g.rN=new g.DQ("watchEndpoint");var hW9=new g.DQ("watchPlaylistEndpoint");g.udc=new g.DQ("offlineOrchestrationActionCommand");var vNq=new g.DQ("compositeVideoOverlayRenderer");var Vn1=new g.DQ("miniplayerRenderer");var kAu=new g.DQ("paidContentOverlayRenderer");var P99=new g.DQ("playerMutedAutoplayOverlayRenderer"),tng=new g.DQ("playerMutedAutoplayEndScreenRenderer");var VxE=new g.DQ("unserializedPlayerResponse"),H04=new g.DQ("unserializedPlayerResponse");var Ui1=new g.DQ("playlistEditEndpoint");var yE;g.oR=new g.DQ("buttonRenderer");yE=new g.DQ("toggleButtonRenderer");var Zcu=new g.DQ("counterfactualRenderer");var RWg=new g.DQ("resolveUrlCommandMetadata");var kCF=new g.DQ("modifyChannelNotificationPreferenceEndpoint");var dVb=new g.DQ("pingingEndpoint");var LYO=new g.DQ("unsubscribeEndpoint");g.Kn=new g.DQ("subscribeButtonRenderer");var Qt9=new g.DQ("subscribeEndpoint");var yhu=new g.DQ("buttonViewModel");var icu=new g.DQ("qrCodeRenderer");var mGq={iii:"LIVING_ROOM_APP_MODE_UNSPECIFIED",YAn:"LIVING_ROOM_APP_MODE_MAIN",a4x:"LIVING_ROOM_APP_MODE_KIDS",QBb:"LIVING_ROOM_APP_MODE_MUSIC",Zii:"LIVING_ROOM_APP_MODE_UNPLUGGED",GE3:"LIVING_ROOM_APP_MODE_GAMING"};var YUR=new g.DQ("autoplaySwitchButtonRenderer");var Kr,eDE,L6b,dIj;Kr=new g.DQ("decoratedPlayerBarRenderer");eDE=new g.DQ("chapteredPlayerBarRenderer");L6b=new g.DQ("multiMarkersPlayerBarRenderer");dIj=new g.DQ("chapterRenderer");g.FXu=new g.DQ("markerRenderer");var vUz=new g.DQ("decoratedPlayheadRenderer");var BRf=new g.DQ("desktopOverlayConfigRenderer");var Wgu=new g.DQ("engagementPanelSectionListRenderer");var agu=new g.DQ("gatedActionsOverlayViewModel");var ldE=new g.DQ("heatMarkerRenderer");var WX1=new g.DQ("heatmapRenderer");var DWE=new g.DQ("watchToWatchTransitionRenderer");var rmb=new g.DQ("playlistPanelRenderer");var stF=new g.DQ("productUpsellSuggestedActionViewModel");var rs1=new g.DQ("suggestedActionTimeRangeTrigger"),zvO=new g.DQ("suggestedActionsRenderer"),J59=new g.DQ("suggestedActionRenderer");var wGs=new g.DQ("timedMarkerDecorationRenderer");var qef=new g.DQ("cipher");var P4b=new g.DQ("playerVars");var msc=new g.DQ("playerVars");var NB=g.VR.window,evN,Ty1,kH=(NB==null?void 0:(evN=NB.yt)==null?void 0:evN.config_)||(NB==null?void 0:(Ty1=NB.ytcfg)==null?void 0:Ty1.data_)||{};g.tu("yt.config_",kH);var sS=[];var kIq=/^[\w.]*$/,t14={q:!0,search_query:!0},PSu=String(To);var dj=new function(){var z=window.document;this.K=window;this.T=z}; +g.tu("yt.ads_.signals_.getAdSignalsString",function(z){return EL(OL(z))});g.mv();var QLu="XMLHttpRequest"in g.VR?function(){return new XMLHttpRequest}:null;var Ejc="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.X(Ejc);var zhu={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"},JQs="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(g.X(Ejc)),cQ1=!1,sLE=m6z,ZEs=SA;g.p(bv,O1);xJ.prototype.then=function(z,J,m){return this.K?this.K.then(z,J,m):this.S===1&&z?(z=z.call(m,this.T))&&typeof z.then==="function"?z:Aj(z):this.S===2&&J?(z=J.call(m,this.T))&&typeof z.then==="function"?z:Mp(z):this}; +xJ.prototype.getValue=function(){return this.T}; +xJ.prototype.$goog_Thenable=!0;var oQ=!1;var vj=z7||JY;var Ga4=/^([0-9\.]+):([0-9\.]+)$/;g.p(OF,O1);OF.prototype.name="BiscottiError";g.p(IW,O1);IW.prototype.name="BiscottiMissingError";var Cfs={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},pJ=null;var njs=Oz(["data-"]),gTq={};var ZWv=0,yx=g.JM?"webkit":iA?"moz":g.pz?"ms":g.BZ?"o":"",Fr$=g.Hq("ytDomDomGetNextId")||function(){return++ZWv}; +g.tu("ytDomDomGetNextId",Fr$);var oTR={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};CJ.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; +CJ.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; +CJ.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var aW=g.VR.ytEventsEventsListeners||{};g.tu("ytEventsEventsListeners",aW);var umq=g.VR.ytEventsEventsCounter||{count:0};g.tu("ytEventsEventsCounter",umq);var HER=Ne(function(){var z=!1;try{var J=Object.defineProperty({},"passive",{get:function(){z=!0}}); +window.addEventListener("test",null,J)}catch(m){}return z}),Vpq=Ne(function(){var z=!1; +try{var J=Object.defineProperty({},"capture",{get:function(){z=!0}}); +window.addEventListener("test",null,J)}catch(m){}return z});var G3;G3=window;g.b5=G3.ytcsi&&G3.ytcsi.now?G3.ytcsi.now:G3.performance&&G3.performance.timing&&G3.performance.now&&G3.performance.timing.navigationStart?function(){return G3.performance.timing.navigationStart+G3.performance.now()}:function(){return(new Date).getTime()};g.T9(De,g.h);De.prototype.B=function(z){z.K===void 0&&jzq(z);var J=z.K;z.T===void 0&&jzq(z);this.K=new g.Nr(J,z.T)}; +De.prototype.Qu=function(){return this.K||new g.Nr}; +De.prototype.Ry=function(){if(this.K){var z=(0,g.b5)();if(this.U!=0){var J=this.Y,m=this.K,e=J.x-m.x;J=J.y-m.y;e=Math.sqrt(e*e+J*J)/(z-this.U);this.T[this.S]=Math.abs((e-this.Z)/this.Z)>.5?1:0;for(m=J=0;m<4;m++)J+=this.T[m]||0;J>=3&&this.V();this.Z=e}this.U=z;this.Y=this.K;this.S=(this.S+1)%4}}; +De.prototype.oy=function(){g.nH(this.X);g.BR(this.fh)};g.p(bM,g.h);bM.prototype.L=function(z,J,m,e,T){m=g.zo((0,g.ru)(m,e||this.IT));m={target:z,name:J,callback:m};var E;T&&HER()&&(E={passive:!0});z.addEventListener(J,m.callback,E);this.X.push(m);return m}; +bM.prototype.hX=function(z){for(var J=0;J=V.dJ)||n.K.version>=zE||n.K.objectStoreNames.contains(x)||K.push(x)}W=K;if(W.length===0){G.U2(5);break}l=Object.keys(m.options.HN); +w=c.objectStoreNames();if(m.Zm.options.version+1)throw d.close(),m.S=!1,$tb(m,I);return G.return(d);case 8:throw J(), +q instanceof Error&&!g.CH("ytidb_async_stack_killswitch")&&(q.stack=q.stack+"\n"+Z.substring(Z.indexOf("\n")+1)),C$(q,m.name,"",(O=m.options.version)!=null?O:-1);}})} +function J(){m.K===e&&(m.K=void 0)} +var m=this;if(!this.S)throw $tb(this);if(this.K)return this.K;var e,T={blocking:function(E){E.close()}, +closed:J,HF1:J,upgrade:this.options.upgrade};return this.K=e=z()};var L$=new RV("YtIdbMeta",{HN:{databases:{dJ:1}},upgrade:function(z,J){J(1)&&g.gW(z,"databases",{keyPath:"actualName"})}});var zL,rW=new function(){}(new function(){});new g.CS;g.p(eV,RV);eV.prototype.T=function(z,J,m){m=m===void 0?{}:m;return(this.options.shared?VZu:uEz)(z,J,Object.assign({},m))}; +eV.prototype.delete=function(z){z=z===void 0?{}:z;return(this.options.shared?Utb:PIq)(this.name,z)};var OWN={},k5q=g.TL("ytGcfConfig",{HN:(OWN.coldConfigStore={dJ:1},OWN.hotConfigStore={dJ:1},OWN),shared:!1,upgrade:function(z,J){J(1)&&(g.h8(g.gW(z,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.h8(g.gW(z,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, +version:1});g.p(ZX,g.h);ZX.prototype.oy=function(){for(var z=g.y(this.T),J=z.next();!J.done;J=z.next()){var m=this.K;J=m.indexOf(J.value);J>=0&&m.splice(J,1)}this.T.length=0;g.h.prototype.oy.call(this)};wn.prototype.Qr=function(z){this.hotHashData=z;g.tu("yt.gcf.config.hotHashData",this.hotHashData||null)};var pv1=typeof TextEncoder!=="undefined"?new TextEncoder:null,A9b=pv1?function(z){return pv1.encode(z)}:function(z){z=g.nN(z); +for(var J=new Uint8Array(z.length),m=0;m=J?!1:!0}; +g.F.Q_=function(){var z=this;if(!hC(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.Sb.dh("QUEUED",this.eI).then(function(J){J&&!z.Uk(J,z.AO)?z.L$.wy(function(){return g.D(function(m){if(m.K==1)return J.id===void 0?m.U2(2):g.S(m,z.Sb.Pa(J.id,z.eI),2);z.Q_();g.nq(m)})}):z.rG.O9()&&z.oM()})};var PA;var Iez={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135, +mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28, +nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42, +assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225, +liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73, +visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88, +spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153, +vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,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,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,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};var Nyz={},Jju=g.TL("ServiceWorkerLogsDatabase",{HN:(Nyz.SWHealthLog={dJ:1},Nyz),shared:!0,upgrade:function(z,J){J(1)&&g.h8(g.gW(z,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, +version:1});var UK={},Fhf=0;var RT;LT.prototype.requestComplete=function(z,J){J&&(this.T=!0);z=this.removeParams(z);this.K.get(z)||this.K.set(z,J)}; +LT.prototype.isEndpointCFR=function(z){z=this.removeParams(z);return(z=this.K.get(z))?!1:z===!1&&this.T?!0:null}; +LT.prototype.removeParams=function(z){return z.split("?")[0]}; +LT.prototype.removeParams=LT.prototype.removeParams;LT.prototype.isEndpointCFR=LT.prototype.isEndpointCFR;LT.prototype.requestComplete=LT.prototype.requestComplete;LT.getInstance=Qe;g.p(vA,g.ZB);g.F=vA.prototype;g.F.O9=function(){return this.K.O9()}; +g.F.a7=function(z){this.K.K=z}; +g.F.t4z=function(){var z=window.navigator.onLine;return z===void 0?!0:z}; +g.F.F7=function(){this.T=!0}; +g.F.listen=function(z,J){return this.K.listen(z,J)}; +g.F.V_=function(z){z=VH(this.K,z);z.then(function(J){g.CH("use_cfr_monitor")&&Qe().requestComplete("generate_204",J)}); +return z}; +vA.prototype.sendNetworkCheckRequest=vA.prototype.V_;vA.prototype.listen=vA.prototype.listen;vA.prototype.enableErrorFlushing=vA.prototype.F7;vA.prototype.getWindowStatus=vA.prototype.t4z;vA.prototype.networkStatusHint=vA.prototype.a7;vA.prototype.isNetworkAvailable=vA.prototype.O9;vA.getInstance=Whq;g.p(g.sK,g.ZB);g.sK.prototype.O9=function(){var z=g.Hq("yt.networkStatusManager.instance.isNetworkAvailable");return z?z.bind(this.T)():!0}; +g.sK.prototype.a7=function(z){var J=g.Hq("yt.networkStatusManager.instance.networkStatusHint").bind(this.T);J&&J(z)}; +g.sK.prototype.V_=function(z){var J=this,m;return g.D(function(e){m=g.Hq("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(J.T);return g.CH("skip_network_check_if_cfr")&&Qe().isEndpointCFR("generate_204")?e.return(new Promise(function(T){var E;J.a7(((E=window.navigator)==null?void 0:E.onLine)||!0);T(J.O9())})):m?e.return(m(z)):e.return(!0)})};var rn;g.p(zQ,um);zQ.prototype.writeThenSend=function(z,J){J||(J={});J=mt(z,J);g.rs()||(this.K=!1);um.prototype.writeThenSend.call(this,z,J)}; +zQ.prototype.sendThenWrite=function(z,J,m){J||(J={});J=mt(z,J);g.rs()||(this.K=!1);um.prototype.sendThenWrite.call(this,z,J,m)}; +zQ.prototype.sendAndWrite=function(z,J){J||(J={});J=mt(z,J);g.rs()||(this.K=!1);um.prototype.sendAndWrite.call(this,z,J)}; +zQ.prototype.awaitInitialization=function(){return this.S.promise};var I8R=g.VR.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.tu("ytNetworklessLoggingInitializationOptions",I8R);g.e5.prototype.isReady=function(){!this.config_&&lQ1()&&(this.config_=g.dn());return!!this.config_};var GYz,ZJ,iE;GYz=g.VR.ytPubsubPubsubInstance||new g.fz;ZJ=g.VR.ytPubsubPubsubSubscribedKeys||{};iE=g.VR.ytPubsubPubsubTopicToKeys||{};g.FP=g.VR.ytPubsubPubsubIsSynchronous||{};g.fz.prototype.subscribe=g.fz.prototype.subscribe;g.fz.prototype.unsubscribeByKey=g.fz.prototype.QL;g.fz.prototype.publish=g.fz.prototype.publish;g.fz.prototype.clear=g.fz.prototype.clear;g.tu("ytPubsubPubsubInstance",GYz);g.tu("ytPubsubPubsubTopicToKeys",iE);g.tu("ytPubsubPubsubIsSynchronous",g.FP); +g.tu("ytPubsubPubsubSubscribedKeys",ZJ);var Xfb={};g.p(yL,g.h);yL.prototype.append=function(z){if(!this.T)throw Error("This does not support the append operation");z=z.aT();this.aT().appendChild(z)}; +g.p(Nb,yL);Nb.prototype.aT=function(){return this.K};g.p(GQ,g.h);GQ.prototype.onTouchStart=function(z){this.V=!0;this.T=z.touches.length;this.K.isActive()&&(this.K.stop(),this.Z=!0);z=z.touches;this.Y=Cvj(this,z)||z.length!=1;var J=z.item(0);this.Y||!J?this.B=this.X=Infinity:(this.X=J.clientX,this.B=J.clientY);for(J=this.S.length=0;J=0)}if(J||z&&Math.pow(z.clientX-this.X,2)+Math.pow(z.clientY-this.B,2)>25)this.U=!0}; +GQ.prototype.onTouchEnd=function(z){var J=z.changedTouches;J&&this.V&&this.T==1&&!this.U&&!this.Z&&!this.Y&&Cvj(this,J)&&(this.Ry=z,this.K.start());this.T=z.touches.length;this.T===0&&(this.U=this.V=!1,this.S.length=0);this.Z=!1};var ax=Date.now().toString();var DJ={};var AN=Symbol("injectionDeps");$w.prototype.toString=function(){return"InjectionToken("+this.name+")"}; +Bj4.prototype.resolve=function(z){return z instanceof g$?ox(this,z.key,[],!0):ox(this,z,[])};var j5;var uE=window;var HK=g.CH("web_enable_lifecycle_monitoring")&&VL()!==0,xpz=g.CH("web_enable_lifecycle_monitoring");bHu.prototype.cancel=function(){for(var z=g.y(this.K),J=z.next();!J.done;J=z.next())J=J.value,J.jobId===void 0||J.y_||this.scheduler.Xo(J.jobId),J.y_=!0;this.T.resolve()};g.F=U6.prototype;g.F.install=function(z){this.plugins.push(z);return this}; +g.F.uninstall=function(){var z=this;g.gu.apply(0,arguments).forEach(function(J){J=z.plugins.indexOf(J);J>-1&&z.plugins.splice(J,1)})}; +g.F.transition=function(z,J){var m=this;HK&&f8q(this.state);var e=this.transitions.find(function(E){return Array.isArray(E.from)?E.from.find(function(Z){return Z===m.state&&E.WR===z}):E.from===m.state&&E.WR===z}); +if(e){this.T&&($pj(this.T),this.T=void 0);MAb(this,z,J);this.state=z;HK&&PK(this.state);e=e.action.bind(this);var T=this.plugins.filter(function(E){return E[z]}).map(function(E){return E[z]}); +e(gJs(this,T),J)}else throw Error("no transition specified from "+this.state+" to "+z);}; +g.F.dL6=function(z){var J=g.gu.apply(1,arguments);g.Tf();for(var m=g.y(z),e=m.next(),T={};!e.done;T={NC:void 0},e=m.next())T.NC=e.value,TLz(function(E){return function(){kw(E.NC.name);QL(function(){return E.NC.callback.apply(E.NC,g.X(J))}); +Lg(E.NC.name)}}(T))}; +g.F.s1b=function(z){var J=g.gu.apply(1,arguments),m,e,T,E;return g.D(function(Z){Z.K==1&&(g.Tf(),m=g.y(z),e=m.next(),T={});if(Z.K!=3){if(e.done)return Z.U2(0);T.r9=e.value;T.Hn=void 0;E=function(c){return function(){kw(c.r9.name);var W=QL(function(){return c.r9.callback.apply(c.r9,g.X(J))}); +lK(W)?c.Hn=g.CH("web_lifecycle_error_handling_killswitch")?W.then(function(){Lg(c.r9.name)}):W.then(function(){Lg(c.r9.name)},function(l){DpE(l); +Lg(c.r9.name)}):Lg(c.r9.name)}}(T); +TLz(E);return T.Hn?g.S(Z,T.Hn,3):Z.U2(3)}T={r9:void 0,Hn:void 0};e=m.next();return Z.U2(2)})}; +g.F.aR=function(z){var J=g.gu.apply(1,arguments),m=this,e=z.map(function(T){return{bN:function(){kw(T.name);QL(function(){return T.callback.apply(T,g.X(J))}); +Lg(T.name)}, +priority:Rx(m,T)}}); +e.length&&(this.T=new bHu(e))}; +g.lj.Object.defineProperties(U6.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var s6;g.p(vK,U6);vK.prototype.Z=function(z,J){var m=this;this.K=g.mV(0,function(){m.currentState==="application_navigating"&&m.transition("none")},5E3); +z(J==null?void 0:J.event)}; +vK.prototype.Y=function(z,J){this.K&&(g.tQ.Xo(this.K),this.K=null);z(J==null?void 0:J.event)};var YB=[];g.tu("yt.logging.transport.getScrapedGelPayloads",function(){return YB});r$.prototype.storePayload=function(z,J){z=zM(z);this.store[z]?this.store[z].push(J):(this.T={},this.store[z]=[J]);this.K++;g.CH("more_accurate_gel_parser")&&(J=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(J));return z}; +r$.prototype.smartExtractMatchingEntries=function(z){if(!z.keys.length)return[];for(var J=mK(this,z.keys.splice(0,1)[0]),m=[],e=0;e=0){e=!1;break a}}e=!0}e&&(J=tr(J))&&this.e$(J)}}; +g.F.qG=function(z){return z}; +g.F.onTouchStart=function(z){this.Tf.onTouchStart(z)}; +g.F.onTouchMove=function(z){this.Tf.onTouchMove(z)}; +g.F.onTouchEnd=function(z){if(this.Tf)this.Tf.onTouchEnd(z)}; +g.F.e$=function(z){this.layoutId?this.gb.executeCommand(z,this.layoutId):g.jk(new g.vR("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))}; +g.F.createServerVe=function(z,J){this.api.createServerVe(z,this);this.api.setTrackingParams(z,J)}; +g.F.logVisibility=function(z,J){this.api.hasVe(z)&&this.api.logVisibility(z,J,this.interactionLoggingClientData)}; +g.F.oy=function(){this.clear(null);this.hX(this.yH);for(var z=g.y(this.wb),J=z.next();!J.done;J=z.next())this.hX(J.value);g.py.prototype.oy.call(this)};g.p(AJ,y7); +AJ.prototype.init=function(z,J,m){y7.prototype.init.call(this,z,J,m);this.K=J;if(J.text==null&&J.icon==null)g.hr(Error("ButtonRenderer did not have text or an icon set."));else{switch(J.style||null){case "STYLE_UNKNOWN":z="ytp-ad-button-link";break;default:z=null}z!=null&&g.FE(this.element,z);J.text!=null&&(z=g.GZ(J.text),g.CN(z)||(this.element.setAttribute("aria-label",z),this.S=new g.py({D:"span",J:"ytp-ad-button-text",t6:z}),g.u(this,this.S),this.S.S4(this.element)));J.accessibilityData&&J.accessibilityData.accessibilityData&& +J.accessibilityData.accessibilityData.label&&!g.CN(J.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",J.accessibilityData.accessibilityData.label);J.icon!=null&&(J=M3(J.icon,this.U),J!=null&&(this.T=new g.py({D:"span",J:"ytp-ad-button-icon",N:[J]}),g.u(this,this.T)),this.Y?cF(this.element,this.T.element,0):this.T.S4(this.element))}}; +AJ.prototype.clear=function(){this.hide()}; +AJ.prototype.onClick=function(z){y7.prototype.onClick.call(this,z);z=g.y(S0z(this));for(var J=z.next();!J.done;J=z.next())J=J.value,this.layoutId?this.gb.executeCommand(J,this.layoutId):g.jk(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.p(o0,g.h);o0.prototype.oy=function(){this.T&&g.BR(this.T);this.K.clear();jb=null;g.h.prototype.oy.call(this)}; +o0.prototype.register=function(z,J){J&&this.K.set(z,J)}; +var jb=null;g.p(V7,y7); +V7.prototype.init=function(z,J,m){y7.prototype.init.call(this,z,J,m);z=J.hoverText||null;J=J.button&&g.P(J.button,g.oR)||null;J==null?g.jk(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new AJ(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,void 0,void 0,void 0,void 0,this.S),g.u(this,this.button),this.button.init(WV("button"),J,this.macros),z&&this.button.element.setAttribute("aria-label",g.GZ(z)),this.button.S4(this.element),this.B&&!g.Zv(this.button.element, +"ytp-ad-clickable")&&g.FE(this.button.element,"ytp-ad-clickable"),this.S&&g.FE(this.button.element,"ytp-ad-hover-text-button--clean-player"),z&&(this.T=new g.py({D:"div",J:"ytp-ad-hover-text-container"}),this.Y&&(J=new g.py({D:"div",J:"ytp-ad-hover-text-callout"}),J.S4(this.T.element),g.u(this,J)),g.u(this,this.T),this.T.S4(this.element),J=hJ(z),cF(this.T.element,J,0)),this.show())}; +V7.prototype.hide=function(){this.button&&this.button.hide();this.T&&this.T.hide();y7.prototype.hide.call(this)}; +V7.prototype.show=function(){this.button&&this.button.show();y7.prototype.show.call(this)};g.p(tJ,y7); +tJ.prototype.init=function(z,J,m){y7.prototype.init.call(this,z,J,m);m=(z=J.thumbnail)&&PV(z)||"";g.CN(m)?Math.random()<.01&&g.hr(Error("Found AdImage without valid image URL")):(this.K?g.FR(this.element,"backgroundImage","url("+m+")"):zb(this.element,{src:m}),zb(this.element,{alt:z&&z.accessibility&&z.accessibility.label||""}),J&&J.adRendererCommands&&J.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; +tJ.prototype.clear=function(){this.hide()};g.p(HV,y7);g.F=HV.prototype;g.F.hide=function(){y7.prototype.hide.call(this);this.S&&this.S.focus()}; +g.F.show=function(){this.S=document.activeElement;y7.prototype.show.call(this);this.U.focus()}; +g.F.init=function(z,J,m){y7.prototype.init.call(this,z,J,m);this.T=J;J.dialogMessages||J.title!=null?J.confirmLabel==null?g.jk(Error("ConfirmDialogRenderer.confirmLabel was not set.")):J.cancelLabel==null?g.jk(Error("ConfirmDialogRenderer.cancelLabel was not set.")):$q4(this,J):g.jk(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; +g.F.clear=function(){g.gs(this.K);this.hide()}; +g.F.VX=function(){this.hide()}; +g.F.oh=function(){var z=this.T.cancelEndpoint;z&&(this.layoutId?this.gb.executeCommand(z,this.layoutId):g.jk(Error("Missing layoutId for confirm dialog.")));this.hide()}; +g.F.J9=function(){var z=this.T.confirmNavigationEndpoint||this.T.confirmEndpoint;z&&(this.layoutId?this.gb.executeCommand(z,this.layoutId):g.jk(Error("Missing layoutId for confirm dialog.")));this.hide()};g.p(Ug,y7);g.F=Ug.prototype; +g.F.init=function(z,J,m){y7.prototype.init.call(this,z,J,m);this.S=J;if(J.defaultText==null&&J.defaultIcon==null)g.jk(Error("ToggleButtonRenderer must have either text or icon set."));else if(J.defaultIcon==null&&J.toggledIcon!=null)g.jk(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(J.style){switch(J.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":z="ytp-ad-toggle-button-default-style";break;default:z=null}z!=null&&g.FE(this.U,z)}z={};J.defaultText? +(m=g.GZ(J.defaultText),g.CN(m)||(z.buttonText=m,this.api.W().experiments.j4("a11y_h5_associate_survey_question")||this.K.setAttribute("aria-label",m),this.api.W().experiments.j4("fix_h5_toggle_button_a11y")&&this.T.setAttribute("aria-label",m))):g.nU(this.x3,!1);J.defaultTooltip&&(z.tooltipText=J.defaultTooltip,this.K.hasAttribute("aria-label")||this.T.setAttribute("aria-label",J.defaultTooltip));J.defaultIcon?(m=M3(J.defaultIcon),this.updateValue("untoggledIconTemplateSpec",m),J.toggledIcon?(this.fh= +!0,m=M3(J.toggledIcon),this.updateValue("toggledIconTemplateSpec",m)):(g.nU(this.B,!0),g.nU(this.Y,!1)),g.nU(this.K,!1)):g.nU(this.T,!1);g.xf(z)||this.update(z);J.isToggled&&(g.FE(this.U,"ytp-ad-toggle-button-toggled"),this.toggleButton(J.isToggled));R0(this);this.L(this.element,"change",this.O1);this.show()}}; +g.F.onClick=function(z){this.wb.length>0&&(this.toggleButton(!this.isToggled()),this.O1());y7.prototype.onClick.call(this,z)}; +g.F.O1=function(){g.qt(this.U,"ytp-ad-toggle-button-toggled",this.isToggled());for(var z=g.y(g4R(this,this.isToggled())),J=z.next();!J.done;J=z.next())J=J.value,this.layoutId?this.gb.executeCommand(J,this.layoutId):g.jk(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);R0(this)}; +g.F.clear=function(){this.hide()}; +g.F.toggleButton=function(z){g.qt(this.U,"ytp-ad-toggle-button-toggled",z);this.K.checked=z;R0(this)}; +g.F.isToggled=function(){return this.K.checked};g.p(kC,bM);kC.prototype.Y=function(z){if(Array.isArray(z)){z=g.y(z);for(var J=z.next();!J.done;J=z.next())J=J.value,J instanceof xqu&&this.U(J)}};g.p(Ly,y7);g.F=Ly.prototype;g.F.init=function(z,J,m){y7.prototype.init.call(this,z,J,m);J.reasons?J.confirmLabel==null?g.jk(Error("AdFeedbackRenderer.confirmLabel was not set.")):(J.cancelLabel==null&&g.hr(Error("AdFeedbackRenderer.cancelLabel was not set.")),J.title==null&&g.hr(Error("AdFeedbackRenderer.title was not set.")),jVs(this,J)):g.jk(Error("AdFeedbackRenderer.reasons were not set."))}; +g.F.clear=function(){SO(this.Y);SO(this.B);this.U.length=0;this.hide()}; +g.F.hide=function(){this.K&&this.K.hide();this.T&&this.T.hide();y7.prototype.hide.call(this);this.S&&this.S.focus()}; +g.F.show=function(){this.K&&this.K.show();this.T&&this.T.show();this.S=document.activeElement;y7.prototype.show.call(this);this.Y.focus()}; +g.F.Y1=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; +g.F.bZ2=function(){this.hide()}; +Q7.prototype.aT=function(){return this.K.element}; +Q7.prototype.getCommand=function(){return this.T}; +Q7.prototype.isChecked=function(){return this.S.checked};g.p(vV,HV);vV.prototype.VX=function(z){HV.prototype.VX.call(this,z);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; +vV.prototype.oh=function(z){HV.prototype.oh.call(this,z);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; +vV.prototype.J9=function(z){HV.prototype.J9.call(this,z);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.p(sg,y7);g.F=sg.prototype; +g.F.init=function(z,J,m){y7.prototype.init.call(this,z,J,m);this.Y=J;if(J.dialogMessage==null&&J.title==null)g.jk(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{J.confirmLabel==null&&g.hr(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(z=J.closeOverlayRenderer&&g.P(J.closeOverlayRenderer,g.oR)||null)this.K=new AJ(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), +g.u(this,this.K),this.K.init(WV("button"),z,this.macros),this.K.S4(this.element);J.title&&(z=g.GZ(J.title),this.updateValue("title",z));if(J.adReasons)for(z=J.adReasons,m=0;m=this.Gf?(this.fh.hide(),this.qD=!0,this.publish("i")):this.S&&this.S.isTemplated()&&(z=Math.max(0,Math.ceil((this.Gf-z)/1E3)),z!=this.nh&&(JL(this.S,{TIME_REMAINING:String(z)}),this.nh=z)))}};g.p(iB,mk);g.F=iB.prototype; +g.F.init=function(z,J,m){mk.prototype.init.call(this,z,J,m);if(J.image&&J.image.thumbnail)if(J.headline)if(J.description)if((z=J.actionButton&&g.P(J.actionButton,g.oR))&&z.navigationEndpoint){var e=this.api.getVideoData(2);if(e!=null)if(J.image&&J.image.thumbnail){var T=J.image.thumbnail.thumbnails;T!=null&&T.length>0&&g.CN(g.Ty(T[0].url))&&(T[0].url=e.profilePicture)}else g.hr(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.S.init(WV("ad-image"),J.image,m);this.Y.init(WV("ad-text"), +J.headline,m);this.U.init(WV("ad-text"),J.description,m);this.T.init(WV("button"),z,m);m=LE(this.T.element);kT(this.T.element,m+" This link opens in new tab");this.fh=z.navigationEndpoint;this.api.If()||this.show();this.api.W().C("enable_larger_flyout_cta_on_desktop")&&(this.P1("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.P1("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.P1("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"), +this.P1("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.P1("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.P1("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.T.element.classList.add("ytp-flyout-cta-action-button-large"),this.T.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.P1("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large")); +this.api.addEventListener("playerUnderlayVisibilityChange",this.rT.bind(this));this.x3=J.startMs||0;eD(this)}else g.jk(Error("FlyoutCtaRenderer has no valid action button."));else g.jk(Error("FlyoutCtaRenderer has no description AdText."));else g.jk(Error("FlyoutCtaRenderer has no headline AdText."));else g.hr(Error("FlyoutCtaRenderer has no image."))}; +g.F.onClick=function(z){mk.prototype.onClick.call(this,z);this.api.pauseVideo();!g.lV(this.T.element,z.target)&&this.fh&&(this.layoutId?this.gb.executeCommand(this.fh,this.layoutId):g.jk(Error("Missing layoutId for flyout cta.")))}; +g.F.EA=function(){if(this.K){var z=this.K.getProgressState();(z&&z.current||this.Gf)&&1E3*z.current>=this.x3&&(Te(this),g.lI(this.element,"ytp-flyout-cta-inactive"),this.T.element.removeAttribute("tabIndex"))}}; +g.F.Zq=function(){this.clear()}; +g.F.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.rT.bind(this))}; +g.F.show=function(){this.T&&this.T.show();mk.prototype.show.call(this)}; +g.F.hide=function(){this.T&&this.T.hide();mk.prototype.hide.call(this)}; +g.F.rT=function(z){z=="hidden"?this.show():this.hide()};g.p(cy,y7);g.F=cy.prototype; +g.F.init=function(z,J,m){y7.prototype.init.call(this,z,J,m);this.K=J;if(this.K.rectangle)for(z=this.K.likeButton&&g.P(this.K.likeButton,yE),J=this.K.dislikeButton&&g.P(this.K.dislikeButton,yE),this.S.init(WV("toggle-button"),z,m),this.T.init(WV("toggle-button"),J,m),this.L(this.element,"change",this.s1),this.U.show(100),this.show(),m=g.y(this.K&&this.K.impressionCommands||[]),z=m.next();!z.done;z=m.next())z=z.value,this.layoutId?this.gb.executeCommand(z,this.layoutId):g.jk(Error("Missing layoutId for instream user sentiment."))}; +g.F.clear=function(){this.hide()}; +g.F.hide=function(){this.S.hide();this.T.hide();y7.prototype.hide.call(this)}; +g.F.show=function(){this.S.show();this.T.show();y7.prototype.show.call(this)}; +g.F.s1=function(){a4R(this.element,"ytp-ad-instream-user-sentiment-selected");this.K.postMessageAction&&this.api.B1("onYtShowToast",this.K.postMessageAction);this.U.hide()}; +g.F.onClick=function(z){this.wb.length>0&&this.s1();y7.prototype.onClick.call(this,z)};g.p(Wy,g.h);g.F=Wy.prototype;g.F.oy=function(){this.reset();g.h.prototype.oy.call(this)}; +g.F.reset=function(){g.gs(this.U);this.Y=!1;this.K&&this.K.stop();this.Z.stop();this.S&&(this.S=!1,this.V.play())}; +g.F.start=function(){this.reset();this.U.L(this.T,"mouseover",this.zT,this);this.U.L(this.T,"mouseout",this.dT,this);this.Ry&&(this.U.L(this.T,"focusin",this.zT,this),this.U.L(this.T,"focusout",this.dT,this));this.K?this.K.start():(this.Y=this.S=!0,g.FR(this.T,{opacity:this.B}))}; +g.F.zT=function(){this.S&&(this.S=!1,this.V.play());this.Z.stop();this.K&&this.K.stop()}; +g.F.dT=function(){this.Y?this.Z.start():this.K&&this.K.start()}; +g.F.eL=function(){this.S||(this.S=!0,this.X.play(),this.Y=!0)};var v4j=[new lB("b.f_",!1,0),new lB("j.s_",!1,2),new lB("r.s_",!1,4),new lB("e.h_",!1,6),new lB("i.s_",!0,8),new lB("s.t_",!1,10),new lB("p.h_",!1,12),new lB("s.i_",!1,14),new lB("f.i_",!1,16),new lB("a.b_",!1,18),new lB("a.o_",!1),new lB("g.o_",!1,22),new lB("p.i_",!1,24),new lB("p.m_",!1),new lB("n.k_",!0,20),new lB("i.f_",!1),new lB("a.s_",!0),new lB("m.c_",!1),new lB("n.h_",!1,26),new lB("o.p_",!1)].reduce(function(z,J){z[J.T]=J;return z},{});g.p(No,mk);g.F=No.prototype; +g.F.init=function(z,J,m){mk.prototype.init.call(this,z,J,m);this.fh=J;(this.x3=r8q(this))&&g.hr(Error("hasAdControlInClickCommands_ is true."));if(!J||g.xf(J))g.jk(Error("SkipButtonRenderer was not specified or empty."));else if(!J.message||g.xf(J.message))g.jk(Error("SkipButtonRenderer.message was not specified or empty."));else{z=this.Y?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"};J=M3(z);J==null?g.jk(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+z.iconType+".")): +(this.U=new g.py({D:"button",Iy:[this.Y?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],N:[{D:"span",J:this.Y?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",N:[J]}]}),g.u(this,this.U),this.U.S4(this.S.element),this.T=new ze(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,"ytp-ad-skip-button-text"),this.Y&&this.T.element.classList.add("ytp-ad-skip-button-text-centered"),this.T.init(WV("ad-text"),this.fh.message,m),g.u(this,this.T),cF(this.U.element,this.T.element, +0));var e=e===void 0?null:e;m=this.api.W();!(this.wb.length>0)&&m.T&&(Ki?0:"ontouchstart"in document.documentElement&&(NB1()||OT()))&&(this.hX(this.yH),e&&this.hX(e),this.wb=[this.L(this.element,"touchstart",this.onTouchStart,this),this.L(this.element,"touchmove",this.onTouchMove,this),this.L(this.element,"touchend",this.onTouchEnd,this)])}}; +g.F.clear=function(){this.Gf.reset();this.hide()}; +g.F.hide=function(){this.S.hide();this.T&&this.T.hide();Te(this);mk.prototype.hide.call(this)}; +g.F.onClick=function(z){if(this.U!=null){if(z){var J=z||window.event;J.returnValue=!1;J.preventDefault&&J.preventDefault()}var m;if(LV1(z,{contentCpn:((m=this.api.getVideoData(1))==null?void 0:m.clientPlaybackNonce)||""})===0)this.api.B1("onAbnormalityDetected");else if(mk.prototype.onClick.call(this,z),this.publish("j"),this.api.B1("onAdSkip"),this.qD||!this.x3)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; +g.F.qG=function(z){if(!this.qD)return this.x3&&IU("SkipButton click commands not pruned while ALC exist"),z;var J,m=(J=g.P(z,g.Ge))==null?void 0:J.commands;if(!m)return z;z=[];for(J=0;J=this.Y&&zMu(this,!0)};g.p(nO,AJ);nO.prototype.init=function(z,J,m){AJ.prototype.init.call(this,z,J,m);z=!1;J.text!=null&&(z=g.GZ(J.text),z=!g.CN(z));z?J.navigationEndpoint==null?g.hr(Error("No visit advertiser clickthrough provided in renderer,")):J.style!=="STYLE_UNKNOWN"?g.hr(Error("Button style was not a link-style type in renderer,")):this.show():g.hr(Error("No visit advertiser text was present in the renderer."))};g.p(YE,y7); +YE.prototype.init=function(z,J,m){y7.prototype.init.call(this,z,J,m);z=J.text;g.CN(N3(z))?g.hr(Error("SimpleAdBadgeRenderer has invalid or empty text")):(z&&z.text&&(J=z.text,this.S&&!this.T&&(J=this.api.W(),J=z.text+" "+(J&&J.T?"\u2022":"\u00b7")),J={text:J,isTemplated:z.isTemplated},z.style&&(J.style=z.style),z.targetId&&(J.targetId=z.targetId),z=new ze(this.api,this.layoutId,this.interactionLoggingClientData,this.gb),z.init(WV("simple-ad-badge"),J,m),z.S4(this.element),g.u(this,z)),this.show())}; +YE.prototype.clear=function(){this.hide()};g.p(CO,lY);g.p(aU,g.wF);g.F=aU.prototype;g.F.pX=function(){return this.durationMs}; +g.F.stop=function(){this.K&&this.Ij.hX(this.K)}; +g.F.Xq=function(z){this.T={seekableStart:0,seekableEnd:this.durationMs/1E3,current:z.current};this.publish("h")}; +g.F.getProgressState=function(){return this.T}; +g.F.cY=function(z){g.yK(z,2)&&this.publish("g")};g.p(KO,g.wF);g.F=KO.prototype;g.F.pX=function(){return this.durationMs}; +g.F.start=function(){this.K||(this.K=!0,this.vk.start())}; +g.F.stop=function(){this.K&&(this.K=!1,this.vk.stop())}; +g.F.Xq=function(){this.Vn+=100;var z=!1;this.Vn>this.durationMs&&(this.Vn=this.durationMs,this.vk.stop(),z=!0);this.T={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.Vn/1E3};this.publish("h");z&&this.publish("g")}; +g.F.getProgressState=function(){return this.T};g.p(fO,mk);g.F=fO.prototype;g.F.init=function(z,J,m){mk.prototype.init.call(this,z,J,m);var e;if(J==null?0:(e=J.templatedCountdown)==null?0:e.templatedAdText){z=J.templatedCountdown.templatedAdText;if(!z.isTemplated){g.hr(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.T=new ze(this.api,this.layoutId,this.interactionLoggingClientData,this.gb);this.T.init(WV("ad-text"),z,{});this.T.S4(this.element);g.u(this,this.T)}this.show()}; +g.F.clear=function(){this.hide()}; +g.F.hide=function(){Te(this);mk.prototype.hide.call(this)}; +g.F.Zq=function(){this.hide()}; +g.F.EA=function(){if(this.K!=null){var z=this.K.getProgressState();if(z!=null&&z.current!=null&&this.T){var J=this.K instanceof aU?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:z.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.K instanceof KO?z.seekableEnd:this.api.getDuration(2,!1);z=z.current;var m,e,T=((m=this.api.getVideoData())==null?0:(e=m.b8)==null?0:e.call(m))?Math.max(J-z,0):J-z;JL(this.T,{FORMATTED_AD_DURATION_REMAINING:String(g.By(T)), +TIME_REMAINING:String(Math.ceil(T))})}}}; +g.F.show=function(){eD(this);mk.prototype.show.call(this)};g.p(DC,ze);DC.prototype.onClick=function(z){ze.prototype.onClick.call(this,z);this.api.onAdUxClicked(this.componentType)};g.p($E,y7);$E.prototype.init=function(z,J){y7.prototype.init.call(this,z,J,{});if(z=J.content){g.w2(this.element,z);var m,e;J=((m=J.interaction)==null?void 0:(e=m.accessibility)==null?void 0:e.label)||z;this.element.setAttribute("aria-label",J)}else g.jk(Error("AdSimpleAttributedString does not have text content"))}; +$E.prototype.clear=function(){this.hide()}; +$E.prototype.onClick=function(z){y7.prototype.onClick.call(this,z)};g.p(g9,y7); +g9.prototype.init=function(z,J){y7.prototype.init.call(this,z,J,{});(z=J.label)&&z.content&&!g.CN(z.content)?(this.adBadgeText.init(WV("ad-simple-attributed-string"),new bB(z)),(J=J.adPodIndex)&&J.content&&!g.CN(J.content)&&(this.K=new $E(this.api,this.layoutId,this.interactionLoggingClientData,this.gb),this.K.S4(this.element),g.u(this,this.K),this.K.element.classList.add("ytp-ad-badge__pod-index"),this.K.init(WV("ad-simple-attributed-string"),new bB(J))),this.element.classList.add(this.T?"ytp-ad-badge--stark-clean-player": +"ytp-ad-badge--stark"),this.show()):g.jk(Error("No label is returned in AdBadgeViewModel."))}; +g9.prototype.show=function(){this.adBadgeText.show();var z;(z=this.K)==null||z.show();y7.prototype.show.call(this)}; +g9.prototype.hide=function(){this.adBadgeText.hide();var z;(z=this.K)==null||z.hide();y7.prototype.hide.call(this)};g.p(xE,y7);xE.prototype.init=function(z,J){y7.prototype.init.call(this,z,J,{});(z=J.adPodIndex)&&z.content&&!g.CN(z.content)&&(this.K=new $E(this.api,this.layoutId,this.interactionLoggingClientData,this.gb),this.K.S4(this.element),g.u(this,this.K),this.K.init(WV("ad-simple-attributed-string"),new bB(z)),J.visibilityCondition==="AD_POD_INDEX_VISIBILITY_CONDITION_AUTOHIDE"&&this.element.classList.add("ytp-ad-pod-index--autohide"));this.element.classList.add("ytp-ad-pod-index--stark");this.show()}; +xE.prototype.show=function(){var z;(z=this.K)==null||z.show();y7.prototype.show.call(this)}; +xE.prototype.hide=function(){var z;(z=this.K)==null||z.hide();y7.prototype.hide.call(this)};g.p(Mo,y7); +Mo.prototype.init=function(z,J){y7.prototype.init.call(this,z,J,{});if(J!=null&&J.text){var m;if(((m=J.text)==null?0:m.content)&&!g.CN(J.text.content)){this.K=new g.py({D:"div",J:"ytp-ad-disclosure-banner__text",t6:J.text.content});g.u(this,this.K);this.K.S4(this.element);var e,T;z=((e=J.interaction)==null?void 0:(T=e.accessibility)==null?void 0:T.label)||J.text.content;this.element.setAttribute("aria-label",z);var E;if((E=J.interaction)==null?0:E.onTap)this.T=new g.py({D:"div",J:"ytp-ad-disclosure-banner__chevron",N:[g.Cy()]}), +g.u(this,this.T),this.T.S4(this.element);this.show()}}else g.jk(Error("No banner text found in AdDisclosureBanner."))}; +Mo.prototype.clear=function(){this.hide()};AL.prototype.getLength=function(){return this.K-this.T};g.p(jD,g.py);jD.prototype.Xq=function(){var z=this.T.getProgressState(),J=z.seekableEnd;this.api.getPresentingPlayerType()===2&&this.api.W().C("show_preskip_progress_bar_for_skippable_ads")&&(J=this.S?this.S/1E3:z.seekableEnd);z=oU(new AL(z.seekableStart,J),z.current,0);this.progressBar.style.width=z*100+"%"}; +jD.prototype.onStateChange=function(){g.AD(this.api.W())||(this.api.getPresentingPlayerType()===2?this.K===-1&&(this.show(),this.K=this.T.subscribe("h",this.Xq,this),this.Xq()):this.K!==-1&&(this.hide(),this.T.QL(this.K),this.K=-1))};g.p(hL,y7); +hL.prototype.init=function(z,J,m,e){y7.prototype.init.call(this,z,J,m);if(J.skipOrPreviewRenderer){if(z=g.P(J.skipOrPreviewRenderer,i4))m=new XW(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,this.T,this.B),m.S4(this.h6),m.init(WV("skip-button"),z,this.macros),g.u(this,m);if(z=g.P(J.skipOrPreviewRenderer,i4))var T=z.skipOffsetMilliseconds}J.brandInteractionRenderer&&(z=J.brandInteractionRenderer.brandInteractionRenderer,m=new cy(this.api,this.layoutId,this.interactionLoggingClientData,this.gb), +m.S4(this.x3),m.init(WV("instream-user-sentiment"),z,this.macros),g.u(this,m));if(z=g.P(J,miz))if(z=g.P(z,miz))m=new iB(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,this.T,!!J.showWithoutLinkedMediaLayout),g.u(this,m),m.S4(this.Y),m.init(WV("flyout-cta"),z,this.macros);e=e&&e.videoAdDurationSeconds;J.adBadgeRenderer&&(m=J.adBadgeRenderer,z=g.P(m,Vl),z!=null?(m=new g9(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,!1),g.u(this,m),m.S4(this.K),m.init(WV("ad-badge"), +z,this.macros),this.S=m.element):(z=m.simpleAdBadgeRenderer,z==null&&(z={text:{text:"Ad",isTemplated:!1}}),m=new YE(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,!0),g.u(this,m),m.S4(this.K),m.init(WV("simple-ad-badge"),z,this.macros)));J.adPodIndex&&(z=g.P(J.adPodIndex,wuF),z!=null&&(m=new xE(this.api,this.layoutId,this.interactionLoggingClientData,this.gb),g.u(this,m),m.S4(this.K),m.init(WV("ad-pod-index"),z)));J.adDurationRemaining&&!J.showWithoutLinkedMediaLayout&&(z=J.adDurationRemaining.adDurationRemainingRenderer, +z==null&&(z={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),e=new fO(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,this.T,e,!1),g.u(this,e),e.S4(this.K),e.init(WV("ad-duration-remaining"),z,this.macros));J.adInfoRenderer&&(e=g.P(J.adInfoRenderer,MW))&&(z=new rF(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,this.element,void 0,!1),g.u(this,z),this.S!==null?this.K.insertBefore(z.element,this.S.nextSibling):z.S4(this.K), +z.init(WV("ad-info-hover-text-button"),e,this.macros));J.visitAdvertiserRenderer&&(z=g.P(J.visitAdvertiserRenderer,g.oR))&&(m=eMu(this)&&this.U?this.U:this.K)&&(e=new nO(this.api,this.layoutId,this.interactionLoggingClientData,this.gb),g.u(this,e),e.S4(m),e.init(WV("visit-advertiser"),z,this.macros),UD(e.element),z=LE(e.element),kT(e.element,z+" This link opens in new tab"));!(e=this.api.W())||g.x5(e)||e.controlsType!="3"&&!e.disableOrganicUi||(T=new jD(this.api,this.T,T,!1),T.S4(this.Gf),g.u(this, +T));J.adDisclosureBannerRenderer&&(J=g.P(J.adDisclosureBannerRenderer,lE9))&&(T=new Mo(this.api,this.layoutId,this.interactionLoggingClientData,this.gb),T.S4(this.fh),T.init(WV("ad-disclosure-banner"),J),g.u(this,T));this.api.W().C("enable_updated_html5_player_focus_style")&&g.FE(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; +hL.prototype.clear=function(){this.hide()};tL.prototype.set=function(z,J,m){m=m!==void 0?Date.now()+m:void 0;this.K.set(z,J,m)}; +tL.prototype.get=function(z){return this.K.get(z)}; +tL.prototype.remove=function(z){this.K.remove(z)};var kE=null,LO=null,QK=null,cCb=null;g.tu("yt.www.ads.eventcache.getLastCompanionData",function(){return kE}); +g.tu("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); +g.tu("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return LO}); +g.tu("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return QK}); +g.tu("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return cCb});var lXu=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);vy.prototype.handleResponse=function(z,J){if(!J)throw Error("request needs to be passed into ConsistencyService");var m,e;J=((m=J.s7.context)==null?void 0:(e=m.request)==null?void 0:e.consistencyTokenJars)||[];var T;(z=(T=z.responseContext)==null?void 0:T.consistencyTokenJar)&&this.replace(J,z)}; +vy.prototype.replace=function(z,J){z=g.y(z);for(var m=z.next();!m.done;m=z.next())delete this.K[m.value.encryptedTokenJarContents];qKz(this,J)};var By4=window.location.hostname.split(".").slice(-2).join("."),Kx;r9.getInstance=function(){Kx=g.Hq("yt.clientLocationService.instance");Kx||(Kx=new r9,g.tu("yt.clientLocationService.instance",Kx));return Kx}; +g.F=r9.prototype; +g.F.setLocationOnInnerTubeContext=function(z){z.client||(z.client={});if(this.K)z.client.locationInfo||(z.client.locationInfo={}),z.client.locationInfo.latitudeE7=Math.floor(this.K.coords.latitude*1E7),z.client.locationInfo.longitudeE7=Math.floor(this.K.coords.longitude*1E7),z.client.locationInfo.horizontalAccuracyMeters=Math.round(this.K.coords.accuracy),z.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.S||this.locationPlayabilityToken)z.client.locationPlayabilityToken=this.S|| +this.locationPlayabilityToken}; +g.F.handleResponse=function(z){var J;z=(J=z.responseContext)==null?void 0:J.locationPlayabilityToken;z!==void 0&&(this.locationPlayabilityToken=z,this.K=void 0,g.Qt("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=sx(this))&&this.localStorage.set("yt-location-playability-token",z,15552E3):g.hj("YT_CL",JSON.stringify({loctok:z}),15552E3,By4,!0))}; +g.F.clearLocationPlayabilityToken=function(z){z==="TVHTML5"?(this.localStorage=sx(this))&&this.localStorage.remove("yt-location-playability-token"):g.Vp("YT_CL");this.S=void 0;this.T!==-1&&(clearTimeout(this.T),this.T=-1)}; +g.F.getCurrentPositionFromGeolocation=function(){var z=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var J=!1,m=1E4;g.Qt("INNERTUBE_CLIENT_NAME")==="MWEB"&&(J=!0,m=15E3);return new Promise(function(e,T){navigator.geolocation.getCurrentPosition(function(E){z.K=E;e(E)},function(E){T(E)},{enableHighAccuracy:J, +maximumAge:0,timeout:m})})}; +g.F.createUnpluggedLocationInfo=function(z){var J={};z=z.coords;if(z==null?0:z.latitude)J.latitudeE7=Math.floor(z.latitude*1E7);if(z==null?0:z.longitude)J.longitudeE7=Math.floor(z.longitude*1E7);if(z==null?0:z.accuracy)J.locationRadiusMeters=Math.round(z.accuracy);return J}; +g.F.createLocationInfo=function(z){var J={};z=z.coords;if(z==null?0:z.latitude)J.latitudeE7=Math.floor(z.latitude*1E7);if(z==null?0:z.longitude)J.longitudeE7=Math.floor(z.longitude*1E7);return J};g.F=yC1.prototype;g.F.contains=function(z){return Object.prototype.hasOwnProperty.call(this.K,z)}; +g.F.get=function(z){if(this.contains(z))return this.K[z]}; +g.F.set=function(z,J){this.K[z]=J}; +g.F.IV=function(){return Object.keys(this.K)}; +g.F.remove=function(z){delete this.K[z]};JR.prototype.getModuleId=function(z){return z.serviceId.getModuleId()}; +JR.prototype.get=function(z){a:{var J=this.mappings.get(z.toString());switch(J.type){case "mapping":z=J.value;break a;case "factory":J=J.value();this.mappings.set(z.toString(),{type:"mapping",value:J});z=J;break a;default:z=Ei(J)}}return z}; +JR.prototype.registerService=function(z,J){this.mappings.set(z.toString(),{type:"mapping",value:J});return z}; +new JR;var Bx={},Nnu=(Bx.WEB_UNPLUGGED="^unplugged/",Bx.WEB_UNPLUGGED_ONBOARDING="^unplugged/",Bx.WEB_UNPLUGGED_OPS="^unplugged/",Bx.WEB_UNPLUGGED_PUBLIC="^unplugged/",Bx.WEB_CREATOR="^creator/",Bx.WEB_KIDS="^kids/",Bx.WEB_EXPERIMENTS="^experiments/",Bx.WEB_MUSIC="^music/",Bx.WEB_REMIX="^music/",Bx.WEB_MUSIC_EMBEDDED_PLAYER="^music/",Bx.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",Bx);Tr.prototype.Z=function(z,J,m){J=J===void 0?{}:J;m=m===void 0?OK:m;var e={context:g.zr(z.clickTrackingParams,!1,this.U)};var T=this.T(z);if(T){this.K(e,T,J);var E;J=g.ej(this.S());(T=(E=g.P(z.commandMetadata,g.px))==null?void 0:E.apiUrl)&&(J=T);E=Inq(Pf(J));z=Object.assign({},{command:z},void 0);e={input:E,hF:tj(E),s7:e,config:z};e.config.uA?e.config.uA.identity=m:e.config.uA={identity:m};return e}g.jk(new g.vR("Error: Failed to create Request from Command.",z))}; +g.lj.Object.defineProperties(Tr.prototype,{U:{configurable:!0,enumerable:!0,get:function(){return!1}}}); +g.p(Ep,Tr);g.p(ZI,Ep);ZI.prototype.Z=function(){return{input:"/getDatasyncIdsEndpoint",hF:tj("/getDatasyncIdsEndpoint","GET"),s7:{}}}; +ZI.prototype.S=function(){return[]}; +ZI.prototype.T=function(){}; +ZI.prototype.K=function(){};var Siv={},rCb=(Siv.GET_DATASYNC_IDS=mi(ZI),Siv);var Sq={},f_F=(Sq["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",Sq["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",Sq["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",Sq["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",Sq["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",Sq["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",Sq["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", +Sq["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",Sq["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",Sq["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",Sq["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",Sq["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",Sq["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",Sq["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",Sq["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", +Sq["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",Sq["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",Sq["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",Sq["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",Sq["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",Sq["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",Sq["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", +Sq["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",Sq.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",Sq["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",Sq["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",Sq["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",Sq["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",Sq["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",Sq["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", +Sq["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",Sq["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",Sq["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",Sq["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",Sq["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",Sq["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",Sq["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",Sq["dialog.copyright_strikes"]= +"LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",Sq["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",Sq["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",Sq.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",Sq["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",Sq["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",Sq["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",Sq["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",Sq["owner.asset_groups"]= +"LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",Sq["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",Sq["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",Sq["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",Sq["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",Sq["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",Sq["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",Sq["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",Sq["owner.delivery"]= +"LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",Sq["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",Sq["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",Sq["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",Sq["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",Sq["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",Sq["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",Sq["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",Sq["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", +Sq["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",Sq["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",Sq["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",Sq["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",Sq["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",Sq["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",Sq["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",Sq["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",Sq["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", +Sq["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",Sq["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",Sq["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",Sq["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",Sq["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",Sq["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",Sq["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",Sq["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", +Sq),fx={},Keq=(fx.auto_search="LATENCY_ACTION_AUTO_SEARCH",fx.ad_to_ad="LATENCY_ACTION_AD_TO_AD",fx.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",fx.app_startup="LATENCY_ACTION_APP_STARTUP",fx.browse="LATENCY_ACTION_BROWSE",fx.cast_splash="LATENCY_ACTION_CAST_SPLASH",fx.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",fx.channels="LATENCY_ACTION_CHANNELS",fx.chips="LATENCY_ACTION_CHIPS",fx.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",fx.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", +fx.editor="LATENCY_ACTION_EDITOR",fx.embed="LATENCY_ACTION_EMBED",fx.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",fx.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",fx.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",fx.explore="LATENCY_ACTION_EXPLORE",fx.favorites="LATENCY_ACTION_FAVORITES",fx.home="LATENCY_ACTION_HOME",fx.inboarding="LATENCY_ACTION_INBOARDING",fx.landing="LATENCY_ACTION_LANDING",fx.library="LATENCY_ACTION_LIBRARY",fx.live= +"LATENCY_ACTION_LIVE",fx.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",fx.management="LATENCY_ACTION_MANAGEMENT",fx.mini_app="LATENCY_ACTION_MINI_APP_PLAY",fx.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",fx.onboarding="LATENCY_ACTION_ONBOARDING",fx.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",fx.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",fx.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",fx.player_att="LATENCY_ACTION_PLAYER_ATTESTATION", +fx.prebuffer="LATENCY_ACTION_PREBUFFER",fx.prefetch="LATENCY_ACTION_PREFETCH",fx.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",fx.profile_switcher="LATENCY_ACTION_LOGIN",fx.projects="LATENCY_ACTION_PROJECTS",fx.reel_watch="LATENCY_ACTION_REEL_WATCH",fx.results="LATENCY_ACTION_RESULTS",fx.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",fx.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",fx.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",fx.review="LATENCY_ACTION_REVIEW",fx.search_overview_answer= +"LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",fx.search_ui="LATENCY_ACTION_SEARCH_UI",fx.search_suggest="LATENCY_ACTION_SUGGEST",fx.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",fx.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",fx.seek="LATENCY_ACTION_PLAYER_SEEK",fx.settings="LATENCY_ACTION_SETTINGS",fx.store="LATENCY_ACTION_STORE",fx.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",fx.tenx="LATENCY_ACTION_TENX",fx.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",fx.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD", +fx.watch="LATENCY_ACTION_WATCH",fx.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",fx["watch,watch7"]="LATENCY_ACTION_WATCH",fx["watch,watch7_html5"]="LATENCY_ACTION_WATCH",fx["watch,watch7ad"]="LATENCY_ACTION_WATCH",fx["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",fx.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",fx.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",fx.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",fx.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",fx.networkless_performance= +"LATENCY_ACTION_NETWORKLESS_PERFORMANCE",fx.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",fx.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",fx.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",fx);Object.assign(Keq,f_F);g.p(KM,pT);var ufb=new ye("aft-recorded",KM);var DsS=g.VR.ytLoggingGelSequenceIdObj_||{};g.tu("ytLoggingGelSequenceIdObj_",DsS);var fM=g.VR.ytLoggingLatencyUsageStats_||{};g.tu("ytLoggingLatencyUsageStats_",fM);Bh.prototype.tick=function(z,J,m,e){DI(this,"tick_"+z+"_"+J)||g.qq("latencyActionTicked",{tickName:z,clientActionNonce:J},{timestamp:m,cttAuthInfo:e})}; +Bh.prototype.info=function(z,J,m){var e=Object.keys(z).join("");DI(this,"info_"+e+"_"+J)||(z=Object.assign({},z),z.clientActionNonce=J,g.qq("latencyActionInfo",z,{cttAuthInfo:m}))}; +Bh.prototype.jspbInfo=function(z,J,m){for(var e="",T=0;T=T.length?(J.append(T),z-=T.length):z?(J.append(new Uint8Array(T.buffer,T.byteOffset,z)),m.append(new Uint8Array(T.buffer,T.byteOffset+z,T.length-z)),z=0):m.append(T);return{NJ:J,Li:m}}; +g.F.isFocused=function(z){return z>=this.LA&&z=64&&(this.Y.set(z.subarray(0,64-this.T),this.T),J=64-this.T,this.T=0,hyu(this,this.Y,0));for(;J+64<=m;J+=64)hyu(this,z,J);J=this.start&&(z=2&&m.ssdaiAdsConfig&&IU("Unexpected ad placement renderers length",z.slot,null,{length:e.length});var T;((T=m.adSlots)==null?0:T.some(function(E){var Z,c;return((Z=g.P(E,ur))==null?void 0:(c=Z.adSlotMetadata)==null?void 0:c.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||e.some(function(E){var Z,c,W,l; +return!!((Z=E.renderer)==null?0:(c=Z.linearAdSequenceRenderer)==null?0:(W=c.linearAds)==null?0:W.length)||!((l=E.renderer)==null||!l.instreamVideoAdRenderer)})||cJq(z)})}; +c6.prototype.k9=function(){LK4(this.K)};W6.prototype.Ld=function(){var z=this;kMb(this.T,function(){var J=FB(z.slot.clientMetadata,"metadata_type_ad_break_request_data");return J.cueProcessedMs?z.K.get().fetch({WO:J.getAdBreakUrl,LK:new g.Ec(J.Sn,J.xG),cueProcessedMs:J.cueProcessedMs}):z.K.get().fetch({WO:J.getAdBreakUrl,LK:new g.Ec(J.Sn,J.xG)})})}; +W6.prototype.k9=function(){LK4(this.T)};lw.prototype.Ld=function(){var z=this.slot.clientMetadata,J,m=(J=this.slot.fulfilledLayout)!=null?J:FB(z,"metadata_type_fulfilled_layout");Bfu(this.callback,this.slot,m)}; +lw.prototype.k9=function(){G_(this.callback,this.slot,new L("Got CancelSlotFulfilling request for "+this.slot.slotType+" in DirectFulfillmentAdapter.",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_FULFILLMENT_CANCELLATION_REQUEST"),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")};qQ.prototype.build=function(z,J){return J.fulfilledLayout||wo(J,{El:["metadata_type_fulfilled_layout"]})?new lw(z,J):this.S(z,J)};g.p(IP,qQ); +IP.prototype.S=function(z,J){if(wo(J,{El:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new c6(z,J,this.K,this.T,this.YP,this.Kh,this.Zn,this.Dn,this.UD);if(wo(J,{El:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new W6(z,J,this.K,this.T,this.YP,this.Kh);throw new L("Unsupported slot with type: "+J.slotType+" and client metadata: "+iU(J.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.p(Oc,qQ);Oc.prototype.S=function(z,J){throw new L("Unsupported slot with type: "+J.slotType+" and client metadata: "+iU(J.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.F=W44.prototype;g.F.FM=function(){return this.slot}; +g.F.XW=function(){return this.layout}; +g.F.init=function(){}; +g.F.release=function(){}; +g.F.startRendering=function(z){if(z.layoutId!==this.layout.layoutId)this.callback.GG(this.slot,z,new Eq("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED");else{var J=FB(z.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.zS(this.slot,z),Kgj(this.S, +this.slot,J)):IU("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,z)}}; +g.F.Do=function(z,J){z.layoutId!==this.layout.layoutId?this.callback.GG(this.slot,z,new Eq("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):(this.callback.QQ(this.slot,z,J),wVq(this),qgz(this))};g.p(X8,g.wF);g.F=X8.prototype;g.F.FM=function(){return this.T.slot}; +g.F.XW=function(){return this.T.layout}; +g.F.init=function(){this.S.get().addListener(this)}; +g.F.release=function(){this.S.get().removeListener(this);this.dispose()}; +g.F.sY=function(){}; +g.F.Bc=function(){}; +g.F.OY=function(){}; +g.F.X$=function(){}; +g.F.startRendering=function(z){var J=this;Gs(this.T,z,function(){return void J.B_()})}; +g.F.B_=function(){this.S.get().B_(this.K)}; +g.F.Do=function(z,J){var m=this;Gs(this.T,z,function(){var e=m.S.get();HVj(e,m.K,3);m.K=[];m.callback.QQ(m.slot,z,J)})}; +g.F.oy=function(){this.S.mF()||this.S.get().removeListener(this);g.wF.prototype.oy.call(this)}; +g.lj.Object.defineProperties(X8.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.T.slot}}, +layout:{configurable:!0,enumerable:!0,get:function(){return this.T.layout}}});ff.prototype.YE=function(z,J){J=J===void 0?!1:J;var m=(this.S.get(z)||[]).concat();if(J=J&&pVb(z)){var e=this.S.get(J);e&&m.push.apply(m,g.X(e))}$P(this,z,m);this.K.add(z);J&&this.K.add(J)}; +ff.prototype.jE=function(z,J){J=J===void 0?!1:J;if(!this.K.has(z)){var m=J&&pVb(z);m&&(J=!this.K.has(m));this.YE(z,J)}};g.p(GZj,lY);g.p(oP,X8);g.F=oP.prototype;g.F.Ju=function(z,J){aP("ads-engagement-panel-layout",z,this.Y.get().CB,this.Zn.get(),this.U,this.Z,this.FM(),this.XW(),J)}; +g.F.startRendering=function(z){YP(this.FW,this.FM(),this.XW(),g.P(this.XW().renderingContent,F3),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(J,m,e,T,E){return new GZj(J,m,e,T,E)},this.K); +X8.prototype.startRendering.call(this,z)}; +g.F.zS=function(z,J){this.Z===J.layoutId&&(this.U===null?this.U=this.Zn.get().gG():IU("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; +g.F.QQ=function(){}; +g.F.Ro=function(){}; +g.F.HK=function(){}; +g.F.dG=function(){}; +g.F.Np=function(){}; +g.F.bF=function(){}; +g.F.z2=function(){}; +g.F.yL=function(){}; +g.F.hW=function(){}; +g.F.qL=function(){}; +g.F.y$=function(){}; +g.F.oy=function(){y6(this.vr(),this);X8.prototype.oy.call(this)};g.p(nCz,lY);g.p(jo,X8);g.F=jo.prototype;g.F.Ju=function(z,J){aP("banner-image",z,this.Y.get().CB,this.Zn.get(),this.U,this.Z,this.FM(),this.XW(),J)}; +g.F.startRendering=function(z){YP(this.FW,this.FM(),this.XW(),g.P(this.XW().renderingContent,EU),this.callback,"metadata_type_banner_image_layout_view_model",function(J,m,e,T,E){return new nCz(J,m,e,T,E)},this.K); +X8.prototype.startRendering.call(this,z)}; +g.F.zS=function(z,J){this.Z===J.layoutId&&(this.U===null?this.U=this.Zn.get().gG():IU("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; +g.F.QQ=function(){}; +g.F.Ro=function(){}; +g.F.HK=function(){}; +g.F.dG=function(){}; +g.F.Np=function(){}; +g.F.bF=function(){}; +g.F.z2=function(){}; +g.F.yL=function(){}; +g.F.hW=function(){}; +g.F.qL=function(){}; +g.F.y$=function(){}; +g.F.oy=function(){y6(this.vr(),this);X8.prototype.oy.call(this)};g.p(hl,lY);g.p(uw,X8);g.F=uw.prototype;g.F.Ju=function(z,J){aP("action-companion",z,this.Y.get().CB,this.Zn.get(),this.U,this.Z,this.FM(),this.XW(),J)}; +g.F.startRendering=function(z){YP(this.FW,this.FM(),this.XW(),g.P(this.XW().renderingContent,mZ),this.callback,"metadata_type_action_companion_ad_renderer",function(J,m,e,T,E){return new hl(J,m,e,T,E)},this.K); +X8.prototype.startRendering.call(this,z)}; +g.F.zS=function(z,J){J.layoutId===this.layout.layoutId?this.FW.jE("impression"):this.Z===J.layoutId&&(this.U===null?this.U=this.Zn.get().gG():IU("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; +g.F.QQ=function(){}; +g.F.Ro=function(){}; +g.F.HK=function(){}; +g.F.dG=function(){}; +g.F.Np=function(){}; +g.F.bF=function(){}; +g.F.z2=function(){}; +g.F.yL=function(){}; +g.F.hW=function(){}; +g.F.qL=function(){}; +g.F.y$=function(){}; +g.F.oy=function(){y6(this.vr(),this);X8.prototype.oy.call(this)};g.p(aNq,lY);g.p(VY,X8);g.F=VY.prototype;g.F.Ju=function(z,J){aP("image-companion",z,this.Y.get().CB,this.Zn.get(),this.U,this.Z,this.FM(),this.XW(),J)}; +g.F.startRendering=function(z){YP(this.FW,this.FM(),this.XW(),g.P(this.XW().renderingContent,ev),this.callback,"metadata_type_image_companion_ad_renderer",function(J,m,e,T,E){return new aNq(J,m,e,T,E)},this.K); +X8.prototype.startRendering.call(this,z)}; +g.F.zS=function(z,J){J.layoutId===this.layout.layoutId?this.FW.jE("impression"):this.Z===J.layoutId&&(this.U===null?this.U=this.Zn.get().gG():IU("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; +g.F.QQ=function(){}; +g.F.Ro=function(){}; +g.F.HK=function(){}; +g.F.dG=function(){}; +g.F.Np=function(){}; +g.F.bF=function(){}; +g.F.z2=function(){}; +g.F.yL=function(){}; +g.F.hW=function(){}; +g.F.qL=function(){}; +g.F.y$=function(){}; +g.F.oy=function(){y6(this.vr(),this);X8.prototype.oy.call(this)};g.p(BFq,lY);g.p(P6,X8);g.F=P6.prototype;g.F.Ju=function(z,J){aP("shopping-companion",z,this.Y.get().CB,this.Zn.get(),this.U,this.Z,this.FM(),this.XW(),J)}; +g.F.startRendering=function(z){YP(this.FW,this.FM(),this.XW(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(J,m,e,T,E){return new BFq(J,m,e,T,E)},this.K); +X8.prototype.startRendering.call(this,z)}; +g.F.zS=function(z,J){J.layoutId===this.layout.layoutId?this.FW.jE("impression"):this.Z===J.layoutId&&(this.U===null?this.U=this.Zn.get().gG():IU("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; +g.F.QQ=function(){}; +g.F.Ro=function(){}; +g.F.HK=function(){}; +g.F.dG=function(){}; +g.F.Np=function(){}; +g.F.bF=function(){}; +g.F.z2=function(){}; +g.F.yL=function(){}; +g.F.hW=function(){}; +g.F.qL=function(){}; +g.F.y$=function(){}; +g.F.oy=function(){y6(this.vr(),this);X8.prototype.oy.call(this)};g.p(H6,X8);g.F=H6.prototype;g.F.startRendering=function(z){YP(this.FW,this.FM(),this.XW(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(J,m,e,T,E){return new hl(J,m,e,T,E)},this.K); +X8.prototype.startRendering.call(this,z)}; +g.F.zS=function(){}; +g.F.QQ=function(){}; +g.F.Ro=function(){}; +g.F.HK=function(){}; +g.F.dG=function(){}; +g.F.Np=function(){}; +g.F.bF=function(){}; +g.F.z2=function(){}; +g.F.yL=function(){}; +g.F.hW=function(){}; +g.F.qL=function(){}; +g.F.y$=function(){}; +g.F.oy=function(){y6(this.vr(),this);X8.prototype.oy.call(this)}; +g.F.Ju=function(){};g.F=gCu.prototype;g.F.FM=function(){return this.slot}; +g.F.XW=function(){return this.layout}; +g.F.init=function(){this.Dn.get().addListener(this);this.Dn.get().t1.push(this);var z=FB(this.layout.clientMetadata,"metadata_type_video_length_seconds"),J=FB(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");Kf(this.layout.wE)&&ri(this.xu.get(),this.layout.layoutId,{s6:J,KU:z,listener:this})}; +g.F.release=function(){this.Dn.get().removeListener(this);j8u(this.Dn.get(),this);Kf(this.layout.wE)&&zW(this.xu.get(),this.layout.layoutId)}; +g.F.startRendering=function(z){this.callback.zS(this.slot,z)}; +g.F.Do=function(z,J){WRj(this.Kh.get())&&!this.K&&(this.FW.jE("abandon"),this.K=!0);this.callback.QQ(this.slot,z,J)}; +g.F.fA=function(z){switch(z.id){case "part2viewed":this.FW.jE("start");this.FW.jE("impression");break;case "videoplaytime25":this.FW.jE("first_quartile");break;case "videoplaytime50":this.FW.jE("midpoint");break;case "videoplaytime75":this.FW.jE("third_quartile");break;case "videoplaytime100":WRj(this.Kh.get())?this.K||(this.FW.jE("complete"),this.K=!0):this.FW.jE("complete");Al(this.FW)&&xP(this.FW,Infinity,!0);lwq(this.Kh.get())&&tl(this.T,Infinity,!0);break;case "engagedview":Al(this.FW)||this.FW.jE("progress"); +break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:IU("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; +g.F.onVolumeChange=function(){}; +g.F.Qn=function(){}; +g.F.s9=function(){}; +g.F.vz=function(){}; +g.F.onFullscreenToggled=function(){}; +g.F.Hm=function(){}; +g.F.ly=function(){}; +g.F.M5=function(z){lwq(this.Kh.get())&&tl(this.T,z*1E3,!1);Al(this.FW)&&xP(this.FW,z*1E3,!1)}; +g.F.oF=function(){}; +g.F.EM=function(){this.FW.jE("active_view_measurable")}; +g.F.CL=function(){this.FW.jE("active_view_viewable")}; +g.F.hk=function(){this.FW.jE("active_view_fully_viewable_audible_half_duration")}; +g.F.Z3=function(){this.FW.jE("audio_measurable")}; +g.F.m2=function(){this.FW.jE("audio_audible")};g.p(Uc,X8);g.F=Uc.prototype;g.F.init=function(){X8.prototype.init.call(this);var z=FB(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),J={adsClientData:this.layout.qd};this.K.push(new CO(z,this.layout.layoutId,FB(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),J,!0))}; +g.F.To=function(){this.U||this.Dn.get().resumeVideo(1)}; +g.F.startRendering=function(z){X8.prototype.startRendering.call(this,z);Fi(this.Dn.get(),"ad-showing");this.callback.zS(this.slot,z);this.Z.rO=this}; +g.F.Do=function(z,J){X8.prototype.Do.call(this,z,J);iT(this.Dn.get(),"ad-showing");U_(this.Z,this)}; +g.F.Ju=function(z){switch(z){case "ad-info-icon-button":(this.U=this.Dn.get().Mv(1))||this.Dn.get().pauseVideo();break;case "visit-advertiser":this.Dn.get().pauseVideo()}}; +g.F.oy=function(){X8.prototype.oy.call(this)};g.p(RP,lY);g.p(kP,X8);g.F=kP.prototype;g.F.startRendering=function(z){YP(this.FW,this.FM(),this.XW(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(J,m,e,T,E){return new RP(J,m,e,T,E)},this.K); +X8.prototype.startRendering.call(this,z)}; +g.F.zS=function(){}; +g.F.QQ=function(){}; +g.F.Ro=function(){}; +g.F.HK=function(){}; +g.F.dG=function(){}; +g.F.Np=function(){}; +g.F.bF=function(){}; +g.F.z2=function(){}; +g.F.yL=function(){}; +g.F.hW=function(){}; +g.F.qL=function(){}; +g.F.y$=function(){}; +g.F.oy=function(){y6(this.vr(),this);X8.prototype.oy.call(this)}; +g.F.Ju=function(){};g.p(Lf,lY);g.p(QY,X8);QY.prototype.init=function(){X8.prototype.init.call(this);this.K.push(new Lf(g.P(this.layout.renderingContent,n6),this.layout.layoutId,{adsClientData:this.layout.qd}))}; +QY.prototype.Ju=function(){DA(this.U.get(),this.Z)&&Cf(this.Zn.get(),3)}; +QY.prototype.startRendering=function(z){X8.prototype.startRendering.call(this,z);this.callback.zS(this.slot,z)}; +QY.prototype.oy=function(){X8.prototype.oy.call(this)};g.p(v6,lY);g.p(sc,X8);sc.prototype.init=function(){X8.prototype.init.call(this);var z=g.P(this.layout.renderingContent,lO)||FB(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),J=nf(this.FW);this.K.push(new v6(z,J,this.layout.layoutId,{adsClientData:this.layout.qd},!0,!0))}; +sc.prototype.startRendering=function(z){X8.prototype.startRendering.call(this,z);this.callback.zS(this.slot,z)}; +sc.prototype.Ju=function(z,J){if(J===this.layout.layoutId)switch(z){case "skip-button":var m;(z=(m=FB(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:m.current)&&z.aX(this.FM(),this.layout)}}; +sc.prototype.oy=function(){X8.prototype.oy.call(this)};zk.prototype.build=function(z,J,m,e){if(ro(e,{El:["metadata_type_ad_break_response_data"],wL:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new W44(z,m,e,this.T,this.S,this.K);throw new Eq("Unsupported layout with type: "+e.layoutType+" and client metadata: "+iU(e.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.p(AJu,lY);g.p(J7,X8);g.F=J7.prototype;g.F.Ju=function(z,J){aP("ads-engagement-panel",z,this.Y.get().CB,this.Zn.get(),this.U,this.Z,this.FM(),this.XW(),J)}; +g.F.startRendering=function(z){YP(this.FW,this.FM(),this.XW(),g.P(this.XW().renderingContent,TA),this.callback,"metadata_type_ads_engagement_panel_renderer",function(J,m,e,T,E){return new AJu(J,m,e,T,E)},this.K); +X8.prototype.startRendering.call(this,z)}; +g.F.zS=function(z,J){J.layoutId===this.layout.layoutId?this.FW.jE("impression"):this.Z===J.layoutId&&(this.U===null?this.U=this.Zn.get().gG():IU("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; +g.F.QQ=function(){}; +g.F.Ro=function(){}; +g.F.HK=function(){}; +g.F.dG=function(){}; +g.F.Np=function(){}; +g.F.bF=function(){}; +g.F.z2=function(){}; +g.F.yL=function(){}; +g.F.hW=function(){}; +g.F.qL=function(){}; +g.F.y$=function(){}; +g.F.oy=function(){y6(this.vr(),this);X8.prototype.oy.call(this)};g.p(ms,X8);g.F=ms.prototype;g.F.Ju=function(z,J){aP("top-banner-image-text-icon-buttoned",z,this.Y.get().CB,this.Zn.get(),this.U,this.Z,this.FM(),this.XW(),J)}; +g.F.startRendering=function(z){YP(this.FW,this.FM(),this.XW(),g.P(this.XW().renderingContent,Zg),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(J,m,e,T,E){return new RP(J,m,e,T,E)},this.K); +X8.prototype.startRendering.call(this,z)}; +g.F.zS=function(z,J){this.Z===J.layoutId&&(this.U===null?this.U=this.Zn.get().gG():IU("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; +g.F.QQ=function(){}; +g.F.Ro=function(){}; +g.F.HK=function(){}; +g.F.dG=function(){}; +g.F.Np=function(){}; +g.F.bF=function(){}; +g.F.z2=function(){}; +g.F.yL=function(){}; +g.F.hW=function(){}; +g.F.qL=function(){}; +g.F.y$=function(){}; +g.F.oy=function(){y6(this.vr(),this);X8.prototype.oy.call(this)};hAf.prototype.build=function(z,J,m,e){if(ro(e,oCu())||g.P(e.renderingContent,TA)!==void 0)return new J7(z,m,e,this.ww,this.Zn,this.vr,this.xu,this.K);if(ro(e,CYu())||g.P(e.renderingContent,mZ)!==void 0)return new uw(z,m,e,this.ww,this.Zn,this.vr,this.xu,this.K);if(ro(e,K4u())||g.P(e.renderingContent,ev)!==void 0)return new VY(z,m,e,this.ww,this.Zn,this.vr,this.xu,this.K);if(ro(e,Sgu()))return new P6(z,m,e,this.ww,this.Zn,this.vr,this.xu,this.K);if(ro(e,$3j()))return new H6(z,m,e,this.ww,this.Zn,this.vr, +this.xu,this.K);if(ro(e,YgR())||g.P(e.renderingContent,EU)!==void 0)return new jo(z,m,e,this.ww,this.Zn,this.vr,this.xu,this.K);if(ro(e,j0j())||g.P(e.renderingContent,Zg)!==void 0)return new ms(z,m,e,this.ww,this.Zn,this.vr,this.xu,this.K);if(ro(e,x3E()))return new kP(z,m,e,this.ww,this.Zn,this.vr,this.xu,this.K);if(ro(e,XVs())||g.P(e.renderingContent,F3)!==void 0)return new oP(z,m,e,this.ww,this.Zn,this.vr,this.xu,this.K);throw new Eq("Unsupported layout with type: "+e.layoutType+" and client metadata: "+ +iU(e.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};ulq.prototype.build=function(z,J,m,e){if(ro(e,{El:["metadata_type_linked_player_bytes_layout_id"],wL:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new QY(z,m,e,this.ww,this.Zn,this.K);throw new Eq("Unsupported layout with type: "+e.layoutType+" and client metadata: "+iU(e.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.F=Vb1.prototype;g.F.FM=function(){return this.slot}; +g.F.XW=function(){return this.layout}; +g.F.init=function(){}; +g.F.release=function(){}; +g.F.startRendering=function(z){z.layoutId!==this.layout.layoutId?this.callback.GG(this.slot,z,new Eq("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.callback.zS(this.slot,z),this.FW.jE("impression"),kk(this.vX,z,"normal"))}; +g.F.Do=function(z,J){z.layoutId!==this.layout.layoutId?this.callback.GG(this.slot,z,new Eq("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):this.callback.QQ(this.slot,z,J)};g.F=tbq.prototype;g.F.FM=function(){return this.slot}; +g.F.XW=function(){return this.layout}; +g.F.init=function(){}; +g.F.release=function(){}; +g.F.startRendering=function(z){z.layoutId!==this.layout.layoutId?this.callback.GG(this.slot,z,new Eq("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.callback.zS(this.slot,z),this.FW.jE("impression"),kk(this.vX,z,"normal"))}; +g.F.Do=function(z,J){z.layoutId!==this.layout.layoutId?this.callback.GG(this.slot,z,new Eq("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):this.callback.QQ(this.slot,z,J)};el.prototype.build=function(z,J,m,e){if(!this.Kh.get().G.W().C("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(ro(e,PY4()))return new Vb1(z,m,e,this.Zn,this.vX)}else if(ro(e,{El:[],wL:["LAYOUT_TYPE_FORECASTING"]}))return new tbq(z,m,e,this.Zn,this.vX);throw new Eq("Unsupported layout with type: "+e.layoutType+" and client metadata: "+iU(e.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.p(RAb,lY);g.p(Tk,X8);g.F=Tk.prototype;g.F.init=function(){X8.prototype.init.call(this);var z=g.P(this.layout.renderingContent,WQ)||FB(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),J={adsClientData:this.layout.qd};this.K.push(new RAb(z,FB(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,J))}; +g.F.To=function(){this.U||this.Dn.get().resumeVideo(2)}; +g.F.startRendering=function(z){X8.prototype.startRendering.call(this,z);this.callback.zS(this.slot,z);this.Z.rO=this}; +g.F.Do=function(z,J){X8.prototype.Do.call(this,z,J);U_(this.Z,this)}; +g.F.Ju=function(z){if(DA(this.Y.get(),this.V))switch(z){case "visit-advertiser-link":Cf(this.Zn.get(),3)}switch(z){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.U||this.Dn.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.U=this.Dn.get().Mv(2))||this.Dn.get().pauseVideo();break;case "visit-advertiser-link":this.Dn.get().pauseVideo();kZR(this).wZ();break;case "skip-button":if(z=kZR(this), +this.layout.renderingContent&&!mG(this.layout.clientMetadata,"metadata_type_dai")||!z.Rl){var J;(z=(J=FB(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:J.current)&&z.aX(this.FM(),this.layout)}else IU("Requesting to skip by LegacyPlayerBytes when components enabled"),z.qN(this.FM(),this.layout)}}; +g.F.oy=function(){X8.prototype.oy.call(this)};g.p(Ee,X8);g.F=Ee.prototype;g.F.init=function(){X8.prototype.init.call(this);var z=g.P(this.layout.renderingContent,cQ)||FB(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),J={adsClientData:this.layout.qd},m;(m=!!this.layout.renderingContent)||(m=!Zk(this).Rl);this.K.push(new CO(z,this.layout.layoutId,FB(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),J,m))}; +g.F.To=function(){this.U||this.Dn.get().resumeVideo(2)}; +g.F.startRendering=function(z){X8.prototype.startRendering.call(this,z);this.callback.zS(this.slot,z);this.Z.rO=this}; +g.F.Do=function(z,J){X8.prototype.Do.call(this,z,J);U_(this.Z,this)}; +g.F.Ju=function(z){if(DA(this.Y.get(),this.V))switch(z){case "visit-advertiser":Cf(this.Zn.get(),3)}switch(z){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.U||this.Dn.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.U=this.Dn.get().Mv(2))||this.Dn.get().pauseVideo();break;case "visit-advertiser":this.Dn.get().pauseVideo();Zk(this).wZ();break;case "skip-button":if(z=Zk(this),this.layout.renderingContent&& +!mG(this.layout.clientMetadata,"metadata_type_dai")||!z.Rl){var J;(z=(J=FB(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:J.current)&&z.aX(this.FM(),this.layout)}else IU("Requesting to skip by LegacyPlayerBytes"),z.qN(this.FM(),this.layout)}}; +g.F.oy=function(){X8.prototype.oy.call(this)};g.p(Q0b,lY);g.p(FQ,X8);g.F=FQ.prototype;g.F.startRendering=function(z){var J=this;Gs(this.T,z,function(){J.K.push(new Q0b(FB(J.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),z.layoutId,z.qd));J.B_();J.callback.zS(J.slot,z);g.R(so(J.Dn.get(),1),512)&&J.callback.GG(J.FM(),J.XW(),new Eq("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; +g.F.ly=function(){}; +g.F.Hm=function(z){if(z.state.isError()){var J;this.callback.GG(this.FM(),this.XW(),new Eq("A player error happened during adNotify",{playerErrorCode:(J=z.state.Io)==null?void 0:J.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; +g.F.onFullscreenToggled=function(){}; +g.F.s9=function(){}; +g.F.vz=function(){}; +g.F.Qn=function(){}; +g.F.onVolumeChange=function(){}; +g.F.fA=function(){}; +g.F.oF=function(){}; +g.F.Ju=function(){};g.p(s0u,lY);g.p(iO,X8);iO.prototype.init=function(){X8.prototype.init.call(this);var z=g.P(this.layout.renderingContent,wS),J=nf(this.FW);this.K.push(new s0u(z,J,this.layout.layoutId,{adsClientData:this.layout.qd}))}; +iO.prototype.startRendering=function(z){X8.prototype.startRendering.call(this,z);this.callback.zS(this.slot,z)}; +iO.prototype.Ju=function(z,J){if(J===this.layout.layoutId)switch(z){case "skip-button":var m;(z=(m=FB(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:m.current)&&z.aX(this.FM(),this.layout)}}; +iO.prototype.oy=function(){X8.prototype.oy.call(this)};rJE.prototype.build=function(z,J,m,e){if(z=qO(z,m,e,this.ww,this.Dn,this.Zn,this.T,this.K,this.Kh))return z;throw new Eq("Unsupported layout with type: "+e.layoutType+" and client metadata: "+iU(e.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.F=Oe.prototype;g.F.FM=function(){return this.slot}; +g.F.XW=function(){return this.layout}; +g.F.init=function(){this.Dn.get().addListener(this);this.Dn.get().t1.push(this);var z=this.layout.renderingContent?N4(this.Ch.get(),1).DC/1E3:FB(this.layout.clientMetadata,"metadata_type_video_length_seconds"),J=g.P(this.layout.renderingContent,NW),m=J?B6(J.pings):FB(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");J=J?Oyq(J.pings):FB(this.layout.clientMetadata,"metadata_type_active_view_identifier");Kf(this.layout.wE)&&ri(this.xu.get(),this.layout.layoutId,{s6:m,KU:z,listener:this, +QO:J})}; +g.F.release=function(){this.Dn.get().removeListener(this);j8u(this.Dn.get(),this);Kf(this.layout.wE)&&zW(this.xu.get(),this.layout.layoutId)}; +g.F.startRendering=function(z){this.callback.zS(this.slot,z)}; +g.F.Do=function(z,J){pG(this,"abandon");this.callback.QQ(this.slot,z,J)}; +g.F.fA=function(z){switch(z.id){case "part2viewed":this.FW.jE("start");this.FW.jE("impression");break;case "videoplaytime25":this.FW.jE("first_quartile");break;case "videoplaytime50":this.FW.jE("midpoint");break;case "videoplaytime75":this.FW.jE("third_quartile");break;case "videoplaytime100":pG(this,"complete");Al(this.FW)&&xP(this.FW,Infinity,!0);break;case "engagedview":Al(this.FW)||this.FW.jE("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; +default:IU("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; +g.F.onVolumeChange=function(){}; +g.F.Qn=function(){}; +g.F.s9=function(){}; +g.F.vz=function(){}; +g.F.onFullscreenToggled=function(){}; +g.F.Hm=function(z){this.K||(g.yK(z,4)&&!g.yK(z,2)?go(this.FW,"pause"):pO(z,4)<0&&!(pO(z,2)<0)&&go(this.FW,"resume"))}; +g.F.ly=function(){}; +g.F.M5=function(z){Al(this.FW)&&xP(this.FW,z*1E3,!1)}; +g.F.oF=function(){pG(this,"swipe")}; +g.F.EM=function(){this.FW.jE("active_view_measurable")}; +g.F.CL=function(){this.FW.jE("active_view_viewable")}; +g.F.hk=function(){this.FW.jE("active_view_fully_viewable_audible_half_duration")}; +g.F.Z3=function(){this.FW.jE("audio_measurable")}; +g.F.m2=function(){this.FW.jE("audio_audible")};zo4.prototype.build=function(z,J,m,e){if(m.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.P(e.renderingContent,NW)!==void 0)return new Oe(z,m,e,this.Dn,this.Zn,this.Kh,this.xu,this.Ch);J=["metadata_type_ad_placement_config"];for(var T=g.y(D3()),E=T.next();!E.done;E=T.next())J.push(E.value);if(ro(e,{El:J,wL:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return m.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new Oe(z,m,e,this.Dn,this.Zn,this.Kh,this.xu,this.Ch):new gCu(z,m,e,this.Dn,this.Zn, +this.EC,this.Kh,this.xu);throw new Eq("Unsupported layout with type: "+e.layoutType+" and client metadata: "+iU(e.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var XQ={contentCpn:"",pS:new Map};Wkq.prototype.fq=function(z,J){var m={};J=Object.assign({},J,(m.cc=this.md.vU(),m));this.md.G.ph(z,J)};var Lrz,x8; +Lrz={Pyy:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",WAf:"AUTHENTICATION_MALFORMED",A84:"AUTHENTICATION_MISSING",ugz:"BAD_REQUEST",By6:"CAST_SESSION_DEVICE_MISMATCHED",c8F:"CAST_SESSION_VIDEO_MISMATCHED",r8h:"CAST_TOKEN_EXPIRED",sib:"CAST_TOKEN_FAILED",dWz:"CAST_TOKEN_MALFORMED",z2z:"CGI_PARAMS_MALFORMED",yJF:"CGI_PARAMS_MISSING",iA2:"DEVICE_FALLBACK",rJf:"GENERIC_WITH_LINK_AND_CPN",sFz:"ERROR_HDCP",dh1:"LICENSE",y76:"VIDEO_UNAVAILABLE",l_1:"FORMAT_UNAVAILABLE",Tq1:"GEO_FAILURE", +C3b:"HTML5_AUDIO_RENDERER_ERROR",VgD:"GENERIC_WITHOUT_LINK",J7D:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",Mgz:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",Ly6:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",qeD:"HTML5_SPS_UMP_STATUS_REJECTED",OVi:"INVALID_DRM_MESSAGE",MxF:"PURCHASE_NOT_FOUND",LSn:"PURCHASE_REFUNDED",glW:"RENTAL_EXPIRED",BJh:"RETRYABLE_ERROR",pux:"SERVER_ERROR",egn:"SIGNATURE_EXPIRED",IO2:"STOPPED_BY_ANOTHER_PLAYBACK",G8W:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",aOn:"STREAMING_NOT_ALLOWED", +Yix:"STREAM_LICENSE_NOT_FOUND",Vcn:"TOO_MANY_REQUESTS",Jzy:"TOO_MANY_REQUESTS_WITH_LINK",Mcy:"TOO_MANY_STREAMS_PER_ENTITLEMENT",LW3:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",pt3:"VIDEO_FORBIDDEN",kz6:"VIDEO_NOT_FOUND",bBi:"BROWSER_OR_EXTENSION_ERROR"};x8={}; +g.jK=(x8.ALREADY_PINNED_ON_A_DEVICE="This video has already been downloaded on the maximum number of devices allowed by the copyright holder. Before you can play the video here, it needs to be unpinned on another device.",x8.DEVICE_FALLBACK="Sorry, this video is not available on this device.",x8.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",x8.LICENSE="Sorry, there was an error licensing this video.",x8.VIDEO_UNAVAILABLE= +"Video unavailable",x8.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",x8.GEO_FAILURE="This video isn't available in your country.",x8.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",x8.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",x8.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",x8.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="Your browser does not currently recognize any of the video formats available. $BEGIN_LINKClick here to visit our frequently asked questions about HTML5 video.$END_LINK", +x8.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",x8.HTML5_SPS_UMP_STATUS_REJECTED="Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",x8.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",x8.PURCHASE_NOT_FOUND="This video requires payment.",x8.PURCHASE_REFUNDED="This video's purchase has been refunded.",x8.RENTAL_EXPIRED="This video's rental has expired.",x8.CAST_SESSION_DEVICE_MISMATCHED= +"The device in the cast session doesn't match the requested one.",x8.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",x8.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",x8.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",x8.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",x8.SERVER_ERROR="There was an internal server error. Please try again later.",x8.STOPPED_BY_ANOTHER_PLAYBACK= +"Your account is playing this video in another location. Please reload this page to resume watching.",x8.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",x8.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",x8.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",x8.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",x8.TOO_MANY_REQUESTS="Please log in to watch this video.", +x8.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",x8.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",x8.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",x8.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",x8.VIDEO_FORBIDDEN="Access to this video is forbidden.",x8.VIDEO_NOT_FOUND="This video can not be found.",x8.BROWSER_OR_EXTENSION_ERROR= +"Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",x8);var QaF;var vj1=g.bF(),sa4=vj1.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!sa4||sa4.length<2)QaF=void 0;else{var r5F=vj1.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);QaF=r5F&&r5F.length===6?Number(r5F[5].replace("_",".")):0}var t$=QaF,gh=t$>=0;g.p(g.jl,bM);g.jl.prototype.L=function(z,J,m,e,T){return bM.prototype.L.call(this,z,J,m,e,T)};var MB={},OY=(MB.FAIRPLAY="fairplay",MB.PLAYREADY="playready",MB.WIDEVINE="widevine",MB.CLEARKEY=null,MB.FLASHACCESS=null,MB.UNKNOWN=null,MB.WIDEVINE_CLASSIC=null,MB);h7.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var Ai={},Ye=(Ai.WIDTH={name:"width",video:!0,valid:640,iJ:99999},Ai.HEIGHT={name:"height",video:!0,valid:360,iJ:99999},Ai.FRAMERATE={name:"framerate",video:!0,valid:30,iJ:9999},Ai.BITRATE={name:"bitrate",video:!0,valid:3E5,iJ:2E9},Ai.EOTF={name:"eotf",video:!0,valid:"bt709",iJ:"catavision"},Ai.CHANNELS={name:"channels",video:!1,valid:2,iJ:99},Ai.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",iJ:"invalidformat"},Ai.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", +iJ:"nope"},Ai.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",iJ:"av99.0.05M.08"},Ai.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",iJ:"invalid"},Ai);var zf4=["h","H"],J_O=["9","("],mcg=["9h","(h"],ef4=["8","*"],T8v=["a","A"],Ec$=["o","O"],ZPS=["m","M"],Fw9=["mac3","MAC3"],iPv=["meac3","MEAC3"],ov={},FIs=(ov.h=zf4,ov.H=zf4,ov["9"]=J_O,ov["("]=J_O,ov["9h"]=mcg,ov["(h"]=mcg,ov["8"]=ef4,ov["*"]=ef4,ov.a=T8v,ov.A=T8v,ov.o=Ec$,ov.O=Ec$,ov.m=ZPS,ov.M=ZPS,ov.mac3=Fw9,ov.MAC3=Fw9,ov.meac3=iPv,ov.MEAC3=iPv,ov),c_c=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),rlu=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var Q={},Ue=(Q["0"]="f",Q["160"]="h",Q["133"]="h",Q["134"]="h",Q["135"]="h",Q["136"]="h",Q["137"]="h",Q["264"]="h",Q["266"]="h",Q["138"]="h",Q["298"]="h",Q["299"]="h",Q["304"]="h",Q["305"]="h",Q["214"]="h",Q["216"]="h",Q["374"]="h",Q["375"]="h",Q["140"]="a",Q["141"]="ah",Q["327"]="sa",Q["258"]="m",Q["380"]="mac3",Q["328"]="meac3",Q["161"]="H",Q["142"]="H",Q["143"]="H",Q["144"]="H",Q["222"]="H",Q["223"]="H",Q["145"]="H",Q["224"]="H",Q["225"]="H",Q["146"]="H",Q["226"]="H",Q["227"]="H",Q["147"]="H", +Q["384"]="H",Q["376"]="H",Q["385"]="H",Q["377"]="H",Q["149"]="A",Q["261"]="M",Q["381"]="MAC3",Q["329"]="MEAC3",Q["598"]="9",Q["278"]="9",Q["242"]="9",Q["243"]="9",Q["244"]="9",Q["775"]="9",Q["776"]="9",Q["777"]="9",Q["778"]="9",Q["779"]="9",Q["780"]="9",Q["781"]="9",Q["782"]="9",Q["783"]="9",Q["247"]="9",Q["248"]="9",Q["353"]="9",Q["355"]="9",Q["356"]="9",Q["271"]="9",Q["577"]="9",Q["313"]="9",Q["579"]="9",Q["272"]="9",Q["302"]="9",Q["303"]="9",Q["407"]="9",Q["408"]="9",Q["308"]="9",Q["315"]="9", +Q["330"]="9h",Q["331"]="9h",Q["332"]="9h",Q["333"]="9h",Q["334"]="9h",Q["335"]="9h",Q["336"]="9h",Q["337"]="9h",Q["338"]="so",Q["600"]="o",Q["250"]="o",Q["251"]="o",Q["774"]="o",Q["194"]="*",Q["195"]="*",Q["220"]="*",Q["221"]="*",Q["196"]="*",Q["197"]="*",Q["279"]="(",Q["280"]="(",Q["317"]="(",Q["318"]="(",Q["273"]="(",Q["274"]="(",Q["357"]="(",Q["358"]="(",Q["275"]="(",Q["359"]="(",Q["360"]="(",Q["276"]="(",Q["583"]="(",Q["584"]="(",Q["314"]="(",Q["585"]="(",Q["561"]="(",Q["277"]="(",Q["361"]="(h", +Q["362"]="(h",Q["363"]="(h",Q["364"]="(h",Q["365"]="(h",Q["366"]="(h",Q["591"]="(h",Q["592"]="(h",Q["367"]="(h",Q["586"]="(h",Q["587"]="(h",Q["368"]="(h",Q["588"]="(h",Q["562"]="(h",Q["409"]="(",Q["410"]="(",Q["411"]="(",Q["412"]="(",Q["557"]="(",Q["558"]="(",Q["394"]="1",Q["395"]="1",Q["396"]="1",Q["397"]="1",Q["398"]="1",Q["399"]="1",Q["720"]="1",Q["721"]="1",Q["400"]="1",Q["401"]="1",Q["571"]="1",Q["402"]="1",Q["694"]="1h",Q["695"]="1h",Q["696"]="1h",Q["697"]="1h",Q["698"]="1h",Q["699"]="1h",Q["700"]= +"1h",Q["701"]="1h",Q["702"]="1h",Q["703"]="1h",Q["386"]="3",Q["387"]="w",Q["406"]="6",Q["787"]="1",Q["788"]="1",Q["548"]="1e",Q["549"]="1e",Q["550"]="1e",Q["551"]="1e",Q["809"]="1e",Q["810"]="1e",Q["552"]="1e",Q["811"]="1e",Q["812"]="1e",Q["553"]="1e",Q["813"]="1e",Q["814"]="1e",Q["554"]="1e",Q["815"]="1e",Q["816"]="1e",Q["555"]="1e",Q["817"]="1e",Q["818"]="1e",Q["572"]="1e",Q["556"]="1e",Q["645"]="(",Q["646"]="(",Q["647"]="(",Q["648"]="(",Q["649"]="(",Q["650"]="(",Q["651"]="(",Q["652"]="(",Q["653"]= +"(",Q["654"]="(",Q["655"]="(",Q["656"]="(",Q["657"]="(",Q["658"]="(",Q["659"]="(",Q["660"]="(",Q["661"]="(",Q["662"]="(",Q["663"]="(",Q["664"]="(",Q["665"]="(",Q["666"]="(",Q["667"]="(",Q["668"]="(",Q["669"]="(",Q["670"]="(",Q["671"]="(",Q["672"]="(",Q["673"]="(",Q["674"]="(h",Q["675"]="(h",Q["676"]="(h",Q["677"]="(h",Q["678"]="(h",Q["679"]="(h",Q["680"]="(h",Q["681"]="(h",Q["682"]="(h",Q["683"]="(h",Q["684"]="(h",Q["685"]="(h",Q["686"]="(h",Q["687"]="(h",Q["688"]="A",Q["689"]="A",Q["690"]="A",Q["691"]= +"MEAC3",Q["773"]="i",Q["806"]="I",Q["805"]="I",Q["829"]="9",Q["830"]="9",Q["831"]="9",Q["832"]="9",Q["833"]="9",Q["834"]="9",Q["835"]="9",Q["836"]="9",Q["837"]="9",Q["838"]="9",Q["839"]="9",Q["840"]="9",Q["841"]="(",Q["842"]="(",Q["843"]="(",Q["844"]="(",Q["845"]="(",Q["846"]="(",Q["847"]="(",Q["848"]="(",Q["849"]="(",Q["850"]="(",Q["851"]="(",Q["852"]="(",Q["865"]="9",Q["866"]="9",Q["867"]="9",Q["868"]="9",Q["869"]="9",Q["870"]="9",Q["871"]="9",Q["872"]="9",Q["873"]="9",Q["874"]="9",Q["875"]="9", +Q["876"]="9",Q["877"]="(",Q["878"]="(",Q["879"]="(",Q["880"]="(",Q["881"]="(",Q["882"]="(",Q["883"]="(",Q["884"]="(",Q["885"]="(",Q["886"]="(",Q["887"]="(",Q["888"]="(",Q);var jq={},ViE=(jq.STEREO_LAYOUT_UNKNOWN=0,jq.STEREO_LAYOUT_LEFT_RIGHT=1,jq.STEREO_LAYOUT_TOP_BOTTOM=2,jq);var hi,cJ;hi={};g.VD=(hi.auto=0,hi.tiny=144,hi.light=144,hi.small=240,hi.medium=360,hi.large=480,hi.hd720=720,hi.hd1080=1080,hi.hd1440=1440,hi.hd2160=2160,hi.hd2880=2880,hi.highres=4320,hi);cJ={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var t7="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");PQ.prototype.isHdr=function(){return this.K==="smpte2084"||this.K==="arib-std-b67"};RB.prototype.hp=function(){return this.containerType===2}; +RB.prototype.isEncrypted=function(){return!!this.Nx}; +RB.prototype.SI=function(){return!!this.audio}; +RB.prototype.HA=function(){return!!this.video}; +var QD=!1;g.p(O2,g.wF);g.F=O2.prototype;g.F.appendBuffer=function(z,J,m){if(this.Ul.gi()!==this.appendWindowStart+this.start||this.Ul.dP()!==this.appendWindowEnd+this.start||this.Ul.Kr()!==this.timestampOffset+this.start)this.Ul.supports(1),this.Ul.h2(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Ul.Vc(this.timestampOffset+this.start);this.Ul.appendBuffer(z,J,m)}; +g.F.abort=function(){this.Ul.abort()}; +g.F.remove=function(z,J){this.Ul.remove(z+this.start,J+this.start)}; +g.F.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; +g.F.clear=function(){this.Ul.clear()}; +g.F.h2=function(z,J){this.appendWindowStart=z;this.appendWindowEnd=J}; +g.F.gK=function(){return this.timestampOffset+this.start}; +g.F.gi=function(){return this.appendWindowStart}; +g.F.dP=function(){return this.appendWindowEnd}; +g.F.Vc=function(z){this.timestampOffset=z}; +g.F.Kr=function(){return this.timestampOffset}; +g.F.eC=function(z){z=this.Ul.eC(z===void 0?!1:z);return Ib(z,this.start,this.end)}; +g.F.Ra=function(){return this.Ul.Ra()}; +g.F.MJ=function(){return this.Ul.MJ()}; +g.F.xl=function(){return this.Ul.xl()}; +g.F.Z1=function(){return this.Ul.Z1()}; +g.F.l0=function(){this.Ul.l0()}; +g.F.sf=function(z){return this.Ul.sf(z)}; +g.F.Sw=function(){return this.Ul.Sw()}; +g.F.TI=function(){return this.Ul.TI()}; +g.F.Sy=function(){return this.Ul.Sy()}; +g.F.C0=function(z,J,m){this.Ul.C0(z,J,m)}; +g.F.Vl=function(z,J,m){this.Ul.Vl(z,J,m)}; +g.F.vl=function(z,J){return this.Ul.vl(z,J)}; +g.F.supports=function(z){return this.Ul.supports(z)}; +g.F.Ps=function(){return this.Ul.Ps()}; +g.F.isView=function(){return!0}; +g.F.SD=function(){return this.Ul.SD()?this.isActive:!1}; +g.F.isLocked=function(){return this.wx&&!this.isActive}; +g.F.kQ=function(z){z=this.Ul.kQ(z);z.vw=this.start+"-"+this.end;return z}; +g.F.e5=function(){return this.Ul.e5()}; +g.F.Ai=function(){return this.Ul.Ai()}; +g.F.ql=function(){return this.Ul.ql()}; +g.F.oy=function(){this.Ul.cQ(this.QV);g.wF.prototype.oy.call(this)};var Xt=!1;g.p(y$,g.wF);g.F=y$.prototype;g.F.appendBuffer=function(z,J,m){this.d2=!1;m&&(this.WV=m);if(z.length){var e;((e=this.Lq)==null?0:e.appendBuffer)?this.Lq.appendBuffer(z):this.Lq?this.Lq.append(z):this.pF&&this.pF.webkitSourceAppend(this.id,z)}J&&(J.isEncrypted()&&(this.BD=this.WV),J.type===3&&(this.Db=J),this.Xi.push(J.YQ()),this.Xi.length>4&&this.Xi.shift());this.Cx&&(this.Cx.length>=2||z.length>1048576?delete this.Cx:this.Cx.push(z))}; +g.F.abort=function(){try{this.Lq?this.Lq.abort():this.pF&&this.pF.webkitSourceAbort(this.id)}catch(z){enu&&g.jk(new g.vR("Error while abort the source buffer: "+z.name+", "+z.message))}this.WV=this.Db=null}; +g.F.remove=function(z,J,m){this.d2=!1;var e;if((e=this.Lq)==null?0:e.remove)m&&m({b:cz(this.eC()),s:z,e:J}),this.Lq.remove(z,J)}; +g.F.removeAll=function(){this.remove(this.gi(),this.dP())}; +g.F.clear=function(){this.xl()||(this.abort(),this.removeAll(),this.BD=this.WV=this.Db=null,this.appendWindowStart=this.timestampOffset=0,this.y0=i1([],[]),this.d2=!1,this.Cx=p2?[]:void 0,this.GU=!0)}; +g.F.gi=function(){if(Xt&&this.HA)return this.appendWindowStart;var z;return((z=this.Lq)==null?void 0:z.appendWindowStart)||0}; +g.F.dP=function(){var z;return((z=this.Lq)==null?void 0:z.appendWindowEnd)||0}; +g.F.h2=function(z,J){this.Lq&&(Xt&&this.HA?(this.appendWindowStart=z,this.Lq.appendWindowEnd=J):z>this.gi()?(this.Lq.appendWindowEnd=J,this.Lq.appendWindowStart=z):(this.Lq.appendWindowStart=z,this.Lq.appendWindowEnd=J))}; +g.F.gK=function(){return this.timestampOffset}; +g.F.Vc=function(z){Xt?this.timestampOffset=z:this.supports(1)&&(this.Lq.timestampOffset=z)}; +g.F.Kr=function(){return Xt?this.timestampOffset:this.supports(1)?this.Lq.timestampOffset:0}; +g.F.eC=function(z){if(z===void 0?0:z)return this.d2||this.Ra()||(this.y0=this.eC(!1),this.d2=!0),this.y0;try{return this.Lq?this.Lq.buffered:this.pF?this.pF.webkitSourceBuffered(this.id):i1([0],[Infinity])}catch(J){return i1([],[])}}; +g.F.Ra=function(){var z;return((z=this.Lq)==null?void 0:z.updating)||!1}; +g.F.xl=function(){return this.GU}; +g.F.Z1=function(){return!this.GU&&this.Ra()}; +g.F.l0=function(){this.GU=!1}; +g.F.sf=function(z){var J=z==null?void 0:z.rb;z=z==null?void 0:z.containerType;return!J&&!z||J===this.rb&&z===this.containerType}; +g.F.Sw=function(){return this.WV}; +g.F.TI=function(){return this.BD}; +g.F.vl=function(z,J){return this.containerType!==z||this.rb!==J}; +g.F.C0=function(z,J,m){if(this.containerType!==z||m&&this.vl(z,m))this.supports(4),NU()&&this.Lq.changeType(J),m&&(this.rb=m);this.containerType=z}; +g.F.Vl=function(z,J,m){this.containerType&&this.vl(z,J)&&NU()&&this.Lq.changeType(m);this.containerType=z;this.rb=J}; +g.F.Ps=function(){return this.Db}; +g.F.isView=function(){return!1}; +g.F.supports=function(z){switch(z){case 1:var J;return((J=this.Lq)==null?void 0:J.timestampOffset)!==void 0;case 0:var m;return!((m=this.Lq)==null||!m.appendBuffer);case 2:var e;return!((e=this.Lq)==null||!e.remove);case 3:var T,E;return!!(((T=this.Lq)==null?0:T.addEventListener)&&((E=this.Lq)==null?0:E.removeEventListener));case 4:return!(!this.Lq||!this.Lq.changeType);default:return!1}}; +g.F.SD=function(){return!this.Ra()}; +g.F.isLocked=function(){return!1}; +g.F.kQ=function(z){z.to=this.Kr();z.up=this.Ra();var J,m=((J=this.Lq)==null?void 0:J.appendWindowStart)||0,e;J=((e=this.Lq)==null?void 0:e.appendWindowEnd)||Infinity;z.aw=m.toFixed(3)+"-"+J.toFixed(3);return z}; +g.F.MJ=function(){var z;return((z=this.Lq)==null?void 0:z.writeHead)||0}; +g.F.e5=function(){for(var z={},J=0;J=7&&lC4(this,function(){g.Np(function(){fCz(z,z.getCurrentTime(),0)},500)}); +return J}; +g.F.seekTo=function(z){this.WW()>0&&(gh&&t$<4&&(z=Math.max(.1,z)),this.setCurrentTime(z))}; +g.F.Gk=function(){if(!this.T&&this.J6)if(this.J6.Z)try{var z;L2(this,{l:"mer",sr:(z=this.H1)==null?void 0:z.Ep(),rs:vz(this.J6)});this.J6.clear();this.T=this.J6;this.J6=void 0}catch(J){z=new g.vR("Error while clearing Media Source in MediaElement: "+J.name+", "+J.message),g.jk(z),this.stopVideo()}else this.stopVideo()}; +g.F.stopVideo=function(){var z=this;if(!this.T){var J;(J=this.J6)==null||Kku(J);if(znq){if(!this.S){var m=new r7;m.then(void 0,function(){}); +this.S=m;JUb&&this.pause();g.Np(function(){z.S===m&&(e2(z),m.resolve())},200)}}else e2(this)}}; +g.F.X2=function(){var z=this.G2();return qU(z)>0&&this.getDuration()?w7(z,this.getCurrentTime()):0}; +g.F.Iu=function(){var z=this.getDuration();return z===Infinity?1:z?this.X2()/z:0}; +g.F.kQ=function(){try{var z=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:cz(this.Yk(),",",3),vbu:cz(this.G2()),vbs:cz(this.b0()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.WW(),vns:""+this.S5(),vec:""+this.KF(),vemsg:this.Cc(),vvol:""+this.getVolume(),vdom:""+ +this.iN(),vsrc:""+ +!!this.Mi(),vw:""+z.width,vh:""+z.height}}catch(J){return{}}}; +g.F.hasError=function(){return this.KF()>0}; +g.F.addEventListener=function(z,J){this.U.listen(z,J,!1,this);this.Om(z)}; +g.F.removeEventListener=function(z,J){this.U.hX(z,J,!1,this)}; +g.F.dispatchEvent=function(z){if(this.S&&z.type==="pause")return!1;if(mZE){var J,m=((J=z.K)==null?void 0:J.timeStamp)||Infinity;J=m>performance.now()?m-Date.now()+performance.now():m;m=this.T||this.J6;if((m==null?0:m.xl())||J<=((m==null?void 0:m.Y)||0)){var e;L2(this,{l:"mede",sr:(e=this.H1)==null?void 0:e.Ep(),et:z.type});return!1}if(this.Bs)return L2(this,{l:"medes",et:z.type}),m&&z.type==="seeking"&&(m.Y=performance.now(),this.Bs=!1),!1}return this.U.dispatchEvent(z)}; +g.F.bH=function(){this.Y=!1}; +g.F.nK=function(){this.Y=!0;this.Wf(!0)}; +g.F.Xw=function(){this.Y&&!this.x7()&&this.Wf(!0)}; +g.F.NL=function(z){return!!z&&z.aT()===this.aT()}; +g.F.oy=function(){this.V&&this.removeEventListener("volumechange",this.Xw);znq&&e2(this);g.h.prototype.oy.call(this)}; +var znq=!1,JUb=!1,mZE=!1,$oq=!1;g.F=g.E3.prototype;g.F.isPaused=function(){return g.R(this,4)}; +g.F.isPlaying=function(){return g.R(this,8)&&!g.R(this,512)&&!g.R(this,64)&&!g.R(this,2)}; +g.F.isOrWillBePlaying=function(){return g.R(this,8)&&!g.R(this,2)&&!g.R(this,1024)}; +g.F.isCued=function(){return g.R(this,64)&&!g.R(this,8)&&!g.R(this,4)}; +g.F.isBuffering=function(){return g.R(this,1)&&!g.R(this,2)}; +g.F.isError=function(){return g.R(this,128)}; +g.F.isSuspended=function(){return g.R(this,512)}; +g.F.nS=function(){return g.R(this,64)&&g.R(this,4)}; +g.F.toString=function(){return"PSt."+this.state.toString(16)}; +var uZ={},VE=(uZ.BUFFERING="buffering-mode",uZ.CUED="cued-mode",uZ.ENDED="ended-mode",uZ.PAUSED="paused-mode",uZ.PLAYING="playing-mode",uZ.SEEKING="seeking-mode",uZ.UNSTARTED="unstarted-mode",uZ);g.p(IO,g.h);g.F=IO.prototype;g.F.Ui=function(){return this.S}; +g.F.FM=function(){return this.slot}; +g.F.XW=function(){return this.layout}; +g.F.init=function(){var z=FB(this.layout.clientMetadata,"metadata_type_video_length_seconds"),J=FB(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");Kf(this.layout.wE)&&ri(this.xu.get(),this.layout.layoutId,{s6:J,KU:z,listener:this,Jz:this.LZ()});DXu(this.Zn.get(),this);z=this.UL;J=this.layout.layoutId;var m={Jz:this.LZ()};z.K.set(J,m);this.rf()}; +g.F.TD=function(){}; +g.F.release=function(){Kf(this.layout.wE)&&zW(this.xu.get(),this.layout.layoutId);bVf(this.Zn.get(),this);this.UL.K.delete(this.layout.layoutId);this.cw()}; +g.F.Tc=function(){}; +g.F.Gc=function(){}; +g.F.startRendering=function(z){CG(O3(this));if(p5(this,z)){var J=this.K;aB(J.params.Df.Kh.get(),!0)&&cLf(J,"p_sr",{});yQ(this);this.KQ(z);this.LZ()||this.lX(!1)}}; +g.F.zS=function(z,J){if(J.layoutId===this.layout.layoutId){this.Hr="rendering";this.T=this.Dn.get().isMuted()||this.Dn.get().getVolume()===0;this.jE("impression");this.jE("start");if(this.Dn.get().isMuted()){C5(this,"mute");var m;z=((m=dT(this))==null?void 0:m.muteCommands)||[];Uq(this.EC.get(),z,this.layout.layoutId)}if(this.Dn.get().isFullscreen()){this.YE("fullscreen");var e;m=((e=dT(this))==null?void 0:e.fullscreenCommands)||[];Uq(this.EC.get(),m,this.layout.layoutId)}this.LZ()||(e=this.Cr.get(), +e.S&&!e.T&&(e.Z=!1,e.T=!0,e.actionType!=="ad_to_video"&&(kd("pbs",void 0,e.actionType),g.CH("finalize_all_timelines")&&UhR(e.actionType))));this.iG(1);this.Ho(J);var T;J=((T=dT(this))==null?void 0:T.impressionCommands)||[];Uq(this.EC.get(),J,this.layout.layoutId)}}; +g.F.sH=function(z,J,m){this.V={LM:3,v$:z==="load_timeout"?402:400,errorMessage:J.message};this.jE("error");var e;z=((e=dT(this))==null?void 0:e.errorCommands)||[];Uq(this.EC.get(),z,this.layout.layoutId);this.LZ()||this.Ht.GG(this.slot,this.layout,J,m)}; +g.F.eJ=function(){if(this.Hr==="rendering"){C5(this,"pause");var z,J=((z=dT(this))==null?void 0:z.pauseCommands)||[];Uq(this.EC.get(),J,this.layout.layoutId);this.iG(2)}}; +g.F.P5=function(){if(this.Hr==="rendering"){C5(this,"resume");var z,J=((z=dT(this))==null?void 0:z.resumeCommands)||[];Uq(this.EC.get(),J,this.layout.layoutId)}}; +g.F.SA=function(z,J){J=J===void 0?!1:J;if(this.Hr==="rendering"){var m={currentTimeSec:z,flush:J};KG(this.K,"p_ip",m);xP(this.FW,z*1E3,J);this.T||xP(this.FW,z*1E3,J===void 0?!1:J);var e=this.nR();if(e){e/=1E3;if(z>=e*.25||J)this.jE("first_quartile"),KG(this.K,"p_fq",m);if(z>=e*.5||J)this.jE("midpoint"),KG(this.K,"p_sq",m);if(z>=e*.75||J)this.jE("third_quartile"),KG(this.K,"p_tq",m);this.Kh.get().G.W().experiments.j4("enable_progress_command_flush_on_kabuki")?tl(this.U,z*1E3,J):tl(this.U,z*1E3,jU4(this)? +J:!1)}}}; +g.F.vU=function(){var z;return((z=N4(this.Ch.get(),1))==null?void 0:z.clientPlaybackNonce)||""}; +g.F.Gl=function(z,J){z.layoutId!==this.layout.layoutId?this.Ht.GG(this.slot,z,new Eq("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):J()}; +g.F.QQ=function(z,J,m){if(J.layoutId===this.layout.layoutId)switch(this.Hr="not_rendering",this.layoutExitReason=void 0,this.LZ()||(z=m!=="normal"||this.position+1===this.Y)&&this.lX(z),this.Ti(m),this.iG(0),m){case "abandoned":if(MQ(this.FW,"impression")){var e,T=((e=dT(this))==null?void 0:e.abandonCommands)||[];Uq(this.EC.get(),T,this.layout.layoutId)}break;case "normal":e=((T=dT(this))==null?void 0:T.completeCommands)||[];Uq(this.EC.get(),e,this.layout.layoutId);break;case "skipped":var E;e=((E= +dT(this))==null?void 0:E.skipCommands)||[];Uq(this.EC.get(),e,this.layout.layoutId)}}; +g.F.u0=function(){return this.layout.layoutId}; +g.F.KP=function(){return this.V}; +g.F.EM=function(){if(this.Hr==="rendering"){this.FW.jE("active_view_measurable");var z,J=((z=dT(this))==null?void 0:z.activeViewMeasurableCommands)||[];Uq(this.EC.get(),J,this.layout.layoutId)}}; +g.F.hk=function(){if(this.Hr==="rendering"){this.FW.jE("active_view_fully_viewable_audible_half_duration");var z,J=((z=dT(this))==null?void 0:z.activeViewFullyViewableAudibleHalfDurationCommands)||[];Uq(this.EC.get(),J,this.layout.layoutId)}}; +g.F.CL=function(){if(this.Hr==="rendering"){this.FW.jE("active_view_viewable");var z,J=((z=dT(this))==null?void 0:z.activeViewViewableCommands)||[];Uq(this.EC.get(),J,this.layout.layoutId)}}; +g.F.m2=function(){if(this.Hr==="rendering"){this.FW.jE("audio_audible");var z,J=((z=dT(this))==null?void 0:z.activeViewAudioAudibleCommands)||[];Uq(this.EC.get(),J,this.layout.layoutId)}}; +g.F.Z3=function(){if(this.Hr==="rendering"){this.FW.jE("audio_measurable");var z,J=((z=dT(this))==null?void 0:z.activeViewAudioMeasurableCommands)||[];Uq(this.EC.get(),J,this.layout.layoutId)}}; +g.F.lX=function(z){this.Cr.get().lX(FB(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,z,this.position,this.Y,!1)}; +g.F.onFullscreenToggled=function(z){if(this.Hr==="rendering")if(z){this.YE("fullscreen");var J,m=((J=dT(this))==null?void 0:J.fullscreenCommands)||[];Uq(this.EC.get(),m,this.layout.layoutId)}else this.YE("end_fullscreen"),J=((m=dT(this))==null?void 0:m.endFullscreenCommands)||[],Uq(this.EC.get(),J,this.layout.layoutId)}; +g.F.onVolumeChange=function(){if(this.Hr==="rendering")if(this.Dn.get().isMuted()){C5(this,"mute");var z,J=((z=dT(this))==null?void 0:z.muteCommands)||[];Uq(this.EC.get(),J,this.layout.layoutId)}else C5(this,"unmute"),z=((J=dT(this))==null?void 0:J.unmuteCommands)||[],Uq(this.EC.get(),z,this.layout.layoutId)}; +g.F.s9=function(){}; +g.F.vz=function(){}; +g.F.Qn=function(){}; +g.F.fA=function(){}; +g.F.oF=function(){}; +g.F.YE=function(z){this.FW.YE(z,!this.T)}; +g.F.jE=function(z){this.FW.jE(z,!this.T)}; +g.F.LZ=function(){var z=FB(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return z===void 0?(IU("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.Kh.get().LZ(z)};g.p(f5,IO);g.F=f5.prototype;g.F.rf=function(){}; +g.F.cw=function(){var z=this.Zn.get();z.j$===this&&(z.j$=null);this.vk.stop()}; +g.F.Tc=function(){this.vk.stop();IO.prototype.eJ.call(this)}; +g.F.Gc=function(){bk(this);IO.prototype.P5.call(this)}; +g.F.nR=function(){return FB(this.XW().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; +g.F.Do=function(z,J){var m=this;this.Gl(z,function(){m.Hr!=="rendering_stop_requested"&&(m.Hr="rendering_stop_requested",m.layoutExitReason=J,GX(m,J),m.vk.stop())})}; +g.F.Xq=function(){var z=Date.now(),J=z-this.sI;this.sI=z;this.Vn+=J;this.Vn>=this.nR()?this.xC():(this.SA(this.Vn/1E3),DH(this,this.Vn))}; +g.F.Ti=function(){}; +g.F.ly=function(){}; +g.p($k,f5);g.F=$k.prototype;g.F.Hm=function(z){if(this.Hr!=="not_rendering"){z=Xg(this,z);var J=this.Dn.get().getPresentingPlayerType()===2;this.Hr==="rendering_start_requested"?J&&dS(z)&&this.Q6():J?g.yK(z,2)?IU("Receive player ended event during MediaBreak",this.FM(),this.XW()):n5(this,z):this.On()}}; +g.F.KQ=function(){ALq(this);VNq(this.Dn.get());this.Zn.get().j$=this;Up("pbp")||Up("pbs")||kd("pbp");Up("pbp","watch")||Up("pbs","watch")||kd("pbp",void 0,"watch");this.Q6()}; +g.F.Ho=function(z){this.Cr.get();var J=FB(z.clientMetadata,"metadata_type_ad_placement_config").kind,m=this.position===0;z=FB(z.clientMetadata,"metadata_type_linked_in_player_layout_type");z={adBreakType:Yk(J),adType:Lkq(z)};var e=void 0;m?J!=="AD_PLACEMENT_KIND_START"&&(e="video_to_ad"):e="ad_to_ad";Ph("ad_mbs",void 0,e);g.tR(z,e);bk(this)}; +g.F.On=function(){this.fd()}; +g.F.xC=function(){uWu(this);this.fd()}; +g.p(gT,f5);g.F=gT.prototype;g.F.Hm=function(z){this.Hr!=="not_rendering"&&(z=Xg(this,z),n5(this,z))}; +g.F.KQ=function(){IU("Not used in SSAP")}; +g.F.Ho=function(){bk(this)}; +g.F.On=function(){IU("Not used in SSAP")}; +g.F.xC=function(){uWu(this);this.Ht.h_(this.FM(),this.XW(),"normal")}; +g.p(xk,gT);xk.prototype.Do=function(z,J){var m=this;this.Gl(z,function(){NO(m.S,J)&&(m.Hr="rendering_stop_requested",m.layoutExitReason=J,GX(m,J),m.vk.stop())})}; +xk.prototype.startRendering=function(z){CG(O3(this));p5(this,z)&&(yQ(this),this.Zn.get().j$=this)};g.p(oO,IO);g.F=oO.prototype;g.F.On=function(){this.fd()}; +g.F.Hm=function(z){if(this.Hr!=="not_rendering"){z=Xg(this,z);var J=this.Dn.get().getPresentingPlayerType()===2;this.Hr==="rendering_start_requested"?J&&dS(z)&&this.Q6():!J||g.yK(z,2)?this.fd():n5(this,z)}}; +g.F.rf=function(){FB(this.XW().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=FB(this.XW().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; +g.F.cw=function(){FB(this.XW().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.ST){var z=this.context.Df,J=this.ST,m=this.XW().layoutId;if(aB(z.Kh.get(),!0)){var e={};z.fq("mccru",(e.cid=J,e.p_ac=m,e))}this.gw.get().removeCueRange(this.ST)}this.ST=void 0;var T;(T=this.MB)==null||T.dispose();this.uZ&&this.uZ.dispose()}; +g.F.KQ=function(z){var J=M4(this.Kh.get()),m=AK(this.Kh.get());if(J&&m&&!this.LZ()){m=FB(z.clientMetadata,"metadata_type_preload_player_vars");var e=g.dv(this.Kh.get().G.W().experiments,"html5_preload_wait_time_secs");m&&this.uZ&&this.uZ.start(e*1E3)}tDb(this,z);ALq(this);J?(m=this.K1.get(),z=FB(z.clientMetadata,"metadata_type_player_vars"),m.G.loadVideoByPlayerVars(z,!1,2)):vRz(this.K1.get(),FB(z.clientMetadata,"metadata_type_player_vars"));var T;(T=this.MB)==null||T.start();J||this.K1.get().G.playVideo(2)}; +g.F.Ho=function(){var z;(z=this.MB)==null||z.stop();this.ST="adcompletioncuerange:"+this.XW().layoutId;this.gw.get().addCueRange(this.ST,0x7ffffffffffff,0x8000000000000,!1,this,2,2);z=this.context.Df;var J=this.ST,m=this.XW().layoutId;if(aB(z.Kh.get(),!0)){var e={};z.fq("mccr",(e.cid=J,e.p_ac=m,e))}(this.adCpn=MDR(this))||IU("Media layout confirmed started, but ad CPN not set.");this.TB.get().I_("onAdStart",this.adCpn);this.pI=Date.now()}; +g.F.nR=function(){var z;return(z=N4(this.Ch.get(),2))==null?void 0:z.DC}; +g.F.wZ=function(){this.FW.YE("clickthrough")}; +g.F.Do=function(z,J){var m=this;this.Gl(z,function(){if(m.Hr!=="rendering_stop_requested"){m.Hr="rendering_stop_requested";m.layoutExitReason=J;GX(m,J);var e;(e=m.MB)==null||e.stop();m.uZ&&m.uZ.stop();HOu(m)}})}; +g.F.onCueRangeEnter=function(z){if(z!==this.ST)IU("Received CueRangeEnter signal for unknown layout.",this.FM(),this.XW(),{cueRangeId:z});else{var J=this.context.Df,m=this.XW().layoutId;if(aB(J.Kh.get(),!0)){var e={};J.fq("mccre",(e.cid=z,e.p_ac=m,e))}this.gw.get().removeCueRange(this.ST);this.ST=void 0;Q6(this.context.Kh.get(),"html5_ssap_flush_at_stop_rendering")&&this.LZ()||(z=FB(this.XW().clientMetadata,"metadata_type_video_length_seconds"),this.SA(z,!0),this.jE("complete"))}}; +g.F.Ti=function(z){z!=="abandoned"&&this.TB.get().I_("onAdComplete");this.TB.get().I_("onAdEnd",this.adCpn)}; +g.F.onCueRangeExit=function(){}; +g.F.ly=function(z){this.Hr==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&z>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.Dn.get().JT(!0),this.SA(z))}; +g.F.SA=function(z,J){IO.prototype.SA.call(this,z,J===void 0?!1:J);J=Date.now()-this.pI;var m=z*1E3,e={contentCpn:this.vU(),adCpn:MDR(this)};if(z-this.Si>=5){var T=J=2||(this.v7.Do(this.layout,J),z=Q6(this.params.context.Kh.get(),"html5_ssap_pass_transition_reason")&&J==="abandoned",this.Hi()&&!z&&(Q6(this.params.context.Kh.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(J)||IU("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:J})),this.UD.get().finishSegmentByCpn(this.layout.layoutId, +N4(this.Ch.get(),1).clientPlaybackNonce,K5(J,this.params.context.Kh))),this.Dn.get().removeListener(this),this.qH()&&Gk(this.v7.Ui())&&this.Xr.QQ(this.slot,this.layout,this.v7.Ui().K))}; +g.F.Ku=function(z,J,m){FkR({cpn:z,md:this.Ch.get(),nj:!0});this.XW().layoutId!==z||Q6(this.params.context.Kh.get(),"html5_ssap_pass_transition_reason")&&m===5||(this.v7.Ui().currentState<2&&(z=Br(m,this.params.context.Kh),z==="error"?this.Xr.GG(this.slot,this.layout,new Eq("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:m},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):kk(this.Mp, +this.layout,z)),Q6(this.params.context.Kh.get(),"html5_ssap_exit_without_waiting_for_transition")||this.Xr.QQ(this.slot,this.layout,this.v7.Ui().K))};g.p(Pr,g.h);g.F=Pr.prototype;g.F.FM=function(){return this.slot}; +g.F.XW=function(){return this.layout}; +g.F.Yg=function(){}; +g.F.PA=function(){return this.aW[this.AP]}; +g.F.RB=function(){return this.AP}; +g.F.Tc=function(z,J){var m=this.PA();J.layoutId!==Hr(m,z,J)?IU("pauseLayout for a PlayerBytes layout that is not currently active",z,J):m.Tc()}; +g.F.Gc=function(z,J){var m=this.PA();J.layoutId!==Hr(m,z,J)?IU("resumeLayout for a PlayerBytes layout that is not currently active",z,J):m.Gc()}; +g.F.qN=function(z,J){var m=this.PA();zTR(this,z,J);JRs(m,z,J)&&this.Oc(m.FM(),m.XW(),"skipped")}; +g.F.aX=function(z,J){var m=this.PA();mlf(this);eT1(m,z,J)&&(z=T6s(this,m,z,J),z!==void 0&&(this.LZ()?IU("Should not happen. Should delete"):ZMR(this,m.FM(),m.XW(),z)))}; +g.F.yw=function(z,J){var m=Object.assign({},tK(this),{layoutId:J.layoutId}),e=m.layoutId,T=m.nj;if(m.Jz){var E={};Yy(m.md,"wrse",(E.ec=e,E.is=T,E.ctp=nG(e),E))}f1(this.yp,z,J)}; +g.F.zS=function(z,J){var m;(m=this.PA())==null||m.zS(z,J)}; +g.F.QQ=function(z,J,m){J.layoutId===this.XW().layoutId&&(this.Lz=!1,y6(this.vr(),this));var e;(e=this.PA())==null||e.QQ(z,J,m)}; +g.F.ly=function(z){var J;(J=this.PA())==null||J.ly(z)}; +g.F.Ws=function(z,J,m){this.RB()===-1&&(this.callback.zS(this.slot,this.layout),this.AP++);var e=this.PA();e?(e.sH(z,J,m),this.LZ()&&this.callback.GG(this.slot,this.layout,J,m)):IU("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.RB()),layoutId:this.XW().layoutId})}; +g.F.onFullscreenToggled=function(z){var J;(J=this.PA())==null||J.onFullscreenToggled(z)}; +g.F.s9=function(z){var J;(J=this.PA())==null||J.s9(z)}; +g.F.Qn=function(z){var J;(J=this.PA())==null||J.Qn(z)}; +g.F.onVolumeChange=function(){var z;(z=this.PA())==null||z.onVolumeChange()}; +g.F.I9=function(z,J,m){Dj(this.yp,z,J,m)}; +g.F.f0=function(z){z.startRendering(z.XW())}; +g.F.init=function(){var z=FB(this.XW().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");z&&(z.current=this);if(this.aW.length<1)throw new L("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.aW.length)});if(z=FB(this.XW().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))z.current=this;z=g.y(this.aW);for(var J=z.next();!J.done;J=z.next())J=J.value,J.init(),S$1(this.yp,this.slot,J.XW()),fcq(this.yp,this.slot,J.XW()); +if(this.LZ())for(this.Ch.get().addListener(this),JLz(rLz(this),this.Ch.get()),z=rLz(this),z=g.y(z),J=z.next();!J.done;J=z.next())this.uO(J.value)}; +g.F.uO=function(z){var J=FB(z.clientMetadata,"metadata_type_player_vars");J?(z.layoutType!=="LAYOUT_TYPE_MEDIA"&&IU("Non-video ad contains playerVars",this.slot,z),this.K1.get().addPlayerResponseForAssociation({playerVars:J})):(z=QUq(z),this.K1.get().addPlayerResponseForAssociation({iX:z}))}; +g.F.release=function(){var z=FB(this.XW().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");z&&(z.current=null);if(z=FB(this.XW().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))z.current=null;z=g.y(this.aW);for(var J=z.next();!J.done;J=z.next())J=J.value,DVf(this.yp,this.slot,J.XW()),J.release();this.LZ()&&(this.Ch.get().removeListener(this),moq())}; +g.F.Gl=function(z){return z.layoutId!==this.XW().layoutId?(this.callback.GG(this.FM(),z,new Eq("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.XW().layoutId+("and LayoutType: "+this.XW().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; +g.F.c$=function(){this.Dn.get().addListener(this);p1(this.vr(),this)}; +g.F.Hm=function(z){if(z.state.isError()){var J,m;this.Ws((J=z.state.Io)==null?void 0:J.errorCode,new Eq("There was a player error during this media layout.",{playerErrorCode:(m=z.state.Io)==null?void 0:m.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(J=this.PA())&&J.Hm(z)}; +g.F.LZ=function(){var z=FB(this.FM().clientMetadata,"metadata_type_eligible_for_ssap");return z===void 0?(IU("Expected SSAP eligibility in PlayerBytes slots",this.FM(),this.XW()),!1):this.Kh.get().LZ(z)}; +g.F.vz=function(){}; +g.F.Ro=function(){}; +g.F.HK=function(){}; +g.F.dG=function(){}; +g.F.Np=function(){}; +g.F.bF=function(){}; +g.F.z2=function(){}; +g.F.yL=function(){}; +g.F.hW=function(){}; +g.F.qL=function(){}; +g.F.y$=function(){}; +g.F.fA=function(){}; +g.F.oF=function(){}; +g.p(L5,Pr);g.F=L5.prototype;g.F.pC=function(z,J,m){this.Oc(z,J,m)}; +g.F.Hp=function(z,J){this.Oc(z,J,"error")}; +g.F.Oc=function(z,J,m){var e=this;Edu(this,z,J,m,function(){U3(e,e.RB()+1)})}; +g.F.startRendering=function(z){this.Gl(z)&&(this.c$(),ekq(this.Cr.get()),iVu(this.Kh.get())||VNq(this.Dn.get()),this.RB()===-1&&U3(this,this.RB()+1))}; +g.F.Do=function(z,J){var m=this;this.Lz=!0;this.RB()===this.aW.length?this.callback.QQ(this.slot,this.layout,J):(z=this.PA(),z.Do(z.XW(),J),this.gj=function(){m.callback.QQ(m.slot,m.layout,J)}); +this.Dn.get().G.rU();vRz(this.K1.get(),{});z=so(this.Dn.get(),1);z.isPaused()&&!g.R(z,2)&&this.Dn.get().playVideo();this.Dn.get().removeListener(this);this.Lz&&FiR(this)}; +g.F.Ku=function(){}; +g.F.oX=function(){}; +g.F.h_=function(){}; +g.p(QQ,Pr);g.F=QQ.prototype;g.F.pC=function(z,J,m){z=Object.assign({},tK(this),{layoutId:J.layoutId,layoutExitReason:m});J=z.layoutId;m=z.layoutExitReason;var e={};Yy(z.md,"prse",(e.xc=J,e.ler=m,e.ctp=nG(J),e))}; +g.F.Hp=function(){IU("onSubLayoutError in SSAP")}; +g.F.Oc=function(){IU("exitSubLayoutAndPlayNext in SSAP")}; +g.F.PA=function(){return this.Wk}; +g.F.RB=function(){var z=this;return this.aW.findIndex(function(J){var m;return J.XW().layoutId===((m=z.Wk)==null?void 0:m.XW().layoutId)})}; +g.F.f0=function(z){d9(this.Wk===void 0,"replacing another adapter");this.Wk=z;z.startRendering(z.XW())}; +g.F.I9=function(z,J,m){Dj(this.yp,z,J,m);var e;d9(J.layoutId===((e=this.Wk)==null?void 0:e.XW().layoutId),"currentAdapter does not match exiting layout",{slot:z?"slot: "+z.slotType:"",subLayout:qo(J)})&&(this.Wk=void 0)}; +g.F.release=function(){Pr.prototype.release.call(this);d9(this.Wk===void 0,"currentAdapter is still active during release");this.Wk=void 0}; +g.F.Hi=function(){return this.Dn.get().getPresentingPlayerType()===2}; +g.F.Do=function(z,J){function m(){vr(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(J)||IU("Composite stopRendering: Unexpected layout exit reason",this.slot,z,{layoutExitReason:J}))} +function e(){this.Wk&&s3(this,this.Wk,J);if(this.Hi()&&(!vr(this)||J!=="abandoned")){m.call(this);var E;var Z=((E=this.Ch.get().G.getVideoData())==null?void 0:E.clientPlaybackNonce)||"";E=N4(this.Ch.get(),1).clientPlaybackNonce;this.UD.get().finishSegmentByCpn(Z,E,K5(J,this.Kh))}iMj(this,J)} +function T(){if(this.Wk){var E=this.Wk;E.Ui().currentState<2&&E.Do(E.XW(),J);E=vr(this)&&J==="abandoned";this.Hi()&&!E&&(m.call(this),this.UD.get().finishSegmentByCpn(this.Wk.XW().layoutId,N4(this.Ch.get(),1).clientPlaybackNonce,K5(J,this.Kh)))}} +d9(z.layoutId===this.XW().layoutId,"StopRendering for wrong layout")&&NO(this.fS.T,J)&&(this.qH()?e.call(this):T.call(this))}; +g.F.QQ=function(z,J,m){Pr.prototype.QQ.call(this,z,J,m);J.layoutId===this.XW().layoutId&&this.Dn.get().removeListener(this)}; +g.F.vU=function(){return N4(this.Ch.get(),1).clientPlaybackNonce}; +g.F.Ku=function(z,J,m){FkR(Object.assign({},tK(this),{cpn:z}));if(!vr(this)||m!==5)if(this.qH()){if(this.Wk&&this.Wk.XW().layoutId!==J){var e=this.Wk.XW().layoutId;e!==z&&IU("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:e,exitingCpn:z,enteringCpn:J});z=Br(m,this.Kh);s3(this,this.Wk,z)}else this.Wk&&IU("onClipExited: active layout is entering again");J===this.vU()&&Wiq(this,m)}else{if(this.Wk&&this.Wk.XW().layoutId===z)cRE(this,this.Wk,m);else{var T;IU("Exiting cpn does not match active cpn", +this.slot,(e=this.Wk)==null?void 0:e.XW(),{exitingCpn:z,transitionReason:m,activeCpn:(T=this.Wk)==null?void 0:T.XW().layoutId})}J===this.vU()&&(this.Wk!==void 0&&(IU("active adapter is not properly exited",this.slot,this.layout,{activeLayout:qo(this.Wk.XW())}),cRE(this,this.Wk,m)),Wiq(this,m),iMj(this,this.fS.T.K))}}; +g.F.qH=function(){return Q6(this.Kh.get(),"html5_ssap_exit_without_waiting_for_transition")}; +g.F.startRendering=function(z){this.Gl(z)&&(z=this.fS,d9(z.K===1,"tickStartRendering: state is not initial"),z.K=2,this.c$())}; +g.F.oX=function(z){ZOs(Object.assign({},tK(this),{cpn:z}));var J=this.aW.find(function(m){return m.XW().layoutId===z}); +J?(this.fS.K!==2&&(VS1(this.gs,this.slot.slotId),d9(this.fS.K===2,"Expect started"),this.callback.zS(this.slot,this.layout)),this.f0(J),f1(this.yp,this.slot,J.XW())):lIE(this,z)}; +g.F.qN=function(z,J){zTR(this,z,J);var m=this.PA();m?JRs(m,z,J)&&wh4(this,"skipped"):qpq(this,"onSkipRequested")}; +g.F.aX=function(z,J){var m;a:{if(m=this.PA()){if(mlf(this),eT1(m,z,J)&&(z=T6s(this,m,z,J),z!==void 0)){m={Ys:m,zC2:this.aW[z]};break a}}else qpq(this,"SkipWithAdPodSkip");m=void 0}if(z=m)m=z.Ys,J=z.zC2,z=m.XW().layoutId,this.qH()?s3(this,m,"skipped"):m.Do(m.XW(),"skipped"),m=J.XW().layoutId,this.UD.get().finishSegmentByCpn(z,m,K5("skipped",this.Kh))}; +g.F.yw=function(){IU("Not used in html5_ssap_fix_layout_exit")}; +g.F.Hm=function(z){var J;(J=this.PA())==null||J.Hm(z)}; +g.F.Ws=function(){IU("Not used in html5_ssap_fix_layout_exit")}; +g.F.h_=function(z,J,m){var e;if(((e=this.PA())==null?void 0:e.XW().layoutId)!==J.layoutId)return void IU("requestToExitSubLayout: wrong layout");wh4(this,m)};g.p(rT,g.h);g.F=rT.prototype;g.F.FM=function(){return this.v7.FM()}; +g.F.XW=function(){return this.v7.XW()}; +g.F.init=function(){var z=FB(this.XW().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");z&&(z.current=this);this.rf()}; +g.F.rf=function(){this.v7.init()}; +g.F.release=function(){var z=FB(this.XW().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");z&&(z.current=null);this.cw()}; +g.F.cw=function(){this.v7.release()}; +g.F.Tc=function(){this.v7.Tc()}; +g.F.Gc=function(){this.v7.Gc()}; +g.F.qN=function(z,J){IU("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.FM(),this.XW(),{requestingSlot:z,requestingLayout:J})}; +g.F.startRendering=function(z){z.layoutId!==this.XW().layoutId?this.callback.GG(this.FM(),z,new Eq("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.XW().layoutId+("and LayoutType: "+this.XW().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.Dn.get().addListener(this),p1(this.vr(),this),ekq(this.Cr.get()),iVu(this.Kh.get())||VNq(this.Dn.get()),this.v7.startRendering(z))}; +g.F.Do=function(z,J){this.Lz=!0;this.v7.Do(z,J);this.Dn.get().G.rU();vRz(this.K1.get(),{});z=so(this.Dn.get(),1);z.isPaused()&&!g.R(z,2)&&this.Dn.get().playVideo();this.Dn.get().removeListener(this);this.Lz&&this.v7.On()}; +g.F.zS=function(z,J){this.v7.zS(z,J)}; +g.F.QQ=function(z,J,m){J.layoutId===this.XW().layoutId&&(this.Lz=!1,y6(this.vr(),this));this.v7.QQ(z,J,m);J.layoutId===this.XW().layoutId&&RO(this.Cr.get())}; +g.F.ly=function(z){this.v7.ly(z)}; +g.F.Hm=function(z){if(z.state.isError()){var J,m;this.Ws((J=z.state.Io)==null?void 0:J.errorCode,new Eq("There was a player error during this media layout.",{playerErrorCode:(m=z.state.Io)==null?void 0:m.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.v7.Hm(z)}; +g.F.Ws=function(z,J,m){this.v7.sH(z,J,m)}; +g.F.onFullscreenToggled=function(z){this.v7.onFullscreenToggled(z)}; +g.F.s9=function(z){this.v7.s9(z)}; +g.F.Qn=function(z){this.v7.Qn(z)}; +g.F.onVolumeChange=function(){this.v7.onVolumeChange()}; +g.F.vz=function(){}; +g.F.Ro=function(){}; +g.F.HK=function(){}; +g.F.dG=function(){}; +g.F.Np=function(){}; +g.F.bF=function(){}; +g.F.z2=function(){}; +g.F.yL=function(){}; +g.F.hW=function(){}; +g.F.qL=function(){}; +g.F.y$=function(){}; +g.F.fA=function(){}; +g.F.oF=function(){};g.F=zi.prototype;g.F.FM=function(){return this.slot}; +g.F.XW=function(){return this.layout}; +g.F.init=function(){this.KZ.get().addListener(this);this.Dn.get().addListener(this);var z=FB(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var J=FB(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.U){var m=this.KZ.get().TJ.slice(-1)[0];m!==void 0&&(z=m.startSecs*1E3,J=(m.startSecs+m.zt)*1E3)}this.TD(z,J);var e;m=(e=this.Ch.get().lm)==null?void 0:e.clientPlaybackNonce;e=this.layout.qd.adClientDataEntry;Jw(this.Zn.get(),{daiStateTrigger:{filledAdsDurationMs:J-z,contentCpn:m, +adClientData:e}});var T=this.KZ.get();T=OMR(T.S,z,J);T!==null&&(Jw(this.Zn.get(),{daiStateTrigger:{filledAdsDurationMs:T-z,contentCpn:m,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:e}}),this.UD.get().fR(T,J))}; +g.F.release=function(){this.cw();this.KZ.get().removeListener(this);this.Dn.get().removeListener(this)}; +g.F.startRendering=function(){this.KQ();this.callback.zS(this.slot,this.layout)}; +g.F.Do=function(z,J){this.nO(J);this.driftRecoveryMs!==null&&(m6(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(phq(this)-FB(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.Dn.get().G.oB()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.QQ(this.slot,this.layout,J)}; +g.F.Po=function(){return!1}; +g.F.L2=function(z){var J=FB(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),m=FB(this.layout.clientMetadata,"metadata_type_layout_exit_ms");z*=1E3;if(J<=z&&z0&&bU(this.K(),J)}; +g.F.HK=function(z){this.Z.delete(z.slotId);for(var J=[],m=g.y(this.VH.values()),e=m.next();!e.done;e=m.next()){e=e.value;var T=e.trigger;T instanceof vI&&T.triggeringSlotId===z.slotId&&J.push(e)}J.length>0&&bU(this.K(),J)}; +g.F.dG=function(z){for(var J=[],m=g.y(this.VH.values()),e=m.next();!e.done;e=m.next()){e=e.value;var T=e.trigger;T instanceof u4&&T.slotType===z.slotType&&T.K!==z.slotId&&J.push(e)}J.length>0&&bU(this.K(),J)}; +g.F.Np=function(z){this.S.add(z.slotId);for(var J=[],m=g.y(this.VH.values()),e=m.next();!e.done;e=m.next())e=e.value,e.trigger instanceof UR&&z.slotId===e.trigger.triggeringSlotId&&J.push(e);J.length>0&&bU(this.K(),J)}; +g.F.bF=function(z){this.S.delete(z.slotId);this.U.add(z.slotId);for(var J=[],m=g.y(this.VH.values()),e=m.next();!e.done;e=m.next())if(e=e.value,e.trigger instanceof RA)z.slotId===e.trigger.triggeringSlotId&&J.push(e);else if(e.trigger instanceof fu){var T=e.trigger;z.slotId===T.slotId&&this.T.has(T.triggeringLayoutId)&&J.push(e)}J.length>0&&bU(this.K(),J)}; +g.F.z2=function(z){for(var J=[],m=g.y(this.VH.values()),e=m.next();!e.done;e=m.next())e=e.value,e.trigger instanceof kg&&z.slotId===e.trigger.triggeringSlotId&&J.push(e);J.length>0&&bU(this.K(),J)}; +g.F.yL=function(z){for(var J=[],m=g.y(this.VH.values()),e=m.next();!e.done;e=m.next())e=e.value,e.trigger instanceof Lu&&z.slotId===e.trigger.triggeringSlotId&&J.push(e);J.length>0&&bU(this.K(),J)}; +g.F.hW=function(z,J){this.Y.add(J.layoutId)}; +g.F.qL=function(z,J){this.Y.delete(J.layoutId)}; +g.F.zS=function(z,J){this.T.add(J.layoutId);for(var m=[],e=g.y(this.VH.values()),T=e.next();!T.done;T=e.next())if(T=T.value,T.trigger instanceof Dl)J.layoutId===T.trigger.triggeringLayoutId&&m.push(T);else if(T.trigger instanceof hw){var E=T.trigger;z.slotType===E.slotType&&J.layoutType===E.layoutType&&J.layoutId!==E.K&&m.push(T)}else T.trigger instanceof fu&&(E=T.trigger,J.layoutId===E.triggeringLayoutId&&this.U.has(E.slotId)&&m.push(T));m.length>0&&bU(this.K(),m)}; +g.F.QQ=function(z,J,m){this.T.delete(J.layoutId);z=[];for(var e=g.y(this.VH.values()),T=e.next();!T.done;T=e.next())if(T=T.value,T.trigger instanceof $g&&J.layoutId===T.trigger.triggeringLayoutId&&z.push(T),T.trigger instanceof b4){var E=T.trigger;J.layoutId===E.triggeringLayoutId&&E.K.includes(m)&&z.push(T)}z.length>0&&bU(this.K(),z)}; +g.F.y$=function(){}; +g.F.lV=function(){this.U.clear()}; +g.F.GC=function(){};g.p(jT,g.h);jT.prototype.Ia=function(z,J,m,e){if(this.VH.has(J.triggerId))throw new L("Tried to register duplicate trigger for slot.");if(!(J instanceof BI))throw new L("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in CloseRequestedTriggerAdapter");this.VH.set(J.triggerId,new zA(z,J,m,e))}; +jT.prototype.h7=function(z){this.VH.delete(z.triggerId)};g.p(ug,g.h);ug.prototype.Ia=function(z,J,m,e){if(this.VH.has(J.triggerId))throw new L("Tried to register duplicate trigger for slot.");if(!(J instanceof Ku||J instanceof PI))throw new L("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.VH.set(J.triggerId,new zA(z,J,m,e))}; +ug.prototype.h7=function(z){this.VH.delete(z.triggerId)}; +ug.prototype.lV=function(z){for(var J=[],m=J.push,e=m.apply,T=[],E=g.y(this.VH.values()),Z=E.next();!Z.done;Z=E.next())Z=Z.value,Z.trigger instanceof Ku&&Z.trigger.BQ===z&&T.push(Z);e.call(m,J,g.X(T));m=J.push;e=m.apply;T=[];E=g.y(this.VH.values());for(Z=E.next();!Z.done;Z=E.next())Z=Z.value,Z.trigger instanceof PI&&Z.trigger.K!==z&&T.push(Z);e.call(m,J,g.X(T));J.length&&bU(this.K(),J)}; +ug.prototype.GC=function(z){for(var J=[],m=J.push,e=m.apply,T=[],E=g.y(this.VH.values()),Z=E.next();!Z.done;Z=E.next()){Z=Z.value;var c=Z.trigger;c instanceof PI&&c.K===z&&T.push(Z)}e.call(m,J,g.X(T));J.length&&bU(this.K(),J)};g.p(Vc,g.h);g.F=Vc.prototype;g.F.Ia=function(z,J,m,e){if(this.VH.has(J.triggerId))throw new L("Tried to register duplicate trigger for slot.");var T="adtriggercuerange:"+J.triggerId;if(J instanceof oA)g$b(this,z,J,m,e,T,J.K.start,J.K.end,J.BQ,J.visible);else if(J instanceof Sx)g$b(this,z,J,m,e,T,0x7ffffffffffff,0x8000000000000,J.BQ,J.visible);else throw new L("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in CueRangeTriggerAdapter");}; +g.F.h7=function(z){var J=this.VH.get(z.triggerId);J&&this.gw.get().removeCueRange(J.cueRangeId);this.VH.delete(z.triggerId)}; +g.F.onCueRangeEnter=function(z){var J=xkq(this,z);if(J&&(J=this.VH.get(J)))if(g.R(so(this.Dn.get()),32))this.K.add(J.cueRangeId);else{var m=J==null?void 0:J.Oo.trigger;if(m instanceof oA||m instanceof Sx){if(aB(this.context.Kh.get())){var e=J.Oo.slot,T=J.Oo.layout,E={};this.context.Df.fq("cre",(E.ca=J.Oo.category,E.tt=m.triggerType,E.st=e.slotType,E.lt=T==null?void 0:T.layoutType,E.cid=z,E))}bU(this.T(),[J.Oo])}}}; +g.F.onCueRangeExit=function(z){(z=xkq(this,z))&&(z=this.VH.get(z))&&this.K.delete(z.cueRangeId)}; +g.F.Hm=function(z){if(pO(z,16)<0){z=g.y(this.K);for(var J=z.next();!J.done;J=z.next())this.onCueRangeEnter(J.value,!0);this.K.clear()}}; +g.F.Ro=function(){}; +g.F.HK=function(){}; +g.F.dG=function(){}; +g.F.Np=function(){}; +g.F.bF=function(){}; +g.F.z2=function(){}; +g.F.yL=function(){}; +g.F.hW=function(){}; +g.F.qL=function(){}; +g.F.zS=function(){}; +g.F.QQ=function(){}; +g.F.y$=function(){}; +g.F.ly=function(){}; +g.F.onFullscreenToggled=function(){}; +g.F.s9=function(){}; +g.F.vz=function(){}; +g.F.Qn=function(){}; +g.F.onVolumeChange=function(){}; +g.F.fA=function(){}; +g.F.oF=function(){};g.p(PC,g.h);g.F=PC.prototype; +g.F.Ia=function(z,J,m,e){if(this.T.has(J.triggerId)||this.S.has(J.triggerId))throw new L("Tried to re-register the trigger.");z=new zA(z,J,m,e);if(z.trigger instanceof Aw)this.T.set(z.trigger.triggerId,z);else if(z.trigger instanceof gU)this.S.set(z.trigger.triggerId,z);else throw new L("Incorrect TriggerType: Tried to register trigger of type "+z.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.T.has(z.trigger.triggerId)&&z.slot.slotId===this.K&&bU(this.U(),[z])}; +g.F.h7=function(z){this.T.delete(z.triggerId);this.S.delete(z.triggerId)}; +g.F.Yg=function(z){z=z.slotId;if(this.K!==z){var J=[];this.K!=null&&J.push.apply(J,g.X(MSb(this.S,this.K)));z!=null&&J.push.apply(J,g.X(MSb(this.T,z)));this.K=z;J.length&&bU(this.U(),J)}}; +g.F.Ku=function(){}; +g.F.oX=function(){};g.p(tz,g.h);g.F=tz.prototype;g.F.Ia=function(z,J,m,e){if(this.VH.has(J.triggerId))throw new L("Tried to register duplicate trigger for slot.");if(!(J instanceof VP))throw new L("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.VH.set(J.triggerId,new zA(z,J,m,e))}; +g.F.h7=function(z){this.VH.delete(z.triggerId)}; +g.F.zS=function(){}; +g.F.QQ=function(){}; +g.F.Ro=function(){}; +g.F.HK=function(){}; +g.F.dG=function(){}; +g.F.Np=function(){}; +g.F.bF=function(){}; +g.F.z2=function(){}; +g.F.yL=function(){}; +g.F.hW=function(){}; +g.F.qL=function(){}; +g.F.y$=function(){};g.p(HC,g.h);g.F=HC.prototype;g.F.y$=function(z,J){for(var m=[],e=g.y(this.VH.values()),T=e.next();!T.done;T=e.next()){T=T.value;var E=T.trigger;E.opportunityType===z&&(E.associatedSlotId&&E.associatedSlotId!==J||m.push(T))}m.length&&bU(this.K(),m)}; +g.F.Ia=function(z,J,m,e){if(this.VH.has(J.triggerId))throw new L("Tried to register duplicate trigger for slot.");if(!(J instanceof RPu))throw new L("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in OpportunityEventTriggerAdapter");this.VH.set(J.triggerId,new zA(z,J,m,e))}; +g.F.h7=function(z){this.VH.delete(z.triggerId)}; +g.F.Ro=function(){}; +g.F.HK=function(){}; +g.F.dG=function(){}; +g.F.Np=function(){}; +g.F.bF=function(){}; +g.F.z2=function(){}; +g.F.yL=function(){}; +g.F.hW=function(){}; +g.F.qL=function(){}; +g.F.zS=function(){}; +g.F.QQ=function(){};g.p(Uv,g.h);g.F=Uv.prototype;g.F.Ia=function(z,J,m,e){z=new zA(z,J,m,e);if(J instanceof xg||J instanceof jx||J instanceof MG||J instanceof tw||J instanceof Ulq){if(this.VH.has(J.triggerId))throw new L("Tried to register duplicate trigger for slot.");this.VH.set(J.triggerId,z);m=m.slotId;z=this.S.has(m)?this.S.get(m):new Set;z.add(J);this.S.set(m,z)}else throw new L("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in PrefetchTriggerAdapter");}; +g.F.h7=function(z){this.VH.delete(z.triggerId)}; +g.F.Ro=function(z){var J=z.slotId;if(this.S.has(J)){z=0;var m=new Set;J=g.y(this.S.get(J));for(var e=J.next();!e.done;e=J.next())if(e=e.value,m.add(e.triggerId),e instanceof jx&&e.breakDurationMs){z=e.breakDurationMs;break}Ry(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",z,m)}}; +g.F.HK=function(){}; +g.F.dG=function(){}; +g.F.Np=function(){}; +g.F.bF=function(){}; +g.F.z2=function(){}; +g.F.yL=function(){}; +g.F.hW=function(){}; +g.F.qL=function(){}; +g.F.zS=function(){}; +g.F.QQ=function(){}; +g.F.y$=function(){}; +g.F.Po=function(z){if(this.K){this.T&&this.T.stop();this.U&&g.sD(this.U);z=z.zt*1E3+1E3;for(var J=0,m=g.y(this.VH.values()),e=m.next();!e.done;e=m.next())e=e.value.trigger,e instanceof xg&&e.breakDurationMs<=z&&e.breakDurationMs>J&&(J=e.breakDurationMs);z=J;if(z>0)return Ry(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",z,new Set,!0),Ry(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",z,new Set,!1),!0}return!1}; +g.F.L2=function(){}; +g.F.lV=function(z){this.K&&this.K.contentCpn!==z?(IU("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:z,fetchInstructionsCpn:this.K.contentCpn}),ki(this)):o$4(this)}; +g.F.GC=function(z){this.K&&this.K.contentCpn!==z&&IU("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:z,fetchInstructionsCpn:this.K.contentCpn},!0);ki(this)}; +g.F.A9=function(z){var J=this;if(this.K)IU("Unexpected multiple fetch instructions for the current content");else{this.K=z;z=h5R(z);this.T=new g.vl(function(){o$4(J)},z?z:6E5); +this.T.start();this.U=new g.vl(function(){J.K&&(J.T&&(J.T.stop(),J.T.start()),ATq(J,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},jlq(this.K)); +z=this.Dn.get().getCurrentTimeSec(1,!1);for(var m=g.y(this.KZ.get().TJ),e=m.next();!e.done;e=m.next())e=e.value,Ti(this.Zn.get(),"nocache","ct."+Date.now()+";cmt."+z+";d."+e.zt.toFixed(3)+";tw."+(e.startSecs-z)+";cid."+e.identifier+";")}}; +g.F.oy=function(){g.h.prototype.oy.call(this);ki(this)};g.p(Lw,g.h);g.F=Lw.prototype;g.F.Ia=function(z,J,m,e){if(this.VH.has(J.triggerId))throw new L("Tried to register duplicate trigger for slot.");if(!(J instanceof rU))throw new L("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.VH.set(J.triggerId,new zA(z,J,m,e));z=this.K.has(J.triggeringLayoutId)?this.K.get(J.triggeringLayoutId):new Set;z.add(J);this.K.set(J.triggeringLayoutId,z)}; +g.F.h7=function(z){this.VH.delete(z.triggerId);if(!(z instanceof rU))throw new L("Incorrect TriggerType: Tried to unregister trigger of type "+z.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var J=this.T.get(z.triggerId);J&&(J.dispose(),this.T.delete(z.triggerId));if(J=this.K.get(z.triggeringLayoutId))J.delete(z),J.size===0&&this.K.delete(z.triggeringLayoutId)}; +g.F.Ro=function(){}; +g.F.HK=function(){}; +g.F.dG=function(){}; +g.F.Np=function(){}; +g.F.bF=function(){}; +g.F.z2=function(){}; +g.F.yL=function(){}; +g.F.hW=function(){}; +g.F.qL=function(){}; +g.F.y$=function(){}; +g.F.zS=function(z,J){var m=this;if(this.K.has(J.layoutId)){z=this.K.get(J.layoutId);z=g.y(z);var e=z.next();for(J={};!e.done;J={KM:void 0},e=z.next())J.KM=e.value,e=new g.vl(function(T){return function(){var E=m.VH.get(T.KM.triggerId);bU(m.S(),[E])}}(J),J.KM.durationMs),e.start(),this.T.set(J.KM.triggerId,e)}}; +g.F.QQ=function(){};g.p(Qc,g.h);Qc.prototype.Ia=function(z,J,m,e){if(this.VH.has(J.triggerId))throw new L("Tried to register duplicate trigger for slot.");if(!(J instanceof Cu))throw new L("Incorrect TriggerType: Tried to register trigger of type "+J.triggerType+" in VideoTransitionTriggerAdapter.");this.VH.set(J.triggerId,new zA(z,J,m,e))}; +Qc.prototype.h7=function(z){this.VH.delete(z.triggerId)};Jh.prototype.g9=function(z){return z.kind==="AD_PLACEMENT_KIND_START"};g.p(Tu,g.h);g.F=Tu.prototype;g.F.logEvent=function(z){this.jT(z)}; +g.F.CA=function(z,J,m){this.jT(z,void 0,void 0,void 0,J,void 0,void 0,void 0,J.adSlotLoggingData,void 0,void 0,m)}; +g.F.Zc=function(z,J,m,e){this.jT(z,void 0,void 0,void 0,J,m?m:void 0,void 0,void 0,J.adSlotLoggingData,m?m.adLayoutLoggingData:void 0,void 0,e)}; +g.F.Tu=function(z,J,m,e){Q6(this.Kh.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+z,"trigger:",m,"slot:",J,"layout:",e);wv(this.K.get())&&this.jT(z,void 0,void 0,void 0,J,e?e:void 0,void 0,m,J.adSlotLoggingData,e?e.adLayoutLoggingData:void 0)}; +g.F.gx=function(z,J,m,e,T){this.jT(z,J,m,e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,T)}; +g.F.FU=function(z,J,m,e){this.jT("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,m,e,void 0,void 0,m.adSlotLoggingData,e?e.adLayoutLoggingData:void 0,{errorType:z,errorMessage:J})}; +g.F.jT=function(z,J,m,e,T,E,Z,c,W,l,w,q){var d=this;q=q===void 0?0:q;Q6(this.Kh.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+z,"slot:",T,"layout:",E,"ping:",Z,"Opportunity:",{opportunityType:J,associatedSlotId:m,I8x:e,Q8i:c,adSlotLoggingData:W,adLayoutLoggingData:l});try{var I=function(){if(!d.Kh.get().G.W().C("html5_disable_client_tmp_logs")&&z!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){z||IU("Empty PACF event type",T,E);var O=wv(d.K.get()),G={eventType:z,eventOrder:++d.eventCount},n={}; +T&&(n.slotData=lU(O,T));E&&(n.layoutData=Y$q(O,E));Z&&(n.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:Z.K.serializedAdPingMetadata,pingIndex:Z.index});c&&(n.triggerData=W9(c.trigger,c.category));J&&(n.opportunityData=Cc1(O,J,m,e));O={organicPlaybackContext:{contentCpn:N4(d.Ch.get(),1).clientPlaybackNonce}};O.organicPlaybackContext.isLivePlayback=N4(d.Ch.get(),1).Cq;var C;O.organicPlaybackContext.isMdxPlayback=(C=N4(d.Ch.get(),1))==null?void 0:C.isMdxPlayback; +var K;if((K=N4(d.Ch.get(),1))==null?0:K.daiEnabled)O.organicPlaybackContext.isDaiContent=!0;var f;if(C=(f=N4(d.Ch.get(),2))==null?void 0:f.clientPlaybackNonce)O.adVideoPlaybackContext={adVideoCpn:C};O&&(n.externalContext=O);G.adClientData=n;W&&(G.serializedSlotAdServingData=W.serializedSlotAdServingDataEntry);l&&(G.serializedAdServingData=l.serializedAdServingDataEntry);w&&(G.errorInfo=w);g.qq("adsClientStateChange",{adsClientEvent:G})}}; +q&&q>0?g.mV(g.Tf(),function(){return I()},q):I()}catch(O){Q6(this.Kh.get(),"html5_log_pacf_logging_errors")&&g.mV(g.Tf(),function(){IU(O instanceof Error?O:String(O),T,E,{pacf_message:"exception during pacf logging"})})}};var lFS=new Set("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED".split(" "));g.p(EQ,Tu);g.F=EQ.prototype; +g.F.CA=function(z,J,m){Tu.prototype.CA.call(this,z,J,m);aB(this.Kh.get())&&(m={},this.context.Df.fq("pacf",(m.et=z,m.st=J.slotType,m.si=J.slotId,m)))}; +g.F.Zc=function(z,J,m,e){var T=lFS.has(z);Tu.prototype.Zc.call(this,z,J,m,e);aB(this.Kh.get(),T)&&(e={},this.context.Df.fq("pacf",(e.et=z,e.st=J.slotType,e.si=J.slotId,e.lt=m==null?void 0:m.layoutType,e.li=m==null?void 0:m.layoutId,e.p_ac=m==null?void 0:m.layoutId,e)))}; +g.F.gx=function(z,J,m,e,T){Tu.prototype.gx.call(this,z,J,m,e,T);aB(this.Kh.get())&&(m={},this.context.Df.fq("pacf",(m.et=z,m.ot=J,m.ss=e==null?void 0:e.length,m)))}; +g.F.Tu=function(z,J,m,e){Tu.prototype.Tu.call(this,z,J,m,e);if(aB(this.Kh.get())){var T={};this.context.Df.fq("pacf",(T.et=z,T.tt=m.trigger.triggerType,T.tc=m.category,T.st=J.slotType,T.si=J.slotId,T.lt=e==null?void 0:e.layoutType,T.li=e==null?void 0:e.layoutId,T.p_ac=e==null?void 0:e.layoutId,T))}}; +g.F.FU=function(z,J,m,e){Tu.prototype.FU.call(this,z,J,m,e);if(aB(this.Kh.get(),!0)){var T={};this.context.Df.fq("perror",(T.ert=z,T.erm=J,T.st=m.slotType,T.si=m.slotId,T.lt=e==null?void 0:e.layoutType,T.li=e==null?void 0:e.layoutId,T.p_ac=e==null?void 0:e.layoutId,T))}}; +g.F.jT=function(z,J,m,e,T,E,Z,c,W,l,w){if(g.SP(this.Kh.get().G.W())){var q=this.Kh.get();q=g.dv(q.G.W().experiments,"H5_async_logging_delay_ms")}else q=void 0;Tu.prototype.jT.call(this,z,J,m,e,T,E,Z,c,W,l,w,q)};ZZ.prototype.clear=function(){this.K.clear()};ct.prototype.resolve=function(z){Fu(this,z)}; +ct.prototype.reject=function(z){iK(this,z)}; +ct.prototype.state=function(){return this.currentState==="done"?{state:"done",result:this.result}:this.currentState==="fail"?{state:"fail",error:this.error}:{state:"wait"}}; +ct.prototype.wait=function(){var z=this;return function m(){return wqj(m,function(e){if(e.K==1)return g.Cq(e,2),g.S(e,{m5:z},4);if(e.K!=2)return e.return(e.T);g.Bq(e);return g.fq(e,0)})}()}; +var d41=Hu(function(z){return Wt(z)?z instanceof ct:!1});Object.freeze({Jff:function(z){var J=Tvj(z);return pQ(eL1(J,function(m){return J[m].currentState==="fail"}),function(m){return Number.isNaN(m)?J.map(function(e){return e.state().result}):J[m]})}, +MND:function(z){var J=Tvj(z);return pQ(eL1(J),function(){return J.map(function(m){return m.state()})})}});var Gu=window.BDx||"en";CQ.prototype.Ir=function(z){this.client=z}; +CQ.prototype.K=function(){this.clear();this.csn=g.Dc()}; +CQ.prototype.clear=function(){this.S.clear();this.T.clear();this.U.clear();this.csn=null};KQ.prototype.Ir=function(z){g.zo(aC().Ir).bind(aC())(z)}; +KQ.prototype.clear=function(){g.zo(aC().clear).bind(aC())()};g.F=Bt.prototype;g.F.Ir=function(z){this.client=z}; +g.F.zm=function(z,J){var m=this;J=J===void 0?{}:J;g.zo(function(){var e,T,E,Z=((e=g.P(z==null?void 0:z.commandMetadata,g.px))==null?void 0:e.rootVe)||((T=g.P(z==null?void 0:z.commandMetadata,Bev))==null?void 0:(E=T.screenVisualElement)==null?void 0:E.uiType);if(Z){e=g.P(z==null?void 0:z.commandMetadata,RWg);if(e==null?0:e.parentTrackingParams){var c=g.BP(e.parentTrackingParams);if(e.parentCsn)var W=e.parentCsn}else J.clickedVisualElement?c=J.clickedVisualElement:z.clickTrackingParams&&(c=g.BP(z.clickTrackingParams)); +a:{e=g.P(z,g.rN);T=g.P(z,hW9);if(e){if(T=Z1R(e,"VIDEO")){e={token:T,videoId:e.videoId};break a}}else if(T&&(e=Z1R(T,"PLAYLIST"))){e={token:e,playlistId:T.playlistId};break a}e=void 0}J=Object.assign({},{cttAuthInfo:e,parentCsn:W},J);if(g.CH("expectation_logging")){var l;J.loggingExpectations=((l=g.P(z==null?void 0:z.commandMetadata,Bev))==null?void 0:l.loggingExpectations)||void 0}fQ(m,Z,c,J)}else g.hr(new g.vR("Error: Trying to create a new screen without a rootVeType",z))})()}; +g.F.clickCommand=function(z,J,m){z=z.clickTrackingParams;m=m===void 0?0:m;z?(m=g.Dc(m===void 0?0:m))?(E4E(this.client,m,g.BP(z),J),J=!0):J=!1:J=!1;return J}; +g.F.stateChanged=function(z,J,m){this.visualElementStateChanged(g.BP(z),J,m===void 0?0:m)}; +g.F.visualElementStateChanged=function(z,J,m){m=m===void 0?0:m;m===0&&this.T.has(m)?this.X.push([z,J]):lj1(this,z,J,m)};gH.prototype.fetch=function(z,J,m){var e=this,T=dPj(z,J,m);return new Promise(function(E,Z){function c(){if(m==null?0:m.ac)try{var l=e.handleResponse(z,T.status,T.response,m);E(l)}catch(w){Z(w)}else E(e.handleResponse(z,T.status,T.response,m))} +T.onerror=c;T.onload=c;var W;T.send((W=J.body)!=null?W:null)})}; +gH.prototype.handleResponse=function(z,J,m,e){m=m.replace(")]}'","");try{var T=JSON.parse(m)}catch(E){g.hr(new g.vR("JSON parsing failed after XHR fetch",z,J,m));if((e==null?0:e.ac)&&m)throw new g.EO(1,"JSON parsing failed after XHR fetch");T={}}J!==200&&(g.hr(new g.vR("XHR API fetch failed",z,J,m)),T=Object.assign({},T,{errorMetadata:{status:J}}));return T};xm.getInstance=function(){var z=g.Hq("ytglobal.storage_");z||(z=new xm,g.tu("ytglobal.storage_",z));return z}; +xm.prototype.estimate=function(){var z,J,m;return g.D(function(e){z=navigator;return((J=z.storage)==null?0:J.estimate)?e.return(z.storage.estimate()):((m=z.webkitTemporaryStorage)==null?0:m.queryUsageAndQuota)?e.return(Iju()):e.return()})}; +g.tu("ytglobal.storageClass_",xm);l5.prototype.YA=function(z){this.handleError(z)}; +l5.prototype.logEvent=function(z,J){switch(z){case "IDB_DATA_CORRUPTED":g.CH("idb_data_corrupted_killswitch")||this.K("idbDataCorrupted",J);break;case "IDB_UNEXPECTEDLY_CLOSED":this.K("idbUnexpectedlyClosed",J);break;case "IS_SUPPORTED_COMPLETED":g.CH("idb_is_supported_completed_killswitch")||this.K("idbIsSupportedCompleted",J);break;case "QUOTA_EXCEEDED":p9j(this,J);break;case "TRANSACTION_ENDED":this.S&&Math.random()<=.1&&this.K("idbTransactionEnded",J);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":z= +Object.assign({},J,{hasWindowUnloaded:this.T}),this.K("idbTransactionAborted",z)}};var Px={},rwq=g.TL("yt-player-local-media",{HN:(Px.index={dJ:2},Px.media={dJ:2},Px.captions={dJ:5},Px),shared:!1,upgrade:function(z,J){J(2)&&(g.gW(z,"index"),g.gW(z,"media"));J(5)&&g.gW(z,"captions");J(6)&&(x4(z,"metadata"),x4(z,"playerdata"))}, +version:5});var w09={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1,kitkat:4.4,lollipop:5.1,marshmallow:6,nougat:7.1},ti;a:{var Hx=g.bF();Hx=Hx.toLowerCase();if(g.ae(Hx,"android")){var qJO=Hx.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(qJO){var dcN=parseFloat(qJO[1]);if(dcN<100){ti=dcN;break a}}var IF1=Hx.match("("+Object.keys(w09).join("|")+")");ti=IF1?w09[IF1[0]]:0}else ti=void 0}var gc=ti,$5=gc>=0;var AHb=window;var yku=Ne(function(){var z,J;return(J=(z=window).matchMedia)==null?void 0:J.call(z,"(prefers-reduced-motion: reduce)").matches});var Ah;g.MS=new bG;Ah=0;var oC={jp:function(z,J){var m=z[0];z[0]=z[J%z.length];z[J%z.length]=m}, +f4:function(z,J){z.splice(0,J)}, +yU:function(z){z.reverse()}};var vWs=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var rK=KGq()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.s0?!0:!1;var vkz={y82:"adunit",ZAW:"detailpage",AJ6:"editpage",uo1:"embedded",U1D:"leanback",hDn:"previewpage",CGf:"profilepage",UF:"unplugged",mwb:"playlistoverview",Dv6:"sponsorshipsoffer",tc6:"shortspage",GkD:"handlesclaiming",Wyx:"immersivelivepage",Gpf:"creatormusic",A7i:"immersivelivepreviewpage",OFy:"admintoolyurt",vV3:"shortsaudiopivot",wzb:"consumption"};var UG,OPO,Y6;UG={};g.RC=(UG.STOP_EVENT_PROPAGATION="html5-stop-propagation",UG.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",UG.IV_DRAWER_OPEN="ytp-iv-drawer-open",UG.MAIN_VIDEO="html5-main-video",UG.VIDEO_CONTAINER="html5-video-container",UG.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",UG.HOUSE_BRAND="house-brand",UG);OPO={};Y6=(OPO.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",OPO.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",OPO);var gb4={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var oPR={ANDROID:3,ANDROID_KIDS:18,ANDROID_MUSIC:21,ANDROID_UNPLUGGED:29,WEB:1,WEB_REMIX:67,WEB_UNPLUGGED:41,IOS:5,IOS_KIDS:19,IOS_MUSIC:26,IOS_UNPLUGGED:33},jPq={android:"ANDROID","android.k":"ANDROID_KIDS","android.m":"ANDROID_MUSIC","android.up":"ANDROID_UNPLUGGED",youtube:"WEB","youtube.m":"WEB_REMIX","youtube.up":"WEB_UNPLUGGED",ytios:"IOS","ytios.k":"IOS_KIDS","ytios.m":"IOS_MUSIC","ytios.up":"IOS_UNPLUGGED"},Ri4={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var ymf={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.Tv.prototype.getLanguageInfo=function(){return this.sC}; +g.Tv.prototype.getXtags=function(){if(!this.xtags){var z=this.id.split(";");z.length>1&&(this.xtags=z[1])}return this.xtags}; +g.Tv.prototype.toString=function(){return this.sC.name}; +g.Tv.prototype.getLanguageInfo=g.Tv.prototype.getLanguageInfo;EM.prototype.NL=function(z){return this.T===z.T&&this.K===z.K&&this.S===z.S&&this.reason===z.reason&&(!FU||this.RT===z.RT)}; +EM.prototype.isLocked=function(){return this.S&&!!this.T&&this.T===this.K}; +EM.prototype.compose=function(z){if(z.S&&ia(z))return tc;if(z.S||ia(this))return z;if(this.S||ia(z))return this;var J=this.T&&z.T?Math.max(this.T,z.T):this.T||z.T,m=this.K&&z.K?Math.min(this.K,z.K):this.K||z.K;J=Math.min(J,m);var e=0;FU&&(e=this.RT!==0&&z.RT!==0?Math.min(this.RT,z.RT):this.RT===0?z.RT:this.RT);return FU&&J===this.T&&m===this.K&&e===this.RT||!FU&&J===this.T&&m===this.K?this:FU?new EM(J,m,!1,m===this.K&&e===this.RT?this.reason:z.reason,e):new EM(J,m,!1,m===this.K?this.reason:z.reason)}; +EM.prototype.U=function(z){return!z.video||FU&&this.RT!==0&&this.RT=0}; +g.F.a8=function(){var z=this.segments[this.segments.length-1];return z?z.endTime:NaN}; +g.F.JX=function(){return this.segments[0].startTime}; +g.F.g6=function(){return this.segments.length}; +g.F.vB=function(){return 0}; +g.F.T7=function(z){return(z=this.Zt(z))?z.Y3:-1}; +g.F.QY=function(z){return(z=this.Pu(z))?z.sourceURL:""}; +g.F.getStartTime=function(z){return(z=this.Pu(z))?z.startTime:0}; +g.F.Rz=function(z){return this.getStartTime(z)+this.getDuration(z)}; +g.F.Ev=TE(1);g.F.isLoaded=function(){return this.segments.length>0}; +g.F.Pu=function(z){if(this.K&&this.K.Y3===z)return this.K;z=g.cu(this.segments,new ba(z,0,0,0,""),function(J,m){return J.Y3-m.Y3}); +return this.K=z>=0?this.segments[z]:null}; +g.F.Zt=function(z){if(this.K&&this.K.startTime<=z&&z=0?this.segments[z]:this.segments[Math.max(0,-z-2)]}; +g.F.append=function(z){if(z.length)if(z=g.en(z),this.segments.length){var J=this.segments.length?g.kO(this.segments).endTime:0,m=z[0].Y3-this.eO();m>1&&sq4(this.segments);for(m=m>0?0:-m+1;mz.Y3&&this.index.DO()<=z.Y3+1}; +g.F.update=function(z,J,m){this.index.append(z);dOR(this.index,m);z=this.index;z.T=J;z.S="update"}; +g.F.bC=function(){return this.QJ()?!0:SF.prototype.bC.call(this)}; +g.F.cN=function(z,J){var m=this.index.QY(z),e=this.index.getStartTime(z),T=this.index.getDuration(z),E;J?T=E=0:E=this.info.RT>0?this.info.RT*T:1E3;return new u0([new gt(3,this,void 0,"liveCreateRequestInfoForSegment",z,e,T,0,E,!J)],m)}; +g.F.EY=function(){return this.QJ()?0:this.initRange.length}; +g.F.uP=function(){return!1};kY.prototype.update=function(z){var J=void 0;this.T&&(J=this.T);var m=new kY,e=Array.from(z.getElementsByTagName("S"));if(e.length){var T=+UI(z,"timescale")||1,E=(+e[0].getAttribute("t")||0)/T,Z=+UI(z,"startNumber")||0;m.U=E;var c=J?J.startSecs+J.zt:0,W=Date.parse(F94(UI(z,"yt:segmentIngestTime")))/1E3;m.Z=z.parentElement.tagName==="SegmentTemplate";m.Z&&(m.V=UI(z,"media"));z=J?Z-J.Y3:1;m.Y=z>0?0:-z+1;z=g.y(e);for(e=z.next();!e.done;e=z.next()){e=e.value;for(var l=+e.getAttribute("d")/T,w=(+e.getAttribute("yt:sid")|| +0)/T,q=+e.getAttribute("r")||0,d=0;d<=q;d++)if(J&&Z<=J.Y3)Z++;else{var I=new E_4(Z,c,l,W+w,E);m.K.push(I);var O=e;var G=T,n=I.startSecs;I=O.getAttribute("yt:cuepointTimeOffset");var C=O.getAttribute("yt:cuepointDuration");if(I&&C){I=Number(I);n=-I/G+n;G=Number(C)/G;C=O.getAttribute("yt:cuepointContext")||null;var K=O.getAttribute("yt:cuepointIdentifier")||"";O=O.getAttribute("yt:cuepointEvent")||"";O=new Vf(n,G,C,K,y_g[O]||"unknown",I)}else O=null;O&&m.S.push(O);Z++;c+=l;E+=l;W+=l+w}}m.K.length&& +(m.T=g.kO(m.K))}this.Y=m.Y;this.T=m.T||this.T;g.TC(this.K,m.K);g.TC(this.S,m.S);this.Z=m.Z;this.V=m.V;this.U===-1&&(this.U=m.getStreamTimeOffset())}; +kY.prototype.getStreamTimeOffset=function(){return this.U===-1?0:this.U};g.p(Q0,g.$e);g.F=Q0.prototype;g.F.oP=function(){return this.Ou}; +g.F.PB=function(z,J){z=vo(this,z);return z>=0&&(J||!this.segments[z].pending)}; +g.F.DO=function(){return this.zC?this.segments.length?this.Zt(this.JX()).Y3:-1:g.$e.prototype.DO.call(this)}; +g.F.JX=function(){if(this.Ol)return 0;if(!this.zC)return g.$e.prototype.JX.call(this);if(!this.segments.length)return 0;var z=Math.max(g.kO(this.segments).endTime-this.DJ,0);return this.Jp>0&&this.Zt(z).Y30)return this.wJ/1E3;if(!this.segments.length)return g.$e.prototype.a8.call(this);var z=this.eO();if(!this.zC||z<=this.segments[this.segments.length-1].Y3)z=this.segments[this.segments.length-1];else{var J=this.segments[this.segments.length-1];z=new ba(z,Math.max(0,J.startTime-(J.Y3-z)*this.Ou),this.Ou,0,"sq/"+z,void 0,void 0,!0)}return this.Ol?Math.min(this.DJ,z.endTime):z.endTime}; +g.F.g6=function(){return this.zC?this.segments.length?this.eO()-this.DO()+1:0:g.$e.prototype.g6.call(this)}; +g.F.eO=function(){var z=Math.min(this.Ni,Math.max(g.$e.prototype.eO.call(this),this.O7)),J=this.DJ*1E3;J=this.wJ>0&&this.wJ0&&this.O7>0&&!J&&(J=this.Zt(this.DJ))&&(z=Math.min(J.Y3-1,z));return z}; +g.F.Uf=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; +g.F.Nr=function(z){var J=vo(this,z.Y3);if(J>=0)this.segments[J]=z;else if(this.segments.splice(-(J+1),0,z),this.AL&&z.Y3%(300/this.Ou)===0){var m=this.segments[0].Y3,e=Math.floor(this.AL/this.Ou);z=z.Y3-e;J=-(J+1)-e;J>0&&z>m&&(this.segments=this.segments.slice(J))}}; +g.F.oz=function(){return this.O7}; +g.F.VI=function(z){return La?!this.T&&z>=0&&this.eO()<=z:g.$e.prototype.VI.call(this,z)}; +g.F.Zt=function(z){if(!this.zC)return g.$e.prototype.Zt.call(this,z);if(!this.segments.length)return null;var J=this.segments[this.segments.length-1];if(z=J.endTime)J=J.Y3+Math.floor((z-J.endTime)/this.Ou+1);else{J=Wu(this.segments,function(e){return z=e.endTime?1:0}); +if(J>=0)return this.segments[J];var m=-(J+1);J=this.segments[m-1];m=this.segments[m];J=Math.floor((z-J.endTime)/((m.startTime-J.endTime)/(m.Y3-J.Y3-1))+1)+J.Y3}return this.Pu(J)}; +g.F.Pu=function(z){if(!this.zC)return g.$e.prototype.Pu.call(this,z);if(!this.segments.length)return null;var J=vo(this,z);if(J>=0)return this.segments[J];var m=-(J+1);J=this.Ou;if(m===0)var e=Math.max(0,this.segments[0].startTime-(this.segments[0].Y3-z)*J);else m===this.segments.length?(e=this.segments[this.segments.length-1],e=e.endTime+(z-e.Y3-1)*J):(e=this.segments[m-1],J=this.segments[m],J=(J.startTime-e.endTime)/(J.Y3-e.Y3-1),e=e.endTime+(z-e.Y3-1)*J);return new ba(z,e,J,0,"sq/"+z,void 0,void 0, +!0)}; +var La=!1;g.p(sI,Ho);g.F=sI.prototype;g.F.xI=function(){return!0}; +g.F.bC=function(){return!0}; +g.F.BN=function(z){return this.Ff()&&z.S&&!z.Z||!z.K.index.VI(z.Y3)}; +g.F.GH=function(){}; +g.F.ZJ=function(z,J){return typeof z!=="number"||isFinite(z)?Ho.prototype.ZJ.call(this,z,J===void 0?!1:J):new u0([new gt(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Sd,void 0,this.Sd*this.info.RT)],"")}; +g.F.cN=function(z,J){var m=m===void 0?!1:m;if(this.index.PB(z))return Ho.prototype.cN.call(this,z,J);var e=this.index.getStartTime(z),T=Math.round(this.Sd*this.info.RT),E=this.Sd;J&&(E=T=0);return new u0([new gt(m?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",z,e,E,void 0,T,!J)],z>=0?"sq/"+z:"")};g.p(rt,SF);g.F=rt.prototype;g.F.Sx=function(){return!1}; +g.F.Ff=function(){return!1}; +g.F.xI=function(){return!1}; +g.F.GH=function(){return new u0([new gt(1,this,void 0,"otfInit")],this.Z)}; +g.F.nQ=function(){return null}; +g.F.OV=function(z){this.BN(z);return IUz(this,on(z),!1)}; +g.F.ZJ=function(z,J){J=J===void 0?!1:J;z=this.index.T7(z);J&&(z=Math.min(this.index.eO(),z+1));return IUz(this,z,!0)}; +g.F.rK=function(z){z.info.type===1&&(this.K||(this.K=ak(z.K)),z.T&&z.T.uri==="http://youtube.com/streaming/otf/durations/112015"&&O2q(this,z.T))}; +g.F.BN=function(z){return z.S===0?!0:this.index.eO()>z.Y3&&this.index.DO()<=z.Y3+1}; +g.F.EY=function(){return 0}; +g.F.uP=function(){return!1};z4.prototype.C1=function(){return this.K.C1()};g.F=g.Z7.prototype;g.F.PB=function(z){return z<=this.eO()}; +g.F.vB=function(z){return this.offsets[z]}; +g.F.getStartTime=function(z){return this.startTicks[z]/this.K}; +g.F.Rz=function(z){return this.getStartTime(z)+this.getDuration(z)}; +g.F.Ev=TE(0);g.F.Hk=function(){return NaN}; +g.F.getDuration=function(z){z=this.uK(z);return z>=0?z/this.K:-1}; +g.F.uK=function(z){return z+1=0}; +g.F.a8=function(){return this.T?this.startTicks[this.count]/this.K:NaN}; +g.F.JX=function(){return 0}; +g.F.g6=function(){return this.count}; +g.F.QY=function(){return""}; +g.F.T7=function(z){z=g.cu(this.startTicks.subarray(0,this.count),z*this.K);return z>=0?z:Math.max(0,-z-2)}; +g.F.isLoaded=function(){return this.eO()>=0}; +g.F.cP=function(z,J){if(z>=this.eO())return 0;var m=0;for(J=this.getStartTime(z)+J;zthis.getStartTime(z);z++)m=Math.max(m,aUb(this,z)/this.getDuration(z));return m}; +g.F.resize=function(z){z+=2;var J=this.offsets;this.offsets=new Float64Array(z+1);var m=this.startTicks;this.startTicks=new Float64Array(z+1);for(z=0;z0&&z&&(m=m.range.end+1,z=Math.min(z,this.info.contentLength-m),z>0&&e.push(new gt(4,this,b0(m,z),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,J)));return new u0(e)}; +g.F.rK=function(z){if(z.info.type===1){if(this.K)return;this.K=ak(z.K)}else if(z.info.type===2){if(this.Z||this.index.eO()>=0)return;if(g.z1(this.info)){var J=this.index,m=z.C1();z=z.info.range.start;var e=g.R1(m,0,1936286840);m=KsE(e);J.K=m.timescale;var T=m.uE;J.offsets[0]=m.DK+z+e.size;J.startTicks[0]=T;J.T=!0;z=m.Tn.length;for(e=0;e0&&z===E[0].YR)for(z=0;z=J+m)break}T.length||g.jk(new g.vR("b189619593",""+z,""+J,""+m));return new u0(T)}; +g.F.yg=function(z){for(var J=this.EK(z.info),m=z.info.range.start+z.info.T,e=[],T=0;T=this.index.vB(m+1);)m++;return this.lT(m,J,z.S).s2}; +g.F.BN=function(z){z.yC();return this.bC()?!0:z.range.end+1this.info.contentLength&&(J=new fa(J.start,this.info.contentLength-1)),new u0([new gt(4,z.K,J,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,z.clipId)]);z.type===4&&(z=this.EK(z),z=z[z.length-1]);var m=0,e=z.range.start+z.T+z.S;z.type===3&&(z.yC(),m=z.Y3,e===z.range.end+1&&(m+=1));return this.lT(m,e,J)}; +g.F.OV=function(){return null}; +g.F.ZJ=function(z,J,m){J=J===void 0?!1:J;z=this.index.T7(z);J&&(z=Math.min(this.index.eO(),z+1));return this.lT(z,this.index.vB(z),0,m)}; +g.F.Sx=function(){return!0}; +g.F.Ff=function(){return!0}; +g.F.xI=function(){return!1}; +g.F.EY=function(){return this.indexRange.length+this.initRange.length}; +g.F.uP=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var k8={},P1j=(k8.COLOR_PRIMARIES_BT709="bt709",k8.COLOR_PRIMARIES_BT2020="bt2020",k8.COLOR_PRIMARIES_UNKNOWN=null,k8.COLOR_PRIMARIES_UNSPECIFIED=null,k8),Lx={},B7E=(Lx.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",Lx.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",Lx.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",Lx.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",Lx.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,Lx.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,Lx);g.cp.prototype.getName=function(){return this.name}; +g.cp.prototype.getId=function(){return this.id}; +g.cp.prototype.getIsDefault=function(){return this.isDefault}; +g.cp.prototype.toString=function(){return this.name}; +g.cp.prototype.getName=g.cp.prototype.getName;g.cp.prototype.getId=g.cp.prototype.getId;g.cp.prototype.getIsDefault=g.cp.prototype.getIsDefault;var b2u=/action_display_post/;var $Ub,wK,qd;g.p(dK,g.wF);g.F=dK.prototype;g.F.isLoading=function(){return this.state===1}; +g.F.UA=function(){return this.state===3}; +g.F.zlb=function(z){var J=z.getElementsByTagName("Representation");if(z.getElementsByTagName("SegmentList").length>0||z.getElementsByTagName("SegmentTemplate").length>0){this.Cq=this.T=!0;this.timeline||(this.timeline=new coq);q2q(this.timeline,z);this.publish("refresh");for(z=0;z=0?w=Dh(d):q=q+"?range="+d}W.call(c,new ba(l.Y3,l.startSecs,l.zt,l.K,q,w,l.T))}e=T}m.update(e,this.isLive,this.ND)}dUu(this.timeline);return!0}this.duration=Z2z(UI(z,"mediaPresentationDuration")); +a:{for(z=0;z0))return this.Aw()-z}}z=this.K;for(var J in z){var m=z[J].index;if(m.isLoaded()&&!E2(z[J].info.mimeType))return m.JX()}return 0}; +g.F.getStreamTimeOffset=function(){return this.V}; +g.F.Hk=function(z){for(var J in this.K){var m=this.K[J].index;if(m.isLoaded()){var e=m.T7(z),T=m.Hk(e);if(T)return T+z-m.getStartTime(e)}}return NaN}; +var Sh=null,N8c,ft=!((N8c=navigator.mediaCapabilities)==null||!N8c.decodingInfo),L9j={commentary:1,alternate:2,dub:3,main:4};var lL=new Set,D7=new Map;gK.prototype.clone=function(z){return new gK(this.flavor,z,this.T,this.experiments)}; +gK.prototype.kQ=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; +gK.prototype.getInfo=function(){switch(this.keySystem){case "com.youtube.playready":return"PRY";case "com.microsoft.playready":return"PRM";case "com.widevine.alpha":return"WVA";case "com.youtube.widevine.l3":return"WVY";case "com.youtube.fairplay":return"FPY";case "com.youtube.fairplay.sbdl":return"FPC";case "com.apple.fps.1_0":return"FPA";default:return this.keySystem}}; +var G8v={},tG=(G8v.playready=["com.youtube.playready","com.microsoft.playready"],G8v.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],G8v),QE={},Oef=(QE.widevine="DRM_SYSTEM_WIDEVINE",QE.fairplay="DRM_SYSTEM_FAIRPLAY",QE.playready="DRM_SYSTEM_PLAYREADY",QE),vx={},X0N=(vx.widevine=1,vx.fairplay=2,vx.playready=3,vx);UY.prototype.Ci=function(z,J){J=J===void 0?1:J;this.p$+=J;this.T+=z;z/=J;for(var m=0;m0)e+="."+Hp[T].toFixed(0)+"_"+m.K[T].toFixed(0);else break;m=e}m&&(z[J]=m)}this.K=new cKb;return z}; +g.F.toString=function(){return""};g.F=IHu.prototype;g.F.isActive=function(){return!1}; +g.F.yE=function(){}; +g.F.eQ=function(){}; +g.F.IM=function(z,J){return J}; +g.F.p6=function(){}; +g.F.En=function(){}; +g.F.ZQ=function(z,J){return J()}; +g.F.VF=function(){return{}}; +g.F.toString=function(){return""};var sG,ncS,YJ9,CW4,aF9,Kw1,rp,n7,T0,jub,vp;sG=new IHu;ncS=!!+vT("html5_enable_profiler");YJ9=!!+vT("html5_onesie_enable_profiler");CW4=!!+vT("html5_offline_encryption_enable_profiler");aF9=!!+vT("html5_performance_impact_profiling_timer_ms");Kw1=!!+vT("html5_drm_enable_profiler");rp=ncS||YJ9||CW4||aF9||Kw1?new lH1:sG;g.x6=ncS?rp:sG;n7=YJ9?rp:sG;T0=CW4?rp:sG;jub=aF9?rp:sG;vp=Kw1?rp:sG;var Q4;g.p(kQ,g.h); +kQ.prototype.initialize=function(z,J){for(var m=this,e=g.y(Object.keys(z)),T=e.next();!T.done;T=e.next()){T=g.y(z[T.value]);for(var E=T.next();!E.done;E=T.next())if(E=E.value,E.Nx)for(var Z=g.y(Object.keys(E.Nx)),c=Z.next();!c.done;c=Z.next()){var W=c.value;c=W;W=tG[W];!W&&this.C("html5_enable_vp9_fairplay")&&c==="fairplay"&&(W=["com.youtube.fairplay.sbdl"]);if(W){W=g.y(W);for(var l=W.next();!l.done;l=W.next())l=l.value,this.S[l]=this.S[l]||new gK(c,l,E.Nx[c],this.e4.experiments),this.K[c]=this.K[c]|| +{},this.K[c][E.mimeType]=!0}}}Qp()&&(this.S["com.youtube.fairplay"]=new gK("fairplay","com.youtube.fairplay","",this.e4.experiments),this.C("html5_enable_vp9_fairplay")||(this.K.fairplay=this.K.fairplay||{},this.K.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.K.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.T=i51(J,this.useCobaltWidevine,this.C("html5_enable_safari_fairplay")&&!0,this.C("html5_enable_vp9_fairplay")).filter(function(w){return!!m.S[w]})}; +kQ.prototype.C=function(z){return this.e4.experiments.j4(z)};var B81={"":"LIVE_STREAM_MODE_UNKNOWN",dvr:"LIVE_STREAM_MODE_DVR",lp:"LIVE_STREAM_MODE_LP",post:"LIVE_STREAM_MODE_POST",window:"LIVE_STREAM_MODE_WINDOW",live:"LIVE_STREAM_MODE_LIVE"};nku.prototype.C=function(z){return this.experiments.j4(z)};var rKu={RED:"red",NDF:"white"};Y3q.prototype.j4=function(z){z=this.flags[z];JSON.stringify(z);return z==="true"};var KIs=Promise.resolve(),D4u=window.queueMicrotask?window.queueMicrotask.bind(window):BTq;JD.prototype.canPlayType=function(z,J){z=z.canPlayType?z.canPlayType(J):!1;vj?z=z||SJc[J]:gc===2.2?z=z||fF1[J]:kJ()&&(z=z||Dcz[J]);return!!z}; +JD.prototype.isTypeSupported=function(z){return this.fh?window.cast.receiver.platform.canDisplayType(z):MO(z)}; +var fF1={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},Dcz={"application/x-mpegURL":"maybe"},SJc={"application/x-mpegURL":"maybe"};g.p(Ej,g.wF);Ej.prototype.add=function(z,J){if(!this.items[z]&&(J.Dh||J.lH||J.vT)){var m=this.items,e=J;Object.isFrozen&&!Object.isFrozen(J)&&(e=Object.create(J),Object.freeze(e));m[z]=e;this.publish("vast_info_card_add",z)}}; +Ej.prototype.remove=function(z){var J=this.get(z);delete this.items[z];return J}; +Ej.prototype.get=function(z){return this.items[z]||null}; +Ej.prototype.isEmpty=function(){return g.xf(this.items)};g.p(Z6,g.CF);Z6.prototype.K=function(z,J){return g.CF.prototype.K.call(this,z,J)}; +Z6.prototype.T=function(z,J,m){var e=this;return g.D(function(T){return T.K==1?g.S(T,g.CF.prototype.T.call(e,z,J,m),2):T.return(T.T)})}; +g.p(F_,g.a6);F_.prototype.encrypt=function(z,J){return g.a6.prototype.encrypt.call(this,z,J)};var cZ;WZ.prototype.add=function(z){if(this.pos+20>this.data.length){var J=new Uint8Array(this.data.length*2);J.set(this.data);this.data=J}for(;z>31;)this.data[this.pos++]=cZ[(z&31)+32],z>>=5;this.data[this.pos++]=cZ[z|0]}; +WZ.prototype.G7=function(){return g.fc(this.data.subarray(0,this.pos))}; +WZ.prototype.reset=function(){this.pos=0};wc.prototype.xA=function(z,J){var m=Math.pow(this.alpha,z);this.K=J*(1-m)+m*this.K;this.T+=z}; +wc.prototype.ao=function(){return this.K/(1-Math.pow(this.alpha,this.T))};qA.prototype.xA=function(z,J){for(var m=0;m<10;m++){var e=this.K[m],T=e+(m===0?z:0),E=1*Math.pow(2,m);if(T<=E)break;e=Math.min(1,(T-E*.5)/e);for(T=0;T<16;T++)E=this.values[m*16+T]*e,this.values[(m+1)*16+T]+=E,this.K[m+1]+=E,this.values[m*16+T]-=E,this.K[m]-=E}e=m=0;T=8192;J>8192&&(m=Math.ceil(Math.log(J/8192)/Math.log(2)),e=8192*Math.pow(2,m-1),T=e*2);m+2>16?this.values[15]+=z:(J=(J-e)/(T-e),this.values[m]+=z*(1-J),this.values[m+1]+=z*J);this.K[0]+=z}; +qA.prototype.ao=function(){var z=z===void 0?this.T:z;var J=J===void 0?.02:J;var m=m===void 0?.98:m;for(var e=this.S,T=0;T<16;T++)e[T]=this.values[T];T=this.K[0];for(var E=1;E<11;E++){var Z=this.K[E];if(Z===0)break;for(var c=Math.min(1,(z-T)/Z),W=0;W<16;W++)e[W]+=this.values[E*16+W]*c;T+=Z*c;if(c<1)break}for(E=z=Z=0;E<16;E++){c=Z+e[E]/T;z+=Math.max(0,Math.min(c,m)-Math.max(Z,J))*(E>0?8192*Math.pow(2,E-1):0);if(c>m)break;Z=c}return z/(m-J)};dc.prototype.xA=function(z,J){z=Math.min(this.K,Math.max(1,Math.round(z*this.resolution)));z+this.T>=this.K&&(this.S=!0);for(;z--;)this.values[this.T]=J,this.T=(this.T+1)%this.K;this.UU=!0}; +dc.prototype.percentile=function(z){var J=this;if(!this.S&&this.T===0)return 0;this.UU&&(g.l9(this.Z,function(m,e){return J.values[m]-J.values[e]}),this.UU=!1); +return this.values[this.Z[Math.round(z*((this.S?this.K:this.T)-1))]]||0}; +dc.prototype.ao=function(){return this.Y?(this.percentile(this.U-this.Y)+this.percentile(this.U)+this.percentile(this.U+this.Y))/3:this.percentile(this.U)};g.p(IJ,g.h);IJ.prototype.qD=function(){var z;(z=this.h6)==null||z.start();if(Y5(this)&&this.policy.X){var J;(J=this.u8)==null||J.l5()}};t21.prototype.C=function(z){return this.experiments.j4(z)};g.p(U4j,g.h);var sOb="blogger ads-preview gac books docs duo flix google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),TU4={ZBx:"caoe",iBF:"capsv",gAD:"cbrand",Nyn:"cbr",FA2:"cbrver",pzW:"cchip",oxW:"ccappver",KYi:"ccrv",f_i:"cfrmver",gyn:"c",FyW:"cver",bVD:"ctheme",Nqy:"cplayer",NlW:"cmodel",HJ1:"cnetwork",KSn:"cos",TJf:"cosver",Iqx:"cplatform",bJx:"crqyear"};g.p(tD,g.h);g.F=tD.prototype;g.F.C=function(z){return this.experiments.j4(z)}; +g.F.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; +g.F.getVideoUrl=function(z,J,m,e,T,E,Z){J={list:J};m&&(T?J.time_continue=m:J.t=m);m=Z?"music.youtube.com":g.Uj(this);T=m==="www.youtube.com";!E&&e&&T?E="https://youtu.be/"+z:g.AD(this)?(E="https://"+m+"/fire",J.v=z):(E&&T?(E=this.protocol+"://"+m+"/shorts/"+z,e&&(J.feature="share")):(E=this.protocol+"://"+m+"/watch",J.v=z),vj&&(z=jLR())&&(J.ebc=z));return g.v1(E,J)}; +g.F.getVideoEmbedCode=function(z,J,m,e){J="https://"+g.Uj(this)+"/embed/"+J;e&&(J=g.v1(J,{list:e}));e=m.width;m=m.height;J=ef(J);z=ef(z!=null?z:"YouTube video player");return'')}; +g.F.supportsGaplessAudio=function(){return g.gS&&!vj&&Hf()>=74||g.V4&&g.Ni(68)?!0:!1}; +g.F.supportsGaplessShorts=function(){return!this.C("html5_enable_short_gapless")||this.Lh||g.Y4?!1:!0}; +g.F.getPlayerType=function(){return this.K.cplayer}; +g.F.AZ=function(){return this.Bk}; +var iuE=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],e8z=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],Zuq=[19];var zn={},llu=(zn["140"]={numChannels:2},zn["141"]={numChannels:2},zn["251"]={audioSampleRate:48E3,numChannels:2},zn["774"]={audioSampleRate:48E3,numChannels:2},zn["380"]={numChannels:6},zn["328"]={numChannels:6},zn["773"]={},zn),J1={},cwq=(J1["1"]='video/mp4; codecs="av01.0.08M.08"',J1["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',J1["1e"]='video/mp4; codecs="av01.0.08M.08"',J1["9"]='video/webm; codecs="vp9"',J1["("]='video/webm; codecs="vp9"',J1["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', +J1.h='video/mp4; codecs="avc1.64001e"',J1.H='video/mp4; codecs="avc1.64001e"',J1.o='audio/webm; codecs="opus"',J1.a='audio/mp4; codecs="mp4a.40.2"',J1.ah='audio/mp4; codecs="mp4a.40.2"',J1.mac3='audio/mp4; codecs="ac-3"; channels=6',J1.meac3='audio/mp4; codecs="ec-3"; channels=6',J1.i='audio/mp4; codecs="iamf.001.001.Opus"',J1),mX={},W6q=(mX["337"]={width:3840,height:2160,bitrate:3E7,fps:30},mX["336"]={width:2560,height:1440,bitrate:15E6,fps:30},mX["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, +mX["702"]={width:7680,height:4320,bitrate:4E7,fps:60},mX["701"]={width:3840,height:2160,bitrate:2E7,fps:60},mX["700"]={width:2560,height:1440,bitrate:1E7,fps:60},mX["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},mX["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},mX["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},mX["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, +mX["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},mX["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},mX["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},mX["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},mX["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},mX["315"]={width:3840,height:2160,bitrate:2E7,fps:60},mX["308"]={width:2560, +height:1440,bitrate:1E7,fps:60},mX["303"]={width:1920,height:1080,bitrate:5E6,fps:60},mX["302"]={width:1280,height:720,bitrate:25E5,fps:60},mX["299"]={width:1920,height:1080,bitrate:75E5,fps:60},mX["298"]={width:1280,height:720,bitrate:35E5,fps:60},mX["571"]={width:7680,height:4320,bitrate:3E7,fps:60},mX["401"]={width:3840,height:2160,bitrate:15E6,fps:60},mX["400"]={width:2560,height:1440,bitrate:75E5,fps:60},mX["399"]={width:1920,height:1080,bitrate:2E6,fps:60},mX["398"]={width:1280,height:720,bitrate:1E6, +fps:60},mX["397"]={width:854,height:480,bitrate:4E5,fps:30},mX["396"]={width:640,height:360,bitrate:25E4,fps:30},mX["787"]={width:1080,height:608,bitrate:2E5,fps:30},mX["788"]={width:1080,height:608,bitrate:4E5,fps:30},mX["572"]={width:7680,height:4320,bitrate:3E7,fps:60},mX["555"]={width:3840,height:2160,bitrate:15E6,fps:60},mX["554"]={width:2560,height:1440,bitrate:75E5,fps:60},mX["553"]={width:1920,height:1080,bitrate:2E6,fps:60},mX["552"]={width:1280,height:720,bitrate:1E6,fps:60},mX["551"]={width:854, +height:480,bitrate:4E5,fps:30},mX["550"]={width:640,height:360,bitrate:25E4,fps:30},mX["313"]={width:3840,height:2160,bitrate:8E6,fps:30},mX["271"]={width:2560,height:1440,bitrate:4E6,fps:30},mX["248"]={width:1920,height:1080,bitrate:2E6,fps:30},mX["247"]={width:1280,height:720,bitrate:15E5,fps:30},mX["244"]={width:854,height:480,bitrate:52E4,fps:30},mX["243"]={width:640,height:360,bitrate:28E4,fps:30},mX["137"]={width:1920,height:1080,bitrate:4E6,fps:30},mX["136"]={width:1280,height:720,bitrate:3E6, +fps:30},mX["135"]={width:854,height:480,bitrate:1E6,fps:30},mX["385"]={width:1920,height:1080,bitrate:6503313,fps:60},mX["376"]={width:1280,height:720,bitrate:5706960,fps:60},mX["384"]={width:1280,height:720,bitrate:3660979,fps:60},mX["225"]={width:1280,height:720,bitrate:5805E3,fps:30},mX["224"]={width:1280,height:720,bitrate:453E4,fps:30},mX["145"]={width:1280,height:720,bitrate:2682052,fps:30},mX);g.F=ih.prototype;g.F.getInfo=function(){return this.K}; +g.F.BE=function(){return null}; +g.F.Ng=function(){var z=this.BE();return z?(z=g.iv(z.QH),Number(z.expire)):NaN}; +g.F.ZR=function(){}; +g.F.getHeight=function(){return this.K.video.height};IlR.prototype.build=function(){ywb(this);var z=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],J={};a:if(this.K)var m=this.K;else{m="";for(var e=g.y(this.S),T=e.next();!T.done;T=e.next())if(T=T.value,T.sC){if(T.sC.getIsDefault()){m=T.sC.getId();break a}m||(m=T.sC.getId())}}e=g.y(this.S);for(T=e.next();!T.done;T=e.next())if(T=T.value,this.Y||!T.sC||T.sC.getId()===m)J[T.itag]||(J[T.itag]=[]),J[T.itag].push(T);m=g.y(this.T);for(e=m.next();!e.done;e=m.next())if(e=e.value,T=J[e.K]){T=g.y(T);for(var E=T.next();!E.done;E= +T.next()){var Z=z,c=Z.push;E=E.value;var W="#EXT-X-MEDIA:TYPE=AUDIO,",l="YES",w="audio";if(E.sC){w=E.sC;var q=w.getId().split(".")[0];q&&(W+='LANGUAGE="'+q+'",');(this.K?this.K===w.getId():w.getIsDefault())||(l="NO");w=w.getName()}q="";e!==null&&(q=e.itag.toString());q=W$(this,E.url,q);W=W+('NAME="'+w+'",DEFAULT='+(l+',AUTOSELECT=YES,GROUP-ID="'))+(pIu(E,e)+'",URI="'+(q+'"'));c.call(Z,W)}}m=g.y(this.Z);for(e=m.next();!e.done;e=m.next())e=e.value,T=bPv,e=(Z=e.sC)?'#EXT-X-MEDIA:URI="'+W$(this,e.url)+ +'",TYPE=SUBTITLES,GROUP-ID="'+T+'",LANGUAGE="'+Z.getId()+'",NAME="'+Z.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,e&&z.push(e);m=this.Z.length>0?bPv:void 0;e=g.y(this.T);for(T=e.next();!T.done;T=e.next())T=T.value,c=J[T.K],Z=void 0,((Z=c)==null?void 0:Z.length)>0&&(Z=T,c=c[0],c="#EXT-X-STREAM-INF:BANDWIDTH="+(Z.bitrate+c.bitrate)+',CODECS="'+(Z.codecs+","+c.codecs+'",RESOLUTION=')+(Z.width+"x"+Z.height+',AUDIO="')+(pIu(c,Z)+'",')+(m?'SUBTITLES="'+m+'",':"")+"CLOSED-CAPTIONS=NONE",Z.fps>1&&(c+= +",FRAME-RATE="+Z.fps),Z.UV&&(c+=",VIDEO-RANGE="+Z.UV),z.push(c),z.push(W$(this,T.url,"")));return z.join("\n")}; +var bPv="text";g.p(lh,ih);lh.prototype.Ng=function(){return this.expiration}; +lh.prototype.BE=function(){if(!this.QH||this.QH.mF()){var z=this.T.build();z="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(z);this.QH=new G1(z)}return this.QH};g.p(wN,ih);wN.prototype.BE=function(){return new G1(this.T.jO())}; +wN.prototype.ZR=function(){this.T=fZ(this.T)};g.p(qJ,ih);qJ.prototype.BE=function(){return new G1(this.T)};var eC={},SRq=(eC.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",eC.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",eC.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",eC);g.F=g.dN.prototype;g.F.getId=function(){return this.id}; +g.F.getName=function(){return this.name}; +g.F.isServable=function(){return this.K}; +g.F.jO=function(){return this.url}; +g.F.getXtags=function(){return this.xtags}; +g.F.toString=function(){return this.languageCode+": "+g.Io(this)+" - "+this.vssId+" - "+(this.captionId||"")}; +g.F.NL=function(z){return z?this.toString()===z.toString():!1}; +g.F.pZ=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var ggs={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},xGR={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},Mxb=/^(\d*)_((\d*)_?(\d*))$/;var ogu={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},jAb={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var Tn={},$cF=(Tn.ALWAYS=1,Tn.BY_REQUEST=3,Tn.UNKNOWN=void 0,Tn),Ey={},gcN=(Ey.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",Ey.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",Ey.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",Ey.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",Ey);var CEb; +CEb=function(z){for(var J=Object.keys(z),m={},e=0;ee-J?-1:z}; +g.F.uQ=function(){return this.T.eO()}; +g.F.eq=function(){return this.T.DO()}; +g.F.Hj=function(z){this.T=z};g.p(P$,uh);P$.prototype.T=function(z,J){return uh.prototype.T.call(this,"$N|"+z,J)}; +P$.prototype.Z=function(z,J,m){return new Vm(z,J,m,this.isLive)};var nAj=[],Qm=new Set;g.p(g.H$,g.wF);g.F=g.H$.prototype; +g.F.setData=function(z){z=z||{};var J=z.errordetail;J!=null&&(this.errorDetail=J);var m=z.errorcode;m!=null?this.errorCode=m:z.status==="fail"&&(this.errorCode="auth");var e=z.reason;e!=null&&(this.errorReason=e);var T=z.subreason;T!=null&&(this.oV=T);this.C("html5_enable_ssap_entity_id")||this.clientPlaybackNonce||(this.clientPlaybackNonce=z.cpn||(this.e4.AZ()?"r"+g.BK(15):g.BK(16)));this.yH=Fa(this.e4.yH,z.livemonitor);Igs(this,z);var E=z.raw_player_response;if(E)this.EV=E;else{var Z=z.player_response; +Z&&(E=JSON.parse(Z))}if(this.C("html5_enable_ssap_entity_id")){var c=z.cached_load;c&&(this.Qp=Fa(this.Qp,c));if(!this.clientPlaybackNonce){var W=z.cpn;W?(this.OM("ssei","shdc"),this.clientPlaybackNonce=W):this.clientPlaybackNonce=this.e4.AZ()?"r"+g.BK(15):g.BK(16)}}E&&(this.playerResponse=E);if(this.playerResponse){var l=this.playerResponse.annotations;if(l)for(var w=g.y(l),q=w.next();!q.done;q=w.next()){var d=q.value.playerAnnotationsUrlsRenderer;if(d){d.adsOnly&&(this.QW=!0);var I=d.loadPolicy; +I&&(this.annotationsLoadPolicy=$cF[I]);var O=d.invideoUrl;O&&(this.nh=eo(O));break}}var G=this.playerResponse.attestation;G&&uk1(this,G);var n=this.playerResponse.cotn;n&&(this.cotn=n);var C=this.playerResponse.heartbeatParams;if(C){qvq(this)&&(this.Y0=!0);var K=C.heartbeatToken;K&&(this.drmSessionId=C.drmSessionId||"",this.heartbeatToken=K,this.Qe=Number(C.intervalMilliseconds),this.ZS=Number(C.maxRetries),this.rY=!!C.softFailOnError,this.dY=!!C.useInnertubeHeartbeatsForDrm,this.Kn=!0);this.heartbeatServerData= +C.heartbeatServerData;var f;this.LV=!((f=C.heartbeatAttestationConfig)==null||!f.requiresAttestation)}var x=this.playerResponse.messages;x&&HuE(this,x);var V=this.playerResponse.overlay;if(V){var zE=V.playerControlsOverlayRenderer;if(zE)if(R8q(this,zE.controlBgHtml),zE.mutedAutoplay){var k=g.P(zE.mutedAutoplay,P99);if(k&&k.endScreen){var Ez=g.P(k.endScreen,tng);Ez&&Ez.text&&(this.LT=g.GZ(Ez.text))}}else this.mutedAutoplay=!1}var ij=this.playerResponse.playabilityStatus;if(ij){var r=ij.backgroundability; +r&&r.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var t,v;if((t=ij.offlineability)==null?0:(v=t.offlineabilityRenderer)==null?0:v.offlineable)this.offlineable=!0;var N=ij.contextParams;N&&(this.contextParams=N);var H=ij.pictureInPicture;H&&H.pictureInPictureRenderer.playableInPip&&(this.pipable=!0);ij.playableInEmbed&&(this.allowEmbed=!0);var Pq=ij.ypcClickwrap;if(Pq){var KN=Pq.playerLegacyDesktopYpcClickwrapRenderer,pN=Pq.ypcRentalActivationRenderer;if(KN)this.sB=KN.durationMessage|| +"",this.Pm=!0;else if(pN){var S4=pN.durationMessage;this.sB=S4?g.GZ(S4):"";this.Pm=!0}}var J4=ij.errorScreen;if(J4){if(J4.playerLegacyDesktopYpcTrailerRenderer){var iF=J4.playerLegacyDesktopYpcTrailerRenderer;this.Pt=iF.trailerVideoId||"";var N1=J4.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var Y=N1&&N1.ypcTrailerRenderer}else if(J4.playerLegacyDesktopYpcOfferRenderer)iF=J4.playerLegacyDesktopYpcOfferRenderer;else if(J4.ypcTrailerRenderer){Y=J4.ypcTrailerRenderer;var a=Y.fullVideoMessage;this.zo= +a?g.GZ(a):"";var B,b;this.Pt=((B=g.P(Y,H04))==null?void 0:(b=B.videoDetails)==null?void 0:b.videoId)||""}iF&&(this.oA=iF.itemTitle||"",iF.itemUrl&&(this.CQ=iF.itemUrl),iF.itemBuyUrl&&(this.fH=iF.itemBuyUrl),this.lA=iF.itemThumbnail||"",this.Jl=iF.offerHeadline||"",this.Tz=iF.offerDescription||"",this.BW=iF.offerId||"",this.Vj=iF.offerButtonText||"",this.M3=iF.offerButtonFormattedText||null,this.e8=iF.overlayDurationMsec||NaN,this.zo=iF.fullVideoMessage||"",this.Z9=!0);if(Y){var A=g.P(Y,H04);if(A)this.cW= +{raw_player_response:A};else{var Ju=g.P(Y,msc);this.cW=Ju?Z8(Ju):null}this.Z9=!0}}}var Zs=this.playerResponse.playbackTracking;if(Zs){var F1=z,M=Gx(Zs.googleRemarketingUrl);M&&(this.googleRemarketingUrl=M);var wu=Gx(Zs.youtubeRemarketingUrl);wu&&(this.youtubeRemarketingUrl=wu);var yR={},Wq=Gx(Zs.ptrackingUrl);if(Wq){var $u=Xw(Wq),yS=$u.oid;yS&&(this.Xk=yS);var VS=$u.pltype;VS&&(this.Wj=VS);var Ok=$u.ptchn;Ok&&(this.qP=Ok);var ku=$u.ptk;ku&&(this.Hw=encodeURIComponent(ku));var Pu=$u.m;Pu&&(this.q7= +Pu)}var w8=Gx(Zs.qoeUrl);if(w8){for(var oa=g.iv(w8),Ri=g.y(Object.keys(oa)),dC=Ri.next();!dC.done;dC=Ri.next()){var Rm=dC.value,ts=oa[Rm];oa[Rm]=Array.isArray(ts)?ts.join(","):ts}this.m7=oa;var kL=oa.cat;kL&&(this.C("html5_enable_qoe_cat_list")?this.R3=this.R3.concat(kL.split(",")):this.Oi=kL);var YL=oa.live;YL&&(this.ZI=YL);var Ii=oa.drm_product;Ii&&(this.hJ=Ii)}var by=Gx(Zs.videostatsPlaybackUrl);if(by){var Oi=Xw(by),$V=Oi.adformat;if($V){F1.adformat=$V;var PD=this.W(),tV=Aw4($V,this.pH,PD.U,PD.V); +tV&&(this.adFormat=tV)}var KS=Oi.aqi;KS&&(F1.ad_query_id=KS);var mr=Oi.autoplay;mr&&(this.oi=mr=="1",this.rk=mr=="1",eM(this,"vss"));var LL=Oi.autonav;LL&&(this.isAutonav=LL=="1");var ZE=Oi.delay;ZE&&(this.gE=ZL(ZE));var oz=Oi.ei;oz&&(this.eventId=oz);if(Oi.adcontext||$V)this.oi=!0,eM(this,"ad");var Jj=Oi.feature;Jj&&(this.vR=Jj);var p0=Oi.list;p0&&(this.playlistId=p0);var C2=Oi.of;C2&&(this.M9=C2);var ab=Oi.osid;ab&&(this.osid=ab);var K2=Oi.referrer;K2&&(this.referrer=K2);var ql=Oi.sdetail;ql&&(this.eA= +ql);var lA=Oi.ssrt;lA&&(this.u7=lA=="1");var d6=Oi.subscribed;d6&&(this.subscribed=d6=="1",this.V.subscribed=d6);var IE=Oi.uga;IE&&(this.userGenderAge=IE);var Bz=Oi.upt;Bz&&(this.mQ=Bz);var Si=Oi.vm;Si&&(this.videoMetadata=Si);yR.playback=Oi}var f2=Gx(Zs.videostatsWatchtimeUrl);if(f2){var DU=Xw(f2),b1=DU.ald;b1&&(this.Iw=b1);yR.watchtime=DU}var $_=Gx(Zs.atrUrl);if($_){var vH=Xw($_);yR.atr=vH}var jp=Gx(Zs.engageUrl);if(jp){var sH=Xw(jp);yR.engage=sH}this.E7=yR;if(Zs.promotedPlaybackTracking){var kf= +Zs.promotedPlaybackTracking;kf.startUrls&&(this.NN=kf.startUrls);kf.firstQuartileUrls&&(this.RL=kf.firstQuartileUrls);kf.secondQuartileUrls&&(this.l4=kf.secondQuartileUrls);kf.thirdQuartileUrls&&(this.tP=kf.thirdQuartileUrls);kf.completeUrls&&(this.pW=kf.completeUrls);kf.engagedViewUrls&&(kf.engagedViewUrls.length>1&&g.hr(new g.vR("There are more than one engaged_view_urls.")),this.KA=kf.engagedViewUrls[0])}}var Op=this.playerResponse.playerCueRanges;Op&&Op.length>0&&(this.cueRanges=Op);var g7=this.playerResponse.playerCueRangeSet; +g7&&g.v$(this,g7);a:{var pM=this.playerResponse.adPlacements;if(pM)for(var x_=g.y(pM),yj=x_.next();!yj.done;yj=x_.next()){var MU=void 0,Ao=void 0,ob=(MU=yj.value.adPlacementRenderer)==null?void 0:(Ao=MU.renderer)==null?void 0:Ao.videoAdTrackingRenderer;if(ob){var ji=ob;break a}}ji=null}var Nl=ji;Zs&&Zs.promotedPlaybackTracking&&Nl&&g.hr(new g.vR("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));var aT;if(!(aT=Nl))a:{for(var ho=g.y(this.playerResponse.adSlots||[]), +Gr=ho.next();!Gr.done;Gr=ho.next()){var Xe=g.P(Gr.value,ur);if(Xe===void 0||!OcE(Xe))break;var u1=void 0,r0=(u1=Xe.fulfillmentContent)==null?void 0:u1.fulfilledLayout,V$=g.P(r0,br);if(V$&&GA(V$)){aT=!0;break a}}aT=!1}aT&&(this.ax=!0);var Pz=this.playerResponse.playerAds;if(Pz)for(var zD=z,to=g.y(Pz),KT=to.next();!KT.done;KT=to.next()){var Hz=KT.value;if(Hz){var U2=Hz.playerLegacyDesktopWatchAdsRenderer;if(U2){var hQ=U2.playerAdParams;if(hQ){hQ.autoplay=="1"&&(this.rk=this.oi=!0);this.Yb=hQ.encodedAdSafetyReason|| +null;hQ.showContentThumbnail!==void 0&&(this.u3=!!hQ.showContentThumbnail);zD.enabled_engage_types=hQ.enabledEngageTypes;break}}}}var KP=this.playerResponse.playerConfig;if(KP){var HD=KP.manifestlessWindowedLiveConfig;if(HD){var Rb=Number(HD.minDvrSequence),nM=Number(HD.maxDvrSequence),BA=Number(HD.minDvrMediaTimeMs),SV=Number(HD.maxDvrMediaTimeMs),Yd=Number(HD.startWalltimeMs);Rb&&(this.Jp=Rb);BA&&(this.Gf=BA/1E3,this.C("html5_sabr_parse_live_metadata_playback_boundaries")&&Fr(this)&&(this.UB=BA/ +1E3));nM&&(this.Ni=nM);SV&&(this.OC=SV/1E3,this.C("html5_sabr_parse_live_metadata_playback_boundaries")&&Fr(this)&&(this.qY=SV/1E3));Yd&&(this.ED=Yd/1E3);(Rb||BA)&&(nM||SV)&&(this.allowLiveDvr=this.isLivePlayback=this.Qx=!0,this.Ol=!1)}var U7=KP.daiConfig;if(U7){if(U7.enableDai){this.Uu=!0;var fT=U7.enableServerStitchedDai;fT&&(this.enableServerStitchedDai=fT);var k_=U7.enablePreroll;k_&&(this.LH=k_)}var mc;if(U7.daiType==="DAI_TYPE_SS_DISABLED"||((mc=U7.debugInfo)==null?0:mc.isDisabledUnpluggedChannel))this.H$= +!0;U7.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.Qg=!0)}var q9=KP.audioConfig;if(q9){var mh=q9.loudnessDb;mh!=null&&(this.US=mh);var A3R=q9.trackAbsoluteLoudnessLkfs;A3R!=null&&(this.Ix=A3R);var o2R=q9.loudnessTargetLkfs;o2R!=null&&(this.loudnessTargetLkfs=o2R);q9.audioMuted&&(this.iV=!0);q9.muteOnStart&&(this.LG=!0);var YA=q9.loudnessNormalizationConfig;if(YA){YA.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);YA.preserveStatefulLoudnessTarget&&(this.preserveStatefulLoudnessTarget= +!0);var jpu=YA.minimumLoudnessTargetLkfs;jpu!=null&&(this.minimumLoudnessTargetLkfs=jpu);var heq=YA.maxStatefulTimeThresholdSec;heq!=null&&(this.maxStatefulTimeThresholdSec=heq)}this.C("web_player_audio_playback_from_audio_config")&&q9.playAudioOnly&&(this.T2=!0)}var Nmq=KP.playbackEndConfig;if(Nmq){var uqq=Nmq.endSeconds,VMj=Nmq.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(uqq&&(this.endSeconds=uqq),VMj&&(this.limitedPlaybackDurationInSeconds=VMj))}var XK=KP.fairPlayConfig;if(XK){var P8z= +XK.certificate;P8z&&(this.O2=il(P8z));var tM1=Number(XK.keyRotationPeriodMs);tM1>0&&(this.F5=tM1);var He4=Number(XK.keyPrefetchMarginMs);He4>0&&(this.W0=He4)}var ZP=KP.playbackStartConfig;if(ZP){this.j8=Number(ZP.startSeconds);var U0q=ZP.liveUtcStartSeconds,Re1=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0;U0q&&!Re1&&(this.liveUtcStartSeconds=Number(U0q));var GOE=ZP.startPosition;if(GOE){var kDf=GOE.utcTimeMillis;kDf&&!Re1&&(this.liveUtcStartSeconds=Number(kDf)*.001);var Lcq=GOE.streamTimeMillis; +Lcq&&(this.qp=Number(Lcq)*.001)}this.progressBarStartPosition=ZP.progressBarStartPosition;this.progressBarEndPosition=ZP.progressBarEndPosition}else{var X51=KP.skippableSegmentsConfig;if(X51){var Qp4=X51.introSkipDurationMs;Qp4&&(this.xK=Number(Qp4)/1E3);var v2q=X51.outroSkipDurationMs;v2q&&(this.VS=Number(v2q)/1E3)}}var nXq=KP.skippableIntroConfig;if(nXq){var sp4=Number(nXq.startMs),r3q=Number(nXq.endMs);isNaN(sp4)||isNaN(r3q)||(this.kx=sp4,this.o1=r3q)}var zCz=KP.streamSelectionConfig;zCz&&(this.qx= +Number(zCz.maxBitrate));var Jp4=KP.vrConfig;Jp4&&(this.UP=Jp4.partialSpherical=="1");var C6=KP.webDrmConfig;if(C6){C6.skipWidevine&&(this.Xu=!0);var mvR=C6.widevineServiceCert;mvR&&(this.Oe=il(mvR));C6.useCobaltWidevine&&(this.useCobaltWidevine=!0);C6.startWithNoQualityConstraint&&(this.ES=!0)}var iI=KP.mediaCommonConfig;if(iI){var nl=iI.dynamicReadaheadConfig;if(nl){this.maxReadAheadMediaTimeMs=nl.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=nl.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs= +nl.readAheadGrowthRateMs||NaN;var eC4,Tkz=iI==null?void 0:(eC4=iI.mediaUstreamerRequestConfig)==null?void 0:eC4.videoPlaybackUstreamerConfig;Tkz&&(this.z7=il(Tkz));var YWq=iI==null?void 0:iI.sabrContextUpdates;if(YWq&&YWq.length>0)for(var Elu=g.y(YWq),CNj=Elu.next();!CNj.done;CNj=Elu.next()){var XP=CNj.value;if(XP.type&&XP.value){var r9v={type:XP.type,scope:XP.scope,value:il(XP.value)||void 0,sendByDefault:XP.sendByDefault};this.sabrContextUpdates.set(XP.type,r9v)}}}var Zj1=iI.serverPlaybackStartConfig; +Zj1&&(this.serverPlaybackStartConfig=Zj1);iI.useServerDrivenAbr&&(this.mY=!0);var FFf=iI.requestPipeliningConfig;FFf&&(this.requestPipeliningConfig=FFf)}var ijq=KP.inlinePlaybackConfig;ijq&&(this.Mm=!!ijq.showAudioControls);var YM=KP.embeddedPlayerConfig;if(YM){this.embeddedPlayerConfig=YM;var amu=YM.embeddedPlayerMode;if(amu){var cpq=this.W();cpq.wb=amu;cpq.S=amu==="EMBEDDED_PLAYER_MODE_PFL"}var WFb=YM.permissions;WFb&&(this.allowImaMonetization=!!WFb.allowImaMonetization)}var lyu=KP.ssapConfig; +lyu&&(this.qm=lyu.ssapPrerollEnabled||!1);var Cl=KP.webPlayerConfig;Cl&&(Cl.gatewayExperimentGroup&&(this.gatewayExperimentGroup=Cl.gatewayExperimentGroup),Cl.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var cd=this.playerResponse.streamingData;if(cd){var K$R=cd.formats;if(K$R){for(var aR=[],wOq=g.y(K$R),BmR=wOq.next();!BmR.done;BmR=wOq.next()){var SW1=BmR.value;aR.push(SW1.itag+"/"+SW1.width+"x"+SW1.height)}this.uT=aR.join(",");aR=[];for(var qhb=g.y(K$R),fmj=qhb.next();!fmj.done;fmj=qhb.next()){var K6= +fmj.value,B3={itag:K6.itag,type:K6.mimeType,quality:K6.quality},dvf=K6.url;dvf&&(B3.url=dvf);var a5=Dr(K6),zJ9=a5.yP,JjO=a5.Le,mpS=a5.s;a5.iY&&(B3.url=zJ9,B3.sp=JjO,B3.s=mpS);aR.push(g.QB(B3))}this.Ks=aR.join(",")}var DEj=cd.hlsFormats;if(DEj&&!this.C("safari_live_drm_captions_fix")){var Iyz=KP||null,Kl={};if(Iyz){var bI4=Iyz.audioPairingConfig;if(bI4&&bI4.pairs)for(var Oju=g.y(bI4.pairs),$Eq=Oju.next();!$Eq.done;$Eq=Oju.next()){var pOf=$Eq.value,gX4=pOf.videoItag;Kl[gX4]||(Kl[gX4]=[]);Kl[gX4].push(pOf.audioItag)}}for(var ypE= +{},Nkb=g.y(DEj),xEz=Nkb.next();!xEz.done;xEz=Nkb.next()){var GTb=xEz.value;ypE[GTb.itag]=GTb.bitrate}for(var XOE=[],nls=g.y(DEj),Mts=nls.next();!Mts.done;Mts=nls.next()){var Tw=Mts.value,bA={itag:Tw.itag,type:Tw.mimeType,url:Tw.url,bitrate:Tw.bitrate,width:Tw.width,height:Tw.height,fps:Tw.fps},B4=Tw.audioTrack;if(B4){var Yhf=B4.displayName;Yhf&&(bA.name=Yhf,bA.audio_track_id=B4.id,B4.audioIsDefault&&(bA.is_default="1"))}if(Tw.drmFamilies){for(var C64=[],ayq=g.y(Tw.drmFamilies),ABE=ayq.next();!ABE.done;ABE= +ayq.next())C64.push(OY[ABE.value]);bA.drm_families=C64.join(",")}var S_=Kl[Tw.itag];if(S_&&S_.length){bA.audio_itag=S_.join(",");var KFu=ypE[S_[0]];KFu&&(bA.bitrate+=KFu)}var Bkz=S2E(Tw);Bkz&&(bA.eotf=Bkz);Tw.audioChannels&&(bA.audio_channels=Tw.audioChannels);XOE.push(g.QB(bA))}this.hlsFormats=XOE.join(",")}var oX1=cd.licenseInfos;if(oX1&&oX1.length>0){for(var Sh4={},fy4=g.y(oX1),jru=fy4.next();!jru.done;jru=fy4.next()){var Dvu=jru.value,bju=Dvu.drmFamily,$vs=Dvu.url;bju&&$vs&&(Sh4[OY[bju]]=$vs)}this.Nx= +Sh4}var gl1=cd.drmParams;gl1&&(this.drmParams=gl1);var xv4=cd.dashManifestUrl;xv4&&(this.OD=g.v1(xv4,{cpn:this.clientPlaybackNonce}));var Mw1=cd.hlsManifestUrl;Mw1&&(this.hlsvp=Mw1);var ApR=cd.probeUrl;ApR&&(this.probeUrl=eo(g.v1(ApR,{cpn:this.clientPlaybackNonce})));var olz=cd.serverAbrStreamingUrl;olz&&(this.Gp=new g.CZ(olz,!0))}var jcu=this.playerResponse.trackingParams;jcu&&(this.x3=jcu);var Q9=this.playerResponse.videoDetails;if(Q9){var $Z=z,h_j=Q9.videoId;h_j&&(this.videoId=h_j,$Z.video_id|| +($Z.video_id=h_j));var hCj=Q9.channelId;hCj&&(this.V.uid=hCj.substring(2));var uGE=Q9.title;uGE&&(this.title=uGE,$Z.title||($Z.title=uGE));var Vtf=Q9.lengthSeconds;Vtf&&(this.lengthSeconds=Number(Vtf),$Z.length_seconds||($Z.length_seconds=Vtf));var uOu=Q9.keywords;uOu&&(this.keywords=GAb(uOu));var PN4=Q9.channelId;PN4&&(this.Ab=PN4,$Z.ucid||($Z.ucid=PN4));var Vwb=Q9.viewCount;Vwb&&(this.rawViewCount=Number(Vwb));var ttz=Q9.author;ttz&&(this.author=ttz,$Z.author||($Z.author=ttz));var P6b=Q9.shortDescription; +P6b&&(this.shortDescription=P6b);var twb=Q9.isCrawlable;twb&&(this.isListed=twb);var Hju=Q9.musicVideoType;Hju&&(this.musicVideoType=Hju);var HIb=Q9.isLive;HIb!=null&&(this.isLivePlayback=HIb);if(HIb||Q9.isUpcoming)this.isPremiere=!Q9.isLiveContent;var Uvu=Q9.thumbnail;Uvu&&(this.B=NJ(Uvu));var RC4=Q9.isExternallyHostedPodcast;RC4&&(this.isExternallyHostedPodcast=RC4);var UEz=Q9.viewerLivestreamJoinPosition;if(UEz==null?0:UEz.utcTimeMillis)this.Rw=ZL(UEz.utcTimeMillis);var kTE=KP||null,R_b=z;Q9.isLiveDefaultBroadcast&& +(this.isLiveDefaultBroadcast=!0);Q9.isUpcoming&&(this.isUpcoming=!0);if(Q9.isPostLiveDvr){this.Ol=!0;var LFf=Q9.latencyClass;LFf&&(this.latencyClass=gcN[LFf]||"UNKNOWN");Q9.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var kOf=!1;this.yH?(this.allowLiveDvr=mz()?!0:JY&&t$<5?!1:!0,this.isLivePlayback=!0):Q9.isLive?(R_b.livestream="1",this.allowLiveDvr=Q9.isLiveDvrEnabled?mz()?!0:JY&&t$<5?!1:!0:!1,this.partnerId=27,kOf=!0):Q9.isUpcoming&&(kOf=!0);if(Q9.isLive||this.yH&&this.C("html5_parse_live_monitor_flags")){Q9.isLowLatencyLiveStream&& +(this.isLowLatencyLiveStream=!0);var QcE=Q9.latencyClass;QcE&&(this.latencyClass=gcN[QcE]||"UNKNOWN");var vlu=Q9.liveChunkReadahead;vlu&&(this.liveChunkReadahead=vlu);var Fo=kTE&&kTE.livePlayerConfig;if(Fo){Fo.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);Fo.hasSubfragmentedWebm&&(this.xa=!0);Fo.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var scR=Fo.liveExperimentalContentId;scR&&(this.liveExperimentalContentId=Number(scR));var rpq=Fo.isLiveHeadPlayable;this.C("html5_live_head_playable")&& +rpq!=null&&(this.isLiveHeadPlayable=rpq)}}kOf&&(this.isLivePlayback=!0,R_b.adformat&&R_b.adformat.split("_")[1]!=="8"||this.Tf.push("heartbeat"),this.Kn=!0)}var zHu=Q9.isPrivate;zHu!==void 0&&(this.isPrivate=Fa(this.isPrivate,zHu))}if(ij){var Jau=Q9||null,mm4=!1,iG=ij.errorScreen;mm4=iG&&(iG.playerLegacyDesktopYpcOfferRenderer||iG.playerLegacyDesktopYpcTrailerRenderer||iG.ypcTrailerRenderer)?!0:Jau&&Jau.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(ij.status);if(!mm4){this.errorCode= +flR(ij.errorCode)||"auth";var fl=iG&&iG.playerErrorMessageRenderer;if(fl){this.playerErrorMessageRenderer=fl;var eH1=fl.reason;eH1&&(this.errorReason=g.GZ(eH1));var L$u=fl.subreason;L$u&&(this.oV=g.GZ(L$u),this.TH=L$u)}else this.errorReason=ij.reason||null;var Qr1=ij.status;if(Qr1==="LOGIN_REQUIRED")this.errorDetail="1";else if(Qr1==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(Qr1==="AGE_CHECK_REQUIRED"){var TDs=ij.errorScreen,Epb=TDs&&TDs.playerKavRenderer;this.errorDetail=Epb&&Epb.kavUrl? +"4":"3"}else this.errorDetail=ij.isBlockedInRestrictedMode?"5":"0"}}var Zsu=this.playerResponse.interstitialPods;Zsu&&txR(this,Zsu);this.nh&&this.eventId&&(this.nh=Wf(this.nh,{ei:this.eventId}));var vXR=this.playerResponse.captions;if(vXR&&vXR.playerCaptionsTracklistRenderer)a:{var gX=vXR.playerCaptionsTracklistRenderer;this.captionTracks=[];if(gX.captionTracks)for(var F3E=g.y(gX.captionTracks),sru=F3E.next();!sru.done;sru=F3E.next()){var xZ=sru.value,isq=p3b(xZ.baseUrl);if(!isq)break a;var rBu={is_translateable:!!xZ.isTranslatable, +languageCode:xZ.languageCode,languageName:xZ.name&&g.GZ(xZ.name),url:isq,vss_id:xZ.vssId,kind:xZ.kind};rBu.name=xZ.trackName;rBu.displayName=xZ.name&&g.GZ(xZ.name);this.captionTracks.push(new g.dN(rBu))}this.Uo=gX.audioTracks||[];this.pM=gX.defaultAudioTrackIndex||0;this.hd=[];if(gX.translationLanguages)for(var caq=g.y(gX.translationLanguages),z4z=caq.next();!z4z.done;z4z=caq.next()){var cB=z4z.value,ng={};ng.languageCode=cB.languageCode;ng.languageName=g.GZ(cB.languageName);if(cB.translationSourceTrackIndices){ng.translationSourceTrackIndices= +[];for(var W3q=g.y(cB.translationSourceTrackIndices),JPb=W3q.next();!JPb.done;JPb=W3q.next())ng.translationSourceTrackIndices.push(JPb.value)}if(cB.excludeAudioTrackIndices){ng.excludeAudioTrackIndices=[];for(var lM4=g.y(cB.excludeAudioTrackIndices),mrR=lM4.next();!mrR.done;mrR=lM4.next())ng.excludeAudioTrackIndices.push(mrR.value)}this.hd.push(ng)}this.IL=[];if(gX.defaultTranslationSourceTrackIndices)for(var wXb=g.y(gX.defaultTranslationSourceTrackIndices),e4z=wXb.next();!e4z.done;e4z=wXb.next())this.IL.push(e4z.value); +this.iA=!!gX.contribute&&!!gX.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.j8=Number(this.clipConfig.startTimeMs)*.001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&UGq(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var qNq;this.compositeLiveIngestionOffsetToken= +(qNq=this.playerResponse.playbackTracking)==null?void 0:qNq.compositeLiveIngestionOffsetToken;var dm1;this.compositeLiveStatusToken=(dm1=this.playerResponse.playbackTracking)==null?void 0:dm1.compositeLiveStatusToken}Ro(this,z);z.queue_info&&(this.queueInfo=z.queue_info);var IMu=z.hlsdvr;IMu!=null&&(this.allowLiveDvr=Number(IMu)===1?mz()?!0:JY&&t$<5?!1:!0:!1);this.adQueryId=z.ad_query_id||null;this.Yb||(this.Yb=z.encoded_ad_safety_reason||null);this.lL=z.agcid||null;this.v2=z.ad_id||null;this.T$= +z.ad_sys||null;this.JS=z.encoded_ad_playback_context||null;this.iV=Fa(this.iV,z.infringe||z.muted);this.Gh=z.authkey;this.vM=z.authuser;this.mutedAutoplay=Fa(this.mutedAutoplay,z&&z.playmuted);this.mutedAutoplayDurationMode=cR(this.mutedAutoplayDurationMode,z&&z.muted_autoplay_duration_mode);this.S7=Fa(this.S7,z&&z.mutedautoplay);var Di=z.length_seconds;Di&&(this.lengthSeconds=typeof Di==="string"?ZL(Di):Di);if(this.isAd()||this.jY||!g.ds(g.jR(this.e4)))this.endSeconds=cR(this.endSeconds,this.VS|| +z.end||z.endSeconds);else{var eJv=g.jR(this.e4),b3=this.lengthSeconds;switch(eJv){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":b3>30?this.limitedPlaybackDurationInSeconds=30:b3<30&&b3>10&&(this.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=b3*.2}}this.x3=WR(this.x3,z.itct);this.Se=Fa(this.Se,z.noiba);this.DS=Fa(this.DS,z.is_live_destination);this.isLivePlayback=Fa(this.isLivePlayback,z.live_playback); +this.enableServerStitchedDai=this.enableServerStitchedDai&&this.Cq();z.isUpcoming&&(this.isUpcoming=Fa(this.isUpcoming,z.isUpcoming));this.Ol=Fa(this.Ol,z.post_live_playback);this.Qx&&(this.Ol=!1);this.isMdxPlayback=Fa(this.isMdxPlayback,z.mdx);var $M=z.mdx_control_mode;$M&&(this.mdxControlMode=typeof $M==="number"?$M:ZL($M));this.isInlinePlaybackNoAd=Fa(this.isInlinePlaybackNoAd,z.is_inline_playback_no_ad);this.l8=cR(this.l8,z.reload_count);this.reloadReason=WR(this.reloadReason,z.reload_reason); +this.u3=Fa(this.u3,z.show_content_thumbnail);this.QS=Fa(this.QS,z.utpsa);this.cycToken=z.cyc||null;this.G$=z.tkn||null;var Osu=ym(z);Object.keys(Osu).length>0&&(this.B=Osu);this.fh=WR(this.fh,z.vvt);this.mdxEnvironment=WR(this.mdxEnvironment,z.mdx_environment);z.source_container_playlist_id&&(this.sourceContainerPlaylistId=z.source_container_playlist_id);z.serialized_mdx_metadata&&(this.serializedMdxMetadata=z.serialized_mdx_metadata);this.QG=z.osig;this.eventId||(this.eventId=z.eventid);this.osid|| +(this.osid=z.osid);this.playlistId=WR(this.playlistId,z.list);z.index&&(this.playlistIndex=this.playlistIndex===void 0?cR(0,z.index):cR(this.playlistIndex,z.index));this.lc=z.pyv_view_beacon_url;this.wh=z.pyv_quartile25_beacon_url;this.iK=z.pyv_quartile50_beacon_url;this.Pq=z.pyv_quartile75_beacon_url;this.vP=z.pyv_quartile100_beacon_url;var pXu=z.session_data;!this.Xh&&pXu&&(this.Xh=To(pXu,"&").feature);this.isFling=cR(this.isFling?1:0,z.is_fling)===1;this.vnd=cR(this.vnd,z.vnd);this.forceAdsUrl= +WR(this.forceAdsUrl,z.force_ads_url);this.h8=WR(this.h8,z.ctrl);this.wu=WR(this.wu,z.ytr);this.pz=z.ytrcc;this.w7=z.ytrexp;this.KW=z.ytrext;this.Rs=WR(this.Rs,z.adformat);this.pH=WR(this.pH,z.attrib);this.slotPosition=cR(this.slotPosition,z.slot_pos);this.breakType=z.break_type;this.u7=Fa(this.u7,z.ssrt);this.videoId=ws(z)||this.videoId;this.Y=WR(this.Y,z.vss_credentials_token);this.nJ=WR(this.nJ,z.vss_credentials_token_type);this.T2=Fa(this.T2,z.audio_only);this.h6=Fa(this.h6,z.aac_high);this.kd= +Fa(this.kd,z.prefer_low_quality_audio);this.hP=Fa(this.hP,z.uncap_inline_quality);this.C("html5_enable_qoe_cat_list")?z.qoe_cat&&(this.R3=this.R3.concat(z.qoe_cat.split(","))):this.Oi=WR(this.Oi,z.qoe_cat);this.bG=Fa(this.bG,z.download_media);var yaR=z.prefer_gapless;this.X=yaR!=null?Fa(this.X,yaR):this.X?this.X:this.e4.preferGapless&&this.e4.supportsGaplessShorts();tSu(this.playerResponse)&&this.Tf.push("ad");var NDb=z.adaptive_fmts;NDb&&(this.adaptiveFormats=NDb,this.ph("adpfmts",{},!0));var G0R= +z.allow_embed;G0R&&(this.allowEmbed=Number(G0R)===1);var XX1=z.backgroundable;XX1&&(this.backgroundable=Number(XX1)===1);var npu=z.autonav;npu&&(this.isAutonav=Number(npu)===1);var YNq=z.autoplay;YNq&&(this.oi=this.rk=Number(YNq)===1,eM(this,"c"));var Cou=z.iv_load_policy;Cou&&(this.annotationsLoadPolicy=iM(this.annotationsLoadPolicy,Cou,hD));var aM4=z.cc_lang_pref;aM4&&(this.captionsLanguagePreference=WR(aM4,this.captionsLanguagePreference));var K34=z.cc_load_policy;K34&&(this.JN=iM(this.JN,K34, +hD));var BDR;this.deviceCaptionsOn=(BDR=z.device_captions_on)!=null?BDR:void 0;var SNj;this.CM=(SNj=z.device_captions_lang_pref)!=null?SNj:"";var fMs;this.VB=(fMs=z.viewer_selected_caption_langs)!=null?fMs:[];if(!this.C("html5_enable_ssap_entity_id")){var Dmq=z.cached_load;Dmq&&(this.Qp=Fa(this.Qp,Dmq))}if(z.dash==="0"||z.dash===0||z.dash===!1)this.Eo=!0;var bsq=z.dashmpd;bsq&&(this.OD=g.v1(bsq,{cpn:this.clientPlaybackNonce}));var $ms=z.delay;$ms&&(this.gE=ZL($ms));var TCu=this.VS||z.end;if(this.Wr? +TCu!=null:TCu!=void 0)this.clipEnd=cR(this.clipEnd,TCu);var gpz=z.fmt_list;gpz&&(this.uT=gpz);z.heartbeat_preroll&&this.Tf.push("heartbeat");this.zJ=-Math.floor(Math.random()*10);this.H2=-Math.floor(Math.random()*40);var xmu=z.is_listed;xmu&&(this.isListed=Fa(this.isListed,xmu));var MWz=z.is_private;MWz&&(this.isPrivate=Fa(this.isPrivate,MWz));var Aau=z.is_dni;Aau&&(this.yb=Fa(this.yb,Aau));var op4=z.dni_color;op4&&(this.Vp=WR(this.Vp,op4));var jFb=z.pipable;jFb&&(this.pipable=Fa(this.pipable,jFb)); +this.Nn=(this.tq=this.pipable&&this.e4.e8)&&!this.e4.showMiniplayerButton;var hHb=z.paid_content_overlay_duration_ms;hHb&&(this.paidContentOverlayDurationMs=ZL(hHb));var uLu=z.paid_content_overlay_text;uLu&&(this.paidContentOverlayText=uLu);var VWj=z.url_encoded_fmt_stream_map;VWj&&(this.Ks=VWj);var Po1=z.hls_formats;Po1&&(this.hlsFormats=Po1);var tWz=z.hlsvp;tWz&&(this.hlsvp=tWz);var gI=z.live_start_walltime;gI&&(this.hN=typeof gI==="number"?gI:ZL(gI));var xM=z.live_manifest_duration;xM&&(this.J7= +typeof xM==="number"?xM:ZL(xM));var Hs1=z.player_params;Hs1&&(this.playerParams=Hs1);var Umj=z.partnerid;Umj&&(this.partnerId=cR(this.partnerId,Umj));var RHu=z.probe_url;RHu&&(this.probeUrl=eo(g.v1(RHu,{cpn:this.clientPlaybackNonce})));var Efz=z.pyv_billable_url;Efz&&zAu(Efz)&&(this.KA=Efz);var ZYq=z.pyv_conv_url;ZYq&&zAu(ZYq)&&(this.MO=ZYq);X3b(this,z);this.startSeconds>0?this.C("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.j8||this.xK||z.start||z.startSeconds)&&this.ph("lss", +{css:this.startSeconds,pcss:this.j8,iss:this.xK,ps:z.start||void 0,pss:z.startSeconds||void 0}):this.ub=this.startSeconds=cR(this.startSeconds,this.j8||this.xK||z.start||z.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var k0R=z.live_utc_start;if(k0R!=null)this.liveUtcStartSeconds=Number(k0R);else{var FPq=this.startSeconds;FPq&&isFinite(FPq)&&FPq>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var L3j=z.utc_start_millis; +L3j&&(this.liveUtcStartSeconds=Number(L3j)*.001)}var QFz=z.stream_time_start_millis;QFz&&(this.qp=Number(QFz)*.001);var iYq=this.xK||z.start;(this.Wr?iYq==null||Number(z.resume)===1:iYq==void 0||z.resume=="1")||this.isLivePlayback||(this.clipStart=cR(this.clipStart,iYq));var vpR=z.url_encoded_third_party_media;vpR&&(this.Fj=Fj(vpR));var cPE=z.ypc_offer_button_formatted_text;if(cPE){var sFb=JSON.parse(cPE);this.M3=sFb!=null?sFb:null;this.d3=cPE}var ra4=z.ypc_offer_button_text;ra4&&(this.Vj=ra4);var zRu= +z.ypc_offer_description;zRu&&(this.Tz=zRu);var J6u=z.ypc_offer_headline;J6u&&(this.Jl=J6u);var mn1=z.ypc_full_video_message;mn1&&(this.zo=mn1);var eRq=z.ypc_offer_id;eRq&&(this.BW=eRq);var Trz=z.ypc_buy_url;Trz&&(this.fH=Trz);var ESR=z.ypc_item_thumbnail;ESR&&(this.lA=ESR);var ZCz=z.ypc_item_title;ZCz&&(this.oA=ZCz);var F7f=z.ypc_item_url;F7f&&(this.CQ=F7f);var iCu=z.ypc_vid;iCu&&(this.Pt=iCu);z.ypc_overlay_timeout&&(this.e8=Number(z.ypc_overlay_timeout));var c6q=z.ypc_trailer_player_vars;c6q&&(this.cW= +Z8(c6q));var W74=z.ypc_original_itct;W74&&(this.cS=W74);this.Ab=WR(this.Ab,z.ucid);z.baseUrl&&(this.V.baseUrl=z.baseUrl);z.uid&&(this.V.uid=z.uid);z.oeid&&(this.V.oeid=z.oeid);z.ieid&&(this.V.ieid=z.ieid);z.ppe&&(this.V.ppe=z.ppe);z.engaged&&(this.V.engaged=z.engaged);z.subscribed&&(this.V.subscribed=z.subscribed);this.V.focEnabled=Fa(this.V.focEnabled,z.focEnabled);this.V.rmktEnabled=Fa(this.V.rmktEnabled,z.rmktEnabled);this.Qj=z.storyboard_spec||null;this.Ef=z.live_storyboard_spec||null;this.JE= +z.iv_endscreen_url||null;this.Kn=Fa(this.Kn,z.ypc_license_checker_module);this.Z9=Fa(this.Z9,z.ypc_module);this.Pm=Fa(this.Pm,z.ypc_clickwrap_module);this.Z9&&this.Tf.push("ypc");this.Pm&&this.Tf.push("ypc_clickwrap");this.Fk={video_id:z.video_id,eventid:z.eventid,cbrand:z.cbrand,cbr:z.cbr,cbrver:z.cbrver,c:z.c,cver:z.cver,ctheme:z.ctheme,cplayer:z.cplayer,cmodel:z.cmodel,cnetwork:z.cnetwork,cos:z.cos,cosver:z.cosver,cplatform:z.cplatform,user_age:z.user_age,user_display_image:z.user_display_image, +user_display_name:z.user_display_name,user_gender:z.user_gender,csi_page_type:z.csi_page_type,csi_service_name:z.csi_service_name,enablecsi:z.enablecsi,enabled_engage_types:z.enabled_engage_types};O6j(this,z);var lY1=z.cotn;lY1&&(this.cotn=lY1);if(xWf(this))WH(this)&&(this.isLivePlayback&&this.OD&&(this.jf=!0),this.O2&&(this.S8=!0));else if(Mvb(this))this.jf=!0;else{var wsu,q9s,dnb=((wsu=this.playerResponse)==null?void 0:(q9s=wsu.streamingData)==null?void 0:q9s.adaptiveFormats)||[];if(dnb.length> +0)var Sv=gAf(this,dnb);else{var IYu=this.adaptiveFormats;if(IYu&&!WH(this)){this.e4.Z.S&&(ft=!0);var WB=pn(IYu),WPq=this.Nx,OCb=this.lengthSeconds,Tje=this.isLivePlayback,f6=this.Ol,lG=this.e4,EJ$=tib(WB);if(Tje||f6){var psu=lG==null?void 0:lG.experiments,PY=new dK("",psu,!0);PY.Cq=!0;PY.isManifestless=!0;PY.T=!f6;PY.isLive=!f6;PY.Ol=f6;for(var y6q=g.y(WB),lL1=y6q.next();!lL1.done;lL1=y6q.next()){var wG=lL1.value,Nr1=y4(wG,WPq),Yw=Nd(wG.url,wG.sp,wG.s),GGj=Yw.get("id");GGj&&GGj.includes("%7E")&&(PY.B= +!0);var Xsf=void 0,ZH9=(Xsf=psu)==null?void 0:Xsf.j4("html5_max_known_end_time_rebase"),Fh1=Number(wG.target_duration_sec)||5,iH4=Number(wG.max_dvr_duration_sec)||14400,nSu=Number(Yw.get("mindsq")||Yw.get("min_sq")||"0"),Y9b=Number(Yw.get("maxdsq")||Yw.get("max_sq")||"0")||Infinity;PY.Jp=PY.Jp||nSu;PY.Ni=PY.Ni||Y9b;var cjF=!E2(Nr1.mimeType);Yw&&ls(PY,new sI(Yw,Nr1,{Sd:Fh1,zC:cjF,DJ:iH4,Jp:nSu,Ni:Y9b,AL:300,Ol:f6,fU:ZH9}))}var CCb=PY}else{if(EJ$==="FORMAT_STREAM_TYPE_OTF"){var MC=OCb;MC=MC===void 0? +0:MC;var qz=new dK("",lG==null?void 0:lG.experiments,!1);qz.duration=MC||0;for(var aYj=g.y(WB),wmu=aYj.next();!wmu.done;wmu=aYj.next()){var dG=wmu.value,q8q=y4(dG,WPq,qz.duration),drb=Nd(dG.url,dG.sp,dG.s);if(drb)if(q8q.streamType==="FORMAT_STREAM_TYPE_OTF")ls(qz,new rt(drb,q8q,"sq/0"));else{var Whc=Dh(dG.init),l8N=Dh(dG.index);ls(qz,new is(drb,q8q,Whc,l8N))}}qz.isOtf=!0;var K7f=qz}else{var AH=OCb;AH=AH===void 0?0:AH;var o5=new dK("",lG==null?void 0:lG.experiments,!1);o5.duration=AH||0;for(var Br1= +g.y(WB),ILf=Br1.next();!ILf.done;ILf=Br1.next()){var I6=ILf.value,wfO=y4(I6,WPq,o5.duration),qL1=Dh(I6.init),dpS=Dh(I6.index),S9E=Nd(I6.url,I6.sp,I6.s);S9E&&ls(o5,new is(S9E,wfO,qL1,dpS))}K7f=o5}CCb=K7f}var fY1=CCb;if(WB.length>0){var Dnb=WB[0];if(this.W().playerStyle==="hangouts-meet"&&Dnb.url){var I8S=g.iv(Dnb.url);this.BR=this.BR||Number(I8S.expire)}}var OH1=this.isLivePlayback&&!this.Ol&&!this.Qx&&!this.isPremiere;this.C("html5_live_head_playable")&&(!li(this)&&OH1&&this.ph("missingLiveHeadPlayable", +{}),this.e4.Ry==="yt"&&(fY1.qD=!0));Sv=fY1}else Sv=null;this.ph("pafmts",{isManifestFilled:!!Sv})}if(Sv){d0(this,Sv);var bCf=!0}else bCf=!1;bCf?this.enableServerStitchedDai=this.enableServerStitchedDai&&w0(this):this.OD&&(this.e4.Ry==="yt"&&this.Cq()&&this.C("drm_manifestless_unplugged")&&this.C("html5_deprecate_manifestful_fallback")?this.ph("deprecateMflFallback",{}):this.jf=!0)}var OYR=z.adpings;OYR&&(this.GA=OYR?Z8(OYR):null);var $nE=z.feature;$nE&&(this.vR=$nE);var gSz=z.referrer;gSz&&(this.referrer= +gSz);this.clientScreenNonce=WR(this.clientScreenNonce,z.csn);this.TP=cR(this.TP,z.root_ve_type);this.U7=cR(this.U7,z.kids_age_up_mode);this.Wr||z.kids_app_info==void 0||(this.kidsAppInfo=z.kids_app_info);this.Wr&&z.kids_app_info!=null&&(this.kidsAppInfo=z.kids_app_info);this.ZD=Fa(this.ZD,z.upg_content_filter_mode);this.unpluggedFilterModeType=cR(this.unpluggedFilterModeType,z.unplugged_filter_mode_type);var xnR=z.unplugged_location_info;xnR&&(this.Ry=xnR);var MQz=z.unplugged_partner_opt_out;MQz&& +(this.fW=WR("",MQz));this.M7=Fa(this.M7,z.disable_watch_next);this.Oj=WR(this.Oj,z.internal_ip_override);this.UX=!!z.is_yto_interstitial;(this.interstitials.length||this.UX)&&this.Tf.push("yto");var A6R=z.I$;A6R&&(this.I$=A6R);var oS1;this.qD=(oS1=z.csi_timer)!=null?oS1:"";this.jx=!!z.force_gvi;z.watchUrl&&(this.watchUrl=z.watchUrl);var Cg=z.watch_endpoint;this.C("html5_attach_watch_endpoint_ustreamer_config")&&Cg&&buR(this,Cg);if(Cg==null?0:Cg.ustreamerConfig)this.vt=il(Cg.ustreamerConfig);var jfz, +hRR,utu=Cg==null?void 0:(jfz=Cg.loggingContext)==null?void 0:(hRR=jfz.qoeLoggingContext)==null?void 0:hRR.serializedContextData;utu&&(this.Jm=utu);g.fi(this.e4)&&this.e4.MY&&(this.embedsRct=WR(this.embedsRct,z.rct),this.embedsRctn=WR(this.embedsRctn,z.rctn));this.MY=this.MY||!!z.pause_at_start;z.default_active_source_video_id&&(this.defaultActiveSourceVideoId=z.default_active_source_video_id)}; +g.F.W=function(){return this.e4}; +g.F.C=function(z){return this.e4.C(z)}; +g.F.Bm=function(){return!this.isLivePlayback||this.allowLiveDvr}; +g.F.hasSupportedAudio51Tracks=function(){var z;return!((z=this.s4)==null||!z.Hd)}; +g.F.getUserAudio51Preference=function(){var z=1;sj(this.e4)&&this.C("html5_ytv_surround_toggle_default_off")?z=0:g.Li(this.e4)&&this.isLivePlayback&&this.xE()&&(z=0);var J;return(J=g.jO("yt-player-audio51"))!=null?J:z}; +g.F.Ze=function(){this.mF()||(this.K.T||this.K.unsubscribe("refresh",this.Ze,this),this.LI(-1))}; +g.F.LI=function(z){if(!this.isLivePlayback||!this.Z||this.Z.flavor!=="fairplay"){var J=UUE(this.K,this.m0);if(J.length>0){for(var m=g.y(J),e=m.next();!e.done;e=m.next())e=e.value,e.startSecs=Math.max(e.startSecs,this.JX()),this.C("html5_cuepoint_identifier_logging")&&e.event==="start"&&this.ph("cuepoint",{pubCue:e.identifier,segNum:z});this.publish("cuepointupdated",J,z);this.m0+=J.length;if(w0(this)&&this.e4.AZ())for(J=g.y(J),m=J.next();!m.done;m=J.next())m=m.value,this.ph("cuepoint",{segNum:z,event:m.event, +startSecs:m.startSecs,id:m.identifier.slice(-16)}),m.event==="start"&&(m=m.startSecs,this.oL.start=this.ND,this.oL.end=m+3)}}}; +g.F.sP=function(){this.mF()||(this.loading=!1,this.publish("dataloaded"))}; +g.F.xE=function(){return this.ZF!==void 0?this.ZF:this.ZF=!!this.Nx||!!this.K&&pZ(this.K)}; +g.F.vn=function(z){var J=this;if(this.mF())return Mp();this.Zo=this.Hd=this.S=null;Ln(this,"html5_high_res_logging_always")&&(this.e4.Bk=!0);return h7u(this,z).then(void 0,function(){return Vvq(J,z)}).then(void 0,function(){return Pru(J)}).then(void 0,function(){return H6q(J)})}; +g.F.q8=function(z){this.S=z;u3j(this,this.S.getAvailableAudioTracks());if(this.S){z=g.y(this.S.videoInfos);for(var J=z.next();!J.done;J=z.next()){J=J.value;var m=J.containerType;m!==0&&(this.aL[m]=J.id)}}Cn(this);if(this.Z&&this.S&&this.S.videoInfos&&!(this.S.videoInfos.length<=0)&&(z=Jo(this.S.videoInfos[0]),this.Z.flavor==="fairplay"!==z))for(J=g.y(this.k$),m=J.next();!m.done;m=J.next())if(m=m.value,z===(m.flavor==="fairplay")){this.Z=m;break}}; +g.F.LF=function(){if(this.cotn)return null;var z=g.K1(this.e4)||this.C("web_l3_storyboard");if(!this.Ee)if(this.playerResponse&&this.playerResponse.storyboards){var J=this.playerResponse.storyboards,m=J.playerStoryboardSpecRenderer;m&&m.spec?this.Ee=new uh(m.spec,this.lengthSeconds,void 0,!1,z):(J=J.playerLiveStoryboardSpecRenderer)&&J.spec&&this.K&&(m=u7q(this.K.K).index)&&(this.Ee=new P$(J.spec,this.K.isLive,m,z))}else this.Qj?this.Ee=new uh(this.Qj,this.lengthSeconds,void 0,!1,z):this.Ef&&this.K&& +(J=u7q(this.K.K).index)&&(this.Ee=new P$(this.Ef,this.K.isLive,J,z));return this.Ee}; +g.F.getStoryboardFormat=function(){if(this.cotn)return null;if(this.playerResponse&&this.playerResponse.storyboards){var z=this.playerResponse.storyboards;return(z=z.playerStoryboardSpecRenderer||z.playerLiveStoryboardSpecRenderer)&&z.spec||null}return this.Qj||this.Ef}; +g.F.Aw=function(){return this.K&&!isNaN(this.K.Aw())?this.K.Aw():w0(this)?0:this.lengthSeconds}; +g.F.JX=function(){return this.K&&!isNaN(this.K.JX())?this.K.JX():0}; +g.F.getPlaylistSequenceForTime=function(z){if(this.K&&this.T){var J=this.K.K[this.T.id];if(!J)return null;var m=J.index.T7(z);J=J.index.getStartTime(m);return{sequence:m,elapsed:Math.floor((z-J)*1E3)}}return null}; +g.F.pZ=function(){return!this.mF()&&!(!this.videoId&&!this.Fj)}; +g.F.im=function(){var z,J,m;return!!this.adaptiveFormats||!!((z=this.playerResponse)==null?0:(J=z.streamingData)==null?0:(m=J.adaptiveFormats)==null?0:m.length)}; +g.F.isLoaded=function(){return Ul(this)&&!this.jf&&!this.S8}; +g.F.NA=function(z){z||(z="hqdefault.jpg");var J=this.B[z];return J||this.e4.fh||z==="pop1.jpg"||z==="pop2.jpg"||z==="sddefault.jpg"||z==="hq720.jpg"||z==="maxresdefault.jpg"?J:RJ(this.e4,this.videoId,z)}; +g.F.Cq=function(){return this.isLivePlayback||this.Ol||this.Qx||!(!this.liveUtcStartSeconds||!this.J7)}; +g.F.isOtf=function(){return!!this.K&&(this.K.isOtf||!this.Ol&&!this.isLivePlayback&&this.K.T)}; +g.F.getAvailableAudioTracks=function(){return this.S?this.S.getAvailableAudioTracks().length>0?this.S.getAvailableAudioTracks():this.CV||[]:[]}; +g.F.getAudioTrack=function(){var z=this;if(this.U&&!Jo(this.U))return g.QS(this.getAvailableAudioTracks(),function(e){return e.id===z.U.id})||this.zs; +if(this.CV){if(!this.Qm)for(var J=g.y(this.CV),m=J.next();!m.done;m=J.next())if(m=m.value,m.sC.getIsDefault()){this.Qm=m;break}return this.Qm||this.zs}return this.zs}; +g.F.getPlayerResponse=function(){return this.playerResponse}; +g.F.getWatchNextResponse=function(){return this.Lh}; +g.F.getHeartbeatResponse=function(){return this.lr}; +g.F.cX=function(){return this.watchUrl?this.watchUrl:this.e4.getVideoUrl(this.videoId)}; +g.F.Cf=function(){return!!this.K&&(Mif(this.K)||Aoq(this.K)||o_1(this.K))}; +g.F.getEmbeddedPlayerResponse=function(){return this.pB}; +g.F.pA=function(){return(this.eventLabel||this.e4.x3)==="shortspage"}; +g.F.isAd=function(){return this.YB||!!this.adFormat}; +g.F.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; +g.F.b8=function(){var z,J,m;return this.isDaiEnabled()&&!!((z=this.playerResponse)==null?0:(J=z.playerConfig)==null?0:(m=J.daiConfig)==null?0:m.ssaEnabledPlayback)}; +g.F.NZ=function(){return qvq(this)?this.Y0:this.Kn||this.Xy}; +g.F.hj=function(){return this.Z9||this.Xy}; +g.F.zb=function(){return Ln(this,"html5_samsung_vp9_live")}; +g.F.ph=function(z,J,m){this.publish("ctmp",z,J,m)}; +g.F.OM=function(z,J,m){this.publish("ctmpstr",z,J,m)}; +g.F.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; +g.F.getGetAdBreakContext=function(z,J){z=z===void 0?NaN:z;J=J===void 0?NaN:J;var m={isSabr:Fr(this)},e,T=(e=this.getHeartbeatResponse())==null?void 0:e.adBreakHeartbeatParams;T&&(m.adBreakHeartbeatParams=T);if(this.C("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.K&&!isNaN(z)&&!isNaN(J)){J=z-J;for(var E in this.K.K)if(e=this.K.K[E],e.info.HA()||e.info.SI())if(e=e.index,e.isLoaded()){E=e.T7(J);e=e.Hk(E)+J-e.getStartTime(E);this.ph("gabc",{t:z.toFixed(3),mt:J.toFixed(3),sg:E,igt:e.toFixed(3)}); +m.livePlaybackPosition={utcTimeMillis:""+(e*1E3).toFixed(0)};break}}return m}; +g.F.isEmbedsShortsMode=function(z,J){if(!g.fi(this.e4))return!1;var m;if(!this.C("embeds_enable_emc3ds_shorts")&&((m=this.e4.getWebPlayerContextConfig())==null?0:m.embedsEnableEmc3ds)||(this.e4.wb||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||J)return!1;var e,T;return!!(((e=this.embeddedPlayerConfig)==null?0:(T=e.embeddedPlayerFlags)==null?0:T.isShortsExperienceEligible)&&z.width<=z.height)}; +g.F.oy=function(){g.wF.prototype.oy.call(this);this.GA=null;delete this.D5;delete this.accountLinkingConfig;delete this.K;this.S=this.lr=this.playerResponse=this.Lh=null;this.Ks=this.adaptiveFormats="";delete this.botguardData;this.tZ=this.suggestions=this.mC=null;this.sabrContextUpdates.clear()};var Gcq={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},XCb={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},yzE={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},IA1={0:"YT_KIDS_AGE_UP_MODE_UNKNOWN",1:"YT_KIDS_AGE_UP_MODE_OFF",2:"YT_KIDS_AGE_UP_MODE_TWEEN",3:"YT_KIDS_AGE_UP_MODE_PRESCHOOL"},pCE={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},Owu={0:"UNPLUGGED_FILTER_MODE_TYPE_UNKNOWN",1:"UNPLUGGED_FILTER_MODE_TYPE_NONE",2:"UNPLUGGED_FILTER_MODE_TYPE_PG", +3:"UNPLUGGED_FILTER_MODE_TYPE_PG_THIRTEEN"},NVs={0:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_UNSPECIFIED",1:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_30_SECONDS",2:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_FULL"};g.p(i8,g.h);g.F=i8.prototype;g.F.handleExternalCall=function(z,J,m){var e=this.state.V[z],T=this.state.X[z],E=e;if(T)if(m&&rv(m,kYS))E=T;else if(!e)throw Error('API call from an untrusted origin: "'+m+'"');this.logApiCall(z,m);if(E){m=!1;e=g.y(J);for(T=e.next();!T.done;T=e.next())if(String(T.value).includes("javascript:")){m=!0;break}m&&g.hr(Error('Dangerous call to "'+z+'" with ['+J+"]."));return E.apply(this,J)}throw Error('Unknown API method: "'+z+'".');}; +g.F.logApiCall=function(z,J,m){var e=this.app.W();e.S8&&!this.state.B.has(z)&&(this.state.B.add(z),g.qq("webPlayerApiCalled",{callerUrl:e.loaderUrl,methodName:z,origin:J||void 0,playerStyle:e.playerStyle||void 0,embeddedPlayerMode:e.wb,errorCode:m}))}; +g.F.publish=function(z){var J=g.gu.apply(1,arguments);this.state.S.publish.apply(this.state.S,[z].concat(g.X(J)));if(z==="videodatachange"||z==="resize"||z==="cardstatechange")this.state.T.publish.apply(this.state.T,[z].concat(g.X(J))),this.state.U.publish.apply(this.state.U,[z].concat(g.X(J)))}; +g.F.B1=function(z){var J=g.gu.apply(1,arguments);this.state.S.publish.apply(this.state.S,[z].concat(g.X(J)));this.state.T.publish.apply(this.state.T,[z].concat(g.X(J)))}; +g.F.xr=function(z){var J=g.gu.apply(1,arguments);this.state.S.publish.apply(this.state.S,[z].concat(g.X(J)));this.state.T.publish.apply(this.state.T,[z].concat(g.X(J)));this.state.U.publish.apply(this.state.U,[z].concat(g.X(J)))}; +g.F.jC=function(z){var J=g.gu.apply(1,arguments);this.state.S.publish.apply(this.state.S,[z].concat(g.X(J)));this.state.T.publish.apply(this.state.T,[z].concat(g.X(J)));this.state.U.publish.apply(this.state.U,[z].concat(g.X(J)));this.state.Z.publish.apply(this.state.Z,[z].concat(g.X(J)))}; +g.F.C=function(z){return this.app.W().C(z)}; +g.F.oy=function(){if(this.state.element){var z=this.state.element,J;for(J in this.state.K)this.state.K.hasOwnProperty(J)&&(z[J]=null);this.state.element=null}g.h.prototype.oy.call(this)};g.p(q0,g.fz);q0.prototype.publish=function(z){var J=g.gu.apply(1,arguments);if(this.Z.has(z))return this.Z.get(z).push(J),!0;var m=!1;try{for(J=[J],this.Z.set(z,J);J.length;)m=g.fz.prototype.publish.call.apply(g.fz.prototype.publish,[this,z].concat(g.X(J.shift())))}finally{this.Z.delete(z)}return m};g.p(dd,g.h);dd.prototype.oy=function(){this.Z.dispose();this.U.dispose();this.T.dispose();this.S.dispose();this.B=this.K=this.X=this.V=this.Y=void 0};var Svq=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.p(Ou,i8);g.F=Ou.prototype;g.F.getApiInterface=function(){return Array.from(this.state.Y)}; +g.F.XN=function(z,J){this.state.Z.subscribe(z,J)}; +g.F.Wd6=function(z,J){this.state.Z.unsubscribe(z,J)}; +g.F.getPlayerState=function(z){return Eq1(this.app,z)}; +g.F.Bh=function(){return Eq1(this.app)}; +g.F.tpf=function(z,J,m){N0(this)&&(AI(this.app,!0,1),hI(this.app,z,J,m,1))}; +g.F.getCurrentTime=function(z,J,m){var e=this.getPlayerState(z);if(this.app.getAppState()===2&&e===5){var T;return((T=this.app.getVideoData())==null?void 0:T.startSeconds)||0}return this.C("web_player_max_seekable_on_ended")&&e===0?JxE(this.app,z):z?this.app.getCurrentTime(z,J,m):this.app.getCurrentTime(z)}; +g.F.Lv=function(){return this.app.getCurrentTime(1)}; +g.F.gQ=function(){var z=this.app.Hk(1);return isNaN(z)?this.getCurrentTime(1):z}; +g.F.Wh=function(){return this.app.getDuration(1)}; +g.F.gZ=function(z,J){z=g.O8(Math.floor(z),0,100);isFinite(z)&&fX(this.app,{volume:z,muted:this.isMuted()},J)}; +g.F.Zsb=function(z){this.gZ(z,!1)}; +g.F.gr=function(z){fX(this.app,{muted:!0,volume:this.getVolume()},z)}; +g.F.Fli=function(){this.gr(!1)}; +g.F.xT=function(z){y3(this.app)&&!this.C("embeds_enable_emc3ds_muted_autoplay")||fX(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},z)}; +g.F.SLx=function(){y3(this.app)&&this.C("embeds_enable_emc3ds_muted_autoplay")||this.xT(!1)}; +g.F.getPlayerMode=function(){var z={};this.app.getVideoData().yb&&(z.pfp={enableIma:g.J3(this.app.getVideoData())&&this.app.H7().allowImaMonetization,autoplay:jg(this.app.H7()),mutedAutoplay:this.app.H7().mutedAutoplay});return z}; +g.F.N4=function(){var z=this.app.getPresentingPlayerType();if(z===2&&!this.app.Uu()){var J=B_(this.app.UC());if(!EuN(J)||Zqv(J))return}z===3?this.app.Yt().vW.playVideo():this.app.W().C("html5_ssap_ignore_play_for_ad")&&g.Lr(this.app.H7())&&z===2||this.app.playVideo(z)}; +g.F.oii=function(){AI(this.app,!0,1);this.N4()}; +g.F.pauseVideo=function(z){var J=this.app.getPresentingPlayerType();if(J!==2||this.app.Uu()||EuN(B_(this.app.UC())))J===3?this.app.Yt().vW.pauseVideo():this.app.pauseVideo(J,z)}; +g.F.jo6=function(){var z=this.app,J=!1;z.yx.l8&&(z.Vx.publish("pageTransition"),J=!0);z.stopVideo(J)}; +g.F.clearVideo=function(){}; +g.F.getAvailablePlaybackRates=function(){var z=this.app.W();return z.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(z.U?z.ancestorOrigins[0]:window.location.origin)||z.U7?YiS:z.supportsVarispeedExtendedFeatures?CQe:z.C("web_remix_allow_up_to_3x_playback_rate")&&g.uB(z)?a_S:av:[1]}; +g.F.getPlaybackQuality=function(z){return(z=this.app.tX(z))?z.getPlaybackQuality():"unknown"}; +g.F.I21=function(){}; +g.F.getAvailableQualityLevels=function(z){return(z=this.app.tX(z))?(z=g.Ch(z.wk(),function(J){return J.quality}),z.length&&(z[0]==="auto"&&z.shift(),z=z.concat(["auto"])),z):[]}; +g.F.Cv=function(){return this.getAvailableQualityLevels(1)}; +g.F.y61=function(){return this.T6()}; +g.F.Hh2=function(){return 1}; +g.F.getVideoLoadedFraction=function(z){return this.app.getVideoLoadedFraction(z)}; +g.F.T6=function(){return this.getVideoLoadedFraction()}; +g.F.Rz2=function(){return 0}; +g.F.getSize=function(){var z=this.app.zf().getPlayerSize();return{width:z.width,height:z.height}}; +g.F.setSize=function(){this.app.zf().resize()}; +g.F.loadVideoById=function(z,J,m,e){if(!z)return!1;z=Ip(z,J,m);return this.app.loadVideoByPlayerVars(z,e)}; +g.F.xdW=function(z,J,m){z=this.loadVideoById(z,J,m,1);AI(this.app,z,1)}; +g.F.cueVideoById=function(z,J,m,e){z=Ip(z,J,m);this.app.cueVideoByPlayerVars(z,e)}; +g.F.Yw=function(z,J,m){this.cueVideoById(z,J,m,1)}; +g.F.loadVideoByUrl=function(z,J,m,e){z=BV4(z,J,m);return this.app.loadVideoByPlayerVars(z,e)}; +g.F.DdF=function(z,J,m){z=this.loadVideoByUrl(z,J,m,1);AI(this.app,z,1)}; +g.F.cueVideoByUrl=function(z,J,m,e){z=BV4(z,J,m);this.app.cueVideoByPlayerVars(z,e)}; +g.F.ZA=function(z,J,m){this.cueVideoByUrl(z,J,m,1)}; +g.F.lnh=function(){var z=this.app.W();if(z.fh)return"";var J=this.app.H7(),m=void 0;J.isLivePlayback||(m=Math.floor(this.app.getCurrentTime(1)));return z.getVideoUrl(J.videoId,this.getPlaylistId()||void 0,m)}; +g.F.XI=function(){return this.app.getDebugText()}; +g.F.getVideoEmbedCode=function(){var z=this.app.W();if(z.fh)return"";var J=this.app.H7();return z.getVideoEmbedCode(J.isPrivate?"":J.title,this.app.H7().videoId,this.app.zf().getPlayerSize(),this.getPlaylistId()||void 0)}; +g.F.LN=function(z,J,m){return q5s(this.app,z,J,m)}; +g.F.removeCueRange=function(z){return IoE(this.app,z)}; +g.F.loadPlaylist=function(z,J,m,e){this.app.loadPlaylist(z,J,m,e)}; +g.F.Pb4=function(z,J,m,e){this.loadPlaylist(z,J,m,e);AI(this.app,!0,1)}; +g.F.cuePlaylist=function(z,J,m,e){this.app.cuePlaylist(z,J,m,e)}; +g.F.nextVideo=function(z,J){this.app.nextVideo(z,J)}; +g.F.jTF=function(){this.nextVideo();AI(this.app,!0,1)}; +g.F.previousVideo=function(z){this.app.previousVideo(z)}; +g.F.GGi=function(){this.previousVideo();AI(this.app,!0,1)}; +g.F.playVideoAt=function(z){this.app.playVideoAt(z)}; +g.F.tIh=function(z){this.playVideoAt(z);AI(this.app,!0,1)}; +g.F.setShuffle=function(z){var J=this.app.getPlaylist();J&&J.setShuffle(z)}; +g.F.setLoop=function(z){var J=this.app.getPlaylist();J&&(J.loop=z)}; +g.F.sO=function(){var z=this.app.getPlaylist();if(!z)return null;for(var J=[],m=0;m=400)if(z=this.H7(),this.G.W().C("client_respect_autoplay_switch_button_renderer"))z=!!z.autoplaySwitchButtonRenderer;else{var J,m,e,T;z=!!((J=z.getWatchNextResponse())==null?0:(m=J.contents)==null?0:(e=m.twoColumnWatchNextResults)==null?0:(T=e.autoplay)==null?0:T.autoplay)!==!1}if(z)this.K||(this.K=!0,this.T4(this.K),this.G.W().C("web_player_autonav_toggle_always_listen")||syu(this), +J=this.H7(),this.pT(J.autonavState),this.G.logVisibility(this.element,this.K));else if(this.K=!1,this.T4(this.K),!this.G.W().C("web_player_autonav_toggle_always_listen"))for(this.G.W().C("web_player_autonav_toggle_always_listen"),J=g.y(this.T),m=J.next();!m.done;m=J.next())this.hX(m.value)}; +g.F.pT=function(z){zxb(this)?this.isChecked=z!==1:((z=z!==1)||(g.HR(),z=g.CH("web_autonav_allow_off_by_default")&&!g.UF(0,141)&&g.Qt("AUTONAV_OFF_BY_DEFAULT")?!1:!g.UF(0,140)),this.isChecked=z);rzz(this)}; +g.F.onClick=function(){this.isChecked=!this.isChecked;this.G.SU(this.isChecked?2:1);rzz(this);if(zxb(this)){var z=this.H7().autoplaySwitchButtonRenderer;this.isChecked&&(z==null?0:z.onEnabledCommand)?this.G.B1("innertubeCommand",z.onEnabledCommand):!this.isChecked&&(z==null?0:z.onDisabledCommand)&&this.G.B1("innertubeCommand",z.onDisabledCommand)}this.G.logClick(this.element)}; +g.F.getValue=function(){return this.isChecked}; +g.F.H7=function(){return this.G.getVideoData(1)};g.p(Jhu,rd);g.p(Zy,g.k2);Zy.prototype.onClick=function(){this.enabled&&(FO(this,!this.checked),this.publish("select",this.checked))}; +Zy.prototype.getValue=function(){return this.checked}; +Zy.prototype.setEnabled=function(z){(this.enabled=z)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var exj=["en-CA","en","es-MX","fr-CA"];g.p(dk,Zy);dk.prototype.MD=function(z){z?this.K||(this.Yu.AX(this),this.K=!0):this.K&&(this.Yu.RW(this),this.K=!1);this.K&&FO(this,Nvs())}; +dk.prototype.U=function(){g.lI(this.element,"ytp-menuitem-highlight-transition-enabled")}; +dk.prototype.S=function(z){var J=Nvs();z!==J&&(J=g.HR(),ks(190,z),ks(192,!0),J.save(),this.G.B1("cinematicSettingsToggleChange",z))}; +dk.prototype.oy=function(){this.K&&this.Yu.RW(this);Zy.prototype.oy.call(this)};g.p(Ic,rd);Ic.prototype.updateCinematicSettings=function(z){this.K=z;var J;(J=this.menuItem)==null||J.MD(z);this.api.publish("onCinematicSettingsVisibilityChange",z)};g.p(ZQq,rd);g.p(Oh,rd);Oh.prototype.setCreatorEndscreenVisibility=function(z){var J;(J=bz(this.api.UC()))==null||J.T4(z)}; +Oh.prototype.K=function(z){function J(e){e==="creatorendscreen"&&(e=bz(m.api.UC()))&&e.UAW(m.hideButton)} +var m=this;this.hideButton=z;this.events.L(this.api,"modulecreated",J);J("creatorendscreen")};g.p(pj,Zy);pj.prototype.S=function(z){this.U(z?1:0)}; +pj.prototype.T=function(){var z=this.hasDrcAudioTrack(),J=this.K()===1&&z;FO(this,J);this.setEnabled(z)}; +pj.prototype.oy=function(){this.Yu.RW(this);Zy.prototype.oy.call(this)};g.p(yi,rd);yi.prototype.getDrcUserPreference=function(){return this.K}; +yi.prototype.setDrcUserPreference=function(z){g.oW("yt-player-drc-pref",z,31536E3);z!==this.K&&(this.K=z,this.updateEnvironmentData(),this.T()&&this.api.us())}; +yi.prototype.updateEnvironmentData=function(){this.api.W().s4=this.K===1}; +yi.prototype.T=function(){var z,J,m=(z=this.api.getVideoData())==null?void 0:(J=z.S)==null?void 0:J.K;if(!m)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.C("mta_drc_mutual_exclusion_removal")){var e=this.api.getAudioTrack().sC.id;return aS(m,function(T){var E;return T.audio.K&&((E=T.sC)==null?void 0:E.id)===e})}return aS(m,function(T){var E; +return((E=T.audio)==null?void 0:E.K)===!0})};g.p(Nv,rd);Nv.prototype.onVideoDataChange=function(){var z=this,J=this.api.getVideoData();this.api.c7("embargo",1);var m=J==null?void 0:J.e7.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(m==null?0:m.length)?iQu(this,m.filter(function(e){return FOq(z,e)})):(J==null?0:J.cueRanges)&&iQu(this,J.cueRanges.filter(function(e){return FOq(z,e)}))}; +Nv.prototype.T=function(z){return z.embargo!==void 0}; +Nv.prototype.oy=function(){rd.prototype.oy.call(this);this.K={}};g.p(GT,rd); +GT.prototype.addEmbedsConversionTrackingParams=function(z){var J=this.api.W(),m=J.widgetReferrer,e=J.nh,T=this.K,E="",Z=J.getWebPlayerContextConfig();Z&&(E=Z.embedsIframeOriginParam||"");m.length>0&&(z.embeds_widget_referrer=m);e.length>0&&(z.embeds_referring_euri=e);J.U&&E.length>0&&(z.embeds_referring_origin=E);Z&&Z.embedsFeature&&(z.feature=Z.embedsFeature);T.length>0&&(J.C("embeds_web_enable_lite_experiment_control_arm_logging")?T.unshift(28572):g.ds(g.jR(J))&&T.unshift(159628),J=T.join(","),J= +g.LH()?J:g.Xd(J,4),z.source_ve_path=J);this.K.length=0};g.p(chu,rd);g.p(WOb,rd);g.p(XO,g.h);XO.prototype.oy=function(){g.h.prototype.oy.call(this);this.K=null;this.T&&this.T.disconnect()};g.p(wtE,rd);g.p(nj,g.U);nj.prototype.show=function(){g.U.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; +nj.prototype.onVideoDataChange=function(z){var J,m,e=(J=this.api.getVideoData())==null?void 0:(m=J.getPlayerResponse())==null?void 0:m.playabilityStatus;e&&(J=qQR(e),g.R(this.api.getPlayerStateObject(),128)||z==="dataloaderror"||!J?(this.T=0,Yl(this),this.hide()):(z=(J.remainingTimeSecs||0)*1E3,z>0&&(this.show(),this.updateValue("label",nQ(J.label)),IZE(this,z))))}; +nj.prototype.oy=function(){Yl(this);g.U.prototype.oy.call(this)};g.p(OQq,rd);g.p(Cj,g.U);Cj.prototype.onClick=function(){this.Vx.logClick(this.element);this.Vx.B1("onFullerscreenEduClicked")}; +Cj.prototype.MD=function(){this.Vx.isFullscreen()?this.K?this.fade.hide():this.fade.show():this.hide();this.Vx.logVisibility(this.element,this.Vx.isFullscreen()&&!this.K)};g.p(ac,rd);ac.prototype.updateFullerscreenEduButtonSubtleModeState=function(z){var J;(J=this.K)!=null&&(g.qt(J.element,"ytp-fullerscreen-edu-button-subtle",z),z&&!J.T&&(J.element.setAttribute("title","Scroll for details"),ap(J.Vx,J.element,J),J.T=!0))}; +ac.prototype.updateFullerscreenEduButtonVisibility=function(z){var J;(J=this.K)!=null&&(J.K=z,J.MD())};g.p(ptu,g.U);g.p(Guq,rd);g.p(Kj,rd);Kj.prototype.getSphericalProperties=function(){var z=g.gd(this.api.UC());return z?z.getSphericalProperties():{}}; +Kj.prototype.setSphericalProperties=function(z){if(z){var J=g.gd(this.api.UC());J&&J.setSphericalProperties(z,!0)}};g.p(BO,rd);g.F=BO.prototype;g.F.createClientVe=function(z,J,m,e){this.api.createClientVe(z,J,m,e===void 0?!1:e)}; +g.F.createServerVe=function(z,J,m){this.api.createServerVe(z,J,m===void 0?!1:m)}; +g.F.setTrackingParams=function(z,J){this.api.setTrackingParams(z,J)}; +g.F.logClick=function(z,J){this.api.logClick(z,J)}; +g.F.logVisibility=function(z,J,m){this.api.logVisibility(z,J,m)}; +g.F.hasVe=function(z){return this.api.hasVe(z)}; +g.F.destroyVe=function(z){this.api.destroyVe(z)};var nm1=!1;fj.prototype.setPlaybackRate=function(z){this.playbackRate=Math.max(1,z)}; +fj.prototype.getPlaybackRate=function(){return this.playbackRate};xl.prototype.yI=function(z){var J=g.m9(z.info.K.info,this.E2.Cq),m=z.info.Y3+this.U,e=z.info.startTime*1E3;if(this.policy.nh)try{e=this.policy.nh?g.mm(z)*1E3:z.info.startTime*1E3}catch(Z){Math.random()>.99&&this.logger&&(e=ak(z.K).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:z.info.YQ(),encodedDataView:g.GC(e,4)})),e=z.info.startTime*1E3}var T=z.info.clipId,E=this.policy.nh?g.G1b(z)*1E3:z.info.duration*1E3;this.policy.nh&&(e<0||E<0)&&(this.logger&&(this.logger({missingSegInfo:z.info.YQ(), +startTimeMs:e,durationMs:E}),this.policy.jx||(e<0&&(e=z.info.startTime*1E3),E<0&&(E=z.info.duration*1E3))),this.policy.jx&&(e<0&&(e=z.info.startTime*1E3),E<0&&(E=z.info.duration*1E3)));return{formatId:J,Y3:m,startTimeMs:e,clipId:T,AG:E}}; +xl.prototype.Vc=function(z){this.timestampOffset=z};oc.prototype.seek=function(z,J){z!==this.K&&(this.seekCount=0);this.K=z;var m=this.videoTrack.T,e=this.audioTrack.T,T=this.audioTrack.Lq,E=uuE(this,this.videoTrack,z,this.videoTrack.Lq,J);J=uuE(this,this.audioTrack,this.policy.SC?z:E,T,J);z=Math.max(z,E,J);this.Z=!0;this.E2.isManifestless&&(M7q(this,this.videoTrack,m),M7q(this,this.audioTrack,e));return z}; +oc.prototype.isSeeking=function(){return this.Z}; +oc.prototype.Xd=function(z){this.S=z}; +var hxz=2/24;var t7b=0;g.F=Lj.prototype;g.F.UQ=function(){this.B=this.now();ugb(this.G4,this.B);this.Dd.UQ()}; +g.F.oU=function(z,J){var m=this.policy.T?(0,g.b5)():0;Qi(this,z,J);z-this.Y<10&&this.T>0||this.DF(z,J);this.Dd.oU(z,J);this.policy.T&&(z=(0,g.b5)()-m,this.GS+=z,this.yH=Math.max(z,this.yH))}; +g.F.DF=function(z,J){var m=(z-this.Y)/1E3,e=J-this.S;this.Cn||(Gt(this.G4,m,e),this.mJ(m,e));this.Y=z;this.S=J}; +g.F.gk=function(){this.wb&&HQz(this);this.Dd.gk()}; +g.F.RU=function(z){this.wb||(this.wb=this.Z-this.ub+z,this.Rs=this.Z,this.l8=this.V)}; +g.F.a_=function(z,J){z=z===void 0?this.V:z;J=J===void 0?this.Z:J;this.T>0||(this.X=z,this.T=J,this.Ry=this.isActive=!0)}; +g.F.wf=function(){return this.Ou||2}; +g.F.uM=function(){}; +g.F.Kj=function(){var z,J={rn:this.requestNumber,rt:(this.V-this.K).toFixed(),lb:this.Z,stall:(1E3*this.U).toFixed(),ht:(this.B-this.K).toFixed(),elt:(this.X-this.K).toFixed(),elb:this.T,d:(z=this.x3)==null?void 0:z.G7()};this.url&&Xt4(J,this.url);this.policy.T&&(J.mph=this.yH.toFixed(),J.tph=this.GS.toFixed());J.ulb=this.Qx;J.ult=this.fh;J.abw=this.nh;return J}; +g.F.now=function(){return(0,g.b5)()}; +g.F.deactivate=function(){this.isActive&&(this.isActive=!1)};g.p(sh,Lj);g.F=sh.prototype;g.F.Kj=function(){var z=Lj.prototype.Kj.call(this);z.pb=this.mT;z.pt=(1E3*this.Hd).toFixed();z.se=this.OC;return z}; +g.F.J0=function(){var z=this.Dd;this.ND||(this.ND=z.J0?z.J0():1);return this.ND}; +g.F.Ay=function(){return this.GE?this.J0()!==1:!1}; +g.F.ZY=function(z,J,m){if(!this.gE){this.gE=!0;if(!this.Cn){Qi(this,z,J);this.DF(z,J);var e=this.J0();this.OC=m;if(!this.Cn)if(e===2){e=z-this.X0)||rk(this,e,J),this.T>0&&ys(this.G4, +J,this.U));z=(z-this.K)/1E3||.01;this.policy.X&&!(this.T>0)||pi(this.G4,z,this.S,RxR(this),this.kV)}this.deactivate()}}; +g.F.PQ=function(z,J,m){m&&(this.ND=2);z<0&&this.Ou&&(z=this.Ou);J?this.qD+=z:this.Lh+=z}; +g.F.wf=function(){return this.Lh||this.qD||Lj.prototype.wf.call(this)}; +g.F.DF=function(z,J){var m=(z-this.Y)/1E3,e=J-this.S,T=this.J0();this.isActive?T===1&&((e>0||this.policy.Z)&&(m>.2||e<1024)?(this.U+=m,e>0&&m>.2&&rk(this,this.aB?m:.05,e),this.tZ=!0):e>0&&(rk(this,m,e),this.tZ=!0)):J&&J>=this.policy.K&&this.a_(z,J);Lj.prototype.DF.call(this,z,J)}; +g.F.z_=function(z){if(!this.Cn){Qi(this,z,this.Z);var J=(z-this.K)/1E3;this.J0()!==2&&this.T>0&&(this.U+=(z-this.Y)/1E3,ys(this.G4,this.S,this.U));pi(this.G4,J,this.S,RxR(this),this.kV,!0);z=(z-this.Y)/1E3;Gt(this.G4,z,0);this.mJ(z,0)}}; +g.F.a_=function(z,J){z=z===void 0?this.V:z;J=J===void 0?this.Z:J;if(!(this.T>0)&&(Lj.prototype.a_.call(this,z,J),this.J0()===1)){J=(this.B-this.K)/1E3;var m=(z-this.B)/1E3;this.GE&&z0(this,this.now());this.IT||this.Cn||(this.Ou&&(m=Math.max(0,m-this.Ou)),z=this.G4,z.X.xA(1,J),z.x3.xA(1,m))}}; +g.F.kC=function(){this.GE&&z0(this,this.now());return this.h6}; +g.F.jw=function(){var z;if(z=this.S>this.VU)z=(z=this.S)?z>=this.policy.K:!1;return z}; +g.F.Y7=function(){return this.O2}; +g.F.va=function(z){z=z===void 0?this.now():z;if(this.GE){z0(this,z);if(this.ND?this.Ay():this.Tf!==this.Gf){var J=this.Gf;if(z0?m+z:m+Math.max(z,J)}; +g.F.k7=function(){return this.now()-this.X}; +g.F.Ml=function(){return(this.S-this.T)*1E3/this.k7()||0}; +g.F.RC=function(){return this.X};Ja.prototype.feed=function(z){X9(this.K,z);this.n1()}; +Ja.prototype.n1=function(){if(this.U){if(!this.K.getLength())return;var z=this.K.split(this.S-this.T),J=z.NJ;z=z.Li;if(!this.Dd.RU(this.U,J,this.T,this.S))return;this.T+=J.getLength();this.K=z;this.T===this.S&&(this.U=this.S=this.T=void 0)}for(;;){var m=0;z=g.y(vmu(this.K,m));J=z.next().value;m=z.next().value;m=g.y(vmu(this.K,m));z=m.next().value;m=m.next().value;if(J<0||z<0)break;if(!this.K.hQ(m,z)){if(!this.Dd.RU||!this.K.hQ(m,1))break;m=this.K.split(m).Li;this.Dd.RU(J,m,0,z)&&(this.U=J,this.T= +m.getLength(),this.S=z,this.K=new GU([]));break}z=this.K.split(m).Li.split(z);m=z.Li;this.Dd.Rg(J,z.NJ);this.K=m}}; +Ja.prototype.dispose=function(){this.K=new GU};g.F=m3.prototype;g.F.xp=function(){return 0}; +g.F.oz=function(){return null}; +g.F.jH=function(){return null}; +g.F.bW=function(){return this.state>=1}; +g.F.isComplete=function(){return this.state>=3}; +g.F.UA=function(){return this.state===5}; +g.F.onStateChange=function(){}; +g.F.f1=function(z){var J=this.state;this.state=z;this.onStateChange(J);this.callback&&this.callback(this,J)}; +g.F.BC=function(z){z&&this.state=this.xhr.HEADERS_RECEIVED}; +g.F.getResponseHeader=function(z){try{return this.xhr.getResponseHeader(z)}catch(J){return""}}; +g.F.Fz=function(){return+this.getResponseHeader("content-length")}; +g.F.lG=function(){return this.T}; +g.F.Fs=function(){return this.status>=200&&this.status<300&&!!this.T}; +g.F.SY=function(){return this.K.getLength()>0}; +g.F.fQ=function(){var z=this.K;this.K=new GU;return z}; +g.F.NS=function(){return this.K}; +g.F.abort=function(){this.mF=!0;this.xhr.abort()}; +g.F.g_=function(){return!0}; +g.F.Re=function(){return this.S}; +g.F.Cc=function(){return""};g.F=JFq.prototype;g.F.getResponseHeader=function(z){return z==="content-type"?this.K.get("type"):""}; +g.F.abort=function(){}; +g.F.LS=function(){return!0}; +g.F.Fz=function(){return this.range.length}; +g.F.lG=function(){return this.loaded}; +g.F.Fs=function(){return!!this.loaded}; +g.F.SY=function(){return!!this.T.getLength()}; +g.F.fQ=function(){var z=this.T;this.T=new GU;return z}; +g.F.NS=function(){return this.T}; +g.F.g_=function(){return!0}; +g.F.Re=function(){return!!this.error}; +g.F.Cc=function(){return this.error};g.F=eSR.prototype;g.F.start=function(z){var J={credentials:"include",cache:"no-store"};Object.assign(J,this.V);this.U&&(J.signal=this.U.signal);z=new Request(z,J);fetch(z).then(this.B,this.onError).then(void 0,wW)}; +g.F.onDone=function(){this.mF()||this.Dd.gk()}; +g.F.getResponseHeader=function(z){return this.responseHeaders?this.responseHeaders.get(z):null}; +g.F.LS=function(){return!!this.responseHeaders}; +g.F.lG=function(){return this.T}; +g.F.Fz=function(){return+this.getResponseHeader("content-length")}; +g.F.Fs=function(){return this.status>=200&&this.status<300&&!!this.T}; +g.F.SY=function(){return!!this.K.getLength()}; +g.F.fQ=function(){this.SY();var z=this.K;this.K=new GU;return z}; +g.F.NS=function(){this.SY();return this.K}; +g.F.mF=function(){return this.Z}; +g.F.abort=function(){this.S&&this.S.cancel().catch(function(){}); +this.U&&this.U.abort();this.Z=!0}; +g.F.g_=function(){return!0}; +g.F.Re=function(){return this.Y}; +g.F.Cc=function(){return this.errorMessage};g.F=Tbf.prototype;g.F.onDone=function(){if(!this.mF){this.status=this.xhr.status;try{this.response=this.xhr.response,this.T=this.response.byteLength}catch(z){}this.K=!0;this.Dd.gk()}}; +g.F.zD=function(){this.xhr.readyState===2&&this.Dd.UQ()}; +g.F.kZ=function(z){this.mF||(this.status=this.xhr.status,this.K||(this.T=z.loaded),this.Dd.oU((0,g.b5)(),z.loaded))}; +g.F.LS=function(){return this.xhr.readyState>=2}; +g.F.getResponseHeader=function(z){try{return this.xhr.getResponseHeader(z)}catch(J){return g.hr(Error("Could not read XHR header "+z)),""}}; +g.F.Fz=function(){return+this.getResponseHeader("content-length")}; +g.F.lG=function(){return this.T}; +g.F.Fs=function(){return this.status>=200&&this.status<300&&this.K&&!!this.T}; +g.F.SY=function(){return this.K&&!!this.response&&!!this.response.byteLength}; +g.F.fQ=function(){this.SY();var z=this.response;this.response=void 0;return new GU([new Uint8Array(z)])}; +g.F.NS=function(){this.SY();return new GU([new Uint8Array(this.response)])}; +g.F.abort=function(){this.mF=!0;this.xhr.abort()}; +g.F.g_=function(){return!1}; +g.F.Re=function(){return!1}; +g.F.Cc=function(){return""};g.ZM.prototype.info=function(){}; +g.ZM.prototype.debug=function(){}; +g.ZM.prototype.K=function(z){FL.apply(null,[5,this.tag,z].concat(g.X(g.gu.apply(1,arguments))))}; +var F2q=new Map,W2z=new Map,iZj=new function(){var z=this;this.K=new Map;this.So={O3z:function(){return z.K}}};g.p(io,g.h);io.prototype.Jb=function(){if(!this.R1.length)return[];var z=this.R1;this.R1=[];this.S=g.kO(z).info;return z}; +io.prototype.ir=function(){return this.R1}; +io.prototype.oy=function(){g.h.prototype.oy.call(this);this.K=null;this.R1.length=0;this.s2.length=0;this.S=null};g.p(WX,g.h);g.F=WX.prototype; +g.F.NWW=function(){if(!this.mF()){var z=(0,g.b5)(),J=!1;if(this.policy.b3){z=z-(this.timing.T>0?this.timing.X:this.timing.K)-this.timing.wf()*1E3;var m=Gm(lo(this),!1);z>=2E3*m?J=!0:z>=this.policy.e8*m&&(this.K=this.policy.MY)}else if(this.timing.T>0){if(this.Z){this.policy.ED&&(this.K=0);return}var e=this.timing.Y7();this.timing.va();var T=this.timing.Y7();T-e>=this.policy.T2*.8?(this.K++,this.logger.debug(function(){return"Mispredicted by "+(T-e).toFixed(0)}),J=this.K>=5):this.K=0}else{var E=z- +this.timing.kC(); +this.policy.MY&&E>0&&(this.K+=1);J=Gm(lo(this),!1)*this.policy.RL;(J=E>J*1E3)&&this.logger.debug(function(){return"Elbow late by "+E.toFixed(3)})}this.K>0&&this.Dd.dK(); +J?this.OQ():this.T.start()}}; +g.F.OQ=function(){this.U=!0;this.Dd.F3();this.lastError="net.timeout";qm(this)}; +g.F.canRetry=function(z){var J=lo(this);z=z?this.policy.mQ:this.policy.Z9;return J.timedOut0&&(J=J.K.getUint8(0),z.ubyte=J,m===1&&J===0&&(z.b248180278=!0))}this.dW&&(z.rc=this.policy.Nw?this.dW:this.dW.toString());this.policy.yv&&this.H5&&(z.tr=this.H5);z.itag=this.info.s2[0].K.info.itag;z.ml=""+ +this.info.s2[0].K.bC();z.sq=""+this.info.s2[0].Y3;this.L1&&(z.ifi=""+ +Sc(this.info.QH.S));this.dW!==410&&this.dW!==500&&this.dW!==503||(z.fmt_unav="true");var e;(m=this.errorMessage||((e=this.xhr)==null? +void 0:e.Cc()))&&(z.msg=m);this.Aj&&(z.smb="1");this.info.isDecorated()&&(z.sdai="1");return z}; +g.F.AC=function(){return kuj(this.timing)}; +g.F.Cc=function(){return this.xhr.Cc()||""}; +g.F.jw=function(){return this.isComplete()||this.timing.jw()}; +g.F.oU=function(){!this.mF()&&this.xhr&&(this.dW=this.xhr.status,this.policy.GA&&this.XG&&this.TC(!1),this.mS()?this.BC(2):!this.My&&this.jw()&&(this.BC(),this.My=!0))}; +g.F.UQ=function(){if(!this.mF()&&this.xhr){if(!this.KR&&this.xhr.LS()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var z=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.KR=((0,g.b5)()-z)/1E3}this.xhr.LS()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.CM&&!b1E()&&g.oW("yt-player-headers-readable",!0,2592E3);z=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var J=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),m;(m=this.R_)==null||m.stop();this.O7=z||this.O7; +this.wJ=J||this.wJ}}; +g.F.gk=function(){var z=this.xhr;if(!this.mF()&&z){this.dW=z.status;z=this.ke(z);if(this.policy.yv){var J;(J=this.R_)==null||J.stop()}z===5?qm(this.qT):this.f1(z);this.qT.T.stop()}}; +g.F.ke=function(z){var J=this;Paj(this);if(dD(this.qT,this.xhr.status,this.Tq?this.timing.Ry||this.wB:this.xhr.Fs(),!1,this.By))return 5;var m="";IF(this.qT,this.xhr)&&(m=OZR(this.qT,this.xhr));if(m)return Nx(lo(this.qT)),this.info.sS(this.L1,m),3;m=z.lG();if(this.XU){this.TC(!0);Paj(this);if(dD(this.qT,this.xhr.status,this.timing.Ry||this.wB,!1,this.By))return 5;if(!this.DB){if(this.wB)return Nx(lo(this.qT)),3;this.qT.lastError="net.closed";return 5}}else{if(dD(this.qT,this.xhr.status,this.xhr.Fs(), +!1,this.By))return 5;var e=this.info.S;if(e&&e!==m||z.Re())return this.qT.lastError="net.closed",5;this.TC(!0)}e=sC1(this)?z.getResponseHeader("X-Bandwidth-Est"):0;if(z=sC1(this)?z.getResponseHeader("X-Bandwidth-Est3"):0)this.Pg=!0,this.policy.J3&&(e=z);dgz(this.qT,m,e?Number(e):0,this.info.s2[0].type===5);this.logger.debug(function(){var T=J.timing;return"Succeeded, rtpd="+(T.Hd*1E3+T.K-Date.now()).toFixed(0)}); +return 4}; +g.F.canRetry=function(){this.mF();var z=this.info.isDecorated();return this.qT.canRetry(z)}; +g.F.onStateChange=function(){this.isComplete()&&(this.policy.oA?this.F3():this.timing.deactivate())}; +g.F.OQ=function(){this.qT.OQ()}; +g.F.dK=function(){this.callback&&this.callback(this,this.state)}; +g.F.mL=function(){return this.qT.mL()}; +g.F.dispose=function(){m3.prototype.dispose.call(this);this.qT.dispose();var z;(z=this.R_)==null||z.dispose();this.policy.oA||this.F3()}; +g.F.F3=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; +g.F.Jb=function(){if(!this.ir().length)return[];this.lN=!0;return this.XG.Jb()}; +g.F.mS=function(){if(this.state<1)return!1;if(this.XG&&this.XG.R1.length)return!0;var z;return((z=this.xhr)==null?0:z.SY())?!0:!1}; +g.F.ir=function(){this.TC(!1);return this.XG?this.XG.ir():[]}; +g.F.TC=function(z){try{if(z||this.xhr.LS()&&this.xhr.SY()&&!IF(this.qT,this.xhr)&&!this.Kx)this.XG||(this.XG=new io(this.policy,this.info.s2)),this.xhr.SY()&&(this.XU?this.XU.feed(this.xhr.fQ()):cX(this.XG,this.xhr.fQ(),z&&!this.xhr.SY()))}catch(J){this.XU?hSs(this,J):g.hr(J)}}; +g.F.Rg=function(z,J){switch(z){case 21:z=J.split(1).Li;uUf(this,z);break;case 22:this.DB=!0;cX(this.XG,new GU([]),!0);break;case 43:if(z=hv(new gY(J),1))this.info.sS(this.L1,z),this.wB=!0;break;case 45:J=ec(new gY(J));z=J.IQ;J=J.GQ;z&&J&&(this.eD=z/J);break;case 44:this.J_=DQb(new gY(J));var m,e,T;!this.timing.Ry&&((m=this.J_)==null?void 0:m.action)===4&&((e=this.J_)==null?0:(T=e.fO)==null?0:T.Tq)&&(this.Tq=this.J_.fO.Tq);break;case 53:this.policy.yv&&(z=Boq(new gY(J)).K3)&&(this.R_||(this.K3=z,this.R_= +new g.vl(this.r7,z,this)),this.R_.start());break;case 60:this.C5=m2(new gY(J));break;case 58:if(z=EPq(new gY(J)))this.L3=z,z.L3===3&&(this.By=!0)}}; +g.F.RU=function(z,J,m,e){m||this.timing.RU(e);if(z!==21)return!1;if(z=this.policy.GA)if(e=J.getLength()+m===e,z*=this.info.s2[0].K.info.RT,!e&&J.getLength()0)return!1;if(!this.xhr.LS())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.XU)var z=!this.info.S;else this.xhr.Fz()?z=!1:(z=this.xhr.getResponseHeader("content-type"),z=z==="audio/mp4"||z==="video/mp4"||z==="video/webm");if(!z)return!1;if(isNaN(this.info.bU)){z=this.xhr.getResponseHeader("x-head-seqnum");var J=this.timing.policy.V?1:0;if(!z)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); +else if(Number(z)>this.info.s2[0].Y3+J)return!1}return!0}; +g.F.An=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; +g.F.oz=function(){this.xhr&&(this.O7=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.O7}; +g.F.jH=function(){this.xhr&&(this.wJ=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.wJ}; +g.F.KF=function(){return this.qT.KF()}; +g.F.r7=function(){if(!this.mF()&&this.xhr){this.H5="heartbeat";var z=this.qT;z.K+=2;this.dK()}};g.p(Yp,Lj);g.F=Yp.prototype;g.F.DF=function(z,J){var m=(z-this.Y)/1E3,e=J-this.S;this.T>0?e>0&&(this.Tf&&(m>.2||e<1024?(this.U+=m,m>.2&&tcu(this,.05,e)):tcu(this,m,e)),this.Gf&&(this.h6+=e,this.Lh+=m)):J>this.policy.K&&this.a_(z,J);Lj.prototype.DF.call(this,z,J)}; +g.F.ZY=function(z,J){Qi(this,z,J);this.DF(z,J);this.Tf&&(J=this.S*this.snapshot.stall+this.S/this.snapshot.byterate,this.T>0&&ys(this.G4,this.h6,this.U),z=(z-this.K)/1E3||.01,this.policy.X&&!(this.T>0)||pi(this.G4,z,this.S,J,!1))}; +g.F.z_=function(z){Qi(this,z,this.Z);var J=(z-this.Y)/1E3;Gt(this.G4,J,0);this.mJ(J,0);!this.Tf&&this.T>0||(J=this.S*this.snapshot.stall+this.S/this.snapshot.byterate,this.T>0&&(this.U+=(z-this.Y)/1E3,ys(this.G4,this.h6,this.U)),pi(this.G4,((z-this.K)/1E3||.01)*this.policy.fh,this.S,J,!1,!0))}; +g.F.Yn=function(z){z=z.rC||2147483647;(z&2)!==2&&(this.Gf=!1);(z&1)===1&&(this.Tf=!0)}; +g.F.eW=function(z){z=z.rC||2147483647;(z&2)===2&&(this.Gf=!1);(z&1)===1&&(this.Tf=!1)}; +g.F.RC=function(){return this.X}; +g.F.k7=function(){var z=this.Gf?this.now()-this.Y:0;return Math.max(this.Lh*1E3+z,1)}; +g.F.Ml=function(){return this.h6*1E3/this.k7()}; +g.F.a_=function(z,J){z=z===void 0?this.V:z;J=J===void 0?this.Z:J;this.T>0||(Lj.prototype.a_.call(this,z,J),J=this.G4,z=(z-this.B)/1E3,J.X.xA(1,(this.B-this.K)/1E3),J.x3.xA(1,z))}; +g.F.uM=function(z){this.qD=z}; +g.F.Kj=function(){var z=Lj.prototype.Kj.call(this);z.rbw=this.Ml();z.rbe=+this.Gf;z.gbe=+this.Tf;z.ackt=(this.qD-this.K).toFixed();return z}; +g.F.va=function(){}; +g.F.Y7=function(){return NaN}; +g.F.kC=function(){return this.K+this.snapshot.delay*1E3};Cs.prototype.Rg=function(z,J){J.getLength();switch(z){case 20:z=new gY(J);z={Bt:Av(z,1),videoId:hv(z,2),itag:Av(z,3),lmt:Av(z,4),xtags:hv(z,5),Me:Av(z,6),Vo:ok(z,8),Bu:Av(z,9),wRz:Av(z,10),startMs:Av(z,11),durationMs:Av(z,12),YG:Av(z,14),timeRange:u_(z,15,PUu),xx:Av(z,16),Hb:Av(z,17),clipId:hv(z,1E3)};this.tH(z);break;case 21:this.RZ(J,!1);break;case 22:this.PR(J);break;case 31:z=tv(J,Noq);this.K9(z);break;case 52:z=tv(J,Scq);this.y3(z);break;default:this.W3(z,J)}}; +Cs.prototype.tH=function(){}; +Cs.prototype.W3=function(){};g.p(aF,Cs);g.F=aF.prototype; +g.F.W3=function(z,J){J.getLength();switch(z){case 35:this.wm(J);break;case 44:this.Dl(J);break;case 43:this.Dr(J);break;case 53:this.wc(J);break;case 55:z=new gY(J);(z={timeline:u_(z,1,$Qj),yWz:u_(z,2,Mob)},z.timeline)&&z.timeline.yZ&&this.Dd.QU(z.timeline.yZ,z.timeline.Vpy,z.yWz);break;case 56:this.SW();break;case 57:this.LL(J);break;case 42:this.N5(J);break;case 45:this.x$(J);break;case 59:this.U5(J);break;case 51:this.Ge(J);break;case 49:this.Yn(J);break;case 50:this.eW(J);break;case 47:this.IX(J); +break;case 58:this.xH(J);break;case 61:this.Dd.aj.uM((0,g.b5)());break;case 66:this.vN(J);break;case 46:this.wv(J);break;case 67:this.onSnackbarMessage(J)}}; +g.F.Ge=function(z){z=new gY(z);z={rc3:P2(z,1,zv),cc1:P2(z,2,zv)};this.Dd.Ge(z)}; +g.F.U5=function(z){var J=new gY(z);z=VJ(J,1);var m=VJ(J,2);J=VJ(J,3);this.Dd.U5(z,m,J)}; +g.F.x$=function(z){z=ec(new gY(z));this.Dd.x$(z)}; +g.F.IX=function(z){z=tv(z,nP4);this.Dd.IX(z)}; +g.F.N5=function(z){z=new gY(z);z={videoId:hv(z,1),formatId:u_(z,2,zv),endTimeMs:Av(z,3),mQF:Av(z,4),mimeType:hv(z,5),rj:u_(z,6,qc4),indexRange:u_(z,7,qc4),lD:u_(z,8,dQq)};this.Dd.N5(z)}; +g.F.LL=function(z){z=Mob(new gY(z));this.Dd.LL(z)}; +g.F.SW=function(){this.Dd.SW()}; +g.F.wm=function(z){z=Gs4(new gY(z));this.Dd.wm(z)}; +g.F.wc=function(z){z=Boq(new gY(z));this.Dd.wc(z)}; +g.F.Dl=function(z){z=DQb(new gY(z));this.Dd.Dl(z)}; +g.F.Dr=function(z){z={redirectUrl:hv(new gY(z),1)};this.Dd.Dr(z)}; +g.F.RZ=function(z){var J=z.getUint8(0);if(z.getLength()!==1){z=z.split(1).Li;var m=this.T[J]||null;m&&$p(this.Dd.I1,J,m,z)}}; +g.F.PR=function(z){z=z.getUint8(0);var J=this.T[z]||null;J&&this.Dd.PR(z,J)}; +g.F.y3=function(z){this.Dd.y3(z)}; +g.F.tH=function(z){var J=z.Bt,m=z.Vo,e=z.Me,T=z.Hb,E=z.xx,Z=z.Bu,c=z.startMs,W=z.durationMs,l=z.timeRange,w=z.YG,q=z.clipId,d=Bo(z);z=c_c.has(Ue[""+z.itag]);this.T[J]=d;this.Dd.PQ(d,z,{Bt:J,Vo:!!m,Me:e!=null?e:-1,Bu:Z!=null?Z:-1,startMs:c!=null?c:-1,durationMs:W!=null?W:-1,YG:w,Hb:T,xx:E,clipId:q,timeRange:l})}; +g.F.Yn=function(z){z={rC:Av(new gY(z),1)};this.Dd.Yn(z)}; +g.F.eW=function(z){z={rC:Av(new gY(z),1)};this.Dd.eW(z)}; +g.F.K9=function(z){this.Dd.K9(z)}; +g.F.xH=function(z){z=EPq(new gY(z));this.Dd.xH(z)}; +g.F.vN=function(z){z={QI:u_(new gY(z),1,a3z)};this.Dd.vN(z)}; +g.F.onSnackbarMessage=function(z){z=Av(new gY(z),1);this.Dd.onSnackbarMessage(z)}; +g.F.wv=function(z){z={reloadPlaybackParams:u_(new gY(z),1,Tou)};this.Dd.wv(z)};g.p(Ks,g.h);g.F=Ks.prototype;g.F.D8=function(){return Array.from(this.jo.keys())}; +g.F.Vr=function(z){z=this.jo.get(z);var J=z.R1;z.pR+=J.getLength();z.R1=new GU;return J}; +g.F.Z2=function(z){return this.jo.get(z).Z2}; +g.F.Xf=function(z){return this.jo.get(z).Xf}; +g.F.PQ=function(z,J,m,e){this.jo.get(z)||L2b(this,z,J);J=this.jo.get(z);if(this.E2){z=vef(this,z,m);if(e)for(var T=g.y(z),E=T.next();!E.done;E=T.next()){E=E.value;var Z=e;E.fh=Z;E.startTime+=Z;E.U+=Z;E.Y+=Z}Q1z(this,m.Bt,J,z)}else m.Vo?J.cq=m.YG:J.dV.push(m),J.Yf.push(m)}; +g.F.uR=function(z){var J;return((J=this.jo.get(z))==null?void 0:J.s2)||[]}; +g.F.BC=function(){for(var z=g.y(this.jo.values()),J=z.next();!J.done;J=z.next())J=J.value,J.z1&&(J.kZ&&J.kZ(),J.z1=!1)}; +g.F.PR=function(z,J){this.logger.debug(function(){return"[onMediaEnd] formatId: "+J}); +var m=this.jo.get(J);if(BX){if(m&&!m.Z2){if(m.RF.get(z))m.RF.get(z).NE=!0;else{var e;((e=this.dw)==null?0:e.OD)&&m.RF.set(z,{data:new GU,TU:0,NE:!0})}m.Xf=!0}}else m&&!m.Xf&&(m.Xf=!0)}; +g.F.Jb=function(z){if(BX){var J=this.jo.get(z);if(J)for(var m=g.y(J.RF),e=m.next();!e.done;e=m.next()){var T=g.y(e.value);e=T.next().value;T=T.next().value;var E=J.Jj.get(e);if(xY(E[0])){if(!T.NE)continue;var Z=E,c=T.data;c.getLength();E=0;var W=[];Z=g.y(Z);for(var l=Z.next();!l.done;l=Z.next()){l=l.value;var w=l.S,q=nc(c,E,w);E+=w;W.push(new z4(l,q))}J.D3.push.apply(J.D3,g.X(W))}else if(T.data.getLength()>0||!E[0].range&&T.NE)c=void 0,E=E[0],W=T.TU,Z=T.data,E.range||(c=T.NE),l=Z.getLength(),c=new z4(z91(E, +E.T+W,l,c),Z),T.TU+=c.info.S,J.D3.push(c);J.RF.get(e).data=new GU;T.NE&&J.RF.delete(e)}z=this.jo.get(z);if(!z)return[];J=z.D3;z.D3=[];m=g.y(J);for(e=m.next();!e.done;e=m.next())z.pR+=e.value.info.S;return J||[]}m=(J=this.jo.get(z))==null?void 0:J.XG;if(!m)return[];this.TC(z,m);return m.Jb()}; +g.F.mS=function(z){if(BX)return bo(this,z);var J,m,e;return!!((m=(J=this.jo.get(z))==null?void 0:J.XG)==null?0:(e=m.ir())==null?0:e.length)||bo(this,z)}; +g.F.TC=function(z,J){for(;bo(this,z);){var m=this.Vr(z);var e=z;e=this.jo.get(e).Z2&&!DM(this,e);cX(J,m,e&&kvb(this,z))}}; +g.F.oy=function(){g.h.prototype.oy.call(this);for(var z=g.y(this.jo.keys()),J=z.next();!J.done;J=z.next())SW(this,J.value);var m;if((m=this.dw)==null?0:m.u3)for(z=g.y(this.jo.values()),J=z.next();!J.done;J=z.next())J=J.value,J.RF.clear(),J.Jj.clear(),J.D3.length=0,J.s2.length=0,J.Yf.length=0,J.dV.length=0;this.jo.clear()}; +var BX=!1;g.p(gD,g.h);g.F=gD.prototype;g.F.oU=function(){!this.mF()&&this.xhr&&(this.TC(!1),UC(this.Dd,this))}; +g.F.UQ=function(){}; +g.F.gk=function(){if(!this.mF()&&this.xhr){var z=this.ke();z===5?qm(this.qT):this.f1(z);this.qT.T.stop();var J;(J=this.Hl)==null||J.stop()}}; +g.F.ke=function(){var z="";IF(this.qT,this.xhr)&&(z=OZR(this.qT,this.xhr));if(z)return this.info.QH.sS(this.L1,z),3;this.TC(!0);if(dD(this.qT,this.xhr.status,this.xhr.Fs(),this.info.Wv(),this.By))return 5;if(this.l6)return 3;dgz(this.qT,this.xhr.lG(),0,this.Wv());this.policy.Wr&&Rt1(this.Dd);return 4}; +g.F.TC=function(z){var J=this.xhr;if((z||!IF(this.qT,this.xhr))&&J.SY()){z=J.fQ();var m=z.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+m}); +this.XU.feed(z)}}; +g.F.Rg=function(z,J){this.xhr.g_()&&z===21&&Jes(this);this.vg.Rg(z,J)}; +g.F.RU=function(z,J,m,e){m||(this.aj.RU(e),this.policy.NN&&z===21&&Jes(this));if(z!==21)return!1;this.aj.Ry=!0;z=J.getLength();m||(this.qU=J.getUint8(0),J=J.split(1).Li);var T=this.policy.KW,E=this.vg.T[this.qU],Z=this.E2.S.get(E);if(T&&Z&&(T*=Z.info.RT,z+m!==e&&z0){this.policy.b3&&this.qT.T.stop();z=this.aj.k7();J=this.aj.Ml();var m=mxR(this,z);if(!(J>m.Wi||m.P3>0&&this.info.GY()>m.P3)){this.oQ=(0,g.b5)();var e;(e=this.Hl)==null||e.stop();this.policy.Wr&&(e=this.Dd,z={Ow:Math.round(J*z/1E3),P9:z},e.policy.Wr&&(e.x3=z,e.hT++));this.OQ()}}}}; +g.F.OQ=function(){this.qT.OQ()}; +g.F.Dl=function(z){this.Dd.Dl(z,this.t4())}; +g.F.Dr=function(z){this.l6=!0;this.info.QH.sS(this.L1,z.redirectUrl)}; +g.F.Yn=function(z){this.aj instanceof Yp&&this.aj.Yn(z)}; +g.F.eW=function(z){this.aj instanceof Yp&&this.aj.eW(z)}; +g.F.QU=function(z,J,m){this.Dd.QU(z,J,m,this.t4())}; +g.F.N5=function(z){var J=z.formatId,m=Bo({itag:J.itag,lmt:J.lmt,xtags:J.xtags}),e,T,E=new fa(((e=z.rj)==null?void 0:e.first)||0,((T=z.rj)==null?void 0:T.x4)||0),Z,c;e=new fa(((Z=z.indexRange)==null?void 0:Z.first)||0,((c=z.indexRange)==null?void 0:c.x4)||0);if(!this.E2.S.get(m)){m=z.lD||{};if(this.policy.u7){var W,l;z=(W=z.mimeType)!=null?W:"";W=(l=J.itag)!=null?l:0;l=Ue[""+W];m.mimeType=l!=="9"&&l!=="9h"?z:'video/webm; codecs="'+["vp09",l==="9h"?"02":"00","51",l==="9h"?"10":"08","01.01.01.01.00"].join(".")+ +'"'}else m.mimeType=z.mimeType;m.itag=J.itag;m.lastModified=""+(J.lmt||0);m.xtags=J.xtags;J=this.E2;l=Nd("");W=pt(m,null);ls(J,new is(l,W,E,e))}}; +g.F.x$=function(z){this.Dd.x$(z)}; +g.F.onSnackbarMessage=function(z){if(this.policy.uT)this.Dd.onSnackbarMessage(z)}; +g.F.K9=function(z){this.Z7=z;this.Ed=(0,g.b5)();this.Dd.K9(z)}; +g.F.U5=function(z,J,m){this.Dd.U5(z,J,m)}; +g.F.LL=function(z){z.scope===2&&(this.HsW=z);this.Dd.LL(z)}; +g.F.SW=function(){this.tU=!0;this.Dd.SW()}; +g.F.Ge=function(z){this.policy.qp&&this.Dd.Ge(z)}; +g.F.IX=function(z){this.Dd.IX(z,this.t4())}; +g.F.xH=function(z){z.L3===3&&(this.By=!0);this.Dd.xH(z)}; +g.F.vN=function(z){this.Dd.vN(z)}; +g.F.wv=function(z){this.Dd.wv(z)}; +g.F.canRetry=function(){this.mF();return this.qT.canRetry(!1)}; +g.F.dispose=function(){if(!this.mF()){g.h.prototype.dispose.call(this);this.qT.dispose();var z;(z=this.Hl)==null||z.dispose();this.f1(-1);this.F3()}}; +g.F.f1=function(z){this.state=z;UC(this.Dd,this)}; +g.F.Wv=function(){return this.info.Wv()}; +g.F.pK=function(){return this.tU}; +g.F.XB=function(){return this.HsW}; +g.F.PQ=function(z,J,m){m.clipId&&(this.clipId=m.clipId);this.policy.Z&&!J&&(this.BK=m.Bu,this.C9=m.startMs);var e=0;this.policy.kx&&this.sE&&this.clipId&&(e=Mv(this.sE,this.clipId)/1E3);this.I1.PQ(z,J,m,e);this.policy.gq&&this.Z7&&this.aj instanceof sh&&(e=this.Z7.S3,this.aj.PQ(m.durationMs/1E3,J,e>0&&m.Bu+1>=e));this.I1.jo.get(z).W2=!0}; +g.F.PR=function(z,J){this.I1.PR(z,J)}; +g.F.y3=function(z){this.requestIdentifier=z}; +g.F.Jb=function(z){return this.I1.Jb(z)}; +g.F.uR=function(z){return this.I1.uR(z)}; +g.F.mS=function(z){return this.I1.mS(z)}; +g.F.D8=function(){return this.I1.D8()}; +g.F.J0=function(){return 1}; +g.F.t4=function(){return this.aj.requestNumber}; +g.F.LP=function(){return this.requestIdentifier}; +g.F.qg=function(){return this.clipId}; +g.F.jO=function(){return this.L1.jO()}; +g.F.Ud=function(){this.F3()}; +g.F.F3=function(){this.aj.deactivate();var z;(z=this.xhr)==null||z.abort()}; +g.F.isComplete=function(){return this.state>=3}; +g.F.T3=function(){return this.state===3}; +g.F.UA=function(){return this.state===5}; +g.F.P8=function(){return this.state===4}; +g.F.Rt=function(){return this.isComplete()}; +g.F.bW=function(){return this.state>=1}; +g.F.mL=function(){return this.policy.ED?this.qT.mL():0}; +g.F.dK=function(){this.policy.ED&&UC(this.Dd,this)}; +g.F.f_=function(){return a6z(this.info)}; +g.F.KF=function(){return this.qT.KF()}; +g.F.Ln=function(){var z=pJE(this.qT);Object.assign(z,Bcs(this.info));z.req="sabr";z.rn=this.t4();var J;if((J=this.xhr)==null?0:J.status)z.rc=this.policy.Nw?this.xhr.status:this.xhr.status.toString();var m;(J=(m=this.xhr)==null?void 0:m.Cc())&&(z.msg=J);this.oQ&&(m=mxR(this,this.oQ-this.aj.RC()),z.letm=m.tEi,z.mrbps=m.Wi,z.mram=m.P3);return z}; +g.F.tM=function(){return{BK:this.BK,C9:this.C9,isDecorated:this.info.isDecorated()}};ecR.prototype.tick=function(z,J){this.ticks[z]=J?window.performance.timing.navigationStart+J:(0,g.b5)()};g.p(Mm,g.wF);g.F=Mm.prototype; +g.F.Iv=function(z,J,m,e){if(this.policy.BR&&this.policy.Z){var T=z.dL||null;T?(pof(this,z.Y3,VT(this,z.startTime,z.Y3),{dL:T,Y3:z.Y3,r6:!!J,HA:m},this.S),e&&this.S&&this.S.w_(z.Y3,z.startTime,this.T,(J==null?void 0:J.K)||[],(J==null?void 0:J.T)||[],(J==null?void 0:J.S)||[],m,(J==null?void 0:J.jA)||0,(J==null?void 0:J.U)||void 0)):this.T===1&&oF(this,5,"noad")}else{var E=!1;this.policy.O2&&(E=m?this.wb===z.Y3:this.Tf===z.Y3);if(this.S&&e&&!E){e=[];E=[];var Z=[],c=void 0,W=0;J&&(e=J.K,E=J.T,Z=J.S,c= +J.U,W=J.jA,this.ph("sdai",{sq:z.Y3,ssvicpns:e.join("."),ssvid:E.join(".")}));this.policy.O2&&(m?this.wb=z.Y3:this.Tf=z.Y3);this.S.w_(z.Y3,z.startTime,this.T,e,E,Z,m,W,c)}this.policy.O2?m&&(this.T===1&&oF(this,5,"noad"),z.Y3!==((T=this.K)==null?void 0:T.Y3)&&(Ihb(this,z,J,m),isNaN(z.startTime)||jW(this,z.Y3,VT(this,z.startTime,z.Y3),!!J,this.S))):m&&Ihb(this,z,J)}}; +g.F.oZ=function(z,J,m){var e=this.videoTrack.K.index.eO()<=J;this.K={dL:z,Y3:J,r6:m};e&&Aa(this,z,J)}; +g.F.Zj=function(){this.S&&this.S.Zj()}; +g.F.ph=function(z,J,m){(z!=="sdai"||this.policy.zo||(m===void 0?0:m))&&this.v1.ph(z,J)}; +g.F.Mw=function(z,J){var m=this.videoTrack.K.index.T7(z);if(m>=0){var e;var T=((e=J.Fq.FP(m,2))==null?void 0:e.tQ)||"";if(this.policy.Z||T)return J.Jc(z,m),ha(this.v1,z,z,m),this.ph("sdai",{cmskpad:1,t:z.toFixed(3),sq:m}),!0}this.ph("sdai",{cmskpad:0,t:z.toFixed(3),sq:m});return!1};g.p(UN,g.h);UN.prototype.RA=function(z,J,m){m=m===void 0?{}:m;this.policy.nB=$Q(z,m,this.U,J===void 0?!1:J)};vX.prototype.SS=function(z){var J=this;if(this.policy.JP){var m=new Set(z);m.size===this.x3.size&&[].concat(g.X(m)).every(function(e){return J.x3.has(e)})||(this.v1.ph("lwnmow",{itagDenylist:[].concat(g.X(z)).join(",")}),this.v1.dU(!!m.size),this.B=-1,this.x3=m,sN(this,this.K),this.h6=!0)}}; +vX.prototype.RA=function(z,J,m){m=m===void 0?{}:m;var e=this.policy.nB;this.Z.RA(z,J===void 0?!1:J,m);if(e!==this.policy.nB){sN(this,this.K);rD(this);var T,E;e>this.policy.nB&&((T=this.S)==null?0:vQ(T.info))&&((E=this.nextVideo)==null||!vQ(E.info))&&(this.Ry=!0)}};eQ.prototype.Vc=function(z){this.timestampOffset=z;this.flush()}; +eQ.prototype.flush=function(){if(this.K.pos>0){var z={a:this.track.SI(),u:this.K.G7(),pd:Math.round(this.U),ad:Math.round(this.S)},J=this.T;if(J){var m=J.K.info;z.itag=m.itag;m.K&&(z.xtags=m.K);z.sq=J.Y3;z.st=J.startTime;z.sd=J.duration;this.track.policy.yB&&(z.si=J.YQ());J.Z&&(z.esl=J.T+J.S);J.yC()&&(z.eos=1)}isNaN(this.timestampOffset)||(z.to=this.timestampOffset);var e;if(J=(e=this.track.Lq)==null?void 0:e.kQ({})){for(var T in J)this.Y[T]!==J[T]&&(z["sb_"+T]=J[T]);this.Y=J}this.track.ph("sbu", +z);this.K.reset();this.buffered=[];this.Z=this.S=this.U=0;this.timestampOffset=this.T=void 0}};E9.prototype.dispose=function(){this.fh=!0}; +E9.prototype.mF=function(){return this.fh}; +g.p(lC,Error);var gNu=new Uint8Array([0,0,0,38,112,115,115,104,0,0,0,0,237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237,0,0,0,6,72,227,220,149,155,6]);dr.prototype.skip=function(z){this.offset+=z}; +dr.prototype.vB=function(){return this.offset};g.F=TKz.prototype;g.F.p_=function(){return this.T}; +g.F.bJ=function(){return this.T.length?this.T[this.T.length-1]:null}; +g.F.HX=function(){this.T=[];Nn(this);pC(this)}; +g.F.Vr=function(z){this.Lh=this.T.shift().info;z.info.NL(this.Lh)}; +g.F.uR=function(){return g.Ch(this.T,function(z){return z.info})}; +g.F.SI=function(){return!!this.Y.info.audio}; +g.F.getDuration=function(){return this.Y.index.a8()};g.p(jw,m3);g.F=jw.prototype;g.F.onStateChange=function(){this.mF()&&(fs(this.I1,this.formatId),this.K.dispose())}; +g.F.Ln=function(){var z=RSq(this.I1,this.formatId),J;var m=((J=this.I1.jo.get(this.formatId))==null?void 0:J.bytesReceived)||0;var e;J=((e=this.I1.jo.get(this.formatId))==null?void 0:e.pR)||0;return{expected:z,received:m,bytesShifted:J,sliceLength:DM(this.I1,this.formatId),isAnyMediaEndReceived:this.I1.Xf(this.formatId)}}; +g.F.AC=function(){return 0}; +g.F.jw=function(){return!0}; +g.F.Jb=function(){return this.I1.Jb(this.formatId)}; +g.F.ir=function(){return[]}; +g.F.mS=function(){return this.I1.mS(this.formatId)}; +g.F.KF=function(){return this.lastError}; +g.F.mL=function(){return 0};g.p(YS,g.h);g.F=YS.prototype;g.F.SI=function(){return!!this.K.info.audio}; +g.F.bJ=function(){return this.U.bJ()}; +g.F.Vr=function(z){this.U.Vr(z);var J;(J=this.X)!=null&&(J.Z.add(z.info.Y3),J.K=fZE(J,J.rE,J.Yl,z,J.K),J.S=z,J.Y=(0,g.b5)());this.RT=Math.max(this.RT,z.info.K.info.RT||0)}; +g.F.getDuration=function(){if(this.policy.T){var z=this.v1.wW();if(z)return tH(z)}return this.K.index.a8()}; +g.F.HX=function(){u6(this);this.U.HX()}; +g.F.hn=function(){return this.U}; +g.F.isRequestPending=function(z){return this.S.length?z===this.S[this.S.length-1].info.s2[0].Y3:!1}; +g.F.Vc=function(z){var J;(J=this.X)==null||J.Vc(z);var m;(m=this.B)==null||m.Vc(z)}; +g.F.ph=function(z,J){this.v1.ph(z,J)}; +g.F.Wt=function(){return this.v1.Wt()}; +g.F.dispose=function(){var z;(z=this.B)==null||z.flush();g.h.prototype.dispose.call(this)};g.p(LC,g.h);LC.prototype.S=function(){this.T++>15||(this.K=!this.K,new Lmb(this.v1,this.policy,this.G4,this.QH,this.K),this.delay.start())}; +g.F=Lmb.prototype;g.F.UQ=function(){}; +g.F.oU=function(){}; +g.F.gk=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.lG()===this.size)this.v1.ph("rqs",this.getInfo());else{var z="net.connect";this.xhr.status>200?z="net.badstatus":this.xhr.LS()&&(z="net.closed");this.onError(z)}}; +g.F.onError=function(z){var J=this;this.v1.handleError(z,this.getInfo());Sw("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(m){J.v1.ph("pathprobe",m)},function(m){J.v1.handleError(m.errorCode,m.details)})}; +g.F.getInfo=function(){var z=this.timing.Kj();z.shost=KZ(this.location.base);z.pb=this.size;return z};g.p(QW,g.h); +QW.prototype.V=function(z,J){if(z.V){this.E2.isLive?(z=this.E2.Jp&&this.E2.U?z.K.cN(this.E2.Jp,!1):z.K.ZJ(Infinity),z.bU=this.bU):z=z.K.cN(0,!1);if(this.Ry){var m=this.Ry;z.bU===0&&(z.Z=m.X)}else z.Z=this.B;return z}m=z.T;if(!m.K.bC())return m.K.Sx()?(z=b6(this.Z,z.K.info.RT,J.K.info.RT,0),z=m.K.nQ(m,z)):z=m.K.OV(m),z;var e=m.Y-this.v1.getCurrentTime(),T=!m.range||m.S===0&&m.T===0?0:m.range.length-(m.T+m.S),E=m.K;this.Xe(z,e)&&T===0&&(this.E2.isManifestless?E=z.K:(E=m.startTime+tg1,m.S&&(E+=m.duration), +tp(z,E),m=z.T,E=m.K));E.Sx()?(T=this.S,J=b6(this.Z,E.info.RT,J.K.info.RT,e,T.U.length>0&&T.X===0&&this.v1.Ax),e=h6(z),z=m.K.nQ(m,J),(J=z.S)&&z.s2.length>1&&(e||z.QH.T||z.s2[0].K!==m.K?z=m.K.nQ(m,z.s2[0].S):(e=z.s2[z.s2.length-1],E=e.S/J,!e.Z&&E<.4&&(z=m.K.nQ(m,J-e.S))))):(m.Y3<0&&(J=jF(m),J.pr=""+z.S.length,this.v1.isSeeking()&&(J.sk="1"),J.snss=m.V,this.v1.ph("nosq",J)),z=E.OV(m));if(this.policy.wb)for(m=g.y(z.s2),J=m.next();!J.done;J=m.next())J.value.type=6;return z}; +QW.prototype.Xe=function(z,J){if(!h6(z)||!z.K.bC())return!1;var m=this.S.h6||btb(z)||J<=this.policy.pW||this.S.Ry;this.logger.debug(function(){return"ready to adapt: "+m+", upgrade pending: "+btb(z)+", health: "+J}); +return m}; +QW.prototype.oy=function(){g.h.prototype.oy.call(this)}; +var tg1=2/24;g.p(zg,g.h);zg.prototype.xg=function(z,J,m){var e;var T=((e=this.T)==null?void 0:e.reason)==="m"?"m":this.T&&dA1(this,this.T)?this.T.reason:"a";this.v1.xg(new HX(z,T,m));s9(this.v1,J,z,!0)}; +zg.prototype.KO=function(z,J){for(var m=g.y(this.wb),e=m.next();!e.done;e=m.next())if(e=e.value,e.id===z)return this.dw.Fj||(this.S=[e]),this.Y=this.E2.K[z],Rf(this.dw)&&(this.Ry=!0),z=new HX(this.Y,J?"t":"m"),this.dw.rL&&J&&(this.Z=!0),z;this.S=[];return null}; +zg.prototype.RA=function(z,J,m){m=m===void 0?{}:m;this.K.RA(z,J===void 0?!1:J,m)};e_.prototype.setData=function(z,J,m,e){var T=this;e=e===void 0?{}:e;if(m==null?0:m.gE)this.Ek=zcb(this,m,e),z.rI=this.QH.rI();if(this.Wv())return!0;this.data=z;this.K=Yjq(z,J,function(E,Z){var c;(c=T.Dd)==null||c.fq(E,Z)},m==null?void 0:m.S); +if(!this.K)return!1;this.T=g.sO(this.K,clR);return!0}; +e_.prototype.Wv=function(){return this.requestType===1}; +e_.prototype.GY=function(){var z;return((z=this.Dd)==null?void 0:z.GY())||0}; +e_.prototype.isDecorated=function(){var z;return!((z=this.data)==null||!z.Ej)};Tg.prototype.encrypt=function(z){this.Qv.exports.AES128CTRCipher_encrypt(this.cipher,z.byteOffset,z.byteLength);return z}; +Tg.prototype.mF=function(){return this.cipher===0}; +Tg.prototype.dispose=function(){this.Qv.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};EC.prototype.encrypt=function(z,J){return wH(this.subtleCrypto.encrypt({name:"AES-CTR",length:128,counter:J},this.key,z).catch(function(m){return Promise.reject(m.name+": "+m.message)}).then(function(m){return new Uint8Array(m)}))}; +EC.prototype.mF=function(){return this.K}; +EC.prototype.dispose=function(){this.K=!0}; +n7.eQ(EC,{encrypt:f61("oan2")});Zi.prototype.encrypt=function(z,J){GV(this.T,J);return wH(this.T.encrypt(z))}; +Zi.prototype.mF=function(){return this.K}; +Zi.prototype.dispose=function(){this.K=!0}; +n7.eQ(Zi,{encrypt:f61("oap")});FK.prototype.encrypt=function(z,J){var m=this.Qv.oG(J),e=this.K;e.Qv.exports.AES128CTRCipher_setCounter(e.cipher,(m!=null?m:J).byteOffset);J=this.Qv.oG(z);this.K.encrypt(J!=null?J:z);m&&this.Qv.free(m.byteOffset);return J?wH(this.Qv.Ga(J)):wH(z)}; +FK.prototype.mF=function(){return this.K.mF()}; +FK.prototype.dispose=function(){this.K.dispose()}; +n7.eQ(FK,{encrypt:f61("oalw")});i3.prototype.encrypt=function(z,J){var m=this,e=dH("");z.length<=this.x0&&this.K&&!this.U&&(e=yN(e,function(){return m.K?m.K.encrypt(z,J):dH("wasm unavailable")})); +z.length<=this.MC&&(this.K&&this.U&&(e=yN(e,function(){return m.K?m.K.encrypt(z,J):dH("wasm unavailable")})),e=yN(e,function(){return $Aq(m,z,J)})); +return yN(yN(e,function(){return g51(m,z,J)}),function(){return $Aq(m,z,J)})}; +i3.prototype.mF=function(){return this.Z}; +i3.prototype.dispose=function(){this.Z=!0;var z;(z=this.S)==null||pQ(z,g.Wc);g.Wc(this.K);g.Wc(this.T)};c4.prototype.encrypt=function(z){(0,g.b5)();return(new F_(this.K.K)).encrypt(z,this.iv)}; +c4.prototype.decrypt=function(z,J){(0,g.b5)();return(new F_(this.K.K)).decrypt(z,J)}; +c4.prototype.mF=function(){return this.S}; +c4.prototype.dispose=function(){this.S=!0;g.Wc(this.T)};g.p(W4,g.h);W4.prototype.S=function(z,J){if(J){J=J instanceof g.CZ?J:l3(this,J);var m;((m=this.K.get(z))==null?void 0:KZ(m.location))!==KZ(J)&&this.K.set(z,new tRE(J,z))}else this.K.delete(z)}; +W4.prototype.load=function(){var z=this,J,m,e,T,E,Z,c,W,l,w;return g.D(function(q){switch(q.K){case 1:J=z.K.get(0);g.Yu(q,2);var d;if(d=J&&!z.T)d=KZ(J.location),d=z.T===wD(d);if(d){q.U2(4);break}return g.S(q,VRR(z,z.T?2:0),5);case 5:if(m=q.T)z.S(0,m),Sc(m)&&z.S(1,fZ(m));case 4:g.aq(q,3);break;case 2:e=g.Kq(q);g.hr(e);if(!z.T){q.U2(3);break}z.T=!1;return g.S(q,z.load(),7);case 7:return q.return();case 3:if(!z.yx.experiments.j4("html5_onesie_probe_ec_hosts")){q.U2(0);break}g.Yu(q,9);T=z;E=T.S;Z=3;return g.S(q, +VRR(z,1),11);case 11:return E.call(T,Z,q.T),c=z,W=c.S,l=4,g.S(q,VRR(z,2),12);case 12:W.call(c,l,q.T);g.aq(q,0);break;case 9:w=g.Kq(q),g.hr(w),g.nq(q)}})}; +W4.prototype.V=function(){var z=this,J,m;return g.D(function(e){g.sD(z.X);J=g.dv(z.yx.experiments,"html5_onesie_prewarm_max_lact_ms");if(bE()>=J)return e.return();(m=z.K.get(0))&&u_q(z,m);g.nq(e)})}; +var jJq={El6:0,yzf:1,WSy:2,H$W:3,QF2:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};Hiz.prototype.decrypt=function(z){var J=this,m,e,T,E,Z,c;return g.D(function(W){switch(W.K){case 1:if(J.K.length&&!J.K[0].isEncrypted)return W.return();J.T=!0;J.a$.Yr("omd_s");m=new Uint8Array(16);Yr()?e=new Z6(z):T=new F_(z);case 2:if(!J.K.length||!J.K[0].isEncrypted){W.U2(4);break}E=J.K.shift();if(!e){Z=T.decrypt(E.buffer.cz(),m);W.U2(5);break}return g.S(W,e.decrypt(E.buffer.cz(),m),6);case 6:Z=W.T;case 5:c=Z;for(var l=0;l=4)){var J=j_(this),m=this.xhr;J.rc=m.status;z&&(J.ab=!0);if(m.Cc()){var e="onesie.net";J.msg=m.Cc()}else m.status>=400?e="onesie.net.badstatus":m.Fs()?this.JM||(e="onesie.response.noplayerresponse"):e=m.status===204?"onesie.net.nocontent":"onesie.net.connect";e?this.Ii(new Sl(e,J)):(this.Yr("or_fs"),this.aj.ZY((0,g.b5)(),m.lG(),0),this.f1(4),this.ex&&this.ph("rqs",J));this.ex&&this.ph("ombre", +"ok."+ +!e);this.tj=!1;u3(this);ir4(this.a$);if(!this.Rx){this.Qh.stop();var T;(T=this.V1)==null||T.stop()}var E;if(z=(E=this.yJ)==null?void 0:PlE(E))for(E=0;E1E3){var z;(z=this.aj)==null||z.z_((0,g.b5)());z=j_(this);if(this.yx.AZ()&&this.xhr instanceof eW){var J=this.xhr;z.xrs=J.xhr.readyState;z.xpb=J.K.getLength();z.xdc=J.U}this.Ii(new Sl("net.timeout",z))}}else(0,g.b5)()-this.aj.K>1E4&&((J=this.aj)==null||J.z_((0,g.b5)()),this.yk());this.isComplete()||this.tv.start()}}; +g.F.yk=function(){this.logger.info("Onesie request timed out");this.tj=!1;if(!u3(this)){var z=j_(this);z.timeout="1";this.Ii(new Sl("onesie.request",z))}}; +g.F.Ii=function(z){var J=this;z=Dk(z);this.PC?this.H1.Br(z):(this.Xm.reject(z),this.PC=!0);ir4(this.a$);this.Rx||this.Qh.stop();this.Yr("or_fe");var m,e;(m=this.yJ)==null||(e=PlE(m))==null||e.forEach(function(T){J.ph("pathprobe",T)}); +this.f1(5);this.dispose()}; +g.F.isComplete=function(){return this.state>=3}; +g.F.P8=function(){return this.state===4}; +g.F.Rt=function(z){var J,m;return this.isComplete()||!!((J=this.Lc)==null?0:(m=J.get(z))==null?0:m.K)}; +g.F.T3=function(){return!1}; +g.F.UA=function(){return this.state===5}; +g.F.notifySubscribers=function(z){for(var J=0;J102400&&!this.l2&&(this.Yr("or100k"),this.l2=!0);if(z.SY()){var J=z.fQ(),m=J.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+m}); +this.ex&&this.ph("ombrss","len."+m);this.XU.feed(J)}if(this.Lc)for(var e=g.y(this.Lc.keys()),T=e.next();!T.done;T=e.next()){var E=T.value;z=void 0;(z=this.Lc.get(E))==null||z.BC();this.notifySubscribers(E)}}catch(Z){this.Ii(Z)}}; +g.F.t4=function(){return this.aj.requestNumber}; +g.F.LP=function(z){return this.Bp.get(z)}; +g.F.tM=function(){return{BK:this.BK,C9:this.C9,isDecorated:!1}};g.p(Kpu,g.h);g.F=Kpu.prototype;g.F.IU=function(z,J){this.fh=void 0;Rt1(this);t81(this,z,J)}; +g.F.Mu=function(z){if(this.K.length===0)return!1;var J=this.K[0];return J instanceof hH?z===this.v1.getCurrentTime()*1E3:!(J instanceof gD&&Kzq(J.info))&&Math.abs(J.f_()-z)<50}; +g.F.wm=function(z){this.T=z;this.fh=(0,g.b5)()+(z.backoffTimeMs||0)}; +g.F.Dl=function(z,J){if(z.action===void 0){var m=this.H1.au();m!==void 0&&this.v1.zq(m)}else if(z.action!==0||!this.Lh)switch(z.action===0&&this.policy.Uo&&(z.action=2),m={},m.reason=z.icb,m.action=z.action,m.rn=J,z.action){case 1:this.policy.Z&&this.U&&this.U.G5(void 0,void 0,m);break;case 0:this.Lh=!0;this.videoData.b8()&&this.policy.Z&&this.U&&this.U.G5(void 0,void 0,m,!1);this.v1.uH(m);break;case 2:this.v1.handleError("sabr.config",m,1);break;case 5:Czq(this.H1,!0);break;case 6:Czq(this.H1,!1); +break;case 3:this.policy.gE&&((z=this.E2.X)!=null&&(z.X=!0),this.v1.handleError("sabr.hostfallback",m))}}; +g.F.QU=function(z,J,m,e){if(this.policy.T){this.v1.ph("ssap",{rn:e,v:J,tl:LpR(z)});var T=this.v1.wW();z={pS:z,context:m,version:J};HrR(this,m);T?UJf(this,T,z):(this.v1.ph("ssap",{cacheclips:1,rn:e,v:J}),this.X=z)}}; +g.F.LL=function(z){this.v1.ph("ssap",{onsbrctxt:z.type,dflt:z.sendByDefault});HrR(this,z);this.H1.LL(z)}; +g.F.SW=function(){}; +g.F.x$=function(z){if(z.IQ!==void 0&&z.GQ){var J=z.IQ/z.GQ;this.audioTrack.V=!1;this.videoTrack.V=!1;if(this.policy.fh||this.policy.Tp||this.policy.k$)this.v1.Sp.T=!1;this.v1.sA(J,1);if(this.H1.getCurrentTime()!==J){var m={i8:"sabr_seek",Nt:!0,dX:!0};z.seekSource&&(m.seekSource=z.seekSource);Rc(this.v1,J+.1,m)}}}; +g.F.onSnackbarMessage=function(z){this.H1.publish("onSnackbarMessage",z)}; +g.F.K9=function(z){z.S3&&z.d6&&Kt(this.E2,z.S3,z.d6);this.policy.J7&&(z.lq&&z.vH&&(this.E2.UB=z.lq/z.vH),z.hq&&z.EH&&(this.E2.qY=z.hq/z.EH));this.policy.pM&&(this.policy.J7?z.hq&&z.EH&&this.v1.sA(z.hq,z.EH):z.d6&&this.v1.sA(z.d6,1E3));z.Sv!=null&&this.H1.Bw(z.Sv);this.policy.sB&&z.b_&&(z=((0,g.b5)()-z.b_)/1E3,this.v1.kz.xA(1,z))}; +g.F.xH=function(z){this.v1.xH(z)}; +g.F.YI=function(z){return this.zp.has(z)}; +g.F.U5=function(z,J,m){this.policy.S&&this.v1.ph("sabrctxtplc",{start:z?z.join("_"):"",stop:J?J.join("_"):"",discard:m?m.join("_"):""});if(z){z=g.y(z);for(var e=z.next();!e.done;e=z.next())this.zp.add(e.value)}if(J)for(J=g.y(J),z=J.next();!z.done;z=J.next())z=z.value,this.zp.has(z)&&this.zp.delete(z);if(m)for(m=g.y(m),J=m.next();!J.done;J=m.next())J=J.value,this.videoData.sabrContextUpdates.has(J)&&(this.videoData.sabrContextUpdates.delete(J),J===3&&(this.videoData.UT=""))}; +g.F.Ge=function(){}; +g.F.YL=function(z){this.Y=z}; +g.F.xL=function(z){this.Gf=z}; +g.F.IX=function(z,J){kS(this.policy,z,4,J)}; +g.F.vN=function(z){if(z==null?0:z.QI)if(z=z.QI.Mg){z=g.y(z);for(var J=z.next();!J.done;J=z.next())if(J=J.value,J.formatId){var m=this.E2.S.get(Bo(J.formatId));m&&m.info&&(m.info.debugInfo=J.debugInfo)}}}; +g.F.wv=function(z){(z=z==null?void 0:z.reloadPlaybackParams)&&this.H1.publish("reloadplayer",z)}; +g.F.uF=function(){return this.H1.uF()||""}; +g.F.GY=function(){var z=gr(this.audioTrack,!0)*1E3,J=gr(this.videoTrack,!0)*1E3;return Math.min(z,J)}; +g.F.fq=function(z,J){this.v1.ph(z,J)}; +g.F.S_=function(z){pHu(this.v1,bab(this.ND,z))}; +g.F.oy=function(){g.h.prototype.oy.call(this);this.T=void 0;t81(this,!0,"i");this.K=[]};vtq.prototype.n1=function(z,J){if(this.U)return mLu(this,J);if(J=kl(z)){var m=J.T;m&&m.S&&m.K&&(z=z.S.length?z.S[0]:null)&&z.state>=2&&!z.UA()&&z.info.bU===0&&(this.U=z,this.V=m,this.T=J.info,this.Y=this.startTimeSecs=Date.now()/1E3,this.Z=this.T.startTime)}return NaN}; +vtq.prototype.clear=function(){this.T=this.V=this.U=null;this.K=this.Z=this.Y=this.startTimeSecs=NaN;this.S=!1};g.p(g.QM,g.h);g.F=g.QM.prototype;g.F.initialize=function(z,J,m){this.logger.debug(function(){return"Initialized, t="+z}); +z=z||0;this.policy.K||(J=gYq(this.K),GFq(this.H1,new HX(J.video,J.reason)),this.H1.MN(new HX(J.audio,J.reason)));this.E2.isManifestless&&cDz(this.Z);this.V&&rcu(this.V,this.videoTrack.K);J=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var e=!this.E2.isManifestless;this.policy.VW&&(e=e||this.E2.Ol);this.policy.x3||(this.currentTime=e?z:J);this.policy.fh&&this.seek(this.getCurrentTime(),{}).IF(function(){}); +if(this.policy.K){var T;((T=this.Ry)==null?0:afq(T,this.uF()||""))&&FB4(this)&&Znf(this,this.videoTrack)&&Znf(this,this.audioTrack)&&(kx1(this.S,this.Ry),this.policy.Y&&Evq(this))}else this.fh&&(inz(this,this.videoTrack),inz(this,this.audioTrack),Ugu(this.fh),delete this.fh);m?(this.policy.zs?(this.GS=m,v4(this,m)):v4(this,!1),g.sD(this.qo)):(m=this.getCurrentTime()===0,vs(this.Z,this.videoTrack,this.videoTrack.K,m),vs(this.Z,this.audioTrack,this.audioTrack.K,m),this.policy.K&&ff4(this.S,!0),this.policy.fh|| +this.seek(this.getCurrentTime(),{}).IF(function(){}),this.timing.tick("gv")); +(this.E2.Jp||this.E2.Ni||this.E2.Gf||this.E2.OC||this.E2.ED)&&this.H1.F1(this.E2)}; +g.F.resume=function(){if(this.isSuspended||this.Ax){this.logger.debug("Resumed.");this.Mz=this.Ax=this.isSuspended=!1;try{this.n1()}catch(z){g.jk(z)}}}; +g.F.AQ=function(){return!this.policy.hw}; +g.F.ID=function(z,J){z=z===void 0?!1:z;J=J===void 0?!1:J;this.logger.debug("detaching media source");qHs(this);this.H1.Ep()&&(this.Y=NaN);z?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.Qx&&this.ph("loader",{setsmb:1}),this.policy.wb=!0,this.HX()):(this.policy.zs?v4(this,this.GS):v4(this,!1),J||this.HX())}; +g.F.setAudioTrack=function(z,J,m){m=m===void 0?!1:m;if(!this.mF()){var e=!isNaN(J);m&&e&&(this.audioTrack.fh=Date.now(),this.policy.s4&&(this.nh=!0));if(this.policy.K){var T=this.T.KO(z.id,e);this.logger.debug(function(){return"Logging new audio format: "+T.K.info.id}); +this.H1.MN(T)}else{var E=Dxb(this.K,z.id,e);this.logger.debug(function(){return"Logging new audio format: "+E.audio.info.id}); +this.H1.MN(new HX(E.audio,E.reason))}if(e&&(m=this.audioTrack.K.index.T7(J),this.ph("setAudio",{id:z.id,cmt:J,sq:m}),m>=0)){this.policy.K&&(this.policy.rL||(this.T.Z=!0),this.IU(!0,"mosaic"));xS(this.audioTrack,m,NaN,NaN);!this.policy.Bk&&this.E2.isLive&&as(this.E2,m,!1);return}this.H1.jc()}}; +g.F.setPlaybackRate=function(z){z!==this.B.getPlaybackRate()&&this.B.setPlaybackRate(z)}; +g.F.Ne=function(z){var J=this.S.Y;this.S.YL(z);this.ph("scfidc",{curr:Bo(J),"new":Bo(z)});z&&Bo(z)!==Bo(J)&&(this.IU(!1,"caption change"),this.n1())}; +g.F.gR=function(z){this.S.xL(z)}; +g.F.xg=function(z){var J=z.K.info.SI();this.logger.debug(function(){return"New "+(J?"audio":"video")+" format from SABR: "+Fz(z.K.info)}); +J?this.H1.MN(z):GFq(this.H1,z)}; +g.F.S_=function(z){Mx(z.s2[z.s2.length-1])&&pHu(this,bab(this.K,z.s2[0].K))}; +g.F.Qo=function(){return this.H1.Qo()}; +g.F.Iz=function(){return this.H1.Iz()}; +g.F.xH=function(z){this.H1.W().AZ()&&this.ph("sps",{status:z.L3||""});if(z.L3===1)this.H1.videoData.w2=0;else if(z.L3===2||z.L3===3){var J=!1;if(z.L3===3){J=this.H1.hf();var m;this.l8=(m=z.MIi)!=null?m:Infinity;this.H1.videoData.w2=J+1;(J=iij(this))&&this.xY(!0)}this.H1.aZ(!0,J)}}; +g.F.Na=function(){return this.H1.Na()}; +g.F.Js=function(){return this.H1.Js()}; +g.F.Zr=function(z){this.H1.Zr(z)}; +g.F.PC3=function(){var z,J=(z=this.H1.Vv())==null?void 0:z.getCurrentTime();J?this.H1.ph("rms",{cta:J}):g.sD(this.OC)}; +g.F.n1=function(){Onq(this);if(this.J6&&n2(this.J6)&&!this.J6.Ra()&&(!this.policy.x3||isFinite(this.getCurrentTime()))){var z=af(this.videoTrack);z=this.policy.hN&&z&&z.yC();this.E2.isManifestless&&this.E2.U&&Xb(this.E2)?(this.Y=Xb(this.E2),this.J6.Vm(this.Y)):Bp(this.E2)&&!z?isNaN(this.Y)?(this.Y=this.getCurrentTime()+3600,this.J6.Vm(this.Y)):this.Y<=this.getCurrentTime()+1800&&(this.Y=Math.max(this.Y+1800,this.getCurrentTime()+3600),this.J6.Vm(this.Y)):this.J6.isView||(z=Math.max(this.audioTrack.getDuration(), +this.videoTrack.getDuration()),(!isFinite(this.Y)||this.Y!==z)&&z>0&&(this.J6.Vm(z),this.Y=z))}if(!this.mF())if(G4(this.E2)&&this.E2.UA()){var J=this.E2;this.handleError("manifest.net.retryexhausted",J.nh?{rc:J.dW}:{rc:J.dW.toString()},1)}else if(this.policy.K)a:{try{uwb(this.S);this.E2.isManifestless&&this.policy.Y&&HO(this.Sp);if(wHq(this)&&this.J6&&!Q$(this.J6)&&this.videoTrack.Gf&&this.audioTrack.Gf){this.ph("ssap",{delaysb:1,v:this.videoTrack.K.info.id,vf:this.videoTrack.K.info.rb,a:this.audioTrack.K.info.id, +af:this.audioTrack.K.info.rb});var m=this.J6,e=this.videoTrack.K,T=this.audioTrack.K;!Q$(m)&&T&&e&&(Yxu(m,e.info,T.info,this.policy.XH),dLu(this,m))}var E;((E=this.J6)==null?0:Q$(E))&&this.UK();ff4(this.S)}catch(c){g.hr(c);J=c;if(J.message.includes("changeType")){this.ph("ssap",{exp:J.name,msg:J.message,s:J.stack});break a}this.handleError("fmt.unplayable",{exp:J.name,msg:J.message,s:J.stack},1)}jNR(this);g.sD(this.qD)}else if(!this.E2.T||!xd1(this.videoTrack)&&!xd1(this.audioTrack)||(this.videoTrack.Z|| +this.audioTrack.Z)&&this.policy.IT?m=!1:(this.HX(),this.H1.seekTo(Infinity,{i8:"checkLoaderTracksSync",sA:!0}),m=!0),!m){Onq(this);this.E2.isManifestless&&(Mhq(this.videoTrack),Mhq(this.audioTrack),HO(this.Sp),(m=kl(this.videoTrack))&&m.T&&(m=m.T.S&&!this.policy.Nh,this.ph(m===this.policy.X.MW?"strm":"strmbug",{strm:m,sfmp4:this.policy.X.MW,dfs:this.policy.Nh},!0)));if(this.J6)this.UK();else if(this.policy.U){var Z;m=!1;if(this.policy.fW)for(e=g.y([this.videoTrack,this.audioTrack]),T=e.next();!T.done;T= +e.next()){E=T.value;for(T=kl(E);T&&E.bJ()!==af(E);T=kl(E))E.Vr(T);m=m||!!T}else(J=kl(this.videoTrack))&&this.videoTrack.Vr(J),(Z=kl(this.audioTrack))&&this.audioTrack.Vr(Z);DY(this.videoTrack)&&DY(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(J||Z||m)&&H4(this)}cXq(this);vs(this.Z,this.videoTrack,this.videoTrack.K,!1);vs(this.Z,this.audioTrack,this.audioTrack.K,!1);this.policy.IL||N0b(this,this.videoTrack,this.audioTrack);zKE(this.Z,this.videoTrack,this.audioTrack); +zKE(this.Z,this.audioTrack,this.videoTrack);jNR(this);this.V&&(J=this.V,J.U?(Z=J.Y+J.policy.iQ,J.S||(Z=Math.min(Z,J.startTimeSecs+J.policy.BW)),J=Math.max(0,Z*1E3-Date.now())):J=NaN,isNaN(J)||g.sD(this.ED,J));g.sD(this.qD)}}; +g.F.uH=function(z){this.H1.uH(z)}; +g.F.UK=function(){var z=this;if(this.J6){var J=this.J6.K,m=this.J6.T;RIb(this,this.audioTrack);RIb(this,this.videoTrack);var e=nvu(this);if(e){if(this.policy.Fm){if(!J.Sw()){var T=kl(this.audioTrack);if(T){if(!Ll(this,this.audioTrack,J,T.info))return;aRb(this,this.audioTrack,J,T)}}if(!m.Sw()&&(T=kl(this.videoTrack))){if(!Ll(this,this.videoTrack,m,T.info))return;aRb(this,this.videoTrack,m,T)}}this.aA||(this.aA=(0,g.b5)(),this.logger.debug(function(){return"Appends pause start "+z.aA+" reason "+e}), +this.policy.S&&this.ph("apdps",{r:e}))}else if(this.aA&&(XHz(this,this.aA),this.aA=0),YHf(this),T=!1,this.policy.T&&Ps(this.videoTrack)||!DLE(this,this.videoTrack,m)||(T=!0,Zau(this.timing),Wlq(this.timing)),this.J6&&!this.J6.Z2()&&(this.policy.T&&Ps(this.audioTrack)||!DLE(this,this.audioTrack,J)||(T=!0,Flj(this.timing),lhu(this.timing)),!this.mF()&&this.J6)){if(!this.policy.hw&&DY(this.videoTrack)&&DY(this.audioTrack)&&n2(this.J6)&&!this.J6.Ra()){m=!1; +m=af(this.audioTrack);if(this.policy.T){var E;J=(E=this.Pd)==null?void 0:Ap(E,m.U*1E3);m=!(!J||J.clipId!==m.clipId);this.ph("ssap",{eos:m})}else E=m.K,m=E===this.E2.K[E.info.id];m&&(this.logger.debug("Setting EOS"),CBb(this.J6),V2j(this.schedule))}T&&!this.J6.isAsync()&&H4(this)}}}; +g.F.zX=function(z){var J,m=z===((J=this.J6)==null?void 0:J.K)?this.audioTrack:this.videoTrack,e;if((e=kl(m))==null?0:e.isLocked){if(this.H1.W().AZ()){var T;this.ph("eosl",{ounlock:(T=kl(m))==null?void 0:T.info.YQ()})}var E;AXj(this,z===((E=this.J6)==null?void 0:E.K))}var Z;if(this.policy.s4&&z===((Z=this.J6)==null?void 0:Z.K)&&this.O2){J=this.O2-this.getCurrentTime();var c;this.H1.ph("asl",{l:J,xtag:(c=af(this.audioTrack))==null?void 0:c.K.info.K});this.nh=!1;this.O2=0}z.xl()&&z.eC().length===0&& +(z.l0(),this.J6&&!this.J6.xl()&&(this.H1.W().AZ()&&this.H1.ph("rms",{ld:"seek"}),this.J6.Y=performance.now(),this.H1.R4(),this.H1.W().AZ()&&g.sD(this.OC)));var W;(W=m.B)!=null&&TG(W,0);this.policy.l8?Fzu(this):this.n1()}; +g.F.Rbi=function(z){if(this.J6){var J=af(z===this.J6.K?this.audioTrack:this.videoTrack);if(z=z.ql())for(var m=0;m5&&z.Ry.shift();J=J.Y3;var e;this.policy.ub&&((e=this.H1.getVideoData())==null?0:e.enableServerStitchedDai)&&(e=Psb(this.audioTrack,J),m=Psb(this.videoTrack,J),e!==0&&m!==0&&e!==m&&this.handleError("ssdai.avsync",{sq:J,a:e,v:m},0))}}; +g.F.oZ=function(z,J,m,e){z.info.video&&this.U.oZ(J,m,e)}; +g.F.SS=function(z){this.K.SS(z)}; +g.F.KD=TE(20);g.F.L9=function(z){this.Pd=z;var J;(J=this.audioTrack.X)!=null&&(J.Fq=z);(J=this.videoTrack.X)!=null&&(J.Fq=z);J=this.S;J.X&&(J.v1.ph("ssap",{addcacheclips:1,v:J.X.version,tl:LpR(J.X.pS)}),UJf(J,z,J.X),J.X=void 0)}; +g.F.wW=function(){return this.Pd}; +g.F.CD=function(){return this.videoTrack.V||this.audioTrack.V}; +g.F.seek=function(z,J){if(this.mF())return KB();if(this.CD())return KB("seeking to head");if(this.policy.fh&&!isFinite(z))return omb(this.Sp),g.aY(Infinity);Onq(this);this.f3=(0,g.b5)();this.policy.K||cXq(this,z);this.J6&&this.J6.K&&this.J6.T&&!this.H1.getVideoData().xq&&(this.J6.K.isLocked()||this.J6.T.isLocked())&&this.H1.jc({reattachOnLockedBuffer:1,vsb:""+this.J6.T.isLocked(),asb:""+this.J6.K.isLocked()});var m=this.getCurrentTime(),e=this.Sp.seek(z,J);this.policy.x3||(this.currentTime=e);PX(this.U, +z,m,this.policy.eA&&!J.Nt);H4(this);return g.aY(e)}; +g.F.Mu=function(z){return this.policy.K&&this.S.Mu(z)}; +g.F.YI=function(z){return this.S.YI(z)}; +g.F.IU=function(z,J){this.S.IU(z,J)}; +g.F.getCurrentTime=function(){if(this.policy.x3){var z=this.Kr()||0;return this.H1.getCurrentTime()-z}return this.currentTime}; +g.F.I4=function(){return this.audioTrack.K.info}; +g.F.M$=function(){return this.videoTrack.K.info}; +g.F.Ji=function(){return this.audioTrack.K.info.rb}; +g.F.Ma=function(){return this.videoTrack.K.info.rb}; +g.F.oy=function(){try{this.ID(),u6(this.audioTrack),u6(this.videoTrack),uC(this.audioTrack),uC(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.h.prototype.oy.call(this)}catch(z){g.jk(z)}}; +g.F.handleError=function(z,J,m){m=m===void 0?0:m;var e=fG(m);z==="fmt.unplayable"&&this.E2.isLive&&(this.policy.Fm=!1,Ct(this.E2));J=new Sl(z,J,m);g.sz(this);BQ(J.details);this.H1.handleError(J);z!=="html5.invalidstate"&&J.errorCode!=="fmt.unplayable"&&z!=="fmt.unparseable"&&e&&this.dispose()}; +g.F.kQ=function(){var z=af(this.audioTrack),J=af(this.videoTrack);z={lct:this.getCurrentTime().toFixed(3),lsk:this.Sp.isSeeking(),lmf:this.K.K.isLocked(),lbw:X_(this.schedule).toFixed(3),lhd:NA(this.schedule).toFixed(3),lst:((this.schedule.V.ao()||0)*1E9).toFixed(3),laa:z?z.YQ():"",lva:J?J.YQ():"",lar:this.audioTrack.T?this.audioTrack.T.YQ():"",lvr:this.videoTrack.T?this.videoTrack.T.YQ():"",laq:""+bC(this.audioTrack),lvq:""+bC(this.videoTrack)};this.J6&&!this.J6.Z2()&&this.J6.K&&this.J6.T&&(z.lab= +cz(this.J6.K.eC()),z.lvb=cz(this.J6.T.eC()));this.aA&&(z.lapt=((0,g.b5)()-this.aA).toFixed(0),z.lapr=nvu(this));this.x3&&(z.lapmabht=((0,g.b5)()-this.x3).toFixed(0),z.lapmabh=PO(this,this.audioTrack).toFixed(0));this.Gf&&(z.lapmvbht=((0,g.b5)()-this.Gf).toFixed(0),z.lapmvbh=PO(this,this.videoTrack).toFixed(0));this.Qx&&(z.lapsdai=((0,g.b5)()-this.Qx).toFixed(0));return z}; +g.F.HX=function(){try{this.policy.K&&this.S.IU(!1,"pending"),this.audioTrack.HX(),this.videoTrack.HX()}catch(z){g.jk(z)}this.policy.U=""}; +g.F.Pc=function(){return Dy(this.B)}; +g.F.ph=function(z,J,m){this.H1.ph(z,J,m===void 0?!1:m)}; +g.F.uF=function(){return this.H1.uF()}; +g.F.sA=function(z,J){z/=J;isNaN(this.timestampOffset)&&kFz(this,z-Math.min(z,this.policy.tP));return(z-this.timestampOffset)*J}; +g.F.Kr=function(){return this.timestampOffset}; +g.F.isSeeking=function(){return this.Sp.isSeeking()}; +g.F.Zj=function(){this.U.Zj()}; +g.F.RA=function(z,J,m){J=J===void 0?!1:J;m=m===void 0?{}:m;this.policy.K?this.T.RA(z,J,m):this.K.RA(z,J,m)}; +g.F.Pl=function(z,J){if(!this.X)return!1;var m=this.videoTrack.K.index.T7(z);return this.X.Pl(z,J,m)}; +g.F.Mw=function(z,J){if(this.X&&this.U.Mw(z,this.X))return kFz(this,this.timestampOffset-J),H4(this),this.policy.Z&&(Ct(this.E2),uC(this.audioTrack),uC(this.videoTrack),this.HX()),!0;J=this.videoTrack.K.index.T7(z);this.handleError("ad.skipfailed",{dec:!!this.X,t:z.toFixed(3),sq:J});return!1}; +g.F.getManifest=function(){return this.E2}; +g.F.isOffline=function(){return!!this.H1.getVideoData().cotn}; +g.F.jW=function(z,J){this.H1.jW(z,J)}; +g.F.Dg=function(z){if(this.policy.K)this.S.IU(!0,"utc"),this.n1();else{var J=this.H1.getVideoData().z7;if(J){var m=this.Z;m.fF=z;m.z7=J;rr(this)}}}; +g.F.zq=function(z){this.videoTrack.V=!1;this.audioTrack.V=!1;this.Sp.T=!1;this.H1.zq(z)}; +g.F.Xd=function(z){this.Sp.Xd(z-this.Kr())}; +g.F.HZ=function(){this.H1.HZ()}; +g.F.xY=function(z){z!==this.policy.n$&&((this.policy.n$=z)||this.n1())}; +g.F.Zp=function(z,J){var m=this.audioTrack.Lq,e=this.videoTrack.Lq;m&&e&&(m.remove(z,J),e.remove(z,J))}; +g.F.jc=function(z){this.H1.jc(z)}; +g.F.dU=function(z){this.H1.dU(z)}; +g.F.hf=function(){return this.H1.hf()}; +g.F.Hf=function(){Ct(this.E2);this.HX()};g.F=g.rI.prototype;g.F.LR=function(z,J,m,e,T,E){return this.Fq.LR(z,J,m,e,T,E)}; +g.F.Jt=function(z,J,m,e,T,E){return this.Fq.Jt(z,J,m,e,T,E)}; +g.F.nP=function(z){return this.Fq.nP(z)}; +g.F.qJ=function(z){this.Fq.qJ(z)}; +g.F.G5=function(z,J,m,e){return this.Fq.G5(z,J,m,e)}; +g.F.Zj=function(){this.Fq.Zj()}; +g.F.Pl=function(z,J,m){return this.Fq.Pl(z,J,m)}; +g.F.Jc=function(z,J){this.Fq.Jc(z,J)}; +g.F.wX=function(){this.Fq.wX()}; +g.F.j2=TE(62);g.F.sS=function(z,J,m){this.Fq.sS(z,J,m)}; +g.F.r_=TE(65);g.F.w_=function(z,J,m,e,T,E,Z,c,W){this.Fq.w_(z,J,m,e,T,E,Z,c,W)}; +g.F.nk=function(z){this.Fq.nk(z)}; +g.F.o_=function(z){return this.Fq.o_(z)}; +g.F.NU=function(z){return this.Fq.NU(z)};g.p(z$,g.wF);g.p(Jg,z$);Jg.prototype.Y=function(z,J){if(z&&J){var m=Number(zH(z,"cpi"))*1+1;isNaN(m)||m<=0||mthis.S&&(this.S=m,g.xf(this.K)||(this.K={},this.U.stop(),this.T.stop())),this.K[J]=z,g.sD(this.T))}}; +Jg.prototype.Z=function(){for(var z=g.y(Object.keys(this.K)),J=z.next();!J.done;J=z.next()){var m=J.value;J=this.publish;for(var e=this.S,T=this.K[m].match(P1),E=[],Z=g.y(T[6].split("&")),c=Z.next();!c.done;c=Z.next())c=c.value,c.indexOf("cpi=")===0?E.push("cpi="+e.toString()):c.indexOf("ek=")===0?E.push("ek="+g.JP(m)):E.push(c);T[6]="?"+E.join("&");m="skd://"+T.slice(2).join("");T=m.length*2;e=new Uint8Array(T+4);e[0]=T%256;e[1]=(T-e[0])/256;for(T=0;T0)for(var m=g.y(this.K),e=m.next();!e.done;e=m.next())if(J===e.value.info.cryptoPeriodIndex){J=!0;break a}J=!1}if(!J){J=(0,g.b5)();a:{m=z.cryptoPeriodIndex;if(!isNaN(m)){e=g.y(this.S.values());for(var T=e.next();!T.done;T=e.next())if(Math.abs(T.value.cryptoPeriodIndex-m)<=1){m=!0;break a}}m=!1}m?(m=z.K,m=Math.max(0,Math.random()*((isNaN(m)?120:m)-30))*1E3):m=0;this.publish("log_qoe",{wvagt:"delay."+m,cpi:z.cryptoPeriodIndex,reqlen:this.K.length, +ignore:this.U});m<=0?rXq(this,z):this.U||(this.K.push({time:J+m,info:z}),g.sD(this.T,m))}}; +mQ.prototype.oy=function(){this.K=[];z$.prototype.oy.call(this)};var dZ={},TdR=(dZ.DRM_TRACK_TYPE_AUDIO="AUDIO",dZ.DRM_TRACK_TYPE_SD="SD",dZ.DRM_TRACK_TYPE_HD="HD",dZ.DRM_TRACK_TYPE_UHD1="UHD1",dZ);g.p(m0b,g.h);g.p(Zez,g.wF);g.F=Zez.prototype;g.F.eB=function(z){var J=this;this.mF()||z.size<=0||(z.forEach(function(m,e){var T=AG(J.T)?e:m;e=new Uint8Array(AG(J.T)?m:e);AG(J.T)&&n2z(e);m=g.GC(e,4);n2z(e);e=g.GC(e,4);J.K[m]?J.K[m].status=T:J.K[e]?J.K[e].status=T:J.K[m]={type:"",status:T};J.qh=[];EB(J,J.K[m].type)&&J.qh.push(GDE(J.K[m].type))}),y3u(this,","),eU(this,{onkeystatuschange:1}),this.status="kc",this.publish("keystatuseschange",this))}; +g.F.error=function(z,J,m,e){this.mF()||(this.publish("licenseerror",z,J,m,e),z==="drm.provision"&&(z=(Date.now()-this.Y)/1E3,this.Y=NaN,this.publish("ctmp","provf",{et:z.toFixed(3)})));fG(J)&&this.dispose()}; +g.F.shouldRetry=function(z,J){return!z&&this.requestNumber===J.requestNumber}; +g.F.oy=function(){this.K={};g.wF.prototype.oy.call(this)}; +g.F.kQ=function(){var z={ctype:this.X.contentType||"",length:this.X.initData.length,requestedKeyIds:this.Tf,cryptoPeriodIndex:this.cryptoPeriodIndex};this.S&&(z.keyStatuses=this.K);return z}; +g.F.getInfo=function(){var z=this.U.join();if(T$(this)){var J=new Set,m;for(m in this.K)this.K[m].status!=="usable"&&J.add(this.K[m].type);z+="/UKS."+Array.from(J)}return z+="/"+this.cryptoPeriodIndex}; +g.F.jO=function(){return this.url};g.p(Za,g.h);g.F=Za.prototype;g.F.yK=function(z){if(this.Z){var J=z.messageType||"license-request";this.Z(new Uint8Array(z.message),J)}}; +g.F.eB=function(){this.V&&this.V(this.K.keyStatuses)}; +g.F.onClosed=function(){this.mF()||g.RQ("xboxone")&&this.S&&this.S("closedShouldNotRetry")}; +g.F.WH=function(z){this.Z&&this.Z(z.message,"license-request")}; +g.F.XK=function(z){if(this.S){if(this.T){var J=this.T.error.code;z=this.T.error.systemCode}else J=z.errorCode,z=z.systemCode;this.S("t.prefixedKeyError;c."+J+";sc."+z,J,z)}}; +g.F.qK=function(){this.Y&&this.Y()}; +g.F.update=function(z){var J=this;if(this.K)return(vp.isActive()?vp.ZQ("emeupd",function(){return J.K.update(z)}):this.K.update(z)).then(null,Ym(function(m){C8E(J,"t.update",m)})); +this.T?this.T.update(z):this.element.addKey?this.element.addKey(this.X.keySystem,z,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.X.keySystem,z,this.initData,this.sessionId);return Aj()}; +g.F.oy=function(){this.K&&(this.B?this.K.close().catch(g.hr):this.K.close());this.element=null;g.h.prototype.oy.call(this)};g.p(F4,g.h);g.F=F4.prototype;g.F.setServerCertificate=function(){return this.T.setServerCertificate?this.K.flavor==="widevine"&&this.K.Oe?this.T.setServerCertificate(this.K.Oe):hG(this.K)&&this.K.O2?this.T.setServerCertificate(this.K.O2):null:null}; +g.F.createSession=function(z,J){var m=z.initData;if(this.K.keySystemAccess){J&&J("createsession");var e=this.T.createSession();jh(this.K)?m=Bdq(m,this.K.O2):hG(this.K)&&(m=sNq(m)||new Uint8Array(0));J&&J("genreq");var T=vp.isActive()?vp.ZQ("emegen",function(){return e.generateRequest(z.contentType,m)}):e.generateRequest(z.contentType,m); +var E=new Za(null,null,null,e,null,this.V);T.then(function(){J&&J("genreqsuccess")},Ym(function(c){C8E(E,"t.generateRequest",c)})); +return E}if(Md(this.K))return f5j(this,m);if(os(this.K))return Suj(this,m);if((T=this.element)==null?0:T.generateKeyRequest)this.element.generateKeyRequest(this.K.keySystem,m);else{var Z;(Z=this.element)==null||Z.webkitGenerateKeyRequest(this.K.keySystem,m)}return this.U=new Za(this.element,this.K,m,null,null,this.V)}; +g.F.kU=function(z){var J=D0u(this,z);J&&J.WH(z)}; +g.F.pp=function(z){var J=D0u(this,z);J&&J.XK(z)}; +g.F.HS=function(z){var J=D0u(this,z);J&&J.qK(z)}; +g.F.getMetrics=function(){if(this.T&&this.T.getMetrics)try{var z=this.T.getMetrics()}catch(J){}return z}; +g.F.oy=function(){this.S=this.T=null;var z;(z=this.U)==null||z.dispose();z=g.y(Object.values(this.Y));for(var J=z.next();!J.done;J=z.next())J.value.dispose();this.Y={};g.h.prototype.oy.call(this);delete this.element};g.F=iL.prototype;g.F.get=function(z){z=this.findIndex(z);return z!==-1?this.values[z]:null}; +g.F.remove=function(z){z=this.findIndex(z);z!==-1&&(this.keys.splice(z,1),this.values.splice(z,1))}; +g.F.removeAll=function(){this.keys=[];this.values=[]}; +g.F.set=function(z,J){var m=this.findIndex(z);m!==-1?this.values[m]=J:(this.keys.push(z),this.values.push(J))}; +g.F.findIndex=function(z){return g.vc(this.keys,function(J){return g.we(z,J)})};g.p(g2R,g.wF);g.F=g2R.prototype;g.F.Moz=function(z){this.Xg({onecpt:1});z.initData&&VQq(this,new Uint8Array(z.initData),z.initDataType)}; +g.F.Rsi=function(z){this.Xg({onndky:1});VQq(this,z.initData,z.contentType)}; +g.F.Td=function(z){this.Xg({onneedkeyinfo:1});this.yx.C("html5_eme_loader_sync")&&(this.V.get(z.initData)||this.V.set(z.initData,z));MMu(this,z)}; +g.F.RJ=function(z){this.S.push(z);c7(this)}; +g.F.createSession=function(z){var J=tQu(this)?reb(z):g.GC(z.initData);this.T.get(J);this.wb=!0;z=new Zez(this.videoData,this.yx,z,this.drmSessionId);this.T.set(J,z);z.subscribe("ctmp",this.Ka,this);z.subscribe("keystatuseschange",this.eB,this);z.subscribe("licenseerror",this.Uy,this);z.subscribe("newlicense",this.VT,this);z.subscribe("newsession",this.JR,this);z.subscribe("sessionready",this.rH,this);z.subscribe("fairplay_next_need_key_info",this.iq,this);this.yx.C("html5_enable_vp9_fairplay")&&z.subscribe("qualitychange", +this.Xa,this);this.yx.C("html5_enable_sabr_drm_hd720p")&&z.subscribe("sabrlicenseconstraint",this.Dpf,this);Wcu(z,this.U)}; +g.F.VT=function(z){this.mF()||(this.Xg({onnelcswhb:1}),z&&!this.heartbeatParams&&(this.heartbeatParams=z,this.publish("heartbeatparams",z)))}; +g.F.JR=function(){this.mF()||(this.Xg({newlcssn:1}),this.S.shift(),this.wb=!1,c7(this))}; +g.F.rH=function(){if(Md(this.K)&&(this.Xg({onsnrdy:1}),this.Gf--,this.Gf===0)){var z=this.Ry,J,m;(J=z.element)==null||(m=J.msSetMediaKeys)==null||m.call(J,z.S)}}; +g.F.eB=function(z){if(!this.mF()){!this.Qx&&this.videoData.C("html5_log_drm_metrics_on_key_statuses")&&(HCu(this),this.Qx=!0);this.Xg({onksch:1});var J=this.Xa;if(!T$(z)&&g.s0&&z.T.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var m="large";else{m=[];var e=!0;if(T$(z))for(var T=g.y(Object.keys(z.K)),E=T.next();!E.done;E=T.next())E=E.value,z.K[E].status==="usable"&&m.push(z.K[E].type),z.K[E].status!=="unknown"&&(e=!1);if(!T$(z)||e)m=z.U;m=pLR(m)}J.call(this,m);this.publish("keystatuseschange", +z)}}; +g.F.Ka=function(z,J){this.mF()||this.publish("ctmp",z,J)}; +g.F.iq=function(z,J){this.mF()||this.publish("fairplay_next_need_key_info",z,J)}; +g.F.Uy=function(z,J,m,e){this.mF()||(this.videoData.C("html5_log_drm_metrics_on_error")&&HCu(this),this.publish("licenseerror",z,J,m,e))}; +g.F.Dj=function(){return this.X}; +g.F.Xa=function(z){var J=g.Zr("auto",z,!1,"l");if(this.videoData.ES){if(this.X.NL(J))return}else if(u8E(this.X,z))return;this.X=J;this.publish("qualitychange");this.Xg({updtlq:z})}; +g.F.Dpf=function(z){this.videoData.sabrLicenseConstraint=z}; +g.F.oy=function(){this.K.keySystemAccess&&this.element&&(this.Tf?this.element.setMediaKeys(null).catch(g.hr):this.element.setMediaKeys(null));this.element=null;this.S=[];for(var z=g.y(this.T.values()),J=z.next();!J.done;J=z.next())J=J.value,J.unsubscribe("ctmp",this.Ka,this),J.unsubscribe("keystatuseschange",this.eB,this),J.unsubscribe("licenseerror",this.Uy,this),J.unsubscribe("newlicense",this.VT,this),J.unsubscribe("newsession",this.JR,this),J.unsubscribe("sessionready",this.rH,this),J.unsubscribe("fairplay_next_need_key_info", +this.iq,this),this.yx.C("html5_enable_vp9_fairplay")&&J.unsubscribe("qualitychange",this.Xa,this),J.dispose();this.T.clear();this.Y.removeAll();this.V.removeAll();this.heartbeatParams=null;g.wF.prototype.oy.call(this)}; +g.F.kQ=function(){for(var z={systemInfo:this.K.kQ(),sessions:[]},J=g.y(this.T.values()),m=J.next();!m.done;m=J.next())z.sessions.push(m.value.kQ());return z}; +g.F.getInfo=function(){return this.T.size<=0?"no session":""+this.T.values().next().value.getInfo()+(this.Z?"/KR":"")}; +g.F.Xg=function(z,J){J=J===void 0?!1:J;this.mF()||(BQ(z),(this.yx.AZ()||J)&&this.publish("ctmp","drmlog",z))};g.p(Qfs,g.h);g.F=Qfs.prototype;g.F.A3=function(){return!!this.nD}; +g.F.zH=function(){return this.T}; +g.F.handleError=function(z){var J=this;mCf(this,z);if((z.errorCode!=="html5.invalidstate"&&z.errorCode!=="fmt.unplayable"&&z.errorCode!=="fmt.unparseable"||!JHu(this,z.errorCode,z.details))&&!Zlu(this,z)){if(this.e4.Ry!=="yt"&&TI1(this,z)&&this.videoData.BR&&(0,g.b5)()/1E3>this.videoData.BR&&this.e4.Ry==="hm"){var m=Object.assign({e:z.errorCode},z.details);m.stalesigexp="1";m.expire=this.videoData.BR;m.init=this.videoData.NP/1E3;m.now=(0,g.b5)()/1E3;m.systelapsed=((0,g.b5)()-this.videoData.NP)/1E3; +z=new Sl(z.errorCode,m,2);this.H1.O4(z.errorCode,2,"SIGNATURE_EXPIRED",BQ(z.details))}if(fG(z.severity)){var e;m=(e=this.H1.v1)==null?void 0:e.K.K;if(this.e4.C("html5_use_network_error_code_enums"))if(eiq(z)&&m&&m.isLocked())var T="FORMAT_UNAVAILABLE";else if(this.e4.Y||z.errorCode!=="auth"||z.details.rc!==429)z.errorCode==="ump.spsrejectfailure"&&(T="HTML5_SPS_UMP_STATUS_REJECTED");else{T="TOO_MANY_REQUESTS";var E="6"}else eiq(z)&&m&&m.isLocked()?T="FORMAT_UNAVAILABLE":this.e4.Y||z.errorCode!=="auth"|| +z.details.rc!=="429"?z.errorCode==="ump.spsrejectfailure"&&(T="HTML5_SPS_UMP_STATUS_REJECTED"):(T="TOO_MANY_REQUESTS",E="6");this.H1.O4(z.errorCode,z.severity,T,BQ(z.details),E)}else this.H1.publish("nonfatalerror",z),e=/^pp/.test(this.videoData.clientPlaybackNonce),this.Br(z.errorCode,z.details),e&&z.errorCode==="manifest.net.connect"&&(z="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.b5)(),Sw(z,"manifest",function(Z){J.Y=!0;J.ph("pathprobe",Z)},function(Z){J.Br(Z.errorCode, +Z.details)}))}}; +g.F.ph=function(z,J){this.H1.Nd().ph(z,J)}; +g.F.Br=function(z,J){J=BQ(J);this.H1.Nd().Br(z,J)};cHR.prototype.TY=function(z,J){return(J===void 0?0:J)?{Sh:z?wa(this,z):tc,Cb:z?yHu(this,z):tc,Lb2:z?Olb(this,z):tc,WPy:z?C3u(this,z.videoData):tc,rA:z?aib(this,z.videoData,z):tc,AWW:z?dCq(this,z):tc,gZb:w4u(this)}:{Sh:z?wa(this,z):tc}}; +cHR.prototype.C=function(z){return this.yx.C(z)};g.p(q2,g.h);q2.prototype.onError=function(z){if(z!=="player.fatalexception"||this.provider.C("html5_exception_to_health"))z==="sabr.fallback"&&(this.encounteredSabrFallback=!0),z.match(xc9)?this.networkErrorCount++:this.nonNetworkErrorCount++}; +q2.prototype.send=function(){if(!(this.S||this.K<0)){SC4(this);var z=g.sC(this.provider)-this.K,J="PLAYER_PLAYBACK_STATE_UNKNOWN",m=this.playerState.Io;this.playerState.isError()?J=m&&m.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.R(this.playerState,2)?J="PLAYER_PLAYBACK_STATE_ENDED":g.R(this.playerState,64)?J="PLAYER_PLAYBACK_STATE_UNSTARTED":g.R(this.playerState,16)||g.R(this.playerState,32)?J="PLAYER_PLAYBACK_STATE_SEEKING":g.R(this.playerState,1)&&g.R(this.playerState, +4)?J="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.R(this.playerState,1)?J="PLAYER_PLAYBACK_STATE_BUFFERING":g.R(this.playerState,4)?J="PLAYER_PLAYBACK_STATE_PAUSED":g.R(this.playerState,8)&&(J="PLAYER_PLAYBACK_STATE_PLAYING");m=B81[Xr(this.provider.videoData)];a:switch(this.provider.yx.playerCanaryState){case "canary":var e="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":e="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:e="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var T=fij(this.provider), +E=this.T<0?z:this.T-this.K;z=this.provider.yx.rL+36E5<(0,g.b5)();J={started:this.T>=0,stateAtSend:J,joinLatencySecs:E,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:e,playerCanaryStage:T,isAd:this.provider.videoData.isAd(),liveMode:m,hasDrm:!!g.NL(this.provider.videoData),isGapless:this.provider.videoData.X,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, +encounteredSabrFallback:this.encounteredSabrFallback,isSabr:Fr(this.provider.videoData)};z||g.qq("html5PlayerHealthEvent",J);this.S=!0;this.dispose()}}; +q2.prototype.oy=function(){this.S||this.send();window.removeEventListener("error",this.rp);window.removeEventListener("unhandledrejection",this.rp);g.h.prototype.oy.call(this)}; +var xc9=/\bnet\b/;g.p(blq,g.h);blq.prototype.oy=function(){gMj(this);g.h.prototype.oy.call(this)};var xCj=/[?&]cpn=/;g.p(da,g.h);da.prototype.flush=function(){var z={};this.T&&(z.pe=this.T);this.K.length>0&&(z.pt=this.K.join("."));this.K=[];return z}; +da.prototype.stop=function(){var z=this,J,m,e;return g.D(function(T){if(T.K==1)return g.Yu(T,2),g.S(T,(J=z.U)==null?void 0:J.stop(),4);if(T.K!=2)return(m=T.T)&&z.logTrace(m),g.aq(T,0);e=g.Kq(T);z.T=V_u(e.message);g.nq(T)})}; +da.prototype.logTrace=function(z){this.encoder.reset();this.encoder.add(1);this.encoder.add(z.resources.length);for(var J=g.y(z.resources),m=J.next();!m.done;m=J.next()){m=m.value.replace("https://www.youtube.com/s/","");this.encoder.add(m.length);for(var e=0;e=0?z:g.sC(this.provider),this.Tf?Mme.has(this.B7)&&(this.K.size||(this.B7==="PL"?z>=this.S+30:z<=this.Gf+30))&&(g.po(this,z,"vps",[this.B7]),this.S=z):["PL","B","S"].indexOf(this.B7)>-1&&(this.K.size||z>=this.S+30)&&(g.po(this,z,"vps",[this.B7]),this.S=z),this.K.size)){this.sequenceNumber===7E3&&g.hr(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){G$(this,z);var J=this.provider.H1.ey();J=g.y(J);for(var m=J.next();!m.done;m= +J.next())m=m.value,this.ph(m.key,m.value);J=z;m=this.provider.H1.e3();var e=m.droppedVideoFrames||0,T=m.totalVideoFrames||0,E=e-this.Ig,Z=T&&!this.Gr;e>m.totalVideoFrames||E>5E3?Jgz(this,"html5.badframedropcount","df."+e+";tf."+m.totalVideoFrames):(E>0||Z)&&g.po(this,J,"df",[E]);this.Ig=e;this.Gr=T;this.B>0&&(g.po(this,z,"glf",[this.B]),this.B=0);rp.isActive()&&(z=rp.VF(),Object.keys(z).length>0&&this.ph("profile",z));this.gE&&X4(this,"lwnmow");this.provider.yx.AZ()&&this.provider.C("html5_record_now")&& +this.ph("now",{wt:(0,g.b5)()});z={};this.provider.videoData.T&&(z.fmt=this.provider.videoData.T.itag,(J=this.provider.videoData.U)&&J.itag!==z.fmt&&(z.afmt=J.itag));z.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(z.adcpn=this.adCpn);this.B9&&(z.addocid=this.B9);this.contentCpn&&(z.ccpn=this.contentCpn);this.fh&&(z.cdocid=this.fh);this.provider.videoData.cotn&&(z.cotn=this.provider.videoData.cotn);z.el=ML(this.provider.videoData);z.content_v=oN(this.provider.videoData);z.ns=this.provider.yx.Ry; +z.fexp=aH4(this.provider.yx.experiments).toString();z.cl=(740099560).toString();(J=this.provider.videoData.adFormat||this.adFormat)&&(z.adformat=J);(J=Xr(this.provider.videoData))&&(z.live=J);this.provider.videoData.xE()&&(z.drm=1,this.provider.videoData.Z&&(z.drm_system=X0N[this.provider.videoData.Z.flavor]||0),this.provider.videoData.hJ&&(z.drm_product=this.provider.videoData.hJ));wj()&&this.provider.videoData.Y&&(z.ctt=this.provider.videoData.Y,z.cttype=this.provider.videoData.nJ,this.provider.videoData.mdxEnvironment&& +(z.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(z.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.ZM&&(z.dai_fallback="1")):this.provider.videoData.P7?z.dai="cs":this.provider.videoData.H$&&(z.dai="disabled");z.seq=this.sequenceNumber++;if(this.provider.videoData.m7){if(J=this.provider.videoData.m7,z&&J)for(J.ns==="3pp"&&(z.ns="3pp"),this.Zo.has(J.ns)&&X4(this,"hbps"),J.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext= +J.shbpslc),this.provider.yx.experiments.j4("html5_use_server_qoe_el_value")&&this.yH.delete("el"),m=g.y(Object.keys(J)),e=m.next();!e.done;e=m.next())e=e.value,this.yH.has(e)||(z[e]=J[e])}else z.event="streamingstats",z.docid=this.provider.videoData.videoId,z.ei=this.provider.videoData.eventId;this.isEmbargoed&&(z.embargoed="1");Object.assign(z,this.provider.yx.K);if(J=z.seq)J={cpn:this.provider.videoData.clientPlaybackNonce,sequenceNumber:+J,serializedWatchEndpointLoggingContext:this.provider.videoData.Jm}, +this.serializedHouseBrandPlayerServiceLoggingContext&&(J.serializedHouseBrandPlayerServiceLoggingContext=n0(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(J.playerResponseCpn=this.provider.videoData.playerResponseCpn),OB.length&&(J.decoderInfo=OB),this.provider.H1.wW()&&(J.transitionStitchType=4,this.wb&&(J.timestampOffsetMsecs=this.wb)),this.remoteControlMode&&(J.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&& +(J.remoteConnectedDevices=this.remoteConnectedDevices),J=g.sO(J,w6q),J=g.GC(J,4),this.K.set("qclc",[J]);z=g.v1("//"+this.provider.yx.Oj+"/api/stats/qoe",z);m=J="";e=g.y(this.K.entries());for(T=e.next();!T.done;T=e.next())E=g.y(T.value),T=E.next().value,E=E.next().value,Z=void 0,(Z=E)!=null&&Z.join&&(T="&"+T+"="+E.join(","),T.length>100?m+=T:J+=T);vMb(this,z+J,m.replace(/ /g,"%20"))}this.K.clear()}}; +g.F.dU=function(z){this.gE=z}; +g.F.IR=function(){if(this.provider.videoData.Z){var z=this.provider.videoData.Z;X4(this,"eme-"+(z.keySystemAccess?"final":Md(z)?"ms":jh(z)?"ytfp":os(z)?"safarifp":"nonfinal"))}}; +g.F.Q2=TE(59);g.F.D_=function(z){this.isEmbargoed=z}; +g.F.E9=TE(36);g.F.IW=TE(42);g.F.onPlaybackRateChange=function(z){var J=g.sC(this.provider);z&&z!==this.Wr&&(g.po(this,J,"rate",[z]),this.Wr=z);this.Tf||this.reportStats(J)}; +g.F.mA=TE(30);g.F.getPlayerState=function(z){if(g.R(z,128))return"ER";if(g.R(z,2048))return"B";if(g.R(z,512))return"SU";if(g.R(z,16)||g.R(z,32))return"S";if(z.isOrWillBePlaying()&&g.R(z,64))return"B";var J=A_g[q4(z)];g.SP(this.provider.yx)&&J==="B"&&this.provider.H1.getVisibilityState()===3&&(J="SU");J==="B"&&g.R(z,4)&&(J="PB");return J}; +g.F.oy=function(){g.h.prototype.oy.call(this);g.nH(this.Y);g.nH(this.OC)}; +g.F.v_=function(z){this.isOffline=z;g.po(this,g.sC(this.provider),"is_offline",[this.isOffline?"1":"0"])}; +g.F.ph=function(z,J,m){var e=this.yv.indexOf(z)!==-1;e||this.yv.push(z);if(!m||!e){var T=typeof J!=="string"?BQ(J):J;T=eZq(T);if(!m&&!/^t[.]/.test(T)){var E=g.sC(this.provider)*1E3;T="t."+E.toFixed()+";"+T}N2(this,"ctmp",z+":"+T);this.logger.debug(function(){return"ctmp "+z+" "+T}); +s54(this);return E}}; +g.F.Qi=function(z,J,m){this.Z={zd4:Number(this.ph("glrem",{nst:z.toFixed(),rem:J.toFixed(),ca:+m})),PH:z,Ldi:J,isAd:m}}; +g.F.mu=function(z,J,m){g.po(this,g.sC(this.provider),"ad_playback",[z,J,m])}; +g.F.YH=function(z,J){var m=g.sC(this.provider)*1E3;N2(this,"daism","t."+m.toFixed(0)+";smw."+(z*1E3).toFixed(0)+";smo."+(J*1E3).toFixed(0))}; +g.F.resume=function(){var z=this;this.provider.yx.AZ()&&this.ph("ssap",{qoesus:"0",vid:this.provider.videoData.videoId});isNaN(this.Y)?rHu(this):this.Y=g.Go(function(){z.reportStats()},1E4)}; +var I9={},A_g=(I9[5]="N",I9[-1]="N",I9[3]="B",I9[0]="EN",I9[2]="PA",I9[1]="PL",I9[-1E3]="ER",I9[1E3]="N",I9),Mme=new Set(["PL","B","S"]),OB=[];Zo1.prototype.iD=function(){return this.K}; +Zo1.prototype.update=function(){if(this.V){var z=this.provider.H1.Hs(this.provider.videoData.clientPlaybackNonce)||0,J=g.sC(this.provider);z>=this.provider.H1.getDuration()-.1&&(this.previouslyEnded=!0);if(z!==this.K||cg1(this,z,J)){var m;if(!(m=zJ-this.l7+2||cg1(this,z,J))){m=this.provider.H1.getVolume();var e=m!==this.B,T=this.provider.H1.isMuted()?1:0;T!==this.X?(this.X=T,m=!0):(!e||this.U>=0||(this.B=m,this.U=J),m=J-this.U,this.U>=0&&m>2?(this.U=-1,m=!0):m=!1)}m&&(aw(this),this.S= +z);this.l7=J;this.K=z}}};WQs.prototype.send=function(z){var J=this;if(!this.ND){var m=w7u(this),e=g.v1(this.uri,m);this.yx.C("vss_through_gel_double")&&qBu(e);this.Tf&&!this.yx.C("html5_simplify_pings")?ygz(this,e):lab(this,z).then(function(T){J.Tf&&(T=T||{},T.method="POST",T.postParams={atr:J.attestationResponse});j5f(e,T,{token:J.Ry,Dm:J.Hd,mdxEnvironment:J.mdxEnvironment},J.yx,z,J.wb,J.isFinal&&J.rL||J.x3||J.S&&J.s4)}); +this.ND=!0}}; +WQs.prototype.T=function(z){z===void 0&&(z=NaN);return Number(z.toFixed(3)).toString()}; +var Oy={},Ooq=(Oy.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,Oy.LIVING_ROOM_APP_MODE_MAIN=1,Oy.LIVING_ROOM_APP_MODE_KIDS=2,Oy.LIVING_ROOM_APP_MODE_MUSIC=3,Oy.LIVING_ROOM_APP_MODE_UNPLUGGED=4,Oy.LIVING_ROOM_APP_MODE_GAMING=5,Oy),pk={},Iau=(pk.EMBEDDED_PLAYER_MODE_UNKNOWN=0,pk.EMBEDDED_PLAYER_MODE_DEFAULT=1,pk.EMBEDDED_PLAYER_MODE_PFP=2,pk.EMBEDDED_PLAYER_MODE_PFL=3,pk);g.p(B7,g.h);g.F=B7.prototype;g.F.kZ=function(){this.K.update();Baf(this)&&(X7b(this),nFb(this),this.A4())}; +g.F.oy=function(){g.h.prototype.oy.call(this);Da(this);FQE(this.K)}; +g.F.kQ=function(){return w7u(SU(this,"playback"))}; +g.F.A4=function(){this.provider.videoData.V.eventLabel=ML(this.provider.videoData);this.provider.videoData.V.playerStyle=this.provider.yx.playerStyle;this.provider.videoData.KA&&(this.provider.videoData.V.feature="pyv");this.provider.videoData.V.vid=this.provider.videoData.videoId;var z=this.provider.videoData.V;var J=this.provider.videoData;J=J.isAd()||!!J.KA;z.isAd=J}; +g.F.gG=function(z){var J=SU(this,"engage");J.fh=z;return d21(J,gFs(this.provider))};$2u.prototype.isEmpty=function(){return this.endTime===this.startTime};$F.prototype.C=function(z){return this.yx.C(z)}; +$F.prototype.getCurrentTime=function(z){if(this.C("html5_ssap_current_time_for_logging_refactor")){var J=this.H1.wW();if(J&&(z=z||J.tb()))return TB(J,z)}else if(g.Lr(this.videoData)){var m=this.H1.wW();if(m)return z=this.H1.getCurrentTime(),m=(((J=Ap(m,z*1E3))==null?void 0:J.YF)||0)/1E3,z-m}return this.H1.getCurrentTime()}; +$F.prototype.Ap=function(z){if(this.C("html5_ssap_current_time_for_logging_refactor")){var J=this.H1.wW();if(J&&(z=z||J.tb()))return TB(J,z)}else if(g.Lr(this.videoData)){var m=this.H1.wW();if(m)return z=this.H1.Ap(),m=(((J=Ap(m,z*1E3))==null?void 0:J.YF)||0)/1E3,z-m}return this.H1.Ap()}; +var x2z={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.p(g.xF,g.h);g.F=g.xF.prototype;g.F.kZ=function(){if(this.provider.videoData.enableServerStitchedDai&&this.U9){var z;(z=this.S.get(this.U9))==null||z.kZ()}else this.K&&this.K.kZ()}; +g.F.D_=function(z){this.qoe&&this.qoe.D_(z)}; +g.F.E9=TE(35);g.F.IW=TE(41);g.F.YH=function(z,J){this.qoe&&this.qoe.YH(z,J)}; +g.F.vy=function(){if(this.provider.videoData.enableServerStitchedDai&&this.U9){var z;(z=this.S.get(this.U9))!=null&&aw(z.K)}else this.K&&aw(this.K.K)}; +g.F.Br=function(z,J){this.qoe&&Jgz(this.qoe,z,J);if(this.T)this.T.onError(z)}; +g.F.onPlaybackRateChange=function(z){if(this.qoe)this.qoe.onPlaybackRateChange(z);this.K&&aw(this.K.K)}; +g.F.Q2=TE(58);g.F.ph=function(z,J,m){this.qoe&&this.qoe.ph(z,J,m)}; +g.F.Qi=function(z,J,m){this.qoe&&this.qoe.Qi(z,J,m)}; +g.F.Bw=function(z){var J;(J=this.qoe)==null||J.Bw(z)}; +g.F.F1=function(z){var J;(J=this.qoe)==null||J.F1(z)}; +g.F.dU=function(z){this.qoe&&this.qoe.dU(z)}; +g.F.mu=function(z,J,m){this.qoe&&this.qoe.mu(z,J,m)}; +g.F.mA=TE(29);g.F.ri=function(){if(this.qoe)return this.qoe.ri()}; +g.F.kQ=function(){if(this.provider.videoData.enableServerStitchedDai&&this.U9){var z,J;return(J=(z=this.S.get(this.U9))==null?void 0:z.kQ())!=null?J:{}}return this.K?this.K.kQ():{}}; +g.F.Z8=function(){var z;return(z=this.qoe)==null?void 0:z.Z8()}; +g.F.MH=function(z,J){var m;(m=this.qoe)==null||m.MH(z,J)}; +g.F.gG=function(z){return this.K?this.K.gG(z):function(){}}; +g.F.A4=function(){this.K&&this.K.A4()}; +g.F.getVideoData=function(){return this.provider.videoData}; +g.F.resume=function(){this.qoe&&this.qoe.resume()};g.p(Ag,g.h); +Ag.prototype.hv=function(z,J,m){if(this.K.has(z)){var e=this.K.get(z);if(J.videoId&&!MUf(e))this.T.ph("ssap",{rlc:z}),U2f(this,z);else return}if(!this.K.has(z)){e=new $F(J,this.yx,this.H1);var T=Math.round(g.sC(this.T.provider)*1E3);e=new g.xF(e,T);MUf(e)||this.T.ph("nqv",{vv:J.videoId});T=this.T.getVideoData();this.K.set(z,e);if(e.qoe){var E=e.qoe,Z=T.videoId||"";E.contentCpn=T.clientPlaybackNonce;E.fh=Z}Agq(e);m===2&&(this.yx.C("html5_log_ad_playback_docid")?(m=this.T,m.qoe&&(m=m.qoe,e=J.Rs||"", +T=J.breakType||0,J=J.videoId||"",E=this.yx.Ry||"yt",g.po(m,g.sC(m.provider),"ad_playback",[z,e,T,J,E]))):this.T.mu(z,J.Rs||"",J.breakType||0))}}; +Ag.prototype.PL=function(z,J,m,e,T,E,Z,c){if(z!==J){var W=this.Nd(z),l=this.Nd(J),w,q=z===((w=W.getVideoData())==null?void 0:w.clientPlaybackNonce),d;w=J===((d=l.getVideoData())==null?void 0:d.clientPlaybackNonce);var I;d=q?((I=W.getVideoData())==null?void 0:I.videoId)||"":"nvd";var O;I=w?((O=l.getVideoData())==null?void 0:O.videoId)||"":"nvd";q&&(W=W.qoe)!=null&&(YF(W,4,E?4:T?2:0,J,I,m),W.reportStats());w&&(M2(l),(J=l.qoe)!=null&&(YF(J,4,E?5:T?3:1,z,d,e),J.reportStats()),hZu(l,new g.Ox(Z,l.B7)), +oFq(l));c&&U2f(this,z)}}; +Ag.prototype.Nd=function(z){z=z||this.U9;return this.K.get(z)||this.T};g.p(g.ow,g.h);g.F=g.ow.prototype; +g.F.U4=function(z,J){this.sync();J&&this.K.array.length>=2E3&&this.YX("captions",1E4);J=this.K;if(z.length>1&&z.length>J.array.length)J.array=J.array.concat(z),J.array.sort(J.K);else for(var m=g.y(z),e=m.next();!e.done;e=m.next())e=e.value,!J.array.length||J.K(e,J.array[J.array.length-1])>0?J.array.push(e):g.qi(J.array,e,J.K);z=g.y(z);for(J=z.next();!J.done;J=z.next())J=J.value,J.namespace==="ad"&&this.U("ssap",{acrsid:J.getId(),acrsst:J.start,acrset:J.end,acrscpt:J.playerType});this.S=NaN;this.sync()}; +g.F.Yy=function(z){z.length>1E4&&g.hr(new g.vR("Over 10k cueRanges removal occurs with a sample: ",z[0]));if(!this.mF()){for(var J=g.y(z),m=J.next();!m.done;m=J.next())(m=m.value)&&m.namespace==="ad"&&this.U("ssap",{rcrid:m.getId(),rcst:m.start,rcet:m.end,rcpt:m.playerType});var e=new Set(z);this.T=this.T.filter(function(T){return!e.has(T)}); +rg4(this.K,e);this.sync()}}; +g.F.YX=function(z,J){var m=(isNaN(this.S)?g.R(this.H1.getPlayerState(),2)?0x8000000000000:this.H1.getCurrentTime()*1E3:this.S)-J;J=this.Js().filter(function(e){return e.namespace===z&&e.endthis.K,E=g.R(m,8)&&g.R(m,16),Z=this.H1.BX().isBackground()||m.isSuspended();kF(this,this.yH,E&&!Z,T,"qoe.slowseek",function(){},"timeout"); +var c=isFinite(this.K);c=E&&c&&bOq(J,this.K);var W=!e||Math.abs(e-this.K)>10,l=this.yx.C("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),w=e===0&&this.T&&[11,10].includes(this.T);kF(this,this.Hd,c&&W&&!Z&&(!l||!w),T,"qoe.slowseek",function(){J.seekTo(z.K)},"set_cmt"); +W=c&&l1(J.G2(),this.K);l=this.H1.v1;c=!l||l.AQ();var q=function(){J.seekTo(z.K+.001)}; +kF(this,this.Lh,W&&c&&!Z,T,"qoe.slowseek",q,"jiggle_cmt");c=function(){return z.H1.Vb()}; +kF(this,this.ND,W&&!Z,T,"qoe.slowseek",c,"new_elem");W=wT(m);w=m.isBuffering();var d=J.G2(),I=Wz(d,e),O=I>=0&&d.end(I)>e+5,G=W&&w&&O,n=this.H1.getVideoData();kF(this,this.qD,e<.002&&this.K<.002&&E&&g.SP(this.yx)&&g.AX(n)&&!Z,T,"qoe.slowseek",c,"slow_seek_shorts");kF(this,this.Ry,n.pA()&&E&&!Z&&!n.wb,T,"qoe.slowseek",c,"slow_seek_gapless_shorts");kF(this,this.Tf,G&&!Z,W&&!w,"qoe.longrebuffer",q,"jiggle_cmt");kF(this,this.wb,G&&!Z,W&&!w,"qoe.longrebuffer",c,"new_elem_nnr");if(l){var C=l.getCurrentTime(); +E=J.Yk();E=N9q(E,C);E=!l.isSeeking()&&e===E;kF(this,this.ub,W&&w&&E&&!Z,W&&!w&&!E,"qoe.longrebuffer",function(){J.seekTo(C)},"seek_to_loader")}E={}; +q=Wz(d,Math.max(e-3.5,0));G=q>=0&&e>d.end(q)-1.1;var K=q>=0&&q+1=0&&G&&K<11;E.close2edge=G;E.gapsize=K;E.buflen=d.length;this.T&&(E.seekSour=this.T);if(I=this.H1.wW()){q=I.tb();G=q!==Ap(I,e*1E3).clipId;K=g.dv(this.yx.experiments,"html5_ssap_skip_seeking_offset_ms");var f=(Mv(I,q)+K)/1E3;kF(this,this.Qx,G&&W&&w&&!Z,W&&!w,"qoe.longrebuffer",function(){J.seekTo(f)},"ssap_clip_not_match")}kF(this,this.x3,W&&w&&!Z,W&&!w,"qoe.longrebuffer", +function(){},"timeout",E); +E=m.isSuspended();E=this.H1.C$()&&!E;kF(this,this.V,E,!E,"qoe.start15s",function(){z.H1.Zb("ad")},"ads_preroll_timeout"); +I=e-this.U<.5;var x;E=!((x=this.H1.wW())==null||!x.xF());G=(q=n.isAd()||E&&this.yx.experiments.j4("html5_ssap_skip_slow_ad"))&&W&&!w&&I;x=function(){var V=z.H1,zE=g.Lr(V.videoData)&&V.Pd,k=V.u8.getVideoData();(k&&V.videoData.isAd()&&k.P7===V.getVideoData().P7||!V.videoData.Uu)&&!zE?V.O4("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+V.videoData.videoId):Ln(V.videoData,"html5_ssap_skip_slow_ad")&&zE&&V.Pd.xF()&&(V.Br(new Sl("ssap.transitionfailure",{cpn:Ap(V.Pd,V.Ap()).clipId,pcpn:V.Pd.tb(), +cmt:V.Ap()})),V=V.Pd,zE=V.playback.Ap(),(zE=LLu(V,zE))&&tYu(V,zE.Ri()/1E3))}; +kF(this,this.tZ,G,!G,"ad.rebuftimeout",x,"skip_slow_ad");I=q&&w&&l1(J.G2(),e+5)&&I;kF(this,this.IT,I&&!Z,!I,"ad.rebuftimeout",x,"skip_slow_ad_buf");x=m.isOrWillBePlaying()&&g.R(m,64)&&!Z;kF(this,this.GS,x,T,"qoe.start15s",function(){},"timeout"); +x=!!l&&!l.J6&&m.isOrWillBePlaying();kF(this,this.Gf,x,T,"qoe.start15s",c,"newElemMse");x=d7(d,0);I=g.R(m,16)||g.R(m,32);I=!Z&&m.isOrWillBePlaying()&&w&&!I&&(g.R(m,64)||e===0)&&x>5;kF(this,this.O2,g.AX(n)&&I,W&&!w,"qoe.longrebuffer",function(){z.H1.jc()},"reset_media_source"); +kF(this,this.nh,g.AX(n)&&I,W&&!w,"qoe.longrebuffer",c,"reset_media_element");this.U===0&&(this.Y=e);I=w&&this.K===0&&e>1&&e===this.Y;kF(this,this.h6,g.AX(n)&&I,W&&!w,"qoe.slowseek",function(){J.seekTo(0)},"reseek_after_time_jump"); +Z=m.isOrWillBePlaying()&&!Z;O=this.H1.YV()-e<6&&!O&&this.H1.X9();kF(this,this.X,n.pA()&&Z&&w&&O,W&&!w,"qoe.longrebuffer",function(){z.H1.Vb(!1,!0)},"handoff_end_long_buffer_reload"); +l=(l==null?void 0:QNq(l))||NaN;l=d.length>1||!isNaN(l)&&l-.1<=e;kF(this,this.B,TF(n)&&Z&&w&&l,W&&!w,"qoe.longrebuffer",c,"gapless_slice_append_stuck");Z=TF(n)&&this.T===104&&Z&&(w||g.R(m,8)&&g.R(m,16));kF(this,this.fh,Z,T,"qoe.start15s",c,"gapless_slow_start");m=!!(E&&x>5&&m.isPlaying()&&e<.1);kF(this,this.gE,m,e>.5&&W,"qoe.longrebuffer",c,"ssap_stuck_in_ad_beginning");this.U=e;this.Z.start()}}; +Rw.prototype.Br=function(z,J,m){J=this.kQ(J);J.wn=m;J.wdup=this.S[z]?"1":"0";this.H1.Br(new Sl(z,J));this.S[z]=!0}; +Rw.prototype.kQ=function(z){z=Object.assign(this.H1.kQ(!0),z.kQ());this.K&&(z.stt=this.K.toFixed(3));this.H1.getVideoData().isLivePlayback&&(z.ct=this.H1.getCurrentTime().toFixed(3),z.to=this.H1.Kr().toFixed(3));delete z.uga;delete z.euri;delete z.referrer;delete z.fexp;delete z.vm;return z}; +H7.prototype.reset=function(){this.K=this.T=this.S=this.startTimestamp=0;this.U=!1}; +H7.prototype.test=function(z){if(!this.Z||this.T)return!1;if(!z)return this.reset(),!1;z=(0,g.b5)();if(!this.startTimestamp)this.startTimestamp=z,this.S=0;else if(this.S>=this.Z)return this.T=z,!0;this.S+=1;return!1}; +H7.prototype.kQ=function(){var z={},J=(0,g.b5)();this.startTimestamp&&(z.wsd=(J-this.startTimestamp).toFixed());this.T&&(z.wtd=(J-this.T).toFixed());this.K&&(z.wssd=(J-this.K).toFixed());return z};g.p(NPu,g.h);g.F=NPu.prototype;g.F.setMediaElement=function(z){(this.mediaElement=z)?(this.mediaElement&&(this.Z||this.S||!this.mediaElement.TQ()||this.seekTo(.01,{i8:"seektimeline_setupMediaElement"})),Lo(this)):v7(this)}; +g.F.getCurrentTime=function(){if(Qn(this.H1)){if(!isNaN(this.T))return this.T}else if(!isNaN(this.T)&&isFinite(this.T))return this.T;return this.mediaElement&&$Ds(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.S||0}; +g.F.au=function(){return this.nh}; +g.F.Ap=function(){return this.getCurrentTime()-this.Kr()}; +g.F.OS=function(){return this.K?this.K.OS():Infinity}; +g.F.isAtLiveHead=function(z){if(!this.K)return!1;z===void 0&&(z=this.getCurrentTime());return P7(this.K,z)}; +g.F.HR=function(){return!!this.K&&this.K.HR()}; +g.F.seekTo=function(z,J){var m=J===void 0?{}:J;J=m.DD===void 0?!1:m.DD;var e=m.PT===void 0?0:m.PT;var T=m.ME===void 0?!1:m.ME;var E=m.Id===void 0?0:m.Id;var Z=m.i8===void 0?"":m.i8;var c=m.seekSource===void 0?void 0:m.seekSource;var W=m.sA===void 0?!1:m.sA;var l=m.Nt===void 0?!1:m.Nt;m=m.dX===void 0?!1:m.dX;W&&(z+=this.Kr());Fr(this.videoData)&&c===29&&(this.nh=void 0);W=z=this.Aw())||!g.BH(this.videoData),w||(G={st:G,mst:this.Aw()},this.K&&this.C("html5_high_res_seek_logging")&&(G.ht=this.K.OS(),G.adft=wkq(this.K)),this.H1.ph("seeknotallowed",G)),G=w));if(!G)return this.U&&(this.U=null,DDq(this)),g.aY(this.getCurrentTime());G=.005;l&&this.C("html5_sabr_seek_no_shift_tolerance")&&(G=0);if(Math.abs(z-this.T)<=G&&this.Tf)return this.Z;Z&&(G=z,(this.yx.AZ()||this.C("html5_log_seek_reasons"))&&this.H1.ph("seekreason",{reason:Z, +tgt:G}));c&&(this.B.T=c);this.Tf&&v7(this);this.Z||(this.Z=new r7);z&&!isFinite(z)&&Ymq(this,!1);(Z=m||W)||(Z=z,Z=!(this.videoData.isLivePlayback&&this.videoData.S&&!this.videoData.S.K&&!(this.mediaElement&&this.mediaElement.WW()>0&&JK(this.mediaElement)>0)||w0(this.videoData)&&this.JX()===this.Aw(!1)?0:isFinite(Z)||!w0(this.videoData)));Z||(z=ra(this,z,T));z&&!isFinite(z)&&Ymq(this,!1);this.S=z;this.Lh=E;this.T=z;this.Y=0;this.K&&(T=this.K,E=z,qmR(T,E,!1),dDE(T,E));T=this.H1;E=z;Z={DD:J,seekSource:c}; +T.Lr.S=E;m=T.j7;m.mediaTime=E;m.K=!0;Z.DD&&T.kB(Z);Z=E>T.videoData.endSeconds&&E>T.videoData.limitedPlaybackDurationInSeconds;T.Ic&&Z&&isFinite(E)&&w_b(T);EJ.start&&w_b(this.H1);return this.Z}; +g.F.Aw=function(z){if(!this.videoData.isLivePlayback)return hGz(this.H1);var J;return QX(this.videoData)&&((J=this.mediaElement)==null?0:J.isPaused())&&this.videoData.K?(z=this.getCurrentTime(),lAq(this.Hk(z)*1E3)+z):this.C("html5_sabr_parse_live_metadata_playback_boundaries")&&Fr(this.videoData)&&this.videoData.K?z?this.videoData.K.fh||0:this.videoData.K.qY||0:w0(this.videoData)&&this.videoData.Qx&&this.videoData.K?this.videoData.K.Aw()+this.timestampOffset:this.videoData.S&&this.videoData.S.K?!z&& +this.K?this.K.OS():hGz(this.H1)+this.timestampOffset:this.mediaElement?Qp()?lAq(this.mediaElement.uj().getTime()):JK(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; +g.F.JX=function(){if(g.Lr(this.videoData)){var z=this.H1;g.Lr(z.videoData);var J,m;return(m=(J=z.Pd)==null?void 0:J.JX())!=null?m:z.videoData.JX()}if(this.C("html5_sabr_parse_live_metadata_playback_boundaries")&&Fr(this.videoData)){var e;return((e=this.videoData.K)==null?void 0:e.UB)||0}J=this.videoData?this.videoData.JX()+this.timestampOffset:this.timestampOffset;return QX(this.videoData)&&this.videoData.K&&(m=Number((z=this.videoData.progressBarStartPosition)==null?void 0:z.utcTimeMillis)/1E3,z= +this.getCurrentTime(),z=this.Hk(z)-z,!isNaN(m)&&!isNaN(z))?Math.max(J,m-z):J}; +g.F.R4=function(){this.Z||this.seekTo(this.S,{i8:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; +g.F.CD=function(){return this.Tf&&!isFinite(this.T)}; +g.F.oy=function(){CJu(this,null);this.B.dispose();g.h.prototype.oy.call(this)}; +g.F.kQ=function(){var z={};this.v1&&Object.assign(z,this.v1.kQ());this.mediaElement&&Object.assign(z,this.mediaElement.kQ());return z}; +g.F.mq=function(z){this.timestampOffset=z}; +g.F.getStreamTimeOffset=function(){return w0(this.videoData)?0:this.videoData.K?this.videoData.K.getStreamTimeOffset():0}; +g.F.Kr=function(){return this.timestampOffset}; +g.F.Hk=function(z){return this.videoData&&this.videoData.K?this.videoData.K.Hk(z-this.timestampOffset):NaN}; +g.F.Iu=function(){if(!this.mediaElement)return 0;if(Sg(this.videoData)){var z=this.mediaElement,J=z.G2();z=(qU(J)>0&&z.getDuration()?J.end(J.length-1):0)+this.timestampOffset-this.JX();J=this.Aw()-this.JX();return Math.max(0,Math.min(1,z/J))}return this.mediaElement.Iu()}; +g.F.MN=function(z){this.V&&(this.V.K=z)}; +g.F.Dg=function(z,J){this.H1.ph("requestUtcSeek",{time:z});Fr(this.videoData)&&(this.nh=z);var m;(m=this.v1)==null||m.Dg(z);J&&(this.wb=J)}; +g.F.zq=function(z){Fr(this.videoData)&&(this.nh=void 0);if(this.wb)this.H1.ph("utcSeekingFallback",{source:"streamTime",timeSeconds:this.wb}),this.H1.seekTo(this.wb,{i8:"utcSeekingFallback_streamTime"}),this.wb=0;else{var J=this.getCurrentTime();isNaN(J)||(z=this.Hk(J)-z,J-=z,this.H1.ph("utcSeekingFallback",{source:"estimate",timeSeconds:J}),this.H1.seekTo(J,{i8:"utcSeekingFallback_estimate"}))}}; +g.F.HZ=function(){this.wb=0}; +g.F.C=function(z){return this.yx&&this.yx.C(z)};g.p(zj,g.h);zj.prototype.start=function(){this.T.start()}; +zj.prototype.stop=function(){this.T.stop()}; +zj.prototype.clear=function(){for(var z=g.y(this.K.values()),J=z.next();!J.done;J=z.next())J.value.clear()}; +zj.prototype.sample=function(){for(var z=g.y(this.S),J=z.next();!J.done;J=z.next()){var m=g.y(J.value);J=m.next().value;m=m.next().value;this.K.has(J)||this.K.set(J,new hUf(oc9.has(J)));this.K.get(J).update(m())}this.T.start()}; +var oc9=new Set(["networkactivity"]);hUf.prototype.update=function(z){this.T?(this.buffer.add(z-this.K||0),this.K=z):this.buffer.add(z)}; +hUf.prototype.clear=function(){this.buffer.clear();this.K=0};eG.prototype.bW=function(){return this.started}; +eG.prototype.start=function(){this.started=!0}; +eG.prototype.reset=function(){this.finished=this.started=!1};var Hbb=!1;g.p(g.Fx,g.wF);g.F=g.Fx.prototype;g.F.oy=function(){this.logger.debug("dispose");g.nH(this.FT);L7u(this.Yi);this.visibility.unsubscribe("visibilitystatechange",this.Yi);Thu(this);Wk(this);g.tQ.Xo(this.gU);this.OL();this.Qb=null;g.Wc(this.videoData);g.Wc(this.HU);g.Wc(this.FX);g.Wc(this.jq);g.lF(this.cZF);this.Ic=null;g.wF.prototype.oy.call(this)}; +g.F.mu=function(z,J,m,e,T){if(this.yx.C("html5_log_ad_playback_docid")){var E=this.Nd();if(E.qoe){E=E.qoe;var Z=this.yx.Ry||"yt";g.po(E,g.sC(E.provider),"ad_playback",[z,J,m,T,Z])}}else this.Nd().mu(z,J,m);this.C("html5_log_media_perf_info")&&this.ph("adloudness",{ld:e.toFixed(3),cpn:z})}; +g.F.Ji=function(){var z;return(z=this.v1)==null?void 0:z.Ji()}; +g.F.Ma=function(){var z;return(z=this.v1)==null?void 0:z.Ma()}; +g.F.M$=function(){var z;return(z=this.v1)==null?void 0:z.M$()}; +g.F.I4=function(){var z;return(z=this.v1)==null?void 0:z.I4()}; +g.F.xE=function(){return this.videoData.xE()}; +g.F.Ep=function(){return this.C("html5_not_reset_media_source")&&!this.xE()&&!this.videoData.isLivePlayback&&g.AX(this.videoData)&&!this.yx.supportsGaplessShorts()}; +g.F.Bf=function(){if(this.videoData.X){var z;if(!(z=this.videoData.ow)){var J;z=(J=this.u8.W1())==null?void 0:J.Ji()}this.videoData.ow=z;if(!(z=this.videoData.KH)){var m;z=(m=this.u8.W1())==null?void 0:m.Ma()}this.videoData.KH=z}if(z3q(this.videoData)||!kv(this.videoData))m=this.videoData.errorDetail,this.O4(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),m,m,this.videoData.oV||void 0);this.C("html5_generate_content_po_token")&&this.wS();this.C("html5_enable_d6de4")&&this.pU(); +if(this.C("html5_ssap_cleanup_player_switch_ad_player")||this.C("html5_ssap_cleanup_ad_player_on_new_data"))if(m=this.u8.H7())this.oJ=m.clientPlaybackNonce}; +g.F.zW=function(){return this.L5}; +g.F.hv=function(){!this.Mo||this.Mo.mF();this.Mo=new g.xF(new $F(this.videoData,this.yx,this));this.L5=new Ag(this.yx,this,this.Mo)}; +g.F.getVideoData=function(){return this.videoData}; +g.F.W=function(){return this.yx}; +g.F.TY=function(z){return this.PW.TY(this.Qb,z===void 0?!1:z)}; +g.F.Nd=function(z){if(z)a:{for(var J=this.L5,m=g.y(J.K.values()),e=m.next();!e.done;e=m.next())if(e=e.value,e.getVideoData().videoId===z){z=e;break a}z=J.T}else z=this.L5.Nd();return z}; +g.F.BX=function(){return this.visibility}; +g.F.CS=function(){return this.mediaElement&&this.mediaElement.Uw()?this.mediaElement.aT():null}; +g.F.Vv=function(){return this.mediaElement}; +g.F.yM=function(){if(this.C("html5_check_video_data_errors_before_playback_start")&&this.videoData.errorCode)return!1;this.W().Y&&this.W().houseBrandUserStatus&&this.ph("hbut",{status:this.W().houseBrandUserStatus});if(this.videoData.pZ())return!0;this.O4("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; +g.F.MF=function(z){(z=z===void 0?!1:z)||g.Lr(this.videoData)||M2(this.Nd());this.uW=z;!this.yM()||this.PN.bW()?g.SP(this.yx)&&this.videoData.isLivePlayback&&this.PN.bW()&&!this.PN.finished&&!this.uW&&this.o9():(this.PN.start(),z=this.Nd(),g.sC(z.provider),z.qoe&&rHu(z.qoe),this.o9())}; +g.F.o9=function(){if(this.videoData.isLoaded()){var z=this.HU;g.dv(z.e4.experiments,"html5_player_min_build_cl")>0&&g.dv(z.e4.experiments,"html5_player_min_build_cl")>740099560&&EMb(z,"oldplayer");i7q(this)}else this.videoData.jf||this.videoData.S8?this.uW&&g.SP(this.yx)&&this.videoData.isLivePlayback||(this.videoData.jf?oAq(this.videoData):(z=this.Nd(),z.qoe&&(z=z.qoe,X4(z,"protected"),z.provider.videoData.Z?z.IR():z.provider.videoData.subscribe("dataloaded",z.IR,z)),$Ws(this.videoData))):!this.videoData.loading&& +this.c6&&ENj(this)}; +g.F.A5=function(z){this.Fq=z;this.v1&&(urR(this.v1,new g.rI(z)),this.ph("sdai",{sdsstm:1}))}; +g.F.L9=function(z){this.Pd=z;this.v1&&this.v1.L9(z)}; +g.F.G8=TE(16);g.F.isFullscreen=function(){return this.visibility.isFullscreen()}; +g.F.isBackground=function(){return this.visibility.isBackground()}; +g.F.us=function(){var z=this;this.logger.debug("Updating for format change");iJ(this).then(function(){return Zb(z)}); +this.playerState.isOrWillBePlaying()&&this.playVideo()}; +g.F.HE=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.MF();this.yM()&&!g.R(this.playerState,128)&&(this.wO.bW()||(this.wO.start(),this.videoData.MY?this.DH(ik(this.playerState,4)):this.DH(ik(ik(this.playerState,8),1))),Z74(this))}; +g.F.E8=function(){return this.PN.finished}; +g.F.sendAbandonmentPing=function(){g.R(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.C4(!0),Thu(this),g.tQ.Xo(this.gU))}; +g.F.Vi=function(z,J){z=z===void 0?!0:z;(J===void 0||J)&&this.mediaElement&&this.mediaElement.pause();this.DH(z?new g.E3(14):new g.E3)}; +g.F.NF=function(){this.Nd().vy()}; +g.F.O4=function(z,J,m,e,T,E){this.logger.debug(function(){return"set player error: ec="+z+", detail="+T}); +var Z,c;g.$f(Lrz,m)?Z=m:m?c=m:Z="GENERIC_WITHOUT_LINK";e=(e||"")+(";a6s."+wY());if(z==="auth"||z==="drm.auth"||z==="heartbeat.stop")m&&(e+=";r."+m.replaceAll(" ","_")),E&&(e+="sr."+E.replaceAll(" ","_"));J={errorCode:z,errorDetail:T,errorMessage:c||g.jK[Z]||"",rM:Z,oV:E||"",kS:e,VP:J,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=z;ck(this,"dataloaderror");this.DH(Fg(this.playerState,128,J));g.tQ.Xo(this.gU);Wk(this);this.Gk()}; +g.F.Zb=function(z){this.DQ=this.DQ.filter(function(J){return z!==J}); +this.logger.debug(function(){return"set preroll ready for "+z}); +g.Lr(this.videoData)&&!this.du()&&this.hZ.Au("pl_pr");this.wO.bW()&&Z74(this)}; +g.F.du=function(){var z;(z=!!this.DQ.length)||(z=this.VL.K.array[0],z=!!z&&z.start<=-0x8000000000000);return z}; +g.F.HR=function(){return this.Lr.HR()}; +g.F.isPlaying=function(){return this.playerState.isPlaying()}; +g.F.nS=function(){return this.playerState.nS()&&this.videoData.MY}; +g.F.getPlayerState=function(){return this.playerState}; +g.F.Ne=function(z){var J;(J=this.v1)==null||J.Ne(z)}; +g.F.gR=function(z){var J;(J=this.v1)==null||J.gR(z)}; +g.F.getPlayerType=function(){return this.playerType}; +g.F.getPreferredQuality=function(){if(this.Qb){var z=this.Qb;z=z.videoData.iQ.compose(z.videoData.N8);z=WJ(z)}else z="auto";return z}; +g.F.A0=TE(22);g.F.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; +g.F.setMediaElement=function(z){this.logger.debug("set media element");if(this.mediaElement&&z.aT()===this.mediaElement.aT()&&(z.isView()||this.mediaElement.isView())){if(z.isView()||!this.mediaElement.isView())this.iS(),this.mediaElement=z,this.mediaElement.H1=this,aTu(this),this.Lr.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.OL();if(!this.playerState.isError()){var J=cr(this.playerState,512);g.R(J,8)&&!g.R(J,2)&&(J=ik(J,1));z.isView()&&(J=cr(J,64));this.DH(J)}this.mediaElement= +z;this.mediaElement.H1=this;!g.SP(this.yx)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);aTu(this);this.Lr.setMediaElement(this.mediaElement);this.C("html5_prewarm_media_source")&&!this.HU.A3()&&B9E(this.mediaElement)}}; +g.F.OL=function(z,J,m){z=z===void 0?!1:z;J=J===void 0?!1:J;m=m===void 0?!1:m;this.logger.debug("remove media element");if(this.mediaElement){var e=this.getCurrentTime();e>0&&(this.Lr.S=e);this.Lr.setMediaElement(null);!z&&this.Ep()?Nhs(this):this.i7(m);this.v1&&(H4(this.v1),dP(this,J));this.KL.stop();if(this.mediaElement&&(!this.wO.bW()&&!this.C$()||this.playerState.isError()||g.R(this.playerState,2)||this.DH(ik(this.playerState,512)),this.mediaElement)){this.iS();if(z||!this.mediaElement.isView())this.hZ.b5("mesv_s"), +this.mediaElement.stopVideo(),I2(this);this.mediaElement=this.mediaElement.H1=null}}}; +g.F.playVideo=function(z,J){z=z===void 0?!1:z;J=J===void 0?!1:J;var m=this,e,T,E,Z,c,W;return g.D(function(l){if(l.K==1){m.logger.debug("start play video");var w=window.google_image_requests;w&&w.length>10&&(window.google_image_requests=w.slice(-10));if(g.R(m.playerState,128))return l.return();if(m.HU.zH())return m.publish("signatureexpired"),l.return();m.mediaElement&&M2(m.Nd());m.HE();(g.R(m.playerState,64)||z)&&m.DH(ik(m.playerState,8));return m.wO.finished&&m.mediaElement?m.Qb||!m.Zl?l.U2(2): +g.S(l,m.Zl,3):l.return()}if(l.K!=2&&g.R(m.playerState,128))return l.return();if(!m.videoData.S)return m.videoData.isLivePlayback&&!g.eR(m.yx.Z,!0)?(e="html5.unsupportedlive",T=2):(e=m.videoData.xE()?"fmt.unplayable":"fmt.noneavailable",T=1),g.hr(Error("selectableFormats")),m.O4(e,T,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),l.return();if(m.Q$()&&m.videoData.S.K)return m.logger.debug("rebuild playbackData for airplay"),l.return(iJ(m));if(Qn(m))w=m.Lr,li(w.videoData)?!w.isAtLiveHead(w.getCurrentTime())&& +w.HR()&&w.H1.seekTo(Infinity,{i8:"seektimeline_peggedToLive",seekSource:34}):g.Lr(w.videoData)&&w.getCurrentTime()Z;Z=J.C("html5_dont_save_under_1080")&&Z<1080;if(!T||!E&&!Z){var c;T=qCu(J,(c=e.K)==null?void 0:c.videoInfos);c=J.H1.getPlaybackRate();c>1&&T&&(c=fHE(J.yx.Z,e.K.videoInfos,c),z.K!==0&&c=480;if(J.C("html5_exponential_memory_for_sticky")){W=J.yx.qp;l=1;var w=w===void 0?!1:w;R2z(W,"sticky-lifetime");W.values["sticky-lifetime"]&&W.Cj["sticky-lifetime"]||(W.values["sticky-lifetime"]=0,W.Cj["sticky-lifetime"]=0);w&&Ci(W,"sticky-lifetime")>.0625&&(l=W.Cj["sticky-lifetime"]*2);W.values["sticky-lifetime"]+=1*Math.pow(2, +W.K/l);W.Cj["sticky-lifetime"]=l;W.U.start()}if(J.C("html5_perf_cap_override_sticky")){w=J.S;W=J.C("html5_perserve_av1_perf_cap");W=W===void 0?!1:W;if(W===void 0?0:W){l=Pt();J=g.y(Object.keys(l));for(z=J.next();!z.done;z=J.next())z=z.value,z.indexOf("1")!==0&&delete l[z];g.oW("yt-player-performance-cap",l,2592E3)}else g.hY("yt-player-performance-cap");fj1(W);if(W){W=g.y(D7.keys());for(l=W.next();!l.done;l=W.next())l=l.value,l.startsWith("1")||D7.delete(l);W=g.y(lL.values());for(l=W.next();!l.done;l= +W.next())l=l.value,l.startsWith("1")||lL.delete(l);W=g.y(w.keys());for(l=W.next();!l.done;l=W.next())l=l.value,l.startsWith("1")||w.delete(l)}else D7.clear(),lL.clear(),w.clear()}}}this.v1&&(w=this.v1,m=m||"",w.policy.K?Ls(w.T.K,m):Ls(w.K.Z,m));this.NQ()}; +g.F.getUserPlaybackQualityPreference=function(){return this.videoData.S&&!this.videoData.S.K?WJ(this.videoData.iQ):cJ[uK()]}; +g.F.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; +g.F.setUserAudio51Preference=function(z,J){this.getUserAudio51Preference()!==z&&(this.ph("toggle51",{pref:z}),g.oW("yt-player-audio51",z,J?31536E3:2592E3),this.us())}; +g.F.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; +g.F.setProximaLatencyPreference=function(z){var J=this.getProximaLatencyPreference();this.ph("proxima",{pref:z});g.oW("yt-player-proxima-pref",z,31536E3);J!==z&&(z=this.Lr,z.O2=!0,z.H1.seekTo(Infinity,{i8:"seektimeline_proximaSeekToHead",seekSource:34}))}; +g.F.getProximaLatencyPreference=function(){var z;return(z=VN())!=null?z:0}; +g.F.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; +g.F.wS=function(){this.videoData.videoId?this.u8.wS(this.videoData):this.ph("povid",{})}; +g.F.pU=function(){this.videoData.videoId?this.u8.pU(this.videoData):this.ph("piavid",{})}; +g.F.NQ=function(){if(!this.mF()&&!g.R(this.playerState,128)&&this.videoData.S){if(this.videoData.S.K)Em(this);else{var z=qD(this),J=this.videoData;a:{var m=this.videoData.Zo;if(z.K){for(var e=g.y(m),T=e.next();!T.done;T=e.next()){T=T.value;var E=T.getInfo(),Z=g.VD[E.video.quality];if((!z.S||E.video.quality!=="auto")&&Z<=z.K){m=T;break a}}m=m[m.length-1]}else m=m[0]}J.Hd=m;qbq(this,z.reason,Sbs(this,this.videoData.Hd))}if(this.C("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.Lr.X= +!1,this.playVideo()}}; +g.F.I2=function(z,J){if(this.mF()||g.R(this.playerState,128))return!1;var m,e=!((m=this.videoData.S)==null||!m.K);m=e&&J?this.getCurrentTime()-this.Kr():NaN;if(this.yx.experiments.j4("html5_record_audio_format_intent")){var T=this.Nd();if(T.qoe){T=T.qoe;var E=[z.sC.id,isNaN(m)?"m":"t"];g.po(T,g.sC(T.provider),"afi",E)}}if(e)return J&&(e=KNq(this.Lr),this.ph("aswh",{id:z.id,xtags:z.xtags,bh:e.toFixed(3)})),this.v1.setAudioTrack(z,m,J),!0;if(ITq(this)){a:{J=this.mediaElement.audioTracks();for(e=0;e< +J.length;++e)if(m=J[e],m.label===z.sC.getName()){if(m.enabled){J=!1;break a}J=m.enabled=!0;break a}J=void 0}J&&this.ph("hlsaudio",{id:z.id})}else{a:if(J=this.videoData,J.U&&!Jo(J.U)||z===J.Qm||!J.Zo||J.Zo.length<=0)J=!1;else{e=g.y(J.Zo);for(m=e.next();!m.done;m=e.next()){m=m.value;if(!(m instanceof lh)){J=!1;break a}T=z.sC.getId();m.T&&(Ouu(m.T,T),m.QH=null)}J.Qm=z;J=!0}J&&Zb(this)&&(this.publish("internalaudioformatchange",this.videoData,!0),this.ph("hlsaudio",{id:z.id}))}return!0}; +g.F.getAvailableAudioTracks=function(){return g.Lr(this.videoData)&&this.Pd?sH1(this.Pd).getAvailableAudioTracks():this.videoData.getAvailableAudioTracks()}; +g.F.getAudioTrack=function(){if(ITq(this)){var z=p_u(this);if(z)return z}return this.videoData.getAudioTrack()}; +g.F.l5=function(){if(this.videoData.C("html5_trigger_loader_when_idle_network")&&!this.videoData.Cq()&&Fr(this.videoData)){var z;(z=this.v1)!=null&&z.n1()}}; +g.F.rr=function(){if(TF(this.videoData)&&this.videoData.C("html5_gapless_append_early")){var z;(z=this.v1)!=null&&z.n1()}}; +g.F.ID=function(z){z=z===void 0?!1:z;if(this.v1){var J=this.v1,m=J.ID;var e=this.videoData;e=e.C("html5_ssdai_use_post_for_media")&&e.enableServerStitchedDai?!1:w0(e)&&e.Uu&&!e.isAd();m.call(J,e,z)}}; +g.F.i7=function(z){z=z===void 0?!1:z;this.J6&&(this.logger.debug("remove media source"),Kku(this.J6),this.ID(z),this.J6.dispose(),this.J6=null)}; +g.F.Ki=function(){return this.J6}; +g.F.XS=function(z,J,m,e){function T(Z){try{Ybu(E,Z,J,m)}catch(c){g.hr(c),E.handleError(new Sl("fmt.unplayable",{msi:"1",ename:c&&typeof c==="object"&&"name"in c?String(c.name):void 0},1))}} +var E=this;J=J===void 0?!1:J;m=m===void 0?!1:m;X_b(this,e===void 0?!1:e);this.J6=z;this.Ep()&&vz(this.J6)==="open"?T(this.J6):Xy4(this.J6,T)}; +g.F.Td=function(z){this.logger.debug("onNeedKeyInfo");this.Tr.set(z.initData,z);this.Tt&&(this.Tt.Td(z),this.C("html5_eme_loader_sync")||this.Tr.remove(z.initData))}; +g.F.Zr=function(z){this.videoData.H0=g.Zr("auto",z,!1,"u");Em(this)}; +g.F.MN=function(z){var J=z.reason,m=z.K.info,e=z.token,T=z.videoId,E=this.Nd(T),Z=g.Lr(this.videoData)?E.getVideoData():this.videoData;if(m!==Z.U){var c=!Z.U;Z.U=m;J!=="m"&&J!=="t"&&(J=c?"i":"a");var W=J==="m"||J==="t";this.yx.experiments.j4("html5_refactor_sabr_audio_format_selection_logging")?this.g2=new ilu(Z,m,J,"",e,T):(J=new ilu(Z,m,J,"",e),E.qoe&&(E=E.qoe,m=g.sC(E.provider),Vgf(E,m,J)));this.publish("internalaudioformatchange",Z,!c&&W)}this.Lr.MN(z.K.index)}; +g.F.DP=function(z){this.publish("localmediachange",z)}; +g.F.RA=function(z){z=z===void 0?{}:z;var J;(J=this.v1)==null||J.RA(this.yx,ZR(this.videoData),z)}; +g.F.zH=function(){return this.HU.zH()}; +g.F.K4=function(z){this.Br(new Sl("staleconfig",{reason:z}))}; +g.F.handleError=function(z){this.HU.handleError(z)}; +g.F.A3=function(){return this.HU.A3()}; +g.F.zq=function(z){this.Lr.zq(z)}; +g.F.Vb=function(z,J,m){z=z===void 0?!1:z;J=J===void 0?!1:J;m=m===void 0?!1:m;var e=this,T,E,Z;return g.D(function(c){if(c.K==1){e.v1&&e.v1.Zj();e.v1&&e.v1.mF()&&Wk(e);if(e.C("html5_enable_vp9_fairplay")&&e.xE()&&(T=e.videoData.K)!=null)for(var W in T.K)T.K.hasOwnProperty(W)&&(T.K[W].K=null,T.K[W].S=!1);e.DH(ik(e.playerState,2048));e.C("html5_ssap_keep_media_on_finish_segment")&&g.Lr(e.videoData)?e.publish("newelementrequired",m):e.publish("newelementrequired");return z?g.S(c,iJ(e),2):c.U2(2)}e.videoData.Cq()&& +((E=e.v1)==null?0:E.Tf)&&!Qn(e)&&((Z=e.isAtLiveHead())&&li(e.videoData)?e.seekTo(Infinity,{i8:"videoPlayer_getNewElement"}):e.videoData.Ol&&e.v1&&(W=e.v1,W.E2.Cq&&(W.E2.Ol||W.E2.U||W.E2.isPremiere?(W.seek(0,{i8:"loader_resetSqless"}),W.videoTrack.V=!0,W.audioTrack.V=!0,W.videoTrack.Z=!0,W.audioTrack.Z=!0):Bp(W.E2)&&rr(W))));J&&e.seekTo(0,{seekSource:105});g.R(e.playerState,8)&&(e.C("html5_ssap_keep_media_on_finish_segment")&&g.Lr(e.videoData)?e.playVideo(!1,m):e.playVideo());g.nq(c)})}; +g.F.QM=function(z){this.ph("hgte",{ne:+z});this.videoData.X=!1;z&&this.Vb();this.v1&&lRq(this.v1)}; +g.F.At=function(z){this.ph("newelem",{r:z});this.Vb()}; +g.F.pauseVideo=function(z){z=z===void 0?!1:z;if((g.R(this.playerState,64)||g.R(this.playerState,2))&&!z)if(g.R(this.playerState,8))this.DH(Wr(this.playerState,4,8));else if(this.nS())Zb(this);else return;g.R(this.playerState,128)||(z?this.DH(ik(this.playerState,256)):this.DH(Wr(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.BH(this.videoData)&&this.v1&&dP(this,!1)}; +g.F.stopVideo=function(){this.pauseVideo();this.v1&&(dP(this,!1),this.v1.HX())}; +g.F.Gk=function(z,J){z=z===void 0?!1:z;J=J===void 0?!1:J;if(this.Ep()&&J){var m;(m=this.mediaElement)==null||m.Gk()}else{var e;(e=this.mediaElement)==null||e.stopVideo()}I2(this);Wk(this);g.R(this.playerState,128)||(z?this.DH(cr(cr(ik(this.playerState,4),8),16)):this.DH(Fg(this.playerState)));this.videoData.videoId&&this.yx.Qx.remove(this.videoData.videoId)}; +g.F.seekTo=function(z,J){J=J===void 0?{}:J;this.logger.debug(function(){return"SeekTo "+z+", "+JSON.stringify(J)}); +g.R(this.playerState,2)&&Zb(this);J.DFi&&this.DH(ik(this.playerState,2048));J.seekSource!==58&&J.seekSource!==60||!this.C("html5_update_vss_during_gapless_seeking")||jwR(this.Nd(),J.seekSource);this.Lr.seekTo(z,J);this.VL.sync()}; +g.F.kB=function(z){this.hZ.U.T=(0,g.b5)();g.R(this.playerState,32)||(this.DH(ik(this.playerState,32,z==null?void 0:z.seekSource)),g.R(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking"));this.Xq()}; +g.F.CR=function(z){z=z==null?void 0:z.seekSource;g.R(this.playerState,32)?(this.DH(Wr(this.playerState,16,32,z)),this.publish("endseeking")):g.R(this.playerState,2)||this.DH(ik(this.playerState,16,z));z=this.hZ.U;var J=this.videoData,m=this.playerState.isPaused();if(J.clientPlaybackNonce&&!isNaN(z.K)){if(Math.random()<.01){m=m?"pbp":"pbs";var e={startTime:z.K};J.Y&&(e.cttAuthInfo={token:J.Y,videoId:J.videoId});Hh("seek",e);g.tR({clientPlaybackNonce:J.clientPlaybackNonce},"seek");isNaN(z.T)||Ph("pl_ss", +z.T,"seek");Ph(m,(0,g.b5)(),"seek")}z.reset()}}; +g.F.G1=function(z){this.CR(z)}; +g.F.IZ=function(){this.publish("SEEK_COMPLETE")}; +g.F.LL=function(z){var J=this.u8,m=this.videoData.clientPlaybackNonce,e=this.playerType;if(z.scope===4){var T=z.type;if(T){var E=J.Kq(),Z=E.getVideoData().clientPlaybackNonce;e===1&&(Z=m);(J=ao4(J,Z))?(m=J.getVideoData())&&(z.writePolicy===2&&m.sabrContextUpdates.has(T)||m.sabrContextUpdates.set(T,z)):E.ph("scuset",{ncpf:"1",ccpn:Z,crcpn:m})}else g.hr(Error("b/380308491: contextUpdateType is undefined"))}}; +g.F.UY=function(){if(this.playerType===2)return this.u8.UY("")}; +g.F.getCurrentTime=function(){return this.Lr.getCurrentTime()}; +g.F.au=function(){return this.Lr.au()}; +g.F.Ap=function(){return this.Lr.Ap()}; +g.F.Hs=function(z){return this.Pd&&(z=z||this.Pd.tb())?TB(this.Pd,z):this.Ap()}; +g.F.OS=function(){return this.Lr.OS()}; +g.F.getPlaylistSequenceForTime=function(z){return this.videoData.getPlaylistSequenceForTime(z-this.Kr())}; +g.F.X2=function(){var z=NaN;this.mediaElement&&(z=this.mediaElement.X2());return z>=0?z:this.getCurrentTime()}; +g.F.Hk=function(){var z;return((z=this.videoData.K)==null?0:z.Hk)?this.videoData.K.Hk(this.getCurrentTime()-this.Kr()):this.mediaElement&&(z=this.mediaElement.uj())&&(z=z.getTime(),!isNaN(z))?z/1E3+this.getCurrentTime():NaN}; +g.F.getDuration=function(z){return g.Lr(this.videoData)&&this.Pd?z?v9u(this.Pd,z):tH(this.Pd):this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.Kr():this.Aw()?this.Aw():0}; +g.F.vV=function(){var z=new Hob;if(this.v1){var J=this.yx.schedule,m=this.yx.AZ();m=m===void 0?!1:m;z.Ac=J.Tf;z.F6=J.Lh;z.bandwidthEstimate=ni(J);if(m){m=(J.X.ao()*1E3).toFixed();var e=(J.x3.ao()*1E3).toFixed(),T=NA(J).toFixed(2),E=((J.V.ao()||0)*1E9).toFixed(2),Z=J.S.ao().toFixed(0),c=J.Qx.ao().toFixed(0),W=J.B.percentile(.5).toFixed(2),l=J.B.percentile(.92).toFixed(2),w=J.B.percentile(.96).toFixed(2),q=J.B.percentile(.98).toFixed(2);J.K?J.K.reset():J.K=new WZ;J.K.add(J.wb);J.K.add(J.interruptions.length); +for(var d=0,I=J.interruptions.length-1;I>=0;I--){var O=J.interruptions[I];J.K.add(O-d);d=O}d=0;for(I=J.U.length-1;I>=0;I--){O=J.U[I];var G=O.stamp/36E5;J.K.add(G-d);d=G;J.K.add(O.net/1E3);J.K.add(O.max)}J=J.K.G7();z.K={ttr:m,ttm:e,d:T,st:E,bw:Z,abw:c,v50:W,v92:l,v96:w,v98:q,"int":J}}hIj(this.v1,z)}else this.mediaElement&&(z.jR=mI(this.mediaElement));z.Ac=this.Ac;z.F6=this.F6;z.S=this.isAtLiveHead()&&this.isPlaying()?m5R(this):NaN;return z}; +g.F.jW=function(z,J){this.F6+=z;this.Ac+=J}; +g.F.Iu=function(){return this.mediaElement?g.BH(this.videoData)?1:Sg(this.videoData)?this.isAtLiveHead()||this.HR()?1:this.Lr.Iu():this.mediaElement.Iu():0}; +g.F.jF=function(){var z=this.vO,J=mN(z,"bandwidth"),m=mN(z,"bufferhealth"),e=mN(z,"livelatency"),T=mN(z,"networkactivity"),E=Jb(z,"bandwidth"),Z=Jb(z,"bufferhealth"),c=Jb(z,"livelatency");z=Jb(z,"networkactivity");var W=this.e3(),l=W.droppedVideoFrames;W=W.totalVideoFrames;var w=this.getCurrentTime();if(this.Tt){var q="IT/"+(this.Tt.K.getInfo()+"/"+WJ(this.Dj()));q+="/"+this.Tt.getInfo()}else q="";var d=this.isGapless(),I=this.As(),O=this.ri(),G=g.wP(this),n=this.getPlayerState(),C=this.getPlaylistSequenceForTime(this.getCurrentTime()); +a:{var K=0;var f="";if(this.Fq){if(this.Fq.pJ){f="D,";break a}K=this.Fq.Da();f=this.Fq.tb().substring(0,4)}else this.Pd&&(K=this.Pd.Da(),f=this.Pd.tb().substring(0,4));K>0?(K="AD"+K+", ",f&&(K+=f+", "),f=K):f=""}return{Gm:E,yR:Z,currentTime:w,GW:q,droppedVideoFrames:l,isGapless:d,As:I,iZ:O,mD:J,ZV:m,EE:e,C7:T,M2:c,oE:z,KC:G,playerState:n,ZC:C,x5:f,totalVideoFrames:W}}; +g.F.kQ=function(z){var J={};if(z===void 0?0:z){Object.assign(J,this.Nd().kQ());this.mediaElement&&(Object.assign(J,this.mediaElement.kQ()),Object.assign(J,this.e3()));this.v1&&Object.assign(J,this.v1.kQ());this.Tt&&(J.drm=JSON.stringify(this.Tt.kQ()));J.state=this.playerState.state.toString(16);g.R(this.playerState,128)&&(J.debug_error=JSON.stringify(this.playerState.Io));this.du()&&(J.prerolls=this.DQ.join(","));this.videoData.qx&&(J.ismb=this.videoData.qx);this.videoData.latencyClass!=="UNKNOWN"&& +(J.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(J.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)J.is_mosaic=1;this.videoData.cotn&&(J.is_offline=1,J.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(J.playerResponseCpn=this.videoData.playerResponseCpn);this.u8.isOrchestrationLeader()&&(J.leader=1);this.videoData.isLivePlayback&&(this.videoData.K&& +YQ(this.videoData.K)&&(J.segduration=YQ(this.videoData.K)),z=this.Lr,J.lat=z.V?Zb1(z.V.U):0,J.liveutcstart=this.videoData.liveUtcStartSeconds);J.relative_loudness=this.videoData.US.toFixed(3);if(z=g.wP(this))J.optimal_format=z.video.qualityLabel;J.user_qual=uK();J.release_version=e4[49];g.Lr(this.videoData)&&this.Pd&&(J.ssap=mq(this.Pd))}J.debug_videoId=this.videoData.videoId;return J}; +g.F.addCueRange=function(z){this.TR([z])}; +g.F.removeCueRange=function(z){this.VL.Yy([z])}; +g.F.Te=function(){this.VL.sync()}; +g.F.YX=function(z,J){return this.VL.YX(z,J)}; +g.F.TR=function(z,J){this.VL.U4(z,J)}; +g.F.i5=function(z){this.VL.Yy(z)}; +g.F.zM=function(z){var J=this.VL;z.length<=0||J.mF()||(z=J.K,z.array.sort(z.K))}; +g.F.Js=function(){return this.VL.Js()||[]}; +g.F.KX=function(){return this.m1}; +g.F.Q$=function(){return this.visibility.Q$()}; +g.F.dk=function(){this.mediaElement&&this.mediaElement.dk()}; +g.F.jmW=function(){ck(this)}; +g.F.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; +g.F.iS=function(){g.gs(this.tB)}; +g.F.gH=function(){this.Xq();this.publish("onLoadProgress",this.Iu())}; +g.F.lM=function(z){var J=z.target.Mi();if(this.mediaElement&&this.mediaElement.Mi()&&this.mediaElement.Mi()===J){A$f(this,z.type);switch(z.type){case "error":var m=TX(this.mediaElement)||"",e=this.mediaElement.Cc();if(m==="capability.changed"){this.C("html5_restart_on_capability_change")?(this.ph("capchg",{msg:e}),this.Vb(!0)):iJ(this);return}if(this.mediaElement.hasError()&&(JHu(this.HU,m,{msg:e})||g.Lr(this.videoData)&&this.Pd&&(e=this.playerState.Io,this.Pd.handleError(m,e==null?void 0:e.VP))))return; +if(this.isBackground()&&this.mediaElement.KF()===4){this.Gk();lJ(this,"unplayable");return}break;case "durationchange":m=this.mediaElement.getDuration();isFinite(m)&&(!this.J6||m>0)&&m!==1&&this.Vm(m);break;case "ratechange":this.v1&&this.v1.setPlaybackRate(this.mediaElement.getPlaybackRate());zU1(this.VL);this.Nd().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":jDu(this);this.publish("onLoadedMetadata");Bh1(this);m=this.Hk();this.videoData.Rw&&(this.videoData.Rw=m);break; +case "loadstart":Bh1(this);break;case "progress":case "suspend":g.dv(this.yx.experiments,"html5_progress_event_throttle_ms")>0?this.NK.W$():this.gH();break;case "playing":this.hZ.b5("plev");this.aQ&&!Qn(this)&&(this.aQ=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{i8:"videoplayer_onPlaying"})));break;case "timeupdate":m=this.mediaElement&&!this.mediaElement.getCurrentTime();e=this.mediaElement&&this.mediaElement.WW()===0;if(m&&(!this.Bi||e))return; +this.Bi=this.Bi||!!this.mediaElement.getCurrentTime();KE1(this);this.Xq();if(!this.mediaElement||this.mediaElement.Mi()!==J)return;this.publish("onVideoProgress",this.getCurrentTime());break;case "waiting":if(this.mediaElement.Yk().length>0&&this.mediaElement.G2().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.v1)return;this.C("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.WW()>2||!this.mediaElement.isSeeking()&& +l1(this.mediaElement.G2(),this.mediaElement.getCurrentTime()))&&(m=this.mediaElement.kQ(),m.bh=mI(this.mediaElement).toFixed(3),this.ph("uwe",m));g.Lr(this.videoData)&&this.Pd&&tYu(this.Pd,this.mediaElement.getCurrentTime());break;case "resize":jDu(this);this.videoData.T&&this.videoData.T.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.SL&&g.R(this.playerState,8)&&!g.R(this.playerState,1024)&&this.getCurrentTime()===0&&g.Y4){lJ(this,"safari_autoplay_disabled"); +return}}if(this.mediaElement&&this.mediaElement.Mi()===J){Abb(this.Lr,z,this.Pd||void 0);this.publish("videoelementevent",z);J=this.playerState;e=this.j7;var T=this.mediaElement,E=this.yx.experiments;m=this.videoData.clientPlaybackNonce;var Z=g.Lr(this.videoData)&&this.Pd?tH(this.Pd):void 0;if(!g.R(J,128)){var c=J.state;T=T?T:z.target;var W=T.getCurrentTime();if(!g.R(J,64)||z.type!=="ended"&&z.type!=="pause"){Z=Z||T.getDuration();Z=T.isEnded()||W>1&&Math.abs(W-Z)<1.1;var l=z.type==="pause"&&T.isEnded(); +W=z.type==="ended"||z.type==="waiting"||z.type==="timeupdate"&&!g.R(J,4)&&!jU(e,W);if(l||Z&&W)T.S5()>0&&T.Mi()&&(c=14);else switch(z.type){case "error":TX(T)&&(c|=128);break;case "pause":g.R(J,256)?(c^=256)||(c=64):g.R(J,32)||g.R(J,2)||g.R(J,4)||(c=4,g.R(J,1)&&g.R(J,8)&&(c|=1));break;case "playing":E=c;c=(c|8)&-1093;E&4?(c|=1,ZH(e,T,!0)):jU(e,T.getCurrentTime())&&(c&=-2);g.R(J,1)&&ZH(e,T)&&(c|=1);break;case "seeking":c|=16;g.R(J,8)&&(c|=1);c&=-3;break;case "seeked":c&=-17;ZH(e,T,!0);break;case "waiting":g.R(J, +2)||(c|=1);ZH(e,T);break;case "timeupdate":E=g.R(J,16);W=g.R(J,4);(g.R(J,8)||E)&&!W&&jU(e,T.getCurrentTime())&&(c=8);ZH(e,T)&&(c|=1);break;case "progress":case "suspend":E.j4("html5_track_underruns_on_progress")&&ZH(e,T)}}e=c;c=null;e&128&&(c=z.target,T=TX(c),E=1,T?(T==="capability.changed"&&(E=2),W="GENERIC_WITHOUT_LINK",Z=c.kQ(),Z.mediaElem="1",/AUDIO_RENDERER/.test(c.Cc())&&(W="HTML5_AUDIO_RENDERER_ERROR"),c={errorCode:T,errorMessage:g.jK[W]||"",rM:W,kS:BQ(Z),VP:E,cpn:J.Io?J.Io.cpn:""}):c=null, +c&&(c.cpn=m));J=Fg(J,e,c)}!g.R(this.playerState,1)&&g.R(J,1)&&MKR(this,"evt"+z.type);this.DH(J)}}}; +g.F.yXz=function(z){z=z.K.availability==="available";z!==this.m1&&(this.m1=z,this.publish("airplayavailabilitychange"))}; +g.F.Hrx=function(){var z=(0,g.b5)(),J=this.mediaElement.Q$();this.ph("airplay",{ia:J});!J&&!isNaN(this.KG)&&z-this.KG<2E3||(this.KG=z,J!==this.Q$()&&(z=this.visibility,z.K!==J&&(z.K=J,z.Yi()),this.ph("airplay",{rbld:J}),this.us()),this.publish("airplayactivechange"))}; +g.F.Vu=function(z){if(this.v1){var J=this.v1,m=J.U,e=J.getCurrentTime(),T=Date.now()-m.B;m.B=NaN;m.ph("sdai",{adfetchdone:z,d:T});z&&!isNaN(m.V)&&m.T!==3&&ha(m.v1,e,m.V,m.Y);m.policy.Z?m.Z=NaN:m.U=NaN;oF(m,4,m.T===3?"adfps":"adf");H4(J)}}; +g.F.RX=function(){g.nH(this.FT);this.KL.stop();this.videoData.wb=!0;this.yx.xK=!0;this.yx.ub=0;var z=this.HU;if(z.videoData.T){var J=z.e4.Z,m=z.videoData.T.rb;J.T.has(m)&&(J.T.delete(m),Tt(J))}z.K.stop();this.z$();g.R(this.playerState,8)&&this.DH(cr(this.playerState,65));this.uW=!1;oFq(this.Nd());g.sD(this.FX);this.publish("playbackstarted");(z=g.Hq("yt.scheduler.instance.clearPriorityThreshold"))?z():Zx(0,0)}; +g.F.z$=function(){var z=this.u8.H7(),J={},m={};!Up("pbs",this.hZ.timerName)&&bq.measure&&bq.getEntriesByName&&(bq.getEntriesByName("mark_nr")[0]?RME("mark_nr"):RME());z.videoId&&(J.videoId=z.videoId);z.clientPlaybackNonce&&!this.C("web_player_early_cpn")&&(J.clientPlaybackNonce=z.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(m.isPausedOnLoad=!0);m.itag=z.T?Number(z.T.itag):-1;z.yv&&(m.preloadType=String(this.L_?2:1));J.liveStreamMode=B81[Xr(z)];J.playerInfo=m;this.hZ.infoGel(J); +if(this.v1){z=this.v1.timing;window&&window.performance&&window.performance.getEntriesByName&&(z.S&&(J=window.performance.getEntriesByName(z.S),J.length&&(J=J[0],z.tick("vri",J.fetchStart),z.tick("vdns",J.domainLookupEnd),z.tick("vreq",J.requestStart),z.tick("vrc",J.responseEnd))),z.T&&(J=window.performance.getEntriesByName(z.T),J.length&&(J=J[0],z.tick("ari",J.fetchStart),z.tick("adns",J.domainLookupEnd),z.tick("areq",J.requestStart),z.tick("arc",J.responseEnd))));z=z.ticks;for(var e in z)z.hasOwnProperty(e)&& +this.hZ.tick(e,z[e])}}; +g.F.O5=function(z,J,m){z=(z+(this.h3===3?.3:0))/J;J=Math.floor(z*4);J>this.h3&&(this.ph("vpq",{q:J,cpn:m||this.videoData.clientPlaybackNonce,ratio:z.toFixed(3)}),this.h3=J)}; +g.F.Ie=function(){this.h3=-1}; +g.F.Xq=function(z){var J=this;z=z===void 0?!1:z;if(this.mediaElement&&this.videoData){BPb(this.Lr,this.isPlaying());var m=this.getCurrentTime();!this.v1||g.R(this.playerState,4)&&g.BH(this.videoData)||g.R(this.playerState,32)&&Fr(this.videoData)||Hnu(this.v1,m);this.C("html5_ssap_pacf_qoe_ctmp")&&this.playerType===2&&this.O5(m,this.videoData.lengthSeconds);m>5&&(this.Lr.S=m);var e=g.E0();e?g.tQ.Xo(this.gU):g.Xj(this.gU);var T=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!T||QX(this.videoData))&& +!g.R(this.playerState,128)){var E=function(){if(J.mediaElement&&!g.R(J.playerState,128)){J.yx.AZ()&&A$f(J,"pfx");var Z=J.getCurrentTime();J.C("html5_buffer_underrun_transition_fix")&&(Z-=J.Kr());var c=mI(J.mediaElement),W=g.R(J.playerState,8),l=jU(J.j7,Z),w=gEz(J.j7,Z,(0,g.b5)(),c);W&&l?J.DH(cr(J.playerState,1)):W&&w?(W=J.getDuration(),l=li(J.videoData),W&&Math.abs(W-Z)<1.1?(J.ph("setended",{ct:Z,bh:c,dur:W,live:l}),J.mediaElement.aV()?(J.logger.debug("seek to 0 because of looping"),J.seekTo(0,{i8:"videoplayer_loop", +seekSource:37})):J.Vi()):(J.playerState.isBuffering()||MKR(J,"progress_fix"),J.DH(ik(J.playerState,1)))):(W&&!l&&!w&&Z>0&&(W=(Date.now()-J.nD)/1E3,l=J.getDuration(),Z>l-1&&J.ph("misspg",{t:Z.toFixed(2),d:l.toFixed(2),r:W.toFixed(2),bh:c.toFixed(2)})),J.playerState.isPaused()&&J.playerState.isBuffering()&&mI(J.mediaElement)>5&&J.DH(cr(J.playerState,1)));J.Xq()}}; +this.mediaElement.Yk().length===0?this.gU=e?g.tQ.wy(E,100):g.Np(E,100):this.gU=e?g.tQ.wy(E,500):g.Np(E,500)}this.videoData.ND=m;this.Pd&&this.Pd.Ly();!z&&this.isPlaying()&&fTq(this);YCz(this.PW,this.Qb,this.Vv(),this.isBackground())&&Em(this);this.publish("progresssync",z);T&&QX(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}}; +g.F.TbD=function(){this.O4("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; +g.F.ri=function(){return this.Nd().ri()}; +g.F.Pc=function(){return this.v1?this.v1.Pc():ni(this.yx.schedule,!0)}; +g.F.DH=function(z){if(!g.lk(this.playerState,z)){this.logger.debug(function(){return"Setting state "+z.toString()}); +var J=new g.Ox(z,this.playerState);this.playerState=z;oNf(this);var m=!this.Bb.length;this.Bb.push(J);var e=this.mediaElement&&this.mediaElement.isSeeking();e=J.oldState.state===8&&!e;g.yK(J,1)&&e&&g.R(this.playerState,8)&&!g.R(this.playerState,64)&&this.v1&&(WBR(this.v1),this.mediaElement&&mI(this.mediaElement)>=5&&X4q(this.PW,this.Qb)&&Em(this));(e=g.dv(this.yx.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.R(z,1)&&(g.R(z,8)||g.R(z,16))?this.V4.start(e):this.V4.stop();(pO(J,8)<0|| +g.yK(J,1024))&&this.KL.stop();!g.yK(J,8)||this.videoData.wb||g.R(J.state,1024)||this.KL.start();g.R(J.state,8)&&pO(J,16)<0&&!g.R(J.state,32)&&!g.R(J.state,2)&&this.playVideo();g.R(J.state,2)&&Sg(this.videoData)&&(this.Vm(this.getCurrentTime()),this.Xq(!0));g.yK(J,2)&&(this.C4(!0),this.yx.AZ()&&this.C("html5_sabr_parse_live_metadata_playback_boundaries")&&Fr(this.videoData)&&this.videoData.K&&(e={minst:""+this.videoData.K.UB,cminst:""+(this.videoData.K.JX()+this.Kr()),maxst:""+this.videoData.K.qY, +hts:""+this.videoData.K.fh,cmaxst:""+(this.videoData.K.Aw()+this.Kr())},this.ph("sabrSeekableBoundaries",e)));g.yK(J,128)&&this.Gk();this.videoData.K&&this.videoData.isLivePlayback&&!this.hh&&(pO(J,8)<0?z2b(this.videoData.K):g.yK(J,8)&&this.videoData.K.resume());abb(this.Lr,J);hZu(this.Nd(),J);if(m&&!this.mF())try{for(var T=g.y(this.Bb),E=T.next();!E.done;E=T.next()){var Z=E.value;Jbj(this.VL,Z);this.publish("statechange",Z)}}finally{this.Bb.length=0}}}; +g.F.UG=function(){this.hZ.tick("qoes")}; +g.F.R4=function(){this.Lr.R4()}; +g.F.Uy=function(z,J,m,e){a:{var T=this.HU;e=e===void 0?"LICENSE":e;m=m.substring(0,256);var E=fG(J);z==="drm.keyerror"&&this.Tt&&this.Tt.T.keys.length>1&&T.U<96&&(z="drm.sessionlimitexhausted",E=!1);var Z=T.e4.experiments.j4("html5_retry_on_drm_unavailable"),c=T.e4.experiments.j4("html5_retry_on_drm_key_error"),W=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(Z&&z==="drm.unavailable"||c&&z==="drm.keyerror"&&!m.match(W))T.Br("qoe.restart",{retryOnDrmError:1,e:z,detail:m}),T.H1.Vb(!0);else{if(E)if(T.videoData.T&& +T.videoData.T.video.isHdr())Fqb(T,z);else{if(T.H1.O4(z,J,e,m),sfu(T,{detail:m}))break a}else T.Br(z,{detail:m});z==="drm.sessionlimitexhausted"&&(T.ph("retrydrm",{sessionLimitExhausted:1}),T.U++,x5u(T.H1))}}}; +g.F.brz=function(){var z=this,J=g.dv(this.yx.experiments,"html5_license_constraint_delay"),m=EF();J&&m?(J=new g.vl(function(){z.NQ();ck(z)},J),g.u(this,J),J.start()):(this.NQ(),ck(this))}; +g.F.FO=function(z){this.publish("heartbeatparams",z)}; +g.F.eB=function(z){this.ph("keystatuses",Ndb(z));var J="auto",m=!1;this.videoData.T&&(J=this.videoData.T.video.quality,m=this.videoData.T.video.isHdr());a:{switch(J){case "highres":case "hd2880":J="UHD2";break;case "hd2160":case "hd1440":J="UHD1";break;case "hd1080":case "hd720":J="HD";break;case "large":case "medium":case "small":case "light":case "tiny":J="SD";break;default:J="";break a}m&&(J+="HDR")}J=T$(z)?EB(z,J):z.U.includes(J);this.C("html5_enable_sabr_drm_hd720p")&&(this.videoData.qh=z.qh); +if(this.C("html5_enable_vp9_fairplay")){if(m)if(z.V){var e;if((e=this.Tt)==null?0:hG(e.K))if((m=this.Tt)==null)m=0;else{for(var T=e=void 0,E=g.y(m.T.values()),Z=E.next();!Z.done;Z=E.next())Z=Z.value,e||(e=XLb(Z,"SD")),T||(T=XLb(Z,"AUDIO"));m.Xg({sd:e,audio:T});m=e==="output-restricted"||T==="output-restricted"}else m=!J;if(m){this.ph("drm",{dshdr:1});Fqb(this.HU);return}}else{this.videoData.JP||(this.videoData.JP=!0,this.ph("drm",{dphdr:1}),this.Vb(!0));return}var c;if((c=this.Tt)==null?0:hG(c.K))return}else if(c= +z.V&&J,m&&!c){Fqb(this.HU);return}J||EB(z,"AUDIO")&&EB(z,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"),z=Ndb(z),this.SG?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.C("html5_report_fatal_drm_restricted_error_killswitch")||this.O4("drm.keyerror",2,void 0,"info."+z)):(this.SG=!0,this.Br(new Sl("qoe.restart",Object.assign({},{retrydrm:1},z))),Em(this),x5u(this)))}; +g.F.Fix=function(){if(!this.videoData.wb&&this.mediaElement&&!this.isBackground()){var z="0";this.mediaElement.WW()>0&&mI(this.mediaElement)>=5&&this.videoData.S&&this.videoData.S.K&&(this.DH(ik(this.playerState,1)),MKR(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),z="1");oNf(this);var J=this.videoData.S;z={restartmsg:z,mfmt:!eg(this.videoData),mdrm:!(!(J&&J.videoInfos&&J.videoInfos.length&&J.videoInfos[0].Nx)||this.Tt),mfmtinfo:!this.videoData.T,prerolls:this.du()?this.DQ.join(","): +"0"};if(this.Tt){J=this.Tt;if(J.T.size<=0){var m="ns;";J.B||(m+="nr;");J=m+="ql."+J.S.length}else J=Ndb(J.T.values().next().value),J=BQ(J);z.drmp=J}var e;Object.assign(z,((e=this.v1)==null?void 0:e.kQ())||{});var T;Object.assign(z,((T=this.mediaElement)==null?void 0:T.kQ())||{});this.Nd().Br("qoe.start15s",BQ(z));this.publish("loadsofttimeout")}}; +g.F.Vm=function(z){this.videoData.lengthSeconds!==z&&(this.videoData.lengthSeconds=z,ck(this))}; +g.F.C4=function(z,J){var m=this;z=z===void 0?!1:z;if(!this.kR)if(Up("att_s","player_att")||kd("att_s",void 0,"player_att"),this.C("use_rta_for_player"))(function(){var T,E,Z,c;return g.D(function(W){switch(W.K){case 1:if(!(T=z)){W.U2(2);break}return g.S(W,g.XKu(),3);case 3:T=!W.T;case 2:if(T)return W.return();g.Yu(W,4);E=PLu(m.Nd());if(!E)throw Error();Z={};return g.S(W,g.GQE((Z.cpn=m.videoData.clientPlaybackNonce,Z.encryptedVideoId=m.videoData.videoId||"",Z),3E4),6);case 6:c=W.T;if(m.kR)throw Error(); +if(!c.challenge)throw g.hr(Error("Not sending attestation ping; no attestation challenge string")),Error();m.kR=!0;var l=[c.challenge];c.error?l.push("r1c="+c.error):c.webResponse&&l.push("r1a="+c.webResponse);var w;((w=c.adblockReporting)==null?void 0:w.reportingStatus)!==void 0&&l.push("r6a="+c.adblockReporting.reportingStatus);var q;((q=c.adblockReporting)==null?void 0:q.broadSpectrumDetectionResult)!==void 0&&l.push("r6b="+c.adblockReporting.broadSpectrumDetectionResult);E(l.join("&"));kd("att_f", +void 0,"player_att");g.aq(W,0);break;case 4:g.Kq(W),kd("att_e",void 0,"player_att"),g.nq(W)}})})().then(function(){J==null||J()}); +else{var e=new g.CUu(this.videoData);if("c1a"in e.zE&&!g.MS.isInitialized()){kd("att_wb",void 0,"player_att");this.bO===2&&Math.random()<.01&&g.hr(Error("Botguard not available after 2 attempts"));if(z)return;if(this.bO<5){g.sD(this.jq);this.bO++;return}}(e=g.ajb(e))?(kd("att_f",void 0,"player_att"),VUb(this.Nd(),e),this.kR=!0):kd("att_e",void 0,"player_att")}}; +g.F.YV=function(z){z=z===void 0?!1:z;if(li(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.HR()||g.BH(this.videoData)))z=this.getCurrentTime();else if(g.Lr(this.videoData)&&this.Pd){z=this.Pd;var J=this.getCurrentTime();z=(z=khb(z,J*1E3))?(z.Ri()-z.nZ())/1E3:0}else z=this.Aw(z);return z}; +g.F.HV=function(){return g.Lr(this.videoData)?this.videoData.JX():this.JX()}; +g.F.Aw=function(z){return this.Lr.Aw(z===void 0?!1:z)}; +g.F.JX=function(){return this.Lr.JX()}; +g.F.Kr=function(){return this.Lr?this.Lr.Kr():0}; +g.F.getStreamTimeOffset=function(){return this.Lr?this.Lr.getStreamTimeOffset():0}; +g.F.Bz=function(){var z=0;this.yx.C("web_player_ss_media_time_offset")&&(z=this.getStreamTimeOffset()===0?this.Kr():this.getStreamTimeOffset());return z}; +g.F.setPlaybackRate=function(z){var J;this.playbackRate!==z&&qCu(this.PW,(J=this.videoData.S)==null?void 0:J.videoInfos)&&(this.playbackRate=z,Em(this));this.playbackRate=z;this.mediaElement&&this.mediaElement.setPlaybackRate(z)}; +g.F.getPlaybackRate=function(){return this.playbackRate}; +g.F.getPlaybackQuality=function(){var z="unknown";if(this.videoData.T&&(z=this.videoData.T.video.quality,z==="auto"&&this.mediaElement)){var J=this.CS();J&&J.videoHeight>0&&(z=uO(J.videoWidth,J.videoHeight))}return z}; +g.F.isHdr=function(){return!!(this.videoData.T&&this.videoData.T.video&&this.videoData.T.video.isHdr())}; +g.F.A4=function(){this.Nd().A4()}; +g.F.sendVideoStatsEngageEvent=function(z,J){var m=this.Nd();m.K?(m=SU(m.K,"engage"),m.fh=z,m.send(J)):J&&J()}; +g.F.gG=function(z){return this.Nd().gG(z)}; +g.F.isAtLiveHead=function(z,J){J=J===void 0?!1:J;return li(this.videoData)&&(this.ZW||J)?this.Lr.isAtLiveHead(z):!1}; +g.F.oB=function(){var z=this.Aw(),J=this.getCurrentTime(),m;(m=!li(this.videoData))||(m=this.Lr,m=!(m.K&&m.K.S));return m||this.HR()||isNaN(z)||isNaN(J)?0:Math.max(0,z-J)}; +g.F.I0=function(z){(this.ZW=z)||this.KL.stop();this.videoData.K&&(z?this.videoData.K.resume():z2b(this.videoData.K));if(this.v1){var J=this.videoData.C("html5_disable_preload_for_ssdai_with_preroll")&&this.C$()&&this.videoData.isLivePlayback;z&&!J?this.v1.resume():dP(this,!0)}g.R(this.playerState,2)||z?g.R(this.playerState,512)&&z&&this.DH(cr(this.playerState,512)):this.DH(ik(this.playerState,512));J=this.Nd();J.qoe&&(J=J.qoe,g.po(J,g.sC(J.provider),"stream",[z?"A":"I"]))}; +g.F.Pb=function(z){z={n:z.name,m:z.message};this.Nd().Br("player.exception",BQ(z))}; +g.F.mA=TE(28);g.F.Q2=TE(57);g.F.D_=function(z){this.Nd().D_(z)}; +g.F.Bw=function(z){this.Nd().Bw(z)}; +g.F.dU=function(z){this.Nd().dU(z)}; +g.F.E9=TE(34);g.F.IW=TE(40);g.F.F1=function(z){this.Nd().F1(z)}; +g.F.Yq=function(){this.ph("hidden",{},!0)}; +g.F.e3=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; +g.F.AQ=function(){return this.v1?this.v1.AQ():!0}; +g.F.setLoop=function(z){this.loop=z;this.mediaElement&&!g.SP(this.yx)&&this.mediaElement.setLoop(z)}; +g.F.aV=function(){return this.mediaElement&&!g.SP(this.yx)?this.mediaElement.aV():this.loop}; +g.F.mq=function(z){this.ph("timestamp",{o:z.toString()});this.Lr.mq(z)}; +g.F.Yr=function(z){this.hZ.tick(z)}; +g.F.Au=function(z){return this.hZ.Au(z)}; +g.F.b5=function(z){this.hZ.b5(z)}; +g.F.ph=function(z,J,m){m=m===void 0?!1:m;this.Nd().ph(z,J,m)}; +g.F.OM=function(z,J,m){m=m===void 0?!1:m;this.Nd().ph(z,J,m)}; +g.F.Br=function(z){this.Nd().Br(z.errorCode,BQ(z.details));z=z.errorCode;if(this.videoData.isLivePlayback&&(z==="qoe.longrebuffer"||z==="qoe.slowseek")||z==="qoe.restart"){z=this.v1?YYu(this.v1.videoTrack):{};var J,m;this.ph("lasoe",Object.assign(this.v1?YYu(this.v1.audioTrack):{},(J=this.J6)==null?void 0:(m=J.K)==null?void 0:m.e5()));var e,T;this.ph("lvsoe",Object.assign(z,(e=this.J6)==null?void 0:(T=e.T)==null?void 0:T.e5()))}}; +g.F.Qi=function(z,J,m){this.Nd().Qi(z,J,m)}; +g.F.ZN=function(z,J,m,e,T,E,Z,c){var W;if((W=this.videoData.K)!=null&&W.isLive){var l=J.playerType===2?J:z,w=z.videoData.videoId,q=J.videoData.videoId;if(w&&q){W=this.Nd();if(W.qoe){var d=W.qoe,I=z.cpn,O=J.cpn,G=l.videoData.Rs,n=d.provider.videoData.clientPlaybackNonce,C=d.provider.videoData.videoId,K=O!==n&&q!==C;n=I!==n&&w!==C;d.reportStats();d.adCpn&&d.adCpn!==I||(d.adCpn=n?I:"",d.B9=n?w:"",d.adFormat=n?G:void 0,YF(d,2,E?4:T?2:0,O,q,e),d.reportStats(),d.adCpn=K?O:"",d.B9=K?q:"",d.adFormat=K?G: +void 0,YF(d,2,E?5:T?3:1,I,w,m),d.reportStats())}m=z.cpn;if(W.S.has(m)){if(T=W.S.get(m),bL(T,!0).send(),Da(T),m!==W.provider.videoData.clientPlaybackNonce){fau(T);var f;(f=W.K)==null||CLf(f);W.S.delete(m)}}else W.U9=W.provider.videoData.clientPlaybackNonce,W.U9&&W.K&&(W.S.set(W.U9,W.K),bL(W.K).send(),Da(W.K));f=J.cpn;l=l.videoData;e-=this.Bz();if(W.S.has(f)){e=W.S.get(f);var x=e.S&&isNaN(e.Z)?fo(e):NaN;e=SBu(e,!1);isNaN(x)||(e.V=x);e.send()}else e=tU1(W,W.provider,l,e),W.S.set(f,e),D2q(e,new g.Ox(ik(new g.E3, +8),new g.E3)),YBf(e),(x=W.K)==null||Da(x);W.U9=f;this.C("html5_unify_csi_server_stitched_transition_logging")?b4q(this.hZ,z.cpn,J.cpn,this.videoData.clientPlaybackNonce,J.videoData,Z,void 0,c):(W=this.hZ,e=this.videoData.clientPlaybackNonce,x=J.videoData,z=(z.cpn===e?"video":"ad")+"_to_"+(J.cpn===e?"video":"ad"),e={},x.Y&&(e.cttAuthInfo={token:x.Y,videoId:x.videoId}),Z&&(e.startTime=Z),Hh(z,e),g.tR({targetVideoId:x.videoId,targetCpn:J.cpn,isSsdai:!0},z),W.yx.C("html5_enable_ssdai_transition_with_only_enter_cuerange")? +Z||lz(W,c,z):lz(W,c,z))}}else this.logger.K(360717806,"SSTEvent for nonSS")}; +g.F.ey=function(){var z=this.u8,J=z.ix;z.ix=[];return J}; +g.F.uH=function(z){this.videoData.Gb=!0;this.Br(new Sl("sabr.fallback",z));this.Vb(!0)}; +g.F.Ll=function(z,J){this.videoData.ZM=!0;if(J===void 0||J)this.Br(new Sl("qoe.restart",z)),this.Vb(!0);this.videoData.b8()&&this.C("html5_reload_caption_on_ssdai_fallback")&&this.u8.sM()}; +g.F.t5=function(z){this.ph("sdai",{aftimeout:z});this.Br(new Sl("ad.fetchtimeout",{timeout:z}))}; +g.F.oe=function(z,J){this.ph("timelineerror",z);z=new Sl("dai.timelineerror",z);J?this.O4("dai.timelineerror",1,"RETRYABLE_ERROR",BQ(z.details)):this.Br(z)}; +g.F.Wt=function(){return g.sC(this.Nd().provider)}; +g.F.getPlayerSize=function(){return this.zr.getPlayerSize()}; +g.F.XE=function(){return this.zr.XE()}; +g.F.uU=function(){return this.hZ}; +g.F.hx=function(){return this.u8.hx()}; +g.F.getVolume=function(){return this.u8.getVolume()}; +g.F.dD=function(){return this.u8.dD()}; +g.F.isMuted=function(){return this.u8.isMuted()}; +g.F.VR=function(){return this.u8.VR()}; +g.F.L4=function(){this.hh=!0}; +g.F.C=function(z){return this.yx.C(z)}; +g.F.Nk=function(z,J,m,e,T){this.ph("xvt",{m:z,g:J?1:0,tt:m?1:0,np:e?1:0,c:T})}; +g.F.YS=function(){var z;(z=this.v1)==null||z.resume()}; +g.F.C$=function(){return g.s1(this.DQ,"ad")}; +g.F.Mw=function(){var z=this.getCurrentTime(),J=z-this.Kr();var m=this.mediaElement?qU(this.mediaElement.G2()):0;m=Math.floor(Math.max(m-J,0))+100;var e;if(!this.C("html5_ssdai_disable_seek_to_skip")&&((e=this.v1)==null?0:e.Pl(J,this.Aw())))return this.ph("sdai",{skipad:1,ct:J.toFixed(3),adj:0}),!0;var T;return((T=this.v1)==null?0:T.Mw(J,m))?(this.ph("sdai",{skipad:1,ct:J.toFixed(3),adj:m.toFixed(3)}),Fr(this.videoData)&&this.v1.seek(J+m,{seekSource:89,i8:"videoplayer_skipServerStitchedAd"}),j2q(this.Lr, +z),!0):!1}; +g.F.AZ=function(){return this.yx.AZ()}; +g.F.Qo=function(){if(this.C("html5_generate_content_po_token"))return this.videoData.e6||"";this.u8.L0();return this.yx.vA||""}; +g.F.Iz=function(){if(this.videoData.videoId)return this.videoData.ma}; +g.F.uF=function(){return this.videoData.videoId}; +g.F.Na=function(){return this.u8.Ww}; +g.F.D0=function(){return this.uW}; +g.F.X9=function(){return this.u8.X9()}; +g.F.Dg=function(z,J){this.Lr.Dg(z,J)}; +g.F.HZ=function(){this.Lr.HZ()}; +g.F.aZ=function(z,J){var m=this.C("html5_generate_content_po_token")?this.videoData:void 0;this.u8.aZ(z,J,m)}; +g.F.Zp=function(z,J){var m;(m=this.v1)==null||m.Zp(z,J)}; +g.F.kD=function(){var z=this.Ki();return!!z&&z.kD()}; +g.F.wW=function(){return this.Pd}; +g.F.MH=function(z,J){this.Nd().MH(z,J)}; +g.F.Z8=function(){return this.Nd().Z8()}; +g.F.hf=function(){return this.videoData.w2}; +g.F.As=function(){return this.u8.As()}; +g.F.Lf=function(){return this.u8.Lf(this)}; +g.F.zU=function(){return this.oJ}; +g.F.xY=function(z){var J;(J=this.v1)==null||J.xY(z)}; +g.F.Hf=function(){var z;(z=this.v1)==null||z.Hf()};g.p(u6b,rd);g.p(VKu,rd);g.F=VKu.prototype;g.F.seekToChapterWithAnimation=function(z){var J=this;if(g.pe(this.api)&&!(z<0)){var m=this.api.getVideoData(),e=m.oW;if(e&&z=0)return;J=~J;g.Fd(this.items,J,0,z);cF(this.menuItems.element,z.element,J)}z.subscribe("size-change",this.Kt,this);this.menuItems.publish("size-change")}; +g.F.RW=function(z){z.unsubscribe("size-change",this.Kt,this);this.mF()||(g.zC(this.items,z),this.menuItems.element.removeChild(z.element),this.menuItems.publish("size-change"))}; +g.F.Kt=function(){this.menuItems.publish("size-change")}; +g.F.focus=function(){for(var z=0,J=0;J1&&g.$W(this)}; +g.F.xB=function(){O_u(this);this.oT&&(dRR(this),g.N9(this.element,this.size))}; +g.F.Zf=function(){var z=this.K.pop();IWs(this,z,this.K[this.K.length-1],!0)}; +g.F.RS=function(z){if(!z.defaultPrevented)switch(z.keyCode){case 27:this.JZ();z.preventDefault();break;case 37:this.K.length>1&&this.Zf();z.preventDefault();break;case 39:z.preventDefault()}}; +g.F.focus=function(){this.K.length&&this.K[this.K.length-1].focus()}; +g.F.oy=function(){g.PL.prototype.oy.call(this);this.Y&&this.Y.dispose();this.V&&this.V.dispose()};g.p(gP,g.Db);gP.prototype.open=function(z,J){this.initialize(z.items)&&this.sD(J,!!J)}; +gP.prototype.initialize=function(z){g.fb(this.Q8);if(z===void 0||z.length===0)return!1;var J=z.length;z=g.y(z);for(var m=z.next();!m.done;m=z.next())this.AX(m.value,J--);return!0}; +gP.prototype.AX=function(z,J){z.menuNavigationItemRenderer?Nl1(this,z.menuNavigationItemRenderer,J):z.menuServiceItemRenderer&&GN1(this,z.menuServiceItemRenderer,J)};g.p(xW,Kb);g.F=xW.prototype;g.F.vL=function(z){z.target!==this.dismissButton.element&&z.target!==this.overflowButton.element&&(this.S0(),this.onClickCommand&&this.G.B1("innertubeCommand",this.onClickCommand))}; +g.F.tF=function(){this.enabled=!1;this.B.hide()}; +g.F.lQ=function(){return!!this.K&&this.enabled}; +g.F.onVideoDataChange=function(z,J){this.w$(J);if(this.K){this.UZ();a:if(!this.isCounterfactual){var m,e,T;this.banner.update({title:(m=this.K)==null?void 0:m.title,subtitle:(e=this.K)==null?void 0:e.subtitle,metadata:(T=this.K)==null?void 0:T.metadataText});var E;this.onClickCommand=g.P((E=this.K)==null?void 0:E.onTap,Vg);var Z;if(z=g.P((Z=this.K)==null?void 0:Z.onOverflow,Vg))this.V=g.P(z,xi$);var c;if((c=this.K)==null?0:c.thumbnailImage){var W,l;Z=((W=this.K)==null?void 0:(l=W.thumbnailImage)== +null?void 0:l.sources)||[];if(Z.length===0)break a;this.thumbnailImage.update({url:Z[0].url})}else{var w;if((w=this.K)==null?0:w.thumbnailIconName){var q;this.thumbnailIcon.update({icon:(q=this.K)==null?void 0:q.thumbnailIconName})}}var d;this.shouldShowOverflowButton=!((d=this.K)==null||!d.shouldShowOverflowButton);var I;this.shouldHideDismissButton=!((I=this.K)==null||!I.shouldHideDismissButton)}var O;this.banner.element.setAttribute("aria-label",((O=this.K)==null?void 0:O.a11yLabel)||"");var G; +this.qD=(G=this.K)==null?void 0:G.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;nI4(this)}}; +g.F.Li4=function(){this.isVisible=!0;nI4(this)}; +g.F.Xry=function(){this.isVisible=!1;nI4(this)}; +g.F.CG=function(){Kb.prototype.CG.call(this);this.T&&this.G.logVisibility(this.banner.element,this.isVisible)}; +g.F.S0=function(){Kb.prototype.S0.call(this,!1);this.T&&this.G.logClick(this.banner.element)}; +g.F.fp=function(z){this.Y||(this.Y=new gP(this.G),g.u(this,this.Y));var J,m;if((J=this.V)==null?0:(m=J.menu)==null?0:m.menuRenderer)this.Y.open(this.V.menu.menuRenderer,z.target),z.preventDefault()}; +g.F.w$=function(){}; +g.F.UZ=function(){}; +g.F.oy=function(){this.G.c7("suggested_action_view_model");Kb.prototype.oy.call(this)};g.p(MD,xW); +MD.prototype.w$=function(z){var J,m,e;this.productUpsellSuggestedActionViewModel=g.P((J=z.getWatchNextResponse())==null?void 0:(m=J.playerOverlays)==null?void 0:(e=m.playerOverlayRenderer)==null?void 0:e.suggestedActionViewModel,stF);var T;if((T=this.productUpsellSuggestedActionViewModel)==null?0:T.content){var E;this.K=g.P((E=this.productUpsellSuggestedActionViewModel)==null?void 0:E.content,b0F)}var Z,c;if(this.T=!!((Z=this.productUpsellSuggestedActionViewModel)==null?0:(c=Z.loggingDirectives)==null? +0:c.trackingParams)){var W,l;this.G.setTrackingParams(this.banner.element,((W=this.productUpsellSuggestedActionViewModel)==null?void 0:(l=W.loggingDirectives)==null?void 0:l.trackingParams)||null)}var w;this.isCounterfactual=!((w=this.productUpsellSuggestedActionViewModel)==null||!w.isCounterfactualServing)}; +MD.prototype.UZ=function(){var z=[],J,m=g.y(((J=this.productUpsellSuggestedActionViewModel)==null?void 0:J.ranges)||[]);for(J=m.next();!J.done;J=m.next()){var e=J.value;e&&(J=Number(e.startTimeMilliseconds),e=Number(e.endTimeMilliseconds),isNaN(J)||isNaN(e)||z.push(new g.Ec(J,e,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.G.U4(z)};g.p(Ya4,rd);g.p(Ab,rd);Ab.prototype.onVideoDataChange=function(z,J){var m=this;if(!PH(J)&&(z==="newdata"&&aWu(this),this.T&&z==="dataloaded")){var e;pQ(Zf(this.api.W(),(e=this.api.getVideoData())==null?void 0:g.ui(e)),function(T){var E=b_q(T);E&&!m.U&&(E=Kx4(m,m.K||E))&&m.api.setAudioTrack(E,!0);m.S&&(m.S=!1,gIu(m,T))})}}; +Ab.prototype.fB=function(){var z=this;if(g.SP(this.api.W())){var J,m=g.El(this.api.W(),(J=this.api.getVideoData())==null?void 0:g.ui(J));return pQ(wH(m),function(e){var T=h3();u8(T,e);return z.api.fB(T)})}return wH(this.api.fB())};g.p(g.jG,g.k2);g.F=g.jG.prototype;g.F.open=function(){g.bJ(this.Yu,this.T)}; +g.F.iz=function(z){MdR(this);var J=this.options[z];J&&(J.element.setAttribute("aria-checked","true"),this.ws(this.A7(z)),this.S=z)}; +g.F.nV=function(z){g.fb(this.T);for(var J={},m=!1,e=0;e=0?this.K.playbackRate:1}catch(z){return 1}}; +g.F.setPlaybackRate=function(z){this.getPlaybackRate()!==z&&(this.K.playbackRate=z);return z}; +g.F.aV=function(){return this.K.loop}; +g.F.setLoop=function(z){this.K.loop=z}; +g.F.canPlayType=function(z,J){return this.K.canPlayType(z,J)}; +g.F.isPaused=function(){return this.K.paused}; +g.F.isSeeking=function(){return this.K.seeking}; +g.F.isEnded=function(){return this.K.ended}; +g.F.x7=function(){return this.K.muted}; +g.F.Wf=function(z){oB();this.K.muted=z}; +g.F.Yk=function(){return this.K.played||i1([],[])}; +g.F.G2=function(){try{var z=this.K.buffered}catch(J){}return z||i1([],[])}; +g.F.b0=function(){return this.K.seekable||i1([],[])}; +g.F.uj=function(){var z=this.K;return z.getStartDate?z.getStartDate():null}; +g.F.getCurrentTime=function(){return this.K.currentTime}; +g.F.setCurrentTime=function(z){this.K.currentTime=z}; +g.F.getDuration=function(){return this.K.duration}; +g.F.load=function(){var z=this.K.playbackRate;try{this.K.load()}catch(J){}this.K.playbackRate=z}; +g.F.pause=function(){this.K.pause()}; +g.F.play=function(){var z=this.K.play();if(!z||!z.then)return null;z.then(void 0,function(){}); +return z}; +g.F.WW=function(){return this.K.readyState}; +g.F.S5=function(){return this.K.networkState}; +g.F.KF=function(){return this.K.error?this.K.error.code:null}; +g.F.Cc=function(){return this.K.error?this.K.error.message:""}; +g.F.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.K instanceof window.HTMLVideoElement&&this.K.getVideoPlaybackQuality)return this.K.getVideoPlaybackQuality();if(this.K){var z=this.K,J=z.webkitDroppedFrameCount;if(z=z.webkitDecodedFrameCount)return{droppedVideoFrames:J||0,totalVideoFrames:z}}return{}}; +g.F.Q$=function(){return!!this.K.webkitCurrentPlaybackTargetIsWireless}; +g.F.dk=function(){return!!this.K.webkitShowPlaybackTargetPicker()}; +g.F.togglePictureInPicture=function(){var z=this.K,J=window.document;window.document.pictureInPictureEnabled?this.K!==J.pictureInPictureElement?z.requestPictureInPicture():J.exitPictureInPicture():A7()&&z.webkitSetPresentationMode(z.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; +g.F.Qu=function(){var z=this.K;return new g.Nr(z.offsetLeft,z.offsetTop)}; +g.F.getSize=function(){return g.G6(this.K)}; +g.F.setSize=function(z){g.N9(this.K,z)}; +g.F.getVolume=function(){return this.K.volume}; +g.F.setVolume=function(z){oB();this.K.volume=z}; +g.F.Om=function(z){this.Z[z]||(this.K.addEventListener(z,this.listener),this.Z[z]=this.listener)}; +g.F.setAttribute=function(z,J){this.K.setAttribute(z,J)}; +g.F.removeAttribute=function(z){this.K.removeAttribute(z)}; +g.F.hasAttribute=function(z){return this.K.hasAttribute(z)}; +g.F.u4=TE(67);g.F.Ns=TE(69);g.F.FA=TE(71);g.F.vJ=TE(73);g.F.J1=function(){return Ys(this.K)}; +g.F.dO=function(z){g.FE(this.K,z)}; +g.F.tS=function(z){return g.cM(this.K,z)}; +g.F.iN=function(){return g.lV(document.body,this.K)}; +g.F.audioTracks=function(){var z=this.K;if("audioTracks"in z)return z.audioTracks}; +g.F.oy=function(){for(var z=g.y(Object.keys(this.Z)),J=z.next();!J.done;J=z.next())J=J.value,this.K.removeEventListener(J,this.Z[J]);zX.prototype.oy.call(this)}; +g.F.Ck=function(z){this.K.disableRemotePlayback=z};g.p(sm,g.U);g.p(zp,g.U);zp.prototype.show=function(){g.U.prototype.show.call(this);this.MD();this.Vx.C("html5_enable_moving_s4n_window")&&g.SP(this.Vx.W())&&this.X()}; +zp.prototype.hide=function(){g.U.prototype.hide.call(this);this.delay.stop();this.U.stop()}; +zp.prototype.MD=function(){var z=(0,g.b5)(),J=RVb(this.Vx);rP(this.K,J.bandwidth_samples);rP(this.V,J.network_activity_samples);rP(this.S,J.live_latency_samples);rP(this.T,J.buffer_health_samples);var m={};J=g.y(Object.entries(J));for(var e=J.next();!e.done;e=J.next()){var T=g.y(e.value);e=T.next().value;T=T.next().value;this.B[e]!==T&&(m[e]=" "+String(T));this.B[e]=T}this.update(m);z=(0,g.b5)()-z>25?5E3:500;this.delay.start(z)}; +zp.prototype.X=function(){this.Y?(this.position+=1,this.position>15&&(this.Y=!1)):(--this.position,this.position<=0&&(this.Y=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.U.start(2E4)};g.p(Q_s,rd);g.p(J$,g.h);J$.prototype.K=function(){var z=(0,g.b5)()-this.startTime;z=zthis.U[z])&&(this.K=z,Wnz(this))}; +g.F.onCueRangeExit=function(z){var J=ctq(this,z);J&&this.K===z&&this.api.B1("innertubeCommand",J);this.clearTimeout();this.K=void 0}; +g.F.onTimeout=function(z){this.K!==void 0&&(z==null?void 0:z.cueRangeId)===this.K&&(z=ctq(this,this.K))&&this.api.B1("innertubeCommand",z)}; +g.F.G1=function(z){this.T=z}; +g.F.IZ=function(){Wnz(this);this.T=void 0}; +g.F.setTimeout=function(z){var J=this,m=Number(z==null?void 0:z.maxVisibleDurationMilliseconds);m&&(this.clearTimeout(),this.Z=setTimeout(function(){J.onTimeout(z)},m))}; +g.F.clearTimeout=function(){this.Z&&clearTimeout(this.Z);this.Z=void 0;this.V=!1}; +g.F.oy=function(){this.timelyActions=this.T=this.K=this.videoId=void 0;this.U={};this.Yy();this.clearTimeout();rd.prototype.oy.call(this)};g.p(qVq,rd);var NI={},C$z=(NI[1]="pot_ss",NI[2]="pot_sf",NI[3]="pot_se",NI[4]="pot_xs",NI[5]="pot_xf",NI[6]="pot_xe",NI),a9u=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.p(ZT,rd);ZT.prototype.oy=function(){this.Y&&(g.nH(this.Y),this.Y=void 0);rd.prototype.oy.call(this)}; +ZT.prototype.L0=function(){(this.K?!this.K.isReady():this.T)&&iz(this)}; +ZT.prototype.t8=function(z,J,m){var e=this;if(I9u(z)){var T=m||"",E;if((E=this.K)==null?0:E.isReady())J=c_(this,T),O4q(z,J);else{var Z=new g.CS;J.push(Z.promise);this.U.promise.then(function(){var c=c_(e,T);O4q(z,c);Z.resolve()})}}}; +ZT.prototype.wS=function(z){var J=this;if(this.K||this.T)z.e6=c_(this,z.videoId),this.K&&!this.K.isReady()&&(this.S=new r7,this.U.promise.then(function(){J.hZ.Au("pot_if");z.e6=c_(J,z.videoId)}))};g.p(BMq,rd);g.p(W_,g.h);W_.prototype.K=function(){for(var z=g.y(g.gu.apply(0,arguments)),J=z.next();!J.done;J=z.next())(J=J.value)&&this.features.push(J)}; +W_.prototype.oy=function(){for(var z=this.features.length-1;z>=0;z--)this.features[z].dispose();this.features.length=0;g.h.prototype.oy.call(this)};SVs.prototype.reset=function(){this.K=this.T=NaN};g.F=f9u.prototype;g.F.reset=function(){hR(this.timerName)}; +g.F.tick=function(z,J){Ph(z,J,this.timerName)}; +g.F.Au=function(z){return RE(z,this.timerName)}; +g.F.b5=function(z){S2(z,void 0,this.timerName)}; +g.F.infoGel=function(z){g.tR(z,this.timerName)};g.p(g64,g.wF);g.F=g64.prototype;g.F.wl=function(z){return this.loop||!!z||this.index+1=0}; +g.F.setShuffle=function(z){this.shuffle=z;z=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var J=0;J0)||$N(this,1,!0)}; +g.F.tE=function(){this.Y=!0;this.K.hX(this.Z);this.Z=this.K.L(document,"mouseup",this.Kp)}; +g.F.Kp=function(){this.Y=!1;$N(this,8,!1);this.K.hX(this.Z);this.Z=this.K.L(this.target,"mousedown",this.tE)}; +g.F.oK=function(z){if(z=(z=z.changedTouches)&&z[0])this.Tf=z.identifier,this.K.hX(this.X),this.X=this.K.L(this.target,"touchend",this.TK,void 0,!0),$N(this,1024,!0)}; +g.F.TK=function(z){if(z=z.changedTouches)for(var J=0;J1280||E>720)if(T=m.NA("maxresdefault.jpg"))break;if(e>640||E>480)if(T=m.NA("maxresdefault.jpg"))break; +if(e>320||E>180)if(T=m.NA("sddefault.jpg")||m.NA("hqdefault.jpg")||m.NA("mqdefault.jpg"))break;if(T=m.NA("default.jpg"))break}g.rc(J)&&(J=new Image,J.addEventListener("load",function(){sTE()}),J.src=T?T:"",this.api.uU().tick("ftr")); +this.U.style.backgroundImage=T?"url("+T+")":""};g.p(g.A$,g.U);g.A$.prototype.resize=function(){}; +g.A$.prototype.T=function(z){var J=this;this.S=!1;Dju(this);var m=z.rM,e=this.api.W();m!=="GENERIC_WITHOUT_LINK"||e.Y?m==="TOO_MANY_REQUESTS"?(e=this.api.getVideoData(),this.ws(h$(this,"TOO_MANY_REQUESTS_WITH_LINK",e.cX(),void 0,void 0,void 0,!1))):m!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||e.Y?this.api.W().C("html5_enable_bandaid_error_screen")&&m==="HTML5_SPS_UMP_STATUS_REJECTED"&&!e.Y?(e=e.hostLanguage,z="//support.google.com/youtube?p=videoError",e&&(z=g.v1(z,{hl:e})),this.ws(h$(this,"HTML5_SPS_UMP_STATUS_REJECTED", +z))):this.api.W().C("enable_adb_handling_in_sabr")&&m==="BROWSER_OR_EXTENSION_ERROR"&&!e.Y?(e=e.hostLanguage,z="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",e&&(z=g.v1(z,{hl:e})),this.ws(h$(this,"BROWSER_OR_EXTENSION_ERROR",z))):this.ws(g.oD(z.errorMessage)):this.ws(h$(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(z=e.hostLanguage,m="//support.google.com/youtube/?p=player_error1",z&&(m=g.v1(m, +{hl:z})),this.ws(h$(this,"GENERIC_WITH_LINK_AND_CPN",m,!0)),e.l8&&!e.U&&f2R(this,function(E){if(g.i6(E,J.api,!k5(J.api.W()))){E={as3:!1,html5:!0,player:!0,cpn:J.api.getVideoData().clientPlaybackNonce};var Z=J.api;Z.xr("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:E});Z.isFullscreen()&&Z.toggleFullscreen()}})); +if(this.S){var T=this.P1("ytp-error-link");T&&(this.api.createClientVe(T,this,216104),this.api.logVisibility(T,!0),f2R(this,function(){J.api.logClick(T)}))}}; +var Sob=/([^<>]+)<\/a>/;g.p(bXq,g.U);g.F=bXq.prototype;g.F.onClick=function(z){this.innertubeCommand?(this.G.B1("innertubeCommand",this.innertubeCommand),z.preventDefault()):g.i6(z,this.G,!0);this.G.logClick(this.element)}; +g.F.onVideoDataChange=function(z,J){g34(this,J);this.B7&&xjR(this,this.B7)}; +g.F.PS=function(z){var J=this.G.getVideoData();this.videoId!==J.videoId&&g34(this,J);this.K&&xjR(this,z.state);this.B7=z.state}; +g.F.sD=function(){this.fade.show();this.G.publish("paidcontentoverlayvisibilitychange",!0);this.G.logVisibility(this.element,!0)}; +g.F.JZ=function(){this.fade.hide();this.G.publish("paidcontentoverlayvisibilitychange",!1);this.G.logVisibility(this.element,!1)};g.p(uz,g.U);uz.prototype.hide=function(){this.K.stop();this.message.style.display="none";g.U.prototype.hide.call(this)}; +uz.prototype.onStateChange=function(z){this.f1(z.state)}; +uz.prototype.f1=function(z){(g.R(z,128)||this.api.D0()?0:g.R(z,16)||g.R(z,1))?this.K.start():this.hide()}; +uz.prototype.T=function(){this.message.style.display="block"};g.p(Vy,g.PL);Vy.prototype.onMutedAutoplayChange=function(z){this.S&&(z?(MEz(this),this.sD()):(this.K&&this.logClick(),this.JZ()))}; +Vy.prototype.bz=function(z){this.api.isMutedByMutedAutoplay()&&g.yK(z,2)&&this.JZ()}; +Vy.prototype.onClick=function(){this.api.unMute();this.logClick()}; +Vy.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.p(g.P_,g.jl);g.F=g.P_.prototype;g.F.init=function(){var z=this.api,J=z.getPlayerStateObject();this.df=z.getPlayerSize();this.DH(J);this.b7();this.yQ();this.api.publish("basechromeinitialized",this);this.uD()&&this.api.publish("standardControlsInitialized")}; +g.F.onVideoDataChange=function(z,J){var m=this.AS!==J.videoId;if(m||z==="newdata"){z=this.api;z.isFullscreen()||(this.df=z.getPlayerSize());var e;((e=this.api.getVideoData(1))==null?0:g.Lr(e))&&this.gm()}m&&(this.AS=J.videoId,m=this.wG,m.wb=3E3,$N(m,512,!0),this.b7());this.api.C("web_render_jump_buttons")&&J.showSeekingControls&&(this.MX=572)}; +g.F.Tsh=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; +g.F.dR=function(){var z=this.api.Mh()&&this.api.YK(),J=this.api.SQ();return this.Y9||z||this.Kf||J}; +g.F.gm=function(){var z=!this.dR();g.qt(this.api.getRootNode(),"ytp-menu-shown",!z);var J;((J=this.api.getVideoData(1))==null?0:g.Lr(J))&&g.qt(this.api.getRootNode(),"ytp-hide-controls",!z)}; +g.F.Uc=function(z){try{if(!g.lV(this.api.getRootNode(),z))return!1}catch(J){return!1}for(;z&&!ZPR(z);)z=z===this.api.getRootNode()?null:z.parentElement||null;return!!z}; +g.F.cC=function(z){var J=this.api.getRootNode();g.qt(J,"ytp-autohide",z);g.qt(J,"ytp-autohide-active",!0);this.w1.start(z?250:100);z&&(this.l9=!1,g.lI(J,"ytp-touch-mode"));this.Q0=!z;this.api.M8(!z)}; +g.F.C2=function(){var z=this.api.getRootNode();g.qt(z,"ytp-autohide-active",!1)}; +g.F.xp2=function(){this.Y5=!0}; +g.F.wkh=function(z){if(this.api.W().C("player_doubletap_to_seek")||this.api.W().X)this.Y5=!1,this.Ql&&this.hX(this.Ql),this.fu===0&&H_(this,z)?(this.Ty(),this.qz.start(),this.Ql=this.L(this.api.zf(),"touchmove",this.xp2,void 0,!0)):this.qz.stop();hwz(this)&&H_(this,z)&&!this.api.W().X&&o3E(this);var J=this.i_.yy();if(!g.fi(this.api.W())&&aJ&&uYj(this,z))J&&z.preventDefault();else if(this.l9=!0,g.FE(this.api.getRootNode(),"ytp-touch-mode"),this.wG.jK(),this.api.W().C("player_doubletap_to_seek")||this.api.W().X)if(J= +this.api.getPlayerStateObject(),!(!this.api.Bm()||g.R(J,2)&&g.SM(this.api)||g.R(J,64))){J=Date.now()-this.a5;this.fu+=1;if(J<=350){this.IG=!0;J=this.api.getPlayerSize().width/3;var m=this.api.getRootNode().getBoundingClientRect(),e=z.targetTouches[0].clientX-m.left;m=z.targetTouches[0].clientY-m.top;var T=(this.fu-1)*10;e>0&&eJ*2&&e=650;this.wG.resize();g.qt(J,"ytp-fullscreen",this.api.isFullscreen());g.qt(J,"ytp-large-width-mode",m);g.qt(J,"ytp-small-mode",this.iU());g.qt(J,"ytp-tiny-mode",this.fG());g.qt(J,"ytp-big-mode",this.PK());this.cA&&this.cA.resize(z)}; +g.F.bz=function(z){this.DH(z.state);this.b7()}; +g.F.nx=TE(5);g.F.m4=function(){var z=!!this.AS&&!this.api.gL()&&!this.M4,J=this.api.getPresentingPlayerType()===2,m=this.api.W();if(J){if(asc&&m.C("enable_visit_advertiser_support_on_ipad_mweb"))return!1;J=B_(this.api.UC());z&&(J&&J.player?z=(z=J.player.getVideoData(2))?z.isListed&&!g.K1(J.player.W()):!1:(IU("showInfoBarDuringAd: this is null"),z=!1));return z}return z&&(m.jY||this.api.isFullscreen()||m.US)}; +g.F.b7=function(){var z=this.m4();this.Ei!==z&&(this.Ei=z,g.qt(this.api.getRootNode(),"ytp-hide-info-bar",!z))}; +g.F.DH=function(z){var J=z.isCued()||this.api.du()&&this.api.getPresentingPlayerType()!==3;J!==this.isCued&&(this.isCued=J,this.m6&&this.hX(this.m6),this.m6=this.L(this.api.zf(),"touchstart",this.wkh,void 0,J));var m=this.wG,e=z.isPlaying()&&!g.R(z,32)||this.api.hS();$N(m,128,!e);m=this.wG;e=this.api.getPresentingPlayerType()===3;$N(m,256,e);m=this.api.getRootNode();g.R(z,2)?e=[VE.ENDED]:(e=[],g.R(z,8)?e.push(VE.PLAYING):g.R(z,4)&&e.push(VE.PAUSED),g.R(z,1)&&!g.R(z,32)&&e.push(VE.BUFFERING),g.R(z, +32)&&e.push(VE.SEEKING),g.R(z,64)&&e.push(VE.UNSTARTED));g.we(this.Cw,e)||(g.wL(m,this.Cw),this.Cw=e,g.Wd(m,e));e=this.api.W();var T=g.R(z,2);a:{var E=this.api.W();var Z=E.controlsType;switch(Z){case "2":case "0":E=!1;break a}E=Z==="3"&&!g.R(z,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:Zqv(B_(this.api.UC())))||this.api.SQ()||g.fi(E)&&this.api.getPresentingPlayerType()===2?!1:!0}g.qt(m,"ytp-hide-controls",!E);g.qt(m,"ytp-native-controls",e.controlsType==="3"&&!J&&!T&&!this.Kf);g.R(z, +128)&&!g.fi(e)?(this.cA||(this.cA=new g.A$(this.api),g.u(this,this.cA),g.M0(this.api,this.cA.element,4)),this.cA.T(z.Io),this.cA.show()):this.cA&&(this.cA.dispose(),this.cA=null)}; +g.F.GR=function(){return this.api.Mh()&&this.api.YK()?(this.api.qe(!1,!1),!0):this.api.gL()?(g.fe(this.api,!0),!0):!1}; +g.F.onMutedAutoplayChange=function(z){this.Kf=z;this.gm()}; +g.F.PK=function(){return!1}; +g.F.iU=function(){return!this.PK()&&(this.api.getPlayerSize().width=0&&J.left>=0&&J.bottom>J.top&&J.right>J.left?J:null;J=this.size;z=z.clone();J=J.clone();e&&(Z=J,T=5,(T&65)==65&&(z.x=e.right)&&(T&=-2),(T&132)==132&&(z.y=e.bottom)&&(T&=-5),z.xe.right&&(Z.width=Math.min(e.right-z.x,E+Z.width-e.left),Z.width=Math.max(Z.width,0))),z.x+Z.width>e.right&&T&1&&(z.x=Math.max(e.right-Z.width,e.left)),z.ye.bottom&&(Z.height=Math.min(e.bottom-z.y,E+Z.height-e.top),Z.height=Math.max(Z.height,0))),z.y+Z.height>e.bottom&&T&4&&(z.y=Math.max(e.bottom-Z.height,e.top)));e=new g.T6(0,0,0,0);e.left=z.x;e.top=z.y;e.width= +J.width;e.height=J.height;g.IS(this.element,new g.Nr(e.left,e.top));g.gs(this.U);this.U.L(t3(this),"contextmenu",this.EQz);this.U.L(this.G,"fullscreentoggled",this.onFullscreenToggled);this.U.L(this.G,"pageTransition",this.IS)}; +g.F.EQz=function(z){if(!z.defaultPrevented){var J=fJ(z);g.lV(this.element,J)||this.JZ();this.G.W().disableNativeContextMenu&&z.preventDefault()}}; +g.F.onFullscreenToggled=function(){this.JZ();Waz(this)}; +g.F.IS=function(){this.JZ()};g.p(zN,g.U);zN.prototype.onClick=function(){var z=this,J,m,e,T;return g.D(function(E){if(E.K==1)return J=z.api.W(),m=z.api.getVideoData(),e=z.api.getPlaylistId(),T=J.getVideoUrl(m.videoId,e,void 0,!0),g.S(E,q_u(z,T),2);E.T&&wS4(z);z.api.logClick(z.element);g.nq(E)})}; +zN.prototype.MD=function(){this.updateValue("icon",{D:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{D:"path",xQ:!0,J:"ytp-svg-fill",j:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3 c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.updateValue("title-attr","Copy link");this.visible=lqq(this);g.qt(this.element,"ytp-copylink-button-visible",this.visible); +this.T4(this.visible);this.tooltip.CF();this.api.logVisibility(this.element,this.visible&&this.Z)}; +zN.prototype.bb=function(z){g.U.prototype.bb.call(this,z);this.api.logVisibility(this.element,this.visible&&z)}; +zN.prototype.oy=function(){g.U.prototype.oy.call(this);g.lI(this.element,"ytp-copylink-button-visible")};g.p(JO,g.U);JO.prototype.show=function(){g.U.prototype.show.call(this);g.sD(this.T)}; +JO.prototype.hide=function(){this.U.stop();this.S=0;this.P1("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.lI(this.element,"ytp-chapter-seek");g.lI(this.element,"ytp-time-seeking");g.U.prototype.hide.call(this)}; +JO.prototype.ze=function(z,J,m,e){this.S=z===this.V?this.S+e:e;this.V=z;var T=z===-1?this.B:this.X;T&&this.G.logClick(T);this.Y?this.T.stop():g.z5(this.T);this.U.start();this.element.setAttribute("data-side",z===-1?"back":"forward");var E=3*this.G.zf().getPlayerSize().height;T=this.G.zf().getPlayerSize();T=T.width/3-3*T.height;this.K.style.width=E+"px";this.K.style.height=E+"px";z===1?(this.K.style.left="",this.K.style.right=T+"px"):z===-1&&(this.K.style.right="",this.K.style.left=T+"px");var Z=E* +2.5;E=Z/2;var c=this.P1("ytp-doubletap-ripple");c.style.width=Z+"px";c.style.height=Z+"px";z===1?(z=this.G.zf().getPlayerSize().width-J+Math.abs(T),c.style.left="",c.style.right=z-E+"px"):z===-1&&(z=Math.abs(T)+J,c.style.right="",c.style.left=z-E+"px");c.style.top="calc((33% + "+Math.round(m)+"px) - "+E+"px)";if(m=this.P1("ytp-doubletap-ripple"))m.classList.remove("ytp-doubletap-ripple"),m.classList.add("ytp-doubletap-ripple");daq(this,this.Y?this.S:e)};g.p(IqR,Kb);g.F=IqR.prototype;g.F.GK=function(z){this.Gf||(this.Gf=new gP(this.G),g.u(this,this.Gf));var J,m;if((J=this.tZ)==null?0:(m=J.menu)==null?0:m.menuRenderer)this.Gf.open(this.tZ.menu.menuRenderer,z.target),z.preventDefault()}; +g.F.lQ=function(){return!!this.K}; +g.F.jU=function(){return!!this.K}; +g.F.vL=function(z){z.target===this.overflowButton.element?z.preventDefault():(this.l8&&this.G.B1("innertubeCommand",this.l8),this.S0(!1))}; +g.F.tF=function(){this.S0(!0);var z,J;((z=this.K)==null?0:(J=z.bannerData)==null?0:J.dismissedStatusKey)&&this.ub.push(this.K.bannerData.dismissedStatusKey);this.cL()}; +g.F.kM=function(){this.cL();ZW(this)}; +g.F.S9f=function(z){var J=this,m;if(z.id!==((m=this.K)==null?void 0:m.identifier)){this.cL();m=g.y(this.wb);for(var e=m.next();!e.done;e=m.next()){var T=e.value,E=void 0,Z=void 0;if((e=(E=T)==null?void 0:(Z=E.bannerData)==null?void 0:Z.itemData)&&T.identifier===z.id){Z=E=void 0;var c=((E=T)==null?void 0:(Z=E.bannerData)==null?void 0:Z.dismissedStatusKey)||"";if(this.ub.includes(c))break;this.K=T;this.banner.element.setAttribute("aria-label",e.accessibilityLabel||"");e.trackingParams&&(this.U=!0,this.G.setTrackingParams(this.badge.element, +e.trackingParams));this.B.show();a2(this);this.x3.T4(!e.stayInApp);B44(this);pSb(this);Ea(this);this.l8=g.P(e.onTapCommand,Vg);if(T=g.P(e.menuOnTap,Vg))this.tZ=g.P(T,xi$);T=void 0;this.banner.update({thumbnail:(T=(e.thumbnailSources||[])[0])==null?void 0:T.url,title:e.productTitle,price:e.priceReplacementText?e.priceReplacementText:e.price,salesOriginalPrice:GWE(this),priceDropReferencePrice:XS1(this),promotionText:N41(this),priceA11yText:n0j(this),affiliateDisclaimer:e.affiliateDisclaimer,vendor:Y_u(this)}); +c=Z=E=T=void 0;((T=e)==null?0:(E=T.hiddenProductOptions)==null?0:E.showDropCountdown)&&((Z=e)==null?0:(c=Z.hiddenProductOptions)==null?0:c.dropTimestampMs)&&(this.gE=new g.vl(function(){Kau(J)},1E3),this.x3.hide(),this.countdownTimer.show(),Kau(this)); +this.G.C("web_player_enable_featured_product_banner_exclusives_on_desktop")&&OR4(this)&&(this.OC=new g.vl(function(){ynu(J)},1E3),ynu(this))}}}}; +g.F.cL=function(){this.K&&(this.K=void 0,this.WU())}; +g.F.onVideoDataChange=function(z,J){var m=this;z==="dataloaded"&&ZW(this);var e,T,E;z=g.P((e=J.getWatchNextResponse())==null?void 0:(T=e.playerOverlays)==null?void 0:(E=T.playerOverlayRenderer)==null?void 0:E.productsInVideoOverlayRenderer,$iF);this.overflowButton.show();this.dismissButton.hide();var Z=z==null?void 0:z.featuredProductsEntityKey;this.trendingOfferEntityKey=z==null?void 0:z.trendingOfferEntityKey;this.wb.length||(aqu(this,Z),Ea(this));var c;(c=this.ED)==null||c.call(this);this.ED=g.mB.subscribe(function(){aqu(m, +Z);Ea(m)})}; +g.F.oy=function(){ZW(this);B44(this);pSb(this);Kb.prototype.oy.call(this)};g.p($au,g.U);$au.prototype.onClick=function(){this.G.logClick(this.element,this.T)};g.p(g01,g.PL);g.F=g01.prototype;g.F.show=function(){g.PL.prototype.show.call(this);this.G.publish("infopaneldetailvisibilitychange",!0);this.G.logVisibility(this.element,!0);xau(this,!0)}; +g.F.hide=function(){g.PL.prototype.hide.call(this);this.G.publish("infopaneldetailvisibilitychange",!1);this.G.logVisibility(this.element,!1);xau(this,!1)}; +g.F.getId=function(){return this.U}; +g.F.q$=function(){return this.itemData.length}; +g.F.onVideoDataChange=function(z,J){if(J){var m,e,T,E;this.update({title:((m=J.Vy)==null?void 0:(e=m.title)==null?void 0:e.content)||"",body:((T=J.Vy)==null?void 0:(E=T.bodyText)==null?void 0:E.content)||""});var Z;z=((Z=J.Vy)==null?void 0:Z.trackingParams)||null;this.G.setTrackingParams(this.element,z);Z=g.y(this.itemData);for(z=Z.next();!z.done;z=Z.next())z.value.dispose();this.itemData=[];var c;if((c=J.Vy)==null?0:c.ctaButtons)for(J=g.y(J.Vy.ctaButtons),c=J.next();!c.done;c=J.next())if(c=g.P(c.value, +KYF))c=new $au(this.G,c,this.K),c.pZ&&(this.itemData.push(c),c.S4(this.items))}}; +g.F.oy=function(){this.hide();g.PL.prototype.oy.call(this)};g.p(o0u,g.U);g.F=o0u.prototype;g.F.onVideoDataChange=function(z,J){AnR(this,J);this.B7&&hru(this,this.B7)}; +g.F.QK=function(z){var J=this.G.getVideoData();this.videoId!==J.videoId&&AnR(this,J);hru(this,z.state);this.B7=z.state}; +g.F.mO=function(z){(this.S=z)?this.hide():this.K&&this.show()}; +g.F.YU=function(){this.T||this.sD();this.showControls=!0}; +g.F.aS=function(){this.T||this.JZ();this.showControls=!1}; +g.F.sD=function(){var z;if((z=this.G)==null?0:z.C("embeds_web_enable_info_panel_sizing_fix")){var J;z=(J=this.G)==null?void 0:J.getPlayerSize();J=z.width<380;var m;z=z.height<(((m=this.G)==null?0:m.isEmbedsShortsMode())?400:280);var e,T;if((((e=this.G)==null?0:e.getPlayerStateObject().isCued())||((T=this.G)==null?0:g.R(T.getPlayerStateObject(),1024)))&&J&&z)return}this.K&&!this.S&&(this.fade.show(),this.G.publish("infopanelpreviewvisibilitychange",!0),this.G.logVisibility(this.element,!0))}; +g.F.JZ=function(){this.K&&!this.S&&(this.fade.hide(),this.G.publish("infopanelpreviewvisibilitychange",!1),this.G.logVisibility(this.element,!1))}; +g.F.Y9F=function(){this.T=!1;this.showControls||this.JZ()};var VmN={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(VmN).reduce(function(z,J){z[VmN[J]]=J;return z},{}); +var PWz={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(PWz).reduce(function(z,J){z[PWz[J]]=J;return z},{}); +var tm$={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(tm$).reduce(function(z,J){z[tm$[J]]=J;return z},{});var HP9,Uc4;HP9=[{option:"#fff",text:"White"},{option:"#ff0",text:"Yellow"},{option:"#0f0",text:"Green"},{option:"#0ff",text:"Cyan"},{option:"#00f",text:"Blue"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Red"},{option:"#080808",text:"Black"}];Uc4=[{option:0,text:Fy(0)},{option:.25,text:Fy(.25)},{option:.5,text:Fy(.5)},{option:.75,text:Fy(.75)},{option:1,text:Fy(1)}]; +g.lt=[{option:"fontFamily",text:"Font family",options:[{option:1,text:"Monospaced Serif"},{option:2,text:"Proportional Serif"},{option:3,text:"Monospaced Sans-Serif"},{option:4,text:"Proportional Sans-Serif"},{option:5,text:"Casual"},{option:6,text:"Cursive"},{option:7,text:"Small Capitals"}]},{option:"color",text:"Font color",options:HP9},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:Fy(.5)},{option:-1,text:Fy(.75)},{option:0,text:Fy(1)},{option:1,text:Fy(1.5)},{option:2, +text:Fy(2)},{option:3,text:Fy(3)},{option:4,text:Fy(4)}]},{option:"background",text:"Background color",options:HP9},{option:"backgroundOpacity",text:"Background opacity",options:Uc4},{option:"windowColor",text:"Window color",options:HP9},{option:"windowOpacity",text:"Window opacity",options:Uc4},{option:"charEdgeStyle",text:"Character edge style",options:[{option:0,text:"None"},{option:4,text:"Drop Shadow"},{option:1,text:"Raised"},{option:2,text:"Depressed"},{option:3,text:"Outline"}]},{option:"textOpacity", +text:"Font opacity",options:[{option:.25,text:Fy(.25)},{option:.5,text:Fy(.5)},{option:.75,text:Fy(.75)},{option:1,text:Fy(1)}]}];var Rfe=[27,9,33,34,13,32,187,61,43,189,173,95,79,87,67,80,78,75,70,65,68,87,83,107,221,109,219];g.p(Ua1,g.jl);g.F=Ua1.prototype; +g.F.G6=function(z){z.repeat||(this.S.U8=!1);var J=!1,m=z.keyCode,e=fJ(z),T=!z.altKey&&!z.ctrlKey&&!z.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||Rfe.includes(m)),E=!1,Z=!1,c=this.api.W();z.defaultPrevented?(T=!1,Z=!0):c.hw&&!this.api.isMutedByEmbedsMutedAutoplay()&&(T=!1);if(m===9)J=!0;else{if(e)switch(m){case 32:case 13:if(e.tagName==="BUTTON"||e.tagName==="A"||e.tagName==="INPUT")J=!0,T=!1;else if(T){var W=e.getAttribute("role");!W||W!=="option"&&W!=="button"&&W.indexOf("menuitem")!==0|| +(J=!0,e.click(),E=!0)}break;case 37:case 39:case 36:case 35:J=e.getAttribute("role")==="slider";break;case 38:case 40:W=e.getAttribute("role"),e=m===38?e.previousSibling:e.nextSibling,W==="slider"?J=!0:T&&(W==="option"?(e&&e.getAttribute("role")==="option"&&e.focus(),E=J=!0):W&&W.indexOf("menuitem")===0&&(e&&e.hasAttribute("role")&&e.getAttribute("role").indexOf("menuitem")===0&&e.focus(),E=J=!0))}if(T&&!E)switch(m){case 38:E=Math.min(this.api.getVolume()+5,100);kN(this.zB,E,!1);this.api.setVolume(E); +Z=E=!0;break;case 40:E=Math.max(this.api.getVolume()-5,0);kN(this.zB,E,!0);this.api.setVolume(E);Z=E=!0;break;case 36:this.api.Bm()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),Z=E=!0);break;case 35:this.api.Bm()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),Z=E=!0)}}J&&c8(this,!0);(J||Z)&&this.wG.jK();(E||T&&this.handleGlobalKeyDown(m,z.shiftKey,z.ctrlKey,z.altKey,z.metaKey,z.key,z.code,z.repeat))&&z.preventDefault();c.V&&(z={keyCode:z.keyCode, +altKey:z.altKey,ctrlKey:z.ctrlKey,metaKey:z.metaKey,shiftKey:z.shiftKey,handled:z.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.jC("onKeyPress",z))}; +g.F.aC=function(z){var J=z.keyCode;(!this.api.C("web_player_spacebar_control_bugfix")||this.api.C("web_player_spacebar_control_bugfix")&&!this.U)&&this.handleGlobalKeyUp(J,z.shiftKey,z.ctrlKey,z.altKey,z.metaKey,z.key,z.code)&&z.preventDefault()}; +g.F.handleGlobalKeyUp=function(z,J,m,e,T,E,Z){this.api.publish("keyboardserviceglobalkeyup",{keyCode:z,shiftKey:J,ctrlKey:m,altKey:e,metaKey:T,key:E,code:Z});J=!1;if(this.S.U8)return J;(T=g.gd(this.api.UC()))&&(T=T.AF)&&T.oT&&(T.DW(z),J=!0);switch(z){case 9:c8(this,!0);J=!0;break;case 32:if(this.api.C("web_speedmaster_spacebar_control")&&(!this.api.C("web_player_spacebar_control_bugfix")&&!this.U||this.api.C("web_player_spacebar_control_bugfix"))&&!this.api.W().hw){var c,W;z=(c=this.progressBar)== +null?void 0:(W=c.T)==null?void 0:W.isEnabled;J=this.WN(z)}break;case 39:(m7?e:m)&&this.api.C("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),c=(c=this.api.getVideoData())?c.oW:[],W=VuE(c,this.api.getCurrentTime()*1E3),W!==-1&&this.K!=null&&(ed(this.K,1,c[W].title),this.api.seekTo(c[W].startTime/1E3,void 0,void 0,void 0,52),J=!0))}return J}; +g.F.handleGlobalKeyDown=function(z,J,m,e,T,E,Z,c){c||(this.S.U8=!1);var W=!1,l=this.api.W();if(l.hw&&!this.api.isMutedByEmbedsMutedAutoplay())return W;var w=g.gd(this.api.UC());if(w&&(w=w.AF)&&w.oT)switch(z){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:W=w.Ua(z)}l.Y||W||(W=E||String.fromCharCode(z).toLowerCase(),this.T+=W,"awesome".indexOf(this.T)===0?(W=!0,7===this.T.length&&a4R(this.api.getRootNode(),"ytp-color-party")):(this.T=W,W="awesome".indexOf(this.T)===0));if(!W&&(!this.api.isMutedByEmbedsMutedAutoplay()|| +Rfe.includes(z))){var q=this.api.getVideoData(),d,I;w=(d=this.progressBar)==null?void 0:(I=d.T)==null?void 0:I.isEnabled;d=q?q.oW:[];I=m7?e:m;switch(z){case 80:J&&!l.Gf&&(RD(this.zB,KVR(),"Previous"),this.api.previousVideo(),W=!0);break;case 78:J&&!l.Gf&&(RD(this.zB,BV(),"Next"),this.api.nextVideo(),W=!0);break;case 74:this.api.Bm()&&(this.api.startSeekCsiAction(),this.K?this.api.C("enable_key_press_seek_logging")?(W=W8(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),mx(this.K, +-1,10,W)):mx(this.K,-1,10):RD(this.zB,{D:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{D:"path",xQ:!0,J:"ytp-svg-fill",j:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), +this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,73),W=!0);break;case 76:this.api.Bm()&&(this.api.startSeekCsiAction(),this.K?this.api.C("enable_key_press_seek_logging")?(W=W8(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),mx(this.K,1,10,W)):mx(this.K,1,10):RD(this.zB,{D:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{D:"path",xQ:!0,J:"ytp-svg-fill",j:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), +this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,74),W=!0);break;case 37:this.api.Bm()&&(this.api.startSeekCsiAction(),I?(I=PTj(d,this.api.getCurrentTime()*1E3),I!==-1&&this.K!=null&&(ed(this.K,-1,d[I].title),this.api.seekTo(d[I].startTime/1E3,void 0,void 0,void 0,53),W=!0)):(this.K?this.api.C("enable_key_press_seek_logging")?(W=W8(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),mx(this.K,-1,5,W)):mx(this.K,-1,5):RD(this.zB,{D:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36", +width:"100%"},N:[{D:"path",xQ:!0,J:"ytp-svg-fill",j:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}), +this.api.seekBy(-5*this.api.getPlaybackRate(),void 0,void 0,71),W=!0));break;case 39:this.api.Bm()&&(this.api.startSeekCsiAction(),I?this.api.C("web_enable_keyboard_shortcut_for_timely_actions")||(I=VuE(d,this.api.getCurrentTime()*1E3),I!==-1&&this.K!=null&&(ed(this.K,1,d[I].title),this.api.seekTo(d[I].startTime/1E3,void 0,void 0,void 0,52),W=!0)):(this.K!=null?this.api.C("enable_key_press_seek_logging")?(W=W8(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),mx(this.K,1,5,W)):mx(this.K, +1,5):RD(this.zB,{D:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{D:"path",xQ:!0,J:"ytp-svg-fill",j:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}), +this.api.seekBy(5*this.api.getPlaybackRate(),void 0,void 0,72),W=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),kN(this.zB,this.api.getVolume(),!1)):(this.api.mute(),kN(this.zB,0,!0));W=!0;break;case 32:W=this.api.C("web_speedmaster_spacebar_control")?!this.api.W().Gf:this.WN(w);break;case 75:W=this.WN(w);break;case 190:J?l.enableSpeedOptions&&kWs(this)&&(W=this.api.getPlaybackRate(),this.api.setPlaybackRate(W+.25,!0),Pb4(this.zB,!1),W=!0):this.api.Bm()&&(this.step(1),W=!0);break;case 188:J? +l.enableSpeedOptions&&kWs(this)&&(W=this.api.getPlaybackRate(),this.api.setPlaybackRate(W-.25,!0),Pb4(this.zB,!0),W=!0):this.api.Bm()&&(this.step(-1),W=!0);break;case 70:mSf(this.api)&&(this.api.toggleFullscreen().catch(function(){}),W=!0); +break;case 27:w?(this.progressBar.ew(),W=!0):this.Y()&&(W=!0)}if(l.controlsType!=="3")switch(z){case 67:g.C7(this.api.UC())&&(l=this.api.getOption("captions","track"),this.api.toggleSubtitles(),tEj(this.zB,!l||l&&!l.displayName),W=!0);break;case 79:wl(this,"textOpacity");break;case 87:wl(this,"windowOpacity");break;case 187:case 61:wl(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:wl(this,"fontSizeIncrement",!0,!0)}var O;J||m||e||(z>=48&&z<=57?O=z-48:z>=96&&z<=105&&(O=z-96));O!=null&&this.api.Bm()&& +(this.api.startSeekCsiAction(),l=this.api.getProgressState(),this.api.seekTo(O/10*(l.seekableEnd-l.seekableStart)+l.seekableStart,void 0,void 0,void 0,81),W=!0);W&&this.wG.jK()}this.U||this.api.publish("keyboardserviceglobalkeydown",{keyCode:z,shiftKey:J,ctrlKey:m,altKey:e,metaKey:T,key:E,code:Z,repeat:c},this.S);return W}; +g.F.step=function(z){this.api.Bm();if(this.api.getPlayerStateObject().isPaused()){var J=this.api.getVideoData().T;J&&(J=J.video)&&this.api.seekBy(z/(J.fps||30),void 0,void 0,z>0?77:78)}}; +g.F.WN=function(z){if(!this.api.W().Gf){var J;var m,e=(J=this.api.getVideoData())==null?void 0:(m=J.getPlayerResponse())==null?void 0:m.playabilityStatus;if(e){var T;J=((T=g.P(e.miniplayer,Vn1))==null?void 0:T.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else J=!1;J&&this.api.B1("onExpandMiniplayer");z?this.progressBar.pP():(z=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.zB.Et(z),z?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; +g.F.oy=function(){g.z5(this.Z);g.jl.prototype.oy.call(this)};g.p(g.qR,g.U);g.qR.prototype.Zg=TE(11); +g.qR.prototype.MD=function(){var z=this.G.W(),J=z.S||this.G.C("web_player_hide_overflow_button_if_empty_menu")&&this.FE.isEmpty();z=g.fi(z)&&g.b8(this.G)&&g.R(this.G.getPlayerStateObject(),128);var m=this.G.getPlayerSize();this.visible=this.G.iU()&&!z&&m.width>=240&&!g.J3(this.G.getVideoData())&&!J&&!this.K&&!this.G.isEmbedsShortsMode();g.qt(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.G.CF();this.G.logVisibility(this.element,this.visible&&this.Z)}; +g.qR.prototype.bb=function(z){g.U.prototype.bb.call(this,z);this.G.logVisibility(this.element,this.visible&&z)}; +g.qR.prototype.oy=function(){g.U.prototype.oy.call(this);g.lI(this.element,"ytp-overflow-button-visible")};g.p(Laj,g.PL);g.F=Laj.prototype;g.F.ZU=function(z){z=fJ(z);g.lV(this.element,z)&&(g.lV(this.K,z)||g.lV(this.closeButton,z)||HL(this))}; +g.F.JZ=function(){g.PL.prototype.JZ.call(this);this.G.dl(this.element)}; +g.F.show=function(){this.oT&&this.G.publish("OVERFLOW_PANEL_OPENED");g.PL.prototype.show.call(this);this.element.setAttribute("aria-modal","true");v0s(this,!0)}; +g.F.hide=function(){g.PL.prototype.hide.call(this);this.element.removeAttribute("aria-modal");v0s(this,!1)}; +g.F.onFullscreenToggled=function(z){!z&&this.yy()&&HL(this)}; +g.F.isEmpty=function(){return this.actionButtons.length===0}; +g.F.focus=function(){for(var z=g.y(this.actionButtons),J=z.next();!J.done;J=z.next())if(J=J.value,J.oT){J.focus();break}};g.p(sIb,g.U);sIb.prototype.onClick=function(z){g.i6(z,this.api)&&this.api.playVideoAt(this.index)};g.p(rnz,g.PL);g.F=rnz.prototype;g.F.show=function(){g.PL.prototype.show.call(this);this.K.L(this.api,"videodatachange",this.UN);this.K.L(this.api,"onPlaylistUpdate",this.UN);this.UN()}; +g.F.hide=function(){g.PL.prototype.hide.call(this);g.gs(this.K);this.updatePlaylist(null)}; +g.F.UN=function(){this.updatePlaylist(this.api.getPlaylist());this.api.W().S&&(this.P1("ytp-playlist-menu-title-name").removeAttribute("href"),this.S&&(this.hX(this.S),this.S=null))}; +g.F.D7=function(){var z=this.playlist,J=z.author,m=J?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",e={CURRENT_POSITION:String(z.index+1),PLAYLIST_LENGTH:String(z.getLength())};J&&(e.AUTHOR=J);this.update({title:z.title,subtitle:g.NQ(m,e),playlisturl:this.api.getVideoUrl(!0)});J=z.T;if(J===this.U)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[z.index];else{m=g.y(this.playlistData);for(e=m.next();!e.done;e=m.next())e.value.dispose(); +m=z.getLength();this.playlistData=[];for(e=0;e=this.T&&!z.S&&!J.isAd()&&!this.api.isEmbedsShortsMode()}else z=!1;this.visible=z;this.T4(this.visible);g.qt(this.element,"ytp-search-button-visible",this.visible);g.qt(this.element,"ytp-show-search-title",!this.api.iU());this.api.logVisibility(this.element,this.visible&&this.Z)}; +p_.prototype.bb=function(z){g.U.prototype.bb.call(this,z);this.api.logVisibility(this.element,this.visible&&z)};g.p(g.ya,g.U);g.F=g.ya.prototype;g.F.hc=TE(8);g.F.onClick=function(){var z=this,J=this.api.W(),m=this.api.getVideoData(this.api.getPresentingPlayerType()),e=this.api.getPlaylistId();J=this.api.C("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):J.getVideoUrl(m.videoId,e,void 0,!0);if(navigator.share)try{var T=navigator.share({title:m.title,url:J});T instanceof Promise&&T.catch(function(E){FCf(z,E)})}catch(E){E instanceof Error&&FCf(this,E)}else this.K.GR(),HL(this.S,this.element,!1); +this.api.logClick(this.element)}; +g.F.MD=function(){var z=this.api.W(),J=this.api.isEmbedsShortsMode();g.qt(this.element,"ytp-show-share-title",g.fi(z)&&!J);this.K.PK()&&J?(z=(this.api.zf().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.FR(this.element,"right",z+"px")):J&&g.FR(this.element,"right","0px");this.updateValue("icon",{D:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{D:"path",xQ:!0,J:"ytp-svg-fill",j:{d:"m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z"}}]}); +this.visible=ZxR(this);g.qt(this.element,"ytp-share-button-visible",this.visible);this.T4(this.visible);this.tooltip.CF();this.api.logVisibility(this.element,ZxR(this)&&this.Z)}; +g.F.bb=function(z){g.U.prototype.bb.call(this,z);this.api.logVisibility(this.element,this.visible&&z)}; +g.F.oy=function(){g.U.prototype.oy.call(this);g.lI(this.element,"ytp-share-button-visible")};g.p(ci4,g.PL);g.F=ci4.prototype;g.F.VK=function(z){z=fJ(z);g.lV(this.Y,z)||g.lV(this.closeButton,z)||HL(this)}; +g.F.JZ=function(){g.PL.prototype.JZ.call(this);this.tooltip.dl(this.element);this.api.logVisibility(this.K,!1);for(var z=g.y(this.S),J=z.next();!J.done;J=z.next())J=J.value,this.api.hasVe(J.element)&&this.api.logVisibility(J.element,!1)}; +g.F.show=function(){var z=this.oT;g.PL.prototype.show.call(this);this.MD();z||this.api.B1("onSharePanelOpened")}; +g.F.QTW=function(){this.oT&&this.MD()}; +g.F.MD=function(){var z=this;g.FE(this.element,"ytp-share-panel-loading");g.lI(this.element,"ytp-share-panel-fail");var J=this.api.getVideoData(),m=this.api.getPlaylistId()&&this.U.checked;J.getSharePanelCommand&&Qj(this.api.fB(),J.getSharePanelCommand,{includeListId:m}).then(function(e){z.mF()||(g.lI(z.element,"ytp-share-panel-loading"),ltE(z,e))}); +J=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",J);this.updateValue("linkText",J);this.updateValue("shareLinkWithUrl",g.NQ("Share link $URL",{URL:J}));l6(this.K);this.api.logVisibility(this.K,!0)}; +g.F.onFullscreenToggled=function(z){!z&&this.yy()&&HL(this)}; +g.F.focus=function(){this.K.focus()}; +g.F.oy=function(){g.PL.prototype.oy.call(this);WCs(this)};g.p(dB1,Kb);g.F=dB1.prototype;g.F.oy=function(){NpR(this);Kb.prototype.oy.call(this)}; +g.F.vL=function(z){z.target!==this.dismissButton.element&&(this.S0(!1),this.G.B1("innertubeCommand",this.onClickCommand))}; +g.F.tF=function(){this.ND=!0;this.S0(!0);this.WU()}; +g.F.Nsf=function(z){this.V=z;this.WU()}; +g.F.onVideoDataChange=function(z,J){if(z=!!J.videoId&&this.videoId!==J.videoId)this.videoId=J.videoId,this.ND=!1,this.Tf=!0,this.X=this.fh=!1,NpR(this),yiq(this,!1),this.T=this.K=!1,GN(this),Itf(this);if(z||!J.videoId)this.Ry=this.U=!1;var m,e;if(J==null?0:(m=J.getPlayerResponse())==null?0:(e=m.videoDetails)==null?0:e.isLiveContent)this.Yi(!1);else{var T,E,Z;J=g.P((T=J.getWatchNextResponse())==null?void 0:(E=T.playerOverlays)==null?void 0:(Z=E.playerOverlayRenderer)==null?void 0:Z.productsInVideoOverlayRenderer, +$iF);this.V=this.enabled=!1;if(J){if(T=J==null?void 0:J.featuredProductsEntityKey){E=g.mB.getState().entities;var c;if((c=mT(E,"featuredProductsEntity",T))==null?0:c.productsData){this.Yi(!1);return}}this.enabled=!0;if(!this.U){var W;c=(W=J.badgeInteractionLogging)==null?void 0:W.trackingParams;(this.U=!!c)&&this.G.setTrackingParams(this.badge.element,c||null)}if(!this.Ry){var l;if(this.Ry=!((l=J.dismissButton)==null||!l.trackingParams)){var w;this.G.setTrackingParams(this.dismissButton.element,((w= +J.dismissButton)==null?void 0:w.trackingParams)||null)}}J.isContentForward&&(W=J.productsData,yiq(this,!0),Itf(this),W=pxf(this,W),l=[],W.length>0&&l.push(W[0]),W.length>1&&(w=new g.U({D:"div",J:"ytp-suggested-action-more-products-icon"}),g.u(this,w),l.push(w),l.push.apply(l,g.X(W.slice(1)))),this.Y=new g.U({D:"div",N:l,J:"ytp-suggested-action-content-forward-container"}),g.u(this,this.Y),this.Qx.element.append(this.Y.element));this.text=g.GZ(J.text);var q;if(W=(q=J.dismissButton)==null?void 0:q.a11yLabel)this.qD= +g.GZ(W);this.onClickCommand=J.onClickCommand;this.timing=J.timing;this.U4()}w8q(this);a2(this);this.WU()}}; +g.F.lQ=function(){return!this.V&&this.enabled&&!this.ND&&!this.G.iU()&&!this.GS&&(this.X||this.Tf)}; +g.F.eS=function(z){Kb.prototype.eS.call(this,z);if(this.K||this.T)this.timing&&NR(this.timing.preview)&&(this.K=!1,GN(this),this.T=!1,GN(this),this.G.c7("shopping_overlay_preview_collapsed"),this.G.c7("shopping_overlay_preview_expanded"),z=Xy(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),NR(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.G.c7("shopping_overlay_expanded"),z.end=this.timing.expanded.endSec*1E3),this.G.U4([z])), +this.fh=!0,a2(this);GN(this)}; +g.F.Yi=function(z){(this.X=z)?(Cb(this),a2(this,!1)):(NpR(this),this.h6.start());this.WU()}; +g.F.U4=function(z){var J=this.timing;z=(z===void 0?0:z)+this.G.getCurrentTime();var m=[],e=J.visible,T=J.preview;J=J.expanded;NR(e)&&(wxq(e,z),m.push(Xy(e.startSec,e.endSec,"shopping_overlay_visible")));NR(T)&&(wxq(T,z),e=T.startSec+1,m.push(Xy(T.startSec,e,"shopping_overlay_preview_collapsed")),m.push(Xy(e,T.endSec,"shopping_overlay_preview_expanded")));NR(J)&&(wxq(J,z),m.push(Xy(J.startSec,J.endSec,"shopping_overlay_expanded")));this.G.U4(m)};g.p(n8u,g.U); +n8u.prototype.MD=function(){var z=this.api.W();this.T4(g.fi(z)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.oT);var J=this.api.getVideoData(),m=!1;this.api.getPresentingPlayerType()===2?m=!!J.videoId&&!!J.isListed&&!!J.author&&!!J.GS&&!!J.profilePicture:g.fi(z)&&(m=!!J.videoId&&!!J.GS&&!!J.profilePicture&&!g.J3(J)&&!z.S&&!(z.X&&this.api.getPlayerSize().width<200));var e=J.profilePicture;z=g.fi(z)?J.expandedTitle:J.author;e=e===void 0? +"":e;z=z===void 0?"":z;m?(this.T!==e&&(this.K.style.backgroundImage="url("+e+")",this.T=e),this.updateValue("channelLogoLabel",g.NQ("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:z})),g.FE(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.lI(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.K,m&&this.Z);this.api.logVisibility(this.channelName,m&&this.Z);this.subscribeButton&&(this.subscribeButton.channelId=J.Ab);this.updateValue("expandedTitle",J.expandedTitle)};g.p(n_,g.PL);n_.prototype.show=function(){g.PL.prototype.show.call(this);this.K.start()}; +n_.prototype.hide=function(){g.PL.prototype.hide.call(this);this.K.stop()}; +n_.prototype.PU=function(z,J){z==="dataloaded"&&((this.kx=J.kx,this.o1=J.o1,isNaN(this.kx)||isNaN(this.o1))?this.S&&(this.G.c7("intro"),this.G.removeEventListener(g.F8("intro"),this.V),this.G.removeEventListener(g.iw("intro"),this.Y),this.G.removeEventListener("onShowControls",this.U),this.hide(),this.S=!1):(this.G.addEventListener(g.F8("intro"),this.V),this.G.addEventListener(g.iw("intro"),this.Y),this.G.addEventListener("onShowControls",this.U),z=new g.Ec(this.kx,this.o1,{priority:9,namespace:"intro"}), +this.G.U4([z]),this.S=!0))};g.p(YI,g.U);YI.prototype.onClick=function(){this.G.dk()}; +YI.prototype.MD=function(){var z=!0;g.fi(this.G.W())&&(z=z&&this.G.zf().getPlayerSize().width>=480);this.T4(z);this.updateValue("icon",this.G.Q$()?{D:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{D:"path",xQ:!0,j:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]}: +{D:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{D:"path",xQ:!0,J:"ytp-svg-fill",j:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]})};g.p(CZ1,g.U);CZ1.prototype.oy=function(){this.K=null;g.U.prototype.oy.call(this)};g.p(C_,g.U);C_.prototype.onClick=function(){this.G.B1("innertubeCommand",this.T)}; +C_.prototype.B=function(z){z!==this.Y&&(this.update({title:z,ariaLabel:z}),this.Y=z);z?this.show():this.hide()}; +C_.prototype.X=function(){this.K.disabled=this.T==null;g.qt(this.K,"ytp-chapter-container-disabled",this.K.disabled);this.Xq()};g.p(a_,C_);a_.prototype.onClickCommand=function(z){g.P(z,JX)&&this.Xq()}; +a_.prototype.updateVideoData=function(z,J){var m,e,T;z=g.P((m=J.getWatchNextResponse())==null?void 0:(e=m.playerOverlays)==null?void 0:(T=e.playerOverlayRenderer)==null?void 0:T.decoratedPlayerBarRenderer,Kr);m=g.P(z==null?void 0:z.playerBarActionButton,g.oR);this.G.C("web_player_updated_entrypoint")&&(this.V=nQ(m==null?void 0:m.text));this.T=m==null?void 0:m.command;C_.prototype.X.call(this)}; +a_.prototype.Xq=function(){var z=this.G.C("web_player_updated_entrypoint")?this.V:"",J=this.U.K,m,e=((m=this.G.getLoopRange())==null?void 0:m.type)==="clips";if(J.length>1&&!e){z=this.G.getProgressState().current*1E3;m=it(J,z);z=J[m].title||"Chapters";if(m!==this.currentIndex||this.S)this.G.B1("innertubeCommand",J[m].onActiveCommand),this.currentIndex=m;this.S=!1}else this.S=!0;C_.prototype.B.call(this,z)};g.p(K_,g.U);K_.prototype.S=function(z){g.R(z.state,32)?KCs(this,this.api.LF()):this.oT&&(g.R(z.state,16)||g.R(z.state,1))||this.fade.hide()}; +K_.prototype.kZ=function(){var z=this.api.getPlayerStateObject();(g.R(z,32)||g.R(z,16))&&Bpq(this)}; +K_.prototype.U=function(){this.frameIndex=NaN;Bpq(this)}; +K_.prototype.hide=function(){this.K&&KCs(this,null);g.U.prototype.hide.call(this)};g.p(SGs,g.U);g.F=SGs.prototype;g.F.onClick=function(){var z=this;if(this.G.W().GS||this.G.W().X){this.G.logClick(this.element);try{this.G.toggleFullscreen().catch(function(J){z.PV(J)})}catch(J){this.PV(J)}}else HL(this.message,this.element,!0)}; +g.F.PV=function(z){String(z).includes("fullscreen error")?g.hr(z):g.jk(z);this.bB()}; +g.F.bB=function(){this.disable();this.message.sD(this.element,!0)}; +g.F.Jk=function(){nJ()===this.G.getRootNode()?this.S.start():(this.S.stop(),this.message&&this.message.hide())}; +g.F.d0=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var z=window.screen.width*.9,J=window.screen.height*.9,m=Math.max(window.outerWidth,window.innerWidth),e=Math.max(window.outerHeight,window.innerHeight);if(m>e!==z>J){var T=m;m=e;e=T}z>m&&J>e&&this.bB()}}; +g.F.disable=function(){var z=this;if(!this.message){var J=(NN(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"Full screen is unavailable. $BEGIN_LINKLearn More$END_LINK":"Your browser doesn't support full screen. $BEGIN_LINKLearn More$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.PL(this.G,{D:"div",Iy:["ytp-popup","ytp-generic-popup"],j:{role:"alert",tabindex:"0"},N:[J[0],{D:"a",j:{href:"https://support.google.com/youtube/answer/6276924", +target:this.G.W().B},t6:J[2]},J[4]]},100,!0);this.message.hide();g.u(this,this.message);this.message.subscribe("show",function(m){z.T.mm(z.message,m)}); +g.M0(this.G,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.K)();this.K=null}}; +g.F.MD=function(){var z=mSf(this.G),J=this.G.W().X&&this.G.getPlayerSize().width<250;this.T4(z&&!J);var m;((m=this.G.W())==null?0:m.C("embeds_use_parent_visibility_in_ve_logging"))?this.G.logVisibility(this.element,this.oT&&this.Z):this.G.logVisibility(this.element,this.oT)}; +g.F.V2=function(z){if(z){var J={D:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{D:"g",J:"ytp-fullscreen-button-corner-2",N:[{D:"path",xQ:!0,J:"ytp-svg-fill",j:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{D:"g",J:"ytp-fullscreen-button-corner-3",N:[{D:"path",xQ:!0,J:"ytp-svg-fill",j:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{D:"g",J:"ytp-fullscreen-button-corner-0",N:[{D:"path",xQ:!0,J:"ytp-svg-fill",j:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{D:"g", +J:"ytp-fullscreen-button-corner-1",N:[{D:"path",xQ:!0,J:"ytp-svg-fill",j:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};z=g.Ke(this.G,"Exit full screen","f");this.update({"data-title-no-tooltip":"Exit full screen"});document.activeElement===this.element&&this.G.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(m){g.hr(m)})}else J={D:"svg", +j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{D:"g",J:"ytp-fullscreen-button-corner-0",N:[{D:"path",xQ:!0,J:"ytp-svg-fill",j:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{D:"g",J:"ytp-fullscreen-button-corner-1",N:[{D:"path",xQ:!0,J:"ytp-svg-fill",j:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{D:"g",J:"ytp-fullscreen-button-corner-2",N:[{D:"path",xQ:!0,J:"ytp-svg-fill",j:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{D:"g",J:"ytp-fullscreen-button-corner-3", +N:[{D:"path",xQ:!0,J:"ytp-svg-fill",j:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},z=g.Ke(this.G,"Full screen","f"),this.update({"data-title-no-tooltip":"Full screen"});z=this.message?null:z;this.update({title:z,icon:J});this.T.iF().CF()}; +g.F.oy=function(){this.message||((0,this.K)(),this.K=null);g.U.prototype.oy.call(this)}; +g.F.bb=function(z){g.U.prototype.bb.call(this,z);var J;((J=this.G.W())==null?0:J.C("embeds_use_parent_visibility_in_ve_logging"))&&this.G.logVisibility(this.element,this.oT&&z)};g.p(B8,g.U);B8.prototype.onClick=function(){this.G.logClick(this.element);this.G.seekBy(this.K,!0);var z=this.K>0?1:-1,J=Math.abs(this.K),m=this.G.kA().ou;m&&mx(m,z,J);this.T.isActive()?this.S=!0:(z=["ytp-jump-spin"],this.K<0&&z.push("backwards"),this.element.classList.add.apply(this.element.classList,g.X(z)),g.sD(this.T))};g.p(Sd,C_);Sd.prototype.onClickCommand=function(z){g.P(z,DiF)&&this.Xq()}; +Sd.prototype.updateVideoData=function(){var z,J;this.T=(z=DBf(this))==null?void 0:(J=z.onTap)==null?void 0:J.innertubeCommand;C_.prototype.X.call(this)}; +Sd.prototype.Xq=function(){var z="",J=this.U.V,m,e=(m=DBf(this))==null?void 0:m.headerTitle;m=e?g.GZ(e):"";var T;e=((T=this.G.getLoopRange())==null?void 0:T.type)==="clips";J.length>1&&!e&&(z=this.G.getProgressState().current*1E3,T=uiR(J,z),z=T!=null?J[T].title:m,T!=null&&T!==this.currentIndex&&(this.G.B1("innertubeCommand",J[T].onActiveCommand),this.currentIndex=T));C_.prototype.B.call(this,z)};g.p(f_,g.U);f_.prototype.onClick=function(){this.G.B1("onCollapseMiniplayer");this.G.logClick(this.element)}; +f_.prototype.MD=function(){this.visible=!this.G.isFullscreen();this.T4(this.visible);this.G.logVisibility(this.element,this.visible&&this.Z)}; +f_.prototype.bb=function(z){g.U.prototype.bb.call(this,z);this.G.logVisibility(this.element,this.visible&&z)};g.p(DW,g.U);g.F=DW.prototype;g.F.Pj=function(z){this.visible=z.width>=300||this.x3;this.T4(this.visible);this.G.logVisibility(this.element,this.visible&&this.Z)}; +g.F.p73=function(){this.G.W().h6?this.G.isMuted()?this.G.unMute():this.G.mute():HL(this.message,this.element,!0);this.G.logClick(this.element)}; +g.F.onVolumeChange=function(z){this.setVolume(z.volume,z.muted)}; +g.F.setVolume=function(z,J){var m=this,e=J?0:z/100,T=this.G.W();z=e===0?1:z>50?1:0;if(this.Y!==z){var E=this.fh;isNaN(E)?g84(this,z):rO1(this.wb,function(c){g84(m,E+(m.Y-E)*c)},250); +this.Y=z}e=e===0?1:0;if(this.U!==e){var Z=this.B;isNaN(Z)?xB1(this,e):rO1(this.Ry,function(c){xB1(m,Z+(m.U-Z)*c)},250); +this.U=e}T.h6&&(T=g.Ke(this.G,"Mute","m"),e=g.Ke(this.G,"Unmute","m"),this.updateValue("title",J?e:T),this.update({"data-title-no-tooltip":J?"Unmute":"Mute"}),this.tooltip.CF())}; +g.F.bb=function(z){g.U.prototype.bb.call(this,z);this.G.logVisibility(this.element,this.visible&&z)}; +var bxb=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",24.77," C",21.89,",",23.85," ",24,",",21.17," ",24,",",18," C",24,",",14.83," ",21.89,",",12.15," ",19,",",11.29," L",19,",",11.29," Z"],$Bu=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",26.77," C",23.01,",",25.86," ",26,",",22.28," ",26,",",18," C",26,",",13.72," ", +23.01,",",10.14," ",19,",",9.23," L",19,",",11.29," Z"];g.p(g.bt,g.U);g.F=g.bt.prototype;g.F.onStateChange=function(z){this.f1(z.state);var J;((J=this.G.W())==null?0:J.C("embeds_use_parent_visibility_in_ve_logging"))&&this.G.logVisibility(this.element,this.oT&&this.Z)}; +g.F.f1=function(z){var J=g.BH(this.G.getVideoData()),m=!1;z.isOrWillBePlaying()?z=J?4:2:g.R(z,2)?(z=3,m=J):z=1;this.element.disabled=m;if(this.K!==z){J=null;switch(z){case 2:J=g.Ke(this.G,"Pause","k");this.update({"data-title-no-tooltip":"Pause"});break;case 3:J="Replay";this.update({"data-title-no-tooltip":"Replay"});break;case 1:J=g.Ke(this.G,"Play","k");this.update({"data-title-no-tooltip":"Play"});break;case 4:J="Stop live playback",this.update({"data-title-no-tooltip":"Stop live playback"})}z=== +3?this.update({title:J,icon:Mqb(z)}):(this.update({title:J}),(J=Mqb(z))&&this.K&&this.K!==3?JtR(this.transition,this.element,J):this.updateValue("icon",J));this.tooltip.CF();this.K=z}}; +g.F.onVideoDataChange=function(){g.qt(this.element,"ytp-play-button-playlist",g.b8(this.G))}; +g.F.WN=function(z){this.G.logClick(this.element);if(this.G.getPlayerStateObject().isOrWillBePlaying())this.G.pauseVideo();else{if(this.G.isMinimized()&&this.G.getPlayerStateObject().isCued()){var J={},m;if((m=this.G.getVideoData())==null?0:m.Y)J.cttAuthInfo={token:this.G.getVideoData().Y,videoId:this.G.getVideoData().videoId};Hh("direct_playback",J);this.G.uU().timerName="direct_playback"}this.G.playVideo()}this.G.isMinimized()&&(z==null?void 0:z.type)==="click"&&this.element.blur()}; +g.F.bb=function(z){g.U.prototype.bb.call(this,z);var J;((J=this.G.W())==null?0:J.C("embeds_use_parent_visibility_in_ve_logging"))&&this.G.logVisibility(this.element,this.oT&&z)};g.p(g.$I,g.U);g.F=g.$I.prototype;g.F.onVideoDataChange=function(){o8j(this);this.U&&(this.hX(this.U),this.U=null);this.videoData=this.G.getVideoData(1);if(this.playlist=this.G.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.U=this.L(this.G,"progresssync",this.Jo);this.S=jvb(this);Aiu(this);this.Dv(this.G.zf().getPlayerSize())}; +g.F.Dv=function(z){z=z===void 0?this.G.zf().getPlayerSize():z;var J,m=((J=this.G.getLoopRange())==null?void 0:J.type)==="clips";z=(g.b8(this.G)||this.K&&g.A3(this.G)&&!this.G.C("web_hide_next_button")||huz(this))&&!m&&(this.K||z.width>=400);this.T4(z);this.G.logVisibility(this.element,z)}; +g.F.onClick=function(z){this.G.logClick(this.element);var J=!0;this.V?J=g.i6(z,this.G):z.preventDefault();J&&(this.K&&this.G.getPresentingPlayerType()===5?this.G.publish("ytoprerollinternstitialnext"):this.K?(wh(this.G.uU()),this.G.publish("playlistnextbuttonclicked",this.element),this.G.nextVideo(!0)):this.S?this.G.seekTo(0):(wh(this.G.uU()),this.G.publish("playlistprevbuttonclicked",this.element),this.G.previousVideo(!0)))}; +g.F.Jo=function(){var z=jvb(this);z!==this.S&&(this.S=z,Aiu(this))}; +g.F.oy=function(){this.T&&(this.T(),this.T=null);o8j(this);g.U.prototype.oy.call(this)};g.p(Vqb,g.U);g.F=Vqb.prototype;g.F.Lp=function(z){this.Gu(z.pageX);this.Ih(z.pageX+z.deltaX);PZ1(this)}; +g.F.Gu=function(z){this.Ry=z-this.Gf}; +g.F.Ih=function(z){z-=this.Gf;!isNaN(this.Ry)&&this.thumbnails.length>0&&(this.B=z-this.Ry,this.thumbnails.length>0&&this.B!==0&&(this.S=this.X+this.B,z=k3u(this,this.S),this.S<=this.K/2&&this.S>=Ruq(this)?(this.api.seekTo(z,!1,void 0,void 0,25),g.FR(this.Tf,"transform","translateX("+(this.S-this.K/2)+"px)"),u5q(this,z)):this.S=this.X))}; +g.F.M_=function(){this.fh&&(this.fh.vC=!0);var z=(0,g.b5)()-this.Lh<300;if(Math.abs(this.B)<5&&!z){this.Lh=(0,g.b5)();z=this.Ry+this.B;var J=this.K/2-z;this.Gu(z);this.Ih(z+J);PZ1(this);this.api.logClick(this.Y)}PZ1(this)}; +g.F.q_=function(){gl(this,this.api.getCurrentTime())}; +g.F.play=function(z){this.api.seekTo(k3u(this,this.S),void 0,void 0,void 0,26);this.api.playVideo();z&&this.api.logClick(this.playButton)}; +g.F.onExit=function(z){this.api.seekTo(this.h6,void 0,void 0,void 0,63);this.api.playVideo();z&&this.api.logClick(this.dismissButton)}; +g.F.yQ=function(z,J){this.Gf=z;this.K=J;gl(this,this.api.getCurrentTime())}; +g.F.enable=function(){this.isEnabled||(this.isEnabled=!0,this.h6=this.api.getCurrentTime(),u5q(this,this.h6),g.qt(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.Qx=this.L(this.element,"wheel",this.Lp),this.logVisibility(this.isEnabled))}; +g.F.disable=function(){this.isEnabled=!1;this.hide();g.qt(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.Qx&&this.hX(this.Qx);this.logVisibility(this.isEnabled)}; +g.F.reset=function(){this.disable();this.U=[];this.x3=!1}; +g.F.logVisibility=function(z){this.api.logVisibility(this.element,z);this.api.logVisibility(this.Y,z);this.api.logVisibility(this.dismissButton,z);this.api.logVisibility(this.playButton,z)}; +g.F.oy=function(){for(;this.T.length;){var z=void 0;(z=this.T.pop())==null||z.dispose()}g.U.prototype.oy.call(this)}; +g.p(tqq,g.U);g.p(Hxu,g.U);g.p(LCz,g.U);g.p(xI,g.U);xI.prototype.aT=function(z){return z==="PLAY_PROGRESS"?this.X:z==="LOAD_PROGRESS"?this.V:z==="LIVE_BUFFER"?this.Y:this.S};svu.prototype.update=function(z,J,m,e){m=m===void 0?0:m;this.width=J;this.U=m;this.K=J-m-(e===void 0?0:e);this.position=g.O8(z,m,m+this.K);this.S=this.position-m;this.T=this.S/this.K};g.p(riE,g.U);g.p(g.o_,g.py);g.F=g.o_.prototype; +g.F.ZB=function(){var z=!1,J=this.api.getVideoData();if(!J)return z;this.api.c7("timedMarkerCueRange");mIE(this);for(var m=g.y(J.tZ),e=m.next();!e.done;e=m.next()){e=e.value;var T=void 0,E=(T=this.h6[e])==null?void 0:T.markerType;T=void 0;var Z=(T=this.h6[e])==null?void 0:T.markers;if(!Z)break;if(E==="MARKER_TYPE_TIMESTAMPS"){z=g.y(Z);for(E=z.next();!E.done;E=z.next()){T=E.value;E=new riE;Z=void 0;E.title=((Z=T.title)==null?void 0:Z.simpleText)||"";E.timeRangeStartMillis=Number(T.startMillis);E.K= +Number(T.durationMillis);var c=Z=void 0;E.onActiveCommand=(c=(Z=T.onActive)==null?void 0:Z.innertubeCommand)!=null?c:void 0;ikq(this,E)}c1q(this,this.V);z=this.V;E=this.Bk;T=[];Z=null;for(c=0;cW&&(Z.end=W);W=tus(W,W+w);T.push(W);Z=W;E[W.id]=z[c].onActiveCommand}}this.api.U4(T);this.vA=this.h6[e];z=!0}else if(E==="MARKER_TYPE_HEATMAP"){e=this.h6[e];w=l=T=W=c=Z=void 0;if(e&& +e.markers){E=(T=(w=e.markersMetadata)==null?void 0:(l=w.heatmapMetadata)==null?void 0:l.minHeightDp)!=null?T:0;T=(Z=(W=e.markersMetadata)==null?void 0:(c=W.heatmapMetadata)==null?void 0:c.maxHeightDp)!=null?Z:60;Z=this.K.length;c=null;for(W=0;W=w&&O<=q&&l.push(I)}T>0&&(this.fh.style.height= +T+"px");w=this.U[W];q=l;I=E;var G=T,n=W===0;n=n===void 0?!1:n;Qvu(w,G);d=q;O=w.T;n=n===void 0?!1:n;var C=1E3/d.length,K=[];K.push({x:0,y:100});for(var f=0;f0&&(c=l[l.length-1])}g.jd(this)}T=void 0;E=[];if(e=(T=e.markersDecoration)==null?void 0:T.timedMarkerDecorations)for(e=g.y(e),T=e.next();!T.done;T=e.next())T=T.value,W=c=Z=void 0,E.push({visibleTimeRangeStartMillis:(Z=T.visibleTimeRangeStartMillis)!=null?Z:-1,visibleTimeRangeEndMillis:(c=T.visibleTimeRangeEndMillis)!=null?c:-1,decorationTimeMillis:(W=T.decorationTimeMillis)!= +null?W:NaN,label:T.label?g.GZ(T.label):""});e=E;this.heatMarkersDecorations=e}}J.F$=this.V;g.qt(this.element,"ytp-timed-markers-enabled",z);return z}; +g.F.yQ=function(){g.jd(this);Va(this);c1q(this,this.V);if(this.T){var z=g.pU(this.element).x||0;this.T.yQ(z,this.Y)}}; +g.F.onClickCommand=function(z){if(z=g.P(z,JX)){var J=z.key;z.isVisible&&J&&qyR(this,J)}}; +g.F.Apx=function(z){this.api.B1("innertubeCommand",this.Bk[z.id])}; +g.F.Xq=function(){Va(this);var z=this.api.getCurrentTime();(zthis.clipEnd)&&this.eU()}; +g.F.Xn=function(z){if(!z.defaultPrevented){var J=!1;switch(z.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);J=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);J=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);J=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);J=!0;break;case 38:this.api.C("enable_key_press_seek_logging")&&kI(this,this.api.getCurrentTime(),this.api.getCurrentTime()+5,"SEEK_SOURCE_SEEK_FORWARD_5S","INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"); +this.api.seekBy(5,void 0,void 0,72);J=!0;break;case 40:this.api.C("enable_key_press_seek_logging")&&kI(this,this.api.getCurrentTime(),this.api.getCurrentTime()-5,"SEEK_SOURCE_SEEK_BACKWARD_5S","INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"),this.api.seekBy(-5,void 0,void 0,71),J=!0}J&&z.preventDefault()}}; +g.F.PU=function(z,J){this.updateVideoData(J,z==="newdata")}; +g.F.Gf4=function(){this.PU("newdata",this.api.getVideoData())}; +g.F.updateVideoData=function(z,J){J=J===void 0?!1:J;var m=!!z&&z.pZ();if(m&&(QX(z)||y11(this)?this.rL=!1:this.rL=z.allowLiveDvr,g.qt(this.api.getRootNode(),"ytp-enable-live-buffer",!(z==null||!QX(z))),this.api.C("enable_custom_playhead_parsing"))){var e,T,E,Z=g.P((e=z.getWatchNextResponse())==null?void 0:(T=e.playerOverlays)==null?void 0:(E=T.playerOverlayRenderer)==null?void 0:E.decoratedPlayerBarRenderer,Kr);if(Z==null?0:Z.progressColor)for(e=0;e0;)this.U.pop().dispose();this.heatMarkersDecorations=[];this.tZ={};var q;(q=this.T)==null||q.reset();zl(this);g.qt(this.api.getRootNode(),"ytp-fine-scrubbing-exp",AO(this))}else this.eU();this.WK()}if(z){var d;q=((d=this.ib)==null?void 0:d.type)==="clips";if(d=!z.isLivePlayback){d=this.api.getVideoData();J=g.B$(d);m=TZR(d);var I;d=J!=null||m!=null&&m.length>0||((I=d.y5)== +null?void 0:I.length)>0}if(d&&!q){I=this.api.getVideoData();q=g.B$(I);d=!1;if(q==null?0:q.markersMap){d=this.api.getVideoData();var O;d.VW=((O=q.visibleOnLoad)==null?void 0:O.key)||d.VW;O=g.y(q.markersMap);for(q=O.next();!q.done;q=O.next())q=q.value,q.key&&q.value&&(this.tZ[q.key]=q.value,q.value.onChapterRepeat&&(d.E0=q.value.onChapterRepeat));d.VW!=null&&qyR(this,d.VW);d=!0}var G;if(((G=I.y5)==null?void 0:G.length)>0){G=g.mB.getState().entities;O=g.y(I.y5);for(q=O.next();!q.done;q=O.next())if(q= +q.value,m=void 0,J=(m=mT(G,"macroMarkersListEntity",q))==null?void 0:m.markersList,c=m=void 0,((m=J)==null?void 0:m.markerType)==="MARKER_TYPE_TIMESTAMPS"||((c=J)==null?void 0:c.markerType)==="MARKER_TYPE_HEATMAP")this.h6[q]=J;d=this.ZB()||d}!d&&(G=TZR(I))&&(ZkE(this,G),I.oW=this.K,E1R(this));NZu(this,null);z.MP&&this.U.length===0&&(z=z.MP,G=z.key,z.isVisible&&G&&qyR(this,G))}else zDq(this),mIE(this)}Va(this)}; +g.F.anD=function(z){this.X&&!g.R(z.state,32)&&this.api.getPresentingPlayerType()!==3&&this.X.cancel();var J;((J=this.T)==null?0:J.isEnabled)&&g.R(z.state,8)&&this.api.pauseVideo();z=this.api.getPresentingPlayerType()===2||!this.api.Bm()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.qt(this.qp,"ytp-hide-scrubber-button",z)}; +g.F.w4=function(z){var J=!!this.ib!==!!z,m=this.ib;this.ib=z;NZu(this,m);(z==null?void 0:z.type)!=="clips"&&z||(z?(this.updateValue("clipstarticon",n4q()),this.updateValue("clipendicon",n4q()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",dqq()),this.updateValue("clipendicon",q0E()),this.updateValue("clipstarttitle","Watch full video"),this.updateValue("clipendtitle","Watch full video")),J&&(this.updateVideoData(this.api.getVideoData(), +!0),g.jd(this)),L_(this));H8(this,this.B,this.yH)}; +g.F.jji=function(z,J,m){var e=g.pU(this.element),T=ut(this).K,E=m?m.getAttribute("data-tooltip"):void 0,Z=m?m.getAttribute("data-position"):void 0,c=m?m.getAttribute("data-offset-y"):void 0;c=c?Number(c):0;Z&&(z=oU(this.S,Number(m.getAttribute("data-position")),0)*T+g.pU(this.progressBar).x);this.O2.x=z-e.x;this.O2.y=J-e.y;z=ut(this);m=R_(this,z);J=0;var W;if((W=this.api.getVideoData())==null?0:QX(W))(W=this.api.getProgressState().seekableEnd)&&m>W&&(m=W,z.position=oU(this.S,W)*ut(this).K),J=this.S.T; +y11(this)&&(J=this.S.T);W=E||g.By(this.rL?m-this.S.K:m-J);J=z.position+this.Pm;m-=this.api.Kr();var l;if((l=this.T)==null||!l.isEnabled)if(this.api.LF()){if(this.K.length>1){l=Ua(this,this.O2.x,!0);if(!this.ib)for(e=0;e1)for(e=0;e0)for(l=this.O2.x,e=g.y(this.V),T=e.next();!T.done;T=e.next())T=T.value,Z=hO(this,T.timeRangeStartMillis/ +(this.S.K*1E3),ut(this)),g.qt(T.element,"ytp-timed-marker-hover",Z<=l&&Z+6>=l);e=this.tooltip.scale;c=(isNaN(c)?0:c)-45*e;this.api.C("web_key_moments_markers")?this.vA?(l=uiR(this.V,m*1E3),l=l!=null?this.V[l].title:""):(l=it(this.K,m*1E3),l=this.K[l].title):(l=it(this.K,m*1E3),l=this.K[l].title);l||(c+=16*e);this.tooltip.scale===.6&&(g.vZ(this.api.W())?(c=this.api.zf().getPlayerSize().height-225,c=l?c+110:c+110+16):c=l?110:126);e=it(this.K,m*1E3);this.Tf=Gnz(this,m,e)?e:Gnz(this,m,e+1)?e+1:-1;g.qt(this.api.getRootNode(), +"ytp-progress-bar-snap",this.Tf!==-1&&this.K.length>1);e=!1;T=g.y(this.heatMarkersDecorations);for(Z=T.next();!Z.done;Z=T.next()){Z=Z.value;var w=m*1E3;w>=Z.visibleTimeRangeStartMillis&&w<=Z.visibleTimeRangeEndMillis&&(l=Z.label,W=g.By(Z.decorationTimeMillis/1E3),e=!0)}this.Zo!==e&&(this.Zo=e,this.api.logVisibility(this.qx,this.Zo));g.qt(this.api.getRootNode(),"ytp-progress-bar-decoration",e);e=160*this.tooltip.scale*2;T=l.length*(this.Ry?8.55:5.7);T=T<=e?T:e;Z=T<160*this.tooltip.scale;e=3;!Z&&T/ +2>z.position&&(e=1);!Z&&T/2>this.Y-z.position&&(e=2);this.api.W().X&&(c-=10);this.U.length&&this.U[0].pZ&&(c-=14*(this.Ry?2:1),this.Qx||(this.Qx=!0,this.api.logVisibility(this.fh,this.Qx)));var q;if(AO(this)&&(((q=this.T)==null?0:q.isEnabled)||this.qD>0)){var d;c-=((d=this.T)==null?0:d.isEnabled)?v8(this):this.qD}q=void 0;AO(this)&&!this.api.C("web_player_hide_fine_scrubbing_edu")&&(q="Pull up for precise seeking",this.x3||(this.x3=!0,this.api.logVisibility(this.OD,this.x3)));this.tooltip.c_(J,m, +W,!!E,c,l,e,q)}else this.tooltip.c_(J,m,W,!!E,c);g.FE(this.api.getRootNode(),"ytp-progress-bar-hover");pGs(this)}; +g.F.Foi=function(){this.WK();g.lI(this.api.getRootNode(),"ytp-progress-bar-hover");this.Qx&&(this.Qx=!1,this.api.logVisibility(this.fh,this.Qx));this.x3&&(this.x3=!1,this.api.logVisibility(this.OD,this.x3))}; +g.F.b1f=function(z,J){AO(this)&&this.T&&(this.T.x3?gl(this.T,this.api.getCurrentTime()):UBE(this.T),this.T.show(),g.qt(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.T.isEnabled));this.gW&&(this.gW.dispose(),this.gW=null);this.Xy=J;this.SC=this.api.getCurrentTime();this.K.length>1&&this.Tf!==-1?this.api.seekTo(this.K[this.Tf].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(R_(this,ut(this)),!1,void 0,void 0,7);g.FE(this.element,"ytp-drag");(this.s4=this.api.getPlayerStateObject().isOrWillBePlaying())&& +this.api.pauseVideo()}; +g.F.O16=function(){if(AO(this)&&this.T){var z=v8(this);this.qD>=z*.5?(this.T.enable(),gl(this.T,this.api.getCurrentTime()),DIs(this,z)):zl(this)}if(g.R(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var J;if((J=this.T)==null?0:J.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.K.length>1&&this.Tf!==-1)this.api.C("html5_enable_progress_bar_slide_seek_logging")&&kI(this,this.SC,this.K[this.Tf].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", +"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.K[this.Tf].startTime/1E3,void 0,void 0,void 0,7);else{z=R_(this,ut(this));this.api.C("html5_enable_progress_bar_slide_seek_logging")&&kI(this,this.SC,z,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(z,void 0,void 0,void 0,7);J=g.y(this.heatMarkersDecorations);for(var m=J.next();!m.done;m=J.next())m=m.value,z*1E3>=m.visibleTimeRangeStartMillis&&z*1E3<=m.visibleTimeRangeEndMillis&& +this.api.logClick(this.qx)}g.lI(this.element,"ytp-drag");this.s4&&!g.R(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; +g.F.Bsh=function(z,J){z=ut(this);z=R_(this,z);this.api.seekTo(z,!1,void 0,void 0,7);var m;AO(this)&&((m=this.T)==null?0:m.x3)&&(gl(this.T,z),this.T.isEnabled||(m=v8(this),this.qD=g.O8(this.Xy-J-10,0,m),DIs(this,this.qD)))}; +g.F.WK=function(){this.tooltip.eP()}; +g.F.aE=function(){this.ib||(this.updateValue("clipstarticon",wjb()),this.updateValue("clipendicon",wjb()),g.FE(this.element,"ytp-clip-hover"))}; +g.F.GF=function(){this.ib||(this.updateValue("clipstarticon",dqq()),this.updateValue("clipendicon",q0E()),g.lI(this.element,"ytp-clip-hover"))}; +g.F.eU=function(){this.clipStart=0;this.clipEnd=Infinity;L_(this);H8(this,this.B,this.yH)}; +g.F.iF4=function(z){z=g.y(z);for(var J=z.next();!J.done;J=z.next())if(J=J.value,J.visible){var m=J.getId();if(!this.Gf[m]){var e=g.EX("DIV");J.tooltip&&e.setAttribute("data-tooltip",J.tooltip);this.Gf[m]=J;this.ub[m]=e;g.EE(e,J.style);XG4(this,m);this.api.W().C("disable_ad_markers_on_content_progress_bar")||this.K[0].U.appendChild(e)}}else fdE(this,J)}; +g.F.nih=function(z){z=g.y(z);for(var J=z.next();!J.done;J=z.next())fdE(this,J.value)}; +g.F.ew=function(z){this.T&&(this.T.onExit(z!=null),zl(this))}; +g.F.pP=function(z){this.T&&(this.T.play(z!=null),zl(this))}; +g.F.hBF=function(){bku(this,this.api.Bm())}; +g.F.oy=function(){bku(this,!1);g.py.prototype.oy.call(this)};g.p(Jt,g.U);Jt.prototype.isActive=function(){return!!this.G.getOption("remote","casting")}; +Jt.prototype.MD=function(){var z=!1;this.G.getOptions().includes("remote")&&(z=this.G.getOption("remote","receivers").length>1);this.T4(z&&this.G.zf().getPlayerSize().width>=400);this.G.logVisibility(this.element,this.oT);var J=1;z&&this.isActive()&&(J=2);if(this.K!==J){this.K=J;switch(J){case 1:this.updateValue("icon",{D:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},N:[{D:"path",xQ:!0,j:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z", +fill:"#fff"}}]});break;case 2:this.updateValue("icon",g.lxR())}g.qt(this.element,"ytp-remote-button-active",this.isActive())}}; +Jt.prototype.T=function(){if(this.G.getOption("remote","quickCast"))this.G.setOption("remote","quickCast",!0);else{var z=this.Yu,J=this.element;if(z.yy())z.JZ();else{z.initialize();a:{var m=g.y(z.Q8.items);for(var e=m.next();!e.done;e=m.next())if(e=e.value,e.priority===1){m=e;break a}m=null}m&&(m.open(),z.sD(J));z.sD(J)}}this.G.logClick(this.element)};g.p(mn,g.U);mn.prototype.K=function(z){var J=this.G.W(),m=400;this.G.C("web_player_small_hbp_settings_menu")&&J.Y?m=300:J.X&&(m=200);z=this.T&&z.width>=m;this.T4(z);this.G.C("embeds_use_parent_visibility_in_ve_logging")?this.G.logVisibility(this.element,z&&this.Z):this.G.logVisibility(this.element,z)}; +mn.prototype.S=function(){if(this.Yu.oT)this.Yu.JZ();else{var z=g.C7(this.G.UC());z&&!z.loaded&&(z.EL("tracklist",{includeAsr:!0}).length||z.load());this.G.logClick(this.element);this.Yu.sD(this.element)}}; +mn.prototype.updateBadge=function(){var z=this.G.isHdr(),J=this.G.getPresentingPlayerType(),m=J!==2&&J!==3,e=g.x2(this.G),T=m&&!!g.gd(this.G.UC());J=T&&e.displayMode===1;e=T&&e.displayMode===2;m=(T=J||e)||!m?null:this.G.getPlaybackQuality();g.qt(this.element,"ytp-hdr-quality-badge",z);g.qt(this.element,"ytp-hd-quality-badge",!z&&(m==="hd1080"||m==="hd1440"));g.qt(this.element,"ytp-4k-quality-badge",!z&&m==="hd2160");g.qt(this.element,"ytp-5k-quality-badge",!z&&m==="hd2880");g.qt(this.element,"ytp-8k-quality-badge", +!z&&m==="highres");g.qt(this.element,"ytp-3d-badge-grey",!z&&T&&J);g.qt(this.element,"ytp-3d-badge",!z&&T&&e)};g.p(eH,Zy);eH.prototype.isLoaded=function(){var z=g.DT(this.G.UC());return z!==void 0&&z.loaded}; +eH.prototype.MD=function(){g.DT(this.G.UC())!==void 0&&this.G.getPresentingPlayerType()!==3?this.K||(this.Yu.AX(this),this.K=!0):this.K&&(this.Yu.RW(this),this.K=!1);FO(this,this.isLoaded())}; +eH.prototype.onSelect=function(z){this.isLoaded();z?this.G.loadModule("annotations_module"):this.G.unloadModule("annotations_module");this.G.publish("annotationvisibility",z)}; +eH.prototype.oy=function(){this.K&&this.Yu.RW(this);Zy.prototype.oy.call(this)};g.p(Tl,g.jG);Tl.prototype.MD=function(){var z=this.G.getAvailableAudioTracks();z.length>1?(this.nV(g.Ch(z,this.K)),this.tracks=g.It(z,this.K,this),this.countLabel.ws(z.length?" ("+z.length+")":""),this.publish("size-change"),this.iz(this.K(this.G.getAudioTrack())),this.enable(!0)):this.enable(!1)}; +Tl.prototype.MA=function(z){g.jG.prototype.MA.call(this,z);this.G.setAudioTrack(this.tracks[z]);this.Yu.Zf()}; +Tl.prototype.K=function(z){return z.toString()};g.p(EV,Zy); +EV.prototype.T=function(){var z=this.G.getPresentingPlayerType();if(z!==2&&z!==3&&g.A3(this.G))this.K||(this.Yu.AX(this),this.K=!0,this.S.push(this.L(this.G,"videodatachange",this.T)),this.S.push(this.L(this.G,"videoplayerreset",this.T)),this.S.push(this.L(this.G,"onPlaylistUpdate",this.T)),this.S.push(this.L(this.G,"autonavchange",this.U)),z=this.G.getVideoData(),this.U(z.autonavState),this.G.logVisibility(this.element,this.K));else if(this.K){this.Yu.RW(this);this.K=!1;z=g.y(this.S);for(var J=z.next();!J.done;J= +z.next())this.hX(J.value)}}; +EV.prototype.U=function(z){FO(this,z!==1)}; +EV.prototype.onSelect=function(z){this.G.SU(z?2:1);this.K&&(this.G.logVisibility(this.element,this.K),this.G.logClick(this.element))}; +EV.prototype.oy=function(){this.K&&this.Yu.RW(this);Zy.prototype.oy.call(this)};g.p(g1s,g.k2);g1s.prototype.onClick=function(z){z.preventDefault();var J,m;(J=g.pe(this.G))==null||(m=J.o$())==null||m.JZ();var e,T;(e=g.pe(this.G))==null||(T=e.X8())==null||T.sD(z.target)};g.p(xIq,g.jG);g.F=xIq.prototype; +g.F.rS=function(){var z=this.G.getPresentingPlayerType();if(z!==2&&z!==3){this.Tf=this.G.wk();z=this.G.getAvailableQualityLevels();if(this.K){this.U={};var J=g.wd(this.G,"getAvailableQualityData",[]);J=g.y(J);for(var m=J.next();!m.done;m=J.next())m=m.value,this.U[m.qualityLabel]=m;J=Object.keys(this.U);z[z.length-1]==="auto"&&J.push("auto");this.wb=new Set(z)}else if(this.Y){m=g.wd(this.G,"getAvailableQualityData",[]);J=[];m=g.y(m);for(var e=m.next();!e.done;e=m.next())e=e.value,this.B[e.quality]= +e,e.quality&&J.push(e.quality);z[z.length-1]==="auto"&&J.push("auto")}else J=z;g.VTq(this.G)&&this.G.im()&&J.unshift("missing-qualities");Pgj(this.G)&&J.unshift("inline-survey");this.nV(J);z=this.G.getVideoData().cotn?!0:!1;m=this.fh.O9();m=!g.vZ(this.G.W())||!(z===void 0?0:z)||!(m===void 0||m);z=this.T;m=m===void 0?!1:m;z.C_&&g.qt(z.P1("ytp-panel-footer"),"ytp-panel-hide-footer",m===void 0?!1:m);if(J.length){this.xM();this.enable(!0);return}}this.enable(!1)}; +g.F.xM=function(){if(this.K){var z=this.G.getPreferredQuality();this.wb.has(z)&&(this.V=this.G.getPlaybackQuality(),this.Ry=this.G.getPlaybackQualityLabel(),z==="auto"?(this.iz(z),this.ws(this.A7(z))):this.iz(this.Ry))}else z=this.G.getPreferredQuality(),this.options[z]&&(this.V=this.G.getPlaybackQuality(),this.iz(z),z==="auto"&&this.ws(this.A7(z)))}; +g.F.MA=function(z){if(z!=="missing-qualities"){g.jG.prototype.MA.call(this,z);var J=this.K?this.U[z]:this.B[z];var m=J==null?void 0:J.quality,e=J==null?void 0:J.formatId,T=J==null?void 0:J.paygatedQualityDetails;J=T==null?void 0:T.endpoint;if(T){var E;T=(E=this.options[z])==null?void 0:E.element;this.G.logClick(T)}if(this.K){var Z,c;if((Z=g.P(J,g.C9F))==null?0:(c=Z.popup)==null?0:c.notificationActionRenderer)this.G.B1("innertubeCommand",J);else if(J){this.G.B1("innertubeCommand",J);return}e?this.G.setPlaybackQuality(m, +e):this.G.setPlaybackQuality(m)}else{if(this.Y){var W,l;if((W=g.P(J,g.C9F))==null?0:(l=W.popup)==null?0:l.notificationActionRenderer)this.G.B1("innertubeCommand",J);else if(J){this.G.B1("innertubeCommand",J);return}}this.G.setPlaybackQuality(z)}this.Yu.JZ();this.rS()}}; +g.F.open=function(){for(var z=g.y(Object.values(this.options)),J=z.next();!J.done;J=z.next()){J=J.value;var m=void 0;this.G.hasVe((m=J)==null?void 0:m.element)&&(m=void 0,this.G.logVisibility((m=J)==null?void 0:m.element,!0))}g.jG.prototype.open.call(this);this.G.logClick(this.element)}; +g.F.HJ=function(z,J,m){var e=this;if(z==="missing-qualities")return new g.k2({D:"a",Iy:["ytp-menuitem"],j:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.G.W().B,tabindex:"0",role:"menuitemradio"},N:[{D:"div",Iy:["ytp-menuitem-label"],t6:"{{label}}"}]},J,this.A7(z));if(z!=="inline-survey"){var T,E=(T=this.K?this.U[z]:this.B[z])==null?void 0:T.paygatedQualityDetails;T=E==null?void 0:E.veType;E=E==null?void 0:E.trackingParams;J=g.jG.prototype.HJ.call(this,z,J,m);E?(this.G.createServerVe(J.element, +this,!0),this.G.setTrackingParams(J.element,E)):T&&this.G.createClientVe(J.element,this,T,!0);return J}z=[{D:"span",t6:"Looks good?"}];m=g.y([!0,!1]);E=m.next();for(T={};!E.done;T={wz:void 0},E=m.next())T.wz=E.value,E=new g.U({D:"span",J:"ytp-menuitem-inline-survey-response",N:[T.wz?Xjj():O$f()],j:{tabindex:"0",role:"button"}}),E.listen("click",function(Z){return function(){var c=e.G.app.W1();c&&(c.ph("iqsr",{tu:Z.wz}),c.getVideoData().sz=!0);e.Yu.JZ();e.rS()}}(T)),z.push(E); +return new g.k2({D:"div",J:"ytp-menuitem",j:{"aria-disabled":"true"},N:[{D:"div",Iy:["ytp-menuitem-label"],N:z}]},J)}; +g.F.A7=function(z,J){J=J===void 0?!1:J;if(z==="missing-qualities")return{D:"div",t6:"Missing options?"};if(z==="inline-survey")return"";var m=this.Y||this.K?[o1R(this,z,J,!1)]:[A1s(this,z)];var e=this.G.getPreferredQuality();J||e!=="auto"||z!=="auto"||(m.push(" "),this.K?m.push(o1R(this,this.Ry,J,!0,["ytp-menu-label-secondary"])):this.Y?m.push(o1R(this,this.V,J,!0,["ytp-menu-label-secondary"])):m.push(A1s(this,this.V,["ytp-menu-label-secondary"])));return{D:"div",N:m}};g.p(Z9,g.U);Z9.prototype.init=function(){this.updateValue("minvalue",this.Y);this.updateValue("maxvalue",this.V);this.updateValue("stepvalue",this.X);this.updateValue("slidervalue",this.K);j9q(this,this.K)}; +Z9.prototype.U=function(){Fs(this,Number(this.T.value));this.T.focus()}; +Z9.prototype.S=function(z){if(!z.defaultPrevented){switch(z.code){case "ArrowDown":z=-this.X;break;case "ArrowUp":z=this.X;break;default:return}Fs(this,Math.min(this.V,Math.max(Number((this.K+z).toFixed(2)),this.Y)))}};g.p(i$,Z9);i$.prototype.U=function(){Z9.prototype.U.call(this);this.B&&hDs(this)}; +i$.prototype.Tf=function(){this.Ry()}; +i$.prototype.fh=function(){this.G.setPlaybackRate(this.K,!0)}; +i$.prototype.S=function(z){Z9.prototype.S.call(this,z);this.Ry();hDs(this);z.preventDefault()};g.p(ca,g.U);g.F=ca.prototype;g.F.init=function(){this.R2(this.K);this.updateValue("minvalue",this.T);this.updateValue("maxvalue",this.S)}; +g.F.u$=function(z){if(!z.defaultPrevented){switch(z.keyCode){case 37:case 40:var J=-this.X;break;case 39:case 38:J=this.X;break;default:return}this.R2(this.K+J);z.preventDefault()}}; +g.F.WS=function(z){var J=this.K;J+=(z.deltaX||-z.deltaY)<0?-this.B:this.B;this.R2(J);z.preventDefault()}; +g.F.Ao=function(z){z=(z-g.pU(this.U).x)/this.Ry*this.range+this.T;this.R2(z)}; +g.F.R2=function(z,J){J=J===void 0?"":J;z=g.O8(z,this.T,this.S);J===""&&(J=z.toString());this.updateValue("valuenow",z);this.updateValue("valuetext",J);this.fh.style.left=(z-this.T)/this.range*(this.Ry-this.x3)+"px";this.K=z}; +g.F.focus=function(){this.Qx.focus()};g.p(Wa,ca);Wa.prototype.Tf=function(){this.G.setPlaybackRate(this.K,!0)}; +Wa.prototype.R2=function(z){ca.prototype.R2.call(this,z,VCu(this,z).toString());this.Y&&(u$u(this),this.wb())}; +Wa.prototype.updateValues=function(){var z=this.G.getPlaybackRate();VCu(this,this.K)!==z&&(this.R2(z),u$u(this))};g.p(Pps,g.py);Pps.prototype.focus=function(){this.K.focus()};g.p(tC1,Bk);g.p(Hkq,g.jG);g.F=Hkq.prototype;g.F.A7=function(z){return z==="1"?"Normal":z.toLocaleString()}; +g.F.MD=function(){var z,J=(z=this.G.getVideoData())==null?void 0:z.b8();z=this.G.getPresentingPlayerType(J);this.enable(z!==2&&z!==3);knu(this)}; +g.F.nV=function(z){g.jG.prototype.nV.call(this,z);this.V&&this.V.T.focus()}; +g.F.gF=function(z){g.jG.prototype.gF.call(this,z);z?(this.Ry=this.L(this.G,"onPlaybackRateChange",this.onPlaybackRateChange),knu(this),UIq(this,this.G.getPlaybackRate())):(this.hX(this.Ry),this.Ry=null)}; +g.F.onPlaybackRateChange=function(z){var J=this.G.getPlaybackRate();!this.U&&this.B.includes(J)||RDR(this,J);UIq(this,z)}; +g.F.HJ=function(z,J,m){return z===this.K&&LXu(this.G)?g.jG.prototype.HJ.call(this,z,J,m,{D:"div",J:"ytp-speed-slider-menu-footer",N:[this.V]}):g.jG.prototype.HJ.call(this,z,J,m)}; +g.F.MA=function(z){g.jG.prototype.MA.call(this,z);z===this.K?this.G.setPlaybackRate(this.Y,!0):this.G.setPlaybackRate(Number(z),!0);LXu(this.G)&&z===this.K||this.Yu.Zf()}; +g.F.Px=function(z){var J=z===this.K;this.U=!1;J&&l$(this.G)&&!LXu(this.G)?(z=new tC1(this.G),g.bJ(this.Yu,z)):g.jG.prototype.Px.call(this,z)};g.p(v1b,g.jG);g.F=v1b.prototype;g.F.iz=function(z){g.jG.prototype.iz.call(this,z)}; +g.F.Su=function(z){return z.option.toString()}; +g.F.getOption=function(z){return this.settings[z]}; +g.F.A7=function(z){return this.getOption(z).text||""}; +g.F.MA=function(z){g.jG.prototype.MA.call(this,z);this.publish("settingChange",this.setting,this.settings[z].option)};g.p(qw,g.SG);qw.prototype.ra=function(z){for(var J=g.y(Object.keys(z)),m=J.next();!m.done;m=J.next()){var e=m.value;if(m=this.kH[e]){var T=z[e].toString();e=!!z[e+"Override"];m.options[T]&&(m.iz(T),m.U.element.setAttribute("aria-checked",String(!e)),m.K.element.setAttribute("aria-checked",String(e)))}}}; +qw.prototype.Tk=function(z,J){this.publish("settingChange",z,J)};g.p(dM,g.jG);dM.prototype.K=function(z){return z.languageCode}; +dM.prototype.A7=function(z){return this.languages[z].languageName||""}; +dM.prototype.MA=function(z){this.publish("select",z);this.G.logClick(this.element);g.$W(this.Yu)};g.p(zss,g.jG);g.F=zss.prototype;g.F.sV=function(z){return g.xf(z)?"__off__":z.displayName}; +g.F.A7=function(z){return z==="__off__"?"Off":z==="__translate__"?"Auto-translate":z==="__contribute__"?"Add subtitles/CC":z==="__correction__"?"Suggest caption corrections":(z==="__off__"?{}:this.tracks[z]).displayName}; +g.F.MA=function(z){if(z==="__translate__")this.K.open();else if(z==="__contribute__"){this.G.pauseVideo();this.G.isFullscreen()&&this.G.toggleFullscreen();var J=g.j7(this.G.W(),this.G.getVideoData());g.RU(J)}else if(z==="__correction__"){this.G.pauseVideo();this.G.isFullscreen()&&this.G.toggleFullscreen();var m=Jyf(this);IM(this,m);g.jG.prototype.MA.call(this,this.sV(m));var e,T;m=(J=this.G.getVideoData().getPlayerResponse())==null?void 0:(e=J.captions)==null?void 0:(T=e.playerCaptionsTracklistRenderer)== +null?void 0:T.openTranscriptCommand;this.G.B1("innertubeCommand",m);this.Yu.Zf();this.U&&this.G.logClick(this.U)}else{if(z==="__correction__"){this.G.pauseVideo();this.G.isFullscreen()&&this.G.toggleFullscreen();J=Jyf(this);IM(this,J);g.jG.prototype.MA.call(this,this.sV(J));var E,Z;J=(m=this.G.getVideoData().getPlayerResponse())==null?void 0:(E=m.captions)==null?void 0:(Z=E.playerCaptionsTracklistRenderer)==null?void 0:Z.openTranscriptCommand;this.G.B1("innertubeCommand",J)}else this.G.logClick(this.element), +IM(this,z==="__off__"?{}:this.tracks[z]),g.jG.prototype.MA.call(this,z);this.Yu.Zf()}}; +g.F.MD=function(){var z=this.G.getOptions();z=z&&z.indexOf("captions")!==-1;var J=this.G.getVideoData(),m=J&&J.iA,e,T=!((e=this.G.getVideoData())==null||!g.RN(e));e={};if(z||m){var E;if(z){var Z=this.G.getOption("captions","track");e=this.G.getOption("captions","tracklist",{includeAsr:!0});var c=T?[]:this.G.getOption("captions","translationLanguages");this.tracks=g.It(e,this.sV,this);T=g.Ch(e,this.sV);var W,l;Jyf(this)&&((E=J.getPlayerResponse())==null?0:(W=E.captions)==null?0:(l=W.playerCaptionsTracklistRenderer)== +null?0:l.openTranscriptCommand)&&T.push("__correction__");if(c.length&&!g.xf(Z)){if((E=Z.translationLanguage)&&E.languageName){var w=E.languageName;E=c.findIndex(function(q){return q.languageName===w}); +EO1(c,E)}s9q(this.K,c);T.push("__translate__")}E=this.sV(Z)}else this.tracks={},T=[],E="__off__";T.unshift("__off__");this.tracks.__off__={};m&&T.unshift("__contribute__");this.tracks[E]||(this.tracks[E]=Z,T.push(E));this.nV(T);this.iz(E);Z&&Z.translationLanguage?this.K.iz(this.K.K(Z.translationLanguage)):MdR(this.K);z&&this.Y.ra(this.G.getSubtitlesUserSettings());this.countLabel.ws(e&&e.length?" ("+e.length+")":"");this.publish("size-change");this.G.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; +g.F.ge=function(z){var J=this.G.getOption("captions","track");J=g.oi(J);J.translationLanguage=this.K.languages[z];IM(this,J)}; +g.F.Tk=function(z,J){if(z==="reset")this.G.resetSubtitlesUserSettings();else{var m={};m[z]=J;this.G.updateSubtitlesUserSettings(m)}r1u(this,!0);this.V.start();this.Y.ra(this.G.getSubtitlesUserSettings())}; +g.F.mpx=function(z){z||g.z5(this.V)}; +g.F.oy=function(){g.z5(this.V);g.jG.prototype.oy.call(this)}; +g.F.open=function(){g.jG.prototype.open.call(this);this.options.__correction__&&!this.U&&(this.U=this.options.__correction__.element,this.G.createClientVe(this.U,this,167341),this.G.logVisibility(this.U,!0))};g.p(mHs,g.Db);g.F=mHs.prototype; +g.F.initialize=function(){if(!this.isInitialized){var z=this.G.W();this.isInitialized=!0;try{this.Ha=new xIq(this.G,this)}catch(m){g.hr(Error("QualityMenuItem creation failed"))}g.u(this,this.Ha);var J=new zss(this.G,this);g.u(this,J);z.S||(J=new eH(this.G,this),g.u(this,J));z.enableSpeedOptions&&(J=new Hkq(this.G,this),g.u(this,J));(g.fi(z)||z.Y)&&(z.T||z.Lh)&&(J=new g1s(this.G,this),g.u(this,J));z.Zo&&!z.C("web_player_move_autonav_toggle")&&(z=new EV(this.G,this),g.u(this,z));z=new Tl(this.G,this); +g.u(this,z);this.G.publish("settingsMenuInitialized");$Ib(this.settingsButton,this.Q8.q$())}}; +g.F.AX=function(z){this.initialize();this.Q8.AX(z);$Ib(this.settingsButton,this.Q8.q$())}; +g.F.RW=function(z){this.oT&&this.Q8.q$()<=1&&this.hide();this.Q8.RW(z);$Ib(this.settingsButton,this.Q8.q$())}; +g.F.sD=function(z){this.initialize();this.Q8.q$()>0&&g.Db.prototype.sD.call(this,z)}; +g.F.JZ=function(){this.XT?this.XT=!1:g.Db.prototype.JZ.call(this)}; +g.F.show=function(){g.Db.prototype.show.call(this);g.FE(this.G.getRootNode(),"ytp-settings-shown")}; +g.F.hide=function(){g.Db.prototype.hide.call(this);g.lI(this.G.getRootNode(),"ytp-settings-shown")}; +g.F.Yi=function(z){this.G.logVisibility(this.element,z);this.G.publish("settingsMenuVisibilityChanged",z)};g.p(TJE,g.U);g.F=TJE.prototype;g.F.onClick=function(){if(Ehb(this)&&(this.G.toggleSubtitles(),this.G.logClick(this.element),!this.isEnabled())){var z=!1,J=g.UF(g.HR(),65);g.vZ(this.G.W())&&J!=null&&(z=!J);z&&this.G.W().C("web_player_nitrate_promo_tooltip")&&this.G.publish("showpromotooltip",this.element)}}; +g.F.uHz=function(z){var J,m;(J=g.pe(this.G))==null||(m=J.o$())==null||m.sD(z)}; +g.F.isEnabled=function(){return!!this.G.getOption("captions","track").displayName}; +g.F.MD=function(){var z=Ehb(this),J=300;this.G.W().X&&(J=480);if(this.G.W().Y){this.updateValue("title",g.Ke(this.G,"Subtitles/closed captions","c"));this.update({"data-title-no-tooltip":"Subtitles/closed captions"});var m=z}else{if(z)(m=this.P1("ytp-subtitles-button-icon"))==null||m.setAttribute("fill-opacity","1"),this.updateValue("title",g.Ke(this.G,"Subtitles/closed captions","c")),this.update({"data-title-no-tooltip":"Subtitles/closed captions"});else{var e;(e=this.P1("ytp-subtitles-button-icon"))== +null||e.setAttribute("fill-opacity","0.3");this.updateValue("title","Subtitles/closed captions unavailable");this.update({"data-title-no-tooltip":"Subtitles/closed captions unavailable"})}m=!0}this.tooltip.CF();m=m&&this.G.zf().getPlayerSize().width>=J;this.T4(m);this.G.C("embeds_use_parent_visibility_in_ve_logging")?this.G.logVisibility(this.element,m&&this.Z):this.G.logVisibility(this.element,m);z?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; +g.F.bb=function(z){g.U.prototype.bb.call(this,z);this.G.W().C("embeds_use_parent_visibility_in_ve_logging")&&this.G.logVisibility(this.element,this.oT&&z)};g.p(g.OV,g.U);g.F=g.OV.prototype; +g.F.Xq=function(){var z=this.api.zf().getPlayerSize().width,J=this.B;this.api.W().X&&(J=400);J=z>=J&&(!p4(this)||!g.R(this.api.getPlayerStateObject(),64));this.T4(J);g.qt(this.element,"ytp-time-display-allow-autohide",J&&z<400);z=this.api.getProgressState();if(J){J=this.api.getPresentingPlayerType();var m=this.api.getCurrentTime(J,!1);this.T&&(m-=z.airingStart);yb(this)&&(m-=this.ib.startTimeMs/1E3);yb(this)||p4(this)||!this.S||(m-=this.api.getDuration(J,!1));m=g.By(m);this.U!==m&&(this.updateValue("currenttime", +m),this.U=m);J=yb(this)?g.By((this.ib.endTimeMs-this.ib.startTimeMs)/1E3):g.By(this.api.getDuration(J,!1));this.Y!==J&&(this.updateValue("duration",J),this.Y=J)}ZA1(this,z.isAtLiveHead);Fdq(this,this.api.getLoopRange())}; +g.F.onLoopRangeChange=function(z){var J=this.ib!==z;this.ib=z;J&&(this.Xq(),iAz(this))}; +g.F.BL1=function(){this.api.setLoopRange(null)}; +g.F.QsF=function(){this.S=!this.S;this.Xq()}; +g.F.onVideoDataChange=function(z,J,m){this.updateVideoData((this.api.W().C("enable_topsoil_wta_for_halftime")||this.api.W().C("enable_topsoil_wta_for_halftime_live_infra"))&&m===2?this.api.getVideoData(1):J);this.Xq();iAz(this)}; +g.F.updateVideoData=function(z){this.iT=z.isLivePlayback&&!z.yH;this.T=QX(z);this.isPremiere=z.isPremiere;g.qt(this.element,"ytp-live",p4(this))}; +g.F.onClick=function(z){z.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; +g.F.oy=function(){this.K&&this.K();g.U.prototype.oy.call(this)};g.p(Wdu,g.U);g.F=Wdu.prototype;g.F.Jk=function(){var z=this.api.PK();this.S!==z&&(this.S=z,cyq(this,this.api.getVolume(),this.api.isMuted()))}; +g.F.U_=function(z){this.T4(z.width>=350)}; +g.F.Fn=function(z){if(!z.defaultPrevented){var J=z.keyCode,m=null;J===37?m=this.volume-5:J===39?m=this.volume+5:J===36?m=0:J===35&&(m=100);m!==null&&(m=g.O8(m,0,100),m===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(m)),z.preventDefault())}}; +g.F.N_=function(z){var J=z.deltaX||-z.deltaY;z.deltaMode?this.api.setVolume(this.volume+(J<0?-10:10)):this.api.setVolume(this.volume+g.O8(J/10,-10,10));z.preventDefault()}; +g.F.CF1=function(){Nw(this,this.K,!0,this.T,this.api.Uj());this.B=this.volume;this.api.isMuted()&&this.api.unMute()}; +g.F.b$=function(z){var J=this.S?78:52,m=this.S?18:12;z-=g.pU(this.X).x;this.api.setVolume(g.O8((z-m/2)/(J-m),0,1)*100)}; +g.F.EPy=function(){Nw(this,this.K,!1,this.T,this.api.Uj());this.volume===0&&(this.api.mute(),this.api.setVolume(this.B))}; +g.F.onVolumeChange=function(z){cyq(this,z.volume,z.muted)}; +g.F.qO=function(){Nw(this,this.K,this.isDragging,this.T,this.api.Uj())}; +g.F.oy=function(){g.U.prototype.oy.call(this);g.lI(this.V,"ytp-volume-slider-active")};g.p(Gl,Z9);Gl.prototype.onVolumeChange=function(z){if(this.B)this.B=!1;else{var J=z.volume;J===0||z.muted?Fs(this,0):Fs(this,J)}}; +Gl.prototype.U=function(){Z9.prototype.U.call(this);this.Ry(this.K)}; +Gl.prototype.S=function(z){Z9.prototype.S.call(this,z);this.Ry(this.K)}; +Gl.prototype.fh=function(z,J){this.B=!0;z===0||J?this.G.mute():(this.G.isMuted()&&this.G.unMute(),this.G.setVolume(z))};g.p(lpu,g.U);g.p(Xs,g.U); +Xs.prototype.onVideoDataChange=function(){var z=this.api.W();this.yQ();this.visible=!!this.api.getVideoData().videoId&&!g.J3(this.api.getVideoData(1));this.T4(this.visible);this.api.logVisibility(this.element,this.visible&&this.Z);if(this.visible){var J=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",J)}z.S&&(this.K&&(this.hX(this.K),this.K=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.FE(this.element,"no-link")); +J=this.api.W();z=this.api.getVideoData();var m="";J.S||(J=g.Uj(J),J.indexOf("www.")===0&&(J=J.substring(4)),m=g.TD(z)?"Watch on YouTube Music":J==="youtube.com"?"Watch on YouTube":g.NQ("Watch on $WEBSITE",{WEBSITE:J}));this.updateValue("title",m)}; +Xs.prototype.onClick=function(z){this.api.C("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var J=this.api.W(),m=this.api.getVideoUrl(!g.SD(z),!1,!0,!0);if(g.fi(J)){var e={};g.fi(J)&&g.wd(this.api,"addEmbedsConversionTrackingParams",[e]);m=g.v1(m,e)}g.cO(m,this.api,z);this.api.C("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; +Xs.prototype.yQ=function(){var z={D:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},N:[{D:"path",xQ:!0,J:"ytp-svg-fill",j:{d:"M 45.09 10 L 45.09 25.82 L 47.16 25.82 L 47.41 24.76 L 47.47 24.76 C 47.66 25.14 47.94 25.44 48.33 25.66 C 48.72 25.88 49.16 25.99 49.63 25.99 C 50.48 25.99 51.1 25.60 51.5 24.82 C 51.9 24.04 52.09 22.82 52.09 21.16 L 52.09 19.40 C 52.12 18.13 52.05 17.15 51.90 16.44 C 51.75 15.74 51.50 15.23 51.16 14.91 C 50.82 14.59 50.34 14.44 49.75 14.44 C 49.29 14.44 48.87 14.57 48.47 14.83 C 48.27 14.96 48.09 15.11 47.93 15.29 C 47.78 15.46 47.64 15.65 47.53 15.86 L 47.51 15.86 L 47.51 10 L 45.09 10 z M 8.10 10.56 L 10.96 20.86 L 10.96 25.82 L 13.42 25.82 L 13.42 20.86 L 16.32 10.56 L 13.83 10.56 L 12.78 15.25 C 12.49 16.62 12.31 17.59 12.23 18.17 L 12.16 18.17 C 12.04 17.35 11.84 16.38 11.59 15.23 L 10.59 10.56 L 8.10 10.56 z M 30.10 10.56 L 30.10 12.58 L 32.59 12.58 L 32.59 25.82 L 35.06 25.82 L 35.06 12.58 L 37.55 12.58 L 37.55 10.56 L 30.10 10.56 z M 19.21 14.46 C 18.37 14.46 17.69 14.63 17.17 14.96 C 16.65 15.29 16.27 15.82 16.03 16.55 C 15.79 17.28 15.67 18.23 15.67 19.43 L 15.67 21.06 C 15.67 22.24 15.79 23.19 16 23.91 C 16.21 24.62 16.57 25.15 17.07 25.49 C 17.58 25.83 18.27 26 19.15 26 C 20.02 26 20.69 25.83 21.19 25.5 C 21.69 25.17 22.06 24.63 22.28 23.91 C 22.51 23.19 22.63 22.25 22.63 21.06 L 22.63 19.43 C 22.63 18.23 22.50 17.28 22.27 16.56 C 22.04 15.84 21.68 15.31 21.18 14.97 C 20.68 14.63 20.03 14.46 19.21 14.46 z M 56.64 14.47 C 55.39 14.47 54.51 14.84 53.99 15.61 C 53.48 16.38 53.22 17.60 53.22 19.27 L 53.22 21.23 C 53.22 22.85 53.47 24.05 53.97 24.83 C 54.34 25.40 54.92 25.77 55.71 25.91 C 55.97 25.96 56.26 25.99 56.57 25.99 C 57.60 25.99 58.40 25.74 58.96 25.23 C 59.53 24.72 59.81 23.94 59.81 22.91 C 59.81 22.74 59.79 22.61 59.78 22.51 L 57.63 22.39 C 57.62 23.06 57.54 23.54 57.40 23.83 C 57.26 24.12 57.01 24.27 56.63 24.27 C 56.35 24.27 56.13 24.18 56.00 24.02 C 55.87 23.86 55.79 23.61 55.75 23.25 C 55.71 22.89 55.68 22.36 55.68 21.64 L 55.68 21.08 L 59.86 21.08 L 59.86 19.16 C 59.86 17.99 59.77 17.08 59.58 16.41 C 59.39 15.75 59.07 15.25 58.61 14.93 C 58.15 14.62 57.50 14.47 56.64 14.47 z M 23.92 14.67 L 23.92 23.00 C 23.92 24.03 24.11 24.79 24.46 25.27 C 24.82 25.76 25.35 26.00 26.09 26.00 C 27.16 26.00 27.97 25.49 28.5 24.46 L 28.55 24.46 L 28.76 25.82 L 30.73 25.82 L 30.73 14.67 L 28.23 14.67 L 28.23 23.52 C 28.13 23.73 27.97 23.90 27.77 24.03 C 27.57 24.16 27.37 24.24 27.15 24.24 C 26.89 24.24 26.70 24.12 26.59 23.91 C 26.48 23.70 26.43 23.35 26.43 22.85 L 26.43 14.67 L 23.92 14.67 z M 36.80 14.67 L 36.80 23.00 C 36.80 24.03 36.98 24.79 37.33 25.27 C 37.60 25.64 37.97 25.87 38.45 25.96 C 38.61 25.99 38.78 26.00 38.97 26.00 C 40.04 26.00 40.83 25.49 41.36 24.46 L 41.41 24.46 L 41.64 25.82 L 43.59 25.82 L 43.59 14.67 L 41.09 14.67 L 41.09 23.52 C 40.99 23.73 40.85 23.90 40.65 24.03 C 40.45 24.16 40.23 24.24 40.01 24.24 C 39.75 24.24 39.58 24.12 39.47 23.91 C 39.36 23.70 39.31 23.35 39.31 22.85 L 39.31 14.67 L 36.80 14.67 z M 56.61 16.15 C 56.88 16.15 57.08 16.23 57.21 16.38 C 57.33 16.53 57.42 16.79 57.47 17.16 C 57.52 17.53 57.53 18.06 57.53 18.78 L 57.53 19.58 L 55.69 19.58 L 55.69 18.78 C 55.69 18.05 55.71 17.52 55.75 17.16 C 55.79 16.81 55.87 16.55 56.00 16.39 C 56.13 16.23 56.32 16.15 56.61 16.15 z M 19.15 16.19 C 19.50 16.19 19.75 16.38 19.89 16.75 C 20.03 17.12 20.09 17.7 20.09 18.5 L 20.09 21.97 C 20.09 22.79 20.03 23.39 19.89 23.75 C 19.75 24.11 19.51 24.29 19.15 24.30 C 18.80 24.30 18.54 24.11 18.41 23.75 C 18.28 23.39 18.22 22.79 18.22 21.97 L 18.22 18.5 C 18.22 17.7 18.28 17.12 18.42 16.75 C 18.56 16.38 18.81 16.19 19.15 16.19 z M 48.63 16.22 C 48.88 16.22 49.08 16.31 49.22 16.51 C 49.36 16.71 49.45 17.05 49.50 17.52 C 49.55 17.99 49.58 18.68 49.58 19.55 L 49.58 21 L 49.59 21 C 49.59 21.81 49.57 22.45 49.5 22.91 C 49.43 23.37 49.32 23.70 49.16 23.89 C 49.00 24.08 48.78 24.17 48.51 24.17 C 48.30 24.17 48.11 24.12 47.94 24.02 C 47.76 23.92 47.62 23.78 47.51 23.58 L 47.51 17.25 C 47.59 16.95 47.75 16.70 47.96 16.50 C 48.17 16.31 48.39 16.22 48.63 16.22 z "}}]}, +J=28666,m=this.api.getVideoData();this.api.isEmbedsShortsMode()?z={D:"svg",j:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},N:[{D:"path",j:{d:"m.73 13.78 2.57-.05c-.05 2.31.36 3.04 1.34 3.04.95 0 1.34-.61 1.34-1.88 0-1.88-.97-2.83-2.37-4.04C1.47 8.99.55 7.96.55 5.23c0-2.60 1.15-4.14 4.17-4.14 2.91 0 4.12 1.70 3.71 5.20l-2.57.15c.05-2.39-.20-3.22-1.26-3.22-.97 0-1.31.64-1.31 1.82 0 1.77.74 2.31 2.34 3.84 1.98 1.88 3.09 2.98 3.09 5.54 0 3.24-1.26 4.48-4.20 4.48-3.06.02-4.30-1.62-3.78-5.12ZM9.67.74h2.83V4.58c0 1.15-.05 1.95-.15 2.93h.05c.54-1.15 1.44-1.75 2.60-1.75 1.75 0 2.5 1.23 2.5 3.35v9.53h-2.83V9.32c0-1.03-.25-1.54-.90-1.54-.48 0-.92.28-1.23.79V18.65H9.70V.74h-.02ZM18.67 13.27v-1.82c0-4.07 1.18-5.64 3.99-5.64 2.80 0 3.86 1.62 3.86 5.64v1.82c0 3.96-1.00 5.59-3.94 5.59-2.98 0-3.91-1.67-3.91-5.59Zm5 1.03v-3.94c0-1.72-.25-2.60-1.08-2.60-.79 0-1.05.87-1.05 2.60v3.94c0 1.80.25 2.62 1.05 2.62.82 0 1.08-.82 1.08-2.62ZM27.66 6.03h2.19l.25 2.73h.10c.28-2.01 1.21-3.01 2.39-3.01.15 0 .30.02.51.05l-.15 3.27c-1.18-.25-2.13-.05-2.57.72V18.63h-2.73V6.03ZM34.80 15.67V8.27h-1.03V6.05h1.15l.36-3.73h2.11V6.05h1.93v2.21h-1.80v6.98c0 1.18.15 1.44.61 1.44.41 0 .77-.05 1.10-.18l.36 1.80c-.85.41-1.93.54-2.60.54-1.82-.02-2.21-.97-2.21-3.19ZM40.26 14.81l2.39-.05c-.12 1.39.36 2.19 1.21 2.19.72 0 1.13-.46 1.13-1.10 0-.87-.79-1.46-2.16-2.5-1.62-1.23-2.60-2.16-2.60-4.20 0-2.24 1.18-3.32 3.63-3.32 2.60 0 3.63 1.28 3.42 4.35l-2.39.10c-.02-1.90-.28-2.44-1.08-2.44-.77 0-1.10.38-1.10 1.08 0 .97.56 1.44 1.49 2.11 2.21 1.64 3.24 2.47 3.24 4.53 0 2.26-1.28 3.40-3.73 3.40-2.78-.02-3.81-1.54-3.45-4.14Z", +fill:"#fff"}}]}:g.TD(m)&&(z={D:"svg",j:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},N:[{D:"path",j:{d:"M33.96 20.91V15.45L37.43 4.11H34.84L33.52 9.26C33.22 10.44 32.95 11.67 32.75 12.81H32.59C32.48 11.81 32.16 10.50 31.84 9.24L30.56 4.11H27.97L31.39 15.45V20.91H33.96Z",fill:"white"}},{D:"path",j:{d:"M40.92 8.31C37.89 8.31 36.85 10.06 36.85 13.83V15.62C36.85 19.00 37.50 21.12 40.86 21.12C44.17 21.12 44.88 19.10 44.88 15.62V13.83C44.88 10.46 44.20 8.31 40.92 8.31ZM42.21 16.73C42.21 18.37 41.92 19.40 40.87 19.40C39.84 19.40 39.55 18.36 39.55 16.73V12.69C39.55 11.29 39.75 10.04 40.87 10.04C42.05 10.04 42.21 11.36 42.21 12.69V16.73Z", +fill:"white"}},{D:"path",j:{d:"M49.09 21.10C50.55 21.10 51.46 20.49 52.21 19.39H52.32L52.43 20.91H54.42V8.55H51.78V18.48C51.50 18.97 50.85 19.33 50.24 19.33C49.47 19.33 49.23 18.72 49.23 17.70V8.55H46.60V17.82C46.60 19.83 47.18 21.10 49.09 21.10Z",fill:"white"}},{D:"path",j:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{D:"path",j:{d:"M64.69 21.10C66.15 21.10 67.06 20.49 67.81 19.39H67.92L68.03 20.91H70.02V8.55H67.38V18.48C67.10 18.97 66.45 19.33 65.84 19.33C65.07 19.33 64.83 18.72 64.83 17.70V8.55H62.20V17.82C62.20 19.83 62.78 21.10 64.69 21.10Z", +fill:"white"}},{D:"path",j:{d:"M77.49 8.28C76.21 8.28 75.29 8.84 74.68 9.75H74.55C74.63 8.55 74.69 7.53 74.69 6.72V3.45H72.14L72.13 14.19L72.14 20.91H74.36L74.55 19.71H74.62C75.21 20.52 76.12 21.03 77.33 21.03C79.34 21.03 80.20 19.30 80.20 15.62V13.71C80.20 10.27 79.81 8.28 77.49 8.28ZM77.58 15.62C77.58 17.92 77.24 19.29 76.17 19.29C75.67 19.29 74.98 19.05 74.67 18.60V11.25C74.94 10.55 75.54 10.04 76.21 10.04C77.29 10.04 77.58 11.35 77.58 13.74V15.62Z",fill:"white"}},{D:"path",j:{d:"M89.47 13.51C89.47 10.53 89.17 8.32 85.74 8.32C82.51 8.32 81.79 10.47 81.79 13.63V15.80C81.79 18.88 82.45 21.12 85.66 21.12C88.20 21.12 89.51 19.85 89.36 17.39L87.11 17.27C87.08 18.79 86.73 19.41 85.72 19.41C84.45 19.41 84.39 18.20 84.39 16.40V15.56H89.47V13.51ZM85.68 9.98C86.90 9.98 86.99 11.13 86.99 13.08V14.09H84.39V13.08C84.39 11.15 84.47 9.98 85.68 9.98Z", +fill:"white"}},{D:"path",j:{d:"M93.18 20.86H95.50V13.57C95.50 11.53 95.46 9.36 95.30 6.46H95.56L95.99 8.24L98.73 20.86H101.09L103.78 8.24L104.25 6.46H104.49C104.37 9.03 104.30 11.35 104.30 13.57V20.86H106.63V4.06H102.67L101.25 10.27C100.65 12.85 100.22 16.05 99.97 17.68H99.78C99.60 16.02 99.15 12.83 98.56 10.29L97.10 4.06H93.18V20.86Z",fill:"white"}},{D:"path",j:{d:"M111.27 21.05C112.73 21.05 113.64 20.44 114.39 19.34H114.50L114.61 20.86H116.60V8.50H113.96V18.43C113.68 18.92 113.03 19.28 112.42 19.28C111.65 19.28 111.41 18.67 111.41 17.65V8.50H108.78V17.77C108.78 19.78 109.36 21.05 111.27 21.05Z", +fill:"white"}},{D:"path",j:{d:"M121.82 21.12C124.24 21.12 125.59 20.05 125.59 17.86C125.59 15.87 124.59 15.06 122.21 13.44C121.12 12.72 120.53 12.27 120.53 11.21C120.53 10.42 121.02 10.00 121.91 10.00C122.88 10.00 123.21 10.64 123.25 12.46L125.41 12.34C125.59 9.49 124.57 8.27 121.95 8.27C119.47 8.27 118.28 9.34 118.28 11.46C118.28 13.42 119.21 14.31 120.96 15.53C122.51 16.60 123.36 17.27 123.36 18.16C123.36 18.89 122.85 19.42 121.96 19.42C120.94 19.42 120.36 18.54 120.46 17.21L118.27 17.25C117.93 19.81 119.13 21.12 121.82 21.12Z", +fill:"white"}},{D:"path",j:{d:"M128.45 6.93C129.35 6.93 129.77 6.63 129.77 5.39C129.77 4.23 129.32 3.87 128.45 3.87C127.57 3.87 127.14 4.19 127.14 5.39C127.14 6.63 127.55 6.93 128.45 6.93ZM127.23 20.86H129.76V8.50H127.23V20.86Z",fill:"white"}},{D:"path",j:{d:"M135.41 21.06C136.67 21.06 137.38 20.91 137.95 20.37C138.80 19.63 139.15 18.48 139.09 16.54L136.78 16.42C136.78 18.54 136.44 19.34 135.45 19.34C134.36 19.34 134.18 18.15 134.18 15.99V13.43C134.18 11.07 134.41 9.95 135.47 9.95C136.35 9.95 136.70 10.69 136.70 13.05L138.99 12.89C139.15 11.20 138.98 9.82 138.18 9.05C137.58 8.49 136.69 8.27 135.51 8.27C132.48 8.27 131.54 10.19 131.54 13.84V15.53C131.54 19.18 132.25 21.06 135.41 21.06Z", +fill:"white"}}]},J=216163);g.TD(m)?g.FE(this.element,"ytp-youtube-music-button"):g.lI(this.element,"ytp-youtube-music-button");z.j=Object.assign({},z.j,{"aria-hidden":"true"});this.updateValue("logoSvg",z);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,J,!0)}; +Xs.prototype.bb=function(z){g.U.prototype.bb.call(this,z);this.api.logVisibility(this.element,this.visible&&z)};g.p(dHR,g.jl);g.F=dHR.prototype;g.F.kZ=function(){if(this.G.C("web_player_max_seekable_on_ended")||!g.R(this.G.getPlayerStateObject(),2))this.progressBar.Xq(),this.Qx.Xq()}; +g.F.cC=function(){this.qc();if(this.wG.T)this.kZ();else if(this.progressBar.WK(),this.G.C("delhi_modern_web_player")){var z;(z=this.Y)==null||wwb(z,!1)}}; +g.F.jt=function(){this.kZ();this.B.start()}; +g.F.qc=function(){var z;if(z=!this.G.W().T){z=this.progressBar;var J=2*g.Qs()*z.Y;z=z.S.getLength()*1E3/z.api.getPlaybackRate()/J<300}z=z&&this.G.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;J=!z;this.wG.T||(z=J=!1);J?this.Tf||(this.Tf=this.L(this.G,"progresssync",this.kZ)):this.Tf&&(this.hX(this.Tf),this.Tf=null);z?this.B.isActive()||this.B.start():this.B.stop()}; +g.F.yQ=function(){var z=this.G.PK(),J=this.G.zf().getPlayerSize(),m=OAR(this),e=Math.max(J.width-m*2,100);if(this.Hd!==J.width||this.yH!==z){this.Hd=J.width;this.yH=z;var T=pwq(this);this.U.element.style.width=T+"px";this.U.element.style.left=m+"px";g.Syu(this.progressBar,m,T,z);this.G.iF().DM=T}m=this.S;e=Math.min(570*(z?1.5:1),e);z=Math.min(413*(z?1.5:1),Math.round((J.height-C4(this))*.82));m.maxWidth=e;m.maxHeight=z;m.xB();this.qc();this.G.W().C("html5_player_dynamic_bottom_gradient")&&YGu(this.O2, +J.height)}; +g.F.onVideoDataChange=function(){var z=this.G.getVideoData();this.qD.style.background=z.yb?z.Vp:"";this.fh&&ftq(this.fh,z.showSeekingControls);this.Ry&&ftq(this.Ry,z.showSeekingControls)}; +g.F.aT=function(){return this.U.element};g.p(yyj,Kb);g.F=yyj.prototype;g.F.vL=function(z){z.target!==this.dismissButton.element&&(this.onClickCommand&&this.G.B1("innertubeCommand",this.onClickCommand),this.tF())}; +g.F.tF=function(){this.enabled=!1;this.B.hide()}; +g.F.onVideoDataChange=function(z,J){z==="dataloaded"&&NJu(this);z=[];var m,e,T,E;if(J=(E=g.P((m=J.getWatchNextResponse())==null?void 0:(e=m.playerOverlays)==null?void 0:(T=e.playerOverlayRenderer)==null?void 0:T.suggestedActionsRenderer,zvO))==null?void 0:E.suggestedActions)for(m=g.y(J),e=m.next();!e.done;e=m.next())(e=g.P(e.value,J59))&&g.P(e.trigger,rs1)&&z.push(e);if(z.length!==0){m=[];z=g.y(z);for(e=z.next();!e.done;e=z.next())if(e=e.value,T=g.P(e.trigger,rs1))E=(E=e.title)?g.GZ(E):"View Chapters", +J=T.timeRangeStartMillis,T=T.timeRangeEndMillis,J!=null&&T!=null&&e.tapCommand&&(m.push(new g.Ec(J,T,{priority:9,namespace:"suggested_action_button_visible",id:E})),this.suggestedActions[E]=e.tapCommand);this.G.U4(m)}}; +g.F.lQ=function(){return this.enabled}; +g.F.Yi=function(){this.enabled?this.h6.start():Cb(this);this.WU()}; +g.F.oy=function(){NJu(this);Kb.prototype.oy.call(this)};var nk={},K4=(nk.CHANNEL_NAME="ytp-title-channel-name",nk.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",nk.LINK="ytp-title-link",nk.SESSIONLINK="yt-uix-sessionlink",nk.SUBTEXT="ytp-title-subtext",nk.TEXT="ytp-title-text",nk.TITLE="ytp-title",nk);g.p(Ba,g.U);Ba.prototype.onClick=function(z){this.api.logClick(this.element);var J=this.api.W(),m=this.api.getVideoUrl(!g.SD(z),!1,!0);g.fi(J)&&(J={},g.wd(this.api,"addEmbedsConversionTrackingParams",[J]),m=g.v1(m,J));g.cO(m,this.api,z)}; +Ba.prototype.MD=function(){var z=this.api.getVideoData(),J=this.api.W();this.updateValue("title",z.title);var m={D:"a",J:K4.CHANNEL_NAME,j:{href:"{{channelLink}}",target:"_blank"},t6:"{{channelName}}"};this.api.W().S&&(m={D:"span",J:K4.CHANNEL_NAME,t6:"{{channelName}}",j:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",m);Gz1(this);this.api.getPresentingPlayerType()===2&&(m=this.api.getVideoData(),m.videoId&&m.isListed&&m.author&&m.GS&&m.profilePicture?(this.updateValue("channelLink", +m.GS),this.updateValue("channelName",m.author),this.updateValue("channelTitleFocusable","0")):Gz1(this));m=J.externalFullscreen||!this.api.isFullscreen()&&J.US;g.qt(this.link,K4.FULLERSCREEN_LINK,m);J.fh||!z.videoId||m||g.J3(z)||J.S?this.K&&(this.updateValue("url",null),this.hX(this.K),this.K=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.K||(this.K=this.L(this.link,"click",this.onClick)));J.S&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.fi(J)?z.expandedTitle: +z.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.p(g.SH,g.U);g.F=g.SH.prototype;g.F.setEnabled=function(z){if(this.type!=null)if(z)switch(this.type){case 3:case 2:nh4(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.V=z}; +g.F.c_=function(z,J,m,e,T,E,Z,c){if(!this.wb||this.env.X){this.type===3&&this.WK();this.type!==1&&(g.EE(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.V&&this.fade.show(),this.T&&this.T.dispose(),(this.T=this.api.LF())&&this.T.subscribe("l",this.hR,this));if(c){var W=g.G6(this.bg).height||141;this.x3.style.bottom=W+2+"px"}else this.x3.style.display="none";this.update({text:m,title:E!=null?E:"",eduText:c!=null?c:""});g.qt(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!E);this.api.isInline()&& +g.FE(this.bottomText,"ytp-modern-tooltip-text");g.qt(this.element,"ytp-text-detail",!!e);m=-1;this.T&&(m=Ac(this.T,243*this.scale),this.env.C("web_l3_storyboard")&&this.T.levels.length===4&&(m=this.T.levels.length-1),m=qUj(this.T,m,J));CPz(this,m);if(Z)switch(J=g.G6(this.element).width,Z){case 1:this.title.style.right="0";this.title.style.textAlign="left";break;case 2:this.title.style.right=J+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=J/2+"px",this.title.style.textAlign= +"center"}Ydz(this,!!e,z,T)}}; +g.F.eP=function(){this.type===1&&this.WK()}; +g.F.Ce=function(z,J){if(this.type)if(this.type===3)this.WK();else return;Xw4(this,z,3,J)}; +g.F.CF=function(){this.K&&!this.X&&this.K.hasAttribute("title")&&(this.S=this.K.getAttribute("title")||"",this.K.removeAttribute("title"),this.V&&nh4(this))}; +g.F.hR=function(z,J){z<=this.U&&this.U<=J&&(z=this.U,this.U=NaN,CPz(this,z))}; +g.F.ewh=function(){lgE(this.T,this.U,243*this.scale)}; +g.F.WK=function(){switch(this.type){case 2:var z=this.K;z.removeEventListener("mouseout",this.B);z.addEventListener("mouseover",this.Y);z.removeEventListener("blur",this.B);z.addEventListener("focus",this.Y);apj(this);break;case 3:apj(this);break;case 1:this.T&&(this.T.unsubscribe("l",this.hR,this),this.T=null),this.api.removeEventListener("videoready",this.Ry),this.fh.stop()}this.type=null;this.V&&this.fade.hide()}; +g.F.dl=function(){if(this.K)for(var z=0;z=0;J--)if(this.f9[J]===z){this.f9.splice(J,1);break}$N(this.wG,64,this.f9.length>0)}; +g.F.dR=function(){this.api.Mh()&&this.api.YK();return!!this.e2||bAq(this)||g.P_.prototype.dR.call(this)}; +g.F.A_=TE(3);g.F.hc=TE(7);g.F.Zg=TE(10); +g.F.gm=function(){var z=!this.dR(),J=z&&this.api.Mh()&&!g.R(this.api.getPlayerStateObject(),2)&&!g.J3(this.api.getVideoData())&&!this.api.W().S&&!this.api.isEmbedsShortsMode(),m=this.qt&&g.b8(this.api)&&g.R(this.api.getPlayerStateObject(),128);z||m?(this.R0.show(),this.fM.show()):(this.R0.hide(),this.fM.hide(),this.api.dl(this.sL.element));J?this.Wm.sD():this.Wm.JZ();this.lU&&Ipq(this.lU,this.JH||!z);this.api.C("web_player_hide_overflow_button_if_empty_menu")&&$Hq(this);g.P_.prototype.gm.call(this)}; +g.F.nL=function(z,J,m,e,T){z.style.left="";z.style.top="";z.style.bottom="";var E=g.G6(z),Z=e||this.lU&&g.lV(this.lU.aT(),J),c=e=null;m!=null&&Z||(e=g.G6(J),c=g.y5(J,this.api.getRootNode()),m==null&&(m=c.x+e.width/2));m-=E.width/2;Z?(J=this.lU,e=OAR(J),c=pwq(J),Z=this.api.zf().getPlayerSize().height,m=g.O8(m,e,e+c-E.width),E=Z-C4(J)-E.height):g.lV(this.sL.element,J)?(J=this.api.zf().getPlayerSize().width,m=g.O8(m,12,J-E.width-12),E=this.PK()?this.T0:this.KK,this.api.W().playerStyle==="gvn"&&(E+=20), +this.qt&&(E-=this.PK()?26:18)):(J=this.api.zf().getPlayerSize(),m=g.O8(m,12,J.width-E.width-12),E=c.y>(J.height-e.height)/2?c.y-E.height-12:c.y+e.height+12);z.style.top=E+(T||0)+"px";z.style.left=m+"px"}; +g.F.cC=function(z){z&&(this.api.dl(this.sL.element),this.lU&&this.api.dl(this.lU.aT()));this.pG&&(g.qt(this.contextMenu.element,"ytp-autohide",z),g.qt(this.contextMenu.element,"ytp-autohide-active",!0));g.P_.prototype.cC.call(this,z)}; +g.F.C2=function(){g.P_.prototype.C2.call(this);this.pG&&(g.qt(this.contextMenu.element,"ytp-autohide-active",!1),this.pG&&(this.contextMenu.hide(),this.FE&&this.FE.hide()))}; +g.F.eY=function(z,J){var m=this.api.zf().getPlayerSize();m=new g.T6(0,0,m.width,m.height);if(z||this.wG.T&&!this.dR()){if(this.api.W().jY||J)z=this.PK()?this.T0:this.KK,m.top+=z,m.height-=z;this.lU&&(m.height-=C4(this.lU))}return m}; +g.F.Jk=function(z){var J=this.api.getRootNode();z?J.parentElement?(J.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.W().externalFullscreen||(J.parentElement.insertBefore(this.A1.element,J),J.parentElement.insertBefore(this.WZ.element,J.nextSibling))):g.jk(Error("Player not in DOM.")):(J.setAttribute("aria-label","YouTube Video Player"),this.A1.detach(),this.WZ.detach());this.yQ();this.b7()}; +g.F.PK=function(){var z=this.api.W();return this.api.isFullscreen()&&!z.X||!1}; +g.F.showControls=function(z){this.Y9=!z;this.gm()}; +g.F.yQ=function(){var z=this.PK();this.tooltip.scale=z?1.5:1;this.contextMenu&&g.qt(this.contextMenu.element,"ytp-big-mode",z);this.gm();this.api.C("web_player_hide_overflow_button_if_empty_menu")||$Hq(this);this.b7();var J=this.api.isEmbedsShortsMode();J&&z?(z=(this.api.zf().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.FR(this.sL.element,"padding-left",z+"px"),g.FR(this.sL.element,"padding-right",z+"px")):J&&(g.FR(this.sL.element,"padding-left",""),g.FR(this.sL.element,"padding-right", +""));g.P_.prototype.yQ.call(this)}; +g.F.m4=function(){if(bAq(this)&&!g.b8(this.api))return!1;var z=this.api.getVideoData();return!g.fi(this.api.W())||this.api.getPresentingPlayerType()===2||!this.pB||((z=this.pB||z.pB)?(z=z.embedPreview)?(z=z.thumbnailPreviewRenderer,z=z.videoDetails&&g.P(z.videoDetails,vAR)||null):z=null:z=null,z&&z.collapsedRenderer&&z.expandedRenderer)?g.P_.prototype.m4.call(this):!1}; +g.F.b7=function(){g.P_.prototype.b7.call(this);this.api.logVisibility(this.title.element,!!this.Ei);this.Ss&&this.Ss.bb(!!this.Ei);this.channelAvatar.bb(!!this.Ei);this.overflowButton&&this.overflowButton.bb(this.iU()&&!!this.Ei);this.shareButton&&this.shareButton.bb(!this.iU()&&!!this.Ei);this.t0&&this.t0.bb(!this.iU()&&!!this.Ei);this.searchButton&&this.searchButton.bb(!this.iU()&&!!this.Ei);this.copyLinkButton&&this.copyLinkButton.bb(!this.iU()&&!!this.Ei);if(!this.Ei){this.api.dl(this.sL.element); +for(var z=0;z5&&J.ph("glrs",{cmt:m});J.seekTo(0,{seekSource:58});J.ph("glrre",{cmt:m})}}; +$6.prototype.oy=function(){this.K=null;g.h.prototype.oy.call(this)};g.p(g.gM,zX);g.F=g.gM.prototype;g.F.isView=function(){return!0}; +g.F.TQ=function(){var z=this.mediaElement.getCurrentTime();if(z1;l1(z.eC(),e-.01)&&!T&&(Mw(this,4),m.isActive=!1,m.wx=m.wx||m.isActive,(this.Z===1?this.K:this.T).ph("sbh",{}),J.isActive=!0,J.wx=J.wx||J.isActive,this.Z!==0&&(this.K.getVideoData().xq=!0));z=this.U.T;if(this.U.K.isActive&&z.isActive&&(Mw(this,5),this.Z!==0)){z=this.T.M$();m=this.K.M$(); +this.K.ph("sbs",{citag:m==null?void 0:m.itag,nitag:z==null?void 0:z.itag});this.T.ph("gitags",{pitag:m==null?void 0:m.itag,citag:z==null?void 0:z.itag});var E;(E=this.T)==null||E.rr()}}}; +g.F.CE=function(){this.X9()&&this.Cs("player-reload-after-handoff")}; +g.F.Cs=function(z,J){J=J===void 0?{}:J;if(!this.mF()&&this.status.status!==6){var m=this.status.status>=4&&z!=="player-reload-after-handoff";this.status={status:Infinity,error:z};if(this.K&&this.T){var e=this.T.getVideoData().clientPlaybackNonce;this.K.Br(new Sl("dai.transitionfailure",Object.assign(J,{cpn:e,transitionTimeMs:this.XF,msg:z})));this.K.QM(m)}this.Xm.reject(z);this.dispose()}}; +g.F.X9=function(){return this.status.status>=4&&this.status.status<6}; +g.F.oy=function(){UHb(this);this.K.unsubscribe("newelementrequired",this.CE,this);if(this.S){var z=this.S.T;this.S.K.Ul.unsubscribe("updateend",this.N0,this);z.Ul.unsubscribe("updateend",this.N0,this)}g.h.prototype.oy.call(this)}; +g.F.IK=function(z){g.yK(z,128)&&this.Cs("player-error-event")};g.p(At,g.h);At.prototype.clearQueue=function(z,J){z=z===void 0?!1:z;J=J===void 0?!1:J;this.U&&this.U.reject("Queue cleared");this.app.W().C("html5_gapless_fallback_on_qoe_restart_v2")||J&&this.T&&this.T.QM(!1);oM(this,z)}; +At.prototype.As=function(){return!this.K}; +At.prototype.X9=function(){var z;return((z=this.S)==null?void 0:z.X9())||!1}; +At.prototype.oy=function(){oM(this);g.h.prototype.oy.call(this)};g.p(ryq,g.wF);g.F=ryq.prototype;g.F.getVisibilityState=function(z,J,m,e,T,E,Z,c){return z?4:Un1()?3:J?2:m?1:e?5:T?7:E?8:Z?9:c?10:0}; +g.F.V2=function(z){this.fullscreen!==z&&(this.fullscreen=z,this.Yi())}; +g.F.setMinimized=function(z){this.T!==z&&(this.T=z,this.Yi())}; +g.F.setInline=function(z){this.inline!==z&&(this.inline=z,this.Yi())}; +g.F.JF=function(z){this.pictureInPicture!==z&&(this.pictureInPicture=z,this.Yi())}; +g.F.setSqueezeback=function(z){this.S!==z&&(this.S=z,this.Yi())}; +g.F.FS=function(z){this.U!==z&&(this.U=z,this.Yi())}; +g.F.Q$=function(){return this.K}; +g.F.dD=function(){return this.fullscreen!==0}; +g.F.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; +g.F.cZ=function(){return this.fullscreen}; +g.F.isMinimized=function(){return this.T}; +g.F.isInline=function(){return this.inline}; +g.F.isBackground=function(){return Un1()}; +g.F.Hz=function(){return this.pictureInPicture}; +g.F.wp=function(){return!1}; +g.F.m3=function(){return this.S}; +g.F.HW=function(){return this.U}; +g.F.Yi=function(){this.publish("visibilitychange");var z=this.getVisibilityState(this.Q$(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.Hz(),this.wp(),this.m3(),this.HW());z!==this.Y&&this.publish("visibilitystatechange");this.Y=z}; +g.F.oy=function(){L7u(this.Z);g.wF.prototype.oy.call(this)};g.F=g.jH.prototype;g.F.addCueRange=function(){}; +g.F.TR=function(){}; +g.F.z$=function(){}; +g.F.kD=function(){return!1}; +g.F.yM=function(){return!1}; +g.F.Os=function(){return!1}; +g.F.CK=function(){}; +g.F.vy=function(){}; +g.F.Ll=function(){}; +g.F.vu=function(){}; +g.F.YX=function(){return[]}; +g.F.CR=function(){}; +g.F.zU=function(){return""}; +g.F.getAudioTrack=function(){return this.getVideoData().zs}; +g.F.getAvailableAudioTracks=function(){return[]}; +g.F.wk=function(){return[]}; +g.F.I8=function(){return[]}; +g.F.Js=function(){return[]}; +g.F.Ji=function(){}; +g.F.Ap=function(){return 0}; +g.F.WP=function(){return""}; +g.F.getCurrentTime=function(){return 0}; +g.F.Ma=function(){}; +g.F.M$=function(){}; +g.F.kQ=function(){return{}}; +g.F.getDuration=function(){return 0}; +g.F.OS=function(){return 0}; +g.F.Hk=function(){return 0}; +g.F.KX=function(){return!1}; +g.F.oB=function(){return 0}; +g.F.X2=function(){return 0}; +g.F.G8=TE(15);g.F.Wt=function(){return 0}; +g.F.aV=function(){return!1}; +g.F.YV=function(){return 0}; +g.F.Vv=function(){return null}; +g.F.Ki=function(){return null}; +g.F.JX=function(){return 0}; +g.F.HV=function(){return 0}; +g.F.Vb=function(){return g.D(function(z){g.nq(z)})}; +g.F.A0=TE(21);g.F.getPlaybackQuality=function(){return"auto"}; +g.F.getPlaybackRate=function(){return 1}; +g.F.getPlayerState=function(){this.playerState||(this.playerState=new g.E3);return this.playerState}; +g.F.getPlayerType=function(){return 0}; +g.F.getPlaylistSequenceForTime=function(){return null}; +g.F.gG=function(){return function(){}}; +g.F.Qo=function(){return""}; +g.F.getPreferredQuality=function(){return"unknown"}; +g.F.Z8=function(){}; +g.F.getProximaLatencyPreference=function(){return 0}; +g.F.Zx=function(){return tc}; +g.F.LF=function(){return null}; +g.F.getStoryboardFormat=function(){return null}; +g.F.getStreamTimeOffset=function(){return 0}; +g.F.Bz=function(){return 0}; +g.F.Kr=function(){return 0}; +g.F.jF=function(){return{Gm:[],yR:[],currentTime:0,GW:"",droppedVideoFrames:0,isGapless:!1,As:!0,iZ:0,mD:0,ZV:0,EE:0,C7:0,M2:[],oE:[],KC:null,playerState:this.getPlayerState(),ZC:null,x5:"",totalVideoFrames:0}}; +g.F.getUserAudio51Preference=function(){return 0}; +g.F.getUserPlaybackQualityPreference=function(){return""}; +g.F.getVideoData=function(){this.videoData||(this.videoData=new g.H$(this.yx));return this.videoData}; +g.F.CS=function(){return null}; +g.F.uF=function(){}; +g.F.getVideoLoadedFraction=function(){return 0}; +g.F.Vu=function(){}; +g.F.handleError=function(){}; +g.F.QM=function(){}; +g.F.At=function(){}; +g.F.hM=function(){return!1}; +g.F.bR=TE(46);g.F.du=function(){return!1}; +g.F.hasSupportedAudio51Tracks=function(){return!1}; +g.F.C$=function(){return!1}; +g.F.Q$=function(){return!1}; +g.F.isAtLiveHead=function(){return!1}; +g.F.AQ=function(){return!0}; +g.F.isGapless=function(){return!1}; +g.F.isHdr=function(){return!1}; +g.F.nS=function(){return!1}; +g.F.E8=function(){return!1}; +g.F.D0=function(){return!1}; +g.F.isProximaLatencyEligible=function(){return!1}; +g.F.As=function(){return!0}; +g.F.YI=function(){return!1}; +g.F.zH=function(){return!1}; +g.F.Z0=function(){return!1}; +g.F.N2=function(){}; +g.F.Yq=function(){}; +g.F.xY=function(){}; +g.F.zM=function(){}; +g.F.rr=function(){}; +g.F.l5=function(){}; +g.F.RX=function(){}; +g.F.Te=function(){}; +g.F.Pb=function(){}; +g.F.Q2=TE(56);g.F.mA=TE(27);g.F.Hf=function(){}; +g.F.zF=function(){}; +g.F.pauseVideo=function(){}; +g.F.playVideo=function(){return g.D(function(z){return z.return()})}; +g.F.mu=function(){}; +g.F.E9=TE(33);g.F.IW=TE(39);g.F.Nk=function(){}; +g.F.ph=function(){}; +g.F.D_=function(){}; +g.F.YH=function(){}; +g.F.Qi=function(){}; +g.F.Br=function(){}; +g.F.O5=function(){}; +g.F.t5=function(){}; +g.F.oe=function(){}; +g.F.ZN=function(){}; +g.F.gN=function(){}; +g.F.K4=function(){}; +g.F.Gk=function(){}; +g.F.Zp=function(){}; +g.F.removeCueRange=function(){}; +g.F.i5=function(){}; +g.F.c7=function(){return[]}; +g.F.i7=function(){}; +g.F.OL=function(){}; +g.F.iS=function(){}; +g.F.sb=function(){}; +g.F.YS=function(){}; +g.F.Dg=function(){}; +g.F.Ie=function(){}; +g.F.seekTo=function(){}; +g.F.sendAbandonmentPing=function(){}; +g.F.sendVideoStatsEngageEvent=function(){}; +g.F.DE=function(){}; +g.F.Vi=function(){}; +g.F.setLoop=function(){}; +g.F.L4=function(){}; +g.F.setMediaElement=function(){}; +g.F.XS=function(){}; +g.F.setPlaybackRate=function(){}; +g.F.O4=function(){}; +g.F.MH=function(){}; +g.F.Zb=function(){}; +g.F.setProximaLatencyPreference=function(){}; +g.F.gR=function(){}; +g.F.Ne=function(){}; +g.F.L9=function(){}; +g.F.Bf=function(){}; +g.F.A5=function(){}; +g.F.setUserAudio51Preference=function(){}; +g.F.mz=function(){}; +g.F.Ep=function(){return!1}; +g.F.dk=function(){}; +g.F.Mw=function(){return!1}; +g.F.MF=function(){}; +g.F.HE=function(){}; +g.F.kB=function(){}; +g.F.stopVideo=function(){}; +g.F.subscribe=function(){return NaN}; +g.F.qw=function(){}; +g.F.togglePictureInPicture=function(){}; +g.F.AT=function(){return 0}; +g.F.unsubscribe=function(){return!1}; +g.F.cQ=function(){}; +g.F.I2=function(){return!1}; +g.F.A4=function(){}; +g.F.NQ=function(){}; +g.F.I0=function(){}; +g.F.us=function(){};g.p(g.ht,g.h);g.F=g.ht.prototype;g.F.Kq=function(){return this.Z}; +g.F.J5=function(z){this.Z=z}; +g.F.W1=function(){return this.T}; +g.F.E6=function(z){this.T=z}; +g.F.YO=TE(52);g.F.s5=TE(54);g.F.tX=function(z){return z?z===1?this.Z:this.T.getVideoData().enableServerStitchedDai&&z===2?this.T.getVideoData().LH?this.S[2]||this.T:this.T:g.Lr(this.T.getVideoData())&&z===2?this.S[2]||this.T:this.S[z]||null:this.T}; +g.F.oy=function(){for(var z=g.y(Object.values(this.S)),J=z.next();!J.done;J=z.next())J.value.vu();g.h.prototype.oy.call(this)};g.p(u$,g.h);g.F=u$.prototype;g.F.enqueue=function(z,J){if(z.U!==this)return!1;if(this.segments.length===0||(J===void 0?0:J))this.K=z;this.segments.push(z);return!0}; +g.F.nZ=function(){return this.Wd||0}; +g.F.Ri=function(){return this.U||0}; +g.F.removeAll=function(){for(;this.segments.length;){var z=void 0;(z=this.segments.pop())==null||z.dispose()}this.T.clear();this.S=void 0}; +g.F.oy=function(){this.removeAll();g.h.prototype.oy.call(this)}; +g.p(cUE,g.h);g.F=cUE.prototype;g.F.nZ=function(){return this.Wd}; +g.F.Ri=function(){return this.S}; +g.F.getType=function(){return this.type}; +g.F.getVideoData=function(){return this.videoData}; +g.F.n4=function(z){Cn(z);this.videoData=z}; +g.F.oy=function(){WLu(this);g.h.prototype.oy.call(this)};g.Ha.prototype.FP=function(z,J){if(J===1)return this.K.get(z);if(J===2)return this.S.get(z);if(J===3)return this.T.get(z)}; +g.Ha.prototype.r_=TE(64);g.Ha.prototype.w_=function(z,J,m,e){m={tQ:e,jA:m};J?this.S.set(z,m):this.K.set(z,m)}; +g.Ha.prototype.clearAll=function(){this.K.clear();this.S.clear();this.T.clear()}; +g.p(g.UV,g.h);g.F=g.UV.prototype;g.F.Kd=function(z,J,m){return new g.Ec(z,J,{id:m,namespace:"serverstitchedcuerange",priority:9})}; +g.F.RQ=function(z){var J=z.rJ?z.rJ*1E3:z.Wd,m=this.T.get(z.cpn);m&&this.playback.removeCueRange(m);this.T.delete(z.cpn);this.S.delete(z.cpn);m=this.Z.indexOf(z);m>=0&&this.Z.splice(m,1);m=[];for(var e=g.y(this.Y),T=e.next();!T.done;T=e.next())T=T.value,T.end<=J?this.playback.removeCueRange(T):m.push(T);this.Y=m;B3j(this,0,J+z.durationMs)}; +g.F.onCueRangeEnter=function(z){this.Lh.push(z);var J=z.getId();this.fq({oncueEnter:1,cpn:J,start:z.start,end:z.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Ap()||0).toFixed(3)});var m=J==="";this.nh.add(z.T);var e=this.S.get(J);if(m){var T;if(this.playback.getVideoData().b8()&&((T=this.K)==null?0:T.EF)&&this.U){this.by=0;this.K=void 0;this.Tf&&(this.events.hX(this.Tf),this.Tf=null);this.U="";this.qD=!0;return}}else if(this.fq({enterAdCueRange:1}),this.playback.getVideoData().b8()&& +(e==null?0:e.GD))return;if(this.qD&&!this.K)this.qD=!1,!m&&e&&(m=this.playback.getCurrentTime(),sV(this,{FQ:z,isAd:!0,ym:!0,lz:m,adCpn:J},{isAd:!1,ym:!1,lz:m}),this.SE=e.cpn,Qb(this,e),z=L4(this,"midab",e),this.fq(z),this.by=1),this.B=!1;else if(this.K){if(this.K.ym)this.fq({a_pair_of_same_transition_occurs_enter:1,acpn:this.K.adCpn,transitionTime:this.K.lz,cpn:J,currentTime:this.playback.getCurrentTime()}),e=this.playback.getCurrentTime(),z={FQ:z,isAd:!m,ym:!0,lz:e,adCpn:J},J={FQ:this.K.FQ,isAd:this.K.isAd, +ym:!1,lz:e,adCpn:this.K.adCpn},this.K.FQ&&this.nh.delete(this.K.FQ.T),sV(this,z,J);else{if(this.K.FQ===z){this.fq({same_cue_range_pair_enter:1,acpn:this.K.adCpn,transitionTime:this.K.lz,cpn:J,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:z.start,cueRangeEndTime:z.end});this.K=void 0;return}if(this.K.adCpn===J){J&&this.fq({dchtsc:J});this.K=void 0;return}z={FQ:z,isAd:!m,ym:!0,lz:this.playback.getCurrentTime(),adCpn:J};sV(this,z,this.K)}this.K=void 0;this.B=!1}else this.K={FQ:z,isAd:!m, +ym:!0,lz:this.playback.getCurrentTime(),adCpn:J}}; +g.F.onCueRangeExit=function(z){var J=z.getId();this.fq({oncueExit:1,cpn:J,start:z.start,end:z.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Ap()||0).toFixed(3)});var m=J==="",e=this.S.get(J);if(this.playback.getVideoData().b8()&&!m&&e){if(e.GD)return;e.GD=!0;this.X.clear();if(this.yx.C("html5_lifa_no_rewatch_ad_sbc"))if(this.playback.kD()){var T=e.Wd;this.playback.Zp(T/1E3,(T+e.durationMs)/1E3)}else this.playback.ph("lifa",{remove:0})}if(this.nh.has(z.T))if(this.nh.delete(z.T), +this.Lh=this.Lh.filter(function(E){return E!==z}),this.qD&&(this.B=this.qD=!1,this.fq({cref:1})),this.K){if(this.K.ym){if(this.K.FQ===z){this.fq({same_cue_range_pair_exit:1, +acpn:this.K.adCpn,transitionTime:this.K.lz,cpn:J,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:z.start,cueRangeEndTime:z.end});this.K=void 0;return}if(this.K.adCpn===J){J&&this.fq({dchtsc:J});this.K=void 0;return}J={FQ:z,isAd:!m,ym:!1,lz:this.playback.getCurrentTime(),adCpn:J};sV(this,this.K,J)}else if(this.fq({a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.K.adCpn,transitionTime:this.K.lz,upcomingCpn:J,contentCpn:this.playback.getVideoData().clientPlaybackNonce,currentTime:this.playback.getCurrentTime()}), +this.K.adCpn===J)return;this.K=void 0;this.B=!1}else this.K={FQ:z,isAd:!m,ym:!1,lz:this.playback.getCurrentTime(),adCpn:J};else this.fq({ignore_single_exit:1})}; +g.F.xV=function(){return{cpn:this.playback.getVideoData().clientPlaybackNonce,durationMs:0,Wd:0,playerType:1,GB:0,videoData:this.playback.getVideoData(),errorCount:0}}; +g.F.xF=function(){if(this.pJ)return!1;var z=void 0;this.SE&&(z=this.S.get(this.SE));return this.playback.getVideoData().b8()?!!z&&!z.GD:!!z}; +g.F.seekTo=function(z,J,m,e){z=z===void 0?0:z;J=J===void 0?{}:J;m=m===void 0?!1:m;e=e===void 0?null:e;if(this.playback.getVideoData().b8()&&z<=this.wb/1E3)this.playback.pauseVideo(),this.wb=0,this.B=!0,this.playback.Vb(),this.playback.seekTo(z),this.playback.playVideo();else if(this.B=!0,m)wiu(this,z,J);else{m=this.app.W1();var T=m===this.ND?this.GS:null;zB(this,!1);this.OC=z;this.ub=J;e!=null&&this.gE.start(e);m&&(this.GS=T||m.getPlayerState(),m.kB(J),this.ND=m)}}; +g.F.oy=function(){zB(this,!1);Ghf(this);Xiu(this);g.h.prototype.oy.call(this)}; +g.F.nk=function(z){this.ED=z;this.fq({swebm:z})}; +g.F.sS=function(z,J,m){if(m&&J){var e=this.X.get(z);if(e){e.locations||(e.locations=new Map);var T=Number(J.split(";")[0]);m=new g.CZ(m);this.fq({hdlredir:1,itag:J,seg:z,hostport:KZ(m)});e.locations.set(T,m)}}}; +g.F.Jt=function(z,J,m,e,T,E){var Z=e===3,c=YZs(this,z,J,e,m,E);if(!c){mf(this,J,Z);var W=g.n9z(this,J)?"undec":"ncp";this.fq({gvprp:W,mt:z,seg:J,tt:e,itag:m,ce:E});return null}Z||this.X.set(J,c);E=c.WX;var l;e=((l=this.FP(J-1,e,T))==null?void 0:l.tQ)||"";e===""&&this.fq({eds:1});l=aGs(this,c.ssdaiAdsConfig);T=this.playback.getVideoData();var w;Z=((w=T.T)==null?void 0:w.containerType)||0;w=T.aL[Z];c=c.MQ&&J>=c.MQ?c.MQ:void 0;w={OT:E?fGb(this,E):[],fI:l,tQ:e,yl:c,W5:ZL(w.split(";")[0]),Ah:w.split(";")[1]|| +""};c={Ej:w};this.Hd&&(z={gvprpro:"v",sq:J,mt:z.toFixed(3),itag:m,acpns:((W=w.OT)==null?void 0:W.join("_"))||"none",abid:E},this.fq(z));return c}; +g.F.nP=function(z){a:{if(!this.pJ){var J=CDu(this,z);if(!(this.playback.getVideoData().b8()&&(J==null?0:J.GD)))break a}J=void 0}var m=J;if(!m)return this.fq({gvprp:"ncp",mt:z}),null;J=m.WX;var e=aGs(this,m.ssdaiAdsConfig);m=m.MQ&&m.dZ&&z>=m.dZ?m.MQ:void 0;var T=this.playback.getVideoData(),E,Z=((E=T.T)==null?void 0:E.containerType)||0;E=T.aL[Z];E={OT:J?fGb(this,J):[],fI:e,yl:m,W5:ZL(E.split(";")[0]),Ah:E.split(";")[1]||""};var c;z={gvprpro:"v",mt:z.toFixed(3),acpns:((c=E.OT)==null?void 0:c.join("_"))|| +"none",abid:J};this.fq(z);return E}; +g.F.LR=function(z,J,m,e,T,E){var Z=Number(m.split(";")[0]),c=e===3;z=YZs(this,z,J,e,m,E);this.fq({gdu:1,seg:J,itag:Z,pb:""+!!z});if(!z)return mf(this,J,c),null;z.locations||(z.locations=new Map);if(!z.locations.has(Z)){var W,l;E=(W=z.videoData.getPlayerResponse())==null?void 0:(l=W.streamingData)==null?void 0:l.adaptiveFormats;if(!E)return this.fq({gdu:"noadpfmts",seg:J,itag:Z}),mf(this,J,c),null;W=E.find(function(d){return d.itag===Z}); +if(!W||!W.url){var w=z.videoData.videoId;z=[];var q=g.y(E);for(e=q.next();!e.done;e=q.next())z.push(e.value.itag);this.fq({gdu:"nofmt",seg:J,vid:w,itag:Z,fullitag:m,itags:z.join(",")});mf(this,J,c);return null}z.locations.set(Z,new g.CZ(W.url,!0))}E=z.locations.get(Z);if(!E)return this.fq({gdu:"nourl",seg:J,itag:Z}),mf(this,J,c),null;E=new pa(E);this.ED&&(E.get("dvc")?this.fq({dvc:E.get("dvc")||""}):E.set("dvc","webm"));(e=(q=this.FP(J-1,e,T))==null?void 0:q.tQ)&&E.set("daistate",e);z.MQ&&J>=z.MQ&& +E.set("skipsq",""+z.MQ);(q=this.playback.getVideoData().clientPlaybackNonce)&&E.set("cpn",q);q=[];z.WX&&(q=fGb(this,z.WX),q.length>0&&E.set("acpns",q.join(",")));c||this.X.set(J,z);c=null;c=E.get("aids");e=E.jO();(e==null?void 0:e.length)>2048&&this.fq({urltoolong:1,sq:J,itag:Z,len:e.length});this.Hd&&(e&&(E=z.cpn,T=z.WX,$Zb(this,E,T),T&&!this.yv.has(T)&&(E=DZq(this,E,T),W=bDq(this,T),this.fq({iofa:E}),this.fq({noawnzd:W-E}),this.fq({acpns:q.join("."),aids:(w=c)==null?void 0:w.replace(/,/g,".")}), +this.yv.add(T))),this.fq({gdu:"v",seg:J,itag:m,ast:z.Wd.toFixed(3),alen:z.durationMs.toFixed(3),acpn:z.cpn,avid:z.videoData.videoId}));return e}; +g.F.Pl=function(z,J,m){var e=JI(this,z,m);return(e=e?(e.Wd+e.durationMs)/1E3:0)&&J>e?(this.Jc(z,m,!0),this.playback.seekTo(e),!0):!1}; +g.F.Jc=function(z,J,m){m=m===void 0?!1:m;var e=JI(this,z,J);if(e){var T=void 0,E=e.WX;if(E){this.fq({skipadonsq:J,sts:m,abid:E,acpn:e.cpn,avid:e.videoData.videoId});m=this.V.get(E);if(!m)return;m=g.y(m);for(E=m.next();!E.done;E=m.next())E=E.value,E.MQ=J,E.dZ=z,E.Wd>e.Wd&&(T=E)}this.U=e.cpn;KLq(this);z=this.playback.getCurrentTime();va(this,e,T,z,z,!1,!0)}}; +g.F.wX=function(){for(var z=g.y(this.Z),J=z.next();!J.done;J=z.next())J=J.value,J.MQ=NaN,J.dZ=NaN;KLq(this);this.fq({rsac:"resetSkipAd",sac:this.U});this.U=""}; +g.F.FP=function(z,J,m){return this.Gf.FP(z,J,m)}; +g.F.r_=TE(63); +g.F.w_=function(z,J,m,e,T,E,Z,c,W){e.length>0&&this.fq({onssinfo:1,sq:z,start:J.toFixed(3),cpns:e.join(","),ds:T.join(","),isVideo:Z?1:0});W&&this.Gf.w_(z,Z,c,W);if(Z){if(e.length&&T.length)for(this.U&&this.U===e[0]&&this.fq({skipfail:1,sq:z,acpn:this.U}),z=J+this.Bz(),Z=0;Z0&&(this.by=0,this.SE="",this.api.publish("serverstitchedvideochange"));this.playback.Ll(m,e);return!0}; +g.F.Zj=function(){this.fq({rstdaist:1});this.Gf.clearAll()}; +g.F.eK=function(z){var J;if(z!==((J=this.fh)==null?void 0:J.identifier))this.fq({ignorenoad:z});else{this.IT.add(z);(this.yx.C("html5_log_noad_response_received")||this.playback.getVideoData().b8())&&this.fq({noadrcv:z});var m;((m=this.fh)==null?void 0:m.identifier)===z&&k6(this)}}; +g.F.Da=function(){return this.by}; +g.F.tb=function(){return this.SE}; +g.F.o_=function(z){if(this.pJ)return this.fq({dai_disabled:z.event}),!1;if(this.playback.getVideoData().b8()&&(this.yx.C("html5_lifa_no_gab_on_predict_start")&&z.event==="predictStart"||z.event==="continue"||z.event==="stop"))return this.fq({cuepoint_skipped:z.event}),!1;var J=B_(this.api.UC());if(J=J?J.o_(z):!1)this.Ry={IN:z.identifier,OX:z.startSecs};else if(this.Ry&&this.Ry.IN===z.identifier&&z.startSecs>this.Ry.OX+1){this.fq({cueStChg:z.identifier,oldSt:this.Ry.OX.toFixed(3),newSt:z.startSecs.toFixed(3), +abid:this.Ry.je});if(this.Ry.je){var m=z.startSecs-this.Ry.OX,e=this.V.get(this.Ry.je);if(e){e=g.y(e);for(var T=e.next();!T.done;T=e.next())T=T.value,T.Wd>=0&&(T.Wd+=m*1E3,this.yx.C("html5_ssdai_update_timeline_on_start_time_change")&&(T.GB+=m*1E3),this.fq({newApEt:T.Wd,newApPrt:T.GB,acpn:T.cpn}))}}this.Ry.OX=z.startSecs}return J}; +g.F.NU=function(z){return this.pJ?!1:!!CDu(this,z)}; +g.F.rZ=function(z){var J=this;this.playback.pauseVideo();var m=this.playback.getCurrentTime(),e=this.yx.C("html5_lifa_reset_segment_index_on_skip"),T=e?m+this.playback.Bz():m,E=this.S.get(this.SE),Z=this.T.get(this.SE);if(E){this.U=this.SE;this.B=!1;E.GD=!0;m=this.playback.getCurrentTime();this.K={FQ:Z,isAd:!0,ym:!1,lz:m,adCpn:this.SE,EF:E,Dbx:z};this.playback.ZN(E,this.xV(),m,this.playback.getCurrentTime(),!1,!0,z,(0,g.b5)());e&&this.playback.Hf();if(Z==null?0:Z.start)this.wb=m*1E3-Z.start;this.X.clear(); +this.playback.Vb();this.SE=this.xV().cpn;this.api.publish("serverstitchedvideochange");this.playback.seekTo(T,{seekSource:89,i8:"lifa_skip"});this.playback.playVideo();this.Tf||(this.Tf=this.events.L(this.api,"progresssync",function(){J.RQ(E)})); +return!0}this.fq({skipFail:m},!0);return!1}; +g.F.fq=function(z,J){((J===void 0?0:J)||this.Hd||this.playback.getVideoData().b8())&&this.playback.ph("sdai",z)}; +var ODj=0;g.p(g9u,g.UV);g.F=g9u.prototype;g.F.onCueRangeEnter=function(z){var J=z.getId();this.playback.ph("sdai",{oncueEnter:1,cpn:J,start:z.start,end:z.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Ap()||0).toFixed(3)});z=this.S.get(J);this.playback.ph("sdai",{enterAdCueRange:1});J=this.SE||this.xV().cpn;var m;J=(m=this.S.get(J))!=null?m:this.xV();z&&(m={z0:J,BG:z,cG:this.playback.getCurrentTime()},this.PL(m))}; +g.F.onCueRangeExit=function(z){var J=this.playback.getCurrentTime()*1E3;z=z.getId();for(var m=g.y(this.T.values()),e=m.next();!e.done;e=m.next())if(e=e.value,e.getId()!==z&&J>=e.start&&J<=e.end)return;if(J=this.S.get(z))J={z0:J,BG:this.xV(),cG:this.playback.getCurrentTime()},this.PL(J)}; +g.F.PL=function(z){this.U||this.B||this.Ly(this.SE);var J=z.z0,m=z.BG;if(m.cpn===this.SE)this.playback.ph("sdai",{igtranssame:1,enter:m.cpn,exit:J.cpn});else{var e=this.B,T=!!this.U;this.U="";var E=z.cG,Z=J.playerType===2?J.Wd/1E3+J.videoData.ND:this.xV().videoData.ND;if(J.playerType===2&&m.playerType===2)T?this.playback.ph("sdai",{igtransskip:1,enter:m.cpn,exit:J.cpn,seek:e,skip:this.U}):va(this,J,m,Z,E,e,T);else{this.SE=m.cpn;z=z.Mpy;if(J.playerType===1&&m.playerType===2){this.wb=0;Qb(this,m);var c= +L4(this,"c2a",m);this.playback.ph("sdai",c);this.by++}else if(J.playerType===2&&m.playerType===1){c=J.videoData.ND;this.api.publish("serverstitchedvideochange");var W=L4(this,"a2c");this.playback.ph("sdai",W);this.by=0;this.wb=c*1E3;this.hw=Z;AUu(this,J.WX)}this.playback.ZN(J,m,Z,E,e,T,z)}this.U="";this.B=!1}}; +g.F.seekTo=function(z,J,m,e){z=z===void 0?0:z;J=J===void 0?{}:J;m=m===void 0?!1:m;e=e===void 0?null:e;this.Ly(this.SE);this.playback.getVideoData().b8()&&z<=this.hw?(this.playback.pauseVideo(),this.hw=this.wb=0,xZR(this,z)):g.UV.prototype.seekTo.call(this,z,J,m,e)}; +g.F.Jc=function(z,J,m){m=m===void 0?!1:m;var e=JI(this,z,J);if(e){var T=void 0,E=e.WX;if(E){this.playback.ph("sdai",{skipadonsq:J,sts:m,abid:E,acpn:e.cpn,avid:e.videoData.videoId});m=this.V.get(E);if(!m)return;m=g.y(m);for(E=m.next();!E.done;E=m.next())E=E.value,E.MQ=J,E.dZ=z,E.Wd>e.Wd&&(T=E)}this.Ly(this.SE);this.U=e.cpn;KLq(this);z=this.playback.getCurrentTime();va(this,e,T,z,z,!1,!0)}}; +g.F.w_=function(z,J,m,e,T,E,Z,c,W){e.length>0&&this.playback.ph("sdai",{onssinfo:1,sq:z,start:J.toFixed(3),cpns:e.join(","),ds:T.join(","),isVideo:Z?1:0});W&&this.Gf.w_(z,Z,c,W);if(Z){if(e.length&&T.length)for(this.U&&this.U===e[0]&&this.playback.ph("sdai",{skipfail:1,sq:z,acpn:this.U}),z=J+this.Bz(),m=0;m=0&&this.Z.splice(z,1)}; +g.F.Ly=function(z){var J=z||this.SE,m=this.S.get(J);if(m){z=m.videoData;var e,T;J=m.rJ||((T=(e=this.T.get(J))==null?void 0:e.start)!=null?T:0)/1E3;e=this.playback.getCurrentTime()-J;z.ND=e>0?e:0}else this.xV().videoData.ND=this.playback.getCurrentTime()};g.p(uh1,g.h);g.F=uh1.prototype; +g.F.Wx=function(z,J){J=J===void 0?"":J;if(this.timeline.S===J)return!0;var m=this.timeline.K,e=m==null?void 0:m.getVideoData();if(!m||!e)return this.api.ph("ssap",{htsm:m?0:1}),!1;if(this.api.C("html5_ssap_clear_timeline_before_update")){var T=this.timeline,E;(E=T.K)==null||WLu(E);T.T.clear()}T=Vb(m);var Z=!1;E=[];var c=new Map;m=[];var W=[],l=0,w=0,q=0,d=[];z=g.y(z);for(var I=z.next();!I.done;I=z.next())a:{var O=void 0,G=void 0,n=I.value,C=n.clipId;if(C){if(n.gO){q=n.gO.n7||0;I=n.gO.u2||1;var K= +Number(((n.gO.Yj||0)/(n.gO.Qw||1)*1E3).toFixed(0));q=I=K+Number((q/I*1E3).toFixed(0))}else I=K=q,this.Vz.has(C)||this.KV.add(C);var f=(G=c.get(C))!=null?G:0,x=this.timeline.S;G=!1;if(x&&this.api.C("html5_ssap_clear_timeline_before_update")){if(x=this.AJ.get(C))x.start=K,x.end=I,G=!0}else{if(x){var V=C;x=K;var zE=I,k=f,Ez=R5(this.timeline,V);if(Ez!=null&&Ez.length){k=c){this.K6.set(z,m);HD1(this,z,J);this.t$.set(z,(0,g.b5)());if(m=this.AJ.get(J))for(m=m.getId().split(","),m=g.y(m),Z=m.next();!Z.done;Z=m.next())Z=Z.value,Z!==J&&this.KV.has(Z)&&(this.KV.delete(Z),this.Vz.add(Z));this.Ly();J=E.nZ()/1E3;E=void 0;m=(E=g.dv(this.api.W().experiments,"html5_ssap_skip_seeking_offset_ms"))!=null?E:0;this.api.C("html5_ssap_keep_media_on_finish_segment")?this.playback.seekTo(J+ +m/1E3,{Nt:!0}):this.playback.seekTo(J+m/1E3);this.sK?(this.api.ph("ssap",{gpfreload:this.SE}),hn4(this)||(this.sK=!1),this.playback.Vb(!1,!1,this.api.C("html5_ssap_keep_media_on_finish_segment"))):e&&this.playback.Vb(!1,!1,this.api.C("html5_ssap_keep_media_on_finish_segment"));T&&this.api.playVideo(1,this.api.C("html5_ssap_keep_media_on_finish_segment"));return[z]}}}return[]}; +g.F.iD=function(){var z=this.timeline.K;if(!z)return 0;var J=z.Ri();z=g.y(z.K.values());for(var m=z.next();!m.done;m=z.next()){m=g.y(m.value);for(var e=m.next();!e.done;e=m.next())e=e.value,e.Ri()>J&&(J=e.Ri())}return J/1E3}; +g.F.JX=function(){var z=this.playback.getCurrentTime()*1E3;var J=LLu(this,z);if(!J){var m=R5(this.timeline,this.SE);if(m){m=g.y(m);for(var e=m.next();!e.done;e=m.next())e=e.value,e.nZ()>z&&(J=e)}}return J&&J.getType()===1?J.nZ()/1E3:0}; +g.F.getVideoData=function(z){if(z===2&&!this.xF()){if(this.Pi&&this.RV.has(this.Pi))return this.RV.get(this.Pi);this.api.ph("ssap",{lpanf:""+of(this)});return null}return sH1(this)}; +g.F.xF=function(){var z=R5(this.timeline,this.SE);return(z==null?0:z.length)?z[0].getType()===2:!1}; +g.F.SQ=function(){var z=R5(this.timeline,this.SE);return(z==null?0:z.length)?z[0].T:!1}; +g.F.seekTo=function(z,J){J=J===void 0?{}:J;var m=QH1(this,this.playback.getCurrentTime());this.playback.seekTo(z+m/1E3,J)}; +g.F.Kd=function(z,J,m){return new g.Ec(z,J,{id:m,namespace:"ssap",priority:9})}; +g.F.onCueRangeEnter=function(z){if(!this.jS.has(z.getId())){this.api.ph("ssap",{oce:1,cpn:z.getId(),st:z.start,et:z.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.Ap()||0).toFixed(3)});for(var J=z.getId().split(","),m=0;mm+1)for(e=m+1;e0?J:0}; +g.F.OZx=function(z){var J=this.RV.get(this.SE);J&&this.playback.O5(z-J.hw/1E3,J.lengthSeconds,this.SE)}; +g.F.oy=function(){this.api.W().AZ()&&this.api.ph("ssap",{di:""+this.SE,dic:""+this.playback.getVideoData().clientPlaybackNonce});this.RV.clear();this.KV.clear();this.jS.clear();this.K6.clear();this.t$.clear();this.Vz.clear();this.hK=[];jHu(this);this.o2="";g.gs(this.events);g.h.prototype.oy.call(this)};g.p(mYz,g.h);g.F=mYz.prototype;g.F.onCueRangeEnter=function(z){if(this.K===this.app.W1()){var J=this.Z.get(z);J?i9j(this,J.target,J.XF,z):this.Br("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:z.toString()})}else if(J=this.T.find(function(T){return T.eN.FQ===z})){var m=J.eN,e=m.target; +m=m.XF;e?i9j(this,e,m,z):FDE(this,J.GB,m,z)}}; +g.F.onQueuedVideoLoaded=function(){var z=this.V;ib(this);if(z){if(!FY(this,z)){var J=this.app.W1();this.Br("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:J==null?void 0:J.getVideoData().clientPlaybackNonce,ccpn:""+z.playerVars.cpn})}this.app.W1().addCueRange(z.eN.FQ)}}; +g.F.seekTo=function(z,J,m,e){z=z===void 0?0:z;J=J===void 0?{}:J;e=e===void 0?null:e;if(m===void 0?0:m)JEE(this,z,J);else{m=this.app.W1()||null;var T=m===this.U?this.Y:null;cE(this,!1);this.Ry=z;this.B=J;e!=null&&this.X.start(e);m&&(this.Y=T||m.getPlayerState(),m.kB(),this.U=m)}}; +g.F.bz=function(z){g.yK(z,128)&&qPf(this)}; +g.F.isManifestless=function(){return w0(this.K.getVideoData())}; +g.F.oy=function(){cE(this,!1);IVz(this);g.h.prototype.oy.call(this)}; +g.F.Br=function(z,J){this.K.Br(new Sl(z,J))}; +var e0q=0;var O9R="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.p(wi,g.h);g.F=wi.prototype;g.F.get=function(z){WE(this);var J=this.data.find(function(m){return m.key===z}); +return J?J.value:null}; +g.F.set=function(z,J,m){this.remove(z,!0);WE(this);z={key:z,value:J,expire:Infinity};m&&isFinite(m)&&(m*=1E3,z.expire=(0,g.b5)()+m);for(this.data.push(z);this.data.length>this.S;)(m=this.data.shift())&&qj(this,m,!0);lb(this)}; +g.F.remove=function(z,J){J=J===void 0?!1:J;var m=this.data.find(function(e){return e.key===z}); +m&&(qj(this,m,J),g.Js(this.data,function(e){return e.key===z}),lb(this))}; +g.F.removeAll=function(z){if(z=z===void 0?!1:z)for(var J=g.y(this.data),m=J.next();!m.done;m=J.next())qj(this,m.value,z);this.data=[];lb(this)}; +g.F.oy=function(){var z=this;g.h.prototype.oy.call(this);this.data.forEach(function(J){qj(z,J,!0)}); +this.data=[]};g.p(di,g.h);di.prototype.fX=function(z){if(z)return this.T.get(z)}; +di.prototype.oy=function(){this.K.removeAll();this.T.removeAll();g.h.prototype.oy.call(this)};g.k81=Ne(function(){var z=window.AudioContext||window.webkitAudioContext;try{return new z}catch(J){return J.name}});g.p(Xb1,g.U);g.F=Xb1.prototype;g.F.dO=function(){g.Wd(this.element,g.gu.apply(0,arguments))}; +g.F.OL=function(){this.Pr&&(this.Pr.removeEventListener("focus",this.uB),g.WF(this.Pr),this.Pr=null)}; +g.F.WG=function(){this.mF();var z=this.app.W();z.FF||this.dO("tag-pool-enabled");z.Y&&this.dO(g.RC.HOUSE_BRAND);z.playerStyle==="gvn"&&(this.dO("ytp-gvn"),this.element.style.backgroundColor="transparent");z.l8&&(this.G0=g.cK("yt-dom-content-change",this.resize,this));this.L(window,"orientationchange",this.resize,this);this.L(window,"resize",this.resize,this)}; +g.F.M8=function(z){g.x5(this.app.W());this.j5=!z;Ih(this)}; +g.F.resize=function(){if(this.Pr){var z=this.XE();if(!z.isEmpty()){var J=!g.nY(z,this.Dp.getSize()),m=KDs(this);J&&(this.Dp.width=z.width,this.Dp.height=z.height);z=this.app.W();(m||J||z.l8)&&this.app.Vx.publish("resize",this.getPlayerSize())}}}; +g.F.PU=function(z,J){this.updateVideoData(J)}; +g.F.updateVideoData=function(z){if(this.Pr){var J=this.app.W();vj&&(this.Pr.setAttribute("x-webkit-airplay","allow"),z.title?this.Pr.setAttribute("title",z.title):this.Pr.removeAttribute("title"));this.Pr.setAttribute("controlslist","nodownload");J.Pt&&z.videoId&&(this.Pr.poster=z.NA("default.jpg"))}J=g.nn(z,"yt:bgcolor");this.w6.style.backgroundColor=J?J:"";this.K2=lM(g.nn(z,"yt:stretch"));this.Ta=lM(g.nn(z,"yt:crop"),!0);g.qt(this.element,"ytp-dni",z.yb);this.resize()}; +g.F.setGlobalCrop=function(z){this.FB=lM(z,!0);this.resize()}; +g.F.setCenterCrop=function(z){this.JU=z;this.resize()}; +g.F.V2=function(){}; +g.F.getPlayerSize=function(){var z=this.app.W(),J=this.app.Vx.isFullscreen(),m=z.externalFullscreen&&g.fi(z);if(J&&kJ()&&!m)return new g.XT(window.outerWidth,window.outerHeight);m=!isNaN(this.Xz.width)&&!isNaN(this.Xz.height);var e=this.app.W().C("kevlar_player_enable_squeezeback_fullscreen_sizing");if(J&&!m&&e)return new g.XT(this.element.clientWidth,this.element.clientHeight);if(J||z.R3){if(window.matchMedia){z="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.BV&&this.BV.media=== +z||(this.BV=window.matchMedia(z));var T=this.BV&&this.BV.matches}if(T)return new g.XT(window.innerWidth,window.innerHeight)}else if(m)return this.Xz.clone();return new g.XT(this.element.clientWidth,this.element.clientHeight)}; +g.F.XE=function(){var z=this.app.W().C("enable_desktop_player_underlay"),J=this.getPlayerSize(),m=g.dv(this.app.W().experiments,"player_underlay_min_player_width");return z&&this.Bo&&J.width>m?(z=g.dv(this.app.W().experiments,"player_underlay_video_width_fraction"),new g.XT(Math.min(J.height*this.getVideoAspectRatio(),J.width*z),Math.min(J.height,J.width*z/this.getVideoAspectRatio()))):J}; +g.F.getVideoAspectRatio=function(){return isNaN(this.K2)?YPb(this):this.K2}; +g.F.getVideoContentRect=function(z){var J=this.XE();z=CdR(this,J,this.getVideoAspectRatio(),z);return new g.T6((J.width-z.width)/2,(J.height-z.height)/2,z.width,z.height)}; +g.F.JT=function(z){this.Bo=z;this.resize()}; +g.F.If=function(){return this.rg}; +g.F.onMutedAutoplayChange=function(){Ih(this)}; +g.F.setInternalSize=function(z){g.nY(this.Xz,z)||(this.Xz=z,this.resize())}; +g.F.oy=function(){this.G0&&g.WK(this.G0);this.OL();g.U.prototype.oy.call(this)};g.F=B_q.prototype;g.F.click=function(z,J){this.elements.has(z);this.K.has(z);var m=g.Dc();m&&z.visualElement&&g.cV(m,z.visualElement,J)}; +g.F.createClientVe=function(z,J,m,e){var T=this;e=e===void 0?!1:e;this.elements.has(z);this.elements.add(z);m=yYs(m);z.visualElement=m;var E=g.Dc(),Z=g.fd();E&&Z&&(g.CH("combine_ve_grafts")?DZ(S7(),m,Z):g.zo(g.s$)(void 0,E,Z,m));J.addOnDisposeCallback(function(){T.elements.has(z)&&T.destroyVe(z)}); +e&&this.T.add(z)}; +g.F.createServerVe=function(z,J,m){var e=this;m=m===void 0?!1:m;this.elements.has(z);this.elements.add(z);J.addOnDisposeCallback(function(){e.destroyVe(z)}); +m&&this.T.add(z)}; +g.F.destroyVe=function(z){this.elements.has(z);this.elements.delete(z);this.S.delete(z);this.K.delete(z);this.T.delete(z)}; +g.F.zm=function(z,J){this.clientPlaybackNonce!==J&&(this.clientPlaybackNonce=J,fQ(S7(),z),SPb(this))}; +g.F.setTrackingParams=function(z,J){this.elements.has(z);J&&(z.visualElement=g.BP(J))}; +g.F.T4=function(z,J,m){this.elements.has(z);J?this.K.add(z):this.K.delete(z);var e=g.Dc(),T=z.visualElement;this.T.has(z)?e&&T&&(J?g.Fl(e,[T]):g.iY(e,[T])):J&&!this.S.has(z)&&(e&&T&&g.ZN(e,T,void 0,m),this.S.add(z))}; +g.F.hasVe=function(z){return this.elements.has(z)};g.p(g.pX,g.h);g.pX.create=function(z,J,m,e){try{var T=typeof z==="string"?z:"player"+g.sz(z),E=Y1[T];if(E){try{E.dispose()}catch(c){g.jk(c)}Y1[T]=null}var Z=new g.pX(z,J,m,e);Z.addOnDisposeCallback(function(){Y1[T]=null;Z.I6&&Z.I6()}); +return Y1[T]=Z}catch(c){throw g.jk(c),(c&&c instanceof Error?c:Error(String(c))).stack;}}; +g.F=g.pX.prototype;g.F.BX=function(){return this.visibility}; +g.F.J5=function(z){var J=this.Kq();if(z!==J){z.getVideoData().autonavState=J.getVideoData().autonavState;J.cQ(this.Nj,this);var m=J.getPlaybackRate();J.vu();this.Rj.J5(z);z.setPlaybackRate(m);z.qw(this.Nj,this);Msq(this)}}; +g.F.fB=function(){this.Ye||(this.Ye=g.i_(h3(),qqq()));return this.Ye}; +g.F.OL=function(z){if(this.mediaElement){this.DI&&(this.events.hX(this.DI),this.DI=null);g.gs(this.HQ);var J=this.W1();J&&J.OL(!0,!1,z);this.template.OL();try{this.C("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.P_()}catch(m){g.hr(m)}this.mediaElement=null}}; +g.F.E6=function(z,J,m){m=m===void 0?!1:m;if(z!==this.W1()){this.logger.debug(function(){return"start set presenting player, type "+z.getPlayerType()+", vid "+z.getVideoData().videoId}); +var e=null,T=this.W1();m=this.C("web_player_present_empty")?!m:!0;T&&m&&(e=T.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),K7(this.Im,3),jE(this,"cuerangesremoved",T.Js()),this.Yx&&!z.isGapless()&&T.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),T=z.Ep()&&T.Ep(),this.hZ.b5("iv_s"),UY1(this,T));z.getPlayerType()===1&&this.J5(z);H9q(this,z);this.Rj.E6(z);this.mediaElement&&z.setMediaElement(this.mediaElement);z.qw(this.CC,this);z.zH()?Xnq(this,"setPresenting", +!1):(this.PU("newdata",z,z.getVideoData()),e&&!g.lk(e,z.getPlayerState())&&this.nE(new g.Ox(z.getPlayerState(),e)),J=J&&this.C("html5_player_preload_ad_fix")&&z.getPlayerType()===1,z.E8()&&!J&&this.PU("dataloaded",z,z.getVideoData()),(J=(J=z.getVideoData().T)&&J.video)&&this.Vx.jC("onPlaybackQualityChange",J.quality),jE(this,"cuerangesadded",z.Js()),J=z.getPlayerState(),g.R(J,2)?tsb(this):g.R(J,8)?z.playVideo():z.nS()&&z.pauseVideo(),J=this.Kq(),z.getPlayerType()===2&&(z.getVideoData().J3=J.getVideoData().clientPlaybackNonce), +z.getPlayerType()!==2||this.Uu()||(e=z.getVideoData(),J.mu(e.clientPlaybackNonce,e.Rs||"",e.breakType||0,e.US,e.videoId||"")),this.logger.debug("finish set presenting player"))}}; +g.F.rU=function(){if(this.Kq()!==this.W1()){var z=this.W1();this.logger.debug(function(){return"release presenting player, type "+(z==null?void 0:z.getPlayerType())+", vid "+(z==null?void 0:z.getVideoData().videoId)}); +this.E6(this.Kq())}}; +g.F.Yt=function(){return this.Rj}; +g.F.tX=function(z){return this.Rj.tX(z)}; +g.F.Kq=function(){return this.Rj.Kq()}; +g.F.W1=function(){return this.Rj.W1()}; +g.F.TW=TE(50);g.F.fHf=function(){Y3(this)||(this.logger.debug("application playback ready"),this.C3(5))}; +g.F.hs2=function(){if(!Y3(this)){this.logger.debug("playback ready");pnj(this);var z=this.W1(),J=z.getPlayerState();z.nS()?this.pauseVideo():J.isOrWillBePlaying()&&this.playVideo()}}; +g.F.canPlayType=function(z){return $y(z)}; +g.F.W=function(){return this.yx}; +g.F.getVideoData=function(){return this.W1().getVideoData()}; +g.F.KD=TE(19);g.F.H7=function(){return this.Kq().getVideoData()}; +g.F.getVideoLoadedFraction=function(z){return(z=this.tX(z))?z.getVideoLoadedFraction():this.Rj.K.getVideoLoadedFraction()}; +g.F.zf=function(){return this.template}; +g.F.UC=function(){return this.Im}; +g.F.uU=function(){return this.hZ}; +g.F.uS=function(z){var J=this.tX(1);J&&J.Vi(z)}; +g.F.hx=function(){var z=this.Im.hx();this.Vx.publish("videoStatsPingCreated",z);return z}; +g.F.getVolume=function(){return Math.round(this.Vx.getVolume())}; +g.F.isMuted=function(){return this.Vx.isMuted()}; +g.F.VR=function(){if(this.Kq()===this.W1()&&this.ib)return this.ib.postId}; +g.F.CCz=function(){var z=this;this.C("use_rta_for_player")||(g.SP(this.yx)?g.El(this.yx,g.ui(this.getVideoData())).then(function(J){u8(h3(),J);K14(z.getVideoData(),z.yx,z.fB())}):K14(this.getVideoData(),this.yx,this.fB()))}; +g.F.wS=function(z){this.Vx.publish("poTokenVideoBindingChange",z)}; +g.F.pU=function(z){this.Vx.publish("d6de4videobindingchange",z)}; +g.F.L0=function(){this.iM&&this.iM.L0()}; +g.F.Lk=function(z){this.iM=z}; +g.F.WL=function(z){if(z===1){this.hZ.tick("vr");var J=this.W1();J.z$();Dw4(this.hZ,J.getVideoData(),Opf(this));pEq(this.Im)}J=this.yx;if(mp(J)&&J.V||g.AD(J)){var m;J=(m=this.W1())==null?void 0:m.getVideoData();((J==null?0:J.b8())||this.C("html5_ssdai_always_publish_ad_state_change")&&(J==null?0:J.enableServerStitchedDai)||!this.Uu())&&this.Vx.jC("onAdStateChange",z)}}; +g.F.setLoopVideo=function(z){var J=this.W1();J===this.Kq()&&J.aV()!==z&&(J.setLoop(z),this.Vx.B1("onLoopChange",z))}; +g.F.getLoopVideo=function(){return this.W1().aV()}; +g.F.setLoopRange=function(z){var J=!1;!!this.ib!==!!z?J=!0:this.ib&&z&&(J=this.ib.startTimeMs!==z.startTimeMs||this.ib.endTimeMs!==z.endTimeMs||this.ib.postId!==z.postId||this.ib.type!==z.type);if(J){(J=this.W1())&&TF(J.getVideoData())&&J.ph("slr",{et:(z==null?void 0:z.endTimeMs)||-1});J=this.Kq();J.c7("applooprange");if(z){var m=new g.Ec(z.startTimeMs,z.endTimeMs,{id:"looprange",namespace:"applooprange"});J.addCueRange(m)}else{this.H7().clipConfig=void 0;var e;((m=this.ib)==null?void 0:m.type)!== +"repeatChapter"||isNaN(Number((e=this.ib)==null?void 0:e.loopCount))||(m={loopCount:String(this.ib.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.qq("repeatChapterLoopEvent",m))}this.ib=z;this.Vx.B1("onLoopRangeChange",z||void 0);this.Kq()===this.W1()&&(this.h5(),J.vy())}}; +g.F.getLoopRange=function(){return this.ib}; +g.F.h5=function(){var z="",J=this.Kq();this.ib?J!==this.W1()?z="pnea":zqz(this,J.getCurrentTime())&&(this.ib.loopCount=0,z="ilr"):z="nlr";var m=this.W1();if(m&&TF(m.getVideoData()))if(this.C("html5_gapless_log_loop_range_info")){var e,T;m.ph("slrre",{rej:z,ct:J.getCurrentTime(),lst:(e=this.ib)==null?void 0:e.startTimeMs,let:(T=this.ib)==null?void 0:T.endTimeMs})}else m.ph("slrre",{});z||Tzu(this)}; +g.F.setPlaybackRate=function(z,J){if(!isNaN(z)){z=h0q(this,z);var m=this.Kq();m.getPlaybackRate()!==z&&(m.setPlaybackRate(z),J&&!this.yx.U&&g.oW("yt-player-playback-rate",z),this.Vx.jC("onPlaybackRateChange",z))}}; +g.F.getCurrentTime=function(z,J,m){J=J===void 0?!0:J;if(this.getPresentingPlayerType()===3)return this.Rj.vW.getCurrentTime();var e=z===2&&this.getVideoData().enableServerStitchedDai,T=g.Lr(this.getVideoData());z=e||T?this.W1():this.tX(z);if(!z)return this.Rj.K.getCurrentTime();if(T&&this.Pd)return J=this.Pd,z=z.getCurrentTime(),m?m=TB(J,m):(m=QH1(J,z),m=z-m/1E3),m;if(J){if(e&&this.fZ&&(m=this.fZ.wb/1E3,m!==0))return m;m=nX(this,z);return bb(this,m.getCurrentTime(),m)}e&&this.fZ?(m=this.fZ,z=z.getCurrentTime(), +m=(m=yUE(m,z*1E3))?z-m.start/1E3:z):m=z.getCurrentTime();return m}; +g.F.X2=function(){var z=this.tX();if(!z)return this.Rj.K.X2();z=nX(this,z);return bb(this,z.X2(),z)}; +g.F.getDuration=function(z,J){J=J===void 0?!0:J;var m=this.getVideoData(),e=z===2&&m.enableServerStitchedDai,T=g.Lr(m);var E=e||T?this.W1():this.tX(z);if(!E)return this.Rj.K.getDuration();if(m.hasProgressBarBoundaries()&&!e&&!T){var Z,c=Number((Z=m.progressBarStartPosition)==null?void 0:Z.utcTimeMillis),W;m=Number((W=m.progressBarEndPosition)==null?void 0:W.utcTimeMillis);if(!isNaN(c)&&!isNaN(m))return(m-c)/1E3}if(T&&this.Pd)return J=v9u(this.Pd,this.Pd.tb()),z===1&&J===0?E.getDuration():J;if(J)return E= +XY(this,E),bb(this,E.getDuration(),E);e&&this.fZ?(z=this.fZ,E=E.getCurrentTime(),E=(E=N3q(z,E*1E3))?E.durationMs/1E3:0):E=E.getDuration();return E}; +g.F.Hk=function(z){var J=this.tX(z);return J?this.Uu(J)?(J=XY(this,J),J.Hk()-J.getCurrentTime()+this.getCurrentTime(z)):J.Hk():this.Rj.K.Hk()}; +g.F.Jn=function(){return this.I3}; +g.F.addPlayerResponseForAssociation=function(z){this.Pd&&this.Pd.addPlayerResponseForAssociation(z)}; +g.F.finishSegmentByCpn=function(z,J,m){return this.Pd?this.Pd.finishSegmentByCpn(z,J,m):[]}; +g.F.WG=function(){this.template.WG();var z=this.Vx;z.state.element=this.template.element;var J=z.state.element,m;for(m in z.state.K)z.state.K.hasOwnProperty(m)&&(J[m]=z.state.K[m]);(z=Mpq(this.template.element))&&this.events.L(this.template,z,this.onFullscreenChange);this.C("web_player_present_empty")||this.events.L(window,"resize",this.Od)}; +g.F.getDebugText=function(z){var J=this.Kq().kQ(z),m=this.W1(),e=this.Kq();if(m&&m!==e){m=m.kQ(z);e=g.y(Object.keys(m));for(var T=e.next();!T.done;T=e.next())T=T.value,J["ad"+T]=m[T];if(z){m=J;e={};if(T=LY(document,"movie_player"))e.bounds=T.getBoundingClientRect(),e["class"]=T.className;T={};var E=g.rC("video-ads");E?(CH1(E,T),T.html=E.outerHTML):T.missing=1;E={};var Z=g.rC("videoAdUiSkipContainer"),c=g.rC("ytp-ad-skip-button-container"),W=g.rC("ytp-skip-ad-button"),l=Z||c||W;l?(CH1(l,E),E.ima=Z? +1:0,E.bulleit=c?1:0,E.component=W?1:0):E.missing=1;e=JSON.stringify({player:e,videoAds:T,skipButton:E});m.ad_skipBtnDbgInfo=e}}z&&this.mediaElement&&(J["0sz"]=""+(+Yf(this.mediaElement.getSize())===0),J.op=this.mediaElement.tS("opacity"),m=this.mediaElement.Qu().y+this.mediaElement.getSize().height,J.yof=""+(+m<=0),J.dis=this.mediaElement.tS("display"));z&&((z=(0,g.no)())&&(J.gpu=z),(z=this.yx.playerStyle)&&(J.ps=z),this.yx.Lh&&(J.webview=1));J.debug_playbackQuality=this.Vx.getPlaybackQuality(1); +J.debug_date=(new Date).toString();J.origin=window.origin;J.timestamp=Date.now();delete J.uga;delete J.q;return JSON.stringify(J,null,2)}; +g.F.getFeedbackProductData=function(){var z={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.W().experiments.experimentIds.join(", "),player_release:e4[49]},J=this.getPlayerStateObject().Io;J&&(z.player_error_code=J.errorCode,z.player_error_details=JSON.stringify(J.errorDetail));return z}; +g.F.getPresentingPlayerType=function(z){if(this.appState===1)return 1;if(Y3(this))return 3;var J;if(z&&((J=this.fZ)==null?0:J.xF(this.getCurrentTime())))return 2;var m;return g.Lr(this.getVideoData())&&((m=this.Pd)==null?0:m.xF())?2:this.W1().getPlayerType()}; +g.F.SQ=function(){return g.Lr(this.getVideoData())&&this.Pd?this.Pd.SQ():!1}; +g.F.getPlayerStateObject=function(z){return this.getPresentingPlayerType()===3?this.Rj.vW.getPlayerState():this.tX(z).getPlayerState()}; +g.F.getAppState=function(){return this.appState}; +g.F.nry=function(z){switch(z.type){case "loadedmetadata":this.G9.start();z=g.y(this.V3);for(var J=z.next();!J.done;J=z.next())J=J.value,dMq(this,J.id,J.LP1,J.Mb4,void 0,!1);this.V3=[];break;case "loadstart":this.hZ.b5("gv");break;case "progress":case "timeupdate":qU(z.target.G2())>=2&&this.hZ.b5("l2s");break;case "playing":g.zx&&this.G9.start();if(g.SP(this.yx))z=!1;else{var m=this.W1();J=g.gd(this.UC());z=this.mediaElement.tS("display")==="none"||Yf(this.mediaElement.getSize())===0;var e=Oo(this.template), +T=m.getVideoData();m=g.uB(this.yx);T=EH(T);J=!e||J||m||T||this.yx.Hd;z=z&&!J}z&&(z=this.W1(),z.Yq(),this.getVideoData().l8||(this.getVideoData().l8=1,this.AR(),z.playVideo()))}}; +g.F.Qj1=function(z){this.Vx.xr("onLoadProgress",z)}; +g.F.WoW=function(){this.Vx.publish("playbackstalledatstart")}; +g.F.JwD=function(z,J){this.Vx.publish("sabrCaptionsDataLoaded",z,J)}; +g.F.Up1=function(z){var J;(J=this.W1())==null||J.Ne(z)}; +g.F.S4y=function(z){var J;(J=this.W1())==null||J.gR(z)}; +g.F.gry=function(z){z=nX(this,this.W1());z=bb(this,z.getCurrentTime(),z);this.Vx.jC("onVideoProgress",z);this.yx.Fj&&W8u(this,this.visibility.Hz())&&this.pauseVideo()}; +g.F.Slz=function(){this.Vx.jC("onAutoplayBlocked");var z,J=(z=this.W1())==null?void 0:z.getVideoData();J&&(J.F_=!0);this.C("embeds_enable_autoplay_and_visibility_signals")&&g.fi(this.yx)&&(z={autoplayBrowserPolicy:km(),autoplayIntended:LQ(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.qq("embedsAutoplayStatusChanged",z))}; +g.F.Cgh=function(){this.Vx.publish("progresssync")}; +g.F.i16=function(){this.Vx.xr("onPlaybackPauseAtStart")}; +g.F.vQy=function(z){if(this.getPresentingPlayerType()===1){g.yK(z,1)&&!g.R(z.state,64)&&this.H7().isLivePlayback&&this.Kq().isAtLiveHead()&&this.Vx.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.yK(z,2)){if(this.ib&&this.ib.endTimeMs>=(this.getDuration()-1)*1E3){Tzu(this);return}tsb(this)}if(g.R(z.state,128)){var J=z.state;this.cancelPlayback(5);J=J.Io;JSON.stringify({errorData:J,debugInfo:this.getDebugText(!0)});this.Vx.jC("onError",jyE(J.errorCode));this.Vx.xr("onDetailedError",{errorCode:J.errorCode, +errorDetail:J.errorDetail,message:J.errorMessage,messageKey:J.rM,cpn:J.cpn});(0,g.b5)()-this.yx.rL>6048E5&&this.Vx.xr("onReloadRequired")}J={};if(z.state.isPlaying()&&!z.state.isBuffering()&&!Up("pbresume","ad_to_video")&&Up("_start","ad_to_video")){var m=this.getVideoData();J.clientPlaybackNonce=m.clientPlaybackNonce;m.videoId&&(J.videoId=m.videoId);g.tR(J,"ad_to_video");Ph("pbresume",void 0,"ad_to_video");pEq(this.Im)}this.Vx.publish("applicationplayerstatechange",z)}}; +g.F.nE=function(z){this.getPresentingPlayerType()!==3&&this.Vx.publish("presentingplayerstatechange",z)}; +g.F.bz=function(z){GB(this,q4(z.state));g.R(z.state,1024)&&this.Vx.isMutedByMutedAutoplay()&&(fX(this,{muted:!1,volume:this.Ts.volume},!1),D2(this,!1))}; +g.F.to1=function(z,J){z==="newdata"&&Msq(this);this.Vx.publish("applicationvideodatachange",z,J)}; +g.F.xxx=function(z,J){this.Vx.xr("onPlaybackAudioChange",this.Vx.getAudioTrack().sC.name);this.Vx.publish("internalaudioformatchange",this.Vx.getAudioTrack().sC.id,J)}; +g.F.uQW=function(z){var J=this.W1().getVideoData();z===J&&this.Vx.jC("onPlaybackQualityChange",z.T.video.quality)}; +g.F.RD=function(){var z=this.Rj.S[2]||null;if(z){var J=z.getVideoData();z=z.zU();var m;(m=this.W1())==null||m.ph("ssdai",{cleanaply:1,acpn:J==null?void 0:J.clientPlaybackNonce,avid:J.videoId,ccpn:z,sccpn:this.H7().clientPlaybackNonce===z?1:0,isDai:this.H7().enableServerStitchedDai?1:0});delete this.Rj.S[2]}}; +g.F.Aw4=function(z,J){this.PU(z,this.W1(),J)}; +g.F.PU=function(z,J,m){this.logger.debug(function(){return"on video data change "+z+", player type "+J.getPlayerType()+", vid "+m.videoId}); +this.yx.AZ()&&J.ph("vdc",{type:z,vid:m.videoId||"",cpn:m.clientPlaybackNonce||""});J===this.Kq()&&(this.yx.zs=m.oauthToken);if(J===this.Kq()){this.getVideoData().enableServerStitchedDai&&!this.fZ?(this.Kq().ph("sdai",{initSstm:1}),this.fZ=this.C("html5_enable_ssdai_transition_with_only_enter_cuerange")?new g9u(this.Vx,this.yx,this.Kq(),this):new g.UV(this.Vx,this.yx,this.Kq(),this)):!this.getVideoData().enableServerStitchedDai&&this.fZ&&(this.fZ.dispose(),this.fZ=null);var e,T;!g.Lr(this.getVideoData())|| +z!=="newdata"&&z!=="dataloaded"||this.getVideoData().clientPlaybackNonce===((e=this.I3.K)==null?void 0:(T=e.getVideoData())==null?void 0:T.clientPlaybackNonce)?!g.Lr(this.getVideoData())&&this.Pd&&(this.Pd.dispose(),this.Pd=null):(FL4(this.I3),this.C("html5_ssap_cleanup_ad_player_on_new_data")&&this.RD(),e=tt(this.I3,1,0,this.getDuration(1)*1E3,this.getVideoData()),this.I3.enqueue(e,!0),Pa(this.I3,0,this.getDuration(1)*1E3,[e]),iDb(this.I3,this.getVideoData().clientPlaybackNonce,[e]),this.Pd&&(this.Pd.dispose(), +this.Pd=null),this.Pd=new uh1(this.Vx,this.I3,this.Kq()),this.Rj.Kq().L9(this.Pd))}if(z==="newdata")this.logger.debug("new video data, destroy modules"),K7(this.Im,2),this.Vx.publish("videoplayerreset",J);else{if(!this.mediaElement)return;z==="dataloaded"&&(this.Kq()===this.W1()?(Vs(m.e4,m.Fk),QuR(this)):kRb(this));J.getPlayerType()===1&&(this.yx.h6&&Y5q(this),this.getVideoData().isLivePlayback&&!this.yx.Tz&&this.Cs("html5.unsupportedlive",2,"DEVICE_FALLBACK"),m.isLoaded()&&((LZE(m)||this.getVideoData().GA)&& +this.Vx.publish("legacyadtrackingpingchange",this.getVideoData()),m.hasProgressBarBoundaries()&&Zpq(this)));this.Vx.publish("videodatachange",z,m,J.getPlayerType())}this.Vx.jC("onVideoDataChange",{type:z,playertype:J.getPlayerType()});this.h5();(e=m.TP)?this.Lj.zm(e,m.clientPlaybackNonce):SPb(this.Lj)}; +g.F.PG=function(){ah(this,null);this.Vx.xr("onPlaylistUpdate")}; +g.F.cw1=function(z){delete this.H_[z.getId()];this.Kq().removeCueRange(z);a:{z=this.getVideoData();var J,m,e,T,E,Z,c,W,l,w,q=((J=z.Lh)==null?void 0:(m=J.contents)==null?void 0:(e=m.singleColumnWatchNextResults)==null?void 0:(T=e.autoplay)==null?void 0:(E=T.autoplay)==null?void 0:E.sets)||((Z=z.Lh)==null?void 0:(c=Z.contents)==null?void 0:(W=c.twoColumnWatchNextResults)==null?void 0:(l=W.autoplay)==null?void 0:(w=l.autoplay)==null?void 0:w.sets);if(q)for(J=g.y(q),m=J.next();!m.done;m=J.next())if(m= +m.value,T=e=void 0,m=m.autoplayVideo||((e=m.autoplayVideoRenderer)==null?void 0:(T=e.autoplayEndpointRenderer)==null?void 0:T.endpoint),e=g.P(m,g.rN),E=T=void 0,m!=null&&((T=e)==null?void 0:T.videoId)===z.videoId&&((E=e)==null?0:E.continuePlayback)){z=m;break a}z=null}(J=g.P(z,g.rN))&&this.Vx.B1("onPlayVideo",{sessionData:{autonav:"1",itct:z==null?void 0:z.clickTrackingParams},videoId:J.videoId,watchEndpoint:J})}; +g.F.C3=function(z){var J=this;z!==this.appState&&(this.logger.debug(function(){return"app state change "+J.appState+" -> "+z}),z===2&&this.getPresentingPlayerType()===1&&(GB(this,-1),GB(this,5)),this.appState=z,this.Vx.publish("appstatechange",z))}; +g.F.Cs=function(z,J,m,e,T){this.Kq().O4(z,J,m,e,T)}; +g.F.Cy=function(z,J){this.Kq().handleError(new Sl(z,J))}; +g.F.isAtLiveHead=function(z,J){J=J===void 0?!1:J;var m=this.tX(z);if(!m)return this.Rj.K.isAtLiveHead();z=XY(this,m);m=nX(this,m);return z!==m?z.isAtLiveHead(bb(this,m.getCurrentTime(),m),!0):z.isAtLiveHead(void 0,J)}; +g.F.oB=function(){var z=this.tX();return z?XY(this,z).oB():this.Rj.K.oB()}; +g.F.seekTo=function(z,J,m,e,T){J=J!==!1;if(e=this.tX(e))this.appState===2&&BE(this),this.Uu(e)?$3(this)?this.fZ.seekTo(z,{seekSource:T},J,m):this.Fq.seekTo(z,{seekSource:T},J,m):g.Lr(this.getVideoData())&&this.Pd?this.Pd.seekTo(z,{DD:!J,PT:m,i8:"application",seekSource:T}):e.seekTo(z,{DD:!J,PT:m,i8:"application",seekSource:T})}; +g.F.seekBy=function(z,J,m,e){this.seekTo(this.getCurrentTime()+z,J,m,e)}; +g.F.MOD=function(){this.Vx.jC("SEEK_COMPLETE")}; +g.F.esx=function(){this.Vx.B1("onAbnormalityDetected")}; +g.F.X7F=function(z){this.Vx.B1("onSnackbarMessage",z)}; +g.F.LoF=function(z){var J=this.W1(),m=J.getVideoData();if(this.appState===1||this.appState===2)m.startSeconds=z;this.appState===2?g.R(J.getPlayerState(),512)||BE(this):this.Vx.jC("SEEK_TO",z)}; +g.F.Pgi=function(){this.Vx.publish("airplayactivechange");this.yx.C("html5_external_airplay_events")&&this.Vx.xr("onAirPlayActiveChange",this.Vx.Q$())}; +g.F.w7b=function(){this.Vx.publish("airplayavailabilitychange");this.yx.C("html5_external_airplay_events")&&this.Vx.xr("onAirPlayAvailabilityChange",this.Vx.m1())}; +g.F.showAirplayPicker=function(){var z;(z=this.W1())==null||z.dk()}; +g.F.Uxx=function(){this.Vx.publish("beginseeking")}; +g.F.Iof=function(){this.Vx.publish("endseeking")}; +g.F.getStoryboardFormat=function(z){return(z=this.tX(z))?XY(this,z).getStoryboardFormat():this.Rj.K.getStoryboardFormat()}; +g.F.LF=function(z){return(z=this.tX(z))?XY(this,z).getVideoData().LF():this.Rj.K.LF()}; +g.F.Uu=function(z){z=z||this.W1();var J=!1;if(z){z=z.getVideoData();if($3(this))z=z===this.fZ.playback.getVideoData();else a:if(J=this.Fq,z===J.K.getVideoData()&&J.T.length)z=!0;else{J=g.y(J.T);for(var m=J.next();!m.done;m=J.next())if(z.P7===m.value.P7){z=!0;break a}z=!1}J=z}return J}; +g.F.nW=function(z,J,m,e,T,E,Z,c){this.logger.debug(function(){return"Adding video to timeline id="+z.video_id+"\n lengthMs="+e+" enterTimeMs="+T}); +var W="",l=$3(this),w;(w=this.W1())==null||w.ph("appattl",{sstm:this.fZ?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:l});W=l?piq(this.fZ,z,J,m,e,T,E,Z,c):Z9b(this.Fq,z,m,e,T,E);this.logger.debug(function(){return"Video added to timeline id="+z.video_id+" timelinePlaybackId="+W}); +return W}; +g.F.GM=function(z,J,m,e,T,E,Z,c){if($3(this)){var W=piq(this.fZ,z,J,m,e,T,E,Z,c);this.logger.debug(function(){return"Remaining video added to timeline id="+z.video_id+" timelinePlaybackId="+W})}return""}; +g.F.eK=function(z){var J;(J=this.fZ)==null||J.eK(z)}; +g.F.fR=function(z,J){z=z===void 0?-1:z;J=J===void 0?Infinity:J;$3(this)||IVz(this.Fq,z,J)}; +g.F.k0=function(z,J,m){if($3(this)){var e=this.fZ,T=e.Rs.get(z);T?(m===void 0&&(m=T.GB),T.durationMs=J,T.GB=m):e.YA("Invalid_timelinePlaybackId_"+z+"_specified")}else{e=this.Fq;T=null;for(var E=g.y(e.T),Z=E.next();!Z.done;Z=E.next())if(Z=Z.value,Z.P7===z){T=Z;break}T?(m===void 0&&(m=T.GB),dYb(e,T,J,m)):Eo(e,"InvalidTimelinePlaybackId timelinePlaybackId="+z)}}; +g.F.enqueueVideoByPlayerVars=function(z,J,m,e){m=m===void 0?Infinity:m;e=e===void 0?"":e;this.Uu();z=new g.H$(this.yx,z);e&&(z.P7=e);F84(this,z,J,m)}; +g.F.queueNextVideo=function(z,J,m,e,T){m=m===void 0?NaN:m;z=this.preloadVideoByPlayerVars(z,J===void 0?1:J,m,e===void 0?"":e,T===void 0?"":T);J=this.W1();z&&J&&(this.C("html5_check_queue_on_data_loaded")?this.W().supportsGaplessShorts()&&J.getVideoData().X&&(m=this.Eq,e=this.Yx.V,m.U!==z&&(m.T=J,m.U=z,m.S=1,m.K=z.getVideoData(),m.Z=e,m.K.isLoaded()?m.Y():m.K.subscribe("dataloaded",m.Y,m))):(m=ohE(J,z,this.Yx.V),m!=null?(J.ph("sgap",m),J.getVideoData().X&&J.QM(!1)):(z=z.getVideoData(),J=this.Eq,J.K!== +z&&(J.K=z,J.S=1,z.isLoaded()?J.V():J.K.subscribe("dataloaded",J.V,J)))))}; +g.F.gP=function(z,J,m,e){var T=this;m=m===void 0?0:m;e=e===void 0?0:e;var E=this.W1();E&&XY(this,E).L4();Qdb(this.Yx,z,J,m,e).then(function(){T.Vx.xr("onQueuedVideoLoaded")},function(){})}; +g.F.As=function(){return this.Yx.As()}; +g.F.Lf=function(z){var J=this.Yx.K;return J?J.Os(z):!1}; +g.F.clearQueue=function(z,J){z=z===void 0?!1:z;J=J===void 0?!1:J;this.logger.debug("Clearing queue");this.Yx.clearQueue(z,J)}; +g.F.loadVideoByPlayerVars=function(z,J,m,e,T,E){J=J===void 0?1:J;var Z=this.Kq();if(J===2&&this.H7().enableServerStitchedDai&&Z&&!Z.C$())return Z.ph("lvonss",{vid:(z==null?void 0:z.videoId)||"",ptype:J}),!1;var c=!1;Z=new g.H$(this.yx,z);Z.reloadPlaybackParams=E;g.rc(this.yx)&&!Z.oi&&wh(this.hZ);var W;E=this.hZ;var l=(W=Z.qD)!=null?W:"";E.timerName=l;this.hZ.Au("pl_i");this.C("web_player_early_cpn")&&Z.clientPlaybackNonce&&this.hZ.infoGel({clientPlaybackNonce:Z.clientPlaybackNonce});if(niq(Z).supportsVp9Encoding=== +!1){var w;(w=this.W1())==null||w.ph("noVp9",{})}if(this.W().supportsGaplessShorts()){W=sdu(this.Yx,Z,J);if(W==null){GB(this,-1);z=this.Yx;z.app.W().C("html5_gapless_new_slr")?mMu(z.app,"gaplessshortslooprange"):z.app.setLoopRange(null);z.app.getVideoData().LW=!0;var q;(q=z.K)==null||q.YS();var d;(d=z.K)==null||d.gN();m={i8:"gapless_to_next_video",seekSource:60};e=g.dv(z.app.W().experiments,"html5_gapless_seek_offset");var I;(I=z.app.W1())==null||I.seekTo(vhE(z)+e,m);if(!z.app.getPlayerStateObject(J).isPlaying()){var O; +(O=z.app.W1())==null||O.playVideo(!0)}if(z.app.W().C("html5_short_gapless_unlisten_after_seek")){var G;(G=z.app.W1())==null||G.iS()}z.Y();return!0}I=this.C("html5_shorts_gapless_preload_fallback");O=this.Yx.K;I&&O&&!O.Z0()&&(G=O.getVideoData(),G=this.yx.C("html5_autonav_autoplay_in_preload_key")?x3(this,J,G):Mj(this,J,G.videoId,G.P7),this.Rj.U.set(G,O,3600));this.Yx.clearQueue(I);var n;(n=this.W1())==null||n.ph("sgap",{f:W})}if(T){for(;Z.I$.length&&Z.I$[0].isExpired();)Z.I$.shift();c=Z.I$.length- +1;c=c>0&&T.T(Z.I$[c])&&T.T(Z.I$[c-1]);Z.I$.push(T)}m||(z&&xwu(z)?(k5(this.yx)&&!this.Fg&&(z.fetch=0),ah(this,z)):this.playlist&&ah(this,null),z&&(this.Fg=Fa(!1,z.external_list)));this.Vx.publish("loadvideo");J=this.s3(Z,J,e);c&&this.Cs("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+Z.I$.join()).replace(/[;:,]/g,"_"));return J}; +g.F.preloadVideoByPlayerVars=function(z,J,m,e,T){J=J===void 0?1:J;m=m===void 0?NaN:m;e=e===void 0?"":e;T=T===void 0?"":T;var E="";if(this.yx.C("html5_autonav_autoplay_in_preload_key"))E=cxb(this,J,z,T);else{var Z=ws(z);E=Mj(this,J,Z,T)}if(this.Rj.U.get(E))return this.logger.debug(function(){return"already preloaded "+E}),null; +z=new g.H$(this.yx,z);T&&(z.P7=T);return ipu(this,z,J,m,e)}; +g.F.setMinimized=function(z){this.visibility.setMinimized(z);(z=GBE(this.Im))&&(this.isMinimized()?z.load():z.unload());this.Vx.publish("minimized")}; +g.F.setInline=function(z){this.visibility.setInline(z)}; +g.F.setInlinePreview=function(z){this.visibility.setInline(z)}; +g.F.JF=function(z){loR(this,z)||this.visibility.JF(z)}; +g.F.setSqueezeback=function(z){this.visibility.setSqueezeback(z)}; +g.F.hU=function(){var z,J=(z=this.mediaElement)==null?void 0:z.aT();J&&(this.yx.BR&&yN(IC(function(){return document.exitFullscreen()}),function(){}),yN(IC(function(){return Ys(J)}),function(){}))}; +g.F.Iif=function(){this.mediaElement.aT();this.mediaElement.aT().webkitPresentationMode==="picture-in-picture"?this.JF(!0):this.JF(!1)}; +g.F.togglePictureInPicture=function(){var z=this.W1();z&&z.togglePictureInPicture()}; +g.F.s3=function(z,J,m){J=J===void 0?1:J;this.logger.debug(function(){return"start load video, id "+z.videoId+", type "+J}); +Up("_start",this.hZ.timerName)||g.zo(Ml)(void 0,this.hZ.timerName);var e=!1,T=rEb(this,J,z,!1);T?(e=!0,z.dispose()):(T=yG(this,J,z,!0,m),(this.C("html5_onesie")||this.C("html5_load_before_stop"))&&T.yM()&&T.MF(),this.G9.stop(),J===1&&J!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,J),this.E6(T));T===this.Kq()&&(this.yx.zs=z.oauthToken);if(!T.yM())return!1;if(T===this.Kq())return this.C3(1),m=BE(this),e&&this.C("html5_player_preload_ad_fix")&&T.getPlayerType()===1&& +T.E8()&&this.PU("dataloaded",T,T.getVideoData()),m;T.HE();return!0}; +g.F.cueVideoByPlayerVars=function(z,J){var m=this;J=J===void 0?1:J;var e=this.Kq();if(this.H7().enableServerStitchedDai&&e&&!e.C$()&&z&&Object.keys(z).length>0)e.ph("qvonss",{vid:(z==null?void 0:z.videoId)||"",ptype:J});else if(z&&xwu(z))if(this.Of=!0,ah(this,z),(z=g.q5(this.playlist))&&z.pZ())oh(this,z,J);else this.playlist.onReady(function(){KX(m)}); +else{J||(J=this.getPresentingPlayerType());J===1&&this.PG();e=new g.H$(this.yx,z);var T=g.fi(this.yx)&&!this.yx.fh&&J===1&&!e.isAd()&&!e.Rs;this.Vx.publish("cuevideo");T?(this.W1().getVideoData().loading=!0,VHj(e,z?z:{}).then(function(E){oh(m,E,J)}),e.dispose()):oh(this,e,J)}}; +g.F.uG=function(z,J,m,e,T,E,Z){if(!z&&!m)throw Error("Playback source is invalid");if(bl(this.yx)||g.K1(this.yx))return J=J||{},J.lact=bE(),J.vis=this.Vx.getVisibilityState(),this.Vx.B1("onPlayVideo",{videoId:z,watchEndpoint:E,sessionData:J,listId:m}),!1;$wR(this.hZ);this.hZ.reset();z={video_id:z};e&&(z.autoplay="1");e&&(z.autonav="1");E&&(z.player_params=E.playerParams);Z&&(z.oauth_token=Z);m?(z.list=m,this.loadPlaylist(z)):this.loadVideoByPlayerVars(z,1);return!0}; +g.F.cuePlaylist=function(z,J,m,e){this.Of=!0;wnu(this,z,J,m,e)}; +g.F.loadPlaylist=function(z,J,m,e){this.Of=!1;wnu(this,z,J,m,e)}; +g.F.bd=function(){return this.Vx.isMutedByMutedAutoplay()?!1:this.getPresentingPlayerType()===3?!0:!(!this.playlist||!this.playlist.wl())}; +g.F.U3=TE(13); +g.F.nextVideo=function(z,J){var m=g.zF(this.Kq().getVideoData());g.A3(this.Vx)&&m?this.uG(m.videoId,J?m.Ex:m.sessionData,m.playlistId,J,void 0,m.x8||void 0):this.Fg?this.Vx.xr("onPlaylistNext"):this.getPresentingPlayerType()===3?D5(this.Im).nextVideo():!this.playlist||k5(this.yx)&&!this.Vx.isFullscreen()||(this.playlist.wl(z)&&o6z(this.playlist,MHq(this.playlist)),this.playlist.loaded?(z=J&&this.yx.C("html5_player_autonav_logging"),J&&this.Vx.publish("playlistautonextvideo"),this.s3(g.q5(this.playlist,void 0, +J,z),1)):this.Of=!1)}; +g.F.previousVideo=function(z){this.Fg?this.Vx.xr("onPlaylistPrevious"):this.getPresentingPlayerType()===3?D5(this.Im).dg():!this.playlist||k5(this.yx)&&!this.Vx.isFullscreen()||(this.playlist.F2(z)&&o6z(this.playlist,Atb(this.playlist)),this.playlist.loaded?this.s3(g.q5(this.playlist),1):this.Of=!1)}; +g.F.playVideoAt=function(z){this.Fg?this.Vx.xr("onPlaylistIndex",z):this.playlist&&(this.playlist.loaded?this.s3(g.q5(this.playlist,z),1):this.Of=!1,o6z(this.playlist,z))}; +g.F.getPlaylist=function(){return this.playlist}; +g.F.pD=TE(25);g.F.pr4=function(z){this.Vx.jC("onCueRangeEnter",z.getId())}; +g.F.k43=function(z){this.Vx.jC("onCueRangeExit",z.getId())}; +g.F.sM=function(){var z=g.C7(this.UC());z&&z.sM()}; +g.F.TR=function(z,J,m){var e=this.tX(J);if(e){var T=this.H7();if(g.Lr(T)){if(this.Pd)if(this.C("html5_ssap_enable_cpn_triggered_media_end")&&e.getPlayerType()===2&&this.Pd.xF()&&(e=this.Kq()),J===1)for(var E=Mv(this.Pd,T.clientPlaybackNonce),Z=g.y(z),c=Z.next();!c.done;c=Z.next())c=c.value,c.start+=E,c.end+=E,c.YF=E,c.S=T.clientPlaybackNonce;else if(this.C("html5_ssap_enable_cpn_triggered_media_end")&&J===2)for(this.getPresentingPlayerType(),T=g.y(z),E=T.next();!E.done;E=T.next())E.value.S=this.Pd.tb(); +T=g.y(z);for(E=T.next();!E.done;E=T.next())Z=void 0,E.value.playerType=(Z=J)!=null?Z:1}e.TR(z,m);J&&this.getPresentingPlayerType()!==J||jE(this,"cuerangesadded",z)}}; +g.F.i5=function(z,J){var m=this.tX(J);m&&(m.i5(z),J&&this.getPresentingPlayerType()!==J||jE(this,"cuerangesremoved",z))}; +g.F.AT=function(z){var J=this.W1()||this.Kq(),m=this.getPresentingPlayerType();return this.C("html5_ssap_enable_cpn_triggered_media_end")?J.AT(m,z):J.AT(m)}; +g.F.lHW=function(){function z(){var e=J.screenLayer||(J.isMinimized()?3:0),T=g.Dc(e);if(T&&T!=="UNDEFINED_CSN"){var E=J.yx.C("web_player_attach_player_response_ve"),Z=J.yx.C("web_playback_associated_ve");e={cpn:J.getVideoData().clientPlaybackNonce,csn:T};J.getVideoData().x3&&(E||Z)&&(E=g.BP(J.getVideoData().x3),g.ZN(T,E),Z&&(e.playbackVe=E.getAsJson()));J.getVideoData().queueInfo&&(e.queueInfo=J.getVideoData().queueInfo);T={};J.C("web_playback_associated_log_ctt")&&J.getVideoData().Y&&(T.cttAuthInfo= +{token:J.getVideoData().Y,videoId:J.getVideoData().videoId});g.qq("playbackAssociated",e,T)}else g.hr(new g.vR("CSN Missing or undefined during playback association"))} +var J=this,m=this.W1();this.getPresentingPlayerType();Dw4(this.hZ,m.getVideoData(),Opf(this));CX(this)&&this.yx.U&&ML(this.H7())==="embedded"&&this.g7&&Math.random()<.01&&g.qq("autoplayTriggered",{intentional:this.intentionalPlayback});this.g7=!1;pEq(this.Im);this.C("web_player_defer_ad")&&LDq(this);this.Vx.xr("onPlaybackStartExternal");(this.yx.C("mweb_client_log_screen_associated"),PZ(this.yx))||z();m={};this.getVideoData().Y&&(m.cttAuthInfo={token:this.getVideoData().Y,videoId:this.getVideoData().videoId}); +m.sampleRate=20;Hh("player_att",m);if(this.getVideoData().botguardData||this.C("fetch_att_independently"))g.vZ(this.yx)||sY(this.yx)==="MWEB"?g.mV(g.Tf(),function(){SE(J)}):SE(this); +this.h5();eqs(this);this.C("embeds_enable_autoplay_and_visibility_signals")&&g.fi(this.yx)&&(m={autoplayBrowserPolicy:km(),autoplayIntended:LQ(this.getVideoData()),autoplayStatus:xPu(this.getVideoData(),1),cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.qq("embedsAutoplayStatusChanged",m))}; +g.F.ao4=function(){this.Vx.publish("internalAbandon");gi(this)}; +g.F.onApiChange=function(){var z=this.W1();this.yx.V&&z?this.Vx.jC("onApiChange",z.getPlayerType()):this.Vx.jC("onApiChange")}; +g.F.zbb=function(){var z=this.mediaElement;z={volume:g.O8(Math.floor(z.getVolume()*100),0,100),muted:z.x7()};z.muted||D2(this,!1);this.Ts=g.oi(z);this.Vx.jC("onVolumeChange",z)}; +g.F.mutedAutoplay=function(z){var J=this.getVideoData().videoId;isNaN(this.Yh)&&(this.Yh=this.getVideoData().startSeconds);if((z==null?0:z.videoId)||J)this.loadVideoByPlayerVars({video_id:(z==null?0:z.videoId)?z==null?void 0:z.videoId:J,playmuted:!0,start:this.Yh,muted_autoplay_duration_mode:z==null?void 0:z.durationMode}),this.Vx.xr("onMutedAutoplayStarts")}; +g.F.onFullscreenChange=function(){var z=yx1(this);this.V2(z?1:0);G2s(this,!!z)}; +g.F.V2=function(z){var J=!!z,m=!!this.cZ()!==J;this.visibility.V2(z);this.template.V2(J);this.C("html5_media_fullscreen")&&!J&&this.mediaElement&&yx1(this)===this.mediaElement.aT()&&this.mediaElement.J1();this.template.resize();m&&this.hZ.tick("fsc");m&&(this.Vx.publish("fullscreentoggled",J),z=this.H7(),J={fullscreen:J,videoId:z.q3||z.videoId,time:this.getCurrentTime()},this.Vx.getPlaylistId()&&(J.listId=this.Vx.getPlaylistId()),this.Vx.jC("onFullscreenChange",J))}; +g.F.dD=function(){return this.visibility.dD()}; +g.F.isFullscreen=function(){return this.visibility.isFullscreen()}; +g.F.cZ=function(){return this.visibility.cZ()}; +g.F.Od=function(){if(this.W1()){var z=this.cZ();z!==0&&z!==1||this.V2(yx1(this)?1:0);z=window.screen.width*window.screen.height;var J=window.outerHeight*window.outerWidth;this.yx.sB?(this.H3=Math.max(this.H3,z,J),z=J/this.H30&&(W=Math.floor(l/1E3))}W=J?J.zt:W;var w={AD_BLOCK:this.K++,AD_BREAK_LENGTH:W,AUTONAV_STATE:ub(this.player.W()),CA_TYPE:"image",CPN:c.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.oB()*1E3,LACT:bE(),LIVE_INDEX:J?this.S++:1,LIVE_TARGETING_CONTEXT:J&&J.context?J.context:"",MIDROLL_POS:E? +Math.round(E.start/1E3):0,MIDROLL_POS_MS:E?Math.round(E.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.zf().XE().height,P_W:this.player.zf().XE().width,YT_REMOTE:T?T.join(","):""},q=IQ(dj);Object.keys(q).forEach(function(I){q[I]!=null&&(w[I.toUpperCase()]=q[I].toString())}); +m!==""&&(w.BISCOTTI_ID=m);m={};qp(z)&&(m.sts="20172",(J=this.player.W().forcedExperiments)&&(m.forced_experiments=J));var d=Wf(g.Dn(z,w),m);return d.split("?").length!==2?KB(Error("Invalid AdBreakInfo URL")):g.El(this.player.W(),c==null?void 0:c.oauthToken).then(function(I){if(I&&wj()){var O=h3();u8(O,I)}I=e.player.fB(O);O=UMz(e,d,w,c.isMdxPlayback,Z);return g.vh(I,O,"/youtubei/v1/player/ad_break").then(function(G){return G})})}; +VG.prototype.reset=function(){this.S=this.K=1};g.p(Rqu,VG); +Rqu.prototype.T=function(z,J,m){J=J===void 0?{}:J;var e=J.fz;var T=J.FQ;var E=J.cueProcessedMs;m=m===void 0?"":m;J=this.K;this.K++;var Z=this.player.W().C("h5_disable_macro_substitution_in_get_ad_break")?z:k2z(this,z,{fz:e,FQ:T,cueProcessedMs:E},m,J);if(Z.split("?").length!==2)return Math.random()<.1&&g.hr(Error("Invalid AdBreakInfo URL")),KB(Error("Invalid AdBreakInfo URL"));var c=this.player.getVideoData(1).isMdxPlayback,W=m;m=j4q.exec(Z);m=m!=null&&m.length>=2?m[1]:"";z=hq1.test(Z);var l=uI1.exec(Z); +l=l!=null&&l.length>=2?l[1]:"";var w=Vaj.exec(Z);w=w!=null&&w.length>=2&&!Number.isNaN(Number(w[1]))?Number(w[1]):1;var q=PHR.exec(Z);q=q!=null&&q.length>=2?q[1]:"0";var d=ul(this.player.W().qA),I=g.zr(this.player.getVideoData(1).x3,!0);$ME(this,I,Z,W===""?"":W,this.player.W(),this.player.getVideoData(1));W={splay:!1,lactMilliseconds:String(bE()),playerHeightPixels:Math.trunc(this.player.zf().XE().height),playerWidthPixels:Math.trunc(this.player.zf().XE().width),vis:Math.trunc(this.player.getVisibilityState()), +signatureTimestamp:20172,autonavState:ub(this.player.W())};if(c){c={};var O=this.player.W().kx;Maz(c,O?O.join(","):"")&&(W.mdxContext=c)}if(c=taq.includes(d)?void 0:g.uv("PREF")){O=c.split(RegExp("[:&]"));for(var G=0,n=O.length;G1&&C[1].toUpperCase()==="TRUE"){I.user.lockedSafetyMode=!0;break}}W.autoCaptionsDefaultOn=oqs(c)}Z=Hpu.exec(Z);(Z=Z!=null&&Z.length>=2?Z[1]:"")&&l&&(I.user.credentialTransferTokens= +[{token:Z,scope:"VIDEO"}]);Z={contentPlaybackContext:W};W=this.player.getVideoData(1).getGetAdBreakContext();c=this.player.getVideoData(1).clientPlaybackNonce;O=E!==void 0?Math.round(E).toString():void 0;G=(e==null?0:e.context)?e.context:void 0;n=0;E&&T&&!e&&(T=T.end-T.start,T>0&&(n=Math.floor(T/1E3)));e=(e=Math.trunc((e?e.zt:n)*1E3))?String(e):void 0;T=this.player.oB()*1E3;T=Number.isNaN(T)?0:Math.trunc(T);J={adBlock:J,params:m,breakIndex:w,breakPositionMs:q,clientPlaybackNonce:c,topLevelDomain:d, +isProxyAdTagRequest:z,context:I,overridePlaybackContext:Z,cueProcessedMs:O,videoId:l?l:void 0,liveTargetingParams:G,breakLengthMs:e,driftFromHeadMs:T?String(T):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:W?W:void 0};return L8u(this,J)};var Qjc={NJ6:"replaceUrlMacros",vlb:"onAboutThisAdPopupClosed",pWz:"executeCommand"};Q4u.prototype.Qd=function(){return"adPingingEndpoint"}; +Q4u.prototype.Jf=function(z,J,m){fwR(this.Zn.get(),z,J,m)};vqq.prototype.Qd=function(){return"changeEngagementPanelVisibilityAction"}; +vqq.prototype.Jf=function(z){this.G.B1("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:z})};s4q.prototype.Qd=function(){return"loggingUrls"}; +s4q.prototype.Jf=function(z,J,m){z=g.y(z);for(var e=z.next();!e.done;e=z.next())e=e.value,fwR(this.Zn.get(),e.baseUrl,J,m,e.attributionSrcMode)};g.p(zk4,g.h);g.p(tI,g.h);g.F=tI.prototype;g.F.addListener=function(z){this.listeners.push(z)}; +g.F.removeListener=function(z){this.listeners=this.listeners.filter(function(J){return J!==z})}; +g.F.lV=function(z,J,m,e,T,E,Z,c){if(z==="")IU("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(z!==this.K||m){this.K=z;this.Dn.get().lV(z,J,m,e,T,E,Z,c);this.Ch.get().lV(z,J,m,e,T,E,Z,c);var W;(W=this.KZ)==null||W.get().lV(z,J,m,e,T,E,Z,c);this.T.lV(z,J,m,e,T,E,Z,c);W=g.y(this.listeners);for(var l=W.next();!l.done;l=W.next())l.value.lV(z,J,m,e,T,E,Z,c)}else IU("Duplicate content video loaded signal")}; +g.F.B3=function(){this.K&&this.GC(this.K)}; +g.F.GC=function(z){this.K=void 0;for(var J=g.y(this.listeners),m=J.next();!m.done;m=J.next())m.value.GC(z)};HE.prototype.lX=function(z,J,m,e,T){JWf(this);this.Z=!J&&m===0;var E=this.G.getVideoData(1),Z=this.G.getVideoData(2);E&&(this.contentCpn=E.clientPlaybackNonce,this.videoId=E.videoId,this.K=E.Y);Z&&(this.adCpn=Z.clientPlaybackNonce,this.adVideoId=Z.videoId,this.adFormat=Z.adFormat);this.U=z;e<=0?(JWf(this),this.Z=!J&&m===0):(this.actionType=this.Z?J?"unknown_type":"video_to_ad":J?"ad_to_video":"ad_to_ad",this.videoStreamType=T?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& +(this.S=!0,Up("_start",this.actionType)&&Tqq(this)))}; +HE.prototype.reset=function(){return new HE(this.G)};g.p(Uo,g.h);Uo.prototype.addCueRange=function(z,J,m,e,T,E,Z){E=E===void 0?3:E;Z=Z===void 0?1:Z;this.K.has(z)?IU("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:z}):(z=new ERb(z,J,m,e,E),this.K.set(z.id,{FQ:z,listener:T,lR:Z}),this.G.U4([z],Z))}; +Uo.prototype.removeCueRange=function(z){var J=this.K.get(z);J?(this.G.Yy([J.FQ],J.lR),this.K.delete(J.FQ.id)):IU("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:z})}; +Uo.prototype.onCueRangeEnter=function(z){if(this.K.has(z.id))this.K.get(z.id).listener.onCueRangeEnter(z.id)}; +Uo.prototype.onCueRangeExit=function(z){if(this.K.has(z.id))this.K.get(z.id).listener.onCueRangeExit(z.id)}; +g.p(ERb,g.Ec);Rh.prototype.WL=function(z){this.G.WL(z)}; +Rh.prototype.I_=function(z){var J=g.gu.apply(1,arguments);z==="onAdStart"||z==="onAdEnd"?this.G.jC.apply(this.G,[z].concat(g.X(J))):this.G.B1.apply(this.G,[z].concat(g.X(J)))};k3.prototype.LZ=function(z){return z&&LX(this)};var dXb=null;g.p(q4u,g.wF);q4u.prototype.Yp=function(z){return this.K.hasOwnProperty(z)?this.K[z].Yp():{}}; +g.tu("ytads.bulleit.getVideoMetadata",function(z){return QG().Yp(z)}); +g.tu("ytads.bulleit.triggerExternalActivityEvent",function(z,J,m){var e=QG();m=wWR(m);m!==null&&e.publish(m,{queryId:z,viewabilityString:J})});g.F=vE.prototype;g.F.YE=function(z,J){if(!this.K.has(z))return{};if(J==="seek"){J=!1;J=J===void 0?!1:J;var m=BN(az).VY(z,{});m?n8(m):J&&(z=BN(az).BL(null,UT(),!1,z),z.t7=3,un4([z]));return{}}J=OVj(J);if(J===null)return{};var e=this.G.CS();if(!e)return{};var T=this.G.getPresentingPlayerType(!0);if((m=this.G.getVideoData(T))==null||!m.isAd())return{};m={opt_adElement:e,opt_fullscreen:this.Dn.get().isFullscreen()};return uAq(J,z,m)}; +g.F.sQ=function(z,J,m,e,T){this.K.has(z)&&(e<=0||T<=0||BN(az).sQ(z,J,m,e,T))}; +g.F.EM=function(z){var J;(J=this.K.get(z.queryId))==null||J.EM()}; +g.F.hk=function(z){var J;(J=this.K.get(z.queryId))==null||J.hk()}; +g.F.CL=function(z){var J;(J=this.K.get(z.queryId))==null||J.CL()}; +g.F.m2=function(z){var J;(J=this.K.get(z.queryId))==null||J.m2()}; +g.F.Z3=function(z){var J;(J=this.K.get(z.queryId))==null||J.Z3()};Cnf.prototype.send=function(z,J,m,e){try{awb(this,z,J,m,e===void 0?!1:e)}catch(T){}};g.p(KRq,Cnf);Bqu.prototype.send=function(z,J,m,e){var T=!1;try{if(e==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||e==="ATTRIBUTION_SRC_MODE_XHR_OPTION")T=!0,z=iHu(z);e=T;var E=z.match(P1);if(E[1]==="https")var Z=z;else E[1]="https",Z=uy("https",E[2],E[3],E[4],E[5],E[6],E[7]);var c=JfE(Z);E=[];var W=Rzz(Z)&&this.Kh.get().G.W().experiments.j4("add_auth_headers_to_remarketing_google_dot_com_ping");if(qp(Z)||W)E.push({headerType:"USER_AUTH"}),E.push({headerType:"PLUS_PAGE_ID"}),E.push({headerType:"VISITOR_ID"}),E.push({headerType:"EOM_VISITOR_ID"}), +E.push({headerType:"AUTH_USER"}),E.push({headerType:"DATASYNC_ID"});this.K.send({baseUrl:Z,scrubReferrer:c,headers:E},J,m,e)}catch(l){}};ma.prototype.gG=function(){return this.G.gG(1)};g.p(eu,g.h);g.F=eu.prototype;g.F.vU=function(){return this.G.getVideoData(1).clientPlaybackNonce}; +g.F.addListener=function(z){this.listeners.push(z)}; +g.F.removeListener=function(z){this.listeners=this.listeners.filter(function(J){return J!==z})}; +g.F.lV=function(){this.XX.clear();this.zy=null;this.qF.get().clear()}; +g.F.GC=function(){}; +g.F.FNi=function(z,J,m,e,T){J.videoId==="nPpU29QrbiU"&&this.G.ph("ads_ssm_vdc_s",{pt:m,dvt:z});nw(this.Kh.get())&&z!=="dataloaded"||AW1(this,J,m);if(LX(this.Kh.get())&&z==="newdata"&&T!==void 0){z=this.vU();var E=J.clientPlaybackNonce,Z={};Yy(this,"rte",(Z.ec=E,Z.xc=e==null?void 0:e.clientPlaybackNonce,Z.tr=T,Z.pt=m,Z.ia=E!==z,Z.ctp=nG(E),Z));J=J.clientPlaybackNonce;e=e==null?void 0:e.clientPlaybackNonce;T=oRq(T);if(T!==1)if(e!==void 0)for(m=g.y(this.listeners),z=m.next();!z.done;z=m.next())z.value.Ku(e, +J,T);else IU("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:J,transitionReason:String(T)});T=g.y(this.listeners);for(e=T.next();!e.done;e=T.next())e.value.oX(J)}}; +g.F.Y4y=function(z,J){z!==void 0&&(this.zy=z,J===void 0?IU("Expected ad video start time on SS video changed"):this.XX.set(z,J));var m=this.G.getPresentingPlayerType(!0),e=this.G.getVideoData(m);this.G.getVideoData(1).ph("ads_ssvc",{pt:m,cpn:e==null?void 0:e.clientPlaybackNonce,crtt:this.G.getCurrentTime(1,!1),atlh:this.G.isAtLiveHead(),adstt:J});e?AW1(this,e,m):IU("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.G.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:z})}; +g.F.vn=function(z,J){var m=z.author,e=z.clientPlaybackNonce,T=z.isListed,E=z.P7,Z=z.title,c=z.h8,W=z.wu,l=z.isMdxPlayback,w=z.nJ,q=z.mdxEnvironment,d=z.isAutonav,I=z.rk,O=z.oi,G=z.Qp,n=z.videoId||"",C=z.profilePicture||"",K=z.Ab||"",f=z.pA()||!1,x=z.b8()||!1;z=z.pz||void 0;E=this.qF.get().K.get(E)||{layoutId:null,slotId:null};var V=this.G.getVideoData(1),zE=V.Cq();V=V.getPlayerResponse();J=1E3*this.G.getDuration(J);var k=1E3*this.G.getDuration(1),Ez,ij,r=(V==null?void 0:(Ez=V.playerConfig)==null? +void 0:(ij=Ez.daiConfig)==null?void 0:ij.enableDai)||!1,t,v;Ez=(V==null?void 0:(t=V.playerConfig)==null?void 0:(v=t.daiConfig)==null?void 0:v.enablePreroll)||!1;return Object.assign({},E,{videoId:n,author:m,clientPlaybackNonce:e,DC:J,NW:k,daiEnabled:r,po:Ez,isListed:T,Cq:zE,profilePicture:C,title:Z,Ab:K,h8:c,wu:W,pz:z,isMdxPlayback:l,nJ:w,mdxEnvironment:q,isAutonav:d,rk:I,oi:O,Qp:G,pA:f,b8:x})}; +g.F.oy=function(){this.listeners.length=0;this.lm=null;g.h.prototype.oy.call(this)};g.p(TW,g.h);g.F=TW.prototype;g.F.lV=function(){var z=this;LX(this.Kh.get())||(this.K=Gw(function(){z.G.mF()||z.G.Zb("ad",1)}))}; +g.F.GC=function(){}; +g.F.addListener=function(z){this.listeners.push(z)}; +g.F.removeListener=function(z){this.listeners=this.listeners.filter(function(J){return J!==z})}; +g.F.M5=function(){}; +g.F.playVideo=function(){this.G.playVideo()}; +g.F.pauseVideo=function(){this.G.pauseVideo()}; +g.F.resumeVideo=function(z){this.Mv(z)&&this.G.playVideo()}; +g.F.Mv=function(z){return this.G.getPlayerState(z)===2}; +g.F.getCurrentTimeSec=function(z,J,m){var e=this.Ch.get().zy;if(z===2&&!J&&e!==null)return hku(this,e);Q6(this.Kh.get(),"html5_ssap_use_cpn_to_get_time")||(m=void 0);return m!==void 0?this.G.getCurrentTime(z,J,m):this.G.getCurrentTime(z,J)}; +g.F.getVolume=function(){return this.G.getVolume()}; +g.F.isMuted=function(){return this.G.isMuted()}; +g.F.getPresentingPlayerType=function(){return this.G.getPresentingPlayerType(!0)}; +g.F.getPlayerState=function(z){return this.G.getPlayerState(z)}; +g.F.isFullscreen=function(){return this.G.isFullscreen()}; +g.F.isAtLiveHead=function(){return this.G.isAtLiveHead()}; +g.F.JT=function(z){this.G.JT(z)}; +g.F.rwy=function(){var z=this.G.getPresentingPlayerType(!0),J=this.getCurrentTimeSec(z,!1);if(z===2){z=g.y(this.listeners);for(var m=z.next();!m.done;m=z.next())m.value.ly(J)}else if(z===1)for(z=g.y(this.t1),m=z.next();!m.done;m=z.next())m.value.M5(J)}; +g.F.Er6=function(z){for(var J=g.y(this.listeners),m=J.next();!m.done;m=J.next())m.value.Hm(z,this.getPresentingPlayerType())}; +g.F.onFullscreenToggled=function(z){for(var J=g.y(this.listeners),m=J.next();!m.done;m=J.next())m.value.onFullscreenToggled(z)}; +g.F.onVolumeChange=function(){for(var z=g.y(this.listeners),J=z.next();!J.done;J=z.next())J.value.onVolumeChange()}; +g.F.s9=function(){for(var z=this.G.isMinimized(),J=g.y(this.listeners),m=J.next();!m.done;m=J.next())m.value.s9(z)}; +g.F.vz=function(z){for(var J=g.y(this.listeners),m=J.next();!m.done;m=J.next())m.value.vz(z)}; +g.F.yQ=function(){for(var z=this.G.zf().XE(),J=g.y(this.listeners),m=J.next();!m.done;m=J.next())m.value.Qn(z)}; +g.F.fA=function(z){for(var J=g.y(this.listeners),m=J.next();!m.done;m=J.next())m.value.fA(z)}; +g.F.oF=function(){for(var z=g.y(this.listeners),J=z.next();!J.done;J=z.next())J.value.oF()};g.p(Pns,g.h);g.p(cS,g.h);cS.prototype.oy=function(){this.XV.mF()||this.XV.get().removeListener(this);g.h.prototype.oy.call(this)};WS.prototype.fetch=function(z){var J=z.LK;return this.K.fetch(z.WO,{fz:z.fz===void 0?void 0:z.fz,FQ:J,cueProcessedMs:z.cueProcessedMs===void 0?0:z.cueProcessedMs}).then(function(m){return tNR(m,J)})};g.p(lT,g.h);g.F=lT.prototype;g.F.addListener=function(z){this.listeners.push(z)}; +g.F.removeListener=function(z){this.listeners=this.listeners.filter(function(J){return J!==z})}; +g.F.B_=function(z){HVj(this,z,1)}; +g.F.onAdUxClicked=function(z,J){w4(this,function(m){m.Ju(z,J)})}; +g.F.E$=function(z){w4(this,function(J){J.Bc(z)})}; +g.F.h9=function(z){w4(this,function(J){J.OY(z)})}; +g.F.zwz=function(z){w4(this,function(J){J.X$(z)})};qa.prototype.reduce=function(z){switch(z.event){case "unknown":return}var J=z.identifier;var m=this.K[J];m?J=m:(m={PZ:null,hI:-Infinity},J=this.K[J]=m);m=z.startSecs+z.K/1E3;if(!(m=this.K.startSecs&&m.startSecs<=this.K.startSecs+this.K.zt)){var e=void 0;if(Yi(this.Kh.get())&&m.identifier!==((e=this.K)==null?void 0:e.identifier)){var T=e=void 0,E=void 0,Z=void 0;Ti(this.Zn.get(),"ocud","ccpi."+m.identifier+";ccpe."+m.event+";ccps."+m.startSecs+";\n ccpd."+m.zt+";pcpi."+((e=this.K)==null?void 0:e.identifier)+ +";pcpe."+((T=this.K)==null?void 0:T.event)+";\n pcps."+((E=this.K)==null?void 0:E.startSecs)+";pcpd."+((Z=this.K)==null?void 0:Z.zt)+";")}e=void 0;m.identifier!==((e=this.K)==null?void 0:e.identifier)&&IU("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.K=m,kJf(this,m)}}; +g.F.oy=function(){this.T!=null&&(this.T.unsubscribe("cuepointupdated",this.q5,this),this.T=null);this.listeners.length=0;this.TJ.length=0;g.h.prototype.oy.call(this)};II.prototype.addPlayerResponseForAssociation=function(z){this.G.addPlayerResponseForAssociation(z)};g.F=pR.prototype;g.F.nW=function(z,J,m,e,T,E,Z){return this.G.nW(z,J,m,e,T,E,Z)}; +g.F.fR=function(z,J){this.G.fR(z,J)}; +g.F.k0=function(z,J,m){this.G.k0(z,J,m)}; +g.F.eK=function(z){this.G.eK(z)}; +g.F.GM=function(z,J,m,e,T,E,Z){this.G.GM(z,J,m,e,T,E,Z)}; +g.F.Mw=function(z){return this.G.Mw(z)}; +g.F.finishSegmentByCpn=function(z,J,m){m=s8u(m);this.G.finishSegmentByCpn(z,J,m)};g.p(z6z,g.h);g.p(Jqq,g.h);g.p(myb,g.h);g.p(e6f,g.h);g.p(T5R,g.h);g.p(Zm1,g.h);Zm1.prototype.S=function(){return this.T};g.p(F5u,kC); +F5u.prototype.U=function(z){var J=z.content;if(J.componentType==="shopping-companion")switch(z.actionType){case 1:case 2:z=this.K.getVideoData(1);this.K.B1("updateKevlarOrC3Companion",{contentVideoId:z&&z.videoId,shoppingCompanionCarouselRenderer:J.renderer,layoutId:J.layoutId,macros:J.macros,onLayoutVisibleCallback:J.K,interactionLoggingClientData:J.interactionLoggingClientData});break;case 3:this.K.B1("updateKevlarOrC3Companion",{})}else if(J.componentType==="action-companion")switch(z.actionType){case 1:case 2:z=this.K.getVideoData(1); +this.K.B1("updateKevlarOrC3Companion",{contentVideoId:z&&z.videoId,actionCompanionAdRenderer:J.renderer,layoutId:J.layoutId,macros:J.macros,onLayoutVisibleCallback:J.K,interactionLoggingClientData:J.interactionLoggingClientData});break;case 3:J.renderer&&(J=this.K.getVideoData(1),this.K.B1("updateKevlarOrC3Companion",{contentVideoId:J&&J.videoId})),this.K.B1("updateKevlarOrC3Companion",{})}else if(J.componentType==="image-companion")switch(z.actionType){case 1:case 2:z=this.K.getVideoData(1);this.K.B1("updateKevlarOrC3Companion", +{contentVideoId:z&&z.videoId,imageCompanionAdRenderer:J.renderer,layoutId:J.layoutId,macros:J.macros,onLayoutVisibleCallback:J.K,interactionLoggingClientData:J.interactionLoggingClientData});break;case 3:J=this.K.getVideoData(1),this.K.B1("updateKevlarOrC3Companion",{contentVideoId:J&&J.videoId}),this.K.B1("updateKevlarOrC3Companion",{})}else if(J.componentType==="top-banner-image-text-icon-buttoned")switch(z.actionType){case 1:case 2:z=this.K.getVideoData(1);this.K.B1("updateKevlarOrC3Companion", +{contentVideoId:z&&z.videoId,topBannerImageTextIconButtonedLayoutViewModel:J.renderer,layoutId:J.layoutId,macros:J.macros,onLayoutVisibleCallback:J.K,interactionLoggingClientData:J.interactionLoggingClientData});break;case 3:J.renderer&&(J=this.K.getVideoData(1),this.K.B1("updateKevlarOrC3Companion",{contentVideoId:J&&J.videoId})),this.K.B1("updateKevlarOrC3Companion",{})}else if(J.componentType==="banner-image")switch(z.actionType){case 1:case 2:z=this.K.getVideoData(1);this.K.B1("updateKevlarOrC3Companion", +{contentVideoId:z&&z.videoId,bannerImageLayoutViewModel:J.renderer,layoutId:J.layoutId,macros:J.macros,onLayoutVisibleCallback:J.K,interactionLoggingClientData:J.interactionLoggingClientData});break;case 3:J=this.K.getVideoData(1),this.K.B1("updateKevlarOrC3Companion",{contentVideoId:J&&J.videoId}),this.K.B1("updateKevlarOrC3Companion",{})}else if(J.componentType==="ads-engagement-panel")switch(J=J.renderer,z.actionType){case 1:case 2:this.K.B1("updateEngagementPanelAction",J.addAction);this.K.B1("changeEngagementPanelVisibility", +J.expandAction);break;case 3:this.K.B1("changeEngagementPanelVisibility",J.hideAction),this.K.B1("updateEngagementPanelAction",J.removeAction)}else if(J.componentType==="ads-engagement-panel-layout"){var m=J.renderer;switch(z.actionType){case 1:case 2:this.K.B1("updateEngagementPanelAction",{action:tr(m.addAction),layoutId:J.layoutId,onLayoutVisibleCallback:J.K,interactionLoggingClientData:J.interactionLoggingClientData});this.K.B1("changeEngagementPanelVisibility",tr(m.expandAction));break;case 3:this.K.B1("changeEngagementPanelVisibility", +tr(m.hideAction)),this.K.B1("updateEngagementPanelAction",{action:tr(m.removeAction)})}}};g.p(imu,mk);g.F=imu.prototype;g.F.init=function(z,J,m){mk.prototype.init.call(this,z,J,m);g.FR(this.S,"stroke-dasharray","0 "+this.T);this.S.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.Y.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.U.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; +g.F.clear=function(){this.hide()}; +g.F.hide=function(){Te(this);mk.prototype.hide.call(this)}; +g.F.show=function(){eD(this);mk.prototype.show.call(this)}; +g.F.Zq=function(){this.hide()}; +g.F.EA=function(){if(this.K){var z=this.K.getProgressState();z!=null&&z.current!=null&&g.FR(this.S,"stroke-dasharray",z.current/z.seekableEnd*this.T+" "+this.T)}};g.p(cqj,y7);g.F=cqj.prototype; +g.F.init=function(z,J,m){y7.prototype.init.call(this,z,J,m);if(J.image&&J.image.thumbnail)if(J.headline)if(J.description)if(J.backgroundImage&&J.backgroundImage.thumbnail)if(J.actionButton&&g.P(J.actionButton,g.oR))if(z=J.durationMilliseconds||0,typeof z!=="number"||z<=0)g.jk(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+z));else if(J.navigationEndpoint){var e=this.api.getVideoData(2);if(e!=null){var T=J.image.thumbnail.thumbnails;T!=null&& +T.length>0&&g.CN(g.Ty(T[0].url))&&(T[0].url=e.profilePicture,g.CN(g.Ty(e.profilePicture))&&Eeu("VideoPlayer",239976093,"Expected non-empty profile picture."));T=J.backgroundImage.thumbnail.thumbnails;T!=null&&T.length>0&&g.CN(g.Ty(T[0].url))&&(T[0].url=e.NA());T=J.headline;T!=null&&g.CN(g.Ty(T.text))&&(T.text=e.author)}this.B.init(WV("ad-image"),J.image,m);this.Y.init(WV("ad-text"),J.headline,m);this.S.init(WV("ad-text"),J.description,m);this.qD.init(WV("ad-image"),J.backgroundImage,m);e=["ytp-ad-action-interstitial-action-button", +"ytp-ad-action-interstitial-action-button-rounded"];this.slot.classList.add("ytp-ad-action-interstitial-slot-dark-background");this.Y.element.classList.add("ytp-ad-action-interstitial-headline-light");this.S.element.classList.add("ytp-ad-action-interstitial-description-light");e.push("ytp-ad-action-interstitial-action-button-dark");this.api.W().T&&(e.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),e.push("ytp-ad-action-interstitial-action-button-dark"));this.api.W().C("enable_unified_action_endcap_on_web")&& +!this.api.W().T&&(e.push("ytp-ad-action-interstitial-action-button-unified"),this.nh.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.B.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.O2.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.Kc.classList.add("ytp-ad-action-interstitial-card-unified"),this.fh.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.S.element.classList.add("ytp-ad-action-interstitial-description-unified"), +this.x3.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.Y.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.Gf.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.h6.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new AJ(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,e);g.u(this,this.actionButton);this.actionButton.S4(this.nh); +this.actionButton.init(WV("button"),g.P(J.actionButton,g.oR),m);UD(this.actionButton.element);e=LE(this.actionButton.element);kT(this.actionButton.element,e+" This link opens in new tab");this.navigationEndpoint=J.navigationEndpoint;this.U.L(this.Gf,"click",this.dM,this);this.U.L(this.fh,"click",this.dM,this);!this.api.W().C("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.W().T||this.U.L(this.x3,"click",this.dM,this);this.K=this.OJ?new aU(this.api,z):new KO(z);g.u(this,this.K);if(J.skipButton){(z= +g.P(J.skipButton,i09))&&this.K&&(this.skipButton=new No(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,this.K,this.F0),g.u(this,this.skipButton),this.skipButton.S4(this.element),this.skipButton.init(WV("skip-button"),z,m));if(m=J.adBadgeRenderer)if(m=g.P(m,FYe))z=new YE(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,!0,!0),z.S4(this.h6),z.init(WV("simple-ad-badge"),m,this.macros),g.u(this,z);if(m=J.adInfoRenderer)if(m=g.P(m,MW))z=new rF(this.api,this.layoutId,this.interactionLoggingClientData, +this.gb,this.element,void 0,!0),z.S4(this.h6),z.init(WV("ad-info-hover-text-button"),m,this.macros),g.u(this,z)}else J.nonskippableOverlayRenderer&&(z=g.P(J.nonskippableOverlayRenderer,Am))&&this.K&&(this.T=new FW(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,this.K,!1),g.u(this,this.T),this.T.S4(this.element),this.T.init(WV("ad-preview"),z,m));J.countdownRenderer&&(J=J.countdownRenderer,g.P(J,csg)&&this.K&&(m=new imu(this.api,this.layoutId,this.interactionLoggingClientData,this.gb, +this.K),g.u(this,m),m.S4(this.element),m.init(WV("timed-pie-countdown"),g.P(J,csg),this.macros)));this.show();this.element.focus()}else g.jk(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.jk(Error("AdActionInterstitialRenderer has no button."));else g.jk(Error("AdActionInterstitialRenderer has no background AdImage."));else g.jk(Error("AdActionInterstitialRenderer has no description AdText."));else g.jk(Error("AdActionInterstitialRenderer has no headline AdText."));else g.jk(Error("AdActionInterstitialRenderer has no image."))}; +g.F.clear=function(){g.gs(this.U);this.hide()}; +g.F.show=function(){W5s(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.T&&this.T.show();y7.prototype.show.call(this)}; +g.F.hide=function(){W5s(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.T&&this.T.hide();y7.prototype.hide.call(this)}; +g.F.dM=function(){this.navigationEndpoint&&(this.layoutId?this.gb.executeCommand(this.navigationEndpoint,this.layoutId):g.jk(Error("Missing layoutId for ad action interstitial.")))};var Iuq={iconType:"CLOSE"},Xi=new g.XT(320,63);g.p(dyf,y7);g.F=dyf.prototype; +g.F.init=function(z,J,m){y7.prototype.init.call(this,z,J,m);this.U=J;this.B=g.en(this.U.onClickCommands||[]);this.h6=this.U.onErrorCommand||null;if(z=this.U.contentSupportedRenderer)z=this.U.contentSupportedRenderer,J=this.U.adInfoRenderer||null,g.P(z,Te9)?(this.Y=g.rC("ytp-ad-overlay-ad-info-button-container",this.S.element),Omu(this,J),z=yqs(this,g.P(z,Te9))):g.P(z,EUv)?(this.Y=g.rC("ytp-ad-overlay-ad-info-button-container",this.T.element),Omu(this,J),z=N5q(this,g.P(z,EUv))):g.P(z,Z01)?(this.Y= +g.rC("ytp-ad-overlay-ad-info-button-container",this.K.element),Omu(this,J),z=GPb(this,g.P(z,Z01))):(g.jk(Error("InvideoOverlayAdRenderer content could not be initialized.")),z=!1);z&&(this.show(),Xg1(this,!0))}; +g.F.clear=function(){Xg1(this,!1);this.Gf.reset();this.fh=0;this.S.hide();this.logVisibility(this.S.element,!1);this.T.hide();this.logVisibility(this.T.element,!1);this.K.hide();this.logVisibility(this.K.element,!1);this.hide();this.dispose()}; +g.F.Xkf=function(){this.nh&&(this.layoutId?this.gb.executeCommand(this.nh,this.layoutId):g.jk(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; +g.F.Yo=function(){a:{if(this.U&&this.U.closeButton&&this.U.closeButton.buttonRenderer){var z=this.U.closeButton.buttonRenderer;if(z.serviceEndpoint){z=[z.serviceEndpoint];break a}}z=[]}z=g.y(z);for(var J=z.next();!J.done;J=z.next())J=J.value,this.layoutId?this.gb.executeCommand(J,this.layoutId):g.jk(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; +g.F.sTf=function(){this.qD||this.api.getPlayerState(1)!==2||this.api.playVideo()}; +g.F.T1=function(){this.qD||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.T1("invideo-overlay")}; +g.F.ddF=function(z){z.target===this.Y&&g.rC("ytp-ad-button",this.O2.element).click()};g.p(nns,mk);g.F=nns.prototype;g.F.init=function(z,J,m){mk.prototype.init.call(this,z,J,m);z=J.durationMs;this.S=z==null||z===0?0:z+this.K.getProgressState().current*1E3;if(J.text)var e=J.text.templatedAdText;else J.staticMessage&&(e=J.staticMessage);this.messageText.init(WV("ad-text"),e,m);this.messageText.S4(this.T.element);this.U.show(100);this.show()}; +g.F.clear=function(){this.hide()}; +g.F.hide=function(){Ynb(this,!1);mk.prototype.hide.call(this);this.T.hide();this.messageText.hide();Te(this)}; +g.F.show=function(){Ynb(this,!0);mk.prototype.show.call(this);eD(this);this.T.show();this.messageText.show()}; +g.F.Zq=function(){this.hide()}; +g.F.EA=function(){if(this.K!=null){var z=this.K.getProgressState();z!=null&&z.current!=null&&(z=1E3*z.current,!this.fh&&z>=this.S?(this.U.hide(),this.fh=!0):this.messageText&&this.messageText.isTemplated()&&(z=Math.max(0,Math.ceil((this.S-z)/1E3)),z!==this.Y&&(JL(this.messageText,{TIME_REMAINING:String(z)}),this.Y=z)))}};g.p(C7b,y7);g.F=C7b.prototype; +g.F.init=function(z,J,m){y7.prototype.init.call(this,z,J,{});J.image&&J.image.thumbnail?J.headline?J.description?J.actionButton&&g.P(J.actionButton,g.oR)?(this.S.init(WV("ad-image"),J.image,m),this.T.init(WV("ad-text"),J.headline,m),this.U.init(WV("ad-text"),J.description,m),z=["ytp-ad-underlay-action-button"],this.api.W().C("use_blue_buttons_for_desktop_player_underlay")&&z.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new AJ(this.api,this.layoutId,this.interactionLoggingClientData,this.gb, +z),J.backgroundColor&&g.FR(this.element,"background-color",g.Py(J.backgroundColor)),g.u(this,this.actionButton),this.actionButton.S4(this.Y),this.actionButton.init(WV("button"),g.P(J.actionButton,g.oR),m),J=g.dv(this.api.W().experiments,"player_underlay_video_width_fraction"),this.api.W().C("place_shrunken_video_on_left_of_player")?(m=this.K,g.lI(m,"ytp-ad-underlay-left-container"),g.FE(m,"ytp-ad-underlay-right-container"),g.FR(this.K,"margin-left",Math.round((J+.02)*100)+"%")):(m=this.K,g.lI(m,"ytp-ad-underlay-right-container"), +g.FE(m,"ytp-ad-underlay-left-container")),g.FR(this.K,"width",Math.round((1-J-.04)*100)+"%"),this.api.If()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.aK.bind(this)),this.api.addEventListener("resize",this.Gx.bind(this))):g.jk(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.jk(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.jk(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.jk(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; +g.F.show=function(){au4(!0);this.actionButton&&this.actionButton.show();y7.prototype.show.call(this)}; +g.F.hide=function(){au4(!1);this.actionButton&&this.actionButton.hide();y7.prototype.hide.call(this)}; +g.F.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.aK.bind(this));this.api.removeEventListener("resize",this.Gx.bind(this));this.hide()}; +g.F.onClick=function(z){y7.prototype.onClick.call(this,z);this.actionButton&&g.lV(this.actionButton.element,z.target)&&this.api.pauseVideo()}; +g.F.aK=function(z){z==="transitioning"?(this.K.classList.remove("ytp-ad-underlay-clickable"),this.show()):z==="visible"?this.K.classList.add("ytp-ad-underlay-clickable"):z==="hidden"&&(this.hide(),this.K.classList.remove("ytp-ad-underlay-clickable"))}; +g.F.Gx=function(z){z.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):z.width>875?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-medium"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large")):(this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")); +g.FR(this.T.element,"font-size",z.width/40+"px")};g.p(nR,y7); +nR.prototype.init=function(z,J,m){y7.prototype.init.call(this,z,J,m);J.toggledLoggingParams&&(this.toggledLoggingParams=J.toggledLoggingParams);J.answer&&g.P(J.answer,g.oR)?(z=new AJ(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),z.S4(this.answer),z.init(WV("ytp-ad-survey-answer-button"),g.P(J.answer,g.oR),m),z.show()):J.answer&&g.P(J.answer,yE)&&(this.K=new Ug(this.api,this.layoutId,this.interactionLoggingClientData,this.gb, +["ytp-ad-survey-answer-toggle-button"]),this.K.S4(this.answer),g.u(this,this.K),this.K.init(WV("survey-answer-button"),g.P(J.answer,yE),m));this.show()}; +nR.prototype.e$=function(z){this.layoutId?RG(this.gb,z,this.layoutId,this.macros):g.jk(new g.vR("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))}; +nR.prototype.onClick=function(z){y7.prototype.onClick.call(this,z);if(this.api.W().C("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; +nR.prototype.clear=function(){this.hide()};g.p(K54,y7);K54.prototype.init=function(z,J,m){y7.prototype.init.call(this,z,J,m);J.answer&&g.P(J.answer,yE)&&(this.button=new Ug(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.S4(this.K),this.button.init(WV("survey-none-of-the-above-button"),g.P(J.answer,yE),m));this.show()};g.p(Y0,AJ);Y0.prototype.init=function(z,J,m){AJ.prototype.init.call(this,z,J,m);z=!1;J.text&&(J=g.GZ(J.text),z=!g.CN(J));z||g.hr(Error("No submit text was present in the renderer."))}; +Y0.prototype.onClick=function(z){this.publish("l");AJ.prototype.onClick.call(this,z)};g.p(CR,y7); +CR.prototype.init=function(z,J,m){y7.prototype.init.call(this,z,J,m);if(z=J.skipOrPreviewRenderer)g.P(z,i4)?(z=g.P(z,i4),m=new XW(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,this.U,!0),m.S4(this.skipOrPreview),m.init(WV("skip-button"),z,this.macros),g.u(this,m),this.K=m):g.P(z,Am)&&(z=g.P(z,Am),m=new FW(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,this.U,!1),m.S4(this.skipOrPreview),m.init(WV("ad-preview"),z,this.macros),m.fh.show(100),m.show(),g.u(this,m), +this.K=m);this.K==null&&g.jk(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(J)));J.submitButton&&(z=J.submitButton,g.P(z,g.oR)&&(z=g.P(z,g.oR),m=new Y0(this.api,this.layoutId,this.interactionLoggingClientData,this.gb),m.S4(this.submitButton),m.init(WV("survey-submit"),z,this.macros),g.u(this,m),this.T=m));if(z=J.adBadgeRenderer)z=g.P(z,FYe),m=new YE(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,!0,!0,!0),m.S4(this.S),m.init(WV("simple-ad-badge"), +z,this.macros),this.adBadge=m.element,g.u(this,m);if(z=J.adDurationRemaining)z=g.P(z,JsS),m=new fO(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,this.U,void 0,!0),m.S4(this.S),m.init(WV("ad-duration-remaining"),z,this.macros),g.u(this,m);(J=J.adInfoRenderer)&&g.P(J,MW)&&(z=new rF(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,this.element,void 0,!0),g.u(this,z),this.adBadge!==void 0?this.S.insertBefore(z.element,this.adBadge.nextSibling):z.S4(this.S),z.init(WV("ad-info-hover-text-button"), +g.P(J,MW),this.macros));this.show()}; +CR.prototype.clear=function(){this.hide()};g.p(aI,y7);aI.prototype.init=function(z,J,m){y7.prototype.init.call(this,z,J,m);bm1(this)}; +aI.prototype.show=function(){this.S=Date.now();y7.prototype.show.call(this)}; +aI.prototype.bM=function(){};g.p($yb,aI);g.F=$yb.prototype;g.F.init=function(z,J,m){var e=this;aI.prototype.init.call(this,z,J,m);J.questionText&&B5b(this,J.questionText);J.answers&&J.answers.forEach(function(T,E){g.P(T,OG)&&SnR(e,g.P(T,OG),m,E)}); +this.Y=new Set(this.T.map(function(T){return T.K.K})); +(z=J.noneOfTheAbove)&&(z=g.P(z,eW1))&&gnq(this,z,m);J.surveyAdQuestionCommon&&Dyu(this,J.surveyAdQuestionCommon);J.submitEndpoints&&(this.submitEndpoints=J.submitEndpoints);this.L(this.element,"change",this.onChange);this.show()}; +g.F.bM=function(){xyq(this,!1);this.U.T.subscribe("l",this.LNy,this)}; +g.F.onChange=function(z){z.target===this.noneOfTheAbove.button.K?MIj(this):this.Y.has(z.target)&&(this.noneOfTheAbove.button.toggleButton(!1),xyq(this,!0))}; +g.F.LNy=function(){var z=[],J=this.T.reduce(function(T,E,Z){var c=E.toggledLoggingParams;E.K&&E.K.isToggled()&&c&&(T.push(c),z.push(Z));return T},[]).join("&"),m=this.submitEndpoints.map(function(T){if(!T.loggingUrls)return T; +T=g.jf(T);T.loggingUrls=T.loggingUrls.map(function(E){E.baseUrl&&(E.baseUrl=rB(E.baseUrl,J));return E}); +return T}); +if(m){m=g.y(m);for(var e=m.next();!e.done;e=m.next())e=e.value,this.layoutId?RG(this.gb,e,this.layoutId,this.macros):g.jk(Error("Missing layoutId for multi_select_question."))}this.api.W().C("supports_multi_step_on_desktop")&&this.fh(z)}; +g.F.clear=function(){this.api.W().C("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.p(KR,aI);KR.prototype.init=function(z,J,m){var e=this;aI.prototype.init.call(this,z,J,m);J.questionText&&B5b(this,J.questionText);J.answers&&J.answers.forEach(function(T,E){g.P(T,OG)&&SnR(e,g.P(T,OG),m,E)}); +J.surveyAdQuestionCommon?Dyu(this,J.surveyAdQuestionCommon):g.jk(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(J)));this.show()}; +KR.prototype.clear=function(){this.api.W().C("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.p(BS,y7);BS.prototype.init=function(z,J,m){var e=this;y7.prototype.init.call(this,z,J,m);if(this.api.W().C("supports_multi_step_on_desktop")){var T;this.conditioningRules=(T=J.conditioningRules)!=null?T:[];var E;this.T=(E=J.questions)!=null?E:[];var Z;((Z=J.questions)==null?0:Z.length)&&h6j(this,0)}else(J.questions||[]).forEach(function(c){g.P(c,gR)?onu(e,g.P(c,gR),m):g.P(c,$A)&&jXq(e,g.P(c,$A),m)}); +this.show()}; +BS.prototype.clear=function(){this.api.W().C("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; +BS.prototype.U=function(z){var J=this;if(this.api.W().C("supports_multi_step_on_desktop")){var m;if((m=this.conditioningRules)==null?0:m.length){var e;if(z.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(T){return T.questionIndex===J.K})==null)g.jk(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); +else if(this.conditioningRules.forEach(function(T){if(T.questionIndex===J.K)switch(T.condition){case "CONDITION_ALL_OF":var E;if((E=T.answerIndices)==null?0:E.every(function(c){return z.includes(c)}))e=T.nextQuestionIndex; +break;case "CONDITION_ANY_OF":var Z;if((Z=T.answerIndices)==null?0:Z.some(function(c){return z.includes(c)}))e=T.nextQuestionIndex; +break;default:g.jk(Error("Expected specified condition in survey conditioning rules."))}}),e!=null)h6j(this,e); +else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.jk(Error("No conditioning rules, yet survey is multi step. Expected questions.length to be 1.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}};g.p(Su,y7); +Su.prototype.init=function(z,J,m){var e=this;y7.prototype.init.call(this,z,J,m);z=J.timeoutSeconds||0;if(typeof z!=="number"||z<0)g.jk(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+z));else if(J.timeoutCommands)if(J.text)if(J.ctaButton&&g.P(J.ctaButton,g.oR))if(J.brandImage)if(J.backgroundImage&&g.P(J.backgroundImage,jv)&&g.P(J.backgroundImage,jv).landscape){this.layoutId||g.jk(Error("Missing layoutId for survey interstitial."));uZE(this.interstitial,g.P(J.backgroundImage, +jv).landscape);uZE(this.logoImage,J.brandImage);g.w2(this.text,g.GZ(J.text));var T=["ytp-ad-survey-interstitial-action-button"];T.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new AJ(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,T);g.u(this,this.actionButton);this.actionButton.S4(this.T);this.actionButton.init(WV("button"),g.P(J.ctaButton,g.oR),m);this.actionButton.show();this.K=new aU(this.api,z*1E3);this.K.subscribe("g",function(){e.transition.hide()}); +g.u(this,this.K);this.L(this.element,"click",function(E){var Z=E.target===e.interstitial;E=e.actionButton.element.contains(E.target);if(Z||E)if(e.transition.hide(),Z)e.api.onAdUxClicked(e.componentType,e.layoutId)}); +this.transition.show(100)}else g.jk(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.jk(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.jk(Error("SurveyTextInterstitialRenderer has no button."));else g.jk(Error("SurveyTextInterstitialRenderer has no text."));else g.jk(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; +Su.prototype.clear=function(){this.hide()}; +Su.prototype.show=function(){VIR(!0);y7.prototype.show.call(this)}; +Su.prototype.hide=function(){VIR(!1);y7.prototype.hide.call(this)};g.p(fR,mk);g.F=fR.prototype; +g.F.init=function(z,J){mk.prototype.init.call(this,z,J,{});if(J.durationMilliseconds){if(J.durationMilliseconds<0){g.jk(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+J.durationMilliseconds));return}this.T=J.durationMilliseconds}else this.T=this.K.pX();var m;if((m=J.previewText)==null||!m.text||g.CN(J.previewText.text))g.jk(Error("No text is returned for AdPreview."));else{this.Y=J.previewText;J.previewText.isTemplated||g.w2(this.S,J.previewText.text);var e; +if(((e=this.api.getVideoData(1))==null?0:e.u3)&&J.previewImage){var T,E;(z=((E=S0(((T=J.previewImage)==null?void 0:T.sources)||[],52,!1))==null?void 0:E.url)||"")&&z.length?(this.previewImage=new g.py({D:"img",J:"ytp-preview-ad__image",j:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",z),g.u(this,this.previewImage),this.previewImage.S4(this.element)):g.jk(Error("Failed to get imageUrl in AdPreview."))}else this.S.classList.add("ytp-preview-ad__text--padding--wide")}}; +g.F.clear=function(){this.hide()}; +g.F.hide=function(){Te(this);mk.prototype.hide.call(this)}; +g.F.show=function(){eD(this);mk.prototype.show.call(this)}; +g.F.Zq=function(){this.hide()}; +g.F.EA=function(){if(this.K){var z=this.K.getProgressState();if(z!=null&&z.current)if(z=1E3*z.current,z>=this.T)this.transition.hide();else{var J;if((J=this.Y)==null?0:J.isTemplated)if(J=Math.max(0,Math.ceil((this.T-z)/1E3)),J!==this.U){var m,e;(z=(m=this.Y)==null?void 0:(e=m.text)==null?void 0:e.replace("{TIME_REMAINING}",String(J)))&&g.w2(this.S,z);this.U=J}}}};g.p(Dq,y7); +Dq.prototype.init=function(z,J){y7.prototype.init.call(this,z,J,{});var m,e;if((z=((e=S0(((m=J.image)==null?void 0:m.sources)||[],P7z(J),!0))==null?void 0:e.url)||"")&&z.length){m=this.P1("ytp-ad-avatar");m.src=z;var T,E;if(e=(T=J.interaction)==null?void 0:(E=T.accessibility)==null?void 0:E.label)m.alt=e;switch(J.size){case "AD_AVATAR_SIZE_XXS":this.element.classList.add("ytp-ad-avatar--size-xxs");break;case "AD_AVATAR_SIZE_XS":this.element.classList.add("ytp-ad-avatar--size-xs");break;case "AD_AVATAR_SIZE_S":this.element.classList.add("ytp-ad-avatar--size-s"); +break;case "AD_AVATAR_SIZE_M":this.element.classList.add("ytp-ad-avatar--size-m");break;case "AD_AVATAR_SIZE_L":this.element.classList.add("ytp-ad-avatar--size-l");break;case "AD_AVATAR_SIZE_XL":this.element.classList.add("ytp-ad-avatar--size-xl");break;case "AD_AVATAR_SIZE_RESPONSIVE":this.element.classList.add("ytp-ad-avatar--size-responsive");break;default:this.element.classList.add("ytp-ad-avatar--size-m")}switch(J.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":this.element.classList.add("ytp-ad-avatar--rounded-corner"); +break;default:this.element.classList.add("ytp-ad-avatar--circular")}}else g.jk(Error("Failed to get imageUrl in AdAvatar."))}; +Dq.prototype.clear=function(){this.hide()}; +Dq.prototype.onClick=function(z){y7.prototype.onClick.call(this,z)};g.p(bT,y7); +bT.prototype.init=function(z,J){y7.prototype.init.call(this,z,J,{});var m;z=(m=J.label)==null?void 0:m.content;if((m=z!=null&&!g.CN(z))||J.iconImage){m&&(this.buttonText=new g.py({D:"span",J:"ytp-ad-button-vm__text",t6:z}),g.u(this,this.buttonText),this.buttonText.S4(this.element));var e,T,E=((e=J.interaction)==null?0:(T=e.accessibility)==null?0:T.label)||m?z:"";E&&kT(this.element,E+" This link opens in new tab");UD(this.element);if(J.iconImage){e=void 0;if(J.iconImage){a:{T=J.iconImage;if(T.sources)for(T= +g.y(T.sources),z=T.next();!z.done;z=T.next())if(z=z.value,E=void 0,(E=z.clientResource)==null?0:E.imageName){T=z;break a}T=void 0}if(T){var Z;e={iconType:(Z=T.clientResource)==null?void 0:Z.imageName}}}Z=M3(e,!1,this.T);Z!=null&&(this.buttonIcon=new g.py({D:"span",J:"ytp-ad-button-vm__icon",N:[Z]}),g.u(this,this.buttonIcon),J.iconLeading?(cF(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):m?(this.buttonIcon.S4(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): +(this.buttonIcon.S4(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(J.style){case "AD_BUTTON_STYLE_TRANSPARENT":this.element.classList.add("ytp-ad-button-vm--style-transparent");break;case "AD_BUTTON_STYLE_FILLED_WHITE":this.element.classList.add("ytp-ad-button-vm--style-filled-white");break;case "AD_BUTTON_STYLE_FILLED":this.element.classList.add(this.K?"ytp-ad-button-vm--style-filled-dark":"ytp-ad-button-vm--style-filled");break;default:this.element.classList.add("ytp-ad-button-vm--style-filled")}switch(J.size){case "AD_BUTTON_SIZE_COMPACT":this.element.classList.add("ytp-ad-button-vm--size-compact"); +break;case "AD_BUTTON_SIZE_LARGE":this.element.classList.add("ytp-ad-button-vm--size-large");break;default:this.element.classList.add("ytp-ad-button-vm--size-default")}}else g.hr(Error("AdButton does not have label or an icon."))}; +bT.prototype.clear=function(){this.hide()}; +bT.prototype.onClick=function(z){y7.prototype.onClick.call(this,z)};g.p(tIq,mk);g.F=tIq.prototype; +g.F.init=function(z,J){mk.prototype.init.call(this,z,J,{});this.api.W().C("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.P1("ytp-ad-avatar-lockup-card__avatar_and_text_container").classList.add("ytp-ad-avatar-lockup-card__avatar_and_text_container--large"),this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline--large"),this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--large"),this.adButton.element.classList.add("ytp-ad-avatar-lockup-card__button--large"), +this.adAvatar.element.classList.add("ytp-ad-avatar-lockup-card__ad_avatar--large"),cF(this.P1("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(z=g.P(J.avatar,uT)){var m=J.headline;if(m){var e=J.description;if(e){var T=g.P(J.button,PS);T?(this.adAvatar.init(WV("ad-avatar"),z),this.headline.init(WV("ad-simple-attributed-string"),new bB(m)),this.description.init(WV("ad-simple-attributed-string"),new bB(e)),m.content&&m.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"), +this.adButton.init(WV("ad-button"),T),this.startMilliseconds=J.startMs||0,this.api.If()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.YM.bind(this)),eD(this)):g.jk(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.jk(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.jk(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.jk(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; +g.F.EA=function(){if(this.K){var z=this.K.getProgressState();z&&z.current&&1E3*z.current>=this.startMilliseconds&&(Te(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; +g.F.Zq=function(){this.clear()}; +g.F.onClick=function(z){this.api.pauseVideo();mk.prototype.onClick.call(this,z)}; +g.F.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.YM.bind(this))}; +g.F.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();mk.prototype.show.call(this)}; +g.F.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();mk.prototype.hide.call(this)}; +g.F.YM=function(z){z==="hidden"?this.show():this.hide()};g.p($0,y7);g.F=$0.prototype; +g.F.init=function(z,J){y7.prototype.init.call(this,z,J,{});if(!J.label||g.CN(J.label))g.jk(Error("No label is returned for SkipAdButton."));else if(g.w2(this.U,J.label),z=M3({iconType:"SKIP_NEXT_NEW"}),z==null)g.jk(Error("Unable to retrieve icon for SkipAdButton"));else if(this.S=new g.py({D:"span",J:"ytp-skip-ad-button__icon",N:[z]}),g.u(this,this.S),this.S.S4(this.element),this.api.W().experiments.j4("enable_skip_to_next_messaging")&&(J=g.Ty(J.targetId)))this.T=!0,this.element.setAttribute("data-tooltip-target-id",J), +this.element.setAttribute("data-tooltip-target-fixed","")}; +g.F.onClick=function(z){z&&z.preventDefault();var J,m;LV1(z,{contentCpn:(m=(J=this.api.getVideoData(1))==null?void 0:J.clientPlaybackNonce)!=null?m:""})===0?this.api.B1("onAbnormalityDetected"):(y7.prototype.onClick.call(this,z),this.api.B1("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; +g.F.clear=function(){this.K.reset();this.hide()}; +g.F.hide=function(){y7.prototype.hide.call(this)}; +g.F.show=function(){this.K.start();y7.prototype.show.call(this);this.T&&this.api.W().experiments.j4("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.p(Hmb,mk);g.F=Hmb.prototype; +g.F.init=function(z,J){mk.prototype.init.call(this,z,J,{});z=g.P(J.preskipState,O04);var m;if((m=this.api.getVideoData())==null?0:m.isDaiEnabled()){if(!z){g.jk(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.T=new fR(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,this.K);g.u(this,this.T);this.T.S4(this.element);var e;(e=this.T)==null||e.init(WV("preview-ad"),z);(m=this.T)!=null&&(m.transition.show(100),m.show())}(m=g.P(J.skippableState,ysF))?(J.skipOffsetMilliseconds!= +null?this.skipOffsetMilliseconds=J.skipOffsetMilliseconds:(g.hr(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.S.init(WV("skip-button"),m),this.show()):g.jk(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; +g.F.show=function(){eD(this);mk.prototype.show.call(this)}; +g.F.hide=function(){!this.isSkippable&&this.T?this.T.hide():this.S&&this.S.hide();Te(this);mk.prototype.hide.call(this)}; +g.F.clear=function(){var z;(z=this.T)==null||z.clear();this.S&&this.S.clear();Te(this);mk.prototype.hide.call(this)}; +g.F.Zq=function(){this.hide()}; +g.F.EA=function(){if(1E3*this.K.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var z;(z=this.T)!=null&&z.transition.hide();(z=this.S)!=null&&(z.transition.show(),z.show())}};g.p(g4,y7); +g4.prototype.init=function(z,J){y7.prototype.init.call(this,z,J,{});if(J.label){var m;((m=J.label)==null?0:m.content)&&!g.CN(J.label.content)&&(this.linkText=new g.py({D:"span",J:"ytp-visit-advertiser-link__text",t6:J.label.content}),g.u(this,this.linkText),this.linkText.S4(this.element));var e,T;if((e=J.interaction)==null?0:(T=e.accessibility)==null?0:T.label)kT(this.element,J.interaction.accessibility.label+" This link opens in new tab");else{var E;((E=J.label)==null?0:E.content)&&!g.CN(J.label.content)&&kT(this.element, +J.label.content+" This link opens in new tab")}UD(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.jk(Error("No label found in VisitAdvertiserLink."))}; +g4.prototype.onClick=function(z){y7.prototype.onClick.call(this,z);this.api.onAdUxClicked(this.componentType,this.layoutId)}; +g4.prototype.clear=function(){this.hide()};g.p(x0,y7); +x0.prototype.init=function(z,J,m,e){y7.prototype.init.call(this,z,J,{});if(J.skipOrPreview){m=J.skipOrPreview;z=g.P(m,NeO);m=g.P(m,O04);if(z)this.Jc=new Hmb(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,this.T),g.u(this,this.Jc),this.Jc.S4(this.fh),this.Jc.init(WV("skip-ad"),z);else{var T;m&&((T=this.api.getVideoData())==null?0:T.isDaiEnabled())&&(this.Y=new fR(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,this.T,1),g.u(this,this.Y),this.Y.S4(this.fh),this.Y.init(WV("ad-preview"), +m),T=this.Y,T.transition.show(100),T.show())}if(T=g.P(J.skipOrPreview,NeO))var E=T.skipOffsetMilliseconds}J.playerAdCard&&(T=g.P(J.playerAdCard,puS))&&(this.playerAdCard=new tIq(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,this.T),g.u(this,this.playerAdCard),this.playerAdCard.S4(this.Gf),this.playerAdCard.init(WV("ad-avatar-lockup-card"),T));J.adBadgeRenderer&&((T=g.P(J.adBadgeRenderer,Vl))?(this.K=new g9(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,!0),g.u(this, +this.K),this.api.W().C("delhi_modern_web_player")?this.K.S4(this.U):this.K.S4(this.S),this.K.init(WV("ad-badge"),T)):g.jk(Error("AdBadgeViewModel is not found in player overlay layout.")));J.adPodIndex&&(T=g.P(J.adPodIndex,wuF))&&(this.adPodIndex=new xE(this.api,this.layoutId,this.interactionLoggingClientData,this.gb),g.u(this,this.adPodIndex),this.api.W().C("delhi_modern_web_player")?this.adPodIndex.S4(this.U):this.adPodIndex.S4(this.S),this.adPodIndex.init(WV("ad-pod-index"),T));J.adInfoRenderer&& +((T=g.P(J.adInfoRenderer,MW))?(this.adInfoButton=new rF(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,this.element,void 0,!0),g.u(this,this.adInfoButton),z=this.api.W().C("delhi_modern_web_player")?this.U:this.S,this.K!==void 0?z.insertBefore(this.adInfoButton.element,this.K.element.nextSibling):this.adInfoButton.S4(z),this.adInfoButton.init(WV("ad-info-hover-text-button"),T,this.macros)):g.hr(Error("AdInfoRenderer is not found in player overlay layout.")));var Z;T=(Z=this.api.getVideoData())== +null?void 0:Z.isDaiEnabled();J.adDurationRemaining&&T&&(Z=g.P(J.adDurationRemaining,JsS))&&(this.adDurationRemaining=new fO(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,this.T,e.videoAdDurationSeconds,!0),g.u(this,this.adDurationRemaining),e=this.api.W().C("delhi_modern_web_player")?this.U:this.S,this.adPodIndex!==void 0?e.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.S4(e),this.adDurationRemaining.init(WV("ad-duration-remaining"), +Z,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));J.visitAdvertiserLink&&(e=g.P(J.visitAdvertiserLink,XuS))&&(this.visitAdvertiserLink=new g4(this.api,this.layoutId,this.interactionLoggingClientData,this.gb),g.u(this,this.visitAdvertiserLink),this.visitAdvertiserLink.S4(this.S),this.visitAdvertiserLink.init(WV("visit-advertiser-link"),e));J.adDisclosureBanner&&(J=g.P(J.adDisclosureBanner,lE9))&&(this.adDisclosureBanner=new Mo(this.api,this.layoutId, +this.interactionLoggingClientData,this.gb),g.u(this,this.adDisclosureBanner),this.adDisclosureBanner.S4(this.x3),this.adDisclosureBanner.init(WV("ad-disclosure-banner"),J));this.B=new jD(this.api,this.T,E,!0);g.u(this,this.B);g.M0(this.api,this.B.element,4);this.show()}; +x0.prototype.clear=function(){this.hide()};g.p(UyE,y7);g.F=UyE.prototype; +g.F.init=function(z,J){y7.prototype.init.call(this,z,J,{});if(J!=null&&J.title)if(z=J.title)if(this.headline.init(WV("ad-simple-attributed-string"),new bB(z)),z=g.P(J.moreInfoButton,PS)){if(this.moreInfoButton.init(WV("ad-button"),z),J.descriptions)J.descriptions.length>0&&(z=J.descriptions[0])&&(this.K=new $E(this.api,this.layoutId,this.interactionLoggingClientData,this.gb),g.u(this,this.K),this.K.S4(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.K.init(WV("ad-simple-attributed-string"), +new bB(z))),J.descriptions.length>1&&(J=J.descriptions[1])&&(this.T=new $E(this.api,this.layoutId,this.interactionLoggingClientData,this.gb),g.u(this,this.T),this.T.S4(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.T.init(WV("ad-simple-attributed-string"),new bB(J)))}else g.jk(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.jk(Error("No headline found in AdGridCardText."));else g.jk(Error("No headline found in AdGridCardText."))}; +g.F.onClick=function(z){y7.prototype.onClick.call(this,z);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; +g.F.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var z;(z=this.K)==null||z.clear();var J;(J=this.T)==null||J.clear()}; +g.F.hide=function(){this.headline.hide();this.moreInfoButton.hide();var z;(z=this.K)==null||z.hide();var J;(J=this.T)==null||J.hide();y7.prototype.hide.call(this)}; +g.F.show=function(){y7.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var z;(z=this.K)==null||z.show();var J;(J=this.T)==null||J.show()};g.p(Ma,y7);Ma.prototype.init=function(z,J){y7.prototype.init.call(this,z,J,{});if(J!=null&&J.gridCards)if(J.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.jk(Error("Only single column style is currently supported in AdGridCardCollection."));else for(z=g.y(J.gridCards),J=z.next();!J.done;J=z.next()){if(J=g.P(J.value,IE$)){var m=new UyE(this.api,this.layoutId,this.interactionLoggingClientData,this.gb);g.u(this,m);m.S4(this.element);m.init(WV("ad-grid-card-text"),J);this.K.push(m)}}else g.jk(Error("No grid cards found in AdGridCardCollection."))}; +Ma.prototype.show=function(){for(var z=g.y(this.K),J=z.next();!J.done;J=z.next())J.value.show();y7.prototype.show.call(this)}; +Ma.prototype.clear=function(){this.hide();for(var z=g.y(this.K),J=z.next();!J.done;J=z.next())J.value.clear()}; +Ma.prototype.hide=function(){for(var z=g.y(this.K),J=z.next();!J.done;J=z.next())J.value.hide();y7.prototype.hide.call(this)};g.p(An,mk);g.F=An.prototype;g.F.init=function(z,J,m,e,T){T=T===void 0?0:T;mk.prototype.init.call(this,z,J,m,e);this.playerProgressOffsetMs=T;eD(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.YC.bind(this));this.api.addEventListener("resize",this.zn.bind(this));this.api.If()?(this.T=!0,this.api.JT(!0),this.show()):this.hide()}; +g.F.EA=function(){if(this.K){var z=this.K.getProgressState();z&&z.current&&!this.T&&1E3*z.current>=this.playerProgressOffsetMs&&(this.T=!0,this.api.JT(!0),this.show())}}; +g.F.Zq=function(){this.T&&this.api.JT(!1);this.hide()}; +g.F.clear=function(){this.api.JT(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.YC.bind(this));this.api.removeEventListener("resize",this.zn.bind(this));Te(this);this.hide()}; +g.F.hide=function(){R6j(!1);mk.prototype.hide.call(this)}; +g.F.show=function(){R6j(!0);mk.prototype.show.call(this)};g.p(kPu,An);g.F=kPu.prototype; +g.F.init=function(z,J,m,e){if(J!=null&&J.adGridCardCollection)if(J!=null&&J.adButton){var T=Number(J.playerProgressOffsetMs||"0");isNaN(T)?An.prototype.init.call(this,z,J,m,e):An.prototype.init.call(this,z,J,m,e,T);z=J.headline;m=g.P(J.adAvatar,uT);z&&m?(this.headline=new $E(this.api,this.layoutId,this.interactionLoggingClientData,this.gb),g.u(this,this.headline),this.headline.S4(this.P1("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(WV("ad-simple-attributed-string"),new bB(z)), +this.adAvatar=new Dq(this.api,this.layoutId,this.interactionLoggingClientData,this.gb),g.u(this,this.adAvatar),this.adAvatar.S4(this.P1("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(WV("ad-avatar"),m)):this.U.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");z=g.P(J.adGridCardCollection,di9);this.adGridCardCollection.init(WV("ad-grid-card-collection"),z);J=g.P(J.adButton,PS);this.adButton.init(WV("ad-button"),J); +this.hide()}else g.jk(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.jk(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; +g.F.onClick=function(z){(this.adButton&&g.lV(this.adButton.element,z.target)||this.adAvatar&&g.lV(this.adAvatar.element,z.target))&&this.api.pauseVideo();An.prototype.onClick.call(this,z);this.api.onAdUxClicked(this.componentType,this.layoutId)}; +g.F.zn=function(){}; +g.F.clear=function(){this.hide();var z;(z=this.headline)==null||z.clear();var J;(J=this.adAvatar)==null||J.clear();this.adGridCardCollection.clear();this.adButton.clear();An.prototype.clear.call(this)}; +g.F.show=function(){var z;(z=this.headline)==null||z.show();var J;(J=this.adAvatar)==null||J.show();this.adGridCardCollection.show();this.adButton.show();An.prototype.show.call(this)}; +g.F.hide=function(){var z;(z=this.headline)==null||z.hide();var J;(J=this.adAvatar)==null||J.hide();this.adGridCardCollection.hide();this.adButton.hide();An.prototype.hide.call(this)}; +g.F.YC=function(z){z==="transitioning"?(this.S.classList.remove("ytp-ad-underlay-clickable"),this.show()):z==="visible"?this.S.classList.add("ytp-ad-underlay-clickable"):z==="hidden"&&(this.hide(),this.S.classList.remove("ytp-ad-underlay-clickable"))};g.p(oI,y7); +oI.prototype.init=function(z,J){y7.prototype.init.call(this,z,J,{});if(J.attributes===void 0)g.jk(Error("No attributes found in AdDetailsLineViewModel."));else if(J.style===void 0)g.jk(Error("No style found in AdDetailsLineViewModel."));else{z=g.y(J.attributes);for(var m=z.next();!m.done;m=z.next())if(m=m.value,m.text!==void 0){m=m.text;var e=J.style,T=new $E(this.api,this.layoutId,this.interactionLoggingClientData,this.gb);g.u(this,T);T.S4(this.element);a:switch(e){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":e="ytp-ad-details-line__text--style-responsive"; +break a;default:e="ytp-ad-details-line__text--style-standard"}T.element.classList.add(e);T.init(WV("ad-simple-attributed-string"),new bB(m));this.K.push(T)}this.show()}}; +oI.prototype.show=function(){this.K.forEach(function(z){z.show()}); +y7.prototype.show.call(this)}; +oI.prototype.clear=function(){this.hide()}; +oI.prototype.hide=function(){this.K.forEach(function(z){z.hide()}); +y7.prototype.hide.call(this)};g.p(ju,y7);ju.prototype.init=function(z,J){y7.prototype.init.call(this,z,J,{});var m,e;(z=((e=S0(((m=J.image)==null?void 0:m.sources)||[]))==null?void 0:e.url)||"")&&z.length?(m=this.P1("ytp-image-background-image"),g.FR(m,"backgroundImage","url("+z+")"),J.blurLevel!==void 0&&g.FR(m,"filter","blur("+J.blurLevel+"px)"),J.gradient!==void 0&&(J=new g.U({D:"div",Iy:["ytp-image-background--gradient-vertical"]}),g.u(this,J),J.S4(this.element)),this.show()):g.jk(Error("Failed to get imageUrl in ImageBackground."))}; +ju.prototype.clear=function(){this.hide()};g.p(L5b,mk);g.F=L5b.prototype;g.F.init=function(z,J){mk.prototype.init.call(this,z,J,{});g.FR(this.S,"stroke-dasharray","0 "+this.T);this.show()}; +g.F.clear=function(){this.hide()}; +g.F.hide=function(){Te(this);mk.prototype.hide.call(this)}; +g.F.show=function(){eD(this);mk.prototype.show.call(this)}; +g.F.Zq=function(){this.hide()}; +g.F.EA=function(){if(this.K){var z=this.K.getProgressState();z!=null&&z.current!=null&&g.FR(this.S,"stroke-dasharray",z.current/z.seekableEnd*this.T+" "+this.T)}};g.p(hn,y7); +hn.prototype.init=function(z,J){y7.prototype.init.call(this,z,J,{});if(vnb(J)){this.adAvatar=new Dq(this.api,this.layoutId,this.interactionLoggingClientData,this.gb);g.u(this,this.adAvatar);this.adAvatar.S4(this.P1("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(WV("ad-avatar"),g.P(J.adAvatar,uT));this.headline=new $E(this.api,this.layoutId,this.interactionLoggingClientData,this.gb);g.u(this,this.headline);this.headline.S4(this.P1("ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"));this.headline.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline"); +this.headline.init(WV("ad-simple-attributed-string"),new bB(J.headline));if(z=g.P(J.adDetailsLine,WYv))this.detailsLine=new oI(this.api,this.layoutId,this.interactionLoggingClientData,this.gb),g.u(this,this.detailsLine),this.detailsLine.S4(this.P1("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(WV("ad-details-line"),z);this.adButton=new bT(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,!0);g.u(this,this.adButton); +this.adButton.S4(this.P1("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(WV("ad-button"),g.P(J.adButton,PS));this.adBadge=new g9(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,!0);g.u(this,this.adBadge);this.adBadge.S4(this.U);this.adBadge.init(WV("ad-badge"),g.P(J.adBadge,Vl));this.adInfoButton=new rF(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,this.element,void 0,!0);g.u(this,this.adInfoButton);this.adInfoButton.S4(this.U); +this.adInfoButton.init(WV("ad-info-hover-text-button"),g.P(J.adInfoRenderer,MW),this.macros);if(z=g.P(J.skipAdButton,ysF))this.skipAdButton=new $0(this.api,this.layoutId,this.interactionLoggingClientData,this.gb),g.u(this,this.skipAdButton),this.skipAdButton.S4(this.element),this.skipAdButton.init(WV("skip-button"),z);this.T=new KO(J.durationMilliseconds);g.u(this,this.T);if(z=g.P(J.countdownViewModel,GCO))this.K=new L5b(this.api,this.layoutId,this.interactionLoggingClientData,this.gb,this.T),g.u(this, +this.K),this.K.S4(this.P1("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.K.init(WV("timed-pie-countdown"),z);if(J=g.P(J.imageBackground,qkg))this.imageBackground=new ju(this.api,this.layoutId,this.interactionLoggingClientData,this.gb),g.u(this,this.imageBackground),this.imageBackground.S4(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(WV("image-background"), +J);this.show();this.element.focus()}}; +hn.prototype.clear=function(){g.gs(this.S);this.hide()}; +hn.prototype.show=function(){QXb(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();y7.prototype.show.call(this)}; +hn.prototype.hide=function(){QXb(!1);this.adAvatar&&this.adAvatar.hide();this.headline&&this.headline.hide();this.adButton&&this.adButton.hide();this.detailsLine&&this.detailsLine.hide();this.adBadge&&this.adBadge.hide();this.adInfoButton&&this.adInfoButton.hide();this.skipAdButton&&this.skipAdButton.hide();this.K&&this.K.hide();this.imageBackground&&this.imageBackground.hide();y7.prototype.hide.call(this)};g.p(tn,g.wF);g.F=tn.prototype;g.F.pX=function(){return 1E3*this.api.getDuration(this.lR,!1)}; +g.F.stop=function(){this.K&&this.Ij.hX(this.K)}; +g.F.Xq=function(){var z=this.api.getProgressState(this.lR);this.T={seekableStart:z.seekableStart,seekableEnd:z.seekableEnd,current:this.api.getCurrentTime(this.lR,!1)};this.publish("h")}; +g.F.getProgressState=function(){return this.T}; +g.F.MI=function(z){g.yK(z,2)&&this.publish("g")};var vcv="ad-attribution-bar ad-channel-thumbnail advertiser-name ad-preview ad-title skip-button visit-advertiser".split(" ").concat("shopping-companion action-companion image-companion ads-engagement-panel ads-engagement-panel-layout banner-image top-banner-image-text-icon-buttoned".split(" "));g.p(HS,kC); +HS.prototype.U=function(z){var J=z.id,m=z.content,e=m.componentType;if(!vcv.includes(e))switch(z.actionType){case 1:z=this.api;var T=this.gb,E=m.layoutId,Z=m.interactionLoggingClientData,c=m instanceof v6?m.OJ:!1,W=m instanceof v6||m instanceof CO?m.F0:!1;Z=Z===void 0?{}:Z;c=c===void 0?!1:c;W=W===void 0?!1:W;switch(e){case "invideo-overlay":z=new dyf(z,E,Z,T);break;case "player-overlay":z=new hL(z,E,Z,T,new tn(z),W);break;case "player-overlay-layout":z=new x0(z,E,Z,T,new tn(z));break;case "survey":z= +new BS(z,E,Z,T);break;case "ad-action-interstitial":z=new cqj(z,E,Z,T,c,W);break;case "video-interstitial-buttoned-centered":z=new hn(z,E,Z,T);break;case "survey-interstitial":z=new Su(z,E,Z,T);break;case "ad-message":z=new nns(z,E,Z,T,new tn(z,1));break;case "player-underlay":z=new C7b(z,E,Z,T);break;case "display-underlay-text-grid-cards":z=new kPu(z,E,Z,T,new tn(z));break;default:z=null}if(!z){g.hr(Error("No UI component returned from ComponentFactory for type: "+e));break}g.bu(this.T,J)?g.hr(Error("Ad UI component already registered: "+ +J)):this.T[J]=z;z.bind(m);m instanceof Lf?this.S?this.S.append(z.UJ):g.hr(Error("Underlay view was not created but UnderlayRenderer was created")):this.Z.append(z.UJ);break;case 2:J=sXz(this,z);if(J==null)break;J.bind(m);break;case 3:m=sXz(this,z),m!=null&&(g.Wc(m),g.bu(this.T,J)?(m=this.T,J in m&&delete m[J]):g.hr(Error("Ad UI component does not exist: "+J)))}}; +HS.prototype.oy=function(){g.lF(Object.values(this.T));this.T={};kC.prototype.oy.call(this)};g.p(rqq,g.Ob);g.F=rqq.prototype;g.F.create=function(){try{zbg(this),this.load(),this.created=!0,zbg(this)}catch(z){IU(z instanceof Error?z:String(z))}}; +g.F.load=function(){try{ebg(this)}finally{LX(Na(this.K).kF)&&this.player.Zb("ad",1)}}; +g.F.destroy=function(){var z=this.player.getVideoData(1);this.K.K.V5.GC(z&&z.clientPlaybackNonce||"");this.unload();this.created=!1}; +g.F.unload=function(){g.Ob.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(J){IU(J instanceof Error?J:String(J))}if(this.T!=null){var z=this.T;this.T=null;z.dispose()}this.S.reset()}; +g.F.J4=function(){return!1}; +g.F.getAdState=function(){return-1}; +g.F.getOptions=function(){return Object.values(Qjc)}; +g.F.EL=function(z,J){J=J===void 0?{}:J;switch(z){case "replaceUrlMacros":return z=J,z.url?(J=GJf(this.player),Object.assign(J,z.d$F),z=g.Dn(z.url,J)):z=null,z;case "onAboutThisAdPopupClosed":this.To(J);break;case "executeCommand":z=J;z.command&&z.layoutId&&this.executeCommand(z);break;default:return null}}; +g.F.o_=function(z){var J;return!((J=this.K.K.KZ)==null||!J.get().o_(z))}; +g.F.To=function(z){z.isMuted&&WKz(Na(this.K).D4,Na(this.K).Az,z.layoutId);this.rO&&this.rO.To()}; +g.F.executeCommand=function(z){Na(this.K).gb.executeCommand(z.command,z.layoutId)};g.tu("yt.player.Application.create",g.pX.create);g.tu("yt.player.Application.createAlternate",g.pX.create);xNq(xB(),Lwc);var sjv=g.Hq("ytcsi.tick");sjv&&sjv("pe");g.ID("ad",rqq);g.p(g.k0,g.h);g.k0.prototype.start=function(z,J,m){this.config={from:z,WR:J,duration:m,startTime:(0,g.b5)()};this.next()}; +g.k0.prototype.stop=function(){this.delay.stop();this.config=void 0}; +g.k0.prototype.next=function(){if(this.config){var z=this.config,J=z.from,m=z.WR,e=z.duration;z=z.startTime;var T=(0,g.b5)()-z;z=this.K;e=V$R(z,T/e);if(e==0)z=z.V;else if(e==1)z=z.X;else{T=yz(z.V,z.Z,e);var E=yz(z.Z,z.Y,e);z=yz(z.Y,z.X,e);T=yz(T,E,e);E=yz(E,z,e);z=yz(T,E,e)}z=g.O8(z,0,1);this.callback(J+(m-J)*z);z<1&&this.delay.start()}};g.p(g.LR,g.U);g.F=g.LR.prototype;g.F.hasSuggestions=function(){return this.suggestionData.length>0}; +g.F.Lm=function(){this.T&&this.scrollTo(this.scrollPosition-this.containerWidth)}; +g.F.show=function(){g.U.prototype.show.call(this);cuF(this)}; +g.F.qI=function(){this.T&&this.scrollTo(this.scrollPosition+this.containerWidth)}; +g.F.Jk=function(){this.yQ(this.api.zf().getPlayerSize())}; +g.F.yQ=function(z){var J=this.api.isEmbedsShortsMode()?.5625:16/9,m=this.api.PK();z=z.width-(m?112:58);m=Math.ceil(z/(m?320:192));var e=(z-m*8)/m;J=Math.floor(e/J);for(var T=g.y(this.K),E=T.next();!E.done;E=T.next())E=E.value.P1("ytp-suggestion-image"),E.style.width=e+"px",E.style.height=J+"px";this.suggestions.element.style.height=J+"px";this.U=e;this.X=J;this.containerWidth=z;this.columns=m;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.Ql(this)}; +g.F.onVideoDataChange=function(){var z=this.api.W(),J=this.api.getVideoData();this.Y=J.yb?!1:z.U;this.suggestionData=J.suggestions?g.cU(J.suggestions,function(m){return m&&!m.playlistId}):[]; +lsN(this);J.yb?this.title.update({title:g.NQ("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:J.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"More shorts":"More videos"})}; +g.F.scrollTo=function(z){z=g.O8(z,this.containerWidth-this.suggestionData.length*(this.U+8),0);this.V.start(this.scrollPosition,z,1E3);this.scrollPosition=z;g.Ql(this);cuF(this)};})(_yt_player); diff --git a/src/test/resources/com/github/felipeucelli/javatube/base/74e4bb46-player_ias_tce.vflset-en_US.txt b/src/test/resources/com/github/felipeucelli/javatube/base/74e4bb46-player_ias_tce.vflset-en_US.txt new file mode 100644 index 0000000..d5b5110 --- /dev/null +++ b/src/test/resources/com/github/felipeucelli/javatube/base/74e4bb46-player_ias_tce.vflset-en_US.txt @@ -0,0 +1,13819 @@ +var _yt_player={};(function(g){var window=this;/* + + Copyright The Closure Library Authors. + SPDX-License-Identifier: Apache-2.0 +*/ +/* + + Copyright Google LLC + SPDX-License-Identifier: Apache-2.0 +*/ +/* + + Copyright Google LLC All Rights Reserved. + + Use of this source code is governed by an MIT-style license that can be + found in the LICENSE file at https://angular.dev/license +*/ +/* + + (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). +*/ +/* + + + The MIT License (MIT) + + Copyright (c) 2015-present Dan Abramov + + 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. +*/ +'use strict';var Vl='pEN7c;"]),;;\\\u2233,{];undefined;1970-01-01T09:30:59.000+09:30;1969-12-31T16:14:41.000-07:45;1969-12-31T14:46:28.000-09:15;1970-01-01T05:30:28.000+05:30;1969-12-31T18:01:20.000-06:00;1969-12-31T15:46:20.000-08:15;1970-01-01T05:31:09.000+05:30;1969-12-31T21:45:32.000-02:15;1970-01-01T04:45:08.000+04:45;vNAEQerDzE8vp0BweL-_w8_;Content-Type;local;mn;,;/videoplayback;playerfallback;1;fvip;rr;r;---;fallback_count;\\.a1\\.googlevideo\\.com$;\\.googlevideo\\.com$;redirector.googlevideo.com;rr?[1-9].*\\.c\\.youtube\\.com$;www.youtube.com;cmo=pf;cmo=td;a1.googlevideo.com;Untrusted URL;:;/initplayback;/api/manifest;/;index.m3u8;/file/index.m3u8;://;//;=;?;&;cmo;cmo=;%3D;youtube.player.web_20250310_01_RC00'.split(";"), +Gt,VD2,GtL,a8,n1w,dLs,Ww,ysO,ws,h2U,ED,rs,Ql,AsD,YDw,j81,R8,bO,Hjs,aS2,$L8,WUw,lO,ML,gs,fj,pj,I8,wwU,NL,zt,Kj,E1l,rsD,VA,Q8O,Zjl,nt,xLj,v1U,jV,H7,ah,o1l,e2O,Jsl,mL1,R2D,bjs,tD2,Ojs,EH,lSs,rM,MDl,IS1,QA,Nst,UL1,v7,Tsj,eV,mz,Mk,gM,ft,pt,ul8,POj,Ih,TG,UH,z22,Bsj,KU8,s8s,uA,COl,P7,zG,B7,DLt,SDU,sH,qDU,X7U,LS,cpj,AE,VVl,GGO,yk,nUD,LzL,dkj,FB,ypt,Apl,Wzt,ZR,$kt,jh2,Fzs,QhD,vY,oR,JE,eg,Ztw,kGl,mL,e_D,RR,OL,lu,Mx,gQ,R_2,fS,pS,btU,IR,Nx,PY,MVl,KS,DR,iu,gUs,Sg,fiO,p71,XO,CS,c9,VB,GB,Iit,nY,dy,Uks,yB,hV,AV, +url,FO,PA2,z_j,BMw,TM8,wy,H9,Ym,Kz8,shw,Dkw,SHL,itO,ry,QB,Z7,qHS,XYl,v9,n5l,yE1,cEs,dxL,LL1,Go2,VgL,hGD,oA,eX,JV,AEL,RA,YLl,tV,by,HS8,Mu,gy,aRU,$xl,fY,pY,Nu,IA,TB,U5,s5,uy,zB,B9,wYw,D7,FLD,SX,iy,Vw,GZ,nd,qu,cN,Xo,dA,yw,hi,E5D,Lt,Yd,jK,P9,KY,HN,QR2,aF,hp,$d,WN,wA,Fo,EW,rA,Qw,ZSt,Zg,xxl,xd,v5L,oF,kd,eK,Ji,mm,RF,b1,kos,eGO,OW,JEt,mxl,RGD,MJ,gA,IF,tgl,NJ,OSD,UW,Mg2,TZ,fR1,u1,PN,zZ,pYw,BN,IRS,Kd,NQs,Uxl,sW,TQ2,Cd,Dg,i1,qJ,Pu8,Vc,KLw,uBs,Gs,L7,dD,DxU,sRD,hv,Y8,SLl,qLD,X9D,jv,HH,ac,$8,WH,wD,Ft,VX1,GBt,nml, +duO,yVj,E9,hAL,AVt,rD,Qc,Z1,x8,Y5w,$ul,WwS,FwD,w9l,EmO,QAD,ev,Jv,mC,Rc,b6,O9,l6,kBl,gD,p7,Ic,No,Ts,u6,om2,PH,zs,K7,JVD,mu8,s9,D1,Sv,qo,XJ,Vv,GV,f7O,p9O,I71,NyS,n0,L0,Uul,TyD,uO1,dn,yv,hN,AN,Yb,W1,FJ,Qv,v1,Py8,zA1,bU,Bys,Im,N5,Cyw,XNs,iYw,VKs,uU,P1,S9,Lm2,yij,dJD,q5,cW,hsD,XV,dW,TV,YW8,Ais,j6,YE,Uz,HW,aN,$E,jF2,WW,ag1,E_,$Js,rW,Zc,xE,vW,WmU,wN1,FmU,kE,Eds,rit,Lww,RN,QFD,Zds,bp,xJt,m6,kZl,vdt,J5,t5,O_,odw,esl,Jiw,mJt,lp,RsO,Mj,HYO,jAU,gW,f_,IN,Nj,OdS,U_,Tv,K_,lgt,MKl,s_,NA1,qj,fgw,IgS,S6,Dc,nB,LB,UJL, +hu,TAS,Au,Yc,uow,zsS,$c,KmS,wL,F$,sF2,C1w,Qo,xc,qWD,cvl,Vvj,GsD,vU,yvU,Ee,SWl,Avl,dot,n81,LCD,Y9U,hOj,o3,XHD,m2,H7l,a1D,$oj,WCS,wH8,Oe,FCL,MG,E8t,Z7D,Qm2,gL,fB,pB,Td,x5s,uP,PU,zd,vbs,kVl,se,obO,CB,De,m5l,b0O,O0s,t9l,luS,iP,ca,Ls,yJ,h$,A$,Yp,jS,fu1,p1L,Ha,Iu8,aj,$p,dw,Wa,ww,Fb,yA,Ei,Nns,QJ,uJs,Zp,xp,va,PUs,zrl,Bn1,KHU,kp,smO,oj,J$,D5D,qzl,XWl,m_,nED,GvD,L62,djs,y5j,Rj,hTU,c5w,bw,A5O,Y_s,t$,H_D,ac8,$jw,W6j,wWl,lw,F6l,EEw,r5O,QN8,vEl,Z_8,M4,gw,fs,Ij,N4,Ui,Tr,uw,oEs,zr,Pa,eTl,Ba,J5t,Ks,mjj,RTl,b_8,t68, +si,Dp,M6D,Cs,gED,SS,iw,fcj,q4,X9,c0,V4,Ga,nc,TW1,pW2,hW,UjD,AW,NWl,y4,Lc,Ics,d6,jG,PpS,an,H0,E2,r6,Z4,K6l,Q4,ks,sNw,on,zTl,S_w,i_t,q_1,mY,Rn,bm,XUU,tW,O2,lm,In,cuO,NX,U2,Ta,Vmj,Gdw,um,ncl,yus,Sz2,dGj,hf8,AuU,Yes,L22,HBD,P0,za,B0,ael,s2,Kc,$GS,W2D,wU2,im,F2w,qX,Xy,Ec2,cF,Q3S,V9,ruL,ZBl,xGl,vcU,Gq,nN,LN,dT,y9,hk,Ak,kdD,Yr,jy,HF,ocD,JuO,mGw,$r,wT,WF,EA,rT,Q9,bBO,tm2,Zw,xr,vF,leU,Mm8,pUl,gcj,IeD,u$s,kr,TLD,NLj,ot,ey,PPS,Jk,zfs,mi,K2D,BLw,s3j,CPD,OA,l0,DGU,SeS,iBU,Mv,gT,qeL,fN,XaU,c$j,GrS,y$l,pN,hls,A$L, +Yil,jjO,Hsl,UA,apO,$4L,W_8,sA,KN,BF,waU,F_D,Ep2,CN,Dw,Sy,Qjw,VF,Gn,ne,Le,yF,AS,x4l,vpl,krw,Yv,HE,ao,F5,Eh,ZX,ell,m4w,J$D,Rls,bsj,tS,tS1,Oss,Oh,lp1,MS2,gpD,fps,fe,MB,pe,Io,NB,pa2,Ip8,Nwl,Uh,Tn,U4O,uF,TwL,ubs,PwO,PE,zls,zn,BE,Bw8,K_1,sjU,CwD,D4s,Sil,Ke,sh,Ce,SF,X0j,iF,qB,cWl,qiO,DX,VGl,XG,cI,V1,nb,GS,GaD,nst,LY1,Lb,yW2,dz,AWl,Y2U,jns,Hcj,a4l,$XS,WYl,w0t,Ae,YQ,j8,Esw,FY8,rWU,Qnl,a5,Zcs,$Q,xX8,vsl,WI,wz,FG,kas,EI,rz,oss,Q1,Z0,xQ,vI,kQ,o5,e8,Je,eCD,JWL,mXt,RCD,mh,bcU,Oct,tGj,bv,te,MGU,l4l,p0t,UXw,N6D, +OI,T6S,u9D,PmD,B6l,zCD,KYO,lv,sn8,CmL,gz,DX1,S2t,ics,q28,fb,XFj,pb,ckl,I5,NP,Gq2,UI,nr8,TS,uv,LiD,dvL,PI,BI,haD,Kb,yks,Ak2,YAS,jtL,awU,sI,$vS,S8,iv,wFw,Fil,Qtt,ZND,qP,XK,cL,Vr,GK,nO,LO,db,yr,hB,AB,YG,jn,ors,kq2,eaD,mvl,Jk8,bND,vrU,RaU,xvD,HL,aI,OND,lww,MyO,FK,EV,rb,$G,fwl,Qr,ty1,IwO,NTj,pFs,Zm,kG,en,JB,Uv1,gr8,TTs,ml,uyL,P0j,zas,BTj,Kil,Dvs,SAS,iNO,qAj,RI,cS1,VFU,LnL,dBl,tB,hHU,OV,b_,YhL,ASO,aX8,MR,fO,WnD,wE2,Fnw,Ev8,Qo2,NR,II,ZeD,rSl,vvs,ovj,tFO,u_,OeL,TK,zK,lXs,BL,Dm,Sn,MFO,gvD,nT,fX1,dI,pE8,IXS, +W6,NS2,TSD,wI,u5j,PFl,CFw,zHs,QO,ZF,xD,kD,ob,XIw,ek,Jx,mo,V8U,tx,GSD,nQD,Ov,dPO,Mw,gI,fT,pT,yes,Ib,Uv,Tw,ub,P6,hUL,Aej,YIS,B6,KT,CT,DF,Sk,ib,j5L,HbU,a0D,$Ps,Whw,wIS,qw,FhL,da,EQ2,reU,Q5s,yV,AL,Yf,j7,$f,WA,wa,xP1,ra,QV,ZP,vQ8,kSl,xf,oQ1,eUD,kf,M8D,gQD,f02,oL,pI1,I0D,Tzs,JL,Pv2,uGt,RL,Bzs,Kh1,s5D,tL,Oa,CvO,lH,MK,fK,pK,IL,TI,uH,PA,zI,BA,KK,sa,CK,DP,DPS,SIw,ibD,iH,Xx,qID,n1,L1,dd,y8,h3,YP,j4,GKj,H3,aa,$P,Ll1,nGU,XLU,Fx,wd,ABt,EE,J3,kP,mp,Ra,jIl,$Rs,t3,FlO,Wlj,wLD,rBs,kKO,QIU,xRU,vGD,l9,OE,oGD,gd,f1,p1, +eDt,P3,JBj,zx,B3,sE,mRs,D9,S4,RDl,i9,ql,tns,Ve,nv,Lv,dN,ye,hj,Aj,Y3,jP,He,lmD,al,wN,We,gGs,Nbt,pLl,ImL,URw,TbL,P_s,zDw,uKs,Kls,rN,Qe,ve,sI2,C_S,x3,k3,SVS,iOS,VkD,cx2,m9,Rl,b5,tj,O1,Mc,nDl,LoU,dwj,Tk,u5,yxl,hFl,AxD,s1,Cv,Dh,Yvj,jb1,aFt,Wol,X_,w6j,GJ,c8,di,ya,Aa,FoO,wi,F_,Ew,ri,Zs,xu,ku,xw1,vDS,eA,kwD,oDt,ms,eFD,Jxt,R0,bE,mws,RF2,tkS,M8,lFl,Mk2,Ow,gDO,fFL,IFD,p62,I0,OTt,Uwt,TIl,zJ,uE,unD,PbD,B8,K$,zFs,BIl,SA,KoD,sbs,Cbj,DwD,V5,Svw,iTO,qv8,XA2,cLL,V7U,GI8,nfO,nr,LXs,dU,yLS,hgU,AL8,YaD,jLl,y5,ak,aPs, +wAL,$$,FX1,rLD,HKs,QLs,ZKw,xKS,$K1,WXl,hO,AO,Hi,EfD,ju,Y$,vfj,kIj,ofU,egS,JLD,mK2,lP8,RgD,E6,rU,eu,fP2,Nat,IP1,ok,Rk,UKO,O6,TaO,PHl,pr,ujO,qaD,zg1,iKD,TM,X3U,Gxj,ui,U6,c3l,V4L,nPD,zM,dlw,y3s,hML,A3l,YEl,jaS,H18,Lpl,$ll,WpO,w3L,EP8,Fpl,QaO,Cr,Z1l,D$,Su,ii,xl2,vPl,cu,Vd,oPl,kxl,G7,eMs,mlL,b1t,RMt,t42,M4U,O1s,$_,ZE,Qd,gPO,rc,x_,vu,k_,o7,f9s,JI,I91,bZ,R7,Ox,lZ,MT,NdU,gc,pw,Ul8,NT,T7,uZ,Tdl,ux8,P9D,zM1,Pu,Bu,Bdj,Kw,sx,Cw,sas,DE,S_,C9O,qT,VK,cT,X8,G8,nM,i1s,n31,dcj,GkL,VPD,L9O,yK,Y7,Y1D,yjl,hmU,Aj2,SED, +rjl,Zn,E3j,xct,F9D,dv,x7,WT,rv,QlD,aJ,Xel,qEO,cjO,AU,weD,ea,mcs,JU,bvl,tPD,Ovl,RJ,lhs,MPD,g3D,peD,IhU,OQ,Ucs,lz,TN8,uv2,zms,BNt,gv,K9s,C5s,fM,DcS,pM,IJ,H8,VAU,yal,z8,Aa1,H$l,KM,$8O,WsU,w88,Fsl,n3,Euj,V0,pAj,Xz,GR,cR,sQ,a_,HR,WR,Fz,Q0U,Ed,Q0,Zt,Z$s,x8l,kT,kJL,ou1,epw,Jas,m8j,RpD,b$8,tA8,O$L,lsj,md,MA2,R_,ty,gu8,fsD,p8D,Od,Iss,NiU,f3,p3,I_,U8w,NM,Ti1,TR,PEj,u_j,PR,zR,BR,K3,zps,sd,C3,Bis,Kst,Dt,SB,Swl,s0s,D81,CE2,id,qM,XX,i$U,qwj,Xis,cB,Vut,LDw,n$2,VP,Gy,nZ,LZ,dR,h0,A0,Y9,jM,HB,au,d6s,yOw,hql,$9,WB, +wR,FX,rR,Z2,jkl,Y61,vB,Hrl,k9,ou,eM,J0,m8,t0,OS,lG,MA,gR,fZ,pZ,Iu,NA,US,Ty,WD8,PB,BB,wi1,KZ,E$2,rOl,Qkt,x6D,kM2,qA,o$D,ch,X0,m6D,Rq1,br2,Gh,nn,OrO,dr,y$,rr,Q$,Mu8,ZN,xe,vh,g$U,ke,l$D,oG,e1,piw,f$s,JM,m4,RG,bl,Or,NUD,U68,Mp,gr,pn,IG,TUD,fn,zqD,BUs,KDS,skD,Cit,D6O,S6D,Ur,Np,PiS,Xul,Th,V_1,G7D,Kn,n_l,Ph,zh,Lq8,sr,yIs,AI2,Cn,DN,Yxs,il,Hwt,qp,E_D,wuO,aED,WqO,$Tt,cl,VN,GF,n2,L2,dJ,yN,hX,Q71,v_S,jI,ySl,Hl,k7s,e6L,$y,En,Wl,F4,wJ,R6O,mT8,JIt,bw8,rJ,t_l,g_l,QN,vl,pul,ky,oO,eI,JX,IE2,mS,Nc2,UTD,b4,MC,gJ,f2, +p2,IO,NC,Un,TF,u4,Pl,zF,Bl,K2,Tcs,u6U,sn,C2,DB,SI,i4,qC,PZl,z6D,Yw,$w,s7s,CZl,Wc,wH,xw,vc,SxL,eE,RW,iwU,XT1,qxl,cUt,VaO,G8l,n7U,L3O,diD,hwD,yUt,AU1,HMj,$iO,jJw,t6,Ot,wTO,W3w,lh,MZ,gH,E78,fy,py,IW,QJD,ZMl,NZ,rUO,Ut,k8L,TE,uh,Pc,zE,Bc,Ky,Cy,D5,SE,ih,qZ,XS,cf,VU,GW,nC,LC,dj,yU,hd,Ad,YL,jf,Hf,a9,$L,Wf,wj,FS,E$,rj,QU,ZI,xL,vf,kL,o9,ef,Jd,mt,R9,bx,td,O$,lx,M0,gj,fC,pC,I9,N0,U$,TW,ux,Pf,zW,Bf,KC,s$,CC,DI,Sf,ix,q0,X1,cv,Vg,GL,no,Lo,yg,hr,ewj,Ar,D,YS,dG,jR,Hv,aX,miS,Wv,bMs,$S,ta8,F1,OMl,rG,wG,Qg,ZT,xS,kS, +MaD,g7O,fnl,pTl,lL,Mg,RX,gG,NvS,UiD,TvO,u8t,lnj,PzU,vv,zw2,Bvj,po,uL,IX,eR,K3D,oX,fo,Ng,Pv,Czw,Jr,mc,TL,UZ,DiO,zL,Bv,Ko,sZ,SQ2,Co,DT,SR,iL,qg,iMO,qQl,cyw,VBl,Vn,Ge,nk,Lk,yyO,Ayw,j_D,H38,yn,$Mt,Wds,as,wR2,$a,WQ,w2,Fu,EF,r2,Fdw,ry8,Q_S,ETl,Z3s,xMD,vQ,ka,ew,mj,Rs,ba,vTw,tC,kRU,OF,la,os,fk,pk,Is,Nf,oTl,g2,JyL,UF,mMs,RS8,Te,b32,ua,PQ,tBs,O32,ze,ltt,MBD,BQ,gT8,ftw,pRj,ItL,Kk,sF,NP1,UMD,Ck,DQ,Sw,TPD,ia,qf,XC,cb,uzO,VY,Gm,Pdw,np,zS1,Lp,BPU,Kd1,s_1,Cdl,DMs,Sds,dp,i3w,qd8,XBD,yY,c0t,hm,VMO,Am,Gyj,Yq,n9D,L81, +js,wp,dAl,FC,E3,rp,QY,y0l,ZO,xq,vb,hdS,A0l,od,es,juU,Jm,HZl,a21,YSt,$Aj,W8s,wBO,Rd,F8D,bo,tm,O3,lo,E9t,M_,gp,pp,r01,Id,N_,Qul,Tm,zm,uo,Cp,DO,ZZs,Ss,xAs,q_,XN,cZ,v91,Gz,kyD,Lu,dq,ys,Kp,h8,A8,YK,o9l,jU,HZ,aQ,edU,$K,WZ,wq,FN,Eo,Qs,ZG,xK,vZ,J08,mAU,Rdt,bZD,iX,kK,q1,XE,tMl,OZl,l2l,cS,V_,GC,MMs,g9s,SU,f2l,pBO,ng,I2w,Lg,dx,h2,A2,YN,jW,HS,$N,WS,FE,E8,rx,Q_,wx,TRj,uXt,xN,vS,kN,PGO,eW,BRL,J2,mG,K8D,RH,b3,t2,l3,su8,O8,MU,gx,fg,CGt,NU,SSl,iZO,U8,TC,qSD,XhU,cMS,u3,GhL,oH,V1D,neU,PS,L4w,zC,dpl,BS,yMU,hvs,AMO,Yrs, +jGw,Kg,aNw,Hns,s8,SW,$pO,i3,W4D,qU,whD,F4t,XM,Ees,rMS,QGw,ZnL,cd,xpD,Vz,khU,nR,LR,evj,oej,JM1,mpl,Rvw,yz,hf,Af,bn1,t1D,Onj,lNO,M1t,gel,fN1,phj,INU,Nrl,jN,Hd,Upw,TrD,aD,$2,u0j,Wd,wE,EG,Plt,rE,Qz,Zr,zv1,x2,Brl,vd,K4s,k2,sGs,ClS,oD,Dpt,SrU,inD,eN,Jf,mV,RD,bk,qrD,XlD,tf,OG,lk,cX8,Ms,gE,fR,pR,ID,VIl,GF8,Ns,UG,nyD,T3,uk,Pd,z3,XRU,LSS,dC8,Bd,yX2,hLw,AXO,KR,sG,CR,Dr,SN,ik,qs,XH,cK,VE,GA,Yn2,jOs,Yl,jT,H2s,HK,r8,$l,xl,Ey1,vy2,rX8,kFD,eLl,JXU,oyl,mCL,RLj,b2s,TA,lBs,gyS,plL,IBL,NJs,zA,BK,TJt,u4t,KSS,KA,sO2,P42, +sR,CA,DC,ST,DCl,qns,Snl,VE1,A6l,hNj,GE1,Yts,qz,LBD,nws,a5s,wc8,WBl,QW2,FBD,Xq,cq,owl,nm,eNj,l5D,Oyw,tEO,byw,mZt,f5O,gwD,RNt,THS,UZ8,up1,Ao,BHl,Phl,zNt,J6s,KB2,sWt,Lm,y6,I51,pcs,NH8,ChS,dg,MED,St2,qtt,cdO,GWt,d0t,ydt,AdD,Y$8,HC1,j98,Ftl,$0t,aIw,ELl,ZCD,x08,vLU,kWS,Q6,MIO,Jdt,oL8,vq,bCL,oC,OC2,lIt,tfL,e0,MfL,Jo,m7,Qn,RC,O2j,bQ,to,Og,gLw,fIj,lQ,pf8,IIt,Njj,MI,gg,fm,pm,IC,NI,Ug,TP,uQ,U0w,Tj8,Pq,uSj,zP,Dq,Bq,Km,zyS,PxU,sg,BjD,KtO,Cm,Dy,s98,S0,Cx2,D0s,fBD,Rys,S$l,iQ,ZQ,cQ,YI,iCs,q$1,Xk,kEs,V6,Xv2,Zy,xI, +Hq,j0,iS,$I,nLs,hys,aC,ZyU,rds,crl,jWU,dZS,cV,m02,PK,GLj,VRl,C4D,LtD,nSs,Q9t,Eg,xZl,vw2,$Z2,Vfs,XfU,c6w,i2l,BJj,zLw,UCj,DZ8,y6w,Wts,Ewt,r6D,wg,Fq,Wq,wf1,iyL,dgD,Lcj,V7,G9,nF,LF,d1,Ah,HV,ar,$0,WV,Fk,EM,yrl,y7,hh,w1,Art,huD,r1,YZS,jX8,Za,HoU,aT1,x0,vV,k0,or,eh,Jh,m5,Rr,Fct,th,bI,ESl,Wcs,wvl,rrw,OM,lI,QXU,Zol,Ma,xgw,jA,kL8,vSj,eu1,mgl,Ruj,JrD,bol,lTl,UM,T9,MRj,gSD,uI,PV,fTj,pvL,ITj,NGD,BV,sM,CF,TGl,u1s,BG2,sXD,CLL,Kcl,iI,XT,qa,Dg8,SZD,Da,io2,qZj,XQO,cCU,Sh,LjD,df1,yCl,nal,Ge1,Vw2,hnD,ACD,PLs,YFD,zuO, +jsw,Hk8,wQs,aQU,$fs,Wjw,rCU,Fjl,Eaj,QsU,Zkt,VQ,keO,xfU,oaj,va1,ens,JCl,mfU,Rns,bks,tw2,OkD,lQl,Mwl,ga1,fQl,pQl,Gu,N2U,Ufw,T2s,IQS,uut,PaO,KjL,L5,h7,YW,ss8,jH,H4,aw,ikw,Xbl,qFL,Vs8,Y38,Z8,W4,cmt,SFS,DfU,CaD,QQ,wV,rV,eH,J7,aOS,mI,Rw,ow,FTj,$_2,WTl,Eql,bW,t7,QdU,lW,M2,gV,f5,p5,Iw,N2,Zpj,x_8,Um,Tu,P4,kml,oqS,uW,zu,m_s,RBt,B4,bp2,C5,ts2,D8,iW,OpL,SH,q2,lO2,ct,gqw,fO1,G1,n8,AQ,IOD,d_,Yi,Ht,Npl,$i,hQ,j$,U_O,Wt,Tpt,w_,uCU,L8,yH,pb2,aq,FI,Pol,zBj,EC,Bpj,r_,QH,ZY,xi,KTL,ki,vt,oq,e$,sds,Cos,JQ,mK,Rq,b$,tQ,D_D, +OC,l$,S3S,ips,MQ,g_,f8,XZO,q3w,p8,c8U,VUU,Gzl,Iq,nKL,L$1,d11,y8D,hbl,NQ,UC,T1,u$,A8D,Yo8,z1,jQt,Bt,K8,Hut,aGS,sC,$18,W$l,r8j,QQs,wZ8,F$O,EK8,DY,S$,i$,qQ,Zuj,x1D,XY,vKt,oKL,kzs,nx,Gb,J8l,m1D,RbO,bul,Lx,tUl,yq,hF,Ous,MUL,gKj,YF,$F,Nq8,hBU,FT,Tqw,uNt,PXD,zbs,Bqs,$W,jt,K$l,FY,EX,D1j,SoU,iut,rf,VWO,qo1,XSl,nN1,LGS,Qq,dUs,GC1,y2t,ZJ,xF,vy,hot,A2s,kF,oE,Y81,et,jHs,JF,Wy,tF,Hgw,Amj,Gml,OX,l7,gf,fx,px,IE,NY,MY,u7,$U2,By,WGs,wSD,FGO,ENO,r2O,Kx,Zg2,sX,vNj,Cx,oNL,eoS,kCO,xUl,J2D,mUD,RoU,Xi,bgL,tWD,lqj,cD,Hps, +Vm,gNs,pSU,xW,Iql,NxO,nL,Txj,Em,UUt,nq2,d_2,ymL,MWD,LL,d0,ym,uED,P3S,hq,zoD,YC,j3,HD,aT,$C,BxD,WD,w0,KGj,sHl,Fi,ET,r0,Qm,Zv,xC,DUs,C3s,vD,S8L,q88,kC,Xd1,igj,PD,TD,zD,KL,sT,i7,cf8,hxD,tr,uY,iY,HRs,$s8,tq,Vb,bY,G_,d4,UT,yb,rfO,h4,A4,QDU,ZRO,xsl,v28,YJ,k3s,o2l,jz,exO,tNl,bRD,Jft,Rxl,msw,Hp,ORD,a6,lr1,MNL,fr8,pdD,Irt,Pk8,Ef,r4,KVl,Qb,ZV,sDs,SGS,iRw,qGD,XK1,xJ,cll,GAU,nlS,MV,aCl,hjj,Alw,WRO,g4,wKl,Els,FRL,rl1,pW,Uf,Q2s,fW,T_,uj,ZAl,vls,ejD,KW,ij,G2,dk,N8w,UzO,YB,AH,av,$B,T8l,zjS,PS1,B8L,wk,WJ,KR8,CSl, +DzS,iAD,rk,SRj,qRs,Xq1,Zz,xB,V0D,Bp,Eq,ov,tTD,xzs,gll,Rv,HJ,s2D,fQ,nQ,Iv,NO,Uq,W7D,$I2,LQ,uN,PJ,F7L,CQ,Sj,EID,yu,iN,uH2,Xs,yoj,jj,ros,mzt,Jl8,kAs,cO,GT,RXs,mIt,t0U,Om1,yf,At,Yz,ht,HO,ax,ly1,$z,gI1,WO,pqj,EN,fyD,rC,Qf,Tgs,Z6,zXl,Bgs,kz,K7L,CQ8,f9,Ix,N$,uc,DIS,PO,zT,C9,D6,SZ,ic,Sg1,q$,XW,chs,c5,VS,VhD,G9D,G4,n0O,L5U,daj,yhs,nz,Lz,hRl,YMO,hw,Aw,H5,ay,jr1,$H,W5,wZ,FW,EJ,HFw,aaO,rZ,$as,W5S,QS,F5s,wVw,E0l,Zx,Qrl,rh2,xH,ZFj,v5,kH,xas,k9s,o0s,oy,eb,Jw,eRw,mZ,maD,bn,RRs,bFl,Ry,tw,OJ,ln,Mh8,fas,th2,g0l,pV2, +OF8,laU,Ia1,N1t,fz,Ual,ukl,B11,sr1,K5D,z4,P5,sJ,Das,Cz,Dx,Sb,iFD,qm,qM2,SMU,Xf,VHO,cC,VR,Guw,GX,nW1,yls,HAj,d2l,LI8,his,y7s,A7O,LD,Ym8,jwl,yR,$2s,hK,AK,YM,w4s,r7l,aP,$M,WC,Z58,QwL,jp,x2D,vWS,kuO,eij,w3,gWj,QR,Zl,TVl,Iy,PWS,zi8,BVD,KIS,swL,vC,CWs,kM,oP,ep,D2w,RP,Sm2,i5l,bT,tK,qml,XtD,cQl,V$l,G1U,OU,mN,nij,lT,dQw,yQS,hQO,Mh,AQs,YCD,jqw,H8s,aYO,$QO,WKD,wtt,FK8,Eiw,g3,Qq2,fD,Z8S,IP,xQD,k1s,TX,rQD,pD,uT,PC,zX,BC,KD,sU,oiO,CD,eQl,Sp,t$t,M$w,gij,fYl,pt1,c2,IYs,lYl,b8t,N_l,iT,UQL,uIl,Dl,qh,mQU,RQD,V3,P$8, +zQU,O82,JQS,B_8,nG,KKj,LG,dY,sqD,y3,SCD,C$D,DQ2,hA,i8D,AA,YO,jx,H2,qCs,XyD,cFw,aY,Gbs,nFU,$O,LFL,W2,wY,dY2,yFw,hk1,AFw,YX2,jEj,wyl,aJD,PI8,Ek,EFt,rFj,$Yl,WFU,Hxs,ZA,kbj,Q3,rY,FFL,ekj,vF2,xYt,Zxl,QED,v2,JFw,pz,kO,oY,ex,mYD,JA,Rkw,mg,bxU,Kz,ttD,RY,UJ,un,T1w,Ok,Md,MtS,gFS,gY,pG,lB,tA,Nd,bB,Oxt,lJ1,Uk,fJD,pyj,UU,vis,Nm,TH,IJD,fG,Nfs,UYl,Tf8,uYO,uB,P2,zH,zkD,Bf1,KFs,sEw,C72,DYs,T_8,KG,sk,CG,B2,ixs,X4w,c7s,DA,qXU,XDL,cqO,V3l,Sx,nCD,iB,LAw,yqS,GDt,hct,YTD,AqS,avw,qd,Vp,wDL,WAt,QTl,ECO,ZLs,x7j,FAD,rqw,$7L, +vCU,GY,kDL,Jqw,oC1,ecl,LX,LKD,m78,Rcs,bLU,t38,OLj,dl,lvD,yp,M3O,hR,AR,gCs,Yk,fvs,pDl,jr,Ivl,N0U,U7U,T0D,Ho,EWw,br,zc2,tR,PYD,B0l,KAL,FIS,HC,sTt,CYs,lr,VzU,c4D,Iz,G_s,Xpl,dVU,Nr,y41,hzl,j6O,HWj,$V2,Yfs,WfU,wpS,Ff8,EJ2,r41,ZWU,xVs,vJ8,Q6U,TY,OP,oJD,A4O,ezD,aV2,ur,mVU,k_s,UP,RzD,bWw,lVD,ppU,Mzs,IVD,fV2,N4l,tzj,Po,UV8,OWj,sP,zzs,Kf2,B4D,s61,Cj1,DVL,PjD,Sfl,iWU,zY,qfU,XJs,cHl,Vjj,G2S,dOl,LJ2,nB8,Dd,yHs,AHU,Yql,jv2,HQD,az8,qr,Nh,$Ow,WJU,wJO,rHs,EB8,FJD,Qvs,xOs,vB1,ZQj,KX,jTU,oBs,e3s,JHs,Mjw,bQL,tjD,OQ8, +gBs,pJt,oFw,Sr,R3t,mOj,fz8,B5,lzt,FR,T4,gJS,u2w,TkD,PND,z3j,KJO,sv1,h3l,co,Xd,NkU,CNO,UOs,DOL,Sq2,d7O,iQ1,ug2,T41,Izt,HLD,cG,VZ,XOt,GQ,ctw,VZs,GTU,nzt,LMD,ytl,hJj,H98,At2,jxU,a6D,Ll,FMD,WMw,wOw,Qx2,Z9U,x$w,vzO,kTt,nl,oz2,rtD,$$1,dK,eJl,YNw,OGO,yZ,MxU,gO8,fAj,lAj,hZ,NY1,IAl,uRs,TYs,Ud8,PBU,zPD,AZ,BYL,KgO,CBU,DdU,sYD,Skj,VrU,qks,Xot,cRt,GYS,nks,Lv2,yRS,dr2,h91,AR2,YP2,HX1,adS,Wvs,$r2,wos,jzw,FvO,rRs,QzS,xrj,kYl,ZXl,HG,ok1,e9j,Ekj,JRS,vkD,aV,mrl,R9j,bXj,tr8,OX1,ldt,MrL,fdt,Id1,Nll,UrD,Tls,udw,WG,Prs, +wK,BlS,KvO,Crt,QZ,SP2,iXU,qPL,XGD,V5l,cZU,LQ1,dDt,ZU,vG,GQt,nRj,yZl,oV,AZw,h1O,Y7L,jVS,Hl8,WQS,aU2,ERU,e5,$DS,rZl,JZ,vRD,RV,bt,kQD,mQ,oRj,tZ,mDl,JZs,Zls,xDw,R1w,blw,t5L,QVl,Ol2,O7,lUs,e18,Drw,kR,gRt,MD,fUt,pGS,IUD,NKO,UD1,TKD,uaD,PtU,z1j,gK,BK8,KQ1,Ctl,DDw,S7l,sVw,ils,q7t,XPs,c_w,V2O,G5l,pl,UAl,n4j,LbD,IV,deO,y_s,U7,Yjw,jiD,TQ,aDD,$eD,HiD,A_s,ut,ND,hIO,BG,zQ,Wb2,Kl,PG,r_l,xes,k5w,o4U,J_1,Fbt,v4O,meD,E4t,RI2,biD,it,s7,OiO,t2l,DU,g4l,fDD,ZiO,Qi1,M2U,pPl,eIj,wPS,qD,Xe,cP,IDl,VI,zIL,Tet,BeU,ue8,Uel,KbD, +Ne1,SjD,sis,G5,iiO,Xr8,Vq2,G$l,ngl,yPl,yI,he8,LW1,S5,jMl,HEl,HP,J4s,ni,aLU,$qD,wrU,WWs,FWw,Yb1,A_,Egt,rPl,QMD,xqs,ZES,k2D,vgD,h_,k$t,ee8,og1,mq1,JP2,cPt,bES,Rel,Y4,Li,tqj,$4,lLl,Mq2,ggS,fL2,prD,ai,iGl,dqj,ILL,qqw,Cl,NhS,Uqs,Ths,uc8,PVD,WP,we,Bhl,KWD,sM1,zeO,CVw,Fe,qb8,SbS,iE8,Xzl,Ej,cDD,VOs,Gi2,re,njS,dbU,yDj,h$U,QI,LxL,ZD,x4,AD8,Y48,oi,vP,k4,jKS,e2,HHt,aZO,$bw,wzs,Wxl,le,Ejw,rDw,FxS,QKO,Me,ZHt,ge,xbl,fi,vjD,kiD,R$8,mb2,OHD,JDD,ojD,bHs,pi,e$O,tOw,MOL,gjS,fZt,pzl,Ne,IZt,ue,Uj,NO1,PP,z5,TOD,Ki,sj,uUL, +BP,P8D,Ci,BOs,z$U,S2,ie,qe,C8t,KxD,sKs,Xc,Dbl,XjO,iHs,S48,q4s,cr,VYO,dnU,yG8,VD,h4l,AGl,Gg2,nX8,HaO,aMD,$nt,WEL,wj2,FEw,LE,Zas,dh,rG1,QZl,oXl,nE,yD,hP,EXl,xnl,e4D,AP,Yg,JGO,mnl,jq,R4L,Hr,baU,tYs,Oaj,lMD,MY2,gXD,fMS,NFD,pjw,Unl,TFs,PRt,z4D,vr,Spl,KEl,sZO,ias,qp8,Dn2,BFj,Xn8,VQw,cbw,GjS,AbU,oM,Hql,Wkj,$Ej,aWs,ybD,hV8,nt1,Lk8,YBL,eq,JP,Fkl,Rx,IyD,Etl,RM,tP,QBs,rbL,jBs,xED,vt8,kj2,Ob,otj,Nq,JbO,mED,RVU,tQs,bqD,OqO,Ub,T$,lWj,fW2,pnO,z$,gtl,IWS,Nu8,MQD,sb,UED,TuS,KE,uDO,Ps2,zVL,Bul,sBO,Kks,SB1,iqj,Cs8, +Xxj,cT1,DEO,Sq,iV,VcS,nxL,qq,G0l,Lys,yT1,dyL,hht,XU,ATw,Y0D,j$O,cz,VX,Gi,HhD,a3D,$yU,wxw,Wyl,Fyl,Exs,rTl,Q$1,Zhj,vxO,LH,nH,dO,k0l,oxl,xy8,bhS,tcs,Ohs,gxj,Mc8,l31,f3D,pxL,yX,hD,I3s,N7U,Uyt,T7t,PMl,zhs,Yj,B7t,AD,Hz,uPs,Kys,s$1,CMO,Dys,S0D,Wz,ih8,q0t,VL2,wO,GfD,cJw,FU,E4,nnS,LaO,yJU,AJs,d3l,hts,QX,Yul,HUs,afj,WaD,wMU,ZZ,xj,Fa2,jSw,QSO,rJt,En1,vz,kj,x3t,ZUs,oK,eO,vn2,JD,kfD,ons,et1,mx,JJS,RK,m3D,b8,tD,tLO,OUl,lf1,gnw,ffD,pMO,MLt,NBl,IfD,U3j,PK1,Mb,BBj,ztO,TBO,uAj,Ka1,sSD,gO,fH,CKD,D3S,SuO,iUj,qul,Xkt, +Vdj,GUS,j4w,dFl,yYS,n6l,a_l,u8,zi,FeO,s4,CH,E6s,$F1,Ti,i8,SO,Bz,Q4s,qb,xFO,kUs,v6U,Xh,KH,U4,Z4O,DZ,WeS,rYs,eEL,pH,cj,JYt,mFs,Pz,wkj,Vx,Gg,REs,na,La,dF,b4j,tdl,l_w,Mdl,O48,yx,f_O,g6D,hG,pkl,AG,YX,I_D,No8,UFl,Tos,u3O,PJ2,Boj,zEt,Hj,jY,Ke8,CJs,s4j,aZ,$X,DFO,i4D,qYU,Wj,SYD,Xmj,c18,VlD,GNl,nhD,LPw,dSj,Fh,Ep,h5l,y1l,A1S,rF,Qx,YKl,jeO,aks,HIU,$S8,xX,WP8,wms,kX,FPw,Eh2,r1s,QeL,ZIw,xSD,kNl,oht,e58,vht,J1w,mSL,R5l,bID,tlS,OIl,lk1,Mll,RZ,ghw,fkD,pml,USl,z51,uw2,N98,Op,T9D,Ik1,PgO,lR,KPD,B9t,Mn,seS,Cgj,DSL,YR, +cn1,VJL,Gc8,pa,nVs,Nn,CX,LuS,Up,dW2,IZ,yns,h82,$WS,Bj,Ka,Ca,DM,w_2,Wuw,Anl,SY,Fu2,EVt,QfS,iR,Z6l,xWL,vV1,sp,oV1,kcl,qn,XD,H6j,Pj,e8D,JnU,mWl,R88,Ys2,jfD,zg,b6w,tJU,O6O,lol,p_s,Iot,UWl,fos,P2j,Mm,gZ,Bo,Kul,sf1,BXj,C2S,NXl,z81,MJL,DWt,uZt,Ssw,TX2,IY,P7D,lDO,cn,nX,gVl,qsD,G61,Gj,nos,LOD,cgl,Lq,dHl,ygD,i6l,hYw,VeD,Ag8,du,nq,YyL,HVO,j1s,VT,$Hj,Yt,lZs,yT,jQ,Ab,Hn,AP1,WO2,EoL,FOj,Q1D,ZVs,rgD,$t,aB,vol,k6D,ooO,MeD,bVL,tew,mHS,p$D,JgD,FD,UH2,Ijs,T5l,uL1,wu,ru,QT,KOw,B5U,zYs,xt,ljl,eQ,CDs,oB,ZW,Sys,Xgl,c92, +fjl,iV1,RB,Vit,OVO,s1s,vn,Gpt,EB,nZl,LrS,dNl,OB,ls,DHj,y9j,hZs,ME,gu,A9U,kt,N58,YOO,jgl,HJw,qyl,abU,Jb,$Nl,mk,Fs,Wrl,Fr2,fq,pq,EZl,r9U,QgL,tb,bs,ZJL,w$t,xNj,vZ2,kpL,oZl,eZj,IB,NE,RZl,OJ1,MiL,mNs,uF1,PC1,zZl,B$O,Krt,sgD,CC2,SO1,DNS,UB,Tj,us,iJ8,qOL,XXl,Cg,czO,Pn,VC1,zj,Bn,mT,Kq,Xu,GOt,kI,eyl,nAO,GP,L1t,pg,IH,qI,d9j,yzt,sB,hWt,AzU,Cq,jUD,HPt,DW,is,qE,aKD,wX2,F1D,XP,EA8,$9l,W1s,rzD,QUw,ZPl,x9l,vAl,cx,oAj,eSl,JC,G3,eWD,Jz8,dE,kOL,Mf,m9O,RWs,bPU,VM,Zq,OP1,lKs,G0,nh,MCt,Lh,gAL,SQ,fKL,pXs,DAS,d7,yM,IK1, +hT,AT,Nmj,Yx,U9U,jc,Hx,Tms,umj,veL,a$,Pql,Bml,zWS,$x,K1D,Wx,w7,sUU,Cql,D9D,Scj,iPU,qcD,XsL,VoU,E0,ccw,Glj,nY8,L0s,dtS,YlD,yc1,hKs,Acw,HfO,$t2,W0S,wss,aHD,r7,F02,EYS,rc1,QpD,ZfD,Z3,xt2,xx,vx,kx,vYl,klt,eK2,Jct,mtO,RKD,tow,bfO,Ofj,o$,ec,gYw,lHl,Mo2,JT,fHt,pss,my,R$,IHs,bM,Nt2,tT,Ut2,O0,lM,Tts,My,g7,uQl,Pf1,fh,ph,zKt,I$,BtL,K0s,uM,Px,spD,CfS,Dt8,qll,if8,z0,XwV,csM,VD_,tIj,Sl2,n17,LUM,ysA,XwD,Hw;Gt=function(X){return function(){return XwD[X].apply(this,arguments)}}; +g.hs=function(X,c){return XwD[X]=c}; +VD2=function(X){var c=0;return function(){return c=this.length))return this[X]}; +I8=function(X){return X?X:pj}; +wwU=function(X,c,V){X instanceof String&&(X=String(X));for(var G=X.length-1;G>=0;G--){var n=X[G];if(c.call(V,n,G,X))return{KU:G,d9:n}}return{KU:-1,d9:void 0}}; +NL=function(X){return X?X:function(c,V){return wwU(this,c,V).KU}}; +g.uO=function(X,c,V){X=X.split(".");V=V||g.UD;for(var G;X.length&&(G=X.shift());)X.length||c===void 0?V[G]&&V[G]!==Object.prototype[G]?V=V[G]:V=V[G]={}:V[G]=c}; +zt=function(X,c){var V=g.Pw("CLOSURE_FLAGS");X=V&&V[X];return X!=null?X:c}; +g.Pw=function(X,c){X=X.split(".");c=c||g.UD;for(var V=0;V2){var G=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(n,G);return X.apply(c,n)}}return function(){return X.apply(c,arguments)}}; +g.qL=function(X,c,V){g.qL=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?E1l:rsD;return g.qL.apply(null,arguments)}; +g.Xr=function(X,c){var V=Array.prototype.slice.call(arguments,1);return function(){var G=V.slice();G.push.apply(G,arguments);return X.apply(this,G)}}; +g.c7=function(){return Date.now()}; +VA=function(X){return X}; +g.GG=function(X,c){function V(){} +V.prototype=c.prototype;X.IP=c.prototype;X.prototype=new V;X.prototype.constructor=X;X.lF=function(G,n,L){for(var d=Array(arguments.length-2),h=2;hc&&V.push(hp(G,1))}); +return V}; +g.Ap=function(X){X&&typeof X.dispose=="function"&&X.dispose()}; +g.YU=function(X){for(var c=0,V=arguments.length;c>6|192;else{if(L>=55296&&L<=57343){if(L<=56319&&n=56320&&d<=57343){L=(L-55296)*1024+ +d-56320+65536;G[V++]=L>>18|240;G[V++]=L>>12&63|128;G[V++]=L>>6&63|128;G[V++]=L&63|128;continue}else n--}if(c)throw Error("Found an unpaired surrogate");L=65533}G[V++]=L>>12|224;G[V++]=L>>6&63|128}G[V++]=L&63|128}}X=V===G.length?G:G.subarray(0,V)}return X}; +QA=function(X){g.UD.setTimeout(function(){throw X;},0)}; +Nst=function(X){return Array.prototype.map.call(X,function(c){c=c.toString(16);return c.length>1?c:"0"+c}).join("")}; +UL1=function(X){for(var c=[],V=0;V>6|192:((n&64512)==55296&&G+1>18|240,c[V++]=n>>12&63|128):c[V++]=n>>12|224,c[V++]=n>>6&63|128),c[V++]=n&63|128)}return c}; +v7=function(X,c){return X.lastIndexOf(c,0)==0}; +Tsj=function(X,c){var V=X.length-c.length;return V>=0&&X.indexOf(c,V)==V}; +g.kU=function(X){return/^[\s\xa0]*$/.test(X)}; +g.oh=function(X,c){return X.indexOf(c)!=-1}; +eV=function(X,c){return g.oh(X.toLowerCase(),c.toLowerCase())}; +g.Rh=function(X,c){var V=0;X=Jp(String(X)).split(".");c=Jp(String(c)).split(".");for(var G=Math.max(X.length,c.length),n=0;V==0&&nc?1:0}; +g.bA=function(){var X=g.UD.navigator;return X&&(X=X.userAgent)?X:""}; +Mk=function(X){if(!tp&&!OH||!lA)return!1;for(var c=0;c0:!1}; +pt=function(){return ft()?!1:gM("Opera")}; +ul8=function(){return ft()?!1:gM("Trident")||gM("MSIE")}; +POj=function(){return ft()?Mk("Microsoft Edge"):gM("Edg/")}; +Ih=function(){return gM("Firefox")||gM("FxiOS")}; +TG=function(){return gM("Safari")&&!(UH()||(ft()?0:gM("Coast"))||pt()||(ft()?0:gM("Edge"))||POj()||(ft()?Mk("Opera"):gM("OPR"))||Ih()||gM("Silk")||gM("Android"))}; +UH=function(){return ft()?Mk("Chromium"):(gM("Chrome")||gM("CriOS"))&&!(ft()?0:gM("Edge"))||gM("Silk")}; +z22=function(){return gM("Android")&&!(UH()||Ih()||pt()||gM("Silk"))}; +Bsj=function(X){var c={};X.forEach(function(V){c[V[0]]=V[1]}); +return function(V){return c[V.find(function(G){return G in c})]||""}}; +KU8=function(X){var c=g.bA();if(X==="Internet Explorer"){if(ul8())if((X=/rv: *([\d\.]*)/.exec(c))&&X[1])c=X[1];else{X="";var V=/MSIE +([\d\.]+)/.exec(c);if(V&&V[1])if(c=/Trident\/(\d.\d)/.exec(c),V[1]=="7.0")if(c&&c[1])switch(c[1]){case "4.0":X="8.0";break;case "5.0":X="9.0";break;case "6.0":X="10.0";break;case "7.0":X="11.0"}else X="7.0";else X=V[1];c=X}else c="";return c}var G=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");V=[];for(var n;n=G.exec(c);)V.push([n[1],n[2],n[3]||void 0]); +c=Bsj(V);switch(X){case "Opera":if(pt())return c(["Version","Opera"]);if(ft()?Mk("Opera"):gM("OPR"))return c(["OPR"]);break;case "Microsoft Edge":if(ft()?0:gM("Edge"))return c(["Edge"]);if(POj())return c(["Edg"]);break;case "Chromium":if(UH())return c(["Chrome","CriOS","HeadlessChrome"])}return X==="Firefox"&&Ih()||X==="Safari"&&TG()||X==="Android Browser"&&z22()||X==="Silk"&&gM("Silk")?(c=V[2])&&c[1]||"":""}; +s8s=function(X){if(ft()&&X!=="Silk"){var c=lA.brands.find(function(V){return V.brand===X}); +if(!c||!c.version)return NaN;c=c.version.split(".")}else{c=KU8(X);if(c==="")return NaN;c=c.split(".")}return c.length===0?NaN:Number(c[0])}; +uA=function(){return tp||OH?!!lA&&!!lA.platform:!1}; +COl=function(){return uA()?lA.platform==="Android":gM("Android")}; +P7=function(){return gM("iPhone")&&!gM("iPod")&&!gM("iPad")}; +zG=function(){return P7()||gM("iPad")||gM("iPod")}; +B7=function(){return uA()?lA.platform==="macOS":gM("Macintosh")}; +DLt=function(){return uA()?lA.platform==="Windows":gM("Windows")}; +g.Kt=function(X){return X[X.length-1]}; +SDU=function(X,c){var V=X.length,G=typeof X==="string"?X.split(""):X;for(--V;V>=0;--V)V in G&&c.call(void 0,G[V],V,X)}; +g.Ct=function(X,c,V){c=sH(X,c,V);return c<0?null:typeof X==="string"?X.charAt(c):X[c]}; +sH=function(X,c,V){for(var G=X.length,n=typeof X==="string"?X.split(""):X,L=0;L=0;G--)if(G in n&&c.call(V,n[G],G,X))return G;return-1}; +g.SV=function(X,c){return ij8(X,c)>=0}; +qDU=function(X){if(!Array.isArray(X))for(var c=X.length-1;c>=0;c--)delete X[c];X.length=0}; +g.qk=function(X,c){c=ij8(X,c);var V;(V=c>=0)&&g.iA(X,c);return V}; +g.iA=function(X,c){return Array.prototype.splice.call(X,c,1).length==1}; +g.XB=function(X,c){c=sH(X,c);c>=0&&g.iA(X,c)}; +X7U=function(X,c){var V=0;SDU(X,function(G,n){c.call(void 0,G,n,X)&&g.iA(X,n)&&V++})}; +g.cY=function(X){return Array.prototype.concat.apply([],arguments)}; +g.Vk=function(X){var c=X.length;if(c>0){for(var V=Array(c),G=0;G>>1),A=void 0;V?A=c.call(void 0,X[h],h,X):A=c(G,X[h]);A>0?n=h+1:(L=h,d=!A)}return d?n:-n-1}; +g.Y5=function(X,c){X.sort(c||yk)}; +GGO=function(X,c){var V=yk;g.Y5(X,function(G,n){return V(c(G),c(n))})}; +g.jg=function(X,c,V){if(!g.sD(X)||!g.sD(c)||X.length!=c.length)return!1;var G=X.length;V=V||nUD;for(var n=0;nc?1:X=0})}; +g.rQ=function(X,c){c===void 0&&(c=0);jh2();c=HtD[c];for(var V=Array(Math.floor(X.length/3)),G=c[64]||"",n=0,L=0;n>2];d=c[(d&3)<<4|h>>4];h=c[(h&15)<<2|A>>6];A=c[A&63];V[L++]=""+Y+d+h+A}Y=0;A=G;switch(X.length-n){case 2:Y=X[n+1],A=c[(Y&15)<<2]||G;case 1:X=X[n],V[L]=""+c[X>>2]+c[(X&3)<<4|Y>>4]+A+G}return V.join("")}; +g.Qk=function(X,c){if(ai2&&!c)X=g.UD.btoa(X);else{for(var V=[],G=0,n=0;n255&&(V[G++]=L&255,L>>=8);V[G++]=L}X=g.rQ(V,c)}return X}; +Wzt=function(X){var c=[];$kt(X,function(V){c.push(V)}); +return c}; +ZR=function(X){var c=X.length,V=c*3/4;V%3?V=Math.floor(V):g.oh("=.",X[c-1])&&(V=g.oh("=.",X[c-2])?V-2:V-1);var G=new Uint8Array(V),n=0;$kt(X,function(L){G[n++]=L}); +return n!==V?G.subarray(0,n):G}; +$kt=function(X,c){function V(A){for(;G>4);d!=64&&(c(L<<4&240|d>>2),h!=64&&c(d<<6&192|h))}}; +jh2=function(){if(!x5){x5={};for(var X="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),c=["+/=","+/","-_=","-_.","-_"],V=0;V<5;V++){var G=X.concat(c[V].split(""));HtD[V]=G;for(var n=0;n=c||(G[X]=V+1,X=Error(),kGl(X,"incident"),QA(X))}}; +RR=function(X,c,V){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(V===void 0?0:V)&&Symbol.for&&X?Symbol.for(X):X!=null?Symbol(X):Symbol():c}; +OL=function(X,c){bu||tE in X||JpD(X,mkl);X[tE]|=c}; +lu=function(X,c){bu||tE in X||JpD(X,mkl);X[tE]=c}; +Mx=function(X,c){X[tE]&=~c}; +gQ=function(X){return X!==null&&typeof X==="object"&&!Array.isArray(X)&&X.constructor===Object}; +R_2=function(X,c){if(X!=null)if(typeof X==="string")X=X?new vY(X,k5):oR();else if(X.constructor!==vY)if(vUS&&X!=null&&X instanceof Uint8Array)X=X.length?new vY(new Uint8Array(X),k5):oR();else{if(!c)throw Error();X=void 0}return X}; +fS=function(X){if(X&2)throw Error();}; +pS=function(X,c){if(typeof c!=="number"||c<0||c>=X.length)throw Error();}; +btU=function(X,c,V){var G=c&512?0:-1,n=X.length;c=c&64?c&256:!!n&&gQ(X[n-1]);for(var L=n+(c?-1:0),d=0;dc.length)return!1;if(X.lengthn)return!1;if(G>>0;zo=c;BY=(X-c)/4294967296>>>0}; +DR=function(X){if(X<0){KS(0-X);var c=g.r(CS(zo,BY));X=c.next().value;c=c.next().value;zo=X>>>0;BY=c>>>0}else KS(X)}; +iu=function(X,c){var V=c*4294967296+(X>>>0);return Number.isSafeInteger(V)?V:Sg(X,c)}; +gUs=function(X,c){var V=c&2147483648;V&&(X=~X+1>>>0,c=~c>>>0,X==0&&(c=c+1>>>0));X=iu(X,c);return typeof X==="number"?V?-X:X:V?"-"+X:X}; +Sg=function(X,c){c>>>=0;X>>>=0;if(c<=2097151)var V=""+(4294967296*c+X);else IR()?V=""+(BigInt(c)<>>24|c<<8)&16777215,c=c>>16&65535,X=(X&16777215)+V*6777216+c*6710656,V+=c*8147497,c*=2,X>=1E7&&(V+=X/1E7>>>0,X%=1E7),V>=1E7&&(c+=V/1E7>>>0,V%=1E7),V=c+fiO(V)+fiO(X));return V}; +fiO=function(X){X=String(X);return"0000000".slice(X.length)+X}; +p71=function(){var X=zo,c=BY;c&2147483648?IR()?X=""+(BigInt(c|0)<>>0)):(c=g.r(CS(X,c)),X=c.next().value,c=c.next().value,X="-"+Sg(X,c)):X=Sg(X,c);return X}; +XO=function(X){if(X.length<16)DR(Number(X));else if(IR())X=BigInt(X),zo=Number(X&BigInt(4294967295))>>>0,BY=Number(X>>BigInt(32)&BigInt(4294967295));else{var c=+(X[0]==="-");BY=zo=0;for(var V=X.length,G=0+c,n=(V-c)%6+c;n<=V;G=n,n+=6)G=Number(X.slice(G,n)),BY*=1E6,zo=zo*1E6+G,zo>=4294967296&&(BY+=Math.trunc(zo/4294967296),BY>>>=0,zo>>>=0);c&&(c=g.r(CS(zo,BY)),X=c.next().value,c=c.next().value,zo=X,BY=c)}}; +CS=function(X,c){c=~c;X?X=~X+1:c+=1;return[X,c]}; +c9=function(X){return Array.prototype.slice.call(X)}; +VB=function(X,c){throw Error(c===void 0?"unexpected value "+X+"!":c);}; +GB=function(X){if(X!=null&&typeof X!=="number")throw Error("Value of float/double field must be a number, found "+typeof X+": "+X);return X}; +Iit=function(X){return X.displayName||X.name||"unknown type name"}; +nY=function(X){if(X!=null&&typeof X!=="boolean")throw Error("Expected boolean but got "+Kj(X)+": "+X);return X}; +dy=function(X){switch(typeof X){case "bigint":return!0;case "number":return LY(X);case "string":return NMD.test(X);default:return!1}}; +Uks=function(X){if(typeof X!=="number")throw mL("int32");if(!LY(X))throw mL("int32");return X|0}; +yB=function(X){return X==null?X:Uks(X)}; +hV=function(X){if(X==null)return X;if(typeof X==="string"&&X)X=+X;else if(typeof X!=="number")return;return LY(X)?X|0:void 0}; +AV=function(X){if(X==null)return X;if(typeof X==="string"&&X)X=+X;else if(typeof X!=="number")return;return LY(X)?X>>>0:void 0}; +url=function(X){var c=0;c=c===void 0?0:c;if(!dy(X))throw mL("int64");var V=typeof X;switch(c){case 2048:switch(V){case "string":return Ym(X);case "bigint":return String(jX(64,X));default:return H9(X)}case 4096:switch(V){case "string":return c=aA(Number(X)),W9(c)?X=PY(c):(c=X.indexOf("."),c!==-1&&(X=X.substring(0,c)),X=IR()?PY(jX(64,BigInt(X))):PY(TM8(X))),X;case "bigint":return PY(jX(64,X));default:return W9(X)?PY(wy(X)):PY(H9(X))}case 0:switch(V){case "string":return Ym(X);case "bigint":return PY(jX(64, +X));default:return wy(X)}default:return VB(c,"Unknown format requested type for int64")}}; +FO=function(X){return X==null?X:url(X)}; +PA2=function(X){if(X[0]==="-")return!1;var c=X.length;return c<20?!0:c===20&&Number(X.substring(0,6))<184467}; +z_j=function(X){var c=X.length;return X[0]==="-"?c<20?!0:c===20&&Number(X.substring(0,7))>-922337:c<19?!0:c===19&&Number(X.substring(0,6))<922337}; +BMw=function(X){if(X<0){DR(X);var c=Sg(zo,BY);X=Number(c);return W9(X)?X:c}c=String(X);if(PA2(c))return c;DR(X);return iu(zo,BY)}; +TM8=function(X){if(z_j(X))return X;XO(X);return p71()}; +wy=function(X){dy(X);X=aA(X);W9(X)||(DR(X),X=gUs(zo,BY));return X}; +H9=function(X){dy(X);X=aA(X);if(W9(X))X=String(X);else{var c=String(X);z_j(c)?X=c:(DR(X),X=p71())}return X}; +Ym=function(X){dy(X);var c=aA(Number(X));if(W9(c))return String(c);c=X.indexOf(".");c!==-1&&(X=X.substring(0,c));return TM8(X)}; +Kz8=function(X){if(X==null)return X;if(typeof X==="bigint")return E5(X)?X=Number(X):(X=jX(64,X),X=E5(X)?Number(X):String(X)),X;if(dy(X))return typeof X==="number"?wy(X):Ym(X)}; +shw=function(X){if(X==null)return X;var c=typeof X;if(c==="bigint")return String(jX(64,X));if(dy(X)){if(c==="string")return Ym(X);if(c==="number")return wy(X)}}; +Dkw=function(X){if(X==null)return X;var c=typeof X;if(c==="bigint")return String(CAt(64,X));if(dy(X)){if(c==="string")return dy(X),c=aA(Number(X)),W9(c)&&c>=0?X=String(c):(c=X.indexOf("."),c!==-1&&(X=X.substring(0,c)),PA2(X)||(XO(X),X=Sg(zo,BY))),X;if(c==="number")return dy(X),X=aA(X),X>=0&&W9(X)?X:BMw(X)}}; +SHL=function(X){if(X==null||typeof X=="string"||X instanceof vY)return X}; +itO=function(X){if(typeof X!=="string")throw Error();return X}; +ry=function(X){if(X!=null&&typeof X!=="string")throw Error();return X}; +QB=function(X){return X==null||typeof X==="string"?X:void 0}; +Z7=function(X,c){if(!(X instanceof c))throw Error("Expected instanceof "+Iit(c)+" but got "+(X&&Iit(X.constructor)));return X}; +qHS=function(X,c,V){if(X!=null&&typeof X==="object"&&X.h9===xm)return X;if(Array.isArray(X)){var G=X[tE]|0,n=G;n===0&&(n|=V&32);n|=V&2;n!==G&&lu(X,n);return new c(X)}}; +XYl=function(X){return X}; +v9=function(X){return X}; +n5l=function(X,c,V,G){return cEs(X,c,V,G,VgL,Go2)}; +yE1=function(X,c,V,G){return cEs(X,c,V,G,LL1,dxL)}; +cEs=function(X,c,V,G,n,L){if(!V.length&&!G)return 1;for(var d=0,h=0,A=0,Y=0,H=0,a=V.length-1;a>=0;a--){var W=V[a];G&&a===V.length-1&&W===G||(Y++,W!=null&&A++)}if(G)for(var w in G)a=+w,isNaN(a)||(H+=hGD(a),h++,a>d&&(d=a));Y=n(Y,A)+L(h,d,H);w=A;a=h;W=d;for(var F=H,Z=V.length-1;Z>=0;Z--){var v=V[Z];if(!(v==null||G&&Z===V.length-1&&v===G)){v=Z-c;var e=n(v,w)+L(a,W,F);e=1024||(a--,w++,F-=m.length,d=n(G,w)+L(a,W,F),d1?X-1:0)}; +LL1=function(X,c){return(X>1?X-1:0)+(X-c)*4}; +Go2=function(X,c){return X==0?0:9*Math.max(1<<32-Math.clz32(X+X/2-1),4)<=c?X==0?0:X<4?100+(X-1)*16:X<6?148+(X-4)*16:X<12?244+(X-6)*16:X<22?436+(X-12)*19:X<44?820+(X-22)*17:52+32*X:40+4*c}; +VgL=function(X){return 40+4*X}; +hGD=function(X){return X>=100?X>=1E4?Math.ceil(Math.log10(1+X)):X<1E3?3:4:X<10?1:2}; +oA=function(X){var c=VA(km);return c?X[c]:void 0}; +eX=function(){}; +JV=function(X,c){for(var V in X)!isNaN(V)&&c(X,+V,X[V])}; +AEL=function(X){var c=new eX;JV(X,function(V,G,n){c[G]=n.slice()}); +c.J=X.J;return c}; +RA=function(X,c,V,G,n){var L=G?!!(c&32):void 0;G=[];var d=X.length,h=!1;if(c&64){if(c&256){d--;var A=X[d];var Y=d}else Y=4294967295,A=void 0;if(!(n||c&512)){h=!0;var H;var a=((H=mw)!=null?H:v9)(A?Y- -1:c>>15&1023||536870912,-1,X,A);Y=a+-1}}else Y=4294967295,c&1||(A=d&&X[d-1],gQ(A)?(d--,Y=d,a=0):A=void 0);H=void 0;for(var W=0;W=Y){var F=void 0;((F=H)!=null?F:H={})[W- -1]=w}else G[W]=w}if(A)for(var Z in A)d=A[Z],d!=null&&(d=V(d,L))!=null&&(W=+Z,W< +a?G[W+-1]=d:(W=void 0,((W=H)!=null?W:H={})[Z]=d));H&&(h?G.push(H):G[Y]=H);n&&(lu(G,c&33522241|(H!=null?290:34)),VA(km)&&(X=oA(X))&&X instanceof eX&&(G[km]=AEL(X)));return G}; +YLl=function(X){switch(typeof X){case "number":return Number.isFinite(X)?X:""+X;case "bigint":return E5(X)?Number(X):""+X;case "boolean":return X?1:0;case "object":if(Array.isArray(X)){var c=X[tE]|0;return X.length===0&&c&1?void 0:RA(X,c,YLl,!1,!1)}if(X.h9===xm)return by(X);if(X instanceof vY){c=X.J;if(c==null)X="";else if(typeof c==="string")X=c;else{if(EUU){for(var V="",G=0,n=c.length-10240;G0?void 0:X===0?jRw||(jRw=[0,void 0]):[-X,void 0];case "string":return[0,X];case "object":return X}}; +Mu=function(X,c,V){X=aRU(X,c[0],c[1],V?1:2);c!==O5&&V&&OL(X,8192);return X}; +gy=function(X,c,V){return aRU(X,c,V,3)}; +aRU=function(X,c,V,G){if(X==null){var n=96;V?(X=[V],n|=512):X=[];c&&(n=n&-33521665|(c&1023)<<15)}else{if(!Array.isArray(X))throw Error("narr");n=X[tE]|0;8192&n||!(64&n)||2&n||$xl();if(n&1024)throw Error("farr");if(n&64)return G!==3||n&16384||lu(X,n|16384),X;G===1||G===2||(n|=64);if(V&&(n|=512,V!==X[0]))throw Error("mid");a:{V=X;var L=V.length;if(L){var d=L-1,h=V[d];if(gQ(h)){n|=256;c=n&512?0:-1;d-=c;if(d>=1024)throw Error("pvtlmt");for(var A in h)L=+A,L1024)throw Error("spvt");n=n&-33521665|(A&1023)<<15}}}G===3&&(n|=16384);lu(X,n);return X}; +$xl=function(){e_D(WLs,5)}; +fY=function(X,c){if(typeof X!=="object")return X;if(Array.isArray(X)){var V=X[tE]|0;if(X.length===0&&V&1)return;if(V&2)return X;var G;if(G=c)G=V===0||!!(V&32)&&!(V&64||!(V&16));return G?(OL(X,34),V&4&&Object.freeze(X),X):RA(X,V,fY,c!==void 0,!0)}if(X.h9===xm)return c=X.RZ,V=c[tE]|0,V&2?X:RA(c,V,fY,!0,!0);if(X instanceof vY)return X}; +pY=function(X){var c=X.RZ;if(!((c[tE]|0)&2))return X;X=new X.constructor(RA(c,c[tE]|0,fY,!0,!0));Mx(X.RZ,2);return X}; +Nu=function(X,c){Object.isExtensible(X);X=X.RZ;return IA(X,X[tE]|0,c)}; +IA=function(X,c,V){if(V===-1)return null;var G=V+(c&512?0:-1),n=X.length-1;if(G>=n&&c&256)return X[n][V];if(G<=n)return X[G]}; +TB=function(X,c,V){var G=X.RZ,n=G[tE]|0;fS(n);U5(G,n,c,V);return X}; +U5=function(X,c,V,G){var n=c&512?0:-1,L=V+n,d=X.length-1;if(L>=d&&c&256)return X[d][V]=G,c;if(L<=d)return X[L]=G,c;G!==void 0&&(d=c>>15&1023||536870912,V>=d?G!=null&&(L={},X[d+n]=(L[V]=G,L),c|=256,lu(X,c)):X[L]=G);return c}; +s5=function(X,c,V,G,n){var L=X.RZ;X=L[tE]|0;var d=2&X?1:G;n=!!n;G=uy(L,X,c);var h=G[tE]|0;if(!(4&h)){4&h&&(G=c9(G),h=P9(h,X),X=U5(L,X,c,G));for(var A=0,Y=0;A "+X)}; +xd=function(X){if(typeof X==="string")return{buffer:QhD(X),dF:!1};if(Array.isArray(X))return{buffer:new Uint8Array(X),dF:!1};if(X.constructor===Uint8Array)return{buffer:X,dF:!1};if(X.constructor===ArrayBuffer)return{buffer:new Uint8Array(X),dF:!1};if(X.constructor===vY)return{buffer:eg(X)||new Uint8Array(0),dF:!0};if(X instanceof Uint8Array)return{buffer:new Uint8Array(X.buffer,X.byteOffset,X.byteLength),dF:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers"); +}; +v5L=function(X,c,V,G){this.G=null;this.Z=!1;this.J=this.U=this.X=0;this.init(X,c,V,G)}; +oF=function(X){var c=0,V=0,G=0,n=X.G,L=X.J;do{var d=n[L++];c|=(d&127)<32&&(V|=(d&127)>>4);for(G=3;G<32&&d&128;G+=7)d=n[L++],V|=(d&127)<>>0,V>>>0);throw Zg();}; +kd=function(X,c){X.J=c;if(c>X.U)throw xxl(X.U,c);}; +eK=function(X){var c=X.G,V=X.J,G=c[V++],n=G&127;if(G&128&&(G=c[V++],n|=(G&127)<<7,G&128&&(G=c[V++],n|=(G&127)<<14,G&128&&(G=c[V++],n|=(G&127)<<21,G&128&&(G=c[V++],n|=G<<28,G&128&&c[V++]&128&&c[V++]&128&&c[V++]&128&&c[V++]&128&&c[V++]&128)))))throw Zg();kd(X,V);return n}; +Ji=function(X){var c=X.G,V=X.J,G=c[V+0],n=c[V+1],L=c[V+2];c=c[V+3];kd(X,X.J+4);return(G<<0|n<<8|L<<16|c<<24)>>>0}; +mm=function(X){var c=Ji(X);X=Ji(X);return iu(c,X)}; +RF=function(X){var c=Ji(X),V=Ji(X);X=(V>>31)*2+1;var G=V>>>20&2047;c=4294967296*(V&1048575)+c;return G==2047?c?NaN:X*Infinity:G==0?X*4.9E-324*c:X*Math.pow(2,G-1075)*(c+4503599627370496)}; +b1=function(X){for(var c=0,V=X.J,G=V+10,n=X.G;VX.U)throw xxl(c,X.U-V);X.J=G;return V}; +eGO=function(X,c){if(c==0)return oR();var V=kos(X,c);X.mL&&X.Z?V=X.G.subarray(V,V+c):(X=X.G,c=V+c,V=V===c?new Uint8Array(0):o5D?X.slice(V,c):new Uint8Array(X.subarray(V,c)));return V.length==0?oR():new vY(V,k5)}; +OW=function(X,c,V,G){if(ti.length){var n=ti.pop();n.init(X,c,V,G);X=n}else X=new v5L(X,c,V,G);this.J=X;this.U=this.J.J;this.G=this.X=-1;JEt(this,G)}; +JEt=function(X,c){c=c===void 0?{}:c;X.No=c.No===void 0?!1:c.No}; +mxl=function(X,c,V,G){if(l1.length){var n=l1.pop();JEt(n,G);n.J.init(X,c,V,G);return n}return new OW(X,c,V,G)}; +RGD=function(X){var c=X.J;if(c.J==c.U)return!1;X.U=X.J.J;var V=eK(X.J)>>>0;c=V>>>3;V&=7;if(!(V>=0&&V<=5))throw ZSt(V,X.U);if(c<1)throw Error("Invalid field number: "+c+" (at position "+X.U+")");X.X=c;X.G=V;return!0}; +MJ=function(X){switch(X.G){case 0:X.G!=0?MJ(X):b1(X.J);break;case 1:X=X.J;kd(X,X.J+8);break;case 2:if(X.G!=2)MJ(X);else{var c=eK(X.J)>>>0;X=X.J;kd(X,X.J+c)}break;case 5:X=X.J;kd(X,X.J+4);break;case 3:c=X.X;do{if(!RGD(X))throw Error("Unmatched start-group tag: stream EOF");if(X.G==4){if(X.X!=c)throw Error("Unmatched end-group tag");break}MJ(X)}while(1);break;default:throw ZSt(X.G,X.U);}}; +gA=function(X,c,V){var G=X.J.U,n=eK(X.J)>>>0,L=X.J.J+n,d=L-G;d<=0&&(X.J.U=L,V(c,X,void 0,void 0,void 0),d=L-X.J.J);if(d)throw Error("Message parsing ended unexpectedly. Expected to read "+(n+" bytes, instead read "+(n-d)+" bytes, either the data ended unexpectedly or the message misreported its own length"));X.J.J=L;X.J.U=G}; +IF=function(X){var c=eK(X.J)>>>0;X=X.J;var V=kos(X,c);X=X.G;if(bSU){var G=X,n;(n=fd)||(n=fd=new TextDecoder("utf-8",{fatal:!0}));c=V+c;G=V===0&&c===G.length?G:G.subarray(V,c);try{var L=n.decode(G)}catch(Y){if(pd===void 0){try{n.decode(new Uint8Array([128]))}catch(H){}try{n.decode(new Uint8Array([97])),pd=!0}catch(H){pd=!1}}!pd&&(fd=void 0);throw Y;}}else{L=V;c=L+c;V=[];for(var d=null,h,A;L=c?rM():(A=X[L++],h<194||(A&192)!==128?(L--,rM()):V.push((h&31)<<6|A&63)): +h<240?L>=c-1?rM():(A=X[L++],(A&192)!==128||h===224&&A<160||h===237&&A>=160||((n=X[L++])&192)!==128?(L--,rM()):V.push((h&15)<<12|(A&63)<<6|n&63)):h<=244?L>=c-2?rM():(A=X[L++],(A&192)!==128||(h<<28)+(A-144)>>30!==0||((n=X[L++])&192)!==128||((G=X[L++])&192)!==128?(L--,rM()):(h=(h&7)<<18|(A&63)<<12|(n&63)<<6|G&63,h-=65536,V.push((h>>10&1023)+55296,(h&1023)+56320))):rM(),V.length>=8192&&(d=MDl(d,V),V.length=0);L=MDl(d,V)}return L}; +tgl=function(X){var c=eK(X.J)>>>0;return eGO(X.J,c)}; +NJ=function(X,c,V){this.RZ=gy(X,c,V)}; +OSD=function(X,c){if(c==null||c=="")return new X;c=JSON.parse(c);if(!Array.isArray(c))throw Error("dnarr");OL(c,32);return new X(c)}; +UW=function(X,c){this.G=X>>>0;this.J=c>>>0}; +Mg2=function(X){if(!X)return lR8||(lR8=new UW(0,0));if(!/^\d+$/.test(X))return null;XO(X);return new UW(zo,BY)}; +TZ=function(X,c){this.G=X>>>0;this.J=c>>>0}; +fR1=function(X){if(!X)return g5l||(g5l=new TZ(0,0));if(!/^-?\d+$/.test(X))return null;XO(X);return new TZ(zo,BY)}; +u1=function(){this.J=[]}; +PN=function(X,c,V){for(;V>0||c>127;)X.J.push(c&127|128),c=(c>>>7|V<<25)>>>0,V>>>=7;X.J.push(c)}; +zZ=function(X,c){for(;c>127;)X.J.push(c&127|128),c>>>=7;X.J.push(c)}; +pYw=function(X,c){if(c>=0)zZ(X,c);else{for(var V=0;V<9;V++)X.J.push(c&127|128),c>>=7;X.J.push(1)}}; +BN=function(X,c){X.J.push(c>>>0&255);X.J.push(c>>>8&255);X.J.push(c>>>16&255);X.J.push(c>>>24&255)}; +IRS=function(){this.U=[];this.G=0;this.J=new u1}; +Kd=function(X,c){c.length!==0&&(X.U.push(c),X.G+=c.length)}; +NQs=function(X,c){sW(X,c,2);c=X.J.end();Kd(X,c);c.push(X.G);return c}; +Uxl=function(X,c){var V=c.pop();for(V=X.G+X.J.length()-V;V>127;)c.push(V&127|128),V>>>=7,X.G++;c.push(V);X.G++}; +sW=function(X,c,V){zZ(X.J,c*8+V)}; +TQ2=function(X,c,V){if(V!=null){switch(typeof V){case "string":Mg2(V)}sW(X,c,1);switch(typeof V){case "number":X=X.J;KS(V);BN(X,zo);BN(X,BY);break;case "bigint":V=BigInt.asUintN(64,V);V=new UW(Number(V&BigInt(4294967295)),Number(V>>BigInt(32)));X=X.J;c=V.J;BN(X,V.G);BN(X,c);break;default:V=Mg2(V),X=X.J,c=V.J,BN(X,V.G),BN(X,c)}}}; +Cd=function(X,c,V){sW(X,c,2);zZ(X.J,V.length);Kd(X,X.J.end());Kd(X,V)}; +Dg=function(){function X(){throw Error();} +Object.setPrototypeOf(X,X.prototype);return X}; +i1=function(X,c,V){this.Oe=X;this.GH=c;X=VA(SK);this.J=!!X&&V===X||!1}; +qJ=function(X,c){var V=V===void 0?SK:V;return new i1(X,c,V)}; +Pu8=function(X,c,V,G,n){c=uBs(c,G);c!=null&&(V=NQs(X,V),n(c,X),Uxl(X,V))}; +Vc=function(X,c,V,G){var n=G[X];if(n)return n;n={};n.oB=G;n.Tw=HS8(G[0]);var L=G[1],d=1;L&&L.constructor===Object&&(n.extensions=L,L=G[++d],typeof L==="function"&&(n.rH=!0,Xt!=null||(Xt=L),cH!=null||(cH=G[d+1]),L=G[d+=2]));for(var h={};L&&Array.isArray(L)&&L.length&&typeof L[0]==="number"&&L[0]>0;){for(var A=0;A>BigInt(32)));PN(X.J,V.G,V.J);break;default:V=fR1(c),PN(X.J,V.G,V.J)}}}; +Ft=function(X,c,V){c=hV(c);c!=null&&c!=null&&(sW(X,V,0),pYw(X.J,c))}; +VX1=function(X,c,V){c=c==null||typeof c==="boolean"?c:typeof c==="number"?!!c:void 0;c!=null&&(sW(X,V,0),X.J.J.push(c?1:0))}; +GBt=function(X,c,V){c=QB(c);c!=null&&Cd(X,V,IS1(c))}; +nml=function(X,c,V,G,n){c=uBs(c,G);c!=null&&(V=NQs(X,V),n(c,X),Uxl(X,V))}; +duO=function(){this.J=Lww;this.isRepeated=0;this.G=hi;this.defaultValue=void 0}; +yVj=function(X){return function(){var c=new IRS;qLD(this.RZ,c,Vc(Av,hv,Y8,X));Kd(c,c.J.end());for(var V=new Uint8Array(c.G),G=c.U,n=G.length,L=0,d=0;d>>31)&4294967295;a=n[0];var F=n[1],Z=n[2],v=n[3],e=n[4];for(w=0;w<80;w++){if(w<40)if(w<20){var m=v^F&(Z^v);var t=1518500249}else m=F^Z^v,t=1859775393;else w<60?(m=F&Z|v&(F|Z),t=2400959708):(m=F^Z^v,t=3395469782);m=((a<<5|a>>>27)&4294967295)+m+e+t+W[w]&4294967295;e=v;v=Z;Z=(F<<30|F>>>2)&4294967295;F=a;a=m}n[0]=n[0]+a&4294967295;n[1]=n[1]+F&4294967295;n[2]= +n[2]+Z&4294967295;n[3]=n[3]+v&4294967295;n[4]=n[4]+e&4294967295} +function V(a,W){if(typeof a==="string"){a=unescape(encodeURIComponent(a));for(var w=[],F=0,Z=a.length;F=56;w--)L[w]=W&255,W>>>=8;c(L);for(w=W=0;w<5;w++)for(var F=24;F>=0;F-=8)a[W++]=n[w]>>F&255;return a} +for(var n=[],L=[],d=[],h=[128],A=1;A<64;++A)h[A]=0;var Y,H;X();return{reset:X,update:V,digest:G,gY:function(){for(var a=G(),W="",w=0;w4);n++)c[D1(X[n])]||(V+="\nInner error "+G++ +": ",X[n].stack&&X[n].stack.indexOf(X[n].toString())==0||(V+=typeof X[n]==="string"?X[n]:X[n].message+"\n"),V+=s9(X[n],c));n")!=-1&&(X=X.replace(OYl,">")),X.indexOf('"')!=-1&&(X=X.replace(l7s,""")),X.indexOf("'")!=-1&&(X=X.replace(MXU,"'")),X.indexOf("\x00")!=-1&&(X=X.replace(gm1,"�")));return X}; +g.c1=function(X){return X==null?"":String(X)}; +Vv=function(X){for(var c=0,V=0;V>>0;return c}; +GV=function(X){var c=Number(X);return c==0&&g.kU(X)?NaN:c}; +f7O=function(X){return String(X).replace(/\-([a-z])/g,function(c,V){return V.toUpperCase()})}; +p9O=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; +I71=function(X){return X.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(c,V,G){return V+G.toUpperCase()})}; +NyS=function(X){var c=1;X=X.split(":");for(var V=[];c>0&&X.length;)V.push(X.shift()),c--;X.length&&V.push(X.join(":"));return V}; +n0=function(X){this.J=X||{cookie:""}}; +L0=function(X){X=(X.J.cookie||"").split(";");for(var c=[],V=[],G,n,L=0;L/g,">").replace(/"/g,""").replace(/'/g,"'");return Ic(X)}; +Cyw=function(X){var c=N5("");return Ic(X.map(function(V){return No(N5(V))}).join(No(c).toString()))}; +XNs=function(X){var c;if(!Dul.test("div"))throw Error("");if(S51.indexOf("DIV")!==-1)throw Error("");var V="":(X=Cyw(c.map(function(G){return G instanceof p7?G:N5(String(G))})),V+=">"+X.toString()+""); +return Ic(V)}; +iYw=function(X){for(var c="",V=Object.keys(X),G=0;G2&&hsD(n,d,G,2);return d}; +hsD=function(X,c,V,G){function n(h){h&&c.appendChild(typeof h==="string"?X.createTextNode(h):h)} +for(;G0)n(L);else{a:{if(L&&typeof L.length=="number"){if(g.Cj(L)){var d=typeof L.item=="function"||typeof L.item=="string";break a}if(typeof L==="function"){d=typeof L.item=="function";break a}}d=!1}g.aR(d?g.Vk(L):L,n)}}}; +g.Vj=function(X){return XV(document,X)}; +XV=function(X,c){c=String(c);X.contentType==="application/xhtml+xml"&&(c=c.toLowerCase());return X.createElement(c)}; +g.Gv=function(X){return document.createTextNode(String(X))}; +g.n_=function(X,c){X.appendChild(c)}; +g.L_=function(X){for(var c;c=X.firstChild;)X.removeChild(c)}; +dW=function(X,c,V){X.insertBefore(c,X.childNodes[V]||null)}; +g.yj=function(X){return X&&X.parentNode?X.parentNode.removeChild(X):null}; +g.h5=function(X,c){if(!X||!c)return!1;if(X.contains&&c.nodeType==1)return X==c||X.contains(c);if(typeof X.compareDocumentPosition!="undefined")return X==c||!!(X.compareDocumentPosition(c)&16);for(;c&&X!=c;)c=c.parentNode;return c==X}; +TV=function(X){return X.nodeType==9?X:X.ownerDocument||X.document}; +g.A5=function(X,c){if("textContent"in X)X.textContent=c;else if(X.nodeType==3)X.data=String(c);else if(X.firstChild&&X.firstChild.nodeType==3){for(;X.lastChild!=X.firstChild;)X.removeChild(X.lastChild);X.firstChild.data=String(c)}else g.L_(X),X.appendChild(TV(X).createTextNode(String(c)))}; +YW8=function(X){return X.tagName=="A"&&X.hasAttribute("href")||X.tagName=="INPUT"||X.tagName=="TEXTAREA"||X.tagName=="SELECT"||X.tagName=="BUTTON"?!X.disabled&&(!X.hasAttribute("tabindex")||Ais(X)):X.hasAttribute("tabindex")&&Ais(X)}; +Ais=function(X){X=X.tabIndex;return typeof X==="number"&&X>=0&&X<32768}; +j6=function(X,c,V){if(!c&&!V)return null;var G=c?String(c).toUpperCase():null;return YE(X,function(n){return(!G||n.nodeName==G)&&(!V||typeof n.className==="string"&&g.SV(n.className.split(/\s+/),V))},!0)}; +YE=function(X,c,V){X&&!V&&(X=X.parentNode);for(V=0;X;){if(c(X))return X;X=X.parentNode;V++}return null}; +Uz=function(X){this.J=X||g.UD.document||document}; +HW=function(X){this.RZ=gy(X)}; +aN=function(X){this.RZ=gy(X)}; +$E=function(X){this.RZ=gy(X)}; +jF2=function(X,c){jK(X,aN,1,c)}; +WW=function(X){this.RZ=gy(X)}; +ag1=function(X,c){c=c===void 0?HdO:c;if(!wW){var V;X=(V=X.navigator)==null?void 0:V.userAgentData;if(!X||typeof X.getHighEntropyValues!=="function"||X.brands&&typeof X.brands.map!=="function")return Promise.reject(Error("UACH unavailable"));V=(X.brands||[]).map(function(n){var L=new aN;L=EW(L,1,n.brand);return EW(L,2,n.version)}); +jF2(TB(FV,2,nY(X.mobile)),V);wW=X.getHighEntropyValues(c)}var G=new Set(c);return wW.then(function(n){var L=FV.clone();G.has("platform")&&EW(L,3,n.platform);G.has("platformVersion")&&EW(L,4,n.platformVersion);G.has("architecture")&&EW(L,5,n.architecture);G.has("model")&&EW(L,6,n.model);G.has("uaFullVersion")&&EW(L,7,n.uaFullVersion);return L}).catch(function(){return FV.clone()})}; +E_=function(X){this.RZ=gy(X)}; +$Js=function(X){this.RZ=gy(X)}; +rW=function(X){this.RZ=gy(X,4)}; +Zc=function(X){this.RZ=gy(X,36)}; +xE=function(X){this.RZ=gy(X,19)}; +vW=function(X,c){this.Y2=c=c===void 0?!1:c;this.uach=this.locale=null;this.G=0;this.isFinal=!1;this.J=new xE;Number.isInteger(X)&&this.J.EK(X);c||(this.locale=document.documentElement.getAttribute("lang"));WmU(this,new E_)}; +WmU=function(X,c){Yd(X.J,E_,1,c);wA(c,1)||Qw(c,1,1);X.Y2||(c=kE(X),WN(c,5)||EW(c,5,X.locale));X.uach&&(c=kE(X),hi(c,$E,9)||Yd(c,$E,9,X.uach))}; +wN1=function(X,c){X.G=c}; +FmU=function(X){var c=c===void 0?HdO:c;var V=X.Y2?void 0:q5();V?ag1(V,c).then(function(G){X.uach=G;G=kE(X);Yd(G,$E,9,X.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)}; +kE=function(X){X=hi(X.J,E_,1);var c=hi(X,WW,11);c||(c=new WW,Yd(X,WW,11,c));return c}; +Eds=function(X){return g.iU?"webkit"+X:X.toLowerCase()}; +g.oN=function(X,c,V,G){this.X=X;this.Z=c;this.J=this.U=X;this.B=V||0;this.D=G||2}; +g.e6=function(X){X.J=Math.min(X.Z,X.J*X.D);X.U=Math.min(X.Z,X.J+(X.B?Math.round(X.B*(Math.random()-.5)*2*X.J):0));X.G++}; +rit=function(X){this.RZ=gy(X,8)}; +Lww=function(X){this.RZ=gy(X)}; +RN=function(X){g.I.call(this);var c=this;this.componentId="";this.J=[];this.QK="";this.pageId=null;this.YO=this.NW=-1;this.D=this.experimentIds=null;this.B=this.X=0;this.C=null;this.A7=this.kO=0;this.LS=1;this.timeoutMillis=0;this.Pl=!1;this.logSource=X.logSource;this.aM=X.aM||function(){}; +this.U=new vW(X.logSource,X.Y2);this.network=X.network||null;this.Td=X.Td||null;this.T=X.PFh||null;this.sessionIndex=X.sessionIndex||null;this.ZC=X.ZC||!1;this.logger=null;this.withCredentials=!X.S2;this.Y2=X.Y2||!1;this.G_=!this.Y2&&!!q5()&&!!q5().navigator&&q5().navigator.sendBeacon!==void 0;this.Hl=typeof URLSearchParams!=="undefined"&&!!(new URL(J5())).searchParams&&!!(new URL(J5())).searchParams.set;var V=Qw(new E_,1,1);WmU(this.U,V);this.Z=new g.oN(1E4,3E5,.1);X=QFD(this,X.sP);this.G=new hN(this.Z.getValue(), +X);this.wy=new hN(6E5,X);this.ZC||this.wy.start();this.Y2||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){m6(c);var G;(G=c.C)==null||G.flush()}}),document.addEventListener("pagehide",function(){m6(c); +var G;(G=c.C)==null||G.flush()}))}; +QFD=function(X,c){return X.Hl?c?function(){c().then(function(){X.flush()})}:function(){X.flush()}:function(){}}; +Zds=function(X){X.T||(X.T=J5());try{return(new URL(X.T)).toString()}catch(c){return(new URL(X.T,q5().location.origin)).toString()}}; +bp=function(X,c,V){X.C&&X.C.PD(c,V)}; +xJt=function(X,c,V){V=V===void 0?X.aM():V;var G=G===void 0?X.withCredentials:G;var n={},L=new URL(Zds(X));V&&(n.Authorization=V);X.sessionIndex&&(n["X-Goog-AuthUser"]=X.sessionIndex,L.searchParams.set("authuser",X.sessionIndex));X.pageId&&(Object.defineProperty(n,"X-Goog-PageId",{value:X.pageId}),L.searchParams.set("pageId",X.pageId));return{url:L.toString(),body:c,q7:1,requestHeaders:n,requestType:"POST",withCredentials:G,timeoutMillis:X.timeoutMillis}}; +m6=function(X){X.U.isFinal=!0;X.flush();X.U.isFinal=!1}; +kZl=function(X){vdt(X,function(c,V){c=new URL(c);c.searchParams.set("format","json");var G=!1;try{G=q5().navigator.sendBeacon(c.toString(),V.ys())}catch(n){}G||(X.G_=!1);return G})}; +vdt=function(X,c){if(X.J.length!==0){var V=new URL(Zds(X));V.searchParams.delete("format");var G=X.aM();G&&V.searchParams.set("auth",G);V.searchParams.set("authuser",X.sessionIndex||"0");for(G=0;G<10&&X.J.length;++G){var n=X.J.slice(0,32),L=X.U.build(n,X.X,X.B,X.Td,X.kO,X.A7);if(!c(V.toString(),L)){++X.B;break}X.X=0;X.B=0;X.kO=0;X.A7=0;X.J=X.J.slice(n.length)}X.G.enabled&&X.G.stop()}}; +J5=function(){return"https://play.google.com/log?format=json&hasfast=true"}; +t5=function(){this.ST=typeof AbortController!=="undefined"}; +O_=function(X,c){g.I.call(this);this.logSource=X;this.sessionIndex=c;this.yE="https://play.google.com/log?format=json&hasfast=true";this.G=null;this.X=!1;this.network=null;this.componentId="";this.J=this.Td=null;this.U=!1;this.pageId=null}; +odw=function(X,c){X.G=c;return X}; +esl=function(X,c){X.network=c;return X}; +Jiw=function(X,c){X.J=c}; +mJt=function(X){X.U=!0;return X}; +lp=function(X,c,V,G,n,L,d){X=X===void 0?-1:X;c=c===void 0?"":c;V=V===void 0?"":V;G=G===void 0?!1:G;n=n===void 0?"":n;g.I.call(this);this.logSource=X;this.componentId=c;L?c=L:(X=new O_(X,"0"),X.componentId=c,g.N(this,X),V!==""&&(X.yE=V),G&&(X.X=!0),n&&odw(X,n),d&&esl(X,d),c=X.build());this.J=c}; +RsO=function(X){this.J=X}; +Mj=function(X,c,V){this.G=X;this.X=c;this.fields=V||[];this.J=new Map}; +HYO=function(X){return X.fields.map(function(c){return c.fieldType})}; +jAU=function(X){return X.fields.map(function(c){return c.fieldName})}; +gW=function(X,c){Mj.call(this,X,3,c)}; +f_=function(X,c){Mj.call(this,X,2,c)}; +g.p_=function(X,c){this.type=X;this.currentTarget=this.target=c;this.defaultPrevented=this.G=!1}; +IN=function(X,c){g.p_.call(this,X?X.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.J=null;X&&this.init(X,c)}; +Nj=function(X){return!(!X||!X[bdl])}; +OdS=function(X,c,V,G,n){this.listener=X;this.proxy=null;this.src=c;this.type=V;this.capture=!!G;this.kc=n;this.key=++tK2;this.removed=this.p7=!1}; +U_=function(X){X.removed=!0;X.listener=null;X.proxy=null;X.src=null;X.kc=null}; +Tv=function(X){this.src=X;this.listeners={};this.J=0}; +g.up=function(X,c){var V=c.type;V in X.listeners&&g.qk(X.listeners[V],c)&&(U_(c),X.listeners[V].length==0&&(delete X.listeners[V],X.J--))}; +K_=function(X,c,V,G){for(var n=0;n1)));d=d.next)n||(L=d);n&&(V.J==0&&G==1?GsD(V,c):(L?(G=L,G.next==V.X&&(V.X=G),G.next=G.next.next):n81(V),LCD(V,n,3,c)))}X.U=null}else Ee(X,3,c)}; +vU=function(X,c){X.G||X.J!=2&&X.J!=3||dot(X);X.X?X.X.next=c:X.G=c;X.X=c}; +yvU=function(X,c,V,G){var n=Qo(null,null,null);n.J=new g.rL(function(L,d){n.U=c?function(h){try{var A=c.call(G,h);L(A)}catch(Y){d(Y)}}:L; +n.G=V?function(h){try{var A=V.call(G,h);A===void 0&&h instanceof o3?d(h):L(A)}catch(Y){d(Y)}}:d}); +n.J.U=X;vU(X,n);return n.J}; +Ee=function(X,c,V){X.J==0&&(X===V&&(c=3,V=new TypeError("Promise cannot resolve to itself")),X.J=1,SWl(V,X.ACv,X.ht7,X)||(X.D=V,X.J=c,X.U=null,dot(X),c!=3||V instanceof o3||hOj(X,V)))}; +SWl=function(X,c,V,G){if(X instanceof g.rL)return Vvj(X,c,V,G),!0;if(X)try{var n=!!X.$goog_Thenable}catch(d){n=!1}else n=!1;if(n)return X.then(c,V,G),!0;if(g.Cj(X))try{var L=X.then;if(typeof L==="function")return Avl(X,L,c,V,G),!0}catch(d){return V.call(G,d),!0}return!1}; +Avl=function(X,c,V,G,n){function L(A){h||(h=!0,G.call(n,A))} +function d(A){h||(h=!0,V.call(n,A))} +var h=!1;try{c.call(X,d,L)}catch(A){L(A)}}; +dot=function(X){X.B||(X.B=!0,g.a3(X.mP,X))}; +n81=function(X){var c=null;X.G&&(c=X.G,X.G=c.next,c.next=null);X.G||(X.X=null);return c}; +LCD=function(X,c,V,G){if(V==3&&c.G&&!c.X)for(;X&&X.Z;X=X.U)X.Z=!1;if(c.J)c.J.U=null,Y9U(c,V,G);else try{c.X?c.U.call(c.context):Y9U(c,V,G)}catch(n){jcs.call(null,n)}UJL(DJD,c)}; +Y9U=function(X,c,V){c==2?X.U.call(X.context,V):X.G&&X.G.call(X.context,V)}; +hOj=function(X,c){X.Z=!0;g.a3(function(){X.Z&&jcs.call(null,c)})}; +o3=function(X){EH.call(this,X)}; +XHD=function(X,c,V){this.promise=X;this.resolve=c;this.reject=V}; +g.em=function(X,c){g.Gd.call(this);this.o$=X||1;this.UX=c||g.UD;this.fR=(0,g.qL)(this.jvR,this);this.jG=g.c7()}; +g.Ju=function(X,c,V){if(typeof X==="function")V&&(X=(0,g.qL)(X,V));else if(X&&typeof X.handleEvent=="function")X=(0,g.qL)(X.handleEvent,X);else throw Error("Invalid listener argument");return Number(c)>2147483647?-1:g.UD.setTimeout(X,c||0)}; +m2=function(X,c){var V=null;return(new g.rL(function(G,n){V=g.Ju(function(){G(c)},X); +V==-1&&n(Error("Failed to schedule timer."))})).Vr(function(G){g.UD.clearTimeout(V); +throw G;})}; +g.R3=function(X){g.I.call(this);this.D=X;this.X=0;this.U=100;this.Z=!1;this.G=new Map;this.B=new Set;this.flushInterval=3E4;this.J=new g.em(this.flushInterval);this.J.listen("tick",this.V4,!1,this);g.N(this,this.J)}; +H7l=function(X){X.J.enabled||X.J.start();X.X++;X.X>=X.U&&X.V4()}; +a1D=function(X,c){return X.B.has(c)?void 0:X.G.get(c)}; +$oj=function(X){for(var c=0;c=0){var L=X[V].substring(0,G);n=X[V].substring(G+1)}else L=X[V];c(L,n?qo(n):"")}}}; +PU=function(X,c){if(!c)return X;var V=X.indexOf("#");V<0&&(V=X.length);var G=X.indexOf("?");if(G<0||G>V){G=V;var n=""}else n=X.substring(G+1,V);X=[X.slice(0,G),n,X.slice(V)];V=X[1];X[1]=c?V?V+"&"+c:c:V;return X[0]+(X[1]?"?"+X[1]:"")+X[2]}; +zd=function(X,c,V){if(Array.isArray(c))for(var G=0;G=0&&cV)n=V;G+=c.length+1;return qo(X.slice(G,n!==-1?n:0))}; +De=function(X,c){for(var V=X.search(erS),G=0,n,L=[];(n=obO(X,G,c,V))>=0;)L.push(X.substring(G,n)),G=Math.min(X.indexOf("&",n)+1||V,V);L.push(X.slice(G));return L.join("").replace(JNO,"$1")}; +m5l=function(X,c,V){return se(De(X,c),c,V)}; +g.Sm=function(X){g.Gd.call(this);this.headers=new Map;this.Pl=X||null;this.U=!1;this.J=null;this.T="";this.G=0;this.X="";this.Z=this.kO=this.C=this.A7=!1;this.G_=0;this.B=null;this.NW="";this.D=!1}; +b0O=function(X,c,V,G,n,L,d){var h=new g.Sm;Rrs.push(h);c&&h.listen("complete",c);h.OC("ready",h.kJ);L&&(h.G_=Math.max(0,L));d&&(h.D=d);h.send(X,V,G,n)}; +O0s=function(X,c){X.U=!1;X.J&&(X.Z=!0,X.J.abort(),X.Z=!1);X.X=c;X.G=5;t9l(X);iP(X)}; +t9l=function(X){X.A7||(X.A7=!0,X.dispatchEvent("complete"),X.dispatchEvent("error"))}; +luS=function(X){if(X.U&&typeof qG!="undefined")if(X.C&&g.Xb(X)==4)setTimeout(X.k6.bind(X),0);else if(X.dispatchEvent("readystatechange"),X.isComplete()){X.getStatus();X.U=!1;try{if(ca(X))X.dispatchEvent("complete"),X.dispatchEvent("success");else{X.G=6;try{var c=g.Xb(X)>2?X.J.statusText:""}catch(V){c=""}X.X=c+" ["+X.getStatus()+"]";t9l(X)}}finally{iP(X)}}}; +iP=function(X,c){if(X.J){X.B&&(clearTimeout(X.B),X.B=null);var V=X.J;X.J=null;c||X.dispatchEvent("ready");try{V.onreadystatechange=null}catch(G){}}}; +ca=function(X){var c=X.getStatus();a:switch(c){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var V=!0;break a;default:V=!1}if(!V){if(c=c===0)X=g.NG(1,String(X.T)),!X&&g.UD.self&&g.UD.self.location&&(X=g.UD.self.location.protocol.slice(0,-1)),c=!M9t.test(X?X.toLowerCase():"");V=c}return V}; +g.Xb=function(X){return X.J?X.J.readyState:0}; +g.VJ=function(X){try{return X.J?X.J.responseText:""}catch(c){return""}}; +g.Gr=function(X){try{if(!X.J)return null;if("response"in X.J)return X.J.response;switch(X.NW){case "":case "text":return X.J.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in X.J)return X.J.mozResponseArrayBuffer}return null}catch(c){return null}}; +g.gbD=function(X){var c={};X=(X.J&&g.Xb(X)>=2?X.J.getAllResponseHeaders()||"":"").split("\r\n");for(var V=0;V>1,c),t$(X,X.length>>1)]}; +ac8=function(X){var c=g.r(H_D(X,Oi));X=c.next().value;c=c.next().value;return X.toString(16)+c.toString(16)}; +$jw=function(X,c){var V=H_D(c);X=new Uint32Array(X.buffer);c=X[0];var G=g.r(V);V=G.next().value;G=G.next().value;for(var n=1;n>>8|d<<24,d+=L|0,d^=h+38293,L=L<<3|L>>>29,L^=d,A=A>>>8|A<<24,A+=h|0,A^=Y+38293,h=h<<3|h>>>29,h^=A;L=[L,d];X[n]^=L[0];n+1=V?(globalThis.sessionStorage.removeItem(X),["e"]):["a",new Uint8Array(G.buffer,c+4)]}; +lw=function(X,c,V){V=V===void 0?[]:V;this.maxItems=X;this.J=c===void 0?0:c;this.G=V}; +F6l=function(X){var c=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!c)return new lw(X);var V=c.split(",");if(V.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new lw(X);c=V.slice(1);c.length===1&&c[0]===""&&(c=[]);V=Number(V[0]);return isNaN(V)||V<0||V>c.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new lw(X)):new lw(X,V,c)}; +EEw=function(X,c){this.logger=c;try{var V=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(G){V=!1}V&&(this.index=F6l(X))}; +r5O=function(X,c,V,G,n){var L=X.index?A$(X.logger,function(){return W6j(X.index,ac8(c),V,G,n)},"W"):"u"; +X.logger.MZ(L)}; +QN8=function(X,c,V){var G=g.r(X.index?A$(X.logger,function(){return wWl(ac8(c),V)},"R"):["u"]),n=G.next().value; +G=G.next().value;X.logger.g3(n);return G}; +vEl=function(X){function c(){V-=G;V-=n;V^=n>>>13;G-=n;G-=V;G^=V<<8;n-=V;n-=G;n^=G>>>13;V-=G;V-=n;V^=n>>>12;G-=n;G-=V;G^=V<<16;n-=V;n-=G;n^=G>>>5;V-=G;V-=n;V^=n>>>3;G-=n;G-=V;G^=V<<10;n-=V;n-=G;n^=G>>>15} +X=Z_8(X);for(var V=2654435769,G=2654435769,n=314159265,L=X.length,d=L,h=0;d>=12;d-=12,h+=12)V+=M4(X,h),G+=M4(X,h+4),n+=M4(X,h+8),c();n+=L;switch(d){case 11:n+=X[h+10]<<24;case 10:n+=X[h+9]<<16;case 9:n+=X[h+8]<<8;case 8:G+=X[h+7]<<24;case 7:G+=X[h+6]<<16;case 6:G+=X[h+5]<<8;case 5:G+=X[h+4];case 4:V+=X[h+3]<<24;case 3:V+=X[h+2]<<16;case 2:V+=X[h+1]<<8;case 1:V+=X[h+0]}c();return xjl.toString(n)}; +Z_8=function(X){for(var c=[],V=0;V>7,X.error.code]);G.set(V,4);return G}; +zr=function(X,c,V){gw.call(this,X);this.X=c;this.clientState=V;this.J="S";this.U="q"}; +Pa=function(X){return globalThis.TextEncoder?(new TextEncoder).encode(X):g.Zi(X)}; +eTl=function(X,c,V){return X instanceof J$?qzl(X,V,c,1):X.Wp(V)}; +Ba=function(X,c,V){g.I.call(this);var G=this;this.logger=X;this.onError=c;this.state=V;this.D=0;this.G=void 0;this.addOnDisposeCallback(function(){G.J&&(G.J.dispose(),G.J=void 0)})}; +J5t=function(X,c){c=c instanceof nt?c:new nt(5,"TVD:error",c);return X.reportError(c)}; +Ks=function(X,c,V){try{if(X.vl())throw new nt(21,"BNT:disposed");if(!X.J&&X.G)throw X.G;var G,n;return(n=(G=mjj(X,c,V))!=null?G:RTl(X,c,V))!=null?n:b_8(X,c,V)}catch(L){if(!c.s9)throw J5t(X,L);return t68(X,V,L)}}; +mjj=function(X,c,V){var G;return(G=X.J)==null?void 0:Ij(G,function(){return si(X,c)},V,function(n){var L; +if(X.J instanceof N4&&((L=c.Gx)==null?0:L.RR))try{var d;(d=X.cache)==null||r5O(d,si(X,c),n,c.Gx.Mj,X.T-120)}catch(h){X.reportError(new nt(24,"ELX:write",h))}})}; +RTl=function(X,c,V){var G;if((G=c.Gx)!=null&&G.y8)try{var n,L=(n=X.cache)==null?void 0:QN8(n,si(X,c),c.Gx.Mj);return L?V?A$(X.logger,function(){return g.rQ(L,2)},"a"):L:void 0}catch(d){X.reportError(new nt(23,"RXO:read",d))}}; +b_8=function(X,c,V){var G={stack:[],error:void 0,hasError:!1};try{if(!c.nV)throw new nt(29,"SDF:notready");return Ij(Q8O(G,new zr(X.logger,X.D,X.state)),function(){return si(X,c)},V)}catch(n){G.error=n,G.hasError=!0}finally{Zjl(G)}}; +t68=function(X,c,V){var G={stack:[],error:void 0,hasError:!1};try{var n=J5t(X,V);return Ij(Q8O(G,new uw(X.logger,n)),function(){return[]},c)}catch(L){G.error=L,G.hasError=!0}finally{Zjl(G)}}; +si=function(X,c){return c.n0?c.n0:c.VH?A$(X.logger,function(){return c.n0=Pa(c.VH)},"c"):[]}; +Dp=function(X){var c;Ba.call(this,X.JO.hp(),(c=X.onError)!=null?c:function(){},0); +var V=this;this.Z=0;this.X=new g.rw;this.U=!1;this.JO=X.JO;this.D6=X.D6;this.Xd=Object.assign({},O_s,X.Xd||{});X.ox&&(this.logger instanceof $p||this.logger instanceof jS)&&this.logger.U$(X.ox);this.Ny=X.Ny||!1;if(lcs(X)){var G=this.JO;this.B=function(){return nED(G).catch(function(d){d=V.reportError(new nt(V.U?20:32,"TRG:Disposed",d));V.G=d;var h;(h=V.J)==null||h.dispose();V.J=void 0;V.X.reject(d)})}; +L62(G,function(){return void Cs(V)}); +G.T===2&&Cs(this)}else this.B=X.kXl,Cs(this);var n=this.logger.share();n.qS("o");var L=new yJ(n,"o");this.X.promise.then(function(){L.done();n.qM();n.dispose()},function(){return void n.dispose()}); +this.addOnDisposeCallback(function(){V.U||(V.G?V.logger.qM():(V.G=V.reportError(new nt(32,"TNP:Disposed")),V.logger.qM(),V.X.reject(V.G)))}); +g.N(this,this.logger)}; +M6D=function(X,c){if(!(c instanceof nt))if(c instanceof Oe){var V=Error(c.toString());V.stack=c.stack;c=new nt(11,"EBH:Error",V)}else c=new nt(12,"BSO:Unknown",c);return X.reportError(c)}; +Cs=function(X){var c,V,G,n,L,d,h,A,Y,H,a,W,w,F,Z;return g.O(function(v){switch(v.J){case 1:c=void 0;X.Z++;V=new g.rw;X.JO instanceof m_&&X.JO.X.push(V.promise);if(!X.Ny){v.Wl(2);break}G=new g.rw;setTimeout(function(){return void G.resolve()}); +return g.b(v,G.promise,2);case 2:return n=X.logger.share(),g.x1(v,4,5),X.state=5,L={},d=[],g.b(v,bw(X.JO.snapshot({VH:L,UU:d}),X.Xd.wbS,function(){return Promise.reject(new nt(15,"MDA:Timeout"))}),7); +case 7:h=v.G;if(X.vl())throw new nt(X.U?20:32,"MDA:Disposed");A=d[0];X.state=6;return g.b(v,bw(eTl(X.D6,n,h),X.Xd.Qa,function(){return Promise.reject(new nt(10,"BWB:Timeout"))}),8); +case 8:Y=v.G;if(X.vl())throw new nt(X.U?20:32,"BWB:Disposed");X.state=7;c=A$(n,function(){var m=gED(X,Y,V,A);m.G.promise.then(function(){return void X.B()}).catch(function(){}); +return m},"i"); +case 5:g.eD(v);n.dispose();g.mU(v,6);break;case 4:H=g.o8(v);(a=c)==null||a.dispose();if(!X.G){W=M6D(X,H);V.resolve();var e;if(e=X.JO instanceof m_&&X.Z<2)a:if(H instanceof nt)e=H.code!==32&&H.code!==20&&H.code!==10;else{if(H instanceof Oe)switch(H.code){case 2:case 13:case 14:case 4:break;default:e=!1;break a}e=!0}if(e)return w=(1+Math.random()*.25)*(X.U?6E4:1E3),F=setTimeout(function(){return void X.B()},w),X.addOnDisposeCallback(function(){return void clearTimeout(F)}),v.return(); +X.G=W}n.qY(X.U?13:14);X.X.reject(X.G);return v.return();case 6:X.state=8,X.Z=0,(Z=X.J)==null||Z.dispose(),X.J=c,X.U=!0,X.X.resolve(),g.ZS(v)}})}; +gED=function(X,c,V,G){var n=$d(c,2)*1E3;if(n<=0)throw new nt(31,"TTM:Invalid");if(WN(c,4))return new Tr(X.logger,WN(c,4),n);if(!$d(c,3))return new Ui(X.logger,JE(D7(c,1)),n);if(!G)throw new nt(4,"PMD:Undefined");G=G(JE(D7(c,1)));if(!(G instanceof Function))throw new nt(16,"APF:Failed");X.T=Math.floor((Date.now()+n)/1E3);X=new N4(X.logger,G,$d(c,3),n);X.addOnDisposeCallback(function(){return void V.resolve()}); +return X}; +SS=function(){var X=0,c;return function(V){c||(c=new Yp);var G=new zr(c,X,1),n=Ij(G,function(){return Pa(V)},!0); +G.dispose();X++;return n}}; +iw=function(X){this.RZ=gy(X)}; +fcj=function(X,c,V){this.uy=X;this.tS=c;this.metadata=V}; +q4=function(X,c){c=c===void 0?{}:c;this.L6R=X;this.metadata=c;this.status=null}; +X9=function(X,c,V,G,n){this.name=X;this.methodType="unary";this.requestType=c;this.responseType=V;this.J=G;this.G=n}; +c0=function(X){this.RZ=gy(X)}; +V4=function(X){this.RZ=gy(X)}; +Ga=function(X){this.RZ=gy(X)}; +nc=function(X,c){this.D=X.J1l;this.T=c;this.J=X.xhr;this.U=[];this.Z=[];this.B=[];this.X=[];this.G=[];this.D&&pW2(this)}; +TW1=function(X,c){var V=new Ics;g.C_(X.J,"complete",function(){if(ca(X.J)){var G=g.VJ(X.J);if(c&&X.J.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");G=atob(G)}try{var n=X.T(G)}catch(h){Lc(X,d6(new Oe(13,"Error when deserializing response data; error: "+h+(", response: "+G)),V));return}G=WCS(X.J.getStatus());y4(X,hW(X));G==0?NWl(X,n):Lc(X,d6(new Oe(G,"Xhr succeeded but the status code is not 200"),V))}else{G=g.VJ(X.J);n=hW(X);if(G){var L=UjD(X, +G);G=L.code;var d=L.details;L=L.metadata}else G=2,d="Rpc failed due to xhr error. uri: "+String(X.J.T)+", error code: "+X.J.G+", error: "+X.J.getLastError(),L=n;y4(X,n);Lc(X,d6(new Oe(G,d,L),V))}})}; +pW2=function(X){X.D.sZ("data",function(c){if("1"in c){var V=c["1"];try{var G=X.T(V)}catch(n){Lc(X,new Oe(13,"Error when deserializing response data; error: "+n+(", response: "+V)))}G&&NWl(X,G)}if("2"in c)for(c=UjD(X,c["2"]),V=0;V-1&&X.splice(c,1)}; +NWl=function(X,c){for(var V=0;V>4&15).toString(16)+(X&15).toString(16)}; +Q4=function(X,c){this.G=this.J=null;this.U=X||null;this.X=!!c}; +ks=function(X){X.J||(X.J=new Map,X.G=0,X.U&&uP(X.U,function(c,V){X.add(qo(c),V)}))}; +sNw=function(X,c){ks(X);c=on(X,c);return X.J.has(c)}; +g.Cp2=function(X,c,V){X.remove(c);V.length>0&&(X.U=null,X.J.set(on(X,c),g.Vk(V)),X.G=X.G+V.length)}; +on=function(X,c){c=String(c);X.X&&(c=c.toLowerCase());return c}; +zTl=function(X,c){c&&!X.X&&(ks(X),X.U=null,X.J.forEach(function(V,G){var n=G.toLowerCase();G!=n&&(this.remove(G),g.Cp2(this,n,V))},X)); +X.X=c}; +g.Dj1=function(X){var c="";g.Zu(X,function(V,G){c+=G;c+=":";c+=V;c+="\r\n"}); +return c}; +g.eG=function(X,c,V){if(g.tN(V))return X;V=g.Dj1(V);if(typeof X==="string")return se(X,g.i6(c),V);g.xs(X,c,V);return X}; +g.JW=function(X){g.I.call(this);this.G=X;this.J={}}; +S_w=function(X,c,V,G,n,L){if(Array.isArray(V))for(var d=0;d0&&(c[n]=G)},X); +return c}; +ocD=function(X){X=HF(X);var c=[];g.Zu(X,function(V,G){G in Object.prototype||typeof V!="undefined"&&c.push([G,":",V].join(""))}); +return c}; +JuO=function(X){Ak(X,"od",efs);Ak(X,"opac",at).J=!0;Ak(X,"sbeos",at).J=!0;Ak(X,"prf",at).J=!0;Ak(X,"mwt",at).J=!0;Ak(X,"iogeo",at)}; +mGw=function(){this.J=this.jK=null}; +$r=function(){}; +wT=function(){if(!WF())throw Error();}; +WF=function(){return!(!Fy||!Fy.performance)}; +EA=function(X){return X?X.passive&&Rf8()?X:X.capture||!1:!1}; +rT=function(X,c,V,G){return X.addEventListener?(X.addEventListener(c,V,EA(G)),!0):!1}; +Q9=function(X){return X.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[X.visibilityState||X.webkitVisibilityState||X.mozVisibilityState||""]||0}; +bBO=function(){}; +tm2=function(){return(tp||OH)&&lA?lA.mobile:!Zw()&&(gM("iPod")||gM("iPhone")||gM("Android")||gM("IEMobile"))}; +Zw=function(){return(tp||OH)&&lA?!lA.mobile&&(gM("iPad")||gM("Android")||gM("Silk")):gM("iPad")||gM("Android")&&!gM("Mobile")||gM("Silk")}; +xr=function(X){try{return!!X&&X.location.href!=null&&ypt(X,"foo")}catch(c){return!1}}; +vF=function(X,c){if(X)for(var V in X)Object.prototype.hasOwnProperty.call(X,V)&&c(X[V],V,X)}; +leU=function(){var X=[];vF(OB2,function(c){X.push(c)}); +return X}; +Mm8=function(X){var c,V;return(V=(c=/https?:\/\/[^\/]+/.exec(X))==null?void 0:c[0])!=null?V:""}; +pUl=function(){var X=gcj("IFRAME"),c={};g.aR(fet(),function(V){X.sandbox&&X.sandbox.supports&&X.sandbox.supports(V)&&(c[V]=!0)}); +return c}; +gcj=function(X,c){c=c===void 0?document:c;return c.createElement(String(X).toLowerCase())}; +IeD=function(X){for(var c=X;X&&X!=X.parent;)X=X.parent,xr(X)&&(c=X);return c}; +u$s=function(X){X=X||kr();for(var c=new NLj(g.UD.location.href,!1),V=null,G=X.length-1,n=G;n>=0;--n){var L=X[n];!V&&UG8.test(L.url)&&(V=L);if(L.url&&!L.Gi){c=L;break}}n=null;L=X.length&&X[G].url;c.depth!=0&&L&&(n=X[G]);return new TLD(c,n,V)}; +kr=function(){var X=g.UD,c=[],V=null;do{var G=X;if(xr(G)){var n=G.location.href;V=G.document&&G.document.referrer||null}else n=V,V=null;c.push(new NLj(n||""));try{X=G.parent}catch(L){X=null}}while(X&&G!=X);G=0;for(X=c.length-1;G<=X;++G)c[G].depth=X-G;G=g.UD;if(G.location&&G.location.ancestorOrigins&&G.location.ancestorOrigins.length==c.length-1)for(X=1;Xc&&(c=V.length);return 3997-c-X.U.length-1}; +mi=function(X,c){this.J=X;this.depth=c}; +K2D=function(){function X(h,A){return h==null?A:h} +var c=kr(),V=Math.max(c.length-1,0),G=u$s(c);c=G.J;var n=G.G,L=G.U,d=[];L&&d.push(new mi([L.url,L.Gi?2:0],X(L.depth,1)));n&&n!=L&&d.push(new mi([n.url,2],0));c.url&&c!=L&&d.push(new mi([c.url,0],X(c.depth,V)));G=g.Rt(d,function(h,A){return d.slice(0,d.length-A)}); +!c.url||(L||n)&&c!=L||(n=Mm8(c.url))&&G.push([new mi([n,1],X(c.depth,V))]);G.push([]);return g.Rt(G,function(h){return BLw(V,h)})}; +BLw=function(X,c){g.b0(c,function(n){return n.depth>=0}); +var V=tk(c,function(n,L){return Math.max(n,L.depth)},-1),G=LzL(V+2); +G[0]=X;g.aR(c,function(n){return G[n.depth+1]=n.J}); +return G}; +s3j=function(){var X=X===void 0?K2D():X;return X.map(function(c){return Jk(c)})}; +CPD=function(X){var c=!1;c=c===void 0?!1:c;Fy.google_image_requests||(Fy.google_image_requests=[]);var V=gcj("IMG",Fy.document);c&&(V.attributionSrc="");V.src=X;Fy.google_image_requests.push(V)}; +OA=function(X){var c="Bb";if(X.Bb&&X.hasOwnProperty(c))return X.Bb;var V=new X;X.Bb=V;X.hasOwnProperty(c);return V}; +l0=function(){this.G=new bBO;this.J=WF()?new wT:new $r}; +DGU=function(){Mv();var X=Fy.document;return!!(X&&X.body&&X.body.getBoundingClientRect&&typeof Fy.setInterval==="function"&&typeof Fy.clearInterval==="function"&&typeof Fy.setTimeout==="function"&&typeof Fy.clearTimeout==="function")}; +SeS=function(){Mv();return s3j()}; +iBU=function(){}; +Mv=function(){var X=OA(iBU);if(!X.J){if(!Fy)throw Error("Context has not been set and window is undefined.");X.J=OA(l0)}return X.J}; +gT=function(X){this.RZ=gy(X)}; +qeL=function(X){this.U=X;this.J=-1;this.G=this.X=0}; +fN=function(X,c){return function(){var V=g.OD.apply(0,arguments);if(X.J>-1)return c.apply(null,g.x(V));try{return X.J=X.U.J.now(),c.apply(null,g.x(V))}finally{X.X+=X.U.J.now()-X.J,X.J=-1,X.G+=1}}}; +XaU=function(X,c){this.G=X;this.U=c;this.J=new qeL(X)}; +c$j=function(){this.J={}}; +GrS=function(){var X=pN().flags,c=VSl;X=X.J[c.key];if(c.valueType==="proto"){try{var V=JSON.parse(X);if(Array.isArray(V))return V}catch(G){}return c.defaultValue}return typeof X===typeof c.defaultValue?X:c.defaultValue}; +y$l=function(){this.U=void 0;this.G=this.B=0;this.Z=-1;this.t1=new hk;Ak(this.t1,"mv",np1).J=!0;Ak(this.t1,"omid",at);Ak(this.t1,"epoh",at).J=!0;Ak(this.t1,"epph",at).J=!0;Ak(this.t1,"umt",at).J=!0;Ak(this.t1,"phel",at).J=!0;Ak(this.t1,"phell",at).J=!0;Ak(this.t1,"oseid",L_L).J=!0;var X=this.t1;X.J.sloi||(X.J.sloi=new dT);X.J.sloi.J=!0;Ak(this.t1,"mm",It);Ak(this.t1,"ovms",d4l).J=!0;Ak(this.t1,"xdi",at).J=!0;Ak(this.t1,"amp",at).J=!0;Ak(this.t1,"prf",at).J=!0;Ak(this.t1,"gtx",at).J=!0;Ak(this.t1, +"mvp_lv",at).J=!0;Ak(this.t1,"ssmol",at).J=!0;Ak(this.t1,"fmd",at).J=!0;Ak(this.t1,"gen204simple",at);this.J=new XaU(Mv(),this.t1);this.X=!1;this.flags=new c$j}; +pN=function(){return OA(y$l)}; +hls=function(X,c,V,G){if(Math.random()<(G||X.J))try{if(V instanceof ot)var n=V;else n=new ot,vF(V,function(d,h){var A=n,Y=A.X++;d=ey(h,d);A.J.push(Y);A.G[Y]=d}); +var L=n.Yc(X.G,"pagead2.googlesyndication.com","/pagead/gen_204?id="+c+"&");L&&(Mv(),CPD(L))}catch(d){}}; +A$L=function(X,c,V){V=V===void 0?{}:V;this.error=X;this.context=c.context;this.msg=c.message||"";this.id=c.id||"jserror";this.meta=V}; +Yil=function(){var X=X===void 0?g.UD:X;return(X=X.performance)&&X.now&&X.timing?Math.floor(X.now()+X.timing.navigationStart):g.c7()}; +jjO=function(){var X=X===void 0?g.UD:X;return(X=X.performance)&&X.now?X.now():null}; +Hsl=function(X,c,V){this.label=X;this.type=c;this.value=V;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; +UA=function(){var X=window;this.events=[];this.G=X||g.UD;var c=null;X&&(X.google_js_reporting_queue=X.google_js_reporting_queue||[],this.events=X.google_js_reporting_queue,c=X.google_measure_js_timing);this.J=Nv()||(c!=null?c:Math.random()<1)}; +apO=function(X){X&&Tq&&Nv()&&(Tq.clearMarks("goog_"+X.label+"_"+X.uniqueId+"_start"),Tq.clearMarks("goog_"+X.label+"_"+X.uniqueId+"_end"))}; +$4L=function(){var X=u0;this.J=PF;this.sR="jserror";this.mV=!0;this.G4=null;this.G=this.S6;this.l3=X===void 0?null:X}; +W_8=function(X,c,V){var G=zq;return fN(pN().J.J,function(){try{if(G.l3&&G.l3.J){var n=G.l3.start(X.toString(),3);var L=c();G.l3.end(n)}else L=c()}catch(h){var d=G.mV;try{apO(n),d=G.G(X,new BF(KN(h)),void 0,V)}catch(A){G.S6(217,A)}if(!d)throw h;}return L})()}; +sA=function(X,c,V,G){return fN(pN().J.J,function(){var n=g.OD.apply(0,arguments);return W_8(X,function(){return c.apply(V,n)},G)})}; +KN=function(X){var c=X.toString();X.name&&c.indexOf(X.name)==-1&&(c+=": "+X.name);X.message&&c.indexOf(X.message)==-1&&(c+=": "+X.message);if(X.stack)a:{X=X.stack;var V=c;try{X.indexOf(V)==-1&&(X=V+"\n"+X);for(var G;X!=G;)G=X,X=X.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");c=X.replace(/\n */g,"\n");break a}catch(n){c=V;break a}c=void 0}return c}; +BF=function(X){A$L.call(this,Error(X),{message:X})}; +waU=function(){Fy&&typeof Fy.google_measure_js_timing!="undefined"&&(Fy.google_measure_js_timing||u0.disable())}; +F_D=function(X){zq.G4=function(c){g.aR(X,function(V){V(c)})}}; +Ep2=function(X,c){return W_8(X,c)}; +CN=function(X,c){return sA(X,c)}; +Dw=function(X,c,V,G){zq.S6(X,c,V,G)}; +Sy=function(){return Date.now()-r$O}; +Qjw=function(){var X=pN().U,c=i0>=0?Sy()-i0:-1,V=qv?Sy()-X5:-1,G=cE>=0?Sy()-cE:-1;if(X==947190542)return 100;if(X==79463069)return 200;X=[2E3,4E3];var n=[250,500,1E3];Dw(637,Error(),.001);var L=c;V!=-1&&V1500&&G<4E3?500:d}; +VF=function(X,c,V,G){this.top=X;this.right=c;this.bottom=V;this.left=G}; +Gn=function(X){return X.right-X.left}; +ne=function(X,c){return X==c?!0:X&&c?X.top==c.top&&X.right==c.right&&X.bottom==c.bottom&&X.left==c.left:!1}; +Le=function(X,c,V){c instanceof g.wn?(X.left+=c.x,X.right+=c.x,X.top+=c.y,X.bottom+=c.y):(X.left+=c,X.right+=c,typeof V==="number"&&(X.top+=V,X.bottom+=V));return X}; +yF=function(X,c,V){var G=new VF(0,0,0,0);this.time=X;this.volume=null;this.U=c;this.J=G;this.G=V}; +AS=function(X,c,V,G,n,L,d,h){this.X=X;this.D=c;this.U=V;this.B=G;this.J=n;this.Z=L;this.G=d;this.T=h}; +x4l=function(X){var c=X!==X.top,V=X.top===IeD(X),G=-1,n=0;if(c&&V&&X.top.mraid){G=3;var L=X.top.mraid}else G=(L=X.mraid)?c?V?2:1:0:-1;L&&(L.IS_GMA_SDK||(n=2),Py8(Zss,function(d){return typeof L[d]==="function"})||(n=1)); +return{IX:L,compatibility:n,x$l:G}}; +vpl=function(){var X=window.document;return X&&typeof X.elementFromPoint==="function"}; +krw=function(X,c,V){if(X&&c!==null&&c!=c.top){if(!c.top)return new g.Ez(-12245933,-12245933);c=c.top}try{return(V===void 0?0:V)?(new g.Ez(c.innerWidth,c.innerHeight)).round():Lm2(c||window).round()}catch(G){return new g.Ez(-12245933,-12245933)}}; +Yv=function(X,c,V){try{if(X){if(!c.top)return new VF(-12245933,-12245933,-12245933,-12245933);c=c.top}var G=krw(X,c,V),n=G.height,L=G.width;if(L===-12245933)return new VF(L,L,L,L);var d=yij(uU(c.document).J),h=d.x,A=d.y;return new VF(A,h+L,A+n,h)}catch(Y){return new VF(-12245933,-12245933,-12245933,-12245933)}}; +g.jF=function(X,c,V,G){this.left=X;this.top=c;this.width=V;this.height=G}; +HE=function(X,c){return X==c?!0:X&&c?X.left==c.left&&X.width==c.width&&X.top==c.top&&X.height==c.height:!1}; +g.$v=function(X,c,V){if(typeof c==="string")(c=ao(X,c))&&(X.style[c]=V);else for(var G in c){V=X;var n=c[G],L=ao(V,G);L&&(V.style[L]=n)}}; +ao=function(X,c){var V=opD[c];if(!V){var G=f7O(c);V=G;X.style[G]===void 0&&(G=(g.iU?"Webkit":WE?"Moz":null)+I71(G),X.style[G]!==void 0&&(V=G));opD[c]=V}return V}; +g.wS=function(X,c){var V=X.style[f7O(c)];return typeof V!=="undefined"?V:X.style[ao(X,c)]||""}; +F5=function(X,c){var V=TV(X);return V.defaultView&&V.defaultView.getComputedStyle&&(X=V.defaultView.getComputedStyle(X,null))?X[c]||X.getPropertyValue(c)||"":""}; +Eh=function(X,c){return F5(X,c)||(X.currentStyle?X.currentStyle[c]:null)||X.style&&X.style[c]}; +g.QF=function(X,c,V){if(c instanceof g.wn){var G=c.x;c=c.y}else G=c,c=V;X.style.left=g.rS(G,!1);X.style.top=g.rS(c,!1)}; +ZX=function(X){try{return X.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}}; +ell=function(X){var c=TV(X),V=Eh(X,"position"),G=V=="fixed"||V=="absolute";for(X=X.parentNode;X&&X!=c;X=X.parentNode)if(X.nodeType==11&&X.host&&(X=X.host),V=Eh(X,"position"),G=G&&V=="static"&&X!=c.documentElement&&X!=c.body,!G&&(X.scrollWidth>X.clientWidth||X.scrollHeight>X.clientHeight||V=="fixed"||V=="absolute"||V=="relative"))return X;return null}; +g.xv=function(X){var c=TV(X),V=new g.wn(0,0);if(X==(c?TV(c):document).documentElement)return V;X=ZX(X);c=yij(uU(c).J);V.x=X.left+c.x;V.y=X.top+c.y;return V}; +m4w=function(X,c){var V=new g.wn(0,0),G=q5(TV(X));if(!ypt(G,"parent"))return V;do{var n=G==c?g.xv(X):J$D(X);V.x+=n.x;V.y+=n.y}while(G&&G!=c&&G!=G.parent&&(X=G.frameElement)&&(G=G.parent));return V}; +g.vE=function(X,c){X=Rls(X);c=Rls(c);return new g.wn(X.x-c.x,X.y-c.y)}; +J$D=function(X){X=ZX(X);return new g.wn(X.left,X.top)}; +Rls=function(X){if(X.nodeType==1)return J$D(X);X=X.changedTouches?X.changedTouches[0]:X;return new g.wn(X.clientX,X.clientY)}; +g.mn=function(X,c,V){if(c instanceof g.Ez)V=c.height,c=c.width;else if(V==void 0)throw Error("missing height argument");X.style.width=g.rS(c,!0);X.style.height=g.rS(V,!0)}; +g.rS=function(X,c){typeof X=="number"&&(X=(c?Math.round(X):X)+"px");return X}; +g.Ro=function(X){var c=bsj;if(Eh(X,"display")!="none")return c(X);var V=X.style,G=V.display,n=V.visibility,L=V.position;V.visibility="hidden";V.position="absolute";V.display="inline";X=c(X);V.display=G;V.position=L;V.visibility=n;return X}; +bsj=function(X){var c=X.offsetWidth,V=X.offsetHeight,G=g.iU&&!c&&!V;return(c===void 0||G)&&X.getBoundingClientRect?(X=ZX(X),new g.Ez(X.right-X.left,X.bottom-X.top)):new g.Ez(c,V)}; +g.bF=function(X,c){X.style.display=c?"":"none"}; +tS=function(X,c){c=Math.pow(10,c);return Math.floor(X*c)/c}; +tS1=function(X){return new VF(X.top,X.right,X.bottom,X.left)}; +Oss=function(X){var c=X.top||0,V=X.left||0;return new VF(c,V+(X.width||0),c+(X.height||0),V)}; +Oh=function(X){return X!=null&&X>=0&&X<=1}; +lp1=function(){var X=g.bA();return X?lF("AmazonWebAppPlatform;Android TV;Apple TV;AppleTV;BRAVIA;BeyondTV;Freebox;GoogleTV;HbbTV;LongTV;MiBOX;MiTV;NetCast.TV;Netcast;Opera TV;PANASONIC;POV_TV;SMART-TV;SMART_TV;SWTV;Smart TV;SmartTV;TV Store;UnionTV;WebOS".split(";"),function(c){return eV(X,c)})||eV(X,"OMI/")&&!eV(X,"XiaoMi/")?!0:eV(X,"Presto")&&eV(X,"Linux")&&!eV(X,"X11")&&!eV(X,"Android")&&!eV(X,"Mobi"):!1}; +MS2=function(){this.U=!xr(Fy.top);this.isMobileDevice=Zw()||tm2();var X=kr();this.domain=X.length>0&&X[X.length-1]!=null&&X[X.length-1].url!=null?g.Ue(X[X.length-1].url)||"":"";this.J=new VF(0,0,0,0);this.X=new g.Ez(0,0);this.Z=new g.Ez(0,0);this.D=new VF(0,0,0,0);this.frameOffset=new g.wn(0,0);this.B=0;this.T=!1;this.G=!(!Fy||!x4l(Fy).IX);this.update(Fy)}; +gpD=function(X,c){c&&c.screen&&(X.X=new g.Ez(c.screen.width,c.screen.height))}; +fps=function(X,c){a:{var V=X.J?new g.Ez(Gn(X.J),X.J.getHeight()):new g.Ez(0,0);c=c===void 0?Fy:c;c!==null&&c!=c.top&&(c=c.top);var G=0,n=0;try{var L=c.document,d=L.body,h=L.documentElement;if(L.compatMode=="CSS1Compat"&&h.scrollHeight)G=h.scrollHeight!=V.height?h.scrollHeight:h.offsetHeight,n=h.scrollWidth!=V.width?h.scrollWidth:h.offsetWidth;else{var A=h.scrollHeight,Y=h.scrollWidth,H=h.offsetHeight,a=h.offsetWidth;h.clientHeight!=H&&(A=d.scrollHeight,Y=d.scrollWidth,H=d.offsetHeight,a=d.offsetWidth); +A>V.height?A>H?(G=A,n=Y):(G=H,n=a):A0||X.T)return!0;X=Mv().G.isVisible();var c=Q9(gS)===0;return X||c}; +MB=function(){return OA(MS2)}; +pe=function(X){this.U=X;this.G=0;this.J=null}; +Io=function(X,c,V){this.U=X;this.QK=V===void 0?"na":V;this.Z=[];this.isInitialized=!1;this.X=new yF(-1,!0,this);this.J=this;this.T=c;this.G_=this.C=!1;this.Pl="uk";this.NW=!1;this.B=!0}; +NB=function(X,c){g.SV(X.Z,c)||(X.Z.push(c),c.jF(X.J),c.w0(X.X),c.m3()&&(X.C=!0))}; +pa2=function(X){X=X.J;X.XG();X.UF();var c=MB();c.D=Yv(!1,X.U,c.isMobileDevice);fps(MB(),X.U);X.X.J=X.eR()}; +Ip8=function(X){X.C=X.Z.length?lF(X.Z,function(c){return c.m3()}):!1}; +Nwl=function(X){var c=g.Vk(X.Z);g.aR(c,function(V){V.w0(X.X)})}; +Uh=function(X){var c=g.Vk(X.Z);g.aR(c,function(V){V.jF(X.J)}); +X.J!=X||Nwl(X)}; +Tn=function(X,c,V,G){this.element=X;this.J=new VF(0,0,0,0);this.U=null;this.B=new VF(0,0,0,0);this.G=c;this.t1=V;this.NW=G;this.kO=!1;this.timestamp=-1;this.C=new AS(c.X,this.element,this.J,new VF(0,0,0,0),0,0,Sy(),0);this.Z=void 0}; +U4O=function(X,c){return X.Z?new VF(Math.max(c.top+X.Z.top,c.top),Math.min(c.left+X.Z.right,c.right),Math.min(c.top+X.Z.bottom,c.bottom),Math.max(c.left+X.Z.left,c.left)):c.clone()}; +uF=function(X){this.Z=!1;this.J=X;this.X=function(){}}; +TwL=function(X,c,V){this.U=V===void 0?0:V;this.G=X;this.J=c==null?"":c}; +ubs=function(X){switch(Math.trunc(X.U)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; +PwO=function(X,c){return X.Uc.U?!1:X.Gc.G?!1:typeof X.Jtypeof c.J?!1:X.J0?G[V]-G[V-1]:G[V]})}; +XG=function(){this.G=new sh;this.QK=this.Hl=0;this.LS=new Ke;this.A7=this.D=-1;this.yK=1E3;this.qE=new sh([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.Pl=this.kO=-1}; +cI=function(X,c){return X0j(X.G,c===void 0?!0:c)}; +V1=function(X,c,V,G){var n=n===void 0?!1:n;V=sA(G,V);rT(X,c,V,{capture:n})}; +nb=function(X,c){c=GS(c);return c===0?0:GS(X)/c}; +GS=function(X){return Math.max(X.bottom-X.top,0)*Math.max(X.right-X.left,0)}; +GaD=function(X,c){if(!X||!c)return!1;for(var V=0;X!==null&&V++<100;){if(X===c)return!0;try{if(X=X.parentElement||X){var G=TV(X),n=G&&q5(G),L=n&&n.frameElement;L&&(X=L)}}catch(d){break}}return!1}; +nst=function(X,c,V){if(!X||!c)return!1;c=Le(X.clone(),-c.left,-c.top);X=(c.left+c.right)/2;c=(c.top+c.bottom)/2;xr(window.top)&&window.top&&window.top.document&&(window=window.top);if(!vpl())return!1;X=window.document.elementFromPoint(X,c);if(!X)return!1;c=(c=(c=TV(V))&&c.defaultView&&c.defaultView.frameElement)&&GaD(c,X);var G=X===V;X=!G&&X&&YE(X,function(n){return n===V}); +return!(c||G||X)}; +LY1=function(X,c,V,G){return MB().U?!1:Gn(X)<=0||X.getHeight()<=0?!0:V&&G?Ep2(208,function(){return nst(X,c,V)}):!1}; +Lb=function(X,c,V){g.I.call(this);this.position=dX2.clone();this.O3=this.Eo();this.tH=-2;this.timeCreated=Date.now();this.wf=-1;this.KN=c;this.Ef=null;this.b8=!1;this.t9=null;this.opacity=-1;this.requestSource=V;this.CjO=!1;this.Dc=function(){}; +this.df=function(){}; +this.Wc=new mGw;this.Wc.jK=X;this.Wc.J=X;this.SK=!1;this.qT={dN:null,Ti:null};this.yk=!0;this.Cz=null;this.AB=this.IQR=!1;pN().B++;this.mH=this.U7();this.uK=-1;this.g$=null;this.hasCompleted=this.XP7=!1;this.t1=new hk;JuO(this.t1);yW2(this);this.requestSource==1?Yr(this.t1,"od",1):Yr(this.t1,"od",0)}; +yW2=function(X){X=X.Wc.jK;var c;if(c=X&&X.getAttribute)c=/-[a-z]/.test("googleAvInapp")?!1:hCO&&X.dataset?"googleAvInapp"in X.dataset:X.hasAttribute?X.hasAttribute("data-"+p9O()):!!X.getAttribute("data-"+p9O());c&&(MB().G=!0)}; +dz=function(X,c){c!=X.AB&&(X.AB=c,X=MB(),c?X.B++:X.B>0&&X.B--)}; +AWl=function(X,c){if(X.g$){if(c.getName()===X.g$.getName())return;X.g$.dispose();X.g$=null}c=c.create(X.Wc.J,X.t1,X.m3());if(c=c!=null&&c.observe()?c:null)X.g$=c}; +Y2U=function(X,c,V){if(!X.Ef||X.KN==-1||c.G===-1||X.Ef.G===-1)return 0;X=c.G-X.Ef.G;return X>V?0:X}; +jns=function(X,c,V){if(X.g$){X.g$.dl();var G=X.g$.C,n=G.X,L=n.J;if(G.B!=null){var d=G.U;X.t9=new g.wn(d.left-L.left,d.top-L.top)}L=X.XA()?Math.max(G.J,G.Z):G.J;d={};n.volume!==null&&(d.volume=n.volume);n=X.W0(G);X.Ef=G;X.pS(L,c,V,!1,d,n,G.T)}}; +Hcj=function(X){if(X.b8&&X.Cz){var c=jy(X.t1,"od")==1,V=MB().J,G=X.Cz,n=X.g$?X.g$.getName():"ns",L=X.t9,d=new g.Ez(Gn(V),V.getHeight());V=X.XA();X={YqK:n,t9:L,B1O:d,XA:V,sH:X.mH.sH,mmv:c};if(c=G.G){c.dl();n=c.C;L=n.X.J;var h=d=null;n.B!=null&&L&&(d=n.U,d=new g.wn(d.left-L.left,d.top-L.top),h=new g.Ez(L.right-L.left,L.bottom-L.top));n=V?Math.max(n.J,n.Z):n.J;V={YqK:c.getName(),t9:d,B1O:h,XA:V,mmv:!1,sH:n}}else V=null;V&&Sil(G,X,V)}}; +a4l=function(X,c,V){c&&(X.Dc=c);V&&(X.df=V)}; +g.y1=function(){}; +g.he=function(X){return{value:X,done:!1}}; +$XS=function(){this.X=this.J=this.U=this.G=this.Z=0}; +WYl=function(X){var c={};var V=g.c7()-X.Z;c=(c.ptlt=V,c);(V=X.G)&&(c.pnk=V);(V=X.U)&&(c.pnc=V);(V=X.X)&&(c.pnmm=V);(X=X.J)&&(c.pns=X);return c}; +w0t=function(){Gq.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; +Ae=function(X){return Oh(X.volume)&&X.volume>0}; +YQ=function(X,c,V,G){V=V===void 0?!0:V;G=G===void 0?function(){return!0}:G; +return function(n){var L=n[X];if(Array.isArray(L)&&G(n))return FY8(L,c,V)}}; +j8=function(X,c){return function(V){return c(V)?V[X]:void 0}}; +Esw=function(X){return function(c){for(var V=0;V0?L[n-1]+1:0,G+1).reduce(function(d,h){return d+h},0)})}; +rWU=function(){this.G=this.J=""}; +Qnl=function(){}; +a5=function(X,c){var V={};if(X!==void 0)if(c!=null)for(var G in c){var n=c[G];G in Object.prototype||n!=null&&(V[G]=typeof n==="function"?n(X):X[n])}else g.f0(V,X);return BE(zn(new PE,V))}; +Zcs=function(){var X={};this.G=(X.vs=[1,0],X.vw=[0,1],X.am=[2,2],X.a=[4,4],X.f=[8,8],X.bm=[16,16],X.b=[32,32],X.avw=[0,64],X.avs=[64,0],X.pv=[256,256],X.gdr=[0,512],X.p=[0,1024],X.r=[0,2048],X.m=[0,4096],X.um=[0,8192],X.ef=[0,16384],X.s=[0,32768],X.pmx=[0,16777216],X.mut=[33554432,33554432],X.umutb=[67108864,67108864],X.tvoff=[134217728,134217728],X);this.J={};for(var c in this.G)this.G[c][1]>0&&(this.J[c]=0);this.U=0}; +$Q=function(X,c){var V=X.G[c],G=V[1];X.U+=V[0];G>0&&X.J[c]==0&&(X.J[c]=1)}; +xX8=function(X){var c=g.JN(X.G),V=0,G;for(G in X.J)g.SV(c,G)&&X.J[G]==1&&(V+=X.G[G][1],X.J[G]=2);return V}; +vsl=function(X){var c=0,V;for(V in X.J){var G=X.J[V];if(G==1||G==2)c+=X.G[V][1]}return c}; +WI=function(){this.J=this.G=0}; +wz=function(){XG.call(this);this.U=new Ke;this.YO=this.C=this.NW=0;this.T=-1;this.o2=new Ke;this.Z=new Ke;this.J=new sh;this.B=this.X=-1;this.G_=new Ke;this.yK=2E3;this.wy=new WI;this.T_=new WI;this.fS=new WI}; +FG=function(X,c,V){var G=X.YO;qv||V||X.T==-1||(G+=c-X.T);return G}; +kas=function(){this.U=!1}; +EI=function(X,c){this.U=!1;this.X=X;this.C=c;this.Z=0}; +rz=function(X,c){EI.call(this,X,c);this.D=[]}; +oss=function(){}; +Q1=function(){}; +Z0=function(X,c,V,G){Tn.call(this,X,c,V,G)}; +xQ=function(X,c,V){Tn.call(this,null,X,c,V);this.T=X.isActive();this.D=0}; +vI=function(X){return[X.top,X.left,X.bottom,X.right]}; +kQ=function(X,c,V,G,n,L){L=L===void 0?new Q1:L;Lb.call(this,c,V,G);this.Oi=n;this.Fa=0;this.QH={};this.VQ=new Zcs;this.AI={};this.Af="";this.fS=null;this.HP=!1;this.J=[];this.ri=L.G();this.B=L.U();this.X=null;this.U=-1;this.QK=this.C=void 0;this.A7=this.G_=0;this.Pl=-1;this.yK=this.T_=!1;this.NW=this.T=this.G=this.xj=this.hX=0;new sh;this.wy=this.YO=0;this.LS=-1;this.Eg=0;this.D=g.WU;this.kO=[this.Eo()];this.EM=2;this.Bq={};this.Bq.pause="p";this.Bq.resume="r";this.Bq.skip="s";this.Bq.mute="m";this.Bq.unmute= +"um";this.Bq.exitfullscreen="ef";this.Z=null;this.qE=this.o2=!1;this.NE=Math.floor(Date.now()/1E3-1704067200);this.Hl=0}; +o5=function(X){X.hasCompleted=!0;X.Eg!=0&&(X.Eg=3)}; +e8=function(X){return X===void 0?X:Number(X)?tS(X,3):0}; +Je=function(X,c){return X.kO[c!=null&&cMath.max(1E4,X.U/3)?0:c);var V=X.D(X)||{};V=V.currentTime!==void 0?V.currentTime:X.G_;var G=V-X.G_,n=0;G>=0?(X.A7+=c,X.wy+=Math.max(c-G,0),n=Math.min(G,X.A7)):X.YO+=Math.abs(G);G!=0&&(X.A7=0);X.LS==-1&&G>0&&(X.LS=cE>=0?Sy()-cE:-1);X.G_=V;return n}; +mXt=function(X,c){lF(X.B,function(V){return V.X==c.X})||X.B.push(c)}; +RCD=function(X){var c=SF(X.Qr().J,1);return mh(X,c)}; +mh=function(X,c,V){return c>=15E3?!0:X.T_?(V===void 0?0:V)?!0:X.U>0?c>=X.U/2:X.Pl>0?c>=X.Pl:!1:!1}; +bcU=function(X){var c=tS(X.mH.sH,2),V=X.VQ.U,G=X.mH,n=Je(X),L=e8(n.X),d=e8(n.B),h=e8(G.volume),A=tS(n.D,2),Y=tS(n.A7,2),H=tS(G.sH,2),a=tS(n.kO,2),W=tS(n.Pl,2);G=tS(G.qQ,2);var w=X.Ia().clone().round();X=X.g$&&X.g$.U?(X.g$?X.g$.U:null).clone().round():null;n=cI(n,!1);return{vyR:c,p4:V,U3:L,Vu:d,JY:h,XU:A,K$:Y,sH:H,FU:a,C$:W,qQ:G,position:w,u8:X,aQ:n}}; +Oct=function(X,c){tGj(X.J,c,function(){return{vyR:0,p4:void 0,U3:-1,Vu:-1,JY:-1,XU:-1,K$:-1,sH:-1,FU:-1,C$:-1,qQ:-1,position:void 0,u8:void 0,aQ:[]}}); +X.J[c]=bcU(X)}; +tGj=function(X,c,V){for(var G=X.length;G0?1:0;a.atos= +Ce(Y.J);a.ssb=Ce(Y.qE,!1);a.amtos=X0j(Y.J,!1);a.uac=X.hX;a.vpt=Y.U.J;H=="nio"&&(a.nio=1,a.avms="nio");a.gmm="4";a.gdr=mh(X,Y.U.J,!0)?1:0;a.efpf=X.EM;if(H=="gsv"||H=="nis")H=X.g$,H.D>0&&(a.nnut=H.D);a.tcm=eCD(X);a.nmt=X.YO;a.bt=X.wy;a.pst=X.LS;a.vpaid=X.C;a.dur=X.U;a.vmtime=X.G_;a.is=X.VQ.U;X.J.length>=1&&(a.i0=X.J[0].p4,a.a0=[X.J[0].JY],a.c0=[X.J[0].sH],a.ss0=[X.J[0].qQ],H=X.J[0].position,L=X.J[0].u8,a.p0=H?vI(H):void 0,H&&L&&!ne(L,H)&&(a.cp0=vI(L)));X.J.length>=2&&(a.i1=X.J[1].p4,a.a1=te(X.J[1].U3, +X.J[1].JY,X.J[1].Vu),a.c1=te(X.J[1].XU,X.J[1].sH,X.J[1].K$),a.ss1=te(X.J[1].FU,X.J[1].qQ,X.J[1].C$),H=X.J[1].position,L=X.J[1].u8,a.p1=H?vI(H):void 0,H&&L&&!ne(L,H)&&(a.cp1=vI(L)),a.mtos1=X.J[1].aQ);X.J.length>=3&&(a.i2=X.J[2].p4,a.a2=te(X.J[2].U3,X.J[2].JY,X.J[2].Vu),a.c2=te(X.J[2].XU,X.J[2].sH,X.J[2].K$),a.ss2=te(X.J[2].FU,X.J[2].qQ,X.J[2].C$),H=X.J[2].position,L=X.J[2].u8,a.p2=H?vI(H):void 0,H&&L&&!ne(L,H)&&(a.cp2=vI(L)),a.mtos2=X.J[2].aQ);X.J.length>=4&&(a.i3=X.J[3].p4,a.a3=te(X.J[3].U3,X.J[3].JY, +X.J[3].Vu),a.c3=te(X.J[3].XU,X.J[3].sH,X.J[3].K$),a.ss3=te(X.J[3].FU,X.J[3].qQ,X.J[3].C$),H=X.J[3].position,L=X.J[3].u8,a.p3=H?vI(H):void 0,H&&L&&!ne(L,H)&&(a.cp3=vI(L)),a.mtos3=X.J[3].aQ);a.cs=vsl(X.VQ);c&&(a.ic=xX8(X.VQ),a.dvpt=Y.U.G,a.dvs=qB(Y.G,.5),a.dfvs=qB(Y.G,1),a.davs=qB(Y.J,.5),a.dafvs=qB(Y.J,1),V&&(Y.U.G=0,cWl(Y.G),cWl(Y.J)),X.Qi()&&(a.dtos=Y.NW,a.dav=Y.C,a.dtoss=X.Fa+1,V&&(Y.NW=0,Y.C=0,X.Fa++)),a.dat=Y.Z.G,a.dft=Y.G_.G,V&&(Y.Z.G=0,Y.G_.G=0));a.ps=[h.Z.width,h.Z.height];a.bs=[Gn(h.J),h.J.getHeight()]; +a.scs=[h.X.width,h.X.height];a.dom=h.domain;X.xj&&(a.vds=X.xj);if(X.B.length>0||X.ri)c=g.Vk(X.B),X.ri&&c.push(X.ri),a.pings=g.Rt(c,function(W){return W.toString()}); +c=g.Rt(g.HI(X.B,function(W){return W.B()}),function(W){return W.getId()}); +cpj(c);a.ces=c;X.G&&(a.vmer=X.G);X.T&&(a.vmmk=X.T);X.NW&&(a.vmiec=X.NW);a.avms=X.g$?X.g$.getName():"ns";X.g$&&g.f0(a,X.g$.XX());G?(a.c=tS(X.mH.sH,2),a.ss=tS(X.mH.qQ,2)):a.tth=Sy()-f41;a.mc=tS(Y.A7,2);a.nc=tS(Y.D,2);a.mv=e8(Y.B);a.nv=e8(Y.X);a.lte=tS(X.tH,2);G=Je(X,n);cI(Y);a.qmtos=cI(G);a.qnc=tS(G.D,2);a.qmv=e8(G.B);a.qnv=e8(G.X);a.qas=G.X>0?1:0;a.qi=X.Af;a.avms||(a.avms="geo");a.psm=Y.wy.J;a.psv=Y.wy.getValue();a.psfv=Y.T_.getValue();a.psa=Y.fS.getValue();A=ocD(A.t1);A.length&&(a.veid=A);X.Z&&g.f0(a, +WYl(X.Z));a.avas=X.Hp();a.vs=X.b5();a.co=p0t(X);a.tm=Y.Hl;a.tu=Y.QK;return a}; +l4l=function(X,c){if(g.SV(I4U,c))return!0;var V=X.QH[c];return V!==void 0?(X.QH[c]=!0,!V):!1}; +p0t=function(X){var c=X.Hl.toString(10).padStart(2,"0");c=""+X.NE+c;X.Hl<99&&X.Hl++;return c}; +UXw=function(){this.J={};var X=q5();OI(this,X,document);var c=N6D();try{if("1"==c){for(var V=X.parent;V!=X.top;V=V.parent)OI(this,V,V.document);OI(this,X.top,X.top.document)}}catch(G){}}; +N6D=function(){var X=document.documentElement;try{if(!xr(q5().top))return"2";var c=[],V=q5(X.ownerDocument);for(X=V;X!=V.top;X=X.parent)if(X.frameElement)c.push(X.frameElement);else break;return c&&c.length!=0?"1":"0"}catch(G){return"2"}}; +OI=function(X,c,V){V1(V,"mousedown",function(){return T6S(X)},301); +V1(c,"scroll",function(){return u9D(X)},302); +V1(V,"touchmove",function(){return PmD(X)},303); +V1(V,"mousemove",function(){return zCD(X)},304); +V1(V,"keydown",function(){return B6l(X)},305)}; +T6S=function(X){g.Zu(X.J,function(c){c.U>1E5||++c.U})}; +u9D=function(X){g.Zu(X.J,function(c){c.J>1E5||++c.J})}; +PmD=function(X){g.Zu(X.J,function(c){c.J>1E5||++c.J})}; +B6l=function(X){g.Zu(X.J,function(c){c.G>1E5||++c.G})}; +zCD=function(X){g.Zu(X.J,function(c){c.X>1E5||++c.X})}; +KYO=function(){this.J=[];this.G=[]}; +lv=function(X,c){return g.Ct(X.J,function(V){return V.Af==c})}; +sn8=function(X,c){return c?g.Ct(X.J,function(V){return V.Wc.jK==c}):null}; +CmL=function(X,c){return g.Ct(X.G,function(V){return V.pN()==2&&V.Af==c})}; +gz=function(){var X=MP;return X.J.length==0?X.G:X.G.length==0?X.J:g.cY(X.G,X.J)}; +DX1=function(X,c){X=c.pN()==1?X.J:X.G;var V=sH(X,function(G){return G==c}); +return V!=-1?(X.splice(V,1),c.g$&&c.g$.unobserve(),c.dispose(),!0):!1}; +S2t=function(X){var c=MP;if(DX1(c,X)){switch(X.pN()){case 0:var V=function(){return null}; +case 2:V=function(){return CmL(c,X.Af)}; +break;case 1:V=function(){return lv(c,X.Af)}}for(var G=V();G;G=V())DX1(c,G)}}; +ics=function(X){var c=MP;X=g.HI(X,function(V){return!sn8(c,V.Wc.jK)}); +c.J.push.apply(c.J,g.x(X))}; +q28=function(X){var c=[];g.aR(X,function(V){lF(MP.J,function(G){return G.Wc.jK===V.Wc.jK&&G.Af===V.Af})||(MP.J.push(V),c.push(V))})}; +fb=function(){this.J=this.G=null}; +XFj=function(X,c){function V(G,n){c(G,n)} +if(X.G==null)return!1;X.J=g.Ct(X.G,function(G){return G!=null&&G.kY()}); +X.J&&(X.J.init(V)?pa2(X.J.J):c(X.J.J.pU(),X.J));return X.J!=null}; +pb=function(X){X=ckl(X);uF.call(this,X.length?X[X.length-1]:new Io(Fy,0));this.U=X;this.G=null}; +ckl=function(X){if(!X.length)return[];X=(0,g.HI)(X,function(V){return V!=null&&V.Cc()}); +for(var c=1;cV.time?c:V},X[0])}; +TS=function(X){X=X===void 0?Fy:X;uF.call(this,new Io(X,2))}; +uv=function(){var X=LiD();Io.call(this,Fy.top,X,"geo")}; +LiD=function(){pN();var X=MB();return X.U||X.G?0:2}; +dvL=function(){}; +PI=function(){this.done=!1;this.J={Y_:0,Hy:0,Q1y:0,rT:0,fk:-1,QT:0,wY:0,ZY:0,rPh:0};this.Z=null;this.B=!1;this.U=null;this.D=0;this.G=new pe(this)}; +BI=function(){var X=zS;X.B||(X.B=!0,yks(X,function(){return X.X.apply(X,g.x(g.OD.apply(0,arguments)))}),X.X())}; +haD=function(){OA(dvL);var X=OA(fb);X.J!=null&&X.J.J?pa2(X.J.J):MB().update(Fy)}; +Kb=function(X,c,V){if(!X.done&&(X.G.cancel(),c.length!=0)){X.U=null;try{haD();var G=Sy();pN().Z=G;if(OA(fb).J!=null)for(var n=0;n=0?Sy()-i0:-1,h=Sy();n.J.fk==-1&&(d=h);var A=MB(),Y=pN(),H=HF(Y.t1),a=gz();try{if(a.length>0){var W=A.J;W&&(H.bs=[Gn(W),W.getHeight()]);var w=A.Z;w&&(H.ps=[w.width,w.height]);Fy.screen&&(H.scs=[Fy.screen.width,Fy.screen.height])}else H.url=encodeURIComponent(Fy.location.href.substring(0,512)),L.referrer&&(H.referrer=encodeURIComponent(L.referrer.substring(0,512))); +H.tt=d;H.pt=i0;H.bin=Y.G;Fy.google_osd_load_pub_page_exp!==void 0&&(H.olpp=Fy.google_osd_load_pub_page_exp);H.deb=[1,n.J.Y_,n.J.Hy,n.J.rT,n.J.fk,0,n.G.G,n.J.QT,n.J.wY,n.J.ZY,n.J.rPh,-1].join(";");H.tvt=YAS(n,h);A.G&&(H.inapp=1);if(Fy!==null&&Fy!=Fy.top){a.length>0&&(H.iframe_loc=encodeURIComponent(Fy.location.href.substring(0,512)));var F=A.D;H.is=[Gn(F),F.getHeight()]}}catch(Z){H.error=1}zS.U=H}W=g.M5(zS.U);w=pN().J;jy(w.U,"prf")==1?(F=new gT,n=w.J,L=0,n.J>-1&&(L=n.U.J.now()-n.J),F=SX(F,1,GB(n.X+ +L),0),n=w.J,F=SX(F,5,yB(n.J>-1?n.G+1:n.G),0),F=SX(F,2,FO(w.G.J.U()),"0"),F=SX(F,3,FO(w.G.J.G()),"0"),w=SX(F,4,FO(w.G.J.J()),"0"),F={},w=(F.pf=g.rQ(w.J()),F)):w={};g.f0(W,w);g.f0(c,G,V,W,X())}])}; +awU=function(){var X=HNw||Fy;if(!X)return"";var c=[];if(!X.location||!X.location.href)return"";c.push("url="+encodeURIComponent(X.location.href.substring(0,512)));X.document&&X.document.referrer&&c.push("referrer="+encodeURIComponent(X.document.referrer.substring(0,512)));return c.join("&")}; +sI=function(){var X="youtube.player.web_20250310_01_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250310_01_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250310_01_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250310_01_RC00".match(/_(\d{8})_\d+_RC\d+$/),c;if(((c=X)==null?void 0:c.length)==2)return X[1];X="youtube.player.web_20250310_01_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var V;return((V=X)==null?void 0:V.length)==3?"20"+X[1]+X[2]:null}; +$vS=function(){return"av.default_js".includes("ima_html5_sdk")?{Ff:"ima",Ie:null}:"av.default_js".includes("ima_native_sdk")?{Ff:"nima",Ie:null}:"av.default_js".includes("admob-native-video-javascript")?{Ff:"an",Ie:null}:"youtube.player.web_20250310_01_RC00".includes("cast_js_sdk")?{Ff:"cast",Ie:sI()}:"youtube.player.web_20250310_01_RC00".includes("youtube.player.web")?{Ff:"yw",Ie:sI()}:"youtube.player.web_20250310_01_RC00".includes("outstream_web_client")?{Ff:"out",Ie:sI()}:"youtube.player.web_20250310_01_RC00".includes("drx_rewarded_web")? +{Ff:"r",Ie:sI()}:"youtube.player.web_20250310_01_RC00".includes("gam_native_web_video")?{Ff:"n",Ie:sI()}:"youtube.player.web_20250310_01_RC00".includes("admob_interstitial_video")?{Ff:"int",Ie:sI()}:{Ff:"j",Ie:null}}; +S8=function(X,c){var V={sv:"966"};Cb!==null&&(V.v=Cb);V.cb=Wiw;V.nas=MP.J.length;V.msg=X;c!==void 0&&(X=wFw(c))&&(V.e=D0[X]);return V}; +iv=function(X){return v7(X,"custom_metric_viewable")}; +wFw=function(X){var c=iv(X)?"custom_metric_viewable":X.toLowerCase();return bU(R5,function(V){return V==c})}; +Fil=function(){this.J=void 0;this.G=!1;this.U=0;this.X=-1;this.Z="tos"}; +Qtt=function(X){try{var c=X.split(",");return c.length>g.JN(Ers).length?null:tk(c,function(V,G){G=G.toLowerCase().split("=");if(G.length!=2||rkl[G[0]]===void 0||!rkl[G[0]](G[1]))throw Error("Entry ("+G[0]+", "+G[1]+") is invalid.");V[G[0]]=G[1];return V},{})}catch(V){return null}}; +ZND=function(X,c){if(X.J==void 0)return 0;switch(X.Z){case "mtos":return X.G?iF(c.J,X.J):iF(c.G,X.J);case "tos":return X.G?SF(c.J,X.J):SF(c.G,X.J)}return 0}; +qP=function(X,c,V,G){EI.call(this,c,G);this.D=X;this.T=V}; +XK=function(){}; +cL=function(X){EI.call(this,"fully_viewable_audible_half_duration_impression",X)}; +Vr=function(X){this.J=X}; +GK=function(X,c){EI.call(this,X,c)}; +nO=function(X){rz.call(this,"measurable_impression",X)}; +LO=function(){Vr.apply(this,arguments)}; +db=function(X,c,V){xQ.call(this,X,c,V)}; +yr=function(X){X=X===void 0?Fy:X;uF.call(this,new Io(X,2))}; +hB=function(X,c,V){xQ.call(this,X,c,V)}; +AB=function(X){X=X===void 0?Fy:X;uF.call(this,new Io(X,2))}; +YG=function(){Io.call(this,Fy,2,"mraid");this.wy=0;this.A7=this.kO=!1;this.D=null;this.G=x4l(this.U);this.X.J=new VF(0,0,0,0);this.Hl=!1}; +jn=function(X,c,V){X.tF("addEventListener",c,V)}; +ors=function(X){pN().X=!!X.tF("isViewable");jn(X,"viewableChange",xvD);X.tF("getState")==="loading"?jn(X,"ready",vrU):kq2(X)}; +kq2=function(X){typeof X.G.IX.AFMA_LIDAR==="string"?(X.kO=!0,eaD(X)):(X.G.compatibility=3,X.D="nc",X.Km("w"))}; +eaD=function(X){X.A7=!1;var c=jy(pN().t1,"rmmt")==1,V=!!X.tF("isViewable");(c?!V:1)&&Mv().setTimeout(CN(524,function(){X.A7||(Jk8(X),Dw(540,Error()),X.D="mt",X.Km("w"))}),500); +mvl(X);jn(X,X.G.IX.AFMA_LIDAR,RaU)}; +mvl=function(X){var c=jy(pN().t1,"sneio")==1,V=X.G.IX.AFMA_LIDAR_EXP_1!==void 0,G=X.G.IX.AFMA_LIDAR_EXP_2!==void 0;(c=c&&G)&&(X.G.IX.AFMA_LIDAR_EXP_2=!0);V&&(X.G.IX.AFMA_LIDAR_EXP_1=!c)}; +Jk8=function(X){X.tF("removeEventListener",X.G.IX.AFMA_LIDAR,RaU);X.kO=!1}; +bND=function(X,c){if(X.tF("getState")==="loading")return new g.Ez(-1,-1);c=X.tF(c);if(!c)return new g.Ez(-1,-1);X=parseInt(c.width,10);c=parseInt(c.height,10);return isNaN(X)||isNaN(c)?new g.Ez(-1,-1):new g.Ez(X,c)}; +vrU=function(){try{var X=OA(YG);X.tF("removeEventListener","ready",vrU);kq2(X)}catch(c){Dw(541,c)}}; +RaU=function(X,c){try{var V=OA(YG);V.A7=!0;var G=X?new VF(X.y,X.x+X.width,X.y+X.height,X.x):new VF(0,0,0,0);var n=Sy(),L=fe();var d=new yF(n,L,V);d.J=G;d.volume=c;V.w0(d)}catch(h){Dw(542,h)}}; +xvD=function(X){var c=pN(),V=OA(YG);X&&!c.X&&(c.X=!0,V.Hl=!0,V.D&&V.Km("w",!0))}; +HL=function(){this.isInitialized=!1;this.J=this.G=null;var X={};this.D=(X.start=this.MvS,X.firstquartile=this.Tyy,X.midpoint=this.gO2,X.thirdquartile=this.lR2,X.complete=this.EOh,X.error=this.nOR,X.pause=this.Ju,X.resume=this.vB,X.skip=this.j2l,X.viewable_impression=this.Yw,X.mute=this.Pw,X.unmute=this.Pw,X.fullscreen=this.dWR,X.exitfullscreen=this.s2y,X.fully_viewable_audible_half_duration_impression=this.Yw,X.measurable_impression=this.Yw,X.abandon=this.Ju,X.engagedview=this.Yw,X.impression=this.Yw, +X.creativeview=this.Yw,X.progress=this.Pw,X.custom_metric_viewable=this.Yw,X.bufferstart=this.Ju,X.bufferfinish=this.vB,X.audio_measurable=this.Yw,X.audio_audible=this.Yw,X);X={};this.T=(X.overlay_resize=this.fRO,X.abandon=this.pk,X.close=this.pk,X.collapse=this.pk,X.overlay_unmeasurable_impression=function(c){return bv(c,"overlay_unmeasurable_impression",fe())},X.overlay_viewable_immediate_impression=function(c){return bv(c,"overlay_viewable_immediate_impression",fe())},X.overlay_unviewable_impression= +function(c){return bv(c,"overlay_unviewable_impression",fe())},X.overlay_viewable_end_of_session_impression=function(c){return bv(c,"overlay_viewable_end_of_session_impression",fe())},X); +pN().G=3;ty1(this);this.U=null}; +aI=function(X,c,V,G){X=X.I3(null,G,!0,c);X.X=V;ics([X]);return X}; +OND=function(X,c,V){vcU(c);var G=X.J;g.aR(c,function(n){var L=g.Rt(n.criteria,function(d){var h=Qtt(d);if(h==null)d=null;else if(d=new Fil,h.visible!=null&&(d.J=h.visible/100),h.audible!=null&&(d.G=h.audible==1),h.time!=null){var A=h.timetype=="mtos"?"mtos":"tos",Y=Tsj(h.time,"%")?"%":"ms";h=parseInt(h.time,10);Y=="%"&&(h/=100);d.setTime(h,Y,A)}return d}); +lF(L,function(d){return d==null})||mXt(V,new qP(n.id,n.event,L,G))})}; +lww=function(){var X=[],c=pN();X.push(OA(uv));jy(c.t1,"mvp_lv")&&X.push(OA(YG));c=[new yr,new AB];c.push(new pb(X));c.push(new TS(Fy));return c}; +MyO=function(X){if(!X.isInitialized){X.isInitialized=!0;try{var c=Sy(),V=pN(),G=MB();i0=c;V.U=79463069;X.G!=="o"&&(HNw=IeD(Fy));if(DGU()){zS.J.Hy=0;zS.J.fk=Sy()-c;var n=lww(),L=OA(fb);L.G=n;XFj(L,function(){$G()})?zS.done||(Ak2(),NB(L.J.J,X),BI()):G.U?$G():BI()}else WL=!0}catch(d){throw MP.reset(),d; +}}}; +FK=function(X){zS.G.cancel();wb=X;zS.done=!0}; +EV=function(X){if(X.G)return X.G;var c=OA(fb).J;if(c)switch(c.getName()){case "nis":X.G="n";break;case "gsv":X.G="m"}X.G||(X.G="h");return X.G}; +rb=function(X,c,V){if(X.J==null)return c.xj|=4,!1;X=gr8(X.J,V,c);c.xj|=X;return X==0}; +$G=function(){var X=[new TS(Fy)],c=OA(fb);c.G=X;XFj(c,function(){FK("i")})?zS.done||(Ak2(),BI()):FK("i")}; +fwl=function(X,c){if(!X.HP){var V=bv(X,"start",fe());V=X.Oi.J(V).J;var G={id:"lidarv"};G.r=c;G.sv="966";Cb!==null&&(G.v=Cb);uP(V,function(n,L){return G[n]=n=="mtos"||n=="tos"?L:encodeURIComponent(L)}); +c=awU();uP(c,function(n,L){return G[n]=encodeURIComponent(L)}); +c="//pagead2.googlesyndication.com/pagead/gen_204?"+BE(zn(new PE,G));CwD(c);X.HP=!0}}; +Qr=function(X,c,V){Kb(zS,[X],!fe());Oct(X,V);V!=4&&tGj(X.kO,V,X.Eo);return bv(X,c,fe())}; +ty1=function(X){jtL(function(){var c=pFs();X.G!=null&&(c.sdk=X.G);var V=OA(fb);V.J!=null&&(c.avms=V.J.getName());return c})}; +IwO=function(X,c,V,G){var n=sn8(MP,V);n!==null&&n.Af!==c&&(X.K7(n),n=null);n||(c=X.I3(V,Sy(),!1,c),MP.G.length==0&&(pN().U=79463069),q28([c]),n=c,n.X=EV(X),G&&(n.fS=G));return n}; +NTj=function(X,c){var V=X[c];V!==void 0&&V>0&&(X[c]=Math.floor(V*1E3))}; +pFs=function(){var X=MB(),c={},V={},G={};return Object.assign({},(c.sv="966",c),Cb!==null&&(V.v=Cb,V),(G["if"]=X.U?"1":"0",G.nas=String(MP.J.length),G))}; +Zm=function(X){EI.call(this,"audio_audible",X)}; +kG=function(X){rz.call(this,"audio_measurable",X)}; +en=function(){Vr.apply(this,arguments)}; +JB=function(){}; +Uv1=function(X){this.J=X}; +gr8=function(X,c,V){X=X.G();if(typeof X==="function"){var G={};var n={};G=Object.assign({},Cb!==null&&(G.v=Cb,G),(n.sv="966",n.cb=Wiw,n.e=TTs(c),n));n=bv(V,c,fe());g.f0(G,n);V.AI[c]=n;G=V.pN()==2?sjU(G).join("&"):V.Oi.J(G).J;try{return X(V.Af,G,c),0}catch(L){return 2}}else return 1}; +TTs=function(X){var c=iv(X)?"custom_metric_viewable":X;X=bU(R5,function(V){return V==c}); +return D0[X]}; +ml=function(){HL.call(this);this.B=null;this.Z=!1;this.X="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; +uyL=function(X,c,V){V=V.opt_configurable_tracking_events;X.J!=null&&Array.isArray(V)&&OND(X,V,c)}; +P0j=function(X,c,V){var G=lv(MP,c);G||(G=V.opt_nativeTime||-1,G=aI(X,c,EV(X),G),V.opt_osdId&&(G.fS=V.opt_osdId));return G}; +zas=function(X,c,V){var G=lv(MP,c);G||(G=aI(X,c,"n",V.opt_nativeTime||-1));return G}; +BTj=function(X,c){var V=lv(MP,c);V||(V=aI(X,c,"h",-1));return V}; +Kil=function(X){pN();switch(EV(X)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; +Dvs=function(X,c,V,G){V=V===void 0?{}:V;var n={};g.f0(n,{opt_adElement:void 0,opt_fullscreen:void 0},V);var L=X.Of(c,V);V=L?L.Oi:X.J_();if(n.opt_bounds)return V.J(S8("ol",G));if(G!==void 0)if(wFw(G)!==void 0)if(WL)X=S8("ue",G);else if(MyO(X),wb=="i")X=S8("i",G),X["if"]=0;else if(c=X.Of(c,n)){b:{wb=="i"&&(c.SK=!0);L=n.opt_fullscreen;L!==void 0&&dz(c,!!L);var d;if(L=!MB().G)(L=eV(g.bA(),"CrKey")&&!(eV(g.bA(),"CrKey")&&eV(g.bA(),"SmartSpeaker"))||eV(g.bA(),"PlayStation")||eV(g.bA(),"Roku")||lp1()||eV(g.bA(), +"Xbox"))||(L=g.bA(),L=eV(L,"AppleTV")||eV(L,"Apple TV")||eV(L,"CFNetwork")||eV(L,"tvOS")),L||(L=g.bA(),L=eV(L,"sdk_google_atv_x86")||eV(L,"Android TV")),L=!L;L&&(Mv(),L=Q9(gS)===0);if(d=L){switch(c.pN()){case 1:fwl(c,"pv");break;case 2:X.w2(c)}FK("pv")}L=G.toLowerCase();if(d=!d)d=jy(pN().t1,"ssmol")&&L==="loaded"?!1:g.SV(stO,L);if(d&&c.Eg==0){wb!="i"&&(zS.done=!1);d=n!==void 0?n.opt_nativeTime:void 0;cE=d=typeof d==="number"?d:Sy();c.b8=!0;var h=fe();c.Eg=1;c.QH={};c.QH.start=!1;c.QH.firstquartile= +!1;c.QH.midpoint=!1;c.QH.thirdquartile=!1;c.QH.complete=!1;c.QH.resume=!1;c.QH.pause=!1;c.QH.skip=!1;c.QH.mute=!1;c.QH.unmute=!1;c.QH.viewable_impression=!1;c.QH.measurable_impression=!1;c.QH.fully_viewable_audible_half_duration_impression=!1;c.QH.fullscreen=!1;c.QH.exitfullscreen=!1;c.Fa=0;h||(c.Qr().T=d);Kb(zS,[c],!h)}(d=c.Bq[L])&&$Q(c.VQ,d);jy(pN().t1,"fmd")||g.SV(C0O,L)&&c.ri&&c.ri.G(c,null);switch(c.pN()){case 1:var A=iv(L)?X.D.custom_metric_viewable:X.D[L];break;case 2:A=X.T[L]}if(A&&(G=A.call(X, +c,n,G),jy(pN().t1,"fmd")&&g.SV(C0O,L)&&c.ri&&c.ri.G(c,null),G!==void 0)){n=S8(void 0,L);g.f0(n,G);G=n;break b}G=void 0}c.Eg==3&&X.K7(c);X=G}else X=S8("nf",G);else X=void 0;else WL?X=S8("ue"):L?(X=S8(),g.f0(X,MGU(L,!0,!1,!1))):X=S8("nf");return typeof X==="string"?V.J():V.J(X)}; +SAS=function(X,c){c&&(X.X=c)}; +iNO=function(X){var c={};return c.viewability=X.J,c.googleViewability=X.G,c}; +qAj=function(X,c,V){V=V===void 0?{}:V;X=Dvs(OA(ml),c,V,X);return iNO(X)}; +RI=function(X){var c=g.OD.apply(1,arguments).filter(function(G){return G}).join("&"); +if(!c)return X;var V=X.match(/[?&]adurl=/);return V?X.slice(0,V.index+1)+c+"&"+X.slice(V.index+1):X+(X.indexOf("?")===-1?"?":"&")+c}; +cS1=function(X){var c=X.url;X=X.AWh;this.J=c;this.D=X;X=/[?&]dsh=1(&|$)/.test(c);this.Z=!X&&/[?&]ae=1(&|$)/.test(c);this.B=!X&&/[?&]ae=2(&|$)/.test(c);if((this.G=/[?&]adurl=([^&]*)/.exec(c))&&this.G[1]){try{var V=decodeURIComponent(this.G[1])}catch(G){V=null}this.U=V}this.X=(new Date).getTime()-XEt}; +VFU=function(X){X=X.D;if(!X)return"";var c="";X.platform&&(c+="&uap="+encodeURIComponent(X.platform));X.platformVersion&&(c+="&uapv="+encodeURIComponent(X.platformVersion));X.uaFullVersion&&(c+="&uafv="+encodeURIComponent(X.uaFullVersion));X.architecture&&(c+="&uaa="+encodeURIComponent(X.architecture));X.model&&(c+="&uam="+encodeURIComponent(X.model));X.bitness&&(c+="&uab="+encodeURIComponent(X.bitness));X.fullVersionList&&(c+="&uafvl="+encodeURIComponent(X.fullVersionList.map(function(V){return encodeURIComponent(V.brand)+ +";"+encodeURIComponent(V.version)}).join("|"))); +typeof X.wow64!=="undefined"&&(c+="&uaw="+Number(X.wow64));return c.substring(1)}; +LnL=function(X,c,V,G,n){var L=window;var d=d===void 0?!1:d;var h;V?h=(d===void 0?0:d)?"//ep1.adtrafficquality.google/bg/"+XJ(V)+".js":"//pagead2.googlesyndication.com/bg/"+XJ(V)+".js":h="";d=d===void 0?!1:d;V=L.document;var A={};c&&(A._scs_=c);A._bgu_=h;A._bgp_=G;A._li_="v_h.3.0.0.0";n&&(A._upb_=n);(c=L.GoogleTyFxhY)&&typeof c.push=="function"||(c=L.GoogleTyFxhY=[]);c.push(A);c=uU(V).createElement("SCRIPT");c.type="text/javascript";c.async=!0;X=(d===void 0?0:d)?VKs(GnD,XJ(X)+".js"):VKs(nv1,XJ(X)+ +".js");g.BH(c,X);(L=(L.GoogleTyFxhYEET||{})[c.src])?L():V.getElementsByTagName("head")[0].appendChild(c)}; +dBl=function(){try{var X,c;return!!((X=window)==null?0:(c=X.top)==null?0:c.location.href)&&!1}catch(V){return!0}}; +tB=function(){var X=ySl();X=X===void 0?"bevasrsg":X;return new Promise(function(c){var V=window===window.top?window:dBl()?window:window.top,G=V[X],n;((n=G)==null?0:n.bevasrs)?c(new b_(G.bevasrs)):(G||(G={},G=(G.nqfbel=[],G),V[X]=G),G.nqfbel.push(function(L){c(new b_(L))}))})}; +hHU=function(X){var c={c:X.VH,e:X.n0,mc:X.nV,me:X.s9};X.Gx&&(c.co={c:X.Gx.Mj,a:X.Gx.y8,s:X.Gx.RR});return c}; +OV=function(X){g.I.call(this);this.wpc=X}; +b_=function(X){g.I.call(this);var c=this;this.JO=X;this.U="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.J=void 0;this.Vx=this.JO.p;this.X=this.Gb.bind(this);this.addOnDisposeCallback(function(){return void ASO(c)})}; +YhL=function(X){var c;return g.O(function(V){if(V.J==1){if(!X.JO.wpc)throw new nt(30,"NWA");return X.G?V.return(X.G):g.b(V,X.JO.wpc(),2)}c=V.G;X.G=new OV(c);return V.return(X.G)})}; +ASO=function(X){X.J!==void 0&&(X.U.forEach(function(c){var V;(V=X.J)==null||V.removeEventListener(c,X.X)}),X.J=void 0)}; +aX8=function(X){if(g.kU(g.c1(X)))return!1;if(X.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")>=0)return!0;try{var c=new g.$s(X)}catch(V){return g.Ct(jos,function(G){return X.search(G)>0})!=null}return c.B.match(HeD)?!0:g.Ct(jos,function(V){return X.match(V)!=null})!=null}; +g.l_=function(X,c){return X.replace($Bs,function(V,G){try{var n=g.Oz(c,G);if(n==null||n.toString()==null)return V;n=n.toString();if(n==""||!g.kU(g.c1(n)))return encodeURIComponent(n).replace(/%2C/g,",")}catch(L){}return V})}; +MR=function(X,c){return Object.is(X,c)}; +fO=function(X){var c=gb;gb=X;return c}; +WnD=function(X){if(X.Lr!==void 0){var c=pO;pO=!0;try{for(var V=g.r(X.Lr),G=V.next();!G.done;G=V.next()){var n=G.value;n.OZ||(X=void 0,n.OZ=!0,WnD(n),(X=n.Nk)==null||X.call(n,n))}}finally{pO=c}}}; +wE2=function(){var X;return((X=gb)==null?void 0:X.FR)!==!1}; +Fnw=function(X){X&&(X.P4=0);return fO(X)}; +Ev8=function(X,c){fO(c);if(X&&X.w1!==void 0&&X.IF!==void 0&&X.KL!==void 0){if(II(X))for(c=X.P4;cX.P4;)X.w1.pop(),X.KL.pop(),X.IF.pop()}}; +Qo2=function(X,c,V){rSl(X);if(X.Lr.length===0&&X.w1!==void 0)for(var G=0;G0}; +ZeD=function(X){X.w1!=null||(X.w1=[]);X.IF!=null||(X.IF=[]);X.KL!=null||(X.KL=[])}; +rSl=function(X){X.Lr!=null||(X.Lr=[]);X.RK!=null||(X.RK=[])}; +vvs=function(X){function c(){if(pO)throw Error("");if(gb!==null){var G=gb.P4++;ZeD(gb);G0?" "+c:c))}}; +g.YD=function(X,c){if(X.classList)Array.prototype.forEach.call(c,function(n){g.Ax(X,n)}); +else{var V={};Array.prototype.forEach.call(dI(X),function(n){V[n]=!0}); +Array.prototype.forEach.call(c,function(n){V[n]=!0}); +c="";for(var G in V)c+=c.length>0?" "+G:G;g.yO(X,c)}}; +g.jk=function(X,c){X.classList?X.classList.remove(c):g.hx(X,c)&&g.yO(X,Array.prototype.filter.call(dI(X),function(V){return V!=c}).join(" "))}; +g.H6=function(X,c){X.classList?Array.prototype.forEach.call(c,function(V){g.jk(X,V)}):g.yO(X,Array.prototype.filter.call(dI(X),function(V){return!g.SV(c,V)}).join(" "))}; +g.ab=function(X,c,V){V?g.Ax(X,c):g.jk(X,c)}; +pE8=function(X,c){var V=!g.hx(X,c);g.ab(X,c,V)}; +g.$D=function(){g.Gd.call(this);this.J=0;this.endTime=this.startTime=null}; +IXS=function(X,c){Array.isArray(c)||(c=[c]);c=c.map(function(V){return typeof V==="string"?V:V.property+" "+V.duration+"s "+V.timing+" "+V.delay+"s"}); +g.$v(X,"transition",c.join(","))}; +W6=function(X,c,V,G,n){g.$D.call(this);this.G=X;this.Z=c;this.B=V;this.X=G;this.D=Array.isArray(n)?n:[n]}; +NS2=function(X,c,V,G){return new W6(X,c,{opacity:V},{opacity:G},{property:"opacity",duration:c,timing:"ease-in",delay:0})}; +TSD=function(X){X=Jp(X);if(X=="")return null;var c=String(X.slice(0,4)).toLowerCase();if(("url("1||X&&X.split(")"),null;if(X.indexOf("(")>0){if(/"|'/.test(X))return null;c=/([\-\w]+)\(/g;for(var V;V=c.exec(X);)if(!(V[1].toLowerCase()in UBt))return null}return X}; +wI=function(X,c){X=g.UD[X];return X&&X.prototype?(c=Object.getOwnPropertyDescriptor(X.prototype,c))&&c.get||null:null}; +u5j=function(X){var c=g.UD.CSSStyleDeclaration;return c&&c.prototype&&c.prototype[X]||null}; +PFl=function(X,c,V,G){if(X)return X.apply(c,G);if(g.Fn&&document.documentMode<10){if(!c[V].call)throw Error("IE Clobbering detected");}else if(typeof c[V]!="function")throw Error("Clobbering detected");return c[V].apply(c,G)}; +CFw=function(X){if(!X)return"";var c=document.createElement("div").style;zHs(X).forEach(function(V){var G=g.iU&&V in BSS?V:V.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");v7(G,"--")||v7(G,"var")||(V=PFl(Knj,X,X.getPropertyValue?"getPropertyValue":"getAttribute",[V])||"",V=TSD(V),V!=null&&PFl(sot,c,c.setProperty?"setProperty":"setAttribute",[G,V]))}); +return c.cssText||""}; +zHs=function(X){g.sD(X)?X=g.Vk(X):(X=g.JN(X),g.qk(X,"cssText"));return X}; +g.rI=function(X){var c,V=c=0,G=!1;X=X.split(DBL);for(var n=0;n.4?-1:1;return(c==0?null:c)==-1?"rtl":"ltr"}; +g.v6=function(X){if(X instanceof QO||X instanceof ZF||X instanceof xD)return X;if(typeof X.next=="function")return new QO(function(){return X}); +if(typeof X[Symbol.iterator]=="function")return new QO(function(){return X[Symbol.iterator]()}); +if(typeof X.P1=="function")return new QO(function(){return X.P1()}); +throw Error("Not an iterator or iterable.");}; +QO=function(X){this.G=X}; +ZF=function(X){this.G=X}; +xD=function(X){QO.call(this,function(){return X}); +this.U=X}; +kD=function(X,c,V,G,n,L,d,h){this.J=X;this.D=c;this.U=V;this.Z=G;this.X=n;this.B=L;this.G=d;this.T=h}; +ob=function(X,c){if(c==0)return X.J;if(c==1)return X.G;var V=W1(X.J,X.U,c),G=W1(X.U,X.X,c);X=W1(X.X,X.G,c);V=W1(V,G,c);G=W1(G,X,c);return W1(V,G,c)}; +XIw=function(X,c){var V=(c-X.J)/(X.G-X.J);if(V<=0)return 0;if(V>=1)return 1;for(var G=0,n=1,L=0,d=0;d<8;d++){L=ob(X,V);var h=(ob(X,V+1E-6)-L)/1E-6;if(Math.abs(L-c)<1E-6)return V;if(Math.abs(h)<1E-6)break;else L1E-6&&d<8;d++)L=0}; +g.Rb=function(X){g.I.call(this);this.B=1;this.U=[];this.X=0;this.J=[];this.G={};this.D=!!X}; +V8U=function(X,c,V){g.a3(function(){X.apply(c,V)})}; +g.bb=function(X){this.J=X}; +tx=function(X){this.J=X}; +GSD=function(X){this.data=X}; +nQD=function(X){return X===void 0||X instanceof GSD?X:new GSD(X)}; +Ov=function(X){this.J=X}; +g.Lhj=function(X){var c=X.creation;X=X.expiration;return!!X&&Xg.c7()}; +g.lb=function(X){this.J=X}; +dPO=function(){}; +Mw=function(){}; +gI=function(X){this.J=X;this.G=null}; +fT=function(X){if(X.J==null)throw Error("Storage mechanism: Storage unavailable");var c;((c=X.G)!=null?c:X.isAvailable())||QA(Error("Storage mechanism: Storage unavailable"))}; +pT=function(){var X=null;try{X=g.UD.localStorage||null}catch(c){}gI.call(this,X)}; +yes=function(){var X=null;try{X=g.UD.sessionStorage||null}catch(c){}gI.call(this,X)}; +Ib=function(X,c){this.G=X;this.J=c+"::"}; +g.Nw=function(X){var c=new pT;return c.isAvailable()?X?new Ib(c,X):c:null}; +Uv=function(X,c){this.J=X;this.G=c}; +Tw=function(X){this.J=[];if(X)a:{if(X instanceof Tw){var c=X.VR();X=X.Lg();if(this.J.length<=0){for(var V=this.J,G=0;G>>6:(L<65536?h[V++]=224|L>>>12:(h[V++]=240|L>>>18,h[V++]=128|L>>>12&63),h[V++]=128|L>>> +6&63),h[V++]=128|L&63);return h}; +B6=function(X){for(var c=X.length;--c>=0;)X[c]=0}; +KT=function(X,c,V,G,n){this.AG=X;this.vx=c;this.Hx=V;this.CD=G;this.nUy=n;this.Aq=X&&X.length}; +CT=function(X,c){this.pX=X;this.nx=0;this.iZ=c}; +DF=function(X,c){X.QQ[X.pending++]=c&255;X.QQ[X.pending++]=c>>>8&255}; +Sk=function(X,c,V){X.eV>16-V?(X.vS|=c<>16-X.eV,X.eV+=V-16):(X.vS|=c<>>=1,V<<=1;while(--c>0);return V>>>1}; +HbU=function(X,c,V){var G=Array(16),n=0,L;for(L=1;L<=15;L++)G[L]=n=n+V[L-1]<<1;for(V=0;V<=c;V++)n=X[V*2+1],n!==0&&(X[V*2]=j5L(G[n]++,n))}; +a0D=function(X){var c;for(c=0;c<286;c++)X.mB[c*2]=0;for(c=0;c<30;c++)X.Us[c*2]=0;for(c=0;c<19;c++)X.zx[c*2]=0;X.mB[512]=1;X.MR=X.Ay=0;X.zJ=X.matches=0}; +$Ps=function(X){X.eV>8?DF(X,X.vS):X.eV>0&&(X.QQ[X.pending++]=X.vS);X.vS=0;X.eV=0}; +Whw=function(X,c,V){$Ps(X);DF(X,V);DF(X,~V);zw.zL(X.QQ,X.window,c,V,X.pending);X.pending+=V}; +wIS=function(X,c,V,G){var n=c*2,L=V*2;return X[n]>>7)];ib(X,d,V);h=nK[d];h!==0&&(n-=LK[d],Sk(X,n,h))}}while(G>1;d>=1;d--)qw(X,V,d);A=L;do d=X.r6[1],X.r6[1]=X.r6[X.mm--],qw(X,V,1),G=X.r6[1],X.r6[--X.Vp]=d,X.r6[--X.Vp]=G,V[A*2]=V[d*2]+V[G*2],X.depth[A]=(X.depth[d]>=X.depth[G]?X.depth[d]:X.depth[G])+1,V[d*2+1]=V[G*2+1]=A,X.r6[1]=A++,qw(X,V,1);while(X.mm>= +2);X.r6[--X.Vp]=X.r6[1];d=c.pX;A=c.nx;G=c.iZ.AG;n=c.iZ.Aq;L=c.iZ.vx;var Y=c.iZ.Hx,H=c.iZ.nUy,a,W=0;for(a=0;a<=15;a++)X.Cw[a]=0;d[X.r6[X.Vp]*2+1]=0;for(c=X.Vp+1;c<573;c++){var w=X.r6[c];a=d[d[w*2+1]*2+1]+1;a>H&&(a=H,W++);d[w*2+1]=a;if(!(w>A)){X.Cw[a]++;var F=0;w>=Y&&(F=L[w-Y]);var Z=d[w*2];X.MR+=Z*(a+F);n&&(X.Ay+=Z*(G[w*2+1]+F))}}if(W!==0){do{for(a=H-1;X.Cw[a]===0;)a--;X.Cw[a]--;X.Cw[a+1]+=2;X.Cw[H]--;W-=2}while(W>0);for(a=H;a!==0;a--)for(w=X.Cw[a];w!==0;)G=X.r6[--c],G>A||(d[G*2+1]!==a&&(X.MR+=(a- +d[G*2+1])*d[G*2],d[G*2+1]=a),w--)}HbU(V,h,X.Cw)}; +EQ2=function(X,c,V){var G,n=-1,L=c[1],d=0,h=7,A=4;L===0&&(h=138,A=3);c[(V+1)*2+1]=65535;for(G=0;G<=V;G++){var Y=L;L=c[(G+1)*2+1];++d>>=1)if(c&1&&X.mB[V*2]!==0)return 0;if(X.mB[18]!==0||X.mB[20]!==0||X.mB[26]!==0)return 1;for(V=32;V<256;V++)if(X.mB[V*2]!==0)return 1;return 0}; +yV=function(X,c,V){X.QQ[X.tY+X.zJ*2]=c>>>8&255;X.QQ[X.tY+X.zJ*2+1]=c&255;X.QQ[X.u1+X.zJ]=V&255;X.zJ++;c===0?X.mB[V*2]++:(X.matches++,c--,X.mB[(Xj[V]+256+1)*2]++,X.Us[(c<256?GI[c]:GI[256+(c>>>7)])*2]++);return X.zJ===X.Gs-1}; +AL=function(X,c){X.msg=hL[c];return c}; +Yf=function(X){for(var c=X.length;--c>=0;)X[c]=0}; +j7=function(X){var c=X.state,V=c.pending;V>X.AO&&(V=X.AO);V!==0&&(zw.zL(X.output,c.QQ,c.M0,V,X.VF),X.VF+=V,c.M0+=V,X.s$+=V,X.AO-=V,c.pending-=V,c.pending===0&&(c.M0=0))}; +$f=function(X,c){var V=X.Z_>=0?X.Z_:-1,G=X.xU-X.Z_,n=0;if(X.level>0){X.M6.Xa===2&&(X.M6.Xa=Q5s(X));da(X,X.bM);da(X,X.zM);EQ2(X,X.mB,X.bM.nx);EQ2(X,X.Us,X.zM.nx);da(X,X.gg);for(n=18;n>=3&&X.zx[Zbl[n]*2+1]===0;n--);X.MR+=3*(n+1)+5+5+4;var L=X.MR+3+7>>>3;var d=X.Ay+3+7>>>3;d<=L&&(L=d)}else L=d=G+5;if(G+4<=L&&V!==-1)Sk(X,c?1:0,3),Whw(X,V,G);else if(X.strategy===4||d===L)Sk(X,2+(c?1:0),3),FhL(X,HA,aL);else{Sk(X,4+(c?1:0),3);V=X.bM.nx+1;G=X.zM.nx+1;n+=1;Sk(X,V-257,5);Sk(X,G-1,5);Sk(X,n-4,4);for(L=0;L>>8&255;X.QQ[X.pending++]=c&255}; +xP1=function(X,c){var V=X.W2,G=X.xU,n=X.qb,L=X.LB,d=X.xU>X.Ix-262?X.xU-(X.Ix-262):0,h=X.window,A=X.yY,Y=X.Fg,H=X.xU+258,a=h[G+n-1],W=h[G+n];X.qb>=X.i5&&(V>>=2);L>X.VZ&&(L=X.VZ);do{var w=c;if(h[w+n]===W&&h[w+n-1]===a&&h[w]===h[G]&&h[++w]===h[G+1]){G+=2;for(w++;h[++G]===h[++w]&&h[++G]===h[++w]&&h[++G]===h[++w]&&h[++G]===h[++w]&&h[++G]===h[++w]&&h[++G]===h[++w]&&h[++G]===h[++w]&&h[++G]===h[++w]&&Gn){X.Lx=c;n=w;if(w>=L)break;a=h[G+n-1];W=h[G+n]}}}while((c=Y[c&A])>d&&--V!== +0);return n<=X.VZ?n:X.VZ}; +ra=function(X){var c=X.Ix,V;do{var G=X.Xt-X.VZ-X.xU;if(X.xU>=c+(c-262)){zw.zL(X.window,X.window,c,c,0);X.Lx-=c;X.xU-=c;X.Z_-=c;var n=V=X.NZ;do{var L=X.head[--n];X.head[n]=L>=c?L-c:0}while(--V);n=V=c;do L=X.Fg[--n],X.Fg[n]=L>=c?L-c:0;while(--V);G+=c}if(X.M6.HS===0)break;n=X.M6;V=X.window;L=X.xU+X.VZ;var d=n.HS;d>G&&(d=G);d===0?V=0:(n.HS-=d,zw.zL(V,n.input,n.BO,d,L),n.state.wrap===1?n.Zg=Fj(n.Zg,V,d,L):n.state.wrap===2&&(n.Zg=Ea(n.Zg,V,d,L)),n.BO+=d,n.uN+=d,V=d);X.VZ+=V;if(X.VZ+X.fl>=3)for(G=X.xU-X.fl, +X.CE=X.window[G],X.CE=(X.CE<=3&&(X.CE=(X.CE<=3)if(V=yV(X,X.xU-X.Lx,X.NN-3),X.VZ-=X.NN,X.NN<=X.Zc&&X.VZ>=3){X.NN--;do X.xU++,X.CE=(X.CE<=3&&(X.CE=(X.CE<4096)&&(X.NN=2));if(X.qb>=3&&X.NN<=X.qb){G=X.xU+X.VZ-3;V=yV(X,X.xU-1-X.qx,X.qb-3);X.VZ-=X.qb-1;X.qb-=2;do++X.xU<=G&&(X.CE=(X.CE<=3&&X.xU>0&&(G=X.xU-1,V=L[G],V===L[++G]&&V===L[++G]&&V===L[++G])){for(n=X.xU+258;V===L[++G]&&V===L[++G]&&V===L[++G]&&V===L[++G]&&V===L[++G]&&V===L[++G]&&V===L[++G]&&V===L[++G]&&GX.VZ&&(X.NN=X.VZ)}X.NN>=3?(V=yV(X,1,X.NN-3),X.VZ-=X.NN,X.xU+=X.NN,X.NN=0):(V=yV(X,0,X.window[X.xU]),X.VZ--,X.xU++);if(V&&($f(X,!1),X.M6.AO===0))return 1}X.fl=0;return c=== +4?($f(X,!0),X.M6.AO===0?3:4):X.zJ&&($f(X,!1),X.M6.AO===0)?1:2}; +kSl=function(X,c){for(var V;;){if(X.VZ===0&&(ra(X),X.VZ===0)){if(c===0)return 1;break}X.NN=0;V=yV(X,0,X.window[X.xU]);X.VZ--;X.xU++;if(V&&($f(X,!1),X.M6.AO===0))return 1}X.fl=0;return c===4?($f(X,!0),X.M6.AO===0?3:4):X.zJ&&($f(X,!1),X.M6.AO===0)?1:2}; +xf=function(X,c,V,G,n){this.uhh=X;this.EUS=c;this.qd2=V;this.iyW=G;this.func=n}; +oQ1=function(){this.M6=null;this.status=0;this.QQ=null;this.wrap=this.pending=this.M0=this.oY=0;this.Bg=null;this.qB=0;this.method=8;this.cC=-1;this.yY=this.hR=this.Ix=0;this.window=null;this.Xt=0;this.head=this.Fg=null;this.LB=this.i5=this.strategy=this.level=this.Zc=this.W2=this.qb=this.VZ=this.Lx=this.xU=this.aK=this.qx=this.NN=this.Z_=this.uu=this.Pf=this.iQ=this.NZ=this.CE=0;this.mB=new zw.gh(1146);this.Us=new zw.gh(122);this.zx=new zw.gh(78);Yf(this.mB);Yf(this.Us);Yf(this.zx);this.gg=this.zM= +this.bM=null;this.Cw=new zw.gh(16);this.r6=new zw.gh(573);Yf(this.r6);this.Vp=this.mm=0;this.depth=new zw.gh(573);Yf(this.depth);this.eV=this.vS=this.fl=this.matches=this.Ay=this.MR=this.tY=this.zJ=this.Gs=this.u1=0}; +eUD=function(X,c){if(!X||!X.state||c>5||c<0)return X?AL(X,-2):-2;var V=X.state;if(!X.output||!X.input&&X.HS!==0||V.status===666&&c!==4)return AL(X,X.AO===0?-5:-2);V.M6=X;var G=V.cC;V.cC=c;if(V.status===42)if(V.wrap===2)X.Zg=0,WA(V,31),WA(V,139),WA(V,8),V.Bg?(WA(V,(V.Bg.text?1:0)+(V.Bg.tW?2:0)+(V.Bg.extra?4:0)+(V.Bg.name?8:0)+(V.Bg.comment?16:0)),WA(V,V.Bg.time&255),WA(V,V.Bg.time>>8&255),WA(V,V.Bg.time>>16&255),WA(V,V.Bg.time>>24&255),WA(V,V.level===9?2:V.strategy>=2||V.level<2?4:0),WA(V,V.Bg.os& +255),V.Bg.extra&&V.Bg.extra.length&&(WA(V,V.Bg.extra.length&255),WA(V,V.Bg.extra.length>>8&255)),V.Bg.tW&&(X.Zg=Ea(X.Zg,V.QQ,V.pending,0)),V.qB=0,V.status=69):(WA(V,0),WA(V,0),WA(V,0),WA(V,0),WA(V,0),WA(V,V.level===9?2:V.strategy>=2||V.level<2?4:0),WA(V,3),V.status=113);else{var n=8+(V.hR-8<<4)<<8;n|=(V.strategy>=2||V.level<2?0:V.level<6?1:V.level===6?2:3)<<6;V.xU!==0&&(n|=32);V.status=113;wa(V,n+(31-n%31));V.xU!==0&&(wa(V,X.Zg>>>16),wa(V,X.Zg&65535));X.Zg=1}if(V.status===69)if(V.Bg.extra){for(n= +V.pending;V.qB<(V.Bg.extra.length&65535)&&(V.pending!==V.oY||(V.Bg.tW&&V.pending>n&&(X.Zg=Ea(X.Zg,V.QQ,V.pending-n,n)),j7(X),n=V.pending,V.pending!==V.oY));)WA(V,V.Bg.extra[V.qB]&255),V.qB++;V.Bg.tW&&V.pending>n&&(X.Zg=Ea(X.Zg,V.QQ,V.pending-n,n));V.qB===V.Bg.extra.length&&(V.qB=0,V.status=73)}else V.status=73;if(V.status===73)if(V.Bg.name){n=V.pending;do{if(V.pending===V.oY&&(V.Bg.tW&&V.pending>n&&(X.Zg=Ea(X.Zg,V.QQ,V.pending-n,n)),j7(X),n=V.pending,V.pending===V.oY)){var L=1;break}L=V.qBn&&(X.Zg=Ea(X.Zg,V.QQ,V.pending-n,n));L===0&&(V.qB=0,V.status=91)}else V.status=91;if(V.status===91)if(V.Bg.comment){n=V.pending;do{if(V.pending===V.oY&&(V.Bg.tW&&V.pending>n&&(X.Zg=Ea(X.Zg,V.QQ,V.pending-n,n)),j7(X),n=V.pending,V.pending===V.oY)){L=1;break}L=V.qBn&&(X.Zg=Ea(X.Zg,V.QQ,V.pending-n,n));L===0&&(V.status=103)}else V.status= +103;V.status===103&&(V.Bg.tW?(V.pending+2>V.oY&&j7(X),V.pending+2<=V.oY&&(WA(V,X.Zg&255),WA(V,X.Zg>>8&255),X.Zg=0,V.status=113)):V.status=113);if(V.pending!==0){if(j7(X),X.AO===0)return V.cC=-1,0}else if(X.HS===0&&(c<<1)-(c>4?9:0)<=(G<<1)-(G>4?9:0)&&c!==4)return AL(X,-5);if(V.status===666&&X.HS!==0)return AL(X,-5);if(X.HS!==0||V.VZ!==0||c!==0&&V.status!==666){G=V.strategy===2?kSl(V,c):V.strategy===3?vQ8(V,c):vA[V.level].func(V,c);if(G===3||G===4)V.status=666;if(G===1||G===3)return X.AO===0&&(V.cC= +-1),0;if(G===2&&(c===1?(Sk(V,2,3),ib(V,256,HA),V.eV===16?(DF(V,V.vS),V.vS=0,V.eV=0):V.eV>=8&&(V.QQ[V.pending++]=V.vS&255,V.vS>>=8,V.eV-=8)):c!==5&&(Sk(V,0,3),Whw(V,0,0),c===3&&(Yf(V.head),V.VZ===0&&(V.xU=0,V.Z_=0,V.fl=0))),j7(X),X.AO===0))return V.cC=-1,0}if(c!==4)return 0;if(V.wrap<=0)return 1;V.wrap===2?(WA(V,X.Zg&255),WA(V,X.Zg>>8&255),WA(V,X.Zg>>16&255),WA(V,X.Zg>>24&255),WA(V,X.uN&255),WA(V,X.uN>>8&255),WA(V,X.uN>>16&255),WA(V,X.uN>>24&255)):(wa(V,X.Zg>>>16),wa(V,X.Zg&65535));j7(X);V.wrap>0&& +(V.wrap=-V.wrap);return V.pending!==0?0:1}; +kf=function(X){if(!(this instanceof kf))return new kf(X);X=this.options=zw.assign({level:-1,method:8,chunkSize:16384,Kf:15,fQh:8,strategy:0,Z8:""},X||{});X.raw&&X.Kf>0?X.Kf=-X.Kf:X.mWK&&X.Kf>0&&X.Kf<16&&(X.Kf+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.M6=new JeS;this.M6.AO=0;var c=this.M6;var V=X.level,G=X.method,n=X.Kf,L=X.fQh,d=X.strategy;if(c){var h=1;V===-1&&(V=6);n<0?(h=0,n=-n):n>15&&(h=2,n-=16);if(L<1||L>9||G!==8||n<8||n>15||V<0||V>9||d<0||d>4)c=AL(c,-2);else{n===8&&(n=9); +var A=new oQ1;c.state=A;A.M6=c;A.wrap=h;A.Bg=null;A.hR=n;A.Ix=1<>=7;L<30;L++)for(LK[L]=d<<7,n=0;n<1<=Y.Ix&&(c===0&&(Yf(Y.head),Y.xU=0,Y.Z_=0,Y.fl=0),V=new zw.Sz(Y.Ix),zw.zL(V,L,d-Y.Ix,Y.Ix,0),L=V,d=Y.Ix);V=X.HS;G=X.BO;n=X.input;X.HS=d;X.BO=0;X.input=L;for(ra(Y);Y.VZ>=3;){L=Y.xU;d=Y.VZ-2;do Y.CE=(Y.CE<1?c[X[0]]=X[1]:X.length===1&&Object.assign(c,X[0])}; +g.qK=function(X,c){return X in S7?S7[X]:c}; +Xx=function(X){var c=S7.EXPERIMENT_FLAGS;return c?c[X]:void 0}; +qID=function(X){c3.forEach(function(c){return c(X)})}; +g.Gx=function(X){return X&&window.yterr?function(){try{return X.apply(this,arguments)}catch(c){g.V8(c)}}:X}; +g.V8=function(X){var c=g.Pw("yt.logging.errors.log");c?c(X,"ERROR",void 0,void 0,void 0,void 0,void 0):(c=g.qK("ERRORS",[]),c.push([X,"ERROR",void 0,void 0,void 0,void 0,void 0]),iH("ERRORS",c));qID(X)}; +n1=function(X,c,V,G,n){var L=g.Pw("yt.logging.errors.log");L?L(X,"WARNING",c,V,G,void 0,n):(L=g.qK("ERRORS",[]),L.push([X,"WARNING",c,V,G,void 0,n]),iH("ERRORS",L))}; +L1=function(X,c){c=X.split(c);for(var V={},G=0,n=c.length;G1?X[1]:X[0])):{}}; +YP=function(X,c){return GKj(X,c||{},!0)}; +j4=function(X,c){return GKj(X,c||{},!1)}; +GKj=function(X,c,V){var G=X.split("#",2);X=G[0];G=G.length>1?"#"+G[1]:"";var n=X.split("?",2);X=n[0];n=y8(n[1]||"");for(var L in c)if(V||!g.mH(n,L))n[L]=c[L];return g.KB(X,n)+G}; +H3=function(X){if(!c)var c=window.location.href;var V=g.NG(1,X),G=g.Ue(X);V&&G?(X=X.match(I3),c=c.match(I3),X=X[3]==c[3]&&X[1]==c[1]&&X[4]==c[4]):X=G?g.Ue(c)===G&&(Number(g.NG(4,c))||null)===(Number(g.NG(4,X))||null):!0;return X}; +aa=function(X){X||(X=document.location.href);X=g.NG(1,X);return X!==null&&X==="https"}; +$P=function(X){X=nGU(X);return X===null?!1:X[0]==="com"&&X[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; +Ll1=function(X){X=nGU(X);return X===null?!1:X[1]==="google"?!0:X[2]==="google"?X[0]==="au"&&X[1]==="com"?!0:X[0]==="uk"&&X[1]==="co"?!0:!1:!1}; +nGU=function(X){X=g.Ue(X);return X!==null?X.split(".").reverse():null}; +XLU=function(X){return X&&X.match(dRl)?X:qo(X)}; +Fx=function(X){var c=W3;X=X===void 0?SIw():X;var V=Object,G=V.assign,n=wd(c);var L=c.J;try{var d=L.screenX;var h=L.screenY}catch(e){}try{var A=L.outerWidth;var Y=L.outerHeight}catch(e){}try{var H=L.innerWidth;var a=L.innerHeight}catch(e){}try{var W=L.screenLeft;var w=L.screenTop}catch(e){}try{H=L.innerWidth,a=L.innerHeight}catch(e){}try{var F=L.screen.availWidth;var Z=L.screen.availTop}catch(e){}L=[W,w,d,h,F,Z,A,Y,H,a];d=krw(!1,c.J.top);h={};var v=v===void 0?g.UD:v;A=new zK;"SVGElement"in v&&"createElementNS"in +v.document&&A.set(0);Y=pUl();Y["allow-top-navigation-by-user-activation"]&&A.set(1);Y["allow-popups-to-escape-sandbox"]&&A.set(2);v.crypto&&v.crypto.subtle&&A.set(3);"TextDecoder"in v&&"TextEncoder"in v&&A.set(4);v=lXs(A);c=(h.bc=v,h.bih=d.height,h.biw=d.width,h.brdim=L.join(),h.vis=Q9(c.G),h.wgl=!!Fy.WebGLRenderingContext,h);V=G.call(V,n,c);V.ca_type="image";X&&(V.bid=X);return V}; +wd=function(X){var c={};c.dt=yBl;c.flash="0";a:{try{var V=X.J.top.location.href}catch(H){X=2;break a}X=V?V===X.G.location.href?0:1:2}c=(c.frm=X,c);try{c.u_tz=-(new Date).getTimezoneOffset();var G=G===void 0?Fy:G;try{var n=G.history.length}catch(H){n=0}c.u_his=n;var L;c.u_h=(L=Fy.screen)==null?void 0:L.height;var d;c.u_w=(d=Fy.screen)==null?void 0:d.width;var h;c.u_ah=(h=Fy.screen)==null?void 0:h.availHeight;var A;c.u_aw=(A=Fy.screen)==null?void 0:A.availWidth;var Y;c.u_cd=(Y=Fy.screen)==null?void 0: +Y.colorDepth}catch(H){}return c}; +ABt=function(){if(!hDS)return null;var X=hDS();return"open"in X?X:null}; +g.rd=function(X){switch(EE(X)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; +EE=function(X){return X&&"status"in X?X.status:-1}; +g.Q8=function(X,c){typeof X==="function"&&(X=g.Gx(X));return window.setTimeout(X,c)}; +g.Z9=function(X,c){typeof X==="function"&&(X=g.Gx(X));return window.setInterval(X,c)}; +g.xP=function(X){window.clearTimeout(X)}; +g.v3=function(X){window.clearInterval(X)}; +g.oa=function(X){X=kP(X);return typeof X==="string"&&X==="false"?!1:!!X}; +g.e4=function(X,c){X=kP(X);return X===void 0&&c!==void 0?c:Number(X||0)}; +J3=function(){return g.qK("EXPERIMENTS_TOKEN","")}; +kP=function(X){return g.qK("EXPERIMENT_FLAGS",{})[X]}; +mp=function(){for(var X=[],c=g.qK("EXPERIMENTS_FORCED_FLAGS",{}),V=g.r(Object.keys(c)),G=V.next();!G.done;G=V.next())G=G.value,X.push({key:G,value:String(c[G])});V=g.qK("EXPERIMENT_FLAGS",{});G=g.r(Object.keys(V));for(var n=G.next();!n.done;n=G.next())n=n.value,n.startsWith("force_")&&c[n]===void 0&&X.push({key:n,value:String(V[n])});return X}; +Ra=function(X,c,V,G,n,L,d,h){function A(){(Y&&"readyState"in Y?Y.readyState:0)===4&&c&&g.Gx(c)(Y)} +V=V===void 0?"GET":V;G=G===void 0?"":G;h=h===void 0?!1:h;var Y=ABt();if(!Y)return null;"onloadend"in Y?Y.addEventListener("loadend",A,!1):Y.onreadystatechange=A;g.oa("debug_forward_web_query_parameters")&&(X=YVU(X,window.location.search));Y.open(V,X,!0);L&&(Y.responseType=L);d&&(Y.withCredentials=!0);V=V==="POST"&&(window.FormData===void 0||!(G instanceof FormData));if(n=jIl(X,n))for(var H in n)Y.setRequestHeader(H,n[H]),"content-type"===H.toLowerCase()&&(V=!1);V&&Y.setRequestHeader("Content-Type", +"application/x-www-form-urlencoded");if(h&&"setAttributionReporting"in XMLHttpRequest.prototype){X={eventSourceEligible:!0,triggerEligible:!1};try{Y.setAttributionReporting(X)}catch(a){n1(a)}}Y.send(G);return Y}; +jIl=function(X,c){c=c===void 0?{}:c;var V=H3(X),G=g.qK("INNERTUBE_CLIENT_NAME"),n=g.oa("web_ajax_ignore_global_headers_if_set"),L;for(L in HOs){var d=g.qK(HOs[L]),h=L==="X-Goog-AuthUser"||L==="X-Goog-PageId";L!=="X-Goog-Visitor-Id"||d||(d=g.qK("VISITOR_DATA"));var A;if(!(A=!d)){if(!(A=V||(g.Ue(X)?!1:!0))){A=X;var Y;if(Y=g.oa("add_auth_headers_to_remarketing_google_dot_com_ping")&&L==="Authorization"&&(G==="TVHTML5"||G==="TVHTML5_UNPLUGGED"||G==="TVHTML5_SIMPLY")&&Ll1(A))A=pB(g.NG(5,A))||"",A=A.split("/"), +A="/"+(A.length>1?A[1]:""),Y=A==="/pagead";A=Y?!0:!1}A=!A}A||n&&c[L]!==void 0||G==="TVHTML5_UNPLUGGED"&&h||(c[L]=d)}"X-Goog-EOM-Visitor-Id"in c&&"X-Goog-Visitor-Id"in c&&delete c["X-Goog-Visitor-Id"];if(V||!g.Ue(X))c["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(V||!g.Ue(X)){try{var H=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(a){}H&&(c["X-YouTube-Time-Zone"]=H)}document.location.hostname.endsWith("youtubeeducation.com")||!V&&g.Ue(X)||(c["X-YouTube-Ad-Signals"]= +dd(Fx()));return c}; +$Rs=function(X,c){var V=g.Ue(X);g.oa("debug_handle_relative_url_for_query_forward_killswitch")||!V&&H3(X)&&(V=document.location.hostname);var G=pB(g.NG(5,X));G=(V=V&&(V.endsWith("youtube.com")||V.endsWith("youtube-nocookie.com")))&&G&&G.startsWith("/api/");if(!V||G)return X;var n=y8(c),L={};g.aR(ams,function(d){n[d]&&(L[d]=n[d])}); +return j4(X,L)}; +t3=function(X,c){c.method="POST";c.postParams||(c.postParams={});return g.b9(X,c)}; +FlO=function(X,c){if(window.fetch&&c.format!=="XML"){var V={method:c.method||"GET",credentials:"same-origin"};c.headers&&(V.headers=c.headers);c.priority&&(V.priority=c.priority);X=Wlj(X,c);var G=wLD(X,c);G&&(V.body=G);c.withCredentials&&(V.credentials="include");var n=c.context||g.UD,L=!1,d;fetch(X,V).then(function(h){if(!L){L=!0;d&&g.xP(d);var A=h.ok,Y=function(H){H=H||{};A?c.onSuccess&&c.onSuccess.call(n,H,h):c.onError&&c.onError.call(n,H,h);c.onFinish&&c.onFinish.call(n,H,h)}; +(c.format||"JSON")==="JSON"&&(A||h.status>=400&&h.status<500)?h.json().then(Y,function(){Y(null)}):Y(null)}}).catch(function(){c.onError&&c.onError.call(n,{},{})}); +X=c.timeout||0;c.onFetchTimeout&&X>0&&(d=g.Q8(function(){L||(L=!0,g.xP(d),c.onFetchTimeout.call(c.context||g.UD))},X))}else g.b9(X,c)}; +g.b9=function(X,c){var V=c.format||"JSON";X=Wlj(X,c);var G=wLD(X,c),n=!1,L=EG8(X,function(A){if(!n){n=!0;h&&g.xP(h);var Y=g.rd(A),H=null,a=400<=A.status&&A.status<500,W=500<=A.status&&A.status<600;if(Y||a||W)H=rBs(X,V,A,c.convertToSafeHtml);Y&&(Y=QIU(V,A,H));H=H||{};a=c.context||g.UD;Y?c.onSuccess&&c.onSuccess.call(a,A,H):c.onError&&c.onError.call(a,A,H);c.onFinish&&c.onFinish.call(a,A,H)}},c.method,G,c.headers,c.responseType,c.withCredentials); +G=c.timeout||0;if(c.onTimeout&&G>0){var d=c.onTimeout;var h=g.Q8(function(){n||(n=!0,L.abort(),g.xP(h),d.call(c.context||g.UD,L))},G)}return L}; +Wlj=function(X,c){c.includeDomain&&(X=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+X);var V=g.qK("XSRF_FIELD_NAME");if(c=c.urlParams)c[V]&&delete c[V],X=YP(X,c);return X}; +wLD=function(X,c){var V=g.qK("XSRF_FIELD_NAME"),G=g.qK("XSRF_TOKEN"),n=c.postBody||"",L=c.postParams,d=g.qK("XSRF_FIELD_NAME"),h;c.headers&&(h=c.headers["Content-Type"]);c.excludeXsrf||g.Ue(X)&&!c.withCredentials&&g.Ue(X)!==document.location.hostname||c.method!=="POST"||h&&h!=="application/x-www-form-urlencoded"||c.postParams&&c.postParams[d]||(L||(L={}),L[V]=G);(g.oa("ajax_parse_query_data_only_when_filled")&&L&&Object.keys(L).length>0||L)&&typeof n==="string"&&(n=y8(n),g.f0(n,L),n=c.postBodyFormat&& +c.postBodyFormat==="JSON"?JSON.stringify(n):g.BU(n));L=n||L&&!g.tN(L);!ZOS&&L&&c.method!=="POST"&&(ZOS=!0,g.V8(Error("AJAX request with postData should use POST")));return n}; +rBs=function(X,c,V,G){var n=null;switch(c){case "JSON":try{var L=V.responseText}catch(d){throw G=Error("Error reading responseText"),G.params=X,n1(G),d;}X=V.getResponseHeader("Content-Type")||"";L&&X.indexOf("json")>=0&&(L.substring(0,5)===")]}'\n"&&(L=L.substring(5)),n=JSON.parse(L));break;case "XML":if(X=(X=V.responseXML)?xRU(X):null)n={},g.aR(X.getElementsByTagName("*"),function(d){n[d.tagName]=vGD(d)})}G&&kKO(n); +return n}; +kKO=function(X){if(g.Cj(X))for(var c in X)c==="html_content"||Tsj(c,"_html")?X[c]=Ic(X[c]):kKO(X[c])}; +QIU=function(X,c,V){if(c&&c.status===204)return!0;switch(X){case "JSON":return!!V;case "XML":return Number(V&&V.return_code)===0;case "RAW":return!0;default:return!!V}}; +xRU=function(X){return X?(X=("responseXML"in X?X.responseXML:X).getElementsByTagName("root"))&&X.length>0?X[0]:null:null}; +vGD=function(X){var c="";g.aR(X.childNodes,function(V){c+=V.nodeValue}); +return c}; +l9=function(X,c){var V=g.M5(c),G;return(new g.rL(function(n,L){V.onSuccess=function(d){g.rd(d)?n(new oGD(d)):L(new OE("Request failed, status="+EE(d),"net.badstatus",d))}; +V.onError=function(d){L(new OE("Unknown request error","net.unknown",d))}; +V.onTimeout=function(d){L(new OE("Request timed out","net.timeout",d))}; +G=g.b9(X,V)})).Vr(function(n){if(n instanceof o3){var L; +(L=G)==null||L.abort()}return xc(n)})}; +g.Ml=function(X,c,V,G){function n(h,A,Y){return h.Vr(function(H){if(A<=0||EE(H.xhr)===403)return xc(new OE("Request retried too many times","net.retryexhausted",H.xhr,H));H=Math.pow(2,V-A+1)*Y;var a=d>0?Math.min(d,H):H;return L(Y).then(function(){return n(l9(X,c),A-1,a)})})} +function L(h){return new g.rL(function(A){setTimeout(A,h)})} +var d=d===void 0?-1:d;return n(l9(X,c),V-1,G)}; +OE=function(X,c,V){EH.call(this,X+", errorCode="+c);this.errorCode=c;this.xhr=V;this.name="PromiseAjaxError"}; +oGD=function(X){this.xhr=X}; +gd=function(X){this.J=X===void 0?null:X;this.U=0;this.G=null}; +f1=function(X){var c=new gd;X=X===void 0?null:X;c.U=2;c.G=X===void 0?null:X;return c}; +p1=function(X){var c=new gd;X=X===void 0?null:X;c.U=1;c.G=X===void 0?null:X;return c}; +g.UE=function(X,c,V,G,n){Ia||Nl.set(""+X,c,{UC:V,path:"/",domain:G===void 0?"youtube.com":G,secure:n===void 0?!1:n})}; +g.Tx=function(X,c){if(!Ia)return Nl.get(""+X,c)}; +g.u9=function(X,c,V){Ia||Nl.remove(""+X,c===void 0?"/":c,V===void 0?"youtube.com":V)}; +eDt=function(){if(g.oa("embeds_web_enable_cookie_detection_fix")){if(!g.UD.navigator.cookieEnabled)return!1}else if(!Nl.isEnabled())return!1;if(!Nl.isEmpty())return!0;g.oa("embeds_web_enable_cookie_detection_fix")?Nl.set("TESTCOOKIESENABLED","1",{UC:60,fby:"none",secure:!0}):Nl.set("TESTCOOKIESENABLED","1",{UC:60});if(Nl.get("TESTCOOKIESENABLED")!=="1")return!1;Nl.remove("TESTCOOKIESENABLED");return!0}; +g.T=function(X,c){if(X)return X[c.name]}; +P3=function(X){var c=g.qK("INNERTUBE_HOST_OVERRIDE");c&&(X=String(c)+String(Td(X)));return X}; +JBj=function(X){var c={};g.oa("json_condensed_response")&&(c.prettyPrint="false");return X=j4(X,c)}; +zx=function(X,c){var V=V===void 0?{}:V;X={method:c===void 0?"POST":c,mode:H3(X)?"same-origin":"cors",credentials:H3(X)?"same-origin":"include"};c={};for(var G=g.r(Object.keys(V)),n=G.next();!n.done;n=G.next())n=n.value,V[n]&&(c[n]=V[n]);Object.keys(c).length>0&&(X.headers=c);return X}; +B3=function(){var X=/Chrome\/(\d+)/.exec(g.bA());return X?parseFloat(X[1]):NaN}; +sE=function(){return g.K1("android")&&g.K1("chrome")&&!(g.K1("trident/")||g.K1("edge/"))&&!g.K1("cobalt")}; +mRs=function(){return g.K1("armv7")||g.K1("aarch64")||g.K1("android")}; +g.C1=function(){return g.K1("cobalt")}; +D9=function(){return g.K1("cobalt")&&g.K1("appletv")}; +S4=function(){return g.K1("(ps3; leanback shell)")||g.K1("ps3")&&g.C1()}; +RDl=function(){return g.K1("(ps4; leanback shell)")||g.K1("ps4")&&g.C1()}; +g.bO8=function(){return g.C1()&&(g.K1("ps4 vr")||g.K1("ps4 pro vr"))}; +i9=function(){var X=/WebKit\/([0-9]+)/.exec(g.bA());return!!(X&&parseInt(X[1],10)>=600)}; +ql=function(){var X=/WebKit\/([0-9]+)/.exec(g.bA());return!!(X&&parseInt(X[1],10)>=602)}; +tns=function(){return g.K1("iemobile")||g.K1("windows phone")&&g.K1("edge")}; +Ve=function(){return(Xv||ce)&&g.K1("applewebkit")&&!g.K1("version")&&(!g.K1("safari")||g.K1("gsa/"))}; +nv=function(){return g.Gk&&g.K1("version/")}; +Lv=function(){return g.K1("smart-tv")&&g.K1("samsung")}; +g.K1=function(X){var c=g.bA();return c?c.toLowerCase().indexOf(X)>=0:!1}; +dN=function(){return Uul()||Ve()||nv()?!0:g.qK("EOM_VISITOR_DATA")?!1:!0}; +ye=function(X,c){return c===void 0||c===null?X:c==="1"||c===!0||c===1||c==="True"?!0:!1}; +hj=function(X,c,V){for(var G in V)if(V[G]==c)return V[G];return X}; +Aj=function(X,c){return c===void 0||c===null?X:Number(c)}; +Y3=function(X,c){return c===void 0||c===null?X:c.toString()}; +jP=function(X,c){if(c){if(X==="fullwidth")return Infinity;if(X==="fullheight")return 0}return X&&(c=X.match(OOj))&&(X=Number(c[2]),c=Number(c[1]),!isNaN(X)&&!isNaN(c)&&X>0)?c/X:NaN}; +He=function(X){var c=X.docid||X.video_id||X.videoId||X.id;if(c)return c;c=X.raw_player_response;c||(X=X.player_response)&&(c=JSON.parse(X));return c&&c.videoDetails&&c.videoDetails.videoId||null}; +lmD=function(X){return al(X,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; +g.$3=function(X){return X==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||X==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; +al=function(X,c){c=(c===void 0?0:c)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(c="EMBEDDED_PLAYER_MODE_PFL");var V=X.raw_embedded_player_response;if(!V&&(X=X.embedded_player_response))try{V=JSON.parse(X)}catch(G){return c}return V?hj(c,V.embeddedPlayerMode,Mnl):c}; +wN=function(X){EH.call(this,X.message||X.description||X.name);this.isMissing=X instanceof We;this.isTimeout=X instanceof OE&&X.errorCode=="net.timeout";this.isCanceled=X instanceof o3}; +We=function(){EH.call(this,"Biscotti ID is missing from server")}; +gGs=function(){if(g.oa("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!dN())return Error("User has not consented - not fetching biscotti id.");var X=g.qK("PLAYER_VARS",{});if(g.Oz(X,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(lmD(X))return Error("Biscotti id fetching has been disabled for pfl.")}; +Nbt=function(){var X=gGs();if(X!==void 0)return xc(X);Fv||(Fv=l9("//googleads.g.doubleclick.net/pagead/id",fmO).then(pLl).Vr(function(c){return ImL(2,c)})); +return Fv}; +pLl=function(X){X=X.xhr.responseText;if(!v7(X,")]}'"))throw new We;X=JSON.parse(X.substr(4));if((X.type||1)>1)throw new We;X=X.id;ibD(X);Fv=p1(X);URw(18E5,2);return X}; +ImL=function(X,c){c=new wN(c);ibD("");Fv=f1(c);X>0&&URw(12E4,X-1);throw c;}; +URw=function(X,c){g.Q8(function(){l9("//googleads.g.doubleclick.net/pagead/id",fmO).then(pLl,function(V){return ImL(c,V)}).Vr(g.WU)},X)}; +TbL=function(){try{var X=g.Pw("yt.ads.biscotti.getId_");return X?X():Nbt()}catch(c){return xc(c)}}; +P_s=function(X){X&&(X.dataset?X.dataset[uKs()]="true":JVD(X))}; +zDw=function(X){return X?X.dataset?X.dataset[uKs()]:X.getAttribute("data-loaded"):null}; +uKs=function(){return Bbl.loaded||(Bbl.loaded="loaded".replace(/\-([a-z])/g,function(X,c){return c.toUpperCase()}))}; +Kls=function(){var X=document;if("visibilityState"in X)return X.visibilityState;var c=E1+"VisibilityState";if(c in X)return X[c]}; +rN=function(X,c){var V;lF(X,function(G){V=c[G];return!!V}); +return V}; +Qe=function(X){if(X.requestFullscreen)X=X.requestFullscreen(void 0);else if(X.webkitRequestFullscreen)X=X.webkitRequestFullscreen();else if(X.mozRequestFullScreen)X=X.mozRequestFullScreen();else if(X.msRequestFullscreen)X=X.msRequestFullscreen();else if(X.webkitEnterFullscreen)X=X.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return X instanceof Promise?X:Promise.resolve()}; +ve=function(X){var c;g.Zh()?x3()==X&&(c=document):c=X;return c&&(X=rN(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],c))?(c=X.call(c),c instanceof Promise?c:Promise.resolve()):Promise.resolve()}; +sI2=function(X){return g.Ct(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(c){return"on"+c.toLowerCase()in X})}; +C_S=function(){var X=document;return g.Ct(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(c){return"on"+c.toLowerCase()in X})}; +g.Zh=function(){return!!rN(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; +x3=function(X){X=X===void 0?!1:X;var c=rN(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(X)for(;c&&c.shadowRoot;)c=c.shadowRoot.fullscreenElement;return c?c:null}; +k3=function(X){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(X=X||window.event){this.event=X;for(var c in X)c in DRw||(this[c]=X[c]);this.scale=X.scale;this.rotation=X.rotation;var V=X.target||X.srcElement;V&&V.nodeType==3&&(V=V.parentNode);this.target=V;var G=X.relatedTarget; +if(G)try{G=G.nodeName?G:null}catch(n){G=null}else this.type=="mouseover"?G=X.fromElement:this.type=="mouseout"&&(G=X.toElement);this.relatedTarget=G;this.clientX=X.clientX!=void 0?X.clientX:X.pageX;this.clientY=X.clientY!=void 0?X.clientY:X.pageY;this.keyCode=X.keyCode?X.keyCode:X.which;this.charCode=X.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=X.altKey;this.ctrlKey=X.ctrlKey;this.shiftKey=X.shiftKey;this.metaKey=X.metaKey;this.J=X.pageX;this.G=X.pageY}}catch(n){}}; +SVS=function(X){if(document.body&&document.documentElement){var c=document.body.scrollTop+document.documentElement.scrollTop;X.J=X.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);X.G=X.clientY+c}}; +iOS=function(X,c,V,G){G=G===void 0?{}:G;X.addEventListener&&(c!="mouseenter"||"onmouseenter"in document?c!="mouseleave"||"onmouseenter"in document?c=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(c="MozMousePixelScroll"):c="mouseout":c="mouseover");return bU(ol,function(n){var L=typeof n[4]==="boolean"&&n[4]==!!G,d=g.Cj(n[4])&&g.Cj(G)&&g.lU(n[4],G);return!!n.length&&n[0]==X&&n[1]==c&&n[2]==V&&(L||d)})}; +g.eP=function(X,c,V,G){G=G===void 0?{}:G;if(!X||!X.addEventListener&&!X.attachEvent)return"";var n=iOS(X,c,V,G);if(n)return n;n=++qVw.count+"";var L=!(c!="mouseenter"&&c!="mouseleave"||!X.addEventListener||"onmouseenter"in document);var d=L?function(h){h=new k3(h);if(!YE(h.relatedTarget,function(A){return A==X},!0))return h.currentTarget=X,h.type=c,V.call(X,h)}:function(h){h=new k3(h); +h.currentTarget=X;return V.call(X,h)}; +d=g.Gx(d);X.addEventListener?(c=="mouseenter"&&L?c="mouseover":c=="mouseleave"&&L?c="mouseout":c=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(c="MozMousePixelScroll"),X62()||typeof G==="boolean"?X.addEventListener(c,d,G):X.addEventListener(c,d,!!G.capture)):X.attachEvent("on"+c,d);ol[n]=[X,c,V,d,G];return n}; +VkD=function(X){return cx2(X,function(c){return g.hx(c,"ytp-ad-has-logging-urls")})}; +cx2=function(X,c){var V=document.body||document;return g.eP(V,"click",function(G){var n=YE(G.target,function(L){return L===V||c(L)},!0); +n&&n!==V&&!n.disabled&&(G.currentTarget=n,X.call(n,G))})}; +g.Jj=function(X){X&&(typeof X=="string"&&(X=[X]),g.aR(X,function(c){if(c in ol){var V=ol[c],G=V[0],n=V[1],L=V[3];V=V[4];G.removeEventListener?X62()||typeof V==="boolean"?G.removeEventListener(n,L,V):G.removeEventListener(n,L,!!V.capture):G.detachEvent&&G.detachEvent("on"+n,L);delete ol[c]}}))}; +m9=function(X){for(var c in ol)ol[c][0]==X&&g.Jj(c)}; +Rl=function(X){X=X||window.event;var c;X.composedPath&&typeof X.composedPath==="function"?c=X.composedPath():c=X.path;c&&c.length?X=c[0]:(X=X||window.event,X=X.target||X.srcElement,X.nodeType==3&&(X=X.parentNode));return X}; +b5=function(X){this.D=X;this.J=null;this.X=0;this.B=null;this.Z=0;this.G=[];for(X=0;X<4;X++)this.G.push(0);this.U=0;this.A7=g.eP(window,"mousemove",(0,g.qL)(this.C,this));this.T=g.Z9((0,g.qL)(this.G_,this),25)}; +tj=function(X){g.I.call(this);this.D=[];this.hX=X||this}; +O1=function(X,c,V,G){for(var n=0;n0?V:0;V=G?Date.now()+G*1E3:0;if((G=G?(0,g.gN)():fv())&&window.JSON){typeof c!=="string"&&(c=JSON.stringify(c,void 0));try{G.set(X,c,V)}catch(n){G.remove(X)}}}; +g.Il=function(X){var c=fv(),V=(0,g.gN)();if(!c&&!V||!window.JSON)return null;try{var G=c.get(X)}catch(n){}if(typeof G!=="string")try{G=V.get(X)}catch(n){}if(typeof G!=="string")return null;try{G=JSON.parse(G,void 0)}catch(n){}return G}; +LoU=function(){var X=(0,g.gN)();if(X&&(X=X.G("yt-player-quality")))return X.creation}; +g.Nc=function(X){try{var c=fv(),V=(0,g.gN)();c&&c.remove(X);V&&V.remove(X)}catch(G){}}; +g.U1=function(){return g.Il("yt-remote-session-screen-id")}; +dwj=function(X){var c=this;this.G=void 0;this.J=!1;X.addEventListener("beforeinstallprompt",function(V){V.preventDefault();c.G=V}); +X.addEventListener("appinstalled",function(){c.J=!0},{once:!0})}; +Tk=function(){if(!g.UD.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.UD.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.UD.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.UD.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.UD.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(X){return"WEB_DISPLAY_MODE_UNKNOWN"}}; +u5=function(){this.I8=!0}; +yxl=function(){u5.instance||(u5.instance=new u5);return u5.instance}; +hFl=function(X){switch(X){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}}; +AxD=function(){this.J=g.qK("ALT_PREF_COOKIE_NAME","PREF");this.G=g.qK("ALT_PREF_COOKIE_DOMAIN","youtube.com");var X=g.Tx(this.J);X&&this.parse(X)}; +g.zk=function(){Pe||(Pe=new AxD);return Pe}; +g.Be=function(X,c){return!!((Yvj("f"+(Math.floor(c/31)+1))||0)&1<0;)switch(X=$u.shift(),X.type){case "ERROR":Yu.qY(X.payload);break;case "EVENT":Yu.logEvent(X.eventType,X.payload)}}; +wi=function(X){W8||(Yu?Yu.qY(X):($u.push({type:"ERROR",payload:X}),$u.length>10&&$u.shift()))}; +F_=function(X,c){W8||(Yu?Yu.logEvent(X,c):($u.push({type:"EVENT",eventType:X,payload:c}),$u.length>10&&$u.shift()))}; +Ew=function(X){if(X.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; +ri=function(X){return X.substr(0,X.indexOf(":"))||X}; +g.Qa=function(X,c,V,G,n){c=c===void 0?{}:c;V=V===void 0?EDl[X]:V;G=G===void 0?rx1[X]:G;n=n===void 0?QbD[X]:n;g.SP.call(this,V,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:X},c));this.type=X;this.message=V;this.level=G;this.J=n;Object.setPrototypeOf(this,g.Qa.prototype)}; +Zs=function(X,c){g.Qa.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:c,foundObjectStores:X},EDl.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,Zs.prototype)}; +xu=function(X,c){var V=Error.call(this);this.message=V.message;"stack"in V&&(this.stack=V.stack);this.index=X;this.objectStore=c;Object.setPrototypeOf(this,xu.prototype)}; +ku=function(X,c,V,G){c=ri(c);var n=X instanceof Error?X:Error("Unexpected error: "+X);if(n instanceof g.Qa)return n;X={objectStoreNames:V,dbName:c,dbVersion:G};if(n.name==="QuotaExceededError")return new g.Qa("QUOTA_EXCEEDED",X);if(g.v8&&n.name==="UnknownError")return new g.Qa("QUOTA_MAYBE_EXCEEDED",X);if(n instanceof xu)return new g.Qa("MISSING_INDEX",Object.assign({},X,{objectStore:n.objectStore,index:n.index}));if(n.name==="InvalidStateError"&&ZTD.some(function(L){return n.message.includes(L)}))return new g.Qa("EXECUTE_TRANSACTION_ON_CLOSED_DB", +X); +if(n.name==="AbortError")return new g.Qa("UNKNOWN_ABORT",X,n.message);n.args=[Object.assign({},X,{name:"IdbError",Ci:n.name})];n.level="WARNING";return n}; +g.o0=function(X,c,V){var G=Aa();return new g.Qa("IDB_NOT_SUPPORTED",{context:{caller:X,publicName:c,version:V,hasSucceededOnce:G==null?void 0:G.hasSucceededOnce}})}; +xw1=function(X){if(!X)throw Error();throw X;}; +vDS=function(X){return X}; +eA=function(X){this.J=X}; +g.Ja=function(X){function c(n){if(G.state.status==="PENDING"){G.state={status:"REJECTED",reason:n};n=g.r(G.G);for(var L=n.next();!L.done;L=n.next())L=L.value,L()}} +function V(n){if(G.state.status==="PENDING"){G.state={status:"FULFILLED",value:n};n=g.r(G.J);for(var L=n.next();!L.done;L=n.next())L=L.value,L()}} +var G=this;this.state={status:"PENDING"};this.J=[];this.G=[];X=X.J;try{X(V,c)}catch(n){c(n)}}; +kwD=function(X,c,V,G,n){try{if(X.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var L=V(X.state.value);L instanceof g.Ja?ms(X,c,L,G,n):G(L)}catch(d){n(d)}}; +oDt=function(X,c,V,G,n){try{if(X.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var L=V(X.state.reason);L instanceof g.Ja?ms(X,c,L,G,n):G(L)}catch(d){n(d)}}; +ms=function(X,c,V,G,n){c===V?n(new TypeError("Circular promise chain detected.")):V.then(function(L){L instanceof g.Ja?ms(X,c,L,G,n):G(L)},function(L){n(L)})}; +eFD=function(X,c,V){function G(){V(X.error);L()} +function n(){c(X.result);L()} +function L(){try{X.removeEventListener("success",n),X.removeEventListener("error",G)}catch(d){}} +X.addEventListener("success",n);X.addEventListener("error",G)}; +Jxt=function(X){return new Promise(function(c,V){eFD(X,c,V)})}; +R0=function(X){return new g.Ja(new eA(function(c,V){eFD(X,c,V)}))}; +bE=function(X,c){return new g.Ja(new eA(function(V,G){function n(){var L=X?c(X):null;L?L.then(function(d){X=d;n()},G):V()} +n()}))}; +mws=function(X,c){this.request=X;this.cursor=c}; +RF2=function(X){return R0(X).then(function(c){return c?new mws(X,c):null})}; +g.bTD=function(X){X.cursor.continue(void 0);return RF2(X.request)}; +tkS=function(X,c){this.J=X;this.options=c;this.transactionCount=0;this.U=Math.round((0,g.ta)());this.G=!1}; +g.lE=function(X,c,V){X=X.J.createObjectStore(c,V);return new Ow(X)}; +M8=function(X,c){X.J.objectStoreNames.contains(c)&&X.J.deleteObjectStore(c)}; +g.p$=function(X,c,V){return g.gi(X,[c],{mode:"readwrite",SS:!0},function(G){return g.f$(G.objectStore(c),V)})}; +g.gi=function(X,c,V,G){var n,L,d,h,A,Y,H,a,W,w,F,Z;return g.O(function(v){switch(v.J){case 1:var e={mode:"readonly",SS:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof V==="string"?e.mode=V:Object.assign(e,V);n=e;X.transactionCount++;L=n.SS?3:1;d=0;case 2:if(h){v.Wl(4);break}d++;A=Math.round((0,g.ta)());g.x1(v,5);Y=X.J.transaction(c,n.mode);e=new I0(Y);e=OTt(e,G);return g.b(v,e,7);case 7:return H=v.G,a=Math.round((0,g.ta)()),lFl(X,A,a,d,void 0,c.join(),n),v.return(H);case 5:W=g.o8(v);w=Math.round((0,g.ta)()); +F=ku(W,X.J.name,c.join(),X.J.version);if((Z=F instanceof g.Qa&&!F.J)||d>=L)lFl(X,A,w,d,F,c.join(),n),h=F;v.Wl(2);break;case 4:return v.return(Promise.reject(h))}})}; +lFl=function(X,c,V,G,n,L,d){c=V-c;n?(n instanceof g.Qa&&(n.type==="QUOTA_EXCEEDED"||n.type==="QUOTA_MAYBE_EXCEEDED")&&F_("QUOTA_EXCEEDED",{dbName:ri(X.J.name),objectStoreNames:L,transactionCount:X.transactionCount,transactionMode:d.mode}),n instanceof g.Qa&&n.type==="UNKNOWN_ABORT"&&(V-=X.U,V<0&&V>=2147483648&&(V=0),F_("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:L,transactionDuration:c,transactionCount:X.transactionCount,dbDuration:V}),X.G=!0),Mk2(X,!1,G,L,c,d.tag),wi(n)):Mk2(X,!0,G,L,c, +d.tag)}; +Mk2=function(X,c,V,G,n,L){F_("TRANSACTION_ENDED",{objectStoreNames:G,connectionHasUnknownAbortedTransaction:X.G,duration:n,isSuccessful:c,tryCount:V,tag:L===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":L})}; +Ow=function(X){this.J=X}; +g.N8=function(X,c,V){X.J.createIndex(c,V,{unique:!1})}; +gDO=function(X,c){return g.Uw(X,{query:c},function(V){return V.delete().then(function(){return g.TJ(V)})}).then(function(){})}; +fFL=function(X,c,V){var G=[];return g.Uw(X,{query:c},function(n){if(!(V!==void 0&&G.length>=V))return G.push(n.getValue()),g.TJ(n)}).then(function(){return G})}; +IFD=function(X){return"getAllKeys"in IDBObjectStore.prototype?R0(X.J.getAllKeys(void 0,void 0)):p62(X)}; +p62=function(X){var c=[];return g.NIl(X,{query:void 0},function(V){c.push(V.cursor.primaryKey);return g.bTD(V)}).then(function(){return c})}; +g.f$=function(X,c,V){return R0(X.J.put(c,V))}; +g.Uw=function(X,c,V){X=X.J.openCursor(c.query,c.direction);return uE(X).then(function(G){return bE(G,V)})}; +g.NIl=function(X,c,V){var G=c.query;c=c.direction;X="openKeyCursor"in IDBObjectStore.prototype?X.J.openKeyCursor(G,c):X.J.openCursor(G,c);return RF2(X).then(function(n){return bE(n,V)})}; +I0=function(X){var c=this;this.J=X;this.U=new Map;this.G=!1;this.done=new Promise(function(V,G){c.J.addEventListener("complete",function(){V()}); +c.J.addEventListener("error",function(n){n.currentTarget===n.target&&G(c.J.error)}); +c.J.addEventListener("abort",function(){var n=c.J.error;if(n)G(n);else if(!c.G){n=g.Qa;for(var L=c.J.objectStoreNames,d=[],h=0;h=V))return G.push(n.getValue()),g.TJ(n)}).then(function(){return G})}; +g.P8=function(X,c,V){X=X.J.openCursor(c.query===void 0?null:c.query,c.direction===void 0?"next":c.direction);return uE(X).then(function(G){return bE(G,V)})}; +zJ=function(X,c){this.request=X;this.cursor=c}; +uE=function(X){return R0(X).then(function(c){return c?new zJ(X,c):null})}; +g.TJ=function(X){X.cursor.continue(void 0);return uE(X.request)}; +unD=function(X,c,V){return new Promise(function(G,n){function L(){W||(W=new tkS(d.result,{closed:a}));return W} +var d=c!==void 0?self.indexedDB.open(X,c):self.indexedDB.open(X);var h=V.blocked,A=V.blocking,Y=V.d$S,H=V.upgrade,a=V.closed,W;d.addEventListener("upgradeneeded",function(w){try{if(w.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(d.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");w.dataLoss&&w.dataLoss!=="none"&&F_("IDB_DATA_CORRUPTED",{reason:w.dataLossMessage||"unknown reason",dbName:ri(X)});var F=L(),Z=new I0(d.transaction); +H&&H(F,function(v){return w.oldVersion=v},Z); +Z.done.catch(function(v){n(v)})}catch(v){n(v)}}); +d.addEventListener("success",function(){var w=d.result;A&&w.addEventListener("versionchange",function(){A(L())}); +w.addEventListener("close",function(){F_("IDB_UNEXPECTEDLY_CLOSED",{dbName:ri(X),dbVersion:w.version});Y&&Y()}); +G(L())}); +d.addEventListener("error",function(){n(d.error)}); +h&&d.addEventListener("blocked",function(){h()})})}; +PbD=function(X,c,V){V=V===void 0?{}:V;return unD(X,c,V)}; +B8=function(X,c){c=c===void 0?{}:c;var V,G,n,L;return g.O(function(d){if(d.J==1)return g.x1(d,2),V=self.indexedDB.deleteDatabase(X),G=c,(n=G.blocked)&&V.addEventListener("blocked",function(){n()}),g.b(d,Jxt(V),4); +if(d.J!=2)return g.k1(d,0);L=g.o8(d);throw ku(L,X,"",-1);})}; +K$=function(X,c){this.name=X;this.options=c;this.U=!0;this.Z=this.X=0}; +zFs=function(X,c){return new g.Qa("INCOMPATIBLE_DB_VERSION",{dbName:X.name,oldVersion:X.options.version,newVersion:c})}; +g.C$=function(X,c){if(!c)throw g.o0("openWithToken",ri(X.name));return X.open()}; +BIl=function(X,c){var V;return g.O(function(G){if(G.J==1)return g.b(G,g.C$(Ds,c),2);V=G.G;return G.return(g.gi(V,["databases"],{SS:!0,mode:"readwrite"},function(n){var L=n.objectStore("databases");return L.get(X.actualName).then(function(d){if(d?X.actualName!==d.actualName||X.publicName!==d.publicName||X.userIdentifier!==d.userIdentifier:1)return g.f$(L,X).then(function(){})})}))})}; +SA=function(X,c){var V;return g.O(function(G){if(G.J==1)return X?g.b(G,g.C$(Ds,c),2):G.return();V=G.G;return G.return(V.delete("databases",X))})}; +KoD=function(X,c){var V,G;return g.O(function(n){return n.J==1?(V=[],g.b(n,g.C$(Ds,c),2)):n.J!=3?(G=n.G,g.b(n,g.gi(G,["databases"],{SS:!0,mode:"readonly"},function(L){V.length=0;return g.Uw(L.objectStore("databases"),{},function(d){X(d.getValue())&&V.push(d.getValue());return g.TJ(d)})}),3)):n.return(V)})}; +sbs=function(X,c){return KoD(function(V){return V.publicName===X&&V.userIdentifier!==void 0},c)}; +Cbj=function(){var X,c,V,G;return g.O(function(n){switch(n.J){case 1:X=Aa();if((c=X)==null?0:c.hasSucceededOnce)return n.return(!0);if(iE&&i9()&&!ql()||g.q8)return n.return(!1);try{if(V=self,!(V.indexedDB&&V.IDBIndex&&V.IDBKeyRange&&V.IDBObjectStore))return n.return(!1)}catch(L){return n.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return n.return(!1);g.x1(n,2);G={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; +return g.b(n,BIl(G,X7),4);case 4:return g.b(n,SA("yt-idb-test-do-not-use",X7),5);case 5:return n.return(!0);case 2:return g.o8(n),n.return(!1)}})}; +DwD=function(){if(ci!==void 0)return ci;W8=!0;return ci=Cbj().then(function(X){W8=!1;var c;if((c=ha())!=null&&c.J){var V;c={hasSucceededOnce:((V=Aa())==null?void 0:V.hasSucceededOnce)||X};var G;(G=ha())==null||G.set("LAST_RESULT_ENTRY_KEY",c,2592E3,!0)}return X})}; +V5=function(){return g.Pw("ytglobal.idbToken_")||void 0}; +g.GM=function(){var X=V5();return X?Promise.resolve(X):DwD().then(function(c){(c=c?X7:void 0)&&g.uO("ytglobal.idbToken_",c);return c})}; +Svw=function(X){if(!g.qc())throw X=new g.Qa("AUTH_INVALID",{dbName:X}),wi(X),X;var c=g.i5();return{actualName:X+":"+c,publicName:X,userIdentifier:c}}; +iTO=function(X,c,V,G){var n,L,d,h,A,Y;return g.O(function(H){switch(H.J){case 1:return L=(n=Error().stack)!=null?n:"",g.b(H,g.GM(),2);case 2:d=H.G;if(!d)throw h=g.o0("openDbImpl",X,c),g.oa("ytidb_async_stack_killswitch")||(h.stack=h.stack+"\n"+L.substring(L.indexOf("\n")+1)),wi(h),h;Ew(X);A=V?{actualName:X,publicName:X,userIdentifier:void 0}:Svw(X);g.x1(H,3);return g.b(H,BIl(A,d),5);case 5:return g.b(H,PbD(A.actualName,c,G),6);case 6:return H.return(H.G);case 3:return Y=g.o8(H),g.x1(H,7),g.b(H,SA(A.actualName, +d),9);case 9:g.k1(H,8);break;case 7:g.o8(H);case 8:throw Y;}})}; +qv8=function(X,c,V){V=V===void 0?{}:V;return iTO(X,c,!1,V)}; +XA2=function(X,c,V){V=V===void 0?{}:V;return iTO(X,c,!0,V)}; +cLL=function(X,c){c=c===void 0?{}:c;var V,G;return g.O(function(n){if(n.J==1)return g.b(n,g.GM(),2);if(n.J!=3){V=n.G;if(!V)return n.return();Ew(X);G=Svw(X);return g.b(n,B8(G.actualName,c),3)}return g.b(n,SA(G.actualName,V),0)})}; +V7U=function(X,c,V){X=X.map(function(G){return g.O(function(n){return n.J==1?g.b(n,B8(G.actualName,c),2):g.b(n,SA(G.actualName,V),0)})}); +return Promise.all(X).then(function(){})}; +GI8=function(X){var c=c===void 0?{}:c;var V,G;return g.O(function(n){if(n.J==1)return g.b(n,g.GM(),2);if(n.J!=3){V=n.G;if(!V)return n.return();Ew(X);return g.b(n,sbs(X,V),3)}G=n.G;return g.b(n,V7U(G,c,V),0)})}; +nfO=function(X,c){c=c===void 0?{}:c;var V;return g.O(function(G){if(G.J==1)return g.b(G,g.GM(),2);if(G.J!=3){V=G.G;if(!V)return G.return();Ew(X);return g.b(G,B8(X,c),3)}return g.b(G,SA(X,V),0)})}; +nr=function(X,c){K$.call(this,X,c);this.options=c;Ew(X)}; +LXs=function(X,c){var V;return function(){V||(V=new nr(X,c));return V}}; +g.Lr=function(X,c){return LXs(X,c)}; +dU=function(X){return g.C$(dKt(),X)}; +yLS=function(X,c,V,G){var n,L,d;return g.O(function(h){switch(h.J){case 1:return n={config:X,hashData:c,timestamp:G!==void 0?G:(0,g.ta)()},g.b(h,dU(V),2);case 2:return L=h.G,g.b(h,L.clear("hotConfigStore"),3);case 3:return g.b(h,g.p$(L,"hotConfigStore",n),4);case 4:return d=h.G,h.return(d)}})}; +hgU=function(X,c,V,G,n){var L,d,h;return g.O(function(A){switch(A.J){case 1:return L={config:X,hashData:c,configData:V,timestamp:n!==void 0?n:(0,g.ta)()},g.b(A,dU(G),2);case 2:return d=A.G,g.b(A,d.clear("coldConfigStore"),3);case 3:return g.b(A,g.p$(d,"coldConfigStore",L),4);case 4:return h=A.G,A.return(h)}})}; +AL8=function(X){var c,V;return g.O(function(G){return G.J==1?g.b(G,dU(X),2):G.J!=3?(c=G.G,V=void 0,g.b(G,g.gi(c,["coldConfigStore"],{mode:"readwrite",SS:!0},function(n){return g.P8(n.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(L){V=L.getValue()})}),3)):G.return(V)})}; +YaD=function(X){var c,V;return g.O(function(G){return G.J==1?g.b(G,dU(X),2):G.J!=3?(c=G.G,V=void 0,g.b(G,g.gi(c,["hotConfigStore"],{mode:"readwrite",SS:!0},function(n){return g.P8(n.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(L){V=L.getValue()})}),3)):G.return(V)})}; +jLl=function(){return g.O(function(X){return g.b(X,GI8("ytGcfConfig"),0)})}; +y5=function(){g.I.call(this);this.G=[];this.J=[];var X=g.Pw("yt.gcf.config.hotUpdateCallbacks");X?(this.G=[].concat(g.x(X)),this.J=X):(this.J=[],g.uO("yt.gcf.config.hotUpdateCallbacks",this.J))}; +ak=function(){var X=this;this.Z=!1;this.U=this.X=0;this.B=new y5;this.F8={bO2:function(){X.Z=!0}, +rVy:function(){return X.J}, +EV_:function(c){hO(X,c)}, +U8:function(c){X.U8(c)}, +rlO:function(c){AO(X,c)}, +gS:function(){return X.coldHashData}, +ya:function(){return X.hotHashData}, +yVS:function(){return X.G}, +dSS:function(){return Y$()}, +f82:function(){return ju()}, +g8v:function(){return g.Pw("yt.gcf.config.coldHashData")}, +jFR:function(){return g.Pw("yt.gcf.config.hotHashData")}, +OPO:function(){HKs(X)}, +w3W:function(){X.U8(void 0);Hi(X);delete ak.instance}, +bFK:function(c){X.U=c}, +E8_:function(){return X.U}}}; +aPs=function(){if(!ak.instance){var X=new ak;ak.instance=X}return ak.instance}; +wAL=function(X){var c;g.O(function(V){if(V.J==1)return g.oa("start_client_gcf")||g.oa("delete_gcf_config_db")?g.oa("start_client_gcf")?g.b(V,g.GM(),3):V.Wl(2):V.return();V.J!=2&&((c=V.G)&&g.qc()&&!g.oa("delete_gcf_config_db")?(X.Z=!0,HKs(X)):($K1(X),WXl(X)));return g.oa("delete_gcf_config_db")?g.b(V,jLl(),0):V.Wl(0)})}; +$$=function(){var X;return(X=ju())!=null?X:g.qK("RAW_HOT_CONFIG_GROUP")}; +FX1=function(X){var c,V,G,n,L,d;return g.O(function(h){switch(h.J){case 1:if(X.G)return h.return(ju());if(!X.Z)return c=g.o0("getHotConfig IDB not initialized"),n1(c),h.return(Promise.reject(c));V=V5();G=g.qK("TIME_CREATED_MS");if(!V){n=g.o0("getHotConfig token error");n1(n);h.Wl(2);break}return g.b(h,YaD(V),3);case 3:if((L=h.G)&&L.timestamp>G)return hO(X,L.config),X.U8(L.hashData),h.return(ju());case 2:WXl(X);if(!(V&&X.G&&X.hotHashData)){h.Wl(4);break}return g.b(h,yLS(X.G,X.hotHashData,V,G),4);case 4:return X.G? +h.return(ju()):(d=new g.SP("Config not available in ytConfig"),n1(d),h.return(Promise.reject(d)))}})}; +rLD=function(X){var c,V,G,n,L,d;return g.O(function(h){switch(h.J){case 1:if(X.J)return h.return(Y$());if(!X.Z)return c=g.o0("getColdConfig IDB not initialized"),n1(c),h.return(Promise.reject(c));V=V5();G=g.qK("TIME_CREATED_MS");if(!V){n=g.o0("getColdConfig");n1(n);h.Wl(2);break}return g.b(h,AL8(V),3);case 3:if((L=h.G)&&L.timestamp>G)return AO(X,L.config),EfD(X,L.configData),Hi(X,L.hashData),h.return(Y$());case 2:$K1(X);if(!(V&&X.J&&X.coldHashData&&X.configData)){h.Wl(4);break}return g.b(h,hgU(X.J, +X.coldHashData,X.configData,V,G),4);case 4:return X.J?h.return(Y$()):(d=new g.SP("Config not available in ytConfig"),n1(d),h.return(Promise.reject(d)))}})}; +HKs=function(X){if(!X.G||!X.J){if(!V5()){var c=g.o0("scheduleGetConfigs");n1(c)}X.X||(X.X=g.PL.jV(function(){return g.O(function(V){switch(V.J){case 1:return g.x1(V,2),g.b(V,FX1(X),4);case 4:g.k1(V,3);break;case 2:g.o8(V);case 3:return g.x1(V,5),g.b(V,rLD(X),7);case 7:g.k1(V,6);break;case 5:g.o8(V);case 6:X.X&&(X.X=0),g.ZS(V)}})},100))}}; +QLs=function(X,c,V){var G,n,L;return g.O(function(d){switch(d.J){case 1:if(!g.oa("start_client_gcf")){d.Wl(0);break}V&&hO(X,V);X.U8(c);G=V5();if(!G){d.Wl(3);break}if(V){d.Wl(4);break}return g.b(d,YaD(G),5);case 5:n=d.G,V=(L=n)==null?void 0:L.config;case 4:return g.b(d,yLS(V,c,G),3);case 3:if(V)for(var h=V,A=g.r(X.B.J),Y=A.next();!Y.done;Y=A.next())Y=Y.value,Y(h);g.ZS(d)}})}; +ZKw=function(X,c,V){var G,n,L,d;return g.O(function(h){if(h.J==1){if(!g.oa("start_client_gcf"))return h.Wl(0);Hi(X,c);return(G=V5())?V?h.Wl(4):g.b(h,AL8(G),5):h.Wl(0)}h.J!=4&&(n=h.G,V=(L=n)==null?void 0:L.config);if(!V)return h.Wl(0);d=V.configData;return g.b(h,hgU(V,c,d,G),0)})}; +xKS=function(){var X=aPs(),c=(0,g.ta)()-X.U;if(!(X.U!==0&&c0&&(c.request={internalExperimentFlags:V});kIj(X,void 0,c);ofU(void 0,c);egS(void 0,c);JLD(X,void 0,c);mK2(void 0,c);g.oa("start_client_gcf")&&RgD(void 0,c);g.qK("DELEGATED_SESSION_ID")&& +!g.oa("pageid_as_header_web")&&(c.user={onBehalfOfUser:g.qK("DELEGATED_SESSION_ID")});!g.oa("fill_delegate_context_in_gel_killswitch")&&(X=g.qK("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(c.user=Object.assign({},c.user,{serializedDelegationContext:X}));X=g.qK("INNERTUBE_CONTEXT");var G;if(g.oa("enable_persistent_device_token")&&(X==null?0:(G=X.client)==null?0:G.rolloutToken)){var n;c.client.rolloutToken=X==null?void 0:(n=X.client)==null?void 0:n.rolloutToken}G=Object;n=G.assign;X=c.client; +V={};for(var L=g.r(Object.entries(y8(g.qK("DEVICE","")))),d=L.next();!d.done;d=L.next()){var h=g.r(d.value);d=h.next().value;h=h.next().value;d==="cbrand"?V.deviceMake=h:d==="cmodel"?V.deviceModel=h:d==="cbr"?V.browserName=h:d==="cbrver"?V.browserVersion=h:d==="cos"?V.osName=h:d==="cosver"?V.osVersion=h:d==="cplatform"&&(V.platform=h)}c.client=n.call(G,X,V);return c}; +kIj=function(X,c,V){X=X.jx;if(X==="WEB"||X==="MWEB"||X===1||X===2)if(c){V=hi(c,Oa,96)||new Oa;var G=Tk();G=Object.keys(bKw).indexOf(G);G=G===-1?null:G;G!==null&&Qw(V,3,G);Yd(c,Oa,96,V)}else V&&(V.client.mainAppWebInfo=(G=V.client.mainAppWebInfo)!=null?G:{},V.client.mainAppWebInfo.webDisplayMode=Tk())}; +ofU=function(X,c){var V=g.Pw("yt.embedded_player.embed_url");V&&(X?(c=hi(X,IL,7)||new IL,EW(c,4,V),Yd(X,IL,7,c)):c&&(c.thirdParty={embedUrl:V}))}; +egS=function(X,c){var V;if(g.oa("web_log_memory_total_kbytes")&&((V=g.UD.navigator)==null?0:V.deviceMemory)){var G;V=(G=g.UD.navigator)==null?void 0:G.deviceMemory;X?TB(X,95,FO(V*1E6)):c&&(c.client.memoryTotalKbytes=""+V*1E6)}}; +JLD=function(X,c,V){if(X.appInstallData)if(c){var G;V=(G=hi(c,tL,62))!=null?G:new tL;EW(V,6,X.appInstallData);Yd(c,tL,62,V)}else V&&(V.client.configInfo=V.client.configInfo||{},V.client.configInfo.appInstallData=X.appInstallData)}; +mK2=function(X,c){var V=aFt();V&&(X?Qw(X,61,t7U[V]):c&&(c.client.connectionType=V));g.oa("web_log_effective_connection_type")&&(V=Wol())&&(X?Qw(X,94,OKj[V]):c&&(c.client.effectiveConnectionType=V))}; +lP8=function(X,c,V){V=V===void 0?{}:V;var G={};g.qK("EOM_VISITOR_DATA")?G={"X-Goog-EOM-Visitor-Id":g.qK("EOM_VISITOR_DATA")}:G={"X-Goog-Visitor-Id":V.visitorData||g.qK("VISITOR_DATA","")};if(c&&c.includes("www.youtube-nocookie.com"))return G;c=V.YX||g.qK("AUTHORIZATION");c||(X?c="Bearer "+g.Pw("gapi.auth.getToken")().access_token:(X=yxl().J6(F7),g.oa("pageid_as_header_web")||delete X["X-Goog-PageId"],G=Object.assign({},G,X)));c&&(G.Authorization=c);return G}; +RgD=function(X,c){var V=xKS();if(V){var G=V.coldConfigData,n=V.coldHashData;V=V.hotHashData;if(X){var L;c=(L=hi(X,tL,62))!=null?L:new tL;G=EW(c,1,G);EW(G,3,n).U8(V);Yd(X,tL,62,c)}else c&&(c.client.configInfo=c.client.configInfo||{},G&&(c.client.configInfo.coldConfigData=G),n&&(c.client.configInfo.coldHashData=n),V&&(c.client.configInfo.hotHashData=V))}}; +E6=function(X,c){this.version=X;this.args=c}; +rU=function(X,c){this.topic=X;this.J=c}; +eu=function(X,c){var V=ok();V&&V.publish.call(V,X.toString(),X,c)}; +fP2=function(X){var c=M7j,V=ok();if(!V)return 0;var G=V.subscribe(c.toString(),function(n,L){var d=g.Pw("ytPubsub2Pubsub2SkipSubKey");d&&d==G||(d=function(){if(JO[G])try{if(L&&c instanceof rU&&c!=n)try{var h=c.J,A=L;if(!A.args||!A.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!h.VY){var Y=new h;h.VY=Y.version}var H=h.VY}catch(a){}if(!H||A.version!=H)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{L=Reflect.construct(h, +g.Vk(A.args))}catch(a){throw a.message="yt.pubsub2.Data.deserialize(): "+a.message,a;}}catch(a){throw a.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+c.toString()+": "+a.message,a;}X.call(window,L)}catch(a){g.V8(a)}},gfw[c.toString()]?g.L$()?g.PL.jV(d):g.Q8(d,0):d())}); +JO[G]=!0;mD[c.toString()]||(mD[c.toString()]=[]);mD[c.toString()].push(G);return G}; +Nat=function(){var X=pAj,c=fP2(function(V){X.apply(void 0,arguments);IP1(c)}); +return c}; +IP1=function(X){var c=ok();c&&(typeof X==="number"&&(X=[X]),g.aR(X,function(V){c.unsubscribeByKey(V);delete JO[V]}))}; +ok=function(){return g.Pw("ytPubsub2Pubsub2Instance")}; +Rk=function(X,c,V){V=V===void 0?{sampleRate:.1}:V;Math.random()BaL||d=DKl&&(N6++,g.oa("abandon_compression_after_N_slow_zips")?Ik===g.e4("compression_disable_point")&&N6>Sa2&&(gU=!1):gU=!1);iKD(c);G.headers||(G.headers={});G.headers["Content-Encoding"]="gzip";G.postBody=X;G.postParams=void 0;n(V,G)}; +qaD=function(X){var c=c===void 0?!1:c;var V=V===void 0?!1:V;var G=(0,g.ta)(),n={startTime:G,ticks:{},infos:{}},L=c?g.Pw("yt.logging.gzipForFetch",!1):!0;if(gU&&L){if(!X.body)return X;try{var d=V?X.body:typeof X.body==="string"?X.body:JSON.stringify(X.body);L=d;if(!V&&typeof d==="string"){var h=zg1(d);if(h!=null&&(h>BaL||h=DKl)if(N6++,g.oa("abandon_compression_after_N_slow_zips")||g.oa("abandon_compression_after_N_slow_zips_lr")){c=N6/Ik;var Y=Sa2/g.e4("compression_disable_point");Ik>0&&Ik%g.e4("compression_disable_point")===0&&c>=Y&&(gU=!1)}else gU=!1;iKD(n)}}X.headers=Object.assign({},{"Content-Encoding":"gzip"},X.headers||{});X.body=L;return X}catch(H){return n1(H),X}}else return X}; +zg1=function(X){try{return(new Blob(X.split(""))).size}catch(c){return n1(c),null}}; +iKD=function(X){g.oa("gel_compression_csi_killswitch")||!g.oa("log_gel_compression_latency")&&!g.oa("log_gel_compression_latency_lr")||Rk("gel_compression",X,{sampleRate:.1})}; +TM=function(X){var c=this;this.S5=this.J=!1;this.potentialEsfErrorCounter=this.G=0;this.handleError=function(){}; +this.M5=function(){}; +this.now=Date.now;this.Sf=!1;this.F8={Y8O:function(H){c.zr=H}, +GoR:function(){c.IR()}, +As:function(){c.Q5()}, +DA:function(H){return g.O(function(a){return g.b(a,c.DA(H),0)})}, +bE:function(H,a){return c.bE(H,a)}, +sO:function(){c.sO()}}; +var V;this.W6=(V=X.W6)!=null?V:100;var G;this.cB=(G=X.cB)!=null?G:1;var n;this.Nx=(n=X.Nx)!=null?n:2592E6;var L;this.RH=(L=X.RH)!=null?L:12E4;var d;this.wC=(d=X.wC)!=null?d:5E3;var h;this.zr=(h=X.zr)!=null?h:void 0;this.Oo=!!X.Oo;var A;this.ES=(A=X.ES)!=null?A:.1;var Y;this.WY=(Y=X.WY)!=null?Y:10;X.handleError&&(this.handleError=X.handleError);X.M5&&(this.M5=X.M5);X.Sf&&(this.Sf=X.Sf);X.S5&&(this.S5=X.S5);this.lc=X.lc;this.U0=X.U0;this.M$=X.M$;this.Qs=X.Qs;this.sendFn=X.sendFn;this.MD=X.MD;this.zi= +X.zi;U6(this)&&(!this.lc||this.lc("networkless_logging"))&&X3U(this)}; +X3U=function(X){U6(X)&&!X.Sf&&(X.J=!0,X.Oo&&Math.random()<=X.ES&&X.M$.Xo(X.zr),X.sO(),X.Qs.wJ()&&X.IR(),X.Qs.listen(X.MD,X.IR.bind(X)),X.Qs.listen(X.zi,X.Q5.bind(X)))}; +Gxj=function(X,c){if(!U6(X))throw Error("IndexedDB is not supported: updateRequestHandlers");var V=c.options.onError?c.options.onError:function(){}; +c.options.onError=function(n,L){var d,h,A,Y;return g.O(function(H){switch(H.J){case 1:d=c3l(L);(h=V4L(L))&&X.lc&&X.lc("web_enable_error_204")&&X.handleError(Error("Request failed due to compression"),c.url,L);if(!(X.lc&&X.lc("nwl_consider_error_code")&&d||X.lc&&!X.lc("nwl_consider_error_code")&&X.potentialEsfErrorCounter<=X.WY)){H.Wl(2);break}if(!X.Qs.Mz){H.Wl(3);break}return g.b(H,X.Qs.Mz(),3);case 3:if(X.Qs.wJ()){H.Wl(2);break}V(n,L);if(!X.lc||!X.lc("nwl_consider_error_code")||((A=c)==null?void 0: +A.id)===void 0){H.Wl(6);break}return g.b(H,X.M$.L3(c.id,X.zr,!1),6);case 6:return H.return();case 2:if(X.lc&&X.lc("nwl_consider_error_code")&&!d&&X.potentialEsfErrorCounter>X.WY)return H.return();X.potentialEsfErrorCounter++;if(((Y=c)==null?void 0:Y.id)===void 0){H.Wl(8);break}return c.sendCount=400&&X<=599?!1:!0}; +V4L=function(X){var c;X=X==null?void 0:(c=X.error)==null?void 0:c.code;return!(X!==400&&X!==415)}; +nPD=function(){if(Pi)return Pi();var X={};Pi=g.Lr("LogsDatabaseV2",{nO:(X.LogsRequestsStore={DF:2},X),shared:!1,upgrade:function(c,V,G){V(2)&&g.lE(c,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});V(3);V(5)&&(G=G.objectStore("LogsRequestsStore"),G.J.indexNames.contains("newRequest")&&G.J.deleteIndex("newRequest"),g.N8(G,"newRequestV2",["status","interface","timestamp"]));V(7)&&M8(c,"sapisid");V(9)&&M8(c,"SWHealthLog")}, +version:9});return Pi()}; +zM=function(X){return g.C$(nPD(),X)}; +dlw=function(X,c){var V,G,n,L;return g.O(function(d){if(d.J==1)return V={startTime:(0,g.ta)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.b(d,zM(c),2);if(d.J!=3)return G=d.G,n=Object.assign({},X,{options:JSON.parse(JSON.stringify(X.options)),interface:g.qK("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.b(d,g.p$(G,"LogsRequestsStore",n),3);L=d.G;V.ticks.tc=(0,g.ta)();Lpl(V);return d.return(L)})}; +y3s=function(X,c){var V,G,n,L,d,h,A,Y;return g.O(function(H){if(H.J==1)return V={startTime:(0,g.ta)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.b(H,zM(c),2);if(H.J!=3)return G=H.G,n=g.qK("INNERTUBE_CONTEXT_CLIENT_NAME",0),L=[X,n,0],d=[X,n,(0,g.ta)()],h=IDBKeyRange.bound(L,d),A="prev",g.oa("use_fifo_for_networkless")&&(A="next"),Y=void 0,g.b(H,g.gi(G,["LogsRequestsStore"],{mode:"readwrite",SS:!0},function(a){return g.P8(a.objectStore("LogsRequestsStore").index("newRequestV2"), +{query:h,direction:A},function(W){W.getValue()&&(Y=W.getValue(),X==="NEW"&&(Y.status="QUEUED",W.update(Y)))})}),3); +V.ticks.tc=(0,g.ta)();Lpl(V);return H.return(Y)})}; +hML=function(X,c){var V;return g.O(function(G){if(G.J==1)return g.b(G,zM(c),2);V=G.G;return G.return(g.gi(V,["LogsRequestsStore"],{mode:"readwrite",SS:!0},function(n){var L=n.objectStore("LogsRequestsStore");return L.get(X).then(function(d){if(d)return d.status="QUEUED",g.f$(L,d).then(function(){return d})})}))})}; +A3l=function(X,c,V,G){V=V===void 0?!0:V;var n;return g.O(function(L){if(L.J==1)return g.b(L,zM(c),2);n=L.G;return L.return(g.gi(n,["LogsRequestsStore"],{mode:"readwrite",SS:!0},function(d){var h=d.objectStore("LogsRequestsStore");return h.get(X).then(function(A){return A?(A.status="NEW",V&&(A.sendCount+=1),G!==void 0&&(A.options.compress=G),g.f$(h,A).then(function(){return A})):g.Ja.resolve(void 0)})}))})}; +YEl=function(X,c){var V;return g.O(function(G){if(G.J==1)return g.b(G,zM(c),2);V=G.G;return G.return(V.delete("LogsRequestsStore",X))})}; +jaS=function(X){var c,V;return g.O(function(G){if(G.J==1)return g.b(G,zM(X),2);c=G.G;V=(0,g.ta)()-2592E6;return g.b(G,g.gi(c,["LogsRequestsStore"],{mode:"readwrite",SS:!0},function(n){return g.Uw(n.objectStore("LogsRequestsStore"),{},function(L){if(L.getValue().timestamp<=V)return L.delete().then(function(){return g.TJ(L)})})}),0)})}; +H18=function(){g.O(function(X){return g.b(X,GI8("LogsDatabaseV2"),0)})}; +Lpl=function(X){g.oa("nwl_csi_killswitch")||Rk("networkless_performance",X,{sampleRate:1})}; +$ll=function(X){return g.C$(a9s(),X)}; +WpO=function(X){var c,V;g.O(function(G){if(G.J==1)return g.b(G,$ll(X),2);c=G.G;V=(0,g.ta)()-2592E6;return g.b(G,g.gi(c,["SWHealthLog"],{mode:"readwrite",SS:!0},function(n){return g.Uw(n.objectStore("SWHealthLog"),{},function(L){if(L.getValue().timestamp<=V)return L.delete().then(function(){return g.TJ(L)})})}),0)})}; +w3L=function(X){var c;return g.O(function(V){if(V.J==1)return g.b(V,$ll(X),2);c=V.G;return g.b(V,c.clear("SWHealthLog"),0)})}; +g.Bi=function(X,c,V,G,n,L,d){n=n===void 0?"":n;L=L===void 0?!1:L;d=d===void 0?!1:d;if(X)if(V&&!g.C1())n1(new g.SP("Legacy referrer-scrubbed ping detected")),X&&Fpl(X,void 0,{scrubReferrer:!0});else if(n)Ra(X,c,"POST",n,G);else if(g.qK("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||G||d)Ra(X,c,"GET","",G,void 0,L,d);else{b:{try{var h=new cS1({url:X});if(h.Z?typeof h.U!=="string"||h.U.length===0?0:{version:3,fD:h.U,yO:RI(h.J,"act=1","ri=1",VFU(h))}:h.B&&{version:4,fD:RI(h.J,"dct=1","suid="+h.X,""),yO:RI(h.J, +"act=1","ri=1","suid="+h.X)}){var A=pB(g.NG(5,X));var Y=!(!A||!A.endsWith("/aclk")||CB(X,"ri")!=="1");break b}}catch(H){}Y=!1}Y?EP8(X)?(c&&c(),V=!0):V=!1:V=!1;V||Fpl(X,c)}}; +EP8=function(X,c){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(X,c===void 0?"":c))return!0}catch(V){}return!1}; +Fpl=function(X,c,V){V=V===void 0?{}:V;var G=new Image,n=""+r3w++;Kr[n]=G;G.onload=G.onerror=function(){c&&Kr[n]&&c();delete Kr[n]}; +V.scrubReferrer&&(G.referrerPolicy="no-referrer");G.src=X}; +QaO=function(X){var c;return((c=document.featurePolicy)==null?0:c.allowedFeatures().includes("attribution-reporting"))?X+"&nis=6":X+"&nis=5"}; +Cr=function(){s6||(s6=new ya("yt.offline"));return s6}; +Z1l=function(X){if(g.oa("offline_error_handling")){var c=Cr().get("errors",!0)||{};c[X.message]={name:X.name,stack:X.stack};X.level&&(c[X.message].level=X.level);Cr().set("errors",c,2592E3,!0)}}; +D$=function(){this.J=new Map;this.G=!1}; +Su=function(){if(!D$.instance){var X=g.Pw("yt.networkRequestMonitor.instance")||new D$;g.uO("yt.networkRequestMonitor.instance",X);D$.instance=X}return D$.instance}; +ii=function(){g.Gd.call(this);var X=this;this.G=!1;this.J=OeL();this.J.listen("networkstatus-online",function(){if(X.G&&g.oa("offline_error_handling")){var c=Cr().get("errors",!0);if(c){for(var V in c)if(c[V]){var G=new g.SP(V,"sent via offline_errors");G.name=c[V].name;G.stack=c[V].stack;G.level=c[V].level;g.V8(G)}Cr().set("errors",{},2592E3,!0)}}})}; +xl2=function(){if(!ii.instance){var X=g.Pw("yt.networkStatusManager.instance")||new ii;g.uO("yt.networkStatusManager.instance",X);ii.instance=X}return ii.instance}; +g.q6=function(X){X=X===void 0?{}:X;g.Gd.call(this);var c=this;this.J=this.X=0;this.G=xl2();var V=g.Pw("yt.networkStatusManager.instance.listen").bind(this.G);V&&(X.rateLimit?(this.rateLimit=X.rateLimit,V("networkstatus-online",function(){vPl(c,"publicytnetworkstatus-online")}),V("networkstatus-offline",function(){vPl(c,"publicytnetworkstatus-offline")})):(V("networkstatus-online",function(){c.dispatchEvent("publicytnetworkstatus-online")}),V("networkstatus-offline",function(){c.dispatchEvent("publicytnetworkstatus-offline")})))}; +vPl=function(X,c){X.rateLimit?X.J?(g.PL.IT(X.X),X.X=g.PL.jV(function(){X.U!==c&&(X.dispatchEvent(c),X.U=c,X.J=(0,g.ta)())},X.rateLimit-((0,g.ta)()-X.J))):(X.dispatchEvent(c),X.U=c,X.J=(0,g.ta)()):X.dispatchEvent(c)}; +cu=function(){var X=TM.call;X6||(X6=new g.q6({yQR:!0,Owy:!0}));X.call(TM,this,{M$:{Xo:jaS,mp:YEl,P0:y3s,pPK:hML,L3:A3l,set:dlw},Qs:X6,handleError:function(c,V,G){var n,L=G==null?void 0:(n=G.error)==null?void 0:n.code;if(L===400||L===415){var d;n1(new g.SP(c.message,V,G==null?void 0:(d=G.error)==null?void 0:d.code),void 0,void 0,void 0,!0)}else g.V8(c)}, +M5:n1,sendFn:kxl,now:g.ta,Ft:Z1l,U0:g.n$(),MD:"publicytnetworkstatus-online",zi:"publicytnetworkstatus-offline",Oo:!0,ES:.1,WY:g.e4("potential_esf_error_limit",10),lc:g.oa,Sf:!(g.qc()&&g.Ue(document.location.toString())!=="www.youtube-nocookie.com")});this.U=new g.rw;g.oa("networkless_immediately_drop_all_requests")&&H18();nfO("LogsDatabaseV2")}; +Vd=function(){var X=g.Pw("yt.networklessRequestController.instance");X||(X=new cu,g.uO("yt.networklessRequestController.instance",X),g.oa("networkless_logging")&&g.GM().then(function(c){X.zr=c;X3U(X);X.U.resolve();X.Oo&&Math.random()<=X.ES&&X.zr&&WpO(X.zr);g.oa("networkless_immediately_drop_sw_health_store")&&oPl(X)})); +return X}; +oPl=function(X){var c;g.O(function(V){if(!X.zr)throw c=g.o0("clearSWHealthLogsDb"),c;return V.return(w3L(X.zr).catch(function(G){X.handleError(G)}))})}; +kxl=function(X,c,V,G){G=G===void 0?!1:G;c=g.oa("web_fp_via_jspb")?Object.assign({},c):c;g.oa("use_cfr_monitor")&&eMs(X,c);if(g.oa("use_request_time_ms_header"))c.headers&&H3(X)&&(c.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.ta)())));else{var n;if((n=c.postParams)==null?0:n.requestTimeMs)c.postParams.requestTimeMs=Math.round((0,g.ta)())}V&&Object.keys(c).length===0?g.Bi(X):c.compress?c.postBody?(typeof c.postBody!=="string"&&(c.postBody=JSON.stringify(c.postBody)),pr(X,c.postBody, +c,g.b9,G)):pr(X,JSON.stringify(c.postParams),c,t3,G):g.b9(X,c)}; +G7=function(X,c){g.oa("use_event_time_ms_header")&&H3(X)&&(c.headers||(c.headers={}),c.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.ta)())));return c}; +eMs=function(X,c){var V=c.onError?c.onError:function(){}; +c.onError=function(n,L){Su().requestComplete(X,!1);V(n,L)}; +var G=c.onSuccess?c.onSuccess:function(){}; +c.onSuccess=function(n,L){Su().requestComplete(X,!0);G(n,L)}}; +g.nw=function(X){this.config_=null;X?this.config_=X:vfj()&&(this.config_=g.Wi())}; +g.Lw=function(X,c,V,G){function n(Y){try{if((Y===void 0?0:Y)&&G.retry&&!G.networklessOptions.bypassNetworkless)L.method="POST",G.networklessOptions.writeThenSend?Vd().writeThenSend(A,L):Vd().sendAndWrite(A,L);else if(G.compress){var H=!G.networklessOptions.writeThenSend;if(L.postBody){var a=L.postBody;typeof a!=="string"&&(a=JSON.stringify(L.postBody));pr(A,a,L,g.b9,H)}else pr(A,JSON.stringify(L.postParams),L,t3,H)}else g.oa("web_all_payloads_via_jspb")?g.b9(A,L):t3(A,L)}catch(W){if(W.name==="InvalidAccessError")n1(Error("An extension is blocking network request.")); +else throw W;}} +!g.qK("VISITOR_DATA")&&c!=="visitor_id"&&Math.random()<.01&&n1(new g.SP("Missing VISITOR_DATA when sending innertube request.",c,V,G));if(!X.isReady())throw X=new g.SP("innertube xhrclient not ready",c,V,G),g.V8(X),X;var L={headers:G.headers||{},method:"POST",postParams:V,postBody:G.postBody,postBodyFormat:G.postBodyFormat||"JSON",onTimeout:function(){G.onTimeout()}, +onFetchTimeout:G.onTimeout,onSuccess:function(Y,H){if(G.onSuccess)G.onSuccess(H)}, +onFetchSuccess:function(Y){if(G.onSuccess)G.onSuccess(Y)}, +onError:function(Y,H){if(G.onError)G.onError(H)}, +onFetchError:function(Y){if(G.onError)G.onError(Y)}, +timeout:G.timeout,withCredentials:!0,compress:G.compress};L.headers["Content-Type"]||(L.headers["Content-Type"]="application/json");V="";var d=X.config_.wH;d&&(V=d);d=X.config_.cj||!1;var h=lP8(d,V,G);Object.assign(L.headers,h);L.headers.Authorization&&!V&&d&&(L.headers["x-origin"]=window.location.origin);var A=YP(""+V+("/youtubei/"+X.config_.innertubeApiVersion+"/"+c),{alt:"json"});g.Pw("ytNetworklessLoggingInitializationOptions")&&J3s.isNwlInitialized?DwD().then(function(Y){n(Y)}):n(!1)}; +g.Y_=function(X,c,V){var G=g.dc();if(G&&c){var n=G.subscribe(X,function(){function L(){yd[n]&&c.apply&&typeof c.apply=="function"&&c.apply(V||window,d)} +var d=arguments;try{g.hI[X]?L():g.Q8(L,0)}catch(h){g.V8(h)}},V); +yd[n]=!0;AI[X]||(AI[X]=[]);AI[X].push(n);return n}return 0}; +mlL=function(X){var c=g.Y_("LOGGED_IN",function(V){X.apply(void 0,arguments);g.j_(c)})}; +g.j_=function(X){var c=g.dc();c&&(typeof X==="number"?X=[X]:typeof X==="string"&&(X=[parseInt(X,10)]),g.aR(X,function(V){c.unsubscribeByKey(V);delete yd[V]}))}; +g.Hu=function(X,c){var V=g.dc();return V?V.publish.apply(V,arguments):!1}; +b1t=function(X){var c=g.dc();if(c)if(c.clear(X),X)RMt(X);else for(var V in AI)RMt(V)}; +g.dc=function(){return g.UD.ytPubsubPubsubInstance}; +RMt=function(X){AI[X]&&(X=AI[X],g.aR(X,function(c){yd[c]&&delete yd[c]}),X.length=0)}; +g.a7=function(X,c,V){t42(X,c,V===void 0?null:V)}; +t42=function(X,c,V){V=V===void 0?null:V;var G=O1s(X),n=document.getElementById(G),L=n&&zDw(n),d=n&&!L;L?c&&c():(c&&(L=g.Y_(G,c),c=""+g.SD(c),l9L[c]=L),d||(n=M4U(X,G,function(){zDw(n)||(P_s(n),g.Hu(G),g.Q8(function(){b1t(G)},0))},V)))}; +M4U=function(X,c,V,G){G=G===void 0?null:G;var n=g.Vj("SCRIPT");n.id=c;n.onload=function(){V&&setTimeout(V,0)}; +n.onreadystatechange=function(){switch(n.readyState){case "loaded":case "complete":n.onload()}}; +G&&n.setAttribute("nonce",G);g.BH(n,g.mX(X));X=document.getElementsByTagName("head")[0]||document.body;X.insertBefore(n,X.firstChild);return n}; +O1s=function(X){var c=document.createElement("a");g.f7(c,X);X=c.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Vv(X)}; +$_=function(X,c){if(X===c)X=!0;else if(Array.isArray(X)&&Array.isArray(c))X=g.jg(X,c,$_);else if(g.Cj(X)&&g.Cj(c))a:if(g.JN(X).length!=g.JN(c).length)X=!1;else{for(var V in X)if(!$_(X[V],c[V])){X=!1;break a}X=!0}else X=!1;return X}; +ZE=function(X){var c=g.OD.apply(1,arguments);if(!rc(X)||c.some(function(G){return!rc(G)}))throw Error("Only objects may be merged."); +c=g.r(c);for(var V=c.next();!V.done;V=c.next())Qd(X,V.value)}; +Qd=function(X,c){for(var V in c)if(rc(c[V])){if(V in X&&!rc(X[V]))throw Error("Cannot merge an object into a non-object.");V in X||(X[V]={});Qd(X[V],c[V])}else if(x_(c[V])){if(V in X&&!x_(X[V]))throw Error("Cannot merge an array into a non-array.");V in X||(X[V]=[]);gPO(X[V],c[V])}else X[V]=c[V];return X}; +gPO=function(X,c){c=g.r(c);for(var V=c.next();!V.done;V=c.next())V=V.value,rc(V)?X.push(Qd({},V)):x_(V)?X.push(gPO([],V)):X.push(V);return X}; +rc=function(X){return typeof X==="object"&&!Array.isArray(X)}; +x_=function(X){return typeof X==="object"&&Array.isArray(X)}; +vu=function(X){g.I.call(this);this.G=X}; +k_=function(X){vu.call(this,!0);this.J=X}; +o7=function(X,c){g.I.call(this);var V=this;this.U=[];this.D=!1;this.G=0;this.Z=this.B=this.X=!1;this.G_=null;var G=(0,g.qL)(X,c);this.J=new g.qR(function(){return G(V.G_)},300); +g.N(this,this.J);this.C=this.T=Infinity}; +f9s=function(X,c){if(!c)return!1;for(var V=0;V-1)throw Error("Deps cycle for: "+c);if(X.G.has(c))return X.G.get(c);if(!X.J.has(c)){if(G)return;throw Error("No provider for: "+c);}G=X.J.get(c);V.push(c);if(G.OU!==void 0)var n=G.OU;else if(G.u9v)n=G[fw]?Ul8(X,G[fw],V):[],n=G.u9v.apply(G,g.x(n));else if(G.KA){n=G.KA;var L=n[fw]?Ul8(X,n[fw],V):[];n=new (Function.prototype.bind.apply(n,[null].concat(g.x(L))))}else throw Error("Could not resolve providers for: "+c);V.pop();G.Vey||X.G.set(c,n); +return n}; +Ul8=function(X,c,V){return c?c.map(function(G){return G instanceof MT?pw(X,G.key,V,!0):pw(X,G,V)}):[]}; +NT=function(){I7||(I7=new NdU);return I7}; +T7=function(){var X,c;return"h5vcc"in Ux&&((X=Ux.h5vcc.traceEvent)==null?0:X.traceBegin)&&((c=Ux.h5vcc.traceEvent)==null?0:c.traceEnd)?1:"performance"in Ux&&Ux.performance.mark&&Ux.performance.measure?2:0}; +uZ=function(X){var c=T7();switch(c){case 1:Ux.h5vcc.traceEvent.traceBegin("YTLR",X);break;case 2:Ux.performance.mark(X+"-start");break;case 0:break;default:VB(c,"unknown trace type")}}; +Tdl=function(X){var c=T7();switch(c){case 1:Ux.h5vcc.traceEvent.traceEnd("YTLR",X);break;case 2:c=X+"-start";var V=X+"-end";Ux.performance.mark(V);Ux.performance.measure(X,c,V);break;case 0:break;default:VB(c,"unknown trace type")}}; +ux8=function(X){var c,V;(V=(c=window).onerror)==null||V.call(c,X.message,"",0,0,X)}; +P9D=function(X){var c=this;var V=V===void 0?0:V;var G=G===void 0?g.n$():G;this.U=V;this.scheduler=G;this.G=new g.rw;this.J=X;for(X={Ze:0};X.Ze=1E3?n():G>=X?$7||($7=WT(function(){n();$7=void 0},0)):L-h>=10&&(yjl(c,V.tier),d.X=L)}; +VPD=function(X,c){if(X.endpoint==="log_event"){g.oa("more_accurate_gel_parser")&&nM().storePayload({isJspb:!1},X.payload);dv(X);var V=yK(X),G=new Map;G.set(V,[X.payload]);var n=qEO(X.payload)||"";c&&(HT=new c);return new g.rL(function(L,d){HT&&HT.isReady()?hmU(G,HT,L,d,{bypassNetworkless:!0},!0,AU(n)):L()})}}; +L9O=function(X,c,V){if(c.endpoint==="log_event"){dv(void 0,c);var G=yK(c,!0),n=new Map;n.set(G,[tV(c.payload)]);V&&(HT=new V);return new g.rL(function(L){HT&&HT.isReady()?Aj2(n,HT,L,{bypassNetworkless:!0},!0,AU(X)):L()})}}; +yK=function(X,c){var V="";if(X.dangerousLogToVisitorSession)V="visitorOnlyApprovedKey";else if(X.cttAuthInfo){if(c===void 0?0:c){c=X.cttAuthInfo.token;V=X.cttAuthInfo;var G=new DP;V.videoId?G.setVideoId(V.videoId):V.playlistId&&Vw(G,2,wv,ry(V.playlistId));F8[c]=G}else c=X.cttAuthInfo,V={},c.videoId?V.videoId=c.videoId:c.playlistId&&(V.playlistId=c.playlistId),EQ[X.cttAuthInfo.token]=V;V=X.cttAuthInfo.token}return V}; +Y7=function(X,c,V){X=X===void 0?{}:X;c=c===void 0?!1:c;new g.rL(function(G,n){var L=aJ(c,V),d=L.U;L.U=!1;rv(L.G);rv(L.J);L.J=0;HT&&HT.isReady()?V===void 0&&g.oa("enable_web_tiered_gel")?Y1D(G,n,X,c,300,d):Y1D(G,n,X,c,V,d):(yjl(c,V),G())})}; +Y1D=function(X,c,V,G,n,L){var d=HT;V=V===void 0?{}:V;G=G===void 0?!1:G;n=n===void 0?200:n;L=L===void 0?!1:L;var h=new Map,A=new Map,Y={isJspb:G,cttAuthInfo:void 0,tier:n},H={isJspb:G,cttAuthInfo:void 0};if(G){c=g.r(Object.keys(hU));for(n=c.next();!n.done;n=c.next())n=n.value,A=g.oa("enable_web_tiered_gel")?nM().smartExtractMatchingEntries({keys:[Y,H],sizeLimit:1E3}):nM().extractMatchingEntries({isJspb:!0,cttAuthInfo:n}),A.length>0&&h.set(n,A),(g.oa("web_fp_via_jspb_and_json")&&V.writeThenSend||!g.oa("web_fp_via_jspb_and_json"))&& +delete hU[n];Aj2(h,d,X,V,!1,L)}else{h=g.r(Object.keys(hU));for(Y=h.next();!Y.done;Y=h.next())Y=Y.value,H=g.oa("enable_web_tiered_gel")?nM().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:Y,tier:n},{isJspb:!1,cttAuthInfo:Y}],sizeLimit:1E3}):nM().extractMatchingEntries({isJspb:!1,cttAuthInfo:Y}),H.length>0&&A.set(Y,H),(g.oa("web_fp_via_jspb_and_json")&&V.writeThenSend||!g.oa("web_fp_via_jspb_and_json"))&&delete hU[Y];hmU(A,d,X,c,V,!1,L)}}; +yjl=function(X,c){function V(){Y7({writeThenSend:!0},X,c)} +X=X===void 0?!1:X;c=c===void 0?200:c;var G=aJ(X,c),n=G===jlj||G===HvS?5E3:ah1;g.oa("web_gel_timeout_cap")&&!G.J&&(n=WT(function(){V()},n),G.J=n); +rv(G.G);n=g.qK("LOGGING_BATCH_TIMEOUT",g.e4("web_gel_debounce_ms",1E4));g.oa("shorten_initial_gel_batch_timeout")&&QK&&(n=$cO);n=WT(function(){g.e4("gel_min_batch_size")>0?nM().getSequenceCount({cttAuthInfo:void 0,isJspb:X,tier:c})>=W9w&&V():V()},n); +G.G=n}; +hmU=function(X,c,V,G,n,L,d){n=n===void 0?{}:n;var h=Math.round((0,g.ta)()),A=X.size,Y=weD(d);X=g.r(X);var H=X.next();for(d={};!H.done;d={j6:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,E6:void 0,U6:void 0},H=X.next()){var a=g.r(H.value);H=a.next().value;a=a.next().value;d.batchRequest=g.gn({context:g.wU(c.config_||g.Wi())});if(!g.sD(a)&&!g.oa("throw_err_when_logevent_malformed_killswitch")){G();break}d.batchRequest.events=a;(a=EQ[H])&&F9D(d.batchRequest,H,a);delete EQ[H];d.dangerousLogToVisitorSession= +H==="visitorOnlyApprovedKey";E3j(d.batchRequest,h,d.dangerousLogToVisitorSession);rjl(n);d.E6=function(W){g.oa("start_client_gcf")&&g.PL.jV(function(){return g.O(function(w){return g.b(w,QlD(W),0)})}); +A--;A||V()}; +d.j6=0;d.U6=function(W){return function(){W.j6++;if(n.bypassNetworkless&&W.j6===1)try{g.Lw(c,Y,W.batchRequest,Zn({writeThenSend:!0},W.dangerousLogToVisitorSession,W.E6,W.U6,L)),QK=!1}catch(w){g.V8(w),G()}A--;A||V()}}(d); +try{g.Lw(c,Y,d.batchRequest,Zn(n,d.dangerousLogToVisitorSession,d.E6,d.U6,L)),QK=!1}catch(W){g.V8(W),G()}}}; +Aj2=function(X,c,V,G,n,L){G=G===void 0?{}:G;var d=Math.round((0,g.ta)()),h={value:X.size},A=new Map([].concat(g.x(X)));A=g.r(A);for(var Y=A.next();!Y.done;Y=A.next()){var H=g.r(Y.value).next().value,a=X.get(H);Y=new DPS;var W=c.config_||g.Wi(),w=new PA,F=new lH;EW(F,1,W.lQ);EW(F,2,W.Mu);Qw(F,16,W.Bj);EW(F,17,W.innertubeContextClientVersion);if(W.w3){var Z=W.w3,v=new tL;Z.coldConfigData&&EW(v,1,Z.coldConfigData);Z.appInstallData&&EW(v,6,Z.appInstallData);Z.coldHashData&&EW(v,3,Z.coldHashData);Z.hotHashData&& +v.U8(Z.hotHashData);Yd(F,tL,62,v)}(Z=g.UD.devicePixelRatio)&&Z!=1&&TB(F,65,GB(Z));Z=J3();Z!==""&&EW(F,54,Z);Z=mp();if(Z.length>0){v=new pK;for(var e=0;e65535&&(X=1);iH("BATCH_CLIENT_COUNTER",X);return X}; +F9D=function(X,c,V){if(V.videoId)var G="VIDEO";else if(V.playlistId)G="PLAYLIST";else return;X.credentialTransferTokenTargetId=V;X.context=X.context||{};X.context.user=X.context.user||{};X.context.user.credentialTransferTokens=[{token:c,scope:G}]}; +dv=function(X,c){if(!g.Pw("yt.logging.transport.enableScrapingForTest")){var V=kP("il_payload_scraping");if((V!==void 0?String(V):"")==="enable_il_payload_scraping")k7=[],g.uO("yt.logging.transport.enableScrapingForTest",!0),g.uO("yt.logging.transport.scrapedPayloadsForTesting",k7),g.uO("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.uO("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), +g.uO("yt.logging.transport.scrapeClientEvent",!0);else return}V=g.Pw("yt.logging.transport.scrapedPayloadsForTesting");var G=g.Pw("yt.logging.transport.payloadToScrape");c&&(c=c.payload,(c=g.Pw("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(c)())&&V.push(c));c=g.Pw("yt.logging.transport.scrapeClientEvent");if(G&&G.length>=1)for(var n=0;n0&&TN8(X,c,L)}else TN8(X,c)}; +TN8=function(X,c,V){X=uv2(X);c=c?g.BU(c):"";V=V||5;dN()&&g.UE(X,c,V)}; +uv2=function(X){for(var c=g.r(P5O),V=c.next();!V.done;V=c.next())X=De(X,V.value);return"ST-"+Vv(X).toString(36)}; +zms=function(X){if(X.name==="JavaException")return!0;X=X.stack;return X.includes("chrome://")||X.includes("chrome-extension://")||X.includes("moz-extension://")}; +BNt=function(){this.oF=[];this.YF=[]}; +gv=function(){if(!Mi){var X=Mi=new BNt;X.YF.length=0;X.oF.length=0;K9s(X,sl1)}return Mi}; +K9s=function(X,c){c.YF&&X.YF.push.apply(X.YF,c.YF);c.oF&&X.oF.push.apply(X.oF,c.oF)}; +C5s=function(X){function c(){return X.charCodeAt(G++)} +var V=X.length,G=0;do{var n=fM(c);if(n===Infinity)break;var L=n>>3;switch(n&7){case 0:n=fM(c);if(L===2)return n;break;case 1:if(L===2)return;G+=8;break;case 2:n=fM(c);if(L===2)return X.substr(G,n);G+=n;break;case 5:if(L===2)return;G+=4;break;default:return}}while(G500));G++);G=n}else if(typeof X==="object")for(n in X){if(X[n]){var L=n;var d=X[n],h=c,A=V;L=typeof d!=="string"||L!=="clickTrackingParams"&&L!=="trackingParams"?0:(d=C5s(atob(d.replace(/-/g,"+").replace(/_/g,"/"))))?pM(L+".ve",d,h,A):0;G+=L;G+=pM(n,X[n],c,V);if(G>500)break}}else V[c]=IJ(X),G+=V[c].length;else V[c]=IJ(X),G+=V[c].length;return G}; +pM=function(X,c,V,G){V+="."+X;X=IJ(c);G[V]=X;return V.length+X.length}; +IJ=function(X){try{return(typeof X==="string"?X:String(JSON.stringify(X))).substr(0,500)}catch(c){return"unable to serialize "+typeof X+" ("+c.message+")"}}; +H8=function(X){g.Ni(X)}; +g.UQ=function(X){g.Ni(X,"WARNING")}; +g.Ni=function(X,c){var V=V===void 0?{}:V;V.name=g.qK("INNERTUBE_CONTEXT_CLIENT_NAME",1);V.version=g.qK("INNERTUBE_CONTEXT_CLIENT_VERSION");c=c===void 0?"ERROR":c;var G=!1;c=c===void 0?"ERROR":c;G=G===void 0?!1:G;if(X){X.hasOwnProperty("level")&&X.level&&(c=X.level);if(g.oa("console_log_js_exceptions")){var n=[];n.push("Name: "+X.name);n.push("Message: "+X.message);X.hasOwnProperty("params")&&n.push("Error Params: "+JSON.stringify(X.params));X.hasOwnProperty("args")&&n.push("Error args: "+JSON.stringify(X.args)); +n.push("File name: "+X.fileName);n.push("Stacktrace: "+X.stack);window.console.log(n.join("\n"),X)}if(!(S12>=5)){n=[];for(var L=g.r(ivS),d=L.next();!d.done;d=L.next()){d=d.value;try{d()&&n.push(d())}catch(Z){}}n=[].concat(g.x(q1D),g.x(n));var h=mu8(X);L=h.message||"Unknown Error";d=h.name||"UnknownError";var A=h.stack||X.G||"Not available";if(A.startsWith(d+": "+L)){var Y=A.split("\n");Y.shift();A=Y.join("\n")}Y=h.lineNumber||"Not available";h=h.fileName||"Not available";var H=0;if(X.hasOwnProperty("args")&& +X.args&&X.args.length)for(var a=0;a=500);a++);else if(X.hasOwnProperty("params")&&X.params){var W=X.params;if(typeof X.params==="object")for(a in W){if(W[a]){var w="params."+a,F=IJ(W[a]);V[w]=F;H+=w.length+F.length;if(H>500)break}}else V.params=IJ(W)}if(n.length)for(a=0;a=500);a++);navigator.vendor&&!V.hasOwnProperty("vendor")&&(V["device.vendor"]=navigator.vendor);V={message:L,name:d,lineNumber:Y, +fileName:h,stack:A,params:V,sampleWeight:1};a=Number(X.columnNumber);isNaN(a)||(V.lineNumber=V.lineNumber+":"+a);if(X.level==="IGNORED")X=0;else a:{X=gv();a=g.r(X.YF);for(n=a.next();!n.done;n=a.next())if(n=n.value,V.message&&V.message.match(n.pO)){X=n.weight;break a}X=g.r(X.oF);for(a=X.next();!a.done;a=X.next())if(a=a.value,a.callback(V)){X=a.weight;break a}X=1}V.sampleWeight=X;X=g.r(X81);for(a=X.next();!a.done;a=X.next())if(a=a.value,a.AL[V.name])for(L=g.r(a.AL[V.name]),n=L.next();!n.done;n=L.next())if(d= +n.value,n=V.message.match(d.gW)){V.params["params.error.original"]=n[0];L=d.groups;d={};for(Y=0;Y1E3&&g.UQ(new g.SP("IL Attach cache exceeded limit"))}h= +Xz(V,c);CM.has(h)?cR(V,c):Sa.set(h,!0)}}G=G.filter(function(H){H.csn!==c?(H.csn=c,H=!0):H=!1;return H}); +V={csn:c,parentVe:V.getAsJson(),childVes:g.Rt(G,function(H){return H.getAsJson()})}; +c==="UNDEFINED_CSN"?V0("visualElementAttached",L,V):X?ea("visualElementAttached",V,X,L):g.a0("visualElementAttached",V,L)}; +WsU=function(X,c,V,G,n){GR(V,c);G=sQ({cttAuthInfo:OQ(c)||void 0},c);V={csn:c,ve:V.getAsJson(),eventType:1};n&&(V.clientData=n);c==="UNDEFINED_CSN"?V0("visualElementShown",G,V):X?ea("visualElementShown",V,X,G):g.a0("visualElementShown",V,G)}; +w88=function(X,c,V,G){var n=(G=G===void 0?!1:G)?16:8;G=sQ({cttAuthInfo:OQ(c)||void 0,endOfSequence:G},c);V={csn:c,ve:V.getAsJson(),eventType:n};c==="UNDEFINED_CSN"?V0("visualElementHidden",G,V):X?ea("visualElementHidden",V,X,G):g.a0("visualElementHidden",V,G)}; +Fsl=function(X,c,V,G,n){n3(X,c,V,void 0,G,n)}; +n3=function(X,c,V,G,n){GR(V,c);G=G||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var L=sQ({cttAuthInfo:OQ(c)||void 0},c);V={csn:c,ve:V.getAsJson(),gestureType:G};n&&(V.clientData=n);c==="UNDEFINED_CSN"?V0("visualElementGestured",L,V):X?ea("visualElementGestured",V,X,L):g.a0("visualElementGestured",V,L)}; +Euj=function(){var X=JI(16);for(var c=[],V=0;V0&&V.push(g.Vj("BR"));V.push(g.Gv(L))}):V.push(g.Gv(G))}return V}; +Ed=function(X,c,V,G){if(V==="child"){g.L_(c);var n;G===void 0?n=void 0:n=!Array.isArray(G)||G&&typeof G.N==="string"?[G]:G;V=Q0U(X,n);V=g.r(V);for(X=V.next();!X.done;X=V.next())c.appendChild(X.value)}else V==="style"?g.$v(c,"cssText",G?G:""):G===null||G===void 0?c.removeAttribute(V):(X=G.toString(),V==="href"&&(X=g.tv(g.Mo(X))),c.setAttribute(V,X))}; +g.z=function(X){g.wP.call(this,X);this.aZ=!0;this.Z=!1;this.listeners=[]}; +g.rP=function(X){g.z.call(this,X);this.YO=new g.$T;g.N(this,this.YO)}; +Q0=function(X,c,V,G,n,L,d){d=d===void 0?null:d;g.rP.call(this,c);this.api=X;this.macros={};this.componentType=V;this.D=this.T=null;this.o2=d;this.layoutId=G;this.interactionLoggingClientData=n;this.gy=L;this.fS=null;this.Tu=new k_(this.element);g.N(this,this.Tu);this.qE=this.L(this.element,"click",this.onClick);this.NW=[];this.kO=new o7(this.onClick,this);g.N(this,this.kO);this.hX=!1;this.wy=this.G_=null}; +Zt=function(X,c){X=X===void 0?null:X;c=c===void 0?null:c;if(X==null)return g.UQ(Error("Got null or undefined adText object")),"";var V=g.c1(X.text);if(!X.isTemplated)return V;if(c==null)return g.UQ(Error("Missing required parameters for a templated message")),V;X=g.r(Object.entries(c));for(c=X.next();!c.done;c=X.next()){var G=g.r(c.value);c=G.next().value;G=G.next().value;V=V.replace("{"+c+"}",G)}return V}; +Z$s=function(X){X=X===void 0?null:X;return X!=null&&(X=X.thumbnail,X!=null&&X.thumbnails!=null&&X.thumbnails.length!=0&&X.thumbnails[0].url!=null)?g.c1(X.thumbnails[0].url):""}; +x8l=function(X){X=X===void 0?null:X;return X!=null&&(X=X.thumbnail,X!=null&&X.thumbnails!=null&&X.thumbnails.length!=0&&X.thumbnails[0].width!=null&&X.thumbnails[0].height!=null)?new g.Ez(X.thumbnails[0].width||0,X.thumbnails[0].height||0):new g.Ez(0,0)}; +g.xT=function(X){if(X.simpleText)return X.simpleText;if(X.runs){var c=[];X=g.r(X.runs);for(var V=X.next();!V.done;V=X.next())V=V.value,V.text&&c.push(V.text);return c.join("")}return""}; +g.vR=function(X){if(X.simpleText)return X=document.createTextNode(X.simpleText),X;var c=[];if(X.runs)for(var V=0;V1){for(var c=[X[0]],V=1;V0&&(this.J=new g.qR(this.bz,c,this),g.N(this,this.J));this.Z=new g.qR(this.bz,V,this);g.N(this,this.Z);this.T=NS2(this.G,n,1,G);g.N(this,this.T);this.D=NS2(this.G,0,G,1);g.N(this,this.D);this.X=new tj;g.N(this,this.X)}; +au=function(X,c,V){this.G=X;this.isAsync=c;this.J=V}; +d6s=function(X){switch(X){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:VB(X,"unknown result type")}}; +yOw=function(X,c){var V=1;X.isTrusted===!1&&(V=0);iH("ISDSTAT",V);$9(V,"i.s_",{triggerContext:"sk",metadata:c});return V}; +hql=function(X,c){var V=[];c?c.isTrusted===!0?V.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):c.isTrusted===!1?V.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):V.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):V.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");$9(0,"a.s_",{metadata:X,states:V});iH("ASDSTAT",0)}; +$9=function(X,c,V){c=AO2[c];var G,n,L={detected:X===0,source:""+c.G+((G=V.triggerContext)!=null?G:"")+((n=V.sA)!=null?n:""),detectionStates:V.states,durationMs:V.EA};V.metadata&&(L.contentCpn=V.metadata.contentCpn,L.adCpn=V.metadata.adCpn);g.a0("biscottiBasedDetection",L);c.J!==void 0&&(V=Number(g.qK("CATSTAT",0)),c.J!==void 0?(c=c.J,X=d6s(X),X=V&~(3<0}; +Z2=function(X,c,V,G,n,L){nZ.call(this,X,{N:"div",Y:"ytp-ad-skip-button-slot"},"skip-button",c,V,G,n);var d=this;this.A7=null;this.Pl=!1;this.LS=L;this.B=this.api.j().experiments.lc("enable_modern_skip_button_on_web");this.T_=!1;this.U=new g.rP({N:"span",xO:["ytp-ad-skip-button-container"]});this.B&&this.U.element.classList.add("ytp-ad-skip-button-container-detached");this.api.S("enable_ad_pod_index_autohide")&&this.U.element.classList.add("ytp-ad-skip-button-container--clean-player");g.N(this,this.U); +this.U.uc(this.element);this.G=this.X=null;this.yK=new g.yP(this.U,500,!1,100,function(){return d.hide()}); +g.N(this,this.yK);this.Hl=new HB(this.U.element,15E3,5E3,.5,.5,this.B);g.N(this,this.Hl);this.hide()}; +jkl=function(X){X=X.A7&&X.A7.adRendererCommands;return(X&&X.clickCommand&&g.T(X.clickCommand,g.x9)&&g.T(X.clickCommand,g.x9).commands||[]).some(function(c){return c.adLifecycleCommand?Y61(c.adLifecycleCommand):!1})}; +Y61=function(X){return X.action==="END_LINEAR_AD"||X.action==="END_LINEAR_AD_PLACEMENT"}; +vB=function(X,c,V,G,n,L){nZ.call(this,X,{N:"div",Y:"ytp-ad-skip-ad-slot"},"skip-ad",c,V,G,n);this.A7=L;this.X=!1;this.B=0;this.U=this.G=null;this.hide()}; +Hrl=function(X,c){X.X||(X.X=!0,X.G&&(c?X.G.A7.hide():X.G.hide()),c?(X=X.U,X.yK.show(),X.show()):X.U.show())}; +k9=function(X,c,V,G){I_.call(this,X,c,V,G,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; +ou=function(X,c,V,G,n,L,d){L=L===void 0?!1:L;d=d===void 0?!1:d;Q0.call(this,X,{N:"span",Y:"ytp-ad-simple-ad-badge"},"simple-ad-badge",c,V,G);this.U=n;this.J=this.I2("ytp-ad-simple-ad-badge");(this.G=L)&&this.J.classList.add("ytp-ad-simple-ad-badge--clean-player");d&&this.J.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; +eM=function(X,c,V,G,n){n=n===void 0?!1:n;a_.call(this,"player-overlay",X,{},c,G);this.videoAdDurationSeconds=V;this.interactionLoggingClientData=G;this.Rj=n}; +J0=function(X,c){g.$T.call(this);this.api=X;this.durationMs=c;this.J=null;this.kc=new tj(this);g.N(this,this.kc);this.G=a$L;this.kc.L(this.api,"presentingplayerstatechange",this.ao);this.J=this.kc.L(this.api,"onAdPlaybackProgress",this.er)}; +m8=function(X){g.$T.call(this);this.J=!1;this.XK=0;this.kc=new tj(this);g.N(this,this.kc);this.durationMs=X;this.lf=new g.em(100);g.N(this,this.lf);this.kc.L(this.lf,"tick",this.er);this.G={seekableStart:0,seekableEnd:X/1E3,current:0};this.start()}; +g.Ru=function(X,c){var V=Math.abs(Math.floor(X)),G=Math.floor(V/86400),n=Math.floor(V%86400/3600),L=Math.floor(V%3600/60);V=Math.floor(V%60);if(c){c="";G>0&&(c+=" "+G+" Days");if(G>0||n>0)c+=" "+n+" Hours";c+=" "+L+" Minutes";c+=" "+V+" Seconds";G=c.trim()}else{c="";G>0&&(c+=G+":",n<10&&(c+="0"));if(G>0||n>0)c+=n+":",L<10&&(c+="0");c+=L+":";V<10&&(c+="0");G=c+V}return X>=0?G:"-"+G}; +g.bG=function(X){return(!("button"in X)||typeof X.button!=="number"||X.button===0)&&!("shiftKey"in X&&X.shiftKey)&&!("altKey"in X&&X.altKey)&&!("metaKey"in X&&X.metaKey)&&!("ctrlKey"in X&&X.ctrlKey)}; +t0=function(X,c,V,G,n,L,d){nZ.call(this,X,{N:"span",Y:d?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",c,V,G,n);this.videoAdDurationSeconds=L;this.G=null;this.api.S("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-ad-duration-remaining--clean-player-with-light-shadow");d&&this.api.j().G&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),this.api.S("clean_player_style_fix_on_web")&&(this.element.classList.add("ytp-ad-duration-remaining--mweb-light"), +iE&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios")));this.hide()}; +OS=function(X,c,V,G){VP.call(this,X,c,V,G,"ytp-video-ad-top-bar-title","ad-title");X.S("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-video-ad-top-bar-title--clean-player")}; +lG=function(X){this.content=X.content;if(X.commandRuns){X=g.r(X.commandRuns);for(var c=X.next();!c.done;c=X.next())c=c.value,this.loggingDirectives=g.T(c,$6l),c.onTap&&(this.interaction={onTap:c.onTap})}}; +MA=function(X,c,V,G){Q0.call(this,X,{N:"div",Y:"ad-simple-attributed-string"},"ad-simple-attributed-string",c,V,G);this.hide()}; +gR=function(X,c,V,G,n){Q0.call(this,X,{N:"span",Y:n?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",c,V,G);this.G=n;this.adBadgeText=new MA(this.api,this.layoutId,this.interactionLoggingClientData,this.gy);this.adBadgeText.uc(this.element);g.N(this,this.adBadgeText);n?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),this.api.S("clean_player_style_fix_on_web")&&(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player-with-light-shadow"),iE&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios"))): +this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; +fZ=function(X,c,V,G,n){Q0.call(this,X,{N:"span",Y:"ytp-ad-pod-index"},"ad-pod-index",c,V,G);this.G=n;this.api.j().G&&(this.element.classList.add("ytp-ad-pod-index--mweb"),this.api.S("clean_player_style_fix_on_web")&&(this.element.classList.add("ytp-ad-pod-index--mweb-light"),iE&&this.element.classList.add("ytp-ad-pod-index--mweb-ios")));this.hide()}; +pZ=function(X,c,V,G){Q0.call(this,X,{N:"div",Y:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",c,V,G);this.hide()}; +Iu=function(X,c){this.G=X;this.J=c}; +NA=function(X,c,V){if(!X.getLength())return V!=null?V:Infinity;X=(c-X.G)/X.getLength();return g.am(X,0,1)}; +US=function(X,c,V,G){G=G===void 0?!1:G;g.rP.call(this,{N:"div",Y:"ytp-ad-persistent-progress-bar-container",V:[{N:"div",Y:"ytp-ad-persistent-progress-bar"}]});this.api=X;this.G=c;this.U=V;G&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.N(this,this.G);this.progressBar=this.I2("ytp-ad-persistent-progress-bar");this.J=-1;this.L(X,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; +Ty=function(X,c,V,G,n,L){Q0.call(this,X,{N:"div",Y:"ytp-ad-player-overlay",V:[{N:"div",Y:"ytp-ad-player-overlay-flyout-cta"},{N:"div",Y:"ytp-ad-player-overlay-instream-info"},{N:"div",Y:"ytp-ad-player-overlay-skip-or-preview"},{N:"div",Y:"ytp-ad-player-overlay-progress-bar"},{N:"div",Y:"ytp-ad-player-overlay-instream-user-sentiment"},{N:"div",Y:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",c,V,G);this.C=L;this.B=this.I2("ytp-ad-player-overlay-flyout-cta");this.B.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); +this.J=this.I2("ytp-ad-player-overlay-instream-info");this.X=null;WD8(this)&&(X=cW("div"),g.Ax(X,"ytp-ad-player-overlay-top-bar-gradients"),c=this.J,c.parentNode&&c.parentNode.insertBefore(X,c),(c=this.api.getVideoData(2))&&c.isListed&&c.title&&(V=new OS(this.api,this.layoutId,this.interactionLoggingClientData,this.gy),V.uc(X),V.init(HR("ad-title"),{text:c.title},this.macros),g.N(this,V)),this.X=X);this.U=null;this.QK=this.I2("ytp-ad-player-overlay-skip-or-preview");this.Hl=this.I2("ytp-ad-player-overlay-progress-bar"); +this.Pl=this.I2("ytp-ad-player-overlay-instream-user-sentiment");this.A7=this.I2("ytp-ad-player-overlay-ad-disclosure-banner");this.G=n;g.N(this,this.G);this.hide()}; +WD8=function(X){X=X.api.j();return g.uG(X)&&X.G}; +PB=function(X,c,V){var G={};c&&(G.v=c);V&&(G.list=V);X={name:X,locale:void 0,feature:void 0};for(var n in G)X[n]=G[n];G=g.KB("/sharing_services",X);g.Bi(G)}; +g.zy=function(X){X&=16777215;var c=[(X&16711680)>>16,(X&65280)>>8,X&255];X=c[0];var V=c[1];c=c[2];X=Number(X);V=Number(V);c=Number(c);if(X!=(X&255)||V!=(V&255)||c!=(c&255))throw Error('"('+X+","+V+","+c+'") is not a valid RGB color');V=X<<16|V<<8|c;return X<16?"#"+(16777216|V).toString(16).slice(1):"#"+V.toString(16)}; +BB=function(X){this.J=new Ov(X)}; +wi1=function(){var X=!1;try{X=!!window.sessionStorage.getItem("session_logininfo")}catch(c){X=!0}return(g.qK("INNERTUBE_CLIENT_NAME")==="WEB"||g.qK("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&X}; +KZ=function(X){if(g.qK("LOGGED_IN",!0)&&wi1()){var c=g.qK("VALID_SESSION_TEMPDATA_DOMAINS",[]);var V=g.Ue(window.location.href);V&&c.push(V);V=g.Ue(X);g.SV(c,V)||!V&&v7(X,"/")?(c=Td(X),(c=x5s(c))?(c=uv2(c),c=(c=g.Tx(c)||null)?y8(c):{}):c=null):c=null;c==null&&(c={});V=c;var G=void 0;wi1()?(G||(G=g.qK("LOGIN_INFO")),G?(V.session_logininfo=G,V=!0):V=!1):V=!1;V&&lz(X,c)}}; +g.FDt=function(X){var c=c===void 0?{}:c;var V=V===void 0?"":V;var G=G===void 0?window:G;X=g.KB(X,c);KZ(X);V=g.Mo(X+V);G=G.location;V=gD(V);V!==void 0&&(G.href=V)}; +g.sS=function(X,c,V){c=c===void 0?{}:c;V=V===void 0?!1:V;var G=g.qK("EVENT_ID");G&&(c.ei||(c.ei=G));c&&lz(X,c);V||(KZ(X),g.FDt(X))}; +g.CZ=function(X,c,V,G,n){n=n===void 0?!1:n;V&&lz(X,V);V=g.Mo(X);var L=g.tv(V);X!=L&&n1(Error("Unsafe window.open URL: "+X));X=L;c=c||Vv(X).toString(36);try{if(n)return n=X,n=QaO(n),KZ(n),g.U9(window,n,c,"attributionsrc")}catch(d){g.V8(d)}KZ(X);return g.U9(window,V,c,G)}; +E$2=function(X){D2=X}; +rOl=function(X){SM=X}; +Qkt=function(X){iG=X}; +x6D=function(){ZrU=iG=SM=D2=null}; +kM2=function(){var X=X===void 0?window.location.href:X;if(g.oa("kevlar_disable_theme_param"))return null;var c=pB(g.NG(5,X));if(g.oa("enable_dark_theme_only_on_shorts")&&c!=null&&c.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var V=g.A3(X).theme;return v$l.get(V)||null}catch(G){}return null}; +qA=function(){this.J={};if(this.G=eDt()){var X=g.Tx("CONSISTENCY");X&&o$D(this,{encryptedTokenJarContents:X})}}; +o$D=function(X,c){if(c.encryptedTokenJarContents&&(X.J[c.encryptedTokenJarContents]=c,typeof c.expirationSeconds==="string")){var V=Number(c.expirationSeconds);setTimeout(function(){delete X.J[c.encryptedTokenJarContents]},V*1E3); +X.G&&g.UE("CONSISTENCY",c.encryptedTokenJarContents,V,void 0,!0)}}; +ch=function(){this.G=-1;var X=g.qK("LOCATION_PLAYABILITY_TOKEN");g.qK("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=X0(this))&&(X=this.localStorage.get("yt-location-playability-token"));X&&(this.locationPlayabilityToken=X,this.J=void 0)}; +X0=function(X){return X.localStorage===void 0?new ya("yt-client-location"):X.localStorage}; +g.V$=function(X,c,V){c=c===void 0?!1:c;V=V===void 0?!1:V;var G=g.qK("INNERTUBE_CONTEXT");if(!G)return g.Ni(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};G=g.gn(G);g.oa("web_no_tracking_params_in_shell_killswitch")||delete G.clickTracking;G.client||(G.client={});var n=G.client;n.clientName==="MWEB"&&n.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(n.clientFormFactor=g.qK("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");n.screenWidthPoints=window.innerWidth;n.screenHeightPoints= +window.innerHeight;n.screenPixelDensity=Math.round(window.devicePixelRatio||1);n.screenDensityFloat=window.devicePixelRatio||1;n.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var L=L===void 0?!1:L;g.zk();var d="USER_INTERFACE_THEME_LIGHT";g.Be(0,165)?d="USER_INTERFACE_THEME_DARK":g.Be(0,174)?d="USER_INTERFACE_THEME_LIGHT":!g.oa("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& +(d="USER_INTERFACE_THEME_DARK");L=L?d:kM2()||d;n.userInterfaceTheme=L;if(!c){if(L=aFt())n.connectionType=L;g.oa("web_log_effective_connection_type")&&(L=Wol())&&(G.client.effectiveConnectionType=L)}var h;if(g.oa("web_log_memory_total_kbytes")&&((h=g.UD.navigator)==null?0:h.deviceMemory)){var A;h=(A=g.UD.navigator)==null?void 0:A.deviceMemory;G.client.memoryTotalKbytes=""+h*1E6}g.oa("web_gcf_hashes_innertube")&&(L=xKS())&&(A=L.coldConfigData,h=L.coldHashData,L=L.hotHashData,G.client.configInfo=G.client.configInfo|| +{},A&&(G.client.configInfo.coldConfigData=A),h&&(G.client.configInfo.coldHashData=h),L&&(G.client.configInfo.hotHashData=L));A=g.A3(g.UD.location.href);!g.oa("web_populate_internal_geo_killswitch")&&A.internalcountrycode&&(n.internalGeo=A.internalcountrycode);n.clientName==="MWEB"||n.clientName==="WEB"?(n.mainAppWebInfo={graftUrl:g.UD.location.href},g.oa("kevlar_woffle")&&dwj.instance&&(A=dwj.instance,n.mainAppWebInfo.pwaInstallabilityStatus=!A.J&&A.G?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": +"PWA_INSTALLABILITY_STATUS_UNKNOWN"),n.mainAppWebInfo.webDisplayMode=Tk(),n.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):n.clientName==="TVHTML5"&&(!g.oa("web_lr_app_quality_killswitch")&&(A=g.qK("LIVING_ROOM_APP_QUALITY"))&&(n.tvAppInfo=Object.assign(n.tvAppInfo||{},{appQuality:A})),A=g.qK("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(n.tvAppInfo=Object.assign(n.tvAppInfo||{},{certificationScope:A}));if(!g.oa("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== +"undefined")try{var Y=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(f){}Y=void 0}Y&&(n.timeZone=Y)}(Y=J3())?n.experimentsToken=Y:delete n.experimentsToken;Y=mp();qA.instance||(qA.instance=new qA);G.request=Object.assign({},G.request,{internalExperimentFlags:Y,consistencyTokenJars:g.e9(qA.instance.J)});!g.oa("web_prequest_context_killswitch")&&(Y=g.qK("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(G.request.externalPrequestContext=Y);n=g.zk();Y=g.Be(0,58);n=n.get("gsml","");G.user=Object.assign({}, +G.user);Y&&(G.user.enableSafetyMode=Y);n&&(G.user.lockedSafetyMode=!0);g.oa("warm_op_csn_cleanup")?V&&(c=g.tU())&&(G.clientScreenNonce=c):!c&&(c=g.tU())&&(G.clientScreenNonce=c);X&&(G.clickTracking={clickTrackingParams:X});if(X=g.Pw("yt.mdx.remote.remoteClient_"))G.remoteClient=X;ch.getInstance().setLocationOnInnerTubeContext(G);try{var H=Fx(),a=H.bid;delete H.bid;G.adSignalsInfo={params:[],bid:a};for(var W=g.r(Object.entries(H)),w=W.next();!w.done;w=W.next()){var F=g.r(w.value),Z=F.next().value, +v=F.next().value;H=Z;a=v;X=void 0;(X=G.adSignalsInfo.params)==null||X.push({key:H,value:""+a})}var e,m;if(((e=G.client)==null?void 0:e.clientName)==="TVHTML5"||((m=G.client)==null?void 0:m.clientName)==="TVHTML5_UNPLUGGED"){var t=g.qK("INNERTUBE_CONTEXT");t.adSignalsInfo&&(G.adSignalsInfo.advertisingId=t.adSignalsInfo.advertisingId,G.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",G.adSignalsInfo.limitAdTracking=t.adSignalsInfo.limitAdTracking)}}catch(f){g.Ni(f)}return G}; +m6D=function(X,c){if(!X)return!1;var V,G=(V=g.T(X,eqS))==null?void 0:V.signal;if(G&&c.XS)return!!c.XS[G];var n;if((V=(n=g.T(X,JOD))==null?void 0:n.request)&&c.z4)return!!c.z4[V];for(var L in X)if(c.gw[L])return!0;return!1}; +Rq1=function(X){var c={"Content-Type":"application/json"};g.qK("EOM_VISITOR_DATA")?c["X-Goog-EOM-Visitor-Id"]=g.qK("EOM_VISITOR_DATA"):g.qK("VISITOR_DATA")&&(c["X-Goog-Visitor-Id"]=g.qK("VISITOR_DATA"));c["X-Youtube-Bootstrap-Logged-In"]=g.qK("LOGGED_IN",!1);g.qK("DEBUG_SETTINGS_METADATA")&&(c["X-Debug-Settings-Metadata"]=g.qK("DEBUG_SETTINGS_METADATA"));X!=="cors"&&((X=g.qK("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(c["X-Youtube-Client-Name"]=X),(X=g.qK("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(c["X-Youtube-Client-Version"]= +X),(X=g.qK("CHROME_CONNECTED_HEADER"))&&(c["X-Youtube-Chrome-Connected"]=X),(X=g.qK("DOMAIN_ADMIN_STATE"))&&(c["X-Youtube-Domain-Admin-State"]=X),g.qK("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(X=g.qK("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(c["X-YouTube-Lava-Device-Context"]=X));return c}; +br2=function(){this.J={}}; +Gh=function(){this.mappings=new br2}; +nn=function(X){return function(){return new X}}; +OrO=function(X){var c=c===void 0?"UNKNOWN_INTERFACE":c;if(X.length===1)return X[0];var V=tuS[c];if(V){V=new RegExp(V);for(var G=g.r(X),n=G.next();!n.done;n=G.next())if(n=n.value,V.exec(n))return n}var L=[];Object.entries(tuS).forEach(function(d){var h=g.r(d);d=h.next().value;h=h.next().value;c!==d&&L.push(h)}); +V=new RegExp(L.join("|"));X.sort(function(d,h){return d.length-h.length}); +G=g.r(X);for(n=G.next();!n.done;n=G.next())if(n=n.value,!V.exec(n))return n;return X[0]}; +g.Ln=function(X){return"/youtubei/v1/"+OrO(X)}; +dr=function(){}; +y$=function(){}; +rr=function(){}; +Q$=function(X){return g.Pw("ytcsi."+(X||"")+"data_")||l$D(X)}; +Mu8=function(){var X=Q$();X.info||(X.info={});return X.info}; +ZN=function(X){X=Q$(X);X.metadata||(X.metadata={});return X.metadata}; +xe=function(X){X=Q$(X);X.tick||(X.tick={});return X.tick}; +vh=function(X){X=Q$(X);if(X.gel){var c=X.gel;c.gelInfos||(c.gelInfos={});c.gelTicks||(c.gelTicks={})}else X.gel={gelTicks:{},gelInfos:{}};return X.gel}; +g$U=function(X){X=vh(X);X.gelInfos||(X.gelInfos={});return X.gelInfos}; +ke=function(X){var c=Q$(X).nonce;c||(c=g.mq(16),Q$(X).nonce=c);return c}; +l$D=function(X){var c={tick:{},info:{}};g.uO("ytcsi."+(X||"")+"data_",c);return c}; +oG=function(){var X=g.Pw("ytcsi.debug");X||(X=[],g.uO("ytcsi.debug",X),g.uO("ytcsi.reference",{}));return X}; +e1=function(X){X=X||"";var c=f$s();if(c[X])return c[X];var V=oG(),G={timerName:X,info:{},tick:{},span:{},jspbInfo:[]};V.push(G);return c[X]=G}; +piw=function(X){X=X||"";var c=f$s();c[X]&&delete c[X];var V=oG(),G={timerName:X,info:{},tick:{},span:{},jspbInfo:[]};V.push(G);c[X]=G}; +f$s=function(){var X=g.Pw("ytcsi.reference");if(X)return X;oG();return g.Pw("ytcsi.reference")}; +JM=function(X){return I$D[X]||"LATENCY_ACTION_UNKNOWN"}; +m4=function(X,c){E6.call(this,1,arguments);this.lf=c}; +RG=function(){this.J=0}; +bl=function(){RG.instance||(RG.instance=new RG);return RG.instance}; +Or=function(X,c){tM[c]=tM[c]||{count:0};var V=tM[c];V.count++;V.time=(0,g.ta)();X.J||(X.J=g.Va(0,function(){var G=(0,g.ta)(),n;for(n in tM)tM[n]&&G-tM[n].time>6E4&&delete tM[n];X&&(X.J=0)},5E3)); +return V.count>5?(V.count===6&&Math.random()*1E5<1&&(V=new g.SP("CSI data exceeded logging limit with key",c.split("_")),c.indexOf("plev")>=0||g.UQ(V)),!0):!1}; +NUD=function(){this.timing={};this.clearResourceTimings=function(){}; +this.webkitClearResourceTimings=function(){}; +this.mozClearResourceTimings=function(){}; +this.msClearResourceTimings=function(){}; +this.oClearResourceTimings=function(){}}; +U68=function(){var X;if(g.oa("csi_use_performance_navigation_timing")||g.oa("csi_use_performance_navigation_timing_tvhtml5")){var c,V,G,n=ll==null?void 0:(X=ll.getEntriesByType)==null?void 0:(c=X.call(ll,"navigation"))==null?void 0:(V=c[0])==null?void 0:(G=V.toJSON)==null?void 0:G.call(V);n?(n.requestStart=Mp(n.requestStart),n.responseEnd=Mp(n.responseEnd),n.redirectStart=Mp(n.redirectStart),n.redirectEnd=Mp(n.redirectEnd),n.domainLookupEnd=Mp(n.domainLookupEnd),n.connectStart=Mp(n.connectStart), +n.connectEnd=Mp(n.connectEnd),n.responseStart=Mp(n.responseStart),n.secureConnectionStart=Mp(n.secureConnectionStart),n.domainLookupStart=Mp(n.domainLookupStart),n.isPerformanceNavigationTiming=!0,X=n):X=ll.timing}else X=g.oa("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(ll.timing)):ll.timing;return X}; +Mp=function(X){return Math.round(gr()+X)}; +gr=function(){return(g.oa("csi_use_time_origin")||g.oa("csi_use_time_origin_tvhtml5"))&&ll.timeOrigin?Math.floor(ll.timeOrigin):ll.timing.navigationStart}; +pn=function(X,c){fn("_start",X,c)}; +IG=function(X,c){if(!g.oa("web_csi_action_sampling_enabled")||!Q$(c).actionDisabled){var V=e1(c||"");ZE(V.info,X);X.loadType&&(V=X.loadType,ZN(c).loadType=V);ZE(g$U(c),X);V=ke(c);c=Q$(c).cttAuthInfo;bl().info(X,V,c)}}; +TUD=function(){var X,c,V,G;return((G=NT().resolve(new MT(ak))==null?void 0:(X=$$())==null?void 0:(c=X.loggingHotConfig)==null?void 0:(V=c.csiConfig)==null?void 0:V.debugTicks)!=null?G:[]).map(function(n){return Object.values(n)[0]})}; +fn=function(X,c,V){if(!g.oa("web_csi_action_sampling_enabled")||!Q$(V).actionDisabled){var G=ke(V),n;if(n=g.oa("web_csi_debug_sample_enabled")&&G){(NT().resolve(new MT(ak))==null?0:$$())&&!u7j&&(u7j=!0,fn("gcfl",(0,g.ta)(),V));var L,d,h;n=(NT().resolve(new MT(ak))==null?void 0:(L=$$())==null?void 0:(d=L.loggingHotConfig)==null?void 0:(h=d.csiConfig)==null?void 0:h.debugSampleWeight)||0;if(L=n!==0)b:{L=TUD();if(L.length>0)for(d=0;dV.duration?G:V},{duration:0}))&&c.startTime>0&&c.responseEnd>0&&(fn("wffs",Mp(c.startTime)),fn("wffe",Mp(c.responseEnd)))}; +D6O=function(X,c,V){ll&&ll.measure&&(X.startsWith("measure_")||(X="measure_"+X),V?ll.measure(X,c,V):c?ll.measure(X,c):ll.measure(X))}; +S6D=function(X){var c=Np("aft",X);if(c)return c;c=g.qK((X||"")+"TIMING_AFT_KEYS",["ol"]);for(var V=c.length,G=0;G0&&IG(c);c={isNavigation:!0,actionType:JM(g.qK("TIMING_ACTION"))};var V=g.qK("PREVIOUS_ACTION");V&&(c.previousAction=JM(V));if(V=g.qK("CLIENT_PROTOCOL"))c.httpProtocol=V;if(V=g.qK("CLIENT_TRANSPORT"))c.transportProtocol=V;(V=g.tU())&&V!=="UNDEFINED_CSN"&&(c.clientScreenNonce=V);V=BUs();if(V===1||V===-1)c.isVisible= +!0;V=ZN().loadType==="cold";var G=Mu8();V||(V=G.yt_lt==="cold");if(V){c.loadType="cold";V=Mu8();G=U68();var n=gr(),L=g.qK("CSI_START_TIMESTAMP_MILLIS",0);L>0&&!g.oa("embeds_web_enable_csi_start_override_killswitch")&&(n=L);n&&(fn("srt",G.responseStart),V.prerender!==1&&pn(n));V=Xul();V>0&&fn("fpt",V);V=U68();V.isPerformanceNavigationTiming&&IG({performanceNavigationTiming:!0},void 0);fn("nreqs",V.requestStart,void 0);fn("nress",V.responseStart,void 0);fn("nrese",V.responseEnd,void 0);V.redirectEnd- +V.redirectStart>0&&(fn("nrs",V.redirectStart,void 0),fn("nre",V.redirectEnd,void 0));V.domainLookupEnd-V.domainLookupStart>0&&(fn("ndnss",V.domainLookupStart,void 0),fn("ndnse",V.domainLookupEnd,void 0));V.connectEnd-V.connectStart>0&&(fn("ntcps",V.connectStart,void 0),fn("ntcpe",V.connectEnd,void 0));V.secureConnectionStart>=gr()&&V.connectEnd-V.secureConnectionStart>0&&(fn("nstcps",V.secureConnectionStart,void 0),fn("ntcpe",V.connectEnd,void 0));ll&&"getEntriesByType"in ll&&Cit();V=[];if(document.querySelector&& +ll&&ll.getEntriesByName)for(var d in ul)ul.hasOwnProperty(d)&&(G=ul[d],skD(d,G)&&V.push(G));if(V.length>0)for(c.resourceInfo=[],d=g.r(V),V=d.next();!V.done;V=d.next())c.resourceInfo.push({resourceCache:V.value})}IG(c);c=vh();c.preLoggedGelInfos||(c.preLoggedGelInfos=[]);d=c.preLoggedGelInfos;c=g$U();V=void 0;for(G=0;G-1&&(delete Q["@type"],K=Q);Z&&X.G.has(Z)&&X.G.delete(Z);((Tt=c.config)==null?0:Tt.ieW)&&zh(c.config.ieW);if(K||(xU=X.U)==null||!xU.nwy(c.input,c.g_)){Js.Wl(15);break}return g.b(Js,X.U.zDl(c.input,c.g_),16);case 16:K=Js.G;case 15:return E_D(X,K,c),(($U=c.config)==null?0:$U.abS)&&zh(c.config.abS),G(),Js.return(K|| +void 0)}})}; +aED=function(X,c){a:{X=X.mF;var V,G=(V=g.T(c,eqS))==null?void 0:V.signal;if(G&&X.XS&&(V=X.XS[G])){var n=V();break a}var L;if((V=(L=g.T(c,JOD))==null?void 0:L.request)&&X.z4&&(L=X.z4[V])){n=L();break a}for(n in c)if(X.gw[n]&&(c=X.gw[n])){n=c();break a}n=void 0}if(n!==void 0)return Promise.resolve(n)}; +WqO=function(X,c,V){var G,n,L,d,h,A,Y;return g.O(function(H){if(H.J==1){L=((G=c)==null?void 0:(n=G.nu)==null?void 0:n.identity)||F7;A=(d=c)==null?void 0:(h=d.nu)==null?void 0:h.sessionIndex;var a=g.Ze(X.J.J6(L,{sessionIndex:A}));return g.b(H,a,2)}Y=H.G;return H.return(Promise.resolve(Object.assign({},Rq1(V),Y)))})}; +$Tt=function(X,c,V){var G,n=(c==null?void 0:(G=c.nu)==null?void 0:G.identity)||F7,L;c=c==null?void 0:(L=c.nu)==null?void 0:L.sessionIndex;X=X.J.J6(n,{sessionIndex:c});return Object.assign({},Rq1(V),X)}; +cl=function(){}; +VN=function(){}; +GF=function(X){this.B=X}; +n2=function(){}; +L2=function(){}; +dJ=function(){}; +yN=function(){}; +hX=function(X,c,V){this.J=X;this.G=c;this.U=V}; +Q71=function(X,c,V){if(X.J){var G=pB(g.NG(5,De(c,"key")))||"/UNKNOWN_PATH";X.J.start(G)}X=V;g.oa("wug_networking_gzip_request")&&(X=qaD(V));return new window.Request(c,X)}; +g.Yy=function(X,c){if(!AX){var V=NT();gc(V,{Jr:Zwt,KA:hX});var G={gw:{feedbackEndpoint:nn(n2),modifyChannelNotificationPreferenceEndpoint:nn(L2),playlistEditEndpoint:nn(dJ),shareEntityEndpoint:nn(GF),subscribeEndpoint:nn(cl),unsubscribeEndpoint:nn(VN),webPlayerShareEntityServiceEndpoint:nn(yN)}},n=ch.getInstance(),L={};n&&(L.client_location=n);X===void 0&&(X=yxl());c===void 0&&(c=V.resolve(Zwt));Hwt(G,c,X,L);gc(V,{Jr:xTs,OU:il.instance});AX=V.resolve(xTs)}return AX}; +v_S=function(X){var c=new Fb;if(X.interpreterJavascript){var V=Tzs(X.interpreterJavascript);V=PH(V).toString();var G=new Wa;EW(G,6,V);Yd(c,Wa,1,G)}else X.interpreterUrl&&(V=JL(X.interpreterUrl),V=Rc(V).toString(),G=new ww,EW(G,4,V),Yd(c,ww,2,G));X.interpreterHash&&rA(c,3,X.interpreterHash);X.program&&rA(c,4,X.program);X.globalName&&rA(c,5,X.globalName);X.clientExperimentsStateBlob&&rA(c,7,X.clientExperimentsStateBlob);return c}; +jI=function(X){var c={};X=X.split("&");X=g.r(X);for(var V=X.next();!V.done;V=X.next())V=V.value.split("="),V.length===2&&(c[V[0]]=V[1]);return c}; +ySl=function(){if(g.oa("bg_st_hr"))return"havuokmhhs-0";var X,c=((X=performance)==null?void 0:X.timeOrigin)||0;return"havuokmhhs-"+Math.floor(c)}; +Hl=function(X){this.J=X}; +k7s=function(){return new Promise(function(X){var c=window.top;c.ntpevasrs!==void 0?X(new Hl(c.ntpevasrs)):(c.ntpqfbel===void 0&&(c.ntpqfbel=[]),c.ntpqfbel.push(function(V){X(new Hl(V))}))})}; +e6L=function(){if(!g.oa("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.oa("disable_biscotti_fetch_entirely_for_all_web_clients")&&dN()){var X=g.qK("PLAYER_VARS",{});if(g.Oz(X,"privembed",!1)!="1"&&!lmD(X)){var c=function(){aO=!0;"google_ad_status"in window?iH("DCLKSTAT",1):iH("DCLKSTAT",2)}; +try{g.a7("//static.doubleclick.net/instream/ad_status.js",c)}catch(V){}o_l.push(g.PL.jV(function(){if(!(aO||"google_ad_status"in window)){try{if(c){var V=""+g.SD(c),G=l9L[V];G&&g.j_(G)}}catch(n){}aO=!0;iH("DCLKSTAT",3)}},5E3))}}}; +$y=function(){var X=Number(g.qK("DCLKSTAT",0));return isNaN(X)?0:X}; +En=function(X,c,V){var G=this;this.network=X;this.options=c;this.G=V;this.J=null;if(c.RIR){var n=new g.rw;this.J=n.promise;g.UD.ytAtRC&&c8(function(){var L,d;return g.O(function(h){if(h.J==1){if(!g.UD.ytAtRC)return h.return();L=Wl(null);return g.b(h,wJ(G,L),2)}d=h.G;g.UD.ytAtRC&&g.UD.ytAtRC(JSON.stringify(d));g.ZS(h)})},2); +k7s().then(function(L){var d,h,A,Y;return g.O(function(H){if(H.J==1)return L.bindInnertubeChallengeFetcher(function(a){return wJ(G,Wl(a))}),g.b(H,tB(),2); +d=H.G;h=L.getLatestChallengeResponse();A=h.challenge;if(!A)throw Error("BGE_MACIL");Y={challenge:A,B1:jI(A),JO:d,bgChallenge:new Fb};n.resolve(Y);L.registerChallengeFetchedCallback(function(a){a=a.challenge;if(!a)throw Error("BGE_MACR");a={challenge:a,B1:jI(a),JO:d,bgChallenge:new Fb};G.J=Promise.resolve(a)}); +g.ZS(H)})})}else c.preload&&JIt(this,new Promise(function(L){g.Va(0,function(){L(F4(G))},0)}))}; +Wl=function(X){var c={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};X&&(c.interpreterHash=X);return c}; +F4=function(X,c){c=c===void 0?0:c;var V,G,n,L,d,h,A,Y,H,a,W,w;return g.O(function(F){switch(F.J){case 1:V=Wl(xp().J);if(g.oa("att_fet_ks"))return g.x1(F,7),g.b(F,wJ(X,V),9);g.x1(F,4);return g.b(F,mT8(X,V),6);case 6:d=F.G;n=d.dNh;L=d.gMc;G=d;g.k1(F,3);break;case 4:return g.o8(F),g.UQ(Error("Failed to fetch attestation challenge after "+(c+" attempts; not retrying for 24h."))),rJ(X,864E5),F.return({challenge:"",B1:{},JO:void 0,bgChallenge:void 0});case 9:G=F.G;if(!G)throw Error("Fetching Attestation challenge returned falsy"); +if(!G.challenge)throw Error("Missing Attestation challenge");n=G.challenge;L=jI(n);if("c1a"in L&&(!G.bgChallenge||!G.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.k1(F,3);break;case 7:h=g.o8(F);g.UQ(h);c++;if(c>=5)return g.UQ(Error("Failed to fetch attestation challenge after "+(c+" attempts; not retrying for 24h."))),rJ(X,864E5),F.return({challenge:"",B1:{},JO:void 0,bgChallenge:void 0});A=1E3*Math.pow(2,c-1)+Math.random()*1E3;return F.return(new Promise(function(Z){g.Va(0, +function(){Z(F4(X,c))},A)})); +case 3:Y=Number(L.t)||7200;rJ(X,Y*1E3);H=void 0;if(!("c1a"in L&&G.bgChallenge)){F.Wl(10);break}a=v_S(G.bgChallenge);g.x1(F,11);return g.b(F,va(xp(),a),13);case 13:g.k1(F,12);break;case 11:return W=g.o8(F),g.UQ(W),F.return({challenge:n,B1:L,JO:H,bgChallenge:a});case 12:return g.x1(F,14),H=new QJ({challenge:a,gb:{zy:"aGIf"}}),g.b(F,H.Vx,16);case 16:g.k1(F,10);break;case 14:w=g.o8(F),g.UQ(w),H=void 0;case 10:return F.return({challenge:n,B1:L,JO:H,bgChallenge:a})}})}; +wJ=function(X,c){var V;return g.O(function(G){V=X.G;if(!V||V.wJ())return G.return(wJ(X.network,c));DN("att_pna",void 0,"attestation_challenge_fetch");return G.return(new Promise(function(n){V.OC("publicytnetworkstatus-online",function(){wJ(X.network,c).then(n)})}))})}; +R6O=function(X){if(!X)throw Error("Fetching Attestation challenge returned falsy");if(!X.challenge)throw Error("Missing Attestation challenge");var c=X.challenge,V=jI(c);if("c1a"in V&&(!X.bgChallenge||!X.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},X,{dNh:c,gMc:V})}; +mT8=function(X,c){var V,G,n,L,d;return g.O(function(h){switch(h.J){case 1:V=void 0,G=0,n={};case 2:if(!(G<5)){h.Wl(4);break}if(!(G>0)){h.Wl(5);break}n.Tq=1E3*Math.pow(2,G-1)+Math.random()*1E3;return g.b(h,new Promise(function(A){return function(Y){g.Va(0,function(){Y(void 0)},A.Tq)}}(n)),5); +case 5:return g.x1(h,7),g.b(h,wJ(X,c),9);case 9:return L=h.G,h.return(R6O(L));case 7:V=d=g.o8(h),d instanceof Error&&g.UQ(d);case 8:G++;n={Tq:void 0};h.Wl(2);break;case 4:throw V;}})}; +JIt=function(X,c){X.J=c}; +bw8=function(X){var c,V,G;return g.O(function(n){if(n.J==1)return g.b(n,Promise.race([X.J,null]),2);c=n.G;var L=F4(X);X.J=L;(V=c)==null||(G=V.JO)==null||G.dispose();g.ZS(n)})}; +rJ=function(X,c){function V(){var n;return g.O(function(L){n=G-Date.now();return n<1E3?g.b(L,bw8(X),0):(c8(V,0,Math.min(n,6E4)),L.Wl(0))})} +var G=Date.now()+c;V()}; +t_l=function(X,c){return new Promise(function(V){g.Va(0,function(){V(c())},X)})}; +g.Ows=function(X,c){var V;return g.O(function(G){var n=g.Pw("yt.aba.att");return(V=n?n:En.instance!==void 0?En.instance.U.bind(En.instance):null)?G.return(V("ENGAGEMENT_TYPE_PLAYBACK",X,c)):G.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; +g.lEt=function(){var X;return(X=(X=g.Pw("yt.aba.att2"))?X:En.instance!==void 0?En.instance.X.bind(En.instance):null)?X():Promise.resolve(!1)}; +g_l=function(X,c){var V=g.Pw("ytDebugData.callbacks");V||(V={},g.uO("ytDebugData.callbacks",V));if(g.oa("web_dd_iu")||M_D.includes(X))V[X]=c}; +QN=function(){var X=fEU;var c=c===void 0?[]:c;var V=V===void 0?[]:V;c=gQD.apply(null,[f02.apply(null,g.x(c))].concat(g.x(V)));this.store=I0D(X,void 0,c)}; +g.ZB=function(X,c,V){for(var G=Object.assign({},X),n=g.r(Object.keys(c)),L=n.next();!L.done;L=n.next()){L=L.value;var d=X[L],h=c[L];if(h===void 0)delete G[L];else if(d===void 0)G[L]=h;else if(Array.isArray(h)&&Array.isArray(d))G[L]=V?[].concat(g.x(d),g.x(h)):h;else if(!Array.isArray(h)&&g.Cj(h)&&!Array.isArray(d)&&g.Cj(d))G[L]=g.ZB(d,h,V);else if(typeof h===typeof d)G[L]=h;else return c=new g.SP("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:L,IDh:d,updateValue:h}),g.Ni(c), +X}return G}; +vl=function(X){var c=this;X=X===void 0?[]:X;this.aP=[];this.Fr=this.uX=0;this.l8=void 0;this.totalLength=0;X.forEach(function(V){c.append(V)})}; +pul=function(X,c){return X.aP.length===0?!1:(X=X.aP[X.aP.length-1])&&X.buffer===c.buffer&&X.byteOffset+X.length===c.byteOffset}; +ky=function(X,c){c=g.r(c.aP);for(var V=c.next();!V.done;V=c.next())X.append(V.value)}; +oO=function(X,c,V){return X.split(c).RY.split(V).WA}; +eI=function(X){X.l8=void 0;X.uX=0;X.Fr=0}; +JX=function(X,c,V){X.isFocused(c);return c-X.Fr+V<=X.aP[X.uX].length}; +IE2=function(X){if(!X.l8){var c=X.aP[X.uX];X.l8=new DataView(c.buffer,c.byteOffset,c.length)}return X.l8}; +mS=function(X,c,V){X=X.wM(c===void 0?0:c,V===void 0?-1:V);c=new Uint8Array(X.length);try{c.set(X)}catch(G){for(V=0;V>10;L=56320|L&1023}tX[n++]=L}}L=String.fromCharCode.apply(String,tX); +n<1024&&(L=L.substring(0,n));V.push(L)}return V.join("")}; +MC=function(X,c){var V;if((V=l4)==null?0:V.encodeInto)return c=l4.encodeInto(X,c),c.read>6|192:((n&64512)===55296&&G+1>18|240,c[V++]=n>>12&63|128):c[V++]=n>>12|224,c[V++]=n>>6&63|128),c[V++]=n&63|128)}return V}; +gJ=function(X){if(l4)return l4.encode(X);var c=new Uint8Array(Math.ceil(X.length*1.2)),V=MC(X,c);c.lengthV&&(c=c.subarray(0,V));return c}; +f2=function(X){this.J=X;this.pos=0;this.G=-1}; +p2=function(X){var c=X.J.getUint8(X.pos);++X.pos;if(c<128)return c;for(var V=c&127,G=1;c>=128;)c=X.J.getUint8(X.pos),++X.pos,G*=128,V+=(c&127)*G;return V}; +IO=function(X,c){var V=X.G;for(X.G=-1;X.J.cN(X.pos,1);){V<0&&(V=p2(X));var G=V>>3,n=V&7;if(G===c)return!0;if(G>c){X.G=V;break}V=-1;switch(n){case 0:p2(X);break;case 1:X.pos+=8;break;case 2:G=p2(X);X.pos+=G;break;case 5:X.pos+=4}}return!1}; +NC=function(X,c){if(IO(X,c))return p2(X)}; +Un=function(X,c){if(IO(X,c))return!!p2(X)}; +TF=function(X,c){if(IO(X,c)){c=p2(X);var V=X.J.wM(X.pos,c);X.pos+=c;return V}}; +u4=function(X,c){if(X=TF(X,c))return g.On(X)}; +Pl=function(X,c,V){if(X=TF(X,c))return V(new f2(new vl([X])))}; +zF=function(X,c){for(var V=[];IO(X,c);)V.push(p2(X));return V.length?V:void 0}; +Bl=function(X,c,V){for(var G=[],n;n=TF(X,c);)G.push(V(new f2(new vl([n]))));return G.length?G:void 0}; +K2=function(X,c){X=X instanceof Uint8Array?new vl([X]):X;return c(new f2(X))}; +Tcs=function(X,c,V){if(c&&V&&V.buffer===c.exports.memory.buffer){var G=c.realloc(V.byteOffset,X);if(G)return new Uint8Array(c.exports.memory.buffer,G,X)}X=c?new Uint8Array(c.exports.memory.buffer,c.malloc(X),X):new Uint8Array(X);V&&X.set(V);return X}; +u6U=function(X,c){this.N6=c;this.pos=0;this.G=[];this.J=Tcs(X===void 0?4096:X,c);this.view=new DataView(this.J.buffer,this.J.byteOffset,this.J.byteLength)}; +sn=function(X,c){c=X.pos+c;if(!(X.J.length>=c)){for(var V=X.J.length*2;V268435455){sn(X,4);for(var V=c&1073741823,G=0;G<4;G++)X.view.setUint8(X.pos,V&127|128),V>>=7,X.pos+=1;c=Math.floor(c/268435456)}for(sn(X,4);c>127;)X.view.setUint8(X.pos,c&127|128),c>>=7,X.pos+=1;X.view.setUint8(X.pos,c);X.pos+=1}; +DB=function(X,c,V){V!==void 0&&(C2(X,c*8),C2(X,V))}; +SI=function(X,c,V){V!==void 0&&DB(X,c,V?1:0)}; +i4=function(X,c,V){V!==void 0&&(C2(X,c*8+2),c=V.length,C2(X,c),sn(X,c),X.J.set(V,X.pos),X.pos+=c)}; +qC=function(X,c,V){V!==void 0&&(PZl(X,c,Math.ceil(Math.log2(V.length*4+2)/7)),sn(X,V.length*1.2),c=MC(V,X.J.subarray(X.pos)),X.pos+c>X.J.length&&(sn(X,c),c=MC(V,X.J.subarray(X.pos))),X.pos+=c,z6D(X))}; +PZl=function(X,c,V){V=V===void 0?2:V;C2(X,c*8+2);X.G.push(X.pos);X.G.push(V);X.pos+=V}; +z6D=function(X){for(var c=X.G.pop(),V=X.G.pop(),G=X.pos-V-c;c--;){var n=c?128:0;X.view.setUint8(V++,G&127|n);G>>=7}}; +Yw=function(X,c,V,G,n){V&&(PZl(X,c,n===void 0?3:n),G(X,V),z6D(X))}; +g.jE=function(X,c,V){V=new u6U(4096,V);c(V,X);return new Uint8Array(V.J.buffer,V.J.byteOffset,V.pos)}; +g.Hc=function(X){var c=new f2(new vl([ZR(decodeURIComponent(X))]));X=u4(c,2);c=NC(c,4);var V=BcS[c];if(typeof V==="undefined")throw X=new g.SP("Failed to recognize field number",{name:"EntityKeyHelperError",ugR:c}),g.Ni(X),X;return{XB:c,entityType:V,entityId:X}}; +g.aW=function(X,c){var V=V===void 0?0:V;var G=new u6U;i4(G,2,gJ(X));X=Kqs[c];if(typeof X==="undefined")throw V=new g.SP("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:c}),g.Ni(V),V;DB(G,4,X);DB(G,5,1);c=new Uint8Array(G.J.buffer,G.J.byteOffset,G.pos);return encodeURIComponent(g.rQ(c,V))}; +$w=function(X,c,V,G){if(G===void 0)return G=Object.assign({},X[c]||{}),V=(delete G[V],G),G={},Object.assign({},X,(G[c]=V,G));var n={},L={};return Object.assign({},X,(L[c]=Object.assign({},X[c],(n[V]=G,n)),L))}; +s7s=function(X,c,V,G,n){var L=X[c];if(L==null||!L[V])return X;G=g.ZB(L[V],G,n==="REPEATED_FIELDS_MERGE_OPTION_APPEND");n={};L={};return Object.assign({},X,(L[c]=Object.assign({},X[c],(n[V]=G,n)),L))}; +CZl=function(X,c){X=X===void 0?{}:X;switch(c.type){case "ENTITY_LOADED":return c.payload.reduce(function(G,n){var L,d=(L=n.options)==null?void 0:L.persistenceOption;if(d&&d!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&d!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return G;if(!n.entityKey)return g.Ni(Error("Missing entity key")),G;if(n.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!n.payload)return g.Ni(new g.SP("REPLACE entity mutation is missing a payload",{entityKey:n.entityKey})),G;var h=g.om(n.payload); +return $w(G,h,n.entityKey,n.payload[h])}if(n.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{n=n.entityKey;try{var A=g.Hc(n).entityType;h=$w(G,A,n);break a}catch(a){if(a instanceof Error){g.Ni(new g.SP("Failed to deserialize entity key",{entityKey:n,zc:a.message}));h=G;break a}throw a;}h=void 0}return h}if(n.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!n.payload)return g.Ni(new g.SP("UPDATE entity mutation is missing a payload",{entityKey:n.entityKey})),G;h=g.om(n.payload);var Y,H;return s7s(G,h,n.entityKey, +n.payload[h],(Y=n.fieldMask)==null?void 0:(H=Y.mergeOptions)==null?void 0:H.repeatedFieldsMergeOption)}return G},X); +case "REPLACE_ENTITY":var V=c.payload;return $w(X,V.entityType,V.key,V.U4);case "REPLACE_ENTITIES":return Object.keys(c.payload).reduce(function(G,n){var L=c.payload[n];return Object.keys(L).reduce(function(d,h){return $w(d,n,h,L[h])},G)},X); +case "UPDATE_ENTITY":return V=c.payload,s7s(X,V.entityType,V.key,V.U4,V.oFl);default:return X}}; +Wc=function(X,c,V){return X[c]?X[c][V]||null:null}; +wH=function(X){return window.Int32Array?new Int32Array(X):Array(X)}; +xw=function(X){g.I.call(this);this.counter=[0,0,0,0];this.G=new Uint8Array(16);this.J=16;if(!DT1){var c,V=new Uint8Array(256),G=new Uint8Array(256);var n=1;for(c=0;c<256;c++)V[n]=c,G[c]=n,n^=n<<1^(n>>7&&283);Fp=new Uint8Array(256);Et=wH(256);rH=wH(256);Qi=wH(256);Z5=wH(256);for(var L=0;L<256;L++){n=L?G[255^V[L]]:0;n^=n<<1^n<<2^n<<3^n<<4;n=n&255^n>>>8^99;Fp[L]=n;c=n<<1^(n>>7&&283);var d=c^n;Et[L]=c<<24|n<<16|n<<8|d;rH[L]=d<<24|Et[L]>>>8;Qi[L]=n<<24|rH[L]>>>8;Z5[L]=n<<24|Qi[L]>>>8}DT1=!0}n=wH(44);for(V= +0;V<4;V++)n[V]=X[4*V]<<24|X[4*V+1]<<16|X[4*V+2]<<8|X[4*V+3];for(G=1;V<44;V++)X=n[V-1],V%4||(X=(Fp[X>>16&255]^G)<<24|Fp[X>>8&255]<<16|Fp[X&255]<<8|Fp[X>>>24],G=G<<1^(G>>7&&283)),n[V]=n[V-4]^X;this.key=n}; +vc=function(X,c){for(var V=0;V<4;V++)X.counter[V]=c[V*4]<<24|c[V*4+1]<<16|c[V*4+2]<<8|c[V*4+3];X.J=16}; +SxL=function(X){for(var c=X.key,V=X.counter[0]^c[0],G=X.counter[1]^c[1],n=X.counter[2]^c[2],L=X.counter[3]^c[3],d=3;d>=0&&!(X.counter[d]=-~X.counter[d]);d--);for(var h,A,Y=4;Y<40;)d=Et[V>>>24]^rH[G>>16&255]^Qi[n>>8&255]^Z5[L&255]^c[Y++],h=Et[G>>>24]^rH[n>>16&255]^Qi[L>>8&255]^Z5[V&255]^c[Y++],A=Et[n>>>24]^rH[L>>16&255]^Qi[V>>8&255]^Z5[G&255]^c[Y++],L=Et[L>>>24]^rH[V>>16&255]^Qi[G>>8&255]^Z5[n&255]^c[Y++],V=d,G=h,n=A;X=X.G;d=c[40];X[0]=Fp[V>>>24]^d>>>24;X[1]=Fp[G>>16&255]^d>>16&255;X[2]=Fp[n>>8&255]^ +d>>8&255;X[3]=Fp[L&255]^d&255;d=c[41];X[4]=Fp[G>>>24]^d>>>24;X[5]=Fp[n>>16&255]^d>>16&255;X[6]=Fp[L>>8&255]^d>>8&255;X[7]=Fp[V&255]^d&255;d=c[42];X[8]=Fp[n>>>24]^d>>>24;X[9]=Fp[L>>16&255]^d>>16&255;X[10]=Fp[V>>8&255]^d>>8&255;X[11]=Fp[G&255]^d&255;d=c[43];X[12]=Fp[L>>>24]^d>>>24;X[13]=Fp[V>>16&255]^d>>16&255;X[14]=Fp[G>>8&255]^d>>8&255;X[15]=Fp[n&255]^d&255}; +eE=function(){if(!kw&&!g.q8){if(oW)return oW;var X;oW=(X=window.crypto)==null?void 0:X.subtle;var c,V,G;if(((c=oW)==null?0:c.importKey)&&((V=oW)==null?0:V.sign)&&((G=oW)==null?0:G.encrypt))return oW;oW=void 0}}; +g.J6=function(X){this.X=X}; +g.mB=function(X){this.G=X}; +RW=function(X){this.Z=new Uint8Array(64);this.U=new Uint8Array(64);this.X=0;this.B=new Uint8Array(64);this.G=0;this.Z.set(X);this.U.set(X);for(X=0;X<64;X++)this.Z[X]^=92,this.U[X]^=54;this.reset()}; +iwU=function(X,c,V){for(var G=X.D,n=X.J[0],L=X.J[1],d=X.J[2],h=X.J[3],A=X.J[4],Y=X.J[5],H=X.J[6],a=X.J[7],W,w,F,Z=0;Z<64;)Z<16?(G[Z]=F=c[V]<<24|c[V+1]<<16|c[V+2]<<8|c[V+3],V+=4):(W=G[Z-2],w=G[Z-15],F=G[Z-7]+G[Z-16]+((W>>>17|W<<15)^(W>>>19|W<<13)^W>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),G[Z]=F),W=a+bh[Z]+F+((A>>>6|A<<26)^(A>>>11|A<<21)^(A>>>25|A<<7))+(A&Y^~A&H),w=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&L^n&d^L&d),a=W+w,h+=W,Z++,Z<16?(G[Z]=F=c[V]<<24|c[V+1]<<16|c[V+2]<<8|c[V+3],V+=4):(W= +G[Z-2],w=G[Z-15],F=G[Z-7]+G[Z-16]+((W>>>17|W<<15)^(W>>>19|W<<13)^W>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),G[Z]=F),W=H+bh[Z]+F+((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&A^~h&Y),w=((a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10))+(a&n^a&L^n&L),H=W+w,d+=W,Z++,Z<16?(G[Z]=F=c[V]<<24|c[V+1]<<16|c[V+2]<<8|c[V+3],V+=4):(W=G[Z-2],w=G[Z-15],F=G[Z-7]+G[Z-16]+((W>>>17|W<<15)^(W>>>19|W<<13)^W>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),G[Z]=F),W=Y+bh[Z]+F+((d>>>6|d<<26)^(d>>>11|d<<21)^(d>>>25|d<<7))+(d&h^ +~d&A),w=((H>>>2|H<<30)^(H>>>13|H<<19)^(H>>>22|H<<10))+(H&a^H&n^a&n),Y=W+w,L+=W,Z++,Z<16?(G[Z]=F=c[V]<<24|c[V+1]<<16|c[V+2]<<8|c[V+3],V+=4):(W=G[Z-2],w=G[Z-15],F=G[Z-7]+G[Z-16]+((W>>>17|W<<15)^(W>>>19|W<<13)^W>>>10)+((w>>>7|w<<25)^(w>>>18|w<<14)^w>>>3),G[Z]=F),W=A+bh[Z]+F+((L>>>6|L<<26)^(L>>>11|L<<21)^(L>>>25|L<<7))+(L&d^~L&h),w=((Y>>>2|Y<<30)^(Y>>>13|Y<<19)^(Y>>>22|Y<<10))+(Y&H^Y&a^H&a),F=a,a=h,h=F,F=H,H=d,d=F,F=Y,Y=L,L=F,A=n+W,n=W+w,Z++;X.J[0]=n+X.J[0]|0;X.J[1]=L+X.J[1]|0;X.J[2]=d+X.J[2]|0;X.J[3]= +h+X.J[3]|0;X.J[4]=A+X.J[4]|0;X.J[5]=Y+X.J[5]|0;X.J[6]=H+X.J[6]|0;X.J[7]=a+X.J[7]|0}; +XT1=function(X){var c=new Uint8Array(32),V=64-X.G;X.G>55&&(V+=64);var G=new Uint8Array(V);G[0]=128;for(var n=X.X*8,L=1;L<9;L++){var d=n%256;G[V-L]=d;n=(n-d)/256}X.update(G);for(V=0;V<8;V++)c[V*4]=X.J[V]>>>24,c[V*4+1]=X.J[V]>>>16&255,c[V*4+2]=X.J[V]>>>8&255,c[V*4+3]=X.J[V]&255;qxl(X);return c}; +qxl=function(X){X.J=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];X.D=[];X.D.length=64;X.X=0;X.G=0}; +cUt=function(X){this.J=X}; +VaO=function(X,c,V){X=new RW(X.J);X.update(c);X.update(V);c=XT1(X);X.update(X.Z);X.update(c);c=XT1(X);X.reset();return c}; +G8l=function(X){this.G=X}; +n7U=function(X,c,V,G){var n,L,d;return g.O(function(h){switch(h.J){case 1:if(X.J){h.Wl(2);break}return g.b(h,G.importKey("raw",X.G,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:X.J=h.G;case 2:return n=new Uint8Array(c.length+V.length),n.set(c),n.set(V,c.length),L={name:"HMAC",hash:"SHA-256"},g.b(h,G.sign(L,X.J,n),4);case 4:return d=h.G,h.return(new Uint8Array(d))}})}; +L3O=function(X,c,V){X.U||(X.U=new cUt(X.G));return VaO(X.U,c,V)}; +diD=function(X,c,V){var G,n;return g.O(function(L){if(L.J==1){G=eE();if(!G)return L.return(L3O(X,c,V));g.x1(L,3);return g.b(L,n7U(X,c,V,G),5)}if(L.J!=3)return L.return(L.G);n=g.o8(L);g.UQ(n);kw=!0;return L.return(L3O(X,c,V))})}; +hwD=function(X){for(var c="",V=0;V=1?X[X.length-1]:null;for(var G=g.r(X),n=G.next();!n.done;n=G.next())if(n=n.value,n.width&&n.height&&(V&&n.width>=c||!V&&n.height>=c))return n;for(c=X.length-1;c>=0;c--)if(V&&X[c].width||!V&&X[c].height)return X[c];return X[0]}; +Ot=function(){this.state=1;this.JO=null;this.Wb=void 0}; +wTO=function(X,c,V,G,n,L){var d=d===void 0?"trayride":d;V?(X.yg(2),g.a7(V,function(){if(window[d])W3w(X,G,d,n);else{X.yg(3);var h=O1s(V),A=document.getElementById(h);A&&(b1t(h),A.parentNode.removeChild(A));g.UQ(new g.SP("Unable to load Botguard","from "+V))}},L)):c?(L=g.Vj("SCRIPT"),c instanceof u6?(L.textContent=PH(c),zs(L)):L.textContent=c,L.nonce=Ts(document),document.head.appendChild(L),document.head.removeChild(L),window[d]?W3w(X,G,d,n):(X.yg(4),g.UQ(new g.SP("Unable to load Botguard from JS")))): +g.UQ(new g.SP("Unable to load VM; no url or JS provided"))}; +W3w=function(X,c,V,G){X.yg(5);var n=!!X.Wb&&F3t.includes(g.Ue(X.Wb)||"");try{var L=new QJ({program:c,globalName:V,gb:{disable:!g.oa("att_web_record_metrics")||!g.oa("att_skip_metrics_for_cookieless_domains_ks")&&n,zy:"aGIf"}});L.Vx.then(function(){X.yg(6);G&&G(c)}); +X.Rl(L)}catch(d){X.yg(7),d instanceof Error&&g.UQ(d)}}; +lh=function(){var X=g.Pw("yt.abuse.playerAttLoader");return X&&["bgvma","bgvmb","bgvmc"].every(function(c){return c in X})?X:null}; +MZ=function(){Ot.apply(this,arguments)}; +gH=function(){}; +E78=function(X,c,V){for(var G=!1,n=g.r(X.Uc.entries()),L=n.next();!L.done;L=n.next())L=g.r(L.value).next().value,L.slotType==="SLOT_TYPE_PLAYER_BYTES"&&L.sy==="core"&&(G=!0);if(G){a:if(!V){X=g.r(X.Uc.entries());for(V=X.next();!V.done;V=X.next())if(G=g.r(V.value),V=G.next().value,G=G.next().value,V.slotType==="SLOT_TYPE_IN_PLAYER"&&V.sy==="core"){V=G.layoutId;break a}V=void 0}V?c.Sx(V):FX("No triggering layout ID available when attempting to mute.")}}; +fy=function(X,c){this.MQ=X;this.aX=c}; +py=function(){}; +IW=function(){}; +QJD=function(X){g.I.call(this);var c=this;this.oy=X;this.J=new Map;NZ(this,"commandExecutorCommand",function(V,G,n){rUO(c,V.commands,G,n)}); +NZ(this,"clickTrackingParams",function(){})}; +ZMl=function(X,c){NZ(X,c.XO(),function(V,G,n){c.B_(V,G,n)})}; +NZ=function(X,c,V){X.vl();X.J.get(c)&&g.Ni(Error("Extension name "+c+" already registered"));X.J.set(c,V)}; +rUO=function(X,c,V,G){c=c===void 0?[]:c;X.vl();var n=[],L=[];c=g.r(c);for(var d=c.next();!d.done;d=c.next())d=d.value,g.T(d,xi2)||g.T(d,v7D)?n.push(d):L.push(d);n=g.r(n);for(c=n.next();!c.done;c=n.next())Ut(X,c.value,V,G);L=g.r(L);for(n=L.next();!n.done;n=L.next())Ut(X,n.value,V,G)}; +Ut=function(X,c,V,G){X.vl();c.loggingUrls&&k8L(X,"loggingUrls",c.loggingUrls,V,G);c=g.r(Object.entries(c));for(var n=c.next();!n.done;n=c.next()){var L=g.r(n.value);n=L.next().value;L=L.next().value;n==="openPopupAction"?X.oy.get().Wu("innertubeCommand",{openPopupAction:L}):n==="confirmDialogEndpoint"?X.oy.get().Wu("innertubeCommand",{confirmDialogEndpoint:L}):o7l.hasOwnProperty(n)||k8L(X,n,L,V,G)}}; +k8L=function(X,c,V,G,n){if((X=X.J.get(c))&&typeof X==="function")try{X(V,G,n)}catch(L){g.Ni(L)}else c=new g.SP("Unhandled field",c),g.UQ(c)}; +TE=function(X,c,V){this.kt=X;this.J=c;this.t7=V}; +uh=function(X){this.value=X}; +Pc=function(X){this.value=X}; +zE=function(X){this.value=X}; +Bc=function(X){this.value=X}; +Ky=function(X){this.value=X}; +Cy=function(X){this.value=X}; +D5=function(X){this.value=X}; +SE=function(){uh.apply(this,arguments)}; +ih=function(X){this.value=X}; +qZ=function(X){this.value=X}; +XS=function(X){this.value=X}; +cf=function(X){this.value=X}; +VU=function(X){this.value=X}; +GW=function(X){this.value=X}; +nC=function(X){this.value=X}; +LC=function(X){this.value=X}; +dj=function(X){this.value=X}; +yU=function(X){this.value=X}; +hd=function(){uh.apply(this,arguments)}; +Ad=function(X){this.value=X}; +YL=function(X){this.value=X}; +jf=function(X){this.value=X}; +Hf=function(X){this.value=X}; +a9=function(X){this.value=X}; +$L=function(X){this.value=X}; +Wf=function(X){this.value=X}; +wj=function(X){this.value=X}; +FS=function(X){this.value=X}; +E$=function(X){this.value=X}; +rj=function(X){this.value=X}; +QU=function(X){this.value=X}; +ZI=function(X){this.value=X}; +xL=function(X){this.value=X}; +vf=function(X){this.value=X}; +kL=function(X){this.value=X}; +o9=function(X){this.value=X}; +ef=function(X){this.value=X}; +Jd=function(X){this.value=X}; +mt=function(X){this.value=X}; +R9=function(X){this.value=X}; +bx=function(X){this.value=X}; +td=function(X){this.value=X}; +O$=function(X){this.value=X}; +lx=function(X){this.value=X}; +M0=function(X){this.value=X}; +gj=function(X){this.value=X}; +fC=function(X){this.value=X}; +pC=function(X){this.value=X}; +I9=function(X){this.value=X}; +N0=function(X){this.value=X}; +U$=function(X){this.value=X}; +TW=function(X){this.value=X}; +ux=function(X){this.value=X}; +Pf=function(X){this.value=X}; +zW=function(X){this.value=X}; +Bf=function(X){this.value=X}; +KC=function(X){this.value=X}; +s$=function(){uh.apply(this,arguments)}; +CC=function(X){this.value=X}; +DI=function(){uh.apply(this,arguments)}; +Sf=function(){uh.apply(this,arguments)}; +ix=function(){uh.apply(this,arguments)}; +q0=function(){uh.apply(this,arguments)}; +X1=function(){uh.apply(this,arguments)}; +cv=function(X){this.value=X}; +Vg=function(X){this.value=X}; +GL=function(X){this.value=X}; +no=function(X){this.value=X}; +Lo=function(X){this.value=X}; +yg=function(X,c,V){if(V&&!V.includes(X.layoutType))return!1;c=g.r(c);for(V=c.next();!V.done;V=c.next())if(!dG(X.clientMetadata,V.value))return!1;return!0}; +hr=function(){return""}; +ewj=function(X,c){switch(X){case "TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL":return 0;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED":return 1;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED":return 2;case "TRIGGER_CATEGORY_SLOT_EXPIRATION":return 3;case "TRIGGER_CATEGORY_SLOT_FULFILLMENT":return 4;case "TRIGGER_CATEGORY_SLOT_ENTRY":return 5;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED":return 6;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED":return 7;default:return c(X),8}}; +Ar=function(X,c,V,G){G=G===void 0?!1:G;EH.call(this,X);this.Qq=V;this.iG=G;this.args=[];c&&this.args.push(c)}; +D=function(X,c,V,G){G=G===void 0?!1:G;EH.call(this,X);this.Qq=V;this.iG=G;this.args=[];c&&this.args.push(c)}; +YS=function(X){var c=new Map;X.forEach(function(V){c.set(V.getType(),V)}); +this.J=c}; +dG=function(X,c){return X.J.has(c)}; +jR=function(X,c){X=X.J.get(c);if(X!==void 0)return X.get()}; +Hv=function(X){return Array.from(X.J.keys())}; +aX=function(X,c,V){if(V&&V!==X.slotType)return!1;c=g.r(c);for(V=c.next();!V.done;V=c.next())if(!dG(X.clientMetadata,V.value))return!1;return!0}; +miS=function(X){var c;return((c=JU2.get(X))==null?void 0:c.It)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; +Wv=function(X,c){var V={type:c.slotType,controlFlowManagerLayer:RwL.get(c.sy)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};c.slotEntryTrigger&&(V.entryTriggerType=c.slotEntryTrigger.triggerType);c.slotPhysicalPosition!==1&&(V.slotPhysicalPosition=c.slotPhysicalPosition);if(X){V.debugData={slotId:c.slotId};if(X=c.slotEntryTrigger)V.debugData.slotEntryTriggerData=$S(X);X=c.slotFulfillmentTriggers;V.debugData.fulfillmentTriggerData=[];X=g.r(X);for(var G=X.next();!G.done;G=X.next())V.debugData.fulfillmentTriggerData.push($S(G.value)); +c=c.slotExpirationTriggers;V.debugData.expirationTriggerData=[];c=g.r(c);for(X=c.next();!X.done;X=c.next())V.debugData.expirationTriggerData.push($S(X.value))}return V}; +bMs=function(X,c){var V={type:c.layoutType,controlFlowManagerLayer:RwL.get(c.sy)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};X&&(V.debugData={layoutId:c.layoutId});return V}; +$S=function(X,c){var V={type:X.triggerType};c!=null&&(V.category=c);X.triggeringSlotId!=null&&(V.triggerSourceData||(V.triggerSourceData={}),V.triggerSourceData.associatedSlotId=X.triggeringSlotId);X.triggeringLayoutId!=null&&(V.triggerSourceData||(V.triggerSourceData={}),V.triggerSourceData.associatedLayoutId=X.triggeringLayoutId);return V}; +ta8=function(X,c,V,G){c={opportunityType:c};X&&(G||V)&&(G=g.Rt(G||[],function(n){return Wv(X,n)}),c.debugData=Object.assign({},V&&V.length>0?{associatedSlotId:V}:{},G.length>0?{slots:G}:{})); +return c}; +F1=function(X,c){return function(V){return OMl(wG(X),c.slotId,c.slotType,c.slotPhysicalPosition,c.sy,c.slotEntryTrigger,c.slotFulfillmentTriggers,c.slotExpirationTriggers,V.layoutId,V.layoutType,V.sy)}}; +OMl=function(X,c,V,G,n,L,d,h,A,Y,H){return{adClientDataEntry:{slotData:Wv(X,{slotId:c,slotType:V,slotPhysicalPosition:G,sy:n,slotEntryTrigger:L,slotFulfillmentTriggers:d,slotExpirationTriggers:h,clientMetadata:new YS([])}),layoutData:bMs(X,{layoutId:A,layoutType:Y,sy:H,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],LM:[],UM:new Map,clientMetadata:new YS([]),eS:{}})}}}; +rG=function(X){this.Xh=X;X=Math.random();var c=this.Xh.get();c=g.EZ(c.W.j().experiments,"html5_debug_data_log_probability");c=Number.isFinite(c)&&c>=0&&c<=1?c:0;this.J=X1){g.UQ(new g.SP("Exit already started",{current:X.currentState}));var V=!1}else V=!0;if(!V)return!1;X.currentState=2;X.J=c;return!0}; +vb=function(X){if(X.currentState!==2)return!1;X.currentState=3;return!0}; +hdS=function(X,c){var V=new Map;X=g.r(X);for(var G=X.next();!G.done;G=X.next()){G=G.value;if(G.layoutType==="LAYOUT_TYPE_MEDIA")var n="v";else G.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(n=jR(G.clientMetadata,"metadata_type_linked_in_player_layout_type"),n=n==="LAYOUT_TYPE_ENDCAP"||n==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":n==="LAYOUT_TYPE_SURVEY"?"s":n==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):n="u";V.set(G.layoutId,n);if(n==="u"){var L={};n=c;G=(L.c=G.layoutId,L);n.W.Oy("uct",G)}}X= +c.Yo();kq={contentCpn:X,fF:V};G={};V=(G.ct=V.size,G.c=X,G);c.W.Oy("acc",V)}; +A0l=function(){kq={contentCpn:"",fF:new Map}}; +od=function(X){var c;return(c=kq.fF.get(X))!=null?c:"u"}; +es=function(X,c,V){X.W.Oy(c,V);YSt(X)}; +juU=function(X){var c=X.layoutId,V=X.tQ;if(X.hU){var G={};es(X.kt,"slso",(G.ec=c,G.is=V,G.ctp=od(c),G))}}; +Jm=function(X){var c=X.layoutId,V=X.tQ;if(X.hU){var G={};es(X.kt,"slse",(G.ec=c,G.is=V,G.ctp=od(c),G))}}; +HZl=function(X){var c=X.layoutId,V=X.tQ,G=X.kt;X.hU&&(X={},es(G,"sleo",(X.xc=c,X.is=V,X.ctp=od(c),X)),YSt(G))}; +a21=function(X){var c=X.cpn,V=X.kt;X=X.tQ;var G=V.Yo(),n={};es(V,"ce",(n.ec=c,n.ia=c!==G,n.r=kq.fF.has(c),n.is=X,n.ctp=od(c),n))}; +YSt=function(X){if(X.Yo()!==kq.contentCpn){var c={};c=(c.c=kq.contentCpn,c);X.W.Oy("ccm",c)}}; +$Aj=function(X){var c=X.cpn,V=X.kt;X=X.tQ;var G=V.Yo(),n={};es(V,"cx",(n.xc=c,n.ia=c!==G,n.r=kq.fF.has(c),n.is=X,n.ctp=od(c),n))}; +W8s=function(X){this.params=X;this.J=new Set}; +wBO=function(X,c,V){if(!X.J.has(c)){X.J.add(c);var G={};X.params.yH.OM(c,Object.assign({},V,(G.p_ac=X.params.adCpn,G.p_isv=X.params.aQS&&X.params.EN,G)))}}; +Rd=function(X,c,V){if(mT(X.params.yH.Xh.get(),!0)){var G=V.flush,n={};wBO(X,c,(n.cts=V.currentTimeSec,n.f=G,n))}}; +F8D=function(X,c){this.kt=X;this.Xh=c}; +bo=function(X){var c=[];if(X){X=g.r(Object.entries(X));for(var V=X.next();!V.done;V=X.next()){var G=g.r(V.value);V=G.next().value;G=G.next().value;G!==void 0&&(G=typeof G==="boolean"?""+ +G:(""+G).replace(/[:,=]/g,"_"),c.push(V+"."+G))}}return c.join(";")}; +tm=function(X,c,V){c=c===void 0?{}:c;this.errorCode=X;this.details=c;this.severity=V===void 0?0:V}; +O3=function(X){return X===1||X===2}; +lo=function(X,c){c=c===void 0?0:c;if(X instanceof tm)return X;X=X&&X instanceof Error?X:Error(""+X);O3(c)?g.Ni(X):g.UQ(X);return new tm(c===1?"player.fatalexception":"player.exception",{name:""+X.name,message:""+X.message},c)}; +E9t=function(X,c){function V(){var G=g.OD.apply(0,arguments);X.removeEventListener("playing",V);c.apply(null,g.x(G))} +X.addEventListener("playing",V)}; +M_=function(){var X=g.Pw("yt.player.utils.videoElement_");X||(X=g.Vj("VIDEO"),g.uO("yt.player.utils.videoElement_",X));return X}; +gp=function(X){var c=M_();return!!(c&&c.canPlayType&&c.canPlayType(X))}; +pp=function(X){if(/opus/.test(X)&&g.fp&&!mo("38")&&!g.C1())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(X);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(X);if(/webm/.test(X)&&!RDl())return!1;X==='audio/mp4; codecs="mp4a.40.2"'&&(X='video/mp4; codecs="avc1.4d401f"');return!!gp(X)}; +r01=function(X){try{var c=pp('video/mp4; codecs="avc1.42001E"')||pp('video/webm; codecs="vp9"');return(pp('audio/mp4; codecs="mp4a.40.2"')||pp('audio/webm; codecs="opus"'))&&(c||!X)||gp('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(V){return"html5.missingapi"}}; +Id=function(){var X=M_();return!(!X.webkitSupportsPresentationMode||typeof X.webkitSetPresentationMode!=="function")}; +N_=function(){var X=M_();try{var c=X.muted;X.muted=!c;return X.muted!==c}catch(V){}return!1}; +Qul=function(){var X;return((X=navigator.connection)==null?void 0:X.type)||""}; +g.U3=function(){tj.apply(this,arguments)}; +Tm=function(X,c,V,G,n,L,d){this.sampleRate=X===void 0?0:X;this.numChannels=c===void 0?0:c;this.spatialAudioType=V===void 0?"SPATIAL_AUDIO_TYPE_NONE":V;this.J=G===void 0?!1:G;this.U=n===void 0?0:n;this.G=L===void 0?0:L;this.audioQuality=d===void 0?"AUDIO_QUALITY_UNKNOWN":d}; +zm=function(X,c,V,G,n,L,d,h,A){this.width=X;this.height=c;this.quality=L||uo(X,c);this.J=g.Pb[this.quality];this.fps=V||0;this.stereoLayout=!n||G!=null&&G!=="UNKNOWN"&&G!=="RECTANGULAR"?0:n;this.projectionType=G?G==="EQUIRECTANGULAR"&&n===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":G:"UNKNOWN";(X=d)||(X=g.Pb[this.quality],X===0?X="Auto":(c=this.fps,V=this.projectionType,X=X.toString()+(V==="EQUIRECTANGULAR"||V==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||V==="MESH"?"s":"p")+(c>55?"60":c>49?"50":c>39?"48":""))); +this.qualityLabel=X;this.G=h||"";this.primaries=A||""}; +uo=function(X,c){var V=Math.max(X,c);X=Math.min(X,c);c=Bb[0];for(var G=0;G=Math.floor(L*16/9)*1.3||X>=L*1.3)return c;c=n}return"tiny"}; +Cp=function(X,c,V){V=V===void 0?{}:V;this.id=X;this.mimeType=c;V.JX>0||(V.JX=16E3);Object.assign(this,V);X=g.r(this.id.split(";"));this.itag=X.next().value;this.J=X.next().value;this.containerType=Kp(c);this.VK=s3[this.itag]||""}; +DO=function(X){return X.VK==="9"||X.VK==="("||X.VK==="9h"||X.VK==="(h"}; +ZZs=function(X){return X.VK==="H"||X.VK==="h"}; +Ss=function(X){return X.VK==="9h"||X.VK==="(h"}; +xAs=function(X){return!!X.r$&&!!X.r$.fairplay&&(X.VK==="("||X.VK==="(h"||X.VK==="A"||X.VK==="MEAC3")||io&&!!X.r$&&X.VK==="1e"}; +q_=function(X){return X.VK==="1"||X.VK==="1h"||io&&X.VK==="1e"}; +XN=function(X){return X.VK==="mac3"||X.VK==="meac3"||X.VK==="m"||X.VK==="i"}; +cZ=function(X){return X.VK==="MAC3"||X.VK==="MEAC3"||X.VK==="M"||X.VK==="I"}; +g.Vs=function(X){return X.containerType===1}; +v91=function(X){return X.VK==="("||X.VK==="(h"||X.VK==="H"||io&&X.VK==="1e"}; +Gz=function(X){return X.mimeType==="application/x-mpegURL"}; +g.nu=function(X,c){return{itag:+X.itag,lmt:c?0:X.lastModified,xtags:X.J||""}}; +kyD=function(X){var c=navigator.mediaCapabilities;if(c==null||!c.decodingInfo||X.VK==="f")return Promise.resolve();var V={type:X.audio&&X.video?"file":"media-source"};X.video&&(V.video={contentType:X.mimeType,width:X.video.width||640,height:X.video.height||360,bitrate:X.JX*8||1E6,framerate:X.video.fps||30});X.audio&&(V.audio={contentType:X.mimeType,channels:""+(X.audio.numChannels||2),bitrate:X.JX*8||128E3,samplerate:X.audio.sampleRate||44100});return c.decodingInfo(V).then(function(G){X.G=G})}; +Lu=function(X){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(X)}; +dq=function(X){return/(vp9|vp09|vp8|avc1|av01)/.test(X)}; +ys=function(X){return X.includes("vtt")||X.includes("text/mp4")}; +Kp=function(X){return X.indexOf("/mp4")>=0?1:X.indexOf("/webm")>=0?2:X.indexOf("/x-flv")>=0?3:X.indexOf("/vtt")>=0?4:0}; +h8=function(X,c,V,G,n,L){var d=new Tm;c in g.Pb||(c="small");c==="light"&&(c="tiny");G&&n?(n=Number(n),G=Number(G)):(n=g.Pb[c],G=Math.round(n*16/9));L=new zm(G,n,0,null,void 0,c,L);X=unescape(X.replace(/"/g,'"'));return new Cp(V,X,{audio:d,video:L})}; +A8=function(X){var c="id="+X.id;X.video&&(c+=", res="+X.video.qualityLabel);var V,G;return c+", byterate=("+((V=X.sI)==null?void 0:V.toFixed(0))+", "+((G=X.JX)==null?void 0:G.toFixed(0))+")"}; +YK=function(X,c){return{start:function(V){return X[V]}, +end:function(V){return c[V]}, +length:X.length}}; +o9l=function(X,c,V){for(var G=[],n=[],L=0;L=c)return V}catch(G){}return-1}; +aQ=function(X,c){return HZ(X,c)>=0}; +edU=function(X,c){if(!X)return NaN;c=HZ(X,c);return c>=0?X.start(c):NaN}; +$K=function(X,c){if(!X)return NaN;c=HZ(X,c);return c>=0?X.end(c):NaN}; +WZ=function(X){return X&&X.length?X.end(X.length-1):NaN}; +wq=function(X,c){X=$K(X,c);return X>=0?X-c:0}; +FN=function(X,c,V){for(var G=[],n=[],L=0;LV||(G.push(Math.max(c,X.start(L))-c),n.push(Math.min(V,X.end(L))-c));return YK(G,n)}; +Eo=function(X,c,V,G){g.$T.call(this);var n=this;this.UH=X;this.start=c;this.end=V;this.isActive=G;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.l5={error:function(){!n.vl()&&n.isActive&&n.publish("error",n)}, +updateend:function(){!n.vl()&&n.isActive&&n.publish("updateend",n)}}; +this.UH.F1(this.l5);this.rR=this.isActive}; +Qs=function(X,c,V,G,n,L){g.$T.call(this);var d=this;this.DQ=X;this.Yz=c;this.id=V;this.containerType=G;this.VK=n;this.EN=L;this.HI=this.y9=this.GY=null;this.n7=!1;this.appendWindowStart=this.timestampOffset=0;this.vT=YK([],[]);this.Xu=!1;this.V9=[];this.eE=rq?[]:void 0;this.kc=function(A){return d.publish(A.type,d)}; +var h;if((h=this.DQ)==null?0:h.addEventListener)this.DQ.addEventListener("updateend",this.kc),this.DQ.addEventListener("error",this.kc)}; +ZG=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; +xK=function(X,c){this.uB=X;this.J=c===void 0?!1:c;this.G=!1}; +vZ=function(X,c,V){V=V===void 0?!1:V;g.I.call(this);this.mediaElement=X;this.ev=c;this.isView=V;this.B=0;this.X=!1;this.Z=!0;this.C=0;this.callback=null;this.T=!1;this.ev||(this.Yz=this.mediaElement.WP());this.events=new g.U3(this);g.N(this,this.events);this.U=new xK(this.ev?window.URL.createObjectURL(this.ev):this.Yz.webkitMediaSourceURL,!0);X=this.ev||this.Yz;O1(this.events,X,["sourceopen","webkitsourceopen"],this.mNy);O1(this.events,X,["sourceclose","webkitsourceclose"],this.u4_);this.D={updateend:this.Nh}}; +J08=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; +mAU=function(X,c){kK(X)?g.a3(function(){c(X)}):X.callback=c}; +Rdt=function(X,c,V){if(DG){var G;SU(X.mediaElement,{l:"mswssb",sr:(G=X.mediaElement.J7)==null?void 0:G.Rx()},!1);c.F1(X.D,X);V.F1(X.D,X)}X.J=c;X.G=V;g.N(X,c);g.N(X,V)}; +bZD=function(X,c,V,G){G=c.mimeType+(G===void 0?"":G);var n=V.mimeType;c=c.VK;V=V.VK;var L;X.G_=(L=X.ev)==null?void 0:L.addSourceBuffer(n);var d;X.A7=G.split(";")[0]==="fakesb"?void 0:(d=X.ev)==null?void 0:d.addSourceBuffer(G);X.Yz&&(X.Yz.webkitSourceAddId("0",n),X.Yz.webkitSourceAddId("1",G));L=new Qs(X.G_,X.Yz,"0",Kp(n),V,!1);G=new Qs(X.A7,X.Yz,"1",Kp(G),c,!0);Rdt(X,L,G)}; +iX=function(X){return!!X.J||!!X.G}; +kK=function(X){try{return q1(X)==="open"}catch(c){return!1}}; +q1=function(X){if(X.ev)return X.ev.readyState;switch(X.Yz.webkitSourceState){case X.Yz.SOURCE_OPEN:return"open";case X.Yz.SOURCE_ENDED:return"ended";default:return"closed"}}; +XE=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; +tMl=function(X){kK(X)&&(X.ev?X.ev.endOfStream():X.Yz.webkitSourceEndOfStream(X.Yz.EOS_NO_ERROR))}; +OZl=function(X,c,V,G){if(!X.J||!X.G)return null;var n=X.J.isView()?X.J.UH:X.J,L=X.G.isView()?X.G.UH:X.G,d=new vZ(X.mediaElement,X.ev,!0);d.U=X.U;Rdt(d,new Eo(n,c,V,G),new Eo(L,c,V,G));kK(X)||X.J.RC(X.J.h1());return d}; +l2l=function(X){var c;(c=X.J)==null||c.h4();var V;(V=X.G)==null||V.h4();X.Z=!1}; +cS=function(){var X=this;this.x5=this.qv=lSs;this.promise=new g.rL(function(c,V){X.qv=c;X.x5=V})}; +V_=function(){g.I.call(this);this.HA=!1;this.uB=null;this.D=this.B=!1;this.X=new g.Gd;this.J7=null;g.N(this,this.X)}; +GC=function(X){X=X.TT();return X.length<1?NaN:X.end(X.length-1)}; +MMs=function(X){!X.G&&J08()&&(X.U?X.U.then(function(){return MMs(X)}):X.I$()||(X.G=X.iV()))}; +g9s=function(X){X.G&&(X.G.dispose(),X.G=void 0)}; +SU=function(X,c,V){var G;((G=X.J7)==null?0:G.YU())&&X.J7.Oy("rms",c,V===void 0?!1:V)}; +f2l=function(X,c,V){X.isPaused()||X.getCurrentTime()>c||V>10||(X.play(),g.Q8(function(){f2l(X,X.getCurrentTime(),V+1)},500))}; +pBO=function(X,c){X.uB&&X.uB.w6(c)||(X.uB&&X.uB.dispose(),X.uB=c)}; +ng=function(X){return wq(X.q$(),X.getCurrentTime())}; +I2w=function(X,c){if(X.ag()===0||X.hasError())return!1;var V=X.getCurrentTime()>0;return c>=0&&(X=X.TT(),X.length||!V)?aQ(X,c):V}; +Lg=function(X){X.I$()&&(X.J7&&X.J7.sb("rs_s"),iE&&X.getCurrentTime()>0&&X.seekTo(0),X.e4(),X.load(),pBO(X,null));delete X.U}; +dx=function(X){switch(X.dJ()){case 2:return"progressive.net.retryexhausted";case 3:return X=X.NJ(),(X==null?0:X.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||NRS&&(X==null?0:X.includes("audio_output_change"))?"capability.changed":"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}}; +g.y_=function(X,c,V){this.oP=c===void 0?null:c;this.seekSource=V===void 0?null:V;this.state=X||64}; +h2=function(X,c,V){V=V===void 0?!1:V;return UAl(X,c.getCurrentTime(),(0,g.ta)(),ng(c),V)}; +A2=function(X,c,V,G){if(!(c===X.state&&V===X.oP&&G===X.seekSource||c!==void 0&&(c&128&&!V||c&2&&c&16))){var n;if(n=c)n=c||X.state,n=!!(n&16||n&32);X=new g.y_(c,V,n?G?G:X.seekSource:null)}return X}; +YN=function(X,c,V){return A2(X,X.state|c,null,V===void 0?null:V)}; +jW=function(X,c){return A2(X,X.state&~c,null,null)}; +HS=function(X,c,V,G){return A2(X,(X.state|c)&~V,null,G===void 0?null:G)}; +g.B=function(X,c){return!!(X.state&c)}; +g.aH=function(X,c){return c.state===X.state&&c.oP===X.oP}; +$N=function(X){return X.isPlaying()&&!g.B(X,16)&&!g.B(X,32)}; +WS=function(X){return g.B(X,128)?-1:g.B(X,2)?0:g.B(X,2048)?3:g.B(X,64)?-1:g.B(X,1)&&!g.B(X,32)?3:g.B(X,8)?1:g.B(X,4)?2:-1}; +FE=function(X,c,V,G,n,L,d,h,A,Y,H,a,W,w,F,Z,v){g.I.call(this);var e=this;this.pW=X;this.slot=c;this.layout=V;this.t7=G;this.F2=n;this.Sv=L;this.mS=d;this.wm=h;this.cP=A;this.Ot=Y;this.position=a;this.B=W;this.Xh=w;this.En=F;this.lj=Z;this.context=v;this.Oq=!0;this.Z=!1;this.Cy="not_rendering";this.G=!1;this.U=new ZO;X=jR(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.MW=new OF(V.UM,this.t7,X,V.layoutId);var m;X=((m=wx(this))==null?void 0:m.progressCommands)||[];this.X=new ItL(A, +X,V.layoutId,function(){return e.LU()}); +this.J=new W8s({adCpn:this.layout.layoutId,yH:v.yH,aQS:this.En,EN:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; +E8=function(X){return{layoutId:X.iJ(),tQ:X.En,kt:X.Sv.get(),hU:X.HW()}}; +rx=function(X,c){return c.layoutId!==X.layout.layoutId?(X.pW.RP(X.slot,c,new Ar("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+X.layout.layoutId+("and LayoutType: "+X.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; +Q_=function(X){X.Cy="rendering_start_requested";X.Ot(-1)}; +wx=function(X){return jR(X.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; +TRj=function(X){FX("Received layout exit signal when not in layout exit flow.",X.slot,X.layout)}; +uXt=function(X){var c;return((c=Zq(X.Sv.get(),2))==null?void 0:c.clientPlaybackNonce)||""}; +xN=function(X,c){switch(c){case "normal":X.jS("complete");break;case "skipped":X.jS("skip");break;case "abandoned":Is(X.MW,"impression")&&X.jS("abandon")}}; +vS=function(X,c){X.Z||(c=new g.ES(c.state,new g.y_),X.Z=!0);return c}; +kN=function(X,c){FC(c)?X.Ot(1):g.QP(c,4)&&!g.QP(c,2)&&X.eC();rR(c,4)<0&&!(rR(c,2)<0)&&X.rf()}; +PGO=function(X){X.position===0&&(X.wm.get(),X=jR(X.layout.clientMetadata,"metadata_type_ad_placement_config").kind,X={adBreakType:oH(X)},zh("ad_bl"),g.Bh(X))}; +eW=function(X,c){fk(X.MW,c,!X.G)}; +BRL=function(X){var c;return(((c=wx(X))==null?void 0:c.progressCommands)||[]).findIndex(function(V){return!!g.T(V==null?void 0:V.command,zdD)})!==-1}; +J2=function(X,c){var V=jR(X.clientMetadata,"metadata_type_eligible_for_ssap");return V===void 0?(FX("Expected SSAP eligibility in PlayerBytes factory",X),!1):c.HW(V)}; +mG=function(X,c){if(!Xu(c.get(),"html5_ssap_pass_transition_reason"))return 3;switch(X){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return FX("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return FX("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:X}),3;default:VB(X,"unknown layoutExitReason")}}; +K8D=function(X){FX("getExitReason: unexpected reason",void 0,void 0,{reason:X})}; +RH=function(X,c){if(Xu(c.get(),"html5_ssap_pass_transition_reason"))switch(X){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return K8D(X),"abandoned";case 3:case 1:return K8D(X),"error";default:VB(X,"unexpected transition reason")}else switch(X){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return FX("getExitReason: unexpected reason",void 0,void 0,{reason:X}),"error";default:VB(X,"unexpected transition reason")}}; +b3=function(X,c,V){sr(X,V)||DN(X,c,V);sr(X,"video_to_ad")||DN(X,c,"video_to_ad");sr(X,"ad_to_video")||DN(X,c,"ad_to_video");sr(X,"ad_to_ad")||DN(X,c,"ad_to_ad")}; +t2=function(X,c,V,G,n,L,d,h,A,Y,H,a,W,w,F,Z,v,e){FE.call(this,X,c,V,G,n,L,d,h,Y,H,a,W,w,F,Z,v,e);var m=this;this.oy=A;this.d_=a;this.Dt=!0;this.wN=this.XK=0;this.gq=F$(function(){juU(E8(m));m.pW.yZ(m.slot,m.layout)}); +this.PU=F$(function(){HZl(E8(m));m.Cy!=="rendering_stop_requested"&&m.d_(m);m.layoutExitReason?m.pW.m7(m.slot,m.layout,m.layoutExitReason):TRj(m)}); +this.lf=new g.em(200);this.lf.listen("tick",function(){m.er()}); +g.N(this,this.lf)}; +l3=function(X){X.wN=Date.now();O8(X,X.XK);X.lf.start()}; +su8=function(X){X.XK=X.LU();X.m1(X.XK/1E3,!0);O8(X,X.XK)}; +O8=function(X,c){c={current:c/1E3,duration:X.LU()/1E3};X.oy.get().Wu("onAdPlaybackProgress",c)}; +MU=function(X){t2.call(this,X.pW,X.slot,X.Zb,X.t7,X.F2,X.Sv,X.mS,X.wm,X.oy,X.cP,X.Ot,X.d_,X.kq,X.Fd,X.Xh,X.En,X.lj,X.context)}; +gx=function(X){t2.call(this,X.pW,X.slot,X.Zb,X.t7,X.F2,X.Sv,X.mS,X.wm,X.oy,X.cP,X.Ot,X.d_,X.kq,X.Fd,X.Xh,X.En,X.lj,X.context)}; +fg=function(){gx.apply(this,arguments)}; +CGt=function(X){return J2(X.slot,X.Xh.get())?new fg(X):new MU(X)}; +NU=function(X){FE.call(this,X.callback,X.slot,X.Zb,X.t7,X.F2,X.Sv,X.mS,X.wm,X.cP,X.Ot,X.d_,X.kq,X.Fd,X.Xh,X.En,X.lj,X.context);var c=this;this.adCpn="";this.Ej=this.By=0;this.gq=F$(function(){juU(E8(c));c.pW.yZ(c.slot,c.layout)}); +this.PU=F$(function(){HZl(E8(c));c.Cy!=="rendering_stop_requested"&&c.d_(c);c.layoutExitReason?c.pW.m7(c.slot,c.layout,c.layoutExitReason):TRj(c)}); +this.Tr=X.Tr;this.CM=X.CM;this.b3=X.b3;this.oy=X.oy;this.b_=X.b_;this.d_=X.d_;if(!this.HW()){Xu(this.Xh.get(),"html5_disable_media_load_timeout")||(this.A9=new g.qR(function(){c.v4("load_timeout",new Ar("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); +X=pg(this.Xh.get());var V=IH(this.Xh.get());X&&V&&(this.sG=new g.qR(function(){var G=jR(c.layout.clientMetadata,"metadata_type_preload_player_vars");G&&c.CM.get().W.preloadVideoByPlayerVars(G,2,300)}))}}; +SSl=function(X,c){var V=jR(c.clientMetadata,"metadata_type_ad_video_id"),G=jR(c.clientMetadata,"metadata_type_legacy_info_card_vast_extension");V&&G&&X.b_.get().W.j().wy.add(V,{iD:G});(c=jR(c.clientMetadata,"metadata_type_sodar_extension_data"))&&iMO(X.Tr.get(),c);DAS(X.mS.get(),!1)}; +iZO=function(X){DAS(X.mS.get(),!0);var c;((c=X.shrunkenPlayerBytesConfig)==null?0:c.shouldRequestShrunkenPlayerBytes)&&X.mS.get().vF(!1)}; +U8=function(){NU.apply(this,arguments)}; +TC=function(){U8.apply(this,arguments)}; +qSD=function(X){return CGt(Object.assign({},X,{pW:X.callback,Ot:function(){}}))}; +XhU=function(X){return new NU(Object.assign({},X,{Ot:function(c){X.oy.get().Wu("onAdIntroStateChange",c)}}))}; +cMS=function(X){function c(V){X.oy.get().G$(V)} +return J2(X.slot,X.Xh.get())?new TC(Object.assign({},X,{Ot:c})):new NU(Object.assign({},X,{Ot:c}))}; +u3=function(X){for(var c=X.Zb,V=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],G=g.r(la()),n=G.next();!n.done;n=G.next())V.push(n.value);if(VY(c,{uf:V,oL:["LAYOUT_TYPE_MEDIA_BREAK"]}))return qSD(X);c=X.Zb;V=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];G=g.r(la());for(n=G.next();!n.done;n=G.next())V.push(n.value);if(VY(c,{uf:V,oL:["LAYOUT_TYPE_MEDIA"]}))return dG(X.Zb.clientMetadata,"metadata_type_ad_intro")?XhU(X):cMS(X)}; +GhL=function(X){var c=jR(X.clientMetadata,"metadata_type_ad_placement_config").kind,V=jR(X.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:X.layoutId,adType:V1D(V),adBreakType:oH(c)}}; +oH=function(X){switch(X){case "AD_PLACEMENT_KIND_START":return"LATENCY_AD_BREAK_TYPE_PREROLL";case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return"LATENCY_AD_BREAK_TYPE_MIDROLL";case "AD_PLACEMENT_KIND_END":return"LATENCY_AD_BREAK_TYPE_POSTROLL";default:return"LATENCY_AD_BREAK_TYPE_UNKNOWN"}}; +V1D=function(X){switch(X){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; +neU=function(X){try{return new PS(X.v3,X.slot,X.layout,X.eQ,X.xM,X.Sv,X.Iy,X.CM,X.A1,X.mS,X.bll,X)}catch(c){}}; +PS=function(X,c,V,G,n,L,d,h,A,Y,H,a){g.I.call(this);this.v3=X;this.slot=c;this.layout=V;this.eQ=G;this.xM=n;this.Sv=L;this.Iy=d;this.CM=h;this.A1=A;this.mS=Y;this.params=a;this.Oq=!0;X=u3(H);if(!X)throw Error("Invalid params for sublayout");this.KM=X}; +L4w=function(){this.J=1;this.G=new ZO}; +zC=function(X,c,V,G,n,L,d,h,A,Y,H,a,W){g.I.call(this);this.callback=X;this.Sv=c;this.Iy=V;this.CM=G;this.mS=n;this.wm=L;this.Ss=d;this.slot=h;this.layout=A;this.eQ=Y;this.nm=H;this.A1=a;this.Xh=W;this.Oq=!0;this.Y4=!1;this.Kl=[];this.yG=-1;this.Kk=!1;this.MM=new L4w}; +dpl=function(X){var c;return(c=X.layout.tV)!=null?c:jR(X.layout.clientMetadata,"metadata_type_sub_layouts")}; +BS=function(X){return{kt:X.Sv.get(),tQ:!1,hU:X.HW()}}; +yMU=function(X,c,V){if(X.pK()===X.Kl.length-1){var G,n;FX("Unexpected skip requested during the last sublayout",(G=X.yL())==null?void 0:G.TF(),(n=X.yL())==null?void 0:n.nS(),{requestingSlot:c,requestingLayout:V})}}; +hvs=function(X,c,V){return V.layoutId!==Kg(X,c,V)?(FX("onSkipRequested for a PlayerBytes layout that is not currently active",X.TF(),X.nS()),!1):!0}; +AMO=function(X){X.pK()===X.Kl.length-1&&FX("Unexpected skip with target requested during the last sublayout")}; +Yrs=function(X,c,V){return V.renderingContent===void 0&&V.layoutId!==Kg(X,c,V)?(FX("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",X.TF(),X.nS(),{requestingSlot:c,requestingLayout:V}),!1):!0}; +jGw=function(X,c,V,G){var n=jR(c.nS().clientMetadata,"metadata_type_ad_pod_skip_target");if(n&&n>0&&n0)){FX("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",X.slot,X.layout,{indexToPlay:c,layoutId:X.layout.layoutId});break a}X.yG=c;c=X.yL();if(X.pK()>0&&!X.HW()){var V=X.wm.get();V.G=!1;var G={};V.J&&V.videoId&&(G.cttAuthInfo={token:V.J,videoId:V.videoId});Kn("ad_to_ad",G)}X.tD(c)}}; +SW=function(X){zC.call(this,X.v3,X.Sv,X.Iy,X.CM,X.mS,X.wm,X.Ss,X.slot,X.layout,X.eQ,X.nm,X.A1,X.Xh)}; +$pO=function(X){(X=X.yL())&&X.fU()}; +i3=function(X){zC.call(this,X.v3,X.Sv,X.Iy,X.CM,X.mS,X.wm,X.Ss,X.slot,X.layout,X.eQ,X.nm,X.A1,X.Xh);this.BW=void 0}; +W4D=function(X,c){X.rQ()&&!vb(X.MM.G)||X.callback.m7(X.slot,X.layout,c)}; +qU=function(X){return Xu(X.Xh.get(),"html5_ssap_pass_transition_reason")}; +whD=function(X,c,V){c.lW().currentState<2&&(V=RH(V,X.Xh),c.X6(c.nS(),V));V=c.lW().J;X.M3(X.slot,c.nS(),V)}; +F4t=function(X,c){if(X.MM.G.currentState<2){var V=RH(c,X.Xh);V==="error"?X.callback.RP(X.slot,X.layout,new Ar("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:c},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):Dq(X.nm,X.layout,V)}}; +XM=function(X,c,V){c.lW().currentState>=2||(c.X6(c.nS(),V),vb(c.lW())&&(Mg(X.Ss,X.slot,c.nS(),V),X.BW=void 0))}; +Ees=function(X,c){X.MM.J===2&&c!==X.Yo()&&FX("onClipEntered: unknown cpn",X.slot,X.layout,{cpn:c})}; +rMS=function(X,c){var V=X.yL();if(V){var G=V.nS().layoutId,n=X.pK()+1;X.rQ()?XM(X,V,c):V.X6(V.nS(),c);n>=0&&nn&&d.xP(H,n-G);return H}; +mpl=function(X,c,V){var G=jR(c.clientMetadata,"metadata_type_sodar_extension_data");if(G)try{iMO(V,G)}catch(n){FX("Unexpected error when loading Sodar",X,c,{error:n})}}; +Rvw=function(X,c,V,G,n,L,d){yz(X,c,new g.ES(V,new g.y_),G,n,d,!1,L)}; +yz=function(X,c,V,G,n,L,d,h){d=d===void 0?!0:d;FC(V)&&E3(n,0,null)&&(!Is(X,"impression")&&h&&h(),X.jS("impression"));Is(X,"impression")&&(g.QP(V,4)&&!g.QP(V,2)&&X.Cl("pause"),rR(V,4)<0&&!(rR(V,2)<0)&&X.Cl("resume"),g.QP(V,16)&&n>=.5&&X.Cl("seek"),d&&g.QP(V,2)&&hf(X,V.state,c,G,n,L))}; +hf=function(X,c,V,G,n,L,d,h){Is(X,"impression")&&(L?(L=n-G,L=L>=-1&&L<=2):L=Math.abs(G-n)<=1,Af(X,c,L?G:n,V,G,d,h&&L),L&&X.jS("complete"))}; +Af=function(X,c,V,G,n,L,d){pk(X,V*1E3,d);n<=0||V<=0||(c==null?0:g.B(c,16))||(c==null?0:g.B(c,32))||(E3(V,n*.25,G)&&(L&&!Is(X,"first_quartile")&&L("first"),X.jS("first_quartile")),E3(V,n*.5,G)&&(L&&!Is(X,"midpoint")&&L("second"),X.jS("midpoint")),E3(V,n*.75,G)&&(L&&!Is(X,"third_quartile")&&L("third"),X.jS("third_quartile")))}; +bn1=function(X,c){Is(X,"impression")&&X.Cl(c?"fullscreen":"end_fullscreen")}; +t1D=function(X){Is(X,"impression")&&X.Cl("clickthrough")}; +Onj=function(X){X.Cl("active_view_measurable")}; +lNO=function(X){Is(X,"impression")&&!Is(X,"seek")&&X.Cl("active_view_fully_viewable_audible_half_duration")}; +M1t=function(X){Is(X,"impression")&&!Is(X,"seek")&&X.Cl("active_view_viewable")}; +gel=function(X){Is(X,"impression")&&!Is(X,"seek")&&X.Cl("audio_audible")}; +fN1=function(X){Is(X,"impression")&&!Is(X,"seek")&&X.Cl("audio_measurable")}; +phj=function(X,c,V,G,n,L,d,h,A,Y,H,a){this.callback=X;this.slot=c;this.layout=V;this.Iy=G;this.MW=n;this.mS=L;this.H3=d;this.F2=h;this.Tr=A;this.Xh=Y;this.t7=H;this.Sv=a;this.Dt=!0;this.Gm=this.Cy=null;this.adCpn=void 0;this.J=!1}; +INU=function(X,c,V){var G;dE(X.t7.get(),"ads_qua","cpn."+jR(X.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((G=Zq(X.Sv.get(),2))==null?void 0:G.clientPlaybackNonce)+";qt."+c+";clr."+V)}; +Nrl=function(X,c){var V,G;dE(X.t7.get(),"ads_imp","cpn."+jR(X.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((V=Zq(X.Sv.get(),2))==null?void 0:V.clientPlaybackNonce)+";clr."+c+";skp."+!!g.T((G=jR(X.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:G.skipOrPreviewRenderer,Y2))}; +jN=function(X){return{enterMs:jR(X.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:jR(X.clientMetadata,"metadata_type_layout_exit_ms")}}; +Hd=function(X,c,V,G,n,L,d,h,A,Y,H,a,W,w){Vz.call(this,X,c,V,G,n,d,h,A,Y,a);this.H3=L;this.Tr=H;this.F2=W;this.Xh=w;this.Gm=this.Cy=null}; +Upw=function(X,c){var V;dE(X.t7.get(),"ads_imp","acpn."+((V=Zq(X.Sv.get(),2))==null?void 0:V.clientPlaybackNonce)+";clr."+c)}; +TrD=function(X,c,V){var G;dE(X.t7.get(),"ads_qua","cpn."+jR(X.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((G=Zq(X.Sv.get(),2))==null?void 0:G.clientPlaybackNonce)+";qt."+c+";clr."+V)}; +aD=function(X,c,V,G,n,L,d,h,A,Y,H,a,W,w,F,Z,v,e,m,t,f){this.A1=X;this.eQ=c;this.nm=V;this.Sv=G;this.Iy=n;this.mS=L;this.t7=d;this.H3=h;this.VC=A;this.F2=Y;this.Tr=H;this.CM=a;this.b3=W;this.wm=w;this.oy=F;this.cP=Z;this.b_=v;this.Xh=e;this.J=m;this.context=t;this.lj=f}; +$2=function(X,c,V,G,n,L,d,h,A,Y,H,a,W,w,F,Z,v,e){this.A1=X;this.eQ=c;this.nm=V;this.t7=G;this.F2=n;this.Tr=L;this.CM=d;this.Sv=h;this.mS=A;this.b3=Y;this.wm=H;this.oy=a;this.cP=W;this.b_=w;this.Xh=F;this.Iy=Z;this.context=v;this.lj=e}; +u0j=function(X,c,V,G){a_.call(this,"survey-interstitial",X,c,V,G)}; +Wd=function(X,c,V,G,n){ka.call(this,V,X,c,G);this.t7=n;X=jR(c.clientMetadata,"metadata_type_ad_placement_config");this.MW=new OF(c.UM,n,X,c.layoutId)}; +wE=function(X){return Math.round(X.width)+"x"+Math.round(X.height)}; +EG=function(X,c,V){V=V===void 0?FM:V;V.widthX.width*X.height*.2)return{qO:3,wR:501,errorMessage:"ad("+wE(V)+") to container("+wE(X)+") ratio exceeds limit."};if(V.height>X.height/3-c)return{qO:3,wR:501,errorMessage:"ad("+wE(V)+") covers container("+wE(X)+") center."}}; +Plt=function(X,c){var V=jR(X.clientMetadata,"metadata_type_ad_placement_config");return new OF(X.UM,c,V,X.layoutId)}; +rE=function(X){return jR(X.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; +Qz=function(X,c,V,G){a_.call(this,"invideo-overlay",X,c,V,G);this.interactionLoggingClientData=G}; +Zr=function(X,c,V,G,n,L,d,h,A,Y,H,a){ka.call(this,L,X,c,n);this.t7=V;this.X=d;this.mS=h;this.cP=A;this.Xh=Y;this.B=H;this.Z=a;this.MW=Plt(c,V)}; +zv1=function(){var X=["metadata_type_invideo_overlay_ad_renderer"];la().forEach(function(c){X.push(c)}); +return{uf:X,oL:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; +x2=function(X,c,V,G,n,L,d,h,A,Y,H,a,W){ka.call(this,L,X,c,n);this.t7=V;this.X=d;this.T=h;this.mS=A;this.cP=Y;this.Xh=H;this.B=a;this.Z=W;this.MW=Plt(c,V)}; +Brl=function(){for(var X=["metadata_type_invideo_overlay_ad_renderer"],c=g.r(la()),V=c.next();!V.done;V=c.next())X.push(V.value);return{uf:X,oL:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; +vd=function(X){this.mS=X;this.J=!1}; +K4s=function(X,c,V){a_.call(this,"survey",X,{},c,V)}; +k2=function(X,c,V,G,n,L,d){ka.call(this,V,X,c,G);this.X=n;this.mS=L;this.Xh=d}; +sGs=function(X,c,V,G,n,L,d,h,A,Y){this.X8=X;this.mS=c;this.t7=V;this.X=G;this.F2=n;this.G=L;this.U=d;this.cP=h;this.Xh=A;this.J=Y}; +ClS=function(X,c,V,G,n,L,d,h,A,Y){this.X8=X;this.mS=c;this.t7=V;this.X=G;this.F2=n;this.G=L;this.U=d;this.cP=h;this.Xh=A;this.J=Y}; +oD=function(X,c,V,G,n,L,d,h,A,Y){hm.call(this,X,c,V,G,n,L,d,A);this.c5=h;this.Sv=Y}; +Dpt=function(){var X=VMO();X.uf.push("metadata_type_ad_info_ad_metadata");return X}; +SrU=function(X,c,V,G,n,L,d){this.X8=X;this.mS=c;this.t7=V;this.G=G;this.c5=n;this.J=L;this.Sv=d}; +inD=function(X,c,V,G,n,L,d,h){this.X8=X;this.mS=c;this.t7=V;this.G=G;this.c5=n;this.J=L;this.Xh=d;this.Sv=h}; +eN=function(X,c){this.slotId=c;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=X(this.triggerType)}; +Jf=function(X,c){this.adPodIndex=X;this.J=c.length;this.adBreakLengthSeconds=c.reduce(function(G,n){return G+n},0); +var V=0;for(X+=1;X0}; +Yl=function(X){return!!(X.AXc&&X.slot&&X.layout)}; +jT=function(X){var c,V=(c=X.config)==null?void 0:c.adPlacementConfig;X=X.renderer;return!(!V||V.kind==null||!X)}; +H2s=function(X){if(!GA(X.adLayoutMetadata))return!1;X=X.renderingContent;return g.T(X,$q)||g.T(X,Wb)||g.T(X,Hb)||g.T(X,ad)?!0:!1}; +HK=function(X){return X.playerVars!==void 0&&X.pings!==void 0&&X.externalVideoId!==void 0}; +r8=function(X){if(!GA(X.adLayoutMetadata))return!1;X=X.renderingContent;var c=g.T(X,a2);return c?$l(c):(c=g.T(X,WK))?HK(c):(c=g.T(X,w8))?c.playerVars!==void 0:(c=g.T(X,$q))?c.durationMilliseconds!==void 0:g.T(X,FH)||g.T(X,ER)?!0:!1}; +$l=function(X){X=(X.sequentialLayouts||[]).map(function(c){return g.T(c,QE)}); +return X.length>0&&X.every(r8)}; +xl=function(X){return GA(X.adLayoutMetadata)?(X=g.T(X.renderingContent,ZC))&&X.pings?!0:!1:!1}; +Ey1=function(X){if(!GA(X.adLayoutMetadata))return!1;if(g.T(X.renderingContent,aBU)||g.T(X.renderingContent,$Cs))return!0;var c=g.T(X.renderingContent,bS);return g.T(X.renderingContent,tl)||g.T(c==null?void 0:c.sidePanel,WS8)||g.T(c==null?void 0:c.sidePanel,wl2)||g.T(c==null?void 0:c.sidePanel,FS1)?!0:!1}; +vy2=function(X){var c;(c=!X)||(c=X.adSlotMetadata,c=!((c==null?void 0:c.slotId)!==void 0&&(c==null?void 0:c.slotType)!==void 0));if(c||!(rX8(X)||X.slotEntryTrigger&&X.slotFulfillmentTriggers&&X.slotExpirationTriggers))return!1;var V;X=(V=X.fulfillmentContent)==null?void 0:V.fulfilledLayout;return(V=g.T(X,QE))?r8(V):(V=g.T(X,OR))?Ey1(V):(V=g.T(X,QOO))?H2s(V):(V=g.T(X,Z2D))?Yn2(V):(V=g.T(X,xCO))?GA(V.adLayoutMetadata)?g.T(V.renderingContent,nA)?!0:!1:!1:(X=g.T(X,lS))?xl(X):!1}; +rX8=function(X){var c;X=g.T((c=X.fulfillmentContent)==null?void 0:c.fulfilledLayout,OR);var V;return X&&((V=X.adLayoutMetadata)==null?void 0:V.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&X.layoutExitNormalTriggers===void 0}; +kFD=function(X){var c;return(X==null?void 0:(c=X.adSlotMetadata)==null?void 0:c.slotType)==="SLOT_TYPE_IN_PLAYER"}; +eLl=function(X,c){var V;if((V=X.questions)==null||!V.length||!X.playbackCommands||(c===void 0||!c)&&X.questions.length!==1)return!1;X=g.r(X.questions);for(c=X.next();!c.done;c=X.next()){c=c.value;var G=V=void 0,n=((V=g.T(c,Mz))==null?void 0:V.surveyAdQuestionCommon)||((G=g.T(c,g8))==null?void 0:G.surveyAdQuestionCommon);if(!oyl(n))return!1}return!0}; +JXU=function(X){X=((X==null?void 0:X.playerOverlay)||{}).instreamSurveyAdRenderer;var c;if(X)if(X.playbackCommands&&X.questions&&X.questions.length===1){var V,G=((c=g.T(X.questions[0],Mz))==null?void 0:c.surveyAdQuestionCommon)||((V=g.T(X.questions[0],g8))==null?void 0:V.surveyAdQuestionCommon);c=oyl(G)}else c=!1;else c=!1;return c}; +oyl=function(X){if(!X)return!1;X=g.T(X.instreamAdPlayerOverlay,fA);var c=g.T(X==null?void 0:X.skipOrPreviewRenderer,Y2),V=g.T(X==null?void 0:X.adInfoRenderer,pA);return(g.T(X==null?void 0:X.skipOrPreviewRenderer,I2)||c)&&V?!0:!1}; +mCL=function(X){return X.linearAds!=null&&GA(X.adLayoutMetadata)}; +RLj=function(X){return X.linearAd!=null&&X.adVideoStart!=null}; +b2s=function(X){if(isNaN(Number(X.timeoutSeconds))||!X.text||!X.ctaButton||!g.T(X.ctaButton,g.Nz)||!X.brandImage)return!1;var c;return X.backgroundImage&&g.T(X.backgroundImage,UR)&&((c=g.T(X.backgroundImage,UR))==null?0:c.landscape)?!0:!1}; +TA=function(X,c,V,G,n,L,d){g.I.call(this);this.Xh=X;this.J=c;this.U=G;this.Sv=n;this.X=L;this.G=d}; +lBs=function(X,c,V){var G,n=((G=V.adSlots)!=null?G:[]).map(function(h){return g.T(h,uS)}); +if(V.FN)if(jR(c.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))Qn(X.J.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},c.slotId); +else{if(X.Xh.get().W.j().S("h5_check_forecasting_renderer_for_throttled_midroll")){var L=V.Lu.filter(function(h){var A;return((A=h.renderer)==null?void 0:A.clientForecastingAdRenderer)!=null}); +L.length!==0?tIj(X.G,L,n,c.slotId,V.ssdaiAdsConfig):Qn(X.J.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},c.slotId)}else Qn(X.J.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},c.slotId); +O2j(X.X,c)}else{var d;G={oz:Math.round(((L=jR(c.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:L.oz)||0),CO:(d=jR(c.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:d.CO};tIj(X.G,V.Lu,n,c.slotId,V.ssdaiAdsConfig,G)}}; +gyS=function(X,c,V,G,n,L,d){var h=Zq(X.Sv.get(),1);Qn(X.J.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return MIO(X.U.get(),V,G,n,h.clientPlaybackNonce,h.BS,h.daiEnabled,h,L,d)},c)}; +plL=function(X,c,V,G,n,L,d){c=fBD(c,L,Number(G.prefetchMilliseconds)||0,d);X=c instanceof D?c:PK(X,G,n,c,V);return X instanceof D?X:[X]}; +IBL=function(X,c,V,G,n){var L=ZQ(X.G.get(),"SLOT_TYPE_AD_BREAK_REQUEST");G=[new ux({getAdBreakUrl:G.getAdBreakUrl,oz:0,CO:0}),new GL(!0)];X=c.pauseDurationMs?c.lactThresholdMs?{slotId:L,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new ik(X.J,L),slotFulfillmentTriggers:[new XlD(X.J)],slotExpirationTriggers:[new z3(X.J,n),new CR(X.J,L)],sy:"core",clientMetadata:new YS(G),adSlotLoggingData:V}:new D("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new D("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); +return X instanceof D?X:[X]}; +NJs=function(X){var c,V;return((c=X.renderer)==null?void 0:(V=c.adBreakServiceRenderer)==null?void 0:V.getAdBreakUrl)!==void 0}; +zA=function(X,c,V){if(X.beforeContentVideoIdStartedTrigger)X=X.beforeContentVideoIdStartedTrigger?new mV(hr,c,X.id):new D("Not able to create BeforeContentVideoIdStartedTrigger");else{if(X.layoutIdExitedTrigger){var G;c=(G=X.layoutIdExitedTrigger)!=null&&G.triggeringLayoutId?new Ms(hr,X.layoutIdExitedTrigger.triggeringLayoutId,X.id):new D("Not able to create LayoutIdExitedTrigger")}else{if(X.layoutExitedForReasonTrigger){var n,L;((n=X.layoutExitedForReasonTrigger)==null?0:n.triggeringLayoutId)&&((L= +X.layoutExitedForReasonTrigger)==null?0:L.layoutExitReason)?(c=cX8(X.layoutExitedForReasonTrigger.layoutExitReason),X=c instanceof D?c:new lk(hr,X.layoutExitedForReasonTrigger.triggeringLayoutId,[c],X.id)):X=new D("Not able to create LayoutIdExitedForReasonTrigger")}else{if(X.onLayoutSelfExitRequestedTrigger){var d;c=(d=X.onLayoutSelfExitRequestedTrigger)!=null&&d.triggeringLayoutId?new Pd(hr,X.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,X.id):new D("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(X.onNewPlaybackAfterContentVideoIdTrigger)X= +X.onNewPlaybackAfterContentVideoIdTrigger?new z3(hr,c,X.id):new D("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(X.skipRequestedTrigger){var h;c=(h=X.skipRequestedTrigger)!=null&&h.triggeringLayoutId?new KR(hr,X.skipRequestedTrigger.triggeringLayoutId,X.id):new D("Not able to create SkipRequestedTrigger")}else if(X.slotIdEnteredTrigger){var A;c=(A=X.slotIdEnteredTrigger)!=null&&A.triggeringSlotId?new sG(hr,X.slotIdEnteredTrigger.triggeringSlotId,X.id):new D("Not able to create SlotIdEnteredTrigger")}else if(X.slotIdExitedTrigger){var Y; +c=(Y=X.slotIdExitedTrigger)!=null&&Y.triggeringSlotId?new CR(hr,X.slotIdExitedTrigger.triggeringSlotId,X.id):new D("Not able to create SkipRequestedTrigger")}else if(X.surveySubmittedTrigger){var H;c=(H=X.surveySubmittedTrigger)!=null&&H.triggeringLayoutId?new XH(hr,X.surveySubmittedTrigger.triggeringLayoutId,X.id):new D("Not able to create SurveySubmittedTrigger")}else{if(X.mediaResumedTrigger)X=X.mediaResumedTrigger&&X.id?new VIl(X.id):new D("Not able to create MediaResumedTrigger");else{if(X.closeRequestedTrigger){var a; +c=(a=X.closeRequestedTrigger)!=null&&a.triggeringLayoutId?new RD(hr,X.closeRequestedTrigger.triggeringLayoutId,X.id):new D("Not able to create CloseRequestedTrigger")}else if(X.slotIdScheduledTrigger){var W;c=(W=X.slotIdScheduledTrigger)!=null&&W.triggeringSlotId?new ik(hr,X.slotIdScheduledTrigger.triggeringSlotId,X.id):new D("Not able to create SlotIdScheduledTrigger")}else{if(X.mediaTimeRangeTrigger){var w;G=Number((w=X.mediaTimeRangeTrigger)==null?void 0:w.offsetStartMilliseconds);var F;d=Number((F= +X.mediaTimeRangeTrigger)==null?void 0:F.offsetEndMilliseconds);isFinite(G)&&isFinite(d)?(F=d,F===-1&&(F=V),V=G>F?new D("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:G,offsetEndMs:F},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",F===V&&G-500<=F):new ek(G,F),X=V instanceof D?V:new Ns(hr,c,V,!1,X.id)):X=new D("Not able to create MediaTimeRangeTrigger")}else if(X.contentVideoIdEndedTrigger)X=X.contentVideoIdEndedTrigger?new bk(hr,c,!1,X.id):new D("Not able to create ContentVideoIdEndedTrigger"); +else{if(X.layoutIdEnteredTrigger){var Z;c=(Z=X.layoutIdEnteredTrigger)!=null&&Z.triggeringLayoutId?new OG(hr,X.layoutIdEnteredTrigger.triggeringLayoutId,X.id):new D("Not able to create LayoutIdEnteredTrigger")}else if(X.timeRelativeToLayoutEnterTrigger){var v;c=(v=X.timeRelativeToLayoutEnterTrigger)!=null&&v.triggeringLayoutId?new cK(hr,Number(X.timeRelativeToLayoutEnterTrigger.durationMs),X.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,X.id):new D("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(X.onDifferentLayoutIdEnteredTrigger){var e; +c=(e=X.onDifferentLayoutIdEnteredTrigger)!=null&&e.triggeringLayoutId&&X.onDifferentLayoutIdEnteredTrigger.slotType&&X.onDifferentLayoutIdEnteredTrigger.layoutType?new T3(hr,X.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,X.onDifferentLayoutIdEnteredTrigger.slotType,X.onDifferentLayoutIdEnteredTrigger.layoutType,X.id):new D("Not able to create CloseRequestedTrigger")}else{if(X.liveStreamBreakStartedTrigger)X=X.liveStreamBreakStartedTrigger&&X.id?new ID(hr,X.id):new D("Not able to create LiveStreamBreakStartedTrigger"); +else if(X.liveStreamBreakEndedTrigger)X=X.liveStreamBreakEndedTrigger&&X.id?new gE(hr,X.id):new D("Not able to create LiveStreamBreakEndedTrigger");else{if(X.liveStreamBreakScheduledDurationMatchedTrigger){var m;c=(m=X.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&m.breakDurationMs?new fR(Number(X.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,X.id):new D("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(X.liveStreamBreakScheduledDurationNotMatchedTrigger){var t; +c=(t=X.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&t.breakDurationMs?new pR(Number(X.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,X.id):new D("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(X.newSlotScheduledWithBreakDurationTrigger){var f;c=(f=X.newSlotScheduledWithBreakDurationTrigger)!=null&&f.breakDurationMs?new UG(Number(X.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,X.id):new D("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else c= +X.prefetchCacheExpiredTrigger?new Bd(hr,X.id):new D("Not able to convert an AdsControlflowTrigger.");X=c}c=X}X=c}c=X}X=c}c=X}X=c}c=X}X=c}c=X}X=c}return X}; +BK=function(X,c){c.J>=2&&(X.slot_pos=c.adPodIndex);X.autoplay="1"}; +TJt=function(X,c,V,G,n,L,d,h){return c===null?new D("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:c,ActionCompanionAdRenderer:G}):[UCj(X,c,d,L,function(A){var Y=A.slotId;A=h(A);var H=G.adLayoutLoggingData,a=new YS([new Pc(G),new GW(n)]);Y=cQ(V.G.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Y);var W={layoutId:Y,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",sy:"core"};return{layoutId:Y,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",UM:new Map, +layoutExitNormalTriggers:[new z3(V.J,d)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],LM:[],sy:"core",clientMetadata:a,eS:A(W),adLayoutLoggingData:H}})]}; +u4t=function(X,c,V,G,n,L,d,h){return c===null?new D("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:c,TopBannerImageTextIconButtonedLayoutViewModel:G}):[UCj(X,c,d,L,function(A){var Y=A.slotId;A=h(A);var H=G.adLayoutLoggingData,a=new YS([new zE(G),new GW(n)]);Y=cQ(V.G.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Y);var W={layoutId:Y,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",sy:"core"};return{layoutId:Y,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", +UM:new Map,layoutExitNormalTriggers:[new z3(V.J,d)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],LM:[],sy:"core",clientMetadata:a,eS:A(W),adLayoutLoggingData:H}})]}; +KSS=function(X,c,V,G,n,L){if(!L)for(c=g.r(c),L=c.next();!L.done;L=c.next())L=L.value,KA(X,L.renderer,L.config.adPlacementConfig.kind);X=Array.from(X.values()).filter(function(H){return P42(H)}); +c=[];L=g.r(X);for(var d=L.next(),h={};!d.done;h={z5:void 0},d=L.next()){h.z5=d.value;d=g.r(h.z5.K2);for(var A=d.next(),Y={};!A.done;Y={QR:void 0},A=d.next())Y.QR=A.value,A=function(H,a){return function(W){return H.QR.oG(W,a.z5.instreamVideoAdRenderer.elementId,H.QR.y_)}}(Y,h),Y.QR.isContentVideoCompanion?c.push(zLw(V,G,n,h.z5.instreamVideoAdRenderer.elementId,Y.QR.associatedCompositePlayerBytesLayoutId,Y.QR.adSlotLoggingData,A)):X.length>1?c.push(BJj(V,G,n,h.z5.instreamVideoAdRenderer.elementId,Y.QR.adSlotLoggingData, +function(H,a){return function(W){return H.QR.oG(W,a.z5.instreamVideoAdRenderer.elementId,H.QR.y_,H.QR.associatedCompositePlayerBytesLayoutId)}}(Y,h))):c.push(BJj(V,G,n,h.z5.instreamVideoAdRenderer.elementId,Y.QR.adSlotLoggingData,A))}return c}; +KA=function(X,c,V){if(c=sO2(c)){c=g.r(c);for(var G=c.next();!G.done;G=c.next())if((G=G.value)&&G.externalVideoId){var n=sR(X,G.externalVideoId);n.instreamVideoAdRenderer||(n.instreamVideoAdRenderer=G,n.YI=V)}else FX("InstreamVideoAdRenderer without externalVideoId")}}; +sO2=function(X){var c=[],V=X.sandwichedLinearAdRenderer&&X.sandwichedLinearAdRenderer.linearAd&&g.T(X.sandwichedLinearAdRenderer.linearAd,WK);if(V)return c.push(V),c;if(X.instreamVideoAdRenderer)return c.push(X.instreamVideoAdRenderer),c;if(X.linearAdSequenceRenderer&&X.linearAdSequenceRenderer.linearAds){X=g.r(X.linearAdSequenceRenderer.linearAds);for(V=X.next();!V.done;V=X.next())V=V.value,g.T(V,WK)&&c.push(g.T(V,WK));return c}return null}; +P42=function(X){if(X.instreamVideoAdRenderer===void 0)return FX("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var c=g.r(X.K2),V=c.next();!V.done;V=c.next()){V=V.value;if(V.oG===void 0)return!1;if(V.y_===void 0)return FX("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(X.YI===void 0||V.PQ===void 0||X.YI!==V.PQ&&V.PQ!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(X.instreamVideoAdRenderer.elementId===void 0)return FX("InstreamVideoAdRenderer has no elementId", +void 0,void 0,{kind:X.YI,"matching APSR kind":V.PQ}),!1}return!0}; +sR=function(X,c){X.has(c)||X.set(c,{instreamVideoAdRenderer:void 0,YI:void 0,adVideoId:c,K2:[]});return X.get(c)}; +CA=function(X,c,V,G,n,L,d,h,A){n?sR(X,n).K2.push({DcR:c,PQ:V,isContentVideoCompanion:G,y_:d,associatedCompositePlayerBytesLayoutId:L,adSlotLoggingData:h,oG:A}):FX("Companion AdPlacementSupportedRenderer without adVideoId")}; +DC=function(X){var c=0;X=g.r(X.questions);for(var V=X.next();!V.done;V=X.next())if(V=V.value,V=g.T(V,Mz)||g.T(V,g8)){var G=void 0;c+=((G=V.surveyAdQuestionCommon)==null?void 0:G.durationMilliseconds)||0}return c}; +ST=function(X){var c,V,G,n,L=((V=g.T((c=X.questions)==null?void 0:c[0],Mz))==null?void 0:V.surveyAdQuestionCommon)||((n=g.T((G=X.questions)==null?void 0:G[0],g8))==null?void 0:n.surveyAdQuestionCommon),d;c=[].concat(g.x(((d=X.playbackCommands)==null?void 0:d.instreamAdCompleteCommands)||[]),g.x((L==null?void 0:L.timeoutCommands)||[]));var h,A,Y,H,a,W,w,F,Z,v,e,m,t,f,U,C,K,nj,yl,Xl;return{impressionCommands:(h=X.playbackCommands)==null?void 0:h.impressionCommands,errorCommands:(A=X.playbackCommands)== +null?void 0:A.errorCommands,muteCommands:(Y=X.playbackCommands)==null?void 0:Y.muteCommands,unmuteCommands:(H=X.playbackCommands)==null?void 0:H.unmuteCommands,pauseCommands:(a=X.playbackCommands)==null?void 0:a.pauseCommands,rewindCommands:(W=X.playbackCommands)==null?void 0:W.rewindCommands,resumeCommands:(w=X.playbackCommands)==null?void 0:w.resumeCommands,skipCommands:(F=X.playbackCommands)==null?void 0:F.skipCommands,progressCommands:(Z=X.playbackCommands)==null?void 0:Z.progressCommands,gwv:(v= +X.playbackCommands)==null?void 0:v.clickthroughCommands,fullscreenCommands:(e=X.playbackCommands)==null?void 0:e.fullscreenCommands,activeViewViewableCommands:(m=X.playbackCommands)==null?void 0:m.activeViewViewableCommands,activeViewMeasurableCommands:(t=X.playbackCommands)==null?void 0:t.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(f=X.playbackCommands)==null?void 0:f.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(U=X.playbackCommands)== +null?void 0:(C=U.activeViewTracking)==null?void 0:C.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(K=X.playbackCommands)==null?void 0:(nj=K.activeViewTracking)==null?void 0:nj.activeViewAudioMeasurableCommands,endFullscreenCommands:(yl=X.playbackCommands)==null?void 0:yl.endFullscreenCommands,abandonCommands:(Xl=X.playbackCommands)==null?void 0:Xl.abandonCommands,completeCommands:c}}; +DCl=function(X,c,V,G,n,L,d){return function(h,A){return C4D(X,A.slotId,h,L,function(Y,H){var a=A.layoutId;Y=d(Y);return iS(c,a,H,n,Y,"LAYOUT_TYPE_SURVEY",[new rj(V),G],V.adLayoutLoggingData)})}}; +qns=function(X,c,V,G,n,L,d){if(!Snl(X))return new D("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:X});var h=X.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[i2l(L,c,V,G,function(A){var Y=A.slotId;A=d(A);Y=cQ(n.G.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Y);var H={layoutId:Y,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",sy:"core"},a=new Ms(n.J,G);return{layoutId:Y,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",UM:new Map,layoutExitNormalTriggers:[a], +layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],LM:[],sy:"core",clientMetadata:new YS([new QU(h)]),eS:A(H)}})]}; +Snl=function(X){X=g.T(X==null?void 0:X.additionalPlayerOverlay,Xc2);if(!X)return!1;var c=X.slidingMessages;return X.title&&c&&c.length!==0?!0:!1}; +VE1=function(X,c,V,G,n){var L;if((L=X.playerOverlay)==null||!L.instreamSurveyAdRenderer)return function(){return[]}; +if(!JXU(X))return function(){return new D("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:X})}; +var d=X.playerOverlay.instreamSurveyAdRenderer,h=DC(d);return h<=0?function(){return new D("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:d})}:function(A,Y){var H=c6w(A,V,G,function(a){var W=a.slotId; +a=Y(a);var w=ST(d);W=cQ(n.G.get(),"LAYOUT_TYPE_SURVEY",W);var F={layoutId:W,layoutType:"LAYOUT_TYPE_SURVEY",sy:"core"},Z=new Ms(n.J,G),v=new KR(n.J,W),e=new XH(n.J,W),m=new dC8(n.J);return{layoutId:W,layoutType:"LAYOUT_TYPE_SURVEY",UM:new Map,layoutExitNormalTriggers:[Z,m],layoutExitSkipTriggers:[v],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[e],LM:[],sy:"core",clientMetadata:new YS([new E$(d),new GW(c),new Bf(h/1E3),new DI(w)]),eS:a(F),adLayoutLoggingData:d.adLayoutLoggingData}}); +A=qns(X,V,H.slotId,G,n,A,Y);return A instanceof D?A:[H].concat(g.x(A))}}; +A6l=function(X,c,V,G,n,L,d){d=d===void 0?!1:d;var h=[];try{var A=[];if(V.renderer.linearAdSequenceRenderer)var Y=function(Z){Z=GE1(Z.slotId,V,c,n(Z),G,L,d);A=Z.nz_;return Z.nD}; +else if(V.renderer.instreamVideoAdRenderer)Y=function(Z){var v=Z.slotId;Z=n(Z);var e=d,m=V.config.adPlacementConfig,t=nws(m),f=t.nX,U=t.gT;t=V.renderer.instreamVideoAdRenderer;var C;if(t==null?0:(C=t.playerOverlay)==null?0:C.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var K=qz(t,e);C=Math.min(f+K.videoLengthSeconds*1E3,U);e=new Jf(0,[K.videoLengthSeconds]);U=K.videoLengthSeconds;var nj=K.playerVars,yl=K.instreamAdPlayerOverlayRenderer,Xl=K.playerOverlayLayoutRenderer, +u=K.adVideoId,q=LBD(V),Q=K.UM;K=K.E8;var P=t==null?void 0:t.adLayoutLoggingData;t=t==null?void 0:t.sodarExtensionData;v=cQ(c.G.get(),"LAYOUT_TYPE_MEDIA",v);var Tt={layoutId:v,layoutType:"LAYOUT_TYPE_MEDIA",sy:"core"};return{layoutId:v,layoutType:"LAYOUT_TYPE_MEDIA",UM:Q,layoutExitNormalTriggers:[new gE(c.J)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],LM:[],sy:"core",clientMetadata:new YS([new Ad(G),new bx(U),new td(nj),new M0(f),new gj(C),yl&&new YL(yl), +Xl&&new jf(Xl),new GW(m),new hd(u),new nC(e),new U$(q),t&&new lx(t),new ef({current:null}),new pC({}),new q0(K)].filter(dZS)),eS:Z(Tt),adLayoutLoggingData:P}}; +else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var H=y6w(X,G,V.adSlotLoggingData,Y);h.push(H);for(var a=g.r(A),W=a.next();!W.done;W=a.next()){var w=W.value,F=w(X,n);if(F instanceof D)return F;h.push.apply(h,g.x(F))}}catch(Z){return new D(Z,{errorMessage:Z.message,AdPlacementRenderer:V,numberOfSurveyRenderers:hNj(V)})}return h}; +hNj=function(X){X=(X.renderer.linearAdSequenceRenderer||{}).linearAds;return X!=null&&X.length?X.filter(function(c){var V,G;return((V=g.T(c,WK))==null?void 0:(G=V.playerOverlay)==null?void 0:G.instreamSurveyAdRenderer)!=null}).length:0}; +GE1=function(X,c,V,G,n,L,d){var h=c.config.adPlacementConfig,A=nws(h),Y=A.nX,H=A.gT;A=(c.renderer.linearAdSequenceRenderer||{}).linearAds;if(A==null||!A.length)throw new TypeError("Expected linear ads");var a=[],W={qC:Y,kq:0,L8O:a};A=A.map(function(F){return Yts(X,F,W,V,G,h,n,H,d)}).map(function(F,Z){Z=new Jf(Z,a); +return F(Z)}); +var w=A.map(function(F){return F.sV}); +return{nD:jWU(V,X,Y,w,h,LBD(c),G,H,L),nz_:A.map(function(F){return F.Ez7})}}; +Yts=function(X,c,V,G,n,L,d,h,A){var Y=qz(g.T(c,WK),A),H=V.qC,a=V.kq,W=Math.min(H+Y.videoLengthSeconds*1E3,h);V.qC=W;V.kq++;V.L8O.push(Y.videoLengthSeconds);var w,F,Z=(w=g.T(c,WK))==null?void 0:(F=w.playerOverlay)==null?void 0:F.instreamSurveyAdRenderer;if(Y.adVideoId==="nPpU29QrbiU"&&Z==null)throw new TypeError("Survey slate media has no survey overlay");return function(v){BK(Y.playerVars,v);var e,m,t=Y.videoLengthSeconds,f=Y.playerVars,U=Y.UM,C=Y.E8,K=Y.instreamAdPlayerOverlayRenderer,nj=Y.playerOverlayLayoutRenderer, +yl=Y.adVideoId,Xl=(e=g.T(c,WK))==null?void 0:e.adLayoutLoggingData;e=(m=g.T(c,WK))==null?void 0:m.sodarExtensionData;m=cQ(G.G.get(),"LAYOUT_TYPE_MEDIA",X);var u={layoutId:m,layoutType:"LAYOUT_TYPE_MEDIA",sy:"adapter"};v={layoutId:m,layoutType:"LAYOUT_TYPE_MEDIA",UM:U,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],LM:[],sy:"adapter",clientMetadata:new YS([new Ad(d),new bx(t),new td(f),new M0(H),new gj(W),new fC(a),new ef({current:null}), +K&&new YL(K),nj&&new jf(nj),new GW(L),new hd(yl),new nC(v),e&&new lx(e),Z&&new ix(Z),new pC({}),new q0(C)].filter(dZS)),eS:n(u),adLayoutLoggingData:Xl};t=VE1(g.T(c,WK),L,d,v.layoutId,G);return{sV:v,Ez7:t}}}; +qz=function(X,c){if(!X)throw new TypeError("Expected instream video ad renderer");if(!X.playerVars)throw new TypeError("Expected player vars in url encoded string");var V=y8(X.playerVars),G=Number(V.length_seconds);if(isNaN(G))throw new TypeError("Expected valid length seconds in player vars");var n=Number(X.trimmedMaxNonSkippableAdDurationMs);G=isNaN(n)?G:Math.min(G,n/1E3);n=X.playerOverlay||{};n=n.instreamAdPlayerOverlayRenderer===void 0?null:n.instreamAdPlayerOverlayRenderer;var L=X.playerOverlay|| +{};L=L.playerOverlayLayoutRenderer===void 0?null:L.playerOverlayLayoutRenderer;var d=V.video_id;d||(d=(d=X.externalVideoId)?d:void 0);if(!d)throw new TypeError("Expected valid video id in IVAR");if(c&&G===0){var h;c=(h=HyD[d])!=null?h:G}else c=G;return{playerVars:V,videoLengthSeconds:c,instreamAdPlayerOverlayRenderer:n,playerOverlayLayoutRenderer:L,adVideoId:d,UM:X.pings?tC(X.pings):new Map,E8:ba(X.pings)}}; +LBD=function(X){X=Number(X.driftRecoveryMs);return isNaN(X)||X<=0?null:X}; +nws=function(X){var c=X.adTimeOffset||{};X=c.offsetEndMilliseconds;c=Number(c.offsetStartMilliseconds);if(isNaN(c))throw new TypeError("Expected valid start offset");X=Number(X);if(isNaN(X))throw new TypeError("Expected valid end offset");return{nX:c,gT:X}}; +a5s=function(X){var c,V=(c=jR(X.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:c.current;if(!V)return null;c=jR(X.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var G=X.layoutId,n=jR(X.clientMetadata,"metadata_type_content_cpn"),L=jR(X.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),d=jR(X.clientMetadata,"metadata_type_player_underlay_renderer"),h=jR(X.clientMetadata,"metadata_type_ad_placement_config"),A=jR(X.clientMetadata,"metadata_type_video_length_seconds"); +var Y=dG(X.clientMetadata,"metadata_type_layout_enter_ms")&&dG(X.clientMetadata,"metadata_type_layout_exit_ms")?(jR(X.clientMetadata,"metadata_type_layout_exit_ms")-jR(X.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{D8:G,contentCpn:n,Ui:V,C2:c,instreamAdPlayerOverlayRenderer:L,instreamAdPlayerUnderlayRenderer:d,adPlacementConfig:h,videoLengthSeconds:A,Gk:Y,inPlayerLayoutId:jR(X.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:jR(X.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; +wc8=function(X,c,V,G,n,L,d,h,A,Y,H,a,W,w,F){G=ZQ(G,"SLOT_TYPE_PLAYER_BYTES");X=$Z2(n,X,d,V,G,A,Y);if(X instanceof D)return X;var Z;Y=(Z=jR(X.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:Z.layoutId;if(!Y)return new D("Invalid adNotify layout");c=WBl(Y,n,L,V,h,c,A,H,a,W,w,F,d);return c instanceof D?c:[X].concat(g.x(c))}; +WBl=function(X,c,V,G,n,L,d,h,A,Y,H,a,W){V=FBD(c,V,G,L,d,h,A,Y,H,a,W);if(V instanceof D)return V;X=Ewt(c,X,d,n,V);return X instanceof D?X:[].concat(g.x(X.SX),[X.Ez])}; +QW2=function(X,c,V,G,n,L,d,h,A,Y,H,a,W,w){c=FBD(X,c,V,n,L,h,A,Y,H,a,W,w);if(c instanceof D)return c;X=r6D(X,V,L,d,G,h.ZQ,c);return X instanceof D?X:X.SX.concat(X.Ez)}; +FBD=function(X,c,V,G,n,L,d,h,A,Y,H,a){var W=Xq(G,V,Y);return W instanceof Ar?new D(W):Y.W.j().experiments.lc("html5_refactor_in_player_slot_generation")?function(w){var F=new Jf(0,[W.GI]);w=ZyU(c,W.layoutId,W.ib,V,cq(W.playerVars,W.cX,L,A,F),W.GI,n,F,d(w),h.get(W.ib.externalVideoId),a);F=[];if(W.ib.playerOverlay.instreamAdPlayerOverlayRenderer){var Z=a5s(w);if(!Z)return FX("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,w),{layout:w,SX:[]}; +F=[xZl(X,Z.contentCpn,Z.D8,function(e){return V6(c,e.slotId,"core",Z,F1(H,e))},Z.inPlayerSlotId)].concat(g.x(F)); +if(Z.instreamAdPlayerUnderlayRenderer&&GP(Y)){var v=Z.instreamAdPlayerUnderlayRenderer;F=[vw2(X,Z.contentCpn,Z.D8,function(e){return kEs(c,e.slotId,v,Z.adPlacementConfig,Z.D8,F1(H,e))})].concat(g.x(F))}}return{layout:w, +SX:F}}:function(w){var F=new Jf(0,[W.GI]); +return{layout:ZyU(c,W.layoutId,W.ib,V,cq(W.playerVars,W.cX,L,A,F),W.GI,n,F,d(w),h.get(W.ib.externalVideoId),a),SX:[]}}}; +Xq=function(X,c,V){if(!X.playerVars)return new Ar("No playerVars available in InstreamVideoAdRenderer.");var G,n;if(X.elementId==null||X.playerVars==null||X.playerOverlay==null||((G=X.playerOverlay)==null?void 0:G.instreamAdPlayerOverlayRenderer)==null&&((n=X.playerOverlay)==null?void 0:n.playerOverlayLayoutRenderer)==null||X.pings==null||X.externalVideoId==null)return new Ar("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:X});G=y8(X.playerVars);n=Number(G.length_seconds); +isNaN(n)&&(n=0,FX("Expected valid length seconds in player vars but got NaN"));if(V.HW(c.kind==="AD_PLACEMENT_KIND_START")){if(X.layoutId===void 0)return new Ar("Expected server generated layout ID in instreamVideoAdRenderer");c=X.layoutId}else c=X.elementId;return{layoutId:c,ib:X,playerVars:G,cX:X.playerVars,GI:n}}; +cq=function(X,c,V,G,n){X.iv_load_policy=G;c=y8(c);if(c.cta_conversion_urls)try{X.cta_conversion_urls=JSON.parse(c.cta_conversion_urls)}catch(L){FX(L)}V.hf&&(X.ctrl=V.hf);V.fY&&(X.ytr=V.fY);V.Cu&&(X.ytrcc=V.Cu);V.isMdxPlayback&&(X.mdx="1");X.vvt&&(X.vss_credentials_token=X.vvt,V.P5&&(X.vss_credentials_token_type=V.P5),V.mdxEnvironment&&(X.mdx_environment=V.mdxEnvironment));BK(X,n);return X}; +owl=function(X){var c=new Map;X=g.r(X);for(var V=X.next();!V.done;V=X.next())(V=V.value.renderer.remoteSlotsRenderer)&&V.hostElementId&&c.set(V.hostElementId,V);return c}; +nm=function(X){return X.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; +eNj=function(X){return X!=null}; +l5D=function(X,c,V,G,n,L,d,h,A,Y,H,a,W,w){for(var F=[],Z=g.r(X),v=Z.next();!v.done;v=Z.next())if(v=v.value,!rX8(v)&&!kFD(v)){var e=nm(v)&&!!v.slotEntryTrigger.beforeContentVideoIdStartedTrigger,m=A.HW(e),t=J6s(v,Y,G,V.BS,m);if(t instanceof D)return t;var f=void 0,U={slotId:v.adSlotMetadata.slotId,slotType:v.adSlotMetadata.slotType,slotPhysicalPosition:(f=v.adSlotMetadata.slotPhysicalPosition)!=null?f:1,sy:"core",slotEntryTrigger:t.slotEntryTrigger,slotFulfillmentTriggers:t.slotFulfillmentTriggers, +slotExpirationTriggers:t.slotExpirationTriggers},C=g.T(v.fulfillmentContent.fulfilledLayout,QE);if(C){if(!r8(C))return new D("Invalid PlayerBytesAdLayoutRenderer");f=a&&!(nm(v)&&v.slotEntryTrigger.beforeContentVideoIdStartedTrigger);t=t.slotFulfillmentTriggers.some(function(K){return K instanceof fR}); +m=f?mZt(U,v.adSlotMetadata.triggerEvent,C,V,G,L,Y,X,m,W,t,w):RNt(U,v.adSlotMetadata.triggerEvent,C,c,V,G,n,L,d,h,A,Y,X,H,m,v.adSlotMetadata.triggeringSourceLayoutId);if(m instanceof D)return m;t=[];nm(v)&&t.push(new no({pP:nm(v)&&!!v.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));f&&t.push(new pC({}));V.ZQ&&t.push(new Sf({}));t.push(new Vg(e));v=Object.assign({},U,{clientMetadata:new YS(t),fulfilledLayout:m.layout,adSlotLoggingData:v.adSlotMetadata.adSlotLoggingData});F.push.apply(F,g.x(m.SX)); +F.push(v)}else if(e=g.T(v.fulfillmentContent.fulfilledLayout,OR)){if(!Ey1(e))return new D("Invalid PlayerUnderlayAdLayoutRenderer");e=byw(e,G,V.BS,L,U,v.adSlotMetadata.triggerEvent,v.adSlotMetadata.triggeringSourceLayoutId);if(e instanceof D)return e;v=Object.assign({},U,{clientMetadata:new YS([]),fulfilledLayout:e,adSlotLoggingData:v.adSlotMetadata.adSlotLoggingData});F.push(v)}else if(e=g.T(v.fulfillmentContent.fulfilledLayout,Z2D)){if(!Yn2(e))return new D("Invalid AboveFeedAdLayoutRenderer");e= +tEO(e,G,V.BS,L,U,v.adSlotMetadata.triggerEvent,v.adSlotMetadata.triggeringSourceLayoutId);if(e instanceof D)return e;v=Object.assign({},U,{clientMetadata:new YS([]),fulfilledLayout:e,adSlotLoggingData:v.adSlotMetadata.adSlotLoggingData});F.push(v)}else if(e=g.T(v.fulfillmentContent.fulfilledLayout,xCO)){if(!GA(e.adLayoutMetadata)||!g.T(e.renderingContent,nA))return new D("Invalid BelowPlayerAdLayoutRenderer");e=tEO(e,G,V.BS,L,U,v.adSlotMetadata.triggerEvent,v.adSlotMetadata.triggeringSourceLayoutId); +if(e instanceof D)return e;v=Object.assign({},U,{clientMetadata:new YS([]),fulfilledLayout:e,adSlotLoggingData:v.adSlotMetadata.adSlotLoggingData});F.push(v)}else if(e=g.T(v.fulfillmentContent.fulfilledLayout,lS)){if(!xl(e))return new D("Invalid PlayerBytesSequenceItemAdLayoutRenderer");e=Oyw(e,G,V.BS,L,U,v.adSlotMetadata.triggerEvent);if(e instanceof D)return e;v=Object.assign({},U,{clientMetadata:new YS([]),fulfilledLayout:e,adSlotLoggingData:v.adSlotMetadata.adSlotLoggingData});F.push(v)}else return new D("Unable to retrieve a client slot ["+ +U.slotType+"] from a given AdSlotRenderer")}return F}; +Oyw=function(X,c,V,G,n,L){var d={layoutId:X.adLayoutMetadata.layoutId,layoutType:X.adLayoutMetadata.layoutType,sy:"core"};c=Lm(X,c,V);return c instanceof D?c:(V=g.T(X.renderingContent,ZC))&&V.pings?Object.assign({},d,{renderingContent:X.renderingContent,UM:tC(V.pings)},c,{eS:F1(G,n)(d),clientMetadata:new YS([new GW(dg(L))]),adLayoutLoggingData:X.adLayoutMetadata.adLayoutLoggingData}):new D("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")}; +tEO=function(X,c,V,G,n,L,d){var h={layoutId:X.adLayoutMetadata.layoutId,layoutType:X.adLayoutMetadata.layoutType,sy:"core"};c=Lm(X,c,V);if(c instanceof D)return c;V=[];V.push(new GW(dg(L)));L==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&d!==void 0&&V.push(new ZI(d));return Object.assign({},h,{renderingContent:X.renderingContent,UM:new Map([["impression",MED(X)]])},c,{eS:F1(G,n)(h),clientMetadata:new YS(V),adLayoutLoggingData:X.adLayoutMetadata.adLayoutLoggingData})}; +byw=function(X,c,V,G,n,L,d){if(X.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(d=g.T(X.renderingContent,bS))if(d=g.T(d.sidePanel,wl2)){var h={layoutId:X.adLayoutMetadata.layoutId,layoutType:X.adLayoutMetadata.layoutType,sy:"core"};c=Lm(X,c,V);X=c instanceof D?c:Object.assign({},h,{renderingContent:X.renderingContent,UM:new Map([["impression",d.impressionPings||[]],["resume",d.resumePings||[]]])},c,{eS:F1(G,n)(h),clientMetadata:new YS([new GW(dg(L))]),adLayoutLoggingData:X.adLayoutMetadata.adLayoutLoggingData})}else X= +new D("DismissablePanelTextPortraitImageRenderer is missing");else X=new D("SqueezebackPlayerSidePanelRenderer is missing");else X.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.T(X.renderingContent,aBU)?(d={layoutId:X.adLayoutMetadata.layoutId,layoutType:X.adLayoutMetadata.layoutType,sy:"core"},c=Lm(X,c,V),X=c instanceof D?c:Object.assign({},d,{renderingContent:X.renderingContent,UM:new Map},c,{eS:F1(G,n)(d),clientMetadata:new YS([new GW(dg(L))]),adLayoutLoggingData:X.adLayoutMetadata.adLayoutLoggingData})): +X=new D("CounterfactualRenderer is missing"):X.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?X=new D("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):X.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?X=new D("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):X.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.T(X.renderingContent,tl)?(L={layoutId:X.adLayoutMetadata.layoutId,layoutType:X.adLayoutMetadata.layoutType, +sy:"core"},c=Lm(X,c,V),X=c instanceof D?c:d?Object.assign({},L,{renderingContent:X.renderingContent,UM:new Map},c,{eS:F1(G,n)(L),clientMetadata:new YS([new ZI(d)]),adLayoutLoggingData:X.adLayoutMetadata.adLayoutLoggingData}):new D("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):X=new D("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):X.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.T(X.renderingContent,$Cs)? +(L={layoutId:X.adLayoutMetadata.layoutId,layoutType:X.adLayoutMetadata.layoutType,sy:"core"},c=Lm(X,c,V),X=c instanceof D?c:Object.assign({},L,{renderingContent:X.renderingContent,UM:new Map([])},c,{eS:F1(G,n)(L),adLayoutLoggingData:X.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new YS([])})):X=new D("AdsEngagementPanelSectionListViewModel is missing"):X=new D("LayoutType ["+X.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return X}; +mZt=function(X,c,V,G,n,L,d,h,A,Y,H,a){if((a==null?void 0:a.oz)===void 0||(a==null?void 0:a.CO)===void 0)return new D("Cached ad break range from cue point is missing");var W=Lm(V,n,G.BS);if(W instanceof D)return W;W={layoutExitMuteTriggers:[],layoutExitNormalTriggers:W.layoutExitNormalTriggers,layoutExitSkipTriggers:[],LM:[],layoutExitUserInputSubmittedTriggers:[]};if(g.T(V.renderingContent,WK))return X=gwD(X,c,V,W,n,L,h,A,G.BS,d,a.oz,a.CO),X instanceof D?X:X.fE===void 0?new D("Expecting associatedInPlayerSlot for single DAI media layout"): +{layout:X.layout,SX:[X.fE]};var w=g.T(V.renderingContent,a2);if(w){if(!GA(V.adLayoutMetadata))return new D("Invalid ad layout metadata");if(!$l(w))return new D("Invalid sequential layout");w=w.sequentialLayouts.map(function(F){return F.playerBytesAdLayoutRenderer}); +X=f5O(X,c,V,W,w,n,G,L,d,A,h,Y,a.oz,a.CO,H);return X instanceof D?X:{layout:X.f9,SX:X.SX}}return new D("Not able to convert a sequential layout")}; +f5O=function(X,c,V,G,n,L,d,h,A,Y,H,a,W,w,F){var Z=pcs(n,W,w);if(Z instanceof D)return Z;var v=[],e=[];Z=g.r(Z);for(var m=Z.next();!m.done;m=Z.next()){var t=m.value;m=X;var f=n[t.kq],U=t,C=c;t=L;var K=d,nj=h,yl=A,Xl=Y,u=H,q=y6(f);if(q instanceof D)m=q;else{var Q={layoutId:f.adLayoutMetadata.layoutId,layoutType:f.adLayoutMetadata.layoutType,sy:"adapter"};U=I51(C,f,U,t);U instanceof D?m=U:(m=Object.assign({},Q,ho,{UM:q,renderingContent:f.renderingContent,clientMetadata:new YS(U),eS:F1(nj,m)(Q),adLayoutLoggingData:f.adLayoutMetadata.adLayoutLoggingData}), +m=(f=Ao(u,m,t,K.BS,nj,yl,Xl,void 0,!0))?f instanceof D?f:{layout:m,fE:f}:new D("Expecting associatedInPlayerSlot"))}if(m instanceof D)return m;v.push(m.layout);e.push(m.fE)}n={layoutId:V.adLayoutMetadata.layoutId,layoutType:V.adLayoutMetadata.layoutType,sy:"core"};c=[new U$(Number(V.driftRecoveryMs)),new M0(W),new gj(w),new GW(dg(c)),new cv(a),new pC({})];F&&c.push(new Lo({}));return{f9:Object.assign({},n,G,{tV:v,UM:new Map,clientMetadata:new YS(c),eS:F1(h,X)(n)}),SX:e}}; +gwD=function(X,c,V,G,n,L,d,h,A,Y,H,a){if(!r8(V))return new D("Invalid PlayerBytesAdLayoutRenderer");var W=y6(V);if(W instanceof D)return W;var w={layoutId:V.adLayoutMetadata.layoutId,layoutType:V.adLayoutMetadata.layoutType,sy:"core"},F=g.T(V.renderingContent,WK);if(!F)return new D("Invalid rendering content for DAI media layout");F=qz(F,!1);H={V$:F,kq:0,qC:H,XC:Math.min(H+F.videoLengthSeconds*1E3,a),OW:new Jf(0,[F.videoLengthSeconds])};var Z;a=(Z=Number(V.driftRecoveryMs))!=null?Z:void 0;c=I51(c, +V,H,n,a);if(c instanceof D)return c;X=Object.assign({},w,G,{UM:W,renderingContent:V.renderingContent,clientMetadata:new YS(c),eS:F1(L,X)(w),adLayoutLoggingData:V.adLayoutMetadata.adLayoutLoggingData});return(n=Ao(d,X,n,A,L,Y,h,void 0,!0))?n instanceof D?n:{layout:X,fE:n}:new D("Expecting associatedInPlayerSlot")}; +RNt=function(X,c,V,G,n,L,d,h,A,Y,H,a,W,w,F,Z){var v=Lm(V,L,n.BS);if(v instanceof D)return v;if(g.T(V.renderingContent,WK)){A=NH8([V],n,A);if(A instanceof D)return A;if(A.length!==1)return new D("Only expected one media layout.");X=UZ8(X,c,V,v,A[0],void 0,"core",G,L,d,h,Y,W,w,F,n.BS,a,void 0,Z);return X instanceof D?X:{layout:X.layout,SX:X.fE?[X.fE]:[]}}var e=g.T(V.renderingContent,a2);if(e){if(!GA(V.adLayoutMetadata))return new D("Invalid ad layout metadata");if(!$l(e))return new D("Invalid sequential layout"); +e=e.sequentialLayouts.map(function(m){return m.playerBytesAdLayoutRenderer}); +X=THS(X,c,V.adLayoutMetadata,v,e,G,L,n,A,d,h,Y,H,a,F,W,w,Z);return X instanceof D?X:{layout:X.f9,SX:X.SX}}return new D("Not able to convert a sequential layout")}; +THS=function(X,c,V,G,n,L,d,h,A,Y,H,a,W,w,F,Z,v,e){var m=new yU({current:null}),t=NH8(n,h,A);if(t instanceof D)return t;A=[];for(var f=[],U=void 0,C=0;C0&&(C.push(e),C.push(new dj(U.adPodSkipTarget)));(L=Y.get(U.externalVideoId))&&C.push(new zW(L));L=C}else L=new D("Invalid vod media renderer")}if(L instanceof +D)return L;X=Object.assign({},d,G,{UM:t,renderingContent:V.renderingContent,clientMetadata:new YS(L),eS:F1(H,X)(d),adLayoutLoggingData:V.adLayoutMetadata.adLayoutLoggingData});V=g.T(V.renderingContent,WK);if(!V||!HK(V))return new D("Invalid meida renderer");a=sR(a,V.externalVideoId);a.instreamVideoAdRenderer=V;a.YI="AD_PLACEMENT_KIND_START";return w?(A=Ao(W,X,A,Z,H,v,F,e,!1),A instanceof D?A:zNt(X.layoutId,W)&&A?{layout:Object.assign({},X,{clientMetadata:new YS(L.concat(new $L(A)))})}:{layout:X,fE:A}): +{layout:X}}; +up1=function(X,c,V,G,n){if(!r8(c))return new D("Invalid PlayerBytesAdLayoutRenderer");var L=g.T(c.renderingContent,$q);if(!L||L.durationMilliseconds===void 0)return new D("Invalid endcap renderer");var d={layoutId:c.adLayoutMetadata.layoutId,layoutType:c.adLayoutMetadata.layoutType,sy:"adapter"};G=[new KC(L.durationMilliseconds),new DI({impressionCommands:void 0,abandonCommands:L.abandonCommands?[{commandExecutorCommand:L.abandonCommands}]:void 0,completeCommands:L.completionCommands}),new GW(G), +new vf("LAYOUT_TYPE_ENDCAP")];if(n){G.push(new LC(n.OW.adPodIndex-1));G.push(new fC(n.OW.adPodIndex));var h;G.push(new dj((h=n.adPodSkipTarget)!=null?h:-1))}return Object.assign({},d,ho,{renderingContent:c.renderingContent,clientMetadata:new YS(G),UM:L.skipPings?new Map([["skip",L.skipPings]]):new Map,eS:F1(V,X)(d),adLayoutLoggingData:c.adLayoutMetadata.adLayoutLoggingData})}; +Ao=function(X,c,V,G,n,L,d,h,A){X=X.filter(function(H){return H.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&H.adSlotMetadata.triggeringSourceLayoutId===c.layoutId}); +if(X.length!==0){if(X.length!==1)return new D("Invalid InPlayer slot association for the given PlayerBytes layout");X=X[0];d=J6s(X,L,V,G,d);if(d instanceof D)return d;var Y;L={slotId:X.adSlotMetadata.slotId,slotType:X.adSlotMetadata.slotType,slotPhysicalPosition:(Y=X.adSlotMetadata.slotPhysicalPosition)!=null?Y:1,sy:"core",slotEntryTrigger:d.slotEntryTrigger,slotFulfillmentTriggers:d.slotFulfillmentTriggers,slotExpirationTriggers:d.slotExpirationTriggers};Y=g.T(X.fulfillmentContent.fulfilledLayout, +QOO);if(!Y||!H2s(Y))return new D("Invalid InPlayerAdLayoutRenderer");d={layoutId:Y.adLayoutMetadata.layoutId,layoutType:Y.adLayoutMetadata.layoutType,sy:"core"};V=Lm(Y,V,G);if(V instanceof D)return V;G=[];A&&G.push(new pC({}));if(Y.adLayoutMetadata.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")G.push.apply(G,g.x(BHl(X.adSlotMetadata.triggerEvent,c)));else if(Y.adLayoutMetadata.layoutType==="LAYOUT_TYPE_ENDCAP")G.push(new GW(dg(X.adSlotMetadata.triggerEvent))),h&&G.push(h);else return new D("Not able to parse an SDF InPlayer layout"); +n=Object.assign({},d,V,{renderingContent:Y.renderingContent,UM:new Map,eS:F1(n,L)(d),clientMetadata:new YS(G),adLayoutLoggingData:Y.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},L,{fulfilledLayout:n,clientMetadata:new YS([])})}}; +BHl=function(X,c){var V=[];V.push(new GW(dg(X)));V.push(new ZI(c.layoutId));(X=jR(c.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&V.push(new ef(X));(X=jR(c.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&V.push(new yU(X));(X=jR(c.clientMetadata,"metadata_type_remote_slots_data"))&&V.push(new zW(X));(X=jR(c.clientMetadata,"metadata_type_ad_next_params"))&&V.push(new Cy(X));(X=jR(c.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&V.push(new D5(X));(X= +jR(c.clientMetadata,"metadata_type_ad_pod_info"))&&V.push(new nC(X));(c=jR(c.clientMetadata,"metadata_type_ad_video_id"))&&V.push(new hd(c));return V}; +Phl=function(X,c,V,G,n,L){function d(Y){return YI(c,Y)} +var h=G.h0.inPlayerSlotId,A={layoutId:G.h0.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",sy:"core"};V={slotId:h,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,sy:"core",slotEntryTrigger:new OG(d,X),slotFulfillmentTriggers:[new sG(d,h)],slotExpirationTriggers:[new CR(d,h),new z3(d,V)]};X=Object.assign({},A,{layoutExitNormalTriggers:[new Ms(d,X)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],LM:[],UM:new Map,clientMetadata:new YS([new wj(G.h0), +new GW(G.adPlacementConfig),n]),eS:F1(L,V)(A),adLayoutLoggingData:G.h0.adLayoutLoggingData});return Object.assign({},V,{clientMetadata:new YS([new TW(X)])})}; +zNt=function(X,c){c=g.r(c);for(var V=c.next();!V.done;V=c.next())if(V=V.value,V.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var G=g.T(V.fulfillmentContent.fulfilledLayout,OR);if(G&&(G=g.T(G.renderingContent,bS))&&G.associatedPlayerBytesLayoutId===X)return V}}; +J6s=function(X,c,V,G,n){var L=KB2(zA(X.slotEntryTrigger,V,G),n,X,c);if(L instanceof D)return L;for(var d=[],h=g.r(X.slotFulfillmentTriggers),A=h.next();!A.done;A=h.next()){A=zA(A.value,V,G);if(A instanceof D)return A;d.push(A)}d=sWt(d,n,X,c);c=[];X=g.r(X.slotExpirationTriggers);for(n=X.next();!n.done;n=X.next()){n=zA(n.value,V,G);if(n instanceof D)return n;c.push(n)}return{slotEntryTrigger:L,slotFulfillmentTriggers:d,slotExpirationTriggers:c}}; +KB2=function(X,c,V,G){return c&&V.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&X instanceof mV?new eN(function(n){return YI(G,n)},V.adSlotMetadata.slotId):X}; +sWt=function(X,c,V,G){return c&&V.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?X.map(function(n){return n instanceof sG?new ik(function(L){return YI(G,L)},V.adSlotMetadata.slotId):n}):X}; +Lm=function(X,c,V){for(var G=[],n=g.r(X.layoutExitNormalTriggers||[]),L=n.next();!L.done;L=n.next()){L=zA(L.value,c,V);if(L instanceof D)return L;G.push(L)}n=[];L=g.r(X.layoutExitSkipTriggers||[]);for(var d=L.next();!d.done;d=L.next()){d=zA(d.value,c,V);if(d instanceof D)return d;n.push(d)}L=[];d=g.r(X.layoutExitMuteTriggers||[]);for(var h=d.next();!h.done;h=d.next()){h=zA(h.value,c,V);if(h instanceof D)return h;L.push(h)}d=[];X=g.r(X.layoutExitUserInputSubmittedTriggers||[]);for(h=X.next();!h.done;h= +X.next()){h=zA(h.value,c,V);if(h instanceof D)return h;d.push(h)}return{layoutExitNormalTriggers:G,layoutExitSkipTriggers:n,layoutExitMuteTriggers:L,layoutExitUserInputSubmittedTriggers:d,LM:[]}}; +y6=function(X){var c=g.T(X.renderingContent,WK);if(c==null?0:c.pings)return tC(c.pings);X=g.T(X.renderingContent,$q);return(X==null?0:X.skipPings)?new Map([["skip",X.skipPings]]):new Map}; +I51=function(X,c,V,G,n){c=g.T(c.renderingContent,WK);if(!c)return new D("Invalid rendering content for DAI media layout");X=[new Ad(G),new bx(V.V$.videoLengthSeconds),new td(V.V$.playerVars),new M0(V.qC),new gj(V.XC),new fC(V.kq),new GW(dg(X)),new hd(V.V$.adVideoId),new nC(V.OW),c.sodarExtensionData&&new lx(c.sodarExtensionData),new ef({current:null}),new pC({}),new q0(ba(c.pings))].filter(eNj);n!==void 0&&X.push(new U$(n));return X}; +pcs=function(X,c,V){X=X.map(function(A){return qz(g.T(A.renderingContent,WK),!1)}); +var G=X.map(function(A){return A.videoLengthSeconds}),n=G.map(function(A,Y){return new Jf(Y,G)}),L=c,d=V,h=[]; +X.forEach(function(A,Y){d=Math.min(L+A.videoLengthSeconds*1E3,V);BK(A.playerVars,n[Y]);h.push({V$:A,qC:L,XC:d,kq:Y,OW:n[Y]});L=d}); +return h}; +NH8=function(X,c,V){for(var G=[],n=g.r(X),L=n.next();!L.done;L=n.next())if(L=g.T(L.value.renderingContent,WK)){if(!HK(L))return new D("Invalid vod media renderer");G.push(ChS(L))}n=G.map(function(a){return a.GI}); +L=[];for(var d=0,h=0;h0?Xl:-1;else if(Q=g.T(q,$q)){q=d0t(X,c,V,Q,L,Z,h,K,Xl);if(q instanceof D){w= +q;break a}q=q(W);v.push(q.Zb);e=[].concat(g.x(q.Q6),g.x(e));m=[].concat(g.x(q.aT),g.x(m));q.fE&&(yl=[q.fE].concat(g.x(yl)))}else if(Q=g.T(q,FH)){if(w===void 0){w=new D("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:Q});break a}q=AdD(X,c,V,L,Q,C,h,w,Z,Xu(H,"supports_multi_step_on_desktop"));if(q instanceof D){w=q;break a}q=q(W);v.push(q.Zb);q.fE&&yl.push(q.fE);e=[].concat(g.x(q.Q6),g.x(e));m=[].concat(g.x(q.aT),g.x(m));t=[].concat(g.x(q.I5),g.x(t)); +f=[].concat(g.x(q.FT),g.x(f));U=[C].concat(g.x(U))}else if(q=g.T(q,ER)){q=Y$8(X,c,V,L,q,C,h,Z);if(q instanceof D){w=q;break a}q=q(W);v.push(q.Zb);q.fE&&yl.push(q.fE);m=[].concat(g.x(q.aT),g.x(m))}else{w=new D("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}w={tV:v,layoutExitSkipTriggers:e,layoutExitUserInputSubmittedTriggers:t,LM:f,layoutExitMuteTriggers:m,Uh:U,SX:yl}}}else a:if(Z=ELl(G,V,H),Z instanceof D)w=Z;else{v=0;e=[];m=[];t=[];f=[];U=[];C=[];K=new Jd({current:null});nj=new yU({current:null}); +yl=!1;u=[];Xl=-1;F=g.r(G);for(q=F.next();!q.done;q=F.next())if(q=q.value,g.T(q,w8)){q=ydt(c,V,g.T(q,w8),h);if(q instanceof D){w=q;break a}q=q(W);e.push(q.Zb);m=[].concat(g.x(q.Q6),g.x(m));t=[].concat(g.x(q.aT),g.x(t));q.fE&&(u=[q.fE].concat(g.x(u)))}else if(g.T(q,WK)){Xl=Xq(g.T(q,WK),V,H);if(Xl instanceof Ar){w=new D(Xl);break a}q=new Jf(v,Z);q=rds(c,Xl.layoutId,Xl.ib,V,cq(Xl.playerVars,Xl.cX,d,Y,q),Xl.GI,L,q,h(W),nj,A.get(Xl.ib.externalVideoId),void 0,a);v++;e.push(q.Zb);m=[].concat(g.x(q.Q6),g.x(m)); +t=[].concat(g.x(q.aT),g.x(t));yl||(C.push(nj),yl=!0);Xl=(Xl=Xl.ib.adPodSkipTarget)&&Xl>0?Xl:-1}else if(g.T(q,$q)){q=d0t(X,c,V,g.T(q,$q),L,v,h,nj,Xl);if(q instanceof D){w=q;break a}q=q(W);e.push(q.Zb);m=[].concat(g.x(q.Q6),g.x(m));t=[].concat(g.x(q.aT),g.x(t));q.fE&&(u=[q.fE].concat(g.x(u)))}else if(g.T(q,FH)){if(w===void 0){w=new D("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.T(q,FH)});break a}q=AdD(X,c,V,L,g.T(q,FH),K,h,w,v,Xu(H,"supports_multi_step_on_desktop")); +if(q instanceof D){w=q;break a}q=q(W);e.push(q.Zb);q.fE&&u.push(q.fE);m=[].concat(g.x(q.Q6),g.x(m));t=[].concat(g.x(q.aT),g.x(t));f=[].concat(g.x(q.I5),g.x(f));U=[].concat(g.x(q.FT),g.x(U));C=[K].concat(g.x(C))}else if(g.T(q,ER)){q=Y$8(X,c,V,L,g.T(q,ER),K,h,v);if(q instanceof D){w=q;break a}q=q(W);e.push(q.Zb);q.fE&&u.push(q.fE);t=[].concat(g.x(q.aT),g.x(t))}else{w=new D("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}w={tV:e,layoutExitSkipTriggers:m,layoutExitUserInputSubmittedTriggers:f, +LM:U,layoutExitMuteTriggers:t,Uh:C,SX:u}}w instanceof D?W=w:(U=W.slotId,Z=w.tV,v=w.layoutExitSkipTriggers,e=w.layoutExitMuteTriggers,m=w.layoutExitUserInputSubmittedTriggers,t=w.Uh,W=h(W),f=n?n.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",U=n?n.layoutId:cQ(c.G.get(),f,U),C={layoutId:U,layoutType:f,sy:"core"},W={layout:{layoutId:U,layoutType:f,UM:new Map,layoutExitNormalTriggers:[new Pd(c.J,U)],layoutExitSkipTriggers:v,layoutExitMuteTriggers:e,layoutExitUserInputSubmittedTriggers:m,LM:[],sy:"core", +clientMetadata:new YS([new mt(Z)].concat(g.x(t))),eS:W(C)},SX:w.SX});return W}}; +ELl=function(X,c,V){var G=[];X=g.r(X);for(var n=X.next();!n.done;n=X.next())if(n=n.value,g.T(n,WK)){n=Xq(g.T(n,WK),c,V);if(n instanceof Ar)return new D(n);G.push(n.GI)}return G}; +ZCD=function(X,c,V,G,n,L,d,h){if(!eLl(V,h===void 0?!1:h))return new D("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:V});var A=DC(V);if(A<=0)return new D("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:V});var Y=new Jd({current:null}),H=DCl(X,c,V,Y,G,L,d);return Q9t(X,G,L,A,n,function(a,W){var w=a.slotId,F=ST(V);a=d(a);var Z,v=(Z=$I(c,G,V.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?Z: +cQ(c.G.get(),"LAYOUT_TYPE_MEDIA_BREAK",w);w={layoutId:v,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",sy:"core"};Z=H(v,W);var e=jR(Z.clientMetadata,"metadata_type_fulfilled_layout");e||FX("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");F=[new GW(G),new KC(A),new DI(F),Y];e&&F.push(new vf(e.layoutType));return{dEO:{layoutId:v,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",UM:new Map,layoutExitNormalTriggers:[new Pd(c.J,v)],layoutExitSkipTriggers:[new KR(c.J, +W.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new XH(c.J,W.layoutId)],LM:[],sy:"core",clientMetadata:new YS(F),eS:a(w)},Cch:Z}})}; +x08=function(X){if(!RLj(X))return!1;var c=g.T(X.adVideoStart,rg);return c?g.T(X.linearAd,WK)&&Yl(c)?!0:(FX("Invalid Sandwich with notify"),!1):!1}; +vLU=function(X){if(X.linearAds==null)return!1;X=g.T(X.adStart,rg);return X?Yl(X)?!0:(FX("Invalid LASR with notify"),!1):!1}; +kWS=function(X){if(!mCL(X))return!1;X=g.T(X.adStart,rg);return X?Yl(X)?!0:(FX("Invalid LASR with notify"),!1):!1}; +Q6=function(X,c,V,G,n,L,d,h,A,Y){this.X=X;this.G=c;this.J=V;this.Xh=G;this.X4=n;this.U=L;this.mS=d;this.Pc=h;this.nJ=A;this.loadPolicy=Y===void 0?1:Y}; +MIO=function(X,c,V,G,n,L,d,h,A,Y){var H=[];if(c.length===0&&G.length===0&&V.length===0)return H;c=c.filter(jT);var a=V.filter(vy2),W=G.filter(jT),w=new Map,F=owl(c),Z=V.some(function(P){var Tt;return(P==null?void 0:(Tt=P.adSlotMetadata)==null?void 0:Tt.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),v=V.some(function(P){var Tt; +return(P==null?void 0:(Tt=P.adSlotMetadata)==null?void 0:Tt.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),e=V.some(function(P){var Tt; +return(P==null?void 0:(Tt=P.adSlotMetadata)==null?void 0:Tt.slotType)==="SLOT_TYPE_IN_PLAYER"}),m=V.some(function(P){var Tt,xU; +return(P==null?void 0:(Tt=P.adSlotMetadata)==null?void 0:Tt.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(P==null?void 0:(xU=P.adSlotMetadata)==null?void 0:xU.slotType)==="SLOT_TYPE_ABOVE_FEED"}); +V=V.some(function(P){var Tt;return(P==null?void 0:(Tt=P.adSlotMetadata)==null?void 0:Tt.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); +if(Z||v||e||m||V)Y=l5D(a,c,h,n,F,X.X4.get(),X.loadPolicy,w,X.Xh.get(),X.X.get(),e,d,A,Y),Y instanceof D?FX(Y,void 0,void 0,{contentCpn:n}):H.push.apply(H,g.x(Y));Y=g.r(c);for(V=Y.next();!V.done;V=Y.next())V=V.value,v=oL8(X,w,V,n,L,d,Z,h,F,A,a),v instanceof D?FX(v,void 0,void 0,{renderer:V.renderer,config:V.config.adPlacementConfig,kind:V.config.adPlacementConfig.kind,contentCpn:n,daiEnabled:d}):H.push.apply(H,g.x(v));eyl(X.Xh.get())||(L=Jdt(X,W,n,h,F,w),H.push.apply(H,g.x(L)));if(X.U===null||d&&!h.vt){var t, +f,U;X=h.ZQ&&c.length===1&&((t=c[0].config)==null?void 0:(f=t.adPlacementConfig)==null?void 0:f.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((U=c[0].renderer)==null?void 0:U.adBreakServiceRenderer);if(!H.length&&!X){var C,K,nj,yl;FX("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":c.length,contentCpn:n,"first APR kind":(C=c[0])==null?void 0:(K=C.config)==null?void 0:(nj=K.adPlacementConfig)==null?void 0:nj.kind,renderer:(yl=c[0])==null?void 0: +yl.renderer})}return H}t=G.filter(jT);H.push.apply(H,g.x(KSS(w,t,X.G.get(),X.U,n,Z)));if(!H.length){var Xl,u,q,Q;FX("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":c.length,contentCpn:n,daiEnabled:d.toString(),"first APR kind":(Xl=c[0])==null?void 0:(u=Xl.config)==null?void 0:(q=u.adPlacementConfig)==null?void 0:q.kind,renderer:(Q=c[0])==null?void 0:Q.renderer})}return H}; +Jdt=function(X,c,V,G,n,L){function d(W){return F1(X.X4.get(),W)} +var h=[];c=g.r(c);for(var A=c.next();!A.done;A=c.next()){A=A.value;var Y=A.renderer,H=Y.sandwichedLinearAdRenderer,a=Y.linearAdSequenceRenderer;H&&x08(H)?(FX("Found AdNotify with SandwichedLinearAdRenderer"),a=g.T(H.adVideoStart,rg),H=g.T(H.linearAd,WK),KA(L,Y,A.config.adPlacementConfig.kind),Y=void 0,a=WBl((Y=a)==null?void 0:Y.layout.layoutId,X.G.get(),X.J.get(),A.config.adPlacementConfig,A.adSlotLoggingData,H,V,G,d,n,X.loadPolicy,X.Xh.get(),X.X4.get()),a instanceof D?FX(a):h.push.apply(h,g.x(a))): +a&&(!a.adLayoutMetadata&&vLU(a)||a.adLayoutMetadata&&kWS(a))&&(FX("Found AdNotify with LinearAdSequenceRenderer"),KA(L,Y,A.config.adPlacementConfig.kind),Y=void 0,H=j98((Y=g.T(a.adStart,rg))==null?void 0:Y.layout.layoutId,X.G.get(),X.J.get(),A.config.adPlacementConfig,A.adSlotLoggingData,a.linearAds,GA(a.adLayoutMetadata)?a.adLayoutMetadata:void 0,V,G,d,n,X.loadPolicy,X.Xh.get()),H instanceof D?FX(H):h.push.apply(h,g.x(H)))}return h}; +oL8=function(X,c,V,G,n,L,d,h,A,Y,H){function a(e){return F1(X.X4.get(),e)} +var W=V.renderer,w=V.config.adPlacementConfig,F=w.kind,Z=V.adSlotLoggingData,v=h.vt&&F==="AD_PLACEMENT_KIND_START";v=L&&!v;if(W.adsEngagementPanelRenderer!=null)return CA(c,V.elementId,F,W.adsEngagementPanelRenderer.isContentVideoEngagementPanel,W.adsEngagementPanelRenderer.adVideoId,W.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,w,Z,function(e,m,t,f){var U=X.J.get(),C=e.slotId,K=W.adsEngagementPanelRenderer;e=F1(X.X4.get(),e);return Zy(U,C,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", +new Bc(K),m,t,K.impressionPings,e,W.adsEngagementPanelRenderer.adLayoutLoggingData,f)}),[]; +if(W.adsEngagementPanelLayoutViewModel)return CA(c,V.elementId,F,W.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,W.adsEngagementPanelLayoutViewModel.adVideoId,W.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,w,Z,function(e,m,t,f){var U=X.J.get(),C=e.slotId,K=W.adsEngagementPanelLayoutViewModel;e=F1(X.X4.get(),e);return xI(U,C,"LAYOUT_TYPE_PANEL",new Ky(K),m,t,e,W.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,f)}),[]; +if(W.actionCompanionAdRenderer!=null){if(W.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return TJt(X.G.get(),X.U,X.J.get(),W.actionCompanionAdRenderer,w,Z,G,a);CA(c,V.elementId,F,W.actionCompanionAdRenderer.isContentVideoCompanion,W.actionCompanionAdRenderer.adVideoId,W.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,w,Z,function(e,m,t,f){var U=X.J.get(),C=e.slotId,K=W.actionCompanionAdRenderer;e=F1(X.X4.get(),e);return Zy(U,C,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", +new Pc(K),m,t,K.impressionPings,e,W.actionCompanionAdRenderer.adLayoutLoggingData,f)})}else if(W.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(W.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return u4t(X.G.get(),X.U,X.J.get(),W.topBannerImageTextIconButtonedLayoutViewModel,w,Z,G,a); +CA(c,V.elementId,F,W.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,W.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,W.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,w,Z,function(e,m,t,f){var U=X.J.get(),C=e.slotId,K=W.topBannerImageTextIconButtonedLayoutViewModel;e=F1(X.X4.get(),e);return xI(U,C,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new zE(K),m,t,e,W.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,f)})}else if(W.imageCompanionAdRenderer)CA(c, +V.elementId,F,W.imageCompanionAdRenderer.isContentVideoCompanion,W.imageCompanionAdRenderer.adVideoId,W.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,w,Z,function(e,m,t,f){var U=X.J.get(),C=e.slotId,K=W.imageCompanionAdRenderer; +e=F1(X.X4.get(),e);return Zy(U,C,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new ih(K),m,t,K.impressionPings,e,W.imageCompanionAdRenderer.adLayoutLoggingData,f)}); +else if(W.bannerImageLayoutViewModel)CA(c,V.elementId,F,W.bannerImageLayoutViewModel.isContentVideoCompanion,W.bannerImageLayoutViewModel.adVideoId,W.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,w,Z,function(e,m,t,f){var U=X.J.get(),C=e.slotId,K=W.bannerImageLayoutViewModel;e=F1(X.X4.get(),e);return xI(U,C,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new qZ(K),m,t,e,W.bannerImageLayoutViewModel.adLayoutLoggingData,f)}); +else if(W.shoppingCompanionCarouselRenderer)CA(c,V.elementId,F,W.shoppingCompanionCarouselRenderer.isContentVideoCompanion,W.shoppingCompanionCarouselRenderer.adVideoId,W.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,w,Z,function(e,m,t,f){var U=X.J.get(),C=e.slotId,K=W.shoppingCompanionCarouselRenderer;e=F1(X.X4.get(),e);return Zy(U,C,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new XS(K),m,t,K.impressionPings,e,W.shoppingCompanionCarouselRenderer.adLayoutLoggingData,f)}); +else if(W.adBreakServiceRenderer){if(!NJs(V))return[];if(F==="AD_PLACEMENT_KIND_PAUSE")return IBL(X.G.get(),w,Z,V.renderer.adBreakServiceRenderer,G);if(F!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&F!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return plL(X.G.get(),w,Z,V.renderer.adBreakServiceRenderer,G,n,L);h.ZQ||FX("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:F,adPlacementConfig:w,daiEnabledForContentVideo:String(L),isServedFromLiveInfra:String(h.ZQ),clientPlaybackNonce:h.clientPlaybackNonce}); +if(F==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!X.mS)return new D("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!X.nJ)return new D("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");X.nJ.kL({adPlacementRenderer:V,contentCpn:G,BS:n});n=X.mS.get().getCurrentTimeSec(1,!1);return m02(X.G.get(),V.renderer.adBreakServiceRenderer,w,n,G,Z,L)}if(!X.Pc)return new D("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); +X.Pc.kL({adPlacementRenderer:V,contentCpn:G,BS:n})}else{if(W.clientForecastingAdRenderer)return qtt(X.G.get(),X.J.get(),w,Z,W.clientForecastingAdRenderer,G,n,a);if(W.invideoOverlayAdRenderer)return GWt(X.G.get(),X.J.get(),w,Z,W.invideoOverlayAdRenderer,G,n,a);if(W.instreamAdPlayerOverlayRenderer)return cdO(X.G.get(),X.J.get(),w,Z,W.instreamAdPlayerOverlayRenderer,G,a);if((W.linearAdSequenceRenderer||W.instreamVideoAdRenderer)&&v)return A6l(X.G.get(),X.J.get(),V,G,a,Y,!X.Xh.get().W.j().S("html5_override_ad_video_length_killswitch")); +if(W.linearAdSequenceRenderer&&!v){if(d)return[];KA(c,W,F);if(W.linearAdSequenceRenderer.adLayoutMetadata){if(!mCL(W.linearAdSequenceRenderer))return new D("Received invalid LinearAdSequenceRenderer.")}else if(W.linearAdSequenceRenderer.linearAds==null)return new D("Received invalid LinearAdSequenceRenderer.");if(g.T(W.linearAdSequenceRenderer.adStart,rg)){FX("Found AdNotify in LinearAdSequenceRenderer");V=g.T(W.linearAdSequenceRenderer.adStart,rg);if(!jOs(V))return new D("Invalid AdMessageRenderer."); +L=W.linearAdSequenceRenderer.linearAds;return HC1(X.X.get(),X.G.get(),X.J.get(),X.X4.get(),w,Z,V,GA(W.linearAdSequenceRenderer.adLayoutMetadata)?W.linearAdSequenceRenderer.adLayoutMetadata:void 0,L,G,n,h,a,A,X.loadPolicy,X.Xh.get())}return Ftl(X.G.get(),X.J.get(),w,Z,W.linearAdSequenceRenderer.linearAds,GA(W.linearAdSequenceRenderer.adLayoutMetadata)?W.linearAdSequenceRenderer.adLayoutMetadata:void 0,G,n,h,a,A,X.loadPolicy,X.Xh.get(),H)}if(!W.remoteSlotsRenderer||L){if(W.instreamVideoAdRenderer&& +!v){if(d)return[];KA(c,W,F);return QW2(X.G.get(),X.J.get(),w,Z,W.instreamVideoAdRenderer,G,n,h,a,A,X.loadPolicy,X.Xh.get(),X.X4.get(),H)}if(W.instreamSurveyAdRenderer)return ZCD(X.G.get(),X.J.get(),W.instreamSurveyAdRenderer,w,Z,G,a,Xu(X.Xh.get(),"supports_multi_step_on_desktop"));if(W.sandwichedLinearAdRenderer!=null)return RLj(W.sandwichedLinearAdRenderer)?g.T(W.sandwichedLinearAdRenderer.adVideoStart,rg)?(FX("Found AdNotify in SandwichedLinearAdRenderer"),V=g.T(W.sandwichedLinearAdRenderer.adVideoStart, +rg),jOs(V)?(L=g.T(W.sandwichedLinearAdRenderer.linearAd,WK))?wc8(V,L,w,X.X.get(),X.G.get(),X.J.get(),X.X4.get(),Z,G,n,h,a,A,X.loadPolicy,X.Xh.get()):new D("Missing IVAR from Sandwich"):new D("Invalid AdMessageRenderer.")):Ftl(X.G.get(),X.J.get(),w,Z,[W.sandwichedLinearAdRenderer.adVideoStart,W.sandwichedLinearAdRenderer.linearAd],void 0,G,n,h,a,A,X.loadPolicy,X.Xh.get()):new D("Received invalid SandwichedLinearAdRenderer.");if(W.videoAdTrackingRenderer!=null)return St2(X.G.get(),X.J.get(),W.videoAdTrackingRenderer, +w,Z,G,n,h.rW,a)}}return[]}; +vq=function(X,c,V,G,n,L,d,h){g.I.call(this);var A=this;this.G=X;this.U=c;this.VC=G;this.mS=n;this.Xh=L;this.t7=d;this.Iy=h;this.J=null;V.get().addListener(this);this.addOnDisposeCallback(function(){V.vl()||V.get().removeListener(A)}); +G.get().addListener(this);this.addOnDisposeCallback(function(){G.vl()||G.get().removeListener(A)})}; +bCL=function(X,c,V){var G=X.mS.get().getCurrentTimeSec(1,!1);X.Xh.get().W.j().YU()&&dE(X.t7.get(),"sdai","onopp.1;evt."+V.event+";start."+V.startSecs.toFixed(3)+";d."+V.VL.toFixed(3));Qn(X.G.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var n=X.U.get(),L=c.adPlacementRenderer.renderer.adBreakServiceRenderer,d=c.contentCpn,h=c.adPlacementRenderer.adSlotLoggingData,A=kI(X.Xh.get()),Y=X.t7;if(n.Xh.get().W.j().experiments.lc("enable_smearing_expansion_dai")){var H=g.EZ(n.Xh.get().W.j().experiments, +"max_prefetch_window_sec_for_livestream_optimization");var a=g.EZ(n.Xh.get().W.j().experiments,"min_prefetch_offset_sec_for_livestream_optimization");A={GC:Rys(V),wE:!1,cueProcessedMs:G*1E3};var W=V.startSecs+V.VL;if(G===0)A.ue=new ek(0,W*1E3);else{a=V.startSecs-a;var w=a-G;A.ue=w<=0?new ek(a*1E3,W*1E3):new ek(Math.floor(G+Math.random()*Math.min(w,H))*1E3,W*1E3)}H=A}else H={GC:Rys(V),wE:!1},W=V.startSecs+V.VL,V.startSecs<=G?A=new ek((V.startSecs-4)*1E3,W*1E3):(a=Math.max(0,V.startSecs-G-10),A=new ek(Math.floor(G+ +Math.random()*(A?G===0?0:Math.min(a,5):a))*1E3,W*1E3)),H.ue=A;n=PK(n,L,d,H,h,[new R9(V)]);Y.get().W.m$(H.ue.start/1E3-G,V.startSecs-G);return[n]})}; +oC=function(X){var c,V=(c=jR(X.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:c.current;if(!V)return null;c=jR(X.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var G=X.layoutId,n=jR(X.clientMetadata,"metadata_type_content_cpn"),L=jR(X.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),d=jR(X.clientMetadata,"metadata_type_player_overlay_layout_renderer"),h=jR(X.clientMetadata,"metadata_type_player_underlay_renderer"),A=jR(X.clientMetadata, +"metadata_type_ad_placement_config"),Y=jR(X.clientMetadata,"metadata_type_video_length_seconds");var H=dG(X.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?jR(X.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):dG(X.clientMetadata,"metadata_type_layout_enter_ms")&&dG(X.clientMetadata,"metadata_type_layout_exit_ms")?(jR(X.clientMetadata,"metadata_type_layout_exit_ms")-jR(X.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{D8:G,contentCpn:n,Ui:V,C2:c,instreamAdPlayerOverlayRenderer:L, +playerOverlayLayoutRenderer:d,instreamAdPlayerUnderlayRenderer:h,adPlacementConfig:A,videoLengthSeconds:Y,Gk:H,inPlayerLayoutId:jR(X.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:jR(X.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; +OC2=function(X,c){return tfL(X,c)}; +lIt=function(X,c){c=tfL(X,c);if(!c)return null;var V;c.Gk=(V=jR(X.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:V.adBreakRemainingLengthSeconds;return c}; +tfL=function(X,c){var V,G=(V=jR(X.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:V.current;if(!G)return null;V=qd8(X,c);return{Lb:i3w(X,c),adPlacementConfig:jR(X.clientMetadata,"metadata_type_ad_placement_config"),Tt:V,contentCpn:jR(X.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:jR(X.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:jR(X.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:jR(X.clientMetadata, +"metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,Gk:void 0,Ui:G,D8:X.layoutId,videoLengthSeconds:jR(X.clientMetadata,"metadata_type_video_length_seconds")}}; +e0=function(X,c,V,G,n,L,d,h,A){g.I.call(this);this.X=X;this.B=c;this.Z=V;this.U=G;this.J=n;this.G=L;this.X4=d;this.Xh=h;this.Sv=A;this.Oq=!0}; +MfL=function(X,c,V){return vw2(X.J.get(),c.contentCpn,c.D8,function(G){return kEs(X.G.get(),G.slotId,V,c.adPlacementConfig,c.D8,F1(X.X4.get(),G))})}; +Jo=function(X,c,V,G,n,L,d,h){g.I.call(this);this.G=X;this.J=c;this.U=V;this.Xh=G;this.X=n;this.Sv=L;this.mS=d;this.wm=h}; +m7=function(X){g.I.call(this);this.J=X}; +Qn=function(X,c,V,G){X.J().Le(c,G);V=V();X=X.J();X.ra.US("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",c,G,V);c=g.r(V);for(V=c.next();!V.done;V=c.next())a:{G=X;V=V.value;G.ra.hZ("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",V);G.ra.hZ("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",V);try{var n=G.J;if(g.kU(V.slotId))throw new D("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(eR(n,V))throw new D("Duplicate registration for slot.",{slotId:V.slotId,slotEntryTriggerType:V.slotEntryTrigger.triggerType}, +"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!n.bj.Go.has(V.slotType))throw new D("No fulfillment adapter factory registered for slot of type: "+V.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!n.bj.bZ.has(V.slotType))throw new D("No SlotAdapterFactory registered for slot of type: "+V.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");Pv(n,"TRIGGER_CATEGORY_SLOT_ENTRY",V.slotEntryTrigger?[V.slotEntryTrigger]:[]);Pv(n,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", +V.slotFulfillmentTriggers);Pv(n,"TRIGGER_CATEGORY_SLOT_EXPIRATION",V.slotExpirationTriggers);var L=G.J,d=V.slotType+"_"+V.slotPhysicalPosition,h=IX(L,d);if(eR(L,V))throw new D("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");h.set(V.slotId,new Bvj(V));L.J.set(d,h)}catch(nj){nj instanceof D&&nj.Qq?(G.ra.W1("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",nj.Qq,V),FX(nj,V,void 0,void 0,nj.iG)):(G.ra.W1("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", +V),FX(nj,V));break a}eR(G.J,V).B=!0;try{var A=G.J,Y=eR(A,V),H=V.slotEntryTrigger,a=A.bj.aC.get(H.triggerType);a&&(a.Kr("TRIGGER_CATEGORY_SLOT_ENTRY",H,V,null),Y.kO.set(H.triggerId,a));for(var W=g.r(V.slotFulfillmentTriggers),w=W.next();!w.done;w=W.next()){var F=w.value,Z=A.bj.aC.get(F.triggerType);Z&&(Z.Kr("TRIGGER_CATEGORY_SLOT_FULFILLMENT",F,V,null),Y.G_.set(F.triggerId,Z))}for(var v=g.r(V.slotExpirationTriggers),e=v.next();!e.done;e=v.next()){var m=e.value,t=A.bj.aC.get(m.triggerType);t&&(t.Kr("TRIGGER_CATEGORY_SLOT_EXPIRATION", +m,V,null),Y.C.set(m.triggerId,t))}var f=A.bj.Go.get(V.slotType).get().build(A.U,V);Y.D=f;var U=A.bj.bZ.get(V.slotType).get().build(A.Z,V);U.init();Y.G=U}catch(nj){nj instanceof D&&nj.Qq?(G.ra.W1("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",nj.Qq,V),FX(nj,V,void 0,void 0,nj.iG)):(G.ra.W1("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",V),FX(nj,V));vv(G,V,!0);break a}G.ra.hZ("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",V);G.J.s5(V);for(var C=g.r(G.G),K=C.next();!K.done;K= +C.next())K.value.s5(V);RX(G,V)}}; +RC=function(X,c,V,G,n){g.I.call(this);var L=this;this.G=X;this.U=c;this.b3=V;this.context=n;this.J=new Map;G.get().addListener(this);this.addOnDisposeCallback(function(){G.vl()||G.get().removeListener(L)})}; +O2j=function(X,c){var V=0x8000000000000;var G=0;for(var n=g.r(c.slotFulfillmentTriggers),L=n.next();!L.done;L=n.next())L=L.value,L instanceof Ns?(V=Math.min(V,L.J.start),G=Math.max(G,L.J.end)):FX("Found unexpected fulfillment trigger for throttled slot.",c,null,{fulfillmentTrigger:L});G=new ek(V,G);V="throttledadcuerange:"+c.slotId;X.J.set(V,c);X.b3.get().addCueRange(V,G.start,G.end,!1,X);mT(X.context.Xh.get())&&(c=G.start,G=G.end,n={},X.context.yH.OM("tcrr",(n.cid=V,n.sm=c,n.em=G,n)))}; +bQ=function(){g.I.apply(this,arguments);this.Oq=!0;this.Uc=new Map;this.J=new Map}; +to=function(X,c){X=g.r(X.Uc.values());for(var V=X.next();!V.done;V=X.next())if(V.value.layoutId===c)return!0;return!1}; +Og=function(X,c){X=g.r(X.J.values());for(var V=X.next();!V.done;V=X.next()){V=g.r(V.value);for(var G=V.next();!G.done;G=V.next())if(G=G.value,G.layoutId===c)return G}FX("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.kU(c)),layoutId:c})}; +gLw=function(){this.J=new Map}; +fIj=function(X,c){this.callback=X;this.slot=c}; +lQ=function(){}; +pf8=function(X,c,V){this.callback=X;this.slot=c;this.mS=V}; +IIt=function(X,c,V){this.callback=X;this.slot=c;this.mS=V;this.G=!1;this.J=0}; +Njj=function(X,c,V){this.callback=X;this.slot=c;this.mS=V}; +MI=function(X){this.mS=X}; +gg=function(X){g.I.call(this);this.cG=X;this.tX=new Map}; +fm=function(X,c){for(var V=[],G=g.r(X.tX.values()),n=G.next();!n.done;n=G.next()){n=n.value;var L=n.trigger;L instanceof XH&&L.triggeringLayoutId===c&&V.push(n)}V.length?gG(X.cG(),V):FX("Survey is submitted but no registered triggers can be activated.")}; +pm=function(X,c,V){gg.call(this,X);var G=this;this.Xh=V;c.get().addListener(this);this.addOnDisposeCallback(function(){c.vl()||c.get().removeListener(G)})}; +IC=function(X){g.I.call(this);this.J=X;this.Oq=!0;this.tX=new Map;this.Z=new Set;this.U=new Set;this.X=new Set;this.B=new Set;this.G=new Set}; +NI=function(X){g.I.call(this);this.J=X;this.tX=new Map}; +Ug=function(X,c){for(var V=[],G=g.r(X.tX.values()),n=G.next();!n.done;n=G.next())n=n.value,n.trigger.J===c.layoutId&&V.push(n);V.length&&gG(X.J(),V)}; +TP=function(X,c,V){g.I.call(this);var G=this;this.J=X;this.context=V;this.tX=new Map;c.get().addListener(this);this.addOnDisposeCallback(function(){c.vl()||c.get().removeListener(G)})}; +uQ=function(X,c,V,G,n){g.I.call(this);var L=this;this.G=X;this.b3=c;this.mS=V;this.Sv=G;this.context=n;this.Oq=!0;this.tX=new Map;this.J=new Set;V.get().addListener(this);this.addOnDisposeCallback(function(){V.vl()||V.get().removeListener(L)})}; +U0w=function(X,c,V,G,n,L,d,h,A,Y){if(Zq(X.Sv.get(),1).clientPlaybackNonce!==A)throw new D("Cannot register CueRange-based trigger for different content CPN",{trigger:V});X.tX.set(V.triggerId,{Rp:new VE(c,V,G,n),cueRangeId:L});X.b3.get().addCueRange(L,d,h,Y,X);mT(X.context.Xh.get())&&(A={},X.context.yH.OM("crr",(A.ca=c,A.tt=V.triggerType,A.st=G.slotType,A.lt=n==null?void 0:n.layoutType,A.cid=L,A.sm=d,A.em=h,A)))}; +Tj8=function(X,c){X=g.r(X.tX.entries());for(var V=X.next();!V.done;V=X.next()){var G=g.r(V.value);V=G.next().value;G=G.next().value;if(c===G.cueRangeId)return V}return""}; +Pq=function(X,c){g.I.call(this);var V=this;this.X=X;this.G=new Map;this.U=new Map;this.J=null;c.get().addListener(this);this.addOnDisposeCallback(function(){c.vl()||c.get().removeListener(V)}); +var G;this.J=((G=c.get().Os)==null?void 0:G.slotId)||null}; +uSj=function(X,c){var V=[];X=g.r(X.values());for(var G=X.next();!G.done;G=X.next())G=G.value,G.slot.slotId===c&&V.push(G);return V}; +zP=function(X){g.I.call(this);this.J=X;this.Oq=!0;this.tX=new Map}; +Dq=function(X,c,V){c=c.layoutId;for(var G=[],n=g.r(X.tX.values()),L=n.next();!L.done;L=n.next())if(L=L.value,L.trigger instanceof Pd){var d;if(d=L.trigger.layoutId===c){d=V;var h=In8.get(L.category);d=h?h===d:!1}d&&G.push(L)}G.length&&gG(X.J(),G)}; +Bq=function(X){g.I.call(this);this.J=X;this.Oq=!0;this.tX=new Map}; +Km=function(X,c,V,G,n){g.I.call(this);var L=this;this.Z=X;this.VC=c;this.mS=V;this.t7=G;this.J=null;this.Oq=!0;this.tX=new Map;this.U=new Map;c.get().addListener(this);this.addOnDisposeCallback(function(){c.vl()||c.get().removeListener(L)}); +n.get().addListener(this);this.addOnDisposeCallback(function(){n.vl()||n.get().removeListener(L)})}; +zyS=function(X){X.J&&(X.G&&(X.G.stop(),X.G.start()),PxU(X,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"))}; +PxU=function(X,c){for(var V=[],G=g.r(X.tX.values()),n=G.next();!n.done;n=G.next())n=n.value,n.trigger.triggerType===c&&V.push(n);V.length>0&&gG(X.Z(),V)}; +sg=function(X,c,V,G,n){n=n===void 0?!0:n;for(var L=[],d=g.r(X.tX.values()),h=d.next();!h.done;h=d.next()){h=h.value;var A=h.trigger;if(A.triggerType===c){if(A instanceof fR||A instanceof pR||A instanceof UG){if(n&&A.breakDurationMs!==V)continue;if(!n&&A.breakDurationMs===V)continue;if(G.has(A.triggerId))continue}L.push(h)}}L.length>0&&gG(X.Z(),L)}; +BjD=function(X){X=X.adPlacementRenderer.config.adPlacementConfig;if(!X.prefetchModeConfig||!X.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;X=Number(X.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(X)||X<=0?0:Math.floor(Math.random()*X)}; +KtO=function(X){X=X.adPlacementRenderer.config.adPlacementConfig;if(X.prefetchModeConfig&&X.prefetchModeConfig.cacheFetchRefreshDurationMs&&(X=Number(X.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(X)||X<=0)))return X}; +Cm=function(X){X.J=null;X.tX.clear();X.U.clear();X.G&&X.G.stop();X.X&&X.X.stop()}; +Dy=function(X){g.I.call(this);this.U=X;this.Oq=!0;this.tX=new Map;this.J=new Map;this.G=new Map}; +s98=function(X,c){var V=[];if(c=X.J.get(c.layoutId)){c=g.r(c);for(var G=c.next();!G.done;G=c.next())(G=X.G.get(G.value.triggerId))&&V.push(G)}return V}; +S0=function(X){g.I.call(this);this.J=X;this.tX=new Map}; +Cx2=function(X,c){for(var V=[],G=g.r(X.tX.values()),n=G.next();!n.done;n=G.next())n=n.value,n.trigger instanceof eN&&n.trigger.slotId===c&&V.push(n);V.length>=1&&gG(X.J(),V)}; +D0s=function(X,c){var V={slotId:ZQ(c,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],sy:"surface",clientMetadata:new YS([])},G=Object,n=G.assign;c=cQ(c,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",V.slotId);c={layoutId:c,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",UM:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],LM:[],sy:"surface", +clientMetadata:new YS([]),eS:OMl(!1,V.slotId,V.slotType,V.slotPhysicalPosition,V.sy,V.slotEntryTrigger,V.slotFulfillmentTriggers,V.slotExpirationTriggers,c,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return n.call(G,{},X,{AXc:!0,slot:V,layout:c})}; +fBD=function(X,c,V,G){var n=X.kind;G=G?!1:!X.hideCueRangeMarker;switch(n){case "AD_PLACEMENT_KIND_START":return G={GC:new ek(-0x8000000000000,-0x8000000000000),wE:G},V!=null&&(G.ue=new ek(-0x8000000000000,-0x8000000000000)),G;case "AD_PLACEMENT_KIND_END":return G={GC:new ek(0x7ffffffffffff,0x8000000000000),wE:G},V!=null&&(G.ue=new ek(Math.max(0,c-V),0x8000000000000)),G;case "AD_PLACEMENT_KIND_MILLISECONDS":n=X.adTimeOffset;n.offsetStartMilliseconds||FX("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); +n.offsetEndMilliseconds||FX("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");X=Number(n.offsetStartMilliseconds);n=Number(n.offsetEndMilliseconds);n===-1&&(n=c);if(Number.isNaN(X)||Number.isNaN(n)||X>n)return new D("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:X,offsetEndMs:n},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",n===c&&X-500<=n);G={GC:new ek(X,n),wE:G};if(V!=null){X=Math.max(0,X-V);if(X===n)return G;G.ue=new ek(X,n)}return G; +default:return new D("AdPlacementKind not supported in convertToRange.",{kind:n,adPlacementConfig:X})}}; +Rys=function(X){var c=X.startSecs*1E3;return new ek(c,c+X.VL*1E3)}; +S$l=function(X){if(!X||!X.adPlacements&&!X.adSlots)return!1;for(var c=g.r(X.adPlacements||[]),V=c.next();!V.done;V=c.next())if(V=V.value)if(V=V.adPlacementRenderer,V!=null&&(V.config&&V.config.adPlacementConfig&&V.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;X=g.r(X.adSlots||[]);for(c=X.next();!c.done;c=X.next()){var G=V=void 0;if(((V=g.T(c.value,uS))==null?void 0:(G=V.adSlotMetadata)==null?void 0:G.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; +iQ=function(X){this.Xh=X;this.G=new Map;this.J=new Map;this.U=new Map}; +ZQ=function(X,c){if(qI(X.Xh.get())){var V=X.G.get(c)||0;V++;X.G.set(c,V);return c+"_"+V}return g.mq(16)}; +cQ=function(X,c,V){if(qI(X.Xh.get())){var G=X.J.get(c)||0;G++;X.J.set(c,G);return V+"_"+c+"_"+G}return g.mq(16)}; +YI=function(X,c){if(qI(X.Xh.get())){var V=X.U.get(c)||0;V++;X.U.set(c,V);return c+"_"+V}return g.mq(16)}; +iCs=function(X){var c=[new ZI(X.D8),new o9(X.Ui),new GW(X.adPlacementConfig),new bx(X.videoLengthSeconds),new Bf(X.Gk)];X.instreamAdPlayerOverlayRenderer&&c.push(new YL(X.instreamAdPlayerOverlayRenderer));X.playerOverlayLayoutRenderer&&c.push(new jf(X.playerOverlayLayoutRenderer));X.C2&&c.push(new yU(X.C2));return c}; +q$1=function(X,c,V,G,n,L){X=V.inPlayerLayoutId?V.inPlayerLayoutId:cQ(L,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",X);var d,h,A=V.instreamAdPlayerOverlayRenderer?(d=V.instreamAdPlayerOverlayRenderer)==null?void 0:d.adLayoutLoggingData:(h=V.playerOverlayLayoutRenderer)==null?void 0:h.adLayoutLoggingData;d={layoutId:X,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",sy:c};return{layoutId:X,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",UM:new Map,layoutExitNormalTriggers:[new Ms(function(Y){return YI(L, +Y)},V.D8)], +layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],LM:[],sy:c,clientMetadata:G,eS:n(d),adLayoutLoggingData:A}}; +Xk=function(X,c){var V=this;this.G=X;this.Xh=c;this.J=function(G){return YI(V.G.get(),G)}}; +kEs=function(X,c,V,G,n,L){V=new YS([new Hf(V),new GW(G)]);c=cQ(X.G.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",c);G={layoutId:c,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",sy:"core"};return{layoutId:c,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",UM:new Map,layoutExitNormalTriggers:[new Ms(function(d){return YI(X.G.get(),d)},n)], +layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],LM:[],sy:"core",clientMetadata:V,eS:L(G),adLayoutLoggingData:void 0}}; +V6=function(X,c,V,G,n){var L=iCs(G);return q$1(c,V,G,new YS(L),n,X.G.get())}; +Xv2=function(X,c,V,G,n){var L=iCs(G);L.push(new cf(G.Lb));L.push(new VU(G.Tt));return q$1(c,V,G,new YS(L),n,X.G.get())}; +Zy=function(X,c,V,G,n,L,d,h,A,Y){c=cQ(X.G.get(),V,c);var H={layoutId:c,layoutType:V,sy:"core"},a=new Map;d&&a.set("impression",d);d=[new T3(X.J,n,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];Y&&d.push(new lk(X.J,Y,["normal"]));return{layoutId:c,layoutType:V,UM:a,layoutExitNormalTriggers:d,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],LM:[],sy:"core",clientMetadata:new YS([G,new GW(L),new ZI(n)]),eS:h(H),adLayoutLoggingData:A}}; +xI=function(X,c,V,G,n,L,d,h,A){c=cQ(X.G.get(),V,c);var Y={layoutId:c,layoutType:V,sy:"core"},H=[new T3(X.J,n,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];A&&H.push(new lk(X.J,A,["normal"]));return{layoutId:c,layoutType:V,UM:new Map,layoutExitNormalTriggers:H,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],LM:[],sy:"core",clientMetadata:new YS([G,new GW(L),new ZI(n)]),eS:d(Y),adLayoutLoggingData:h}}; +Hq=function(X,c,V){var G=[];G.push(new uk(X.J,V));c&&G.push(c);return G}; +j0=function(X,c,V,G,n,L,d){var h={layoutId:c,layoutType:V,sy:"core"};return{layoutId:c,layoutType:V,UM:new Map,layoutExitNormalTriggers:d,layoutExitSkipTriggers:[new RD(X.J,c)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],LM:[],sy:"core",clientMetadata:new YS([new SE(G),new GW(n)]),eS:L(h),adLayoutLoggingData:G.adLayoutLoggingData}}; +iS=function(X,c,V,G,n,L,d,h){var A={layoutId:c,layoutType:L,sy:"core"};return{layoutId:c,layoutType:L,UM:new Map,layoutExitNormalTriggers:[new Ms(X.J,V)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],LM:[],sy:"core",clientMetadata:new YS([new GW(G)].concat(g.x(d))),eS:n(A),adLayoutLoggingData:h}}; +$I=function(X,c,V,G){if(X.Xh.get().HW(c.kind==="AD_PLACEMENT_KIND_START"))if(V===void 0)FX("Expected SSAP layout ID in renderer",void 0,void 0,{caller:G});else return V}; +nLs=function(X,c,V,G,n,L,d,h,A,Y,H,a,W){X=aC(X,c,V,n,L,d,h,A,a,$I(X,V,G.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),W);c=X.Uh;V=new xL(X.oQ);G=X.layoutExitSkipTriggers;Y>0&&(c.push(V),c.push(new dj(Y)),G=[]);c.push(new LC(H));return{Zb:{layoutId:X.layoutId,layoutType:X.layoutType,UM:X.UM,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],LM:[],sy:X.sy,clientMetadata:new YS(c),eS:X.eS,adLayoutLoggingData:X.adLayoutLoggingData}, +Q6:G,aT:X.layoutExitMuteTriggers,I5:X.layoutExitUserInputSubmittedTriggers,FT:X.LM,fE:X.fE}}; +hys=function(X,c,V,G,n,L,d,h,A,Y){c=aC(X,c,V,G,L,new Map,d,function(H){return h(H,A)},void 0,$I(X,V,n.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); +X=new XH(X.J,c.oQ);V=new xL(c.oQ);Y=new LC(Y);return{Zb:{layoutId:c.layoutId,layoutType:c.layoutType,UM:c.UM,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],LM:[],sy:c.sy,clientMetadata:new YS([].concat(g.x(c.Uh),[V,Y])),eS:c.eS,adLayoutLoggingData:c.adLayoutLoggingData},Q6:c.layoutExitSkipTriggers,aT:c.layoutExitMuteTriggers,I5:[].concat(g.x(c.layoutExitUserInputSubmittedTriggers),[X]),FT:c.LM,fE:c.fE}}; +aC=function(X,c,V,G,n,L,d,h,A,Y,H){c=Y!=null?Y:cQ(X.G.get(),"LAYOUT_TYPE_MEDIA_BREAK",c);Y={layoutId:c,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",sy:"adapter"};h=h(c);var a=jR(h.clientMetadata,"metadata_type_fulfilled_layout");a||FX("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var W=a?a.layoutId:"";V=[new GW(V),new KC(G),new DI(n)];a&&V.push(new vf(a.layoutType));H&&V.push(new fC(H));return{layoutId:c,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", +UM:L,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new KR(X.J,W)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],LM:[],sy:"adapter",Uh:V,eS:d(Y),adLayoutLoggingData:A,fE:h,oQ:W}}; +ZyU=function(X,c,V,G,n,L,d,h,A,Y,H){X=crl(X,c,"core",V,G,n,L,d,h,A,Y,void 0,H);return{layoutId:X.layoutId,layoutType:X.layoutType,UM:X.UM,layoutExitNormalTriggers:X.layoutExitNormalTriggers,layoutExitSkipTriggers:X.layoutExitSkipTriggers,layoutExitMuteTriggers:X.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:X.layoutExitUserInputSubmittedTriggers,LM:X.LM,sy:X.sy,clientMetadata:new YS(X.Ao),eS:X.eS,adLayoutLoggingData:X.adLayoutLoggingData}}; +rds=function(X,c,V,G,n,L,d,h,A,Y,H,a,W){c=crl(X,c,"adapter",V,G,n,L,d,h,A,H,a,W);G=c.layoutExitSkipTriggers;n=c.Ao;V.adPodSkipTarget&&V.adPodSkipTarget>0&&(n.push(Y),n.push(new dj(V.adPodSkipTarget)),G=[]);n.push(new LC(h.adPodIndex));V.isCritical&&(G=[new lk(X.J,c.layoutId,["error"])].concat(g.x(G)));return{Zb:{layoutId:c.layoutId,layoutType:c.layoutType,UM:c.UM,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],LM:[],sy:c.sy,clientMetadata:new YS(n), +eS:c.eS,adLayoutLoggingData:c.adLayoutLoggingData},Q6:G,aT:c.layoutExitMuteTriggers,I5:c.layoutExitUserInputSubmittedTriggers,FT:c.LM}}; +crl=function(X,c,V,G,n,L,d,h,A,Y,H,a,W){var w={layoutId:c,layoutType:"LAYOUT_TYPE_MEDIA",sy:V};n=[new GW(n),new nC(A),new hd(G.externalVideoId),new Ad(h),new DI({impressionCommands:G.impressionCommands,abandonCommands:G.onAbandonCommands,completeCommands:G.completeCommands,progressCommands:G.adVideoProgressCommands}),new td(L),new ef({current:null}),new bx(d)];(L=G.playerOverlay.instreamAdPlayerOverlayRenderer)&&n.push(new YL(L));(d=G.playerOverlay.playerOverlayLayoutRenderer)&&n.push(new jf(d)); +a&&n.push(new O$(a));(a=G.playerUnderlay)&&n.push(new Hf(a));h=ZQ(X.G.get(),"SLOT_TYPE_IN_PLAYER");a=(a=L?L.elementId:d==null?void 0:d.layoutId)?a:cQ(X.G.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",h);n.push(new xL(a));n.push(new kL(h));n.push(new fC(A.adPodIndex));G.adNextParams&&n.push(new Cy(G.adNextParams));G.shrunkenPlayerBytesConfig&&n.push(new Wf(G.shrunkenPlayerBytesConfig));G.clickthroughEndpoint&&n.push(new D5(G.clickthroughEndpoint));G.legacyInfoCardVastExtension&&n.push(new s$(G.legacyInfoCardVastExtension)); +G.sodarExtensionData&&n.push(new lx(G.sodarExtensionData));H&&n.push(new zW(H));n.push(new q0(ba(G.pings)));A=tC(G.pings);if(W){a:{W=g.r(W);for(H=W.next();!H.done;H=W.next())if(H=H.value,H.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(L=g.T(H.fulfillmentContent.fulfilledLayout,OR))&&(L=g.T(L.renderingContent,bS))&&L.associatedPlayerBytesLayoutId===c){W=H;break a}W=void 0}W&&n.push(new a9(W))}return{layoutId:c,layoutType:"LAYOUT_TYPE_MEDIA",UM:A,layoutExitNormalTriggers:[new Pd(X.J,c)],layoutExitSkipTriggers:G.skipOffsetMilliseconds? +[new KR(X.J,a)]:[],layoutExitMuteTriggers:[new KR(X.J,a)],layoutExitUserInputSubmittedTriggers:[],LM:[],sy:V,Ao:n,eS:Y(w),adLayoutLoggingData:G.adLayoutLoggingData}}; +jWU=function(X,c,V,G,n,L,d,h,A){G.every(function(H){return yg(H,[],["LAYOUT_TYPE_MEDIA"])})||FX("Unexpect subLayout type for DAI composite layout"); +c=cQ(X.G.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",c);var Y={layoutId:c,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",sy:"core"};return{layoutId:c,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",UM:new Map,layoutExitNormalTriggers:[new gE(X.J)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],LM:[],sy:"core",clientMetadata:new YS([new M0(V),new gj(h),new mt(G),new GW(n),new U$(L),new pC({}),new cv(A)]),eS:d(Y)}}; +dZS=function(X){return X!=null}; +cV=function(X,c,V){var G=this;this.G=X;this.U=c;this.Xh=V;this.J=function(n){return YI(G.G.get(),n)}}; +m02=function(X,c,V,G,n,L,d){if(!V.prefetchModeConfig)return new D("AdPlacementConfig for Live Prefetch is missing prefetch_config");V=V.prefetchModeConfig;G*=1E3;var h=[];if(!V.breakLengthMs)return new D("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var A=g.r(V.breakLengthMs),Y=A.next();!Y.done;Y=A.next())if(Y=Y.value,Number(Y)>0){var H=G+Number(V.startTimeOffsetMs),a=H+Number(V.cacheFetchSmearingDurationMs);Y={GC:new ek(a,a+Number(Y)),wE:!1,ue:new ek(Math.floor(H+Math.random()* +Number(V.cacheFetchSmearingDurationMs)),a),cueProcessedMs:G?G:H};H=[];H.push(new Lo({}));a=[];a.push(new Bd(X.J));a.push(new qrD(X.J));d&&H.push(new pC({}));h.push(PK(X,c,n,Y,L,H,a))}return h}; +PK=function(X,c,V,G,n,L,d){L=L===void 0?[]:L;d=d===void 0?[]:d;var h=ZQ(X.G.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),A=[];d=g.r(d);for(var Y=d.next();!Y.done;Y=d.next())A.push(Y.value);G.ue&&G.ue.start!==G.GC.start&&A.push(new Ns(X.J,V,new ek(G.ue.start,G.GC.start),!1));A.push(new Ns(X.J,V,new ek(G.GC.start,G.GC.end),G.wE));G={getAdBreakUrl:c.getAdBreakUrl,oz:G.GC.start,CO:G.GC.end,cueProcessedMs:G.cueProcessedMs};c=new SN(X.J,h);L=[new ux(G)].concat(g.x(L));return{slotId:h,slotType:"SLOT_TYPE_AD_BREAK_REQUEST", +slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:A,slotExpirationTriggers:[new z3(X.J,V),new CR(X.J,h),new Dr(X.J,h)],sy:"core",clientMetadata:new YS(L),adSlotLoggingData:n}}; +GLj=function(X,c,V){var G=[];V=g.r(V);for(var n=V.next();!n.done;n=V.next())G.push(VRl(X,c,n.value));return G}; +VRl=function(X,c,V){return V.triggeringSlotId!=null&&V.triggeringSlotId===X?V.clone(c):V}; +C4D=function(X,c,V,G,n){return nSs(X,c,V,G,n)}; +LtD=function(X,c,V,G){var n=ZQ(X.G.get(),"SLOT_TYPE_IN_PLAYER");return nSs(X,n,c,V,G)}; +nSs=function(X,c,V,G,n){var L=new OG(X.J,V),d=[new sG(X.J,c)];X=[new CR(X.J,c),new z3(X.J,G)];return{slotId:c,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:L,slotFulfillmentTriggers:d,slotExpirationTriggers:X,sy:"core",clientMetadata:new YS([new TW(n({slotId:c,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,sy:"core",slotEntryTrigger:L,slotFulfillmentTriggers:d,slotExpirationTriggers:X},V))]),adSlotLoggingData:void 0}}; +Q9t=function(X,c,V,G,n,L){var d=ZQ(X.G.get(),"SLOT_TYPE_PLAYER_BYTES"),h=ZQ(X.G.get(),"SLOT_TYPE_IN_PLAYER"),A=cQ(X.G.get(),"LAYOUT_TYPE_SURVEY",h);G=V7(X,c,V,G);var Y=[new sG(X.J,d)];V=[new CR(X.J,d),new z3(X.J,V),new RD(X.J,A)];if(G instanceof D)return G;h=L({slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,sy:"core",slotEntryTrigger:G,slotFulfillmentTriggers:Y,slotExpirationTriggers:V},{slotId:h,layoutId:A});L=h.dEO;h=h.Cch;return[{slotId:d,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, +slotEntryTrigger:wg(X,c,d,G),slotFulfillmentTriggers:Fq(X,c,d,Y),slotExpirationTriggers:V,sy:"core",clientMetadata:new YS([new TW(L),new Vg(Eg(c)),new no({pP:X.pP(c)})]),adSlotLoggingData:n},h]}; +Eg=function(X){return X.kind==="AD_PLACEMENT_KIND_START"}; +xZl=function(X,c,V,G,n){n=n?n:ZQ(X.G.get(),"SLOT_TYPE_IN_PLAYER");V=new OG(X.J,V);var L=[new sG(X.J,n)];X=[new z3(X.J,c),new CR(X.J,n)];return{slotId:n,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:V,slotFulfillmentTriggers:L,slotExpirationTriggers:X,sy:"core",clientMetadata:new YS([new TW(G({slotId:n,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,sy:"core",slotEntryTrigger:V,slotFulfillmentTriggers:L,slotExpirationTriggers:X}))])}}; +vw2=function(X,c,V,G){var n=ZQ(X.G.get(),"SLOT_TYPE_PLAYER_UNDERLAY");V=new OG(X.J,V);var L=[new sG(X.J,n)];X=[new z3(X.J,c),new CR(X.J,n)];return{slotId:n,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:V,slotFulfillmentTriggers:L,slotExpirationTriggers:X,sy:"core",clientMetadata:new YS([new TW(G({slotId:n,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,sy:"core",slotEntryTrigger:V,slotFulfillmentTriggers:L,slotExpirationTriggers:X}))])}}; +$Z2=function(X,c,V,G,n,L,d){var h=ZQ(X.G.get(),"SLOT_TYPE_IN_PLAYER"),A=cQ(X.G.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",h);G=Lcj(X,G,L,d,A);if(G instanceof D)return G;d=[new sG(X.J,h)];n=[new z3(X.J,L),new sG(X.J,n),new qs(X.J,n)];V=F1(V,{slotId:h,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,sy:"core",slotEntryTrigger:G,slotFulfillmentTriggers:d,slotExpirationTriggers:n});X=X.U.get();L={layoutId:A,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",sy:"core"};c={layoutId:A,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", +UM:new Map,layoutExitNormalTriggers:[new yX2(X.J,A,c.durationMs)],layoutExitSkipTriggers:[new AXO(X.J,A,c.durationMs)],LM:[new hLw(X.J,A)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],sy:"core",clientMetadata:new YS([new CC(c)]),eS:V(L)};return{slotId:h,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,sy:"core",slotEntryTrigger:G,slotFulfillmentTriggers:d,slotExpirationTriggers:n,clientMetadata:new YS([new TW(c)])}}; +Vfs=function(X,c,V,G,n,L){c=V7(X,c,V,G);if(c instanceof D)return c;var d=c instanceof Ns?new nyD(X.J,V,c.J):null;G=ZQ(X.G.get(),"SLOT_TYPE_IN_PLAYER");var h=[new sG(X.J,G)];X=[new z3(X.J,V),new CR(X.J,G)];L=L({slotId:G,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,sy:"core",slotEntryTrigger:c,slotFulfillmentTriggers:h,slotExpirationTriggers:X},d);return L instanceof Ar?new D(L):{slotId:G,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:h,slotExpirationTriggers:X, +sy:"core",clientMetadata:new YS([new TW(L)]),adSlotLoggingData:n}}; +XfU=function(X,c,V,G){var n=ZQ(X.G.get(),"SLOT_TYPE_IN_PLAYER"),L=new mV(X.J,c),d=[new ik(X.J,n)];X=[new z3(X.J,c),new CR(X.J,n)];return{slotId:n,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:L,slotFulfillmentTriggers:d,slotExpirationTriggers:X,sy:"core",clientMetadata:new YS([new TW(G({slotId:n,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,sy:"core",slotEntryTrigger:L,slotFulfillmentTriggers:d,slotExpirationTriggers:X}))]),adSlotLoggingData:V}}; +c6w=function(X,c,V,G){var n=ZQ(X.G.get(),"SLOT_TYPE_IN_PLAYER");V=new OG(X.J,V);var L=[new sG(X.J,n)],d=[new CR(X.J,n),new z3(X.J,c)];L={slotId:n,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,sy:"core",slotEntryTrigger:V,slotFulfillmentTriggers:L,slotExpirationTriggers:d};return{slotId:n,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:V,slotFulfillmentTriggers:[new sG(X.J,n)],slotExpirationTriggers:[new z3(X.J,c),new CR(X.J,n)],sy:"core",clientMetadata:new YS([new TW(G(L))])}}; +i2l=function(X,c,V,G,n){var L=ZQ(X.G.get(),"SLOT_TYPE_IN_PLAYER");V=new tf(X.J,G,V);G=[new sG(X.J,L)];X=[new z3(X.J,c)];return{slotId:L,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:V,slotFulfillmentTriggers:G,slotExpirationTriggers:X,sy:"core",clientMetadata:new YS([new TW(n({slotId:L,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,sy:"core",slotEntryTrigger:V,slotFulfillmentTriggers:G,slotExpirationTriggers:X}))])}}; +BJj=function(X,c,V,G,n,L){var d=ZQ(X.G.get(),c);return G9(X,d,c,new OG(X.J,G),[new z3(X.J,V),new CR(X.J,d),new lk(X.J,G,["error"])],n,L)}; +zLw=function(X,c,V,G,n,L,d){var h=ZQ(X.G.get(),c);return G9(X,h,c,new lk(X.J,n,["normal"]),[new z3(X.J,V),new CR(X.J,h),new lk(X.J,G,["error"])],L,d)}; +UCj=function(X,c,V,G,n){var L=ZQ(X.G.get(),c);return G9(X,L,c,new mV(X.J,V),[new z3(X.J,V),new CR(X.J,L)],G,n)}; +DZ8=function(X,c,V,G,n){V=V?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var L=ZQ(X.G.get(),V);c=new mV(X.J,c);var d=[new sG(X.J,L)];X=[new CR(X.J,L)];return{slotId:L,slotType:V,slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:d,slotExpirationTriggers:X,sy:"core",clientMetadata:new YS([new TW(n({slotId:L,slotType:V,slotPhysicalPosition:1,sy:"core",slotEntryTrigger:c,slotFulfillmentTriggers:d,slotExpirationTriggers:X}))]),adSlotLoggingData:G}}; +y6w=function(X,c,V,G){var n=ZQ(X.G.get(),"SLOT_TYPE_PLAYER_BYTES"),L=new ID(X.J),d=[new ik(X.J,n)];X=[new z3(X.J,c)];return{slotId:n,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:L,slotFulfillmentTriggers:d,slotExpirationTriggers:X,sy:"core",clientMetadata:new YS([new TW(G({slotId:n,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,sy:"core",slotEntryTrigger:L,slotFulfillmentTriggers:d,slotExpirationTriggers:X})),new pC({})]),adSlotLoggingData:V}}; +Wts=function(X,c){return eyl(X.Xh.get())?new lk(X.J,c,["normal","error","skipped"]):new lk(X.J,c,["normal"])}; +Ewt=function(X,c,V,G,n){c=Wts(X,c);X=Wq(X,c,V);n=n({slotId:X.slotId,slotType:X.slotType,slotPhysicalPosition:X.slotPhysicalPosition,slotEntryTrigger:X.slotEntryTrigger,slotFulfillmentTriggers:X.slotFulfillmentTriggers,slotExpirationTriggers:X.slotExpirationTriggers,sy:X.sy});return n instanceof D?n:{Ez:Object.assign({},X,{clientMetadata:new YS([new TW(n.layout)]),adSlotLoggingData:G}),SX:n.SX}}; +r6D=function(X,c,V,G,n,L,d){V=wf1(X,c,V,G);if(V instanceof D)return V;d=d({slotId:V.slotId,slotType:V.slotType,slotPhysicalPosition:V.slotPhysicalPosition,slotEntryTrigger:V.slotEntryTrigger,slotFulfillmentTriggers:V.slotFulfillmentTriggers,slotExpirationTriggers:V.slotExpirationTriggers,sy:V.sy});if(d instanceof D)return d;G=[new Vg(Eg(c)),new TW(d.layout),new no({pP:X.pP(c)})];L&&G.push(new Sf({}));return{Ez:{slotId:V.slotId,slotType:V.slotType,slotPhysicalPosition:V.slotPhysicalPosition,slotEntryTrigger:wg(X, +c,V.slotId,V.slotEntryTrigger),slotFulfillmentTriggers:Fq(X,c,V.slotId,V.slotFulfillmentTriggers),slotExpirationTriggers:V.slotExpirationTriggers,sy:V.sy,clientMetadata:new YS(G),adSlotLoggingData:n},SX:d.SX}}; +wg=function(X,c,V,G){return X.Xh.get().HW(Eg(c))?new eN(X.J,V):G}; +Fq=function(X,c,V,G){return X.Xh.get().HW(Eg(c))?[new ik(X.J,V)]:G}; +Wq=function(X,c,V){var G=ZQ(X.G.get(),"SLOT_TYPE_PLAYER_BYTES"),n=[new sG(X.J,G)];X=[new CR(X.J,G),new z3(X.J,V)];return{slotId:G,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:n,slotExpirationTriggers:X,sy:"core"}}; +wf1=function(X,c,V,G){c=V7(X,c,V,G);return c instanceof D?c:Wq(X,c,V)}; +iyL=function(X,c,V,G,n,L){var d=ZQ(X.G.get(),"SLOT_TYPE_FORECASTING");c=V7(X,c,V,G);if(c instanceof D)return c;G=[new sG(X.J,d)];X=[new CR(X.J,d),new z3(X.J,V)];return{slotId:d,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:c,slotFulfillmentTriggers:G,slotExpirationTriggers:X,sy:"core",clientMetadata:new YS([new TW(L({slotId:d,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,sy:"core",slotEntryTrigger:c,slotFulfillmentTriggers:G,slotExpirationTriggers:X}))]),adSlotLoggingData:n}}; +dgD=function(X,c,V,G,n){var L=!c.hideCueRangeMarker;switch(c.kind){case "AD_PLACEMENT_KIND_START":return new mV(X.J,V);case "AD_PLACEMENT_KIND_MILLISECONDS":return X=fBD(c,G),X instanceof D?X:n(X.GC,L);case "AD_PLACEMENT_KIND_END":return new bk(X.J,V,L);default:return new D("Cannot construct entry trigger",{kind:c.kind})}}; +Lcj=function(X,c,V,G,n){return dgD(X,c,V,G,function(L,d){return new GF8(X.J,V,L,d,n)})}; +V7=function(X,c,V,G){return dgD(X,c,V,G,function(n,L){return new Ns(X.J,V,n,L)})}; +G9=function(X,c,V,G,n,L,d){X=[new ik(X.J,c)];return{slotId:c,slotType:V,slotPhysicalPosition:1,slotEntryTrigger:G,slotFulfillmentTriggers:X,slotExpirationTriggers:n,sy:"core",clientMetadata:new YS([new TW(d({slotId:c,slotType:V,slotPhysicalPosition:1,sy:"core",slotEntryTrigger:G,slotFulfillmentTriggers:X,slotExpirationTriggers:n}))]),adSlotLoggingData:L}}; +nF=function(X,c){g.I.call(this);this.Xh=X;this.J=c;this.eventCount=0}; +LF=function(X,c,V,G){nF.call(this,X,c);this.Xh=X;this.Sv=V;this.context=G}; +d1=function(){this.J=new Map}; +Ah=function(X,c){var V=this;this.currentState="wait";this.onSuccess=[];this.onFailure=[];this.currentState=X;this.result=c.result;this.error=c.error;c.promise&&c.promise.then(function(G){y7(V,G)},function(G){hh(V,G)})}; +HV=function(X){if(Y0(X)){if(X instanceof Ah)return X;if(jh(X))return new Ah("wait",{promise:X})}return new Ah("done",{result:X})}; +ar=function(){return new Ah("wait",{})}; +$0=function(X){return new Ah("fail",{error:X})}; +WV=function(X){try{return HV(X())}catch(c){return $0(c)}}; +Fk=function(X,c){var V=ar();X.onSuccess.push(function(G){try{var n=c(G);y7(V,n)}catch(L){hh(V,L)}}); +X.onFailure.push(function(G){hh(V,G)}); +w1(X);return V}; +EM=function(X,c){var V=ar();X.onSuccess.push(function(G){y7(V,G)}); +X.onFailure.push(function(G){try{var n=c(G);y7(V,n)}catch(L){hh(V,L)}}); +w1(X);return V}; +yrl=function(X,c){var V=ar();X.onSuccess.push(function(G){try{c(),y7(V,G)}catch(n){hh(V,n)}}); +X.onFailure.push(function(G){try{c(),hh(V,G)}catch(n){hh(V,n)}}); +w1(X)}; +y7=function(X,c){if(Y0(c)){if(jh(c)){c.then(function(V){y7(X,V)},function(V){hh(X,V)}); +return}if(c instanceof Ah){Fk(c,function(V){y7(X,V)}); +EM(c,function(V){hh(X,V)}); +return}}X.currentState="done";X.result=c;w1(X)}; +hh=function(X,c){X.currentState="fail";X.error=c;w1(X)}; +w1=function(X){if(X.currentState==="done"){var c=X.onSuccess;X.onSuccess=[];X.onFailure=[];c=g.r(c);for(var V=c.next();!V.done;V=c.next())V=V.value,V(X.result)}else if(X.currentState==="fail")for(c=X.onFailure,X.onSuccess=[],X.onFailure=[],c=g.r(c),V=c.next();!V.done;V=c.next())V=V.value,V(X.error)}; +Art=function(X){return function(){return huD(X.apply(this,g.OD.apply(0,arguments)))}}; +huD=function(X){return WV(function(){return r1(X,X.next())})}; +r1=function(X,c){return c.done?HV(c.value):EM(Fk(c.value.YW,function(V){return r1(X,X.next(V))}),function(V){return r1(X,X.throw(V))})}; +YZS=function(X,c){if(X.length===0)return HV(NaN);var V=ar(),G=X.length;X.forEach(function(n,L){yrl(HV(n),function(){V.currentState==="wait"&&(c!==void 0&&c(L)&&V.currentState==="wait"?V.resolve(L):(--G,G===0&&V.resolve(NaN)))})}); +return V}; +jX8=function(X){return X.map(function(c){return HV(c)})}; +Za=function(X){var c=X.hours||0;var V=X.minutes||0,G=X.seconds||0;c=G+V*60+c*3600+(X.days||0)*86400+(X.weeks||0)*604800+(X.months||0)*2629800+(X.years||0)*31557600;c<=0?c={hours:0,minutes:0,seconds:0}:(X=c,c=Math.floor(X/3600),X%=3600,V=Math.floor(X/60),G=Math.floor(X%60),c={hours:c,minutes:V,seconds:G});var n=c.hours===void 0?0:c.hours;V=c.minutes===void 0?0:c.minutes;X=c.seconds===void 0?0:c.seconds;G=n>0;c=[];if(G){n=(new Intl.NumberFormat("en-u-nu-latn")).format(n);var L=["fr"],d="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(" "); +n="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(Q7)?n.replace(",","\u00a0"):L.includes(Q7)?n.replace(",","\u202f"):d.includes(Q7)?n.replace(",","."):n;c.push(n)}G=G===void 0?!1:G;V=(["af","be","lt"].includes(Q7)||G)&&V<10?HoU().format(V):(new Intl.NumberFormat("en-u-nu-latn")).format(V);c.push(V);V=HoU().format(X);c.push(V);V=":";"da fi id si sr sr-Latn".split(" ").includes(Q7)&&(V=".");return c.join(V)}; +HoU=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; +aT1=function(X,c){var V,G;X=((V=X.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(G=V.videoAuthorizationToken)==null?void 0:G.credentialTransferTokens)||[];for(V=0;Vc;X=V}else X=!1;return X}; +bol=function(X){X=X.split(Vl[2]);pF.k3(X,32);pF.l9(X,1);pF.k3(X,25);pF.bC(X,51);pF.l9(X,1);return X.join(Vl[2])}; +g.Ir=function(X,c){return X.Wb+"timedtext_video?ref=player&v="+c.videoId}; +g.tRt=function(X){var c=this;this.videoData=X;X={};this.J=(X.c1a=function(){var V=[];if(g.g1.isInitialized()){var G="";c.videoData&&c.videoData.Kw&&(G=c.videoData.Kw+("&r1b="+c.videoData.clientPlaybackNonce));var n={};G=(n.atr_challenge=G,n);DN("bg_v",void 0,"player_att");(G=Ruj(G))?(DN("bg_s",void 0,"player_att"),V.push("r1a="+G)):(DN("bg_e",void 0,"player_att"),V.push("r1c=2"))}else DN("bg_e",void 0,"player_att"),window.trayride||window.botguard?V.push("r1c=1"):V.push("r1c=4");V.push("r1d="+g.g1.getState()); +return V.join("&")},X.c6a=function(V){return"r6a="+(Number(V.c)^$y())},X.c6b=function(V){return"r6b="+(Number(V.c)^Number(g.qK("CATSTAT",0)))},X); +this.videoData&&this.videoData.Kw?this.B1=y8(this.videoData.Kw):this.B1={}}; +g.Oo8=function(X){if(X.videoData&&X.videoData.Kw){for(var c=[X.videoData.Kw],V=g.r(Object.keys(X.J)),G=V.next();!G.done;G=V.next())G=G.value,X.B1[G]&&X.J[G]&&(G=X.J[G](X.B1))&&c.push(G);return c.join("&")}return null}; +g.Na=function(X,c){mgl(X,{Hev:g.EZ(c.experiments,"bg_vm_reinit_threshold"),cspNonce:c.cspNonce,Wb:c.Wb||""})}; +lTl=function(){var X=XMLHttpRequest.prototype.fetch;return!!X&&X.length===3}; +UM=function(X){X=X===void 0?2592E3:X;if(X>0&&!(LoU()>(0,g.ta)()-X*1E3))return 0;X=g.Il("yt-player-quality");if(typeof X==="string"){if(X=g.Pb[X],X>0)return X}else if(X instanceof Object)return X.quality;return 0}; +T9=function(){var X=g.Il("yt-player-proxima-pref");return X==null?null:X}; +MRj=function(){var X=g.Il("yt-player-quality");if(X instanceof Object&&X.quality&&X.previousQuality){if(X.quality>X.previousQuality)return 1;if(X.quality0&&c[0]?X.getAutoplayPolicy(c[0]):X.getAutoplayPolicy("mediaelement");if(Ug1[V])return Ug1[V]}}catch(G){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; +CF=function(X){return X.pJ||X.Tx||X.mutedAutoplay}; +TGl=function(X,c){return CF(X)?c!==1&&c!==2&&c!==0?"AUTOPLAY_STATUS_UNAVAILABLE":X.RQ?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; +u1s=function(X,c,V){var G=c.j();X.thirdParty||(X.thirdParty={});G.ancestorOrigins&&(X.thirdParty.embeddedPlayerContext=Object.assign({},X.thirdParty.embeddedPlayerContext,{ancestorOrigins:G.ancestorOrigins}));G.S("embeds_enable_autoplay_and_visibility_signals")&&(G.hJ!=null&&(X.thirdParty.embeddedPlayerContext=Object.assign({},X.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(G.hJ)})),G.Rg&&(X.thirdParty.embeddedPlayerContext=Object.assign({},X.thirdParty.embeddedPlayerContext,{visibilityFractionSource:G.Rg})), +X.thirdParty.embeddedPlayerContext=Object.assign({},X.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:sM(),autoplayIntended:CF(c),autoplayStatus:TGl(c,V)}))}; +BG2=function(X,c){Yw(X,2,c.qR,Da,3);Yw(X,3,c.zW,PLs,3);i4(X,4,c.onesieUstreamerConfig);i4(X,9,c.nW);Yw(X,10,c.Up,Sh,3);Yw(X,15,c.reloadPlaybackParams,zuO,3)}; +sXD=function(X,c){Yw(X,1,c.formatId,iI,3);DB(X,2,c.startTimeMs);DB(X,3,c.durationMs);DB(X,4,c.JJ);DB(X,5,c.Ce);Yw(X,9,c.YW2,Kcl,3);Yw(X,11,c.PPR,qa,1);Yw(X,12,c.oI,qa,1)}; +CLL=function(X,c){qC(X,1,c.videoId);DB(X,2,c.lmt)}; +Kcl=function(X,c){if(c.vy)for(var V=0;V>31));DB(X,16,c.u2l);DB(X,17,c.detailedNetworkType);DB(X,18,c.Wv);DB(X,19,c.N7);DB(X,21,c.D$y);DB(X,23,c.Cb);DB(X,28,c.k5);DB(X,29,c.lOR);DB(X,34,c.visibility);V=c.playbackRate;if(V!==void 0){var G=new ArrayBuffer(4);(new Float32Array(G))[0]=V;V=(new Uint32Array(G))[0];if(V!==void 0)for(C2(X,285),sn(X,4),G=0;G<4;)X.view.setUint8(X.pos,V&255),V>>=8,X.pos+=1,G+=1}DB(X,36,c.KD); +Yw(X,38,c.mediaCapabilities,io2,3);DB(X,39,c.MOW);DB(X,40,c.EE);DB(X,44,c.playerState);SI(X,46,c.zn);DB(X,48,c.Oa);DB(X,50,c.fu);DB(X,51,c.Wq);DB(X,54,c.uA);SI(X,56,c.zov);DB(X,57,c.Hv);SI(X,58,c.vz);DB(X,59,c.xR);DB(X,60,c.vO);SI(X,61,c.isPrefetch);DB(X,62,c.Rb);i4(X,63,c.sabrLicenseConstraint);DB(X,64,c.xEy);DB(X,66,c.mEy);DB(X,67,c.q82);DB(X,68,c.byl);qC(X,69,c.audioTrackId);SI(X,71,c.lG);Yw(X,72,c.P_7,SZD,1);DB(X,74,c.Xz);DB(X,75,c.Fz)}; +io2=function(X,c){if(c.videoFormatCapabilities)for(var V=0;V>31));qC(X,2,c.message)}; +yCl=function(X,c){DB(X,1,c.clientState);Yw(X,2,c.OF2,LjD,1)}; +nal=function(X,c){i4(X,1,c.VXO);Yw(X,2,c.z8O,df1,3);Yw(X,3,c.coldStartInfo,yCl,3)}; +Ge1=function(X,c){DB(X,1,c.type);i4(X,2,c.value)}; +Vw2=function(X,c){qC(X,1,c.hl);qC(X,12,c.deviceMake);qC(X,13,c.deviceModel);DB(X,16,c.clientName);qC(X,17,c.clientVersion);qC(X,18,c.osName);qC(X,19,c.osVersion)}; +hnD=function(X,c){qC(X,1,c.name);qC(X,2,c.value)}; +ACD=function(X,c){qC(X,1,c.url);if(c.TW)for(var V=0;V1&&(this.Z=X[1]==="2")}; +L5=function(X,c,V,G,n){this.G=X;this.J=c;this.U=V;this.reason=G;this.JX=n===void 0?0:n}; +g.dV=function(X,c,V,G){return new L5(g.Pb[X]||0,g.Pb[c]||0,V,G)}; +h7=function(X){if(yQ&&X.JX)return!1;var c=g.Pb.auto;return X.G===c&&X.J===c}; +YW=function(X){return A7[X.J||X.G]||"auto"}; +ss8=function(X,c){c=g.Pb[c];return X.G<=c&&(!X.J||X.J>=c)}; +jH=function(X){return"["+X.G+"-"+X.J+", override: "+(X.U+", reason: "+X.reason+"]")}; +H4=function(X,c,V){this.videoInfos=X;this.J=c;this.audioTracks=[];if(this.J){X=new Set;V==null||V({ainfolen:this.J.length});c=g.r(this.J);for(var G=c.next();!G.done;G=c.next())if(G=G.value,!G.zF||X.has(G.zF.id)){var n=void 0,L=void 0,d=void 0;(d=V)==null||d({atkerr:!!G.zF,itag:G.itag,xtag:G.J,lang:((n=G.zF)==null?void 0:n.name)||"",langid:((L=G.zF)==null?void 0:L.id)||""})}else n=new g.n5(G.id,G.zF),X.add(G.zF.id),this.audioTracks.push(n);V==null||V({atklen:this.audioTracks.length})}}; +aw=function(){g.I.apply(this,arguments);this.J=null}; +ikw=function(X,c,V,G,n,L,d){if(X.J)return X.J;var h={},A=new Set,Y={};if($W(G)){for(var H in G.J)G.J.hasOwnProperty(H)&&(X=G.J[H],Y[X.info.VK]=[X.info]);return Y}H=CaD(c,G,h);L&&n({aftsrt:W4(H)});for(var a={},W=g.r(Object.keys(H)),w=W.next();!w.done;w=W.next()){w=w.value;for(var F=g.r(H[w]),Z=F.next();!Z.done;Z=F.next()){Z=Z.value;var v=Z.itag,e=void 0,m=w+"_"+(((e=Z.video)==null?void 0:e.fps)||0);a.hasOwnProperty(m)?a[m]===!0?Y[w].push(Z):h[v]=a[m]:(e=wV(c,Z,V,G.isLive,A),e!==!0?(d.add(w),h[v]=e, +e==="disablevp9hfr"&&(a[m]="disablevp9hfr")):(Y[w]=Y[w]||[],Y[w].push(Z),a[m]=!0))}}L&&n({bfflt:W4(Y)});for(var t in Y)Y.hasOwnProperty(t)&&(G=t,Y[G]&&Y[G][0].EN()&&(Y[G]=Y[G],Y[G]=DfU(c,Y[G],h),Y[G]=SFS(Y[G],h)));L&&Object.keys(h).length>0&&n({rjr:bo(h)});c=g.r(A.values());for(G=c.next();!G.done;G=c.next())(G=V.G.get(G.value))&&--G.BB;L&&n({aftflt:W4(Y)});X.J=g.xb(Y,function(f){return!!f.length}); +return X.J}; +Xbl=function(X,c,V,G,n,L,d,h){h=h===void 0?!1:h;if(c.gm&&d&&d.length>1&&!(c.xR>0||c.T)){for(var A=c.G||!!n,Y=A&&c.Ly?L:void 0,H=CaD(c,G),a=[],W=[],w={},F=0;F0&&W&&n&&(H=[d,V],v=n.concat(W).filter(function(e){return e})); +if(v.length&&!c.vz){rV(v,H);if(A){A=[];c=g.r(v);for(G=c.next();!G.done;G=c.next())A.push(G.value.itag);L({hbdfmt:A.join(".")})}return p1(new H4(v,X,Y))}v=Amj(c);v=g.Ct(v,h);if(!v){if(a[d])return L=a[d],rV(L),p1(new H4(L,X,Y));A&&L({novideo:1});return f1()}c.Bd&&(v==="1"||v==="1h")&&a[V]&&(d=QQ(a[v]),H=QQ(a[V]),H>d?v=V:H===d&&Y38(a[V])&&(v=V));v==="9"&&a.h&&QQ(a.h)>QQ(a["9"])&&(v="h");c.HP&&G.isLive&&v==="("&&a.H&&QQ(a["("])<1440&&(v="H");A&&L({vfmly:Z8(v)});c=a[v];if(!c.length)return A&&L({novfmly:Z8(v)}), +f1();rV(c);return p1(new H4(c,X,Y))}; +Vs8=function(X,c){var V=!(!X.m&&!X.M),G=!(!X.mac3&&!X.MAC3),n=!(!X.meac3&&!X.MEAC3);X=!(!X.i&&!X.I);c.Wg=X;return V||G||n||X}; +Y38=function(X){X=g.r(X);for(var c=X.next();!c.done;c=X.next())if(c=c.value,c.itag&&jdO.has(c.itag))return!0;return!1}; +Z8=function(X){switch(X){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return X}}; +W4=function(X){var c=[],V;for(V in X)if(X.hasOwnProperty(V)){var G=V;c.push(Z8(G));G=g.r(X[G]);for(var n=G.next();!n.done;n=G.next())c.push(n.value.itag)}return c.join(".")}; +cmt=function(X,c,V,G,n,L){var d={},h={};g.Zu(c,function(A,Y){A=A.filter(function(H){var a=H.itag;if(!H.r$)return h[a]="noenc",!1;if(L.NE&&H.VK==="(h"&&L.hX)return h[a]="lichdr",!1;if(!X.U&&H.VK==="1e")return h[a]="noav1enc",!1;if(H.VK==="("||H.VK==="(h"){if(X.Z&&V&&V.flavor==="widevine"){var W=H.mimeType+"; experimental=allowed";(W=!!H.r$[V.flavor]&&!!V.J[W])||(h[a]=H.r$[V.flavor]?"unspt":"noflv");return W}if(!xW(X,v4.CRYPTOBLOCKFORMAT)&&!X.wy||X.NW)return h[a]=X.NW?"disvp":"vpsub",!1}return V&&H.r$[V.flavor]&& +V.J[H.mimeType]?!0:(h[a]=V?H.r$[V.flavor]?"unspt":"noflv":"nosys",!1)}); +A.length&&(d[Y]=A)}); +G&&Object.entries(h).length&&n({rjr:bo(h)});return d}; +SFS=function(X,c){var V=tk(X,function(G,n){return n.video.fps>32?Math.min(G,n.video.width):G},Infinity); +V32||G.video.widthX.B)return"max"+X.B;if(X.yK&&c.VK==="h"&&c.video&&c.video.J>1080)return"blkhigh264";if(c.VK==="(h"&&!V.D)return"enchdr";if((G===void 0?0:G)&&cZ(c)&&!X.QK)return"blk51live";if((c.VK==="MAC3"||c.VK==="mac3")&&!X.X)return"blkac3";if((c.VK==="MEAC3"||c.VK==="meac3")&&!X.Z)return"blkeac3";if(c.VK==="M"||c.VK==="m")return"blkaac51";if((c.VK==="so"|| +c.VK==="sa")&&!X.A7)return"blkamb";if(!X.NE&&xAs(c)&&(!V.U||c.VK!=="1e"))return"cbc";if(!V.U&&xAs(c)&&c.VK==="1e")return"cbcav1";if((c.VK==="i"||c.VK==="I")&&!X.EM)return"blkiamf";if(c.itag==="774"&&!X.NW)return"blkouh";var L,d;if(X.fS&&(c.VK==="1"||c.VK==="1h"||V.U&&c.VK==="1e")&&((L=c.video)==null?0:L.J)&&((d=c.video)==null?void 0:d.J)>X.fS)return"av1cap";if((G=V.G.get(c.VK))&&G.BB>0)return n.add(c.VK),"byerr";var h;if((h=c.video)==null?0:h.fps>32){if(!V.Pl&&!xW(V,v4.FRAMERATE))return"capHfr";if(X.T_&& +c.video.J>=4320)return"blk8khfr";if(DO(c)&&X.gs&&c.r$&&c.video.J>=1440)return"disablevp9hfr"}if(X.JX&&c.JX>X.JX)return"ratecap";X=Hps(V,c);return X!==!0?X:!0}; +rV=function(X,c){c=c===void 0?[]:c;g.Y5(X,function(V,G){var n=G.JX-V.JX;if(!V.EN()||!G.EN())return n;var L=G.video.height*G.video.width-V.video.height*V.video.width;!L&&c&&c.length>0&&(V=c.indexOf(V.VK)+1,G=c.indexOf(G.VK)+1,L=V===0||G===0?G||-1:V-G);L||(L=n);return L})}; +g.kW=function(X,c){this.G=X;this.X=c===void 0?!1:c;this.U=this.path=this.scheme=Vl[2];this.J={};this.url=Vl[2]}; +eH=function(X){ow(X);return X.U}; +J7=function(X){return X.G?X.G.startsWith(Vl[16]):X.scheme===Vl[16]}; +aOS=function(X){ow(X);return g.kb(X.J,function(c){return c!==null})}; +mI=function(X){ow(X);var c=decodeURIComponent(X.get(Vl[17])||Vl[2]).split(Vl[18]);return X.path===Vl[19]&&c.length>1&&!!c[1]}; +Rw=function(X,c){c=c===void 0?!1:c;ow(X);if(X.path!==Vl[19]){var V=X.clone();V.set(Vl[20],Vl[21]);return V}var G=X.Yc();V=new g.$s(G);var n=X.get(Vl[22]),L=decodeURIComponent(X.get(Vl[17])||Vl[2]).split(Vl[18]);if(n&&L&&L.length>1&&L[1])return G=V.J,X=G.replace(/^[^.]*/,Vl[2]),g.w6(V,(G.indexOf(Vl[23])===0?Vl[23]:Vl[24])+n+Vl[25]+L[1]+X),V=new g.kW(V.toString()),V.set(Vl[26],Vl[21]),V;if(c)return V=X.clone(),V.set(Vl[26],Vl[21]),V;n=V.J.match(Vl[27]);V.J.match(Vl[28])?(g.w6(V,Vl[29]),G=V.toString()): +V.J.match(Vl[30])?(g.w6(V,Vl[31]),G=V.toString()):(V=H38(G),Lk(V)&&(G=V));V=new g.kW(G);V.set(Vl[32],Vl[21]);n&&V.set(Vl[33],Vl[34]);return V}; +ow=function(X){if(X.G){if(!Lk(X.G)&&!X.G.startsWith(Vl[16]))throw new g.SP(Vl[35],X.G);var c=g.v0(X.G);X.scheme=c.Z;X.U=c.J+(c.U!=null?Vl[36]+c.U:Vl[2]);var V=c.G;if(V.startsWith(Vl[19]))X.path=Vl[19],V=V.slice(14);else if(V.startsWith(Vl[37]))X.path=Vl[37],V=V.slice(13);else if(V.startsWith(Vl[38])){var G=V.indexOf(Vl[39],12),n=V.indexOf(Vl[39],G+1);G>0&&n>0?(X.path=V.slice(0,n),V=V.slice(n+1)):(X.path=V,V=Vl[2])}else X.path=V,V=Vl[2];G=X.J;X.J=$_2(V);Object.assign(X.J,WTl(c.X.toString()));Object.assign(X.J, +G);X.J.file===Vl[40]&&(delete X.J.file,X.path+=Vl[41]);X.G=Vl[2];X.url=Vl[2];X.X&&(c=Kh1(),ow(X),V=X.J[c]||null)&&(V=wbU[0](V),X.set(c,V),X.X||Kh1(Vl[2]))}}; +FTj=function(X){ow(X);var c=X.scheme+(X.scheme?Vl[42]:Vl[43])+X.U+X.path;if(aOS(X)){var V=[];g.Zu(X.J,function(G,n){G!==null&&V.push(n+Vl[44]+G)}); +c+=Vl[45]+V.join(Vl[46])}return c}; +$_2=function(X){X=X.split(Vl[39]);var c=0;X[0]||c++;for(var V={};c0?Eql(c,G.slice(0,n),G.slice(n+1)):G&&(c[G]=Vl[2])}return c}; +Eql=function(X,c,V){if(c===Vl[47]){var G;(G=V.indexOf(Vl[44]))>=0?(c=Vl[48]+V.slice(0,G),V=V.slice(G+1)):(G=V.indexOf(Vl[49]))>=0&&(c=Vl[48]+V.slice(0,G),V=V.slice(G+3))}X[c]=V}; +bW=function(X){var c=g.T(X,rm2)||X.signatureCipher;X={Vj:!1,Ip:Vl[2],y4:Vl[2],s:Vl[2]};if(!c)return X;c=y8(c);X.Vj=!0;X.Ip=c.url;X.y4=c.sp;X.s=c.s;return X}; +t7=function(X,c,V,G,n,L,d,h,A){this.Bl=X;this.startTime=c;this.duration=V;this.ingestionTime=G;this.sourceURL=n;this.iH=A;this.endTime=c+V;this.J=d||0;this.range=L||null;this.pending=h||!1;this.iH=A||null}; +g.Om=function(){this.segments=[];this.J=null;this.G=!0;this.U=""}; +QdU=function(X,c){if(c>X.q6())X.segments=[];else{var V=sH(X.segments,function(G){return G.Bl>=c},X); +V>0&&X.segments.splice(0,V)}}; +lW=function(X,c,V,G,n){n=n===void 0?!1:n;this.data=X;this.offset=c;this.size=V;this.type=G;this.J=(this.G=n)?0:8;this.dataOffset=this.offset+this.J}; +M2=function(X){var c=X.data.getUint8(X.offset+X.J);X.J+=1;return c}; +gV=function(X){var c=X.data.getUint16(X.offset+X.J);X.J+=2;return c}; +f5=function(X){var c=X.data.getInt32(X.offset+X.J);X.J+=4;return c}; +p5=function(X){var c=X.data.getUint32(X.offset+X.J);X.J+=4;return c}; +Iw=function(X){var c=X.data;var V=X.offset+X.J;c=c.getUint32(V)*4294967296+c.getUint32(V+4);X.J+=8;return c}; +N2=function(X,c){c=c===void 0?NaN:c;if(isNaN(c))var V=X.size;else for(V=X.J;V1?Math.ceil(n*c):Math.floor(n*c))}X.skip(1);V=M2(X)<<16|gV(X);if(V&256){G=V&1;n=V&4;var L=V&512,d=V&1024,h=V&2048;V=p5(X);G&&X.skip(4);n&&X.skip(4);G=(L?4:0)+(d?4:0)+(h?4:0);for(n=0;n1?Math.ceil(d*c):Math.floor(d*c)),X.skip(G)}}}; +C5=function(X){X=new DataView(X.buffer,X.byteOffset,X.byteLength);return(X=g.K5(X,0,1836476516))?g.sm(X):NaN}; +ts2=function(X){var c=g.K5(X,0,1937011556);if(!c)return null;c=D8(X,c.dataOffset+8,1635148593)||D8(X,c.dataOffset+8,1635135537);if(!c)return null;var V=D8(X,c.dataOffset+78,1936995172),G=D8(X,c.dataOffset+78,1937126244);if(!G)return null;c=null;if(V)switch(V.skip(4),M2(V)){default:c=0;break;case 1:c=2;break;case 2:c=1;break;case 3:c=255}var n=V=null,L=null;if(G=D8(X,G.dataOffset,1886547818)){var d=D8(X,G.dataOffset,1886546020),h=D8(X,G.dataOffset,2037673328);if(!h&&(h=D8(X,G.dataOffset,1836279920), +!h))return null;d&&(d.skip(4),V=f5(d)/65536,L=f5(d)/65536,n=f5(d)/65536);X=Zpj(h);X=new DataView(X.buffer,X.byteOffset+8,X.byteLength-8);return new RBt(c,V,L,n,X)}return null}; +D8=function(X,c,V){for(;SH(X,c);){var G=iW(X,c);if(G.type===V)return G;c+=G.size}return null}; +g.K5=function(X,c,V){for(;SH(X,c);){var G=iW(X,c);if(G.type===V)return G;c=q2(G.type)?c+8:c+G.size}return null}; +g.XI=function(X){if(X.data.getUint8(X.dataOffset)){var c=X.data;X=X.dataOffset+4;c=c.getUint32(X)*4294967296+c.getUint32(X+4)}else c=X.data.getUint32(X.dataOffset+4);return c}; +iW=function(X,c){var V=X.getUint32(c),G=X.getUint32(c+4);return new lW(X,c,V,G)}; +g.sm=function(X){var c=X.data.getUint8(X.dataOffset)?20:12;return X.data.getUint32(X.dataOffset+c)}; +OpL=function(X){X=new lW(X.data,X.offset,X.size,X.type,X.G);var c=M2(X);X.skip(7);var V=p5(X);if(c===0){c=p5(X);var G=p5(X)}else c=Iw(X),G=Iw(X);X.skip(2);for(var n=gV(X),L=[],d=[],h=0;h122)return!1}return!0}; +q2=function(X){return X===1701082227||X===1836019558||X===1836019574||X===1835297121||X===1835626086||X===1937007212||X===1953653094||X===1953653099||X===1836475768}; +lO2=function(X){X.skip(4);return{jP2:N2(X,0),value:N2(X,0),timescale:p5(X),HFl:p5(X),RmK:p5(X),id:p5(X),B2:N2(X),offset:X.offset}}; +g.Ms8=function(X){var c=D8(X,0,1701671783);if(!c)return null;var V=lO2(c),G=V.jP2;V=B4(V.B2);if(X=D8(X,c.offset+c.size,1701671783))if(X=lO2(X),X=B4(X.B2),V&&X){c=g.r(Object.keys(X));for(var n=c.next();!n.done;n=c.next())n=n.value,V[n]=X[n]}return V?new P4(V,G):null}; +ct=function(X,c){for(var V=D8(X,0,c);V;){var G=V;G.type=1936419184;G.data.setUint32(G.offset+4,1936419184);V=D8(X,V.offset+V.size,c)}}; +g.VH=function(X,c){for(var V=0,G=[];SH(X,V);){var n=iW(X,V);n.type===c&&G.push(n);V=q2(n.type)?V+8:V+n.size}return G}; +gqw=function(X,c){var V=g.K5(X,0,1937011556),G=g.K5(X,0,1953654136);if(!V||!G||X.getUint32(V.offset+12)>=2)return null;var n=new DataView(c.buffer,c.byteOffset,c.length),L=g.K5(n,0,1937011556);if(!L)return null;c=n.getUint32(L.dataOffset+8);G=n.getUint32(L.dataOffset+12);if(G!==1701733217&&G!==1701733238)return null;G=new x_8(X.byteLength+c);Um(G,X,0,V.offset+12);G.data.setInt32(G.offset,2);G.offset+=4;Um(G,X,V.offset+16,V.size-16);Um(G,n,n.byteOffset+L.dataOffset+8,c);Um(G,X,V.offset+V.size,X.byteLength- +(V.offset+V.size));V=g.r([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(n=V.next();!n.done;n=V.next())n=g.K5(X,0,n.value),G.data.setUint32(n.offset,n.size+c);X=g.K5(G.data,0,1953654136);G.data.setUint32(X.offset+16,2);return G.data}; +fO1=function(X){var c=g.K5(X,0,1937011556);if(!c)return null;var V=X.getUint32(c.dataOffset+12);if(V!==1701733217&&V!==1701733238)return null;c=D8(X,c.offset+24+(V===1701733217?28:78),1936289382);if(!c)return null;V=D8(X,c.offset+8,1935894637);if(!V||X.getUint32(V.offset+12)!==1667392371)return null;c=D8(X,c.offset+8,1935894633);if(!c)return null;c=D8(X,c.offset+8,1952804451);if(!c)return null;V=new Uint8Array(16);for(var G=0;G<16;G++)V[G]=X.getInt8(c.offset+16+G);return V}; +G1=function(X,c){this.J=X;this.pos=0;this.start=c||0}; +n8=function(X){return X.pos>=X.J.byteLength}; +AQ=function(X,c,V){var G=new G1(V);if(!L8(G,X))return!1;G=d_(G);if(!yH(G,c))return!1;for(X=0;c;)c>>>=8,X++;c=G.start+G.pos;var n=hQ(G,!0);G=X+(G.start+G.pos-c)+n;G=G>9?pb2(G-9,8):pb2(G-2,1);X=c-X;V.setUint8(X++,236);for(c=0;cV;n++)V=V*256+$i(X),G*=128;return c?V-G:V}; +j$=function(X){var c=hQ(X,!0);X.pos+=c}; +U_O=function(X){if(!yH(X,440786851,!0))return null;var c=X.pos;hQ(X,!1);var V=hQ(X,!0)+X.pos-c;X.pos=c+V;if(!yH(X,408125543,!1))return null;hQ(X,!0);if(!yH(X,357149030,!0))return null;var G=X.pos;hQ(X,!1);var n=hQ(X,!0)+X.pos-G;X.pos=G+n;if(!yH(X,374648427,!0))return null;var L=X.pos;hQ(X,!1);var d=hQ(X,!0)+X.pos-L,h=new Uint8Array(V+12+n+d),A=new DataView(h.buffer);h.set(new Uint8Array(X.J.buffer,X.J.byteOffset+c,V));A.setUint32(V,408125543);A.setUint32(V+4,33554431);A.setUint32(V+8,4294967295); +h.set(new Uint8Array(X.J.buffer,X.J.byteOffset+G,n),V+12);h.set(new Uint8Array(X.J.buffer,X.J.byteOffset+L,d),V+12+n);return h}; +Wt=function(X){var c=X.pos;X.pos=0;var V=1E6;L8(X,[408125543,357149030,2807729])&&(V=Yi(X));X.pos=c;return V}; +Tpt=function(X,c){var V=X.pos;X.pos=0;if(X.J.getUint8(X.pos)!==160&&!w_(X)||!yH(X,160))return X.pos=V,NaN;hQ(X,!0);var G=X.pos;if(!yH(X,161))return X.pos=V,NaN;hQ(X,!0);$i(X);var n=$i(X)<<8|$i(X);X.pos=G;if(!yH(X,155))return X.pos=V,NaN;G=Yi(X);X.pos=V;return(n+G)*c/1E9}; +w_=function(X){if(!uCU(X)||!yH(X,524531317))return!1;hQ(X,!0);return!0}; +uCU=function(X){if(X.AU()){if(!yH(X,408125543))return!1;hQ(X,!0)}return!0}; +L8=function(X,c){for(var V=0;V0){var G=WTl(c.substring(V+1));g.Zu(G,function(n,L){this.set(L,n)},X); +c=c.substring(0,V)}c=$_2(c);g.Zu(c,function(n,L){this.set(L,n)},X)}; +zBj=function(X){var c=X.lF.Yc(),V=[];g.Zu(X.J,function(n,L){V.push(L+"="+n)}); +if(!V.length)return c;var G=V.join("&");X=aOS(X.lF)?"&":"?";return c+X+G}; +EC=function(X,c){var V=new g.kW(c);(c=V.get("req_id"))&&X.set("req_id",c);g.Zu(X.J,function(G,n){V.set(n,null)}); +return V}; +Bpj=function(){this.X=this.U=this.J=this.timedOut=this.started=this.Z=this.G=0}; +r_=function(X){X.Z=(0,g.ta)();X.started=0;X.timedOut=0;X.J=0}; +QH=function(X,c){var V=X.started+X.J*4;c&&(V+=X.U);V=Math.max(0,V-3);return Math.pow(1.6,V)}; +ZY=function(X,c){X[c]||(X[c]=new Bpj);return X[c]}; +xi=function(X){this.C=this.D=this.Z=this.G=0;this.T=this.B=!1;this.J=X;this.U=X.clone()}; +KTL=function(X,c,V){if(J7(X.J))return!1;var G=ZY(V,eH(X.J));if(G.timedOut<1&&G.J<1)return!1;G=G.timedOut+G.J;X=vt(X,c);V=ZY(V,eH(X));return V.timedOut+V.J+01?c=c.xo:(V=ZY(V,oq(X,X.KY(c,V),c)),c=Math.max(X.Z,V.timedOut)+c.RQ*(X.G-X.Z)+.25*X.D,c=c>3?1E3*Math.pow(1.6,c-3):0);return c===0?!0:X.C+c<(0,g.ta)()}; +sds=function(X,c,V){X.J.set(c,V);X.U.set(c,V);X.X&&X.X.set(c,V)}; +Cos=function(X,c,V,G,n){++X.G;c&&++X.Z;eH(V.lF).startsWith("redirector.")&&(X.J=X.U.clone(),delete X.X,G.TD&&delete n[eH(X.J)])}; +JQ=function(X){return X?(X.itag||"")+";"+(X.lmt||0)+";"+(X.xtags||""):""}; +mK=function(X,c,V,G){this.initRange=V;this.indexRange=G;this.J=null;this.U=!1;this.B=0;this.X=this.rL=this.G=null;this.info=c;this.uB=new xi(X)}; +Rq=function(X,c){this.start=X;this.end=c;this.length=c-X+1}; +b$=function(X){X=X.split("-");var c=Number(X[0]),V=Number(X[1]);if(!isNaN(c)&&!isNaN(V)&&X.length===2&&(X=new Rq(c,V),!isNaN(X.start)&&!isNaN(X.end)&&!isNaN(X.length)&&X.length>0))return X}; +tQ=function(X,c){return new Rq(X,X+c-1)}; +D_D=function(X){return X.end==null?{start:String(X.start)}:{start:String(X.start),end:String(X.end)}}; +OC=function(X){if(!X)return new Rq(0,0);var c=Number(X.start);X=Number(X.end);if(!isNaN(c)&&!isNaN(X)&&(c=new Rq(c,X),c.length>0))return c}; +l$=function(X,c,V,G,n,L,d,h,A,Y,H,a){G=G===void 0?"":G;this.type=X;this.J=c;this.range=V;this.source=G;this.jU=H;this.clipId=a===void 0?"":a;this.C=[];this.D="";this.Bl=-1;this.G_=this.A7=0;this.D=G;this.Bl=n>=0?n:-1;this.startTime=L||0;this.duration=d||0;this.G=h||0;this.U=A>=0?A:this.range?this.range.length:NaN;this.Z=this.range?this.G+this.U===this.range.length:Y===void 0?!!this.U:Y;this.range?(this.X=this.startTime+this.duration*this.G/this.range.length,this.T=this.duration*this.U/this.range.length, +this.B=this.X+this.T):S3S(this)}; +S3S=function(X){X.X=X.startTime;X.T=X.duration;X.B=X.X+X.T}; +ips=function(X,c,V){var G=!(!c||c.J!==X.J||c.type!==X.type||c.Bl!==X.Bl);return V?G&&!!c&&(X.range&&c.range?c.range.end===X.range.end:c.range===X.range)&&c.G+c.U===X.G+X.U:G}; +MQ=function(X){return X.type===1||X.type===2}; +g_=function(X){return X.type===3||X.type===6}; +f8=function(X,c){return X.J===c.J?X.range&&c.range?X.range.start+X.G+X.U===c.range.start+c.G:X.Bl===c.Bl?X.G+X.U===c.G:X.Bl+1===c.Bl&&c.G===0&&X.Z:!1}; +XZO=function(X,c){return X.Bl!==c.Bl&&c.Bl!==X.Bl+1||X.type!==c.type?!1:f8(X,c)?!0:Math.abs(X.X-c.X)<=1E-6&&X.Bl===c.Bl?!1:q3w(X,c)}; +q3w=function(X,c){return f8(X,c)||Math.abs(X.B-c.X)<=1E-6||X.Bl+1===c.Bl&&c.G===0&&X.Z?!0:!1}; +p8=function(X){return X.Bl+(X.Z?1:0)}; +c8U=function(X){X.length===1||g.b0(X,function(V){return!!V.range}); +for(var c=1;c=c.range.start+c.G&&X.range.start+X.G+X.U<=c.range.start+c.G+c.U:X.Bl===c.Bl&&X.G>=c.G&&(X.G+X.U<=c.G+c.U||c.Z)}; +hbl=function(X,c){return X.J!==c.J?!1:X.type===4&&c.type===3&&X.J.tb()?(X=X.J.SE(X),lF(X,function(V){return hbl(V,c)})):X.Bl===c.Bl&&!!c.U&&c.G+c.U>X.G&&c.G+c.U<=X.G+X.U}; +NQ=function(X,c){var V=c.Bl;X.D="updateWithSegmentInfo";X.Bl=V;if(X.startTime!==c.startTime||X.duration!==c.duration)X.startTime=c.startTime+X.A7,X.duration=c.duration,S3S(X)}; +UC=function(X,c){var V=this;this.KS=X;this.X=this.J=null;this.Z=this.Hb=NaN;this.KY=this.requestId=null;this.F8={a2O:function(){return V.range}}; +this.uB=X[0].J.uB;this.G=c||"";this.KS[0].range&&this.KS[0].U>0&&(VUU(X)?(this.range=c8U(X),this.U=this.range.length):(this.range=this.KS[this.KS.length-1].range,this.U=Gzl(X)))}; +T1=function(X){return!MQ(X.KS[X.KS.length-1])}; +u$=function(X){return X.KS[X.KS.length-1].type===4}; +g.Pt=function(X,c,V){V=X.KY===null?X.uB.KY(c,V,X.KS[0].type):X.KY;if(X.J){c=V?Rw(X.J,c.Jc):X.J;var G=new FI(c);G.get("alr")||G.set("alr","yes");X.G&&Pol(G,X.G)}else/http[s]?:\/\//.test(X.G)?G=new FI(new g.kW(X.G)):(G=ki(X.uB,V,c),X.G&&Pol(G,X.G));(c=X.range)?G.set("range",c.toString()):X.KS[0].J.ju()&&X.KS.length===1&&X.KS[0].G&&G.set("range",X.KS[0].G+"-");X.requestId&&G.set("req_id",X.requestId);isNaN(X.Hb)||G.set("headm",X.Hb.toString());isNaN(X.Z)||G.set("mffa",X.Z+"ms");X.urlParams&&g.Zu(X.urlParams, +function(n,L){G.set(L,n)}); +return G}; +A8D=function(X){if(X.range)return X.U;X=X.KS[0];return Math.round(X.T*X.J.info.JX)}; +Yo8=function(X,c){return Math.max(0,X.KS[0].X-c)}; +z1=function(X,c,V,G,n,L){L=L===void 0?0:L;mK.call(this,X,c,G,void 0);this.Z=V;this.MY=L;this.index=n||new g.Om}; +jQt=function(X,c,V,G,n){this.Bl=X;this.startSecs=c;this.VL=V;this.J=G||NaN;this.G=n||NaN}; +Bt=function(X,c,V){for(;X;X=X.parentNode)if(X.attributes&&(!V||X.nodeName===V)){var G=X.getAttribute(c);if(G)return G}return""}; +K8=function(X,c){for(;X;X=X.parentNode){var V=X.getElementsByTagName(c);if(V.length>0)return V[0]}return null}; +Hut=function(X){if(!X)return 0;var c=X.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return c?(Number(c[2])|0)*3600+(Number(c[4])|0)*60+(Number(c[6])|0):Number(X)|0}; +aGS=function(X){return X.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?X+"Z":X}; +sC=function(){this.J=[];this.G=null;this.B=0;this.U=[];this.Z=!1;this.D="";this.X=-1}; +$18=function(X){var c=X.U;X.U=[];return c}; +W$l=function(){this.X=[];this.J=null;this.G={};this.U={}}; +r8j=function(X,c){var V=[];c=Array.from(c.getElementsByTagName("SegmentTimeline"));c=g.r(c);for(var G=c.next();!G.done;G=c.next()){G=G.value;var n=G.parentNode.parentNode,L=null;n.nodeName==="Period"?L=wZ8(X):n.nodeName==="AdaptationSet"?(n=n.getAttribute("id")||n.getAttribute("mimetype")||"",L=F$O(X,n)):n.nodeName==="Representation"&&(n=n.getAttribute("id")||"",L=EK8(X,n));if(L==null)return;L.update(G);g.Go(V,$18(L))}g.Go(X.X,V);GGO(X.X,function(d){return d.startSecs*1E3+d.J})}; +QQs=function(X){X.J&&(X.J.J=[]);g.Zu(X.G,function(c){c.J=[]}); +g.Zu(X.U,function(c){c.J=[]})}; +wZ8=function(X){X.J||(X.J=new sC);return X.J}; +F$O=function(X,c){X.G[c]||(X.G[c]=new sC);return X.G[c]}; +EK8=function(X,c){X.U[c]||(X.U[c]=new sC);return X.U[c]}; +DY=function(X){var c=X===void 0?{}:X;X=c.MY===void 0?0:c.MY;var V=c.e7===void 0?!1:c.e7;var G=c.GP===void 0?0:c.GP;var n=c.uH===void 0?0:c.uH;var L=c.HE===void 0?Infinity:c.HE;var d=c.EG===void 0?0:c.EG;var h=c.bf===void 0?!1:c.bf;c=c.vk===void 0?!1:c.vk;g.Om.call(this);this.fg=this.sW=-1;this.SL=X;this.GP=G;this.e7=V;this.uH=n;this.HE=L;this.EG=d;((this.bf=h)||isFinite(L)&&this.HE>0)&&V&&C8&&(this.G=!1,this.U="postLive");this.vk=c}; +S$=function(X,c){return AE(X.segments,function(V){return c-V.Bl})}; +i$=function(X,c,V){V=V===void 0?{}:V;z1.call(this,X,c,"",void 0,void 0,V.MY||0);this.index=new DY(V)}; +qQ=function(X,c,V){mK.call(this,X,c);this.Z=V;X=this.index=new g.Om;X.G=!1;X.U="d"}; +Zuj=function(X,c,V){var G=X.index.Vo(c),n=X.index.getStartTime(c),L=X.index.getDuration(c);V?L=V=0:V=X.info.JX*L;return new UC([new l$(3,X,void 0,"otfCreateRequestInfoForSegment",c,n,L,0,V)],G)}; +x1D=function(X,c){if(!X.index.isLoaded()){var V=[],G=c.X;c=c.Z.split(",").filter(function(H){return H.length>0}); +for(var n=0,L=0,d=0,h=/^(\d+)/,A=/r=(\d+)/,Y=0;Y0&&(c-=X.timestampOffset);var V=g.Vq(X)+c;kzs(X,V);X.timestampOffset=c}; +kzs=function(X,c){g.Vs(X.info.J.info)||X.info.J.info.hO();X.U=c;if(g.Vs(X.info.J.info)){var V=X.Hg();X=X.info.J.J;for(var G=NaN,n=NaN,L=0;SH(V,L);){var d=iW(V,L);isNaN(G)&&(d.type===1936286840?G=d.data.getUint32(d.dataOffset+8):d.type===1836476516&&(G=g.sm(d)));if(d.type===1952867444){!G&&X&&(G=C5(X));var h=g.XI(d);isNaN(n)&&(n=Math.round(c*G)-h);var A=d;h+=n;if(A.data.getUint8(A.dataOffset)){var Y=A.data;A=A.dataOffset+4;Y.setUint32(A,Math.floor(h/4294967296));Y.setUint32(A+4,h&4294967295)}else A.data.setUint32(A.dataOffset+ +4,h)}L=q2(d.type)?L+8:L+d.size}return!0}V=new G1(X.Hg());X=X.Z?V:new G1(new DataView(X.info.J.J.buffer));G=Wt(X);X=V.pos;V.pos=0;if(w_(V)&&yH(V,231))if(n=hQ(V,!0),c=Math.floor(c*1E9/G),Math.ceil(Math.log(c)/Math.log(2)/8)>n)c=!1;else{for(G=n-1;G>=0;G--)V.J.setUint8(V.pos+G,c&255),c>>>=8;V.pos=X;c=!0}else c=!1;return c}; +nx=function(X,c){c=c===void 0?!1:c;var V=Gb(X);X=c?0:X.info.T;return V||X}; +Gb=function(X){g.Vs(X.info.J.info)||X.info.J.info.hO();if(X.G&&X.info.type===6)return X.G.MY;if(g.Vs(X.info.J.info)){var c=X.Hg();var V=0;c=g.VH(c,1936286840);c=g.r(c);for(var G=c.next();!G.done;G=c.next())G=OpL(G.value),V+=G.DJ[0]/G.timescale;V=V||NaN;if(!(V>=0))a:{V=X.Hg();c=X.info.J.J;for(var n=G=0,L=0;SH(V,G);){var d=iW(V,G);if(d.type===1836476516)n=g.sm(d);else if(d.type===1836019558){!n&&c&&(n=C5(c));if(!n){V=NaN;break a}var h=D8(d.data,d.dataOffset,1953653094),A=h;h=n;var Y=D8(A.data,A.dataOffset, +1952868452);A=D8(A.data,A.dataOffset,1953658222);var H=f5(Y);f5(Y);H&2&&f5(Y);Y=H&8?f5(Y):0;var a=f5(A),W=a&1;H=a&4;var w=a&256,F=a&512,Z=a&1024;a&=2048;var v=p5(A);W&&f5(A);H&&f5(A);for(var e=W=0;e2048?"":c.indexOf("https://")===0?c:""}; +YF=function(X,c,V){c.match(pZD);return X(c,V).then(function(G){var n=g.fGU(G.xhr);return n?YF(X,n,V):G.xhr})}; +$F=function(X,c,V){X=X===void 0?"":X;c=c===void 0?null:c;V=V===void 0?!1:V;g.$T.call(this);var G=this;this.sourceUrl=X;this.isLivePlayback=V;this.fS=this.duration=0;this.isPremiere=this.bf=this.X=this.isLiveHeadPlayable=this.isLive=this.G=!1;this.HE=this.uH=0;this.isOtf=this.ZQ=!1;this.YO=(0,g.ta)();this.G_=Infinity;this.J={};this.U=new Map;this.state=this.Yt=0;this.timeline=null;this.isManifestless=!1;this.kO=[];this.B=null;this.NW=0;this.Z="";this.Pl=NaN;this.Hl=this.oZ=this.timestampOffset=this.D= +0;this.Fn=this.aF=NaN;this.Bd=0;this.LS=this.C=!1;this.wy=[];this.QK={};this.A7=NaN;this.F8={rcO:function(h){jt(G,h)}}; +var n;this.T_=(n=c)==null?void 0:n.lc("html5_use_network_error_code_enums");IGD=!!c&&c.lc("html5_modern_vp9_mime_type");var L;Hy=!((L=c)==null||!L.lc("html5_enable_flush_during_seek"))&&g.C1();var d;aE=!((d=c)==null||!d.lc("html5_enable_reset_audio_decoder"))&&g.C1()}; +Nq8=function(X){return g.kb(X.J,function(c){return!!c.info.video&&c.info.video.J>=2160})}; +hBU=function(X){return g.kb(X.J,function(c){return!!c.info.video&&c.info.video.isHdr()})}; +FT=function(X){return g.kb(X.J,function(c){return!!c.info.r$})}; +g.U1L=function(X){return g.kb(X.J,function(c){return ys(c.info.mimeType)})}; +Tqw=function(X){return g.kb(X.J,function(c){return c.info.video?c.info.video.projectionType==="EQUIRECTANGULAR":!1})}; +uNt=function(X){return g.kb(X.J,function(c){return c.info.video?c.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; +PXD=function(X){return g.kb(X.J,function(c){return c.info.video?c.info.video.projectionType==="MESH":!1})}; +zbs=function(X){return g.kb(X.J,function(c){return c.info.video?c.info.video.stereoLayout===1:!1})}; +Bqs=function(X){return Py8(X.J,function(c){return c.info.video?c.Gu():!0})}; +$W=function(X){return g.kb(X.J,function(c){return J7(c.uB.J)})}; +jt=function(X,c){X.J[c.info.id]=c;X.U.set(JQ(g.nu(c.info,X.ZQ)),c)}; +K$l=function(X,c){return JQ({itag:c.itag,lmt:X.ZQ?0:c.lmt||0,xtags:c.xtags})}; +FY=function(X,c,V){V=V===void 0?0:V;var G=X.mimeType||"",n=X.itag;var L=X.xtags;n=n?n.toString():"";L&&(n+=";"+L);L=n;if(dq(G)){var d=X.width||640;n=X.height||360;var h=X.fps,A=X.qualityLabel,Y=X.colorInfo,H=X.projectionType,a;X.stereoLayout&&(a=sQ2[X.stereoLayout]);var W=MUL(X)||void 0;if(Y==null?0:Y.primaries)var w=CXl[Y.primaries]||void 0;d=new zm(d,n,h,H,a,void 0,A,W,w);G=Wy(G,d,s3[X.itag||""]);Hy&&(G+="; enableflushduringseek=true");aE&&(G+="; enableresetaudiodecoder=true")}var F;if(Lu(G)){var Z= +X.audioSampleRate;a=X.audioTrack;Z=new Tm(Z?+Z:void 0,X.audioChannels,X.spatialAudioType,X.isDrc,X.loudnessDb,X.trackAbsoluteLoudnessLkfs,X.audioQuality||"AUDIO_QUALITY_UNKNOWN");a&&(w=a.displayName,n=a.id,a=a.audioIsDefault,w&&(F=new g.AF(w,n||"",!!a)))}var v;X.captionTrack&&(A=X.captionTrack,a=A.displayName,w=A.vssId,n=A.languageCode,h=A.kind,A=A.id,a&&w&&n&&(v=new Ous(a,w,n,h,X.xtags,A)));a=Number(X.bitrate)/8;w=Number(X.contentLength);n=Number(X.lastModified);A=X.drmFamilies;h=X.type;V=V&&w?w/ +V:0;X=Number(X.approxDurationMs);if(c&&A){var e={};A=g.r(A);for(Y=A.next();!Y.done;Y=A.next())(Y=wf[Y.value])&&(e[Y]=c[Y])}return new Cp(L,G,{audio:Z,video:d,zF:F,r$:e,JX:a,sI:V,contentLength:w,lastModified:n,captionTrack:v,streamType:h,approxDurationMs:X})}; +EX=function(X,c,V){V=V===void 0?0:V;var G=X.type;var n=X.itag;var L=X.xtags;L&&(n=X.itag+";"+L);if(dq(G)){var d=(X.size||"640x360").split("x");d=new zm(+d[0],+d[1],+X.fps,X.projection_type,+X.stereo_layout,void 0,X.quality_label,X.eotf,X.primaries);G=Wy(G,d,s3[X.itag]);Hy&&(G+="; enableflushduringseek=true");aE&&(G+="; enableresetaudiodecoder=true")}var h;if(Lu(G)){var A=new Tm(+X.audio_sample_rate||void 0,+X.audio_channels||0,X.spatial_audio_type,!!X.drc);X.name&&(h=new g.AF(X.name,X.audio_track_id, +X.isDefault==="1"))}var Y;X.caption_display_name&&X.caption_vss_id&&X.caption_language_code&&(Y=new Ous(X.caption_display_name,X.caption_vss_id,X.caption_language_code,X.caption_kind,X.xtags,X.caption_id));L=Number(X.bitrate)/8;var H=Number(X.clen),a=Number(X.lmt);V=V&&H?H/V:0;if(c&&X.drm_families){var W={};for(var w=g.r(X.drm_families.split(",")),F=w.next();!F.done;F=w.next())F=F.value,W[F]=c[F]}return new Cp(n,G,{audio:A,video:d,zF:h,r$:W,JX:L,sI:V,contentLength:H,lastModified:a,captionTrack:Y, +streamType:X.stream_type,approxDurationMs:Number(X.approx_duration_ms)})}; +D1j=function(X){return lF(X,function(c){return"FORMAT_STREAM_TYPE_OTF"===c.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; +SoU=function(X){return lF(X,function(c){return"FORMAT_STREAM_TYPE_OTF"===c.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; +iut=function(X,c){return X.timeline?LS(X.timeline.X,c):X.kO.length?LS(X.kO,c):[]}; +rf=function(X,c,V){c=c===void 0?"":c;V=V===void 0?"":V;X=new g.kW(X,!0);X.set("alr","yes");V&&(V=bol(decodeURIComponent(V)),X.set(c,encodeURIComponent(V)));return X}; +VWO=function(X,c){var V=Bt(c,"id");V=V.replace(":",";");var G=Bt(c,"mimeType"),n=Bt(c,"codecs");G=n?G+'; codecs="'+n+'"':G;n=Number(Bt(c,"bandwidth"))/8;var L=Number(K8(c,"BaseURL").getAttribute(X.Z+":contentLength")),d=X.duration&&L?L/X.duration:0;if(dq(G)){var h=Number(Bt(c,"width"));var A=Number(Bt(c,"height")),Y=Number(Bt(c,"frameRate")),H=qo1(Bt(c,X.Z+":projectionType"));a:switch(Bt(c,X.Z+":stereoLayout")){case "layout_left_right":var a=1;break a;case "layout_top_bottom":a=2;break a;default:a= +0}h=new zm(h,A,Y,H,a)}if(Lu(G)){var W=Number(Bt(c,"audioSamplingRate"));var w=Number(Bt(c.getElementsByTagName("AudioChannelConfiguration")[0],"value"));A=XSl(Bt(c,X.Z+":spatialAudioType"));W=new Tm(W,w,A);a:{w=Bt(c,"lang")||"und";if(A=K8(c,"Role"))if(H=Bt(A,"value")||"",g.mH(c2D,H)){A=w+"."+c2D[H];Y=H==="main";X=Bt(c,X.Z+":langName")||w+" - "+H;w=new g.AF(X,A,Y);break a}w=void 0}}if(c=K8(c,"ContentProtection"))if(c.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var F={};for(c= +c.firstChild;c!=null;c=c.nextSibling)c instanceof Element&&/SystemURL/.test(c.nodeName)&&(X=c.getAttribute("type"),A=c.textContent,X&&A&&(F[X]=A.trim()))}else F=void 0;return new Cp(V,G,{audio:W,video:h,zF:w,r$:F,JX:n,sI:d,contentLength:L})}; +qo1=function(X){switch(X){case "equirectangular":return"EQUIRECTANGULAR";case "equirectangular_threed_top_bottom":return"EQUIRECTANGULAR_THREED_TOP_BOTTOM";case "mesh":return"MESH";case "rectangular":return"RECTANGULAR";default:return"UNKNOWN"}}; +XSl=function(X){switch(X){case "spatial_audio_type_ambisonics_5_1":return"SPATIAL_AUDIO_TYPE_AMBISONICS_5_1";case "spatial_audio_type_ambisonics_quad":return"SPATIAL_AUDIO_TYPE_AMBISONICS_QUAD";case "spatial_audio_type_foa_with_non_diegetic":return"SPATIAL_AUDIO_TYPE_FOA_WITH_NON_DIEGETIC";default:return"SPATIAL_AUDIO_TYPE_NONE"}}; +nN1=function(X,c){c=c===void 0?"":c;X.state=1;X.YO=(0,g.ta)();return gKj(c||X.sourceUrl).then(function(V){if(!X.vl()){X.Yt=V.status;V=V.responseText;var G=new DOMParser;V=Sv(G,Pv2(V),"text/xml").getElementsByTagName("MPD")[0];X.G_=Hut(Bt(V,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(V.attributes){G=g.r(V.attributes);for(var n=G.next();!n.done;n=G.next())if(n=n.value,n.value==="http://youtube.com/yt/2012/10/10"){G=n.name.split(":")[1];break b}}G=""}X.Z=G;X.isLive=X.G_=X.G_}; +dUs=function(X){X.B&&X.B.stop()}; +GC1=function(X){var c=X.G_;isFinite(c)&&(Qq(X)?X.refresh():(c=Math.max(0,X.YO+c-(0,g.ta)()),X.B||(X.B=new g.qR(X.refresh,c,X),g.N(X,X.B)),X.B.start(c)))}; +y2t=function(X){X=X.J;for(var c in X){var V=X[c].index;if(V.isLoaded())return V.q6()+1}return 0}; +ZJ=function(X){return X.oZ?X.oZ-(X.D||X.timestampOffset):0}; +xF=function(X){return X.Hl?X.Hl-(X.D||X.timestampOffset):0}; +vy=function(X){if(!isNaN(X.Pl))return X.Pl;var c=X.J,V;for(V in c){var G=c[V].index;if(G.isLoaded()&&!ys(c[V].info.mimeType)){c=0;for(V=G.zC();V<=G.q6();V++)c+=G.getDuration(V);c/=G.Eh();c=Math.round(c/.5)*.5;G.Eh()>10&&(X.Pl=c);return c}if(X.isLive&&(G=c[V],G.MY))return G.MY}return NaN}; +hot=function(X,c){X=Bys(X.J,function(G){return G.index.isLoaded()}); +if(!X)return NaN;X=X.index;var V=X.gJ(c);return X.getStartTime(V)===c?c:V=0&&n.segments.splice(L,1)}}}; +Y81=function(X){for(var c in X.J)ys(X.J[c].info.mimeType)||QdU(X.J[c].index,Infinity)}; +et=function(X,c,V){for(var G in X.J){var n=X.J[G].index,L=c,d=V;n.e7&&(L&&(n.sW=Math.max(n.sW,L)),d&&(n.fg=Math.max(n.fg||0,d)))}V&&(X.A7=V/1E3)}; +jHs=function(X){X.Hl=0;X.oZ=0;X.Bd=0}; +JF=function(X){return X.LS&&X.isManifestless?X.isLiveHeadPlayable:X.isLive}; +Wy=function(X,c,V){mF===null&&(mF=window.MediaSource&&MediaSource.isTypeSupported&&MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.16.09.00"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.99.99.00"'));if(IGD&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return mF||V!=="9"&&V!=="("?mF||V!=="9h"&&V!=="(h"||(X='video/webm; codecs="vp9.2"'):X='video/webm; codecs="vp9"',X;if(!mF&&!RE||X!=='video/webm; codecs="vp9"'&&X!=='video/webm; codecs="vp9.2"')return X; +V="00";var G="08",n="01",L="01",d="01";X==='video/webm; codecs="vp9.2"'&&(V="02",G="10",c.primaries==="bt2020"&&(d=n="09"),c.G==="smpte2084"&&(L="16"),c.G==="arib-std-b67"&&(L="18"));return'video/webm; codecs="'+["vp09",V,"51",G,"01",n,L,d,"00"].join(".")+'"'}; +tF=function(X,c,V){X=""+X+(c>49?"p60":c>32?"p48":"");c=uI()[X];if(c!=null&&c>0)return c;c=b7.get(X);if(c!=null&&c>0)return c;V=V==null?void 0:V.get(X);return V!=null&&V>0?V:8192}; +Hgw=function(X){this.Fh=X;this.G2=this.vz=this.Hl=this.Z=this.X=this.qE=this.LS=this.A7=!1;this.D=this.B=0;this.yK=!1;this.kO=!0;this.T_=!1;this.xR=0;this.xs=this.Pl=!1;this.Bd=!0;this.YO=this.QK=!1;this.J={};this.Od=this.disableAv1=this.hX=this.Wg=this.o2=this.HP=this.G=this.T=!1;this.Pg=this.Fh.S("html5_disable_aac_preference");this.oZ=Infinity;this.wy=0;this.Ly=this.Fh.YU();this.NE=this.Fh.experiments.lc("html5_enable_vp9_fairplay");this.ON=this.Fh.S("html5_force_av1_for_testing");this.fS=g.EZ(this.Fh.experiments, +"html5_av1_ordinal_cap");this.gs=this.Fh.S("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.gm=this.Fh.S("html5_account_onesie_format_selection_during_format_filter");this.JX=g.EZ(this.Fh.experiments,"html5_max_byterate");this.C=this.Fh.S("html5_sunset_aac_high_codec_family");this.NW=this.Fh.S("html5_sunset_aac_high_codec_family");this.EM=this.Fh.S("html5_enable_iamf_audio");this.tT=this.Fh.experiments.lc("html5_allow_capability_merge");this.z2=this.Fh.S("html5_prefer_h264_encrypted_appletv"); +this.pM=this.Fh.S("html5_enable_encrypted_av1")}; +Amj=function(X){if(X.LS)return["f"];if(X.z2&&g.K1("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var c=["9h","9","h","8"];X.pM&&c.push("1e");c=c.concat(["(h","(","H","*"]);X.Pl&&(c.unshift("1"),c.unshift("1h"));X.vz&&c.unshift("h");X.G_&&(c=(aq1[X.G_]||[X.G_]).concat(c));return c}; +Gml=function(X){var c=["o","a","A"];X.wy===1&&(X.X&&(c=["mac3","MAC3"].concat(c)),X.Z&&(c=["meac3","MEAC3"].concat(c)),X.EM&&(c=["i","I"].concat(c)));X.A7&&(c=["so","sa"].concat(c));!X.G2||X.Hl||X.U||X.Pg||c.unshift("a");X.qE&&!X.C&&c.unshift("ah");X.U&&(c=(aq1[X.U]||[X.U]).concat(c));return c}; +OX=function(X,c,V,G){c=c===void 0?{}:c;if(G===void 0?0:G)return c.disabled=1,0;if(xW(X.Z,v4.AV1_CODECS)&&xW(X.Z,v4.HEIGHT)&&xW(X.Z,v4.BITRATE))return c.isCapabilityUsable=1,8192;try{var n=NGD();if(n)return c.localPref=n}catch(h){}G=1080;n=navigator.hardwareConcurrency;n<=2&&(G=480);c.coreCount=n;if(n=g.EZ(X.experiments,"html5_default_av1_threshold"))G=c["default"]=n;!X.S("html5_disable_av1_arm_check")&&mRs()&&(c.isArm=1,G=240);if(X=X.Z.kO)c.mcap=X,G=Math.max(G,X);if(V){var L,d;if(X=(L=V.videoInfos.find(function(h){return q_(h)}))== +null?void 0:(d=L.G)==null?void 0:d.powerEfficient)G=8192,c.isEfficient=1; +V=V.videoInfos[0].video;L=Math.min(tF("1",V.fps),tF("1",30));c.perfCap=L;G=Math.min(G,L);V.isHdr()&&!X&&(c.hdr=1,G*=.75)}else V=tF("1",30),c.perfCap30=V,G=Math.min(G,V),V=tF("1",60),c.perfCap60=V,G=Math.min(G,V);return c.av1Threshold=G}; +l7=function(X,c,V,G){this.flavor=X;this.keySystem=c;this.G=V;this.experiments=G;this.J={};this.T_=this.keySystemAccess=null;this.d7=this.XE=-1;this.Bo=null;this.U=!!G&&G.lc("edge_nonprefixed_eme");G&&G.lc("html5_enable_vp9_fairplay")}; +gf=function(X){return X.U?!1:!X.keySystemAccess&&!!MY()&&X.keySystem==="com.microsoft.playready"}; +fx=function(X){return X.keySystem==="com.microsoft.playready"}; +px=function(X){return!X.keySystemAccess&&!!MY()&&X.keySystem==="com.apple.fps.1_0"}; +IE=function(X){return X.keySystem==="com.youtube.fairplay"}; +NY=function(X){return X.keySystem==="com.youtube.fairplay.sbdl"}; +g.UX=function(X){return X.flavor==="fairplay"}; +MY=function(){var X=window,c=X.MSMediaKeys;i9()&&!c&&(c=X.WebKitMediaKeys);return c&&c.isTypeSupported?c:null}; +u7=function(X){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.fp&&!g.C1())return mo("45");if(g.q8||g.Fn)return X.lc("edge_nonprefixed_eme");if(g.Tb)return mo("47");if(g.v8){if(X.lc("html5_enable_safari_fairplay"))return!1;if(X=g.EZ(X,"html5_safari_desktop_eme_min_version"))return mo(X)}return!0}; +$U2=function(X,c,V,G){var n=D9(),L=(V=n||V&&i9())?["com.youtube.fairplay"]:["com.widevine.alpha"];c&&L.unshift("com.youtube.widevine.l3");n&&G&&L.unshift("com.youtube.fairplay.sbdl");return V?L:X?[].concat(g.x(L),g.x(Py.playready)):[].concat(g.x(Py.playready),g.x(L))}; +By=function(){this.G=this.pj=0;this.J=Array.from({length:zb.length}).fill(0)}; +WGs=function(){}; +wSD=function(){this.startTimeMs=(0,g.ta)();this.J=!1}; +FGO=function(){this.J=new WGs}; +ENO=function(X,c,V,G){G=G===void 0?1:G;V>=0&&(c in X.J||(X.J[c]=new By),X.J[c].O2(V,G))}; +r2O=function(X,c,V,G,n){var L=(0,g.ta)(),d=n?n(c):void 0,h;n=(h=d==null?void 0:d.pj)!=null?h:1;if(n!==0){var A;h=(A=d==null?void 0:d.profile)!=null?A:V;ENO(X,h,L-G,n)}return c}; +Kx=function(X,c,V,G,n){if(c&&typeof c==="object"){var L=function(d){return r2O(X,d,V,G,n)}; +if(jh(c))return c.then(L);if(QHl(c))return Fk(c,L)}return r2O(X,c,V,G,n)}; +Zg2=function(){}; +sX=function(X,c,V,G,n){G=G===void 0?!1:G;g.I.call(this);this.Fh=c;this.useCobaltWidevine=G;this.Oy=n;this.G=[];this.U={};this.J={};this.callback=null;this.Z=!1;this.X=[];this.initialize(X,!V)}; +vNj=function(X,c){X.callback=c;X.X=[];u7(X.Fh.experiments)?Cx(X):xUl(X)}; +Cx=function(X){if(!X.vl())if(X.G.length===0)X.callback(X.X);else{var c=X.G[0],V=X.U[c],G=kCO(X,V);if(DJ&&DJ.keySystem===c&&DJ.Y5l===JSON.stringify(G))X.Oy("remksa",{re:!0}),oNL(X,V,DJ.keySystemAccess);else{var n,L;X.Oy("remksa",{re:!1,ok:(L=(n=DJ)==null?void 0:n.keySystem)!=null?L:""});DJ=void 0;(St.isActive()?St.WF("emereq",function(){return navigator.requestMediaKeySystemAccess(c,G)}):navigator.requestMediaKeySystemAccess(c,G)).then(vV(function(d){oNL(X,V,d,G)}),vV(function(){X.Z=!X.Z&&X.U[X.G[0]].flavor=== +"widevine"; +X.Z||X.G.shift();Cx(X)}))}}}; +oNL=function(X,c,V,G){if(!X.vl()){G&&(DJ={keySystem:c.keySystem,keySystemAccess:V,Y5l:JSON.stringify(G)});c.keySystemAccess=V;if(fx(c)){V=M_();G=g.r(Object.keys(X.J[c.flavor]));for(var n=G.next();!n.done;n=G.next())n=n.value,c.J[n]=!!V.canPlayType(n)}else{V=c.keySystemAccess.getConfiguration();if(V.audioCapabilities)for(G=g.r(V.audioCapabilities),n=G.next();!n.done;n=G.next())eoS(X,c,n.value);if(V.videoCapabilities)for(V=g.r(V.videoCapabilities),G=V.next();!G.done;G=V.next())eoS(X,c,G.value)}X.X.push(c); +X.useCobaltWidevine||X.S("html5_enable_vp9_fairplay")&&NY(c)?(X.G.shift(),Cx(X)):X.callback(X.X)}}; +eoS=function(X,c,V){X.S("log_robustness_for_drm")?c.J[V.contentType]=V.robustness||!0:c.J[V.contentType]=!0}; +kCO=function(X,c){var V={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(X.S("html5_enable_vp9_fairplay")&&IE(c))return V.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),V.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[V];fx(c)&&(V.initDataTypes=["keyids","cenc"]);for(var G=g.r(Object.keys(X.J[c.flavor])),n=G.next();!n.done;n=G.next()){n=n.value;var L=n.indexOf("audio/")===0,d=L?V.audioCapabilities:V.videoCapabilities;c.flavor!== +"widevine"||X.Z?d.push({contentType:n}):L?d.push({contentType:n,robustness:"SW_SECURE_CRYPTO"}):(g.fp&&g.K1("windows nt")&&!X.S("html5_drm_enable_moho")||d.push({contentType:n,robustness:"HW_SECURE_ALL"}),L=n,X.S("html5_enable_cobalt_experimental_vp9_decoder")&&n.includes("vp09")&&(L=n+"; experimental=allowed"),d.push({contentType:L,robustness:"SW_SECURE_DECODE"}),i7(X.Fh)==="MWEB"&&(nv()||sE())&&(X.Oy("swcrypto",{}),d.push({contentType:n,robustness:"SW_SECURE_CRYPTO"})))}return[V]}; +xUl=function(X){if(MY()&&(g.v8||Xv&&X.S("html5_drm_support_ios_mweb")))X.X.push(new l7("fairplay","com.apple.fps.1_0","",X.Fh.experiments));else{var c=J2D(),V=g.Ct(X.G,function(G){var n=X.U[G],L=!1,d=!1,h;for(h in X.J[n.flavor])c(h,G)&&(n.J[h]=!0,L=L||h.indexOf("audio/")===0,d=d||h.indexOf("video/")===0);return L&&d}); +V&&X.X.push(X.U[V]);X.G=[]}X.callback(X.X)}; +J2D=function(){var X=MY();if(X){var c=X.isTypeSupported;return function(G,n){return c(n,G)}}var V=M_(); +return V&&(V.addKey||V.webkitAddKey)?function(G,n){return!!V.canPlayType(G,n)}:function(){return!1}}; +mUD=function(X){this.experiments=X;this.J=2048;this.X=0;this.kO=(this.D=this.S("html5_streaming_resilience"))?.5:.25;var c=c===void 0?0:c;this.U=g.EZ(this.experiments,"html5_media_time_weight_prop")||c;this.A7=g.EZ(this.experiments,"html5_sabr_timeout_penalty_factor")||1;this.C=(this.Z=this.experiments.lc("html5_consider_end_stall"))&&qY;this.G=this.experiments.lc("html5_measure_max_progress_handling");this.T=this.S("html5_treat_requests_pre_elbow_as_metadata");this.B=this.S("html5_media_time_weight")|| +!!this.U;this.G_=g.EZ(this.experiments,"html5_streaming_fallback_byterate");this.S("html5_sabr_live_audio_early_return_fix")&&qY&&(this.J=65536)}; +RoU=function(X,c){this.J=void 0;this.experimentIds=X?X.split(","):[];this.flags=L1(c||"","&");X={};c=g.r(this.experimentIds);for(var V=c.next();!V.done;V=c.next())X[V.value]=!0;this.experiments=X}; +g.EZ=function(X,c){X=X.flags[c];JSON.stringify(X);return Number(X)||0}; +Xi=function(X,c){return(X=X.flags[c])?X.toString():""}; +bgL=function(X){if(X=X.flags.html5_web_po_experiment_ids)if(X=X.replace(/\[ *(.*?) *\]/,"$1"))return X.split(",").map(Number);return[]}; +tWD=function(X){if(X.J)return X.J;if(X.experimentIds.length<=1)return X.J=X.experimentIds,X.J;var c=[].concat(g.x(X.experimentIds)).map(function(G){return Number(G)}); +c.sort();for(var V=c.length-1;V>0;--V)c[V]-=c[V-1];X.J=c.map(function(G){return G.toString()}); +X.J.unshift("v1");return X.J}; +lqj=function(X){return Og1.then(X)}; +cD=function(X,c,V){this.experiments=X;this.Pl=c;this.wy=V===void 0?!1:V;this.A7=!!g.Pw("cast.receiver.platform.canDisplayType");this.C={};this.T=!1;this.G=new Map;this.D=!0;this.X=this.Z=!1;this.J=new Map;this.kO=0;this.NW=this.experiments.lc("html5_disable_vp9_encrypted");this.U=this.experiments.lc("html5_enable_encrypted_av1");X=g.Pw("cast.receiver.platform.getValue");this.B=!this.A7&&X&&X("max-video-resolution-vpx")||null;MWD(this)}; +Hps=function(X,c,V){V=V===void 0?1:V;var G=c.itag;if(G==="0")return!0;var n=c.mimeType;if(c.hO()&&D9()&&X.experiments.lc("html5_appletv_disable_vp9"))return"dwebm";if(c.VK==="1e"&&!X.U)return"dav1enc";if(q_(c)&&X.T)return"dav1";if(c.video&&(c.video.isHdr()||c.video.primaries==="bt2020")&&!(xW(X,v4.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high), (video-dynamic-range: high)").matches||window.screen.pixelDepth>24&&window.matchMedia("(color-gamut: p3)").matches)))return"dhdr";if(G=== +"338"&&!(g.fp?mo(53):g.Tb&&mo(64)))return"dopus";var L=V;L=L===void 0?1:L;V={};c.video&&(c.video.width&&(V[v4.WIDTH.name]=c.video.width),c.video.height&&(V[v4.HEIGHT.name]=c.video.height),c.video.fps&&(V[v4.FRAMERATE.name]=c.video.fps*L),c.video.G&&(V[v4.EOTF.name]=c.video.G),c.JX&&(V[v4.BITRATE.name]=c.JX*8*L),c.VK==="("&&(V[v4.CRYPTOBLOCKFORMAT.name]="subsample"),c.video.projectionType==="EQUIRECTANGULAR"||c.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||c.video.projectionType==="MESH")&& +(V[v4.DECODETOTEXTURE.name]="true");c.audio&&c.audio.numChannels&&(V[v4.CHANNELS.name]=c.audio.numChannels);X.Z&&DO(c)&&(V[v4.EXPERIMENTAL.name]="allowed");L=g.r(Object.keys(v4));for(var d=L.next();!d.done;d=L.next()){d=v4[d.value];var h;if(h=V[d.name])if(h=!(d===v4.EOTF&&c.mimeType.indexOf("vp09.02")>0)){h=d;var A=c;h=!(X.experiments.lc("html5_ignore_h264_framerate_cap")&&h===v4.FRAMERATE&&ZZs(A))}if(h)if(xW(X,d))if(X.B){if(X.B[d.name]1080&&c.r$&&(n+="; hdcp=2.2");return G==="227"?"hqcenc":G!=="585"&&G!=="588"&&G!=="583"&&G!=="586"&&G!=="584"&&G!=="587"&&G!=="591"&&G!=="592"||X.experiments.lc("html5_enable_new_hvc_enc")?X.isTypeSupported(n)?!0:"tpus":"newhvc"}; +Vm=function(){var X=sE()&&!mo(29),c=g.K1("google tv")&&g.K1("chrome")&&!mo(30);return X||c?!1:J08()}; +gNs=function(X,c,V){var G=480;c=g.r(c);for(var n=c.next();!n.done;n=c.next()){n=n.value;var L=n.video.J;L<=1080&&L>G&&Hps(X,n,V)===!0&&(G=L)}return G}; +g.GD=function(X,c){c=c===void 0?!1:c;return Vm()&&X.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!c&&X.canPlayType(M_(),"application/x-mpegURL")?!0:!1}; +pSU=function(X){fqD(function(){for(var c=g.r(Object.keys(v4)),V=c.next();!V.done;V=c.next())xW(X,v4[V.value])})}; +xW=function(X,c){c.name in X.C||(X.C[c.name]=Iql(X,c));return X.C[c.name]}; +Iql=function(X,c){if(X.B)return!!X.B[c.name];if(c===v4.BITRATE&&X.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!X.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(c===v4.AV1_CODECS)return X.isTypeSupported("video/mp4; codecs="+c.valid)&&!X.isTypeSupported("video/mp4; codecs="+c.JU);if(c.video){var V='video/webm; codecs="vp9"';X.isTypeSupported(V)||(V='video/mp4; codecs="avc1.4d401e"')}else V='audio/webm; codecs="opus"', +X.isTypeSupported(V)||(V='audio/mp4; codecs="mp4a.40.2"');return X.isTypeSupported(V+"; "+c.name+"="+c.valid)&&!X.isTypeSupported(V+"; "+c.name+"="+c.JU)}; +NxO=function(X){X.Z||(X.Z=!0,nL(X))}; +nL=function(X){X.X=!0;X.experiments.lc("html5_ssap_update_capabilities_on_change")&&UUt(X)}; +Txj=function(X,c){var V=0;X.G.has(c)&&(V=X.G.get(c).Bx);X.G.set(c,{Bx:V+1,BB:Math.pow(2,V+1)});nL(X)}; +Em=function(X){for(var c=[],V=g.r(X.J.keys()),G=V.next();!G.done;G=V.next()){G=G.value;var n=X.J.get(G);c.push(G+"_"+n.maxWidth+"_"+n.maxHeight)}return c.join(".")}; +UUt=function(X){X.G_=[];for(var c=g.r(X.J.values()),V=c.next();!V.done;V=c.next()){V=V.value;var G=V.VK;X.experiments.lc("html5_ssap_force_mp4_aac")&&G!=="a"&&G!=="h"||X.G.has(G)||X.T&&(G==="1"||G==="1h"||X.U&&G==="1e")||X.G_.push(V)}}; +nq2=function(X,c){for(var V=new Map,G=g.r(X.J.keys()),n=G.next();!n.done;n=G.next()){n=n.value;var L=n.split("_")[0];c.has(L)||V.set(n,X.J.get(n))}X.J=V}; +d_2=function(X,c,V){var G,n=((G=V.video)==null?void 0:G.fps)||0;G=c+"_"+n;var L=!!V.audio,d={itag:V.itag,VK:c,oi:L};if(L)d.numChannels=V.audio.numChannels;else{var h=V.video;d.maxWidth=h==null?void 0:h.width;d.maxHeight=h==null?void 0:h.height;d.maxFramerate=n;xW(X,v4.BITRATE)&&(d.maxBitrateBps=V.JX*8);d.EL=h==null?void 0:h.isHdr()}h=X.J.get(G);h?L||(V=Math.max(h.maxWidth||0,h.maxHeight||0)>Math.max(d.maxWidth||0,d.maxHeight||0)?h:d,c={itag:V.itag,VK:c,oi:L,maxWidth:Math.max(h.maxWidth||0,d.maxWidth|| +0),maxHeight:Math.max(h.maxHeight||0,d.maxHeight||0),maxFramerate:n,EL:V.EL},xW(X,v4.BITRATE)&&(c.maxBitrateBps=V.maxBitrateBps),X.J.set(G,c)):X.J.set(G,d)}; +ymL=function(X,c,V){var G,n=((G=V.video)==null?void 0:G.fps)||0;G=c+"_"+n;var L=!!V.audio,d=X.J.get(G);a:{var h=X.J.get(G),A=!!V.audio;if(h){if(A){var Y=!1;break a}var H;if(!A&&((Y=V.video)==null?0:Y.height)&&h.maxHeight&&h.maxHeight>=((H=V.video)==null?void 0:H.height)){Y=!1;break a}}Y=!0}Y&&(Y=V.itag,c=d?d:{itag:Y,VK:c,oi:L},L?c.numChannels=V.audio.numChannels:(L=V.video,c.maxWidth=L==null?void 0:L.width,c.maxHeight=L==null?void 0:L.height,c.maxFramerate=n,xW(X,v4.BITRATE)&&(c.maxBitrateBps=V.JX* +8),c.EL=L==null?void 0:L.isHdr()),X.J.set(G,c))}; +MWD=function(X){var c;(c=navigator.mediaCapabilities)!=null&&c.decodingInfo&&navigator.mediaCapabilities.decodingInfo({type:"media-source",video:{contentType:'video/mp4; codecs="av01.0.12M.08"',width:3840,height:2160,bitrate:32E6,framerate:60}}).then(function(V){V.smooth&&V.powerEfficient&&(X.kO=2160)})}; +LL=function(){g.$T.call(this);this.items={}}; +d0=function(){g.J6.apply(this,arguments)}; +ym=function(){g.mB.apply(this,arguments)}; +uED=function(X,c,V){this.encryptedClientKey=c;this.Z=V;this.J=new Uint8Array(X.buffer,0,16);this.U=new Uint8Array(X.buffer,16)}; +P3S=function(X){X.G||(X.G=new d0(X.J));return X.G}; +hq=function(X){try{return ZR(X)}catch(c){return null}}; +zoD=function(X,c){if(!c&&X)try{c=JSON.parse(X)}catch(n){}if(c){X=c.clientKey?hq(c.clientKey):null;var V=c.encryptedClientKey?hq(c.encryptedClientKey):null,G=c.keyExpiresInSeconds?Number(c.keyExpiresInSeconds)*1E3+(0,g.ta)():null;X&&V&&G&&(this.J=new uED(X,V,G));c.onesieUstreamerConfig&&(this.onesieUstreamerConfig=hq(c.onesieUstreamerConfig)||void 0);this.baseUrl=c.baseUrl}}; +YC=function(){this.data=new Uint8Array(2048);this.pos=0;Aq||(Aq=gJ("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}; +j3=function(X,c){X.add(c==null||isNaN(c)?0:c+1)}; +HD=function(X){this.J=this.G=0;this.alpha=Math.exp(Math.log(.5)/X)}; +aT=function(X){this.G=X===void 0?15:X;this.values=new Float64Array(176);this.J=new Float64Array(11);this.U=new Float64Array(16)}; +$C=function(X,c,V,G){V=V===void 0?.5:V;G=G===void 0?0:G;this.resolution=c;this.G=0;this.U=!1;this.OZ=!0;this.J=Math.round(X*this.resolution);this.values=Array(this.J);for(X=0;X0)c=X.byterate,this.G_=!0;else{var G; +V=(((G=navigator.connection)==null?void 0:G.downlink)||0)*64*1024;V>0&&(c=V,this.G_=!0)}this.U.Mm(this.policy.B,c);X.delay>0&&this.T.Mm(1,Math.min(X.delay,2));X.stall>0&&this.D.Mm(1,X.stall);X.init>0&&(this.Hl=Math.min(X.init,this.Hl));X.interruptions&&(this.X=this.X.concat(X.interruptions),this.X.length>16&&this.X.pop());this.A7=(0,g.ta)();this.policy.D>0&&(this.QK=new g.qR(this.LS,this.policy.D,this),g.N(this,this.QK),this.QK.start())}; +w0=function(X,c,V,G){X.U.Mm(G===void 0?c:G,V/c);X.B=(0,g.ta)()}; +KGj=function(X){X.Z||(X.Z=(0,g.ta)());X.policy.C&&(X.B=(0,g.ta)())}; +sHl=function(X,c){if(X.Z){var V=c-X.Z;if(V<6E4){if(V>1E3){var G=X.interruptions;G.push(Math.ceil(V));G.sort(function(n,L){return L-n}); +G.length>16&&G.pop()}X.NW+=V}}X.Z=c}; +Fi=function(X,c,V,G,n,L){L=L===void 0?!1:L;X.wy.Mm(c,V/c);X.B=(0,g.ta)();n||X.C.Mm(1,c-G);L||(X.Z=0);X.A7>-1&&(0,g.ta)()-X.A7>3E4&&C3s(X)}; +ET=function(X,c,V){c=Math.max(c,X.G.J);X.D.Mm(1,V/c)}; +r0=function(X){X=X.T.JP()+X.Pl.JP()||0;X=isNaN(X)?.5:X;return X=Math.min(X,5)}; +Qm=function(X,c,V){isNaN(V)||(X.kO+=V);isNaN(c)||(X.YO+=c)}; +Zv=function(X){X=X.U.JP();return X>0?X:1}; +xC=function(X,c,V){c=c===void 0?!1:c;V=V===void 0?1048576:V;var G=Zv(X);G=1/((X.D.JP()||0)*X.policy.G_+1/G);var n=X.wy.JP();n=n>0?n:1;var L=Math.max(G,n);X.policy.Z>0&&n=4E3}; +S8L=function(X){this.experiments=X;this.J=17;this.U=13E4;this.B=.5;this.G=!1;this.A7=this.S("html5_use_histogram_for_bandwidth");this.X=!1;this.Z=g.EZ(this.experiments,"html5_auxiliary_estimate_weight");this.G_=g.EZ(this.experiments,"html5_stall_factor")||1;this.D=g.EZ(this.experiments,"html5_check_for_idle_network_interval_ms");this.T=this.experiments.lc("html5_trigger_loader_when_idle_network");this.C=this.experiments.lc("html5_sabr_fetch_on_idle_network_preloaded_players")}; +q88=function(X,c){X=X===void 0?{}:X;c=c===void 0?{}:c;g.I.call(this);var V=this;this.values=X;this.Wf=c;this.G={};this.U=this.J=0;this.X=new g.qR(function(){igj(V)},1E4); +g.N(this,this.X)}; +kC=function(X,c){Xd1(X,c);return X.values[c]&&X.Wf[c]?X.values[c]/Math.pow(2,X.J/X.Wf[c]):0}; +Xd1=function(X,c){X.values[c]||(c=gSD(),X.values=c.values||{},X.Wf=c.halfLives||{},X.G=c.values?Object.assign({},c.values):{})}; +igj=function(X){var c=gSD();if(c.values){c=c.values;for(var V={},G=g.r(Object.keys(X.values)),n=G.next();!n.done;n=G.next())n=n.value,c[n]&&X.G[n]&&(X.values[n]+=c[n]-X.G[n]),V[n]=kC(X,n);X.G=V}c=X.Wf;V={};V.values=X.G;V.halfLives=c;g.pv("yt-player-memory",V,2592E3)}; +PD=function(X,c,V,G,n){g.I.call(this);this.webPlayerContextConfig=c;this.Fn=G;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.SU=this.EM=this.fS=this.U_=this.userDisplayName=this.userDisplayImage=this.l_="";this.J={};this.oZ={};this.controlsType="0";this.tT=NaN;this.o2=!1;this.bH=(0,g.ta)();this.Ly=0;this.Po=this.KW=!1;this.H5=!0;this.preferGapless=this.UQ=this.YM=this.U=this.Xn=this.pJ=!1;this.cz=[];this.LJ=!1;X=X?g.M5(X):{};c&&c.csiPageType&&(this.csiPageType=c.csiPageType);c&&c.csiServiceName&& +(this.csiServiceName=c.csiServiceName);c&&c.preferGapless&&(this.preferGapless=c.preferGapless);this.experiments=new RoU(c?c.serializedExperimentIds:X.fexp,c?c.serializedExperimentFlags:X.fflags);this.forcedExperiments=c?c.serializedForcedExperimentIds:Y3("",X.forced_experiments)||void 0;this.cspNonce=(c==null?0:c.cspNonce)?c.cspNonce:Y3("",X.csp_nonce);this.S("web_player_deprecated_uvr_killswitch");try{var L=document.location.toString()}catch(nj){L=""}this.ON=L;this.ancestorOrigins=(G=window.location.ancestorOrigins)? +Array.from(G):[];this.X=ye(!1,c?c.isEmbed:X.is_embed);if(c&&c.device){if(G=c.device,G.androidOsExperience&&(this.J.caoe=""+G.androidOsExperience),G.androidPlayServicesVersion&&(this.J.capsv=""+G.androidPlayServicesVersion),G.brand&&(this.J.cbrand=G.brand),G.browser&&(this.J.cbr=G.browser),G.browserVersion&&(this.J.cbrver=G.browserVersion),G.cobaltReleaseVehicle&&(this.J.ccrv=""+G.cobaltReleaseVehicle),this.J.c=G.interfaceName||"WEB",this.J.cver=G.interfaceVersion||"html5",G.interfaceTheme&&(this.J.ctheme= +G.interfaceTheme),this.J.cplayer=G.interfacePlayerType||"UNIPLAYER",G.model&&(this.J.cmodel=G.model),G.network&&(this.J.cnetwork=G.network),G.os&&(this.J.cos=G.os),G.osVersion&&(this.J.cosver=G.osVersion),G.platform&&(this.J.cplatform=G.platform),L=Xi(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),L==="all"||L==="once")G.chipset&&(this.oZ.cchip=G.chipset),G.cobaltAppVersion&&(this.oZ.ccappver=G.cobaltAppVersion),G.firmwareVersion&&(this.oZ.cfrmver=G.firmwareVersion),G.deviceYear&&(this.oZ.crqyear= +G.deviceYear)}else this.J.c=X.c||"web",this.J.cver=X.cver||"html5",this.J.cplayer="UNIPLAYER";this.loaderUrl=c?this.X||cf8(this)&&c.loaderUrl?c.loaderUrl||"":this.ON:this.X||cf8(this)&&X.loaderUrl?Y3("",X.loaderUrl):this.ON;this.X&&g.uO("yt.embedded_player.embed_url",this.loaderUrl);this.D=Ge(this.loaderUrl,VNw);G=this.loaderUrl;var d=d===void 0?!1:d;this.aF=Vn(Ge(G,G38),G,d,"Trusted Ad Domain URL");this.Bd=ye(!1,X.privembed);this.protocol=this.ON.indexOf("http:")===0?"http":"https";this.Wb=nk((c? +c.customBaseYoutubeUrl:X.BASE_YT_URL)||"")||nk(this.ON)||this.protocol+"://www.youtube.com/";d=c?c.eventLabel:X.el;G="detailpage";d==="adunit"?G=this.X?"embedded":"detailpage":d==="embedded"||this.D?G=hj(G,d,n2D):d&&(G="embedded");this.Pl=G;I91();d=null;G=c?c.playerStyle:X.ps;L=g.SV(LVl,G);!G||L&&!this.D||(d=G);this.playerStyle=d;this.B=g.SV(LVl,this.playerStyle);this.houseBrandUserStatus=c==null?void 0:c.houseBrandUserStatus;this.A7=this.B&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard"; +this.UY=!this.A7;this.Hl=ye(!1,X.disableplaybackui);this.disablePaidContentOverlay=ye(!1,c==null?void 0:c.disablePaidContentOverlay);this.disableSeek=ye(!1,c==null?void 0:c.disableSeek);this.enableSpeedOptions=(c==null?void 0:c.enableSpeedOptions)||(M_().defaultPlaybackRate?oT||g.Gk||e3?g.Tb&&mo("20")||g.fp&&mo("4")||g.Jq&&mo("11")||ql():!(g.Jq&&!g.K1("chrome")||oT||g.K1("android")||g.K1("silk")):!1);this.qc=ye(!1,X.enable_faster_speeds);var h;this.supportsVarispeedExtendedFeatures=(h=c==null?void 0: +c.supportsVarispeedExtendedFeatures)!=null?h:!1;this.G=ye(this.playerStyle==="blazer",X.is_html5_mobile_device||c&&c.isMobileDevice);this.YO=Ve()||nv();this.CN=this.S("mweb_allow_background_playback")?!1:this.G&&!this.B;this.QK=N_();this.fW=g.mA;var A;this.uV=!!(c==null?0:(A=c.embedsHostFlags)==null?0:A.optOutApiDeprecation);var Y;this.Nc=!!(c==null?0:(Y=c.embedsHostFlags)==null?0:Y.allowPfpImaIntegration);this.zI=this.S("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var H;c?c.hideInfo!== +void 0&&(H=!c.hideInfo):H=X.showinfo;this.mE=g.RT(this)&&!this.uV||ye(!bY(this)&&!tq(this)&&!this.B,H);this.Bo=c?!!c.mobileIphoneSupportsInlinePlayback:ye(!1,X.playsinline);h=this.G&&OT&&lY!=null&&lY>0&&lY<=2.3;A=c?c.useNativeControls:X.use_native_controls;this.T=g.RT(this)&&this.G;Y=this.G&&!this.T;A=g.M7(this)||!h&&ye(Y,A)?"3":"1";this.disableOrganicUi=!(c==null||!c.disableOrganicUi);Y=c?c.controlsType:X.controls;this.controlsType=this.disableOrganicUi?"0":Y!=="0"&&Y!==0?A:"0";this.AZ=this.G;this.color= +hj("red",c?c.progressBarColor:X.color,dsl);this.Lw=this.controlsType==="3";this.G2=!this.X;this.xq=(A=!this.G2&&!tq(this)&&!this.A7&&!this.B&&!bY(this))&&!this.Lw&&this.controlsType==="1";this.z2=g.g0(this)&&A&&this.controlsType==="0"&&!this.xq&&!(c==null?0:c.embedsEnableEmc3ds);this.VB=this.dn=h;this.pM=(this.controlsType==="3"||this.G||ye(!1,X.use_media_volume))&&!this.T;this.v5=Xv&&!g.EL(601)?!1:!0;this.VX=this.X||!1;this.T_=tq(this)?"":(this.loaderUrl||X.post_message_origin||"").substring(0,128); +this.widgetReferrer=Y3("",c?c.widgetReferrer:X.widget_referrer);var a;c?c.disableCastApi&&(a=!1):a=X.enablecastapi;a=!this.D||ye(!0,a);h=!0;c&&c.disableMdxCast&&(h=!1);this.TZ=this.S("enable_cast_for_web_unplugged")&&g.fL(this)&&h||g.uG(this)&&h||a&&h&&this.controlsType==="1"&&!this.G&&(tq(this)||g.g0(this)||g.pL(this));this.zf=!!window.document.pictureInPictureEnabled||Id();a=c?!!c.supportsAutoplayOverride:ye(!1,X.autoplayoverride);this.jL=!(this.G&&!g.RT(this))&&!g.K1("nintendo wiiu")||a;this.MJ= +(c?!!c.enableMutedAutoplay:ye(!1,X.mutedautoplay))&&!1;a=(tq(this)||bY(this))&&this.playerStyle==="blazer";this.dW=c?!!c.disableFullscreen:!ye(!0,X.fs);h=g.$3(g.IT(this))&&g.RT(this);this.NE=!this.dW&&(a||g.Zh())&&!h;this.sY=this.S("html5_picture_in_picture_logging_onresize");var W;this.dh=(W=g.EZ(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?W:.33;this.mu=this.S("html5_picture_in_picture_blocking_onresize");this.xo=this.S("html5_picture_in_picture_blocking_ontimeupdate"); +this.EY=this.S("html5_picture_in_picture_blocking_document_fullscreen");this.Ho=this.S("html5_picture_in_picture_blocking_standard_api");W=sE()&&mo(58)&&!nv();a=iE||typeof MediaSource==="undefined";this.AJ=this.S("uniplayer_block_pip")&&(W||a)||this.mu||this.xo||this.Ho;W=g.RT(this)&&!this.uV;var w;c?c.disableRelatedVideos!==void 0&&(w=!c.disableRelatedVideos):w=X.rel;this.gm=W||ye(!this.B,w);this.tJ=ye(!1,c?c.enableContentOwnerRelatedVideos:X.co_rel);this.C=nv()&&lY>0&&lY<=4.4?"_top":"_blank";this.jX= +g.pL(this);this.G7=ye(this.playerStyle==="blazer",c?c.enableCsiLogging:X.enablecsi);switch(this.playerStyle){case "blogger":w="bl";break;case "gmail":w="gm";break;case "gac":w="ga";break;case "ads-preview":w="ap";break;case "books":w="gb";break;case "docs":case "flix":w="gd";break;case "duo":w="gu";break;case "google-live":w="gl";break;case "google-one":w="go";break;case "play":w="gp";break;case "chat":w="hc";break;case "hangouts-meet":w="hm";break;case "photos-edu":case "picasaweb":w="pw";break; +default:w="yt"}this.G_=w;this.kO=Y3("",c?c.authorizedUserIndex:X.authuser);this.Od=g.RT(this)&&(this.Bd||!eDt()||this.YO);var F;c?c.disableWatchLater!==void 0&&(F=!c.disableWatchLater):F=X.showwatchlater;this.gs=((w=!this.Od)||!!this.kO&&w)&&ye(!this.A7,this.D?F:void 0);this.Pg=c?c.isMobileDevice||!!c.disableKeyboardControls:ye(!1,X.disablekb);this.loop=ye(!1,X.loop);this.pageId=Y3("",c?c.initialDelegatedSessionId:X.pageid);this.MB=ye(!0,X.canplaylive);this.yK=ye(!1,X.livemonitor);this.disableSharing= +ye(this.B,c?c.disableSharing:X.ss);(F=c&&this.S("fill_video_container_size_override_from_wpcc")?c.videoContainerOverride:X.video_container_override)?(w=F.split("x"),w.length!==2?F=null:(F=Number(w[0]),w=Number(w[1]),F=isNaN(F)||isNaN(w)||F*w<=0?null:new g.Ez(F,w))):F=null;this.B5=F;this.mute=c?!!c.startMuted:ye(!1,X.mute);this.storeUserVolume=!this.mute&&ye(this.controlsType!=="0",c?c.storeUserVolume:X.store_user_volume);F=c?c.annotationsLoadPolicy:X.iv_load_policy;this.annotationsLoadPolicy=this.controlsType=== +"3"?3:hj(void 0,F,N7);this.captionsLanguagePreference=c?c.captionsLanguagePreference||"":Y3("",X.cc_lang_pref);F=hj(2,c?c.captionsLanguageLoadPolicy:X.cc_load_policy,N7);this.controlsType==="3"&&F===2&&(F=3);this.hX=F;this.HP=c?c.hl||"en_US":Y3("en_US",X.hl);this.region=c?c.contentRegion||"US":Y3("US",X.cr);this.hostLanguage=c?c.hostLanguage||"en":Y3("en",X.host_language);this.oX=!this.Bd&&Math.random()=480;this.schedule=new WD(a,new mUD(this.experiments),n);g.N(this,this.schedule);var Z;this.enableSafetyMode=(Z=c==null?void 0:c.initialEnableSafetyMode)!=null? +Z:ye(!1,X.enable_safety_mode);n=this.Hl?!1:tq(this)&&this.playerStyle!=="blazer";var v;c?c.disableAutonav!=null&&(v=!c.disableAutonav):v=X.allow_autonav;this.Wg=ye(n,!this.A7&&v);this.sendVisitorIdHeader=c?!!c.sendVisitorIdHeader:ye(!1,X.send_visitor_id_header);var e;this.playerStyle==="docs"&&(c?e=c.disableNativeContextMenu:e=X.disable_native_context_menu);this.disableNativeContextMenu=ye(!1,e);this.nN=tr(this)&&this.S("enable_skip_intro_button");this.embedConfig=Y3("",c?c.serializedEmbedConfig: +X.embed_config);this.NW=al(X,g.RT(this));this.U=this.NW==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!(c==null||!c.embedsErrorLinks);this.lX=ye(!1,X.full_window);var m;this.qE=!((m=this.webPlayerContextConfig)==null?0:m.chromeless);var t;this.livingRoomAppMode=hj("LIVING_ROOM_APP_MODE_UNSPECIFIED",X.living_room_app_mode||(c==null?void 0:(t=c.device)==null?void 0:t.livingRoomAppMode),AfU);var f;v=Aj(NaN,c==null?void 0:(f=c.device)==null?void 0:f.deviceYear);isNaN(v)||(this.deviceYear=v);this.transparentBackground= +c?!!c.transparentBackground:ye(!1,X.transparent_background);this.showMiniplayerButton=c?!!c.showMiniplayerButton:ye(!1,X.show_miniplayer_button);var U;g.RT(this)&&!(c==null?0:(U=c.embedsHostFlags)==null?0:U.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=c?!!c.externalFullscreen:ye(!1,X.external_fullscreen);this.showMiniplayerUiWhenMinimized=c?!!c.showMiniplayerUiWhenMinimized:ye(!1,X.use_miniplayer_ui);var C;this.H5=(C=X.show_loop_video_toggle)!=null?C:!0;this.eB=Math.random()< +1E-4;this.JZ=X.onesie_hot_config||(c==null?0:c.onesieHotConfig)?new zoD(X.onesie_hot_config,c==null?void 0:c.onesieHotConfig):void 0;this.isTectonic=c?!!c.isTectonic:!!X.isTectonic;this.playerCanaryState=V;this.playerCanaryStage=c==null?void 0:c.canaryStage;this.vW=new q88;g.N(this,this.vW);this.Xn=ye(!1,X.force_gvi);this.datasyncId=(c==null?void 0:c.datasyncId)||g.qK("DATASYNC_ID");this.ql=g.qK("LOGGED_IN",!1);this.tf=(c==null?void 0:c.allowWoffleManagement)||!1;this.Gz=Infinity;this.Og=NaN;this.livingRoomPoTokenId= +c==null?void 0:c.livingRoomPoTokenId;this.S("html5_high_res_logging_always")?this.YM=!0:this.YM=Math.random()*100=0&&X0&&X.eB&&(G.sort(),g.UQ(new g.SP("Player client parameters changed after startup",G)));X.userAge=Aj(X.userAge,c.user_age);X.l_=Y3(X.l_,c.user_display_email);X.userDisplayImage=Y3(X.userDisplayImage,c.user_display_image);g.d2(X.userDisplayImage)||(X.userDisplayImage= +"");X.userDisplayName=Y3(X.userDisplayName,c.user_display_name);X.U_=Y3(X.U_,c.user_gender);X.csiPageType=Y3(X.csiPageType,c.csi_page_type);X.csiServiceName=Y3(X.csiServiceName,c.csi_service_name);X.G7=ye(X.G7,c.enablecsi);X.pageId=Y3(X.pageId,c.pageid);if(V=c.enabled_engage_types)X.enabledEngageTypes=new Set(V.split(","));c.living_room_session_po_token&&(X.fJ=c.living_room_session_po_token.toString())}; +zD=function(X,c){return!X.B&&sE()&&mo(55)&&X.controlsType==="3"&&!c}; +g.BD=function(X){X=UT(X.Wb);return X==="www.youtube-nocookie.com"?"www.youtube.com":X}; +KL=function(X,c,V){return X.protocol+"://i1.ytimg.com/vi/"+c+"/"+(V||"hqdefault.jpg")}; +sT=function(X){return tq(X)&&!g.fL(X)}; +g.M7=function(X){return X.S("html5_local_playsinline")?Xv&&!g.EL(602)&&!("playsInline"in M_()):Xv&&!X.Bo||g.K1("nintendo wiiu")?!0:!1}; +i7=function(X){return X.J.c}; +g.OZ=function(X){return/^TVHTML5/.test(i7(X))}; +g.CL=function(X){return i7(X)==="TVHTML5"}; +cf8=function(X){return i7(X)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; +hxD=function(X){return X.J.cmodel==="CHROMECAST ULTRA/STEAK"||X.J.cmodel==="CHROMECAST/STEAK"}; +g.Dv=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; +tr=function(X){return/web/i.test(i7(X))}; +g.S3=function(X){return i7(X).toUpperCase()==="WEB"}; +uY=function(X){return i7(X)==="WEB_KIDS"}; +g.fL=function(X){return i7(X)==="WEB_UNPLUGGED"}; +iY=function(X){return i7(X)==="TVHTML5_UNPLUGGED"}; +g.bL=function(X){return g.fL(X)||i7(X)==="TV_UNPLUGGED_CAST"||iY(X)}; +g.uG=function(X){return i7(X)==="WEB_REMIX"}; +g.q7=function(X){return i7(X)==="WEB_EMBEDDED_PLAYER"}; +g.cp=function(X){return(X.deviceIsAudioOnly||!g.fp||iE||X.controlsType==="3"?!1:g.Gk?X.X&&g.EL(51):!0)||(X.deviceIsAudioOnly||!g.Tb||iE||X.controlsType==="3"?!1:g.Gk?X.X&&g.EL(48):g.EL(38))||(X.deviceIsAudioOnly||!g.Jq||iE||X.controlsType==="3"?!1:g.Gk?X.X&&g.EL(37):g.EL(27))||!X.deviceIsAudioOnly&&g.Xg&&!tns()&&g.EL(11)||!X.deviceIsAudioOnly&&g.v8&&g.EL("604.4")}; +HRs=function(X){if(g.g0(X)&&OT)return!1;if(g.Tb){if(!g.EL(47)||!g.EL(52)&&g.EL(51))return!1}else if(g.v8)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; +$s8=function(X,c){return X.enabledEngageTypes.has(c.toString())||arO.includes(c)}; +tq=function(X){return X.Pl==="detailpage"}; +g.g0=function(X){return X.Pl==="embedded"}; +Vb=function(X){return X.Pl==="leanback"}; +bY=function(X){return X.Pl==="adunit"||X.playerStyle==="gvn"}; +g.pL=function(X){return X.Pl==="profilepage"}; +g.RT=function(X){return X.X&&g.g0(X)&&!bY(X)&&!X.B}; +G_=function(X){if(!X.userDisplayImage)return"";var c=X.userDisplayImage.split("/");if(c.length===5)return X=c[c.length-1].split("="),X[1]="s20-c",c[c.length-1]=X.join("="),c.join("/");if(c.length===8)return c.splice(7,0,"s20-c"),c.join("/");if(c.length===9)return c[7]+="-s20-c",c.join("/");g.UQ(new g.SP("Profile image not a FIFE URL.",X.userDisplayImage));return X.userDisplayImage}; +g.nW=function(X){var c=g.BD(X);WVs.includes(c)&&(c="www.youtube.com");return X.protocol+"://"+c}; +g.LW=function(X,c){c=c===void 0?"":c;if(X.Fn){var V=new cS,G,n=X.Fn();n.signedOut?G="":n.token?G=n.token:n.pendingResult.then(function(L){n.signedOut?V.resolve(""):V.resolve(L.token)},function(L){g.UQ(new g.SP("b189348328_oauth_callback_failed",{error:L})); +V.resolve(c)}); +return G!==void 0?p1(G):new gd(V)}return p1(c)}; +d4=function(X,c){c=c===void 0?"":c;return X.ql?HV(!0):EM(Fk(HV(g.LW(X,c)),function(V){return HV(!!V)}),function(){return HV(!1)})}; +UT=function(X){var c=g.Ue(X);return(X=Number(g.NG(4,X))||null)?c+":"+X:c}; +yb=function(X,c){c=c===void 0?!1:c;var V=s3[X],G=wdS[V],n=FVD[X];if(!n||!G)return null;c=new zm(c?n.height:n.width,c?n.width:n.height,n.fps);G=Wy(G,c,V);return new Cp(X,G,{video:c,JX:n.bitrate/8})}; +rfO=function(X){var c=wdS[s3[X]],V=E2D[X];return V&&c?new Cp(X,c,{audio:new Tm(V.audioSampleRate,V.numChannels)}):null}; +h4=function(X){this.J=X}; +A4=function(X,c,V,G){if(V)return f1();V={};var n=M_();c=g.r(c);for(var L=c.next();!L.done;L=c.next())if(L=L.value,X.canPlayType(n,L.getInfo().mimeType)||G){var d=L.J.video.quality;if(!V[d]||V[d].getInfo().hO())V[d]=L}X=[];V.auto&&X.push(V.auto);G=g.r(Bb);for(n=G.next();!n.done;n=G.next())(n=V[n.value])&&X.push(n);return X.length?p1(X):f1()}; +QDU=function(X){this.itag=X.itag;this.url=X.url;this.codecs=X.codecs;this.width=X.width;this.height=X.height;this.fps=X.fps;this.bitrate=X.bitrate;var c;this.G=((c=X.audioItag)==null?void 0:c.split(","))||[];this.Hw=X.Hw;this.r$=X.r$||"";this.zF=X.zF;this.audioChannels=X.audioChannels;this.J=""}; +ZRO=function(X,c,V,G){c=c===void 0?!1:c;V=V===void 0?!0:V;G=G===void 0?{}:G;var n={};X=g.r(X);for(var L=X.next();!L.done;L=X.next()){L=L.value;if(c&&MediaSource&&MediaSource.isTypeSupported){var d=L.type;L.audio_channels&&(d=d+"; channels="+L.audio_channels);if(!MediaSource.isTypeSupported(d)){G[L.itag]="tpus";continue}}if(V||!L.drm_families||L.eotf!=="smpte2084"&&L.eotf!=="arib-std-b67"){d=void 0;var h={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},A=L.type.match(/codecs="([^"]*)"/); +A=A?A[1]:"";L.audio_track_id&&(d=new g.AF(L.name,L.audio_track_id,!!L.is_default));var Y=L.eotf;L=new QDU({itag:L.itag,url:L.url,codecs:A,width:Number(L.width),height:Number(L.height),fps:Number(L.fps),bitrate:Number(L.bitrate),audioItag:L.audio_itag,Hw:Y?h[Y]:void 0,r$:L.drm_families,zF:d,audioChannels:Number(L.audio_channels)});n[L.itag]=n[L.itag]||[];n[L.itag].push(L)}else G[L.itag]="enchdr"}return n}; +xsl=function(X,c,V,G,n){this.U=X;this.G=c;this.Z=V;this.cpn=G;this.B=n;this.X=0;this.J=""}; +v28=function(X,c){X.U.some(function(V){var G;return((G=V.zF)==null?void 0:G.getId())===c}); +X.J=c}; +YJ=function(X,c,V){X.cpn&&(c=g.KB(c,{cpn:X.cpn}));V&&(c=g.KB(c,{paired:V}));return c}; +k3s=function(X,c){X=X.itag.toString();c!==null&&(X+=c.itag.toString());return X}; +o2l=function(X){for(var c=[],V=[],G=g.r(X.G),n=G.next();!n.done;n=G.next())n=n.value,n.bitrate<=X.X?c.push(n):V.push(n);c.sort(function(L,d){return d.bitrate-L.bitrate}); +V.sort(function(L,d){return L.bitrate-d.bitrate}); +X.G=c.concat(V)}; +jz=function(X,c,V){this.J=X;this.G=c;this.expiration=V;this.uB=null}; +exO=function(X,c){if(!(iE||i9()||D9()))return null;X=ZRO(c,X.S("html5_filter_fmp4_in_hls"));if(!X)return null;c=[];for(var V={},G=g.r(Object.keys(X)),n=G.next();!n.done;n=G.next()){n=g.r(X[n.value]);for(var L=n.next();!L.done;L=n.next()){var d=L.value;d.zF&&(L=d.zF.getId(),V[L]||(d=new g.n5(L,d.zF),V[L]=d,c.push(d)))}}return c.length>0?c:null}; +tNl=function(X,c,V,G,n,L,d){if(!(iE||i9()||D9()))return f1();var h={},A=Jft(V),Y=ZRO(V,X.S("html5_filter_fmp4_in_hls"),X.Z.D,h);if(!Y)return d({noplst:1}),f1();msw(Y);V={};var H=(V.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",V),a;V=[];var W=[],w=[],F=null,Z="";G=G&&G.match(/hls_timedtext_playlist/)?new QDU({itag:"0",url:G,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,zF:new g.AF("English","en",!1)}):null;for(var v=g.r(Object.keys(Y)),e=v.next();!e.done;e=v.next())if(e=e.value,!X.S("html5_disable_drm_hfr_1080")|| +e!=="383"&&e!=="373"){e=g.r(Y[e]);for(var m=e.next();!m.done;m=e.next())if(m=m.value,m.width){for(var t=g.r(m.G),f=t.next();!f.done;f=t.next())if(f=f.value,Y[f]){m.J=f;break}m.J||(m.J=Rxl(Y,m));if(t=Y[m.J])if(V.push(m),m.r$==="fairplay"&&(a=H),f="",m.Hw==="PQ"?f="smpte2084":m.Hw==="HLG"&&(f="arib-std-b67"),f&&(Z=f),w.push(bRD(t,[m],G,L,m.itag,m.width,m.height,m.fps,A,void 0,void 0,a,f)),!F||m.width*m.height*m.fps>F.width*F.height*F.fps)F=m}else W.push(m)}else h[e]="disdrmhfr";w.reduce(function(U, +C){return C.getInfo().isEncrypted()&&U},!0)&&(a=H); +n=Math.max(n,0);H=F||{};Y=H.fps===void 0?0:H.fps;F=H.width===void 0?0:H.width;H=H.height===void 0?0:H.height;v=X.S("html5_native_audio_track_switching");w.push(bRD(W,V,G,L,"93",F,H,Y,A,"auto",n,a,Z,v));Object.entries(h).length&&d(h);return A4(X.Z,w,zD(X,c),!1)}; +bRD=function(X,c,V,G,n,L,d,h,A,Y,H,a,W,w){for(var F=0,Z="",v=g.r(X),e=v.next();!e.done;e=v.next())e=e.value,Z||(Z=e.itag),e.audioChannels&&e.audioChannels>F&&(F=e.audioChannels,Z=e.itag);n=new Cp(n,"application/x-mpegURL",{audio:new Tm(0,F),video:new zm(L,d,h,null,void 0,Y,void 0,W),r$:a,W4:Z});X=new xsl(X,c,V?[V]:[],G,!!w);X.X=H?H:1369843;return new jz(n,X,A)}; +Jft=function(X){X=g.r(X);for(var c=X.next();!c.done;c=X.next())if(c=c.value,c.url&&(c=c.url.split("expire/"),!(c.length<=1)))return+c[1].split("/")[0];return NaN}; +Rxl=function(X,c){for(var V=g.r(Object.keys(X)),G=V.next();!G.done;G=V.next()){G=G.value;var n=X[G][0];if(!n.width&&n.r$===c.r$&&!n.audioChannels)return G}return""}; +msw=function(X){for(var c=new Set,V=g.r(Object.values(X)),G=V.next();!G.done;G=V.next())G=G.value,G.length&&(G=G[0],G.height&&G.codecs.startsWith("vp09")&&c.add(G.height));V=[];if(c.size){G=g.r(Object.keys(X));for(var n=G.next();!n.done;n=G.next())if(n=n.value,X[n].length){var L=X[n][0];L.height&&c.has(L.height)&&!L.codecs.startsWith("vp09")&&V.push(n)}}c=g.r(V);for(V=c.next();!V.done;V=c.next())delete X[V.value]}; +Hp=function(X,c){this.J=X;this.G=c}; +ORD=function(X,c,V,G){var n=[];V=g.r(V);for(var L=V.next();!L.done;L=V.next()){var d=L.value;if(d.url){L=new g.kW(d.url,!0);if(d.s){var h=L,A=d.sp,Y=bol(decodeURIComponent(d.s));h.set(A,encodeURIComponent(Y))}h=g.r(Object.keys(G));for(A=h.next();!A.done;A=h.next())A=A.value,L.set(A,G[A]);d=h8(d.type,d.quality,d.itag,d.width,d.height);n.push(new Hp(d,L))}}return A4(X.Z,n,zD(X,c),!1)}; +a6=function(X,c){this.J=X;this.G=c}; +lr1=function(X,c,V){var G=[];V=g.r(V);for(var n=V.next();!n.done;n=V.next())if((n=n.value)&&n.url){var L=h8(n.type,"medium","0");G.push(new a6(L,n.url))}return A4(X.Z,G,zD(X,c),!1)}; +MNL=function(X,c){var V=[],G=h8(c.type,"auto",c.itag);V.push(new a6(G,c.url));return A4(X.Z,V,!1,!0)}; +fr8=function(X){return X&&g2l[X]?g2l[X]:null}; +pdD=function(X){if(X=X.commonConfig)this.url=X.url,this.urlQueryOverride=X.urlQueryOverride,X.ustreamerConfig&&(this.nW=hq(X.ustreamerConfig)||void 0)}; +Irt=function(X,c){var V;if(c=c==null?void 0:(V=c.watchEndpointSupportedOnesieConfig)==null?void 0:V.html5PlaybackOnesieConfig)X.fv=new pdD(c)}; +g.$J=function(X){X=X===void 0?{}:X;this.languageCode=X.languageCode||"";this.languageName=X.languageName||null;this.kind=X.kind||"";this.name=X.name===void 0?null:X.name;this.displayName=X.displayName||null;this.id=X.id||null;this.J=X.is_servable||!1;this.isTranslateable=X.is_translateable||!1;this.url=X.url||null;this.vssId=X.vss_id||"";this.isDefault=X.is_default||!1;this.translationLanguage=X.translationLanguage||null;this.xtags=X.xtags||"";this.captionId=X.captionId||""}; +g.w4=function(X){var c={languageCode:X.languageCode,languageName:X.languageName,displayName:g.Wp(X),kind:X.kind,name:X.name,id:X.id,is_servable:X.J,is_default:X.isDefault,is_translateable:X.isTranslateable,vss_id:X.vssId};X.xtags&&(c.xtags=X.xtags);X.captionId&&(c.captionId=X.captionId);X.translationLanguage&&(c.translationLanguage=X.translationLanguage);return c}; +g.Fg=function(X){return X.translationLanguage?X.translationLanguage.languageCode:X.languageCode}; +g.NEs=function(X){var c=X.vssId;X.translationLanguage&&c&&(c="t"+c+"."+g.Fg(X));return c}; +g.Wp=function(X){var c=[];if(X.displayName)c.push(X.displayName);else{var V=X.languageName||"";c.push(V);X.kind==="asr"&&V.indexOf("(")===-1&&c.push(" (Automatic Captions)");X.name&&c.push(" - "+X.name)}X.translationLanguage&&c.push(" >> "+X.translationLanguage.languageName);return c.join("")}; +Pk8=function(X,c,V,G){X||(X=c&&UsU.hasOwnProperty(c)&&TE1.hasOwnProperty(c)?TE1[c]+"_"+UsU[c]:void 0);c=X;if(!c)return null;X=c.match(uMw);if(!X||X.length!==5)return null;if(X=c.match(uMw)){var n=Number(X[3]),L=[7,8,10,5,6];X=!(Number(X[1])===1&&n===8)&&L.indexOf(n)>=0}else X=!1;return V||G||X?c:null}; +Ef=function(X,c){for(var V={},G=g.r(Object.keys(zxU)),n=G.next();!n.done;n=G.next()){n=n.value;var L=c?c+n:n;L=X[L+"_webp"]||X[L];g.d2(L)&&(V[zxU[n]]=L)}return V}; +r4=function(X){var c={};if(!X||!X.thumbnails)return c;X=X.thumbnails.filter(function(h){return!!h.url}); +X.sort(function(h,A){return h.width-A.width||h.height-A.height}); +for(var V=g.r(Object.keys(BEt)),G=V.next();!G.done;G=V.next()){var n=Number(G.value);G=BEt[n];for(var L=g.r(X),d=L.next();!d.done;d=L.next())if(d=d.value,d.width>=n){n=KVl(d.url);g.d2(n)&&(c[G]=n);break}}(X=X.pop())&&X.width>=1280&&(X=KVl(X.url),g.d2(X)&&(c["maxresdefault.jpg"]=X));return c}; +KVl=function(X){return X.startsWith("//")?"https:"+X:X}; +Qb=function(X){return X&&X.baseUrl||""}; +ZV=function(X){X=g.A3(X);for(var c=g.r(Object.keys(X)),V=c.next();!V.done;V=c.next()){V=V.value;var G=X[V];X[V]=Array.isArray(G)?G[0]:G}return X}; +sDs=function(X,c){X.botguardData=c.playerAttestationRenderer.botguardData;c=c.playerAttestationRenderer.challenge;c!=null&&(X.Kw=c)}; +SGS=function(X,c){c=g.r(c);for(var V=c.next();!V.done;V=c.next()){V=V.value;var G=V.interstitials.map(function(d){var h=g.T(d,CkO);if(h)return{is_yto_interstitial:!0,raw_player_response:h};if(d=g.T(d,Dsl))return Object.assign({is_yto_interstitial:!0},y8(d))}); +G=g.r(G);for(var n=G.next();!n.done;n=G.next())switch(n=n.value,V.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":X.interstitials=X.interstitials.concat({time:0,playerVars:n,E0:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":X.interstitials=X.interstitials.concat({time:0x7ffffffffffff,playerVars:n,E0:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var L=Number(V.podConfig.timeToInsertAtMillis);X.interstitials=X.interstitials.concat({time:L,playerVars:n, +E0:L===0?5:7})}}}; +iRw=function(X,c){if(c=c.find(function(V){return!(!V||!V.tooltipRenderer)}))X.tooltipRenderer=c.tooltipRenderer}; +qGD=function(X,c){c.subscribeCommand&&(X.subscribeCommand=c.subscribeCommand);c.unsubscribeCommand&&(X.unsubscribeCommand=c.unsubscribeCommand);c.addToWatchLaterCommand&&(X.addToWatchLaterCommand=c.addToWatchLaterCommand);c.removeFromWatchLaterCommand&&(X.removeFromWatchLaterCommand=c.removeFromWatchLaterCommand);c.getSharePanelCommand&&(X.getSharePanelCommand=c.getSharePanelCommand)}; +XK1=function(X,c){c!=null?(X.Ps=c,X.O5=!0):(X.Ps="",X.O5=!1)}; +xJ=function(X,c){this.type=X||"";this.id=c||""}; +g.vp=function(X){return new xJ(X.substring(0,2),X.substring(2))}; +g.kJ=function(X,c){this.Fh=X;this.author="";this.sE=null;this.playlistLength=0;this.J=this.sessionData=null;this.C={};this.title="";if(c){this.author=c.author||c.playlist_author||"";this.title=c.playlist_title||"";if(X=c.session_data)this.sessionData=L1(X,"&");var V;this.J=((V=c.thumbnail_ids)==null?void 0:V.split(",")[0])||null;this.C=Ef(c,"playlist_");this.videoId=c.video_id||void 0;if(V=c.list)switch(c.listType){case "user_uploads":this.playlistId=(new xJ("UU","PLAYER_"+V)).toString();break;default:if(X= +c.playlist_length)this.playlistLength=Number(X)||0;this.playlistId=g.vp(V).toString();if(c=c.video)this.videoId=(c[0]||null).video_id||void 0}else c.playlist&&(this.playlistLength=c.playlist.toString().split(",").length)}}; +g.o6=function(X,c){this.Fh=X;this.s8=this.author="";this.sE=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.AA=this.lengthText="";this.sessionData=null;this.C={};this.title="";if(c){this.ariaLabel=c.aria_label||void 0;this.author=c.author||"";this.s8=c.s8||"";if(X=c.endscreen_autoplay_session_data)this.sE=L1(X,"&");this.Ta=c.Ta;this.isLivePlayback=c.live_playback==="1";this.isUpcoming=!!c.isUpcoming;if(X=c.length_seconds)this.lengthSeconds=typeof X==="string"?Number(X):X;this.lengthText= +c.lengthText||"";this.AA=c.AA||"";this.publishedTimeText=c.publishedTimeText||void 0;if(X=c.session_data)this.sessionData=L1(X,"&");this.shortViewCount=c.short_view_count_text||void 0;this.C=Ef(c);this.title=c.title||"";this.videoId=c.docid||c.video_id||c.videoId||c.id||void 0;this.watchUrl=c.watchUrl||void 0}}; +cll=function(X){var c,V,G=(c=X.getWatchNextResponse())==null?void 0:(V=c.contents)==null?void 0:V.twoColumnWatchNextResults,n,L,d,h,A;X=(n=X.getWatchNextResponse())==null?void 0:(L=n.playerOverlays)==null?void 0:(d=L.playerOverlayRenderer)==null?void 0:(h=d.endScreen)==null?void 0:(A=h.watchNextEndScreenRenderer)==null?void 0:A.results;if(!X){var Y,H;X=G==null?void 0:(Y=G.endScreen)==null?void 0:(H=Y.endScreen)==null?void 0:H.results}return X}; +g.J4=function(X){var c,V,G;X=g.T((c=X.getWatchNextResponse())==null?void 0:(V=c.playerOverlays)==null?void 0:(G=V.playerOverlayRenderer)==null?void 0:G.decoratedPlayerBarRenderer,ez);return g.T(X==null?void 0:X.playerBar,VT8)}; +GAU=function(X){this.J=X.playback_progress_0s_url;this.U=X.playback_progress_2s_url;this.G=X.playback_progress_10s_url}; +nlS=function(){if(mf===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(c){}a:{try{var X=!!self.localStorage}catch(c){X=!1}if(X&&(X=g.Nw(g.i5()+"::yt-player"))){mf=new BB(X);break a}mf=void 0}}return mf}; +g.R6=function(){var X=nlS();if(!X)return{};try{var c=X.get("yt-player-lv");return JSON.parse(c||"{}")}catch(V){return{}}}; +g.LR1=function(X){var c=nlS();c&&(X=JSON.stringify(X),c.set("yt-player-lv",X))}; +g.bj=function(X){return g.R6()[X]||0}; +g.t4=function(X,c){var V=g.R6();c!==V[X]&&(c!==0?V[X]=c:delete V[X],g.LR1(V))}; +g.Of=function(X){return g.O(function(c){return c.return(g.C$(dzs(),X))})}; +MV=function(X,c,V,G,n,L,d,h){var A,Y,H,a,W,w;return g.O(function(F){switch(F.J){case 1:return A=g.bj(X),A===4?F.return(4):g.b(F,g.GM(),2);case 2:Y=F.G;if(!Y)throw g.o0("wiac");if(!h||d===void 0){F.Wl(3);break}return g.b(F,yls(h,d),4);case 4:d=F.G;case 3:return H=V.lastModified||"0",g.b(F,g.Of(Y),5);case 5:return a=F.G,g.x1(F,6),lj++,g.b(F,g.gi(a,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",SS:!0},function(Z){if(L!==void 0&&d!==void 0){var v=""+X+"|"+c.id+"|"+H+"|"+String(L).padStart(10, +"0");v=g.f$(Z.objectStore("media"),d,v)}else v=g.Ja.resolve(void 0);var e=hjj(X,c.EN()),m=hjj(X,!c.EN()),t={fmts:Alw(G),format:V||{}};e=g.f$(Z.objectStore("index"),t,e);var f=G.downloadedEndTime===-1;t=f?Z.objectStore("index").get(m):g.Ja.resolve(void 0);var U={fmts:"music",format:{}};Z=f&&n&&!c.EN()?g.f$(Z.objectStore("index"),U,m):g.Ja.resolve(void 0);return g.Ja.all([Z,t,v,e]).then(function(C){C=g.r(C);C.next();C=C.next().value;lj--;var K=g.bj(X);if(K!==4&&f&&n||C!==void 0&&g.YRD(C.fmts))K=1,g.t4(X, +K);return K})}),8); +case 8:return F.return(F.G);case 6:W=g.o8(F);lj--;w=g.bj(X);if(w===4)return F.return(w);g.t4(X,4);throw W;}})}; +g.j2w=function(X){var c,V;return g.O(function(G){if(G.J==1)return g.b(G,g.GM(),2);if(G.J!=3){c=G.G;if(!c)throw g.o0("ri");return g.b(G,g.Of(c),3)}V=G.G;return G.return(g.gi(V,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(n){var L=IDBKeyRange.bound(X+"|",X+"~");return n.objectStore("index").getAll(L).then(function(d){return d.map(function(h){return h?h.format:{}})})}))})}; +aCl=function(X,c,V,G,n){var L,d,h;return g.O(function(A){if(A.J==1)return g.b(A,g.GM(),2);if(A.J!=3){L=A.G;if(!L)throw g.o0("rc");return g.b(A,g.Of(L),3)}d=A.G;h=g.gi(d,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(Y){var H=""+X+"|"+c+"|"+V+"|"+String(G).padStart(10,"0");return Y.objectStore("media").get(H)}); +return n?A.return(h.then(function(Y){if(Y===void 0)throw Error("No data from indexDb");return HAj(n,Y)}).catch(function(Y){throw new g.SP("Error while reading chunk: "+Y.name+", "+Y.message); +})):A.return(h)})}; +g.YRD=function(X){return X?X==="music"?!0:X.includes("dlt=-1")||!X.includes("dlt="):!1}; +hjj=function(X,c){return""+X+"|"+(c?"v":"a")}; +Alw=function(X){var c={};return dd((c.dlt=X.downloadedEndTime.toString(),c.mket=X.maxKnownEndTime.toString(),c.avbr=X.averageByteRate.toString(),c))}; +WRO=function(X){var c={},V={};X=g.r(X);for(var G=X.next();!G.done;G=X.next()){var n=G.value,L=n.split("|");n.match(g.$z1)?(G=Number(L.pop()),isNaN(G)?V[n]="?":(L=L.join("|"),(n=c[L])?(L=n[n.length-1],G===L.end+1?L.end=G:n.push({start:G,end:G})):c[L]=[{start:G,end:G}])):V[n]="?"}X=g.r(Object.keys(c));for(G=X.next();!G.done;G=X.next())G=G.value,V[G]=c[G].map(function(d){return d.start+"-"+d.end}).join(","); +return V}; +g4=function(X){g.$T.call(this);this.J=null;this.U=new ub;this.J=null;this.B=new Set;this.crossOrigin=X||""}; +wKl=function(X,c,V){for(V=fW(X,V);V>=0;){var G=X.levels[V];if(G.isLoaded(pW(G,c))&&(G=g.I6(G,c)))return G;V--}return g.I6(X.levels[0],c)}; +Els=function(X,c,V){V=fW(X,V);for(var G,n;V>=0;V--)if(G=X.levels[V],n=pW(G,c),!G.isLoaded(n)){G=X;var L=V,d=L+"-"+n;G.B.has(d)||(G.B.add(d),G.U.enqueue(L,{C8:L,Dh:n}))}FRL(X)}; +FRL=function(X){if(!X.J&&!X.U.isEmpty()){var c=X.U.remove();X.J=rl1(X,c)}}; +rl1=function(X,c){var V=document.createElement("img");X.crossOrigin&&(V.crossOrigin=X.crossOrigin);V.src=X.levels[c.C8].Yc(c.Dh);V.onload=function(){var G=c.C8,n=c.Dh;X.J!==null&&(X.J.onload=null,X.J=null);G=X.levels[G];G.loaded.add(n);FRL(X);var L=G.columns*G.rows;n*=L;G=Math.min(n+L-1,G.ZV()-1);n=[n,G];X.publish("l",n[0],n[1])}; +return V}; +g.NV=function(X,c,V,G){this.level=X;this.X=c;this.loaded=new Set;this.level=X;this.X=c;X=V.split("#");this.width=Math.floor(Number(X[0]));this.height=Math.floor(Number(X[1]));this.frameCount=Math.floor(Number(X[2]));this.columns=Math.floor(Number(X[3]));this.rows=Math.floor(Number(X[4]));this.J=Math.floor(Number(X[5]));this.U=X[6];this.signature=X[7];this.videoLength=G}; +pW=function(X,c){return Math.floor(c/(X.columns*X.rows))}; +g.I6=function(X,c){c>=X.ZZ()&&X.nh();var V=pW(X,c),G=X.columns*X.rows,n=c%G;c=n%X.columns;n=Math.floor(n/X.columns);var L=X.nh()+1-G*V;if(L1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; +Q2s=function(X,c,V){return(X=X.levels[c])?X.FM(V):-1}; +fW=function(X,c){var V=X.X.get(c);if(V)return V;V=X.levels.length;for(var G=0;G=c)return X.X.set(c,G),G;X.X.set(c,V-1);return V-1}; +T_=function(X,c,V,G){V=V.split("#");V=[V[1],V[2],0,V[3],V[4],-1,V[0],""].join("#");g.NV.call(this,X,c,V,0);this.G=null;this.Z=G?2:0}; +uj=function(X,c,V,G){Uf.call(this,X,0,void 0,c,!(G===void 0||!G));for(X=0;X(V!=null?V:50)&&(V=RjD.shift())&&DV.delete(V),V=n),n!==V&&X.l0("ssei","dcpn_"+n+"_"+V+"_"+X.clientPlaybackNonce),V)}; +KW=function(X,c){var V=c.raw_watch_next_response;if(!V){var G=c.watch_next_response;G&&(V=JSON.parse(G))}if(V){X.QK=V;var n=X.QK.playerCueRangeSet;n&&g.Sz(X,n);var L=X.QK.playerOverlays;if(L){var d=L.playerOverlayRenderer;if(d){var h=d.autonavToggle;h&&(X.autoplaySwitchButtonRenderer=g.T(h,bA8),X.S("web_player_autonav_use_server_provided_state")&&ij(X)&&(X.autonavState=X.autoplaySwitchButtonRenderer.enabled?2:1));var A=d.videoDetails;if(A){var Y=A.embeddedPlayerOverlayVideoDetailsRenderer;var H=A.playerOverlayVideoDetailsRenderer; +H&&(H.title&&(c.title=g.xT(H.title)),H.subtitle&&(c.subtitle=g.xT(H.subtitle)))}g.g0(X.Fh)&&(X.gs=!!d.addToMenu);tTD(X,d.shareButton);d.startPosition&&d.endPosition&&(X.progressBarStartPosition=d.startPosition,X.progressBarEndPosition=d.endPosition);var a=d.gatedActionsOverlayRenderer;a&&(X.cV=g.T(a,OAl));var W,w,F,Z=g.T((W=X.getWatchNextResponse())==null?void 0:(w=W.playerOverlays)==null?void 0:(F=w.playerOverlayRenderer)==null?void 0:F.infoPanel,lCD);if(Z){X.xl=Number(Z==null?void 0:Z.durationMs)|| +NaN;if(Z==null?0:Z.infoPanelOverviewViewModel)X.LJ=Z==null?void 0:Z.infoPanelOverviewViewModel;if(Z==null?0:Z.infoPanelDetailsViewModel)X.hJ=Z==null?void 0:Z.infoPanelDetailsViewModel}X.showSeekingControls=!!d.showSeekingControls}}var v,e,m=(v=X.getWatchNextResponse())==null?void 0:(e=v.contents)==null?void 0:e.twoColumnWatchNextResults;if(m){var t=m.desktopOverlay&&g.T(m.desktopOverlay,MTO);t&&(t.suppressShareButton&&(X.showShareButton=!1),t.suppressWatchLaterButton&&(X.gs=!1))}Y&&gll(X,c,Y);var f= +Aj(0,c.autoplay_count),U=X.getWatchNextResponse(),C,K=(C=U.contents)==null?void 0:C.twoColumnWatchNextResults,nj,yl,Xl,u=(nj=U.playerOverlays)==null?void 0:(yl=nj.playerOverlayRenderer)==null?void 0:(Xl=yl.autoplay)==null?void 0:Xl.playerOverlayAutoplayRenderer,q=cll(X),Q,P=(Q=U.contents)==null?void 0:Q.singleColumnWatchNextResults;if(P){var Tt;if(((Tt=P.autoplay)==null?0:Tt.autoplay)&&!P.playlist){var xU=P.autoplay.autoplay.sets,$U={},Js=new g.o6(X.j()),iO=null,dM;if(xU){for(var Fr=g.r(xU),k=Fr.next();!k.done;k= +Fr.next()){var J=k.value.autoplayVideoRenderer;if(J&&J.compactVideoRenderer){iO=J.compactVideoRenderer;break}}if(dM=xU[0].autoplayVideo){var R=dM.clickTrackingParams;R&&($U.itct=R);$U.autonav="1";$U.playnext=String(f)}}else $U.feature="related-auto";var l=g.T(dM,g.qV);if(iO){Js.videoId=iO.videoId;var p=iO.shortBylineText;p&&(Js.author=g.xT(p));var cw=iO.title;cw&&(Js.title=g.xT(cw))}else l!=null&&l.videoId&&(Js.videoId=l.videoId);Js.sE=$U;X.suggestions=[];X.cL=Js}}if(q){for(var Lj=[],ds=g.r(q),M= +ds.next();!M.done;M=ds.next()){var jD=M.value,Fl=void 0,As=null;if(jD.endScreenVideoRenderer){var ts=jD.endScreenVideoRenderer,W7=ts.title;As=new g.o6(X.j());As.videoId=ts.videoId;As.lengthSeconds=ts.lengthInSeconds||0;var Nk=ts.publishedTimeText;Nk&&(As.publishedTimeText=g.xT(Nk));var $5=ts.shortBylineText;$5&&(As.author=g.xT($5));var Bw=ts.shortViewCountText;Bw&&(As.shortViewCount=g.xT(Bw));if(W7){As.title=g.xT(W7);var UL=W7.accessibility;if(UL){var Ai=UL.accessibilityData;Ai&&Ai.label&&(As.ariaLabel= +Ai.label)}}var ly=ts.navigationEndpoint;if(ly){Fl=ly.clickTrackingParams;var zV=g.T(ly,g.qV),j9=g.T(ly,g.ud);zV?As.Ta=zV:j9!=null&&(As.watchUrl=j9.url)}var PW=ts.thumbnailOverlays;if(PW)for(var To=g.r(PW),zv=To.next();!zv.done;zv=To.next()){var Qj=zv.value.thumbnailOverlayTimeStatusRenderer;if(Qj)if(Qj.style==="LIVE"){As.isLivePlayback=!0;break}else if(Qj.style==="UPCOMING"){As.isUpcoming=!0;break}}As.C=r4(ts.thumbnail)}else if(jD.endScreenPlaylistRenderer){var H1=jD.endScreenPlaylistRenderer,bP= +H1.navigationEndpoint;if(!bP)continue;var $m=g.T(bP,g.qV);if(!$m)continue;var tu=$m.videoId;As=new g.kJ(X.j());As.playlistId=H1.playlistId;As.playlistLength=Number(H1.videoCount)||0;As.J=tu||null;As.videoId=tu;var MX=H1.title;MX&&(As.title=g.xT(MX));var g6=H1.shortBylineText;g6&&(As.author=g.xT(g6));Fl=bP.clickTrackingParams;As.C=r4(H1.thumbnail)}As&&(Fl&&(As.sessionData={itct:Fl}),Lj.push(As))}X.suggestions=Lj}if(u){X.UP=!!u.preferImmediateRedirect;X.jX=X.jX||!!u.webShowNewAutonavCountdown;X.uV= +X.uV||!!u.webShowBigThumbnailEndscreen;if(X.jX||X.uV){var eS=K||null,qx=new g.o6(X.j());qx.videoId=u.videoId;var BW=u.videoTitle;if(BW){qx.title=g.xT(BW);var nS=BW.accessibility;if(nS){var xG=nS.accessibilityData;xG&&xG.label&&(qx.ariaLabel=xG.label)}}var NK=u.byline;NK&&(qx.author=g.xT(NK));var WY=u.publishedTimeText;WY&&(qx.publishedTimeText=g.xT(WY));var oQ=u.shortViewCountText;oQ&&(qx.shortViewCount=g.xT(oQ));var eU=u.thumbnailOverlays;if(eU)for(var J8=g.r(eU),hM=J8.next();!hM.done;hM=J8.next()){var dS= +hM.value.thumbnailOverlayTimeStatusRenderer;if(dS)if(dS.style==="LIVE"){qx.isLivePlayback=!0;break}else if(dS.style==="UPCOMING"){qx.isUpcoming=!0;break}else if(dS.style==="DEFAULT"&&dS.text){qx.lengthText=g.xT(dS.text);var AM=dS.text.accessibility;if(AM){var Ye=AM.accessibilityData;Ye&&Ye.label&&(qx.AA=Ye.label||"")}break}}qx.C=r4(u.background);var m$=u.nextButton;if(m$){var RQ=m$.buttonRenderer;if(RQ){var bX=RQ.navigationEndpoint;if(bX){var t8=g.T(bX,g.qV);t8&&(qx.Ta=t8)}}}if(u.topBadges){var Oo= +u.topBadges[0];if(Oo){var lX=g.T(Oo,fCD);lX&&lX.style==="BADGE_STYLE_TYPE_PREMIUM"&&(qx.W8y=!0)}}var z2=u.alternativeTitle;z2&&(qx.s8=g.xT(z2));var vL={autonav:"1",playnext:String(f)};qx.playlistId&&(vL.autoplay="1");if(eS){var BJ,B1,j1,M1,Hh=(BJ=eS.autoplay)==null?void 0:(B1=BJ.autoplay)==null?void 0:(j1=B1.sets)==null?void 0:(M1=j1[0])==null?void 0:M1.autoplayVideo;if(Hh){var gq=Hh.clickTrackingParams;gq&&(vL.itct=gq);var aG=g.T(Hh,g.qV);aG&&(qx.iz=aG)}}else if(u){var fu,pu,IQ,N1=(fu=u.nextButton)== +null?void 0:(pu=fu.buttonRenderer)==null?void 0:(IQ=pu.navigationEndpoint)==null?void 0:IQ.clickTrackingParams;N1&&(vL.itct=N1)}vL.itct||(vL.feature="related-auto");qx.sE=vL;X.suggestions||(X.suggestions=[]);X.cL=qx}u.countDownSecs!=null&&(X.uC=u.countDownSecs*1E3);u.countDownSecsForFullscreen!=null&&(X.B8=u.countDownSecsForFullscreen>=0?u.countDownSecsForFullscreen*1E3:-1);X.S("web_autonav_color_transition")&&u.watchToWatchTransitionRenderer&&(X.watchToWatchTransitionRenderer=g.T(u.watchToWatchTransitionRenderer, +pKs))}var $e=cll(X);if($e){var Q5,Uo,Wh,wr=$e==null?void 0:(Q5=$e[0])==null?void 0:(Uo=Q5.endScreenVideoRenderer)==null?void 0:(Wh=Uo.navigationEndpoint)==null?void 0:Wh.clickTrackingParams,Tz=g.X2(X);wr&&Tz&&(Tz.sessionData={itct:wr})}X.QK.currentVideoThumbnail&&(X.C=r4(X.QK.currentVideoThumbnail));var KQ,uX,PZ,sq,zz,Z$=(KQ=X.QK)==null?void 0:(uX=KQ.contents)==null?void 0:(PZ=uX.twoColumnWatchNextResults)==null?void 0:(sq=PZ.results)==null?void 0:(zz=sq.results)==null?void 0:zz.contents;if(Z$&&Z$[1]){var BZ, +Ku,oI,vN,fc=(BZ=Z$[1].videoSecondaryInfoRenderer)==null?void 0:(Ku=BZ.owner)==null?void 0:(oI=Ku.videoOwnerRenderer)==null?void 0:(vN=oI.thumbnail)==null?void 0:vN.thumbnails;fc&&fc.length&&(X.profilePicture=fc[fc.length-1].url)}var so=He(c),F0,x$=(F0=X.getWatchNextResponse())==null?void 0:F0.onResponseReceivedEndpoints;if(x$)for(var vi=g.r(x$),Er=vi.next();!Er.done;Er=vi.next()){var pc=Er.value;g.T(pc,cJ)&&(X.KC=g.T(pc,cJ));var k$=g.T(pc,ICl),Cu=void 0;if((Cu=k$)==null?0:Cu.entityKeys)X.JA=k$.entityKeys|| +[],k$.visibleOnLoadKeys&&(X.visibleOnLoadKeys=k$.visibleOnLoadKeys)}if(X.S("web_key_moments_markers")){var Dz=g.Vu.getState().entities,hS=g.aW("visibility_override","markersVisibilityOverrideEntity");var Ua=Wc(Dz,"markersVisibilityOverrideEntity",hS);X.hX=(Ua==null?void 0:Ua.videoId)===(X.videoId||so)&&(Ua==null?0:Ua.visibilityOverrideMarkersKey)?Ua.visibilityOverrideMarkersKey:X.visibleOnLoadKeys;X.visibleOnLoadKeys=[].concat(g.x(X.hX))}}}; +ij=function(X){var c;return((c=X.autoplaySwitchButtonRenderer)==null?void 0:c.enabled)!==void 0}; +G2=function(X){return!!(X.U&&X.U.videoInfos&&X.U.videoInfos.length)}; +g.hH=function(X){var c=X.T;X.S("html5_gapless_unlimit_format_selection")&&nQ(X)&&(c=!1);var V=!!X.J&&X.J.ZQ,G=X.Fh,n=X.JH(),L=LQ(X),d=X.qE,h=c,A=X.isOtf();c=X.xs();var Y=X.yK,H=X.getUserAudio51Preference(),a=dk(X),W=new Hgw(G);if(G.YU()||G.S("html5_logging_format_selection"))W.G=!0;W.LS=L;W.qE=d&&G.D;W.wy=H;g.K1("windows nt 5.1")&&!g.Tb&&(W.vz=!0);if(L=n)L=g.cp(G)?HRs(G):!1;L&&(W.A7=!0);h&&(W.vz=!0,W.G2=!0);A&&!G.S("html5_otf_prefer_vp9")&&(W.vz=!0);G.playerStyle==="picasaweb"&&(A&&(W.vz=!1),W.kO= +!1);Y&&(W.vz=!0);xW(G.Z,v4.CHANNELS)&&(G.S("html5_enable_ac3")&&(W.X=!0),G.S("html5_enable_eac3")&&(W.Z=!0),G.S("html5_enable_ac3_gapless")&&(W.Hl=!0));G.S("html5_block_8k_hfr")&&(W.T_=!0);W.B=g.EZ(G.experiments,"html5_max_selectable_quality_ordinal");W.D=g.EZ(G.experiments,"html5_min_selectable_quality_ordinal");e3&&(W.oZ=480);if(V||n)W.kO=!1;W.yK=!1;W.disableAv1=a;V=OX(G,W.J,void 0,W.disableAv1);V>0&&V<2160&&(ZG()||G.S("html5_format_hybridization"))&&(W.J.supportsChangeType=+ZG(),W.xR=V);V>=2160&& +(W.Pl=!0);NGD()&&(W.J.serveVp9OverAv1IfHigherRes=0,W.Bd=!1);W.xs=c;W.YO=g.q8||Lv()&&!c?!1:!0;W.T=G.S("html5_format_hybridization");W.HP=G.S("html5_disable_encrypted_vp9_live_non_2k_4k");yu(X)&&(W.Od=X.S("html5_prefer_language_over_codec"));D9()&&X.playerResponse&&X.playerResponse.playerConfig&&X.playerResponse.playerConfig.webPlayerConfig&&X.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(W.X=!0,W.Z=!0);X.T&&X.isAd()&&(X.xk&&(W.G_=X.xk),X.mT&&(W.U=X.mT));W.QK=X.isLivePlayback&& +X.PE()&&X.Fh.S("html5_drm_live_audio_51");W.hX=X.TE;return X.bH=W}; +dk=function(X){return X.Fh.S("html5_disable_av1")||X.S("html5_gapless_shorts_disable_av1")&&nQ(X)?!0:!1}; +N8w=function(X){zh("drm_pb_s",void 0,X.YO);X.T_||X.J&&FT(X.J);var c={};X.J&&(c=ikw(X.r7,g.hH(X),X.Fh.Z,X.J,function(V){return X.publish("ctmp","fmtflt",V)},!0,new Set)); +c=new sX(c,X.Fh,X.t$,X.useCobaltWidevine?D9()?AH(X):!1:!1,function(V,G){X.Oy(V,G)}); +g.N(X,c);X.qc=!1;X.loading=!0;vNj(c,function(V){zh("drm_pb_f",void 0,X.YO);for(var G=g.r(V),n=G.next();!n.done;n=G.next())switch(n=n.value,n.flavor){case "fairplay":n.T_=X.T_;n.XE=X.XE;n.d7=X.d7;break;case "widevine":n.Bo=X.Bo}X.VX=V;if(X.VX.length>0&&(X.Z=X.VX[0],X.Fh.YU())){V={};G=g.r(Object.entries(X.Z.J));for(n=G.next();!n.done;n=G.next()){var L=g.r(n.value);n=L.next().value;L=L.next().value;var d="unk";(n=n.match(/(.*)codecs="(.*)"/))&&(d=n[2]);V[d]=L}X.Oy("drmProbe",V)}X.J8()})}; +UzO=function(X,c){if(c.length===0||YB(X))return null;jj(X,"html5_enable_cobalt_experimental_vp9_decoder")&&(RE=!0);var V=X.r$;var G=X.lengthSeconds,n=X.isLivePlayback,L=X.bf,d=X.Fh,h=SoU(c);if(n||L){d=d.experiments;G=new $F("",d,!0);G.G=!L;G.ZQ=!0;G.isManifestless=!0;G.isLive=!L;G.bf=L;c=g.r(c);for(n=c.next();!n.done;n=c.next()){var A=n.value;n=FY(A,V);h=bW(A);h=rf(h.Ip||A.url||"",h.y4,h.s);var Y=h.get("id");Y&&Y.includes("%7E")&&(G.C=!0);var H=void 0;Y=(H=d)==null?void 0:H.lc("html5_max_known_end_time_rebase"); +H=Number(A.targetDurationSec||5);A=Number(A.maxDvrDurationSec||14400);var a=Number(h.get("mindsq")||h.get("min_sq")||"0"),W=Number(h.get("maxdsq")||h.get("max_sq")||"0")||Infinity;G.uH=G.uH||a;G.HE=G.HE||W;var w=!ys(n.mimeType);h&&jt(G,new i$(h,n,{MY:H,e7:w,GP:A,uH:a,HE:W,EG:300,bf:L,vk:Y}))}V=G}else if(h==="FORMAT_STREAM_TYPE_OTF"){G=G===void 0?0:G;L=new $F("",d.experiments,!1);L.duration=G||0;d=g.r(c);for(G=d.next();!G.done;G=d.next())G=G.value,c=FY(G,V,L.duration),n=bW(G),(n=rf(n.Ip||G.url||"", +n.y4,n.s))&&(c.streamType==="FORMAT_STREAM_TYPE_OTF"?jt(L,new qQ(n,c,"sq/0")):jt(L,new hF(n,c,OC(G.initRange),OC(G.indexRange))));L.isOtf=!0;V=L}else{G=G===void 0?0:G;L=new $F("",d.experiments,!1);L.duration=G||0;d=g.r(c);for(G=d.next();!G.done;G=d.next())h=G.value,G=FY(h,V,L.duration),c=OC(h.initRange),n=OC(h.indexRange),Y=bW(h),(h=rf(Y.Ip||h.url||"",Y.y4,Y.s))&&jt(L,new hF(h,G,c,n));V=L}L=X.isLivePlayback&&!X.bf&&!X.wy&&!X.isPremiere;X.S("html5_live_head_playable")&&(!HJ(X)&&L&&X.Oy("missingLiveHeadPlayable", +{}),X.Fh.G_==="yt"&&(V.LS=!0));return V}; +YB=function(X){return D9()?!AH(X):i9()?!(!X.T_||!X.S("html5_enable_safari_fairplay")&&Vm()):!1}; +AH=function(X){return X.S("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; +g.Sz=function(X,c){c=g.r(c);for(var V=c.next();!V.done;V=c.next())if(V=V.value,V.cueRangeSetIdentifier){var G=void 0;X.xZ.set(V.cueRangeSetIdentifier,(G=V.playerCueRanges)!=null?G:[])}}; +av=function(X){return!(!X.J||!X.J.isManifestless)}; +$B=function(X){return X.pM?X.isLowLatencyLiveStream&&X.J!=null&&vy(X.J)>=5:X.isLowLatencyLiveStream&&X.J!=void 0&&vy(X.J)>=5}; +T8l=function(X){return D9()&&AH(X)?!1:YB(X)&&(g.bL(X.Fh)?!X.isLivePlayback:X.hlsvp)||!Vm()||X.Em?!0:!1}; +zjS=function(X){X.loading=!0;X.tf=!1;if(uH2(X))g.j2w(X.videoId).then(function(G){PS1(X,G)}).then(function(){X.J8()}); +else{Lk(X.gm)||g.UQ(new g.SP("DASH MPD Origin invalid: ",X.gm));var c=X.gm,V=g.EZ(X.Fh.experiments,"dash_manifest_version")||4;c=g.KB(c,{mpd_version:V});X.isLowLatencyLiveStream&&X.latencyClass!=="NORMAL"||(c=g.KB(c,{pacing:0}));LGS(c,X.Fh.experiments,X.isLivePlayback).then(function(G){X.vl()||(WJ(X,G,!0),zh("mrc",void 0,X.YO),X.J8())},function(G){X.vl()||(X.loading=!1,X.publish("dataloaderror",new tm("manifest.net.retryexhausted",{backend:"manifest", +rc:G.status},1)))}); +zh("mrs",void 0,X.YO)}}; +PS1=function(X,c){var V=c.map(function(A){return A.itag}),G; +if((G=X.playerResponse)!=null&&G.streamingData){G=[];if(X.S("html5_offline_always_use_local_formats")){V=0;for(var n=g.r(c),L=n.next();!L.done;L=n.next()){L=L.value;var d=Object.assign({},L);d.signatureCipher="";G.push(d);d=g.r(X.playerResponse.streamingData.adaptiveFormats);for(var h=d.next();!h.done;h=d.next())if(h=h.value,L.itag===h.itag&&L.xtags===h.xtags){V+=1;break}}VH&&(H=w.getInfo().audio.numChannels)}H>2&&X.Oy("hlschl",{mn:H});var v;((v=X.bH)==null?0:v.G)&&X.Oy("hlsfmtaf",{itags:a.join(".")});var e;if(X.S("html5_enable_vp9_fairplay")&&((e=X.Z)==null?0:NY(e)))for(X.Oy("drm",{sbdlfbk:1}),H=g.r(X.VX),a=H.next();!a.done;a=H.next())if(a=a.value,IE(a)){X.Z=a;break}rk(X,Y)})}return f1()}; +DzS=function(X){if(X.isExternallyHostedPodcast&&X.jL){var c=Eq(X.jL);if(!c[0])return f1();X.Ve=c[0];return MNL(X.Fh,c[0]).then(function(V){rk(X,V)})}return X.xo&&X.Me?lr1(X.Fh,X.isAd(),X.xo).then(function(V){rk(X,V)}):f1()}; +iAD=function(X){if(X.isExternallyHostedPodcast)return f1();var c=Eq(X.jL,X.Mf);if(X.hlsvp){var V=ZAl(X.hlsvp,X.clientPlaybackNonce,X.tT);c.push(V)}return ORD(X.Fh,X.isAd(),c,SRj(X)).then(function(G){rk(X,G)})}; +rk=function(X,c){X.Wg=c;X.KI(new H4(g.Rt(X.Wg,function(V){return V.getInfo()})))}; +SRj=function(X){var c={cpn:X.clientPlaybackNonce,c:X.Fh.J.c,cver:X.Fh.J.cver};X.PO&&(c.ptk=X.PO,c.oid=X.qw,c.ptchn=X.o7,c.pltype=X.J5,X.Yk&&(c.m=X.Yk));return c}; +g.Qu=function(X){return YB(X)&&X.T_?(X={},X.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",X):X.G&&X.G.r$||null}; +qRs=function(X){var c=Zz(X);return c&&c.text?g.xT(c.text):X.paidContentOverlayText}; +Xq1=function(X){var c=Zz(X);return c&&c.durationMs?GV(c.durationMs):X.paidContentOverlayDurationMs}; +Zz=function(X){var c,V,G;return X.playerResponse&&X.playerResponse.paidContentOverlay&&X.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.T((c=X.QK)==null?void 0:(V=c.playerOverlays)==null?void 0:(G=V.playerOverlayRenderer)==null?void 0:G.playerDisclosure,cow)||null}; +xB=function(X){var c="";if(X.DB)return X.DB;X.isLivePlayback&&(c=X.allowLiveDvr?"dvr":X.isPremiere?"lp":X.wy?"window":"live");X.bf&&(c="post");return c}; +g.vJ=function(X,c){return typeof X.keywords[c]!=="string"?null:X.keywords[c]}; +V0D=function(X){return!!X.TZ||!!X.Ep||!!X.fn||!!X.Nv||X.sX||X.D.focEnabled||X.D.rmktEnabled}; +g.kB=function(X){return!!(X.gm||X.jL||X.xo||X.hlsvp||X.wF())}; +Bp=function(X){if(X.S("html5_onesie")&&X.errorCode)return!1;var c=g.SV(X.NW,"ypc");X.ypcPreview&&(c=!1);return X.d$()&&!X.loading&&(g.kB(X)||g.SV(X.NW,"heartbeat")||c)}; +Eq=function(X,c){X=h3(X);var V={};if(c){c=g.r(c.split(","));for(var G=c.next();!G.done;G=c.next())(G=G.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(V[G[1]]={width:G[2],height:G[3]})}c=g.r(X);for(G=c.next();!G.done;G=c.next()){G=G.value;var n=V[G.itag];n&&(G.width=n.width,G.height=n.height)}return X}; +ov=function(X){var c=X.getAvailableAudioTracks();c=c.concat(X.SU);for(var V=0;V0:c||X.adFormat!=="17_8"||X.isAutonav||g.q7(X.Fh)||X.QB?X.vW?!1:X.Fh.jL||X.Fh.MJ||!g.RT(X.Fh)?!c&&fQ(X)==="adunit"&&X.TZ?!1:!0:!1:!1:(X.vW?0:X.pJ)&&g.RT(X.Fh)?!0:!1;X.S("html5_log_detailpage_autoplay")&&fQ(X)==="detailpage"&&X.Oy("autoplay_info",{autoplay:X.Tx,autonav:X.isAutonav,wasDompaused:X.vW,result:c});return c}; +g.T2=function(X){return X.oauthToken||X.Fh.SU}; +W7D=function(X){if(X.S("html5_stateful_audio_normalization")){var c=1,V=g.EZ(X.Fh.experiments,"html5_default_ad_gain");V&&X.isAd()&&(c=V);var G;if(V=((G=X.X)==null?void 0:G.audio.G)||X.Jm){G=(0,g.ta)();X.Nc=2;var n=G-X.Fh.Og<=X.maxStatefulTimeThresholdSec*1E3;X.applyStatefulNormalization&&n?X.Nc=4:n||(X.Fh.Gz=Infinity,X.Fh.Og=NaN);n=(X.Nc===4?g.am(X.Fh.Gz,X.minimumLoudnessTargetLkfs,X.loudnessTargetLkfs):X.loudnessTargetLkfs)-V;if(X.Nc!==4){var L,d,h,A,Y=((L=X.playerResponse)==null?void 0:(d=L.playerConfig)== +null?void 0:(h=d.audioConfig)==null?void 0:(A=h.loudnessNormalizationConfig)==null?void 0:A.statelessLoudnessAdjustmentGain)||0;n+=Y}n=Math.min(n,0);X.preserveStatefulLoudnessTarget&&(X.Fh.Gz=V+n,X.Fh.Og=G);X=Math.min(1,Math.pow(10,n/20))||c}else X=$I2(X)}else X=$I2(X);return X}; +$I2=function(X){var c=1,V=g.EZ(X.Fh.experiments,"html5_default_ad_gain");V&&X.isAd()&&(c=V);var G;if(V=((G=X.X)==null?void 0:G.audio.U)||X.lX)X.Nc=1;return Math.min(1,Math.pow(10,-V/20))||c}; +LQ=function(X){var c=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],V=i7(X.Fh)==="TVHTML5_SIMPLY"&&X.Fh.J.ctheme==="MUSIC";X.MJ||!g.uG(X.Fh)&&!V||!c.includes(X.musicVideoType)&&!X.isExternallyHostedPodcast||(X.MJ=!0);if(c=g.C1())c=/Starboard\/([0-9]+)/.exec(g.bA()),c=(c?parseInt(c[1],10):NaN)<10;V=X.Fh;V=(i7(V)==="TVHTML5_CAST"||i7(V)==="TVHTML5"&&(V.J.cver.startsWith("6.20130725")||V.J.cver.startsWith("6.20130726")))&&X.Fh.J.ctheme==="MUSIC";var G;if(G=!X.MJ)V||(V=X.Fh,V=i7(V)=== +"TVHTML5"&&V.J.cver.startsWith("7")),G=V;G&&!c&&(c=X.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",V=(X.S("cast_prefer_audio_only_for_atv_and_uploads")||X.S("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&X.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",c||V||X.isExternallyHostedPodcast)&&(X.MJ=!0);return X.Fh.deviceIsAudioOnly||X.MJ&&X.Fh.D}; +g.wqO=function(X){var c;if(!(c=X.S("html5_enable_sabr_live_captions")&&X.ZQ()&&yu(X))){var V,G,n;c=((V=X.playerResponse)==null?void 0:(G=V.playerConfig)==null?void 0:(n=G.compositeVideoConfig)==null?void 0:n.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}return c}; +uN=function(X){var c,V,G;return!!((c=X.playerResponse)==null?0:(V=c.playerConfig)==null?0:(G=V.mediaCommonConfig)==null?0:G.splitScreenEligible)}; +PJ=function(X){var c;return!((c=X.playerResponse)==null||!c.compositePlayabilityStatus)}; +F7L=function(X){return isNaN(X)?0:Math.max((Date.now()-X)/1E3-30,0)}; +CQ=function(X){return!(!X.v5||!X.Fh.D)&&X.wF()}; +Sj=function(X){return X.enablePreroll&&X.enableServerStitchedDai}; +EID=function(X){return X.ql&&!X.yr}; +yu=function(X){var c=X.S("html5_enable_sabr_on_drive")&&X.Fh.G_==="gd";if(X.nQ)return X.ql&&X.Oy("fds",{fds:!0},!0),!1;if(X.Fh.G_!=="yt"&&!c)return X.ql&&X.Oy("dsvn",{ns:X.Fh.G_},!0),!1;if(X.cotn||!X.J||X.J.isOtf||X.Pm&&!X.S("html5_enable_sabr_csdai"))return!1;if(X.S("html5_use_sabr_requests_for_debugging"))return!0;X.ql&&X.Oy("esfw",{usbc:X.ql,hsu:!!X.yr},!0);if(X.ql&&X.yr)return!0;if(X.S("html5_remove_client_sabr_determination"))return!1;var V=!X.J.ZQ&&!X.PE();c=V&&qY&&X.S("html5_enable_sabr_vod_streaming_xhr"); +V=V&&!qY&&X.S("html5_enable_sabr_vod_non_streaming_xhr");var G=iN(X),n=X.S("html5_enable_sabr_drm_vod_streaming_xhr")&&qY&&X.PE()&&!X.J.ZQ&&(X.G7==="1"?!1:!0);(c=c||V||G||n)&&!X.yr&&X.Oy("sabr",{loc:"m"},!0);return c&&!!X.yr}; +iN=function(X){var c;if(!(c=qY&&X.ZQ()&&X.PE()&&(X.G7==="1"?!1:!0)&&X.S("html5_sabr_live_drm_streaming_xhr"))){c=X.ZQ()&&!X.PE()&&qY;var V=X.ZQ()&&X.latencyClass!=="ULTRALOW"&&!X.isLowLatencyLiveStream&&X.S("html5_sabr_live_normal_latency_streaming_xhr"),G=X.isLowLatencyLiveStream&&X.S("html5_sabr_live_low_latency_streaming_xhr"),n=X.latencyClass==="ULTRALOW"&&X.S("html5_sabr_live_ultra_low_latency_streaming_xhr");c=c&&(V||G||n)}V=c;c=X.enableServerStitchedDai&&V&&X.S("html5_enable_sabr_ssdai_streaming_xhr"); +V=!X.enableServerStitchedDai&&V;G=X.ZQ()&&!qY&&X.S("html5_enable_sabr_live_non_streaming_xhr");X=qY&&(X.JT()||uN(X)&&X.S("html5_enable_sabr_for_lifa_eligible_streams"));return c||V||G||X}; +g.CW=function(X){return X.Ca&&yu(X)}; +uH2=function(X){var c;if(c=!!X.cotn)c=X.videoId,c=!!c&&g.bj(c)===1;return c&&!X.v5}; +g.qO=function(X){if(!X.J||!X.G||!X.X)return!1;var c=X.J.J,V=!!c[X.G.id]&&J7(c[X.G.id].uB.J);c=!!c[X.X.id]&&J7(c[X.X.id].uB.J);return(X.G.itag==="0"||V)&&c}; +Xs=function(X){return X.gk?["OK","LIVE_STREAM_OFFLINE"].includes(X.gk.status):!0}; +yoj=function(X){return(X=X.B5)&&X.showError?X.showError:!1}; +jj=function(X,c){return X.S(c)?!0:(X.fflags||"").includes(c+"=true")}; +ros=function(X){return X.S("html5_heartbeat_iff_heartbeat_params_filled")}; +mzt=function(X,c){c.inlineMetricEnabled&&(X.inlineMetricEnabled=!0);c.playback_progress_0s_url&&(X.Nv=new GAU(c));if(c=c.video_masthead_ad_quartile_urls)X.Ep=c.quartile_0_url,X.kX=c.quartile_25_url,X.Fp=c.quartile_50_url,X.If=c.quartile_75_url,X.Xp=c.quartile_100_url,X.fn=c.quartile_0_urls,X.FV=c.quartile_25_urls,X.aD=c.quartile_50_urls,X.W8=c.quartile_75_urls,X.XV=c.quartile_100_urls}; +Jl8=function(X){var c={};X=g.r(X);for(var V=X.next();!V.done;V=X.next()){V=V.value;var G=V.split("=");G.length===2?c[G[0]]=G[1]:c[V]=!0}return c}; +kAs=function(X){if(X){if(j_D(X))return X;X=H38(X);if(j_D(X,!0))return X}return""}; +g.QCL=function(X){return X.captionsLanguagePreference||X.Fh.captionsLanguagePreference||g.vJ(X,"yt:cc_default_lang")||X.Fh.HP}; +cO=function(X){return!(!X.isLivePlayback||!X.hasProgressBarBoundaries())}; +g.X2=function(X){var c;return X.cL||((c=X.suggestions)==null?void 0:c[0])||null}; +g.Vf=function(X){return X.O5&&(X.S("embeds_enable_pfp_always_unbranded")||X.Fh.Nc)}; +GT=function(X,c){X.S("html5_log_autoplay_src")&&nQ(X)&&X.Oy("apsrc",{src:c})}; +g.n9=function(X){var c,V;return!!((c=X.embeddedPlayerConfig)==null?0:(V=c.embeddedPlayerFlags)==null?0:V.enableMusicUx)}; +g.dC=function(X){var c=X.j(),V=g.L9(c),G=c.T_;(c.S("embeds_web_enable_iframe_api_send_full_embed_url")||c.S("embeds_web_enable_rcat_validation_in_havs")||c.S("embeds_enable_autoplay_and_visibility_signals"))&&g.g0(c)&&(G&&(V.thirdParty=Object.assign({},V.thirdParty,{embedUrl:G})),u1s(V,X));if(G=X.Pl)V.clickTracking={clickTrackingParams:G};G=V.client||{};var n="EMBED",L=fQ(X);L==="leanback"?n="WATCH":c.S("gvi_channel_client_screen")&&L==="profilepage"?n="CHANNEL":X.yK?n="LIVE_MONITOR":L==="detailpage"? +n="WATCH_FULL_SCREEN":L==="adunit"?n="ADUNIT":L==="sponsorshipsoffer"&&(n="UNKNOWN");G.clientScreen=n;if(c=X.kidsAppInfo)G.kidsAppInfo=JSON.parse(c);(n=X.Jc)&&!c&&(G.kidsAppInfo={contentSettings:{ageUpMode:Zml[n]}});if(c=X.Zn)G.unpluggedAppInfo={enableFilterMode:!0};(n=X.unpluggedFilterModeType)&&!c&&(G.unpluggedAppInfo={filterModeType:xIw[n]});if(c=X.G_)G.unpluggedLocationInfo=c;V.client=G;G=V.request||{};X.z2&&(G.isPrefetch=!0);if(c=X.mdxEnvironment)G.mdxEnvironment=c;if(c=X.mdxControlMode)G.mdxControlMode= +vIt[c];V.request=G;G=V.user||{};if(c=X.A7)G.credentialTransferTokens=[{token:c,scope:"VIDEO"}];if(c=X.HP)G.delegatePurchases={oauthToken:c},G.kidsParent={oauthToken:c};V.user=G;if(G=X.contextParams)V.activePlayers=[{playerContextParams:G}];if(X=X.clientScreenNonce)V.clientScreenNonce=X;return V}; +g.L9=function(X){var c=g.V$(),V=c.client||{};if(X.forcedExperiments){var G=X.forcedExperiments.split(","),n=[];G=g.r(G);for(var L=G.next();!L.done;L=G.next())n.push(Number(L.value));V.experimentIds=n}if(n=X.homeGroupInfo)V.homeGroupInfo=JSON.parse(n);if(n=X.getPlayerType())V.playerType=n;if(n=X.J.ctheme)V.theme=n;if(n=X.livingRoomAppMode)V.tvAppInfo=Object.assign({},V.tvAppInfo,{livingRoomAppMode:n});n=X.deviceYear;X.S("html5_propagate_device_year")&&n&&(V.tvAppInfo=Object.assign({},V.tvAppInfo,{deviceYear:n})); +if(n=X.livingRoomPoTokenId)V.tvAppInfo=Object.assign({},V.tvAppInfo,{livingRoomPoTokenId:n});c.client=V;V=c.user||{};X.enableSafetyMode&&(V=Object.assign({},V,{enableSafetyMode:!0}));X.pageId&&(V=Object.assign({},V,{onBehalfOfUser:X.pageId}));c.user=V;V=X.T_;X.S("embeds_web_enable_iframe_api_send_full_embed_url")||X.S("embeds_web_enable_rcat_validation_in_havs")||X.S("embeds_enable_autoplay_and_visibility_signals")||!V||(c.thirdParty={embedUrl:V});return c}; +RXs=function(X,c,V){var G=X.videoId,n=g.dC(X),L=X.j(),d={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(Ox()),referer:document.location.toString(),signatureTimestamp:20158};g.zk();X.isAutonav&&(d.autonav=!0);g.Be(0,141)&&(d.autonavState=g.Be(0,140)?"STATE_OFF":"STATE_ON");d.autoCaptionsDefaultOn=g.Be(0,66);Uq(X)&&(d.autoplay=!0);L.D&&X.cycToken&&(d.cycToken=X.cycToken);L.enablePrivacyFilter&&(d.enablePrivacyFilter=!0);X.isFling&&(d.fling=!0);var h=X.forceAdsUrl;if(h){var A={},Y=[];h=h.split(","); +h=g.r(h);for(var H=h.next();!H.done;H=h.next()){H=H.value;var a=H.split("|");a.length!==3||H.includes("=")||(a[0]="breaktype="+a[0],a[1]="offset="+a[1],a[2]="url="+a[2]);H={adtype:"video_ad"};a=g.r(a);for(var W=a.next();!W.done;W=a.next()){var w=g.r(W.value.split("="));W=w.next().value;w=dLs(w);H[W]=w.join("=")}a=H.url;W=H.presetad;w=H.viralresponseurl;var F=Number(H.campaignid);if(H.adtype==="in_display_ad")a&&(A.url=a),W&&(A.presetAd=W),w&&(A.viralAdResponseUrl=w),F&&(A.viralCampaignId=String(F)); +else if(H.adtype==="video_ad"){var Z={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(H.offset)||0)}};if(H=kPs[H.breaktype])Z.breakType=H;a&&(Z.url=a);W&&(Z.presetAd=W);w&&(Z.viralAdResponseUrl=w);F&&(Z.viralCampaignId=String(F));Y.push(Z)}}d.forceAdParameters={videoAds:Y,inDisplayAd:A}}X.isInlinePlaybackNoAd&&(d.isInlinePlaybackNoAd=!0);X.isLivingRoomDeeplink&&(d.isLivingRoomDeeplink=!0);A=X.ek;if(A!=null){A={startWalltime:String(A)};if(Y=X.Rg)A.manifestDuration=String(Y||14400);d.liveContext= +A}if(X.mutedAutoplay){d.mutedAutoplay=!0;A=L.getWebPlayerContextConfig();var v,e;(A==null?0:(v=A.embedsHostFlags)==null?0:v.allowMutedAutoplayDurationMode)&&(A==null?0:(e=A.embedsHostFlags)==null?0:e.allowMutedAutoplayDurationMode.includes(oIO[X.mutedAutoplayDurationMode]))&&(d.mutedAutoplayDurationMode=oIO[X.mutedAutoplayDurationMode])}if(X.vW?0:X.pJ)d.splay=!0;v=X.vnd;v===5&&(d.vnd=v);v={};if(e=X.isMdxPlayback)v.triggeredByMdx=e;if(e=X.Cu)v.skippableAdsSupported=e.split(",").includes("ska");if(Y= +X.fY){e=X.uq;A=[];Y=g.r(PaO(Y));for(h=Y.next();!h.done;h=Y.next()){h=h.value;H=h.platform;h={applicationState:h.I0?"INACTIVE":"ACTIVE",clientFormFactor:eXw[H]||"UNKNOWN_FORM_FACTOR",clientName:B2l[h.oH]||"UNKNOWN_INTERFACE",clientVersion:h.deviceVersion||"",platform:JoS[H]||"UNKNOWN_PLATFORM"};H={};if(e){a=void 0;try{a=JSON.parse(e)}catch(m){g.UQ(m)}a&&(H={params:[{key:"ms",value:a.ms}]},a.advertising_id&&(H.advertisingId=a.advertising_id),a.limit_ad_tracking!==void 0&&a.limit_ad_tracking!==null&& +(H.limitAdTracking=a.limit_ad_tracking),h.osName=a.os_name,h.userAgent=a.user_agent,h.windowHeightPoints=a.window_height_points,h.windowWidthPoints=a.window_width_points)}A.push({adSignalsInfo:H,remoteClient:h})}v.remoteContexts=A}e=X.sourceContainerPlaylistId;A=X.serializedMdxMetadata;if(e||A)Y={},e&&(Y.mdxPlaybackContainerInfo={sourceContainerPlaylistId:e}),A&&(Y.serializedMdxMetadata=A),v.mdxPlaybackSourceContext=Y;d.mdxContext=v;v=c.width;v>0&&(d.playerWidthPixels=Math.round(v));if(c=c.height)d.playerHeightPixels= +Math.round(c);V!==0&&(d.vis=V);if(V=L.widgetReferrer)d.widgetReferrer=V.substring(0,128);g.RT(L)&&d&&(d.ancestorOrigins=L.ancestorOrigins);X.defaultActiveSourceVideoId&&(d.compositeVideoContext={defaultActiveSourceVideoId:X.defaultActiveSourceVideoId});if(L=L.getWebPlayerContextConfig())d.encryptedHostFlags=L.encryptedHostFlags;G={videoId:G,context:n,playbackContext:{contentPlaybackContext:d}};X.reloadPlaybackParams&&(G.playbackContext.reloadPlaybackContext={reloadPlaybackParams:X.reloadPlaybackParams}); +X.contentCheckOk&&(G.contentCheckOk=!0);if(n=X.clientPlaybackNonce)G.cpn=n;if(n=X.playerParams)G.params=n;if(n=X.playlistId)G.playlistId=n;X.racyCheckOk&&(G.racyCheckOk=!0);n=X.j();if(d=n.embedConfig)G.serializedThirdPartyEmbedConfig=d;G.captionParams={};d=g.Be(g.zk(),65);X.deviceCaptionsOn!=null?G.captionParams.deviceCaptionsOn=X.deviceCaptionsOn:g.S3(n)&&(G.captionParams.deviceCaptionsOn=d!=null?!d:!1);X.Zi&&(G.captionParams.deviceCaptionsLangPref=X.Zi);X.nt.length?G.captionParams.viewerSelectedCaptionLangs= +X.nt:g.S3(n)&&(d=g.z9(),d==null?0:d.length)&&(G.captionParams.viewerSelectedCaptionLangs=d);d=X.fetchType==="onesie"&&X.S("html5_onesie_attach_po_token");L=X.fetchType!=="onesie"&&X.S("html5_non_onesie_attach_po_token");if(d||L)d=X.j(),d.fJ&&(G.serviceIntegrityDimensions={},G.serviceIntegrityDimensions.poToken=d.fJ);n.S("fetch_att_independently")&&(G.attestationRequest={omitBotguardData:!0});G.playbackContext||(G.playbackContext={});G.playbackContext.devicePlaybackCapabilities=mIt(X);G.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding=== +!1&&X.Oy("noVp9",{});return G}; +mIt=function(X){var c=!(X==null?0:X.xs())&&(X==null?void 0:X.ZQ())&&Lv(),V;if(V=X==null?0:X.S("html5_report_supports_vp9_encoding")){if(X==null)V=0;else{V=g.hH(X);X=X.j().Z;var G=yb("243");V=G?wV(V,G,X,!0)===!0:!1}V=V&&!c}return{supportsVp9Encoding:!!V,supportXhr:qY}}; +t0U=function(X,c){var V,G,n;return g.O(function(L){if(L.J==1)return V={context:g.L9(X.j()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:X.videoId,cpn:X.clientPlaybackNonce}}]},G=g.Ln(bml),g.b(L,g.X4(c,V,G),2);n=L.G;return L.return(n)})}; +Om1=function(X,c,V){var G=g.EZ(c.experiments,"bg_vm_reinit_threshold");(!fF||(0,g.ta)()-fF>G)&&t0U(X,V).then(function(n){n&&(n=n.botguardData)&&g.Na(n,c)},function(n){X.vl()||(n=lo(n),X.Oy("attf",n.details))})}; +yf=function(X,c){g.I.call(this);this.app=X;this.state=c}; +At=function(X,c,V){X.state.J.hasOwnProperty(c)||ht(X,c,V);X.state.D[c]=function(){return V.apply(X,g.OD.apply(0,arguments))}; +X.state.B.add(c)}; +Yz=function(X,c,V){X.state.J.hasOwnProperty(c)||ht(X,c,V);X.app.j().D&&(X.state.T[c]=function(){return V.apply(X,g.OD.apply(0,arguments))},X.state.B.add(c))}; +ht=function(X,c,V){X.state.J[c]=function(){return V.apply(X,g.OD.apply(0,arguments))}}; +g.jZ=function(X,c,V){return X.state.J[c].apply(X.state.J,g.x(V))}; +HO=function(){g.Rb.call(this);this.Z=new Map}; +ax=function(){g.I.apply(this,arguments);this.element=null;this.B=new Set;this.D={};this.T={};this.J={};this.C=new Set;this.U=new HO;this.G=new HO;this.X=new HO;this.Z=new HO}; +ly1=function(X,c,V){typeof X==="string"&&(X={mediaContentUrl:X,startSeconds:c,suggestedQuality:V});a:{if((c=X.mediaContentUrl)&&(c=/\/([ve]|embed)\/([^#?]+)/.exec(c))&&c[2]){c=c[2];break a}c=null}X.videoId=c;return $z(X)}; +$z=function(X,c,V){if(typeof X==="string")return{videoId:X,startSeconds:c,suggestedQuality:V};c={};V=g.r(M0S);for(var G=V.next();!G.done;G=V.next())G=G.value,X[G]&&(c[G]=X[G]);return c}; +gI1=function(X,c,V,G){if(g.Cj(X)&&!Array.isArray(X)){c="playlist list listType index startSeconds suggestedQuality".split(" ");V={};for(G=0;G32&&G.push("hfr");c.isHdr()&&G.push("hdr");c.primaries==="bt2020"&&G.push("wcg");V.video_quality_features=G}}if(X=X.getPlaylistId())V.list=X;return V}; +rC=function(){WO.apply(this,arguments)}; +Qf=function(X,c){var V={};if(X.app.j().A7){X=g.r(NgD);for(var G=X.next();!G.done;G=X.next())G=G.value,c.hasOwnProperty(G)&&(V[G]=c[G]);if(c=V.qoe_cat)X="",typeof c==="string"&&c.length>0&&(X=c.split(",").filter(function(n){return UIw.includes(n)}).join(",")),V.qoe_cat=X; +Tgs(V)}else for(X=g.r(uqj),G=X.next();!G.done;G=X.next())G=G.value,c.hasOwnProperty(G)&&(V[G]=c[G]);return V}; +Tgs=function(X){var c=X.raw_player_response;if(!c){var V=X.player_response;V&&(c=JSON.parse(V))}delete X.player_response;delete X.raw_player_response;if(c){X.raw_player_response={streamingData:c.streamingData};var G;if((G=c.playbackTracking)==null?0:G.qoeUrl)X.raw_player_response=Object.assign({},X.raw_player_response,{playbackTracking:{qoeUrl:c.playbackTracking.qoeUrl}});var n;if((n=c.videoDetails)==null?0:n.videoId)X.raw_player_response=Object.assign({},X.raw_player_response,{videoDetails:{videoId:c.videoDetails.videoId}})}}; +Z6=function(X,c,V){var G=X.app.Tm(V);if(!G)return 0;X=G-X.app.getCurrentTime(V);return c-X}; +zXl=function(X){var c=c===void 0?5:c;return X?PQs[X]||c:c}; +g.xz=function(){rC.apply(this,arguments)}; +Bgs=function(X){ht(X,"getInternalApiInterface",X.getInternalApiInterface);ht(X,"addEventListener",X.fb);ht(X,"removeEventListener",X.cbl);ht(X,"cueVideoByPlayerVars",X.bO);ht(X,"loadVideoByPlayerVars",X.cX2);ht(X,"preloadVideoByPlayerVars",X.hQc);ht(X,"getAdState",X.getAdState);ht(X,"sendAbandonmentPing",X.sendAbandonmentPing);ht(X,"setLoopRange",X.setLoopRange);ht(X,"getLoopRange",X.getLoopRange);ht(X,"setAutonavState",X.setAutonavState);ht(X,"seekTo",X.zQS);ht(X,"seekBy",X.ML_);ht(X,"seekToLiveHead", +X.seekToLiveHead);ht(X,"requestSeekToWallTimeSeconds",X.requestSeekToWallTimeSeconds);ht(X,"seekToStreamTime",X.seekToStreamTime);ht(X,"startSeekCsiAction",X.startSeekCsiAction);ht(X,"getStreamTimeOffset",X.getStreamTimeOffset);ht(X,"getVideoData",X.k_7);ht(X,"setInlinePreview",X.setInlinePreview);ht(X,"getAppState",X.getAppState);ht(X,"updateLastActiveTime",X.updateLastActiveTime);ht(X,"setBlackout",X.setBlackout);ht(X,"setUserEngagement",X.setUserEngagement);ht(X,"updateSubtitlesUserSettings",X.updateSubtitlesUserSettings); +ht(X,"getPresentingPlayerType",X.l6);ht(X,"canPlayType",X.canPlayType);ht(X,"updatePlaylist",X.updatePlaylist);ht(X,"updateVideoData",X.updateVideoData);ht(X,"updateEnvironmentData",X.updateEnvironmentData);ht(X,"sendVideoStatsEngageEvent",X.otS);ht(X,"productsInVideoVisibilityUpdated",X.productsInVideoVisibilityUpdated);ht(X,"setSafetyMode",X.setSafetyMode);ht(X,"isAtLiveHead",function(c){return X.isAtLiveHead(void 0,c)}); +ht(X,"getVideoAspectRatio",X.getVideoAspectRatio);ht(X,"getPreferredQuality",X.getPreferredQuality);ht(X,"getPlaybackQualityLabel",X.getPlaybackQualityLabel);ht(X,"setPlaybackQualityRange",X.U$v);ht(X,"onAdUxClicked",X.onAdUxClicked);ht(X,"getFeedbackProductData",X.getFeedbackProductData);ht(X,"getStoryboardFrame",X.getStoryboardFrame);ht(X,"getStoryboardFrameIndex",X.getStoryboardFrameIndex);ht(X,"getStoryboardLevel",X.getStoryboardLevel);ht(X,"getNumberOfStoryboardLevels",X.getNumberOfStoryboardLevels); +ht(X,"getCaptionWindowContainerId",X.getCaptionWindowContainerId);ht(X,"getAvailableQualityLabels",X.getAvailableQualityLabels);ht(X,"addCueRange",X.addCueRange);ht(X,"addUtcCueRange",X.addUtcCueRange);ht(X,"showAirplayPicker",X.showAirplayPicker);ht(X,"dispatchReduxAction",X.dispatchReduxAction);ht(X,"getPlayerResponse",X.qyK);ht(X,"getWatchNextResponse",X.WS2);ht(X,"getHeartbeatResponse",X.Va);ht(X,"getCurrentTime",X.fp);ht(X,"getDuration",X.Az);ht(X,"getPlayerState",X.getPlayerState);ht(X,"getPlayerStateObject", +X.J7W);ht(X,"getVideoLoadedFraction",X.getVideoLoadedFraction);ht(X,"getProgressState",X.getProgressState);ht(X,"getVolume",X.getVolume);ht(X,"setVolume",X.G1);ht(X,"isMuted",X.isMuted);ht(X,"mute",X.NA);ht(X,"unMute",X.Di);ht(X,"loadModule",X.loadModule);ht(X,"unloadModule",X.unloadModule);ht(X,"getOption",X.xf);ht(X,"getOptions",X.getOptions);ht(X,"setOption",X.setOption);ht(X,"loadVideoById",X.G6);ht(X,"loadVideoByUrl",X.AS);ht(X,"playVideo",X.Au);ht(X,"loadPlaylist",X.loadPlaylist);ht(X,"nextVideo", +X.nextVideo);ht(X,"previousVideo",X.previousVideo);ht(X,"playVideoAt",X.playVideoAt);ht(X,"getDebugText",X.getDebugText);ht(X,"getWebPlayerContextConfig",X.getWebPlayerContextConfig);ht(X,"notifyShortsAdSwipeEvent",X.notifyShortsAdSwipeEvent);ht(X,"getVideoContentRect",X.getVideoContentRect);ht(X,"setSqueezeback",X.setSqueezeback);ht(X,"toggleSubtitlesOn",X.toggleSubtitlesOn);ht(X,"isSubtitlesOn",X.isSubtitlesOn);ht(X,"reportPlaybackIssue",X.reportPlaybackIssue);ht(X,"setAutonav",X.setAutonav);ht(X, +"isNotServable",X.isNotServable);ht(X,"channelSubscribed",X.channelSubscribed);ht(X,"channelUnsubscribed",X.channelUnsubscribed);ht(X,"togglePictureInPicture",X.togglePictureInPicture);ht(X,"supportsGaplessAudio",X.supportsGaplessAudio);ht(X,"supportsGaplessShorts",X.supportsGaplessShorts);ht(X,"enqueueVideoByPlayerVars",function(c){return void X.enqueueVideoByPlayerVars(c)}); +ht(X,"clearQueue",X.clearQueue);ht(X,"getAudioTrack",X.Lp);ht(X,"setAudioTrack",X.qql);ht(X,"getAvailableAudioTracks",X.s4);ht(X,"getMaxPlaybackQuality",X.getMaxPlaybackQuality);ht(X,"getUserPlaybackQualityPreference",X.getUserPlaybackQualityPreference);ht(X,"getSubtitlesUserSettings",X.getSubtitlesUserSettings);ht(X,"resetSubtitlesUserSettings",X.resetSubtitlesUserSettings);ht(X,"setMinimized",X.setMinimized);ht(X,"setOverlayVisibility",X.setOverlayVisibility);ht(X,"confirmYpcRental",X.confirmYpcRental); +ht(X,"queueNextVideo",X.queueNextVideo);ht(X,"handleExternalCall",X.handleExternalCall);ht(X,"logApiCall",X.logApiCall);ht(X,"isExternalMethodAvailable",X.isExternalMethodAvailable);ht(X,"setScreenLayer",X.setScreenLayer);ht(X,"getCurrentPlaylistSequence",X.getCurrentPlaylistSequence);ht(X,"getPlaylistSequenceForTime",X.getPlaylistSequenceForTime);ht(X,"shouldSendVisibilityState",X.shouldSendVisibilityState);ht(X,"syncVolume",X.syncVolume);ht(X,"highlightSettingsMenuItem",X.highlightSettingsMenuItem); +ht(X,"openSettingsMenuItem",X.openSettingsMenuItem);ht(X,"getEmbeddedPlayerResponse",X.getEmbeddedPlayerResponse);ht(X,"getVisibilityState",X.getVisibilityState);ht(X,"isMutedByMutedAutoplay",X.isMutedByMutedAutoplay);ht(X,"isMutedByEmbedsMutedAutoplay",X.isMutedByEmbedsMutedAutoplay);ht(X,"setGlobalCrop",X.setGlobalCrop);ht(X,"setInternalSize",X.setInternalSize);ht(X,"setFauxFullscreen",X.setFauxFullscreen);ht(X,"setAppFullscreen",X.setAppFullscreen)}; +kz=function(X,c,V){X=g.vO(X.ai(),c);return V?(V.addOnDisposeCallback(X),null):X}; +g.ox=function(X,c,V){return X.app.j().Pg?c:g.xa("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:c,SHORTCUT:V})}; +K7L=function(X){X.ai().element.setAttribute("aria-live","polite")}; +g.eZ=function(X,c){g.xz.call(this,X,c);Bgs(this);Yz(this,"addEventListener",this.Mt);Yz(this,"removeEventListener",this.QPS);Yz(this,"cueVideoByPlayerVars",this.LD);Yz(this,"loadVideoByPlayerVars",this.tSO);Yz(this,"preloadVideoByPlayerVars",this.RQv);Yz(this,"loadVideoById",this.G6);Yz(this,"loadVideoByUrl",this.AS);Yz(this,"playVideo",this.Au);Yz(this,"loadPlaylist",this.loadPlaylist);Yz(this,"nextVideo",this.nextVideo);Yz(this,"previousVideo",this.previousVideo);Yz(this,"playVideoAt",this.playVideoAt); +Yz(this,"getVideoData",this.pT);Yz(this,"seekBy",this.lbS);Yz(this,"seekTo",this.yby);Yz(this,"showControls",this.showControls);Yz(this,"hideControls",this.hideControls);Yz(this,"cancelPlayback",this.cancelPlayback);Yz(this,"getProgressState",this.getProgressState);Yz(this,"isInline",this.isInline);Yz(this,"setInline",this.setInline);Yz(this,"setLoopVideo",this.setLoopVideo);Yz(this,"getLoopVideo",this.getLoopVideo);Yz(this,"getVideoContentRect",this.getVideoContentRect);Yz(this,"getVideoStats",this.aRS); +Yz(this,"getCurrentTime",this.MU);Yz(this,"getDuration",this.Az);Yz(this,"getPlayerState",this.G_y);Yz(this,"getVideoLoadedFraction",this.FSO);Yz(this,"mute",this.NA);Yz(this,"unMute",this.Di);Yz(this,"setVolume",this.G1);Yz(this,"loadModule",this.loadModule);Yz(this,"unloadModule",this.unloadModule);Yz(this,"getOption",this.xf);Yz(this,"getOptions",this.getOptions);Yz(this,"setOption",this.setOption);Yz(this,"addCueRange",this.addCueRange);Yz(this,"getDebugText",this.getDebugText);Yz(this,"getStoryboardFormat", +this.getStoryboardFormat);Yz(this,"toggleFullscreen",this.toggleFullscreen);Yz(this,"isFullscreen",this.isFullscreen);Yz(this,"getPlayerSize",this.getPlayerSize);Yz(this,"toggleSubtitles",this.toggleSubtitles);this.app.j().S("embeds_enable_move_set_center_crop_to_public")||Yz(this,"setCenterCrop",this.setCenterCrop);Yz(this,"setFauxFullscreen",this.setFauxFullscreen);Yz(this,"setSizeStyle",this.setSizeStyle);Yz(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);Yz(this,"handleGlobalKeyUp",this.handleGlobalKeyUp); +pqj(this)}; +g.Jt=function(X){X=X.X2();var c=X.UN.get("endscreen");return c&&c.Ym()?!0:X.gA()}; +g.mM=function(X,c){X.getPresentingPlayerType()===3?X.publish("mdxautoplaycancel"):X.z_("onAutonavCancelled",c)}; +g.bc=function(X){var c=Rx(X.X2());return X.app.cS&&!X.isFullscreen()||X.getPresentingPlayerType()===3&&c&&c.Tz()&&c.EW()||!!X.getPlaylist()}; +g.tt=function(X,c){g.jZ(X,"addEmbedsConversionTrackingParams",[c])}; +g.lc=function(X){return(X=g.ON(X.X2()))?X.Ko():{}}; +g.sCl=function(X){X=(X=X.getVideoData())&&X.G;return!!X&&!(!X.audio||!X.video)&&X.mimeType!=="application/x-mpegURL"}; +g.M$=function(X,c,V){X=X.CS().element;var G=AE(X.children,function(n){n=Number(n.getAttribute("data-layer"));return V-n||1}); +G<0&&(G=-(G+1));dW(X,c,G);c.setAttribute("data-layer",String(V))}; +g.gC=function(X){var c=X.j();if(!c.Wg)return!1;var V=X.getVideoData();if(!V||X.getPresentingPlayerType()===3)return!1;var G=(!V.isLiveDefaultBroadcast||c.S("allow_poltergust_autoplay"))&&!cO(V);G=V.isLivePlayback&&(!c.S("allow_live_autoplay")||!G);var n=V.isLivePlayback&&c.S("allow_live_autoplay_on_mweb");X=X.getPlaylist();X=!!X&&X.Tz();var L=V.QK&&V.QK.playerOverlays||null;L=!!(L&&L.playerOverlayRenderer&&L.playerOverlayRenderer.autoplay);L=V.O5&&L;return!V.ypcPreview&&(!G||n)&&!g.SV(V.NW,"ypc")&& +!X&&(!g.RT(c)||L)}; +CQ8=function(X){X=X.app.Ey();if(!X)return!1;var c=X.getVideoData();if(!c.G||!c.G.video||c.G.video.J<1080||c.Nr)return!1;var V=/^qsa/.test(c.clientPlaybackNonce),G="r";c.G.id.indexOf(";")>=0&&(V=/^[a-p]/.test(c.clientPlaybackNonce),G="x");return V?(X.Oy("iqss",{trigger:G},!0),!0):!1}; +f9=function(){u5.apply(this,arguments);this.requestHeaders={}}; +Ix=function(){p9||(p9=new f9);return p9}; +N$=function(X,c){c?X.requestHeaders.Authorization="Bearer "+c:delete X.requestHeaders.Authorization}; +g.UN=function(X){var c=this;this.J7=X;this.F8={twR:function(){return c.J7}}}; +g.TT=function(X,c,V,G){G=G===void 0?!1:G;g.rP.call(this,c);var n=this;this.W=X;this.kO=G;this.T=new g.U3(this);this.fade=new g.yP(this,V,!0,void 0,void 0,function(){n.yz()}); +g.N(this,this.T);g.N(this,this.fade)}; +uc=function(X){var c=X.W.getRootNode();return X.W.S("web_watch_pip")||X.W.S("web_shorts_pip")?TV(c):document}; +DIS=function(X){X.G&&(document.activeElement&&g.h5(X.element,document.activeElement)&&X.G.focus(),X.G.setAttribute("aria-expanded","false"),X.G=void 0);g.l5(X.T);X.C=void 0}; +PO=function(X,c,V){X.DU()?X.QZ():X.fM(c,V)}; +zT=function(X,c,V,G){G=new g.z({N:"div",xO:["ytp-linked-account-popup-button"],Uy:G,K:{role:"button",tabindex:"0"}});c=new g.z({N:"div",Y:"ytp-linked-account-popup",K:{role:"dialog","aria-modal":"true",tabindex:"-1"},V:[{N:"div",Y:"ytp-linked-account-popup-title",Uy:c},{N:"div",Y:"ytp-linked-account-popup-description",Uy:V},{N:"div",Y:"ytp-linked-account-popup-buttons",V:[G]}]});g.TT.call(this,X,{N:"div",Y:"ytp-linked-account-popup-container",V:[c]},100);var n=this;this.dialog=c;g.N(this,this.dialog); +G.listen("click",function(){n.QZ()}); +g.N(this,G);g.M$(this.W,this.element,4);this.hide()}; +g.K9=function(X,c,V,G){g.rP.call(this,X);this.priority=c;V&&g.BO(this,V);G&&this.AT(G)}; +g.sN=function(X,c,V,G){X=X===void 0?{}:X;c=c===void 0?[]:c;V=V===void 0?!1:V;G=G===void 0?!1:G;c.push("ytp-menuitem");var n=X;"role"in n||(n.role="menuitem");V||(n=X,"tabindex"in n||(n.tabindex="0"));X={N:V?"a":"div",xO:c,K:X,V:[{N:"div",Y:"ytp-menuitem-icon",Uy:"{{icon}}"},{N:"div",Y:"ytp-menuitem-label",Uy:"{{label}}"},{N:"div",Y:"ytp-menuitem-content",Uy:"{{content}}"}]};G&&X.V.push({N:"div",Y:"ytp-menuitem-secondary-icon",Uy:"{{secondaryIcon}}"});return X}; +g.BO=function(X,c){X.updateValue("label",c)}; +C9=function(X){g.K9.call(this,g.sN({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var c=this;this.W=X;this.G=this.J=!1;this.PP=X.b4();X.createServerVe(this.element,this,!0);this.L(this.W,"settingsMenuVisibilityChanged",function(V){c.iB(V)}); +this.L(this.W,"videodatachange",this.X);this.listen("click",this.onClick);this.X()}; +D6=function(X){return X?g.xT(X):""}; +SZ=function(X){g.I.call(this);this.api=X}; +ic=function(X){SZ.call(this,X);var c=this;ht(X,"setAccountLinkState",function(V){c.setAccountLinkState(V)}); +ht(X,"updateAccountLinkingConfig",function(V){c.updateAccountLinkingConfig(V)}); +X.addEventListener("videodatachange",function(V,G){c.onVideoDataChange(G)}); +X.addEventListener("settingsMenuInitialized",function(){c.menuItem=new C9(c.api);g.N(c,c.menuItem)})}; +Sg1=function(X){this.api=X;this.J={}}; +q$=function(X,c,V,G){c in X.J||(V=new g.AC(V,G,{id:c,priority:2,namespace:"appad"}),X.api.Gr([V],1),X.J[c]=V)}; +XW=function(X){SZ.call(this,X);var c=this;this.events=new g.U3(this);g.N(this,this.events);this.J=new Sg1(this.api);this.events.L(this.api,"legacyadtrackingpingreset",function(){c.J.J={}}); +this.events.L(this.api,"legacyadtrackingpingchange",function(V){var G=c.J;q$(G,"part2viewed",1,0x8000000000000);q$(G,"engagedview",Math.max(1,V.EM*1E3),0x8000000000000);if(!V.isLivePlayback){var n=V.lengthSeconds*1E3;nQ(V)&&G.api.S("html5_shorts_gapless_ads_duration_fix")&&(n=G.api.getProgressState().seekableEnd*1E3-V.TK);q$(G,"videoplaytime25",n*.25,n);q$(G,"videoplaytime50",n*.5,n);q$(G,"videoplaytime75",n*.75,n);q$(G,"videoplaytime100",n,0x8000000000000);q$(G,"conversionview",n,0x8000000000000); +q$(G,"videoplaybackstart",1,n);q$(G,"videoplayback2s",2E3,n);q$(G,"videoplayback10s",1E4,n)}}); +this.events.L(this.api,g.jw("appad"),this.G);this.events.L(this.api,g.HQ("appad"),this.G)}; +chs=function(X,c,V){if(!(V in c))return!1;c=c[V];Array.isArray(c)||(c=[c]);c=g.r(c);for(V=c.next();!V.done;V=c.next()){V=V.value;var G={CPN:X.api.getVideoData().clientPlaybackNonce};V=g.l_(V,G);G=void 0;G=G===void 0?!1:G;(G=Vn(Ge(V,ims),V,G,"Active View 3rd Party Integration URL"))||(G=void 0,G=G===void 0?!1:G,G=Vn(Ge(V,qgD),V,G,"Google/YouTube Brand Lift URL"));G||(G=void 0,G=G===void 0?!1:G,G=Vn(Ge(V,XVS),V,G,"Nielsen OCR URL"));g.Bi(V,void 0,G)}return!0}; +c5=function(X,c){VhD(X,c).then(function(V){g.Bi(c,void 0,void 0,V)})}; +VS=function(X,c){c.forEach(function(V){c5(X,V)})}; +VhD=function(X,c){return g.OZ(X.api.j())&&$P(c)&&aa(c)?g.LW(X.api.j(),g.T2(X.api.getVideoData())).then(function(V){var G;V&&(G={Authorization:"Bearer "+V});return G},void 0):p1()}; +G9D=function(X){SZ.call(this,X);this.events=new g.U3(X);g.N(this,this.events);this.events.L(X,"videoready",function(c){if(X.getPresentingPlayerType()===1){var V,G,n={playerDebugData:{pmlSignal:!!((V=c.getPlayerResponse())==null?0:(G=V.adPlacements)==null?0:G.some(function(L){var d;return L==null?void 0:(d=L.adPlacementRenderer)==null?void 0:d.renderer})), +contentCpn:c.clientPlaybackNonce}};g.a0("adsClientStateChange",n)}})}; +G4=function(X){g.z.call(this,{N:"button",xO:["ytp-button"],K:{title:"{{title}}","aria-label":"{{label}}","data-priority":"2","data-tooltip-target-id":"ytp-autonav-toggle-button"},V:[{N:"div",Y:"ytp-autonav-toggle-button-container",V:[{N:"div",Y:"ytp-autonav-toggle-button",K:{"aria-checked":"true"}}]}]});this.W=X;this.G=[];this.J=!1;this.isChecked=!0;X.createClientVe(this.element,this,113681);this.L(X,"presentingplayerstatechange",this.GE);this.listen("click",this.onClick);this.W.j().S("web_player_autonav_toggle_always_listen")&& +n0O(this);kz(X,this.element,this);this.GE()}; +n0O=function(X){X.G.push(X.L(X.W,"videodatachange",X.GE));X.G.push(X.L(X.W,"videoplayerreset",X.GE));X.G.push(X.L(X.W,"onPlaylistUpdate",X.GE));X.G.push(X.L(X.W,"autonavchange",X.BM))}; +L5U=function(X){X.isChecked=X.isChecked;X.I2("ytp-autonav-toggle-button").setAttribute("aria-checked",String(X.isChecked));var c=X.isChecked?"Autoplay is on":"Autoplay is off";X.updateValue("title",c);X.updateValue("label",c);X.W.hC()}; +daj=function(X){return X.W.j().S("web_player_autonav_use_server_provided_state")&&ij(X.Vg())}; +yhs=function(X){SZ.call(this,X);var c=this;this.events=new g.U3(X);g.N(this,this.events);this.events.L(X,"standardControlsInitialized",function(){var V=new G4(X);g.N(c,V);X.lN(V,"RIGHT_CONTROLS_LEFT")})}; +nz=function(X,c){g.K9.call(this,g.sN({role:"menuitemcheckbox","aria-checked":"false"}),c,X,{N:"div",Y:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; +Lz=function(X,c){X.checked=c;X.element.setAttribute("aria-checked",String(X.checked))}; +hRl=function(X){var c=!X.j().dW&&X.getPresentingPlayerType()!==3;return X.isFullscreen()||c}; +g.dZ=function(X,c,V,G){var n=X.currentTarget;if((V===void 0||!V)&&g.bG(X))return X.preventDefault(),!0;c.pauseVideo();X=n.getAttribute("href");g.sS(X,G,!0);return!1}; +g.yS=function(X,c,V){if(sT(c.j())&&c.getPresentingPlayerType()!==2){if(g.bG(V))return c.isFullscreen()&&!c.j().externalFullscreen&&c.toggleFullscreen(),V.preventDefault(),!0}else{var G=g.bG(V);G&&c.pauseVideo();g.sS(X,void 0,!0);G&&(g.CZ(X),V.preventDefault())}return!1}; +YMO=function(){var X=Ahl.includes("en")?{N:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{N:"path",k9:!0,K:{d:"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z", +fill:"#fff"}}]}:{N:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{N:"path",k9:!0,K:{d:"M11,11 C9.9,11 9,11.9 9,13 L9,23 C9,24.1 9.9,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M11,17 L14,17 L14,19 L11,19 L11,17 L11,17 Z M20,23 L11,23 L11,21 L20,21 L20,23 L20,23 Z M25,23 L22,23 L22,21 L25,21 L25,23 L25,23 Z M25,19 L16,19 L16,17 L25,17 L25,19 L25,19 Z",fill:"#fff"}}]};X.Y="ytp-subtitles-button-icon";return X}; +hw=function(){return{N:"div",Y:"ytp-spinner-container",V:[{N:"div",Y:"ytp-spinner-rotator",V:[{N:"div",Y:"ytp-spinner-left",V:[{N:"div",Y:"ytp-spinner-circle"}]},{N:"div",Y:"ytp-spinner-right",V:[{N:"div",Y:"ytp-spinner-circle"}]}]}]}}; +Aw=function(X){if(document.createRange){var c=document.createRange();c&&(c.selectNodeContents(X),X=window.getSelection())&&(X.removeAllRanges(),X.addRange(c))}}; +H5=function(X){var c=X.S("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";nz.call(this,c,g.YH.eD);var V=this;this.W=X;this.J=!1;this.G=new g.qR(function(){g.jk(V.element,"ytp-menuitem-highlighted")},0); +this.PP=X.b4();this.setIcon({N:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{N:"path",K:{d:"M21 7v10H3V7h18m1-1H2v12h20V6zM11.5 2v3h1V2h-1zm1 17h-1v3h1v-3zM3.79 3 6 5.21l.71-.71L4.5 2.29 3.79 3zm2.92 16.5L6 18.79 3.79 21l.71.71 2.21-2.21zM19.5 2.29 17.29 4.5l.71.71L20.21 3l-.71-.71zm0 19.42.71-.71L18 18.79l-.71.71 2.21 2.21z",fill:"white"}}]});this.subscribe("select",this.U,this);this.listen(jb,this.X);g.N(this,this.G)}; +ay=function(X){SZ.call(this,X);var c=this;this.J=!1;X.addEventListener("settingsMenuInitialized",function(){jr1(c)}); +X.addEventListener("highlightSettingsMenu",function(V){jr1(c);var G=c.menuItem;V==="menu_item_cinematic_lighting"&&(g.Ax(G.element,"ytp-menuitem-highlighted"),g.Ax(G.element,"ytp-menuitem-highlight-transition-enabled"),G.G.start())}); +ht(X,"updateCinematicSettings",function(V){c.updateCinematicSettings(V)})}; +jr1=function(X){X.menuItem||(X.menuItem=new H5(X.api),g.N(X,X.menuItem),X.menuItem.pS(X.J))}; +$H=function(X){SZ.call(this,X);var c=this;this.events=new g.U3(X);g.N(this,this.events);this.events.L(X,"applicationvideodatachange",function(V,G){c.CV(V,G)})}; +W5=function(X){SZ.call(this,X);this.events=new g.U3(X);g.N(this,this.events);ht(X,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));ht(X,"setCreatorEndscreenHideButton",this.J.bind(this))}; +wZ=function(X,c,V,G){nz.call(this,"Stable Volume",g.YH.x_);g.Ax(this.element,"ytp-drc-menu-item");this.PP=X.b4();this.X=c;this.J=V;this.hasDrcAudioTrack=G;X.addEventListener("videodatachange",this.G.bind(this));X.S("mta_drc_mutual_exclusion_removal")&&this.L(X,"onPlaybackAudioChange",this.G);X=this.J()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());this.setIcon({N:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{N:"path",K:{d:"M7 13H5v-2h2v2zm3-4H8v6h2V9zm3-3h-2v12h2V6zm3 2h-2v8h2V8zm3 2h-2v4h2v-4zm-7-7c-4.96 0-9 4.04-9 9s4.04 9 9 9 9-4.04 9-9-4.04-9-9-9m0-1c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2z", +fill:"white"}}]});this.subscribe("select",this.U,this);Lz(this,X);this.PP.Y9(this)}; +FW=function(X){SZ.call(this,X);var c=this;this.events=new g.U3(X);g.N(this,this.events);X.S("html5_show_drc_toggle")&&X.addEventListener("settingsMenuInitialized",function(){c.menuItem||(c.menuItem=new wZ(c.api,c.setDrcUserPreference.bind(c),c.getDrcUserPreference.bind(c),c.G.bind(c)),g.N(c,c.menuItem))}); +ht(this.api,"setDrcUserPreference",function(G){c.setDrcUserPreference(G)}); +ht(this.api,"getDrcUserPreference",function(){return c.getDrcUserPreference()}); +ht(this.api,"hasDrcAudioTrack",function(){return c.G()}); +var V;this.J=(V=g.Il("yt-player-drc-pref"))!=null?V:1;this.updateEnvironmentData()}; +EJ=function(X){SZ.call(this,X);var c=this;this.J={};this.events=new g.U3(X);g.N(this,this.events);this.events.L(X,"videodatachange",function(){c.onVideoDataChange()}); +this.events.L(X,g.jw("embargo"),function(V){c.api.y0(!0);var G,n=(G=c.J[V.id])!=null?G:[];G=g.r(n);for(n=G.next();!n.done;n=G.next()){var L=n.value;c.api.hideControls();c.api.eX("auth",2,"This video isn't available in your current playback area",bo({embargoed:1,id:V.id,idx:V.G,start:V.start}));n=void 0;(L=(n=L.embargo)==null?void 0:n.onTrigger)&&c.api.z_("innertubeCommand",L)}})}; +HFw=function(X,c){var V;return(V=c.onEnter)==null?void 0:V.some(X.G)}; +aaO=function(X,c){c=g.r(c);for(var V=c.next();!V.done;V=c.next()){V=V.value;var G=void 0,n=Number((G=V.playbackPosition)==null?void 0:G.utcTimeMillis)/1E3,L=void 0;G=n+Number((L=V.duration)==null?void 0:L.seconds);L="embargo_"+n;X.api.addUtcCueRange(L,n,G,"embargo",!1);V.onEnter&&(X.J[L]=V.onEnter.filter(X.G))}}; +rZ=function(X){SZ.call(this,X);var c=this;this.J=[];this.events=new g.U3(X);g.N(this,this.events);ht(X,"addEmbedsConversionTrackingParams",function(V){c.api.j().zI&&c.addEmbedsConversionTrackingParams(V)}); +this.events.L(X,"veClickLogged",function(V){c.api.hasVe(V)&&(V=hp(V.visualElement.getAsJspb(),2),c.J.push(V))})}; +$as=function(X){SZ.call(this,X);ht(X,"isEmbedsShortsMode",function(){return X.isEmbedsShortsMode()})}; +W5S=function(X){SZ.call(this,X);var c=this;this.events=new g.U3(X);g.N(this,this.events);this.events.L(X,"initialvideodatacreated",function(V){Rr(m5(),16623);c.J=g.tU();var G=X.j().jL&&!V.vW;if(NO(V)&&G){Rr(m5(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(V.getWatchNextResponse()){var n,L=(n=V.getWatchNextResponse())==null?void 0:n.trackingParams;L&&th(L)}if(V.getPlayerResponse()){var d;(V=(d=V.getPlayerResponse())==null?void 0:d.trackingParams)&&th(V)}}else Rr(m5(), +32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),V.getEmbeddedPlayerResponse()&&(d=(L=V.getEmbeddedPlayerResponse())==null?void 0:L.trackingParams)&&th(d)}); +this.events.L(X,"loadvideo",function(){Rr(m5(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:c.J})}); +this.events.L(X,"cuevideo",function(){Rr(m5(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:c.J})}); +this.events.L(X,"largeplaybuttonclicked",function(V){Rr(m5(),27240,V.visualElement)}); +this.events.L(X,"playlistnextbuttonclicked",function(V){Rr(m5(),27240,V.visualElement)}); +this.events.L(X,"playlistprevbuttonclicked",function(V){Rr(m5(),27240,V.visualElement)}); +this.events.L(X,"playlistautonextvideo",function(){Rr(m5(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; +QS=function(X,c){g.I.call(this);var V=this;this.J=null;this.U=c;c=[];for(var G=0;G<=100;G++)c.push(G/100);c={threshold:c,trackVisibility:!0,delay:1E3};(this.G=window.IntersectionObserver?new IntersectionObserver(function(n){n=n[n.length-1];typeof n.isVisible==="undefined"?document.visibilityState==="visible"&&n.isIntersecting&&n.intersectionRatio>0?V.J=n.intersectionRatio:document.visibilityState==="hidden"?V.J=0:V.J=null:V.J=n.isVisible?n.intersectionRatio:0;typeof V.U==="function"&&V.U(V.J)},c): +null)&&this.G.observe(X)}; +F5s=function(X){SZ.call(this,X);var c=this;this.events=new g.U3(X);g.N(this,this.events);this.events.L(X,"applicationInitialized",function(){wVw(c)})}; +wVw=function(X){var c=X.api.getRootNode(),V=c;if(!X.api.S("embeds_emc3ds_inview_ks")){var G;V=X.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((G=c.parentElement)==null?void 0:G.parentElement)||c:c}X.J=new QS(V,function(n){n!=null&&(X.api.j().hJ=n,X.api.j().Rg="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); +g.N(X,X.J);X.events.L(X.api,"videoStatsPingCreated",function(n){var L=X.J;L=L.J==null?null:Math.round(L.J*100)/100;n.inview=L!=null?L:void 0;L=X.api.getPlayerSize();if(L.height>0&&L.width>0){L=[Math.round(L.width),Math.round(L.height)];var d=g.Dv();d>1&&L.push(d);L=L.join(":")}else L=void 0;n.size=L})}; +E0l=function(X){var c;return((c=((X==null?void 0:X.messageRenderers)||[]).find(function(V){return!!V.timeCounterRenderer}))==null?void 0:c.timeCounterRenderer)||null}; +Zx=function(X){g.z.call(this,{N:"div",xO:["ytp-player-content","ytp-iv-player-content"],V:[{N:"div",Y:"ytp-free-preview-countdown-timer",V:[{N:"span",Uy:"{{label}}"},{N:"span",Y:"ytp-free-preview-countdown-timer-separator",Uy:"\u2022"},{N:"span",Uy:"{{duration}}"}]}]});this.api=X;this.J=null;this.U=this.G=0;this.L(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; +Qrl=function(X,c){X.J||(X.G=c,X.U=(0,g.ta)(),X.J=new g.i_(function(){rh2(X)},null),rh2(X))}; +rh2=function(X){var c=Math,V=c.round,G=Math.min((0,g.ta)()-X.U,X.G);c=V.call(c,(X.G-G)/1E3);X.updateValue("duration",Za({seconds:c}));c<=0&&X.J?xH(X):X.J&&X.J.start()}; +xH=function(X){X.J&&(X.J.dispose(),X.J=null)}; +ZFj=function(X){SZ.call(this,X);var c=this;this.events=new g.U3(X);g.N(this,this.events);this.events.L(X,"basechromeinitialized",function(){c.J=new Zx(X);g.N(c,c.J);g.M$(X,c.J.element,4);c.J.hide()})}; +v5=function(X){g.z.call(this,{N:"button",xO:["ytp-fullerscreen-edu-button","ytp-button"],V:[{N:"div",xO:["ytp-fullerscreen-edu-text"],Uy:"Scroll for details"},{N:"div",xO:["ytp-fullerscreen-edu-chevron"],V:[{N:"svg",K:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{N:"path",K:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],K:{"data-priority":"1"}});this.DR=X;this.fade=new g.yP(this,250,void 0,100);this.G=this.J=!1;X.createClientVe(this.element,this,61214);g.N(this, +this.fade);this.L(X,"fullscreentoggled",this.pS);this.L(X,"presentingplayerstatechange",this.pS);this.listen("click",this.onClick);this.pS()}; +kH=function(X){SZ.call(this,X);var c=this;this.events=new g.U3(X);g.N(this,this.events);ht(this.api,"updateFullerscreenEduButtonSubtleModeState",function(G){c.updateFullerscreenEduButtonSubtleModeState(G)}); +ht(this.api,"updateFullerscreenEduButtonVisibility",function(G){c.updateFullerscreenEduButtonVisibility(G)}); +var V=X.j();X.S("external_fullscreen_with_edu")&&V.externalFullscreen&&sT(V)&&V.controlsType==="1"&&this.events.L(X,"standardControlsInitialized",function(){c.J=new v5(X);g.N(c,c.J);X.lN(c.J)})}; +xas=function(X){g.z.call(this,{N:"div",Y:"ytp-gated-actions-overlay",V:[{N:"div",Y:"ytp-gated-actions-overlay-background",V:[{N:"div",Y:"ytp-gated-actions-overlay-background-overlay"}]},{N:"button",xO:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],K:{"aria-label":"Close"},V:[g.Jy()]},{N:"div",Y:"ytp-gated-actions-overlay-bar",V:[{N:"div",Y:"ytp-gated-actions-overlay-text-container",V:[{N:"div",Y:"ytp-gated-actions-overlay-title",Uy:"{{title}}"},{N:"div",Y:"ytp-gated-actions-overlay-subtitle", +Uy:"{{subtitle}}"}]},{N:"div",Y:"ytp-gated-actions-overlay-button-container"}]}]});var c=this;this.api=X;this.background=this.I2("ytp-gated-actions-overlay-background");this.G=this.I2("ytp-gated-actions-overlay-button-container");this.J=[];this.L(this.I2("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){c.api.z_("onCloseMiniplayer")}); +this.hide()}; +k9s=function(X,c){var V=0;V=0;for(var G={};V +n&&(n=h.width,L="url("+h.url+")")}V.background.style.backgroundImage=L;k9s(V,G.actionButtons||[]);V.show()}else V.hide()}); +g.M$(this.api,this.J.element,4)}; +oy=function(X){SZ.call(this,X);var c=this;Yz(this.api,"getSphericalProperties",function(){return c.getSphericalProperties()}); +Yz(this.api,"setSphericalProperties",function(){c.setSphericalProperties.apply(c,g.x(g.OD.apply(0,arguments)))}); +At(this.api,"getSphericalProperties",function(){return c.api.getPresentingPlayerType()===2?{}:c.getSphericalProperties()}); +At(this.api,"setSphericalProperties",function(){var V=g.OD.apply(0,arguments);c.api.getPresentingPlayerType()!==2&&c.setSphericalProperties.apply(c,g.x(V))})}; +eb=function(X){SZ.call(this,X);ht(X,"createClientVe",this.createClientVe.bind(this));ht(X,"createServerVe",this.createServerVe.bind(this));ht(X,"destroyVe",this.destroyVe.bind(this));ht(X,"hasVe",this.hasVe.bind(this));ht(X,"logClick",this.logClick.bind(this));ht(X,"logVisibility",this.logVisibility.bind(this));ht(X,"setTrackingParams",this.setTrackingParams.bind(this))}; +Jw=function(X,c,V,G){function n(d){var h=!(d.status!==204&&d.status!==200&&!d.response),A;d={succ:""+ +h,rc:d.status,lb:((A=d.response)==null?void 0:A.byteLength)||0,rt:((0,g.ta)()-L).toFixed(),shost:g.Ue(X),trigger:c};eRw(d,X);V&&V(d);G&&!h&&G(new tm("pathprobe.net",d))} +var L=(0,g.ta)();g.b9(X,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:n,onTimeout:n})}; +eRw=function(X,c){var V;((V=window.performance)==null?0:V.getEntriesByName)&&(c=performance.getEntriesByName(c))&&c.length&&(c=c[0],X.pedns=(c.domainLookupEnd-c.startTime).toFixed(),X.pecon=(c.connectEnd-c.domainLookupEnd).toFixed(),X.perqs=(c.requestStart-c.connectEnd).toFixed(),Jhs&&(X.perqsa=c.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; +mZ=function(X,c){this.Pd=X;this.policy=c;this.playbackRate=1}; +maD=function(X,c){var V=Math.min(2.5,r0(X.Pd));X=Ry(X);return c-V*X}; +bn=function(X,c,V,G,n){n=n===void 0?!1:n;if(X.policy.MB)return Math.ceil(X.policy.MB*c);X.policy.H5&&(G=Math.abs(G));G/=X.playbackRate;var L=1/xC(X.Pd);V=Math.max(.9*(G-3),r0(X.Pd)+X.Pd.G.J*L)/L*.8/(c+V);V=Math.min(V,G);X.policy.nw>0&&n&&(V=Math.max(V,X.policy.nw));return RRs(X,V,c)}; +RRs=function(X,c,V){return Math.ceil(Math.max(Math.max(X.policy.UQ,X.policy.JA*V),Math.min(Math.min(X.policy.YO,31*V),Math.ceil(c*V))))||X.policy.UQ}; +bFl=function(X,c,V){V=bn(X,c.J.info.JX,V.J.info.JX,0);var G=r0(X.Pd)+V/xC(X.Pd);return Math.max(G,G+X.policy.tN-V/c.J.info.JX)}; +Ry=function(X){return xC(X.Pd,!X.policy.Gz,X.policy.qn)}; +tw=function(X){return Ry(X)/X.playbackRate}; +OJ=function(X,c,V){var G=X.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],n=X.policy.playbackStartPolicy.startMinReadaheadPolicy||[];X=Infinity;c=g.r(c&&G.length>0?G:n);for(G=c.next();!G.done;G=c.next())G=G.value,n=G.minReadaheadMs||0,V<(G.minBandwidthBytesPerSec||0)||X>n&&(X=n);return X0&&(this.G=V.cL)}; +Mh8=function(X,c,V,G,n){if(!G.info.Z){if(V.length===0)V.push(G);else{var L;(X=(L=V.pop())==null?void 0:g.cy(L,G))?V.push(X):V.push(G)}return n}var d;(V=(d=V.pop())==null?void 0:g.cy(d,G))||(V=G);if(X.policy.gm&&V.info.G)return X.logger&&X.logger({incompleteSegment:V.info.u3()}),n;d=X.IA(V);G=d.formatId;n=d.Bl;V=d.clipId;L=d.VT;d=d.startTimeMs;if(!X.policy.SU&&X.policy.G&&X.nM){var h=Mm(X.nM,V);d+=h}G={clipId:V,formatId:G,startTimeMs:d,durationMs:L,JJ:n,Ce:n};n=th2(c,G.startTimeMs);(V=n>=0?c[n]:null)&& +OF8(X,V,G)?G=V:(n+=1,c.splice(n,0,G));V=0;for(L=n+1;L=Y+d.G?d=!0:H+d.G=0?X:-X-2}; +g0l=function(X,c){if(X.DQ){var V=X.DQ.KE();if(V.length!==0){if(X.U&&c){var G=X.U,n=G.info.X;!aQ(V,n)&&G.info.T>0&&(0,g.ta)()-X.B<5E3&&(X.logger&&X.logger({dend:G.info.u3()}),V=o9l(V,n,n+.01))}X.policy.wu&&X.logger&&X.logger({cbri:""+X.J});G=[];for(var L=n=0;n=d){var H=0;if(X.nM){var a=gZ(X.nM,A*1E3);a&&(H=a.yq/1E3)}a=Object.assign({},X.lB[L]);var W=X.ZR.U.get(JQ(X.lB[L].formatId)), +w=Math.max(A,d);d=W.index.gJ(w+X.G/1E3-H);A=W.index.getStartTime(d)+H;var F=d+ +(Math.abs(A-w)>X.G/1E3);w=F+X.X;F=(W.index.getStartTime(F)+H)*1E3;L!==X.J||c?(a.JJ=w,a.startTimeMs=F):(X.logger&&X.logger({pEvict:"1",og:a.startTimeMs,adj:A*1E3}),a.JJ=d+X.X,a.startTimeMs=A*1E3);d=void 0;A=((d=X.U)==null?void 0:d.info.duration)||11;L===X.J&&hX.G/1E3);d=A+X.X;H=(W.index.t0(A)+H)*1E3;a.Ce=d;a.durationMs=H-a.startTimeMs;a.JJ<=a.Ce&&G.push(a)}YX.G)return!1;if(laU(X,c.formatId,V.formatId))return c.durationMs=Math.max(G,n)-c.startTimeMs,c.Ce=Math.max(c.Ce,V.Ce),!0;if(Math.abs(c.startTimeMs-V.startTimeMs)<=X.G){if(c.durationMs>V.durationMs+X.G){X=c.formatId;var L=c.JJ,d=c.Ce;c.formatId=V.formatId;c.durationMs=V.durationMs;c.JJ=V.JJ;c.Ce=V.Ce;V.formatId=X;V.startTimeMs=n;V.durationMs=G-n;V.JJ=L;V.Ce=d;return!1}c.formatId=V.formatId;return!0}G> +V.startTimeMs&&(c.durationMs=V.startTimeMs-c.startTimeMs,c.clipId===V.clipId&&(c.Ce=V.JJ-1));return!1}; +laU=function(X,c,V){return c.itag!==V.itag||c.xtags!==V.xtags?!1:X.ZR.ZQ||c.lmt===V.lmt}; +Ia1=function(X,c,V){if(X.logger){for(var G=[],n=0;n=0&&UJ(X.audioTrack,X.J)>=0&&L?((X.videoTrack.Z||X.audioTrack.Z)&&X.h7.Oy("iterativeSeeking",{status:"done",count:X.seekCount}),X.videoTrack.Z=!1,X.audioTrack.Z=!1):G&&g.a3(function(){if(X.G||!X.policy.HP)P5(X);else{var d=c.startTime,h=c.duration;if(!X.policy.B){var A=V?X.videoTrack.Z:X.audioTrack.Z,Y=X.videoTrack.B!==-1&&X.audioTrack.B!==-1,H=X.J>=d&&X.J432E3&&jHs(X.ZR);X.U&&(n=X.U,X.U=0);g.a3(function(){X.policy.B||z4(X,n,102)}); +X.h7.Oy("initManifestlessSync",{st:n,ost:n+X.h7.h1(),a:X.audioTrack.B,v:X.videoTrack.B});X.X&&(X.X.resolve(n+.1),X.X=null);X.policy.B&&z4(X,n,102)}}}; +sJ=function(X,c){var V=this;this.kU=X;this.requestNumber=++CIw;this.J=this.now();this.T=this.C=NaN;this.D=this.J;this.U=this.Ly=this.Z=0;this.B=this.J;this.T_=this.A7=this.wy=this.G2=this.Od=this.NW=this.G=this.X=0;this.G_=this.isActive=!1;this.NE=this.qE=0;this.F8={gFR:function(){return V.Yq}}; +this.Pd=c.Pd;this.snapshot=DUs(this.Pd);this.policy=this.Pd.G;this.Ws=!!c.Ws;this.Hu=c.Hu;this.Vq=c.Vq||0;this.SL=c.SL||0;c.G0&&(this.Pl=new YC);var G;this.Yq=(G=c.Yq)!=null?G:!1;this.Ws||KGj(this.Pd)}; +Das=function(X){X.wy=Math.max(X.wy,X.Z-X.Od);X.A7=Math.max(X.A7,X.D-X.G2);X.NW=0}; +Cz=function(X,c,V){sHl(X.Pd,c);X.Pl&&(X.Pl.add(Math.ceil(c)-Math.ceil(X.D)),X.Pl.add(Math.max(0,Math.ceil(V/1024)-Math.ceil(X.Z/1024))));var G=c-X.D,n=V-X.Z;X.Ly=n;X.T_=Math.max(X.T_,n/(G+.01)*1E3);X.D=c;X.Z=V;X.NW&&V>X.NW&&Das(X)}; +Dx=function(X,c){X.url=c;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; +Sb=function(X,c){sJ.call(this,X,c);this.hX=this.EM=!1;this.Hl=this.kO=Infinity;this.QK=NaN;this.HP=!1;this.yK=NaN;this.oZ=this.YO=this.LS=0;this.wB=c.wB||1;this.VW=c.VW||this.wB;this.zz=c.zz;this.Bl=c.Bl;this.Hb=c.Hb;SMU(this);this.Qf(this.J);this.o2=(this.yK-this.J)/1E3}; +iFD=function(X){var c=X.YO||X.LS;return c?X.snapshot.delay+Math.min(X.SL,(X.T-X.C)/1E3)+c:X.o2}; +qm=function(X,c,V){if(!X.Ws){c=Math.max(c,.01);var G=X.Vq?Math.max(c,V/X.Vq):c,n=X.Pd.G.U;n&&(G=c,X.Vq&&(G=Math.max(c,V/X.Vq*n)));w0(X.Pd,c,V,G)}}; +qM2=function(X){return(X.B-X.J)/1E3}; +SMU=function(X){X.QK=X.J+X.snapshot.delay*1E3;X.HP=!1}; +Xf=function(X,c){if(X.zz&&X.Bl!==void 0&&X.Hb!==void 0){var V=Math,G=V.min,n=X.kO;var L=X.zz;var d=X.J;if(X4w(L,X.Bl))L=c;else{var h=0;L.FK&&(h=.2);L=d+(L.SL+h)*1E3}X.kO=G.call(V,n,L);V=Math;G=V.min;n=X.Hl;L=X.zz;d=X.J;h=c7s(L,X.Bl,X.Hb);h!==2&&(c=h?c:d+L.SL*1E3,L.FK&&(c+=L.SL*1E3));X.Hl=G.call(V,n,c);X.kO<=X.J?SMU(X):(X.QK=X.kO,X.HP=!0)}}; +VHO=function(X,c){if(X.cN(c,1)){var V=X.getUint8(c);V=V<128?1:V<192?2:V<224?3:V<240?4:5}else V=0;if(V<1||!X.cN(c,V))return[-1,c];if(V===1)X=X.getUint8(c++);else if(V===2)V=X.getUint8(c++),X=X.getUint8(c++),X=(V&63)+64*X;else if(V===3){V=X.getUint8(c++);var G=X.getUint8(c++);X=X.getUint8(c++);X=(V&31)+32*(G+256*X)}else if(V===4){V=X.getUint8(c++);G=X.getUint8(c++);var n=X.getUint8(c++);X=X.getUint8(c++);X=(V&15)+16*(G+256*(n+256*X))}else V=c+1,X.focus(V),JX(X,V,4)?X=IE2(X).getUint32(V-X.Fr,!0):(G= +X.getUint8(V+2)+256*X.getUint8(V+3),X=X.getUint8(V)+256*(X.getUint8(V+1)+256*G)),c+=5;return[X,c]}; +cC=function(X){this.kU=X;this.J=new vl}; +VR=function(X,c){this.info=X;this.callback=c;this.state=1;this.FQ=this.Lk=!1;this.xt=null}; +Guw=function(X){return g.b0(X.info.KS,function(c){return c.type===3})}; +GX=function(X,c,V,G){var n=this;G=G===void 0?{}:G;this.policy=c;this.kU=V;this.status=0;this.J=new vl;this.G=0;this.vl=this.X=this.U=!1;this.xhr=new XMLHttpRequest;this.xhr.open(G.method||"GET",X);if(G.headers)for(X=G.headers,c=g.r(Object.keys(X)),V=c.next();!V.done;V=c.next())V=V.value,this.xhr.setRequestHeader(V,X[V]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return n.Or()}; +this.xhr.onload=function(){return n.onDone()}; +this.xhr.onerror=function(){return n.onError()}; +this.xhr.fetch(function(L){n.J.append(L);n.G+=L.length;L=(0,g.ta)();n.kU.jw(L,n.G)},function(){},G.body||null)}; +nW1=function(X,c){this.G=(new TextEncoder).encode(X);this.J=(new TextEncoder).encode(c)}; +yls=function(X,c){var V,G,n;return g.O(function(L){if(L.J==1){if(!c)return L.return(c);V=nD.Op();G=new g.J6(X.G);return g.b(L,G.encrypt(c,X.J),2)}n=L.G;nD.t4("woe",V,Math.ceil(c.byteLength/16));return L.return(n)})}; +HAj=function(X,c){var V,G,n;return g.O(function(L){if(L.J==1){if(!c)return L.return(c);V=nD.Op();G=new g.J6(X.G);return g.b(L,G.decrypt(c,X.J),2)}n=L.G;nD.t4("wod",V,Math.ceil(c.byteLength/16));return L.return(n)})}; +d2l=function(X,c){var V=this;this.J=X;this.kU=c;this.loaded=this.status=0;this.error="";X=b$(this.J.get("range")||"");if(!X)throw Error("bad range");this.range=X;this.G=new vl;LI8(this).then(function(){V.kU.Pz()},function(G){V.error=""+G||"unknown_err"; +V.kU.Pz()})}; +LI8=function(X){var c,V,G,n,L,d,h,A,Y,H,a,W,w,F,Z;return g.O(function(v){if(v.J==1){X.status=200;c=X.J.get("docid");V=qo(X.J.get("fmtid")||"");G=X.J.get("lmt")||"0";n=+(X.J.get("csz")||0);if(!c||!V||!n)throw Error("Invalid local URL");X.J.get("ck")&&X.J.get("civ")&&(L=new nW1(X.J.get("ck"),X.J.get("civ")));d=X.range;h=Math.floor(d.start/n);A=Math.floor(d.end/n);Y=h}if(v.J!=5)return Y<=A?g.b(v,aCl(c,V,G,Y,L),5):v.Wl(0);H=v.G;if(H===void 0)throw Error("invariant: data is undefined");a=Y*n;W=(Y+1)*n; +w=Math.max(0,d.start-a);F=Math.min(d.end+1,W)-(w+a);Z=new Uint8Array(H.buffer,w,F);X.G.append(Z);X.loaded+=F;X.loaded0&&(n.J=Math.min(n.J+d,10),n.G=L);n.J>0?(n.J--,n=!0):n=!1;if(n)typeof G==="function"&&(G=G()),console.log("plyr."+c,G);else{var h;G=((h=WI2.get(c))!=null?h:0)+1;WI2.set(c,G);G%100===1&&console.warn("plyr","plyr."+c+" is chatty, dropping logs.")}}}; +$2s=function(){this.J=10;this.G=Date.now()}; +hK=function(X,c){g.I.call(this);var V=this;this.policy=X;this.KS=c;this.G=0;this.J=null;this.sN=[];this.U=null;this.F8={r_:function(){return V.KS}}; +this.KS.length===1||g.b0(this.KS,function(G){return!!G.range})}; +AK=function(X,c,V){X.J&&(ky(X.J,c),c=X.J,X.J=null);for(var G=0,n=0,L=g.r(X.KS),d=L.next();!d.done;d=L.next())if(d=d.value,d.range&&G+d.U<=X.G)G+=d.U;else{c.getLength();if(MQ(d)&&!V&&X.G+c.getLength()-n=400?(X.lastError="net.badstatus",!0):(n===void 0?0:n)?(X.lastError="ump.spsrejectfailure",!0):V||G!==void 0&&G?!1:(X.lastError=c===204?"net.nocontent":"net.connect",!0)}; +WC=function(X,c){if(X.policy.c8)return!1;var V=c.getResponseHeader("content-type"),G=c.GQ();X=!G||G<=X.policy.xk;return(!c.Eb()||!V||V.indexOf("text/plain")!==-1)&&X}; +Z58=function(X,c){var V="";c=c.Rr();c.getLength()<=X.policy.xk&&(V=QwL(X,c.wM()));return V}; +QwL=function(X,c){var V=b4(c);return Lk(V)?(X.logger.debug(function(){return"Redirecting to "+V}),V):""}; +jp=function(X){return ZY(X.U,eH(X.cg.lF))}; +x2D=function(X){var c=X.timing.Vd();c.shost=eH(X.cg.lF);return c}; +vWS=function(X,c){return(X==null?void 0:X.maxWidth)>(c==null?void 0:c.maxWidth)||(X==null?void 0:X.maxHeight)>(c==null?void 0:c.maxHeight)}; +kuO=function(X,c){for(var V=g.r(c.keys()),G=V.next();!G.done;G=V.next())if(G=c.get(G.value),G.length!==0){g.Y5(G,function(h,A){return A.maxFramerate-h.maxFramerate}); +for(var n=[G[0]],L=0,d=1;dX.J||V.push(G)}return V}; +w3=function(X,c,V){var G=J7L[X]||[];V.S("html5_shorts_onesie_mismatched_fix")&&(G=m2L[X]||[]);c.push.apply(c,g.x(G));V.S("html5_early_media_for_drm")&&c.push.apply(c,g.x(RiD[X]||[]))}; +gWj=function(X,c){var V=g.hH(X),G=X.j(),n=G.Z;G=G.S("html5_shorts_onesie_mismatched_fix");var L=X.rW();if(G){if(!n.X){if(L&&Ff)return Ff;if(EU)return EU}}else if(EU&&!n.X)return EU;var d=[],h=[],A={},Y=r3.concat(b5j);G&&(Y=r3.concat(tHl));X.S("html5_early_media_for_drm")&&(Y=Y.concat(O5j),X.S("allow_vp9_1080p_mq_enc")&&Y.push(l8j));var H=[].concat(g.x(MHw));if(V.C)for(var a=0;aV.xR)){var Z=g.EZ(X.j().experiments,"html5_drm_byterate_soft_cap");Z>0&&v91(F)&&F.JX>Z||(a?(d.push(w),w3(w,d,X)):(F=wV(V,F,n),F===!0?(a=!0,d.push(w),w3(w,d,X)):A[w]=F))}}}H=g.r(H);for(Y=H.next();!Y.done;Y=H.next())for(Y=g.r(Y.value),a=Y.next();!a.done;a=Y.next())if(a= +a.value,(W=rfO(a))&&W.audio&&(X.S("html5_onesie_51_audio")||!XN(W)&&!cZ(W)))if(W=wV(V,W,n),W===!0){h.push(a);w3(a,h,X);break}else A[a]=W;V.G&&c("orfmts",A);if(G)return n.X&&(n.X=!1,Ff=EU=void 0),L?Ff={video:d,audio:h}:EU={video:d,audio:h};EU={video:d,audio:h};n.X=!1;return EU}; +g.I8l=function(X,c,V){var G=V.Z,n=[],L=[],d=V.S("html5_shorts_onesie_mismatched_fix");X=X.rW();var h=r3.concat(b5j);d&&(h=r3.concat(tHl));V.S("html5_early_media_for_drm")&&(h=h.concat(O5j),V.S("allow_vp9_1080p_mq_enc")&&h.push(l8j));var A=[].concat(g.x(MHw));if(c.C)for(var Y=0;Y0&&v91(a)&&a.JX>W)&&wV(c,a,G)===!0){n.push({videoCodec:f88[s3[H]],maxWidth:a.video.width,maxHeight:a.video.height,maxFramerate:a.video.fps});break}}}}d=g.r(A);for(X=d.next();!X.done;X=d.next())for(X=g.r(X.value),A=X.next();!A.done;A=X.next())if(A=A.value,(h=rfO(A))&&h.audio&&(V.S("html5_onesie_51_audio")||!XN(h)&&!cZ(h))&&wV(c,h,G)=== +!0){L.push({audioCodec:p4s[s3[A]],numChannels:h.audio.numChannels});break}return{videoFormatCapabilities:n,audioFormatCapabilities:L}}; +QR=function(X){var c={},V=X.J7,G=X.Fh,n=V.getVideoData(),L=UM(0),d=V.getPlayerSize(),h=V.getVisibilityState();L&&(c.u2l=L,c.lastManualDirection=MRj(),L=LoU()||0,L>0&&(L=(G.S("html5_use_date_now_for_local_storage")?Date.now():(0,g.ta)())-L,G.S("html5_use_date_now_for_local_storage")?L>0&&(c.timeSinceLastManualFormatSelectionMs=L):c.timeSinceLastManualFormatSelectionMs=L));L=G.S("html5_use_streamer_bandwidth_for_low_latency_live")&&n.isLowLatencyLiveStream;if(G.schedule.G_&&!L){var A;L=G.S("html5_disable_bandwidth_cofactors_for_sabr_live")? +!((A=X.OH)==null||!A.Gz):!1;c.Cb=xC(G.schedule,!L)}A=g.Dv();var Y=g.Pb.medium,H=Math.floor(Y*16/9);L=n.rW()?Y:H;Y=n.rW()?H:Y;c.Wv=Math.max(d.width*A,L);c.N7=Math.max(d.height*A,Y);c.visibility=h;c.MOW=Ox();c.KD=V.Zk()*1E3;d=X.J7.Ev(!0);var a,W,w,F,Z,v;c.P_7={defaultPolicy:(d==null?void 0:(a=d.Tn)==null?void 0:a.J)||0,smooth:(d==null?void 0:(W=d.vzc)==null?void 0:W.J)||0,visibility:(d==null?void 0:(w=d.wER)==null?void 0:w.J)||0,AK:(d==null?void 0:(F=d.hK)==null?void 0:F.J)||0,performance:(d==null? +void 0:(Z=d.nH)==null?void 0:Z.J)||0,speed:(d==null?void 0:(v=d.tOl)==null?void 0:v.J)||0};var e;c.D$y=(d==null?void 0:(e=d.SqR)==null?void 0:e.J)||0;G.S("html5_enable_sabr_drm_hd720p")&&X.sabrLicenseConstraint&&(c.sabrLicenseConstraint=X.sabrLicenseConstraint);if(G.S("html5_onesie_media_capabilities")||G.S("html5_enable_server_format_filter"))c.EE=3;G.S("html5_onesie_audio_only_playback")&&LQ(n)&&(c.EE=1);var m;((m=X.OH)==null?0:m.hX)&&X.RoS&&(c.EE=c.EE===void 0?7:c.EE|4);a=n.bH?n.bH:g.hH(n);G.S("html5_onesie_media_capabilities")&& +(c.mediaCapabilities=g.I8l(n,a,G));var t;if((t=X.OH)==null?0:t.J&&t.vW){w=G.Z;t=[];W=[];F=new Map;G.S("html5_ssap_update_capabilities_on_change")?(w.G_||UUt(w),Z=w.G_||[]):Z=Array.from(w.J.values());Z=g.r(Z);for(v=Z.next();!v.done;v=Z.next())e=v.value,e.oi?W.push({audioCodec:p4s[e.VK],numChannels:e.numChannels,spatialCapabilityBitmask:NVS[e.VK]}):(m=f88[e.VK],v={videoCodec:m,maxWidth:e.maxWidth||0,maxHeight:e.maxHeight||0,maxFramerate:e.maxFramerate||0,is10BitSupported:e.EL||!1},e.maxBitrateBps&& +(v.maxBitrateBps=e.maxBitrateBps,d=yb(e.itag),h=void 0,((h=d)==null?0:h.video)&&wV(a,d,w)===!0&&(d=d.JX*8,d>v.maxBitrateBps&&(v.maxBitrateBps=d))),e=m+"_"+e.EL,m=F.get(e)||[],m.push(v),F.set(e,m));t=kuO(t,F);w={};G.S("html5_ssff_denylist_opus_low")&&(w={itagDenylist:[249,350]});c.mediaCapabilities={videoFormatCapabilities:t,audioFormatCapabilities:W,hdrModeBitmask:3,perPlaybackAttributes:w}}var f;if((f=X.OH)==null?0:f.J){c.vz=a.vz;var U;c.xR=(U=X.OH)==null?void 0:U.xR}G.LJ&&(c.zn=G.LJ);c.k5=X.cU; +c.Xz=X.Xz;c.Fz=X.Fz;c.Oa=X.Oa;if(G.S("html5_fix_time_since_last_seek_reporting")?X.yX!==void 0:X.yX)c.lOR=(0,g.ta)()-X.yX;X.isPrefetch&&G.S("html5_report_prefetch_requests")&&(c.isPrefetch=!0);qY||(c.zov=!0);f=r0(G.schedule)*1E3;f>0&&(c.Hv=f);var C;((C=X.OH)==null?0:C.Ql)&&X.vO&&X.vO0?K:G.schedule.interruptions[0]||0);var nj;if((nj=X.OH)==null?0:nj.EM)c.lG=X.lG;var yl;((yl=X.OH)==null?0:yl.xl)&&n.Ho&&(c.audioTrackId=n.Ho);var Xl;if((Xl=X.OH)==null?0:Xl.Tb)if(X=Qul())c.detailedNetworkType=U2L[X]||U2L.other;return c}; +Zl=function(X,c,V,G,n,L,d){var h={};c&&(h.N9=c);if(!X)return h;h.playbackCookie=V==null?void 0:V.playbackCookie;n&&(h.q4=n);h.Ww=[];h.Ja=[];if(d==null?0:d.size)for(c=g.r(d.values()),V=c.next();!V.done;V=c.next())h.Ja.push(V.value);if(X.sabrContextUpdates.size>0)for(c=g.r(X.sabrContextUpdates.values()),V=c.next();!V.done;V=c.next())TVl(h,V.value,G);yu(X)&&!g.CW(X)&&X.S("html5_enable_sabr_request_pipelining")&&L&&TVl(h,L,G);X.wU&&(h.uPy=X.wU);G=X.j().J;h.clientInfo={clientName:uTs[G.c.toUpperCase()]|| +0};G.cbrand&&(h.clientInfo.deviceMake=G.cbrand);G.cmodel&&(h.clientInfo.deviceModel=G.cmodel);G.cver&&(h.clientInfo.clientVersion=G.cver);G.cos&&(h.clientInfo.osName=G.cos);G.cosver&&(h.clientInfo.osVersion=G.cosver);G=X.j();G.S("html5_sabr_enable_server_xtag_selection")&&G.HP&&(h.clientInfo.hl=G.HP);X.nW&&(h.nW=X.nW);return h}; +TVl=function(X,c,V){var G=c.type||0;(V==null?0:V.has(G))?X.Ja.push(c):X.Ww.push(G)}; +Iy=function(X,c,V,G,n,L){var d=L===void 0?{}:L;var h=d.zs===void 0?[]:d.zs;var A=d.o3===void 0?!1:d.o3;var Y=d.g7===void 0?0:d.g7;var H=d.poToken===void 0?"":d.poToken;var a=d.b0===void 0?void 0:d.b0;var W=d.R3===void 0?"":d.R3;var w=d.ij===void 0?0:d.ij;var F=d.DH===void 0?new Uint8Array(0):d.DH;var Z=d.NV===void 0?!1:d.NV;L=d.JV===void 0?0:d.JV;d=d.N9===void 0?void 0:d.N9;VR.call(this,c,n);var v=this;this.policy=X;this.logger=new g.d3("dash/request");this.XT=this.Yt=0;this.YS=!1;this.fg=this.sW= +null;this.Oj=!1;this.DH=this.ij=null;this.Sj=this.iK=!1;this.e5=null;this.JV=this.CF=0;this.K1=!1;this.F8={yg:function(m){v.yg(m)}, +Pu2:function(){return v.xt}, +Tl7:function(m){v.xt=m}, +s1y:function(m){v.Yt=m}, +nVy:function(m){v.D3.lastError=m}, +BZ:function(){return v.xhr}}; +this.timing=new Sb(this,V);this.o3=A;this.ij=w;this.DH=F;this.cg=g.Pt(this.info,this.policy,G);this.cg.set("rn",this.YA().toString());this.cg.set("rbuf",(Y*1E3).toFixed().toString());this.o3&&this.cg.set("smb","1");this.policy.B5&&H&&this.cg.set("pot",H);W&&this.cg.set("bbs",W);this.policy.useUmp&&!J7(this.cg.lF)&&(this.X7=new cC(this),this.cg.set("ump","1"),this.cg.set("srfvp","1"));if(X=this.policy.bA?this.policy.uC&&!isNaN(this.info.Hb)&&this.info.Hb>this.policy.aD?!1:!0:!1)c=null,this.policy.bU&& +this.policy.uw?c=[1]:Z&&(c=[]),c!=null&&(this.policy.r3&&c.push(2),this.cg.set("defsel",c.join(",")));this.D3=new YM(this,this.policy,this.cg,this.info.uB,this.timing,this.logger,G,a);this.zs=h||null;this.FQ=PWS(this);w4s(this.D3);G=void 0;if(this.policy.Tp||this.X7||this.policy.wy)G={method:"POST"},h=(0,g.xM)([120,0]),a={},this.policy.C0&&d&&(d=Zl(void 0,d),a.Up=d),this.policy.Nv&&this.DH&&(a.videoPlaybackUstreamerConfig=this.DH),this.policy.wy&&(d=this.info.X)&&Object.assign(a,d),Object.keys(a).length> +0?G.body=g.jE(a,g.c4):G.body=h;if(this.ij&&this.DH){this.cg.set("iwts","1");G={method:"POST"};d={Oa:this.ij*1E3};var e;h=(e=this.info.X)==null?void 0:e.An;e=g.jE({qR:d,An:h||void 0,videoPlaybackUstreamerConfig:this.DH},g.c4);G.body=e}try{this.xhr=LD(this.cg,this.policy.T,this.timing,X,G),this.D3.G.start(),L&&(this.KP=new g.qR(this.uL,L,this),this.KP.start(L+(this.timing.Pd.T.JP()||0)*1E3)),this.policy.pu&&Dx(this.timing,this.Yc()),this.logger.debug(function(){return"Sent, itag="+v.cg.get("itag")+ +" seg="+v.info.KS[0].Bl+" range="+v.cg.get("range")+" time="+Math.round(v.info.KS[0].X)+"-"+Math.round(g.Kt(v.info.KS).B)+" rtp="+(v.timing.z0()-Date.now()).toFixed(0)}),g.a3(function(){})}catch(m){zi8(this,m,!0)}}; +PWS=function(X){if(!(u$(X.info)&&X.info.Yq()&&X.policy.jX&&X.zs)||X.info.uB.G>=2||UM()>0||!ITj())return!1;var c=X.cg.get("aitags");if(!c)return!1;c=qo(c).split(",");for(var V=[],G=g.r(X.zs),n=G.next();!n.done;n=G.next())n=n.value,g.SV(c,n)&&V.push(n);if(!V.length)return!1;X.cg.set("altitags",g.i6(V.join(",")));return!0}; +zi8=function(X,c,V){V=V===void 0?!1:V;g.Ni(c);X.D3.lastError="player.exception";X.errorMessage=c.name+"_"+c.message;V?g.a3(function(){aP(X.D3)}):aP(X.D3)}; +BVD=function(X,c){X.timing.G_=!0;X.xhr.Eb()&&X.timing.uZ();if(X.policy.z2){var V;(V=X.KP)==null||V.stop()}AK(X.xt,c,!1)}; +KIS=function(X,c){X.info=c;if(X.xt){var V=X.xt;c=c.KS;(c.length!==V.KS.length||c.length0){c=g.r(c.KS);for(var V=c.next();!V.done;V=c.next()){var G=void 0;X+=((G=V.value.range)==null?void 0:G.length)||0}return X}if(c.I9.length>0)for(V=g.r(c.I9),G=V.next();!G.done;G=V.next())X+=G.value.R1||0;return X+c.xB}; +bT=function(X,c){if(JK){var V=0;X=X.T2.get(c);if(X==null||!X.YR)return 0;X=g.r(X.YR.values());for(c=X.next();!c.done;c=X.next())V+=c.value.data.getLength();return V}return((V=X.T2.get(c))==null?void 0:V.sN.getLength())||0}; +tK=function(X,c){X=X.T2.get(c);if(JK){if(X==null||!X.VG)return!1;c=X.YR.size>0;return X.u0.length>0||c}return!(X==null||!X.VG)&&!(X==null||!X.sN.getLength())}; +qml=function(X,c){var V=X.T2.get(c),G=i5l(X,c),n=!G&&!!V.bytesReceived;if(JK){var L;if((L=X.ZR)==null?0:L.ZQ){X=g.r(V.YR.values());for(c=X.next();!c.done;c=X.next())if(!c.value.f1)return!1;return n}}else if(L=X.Es(c),n&&X.J&&L!==void 0)return L;return(n||V.bytesReceived===G)&&V.J4+bT(X,c)===V.bytesReceived}; +XtD=function(X,c,V){X.T2.set(c,{sN:new vl,J4:0,bytesReceived:0,xB:0,Nq:!1,AP:!1,Es:!1,oi:V,Mq:[],KS:[],I9:[],VG:!1,YR:new Map,z$:new Map,u0:[]});X.logger.debug(function(){return"[initStream] formatId: "+c})}; +cQl=function(X,c,V,G){V.KS.push.apply(V.KS,g.x(G));if(JK){V.z$.has(c)||V.z$.set(c,[]);var n;(n=V.z$.get(c)).push.apply(n,g.x(G))}else if(V.xt)for(X=g.r(G),c=X.next();!c.done;c=X.next())V.xt.KS.push(c.value);else{V.xt=new hK(X.OH,[].concat(g.x(V.KS)));var L;((L=X.OH)==null?0:L.Fn)&&g.N(X,V.xt)}}; +V$l=function(X,c,V){var G,n=(G=X.ZR)==null?void 0:G.U.get(c);if(!n)return[];if(V.AU){var L;return((L=n.mM(0,V.clipId))==null?void 0:L.KS)||[]}if(n.Mb()){var d=V.startMs,h=V.durationMs,A=1E3,Y;if(((Y=X.OH)==null?0:Y.J)&&V.timeRange){var H;d=(H=V.timeRange.startTicks)!=null?H:-1;var a;h=(a=V.timeRange.Yi)!=null?a:-1;var W;A=(W=V.timeRange.timescale)!=null?W:-1}if(V.YK<0||V.tU<0||h<0||d<0||V.R1<0||A<0)return RP(X,c),[];X=tQ(V.YK,V.R1);c=V.wI||0;return[new l$(3,n,X,"makeSliceInfosMediaBytes",V.tU-1,d/ +A,h/A,c,X.length-c,void 0,V.jU,V.clipId)]}if(V.tU<0)return RP(X,c),[];var w;return((w=X.ZR)==null?0:w.ZQ)?(c=n.MY,Y=c*n.info.JX,H=((d=X.OH)==null?0:d.gm)?V.wI:void 0,((A=X.OH)==null?0:A.J2)&&V.timeRange&&!H&&(h=V.timeRange.startTicks/V.timeRange.timescale),[new l$(3,n,void 0,"makeSliceInfosMediaBytes",V.tU,h,c,H,Y,!0,V.jU,V.clipId)]):[]}; +G1U=function(X,c,V){X.ZR=c;X.OH=V;c=g.r(X.T2);for(V=c.next();!V.done;V=c.next()){var G=g.r(V.value);V=G.next().value;G=G.next().value;for(var n=g.r(G.Mq),L=n.next();!L.done;L=n.next()){L=L.value;var d=V$l(X,V,L);cQl(X,L.TI,G,d)}}}; +OU=function(X,c,V,G){X.logger.debug(function(){return"[addStreamData] formatId: "+V+",headerId: "+c+" bytes: "+G.getLength()}); +(X=X.T2.get(V))&&!X.AP&&(JK?(X.YR.has(c)||X.YR.set(c,{data:new vl,Df:0,f1:!1}),ky(X.YR.get(c).data,G)):ky(X.sN,G),X.bytesReceived+=G.getLength(),X.Nq=!0)}; +mN=function(X,c){X.logger.debug(function(){return"[closeStream] formatId: "+c}); +var V=X.T2.get(c);V&&!V.AP&&(V.AP=!0,V.E5&&V.E5(),nij(X)&&X.X.E1())}; +nij=function(X){X=g.r(X.T2.values());for(var c=X.next();!c.done;c=X.next())if(!c.value.AP)return!1;return!0}; +lT=function(X,c,V,G,n,L,d,h){g.I.call(this);this.policy=X;this.info=c;this.ZR=V;this.kU=n;this.md=h;this.logger=new g.d3("sabr");this.X7=new cC(this);this.S1=new oP(this);this.Ab=new ep(this);this.state=1;this.ZT=!1;this.S8=0;this.clipId="";this.QY=this.tC=-1;this.WB=0;this.Uv=-1;this.K1=this.DN=!1;this.yw=0;this.il=!1;this.policy.Mf?this.IL=new vC(this,L):this.IL=new Sb(this,L);this.cg=this.policy.EM?c.fI:LKD(c,this.policy,G);this.cg.set("rn",""+this.YA());this.cg.set("alr","yes");G1U(this.Ab,V, +X);this.D3=new YM(this,this.policy,this.cg,c.uB,this.IL,this.logger,G,d,this.policy.enableServerDrivenRequestCancellation);w4s(this.D3);var A;if((A=this.policy)==null?0:A.Fn)g.N(this,this.Ab),g.N(this,this.D3);X=c.G;c={method:"POST",body:X};X&&(this.WB=X.length);try{this.xhr=LD(this.cg,this.policy.T,this.IL,qY,c),this.policy.pu&&Dx(this.IL,this.Yc()),this.D3.G.start()}catch(Y){g.UQ(Y)}}; +dQw=function(X){X.policy.fn&&X.dj&&!X.il?X.il=!0:X.IL.uZ()}; +yQS=function(X,c){var V=-1,G=-1,n=-1,L;if((L=X.Z4)==null?0:L.items)for(X=g.r(X.Z4.items),L=X.next();!L.done;L=X.next())L=L.value,c=h,A=X.ZR.isManifestless&&X.policy.r7,d){var Y;if(((Y=X.J)==null?void 0:Y.iH.event)==="predictStart"&&X.J.BlX.B&&(X.B=NaN,X.D=NaN);X.J&&X.J.Bl===c?xQD(X,c,V,X.J,n):X.G===1&&pD(X,5,"noad")}; +xQD=function(X,c,V,G,n){if(n&&G){var L=G.iH,d=n.Ob(L);L.event==="predictStart"&&(X.A7=c);X.Oy("sdai",{onqevt:L.event,sq:c,mt:V,gab:d,cst:L.startSecs,cueid:X.policy.H8&&(d||L.event==="start")?L.identifier:void 0},!0);if(d)if(L.event!=="predictStart")L.event==="start"&&X.A7===c-1&&X.Oy("sdai",{gabonstart:c}),G.lJ?pD(X,4,"cue"):(X.B=c,X.D=V,X.Oy("sdai",{joinad:X.G,sg:X.B,st:X.D.toFixed(3)}),X.C=Date.now(),pD(X,2,"join"),n.Rw(G.iH));else{var h=c+Math.max(Math.ceil(-L.J/5E3),1);d=Math.floor(V-L.J/1E3); +X.policy.Z?X.Z=d:X.X=h;X.Oy("sdai",{onpred:V,estsq:h,estmt:d.toFixed(3)});Nh(X.h7,d,d,h);X.C=Date.now();pD(X,3,"predict");n.Rw(G.iH)}else X.G===1?((h=X.U)==null?0:h.WJ(V))?(Nh(X.h7,V,V,c),pD(X,4,"sk2had")):pD(X,5,"nogab"):L.event==="predictStart"&&(X.policy.Z&&X.Z>0?(V=Math.floor(V-L.J/1E3),X.Z!==V&&X.Oy("sdai",{updateSt:V,old:X.Z}),X.Z=V):X.X>0&&(V=c+Math.max(Math.ceil(-L.J/5E3),1),X.X!==V&&(X.Oy("sdai",{updateSt:V,old:X.X}),X.X=V)));var A,Y;if(X.JT&&L.event==="start"&&((A=X.J)==null?void 0:A.iH.event)!== +"predictStart"&&((Y=X.J)==null?void 0:Y.Bl)===c-1){var H;X.Oy("sdai",{ovlpst:(H=X.J)==null?void 0:H.iH.event,sq:c})}}else X.Oy("sdai",{nulldec:1,sq:c,mt:V.toFixed(3),evt:(G==null?void 0:(L=G.iH)==null?void 0:L.event)||"none"})}; +k1s=function(X,c,V){if(X.policy.EY&&X.policy.Z)return!(X.G===1||X.G===2||X.G===3&&V>=X.X);if(X.G===1||X.G===2)return!1;if(X.G!==0&&c===X.audioTrack){if(X.policy.Z)return vis(X.videoTrack,V)||vis(X.videoTrack,V+1);X=UU(X.videoTrack);if(V>(X?X.Bl:-1))return!1}return!0}; +TX=function(X,c,V){return(V<0||V===X.B)&&!isNaN(X.D)?X.D:c}; +rQD=function(X,c){if(X.J){var V=X.J.iH.VL-(c.startTime+X.T-X.J.iH.startSecs);V<=0||(V=new Tu(X.J.iH.startSecs-(isNaN(X.T)?0:X.T),V,X.J.iH.context,X.J.iH.identifier,"stop",X.J.iH.J+c.duration*1E3),X.Oy("cuepointdiscontinuity",{segNum:c.Bl}),fD(X,V,c.Bl))}}; +pD=function(X,c,V){X.G!==c&&(X.Oy("sdai",{setsst:c,old:X.G,r:V}),X.G=c)}; +uT=function(X,c,V,G){(G===void 0?0:G)?pD(X,1,"seek"):c>0&&Math.abs(c-V)>=5&&X.G===4&&pD(X,5,"sk2t."+c.toFixed(2)+";ct."+V.toFixed(2))}; +PC=function(X,c,V){this.audio=X;this.video=c;this.reason=V}; +zX=function(X,c,V){this.J=X;this.reason=c;this.token=V;this.videoId=void 0}; +BC=function(X,c,V){g.I.call(this);this.policy=X;this.X=c;this.Oy=V;this.U=new Map;this.Z=0;this.B=!1;this.J="";this.G=!1}; +KD=function(X,c,V){if(V===void 0?0:V)X.B=!0;++X.Z;V=6E4*Math.pow(2,X.Z);V=(0,g.ta)()+V;X.U.set(c.info.id,V)}; +sU=function(X){for(var c=g.r(X.U.entries()),V=c.next();!V.done;V=c.next()){var G=g.r(V.value);V=G.next().value;G=G.next().value;G<(0,g.ta)()&&X.U.delete(V)}return X.U}; +oiO=function(X){return X.B&&sU(X).size>0}; +CD=function(X,c){X.J!==c&&(X.J=c,X.G=!0)}; +eQl=function(X,c){var V;c&&(V=g.Ct(X.X.J,function(n){return n.id===c})); +if(!V&&(V=g.Ct(X.X.J,function(n){var L;return!((L=n.zF)==null||!L.isDefault)}),c)){var G; +X.Oy("iaf",{id:c,sid:(G=V)==null?void 0:G.id})}return V}; +Sp=function(X,c,V,G,n,L){var d=this;L=L===void 0?[]:L;this.h7=X;this.kO=c;this.policy=V;this.ZR=G;this.B=n;this.yK=L;this.logger=new g.d3("dash/abr");this.J=Pp;this.U=this.D=null;this.C=-1;this.Hl=!1;this.nextVideo=this.G=null;this.X=[];this.YO=new Set;this.wy={};this.T_=new HD(1);this.T=0;this.LS=this.A7=this.G_=!1;this.NW=0;this.fS=!1;this.Pl=new Set;this.QK=!1;this.F8={e1:function(){Dl(d)}}; +this.Z=new BC(this.policy,n,function(h,A){d.h7.Oy(h,A)})}; +t$t=function(X,c,V){iT(X,c);c=eQl(X.Z,V);V||c||(c=JQS(X));c=c||X.B.J[0];X.G=X.ZR.J[c.id];Dl(X);X.D=X.G;mQU(X);RQD(X);X.U=X.nextVideo;X.D=X.G;return b8t(X)}; +M$w=function(X,c){if(O82(X,c))return null;if(c.reason==="m"&&c.isLocked())return X.logger.debug(function(){return"User sets constraint to: "+jH(c)}),iT(X,c),X.T=X.X.length-1,Dl(X),qh(X),X.A7=X.A7||X.U!==X.nextVideo,X.U=X.nextVideo,new PC(X.G,X.U,c.reason); +c.reason==="r"&&(X.C=-1);iT(X,c);qh(X);if(c.reason==="r"&&X.nextVideo===X.U)return new PC(X.G,X.nextVideo,c.reason);lYl(X);return null}; +gij=function(X,c,V){X.G=X.ZR.J[c];X.D=X.G;return new PC(X.D,X.U,V?"t":"m")}; +fYl=function(X,c){if(c.info.video){if(X.U!==c)return X.U=c,b8t(X)}else X.LS=X.D!==c,X.D=c;return null}; +pt1=function(X,c){if(c.J.info.video&&c.Z){var V=(c.G+c.U)/c.duration,G=c.J.info.JX;V&&G&&(X.T_.Mm(1,V/G),X.policy.U&&V/G>1.5&&X.h7.Oy("overshoot",{sq:c.Bl,br:V,max:G}))}}; +c2=function(X,c,V){KD(X.Z,c,V===void 0?!1:V);X.C=-1;iT(X,X.J)}; +IYs=function(X,c){return new PC(X.D,X.U,c||X.J.reason)}; +lYl=function(X){if(X.U&&X.nextVideo&&V3(X,X.U.info)X.policy.xR,h=n<=X.policy.xR?q_(G):DO(G);if(!L||d||h)V[n]=G}return V}; +iT=function(X,c){X.J=c;var V=X.B.videoInfos;if(!X.J.isLocked()){var G=(0,g.ta)();V=g.HI(V,function(h){if(h.JX>this.policy.JX)return!1;var A=this.ZR.J[h.id];return sU(this.Z).get(h.id)>G?!1:A.uB.G>4||A.B>4?(this.logger.debug(function(){return"Remove "+A8(h)+"; 4 load failures"}),!1):this.Pl.has(+h.itag)?!1:!0},X); +oiO(X.Z)&&(V=g.HI(V,function(h){return h.video.width<=854&&h.video.height<=480}))}V.length||(V=X.B.videoInfos); +var n=V;X.policy.zf&&(n=UQL(X,n,c));n=g.HI(n,c.X,c);if(X.J.isLocked()&&X.Z.J){var L=g.Ct(V,function(h){return h.id===X.Z.J}); +L?n=[L]:CD(X.Z,"")}X.policy.zf||(n=UQL(X,n,c));n.length||(n=[V[0]]);n.sort(function(h,A){return V3(X,h)-V3(X,A)}); +c={};for(V=1;Vc.PT.video.width?(g.iA(n,V),V--):V3(X,c.jN)*X.policy.C>V3(X,c.PT)&&(g.iA(n,V-1),V--);var d=n[n.length-1];X.fS=!!X.U&&!!X.U.info&&X.U.info.VK!==d.VK;X.logger.debug(function(){return"Constraint: "+jH(X.J)+", "+n.length+" fmts selectable, max selectable fmt: "+A8(d)}); +X.X=n;X.YO.clear();c=!1;for(V=0;V=1080&&(c=!0);T_8(X.policy,d,X.ZR.ZQ)}; +UQL=function(X,c,V){var G=V.reason==="m"||V.reason==="s";X.policy.LQ&&GH&&g.v8&&(!G||V.J<1080)&&(c=c.filter(function(Y){return Y.video&&(!Y.G||Y.G.powerEfficient)})); +if(c.length>0)if(ZG()){var n=N_l(X,c);c=c.filter(function(Y){return!!Y&&!!Y.video&&Y.VK===n[Y.video.J].VK})}else{var L,d,h=(L=c[0])==null?void 0:(d=L.video)==null?void 0:d.J; +if(h){V=c.filter(function(Y){return!!Y&&!!Y.video&&Y.video.J===h}); +var A=N_l(X,V)[h].VK;c=c.filter(function(Y){return!!Y&&!!Y.video&&Y.VK===A})}}return c}; +uIl=function(X,c){for(var V=0;V+1G}; +Dl=function(X){if(!X.G||!X.policy.X&&!X.G.info.zF){var c=X.B.J;X.G&&(c=c.filter(function(G){return G.audio.J===X.G.info.audio.J}),c.length||(c=X.B.J)); +X.G=X.ZR.J[c[0].id];if(c.length>1){if(X.policy.xq){if(X.policy.Dn){var V=g.Rt(c,function(G){return G.audio.audioQuality}); +X.h7.Oy("aq",{hqa:X.policy.qE,qs:V.join("_")})}if(X.policy.qE)return;if(V=g.Ct(c,function(G){return G.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}))X.G=X.ZR.J[V.id]}V=!1; +if(V=X.policy.Wg?!0:X.J.isLocked()?X.J.J<240:uIl(X,X.G))X.G=X.ZR.J[g.Kt(c).id]}}}; +qh=function(X){if(!X.nextVideo||!X.policy.X)if(X.J.isLocked())X.nextVideo=X.J.J<=360?X.ZR.J[X.X[0].id]:X.ZR.J[g.Kt(X.X).id],X.logger.debug(function(){return"Select max fmt: "+A8(X.nextVideo.info)}); +else{for(var c=Math.min(X.T,X.X.length-1),V=tw(X.kO),G=V3(X,X.G.info),n=V/X.policy.G_-G;c>0&&!(V3(X,X.X[c])<=n);c--);for(var L=V/X.policy.C-G;c=L);c++);X.nextVideo=X.ZR.J[X.X[c].id];X.T!==c&&X.logger.info(function(){return"Adapt to: "+A8(X.nextVideo.info)+", bandwidth: "+V.toFixed(0)+", bandwidth to downgrade: "+n.toFixed(0)+", bandwidth to upgrade: "+L.toFixed(0)+", constraint: "+jH(X.J)}); +X.T=c}}; +mQU=function(X){var c=X.policy.G_,V=tw(X.kO),G=V/c-V3(X,X.G.info);c=g.Di(X.X,function(n){return V3(this,n)L?n=0:G[d]>X.buffered[d]&&(d===L-1?n=2:d===L-2&&G[d+1]>X.buffered[d+1]&&(n=3))}X.J.add(c<<3|(V&&4)|n);c=Math.ceil(X.track.Zk()*1E3);X.J.add(c-X.Z);X.Z=c;if(n===1)for(X.J.add(L),d=c=0;d=2&&X.J.add(G[L- +1]-X.buffered[L-1]);V&&X.J.add(V);X.buffered=G}; +dY=function(X,c,V){var G=this;this.policy=X;this.J=c;this.NW=V;this.X=this.G=0;this.GY=null;this.G_=new Set;this.C=[];this.indexRange=this.initRange=null;this.T=new cS;this.A7=this.kO=!1;this.F8={kPy:function(){return G.U}, +emS:function(){return G.chunkSize}, +wFl:function(){return G.D}, +Bhh:function(){return G.B}}; +(c=sqD(this))?(this.chunkSize=c.csz,this.U=Math.floor(c.clen/c.csz),this.D=c.ck,this.B=c.civ):(this.chunkSize=X.Em,this.U=0,this.D=g.mq(16),this.B=g.mq(16));this.Z=new Uint8Array(this.chunkSize);this.D&&this.B&&(this.crypto=new nW1(this.D,this.B))}; +sqD=function(X){if(X.policy.U_&&X.policy.jl)for(var c=g.r(X.policy.U_),V=c.next(),G={};!V.done;G={T4:void 0,A_:void 0},V=c.next())if(V=g.A3(V.value),G.T4=+V.clen,G.A_=+V.csz,G.T4>0&&G.A_>0&&X.policy.X===V.docid&&X.J.info.id===V.fmtid&&X.J.info.lastModified===+V.lmt)return X={},X.clen=G.T4,X.csz=G.A_,X.ck=V.ck,X.civ=V.civ,X}; +y3=function(X){return!!X.GY&&X.GY.Dm()}; +SCD=function(X,c){if(!y3(X)&&!X.vl()){if(!(X.kO||(X.kO=!0,X.U>0))){var V=hA(X);V=MV(X.policy.X,X.J.info,AA(X),V,X.policy.yK);YO(X,V)}if(c.info.type===1){if(X.GY){jx(X,Error("Woffle: Expect INIT slices to always start us off"));return}X.initRange=tQ(0,c.J.getLength())}else if(c.info.type===2)X.GY&&X.GY.type===1||jx(X,Error("Woffle: Index before init")),X.indexRange=tQ(X.initRange.end+1,c.J.getLength());else if(c.info.type===3){if(!X.GY){jx(X,Error("Woffle: Expect MEDIA slices to always have lastSlice")); +return}if(X.GY.type===3&&!f8(X.GY,c.info)&&(X.C=[],c.info.Bl!==p8(X.GY)||c.info.G!==0))return;if(c.info.Z){V=g.r(X.C);for(var G=V.next();!G.done;G=V.next())C$D(X,G.value);X.C=[]}else{X.C.push(c);X.GY=c.info;return}}else{jx(X,Error("Woffle: Unexpected slice type"));return}X.GY=c.info;C$D(X,c);DQ2(X)}}; +C$D=function(X,c){var V=0,G=c.J.wM();if(X.X=G.length)return;if(V<0)throw Error("Missing data");X.X=X.U;X.G=0}for(n={};V0){var d=G.getUint32(V+28);L+=d*16+4}var h=G.getUint32(V+L-4);try{var A=VtL(c.subarray(V+L,V+L+h));if(A!==null){var Y=A;break a}}catch(H){}}V+=n}Y=null;break a}catch(H){Y=null;break a}Y=void 0}if(Y!=null)for(c=AV(Nu(Y,7)),c==null||X.hO||(X.cryptoPeriodIndex=c),c=AV(Nu(Y,10)),c!=null&&c>0&&!X.hO&&(X.J=c),Y=s5(Y, +2,wYw,void 0===rEU?2:4),Y=g.r(Y),c=Y.next();!c.done;c=Y.next())X.U.push(g.rQ(JE(c.value),4))}; +nFU=function(X){return isNaN(X.cryptoPeriodIndex)?g.rQ(X.initData):""+X.cryptoPeriodIndex}; +$O=function(X,c,V){var G=V===void 0?{}:V;V=G.videoDuration===void 0?0:G.videoDuration;var n=G.CL===void 0?void 0:G.CL;G=G.xT===void 0?!1:G.xT;this.videoId=X;this.status=c;this.videoDuration=V;this.CL=n;this.xT=G}; +LFL=function(X,c,V,G,n){this.videoId=X;this.Yh=c;this.G=V;this.bytesDownloaded=G;this.J=n}; +W2=function(X){this.J=X;this.offset=0}; +wY=function(X){if(X.offset>=X.J.getLength())throw Error();return X.J.getUint8(X.offset++)}; +dY2=function(X,c){c=c===void 0?!1:c;var V=wY(X);if(V===1){c=-1;for(V=0;V<7;V++){var G=wY(X);c===-1&&G!==255&&(c=0);c>-1&&(c=c*256+G)}return c}G=128;for(var n=0;n<6&&G>V;n++)V=V*256+wY(X),G*=128;return c?V:V-G}; +yFw=function(X){try{var c=dY2(X,!0),V=dY2(X,!1);return{id:c,size:V}}catch(G){return{id:-1,size:-1}}}; +hk1=function(X){for(var c=new W2(X),V=-1,G=0,n=0;!G||!n;){var L=yFw(c),d=L.id;L=L.size;if(d<0)return;if(d===176){if(L!==2)return;G=c.pg()}else if(d===186){if(L!==2)return;n=c.pg()}d===374648427?V=c.pg()+L:d!==408125543&&d!==174&&d!==224&&c.skip(L)}c=mS(X,0,V);V=new DataView(c.buffer);V.setUint16(G,3840);V.setUint16(n,2160);G=new vl([c]);ky(G,X);return G}; +AFw=function(X,c,V){var G=this;this.h7=X;this.policy=c;this.B=V;this.logger=new g.d3("dash");this.G=[];this.J=null;this.kO=-1;this.C=0;this.Pl=NaN;this.G_=0;this.U=NaN;this.T=this.Hl=0;this.fS=-1;this.wy=this.Z=this.X=this.NW=null;this.T_=this.LS=NaN;this.D=this.A7=this.YO=this.yK=null;this.qE=!1;this.QK=this.timestampOffset=0;this.F8={v0:function(){return G.G}}; +if(this.policy.X){var n=this.B,L=this.policy.X;this.policy.yK&&X.Oy("atv",{ap:this.policy.yK});this.D=new dY(this.policy,n,function(d,h,A){FR(X,new $O(G.policy.X,2,{CL:new LFL(L,d,n.info,h,A)}))}); +this.D.T.promise.then(function(d){G.D=null;d===1?FR(X,new $O(G.policy.X,d)):G.h7.Oy("offlineerr",{status:d.toString()})},function(d){var h=(d.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); +d instanceof H2&&!d.J?(G.logger.info(function(){return"Assertion failed: "+h}),G.h7.Oy("offlinenwerr",{em:h}),Ek(G),FR(X,new $O(G.policy.X,4))):(G.logger.info(function(){return"Failed to write to disk: "+h}),G.h7.Oy("dldbwerr",{em:h}),Ek(G),FR(X,new $O(G.policy.X,4,{xT:!0})))})}}; +YX2=function(X){return X.G.length?X.G[0]:null}; +jEj=function(X,c){return X.G.some(function(V){return V.info.Bl===c})}; +wyl=function(X,c,V,G){G=G===void 0?0:G;if(X.Z){var n=X.Z.G+X.Z.U;if(V.info.G>0)if(V.info.Bl===X.Z.Bl&&V.info.G=0&&X.Z.Bl>=0&&!f8(X.Z,V.info))throw new g.SP("improper_continuation",X.Z.u3(),V.info.u3());XZO(X.Z,V.info)||rY(X,"d")}else if(V.info.G>0)throw new g.SP("continuation_of_null",V.info.u3());X.Z=V.info;X.B=V.info.J;if(V.info.G===0){if(X.J)if(!X.h7.isOffline()||X.policy.AJ)X.h7.Oy("slice_not_fully_processed",{buffered:X.J.info.u3(), +push:V.info.u3()});else throw new g.SP("slice_not_fully_processed",X.J.info.u3(),V.info.u3());Q3(X);X.Hl=G}else{if(X.Hl&&G&&X.Hl!==G)throw X=new g.SP("lmt_mismatch",V.info.Bl,X.Hl,G),X.level="WARNING",X;!V.info.J.Mb()&&X.X&&(G=V.info,n=X.X.tC,G.D="updateWithEmsg",G.Bl=n)}if(X.J){G=g.cy(X.J,V);if(!G)throw new g.SP("failed_to_merge",X.J.info.u3(),V.info.u3());X.J=G}else X.J=V;a:{V=g.Vs(X.J.info.J.info);if(X.J.info.type!==3){if(!X.J.info.Z)break a;X.J.info.type===6?Hxs(X,c,X.J):aJD(X,X.J);X.J=null}for(;X.J;){G= +X.J.J.getLength();if(X.kO<=0&&X.C===0){var L=X.J.J,d=-1;n=-1;if(V){for(var h=0;h+80))break;if(a!==408125543)if(a===524531317)h=!0,H>=0&&(n=L.pg()+H,A=!0);else{if(h&&(a===160||a===163)&&(d<0&&(d=Y),A))break;a===163&&(d=Math.max(0,d),n=L.pg()+H);if(a===160){d<0&&(n=d=L.pg()+H);break}L.skip(H)}}d<0&&(n=-1)}if(d< +0)break;X.kO=d;X.C=n-d}if(X.kO>G)break;X.kO?(G=$Yl(X,X.kO),G.Z&&WFU(X,G),Hxs(X,c,G),ZA(X,G),X.kO=0):X.C&&(G=$Yl(X,X.C<0?Infinity:X.C),X.C-=G.J.getLength(),ZA(X,G))}}X.J&&X.J.info.Z&&(ZA(X,X.J),X.J=null)}; +aJD=function(X,c){!c.info.J.Mb()&&c.info.G===0&&(g.Vs(c.info.J.info)||c.info.J.info.hO())&&RbO(c);if(c.info.type===1)try{WFU(X,c),FFL(X,c)}catch(n){g.Ni(n);var V=Iq(c.info);V.hms="1";X.h7.handleError("fmt.unparseable",V||{},1)}V=c.info.J;V.Zq(c);X.D&&SCD(X.D,c);if(V.tb()&&X.policy.J)a:{X=X.h7.ZR;c=c.info.clipId;V=g.nu(V.info,X.ZQ);if(c){var G=K$l(X,V);if(X.QK[G])break a;X.QK[G]=c}X.wy.push(V)}}; +PI8=function(X,c,V){if(X.G.length!==0&&(V||X.G.some(function(L){return L.info.X=v2(d)+h):c=X.getDuration()>=d.getDuration(),c=!c;c&&QED(V)&&(c=X.NW,xO?(h=J8l(V),d=1/h,h=v2(X,h),c=v2(c)+d-h):c=c.getDuration()- +X.getDuration(),c=1+c/V.info.duration,bp2(V.Hg(),c))}else{d=!1;X.X||(RbO(V),V.G&&(X.X=V.G,d=!0,L=V.info,G=V.G.tC,L.D="updateWithEmsg",L.Bl=G,L=V.G,L.Dm&&(G=X.B.index,G.G=!L.Dm,G.U="emsg"),L=V.info.J.info,G=V.Hg(),g.Vs(L)?ct(G,1701671783):L.hO()&&AQ([408125543],307544935,G)));a:if((L=nx(V,X.policy.Od))&&m1D(V))h=Zxl(X,V),X.T+=h,L-=h,X.G_+=L,X.U=X.policy.Xn?X.U+L:NaN;else{if(X.policy.cq){if(G=A=X.h7.H1(g.Vq(V),1),X.U>=0&&V.info.type!==6){if(X.policy.Xn&&isNaN(X.LS)){g.UQ(new g.SP("Missing duration while processing previous chunk", +V.info.u3()));X.h7.isOffline()&&!X.policy.AJ||xYt(X,V,G);rY(X,"m");break a}var Y=A-X.U,H=Y-X.T,a=V.info.Bl,W=X.wy?X.wy.Bl:-1,w=X.T_,F=X.LS,Z=X.policy.UI&&Y>X.policy.UI,v=Math.abs(H)>10,e=Math.abs(X.U-G)<1E-7;if(Math.abs(H)>1E-4){X.QK+=1;var m=(n=X.X)==null?void 0:zu(n);n={audio:""+ +X.oi(),sq:a.toFixed(),sliceStart:A,lastSq:W.toFixed(),lastSliceStart:w,lastSliceDuration:F,totalDrift:(Y*1E3).toFixed(),segDrift:(H*1E3).toFixed(),skipRewrite:""+ +(Z||v)};if(m==null?0:m.length)n.adCpn=m[0];X.h7.handleError("qoe.avsync", +n);X.fS=a}Z||v||e||(G=X.U);n=Zxl(X,V,A);L-=n;X.T=Y+n;X.policy.U&&(H&&!e||n)&&(Y=(h=X.X)==null?void 0:zu(h),X.h7.Oy("discontinuityRewrite",{adCpn:(Y==null?0:Y.length)?Y.join("."):"",itag:V.info.J.info.itag,sq:V.info.Bl,originalStartTime:A,rewrittenStartTime:G,startTimeAdjustment:G-A,segDrift:(H*1E3).toFixed(),originalDuration:L+n,rewrittenDuration:L,durationAdjustment:n}))}}else G=isNaN(X.U)?V.info.startTime:X.U;xYt(X,V,G)&&(X.G_+=L,X.U=G+L,X.policy.Rm&&X.QK>=X.policy.Rm&&(X.QK=0,X.h7.Bz({resetForRewrites:"count"})))}X.wy= +V.info;X.LS=Gb(V);V.U>=0&&(X.T_=V.U);if(d&&X.X){d=vF2(X,!0);NQ(V.info,d);X.J&&NQ(X.J.info,d);c=g.r(c);for(h=c.next();!h.done;h=c.next())h=h.value,n=void 0,X.policy.B&&h.Bl!==((n=X.X)==null?void 0:n.tC)||NQ(h,d);(V.info.Z||X.J&&X.J.info.Z)&&V.info.type!==6||(X.A7=d,X.policy.T_?(c=kbj(X.X),X.h7.E3(X.B,d,c)):(c=X.h7,c.ZR.isManifestless&&oFw(c,d,null,!!X.B.info.video)),X.policy.Pb||ekj(X))}}FFL(X,V);X.timestampOffset&&oKL(V,X.timestampOffset)}; +ZA=function(X,c){if(c.info.Z){X.yK=c.info;if(X.X){var V=X.X,G=vF2(X,!1);V=kbj(V);X.h7.E3(X.B,G,V);X.A7||X.policy.Pb||ekj(X);X.A7=null}Q3(X)}X.D&&SCD(X.D,c);if(G=X.Hz())if(G=g.cy(G,c,X.policy.KW)){X.G.pop();X.G.push(G);return}X.G.push(c)}; +kbj=function(X){if(X.lJ()){var c=X.data["Stitched-Video-Id"]?X.data["Stitched-Video-Id"].split(",").slice(0,-1):[],V=zu(X),G=[];if(X.data["Stitched-Video-Duration-Us"])for(var n=g.r(X.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),L=n.next();!L.done;L=n.next())G.push((Number(L.value)||0)/1E6);n=[];if(X.data["Stitched-Video-Start-Frame-Index"]){L=g.r(X.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var d=L.next();!d.done;d=L.next())n.push(Number(d.value)||0)}n=[]; +if(X.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(L=g.r(X.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),d=L.next();!d.done;d=L.next())n.push((Number(d.value)||0)/1E6);X=new cFw(c,V,G,n,g.eBj(X),g.JmO(X))}else X=null;return X}; +Q3=function(X){X.J=null;X.kO=-1;X.C=0;X.X=null;X.Pl=NaN;X.G_=0;X.A7=null}; +rY=function(X,c){c={rst4disc:c,cd:X.T.toFixed(3),sq:X.wy?X.wy.Bl:-1};X.U=NaN;X.T=0;X.fS=-1;X.wy=null;X.T_=NaN;X.LS=NaN;X.YO=null;X.h7.Oy("mdstm",c)}; +FFL=function(X,c){if(X.B.info.r$){if(c.info.J.info.hO()){var V=new G1(c.Hg());if(L8(V,[408125543,374648427,174,28032,25152,20533,18402])){var G=hQ(V,!0);V=G!==16?null:aq(V,G)}else V=null;G="webm"}else c.info.C=qCs(c.Hg()),V=XyD(c.info.C),G="cenc";V&&V.length&&(V=new aY(V,G),X.policy.iq&&g.Vs(c.info.J.info)&&(G=fO1(c.Hg()))&&(V.G=G),V.hO=c.info.J.info.hO(),c.G&&c.G.cryptoPeriodIndex&&(V.cryptoPeriodIndex=c.G.cryptoPeriodIndex),c.G&&c.G.G&&(V.J=c.G.G),X.h7.AF(V))}}; +ekj=function(X){var c=X.X,V=kml(c);V&&(V.startSecs+=X.Pl,X.h7.w4(X.B,V,c.tC,c.lJ()))}; +vF2=function(X,c){var V,G=X.X;if(V=kml(G))V.startSecs+=X.Pl;return new t7(G.tC,X.Pl,c?G.MY:X.G_,G.ingestionTime,"sq/"+G.tC,void 0,void 0,c,V)}; +xYt=function(X,c,V){if(!kzs(c,V))return c=Iq(c.info),c.smst="1",X.h7.handleError("fmt.unparseable",c||{},1),!1;isNaN(X.Pl)&&(X.Pl=V);return!0}; +Zxl=function(X,c,V){var G=0;if(c.info.J.info.hO()&&!m1D(c))return 0;if(X.NW&&!X.oi()){var n=0;V&&g.Vs(c.info.J.info)?n=V-X.U:c.info.J.info.hO()&&(n=X.T);var L=c.info.Bl;V=nx(c,X.policy.Od);var d=X.NW;var h=d.fS;d=d.T;var A=Math.abs(d-n)>.02;if((L===h||L>h&&L>X.fS)&&A){G=Math.max(.95,Math.min(1.05,(V-(d-n))/V));if(g.Vs(c.info.J.info))bp2(c.Hg(),G);else if(c.info.J.info.hO()&&(L=n-d,!g.Vs(c.info.J.info)&&(c.info.J.info.hO(),G=new G1(c.Hg()),h=c.Z?G:new G1(new DataView(c.info.J.J.buffer)),nx(c,!0)))){var Y= +L*1E3,H=Wt(h);h=G.pos;G.pos=0;if(G.J.getUint8(G.pos)===160||w_(G))if(yH(G,160))if(hQ(G,!0),yH(G,155)){if(L=G.pos,A=hQ(G,!0),G.pos=L,Y=Y*1E9/H,H=Yi(G),Y=H+Math.max(-H*.7,Math.min(H,Y)),Y=Math.sign(Y)*Math.floor(Math.abs(Y)),!(Math.ceil(Math.log(Y)/Math.log(2)/8)>A)){G.pos=L+1;for(L=A-1;L>=0;L--)G.J.setUint8(G.pos+L,Y&255),Y>>>=8;G.pos=h}}else G.pos=h;else G.pos=h;else G.pos=h}G=nx(c,X.policy.Od);G=V-G}G&&c.info.J.info.hO()&&X.h7.Oy("webmDurationAdjustment",{durationAdjustment:G,videoDrift:n+G,audioDrift:d})}return G}; +QED=function(X){return X.info.J.Mb()&&X.info.Bl===X.info.J.index.q6()}; +v2=function(X,c){c=(c=c===void 0?0:c)?Math.round(X.timestampOffset*c)/c:X.timestampOffset;X.B.X&&c&&(c+=X.B.X.J);return c+X.getDuration()}; +JFw=function(X,c){c<0||(X.G.forEach(function(V){oKL(V,c)}),X.timestampOffset=c)}; +pz=function(X,c,V,G,n){VR.call(this,V,n);var L=this;this.policy=X;this.formatId=c;this.Ab=G;this.lastError=null;this.E5=function(){L.vl()||(L.Ab.T2.has(L.formatId)?(L.isComplete()||L.J.start(),tK(L.Ab,L.formatId)&&L.yF(2),L.Ab.AP(L.formatId)&&(qml(L.Ab,L.formatId)?L.yg(4):(L.lastError="net.closed",L.yg(5)))):(L.lastError="player.exception",L.yg(5)))}; +this.J=new g.qR(function(){L.isComplete()||(L.lastError="net.timeout",L.yg(5))},1E3); +this.J.start();D2w(this.Ab,this.formatId,this.E5);g.a3(this.E5)}; +kO=function(X,c,V,G){g.I.call(this);var n=this;this.h7=X;this.policy=c;this.J=V;this.timing=G;this.logger=new g.d3("dash");this.U=[];this.NW=[];this.G=this.DQ=null;this.Hl=!1;this.QK=this.YO=0;this.B=-1;this.kO=!1;this.Pl=-1;this.wy=null;this.A7=NaN;this.G_=[];this.F8={hE:function(){return n.X}, +URl:function(){return n.U}, +Zw_:function(){return n.T}}; +this.X=new AFw(X,c,V);this.policy.J&&(this.T=new ln(this.X,this.h7.getManifest(),this.policy,function(L){n.policy.DD&&n.Oy("buftl",L)})); +this.policy.oZ&&(this.C=new nG(this));this.JX=V.info.JX;this.D=this.policy.A7?!1:V.Iq();this.isManifestless=V.Iq();this.Z=this.D;g.N(this,this.wy)}; +oY=function(X,c,V){V=V===void 0?!1:V;c&&xO&&JFw(X.X,c.HZ());if(!V){var G;(G=X.T)==null||N1t(G)}X.DQ=c;(c=X.T)!=null&&(c.DQ=X.DQ)}; +ex=function(X){var c=X.DQ&&X.DQ.YN();if(X.policy.OI){if((X=X.T)==null)X=void 0;else{var V;X=(V=X.U)==null?void 0:V.info}return X||null}return c}; +mYD=function(X){for(var c={},V=0;V4&&X.NW.shift()}; +Rkw=function(X,c){if(c.qX()){var V=c.Av();V=g.r(V);for(var G=V.next();!G.done;G=V.next())G=G.value,X.policy.U&&c instanceof pz&&X.Oy("omblss",{s:G.info.u3()}),mg(X,c.info.KS,G,c.uQ())}}; +mg=function(X,c,V,G){G=G===void 0?0:G;isNaN(X.A7)||(X.Oy("aswm",{sq:c[0].Bl,id:c[0].J.info.itag,xtag:c[0].J.info.J,ep:Date.now()-X.A7}),X.A7=NaN);switch(V.info.type){case 1:case 2:bxU(X,V);break;case 4:var n=V.info.J,L=n.HM(V),d;((d=X.G)==null?0:d.type===4)&&y8D(V.info,X.G)&&(X.G=n.SE(X.G).pop());V=g.r(L);for(n=V.next();!n.done;n=V.next())mg(X,c,n.value,G);break;case 3:V.info.J.info.video?(n=X.timing,n.NW||(n.NW=(0,g.ta)(),b3("fvb_r",n.NW,n.J))):(n=X.timing,n.B||(n.B=(0,g.ta)(),b3("fab_r",n.B,n.J))); +wyl(X.X,c,V,G);X.policy.J&&ttD(X);break;case 6:wyl(X.X,c,V,G),X.G=V.info}}; +bxU=function(X,c){if(c.info.type===1)if(c.info.J.info.video){var V=X.timing;V.wy||(V.wy=(0,g.ta)(),b3("vis_r",V.wy,V.J))}else V=X.timing,V.T||(V.T=(0,g.ta)(),b3("ais_r",V.T,V.J));aJD(X.X,c);X=X.h7;X.videoTrack.J.tb()&&X.audioTrack.J.tb()&&X.policy.J&&!X.ZR.ZQ&&(c=X.audioTrack.getDuration(),V=X.videoTrack.getDuration(),Math.abs(c-V)>1&&X.Oy("trBug",{af:""+g.nu(X.audioTrack.J.info,!1),vf:""+g.nu(X.videoTrack.J.info,!1),a:""+c,v:""+V}))}; +Kz=function(X){return YX2(X.X)}; +ttD=function(X){X.U.length?X.G=g.Kt(g.Kt(X.U).info.KS):X.X.G.length?X.G=X.X.Hz().info:X.G=ex(X)}; +RY=function(X,c){var V={lB:[],CK:[]},G;if((X=X.T)==null)X=void 0;else{Ia1(X,X.lB,"og");g0l(X,c);Ia1(X,X.lB,"trim");var n=pV2(X);c=n.lB;n=n.Cg;for(var L=[],d=0;d0){var W=HZ(a,A);W>=0&&(H=(a.end(W)-A+.1)*1E3)}L.push({formatId:g.nu(h.info.J.info,X.ZR.ZQ), +jU:h.info.jU,sequenceNumber:h.info.Bl+X.X,Pp:Y,K8:h.info.U,TN:H})}X={lB:c,CK:L}}return(G=X)!=null?G:V}; +UJ=function(X,c,V){V=V===void 0?!1:V;if(X.DQ){var G=X.DQ.KE(),n=$K(G,c),L=NaN,d=ex(X);d&&(L=$K(G,d.J.index.getStartTime(d.Bl)));if(n===L&&X.G&&X.G.U&&Oxt(bB(X),0))return c}X=lJ1(X,c,V);return X>=0?X:NaN}; +un=function(X,c,V){X.J.tb();var G=lJ1(X,c);if(G>=0)return G;var n;(n=X.T)==null||fas(n,c,V);V=Math;G=V.min;n=X.X;if(n.D)if(n=n.D,n.GY&&n.GY.type===3)n=n.GY.startTime;else if(n.U>0){var L=n.J.index;L=g.hE(L.offsets.subarray(0,L.count),n.U*n.chunkSize);n=n.J.index.getStartTime(L>=0?L:Math.max(0,-L-2))}else n=0;else n=Infinity;c=G.call(V,c,n);if(X.policy.G){var d,h;V=(d=X.h7.KJ())==null?void 0:(h=gZ(d,c))==null?void 0:h.clipId;X.G=X.J.FO(c,void 0,V).KS[0]}else X.G=X.policy.A7?null:X.J.FO(c).KS[0];tA(X)&& +(X.DQ&&X.DQ.abort(),X.policy.gk&&(d=X.T)!=null&&(d.U=void 0));X.QK=0;return X.G?X.G.startTime:c}; +T1w=function(X){X.D=!0;X.Z=!0;X.B=-1;un(X,Infinity)}; +Ok=function(X){for(var c=0,V=g.r(X.U),G=V.next();!G.done;G=V.next())c+=A8D(G.value.info);return c+=EFt(X.X)}; +Md=function(X,c){c=c===void 0?!1:c;var V=X.h7.getCurrentTime(),G=X.X.Hz(),n=(G==null?void 0:G.info.B)||0;X.policy.Og&&(G==null?0:G.info.J.Iq())&&!G.info.Z&&(n=G.info.X);if(X.policy.G&&G&&G.info.clipId){var L,d=(((L=X.h7.KJ())==null?void 0:Mm(L,G.info.clipId))||0)/1E3;n+=d}if(!X.DQ)return X.policy.J&&c&&!isNaN(V)&&G?n-V:0;if((L=ex(X))&&lB(X,L))return L.B;d=X.DQ.KE(!0);if(c&&G)return L=0,X.policy.J&&(L=wq(d,n+.02)),L+n-V;n=wq(d,V);X.policy.mI&&L&&(c=HZ(d,V),d=HZ(d,L.X-.02),c===d&&(V=L.B-V,X.policy.U&& +V>n+.02&&X.Oy("abh",{bh:n,bhtls:V}),n=Math.max(n,V)));return n}; +MtS=function(X){var c=ex(X);return c?c.B-X.h7.getCurrentTime():0}; +gFS=function(X,c){if(X.U.length){if(X.U[0].info.KS[0].startTime<=c)return;Nm(X)}for(var V=X.X,G=V.G.length-1;G>=0;G--)V.G[G].info.startTime>c&&V.G.pop();ttD(X);X.G&&c=0;d--){var h=n.G[d];h.info.Bl>=c&&(n.G.pop(),n.U-=nx(h,n.policy.Od),L=h.info)}L&&(n.Z=n.G.length>0?n.G[n.G.length-1].info:n.YO,n.G.length!==0||n.Z||rY(n,"r"));n.h7.Oy("mdstm",{rollbk:1,itag:L?L.J.info.itag:"",popped:L?L.Bl:-1,sq:c,lastslc:n.Z?n.Z.Bl:-1,lastfraget:n.U.toFixed(3)});if(X.policy.J)return X.G=null,!0;G>V?un(X,G):X.G=X.J.LF(c-1,!1).KS[0]}catch(A){return c=lo(A),c.details.reason="rollbkerr", +X.h7.handleError(c.errorCode,c.details,c.severity),!1}return!0}; +pG=function(X,c){var V;for(V=0;V0?V||c.Bl>=X.Pl:V}; +Nd=function(X){var c;return tA(X)||lB(X,(c=X.X.Hz())==null?void 0:c.info)}; +bB=function(X){var c=[],V=ex(X);V&&c.push(V);c=g.cY(c,X.X.r_());V=g.r(X.U);for(var G=V.next();!G.done;G=V.next()){G=G.value;for(var n=g.r(G.info.KS),L=n.next(),d={};!L.done;d={He:void 0},L=n.next())d.He=L.value,G.Lk&&(c=g.HI(c,function(h){return function(A){return!y8D(A,h.He)}}(d))),(g_(d.He)||d.He.type===4)&&c.push(d.He)}X.G&&!ips(X.G,g.Kt(c),X.G.J.Mb())&&c.push(X.G); +return c}; +Oxt=function(X,c){if(!X.length)return!1;for(c+=1;c=c){c=L;break a}}c=n}return c<0?NaN:Oxt(X,V?c:0)?X[c].startTime:NaN}; +Uk=function(X){return!(!X.G||X.G.J===X.J)}; +fJD=function(X){return Uk(X)&&X.J.tb()&&X.G.J.info.JXc&&G.B1080&&!X.QJ&&(X.QK=36700160,X.o2=5242880,X.YO=Math.max(4194304,X.YO),X.QJ=!0);c.video.J>2160&&!X.Zw&&(X.QK=104857600,X.JX=13107200,X.Zw=!0);g.EZ(X.Fh.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?c.isEncrypted()&&g.C1()&&g.K1("samsung")&&(g.K1("kant")||g.K1("muse"))&&(X.JX=g.EZ(X.Fh.experiments,"html5_samsung_kant_limit_max_bitrate")):c.isEncrypted()&&g.C1()&&g.K1("kant")&&(X.JX=1310720);X.UY!==0&&c.isEncrypted()&&(X.JX=X.UY);X.aF!==0&&c.isEncrypted()&& +V&&(X.JX=X.aF);c.JX&&(X.qn=Math.max(X.UQ,Math.min(X.YO,5*c.JX)))}; +KG=function(X){return X.J&&X.lX&&X.playbackStartPolicy}; +sk=function(X){return X.G||X.J&&X.vW}; +CG=function(X,c,V,G){X.lX&&(X.playbackStartPolicy=c,X.IU=V,X.MP=G)}; +B2=function(X,c,V){V=V===void 0?0:V;return g.EZ(X.Fh.experiments,c)||V}; +ixs=function(X){var c=X===void 0?{}:X;X=c.uw;var V=c.FK;var G=c.SL;var n=c.q6;c=c.WN;this.uw=X;this.FK=V;this.SL=G;this.q6=n;this.WN=c}; +X4w=function(X,c){if(c<0)return!0;var V=X.q6();return c0)return 2;if(c<0)return 1;V=X.q6();return c(0,g.ta)()?0:1}; +Sx=function(X,c,V,G,n,L,d,h,A,Y,H,a,W,w){w=w===void 0?null:w;g.I.call(this);var F=this;this.h7=X;this.policy=c;this.videoTrack=V;this.audioTrack=G;this.X=n;this.J=L;this.timing=d;this.Z=h;this.schedule=A;this.ZR=Y;this.U=H;this.G_=a;this.NV=W;this.DH=w;this.A7=!1;this.R3="";this.zz=null;this.Hb=NaN;this.kO=!1;this.G=null;this.ij=this.C=NaN;this.JV=this.B=0;this.logger=new g.d3("dash");this.F8={Xi:function(Z,v){return F.Xi(Z,v)}}; +this.policy.w7>0&&(this.R3=g.mq(this.policy.w7));this.policy.dW&&(this.T=new DA(this.h7,this.policy,this.schedule),g.N(this,this.T))}; +nCD=function(X,c,V){var G=c.G?c.G.J.uB:c.J.uB;var n=X.X,L;(L=!X.policy.hx)||(L=eH(G.J)===eH(G.U));L?G=!1:(n=ZY(n,eH(G.U)),L=6E4*Math.pow(n.X,1.6),(0,g.ta)()=n.X?(n.Oy("sdai",{haltrq:L+1,est:n.X}),G=!1):G=n.G!==2;if(!G||!e$(c.G?c.G.J.uB:c.J.uB,X.policy,X.X,X.h7.P_())||X.h7.isSuspended&&(!vD(X.schedule)||X.h7.oU))return!1;if(X.policy.X&&lj>=5)return g.Xn(X.h7.rb),!1;if(X.ZR.isManifestless){if(c.U.length>0&&c.G&&c.G.Bl===-1||c.U.length>=X.policy.A2||!X.policy.nt&&c.U.length>0&&!X.policy.T.FK)return!1;if(c.D)return!X.ZR.isLive||!isNaN(X.Hb)}if(Tf8(c))return X.logger.debug("Pending request with server-selectable format found"), +!1;if(!c.G){if(!c.J.tb())return!1;un(c,X.h7.getCurrentTime())}if(Kz(c)&&(c.Hz()!==Kz(c)||X.h7.isSuspended))return!1;n=(G=X.policy.ID)&&!c.U.length&&Md(c,!0)=X.policy.mT)return!1;G=c.G;if(!G)return!0;G.type===4&&G.J.tb()&&(c.G=g.Kt(G.J.SE(G)),G=c.G);if(!G.Dm()&&!G.J.bP(G))return!1;L=X.ZR.bf||X.ZR.X;if(X.ZR.isManifestless&&L){L=c.J.index.q6();var d=V.J.index.q6(); +L=Math.min(L,d);if(c.J.index.Sy()>0&&L>0&&G.Bl>=L)return c.Pl=L,V.Pl=L,!1}if(G.J.info.audio&&G.type===4||G.Dm())return!1;L=!c.Z&&!V.Z;if(n=!n)n=G.B,n=!!(V.G&&!lB(V,V.G)&&V.G.BLAw(X,c)?(LAw(X,c),!1):(X=c.DQ)&&X.isLocked()?!1:!0}; +LAw=function(X,c){var V=X.J;V=V.J?V.J.iH:null;if(X.policy.NW&&V)return V.startSecs+V.VL+15;c=T4(X.h7,c);X.policy.NE>0&&(V=((0,g.ta)()-X.h7.yX)/1E3,c=Math.min(c,X.policy.NE+X.policy.cz*V));V=X.h7.getCurrentTime()+c;return X.policy.Sa&&(c=d7O(X.h7)+X.policy.Sa,c=0||c.uB.T0("defrag")==="1"||c.uB.T0("otf")==="1"){c=null;break a}n=tQ(0,4096)}n=new UC([new l$(5,G.J,n,"createProbeRequestInfo"+G.D,G.Bl)],c.G);n.KY=V;n.J=c.J;c=n}c&&GDt(X,c)}}; +GDt=function(X,c){X.h7.nT(c);var V=A8D(c),G=X.h7.jy();V={Pd:X.schedule,wB:V,VW:maD(X.Z,V),Yq:MQ(c.KS[0]),Ws:J7(c.uB.J),G0:X.policy.U,Hu:function(d,h){X.h7.kx(d,h)}}; +if(X.schedule.G.B){var n,L;V.Vq=(((n=X.videoTrack.J)==null?void 0:n.info.JX)||0)+(((L=X.audioTrack.J)==null?void 0:L.info.JX)||0)}X.zz&&(V.Bl=c.KS[0].Bl,V.Hb=c.Hb,V.zz=X.zz);G={g7:Yo8(c,X.h7.getCurrentTime()),zs:X.policy.jX&&u$(c)&&c.KS[0].J.info.video?zQU(X.U):void 0,o3:X.policy.NW,poToken:X.h7.Cj(),b0:X.h7.nU(),R3:X.R3,ij:isNaN(X.ij)?null:X.ij,DH:X.DH,NV:X.NV,JV:X.JV,N9:G};return new Iy(X.policy,c,V,X.X,function(d,h){try{a:{var A=d.info.KS[0].J,Y=A.info.video?X.videoTrack:X.audioTrack;if(!(d.state>= +2)||d.isComplete()||d.kF()||!(!X.h7.ev||X.h7.isSuspended||Md(Y)>3)){var H=cqO(d,X.policy,X.X);H===1&&(X.kO=!0);yqS(X,d,H);if(d.isComplete()||d.vl()&&h<3){if(X.policy.U){var a=d.timing.Vd();a.rst=d.state;a.strm=d.xhr.Eb();a.cncl=d.xhr&&d.D3.X?1:0;X.h7.Oy("rqs",a)}d.YS&&X.h7.Oy("sbwe3",{},!0)}if(!X.vl()&&d.state>=2){FK8(X.timing,d,A);var W=X.h7;X.ij&&d.e5&&W&&(X.ij=NaN,X.h7.hD(d.e5),X.h7.Ns(),X.h7.Oy("cabrUtcSeek",{mediaTimeSeconds:d.e5}));d.pG&&X.ij&&d.pG&&!d.pG.action&&(X.h7.Md(X.ij),X.ij=NaN,X.h7.Oy("cabrUtcSeekFallback", +{targetUtcTimeSeconds:X.ij}));d.cF&&X.h7.Fe(d.cF);X.policy.z2&&(X.JV=d.JV);if(d.state===3){pG(Y,d);u$(d.info)&&qd(X,Y,A,!0);if(X.G){var w=d.info.eF();w&&X.G.tZ(d.info.KS[0].Bl,A.info.id,w)}X.h7.Dg()}else if(d.isComplete()&&d.info.KS[0].type===5){if(d.state!==4)d.fK()&&X.h7.handleError(d.dJ(),d.Bs());else{var F=(d.info.KS[0].J.info.video?X.videoTrack:X.audioTrack).U[0]||null;F&&F instanceof Iy&&F.kF()&&F.gQ()}d.dispose()}else{d.fK()||hct(X,d);var Z;((Z=d.QF)==null?0:Z.itagDenylist)&&X.h7.Yd(d.QF.itagDenylist); +if(d.state===4)AqS(X,d),X.J&&Z8S(X.J,d.info,X.G);else if(X.policy.bA&&d.qX()&&!d.isComplete()&&!AqS(X,d)&&!d.fK())break a;d.fK()&&(YTD(X,d),isNaN(X.ij)||(X.h7.Md(X.ij),X.ij=NaN));X.policy.G2&&!d.isComplete()?jTU(X.h7):X.h7.Dg();var v=V3l(d,X.policy,X.X);yqS(X,d,v)}}}}}catch(e){h=X.A7?1:0,X.A7=!0,d=O3(h),h=lo(e,h),X.h7.handleError(h.errorCode,h.details,h.severity),d||X.h7.pm()}},G)}; +hct=function(X,c){if(c.FQ&&c.state>=2&&c.state!==3){var V=c.xhr.getResponseHeader("X-Response-Itag");if(V){X.logger.debug(function(){return"Applying streamer-selected format "+V}); +var G=P$8(X.U,V),n=c.info.U;n&&(n-=G.Rk(),G.U=!0,c.info.KS[0].J.U=!1,KIS(c,G.mM(n)),Xd(X.h7,X.videoTrack,G),uYO(X.videoTrack,G),X.h7.g4(G.info.video.quality),(n=c.uQ())&&G.info.lastModified&&G.info.lastModified!==+n&&pG(X.videoTrack,c))}else c.FQ=!1}}; +YTD=function(X,c){var V=c.info.KS[0].J,G=c.dJ();if(J7(V.uB.J)){var n=g.Qk(c.NJ(),3);X.h7.Oy("dldbrerr",{em:n||"none"})}n=c.info.KS[0].Bl;var L=TX(X.J,c.info.KS[0].X,n);G==="net.badstatus"&&(X.B+=1);if(c.canRetry()&&HLD(X.h7)){if(!(c.info.uB.G>=X.policy.Zn&&X.G&&c.info.isDecorated()&&G==="net.badstatus"&&X.G.H7(L,n))){n=(V.info.video&&V.uB.G>1||c.Yt===410||c.Yt===500||c.Yt===503)&&!(sU(X.U.Z).size>0)&&!J7(V.uB.J);L=c.Bs();var d=V.info.video?X.videoTrack:X.audioTrack;n&&(L.stun="1");X.h7.handleError(G, +L);X.vl()||(n&&(X.logger.debug(function(){return"Stunning format "+V.info.id}),c2(X.U,V)),pG(d,c),X.h7.Dg())}}else d=1,X.G&&c.info.isDecorated()&&G==="net.badstatus"&&X.G.H7(L,n)&&(d=0),X.ZR.isLive&&c.dJ()==="net.badstatus"&&X.B<=X.policy.ql*2?(Y81(X.ZR),X.ZR.bf||X.ZR.isPremiere?B5(X.h7,0,{Z3:"badStatusWorkaround"}):X.ZR.X?B5(X.h7,X.ZR.Hl,{Z3:"badStatusWorkaround", +H1:!0}):co(X.h7)):X.h7.handleError(G,c.Bs(),d)}; +AqS=function(X,c){if(X.policy.useUmp&&c.vl())return!1;try{var V=c.info.KS[0].J,G=V.info.video?X.videoTrack:X.audioTrack;if(X.ZR.isManifestless&&G){X.B=0;G.D&&(c.vl(),c.isComplete()||c.qX(),G.D=!1);c.Mo()&&X.h7.WU.Mm(1,c.Mo());var n=c.Sy(),L=c.kf();et(X.ZR,n,L)}if(c.info.Yq()&&!T1(c.info))for(var d=g.r(c.Av()),h=d.next();!h.done;h=d.next())bxU(G,h.value);for(X.h7.getCurrentTime();G.U.length&&G.U[0].state===4;){var A=G.U.shift();Rkw(G,A);G.YO=A.OB()}G.U.length&&Rkw(G,G.U[0]);var Y=!!Kz(G);Y&&c instanceof +pz&&(V.info.oi()?YCD(X.timing):AQs(X.timing));return Y}catch(H){c=c.Bs();c.origin="hrhs";a:{X=X.h7;V=H;if(V instanceof Error){c.msg||(c.msg=""+V.message);c.name||(c.name=""+V.name);if(V instanceof g.SP&&V.args)for(G=g.r(Object.entries(V.args)),n=G.next();!n.done;n=G.next())L=g.r(n.value),n=L.next().value,L=L.next().value,c["arg"+n]=""+L;g.UQ(V);if(V.level==="WARNING"){X.J7.Bz(c);break a}}X.handleError("fmt.unplayable",c,1)}return!1}}; +avw=function(X){var c=X.videoTrack.J.index;X.zz=new ixs({uw:X.policy.uw,FK:X.policy.T.FK,SL:c.HK(),q6:function(){return c.q6()}, +WN:function(){return c.WN()}})}; +qd=function(X,c,V,G){var n=X.policy.Ar?X.h7.P_():0;V.tb()||V.xv()||V.U||!e$(V.uB,X.policy,X.X,n)||V.info.VK==="f"||X.policy.J||(G?(G=X.Z,n=V.info,G=RRs(G,n.video?G.policy.h2:G.policy.wV,n.JX)):G=0,G=V.mM(G),X=GDt(X,G),T1(G)&&JA(c,X),V.U=!0)}; +Vp=function(X,c,V,G,n,L,d,h){g.I.call(this);var A=this;this.h7=X;this.OH=c;this.videoTrack=V;this.audioTrack=G;this.ZR=n;this.C=L;this.isAudioOnly=d;this.T=h;this.G=Pp;this.kO=!1;this.logger=new g.d3("sabr");this.Z=this.A7=this.G_=!1;this.videoInfos=this.D=this.C.videoInfos;this.U=this.NW=this.C.J;this.J=new BC(c,L,function(Y,H){A.h7.Oy(Y,H)}); +this.OH.mu||$7L(this);this.isAudioOnly&&WAt(this,this.ZR.J["0"])}; +wDL=function(X,c){var V=[];c=g.r(c);for(var G=c.next();!G.done;G=c.next())V.push(g.nu(G.value,X.ZR.ZQ));return V}; +WAt=function(X,c,V){c!==X.X&&(X.X&&(X.kO=!0),X.X=c,X.rI(c,X.videoTrack,V))}; +QTl=function(X,c){X.logger.debug("setConstraint: "+jH(c));sk(X.OH)&&(X.A7=c.reason==="m"||c.reason==="l"?!0:!1);c.reason==="m"?c.isLocked()&&FAD(X,c.J):ECO(X,c)?rqw(X,c.G,c.J):X.videoInfos=X.D;X.G=c}; +ECO=function(X,c){return X.OH.f4&&c.reason==="b"||X.OH.PA?!1:X.OH.kZ?!0:c.reason==="l"||c.reason==="b"||c.reason==="o"}; +ZLs=function(X,c){return c.isLocked()&&X.J.G||X.G===void 0?!1:c.w6(X.G)}; +x7j=function(X,c){var V,G=(V=X.X)==null?void 0:V.info.video.J;return X.kO?!0:X.X?c!==G?!0:!X.J.G||X.OH.JZ&&X.J.J===X.X.info.itag?!1:!0:!1}; +FAD=function(X,c){var V=X.J.J;if(V){X.videoInfos=X.D;var G=g.Ct(X.videoInfos,function(n){return n.id===V}); +G&&G.video.J===c?X.videoInfos=[G]:(G=X.videoInfos.map(function(n){return n.id}),X.h7.Oy("sabrpf",{pfid:""+V, +vfids:""+G.join(".")}),rqw(X,c,c),CD(X.J,""))}else rqw(X,c,c)}; +rqw=function(X,c,V){X.videoInfos=X.D;X.videoInfos=g.HI(X.videoInfos,function(G){return G.video.J>=c&&G.video.J<=V})}; +$7L=function(X){var c=eQl(X.J,X.T);c&&(X.U=[c])}; +vCU=function(X,c,V){if(X.OH.mu){if(X.T){var G=g.HI(X.U,function(n){return n.id===X.T}); +return GY(G,V).includes(c)}G=g.HI(X.U,function(n){var L;return!((L=n.zF)==null||!L.isDefault)}); +if(G.length>0)return GY(G,V).includes(c)}return GY(X.U,V).includes(c)}; +GY=function(X,c){return X.map(function(V){return JQ(g.nu(V,c))})}; +kDL=function(X){var c;if((c=X.G)==null?0:c.isLocked())return X.videoInfos;var V=sU(X.J);c=g.HI(X.videoInfos,function(G){return G.JX>X.OH.JX?!1:!V.has(G.id)}); +oiO(X.J)&&(c=g.HI(c,function(G){return G.video.width<=854&&G.video.height<=480})); +return c}; +Jqw=function(X,c,V,G){var n=X.ZR,L=X.J7.getVideoData(),d=g.CW(L),h=X.pz,A=QR({Fh:L.j(),J7:X.J7,cU:X.cU,OH:X.OH,yX:X.yX,vO:X.vO,fu:X.fu,Wq:X.Wq,uA:X.uA,isPrefetch:X.isPrefetch,Rb:X.Rb,sabrLicenseConstraint:L.sabrLicenseConstraint,Oa:X.Oa,lG:X.lG,Xz:X.Xz,Fz:X.Fz,RoS:!!h}),Y=Zl(L,X.N9,X.nextRequestPolicy,X.ZU,X.q4,X.rbW,X.S0);G&&V&&(G=Y.Ja?Y.Ja.map(function(Z){return Z.type}):[],V("sabr",{stmctxt:G.join("_"), +unsntctxt:Y.Ww?Y.Ww.join("_"):""}));G=X.rA;var H=X.Yx;if(H===void 0&&G===void 0){var a;H=oC1(n.ZQ,(a=X.Js)==null?void 0:a.video);var W;G=oC1(n.ZQ,(W=X.Js)==null?void 0:W.audio)}if(L.DH)var w=L.DH;L={qR:A,CK:X.CK,rA:G,Yx:H,pz:h,videoPlaybackUstreamerConfig:w,Up:Y};X.An&&(L.An=X.An);if(d&&c){d=new Map;var F=g.r(n.wy);for(h=F.next();!h.done;h=F.next())h=h.value,(A=n.QK[K$l(n,h)]||"")?(d.has(A)||d.set(A,[]),d.get(A).push(h)):V&&V("ssap",{nocid4fmt:(h.itag||"")+"_"+(h.lmt||0)+"_"+(h.xtags||"")});n=new Map; +F=g.r(X.lB);for(h=F.next();!h.done;h=F.next())h=h.value,A=h.startTimeMs||0,Y=void 0,a=(Y=c)==null?void 0:gZ(Y,A),Y=a.clipId,a=a.yq,Y?(n.has(Y)||(W=d.get(Y)||[],n.set(Y,{clipId:Y,lB:[],L1:W})),a!==0&&(h.startTimeMs=A-a),n.get(Y).lB.push(h)):V&&(Y=void 0,V("ssap",{nocid4range:"1",fmt:((Y=h.formatId)==null?void 0:Y.itag)||"",st:A.toFixed(3),d:(h.durationMs||0).toFixed(3),timeline:nX(c)}));L.Kz=[];n=g.r(n.entries());for(d=n.next();!d.done;d=n.next())d=g.r(d.value),d.next(),d=d.next().value,L.Kz.push(d); +if(X.lB.length&&!L.Kz.length){V&&V("ssap",{nobfrange:"1",br:ecl(X.lB),timeline:nX(c)});return}X.sf&&(L.sf=X.sf);X.iM&&(L.iM=X.iM)}else L.lB=X.lB,L.L1=n.wy,d&&((F=X.lB)==null?void 0:F.length)>0&&!c&&V&&V("ssap",{bldmistlm:"1"});return L}; +oC1=function(X,c){return c?[g.nu(c.info,X)]:[]}; +ecl=function(X){var c="";X=g.r(X);for(var V=X.next();!V.done;V=X.next()){V=V.value;var G=void 0,n=void 0,L=void 0;c+="fmt."+(((G=V.formatId)==null?void 0:G.itag)||"")+"_"+(((n=V.formatId)==null?void 0:n.lmt)||0)+"_"+(((L=V.formatId)==null?void 0:L.xtags)||"")+";st."+(V.startTimeMs||0).toFixed(3)+";d."+(V.durationMs||0).toFixed(3)+";"}return c}; +LX=function(X,c,V){var G=this;this.requestType=X;this.uB=c;this.kU=V;this.G=null;this.F8={dRK:function(){var n;return(n=G.data)==null?void 0:n.isPrefetch}, +q4:function(){var n;return(n=G.data)==null?void 0:n.q4}}}; +LKD=function(X,c,V){c=ki(X.uB,m78(X,c,V),c);X.Bf()&&c.set("probe","1");return c}; +m78=function(X,c,V){X.KY===void 0&&(X.KY=X.uB.KY(c,V));return X.KY}; +Rcs=function(X){var c,V;return((c=X.J)==null?void 0:(V=c.qR)==null?void 0:V.k5)||0}; +bLU=function(X){var c,V;return!!((c=X.J)==null?0:(V=c.qR)==null?0:V.Oa)}; +t38=function(X){var c={},V=[],G=[];if(!X.data)return c;for(var n=0;n0;A--)V.push(h)}V.length!==d?c.error=!0:(L=V.slice(-L),V.length=n,VzU(c,V,L));break;case 1:VzU(c,Mr,D7L);break;case 0:G_s(c, +c.J&7);V=Iz(c,16);n=Iz(c,16);(V^n)!==65535&&(c.error=!0);c.output.set(c.data.subarray(c.G,c.G+V),c.U);c.G+=V;c.U+=V;break;default:c.error=!0}X.U>X.output.length&&(X.output=new Uint8Array(X.U*2),X.U=0,X.G=0,X.X=!1,X.J=0,X.register=0)}X.output.length!==X.U&&(X.output=X.output.subarray(0,X.U));return X.error?new Uint8Array(0):X.output}; +VzU=function(X,c,V){c=Xpl(c);V=Xpl(V);for(var G=X.data,n=X.output,L=X.U,d=X.register,h=X.J,A=X.G;;){if(h<15){if(A>G.length){X.error=!0;break}d|=(G[A+1]<<8)+G[A]<>=7;Y<0;)Y=c[(d&1)-Y],d>>=1;else d>>=Y&15;h-=Y&15;Y>>=4;if(Y<256)n[L++]=Y;else if(X.register=d,X.J=h,X.G=A,Y>256){d=fX[Y];d+=Iz(X,gl[Y]);A=c4D(X,V);h=pX[A];h+=Iz(X,STs[A]);if(LfO&&dV.length&&(X.error=!0);X.register|=(V[G+1]<<8)+V[G]<=0)return G_s(X,V&15),V>>4;for(G_s(X,7);V<0;)V=c[Iz(X,1)-V];return V>>4}; +Iz=function(X,c){for(;X.J=X.data.length)return X.error=!0,0;X.register|=X.data[X.G++]<>=c;X.J-=c;return V}; +G_s=function(X,c){X.J-=c;X.register>>=c}; +Xpl=function(X){for(var c=[],V=g.r(X),G=V.next();!G.done;G=V.next())G=G.value,c[G]||(c[G]=0),c[G]++;var n=c[0]=0;V=[];var L=0;G=0;for(var d=1;d7&&(L+=c[d]);for(n=1;n>A&1;h=L<<4|d;if(d<=7)for(A=1<<7-d;A--;)G[A<>=7;d--;){G[A]||(G[A]=-c,c+=2);var Y=n&1;n>>=1;A=Y-G[A]}G[A]=h}}return G}; +dVU=function(X){var c,V,G,n,L,d,h;return g.O(function(A){switch(A.J){case 1:if(!("DecompressionStream"in window))return A.return(g.nJs(new g.iLO(X)));c=new DecompressionStream("gzip");V=c.writable.getWriter();V.write(X);V.close();G=c.readable.getReader();n=new vl([]);case 2:return g.b(A,G.read(),5);case 5:L=A.G;d=L.value;if(h=L.done){A.Wl(4);break}n.append(d);A.Wl(2);break;case 4:return A.return(n.wM())}})}; +Nr=function(X,c){this.J=X;this.N6=c}; +y41=function(X){return EM(EM(WV(function(){return Fk(X.N6,function(c){return X.mf(X.J,c)})}),function(){return X.uY(X.J)}),function(){return X.Pj(X.J)})}; +hzl=function(X,c){return y41(new Nr(X,c))}; +j6O=function(X){kM.call(this,"onesie");this.Wd=X;this.J={};this.U=!0;this.X=null;this.queue=new CYs(this);this.Z={};this.B=Art(function(c,V){var G=this;return function L(){var d,h,A,Y,H,a,W,w,F,Z,v,e,m,t,f,U,C,K,nj,yl;return aS2(L,function(Xl){switch(Xl.J){case 1:g.vw(Xl,2);G.Wd.s3();d=function(u){return function(q){throw{name:u,message:q};}}; +h=c.wM();g.x1(Xl,4,5);if(!V){Xl.Wl(7);break}return AsD(Xl,EM(A4O(G.Wd,h,G.iv),d("DecryptError")).wait(),8);case 8:A=Xl.G;case 7:if(!G.Wd.enableCompression){Xl.Wl(9);break}return AsD(Xl,EM(hzl((a=A)!=null?a:h,G.Wd.j().Pb),d("DecompressError")).wait(),10);case 10:Y=Xl.G;case 9:H=K2((w=(W=Y)!=null?W:A)!=null?w:h,YFD);case 5:g.eD(Xl,0,2);if(Z=(F=G.Wd.j())==null?void 0:F.N6)((v=A)==null?void 0:v.buffer)===Z.exports.memory.buffer&&Z.free(A.byteOffset),((e=Y)==null?void 0:e.buffer)===Z.exports.memory.buffer&& +Z.free(Y.byteOffset);g.mU(Xl,6);break;case 4:throw t=m=g.o8(Xl),new tm("onesie.response.parse",{name:(K=t.name)!=null?K:"unknown",message:(nj=t.message)!=null?nj:"unknown",wasm:((f=G.Wd.j())==null?0:f.N6)?((U=G.Wd.j())==null?0:(C=U.N6)==null?0:C.jc)?"1js":"1":"0",enc:G.U,gz:G.Wd.enableCompression,webcrypto:!!eE()});case 6:return Yfs(H),yl=g.On(H.body),Xl.return(yl);case 2:g.eD(Xl),g.mU(Xl,0)}})}()})}; +HWj=function(X){var c=X.queue;c.J.length&&c.J[0].isEncrypted&&!c.G&&(c.J.length=0);c=g.r(Object.keys(X.J));for(var V=c.next();!V.done;V=c.next()){V=V.value;var G=X.J[V];if(!G.KT){var n=X.queue;n.J.push({videoId:G.videoId,formatId:V,isEncrypted:!1});n.G||lr(n)}}}; +$V2=function(X,c){var V=c.getLength(),G=!1;switch(X.X){case 0:X.Wd.S("html5_future_onesie_ump_handler_on_player_response")?EM(Fk(X.B(c,X.U),function(n){aV2(X.Wd,n)}),function(n){X.Wd.Km(n)}):X.s3(c,X.U).then(function(n){aV2(X.Wd,n)},function(n){X.Wd.Km(n)}); +break;case 2:X.aL("ormk");c=c.wM();X.queue.decrypt(c);break;default:G=!0}X.Wd.s2&&X.Wd.Oy("ombup","id.11;pt."+X.X+";len."+V+(G?";ignored.1":""));X.X=null}; +Yfs=function(X){if(X.Dj!==1)throw new tm("onesie.response.badproxystatus",{st:X.Dj,webcrypto:!!eE(),textencoder:!!g.UD.TextEncoder});if(X.Xq!==200)throw new tm("onesie.response.badstatus",{st:X.Xq});}; +WfU=function(X){return new Promise(function(c){setTimeout(c,X)})}; +wpS=function(X,c){var V=X.j();V=X.z2&&V.S("html5_onesie_preload_use_content_owner");var G=X.fv,n=Xi(c.qW.experiments,"debug_bandaid_hostname");if(n)c=br(c,n);else if((V===void 0?0:V)&&(G==null?0:G.url)&&!c.G){var L=eH(new g.kW(G.url));c=br(c,L)}else c=(L=c.J.get(0))==null?void 0:L.location.clone();if(c&&X.videoId){L=hq(X.videoId);X=[];if(L)for(L=g.r(L),V=L.next();!V.done;V=L.next())X.push(V.value.toString(16).padStart(2,"0"));c.set("id",X.join(""));return c}}; +Ff8=function(X,c,V){V=V===void 0?0:V;var G,n;return g.O(function(L){if(L.J==1)return G=[],G.push(c.load()),V>0&&G.push(WfU(V)),g.b(L,Promise.race(G),2);n=wpS(X,c);return L.return(n)})}; +EJ2=function(X,c,V,G){G=G===void 0?!1:G;X.set("cpn",c.clientPlaybackNonce);X.set("opr","1");var n=c.j();X.set("por","1");eE()||X.set("onem","1");c.startSeconds>0&&X.set("osts",""+c.startSeconds);G||(n.S("html5_onesie_disable_partial_segments")&&X.set("oses","1"),c=n.S("html5_gapless_onesie_no_media_bytes")&&nQ(c)&&c.z2,V&&!c?(c=V.audio,X.set("pvi",V.video.join(",")),n.S("html5_onesie_disable_audio_bytes")||X.set("pai",c.join(",")),qY||X.set("osh","1")):(X.set("oad","0"),X.set("ovd","0"),X.set("oaad", +"0"),X.set("oavd","0")))}; +r41=function(X,c,V,G,n){n=n===void 0?!1:n;var L="https://youtubei.googleapis.com/youtubei/"+c.yr.innertubeApiVersion+"/player",d=[{name:"Content-Type",value:"application/json"}];G&&d.push({name:"Authorization",value:"Bearer "+G});d.push({name:"User-Agent",value:g.bA()});g.qK("EOM_VISITOR_DATA")?d.push({name:"X-Goog-EOM-Visitor-Id",value:g.qK("EOM_VISITOR_DATA")}):(V=V.visitorData||g.qK("VISITOR_DATA"))&&d.push({name:"X-Goog-Visitor-Id",value:V});(V=g.qK("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&d.push({name:"X-YouTube-Lava-Device-Context", +value:V});(c=Xi(c.experiments,"debug_sherlog_username"))&&d.push({name:"X-Youtube-Sherlog-Username",value:c});X=gJ(JSON.stringify(X));return{url:L,TW:d,postBody:X,N6y:n,oh:n}}; +ZWU=function(X,c,V,G,n,L){var d=g.jE(X,ACD,X.oh?void 0:V.N6),h={encryptedClientKey:c.J.encryptedClientKey,p6:!0,bl:!0,uT:Q6U(V,!!X.oh),CA:V.experiments.lc("html5_use_jsonformatter_to_parse_player_response")};if(X.oh)h.Rth=d;else{X=c.encrypt(d);var A;if(((A=V.N6)==null?void 0:A.exports.memory.buffer)===d.buffer&&X.byteOffset!==d.byteOffset){var Y;(Y=V.N6)==null||Y.free(d.byteOffset)}var H;X=((H=V.N6)==null?void 0:H.gN(X))||X;d=h.ER=X;(0,g.ta)();d=VaO(new cUt(c.J.U),d,c.iv);h.R0=d;h.iv=c.iv}c=G.getVideoData(); +V=QR({Fh:V,J7:G,cU:c.startSeconds*1E3});n={zW:h,qR:V,onesieUstreamerConfig:n,nW:L,Up:Zl(c)};c.reloadPlaybackParams&&(n.reloadPlaybackParams=c.reloadPlaybackParams);return n}; +xVs=function(X,c,V){var G,n,L;return g.O(function(d){if(d.J==1)return G=g.jE(c,ACD),g.b(d,N0U(V,G),2);if(d.J!=3)return n=d.G,g.b(d,U7U(V,n),3);L=d.G;return d.return({ER:n,encryptedClientKey:V.J.encryptedClientKey,iv:V.iv,R0:L,p6:!0,bl:!0,uT:Q6U(X,!!c.oh),CA:X.experiments.lc("html5_use_jsonformatter_to_parse_player_response")})})}; +vJ8=function(X,c,V,G,n,L){var d,h,A,Y;return g.O(function(H){if(H.J==1)return g.b(H,xVs(V,X,c),2);d=H.G;h=G.getVideoData();A=QR({Fh:V,J7:G,cU:h.startSeconds*1E3});Y={zW:d,qR:A,onesieUstreamerConfig:n,nW:L,Up:Zl(h)};h.reloadPlaybackParams&&(Y.reloadPlaybackParams=h.reloadPlaybackParams);return H.return(Y)})}; +Q6U=function(X,c){X=xC(X.schedule,!0);c=c||!!eE()&&X>1572864;return"DecompressionStream"in window||!c}; +TY=function(X,c){g.I.call(this);var V=this;this.J7=X;this.playerRequest=c;this.logger=new g.d3("onesie");this.xhr=null;this.state=1;this.Qd=new cS;this.Jq=!1;this.playerResponse="";this.X7=new cC(this);this.Kg=new j6O(this);this.Na="";this.Sb=this.Za=!1;this.jW="";this.enableCompression=this.e6=this.X3=!1;this.Jd=[];this.QY=this.tC=-1;this.qW=this.J7.j();this.videoData=this.J7.getVideoData();this.s2=this.qW.YU();this.h_=this.qW.JZ;this.XQ=new jr(this.h_.J,this.qW.Pb,OLj(this.qW));this.Hk=this.qW.S("html5_onesie_check_timeout"); +this.p9=new g.qR(this.UV,500,this);this.Ts=new g.qR(this.rZ,1E4,this);this.yh=new g.qR(function(){if(!V.isComplete()){var G=UP(V);V.Km(new tm("net.timeout",G))}},1E3); +this.Sp=new g.qR(this.sZc,2E3,this);this.yp=this.J7.nU();this.wA=this.S("html5_onesie_wait_for_media_availability");g.N(this.videoData,this);g.N(this,this.p9);g.N(this,this.Ts);g.N(this,this.Sp);g.N(this,this.XQ);X=Vm();qY&&X&&(this.u_=new Map);this.CX=new Map;this.pB=new Map;this.PB=new Map;this.rr=new Map}; +OP=function(X,c){var V;return(V=X.u_)==null?void 0:V.get(c)}; +oJD=function(X,c,V){var G;return g.O(function(n){if(n.J==1)return X.aL("oprd_s"),k_s(X)?g.b(n,T0D(X.XQ,c,V),3):(G=X.XQ.decrypt(c,V),n.Wl(2));n.J!=2&&(G=n.G);X.aL("oprd_c");return n.return(G)})}; +A4O=function(X,c,V){X.aL("oprd_s");c=Ivl(X.XQ).encrypt(c,V);Fk(c,function(){X.aL("oprd_c")}); +return c}; +ezD=function(X){return X.S("html5_onesie_host_probing")||X.s2?qY:!1}; +aV2=function(X,c){X.aL("oprr");X.playerResponse=c;X.e6||(X.wA=!1);ur(X)}; +ur=function(X){if(!X.playerResponse)return!1;if(X.X3)return!0;var c=X.videoData.S("html5_onesie_audio_only_playback")&&LQ(X.videoData);if(X.u_&&X.wA){if(!X.u_.has(X.Na))return!1;var V=X.u_.get(X.Na),G;if(G=V){G=!1;for(var n=g.r(V.T2.keys()),L=n.next();!L.done;L=n.next())if(L=V.T2.get(L.value))for(var d=g.r(L.I9),h=d.next();!h.done;h=d.next())h.value.R1>0&&(L.oi?G=!0:c=!0);G=!(c&&G)}if(G)return!1}X.aL("ofr");X.Qd.resolve(X.playerResponse);if(!X.Hk){var A;(A=X.yh)==null||A.start();X.Ts.start()}return X.X3= +!0}; +mVU=function(X){if(X.u_&&!X.S("html5_onesie_media_capabilities")){X.aL("ogsf_s");var c=gWj(X.J7.getVideoData(),function(G,n){X.Oy(G,n)}),V=J4s(X.J7); +c.video=eij(V,c.video);X.aL("ogsf_c");if(c.video.length)return c;X.Oy("ombspf","l."+V.G+";u."+V.J+";o."+V.U+";r."+V.reason)}}; +k_s=function(X,c){return X.S("html5_onesie_sync_request_encryption")||(c==null?0:c.oh)||g.q7(X.qW)&&X.S("html5_embed_onesie_use_sync_encryption")?!1:!!eE()}; +UP=function(X){if(!X.IL)return{};var c=X.IL.Vd(),V;c.d=(V=X.IL.Pl)==null?void 0:V.ys();c.shost=X.fI;c.ty="o";return c}; +RzD=function(X,c){var V,G;(G=(X=(V=X.u_)==null?void 0:V.get(c))==null)||(c=X.U?!1:X.U=!0,G=!c);return!G}; +bWw=function(X,c,V,G,n,L,d,h,A,Y,H){g.I.call(this);var a=this;this.J7=X;this.h7=c;this.policy=V;this.audioTrack=G;this.videoTrack=n;this.ZR=L;this.Pd=d;this.fS=h;this.U=A;this.timing=Y;this.C=H;this.J=[];this.D={};this.YO=this.LS=!1;this.ZU=new Set;this.Z=this.QK=this.G_=this.uA=0;this.X=null;this.kO={lB:[],CK:[]};this.NW={lB:[],CK:[]};this.B=null;this.Hl=[];this.F8={WmS:function(){return a.J}, +L3c:function(){return a.D}, +dcS:function(){a.J.length=0}, +K3v:function(){return a.ZU}, +l8S:function(){return a.G_}, +iFv:function(W){a.G_=W}, +dMS:function(W){a.Z=W}, +gC:function(W){a.B=W}}; +this.videoData=this.J7.getVideoData();this.policy.dW&&(this.wy=new DA(this.h7,this.policy,this.Pd),g.N(this,this.wy))}; +lVD=function(X,c){c=c===void 0?!1:c;if(tzj(X,c)){X.policy.D&&X.h7.Oy("sabrcrq",{create:1});var V=new LX(0,X.ZR.T,X);X.policy.MJ>0&&X.Z++;c=OWj(X,V,c);X.J.push(c);var G;(G=X.wy)==null||qXU(G,X.ZR.T)}}; +ppU=function(X,c){var V=Mzs(X);if(X.policy.tJ){var G=X.kO;var n=X.NW}else G=Po(X,X.audioTrack),n=Po(X,X.videoTrack);var L=[].concat(g.x(G.lB),g.x(n.lB));X.policy.hX&&X.B&&L.push.apply(L,g.x(X.Hl));var d=[].concat(g.x(G.CK),g.x(n.CK)),h=X.h7.jy(),A,Y,H=X.J7,a=X.ZR,W=X.G,w=X.ZU,F=X.policy,Z=X.h7.yX,v=d7O(X.h7)*1E3,e=(A=X.Pl)==null?void 0:A.fu;A=(Y=X.Pl)==null?void 0:Y.Wq;var m;Y=Number((m=X.U.X)==null?void 0:m.info.itag)||0;var t;m=Number((t=X.U.B)==null?void 0:t.info.itag)||0;c={J7:H,ZR:a,lB:L,CK:d, +cU:V,nextRequestPolicy:W,ZU:w,OH:F,yX:Z,vO:v,fu:e,Wq:A,uA:X.uA,isPrefetch:c||X.h7.isSuspended,sf:Y,iM:m,N9:h,S0:X.J7.zG()};V=X.h7.Cj();L=hq(V);V&&(c.q4=L);if(V=X.J7.x4())c.Oa=V*1E3;var f;V=X.U;L=V.G_;if((V.OH.G&&V.OH.YP||((f=V.OH)==null?0:f.J&&f.vW))&&!L)for(f=g.r(V.U),d=f.next();!d.done;d=f.next())if(d.value.zF){L=!0;break}f=sk(V.OH)&&!L?[]:wDL(V,V.U);c.rA=f;f=X.U;sk(f.OH)&&!f.A7?f=[]:(V=kDL(f),V.length===0&&(V=f.D),f=wDL(f,V));c.Yx=f;c.pz=X.policy.hX&&X.B?[X.B]:void 0;X.policy.p$&&(c.Xz=gJS(X.h7, +X.audioTrack),c.Fz=gJS(X.h7,X.videoTrack));if(X.policy.Z){G=fV2(X,G.lB,n.lB);var U;if(n=(U=X.X)==null?void 0:U.mw(G))c.An=n}X.policy.Hl&&X.J.length>0&&X.J[0].ww()&&(c.rbW=X.J[0].WZ());return c}; +Mzs=function(X){var c,V=X.policy.B&&((c=X.h7)==null?void 0:c.d8());c=X.h7.getCurrentTime()||0;c=IVD(X,c);var G=X.h7.h1()||0;c+=G;G=Rv(X.videoData)||g.mJ(X.videoData);var n=0;V?(G&&(n=Number.MAX_SAFE_INTEGER),X.videoData.wy&&(n=Math.ceil(X.videoData.Hl*1E3))):n=Math.ceil(c*1E3);return Math.min(Number.MAX_SAFE_INTEGER,n)}; +IVD=function(X,c){if(X.h7.isSeeking())return c;var V=X.J7.vg();if(!V)return c;V=V.q$();if(V.length===0||aQ(V,c))return c;if(!uB(X.videoTrack,c)&&!uB(X.audioTrack,c))return X.h7.Oy("sundrn",{b:0,lt:c}),c;for(var G=c,n=Infinity,L=0;Lc)){var d=c-V.end(L);d=20)?(X.h7.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),c):G}; +fV2=function(X,c,V){var G=X.h7.getCurrentTime()||0;c=N4l(X,c,G);X=N4l(X,V,G);return Math.min(c,X)}; +N4l=function(X,c,V){X=X.h7.h1()||0;c=g.r(c);for(var G=c.next();!G.done;G=c.next()){var n=G.value;G=n.startTimeMs?n.startTimeMs/1E3-X:0;n=G+(n.durationMs?n.durationMs/1E3:0);if(G<=V&&V<=n)return n}return V}; +tzj=function(X,c){if(X.policy.MJ>0){var V=Math.floor((0,g.ta)()/1E4);if(V===X.QK){if(X.Z>=X.policy.MJ){if(X.Z===X.policy.MJ){var G={reason:"toomanyrequests"};G.limit=X.Z;X.h7.handleError("player.exception",G);X.Z+=1}return!1}}else X.QK=V,X.Z=0}c=!c&&!vD(X.Pd)&&!X.policy.l_;if(X.h7.isSuspended&&(X.h7.oU||c))return!1;if(X.A7&&(0,g.ta)()0&&(!X.policy.Hl||X.J.length!==1||!X.J[0].ww()))return!1;var n;if((n=X.ZR.T)==null||!e$(n,X.policy,X.D,X.h7.P_()))return!1; +n=X.policy.dR&&X.policy.G&&X.h7.KJ();if(Nd(X.audioTrack)&&Nd(X.videoTrack)&&!n)return!1;if(X.policy.G&&X.T&&!X.h7.KJ())return X.OM("ssap",{pauseontlm:1}),!1;if(zY(X,X.audioTrack)&&zY(X,X.videoTrack))return X.policy.U&&X.h7.Oy("sabrHeap",{a:""+Ok(X.audioTrack),v:""+Ok(X.videoTrack)}),!1;if(n=X.policy.Z)n=!1,X.C.G===2?n=!0:X.C.G===3&&(Mzs(X),X.h7.h1(),c=fV2(X,RY(X.audioTrack,X.h7.isSeeking()).lB,RY(X.videoTrack,X.h7.isSeeking()).lB),V=X.C,c>=V.Z?(V.Oy("sdai",{haltrq:c,est:V.Z}),c=!0):c=!1,c&&(n=!0)), +n&&X.policy.D&&X.h7.Oy("sabrcrq",{waitad:1});if(n)return!1;X.policy.tJ&&(X.kO=Po(X,X.audioTrack),X.NW=Po(X,X.videoTrack));if(!X.G)return X.policy.D&&X.h7.Oy("sabrcrq",{nopolicy:1}),!0;if(X.J7.x4())return X.policy.D&&X.h7.Oy("sabrcrq",{utc:1}),!0;if(X.U.Z)return X.policy.D&&X.h7.Oy("sabrcrq",{audio:1}),!0;if(!X.G.targetAudioReadaheadMs||!X.G.targetVideoReadaheadMs)return X.policy.D&&X.h7.Oy("sabrcrq",{noreadahead:1}),!0;if(X.policy.B&&X.h7.d8())return X.policy.D&&X.h7.Oy("sabrcrq",{seekToHead:1}), +!0;n=Math.min(T4(X.h7,X.audioTrack)*1E3,X.G.targetAudioReadaheadMs);c=Math.min(T4(X.h7,X.videoTrack)*1E3,X.G.targetVideoReadaheadMs);var L=Math.min(n,c);V=Md(X.audioTrack,!0)*1E3;var d=Md(X.videoTrack,!0)*1E3;if(X.policy.tJ){var h=X.J7.getCurrentTime()*1E3;var A=UV8(X.kO.lB,h);h=UV8(X.NW.lB,h)}else A=V,h=d;var Y=Ac||G>=0&&n.JJ>G+1)break;V=Math.max(V,n.startTimeMs+n.durationMs);G=Math.max(G,n.Ce)}return Math.max(0,V-c)}; +OWj=function(X,c,V){var G={Pd:X.Pd,Hu:function(A,Y){X.J7.kx(A,Y)}, +Yq:X.policy.CN,G0:X.policy.U};X.Pd.G.B&&(G.Vq=(X.videoTrack.J.info.JX||0)+(X.audioTrack.J.info.JX||0));X.policy.Po&&(G.SL=X.audioTrack.J.index.HK(),G.Yq=!1);var n=m78(c,X.policy,X.D)?2:1;n!==X.G_&&(X.G_=n,PjD(X));V=ppU(X,V);if((X.policy.G||X.policy.Hl)&&X.policy.U&&V.ZU){for(var L=n="",d=g.r(V.ZU),h=d.next();!h.done;h=d.next())h=h.value,X.videoData.sabrContextUpdates.has(h)?n+="_"+h:L+="_"+h;X.h7.Oy("sabrbldrqs",{ctxts:n,misctxts:L})}c.setData(V,X.h7.KJ(),X.policy,X.D)||!X.policy.G&&!X.policy.Hl|| +X.h7.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);G=new lT(X.policy,c,X.ZR,X.D,X,G,X.h7.nU(),X.policy.SU?X.h7.KJ():void 0);Mh(X.timing);X.policy.D&&X.h7.Oy("sabrcrq",{rn:G.YA(),probe:c.Bf()});return G}; +sP=function(X,c){if(c.vl()||X.vl())X.policy.zI||(X.policy.B?KX(X.h7):X.h7.Dg());else{if(X.policy.U&&c.isComplete()&&c instanceof lT){var V=X.h7,G=V.Oy,n,L,d=Object.assign(c.IL.Vd(),{rst:c.state,strm:c.xhr.Eb(),d:(n=c.IL.Pl)==null?void 0:n.ys(),cncl:c.xhr&&c.D3.X?1:0,rqb:c.WB,cwt:c.yw,swt:(L=c.dj)==null?void 0:L.R6});n=Object.assign(t38(c.info),d);G.call(V,"rqs",n)}if(c.isComplete()&&c.Bf()&&c instanceof lT)X.policy.Bd?c.YB()?(c.dispose(),X.J.length===0?X.h7.Dg():(X=X.J[0],X instanceof lT&&X.kF()&& +X.gQ())):c.fK()&&X.h7.handleError(c.dJ(),c.Bs()):(c.dispose(),X.h7.Dg());else{if(c.p8())c instanceof lT&&FK8(X.timing,c),PjD(X),zzs(X);else if(c.fK())V=X.J7.x4(),c instanceof lT&&bLU(c.info)&&V&&X.h7.Md(V),c instanceof TY?X.J.pop():(V=1,c.canRetry()&&HLD(X.h7)&&(B4D(X,c),V=0),X.h7.handleError(c.dJ(),c.Bs(),V));else{if(X.h7.isSuspended&&!c.isComplete())return;zzs(X)}c.vl()||c instanceof TY||(c.isComplete()?V=V3l(c,X.policy,X.D):(V=cqO(c,X.policy,X.D),V===1&&(X.LS=!0)),V!==0&&(G=new LX(1,c.info.uB), +G.KY=V===2,OWj(X,G)));X.policy.G2&&!c.isComplete()?jTU(X.h7):X.h7.Dg()}}}; +zzs=function(X){for(;X.J.length&&X.J[0].bQ(X.tO());){var c=X.J.shift();Kf2(X,c);if(X.policy.Z){var V=X;if(!V.policy.T_&&c.bQ(V.tO())){var G=c.YA();if(V.T_!==G){var n=c.Do();c=n.tC;var L=n.QY;n=n.isDecorated;!V.X||L<0||(V.T_=G,G=TX(V.C,L/1E3,c),L=V.h7.h1()||0,IP(V.C,c,G-L,n,V.X))}}}}X.J.length&&Kf2(X,X.J[0])}; +Kf2=function(X,c){var V=new Set(c.Ra(X.tO()));V=g.r(V);for(var G=V.next();!G.done;G=V.next()){var n=G.value;if(!(G=!(c instanceof TY))){G=X.U;var L=G.ZR.ZQ,d=GY(G.videoInfos,L);G=vCU(G,n,L)||d.includes(n)}if(G&&(G=c.r_(n,X.tO()),L=X.policy.hX&&ys(G[0].J.info.mimeType),(!(!L&&X.policy.B8&&G.length>0&&(G[0].J.info.oi()?Md(X.audioTrack):Md(X.videoTrack))>3)||c.isComplete())&&c.qX(n,X.tO()))){n=c.Av(n,X.tO());if(X.policy.G){d=G[0].J.info;var h=X.h7.KJ();if(h&&d){var A=c.ob();h.api.S("html5_ssap_set_format_info_on_video_data")&& +A===IY(h)&&(d.oi()?h.playback.getVideoData().X=d:h.playback.getVideoData().G=d);if(h=CX(h.timeline,A))if(h=h[0].getVideoData())d.oi()?h.X=d:h.G=d}}n=g.r(n);for(d=n.next();!d.done;d=n.next())if(d=d.value,X.policy.U&&c instanceof TY&&X.h7.Oy("omblss",{s:d.info.u3()}),L)h=X,h.videoData.ZQ()&&h.B&&JQ(h.B)===JQ(g.nu(d.info.J.info,h.ZR.ZQ))&&h.J7.publish("sabrCaptionsDataLoaded",d,h.L6.bind(h));else{h=d.info.J.info.oi();var Y=d.info.J;if(h){A=void 0;var H=X.U,a=(A=c.Ik(X.tO()))==null?void 0:A.token;H.OH.bH&& +H.Z&&Y!==H.B?A=!0:(H.Z=!1,Y!==H.B&&(H.B=Y,H.rI(Y,H.audioTrack,a)),A=!1);if(X.policy.bH&&A)continue}else A=void 0,WAt(X.U,Y,(A=c.Ik(X.tO()))==null?void 0:A.token);A=h?X.audioTrack:X.videoTrack;c instanceof TY&&(A.D=!1,c instanceof TY&&(h?YCD(X.timing):AQs(X.timing)));try{mg(A,G,d)}catch(W){d=lo(W),X.h7.handleError(d.errorCode,d.details,d.severity),A.pm(),X.O8(!1,"pushSlice"),KX(X.h7)}}}}}; +B4D=function(X,c){X.policy.Hl?X.J.splice(X.J.indexOf(c)).forEach(function(V){V.dispose()}):(X.J.pop(),c==null||c.dispose())}; +s61=function(X,c,V){for(var G=[],n=0;n0)for(var c=g.r(X.videoData.sabrContextUpdates.keys()),V=c.next();!V.done;V=c.next()){V=V.value;var G=void 0;((G=X.videoData.sabrContextUpdates.get(V))==null?0:G.sendByDefault)&&X.ZU.add(V)}if(X.policy.Hl&&X.J.length)for(c=g.r(X.J),V=c.next();!V.done;V=c.next())(V=V.value.WZ())&&V.type&&V.sendByDefault&&X.ZU.add(V.type)}; +Sfl=function(X){X.policy.pM&&(X.Pl=void 0,X.uA=0)}; +iWU=function(X,c){if(c.fK()||c.vl()){var V=X.h7,G=V.Oy,n=c.state;X=X.tO();var L,d;if((c=(L=c.u_)==null?void 0:L.get(X))==null)c=void 0;else{L=0;X=c.Ra();for(var h=0;h=X.policy.ou,d=!1;if(L){var h=0;!isNaN(c)&&c>X.Z&&(h=c-X.Z,X.Z=c);h/n=X.policy.Bo&&!X.U;if(!L&&!V&&nB8(X,c))return NaN;V&&(X.U=!0);a:{G=d;V=(0,g.ta)()/1E3-(X.XT.JP()||0)-X.D.J-X.policy.tT;L=X.G.startTime;V=L+V;if(G){if(isNaN(c)){Dd(X,NaN,"n",c);L=NaN;break a}G=c-X.policy.Ho;G=L.X&&G<=L.B){G=!0;break a}G=!1}G=!G}if(G)return X.Oy("ostmf",{ct:X.getCurrentTime(),a:c.J.info.oi()}),!1;(X=X.A7)!=null&&(X.T2.get(V).VG=!0);return!0}; +jv2=function(X){if(!X.ZR.ZQ)return!0;var c=X.J7.getVideoData();if(X.J7.Gf())return X.Oy("ombpa",{}),!1;var V,G;if(X.policy.TE&&!!((V=X.G_)==null?0:(G=V.qG)==null?0:G.OeW)!==X.ZR.bf)return X.Oy("ombplmm",{}),!1;V=c.Ly||c.liveUtcStartSeconds||c.ON;if(X.ZR.bf&&V)return X.Oy("ombplst",{}),!1;if(X.ZR.C)return X.Oy("ombab",{}),!1;V=Date.now();return JF(X.ZR)&&!isNaN(X.kO)&&V-X.kO>X.policy.D1*1E3?(X.Oy("ombttl",{}),!1):X.ZR.uH&&X.ZR.X||!X.policy.nQ&&X.ZR.isPremiere||!(wk(c)===0||X.policy.J&&c.S("html5_enable_onesie_media_for_sabr_proxima_optin"))|| +c.S("html5_disable_onesie_media_for_mosaic")&&PJ(c)||c.S("html5_disable_onesie_media_for_ssdai")&&c.isDaiEnabled()&&c.enableServerStitchedDai||c.S("html5_disable_onesie_media_for_lifa_eligible")&&uN(c)?!1:!0}; +HQD=function(X,c){var V=c.J,G=X.ZR.ZQ;if(jv2(X))if(X.A7&&X.A7.T2.has(JQ(g.nu(V.info,G)))){if(G=JQ(g.nu(V.info,G)),Yql(X,c)){var n=new UC(X.A7.r_(G)),L=function(d){try{if(d.fK())X.handleError(d.dJ(),d.Bs()),pG(c,d),u$(d.info)&&qd(X.Z,c,V,!0),X.Dg();else if(AqS(X.Z,d)){var h;(h=X.X)==null||Z8S(h,d.info,X.T);X.Dg()}}catch(A){d=lo(A),X.handleError(d.errorCode,d.details,d.severity),X.pm()}}; +V.U=!0;T1(n)&&(JA(c,new pz(X.policy,G,n,X.A7,L)),Mh(X.timing))}}else X.Oy("ombfmt",{})}; +az8=function(X,c){c=c||X.videoTrack&&X.videoTrack.G&&X.videoTrack.G.startTime||X.getCurrentTime();var V=Xd,G=X.videoTrack,n=X.J;c=n.nextVideo&&n.nextVideo.index.gJ(c)||0;n.NW!==c&&(n.wy={},n.NW=c,iT(n,n.J));c=!n.J.isLocked()&&n.C>-1&&(0,g.ta)()-n.Cc.J&&c.reason==="b";G||n||V?(X.J7.Bz({reattachOnConstraint:G?"u":n?"drm":"perf",lo:c.G,up:c.J}),X.policy.JZ||(X.G.J.G=!1)):(X.policy.JZ&&(X.G.J.G=!1),KX(X))}}else if(!O82(X.J,c)&&X.videoTrack){X.logger.debug(function(){return"Setting constraint: r="+c.reason+" u="+c.J}); +V=X.J.J;ZQj(X,M$w(X.J,c));az8(X);G=c.isLocked()&&c.reason==="m"&&X.J.A7;n=X.policy.NB&&c.reason==="l"&&Uk(X.videoTrack);V=V.J>c.J&&c.reason==="b";var L=X.J.fS&&!ZG();G||n||V||L?X.J7.Bz({reattachOnConstraint:G?"u":n?"drm":L?"codec":"perf"}):KX(X)}}; +vB1=function(X,c,V){if((!X.ev||kK(X.ev)&&!X.policy.Nc)&&!X.yQ.isSeeking()&&(X.policy.J||Uk(c)&&c.J.tb()&&X.J.G_)){var G=X.getCurrentTime()+bFl(X.C,c,V);X.logger.debug(function(){return"Clearing back to "+G.toFixed(3)}); +gFS(c,G)}}; +ZQj=function(X,c){c&&(X.logger.debug(function(){return"Logging new format: "+A8(c.video.info)}),k2D(X.J7,new zX(c.video,c.reason))); +if(X.J.LS){var V=IYs(X.J,"a");X.J7.eM(new zX(V.audio,V.reason))}}; +KX=function(X){g.Xn(X.HP)}; +jTU=function(X){X.policy.G2&&X.policy.bA&&Math.min(MtS(X.videoTrack),MtS(X.audioTrack))*1E3>X.policy.YZ?g.Xn(X.hX):X.Dg()}; +oBs=function(X,c){var V=(0,g.ta)()-c,G=Md(X.audioTrack,!0)*1E3,n=Md(X.videoTrack,!0)*1E3;X.logger.debug(function(){return"Appends paused for "+V}); +if(X.policy.U&&(X.Oy("apdpe",{dur:V.toFixed(),abuf:G.toFixed(),vbuf:n.toFixed()}),KG(X.policy))){var L=tw(X.C);X.Oy("sdps",{ct:c,ah:G.toFixed(),vh:n.toFixed(),mr:OJ(X.C,X.wi,L),bw:L.toFixed(),js:X.isSeeking(),re:+X.wi,ps:(X.policy.IU||"").toString(),rn:(X.policy.MP||"").toString()})}}; +e3s=function(X){if(X.policy.G&&P2(X.videoTrack)&&P2(X.audioTrack))return"ssap";if(Tf8(X.videoTrack))return X.logger.debug("Pausing appends for server-selectable format"),"ssf";if(X.policy.LS&&zH(X.videoTrack)&&zH(X.audioTrack))return"updateEnd";if(Nd(X.audioTrack)||Nd(X.videoTrack)&&X.videoTrack.J.info.VK!=="f")return"";if(X.yQ.isSeeking()){var c=X.C;var V=X.videoTrack;var G=X.audioTrack;if(c.policy.J){var n=c.policy.AZ;KG(c.policy)&&(n=OJ(c,!1,tw(c)));c=n;V=Md(G,!0)>=c&&Md(V,!0)>=c}else V.U.length|| +G.U.length?(n=V.J.info.JX+G.J.info.JX,n=10*(1-tw(c)/n),c=Math.max(n,c.policy.AZ),V=Md(G,!0)>=c&&Md(V,!0)>=c):V=!0;if(!V)return"abr";V=X.videoTrack;if(V.U.length>0&&V.X.G.length===1&&YX2(V.X).info.T360);G=KG(X.policy)&&X.policy.VX;if(!X.wi||!G&&V)return"";V=X.policy.G7;KG(X.policy)&&(V=OJ(X.C,X.wi,tw(X.C)));V=pyj(X.videoTrack, +X.getCurrentTime(),V)||pyj(X.audioTrack,X.getCurrentTime(),V);return KG(X.policy)?V?"mbnm":"":(X.videoTrack.U.length>0||X.audioTrack.U.length>0||iB(X.Z,X.videoTrack,X.audioTrack)||iB(X.Z,X.audioTrack,X.videoTrack))&&V?"nord":""}; +JHs=function(X){if(X.D){var c=X.D.Dg(X.audioTrack,WZ(X.ev.G.KE()));c&&X.J7.seekTo(c,{rF:!0,Z3:"pollSubsegmentReadahead",H1:!0})}}; +Mjw=function(X,c,V){if(X.policy.LS&&zH(c))return!1;if(V.Ck())return!0;if(!V.bD())return!1;var G=Kz(c);if(!G||G.info.type===6)return!1;var n=X.policy.xZ;if(n&&!G.info.Z){var L=G.info.X-X.getCurrentTime();if(G.info.TL)return X.policy.J&&bQL(X,c),X.policy.d7&&PI8(c.X,L,!1),!1;tjD(X,c);var h;X.policy.LJ&&V===((h=X.ev)==null?void 0:h.J)&&X.T_&&(V.Ax()===0?(X.T_=!1,X.policy.LJ=!1):X.yK=V.Ax());if(!OQ8(X,V,G,c))return!1;X.policy.LS&&G.info.Dm()?(X.J7.j().YU()&&X.Oy("eosl",{ls:G.info.u3()}), +G.isLocked=!0):(c.P3(G),pt1(X.J,G.info),X.logger.debug(function(){return"Appended "+G.info.u3()+", buffered: "+jU(V.KE())})); +n&&lzt(X,G.info.J.rL);return!0}; +bQL=function(X,c){c===X.videoTrack?X.Hl=X.Hl||(0,g.ta)():X.Pl=X.Pl||(0,g.ta)()}; +tjD=function(X,c){c===X.videoTrack?X.Hl=0:X.Pl=0}; +OQ8=function(X,c,V,G){var n=X.policy.oZ?(0,g.ta)():0,L=V.Z&&V.info.J.J||void 0,d=V.J;V.Z&&(d=gBs(X,V,d)||d);var h=d.wM();d=X.policy.oZ?(0,g.ta)():0;c=fz8(X,c,h,V.info,L);(G=G.C)!=null&&(L=V.info,n=d-n,d=(0,g.ta)()-d,!G.G||XZO(G.G,L)&&G.G.Bl===L.Bl||G.flush(),G.X+=n,G.U+=d,n=1,!G.G&&L.G&&(n=2),LG(G,n,c),d=Math.ceil(L.G/1024),n===2&&G.J.add(d),G.J.add(Math.ceil((L.G+L.U)/1024)-d),G.G=L);X.NW=0;if(c===0)return X.QK&&(X.logger.debug("Retry succeed, back to normal append logic."),X.QK=!1,X.o2=!1),X.qE= +0,!0;if(c===2||c===5)return pJt(X,"checked",c,V.info),!1;if(c===1){if(!X.QK)return X.logger.debug("QuotaExceeded, retrying."),X.QK=!0,!1;if(!X.o2)return X.o2=!0,X.J7.seekTo(X.getCurrentTime(),{Z3:"quotaExceeded",H1:!0}),!1;V.info.EN()?(n=X.policy,n.QK=Math.floor(n.QK*.8),n.kO=Math.floor(n.kO*.8)):(n=X.policy,n.o2=Math.floor(n.o2*.8),n.kO=Math.floor(n.kO*.8));X.policy.J?KD(X.G.J,V.info.J,!1):c2(X.J,V.info.J)}X.J7.Bz({reattachOnAppend:c});return!1}; +gBs=function(X,c,V){var G;if(G=X.policy.Q8&&X.ev&&!X.ev.T&&!X.J7.A0())c=c.info.J.info,G=c.hO()&&DO(c)&&c.video&&c.video.width<3840&&c.video.width>c.video.height;if(G&&(X.ev.T=!0,pp('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return V=hk1(V),X.policy.U&&X.Oy("sp4k",{s:!!V}),V}; +pJt=function(X,c,V,G){var n="fmt.unplayable",L=1;V===5||V===3?(n="fmt.unparseable",X.policy.J?!G.J.info.video||sU(X.G.J).size>0||KD(X.G.J,G.J,!1):!G.J.info.video||sU(X.J.Z).size>0||c2(X.J,G.J)):V===2&&(X.qE<15?(X.qE++,n="html5.invalidstate",L=0):n="fmt.unplayable");G=Iq(G);var d;G.mrs=(d=X.ev)==null?void 0:q1(d);G.origin=c;G.reason=V;X.handleError(n,G,L)}; +oFw=function(X,c,V,G,n){var L=X.ZR;var d=X.policy.J,h=!1,A=-1,Y;for(Y in L.J){var H=ys(L.J[Y].info.mimeType)||L.J[Y].info.EN();if(G===H)if(H=L.J[Y].index,H.TJ(c.Bl)){h=H;var a=c,W=h.dV(a.Bl);W&&W.startTime!==a.startTime?(h.segments=[],h.XM(a),h=!0):h=!1;h?A=c.Bl:!c.pending&&d&&(a=H.getDuration(c.Bl),a!==c.duration&&(L.publish("clienttemp","mfldurUpdate",{itag:L.J[Y].info.itag,seg:c.Bl,od:a,nd:c.duration},!1),H.XM(c),h=!0))}else H.XM(c),h=!0}A>=0&&(d={},L.publish("clienttemp","resetMflIndex",(d[G? +"v":"a"]=A,d),!1));L=h;sr1(X.yQ,c,G,L);X.X.E3(c,V,G,n);if(X.policy.fJ&&V){var w;(w=X.Od)!=null&&w.U.set(c.Bl,V)}c.Bl===X.ZR.uH&&L&&xF(X.ZR)&&c.startTime>xF(X.ZR)&&(X.ZR.Hl=c.startTime+(isNaN(X.timestampOffset)?0:X.timestampOffset),X.yQ.isSeeking()&&X.yQ.J +5)return X.NW=0,X.J7.Bz({initSegStuck:1,as:G.info.u3()}),!0}else X.NW=0,X.EM=G;X.policy.ez&&(V.abort(),(d=c.C)!=null&&(LG(d,4),d.flush()));n=fz8(X,V,L,A,n);var Y;(Y=c.C)==null||KKj(Y,n,A);if(n!==0)return Izt(X,n,G),!0;G.info.EN()?aYO(X.timing):$QO(X.timing);X.logger.debug(function(){return"Appended init for "+G.info.J.info.id}); +lzt(X,G.info.J.rL);return V.rM()}; +mOj=function(X,c,V){if(c.NT()==null){X=ex(X);if(!(c=!X||X.J!==V.info.J)){a:if(X=X.C,V=V.info.C,X.length!==V.length)V=!1;else{for(c=0;c1)return 6;A.wy=new g.qR(function(){var Y=Kz(A);X.vl()||Y==null||!Y.isLocked?X.J7.j().YU()&&X.Oy("eosl",{delayA:Y==null?void 0:Y.info.u3()}):NkU(A)?(X.J7.j().YU()&&X.Oy("eosl",{dunlock:Y==null?void 0:Y.info.u3()}),UOs(X, +A===X.audioTrack)):(X.Oy("nue",{ls:Y.info.u3()}),Y.info.G_+=1,X.ev&&X.u2())},1E4,X); +X.J7.j().YU()&&X.Oy("eosl",{delayS:G.u3()});A.wy.start()}X.policy.G5&&(G==null?void 0:G.J)instanceof z1&&G.Dm()&&X.Oy("poseos",{itag:G.J.info.itag,seg:G.Bl,lseg:G.J.index.q6(),es:G.J.index.U});c.appendBuffer(V,G,n)}catch(Y){if(Y instanceof DOMException){if(Y.code===11)return 2;if(Y.code===12)return 5;if(Y.code===22||Y.message.indexOf("Not enough storage")===0)return c=Object.assign({name:"QuotaExceededError",buffered:jU(c.KE()).replace(/,/g,"_"),vheap:Ok(X.videoTrack),aheap:Ok(X.audioTrack),message:g.Qk(Y.message, +3),track:X.ev?c===X.ev.G?"v":"a":"u"},yHs()),X.handleError("player.exception",c),1;g.Ni(Y)}return 4}return X.ev.AP()?3:0}; +B5=function(X,c,V){X.J7.seekTo(c,V)}; +lzt=function(X,c){c&&X.J7.AF(new aY(c.key,c.type))}; +FR=function(X,c){X.J7.iC(c)}; +T4=function(X,c){if(X.QK&&!X.wi)return 3;if(X.isSuspended)return 1;var V;if((V=X.ev)==null?0:V.ev&&V.ev.streaming===!1)return 4;V=(c.J.info.audio?X.policy.o2:X.policy.QK)/(c.JX*X.policy.oX);if(X.policy.vL>0&&X.ev&&kK(X.ev)&&(c=c.J.info.video?X.ev.G:X.ev.J)&&!c.rM()){c=c.KE();var G=HZ(c,X.getCurrentTime());G>=0&&(c=X.getCurrentTime()-c.start(G),V+=Math.max(0,Math.min(c-X.policy.vL,X.policy.v8)))}X.policy.kO>0&&(V=Math.min(V,X.policy.kO));return V}; +gJS=function(X,c){return(T4(X,c)+X.policy.gp)*c.JX}; +u2w=function(X){X.fS&&!X.isSuspended&&vD(X.schedule)&&(TkD(X,X.fS),X.fS="")}; +TkD=function(X,c){Jw(c,"cms",function(V){X.policy.U&&X.Oy("pathprobe",V)},function(V){X.J7.handleError(V)})}; +PND=function(X,c){if(X.ev&&X.ev.X&&!X.ev.AP()&&(c.g7=Md(X.videoTrack),c.G=Md(X.audioTrack),X.policy.U)){var V=Ok(X.videoTrack),G=Ok(X.audioTrack),n=jU(X.ev.G.KE(),"_",5),L=jU(X.ev.J.KE(),"_",5);Object.assign(c.J,{lvq:V,laq:G,lvb:n,lab:L})}c.bandwidthEstimate=Ry(X.C);var d;(d=X.audioTrack.C)==null||d.flush();var h;(h=X.videoTrack.C)==null||h.flush();X.logger.debug(function(){return bo(c.J)})}; +z3j=function(X,c){X.T=c;X.X&&(X.X.U=c);X.T.XH(X.videoTrack.J.info.hO());X.Z.G=X.T;X.policy.Z&&(X.U.X=X.T)}; +KJO=function(X,c){if(X.ev&&X.ev.G){if(X.policy.ZB){var V=KFs(X.audioTrack);if(V&&V.oi()){var G=X.J7;G.oD&&(G.oD.J=V,G.bB(G.oD.videoId).Kx(G.oD))}}X.policy.Sk&&(V=KFs(X.videoTrack))&&V.EN()&&(G=X.J7,G.Qc&&(G.Qc.J=V,G.bB(G.Qc.videoId).Ur(G.Qc)));c-=isNaN(X.timestampOffset)?0:X.timestampOffset;X.getCurrentTime()!==c&&X.resume();X.yQ.isSeeking()&&X.ev&&!X.ev.AP()&&(V=X.getCurrentTime()<=c&&c=0&&L1?h.G[0]=c&&h3l(X,G.startTime,!1)}); +return V&&V.startTimeX.getCurrentTime())return V.start/1E3;return Infinity}; +iQ1=function(X){var c=ex(X.videoTrack),V=ex(X.audioTrack);return c&&!Bf1(X.videoTrack)?c.startTime:V&&!Bf1(X.audioTrack)?V.startTime:NaN}; +ug2=function(X){if(X.J7.getVideoData().isLivePlayback)return!1;var c=X.J7.vg();if(!c)return!1;c=c.getDuration();return T41(X,c)}; +T41=function(X,c){if(!X.ev||!X.ev.J||!X.ev.G)return!1;var V=X.getCurrentTime(),G=X.ev.J.KE();X=X.ev.G.KE();G=G?$K(G,V):V;V=X?$K(X,V):V;V=Math.min(G,V);return isNaN(V)?!1:V>=c-.01}; +Izt=function(X,c,V){X.policy.EX&&nQ(X.J7.getVideoData())?(X.J7.U9()||pJt(X,"sepInit",c,V.info),qqw(X.J7,"sie")):pJt(X,"sepInit",c,V.info)}; +HLD=function(X){return X.J7.P_()0){var n=G.J.shift();ctw(G,n.info)}G.J.length>0&&(n=G.J[0].time-(0,g.ta)(),G.G.start(Math.max(0,n)))}},0); +g.N(this,this.G);c.subscribe("widevine_set_need_key_info",this.Z,this)}; +ctw=function(X,c){a:{var V=c.cryptoPeriodIndex;if(isNaN(V)&&X.U.size>0)V=!0;else{for(var G=g.r(X.U.values()),n=G.next();!n.done;n=G.next())if(n.value.cryptoPeriodIndex===V){V=!0;break a}V=!1}}X.publish("log_qoe",{wvagt:"reqnews",canskip:V});V||X.publish("rotated_need_key_info_ready",c)}; +VZs=function(){var X={};var c=X.url;var V=X.interval;X=X.retries;this.url=c;this.interval=V;this.retries=X}; +GTU=function(X,c){this.statusCode=X;this.message=c;this.G=this.heartbeatParams=this.errorMessage=null;this.J={};this.nextFairplayKeyId=null}; +nzt=function(X,c,V){V=V===void 0?"":V;g.I.call(this);this.message=X;this.requestNumber=c;this.lf=V;this.onError=this.onSuccess=null;this.J=new g.oN(5E3,2E4,.2)}; +LMD=function(X,c,V){X.onSuccess=c;X.onError=V}; +ytl=function(X,c,V,G){var n={timeout:3E4,onSuccess:function(L){if(!X.vl()){zh("drm_net_r",void 0,X.lf);var d=L.status==="LICENSE_STATUS_OK"?0:9999,h=null;if(L.license)try{h=ZR(L.license)}catch(F){g.Ni(F)}if(d!==0||h){h=new GTU(d,h);d!==0&&L.reason&&(h.errorMessage=L.reason);if(L.authorizedFormats){d={};for(var A=[],Y={},H=g.r(L.authorizedFormats),a=H.next();!a.done;a=H.next())if(a=a.value,a.trackType&&a.keyId){var W=d$U[a.trackType];if(W){W==="HD"&&L.isHd720&&(W="HD720");a.isHdr&&(W+="HDR");d[W]|| +(A.push(W),d[W]=!0);var w=null;try{w=ZR(a.keyId)}catch(F){g.Ni(F)}w&&(Y[g.rQ(w,4)]=W)}}h.G=A;h.J=Y}L.nextFairplayKeyId&&(h.nextFairplayKeyId=L.nextFairplayKeyId);L.sabrLicenseConstraint&&(h.sabrLicenseConstraint=ZR(L.sabrLicenseConstraint));L=h}else L=null;if(L)X.onSuccess(L,X.requestNumber);else X.onError(X,"drm.net","t.p;p.i")}}, +onError:function(L){if(!X.vl())if(L&&L.error)L=L.error,X.onError(X,"drm.net.badstatus","t.r;p.i;c."+L.code+";s."+L.status,L.code);else X.onError(X,"drm.net.badstatus","t.r;p.i;c.n")}, +onTimeout:function(){X.onError(X,"drm.net","rt.req."+X.requestNumber)}}; +G&&(n.YX="Bearer "+G);g.Lw(V,"player/get_drm_license",c,n)}; +hJj=function(X,c,V,G){g.$T.call(this);this.videoData=X;this.qW=c;this.T=V;this.sessionId=G;this.Z={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.G_=this.A7=!1;this.U=null;this.kO=[];this.X=[];this.D=!1;this.J={};this.status="";this.B=NaN;this.G=X.Z;this.cryptoPeriodIndex=V.cryptoPeriodIndex;X={};Object.assign(X,this.qW.J);X.cpn=this.videoData.clientPlaybackNonce;this.videoData.A7&&(X.vvt=this.videoData.A7,this.videoData.mdxEnvironment&&(X.mdx_environment=this.videoData.mdxEnvironment)); +this.qW.kO&&(X.authuser=this.qW.kO);this.qW.pageId&&(X.pageid=this.qW.pageId);isNaN(this.cryptoPeriodIndex)||(X.cpi=this.cryptoPeriodIndex.toString());var n=(n=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.bA()))?n[1]:"";n==="ATV"&&(X.cdt=n);this.Z=X;this.Z.session_id=G;this.C=!0;this.G.flavor==="widevine"&&(this.Z.hdr="1");this.G.flavor==="playready"&&(c=Number(Xi(c.experiments,"playready_first_play_expiration")),!isNaN(c)&&c>=0&&(this.Z.mfpe=""+c),this.C=!1);c="";g.UX(this.G)?NY(this.G)?(G=V.G)&&(c="https://www.youtube.com/api/drm/fps?ek="+ +Nst(G)):(c=V.initData.subarray(4),c=new Uint16Array(c.buffer,c.byteOffset,c.byteLength/2),c=String.fromCharCode.apply(null,c).replace("skd://","https://")):c=this.G.G;this.baseUrl=c;this.fairplayKeyId=CB(this.baseUrl,"ek")||"";if(c=CB(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(c);this.kO=V.hO?[g.rQ(V.initData,4)]:V.U;nl(this,{sessioninit:V.cryptoPeriodIndex});this.status="in"}; +H98=function(X,c){nl(X,{createkeysession:1});X.status="gr";zh("drm_gk_s",void 0,X.videoData.YO);X.url=At2(X);try{X.U=c.createSession(X.T,function(V){nl(X,{m:V})})}catch(V){c="t.g"; +V instanceof DOMException&&(c+=";c."+V.code);X.publish("licenseerror","drm.unavailable",1,c,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}X.U&&(YNw(X.U,function(V,G){jxU(X,V,G)},function(V,G,n){if(!X.vl()){G=void 0; +var L=1;g.UX(X.G)&&g.fL(X.qW)&&X.qW.S("html5_enable_safari_fairplay")&&n===1212433232&&(G="ERROR_HDCP",L=X.qW.S("html5_safari_fairplay_ignore_hdcp")?0:L);X.error("drm.keyerror",L,V,G)}},function(){X.vl()||(nl(X,{onkyadd:1}),X.G_||(X.publish("sessionready"),X.G_=!0))},function(V){X.GS(V)}),g.N(X,X.U))}; +At2=function(X){var c=X.baseUrl;Ayw(c)||X.error("drm.net",2,"t.x");if(!CB(c,"fexp")){var V=["23898307","23914062","23916106","23883098"].filter(function(n){return X.qW.experiments.experiments[n]}); +V.length>0&&(X.Z.fexp=V.join())}V=g.r(Object.keys(X.Z));for(var G=V.next();!G.done;G=V.next())G=G.value,c=m5l(c,G,X.Z[G]);return c}; +jxU=function(X,c,V){if(!X.vl())if(c){nl(X,{onkmtyp:V});X.status="km";switch(V){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":a6D(X,c);return;default:X.publish("ctmp","message_type",{t:V,l:c.byteLength})}X.A7||(zh("drm_gk_f",void 0,X.videoData.YO),X.A7=!0,X.publish("newsession",X));if(fx(X.G)&&(c=$$1(c),!c))return;c=new nzt(c,++X.requestNumber,X.videoData.YO);LMD(c,function(G){WMw(X,G)},function(G,n,L){if(!X.vl()){var d=0; +G.J.G>=3&&(d=1,n="drm.net.retryexhausted");nl(X,{onlcsrqerr:n,info:L});X.error(n,d,L);X.shouldRetry(O3(d),G)&&wOw(X,G)}}); +g.N(X,c);FMD(X,c)}else X.error("drm.unavailable",1,"km.empty")}; +a6D=function(X,c){nl(X,{sdpvrq:1});X.B=Date.now();if(X.G.flavor!=="widevine")X.error("drm.provision",1,"e.flavor;f."+X.G.flavor+";l."+c.byteLength);else{var V={cpn:X.videoData.clientPlaybackNonce};Object.assign(V,X.qW.J);V=g.KB("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",V);c={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, +c)}),responseType:"arraybuffer"};g.Ml(V,c,3,500).then(vV(function(G){G=G.xhr;if(!X.vl()){G=new Uint8Array(G.response);var n=String.fromCharCode.apply(null,G);try{var L=JSON.parse(n)}catch(d){}L&&L.signedResponse?(X.publish("ctmp","drminfo",{provisioning:1}),L=(Date.now()-X.B)/1E3,X.B=NaN,X.publish("ctmp","provs",{et:L.toFixed(3)}),X.U&&X.U.update(G)):(L=L&&L.error&&L.error.message,G="e.parse",L&&(G+=";m."+L),X.error("drm.provision",1,G))}}),vV(function(G){X.vl()||X.error("drm.provision",1,"e."+G.errorCode+ +";c."+(G.xhr&&G.xhr.status))}))}}; +Ll=function(X){var c;if(c=X.C&&X.U!=null)X=X.U,c=!(!X.J||!X.J.keyStatuses);return c}; +FMD=function(X,c){X.status="km";zh("drm_net_s",void 0,X.videoData.YO);var V=new g.nw(X.qW.yr),G={context:g.wU(V.config_||g.Wi())};G.drmSystem=Ezs[X.G.flavor];G.videoId=X.videoData.videoId;G.cpn=X.videoData.clientPlaybackNonce;G.sessionId=X.sessionId;G.licenseRequest=g.rQ(c.message);G.drmParams=X.videoData.drmParams;isNaN(X.cryptoPeriodIndex)||(G.isKeyRotated=!0,G.cryptoPeriodIndex=X.cryptoPeriodIndex);var n,L,d=!!((n=X.videoData.G)==null?0:(L=n.video)==null?0:L.isHdr());G.drmVideoFeature=d?"DRM_VIDEO_FEATURE_PREFER_HDR": +"DRM_VIDEO_FEATURE_SDR";if(G.context&&G.context.client){if(n=X.qW.J)G.context.client.deviceMake=n.cbrand,G.context.client.deviceModel=n.cmodel,G.context.client.browserName=n.cbr,G.context.client.browserVersion=n.cbrver,G.context.client.osName=n.cos,G.context.client.osVersion=n.cosver;G.context.user=G.context.user||{};G.context.request=G.context.request||{};X.videoData.A7&&(G.context.user.credentialTransferTokens=[{token:X.videoData.A7,scope:"VIDEO"}]);G.context.request.mdxEnvironment=X.videoData.mdxEnvironment|| +G.context.request.mdxEnvironment;X.videoData.HP&&(G.context.user.kidsParent={oauthToken:X.videoData.HP});g.UX(X.G)&&(G.fairplayKeyId=g.rQ(UL1(X.fairplayKeyId)));g.LW(X.qW,g.T2(X.videoData)).then(function(h){ytl(c,G,V,h);X.status="rs"})}else X.error("drm.net",2,"t.r;ic.0")}; +WMw=function(X,c){if(!X.vl())if(nl(X,{onlcsrsp:1}),X.status="rr",c.statusCode!==0)X.error("drm.auth",1,"t.f;c."+c.statusCode,c.errorMessage||void 0);else{zh("drm_kr_s",void 0,X.videoData.YO);if(c.heartbeatParams&&c.heartbeatParams.url&&X.videoData.S("outertube_streaming_data_always_use_staging_license_service")){var V=X.G.G.match(/(.*)youtube.com/g);V&&(c.heartbeatParams.url=V[0]+c.heartbeatParams.url)}c.heartbeatParams&&X.publish("newlicense",c.heartbeatParams);c.G&&(X.X=c.G,X.videoData.f4||X.publish("newlicense", +new VZs),X.videoData.f4=!0,X.D=lF(X.X,function(G){return G.includes("HDR")})); +c.J&&(X.qW.S("html5_enable_vp9_fairplay")&&NY(X.G)?(V=g.rQ(UL1(X.fairplayKeyId),4),X.J[V]={type:c.J[V],status:"unknown"}):X.J=v1(c.J,function(G){return{type:G,status:"unknown"}})); +IE(X.G)&&(c.message=UTD(g.rQ(c.message)));X.U&&(nl(X,{updtks:1}),X.status="ku",X.U.update(c.message).then(function(){zh("drm_kr_f",void 0,X.videoData.YO);Ll(X)||(nl(X,{ksApiUnsup:1}),X.publish("keystatuseschange",X))},function(G){G="msuf.req."+X.requestNumber+";msg."+g.Qk(G.message,3); +X.error("drm.keyerror",1,G)})); +g.UX(X.G)&&X.publish("fairplay_next_need_key_info",X.baseUrl,c.nextFairplayKeyId);X.qW.S("html5_enable_vp9_fairplay")&&NY(X.G)&&X.publish("qualitychange",rtD(X.X));c.sabrLicenseConstraint&&X.publish("sabrlicenseconstraint",c.sabrLicenseConstraint)}}; +wOw=function(X,c){var V=c.J.getValue();V=new g.qR(function(){FMD(X,c)},V); +g.N(X,V);V.start();g.e6(c.J);nl(X,{rtyrq:1})}; +Qx2=function(X,c){for(var V=[],G=g.r(Object.keys(X.J)),n=G.next();!n.done;n=G.next())n=n.value,V.push(n+"_"+X.J[n].type+"_"+X.J[n].status);return V.join(c)}; +Z9U=function(X){var c={};c[X.status]=Ll(X)?Qx2(X,"."):X.X.join(".");return c}; +x$w=function(X,c){switch(X){case "highres":case "hd2880":X="UHD2";break;case "hd2160":case "hd1440":X="UHD1";break;case "hd1080":case "hd720":X="HD";break;case "large":case "medium":case "small":case "light":case "tiny":X="SD";break;default:return""}c&&(X+="HDR");return X}; +vzO=function(X,c){for(var V in X.J)if(X.J[V].status==="usable"&&X.J[V].type===c)return!0;return!1}; +kTt=function(X,c){for(var V in X.J)if(X.J[V].type===c)return X.J[V].status}; +nl=function(X,c){var V=V===void 0?!1:V;bo(c);(V||X.qW.YU())&&X.publish("ctmp","drmlog",c)}; +oz2=function(X){var c=X[0];X[0]=X[3];X[3]=c;c=X[1];X[1]=X[2];X[2]=c;c=X[4];X[4]=X[5];X[5]=c;c=X[6];X[6]=X[7];X[7]=c}; +rtD=function(X){return g.SV(X,"UHD2")||g.SV(X,"UHD2HDR")?"highres":g.SV(X,"UHD1")||g.SV(X,"UHD1HDR")?"hd2160":g.SV(X,"HD")||g.SV(X,"HDHDR")?"hd1080":g.SV(X,"HD720")||g.SV(X,"HD720HDR")?"hd720":"large"}; +$$1=function(X){for(var c="",V=0;V'.charCodeAt(G);X=X.U.createSession("video/mp4",c,V);return new dK(null,null,null,null,X)}; +fAj=function(X,c){var V=X.B[c.sessionId];!V&&X.X&&(V=X.X,X.X=null,V.sessionId=c.sessionId,X.B[c.sessionId]=V);return V}; +lAj=function(X,c){var V=X.subarray(4);V=new Uint16Array(V.buffer,V.byteOffset,V.byteLength/2);V=String.fromCharCode.apply(null,V).match(/ek=([0-9a-f]+)/)[1];for(var G="",n=0;n=0&&X.push(G);X=parseFloat(X.join("."))}else X=NaN;X>19.2999?(X=V.XE,V=V.d7,V>=X&&(V=X*.75),c=(X-V)*.5,V=new VZ(c,X,X-c-V,this)):V=null;break a;case "widevine":V=new GQ(c,this,X);break a;default:V=null}if(this.Z=V)g.N(this,this.Z),this.Z.subscribe("rotated_need_key_info_ready",this.t5,this),this.Z.subscribe("log_qoe",this.WS,this);u7(this.qW.experiments);this.WS({cks:this.J.getInfo()})}; +IAl=function(X){var c=X.X.Xl();c?c.then(vV(function(){Ud8(X)}),vV(function(V){if(!X.vl()){g.Ni(V); +var G="t.a";V instanceof DOMException&&(G+=";n."+V.name+";m."+V.message);X.publish("licenseerror","drm.unavailable",1,G,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(X.WS({mdkrdy:1}),X.C=!0); +X.G_&&(c=X.G_.Xl())}; +uRs=function(X,c,V){X.QK=!0;V=new aY(c,V);X.qW.S("html5_eme_loader_sync")&&(X.B.get(c)||X.B.set(c,V));TYs(X,V)}; +TYs=function(X,c){if(!X.vl()){X.WS({onInitData:1});if(X.qW.S("html5_eme_loader_sync")&&X.videoData.U&&X.videoData.U.J){var V=X.D.get(c.initData);c=X.B.get(c.initData);if(!V||!c)return;c=V;V=c.initData;X.B.remove(V);X.D.remove(V)}X.WS({initd:c.initData.length,ct:c.contentType});if(X.J.flavor==="widevine")if(X.Pl&&!X.videoData.isLivePlayback)AZ(X);else{if(!(X.qW.S("vp9_drm_live")&&X.videoData.isLivePlayback&&c.hO)){X.Pl=!0;V=c.cryptoPeriodIndex;var G=c.J;Gbs(c);c.hO||(G&&c.J!==G?X.publish("ctmp","cpsmm", +{emsg:G,pssh:c.J}):V&&c.cryptoPeriodIndex!==V&&X.publish("ctmp","cpimm",{emsg:V,pssh:c.cryptoPeriodIndex}));X.publish("widevine_set_need_key_info",c)}}else X.t5(c)}}; +Ud8=function(X){if(!X.vl())if(X.qW.S("html5_drm_set_server_cert")||NY(X.J)){var c=X.X.setServerCertificate();c?c.then(vV(function(V){X.qW.YU()&&X.publish("ctmp","ssc",{success:V})}),vV(function(V){X.publish("ctmp","ssce",{n:V.name, +m:V.message})})).then(vV(function(){PBU(X)})):PBU(X)}else PBU(X)}; +PBU=function(X){X.vl()||(X.C=!0,X.WS({onmdkrdy:1}),AZ(X))}; +zPD=function(X){return X.J.flavor==="widevine"&&X.videoData.S("html5_drm_cpi_license_key")}; +AZ=function(X){if((X.QK||X.qW.S("html5_widevine_use_fake_pssh"))&&X.C&&!X.NW){for(;X.U.length;){var c=X.U[0],V=zPD(X)?nFU(c):g.rQ(c.initData);if(NY(X.J)&&!c.G)X.U.shift();else{if(X.G.get(V))if(X.J.flavor!=="fairplay"||NY(X.J)){X.U.shift();continue}else X.G.delete(V);Gbs(c);break}}X.U.length&&X.createSession(X.U[0])}}; +BYL=function(X){var c;if(c=g.C1()){var V;c=!((V=X.X.G)==null||!V.getMetrics)}c&&(c=X.X.getMetrics())&&(c=g.On(c),X.publish("ctmp","drm",{metrics:c}))}; +KgO=function(){var X=Kls();return!(!X||X==="visible")}; +CBU=function(X){var c=sYD();c&&document.addEventListener(c,X,!1)}; +DdU=function(X){var c=sYD();c&&document.removeEventListener(c,X,!1)}; +sYD=function(){if(document.visibilityState)var X="visibilitychange";else{if(!document[E1+"VisibilityState"])return"";X=E1+"visibilitychange"}return X}; +Skj=function(X){g.I.call(this);var c=this;this.J7=X;this.C4=0;this.B=this.G=this.Z=!1;this.X=0;this.Fh=this.J7.j();this.videoData=this.J7.getVideoData();this.U=g.EZ(this.Fh.experiments,"html5_delayed_retry_count");this.J=new g.qR(function(){c.J7.cD()},g.EZ(this.Fh.experiments,"html5_delayed_retry_delay_ms")); +g.N(this,this.J)}; +VrU=function(X,c,V){var G=X.videoData.G,n=X.videoData.X;nQ(X.J7.getVideoData())&&X.Fh.S("html5_gapless_fallback_on_qoe_restart")&&qqw(X.J7,"pe");if((c==="progressive.net.retryexhausted"||c==="fmt.unplayable"||c==="fmt.decode")&&!X.J7.Ml.Z&&G&&G.itag==="22")return X.J7.Ml.Z=!0,X.Mi("qoe.restart",{reason:"fmt.unplayable.22"}),X.J7.QE(),!0;var L=!1;if(X.videoData.isExternallyHostedPodcast){if(L=X.videoData.Ve)V.mimeType=L.type,X.Oy("3pp",{url:L.url});V.ns="3pp";X.J7.eX(c,1,"VIDEO_UNAVAILABLE",bo((new tm(c, +V,1)).details));return!0}var d=X.C4+3E4<(0,g.ta)()||X.J.isActive();if(X.Fh.S("html5_empty_src")&&X.videoData.isAd()&&c==="fmt.unplayable"&&/Empty src/.test(""+V.msg))return V.origin="emptysrc",X.Mi("auth",V),!0;d||YR(X.J7.Zm())||(V.nonfg="paused",d=!0,X.J7.pauseVideo());(c==="fmt.decode"||c==="fmt.unplayable")&&(n==null?0:XN(n)||cZ(n))&&(Txj(X.Fh.Z,n.VK),V.acfallexp=n.VK,L=d=!0);!d&&X.U>0&&(X.J.start(),d=!0,V.delayed="1",--X.U);n=X.J7.h7;!d&&((G==null?0:q_(G))||(G==null?0:DO(G)))&&(Txj(X.Fh.Z,G.VK), +L=d=!0,V.cfallexp=G.VK);if(X.Fh.S("html5_ssap_ignore_decode_error_for_next_video")&&g.CW(X.videoData)&&c==="fmt.unplayable"&&V.cid&&V.ccid&&YR(X.J7.Zm())){if(V.cid!==V.ccid)return V.ignerr="1",X.Mi("ssap.transitionfailure",V),!0;X.Mi("ssap.transitionfailure",V);if(iGl(X.J7,c))return!0}if(!d)return qks(X,V);if(X.Fh.S("html5_ssap_skip_decoding_clip_with_incompatible_codec")&&g.CW(X.videoData)&&c==="fmt.unplayable"&&V.cid&&V.ccid&&V.cid!==V.ccid&&YR(X.J7.Zm())&&(X.Mi("ssap.transitionfailure",V),iGl(X.J7, +c)))return!0;d=!1;X.Z?X.C4=(0,g.ta)():d=X.Z=!0;var h=X.videoData;if(h.o2){h=h.o2.RJ();var A=Date.now()/1E3+1800;h=h6048E5&&dr2(X,"signature");return!1}; +dr2=function(X,c){try{window.location.reload(),X.Mi("qoe.restart",{detail:"pr."+c})}catch(V){}}; +h91=function(X,c){c=c===void 0?"fmt.noneavailable":c;var V=X.Fh.Z;V.D=!1;nL(V);X.Mi("qoe.restart",{e:c,detail:"hdr"});X.J7.cD(!0)}; +AR2=function(X,c,V,G,n,L){this.videoData=X;this.J=c;this.reason=V;this.G=G;this.token=n;this.videoId=L}; +YP2=function(X,c,V){this.qW=X;this.CG=c;this.J7=V;this.T=this.B=this.J=this.X=this.D=this.G=0;this.Z=!1;this.C=g.EZ(this.qW.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.U=new Map}; +HX1=function(X,c,V){!X.qW.S("html5_tv_ignore_capable_constraint")&&g.OZ(X.qW)&&(V=V.compose(jzw(X,c)));return V}; +adS=function(X){if(X.J7.Zm().isInline())return Pp;var c;X.S("html5_exponential_memory_for_sticky")?c=kC(X.qW.vW,"sticky-lifetime")<.5?"auto":A7[UM()]:c=A7[UM()];return g.dV("auto",c,!1,"s")}; +Wvs=function(X,c){var V,G=$r2(X,(V=c.J)==null?void 0:V.videoInfos);V=X.J7.getPlaybackRate();return V>1&&G?(X=gNs(X.qW.Z,c.J.videoInfos,V),new L5(0,X,!0,"o")):new L5(0,0,!1,"o")}; +$r2=function(X,c){return c&&g.OZ(X.qW)?c.some(function(V){return V.video.fps>32}):!1}; +wos=function(X,c){var V=X.J7.Qo();X.S("html5_use_video_quality_cap_for_ustreamer_constraint")&&V&&V.Ge>0&&h7(c.videoData.ou)&&(X=V.Ge,c.videoData.ou=new L5(0,X,!1,"u"));return c.videoData.ou}; +jzw=function(X,c){if(g.OZ(X.qW)&&xW(X.qW.Z,v4.HEIGHT))var V=c.J.videoInfos[0].video.J;else{var G=!!c.J.J;var n;g.M7(X.qW)&&(n=window.screen&&window.screen.width?new g.Ez(window.screen.width,window.screen.height):null);n||(n=X.qW.B5?X.qW.B5.clone():X.CG.Nm());(Xv||GH||G)&&n.scale(g.Dv());G=n;LQ(c.videoData)||CQ(c.videoData);c=c.J.videoInfos;if(c.length){n=g.EZ(X.qW.experiments,"html5_override_oversend_fraction")||.85;var L=c[0].video;L.projectionType!=="MESH"&&L.projectionType!=="EQUIRECTANGULAR"&& +L.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||OT||(n=.45);X=g.EZ(X.qW.experiments,"html5_viewport_undersend_maximum");for(L=0;L0&&(V=Math.min(V,G));if(G=g.EZ(X.qW.experiments,"html5_max_vertical_resolution")){X=4320;for(n=0;n +G&&(X=Math.min(X,L.video.J));if(X<4320){for(n=G=0;n32){n=!0;break a}}n=!1}n&&(V=Math.min(V,G));(G=g.EZ(X.qW.experiments,"html5_live_quality_cap"))&&c.videoData.isLivePlayback&&(V=Math.min(V,G));V=Ekj(X,c,V);X=g.EZ(X.qW.experiments,"html5_byterate_soft_cap");return new L5(0,V===4320?0:V,!1,"d",X)}; +QzS=function(X){var c,V,G,n;return g.O(function(L){switch(L.J){case 1:return X.J.J&&typeof((c=navigator.mediaCapabilities)==null?void 0:c.decodingInfo)==="function"?g.b(L,Promise.resolve(),2):L.return(Promise.resolve());case 2:V=g.r(X.J.videoInfos),G=V.next();case 3:if(G.done){L.Wl(0);break}n=G.value;return g.b(L,kyD(n),4);case 4:G=V.next(),L.Wl(3)}})}; +xrj=function(X,c){if(!c.videoData.G||X.S("html5_disable_performance_downgrade"))return!1;Date.now()-X.D>6E4&&(X.G=0);X.G++;X.D=Date.now();if(X.G!==4)return!1;ZXl(X,c.videoData.G);return!0}; +kYl=function(X,c,V,G){if(!c||!V||!c.videoData.G)return!1;var n=g.EZ(X.qW.experiments,"html5_df_downgrade_thresh"),L=X.S("html5_log_media_perf_info");if(!((0,g.ta)()-X.X<5E3?0:L||n>0))return!1;var d=((0,g.ta)()-X.X)/1E3;X.X=(0,g.ta)();V=V.getVideoPlaybackQuality();if(!V)return!1;var h=V.droppedVideoFrames-X.B,A=V.totalVideoFrames-X.T;X.B=V.droppedVideoFrames;X.T=V.totalVideoFrames;var Y=V.displayCompositedVideoFrames===0?0:V.displayCompositedVideoFrames||-1;L&&X.qW.YU()&&X.J7.Oy("ddf",{dr:V.droppedVideoFrames, +de:V.totalVideoFrames,comp:Y});if(G)return X.J=0,!1;if((A-h)/d>X.C||!n||g.OZ(X.qW))return!1;X.J=(A>60?h/A:0)>n?X.J+1:0;if(X.J!==3)return!1;ZXl(X,c.videoData.G);X.J7.Oy("dfd",Object.assign({dr:V.droppedVideoFrames,de:V.totalVideoFrames},vkD()));return!0}; +ZXl=function(X,c){var V=c.VK,G=c.video.fps,n=c.video.J-1,L=X.U;c=""+V+(G>49?"p60":G>32?"p48":"");V=tF(V,G,L);n>0&&(V=Math.min(V,n));if(!j5.has(c)&&PV().includes(c)){var d=V;V=uI();+V[c]>0&&(d=Math.min(+V[c],d));V[c]!==d&&(V[c]=d,g.pv("yt-player-performance-cap",V,2592E3))}else if(j5.has(c)||L==null){a:{d=d===void 0?!0:d;G=PV().slice();if(d){if(G.includes(c))break a;G.push(c)}else{if(!G.includes(c))break a;G.splice(G.indexOf(c),1)}g.pv("yt-player-performance-cap-active-set",G,2592E3)}b7.set(c,V)}else j5.add(c), +L==null||L.set(c,V);X.J7.LW()}; +HG=function(X,c){if(!c.J.J)return X.Z?new L5(0,360,!1,"b"):Pp;for(var V=!1,G=!1,n=g.r(c.J.videoInfos),L=n.next();!L.done;L=n.next())q_(L.value)?V=!0:G=!0;V=V&&G;G=0;n=g.EZ(X.qW.experiments,"html5_performance_cap_floor");n=X.qW.G?240:n;c=g.r(c.J.videoInfos);for(L=c.next();!L.done;L=c.next()){var d=L.value;if(!V||!q_(d))if(L=tF(d.VK,d.video.fps,X.U),d=d.video.J,Math.max(L,n)>=d){G=d;break}}return new L5(0,G,!1,"b")}; +ok1=function(X,c){var V=X.J7.Zm();return V.isInline()&&!c.iq?new L5(0,480,!1,"v"):V.isBackground()&&Ox()/1E3>60&&!g.OZ(X.qW)?new L5(0,360,!1,"v"):Pp}; +e9j=function(X,c,V){if(X.qW.experiments.lc("html5_disable_client_autonav_cap_for_onesie")&&c.fetchType==="onesie"||g.OZ(X.qW)&&(UM(-1)>=1080||c.osid))return Pp;var G=g.EZ(X.qW.experiments,"html5_autonav_quality_cap"),n=g.EZ(X.qW.experiments,"html5_autonav_cap_idle_secs");return G&&c.isAutonav&&Ox()/1E3>n?(V&&(G=Ekj(X,V,G)),new L5(0,G,!1,"e")):Pp}; +Ekj=function(X,c,V){if(X.S("html5_optimality_defaults_chooses_next_higher")&&V)for(X=c.J.videoInfos,c=1;c=0||(X.provider.J7.getVisibilityState()===3?X.Z=!0:(X.J=g.$R(X.provider),X.delay.start()))}; +R9j=function(X){if(!(X.G<0)){var c=g.$R(X.provider),V=c-X.X;X.X=c;X.playerState.state===8?X.playTimeSecs+=V:X.playerState.isBuffering()&&!g.B(X.playerState,16)&&(X.rebufferTimeSecs+=V)}}; +bXj=function(X){var c;switch((c=X.qW.playerCanaryStage)==null?void 0:c.toLowerCase()){case "xsmall":return"HTML5_PLAYER_CANARY_STAGE_XSMALL";case "small":return"HTML5_PLAYER_CANARY_STAGE_SMALL";case "medium":return"HTML5_PLAYER_CANARY_STAGE_MEDIUM";case "large":return"HTML5_PLAYER_CANARY_STAGE_LARGE";default:return"HTML5_PLAYER_CANARY_STAGE_UNSPECIFIED"}}; +tr8=function(X){return window.PressureObserver&&new window.PressureObserver(X)}; +OX1=function(X){X=X===void 0?tr8:X;g.I.call(this);var c=this;try{this.U=X(function(G){c.G=G.at(-1)}); +var V;this.X=(V=this.U)==null?void 0:V.observe("cpu",{sampleInterval:2E3}).catch(function(G){G instanceof DOMException&&(c.J=G)})}catch(G){G instanceof DOMException&&(this.J=G)}}; +ldt=function(X){var c={},V=window.h5vcc;c.hwConcurrency=navigator.hardwareConcurrency;X.J&&(c.cpe=X.J.message);X.G&&(c.cpt=X.G.time,c.cps=X.G.state);if(V==null?0:V.cVal)c.cb2s=V.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),c.cb5s=V.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),c.cb30s=V.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return c}; +MrL=function(X){var c;g.O(function(V){switch(V.J){case 1:return g.x1(V,2),g.b(V,X.X,4);case 4:g.k1(V,3);break;case 2:g.o8(V);case 3:(c=X.U)==null||c.disconnect(),g.ZS(V)}})}; +fdt=function(X,c){c?gk2.test(X):(X=g.A3(X),Object.keys(X).includes("cpn"))}; +Id1=function(X,c,V,G,n,L,d){var h={format:"RAW"},A={};if(H3(X)&&aa()){if(d){var Y;((Y=poL.uaChPolyfill)==null?void 0:Y.state.type)!==2?d=null:(d=poL.uaChPolyfill.state.data.values,d={"Synth-Sec-CH-UA-Arch":d.architecture,"Synth-Sec-CH-UA-Model":d.model,"Synth-Sec-CH-UA-Platform":d.platform,"Synth-Sec-CH-UA-Platform-Version":d.platformVersion,"Synth-Sec-CH-UA-Full-Version":d.uaFullVersion});A=Object.assign(A,d);h.withCredentials=!0}(d=g.qK("EOM_VISITOR_DATA"))?A["X-Goog-EOM-Visitor-Id"]=d:G?A["X-Goog-Visitor-Id"]= +G:g.qK("VISITOR_DATA")&&(A["X-Goog-Visitor-Id"]=g.qK("VISITOR_DATA"));V&&(A["X-Goog-PageId"]=V);(G=c.kO)&&!iY(c)&&(A["X-Goog-AuthUser"]=G);n&&(A.Authorization="Bearer "+n);c.S("enable_datasync_id_header_in_web_vss_pings")&&c.ql&&c.datasyncId&&(A["X-YouTube-DataSync-Id"]=c.datasyncId);d||A["X-Goog-Visitor-Id"]||n||V||G?h.withCredentials=!0:c.S("html5_send_cpn_with_options")&&gk2.test(X)&&(h.withCredentials=!0)}Object.keys(A).length>0&&(h.headers=A);L&&(h.onFinish=L);return Object.keys(h).length>1? +h:null}; +Nll=function(X,c,V,G,n,L,d,h){aa()&&V.token&&(X=YP(X,{ctt:V.token,cttype:V.E$,mdx_environment:V.mdxEnvironment}));G.S("net_pings_low_priority")&&(c||(c={}),c.priority="low");L||h&&G.S("nwl_skip_retry")?(c==null?c={}:fdt(X,G.S("html5_assert_cpn_with_regex")),d?Vd().sendAndWrite(X,c):Vd().sendThenWrite(X,c,h)):c?(fdt(X,G.S("html5_assert_cpn_with_regex")),G.S("net_pings_use_fetch")?FlO(X,c):g.b9(X,c)):g.Bi(X,n)}; +UrD=function(X){for(var c=[],V=0;V0&&V>0&&!X.G&&X.U<1E7)try{X.X=X.Z({sampleInterval:c,maxBufferSize:V});var G;(G=X.X)==null||G.addEventListener("samplebufferfull",function(){return g.O(function(n){if(n.J==1)return g.b(n,X.stop(),2);Prs(X);g.ZS(n)})})}catch(n){X.G=udw(n.message)}}; +wK=function(X,c){var V,G;return!!((V=window.h5vcc)==null?0:(G=V.settings)==null?0:G.set(X,c))}; +BlS=function(){var X,c,V,G=(X=window.h5vcc)==null?void 0:(c=X.settings)==null?void 0:(V=c.getPersistentSettingAsString)==null?void 0:V.call(c,"cpu_usage_tracker_intervals");if(G!=null){var n;X=(n=JSON.parse(G))!=null?n:[];n=X.filter(function(Y){return Y.type==="total"}).map(function(Y){return Y.seconds}); +c=g.r(z9l);for(V=c.next();!V.done;V=c.next())V=V.value,n.indexOf(V)===-1&&X.push({type:"total",seconds:V});var L,d;(L=window.h5vcc)==null||(d=L.settings)==null||d.set("cpu_usage_tracker_intervals_enabled",1);var h,A;(h=window.h5vcc)==null||(A=h.settings)==null||A.set("cpu_usage_tracker_intervals",JSON.stringify(X))}}; +KvO=function(){var X=window.H5vccPlatformService,c="";if(X&&X.has("dev.cobalt.coat.clientloginfo")&&(X=X.open("dev.cobalt.coat.clientloginfo",function(){}))){var V=X.send(new ArrayBuffer(0)); +V&&(c=String.fromCharCode.apply(String,g.x(new Uint8Array(V))));X.close()}return c}; +g.rK=function(X,c){g.I.call(this);var V=this;this.provider=X;this.logger=new g.d3("qoe");this.J={};this.sequenceNumber=1;this.B=NaN;this.Ri="N";this.C=this.vX=this.HX=this.EM=this.Z=0;this.Od=this.Hl=this.D=this.YO="";this.Bd=this.QK=NaN;this.G2=0;this.gm=-1;this.pM=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.hX=this.isEmbargoed=this.Pl=this.isOffline=this.isBuffering=!1;this.z2=[];this.A7=null;this.o2=this.U=this.qE=this.T=!1;this.G=-1;this.fS=!1;this.tT=new g.qR(this.r7h,750,this);this.G_= +this.adCpn=this.kO=this.contentCpn="";this.adFormat=void 0;this.Pg=0;this.yK=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.Wg=new Set(["gd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.HP=!1;this.oZ=NaN;this.wy=0;this.NE=!1;this.NW=0;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.Ly=!1;this.F8={cY:function(n){V.cY(n)}, +o8c:function(){return V.X}, +Yo:function(){return V.contentCpn}, +YYy:function(){return V.kO}, +reportStats:function(){V.reportStats()}, +SYy:function(){return V.J.cat}, +T0:function(n){return V.J[n]}, +SZy:function(){return V.NW}}; +var G=g.EZ(this.provider.qW.experiments,"html5_qoe_proto_mock_length");G&&!Fa.length&&(Fa=UrD(G));g.N(this,this.tT);try{navigator.getBattery().then(function(n){V.A7=n})}catch(n){}g.E7(this,0,"vps",["N"]); +X.qW.YU()&&(this.wy=(0,g.ta)(),this.oZ=g.Z9(function(){var n=(0,g.ta)(),L=n-V.wy;L>500&&V.Oy("vmlock",{diff:L.toFixed()});V.wy=n},250)); +X.J7.KJ()&&c&&(this.NW=c-Math.round(g.$R(X)*1E3));this.provider.videoData.hf&&(this.remoteControlMode=szU[this.provider.videoData.hf]||0);this.provider.videoData.fY&&(c=KjL(this.provider.videoData.fY),c==null?0:c.length)&&(this.remoteConnectedDevices=c);if(X.qW.YU()||X.S("html5_log_cpu_info"))this.T_=new OX1,g.N(this,this.T_);c=g.EZ(X.qW.experiments,"html5_js_self_profiler_sample_interval_ms");X=g.EZ(X.qW.experiments,"html5_js_self_profiler_max_samples");c>0&&X>0&&(this.LS=new WG(c,X),g.N(this,this.LS))}; +g.E7=function(X,c,V,G){var n=X.J[V];n||(n=[],X.J[V]=n);n.push(c.toFixed(3)+":"+G.join(":"))}; +Crt=function(X,c){var V=X.adCpn||X.provider.videoData.clientPlaybackNonce,G=X.provider.getCurrentTime(V);g.E7(X,c,"cmt",[G.toFixed(3)]);G=X.provider.ws(V);if(X.X&&G*1E3>X.X.bL+100&&X.X){var n=X.X;V=n.isAd;G=G*1E3-n.bL;X.BC=c*1E3-n.sPO-G-n.B6h;n=(0,g.ta)()-G;c=X.BC;G=X.provider.videoData;var L=G.isAd();if(V||L){L=(V?"ad":"video")+"_to_"+(L?"ad":"video");var d={};G.B&&(d.cttAuthInfo={token:G.B,videoId:G.videoId});d.startTime=n-c;Kn(L,d);g.Bh({targetVideoId:G.videoId,targetCpn:G.clientPlaybackNonce}, +L);zh("pbs",n,L)}else n=X.provider.J7.X9(),n.B!==G.clientPlaybackNonce?(n.Z=G.clientPlaybackNonce,n.G=c):G.rW()||g.UQ(new g.SP("CSI timing logged before gllat",{cpn:G.clientPlaybackNonce}));X.Oy("gllat",{l:X.BC.toFixed(),prev_ad:+V});delete X.X}}; +QZ=function(X,c){c=c===void 0?NaN:c;c=c>=0?c:g.$R(X.provider);var V=X.provider.J7.mx(),G=V.wl-(X.QK||0);G>0&&g.E7(X,c,"bwm",[G,(V.T8-(X.Bd||0)).toFixed(3)]);isNaN(X.QK)&&V.wl&&X.isOffline&&X.cY(!1);X.QK=V.wl;X.Bd=V.T8;isNaN(V.bandwidthEstimate)||g.E7(X,c,"bwe",[V.bandwidthEstimate.toFixed(0)]);X.provider.qW.YU()&&Object.keys(V.J).length!==0&&X.Oy("bwinfo",V.J);if(X.provider.qW.YU()||X.provider.qW.S("html5_log_meminfo"))G=yHs(),Object.values(G).some(function(L){return L!==void 0})&&X.Oy("meminfo", +G); +if(X.provider.qW.YU()||X.provider.qW.S("html5_log_cpu_info")){var n;(G=(n=X.T_)==null?void 0:ldt(n))&&Object.values(G).some(function(L){return L!=null})&&X.Oy("cpuinfo",G)}X.LS&&X.Oy("jsprof",X.LS.flush()); +X.A7&&g.E7(X,c,"bat",[X.A7.level,X.A7.charging?"1":"0"]);n=X.provider.J7.getVisibilityState();X.gm!==n&&(g.E7(X,c,"vis",[n]),X.gm=n);Crt(X,c);(n=Drw(X.provider))&&n!==X.G2&&(g.E7(X,c,"conn",[n]),X.G2=n);SP2(X,c,V)}; +SP2=function(X,c,V){if(!isNaN(V.g7)){var G=V.g7;V.G96E3&&(new g.qR(X.reportStats,0,X)).start()}; +XGD=function(X){X.provider.videoData.z2&&ZU(X,"prefetch");X.provider.videoData.G2&&X.Oy("reload",{r:X.provider.videoData.reloadReason,ct:X.provider.videoData.G2});X.provider.videoData.yK&&ZU(X,"monitor");X.provider.videoData.isLivePlayback&&ZU(X,"live");qY&&ZU(X,"streaming");X.provider.videoData.hf&&X.Oy("ctrl",{mode:X.provider.videoData.hf},!0);if(X.provider.videoData.fY){var c=X.provider.videoData.fY.replace(/,/g,"_");X.Oy("ytp",{type:c},!0)}X.provider.videoData.hq&&(c=X.provider.videoData.hq.replace(/,/g, +"."),X.Oy("ytrexp",{ids:c},!0));var V=X.provider.videoData;c=X.provider.qW.S("enable_white_noise")||X.provider.qW.S("enable_webgl_noop");V=g.F2(V)||g.bN(V)||g.tH(V)||g.Oq(V);(c||V)&&(c=(0,g.xR)())&&(X.J.gpu=[c]);CQ(X.provider.videoData)&&g.E7(X,g.$R(X.provider),"dt",["1"]);X.provider.qW.YU()&&(c=(0,g.ta)()-X.provider.qW.bH,X.Oy("playerage",{secs:Math.pow(1.6,Math.round(Math.log(c/1E3)/Math.log(1.6))).toFixed()}));X.U=!0;X.B=g.Z9(function(){X.reportStats()},1E4)}; +V5l=function(X,c,V){var G=g.$R(X.provider);cZU(X,G,c,0,V);QZ(X,G);qPL(X)}; +cZU=function(X,c,V,G,n){var L=X.provider.qW.J.cbrver;X.provider.qW.J.cbr==="Chrome"&&/^96[.]/.test(L)&&V==="net.badstatus"&&/rc\.500/.test(n)&&GQt(X,3);X.provider.qW.S("html5_use_ump")&&/b248180278/.test(n)&&GQt(X,4);L=X.provider.getCurrentTime(X.adCpn||X.provider.videoData.clientPlaybackNonce);G=G===1?"fatal":"";V=[V,G,L.toFixed(3)];G&&(n+=";a6s."+$y());n&&V.push(nRj(n));g.E7(X,c,"error",V);X.U=!0}; +LQ1=function(X){X.G>=0||(X.provider.qW.pJ||X.provider.J7.getVisibilityState()!==3?X.G=g.$R(X.provider):X.fS=!0)}; +dDt=function(X,c,V,G){if(V!==X.Ri){c=10&&X.playTimeSecs<=180&&(X.J.qoealert=["1"],X.hX=!0)),V!=="B"||X.Ri!=="PL"&&X.Ri!=="PB"||(X.isBuffering=!0),X.Z=c);X.Ri==="PL"&&(V==="B"||V==="S")||X.provider.qW.YU()?QZ(X,c):(X.HP||V!=="PL"||(X.HP=!0,SP2(X,c,X.provider.J7.mx())),Crt(X,c));V==="PL"&&g.Xn(X.tT);var n=[V];V==="S"&&G&&n.push("ss."+G);g.E7(X,c,"vps",n);X.Ri=V; +X.EM=c;X.Z=c;X.U=!0}}; +ZU=function(X,c){var V=X.J.cat||[];V.push(c);X.J.cat=V}; +vG=function(X,c,V,G,n,L){var d=g.$R(X.provider);V!==1&&V!==3&&V!==5||g.E7(X,d,"vps",[X.Ri]);var h=X.J.xvt||[];h.push("t."+d.toFixed(3)+";m."+L.toFixed(3)+";g."+c+";tt."+V+";np.0;c."+G+";d."+n);X.J.xvt=h}; +GQt=function(X,c){if(!X.o2){var V=X.J.fcnz;V||(V=[],X.J.fcnz=V);V.push(String(c));X.o2=!0}}; +nRj=function(X){/[^a-zA-Z0-9;.!_-]/.test(X)&&(X=X.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return X}; +yZl=function(X){this.provider=X;this.D=!1;this.J=0;this.X=-1;this.KN=NaN;this.U=0;this.segments=[];this.B=this.Z=0;this.previouslyEnded=!1;this.C=this.provider.J7.getVolume();this.T=this.provider.J7.isMuted()?1:0;this.G=kR(this.provider)}; +oV=function(X){X.G.startTime=X.U;X.G.endTime=X.J;var c=!1;X.segments.length&&g.Kt(X.segments).isEmpty()?(X.segments[X.segments.length-1].previouslyEnded&&(X.G.previouslyEnded=!0),X.segments[X.segments.length-1]=X.G,c=!0):X.segments.length&&X.G.isEmpty()||(X.segments.push(X.G),c=!0);c?X.G.endTime===0&&(X.previouslyEnded=!1):X.G.previouslyEnded&&(X.previouslyEnded=!0);X.Z+=X.J-X.U;X.G=kR(X.provider);X.G.previouslyEnded=X.previouslyEnded;X.previouslyEnded=!1;X.U=X.J}; +AZw=function(X){h1O(X);X.B=g.Z9(function(){X.update()},100); +X.KN=g.$R(X.provider);X.G=kR(X.provider)}; +h1O=function(X){g.v3(X.B);X.B=NaN}; +Y7L=function(X,c,V){V-=X.KN;return c===X.J&&V>.5}; +jVS=function(X,c,V,G){this.qW=c;this.oZ=V;this.segments=[];this.experimentIds=[];this.LS=this.NE=this.isFinal=this.delayThresholdMet=this.hX=this.pM=this.autoplay=this.autonav=!1;this.Od="yt";this.B=[];this.D=this.C=null;this.sendVisitorIdHeader=this.fS=!1;this.T=this.pageId="";this.Z=V==="watchtime";this.U=V==="playback";this.kO=V==="atr";this.pJ=V==="engage";this.sendVisitorIdHeader=!1;this.uri=this.kO?"/api/stats/"+V:"//"+c.wV+"/api/stats/"+V;G&&(this.NE=G.fs,G.rtn&&(this.D=G.rtn),this.Z?(this.playerState= +G.state,G.rti>0&&(this.C=G.rti)):(this.YM=G.mos,this.jX=G.volume,G.at&&(this.adType=G.at)),G.autonav&&(this.autonav=G.autonav),G.inview!=null&&(this.Bd=G.inview),G.size&&(this.G2=G.size),G.playerwidth&&(this.playerWidth=G.playerwidth),G.playerheight&&(this.playerHeight=G.playerheight));this.Wg=g.M5(c.J);this.T=Xi(c.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.T==="all"||this.T==="once")this.HP=g.M5(c.oZ);this.vW=c.T_;this.experimentIds=tWD(c.experiments);this.YO=c.HP;this.Od=c.G_;this.region= +c.region;this.userAge=c.userAge;this.yK=c.U_;this.tT=Ox();this.sendVisitorIdHeader=c.sendVisitorIdHeader;this.NW=c.S("vss_pings_using_networkless")||c.S("kevlar_woffle");this.bH=c.S("vss_final_ping_send_and_write");this.Pl=c.S("vss_use_send_and_write");this.pageId=c.pageId;this.LJ=c.S("vss_playback_use_send_and_write");c.livingRoomAppMode&&(this.livingRoomAppMode=c.livingRoomAppMode);this.ON=c.X&&c.S("embeds_append_synth_ch_headers");g.RT(c)&&(this.Hl=c.NW);g.$3(g.IT(c))&&this.B.push(1);this.accessToken= +g.T2(X);X.nN[this.oZ]?this.X=X.nN[this.oZ]:X.nN.playback&&(this.X=X.nN.playback);this.adFormat=X.adFormat;this.adQueryId=X.adQueryId;this.autoplay=Uq(X);this.U&&(this.pM=(X.S("html5_enable_log_server_autoplay")||X.S("enable_cleanup_masthead_autoplay_hack_fix"))&&X.QB&&fQ(X)==="adunit"?!0:!1);this.autonav=X.isAutonav||this.autonav;this.contentVideoId=Iv(X);this.clientPlaybackNonce=X.clientPlaybackNonce;this.hX=X.O5;X.B&&(this.G_=X.B,this.o2=X.P5);X.mdxEnvironment&&(this.mdxEnvironment=X.mdxEnvironment); +this.J=X.LS;this.EM=X.EM;X.G&&(this.z2=X.G.itag,X.X&&X.X.itag!==this.z2&&(this.qE=X.X.itag));X.J&&$W(X.J)&&(this.offlineDownloadUserChoice="1");this.eventLabel=fQ(X);this.LS=X.vW?!1:X.pJ;this.Pg=X.mE;if(c=xB(X))this.fJ=c;this.gs=X.UI;this.partnerId=X.partnerId;this.eventId=X.eventId;this.playlistId=X.UD||X.playlistId;this.xQ=X.xQ;this.hf=X.hf;this.fY=X.fY;this.Lw=X.Lw;this.subscribed=X.subscribed;this.videoId=X.videoId;this.videoMetadata=X.videoMetadata;this.visitorData=X.visitorData;this.osid=X.osid; +this.iU=X.iU;this.referrer=X.referrer;this.UY=X.LT||X.UY;this.T_=X.ID;this.Q8=X.Q8;this.userGenderAge=X.userGenderAge;this.HL=X.HL;this.embedsRct=X.embedsRct;this.embedsRctn=X.embedsRctn;g.RT(this.qW)&&X.mutedAutoplay&&(X.mutedAutoplayDurationMode===2&&X.limitedPlaybackDurationInSeconds===0&&X.endSeconds===0?this.B.push(7):this.B.push(2));X.isEmbedsShortsMode(new g.Ez(this.playerWidth,this.playerHeight),!!this.playlistId)&&this.B.push(3);g.n9(X)&&this.B.push(4);this.QK=X.wq;X.compositeLiveIngestionOffsetToken&& +(this.compositeLiveIngestionOffsetToken=X.compositeLiveIngestionOffsetToken)}; +Hl8=function(X,c){var V=X.sendVisitorIdHeader?X.visitorData:void 0;return g.LW(X.qW,X.accessToken).then(function(G){return Id1(X.uri,X.qW,X.pageId,V,G,c,X.ON)})}; +WQS=function(X,c){return function(){X.qW.S("html5_simplify_pings")?(X.J=X.wy,X.gm=c(),X.tT=0,X.send()):Hl8(X).then(function(V){var G=aU2(X);G.cmt=G.len;G.lact="0";var n=c().toFixed(3);G.rt=Number(n).toString();G=g.KB(X.uri,G);X.qW.S("vss_through_gel_double")&&$DS(G);X.NW?(V==null&&(V={}),X.Pl?Vd().sendAndWrite(G,V):Vd().sendThenWrite(G,V)):V?g.b9(G,V):g.Bi(G)})}}; +aU2=function(X){var c={ns:X.Od,el:X.eventLabel,cpn:X.clientPlaybackNonce,ver:2,cmt:X.G(X.J),fmt:X.z2,fs:X.NE?"1":"0",rt:X.G(X.gm),adformat:X.adFormat,content_v:X.contentVideoId,euri:X.vW,lact:X.tT,live:X.fJ,cl:(735565842).toString(),mos:X.YM,state:X.playerState,volume:X.jX};X.subscribed&&(c.subscribed="1");Object.assign(c,X.Wg);X.T==="all"?Object.assign(c,X.HP):X.T==="once"&&X.U&&Object.assign(c,X.HP);X.autoplay&&(c.autoplay="1");X.pM&&(c.sautoplay="1");X.hX&&(c.dni="1");!X.Z&&X.Hl&&(c.epm=wGS[X.Hl]); +X.isFinal&&(c["final"]="1");X.LS&&(c.splay="1");X.EM&&(c.delay=X.EM);X.YO&&(c.hl=X.YO);X.region&&(c.cr=X.region);X.userGenderAge&&(c.uga=X.userGenderAge);X.userAge!==void 0&&X.yK&&(c.uga=X.yK+X.userAge);X.wy!==void 0&&(c.len=X.G(X.wy));!X.Z&&X.experimentIds.length>0&&(c.fexp=X.experimentIds.toString());X.D!==null&&(c.rtn=X.G(X.D));X.UY&&(c.feature=X.UY);X.hf&&(c.ctrl=X.hf);X.fY&&(c.ytr=X.fY);X.qE&&(c.afmt=X.qE);X.offlineDownloadUserChoice&&(c.ODUC=X.offlineDownloadUserChoice);X.Ly&&(c.lio=X.G(X.Ly)); +X.Z?(c.idpj=X.Pg,c.ldpj=X.gs,X.delayThresholdMet&&(c.dtm="1"),X.C!=null&&(c.rti=X.G(X.C)),X.HL&&(c.ald=X.HL),X.compositeLiveIngestionOffsetToken&&(c.clio=X.compositeLiveIngestionOffsetToken)):X.adType!==void 0&&(c.at=X.adType);X.G2&&(X.U||X.Z)&&(c.size=X.G2);X.U&&X.B.length&&(c.pbstyle=X.B.join(","));X.Bd!=null&&(X.U||X.Z)&&(c.inview=X.G(X.Bd));X.Z&&(c.volume=e5(X,g.Rt(X.segments,function(G){return G.volume})),c.st=e5(X,g.Rt(X.segments,function(G){return G.startTime})),c.et=e5(X,g.Rt(X.segments,function(G){return G.endTime})), +lF(X.segments,function(G){return G.playbackRate!==1})&&(c.rate=e5(X,g.Rt(X.segments,function(G){return G.playbackRate}))),lF(X.segments,function(G){return G.J!=="-"})&&(c.als=g.Rt(X.segments,function(G){return G.J}).join(",")),lF(X.segments,function(G){return G.previouslyEnded})&&(c.pe=g.Rt(X.segments,function(G){return""+ +G.previouslyEnded}).join(","))); +c.muted=e5(X,g.Rt(X.segments,function(G){return G.muted?1:0})); +lF(X.segments,function(G){return G.visibilityState!==0})&&(c.vis=e5(X,g.Rt(X.segments,function(G){return G.visibilityState}))); +lF(X.segments,function(G){return G.connectionType!==0})&&(c.conn=e5(X,g.Rt(X.segments,function(G){return G.connectionType}))); +lF(X.segments,function(G){return G.G!==0})&&(c.blo=e5(X,g.Rt(X.segments,function(G){return G.G}))); +lF(X.segments,function(G){return!!G.U})&&(c.blo=g.Rt(X.segments,function(G){return G.U}).join(",")); +lF(X.segments,function(G){return!!G.compositeLiveStatusToken})&&(c.cbs=g.Rt(X.segments,function(G){return G.compositeLiveStatusToken}).join(",")); +lF(X.segments,function(G){return G.X!=="-"})&&(c.cc=g.Rt(X.segments,function(G){return G.X}).join(",")); +lF(X.segments,function(G){return G.clipId!=="-"})&&(c.clipid=g.Rt(X.segments,function(G){return G.clipId}).join(",")); +if(lF(X.segments,function(G){return!!G.audioId})){var V="au"; +X.U&&(V="au_d");c[V]=g.Rt(X.segments,function(G){return G.audioId}).join(",")}aa()&&X.G_&&(c.ctt=X.G_,c.cttype=X.o2,c.mdx_environment=X.mdxEnvironment); +X.pJ&&(c.etype=X.A7!==void 0?X.A7:0);X.T_&&(c.uoo=X.T_);X.livingRoomAppMode&&X.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(c.clram=FQt[X.livingRoomAppMode]||X.livingRoomAppMode);X.X?ERU(X,c):(c.docid=X.videoId,c.referrer=X.referrer,c.ei=X.eventId,c.of=X.iU,c.osid=X.osid,c.vm=X.videoMetadata,X.adQueryId&&(c.aqi=X.adQueryId),X.autonav&&(c.autonav="1"),X.playlistId&&(c.list=X.playlistId),X.Lw&&(c.ssrt="1"),X.Q8&&(c.upt=X.Q8));X.U&&(X.embedsRct&&(c.rct=X.embedsRct),X.embedsRctn&&(c.rctn= +X.embedsRctn),X.compositeLiveIngestionOffsetToken&&(c.clio=X.compositeLiveIngestionOffsetToken));X.QK&&(c.host_cpn=X.QK);return c}; +ERU=function(X,c){if(c&&X.X){var V=new Set(["q","feature","mos"]),G=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),n=new Set(["aqi","autonav","list","ssrt","upt"]);X.X.ns==="3pp"&&(c.ns="3pp");for(var L=g.r(Object.keys(X.X)),d=L.next();!d.done;d=L.next())d=d.value,G.has(d)||V.has(d)||n.has(d)&&!X.X[d]||(c[d]=X.X[d])}}; +e5=function(X,c){return g.Rt(c,X.G).join(",")}; +$DS=function(X){X.indexOf("watchtime")!==-1&&g.a0("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:X}})}; +rZl=function(X,c){X.attestationResponse&&Hl8(X).then(function(V){V=V||{};V.method="POST";V.postParams={atr:X.attestationResponse};X.NW?X.Pl?Vd().sendAndWrite(c,V):Vd().sendThenWrite(c,V):g.b9(c,V)})}; +JZ=function(X){g.I.call(this);this.provider=X;this.B="paused";this.Z=NaN;this.D=[10,10,10,40];this.C=this.T=0;this.A7=this.NW=this.kO=this.G_=this.U=!1;this.G=this.X=NaN;this.J=new yZl(X)}; +vRD=function(X){if(!X.U){X.provider.videoData.Zl===16623&&g.UQ(Error("Playback for EmbedPage"));var c=mQ(X,"playback");a:{if(X.provider.qW.S("web_player_use_server_vss_schedule")){var V,G=(V=X.provider.videoData.getPlayerResponse())==null?void 0:V.playbackTracking,n=G==null?void 0:G.videostatsScheduledFlushWalltimeSeconds;G=G==null?void 0:G.videostatsDefaultFlushIntervalSeconds;if(n&&n.length>0&&G){V=[];var L=X.provider.videoData.mE,d=X.provider.videoData.UI,h=-L;n=g.r(n);for(var A=n.next();!A.done;A= +n.next())A=A.value,V.push(A-h),h=A;V.push(G+d-L);V.push(G);X.D=V;break a}}X.D=[10+X.provider.videoData.mE,10,10,40+X.provider.videoData.UI-X.provider.videoData.mE,40]}AZw(X.J);c.D=RV(X);X.G>0&&(c.J-=X.G);c.send();X.provider.videoData.PO&&(c=X.provider.qW,G=X.provider.videoData,V={html5:"1",video_id:G.videoId,cpn:G.clientPlaybackNonce,ei:G.eventId,ptk:G.PO,oid:G.qw,ptchn:G.o7,pltype:G.J5,content_v:Iv(G)},G.Yk&&Object.assign(V,{m:G.Yk}),c=g.KB(c.Wb+"ptracking",V),QVl(X,c));X.provider.videoData.EM|| +(Zls(X),xDw(X),X.W5());X.U=!0;X=X.J;X.J=X.provider.J7.ws();X.KN=g.$R(X.provider);!(X.U===0&&X.J<5)&&X.J-X.U>2&&(X.U=X.J);X.D=!0}}; +RV=function(X,c){c=c===void 0?NaN:c;var V=g.$R(X.provider);c=isNaN(c)?V:c;c=Math.ceil(c);var G=X.D[X.T];X.T+11E3;!(L.length>1)&&L[0].isEmpty()||h||(d.D=RV(X,n));d.send();X.C++}},(n-V)*1E3); +return X.X=n}; +bt=function(X){g.xP(X.Z);X.Z=NaN}; +kQD=function(X){X.J.update();X=X.J;X.segments.length&&X.J===X.U||oV(X);var c=X.segments;X.segments=[];return c}; +mQ=function(X,c){var V=e18(X.provider);Object.assign(V,{state:X.B});c=new jVS(X.provider.videoData,X.provider.qW,c,V);c.J=X.provider.J7.ws();V=X.provider.videoData.clientPlaybackNonce;c.J=X.provider.J7.vp(V);X.provider.videoData.isLivePlayback||(c.wy=X.provider.J7.getDuration(V));X.provider.videoData.J&&(V=X.provider.videoData.J.Tm(c.J))&&(c.Ly=V-c.J);c.gm=g.$R(X.provider);c.segments=[kR(X.provider)];return c}; +oRj=function(X,c){var V=mQ(X,"watchtime");JZs(X)&&(V.delayThresholdMet=!0,X.kO=!0);if(X.G>0){for(var G=g.r(c),n=G.next();!n.done;n=G.next())n=n.value,n.startTime-=X.G,n.endTime-=X.G;V.J-=X.G}else V.J=X.J.AE();V.segments=c;return V}; +tZ=function(X,c){var V=mDl(X,!isNaN(X.X));c&&(X.X=NaN);return V}; +mDl=function(X,c){var V=oRj(X,kQD(X));!isNaN(X.X)&&c&&(V.C=X.X);return V}; +JZs=function(X){var c;if(c=X.provider.videoData.isLoaded()&&X.provider.videoData.EM&&X.U&&!X.kO)c=X.J,c=c.Z+c.provider.J7.ws()-c.U>=X.provider.videoData.EM;return!!c}; +Zls=function(X){X.provider.videoData.youtubeRemarketingUrl&&!X.NW&&(QVl(X,X.provider.videoData.youtubeRemarketingUrl),X.NW=!0)}; +xDw=function(X){X.provider.videoData.googleRemarketingUrl&&!X.A7&&(QVl(X,X.provider.videoData.googleRemarketingUrl),X.A7=!0)}; +R1w=function(X){if(!X.vl()&&X.U){X.B="paused";var c=tZ(X);c.isFinal=!0;c.send();X.dispose()}}; +blw=function(X,c){if(!X.vl())if(g.B(c.state,2)||g.B(c.state,512)){if(X.B="paused",g.QP(c,2)||g.QP(c,512))g.QP(c,2)&&(X.J.previouslyEnded=!0),X.U&&(bt(X),tZ(X).send(),X.X=NaN)}else if(g.B(c.state,8)){X.B="playing";var V=X.U&&isNaN(X.Z)?RV(X):NaN;if(!isNaN(V)&&(rR(c,64)<0||rR(c,512)<0)){var G=mDl(X,!1);G.D=V;G.send()}X.provider.qW.S("html5_report_gapless_loop_to_vss")&&g.QP(c,16)&&c.state.seekSource===58&&(X.J.previouslyEnded=!0)}else X.B="paused"}; +t5L=function(X,c,V){if(!X.G_){V||(V=mQ(X,"atr"));V.attestationResponse=c;try{V.send()}catch(G){if(G.message!=="Unknown Error")throw G;}X.G_=!0}}; +QVl=function(X,c){var V=X.provider.qW;g.LW(X.provider.qW,g.T2(X.provider.videoData)).then(function(G){var n=X.provider.qW.pageId,L=X.provider.qW.sendVisitorIdHeader?X.provider.videoData.visitorData:void 0,d=X.provider.qW.S("vss_pings_using_networkless")||X.provider.qW.S("kevlar_woffle"),h=X.provider.qW.S("allow_skip_networkless");G=Id1(c,V,n,L,G);Nll(c,G,{token:X.provider.videoData.B,E$:X.provider.videoData.P5,mdxEnvironment:X.provider.videoData.mdxEnvironment},V,void 0,d&&!h,!1,!0)})}; +Ol2=function(){this.endTime=this.startTime=-1;this.X="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.G=0;this.compositeLiveStatusToken=this.U=void 0;this.volume=this.connectionType=0;this.muted=!1;this.J=this.clipId="-";this.previouslyEnded=!1}; +O7=function(X,c,V){this.videoData=X;this.qW=c;this.J7=V;this.J=void 0}; +g.$R=function(X){return lUs(X)()}; +lUs=function(X){if(!X.J){var c=g.Xr(function(G){var n=(0,g.ta)();G&&n<=631152E6&&(X.J7.Oy("ytnerror",{issue:28799967,value:""+n}),n=(new Date).getTime()+2);return n},X.qW.S("html5_validate_yt_now")),V=c(); +X.J=function(){return Math.round(c()-V)/1E3}; +X.J7.D9()}return X.J}; +e18=function(X){var c=X.J7.Iz()||{};c.fs=X.J7.fN();c.volume=X.J7.getVolume();c.muted=X.J7.isMuted()?1:0;c.mos=c.muted;c.clipid=X.J7.ZW();var V;c.playerheight=((V=X.J7.getPlayerSize())==null?void 0:V.height)||0;var G;c.playerwidth=((G=X.J7.getPlayerSize())==null?void 0:G.width)||0;X=X.videoData;V={};X.G&&(V.fmt=X.G.itag,X.X&&(X.pM?X.X.itag!==X.G.itag:X.X.itag!=X.G.itag)&&(V.afmt=X.X.itag));V.ei=X.eventId;V.list=X.playlistId;V.cpn=X.clientPlaybackNonce;X.videoId&&(V.v=X.videoId);X.Og&&(V.infringe=1); +(X.vW?0:X.pJ)&&(V.splay=1);(G=xB(X))&&(V.live=G);X.QB&&(V.sautoplay=1);X.Tx&&(V.autoplay=1);X.xQ&&(V.sdetail=X.xQ);X.partnerId&&(V.partnerid=X.partnerId);X.osid&&(V.osid=X.osid);X.Lt&&(V.cc=g.NEs(X.Lt));return Object.assign(c,V)}; +Drw=function(X){var c=Qul();if(c)return M5L[c]||M5L.other;if(g.OZ(X.qW)){X=navigator.userAgent;if(/[Ww]ireless[)]/.test(X))return 3;if(/[Ww]ired[)]/.test(X))return 30}return 0}; +kR=function(X){var c=new Ol2,V;c.X=((V=e18(X).cc)==null?void 0:V.toString())||"-";c.playbackRate=X.J7.getPlaybackRate();V=X.J7.getVisibilityState();V!==0&&(c.visibilityState=V);X.qW.o2&&(c.G=1);c.U=X.videoData.A2;c.compositeLiveStatusToken=X.videoData.compositeLiveStatusToken;V=X.J7.getAudioTrack();V.zF&&V.zF.id&&V.zF.id!=="und"&&(c.audioId=V.zF.id);c.connectionType=Drw(X);c.volume=X.J7.getVolume();c.muted=X.J7.isMuted();c.clipId=X.J7.ZW()||"-";c.J=X.videoData.IU||"-";return c}; +g.lt=function(X,c){g.I.call(this);var V=this;this.provider=X;this.X=!1;this.U=new Map;this.Ri=new g.y_;this.F8={FmS:function(){return V.qoe}, +ZOR:function(){return V.J}, +MBy:function(){return V.G}}; +this.provider.videoData.d$()&&!this.provider.videoData.xo&&(this.J=new JZ(this.provider),this.J.G=this.provider.videoData.Pg/1E3,g.N(this,this.J),this.qoe=new g.rK(this.provider,c),g.N(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.Ke=this.provider.videoData.clientPlaybackNonce)&&this.U.set(this.Ke,this.J));if(X.qW.playerCanaryState==="canary"||X.qW.playerCanaryState==="holdback")this.G=new aV(this.provider),g.N(this,this.G)}; +gRt=function(X){return!!X.J&&!!X.qoe}; +MD=function(X){X.G&&mrl(X.G);X.qoe&&LQ1(X.qoe)}; +fUt=function(X){if(X.qoe){X=X.qoe;for(var c=X.provider.videoData,V=X.provider.qW,G=g.r(V.cz),n=G.next();!n.done;n=G.next())ZU(X,n.value);if(X.provider.S("html5_enable_qoe_cat_list"))for(G=g.r(c.CN),n=G.next();!n.done;n=G.next())ZU(X,n.value);else c.cz&&ZU(X,X.provider.videoData.cz);c.ZQ()&&(G=c.J,av(c)&&ZU(X,"manifestless"),G&&vy(G)&&ZU(X,"live-segment-"+vy(G).toFixed(1)));yu(c)?ZU(X,"sabr"):X.zd(wk(c));if(uN(c)||c.JT())c.JT()&&ZU(X,"ssa"),ZU(X,"lifa");c.gatewayExperimentGroup&&(G=c.gatewayExperimentGroup, +G==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?G="spkadtrt":G==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(G="spkadctrl"),ZU(X,G));V.G_!=="yt"&&(X.J.len=[c.lengthSeconds.toFixed(2)]);c.cotn&&!CQ(c)&&X.cY(!0);V.YU()&&(c=KvO())&&X.Oy("cblt",{m:c});if(V.S("html5_log_screen_diagonal")){V=X.Oy;var L;c=((L=window.H5vccScreen)==null?0:L.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;V.call(X,"cbltdiag",{v:c})}}}; +pGS=function(X){if(X.provider.J7.KJ()){if(X.X)return;X.X=!0}X.J&&vRD(X.J);if(X.G){X=X.G;var c=g.$R(X.provider);X.J<0&&(X.J=c,X.delay.start());X.G=c;X.X=c}}; +IUD=function(X,c){X.J&&(X=X.J,c===58?X.J.update():X.U&&(bt(X),tZ(X).send(),X.X=NaN))}; +NKO=function(X,c){if(g.QP(c,1024)||g.QP(c,512)||g.QP(c,4)){if(X.G){var V=X.G;V.G>=0||(V.J=-1,V.delay.stop())}X.qoe&&(V=X.qoe,V.T||(V.G=-1))}if(X.provider.videoData.enableServerStitchedDai&&X.Ke){var G;(G=X.U.get(X.Ke))==null||blw(G,c)}else X.J&&blw(X.J,c);if(X.qoe){G=X.qoe;V=c.state;var n=g.$R(G.provider),L=G.getPlayerState(V);dDt(G,n,L,V.seekSource||void 0);L=V.oP;g.B(V,128)&&L&&(L.vY=L.vY||"",cZU(G,n,L.errorCode,L.gL,L.vY));(g.B(V,2)||g.B(V,128))&&G.reportStats(n);V.isPlaying()&&!G.T&&(G.G>=0&& +(G.J.user_intent=[G.G.toString()]),G.T=!0);qPL(G)}X.G&&(G=X.G,R9j(G),G.playerState=c.state,G.G>=0&&g.QP(c,16)&&G.seekCount++,c.state.isError()&&G.send());X.provider.J7.KJ()&&(X.Ri=c.state)}; +UD1=function(X){X.G&&X.G.send();if(X.qoe){var c=X.qoe;if(c.U){c.Ri==="PL"&&(c.Ri="N");var V=g.$R(c.provider);g.E7(c,V,"vps",[c.Ri]);c.T||(c.G>=0&&(c.J.user_intent=[c.G.toString()]),c.T=!0);c.provider.qW.YU()&&c.Oy("finalized",{});c.Pl=!0;c.reportStats(V)}}if(X.provider.videoData.enableServerStitchedDai)for(c=g.r(X.U.values()),V=c.next();!V.done;V=c.next())R1w(V.value);else X.J&&R1w(X.J);X.dispose()}; +TKD=function(X,c){X.J&&t5L(X.J,c)}; +uaD=function(X){if(!X.J)return null;var c=mQ(X.J,"atr");return function(V){X.J&&t5L(X.J,V,c)}}; +PtU=function(X,c,V,G){V.adFormat=V.Od;var n=c.J7;c=new JZ(new O7(V,c.qW,{getDuration:function(){return V.lengthSeconds}, +getCurrentTime:function(){return n.getCurrentTime()}, +ws:function(){return n.ws()}, +vp:function(){return n.vp()}, +KJ:function(){return n.KJ()}, +mx:function(){return n.mx()}, +getPlayerSize:function(){return n.getPlayerSize()}, +getAudioTrack:function(){return V.getAudioTrack()}, +getPlaybackRate:function(){return n.getPlaybackRate()}, +w8:function(){return n.w8()}, +getVisibilityState:function(){return n.getVisibilityState()}, +X9:function(){return n.X9()}, +Iz:function(){return n.Iz()}, +getVolume:function(){return n.getVolume()}, +isMuted:function(){return n.isMuted()}, +fN:function(){return n.fN()}, +ZW:function(){return n.ZW()}, +getProximaLatencyPreference:function(){return n.getProximaLatencyPreference()}, +D9:function(){n.D9()}, +Oy:function(L,d){n.Oy(L,d)}, +TG:function(){return n.TG()}})); +c.G=G;g.N(X,c);return c}; +z1j=function(){this.g7=0;this.U=this.T8=this.wl=this.G=NaN;this.J={};this.bandwidthEstimate=NaN}; +gK=function(X,c,V){g.I.call(this);var G=this;this.qW=X;this.J7=c;this.G=V;this.J=new Map;this.Ke="";this.F8={VR:function(){return Array.from(G.J.keys())}}}; +BK8=function(X,c){X.J.has(c)&&(UD1(X.J.get(c)),X.J.delete(c))}; +KQ1=function(){this.J=g.Ya;this.array=[]}; +Ctl=function(X,c,V){var G=[];for(c=sVw(X,c);cV)break}return G}; +DDw=function(X,c){var V=[];X=g.r(X.array);for(var G=X.next();!G.done&&!(G=G.value,G.contains(c)&&V.push(G),G.start>c);G=X.next());return V}; +S7l=function(X){return X.array.slice(sVw(X,0x7ffffffffffff),X.array.length)}; +sVw=function(X,c){X=AE(X.array,function(V){return c-V.start||1}); +return X<0?-(X+1):X}; +ils=function(X,c){var V=NaN;X=g.r(X.array);for(var G=X.next();!G.done;G=X.next())if(G=G.value,G.contains(c)&&(isNaN(V)||G.endc&&(isNaN(V)||G.startX.mediaTime+X.Z&&c1)X.X=!0;if((n===void 0?0:n)||isNaN(X.G))X.G=c;if(X.J)c!==X.mediaTime&&(X.J=!1);else if(c>0&&X.mediaTime===c){n=1500;if(X.qW.S("html5_buffer_underrun_transition_fix")){n=g.EZ(X.qW.experiments,"html5_min_playback_advance_for_steady_state_secs");var L=g.EZ(X.qW.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");n=n>0&&L>0&&Math.abs(c-X.G)(G||!X.X?n:400)}X.mediaTime=c;X.U=V;return!1}; +n4j=function(X,c){this.videoData=X;this.J=c}; +LbD=function(X,c,V){return c.Q$(V).then(function(){return p1(new n4j(c,c.U))},function(G){G instanceof Error&&g.UQ(G); +var n=gp('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),L=pp('audio/mp4; codecs="mp4a.40.2"'),d=n||L,h=c.isLivePlayback&&!g.GD(X.Z,!0);G="fmt.noneavailable";h?G="html5.unsupportedlive":d||(G="html5.missingapi");d=h||!d?2:1;n={buildRej:"1",a:c.wF(),d:!!c.gm,drm:c.PE(),f18:c.jL.indexOf("itag=18")>=0,c18:n};c.J&&(c.PE()?(n.f142=!!c.J.J["142"],n.f149=!!c.J.J["149"],n.f279=!!c.J.J["279"]):(n.f133=!!c.J.J["133"],n.f140=!!c.J.J["140"],n.f242=!!c.J.J["242"]),n.cAAC=L,n.cAVC=pp('video/mp4; codecs="avc1.42001E"'), +n.cVP9=pp('video/webm; codecs="vp9"'));c.Z&&(n.drmsys=c.Z.keySystem,L=0,c.Z.J&&(L=Object.keys(c.Z.J).length),n.drmst=L);return new tm(G,n,d)})}; +IV=function(X){this.data=window.Float32Array?new Float32Array(X):Array(X);this.G=this.J=X-1}; +deO=function(X){return X.data[X.J]||0}; +y_s=function(X){this.Z=X;this.U=this.G=0;this.X=new IV(50)}; +U7=function(X,c,V){g.$T.call(this);this.videoData=X;this.experiments=c;this.Z=V;this.G=[];this.Ch=0;this.U=!0;this.X=!1;this.B=0;V=new hIO;X.latencyClass==="ULTRALOW"&&(V.X=!1);X.yK?V.G=3:g.mJ(X)&&(V.G=2);X.latencyClass==="NORMAL"&&(V.B=!0);var G=g.EZ(c,"html5_liveness_drift_proxima_override");if(wk(X)!==0&&G){V.J=G;var n;((n=X.J)==null?0:Nq8(n))&&V.J--}yu(X)&&c.lc("html5_sabr_parse_live_metadata_playback_boundaries")&&(V.C=!0);if(g.K1("trident/")||g.K1("edge/"))n=g.EZ(c,"html5_platform_minimum_readahead_seconds")|| +3,V.U=Math.max(V.U,n);g.EZ(c,"html5_minimum_readahead_seconds")&&(V.U=g.EZ(c,"html5_minimum_readahead_seconds"));g.EZ(c,"html5_maximum_readahead_seconds")&&(V.T=g.EZ(c,"html5_maximum_readahead_seconds"));c.lc("html5_force_adaptive_readahead")&&(V.X=!0);if(n=g.EZ(c,"html5_liveness_drift_chunk_override"))V.J=n;$B(X)&&(V.J=(V.J+1)/5,X.latencyClass==="LOW"&&(V.J*=2));if(X.latencyClass==="ULTRALOW"||X.latencyClass==="LOW")V.Z=g.EZ(c,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,V.D=g.EZ(c, +"html5_low_latency_max_allowable_liveness_drift_chunks")||10;this.policy=V;this.D=this.policy.G!==1;this.J=ND(this,A_s(this,isNaN(X.liveChunkReadahead)?3:X.liveChunkReadahead,X))}; +Yjw=function(X,c){if(c)return c=X.videoData,c=A_s(X,isNaN(c.liveChunkReadahead)?3:c.liveChunkReadahead,c),ND(X,c);if(X.G.length){if(Math.min.apply(null,X.G)>1)return ND(X,X.J-1);if(X.policy.X)return ND(X,X.J+1)}return X.J}; +jiD=function(X,c){if(!X.G.length)return!1;var V=X.J;X.J=Yjw(X,c===void 0?!1:c);if(c=V!==X.J)X.G=[],X.Ch=0;return c}; +TQ=function(X,c){return c>=X.vc()-HiD(X)}; +aDD=function(X,c,V){c=TQ(X,c);V||c?c&&(X.U=!0):X.U=!1;X.D=X.policy.G===2||X.policy.G===3&&X.U}; +$eD=function(X,c){c=TQ(X,c);X.X!==c&&X.publish("livestatusshift",c);X.X=c}; +HiD=function(X){var c=X.policy.J;X.X||(c=Math.max(c-1,0));return c*ut(X)}; +A_s=function(X,c,V){V.yK&&c--;$B(V)&&(c=1);if(wk(V)!==0&&(X=g.EZ(X.experiments,"html5_live_chunk_readahead_proxima_override"))){c=X;var G;((G=V.J)==null?0:Nq8(G))&&c++}return c}; +ut=function(X){return X.videoData.J?vy(X.videoData.J)||5:5}; +ND=function(X,c){c=Math.max(Math.max(1,Math.ceil(X.policy.U/ut(X))),c);return Math.min(Math.min(8,Math.floor(X.policy.T/ut(X))),c)}; +hIO=function(){this.U=0;this.T=Infinity;this.X=!0;this.J=2;this.G=1;this.B=!1;this.D=10;this.C=!1;this.Z=1}; +BG=function(X){g.I.call(this);this.J7=X;this.J=0;this.G=null;this.B=this.X=0;this.U={};this.qW=this.J7.j();this.Z=new g.qR(this.Dg,1E3,this);this.qE=new PG({delayMs:g.EZ(this.qW.experiments,"html5_seek_timeout_delay_ms")});this.Pl=new PG({delayMs:g.EZ(this.qW.experiments,"html5_long_rebuffer_threshold_ms")});this.o2=zQ(this,"html5_seek_set_cmt");this.YO=zQ(this,"html5_seek_jiggle_cmt");this.fS=zQ(this,"html5_seek_new_elem");this.Ly=zQ(this,"html5_unreported_seek_reseek");this.kO=zQ(this,"html5_long_rebuffer_jiggle_cmt"); +this.wy=zQ(this,"html5_long_rebuffer_ssap_clip_not_match");this.NW=new PG({delayMs:2E4});this.LS=zQ(this,"html5_seek_new_elem_shorts");this.yK=zQ(this,"html5_seek_new_media_source_shorts_reuse");this.T_=zQ(this,"html5_seek_new_media_element_shorts_reuse");this.QK=zQ(this,"html5_reseek_after_time_jump");this.T=zQ(this,"html5_gapless_handoff_close_end_long_rebuffer");this.G_=zQ(this,"html5_gapless_slow_seek");this.C=zQ(this,"html5_gapless_slice_append_stuck");this.A7=zQ(this,"html5_gapless_slow_start"); +this.D=zQ(this,"html5_ads_preroll_lock_timeout");this.EM=zQ(this,"html5_ssap_ad_longrebuffer_new_element");this.hX=new PG({delayMs:g.EZ(this.qW.experiments,"html5_skip_slow_ad_delay_ms")||5E3,P7:!this.qW.S("html5_report_slow_ads_as_error")});this.HP=new PG({delayMs:g.EZ(this.qW.experiments,"html5_skip_slow_ad_delay_ms")||5E3,P7:!this.qW.S("html5_skip_slow_buffering_ad")});this.NE=new PG({delayMs:g.EZ(this.qW.experiments,"html5_slow_start_timeout_delay_ms")});this.Hl=zQ(this,"html5_slow_start_no_media_source"); +g.N(this,this.Z)}; +zQ=function(X,c){var V=g.EZ(X.qW.experiments,c+"_delay_ms");X=X.qW.S(c+"_cfl");return new PG({delayMs:V,P7:X})}; +Wb2=function(X,c){X.J=c}; +Kl=function(X,c,V,G,n,L,d,h){c.test(V)?(X.Mi(n,c,d),c.P7||L()):(c.pI&&c.G&&!c.X?(V=(0,g.ta)(),G?c.J||(c.J=V):c.J=0,L=!G&&V-c.G>c.pI,V=c.J&&V-c.J>c.Bh||L?c.X=!0:!1):V=!1,V&&(h=Object.assign({},X.J1(c),h),h.wn=d,h.we=n,h.wsuc=G,X.J7.Oy("workaroundReport",h),G&&(c.reset(),X.U[n]=!1)))}; +PG=function(X){var c=X===void 0?{}:X;X=c.delayMs===void 0?0:c.delayMs;var V=c.Bh===void 0?1E3:c.Bh;var G=c.pI===void 0?3E4:c.pI;c=c.P7===void 0?!1:c.P7;this.J=this.G=this.U=this.startTimestamp=0;this.X=!1;this.Z=Math.ceil(X/1E3);this.Bh=V;this.pI=G;this.P7=c}; +r_l=function(X){g.I.call(this);var c=this;this.J7=X;this.D=this.J=this.h7=this.mediaElement=this.playbackData=null;this.X=0;this.Z=this.G_=this.U=null;this.A7=!1;this.hX=0;this.C=!1;this.timestampOffset=0;this.T=!0;this.YO=0;this.fS=this.NE=!1;this.B=0;this.yK=!1;this.kO=0;this.qW=this.J7.j();this.videoData=this.J7.getVideoData();this.policy=new wPS;this.NW=new BG(this.J7);this.qE=this.QK=this.Hl=this.G=NaN;this.wy=new g.qR(function(){Fbt(c,!1)},2E3); +this.HP=new g.qR(function(){s7(c)}); +this.LS=new g.qR(function(){c.A7=!0;E4t(c,{})}); +this.o2=NaN;this.Pl=new g.qR(function(){var V=c.qW.vW;V.J+=1E4/36E5;V.J-V.U>1/6&&(igj(V),V.U=V.J);c.Pl.start()},1E4); +g.N(this,this.NW);g.N(this,this.wy);g.N(this,this.LS);g.N(this,this.HP);g.N(this,this.Pl)}; +xes=function(X,c){X.playbackData=c;X.videoData.isLivePlayback&&(X.D=new y_s(function(){a:{if(X.playbackData&&X.playbackData.J.J){if(av(X.videoData)&&X.h7){var V=X.h7.WU.JP()||0;break a}if(X.videoData.J){V=X.videoData.J.NW;break a}}V=0}return V}),X.J=new U7(X.videoData,X.qW.experiments,function(){return X.SQ(!0)})); +Cl(X.J7)?(c=Qi1(X),c.T1?(X.S("html5_sabr_enable_utc_seek_requests")&&yu(X.videoData)&&X.Jl(c.T1,c.startSeconds),X.X=c.startSeconds):c.startSeconds>0&&X.seekTo(c.startSeconds,{Z3:"seektimeline_startPlayback",seekSource:15}),X.T=!1):ZiO(X)||(X.X=X.X||(g.CW(X.videoData)?0:X.videoData.startSeconds)||0)}; +k5w=function(X,c){(X.h7=c)?v4O(X,!0):DU(X)}; +o4U=function(X,c){g.Xn(X.NW.Z);X.S("html5_exponential_memory_for_sticky")&&(c.state.isPlaying()?g.Xn(X.Pl):X.Pl.stop());if(X.mediaElement)if(c.oldState.state===8&&$N(c.state)&&c.state.isBuffering()){c=X.mediaElement.getCurrentTime();var V=X.mediaElement.q$();var G=X.S("manifestless_post_live_ufph")||X.S("manifestless_post_live")?HZ(V,Math.max(c-3.5,0)):HZ(V,c-3.5);G>=0&&c>V.end(G)-1.1&&G+10?(S5(X.J7,X.getCurrentTime()+X.videoData.limitedPlaybackDurationInSeconds),X.fS=!0):X.videoData.isLivePlayback&&X.videoData.endSeconds>0&&(S5(X.J7,X.getCurrentTime()+X.videoData.endSeconds),X.fS=!0))}; +J_1=function(X,c){var V=X.getCurrentTime(),G=X.isAtLiveHead(V);if(X.D&&G){var n=X.D;if(n.J&&!(V>=n.G&&V50&&n.G.shift())),n=X.J,aDD(n,V,c===void 0?!0:c),$eD(n,V),c&&Fbt(X,!0));G!==X.NE&&(c=X.getCurrentTime()-X.qE<=500,V=X.hX>=1E3,c||V||(c=X.J7.bB(),c.qoe&&(c=c.qoe,V=g.$R(c.provider), +g.E7(c,V,"lh",[G?"1":"0"])),X.NE=G,X.hX++,X.qE=X.getCurrentTime()))}; +Fbt=function(X,c){if(X.J){var V=X.J;var G=X.getCurrentTime();!TQ(V,G)&&V.le()?(V.policy.B&&(V.policy.J=Math.max(V.policy.J+V.policy.Z,V.policy.D)),V=Infinity):V=G0&&GC(X.mediaElement)>0&&(X.G=it(X,X.G,!1)),!X.mediaElement||!OiO(X))X.HP.start(750);else if(!isNaN(X.G)&&isFinite(X.G)){var c=X.QK-(X.G-X.timestampOffset);if(!(c===0||X.S("html5_enable_new_seek_timeline_logic")&&Math.abs(c)<.005))if(c=X.mediaElement.getCurrentTime()-X.G,Math.abs(c)<=X.YO||X.S("html5_enable_new_seek_timeline_logic")&&Math.abs(c)<.005)X.U&&X.U.resolve(X.mediaElement.getCurrentTime()); +else{if(X.videoData.jl)X.videoData.jl=!1;else if(!HJ(X.videoData)&&X.G>=X.SQ()-.1){X.G=X.SQ();X.U.resolve(X.SQ());X.J7.ZP();return}try{var V=X.G-X.timestampOffset;X.mediaElement.seekTo(V);X.NW.J=V;X.QK=V;X.X=X.G;X.S("html5_enable_new_seek_timeline_logic")&&(X.C=!1)}catch(G){}}}}; +OiO=function(X){if(!X.mediaElement||X.mediaElement.ag()===0||X.mediaElement.hasError())return!1;var c=X.mediaElement.getCurrentTime()>0;if(!(X.videoData.U&&X.videoData.U.J||X.videoData.isLivePlayback)&&X.videoData.PE())return c;if(X.G>=0){var V=X.mediaElement.TT();if(V.length||!c)return aQ(V,X.G-X.timestampOffset)}return c}; +t2l=function(X,c){X.Z&&(X.Z.resolve(c),X.J7.r4(),X.qW.YU()&&(c=X.J1(),c["native"]=""+ +X.C,c.otgt=""+(X.G+X.timestampOffset),X.J7.Oy("seekEnd",c)));DU(X)}; +DU=function(X){X.G=NaN;X.QK=NaN;X.U=null;X.G_=null;X.Z=null;X.A7=!1;X.C=!1;X.YO=0;X.wy.stop();X.LS.stop()}; +g4l=function(X,c,V){var G=X.mediaElement,n=c.type;switch(n){case "seeking":var L=G.getCurrentTime()+X.timestampOffset;if(!X.U||X.C&&L!==X.G){var d=!!X.U;X.U=new cS;X.S("html5_enable_new_seek_timeline_logic")&&X.U.then(function(A){t2l(X,A)},function(){DU(X)}); +if(X.videoData.isAd()){var h;hql({adCpn:X.videoData.clientPlaybackNonce,contentCpn:(h=X.videoData.wq)!=null?h:""},c.J)}X.QK=L;Wb2(X.NW,G.getCurrentTime());X.seekTo(L,{seekSource:104,Z3:"seektimeline_mediaElementEvent"});V&&lDO(V,L*1E3,!!d);X.C=!0}break;case "seeked":X.U&&X.U.resolve(X.mediaElement.getCurrentTime());break;case "loadedmetadata":Cl(X.J7)||M2U(X);s7(X);break;case "progress":s7(X);break;case "pause":X.B=X.getCurrentTime()}X.B&&((n==="play"||n==="playing"||n==="timeupdate"||n==="progress")&& +X.getCurrentTime()-X.B>10&&(X.S("html5_enable_new_media_element_puase_jump")?(X.J7.Mi(new tm("qoe.restart",{reason:"pauseJump"})),X.J7.cD(),X.seekTo(X.B,{Z3:"pauseJumpNewElement"})):X.seekTo(X.B,{Z3:"pauseJump"})),n!=="pause"&&n!=="play"&&n!=="playing"&&n!=="progress"&&(X.B=0))}; +fDD=function(X){return(Rv(X.videoData)||!!X.videoData.liveUtcStartSeconds)&&(!!X.videoData.liveUtcStartSeconds||ZiO(X))&&!!X.videoData.J}; +ZiO=function(X){return!!X.videoData.startSeconds&&isFinite(X.videoData.startSeconds)&&X.videoData.startSeconds>1E9}; +Qi1=function(X){var c=0,V=NaN,G="";if(!X.T)return{startSeconds:c,T1:V,source:G};X.videoData.wy?c=X.videoData.Hl:HJ(X.videoData)&&(c=Infinity);if(g.mJ(X.videoData))return{startSeconds:c,T1:V,source:G};X.videoData.startSeconds?(G="ss",c=X.videoData.startSeconds):X.videoData.ON&&(G="stss",c=X.videoData.ON);X.videoData.liveUtcStartSeconds&&(V=X.videoData.liveUtcStartSeconds);if(isFinite(c)&&(c>X.SQ()||cX.SQ()||V0?(G.onesie="0",X.handleError(new tm("html5.missingapi",G)),!1):!0}; +BeU=function(X){var c=Ix();N$(c,X);return g.Yy(c,QXU())}; +ue8=function(X,c){var V,G,n,L,d,h,A,Y,H,a,W,w,F,Z,v,e,m,t,f,U,C,K,nj,yl,Xl,u;return g.O(function(q){if(q.J==1)return c.fetchType="onesie",V=RXs(c,X.getPlayerSize(),X.getVisibilityState()),G=new TY(X,V),g.b(q,G.fetch(),2);n=q.G;L={player_response:n};c.loading=!1;d=X.Ed.VV;if(G.u_){h=g.r(G.u_.entries());for(A=h.next();!A.done;A=h.next())Y=A.value,H=g.r(Y),a=H.next().value,W=H.next().value,w=a,F=W,d.J.set(w,F,180),w===c.videoId&&(Z=F.Ra(),c.bU=Z);d.D6=G}v=g.r(G.CX.entries());for(e=v.next();!e.done;e= +v.next())m=e.value,t=g.r(m),f=t.next().value,U=t.next().value,C=f,K=U,d.G.set(C,K,180);g.sf(c,L,!0);if(c.loading||Bp(c))return q.return(Promise.resolve());d.J.removeAll();d.G.removeAll();c.bU=[];nj={};yl="onesie.response";Xl=0;c.errorCode?(yl="auth",nj.ec=c.errorCode,nj.ed=c.errorDetail,nj.es=c.nj||"",Xl=2):(nj.successButUnplayable="1",nj.disposed=""+ +c.vl(),nj.afmts=""+ +/adaptiveFormats/.test(n),nj.cpn=c.clientPlaybackNonce);u=new tm(yl,nj,Xl);return q.return(Promise.reject(u))})}; +Uel=function(X,c){var V,G,n,L,d,h,A,Y,H,a,W;return g.O(function(w){switch(w.J){case 1:V=c.isAd(),G=!V,n=V?1:3,L=0;case 2:if(!(L0)){w.Wl(5);break}return g.b(w,m2(5E3),6);case 6:d=new g.SP("Retrying OnePlatform request",{attempt:L}),g.UQ(d);case 5:return g.x1(w,7),g.b(w,KbD(X,c),9);case 9:return w.return();case 7:h=g.o8(w);A=lo(h);Y=A.errorCode;H=X.j();a=H.S("html5_use_network_error_code_enums")?401:"401";G&&Y==="manifest.net.badstatus"&&A.details.rc===a&&(G=!1,L===n-1&&(n+= +1));if(L===n-1)return W=sis(V,A.details),W.details.backend="op",W.details.originec=Y,w.return(Promise.reject(W));if(Y==="auth"||Y==="manifest.net.retryexhausted")return w.return(Promise.reject(A));X.handleError(A);if(O3(A.severity)){w.Wl(4);break}case 3:L++;w.Wl(2);break;case 4:return w.return(Promise.reject(sis(V,{backend:"op"})))}})}; +KbD=function(X,c){function V(yl){yl.readyState===2&&X.aL("ps_c")} +var G,n,L,d,h,A,Y,H,a,W,w,F,Z,v,e,m,t,f,U,C,K,nj;return g.O(function(yl){switch(yl.J){case 1:c.fetchType="gp";G=X.j();n=g.LW(G,g.T2(c));if(!n.J){L=n.getValue();yl.Wl(2);break}return g.b(yl,n.J,3);case 3:L=yl.G;case 2:return d=L,h=BeU(d),A=RXs(c,X.getPlayerSize(),X.getVisibilityState()),Y=g.Ln(CeD),H=g.T2(c),a=(0,g.ta)(),W=!1,w="empty",F=0,X.aL("psns"),Z={Or:V},g.b(yl,g.X4(h,A,Y,void 0,Z),4);case 4:v=yl.G;X.aL("psnr");if(c.vl())return yl.return();v?"error"in v&&v.error?(W=!0,w="esf:"+v.error.message, +F=v.error.code):v.errorMetadata&&(W=!0,w="its",F=v.errorMetadata.status):W=!0;if(W)return e=0,m=((0,g.ta)()-a).toFixed(),t={},t=G.S("html5_use_network_error_code_enums")?{backend:"op",rc:F,rt:m,reason:w,has_kpt:c.HP?"1":"0",has_mdx_env:c.mdxEnvironment?"1":"0",has_omit_key_flag:g.qK("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:G.pageId?"1":"0",has_token:H?"1":"0",has_vvt:c.A7?"1":"0",is_mdx:c.isMdxPlayback?"1":"0",mdx_ctrl:c.hf||"",token_eq:H===g.T2(c)?"1":"0"}:{backend:"op", +rc:""+F,rt:m,reason:w,has_kpt:c.HP?"1":"0",has_mdx_env:c.mdxEnvironment?"1":"0",has_omit_key_flag:g.qK("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:G.pageId?"1":"0",has_token:H?"1":"0",has_vvt:c.A7?"1":"0",is_mdx:c.isMdxPlayback?"1":"0",mdx_ctrl:c.hf||"",token_eq:H===g.T2(c)?"1":"0"},f="manifest.net.connect",F===429?(f="auth",e=2):F>200&&(f="manifest.net.badstatus",F===400&&(e=2)),yl.return(Promise.reject(new tm(f,t,e)));c.loading=!1;g.sf(c,{raw_player_response:v},!0); +U=v;g.g0(c.j())&&U&&U.trackingParams&&th(U.trackingParams);if(c.errorCode)return C={ec:c.errorCode,ed:c.errorDetail,es:c.nj||""},yl.return(Promise.reject(new tm("auth",C,2)));if(!c.loading&&!Bp(c))return K=c.isAd()?"auth":"manifest.net.retryexhausted",nj=c.isAd()?2:1,yl.return(Promise.reject(new tm(K,{successButUnplayable:"1",hasMedia:g.kB(c)?"1":"0"},nj)));g.ZS(yl)}})}; +Ne1=function(X,c,V){function G(F){F=lo(F);if(O3(F.severity))return Promise.reject(F);X.handleError(F);return!1} +function n(){return!0} +var L,d,h,A,Y,H,a,W,w;return g.O(function(F){switch(F.J){case 1:var Z=X.j(),v=X.getPlayerSize(),e=X.getVisibilityState();X.isFullscreen();var m=window.location.search;if(c.partnerId===38&&Z.playerStyle==="books")m=c.videoId.indexOf(":"),m=g.KB("//play.google.com/books/volumes/"+c.videoId.slice(0,m)+"/content/media",{aid:c.videoId.slice(m+1),sig:c.L5});else if(c.partnerId===30&&Z.playerStyle==="docs")m=g.KB("https://docs.google.com/get_video_info",{docid:c.videoId,authuser:c.Dm2,authkey:c.Ya,eurl:Z.T_}); +else if(c.partnerId===33&&Z.playerStyle==="google-live")m=g.KB("//google-liveplayer.appspot.com/get_video_info",{key:c.videoId});else{Z.G_!=="yt"&&g.Ni(Error("getVideoInfoUrl for invalid namespace: "+Z.G_));var t={html5:"1",video_id:c.videoId,cpn:c.clientPlaybackNonce,eurl:Z.T_,ps:Z.playerStyle,el:fQ(c),hl:Z.HP,list:c.playlistId,agcid:c.PA,aqi:c.adQueryId,sts:20158,lact:Ox()};Object.assign(t,Z.J);Z.forcedExperiments&&(t.forced_experiments=Z.forcedExperiments);c.A7?(t.vvt=c.A7,c.mdxEnvironment&&(t.mdx_environment= +c.mdxEnvironment)):g.T2(c)&&(t.access_token=g.T2(c));c.adFormat&&(t.adformat=c.adFormat);c.slotPosition>=0&&(t.slot_pos=c.slotPosition);c.breakType&&(t.break_type=c.breakType);c.NP!==null&&(t.ad_id=c.NP);c.mI!==null&&(t.ad_sys=c.mI);c.C0!==null&&(t.encoded_ad_playback_context=c.C0);Z.captionsLanguagePreference&&(t.cc_lang_pref=Z.captionsLanguagePreference);Z.hX&&Z.hX!==2&&(t.cc_load_policy=Z.hX);var f=g.Be(g.zk(),65);g.S3(Z)&&f!=null&&!f&&(t.device_captions_on="1");Z.mute&&(t.mute=Z.mute);c.annotationsLoadPolicy&& +Z.annotationsLoadPolicy!==2&&(t.iv_load_policy=c.annotationsLoadPolicy);c.bG&&(t.endscreen_ad_tracking=c.bG);(f=Z.wy.get(c.videoId))&&f.w9&&(t.ic_track=f.w9);c.Pl&&(t.itct=c.Pl);Uq(c)&&(t.autoplay="1");c.mutedAutoplay&&(t.mutedautoplay=c.mutedAutoplay);c.isAutonav&&(t.autonav="1");c.In&&(t.noiba="1");c.isMdxPlayback&&(t.mdx="1",t.ytr=c.fY);c.mdxControlMode&&(t.mdx_control_mode=c.mdxControlMode);c.Cu&&(t.ytrcc=c.Cu);c.ZB&&(t.utpsa="1");c.isFling&&(t.is_fling="1");c.isInlinePlaybackNoAd&&(t.mute="1"); +c.vnd&&(t.vnd=c.vnd);c.forceAdsUrl&&(f=c.forceAdsUrl.split("|").length===3,t.force_ad_params=f?c.forceAdsUrl:"||"+c.forceAdsUrl);c.z2&&(t.preload=c.z2);v.width&&(t.width=v.width);v.height&&(t.height=v.height);(c.vW?0:c.pJ)&&(t.splay="1");c.ypcPreview&&(t.ypc_preview="1");Iv(c)&&(t.content_v=Iv(c));c.yK&&(t.livemonitor=1);Z.kO&&(t.authuser=Z.kO);Z.pageId&&(t.pageid=Z.pageId);Z.fS&&(t.ei=Z.fS);Z.X&&(t.iframe="1");c.contentCheckOk&&(t.cco="1");c.racyCheckOk&&(t.rco="1");Z.D&&c.ek&&(t.live_start_walltime= +c.ek);Z.D&&c.Rg&&(t.live_manifest_duration=c.Rg);Z.D&&c.playerParams&&(t.player_params=c.playerParams);Z.D&&c.cycToken&&(t.cyc=c.cycToken);Z.D&&c.Z1&&(t.tkn=c.Z1);e!==0&&(t.vis=e);Z.enableSafetyMode&&(t.enable_safety_mode="1");c.HP&&(t.kpt=c.HP);c.Jc&&(t.kids_age_up_mode=c.Jc);c.kidsAppInfo&&(t.kids_app_info=c.kidsAppInfo);c.Zn&&(t.upg_content_filter_mode="1");Z.widgetReferrer&&(t.widget_referrer=Z.widgetReferrer.substring(0,128));c.G_?(v=c.G_.latitudeE7!=null&&c.G_.longitudeE7!=null?c.G_.latitudeE7+ +","+c.G_.longitudeE7:",",v+=","+(c.G_.clientPermissionState||0)+","+(c.G_.locationRadiusMeters||"")+","+(c.G_.locationOverrideToken||"")):v=null;v&&(t.uloc=v);c.KW&&(t.internalipoverride=c.KW);Z.embedConfig&&(t.embed_config=Z.embedConfig);Z.tJ&&(t.co_rel="1");Z.ancestorOrigins.length>0&&(t.ancestor_origins=Array.from(Z.ancestorOrigins).join(","));Z.homeGroupInfo!==void 0&&(t.home_group_info=Z.homeGroupInfo);Z.livingRoomAppMode!==void 0&&(t.living_room_app_mode=Z.livingRoomAppMode);Z.enablePrivacyFilter&& +(t.enable_privacy_filter="1");c.isLivingRoomDeeplink&&(t.is_living_room_deeplink="1");c.Sa&&c.Dw&&(t.clip=c.Sa,t.clipt=c.Dw);c.pu&&(t.disable_watch_next="1");c.wV&&(t.forced_by_var="1");for(var U in t)!Det.has(U)&&t[U]&&String(t[U]).length>512&&(g.UQ(Error("GVI param too long: "+U)),t[U]="");U=Z.Wb;g.fL(Z)&&(U=nk(U.replace(/\b(?:www|web)([.-])/,"tv$1"))||Z.Wb);Z=g.KB(U+"get_video_info",t);m&&(Z=$Rs(Z,m));m=Z}L=m;h=(d=c.isAd())?1:3;A=0;case 2:if(!(A0)){F.Wl(5);break}return g.b(F, +m2(5E3),6);case 6:H={playerretry:A,playerretrysrc:V},d||(H.recover="embedded"),Y=j4(L,H);case 5:return g.b(F,SjD(c,Y).then(n,G),7);case 7:if(a=F.G)return F.return();A++;F.Wl(2);break;case 4:W=d?"auth":"manifest.net.retryexhausted";w=d?2:1;if(!d&&Math.random()<1E-4)try{g.UQ(new g.SP("b/152131571",btoa(L)))}catch(C){}return F.return(Promise.reject(new tm(W,{backend:"gvi"},w)))}})}; +SjD=function(X,c){function V(v){return G(v.xhr)} +function G(v){if(!X.vl()){v=v?v.status:-1;var e=0,m=((0,g.ta)()-H).toFixed();m=n.S("html5_use_network_error_code_enums")?{backend:"gvi",rc:v,rt:m}:{backend:"gvi",rc:""+v,rt:m};var t="manifest.net.connect";v===429?(t="auth",e=2):v>200&&(t="manifest.net.badstatus",v===400&&(e=2));return Promise.reject(new tm(t,m,e))}} +var n,L,d,h,A,Y,H,a,W,w,F,Z;return g.O(function(v){if(v.J==1){X.fetchType="gvi";n=X.j();var e={};X.uq&&(e.ytrext=X.uq);(h=g.tN(e)?void 0:e)?(L={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:h},d=j4(c,{action_display_post:1})):(L={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},d=c);A={};n.sendVisitorIdHeader&&X.visitorData&&(A["X-Goog-Visitor-Id"]=X.visitorData);(Y=Xi(n.experiments,"debug_sherlog_username"))&&(A["X-Youtube-Sherlog-Username"]=Y);Object.keys(A).length> +0&&(L.headers=A);H=(0,g.ta)();return g.b(v,YF(l9,d,L).then(void 0,V),2)}a=v.G;if(!a||!a.responseText)return v.return(G(a));X.loading=!1;W=y8(a.responseText);g.sf(X,W,!0);if(X.errorCode)return w={ec:X.errorCode,ed:X.errorDetail,es:X.nj||""},v.return(Promise.reject(new tm("auth",w,2)));if(!X.loading&&!Bp(X))return F=X.isAd()?"auth":"manifest.net.retryexhausted",Z=X.isAd()?2:1,v.return(Promise.reject(new tm(F,{successButUnplayable:"1"},Z)));g.ZS(v)})}; +sis=function(X,c){return new tm(X?"auth":"manifest.net.retryexhausted",c,X?2:1)}; +G5=function(X,c,V){V=V===void 0?!1:V;var G,n,L,d;g.O(function(h){if(h.J==1){G=X.j();if(V&&(!g.q7(G)||fQ(c)!=="embedded")||c.pu||fQ(c)!=="adunit"&&(g.OZ(G)||uY(G)||g.uG(G)||g.fL(G)||i7(G)==="WEB_CREATOR"))return h.return();n=g.LW(G,g.T2(c));return n.J?g.b(h,n.J,3):(L=n.getValue(),h.Wl(2))}h.J!=2&&(L=h.G);d=L;return h.return(iiO(X,c,d))})}; +iiO=function(X,c,V){var G,n,L,d,h;return g.O(function(A){if(A.J==1){g.x1(A,2);G=BeU(V);var Y=c.j();g.zk();var H={context:g.dC(c),videoId:c.videoId,racyCheckOk:c.racyCheckOk,contentCheckOk:c.contentCheckOk,autonavState:"STATE_NONE"};fQ(c)==="adunit"&&(H.isAdPlayback=!0);Y.embedConfig&&(H.serializedThirdPartyEmbedConfig=Y.embedConfig);Y.tJ&&(H.showContentOwnerOnly=!0);c.A$&&(H.showShortsOnly=!0);g.Be(0,141)&&(H.autonavState=g.Be(0,140)?"STATE_OFF":"STATE_ON");if(g.S3(Y)){var a=g.Be(0,65);a=a!=null? +!a:!1;var W=!!g.Il("yt-player-sticky-caption");H.captionsRequested=a&&W}var w;if(Y=(w=Y.getWebPlayerContextConfig())==null?void 0:w.encryptedHostFlags)H.playbackContext={encryptedHostFlags:Y};n=H;L=g.Ln(qjl);X.aL("wn_s");return g.b(A,g.X4(G,n,L),4)}if(A.J!=2)return d=A.G,X.aL("wn_r"),!d||"error"in d&&d.error||(h=d,g.g0(c.j())&&h.trackingParams&&th(h.trackingParams),g.sf(c,{raw_watch_next_response:d},!1)),g.k1(A,0);g.o8(A);g.ZS(A)})}; +Xr8=function(X){X.aL("vir");X.aL("ps_s");DN("vir",void 0,"video_to_ad");var c=zIL(X);c.then(function(){X.aL("virc");DN("virc",void 0,"video_to_ad");X.aL("ps_r");DN("ps_r",void 0,"video_to_ad")},function(){X.aL("virc"); +DN("virc",void 0,"video_to_ad")}); +return c}; +g.de=function(X,c,V,G,n,L,d,h,A,Y){A=A===void 0?new g.z_(X):A;Y=Y===void 0?!0:Y;g.$T.call(this);var H=this;this.qW=X;this.playerType=c;this.BP=V;this.CG=G;this.getVisibilityState=L;this.visibility=d;this.Ed=h;this.videoData=A;this.Gn=Y;this.logger=new g.d3("VideoPlayer");this.yC=null;this.Ih=new hZ;this.AQ=null;this.z3=!0;this.ev=this.h7=null;this.Xg=[];this.Vi=new VI;this.Xj=this.gK=null;this.KO=new VI;this.UO=null;this.GU=this.r0=!1;this.Xx=NaN;this.gG=!1;this.playerState=new g.y_;this.Ir=[];this.td= +new g.U3;this.St=new Skj(this);this.mediaElement=null;this.Xy=new g.qR(this.C3y,15E3,this);this.j8=this.xd=!1;this.dk=NaN;this.BQ=!1;this.Fl=0;this.L4=!1;this.L$=NaN;this.ZJ=new qD(new Map([["bufferhealth",function(){return eIj(H.Sr)}], +["bandwidth",function(){return H.gr()}], +["networkactivity",function(){return H.qW.schedule.kO}], +["livelatency",function(){return H.isAtLiveHead()&&H.isPlaying()?cPt(H):NaN}], +["rawlivelatency",function(){return cPt(H)}]])); +this.C4=0;this.loop=!1;this.playbackRate=1;this.sj=0;this.Sr=new r_l(this);this.EP=!1;this.Fx=[];this.xn=this.fH=0;this.n3=this.ML=!1;this.T8=this.wl=0;this.lD=-1;this.rg="";this.zH=new g.qR(this.xWW,0,this);this.GV=!1;this.AX=this.nM=null;this.OMK=[this.td,this.zH,this.Xy,this.ZJ];this.Qc=this.oD=null;this.U5=function(){var a=H.bB();a.provider.qW.pJ||a.provider.J7.getVisibilityState()===3||(a.provider.qW.pJ=!0);a.Gh();if(a.G){var W=a.G;W.Z&&W.J<0&&W.provider.J7.getVisibilityState()!==3&&mrl(W)}a.qoe&& +(a=a.qoe,a.fS&&a.G<0&&a.provider.qW.pJ&&LQ1(a),a.U&&QZ(a));H.h7&&ni(H);H.qW.CN&&!H.videoData.backgroundable&&H.mediaElement&&!H.Gy()&&(H.isBackground()&&H.mediaElement.hj()?(H.Oy("bgmobile",{suspend:1}),H.Cr(!0,!0)):H.isBackground()||Li(H)&&H.Oy("bgmobile",{resume:1}))}; +this.F8={GS:function(a){H.GS(a)}, +LXy:function(a){H.yC=a}, +JQR:function(){return H.Du}, +FY:function(){return H.eI}, +iV:function(){return H.ev}, +cVy:function(){return H.IG}, +tBy:function(){return H.aG}, +UMy:function(){}, +j:function(){return H.qW}, +vg:function(){return H.mediaElement}, +X3S:function(a){H.zk(a)}, +Biy:function(){return H.CG}}; +this.logger.debug(function(){return"creating, type "+c}); +this.hY=new G5l(this.qW);this.Ml=new YP2(this.qW,this.CG,this);this.R$=new g.fl(function(){return H.getCurrentTime()},function(){return H.getPlaybackRate()},function(){return H.getPlayerState()},function(a,W){a!==g.jw("endcr")||g.B(H.playerState,32)||H.ZP(); +n(a,W,H.playerType)},function(a,W){g.CW(H.videoData)&&H.Oy(a,W)}); +g.N(this,this.R$);g.N(this,this.Sr);Vq2(this,A);this.videoData.subscribe("dataupdated",this.YNl,this);this.videoData.subscribe("dataloaded",this.Yg,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.Oy,this);this.videoData.subscribe("ctmpstr",this.l0,this);this.qo();CBU(this.U5);this.visibility.subscribe("visibilitystatechange",this.U5);this.IG=new g.qR(this.j4,g.EZ(this.qW.experiments,"html5_player_att_initial_delay_ms")||4500,this);this.aG= +new g.qR(this.j4,g.EZ(this.qW.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.X5=new g.Gw(this.Uw,g.EZ(this.qW.experiments,"html5_progress_event_throttle_ms")||350,this);g.N(this,this.X5)}; +Vq2=function(X,c){if(X.playerType===2||X.qW.aF)c.Me=!0;var V=Pk8(c.Od,c.qj,X.qW.X,X.qW.D);V&&(c.adFormat=V);X.playerType===2&&(c.Tx=!0);if(X.isFullscreen()||X.qW.X)V=g.Il("yt-player-autonavstate"),c.autonavState=V||(X.qW.X?2:X.videoData.autonavState);c.endSeconds&&c.endSeconds>c.startSeconds&&S5(X,c.endSeconds)}; +G$l=function(X){UD1(X.Du);g.Ap(X.Du);for(var c=X.eI,V=g.r(c.J.values()),G=V.next();!G.done;G=V.next())UD1(G.value);c.J.clear();g.Ap(X.eI)}; +ngl=function(X){var c=X.videoData;Xr8(X).then(void 0,function(V){X.videoData!==c||c.vl()||(V=lo(V),V.errorCode==="auth"&&X.videoData.errorDetail?X.eX(V.errorCode,2,unescape(X.videoData.errorReason),bo(V.details),X.videoData.errorDetail,X.videoData.nj||void 0):X.handleError(V))})}; +yPl=function(X){if(!g.B(X.playerState,128))if(X.videoData.isLoaded(),X.logger.debug("finished loading playback data"),X.Xg=g.Vk(X.videoData.NW),g.kB(X.videoData)){X.BP.tick("bpd_s");yI(X).then(function(){X.BP.tick("bpd_c");if(!X.vl()){X.r0&&(X.Ni(YN(YN(X.playerState,512),1)),Li(X));var G=X.videoData;G.endSeconds&&G.endSeconds>G.startSeconds&&S5(X,G.endSeconds);X.Vi.finished=!0;h_(X,"dataloaded");X.KO.LP()&&LW1(X);JRS(X.Ml,X.Xj)}}); +X.S("html5_log_media_perf_info")&&X.Oy("loudness",{v:X.videoData.lX.toFixed(3)},!0);var c,V=(c=X.mediaElement)==null?void 0:c.WP();if(V&&"disablePictureInPicture"in V&&X.qW.Ho)try{V.disablePictureInPicture=X.qW.AJ&&!X.videoData.backgroundable}catch(G){g.UQ(G)}dqj(X)}else h_(X,"dataloaded")}; +yI=function(X){A_(X);X.Xj=null;var c=LbD(X.qW,X.videoData,X.Gy());X.gK=c;X.gK.then(function(V){he8(X,V)},function(V){X.vl()||(V=lo(V),X.visibility.isBackground()?(Y4(X,"vp_none_avail"),X.gK=null,X.Vi.reset()):(X.Vi.finished=!0,X.eX(V.errorCode,V.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",bo(V.details))))}); +return c}; +he8=function(X,c){if(!X.vl()&&!c.videoData.vl()){X.logger.debug("finished building playback data");X.Xj=c;xes(X.Sr,X.Xj);if(X.videoData.isLivePlayback){var V=AP1(X.Ed.VV,X.videoData.videoId)||X.h7&&!isNaN(X.h7.kO);V=X.S("html5_onesie_live")&&V;Cl(X)||X.videoData.Ly>0&&!av(X.videoData)||V||X.seekTo(X.SQ(),{Z3:"videoplayer_playbackData",seekSource:18})}if(X.videoData.U.J){if(X.S("html5_sabr_report_missing_url_as_error")&&EID(X.videoData)){X.handleError(new tm("fmt.missing",{missabrurl:"1"},2));return}X.h7? +g.UQ(Error("Duplicated Loader")):(V=g.EZ(X.qW.experiments,"html5_onesie_defer_content_loader_ms"))&&X.Gf()&&AP1(X.Ed.VV,X.videoData.n5)?g.Q8(function(){X.vl()||X.h7||Yb1(X)},V):Yb1(X)}else!X.videoData.U.J&&CQ(X.videoData)&&X.iC(new $O(X.videoData.videoId||"",4)); +X.pw();QzS(c).then(function(){var G={};X.LW(G);X.qW.YU()&&X.S("html5_log_media_perf_info")&&X.Oy("av1Info",G);ni(X)})}}; +LW1=function(X){X.vl();X.logger.debug("try finish readying playback");if(X.KO.finished)X.logger.debug("already finished readying");else if(X.Vi.finished)if(g.B(X.playerState,128))X.logger.debug("cannot finish readying because of error");else if(X.Xg.length)X.logger.debug(function(){return"cannot finish readying because of pending preroll: "+X.Xg}); +else if(X.R$.started||XPs(X.R$),X.Q0())X.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{X.h7&&(X.GU=Eiw(X.h7.timing));X.KO.finished||(X.KO.finished=!0);var c=X.S("html5_onesie_live")&&X.h7&&!isNaN(X.h7.kO);!X.videoData.isLivePlayback||X.videoData.Ly>0&&!av(X.videoData)||c||Cl(X)||(X.logger.debug("seek to head for live"),X.seekTo(Infinity,{Z3:"videoplayer_readying",seekSource:18}),X.isBackground()&&(X.j8=!0));fUt(X.bB());X.logger.debug("finished readying playback"); +X.publish("playbackready",X);sr("pl_c",X.BP.timerName)||(X.BP.tick("pl_c"),DN("pl_c",void 0,"video_to_ad"));sr("pbr",X.BP.timerName)||(X.BP.tick("pbr"),DN("pbr",void 0,"video_to_ad"))}else X.logger.debug("playback data not loaded")}; +S5=function(X,c){X.AQ&&jMl(X);X.AQ=new g.AC(c*1E3,0x7ffffffffffff);X.AQ.namespace="endcr";X.addCueRange(X.AQ)}; +jMl=function(X){X.removeCueRange(X.AQ);X.AQ=null}; +HEl=function(X,c,V,G,n){var L=X.bB(n),d=g.CW(X.videoData)?L.getVideoData():X.videoData;d.G=V;var h=g.j2(X);V=new AR2(d,V,c,h?h.itag:"",G);X.qW.experiments.lc("html5_refactor_sabr_video_format_selection_logging")?(V.videoId=n,X.Qc=V):L.Ur(V);n=X.Ml;n.G=0;n.J=0;X.publish("internalvideoformatchange",d,c==="m")}; +g.j2=function(X){var c=HP(X);return h7(c)||!X.Xj?null:g.Ct(X.Xj.J.videoInfos,function(V){return c.X(V)})}; +HP=function(X){if(X.Xj){var c=X.Ml;var V=X.Xj;X=X.PN();var G=adS(c);if(h7(G)){if(G=jzw(c,V).compose(FvO(c,V)).compose(rRs(c,V)).compose(ok1(c,V.videoData)).compose(e9j(c,V.videoData,V)).compose(HG(c,V)).compose(Wvs(c,V)),h7(X)||c.S("html5_apply_pbr_cap_for_drm"))G=G.compose(wos(c,V))}else c.S("html5_perf_cap_override_sticky")&&(G=G.compose(HG(c,V))),c.S("html5_ustreamer_cap_override_sticky")&&(G=G.compose(wos(c,V)));G=G.compose(Wvs(c,V));c=V.videoData.Cf.compose(G).compose(V.videoData.Tb).compose(X)}else c= +Pp;return c}; +J4s=function(X){var c=X.Ml;X=X.videoData;var V=ok1(c,X);c.S("html5_disable_client_autonav_cap_for_onesie")||V.compose(e9j(c,X));return V}; +ni=function(X){if(X.videoData.U&&X.videoData.U.J){var c=HP(X);X.h7&&xOs(X.h7,c)}}; +aLU=function(X){var c;return!!(X.S("html5_native_audio_track_switching")&&g.v8&&((c=X.videoData.G)==null?0:Gz(c)))}; +$qD=function(X){if(!aLU(X))return!1;var c;X=(c=X.mediaElement)==null?void 0:c.audioTracks();return!!(X&&X.length>1)}; +wrU=function(X){var c=WWs(X);if(c)return X.videoData.getAvailableAudioTracks().find(function(V){return V.zF.getName()===c})}; +WWs=function(X){var c;if(X=(c=X.mediaElement)==null?void 0:c.audioTracks())for(c=0;c0&&(c.U_=G.Rm)); +c.NB=G.AZ;c.xR=OX(V,{},G.U||void 0,dk(G));c.yK=LQ(G)&&g.uG(V);yu(G)&&(c.gs=!0,V.S("html5_sabr_report_partial_segment_estimated_duration")&&(c.XE=!0),c.J=!0,c.dh=V.S("html5_sabr_enable_utc_seek_requests"),c.sY=V.S("html5_sabr_enable_live_clock_offset"),c.VX=V.S("html5_disable_client_resume_policy_for_sabr"),c.Cf=V.S("html5_trigger_loader_when_idle_network"),c.hJ=V.S("html5_sabr_parse_live_metadata_playback_boundaries"),c.t2=V.S("html5_enable_platform_backpressure_with_sabr"),c.nN=V.S("html5_consume_onesie_next_request_policy_for_sabr"), +c.Ql=V.S("html5_sabr_report_next_ad_break_time"),c.DD=V.S("html5_log_high_res_buffer_timeline")&&V.YU(),c.d7=V.S("html5_remove_stuck_slices_beyond_max_buffer_limits"),c.OI=V.S("html5_gapless_sabr_btl_last_slice")&&nQ(G),c.gk=V.S("html5_reset_last_appended_slice_on_seek")&&nQ(G),av(G)?(c.bG=!0,c.CN=V.S("html5_disable_variability_tracker_for_live"),c.fS=V.S("html5_sabr_use_accurate_slice_info_params"),V.S("html5_simplified_backup_timeout_sabr_live")&&(c.uV=!0,c.jL=c.VB)):c.Bd=V.S("html5_probe_request_on_sabr_request_progress"), +c.Dw=V.S("html5_serve_start_seconds_seek_for_post_live_sabr"),c.YM=V.S("html5_flush_index_on_updated_timestamp_offset"),c.Hl=V.S("html5_enable_sabr_request_pipelining")&&!g.CW(G),c.Og=V.S("html5_ignore_partial_segment_from_live_readahead"),c.G5=V.S("html5_use_non_active_broadcast_for_post_live"),c.Pl=V.S("html5_use_centralized_player_time"),c.TZ=V.S("html5_consume_onesie_sabr_seek"),c.A7=V.S("html5_enable_sabr_seek_loader_refactor"),c.J2=V.S("html5_update_segment_start_time_from_media_header"),G.enableServerStitchedDai&& +(c.Z=!0,c.wU=V.S("html5_reset_server_stitch_state_for_non_sabr_seek"),c.Yk=V.S("html5_remove_ssdai_append_pause"),c.T_=V.S("html5_consume_ssdai_info_with_streaming"),c.fJ=V.S("html5_ssdai_log_ssevt_in_loader")),c.dn=V.YU()||G.JT());c.B=c.J&&V.S("html5_sabr_live");c.hX=g.wqO(G);xW(V.Z,v4.BITRATE)&&(c.JX=NaN);if(h=g.EZ(V.experiments,"html5_request_size_max_kb"))c.YO=h*1024;V.Z.Z?c.pJ="; "+v4.EXPERIMENTAL.name+"=allowed":V.S("html5_enable_cobalt_tunnel_mode")&&(c.pJ="; tunnelmode=true");h=G.serverPlaybackStartConfig; +(h==null?0:h.enable)&&(h==null?0:h.playbackStartPolicy)&&(c.lX=!0,CG(c,h.playbackStartPolicy,2));h=FWw(X);X.Ih.removeAll();a:{V=X.Ed.VV;if(G=X.videoData.videoId)if(n=V.J.get(G)){V.J.remove(G);V=n;break a}V=void 0}X.h7=new g.ir(X,X.qW.schedule,c,X.videoData.J,X.videoData.U,HP(X),h,X.videoData.enableServerStitchedDai,V,X.videoData.YO);c=X.videoData.S("html5_disable_preload_for_ssdai_with_preroll")&&X.videoData.isLivePlayback&&X.Gf()?!0:X.r0&&g.OZ(X.qW)&&X.videoData.isLivePlayback;X.h7.initialize(X.getCurrentTime(), +HP(X),c);X.videoData.probeUrl&&(X.h7.fS=X.videoData.probeUrl);if(X.Xg.length||X.r0)X.videoData.cotn||ai(X,!1);k5w(X.Sr,X.h7);X.nM&&(z3j(X.h7,new g.Xa(X.nM)),X.Oy("sdai",{sdl:1}));X.AX&&(X.h7.eq(X.AX),X.Sr.T=!1);g.qO(X.videoData)&&(X=X.h7,X.policy.ql=X.policy.Z1)}; +A_=function(X){X.h7&&(X.h7.dispose(),X.h7=null,k5w(X.Sr,null));X.Rx()?Egt(X):X.PF()}; +Egt=function(X){if(X.ev)if(X.logger.debug("release media source"),X.xr(),X.ev.Z)try{X.qW.YU()&&X.Oy("rms",{l:"vprms",sr:X.Rx(),rs:q1(X.ev)});X.ev.clear();var c;(c=X.mediaElement)!=null&&(c.G=X.ev);X.ev=null}catch(V){c=new g.SP("Error while clearing Media Source in VideoPlayer: "+V.name+", "+V.message),c=lo(c),X.handleError(c),X.PF()}else X.PF()}; +rPl=function(X,c){c=c===void 0?!1:c;if(X.ev)return X.ev.U;X.logger.debug("update media source");a:{c=c===void 0?!1:c;try{g.C1()&&X.videoData.JH()&&g9s(X.mediaElement);var V=X.mediaElement.iV(X.Hs(),X.yS())}catch(n){if(VrU(X.St,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",n);X.eX("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}X.Er(V,!1,!1,c)}var G;return((G=X.iV())==null?void 0:G.U)||null}; +QMD=function(X,c){c=c===void 0?!1:c;if(X.h7){X.S("html5_keep_ssdai_avsync_in_loader_track")&&Sq2(X.h7);var V=X.getCurrentTime()-X.h1();X.h7.seek(V,{Z2:c}).Vr(function(){})}else Yb1(X)}; +xqs=function(X,c,V,G){V=V===void 0?!1:V;G=G===void 0?!1:G;if(X.ev&&(!c||X.ev===c)){X.logger.debug("media source opened");var n=X.getDuration();!n&&av(X.videoData)&&(n=25200);if(X.ev.isView){var L=n;X.logger.debug(function(){return"Set media source duration to "+L+", video duration "+n}); +L>X.ev.getDuration()&&ZES(X,L)}else ZES(X,n);rHs(X.h7,X.ev,V,G);X.publish("mediasourceattached")}}; +ZES=function(X,c){if(X.ev){X.ev.HF(c);var V;(V=X.h7)!=null&&V.policy.Pl&&(V.B=c)}}; +k2D=function(X,c){HEl(X,c.reason,c.J.info,c.token,c.videoId)}; +vgD=function(X,c){X.qW.experiments.lc("enable_adb_handling_in_sabr")&&(X.pauseVideo(!0),X.Vv(),c&&X.eX("sabr.config",1,"BROWSER_OR_EXTENSION_ERROR"))}; +h_=function(X,c){X.publish("internalvideodatachange",c===void 0?"dataupdated":c,X,X.videoData)}; +k$t=function(X){var c="loadstart loadedmetadata play playing pause ended seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ");X.S("html5_remove_progress_event_listener")||(c.push("progress"),c.push("suspend"));c=g.r(c);for(var V=c.next();!V.done;V=c.next())X.td.L(X.mediaElement,V.value,X.zk,X);X.qW.wu&&X.mediaElement.PL()&&(X.td.L(X.mediaElement,"webkitplaybacktargetavailabilitychanged",X.Uiy,X),X.td.L(X.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",X.XdO, +X))}; +ee8=function(X){g.v3(X.Xx);og1(X)||(X.Xx=g.Z9(function(){return og1(X)},100))}; +og1=function(X){var c=X.mediaElement;c&&X.xd&&!X.videoData.kO&&!sr("vfp",X.BP.timerName)&&c.ag()>=2&&!c.isEnded()&&WZ(c.q$())>0&&X.BP.tick("vfp");return(c=X.mediaElement)&&!X.videoData.kO&&c.getDuration()>0&&(c.isPaused()&&c.ag()>=2&&WZ(c.q$())>0&&(sr("pbp",X.BP.timerName)||X.BP.tick("pbp"),!X.videoData.UQ||X.gG||c.isSeeking()||(X.gG=!0,X.publish("onPlaybackPauseAtStart"))),c=c.getCurrentTime(),pl(X.hY,c))?(X.u9(),!0):!1}; +mq1=function(X){X.bB().E5();if(HJ(X.videoData)&&Date.now()>X.sj+6283){if(!(!X.isAtLiveHead()||X.videoData.J&&Qq(X.videoData.J))){var c=X.bB();if(c.qoe){c=c.qoe;var V=c.provider.J7.mx(),G=g.$R(c.provider);SP2(c,G,V);V=V.U;isNaN(V)||g.E7(c,G,"e2el",[V.toFixed(3)])}}X.S("html5_alc_live_log_rawlat")?(c=X.videoData,c=g.bL(c.j())?!0:g.CL(c.j())?c.G7==="6":!1):c=g.bL(X.qW);c&&X.Oy("rawlat",{l:cP(X.ZJ,"rawlivelatency").toFixed(3)});X.sj=Date.now()}X.videoData.G&&Gz(X.videoData.G)&&(c=X.H_())&&c.videoHeight!== +X.xn&&(X.xn=c.videoHeight,HEl(X,"a",JP2(X,X.videoData.o2)))}; +JP2=function(X,c){if(c.J.video.quality==="auto"&&Gz(c.getInfo())&&X.videoData.Wg)for(var V=g.r(X.videoData.Wg),G=V.next();!G.done;G=V.next())if(G=G.value,G.getHeight()===X.xn&&G.J.video.quality!=="auto")return G.getInfo();return c.getInfo()}; +cPt=function(X){if(!HJ(X.videoData))return NaN;var c=0;X.h7&&X.videoData.J&&(c=av(X.videoData)?X.h7.WU.JP()||0:X.videoData.J.NW);return(0,g.ta)()/1E3-X.Tm()-c}; +bES=function(X){X.mediaElement&&X.mediaElement.Gy()&&(X.L$=(0,g.ta)());X.qW.fW?g.Q8(function(){Rel(X)},0):Rel(X)}; +Rel=function(X){var c;if((c=X.ev)==null||!c.j_()){if(X.mediaElement)try{X.UO=X.mediaElement.playVideo()}catch(G){Y4(X,"err."+G)}if(X.UO){var V=X.UO;V.then(void 0,function(G){X.logger.debug(function(){return"playMediaElement failed: "+G}); +if(!g.B(X.playerState,4)&&!g.B(X.playerState,256)&&X.UO===V)if(G&&G.name==="AbortError"&&G.message&&G.message.includes("load"))X.logger.debug(function(){return"ignore play media element failure: "+G.message}); +else{var n="promise";G&&G.name&&(n+=";m."+G.name);Y4(X,n);X.EP=!0;X.videoData.vW=!0}})}}}; +Y4=function(X,c){g.B(X.playerState,128)||(X.Ni(HS(X.playerState,1028,9)),X.Oy("dompaused",{r:c}),X.publish("onAutoplayBlocked"))}; +Li=function(X,c){c=c===void 0?!1:c;if(!X.mediaElement||!X.videoData.U)return!1;var V=c;V=V===void 0?!1:V;var G=null;var n;if((n=X.videoData.U)==null?0:n.J){G=rPl(X,V);var L;(L=X.h7)==null||L.resume()}else A_(X),X.videoData.o2&&(G=X.videoData.o2.Om());n=X.mediaElement.hj();V=!1;n&&n.w6(G)||(tqj(X,G),V=!0);g.B(X.playerState,2)||(G=X.Sr,c=c===void 0?!1:c,G.Z||!(G.X>0)||G.mediaElement&&G.mediaElement.getCurrentTime()>0||(c={Z3:"seektimeline_resumeTime",Z2:c},G.videoData.kO||(c.seekSource=15),G.seekTo(G.X, +c)));a:{c=V;if(yu(X.videoData)){if(!X.videoData.PE())break a}else if(!g.Qu(X.videoData))break a;if(X.mediaElement)if((G=X.videoData.Z)&&X.mediaElement.PL()){n=X.mediaElement.WP();if(X.yC)if(n!==X.yC.element)$4(X);else if(c&&G.flavor==="fairplay"&&!D9())$4(X);else break a;if(X.S("html5_report_error_for_unsupported_tvos_widevine")&&D9()&&G.flavor==="widevine")X.eX("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{X.yC=new NY1(n,X.videoData,X.qW);X.yC.subscribe("licenseerror", +X.Li,X);X.yC.subscribe("qualitychange",X.y1h,X);X.yC.subscribe("heartbeatparams",X.Z$,X);X.yC.subscribe("keystatuseschange",X.GS,X);X.yC.subscribe("ctmp",X.Oy,X);X.S("html5_widevine_use_fake_pssh")&&!X.videoData.isLivePlayback&&G.flavor==="widevine"&&X.yC.AF(new aY(OEs,"cenc",!1));c=g.r(X.Ih.keys);for(G=c.next();!G.done;G=c.next())G=X.Ih.get(G.value),X.yC.AF(G);X.S("html5_eme_loader_sync")||X.Ih.removeAll()}}else X.eX("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}return V}; +tqj=function(X,c){X.BP.tick("vta");DN("vta",void 0,"video_to_ad");X.getCurrentTime()>0&&meD(X.Sr,X.getCurrentTime());X.mediaElement.activate(c);X.ev&&di(0,4);!X.videoData.kO&&X.playerState.isOrWillBePlaying()&&X.Xy.start();if(aLU(X)){var V;if(c=(V=X.mediaElement)==null?void 0:V.audioTracks())c.onchange=function(){X.publish("internalaudioformatchange",X.videoData,!0)}}}; +$4=function(X){X.yC&&(X.yC.dispose(),X.yC=null)}; +lLl=function(X){var c=c===void 0?!1:c;X.logger.debug("reattachVideoSource");X.mediaElement&&(X.ev?($4(X),X.PF(),rPl(X,c)):(X.videoData.o2&&X.videoData.o2.Vf(),X.mediaElement.stopVideo()),X.playVideo())}; +Mq2=function(X,c){X.qW.S("html5_log_rebuffer_reason")&&(c={r:c,lact:Ox()},X.mediaElement&&(c.bh=ng(X.mediaElement)),X.Oy("bufreason",c))}; +ggS=function(X,c){if(X.qW.YU()&&X.mediaElement){var V=X.mediaElement.J1();V.omt=(X.mediaElement.getCurrentTime()+X.h1()).toFixed(3);V.ps=X.playerState.state.toString(16);V.rt=(g.$R(X.bB().provider)*1E3).toFixed();V.e=c;X.Fx[X.fH++%5]=V}try{if(c==="timeupdate"||c==="progress")return}catch(G){}X.logger.debug(function(){return"video element event "+c})}; +fL2=function(X){if(X.qW.YU()){X.Fx.sort(function(G,n){return+G.rt-+n.rt}); +for(var c=g.r(X.Fx),V=c.next();!V.done;V=c.next())V=V.value,X.Oy("vpe",Object.assign({t:V.rt},V));X.Fx=[];X.fH=0}}; +prD=function(X){if(g.K1("cobalt")&&g.K1("nintendo switch")){var c=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;X.Oy("nxdock",{d:c})}}; +ai=function(X,c){var V;(V=X.h7)==null||qr(V,c)}; +iGl=function(X,c){return g.CW(X.videoData)&&X.AX?X.AX.handleError(c,void 0):!1}; +dqj=function(X){jj(X.videoData,"html5_set_debugging_opt_in")&&(X=g.zk(),g.Be(0,183)||(s1(183,!0),X.save()))}; +ILL=function(X){return g.CW(X.videoData)&&X.AX?Bo(X.AX):X.videoData.SQ()}; +qqw=function(X,c){X.Ed.uF()||(X.Oy("sgap",{f:c}),X.Ed.clearQueue(!1,c==="pe"))}; +Cl=function(X){return X.S("html5_disable_video_player_initiated_seeks")&&yu(X.videoData)}; +NhS=function(X){SZ.call(this,X);var c=this;this.events=new g.U3(X);g.N(this,this.events);ht(this.api,"isLifaAdPlaying",function(){return c.api.isLifaAdPlaying()}); +this.events.L(X,"serverstitchedvideochange",function(){var V;(V=c.api.getVideoData())!=null&&V.JT()&&(c.api.isLifaAdPlaying()?(c.playbackRate=c.api.getPlaybackRate(),c.api.setPlaybackRate(1)):c.api.setPlaybackRate(c.playbackRate))}); +this.playbackRate=1}; +Uqs=function(X){SZ.call(this,X);var c=this;this.events=new g.U3(X);g.N(this,this.events);ht(this.api,"seekToChapterWithAnimation",function(V){c.seekToChapterWithAnimation(V)}); +ht(this.api,"seekToTimeWithAnimation",function(V,G){c.seekToTimeWithAnimation(V,G)}); +ht(this.api,"renderChapterSeekingAnimation",function(V,G,n){c.api.renderChapterSeekingAnimation(V,G,n)}); +ht(this.api,"setMacroMarkers",function(V){c.setMacroMarkers(X,V)}); +ht(this.api,"changeMarkerVisibility",function(V,G,n){c.changeMarkerVisibility(V,G,n)}); +ht(this.api,"isSameMarkerTypeVisible",function(V){return c.isSameMarkerTypeVisible(V)})}; +Ths=function(X,c,V){var G=X.api.getCurrentTime()*1E30&&n>0&&(V.width+=n,g.$v(c.element,"width",V.width+"px")));X.size=V}}; +g.t_=function(X,c){var V=X.J[X.J.length-1];V!==c&&(X.J.push(c),$bw(X,V,c))}; +g.Oj=function(X){if(!(X.J.length<=1)){var c=X.J.pop(),V=X.J[0];X.J=[V];$bw(X,c,V,!0)}}; +$bw=function(X,c,V,G){Wxl(X);c&&(c.unsubscribe("size-change",X.m9,X),c.unsubscribe("back",X.GZ,X));V.subscribe("size-change",X.m9,X);V.subscribe("back",X.GZ,X);if(X.aZ){g.Ax(V.element,G?"ytp-panel-animate-back":"ytp-panel-animate-forward");V.uc(X.element);V.focus();X.element.scrollLeft=0;X.element.scrollTop=0;var n=X.size;aZO(X);g.mn(X.element,n);X.B=new g.qR(function(){wzs(X,c,V,G)},20,X); +X.B.start()}else V.uc(X.element),c&&c.detach()}; +wzs=function(X,c,V,G){X.B.dispose();X.B=null;g.Ax(X.element,"ytp-popup-animating");G?(g.Ax(c.element,"ytp-panel-animate-forward"),g.jk(V.element,"ytp-panel-animate-back")):(g.Ax(c.element,"ytp-panel-animate-back"),g.jk(V.element,"ytp-panel-animate-forward"));g.mn(X.element,X.size);X.D=new g.qR(function(){g.jk(X.element,"ytp-popup-animating");c.detach();g.H6(c.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);X.D.dispose();X.D=null},250,X); +X.D.start()}; +Wxl=function(X){X.B&&g.c6(X.B);X.D&&g.c6(X.D)}; +le=function(X){g.be.call(this,X,"ytp-shopping-product-menu");this.kM=new g.J_(this.W);g.N(this,this.kM);this.hide();g.t_(this,this.kM);g.M$(this.W,this.element,4)}; +Ejw=function(X,c,V){var G,n=c==null?void 0:(G=c.text)==null?void 0:G.simpleText;n&&(V=FxS(X,V,n,c==null?void 0:c.icon,c==null?void 0:c.secondaryIcon),c.navigationEndpoint&&V.listen("click",function(){X.W.z_("innertubeCommand",c.navigationEndpoint);X.hide()},X))}; +rDw=function(X,c,V){var G,n=c==null?void 0:(G=c.text)==null?void 0:G.simpleText;n&&FxS(X,V,n,c==null?void 0:c.icon).listen("click",function(){var L;(c==null?void 0:(L=c.icon)==null?void 0:L.iconType)==="HIDE"?X.W.publish("featuredproductdismissed"):c.serviceEndpoint&&X.W.z_("innertubeCommand",c.serviceEndpoint);X.hide()},X)}; +FxS=function(X,c,V,G,n){c=new g.K9(g.sN({},[],!1,!!n),c,V);n&&c.updateValue("secondaryIcon",QKO(n));c.setIcon(QKO(G));g.N(X,c);X.kM.Y9(c,!0);return c}; +QKO=function(X){if(!X)return null;switch(X.iconType){case "ACCOUNT_CIRCLE":return{N:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{N:"path",K:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 1c4.96 0 9 4.04 9 9 0 1.42-.34 2.76-.93 3.96-1.53-1.72-3.98-2.89-7.38-3.03A3.99 3.99 0 0016 9c0-2.21-1.79-4-4-4S8 6.79 8 9c0 1.97 1.43 3.6 3.31 3.93-3.4.14-5.85 1.31-7.38 3.03C3.34 14.76 3 13.42 3 12c0-4.96 4.04-9 9-9zM9 9c0-1.65 1.35-3 3-3s3 1.35 3 3-1.35 3-3 3-3-1.35-3-3zm3 12c-3.16 0-5.94-1.64-7.55-4.12C6.01 14.93 8.61 13.9 12 13.9c3.39 0 5.99 1.03 7.55 2.98C17.94 19.36 15.16 21 12 21z", +fill:"#fff"}}]};case "FLAG":return{N:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{N:"path",K:{d:"M13.18 4L13.42 5.2L13.58 6H14.4H19V13H13.82L13.58 11.8L13.42 11H12.6H6V4H13.18ZM14 3H5V21H6V12H12.6L13 14H20V5H14.4L14 3Z",fill:"white"}}]};case "HELP":return b$8();case "HIDE":return{N:"svg",K:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{N:"g",V:[{N:"path",K:{d:"M16.24,9.17L13.41,12l2.83,2.83l-1.41,1.41L12,13.41l-2.83,2.83l-1.41-1.41L10.59,12L7.76,9.17l1.41-1.41L12,10.59 l2.83-2.83L16.24,9.17z M4.93,4.93c-3.91,3.91-3.91,10.24,0,14.14c3.91,3.91,10.24,3.91,14.14,0c3.91-3.91,3.91-10.24,0-14.14 C15.17,1.02,8.83,1.02,4.93,4.93z M18.36,5.64c3.51,3.51,3.51,9.22,0,12.73s-9.22,3.51-12.73,0s-3.51-9.22,0-12.73 C9.15,2.13,14.85,2.13,18.36,5.64z"}}]}]}; +case "OPEN_IN_NEW":return ty()}}; +Me=function(X){oi.call(this,X,!1,!0);this.isCounterfactual=this.G=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.T=!0;this.overflowButton=new g.z({N:"button",xO:["ytp-featured-product-overflow-icon","ytp-button"],K:{"aria-haspopup":"true"}});this.overflowButton.hide();g.N(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.z({N:"img",Y:"ytp-suggested-action-badge-img",K:{src:"{{url}}"}}); +this.thumbnailImage.hide();g.N(this,this.thumbnailImage);this.thumbnailIcon=new g.z({N:"div",Y:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.N(this,this.thumbnailIcon);this.banner=new g.z({N:"a",Y:"ytp-suggested-action-container",V:[this.thumbnailImage,this.thumbnailIcon,{N:"div",Y:"ytp-suggested-action-details",V:[{N:"text",Y:"ytp-suggested-action-title",Uy:"{{title}}"},{N:"text",Y:"ytp-suggested-action-subtitle",Uy:"{{subtitle}}"},{N:"text",Y:"ytp-suggested-action-metadata-text", +Uy:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.N(this,this.banner);this.banner.uc(this.U.element);this.L(this.W,"videodatachange",this.onVideoDataChange);this.L(this.W,g.jw("suggested_action_view_model"),this.Tmy);this.L(this.W,g.HQ("suggested_action_view_model"),this.g97);this.L(this.overflowButton.element,"click",this.Br);this.L(X,"featuredproductdismissed",this.JF);this.W.createServerVe(this.banner.element,this.banner,!0)}; +ZHt=function(X){X.isInitialized&&(X.enabled=X.isVisible,X.A7=X.isVisible,k4(X),X.kA(),X.thumbnailImage.Ry(X.isVisible),X.shouldHideDismissButton||X.dismissButton.Ry(X.isVisible),X.shouldShowOverflowButton&&X.overflowButton.Ry(X.isVisible))}; +ge=function(){Me.apply(this,arguments)}; +xbl=function(X){SZ.call(this,X);this.J=new ge(this.api);g.N(this,this.J);g.M$(this.api,this.J.element,4)}; +fi=function(X){SZ.call(this,X);var c=this;this.J="";this.U=!0;this.G=this.api.S("html5_enable_audio_track_stickiness_phase_two");this.X=this.api.S("html5_update_preloaded_playback_with_sticky_audio_track");var V=new g.U3(X);g.N(this,V);V.L(X,"internalaudioformatchange",function(G,n){vjD(c,G,n)}); +V.L(X,"videoplayerreset",function(){kiD(c)}); +V.L(X,"videodatachange",function(G,n){c.onVideoDataChange(G,n)})}; +vjD=function(X,c,V){if(V){var G="";ojD(X,c)&&(G=c,X.G||(X.J=c),X.api.S("html5_sabr_enable_server_xtag_selection")&&(V=X.api.getVideoData(void 0,!0)))&&(V.Ho=c);if(X.G&&G&&e$O(X,G)){X.X&&JDD(X,G);var n;Fk(d4(X.api.j(),(n=X.api.getVideoData())==null?void 0:g.T2(n)),function(L){mb2(X,G,L)})}}}; +kiD=function(X){if(X.J)R$8(X);else{var c;if(X.G&&((c=BV())==null?0:c.size)){var V;Fk(d4(X.api.j(),(V=X.api.getVideoData())==null?void 0:g.T2(V)),function(G){if((G=bHs(G))&&e$O(X,G)){var n=X.api.getVideoData(void 0,!0);n&&(n.Ho=G)}})}}}; +R$8=function(X){var c=X.api.getVideoData(void 0,!0);c&&(c.Ho=X.J)}; +mb2=function(X,c,V){bHs(V)!==c&&(tOw([{settingItemId:pi(V),settingOptionValue:{stringValue:c}}]),Fk(X.iF(),function(G){$iO(G,pi(V),{stringValue:c})}))}; +OHD=function(X,c){EM(Fk(Fk(X.iF(),function(V){return HMj(V,[pi(c)])}),function(V){if(V){V=g.r(V); +for(var G=V.next();!G.done;G=V.next()){var n=G.value;G=n.key;n=n.value;G&&n&&tOw([{settingItemId:G,settingOptionValue:n}])}}}),function(){X.U=!0})}; +JDD=function(X,c){if(c=ojD(X,X.J||c)){X=lZs(X.api.app.M_().G);X=g.r(X);for(var V=X.next();!V.done;V=X.next())V.value.Wk(c,!0)}}; +ojD=function(X,c){X=X.api.getAvailableAudioTracks();X=g.r(X);for(var V=X.next();!V.done;V=X.next())if(V=V.value,V.getLanguageInfo().getId()===c)return V;return null}; +bHs=function(X){X=pi(X);var c=BV();X=c?c.get(X):void 0;return X&&X.stringValue?X.stringValue:""}; +pi=function(X){var c=(484).toString();X&&(c=(483).toString());return c}; +e$O=function(X,c){var V;return c.split(".")[0]!==""&&((V=X.api.getVideoData())==null?void 0:!PJ(V))}; +tOw=function(X){var c=BV();c||(c=new Map);X=g.r(X);for(var V=X.next();!V.done;V=X.next())V=V.value,c.set(V.settingItemId,V.settingOptionValue);c=JSON.stringify(Object.fromEntries(c));g.pv("yt-player-user-settings",c,2592E3)}; +g.Ii=function(X,c,V,G,n,L,d){g.K9.call(this,g.sN({"aria-haspopup":"true"}),c,X);this.PP=G;this.T=!1;this.U=null;this.options={};this.G=new g.J_(V,void 0,X,n,L,d);g.N(this,this.G);this.listen("keydown",this.w5);this.listen("click",this.open)}; +MOL=function(X){if(X.U){var c=X.options[X.U];c.element.getAttribute("aria-checked");c.element.setAttribute("aria-checked","false");X.U=null}}; +gjS=function(X,c){g.Ii.call(this,"Sleep timer",g.YH.SLEEP_TIMER,X,c);this.W=X;this.C={};this.B=this.Yr("Off");this.D=this.J="";X.S("web_settings_menu_icons")&&this.setIcon({N:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{N:"path",K:{d:"M16.67,4.31C19.3,5.92,21,8.83,21,12c0,4.96-4.04,9-9,9c-2.61,0-5.04-1.12-6.72-3.02C5.52,17.99,5.76,18,6,18 c6.07,0,11-4.93,11-11C17,6.08,16.89,5.18,16.67,4.31 M14.89,2.43C15.59,3.8,16,5.35,16,7c0,5.52-4.48,10-10,10 c-1,0-1.97-0.15-2.89-0.43C4.77,19.79,8.13,22,12,22c5.52,0,10-4.48,10-10C22,7.48,19,3.67,14.89,2.43L14.89,2.43z M12,6H6v1h4.5 L6,10.99v0.05V12h6v-1H7.5L12,7.01V6.98V6L12,6z", +fill:"#fff"}}]});this.X=new g.z({N:"div",xO:["ytp-menuitem-label-wrapper"],V:[{N:"div",Uy:"End of video"},{N:"div",xO:["ytp-menuitem-sublabel"],Uy:"{{content}}"}]});g.N(this,this.X);this.listen("click",this.onClick);this.L(X,"videodatachange",this.onVideoDataChange);this.L(X,"presentingplayerstatechange",this.pS);this.L(X,"settingsMenuVisibilityChanged",this.Flc);X.createClientVe(this.element,this,218889);this.pS();this.W.z_("onSleepTimerFeatureAvailable")}; +fZt=function(X){var c="Off 10 15 20 30 45 60".split(" "),V;((V=X.W.getVideoData())==null?0:V.isLivePlayback)||c.push("End of video");V=X.W.getPlaylist();var G;V&&((G=V.listId)==null?void 0:G.type)!=="RD"&&c.push("End of playlist");X.Wo(g.Rt(c,X.Yr));X.C=g.wQ(c,X.Yr,X);c=X.Yr("End of video");X.options[c]&&g.BO(X.options[c],X.X)}; +pzl=function(X,c){var V=X.C[c],G=V==="End of video"||V==="End of playlist";V==="Off"&&(X.J="");X.W.getPlayerState()!==0&&X.W.getPlayerState()!==5||!G?(X.B=c,g.Ii.prototype.Iv.call(X,c),X.O_(c),X.W.z_("onSleepTimerSettingsChanged",V)):X.W.z_("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"Video has already ended"}}}}})}; +Ne=function(X){SZ.call(this,X);var c=this;X.addEventListener("settingsMenuInitialized",function(){c.menuItem||(c.menuItem=new gjS(c.api,c.api.b4()),g.N(c,c.menuItem))}); +X.addEventListener("openSettingsMenuItem",function(V){if(V==="menu_item_sleep_timer"){if(!c.menuItem){var G;(G=c.api.b4())==null||G.fM()}c.menuItem.open()}}); +ht(X,"resetSleepTimerMenuSettings",function(){c.resetSleepTimerMenuSettings()}); +ht(X,"setSleepTimerTimeLeft",function(V){c.setSleepTimerTimeLeft(V)}); +ht(X,"setVideoTimeLeft",function(V){c.setVideoTimeLeft(V)})}; +IZt=function(X){SZ.call(this,X);var c=this;this.events=new g.U3(X);g.N(this,this.events);this.events.L(X,"onSnackbarMessage",function(V){switch(V){case 1:V=c.api.getPlayerStateObject(),V.isBuffering()&&g.B(V,8)&&g.B(V,16)&&c.api.z_("innertubeCommand",{openPopupAction:{popup:{notificationActionRenderer:{responseText:{runs:[{text:"Experiencing interruptions?"}]},actionButton:{buttonRenderer:{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:{runs:[{text:"Find out why"}]},navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers", +webPageType:"WEB_PAGE_TYPE_UNKNOWN"}},urlEndpoint:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers",target:"TARGET_NEW_WINDOW"}},loggingDirectives:{clientVeSpec:{uiType:232471}}}},loggingDirectives:{clientVeSpec:{uiType:232470}}}},durationHintMs:5E3,popupType:"TOAST"}})}})}; +g.T5=function(X,c,V,G,n){c=c===void 0?!1:c;G=G===void 0?!1:G;n=n===void 0?!1:n;g.$T.call(this);this.C=n;this.D=!1;this.X=new tj(this);this.Z=this.B=null;this.U=this.G=!1;g.N(this,this.X);this.target=X;this.J=c;this.T=V||X;this.D=G;c&&(g.iU&&this.target.setAttribute("draggable","true"),n||(this.target.style.touchAction="none"));Uj(this)}; +ue=function(X){g.l5(X.X,!X.J)}; +Uj=function(X){X.Z=null;X.B=null;X.L(PP("over"),X.xD);X.L("touchstart",X.eN);X.J&&X.L(PP("down"),X.yXR)}; +NO1=function(X,c){for(var V=0;Vn.start&&V>=5;Z+=e}W=Z.substr(0,4)+" "+Z.substr(4,4)+" "+Z.substr(8,4)+" "+(Z.substr(12,4)+" "+Z.substr(16,4))}else W="";d={video_id_and_cpn:String(c.videoId)+" / "+W,codecs:"", +dims_and_frames:"",bandwidth_kbps:d.toFixed(0)+" Kbps",buffer_health_seconds:A.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:Y?"":"display:none",drm:Y,debug_info:V,extra_debug_info:"",bandwidth_style:a,network_activity_style:a,network_activity_bytes:h.toFixed(0)+" KB",shader_info:H,shader_info_style:H?"":"display:none",playback_categories:""};h=G.clientWidth+"x"+G.clientHeight+(n>1?"*"+n.toFixed(2):"");A="-";L.totalVideoFrames&&(A=(L.droppedVideoFrames||0)+" dropped of "+L.totalVideoFrames); +d.dims_and_frames=h+" / "+A;X=X.getVolume();h=W7D(c);var t;A=((t=c.X)==null?0:t.audio.J)?"DRC":Math.round(X*h)+"%";t=Math.round(X)+"% / "+A;X=c.lX.toFixed(1);isFinite(Number(X))&&(t+=" (content loudness "+X+"dB)");d.volume=t;d.resolution=G.videoWidth+"x"+G.videoHeight;if(G=c.G){if(t=G.video)X=t.fps,X>1&&(d.resolution+="@"+X),(X=L.pH)&&X.video&&(d.resolution+=" / "+X.video.width+"x"+X.video.height,X.video.fps>1&&(d.resolution+="@"+X.video.fps)),d.codecs=z$U(G),!c.X||G.audio&&G.video?G.W4&&(d.codecs+= +" / "+G.W4+"A"):d.codecs+=" / "+z$U(c.X),t.G||t.primaries?(X=t.G||"unknown",X==="smpte2084"?X+=" (PQ)":X==="arib-std-b67"&&(X+=" (HLG)"),d.color=X+" / "+(t.primaries||"unknown"),d.color_style=""):d.color_style="display:none";if(G.debugInfo)for(d.fmt_debug_info="",G=g.r(G.debugInfo),t=G.next();!t.done;t=G.next())t=t.value,d.fmt_debug_info+=t.label+":"+t.text+" ";d.fmt_debug_info_style=d.fmt_debug_info&&d.fmt_debug_info.length>0?"":"display:none"}G=c.isLivePlayback;t=c.bf;d.live_mode_style=G||t?"": +"display:none";d.live_latency_style=G?"":"display:none";if(t)d.live_mode="Post-Live"+(av(c)?" Manifestless":"");else if(G){t=L.VI;d.live_latency_secs=t.toFixed(2)+"s";G=av(c)?"Manifestless, ":"";c.wy&&(G+="Windowed, ");X="Uncertain";if(t>=0&&t<120)if(c.latencyClass&&c.latencyClass!=="UNKNOWN")switch(c.latencyClass){case "NORMAL":X="Optimized for Normal Latency";break;case "LOW":X="Optimized for Low Latency";break;case "ULTRALOW":X="Optimized for Ultra Low Latency";break;default:X="Unknown Latency Setting"}else X= +c.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";G+=X;(t=L.zK)&&(G+=", seq "+t.sequence);d.live_mode=G}!L.isGapless||nQ(c)&&L.uF||(d.playback_categories+="Gapless ");d.playback_categories_style=d.playback_categories?"":"display:none";d.bandwidth_samples=L.dg;d.network_activity_samples=L.e$;d.live_latency_samples=L.o0;d.buffer_health_samples=L.Ch;L=g.qO(c);if(c.cotn||L)d.cotn_and_local_media=(c.cotn?c.cotn:"null")+" / "+L;d.cotn_and_local_media_style=d.cotn_and_local_media? +"":"display:none";jj(c,"web_player_release_debug")?(d.release_name=Vl[50],d.release_style=""):d.release_style="display:none";d.debug_info&&w.length>0&&d.debug_info.length+w.length<=60?d.debug_info+=" "+w:d.extra_debug_info=w;d.extra_debug_info_style=d.extra_debug_info&&d.extra_debug_info.length>0?"":"display:none";return d}; +z$U=function(X){var c=/codecs="([^"]*)"/.exec(X.mimeType);return c&&c[1]?c[1]+" ("+X.itag+")":X.itag}; +S2=function(X,c,V,G,n){g.z.call(this,{N:"div",Y:"ytp-horizonchart"});this.D=c;this.sampleCount=V;this.X=G;this.B=n;this.index=0;this.heightPx=-1;this.U=this.G=null;this.J=Math.round(X/V);this.element.style.width=this.J*this.sampleCount+"px";this.element.style.height=this.D+"em"}; +ie=function(X,c){if(X.heightPx===-1){var V=null;try{V=g.Vj("CANVAS"),X.G=V.getContext("2d")}catch(h){}if(X.G){var G=X.J*X.sampleCount;X.U=V;X.U.width=G;X.U.style.width=G+"px";X.element.appendChild(X.U)}else for(X.sampleCount=Math.floor(X.sampleCount/4),X.J*=4,V=0;V1?2:1,X.U.height=X.heightPx*V,X.U.style.height= +X.heightPx+"px",X.G.scale(1,V)));c=g.r(c);for(G=c.next();!G.done;G=c.next()){V=X;var n=X.index,L=G.value;for(G=0;G+20&&g.L_(c.U.element);G.classList.add("ytp-timely-actions-overlay");c.U.element.appendChild(G)}); +g.N(this,this.U);g.M$(this.api,this.U.element,4)}; +yG8=function(X){X.timelyActions&&(X.X=X.timelyActions.reduce(function(c,V){if(V.cueRangeId===void 0)return c;c[V.cueRangeId]=0;return c},{}))}; +VD=function(X,c){if(X.timelyActions){X=g.r(X.timelyActions);for(var V=X.next();!V.done;V=X.next())if(V=V.value,V.cueRangeId===c)return V}}; +h4l=function(X,c){if((X=VD(X,c))&&X.onCueRangeExit)return z8(X.onCueRangeExit)}; +AGl=function(X){if(X.J!==void 0){var c=(c=VD(X,X.J))&&c.onCueRangeEnter?z8(c.onCueRangeEnter):void 0;var V=VD(X,X.J);if(V&&V.additionalTrigger){var G=!1;for(var n=g.r(V.additionalTrigger),L=n.next();!L.done;L=n.next())L=L.value,L.type&&L.args&&X.B[L.type]!==void 0&&(G=G||X.B[L.type](L.args))}else G=!0;c&&G&&(X.api.z_("innertubeCommand",c),X.setTimeout(V),X.X[X.J]!==void 0&&X.X[X.J]++,X.D=!0)}}; +Gg2=function(X,c){return X.G===void 0?!1:c.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(c.seekLengthMilliseconds)===5E3?X.G===72:c.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(c.seekLengthMilliseconds)===1E4?X.G===74:c.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(c.seekLengthMilliseconds)===5E3?X.G===71:c.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(c.seekLengthMilliseconds)===1E4?X.G===73:!1}; +nX8=function(X){if(X=X.getWatchNextResponse()){var c,V;X=(c=X.playerOverlays)==null?void 0:(V=c.playerOverlayRenderer)==null?void 0:V.timelyActionsOverlayViewModel;c=g.T(X,YpD);if(c!=null&&c.timelyActions)return c==null?void 0:c.timelyActions.map(function(G){return g.T(G,jZl)}).filter(function(G){return!!G})}}; +HaO=function(X){SZ.call(this,X);var c=this;At(this.api,"getPlaybackRate",function(){return c.api.getPlaybackRate()}); +At(this.api,"setPlaybackRate",function(V){typeof V==="number"&&c.api.setPlaybackRate(V)})}; +aMD=function(X){X=X.Yc();if(!X)return!1;X=g.A3(X).exp||"";return X.includes("xpv")||X.includes("xpe")}; +$nt=function(X){X=g.r(g.G$(X,!0));for(var c=X.next();!c.done;c=X.next())if(aMD(c.value))return!0;return!1}; +WEL=function(X,c){X=g.r(g.G$(X,!0));for(var V=X.next();!V.done;V=X.next())if(V=V.value,aMD(V)){var G={potc:"1",pot:c};V.url&&(V.url=YP(V.url,G))}}; +wj2=function(X){var c=new HBD,V={},G=(V["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",V);return new J$(c,X,function(){return G})}; +FEw=function(X){return g.O(function(c){if(c.J==1)return g.x1(c,2),g.b(c,X,4);if(c.J!=2)return g.k1(c,0);g.o8(c);g.ZS(c)})}; +LE=function(X){SZ.call(this,X);var c=this;this.useLivingRoomPoToken=!1;this.X=new g.rw;this.BP=null;this.D=!1;this.U=null;this.Z=!1;var V=X.j().getWebPlayerContextConfig();this.events=new g.U3(X);g.N(this,this.events);this.events.L(X,"spsumpreject",function(G,n,L){c.Z=n;G&&c.D&&!c.U&&(c.S("html5_generate_content_po_token")&&L?c.uU(L):c.S("html5_generate_session_po_token")&&EXl(c));c.U||c.api.Oy("stp",{s:+c.D,b:+c.Z})}); +this.events.L(X,"poTokenVideoBindingChange",function(G){c.uU(G)}); +this.useLivingRoomPoToken=!(V==null||!V.useLivingRoomPoToken);X.addEventListener("csiinitialized",function(){c.BP=X.X9();var G=(c.S("html5_generate_session_po_token")||c.S("html5_generate_content_po_token"))&&!c.useLivingRoomPoToken;try{if(c.S("html5_use_shared_owl_instance"))rG1(c);else if(G){c.BP.vD("pot_isc");c.S("html5_new_wpo_client")||QZl(c);var n=g.EZ(c.api.j().experiments,"html5_webpo_kaios_defer_timeout_ms");n?(c.S("html5_new_wpo_client")&&(c.G=SS()),g.Q8(function(){nE(c)},n)):c.S("html5_webpo_idle_priority_job")? +(c.S("html5_new_wpo_client")&&(c.G=SS()),g.Va(g.n$(),function(){nE(c)})):nE(c)}}catch(L){L instanceof Error&&g.UQ(L)}}); +X.addEventListener("trackListLoaded",this.s_.bind(this));X.Gl(this)}; +Zas=function(X){var c=Xi(X.experiments,"html5_web_po_request_key");return c?c:g.OZ(X)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; +dh=function(X,c){if(X.S("html5_webpo_bge_ctmp")){var V,G={hwpo:!!X.J,hwpor:!((V=X.J)==null||!V.isReady())};X.api.Oy(c,G)}}; +rG1=function(X){var c,V;g.O(function(G){if(G.J==1)return dh(X,"swpo_i"),X.G=SS(),yD(X),g.b(G,tB(),2);if(G.J!=3)return c=G.G,dh(X,"swpo_co"),g.b(G,YhL(c),3);V=G.G;X.J=xnl(X,V);dh(X,"swpo_cc");X.J.ready().then(function(){X.X.resolve();dh(X,"swpo_re")}); +g.Q8(function(){nE(X);dh(X,"swpo_si")},0); +g.ZS(G)})}; +QZl=function(X){var c=X.api.j(),V=Zas(c),G=wj2(V);c=new cF({zy:"CLEn",xx:V,D6:G,onEvent:function(n){(n=vXl[n])&&X.BP.vD(n)}, +onError:g.UQ,qd:bgL(c.experiments),Pn:function(){return void X.api.Oy("itr",{})}, +wDW:c.experiments.lc("html5_web_po_disable_remote_logging")||kgt.includes(g.Ue(c.Wb)||"")});c.ready().then(function(){return void X.X.resolve()}); +g.N(X,c);X.J=c}; +oXl=function(X){var c=X.api.j(),V=wj2(Zas(c)),G=V.Wp.bind(V);V.Wp=function(h){var A;return g.O(function(Y){if(Y.J==1)return g.b(Y,G(h),2);A=Y.G;X.api.Oy("itr",{});return Y.return(A)})}; +try{var n=new m_({D6:V,Xd:{maxAttempts:5},gb:{zy:"CLEn",disable:c.experiments.lc("html5_web_po_disable_remote_logging")||kgt.includes(g.Ue(c.Wb)||""),xW:bgL(c.experiments),lQh:X.S("wpo_dis_lfdms")?0:1E3},div:g.UQ});var L=new Dp({JO:n,D6:V,onError:g.UQ});FEw(L.Dz()).then(function(){return void X.X.resolve()}); +g.N(X,n);g.N(X,L);X.J=xnl(X,L)}catch(h){g.UQ(h);var d;(d=n)==null||d.dispose()}}; +nE=function(X){var c=X.api.j();X.BP.vD("pot_ist");X.J?X.J.start():X.S("html5_new_wpo_client")&&oXl(X);X.S("html5_bandaid_attach_content_po_token")||(X.S("html5_generate_session_po_token")&&(yD(X),EXl(X)),c=g.EZ(c.experiments,"html5_session_po_token_interval_time_ms")||0,c>0&&(X.B=g.Z9(function(){yD(X)},c)),X.D=!0)}; +yD=function(X){var c,V,G,n;g.O(function(L){if(!X.S("html5_generate_session_po_token")||X.useLivingRoomPoToken)return L.return();c=X.api.j();V=g.qK("EOM_VISITOR_DATA")||g.qK("VISITOR_DATA");G=c.ql?c.datasyncId:V;n=Xi(c.experiments,"html5_mock_content_binding_for_session_token")||c.livingRoomPoTokenId||G;c.fJ=hP(X,n);g.ZS(L)})}; +hP=function(X,c){if(!X.J)return X.G?X.G(c):"";try{var V=X.J.isReady();X.BP.vD(V?"pot_cms":"pot_csms");var G="";G=X.S("html5_web_po_token_disable_caching")?X.J.LO({VH:c}):X.J.LO({VH:c,Gx:{Mj:c,YMc:150,y8:!0,RR:!0}});X.BP.vD(V?"pot_cmf":"pot_csmf");if(V){var n;(n=X.U)==null||n.resolve();X.U=null;if(X.Z){X.Z=!1;var L;(L=X.api.app.Ey())==null||L.Nn(!1)}}return G}catch(d){return g.UQ(d),""}}; +EXl=function(X){X.J&&(X.U=new cS,X.J.ready().then(function(){X.BP.vD("pot_if");yD(X)}))}; +xnl=function(X,c){X.S("html5_web_po_token_disable_caching")||c.C9(150);var V=!1,G=FEw(c.Dz()).then(function(){V=!0}); +return{isReady:function(){return V}, +ready:function(){return G}, +LO:function(n){return c.LO({VH:n.VH,nV:!0,s9:!0,Gx:n.Gx?{Mj:n.Gx.Mj,y8:n.Gx.y8,RR:n.Gx.RR}:void 0})}, +start:function(){}}}; +e4D=function(X){SZ.call(this,X);var c=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.U3(X);g.N(this,this.events);this.events.L(X,"heartbeatRequest",function(V){if(c.freePreviewUsageDetails.length||c.freePreviewWatchedDuration!==null)V.heartbeatRequestParams||(V.heartbeatRequestParams={}),V.heartbeatRequestParams.unpluggedParams||(V.heartbeatRequestParams.unpluggedParams={}),c.freePreviewUsageDetails.length>0?V.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= +c.freePreviewUsageDetails:V.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+c.freePreviewWatchedDuration}}); +ht(X,"setFreePreviewWatchedDuration",function(V){c.freePreviewWatchedDuration=V}); +ht(X,"setFreePreviewUsageDetails",function(V){c.freePreviewUsageDetails=V})}; +AP=function(X){g.I.call(this);this.features=[];var c=this.J,V=new eb(X),G=new ic(X),n=new Ej(X),L=new LE(X);var d=g.bL(X.j())?void 0:new EJ(X);var h=new Fe(X),A=new C8t(X),Y=new HaO(X),H=new oy(X);var a=g.bL(X.j())?new e4D(X):void 0;var W=X.S("html5_enable_ssap")?new P8D(X):void 0;var w=X.S("web_cinematic_watch_settings")&&(w=X.j().getWebPlayerContextConfig())!=null&&w.cinematicSettingsAvailable?new ay(X):void 0;var F=new kH(X);var Z=X.S("enable_courses_player_overlay_purchase")?new o0s(X):void 0; +var v=g.S3(X.j())?new ZFj(X):void 0;var e=new rZ(X);var m=X.j().X?new W5S(X):void 0;var t=g.RT(X.j())?new $as(X):void 0;var f=X.S("web_player_move_autonav_toggle")&&X.j().Wg?new yhs(X):void 0;var U=g.S3(X.j())?new Uqs(X):void 0;var C=X.S("web_enable_speedmaster")&&g.S3(X.j())?new Ki(X):void 0;var K=X.j().lX?void 0:new VYO(X);var nj=X.S("report_pml_debug_signal")?new G9D(X):void 0;var yl=new Xzl(X),Xl=new x4(X);var u=g.uG(X.j())?new Y48(X):void 0;var q=navigator.mediaSession&&window.MediaMetadata&& +X.j().Jc?new WP(X):void 0;var Q=X.S("html5_enable_drc")&&!X.j().B?new FW(X):void 0;var P=new XW(X);var Tt=g.S3(X.j())?new xbl(X):void 0;var xU=X.S("html5_enable_d6de4")?new re(X):void 0;var $U=g.S3(X.j())&&X.S("web_sleep_timer")?new Ne(X):void 0;var Js=g.RT(X.j())?new F5s(X):void 0;var iO=new fi(X),dM=new $H(X),Fr=new NhS(X);var k=X.S("enable_sabr_snackbar_message")?new IZt(X):void 0;var J=X.S("web_enable_timely_actions")?new dnU(X):void 0;c.call(this,V,G,n,L,d,h,A,Y,H,a,W,w,F,Z,v,e,m,t,f,U,C,K,nj, +yl,Xl,u,void 0,q,Q,P,void 0,Tt,xU,$U,Js,void 0,iO,dM,Fr,void 0,k,J,new W5(X))}; +Yg=function(){this.G=this.J=NaN}; +JGO=function(X,c){this.qW=X;this.timerName="";this.U=!1;this.G=NaN;this.X=new Yg;this.J=c||null;this.U=!1}; +mnl=function(X,c,V){var G=g.g0(c.Fh)&&!c.Fh.B;if(c.Fh.G7&&(tq(c.Fh)||c.Fh.Pl==="shortspage"||Vb(c.Fh)||G)&&!X.U){X.U=!0;X.B=c.clientPlaybackNonce;g.qK("TIMING_ACTION")||iH("TIMING_ACTION",X.qW.csiPageType);X.qW.csiServiceName&&iH("CSI_SERVICE_NAME",X.qW.csiServiceName);if(X.J){G=X.J.X9();for(var n=g.r(Object.keys(G)),L=n.next();!L.done;L=n.next())L=L.value,zh(L,G[L],X.timerName);G=g.Gx(KDS)(X.J.j5);g.Bh(G,X.timerName);G=X.J;G.G={};G.j5={}}g.Bh({playerInfo:{visibilityState:g.Gx(BUs)()},playerType:"LATENCY_PLAYER_HTML5"}, +X.timerName);X.Z!==c.clientPlaybackNonce||Number.isNaN(X.G)||(sr("_start",X.timerName)?V=g.Gx(Np)("_start",X.timerName)+X.G:g.UQ(new g.SP("attempted to log gapless pbs before CSI timeline started",{cpn:c.clientPlaybackNonce})));V&&!sr("pbs",X.timerName)&&jq(V)}}; +jq=function(X,c){zh("pbs",X!=null?X:(0,g.ta)(),c)}; +R4L=function(X,c,V,G,n,L,d){X=(X===V?"video":"ad")+"_to_"+(c===V?"video":"ad");if(X!=="video_to_ad"||L!=null&&L.kO){L=X==="ad_to_video"?L:G;V=L==null?void 0:L.MF;var h={};if(G==null?0:G.B)h.cttAuthInfo={token:G.B,videoId:G.videoId};n&&(h.startTime=n);Kn(X,h);var A,Y,H;G={targetVideoId:(A=G==null?void 0:G.videoId)!=null?A:"empty_video",targetCpn:c,adVideoId:(Y=L==null?void 0:L.videoId)!=null?Y:"empty_video",adClientPlaybackNonce:(H=V==null?void 0:V.cpn)!=null?H:L==null?void 0:L.clientPlaybackNonce}; +V&&(G.adBreakType=V.adBreakType,G.adType=V.adType);g.Bh(G,X);jq(d,X)}}; +Hr=function(X){G7D();V_1();X.timerName=""}; +baU=function(X){if(X.J){var c=X.J;c.G={};c.j5={}}X.U=!1;X.Z=void 0;X.G=NaN}; +tYs=function(X,c){g.$T.call(this);this.Fh=X;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.J=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.C={};this.G=0;if(X=c.session_data)this.sessionData=L1(X,"&");this.index=Math.max(0,Number(c.index)||0);this.loop=!!c.loop;this.startSeconds=Number(c.startSeconds)||0;this.title=c.playlist_title||"";this.description=c.playlist_description||"";this.author= +c.author||c.playlist_author||"";c.video_id&&(this.items[this.index]=c);if(X=c.api)typeof X==="string"&&X.length===16?c.list="PL"+X:c.playlist=X;if(X=c.list)switch(c.listType){case "user_uploads":this.listId=new xJ("UU","PLAYER_"+X);break;default:var V=c.playlist_length;V&&(this.length=Number(V)||0);this.listId=g.vp(X);if(X=c.video)this.items=X.slice(0),this.loaded=!0}else if(c.playlist){X=c.playlist.toString().split(",");this.index>0&&(this.items=[]);X=g.r(X);for(V=X.next();!V.done;V=X.next())(V= +V.value)&&this.items.push({video_id:V});this.length=this.items.length;if(X=c.video)this.items=X.slice(0),this.loaded=!0}this.setShuffle(!!c.shuffle);if(X=c.suggestedQuality)this.quality=X;this.C=Ef(c,"playlist_");this.U=(c=c.thumbnail_ids)?c.split(","):[]}; +Oaj=function(X){return!!(X.playlist||X.list||X.api)}; +lMD=function(X){var c=X.index+1;return c>=X.length?0:c}; +MY2=function(X){var c=X.index-1;return c<0?X.length-1:c}; +g.aM=function(X,c,V,G){c=c!==void 0?c:X.index;c=X.items&&c in X.items?X.items[X.order[c]]:null;var n=null;c&&(V&&(c.autoplay="1"),G&&(c.autonav="1"),n=new g.z_(X.Fh,c),g.N(X,n),n.xq=!0,n.startSeconds=X.startSeconds||n.clipStart||0,X.listId&&(n.playlistId=X.listId.toString()));return n}; +gXD=function(X,c){X.index=g.am(c,0,X.length-1);X.startSeconds=0}; +fMS=function(X,c){if(c.video&&c.video.length){X.title=c.title||"";X.description=c.description;X.views=c.views;X.likes=c.likes;X.dislikes=c.dislikes;X.author=c.author||"";var V=c.loop;V&&(X.loop=V);V=g.aM(X);X.items=[];for(var G=g.r(c.video),n=G.next();!n.done;n=G.next())if(n=n.value)n.video_id=n.encrypted_id,X.items.push(n);X.length=X.items.length;(c=c.index)?X.index=c:X.findIndex(V);X.setShuffle(!1);X.loaded=!0;X.G++;X.J&&X.J()}}; +NFD=function(X,c){var V,G,n,L,d,h,A;return g.O(function(Y){if(Y.J==1){V=g.Yy();var H=X.j(),a={context:g.dC(X),playbackContext:{contentPlaybackContext:{ancestorOrigins:H.ancestorOrigins}}},W=H.getWebPlayerContextConfig();if(W==null?0:W.encryptedHostFlags)a.playbackContext.contentPlaybackContext.encryptedHostFlags=W.encryptedHostFlags;if(W==null?0:W.hideInfo)a.playerParams={showinfo:!1};H=H.embedConfig;W=c.docid||c.video_id||c.videoId||c.id;if(!W){W=c.raw_embedded_player_response;if(!W){var w=c.embedded_player_response; +w&&(W=JSON.parse(w))}if(W){var F,Z,v,e,m,t;W=((t=g.T((F=W)==null?void 0:(Z=F.embedPreview)==null?void 0:(v=Z.thumbnailPreviewRenderer)==null?void 0:(e=v.playButton)==null?void 0:(m=e.buttonRenderer)==null?void 0:m.navigationEndpoint,g.qV))==null?void 0:t.videoId)||null}else W=null}F=(F=W)?F:void 0;Z=X.playlistId?X.playlistId:c.list;v=c.listType;if(Z){var f;v==="user_uploads"?f={username:Z}:f={playlistId:Z};pjw(H,F,c,f);a.playlistRequest=f}else c.playlist?(f={templistVideoIds:c.playlist.toString().split(",")}, +pjw(H,F,c,f),a.playlistRequest=f):F&&(f={videoId:F},H&&(f.serializedThirdPartyEmbedConfig=H),a.singleVideoRequest=f);G=a;n=g.Ln(IM1);g.x1(Y,2);return g.b(Y,g.X4(V,G,n),4)}if(Y.J!=2)return L=Y.G,d=X.j(),c.raw_embedded_player_response=L,d.NW=al(c,g.RT(d)),d.U=d.NW==="EMBEDDED_PLAYER_MODE_PFL",L&&(h=L,h.trackingParams&&th(h.trackingParams)),Y.return(new g.z_(d,c));A=g.o8(Y);A instanceof Error||(A=Error("b259802748"));g.Ni(A);return Y.return(X)})}; +pjw=function(X,c,V,G){V.index&&(G.playlistIndex=String(Number(V.index)+1));G.videoId=c?c:"";X&&(G.serializedThirdPartyEmbedConfig=X)}; +g.Wr=function(X,c){$g.get(X);$g.set(X,c)}; +g.wh=function(X){g.$T.call(this);this.loaded=!1;this.player=X}; +Unl=function(){this.G=[];this.J=[]}; +g.G$=function(X,c){return c?X.J.concat(X.G):X.J}; +g.Fc=function(X,c){switch(c.kind){case "asr":TFs(c,X.G);break;default:TFs(c,X.J)}}; +TFs=function(X,c){g.Ct(c,function(V){return X.w6(V)})||c.push(X)}; +g.Eb=function(X){g.I.call(this);this.DR=X;this.G=new Unl;this.X=null;this.Z=[];this.T=[]}; +g.rh=function(X,c,V){g.Eb.call(this,X);this.videoData=c;this.audioTrack=V;this.J=null;this.U=!1;this.Z=c.Zw;this.T=c.QG;this.U=g.pQ(c)}; +g.QD=function(X,c){return ys(X.info.mimeType)?c?X.info.itag===c:!0:!1}; +g.uhl=function(X,c){if(X.J!=null&&g.bL(c.j())&&!X.J.isManifestless&&X.J.J.rawcc!=null)return!0;if(!X.ZQ())return!1;c=!!X.J&&X.J.isManifestless&&Object.values(X.J.J).some(function(V){return g.QD(V,"386")}); +X=!!X.J&&!X.J.isManifestless&&g.U1L(X.J);return c||X}; +g.ZL=function(X,c,V,G,n,L){g.Eb.call(this,X);this.videoId=V;this.N2=n;this.eventId=L;this.B={};this.J=null;X=G||g.A3(c).hl||"";X=X.split("_").join("-");this.U=YP(c,{hl:X})}; +PRt=function(X,c){this.G=X;this.J=c;this.onFailure=void 0}; +z4D=function(X,c){return{V8:X.V8&&c.V8,N6:X.N6&&c.N6,sync:X.sync&&c.sync,streaming:X.streaming&&c.streaming}}; +vr=function(X,c){var V=BFj,G=this;this.path=X;this.U=c;this.X=V;this.capabilities={V8:!!this.U,N6:"WebAssembly"in window,sync:"WebAssembly"in window,streaming:"WebAssembly"in window&&"instantiateStreaming"in WebAssembly&&"compileStreaming"in WebAssembly};this.Z=new PRt([{name:"compileStreaming",condition:function(n){return!!G.G&&n.streaming}, +IM:xg.wc("wmcx",function(){return WebAssembly.compileStreaming(fetch(G.path))}), +onFailure:function(){return G.capabilities.streaming=!1}}, +{name:"sync",condition:function(n){return n.sync}, +IM:function(){return Fk(KEl(G),xg.wc("wmcs",function(n){return new WebAssembly.Module(n)}))}, +onFailure:function(){return G.capabilities.sync=!1}}, +{name:"async",condition:function(){return!0}, +IM:function(){return Fk(KEl(G),xg.wc("wmca",function(n){return WebAssembly.compile(n)}))}, +onFailure:function(){return G.capabilities.N6=!1}}]); +this.B=new PRt([{name:"instantiateStreaming",condition:function(n){return n.N6&&n.streaming&&!G.G&&!G.J}, +IM:function(n,L){return xg.WF("wmix",function(){return WebAssembly.instantiateStreaming(fetch(G.path),L)}).then(function(d){G.J=HV(d.module); +return{instance:d.instance,jc:!1}})}, +onFailure:function(){return G.capabilities.streaming=!1}}, +{name:"sync",condition:function(n){return n.N6&&n.sync}, +IM:function(n,L){return Fk(sZO(G,n),xg.wc("wmis",function(d){return{instance:new WebAssembly.Instance(d,L),jc:!1}}))}, +onFailure:function(){return G.capabilities.sync=!1}}, +{name:"async",condition:function(n){return n.N6}, +IM:function(n,L){return Fk(Fk(sZO(G,n),xg.wc("wmia",function(d){return WebAssembly.instantiate(d,L)})),function(d){return{instance:d, +jc:!1}})}, +onFailure:function(){return G.capabilities.N6=!1}}, +{name:"asmjs",condition:function(n){return n.V8}, +IM:function(n,L){return HV(xg.WF("wmij",function(){return G.U(L)}).then(function(d){return{instance:{exports:d}, +jc:!0}}))}, +onFailure:function(){return G.capabilities.V8=!1}}],function(n,L,d){return G.X(d,n.instance.exports)})}; +Spl=function(X){var c=CRs;return c.instantiate(X?z4D(c.capabilities,X):c.capabilities,new Dn2)}; +KEl=function(X){if(X.G)return X.G;var c=fetch(X.path).then(function(V){return V.arrayBuffer()}).then(function(V){X.G=HV(V); +return V}).then(void 0,function(V){g.UQ(Error("wasm module fetch failure: "+V.message,{cause:V})); +X.G=void 0;throw V;}); +X.G=HV(c);return X.G}; +sZO=function(X,c){if(!c.N6)return $0(Error("wasm unavailable"));if(X.J)return X.J;X.J=EM(Fk(X.compile(c),function(V){X.J=HV(V);return V}),function(V){g.UQ(Error("wasm module compile failure: "+V.message,{cause:V})); +X.J=void 0;throw V;}); +return X.J}; +ias=function(){}; +qp8=function(){var X=this;this.proc_exit=function(){}; +this.fd_write=function(c,V,G){if(!X.exports)return 1;c=new Uint32Array(X.exports.memory.buffer,V,G*2);V=[];for(var n=0;n=11;X=X.api.j().T&&lV;return!(!c&&!X)}; +z$=function(X,c){return!X.api.isInline()&&!fW2(X,Rl(c))&&g.bG(c)}; +gtl=function(X){X.zY.dQ();if(X.BH&&X.y5)X.y5=!1;else if(!X.api.j().Hl&&!X.hQ()){var c=X.api.getPlayerStateObject();g.B(c,2)&&g.Jt(X.api)||X.fz(c);!X.api.j().NE||c.isCued()||g.B(c,1024)?X.B3():X.xG.isActive()?(X.nk(),X.xG.stop()):X.xG.start()}}; +IWS=function(X,c){var V;if((V=X.api.getVideoData())==null?0:V.mutedAutoplay){var G,n;if((G=c.target)==null?0:(n=G.className)==null?0:n.includes("ytp-info-panel"))return!1}return g.bG(c)&&X.api.isMutedByMutedAutoplay()?(X.api.unMute(),X.api.getPresentingPlayerType()===2&&X.api.playVideo(),c=X.api.getPlayerStateObject(),!g.B(c,4)||g.B(c,8)||g.B(c,2)||X.B3(),!0):!1}; +Nu8=function(X,c,V){X.api.isFullscreen()?V<1-c&&X.api.toggleFullscreen():V>1+c&&X.api.toggleFullscreen()}; +MQD=function(X){var c=sE()&&B3()>=67&&!X.api.j().T;X=X.api.j().disableOrganicUi;return!g.K1("tizen")&&!e3&&!c&&!X}; +g.Br=function(X){g.z.call(this,{N:"div",V:[{N:"div",Y:"ytp-bezel-text-wrapper",V:[{N:"div",Y:"ytp-bezel-text",Uy:"{{title}}"}]},{N:"div",Y:"ytp-bezel",K:{role:"status","aria-label":"{{label}}"},V:[{N:"div",Y:"ytp-bezel-icon",Uy:"{{icon}}"}]}]});this.W=X;this.G=new g.qR(this.show,10,this);X=this.W.S("delhi_modern_web_player")?1E3:500;this.J=new g.qR(this.hide,X,this);g.N(this,this.G);g.N(this,this.J);this.hide()}; +sb=function(X,c,V){if(c<=0){V=f3();c="muted";var G=0}else V=V?{N:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{N:"path",k9:!0,K:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{N:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{N:"path",k9:!0,K:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z", +fill:"#fff"}}]},G=Math.floor(c),c=G+"volume";KE(X,V,c,G+"%")}; +UED=function(X,c){c=c?{N:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{N:"path",k9:!0,Y:"ytp-svg-fill",K:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:RpD();var V=X.W.getPlaybackRate(),G=g.xa("Speed is $RATE",{RATE:String(V)});KE(X,c,G,V+"x")}; +TuS=function(X,c){c=c?"Subtitles/closed captions on":"Subtitles/closed captions off";KE(X,YMO(),c)}; +KE=function(X,c,V,G){G=G===void 0?"":G;X.updateValue("label",V===void 0?"":V);X.updateValue("icon",c);g.VO(X.J);X.G.start();X.updateValue("title",G);g.ab(X.element,"ytp-bezel-text-hide",!G)}; +uDO=function(X,c){g.z.call(this,{N:"button",xO:["ytp-button","ytp-cards-button"],K:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.RT(X.j()))},V:[{N:"span",Y:"ytp-cards-button-icon-default",V:[{N:"div",Y:"ytp-cards-button-icon",V:[X.j().S("player_new_info_card_format")?O$L():{N:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{N:"path",k9:!0,Y:"ytp-svg-fill",K:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]}, +{N:"div",Y:"ytp-cards-button-title",Uy:"Info"}]},{N:"span",Y:"ytp-cards-button-icon-shopping",V:[{N:"div",Y:"ytp-cards-button-icon",V:[{N:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{N:"path",Y:"ytp-svg-shadow",K:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{N:"path",Y:"ytp-svg-fill",K:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z", +"fill-opacity":"1"}},{N:"path",Y:"ytp-svg-shadow-fill",K:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{N:"div", +Y:"ytp-cards-button-title",Uy:"Shopping"}]}]});this.W=X;this.G=c;this.J=null;this.fade=new g.yP(this,250,!0,100);g.N(this,this.fade);g.ab(this.G,"ytp-show-cards-title",g.RT(X.j()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.sK(!0)}; +Ps2=function(X,c){g.z.call(this,{N:"div",Y:"ytp-cards-teaser",V:[{N:"div",Y:"ytp-cards-teaser-box"},{N:"div",Y:"ytp-cards-teaser-text",V:X.j().S("player_new_info_card_format")?[{N:"button",Y:"ytp-cards-teaser-info-icon",K:{"aria-label":"Show cards","aria-haspopup":"true"},V:[O$L()]},{N:"span",Y:"ytp-cards-teaser-label",Uy:"{{text}}"},{N:"button",Y:"ytp-cards-teaser-close-button",K:{"aria-label":"Close"},V:[g.Jy()]}]:[{N:"span",Y:"ytp-cards-teaser-label",Uy:"{{text}}"}]}]});var V=this;this.W=X;this.uj= +c;this.fade=new g.yP(this,250,!1,250);this.J=null;this.D=new g.qR(this.U62,300,this);this.B=new g.qR(this.R6c,2E3,this);this.X=[];this.G=null;this.T=new g.qR(function(){V.element.style.margin="0"},250); +this.onClickCommand=this.U=null;g.N(this,this.fade);g.N(this,this.D);g.N(this,this.B);g.N(this,this.T);X.j().S("player_new_info_card_format")?(g.Ax(X.getRootNode(),"ytp-cards-teaser-dismissible"),this.L(this.I2("ytp-cards-teaser-close-button"),"click",this.r5),this.L(this.I2("ytp-cards-teaser-info-icon"),"click",this.eJ),this.L(this.I2("ytp-cards-teaser-label"),"click",this.eJ)):this.listen("click",this.eJ);this.L(c.element,"mouseover",this.rD);this.L(c.element,"mouseout",this.Ds);this.L(X,"cardsteasershow", +this.BsS);this.L(X,"cardsteaserhide",this.QZ);this.L(X,"cardstatechange",this.gf);this.L(X,"presentingplayerstatechange",this.gf);this.L(X,"appresize",this.Y0);this.L(X,"onShowControls",this.Y0);this.L(X,"onHideControls",this.Fo);this.listen("mouseenter",this.p_)}; +zVL=function(X){g.z.call(this,{N:"button",xO:[CE.BUTTON,CE.TITLE_NOTIFICATIONS],K:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},V:[{N:"div",Y:CE.TITLE_NOTIFICATIONS_ON,K:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},V:[g.bd()]},{N:"div",Y:CE.TITLE_NOTIFICATIONS_OFF,K:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},V:[{N:"svg",K:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},V:[{N:"path",K:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]}); +this.api=X;this.J=!1;X.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Get notified about every new video")}; +Bul=function(X,c){X.J=c;X.element.classList.toggle(CE.NOTIFICATIONS_ENABLED,X.J);var V=X.api.getVideoData();V?(c=c?V.YZ:V.D1)?(X=X.api.iF())?qp(X,c):g.Ni(Error("No innertube service available when updating notification preferences.")):g.Ni(Error("No update preferences command available.")):g.Ni(Error("No video data when updating notification preferences."))}; +sBO=function(X,c,V){var G=G===void 0?800:G;var n=n===void 0?600:n;var L=document.location.protocol;X=kVl(L+"//"+X+"/signin?context=popup","feature",c,"next",L+"//"+location.hostname+"/post_login");Kks(X,V,G,n)}; +Kks=function(X,c,V,G){V=V===void 0?800:V;G=G===void 0?600:G;if(X=g.U9(window,X,"loginPopup","width="+V+",height="+G+",resizable=yes,scrollbars=yes"))mlL(function(){c()}),X.moveTo((screen.width-V)/2,(screen.height-G)/2)}; +g.DL=function(X,c,V,G,n,L,d,h,A,Y,H,a){X=X.charAt(0)+X.substring(1).toLowerCase();V=V.charAt(0)+V.substring(1).toLowerCase();if(c==="0"||c==="-1")c=null;if(G==="0"||G==="-1")G=null;var W=H.j(),w=W.userDisplayName&&g.g0(W);g.z.call(this,{N:"div",xO:["ytp-button","ytp-sb"],V:[{N:"div",Y:"ytp-sb-subscribe",K:w?{title:g.xa("Subscribe as $USER_NAME",{USER_NAME:W.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":G_(W),"data-tooltip-opaque":String(g.RT(W)),tabindex:"0",role:"button"}: +{"aria-label":"Subscribe to channel"},V:[{N:"div",Y:"ytp-sb-text",V:[{N:"div",Y:"ytp-sb-icon"},X]},c?{N:"div",Y:"ytp-sb-count",Uy:c}:""]},{N:"div",Y:"ytp-sb-unsubscribe",K:w?{title:g.xa("Subscribed as $USER_NAME",{USER_NAME:W.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":G_(W),"data-tooltip-opaque":String(g.RT(W)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},V:[{N:"div",Y:"ytp-sb-text",V:[{N:"div",Y:"ytp-sb-icon"},V]},G?{N:"div",Y:"ytp-sb-count", +Uy:G}:""]}],K:{"aria-live":"polite"}});var F=this;this.channelId=d;this.W=H;this.U=a;var Z=this.I2("ytp-sb-subscribe"),v=this.I2("ytp-sb-unsubscribe");L&&g.Ax(this.element,"ytp-sb-classic");if(n){h?this.J():this.G();var e=function(){if(W.kO){var t=F.channelId;if(A||Y){var f={c:t};var U;g.g1.isInitialized()&&(U=Ruj(f));f=U||"";if(U=H.getVideoData())if(U=U.subscribeCommand){var C=H.iF();C?(qp(C,U,{botguardResponse:f,feature:A}),H.z_("SUBSCRIBE",t)):g.Ni(Error("No innertube service available when updating subscriptions."))}else g.Ni(Error("No subscribe command in videoData.")); +else g.Ni(Error("No video data available when updating subscription."))}v.focus();v.removeAttribute("aria-hidden");Z.setAttribute("aria-hidden","true")}else sBO(g.BD(F.W.j()),"sb_button",F.X)},m=function(){var t=F.channelId; +if(A||Y){var f=H.getVideoData();qp(H.iF(),f.unsubscribeCommand,{feature:A});H.z_("UNSUBSCRIBE",t)}Z.focus();Z.removeAttribute("aria-hidden");v.setAttribute("aria-hidden","true")}; +this.L(Z,"click",e);this.L(v,"click",m);this.L(Z,"keypress",function(t){t.keyCode===13&&e(t)}); +this.L(v,"keypress",function(t){t.keyCode===13&&m(t)}); +this.L(H,"SUBSCRIBE",this.J);this.L(H,"UNSUBSCRIBE",this.G);this.U&&w&&(K7L(H),kz(H,Z,this),kz(H,v,this))}else g.Ax(Z,"ytp-sb-disabled"),g.Ax(v,"ytp-sb-disabled")}; +SB1=function(X){g.z.call(this,{N:"div",Y:"ytp-title-channel",V:[{N:"div",Y:"ytp-title-beacon"},{N:"a",Y:"ytp-title-channel-logo",K:{href:"{{channelLink}}",target:X.j().C,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{N:"div",Y:"ytp-title-expanded-overlay",K:{"aria-hidden":"{{flyoutUnfocusable}}"},V:[{N:"div",Y:"ytp-title-expanded-heading",V:[{N:"div",Y:"ytp-title-expanded-title",V:[{N:"a",Uy:"{{expandedTitle}}",K:{href:"{{channelTitleLink}}",target:X.j().C,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", +tabIndex:"{{channelTitleFocusable}}"}}]},{N:"div",Y:"ytp-title-expanded-subtitle",Uy:"{{expandedSubtitle}}",K:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var c=this;this.api=X;this.channel=this.I2("ytp-title-channel");this.G=this.I2("ytp-title-channel-logo");this.channelName=this.I2("ytp-title-expanded-title");this.B=this.I2("ytp-title-expanded-overlay");this.U=this.J=this.subscribeButton=null;this.X=!1;X.createClientVe(this.G,this,36925);X.createClientVe(this.channelName,this, +37220);g.RT(this.api.j())&&Cs8(this);this.L(X,"videodatachange",this.pS);this.L(X,"videoplayerreset",this.pS);this.L(this.channelName,"click",function(V){c.api.logClick(c.channelName);g.U9(window,DEO(c));V.preventDefault()}); +this.L(this.G,"click",this.c12);this.pS()}; +iqj=function(X){if(!X.api.j().Od){var c=X.api.getVideoData(),V=new g.DL("Subscribe",null,"Subscribed",null,!0,!1,c.F7,c.subscribed,"channel_avatar",null,X.api,!0);X.api.createServerVe(V.element,X);var G;X.api.setTrackingParams(V.element,((G=c.subscribeButtonRenderer)==null?void 0:G.trackingParams)||null);X.L(V.element,"click",function(){X.api.logClick(V.element)}); +X.subscribeButton=V;g.N(X,X.subscribeButton);X.subscribeButton.uc(X.B);X.subscribeButton.hide();var n=new zVL(X.api);X.J=n;g.N(X,n);n.uc(X.B);n.hide();X.L(X.api,"SUBSCRIBE",function(){c.mu&&(n.show(),X.api.logVisibility(n.element,!0))}); +X.L(X.api,"UNSUBSCRIBE",function(){c.mu&&(n.hide(),X.api.logVisibility(n.element,!1),Bul(n,!1))})}}; +Cs8=function(X){var c=X.api.j();iqj(X);X.updateValue("flyoutUnfocusable","true");X.updateValue("channelTitleFocusable","-1");X.updateValue("shouldHideExpandedTitleForA11y","true");X.updateValue("shouldHideExpandedSubtitleForA11y","true");c.G||c.YO||(X.L(X.channel,"mouseenter",X.QS),X.L(X.channel,"mouseleave",X.dw),X.L(X.channel,"focusin",X.QS),X.L(X.channel,"focusout",function(V){X.channel.contains(V.relatedTarget)||X.dw()})); +X.U=new g.qR(function(){X.isExpanded()&&(X.api.logVisibility(X.channelName,!1),X.subscribeButton&&(X.subscribeButton.hide(),X.api.logVisibility(X.subscribeButton.element,!1)),X.J&&(X.J.hide(),X.api.logVisibility(X.J.element,!1)),X.channel.classList.remove("ytp-title-expanded"),X.channel.classList.add("ytp-title-show-collapsed"))},500); +g.N(X,X.U);X.L(X.channel,qBs,function(){Xxj(X)}); +X.L(X.api,"onHideControls",X.Y5);X.L(X.api,"appresize",X.Y5);X.L(X.api,"fullscreentoggled",X.Y5)}; +Xxj=function(X){X.channel.classList.remove("ytp-title-show-collapsed");X.channel.classList.remove("ytp-title-show-expanded")}; +cT1=function(X){var c=X.api.getPlayerSize();return g.RT(X.api.j())&&c.width>=524}; +DEO=function(X){var c=X.api.j(),V=X.api.getVideoData(),G=g.nW(c)+V.NE;g.n9(V)&&(G="https://music.youtube.com"+V.NE);if(!g.RT(c))return G;c={};g.jZ(X.api,"addEmbedsConversionTrackingParams",[c]);return g.KB(G,c)}; +Sq=function(X){var c=g.sN({"aria-haspopup":"true"});g.K9.call(this,c,X);this.listen("keydown",this.J)}; +iV=function(X,c){X.element.setAttribute("aria-haspopup",String(c))}; +VcS=function(X,c){g.z.call(this,{N:"div",Y:"ytp-user-info-panel",K:{"aria-label":"User info"},V:X.j().kO&&!X.S("embeds_web_always_enable_signed_out_state")?[{N:"div",Y:"ytp-user-info-panel-icon",Uy:"{{icon}}"},{N:"div",Y:"ytp-user-info-panel-content",V:[{N:"div",Y:"ytp-user-info-panel-info",K:{tabIndex:"{{userInfoFocusable}}",role:"text"},Uy:"{{watchingAsUsername}}"},{N:"div",Y:"ytp-user-info-panel-info",K:{tabIndex:"{{userInfoFocusable2}}",role:"text"},Uy:"{{watchingAsEmail}}"}]}]:[{N:"div",Y:"ytp-user-info-panel-icon", +Uy:"{{icon}}"},{N:"div",Y:"ytp-user-info-panel-content",V:[{N:"div",V:[{N:"text",K:{tabIndex:"{{userInfoFocusable}}"},Uy:"Signed out"}]},{N:"div",Y:"ytp-user-info-panel-login",V:[{N:"a",K:{tabIndex:"{{userInfoFocusable2}}",role:"button"},Uy:X.j().Od?"":"Sign in on YouTube"}]}]}]});this.DR=X;this.J=c;X.j().kO||X.j().Od||this.L(this.I2("ytp-user-info-panel-login"),"click",this.bI);this.closeButton=new g.z({N:"button",xO:["ytp-collapse","ytp-button"],K:{title:"Close"},V:[g.gP()]});this.closeButton.uc(this.element); +g.N(this,this.closeButton);this.L(window,"blur",this.hide);this.L(document,"click",this.Ye);this.pS()}; +nxL=function(X,c,V){g.J_.call(this,X);this.PP=c;this.nE=V;this.getVideoUrl=new Sq(6);this.oC=new Sq(5);this.MX=new Sq(4);this.J1=new Sq(3);this.ud=new g.K9(g.sN({href:"{{href}}",target:this.W.j().C},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.K9(g.sN(),1,"Stats for nerds");this.W7=new g.rP({N:"div",xO:["ytp-copytext","ytp-no-contextmenu"],K:{draggable:"false",tabindex:"1"},Uy:"{{text}}"});this.Wt=new e2(this.W,this.W7);this.Bk=this.QV=null;g.RT(this.W.j())&&(this.closeButton= +new g.z({N:"button",xO:["ytp-collapse","ytp-button"],K:{title:"Close"},V:[g.gP()]}),g.N(this,this.closeButton),this.closeButton.uc(this.element),this.closeButton.listen("click",this.Pv,this));g.RT(this.W.j())&&(this.hv=new g.K9(g.sN(),8,"Account"),g.N(this,this.hv),this.Y9(this.hv,!0),this.hv.listen("click",this.ILW,this),X.createClientVe(this.hv.element,this.hv,137682));this.W.j().H5&&(this.lV=new nz("Loop",7),g.N(this,this.lV),this.Y9(this.lV,!0),this.lV.listen("click",this.qHR,this),X.createClientVe(this.lV.element, +this.lV,28661));g.N(this,this.getVideoUrl);this.Y9(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.l3O,this);X.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.N(this,this.oC);this.Y9(this.oC,!0);this.oC.listen("click",this.zf7,this);X.createClientVe(this.oC.element,this.oC,28660);g.N(this,this.MX);this.Y9(this.MX,!0);this.MX.listen("click",this.MrW,this);X.createClientVe(this.MX.element,this.MX,28658);g.N(this,this.J1);this.Y9(this.J1,!0);this.J1.listen("click",this.jy_, +this);g.N(this,this.ud);this.Y9(this.ud,!0);this.ud.listen("click",this.gcS,this);g.N(this,this.showVideoInfo);this.Y9(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.aLS,this);g.N(this,this.W7);this.W7.listen("click",this.Dic,this);g.N(this,this.Wt);c=document.queryCommandSupported&&document.queryCommandSupported("copy");s8s("Chromium")>=43&&(c=!0);s8s("Firefox")<=40&&(c=!1);c&&(this.QV=new g.z({N:"textarea",Y:"ytp-html5-clipboard",K:{readonly:"",tabindex:"-1"}}),g.N(this,this.QV), +this.QV.uc(this.element));var G;(G=this.hv)==null||G.setIcon(fsD());var n;(n=this.lV)==null||n.setIcon({N:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{N:"path",K:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});this.J1.setIcon({N:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{N:"path",K:{"clip-rule":"evenodd",d:"M20 10V8H17.19C16.74 7.22 16.12 6.54 15.37 6.04L17 4.41L15.59 3L13.42 5.17C13.39 5.16 13.37 5.16 13.34 5.16C13.18 5.12 13.02 5.1 12.85 5.07C12.79 5.06 12.74 5.05 12.68 5.04C12.46 5.02 12.23 5 12 5C11.51 5 11.03 5.07 10.58 5.18L10.6 5.17L8.41 3L7 4.41L8.62 6.04H8.63C7.88 6.54 7.26 7.22 6.81 8H4V10H6.09C6.03 10.33 6 10.66 6 11V12H4V14H6V15C6 15.34 6.04 15.67 6.09 16H4V18H6.81C7.85 19.79 9.78 21 12 21C14.22 21 16.15 19.79 17.19 18H20V16H17.91C17.96 15.67 18 15.34 18 15V14H20V12H18V11C18 10.66 17.96 10.33 17.91 10H20ZM16 15C16 17.21 14.21 19 12 19C9.79 19 8 17.21 8 15V11C8 8.79 9.79 7 12 7C14.21 7 16 8.79 16 11V15ZM10 14H14V16H10V14ZM10 10H14V12H10V10Z", +fill:"white","fill-rule":"evenodd"}}]});this.ud.setIcon(b$8());this.showVideoInfo.setIcon(tA8());this.L(X,"onLoopChange",this.onLoopChange);this.L(X,"videodatachange",this.onVideoDataChange);G0l(this);this.Ok(this.W.getVideoData())}; +qq=function(X,c){var V=!1;if(X.QV){var G=X.QV.element;G.value=c;G.select();try{V=document.execCommand("copy")}catch(n){}}V?X.PP.QZ():(X.W7.AT(c,"text"),g.t_(X.PP,X.Wt),Aw(X.W7.element),X.QV&&(X.QV=null,G0l(X)));return V}; +G0l=function(X){var c=!!X.QV;g.BO(X.J1,c?"Copy debug info":"Get debug info");iV(X.J1,!c);g.BO(X.MX,c?"Copy embed code":"Get embed code");iV(X.MX,!c);g.BO(X.getVideoUrl,c?"Copy video URL":"Get video URL");iV(X.getVideoUrl,!c);g.BO(X.oC,c?"Copy video URL at current time":"Get video URL at current time");iV(X.oC,!c);X.MX.setIcon(c?Jas():null);X.getVideoUrl.setIcon(c?md():null);X.oC.setIcon(c?md():null)}; +Lys=function(X){return g.RT(X.W.j())?X.hv:X.lV}; +yT1=function(X,c){g.be.call(this,X);this.nE=c;this.X=new g.U3(this);this.G_=new g.qR(this.SNc,1E3,this);this.A7=this.U=null;g.N(this,this.X);g.N(this,this.G_);c=this.W.j();X.createClientVe(this.element,this,28656);g.Ax(this.element,"ytp-contextmenu");this.W.j().experiments.lc("delhi_modern_web_player")&&g.S3(c)&&g.Ax(this.element,"ytp-delhi-modern-contextmenu");dyL(this);this.hide()}; +dyL=function(X){g.l5(X.X);var c=X.W.j();c.playerStyle==="gvn"||c.G||c.YO||(c=X.W.CS(),X.X.L(c,"contextmenu",X.ZMK),X.X.L(c,"touchstart",X.onTouchStart,null,!0),X.X.L(c,"touchmove",X.wG,null,!0),X.X.L(c,"touchend",X.wG,null,!0))}; +hht=function(X){X.W.isFullscreen()?g.M$(X.W,X.element,10):X.uc(uc(X).body)}; +XU=function(X,c,V){V=V===void 0?240:V;g.z.call(this,{N:"button",xO:["ytp-button","ytp-copylink-button"],K:{title:"{{title-attr}}","data-tooltip-opaque":String(g.RT(X.j()))},V:[{N:"div",Y:"ytp-copylink-icon",Uy:"{{icon}}"},{N:"div",Y:"ytp-copylink-title",Uy:"Copy link",K:{"aria-hidden":"true"}}]});this.api=X;this.J=c;this.G=V;this.visible=!1;this.tooltip=this.J.ai();c=X.j();this.tooltip.element.setAttribute("aria-live","polite");g.ab(this.element,"ytp-show-copylink-title",g.RT(c));X.createClientVe(this.element, +this,86570);this.listen("click",this.onClick);this.L(X,"videodatachange",this.pS);this.L(X,"videoplayerreset",this.pS);this.L(X,"appresize",this.pS);this.pS();this.addOnDisposeCallback(g.vO(this.tooltip,this.element))}; +ATw=function(X){var c=X.api.j(),V=X.api.getVideoData(),G=X.api.CS().getPlayerSize().width;c=c.U;return!!V.videoId&&G>=X.G&&V.EY&&!g.Vf(V)&&!X.api.isEmbedsShortsMode()&&!c}; +Y0D=function(X){X.updateValue("icon",kT());if(X.api.j().G)X.tooltip.j9(X.element,"Link copied to clipboard");else{X.updateValue("title-attr","Link copied to clipboard");X.tooltip.hC();X.tooltip.j9(X.element);var c=X.listen("mouseleave",function(){X.Hd(c);X.pS();X.tooltip.v1()})}}; +j$O=function(X,c){return g.O(function(V){if(V.J==1)return g.x1(V,2),g.b(V,navigator.clipboard.writeText(c),4);if(V.J!=2)return V.return(!0);g.o8(V);var G=V.return,n=!1,L=g.Vj("TEXTAREA");L.value=c;L.setAttribute("readonly","");var d=X.api.getRootNode();d.appendChild(L);if(iE){var h=window.getSelection();h.removeAllRanges();var A=document.createRange();A.selectNodeContents(L);h.addRange(A);L.setSelectionRange(0,c.length)}else L.select();try{n=document.execCommand("copy")}catch(Y){}d.removeChild(L); +return G.call(V,n)})}; +cz=function(X){g.z.call(this,{N:"div",Y:"ytp-doubletap-ui-legacy",V:[{N:"div",Y:"ytp-doubletap-fast-forward-ve"},{N:"div",Y:"ytp-doubletap-rewind-ve"},{N:"div",Y:"ytp-doubletap-static-circle",V:[{N:"div",Y:"ytp-doubletap-ripple"}]},{N:"div",Y:"ytp-doubletap-overlay-a11y"},{N:"div",Y:"ytp-doubletap-seek-info-container",V:[{N:"div",Y:"ytp-doubletap-arrows-container",V:[{N:"span",Y:"ytp-doubletap-base-arrow"},{N:"span",Y:"ytp-doubletap-base-arrow"},{N:"span",Y:"ytp-doubletap-base-arrow"}]},{N:"div", +Y:"ytp-doubletap-tooltip",V:[{N:"div",Y:"ytp-seek-icon-text-container",V:[{N:"div",Y:"ytp-seek-icon",Uy:"{{seekIcon}}"},{N:"div",Y:"ytp-chapter-seek-text-legacy",Uy:"{{seekText}}"}]},{N:"div",Y:"ytp-doubletap-tooltip-label",Uy:"{{seekTime}}"}]}]}]});this.W=X;this.X=new g.qR(this.show,10,this);this.G=new g.qR(this.hide,700,this);this.D=this.U=0;this.G_=this.B=!1;this.J=this.I2("ytp-doubletap-static-circle");g.N(this,this.X);g.N(this,this.G);this.hide();this.T=this.I2("ytp-doubletap-fast-forward-ve"); +this.C=this.I2("ytp-doubletap-rewind-ve");this.W.createClientVe(this.T,this,28240);this.W.createClientVe(this.C,this,28239);this.W.logVisibility(this.T,!0);this.W.logVisibility(this.C,!0);this.B=X.S("web_show_cumulative_seek_time");this.G_=X.S("web_center_static_circles")}; +VX=function(X,c,V,G){if(G=G===void 0?null:G){var n=c===-1?X.C.visualElement:X.T.visualElement;G={seekData:G};var L=g.tU();L&&g.Gx(n3)(void 0,L,n,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",G,void 0)}X.U=c===X.D?X.U+V:V;X.D=c;n=X.W.CS().getPlayerSize();X.B?X.G.stop():g.VO(X.G);X.X.start();X.element.setAttribute("data-side",c===-1?"back":"forward");g.Ax(X.element,"ytp-time-seeking");X.J.style.width="110px";X.J.style.height="110px";G=n.width*.1-15;c===1?X.G_?(X.J.style.right=G+"px",X.J.style.left=""): +(X.J.style.right="",X.J.style.left=n.width*.8-30+"px"):c===-1&&(X.G_?(X.J.style.right="",X.J.style.left=G+"px"):(X.J.style.right="",X.J.style.left=n.width*.1-15+"px"));X.J.style.top=n.height*.5+15+"px";HhD(X,X.B?X.U:V)}; +Gi=function(X,c,V,G){G=G===void 0?null:G;g.VO(X.G);X.X.start();switch(c){case -1:c="back";break;case 1:c="forward";break;default:c=""}X.element.setAttribute("data-side",c);X.J.style.width="0";X.J.style.height="0";g.Ax(X.element,"ytp-chapter-seek");X.updateValue("seekText",V);X.updateValue("seekTime","");V=X.I2("ytp-seek-icon");if(G){a:if(G){switch(G){case "PREMIUM_STANDALONE":G={N:"svg",K:{height:"24px",version:"1.1",viewBox:"-2 -2 24 24",width:"24px"},V:[{N:"path",K:{d:"M 0 1.43 C 0 .64 .64 0 1.43 0 L 18.56 0 C 19.35 0 20 .64 20 1.43 L 20 18.56 C 20 19.35 19.35 20 18.56 20 L 1.43 20 C .64 20 0 19.35 0 18.56 Z M 0 1.43 ", +fill:"#c00"}},{N:"path",K:{d:"M 7.88 11.42 L 7.88 15.71 L 5.37 15.71 L 5.37 3.52 L 10.12 3.52 C 11.04 3.52 11.84 3.69 12.54 4.02 C 13.23 4.36 13.76 4.83 14.14 5.45 C 14.51 6.07 14.70 6.77 14.70 7.56 C 14.70 8.75 14.29 9.69 13.48 10.38 C 12.66 11.07 11.53 11.42 10.08 11.42 Z M 7.88 9.38 L 10.12 9.38 C 10.79 9.38 11.30 9.23 11.64 8.91 C 11.99 8.60 12.17 8.16 12.17 7.57 C 12.17 6.98 11.99 6.5 11.64 6.12 C 11.29 5.76 10.80 5.57 10.18 5.56 L 7.88 5.56 Z M 7.88 9.38 ",fill:"#fff","fill-rule":"nonzero"}}]}; +break a;case "PREMIUM_STANDALONE_CAIRO":G={N:"svg",K:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{N:"rect",K:{fill:"white",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{N:"rect",K:{fill:"url(#ytp-premium-standalone-gradient)",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{N:"path",K:{d:"M12.75 13.02H9.98V11.56H12.75C13.24 11.56 13.63 11.48 13.93 11.33C14.22 11.17 14.44 10.96 14.58 10.68C14.72 10.40 14.79 10.09 14.79 9.73C14.79 9.39 14.72 9.08 14.58 8.78C14.44 8.49 14.22 8.25 13.93 8.07C13.63 7.89 13.24 7.80 12.75 7.80H10.54V17H8.70V6.33H12.75C13.58 6.33 14.28 6.48 14.86 6.77C15.44 7.06 15.88 7.46 16.18 7.97C16.48 8.48 16.64 9.06 16.64 9.71C16.64 10.40 16.48 10.99 16.18 11.49C15.88 11.98 15.44 12.36 14.86 12.62C14.28 12.89 13.58 13.02 12.75 13.02Z", +fill:"white"}},{N:"defs",V:[{N:"linearGradient",K:{gradientUnits:"userSpaceOnUse",id:"ytp-premium-standalone-gradient",x1:"2",x2:"22",y1:"22",y2:"2"},V:[{N:"stop",K:{offset:"0.3","stop-color":"#E1002D"}},{N:"stop",K:{offset:"0.9","stop-color":"#E01378"}}]}]}]};break a}G=void 0}else G=null;X.updateValue("seekIcon",G);V.style.display="inline-block"}else V.style.display="none"}; +HhD=function(X,c){c=g.xa("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:c.toString()});X.updateValue("seekTime",c)}; +a3D=function(X){oi.call(this,X,!1,!0);this.NW=[];this.Ly=[];this.T=!0;this.badge.element.classList.add("ytp-featured-product");this.Pl=new g.z({N:"div",Y:"ytp-featured-product-open-in-new"});g.N(this,this.Pl);this.countdownTimer=new g.z({N:"text",Y:"ytp-featured-product-countdown",Uy:"{{content}}"});this.countdownTimer.hide();g.N(this,this.countdownTimer);this.G=new g.z({N:"div",Y:"ytp-featured-product-trending",V:[{N:"div",Y:"ytp-featured-product-trending-icon"},{N:"text",Y:"ytp-featured-product-trending-text", +Uy:"{{trendingOffer}}"}]});this.G.hide();g.N(this,this.G);this.overflowButton=new g.z({N:"button",xO:["ytp-featured-product-overflow-icon","ytp-button"],K:{"aria-haspopup":"true"}});this.overflowButton.hide();g.N(this,this.overflowButton);this.D=new g.z({N:"text",Y:"ytp-featured-product-exclusive-countdown",Uy:"{{content}}",K:{id:"exclusiveCountdown","aria-hidden":"true"}});this.D.hide();g.N(this,this.D);this.B=new g.z({N:"div",Y:"ytp-featured-product-exclusive-container",K:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"}, +V:[{N:"div",Y:"ytp-featured-product-exclusive-badge-container",V:[{N:"div",Y:"ytp-featured-product-exclusive-badge",V:[{N:"text",Y:"ytp-featured-product-exclusive-badge-text",Uy:"{{exclusive}}",K:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.D]});this.B.hide();g.N(this,this.B);this.banner=new g.z({N:"a",Y:"ytp-featured-product-container",V:[{N:"div",Y:"ytp-featured-product-thumbnail",V:[{N:"img",K:{src:"{{thumbnail}}"}},this.Pl]},{N:"div",Y:"ytp-featured-product-details",V:[{N:"text",Y:"ytp-featured-product-title", +Uy:"{{title}}"},this.W.S("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{N:"div",Y:"ytp-featured-product-price-container",K:{"aria-label":"{{priceA11yText}}"},V:[{N:"text",Y:"ytp-featured-product-price-when-promotion-text-enabled",Uy:"{{price}}",K:{"aria-hidden":"true"}},{N:"text",Y:"ytp-featured-product-promotion-text",Uy:"{{promotionText}}",K:{"aria-hidden":"true"}}]}:{N:"div",K:{"aria-label":"{{priceA11yText}}"},V:[{N:"text",Y:"ytp-featured-product-price",Uy:"{{price}}", +K:{"aria-hidden":"true"}},{N:"text",Y:"ytp-featured-product-sales-original-price",Uy:"{{salesOriginalPrice}}",K:{"aria-hidden":"true"}},{N:"text",Y:"ytp-featured-product-price-drop-reference-price",Uy:"{{priceDropReferencePrice}}",K:{"aria-hidden":"true"}}]},this.W.S("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{N:"div",Y:"ytp-featured-product-when-promotion-text-enabled",V:[{N:"text",Y:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",Uy:"{{affiliateDisclaimer}}"}, +this.G,{N:"text",Y:"ytp-featured-product-vendor-when-promotion-text-enabled",Uy:"{{vendor}}"}]}:{N:"div",V:[{N:"text",Y:"ytp-featured-product-affiliate-disclaimer",Uy:"{{affiliateDisclaimer}}"},this.W.S("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.B:null,this.G,{N:"text",Y:"ytp-featured-product-vendor",Uy:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.N(this,this.banner);this.banner.uc(this.U.element);this.L(this.W,g.jw("featured_product"),this.GyS);this.L(this.W, +g.HQ("featured_product"),this.N4);this.L(this.W,"videodatachange",this.onVideoDataChange);this.L(this.overflowButton.element,"click",this.iI);this.L(X,"featuredproductdismissed",this.JF)}; +$yU=function(X){var c,V;X=(c=X.J)==null?void 0:(V=c.bannerData)==null?void 0:V.itemData;var G,n,L;return(X==null||!X.affiliateDisclaimer)&&(X==null?0:(G=X.exclusivesData)==null?0:G.exclusiveOfferLabelText)&&(X==null?0:(n=X.exclusivesData)==null?0:n.expirationTimestampMs)&&(X==null?0:(L=X.exclusivesData)==null?0:L.exclusiveOfferCountdownText)?!0:!1}; +wxw=function(X){var c,V,G,n,L=(c=X.J)==null?void 0:(V=c.bannerData)==null?void 0:(G=V.itemData)==null?void 0:(n=G.exclusivesData)==null?void 0:n.expirationTimestampMs;c=(Number(L)-Date.now())/1E3;if(c>0){if(c<604800){var d,h,A,Y;V=(d=X.J)==null?void 0:(h=d.bannerData)==null?void 0:(A=h.itemData)==null?void 0:(Y=A.exclusivesData)==null?void 0:Y.exclusiveOfferCountdownText;if(V!==void 0)for(d=Date.now(),h=g.r(V),A=h.next();!A.done;A=h.next())if(A=A.value,A!==void 0&&A.text!==void 0&&(Y=Number(A.textDisplayStartTimestampMs), +!isNaN(Y)&&d>=Y)){A.insertCountdown?(c=A.text.replace(/\$0/,String(Za({seconds:c}))),X.D.AT(c)):X.D.AT(A.text);X.D.show();break}}var H,a,W,w;X.B.update({exclusive:(H=X.J)==null?void 0:(a=H.bannerData)==null?void 0:(W=a.itemData)==null?void 0:(w=W.exclusivesData)==null?void 0:w.exclusiveOfferLabelText});X.B.show();nH(X);var F;(F=X.oZ)==null||F.start()}else Wyl(X)}; +Wyl=function(X){var c;(c=X.oZ)==null||c.stop();X.D.hide();X.B.hide();LH(X)}; +Fyl=function(X){var c,V,G=(c=X.J)==null?void 0:(V=c.bannerData)==null?void 0:V.itemData;return X.W.S("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(G==null||!G.priceReplacementText)&&(G==null?0:G.promotionText)?G==null?void 0:G.promotionText.content:null}; +Exs=function(X){var c,V,G=(c=X.J)==null?void 0:(V=c.bannerData)==null?void 0:V.itemData,n,L;if(!(G!=null&&G.priceReplacementText||X.W.S("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(G==null?0:(n=G.dealsData)==null?0:(L=n.sales)==null?0:L.originalPrice)){var d,h;return G==null?void 0:(d=G.dealsData)==null?void 0:(h=d.sales)==null?void 0:h.originalPrice}return null}; +rTl=function(X){var c,V,G=(c=X.J)==null?void 0:(V=c.bannerData)==null?void 0:V.itemData,n,L,d,h;if(!((G==null?0:G.priceReplacementText)||X.W.S("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(G==null?0:(n=G.dealsData)==null?0:(L=n.sales)==null?0:L.originalPrice))&&(G==null?0:(d=G.dealsData)==null?0:(h=d.priceDrop)==null?0:h.referencePrice)){var A,Y;return G==null?void 0:(A=G.dealsData)==null?void 0:(Y=A.priceDrop)==null?void 0:Y.referencePrice}return null}; +Q$1=function(X){var c,V,G=(c=X.J)==null?void 0:(V=c.bannerData)==null?void 0:V.itemData;if(G==null?0:G.priceReplacementText)return G==null?void 0:G.priceReplacementText;if((G==null?0:G.promotionText)&&X.W.S("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var n;return(G==null?void 0:G.price)+" "+(G==null?void 0:(n=G.promotionText)==null?void 0:n.content)}var L,d;if(G==null?0:(L=G.dealsData)==null?0:(d=L.sales)==null?0:d.originalPrice){var h,A;return G==null?void 0:(h=G.dealsData)== +null?void 0:(A=h.sales)==null?void 0:A.salesPriceAccessibilityLabel}var Y,H;if(G==null?0:(Y=G.dealsData)==null?0:(H=Y.priceDrop)==null?0:H.referencePrice){var a,W;return(G==null?void 0:G.price)+" "+(G==null?void 0:(a=G.dealsData)==null?void 0:(W=a.priceDrop)==null?void 0:W.referencePrice)}return G==null?void 0:G.price}; +Zhj=function(X){if(X.W.S("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var c,V,G;return X.G.aZ?null:(c=X.J)==null?void 0:(V=c.bannerData)==null?void 0:(G=V.itemData)==null?void 0:G.vendorName}var n,L,d,h,A,Y;return X.G.aZ||X.B.aZ||((n=X.J)==null?0:(L=n.bannerData)==null?0:(d=L.itemData)==null?0:d.affiliateDisclaimer)?null:(h=X.J)==null?void 0:(A=h.bannerData)==null?void 0:(Y=A.itemData)==null?void 0:Y.vendorName}; +vxO=function(X,c){dO(X);if(c){var V=g.Vu.getState().entities;V=Wc(V,"featuredProductsEntity",c);if(V!=null&&V.productsData){c=[];V=g.r(V.productsData);for(var G=V.next();!G.done;G=V.next()){G=G.value;var n=void 0;if((n=G)!=null&&n.identifier&&G.featuredSegments){X.NW.push(G);var L=void 0;n=g.r((L=G)==null?void 0:L.featuredSegments);for(L=n.next();!L.done;L=n.next()){var d=L.value;L=xy8(d.startTimeSec);L!==void 0&&(d=xy8(d.endTimeSec),c.push(new g.AC(L*1E3,d===void 0?0x7ffffffffffff:d*1E3,{id:G.identifier, +namespace:"featured_product"})))}}}X.W.Gr(c)}}}; +LH=function(X){if(X.trendingOfferEntityKey){var c=g.Vu.getState().entities;if(c=Wc(c,"trendingOfferEntity",X.trendingOfferEntityKey)){var V,G,n;c.encodedSkuId!==((V=X.J)==null?void 0:(G=V.bannerData)==null?void 0:(n=G.itemData)==null?void 0:n.encodedOfferSkuId)?nH(X):(X.G.update({trendingOffer:c.shortLabel+" \u2022 "+c.countLabel}),X.G.show(),X.banner.update({vendor:Zhj(X)}))}else nH(X)}else nH(X)}; +nH=function(X){X.G.hide();X.banner.update({vendor:Zhj(X)})}; +dO=function(X){X.NW=[];X.N4();X.W.EH("featured_product")}; +k0l=function(X){var c,V,G,n,L=(c=X.J)==null?void 0:(V=c.bannerData)==null?void 0:(G=V.itemData)==null?void 0:(n=G.hiddenProductOptions)==null?void 0:n.dropTimestampMs;c=(Number(L)-Date.now())/1E3;X.countdownTimer.AT(Za({seconds:c}));if(c>0){var d;(d=X.EM)==null||d.start()}}; +oxl=function(X){var c;(c=X.EM)==null||c.stop();X.countdownTimer.hide()}; +xy8=function(X){if(X!==void 0&&X.trim()!==""&&(X=Math.trunc(Number(X.trim())),!(isNaN(X)||X<0)))return X}; +bhS=function(X,c,V){g.z.call(this,{N:"div",xO:["ytp-info-panel-action-item"],V:[{N:"div",Y:"ytp-info-panel-action-item-disclaimer",Uy:"{{disclaimer}}"},{N:"a",xO:["ytp-info-panel-action-item-button","ytp-button"],K:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},V:[{N:"div",Y:"ytp-info-panel-action-item-icon",Uy:"{{icon}}"},{N:"div",Y:"ytp-info-panel-action-item-label",Uy:"{{label}}"}]}]});this.W=X;this.J=V;this.disclaimer=this.I2("ytp-info-panel-action-item-disclaimer");this.button= +this.I2("ytp-info-panel-action-item-button");this.d$=!1;this.W.createServerVe(this.element,this,!0);this.listen("click",this.onClick);X="";V=g.T(c==null?void 0:c.onTap,uz);var G=g.T(V,g.ud);this.d$=!1;G?(X=G.url||"",X.startsWith("//")&&(X="https:"+X),this.d$=!0,g.f7(this.button,g.Mo(X))):(G=g.T(V,ehL))&&!this.J?((X=G.phoneNumbers)&&X.length>0?(X="sms:"+X[0],G.messageText&&(X+="?&body="+encodeURI(G.messageText))):X="",this.d$=!0,g.f7(this.button,g.Mo(X,[JTO]))):(V=g.T(V,my2))&&!this.J&&(X=V.phoneNumber? +"tel:"+V.phoneNumber:"",this.d$=!0,g.f7(this.button,g.Mo(X,[Rh2])));var n;if(V=(n=c.disclaimerText)==null?void 0:n.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var L;this.update({label:(L=c.bodyText)==null?void 0:L.content,icon:ty(),disclaimer:V})}else{this.disclaimer.style.display="none";var d;this.update({label:(d=c.bodyText)==null?void 0:d.content,icon:ty()})}this.W.setTrackingParams(this.element,c.trackingParams||null);this.d$&&(this.G={externalLinkData:{url:X}})}; +tcs=function(X,c){var V=WR();g.TT.call(this,X,{N:"div",Y:"ytp-info-panel-detail-skrim",V:[{N:"div",Y:"ytp-info-panel-detail",K:{role:"dialog",id:V},V:[{N:"div",Y:"ytp-info-panel-detail-header",V:[{N:"div",Y:"ytp-info-panel-detail-title",Uy:"{{title}}"},{N:"button",xO:["ytp-info-panel-detail-close","ytp-button"],K:{"aria-label":"Close"},V:[g.Jy()]}]},{N:"div",Y:"ytp-info-panel-detail-body",Uy:"{{body}}"},{N:"div",Y:"ytp-info-panel-detail-items"}]}]},250);this.J=c;this.items=this.I2("ytp-info-panel-detail-items"); +this.U=new g.U3(this);this.itemData=[];this.X=V;this.L(this.I2("ytp-info-panel-detail-close"),"click",this.QZ);this.L(this.I2("ytp-info-panel-detail-skrim"),"click",this.QZ);this.L(this.I2("ytp-info-panel-detail"),"click",function(G){G.stopPropagation()}); +g.N(this,this.U);this.W.createServerVe(this.element,this,!0);this.L(X,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",X.getVideoData());this.hide()}; +Ohs=function(X,c){X=g.r(X.itemData);for(var V=X.next();!V.done;V=X.next())V=V.value,V.W.logVisibility(V.element,c)}; +gxj=function(X,c){g.z.call(this,{N:"div",Y:"ytp-info-panel-preview",K:{"aria-live":"assertive","aria-atomic":"true","aria-owns":c.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.RT(X.j()))},V:[{N:"div",Y:"ytp-info-panel-preview-text",Uy:"{{text}}"},{N:"div",Y:"ytp-info-panel-preview-chevron",Uy:"{{chevron}}"}]});var V=this;this.W=X;this.Ri=this.J=this.videoId=null;this.U=this.showControls=this.G=!1;this.L(this.element,"click",function(){X.logClick(V.element);X.hQ();PO(c)}); +this.fade=new g.yP(this,250,!1,100);g.N(this,this.fade);this.W.createServerVe(this.element,this,!0);this.L(X,"videodatachange",this.onVideoDataChange);this.L(X,"presentingplayerstatechange",this.sT);this.L(this.W,"paidcontentoverlayvisibilitychange",this.MG);this.L(this.W,"infopaneldetailvisibilitychange",this.MG);var G=X.getVideoData()||{};l31(G)&&Mc8(this,G);this.L(X,"onShowControls",this.n_);this.L(X,"onHideControls",this.ET)}; +Mc8=function(X,c){if(!c.l_||!X.W.Q0()){var V=c.xl||1E4,G=l31(c);X.J?c.videoId&&c.videoId!==X.videoId&&(g.VO(X.J),X.videoId=c.videoId,G?(f3D(X,V,c),X.fM()):(X.QZ(),X.J.dispose(),X.J=null)):G&&(c.videoId&&(X.videoId=c.videoId),f3D(X,V,c),X.fM())}}; +l31=function(X){var c,V,G,n;return!!((c=X.LJ)==null?0:(V=c.title)==null?0:V.content)||!!((G=X.LJ)==null?0:(n=G.bodyText)==null?0:n.content)}; +f3D=function(X,c,V){X.J&&X.J.dispose();X.J=new g.qR(X.kyv,c,X);g.N(X,X.J);var G;c=((G=V.LJ)==null?void 0:G.trackingParams)||null;X.W.setTrackingParams(X.element,c);var n;var L,d;if(V==null?0:(L=V.LJ)==null?0:(d=L.title)==null?0:d.content){var h;G=(n=V.LJ)==null?void 0:(h=n.title)==null?void 0:h.content;var A,Y;if((A=V.LJ)==null?0:(Y=A.bodyText)==null?0:Y.content)G+=" \u2022 ";n=G}else n="";var H,a;V=((H=V.LJ)==null?void 0:(a=H.bodyText)==null?void 0:a.content)||"";X.update({text:n+V,chevron:g.eB()})}; +pxL=function(X,c){X.J&&(g.B(c,8)?(X.G=!0,X.fM(),X.J.start()):(g.B(c,2)||g.B(c,64))&&X.videoId&&(X.videoId=null))}; +yX=function(X){var c=null;try{c=X.toLocaleString("en",{style:"percent"})}catch(V){c=X.toLocaleString(void 0,{style:"percent"})}return c}; +hD=function(X,c){var V=0;X=g.r(X);for(var G=X.next();!(G.done||G.value.startTime>c);G=X.next())V++;return V===0?V:V-1}; +I3s=function(X,c){for(var V=0,G=g.r(X),n=G.next();!n.done;n=G.next()){n=n.value;if(c=n.timeRangeStartMillis&&c0?c[0]:null;var V=g.Du("ytp-chrome-bottom"),G=g.Du("ytp-ad-module");X.X=!(V==null||!V.contains(c));X.T=!(G==null||!G.contains(c));X.C=!(c==null||!c.hasAttribute("data-tooltip-target-fixed"));return c}; +VL2=function(X,c,V){if(!X.B){if(c){X.tooltipRenderer=c;c=X.tooltipRenderer.text;var G=!1,n;(c==null?0:(n=c.runs)==null?0:n.length)&&c.runs[0].text&&(X.update({title:c.runs[0].text.toString()}),G=!0);g.bF(X.title,G);c=X.tooltipRenderer.detailsText;n=!1;var L;if((c==null?0:(L=c.runs)==null?0:L.length)&&c.runs[0].text){G=c.runs[0].text.toString();L=G.indexOf("$TARGET_ICON");if(L>-1)if(X.tooltipRenderer.targetId){c=[];G=G.split("$TARGET_ICON");var d=new g.wP({N:"span",Y:"ytp-promotooltip-details-icon", +V:[XMs[X.tooltipRenderer.targetId]]});g.N(X,d);for(var h=[],A=g.r(G),Y=A.next();!Y.done;Y=A.next())Y=new g.wP({N:"span",Y:"ytp-promotooltip-details-component",Uy:Y.value}),g.N(X,Y),h.push(Y);G.length===2?(c.push(h[0].element),c.push(d.element),c.push(h[1].element)):G.length===1&&(L===0?(c.push(d.element),c.push(h[0].element)):(c.push(h[0].element),c.push(d.element)));L=c.length?c:null}else L=null;else L=G;if(L){if(typeof L!=="string")for(g.L_(X.details),n=g.r(L),L=n.next();!L.done;L=n.next())X.details.appendChild(L.value); +else X.update({details:L});n=!0}}g.bF(X.details,n);n=X.tooltipRenderer.acceptButton;L=!1;var H,a,W;((H=g.T(n,g.Nz))==null?0:(a=H.text)==null?0:(W=a.runs)==null?0:W.length)&&g.T(n,g.Nz).text.runs[0].text&&(X.update({acceptButtonText:g.T(n,g.Nz).text.runs[0].text.toString()}),L=!0);g.bF(X.acceptButton,L);H=X.tooltipRenderer.dismissButton;a=!1;var w,F,Z;((w=g.T(H,g.Nz))==null?0:(F=w.text)==null?0:(Z=F.runs)==null?0:Z.length)&&g.T(H,g.Nz).text.runs[0].text&&(X.update({dismissButtonText:g.T(H,g.Nz).text.runs[0].text.toString()}), +a=!0);g.bF(X.dismissButton,a)}V&&(X.U=V);X.J=q0t(X);X.D=!1;X.W.j().S("web_player_hide_nitrate_promo_tooltip")||X.Ry(!0);cJw(X);X.aZ&&!X.G_&&(X.G_=!0,X.F8.bd(0));X.G&&X.W.logVisibility(X.element,X.aZ)}}; +wO=function(X){X.Ry(!1);X.G&&X.W.logVisibility(X.element,X.aZ)}; +GfD=function(X){var c,V,G,n=((c=g.T(X.acceptButton,g.Nz))==null?void 0:(V=c.text)==null?void 0:(G=V.runs)==null?void 0:G.length)&&!!g.T(X.acceptButton,g.Nz).text.runs[0].text,L,d,h;c=((L=g.T(X.dismissButton,g.Nz))==null?void 0:(d=L.text)==null?void 0:(h=d.runs)==null?void 0:h.length)&&!!g.T(X.dismissButton,g.Nz).text.runs[0].text;return n||c}; +cJw=function(X){var c;if(!(c=!X.J)){c=X.J;var V=window.getComputedStyle(c);c=V.display==="none"||V.visibility==="hidden"||c.getAttribute("aria-hidden")==="true"}if(c||X.W.isMinimized())X.Ry(!1);else if(c=g.Ro(X.J),c.width&&c.height){X.W.sz(X.element,X.J);var G=X.W.CS().getPlayerSize().height;V=g.Ro(X.I2("ytp-promotooltip-container")).height;X.X?X.element.style.top=G-V-c.height-12+"px":X.C||(G=X.W.i4().height-V-c.height-12,X.element.style.top=G+"px");G=X.I2("ytp-promotooltip-pointer");var n=g.vE(X.J, +X.W.getRootNode()),L=Number(X.element.style.left.replace(/[^\d\.]/g,""));X=X.W.isFullscreen()?18:12;G.style.left=n.x-L+c.width/2-X+"px";G.style.top=V+"px"}else X.Ry(!1)}; +FU=function(X){g.z.call(this,{N:"button",xO:["ytp-replay-button","ytp-button"],K:{title:"Replay"},V:[g.ld()]});this.W=X;this.L(X,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.yg(X.getPlayerStateObject());kz(this.W,this.element,this)}; +E4=function(X,c){c=c===void 0?240:c;g.z.call(this,{N:"button",xO:["ytp-button","ytp-search-button"],K:{title:"Search","data-tooltip-opaque":String(g.RT(X.j()))},V:[{N:"div",Y:"ytp-search-icon",Uy:"{{icon}}"},{N:"div",Y:"ytp-search-title",Uy:"Search"}]});this.api=X;this.G=c;this.visible=!1;this.updateValue("icon",{N:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},V:[{N:"path",Y:"ytp-svg-fill",K:{d:"M21.24,19.83l-5.64-5.64C16.48,13.02,17,11.57,17,10c0-3.87-3.13-7-7-7s-7,3.13-7,7c0,3.87,3.13,7,7,7 c1.57,0,3.02-0.52,4.19-1.4l5.64,5.64L21.24,19.83z M5,10c0-2.76,2.24-5,5-5s5,2.24,5,5c0,2.76-2.24,5-5,5S5,12.76,5,10z"}}]}); +X.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.J();this.L(X,"appresize",this.J);this.L(X,"videodatachange",this.J);kz(X,this.element,this)}; +g.rO=function(X,c,V,G){G=G===void 0?240:G;g.z.call(this,{N:"button",xO:["ytp-button","ytp-share-button"],K:{title:"Share","aria-haspopup":"true","aria-owns":V.element.id,"data-tooltip-opaque":String(g.RT(X.j()))},V:[{N:"div",Y:"ytp-share-icon",Uy:"{{icon}}"},{N:"div",Y:"ytp-share-title",Uy:"Share"}]});this.api=X;this.J=c;this.U=V;this.X=G;this.G=this.visible=!1;this.tooltip=this.J.ai();X.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.L(X,"videodatachange",this.pS); +this.L(X,"videoplayerreset",this.pS);this.L(X,"appresize",this.pS);this.L(X,"presentingplayerstatechange",this.pS);this.pS();this.addOnDisposeCallback(g.vO(this.tooltip,this.element))}; +nnS=function(X){var c=X.api.j(),V=X.api.getVideoData(),G=g.RT(c)&&g.bc(X.api)&&g.B(X.api.getPlayerStateObject(),128);c=c.U||c.disableSharing&&X.api.getPresentingPlayerType()!==2||!V.showShareButton||V.EY||G||g.Vf(V)||X.G;G=X.api.CS().getPlayerSize().width;return!!V.videoId&&G>=X.X&&!c}; +LaO=function(X,c){c.name!=="InvalidStateError"&&c.name!=="AbortError"&&(c.name==="NotAllowedError"?(X.J.hQ(),PO(X.U,X.element,!1)):g.Ni(c))}; +yJU=function(X,c){var V=WR(),G=X.j();V={N:"div",Y:"ytp-share-panel",K:{id:WR(),role:"dialog","aria-labelledby":V},V:[{N:"div",Y:"ytp-share-panel-inner-content",V:[{N:"div",Y:"ytp-share-panel-title",K:{id:V},Uy:"Share"},{N:"a",xO:["ytp-share-panel-link","ytp-no-contextmenu"],K:{href:"{{link}}",target:G.C,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},Uy:"{{linkText}}"},{N:"label",Y:"ytp-share-panel-include-playlist",V:[{N:"input",Y:"ytp-share-panel-include-playlist-checkbox",K:{type:"checkbox", +checked:"true"}},"Include playlist"]},{N:"div",Y:"ytp-share-panel-loading-spinner",V:[hw()]},{N:"div",Y:"ytp-share-panel-service-buttons",Uy:"{{buttons}}"},{N:"div",Y:"ytp-share-panel-error",Uy:"An error occurred while retrieving sharing information. Please try again later."}]},{N:"button",xO:["ytp-share-panel-close","ytp-button"],K:{title:"Close"},V:[g.Jy()]}]};g.TT.call(this,X,V,250);var n=this;this.moreButton=null;this.api=X;this.tooltip=c.ai();this.U=[];this.B=this.I2("ytp-share-panel-inner-content"); +this.closeButton=this.I2("ytp-share-panel-close");this.L(this.closeButton,"click",this.QZ);this.addOnDisposeCallback(g.vO(this.tooltip,this.closeButton));this.X=this.I2("ytp-share-panel-include-playlist-checkbox");this.L(this.X,"click",this.pS);this.J=this.I2("ytp-share-panel-link");this.addOnDisposeCallback(g.vO(this.tooltip,this.J));this.api.createClientVe(this.J,this,164503);this.L(this.J,"click",function(L){L.preventDefault();n.api.logClick(n.J);var d=n.api.getVideoUrl(!0,!0,!1,!1);d=d3l(n,d); +g.yS(d,n.api,L)&&n.api.z_("SHARE_CLICKED")}); +this.listen("click",this.jA);this.L(X,"videoplayerreset",this.hide);this.L(X,"fullscreentoggled",this.onFullscreenToggled);this.L(X,"onLoopRangeChange",this.rX2);this.hide()}; +AJs=function(X,c){hts(X);for(var V=c.links||c.shareTargets,G=0,n={},L=0;L'),(Z=w.document)&&Z.write&&(Z.write(No(F)),Z.close()))):((w=g.U9(w,Z,W,t))&&F.noopener&&(w.opener=null),w&&F.noreferrer&&(w.opener=null));w&&(w.opener||(w.opener=window),w.focus());a.preventDefault()}}}(n)); +n.hn.addOnDisposeCallback(g.vO(X.tooltip,n.hn.element));h==="Facebook"?X.api.createClientVe(n.hn.element,n.hn,164504):h==="Twitter"&&X.api.createClientVe(n.hn.element,n.hn,164505);X.L(n.hn.element,"click",function(H){return function(){X.api.logClick(H.hn.element)}}(n)); +X.api.logVisibility(n.hn.element,!0);X.U.push(n.hn);G++}}var A=c.more||c.moreLink,Y=new g.z({N:"a",xO:["ytp-share-panel-service-button","ytp-button"],V:[{N:"span",Y:"ytp-share-panel-service-button-more",V:[{N:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{N:"rect",K:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{N:"path",K:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z", +fill:"#4e4e4f","fill-rule":"evenodd"}}]}]}],K:{href:A,target:"_blank",title:"More"}});Y.listen("click",function(H){var a=A;X.api.logClick(X.moreButton.element);a=d3l(X,a);g.yS(a,X.api,H)&&X.api.z_("SHARE_CLICKED")}); +Y.addOnDisposeCallback(g.vO(X.tooltip,Y.element));X.api.createClientVe(Y.element,Y,164506);X.L(Y.element,"click",function(){X.api.logClick(Y.element)}); +X.api.logVisibility(Y.element,!0);X.U.push(Y);X.moreButton=Y;X.updateValue("buttons",X.U)}; +d3l=function(X,c){var V={};g.RT(X.api.j())&&(g.jZ(X.api,"addEmbedsConversionTrackingParams",[V]),c=g.KB(c,V));return c}; +hts=function(X){for(var c=g.r(X.U),V=c.next();!V.done;V=c.next())V=V.value,V.detach(),g.Ap(V);X.U=[]}; +QX=function(X){return X===void 0||X.startSec===void 0||X.endSec===void 0?!1:!0}; +Yul=function(X,c){X.startSec+=c;X.endSec+=c}; +HUs=function(X){oi.call(this,X);this.G=this.J=this.isContentForward=this.D=!1;jSw(this);this.L(this.W,"changeProductsInVideoVisibility",this.wgR);this.L(this.W,"videodatachange",this.onVideoDataChange)}; +afj=function(X){X.B&&X.wy.element.removeChild(X.B.element);X.B=void 0}; +WaD=function(X,c){return c.map(function(V){var G,n;if((V=(G=g.T(V,$3O))==null?void 0:(n=G.thumbnail)==null?void 0:n.thumbnails)&&V.length!==0)return V[0].url}).filter(function(V){return V!==void 0}).map(function(V){V=new g.z({N:"img", +Y:"ytp-suggested-action-product-thumbnail",K:{alt:"",src:V}});g.N(X,V);return V})}; +wMU=function(X,c){X.isContentForward=c;g.ab(X.badge.element,"ytp-suggested-action-badge-content-forward",c)}; +ZZ=function(X){var c=X.isContentForward&&!X.Uk();g.ab(X.badge.element,"ytp-suggested-action-badge-preview-collapsed",c&&X.J);g.ab(X.badge.element,"ytp-suggested-action-badge-preview-expanded",c&&X.G)}; +xj=function(X,c,V){return new g.AC(X*1E3,c*1E3,{priority:9,namespace:V})}; +Fa2=function(X){X.W.EH("shopping_overlay_visible");X.W.EH("shopping_overlay_preview_collapsed");X.W.EH("shopping_overlay_preview_expanded");X.W.EH("shopping_overlay_expanded")}; +jSw=function(X){X.L(X.W,g.jw("shopping_overlay_visible"),function(){X.U5(!0)}); +X.L(X.W,g.HQ("shopping_overlay_visible"),function(){X.U5(!1)}); +X.L(X.W,g.jw("shopping_overlay_expanded"),function(){X.A7=!0;k4(X)}); +X.L(X.W,g.HQ("shopping_overlay_expanded"),function(){X.A7=!1;k4(X)}); +X.L(X.W,g.jw("shopping_overlay_preview_collapsed"),function(){X.J=!0;ZZ(X)}); +X.L(X.W,g.HQ("shopping_overlay_preview_collapsed"),function(){X.J=!1;ZZ(X)}); +X.L(X.W,g.jw("shopping_overlay_preview_expanded"),function(){X.G=!0;ZZ(X)}); +X.L(X.W,g.HQ("shopping_overlay_preview_expanded"),function(){X.G=!1;ZZ(X)})}; +QSO=function(X){g.z.call(this,{N:"div",Y:"ytp-shorts-title-channel",V:[{N:"a",Y:"ytp-shorts-title-channel-logo",K:{href:"{{channelLink}}",target:X.j().C,"aria-label":"{{channelLogoLabel}}"}},{N:"div",Y:"ytp-shorts-title-expanded-heading",V:[{N:"div",Y:"ytp-shorts-title-expanded-title",V:[{N:"a",Uy:"{{expandedTitle}}",K:{href:"{{channelTitleLink}}",target:X.j().C,tabIndex:"0"}}]}]}]});var c=this;this.api=X;this.J=this.I2("ytp-shorts-title-channel-logo");this.channelName=this.I2("ytp-shorts-title-expanded-title"); +this.subscribeButton=null;X.createClientVe(this.J,this,36925);this.L(this.J,"click",function(V){c.api.logClick(c.J);g.U9(window,En1(c));V.preventDefault()}); +X.createClientVe(this.channelName,this,37220);this.L(this.channelName,"click",function(V){c.api.logClick(c.channelName);g.U9(window,En1(c));V.preventDefault()}); +rJt(this);this.L(X,"videodatachange",this.pS);this.L(X,"videoplayerreset",this.pS);this.pS()}; +rJt=function(X){if(!X.api.j().Od){var c=X.api.getVideoData(),V=new g.DL("Subscribe",null,"Subscribed",null,!0,!1,c.F7,c.subscribed,"channel_avatar",null,X.api,!0);X.api.createServerVe(V.element,X);var G;X.api.setTrackingParams(V.element,((G=c.subscribeButtonRenderer)==null?void 0:G.trackingParams)||null);X.L(V.element,"click",function(){X.api.logClick(V.element)}); +X.subscribeButton=V;g.N(X,X.subscribeButton);X.subscribeButton.uc(X.element)}}; +En1=function(X){var c=X.api.j(),V=X.api.getVideoData();V=g.nW(c)+V.NE;if(!g.RT(c))return V;c={};g.jZ(X.api,"addEmbedsConversionTrackingParams",[c]);return g.KB(V,c)}; +vz=function(X){g.TT.call(this,X,{N:"button",xO:["ytp-skip-intro-button","ytp-popup","ytp-button"],V:[{N:"div",Y:"ytp-skip-intro-button-text",Uy:"Skip Intro"}]},100);var c=this;this.U=!1;this.J=new g.qR(function(){c.hide()},5E3); +this.fJ=this.pY=NaN;g.N(this,this.J);this.D=function(){c.show()}; +this.B=function(){c.hide()}; +this.X=function(){var V=c.W.getCurrentTime();V>c.pY/1E3&&V0?{N:"svg",K:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},V:[{N:"path",xO:["ytp-circle-arrow","ytp-svg-fill"],K:{d:"m19,12c0,2.1 -0.93,4.07 -2.55,5.4c-1.62,1.34 -3.76,1.87 -5.86,1.46c-2.73,-0.53 -4.92,-2.72 -5.45,-5.45c-0.41,-2.1 .12,-4.24 1.46,-5.86c1.33,-1.62 3.3,-2.55 5.4,-2.55l1.27,0l-0.85,.85l1.41,1.41l3.35,-3.35l-3.35,-3.35l-1.41,1.41l1.01,1.03l-1.43,0c-2.7,0 -5.23,1.19 -6.95,3.28c-1.72,2.08 -2.4,4.82 -1.88,7.52c0.68,3.52 3.51,6.35 7.03,7.03c0.6,.11 1.19,.17 1.78,.17c2.09,0 4.11,-0.71 5.74,-2.05c2.09,-1.72 3.28,-4.25 3.28,-6.95l-2,0z"}}, +{N:"text",xO:["ytp-jump-button-text","ytp-svg-fill"],K:{x:"7.05",y:"15.05"}}]}:{N:"svg",K:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},V:[{N:"path",xO:["ytp-circle-arrow","ytp-svg-fill"],K:{d:"m18.95,6.28c-1.72,-2.09 -4.25,-3.28 -6.95,-3.28l-1.43,0l1.02,-1.02l-1.41,-1.41l-3.36,3.35l3.35,3.35l1.41,-1.41l-0.85,-0.86l1.27,0c2.1,0 4.07,.93 5.4,2.55c1.34,1.62 1.87,3.76 1.46,5.86c-0.53,2.73 -2.72,4.92 -5.45,5.45c-2.11,.41 -4.24,-0.12 -5.86,-1.46c-1.62,-1.33 -2.55,-3.3 -2.55,-5.4l-2,0c0,2.7 1.19,5.23 3.28,6.95c1.62,1.34 3.65,2.05 5.74,2.05c0.59,0 1.19,-0.06 1.78,-0.17c3.52,-0.68 6.35,-3.51 7.03,-7.03c0.52,-2.7 -0.17,-5.44 -1.88,-7.52z"}}, +{N:"text",xO:["ytp-jump-button-text","ytp-svg-fill"],K:{x:"6.5",y:"15"}}]}]});var V=this;this.W=X;this.J=c;this.G=new g.qR(function(){V.U?(V.U=!1,V.G.start()):V.element.classList.remove("ytp-jump-spin","backwards")},250); +this.U=!1;(c=c>0)?this.W.createClientVe(this.element,this,36843):this.W.createClientVe(this.element,this,36844);var G=g.xa(c?"Seek forward $SECONDS seconds. (\u2192)":"Seek backwards $SECONDS seconds. (\u2190)",{SECONDS:Math.abs(this.J).toString()});this.update({title:G,"data-title-no-tooltip":G,"aria-keyshortcuts":c?"\u2192":"\u2190"});this.X=this.element.querySelector(".ytp-jump-button-text");this.X.textContent=Math.abs(this.J).toString();this.listen("click",this.onClick,this);kz(X,this.element, +this)}; +JJS=function(X,c){c?X.element.classList.add("ytp-jump-button-enabled"):X.element.classList.remove("ytp-jump-button-enabled");X.W.logVisibility(X.element,c);X.W.hC()}; +RK=function(X,c){oK.call(this,X,c,"timedMarkerCueRange","View key moments");this.L(X,g.HQ("timedMarkerCueRange"),this.er);this.L(X,"updatemarkervisibility",this.updateVideoData)}; +m3D=function(X){var c,V=(c=X.W.getVideoData())==null?void 0:c.hX;if(V)for(X=X.X.QK,V=g.r(V),c=V.next();!c.done;c=V.next())if(c=X[c.value]){var G=void 0,n=void 0,L=void 0;if(((G=c.onTap)==null?void 0:(n=G.innertubeCommand)==null?void 0:(L=n.changeEngagementPanelVisibilityAction)==null?void 0:L.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return c}}; +b8=function(X){var c=X.S("web_enable_pip_on_miniplayer");g.z.call(this,{N:"button",xO:["ytp-miniplayer-button","ytp-button"],K:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"6","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},V:[c?{N:"svg",K:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},V:[{N:"g",K:{transform:"translate(96, -96) scale(0.8)"},V:[{N:"path",k9:!0,K:{d:"M96-480v-72h165L71-743l50-50 191 190v-165h72v288H96Zm72 288q-29.7 0-50.85-21.15Q96-234.3 96-264v-144h72v144h336v72H168Zm624-264v-240H456v-72h336q29.7 0 50.85 21.15Q864-725.7 864-696v240h-72ZM576-192v-192h288v192H576Z"}}]}]}: +p8D()]});this.W=X;this.visible=!1;this.listen("click",this.onClick);this.L(X,"fullscreentoggled",this.pS);this.updateValue("title",g.ox(X,"Miniplayer","i"));this.update({"data-title-no-tooltip":"Miniplayer"});kz(X,this.element,this);X.createClientVe(this.element,this,62946);this.pS()}; +tD=function(X,c,V){V=V===void 0?!1:V;g.z.call(this,{N:"button",xO:["ytp-mute-button","ytp-button"],K:X.j().QK?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}"}:{"aria-disabled":"true","aria-haspopup":"true"},Uy:"{{icon}}"});this.W=X;this.Pl=V;this.J=null;this.X=this.C=this.B=this.A7=NaN;this.kO=this.D=null;this.U=[];this.G=[];this.visible=!1;this.T=null;X.S("delhi_modern_web_player")&&this.update({"data-priority":3}); +V=this.W.j();this.updateValue("icon",f3());this.tooltip=c.ai();this.J=new g.wP({N:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{N:"defs",V:[{N:"clipPath",K:{id:"ytp-svg-volume-animation-mask"},V:[{N:"path",K:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{N:"path",K:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{N:"path",Y:"ytp-svg-volume-animation-mover",K:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{N:"clipPath",K:{id:"ytp-svg-volume-animation-slash-mask"}, +V:[{N:"path",Y:"ytp-svg-volume-animation-mover",K:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{N:"path",k9:!0,xO:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],K:{"clip-path":"url(#ytp-svg-volume-animation-mask)",d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{N:"path",k9:!0,xO:["ytp-svg-fill","ytp-svg-volume-animation-hider"],K:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)", +d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z",fill:"#fff"}}]});g.N(this,this.J);this.D=this.J.I2("ytp-svg-volume-animation-speaker");this.kO=this.D.getAttribute("d");this.U=g.sz("ytp-svg-volume-animation-mover",this.J.element);this.G=g.sz("ytp-svg-volume-animation-hider",this.J.element);this.NW=new Xc;g.N(this,this.NW);this.G_=new Xc;g.N(this,this.G_);this.listen("click",this.Xgh);this.L(X,"appresize",this.pC);this.L(X,"onVolumeChange",this.onVolumeChange);var G=null;V.QK?this.addOnDisposeCallback(g.vO(c.ai(), +this.element)):(c="Your browser doesn't support changing the volume. $BEGIN_LINKLearn More$END_LINK".split(/\$(BEGIN|END)_LINK/),G=new g.TT(X,{N:"span",xO:["ytp-popup","ytp-generic-popup"],K:{tabindex:"0"},V:[c[0],{N:"a",K:{href:"https://support.google.com/youtube/?p=noaudio",target:V.C},Uy:c[2]},c[4]]},100,!0),g.N(this,G),G.hide(),G.subscribe("show",function(n){X.i8(G,n)}),g.M$(X,G.element,4)); +this.message=G;X.createClientVe(this.element,this,28662);this.pC(X.CS().getPlayerSize());this.setVolume(X.getVolume(),X.isMuted())}; +tLO=function(X,c){X.A7=c;var V=X.kO;c&&(V+=q4s(Rtl,bUD,c));X.D.setAttribute("d",V)}; +OUl=function(X,c){X.C=c;for(var V=20*c,G=0;G=3&&X.W.getPresentingPlayerType()!==2}; +pMO=function(X){var c=Rx(X.W.X2());return c?X.J?c.Tz():c.EW():!1}; +MLt=function(X){var c={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},V=X.playlist!=null&&X.playlist.Tz();V=g.bc(X.W)&&(!X.J||V);var G=X.J&&g.gC(X.W),n=pMO(X),L=X.J&&X.W.getPresentingPlayerType()===5,d=g.ox(X.W,"Next","SHIFT+n"),h=g.ox(X.W,"Previous","SHIFT+p");if(L)c.title="Start video";else if(X.U)c.title="Replay";else if(V){var A=null;X.playlist&&(A=g.aM(X.playlist,X.J?lMD(X.playlist):MY2(X.playlist)));if(A){if(A.videoId){var Y=X.playlist.listId; +c.url=X.W.j().getVideoUrl(A.videoId,Y?Y.toString():void 0)}c.text=A.title;c.duration=A.lengthText?A.lengthText:A.lengthSeconds?g.Ru(A.lengthSeconds):null;c.preview=A.xz("mqdefault.jpg")}X.J?(c.title=d,c["data-title-no-tooltip"]="Next",c["aria-keyshortcuts"]="SHIFT+n"):(c.title=h,c["data-title-no-tooltip"]="Previous",c["aria-keyshortcuts"]="SHIFT+p")}else if(G){if(h=(A=X.videoData)==null?void 0:g.X2(A))c.url=h.nK(),c.text=h.title,c.duration=h.lengthText?h.lengthText:h.lengthSeconds?g.Ru(h.lengthSeconds): +null,c.preview=h.xz("mqdefault.jpg");c.title=d;c["data-title-no-tooltip"]="Next";c["aria-keyshortcuts"]="SHIFT+n"}c.disabled=!G&&!V&&!n&&!L;X.update(c);X.D=!!c.url;G||V||X.U||n||L?X.G||(X.G=g.vO(X.tooltip,X.element),X.B=X.listen("click",X.onClick,X)):X.G&&(X.G(),X.G=null,X.Hd(X.B),X.B=null);X.tooltip.hC();g.ab(X.element,"ytp-playlist-ui",X.J&&V)}; +NBl=function(X,c){g.z.call(this,{N:"div",Y:"ytp-fine-scrubbing",V:[{N:"div",Y:"ytp-fine-scrubbing-draggable",V:[{N:"div",Y:"ytp-fine-scrubbing-thumbnails",K:{tabindex:"0",role:"slider",type:"range","aria-label":"Click or scroll the panel for the precise seeking.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{N:"div",K:{"aria-hidden":"true"},Y:"ytp-fine-scrubbing-cursor"},{N:"div",Y:"ytp-fine-scrubbing-seek-time",K:{"aria-hidden":"true"}, +Uy:"{{seekTime}}"},{N:"div",Y:"ytp-fine-scrubbing-play",V:[Od()],K:{title:"Play from this position",role:"button"}},{N:"div",Y:"ytp-fine-scrubbing-dismiss",V:[g.Jy()],K:{title:"Exit precise seeking",role:"button"}}]});var V=this;this.api=X;this.B=this.I2("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.I2("ytp-fine-scrubbing-dismiss");this.kO=this.I2("ytp-fine-scrubbing-draggable");this.playButton=this.I2("ytp-fine-scrubbing-play");this.thumbnails=[];this.G=[];this.Hl=this.J=0;this.wy=void 0; +this.G_=NaN;this.QK=this.C=this.U=this.T=0;this.X=[];this.interval=this.frameCount=0;this.D=160;this.scale=1;this.YO=0;this.isEnabled=this.Pl=!1;IfD(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.vO(c,this.dismissButton));this.addOnDisposeCallback(g.vO(c,this.playButton));this.NW=new g.T5(this.kO,!0);this.NW.subscribe("dragstart",this.Ee,this);this.NW.subscribe("dragmove",this.iS,this);this.NW.subscribe("dragend",this.lI,this);this.L(X,"SEEK_COMPLETE",this.A8);X.S("web_fix_fine_scrubbing_false_play")&& +this.L(X,"rootnodemousedown",function(G){V.A7=G}); +this.B.addEventListener("keydown",function(){}); +g.N(this,this.NW);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.B,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; +IfD=function(X,c){var V=g.Ru(c),G=g.xa("Seek to $PROGRESS",{PROGRESS:g.Ru(c,!0)});X.update({ariamin:0,ariamax:Math.floor(X.api.getDuration()),arianow:Math.floor(c),arianowtext:G,seekTime:V})}; +U3j=function(X){X.G_=NaN;X.C=0;X.T=X.U}; +PK1=function(X){var c=X.api.a$();if(c){var V=90*X.scale,G=fW(c,160*X.scale);if(c=c.levels[G]){X.D=c.width;if(!X.X.length){G=[];for(var n=pW(c,c.nh()),L=c.columns*c.rows,d=c.frameCount,h=0;h<=n;h++)for(var A=dX.X.length;)G= +void 0,(G=X.thumbnails.pop())==null||G.dispose();for(;X.thumbnails.lengthV.length;)G=void 0,(G=X.G.pop())==null||G.dispose(); +for(;X.G.length-V?-c/V*X.interval*.5:-(c+V/2)/V*X.interval}; +ztO=function(X){return-((X.B.offsetWidth||(X.frameCount-1)*X.D*X.scale)-X.J/2)}; +TBO=function(){g.z.call(this,{N:"div",Y:"ytp-fine-scrubbing-thumbnail"})}; +uAj=function(){g.z.call(this,{N:"div",Y:"ytp-fine-scrubbing-chapter-title",V:[{N:"div",Y:"ytp-fine-scrubbing-chapter-title-content",Uy:"{{chapterTitle}}"}]})}; +Ka1=function(X){g.z.call(this,{N:"div",Y:"ytp-heat-map-chapter",V:[{N:"svg",Y:"ytp-heat-map-svg",K:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},V:[{N:"defs",V:[{N:"clipPath",K:{id:"{{id}}"},V:[{N:"path",Y:"ytp-heat-map-path",K:{d:"",fill:"white"}}]},{N:"linearGradient",K:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},V:[{N:"stop",K:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{N:"stop",K:{offset:"100%", +"stop-color":"white","stop-opacity":"0"}}]}]},{N:"rect",Y:"ytp-heat-map-graph",K:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{N:"rect",Y:"ytp-heat-map-hover",K:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{N:"rect",Y:"ytp-heat-map-play",K:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{N:"path",Y:"ytp-modern-heat-map",K:{d:"",fill:"url(#ytp-heat-map-gradient-def)",height:"100%", +stroke:"white","stroke-opacity":"0.7","stroke-width":"2px",style:"display: none;",width:"100%",x:"0",y:"0"}}]}]});this.api=X;this.T=this.I2("ytp-heat-map-svg");this.B=this.I2("ytp-heat-map-path");this.X=this.I2("ytp-heat-map-graph");this.D=this.I2("ytp-heat-map-play");this.J=this.I2("ytp-heat-map-hover");this.U=this.I2("ytp-modern-heat-map");this.d$=!1;this.G=60;X=""+g.SD(this);this.update({id:X});X="url(#"+X+")";this.X.setAttribute("clip-path",X);this.D.setAttribute("clip-path",X);this.J.setAttribute("clip-path", +X)}; +sSD=function(X,c){c>0&&(X.G=c,X.T.style.height=X.G+"px")}; +gO=function(){g.z.call(this,{N:"div",Y:"ytp-chapter-hover-container",V:[{N:"div",Y:"ytp-progress-bar-padding"},{N:"div",Y:"ytp-progress-list",V:[{N:"div",xO:["ytp-play-progress","ytp-swatch-background-color"]},{N:"div",Y:"ytp-progress-linear-live-buffer"},{N:"div",Y:"ytp-load-progress"},{N:"div",Y:"ytp-hover-progress"},{N:"div",Y:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.G=this.I2("ytp-progress-list");this.B=this.I2("ytp-progress-linear-live-buffer"); +this.X=this.I2("ytp-ad-progress-list");this.D=this.I2("ytp-load-progress");this.T=this.I2("ytp-play-progress");this.U=this.I2("ytp-hover-progress");this.J=this.I2("ytp-chapter-hover-container")}; +fH=function(X,c){g.$v(X.J,"width",c)}; +CKD=function(X,c){g.$v(X.J,"margin-right",c+"px")}; +D3S=function(){this.G=this.position=this.U=this.J=this.X=this.width=NaN}; +SuO=function(){g.z.call(this,{N:"div",Y:"ytp-timed-marker"});this.J=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; +g.IK=function(X,c){g.rP.call(this,{N:"div",Y:"ytp-progress-bar-container",K:{"aria-disabled":"true"},V:[{N:"div",xO:["ytp-heat-map-container"],V:[{N:"div",Y:"ytp-heat-map-edu"}]},{N:"div",xO:["ytp-progress-bar"],K:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},V:[{N:"div",Y:"ytp-chapters-container"},{N:"div",Y:"ytp-timed-markers-container"},{N:"div",Y:"ytp-clip-start-exclude"}, +{N:"div",Y:"ytp-clip-end-exclude"},{N:"div",Y:"ytp-scrubber-container",V:[{N:"div",xO:["ytp-scrubber-button","ytp-swatch-background-color"],V:[{N:"div",Y:"ytp-scrubber-pull-indicator"},{N:"img",xO:["ytp-decorated-scrubber-button"]}]}]}]},{N:"div",xO:["ytp-fine-scrubbing-container"],V:[{N:"div",Y:"ytp-fine-scrubbing-edu"}]},{N:"div",Y:"ytp-bound-time-left",Uy:"{{boundTimeLeft}}"},{N:"div",Y:"ytp-bound-time-right",Uy:"{{boundTimeRight}}"},{N:"div",Y:"ytp-clip-start",K:{title:"{{clipstarttitle}}"},Uy:"{{clipstarticon}}"}, +{N:"div",Y:"ytp-clip-end",K:{title:"{{clipendtitle}}"},Uy:"{{clipendicon}}"}]});this.api=X;this.LJ=!1;this.gs=this.Pb=this.LS=this.B=this.l_=0;this.ON=null;this.Pg=!1;this.Hl={};this.Ly={};this.clipEnd=Infinity;this.NE=this.I2("ytp-clip-end");this.Od=new g.T5(this.NE,!0);this.oZ=this.I2("ytp-clip-end-exclude");this.G2=this.I2("ytp-clip-start-exclude");this.clipStart=0;this.EM=this.I2("ytp-clip-start");this.Bd=new g.T5(this.EM,!0);this.C=this.qE=0;this.progressBar=this.I2("ytp-progress-bar");this.hX= +{};this.QK={};this.fS=this.I2("ytp-chapters-container");this.MJ=this.I2("ytp-timed-markers-container");this.J=[];this.D=[];this.YM={};this.fJ=null;this.kO=-1;this.o2=this.NW=0;this.z2=this.T=null;this.vW=this.I2("ytp-scrubber-button");this.pM=this.I2("ytp-decorated-scrubber-button");this.U_=this.I2("ytp-scrubber-container");this.yK=new g.wn;this.jX=new D3S;this.U=new Iu(0,0);this.vP=null;this.G_=this.bH=!1;this.jL=null;this.A7=this.I2("ytp-heat-map-container");this.tT=this.I2("ytp-heat-map-edu"); +this.X=[];this.heatMarkersDecorations=[];this.T_=this.I2("ytp-fine-scrubbing-container");this.gm=this.I2("ytp-fine-scrubbing-edu");this.G=void 0;this.Pl=this.Wg=this.wy=!1;this.tooltip=c.ai();this.addOnDisposeCallback(g.vO(this.tooltip,this.NE));g.N(this,this.Od);this.Od.subscribe("hoverstart",this.gP,this);this.Od.subscribe("hoverend",this.dP,this);this.L(this.NE,"click",this.DS);this.addOnDisposeCallback(g.vO(this.tooltip,this.EM));g.N(this,this.Bd);this.Bd.subscribe("hoverstart",this.gP,this); +this.Bd.subscribe("hoverend",this.dP,this);this.L(this.EM,"click",this.DS);iUj(this);this.L(X,"resize",this.Ky);this.L(X,"presentingplayerstatechange",this.DW_);this.L(X,"videodatachange",this.sQ);this.L(X,"videoplayerreset",this.Syy);this.L(X,"cuerangesadded",this.aHv);this.L(X,"cuerangesremoved",this.Zey);this.L(X,"onLoopRangeChange",this.YY);this.L(X,"innertubeCommand",this.onClickCommand);this.L(X,g.jw("timedMarkerCueRange"),this.tXv);this.L(X,"updatemarkervisibility",this.jC);this.L(X,"serverstitchedvideochange", +this.N1_);this.updateVideoData(X.getVideoData(),!0);this.YY(X.getLoopRange());pH(this)&&!this.G&&(this.G=new NBl(this.api,this.tooltip),X=g.xv(this.element).x||0,this.G.Ky(X,this.B),this.G.uc(this.T_),g.N(this,this.G),this.L(this.G.dismissButton,"click",this.FE),this.L(this.G.playButton,"click",this.Sg),this.L(this.G.element,"dblclick",this.Sg));this.api.createClientVe(this.A7,this,139609,!0);this.api.createClientVe(this.tT,this,140127,!0);this.api.createClientVe(this.gm,this,151179,!0);this.api.createClientVe(this.progressBar, +this,38856,!0)}; +iUj=function(X){if(X.J.length===0){var c=new gO;X.J.push(c);g.N(X,c);c.uc(X.fS,0)}for(;X.J.length>1;)X.J.pop().dispose();fH(X.J[0],"100%");X.J[0].startTime=0;X.J[0].title=""}; +qul=function(X){var c=c===void 0?NaN:c;var V=new Ka1(X.api);X.X.push(V);g.N(X,V);V.uc(X.A7);c>=0&&(V.element.style.width=c+"px")}; +Xkt=function(X){for(;X.D.length;)X.D.pop().dispose()}; +Vdj=function(X){var c,V,G,n,L;return(L=g.T((n=g.T((c=X.getWatchNextResponse())==null?void 0:(V=c.playerOverlays)==null?void 0:(G=V.playerOverlayRenderer)==null?void 0:G.decoratedPlayerBarRenderer,ez))==null?void 0:n.playerBar,cYL))==null?void 0:L.chapters}; +GUS=function(X){for(var c=X.J,V=[],G=0;G=d&&Z<=H&&L.push(W)}A>0&&(X.A7.style.height=A+"px");d=X.X[G];H=L;W=n;F=A;Z=G===0;Z=Z===void 0?!1:Z;sSD(d,F);a=H;w=d.G;Z=Z===void 0?!1:Z;var v=1E3/a.length,e=[];e.push({x:0,y:100});for(var m=0;m0&&(V=L[L.length-1])}g.Nb(X);h=[];c=g.r(c.heatMarkersDecorations||[]);for(n=c.next();!n.done;n=c.next())if(n=g.T(n.value,YYs))A=n.label,G=V=Y=void 0,h.push({visibleTimeRangeStartMillis:(Y=n.visibleTimeRangeStartMillis)!=null?Y:-1,visibleTimeRangeEndMillis:(V=n.visibleTimeRangeEndMillis)!=null?V:-1,decorationTimeMillis:(G=n.decorationTimeMillis)!=null?G:NaN,label:A?g.xT(A):""});X.heatMarkersDecorations=h}}; +dFl=function(X,c){X.D.push(c);g.N(X,c);c.uc(X.MJ,X.MJ.children.length)}; +yYS=function(X,c){c=g.r(c);for(var V=c.next();!V.done;V=c.next()){V=V.value;var G=U4(X,V.timeRangeStartMillis/(X.U.J*1E3),Ti(X));g.$v(V.element,"transform","translateX("+G+"px) scaleX(0.6)")}}; +n6l=function(X,c){var V=0,G=!1;c=g.r(c);for(var n=c.next();!n.done;n=c.next()){n=n.value;if(g.T(n,H4j)){n=g.T(n,H4j);var L={startTime:NaN,title:null,onActiveCommand:void 0},d=n.title;L.title=d?g.xT(d):"";d=n.timeRangeStartMillis;d!=null&&(L.startTime=d);L.onActiveCommand=n.onActiveCommand;n=L;V===0&&n.startTime!==0&&(X.J[V].startTime=0,X.J[V].title="",X.J[V].onActiveCommand=n.onActiveCommand,V++,G=!0);X.J.length<=V&&(L=new gO,X.J.push(L),g.N(X,L),L.uc(X.fS,X.fS.children.length));X.J[V].startTime= +n.startTime;X.J[V].title=n.title?n.title:"";X.J[V].onActiveCommand=n.onActiveCommand;X.J[V].index=G?V-1:V}V++}for(;V=0;G--)if(X.J[G].width>0){CKD(X.J[G],0);var n=Math.floor(X.J[G].width);X.J[G].width=n;fH(X.J[G],n+"px");break}X.J[V].width=0;fH(X.J[V],"0")}else V===X.J.length-1?(G=Math.floor(X.J[V].width+c),X.J[V].width=G,fH(X.J[V],G+"px")):(c=X.J[V].width+c,G=Math.round(c),c-=G,X.J[V].width=G,fH(X.J[V],G+"px"));V=0;if(X.X.length===X.J.length)for(c=0;c< +X.X.length;c++)G=X.J[c].width,X.X[c].element.style.width=G+"px",X.X[c].element.style.left=V+"px",V+=G+Pz(X);X.api.S("delhi_modern_web_player")&&(X.J.length===1?X.J[0].G.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(X.J[0].G.classList.remove("ytp-progress-bar-end"),X.J[0].G.classList.add("ytp-progress-bar-start"),X.J[X.J.length-1].G.classList.add("ytp-progress-bar-end")))}; +a_l=function(X,c){var V=0,G=!1,n=X.J.length,L=X.U.J*1E3;L===0&&(L=X.api.getProgressState().seekableEnd*1E3);if(L>0&&X.B>0){for(var d=X.B-Pz(X)*X.NW,h=X.o2===0?3:d*X.o2,A=g.r(X.J),Y=A.next();!Y.done;Y=A.next())Y.value.width=0;for(;V1);Y=(L===0?0:A/L*d)+X.J[V].width;if(Y>h)X.J[V].width=Y;else{X.J[V].width=0;var H=X,a=V,W=H.J[a-1];W!==void 0&&W.width>0? +W.width+=Y:aX.o2&&(X.o2=A/L),G=!0)}V++}}return G}; +u8=function(X){if(X.B){var c=X.api.getProgressState(),V=X.api.getVideoData();if(!(V&&V.enableServerStitchedDai&&V.enablePreroll)||isFinite(c.current)){var G;if(((G=X.api.getVideoData())==null?0:cO(G))&&c.airingStart&&c.airingEnd)var n=zi(X,c.airingStart,c.airingEnd);else if(X.api.getPresentingPlayerType()===2&&X.api.j().S("show_preskip_progress_bar_for_skippable_ads")){var L,d,h;n=(V=(n=X.api.getVideoData())==null?void 0:(L=n.getPlayerResponse())==null?void 0:(d=L.playerConfig)==null?void 0:(h=d.webPlayerConfig)== +null?void 0:h.skippableAdProgressBarDuration)?zi(X,c.seekableStart,V/1E3):zi(X,c.seekableStart,c.seekableEnd)}else n=zi(X,c.seekableStart,c.seekableEnd);L=NA(n,c.loaded,0);c=NA(n,c.current,0);d=X.U.G!==n.G||X.U.J!==n.J;X.U=n;Bz(X,c,L);d&&$F1(X);WeS(X)}}}; +zi=function(X,c,V){return wkj(X)?new Iu(Math.max(c,X.vP.startTimeMs/1E3),Math.min(V,X.vP.endTimeMs/1E3)):new Iu(c,V)}; +FeO=function(X,c){var V;if(((V=X.vP)==null?void 0:V.type)==="repeatChapter"||(c==null?void 0:c.type)==="repeatChapter")c&&(c=X.J[hD(X.J,c.startTimeMs)],g.ab(c.J,"ytp-repeating-chapter",!1)),X.vP&&(c=X.J[hD(X.J,X.vP.startTimeMs)],g.ab(c.J,"ytp-repeating-chapter",!0)),X.J.forEach(function(G){g.ab(G.J,"ytp-exp-chapter-hover-container",!X.vP)})}; +s4=function(X,c){var V=X.U;V=V.G+c.G*V.getLength();if(X.J.length>1){V=KH(X,c.U,!0);for(var G=0,n=0;n0&&(G+=X.J[n].width,G+=Pz(X));V=(X.J[V].startTime+(c.U-G)/X.J[V].width*((V===X.J.length-1?X.U.J*1E3:X.J[V+1].startTime)-X.J[V].startTime))/1E3||0}return V}; +CH=function(X,c,V,G,n){c=c<0?0:Math.floor(Math.min(c,X.api.getDuration())*1E3);V=V<0?0:Math.floor(Math.min(V,X.api.getDuration())*1E3);X=X.progressBar.visualElement;G={seekData:{startMediaTimeMs:c,endMediaTimeMs:V,seekSource:G}};(c=g.tU())&&g.Gx(n3)(void 0,c,X,n,G,void 0)}; +E6s=function(X,c,V){if(V>=X.J.length)return!1;var G=X.B-Pz(X)*X.NW;return Math.abs(c-X.J[V].startTime/1E3)/X.U.J*G<4}; +$F1=function(X){X.vW.style.removeProperty("height");for(var c=g.r(Object.keys(X.Hl)),V=c.next();!V.done;V=c.next())rYs(X,V.value);DZ(X);Bz(X,X.C,X.qE)}; +Ti=function(X){var c=X.yK.x;c=g.am(c,0,X.B);X.jX.update(c,X.B);return X.jX}; +i8=function(X){return(X.G_?135:90)-SO(X)}; +SO=function(X){var c=48,V=X.api.j();X.G_?c=54:g.RT(V)&&!V.G?c=40:X.api.S("delhi_modern_web_player")&&(c=68);return c}; +Bz=function(X,c,V){X.C=c;X.qE=V;var G=Ti(X),n=X.U.J;var L=X.U;L=L.G+X.C*L.getLength();var d=g.xa("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.Ru(L,!0),DURATION:g.Ru(n,!0)}),h=hD(X.J,L*1E3);h=X.J[h].title;X.update({ariamin:Math.floor(X.U.G),ariamax:Math.floor(n),arianow:Math.floor(L),arianowtext:h?h+" "+d:d});n=X.clipStart;L=X.clipEnd;X.vP&&X.api.getPresentingPlayerType()!==2&&(n=X.vP.startTimeMs/1E3,L=X.vP.endTimeMs/1E3);n=NA(X.U,n,0);h=NA(X.U,L,1);d=X.api.getVideoData();L=g.am(c,n,h);V=(d==null? +0:g.qO(d))?1:g.am(V,n,h);c=U4(X,c,G);g.$v(X.U_,"transform","translateX("+c+"px)");X.api.S("delhi_modern_web_player")&&Q4s(X,c);qb(X,G,n,L,"PLAY_PROGRESS");(d==null?0:cO(d))?(c=X.api.getProgressState().seekableEnd)&&qb(X,G,L,NA(X.U,c),"LIVE_BUFFER"):qb(X,G,n,V,"LOAD_PROGRESS");if(X.api.S("web_player_heat_map_played_bar")){var A;(A=X.X[0])!=null&&A.D.setAttribute("width",(L*100).toFixed(2)+"%")}}; +Q4s=function(X,c){if(X.api.getPresentingPlayerType()!==1)X.fS.style.removeProperty("clip-path");else{c||(c=U4(X,X.C,Ti(X)));var V=X.Pg?36:28,G=c-V/2;c+=V/2;X.fS.style.clipPath='path("M 0 0 L 0 8 L '+(G+" 8 C "+(G+6+" 8 "+(G+6)+" 0 "+G+" 0 L 0 0 M ")+(c+" 0 L ")+(X.B+" 0 L ")+(X.B+" 8 L ")+(c+" 8 C ")+(c-6+" 8 "+(c-6)+" 0 "+c+' 0")'))}}; +qb=function(X,c,V,G,n){var L=X.J.length,d=c.J-X.NW*Pz(X),h=V*d;V=KH(X,h);var A=G*d;d=KH(X,A);n==="HOVER_PROGRESS"&&(d=KH(X,c.J*G,!0),A=c.J*G-Z4O(X,c.J*G)*Pz(X));G=Math.max(h-xFO(X,V),0);for(h=V;h=X.J.length)return X.B;for(var V=0,G=0;G0||X.oZ.clientWidth>0?(L=c.clientWidth/V,X=-1*X.G2.clientWidth/V):(L/=V,X=-1*X.J[n].element.offsetLeft/V),g.$v(c,"background-size",L+"px"),g.$v(c,"background-position-x",X+"px"))}; +Xh=function(X,c,V,G,n){n||X.api.j().G?c.style.width=V+"px":g.$v(c,"transform","scalex("+(G?V/G:0)+")")}; +KH=function(X,c,V){var G=0;(V===void 0?0:V)&&(c-=Z4O(X,c)*Pz(X));V=g.r(X.J);for(var n=V.next();!n.done;n=V.next()){n=n.value;if(c>n.width)c-=n.width;else break;G++}return G===X.J.length?G-1:G}; +U4=function(X,c,V){var G=c*X.U.J*1E3;for(var n=-1,L=g.r(X.J),d=L.next();!d.done;d=L.next())d=d.value,G>d.startTime&&d.width>0&&n++;G=n<0?0:n;n=V.J-Pz(X)*X.NW;return c*n+Pz(X)*G+V.X}; +Z4O=function(X,c){for(var V=X.J.length,G=0,n=g.r(X.J),L=n.next();!L.done;L=n.next())if(L=L.value,L.width!==0)if(c>L.width)c-=L.width,c-=Pz(X),G++;else break;return G===V?V-1:G}; +g.o6D=function(X,c,V,G){var n=X.B!==V,L=X.G_!==G;X.l_=c;X.B=V;X.G_=G;pH(X)&&(c=X.G)!=null&&(c.scale=G?1.5:1);$F1(X);X.J.length===1&&(X.J[0].width=V||0);n&&g.Nb(X);X.G&&L&&pH(X)&&(X.G.isEnabled&&(V=X.G_?135:90,G=V-SO(X),X.T_.style.height=V+"px",g.$v(X.A7,"transform","translateY("+-G+"px)"),g.$v(X.progressBar,"transform","translateY("+-G+"px)")),PK1(X.G))}; +DZ=function(X){var c=!!X.vP&&X.api.getPresentingPlayerType()!==2,V=X.clipStart,G=X.clipEnd,n=!0,L=!0;c&&X.vP?(V=X.vP.startTimeMs/1E3,G=X.vP.endTimeMs/1E3):(n=V>X.U.G,L=X.U.J>0&&GX.C);g.ab(X.vW,"ytp-scrubber-button-hover",V===G&&X.J.length>1);if(X.api.S("web_player_heat_map_played_bar")){var L;(L=X.X[0])!=null&&L.J.setAttribute("width",(c.G*100).toFixed(2)+"%")}}}; +rYs=function(X,c){var V=X.Hl[c];c=X.Ly[c];var G=Ti(X),n=NA(X.U,V.start/1E3,0),L=Wds(V,X.G_)/G.width;var d=NA(X.U,V.end/1E3,1);L!==Number.POSITIVE_INFINITY&&(n=g.am(n,0,d-L));d=Math.min(d,n+L);V.color&&(c.style.background=V.color);V=n;c.style.left=Math.max(V*G.J+G.X,0)+"px";Xh(X,c,g.am((d-V)*G.J+G.X,0,G.width),G.width,!0)}; +eEL=function(X,c){var V=c.getId();X.Hl[V]===c&&(g.yj(X.Ly[V]),delete X.Hl[V],delete X.Ly[V])}; +pH=function(X){var c=g.S3(X.api.j())&&(X.api.S("web_shorts_pip")||X.api.S("web_watch_pip")),V;return!((V=X.api.getVideoData())==null?0:V.isLivePlayback)&&!X.api.isMinimized()&&!X.api.isInline()&&(!X.api.eU()||!c)}; +cj=function(X){X.G&&(X.G.disable(),X.LS=0,X.A7.style.removeProperty("transform"),X.progressBar.style.removeProperty("transform"),X.T_.style.removeProperty("height"),X.element.parentElement&&X.element.parentElement.style.removeProperty("height"))}; +JYt=function(X,c){var V=c/i8(X)*SO(X);g.$v(X.progressBar,"transform","translateY("+-c+"px)");g.$v(X.A7,"transform","translateY("+-c+"px)");g.$v(X.T_,"transform","translateY("+V+"px)");X.T_.style.height=c+V+"px";X.element.parentElement&&(X.element.parentElement.style.height=SO(X)-V+"px")}; +mFs=function(X,c){c?X.T||(X.element.removeAttribute("aria-disabled"),X.T=new g.T5(X.progressBar,!0),X.T.subscribe("hovermove",X.QL7,X),X.T.subscribe("hoverend",X.tQ7,X),X.T.subscribe("dragstart",X.cTO,X),X.T.subscribe("dragmove",X.SHW,X),X.T.subscribe("dragend",X.ZER,X),X.api&&X.api.S("delhi_modern_web_player")&&(X.z2=new g.T5(X.progressBar,!0),X.z2.subscribe("hoverstart",function(){X.Pg=!0;Q4s(X)},X),X.z2.subscribe("hoverend",function(){X.Pg=!1; +Q4s(X)},X)),X.jL=X.listen("keydown",X.Vm)):X.T&&(X.element.setAttribute("aria-disabled","true"),X.Hd(X.jL),X.T.cancel(),X.T.dispose(),X.T=null)}; +Pz=function(X){return X.api.S("delhi_modern_web_player")?4:X.G_?3:2}; +wkj=function(X){var c;return!((c=X.vP)==null||!c.postId)&&X.api.getPresentingPlayerType()!==2}; +Vx=function(X,c){g.z.call(this,{N:"button",xO:["ytp-remote-button","ytp-button"],K:{title:"Play on TV","aria-haspopup":"true","data-priority":"9"},Uy:"{{icon}}"});this.W=X;this.PP=c;this.J=null;this.L(X,"onMdxReceiversChange",this.pS);this.L(X,"presentingplayerstatechange",this.pS);this.L(X,"appresize",this.pS);X.createClientVe(this.element,this,139118);this.pS();this.listen("click",this.G,this);kz(X,this.element,this)}; +Gg=function(X,c){g.z.call(this,{N:"button",xO:["ytp-button","ytp-settings-button"],K:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":WR(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},V:[g.MM()]});this.W=X;this.PP=c;this.G=!0;this.listen("click",this.U);this.L(X,"onPlaybackQualityChange",this.updateBadge);this.L(X,"videodatachange",this.updateBadge);this.L(X,"webglsettingschanged",this.updateBadge);this.L(X,"appresize",this.J);kz(X,this.element,this);this.W.createClientVe(this.element, +this,28663);this.updateBadge();this.J(X.CS().getPlayerSize())}; +REs=function(X,c){X.G=!!c;X.J(X.W.CS().getPlayerSize())}; +na=function(X,c){nz.call(this,"Annotations",g.YH.uR);this.W=X;this.PP=c;this.J=!1;X.S("web_settings_menu_icons")&&this.setIcon({N:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{N:"path",K:{d:"M17.5,7c1.93,0,3.5,1.57,3.5,3.5c0,1-0.53,4.5-0.85,6.5h-2.02l0.24-1.89l0.14-1.09l-1.1-0.03C15.5,13.94,14,12.4,14,10.5 C14,8.57,15.57,7,17.5,7 M6.5,7C8.43,7,10,8.57,10,10.5c0,1-0.53,4.5-0.85,6.5H7.13l0.24-1.89l0.14-1.09l-1.1-0.03 C4.5,13.94,3,12.4,3,10.5C3,8.57,4.57,7,6.5,7 M17.5,6C15.01,6,13,8.01,13,10.5c0,2.44,1.95,4.42,4.38,4.49L17,18h4c0,0,1-6,1-7.5 C22,8.01,19.99,6,17.5,6L17.5,6z M6.5,6C4.01,6,2,8.01,2,10.5c0,2.44,1.95,4.42,4.38,4.49L6,18h4c0,0,1-6,1-7.5 C11,8.01,8.99,6,6.5,6L6.5,6z", +fill:"white"}}]});this.L(X,"videodatachange",this.pS);this.L(X,"onApiChange",this.pS);this.subscribe("select",this.onSelect,this);this.pS()}; +La=function(X,c){g.Ii.call(this,"Audio track",g.YH.AUDIO,X,c);this.W=X;this.tracks={};g.Ax(this.element,"ytp-audio-menu-item");this.countLabel=new g.z({N:"div",V:[{N:"span",Uy:"Audio track"},{N:"span",Y:"ytp-menuitem-label-count",Uy:"{{content}}"}]});X.S("web_settings_menu_icons")&&this.setIcon({N:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{N:"path",K:{d:"M11.72,11.93C13.58,11.59,15,9.96,15,8c0-2.21-1.79-4-4-4C8.79,4,7,5.79,7,8c0,1.96,1.42,3.59,3.28,3.93 C4.77,12.21,2,15.76,2,20h18C20,15.76,17.23,12.21,11.72,11.93z M8,8c0-1.65,1.35-3,3-3s3,1.35,3,3s-1.35,3-3,3S8,9.65,8,8z M11,12.9c5.33,0,7.56,2.99,7.94,6.1H3.06C3.44,15.89,5.67,12.9,11,12.9z M16.68,11.44l-0.48-0.88C17.31,9.95,18,8.77,18,7.5 c0-1.27-0.69-2.45-1.81-3.06l0.49-0.88C18.11,4.36,19,5.87,19,7.5C19,9.14,18.11,10.64,16.68,11.44z M18.75,13.13l-0.5-0.87 C19.95,11.28,21,9.46,21,7.5s-1.05-3.78-2.75-4.76l0.5-0.87C20.75,3.03,22,5.19,22,7.5S20.76,11.97,18.75,13.13z", +fill:"white"}}]});g.N(this,this.countLabel);g.BO(this,this.countLabel);this.L(X,"videodatachange",this.pS);this.L(X,"onPlaybackAudioChange",this.pS);this.pS()}; +dF=function(X,c){nz.call(this,"Autoplay",g.YH.wd);this.W=X;this.PP=c;this.J=!1;this.U=[];this.L(X,"presentingplayerstatechange",this.G);this.subscribe("select",this.onSelect,this);X.createClientVe(this.element,this,113682);this.G()}; +b4j=function(X,c){g.K9.call(this,g.sN({"aria-haspopup":"false"}),0,"More options");this.W=X;this.PP=c;this.L(this.element,"click",this.onClick);this.PP.Y9(this)}; +tdl=function(X,c){var V;g.S3(X.j())&&(V={N:"div",Y:"ytp-panel-footer-content",V:[{N:"span",Uy:"Adjust download quality from your "},{N:"a",Y:"ytp-panel-footer-content-link",Uy:"Settings",K:{href:"/account_downloads"}}]});g.Ii.call(this,"Quality",g.YH.Nt,X,c,void 0,void 0,V);this.W=X;this.kO={};this.C={};this.X={};this.NW=new Set;this.J=this.B=!1;this.D="unknown";this.G_="";this.A7=new g.q6;g.N(this,this.A7);this.B=this.W.S("web_player_use_new_api_for_quality_pullback");this.J=this.W.S("web_player_enable_premium_hbr_playback_cap"); +X.S("web_settings_menu_icons")&&this.setIcon({N:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{N:"path",K:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",fill:"white"}}]});g.Ax(this.G.element,"ytp-quality-menu");this.L(X,"videodatachange",this.AN);this.L(X,"videoplayerreset",this.AN);this.L(X,"onPlaybackQualityChange",this.bx);this.AN();X.createClientVe(this.element,this,137721)}; +l_w=function(X,c,V){var G=X.kO[c],n=g.Pb[c];return O48(X,G?G.qualityLabel:n?n+"p":"Auto",c,V)}; +Mdl=function(X,c,V,G,n){var L=(c=X.J?X.X[c]:X.C[c])&&c.quality,d=c&&c.qualityLabel;d=d?d:"Auto";G&&(d="("+d);X=O48(X,d,L||"",n);G&&X.V.push(")");(G=(G=c&&c.paygatedQualityDetails)&&G.paygatedIndicatorText)&&V&&X.V.push({N:"div",Y:"ytp-premium-label",Uy:G});return X}; +O48=function(X,c,V,G){c={N:"span",xO:G,V:[c]};var n;G="ytp-swatch-color";if(X.B||X.J)G="ytp-swatch-color-white";V==="highres"?n="8K":V==="hd2880"?n="5K":V==="hd2160"?n="4K":V.indexOf("hd")===0&&V!=="hd720"&&(n="HD");n&&(c.V.push(" "),c.V.push({N:"sup",Y:G,Uy:n}));return c}; +yx=function(X,c,V,G,n,L){L=L===void 0?!1:L;var d={N:"div",xO:["ytp-input-slider-section"],V:[{N:"input",Y:"ytp-input-slider",K:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};n&&d.V.unshift(n);L&&d.xO.push("ytp-vertical-slider");g.z.call(this,d);this.U=X;this.X=c;this.D=V;this.initialValue=G;this.header=n;this.J=this.I2("ytp-input-slider");this.G=G?G:X;this.init();this.L(this.J,"input",this.T);this.L(this.J,"keydown", +this.B)}; +f_O=function(X,c){X.G=c;X.updateValue("slidervalue",X.G);X.J.valueAsNumber=X.G;g6D(X,c)}; +g6D=function(X,c){X.J.style.setProperty("--yt-slider-shape-gradient-percent",(c-X.U)/(X.X-X.U)*100+"%")}; +hG=function(X){yx.call(this,X.getAvailablePlaybackRates()[0],X.getAvailablePlaybackRates()[X.getAvailablePlaybackRates().length-1],.05,X.getPlaybackRate(),{N:"div",Y:"ytp-speedslider-indicator-container",V:[{N:"div",Y:"ytp-speedslider-badge"},{N:"p",Y:"ytp-speedslider-text"}]});this.W=X;this.G_=sF2(this.A7,this);g.Ax(this.J,"ytp-speedslider");this.C=this.I2("ytp-speedslider-text");this.NW=this.I2("ytp-speedslider-badge");pkl(this);this.L(this.J,"change",this.kO)}; +pkl=function(X){X.C.textContent=X.G+"x";X.NW.classList.toggle("ytp-speedslider-premium-badge",X.G>2&&X.W.S("enable_web_premium_varispeed"))}; +AG=function(X,c,V,G,n,L,d){g.z.call(this,{N:"div",Y:"ytp-slider-section",K:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},V:[{N:"div",Y:"ytp-slider",V:[{N:"div",Y:"ytp-slider-handle"}]}]});this.T=X;this.C=c;this.G=V;this.U=G;this.G_=n;this.Pl=L;this.range=this.U-this.G;this.wy=this.I2("ytp-slider-section");this.X=this.I2("ytp-slider");this.A7=this.I2("ytp-slider-handle");this.D=new g.T5(this.X, +!0);this.J=d?d:V;g.N(this,this.D);this.D.subscribe("dragmove",this.K_,this);this.L(this.element,"keydown",this.C_);this.L(this.element,"wheel",this.ym);this.init()}; +YX=function(X){AG.call(this,.05,.05,X.getAvailablePlaybackRates()[0],X.getAvailablePlaybackRates()[X.getAvailablePlaybackRates().length-1],150,20,X.getPlaybackRate());this.W=X;this.B=g.Vj("P");this.NW=sF2(this.kO,this);g.Ax(this.X,"ytp-speedslider");g.Ax(this.B,"ytp-speedslider-text");X=this.B;var c=this.X;c.parentNode&&c.parentNode.insertBefore(X,c.nextSibling);I_D(this);this.L(this.W,"onPlaybackRateChange",this.updateValues)}; +I_D=function(X){X.B.textContent=No8(X,X.J)+"x"}; +No8=function(X,c){X=Number(g.am(c,X.G,X.U).toFixed(2));c=Math.floor((X+.001)*100%5+2E-15);var V=X;c!==0&&(V=X-c*.01);return Number(V.toFixed(2))}; +UFl=function(X){g.rP.call(this,{N:"div",Y:"ytp-speedslider-component"});X.S("web_settings_use_input_slider")?this.J=new hG(X):this.J=new YX(X);g.N(this,this.J);this.element.appendChild(this.J.element)}; +Tos=function(X){var c=new UFl(X);e2.call(this,X,c,"Custom");g.N(this,c)}; +u3O=function(X,c){var V=new Tos(X);g.Ii.call(this,"Playback speed",g.YH.m5,X,c,jY(X)?void 0:"Custom",jY(X)?void 0:function(){g.t_(c,V)}); +var G=this;this.X=!1;g.N(this,V);this.D=new hG(X);g.N(this,this.D);X.S("web_settings_menu_icons")&&this.setIcon({N:"svg",K:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{N:"path",K:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z", +fill:"white"}}]});this.W=X;this.X=!1;this.G_=null;jY(X)?(this.J=g.xa("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.W.getPlaybackRate().toString()}),this.B=this.W.getPlaybackRate()):this.B=this.J=null;this.C=this.W.getAvailablePlaybackRates();this.L(X,"presentingplayerstatechange",this.pS);var n;((n=this.W.getVideoData())==null?0:n.JT())&&this.L(X,"serverstitchedvideochange",this.pS);this.L(this.D.J,"change",function(){G.X=!0;G.pS()}); +this.pS()}; +PJ2=function(X,c){var V=Hj(c);X.J&&(X.X||c===X.B)?(X.O_(X.J),X.AT(c.toString())):X.O_(V)}; +Boj=function(X){X.Wo(X.C.map(Hj));X.J=null;X.B=null;var c=X.W.getPlaybackRate();jY(X.W)&&zEt(X,c);!X.C.includes(c)||X.X?X.O_(X.J):X.O_(Hj(c))}; +zEt=function(X,c){X.B=c;X.J=g.xa("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:c.toString()});c=X.C.map(Hj);c.unshift(X.J);X.Wo(c)}; +Hj=function(X){return X.toString()}; +jY=function(X){return X.S("web_settings_menu_surface_custom_playback")}; +Ke8=function(X){return X.S("web_settings_menu_surface_custom_playback")&&X.S("web_settings_use_input_slider")}; +CJs=function(X,c,V,G){var n=new g.J_(c,void 0,"Video Override");g.Ii.call(this,G.text||"",X,c,V,"Video Override",function(){g.t_(V,n)}); +var L=this;g.Ax(this.element,"ytp-subtitles-options-menu-item");this.setting=G.option.toString();X=G.options;this.settings=g.wQ(X,this.LC,this);this.B=n;g.N(this,this.B);c=new g.K9({N:"div",Y:"ytp-menuitemtitle",Uy:"Allow for a different caption style if specified by the video."},0);g.N(this,c);this.B.Y9(c,!0);this.X=new g.K9({N:"div",Y:"ytp-menuitem",K:{role:"menuitemradio",tabindex:"0"},V:[{N:"div",Y:"ytp-menuitem-label",Uy:"On"}]},-1);g.N(this,this.X);this.B.Y9(this.X,!0);this.L(this.X.element, +"click",function(){s4j(L,!0)}); +this.J=new g.K9({N:"div",Y:"ytp-menuitem",K:{role:"menuitemradio",tabindex:"0"},V:[{N:"div",Y:"ytp-menuitem-label",Uy:"Off"}]},-2);g.N(this,this.J);this.B.Y9(this.J,!0);this.L(this.J.element,"click",function(){s4j(L,!1)}); +this.Wo(g.Rt(X,this.LC))}; +s4j=function(X,c){X.publish("settingChange",X.setting+"Override",!c);X.PP.GZ()}; +aZ=function(X,c){g.J_.call(this,X,void 0,"Options");var V=this;this.yV={};for(var G=0;G=0);if(!(c<0||c===X.X)){X.X=c;c=243*X.scale;var V=141*X.scale,G=wKl(X.G,X.X,c);vn2(X.bg,G,c,V,!0);X.A7.start()}}; +xSD=function(X){var c=X.J;X.type===3&&X.kO.stop();X.api.removeEventListener("appresize",X.G_);X.T||c.setAttribute("title",X.U);X.U="";X.J=null;X.update({keyBoardShortcut:"",keyBoardShortcutTitle:""});X.wrapper.style.width=""}; +kNl=function(X){g.z.call(this,{N:"button",xO:["ytp-watch-later-button","ytp-button"],K:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.RT(X.j()))},V:[{N:"div",Y:"ytp-watch-later-icon",Uy:"{{icon}}"},{N:"div",Y:"ytp-watch-later-title",Uy:"Watch later"}]});this.W=X;this.icon=null;this.visible=this.isRequestPending=this.J=!1;K7L(X);X.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.L(X,"videoplayerreset",this.onReset);this.L(X,"appresize", +this.RD);this.L(X,"videodatachange",this.RD);this.L(X,"presentingplayerstatechange",this.RD);this.RD();X=this.W.j();var c=g.Il("yt-player-watch-later-pending");X.X&&c?(pvL(),vht(this)):this.pS(2);g.ab(this.element,"ytp-show-watch-later-title",g.RT(X));kz(this.W,this.element,this)}; +oht=function(X){var c=X.W.getPlayerSize(),V=X.W.j(),G=X.W.getVideoData(),n=g.RT(V)&&g.bc(X.W)&&g.B(X.W.getPlayerStateObject(),128),L=V.U;return V.gs&&c.width>=240&&!G.isAd()&&G.gs&&!n&&!g.Vf(G)&&!X.W.isEmbedsShortsMode()&&!L}; +e58=function(X,c){sBO(g.BD(X.W.j()),"wl_button",function(){pvL({videoId:c});window.location.reload()})}; +vht=function(X){if(!X.isRequestPending){X.isRequestPending=!0;X.pS(3);var c=X.W.getVideoData();c=X.J?c.removeFromWatchLaterCommand:c.addToWatchLaterCommand;var V=X.W.iF(),G=X.J?function(){X.J=!1;X.isRequestPending=!1;X.pS(2);X.W.j().D&&X.W.z_("WATCH_LATER_VIDEO_REMOVED")}:function(){X.J=!0; +X.isRequestPending=!1;X.pS(1);X.W.j().G&&X.W.j9(X.element);X.W.j().D&&X.W.z_("WATCH_LATER_VIDEO_ADDED")}; +qp(V,c).then(G,function(){X.isRequestPending=!1;X.pS(4,"An error occurred. Please try again later.");X.W.j().D&&X.W.z_("WATCH_LATER_ERROR","An error occurred. Please try again later.")})}}; +J1w=function(X,c){if(c!==X.icon){switch(c){case 3:var V=hw();break;case 1:V=kT();break;case 2:V={N:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{N:"path",k9:!0,Y:"ytp-svg-fill",K:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:V={N:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{N:"path", +k9:!0,K:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}X.updateValue("icon",V);X.icon=c}}; +g.eY=function(){g.uV.apply(this,arguments);this.Zt=(this.Hf=g.RT(this.api.j()))&&(this.api.j().G||nv()||Ve());this.bk=48;this.L9=69;this.BU=this.Yy=null;this.CP=[];this.HH=this.SV=this.vH=this.RM=this.nE=null;this.kP=[];this.contextMenu=this.TY=this.overflowButton=this.BE=this.uj=this.searchButton=this.copyLinkButton=this.shareButton=this.s0=this.kz=this.title=this.channelAvatar=this.PX=this.tooltip=null;this.N3=!1;this.o9=this.Oz=this.y3=this.K0=null;this.yW=this.rN=this.V5=!1}; +mSL=function(X){var c=X.api.j(),V=g.B(X.api.getPlayerStateObject(),128);return c.X&&V&&!X.api.isFullscreen()}; +R5l=function(X){if(X.hP()&&!X.api.isEmbedsShortsMode()&&X.BE){var c=X.api.S("web_player_hide_overflow_button_if_empty_menu");!X.s0||c&&!oht(X.s0)||s$1(X.BE,X.s0);!X.shareButton||c&&!nnS(X.shareButton)||s$1(X.BE,X.shareButton);!X.copyLinkButton||c&&!ATw(X.copyLinkButton)||s$1(X.BE,X.copyLinkButton)}else{if(X.BE){c=X.BE;for(var V=g.r(c.actionButtons),G=V.next();!G.done;G=V.next())G.value.detach();c.actionButtons=[]}X.searchButton&&!g.h5(X.kz.element,X.searchButton.element)&&X.searchButton.uc(X.kz.element); +X.s0&&!g.h5(X.kz.element,X.s0.element)&&X.s0.uc(X.kz.element);X.shareButton&&!g.h5(X.kz.element,X.shareButton.element)&&X.shareButton.uc(X.kz.element);X.copyLinkButton&&!g.h5(X.kz.element,X.copyLinkButton.element)&&X.copyLinkButton.uc(X.kz.element)}}; +bID=function(X,c,V){c=V?c.lastElementChild:c.firstElementChild;for(var G=null;c;){if(F5(c,"display")!=="none"&&c.getAttribute("aria-hidden")!=="true"){var n=void 0;c.tabIndex>=0?n=c:n=bID(X,c,V);n&&(G?V?n.tabIndex>G.tabIndex&&(G=n):n.tabIndexG/1E3+1)return{msg:"in-the-past"};if(L.isLivePlayback&&!isFinite(G))return{msg:"live-infinite"};(G=c.vg())&&G.isView()&&(G=G.mediaElement);if(G&&G.HN().length>12&&g.Qu(n))return{msg:"played-ranges"};if(!n.U)return null;if(!d)return{msg:"no-pvd-formats"};if(!n.U.J||!d.J)return{msg:"non-dash"};G=d.videoInfos[0];var h=n.U.videoInfos[0];X.D&&nQ(L)&&(G=c.Hs(),h= +V.Hs());if(!G||!h)return{msg:"no-video-info"};if(X.U&&(q_(G)||q_(h)))return{msg:"av1"};c=X.J&&L.rW()&&ZG();if(h.containerType!==G.containerType)if(c)L.Oy("sgap",{ierr:"container"});else return{msg:"container"};if(X.G&&!c&&(h.VK!==G.VK||h.VK===""||G.VK===""))return{msg:"codec"};if(X.X&&h.video&&G.video&&Math.abs(h.video.width/h.video.height-G.video.width/G.video.height)>.01)return{msg:"ratio"};if(g.Qu(L)&&g.Qu(n))return{msg:"content-protection"};d=d.J[0];n=n.U.J[0];V=d.audio;var A=n.audio;if(V.sampleRate!== +A.sampleRate&&!g.fp)if(c)L.Oy("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:d.itag,cr:V.sampleRate,ni:n.itag,nr:A.sampleRate};return(V.numChannels||2)!==(A.numChannels||2)?{msg:"channel-count"}:X.Z&&L.rW()&&G.video.fps!==h.video.fps?{msg:"fps"}:null}; +Mll=function(X,c,V){var G=X.getVideoData(),n=c.getVideoData();if(!G.j().supportsGaplessShorts())return{nq:"env"};if(V.B){if(G.Tx&&!G.isAd()||n.Tx&&!n.isAd())return{nq:"autoplay"}}else if(G.Tx||n.Tx)return{nq:"autoplay"};if(!G.T)return{nq:"client"};if(!X.uF())return{nq:"no-empty"};X=lk1(V,X,c,Infinity);return X!=null?{nq:X.msg}:null}; +RZ=function(X){g.I.call(this);this.app=X;this.Z=this.X=this.G=this.J=null;this.U=1;this.events=new g.U3(this);this.events.L(this.app.DR,g.HQ("gaplessshortslooprange"),this.T);g.N(this,this.events)}; +ghw=function(){this.X=this.B=this.U=this.D=this.Z=this.G=this.J=!1}; +fkD=function(X){var c=new ghw;c.J=X.S("h5_gapless_support_types_diff");c.Z=X.S("h5_gapless_error_on_fps_diff");c.D=X.S("html5_gapless_use_format_info_fix");c.U=X.S("html5_gapless_disable_on_av1")&&!X.S("html5_gapless_enable_on_av1");c.G=X.S("html5_gapless_check_codec_diff_strictly");c.B=X.S("html5_gapless_on_ad_autoplay");c.X=X.S("html5_gapless_disable_diff_aspect_radio");return c}; +g.bR=function(X,c,V,G){G=G===void 0?!1:G;V_.call(this);this.mediaElement=X;this.start=c;this.end=V;this.J=G}; +pml=function(X,c,V,G,n,L){L=L===void 0?0:L;g.I.call(this);var d=this;this.policy=X;this.J=c;this.G=V;this.Ed=n;this.Z=L;this.X=this.U=null;this.currentVideoDuration=this.B=-1;this.D=!1;this.Qd=new cS;this.IC=G-c.h1()*1E3;this.Qd.then(void 0,function(){}); +this.timeout=new g.qR(function(){d.XP("timeout")},1E4); +g.N(this,this.timeout);this.T=isFinite(G);this.status={status:0,error:null}}; +USl=function(X){var c,V,G,n,L,d,h,A,Y,H;return g.O(function(a){if(a.J==1){if(X.vl())return a.return(Promise.reject(Error(X.status.error||"disposed")));X.timeout.start();c=g.tG.Op();return g.b(a,X.Qd,2)}g.tG.t4("gtfta",c);V=X.J.vg();if(V.isEnded())return X.XP("ended_in_finishTransition"),a.return(Promise.reject(Error(X.status.error||"")));if(!X.X||!kK(X.X))return X.XP("next_mse_closed"),a.return(Promise.reject(Error(X.status.error||"")));if(X.G.iV()!==X.X)return X.XP("next_mse_mismatch"),a.return(Promise.reject(Error(X.status.error|| +"")));G=Ik1(X);n=G.Yb;L=G.Ht;d=G.rP;X.J.cE(!1,!0);h=N98(V,n,d,!X.G.getVideoData().isAd());X.G.setMediaElement(h);(A=X.J.Nd())&&X.G.DP(A.HX,A.vX);X.T&&(X.G.seekTo(X.G.getCurrentTime()+.001,{rF:!0,nZ:3,Z3:"gapless_pseudo"}),h.play(),p1());Y=V.J1();Y.cpn=X.J.getVideoData().clientPlaybackNonce;Y.st=""+n;Y.et=""+d;X.G.Oy("gapless",Y);X.J.Oy("gaplessTo",{cpn:X.G.getVideoData().clientPlaybackNonce});H=X.J.getPlayerType()===X.G.getPlayerType();X.J.UK(L,!0,!1,H,X.G.getVideoData().clientPlaybackNonce);X.G.UK(X.G.getCurrentTime(), +!0,!0,H,X.J.getVideoData().clientPlaybackNonce);X.G.MA();g.a3(function(){!X.G.getVideoData().kO&&X.G.getPlayerState().isOrWillBePlaying()&&X.G.u9()}); +Op(X,6);X.dispose();return a.return(Promise.resolve())})}; +z51=function(X){if(X.G.getVideoData().U){var c=X.Ed.j().S("html5_gapless_suspend_next_loader")&&X.Z===1;X.G.Er(X.X,c,T9D(X));Op(X,3);uw2(X);var V=PgO(X);c=V.kp;V=V.Mx;c.subscribe("updateend",X.dU,X);V.subscribe("updateend",X.dU,X);X.dU(c);X.dU(V)}}; +uw2=function(X){X.J.unsubscribe("internalvideodatachange",X.rV,X);X.G.unsubscribe("internalvideodatachange",X.rV,X);X.Ed.j().S("html5_gapless_use_format_info_fix")&&(X.J.unsubscribe("internalvideoformatchange",X.rV,X),X.G.unsubscribe("internalvideoformatchange",X.rV,X));X.J.unsubscribe("mediasourceattached",X.rV,X);X.G.unsubscribe("statechange",X.nC,X)}; +N98=function(X,c,V,G){X=X.isView()?X.mediaElement:X;return new g.bR(X,c,V,G)}; +Op=function(X,c){c<=X.status.status||(X.status={status:c,error:null},c===5&&X.Qd.resolve())}; +T9D=function(X){return X.Ed.j().S("html5_gapless_no_clear_buffer_timeline")&&X.Z===1&&yu(X.J.getVideoData())}; +Ik1=function(X){var c=X.J.vg();c=c.isView()?c.start:0;var V=X.J.getVideoData().isLivePlayback?Infinity:X.J.Sc(!0);V=Math.min(X.IC/1E3,V)+c;var G=X.T?100:0;X=V-X.G.ws()+G;return{EV:c,Yb:X,Ht:V,rP:Infinity}}; +PgO=function(X){return{kp:X.U.J.UH,Mx:X.U.G.UH}}; +lR=function(X){g.I.call(this);var c=this;this.app=X;this.Z=this.G=this.J=null;this.T=!1;this.U=this.X=null;this.D=fkD(this.app.j());this.B=function(){g.a3(function(){B9t(c)})}}; +KPD=function(X,c,V,G,n){G=G===void 0?0:G;n=n===void 0?0:n;X.uF()||Mn(X);X.X=new cS;X.J=c;var L=V,d=n===0;d=d===void 0?!0:d;var h=X.app.Ey(),A=h.getVideoData().isLivePlayback?Infinity:h.Sc(!0)*1E3;L>A&&(L=A-200,X.T=!0);d&&h.getCurrentTime()>=L/1E3?X.B():(X.G=h,d&&(d=L,L=X.G,X.app.DR.addEventListener(g.jw("vqueued"),X.B),d=isFinite(d)||d/1E3>L.getDuration()?d:0x8000000000000,X.Z=new g.AC(d,0x8000000000000,{namespace:"vqueued"}),L.addCueRange(X.Z)));d=G/=1E3;L=c.getVideoData().J;G&&L&&X.G&&(h=G,A=0, +c.getVideoData().isLivePlayback&&(d=Math.min(V/1E3,X.G.Sc(!0)),A=Math.max(0,d-X.G.getCurrentTime()),h=Math.min(G,c.Sc()+A)),d=hot(L,h)||G,d!==G&&X.J.Oy("qvaln",{st:G,at:d,rm:A,ct:h}));c=d;G=X.J;G.getVideoData().z2=!0;G.getVideoData().T=!0;G.mX(!0);L={};X.G&&(L=X.G.Zk(),d=X.G.getVideoData().clientPlaybackNonce,L={crt:(L*1E3).toFixed(),cpn:d});G.Oy("queued",L);c!==0&&G.seekTo(c+.01,{rF:!0,nZ:3,Z3:"videoqueuer_queued"});X.U=new pml(X.D,X.app.Ey(),X.J,V,X.app,n);V=X.U;V.status.status!==Infinity&&(Op(V, +1),V.J.subscribe("internalvideodatachange",V.rV,V),V.G.subscribe("internalvideodatachange",V.rV,V),V.Ed.j().S("html5_gapless_use_format_info_fix")&&(V.J.subscribe("internalvideoformatchange",V.rV,V),V.G.subscribe("internalvideoformatchange",V.rV,V)),V.J.subscribe("mediasourceattached",V.rV,V),V.G.subscribe("statechange",V.nC,V),V.J.subscribe("newelementrequired",V.KB,V),V.rV());return X.X}; +B9t=function(X){var c,V,G,n,L,d,h,A,Y;g.O(function(H){switch(H.J){case 1:if(X.vl()||!X.X||!X.J)return H.return();X.T&&X.app.Ey().ZP(!0,!1);V=X.app.j().S("html5_force_csdai_gapful_transition")&&((c=X.app.Ey())==null?void 0:c.getVideoData().isDaiEnabled());G=null;if(!X.U||V){H.Wl(2);break}g.x1(H,3);return g.b(H,USl(X.U),5);case 5:g.k1(H,2);break;case 3:G=n=g.o8(H);case 2:if(!X.J)return H.return();g.tG.WF("vqsp",function(){X.app.I1(X.J)}); +if(!X.J)return H.return();L=X.J.vg();X.app.j().S("html5_gapless_seek_on_negative_time")&&L&&L.getCurrentTime()<-.01&&X.J.seekTo(0);g.tG.WF("vqpv",function(){X.app.playVideo()}); +if(G||V)X.J?(d=G?G.message:"forced",(h=X.G)==null||h.Oy("gapfulfbk",{r:d}),X.J.kT(d)):(A=X.G)==null||A.Oy("gapsp",{});Y=X.X;Mn(X);Y&&Y.resolve();return H.return(Promise.resolve())}})}; +Mn=function(X,c){c=c===void 0?!1:c;if(X.G){if(X.Z){var V=X.G;X.app.DR.removeEventListener(g.jw("vqueued"),X.B);V.removeCueRange(X.Z)}X.G=null;X.Z=null}X.U&&(X.U.status.status!==6&&(V=X.U,V.status.status!==Infinity&&V.Z!==1&&V.XP("Canceled")),X.U=null);X.X=null;X.J&&!c&&X.J!==X.app.GF()&&X.J!==X.app.Ey()&&X.J.Et();X.J&&c&&X.J.PF();X.J=null;X.T=!1}; +seS=function(X){var c;return((c=X.U)==null?void 0:c.currentVideoDuration)||-1}; +Cgj=function(X,c,V){if(X.uF())return"qie";if(X.J==null||X.J.vC()||X.J.getVideoData()==null)return"qpd";if(c.videoId!==X.J.tO())return"vinm";if(seS(X)<=0)return"ivd";if(V!==1)return"upt";if((V=X.U)==null)X=void 0;else if(V.getStatus().status!==5)X="niss";else if(lk1(V.policy,V.J,V.G,V.IC)!=null)X="pge";else{c=PgO(V);X=c.kp;var G=c.Mx;c=g.EZ(V.Ed.j().experiments,"html5_shorts_gapless_next_buffer_in_seconds");V=V.B+c;G=aQ(G.KE(),V);X=aQ(X.KE(),V);X=!(c>0)||G&&X?null:"neb"}return X!=null?X:null}; +DSL=function(){g.$T.call(this);var X=this;this.fullscreen=0;this.X=this.U=this.pictureInPicture=this.J=this.G=this.inline=!1;this.Z=function(){X.U5()}; +CBU(this.Z);this.B=this.getVisibilityState(this.Gy(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.eU(),this.F3(),this.HC(),this.eZ())}; +YR=function(X){return!(X.isMinimized()||X.isInline()||X.isBackground()||X.eU()||X.F3()||X.HC()||X.eZ())}; +g.gF=function(X){this.qW=X;this.videoData=this.playerState=null}; +g.fa=function(X,c){g.I.call(this);this.qW=X;this.U={};this.ew=this.X=this.Z=null;this.J=new g.gF(X);this.G=c}; +cn1=function(X){var c=X.experiments,V=c.lc.bind(c);SK8=V("html5_use_async_stopVideo");iIj=V("html5_pause_for_async_stopVideo");qKD=V("html5_not_reset_media_source");V("html5_listen_for_audio_output_changed")&&(NRS=!0);DG=V("html5_not_reset_media_source");X_U=V("html5_not_reset_media_source");rq=V("html5_retain_source_buffer_appends_for_debugging");UbU=V("web_watch_pip");V("html5_mediastream_applies_timestamp_offset")&&(xO=!0);var G=g.EZ(c,"html5_cobalt_override_quic");G&&wK("QUIC",+(G>0));(G=g.EZ(c, +"html5_cobalt_audio_write_ahead_ms"))&&wK("Media.AudioWriteDurationLocal",G);(G=V("html5_cobalt_enable_decode_to_texture"))&&wK("Media.PlayerConfiguration.DecodeToTexturePreferred",G?1:0);(X.YU()||V("html5_log_cpu_info"))&&BlS();Error.stackTraceLimit=50;var n=g.EZ(c,"html5_idle_rate_limit_ms");n&&Object.defineProperty(window,"requestIdleCallback",{value:function(L){return window.setTimeout(L,n)}}); +pSU(X.Z);JK=V("html5_use_ump_request_slicer");Jhs=V("html5_record_now");V("html5_disable_streaming_xhr")&&(qY=!1);V("html5_byterate_constraints")&&(yQ=!0);V("html5_use_non_active_broadcast_for_post_live")&&(C8=!0);V("html5_sunset_aac_high_codec_family")&&(s3["141"]="a");V("html5_enable_encrypted_av1")&&(io=!0)}; +VJL=function(X){return X.slice(12).replace(/_[a-z]/g,function(c){return c.toUpperCase().replace("_","")}).replace("Dot",".")}; +Gc8=function(X){var c={},V;for(V in X.experiments.flags)if(V.startsWith("cobalt_h5vcc")){var G=VJL(V),n=g.EZ(X.experiments,V);G&&n&&(c[G]=wK(G,n))}return c}; +pa=function(X,c,V,G,n){n=n===void 0?[]:n;g.I.call(this);this.qW=X;this.py=c;this.X=V;this.segments=n;this.J=void 0;this.G=new Map;n.length&&(this.J=n[0])}; +nVs=function(X){if(!(X.segments.length<2)){var c=X.segments.shift();if(c){var V=c.J,G=[];if(V.size){V=g.r(V.values());for(var n=V.next();!n.done;n=V.next()){n=g.r(n.value);for(var L=n.next();!L.done;L=n.next()){L=L.value;for(var d=g.r(L.segments),h=d.next();!h.done;h=d.next())(h=IZ(h.value))&&G.push(h);L.removeAll()}}}(V=IZ(c))&&G.push(V);G=g.r(G);for(V=G.next();!V.done;V=G.next())X.G.delete(V.value);c.dispose()}}}; +Nn=function(X,c,V,G){if(!X.J||c>V)return!1;c=new pa(X.qW,c,V,X.J,G);G=g.r(G);for(V=G.next();!V.done;V=G.next()){V=V.value;var n=IZ(V);n&&n!==IZ(X.J)&&X.G.set(n,[V])}X=X.J;X.J.has(c.cW())?X.J.get(c.cW()).push(c):X.J.set(c.cW(),[c]);return!0}; +CX=function(X,c){return X.G.get(c)}; +LuS=function(X,c,V){X.G.set(c,V)}; +Up=function(X,c,V,G,n,L){return new dW2(V,V+(G||0),!G,c,X,n,L)}; +dW2=function(X,c,V,G,n,L,d){g.I.call(this);this.py=X;this.U=c;this.G=V;this.type=G;this.X=n;this.videoData=L;this.yu=d;this.J=new Map;ov(L)}; +IZ=function(X){return X.videoData.clientPlaybackNonce}; +yns=function(X){if(X.J.size)for(var c=g.r(X.J.values()),V=c.next();!V.done;V=c.next()){V=g.r(V.value);for(var G=V.next();!G.done;G=V.next())G.value.dispose()}X.J.clear()}; +h82=function(X){this.end=this.start=X}; +g.Tg=function(){this.J=new Map;this.U=new Map;this.G=new Map}; +g.uR=function(X,c,V,G){g.I.call(this);var n=this;this.api=X;this.qW=c;this.playback=V;this.app=G;this.Hl=new g.Tg;this.G=new Map;this.B=[];this.Z=[];this.U=new Map;this.oZ=new Map;this.D=new Map;this.fS=null;this.Ly=NaN;this.HP=this.EM=null;this.NE=new g.qR(function(){Anl(n,n.Ly,n.EM||void 0)}); +this.events=new g.U3(this);this.hX=15E3;this.Pl=new g.qR(function(){n.wy=!0;n.playback.tL(n.hX);Ys2(n);if(n.playback.getVideoData().JT()){var L;n.OM({togab:(L=n.A7)==null?void 0:L.identifier})}n.v_(!1)},this.hX); +this.wy=!1;this.T=new Map;this.qE=[];this.A7=null;this.Pg=new Set;this.QK=[];this.Od=[];this.gm=[];this.pM=[];this.J=void 0;this.NW=0;this.LS=!0;this.C=!1;this.YO=[];this.yK=new Set;this.z2=new Set;this.tT=new Set;this.wW=0;this.T_=new Set;this.Bd=0;this.Z6=this.G2=!1;this.IZ=this.X="";this.kO=null;this.logger=new g.d3("dai");this.F8={xSv:function(){return n.G}, +pF7:function(){return n.B}, +v8l:function(){return n.U}, +RO:function(L){n.onCueRangeEnter(n.G.get(L))}, +a8O:function(L){n.onCueRangeExit(n.G.get(L))}, +ezy:function(L,d){n.G.set(L,d)}, +p3R:function(L){n.IZ=L}, +j7:function(){return n.j7()}, +Hw_:function(L){return n.D.get(L)}, +wfO:function(){return n.kO}}; +this.playback.getPlayerType();this.playback.Jp(this);this.o2=this.qW.YU();g.N(this,this.NE);g.N(this,this.events);g.N(this,this.Pl);this.events.L(this.api,g.jw("serverstitchedcuerange"),this.onCueRangeEnter);this.events.L(this.api,g.HQ("serverstitchedcuerange"),this.onCueRangeExit)}; +$WS=function(X,c,V,G,n,L,d,h){var A=jfD(X,L,L+n);X.wy&&X.OM({adaftto:1});V||X.OM({missadcon:1,enter:L,len:n,aid:h});X.G_&&!X.G_.NF&&(X.G_.NF=h);X.Z6&&X.OM({adfbk:1,enter:L,len:n,aid:h});var Y=X.playback;d=d===void 0?L+n:d;L===d&&!n&&X.qW.S("html5_allow_zero_duration_ads_on_timeline")&&X.OM({attl0d:1});L>d&&Pj(X,{reason:"enterTime_greater_than_return",py:L,F6:d});var H=Y.Qg()*1E3;LY&&Pj(X,{reason:"parent_return_greater_than_content_duration",F6:d,aDv:Y});Y=null;H=g.hE(X.Z,{F6:L},function(a,W){return a.F6-W.F6}); +H>=0&&(Y=X.Z[H],Y.F6>L&&H6j(X,c.video_id||"",L,d,Y));if(A&&Y)for(H=0;H.5&&X.OM({ttdtb:1,delta:d,cpn:n.cpn,enter:c.adCpn,exit:V.adCpn,seek:G,skip:L});X.api.S("html5_ssdai_enable_media_end_cue_range")&&X.api.SB();if(c.isAd&&V.isAd){n=!!L;if(c.adCpn&&V.adCpn){var h=X.U.get(c.adCpn);var A=X.U.get(V.adCpn)}n?X.OM({igtransskip:1,enter:c.adCpn,exit:V.adCpn,seek:G,skip:L}):sp(X,A,h,V.Eq,c.Eq,G,n)}else if(!c.isAd&&V.isAd){X.IZ=n.cpn;X.api.publish("serverstitchedvideochange");h=Bj(X,"a2c");X.OM(h); +X.wW=0;if(h=V.pE)X.NW=h.end;var Y;V.adCpn&&(Y=X.U.get(V.adCpn));Y&&X.playback.vu(Y,n,V.Eq,c.Eq,G,!!L)}else if(c.isAd&&!V.isAd){var H;c.adCpn&&(H=X.U.get(c.adCpn));H&&(X.NW=0,X.IZ=H.cpn,Ka(X,H),Y=Bj(X,"c2a",H),X.OM(Y),X.wW=1,X.playback.vu(n,H,V.Eq,c.Eq,G,!!L))}}; +DM=function(X,c,V){V=V===void 0?0:V;var G=g.hE(X.Z,{py:(c+V)*1E3},function(h,A){return h.py-A.py}); +G=G<0?(G+2)*-1:G;if(G>=0)for(var n=c*1E3,L=G;L<=G+1&&L=d.py-V*1E3&&n<=d.F6+V*1E3)return{tv:d,qa:c}}return{tv:void 0,qa:c}}; +w_2=function(X,c){var V="";(c=Wuw(X,c))&&(V=c.getId());return V?X.U.get(V):void 0}; +Wuw=function(X,c){if(X.IZ){var V=X.G.get(X.IZ);if(V&&V.start-200<=c&&V.end+200>=c)return V}X=g.r(X.G.values());for(V=X.next();!V.done;V=X.next())if(V=V.value,V.start<=c&&V.end>=c)return V}; +Anl=function(X,c,V){var G=X.HP||X.app.Ey().getPlayerState();SY(X,!0);X.playback.seekTo(c,V);X=X.app.Ey();c=X.getPlayerState();G.isOrWillBePlaying()&&!c.isOrWillBePlaying()?X.playVideo():G.isPaused()&&!c.isPaused()&&X.pauseVideo()}; +SY=function(X,c){X.Ly=NaN;X.EM=null;X.NE.stop();X.fS&&c&&X.fS.Qp();X.HP=null;X.fS=null}; +Fu2=function(X){var c=c===void 0?-1:c;var V=V===void 0?Infinity:V;for(var G=[],n=g.r(X.Z),L=n.next();!L.done;L=n.next())L=L.value,(L.pyV)&&G.push(L);X.Z=G;G=g.r(X.G.values());for(n=G.next();!n.done;n=G.next())n=n.value,n.start>=c&&n.end<=V&&(X.playback.removeCueRange(n),X.G.delete(n.getId()),X.OM({rmAdCR:1}));G=DM(X,c/1E3);c=G.tv;G=G.qa;if(c&&(G=G*1E3-c.py,n=c.py+G,c.durationMs=G,c.F6=n,G=X.G.get(c.cpn))){n=g.r(X.B);for(L=n.next();!L.done;L=n.next())L=L.value,L.start===G.end?L.start=c.py+ +c.durationMs:L.end===G.start&&(L.end=c.py);G.start=c.py;G.end=c.py+c.durationMs}if(c=DM(X,V/1E3).tv){var d;G="playback_timelinePlaybackId_"+c.Gm+"_video_id_"+((d=c.videoData)==null?void 0:d.videoId)+"_durationMs_"+c.durationMs+"_enterTimeMs_"+c.py+"_parentReturnTimeMs_"+c.F6;X.qY("Invalid_clearEndTimeMs_"+V+"_that_falls_during_"+G+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; +EVt=function(X){X.Hl.clearAll();X.G.clear();X.B=[];X.Z=[];X.U.clear();X.oZ.clear();X.D.clear();X.T.clear();X.qE=[];X.A7=null;X.Pg.clear();X.QK=[];X.Od=[];X.gm=[];X.pM=[];X.YO=[];X.yK.clear();X.z2.clear();X.tT.clear();X.T_.clear();X.wy=!1;X.J=void 0;X.NW=0;X.LS=!0;X.C=!1;X.wW=0;X.Bd=0;X.G2=!1;X.Z6=!1;X.X="";X.Pl.isActive()&&zg(X)}; +QfS=function(X,c,V,G,n,L){if(!X.Z6)if(g.rnD(X,V))X.OM({gdu:"undec",seg:V,itag:n});else if(c=iR(X,c,V,G,L),!(X.playback.getVideoData().JT()&&(c==null?0:c.uo)))return c}; +iR=function(X,c,V,G,n){var L=X.T.get(V);if(!L){if(L=Z6l(X,c))return L;c=X.dB(V-1,G!=null?G:2);if(n)return X.OM({misscue:n,sq:V,type:G,prevsstate:c==null?void 0:c.jz,prevrecord:X.T.has(V-1)}),X.T.get(V-1);if((c==null?void 0:c.jz)===2)return X.OM({adnf:1,sq:V,type:G,prevrecord:X.T.has(V-1)}),X.T.get(V-1)}return L}; +Z6l=function(X,c){c+=X.Bc();if(X.playback.getVideoData().JT())a:{var V=1;V=V===void 0?0:V;var G=c*1E3;X=g.r(X.Z);for(var n=X.next();!n.done;n=X.next()){n=n.value;var L=n.ZF?n.ZF*1E3:n.py;if(G>=n.py-V*1E3&&G<=L+n.durationMs+V*1E3){G={tv:n,qa:c};break a}}G={tv:void 0,qa:c}}else G=DM(X,c),((V=G)==null?0:V.tv)||(G=DM(X,c,1));var d;return(d=G)==null?void 0:d.tv}; +xWL=function(X,c){c=c===void 0?"":c;var V=hq(c)||void 0;if(!c||!V){var G;X.OM({adcfg:(G=c)==null?void 0:G.length,dcfg:V==null?void 0:V.length})}return V}; +vV1=function(X){if(X.YO.length)for(var c=g.r(X.YO),V=c.next();!V.done;V=c.next())X.onCueRangeExit(V.value);c=g.r(X.G.values());for(V=c.next();!V.done;V=c.next())X.playback.removeCueRange(V.value);c=g.r(X.B);for(V=c.next();!V.done;V=c.next())X.playback.removeCueRange(V.value);X.G.clear();X.B=[];X.Hl.clearAll();X.J||(X.LS=!0)}; +sp=function(X,c,V,G,n,L,d){if(c&&V){X.IZ=V.cpn;Ka(X,V);var h=Bj(X,"a2a",V);X.OM(h);X.wW++;X.playback.vu(c,V,G||0,n||0,!!L,!!d)}else X.OM({misspbkonadtrans:1,enter:(V==null?void 0:V.cpn)||"",exit:(c==null?void 0:c.cpn)||"",seek:L,skip:d})}; +oV1=function(X,c,V,G){if(G)for(G=0;GV){var L=n.end;n.end=c;kcl(X,V,L)}else if(n.start>=c&&n.startV)n.start=V;else if(n.end>c&&n.end<=V&&n.start=c&&n.end<=V){X.playback.removeCueRange(n);if(X.YO.includes(n))X.onCueRangeExit(n);X.B.splice(G,1);continue}G++}else kcl(X,c,V)}; +kcl=function(X,c,V){c=X.HU(c,V);V=!0;g.HY(X.B,c,function(d,h){return d.start-h.start}); +for(var G=0;G0){var n=X.B[G],L=X.B[G-1];if(Math.round(L.end/1E3)>=Math.round(n.start/1E3)){L.end=n.end;n!==c?X.playback.removeCueRange(n):V=!1;X.B.splice(G,1);continue}}G++}if(V)for(X.playback.addCueRange(c),c=X.playback.UZ("serverstitchedcuerange",36E5),c=g.r(c),V=c.next();!V.done;V=c.next())X.G.delete(V.value.getId())}; +qn=function(X,c,V){if(V===void 0||!V){V=g.r(X.qE);for(var G=V.next();!G.done;G=V.next()){G=G.value;if(c>=G.start&&c<=G.end)return;if(c===G.end+1){G.end+=1;return}}X.qE.push(new h82(c))}}; +g.rnD=function(X,c){X=g.r(X.qE);for(var V=X.next();!V.done;V=X.next())if(V=V.value,c>=V.start&&c<=V.end)return!0;return!1}; +XD=function(X,c,V){var G;if(G=X.playback.getVideoData().JT()||X.qW.S("html5_ssdai_extent_last_unfinished_ad_cue_range"))G=(G=X.U.get(c))&&G.PS?(X=X.D.get(G==null?void 0:G.PS))&&X.slice(-1)[0].cpn===c:!1;return G&&V===2?1E3:0}; +H6j=function(X,c,V,G,n){var L;c={reason:"overlapping_playbacks",Rzy:c,py:V,F6:G,F3_:n.Gm,I8K:((L=n.videoData)==null?void 0:L.videoId)||"",USh:n.durationMs,XFS:n.py,kSK:n.F6};Pj(X,c)}; +Pj=function(X,c,V){X.playback.Qt(c,V)}; +e8D=function(X,c){var V=[];X=X.D.get(c);if(!X)return[];X=g.r(X);for(c=X.next();!c.done;c=X.next())c=c.value,c.cpn&&V.push(c.cpn);return V}; +JnU=function(X,c,V){var G=0;X=X.D.get(V);if(!X)return-1;X=g.r(X);for(V=X.next();!V.done;V=X.next()){if(V.value.cpn===c)return G;G++}return-1}; +mWl=function(X,c){var V=0;X=X.D.get(c);if(!X)return 0;X=g.r(X);for(c=X.next();!c.done;c=X.next())c=c.value,c.durationMs!==0&&c.F6!==c.py&&V++;return V}; +R88=function(X,c,V){var G=!1;if(V&&(V=X.D.get(V))){V=g.r(V);for(var n=V.next();!n.done;n=V.next())n=n.value,n.durationMs!==0&&n.F6!==n.py&&(n=n.cpn,c===n&&(G=!0),G&&!X.z2.has(n)&&(X.OM({decoratedAd:n}),X.z2.add(n)))}}; +Ys2=function(X){X.o2&&X.OM({adf:"0_"+((new Date).getTime()/1E3-X.Bd)+"_isTimeout_"+X.wy})}; +jfD=function(X,c,V){if(X.QK.length)for(var G=g.r(X.QK),n=G.next(),L={};!n.done;L={uJ:void 0},n=G.next()){L.uJ=n.value;n=L.uJ.startSecs*1E3;var d=L.uJ.VL*1E3+n;if(c>n&&cn&&V0&&G>c*1E3+X.K6h)&&(G=NXl(X,V))){c=!1;V=void 0;G=g.r(G.segments);for(n=G.next();!n.done;n=G.next()){n=n.value;if(c){V=n;break}IZ(n)===X.IZ&&(c=!0)}G=void 0;if(V)G=IZ(V);else if(c){var L;G=(L=X.timeline.J)==null?void 0:IZ(L)}if(G)X.finishSegmentByCpn(X.IZ,G,2,void 0);else{var d;X.api.Oy("ssap",{mfnc:1,mfncc:(d=X.timeline.J)== +null?void 0:IZ(d)})}}}}; +fos=function(X){return X.api.S("html5_force_ssap_gapful_switch")||X.api.S("html5_ssap_enable_legacy_browser_logic")&&!ZG()}; +P2j=function(X,c,V,G){X.aR.set(c,G);TX2(X,c,V);uZt(X,V)}; +Mm=function(X,c){X=CX(X.timeline,c);return(X==null?0:X.length)?X[0].cW():0}; +gZ=function(X,c){var V=V===void 0?!1:V;var G=X.timeline.J;if(!G)return{clipId:"",yq:0};var n=z81(X,c,V);if(n)return{clipId:IZ(n)||"",yq:n.cW()};X.api.Oy("mci",{cs:IZ(G),mt:c,tl:nX(X),invt:!!V});return{clipId:"",yq:0}}; +Bo=function(X){var c=X.timeline.J;if(!c)return 0;X=0;if(c.J.size===0)return(c.Lm()-c.cW())/1E3;c=c.J.values();c=g.r(c);for(var V=c.next();!V.done;V=c.next()){V=g.r(V.value);for(var G=V.next();!G.done;G=V.next())G=G.value,X+=(G.Lm()-G.cW())/1E3}return X}; +Kul=function(X,c){return(X=BXj(X,c*1E3))?X.cW():0}; +sf1=function(X,c){var V=CX(X.timeline,c);c=0;if(V==null?0:V.length)for(X=g.r(V),V=X.next();!V.done;V=X.next())V=V.value,c+=(V.Lm()-V.cW())/1E3;else return Bo(X);return c}; +BXj=function(X,c){if(X=CX(X.timeline,X.IZ)){X=g.r(X);for(var V=X.next();!V.done;V=X.next())if(V=V.value,V.cW()<=c&&V.Lm()>=c)return V}}; +C2S=function(X){var c=X.playback.getVideoData();X.IZ&&(X=X.bW.get(X.IZ))&&(c=X);return c}; +NXl=function(X,c,V){V=V===void 0?!1:V;var G=X.timeline.J;if(G){G=G.J;var n=Array.from(G.keys());g.Y5(n);c=g.hE(n,c);c=G.get(n[c<0?(c+2)*-1:c]);if(!V&&c){V=g.r(c);for(c=V.next();!c.done;c=V.next())if(c=c.value,c.cW()!==c.Lm())return c;return X.timeline}return c&&c.length>0?c[c.length-1]:void 0}}; +z81=function(X,c,V){V=V===void 0?!1:V;var G=NXl(X,c,V);if(G){if(X=G.segments,X.length){for(var n=g.r(X),L=n.next();!L.done;L=n.next())if(L=L.value,L.cW()<=c&&L.Lm()>c)return L;if(V&&G.cW()===G.Lm())return X[0]}}else X.api.Oy("ssap",{ctnf:1})}; +MJL=function(X,c){var V;if(X.kQ)for(V=X.jH.shift();V&&V!==X.kQ;)V=X.jH.shift();else V=X.jH.shift();if(V){if(X.dM.has(V))DWt(X,V);else if(c===3||c===4)X.mU.stop(),X.api.playVideo(1,X.api.S("html5_ssap_keep_media_on_finish_segment"));X.aR.set(X.IZ,c);X.api.Oy("ssap",{onvftn:1});uZt(X,V);return!1}X.api.Oy("ssap",{onvftv:1});X.mU.stop();return!0}; +DWt=function(X,c){c=CX(X.timeline,c);if(c==null?0:c.length)X.api.pauseVideo(),X.mU.start(c[0].yu)}; +uZt=function(X,c){var V=X.playback.getVideoData(),G=V.clientPlaybackNonce;X.jj&&(X.events.Hd(X.jj),X.jj=null,X.playback.iE());var n=X.IZ,L=!1;if(n==="")n=G,L=!0;else if(n===void 0){var d=X.playback.Jz();d&&X.timeline.G.has(d)&&(n=d);X.api.Oy("ssap",{mcc:n+";"+c});X.playback.Mi(new tm("ssap.timelineerror",{e:"missing_current_cpn",pcpn:n,ccpn:c}))}if(n===c)L&&V&&Ssw(X,V,L);else{d=X.aR.get(n);if(!L&&(!d||d!==3&&d!==5&&d!==6&&d!==7)){var h=X.api.SB(X.IZ);X.api.Oy("ssap",{nmec:h,cpc:X.IZ,ec:c})}d&&d!== +2||X.xV();X.IZ=c;X.xV();c=CX(X.timeline,X.IZ);if(c==null?0:c.length){c=c[0];h=c.getType();n!==G&&(X.n$=n,V=X.bW.get(n));d?X.aR.delete(n):d=L?1:2;X.api.S("html5_ssap_pacf_qoe_ctmp")&&h===2&&!c.G&&(X.jj=X.events.L(X.api,"onVideoProgress",X.bJK));X.api.Oy("ssapt",{ostro:d,pcpn:n,ccpn:X.IZ});a:{var A=X.IZ;if(!X.Nl.has(A))for(var Y=g.r(X.Nl),H=Y.next();!H.done;H=Y.next()){var a=g.r(H.value);H=a.next().value;a=a.next().value;if(a.getId().includes(A)){A=H;break a}}}Y=X.api.j().S("html5_ssap_insert_su_before_nonvideo")&& +A!==X.IZ;X.playback.n6(A,Y);A=Math.max(0,cn(X,n));Y=X.playback.getCurrentTime();Y=Math.max(0,Y-Mm(X,X.IZ)/1E3);H=c.getVideoData();a=d===3||d===5||d===6||d===7;if(X.api.S("html5_ssap_skip_illegal_seeking")){var W=X.playback.getPlayerState();W=!g.B(W,8)&&g.B(W,16);a=a||W;W&&X.api.Oy("ssap",{iis:1})}X.playback.u$(n,X.IZ,A,Y,!1,a,X.playback.getPlayerState(),!0);X.api.Oy("ssapt",{ostri:d,pcpn:n,ccpn:X.IZ});var w;X.playback.Xk(n,X.IZ,G,H,(w=X.cH.get(n))!=null?w:(0,g.ta)(),V);X.cH.delete(n);L?V=void 0:V|| +X.api.Oy("ssap",{pvdm:n+";"+X.IZ,pvdmc:X.IZ===G?"1":"0"});X.api.Oy("ssap",{tpac:n+";"+X.IZ,tpcc:G,tpv:(H==null?0:H.d$())?"1":"0"},!1,1);X.api.j().S("html5_ssap_cleanup_player_switch_ad_player")&&X.api.GT();X.api.publish("videodatachange","newdata",H,h,V,d);c.G||X.playback.getVideoData().publish("dataupdated");X.dM.delete(n);X.kQ="";H&&h===1?Ssw(X,H):X.playback.Oy("ssap",{nis:X.IZ});h===2?X.wW++:X.wW=0}}}; +Ssw=function(X,c,V){V=V===void 0?!1:V;if(c.startSeconds&&X.Vk){var G=c.startSeconds;c=CX(X.timeline,c.clientPlaybackNonce);if(c==null?0:c.length)G+=c[0].cW()/1E3,X.api.S("htm5_ssap_ignore_initial_seek_if_too_big")&&G>=X.AE()||(X.playback.seekTo(G,{xp:!0}),X.Vk=!1,X.playback.Oy("ssap",{is:X.IZ,co:V?"1":"0",tse:G.toFixed()}))}}; +TX2=function(X,c,V){c=CX(X.timeline,c);if(c!=null&&c.length&&(c=NXl(X,c[0].cW()))){c=g.r(c.segments);for(var G=c.next();!G.done;G=c.next()){G=G.value;if(IZ(G)===V)break;if(G=IZ(G)){var n=X.Nl.get(G);n&&X.playback.removeCueRange(n);X.Nl.delete(G)}}}}; +IY=function(X){return X.playback.getVideoData().clientPlaybackNonce}; +P7D=function(X,c){if(X.yx&&X.IZ!==c)return!1;if(X.j0)return!0;if(c=X.Nl.get(c))if(c=c.getId().split(","),c.length>1)for(var V=0;VL)return VT(X,"enterAfterReturn enterTimeMs="+n+" is greater than parentReturnTimeMs="+L.toFixed(3),d,h),"";var Y=A.Qg()*1E3;if(nY)return A="returnAfterDuration parentReturnTimeMs="+L.toFixed(3)+" is greater than parentDurationMs="+Y+". And timestampOffset in seconds is "+ +A.h1(),VT(X,A,d,h),"";Y=null;for(var H=g.r(X.G),a=H.next();!a.done;a=H.next()){a=a.value;if(n>=a.py&&na.py)return VT(X,"overlappingReturn",d,h),"";if(L===a.py)return VT(X,"outOfOrder",d,h),"";n===a.F6&&(Y=a)}d="cs_childplayback_"+X$1++;h={pE:Gj(G,!0),IC:Infinity,target:null};var W={Gm:d,playerVars:c,playerType:V,durationMs:G,py:n,F6:L,o1:h};X.G=X.G.concat(W).sort(function(Z,v){return Z.py-v.py}); +Y?cgl(X,Y,{pE:Gj(Y.durationMs,!0),IC:Y.o1.IC,target:W}):(c={pE:Gj(n,!1),IC:n,target:W},X.Z.set(c.pE,c),A.addCueRange(c.pE));c=!0;if(X.J===X.app.Ey()&&(A=A.getCurrentTime()*1E3,A>=W.py&&Ac)break;if(L>c)return{tv:G,qa:c-n};V=L-G.F6/1E3}return{tv:null,qa:c-V}}; +i6l=function(X,c,V){V=V===void 0?{}:V;var G=X.B||X.app.Ey().getPlayerState();du(X,!0);c=isFinite(c)?c:X.J.vc();var n=ygD(X,c);c=n.qa;var L=(n=n.tv)&&!nq(X,n)||!n&&X.J!==X.app.Ey(),d=c*1E3;d=X.U&&X.U.start<=d&&d<=X.U.end;!L&&d||Lq(X);n?VeD(X,n,c,V,G):hYw(X,c,V,G)}; +hYw=function(X,c,V,G){var n=X.J,L=X.app.Ey();n!==L&&X.app.yP();n.seekTo(c,Object.assign({},{Z3:"application_timelinemanager"},V));Ag8(X,G)}; +VeD=function(X,c,V,G,n){var L=nq(X,c);if(!L){c.playerVars.prefer_gapless=!0;X.qW.S("html5_enable_ssap_entity_id")&&(c.playerVars.cached_load=!0);var d=new g.z_(X.qW,c.playerVars);d.Gm=c.Gm;X.api.fP(d,c.playerType)}d=X.app.Ey();L||d.addCueRange(c.o1.pE);d.seekTo(V,Object.assign({},{Z3:"application_timelinemanager"},G));Ag8(X,n)}; +Ag8=function(X,c){X=X.app.Ey();var V=X.getPlayerState();c.isOrWillBePlaying()&&!V.isOrWillBePlaying()?X.playVideo():c.isPaused()&&!V.isPaused()&&X.pauseVideo()}; +du=function(X,c){X.G_=NaN;X.C=null;X.T.stop();X.X&&c&&X.X.Qp();X.B=null;X.X=null}; +nq=function(X,c){X=X.app.Ey();return!!X&&X.getVideoData().Gm===c.Gm}; +YyL=function(X){var c=X.G.find(function(n){return nq(X,n)}); +if(c){var V=X.app.Ey();Lq(X);var G=new g.y_(8);c=dHl(X,c)/1E3;hYw(X,c,{},G);V.Oy("forceParentTransition",{childPlayback:1});X.J.Oy("forceParentTransition",{parentPlayback:1})}}; +HVO=function(X,c,V){c=c===void 0?-1:c;V=V===void 0?Infinity:V;for(var G=c,n=V,L=g.r(X.Z),d=L.next();!d.done;d=L.next()){var h=g.r(d.value);d=h.next().value;h=h.next().value;h.IC>=G&&h.target&&h.target.F6<=n&&(X.J.removeCueRange(d),X.Z.delete(d))}G=c;n=V;L=[];d=g.r(X.G);for(h=d.next();!h.done;h=d.next())if(h=h.value,h.py>=G&&h.F6<=n){var A=X;A.D===h&&Lq(A);nq(A,h)&&A.app.yP()}else L.push(h);X.G=L;G=ygD(X,c/1E3);c=G.tv;G=G.qa;c&&(G*=1E3,j1s(X,c,G,c.F6===c.py+c.durationMs?c.py+G:c.F6));(c=ygD(X,V/1E3).tv)&& +VT(X,"Invalid clearEndTimeMs="+V+" that falls during playback={timelinePlaybackId="+(c.Gm+" video_id="+c.playerVars.video_id+" durationMs="+c.durationMs+" enterTimeMs="+c.py+" parentReturnTimeMs="+c.F6+"}.Child playbacks can only have duration updated not their start."))}; +j1s=function(X,c,V,G){c.durationMs=V;c.F6=G;G={pE:Gj(V,!0),IC:V,target:null};cgl(X,c,G);nq(X,c)&&X.app.Ey().getCurrentTime()*1E3>V&&(c=dHl(X,c)/1E3,V=X.app.Ey().getPlayerState(),hYw(X,c,{},V))}; +VT=function(X,c,V,G){X.J.Oy("timelineerror",{e:c,cpn:V?V:void 0,videoId:G?G:void 0})}; +$Hj=function(X){X&&X!=="web"&&aj2.includes(X)}; +Yt=function(X,c){g.I.call(this);var V=this;this.data=[];this.U=X||NaN;this.G=c||null;this.J=new g.qR(function(){yT(V);Ab(V)}); +g.N(this,this.J)}; +lZs=function(X){yT(X);return X.data.map(function(c){return c.value})}; +yT=function(X){var c=(0,g.ta)();X.data.forEach(function(V){V.expireL?{width:c.width,height:c.width/n,aspectRatio:n}:nn?X.width=X.height*V:VA;if($t(X)){var Y=Q1D(X);var H=isNaN(Y)||g.q8||GH&&g.v8||A;iE&&!g.EL(601)?Y=n.aspectRatio:H=H||L.controlsType==="3";H?A?(H=L.S("place_shrunken_video_on_left_of_player")?16:X.getPlayerSize().width-c.width-16,Y=Math.max((X.getPlayerSize().height-c.height)/2,0),H=new g.jF(H,Y,c.width, +c.height),X.Ud.style.setProperty("border-radius","12px")):H=new g.jF(0,0,c.width,c.height):(V=n.aspectRatio/Y,H=new g.jF((c.width-n.width/V)/2,(c.height-n.height)/2,n.width/V,n.height),V===1&&g.v8&&(Y=H.width-c.height*Y,Y>0&&(H.width+=Y,H.height+=Y)));g.ab(X.element,"ytp-fit-cover-video",Math.max(H.width-n.width,H.height-n.height)<1);if(h||X.zB)X.Ud.style.display="";X.N8=!0}else{H=-c.height;iE?H*=window.devicePixelRatio:g.Xg&&(H-=window.screen.height);H=new g.jF(0,H,c.width,c.height);if(h||X.zB)X.Ud.style.display= +"none";X.N8=!1}HE(X.uE,H)||(X.uE=H,g.fL(L)?(X.Ud.style.setProperty("width",H.width+"px","important"),X.Ud.style.setProperty("height",H.height+"px","important")):g.mn(X.Ud,H.getSize()),G=new g.wn(H.left,H.top),g.QF(X.Ud,Math.round(G.x),Math.round(G.y)),G=!0);c=new g.jF((c.width-n.width)/2,(c.height-n.height)/2,n.width,n.height);HE(X.xK,c)||(X.xK=c,G=!0);g.$v(X.Ud,"transform",V===1?"":"scaleX("+V+")");d&&A!==X.Nz&&(A&&(X.Ud.addEventListener(jb,X.lC),X.Ud.addEventListener("transitioncancel",X.lC),X.Ud.classList.add(g.KF.VIDEO_CONTAINER_TRANSITIONING)), +X.Nz=A,X.app.DR.publish("playerUnderlayVisibilityChange",X.Nz?"transitioning":"hidden"));return G}; +k6D=function(){this.csn=g.tU();this.clientPlaybackNonce=null;this.elements=new Set;this.U=new Set;this.J=new Set;this.G=new Set}; +ooO=function(X){if(X.csn!==g.tU())if(X.csn==="UNDEFINED_CSN")X.csn=g.tU();else{var c=g.tU(),V=g.bz();if(c&&V){X.csn=c;for(var G=g.r(X.elements),n=G.next();!n.done;n=G.next())(n=n.value.visualElement)&&n.isClientVe()&&c&&V&&(g.oa("combine_ve_grafts")?bI(m5(),n,V):g.Gx(g.qi)(void 0,c,V,n))}if(c)for(X=g.r(X.J),V=X.next();!V.done;V=X.next())(V=V.value.visualElement)&&V.isClientVe()&&g.y0(c,V)}}; +g.Wn=function(X,c,V,G){g.I.call(this);var n=this;this.logger=new g.d3("App");this.zw=this.cS=!1;this.xC={};this.rE=[];this.vj=!1;this.VA=null;this.intentionalPlayback=!1;this.yl=!0;this.al=!1;this.f8=this.vI=null;this.U1=!0;this.mediaElement=this.vP=null;this.fV=NaN;this.dK=!1;this.zm=this.Bw=this.AX=this.jQ=this.screenLayer=this.playlist=null;this.yf=[];this.Qv=0;this.F8={M_:function(){return n.jr}, +KJ:function(){return n.AX}, +eq:function(d){n.AX=d}, +Jw:function(d,h){n.AX&&n.AX.Jw(d,h)}}; +this.logger.debug("constructor begin");this.config=nDl(c||{});this.webPlayerContextConfig=V;FoO();c=this.config.args||{};this.qW=new PD(c,V,V?V.canaryState:this.config.assets.player_canary_state,G,this);g.N(this,this.qW);cn1(this.qW);G=Gc8(this.qW);this.qW.YU()&&this.yf.push({key:"h5vcc",value:G});this.qW.experiments.lc("jspb_serialize_with_worker")&&i1s();this.qW.experiments.lc("gzip_gel_with_worker")&&PHl();this.qW.G&&!eYL&&(window.addEventListener(oT?"touchstart":"click",OIl,{capture:!0,passive:!0}), +eYL=!0);this.S("html5_onesie")&&(this.b0=new Ho(this.qW),g.N(this,this.b0));this.K6=ye(tq(this.qW)&&!0,c.enablesizebutton);this.aW=ye(!1,c.player_wide);this.visibility=new DSL;g.N(this,this.visibility);this.S("web_log_theater_mode_visibility")&&this.l2(ye(!1,c.player_wide));this.cS=ye(!1,c.external_list);this.events=new g.U3(this);g.N(this,this.events);this.S("start_client_gcf")&&(gc(NT(),{Jr:ak,OU:aPs()}),this.xJ=NT().resolve(ak),wAL(this.xJ));this.IbS=new HO;g.N(this,this.IbS);this.xF=new k6D;G= +new ax;this.DR=new g.eZ(this,G);g.N(this,this.DR);this.template=new EoL(this);g.N(this,this.template);this.appState=1;this.g1=JgD(this);g.N(this,G);G={};this.Uu=(G.internalvideodatachange=this.CV,G.playbackready=this.a3y,G.playbackstarted=this.NmS,G.statechange=this.W7v,G);this.wS=new AP(this.DR);this.qN=mHS(this);G=this.S("html5_load_wasm");c=this.S("html5_allow_asmjs");if(G&&RYD||c)this.qW.Pb=QBs(this.qN,c),EM(Fk(this.qW.Pb,function(d){n.qW.N6=d;var h;(h=n.Ey())==null||h.Oy("wasm",{a:d.jc})}),function(d){g.UQ(d); +d="message"in d&&d.message||d.toString()||"";var h;(h=n.Ey())==null||h.Oy("wasm",{e:d})}); +else if(G&&!RYD){var L;(L=this.Ey())==null||L.Oy("wasm",{e:"wasm unavailable"})}this.BP=new JGO(this.qW,this.qN);this.DR.publish("csiinitialized");L=10;g.OZ(this.qW)&&(L=3);iY(this.qW)&&(L=g.EZ(this.qW.experiments,"tvhtml5_unplugged_preload_cache_size"));L=new Yt(L,function(d){d!==n.sM(d.getPlayerType())&&d.Et()}); +g.N(this,L);this.jr=new g.fa(this.qW,L);L=bVL(this);this.jr.lE(L);tew(this);L={};this.CH=(L.airplayactivechange=this.onAirPlayActiveChange,L.airplayavailabilitychange=this.onAirPlayAvailabilityChange,L.beginseeking=this.qD,L.sabrCaptionsDataLoaded=this.Ru,L.endseeking=this.RI,L.internalAbandon=this.SH,L.internalaudioformatchange=this.Kx,L.internalvideodatachange=this.onVideoDataChange,L.internalvideoformatchange=this.Ur,L.liveviewshift=this.K7W,L.playbackstalledatstart=this.xNS,L.progresssync=this.e6W, +L.onAbnormalityDetected=this.Vv,L.onSnackbarMessage=this.onSnackbarMessage,L.onLoadProgress=this.onLoadProgress,L.SEEK_COMPLETE=this.A8,L.SEEK_TO=this.h8R,L.onVideoProgress=this.onVideoProgress,L.onLoadedMetadata=this.onLoadedMetadata,L.onAutoplayBlocked=this.onAutoplayBlocked,L.onPlaybackPauseAtStart=this.x6y,L.playbackready=this.HEK,L.statechange=this.Zj,L.newelementrequired=this.CB,L.heartbeatparams=this.Z$,L.videoelementevent=this.zk,L.drmoutputrestricted=this.onDrmOutputRestricted,L.signatureexpired= +this.Ns_,L.nonfatalerror=this.IgR,L.reloadplayer=this.sL_,L);this.zo=new g.U3(this);g.N(this,this.zo);this.VV=new Hn;g.N(this,this.VV);this.Zz=this.N_=-1;this.EO=new g.qR(this.template.resize,16,this.template);g.N(this,this.EO);this.nM=new qsD(this.DR,this.qW,this.GF(),this);this.k8=new pa(this.qW);this.CY=new lR(this);g.N(this,this.CY);this.MV=new RZ(this);g.N(this,this.MV);$Hj(this.qW.J.c);this.events.L(this.DR,g.jw("appapi"),this.k2y);this.events.L(this.DR,g.HQ("appapi"),this.F7W);this.events.L(this.DR, +g.jw("appprogressboundary"),this.D6c);this.events.L(this.DR,g.HQ("applooprange"),this.gj);this.events.L(this.DR,"presentingplayerstatechange",this.vE);this.events.L(this.DR,"resize",this.fgl);this.template.uc(P1(document,X));this.events.L(this.DR,"offlineslatestatechange",this.N$y);this.events.L(this.DR,"sabrCaptionsTrackChanged",this.qNl);this.events.L(this.DR,"sabrCaptionsBufferedRangesUpdated",this.ocv);this.qN.W.j().tf&&oM(this.qN,"offline");this.qW.qE&&g.Wr("ux",g.JG);X=g.EZ(this.qW.experiments, +"html5_defer_fetch_att_ms");this.pR=new g.qR(this.mJ_,X,this);g.N(this,this.pR);this.Vg().d$()&&(g.U1()&&this.Vg().NW.push("remote"),OVO(this));this.BP.tick("fs");ljl(this);this.qW.qE&&oM(this.qN,"ux",!0);g.RT(this.qN.W.j())&&oM(this.qN,"embed");this.S("web_player_sentinel_is_uniplayer")||g.UQ(new g.SP("Player experiment flags missing","web_player_sentinel_is_uniplayer"));X=this.S("web_player_sentinel_yt_experiments_sync");L=g.oa("web_player_sentinel_yt_experiments_sync");X!==L&&g.UQ(new g.SP("b/195699950", +{yt:X,player:L}));V||g.UQ(new g.SP("b/179532961"));this.El=MeD(this);if(V=g.EZ(this.qW.experiments,"html5_block_pip_safari_delay"))this.Ls=new g.qR(this.zq,V,this),g.N(this,this.Ls);Ia=this.qW.Bd;V=g.EZ(this.qW.experiments,"html5_performance_impact_profiling_timer_ms");V>0&&(this.i$=new g.em(V),g.N(this,this.i$),this.events.L(this.i$,"tick",function(){n.Ew&&gol.t4("apit",n.Ew);n.Ew=gol.Op()})); +this.DR.publish("applicationInitialized");this.logger.debug("constructor end")}; +MeD=function(X){function c(V){V.stack&&V.stack.indexOf("player")!==-1&&(X.Ey()||X.GF()).DE(V)} +T8.subscribe("handleError",c);c3.push(c);return function(){T8.unsubscribe("handleError",c);var V=c3.indexOf(c);V!==-1&&c3.splice(V,1)}}; +bVL=function(X){var c=new g.z_(X.qW,X.config.args);X.DR.publish("initialvideodatacreated",c);return wu(X,1,c,!1)}; +tew=function(X){var c=X.GF();c.setPlaybackRate(X.qW.X?1:fjl(X,Number(g.Il("yt-player-playback-rate"))||1));c.F1(X.Uu,X);c.z9()}; +mHS=function(X){var c="",V=w$t(X);V.indexOf("//")===0&&(V=X.qW.protocol+":"+V);var G=V.lastIndexOf("/base.js");G!==-1&&(c=V.substring(0,G+1));if(V=Error().stack)if(V=V.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))V=V[1],V.includes(c)||g.UQ(Error("Player module URL mismatch: "+(V+" vs "+c+".")));c=new GjS(X.DR,c);p$D(X,c);return c}; +p$D=function(X,c){var V={};V=(V.destroyed=function(){X.onApiChange()},V); +c.U=V}; +JgD=function(X){if(X.qW.storeUserVolume){X=g.Il("yt-player-volume")||{};var c=X.volume;X={volume:isNaN(c)?100:g.am(Math.floor(c),0,100),muted:!!X.muted}}else X={volume:100,muted:X.qW.mute};return X}; +FD=function(X){X.mediaElement=X.qW.deviceIsAudioOnly?new g.DD(g.Vj("AUDIO")):mE.pop()||new g.DD(g.Vj("VIDEO"));g.N(X,X.mediaElement);var c=X.Ey();c&&c.setMediaElement(X.mediaElement);try{X.qW.pM?(X.Bw&&X.events.Hd(X.Bw),X.Bw=X.events.L(X.mediaElement,"volumechange",X.h6c)):(X.mediaElement.nG(X.g1.muted),X.mediaElement.setVolume(X.g1.volume/100))}catch(n){X.XP("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(n&&typeof n==="object"&&"message"in n&&typeof n.message==="string"&&n.message.replace(/[;:,]/g, +"_")));return}g.l5(X.zo);Ijs(X);c=X.template;var V=X.mediaElement.WP();c.Ud=V;c.uM=!1;c.Ud.parentNode||dW(c.N5,c.Ud,0);c.uE=new g.jF(0,0,0,0);vol(c);aB(c);V=c.Ud;g.Ax(V,"video-stream");g.Ax(V,g.KF.MAIN_VIDEO);var G=c.app.j();G.dW&&V.setAttribute("data-no-fullscreen","true");G.S("html5_local_playsinline")?"playsInline"in M_()&&(V.playsInline=!0):G.Bo&&(V.setAttribute("webkit-playsinline",""),V.setAttribute("playsinline",""));G.dn&&c.Ud&&c.L(V,"click",V.play,V);try{X.mediaElement.activate()}catch(n){X.XP("html5.missingapi", +2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(n&&typeof n==="object"&&"message"in n&&typeof n.message==="string"&&n.message.replace(/[;:,]/g,"_")))}}; +UH2=function(X){if(!N58(X)){var c=X.GF().vg();c&&(c=c.f0(),c instanceof Promise&&c.catch(function(){})); +EB(X,WS(X.getPlayerStateObject()))}}; +Ijs=function(X){var c=X.mediaElement;Id()?X.zo.L(c,"webkitpresentationmodechanged",X.OJO):window.document.pictureInPictureEnabled&&(X.zo.L(c,"enterpictureinpicture",function(){X.Sq(!0)}),X.zo.L(c,"leavepictureinpicture",function(){X.Sq(!1)})); +Xv&&(X.zo.L(c,"webkitbeginfullscreen",function(){X.GJ(3)}),X.zo.L(c,"webkitendfullscreen",function(){X.GJ(0)}))}; +T5l=function(X,c){var V=c.getPlayerType(),G=X.jr.sM(V);c!==X.GF()&&c!==G&&(G==null||G.Et(),X.jr.U[V]=c)}; +uL1=function(X,c){c=c===void 0?!0:c;X.logger.debug("start clear presenting player");var V;if(V=X.zm){V=X.zm;var G=X.mediaElement;V=!!G&&G===V.mediaElement}V&&(X.cE(),FD(X));if(V=X.Ey())V.cE(!c),V.Ma(X.CH,X),V.getPlayerType()!==1&&V.Et();X.jr.X=null;X.logger.debug("finish clear presenting player")}; +g.PDL=function(X,c,V,G){var n=X.BP;c===2&&(n=new JGO(X.qW));return new g.de(X.qW,c,n,X.template,function(L,d,h){X.DR.publish(L,d,h)},function(){return X.DR.getVisibilityState()},X.visibility,X,V,G)}; +wu=function(X,c,V,G,n){X=g.PDL(X,c,V,n);c=new g.UN(X);X.y$=c;G&&X.z9();return c}; +ru=function(X,c){return X.Jb(c)?X.GF():c}; +QT=function(X,c){var V=X.Ey(),G=X.GF();return V&&c===G&&X.Jb(c)&&X.Jb(V)?V:c}; +KOw=function(X){X.logger.debug("start application playback");if(X.GF().getPlayerState().isError())X.logger.debug("start application playback done, player in error state");else{var c=ZW(X);X.Vg().isLoaded();c&&X.x8(6);zYs(X);aWs(X.qN)||B5U(X)}}; +B5U=function(X){if(!ZW(X)){var c=JP(X.qN);c&&!c.created&&nt1(X.qN)&&(X.logger.debug("reload ad module"),c.create())}}; +zYs=function(X){X.logger.debug("start presenter playback");var c=X.getVideoData(),V=X.qN;aWs(V)||V.K9();!RYD&&V.W.S("html5_allow_asmjs")&&rbL(V);oM(V,"embed");oM(V,"kids");oM(V,"remote");oM(V,"miniplayer");oM(V,"offline");oM(V,"unplugged");oM(V,"ypc",!1,!0);oM(V,"ypc_clickwrap",!1,!0);oM(V,"yto",!1,!0);oM(V,"webgl",!1,!0);$Ej(V)||(oM(V,"captions",!0),oM(V,"endscreen"),V.Il()||V.f7(),oM(V,"creatorendscreen",!0));V.Pt();X.DR.publish("videoready",c)}; +xt=function(X){X=X.Vg();X.d$();return NO(X)}; +ljl=function(X){X.logger.debug("start prepare initial playback");X.kh();var c=X.config.args;FD(X);var V=X.Vg();X.DR.DL("onVolumeChange",X.g1);if(c&&Oaj(c)){var G=sT(X.qW);G&&!X.cS&&(c.fetch=0);var n=g.RT(X.qW);n&&!X.cS&&(c.fetch=0);vn(X,c);g.RT(X.qW)&&X.BP.tick("ep_pr_s");if(!G||X.cS)if(n&&!X.cS)s1s(X);else if(!V.d$())X.playlist.onReady(function(){kt(X)})}X.I1(X.GF()); +g.B(X.GF().getPlayerState(),128)||(c=r01(!X.qW.deviceIsAudioOnly),c==="fmt.noneavailable"?X.XP("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):c==="html5.missingapi"?X.XP(c,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):V&&V.d$()&&xt(X)&&(X.qW.jL||X.qW.MJ)?oB(X):V.wp?X.DR.mutedAutoplay({durationMode:V.mutedAutoplayDurationMode}):g.Il("yt-player-playback-on-reload")?(g.a0("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!X.qW.kO}),g.pv("yt-player-playback-on-reload",!1), +oB(X)):Vb(X.qW)||CDs(X),g.S3(X.qW)||i7(X.qW)==="MWEB"?(g.Va(g.n$(),function(){eQ(X)}),g.Va(g.n$(),function(){e6L()})):(eQ(X),e6L()),X.logger.debug("finish prepare initial playback"))}; +eQ=function(X){if(!X.S("use_rta_for_player"))if(X.S("fetch_att_independently"))g.Xn(X.pR);else{var c=X.getVideoData().botguardData;c&&g.Na(c,X.qW,X.getVideoData().Kw||"")}}; +CDs=function(X){X.logger.debug("start initialize to CUED mode");X.DR.publish("initializingmode");X.x8(2);X.S("embeds_web_enable_defer_loading_remote_js")&&g.q7(X.qW)?g.Va(g.n$(),function(){oM(X.qN,"remote")}):oM(X.qN,"remote"); +oM(X.qN,"miniplayer");X.logger.debug("initialized to CUED mode")}; +oB=function(X){X.logger.debug("start initialize application playback");var c=X.GF();if(g.B(c.getPlayerState(),128))return!1;var V=c.getVideoData();xt(X)&&X.qW.MJ&&(mE.length&&X.zw?(Jb(X,{muted:!1,volume:X.g1.volume},!1),mk(X,!1)):mE.length||X.g1.muted||(Jb(X,{muted:!0,volume:X.g1.volume},!1),mk(X,!0)));xt(X)&&g.RT(X.qW)&&V.mutedAutoplay&&(Jb(X,{muted:!0,volume:X.g1.volume},!1),mk(X,!0));V.TD&&Jb(X,{muted:!0,volume:X.g1.volume},!1);DHj(X,1,V,!1);X.DR.publish("initializingmode");X.I1(X.GF());X.x8(3); +var G;if(!(G=!X.qW.v5)){if(G=X.zm){G=X.zm;var n=X.mediaElement;G=!!n&&n===G.mediaElement}G=G&&X.vj}G&&(X.cE(),FD(X),c.setMediaElement(X.mediaElement));c.Jy();if(g.B(c.getPlayerState(),128))return!1;V.UQ||EB(X,3);return X.vj=!0}; +ZW=function(X){X=Rx(X.qN);return!!X&&X.loaded}; +Sys=function(X,c){if(!X.vP)return!1;var V=X.vP.startTimeMs*.001-1,G=X.vP.endTimeMs*.001;X.vP.type==="repeatChapter"&&G--;return Math.abs(c-V)<=1E-6||Math.abs(c-G)<=1E-6||c>=V&&c<=G}; +Xgl=function(X){var c=X.Ey();c&&nQ(c.getVideoData())&&!c.Th()&&(c=iV1(X)*1E3-X.getVideoData().TK,X.S("html5_gapless_new_slr")?(X=X.MV,qyl(X.app,"gaplessshortslooprange"),c=new g.AC(0,c,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(X=X.app.Ey())&&X.addCueRange(c)):X.setLoopRange({startTimeMs:0,endTimeMs:c,type:"shortsLoop"}))}; +c92=function(X){var c=X.GF();if(!(g.B(c.getPlayerState(),64)&&X.Vg().isLivePlayback&&X.vP.startTimeMs<5E3)){if(X.vP.type==="repeatChapter"){var V,G=(V=IyD(X.X2()))==null?void 0:V.bF(),n;V=(n=X.getVideoData())==null?void 0:n.U_;G instanceof g.uV&&V&&(n=V[hD(V,X.vP.startTimeMs)],G.renderChapterSeekingAnimation(0,n.title));isNaN(Number(X.vP.loopCount))?X.vP.loopCount=0:X.vP.loopCount++;X.vP.loopCount===1&&X.DR.z_("innertubeCommand",X.getVideoData().jD)}G={Z3:"application_loopRangeStart"};if(X.vP.type=== +"clips"||X.vP.type==="shortsLoop")G.seekSource=58;c.seekTo(X.vP.startTimeMs*.001,G)}}; +fjl=function(X,c){var V=X.DR.getAvailablePlaybackRates();c=Number(c.toFixed(2));X=V[0];V=V[V.length-1];c<=X?c=X:c>=V?c=V:(X=Math.floor(c*100+.001)%5,c=X===0?c:Math.floor((c-X*.01)*100+.001)/100);return c}; +iV1=function(X,c){c=X.sM(c);if(!c)return X.jr.J.Sc();c=ru(X,c);return RB(X,c.Sc(),c)}; +RB=function(X,c,V){if(X.Jb(V)){V=V.getVideoData();if(bs(X))V=c;else{X=X.nM;for(var G=g.r(X.G),n=G.next();!n.done;n=G.next())if(n=n.value,V.Gm===n.Gm){c+=n.py/1E3;break}G=c;X=g.r(X.G);for(n=X.next();!n.done;n=X.next()){n=n.value;if(V.Gm===n.Gm)break;var L=n.py/1E3;if(L1&&(n=!1);if(!X.dK||n!==c){V=V.lock(n?"portrait":"landscape");if(V!=null)V["catch"](function(){}); +X.dK=!0}}else X.dK&&(X.dK=!1,V.unlock())}; +fq=function(X,c,V){X.DR.publish(c,V);var G=g.OZ(X.qW)||g.fL(X.qW)||g.uG(X.qW);if(V&&G){switch(c){case "cuerangemarkersupdated":var n="onCueRangeMarkersUpdated";break;case "cuerangesadded":n="onCueRangesAdded";break;case "cuerangesremoved":n="onCueRangesRemoved"}n&&X.DR.z_(n,V.map(function(L){return{getId:function(){return this.id}, +end:L.end,id:L.getId(),namespace:L.namespace==="ad"?"ad":"",start:L.start,style:L.style,visible:L.visible}}))}}; +pq=function(X,c,V,G,n,L){V=V===void 0?!0:V;var d=X.sM(n);d&&(d.getPlayerType()===2&&!X.Jb(d)||g.mJ(d.getVideoData()))||(X.getPresentingPlayerType()===3?Rx(X.qN).t3("control_seek",c,V):(d&&d===X.GF()&&X.vP&&!Sys(X,c)&&X.setLoopRange(null),X.seekTo(c,V,G,n,L)))}; +EZl=function(X,c,V,G){V&&(X.cE(),FD(X));V=X.Ey();V.ZS(c);var n=X.getVideoData(),L={};L.video_id=n.videoId;L.adformat=n.adFormat;n.isLivePlayback||(L.start=V.getCurrentTime(),L.resume="1");n.isLivePlayback&&av(n)&&g.bL(X.qW)&&(L.live_utc_start=V.Tm(),L.resume="1");n.A7&&(L.vvt=n.A7);n.B&&(L.vss_credentials_token=n.B,L.vss_credentials_token_type=n.P5);n.oauthToken&&(L.oauth_token=n.oauthToken);n.wV&&(L.force_gvi=n.wV);L.autoplay=1;L.reload_count=n.G2+1;L.reload_reason=c;n.ID&&(L.unplugged_partner_opt_out= +n.ID);n.Pb&&(L.ypc_is_premiere_trailer=n.Pb);n.playerParams&&(L.player_params=n.playerParams);X.loadVideoByPlayerVars(L,void 0,!0,void 0,void 0,G);c==="signature"&&X.jQ&&B5U(X)}; +r9U=function(X,c){X.Vg().autonavState=c;g.pv("yt-player-autonavstate",c);X.DR.publish("autonavchange",c)}; +QgL=function(X){var c=X.getVideoData().Og,V=X.qW.o2,G=X.isInline()&&!X.getVideoData().Ka,n=X.mediaElement;c||V||G?n.IE():(n.PJ(),Jb(X,X.g1))}; +tb=function(X){var c=JP(X.X2());c&&c.created&&(X.logger.debug("reset ad module"),c.destroy())}; +bs=function(X){return X.getVideoData().enableServerStitchedDai&&!!X.jQ}; +ZJL=function(X,c){c.bounds=X.getBoundingClientRect();for(var V=g.r(["display","opacity","visibility","zIndex"]),G=V.next();!G.done;G=V.next())G=G.value,c[G]=F5(X,G);c.hidden=!!X.hidden}; +w$t=function(X){if(X.webPlayerContextConfig){var c=X.webPlayerContextConfig.trustedJsUrl;return c?JL(c).toString():X.webPlayerContextConfig.jsUrl}return X.config.assets&&X.config.assets.js?X.config.assets.js:""}; +xNj=function(X,c){var V=X.sM(1);if(V){if(V.getVideoData().clientPlaybackNonce===c)return V;if((X=X.CY.J)&&X.getVideoData().clientPlaybackNonce===c)return X}return null}; +vZ2=function(X){return X.name==="TypeError"&&X.stack.includes("/s/player/")&&B3()<=105}; +kpL=function(X){return X.isTimeout?"NO_BID":"ERR_BID"}; +oZl=function(){var X=null;TbL().then(function(c){return X=c},function(c){return X=kpL(c)}); +return X}; +eZj=function(){var X=m2(1E3,"NO_BID");return g.kc(qWD([TbL(),X]).Vr(kpL),function(){X.cancel()})}; +IB=function(X){return X.Wg?g.Be(g.zk(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; +NE=function(X){this.player=X;this.U=this.J=1}; +RZl=function(X,c,V,G,n,L){c.client||(c.client={});X.player.j().S("h5_remove_url_for_get_ad_break")||(c.client.originalUrl=V);var d=H3(V),h=g.Ue(V)?!1:!0;(d||h)&&typeof Intl!=="undefined"&&(c.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);h=g.Ue(V)?!1:!0;if(d||h||G!==""){var A={};V=dd(Fx(G)).split("&");var Y=new Map;V.forEach(function(H){H=H.split("=");H.length>1&&Y.set(H[0].toString(),decodeURIComponent(H[1].toString()))}); +Y.has("bid")&&(A.bid=Y.get("bid"));A.params=[];J9t.forEach(function(H){Y.has(H)&&(H={key:H,value:Y.get(H)},A.params.push(H))}); +mNs(X,A);c.adSignalsInfo=A}c.client.unpluggedAppInfo||(c.client.unpluggedAppInfo={});c.client.unpluggedAppInfo.enableFilterMode=!1;V=n.J.cosver;V!=null&&V!=="cosver"&&(c.client.osVersion=V);V=n.J.cplatform;V!=null&&V!=="cplatform"&&V!==""&&(c.client.platform=V);V=n.J.cmodel;V!=null&&V!=="cmodel"&&(c.client.deviceModel=V);V=n.J.cplayer;V!=null&&V!=="cplayer"&&(c.client.playerType=V);V=n.J.cbrand;V!=null&&V!=="cbrand"&&(c.client.deviceMake=V);c.user||(c.user={});c.user.lockedSafetyMode=!1;(n.S("embeds_web_enable_iframe_api_send_full_embed_url")|| +n.S("embeds_enable_autoplay_and_visibility_signals"))&&g.g0(n)&&u1s(c,L,X.player.getPlayerState(1))}; +OJ1=function(X,c){var V=!1;if(c==="")return V;c.split(",").forEach(function(G){var n={},L={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},d="ACTIVE";G[0]==="!"&&(G=G.substring(1),d="INACTIVE");G=G.split("-");G.length<3||(G[0]in bJl&&(L.clientName=bJl[G[0]]),G[1]in tiU&&(L.platform=tiU[G[1]]),L.applicationState=d,L.clientVersion=G.length>2?G[2]:"",n.remoteClient=L,X.remoteContexts?X.remoteContexts.push(n):X.remoteContexts=[n],V=!0)}); +return V}; +MiL=function(X){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in lbU))return!1;X=X.split(RegExp("[:&]"));var c=lbU.FLAG_AUTO_CAPTIONS_DEFAULT_ON,V="f"+(1+Math.floor(c/31)).toString();c=1<=2?d[1]:"";var h=fbD.test(c),A=pg8.exec(c);A=A!=null&&A.length>=2?A[1]:"";var Y=Ibj.exec(c);Y=Y!=null&&Y.length>=2&&!Number.isNaN(Number(Y[1]))?Number(Y[1]):1;var H=N$D.exec(c);H=H!=null&&H.length>=2?H[1]:"0";var a=UT(X.player.j().Wb),W=X.player.getVideoData(1),w=g.V$(W.Pl,!0),F="BISCOTTI_ID"in V?V.BISCOTTI_ID:"";RZl(X,w,c,F.toString(),X.player.j(), +W);W={splay:!1,lactMilliseconds:V.LACT.toString(),playerHeightPixels:Math.trunc(V.P_H),playerWidthPixels:Math.trunc(V.P_W),vis:Math.trunc(V.VIS),signatureTimestamp:20158,autonavState:IB(X.player.j())};G&&(G={},OJ1(G,V.YT_REMOTE)&&(W.mdxContext=G));if(G=UNl.includes(a)?void 0:g.Tx("PREF")){for(var Z=G.split(RegExp("[:&]")),v=0,e=Z.length;v1&&m[1].toUpperCase()==="TRUE"){w.user.lockedSafetyMode=!0;break}}W.autoCaptionsDefaultOn= +MiL(G)}c=T$t.exec(c);(c=c!=null&&c.length>=2?c[1]:"")&&A&&(w.user.credentialTransferTokens=[{token:c,scope:"VIDEO"}]);c={contentPlaybackContext:W};d={adBlock:Math.trunc(V.AD_BLOCK),params:d,breakIndex:Y,breakPositionMs:H,clientPlaybackNonce:V.CPN,topLevelDomain:a,isProxyAdTagRequest:h,context:w,adSignalsInfoString:dd(Fx(F.toString())),overridePlaybackContext:c};n!==void 0&&(d.cueProcessedMs=Math.round(n).toString());A&&(d.videoId=A);V.LIVE_TARGETING_CONTEXT&&(d.liveTargetingParams=V.LIVE_TARGETING_CONTEXT); +V.AD_BREAK_LENGTH&&(d.breakLengthMs=Math.trunc(V.AD_BREAK_LENGTH*1E3).toString());L&&(d.driftFromHeadMs=L.toString());d.currentMediaTimeMs=Math.round(X.player.getCurrentTime(1)*1E3);(X=X.player.getGetAdBreakContext())&&(d.getAdBreakContext=X);return d}; +PC1=function(){NE.apply(this,arguments)}; +zZl=function(X,c,V,G,n){var L=V.Ji;var d=V.pE;var h=X.player.j().pY,A=0;V.cueProcessedMs&&d&&!L&&(V=d.end-d.start,V>0&&(A=Math.floor(V/1E3)));var Y={AD_BLOCK:n,AD_BREAK_LENGTH:L?L.VL:A,AUTONAV_STATE:IB(X.player.j()),CA_TYPE:"image",CPN:X.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:X.player.LK()*1E3,LACT:Ox(),LIVE_INDEX:L?X.U++:1,LIVE_TARGETING_CONTEXT:L&&L.context?L.context:"",MIDROLL_POS:d?Math.round(d.start/1E3):0,MIDROLL_POS_MS:d?Math.round(d.start):0,VIS:X.player.getVisibilityState(), +P_H:X.player.CS().Nm().height,P_W:X.player.CS().Nm().width,YT_REMOTE:h?h.join(","):""},H=wd(W3);Object.keys(H).forEach(function(a){H[a]!=null&&(Y[a.toUpperCase()]=H[a].toString())}); +G!==""&&(Y.BISCOTTI_ID=G);G={};$P(c)&&(G.sts="20158",(X=X.player.j().forcedExperiments)&&(G.forced_experiments=X));return j4(g.l_(c,Y),G)}; +B$O=function(X,c){var V=X.player.j(),G,n=(G=X.player.getVideoData(1))==null?void 0:G.oauthToken;return g.LW(V,n).then(function(L){if(L&&aa()){var d=Ix();N$(d,L)}return g.X4(X.player.iF(d),c,"/youtubei/v1/player/ad_break").then(function(h){return h})})}; +Krt=function(X){this.t7=X}; +sgD=function(X){this.W=X}; +CC2=function(X){this.t7=X}; +SO1=function(X){g.I.call(this);this.J=X;this.Ag=DNS(this)}; +DNS=function(X){var c=new QJD(X.J.oy);g.N(X,c);X=g.r([new Krt(X.J.t7),new sgD(X.J.W),new CC2(X.J.t7),new fy(X.J.MQ,X.J.aX),new IW,new TE(X.J.kt,X.J.D_,X.J.t7),new py,new gH]);for(var V=X.next();!V.done;V=X.next())ZMl(c,V.value);X=g.r(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(V=X.next();!V.done;V=X.next())NZ(c,V.value,function(){}); +return c}; +UB=function(X){var c=X.Sv,V=X.Xh;X=X.X4;var G=new gLw,n={yH:new F8D(c.get(),V),Xh:V};return{ra:new LF(V,X,c,n),context:n,lj:G}}; +Tj=function(X,c,V,G,n){g.I.call(this);this.G=c;this.mS=V;this.Sv=G;this.VC=n;this.listeners=[];var L=new tj(this);g.N(this,L);L.L(X,"internalAbandon",this.SH);this.addOnDisposeCallback(function(){g.l5(L)})}; +us=function(X){this.W=X;this.adVideoId=this.J=this.videoId=this.adCpn=this.contentCpn=null;this.Z=!0;this.G=this.U=!1;this.adFormat=null;this.X="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; +iJ8=function(X){X.contentCpn=null;X.adCpn=null;X.videoId=null;X.adVideoId=null;X.adFormat=null;X.X="AD_PLACEMENT_KIND_UNKNOWN";X.actionType="unknown_type";X.U=!1;X.G=!1}; +qOL=function(X,c){X=g.r(c);for(c=X.next();!c.done;c=X.next())if((c=c.value.renderer)&&(c.instreamVideoAdRenderer||c.linearAdSequenceRenderer||c.sandwichedLinearAdRenderer||c.instreamSurveyAdRenderer)){zh("ad_i");g.Bh({isMonetized:!0});break}}; +XXl=function(X){var c;(c=X.W.getVideoData(1))!=null&&c.kO&&(X.G=!1,c={},X.J&&X.videoId&&(c.cttAuthInfo={token:X.J,videoId:X.videoId}),Kn("video_to_ad",c))}; +Cg=function(X){X.G=!1;var c={};X.J&&X.videoId&&(c.cttAuthInfo={token:X.J,videoId:X.videoId});Kn("ad_to_video",c);czO(X)}; +czO=function(X){if(X.U)if(X.X==="AD_PLACEMENT_KIND_START"&&X.actionType==="video_to_ad")Th("video_to_ad");else{var c={adBreakType:oH(X.X),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:X.videoStreamType};X.actionType==="ad_to_video"?(X.contentCpn&&(c.targetCpn=X.contentCpn),X.videoId&&(c.targetVideoId=X.videoId)):(X.adCpn&&(c.targetCpn=X.adCpn),X.adVideoId&&(c.targetVideoId=X.adVideoId));X.adFormat&&(c.adType=X.adFormat);X.contentCpn&& +(c.clientPlaybackNonce=X.contentCpn);X.videoId&&(c.videoId=X.videoId);X.adCpn&&(c.adClientPlaybackNonce=X.adCpn);X.adVideoId&&(c.adVideoId=X.adVideoId);g.Bh(c,X.actionType)}}; +Pn=function(X){g.I.call(this);this.W=X;this.J=new Map;this.G=new tj(this);g.N(this,this.G);this.G.L(this.W,g.jw("ad"),this.onCueRangeEnter,this);this.G.L(this.W,g.HQ("ad"),this.onCueRangeExit,this)}; +VC1=function(X,c,V,G,n){g.AC.call(this,c,V,{id:X,namespace:"ad",priority:n,visible:G})}; +zj=function(X){this.W=X}; +Bn=function(X){this.W=X;g.EZ(this.W.j().experiments,"tv_pacf_logging_sample_rate")}; +mT=function(X,c){c=c===void 0?!1:c;return X.W.j().S("html5_ssap_force_ads_ctmp")?!0:(c||X.W.j().YU())&&X.W.j().S("html5_ssap_pacf_qoe_ctmp")}; +Kq=function(X){var c,V;return(V=(c=X.W.getVideoData(1))==null?void 0:g.CW(c))!=null?V:!1}; +Xu=function(X,c){return X.W.j().S(c)}; +GOt=function(X){return X.W.j().S("substitute_ad_cpn_macro_in_ssdai")}; +kI=function(X){var c,V,G;return((c=X.W.getVideoData(1).getPlayerResponse())==null?void 0:(V=c.playerConfig)==null?void 0:(G=V.daiConfig)==null?void 0:G.enableServerStitchedDai)||!1}; +eyl=function(X){return X.W.j().S("html5_enable_vod_slar_with_notify_pacf")}; +nAO=function(X){return X.W.j().S("html5_recognize_predict_start_cue_point")}; +GP=function(X){return X.W.j().experiments.lc("enable_desktop_player_underlay")}; +L1t=function(X){return X.W.j().experiments.lc("html5_load_empty_player_in_media_break_sub_lra")}; +pg=function(X){return X.W.j().experiments.lc("html5_load_ads_instead_of_cue")}; +IH=function(X){return X.W.j().experiments.lc("html5_preload_ads")}; +qI=function(X){return X.W.j().experiments.lc("enable_ads_control_flow_deterministic_id_generation")}; +d9j=function(X){return X.W.j().experiments.lc("enable_desktop_discovery_video_abandon_pings")||g.CL(X.W.j())}; +yzt=function(X){return X.W.j().experiments.lc("enable_progres_commands_lr_feeds")}; +sB=function(X){return X.W.j().experiments.lc("html5_cuepoint_identifier_logging")}; +hWt=function(X){switch(X){case "audio_audible":return"adaudioaudible";case "audio_measurable":return"adaudiomeasurable";case "fully_viewable_audible_half_duration_impression":return"adfullyviewableaudiblehalfdurationimpression";case "measurable_impression":return"adactiveviewmeasurable";case "overlay_unmeasurable_impression":return"adoverlaymeasurableimpression";case "overlay_unviewable_impression":return"adoverlayunviewableimpression";case "overlay_viewable_end_of_session_impression":return"adoverlayviewableendofsessionimpression"; +case "overlay_viewable_immediate_impression":return"adoverlayviewableimmediateimpression";case "viewable_impression":return"adviewableimpression";default:return null}}; +AzU=function(){g.$T.call(this);var X=this;this.J={};this.addOnDisposeCallback(function(){for(var c=g.r(Object.keys(X.J)),V=c.next();!V.done;V=c.next())delete X.J[V.value]})}; +Cq=function(){if(YcS===null){YcS=new AzU;OA(ml).G="b";var X=OA(ml),c=EV(X)=="h"||EV(X)=="b",V=!(pN(),!1);c&&V&&(X.Z=!0,X.B=new UXw)}return YcS}; +jUD=function(X,c,V){X.J[c]=V}; +HPt=function(X){switch(X){case "abandon":case "unmuted_abandon":return"abandon";case "active_view_fully_viewable_audible_half_duration":return"fully_viewable_audible_half_duration_impression";case "active_view_measurable":return"measurable_impression";case "active_view_viewable":return"viewable_impression";case "audio_audible":return"audio_audible";case "audio_measurable":return"audio_measurable";case "complete":case "unmuted_complete":return"complete";case "end_fullscreen":case "unmuted_end_fullscreen":return"exitfullscreen"; +case "first_quartile":case "unmuted_first_quartile":return"firstquartile";case "fullscreen":case "unmuted_fullscreen":return"fullscreen";case "impression":case "unmuted_impression":return"impression";case "midpoint":case "unmuted_midpoint":return"midpoint";case "mute":case "unmuted_mute":return"mute";case "pause":case "unmuted_pause":return"pause";case "progress":case "unmuted_progress":return"progress";case "resume":case "unmuted_resume":return"resume";case "swipe":case "skip":case "unmuted_skip":return"skip"; +case "start":case "unmuted_start":return"start";case "third_quartile":case "unmuted_third_quartile":return"thirdquartile";case "unmute":case "unmuted_unmute":return"unmute";default:return null}}; +DW=function(X,c,V){this.mS=X;this.W=c;this.Xh=V;this.G=new Set;this.J=new Map;Cq().subscribe("adactiveviewmeasurable",this.QP,this);Cq().subscribe("adfullyviewableaudiblehalfdurationimpression",this.tA,this);Cq().subscribe("adviewableimpression",this.Z0,this);Cq().subscribe("adaudioaudible",this.wk,this);Cq().subscribe("adaudiomeasurable",this.cO,this)}; +is=function(X,c,V){var G=V.E8,n=V.ZM,L=V.listener,d=V.eT;V=V.hU===void 0?!1:V.hU;if(X.J.has(c))FX("Unexpected registration of layout in LidarApi");else{if(d){if(X.G.has(d))return;X.G.add(d)}X.J.set(c,L);Yr(pN().t1,"fmd",1);SAS(OA(ml),G);var h=V?c:void 0;jUD(Cq(),c,{oE:function(){if(!n)return{};var A=X.W.getPresentingPlayerType(!0),Y;return(Y=X.W.getVideoData(A))!=null&&Y.isAd()?{currentTime:X.mS.get().getCurrentTimeSec(A,!1,h),duration:n,isPlaying:SQ(X.mS.get(),A).isPlaying(),isVpaid:!1,isYouTube:!0, +volume:X.mS.get().isMuted()?0:X.mS.get().getVolume()/100}:{}}})}}; +qE=function(X,c){X.J.has(c)?(X.J.delete(c),delete Cq().J[c]):FX("Unexpected unregistration of layout in LidarApi")}; +aKD=function(X,c){if(X.W.isLifaAdPlaying()){var V=X.W.i4(!0,!0);X.z8(c,V.width*.5*1.1,V.height*.25*1.1,V.width*.5*.9,V.height*.5*.9)}}; +wX2=function(X,c,V){var G={};$9l(X,G,c,V);W1s(G);G.LACT=XP(function(){return Ox().toString()}); +G.VIS=XP(function(){return X.getVisibilityState().toString()}); +G.SDKV="h.3.0";G.VOL=XP(function(){return X.isMuted()?"0":Math.round(X.getVolume()).toString()}); +G.VED="";return G}; +F1D=function(X,c){var V={};if(c)return V;if(!X.kind)return g.Ni(Error("AdPlacementConfig without kind")),V;if(X.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||X.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!X.adTimeOffset||!X.adTimeOffset.offsetStartMilliseconds)return g.Ni(Error("malformed AdPlacementConfig")),V;V.MIDROLL_POS=XP($c(Math.round(GV(X.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else V.MIDROLL_POS=XP($c("0"));return V}; +XP=function(X){return{toString:function(){return X()}}}; +EA8=function(X,c,V){function G(h,A){(A=V[A])&&(L[h]=A)} +function n(h,A){(A=V[A])&&(L[h]=d(A))} +if(!V||g.tN(V))return X;var L=Object.assign({},X),d=c?encodeURIComponent:function(h){return h}; +n("DV_VIEWABILITY","doubleVerifyViewability");n("IAS_VIEWABILITY","integralAdsViewability");n("MOAT_INIT","moatInit");n("MOAT_VIEWABILITY","moatViewability");G("GOOGLE_VIEWABILITY","googleViewability");G("VIEWABILITY","viewability");return L}; +$9l=function(X,c,V,G){c.CPN=XP(function(){var n;(n=X.getVideoData(1))?n=n.clientPlaybackNonce:(g.UQ(Error("Video data is null.")),n=null);return n}); +c.AD_MT=XP(function(){if(G!=null)var n=G;else{var L=V;X.j().S("html5_ssap_use_cpn_to_get_time")||(L=void 0);if(X.j().S("enable_h5_shorts_ad_fill_ad_mt_macro")||X.j().S("enable_desktop_discovery_pings_ad_mt_macro")||g.CL(X.j())){var d=X.getPresentingPlayerType(!0),h;n=((h=X.getVideoData(d))==null?0:h.isAd())?rzD(X,d,L):0}else n=rzD(X,2,L)}return Math.round(Math.max(0,n*1E3)).toString()}); +c.MT=XP(function(){return Math.round(Math.max(0,X.getCurrentTime(1,!1)*1E3)).toString()}); +c.P_H=XP(function(){return X.CS().Nm().height.toString()}); +c.P_W=XP(function(){return X.CS().Nm().width.toString()}); +c.PV_H=XP(function(){return X.CS().getVideoContentRect().height.toString()}); +c.PV_W=XP(function(){return X.CS().getVideoContentRect().width.toString()})}; +W1s=function(X){X.CONN=XP($c("0"));X.WT=XP(function(){return Date.now().toString()})}; +rzD=function(X,c,V){return V!==void 0?X.getCurrentTime(c,!1,V):X.getCurrentTime(c,!1)}; +QUw=function(){}; +ZPl=function(X,c,V,G,n){var L,d,h,A,Y,H,a,W,w,F,Z,v,e;g.O(function(m){switch(m.J){case 1:L=!!c.scrubReferrer;d=g.l_(c.baseUrl,EA8(V,L,G));h={};if(!c.headers){m.Wl(2);break}A=X.X();if(!A.J){Y=A.getValue();m.Wl(3);break}return g.b(m,A.J,4);case 4:Y=m.G;case 3:H=Y;a=g.r(c.headers);for(W=a.next();!W.done;W=a.next())switch(w=W.value,w.headerType){case "VISITOR_ID":g.qK("VISITOR_DATA")&&(h["X-Goog-Visitor-Id"]=g.qK("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.qK("EOM_VISITOR_DATA")&&(h["X-Goog-EOM-Visitor-Id"]= +g.qK("EOM_VISITOR_DATA"));break;case "USER_AUTH":H&&(h.Authorization="Bearer "+H);break;case "PLUS_PAGE_ID":(F=X.Z())&&(h["X-Goog-PageId"]=F);break;case "AUTH_USER":Z=X.J();!H&&Z&&(h["X-Goog-AuthUser"]=Z);break;case "DATASYNC_ID":if(v=void 0,(v=X.U())==null?0:v.lc("enable_datasync_id_header_in_web_vss_pings"))e=X.G(),H3(d)&&g.qK("LOGGED_IN")&&e&&(h["X-YouTube-DataSync-Id"]=e)}"X-Goog-EOM-Visitor-Id"in h&&"X-Goog-Visitor-Id"in h&&delete h["X-Goog-Visitor-Id"];case 2:g.Bi(d,void 0,L,Object.keys(h).length!== +0?h:void 0,"",!0,n),g.ZS(m)}})}; +x9l=function(X,c,V,G,n){this.X=X;this.Z=c;this.J=V;this.G=G;this.U=n}; +vAl=function(X,c){this.J=X;this.Xh=c}; +cx=function(X,c,V,G,n,L,d){var h=h===void 0?new x9l(function(){var A=X.j(),Y=X.getVideoData(1);return g.LW(A,Y?g.T2(Y):"")},function(){return X.j().pageId},function(){return X.j().kO},function(){var A; +return(A=X.j().datasyncId)!=null?A:""},function(){return X.j().experiments}):h; +this.W=X;this.G=c;this.F2=V;this.Sv=G;this.ra=n;this.Xh=L;this.lj=d;this.X=h;this.Ad=null;this.J=new Map;this.U=new vAl(h,this.Xh)}; +oAj=function(X,c,V,G,n){var L=Og(X.G.get(),V);L?(V=Mf(X,kOL(L),L,void 0,void 0,G),c.hasOwnProperty("baseUrl")?X.X.send(c,V):X.U.send(c,V,{},n)):FX("Trying to ping from an unknown layout",void 0,void 0,{layoutId:V})}; +eSl=function(X,c,V,G,n,L){G=G===void 0?[]:G;var d=Og(X.G.get(),c);if(d){var h=X.F2.get().Cl(c,V),A=Mf(X,kOL(d),d,n,L);G.forEach(function(Y,H){Y.baseUrl&&(X.U.send(Y.baseUrl,A,h,Y.attributionSrcMode),Y.serializedAdPingMetadata&&X.ra.D2("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,d,new LSS(Y,H),void 0,void 0,d.adLayoutLoggingData))})}else FX("Trying to track from an unknown layout.",void 0,void 0,{layoutId:c, +trackingType:V})}; +JC=function(X,c){X.W.sendVideoStatsEngageEvent(c,void 0,2)}; +G3=function(X,c){g.a0("adsClientStateChange",c)}; +eWD=function(X,c){X.J.has(c.iJ())?FX("Trying to register an existing AdErrorInfoSupplier."):X.J.set(c.iJ(),c)}; +Jz8=function(X,c){X.J.delete(c.iJ())||FX("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; +dE=function(X,c,V){typeof V==="string"?X.W.getVideoData(1).l0(c,V):X.W.getVideoData(1).Oy(c,V)}; +kOL=function(X){var c=jR(X.clientMetadata,"metadata_type_ad_placement_config");X=jR(X.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:c,xb:X}}; +Mf=function(X,c,V,G,n,L){var d=V?m9O(X):{},h=V?RWs(X,V.layoutId):{},A=bPU(X),Y,H=n!=null?n:(Y=Zq(X.Sv.get(),2))==null?void 0:Y.clientPlaybackNonce;n=void 0;if(V){var a;if((a=X.lj.J.get(V.layoutId))==null?0:a.hU)n=V.layoutId}a={};X=Object.assign({},wX2(X.W,n,G),F1D(c.adPlacementConfig,(V==null?void 0:V.renderingContent)!==void 0),h,d,A,(a.FINAL=XP(function(){return"1"}),a.AD_CPN=XP(function(){return H||""}),a)); +(V==null?void 0:V.renderingContent)!==void 0||(X.SLOT_POS=XP(function(){return(c.xb||0).toString()})); +V={};L=Object.assign({},X,L);X=g.r(Object.values(tCl));for(G=X.next();!G.done;G=X.next())G=G.value,d=L[G],d!=null&&d.toString()!=null&&(V[G]=d.toString());return V}; +m9O=function(X){var c={},V,G=(V=X.Ad)==null?void 0:V.XK/1E3;G!=null&&(c.SURVEY_ELAPSED_MS=XP(function(){return Math.round(G*1E3).toString()})); +c.SURVEY_LOCAL_TIME_EPOCH_S=XP(function(){return Math.round(Date.now()/1E3).toString()}); +return c}; +RWs=function(X,c){X=X.J.get(c);if(!X)return{};X=X.iT();if(!X)return{};c={};return c.YT_ERROR_CODE=X.qO.toString(),c.ERRORCODE=X.wR.toString(),c.ERROR_MSG=X.errorMessage,c}; +bPU=function(X){var c={},V=X.W.getVideoData(1);c.ASR=XP(function(){var G;return(G=V==null?void 0:V.BL)!=null?G:null}); +c.EI=XP(function(){var G;return(G=V==null?void 0:V.eventId)!=null?G:null}); +return c}; +VM=function(X,c,V){g.I.call(this);this.W=X;this.H3=c;this.Xh=V;this.listeners=[];this.cI=null;this.q3=new Map;c=new g.U3(this);g.N(this,c);c.L(X,"videodatachange",this.pWR);c.L(X,"serverstitchedvideochange",this.R82);this.Os=Zq(this)}; +Zq=function(X,c){var V=X.W.getVideoData(c);return V?X.Q$(V,c||X.W.getPresentingPlayerType(!0)):null}; +OP1=function(X,c,V){var G=X.Q$(c,V);X.Os=G;X.listeners.forEach(function(n){n.Tk(G)})}; +lKs=function(X){switch(X){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7}}; +G0=function(X,c,V){g.I.call(this);this.W=X;this.Sv=c;this.Xh=V;this.listeners=[];this.mA=[];this.J=function(){FX("Called 'doUnlockPreroll' before it's initialized.")}; +c=new tj(this);V=new g.U3(this);g.N(this,V);g.N(this,c);c.L(X,"progresssync",this.rTK);c.L(X,"presentingplayerstatechange",this.B$c);c.L(X,"fullscreentoggled",this.onFullscreenToggled);c.L(X,"onVolumeChange",this.onVolumeChange);c.L(X,"minimized",this.ZO);c.L(X,"overlayvisibilitychange",this.iX);c.L(X,"shortsadswipe",this.nY);c.L(X,"resize",this.Ky);V.L(X,g.jw("appad"),this.bX)}; +nh=function(X){Kq(X.Xh.get())||X.J()}; +MCt=function(X,c){X.mA=X.mA.filter(function(V){return V!==c})}; +Lh=function(X,c,V){return X.getCurrentTimeSec(c,V)}; +gAL=function(X,c){var V;c=(V=X.Sv.get().q3.get(c))!=null?V:null;if(c===null)return FX("Expected ad video start time on playback timeline"),0;X=X.W.getCurrentTime(2,!0);return X0){var L=c.end.toString();n.forEach(function(d){(d=d.config&&d.config.adPlacementConfig)&&d.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&d.adTimeOffset&&d.adTimeOffset.offsetEndMilliseconds==="-1"&&d.adTimeOffset.offsetEndMilliseconds!==L&&(d.adTimeOffset.offsetEndMilliseconds=L)}); +G.map(function(d){return g.T(d,uS)}).forEach(function(d){var h; +(d=d==null?void 0:(h=d.slotEntryTrigger)==null?void 0:h.mediaTimeRangeTrigger)&&d.offsetEndMilliseconds==="-1"&&(d.offsetEndMilliseconds=L)})}return{Lu:n, +adSlots:G,FN:!1,ssdaiAdsConfig:X.ssdaiAdsConfig}}; +Yx=function(X){g.I.call(this);this.W=X;this.listeners=[];this.J=new tj(this);g.N(this,this.J);this.J.L(this.W,"aduxclicked",this.onAdUxClicked);this.J.L(this.W,"aduxmouseover",this.KV);this.J.L(this.W,"aduxmouseout",this.yv);this.J.L(this.W,"muteadaccepted",this.Rf2)}; +U9U=function(X,c,V){c=g.Rt(c,function(G){return new Kst(G,V,G.id)}); +X.W.z_("onAdUxUpdate",c)}; +jc=function(X,c){X=g.r(X.listeners);for(var V=X.next();!V.done;V=X.next())c(V.value)}; +Hx=function(X,c){this.G=X;this.U=c===void 0?!1:c;this.J={}}; +Tms=function(X,c){var V=X.startSecs+X.VL;V=V<=0?null:V;if(V===null)return null;switch(X.event){case "start":case "continue":case "stop":break;case "predictStart":if(c)break;return null;default:return null}c=Math.max(X.startSecs,0);return{rY:new ek(c,V),GF2:new Tu(c,V-c,X.context,X.identifier,X.event,X.J)}}; +umj=function(){this.J=[]}; +veL=function(X,c,V){var G=g.hE(X.J,c);if(G>=0)return c;c=-G-1;return c>=X.J.length||X.J[c]>V?null:X.J[c]}; +a$=function(X,c,V){g.I.call(this);this.W=X;this.Xh=c;this.t7=V;this.listeners=[];this.X=!1;this.NH=[];this.J=null;this.Z=new Hx(this,nAO(c.get()));this.U=new umj;this.G=null}; +Pql=function(X,c){X.NH.push(c);for(var V=!1,G=g.r(X.listeners),n=G.next();!n.done;n=G.next())V=n.value.QW(c)||V;X.X=V;sB(X.Xh.get())&&dE(X.t7.get(),"onci","cpi."+c.identifier+";cpe."+c.event+";cps."+c.startSecs+";cbi."+V)}; +Bml=function(X,c){G3(X.t7.get(),{cuepointTrigger:{event:zWS(c.event),cuepointId:c.identifier,totalCueDurationMs:c.VL*1E3,playheadTimeMs:c.J,cueStartTimeMs:c.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:X.W.getVideoData(1).clientPlaybackNonce}})}; +zWS=function(X){switch(X){case "unknown":return"CUEPOINT_EVENT_UNKNOWN";case "start":return"CUEPOINT_EVENT_START";case "continue":return"CUEPOINT_EVENT_CONTINUE";case "stop":return"CUEPOINT_EVENT_STOP";case "predictStart":return"CUEPOINT_EVENT_PREDICT_START";default:return VB(X,"Unexpected cuepoint event")}}; +$x=function(X){this.W=X}; +K1D=function(X,c){X.W.cueVideoByPlayerVars(c,2)}; +Wx=function(X){this.W=X}; +w7=function(X){this.W=X}; +sUU=function(X){switch(X){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7;default:VB(X,"unknown transitionReason")}}; +Cql=function(X){this.W=X}; +D9D=function(X,c,V,G,n){g.I.call(this);var L=this,d=Ko(function(){return new iQ(L.Xh)}); +g.N(this,d);var h=Ko(function(){return new Xk(d,L.Xh)}); +g.N(this,h);var A=Ko(function(){return new bQ}); +g.N(this,A);var Y=Ko(function(){return new m7(X)}); +g.N(this,Y);var H=Ko(function(){return new cV(d,h,L.Xh)}); +g.N(this,H);var a=Ko(function(){return new d1}); +g.N(this,a);this.X8=Ko(function(){return new Yx(c)}); +g.N(this,this.X8);this.cP=Ko(function(){return new Co(n)}); +g.N(this,this.cP);this.wm=Ko(function(){return new us(c)}); +g.N(this,this.wm);this.b3=Ko(function(){return new Pn(c)}); +g.N(this,this.b3);this.CM=Ko(function(){return new $x(c)}); +g.N(this,this.CM);this.oy=Ko(function(){return new zj(c)}); +g.N(this,this.oy);this.Xh=Ko(function(){return new Bn(c)}); +g.N(this,this.Xh);var W=Ko(function(){return new AT(G)}); +g.N(this,W);var w=Ko(function(){return new rG(L.Xh)}); +g.N(this,w);this.b_=Ko(function(){return new Wx(c)}); +g.N(this,this.b_);this.FJ=Ko(function(){return new iL}); +g.N(this,this.FJ);this.Sv=Ko(function(){return new VM(c,a,L.Xh)}); +g.N(this,this.Sv);var F=UB({Sv:this.Sv,Xh:this.Xh,X4:w}),Z=F.context,v=F.lj;this.ra=F.ra;this.VC=Ko(function(){return new a$(c,L.Xh,L.t7)}); +g.N(this,this.VC);this.Iy=Ko(function(){return new w7(c)}); +g.N(this,this.Iy);this.mS=Ko(function(){return new G0(c,L.Sv,L.Xh)}); +g.N(this,this.mS);F=Ko(function(){return new Q6(d,H,h,L.Xh,w,"SLOT_TYPE_ABOVE_FEED",L.mS,L.Pc,L.nJ)}); +g.N(this,F);this.Tr=Ko(function(){return new qg(L.Xh)}); +this.F2=Ko(function(){return new DW(L.mS,c,L.Xh)}); +g.N(this,this.F2);this.t7=Ko(function(){return new cx(c,A,L.F2,L.Sv,L.ra,L.Xh,v)}); +g.N(this,this.t7);this.z7=new e0(oC,FP,function(m,t,f,U){return V6(h.get(),m,t,f,U)},Y,H,h,w,this.Xh,this.Sv); +g.N(this,this.z7);this.w$=new Jo(Y,F,V,this.Xh,X,this.Sv,this.mS,this.wm);g.N(this,this.w$);var e=new Tj(c,this.w$,this.mS,this.Sv,this.VC);this.Db=Ko(function(){return e}); +this.SM=e;this.Pc=new vq(Y,H,this.Db,this.VC,this.mS,this.Xh,this.t7,this.Iy);g.N(this,this.Pc);this.d6=new RC(Y,H,this.b3,this.Db,Z);g.N(this,this.d6);this.QC=new TA(this.Xh,Y,H,F,this.Sv,this.d6,V);g.N(this,this.QC);this.Ug=Ko(function(){return new EF(W,h,w,L.Xh,L.t7,L.mS,L.Iy)}); +g.N(this,this.Ug);this.WW=Ko(function(){return new r2}); +g.N(this,this.WW);this.N$=new pm(X,this.X8,this.Xh);g.N(this,this.N$);this.ME=new IC(X);g.N(this,this.ME);this.Ku=new NI(X);g.N(this,this.Ku);this.Ty=new TP(X,this.Db,Z);g.N(this,this.Ty);this.lH=new uQ(X,this.b3,this.mS,this.Sv,Z);g.N(this,this.lH);this.Uz=new Pq(X,this.Sv);g.N(this,this.Uz);this.nJ=new Km(X,this.VC,this.mS,this.t7,this.Db);g.N(this,this.nJ);this.xM=new zP(X);g.N(this,this.xM);this.eQ=new S0(X);g.N(this,this.eQ);this.jZ=new Bq(X);g.N(this,this.jZ);this.Pq=new Dy(X);g.N(this,this.Pq); +this.eQ=new S0(X);g.N(this,this.eQ);this.Ii=Ko(function(){return new lQ}); +g.N(this,this.Ii);this.V0=Ko(function(){return new MI(L.mS)}); +g.N(this,this.V0);this.xX=Ko(function(){return new Kd1(L.X8,L.t7,X,A,L.F2)}); +g.N(this,this.xX);this.RT=Ko(function(){return new Gm(L.QC,Y,d)}); +g.N(this,this.RT);this.x3=Ko(function(){return new dp(L.Xh,L.t7,L.xM,L.F2)}); +g.N(this,this.x3);this.lw=Ko(function(){return new aD(X,L.eQ,L.xM,L.Sv,L.Iy,L.mS,L.t7,a,L.VC,L.F2,L.Tr,L.CM,L.b3,L.wm,L.oy,L.cP,L.b_,L.Xh,A,Z,v)}); +g.N(this,this.lw);this.RV=Ko(function(){return new y0l(L.mS,L.t7,L.cP,L.Xh,L.F2,L.Sv)}); +g.N(this,this.RV);this.ZI=Ko(function(){return new sGs(L.X8,L.mS,L.t7,A,L.F2,L.Ku,L.Pq,L.cP,L.Xh,V)}); +g.N(this,this.ZI);this.nA=Ko(function(){return new s_1(L.X8,L.t7,A)}); +g.N(this,this.nA);this.V_=new hT(X,this.FJ,d);g.N(this,this.V_);this.bj={kK:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.QC],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Pc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.z7],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.w$],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.d6]]),Go:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ug],["SLOT_TYPE_ABOVE_FEED",this.WW],["SLOT_TYPE_FORECASTING",this.WW], +["SLOT_TYPE_IN_PLAYER",this.WW],["SLOT_TYPE_PLAYER_BYTES",this.WW],["SLOT_TYPE_PLAYER_UNDERLAY",this.WW],["SLOT_TYPE_PLAYBACK_TRACKING",this.WW],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.WW]]),aC:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.N$],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.N$],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.ME],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.ME],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.ME],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.ME],["TRIGGER_TYPE_SLOT_ID_ENTERED", +this.ME],["TRIGGER_TYPE_SLOT_ID_EXITED",this.ME],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.ME],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.ME],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.ME],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.ME],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.ME],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Ku],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Ty],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.lH],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", +this.lH],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.lH],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.lH],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.lH],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.lH],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.lH],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Uz],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Uz],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.xM],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", +this.Ty],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.jZ],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.Pq],["TRIGGER_TYPE_AD_BREAK_STARTED",this.eQ],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.nJ],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.nJ],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.nJ],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.nJ],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.nJ]]),bZ:new Map([["SLOT_TYPE_ABOVE_FEED",this.Ii], +["SLOT_TYPE_AD_BREAK_REQUEST",this.Ii],["SLOT_TYPE_FORECASTING",this.Ii],["SLOT_TYPE_IN_PLAYER",this.Ii],["SLOT_TYPE_PLAYER_BYTES",this.V0],["SLOT_TYPE_PLAYER_UNDERLAY",this.Ii],["SLOT_TYPE_PLAYBACK_TRACKING",this.Ii],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Ii]]),d0:new Map([["SLOT_TYPE_ABOVE_FEED",this.xX],["SLOT_TYPE_AD_BREAK_REQUEST",this.RT],["SLOT_TYPE_FORECASTING",this.x3],["SLOT_TYPE_PLAYER_BYTES",this.lw],["SLOT_TYPE_PLAYBACK_TRACKING",this.RV],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", +this.RV],["SLOT_TYPE_IN_PLAYER",this.ZI],["SLOT_TYPE_PLAYER_UNDERLAY",this.nA]])};this.listeners=[A.get()];this.Zu={QC:this.QC,D_:this.Xh.get(),gy:this.cP.get(),WX:this.mS.get(),w$:this.w$,De:d.get(),q0:this.FJ.get(),aX:this.N$,MQ:A.get(),kt:this.Sv.get()}}; +Scj=function(X,c,V,G,n){g.I.call(this);var L=this,d=Ko(function(){return new iQ(L.Xh)}); +g.N(this,d);var h=Ko(function(){return new Xk(d,L.Xh)}); +g.N(this,h);var A=Ko(function(){return new bQ}); +g.N(this,A);var Y=Ko(function(){return new m7(X)}); +g.N(this,Y);var H=Ko(function(){return new cV(d,h,L.Xh)}); +g.N(this,H);var a=Ko(function(){return new d1}); +g.N(this,a);this.X8=Ko(function(){return new Yx(c)}); +g.N(this,this.X8);this.cP=Ko(function(){return new Co(n)}); +g.N(this,this.cP);this.wm=Ko(function(){return new us(c)}); +g.N(this,this.wm);this.b3=Ko(function(){return new Pn(c)}); +g.N(this,this.b3);this.CM=Ko(function(){return new $x(c)}); +g.N(this,this.CM);this.oy=Ko(function(){return new zj(c)}); +g.N(this,this.oy);this.Xh=Ko(function(){return new Bn(c)}); +g.N(this,this.Xh);var W=Ko(function(){return new AT(G)}); +g.N(this,W);var w=Ko(function(){return new rG(L.Xh)}); +g.N(this,w);var F=Ko(function(){return new Q6(d,H,h,L.Xh,w,null,null,L.Pc,L.nJ)}); +g.N(this,F);this.b_=Ko(function(){return new Wx(c)}); +g.N(this,this.b_);this.FJ=Ko(function(){return new iL}); +g.N(this,this.FJ);this.Sv=Ko(function(){return new VM(c,a,L.Xh)}); +g.N(this,this.Sv);var Z=UB({Sv:this.Sv,Xh:this.Xh,X4:w}),v=Z.context,e=Z.lj;this.ra=Z.ra;this.VC=Ko(function(){return new a$(c,L.Xh,L.t7)}); +this.mS=Ko(function(){return new G0(c,L.Sv,L.Xh)}); +g.N(this,this.mS);this.F2=Ko(function(){return new DW(L.mS,c,L.Xh)}); +g.N(this,this.F2);this.t7=Ko(function(){return new cx(c,A,L.F2,L.Sv,L.ra,L.Xh,e)}); +g.N(this,this.t7);this.Tr=Ko(function(){return new qg(L.Xh)}); +g.N(this,this.Tr);this.z7=new e0(oC,FP,function(t,f,U,C){return V6(h.get(),t,f,U,C)},Y,H,h,w,this.Xh,this.Sv); +g.N(this,this.z7);this.w$=new Jo(Y,F,V,this.Xh,X,this.Sv,this.mS,this.wm);g.N(this,this.w$);var m=new Tj(c,this.w$,this.mS,this.Sv,this.VC);this.Db=Ko(function(){return m}); +this.SM=m;this.Pc=new vq(Y,H,this.Db,this.VC,this.mS,this.Xh,this.t7);g.N(this,this.Pc);this.d6=new RC(Y,H,this.b3,this.Db,v);g.N(this,this.d6);this.QC=new TA(this.Xh,Y,H,F,this.Sv,this.d6,V);g.N(this,this.QC);this.Ug=Ko(function(){return new EF(W,h,w,L.Xh,L.t7,L.mS)}); +g.N(this,this.Ug);this.WW=Ko(function(){return new r2}); +g.N(this,this.WW);this.N$=new pm(X,this.X8,this.Xh);g.N(this,this.N$);this.ME=new IC(X);g.N(this,this.ME);this.Ku=new NI(X);g.N(this,this.Ku);this.Ty=new TP(X,this.Db,v);g.N(this,this.Ty);this.lH=new uQ(X,this.b3,this.mS,this.Sv,v);g.N(this,this.lH);this.xM=new zP(X);g.N(this,this.xM);this.jZ=new Bq(X);g.N(this,this.jZ);this.Pq=new Dy(X);g.N(this,this.Pq);this.Iy=Ko(function(){return new w7(c)}); +g.N(this,this.Iy);this.eQ=new S0(X);g.N(this,this.eQ);this.nJ=new Km(X,this.VC,this.mS,this.t7,this.Db);g.N(this,this.nJ);this.Ii=Ko(function(){return new lQ}); +g.N(this,this.Ii);this.V0=Ko(function(){return new MI(L.mS)}); +g.N(this,this.V0);this.RT=Ko(function(){return new Gm(L.QC,Y,d)}); +g.N(this,this.RT);this.x3=Ko(function(){return new dp(L.Xh,L.t7,L.xM,L.F2)}); +g.N(this,this.x3);this.ZI=Ko(function(){return new ClS(L.X8,L.mS,L.t7,A,L.F2,L.Ku,L.Pq,L.cP,L.Xh,V)}); +g.N(this,this.ZI);this.lw=Ko(function(){return new $2(X,L.eQ,L.xM,L.t7,L.F2,L.Tr,L.CM,L.Sv,L.mS,L.b3,L.wm,L.oy,L.cP,L.b_,L.Xh,L.Iy,v,e)}); +g.N(this,this.lw);this.V_=new hT(X,this.FJ,d);g.N(this,this.V_);this.bj={kK:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.QC],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Pc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.z7],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.w$],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.d6]]),Go:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ug],["SLOT_TYPE_FORECASTING",this.WW],["SLOT_TYPE_IN_PLAYER",this.WW], +["SLOT_TYPE_PLAYER_BYTES",this.WW]]),aC:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.N$],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.ME],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.ME],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.ME],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.ME],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.ME],["TRIGGER_TYPE_SLOT_ID_EXITED",this.ME],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.ME],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.ME],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.ME], +["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.ME],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Ku],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Ty],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.lH],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.lH],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.lH],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.xM],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ty],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.jZ],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", +this.Pq],["TRIGGER_TYPE_AD_BREAK_STARTED",this.eQ],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.nJ],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.nJ],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.nJ],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.nJ],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.nJ]]),bZ:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ii],["SLOT_TYPE_FORECASTING",this.Ii],["SLOT_TYPE_IN_PLAYER",this.Ii],["SLOT_TYPE_PLAYER_BYTES",this.V0]]), +d0:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.RT],["SLOT_TYPE_FORECASTING",this.x3],["SLOT_TYPE_IN_PLAYER",this.ZI],["SLOT_TYPE_PLAYER_BYTES",this.lw]])};this.listeners=[A.get()];this.Zu={QC:this.QC,D_:this.Xh.get(),gy:this.cP.get(),WX:this.mS.get(),w$:this.w$,De:d.get(),q0:this.FJ.get(),aX:this.N$,MQ:A.get(),kt:this.Sv.get()}}; +iPU=function(X,c,V,G,n){g.I.call(this);var L=this,d=Ko(function(){return new iQ(L.Xh)}); +g.N(this,d);var h=Ko(function(){return new Xk(d,L.Xh)}); +g.N(this,h);var A=Ko(function(){return new bQ}); +g.N(this,A);var Y=Ko(function(){return new m7(X)}); +g.N(this,Y);var H=Ko(function(){return new cV(d,h,L.Xh)}); +g.N(this,H);var a=Ko(function(){return new d1}); +g.N(this,a);this.X8=Ko(function(){return new Yx(c)}); +g.N(this,this.X8);this.cP=Ko(function(){return new Co(n)}); +g.N(this,this.cP);this.wm=Ko(function(){return new us(c)}); +g.N(this,this.wm);this.b3=Ko(function(){return new Pn(c)}); +g.N(this,this.b3);this.CM=Ko(function(){return new $x(c)}); +g.N(this,this.CM);this.oy=Ko(function(){return new zj(c)}); +g.N(this,this.oy);this.Xh=Ko(function(){return new Bn(c)}); +g.N(this,this.Xh);var W=Ko(function(){return new AT(G)}); +g.N(this,W);var w=Ko(function(){return new rG(L.Xh)}); +g.N(this,w);var F=Ko(function(){return new Q6(d,H,h,L.Xh,w,null,null,null,null)}); +g.N(this,F);this.b_=Ko(function(){return new Wx(c)}); +g.N(this,this.b_);this.Sv=Ko(function(){return new VM(c,a,L.Xh)}); +g.N(this,this.Sv);var Z=UB({Sv:this.Sv,Xh:this.Xh,X4:w}),v=Z.context,e=Z.lj;this.ra=Z.ra;this.mS=Ko(function(){return new G0(c,L.Sv,L.Xh)}); +g.N(this,this.mS);this.F2=Ko(function(){return new DW(L.mS,c,L.Xh)}); +g.N(this,this.F2);this.t7=Ko(function(){return new cx(c,A,L.F2,L.Sv,L.ra,L.Xh,e)}); +g.N(this,this.t7);this.Tr=Ko(function(){return new qg(L.Xh)}); +g.N(this,this.Tr);this.z7=new e0(oC,FP,function(t,f,U,C){return V6(h.get(),t,f,U,C)},Y,H,h,w,this.Xh,this.Sv); +g.N(this,this.z7);this.w$=new Jo(Y,F,V,this.Xh,X,this.Sv,this.mS,this.wm);g.N(this,this.w$);var m=new Tj(c,this.w$,this.mS,this.Sv);this.Db=Ko(function(){return m}); +this.SM=m;this.d6=new RC(Y,H,this.b3,this.Db,v);g.N(this,this.d6);this.QC=new TA(this.Xh,Y,H,F,this.Sv,this.d6,V);g.N(this,this.QC);this.Ug=Ko(function(){return new EF(W,h,w,L.Xh,L.t7,L.mS)}); +g.N(this,this.Ug);this.WW=Ko(function(){return new r2}); +g.N(this,this.WW);this.N$=new pm(X,this.X8,this.Xh);g.N(this,this.N$);this.ME=new IC(X);g.N(this,this.ME);this.Ty=new TP(X,this.Db,v);g.N(this,this.Ty);this.lH=new uQ(X,this.b3,this.mS,this.Sv,v);g.N(this,this.lH);this.xM=new zP(X);g.N(this,this.xM);this.jZ=new Bq(X);g.N(this,this.jZ);this.Iy=Ko(function(){return new w7(c)}); +g.N(this,this.Iy);this.eQ=new S0(X);g.N(this,this.eQ);this.Ii=Ko(function(){return new lQ}); +g.N(this,this.Ii);this.V0=Ko(function(){return new MI(L.mS)}); +g.N(this,this.V0);this.RT=Ko(function(){return new Gm(L.QC,Y,d)}); +g.N(this,this.RT);this.x3=Ko(function(){return new dp(L.Xh,L.t7,L.xM,L.F2)}); +g.N(this,this.x3);this.LH=Ko(function(){return new dAl(L.X8,L.mS,L.t7,A,V,L.Xh)}); +g.N(this,this.LH);this.lw=Ko(function(){return new $2(X,L.eQ,L.xM,L.t7,L.F2,L.Tr,L.CM,L.Sv,L.mS,L.b3,L.wm,L.oy,L.cP,L.b_,L.Xh,L.Iy,v,e)}); +g.N(this,this.lw);this.bj={kK:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.QC],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.z7],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.w$],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.d6]]),Go:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ug],["SLOT_TYPE_FORECASTING",this.WW],["SLOT_TYPE_IN_PLAYER",this.WW],["SLOT_TYPE_PLAYER_BYTES",this.WW]]),aC:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.N$],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", +this.ME],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.ME],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.ME],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.ME],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.ME],["TRIGGER_TYPE_SLOT_ID_EXITED",this.ME],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.ME],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.ME],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.ME],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Ty],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.lH],["TRIGGER_TYPE_MEDIA_TIME_RANGE", +this.lH],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.xM],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ty],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.jZ],["TRIGGER_TYPE_AD_BREAK_STARTED",this.eQ]]),bZ:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ii],["SLOT_TYPE_ABOVE_FEED",this.Ii],["SLOT_TYPE_FORECASTING",this.Ii],["SLOT_TYPE_IN_PLAYER",this.Ii],["SLOT_TYPE_PLAYER_BYTES",this.V0]]),d0:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.RT],["SLOT_TYPE_FORECASTING",this.x3],["SLOT_TYPE_IN_PLAYER", +this.LH],["SLOT_TYPE_PLAYER_BYTES",this.lw]])};this.listeners=[A.get()];this.Zu={QC:this.QC,D_:this.Xh.get(),gy:this.cP.get(),WX:this.mS.get(),w$:this.w$,De:d.get(),q0:null,aX:this.N$,MQ:A.get(),kt:this.Sv.get()}}; +qcD=function(X,c,V,G,n){g.I.call(this);var L=this,d=Ko(function(){return new iQ(L.Xh)}); +g.N(this,d);var h=Ko(function(){return new Xk(d,L.Xh)}); +g.N(this,h);var A=Ko(function(){return new bQ}); +g.N(this,A);var Y=Ko(function(){return new m7(X)}); +g.N(this,Y);var H=Ko(function(){return new cV(d,h,L.Xh)}); +g.N(this,H);var a=Ko(function(){return new d1}); +g.N(this,a);this.c5=Ko(function(){return new Cql(c)}); +g.N(this,this.c5);this.X8=Ko(function(){return new Yx(c)}); +g.N(this,this.X8);this.cP=Ko(function(){return new Co(n)}); +g.N(this,this.cP);this.wm=Ko(function(){return new us(c)}); +g.N(this,this.wm);this.b3=Ko(function(){return new Pn(c)}); +g.N(this,this.b3);this.CM=Ko(function(){return new $x(c)}); +g.N(this,this.CM);this.oy=Ko(function(){return new zj(c)}); +g.N(this,this.oy);this.Xh=Ko(function(){return new Bn(c)}); +g.N(this,this.Xh);var W=Ko(function(){return new AT(G)}); +g.N(this,W);var w=Ko(function(){return new rG(L.Xh)}); +g.N(this,w);var F=Ko(function(){return new Q6(d,H,h,L.Xh,w,null,null,null,null)}); +g.N(this,F);this.b_=Ko(function(){return new Wx(c)}); +g.N(this,this.b_);this.Sv=Ko(function(){return new VM(c,a,L.Xh)}); +g.N(this,this.Sv);var Z=UB({Sv:this.Sv,Xh:this.Xh,X4:w}),v=Z.context,e=Z.lj;this.ra=Z.ra;this.mS=Ko(function(){return new G0(c,L.Sv,L.Xh)}); +g.N(this,this.mS);this.F2=Ko(function(){return new DW(L.mS,c,L.Xh)}); +g.N(this,this.F2);this.t7=Ko(function(){return new cx(c,A,L.F2,L.Sv,L.ra,L.Xh,e)}); +g.N(this,this.t7);this.Tr=Ko(function(){return new qg(L.Xh)}); +g.N(this,this.Tr);this.z7=new e0(OC2,FP,function(t,f,U,C){return Xv2(h.get(),t,f,U,C)},Y,H,h,w,this.Xh,this.Sv); +g.N(this,this.z7);this.w$=new Jo(Y,F,V,this.Xh,X,this.Sv,this.mS,this.wm);g.N(this,this.w$);var m=new Tj(c,this.w$,this.mS,this.Sv);this.Db=Ko(function(){return m}); +this.SM=m;this.d6=new RC(Y,H,this.b3,this.Db,v);g.N(this,this.d6);this.QC=new TA(this.Xh,Y,H,F,this.Sv,this.d6,V);g.N(this,this.QC);this.Ug=Ko(function(){return new EF(W,h,w,L.Xh,L.t7,L.mS)}); +g.N(this,this.Ug);this.WW=Ko(function(){return new r2}); +g.N(this,this.WW);this.N$=new pm(X,this.X8,this.Xh);g.N(this,this.N$);this.ME=new IC(X);g.N(this,this.ME);this.Ty=new TP(X,this.Db,v);g.N(this,this.Ty);this.lH=new uQ(X,this.b3,this.mS,this.Sv,v);g.N(this,this.lH);this.xM=new zP(X);g.N(this,this.xM);this.jZ=new Bq(X);g.N(this,this.jZ);this.Iy=Ko(function(){return new w7(c)}); +g.N(this,this.Iy);this.eQ=new S0(X);g.N(this,this.eQ);this.Ii=Ko(function(){return new lQ}); +g.N(this,this.Ii);this.V0=Ko(function(){return new MI(L.mS)}); +g.N(this,this.V0);this.RT=Ko(function(){return new Gm(L.QC,Y,d)}); +g.N(this,this.RT);this.x3=Ko(function(){return new dp(L.Xh,L.t7,L.xM,L.F2)}); +g.N(this,this.x3);this.lw=Ko(function(){return new $2(X,L.eQ,L.xM,L.t7,L.F2,L.Tr,L.CM,L.Sv,L.mS,L.b3,L.wm,L.oy,L.cP,L.b_,L.Xh,L.Iy,v,e)}); +g.N(this,this.lw);this.R_=Ko(function(){return new SrU(L.X8,L.mS,L.t7,A,L.c5,V,L.Sv)}); +g.N(this,this.R_);this.bj={kK:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.QC],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.z7],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.w$],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.d6]]),Go:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ug],["SLOT_TYPE_FORECASTING",this.WW],["SLOT_TYPE_IN_PLAYER",this.WW],["SLOT_TYPE_PLAYER_BYTES",this.WW]]),aC:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.N$],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", +this.ME],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.ME],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.ME],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.ME],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.ME],["TRIGGER_TYPE_SLOT_ID_EXITED",this.ME],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.ME],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.ME],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.ME],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Ty],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.lH],["TRIGGER_TYPE_MEDIA_TIME_RANGE", +this.lH],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.xM],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ty],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.jZ],["TRIGGER_TYPE_AD_BREAK_STARTED",this.eQ]]),bZ:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ii],["SLOT_TYPE_FORECASTING",this.Ii],["SLOT_TYPE_IN_PLAYER",this.Ii],["SLOT_TYPE_PLAYER_BYTES",this.V0]]),d0:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.RT],["SLOT_TYPE_FORECASTING",this.x3],["SLOT_TYPE_IN_PLAYER",this.R_],["SLOT_TYPE_PLAYER_BYTES", +this.lw]])};this.listeners=[A.get()];this.Zu={QC:this.QC,D_:this.Xh.get(),gy:this.cP.get(),WX:this.mS.get(),w$:this.w$,De:d.get(),q0:null,aX:this.N$,MQ:A.get(),kt:this.Sv.get()}}; +XsL=function(X,c,V,G,n){g.I.call(this);var L=this,d=Ko(function(){return new iQ(L.Xh)}); +g.N(this,d);var h=Ko(function(){return new Xk(d,L.Xh)}); +g.N(this,h);var A=Ko(function(){return new bQ}); +g.N(this,A);var Y=Ko(function(){return new m7(X)}); +g.N(this,Y);var H=Ko(function(){return new cV(d,h,L.Xh)}); +g.N(this,H);var a=Ko(function(){return new d1}); +g.N(this,a);this.c5=Ko(function(){return new Cql(c)}); +g.N(this,this.c5);this.X8=Ko(function(){return new Yx(c)}); +g.N(this,this.X8);this.cP=Ko(function(){return new Co(n)}); +g.N(this,this.cP);this.wm=Ko(function(){return new us(c)}); +g.N(this,this.wm);this.b3=Ko(function(){return new Pn(c)}); +g.N(this,this.b3);this.CM=Ko(function(){return new $x(c)}); +g.N(this,this.CM);this.oy=Ko(function(){return new zj(c)}); +g.N(this,this.oy);this.Xh=Ko(function(){return new Bn(c)}); +g.N(this,this.Xh);var W=Ko(function(){return new AT(G)}); +g.N(this,W);var w=Ko(function(){return new rG(L.Xh)}); +g.N(this,w);this.b_=Ko(function(){return new Wx(c)}); +g.N(this,this.b_);this.Sv=Ko(function(){return new VM(c,a,L.Xh)}); +g.N(this,this.Sv);var F=UB({Sv:this.Sv,Xh:this.Xh,X4:w}),Z=F.context,v=F.lj;this.ra=F.ra;this.VC=Ko(function(){return new a$(c,L.Xh,L.t7)}); +g.N(this,this.VC);this.Iy=Ko(function(){return new w7(c)}); +g.N(this,this.Iy);this.mS=Ko(function(){return new G0(c,L.Sv,L.Xh)}); +g.N(this,this.mS);F=Ko(function(){return new Q6(d,H,h,L.Xh,w,null,L.mS,L.Pc,L.nJ,3)}); +g.N(this,F);this.Tr=Ko(function(){return new qg(L.Xh)}); +this.F2=Ko(function(){return new DW(L.mS,c,L.Xh)}); +g.N(this,this.F2);this.t7=Ko(function(){return new cx(c,A,L.F2,L.Sv,L.ra,L.Xh,v)}); +g.N(this,this.t7);this.w$=new Jo(Y,F,V,this.Xh,X,this.Sv,this.mS,this.wm);g.N(this,this.w$);var e=new Tj(c,this.w$,this.mS,this.Sv,this.VC);this.Db=Ko(function(){return e}); +this.SM=e;this.z7=new e0(lIt,FP,function(m,t,f,U){return Xv2(h.get(),m,t,f,U)},Y,H,h,w,this.Xh,this.Sv); +g.N(this,this.z7);this.Pc=new vq(Y,H,this.Db,this.VC,this.mS,this.Xh,this.t7,this.Iy);g.N(this,this.Pc);this.d6=new RC(Y,H,this.b3,this.Db,Z);g.N(this,this.d6);this.QC=new TA(this.Xh,Y,H,F,this.Sv,this.d6,V);g.N(this,this.QC);this.Ug=Ko(function(){return new EF(W,h,w,L.Xh,L.t7,L.mS,L.Iy)}); +g.N(this,this.Ug);this.WW=Ko(function(){return new r2}); +g.N(this,this.WW);this.N$=new pm(X,this.X8,this.Xh);g.N(this,this.N$);this.ME=new IC(X);g.N(this,this.ME);this.Ty=new TP(X,this.Db,Z);g.N(this,this.Ty);this.lH=new uQ(X,this.b3,this.mS,this.Sv,Z);g.N(this,this.lH);this.Uz=new Pq(X,this.Sv);g.N(this,this.Uz);this.nJ=new Km(X,this.VC,this.mS,this.t7,this.Db);g.N(this,this.nJ);this.xM=new zP(X);g.N(this,this.xM);this.jZ=new Bq(X);g.N(this,this.jZ);this.eQ=new S0(X);g.N(this,this.eQ);this.Ii=Ko(function(){return new lQ}); +g.N(this,this.Ii);this.V0=Ko(function(){return new MI(L.mS)}); +g.N(this,this.V0);this.RT=Ko(function(){return new Gm(L.QC,Y,d)}); +g.N(this,this.RT);this.x3=Ko(function(){return new dp(L.Xh,L.t7,L.xM,L.F2)}); +g.N(this,this.x3);this.lw=Ko(function(){return new aD(X,L.eQ,L.xM,L.Sv,L.Iy,L.mS,L.t7,a,L.VC,L.F2,L.Tr,L.CM,L.b3,L.wm,L.oy,L.cP,L.b_,L.Xh,A,Z,v)}); +g.N(this,this.lw);this.ZI=Ko(function(){return new inD(L.X8,L.mS,L.t7,A,L.c5,V,L.Xh,L.Sv)}); +g.N(this,this.ZI);this.bj={kK:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.QC],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.Pc],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.z7],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.w$],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.d6]]),Go:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ug],["SLOT_TYPE_FORECASTING",this.WW],["SLOT_TYPE_IN_PLAYER",this.WW],["SLOT_TYPE_PLAYER_BYTES",this.WW]]),aC:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", +this.N$],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.ME],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.ME],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.ME],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.ME],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.ME],["TRIGGER_TYPE_SLOT_ID_EXITED",this.ME],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.ME],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.ME],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.ME],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.Ty],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", +this.lH],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.lH],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Uz],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Uz],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.xM],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.Ty],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.jZ],["TRIGGER_TYPE_AD_BREAK_STARTED",this.eQ],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.nJ],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", +this.nJ],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.nJ],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.nJ],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.nJ]]),bZ:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ii],["SLOT_TYPE_FORECASTING",this.Ii],["SLOT_TYPE_IN_PLAYER",this.Ii],["SLOT_TYPE_PLAYER_BYTES",this.V0]]),d0:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.RT],["SLOT_TYPE_FORECASTING",this.x3],["SLOT_TYPE_PLAYER_BYTES",this.lw],["SLOT_TYPE_IN_PLAYER",this.ZI]])};this.listeners=[A.get()]; +this.Zu={QC:this.QC,D_:this.Xh.get(),gy:this.cP.get(),WX:this.mS.get(),w$:this.w$,De:d.get(),q0:null,aX:this.N$,MQ:A.get(),kt:this.Sv.get()}}; +VoU=function(X,c,V,G){function n(){return L.G} +g.I.call(this);var L=this;X.j().experiments.lc("html5_dispose_of_manager_before_dependency")?(this.J=ccw(n,X,c,V,G),this.G=(new sZ(this.J)).U(),g.N(this,this.G),g.N(this,this.J)):(this.J=ccw(n,X,c,V,G),g.N(this,this.J),this.G=(new sZ(this.J)).U(),g.N(this,this.G))}; +E0=function(X){return X.J.Zu}; +ccw=function(X,c,V,G,n){try{var L=c.j();if(g.S3(L))var d=new D9D(X,c,V,G,n);else if(g.q7(L))d=new Scj(X,c,V,G,n);else if(uY(L))d=new iPU(X,c,V,G,n);else if(g.uG(L))d=new qcD(X,c,V,G,n);else if(g.fL(L))d=new XsL(X,c,V,G,n);else throw new TypeError("Unknown web interface");return d}catch(h){return d=c.j(),FX("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:d.J.cplatform,interface:d.J.c,EF_:d.J.cver,iOR:d.J.ctheme,LmR:d.J.cplayer,ub7:d.playerStyle}),new IK1(X,c,V,G,n)}}; +Glj=function(X){Dt.call(this,X)}; +nY8=function(X,c,V,G,n){nZ.call(this,X,{N:"div",Y:"ytp-ad-timed-pie-countdown-container",V:[{N:"svg",Y:"ytp-ad-timed-pie-countdown",K:{viewBox:"0 0 20 20"},V:[{N:"circle",Y:"ytp-ad-timed-pie-countdown-background",K:{r:"10",cx:"10",cy:"10"}},{N:"circle",Y:"ytp-ad-timed-pie-countdown-inner",K:{r:"5",cx:"10",cy:"10"}},{N:"circle",Y:"ytp-ad-timed-pie-countdown-outer",K:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",c,V,G,n);this.X=this.I2("ytp-ad-timed-pie-countdown-container");this.U=this.I2("ytp-ad-timed-pie-countdown-inner"); +this.B=this.I2("ytp-ad-timed-pie-countdown-outer");this.G=Math.ceil(2*Math.PI*5);this.hide()}; +L0s=function(X,c,V,G,n,L){Q0.call(this,X,{N:"div",Y:"ytp-ad-action-interstitial",K:{tabindex:"0"},V:[{N:"div",Y:"ytp-ad-action-interstitial-background-container"},{N:"div",Y:"ytp-ad-action-interstitial-slot",V:[{N:"div",Y:"ytp-ad-action-interstitial-instream-info"},{N:"div",Y:"ytp-ad-action-interstitial-card",V:[{N:"div",Y:"ytp-ad-action-interstitial-image-container"},{N:"div",Y:"ytp-ad-action-interstitial-headline-container"},{N:"div",Y:"ytp-ad-action-interstitial-description-container"},{N:"div", +Y:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",c,V,G);this.WR=n;this.Rj=L;this.navigationEndpoint=this.J=this.skipButton=this.G=this.actionButton=null;this.QK=this.I2("ytp-ad-action-interstitial-instream-info");this.Hl=this.I2("ytp-ad-action-interstitial-image-container");this.C=new BR(this.api,this.layoutId,this.interactionLoggingClientData,this.gy,"ytp-ad-action-interstitial-image");g.N(this,this.C);this.C.uc(this.Hl);this.Pl=this.I2("ytp-ad-action-interstitial-headline-container"); +this.B=new VP(this.api,this.layoutId,this.interactionLoggingClientData,this.gy,"ytp-ad-action-interstitial-headline");g.N(this,this.B);this.B.uc(this.Pl);this.A7=this.I2("ytp-ad-action-interstitial-description-container");this.U=new VP(this.api,this.layoutId,this.interactionLoggingClientData,this.gy,"ytp-ad-action-interstitial-description");g.N(this,this.U);this.U.uc(this.A7);this.yK=this.I2("ytp-ad-action-interstitial-background-container");this.LS=new BR(this.api,this.layoutId,this.interactionLoggingClientData, +this.gy,"ytp-ad-action-interstitial-background",!0);g.N(this,this.LS);this.LS.uc(this.yK);this.T_=this.I2("ytp-ad-action-interstitial-action-button-container");this.slot=this.I2("ytp-ad-action-interstitial-slot");this.MN=this.I2("ytp-ad-action-interstitial-card");this.X=new tj;g.N(this,this.X);this.hide()}; +dtS=function(X){var c=g.Du("html5-video-player");c&&g.ab(c,"ytp-ad-display-override",X)}; +YlD=function(X,c,V,G){Q0.call(this,X,{N:"div",Y:"ytp-ad-overlay-slot",V:[{N:"div",Y:"ytp-ad-overlay-container"}]},"invideo-overlay",c,V,G);this.C=[];this.yK=this.Pl=this.X=this.T_=this.QK=null;this.LS=!1;this.B=null;this.A7=0;X=this.I2("ytp-ad-overlay-container");this.Hl=new HB(X,45E3,6E3,.3,.4);g.N(this,this.Hl);this.U=yc1(this);g.N(this,this.U);this.U.uc(X);this.G=hKs(this);g.N(this,this.G);this.G.uc(X);this.J=Acw(this);g.N(this,this.J);this.J.uc(X);this.hide()}; +yc1=function(X){var c=new g.rP({N:"div",Y:"ytp-ad-text-overlay",V:[{N:"div",Y:"ytp-ad-overlay-ad-info-button-container"},{N:"div",Y:"ytp-ad-overlay-close-container",V:[{N:"button",Y:"ytp-ad-overlay-close-button",V:[p3(jps)]}]},{N:"div",Y:"ytp-ad-overlay-title",Uy:"{{title}}"},{N:"div",Y:"ytp-ad-overlay-desc",Uy:"{{description}}"},{N:"div",xO:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],Uy:"{{displayUrl}}"}]});X.L(c.I2("ytp-ad-overlay-title"),"click",function(V){r7(X,c.element,V)}); +X.L(c.I2("ytp-ad-overlay-link"),"click",function(V){r7(X,c.element,V)}); +X.L(c.I2("ytp-ad-overlay-close-container"),"click",X.n2);c.hide();return c}; +hKs=function(X){var c=new g.rP({N:"div",xO:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],V:[{N:"div",Y:"ytp-ad-overlay-ad-info-button-container"},{N:"div",Y:"ytp-ad-overlay-close-container",V:[{N:"button",Y:"ytp-ad-overlay-close-button",V:[p3(jps)]}]},{N:"div",Y:"ytp-ad-overlay-text-image",V:[{N:"img",K:{src:"{{imageUrl}}"}}]},{N:"div",Y:"ytp-ad-overlay-title",Uy:"{{title}}"},{N:"div",Y:"ytp-ad-overlay-desc",Uy:"{{description}}"},{N:"div",xO:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], +Uy:"{{displayUrl}}"}]});X.L(c.I2("ytp-ad-overlay-title"),"click",function(V){r7(X,c.element,V)}); +X.L(c.I2("ytp-ad-overlay-link"),"click",function(V){r7(X,c.element,V)}); +X.L(c.I2("ytp-ad-overlay-close-container"),"click",X.n2);X.L(c.I2("ytp-ad-overlay-text-image"),"click",X.wWK);c.hide();return c}; +Acw=function(X){var c=new g.rP({N:"div",Y:"ytp-ad-image-overlay",V:[{N:"div",Y:"ytp-ad-overlay-ad-info-button-container"},{N:"div",Y:"ytp-ad-overlay-close-container",V:[{N:"button",Y:"ytp-ad-overlay-close-button",V:[p3(jps)]}]},{N:"div",Y:"ytp-ad-overlay-image",V:[{N:"img",K:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});X.L(c.I2("ytp-ad-overlay-image"),"click",function(V){r7(X,c.element,V)}); +X.L(c.I2("ytp-ad-overlay-close-container"),"click",X.n2);c.hide();return c}; +HfO=function(X,c){if(c){var V=g.T(c,pA)||null;V==null?g.Ni(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(c=g.Du("video-ads ytp-ad-module")||null,c==null?g.Ni(Error("Could not locate the root ads container element to attach the ad info dialog.")):(X.Pl=new g.rP({N:"div",Y:"ytp-ad-overlay-ad-info-dialog-container"}),g.N(X,X.Pl),X.Pl.uc(c),c=new cB(X.api,X.layoutId,X.interactionLoggingClientData,X.gy,X.Pl.element,!1),g.N(X,c),c.init(HR("ad-info-hover-text-button"),V,X.macros), +X.B?(c.uc(X.B,0),c.subscribe("f",X.A1R,X),c.subscribe("e",X.tM,X),X.L(X.B,"click",X.hf2),X.L(g.Du("ytp-ad-button",c.element),"click",function(){var G;if(g.T((G=g.T(V.button,g.Nz))==null?void 0:G.serviceEndpoint,GMj))X.LS=X.api.getPlayerState(1)===2,X.api.pauseVideo();else X.api.onAdUxClicked("ad-info-hover-text-button",X.layoutId)}),X.yK=c):g.Ni(Error("Ad info button container within overlay ad was not present."))))}else g.UQ(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; +$t2=function(X,c){if(aHD(X,QM)||X.api.isMinimized())return!1;var V=Zt(c.title),G=Zt(c.description);if(g.kU(V)||g.kU(G))return!1;X.createServerVe(X.U.element,c.trackingParams||null);X.U.updateValue("title",Zt(c.title));X.U.updateValue("description",Zt(c.description));X.U.updateValue("displayUrl",Zt(c.displayUrl));c.navigationEndpoint&&g.Go(X.C,c.navigationEndpoint);X.U.show();X.Hl.start();X.logVisibility(X.U.element,!0);X.L(X.U.element,"mouseover",function(){X.A7++}); +return!0}; +W0S=function(X,c){if(aHD(X,QM)||X.api.isMinimized())return!1;var V=Zt(c.title),G=Zt(c.description);if(g.kU(V)||g.kU(G))return!1;X.createServerVe(X.G.element,c.trackingParams||null);X.G.updateValue("title",Zt(c.title));X.G.updateValue("description",Zt(c.description));X.G.updateValue("displayUrl",Zt(c.displayUrl));X.G.updateValue("imageUrl",Z$s(c.image));c.navigationEndpoint&&g.Go(X.C,c.navigationEndpoint);X.T_=c.imageNavigationEndpoint||null;X.G.show();X.Hl.start();X.logVisibility(X.G.element,!0); +X.L(X.G.element,"mouseover",function(){X.A7++}); +return!0}; +wss=function(X,c){if(X.api.isMinimized())return!1;var V=x8l(c.image),G=V;V.width0?(c=new US(X.api,X.J),c.uc(X.playerOverlay), +g.N(X,c)):g.Ni(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(c)))}}else g.Ni(Error("addCommonComponents() needs to be called before starting countdown."))}; +Jct=function(X){function c(V){return{toString:function(){return V()}}} +X.macros.SURVEY_LOCAL_TIME_EPOCH_S=c(function(){var V=new Date;return(Math.round(V.valueOf()/1E3)+-1*V.getTimezoneOffset()*60).toString()}); +X.macros.SURVEY_ELAPSED_MS=c(function(){return(Date.now()-X.U).toString()})}; +mtO=function(X,c,V,G,n){kx.call(this,X,c,V,G,"survey-question-multi-select");this.A7=n;this.noneOfTheAbove=null;this.submitEndpoints=[];this.B=null;this.hide()}; +RKD=function(X,c,V){X.noneOfTheAbove=new xt2(X.api,X.layoutId,X.interactionLoggingClientData,X.gy);X.noneOfTheAbove.uc(X.answers);X.noneOfTheAbove.init(HR("survey-none-of-the-above"),c,V)}; +tow=function(X){X.G.forEach(function(c){c.J.toggleButton(!1)}); +bfO(X,!0)}; +bfO=function(X,c){var V=X.X;X=Ofj(X);c=c===void 0?!1:c;V.J&&(X?V.J.hide():V.J.show(),c&&V.J instanceof vB&&!V.J.X&&Hrl(V.J,!1));V.G&&(X?V.G.show():V.G.hide())}; +Ofj=function(X){return X.G.some(function(c){return c.J.isToggled()})||X.noneOfTheAbove.button.isToggled()}; +o$=function(X,c,V,G,n){kx.call(this,X,c,V,G,"survey-question-single-select",function(d){L.api.j().S("supports_multi_step_on_desktop")&&n([d])}); +var L=this;this.hide()}; +ec=function(X,c,V,G){Q0.call(this,X,{N:"div",Y:"ytp-ad-survey",V:[{N:"div",Y:"ytp-ad-survey-questions"}]},"survey",c,V,G);this.questions=[];this.G=[];this.conditioningRules=[];this.J=0;this.B=this.I2("ytp-ad-survey-questions");this.api.j().S("fix_survey_color_contrast_on_destop")&&this.I2("ytp-ad-survey").classList.add("color-contrast-fix");this.api.j().S("web_enable_speedmaster")&&this.I2("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; +gYw=function(X,c){var V=X.G[c],G;(G=X.U)==null||G.dispose();g.T(V,g8)?lHl(X,g.T(V,g8),X.macros):g.T(V,Mz)&&Mo2(X,g.T(V,Mz),X.macros);X.J=c}; +lHl=function(X,c,V){var G=new o$(X.api,X.layoutId,X.interactionLoggingClientData,X.gy,X.X.bind(X));G.uc(X.B);G.init(HR("survey-question-single-select"),c,V);X.api.j().S("supports_multi_step_on_desktop")?X.U=G:X.questions.push(G);g.N(X,G)}; +Mo2=function(X,c,V){var G=new mtO(X.api,X.layoutId,X.interactionLoggingClientData,X.gy,X.X.bind(X));G.uc(X.B);G.init(HR("survey-question-multi-select"),c,V);X.api.j().S("supports_multi_step_on_desktop")?X.U=G:X.questions.push(G);g.N(X,G)}; +JT=function(X,c,V,G){Q0.call(this,X,{N:"div",Y:"ytp-ad-survey-interstitial",V:[{N:"div",Y:"ytp-ad-survey-interstitial-contents",V:[{N:"div",Y:"ytp-ad-survey-interstitial-logo",V:[{N:"div",Y:"ytp-ad-survey-interstitial-logo-image"}]},{N:"div",Y:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",c,V,G);this.J=this.actionButton=null;this.interstitial=this.I2("ytp-ad-survey-interstitial");this.G=this.I2("ytp-ad-survey-interstitial-contents");this.text=this.I2("ytp-ad-survey-interstitial-text"); +this.logoImage=this.I2("ytp-ad-survey-interstitial-logo-image");this.transition=new g.yP(this,500,!1,300);g.N(this,this.transition)}; +fHt=function(X,c){c=c&&zR(c)||"";if(g.kU(c))g.UQ(Error("Found ThumbnailDetails without valid image URL"));else{var V=X.style;X=X.style.cssText;var G=document.implementation.createHTMLDocument("").createElement("DIV");G.style.cssText=X;X=CFw(G.style);V.cssText=[X,'background-image:url("'+c+'");'].join("")}}; +pss=function(X){var c=g.Du("html5-video-player");c&&g.ab(c,"ytp-ad-display-override",X)}; +my=function(X,c,V,G,n,L){L=L===void 0?0:L;nZ.call(this,X,{N:"div",Y:"ytp-preview-ad",V:[{N:"div",Y:"ytp-preview-ad__text"}]},"preview-ad",c,V,G,n);var d=this;this.A7=L;this.G=0;this.X=-1;this.U=this.I2("ytp-preview-ad__text");switch(this.A7){case 1:this.U.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.yP(this,400,!1,100,function(){d.hide()}); +g.N(this,this.transition);this.hide()}; +R$=function(X,c,V,G){Q0.call(this,X,{N:"img",Y:"ytp-ad-avatar"},"ad-avatar",c,V,G);this.hide()}; +IHs=function(X){switch(X.size){case "AD_AVATAR_SIZE_XXS":return 16;case "AD_AVATAR_SIZE_XS":return 24;case "AD_AVATAR_SIZE_S":return 32;case "AD_AVATAR_SIZE_M":return 36;case "AD_AVATAR_SIZE_L":return 56;case "AD_AVATAR_SIZE_XL":return 72;default:return 36}}; +bM=function(X,c,V,G,n,L){n=n===void 0?!1:n;L=L===void 0?!1:L;Q0.call(this,X,{N:"button",Y:"ytp-ad-button-vm"},"ad-button",c,V,G);this.buttonText=this.buttonIcon=null;this.hide();this.J=n;this.G=L}; +Nt2=function(X,c,V,G,n){nZ.call(this,X,{N:"div",xO:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],V:[{N:"div",Y:"ytp-ad-avatar-lockup-card__avatar_and_text_container",V:[{N:"div",Y:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",c,V,G,n);this.startMilliseconds=0;this.adAvatar=new R$(this.api,this.layoutId,this.interactionLoggingClientData,this.gy);g.N(this,this.adAvatar);dW(this.element,this.adAvatar.element,0);this.headline=new MA(this.api,this.layoutId, +this.interactionLoggingClientData,this.gy);g.N(this,this.headline);this.headline.uc(this.I2("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new MA(this.api,this.layoutId,this.interactionLoggingClientData,this.gy);g.N(this,this.description);this.description.uc(this.I2("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new bM(this.api, +this.layoutId,this.interactionLoggingClientData,this.gy);g.N(this,this.adButton);this.adButton.uc(this.element);this.hide()}; +tT=function(X,c,V,G){Q0.call(this,X,{N:"button",Y:"ytp-skip-ad-button",V:[{N:"div",Y:"ytp-skip-ad-button__text"}]},"skip-button",c,V,G);var n=this;this.G=!1;this.X=this.I2("ytp-skip-ad-button__text");this.transition=new g.yP(this,500,!1,100,function(){n.hide()}); +g.N(this,this.transition);this.J=new HB(this.element,15E3,5E3,.5,.5,!0);g.N(this,this.J);this.hide()}; +Ut2=function(X,c,V,G,n){nZ.call(this,X,{N:"div",Y:"ytp-skip-ad"},"skip-ad",c,V,G,n);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.U=new tT(this.api,this.layoutId,this.interactionLoggingClientData,this.gy);g.N(this,this.U);this.U.uc(this.element);this.hide()}; +O0=function(X,c,V,G){Q0.call(this,X,{N:"div",Y:"ytp-visit-advertiser-link"},"visit-advertiser-link",c,V,G);this.hide();this.api.S("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-visit-advertiser-link--clean-player");this.api.S("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-visit-advertiser-link--clean-player-with-light-shadow")}; +lM=function(X,c,V,G,n){Q0.call(this,X,{N:"div",Y:"ytp-ad-player-overlay-layout",V:[{N:"div",Y:"ytp-ad-player-overlay-layout__player-card-container"},{N:"div",Y:"ytp-ad-player-overlay-layout__ad-info-container",V:[X.j().S("delhi_modern_web_player")?{N:"div",Y:"ytp-ad-player-overlay-layout__ad-info-container-left"}:null]},{N:"div",Y:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{N:"div",Y:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",c,V,G);this.G= +n;this.Hl=this.I2("ytp-ad-player-overlay-layout__player-card-container");this.U=this.I2("ytp-ad-player-overlay-layout__ad-info-container");this.A7=this.I2("ytp-ad-player-overlay-layout__skip-or-preview-container");this.Pl=this.I2("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");X.j().S("delhi_modern_web_player")&&(this.X=this.I2("ytp-ad-player-overlay-layout__ad-info-container-left"));this.hide()}; +Tts=function(X,c,V,G){Q0.call(this,X,{N:"div",Y:"ytp-ad-grid-card-text",V:[{N:"div",Y:"ytp-ad-grid-card-text__metadata",V:[{N:"div",Y:"ytp-ad-grid-card-text__metadata__headline"},{N:"div",Y:"ytp-ad-grid-card-text__metadata__description",V:[{N:"div",Y:"ytp-ad-grid-card-text__metadata__description__line"},{N:"div",Y:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{N:"div",Y:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",c,V,G);this.headline=new MA(this.api,this.layoutId,this.interactionLoggingClientData, +this.gy);g.N(this,this.headline);this.headline.uc(this.I2("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new bM(this.api,this.layoutId,this.interactionLoggingClientData,this.gy,!0);g.N(this,this.moreInfoButton);this.moreInfoButton.uc(this.I2("ytp-ad-grid-card-text__button"))}; +My=function(X,c,V,G){Q0.call(this,X,{N:"div",Y:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",c,V,G);this.J=[]}; +g7=function(X,c,V,G,n,L,d){nZ.call(this,X,L,d,c,V,G,n);this.playerProgressOffsetMs=0;this.G=!1}; +uQl=function(X){var c=g.Du("html5-video-player");c&&g.ab(c,"ytp-ad-display-override",X)}; +Pf1=function(X,c,V,G,n){g7.call(this,X,c,V,G,n,{N:"div",Y:"ytp-display-underlay-text-grid-cards",V:[{N:"div",Y:"ytp-display-underlay-text-grid-cards__content_container",V:[{N:"div",Y:"ytp-display-underlay-text-grid-cards__content_container__header",V:[{N:"div",Y:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{N:"div",Y:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{N:"div",Y:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, +{N:"div",Y:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new My(this.api,this.layoutId,this.interactionLoggingClientData,this.gy);g.N(this,this.adGridCardCollection);this.adGridCardCollection.uc(this.I2("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new bM(this.api,this.layoutId,this.interactionLoggingClientData,this.gy);g.N(this,this.adButton);this.adButton.uc(this.I2("ytp-display-underlay-text-grid-cards__content_container__ad_button")); +this.U=this.I2("ytp-display-underlay-text-grid-cards__content_container");this.X=this.I2("ytp-display-underlay-text-grid-cards__content_container__header")}; +fh=function(X,c,V,G){Q0.call(this,X,{N:"div",Y:"ytp-ad-details-line"},"ad-details-line",c,V,G);this.J=[];this.hide()}; +ph=function(X,c,V,G){Q0.call(this,X,{N:"div",Y:"ytp-image-background",V:[{N:"img",Y:"ytp-image-background-image"}]},"image-background",c,V,G);this.hide()}; +zKt=function(X,c,V,G,n){nZ.call(this,X,{N:"svg",Y:"ytp-timed-pie-countdown",K:{viewBox:"0 0 20 20"},V:[{N:"circle",Y:"ytp-timed-pie-countdown__background",K:{r:"10",cx:"10",cy:"10"}},{N:"circle",Y:"ytp-timed-pie-countdown__inner",K:{r:"5",cx:"10",cy:"10"}},{N:"circle",Y:"ytp-timed-pie-countdown__outer",K:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",c,V,G,n);this.U=this.I2("ytp-timed-pie-countdown__inner");this.G=Math.ceil(2*Math.PI*5);this.hide()}; +I$=function(X,c,V,G){Q0.call(this,X,{N:"div",Y:"ytp-video-interstitial-buttoned-centered-layout",K:{tabindex:"0"},V:[{N:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content",V:[{N:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{N:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",V:[{N:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{N:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, +{N:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{N:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{N:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",c,V,G);this.G=null;this.X=this.I2("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.U=new tj;g.N(this,this.U);this.hide()}; +BtL=function(X){var c=g.Du("html5-video-player");c&&g.ab(c,"ytp-ad-display-override",X)}; +K0s=function(X){if(!X.adAvatar||!g.T(X.adAvatar,Ny))return g.Ni(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!X.headline)return g.Ni(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!X.adBadge||!g.T(X.adBadge,U0))return g.Ni(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!X.adButton||!g.T(X.adButton,T0))return g.Ni(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!X.adInfoRenderer|| +!g.T(X.adInfoRenderer,pA))return g.Ni(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;X=X.durationMilliseconds||0;return typeof X!=="number"||X<=0?(g.Ni(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+X)),!1):!0}; +uM=function(X,c){c=c===void 0?2:c;g.$T.call(this);this.api=X;this.J=null;this.kc=new tj(this);g.N(this,this.kc);this.G=a$L;this.kc.L(this.api,"presentingplayerstatechange",this.ye);this.J=this.kc.L(this.api,"progresssync",this.er);this.E0=c;this.E0===1&&this.er()}; +Px=function(X,c,V){Dt.call(this,X);this.api=X;this.gy=c;this.G={};X=new g.z({N:"div",xO:["video-ads","ytp-ad-module"]});g.N(this,X);e3&&g.Ax(X.element,"ytp-ads-tiny-mode");this.Z=new k_(X.element);g.N(this,this.Z);g.M$(this.api,X.element,4);GP(V)&&(V=new g.z({N:"div",xO:["ytp-ad-underlay"]}),g.N(this,V),this.U=new k_(V.element),g.N(this,this.U),g.M$(this.api,V.element,0));g.N(this,Ti1())}; +spD=function(X,c){X=g.Oz(X.G,c.id,null);X==null&&g.UQ(Error("Component not found for element id: "+c.id));return X||null}; +CfS=function(X){g.wh.call(this,X);var c=this;this.G=null;this.created=!1;this.U=X.j().S("h5_use_refactored_get_ad_break")?new PC1(this.player):new NE(this.player);this.X=function(){if(c.G!=null)return c.G;var G=new SO1({aX:E0(c.J).aX,kt:E0(c.J).kt,W:c.player,D_:E0(c.J).D_,t7:c.J.J.t7,MQ:E0(c.J).MQ,oy:c.J.J.oy});c.G=G.Ag;return c.G}; +this.J=new VoU(this.player,this,this.U,this.X);g.N(this,this.J);var V=X.j();!tr(V)||g.fL(V)||uY(V)||(g.N(this,new Px(X,E0(this.J).gy,E0(this.J).D_)),g.N(this,new Glj(X)))}; +Dt8=function(X){X.created!==X.loaded&&FX("Created and loaded are out of sync")}; +qll=function(X){g.wh.prototype.load.call(X);var c=E0(X.J).D_;try{X.player.getRootNode().classList.add("ad-created")}catch(A){FX(A instanceof Error?A:String(A))}var V=X.player.getVideoData(1),G=V&&V.videoId||"",n=V&&V.getPlayerResponse()||{},L=(!X.player.j().experiments.lc("debug_ignore_ad_placements")&&n&&n.adPlacements||[]).map(function(A){return A.adPlacementRenderer}),d=((n==null?void 0:n.adSlots)||[]).map(function(A){return g.T(A,uS)}); +n=n.playerConfig&&n.playerConfig.daiConfig&&n.playerConfig.daiConfig.enableDai||!1;V&&V.ZQ();L=Sl2(L,d,c,E0(X.J).De);d=V&&V.clientPlaybackNonce||"";V=V&&V.Re||!1;if(mT(c,!0)&&V){var h;c={};(h=X.player.getVideoData())==null||h.Oy("p_cpb",(c.cc=d,c))}h=1E3*X.player.getDuration(1);if8(X);X.J.J.SM.LY(d,h,V,L.OO,L.wg,L.OO,n,G)}; +if8=function(X){var c,V;if(V=(c=X.player.getVideoData(1))==null||!c.Re)c=X.player.j(),V=tr(c)&&!g.bL(c)&&c.playerStyle==="desktop-polymer";V&&(X=X.player.getInternalApi(),X.addEventListener("updateKevlarOrC3Companion",E$2),X.addEventListener("updateEngagementPanelAction",rOl),X.addEventListener("changeEngagementPanelVisibility",Qkt),window.addEventListener("yt-navigate-start",x6D))}; +z0=function(X,c){c===X.iP&&(X.iP=void 0)}; +XwV=function(X){var c=E0(X.J).w$,V=c.X().PZ("SLOT_TYPE_PLAYER_BYTES",1);c=Zq(c.Sv.get(),1).clientPlaybackNonce;var G=!1;V=g.r(V);for(var n=V.next();!n.done;n=V.next()){n=n.value;var L=n.slotType==="SLOT_TYPE_PLAYER_BYTES"&&n.slotEntryTrigger instanceof mV?n.slotEntryTrigger.jq:void 0;L&&L===c&&(G&&FX("More than 1 preroll playerBytes slot detected",n),G=!0)}G||nh(E0(X.J).WX)}; +csM=function(X){if(Kq(E0(X.J).D_))return!0;var c="";X=g.r(E0(X.J).MQ.Uc.keys());for(var V=X.next();!V.done;V=X.next()){V=V.value;if(V.slotType==="SLOT_TYPE_PLAYER_BYTES"&&V.sy==="core")return!0;c+=V.slotType+" "}Math.random()<.01&&FX("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:c});return!1}; +VD_=function(X){X=g.r(E0(X.J).MQ.Uc.values());for(var c=X.next();!c.done;c=X.next())if(c.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; +tIj=function(X,c,V,G,n,L){V=V===void 0?[]:V;G=G===void 0?"":G;n=n===void 0?"":n;var d=E0(X.J).D_,h=X.player.getVideoData(1);h&&h.getPlayerResponse();h&&h.ZQ();V=Sl2(c,V,d,E0(X.J).De);gyS(E0(X.J).QC,G,V.OO,V.wg,c,n,L)}; +Sl2=function(X,c,V,G){c={OO:[],wg:c};X=g.r(X);for(var n=X.next();!n.done;n=X.next())if((n=n.value)&&n.renderer!=null){var L=n.renderer;if(!V.W.j().S("html5_enable_vod_lasr_with_notify_pacf")){var d=void 0,h=void 0,A=void 0,Y=void 0,H=G;g.T((Y=L.sandwichedLinearAdRenderer)==null?void 0:Y.adVideoStart,rg)?(d=g.T((A=L.sandwichedLinearAdRenderer)==null?void 0:A.adVideoStart,rg),d=D0s(d,H),g.BT(L.sandwichedLinearAdRenderer.adVideoStart,rg,d)):g.T((h=L.linearAdSequenceRenderer)==null?void 0:h.adStart,rg)&& +(A=g.T((d=L.linearAdSequenceRenderer)==null?void 0:d.adStart,rg),d=D0s(A,H),g.BT(L.linearAdSequenceRenderer.adStart,rg,d))}c.OO.push(n)}return c}; +g.Bx=function(X){if(typeof DOMParser!="undefined")return Sv(new DOMParser,Pv2(X),"application/xml");throw Error("Your browser does not support loading xml documents");}; +g.Kh=function(X){g.I.call(this);this.callback=X;this.J=new kD(0,0,.4,0,.2,1,1,1);this.delay=new g.i_(this.next,window,this);g.N(this,this.delay)}; +g.Gtk=function(X){var c=X.j();return c.gm&&!c.U&&g.RT(c)?X.isEmbedsShortsMode()?(X=X.i4(),Math.min(X.width,X.height)>=315):!X.hP():!1}; +g.s0=function(X){g.z.call(this,{N:"div",Y:"ytp-more-videos-view",K:{tabIndex:"-1"}});var c=this;this.api=X;this.G=!0;this.U=new g.U3(this);this.J=[];this.suggestionData=[];this.columns=this.containerWidth=this.T=this.X=this.scrollPosition=0;this.title=new g.z({N:"h2",Y:"ytp-related-title",Uy:"{{title}}"});this.previous=new g.z({N:"button",xO:["ytp-button","ytp-previous"],K:{"aria-label":"Show previous suggested videos"},V:[g.o_()]});this.D=new g.Kh(function(V){c.suggestions.element.scrollLeft=-V}); +this.next=new g.z({N:"button",xO:["ytp-button","ytp-next"],K:{"aria-label":"Show more suggested videos"},V:[g.eB()]});g.N(this,this.U);this.B=X.j().X;g.N(this,this.title);this.title.uc(this.element);this.suggestions=new g.z({N:"div",Y:"ytp-suggestions"});g.N(this,this.suggestions);this.suggestions.uc(this.element);g.N(this,this.previous);this.previous.uc(this.element);this.previous.listen("click",this.C5,this);g.N(this,this.D);n17(this);g.N(this,this.next);this.next.uc(this.element);this.next.listen("click", +this.K5,this);this.U.L(this.api,"appresize",this.Ky);this.U.L(this.api,"fullscreentoggled",this.D0);this.U.L(this.api,"videodatachange",this.onVideoDataChange);this.Ky(this.api.CS().getPlayerSize());this.onVideoDataChange()}; +n17=function(X){for(var c={o5:0};c.o5<16;c={o5:c.o5},++c.o5){var V=new g.z({N:"a",Y:"ytp-suggestion-link",K:{href:"{{link}}",target:X.api.j().C,"aria-label":"{{aria_label}}"},V:[{N:"div",Y:"ytp-suggestion-image"},{N:"div",Y:"ytp-suggestion-overlay",K:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},V:[{N:"div",Y:"ytp-suggestion-title",Uy:"{{title}}"},{N:"div",Y:"ytp-suggestion-author",Uy:"{{author_and_views}}"},{N:"div",K:{"data-is-live":"{{is_live}}"},Y:"ytp-suggestion-duration", +Uy:"{{duration}}"}]}]});g.N(X,V);var G=V.I2("ytp-suggestion-link");g.$v(G,"transitionDelay",c.o5/20+"s");X.U.L(G,"click",function(n){return function(L){var d=n.o5;if(X.G){var h=X.suggestionData[d],A=h.sessionData;X.B&&X.api.S("web_player_log_click_before_generating_ve_conversion_params")?(X.api.logClick(X.J[d].element),d=h.nK(),h={},g.tt(X.api,h),d=g.KB(d,h),g.yS(d,X.api,L)):g.dZ(L,X.api,X.B,A||void 0)&&X.api.Tf(h.videoId,A,h.playlistId)}else L.preventDefault(),document.activeElement.blur()}}(c)); +V.uc(X.suggestions.element);X.J.push(V);X.api.createServerVe(V.element,V)}}; +LUM=function(X){if(X.api.j().S("web_player_log_click_before_generating_ve_conversion_params"))for(var c=Math.floor(-X.scrollPosition/(X.X+8)),V=Math.min(c+X.columns,X.suggestionData.length)-1;c<=V;c++)X.api.logVisibility(X.J[c].element,!0)}; +g.Ch=function(X){var c=X.api.jO()?32:16;c=X.T/2+c;X.next.element.style.bottom=c+"px";X.previous.element.style.bottom=c+"px";c=X.scrollPosition;var V=X.containerWidth-X.suggestionData.length*(X.X+8);g.ab(X.element,"ytp-scroll-min",c>=0);g.ab(X.element,"ytp-scroll-max",c<=V)}; +ysA=function(X){for(var c=X.suggestionData.length,V=0;V>>0)+"_",n=0;return c}); +a8("Symbol.iterator",function(X){if(X)return X;X=Symbol("Symbol.iterator");for(var c="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),V=0;V=L}}); +a8("String.prototype.endsWith",function(X){return X?X:function(c,V){var G=lO(this,c,"endsWith");c+="";V===void 0&&(V=G.length);V=Math.max(0,Math.min(V|0,G.length));for(var n=c.length;n>0&&V>0;)if(G[--V]!=c[--n])return!1;return n<=0}}); +a8("Array.prototype.entries",function(X){return X?X:function(){return ML(this,function(c,V){return[c,V]})}}); +a8("Math.imul",function(X){return X?X:function(c,V){c=Number(c);V=Number(V);var G=c&65535,n=V&65535;return G*n+((c>>>16&65535)*n+G*(V>>>16&65535)<<16>>>0)|0}}); +a8("Math.trunc",function(X){return X?X:function(c){c=Number(c);if(isNaN(c)||c===Infinity||c===-Infinity||c===0)return c;var V=Math.floor(Math.abs(c));return c<0?-V:V}}); +a8("Math.clz32",function(X){return X?X:function(c){c=Number(c)>>>0;if(c===0)return 32;var V=0;(c&4294901760)===0&&(c<<=16,V+=16);(c&4278190080)===0&&(c<<=8,V+=8);(c&4026531840)===0&&(c<<=4,V+=4);(c&3221225472)===0&&(c<<=2,V+=2);(c&2147483648)===0&&V++;return V}}); +a8("Math.log10",function(X){return X?X:function(c){return Math.log(c)/Math.LN10}}); +a8("Number.isNaN",function(X){return X?X:function(c){return typeof c==="number"&&isNaN(c)}}); +a8("Array.prototype.keys",function(X){return X?X:function(){return ML(this,function(c){return c})}}); +a8("Array.prototype.values",function(X){return X?X:function(){return ML(this,function(c,V){return V})}}); +a8("Array.prototype.fill",function(X){return X?X:function(c,V,G){var n=this.length||0;V<0&&(V=Math.max(0,n+V));if(G==null||G>n)G=n;G=Number(G);G<0&&(G=Math.max(0,n+G));for(V=Number(V||0);V1342177279)throw new RangeError("Invalid count value");c|=0;for(var G="";c;)if(c&1&&(G+=V),c>>>=1)V+=V;return G}}); +a8("Promise.prototype.finally",function(X){return X?X:function(c){return this.then(function(V){return Promise.resolve(c()).then(function(){return V})},function(V){return Promise.resolve(c()).then(function(){throw V; +})})}}); +a8("String.prototype.padStart",function(X){return X?X:function(c,V){var G=lO(this,null,"padStart");c-=G.length;V=V!==void 0?String(V):" ";return(c>0&&V?V.repeat(Math.ceil(c/V.length)).substring(0,c):"")+G}}); +a8("Array.prototype.findIndex",function(X){return X?X:function(c,V){return WUw(this,c,V).KU}}); +a8("Math.sign",function(X){return X?X:function(c){c=Number(c);return c===0||isNaN(c)?c:c>0?1:-1}}); +a8("WeakSet",function(X){function c(V){this.J=new WeakMap;if(V){V=g.r(V);for(var G;!(G=V.next()).done;)this.add(G.value)}} +if(function(){if(!X||!Object.seal)return!1;try{var V=Object.seal({}),G=Object.seal({}),n=new X([V]);if(!n.has(V)||n.has(G))return!1;n.delete(V);n.add(G);return!n.has(V)&&n.has(G)}catch(L){return!1}}())return X; +c.prototype.add=function(V){this.J.set(V,!0);return this}; +c.prototype.has=function(V){return this.J.has(V)}; +c.prototype.delete=function(V){return this.J.delete(V)}; +return c}); +a8("Array.prototype.copyWithin",function(X){function c(V){V=Number(V);return V===Infinity||V===-Infinity?V:V|0} +return X?X:function(V,G,n){var L=this.length;V=c(V);G=c(G);n=n===void 0?L:c(n);V=V<0?Math.max(L+V,0):Math.min(V,L);G=G<0?Math.max(L+G,0):Math.min(G,L);n=n<0?Math.max(L+n,0):Math.min(n,L);if(VG;)--n in this?this[--V]=this[n]:delete this[--V];return this}}); +a8("Int8Array.prototype.copyWithin",fj);a8("Uint8Array.prototype.copyWithin",fj);a8("Uint8ClampedArray.prototype.copyWithin",fj);a8("Int16Array.prototype.copyWithin",fj);a8("Uint16Array.prototype.copyWithin",fj);a8("Int32Array.prototype.copyWithin",fj);a8("Uint32Array.prototype.copyWithin",fj);a8("Float32Array.prototype.copyWithin",fj);a8("Float64Array.prototype.copyWithin",fj);a8("Array.prototype.at",function(X){return X?X:pj}); +a8("Int8Array.prototype.at",I8);a8("Uint8Array.prototype.at",I8);a8("Uint8ClampedArray.prototype.at",I8);a8("Int16Array.prototype.at",I8);a8("Uint16Array.prototype.at",I8);a8("Int32Array.prototype.at",I8);a8("Uint32Array.prototype.at",I8);a8("Float32Array.prototype.at",I8);a8("Float64Array.prototype.at",I8);a8("String.prototype.at",function(X){return X?X:pj}); +a8("Array.prototype.findLastIndex",function(X){return X?X:function(c,V){return wwU(this,c,V).KU}}); +a8("Int8Array.prototype.findLastIndex",NL);a8("Uint8Array.prototype.findLastIndex",NL);a8("Uint8ClampedArray.prototype.findLastIndex",NL);a8("Int16Array.prototype.findLastIndex",NL);a8("Uint16Array.prototype.findLastIndex",NL);a8("Int32Array.prototype.findLastIndex",NL);a8("Uint32Array.prototype.findLastIndex",NL);a8("Float32Array.prototype.findLastIndex",NL);a8("Float64Array.prototype.findLastIndex",NL);a8("Number.parseInt",function(X){return X||parseInt});var qG,DS,FUl;qG=qG||{};g.UD=this||self;DS="closure_uid_"+(Math.random()*1E9>>>0);FUl=0;g.E(nt,Error);g.I.prototype.nw=!1;g.I.prototype.vl=function(){return this.nw}; +g.I.prototype.dispose=function(){this.nw||(this.nw=!0,this.R2())}; +g.I.prototype[Symbol.dispose]=function(){this.dispose()}; +g.I.prototype.addOnDisposeCallback=function(X,c){this.nw?c!==void 0?X.call(c):X():(this.NB||(this.NB=[]),c&&(X=X.bind(c)),this.NB.push(X))}; +g.I.prototype.R2=function(){if(this.NB)for(;this.NB.length;)this.NB.shift()()};var ktD;g.E(H7,g.I);H7.prototype.share=function(){if(this.vl())throw Error("E:AD");this.X++;return this}; +H7.prototype.dispose=function(){--this.X||g.I.prototype.dispose.call(this)}; +ktD=Symbol.dispose;o1l.prototype.O2=function(X,c){this.J.O2("/client_streamz/bg/frs",X,c)}; +e2O.prototype.O2=function(X,c,V,G,n,L){this.J.O2("/client_streamz/bg/wrl",X,c,V,G,n,L)}; +Jsl.prototype.PD=function(X,c){this.J.uW("/client_streamz/bg/ec",X,c)}; +mL1.prototype.O2=function(X,c,V,G){this.J.O2("/client_streamz/bg/el",X,c,V,G)}; +R2D.prototype.PD=function(X,c,V){this.J.uW("/client_streamz/bg/cec",X,c,V)}; +bjs.prototype.PD=function(X,c,V){this.J.uW("/client_streamz/bg/po/csc",X,c,V)}; +tD2.prototype.PD=function(X,c,V){this.J.uW("/client_streamz/bg/po/ctav",X,c,V)}; +Ojs.prototype.PD=function(X,c,V){this.J.uW("/client_streamz/bg/po/cwsc",X,c,V)};g.GG(EH,Error);EH.prototype.name="CustomError";var GZO;var pd=void 0,fd,bSU=typeof TextDecoder!=="undefined",pw8,fSS=typeof String.prototype.isWellFormed==="function",g1S=typeof TextEncoder!=="undefined";var Jp=String.prototype.trim?function(X){return X.trim()}:function(X){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(X)[1]},bYs=/&/g,tXD=//g,l7s=/"/g,MXU=/'/g,gm1=/\x00/g,RAU=/[\x00&<>"']/;var $Lh=zt(1,!0),tp=zt(610401301,!1);zt(899588437,!1);var WU7=zt(725719775,!1),wwz=zt(513659523,!1),FUA=zt(568333945,!1);zt(651175828,!1);zt(722764542,!1);zt(2147483644,!1);zt(2147483645,!1);zt(2147483646,$Lh);zt(2147483647,!0);var OH=!!g.Pw("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var lA,E1A=g.UD.navigator;lA=E1A?E1A.userAgentData||null:null;var ij8,tk,lF;ij8=Array.prototype.indexOf?function(X,c){return Array.prototype.indexOf.call(X,c,void 0)}:function(X,c){if(typeof X==="string")return typeof c!=="string"||c.length!=1?-1:X.indexOf(c,0); +for(var V=0;V=0;V--)if(V in X&&X[V]===c)return V;return-1}; +g.aR=Array.prototype.forEach?function(X,c,V){Array.prototype.forEach.call(X,c,V)}:function(X,c,V){for(var G=X.length,n=typeof X==="string"?X.split(""):X,L=0;LparseFloat(ktV)){v1z=String(D3);break a}}v1z=ktV}var YHL=v1z,h_O={};var Xv,ce;g.Tb=Ih();Xv=P7()||gM("iPod");ce=gM("iPad");g.mA=z22();g.fp=UH();g.v8=TG()&&!zG();var HtD={},x5=null,ai2=WE||g.iU||typeof g.UD.btoa=="function";var vUS=typeof Uint8Array!=="undefined",EUU=!g.Fn&&typeof btoa==="function",rpj=/[-_.]/g,w7s={"-":"+",_:"/",".":"="},k5={};vY.prototype.isEmpty=function(){return this.J==null}; +vY.prototype.sizeBytes=function(){var X=eg(this);return X?X.length:0}; +var xkj;var oUl=void 0;var bu=typeof Symbol==="function"&&typeof Symbol()==="symbol",JsA=RR("jas",void 0,!0),Ld=RR(void 0,"1oa"),km=RR(void 0,Symbol()),mLU=RR(void 0,"0ub"),WLs=RR(void 0,"0actk");Math.max.apply(Math,g.x(Object.values({CVl:1,KuK:2,yJS:4,gAW:8,dbS:16,LOv:32,CXh:64,Pbv:128,Xo_:256,UQW:512,MZR:1024,h9O:2048,zE_:4096,k7y:8192,kz7:16384})));var tE=bu?JsA:"JXS",mkl={JXS:{value:0,configurable:!0,writable:!0,enumerable:!1}},JpD=Object.defineProperties;var xm={},CY,R2H=[];lu(R2H,55);CY=Object.freeze(R2H);var rEU=Object.freeze({});var OtL=Nx(function(X){return typeof X==="number"}),tV2=Nx(function(X){return typeof X==="string"}),liw=Nx(function(X){return typeof X==="boolean"}),jh=Nx(function(X){return X!=null&&typeof X==="object"&&typeof X.then==="function"}),Y0=Nx(function(X){return!!X&&(typeof X==="object"||typeof X==="function")});var uu=typeof g.UD.BigInt==="function"&&typeof g.UD.BigInt(0)==="bigint";var E5=Nx(function(X){return uu?X>=bjM&&X<=tD_:X[0]==="-"?MVl(X,Ojp):MVl(X,lSp)}),Ojp=Number.MIN_SAFE_INTEGER.toString(),bjM=uu?BigInt(Number.MIN_SAFE_INTEGER):void 0,lSp=Number.MAX_SAFE_INTEGER.toString(),tD_=uu?BigInt(Number.MAX_SAFE_INTEGER):void 0;var o5D=typeof Uint8Array.prototype.slice==="function",zo=0,BY=0,cVs;var jX=typeof BigInt==="function"?BigInt.asIntN:void 0,CAt=typeof BigInt==="function"?BigInt.asUintN:void 0,W9=Number.isSafeInteger,LY=Number.isFinite,aA=Math.trunc,NMD=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var mw;var O5,jRw;g.y=v5L.prototype;g.y.init=function(X,c,V,G){G=G===void 0?{}:G;this.mL=G.mL===void 0?!1:G.mL;X&&(X=xd(X),this.G=X.buffer,this.Z=X.dF,this.X=c||0,this.U=V!==void 0?this.X+V:this.G.length,this.J=this.X)}; +g.y.free=function(){this.clear();ti.length<100&&ti.push(this)}; +g.y.clear=function(){this.G=null;this.Z=!1;this.J=this.U=this.X=0;this.mL=!1}; +g.y.reset=function(){this.J=this.X}; +g.y.Hg=function(){var X=this.B;X||(X=this.G,X=this.B=new DataView(X.buffer,X.byteOffset,X.byteLength));return X}; +var ti=[];OW.prototype.free=function(){this.J.clear();this.G=this.X=-1;l1.length<100&&l1.push(this)}; +OW.prototype.reset=function(){this.J.reset();this.U=this.J.J;this.G=this.X=-1}; +var l1=[];g.y=NJ.prototype;g.y.toJSON=function(){return tV(this)}; +g.y.ys=function(X){return JSON.stringify(tV(this,X))}; +g.y.clone=function(){var X=this,c=X.RZ;X=new X.constructor(RA(c,c[tE]|0,fY,!0,!0));Mx(X.RZ,2);return X}; +g.y.dF=function(){return!!((this.RZ[tE]|0)&2)}; +g.y.h9=xm;g.y.toString=function(){return this.RZ.toString()};var lR8,g5l;u1.prototype.length=function(){return this.J.length}; +u1.prototype.end=function(){var X=this.J;this.J=[];return X};var SK=Dg(),MDA=Dg(),g1i=Dg(),fSi=Dg(),pwh=Dg(),ISU=Dg(),NsG=Dg(),ULU=Dg();var zGw=qJ(function(X,c,V,G,n){if(X.G!==2)return!1;gA(X,dA(c,G,V),n);return!0},Pu8),BQD=qJ(function(X,c,V,G,n){if(X.G!==2)return!1; +gA(X,dA(c,G,V),n);return!0},Pu8),Av=Symbol(),n7=Symbol(),yc=Symbol(),iSs=Symbol(),CuD=Symbol(),Xt,cH;var Tst=HH(function(X,c,V){if(X.G!==1)return!1;$8(c,V,RF(X.J));return!0},WH,NsG),ulh=HH(function(X,c,V){if(X.G!==1)return!1; +X=RF(X.J);$8(c,V,X===0?void 0:X);return!0},WH,NsG),POt=HH(function(X,c,V,G){if(X.G!==1)return!1; +GZ(c,V,G,RF(X.J));return!0},WH,NsG),z2_=HH(function(X,c,V){if(X.G!==0)return!1; +$8(c,V,oF(X.J));return!0},wD,pwh),Bst=HH(function(X,c,V){if(X.G!==0)return!1; +X=oF(X.J);$8(c,V,X===0?void 0:X);return!0},wD,pwh),KUh=HH(function(X,c,V,G){if(X.G!==0)return!1; +GZ(c,V,G,oF(X.J));return!0},wD,pwh),s8M=HH(function(X,c,V){if(X.G!==0)return!1; +$8(c,V,eK(X.J));return!0},Ft,fSi),COA=HH(function(X,c,V){if(X.G!==0)return!1; +X=eK(X.J);$8(c,V,X===0?void 0:X);return!0},Ft,fSi),DLG=HH(function(X,c,V,G){if(X.G!==0)return!1; +GZ(c,V,G,eK(X.J));return!0},Ft,fSi),SDz=HH(function(X,c,V){if(X.G!==1)return!1; +$8(c,V,mm(X.J));return!0},function(X,c,V){TQ2(X,V,Dkw(c))},ISU),ijh=ac(function(X,c,V){if(X.G!==1&&X.G!==2)return!1; +c=iy(c,c[tE]|0,V,!1);if(X.G==2)for(V=eK(X.J)>>>0,V=X.J.J+V;X.J.J>>0);return!0},function(X,c,V){c=AV(c); +c!=null&&c!=null&&(sW(X,V,0),zZ(X.J,c))},Dg()),Lzk=HH(function(X,c,V){if(X.G!==0)return!1; +$8(c,V,eK(X.J));return!0},function(X,c,V){c=hV(c); +c!=null&&(c=parseInt(c,10),sW(X,V,0),pYw(X.J,c))},Dg());duO.prototype.register=function(){FB(this)};g.E(hAL,NJ);g.E(rD,NJ);var k8=[1,2,3];var dkt=[0,k8,VVr,DLG,X7z];var ypG=[0,iM,[0,Tst,z2_]];g.E(Qc,NJ);var vH=[1,2,3];var h_A=[0,vH,KUh,POt,XA,ypG];g.E(Z1,NJ);var ApA=[0,iM,dkt,h_A];var YHk=[0,[1,2,3],XA,[0,Sc,-1,qDz],XA,[0,Sc,-1,s8M,qDz],XA,[0,Sc]];g.E(x8,NJ);x8.prototype.XO=function(){var X=s5(this,3,QB,3,!0);pS(X);return X[void 0]};x8.prototype.J=yVj([0,Sc,YHk,cpt,iM,ApA,SDz,ijh]);g.E(Y5w,NJ);var rVD=globalThis.trustedTypes,oc;Jv.prototype.toString=function(){return this.J+""};b6.prototype.toString=function(){return this.J}; +var xuL=new b6("about:invalid#zClosurez");var Rh2=l6("tel"),JTO=l6("sms"),ZY8=[l6("data"),l6("http"),l6("https"),l6("mailto"),l6("ftp"),new O9(function(X){return/^[^:]*([/?#]|$)/.test(X)})],vms=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;p7.prototype.toString=function(){return this.J+""};u6.prototype.toString=function(){return this.J+""};K7.prototype.toString=function(){return this.J};var C7={};g.jh_=String.prototype.repeat?function(X,c){return X.repeat(c)}:function(X,c){return Array(c+1).join(X)};g.y=n0.prototype;g.y.isEnabled=function(){if(!g.UD.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{UC:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; +g.y.set=function(X,c,V){var G=!1;if(typeof V==="object"){var n=V.fby;G=V.secure||!1;var L=V.domain||void 0;var d=V.path||void 0;var h=V.UC}if(/[;=\s]/.test(X))throw Error('Invalid cookie name "'+X+'"');if(/[;\r\n]/.test(c))throw Error('Invalid cookie value "'+c+'"');h===void 0&&(h=-1);V=L?";domain="+L:"";d=d?";path="+d:"";G=G?";secure":"";h=h<0?"":h==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+h*1E3)).toUTCString();this.J.cookie=X+"="+c+V+d+h+G+(n!=null?";samesite="+ +n:"")}; +g.y.get=function(X,c){for(var V=X+"=",G=(this.J.cookie||"").split(";"),n=0,L;n=0;c--)this.remove(X[c])}; +var Nl=new n0(typeof document=="undefined"?null:document);dn.prototype.compress=function(X){var c,V,G,n;return g.O(function(L){switch(L.J){case 1:return c=new CompressionStream("gzip"),V=(new Response(c.readable)).arrayBuffer(),G=c.writable.getWriter(),g.b(L,G.write((new TextEncoder).encode(X)),2);case 2:return g.b(L,G.close(),3);case 3:return n=Uint8Array,g.b(L,V,4);case 4:return L.return(new n(L.G))}})}; +dn.prototype.isSupported=function(X){return X<1024?!1:typeof CompressionStream!=="undefined"};g.E(yv,NJ);hN.prototype.setInterval=function(X){this.intervalMs=X;this.lf&&this.enabled?(this.stop(),this.start()):this.lf&&this.stop()}; +hN.prototype.start=function(){var X=this;this.enabled=!0;this.lf||(this.lf=setTimeout(function(){X.tick()},this.intervalMs),this.G=this.J())}; +hN.prototype.stop=function(){this.enabled=!1;this.lf&&(clearTimeout(this.lf),this.lf=void 0)}; +hN.prototype.tick=function(){var X=this;if(this.enabled){var c=Math.max(this.J()-this.G,0);c0?V:void 0));V=TB(V,4,yB(n>0?n:void 0));V=TB(V,5,yB(L>0?L:void 0));n=V.RZ;L=n[tE]|0;V=L&2?V:new V.constructor(RA(n,L,fY,!0,!0));Yd(d,HW,10,V)}d=this.J.clone();V=Date.now().toString();d=TB(d,4,FO(V));X=jK(d,Zc,3,X.slice());G&&(d=new AN,G=TB(d,13, +yB(G)),d=new Yb,G=Yd(d,AN,2,G),d=new rW,G=Yd(d,Yb,1,G),G=Qw(G,2,9),Yd(X,rW,18,G));c&&Fo(X,14,c);return X};var gdj=function(){if(!g.UD.addEventListener||!Object.defineProperty)return!1;var X=!1,c=Object.defineProperty({},"passive",{get:function(){X=!0}}); +try{var V=function(){}; +g.UD.addEventListener("test",V,c);g.UD.removeEventListener("test",V,c)}catch(G){}return X}();var qBs=Eds("AnimationEnd"),jb=Eds("TransitionEnd");g.oN.prototype.G=0;g.oN.prototype.reset=function(){this.J=this.U=this.X;this.G=0}; +g.oN.prototype.getValue=function(){return this.U};g.E(rit,NJ);var HtV=E9(rit);g.E(Lww,NJ);var Vh=new duO;g.E(RN,g.I);g.y=RN.prototype;g.y.R2=function(){m6(this);this.G.stop();this.wy.stop();g.I.prototype.R2.call(this)}; +g.y.dispatch=function(X){if(X instanceof Zc)this.log(X);else try{var c=new Zc,V=X.ys();var G=EW(c,8,V);this.log(G)}catch(n){bp(this,4,1)}}; +g.y.log=function(X){bp(this,2,1);if(this.Hl){X=X.clone();var c=this.LS++;X=Fo(X,21,c);this.componentId&&EW(X,26,this.componentId);c=X;if(QR2(c)==null){var V=Date.now();V=Number.isFinite(V)?V.toString():"0";TB(c,1,FO(V))}Kz8(Nu(c,15))!=null||Fo(c,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(V=this.experimentIds.clone(),Yd(c,yv,16,V));bp(this,1,1);c=this.J.length-1E3+1;c>0&&(this.J.splice(0,c),this.X+=c,bp(this,3,c));this.J.push(X);this.ZC||this.G.enabled||this.G.start()}}; +g.y.flush=function(X,c){var V=this;if(this.J.length===0)X&&X();else if(this.Pl&&this.G_)this.U.G=3,kZl(this);else{var G=Date.now();if(this.YO>G&&this.NW0&&(V.NW=Date.now(),V.YO=V.NW+v);var e;v=VA(km);bu&&v&&((e=w.RZ[v])==null?void 0:e[175237375])!=null&&e_D(mLU,3);e=Vh.J?Vh.G(w,Vh.J,175237375):Vh.G(w,175237375,null);if(e=e===null?void 0:e)e=hp(e,1,-1),e!==-1&&(V.Z=new g.oN(e< +1?1:e,3E5,.1),V.G.setInterval(V.Z.getValue()))}}X&&X();V.B=0},H=function(W,w){var F=Lt(L,Zc,3); +var Z;var v=(Z=Kz8(Nu(L,14)))!=null?Z:void 0;g.e6(V.Z);V.G.setInterval(V.Z.getValue());W===401&&d&&(V.QK=d);v&&(V.X+=v);w===void 0&&(w=V.isRetryable(W));w&&(V.J=F.concat(V.J),V.ZC||V.G.enabled||V.G.start());bp(V,7,1);c&&c("net-send-failed",W);++V.B},a=function(){V.network&&V.network.send(A,Y,H)}; +h?h.then(function(W){bp(V,5,n);A.requestHeaders["Content-Encoding"]="gzip";A.requestHeaders["Content-Type"]="application/binary";A.body=W;A.q7=2;a()},function(){bp(V,6,n); +a()}):a()}}}}; +g.y.isRetryable=function(X){return 500<=X&&X<600||X===401||X===0};t5.prototype.send=function(X,c,V){var G=this,n,L,d,h,A,Y,H,a,W,w;return g.O(function(F){switch(F.J){case 1:return L=(n=G.ST?new AbortController:void 0)?setTimeout(function(){n.abort()},X.timeoutMillis):void 0,g.x1(F,2,3),d=Object.assign({},{method:X.requestType, +headers:Object.assign({},X.requestHeaders)},X.body&&{body:X.body},X.withCredentials&&{credentials:"include"},{signal:X.timeoutMillis&&n?n.signal:null}),g.b(F,fetch(X.url,d),5);case 5:h=F.G;if(h.status!==200){(A=V)==null||A(h.status);F.Wl(3);break}if((Y=c)==null){F.Wl(7);break}return g.b(F,h.text(),8);case 8:Y(F.G);case 7:case 3:g.eD(F);clearTimeout(L);g.mU(F,0);break;case 2:H=g.o8(F);switch((a=H)==null?void 0:a.name){case "AbortError":(W=V)==null||W(408);break;default:(w=V)==null||w(400)}F.Wl(3)}})}; +t5.prototype.Jx=function(){return 4};g.E(O_,g.I);O_.prototype.S2=function(){this.Z=!0;return this}; +O_.prototype.build=function(){this.network||(this.network=new t5);var X=new RN({logSource:this.logSource,aM:this.aM?this.aM:uO1,sessionIndex:this.sessionIndex,PFh:this.yE,Y2:this.X,ZC:!1,S2:this.Z,sP:this.sP,network:this.network});g.N(this,X);if(this.G){var c=this.G,V=kE(X.U);EW(V,7,c)}X.D=new dn;this.componentId&&(X.componentId=this.componentId);this.Td&&(X.Td=this.Td);this.pageId&&(X.pageId=this.pageId);this.J&&((V=this.J)?(X.experimentIds||(X.experimentIds=new yv),c=X.experimentIds,V=V.ys(),EW(c, +4,V)):X.experimentIds&&TB(X.experimentIds,4));this.U&&(X.Pl=X.G_);FmU(X.U);this.network.EK&&this.network.EK(this.logSource);this.network.F8v&&this.network.F8v(X);return X};g.E(lp,g.I);lp.prototype.flush=function(X){X=X||[];if(X.length){for(var c=new Y5w,V=[],G=0;G-1?(c=X[d],V||(c.p7=!1)):(c=new OdS(c,this.src,L,!!G,n),c.p7=V,X.push(c));return c}; +g.y.remove=function(X,c,V,G){X=X.toString();if(!(X in this.listeners))return!1;var n=this.listeners[X];c=K_(n,c,V,G);return c>-1?(U_(n[c]),g.iA(n,c),n.length==0&&(delete this.listeners[X],this.J--),!0):!1}; +g.y.removeAll=function(X){X=X&&X.toString();var c=0,V;for(V in this.listeners)if(!X||V==X){for(var G=this.listeners[V],n=0;n-1?X[n]:null}; +g.y.hasListener=function(X,c){var V=X!==void 0,G=V?X.toString():"",n=c!==void 0;return g.kb(this.listeners,function(L){for(var d=0;d>>0);g.GG(g.Gd,g.I);g.Gd.prototype[bdl]=!0;g.y=g.Gd.prototype;g.y.addEventListener=function(X,c,V,G){g.C_(this,X,c,V,G)}; +g.y.removeEventListener=function(X,c,V,G){NA1(this,X,c,V,G)}; +g.y.dispatchEvent=function(X){var c=this.Cv;if(c){var V=[];for(var G=1;c;c=c.Cv)V.push(c),++G}c=this.rO;G=X.type||X;if(typeof X==="string")X=new g.p_(X,c);else if(X instanceof g.p_)X.target=X.target||c;else{var n=X;X=new g.p_(G,c);g.f0(X,n)}n=!0;var L;if(V)for(L=V.length-1;!X.G&&L>=0;L--){var d=X.currentTarget=V[L];n=nB(d,G,!0,X)&&n}X.G||(d=X.currentTarget=c,n=nB(d,G,!0,X)&&n,X.G||(n=nB(d,G,!1,X)&&n));if(V)for(L=0;!X.G&&L0){this.G--;var X=this.J;this.J=X.next;X.next=null}else X=this.U();return X};var yo;Au.prototype.add=function(X,c){var V=BAD.get();V.set(X,c);this.G?this.G.next=V:this.J=V;this.G=V}; +Au.prototype.remove=function(){var X=null;this.J&&(X=this.J,this.J=this.J.next,this.J||(this.G=null),X.next=null);return X}; +var BAD=new LB(function(){return new Yc},function(X){return X.reset()}); +Yc.prototype.set=function(X,c){this.J=X;this.scope=c;this.next=null}; +Yc.prototype.reset=function(){this.next=this.scope=this.J=null};var jm,HU=!1,P1O=new Au;C1w.prototype.reset=function(){this.context=this.G=this.U=this.J=null;this.X=!1}; +var DJD=new LB(function(){return new C1w},function(X){X.reset()}); +g.rL.prototype.then=function(X,c,V){return yvU(this,dL(typeof X==="function"?X:null),dL(typeof c==="function"?c:null),V)}; +g.rL.prototype.$goog_Thenable=!0;g.y=g.rL.prototype;g.y.finally=function(X){var c=this;X=dL(X);return new Promise(function(V,G){Vvj(c,function(n){X();V(n)},function(n){X(); +G(n)})})}; +g.y.Vr=function(X,c){return yvU(this,null,dL(X),c)}; +g.y.catch=g.rL.prototype.Vr;g.y.cancel=function(X){if(this.J==0){var c=new o3(X);g.a3(function(){GsD(this,c)},this)}}; +g.y.ACv=function(X){this.J=0;Ee(this,2,X)}; +g.y.ht7=function(X){this.J=0;Ee(this,3,X)}; +g.y.mP=function(){for(var X;X=n81(this);)LCD(this,X,this.J,this.D);this.B=!1}; +var jcs=QA;g.GG(o3,EH);o3.prototype.name="cancel";g.GG(g.em,g.Gd);g.y=g.em.prototype;g.y.enabled=!1;g.y.l3=null;g.y.setInterval=function(X){this.o$=X;this.l3&&this.enabled?(this.stop(),this.start()):this.l3&&this.stop()}; +g.y.jvR=function(){if(this.enabled){var X=g.c7()-this.jG;X>0&&X0&&(this.getStatus(),this.B=setTimeout(this.F0.bind(this), +this.G_)),this.getStatus(),this.C=!0,this.J.send(X),this.C=!1}catch(d){this.getStatus(),O0s(this,d)}}; +g.y.F0=function(){typeof qG!="undefined"&&this.J&&(this.X="Timed out after "+this.G_+"ms, aborting",this.G=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; +g.y.abort=function(X){this.J&&this.U&&(this.getStatus(),this.U=!1,this.Z=!0,this.J.abort(),this.Z=!1,this.G=X||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),iP(this))}; +g.y.R2=function(){this.J&&(this.U&&(this.U=!1,this.Z=!0,this.J.abort(),this.Z=!1),iP(this,!0));g.Sm.IP.R2.call(this)}; +g.y.k6=function(){this.vl()||(this.kO||this.C||this.Z?luS(this):this.bER())}; +g.y.bER=function(){luS(this)}; +g.y.isActive=function(){return!!this.J}; +g.y.isComplete=function(){return g.Xb(this)==4}; +g.y.getStatus=function(){try{return g.Xb(this)>2?this.J.status:-1}catch(X){return-1}}; +g.y.getResponseHeader=function(X){if(this.J&&this.isComplete())return X=this.J.getResponseHeader(X),X===null?void 0:X}; +g.y.getLastError=function(){return typeof this.X==="string"?this.X:String(this.X)};Ls.prototype.send=function(X,c,V){c=c===void 0?function(){}:c; +V=V===void 0?function(){}:V; +b0O(X.url,function(G){G=G.target;ca(G)?c(g.VJ(G)):V(G.getStatus())},X.requestType,X.body,X.requestHeaders,X.timeoutMillis,X.withCredentials)}; +Ls.prototype.Jx=function(){return 1};yJ.prototype.done=function(){this.logger.Fy(this.event,dw()-this.startTime)}; +g.E(h$,H7);g.E(Yp,h$);g.y=Yp.prototype;g.y.A3=function(){}; +g.y.qS=function(){}; +g.y.Fy=function(){}; +g.y.qY=function(){}; +g.y.qM=function(){}; +g.y.IK=function(X,c,V){return V}; +g.y.lM=function(){}; +g.y.g3=function(){}; +g.y.MZ=function(){}; +g.y.r9=function(){}; +g.E(jS,h$);g.y=jS.prototype;g.y.update=function(X){this.logger.dispose();this.logger=X}; +g.y.qS=function(X){this.logger.qS(X)}; +g.y.Fy=function(X,c){this.logger.Fy(X,c)}; +g.y.qY=function(X){this.logger.qY(X)}; +g.y.qM=function(){this.logger.qM()}; +g.y.IK=function(X,c,V){return this.logger.IK(X,c,V)}; +g.y.lM=function(X){this.logger.lM(X)}; +g.y.g3=function(X){this.logger.g3(X)}; +g.y.MZ=function(X){this.logger.MZ(X)}; +g.y.r9=function(X){this.logger.r9(X)}; +g.y.U$=function(X){this.logger instanceof $p&&this.logger.U$(X)}; +g.y.A3=function(X){this.logger.A3(X)}; +g.E(Ha,g.I);g.E(aj,h$);g.y=aj.prototype;g.y.U$=function(X){this.ox=X}; +g.y.A3=function(X){this.metrics.BJS.O2(X,this.zy)}; +g.y.qS=function(X){this.metrics.eventCount.PD(X,this.zy)}; +g.y.Fy=function(X,c){this.metrics.Px.O2(c,X,this.ox,this.zy)}; +g.y.qY=function(X){this.metrics.errorCount.PD(X,this.ox,this.zy)}; +g.y.IK=function(X,c,V){function G(d){if(!n.vl()){var h=dw()-L;n.metrics.cCS.O2(h,X,c,d,n.ox,n.zy)}} +var n=this,L=dw();V.then(function(){return void G(0)},function(d){return void G(d instanceof Oe?d.code:-1)}); +return V}; +g.y.lM=function(X){this.metrics.Q$O.PD(X,this.ox,this.zy)}; +g.y.g3=function(X){this.metrics.OV.PD(X,this.ox,this.zy)}; +g.y.MZ=function(X){this.metrics.tVR.PD(X,this.ox,this.zy)}; +g.E($p,aj);$p.prototype.r9=function(X){var c=this;this.J.dispose();this.G&&this.service.dispose();this.service=this.options.XN("47",this.options.qd.concat(X));this.J=new Ha(function(){return void c.service.V4()},this.options.f$); +this.metrics=fu1(this.service);this.U=X}; +$p.prototype.qM=function(){Iu8(this.J)};g.E(Wa,NJ);g.E(ww,NJ);g.E(Fb,NJ);var CU1=E9(Fb),U5w=function(X){return Nx(function(c){return c instanceof X&&!((c.RZ[tE]|0)&2)})}(Fb); +Fb.messageId="bfkj";g.E(yA,NJ);g.E(Ei,NJ);var TnL=E9(Ei);g.E(QJ,g.I);QJ.prototype.snapshot=function(X){if(this.vl())throw Error("Already disposed");this.logger.qS("n");var c=this.logger.share();return this.U.then(function(V){var G=V.VO;return new Promise(function(n){var L=new yJ(c,"n");G(function(d){L.done();c.A3(d.length);c.qM();c.dispose();n(d)},[X.VH, +X.uh,X.UU,X.HR])})})}; +QJ.prototype.BR=function(X){var c=this;if(this.vl())throw Error("Already disposed");this.logger.qS("n");var V=A$(this.logger,function(){return c.X([X.VH,X.uh,X.UU,X.HR])},"n"); +this.logger.A3(V.length);this.logger.qM();return V}; +QJ.prototype.Gb=function(X){this.U.then(function(c){var V;(V=c.jiv)==null||V(X)})}; +QJ.prototype.hp=function(){return this.logger.share()};g.E(kp,NJ);g.E(oj,NJ);J$.prototype.jf=function(X,c){return D5D(this,X,c,new Yp,0)}; +J$.prototype.Wp=function(X){return qzl(this,X,new Yp,0)};g.E(m_,g.I);m_.prototype.snapshot=function(X){var c=this;return g.O(function(V){switch(V.J){case 1:if(c.vl())throw Error("Already disposed");if(c.G||c.D){V.Wl(2);break}return g.b(V,c.Z.promise,2);case 2:if(!c.G){V.Wl(4);break}return g.b(V,c.G.snapshot(X),5);case 5:return V.return(V.G);case 4:throw c.D;}})}; +m_.prototype.Gb=function(X){var c,V;(c=this.G)==null||(V=c.Gb)==null||V.call(c,X)}; +m_.prototype.handleError=function(X){if(!this.vl()){this.D=X;this.Z.resolve();var c,V;(V=(c=this.options).div)==null||V.call(c,X)}}; +m_.prototype.hp=function(){return this.logger.share()}; +var V6s={xJ_:432E5,P6:3E5,B6:10,Bv:1E4,tK:3E4,BaW:3E4,NJ7:6E4,aO:1E3,FB:6E4,NU:6E5,Wx:.25,kW:2,maxAttempts:10};var WzG,jNl=(WzG=Math.imul)!=null?WzG:function(X,c){return X*c|0},Oi=[196, +200,224,18];lw.prototype.ys=function(){return String(this.J)+","+this.G.join()}; +lw.prototype.fl=function(X,c){var V=void 0;if(this.G[this.J]!==X){var G=this.G.indexOf(X);G!==-1?(this.G.splice(G,1),G0;)c[V++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(X%62),X=Math.floor(X/62);return c.join("")}};var kv2;g.E(gw,g.I);gw.prototype.LO=function(X,c){var V=this.bu(X);c==null||c(V);return A$(this.logger,function(){return g.rQ(V,2)},this.U)}; +kv2=Symbol.dispose;g.E(N4,gw);N4.prototype.bu=function(X,c){var V=this;this.logger.qS(this.J);++this.Z>=this.B&&this.G.resolve();var G=X();X=A$(this.logger,function(){return V.X(G)},"C"); +if(X===void 0)throw new nt(17,"YNJ:Undefined");if(!(X instanceof Uint8Array))throw new nt(18,"ODM:Invalid");c==null||c(X);return X}; +g.E(Ui,gw);Ui.prototype.bu=function(){return this.X}; +g.E(Tr,gw);Tr.prototype.bu=function(){var X=this;return A$(this.logger,function(){return ZR(X.X)},"d")}; +Tr.prototype.LO=function(){return this.X}; +g.E(uw,gw);uw.prototype.bu=function(){if(this.X)return this.X;this.X=oEs(this,function(X){return"_"+vEl(X)}); +return oEs(this,function(X){return X})}; +g.E(zr,gw);zr.prototype.bu=function(X){var c=X();if(c.length>118)throw new nt(19,"DFO:Invalid");X=Math.floor(Date.now()/1E3);var V=[Math.random()*255,Math.random()*255],G=V.concat([this.X&255,this.clientState],[X>>24&255,X>>16&255,X>>8&255,X&255]);X=new Uint8Array(2+G.length+c.length);X[0]=34;X[1]=G.length+c.length;X.set(G,2);X.set(c,2+G.length);c=X.subarray(2);for(G=V=V.length;G150))try{this.cache=new EEw(X,this.logger)}catch(c){this.reportError(new nt(22,"GBJ:init",c))}}; +Ba.prototype.reportError=function(X){this.logger.qY(X.code);this.onError(X);return X}; +g.E(Dp,Ba);Dp.prototype.Dz=function(){return this.X.promise}; +Dp.prototype.bu=function(X){return Ks(this,Object.assign({},X),!1)}; +Dp.prototype.LO=function(X){return Ks(this,Object.assign({},X),!0)}; +var lcs=function(X){return Nx(function(c){if(!Y0(c))return!1;for(var V=g.r(Object.entries(X)),G=V.next();!G.done;G=V.next()){var n=g.r(G.value);G=n.next().value;n=n.next().value;if(!(G in c)){if(n.TiO===!0)continue;return!1}if(!n(c[G]))return!1}return!0})}({JO:function(X){return Nx(function(c){return c instanceof X})}(m_)},"");g.E(iw,NJ);var w7M=E9(iw);fcj.prototype.getMetadata=function(){return this.metadata};q4.prototype.getMetadata=function(){return this.metadata}; +q4.prototype.getStatus=function(){return this.status};X9.prototype.D=function(X,c){c=c===void 0?{}:c;return new fcj(X,this,c)}; +X9.prototype.getName=function(){return this.name};var FzM=new X9("/google.internal.waa.v1.Waa/Create",kp,iw,function(X){return X.ys()},w7M);g.E(c0,NJ);var i0t=new X9("/google.internal.waa.v1.Waa/GenerateIT",oj,c0,function(X){return X.ys()},E9(c0));var j3s=new Set(["SAPISIDHASH","APISIDHASH"]);g.E(V4,NJ);V4.prototype.getValue=function(){var X=Nu(this,2);if(Array.isArray(X)||X instanceof NJ)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return D7(this,2)};g.E(Ga,NJ);Ga.prototype.getMessage=function(){return WN(this,2)}; +var uVs=E9(Ga);nc.prototype.sZ=function(X,c){X=="data"?this.U.push(c):X=="metadata"?this.Z.push(c):X=="status"?this.B.push(c):X=="end"?this.X.push(c):X=="error"&&this.G.push(c);return this}; +nc.prototype.removeListener=function(X,c){X=="data"?AW(this.U,c):X=="metadata"?AW(this.Z,c):X=="status"?AW(this.B,c):X=="end"?AW(this.X,c):X=="error"&&AW(this.G,c);return this}; +nc.prototype.cancel=function(){this.J.abort()}; +nc.prototype.cancel=nc.prototype.cancel;nc.prototype.removeListener=nc.prototype.removeListener;nc.prototype.on=nc.prototype.sZ;g.E(Ics,Error);g.GG(g.Ys,Qm2);g.Ys.prototype.J=function(){var X=new jG(this.X,this.U);this.G&&X.setCredentialsMode(this.G);return X}; +g.Ys.prototype.setCredentialsMode=function(X){this.G=X}; +g.GG(jG,g.Gd);g.y=jG.prototype;g.y.open=function(X,c){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.G_=X;this.C=c;this.readyState=1;H0(this)}; +g.y.send=function(X){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.J=!0;var c={headers:this.T,method:this.G_,credentials:this.Z,cache:void 0};X&&(c.body=X);(this.A7||g.UD).fetch(new Request(this.C,c)).then(this.bSS.bind(this),this.Iw.bind(this))}; +g.y.abort=function(){this.response=this.responseText="";this.T=new Headers;this.status=0;this.U&&this.U.cancel("Request was aborted.").catch(function(){}); +this.readyState>=1&&this.J&&this.readyState!=4&&(this.J=!1,an(this));this.readyState=0}; +g.y.bSS=function(X){if(this.J&&(this.X=X,this.G||(this.status=this.X.status,this.statusText=this.X.statusText,this.G=X.headers,this.readyState=2,H0(this)),this.J&&(this.readyState=3,H0(this),this.J)))if(this.responseType==="arraybuffer")X.arrayBuffer().then(this.plW.bind(this),this.Iw.bind(this));else if(typeof g.UD.ReadableStream!=="undefined"&&"body"in X){this.U=X.body.getReader();if(this.B){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.'); +this.response=[]}else this.response=this.responseText="",this.D=new TextDecoder;PpS(this)}else X.text().then(this.YyW.bind(this),this.Iw.bind(this))}; +g.y.wlR=function(X){if(this.J){if(this.B&&X.value)this.response.push(X.value);else if(!this.B){var c=X.value?X.value:new Uint8Array(0);if(c=this.D.decode(c,{stream:!X.done}))this.response=this.responseText+=c}X.done?an(this):H0(this);this.readyState==3&&PpS(this)}}; +g.y.YyW=function(X){this.J&&(this.response=this.responseText=X,an(this))}; +g.y.plW=function(X){this.J&&(this.response=X,an(this))}; +g.y.Iw=function(){this.J&&an(this)}; +g.y.setRequestHeader=function(X,c){this.T.append(X,c)}; +g.y.getResponseHeader=function(X){return this.G?this.G.get(X.toLowerCase())||"":""}; +g.y.getAllResponseHeaders=function(){if(!this.G)return"";for(var X=[],c=this.G.entries(),V=c.next();!V.done;)V=V.value,X.push(V[0]+": "+V[1]),V=c.next();return X.join("\r\n")}; +g.y.setCredentialsMode=function(X){this.Z=X}; +Object.defineProperty(jG.prototype,"withCredentials",{get:function(){return this.Z==="include"}, +set:function(X){this.setCredentialsMode(X?"include":"same-origin")}});g.$s.prototype.toString=function(){var X=[],c=this.Z;c&&X.push(Z4(c,EUz,!0),":");var V=this.J;if(V||c=="file")X.push("//"),(c=this.T)&&X.push(Z4(c,EUz,!0),"@"),X.push(g.i6(V).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),V=this.U,V!=null&&X.push(":",String(V));if(V=this.G)this.J&&V.charAt(0)!="/"&&X.push("/"),X.push(Z4(V,V.charAt(0)=="/"?rpt:QhH,!0));(V=this.X.toString())&&X.push("?",V);(V=this.B)&&X.push("#",Z4(V,Zt7));return X.join("")}; +g.$s.prototype.resolve=function(X){var c=this.clone(),V=!!X.Z;V?g.W0(c,X.Z):V=!!X.T;V?c.T=X.T:V=!!X.J;V?g.w6(c,X.J):V=X.U!=null;var G=X.G;if(V)g.F9(c,X.U);else if(V=!!X.G){if(G.charAt(0)!="/")if(this.J&&!this.G)G="/"+G;else{var n=c.G.lastIndexOf("/");n!=-1&&(G=c.G.slice(0,n+1)+G)}n=G;if(n==".."||n==".")G="";else if(g.oh(n,"./")||g.oh(n,"/.")){G=v7(n,"/");n=n.split("/");for(var L=[],d=0;d1||L.length==1&&L[0]!="")&&L.pop(), +G&&d==n.length&&L.push("")):(L.push(h),G=!0)}G=L.join("/")}else G=n}V?c.G=G:V=X.X.toString()!=="";V?E2(c,X.X.clone()):V=!!X.B;V&&(c.B=X.B);return c}; +g.$s.prototype.clone=function(){return new g.$s(this)}; +var EUz=/[#\/\?@]/g,QhH=/[#\?:]/g,rpt=/[#\?]/g,BWl=/[#\?@]/g,Zt7=/#/g;g.y=Q4.prototype;g.y.add=function(X,c){ks(this);this.U=null;X=on(this,X);var V=this.J.get(X);V||this.J.set(X,V=[]);V.push(c);this.G=this.G+1;return this}; +g.y.remove=function(X){ks(this);X=on(this,X);return this.J.has(X)?(this.U=null,this.G=this.G-this.J.get(X).length,this.J.delete(X)):!1}; +g.y.clear=function(){this.J=this.U=null;this.G=0}; +g.y.isEmpty=function(){ks(this);return this.G==0}; +g.y.forEach=function(X,c){ks(this);this.J.forEach(function(V,G){V.forEach(function(n){X.call(c,n,G,this)},this)},this)}; +g.y.VR=function(){ks(this);for(var X=Array.from(this.J.values()),c=Array.from(this.J.keys()),V=[],G=0;G0?String(X[0]):c}; +g.y.toString=function(){if(this.U)return this.U;if(!this.J)return"";for(var X=[],c=Array.from(this.J.keys()),V=0;V>>3;L.U!=1&&L.U!=2&&L.U!=15&&Rn(L,d,h,"unexpected tag");L.J=1;L.G=0;L.X=0} +function V(A){L.X++;L.X==5&&A&240&&Rn(L,d,h,"message length too long");L.G|=(A&127)<<(L.X-1)*7;A&128||(L.J=2,L.T=0,typeof Uint8Array!=="undefined"?L.Z=new Uint8Array(L.G):L.Z=Array(L.G),L.G==0&&n())} +function G(A){L.Z[L.T++]=A;L.T==L.G&&n()} +function n(){if(L.U<15){var A={};A[L.U]=L.Z;L.D.push(A)}L.J=0} +for(var L=this,d=X instanceof Array?X:new Uint8Array(X),h=0;h0?X:null};bm.prototype.isInputValid=function(){return this.J===null}; +bm.prototype.NJ=function(){return this.J}; +bm.prototype.aU=function(){return!1}; +bm.prototype.parse=function(X){this.J!==null&&XUU(this,X,"stream already broken");var c=null;try{var V=this.U;V.U||q_1(V,X,"stream already broken");V.J+=X;var G=Math.floor(V.J.length/4);if(G==0)var n=null;else{try{var L=Wzt(V.J.slice(0,G*4))}catch(d){q_1(V,V.J,d.message)}V.G+=G*4;V.J=V.J.slice(G*4);n=L}c=n===null?null:this.X.parse(n)}catch(d){XUU(this,X,d.message)}this.G+=X.length;return c};var vUi={INIT:0,bq:1,f2:2,gU:3,Q2:4,cw:5,STRING:6,TH:7,fC:8,Gq:9,A5:10,h5:11,XL:12,k$:13,FL:14,I6:15,zj:16,VM:17,yM:18,aB:19,gx:20};g.y=O2.prototype;g.y.isInputValid=function(){return this.Z!=3}; +g.y.NJ=function(){return this.C}; +g.y.done=function(){return this.Z===2}; +g.y.aU=function(){return!1}; +g.y.parse=function(X){function c(){for(;W0;)if(F=X[W++], +L.T===4?L.T=0:L.T++,!F)break a;if(F==='"'&&!L.D){L.J=G();break}if(F==="\\"&&!L.D&&(L.D=!0,F=X[W++],!F))break;if(L.D)if(L.D=!1,F==="u"&&(L.T=1),F=X[W++])continue;else break;h.lastIndex=W;F=h.exec(X);if(!F){W=X.length+1;break}W=F.index+1;F=X[F.index];if(!F)break}L.U+=W-Z;continue;case A.Gq:if(!F)continue;F==="r"?L.J=A.A5:lm(L,X,W);continue;case A.A5:if(!F)continue;F==="u"?L.J=A.h5:lm(L,X,W);continue;case A.h5:if(!F)continue;F==="e"?L.J=G():lm(L,X,W);continue;case A.XL:if(!F)continue;F==="a"?L.J=A.k$: +lm(L,X,W);continue;case A.k$:if(!F)continue;F==="l"?L.J=A.FL:lm(L,X,W);continue;case A.FL:if(!F)continue;F==="s"?L.J=A.I6:lm(L,X,W);continue;case A.I6:if(!F)continue;F==="e"?L.J=G():lm(L,X,W);continue;case A.zj:if(!F)continue;F==="u"?L.J=A.VM:lm(L,X,W);continue;case A.VM:if(!F)continue;F==="l"?L.J=A.yM:lm(L,X,W);continue;case A.yM:if(!F)continue;F==="l"?L.J=G():lm(L,X,W);continue;case A.aB:F==="."?L.J=A.gx:lm(L,X,W);continue;case A.gx:if("0123456789.eE+-".indexOf(F)!==-1)continue;else W--,L.U--,L.J= +G();continue;default:lm(L,X,W)}}} +function G(){var F=d.pop();return F!=null?F:A.bq} +function n(F){L.G>1||(F||(F=a===-1?L.X+X.substring(H,W):X.substring(a,W)),L.G_?L.B.push(F):L.B.push(JSON.parse(F)),a=W)} +for(var L=this,d=L.A7,h=L.kO,A=vUi,Y=X.length,H=0,a=-1,W=0;W0?(w=L.B,L.B=[],w):null}return null};In.prototype.isInputValid=function(){return this.Z===null}; +In.prototype.NJ=function(){return this.Z}; +In.prototype.aU=function(){return!1}; +In.prototype.parse=function(X){function c(A){L.G=6;L.Z="The stream is broken @"+L.J+"/"+d+". Error: "+A+". With input:\n";throw Error(L.Z);} +function V(){L.U=new O2({bNv:!0,dY:!0})} +function G(A){if(A)for(var Y=0;Y1)&&c("extra status: "+A);L.B=!0;var Y={};Y[2]=A[0];L.X.push(Y)}} +for(var L=this,d=0;d0?(X=L.X,L.X=[],X):null};NX.prototype.BZ=function(){return this.J}; +NX.prototype.getStatus=function(){return this.Z}; +NX.prototype.G_=function(X){X=X.target;try{if(X==this.J)a:{var c=g.Xb(this.J),V=this.J.G,G=this.J.getStatus(),n=g.VJ(this.J);X=[];if(g.Gr(this.J)instanceof Array){var L=g.Gr(this.J);L.length>0&&L[0]instanceof Uint8Array&&(this.C=!0,X=L)}if(!(c<3||c==3&&!n&&X.length==0))if(G=G==200||G==206,c==4&&(V==8?U2(this,7):V==7?U2(this,8):G||U2(this,3)),this.G||(this.G=cuO(this.J),this.G==null&&U2(this,5)),this.Z>2)Ta(this);else{if(X.length>this.U){var d=X.length;V=[];try{if(this.G.aU())for(var h=0;hthis.U){h=n.slice(this.U);this.U=n.length;try{var Y=this.G.parse(h);Y!=null&&this.X&&this.X(Y)}catch(H){U2(this,5);Ta(this);break a}}c==4?(n.length!= +0||this.C?U2(this,2):U2(this,4),Ta(this)):U2(this,1)}}}catch(H){U2(this,6),Ta(this)}};g.y=Vmj.prototype;g.y.sZ=function(X,c){var V=this.G[X];V||(V=[],this.G[X]=V);V.push(c);return this}; +g.y.addListener=function(X,c){this.sZ(X,c);return this}; +g.y.removeListener=function(X,c){var V=this.G[X];V&&g.qk(V,c);(X=this.J[X])&&g.qk(X,c);return this}; +g.y.once=function(X,c){var V=this.J[X];V||(V=[],this.J[X]=V);V.push(c);return this}; +g.y.r1y=function(X){var c=this.G.data;c&&Gdw(X,c);(c=this.J.data)&&Gdw(X,c);this.J.data=[]}; +g.y.HJl=function(){switch(this.U.getStatus()){case 1:um(this,"readable");break;case 5:case 6:case 4:case 7:case 3:um(this,"error");break;case 8:um(this,"close");break;case 2:um(this,"end")}};ncl.prototype.serverStreaming=function(X,c,V,G){var n=this,L=X.substring(0,X.length-G.name.length);return L22(function(d){var h=d.tS,A=d.getMetadata(),Y=hf8(n,!1);A=AuU(n,A,Y,L+h.getName());var H=Yes(Y,h.G,!0);d=h.J(d.uy);Y.send(A,"POST",d);return H},this.X).call(this,G.D(c,V))};HBD.prototype.create=function(X,c){return Sz2(this.J,this.G+"/$rpc/google.internal.waa.v1.Waa/Create",X,c||{},FzM)};var kGr=1,SG=new WeakMap;g.E(P0,g.I);P0.prototype.signal=function(){var X=new B0(!1);this.signals.add(X);g.N(this,X);return X}; +P0.prototype.wb=function(X){return za(this,X).wb()}; +g.E(B0,g.I);g.y=B0.prototype;g.y.Xl=function(){var X=this,c=kGr++;Kc(function(){ael(X,c)}); +return c}; +g.y.detach=function(X){var c=this;Kc(function(){var V=c.slots.get(X);V&&V.Qz()})}; +g.y.value=function(X){return this.promise(!0,X)}; +g.y.wb=function(){return this.gH}; +g.y.next=function(X){return this.promise(!1,X)}; +g.y.promise=function(X,c){var V=this,G=cvl();Kc(function(){if(V.vl())G.reject(new o3("Signal initially disposed"));else if(c&&c.vl())G.reject(new o3("Owner initially disposed"));else if(X&&V.jm&&V.CT)G.resolve(V.gH);else if(V.Dy.add(G),g.kc(G.promise,function(){V.Dy.delete(G)}),c){var n=function(){G.reject(new o3("Owner asynchronously disposed"))}; +g.kc(G.promise,function(){var L=SG.get(c);L&&g.qk(L,n)}); +wU2(c,n)}}); +return G.promise}; +g.y.R2=function(){var X=this;g.I.prototype.R2.call(this);Kc(function(){for(var c=g.r(X.slots.values()),V=c.next();!V.done;V=c.next())V=V.value.Qz,V();X.slots.clear();c=g.r(X.Dy);for(V=c.next();!V.done;V=c.next())V.value.reject(new o3("Signal asynchronously disposed"));X.Dy.clear()})}; +var Cc=[],D4=!1;g.E(im,g.I);im.prototype.start=function(){var X=this;if(this.vl())throw new Xy("Cannot start a disposed timer.");if(!this.B){this.X=0;if(this.D){var c=Date.now();this.handle=setInterval(function(){X.X=X.milliseconds>0?Math.trunc((Date.now()-c)/X.milliseconds):X.X+1;var V;(V=X.G)==null||V.resolve();X.G=void 0;if(X.U){var G;(G=X.J)!=null&&s2(za(G,X.U),X)}X.kU.s6(X)},this.milliseconds)}else this.handle=setTimeout(function(){X.state=3; +X.handle=void 0;X.X=1;var V;(V=X.G)==null||V.resolve();X.G=void 0;if(X.U){var G;(G=X.J)!=null&&s2(za(G,X.U),X)}X.kU.s6(X)},this.milliseconds); +this.state=1}}; +im.prototype.cancel=function(){if(this.B){this.clear();this.state=2;var X;(X=this.G)==null||X.reject(new qX);var c;(c=this.kU.T6)==null||c.call(this);if(this.Z){var V;(V=this.J)!=null&&s2(za(V,this.Z))}}}; +im.prototype.R2=function(){this.clear();var X;(X=this.G)==null||X.reject(new Xy);this.state=4;g.I.prototype.R2.call(this)}; +im.prototype.clear=function(){this.D?clearInterval(this.handle):clearTimeout(this.handle);this.handle=void 0}; +g.Y1.Object.defineProperties(im.prototype,{B:{configurable:!0,enumerable:!0,get:function(){return this.state===1}}, +isCancelled:{configurable:!0,enumerable:!0,get:function(){return this.state===2}}, +isExpired:{configurable:!0,enumerable:!0,get:function(){return this.state===3}}, +tick:{configurable:!0,enumerable:!0,get:function(){return this.X}}, +T:{configurable:!0,enumerable:!0,get:function(){switch(this.state){case 0:case 1:return this.G!=null||(this.G=new g.rw),this.G.promise;case 3:return Promise.resolve();case 2:return Promise.reject(new qX("Timer has been cancelled."));case 4:return Promise.reject(new Xy("Timer has been disposed."));default:VB(this.state)}}}, +s6:{configurable:!0,enumerable:!0,get:function(){if(this.vl())throw new Xy("Cannot attach a signal to a disposed timer.");this.U||(this.J!=null||(this.J=new P0(this)),this.U=this.J.signal());return this.U}}, +T6:{configurable:!0,enumerable:!0,get:function(){if(this.vl())throw new Xy("Cannot attach a signal to a disposed timer.");this.Z||(this.J!=null||(this.J=new P0(this)),this.Z=this.J.signal());return this.Z}}}); +g.E(qX,EH);g.E(Xy,EH);g.E(cF,Ba);g.y=cF.prototype;g.y.isReady=function(){return!!this.J}; +g.y.ready=function(){var X=this;return g.O(function(c){return g.b(c,X.U.promise,0)})}; +g.y.jf=function(X){return ruL(this,this.logger.IK("c",X===void 0?1:X,this.D6.jf(xp().J,null)),new nt(10,"JVZ:Timeout"))}; +g.y.prefetch=function(){this.state===1&&(this.eh=this.jf())}; +g.y.start=function(){if(this.state===1){this.state=2;var X=new yJ(this.logger,"r");this.ready().finally(function(){return void X.done()}); +ZBl(this)}}; +g.y.bu=function(X){xGl(this,X);return Ks(this,Ec2(X),!1)}; +g.y.LO=function(X){xGl(this,X);return Ks(this,Ec2(X),!0)};var efs={NONE:0,wc2:1},d4l={bR:0,StR:1,Zjh:2,DXO:3},It={xa:"a",mlW:"d",VIDEO:"v"};Gq.prototype.isVisible=function(){return this.gF?this.sH>=.3:this.sH>=.5};var at={JZy:0,dll:1},np1={NONE:0,eYW:1,VZ7:2};nN.prototype.getValue=function(){return this.G}; +g.E(LN,nN);LN.prototype.U=function(X){this.G===null&&g.Rm(this.X,X)&&(this.G=X)}; +g.E(dT,nN);dT.prototype.U=function(X){this.G===null&&typeof X==="number"&&(this.G=X)}; +g.E(y9,nN);y9.prototype.U=function(X){this.G===null&&typeof X==="string"&&(this.G=X)};hk.prototype.disable=function(){this.G=!1}; +hk.prototype.enable=function(){this.G=!0}; +hk.prototype.isEnabled=function(){return this.G}; +hk.prototype.reset=function(){this.J={};this.G=!0;this.U={}};var gS=document,Fy=window;var hCO=!g.Fn&&!TG();$r.prototype.now=function(){return 0}; +$r.prototype.G=function(){return 0}; +$r.prototype.U=function(){return 0}; +$r.prototype.J=function(){return 0};g.E(wT,$r);wT.prototype.now=function(){return WF()&&Fy.performance.now?Fy.performance.now():$r.prototype.now.call(this)}; +wT.prototype.G=function(){return WF()&&Fy.performance.memory?Fy.performance.memory.totalJSHeapSize||0:$r.prototype.G.call(this)}; +wT.prototype.U=function(){return WF()&&Fy.performance.memory?Fy.performance.memory.usedJSHeapSize||0:$r.prototype.U.call(this)}; +wT.prototype.J=function(){return WF()&&Fy.performance.memory?Fy.performance.memory.jsHeapSizeLimit||0:$r.prototype.J.call(this)};var Rf8=wL(function(){var X=!1;try{var c=Object.defineProperty({},"passive",{get:function(){X=!0}}); +g.UD.addEventListener("test",null,c)}catch(V){}return X});bBO.prototype.isVisible=function(){return Q9(gS)===1};var OB2={dmh:"allow-forms",gyR:"allow-modals",fH_:"allow-orientation-lock",j$c:"allow-pointer-lock",MVh:"allow-popups",lHh:"allow-popups-to-escape-sandbox",ztc:"allow-presentation",VVh:"allow-same-origin",yCh:"allow-scripts",KHS:"allow-top-navigation",CFl:"allow-top-navigation-by-user-activation"},fet=wL(function(){return leU()});var UG8=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");ot.prototype.Yc=function(X,c,V){X=X+"//"+c+V;var G=zfs(this)-V.length;if(G<0)return"";this.J.sort(function(Y,H){return Y-H}); +V=null;c="";for(var n=0;n=A.length){G-=A.length;X+=A;c=this.U;break}V=V==null?L:V}}G="";V!=null&&(G=""+c+"trn="+V);return X+G};l0.prototype.setInterval=function(X,c){return Fy.setInterval(X,c)}; +l0.prototype.clearInterval=function(X){Fy.clearInterval(X)}; +l0.prototype.setTimeout=function(X,c){return Fy.setTimeout(X,c)}; +l0.prototype.clearTimeout=function(X){Fy.clearTimeout(X)};g.E(gT,NJ);gT.prototype.J=yVj([0,ulh,Bst,-2,COA]);var L_L={kCc:1,Zr:2,S2_:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};y$l.prototype.aV=function(X){if(typeof X==="string"&&X.length!=0){var c=this.t1;if(c.G){X=X.split("&");for(var V=X.length-1;V>=0;V--){var G=X[V].split("="),n=decodeURIComponent(G[0]);G.length>1?(G=decodeURIComponent(G[1]),G=/^[0-9]+$/g.exec(G)?parseInt(G,10):G):G=1;(n=c.J[n])&&n.U(G)}}}};var Gf=null;var Tq=g.UD.performance,oUA=!!(Tq&&Tq.mark&&Tq.measure&&Tq.clearMarks),Nv=wL(function(){var X;if(X=oUA){var c=c===void 0?window:c;if(Gf===null){Gf="";try{X="";try{X=c.top.location.hash}catch(G){X=c.location.hash}if(X){var V=X.match(/\bdeid=([\d,]+)/);Gf=V?V[1]:""}}catch(G){}}c=Gf;X=!!c.indexOf&&c.indexOf("1337")>=0}return X}); +UA.prototype.disable=function(){this.J=!1;this.events!==this.G.google_js_reporting_queue&&(Nv()&&g.aR(this.events,apO),this.events.length=0)}; +UA.prototype.start=function(X,c){if(!this.J)return null;var V=jjO()||Yil();X=new Hsl(X,c,V);c="goog_"+X.label+"_"+X.uniqueId+"_start";Tq&&Nv()&&Tq.mark(c);return X}; +UA.prototype.end=function(X){if(this.J&&typeof X.value==="number"){var c=jjO()||Yil();X.duration=c-X.value;c="goog_"+X.label+"_"+X.uniqueId+"_end";Tq&&Nv()&&Tq.mark(c);!this.J||this.events.length>2048||this.events.push(X)}};$4L.prototype.S6=function(X,c,V,G,n){n=n||this.sR;try{var L=new ot;L.J.push(1);L.G[1]=ey("context",X);c.error&&c.meta&&c.id||(c=new BF(KN(c)));if(c.msg){var d=c.msg.substring(0,512);L.J.push(2);L.G[2]=ey("msg",d)}var h=c.meta||{};if(this.G4)try{this.G4(h)}catch(w){}if(G)try{G(h)}catch(w){}G=[h];L.J.push(3);L.G[3]=G;var A=u$s();if(A.G){var Y=A.G.url||"";L.J.push(4);L.G[4]=ey("top",Y)}var H={url:A.J.url||""};if(A.J.url){var a=A.J.url.match(I3);var W=fB(a[1],null,a[3],a[4])}else W="";Y=[H,{url:W}];L.J.push(5); +L.G[5]=Y;hls(this.J,n,L,V)}catch(w){try{hls(this.J,n,{context:"ecmserr",rctx:X,msg:KN(w),url:A&&A.J.url},V)}catch(F){}}return this.mV}; +g.E(BF,A$L);var PF,zq,u0=new UA;PF=new function(){var X="https:";Fy&&Fy.location&&Fy.location.protocol==="http:"&&(X="http:");this.G=X;this.J=.01}; +zq=new $4L;Fy&&Fy.document&&(Fy.document.readyState=="complete"?waU():u0.J&&rT(Fy,"load",function(){waU()}));var r$O=Date.now(),X5=-1,i0=-1,f41,cE=-1,qv=!1;g.y=VF.prototype;g.y.getHeight=function(){return this.bottom-this.top}; +g.y.clone=function(){return new VF(this.top,this.right,this.bottom,this.left)}; +g.y.contains=function(X){return this&&X?X instanceof VF?X.left>=this.left&&X.right<=this.right&&X.top>=this.top&&X.bottom<=this.bottom:X.x>=this.left&&X.x<=this.right&&X.y>=this.top&&X.y<=this.bottom:!1}; +g.y.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.y.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.y.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.y.scale=function(X,c){c=typeof c==="number"?c:X;this.left*=X;this.right*=X;this.top*=c;this.bottom*=c;return this};yF.prototype.w6=function(X,c){return!!X&&(!(c===void 0?0:c)||this.volume==X.volume)&&this.U==X.U&&ne(this.J,X.J)&&!0};AS.prototype.WP=function(){return this.D}; +AS.prototype.w6=function(X,c){return this.X.w6(X.X,c===void 0?!1:c)&&this.D==X.D&&ne(this.U,X.U)&&ne(this.B,X.B)&&this.J==X.J&&this.Z==X.Z&&this.G==X.G&&this.T==X.T};var e_H={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},R5={H$:"start",sD:"firstquartile",k_:"midpoint",v$:"thirdquartile",COMPLETE:"complete",ERROR:"error",XD:"metric",PAUSE:"pause",W$:"resume",P$:"skip",QO:"viewable_impression",IB:"mute",wO:"unmute",Tv:"fullscreen",ED:"exitfullscreen",Z7:"bufferstart",Qe:"bufferfinish",f5:"fully_viewable_audible_half_duration_impression",UA:"measurable_impression",PV:"abandon",iR:"engagedview",zv:"impression",rd:"creativeview",RB:"loaded", +NVR:"progress",CLOSE:"close",yfS:"collapse",V_O:"overlay_resize",yvS:"overlay_unmeasurable_impression",KOl:"overlay_unviewable_impression",oAS:"overlay_viewable_immediate_impression",C4y:"overlay_viewable_end_of_session_impression",p5:"custom_metric_viewable",HV:"audio_audible",BV:"audio_measurable",vV:"audio_impression"},stO="start firstquartile midpoint thirdquartile resume loaded".split(" "),C0O=["start","firstquartile","midpoint","thirdquartile"],I4U=["abandon"],D0={UNKNOWN:-1,H$:0,sD:1,k_:2, +v$:3,COMPLETE:4,XD:5,PAUSE:6,W$:7,P$:8,QO:9,IB:10,wO:11,Tv:12,ED:13,f5:14,UA:15,PV:16,iR:17,zv:18,rd:19,RB:20,p5:21,Z7:22,Qe:23,vV:27,BV:28,HV:29};var Zss={pE2:"addEventListener",KBR:"getMaxSize",Cwv:"getScreenSize",o3_:"getState",qQK:"getVersion",w5S:"removeEventListener",ooc:"isViewable"};g.y=g.jF.prototype;g.y.clone=function(){return new g.jF(this.left,this.top,this.width,this.height)}; +g.y.contains=function(X){return X instanceof g.wn?X.x>=this.left&&X.x<=this.left+this.width&&X.y>=this.top&&X.y<=this.top+this.height:this.left<=X.left&&this.left+this.width>=X.left+X.width&&this.top<=X.top&&this.top+this.height>=X.top+X.height}; +g.y.getSize=function(){return new g.Ez(this.width,this.height)}; +g.y.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; +g.y.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; +g.y.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; +g.y.scale=function(X,c){c=typeof c==="number"?c:X;this.left*=X;this.width*=X;this.top*=c;this.height*=c;return this};var opD={};MS2.prototype.update=function(X){X&&X.document&&(this.D=Yv(!1,X,this.isMobileDevice),this.J=Yv(!0,X,this.isMobileDevice),fps(this,X),gpD(this,X))};pe.prototype.cancel=function(){Mv().clearTimeout(this.J);this.J=null}; +pe.prototype.schedule=function(){var X=this,c=Mv(),V=pN().J.J;this.J=c.setTimeout(fN(V,CN(143,function(){X.G++;X.U.sample()})),Qjw())};g.y=Io.prototype;g.y.Cc=function(){return!1}; +g.y.initialize=function(){return this.isInitialized=!0}; +g.y.pU=function(){return this.J.Pl}; +g.y.t6=function(){return this.J.G_}; +g.y.Km=function(X,c){if(!this.G_||(c===void 0?0:c))this.G_=!0,this.Pl=X,this.T=0,this.J!=this||Uh(this)}; +g.y.getName=function(){return this.J.QK}; +g.y.XX=function(){return this.J.FW()}; +g.y.FW=function(){return{}}; +g.y.NR=function(){return this.J.T}; +g.y.UF=function(){var X=MB();X.J=Yv(!0,this.U,X.isMobileDevice)}; +g.y.XG=function(){gpD(MB(),this.U)}; +g.y.eR=function(){return this.X.J}; +g.y.sample=function(){}; +g.y.isActive=function(){return this.J.B}; +g.y.jF=function(X){var c=this.J;this.J=X.NR()>=this.T?X:this;c!==this.J?(this.B=this.J.B,Uh(this)):this.B!==this.J.B&&(this.B=this.J.B,Uh(this))}; +g.y.w0=function(X){if(X.G===this.J){var c=!this.X.w6(X,this.C);this.X=X;c&&Nwl(this)}}; +g.y.m3=function(){return this.C}; +g.y.dispose=function(){this.NW=!0}; +g.y.vl=function(){return this.NW};g.y=Tn.prototype;g.y.observe=function(){return!0}; +g.y.unobserve=function(){}; +g.y.z8=function(X){this.Z=X}; +g.y.dispose=function(){if(!this.vl()){var X=this.G;g.qk(X.Z,this);X.C&&this.m3()&&Ip8(X);this.unobserve();this.kO=!0}}; +g.y.vl=function(){return this.kO}; +g.y.XX=function(){return this.G.XX()}; +g.y.NR=function(){return this.G.NR()}; +g.y.pU=function(){return this.G.pU()}; +g.y.t6=function(){return this.G.t6()}; +g.y.jF=function(){}; +g.y.w0=function(){this.dl()}; +g.y.m3=function(){return this.NW};g.y=uF.prototype;g.y.NR=function(){return this.J.NR()}; +g.y.pU=function(){return this.J.pU()}; +g.y.t6=function(){return this.J.t6()}; +g.y.create=function(X,c,V){var G=null;this.J&&(G=this.OS(X,c,V),NB(this.J,G));return G}; +g.y.kY=function(){return this.oR()}; +g.y.oR=function(){return!1}; +g.y.init=function(X){return this.J.initialize()?(NB(this.J,this),this.X=X,!0):!1}; +g.y.jF=function(X){X.NR()==0&&this.X(X.pU(),this)}; +g.y.w0=function(){}; +g.y.m3=function(){return!1}; +g.y.dispose=function(){this.Z=!0}; +g.y.vl=function(){return this.Z}; +g.y.XX=function(){return{}};PE.prototype.add=function(X,c,V){++this.U;X=new TwL(X,c,V);this.J.push(new TwL(X.G,X.J,X.U+this.U/4096));this.G=!0;return this};K_1.prototype.toString=function(){var X="//pagead2.googlesyndication.com//pagead/gen_204",c=BE(this.J);c.length>0&&(X+="?"+c);return X};Ke.prototype.update=function(X,c,V){X&&(this.J+=c,this.G+=c,this.X+=c,this.U=Math.max(this.U,this.X));if(V===void 0?!X:V)this.X=0};var isw=[1,.75,.5,.3,0];sh.prototype.update=function(X,c,V,G,n,L){L=L===void 0?!0:L;c=n?Math.min(X,c):c;for(n=0;n0&&c>=d;d=!(X>0&&X>=d)||V;this.J[n].update(L&&h,G,!L||d)}};XG.prototype.update=function(X,c,V,G){this.D=this.D!=-1?Math.min(this.D,c.sH):c.sH;this.A7=Math.max(this.A7,c.sH);this.kO=this.kO!=-1?Math.min(this.kO,c.qQ):c.qQ;this.Pl=Math.max(this.Pl,c.qQ);this.qE.update(c.qQ,V.qQ,c.J,X,G);this.Hl+=X;c.sH===0&&(this.QK+=X);this.G.update(c.sH,V.sH,c.J,X,G);V=G||V.gF!=c.gF?V.isVisible()&&c.isVisible():V.isVisible();c=!c.isVisible()||c.J;this.LS.update(V,X,c)}; +XG.prototype.Qi=function(){return this.LS.U>=this.yK};if(gS&&gS.URL){var JpV=gS.URL,mkr;if(mkr=!!JpV){var R__;a:{if(JpV){var btz=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var nU=btz.exec(decodeURIComponent(JpV));if(nU){R__=nU[1]&&nU[1].length>1?nU[1].substring(1):"true";break a}}catch(X){}}R__=""}mkr=R__.length>0}zq.mV=!mkr};var tV_=new VF(0,0,0,0);var dX2=new VF(0,0,0,0);g.E(Lb,g.I);g.y=Lb.prototype; +g.y.R2=function(){if(this.Wc.J){if(this.qT.dN){var X=this.Wc.J;X.removeEventListener&&X.removeEventListener("mouseover",this.qT.dN,EA());this.qT.dN=null}this.qT.Ti&&(X=this.Wc.J,X.removeEventListener&&X.removeEventListener("mouseout",this.qT.Ti,EA()),this.qT.Ti=null)}this.Cz&&this.Cz.dispose();this.g$&&this.g$.dispose();delete this.O3;delete this.Dc;delete this.df;delete this.Wc.jK;delete this.Wc.J;delete this.qT;delete this.Cz;delete this.g$;delete this.t1;g.I.prototype.R2.call(this)}; +g.y.Ia=function(){return this.g$?this.g$.J:this.position}; +g.y.aV=function(X){pN().aV(X)}; +g.y.m3=function(){return!1}; +g.y.Eo=function(){return new XG}; +g.y.Qr=function(){return this.O3}; +g.y.W0=function(X){return Y2U(this,X,1E4)}; +g.y.pS=function(X,c,V,G,n,L,d){this.SK||(this.b8&&(X=this.HT(X,V,n,d),G=G&&this.mH.sH>=(this.gF()?.3:.5),this.KZ(L,X,G),this.KN=c,X.sH>0&&-1===this.uK&&(this.uK=c),this.wf==-1&&this.Qi()&&(this.wf=c),this.tH==-2&&(this.tH=GS(this.Ia())?X.sH:-1),this.mH=X),this.Dc(this))}; +g.y.KZ=function(X,c,V){this.Qr().update(X,c,this.mH,V)}; +g.y.U7=function(){return new Gq}; +g.y.HT=function(X,c,V,G){V=this.U7();V.J=c;c=Mv().G;c=Q9(gS)===0?-1:c.isVisible()?0:1;V.G=c;V.sH=this.jd(X);V.gF=this.gF();V.qQ=G;return V}; +g.y.jd=function(X){return this.opacity===0&&jy(this.t1,"opac")===1?0:X}; +g.y.gF=function(){return!1}; +g.y.XA=function(){return this.XP7||this.IQR}; +g.y.xD=function(){Sy()}; +g.y.M1=function(){Sy()}; +g.y.pN=function(){return 0}; +g.y.Qi=function(){return this.O3.Qi()}; +g.y.b5=function(){var X=this.b8;X=(this.hasCompleted||this.vl())&&!X;var c=pN().G!==2||this.CjO;return this.SK||c&&X?2:this.Qi()?4:3}; +g.y.Hp=function(){return 0};g.y1.prototype.next=function(){return g.LU}; +g.LU={done:!0,value:void 0};g.y1.prototype.P1=function(){return this};g.E(w0t,Gq);var dB=Esw([void 0,1,2,3,4,8,16]),yh=Esw([void 0,4,8,16]),Otk={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:j8("p0",yh),p1:j8("p1",yh),p2:j8("p2",yh),p3:j8("p3",yh),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:YQ("mtos1",[0,2,4],!1,yh),mtos2:YQ("mtos2",[0,2,4],!1,yh),mtos3:YQ("mtos3",[0,2,4],!1,yh),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:j8("a0",yh),a1:j8("a1",yh),a2:j8("a2",yh),a3:j8("a3",yh),ft:"ft",dft:"dft",at:"at",dat:"dat",as:"as", +vpt:"vpt",gmm:"gmm",std:"std",efpf:"efpf",swf:"swf",nio:"nio",px:"px",nnut:"nnut",vmer:"vmer",vmmk:"vmmk",vmiec:"vmiec",nmt:"nmt",tcm:"tcm",bt:"bt",pst:"pst",vpaid:"vpaid",dur:"dur",vmtime:"vmtime",dtos:"dtos",dtoss:"dtoss",dvs:"dvs",dfvs:"dfvs",dvpt:"dvpt",fmf:"fmf",vds:"vds",is:"is",i0:"i0",i1:"i1",i2:"i2",i3:"i3",ic:"ic",cs:"cs",c:"c",c0:j8("c0",yh),c1:j8("c1",yh),c2:j8("c2",yh),c3:j8("c3",yh),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:j8("qmtos",dB),qnc:j8("qnc",dB),qmv:j8("qmv",dB),qnv:j8("qnv",dB), +raf:"raf",rafc:"rafc",lte:"lte",ces:"ces",tth:"tth",femt:"femt",femvt:"femvt",emc:"emc",emuc:"emuc",emb:"emb",avms:"avms",nvat:"nvat",qi:"qi",psm:"psm",psv:"psv",psfv:"psfv",psa:"psa",pnk:"pnk",pnc:"pnc",pnmm:"pnmm",pns:"pns",ptlt:"ptlt",pngs:"pings",veid:"veid",ssb:"ssb",ss0:j8("ss0",yh),ss1:j8("ss1",yh),ss2:j8("ss2",yh),ss3:j8("ss3",yh),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids",omidpv:"omidpv",omidam:"omidam",omidct:"omidct",omidia:"omidia", +omiddc:"omiddc",omidlat:"omidlat",omiddit:"omiddit",nopd:"nopd",co:"co",tm:"tm",tu:"tu"},li7=Object.assign({},Otk,{avid:$c("audio"),avas:"avas",vs:"vs"}),MVr={atos:"atos",avt:YQ("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(X,c){return function(V){return V[X]===void 0&&c!==void 0?c:V[X]}}("ss",0), +t:"t"};WI.prototype.getValue=function(){return this.G}; +WI.prototype.update=function(X,c){X>=32||(this.J&1<=.5;Oh(c.volume)&&(this.X=this.X!=-1?Math.min(this.X,c.volume):c.volume,this.B=Math.max(this.B,c.volume));L&&(this.NW+=X,this.C+=n?X:0);this.J.update(c.sH,V.sH,c.J,X,G,n);this.U.update(!0,X);this.Z.update(n,X);this.G_.update(V.fullscreen,X);this.o2.update(n&&!L,X);X=Math.floor(c.mediaTime/1E3);this.wy.update(X,c.isVisible());this.T_.update(X,c.sH>=1);this.fS.update(X, +Ae(c))}};kas.prototype.G=function(X){this.U||(this.J(X)?(X=gr8(this.C,this.X,X),this.Z|=X,X=X==0):X=!1,this.U=X)};g.E(EI,kas);EI.prototype.J=function(){return!0}; +EI.prototype.B=function(){return!1}; +EI.prototype.getId=function(){var X=this,c=bU(R5,function(V){return V==X.X}); +return D0[c].toString()}; +EI.prototype.toString=function(){var X="";this.B()&&(X+="c");this.U&&(X+="s");this.Z>0&&(X+=":"+this.Z);return this.getId()+X};g.E(rz,EI);rz.prototype.G=function(X,c){c=c===void 0?null:c;c!=null&&this.D.push(c);EI.prototype.G.call(this,X)};g.E(Q1,oss);Q1.prototype.G=function(){return null}; +Q1.prototype.U=function(){return[]};g.E(Z0,Tn);g.y=Z0.prototype;g.y.BT=function(){if(this.element){var X=this.element,c=this.G.J.U;try{try{var V=tS1(X.getBoundingClientRect())}catch(Y){V=new VF(0,0,0,0)}var G=V.right-V.left,n=V.bottom-V.top,L=m4w(X,c),d=L.x,h=L.y;var A=new VF(Math.round(h),Math.round(d+G),Math.round(h+n),Math.round(d))}catch(Y){A=tV_.clone()}this.U=A;this.J=U4O(this,this.U)}}; +g.y.Mw=function(){this.B=this.G.X.J}; +g.y.Da=function(X){var c=jy(this.t1,"od")==1;return LY1(X,this.B,this.element,c)}; +g.y.lz=function(){this.timestamp=Sy()}; +g.y.dl=function(){this.lz();this.BT();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var X=this.element;var c=new g.Ez(X.videoWidth,X.videoHeight);X=this.J;var V=Gn(X),G=X.getHeight(),n=c.width;c=c.height;n<=0||c<=0||V<=0||G<=0||(n/=c,c=V/G,X=X.clone(),n>c?(V/=n,G=(G-V)/2,G>0&&(G=X.top+G,X.top=Math.round(G),X.bottom=Math.round(G+V))):(G*=n,V=Math.round((V-G)/2),V>0&&(V=X.left+V,X.left=Math.round(V),X.right=Math.round(V+G))));this.J=X}this.Mw(); +X=this.J;V=this.B;X=X.left<=V.right&&V.left<=X.right&&X.top<=V.bottom&&V.top<=X.bottom?new VF(Math.max(X.top,V.top),Math.min(X.right,V.right),Math.min(X.bottom,V.bottom),Math.max(X.left,V.left)):new VF(0,0,0,0);V=X.top>=X.bottom||X.left>=X.right?new VF(0,0,0,0):X;X=this.G.X;c=n=G=0;if((this.J.bottom-this.J.top)*(this.J.right-this.J.left)>0)if(this.Da(V))V=new VF(0,0,0,0);else{G=MB().X;c=new VF(0,G.height,G.width,0);var L;G=nb(V,(L=this.Z)!=null?L:this.J);n=nb(V,MB().J);c=nb(V,c)}L=V.top>=V.bottom|| +V.left>=V.right?new VF(0,0,0,0):Le(V,-this.J.left,-this.J.top);fe()||(n=G=0);this.C=new AS(X,this.element,this.J,L,G,n,this.timestamp,c)}; +g.y.getName=function(){return this.G.getName()};var gUM=new VF(0,0,0,0);g.E(xQ,Z0);g.y=xQ.prototype;g.y.observe=function(){this.X();return!0}; +g.y.w0=function(){Z0.prototype.dl.call(this)}; +g.y.lz=function(){}; +g.y.BT=function(){}; +g.y.dl=function(){this.X();Z0.prototype.dl.call(this)}; +g.y.jF=function(X){X=X.isActive();X!==this.T&&(X?this.X():(MB().J=new VF(0,0,0,0),this.J=new VF(0,0,0,0),this.B=new VF(0,0,0,0),this.timestamp=-1));this.T=X};var hJ={},gsU=(hJ.firstquartile=0,hJ.midpoint=1,hJ.thirdquartile=2,hJ.complete=3,hJ);g.E(kQ,Lb);g.y=kQ.prototype;g.y.m3=function(){return!0}; +g.y.RX=function(){return this.Eg==2}; +g.y.W0=function(X){return Y2U(this,X,Math.max(1E4,this.U/3))}; +g.y.pS=function(X,c,V,G,n,L,d){var h=this,A=this.D(this)||{};g.f0(A,n);this.U=A.duration||this.U;this.C=A.isVpaid||this.C;this.QK=A.isYouTube||this.QK;Mv();this.qE=!1;n=JWL(this,c);eCD(this)===1&&(L=n);Lb.prototype.pS.call(this,X,c,V,G,A,L,d);this.ri&&this.ri.U&&g.aR(this.B,function(Y){Y.G(h)})}; +g.y.KZ=function(X,c,V){Lb.prototype.KZ.call(this,X,c,V);Je(this).update(X,c,this.mH,V);this.yK=Ae(this.mH)&&Ae(c);this.Pl==-1&&this.T_&&(this.Pl=this.Qr().U.J);this.VQ.U=0;X=this.Qi();c.isVisible()&&$Q(this.VQ,"vs");X&&$Q(this.VQ,"vw");Oh(c.volume)&&$Q(this.VQ,"am");Ae(c)?$Q(this.VQ,"a"):$Q(this.VQ,"mut");this.AB&&$Q(this.VQ,"f");c.G!=-1&&($Q(this.VQ,"bm"),c.G==1&&($Q(this.VQ,"b"),Ae(c)&&$Q(this.VQ,"umutb")));Ae(c)&&c.isVisible()&&$Q(this.VQ,"avs");this.yK&&X&&$Q(this.VQ,"avw");c.sH>0&&$Q(this.VQ, +"pv");mh(this,this.Qr().U.J,!0)&&$Q(this.VQ,"gdr");iF(this.Qr().G,1)>=2E3&&$Q(this.VQ,"pmx");this.qE&&$Q(this.VQ,"tvoff")}; +g.y.Eo=function(){return new wz}; +g.y.Qr=function(){return this.O3}; +g.y.U7=function(){return new w0t}; +g.y.HT=function(X,c,V,G){X=Lb.prototype.HT.call(this,X,c,V,G===void 0?-1:G);X.fullscreen=this.AB;X.paused=this.RX();X.volume=V.volume;Oh(X.volume)||(this.hX++,c=this.mH,Oh(c.volume)&&(X.volume=c.volume));V=V.currentTime;X.mediaTime=V!==void 0&&V>=0?V:-1;return X}; +g.y.jd=function(X){return MB(),this.AB?1:Lb.prototype.jd.call(this,X)}; +g.y.pN=function(){return 1}; +g.y.getDuration=function(){return this.U}; +g.y.b5=function(){return this.SK?2:RCD(this)?5:this.Qi()?4:3}; +g.y.Hp=function(){return this.o2?this.Qr().Z.U>=2E3?4:3:2}; +g.y.z8=function(X){this.g$&&this.g$.z8(X)};var fiA=g.c7();KYO.prototype.reset=function(){this.J=[];this.G=[]}; +var MP=OA(KYO);g.E(pb,uF);g.y=pb.prototype;g.y.getName=function(){return(this.G?this.G:this.J).getName()}; +g.y.XX=function(){return(this.G?this.G:this.J).XX()}; +g.y.NR=function(){return(this.G?this.G:this.J).NR()}; +g.y.init=function(X){var c=!1;(0,g.aR)(this.U,function(V){V.initialize()&&(c=!0)}); +c&&(this.X=X,NB(this.J,this));return c}; +g.y.dispose=function(){(0,g.aR)(this.U,function(X){X.dispose()}); +uF.prototype.dispose.call(this)}; +g.y.kY=function(){return lF(this.U,function(X){return X.Cc()})}; +g.y.oR=function(){return lF(this.U,function(X){return X.Cc()})}; +g.y.OS=function(X,c,V){return new Z0(X,this.J,c,V)}; +g.y.w0=function(X){this.G=X.G};var VyD={threshold:[0,.3,.5,.75,1]};g.E(I5,Z0);g.y=I5.prototype;g.y.observe=function(){var X=this;this.A7||(this.A7=Sy());if(Ep2(298,function(){return Gq2(X)}))return!0; +this.G.Km("msf");return!1}; +g.y.unobserve=function(){if(this.X&&this.element)try{this.X.unobserve(this.element),this.T?(this.T.unobserve(this.element),this.T=null):this.D&&(this.D.disconnect(),this.D=null)}catch(X){}}; +g.y.dl=function(){var X=NP(this);X.length>0&&UI(this,X);Z0.prototype.dl.call(this)}; +g.y.BT=function(){}; +g.y.Da=function(){return!1}; +g.y.Mw=function(){}; +g.y.XX=function(){var X={};return Object.assign(this.G.XX(),(X.niot_obs=this.A7,X.niot_cbk=this.G_,X))}; +g.y.getName=function(){return"nio"};g.E(TS,uF);TS.prototype.getName=function(){return"nio"}; +TS.prototype.oR=function(){return!MB().G&&this.J.J.U.IntersectionObserver!=null}; +TS.prototype.OS=function(X,c,V){return new I5(X,this.J,c,V)};g.E(uv,Io);uv.prototype.eR=function(){return MB().J}; +uv.prototype.Cc=function(){var X=LiD();this.T!==X&&(this.J!=this&&X>this.J.T&&(this.J=this,Uh(this)),this.T=X);return X==2};PI.prototype.sample=function(){Kb(this,gz(),!1)}; +PI.prototype.X=function(){var X=fe(),c=Sy();X?(qv||(X5=c,g.aR(MP.J,function(V){var G=V.Qr();G.YO=FG(G,c,V.Eg!=1)})),qv=!0):(this.D=YAS(this,c),qv=!1,f41=c,g.aR(MP.J,function(V){V.b8&&(V.Qr().T=c)})); +Kb(this,gz(),!X)}; +var zS=OA(PI);var HNw=null,wb="",WL=!1;var Wiw=$vS().Ff,Cb=$vS().Ie;var Ers={g3v:"visible",vRy:"audible",Xzh:"time",kfy:"timetype"},rkl={visible:function(X){return/^(100|[0-9]{1,2})$/.test(X)}, +audible:function(X){return X=="0"||X=="1"}, +timetype:function(X){return X=="mtos"||X=="tos"}, +time:function(X){return/^(100|[0-9]{1,2})%$/.test(X)||/^([0-9])+ms$/.test(X)}}; +Fil.prototype.setTime=function(X,c,V){c=="ms"?(this.U=X,this.X=-1):(this.U=-1,this.X=X);this.Z=V===void 0?"tos":V;return this};g.E(qP,EI);qP.prototype.getId=function(){return this.D}; +qP.prototype.B=function(){return!0}; +qP.prototype.J=function(X){var c=X.Qr(),V=X.getDuration();return lF(this.T,function(G){if(G.J!=void 0)var n=ZND(G,c);else b:{switch(G.Z){case "mtos":n=G.G?c.Z.U:c.U.J;break b;case "tos":n=G.G?c.Z.J:c.U.J;break b}n=0}n==0?G=!1:(G=G.U!=-1?G.U:V!==void 0&&V>0?G.X*V:-1,G=G!=-1&&n>=G);return G})};g.E(XK,Qnl);XK.prototype.J=function(X){var c=new rWU;c.J=a5(X,Otk);c.G=a5(X,MVr);return c};g.E(cL,EI);cL.prototype.J=function(X){return RCD(X)};g.E(Vr,oss);g.E(GK,EI);GK.prototype.J=function(X){return X.Qr().Qi()};g.E(nO,rz);nO.prototype.J=function(X){var c=g.SV(this.D,jy(pN().t1,"ovms"));return!X.SK&&(X.Eg!=0||c)};g.E(LO,Vr);LO.prototype.G=function(){return new nO(this.J)}; +LO.prototype.U=function(){return[new GK("viewable_impression",this.J),new cL(this.J)]};g.E(db,xQ);db.prototype.X=function(){var X=g.Pw("ima.admob.getViewability"),c=jy(this.t1,"queryid");typeof X==="function"&&c&&X(c)}; +db.prototype.getName=function(){return"gsv"};g.E(yr,uF);yr.prototype.getName=function(){return"gsv"}; +yr.prototype.oR=function(){var X=MB();pN();return X.G&&!1}; +yr.prototype.OS=function(X,c,V){return new db(this.J,c,V)};g.E(hB,xQ);hB.prototype.X=function(){var X=this,c=g.Pw("ima.bridge.getNativeViewability"),V=jy(this.t1,"queryid");typeof c==="function"&&V&&c(V,function(G){g.tN(G)&&X.D++;var n=G.opt_nativeViewVisibleBounds||{},L=G.opt_nativeViewHidden;X.J=Oss(G.opt_nativeViewBounds||{});var d=X.G.X;d.J=L?gUM.clone():Oss(n);X.timestamp=G.opt_nativeTime||-1;MB().J=d.J;G=G.opt_nativeVolume;G!==void 0&&(d.volume=G)})}; +hB.prototype.getName=function(){return"nis"};g.E(AB,uF);AB.prototype.getName=function(){return"nis"}; +AB.prototype.oR=function(){var X=MB();pN();return X.G&&!1}; +AB.prototype.OS=function(X,c,V){return new hB(this.J,c,V)};g.E(YG,Io);g.y=YG.prototype;g.y.Cc=function(){return this.G.IX!=null}; +g.y.FW=function(){var X={};this.wy&&(X.mraid=this.wy);this.kO&&(X.mlc=1);X.mtop=this.G.x$l;this.D&&(X.mse=this.D);this.Hl&&(X.msc=1);X.mcp=this.G.compatibility;return X}; +g.y.tF=function(X){var c=g.OD.apply(1,arguments);try{return this.G.IX[X].apply(this.G.IX,c)}catch(V){Dw(538,V,.01,function(G){G.method=X})}}; +g.y.initialize=function(){var X=this;if(this.isInitialized)return!this.t6();this.isInitialized=!0;if(this.G.compatibility===2)return this.D="ng",this.Km("w"),!1;if(this.G.compatibility===1)return this.D="mm",this.Km("w"),!1;MB().T=!0;this.U.document.readyState&&this.U.document.readyState=="complete"?ors(this):V1(this.U,"load",function(){Mv().setTimeout(CN(292,function(){return ors(X)}),100)},292); +return!0}; +g.y.UF=function(){var X=MB(),c=bND(this,"getMaxSize");X.J=new VF(0,c.width,c.height,0)}; +g.y.XG=function(){MB().X=bND(this,"getScreenSize")}; +g.y.dispose=function(){Jk8(this);Io.prototype.dispose.call(this)};var VSl=new function(X,c){this.key=X;this.defaultValue=c===void 0?!1:c;this.valueType="boolean"}("45378663");g.y=HL.prototype;g.y.K7=function(X){dz(X,!1);S2t(X)}; +g.y.Of=function(){}; +g.y.I3=function(X,c,V,G){var n=this;X=new kQ(Fy,X,V?c:-1,7,this.J_(),this.ul());X.Af=G;kdD(X.t1);Yr(X.t1,"queryid",X.Af);X.aV("");a4l(X,function(){return n.gt.apply(n,g.x(g.OD.apply(0,arguments)))},function(){return n.iS7.apply(n,g.x(g.OD.apply(0,arguments)))}); +(G=OA(fb).J)&&AWl(X,G);this.U&&(X.z8(this.U),this.U=null);X.Wc.jK&&OA(dvL);return X}; +g.y.jF=function(X){switch(X.NR()){case 0:if(X=OA(fb).J)X=X.J,g.qk(X.Z,this),X.C&&this.m3()&&Ip8(X);$G();break;case 2:BI()}}; +g.y.w0=function(){}; +g.y.m3=function(){return!1}; +g.y.iS7=function(X,c){X.SK=!0;switch(X.pN()){case 1:fwl(X,c);break;case 2:this.w2(X)}}; +g.y.MvS=function(X){var c=X.D(X);c&&(c=c.volume,X.o2=Oh(c)&&c>0);Oct(X,0);return bv(X,"start",fe())}; +g.y.Pw=function(X,c,V){Kb(zS,[X],!fe());return this.Yw(X,c,V)}; +g.y.Yw=function(X,c,V){return bv(X,V,fe())}; +g.y.Tyy=function(X){return Qr(X,"firstquartile",1)}; +g.y.gO2=function(X){X.T_=!0;return Qr(X,"midpoint",2)}; +g.y.lR2=function(X){return Qr(X,"thirdquartile",3)}; +g.y.EOh=function(X){var c=Qr(X,"complete",4);o5(X);return c}; +g.y.nOR=function(X){X.Eg=3;return bv(X,"error",fe())}; +g.y.vB=function(X,c,V){c=fe();if(X.RX()&&!c){var G=X.Qr(),n=Sy();G.T=n}Kb(zS,[X],!c);X.RX()&&(X.Eg=1);return bv(X,V,c)}; +g.y.j2l=function(X,c){c=this.Pw(X,c||{},"skip");o5(X);return c}; +g.y.dWR=function(X,c){dz(X,!0);return this.Pw(X,c||{},"fullscreen")}; +g.y.s2y=function(X,c){dz(X,!1);return this.Pw(X,c||{},"exitfullscreen")}; +g.y.Ju=function(X,c,V){c=X.Qr();var G=Sy();c.YO=FG(c,G,X.Eg!=1);Kb(zS,[X],!fe());X.Eg==1&&(X.Eg=2);return bv(X,V,fe())}; +g.y.fRO=function(X){Kb(zS,[X],!fe());return X.G()}; +g.y.pk=function(X){Kb(zS,[X],!fe());this.aH(X);o5(X);return X.G()}; +g.y.gt=function(){}; +g.y.w2=function(){}; +g.y.aH=function(){}; +g.y.FG=function(){}; +g.y.GG=function(){}; +g.y.ul=function(){this.J||(this.J=this.GG());return this.J==null?new Q1:new LO(this.J)}; +g.y.J_=function(){return new XK};g.E(Zm,EI);Zm.prototype.J=function(X){return X.Hp()==4};g.E(kG,rz);kG.prototype.J=function(X){X=X.Hp();return X==3||X==4};g.E(en,Vr);en.prototype.G=function(){return new kG(this.J)}; +en.prototype.U=function(){return[new Zm(this.J)]};g.E(JB,Qnl);JB.prototype.J=function(X){X&&(X.e===28&&(X=Object.assign({},X,{avas:3})),X.vs===4||X.vs===5)&&(X=Object.assign({},X,{vs:3}));var c=new rWU;c.J=a5(X,li7);c.G=a5(X,MVr);return c};Uv1.prototype.G=function(){return g.Pw(this.J)};g.E(ml,HL);g.y=ml.prototype;g.y.Of=function(X,c){var V=this,G=OA(fb);if(G.J!=null)switch(G.J.getName()){case "nis":var n=zas(this,X,c);break;case "gsv":n=P0j(this,X,c);break;case "exc":n=BTj(this,X)}n||(c.opt_overlayAdElement?n=void 0:c.opt_adElement&&(n=IwO(this,X,c.opt_adElement,c.opt_osdId)));n&&n.pN()==1&&(n.D==g.WU&&(n.D=function(L){return V.FG(L)}),uyL(this,n,c)); +return n}; +g.y.FG=function(X){X.G=0;X.NW=0;if(X.X=="h"||X.X=="n"){pN();X.fS&&(pN(),EV(this)!="h"&&EV(this));var c=g.Pw("ima.common.getVideoMetadata");if(typeof c==="function")try{var V=c(X.Af)}catch(n){X.G|=4}else X.G|=2}else if(X.X=="b")if(c=g.Pw("ytads.bulleit.getVideoMetadata"),typeof c==="function")try{V=c(X.Af)}catch(n){X.G|=4}else X.G|=2;else if(X.X=="ml")if(c=g.Pw("ima.common.getVideoMetadata"),typeof c==="function")try{V=c(X.Af)}catch(n){X.G|=4}else X.G|=2;else X.G|=1;X.G||(V===void 0?X.G|=8:V===null? +X.G|=16:g.tN(V)?X.G|=32:V.errorCode!=null&&(X.NW=V.errorCode,X.G|=64));V==null&&(V={});c=V;X.T=0;for(var G in e_H)c[G]==null&&(X.T|=e_H[G]);NTj(c,"currentTime");NTj(c,"duration");Oh(V.volume)&&Oh()&&(V.volume*=NaN);return V}; +g.y.GG=function(){pN();EV(this)!="h"&&EV(this);var X=Kil(this);return X!=null?new Uv1(X):null}; +g.y.w2=function(X){!X.J&&X.SK&&rb(this,X,"overlay_unmeasurable_impression")&&(X.J=!0)}; +g.y.aH=function(X){X.yk&&(X.Qi()?rb(this,X,"overlay_viewable_end_of_session_impression"):rb(this,X,"overlay_unviewable_impression"),X.yk=!1)}; +g.y.gt=function(){}; +g.y.I3=function(X,c,V,G){if(GrS()){var n=jy(pN().t1,"mm"),L={};(n=(L[It.xa]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",L[It.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",L)[n])&&SAS(this,n);this.X==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&Dw(1044,Error())}X=HL.prototype.I3.call(this,X,c,V,G);this.Z&&(c=this.B,X.Z==null&&(X.Z=new $XS),c.J[X.Af]=X.Z,X.Z.Z=fiA);return X}; +g.y.K7=function(X){X&&X.pN()==1&&this.Z&&delete this.B.J[X.Af];return HL.prototype.K7.call(this,X)}; +g.y.ul=function(){this.J||(this.J=this.GG());return this.J==null?new Q1:this.X==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new en(this.J):new LO(this.J)}; +g.y.J_=function(){return this.X==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new JB:new XK}; +g.y.z8=function(X,c,V,G,n){c=new VF(V,c+G,V+n,c);(X=lv(MP,X))?X.z8(c):this.U=c}; +var p7U=sA(193,qAj,void 0,pFs);g.uO("Goog_AdSense_Lidar_sendVastEvent",p7U);var IiG=CN(194,function(X,c){c=c===void 0?{}:c;X=Dvs(OA(ml),X,c);return iNO(X)}); +g.uO("Goog_AdSense_Lidar_getViewability",IiG);var NMV=sA(195,function(){return SeS()}); +g.uO("Goog_AdSense_Lidar_getUrlSignalsArray",NMV);var UkM=CN(196,function(){return JSON.stringify(SeS())}); +g.uO("Goog_AdSense_Lidar_getUrlSignalsList",UkM);var XEt=(new Date("2024-01-01T00:00:00Z")).getTime();var GnD=Ww(["//ep2.adtrafficquality.google/sodar/",""]),nv1=Ww(["//tpc.googlesyndication.com/sodar/",""]);g.E(OV,g.I);OV.prototype.Dz=function(){return this.wpc.f()}; +OV.prototype.C9=function(X){this.wpc.c(X)}; +OV.prototype.bu=function(X){return this.wpc.m(hHU(X))}; +OV.prototype.LO=function(X){return this.wpc.mws(hHU(X))}; +g.E(b_,g.I);b_.prototype.snapshot=function(X){return this.JO.s(Object.assign({},X.VH&&{c:X.VH},X.uh&&{s:X.uh},X.HR!==void 0&&{p:X.HR}))}; +b_.prototype.Gb=function(X){this.JO.e(X)}; +b_.prototype.hp=function(){return this.JO.l()};var yBl=(new Date).getTime();var jos="://secure-...imrworldwide.com/ ://cdn.imrworldwide.com/ ://aksecure.imrworldwide.com/ ://[^.]*.moatads.com ://youtube[0-9]+.moatpixel.com ://pm.adsafeprotected.com/youtube ://pm.test-adsafeprotected.com/youtube ://e[0-9]+.yt.srs.doubleverify.com www.google.com/pagead/xsul www.youtube.com/pagead/slav".split(" "),HeD=/\bocr\b/;var $Bs=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var JSs=0,eHl=0,RHs=0;var mBt=Object.assign({},{attributes:{},handleError:function(X){throw X;}},{Cev:!0, +qYS:!0,JVy:wwz,GSy:FUA,LX:!1,jzl:!1,Lk2:!1,lkO:!1,owK:WU7,Kk7:!1});var gb=null,pO=!1,kns=1,UV=Symbol("SIGNAL"),AJ={version:0,Mwh:0,OZ:!1,w1:void 0,KL:void 0,IF:void 0,P4:0,Lr:void 0,RK:void 0,FR:!1,Ib:!1,kind:"unknown",J$:function(){return!1}, +Ox:function(){}, +Nk:function(){}, +Mc2:function(){}};var Yn=Symbol("UNSET"),jL=Symbol("COMPUTING"),HM=Symbol("ERRORED");Object.assign({},AJ,{value:Yn,OZ:!0,error:null,dL:MR,kind:"computed",J$:function(X){return X.value===Yn||X.value===jL}, +Ox:function(X){if(X.value===jL)throw Error("Detected cycle in computations.");var c=X.value;X.value=jL;var V=Fnw(X),G=!1;try{var n=X.mJ();fO(null);G=c!==Yn&&c!==HM&&n!==HM&&X.dL(c,n)}catch(L){n=HM,X.error=L}finally{Ev8(X,V)}G?X.value=c:(X.value=n,X.version++)}});var xBl=Object.assign({},AJ,{dL:MR,value:void 0,kind:"signal"});Object.assign({},AJ,{value:Yn,OZ:!0,error:null,dL:MR,J$:function(X){return X.value===Yn||X.value===jL}, +Ox:function(X){if(X.value===jL)throw Error("Detected cycle in computations.");var c=X.value;X.value=jL;var V=Fnw(X);try{var G=X.source();var n=X.mJ(G,c===Yn||c===HM?void 0:{source:X.cP_,value:c});X.cP_=G}catch(L){n=HM,X.error=L}finally{Ev8(X,V)}c!==Yn&&n!==HM&&X.dL(c,n)?X.value=c:(X.value=n,X.version++)}});Object.assign({},AJ,{Ib:!0,FR:!1,Nk:function(X){X.schedule!==null&&X.schedule(X.BlR)}, +eD_:!1,T_2:function(){}});var bes=Symbol("updater");g.E(u_,g.Gd);u_.prototype.dispose=function(){window.removeEventListener("offline",this.U);window.removeEventListener("online",this.U);this.U0.IT(this.Z);delete u_.instance}; +u_.prototype.wJ=function(){return this.J}; +u_.prototype.Dg=function(){var X=this;this.Z=this.U0.jV(function(){var c;return g.O(function(V){if(V.J==1)return X.J?((c=window.navigator)==null?0:c.onLine)?V.Wl(3):g.b(V,TK(X),3):g.b(V,TK(X),3);X.Dg();g.ZS(V)})},3E4)};zK.prototype.set=function(X,c){c=c===void 0?!0:c;0<=X&&X<52&&Number.isInteger(X)&&this.data[X]!==c&&(this.data[X]=c,this.J=-1)}; +zK.prototype.get=function(X){return!!this.data[X]};var CO;g.GG(g.i_,g.I);g.y=g.i_.prototype;g.y.start=function(){this.stop();this.X=!1;var X=MFO(this),c=gvD(this);X&&!c&&this.G.mozRequestAnimationFrame?(this.J=g.C_(this.G,"MozBeforePaint",this.U),this.G.mozRequestAnimationFrame(null),this.X=!0):this.J=X&&c?X.call(this.G,this.U):this.G.setTimeout(KmS(this.U),20)}; +g.y.stop=function(){if(this.isActive()){var X=MFO(this),c=gvD(this);X&&!c&&this.G.mozRequestAnimationFrame?qj(this.J):X&&c?c.call(this.G,this.J):this.G.clearTimeout(this.J)}this.J=null}; +g.y.isActive=function(){return this.J!=null}; +g.y.Io=function(){this.X&&this.J&&qj(this.J);this.J=null;this.B.call(this.Z,g.c7())}; +g.y.R2=function(){this.stop();g.i_.IP.R2.call(this)};g.GG(g.qR,g.I);g.y=g.qR.prototype;g.y.qP=0;g.y.R2=function(){g.qR.IP.R2.call(this);this.stop();delete this.J;delete this.G}; +g.y.start=function(X){this.stop();this.qP=g.Ju(this.U,X!==void 0?X:this.o$)}; +g.y.stop=function(){this.isActive()&&g.UD.clearTimeout(this.qP);this.qP=0}; +g.y.isActive=function(){return this.qP!=0}; +g.y.I7=function(){this.qP=0;this.J&&this.J.call(this.G)};g.E(g.Gw,g.I);g.y=g.Gw.prototype;g.y.GM=function(X){this.U=arguments;this.l3||this.G?this.J=!0:nT(this)}; +g.y.stop=function(){this.l3&&(g.UD.clearTimeout(this.l3),this.l3=null,this.J=!1,this.U=null)}; +g.y.pause=function(){this.G++}; +g.y.resume=function(){this.G--;this.G||!this.J||this.l3||(this.J=!1,nT(this))}; +g.y.R2=function(){g.I.prototype.R2.call(this);this.stop()};g.LT.prototype[Symbol.iterator]=function(){return this}; +g.LT.prototype.next=function(){var X=this.J.next();return{value:X.done?void 0:this.G.call(void 0,X.value),done:X.done}};g.GG(g.$D,g.Gd);g.y=g.$D.prototype;g.y.isPlaying=function(){return this.J==1}; +g.y.isPaused=function(){return this.J==-1}; +g.y.Qh=function(){this.iW("begin")}; +g.y.TP=function(){this.iW("end")}; +g.y.onFinish=function(){this.iW("finish")}; +g.y.onStop=function(){this.iW("stop")}; +g.y.iW=function(X){this.dispatchEvent(X)};var TMh=wL(function(){var X=g.Vj("DIV"),c=g.iU?"-webkit":WE?"-moz":null,V="transition:opacity 1s linear;";c&&(V+=c+"-transition:opacity 1s linear;");c=XNs({style:V});if(X.nodeType===1&&/^(script|style)$/i.test(X.tagName))throw Error("");X.innerHTML=No(c);return g.wS(X.firstChild,"transition")!=""});g.GG(W6,g.$D);g.y=W6.prototype;g.y.play=function(){if(this.isPlaying())return!1;this.Qh();this.iW("play");this.startTime=g.c7();this.J=1;if(TMh())return g.$v(this.G,this.B),this.U=g.Ju(this.CHh,void 0,this),!0;this.BG(!1);return!1}; +g.y.CHh=function(){g.Ro(this.G);IXS(this.G,this.D);g.$v(this.G,this.X);this.U=g.Ju((0,g.qL)(this.BG,this,!1),this.Z*1E3)}; +g.y.stop=function(){this.isPlaying()&&this.BG(!0)}; +g.y.BG=function(X){g.$v(this.G,"transition","");g.UD.clearTimeout(this.U);g.$v(this.G,this.X);this.endTime=g.c7();this.J=0;if(X)this.onStop();else this.onFinish();this.TP()}; +g.y.R2=function(){this.stop();W6.IP.R2.call(this)}; +g.y.pause=function(){};var UBt={rgb:!0,rgba:!0,alpha:!0,rect:!0,image:!0,"linear-gradient":!0,"radial-gradient":!0,"repeating-linear-gradient":!0,"repeating-radial-gradient":!0,"cubic-bezier":!0,matrix:!0,perspective:!0,rotate:!0,rotate3d:!0,rotatex:!0,rotatey:!0,steps:!0,rotatez:!0,scale:!0,scale3d:!0,scalex:!0,scaley:!0,scalez:!0,skew:!0,skewx:!0,skewy:!0,translate:!0,translate3d:!0,translatex:!0,translatey:!0,translatez:!0};wI("Element","attributes")||wI("Node","attributes");wI("Element","innerHTML")||wI("HTMLElement","innerHTML");wI("Node","nodeName");wI("Node","nodeType");wI("Node","parentNode");wI("Node","childNodes");wI("HTMLElement","style")||wI("Element","style");wI("HTMLStyleElement","sheet");var Knj=u5j("getPropertyValue"),sot=u5j("setProperty");wI("Element","namespaceURI")||wI("Node","namespaceURI");var BSS={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var ieL,dLp,ShD,DBL,qhU;ieL=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]");dLp=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.urA=RegExp("^[^\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]*[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"); +g.Ev=RegExp("^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");ShD=/^http:\/\/.*/;g.PA_=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");DBL=/\s+/;qhU=/[\d\u06f0-\u06f9]/;QO.prototype.P1=function(){return new ZF(this.G())}; +QO.prototype[Symbol.iterator]=function(){return new xD(this.G())}; +QO.prototype.J=function(){return new xD(this.G())}; +g.E(ZF,g.y1);ZF.prototype.next=function(){return this.G.next()}; +ZF.prototype[Symbol.iterator]=function(){return new xD(this.G)}; +ZF.prototype.J=function(){return new xD(this.G)}; +g.E(xD,QO);xD.prototype.next=function(){return this.U.next()};kD.prototype.clone=function(){return new kD(this.J,this.D,this.U,this.Z,this.X,this.B,this.G,this.T)}; +kD.prototype.w6=function(X){return this.J==X.J&&this.D==X.D&&this.U==X.U&&this.Z==X.Z&&this.X==X.X&&this.B==X.B&&this.G==X.G&&this.T==X.T};ek.prototype.clone=function(){return new ek(this.start,this.end)}; +ek.prototype.getLength=function(){return this.end-this.start};(function(){if(wg2){var X=/Windows NT ([0-9.]+)/;return(X=X.exec(g.bA()))?X[1]:"0"}return GH?(X=/1[0|1][_.][0-9_.]+/,(X=X.exec(g.bA()))?X[0].replace(/_/g,"."):"10"):g.Gk?(X=/Android\s+([^\);]+)(\)|;)/,(X=X.exec(g.bA()))?X[1]:""):Q8A||Zjr||xLt?(X=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(X=X.exec(g.bA()))?X[1].replace(/_/g,"."):""):""})();var cet=function(){if(g.Tb)return Jx(/Firefox\/([0-9.]+)/);if(g.Fn||g.q8||g.Jq)return YHL;if(g.fp){if(zG()||B7()){var X=Jx(/CriOS\/([0-9.]+)/);if(X)return X}return Jx(/Chrome\/([0-9.]+)/)}if(g.v8&&!zG())return Jx(/Version\/([0-9.]+)/);if(Xv||ce){if(X=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.bA()))return X[1]+"."+X[2]}else if(g.mA)return(X=Jx(/Android\s+([0-9.]+)/))?X:Jx(/Version\/([0-9.]+)/);return""}();g.GG(g.Rb,g.I);g.y=g.Rb.prototype;g.y.subscribe=function(X,c,V){var G=this.G[X];G||(G=this.G[X]=[]);var n=this.B;this.J[n]=X;this.J[n+1]=c;this.J[n+2]=V;this.B=n+3;G.push(n);return n}; +g.y.unsubscribe=function(X,c,V){if(X=this.G[X]){var G=this.J;if(X=X.find(function(n){return G[n+1]==c&&G[n+2]==V}))return this.ov(X)}return!1}; +g.y.ov=function(X){var c=this.J[X];if(c){var V=this.G[c];this.X!=0?(this.U.push(X),this.J[X+1]=function(){}):(V&&g.qk(V,X),delete this.J[X],delete this.J[X+1],delete this.J[X+2])}return!!c}; +g.y.publish=function(X,c){var V=this.G[X];if(V){var G=Array(arguments.length-1),n=arguments.length,L;for(L=1;L0&&this.X==0)for(;V=this.U.pop();)this.ov(V)}}return L!=0}return!1}; +g.y.clear=function(X){if(X){var c=this.G[X];c&&(c.forEach(this.ov,this),delete this.G[X])}else this.J.length=0,this.G={}}; +g.y.R2=function(){g.Rb.IP.R2.call(this);this.clear();this.U.length=0};g.bb.prototype.set=function(X,c){c===void 0?this.J.remove(X):this.J.set(X,g.lP(c))}; +g.bb.prototype.get=function(X){try{var c=this.J.get(X)}catch(V){return}if(c!==null)try{return JSON.parse(c)}catch(V){throw"Storage: Invalid value was encountered";}}; +g.bb.prototype.remove=function(X){this.J.remove(X)};g.GG(tx,g.bb);tx.prototype.set=function(X,c){tx.IP.set.call(this,X,nQD(c))}; +tx.prototype.G=function(X){X=tx.IP.get.call(this,X);if(X===void 0||X instanceof Object)return X;throw"Storage: Invalid value was encountered";}; +tx.prototype.get=function(X){if(X=this.G(X)){if(X=X.data,X===void 0)throw"Storage: Invalid value was encountered";}else X=void 0;return X};g.GG(Ov,tx);Ov.prototype.set=function(X,c,V){if(c=nQD(c)){if(V){if(V=V.length)return g.LU;var n=V.key(c++);if(X)return g.he(n);n=V.getItem(n);if(typeof n!=="string")throw"Storage mechanism: Invalid value was encountered";return g.he(n)}; +return G}; +g.y.clear=function(){fT(this);this.J.clear()}; +g.y.key=function(X){fT(this);return this.J.key(X)};g.GG(pT,gI);g.GG(yes,gI);g.GG(Ib,Mw);Ib.prototype.set=function(X,c){this.G.set(this.J+X,c)}; +Ib.prototype.get=function(X){return this.G.get(this.J+X)}; +Ib.prototype.remove=function(X){this.G.remove(this.J+X)}; +Ib.prototype.P1=function(X){var c=this.G[Symbol.iterator](),V=this,G=new g.y1;G.next=function(){var n=c.next();if(n.done)return n;for(n=n.value;n.slice(0,V.J.length)!=V.J;){n=c.next();if(n.done)return n;n=n.value}return g.he(X?n.slice(V.J.length):V.G.get(n))}; +return G};Uv.prototype.getValue=function(){return this.G}; +Uv.prototype.clone=function(){return new Uv(this.J,this.G)};g.y=Tw.prototype;g.y.fl=function(X,c){var V=this.J;V.push(new Uv(X,c));X=V.length-1;c=this.J;for(V=c[X];X>0;){var G=X-1>>1;if(c[G].J>V.J)c[X]=c[G],X=G;else break}c[X]=V}; +g.y.remove=function(){var X=this.J,c=X.length,V=X[0];if(!(c<=0)){if(c==1)X.length=0;else{X[0]=X.pop();X=0;c=this.J;for(var G=c.length,n=c[X];X>1;){var L=X*2+1,d=X*2+2;L=dn.J)break;c[X]=c[L];X=L}c[X]=n}return V.getValue()}}; +g.y.Lg=function(){for(var X=this.J,c=[],V=X.length,G=0;G>>16&65535|0;for(var L;V!==0;){L=V>2E3?2E3:V;V-=L;do n=n+c[G++]|0,X=X+n|0;while(--L);n%=65521;X%=65521}return n|X<<16|0};for(var Ea={},aS,CAG=[],$n=0;$n<256;$n++){aS=$n;for(var Dk7=0;Dk7<8;Dk7++)aS=aS&1?3988292384^aS>>>1:aS>>>1;CAG[$n]=aS}Ea=function(X,c,V,G){V=G+V;for(X^=-1;G>>8^CAG[(X^c[G])&255];return X^-1};var hL={};hL={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"};var cA=[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],nK=[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],ObS=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Zbl=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],HA=Array(576);B6(HA);var aL=Array(60);B6(aL);var GI=Array(512);B6(GI);var Xj=Array(256);B6(Xj);var VV=Array(29);B6(VV);var LK=Array(30);B6(LK);var RUs,bbw,t8l,mP1=!1;var vA;vA=[new xf(0,0,0,0,function(X,c){var V=65535;for(V>X.oY-5&&(V=X.oY-5);;){if(X.VZ<=1){ra(X);if(X.VZ===0&&c===0)return 1;if(X.VZ===0)break}X.xU+=X.VZ;X.VZ=0;var G=X.Z_+V;if(X.xU===0||X.xU>=G)if(X.VZ=X.xU-G,X.xU=G,$f(X,!1),X.M6.AO===0)return 1;if(X.xU-X.Z_>=X.Ix-262&&($f(X,!1),X.M6.AO===0))return 1}X.fl=0;if(c===4)return $f(X,!0),X.M6.AO===0?3:4;X.xU>X.Z_&&$f(X,!1);return 1}), +new xf(4,4,8,4,QV),new xf(4,5,16,8,QV),new xf(4,6,32,32,QV),new xf(4,4,16,16,ZP),new xf(8,16,32,32,ZP),new xf(8,16,128,128,ZP),new xf(8,32,128,256,ZP),new xf(32,128,258,1024,ZP),new xf(32,258,258,4096,ZP)];var JeS={};JeS=function(){this.input=null;this.uN=this.HS=this.BO=0;this.output=null;this.s$=this.AO=this.VF=0;this.msg="";this.state=null;this.Xa=2;this.Zg=0};var l0l=Object.prototype.toString; +kf.prototype.push=function(X,c){var V=this.M6,G=this.options.chunkSize;if(this.ended)return!1;var n=c===~~c?c:c===!0?4:0;typeof X==="string"?V.input=YIS(X):l0l.call(X)==="[object ArrayBuffer]"?V.input=new Uint8Array(X):V.input=X;V.BO=0;V.HS=V.input.length;do{V.AO===0&&(V.output=new zw.Sz(G),V.VF=0,V.AO=G);X=eUD(V,n);if(X!==1&&X!==0)return this.TP(X),this.ended=!0,!1;if(V.AO===0||V.HS===0&&(n===4||n===2))if(this.options.Z8==="string"){var L=zw.PR(V.output,V.VF);c=L;L=L.length;if(L<65537&&(c.subarray&& +sh7||!c.subarray))c=String.fromCharCode.apply(null,zw.PR(c,L));else{for(var d="",h=0;h0||V.AO===0)&&X!==1);if(n===4)return(V=this.M6)&&V.state?(G=V.state.status,G!==42&&G!==69&&G!==73&&G!==91&&G!==103&&G!==113&&G!==666?X=AL(V,-2):(V.state=null,X=G===113?AL(V,-3):0)):X=-2,this.TP(X),this.ended=!0,X===0;n===2&&(this.TP(0),V.AO=0);return!0}; +kf.prototype.TP=function(X){X===0&&(this.result=this.options.Z8==="string"?this.chunks.join(""):zw.zN(this.chunks));this.chunks=[];this.err=X;this.msg=this.M6.msg};var e7="@@redux/INIT"+oL(),Nzs="@@redux/REPLACE"+oL();var UPw=typeof Symbol==="function"&&Symbol.observable||"@@observable";var SHk=[0,GGA,-3,cM];g.E(RL,NJ);RL.prototype.getType=function(){return wA(this,11)};var VtL=function(){var X=[0,Lzk,nUH,Sc,GGA,Sc,-1,cM,GGA,cM,-1,Lzk,cM,nUH,iM,SHk,Sc,-1,cM];return function(c,V){c=mxl(c,void 0,void 0,V);try{var G=new RL,n=G.RZ;dD(X)(n,c);var L=G}finally{c.free()}return L}}();var zUl=1526142978;var GMj=new g.bH("adInfoDialogEndpoint");var v7D=new g.bH("adPingingEndpoint");var zdD=new g.bH("crossDeviceProgressCommand");var nA=new g.bH("actionCompanionAdRenderer");var $q=new g.bH("adActionInterstitialRenderer");var itA=new g.bH("adDurationRemainingRenderer");var pA=new g.bH("adHoverTextButtonRenderer");var cOD=new g.bH("adInfoDialogRenderer");var rg=new g.bH("adMessageRenderer");var I2=new g.bH("adPreviewRenderer");var d8=new g.bH("adsEngagementPanelRenderer");var wl2=new g.bH("dismissablePanelTextPortraitImageRenderer");var $Cs=new g.bH("adsEngagementPanelSectionListViewModel");var qHi=new g.bH("flyoutCtaRenderer");var LA=new g.bH("imageCompanionAdRenderer");var Hb=new g.bH("instreamAdPlayerOverlayRenderer");var oY2=new g.bH("instreamSurveyAdBackgroundImageRenderer");var fA=new g.bH("instreamSurveyAdPlayerOverlayRenderer");var FH=new g.bH("instreamSurveyAdRenderer"),g8=new g.bH("instreamSurveyAdSingleSelectQuestionRenderer"),Mz=new g.bH("instreamSurveyAdMultiSelectQuestionRenderer"),WM=new g.bH("instreamSurveyAdAnswerRenderer"),XYr=new g.bH("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var WK=new g.bH("instreamVideoAdRenderer");var cEM=new g.bH("textOverlayAdContentRenderer"),Vgk=new g.bH("enhancedTextOverlayAdContentRenderer"),Go_=new g.bH("imageOverlayAdContentRenderer");var ad=new g.bH("playerOverlayLayoutRenderer");var Wb=new g.bH("videoInterstitialButtonedCenteredLayoutRenderer");var Z2D=new g.bH("aboveFeedAdLayoutRenderer");var xCO=new g.bH("belowPlayerAdLayoutRenderer");var QOO=new g.bH("inPlayerAdLayoutRenderer");var QE=new g.bH("playerBytesAdLayoutRenderer");var lS=new g.bH("playerBytesSequenceItemAdLayoutRenderer");var OR=new g.bH("playerUnderlayAdLayoutRenderer");var w8=new g.bH("adIntroRenderer");var a2=new g.bH("playerBytesSequentialLayoutRenderer");var Xc2=new g.bH("slidingTextPlayerOverlayRenderer");var ER=new g.bH("surveyTextInterstitialRenderer");var ZC=new g.bH("videoAdTrackingRenderer");var n5A=new g.bH("simpleAdBadgeRenderer");var Y2=new g.bH("skipAdRenderer"),LLU=new g.bH("skipButtonRenderer");var uS=new g.bH("adSlotRenderer");var bS=new g.bH("squeezebackPlayerSidePanelRenderer");var dxk=new g.bH("timedPieCountdownRenderer");var Ny=new g.bH("adAvatarViewModel");var U0=new g.bH("adBadgeViewModel");var T0=new g.bH("adButtonViewModel");var yEU=new g.bH("adDetailsLineViewModel");var hGH=new g.bH("adDisclosureBannerViewModel");var AEk=new g.bH("adPodIndexViewModel");var YLA=new g.bH("imageBackgroundViewModel");var jR7=new g.bH("adGridCardCollectionViewModel");var HSh=new g.bH("adGridCardTextViewModel");var aRz=new g.bH("adPreviewViewModel");var $xr=new g.bH("playerAdAvatarLockupCardButtonedViewModel");var WLM=new g.bH("skipAdButtonViewModel");var wY7=new g.bH("skipAdViewModel");var FLV=new g.bH("timedPieCountdownViewModel");var E5V=new g.bH("visitAdvertiserLinkViewModel");var yE=new g.bH("bannerImageLayoutViewModel");var hl=new g.bH("topBannerImageTextIconButtonedLayoutViewModel");var Al=new g.bH("adsEngagementPanelLayoutViewModel");var tl=new g.bH("displayUnderlayTextGridCardsLayoutViewModel");g.ej=new g.bH("browseEndpoint");var rEz=new g.bH("confirmDialogEndpoint");var LEs=new g.bH("commandContext");var kkD=new g.bH("rawColdConfigGroup");var v3s=new g.bH("rawHotConfigGroup");g.x9=new g.bH("commandExecutorCommand");g.E(s5D,NJ);var yfj={pzh:0,jX2:1,ONv:32,XsW:61,PeR:67,IkO:103,FkK:86,Jc_:42,GI2:60,lGy:62,Uc7:73,hwy:76,aky:88,N_h:90,ufR:99,o1K:98,WkS:100,RwW:102,mcy:41,xc_:69,HNl:70,vwR:71,igS:2,EA2:27,ANDROID:3,Jf_:54,OYK:14,amy:91,GZc:55,AfS:24,hy7:20,Ry7:18,XSh:21,kZK:104,WgO:30,mYy:29,xY_:28,sXy:101,HYc:34,NWh:36,UYh:38,IOS:5,poW:15,f_c:92,YQK:40,LuR:25,iKv:17,EoW:19,noy:64,sgy:66,TuR:26,MtR:22,l_l:33,zY7:68,VtW:35,dQl:53,jgh:37,bKl:39,xBh:7,HWS:57,v1S:43,wzy:59,BnO:93,uK7:74,cU_:75,tsR:85,QXS:65,S0y:80,DBW:8,uJy:10, +rUc:58,e9S:63,ZWS:72,PXy:23,ccl:11,tc7:13,lmv:12,mB_:16,qWv:56,kIS:31,Y2S:77,JJR:84,Acl:87,Gzh:89,OKS:94,Hgl:95};g.E(tL,NJ);tL.prototype.gS=function(){return WN(this,3)}; +tL.prototype.ya=function(){return WN(this,5)}; +tL.prototype.U8=function(X){return EW(this,5,X)};g.E(Oa,NJ);g.E(CvO,NJ);g.E(lH,NJ);g.y=lH.prototype;g.y.getDeviceId=function(){return WN(this,6)}; +g.y.rB=function(X){var c=s5(this,9,hV,3,!0);pS(c,X);return c[X]}; +g.y.getPlayerType=function(){return wA(this,36)}; +g.y.setHomeGroupInfo=function(X){return Yd(this,CvO,81,X)}; +g.y.clearLocationPlayabilityToken=function(){return TB(this,89)};g.E(MK,NJ);MK.prototype.getValue=function(){return WN(this,nd(this,Zvl)===2?2:-1)}; +var Zvl=[2,3,4,5,6];g.E(fK,NJ);fK.prototype.setTrackingParams=function(X){return TB(this,1,R_2(X,!1))};g.E(pK,NJ);g.E(IL,NJ);IL.prototype.rB=function(X){var c=s5(this,5,AV,3,!0);pS(c,X);return c[X]};g.E(TI,NJ);TI.prototype.getToken=function(){return aF(this,2)}; +TI.prototype.setToken=function(X){return EW(this,2,X)};g.E(uH,NJ);uH.prototype.setSafetyMode=function(X){return Qw(this,5,X)};g.E(PA,NJ);PA.prototype.Lz=function(X){return Yd(this,lH,1,X)};var UR=new g.bH("thumbnailLandscapePortraitRenderer");g.QR_=new g.bH("changeEngagementPanelVisibilityAction");var JOD=new g.bH("continuationCommand");g.ZSG=new g.bH("openPopupAction");g.wB=new g.bH("webCommandMetadata");var fCD=new g.bH("metadataBadgeRenderer");var eqS=new g.bH("signalServiceEndpoint");var uz=new g.bH("innertubeCommand");var $6l=new g.bH("loggingDirectives");var Mnl={SgO:"EMBEDDED_PLAYER_MODE_UNKNOWN",tZR:"EMBEDDED_PLAYER_MODE_DEFAULT",ZrS:"EMBEDDED_PLAYER_MODE_PFP",QTh:"EMBEDDED_PLAYER_MODE_PFL"};var Aoj=new g.bH("channelThumbnailEndpoint");var hXD=new g.bH("embeddedPlayerErrorMessageRenderer");var nID=new g.bH("embeddedPlayerOverlayVideoDetailsRenderer"),Ygl=new g.bH("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),jCl=new g.bH("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var lCD=new g.bH("embedsInfoPanelRenderer");var xxA=new g.bH("feedbackEndpoint");var v5k=new g.bH("callToActionButtonViewModel");var koM=new g.bH("interactionLoggingCommandMetadata");var bKw={CbS:"WEB_DISPLAY_MODE_UNKNOWN",z9h:"WEB_DISPLAY_MODE_BROWSER",yU_:"WEB_DISPLAY_MODE_MINIMAL_UI",KhO:"WEB_DISPLAY_MODE_STANDALONE",Vs2:"WEB_DISPLAY_MODE_FULLSCREEN"};g.E(zI,NJ);zI.prototype.getPlayerType=function(){return wA(this,7)}; +zI.prototype.tO=function(){return WN(this,19)}; +zI.prototype.setVideoId=function(X){return EW(this,19,X)};g.E(BA,NJ);g.E(KK,NJ);g.E(sa,NJ); +var o5H=[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];var eGA=new g.bH("loggingContext");g.E(CK,NJ);g.E(DP,NJ);DP.prototype.tO=function(){return aF(this,nd(this,wv)===1?1:-1)}; +DP.prototype.setVideoId=function(X){return Vw(this,1,wv,ry(X))}; +DP.prototype.getPlaylistId=function(){return aF(this,nd(this,wv)===2?2:-1)}; +var wv=[1,2];g.E(DPS,NJ);var cJ=new g.bH("changeKeyedMarkersVisibilityCommand");var JEG=new g.bH("changeMarkersVisibilityCommand");var ICl=new g.bH("loadMarkersCommand");var mxA=new g.bH("suggestedActionDataViewModel");var jZl=new g.bH("timelyActionViewModel");var YpD=new g.bH("timelyActionsOverlayViewModel");var $3O=new g.bH("productListItemRenderer");var RGV=new g.bH("shoppingOverlayRenderer");var L7s=new g.bH("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var bSz=new g.bH("adFeedbackEndpoint");var tgr=new g.bH("menuEndpoint");var my2=new g.bH("phoneDialerEndpoint");var ehL=new g.bH("sendSmsEndpoint");var GP2=new g.bH("copyTextEndpoint");var OSH=new g.bH("shareEndpoint"),lRh=new g.bH("shareEntityEndpoint"),Mg_=new g.bH("shareEntityServiceEndpoint"),g5r=new g.bH("webPlayerShareEntityServiceEndpoint");g.ud=new g.bH("urlEndpoint");g.qV=new g.bH("watchEndpoint");var fRU=new g.bH("watchPlaylistEndpoint");g.pY7=new g.bH("offlineOrchestrationActionCommand");var Dq8=new g.bH("compositeVideoOverlayRenderer");var IRi=new g.bH("miniplayerRenderer");var cow=new g.bH("paidContentOverlayRenderer");var NQp=new g.bH("playerMutedAutoplayOverlayRenderer"),UxA=new g.bH("playerMutedAutoplayEndScreenRenderer");var CkO=new g.bH("unserializedPlayerResponse"),TQ_=new g.bH("unserializedPlayerResponse");var uBp=new g.bH("playlistEditEndpoint");var FA;g.Nz=new g.bH("buttonRenderer");FA=new g.bH("toggleButtonRenderer");var aBU=new g.bH("counterfactualRenderer");var Puh=new g.bH("resolveUrlCommandMetadata");var zG7=new g.bH("modifyChannelNotificationPreferenceEndpoint");var xi2=new g.bH("pingingEndpoint");var BQH=new g.bH("unsubscribeEndpoint");g.JH=new g.bH("subscribeButtonRenderer");var KL7=new g.bH("subscribeEndpoint");var v0S=new g.bH("buttonViewModel");var WS8=new g.bH("qrCodeRenderer");var AfU={I6l:"LIVING_ROOM_APP_MODE_UNSPECIFIED",X1W:"LIVING_ROOM_APP_MODE_MAIN",UbS:"LIVING_ROOM_APP_MODE_KIDS",kJW:"LIVING_ROOM_APP_MODE_MUSIC",FOS:"LIVING_ROOM_APP_MODE_UNPLUGGED",Reh:"LIVING_ROOM_APP_MODE_GAMING"};var bA8=new g.bH("autoplaySwitchButtonRenderer");var ez,cYL,VT8,H4j;ez=new g.bH("decoratedPlayerBarRenderer");cYL=new g.bH("chapteredPlayerBarRenderer");VT8=new g.bH("multiMarkersPlayerBarRenderer");H4j=new g.bH("chapterRenderer");g.LeD=new g.bH("markerRenderer");var sRV=new g.bH("decoratedPlayheadRenderer");var MTO=new g.bH("desktopOverlayConfigRenderer");var FS1=new g.bH("engagementPanelSectionListRenderer");var OAl=new g.bH("gatedActionsOverlayViewModel");var AYO=new g.bH("heatMarkerRenderer");var hEU=new g.bH("heatmapRenderer");var pKs=new g.bH("watchToWatchTransitionRenderer");var dIO=new g.bH("playlistPanelRenderer");var CuH=new g.bH("productUpsellSuggestedActionViewModel");var Dxz=new g.bH("suggestedActionTimeRangeTrigger"),SLA=new g.bH("suggestedActionsRenderer"),iSp=new g.bH("suggestedActionRenderer");var YYs=new g.bH("timedMarkerDecorationRenderer");var rm2=new g.bH("cipher");var Dsl=new g.bH("playerVars");var qLH=new g.bH("playerVars");var Eu=g.UD.window,X9V,cVM,S7=(Eu==null?void 0:(X9V=Eu.yt)==null?void 0:X9V.config_)||(Eu==null?void 0:(cVM=Eu.ytcfg)==null?void 0:cVM.data_)||{};g.uO("yt.config_",S7);var c3=[];var dRl=/^[\w.]*$/,VnL={q:!0,search_query:!0},cBL=String(L1);var W3=new function(){var X=window.document;this.J=window;this.G=X}; +g.uO("yt.ads_.signals_.getAdSignalsString",function(X){return dd(Fx(X))});g.c7();var hDS="XMLHttpRequest"in g.UD?function(){return new XMLHttpRequest}:null;var VXU="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.x(VXU);var HOs={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"},ams="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(g.x(VXU)),ZOS=!1,YVU=$Rs,EG8=Ra;g.E(OE,EH);gd.prototype.then=function(X,c,V){return this.J?this.J.then(X,c,V):this.U===1&&X?(X=X.call(V,this.G))&&typeof X.then==="function"?X:p1(X):this.U===2&&c?(X=c.call(V,this.G))&&typeof X.then==="function"?X:f1(X):this}; +gd.prototype.getValue=function(){return this.G}; +gd.prototype.$goog_Thenable=!0;var Ia=!1;var iE=Xv||ce;var OOj=/^([0-9\.]+):([0-9\.]+)$/;g.E(wN,EH);wN.prototype.name="BiscottiError";g.E(We,EH);We.prototype.name="BiscottiMissingError";var fmO={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},Fv=null;var eAw=Ww(["data-"]),Bbl={};var GBG=0,E1=g.iU?"webkit":WE?"moz":g.Fn?"ms":g.Jq?"o":"",nmr=g.Pw("ytDomDomGetNextId")||function(){return++GBG}; +g.uO("ytDomDomGetNextId",nmr);var DRw={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};k3.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; +k3.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; +k3.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var ol=g.UD.ytEventsEventsListeners||{};g.uO("ytEventsEventsListeners",ol);var qVw=g.UD.ytEventsEventsCounter||{count:0};g.uO("ytEventsEventsCounter",qVw);var GwD=wL(function(){var X=!1;try{var c=Object.defineProperty({},"passive",{get:function(){X=!0}}); +window.addEventListener("test",null,c)}catch(V){}return X}),X62=wL(function(){var X=!1; +try{var c=Object.defineProperty({},"capture",{get:function(){X=!0}}); +window.addEventListener("test",null,c)}catch(V){}return X});var rB;rB=window;g.ta=rB.ytcsi&&rB.ytcsi.now?rB.ytcsi.now:rB.performance&&rB.performance.timing&&rB.performance.now&&rB.performance.timing.navigationStart?function(){return rB.performance.timing.navigationStart+rB.performance.now()}:function(){return(new Date).getTime()};g.GG(b5,g.I);b5.prototype.C=function(X){X.J===void 0&&SVS(X);var c=X.J;X.G===void 0&&SVS(X);this.J=new g.wn(c,X.G)}; +b5.prototype.Ia=function(){return this.J||new g.wn}; +b5.prototype.G_=function(){if(this.J){var X=(0,g.ta)();if(this.X!=0){var c=this.B,V=this.J,G=c.x-V.x;c=c.y-V.y;G=Math.sqrt(G*G+c*c)/(X-this.X);this.G[this.U]=Math.abs((G-this.Z)/this.Z)>.5?1:0;for(V=c=0;V<4;V++)c+=this.G[V]||0;c>=3&&this.D();this.Z=G}this.X=X;this.B=this.J;this.U=(this.U+1)%4}}; +b5.prototype.R2=function(){g.v3(this.T);g.Jj(this.A7)};g.E(tj,g.I);tj.prototype.L=function(X,c,V,G,n){V=g.Gx((0,g.qL)(V,G||this.hX));V={target:X,name:c,callback:V};var L;n&&GwD()&&(L={passive:!0});X.addEventListener(c,V.callback,L);this.D.push(V);return V}; +tj.prototype.Hd=function(X){for(var c=0;c=U.DF)||v.J.version>=C||v.J.objectStoreNames.contains(f)||m.push(f)}A=m;if(A.length===0){Z.Wl(5);break}Y=Object.keys(V.options.nO); +H=h.objectStoreNames();if(V.ZV.options.version+1)throw W.close(),V.U=!1,zFs(V,w);return Z.return(W);case 8:throw c(), +a instanceof Error&&!g.oa("ytidb_async_stack_killswitch")&&(a.stack=a.stack+"\n"+d.substring(d.indexOf("\n")+1)),ku(a,V.name,"",(F=V.options.version)!=null?F:-1);}})} +function c(){V.J===G&&(V.J=void 0)} +var V=this;if(!this.U)throw zFs(this);if(this.J)return this.J;var G,n={blocking:function(L){L.close()}, +closed:c,d$S:c,upgrade:this.options.upgrade};return this.J=G=X()};var Ds=new K$("YtIdbMeta",{nO:{databases:{DF:1}},upgrade:function(X,c){c(1)&&g.lE(X,"databases",{keyPath:"actualName"})}});var ci,X7=new function(){}(new function(){});new g.rw;g.E(nr,K$);nr.prototype.G=function(X,c,V){V=V===void 0?{}:V;return(this.options.shared?XA2:qv8)(X,c,Object.assign({},V))}; +nr.prototype.delete=function(X){X=X===void 0?{}:X;return(this.options.shared?nfO:cLL)(this.name,X)};var a7t={},dKt=g.Lr("ytGcfConfig",{nO:(a7t.coldConfigStore={DF:1},a7t.hotConfigStore={DF:1},a7t),shared:!1,upgrade:function(X,c){c(1)&&(g.N8(g.lE(X,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.N8(g.lE(X,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, +version:1});g.E(y5,g.I);y5.prototype.R2=function(){for(var X=g.r(this.G),c=X.next();!c.done;c=X.next()){var V=this.J;c=V.indexOf(c.value);c>=0&&V.splice(c,1)}this.G.length=0;g.I.prototype.R2.call(this)};ak.prototype.U8=function(X){this.hotHashData=X;g.uO("yt.gcf.config.hotHashData",this.hotHashData||null)};var $ur=typeof TextEncoder!=="undefined"?new TextEncoder:null,CHl=$ur?function(X){return $ur.encode(X)}:function(X){X=g.Zi(X); +for(var c=new Uint8Array(X.length),V=0;V=c?!1:!0}; +g.y.sO=function(){var X=this;if(!U6(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.M$.P0("QUEUED",this.zr).then(function(c){c&&!X.bE(c,X.RH)?X.U0.jV(function(){return g.O(function(V){if(V.J==1)return c.id===void 0?V.Wl(2):g.b(V,X.M$.L3(c.id,X.zr),2);X.sO();g.ZS(V)})}):X.Qs.wJ()&&X.IR()})};var Pi;var Jj1={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135, +mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28, +nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42, +assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225, +liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73, +visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88, +spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153, +vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,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,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,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};var w9A={},a9s=g.Lr("ServiceWorkerLogsDatabase",{nO:(w9A.SWHealthLog={DF:1},w9A),shared:!0,upgrade:function(X,c){c(1)&&g.N8(g.lE(X,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, +version:1});var Kr={},r3w=0;var s6;D$.prototype.requestComplete=function(X,c){c&&(this.G=!0);X=this.removeParams(X);this.J.get(X)||this.J.set(X,c)}; +D$.prototype.isEndpointCFR=function(X){X=this.removeParams(X);return(X=this.J.get(X))?!1:X===!1&&this.G?!0:null}; +D$.prototype.removeParams=function(X){return X.split("?")[0]}; +D$.prototype.removeParams=D$.prototype.removeParams;D$.prototype.isEndpointCFR=D$.prototype.isEndpointCFR;D$.prototype.requestComplete=D$.prototype.requestComplete;D$.getInstance=Su;g.E(ii,g.Gd);g.y=ii.prototype;g.y.wJ=function(){return this.J.wJ()}; +g.y.HO=function(X){this.J.J=X}; +g.y.Pcy=function(){var X=window.navigator.onLine;return X===void 0?!0:X}; +g.y.qU=function(){this.G=!0}; +g.y.listen=function(X,c){return this.J.listen(X,c)}; +g.y.Mz=function(X){X=TK(this.J,X);X.then(function(c){g.oa("use_cfr_monitor")&&Su().requestComplete("generate_204",c)}); +return X}; +ii.prototype.sendNetworkCheckRequest=ii.prototype.Mz;ii.prototype.listen=ii.prototype.listen;ii.prototype.enableErrorFlushing=ii.prototype.qU;ii.prototype.getWindowStatus=ii.prototype.Pcy;ii.prototype.networkStatusHint=ii.prototype.HO;ii.prototype.isNetworkAvailable=ii.prototype.wJ;ii.getInstance=xl2;g.E(g.q6,g.Gd);g.q6.prototype.wJ=function(){var X=g.Pw("yt.networkStatusManager.instance.isNetworkAvailable");return X?X.bind(this.G)():!0}; +g.q6.prototype.HO=function(X){var c=g.Pw("yt.networkStatusManager.instance.networkStatusHint").bind(this.G);c&&c(X)}; +g.q6.prototype.Mz=function(X){var c=this,V;return g.O(function(G){V=g.Pw("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(c.G);return g.oa("skip_network_check_if_cfr")&&Su().isEndpointCFR("generate_204")?G.return(new Promise(function(n){var L;c.HO(((L=window.navigator)==null?void 0:L.onLine)||!0);n(c.wJ())})):V?G.return(V(X)):G.return(!0)})};var X6;g.E(cu,TM);cu.prototype.writeThenSend=function(X,c){c||(c={});c=G7(X,c);g.qc()||(this.J=!1);TM.prototype.writeThenSend.call(this,X,c)}; +cu.prototype.sendThenWrite=function(X,c,V){c||(c={});c=G7(X,c);g.qc()||(this.J=!1);TM.prototype.sendThenWrite.call(this,X,c,V)}; +cu.prototype.sendAndWrite=function(X,c){c||(c={});c=G7(X,c);g.qc()||(this.J=!1);TM.prototype.sendAndWrite.call(this,X,c)}; +cu.prototype.awaitInitialization=function(){return this.U.promise};var J3s=g.UD.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.uO("ytNetworklessLoggingInitializationOptions",J3s);g.nw.prototype.isReady=function(){!this.config_&&vfj()&&(this.config_=g.Wi());return!!this.config_};var FwV,yd,AI;FwV=g.UD.ytPubsubPubsubInstance||new g.Rb;yd=g.UD.ytPubsubPubsubSubscribedKeys||{};AI=g.UD.ytPubsubPubsubTopicToKeys||{};g.hI=g.UD.ytPubsubPubsubIsSynchronous||{};g.Rb.prototype.subscribe=g.Rb.prototype.subscribe;g.Rb.prototype.unsubscribeByKey=g.Rb.prototype.ov;g.Rb.prototype.publish=g.Rb.prototype.publish;g.Rb.prototype.clear=g.Rb.prototype.clear;g.uO("ytPubsubPubsubInstance",FwV);g.uO("ytPubsubPubsubTopicToKeys",AI);g.uO("ytPubsubPubsubIsSynchronous",g.hI); +g.uO("ytPubsubPubsubSubscribedKeys",yd);var l9L={};g.E(vu,g.I);vu.prototype.append=function(X){if(!this.G)throw Error("This does not support the append operation");X=X.WP();this.WP().appendChild(X)}; +g.E(k_,vu);k_.prototype.WP=function(){return this.J};g.E(o7,g.I);o7.prototype.onTouchStart=function(X){this.D=!0;this.G=X.touches.length;this.J.isActive()&&(this.J.stop(),this.Z=!0);X=X.touches;this.B=f9s(this,X)||X.length!=1;var c=X.item(0);this.B||!c?this.C=this.T=Infinity:(this.T=c.clientX,this.C=c.clientY);for(c=this.U.length=0;c=0)}if(c||X&&Math.pow(X.clientX-this.T,2)+Math.pow(X.clientY-this.C,2)>25)this.X=!0}; +o7.prototype.onTouchEnd=function(X){var c=X.changedTouches;c&&this.D&&this.G==1&&!this.X&&!this.Z&&!this.B&&f9s(this,c)&&(this.G_=X,this.J.start());this.G=X.touches.length;this.G===0&&(this.X=this.D=!1,this.U.length=0);this.Z=!1};var e_=Date.now().toString();var tI={};var fw=Symbol("injectionDeps");lZ.prototype.toString=function(){return"InjectionToken("+this.name+")"}; +NdU.prototype.resolve=function(X){return X instanceof MT?pw(this,X.key,[],!0):pw(this,X,[])};var I7;var Ux=window;var z7=g.oa("web_enable_lifecycle_monitoring")&&T7()!==0,Kps=g.oa("web_enable_lifecycle_monitoring");P9D.prototype.cancel=function(){for(var X=g.r(this.J),c=X.next();!c.done;c=X.next())c=c.value,c.jobId===void 0||c.mG||this.scheduler.IT(c.jobId),c.mG=!0;this.G.resolve()};g.y=Bu.prototype;g.y.install=function(X){this.plugins.push(X);return this}; +g.y.uninstall=function(){var X=this;g.OD.apply(0,arguments).forEach(function(c){c=X.plugins.indexOf(c);c>-1&&X.plugins.splice(c,1)})}; +g.y.transition=function(X,c){var V=this;z7&&Tdl(this.state);var G=this.transitions.find(function(L){return Array.isArray(L.from)?L.from.find(function(d){return d===V.state&&L.Z8===X}):L.from===V.state&&L.Z8===X}); +if(G){this.G&&(zM1(this.G),this.G=void 0);sas(this,X,c);this.state=X;z7&&uZ(this.state);G=G.action.bind(this);var n=this.plugins.filter(function(L){return L[X]}).map(function(L){return L[X]}); +G(Bdj(this,n),c)}else throw Error("no transition specified from "+this.state+" to "+X);}; +g.y.ntO=function(X){var c=g.OD.apply(1,arguments);g.n$();for(var V=g.r(X),G=V.next(),n={};!G.done;n={J3:void 0},G=V.next())n.J3=G.value,w6j(function(L){return function(){sx(L.J3.name);DE(function(){return L.J3.callback.apply(L.J3,g.x(c))}); +Cw(L.J3.name)}}(n))}; +g.y.EtK=function(X){var c=g.OD.apply(1,arguments),V,G,n,L;return g.O(function(d){d.J==1&&(g.n$(),V=g.r(X),G=V.next(),n={});if(d.J!=3){if(G.done)return d.Wl(0);n.g0=G.value;n.vQ=void 0;L=function(h){return function(){sx(h.g0.name);var A=DE(function(){return h.g0.callback.apply(h.g0,g.x(c))}); +jh(A)?h.vQ=g.oa("web_lifecycle_error_handling_killswitch")?A.then(function(){Cw(h.g0.name)}):A.then(function(){Cw(h.g0.name)},function(Y){ux8(Y); +Cw(h.g0.name)}):Cw(h.g0.name)}}(n); +w6j(L);return n.vQ?g.b(d,n.vQ,3):d.Wl(3)}n={g0:void 0,vQ:void 0};G=V.next();return d.Wl(2)})}; +g.y.dC=function(X){var c=g.OD.apply(1,arguments),V=this,G=X.map(function(n){return{WI:function(){sx(n.name);DE(function(){return n.callback.apply(n,g.x(c))}); +Cw(n.name)}, +priority:Kw(V,n)}}); +G.length&&(this.G=new P9D(G))}; +g.Y1.Object.defineProperties(Bu.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var iZ;g.E(S_,Bu);S_.prototype.Z=function(X,c){var V=this;this.J=g.Va(0,function(){V.currentState==="application_navigating"&&V.transition("none")},5E3); +X(c==null?void 0:c.event)}; +S_.prototype.B=function(X,c){this.J&&(g.PL.IT(this.J),this.J=null);X(c==null?void 0:c.event)};var k7=[];g.uO("yt.logging.transport.getScrapedGelPayloads",function(){return k7});qT.prototype.storePayload=function(X,c){X=X8(X);this.store[X]?this.store[X].push(c):(this.G={},this.store[X]=[c]);this.J++;g.oa("more_accurate_gel_parser")&&(c=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(c));return X}; +qT.prototype.smartExtractMatchingEntries=function(X){if(!X.keys.length)return[];for(var c=VK(this,X.keys.splice(0,1)[0]),V=[],G=0;G=0){G=!1;break a}}G=!0}G&&(c=z8(c))&&this.S9(c)}}; +g.y.GB=function(X){return X}; +g.y.onTouchStart=function(X){this.kO.onTouchStart(X)}; +g.y.onTouchMove=function(X){this.kO.onTouchMove(X)}; +g.y.onTouchEnd=function(X){if(this.kO)this.kO.onTouchEnd(X)}; +g.y.S9=function(X){this.layoutId?this.gy.executeCommand(X,this.layoutId):g.Ni(new g.SP("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))}; +g.y.createServerVe=function(X,c){this.api.createServerVe(X,this);this.api.setTrackingParams(X,c)}; +g.y.logVisibility=function(X,c){this.api.hasVe(X)&&this.api.logVisibility(X,c,this.interactionLoggingClientData)}; +g.y.R2=function(){this.clear(null);this.Hd(this.qE);for(var X=g.r(this.NW),c=X.next();!c.done;c=X.next())this.Hd(c.value);g.rP.prototype.R2.call(this)};g.E(I_,Q0); +I_.prototype.init=function(X,c,V){Q0.prototype.init.call(this,X,c,V);this.J=c;if(c.text==null&&c.icon==null)g.UQ(Error("ButtonRenderer did not have text or an icon set."));else{switch(c.style||null){case "STYLE_UNKNOWN":X="ytp-ad-button-link";break;default:X=null}X!=null&&g.Ax(this.element,X);c.text!=null&&(X=g.xT(c.text),g.kU(X)||(this.element.setAttribute("aria-label",X),this.U=new g.rP({N:"span",Y:"ytp-ad-button-text",Uy:X}),g.N(this,this.U),this.U.uc(this.element)));c.accessibilityData&&c.accessibilityData.accessibilityData&& +c.accessibilityData.accessibilityData.label&&!g.kU(c.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",c.accessibilityData.accessibilityData.label);c.icon!=null&&(c=p3(c.icon,this.X),c!=null&&(this.G=new g.rP({N:"span",Y:"ytp-ad-button-icon",V:[c]}),g.N(this,this.G)),this.B?dW(this.element,this.G.element,0):this.G.uc(this.element))}}; +I_.prototype.clear=function(){this.hide()}; +I_.prototype.onClick=function(X){Q0.prototype.onClick.call(this,X);X=g.r(U8w(this));for(var c=X.next();!c.done;c=X.next())c=c.value,this.layoutId?this.gy.executeCommand(c,this.layoutId):g.Ni(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.E(NM,g.I);NM.prototype.R2=function(){this.G&&g.Jj(this.G);this.J.clear();Ud=null;g.I.prototype.R2.call(this)}; +NM.prototype.register=function(X,c){c&&this.J.set(X,c)}; +var Ud=null;g.E(PR,Q0); +PR.prototype.init=function(X,c,V){Q0.prototype.init.call(this,X,c,V);X=c.hoverText||null;c=c.button&&g.T(c.button,g.Nz)||null;c==null?g.Ni(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new I_(this.api,this.layoutId,this.interactionLoggingClientData,this.gy,void 0,void 0,void 0,void 0,this.U),g.N(this,this.button),this.button.init(HR("button"),c,this.macros),X&&this.button.element.setAttribute("aria-label",g.xT(X)),this.button.uc(this.element),this.C&&!g.hx(this.button.element, +"ytp-ad-clickable")&&g.Ax(this.button.element,"ytp-ad-clickable"),this.U&&(g.Ax(this.button.element,"ytp-ad-hover-text-button--clean-player"),this.api.S("clean_player_style_fix_on_web")&&g.Ax(this.button.element,"ytp-ad-hover-text-button--clean-player-with-light-shadow")),X&&(this.G=new g.rP({N:"div",Y:"ytp-ad-hover-text-container"}),this.B&&(c=new g.rP({N:"div",Y:"ytp-ad-hover-text-callout"}),c.uc(this.G.element),g.N(this,c)),g.N(this,this.G),this.G.uc(this.element),c=TR(X),dW(this.G.element,c,0)), +this.show())}; +PR.prototype.hide=function(){this.button&&this.button.hide();this.G&&this.G.hide();Q0.prototype.hide.call(this)}; +PR.prototype.show=function(){this.button&&this.button.show();Q0.prototype.show.call(this)};g.E(BR,Q0); +BR.prototype.init=function(X,c,V){Q0.prototype.init.call(this,X,c,V);V=(X=c.thumbnail)&&zR(X)||"";g.kU(V)?Math.random()<.01&&g.UQ(Error("Found AdImage without valid image URL")):(this.J?g.$v(this.element,"backgroundImage","url("+V+")"):S9(this.element,{src:V}),S9(this.element,{alt:X&&X.accessibility&&X.accessibility.label||""}),c&&c.adRendererCommands&&c.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; +BR.prototype.clear=function(){this.hide()};g.E(K3,Q0);g.y=K3.prototype;g.y.hide=function(){Q0.prototype.hide.call(this);this.U&&this.U.focus()}; +g.y.show=function(){this.U=document.activeElement;Q0.prototype.show.call(this);this.X.focus()}; +g.y.init=function(X,c,V){Q0.prototype.init.call(this,X,c,V);this.G=c;c.dialogMessages||c.title!=null?c.confirmLabel==null?g.Ni(Error("ConfirmDialogRenderer.confirmLabel was not set.")):c.cancelLabel==null?g.Ni(Error("ConfirmDialogRenderer.cancelLabel was not set.")):zps(this,c):g.Ni(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; +g.y.clear=function(){g.l5(this.J);this.hide()}; +g.y.JM=function(){this.hide()}; +g.y.wx=function(){var X=this.G.cancelEndpoint;X&&(this.layoutId?this.gy.executeCommand(X,this.layoutId):g.Ni(Error("Missing layoutId for confirm dialog.")));this.hide()}; +g.y.O6=function(){var X=this.G.confirmNavigationEndpoint||this.G.confirmEndpoint;X&&(this.layoutId?this.gy.executeCommand(X,this.layoutId):g.Ni(Error("Missing layoutId for confirm dialog.")));this.hide()};g.E(sd,Q0);g.y=sd.prototype; +g.y.init=function(X,c,V){Q0.prototype.init.call(this,X,c,V);this.U=c;if(c.defaultText==null&&c.defaultIcon==null)g.Ni(Error("ToggleButtonRenderer must have either text or icon set."));else if(c.defaultIcon==null&&c.toggledIcon!=null)g.Ni(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(c.style){switch(c.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":X="ytp-ad-toggle-button-default-style";break;default:X=null}X!=null&&g.Ax(this.X,X)}X={};c.defaultText? +(V=g.xT(c.defaultText),g.kU(V)||(X.buttonText=V,this.api.j().experiments.lc("a11y_h5_associate_survey_question")||this.J.setAttribute("aria-label",V),this.api.j().experiments.lc("fix_h5_toggle_button_a11y")&&this.G.setAttribute("aria-label",V))):g.bF(this.Pl,!1);c.defaultTooltip&&(X.tooltipText=c.defaultTooltip,this.J.hasAttribute("aria-label")||this.G.setAttribute("aria-label",c.defaultTooltip));c.defaultIcon?(V=p3(c.defaultIcon),this.updateValue("untoggledIconTemplateSpec",V),c.toggledIcon?(this.A7= +!0,V=p3(c.toggledIcon),this.updateValue("toggledIconTemplateSpec",V)):(g.bF(this.C,!0),g.bF(this.B,!1)),g.bF(this.J,!1)):g.bF(this.G,!1);g.tN(X)||this.update(X);c.isToggled&&(g.Ax(this.X,"ytp-ad-toggle-button-toggled"),this.toggleButton(c.isToggled));C3(this);this.L(this.element,"change",this.a7);this.show()}}; +g.y.onClick=function(X){this.NW.length>0&&(this.toggleButton(!this.isToggled()),this.a7());Q0.prototype.onClick.call(this,X)}; +g.y.a7=function(){g.ab(this.X,"ytp-ad-toggle-button-toggled",this.isToggled());for(var X=g.r(Bis(this,this.isToggled())),c=X.next();!c.done;c=X.next())c=c.value,this.layoutId?this.gy.executeCommand(c,this.layoutId):g.Ni(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);C3(this)}; +g.y.clear=function(){this.hide()}; +g.y.toggleButton=function(X){g.ab(this.X,"ytp-ad-toggle-button-toggled",X);this.J.checked=X;C3(this)}; +g.y.isToggled=function(){return this.J.checked};g.E(Dt,tj);Dt.prototype.B=function(X){if(Array.isArray(X)){X=g.r(X);for(var c=X.next();!c.done;c=X.next())c=c.value,c instanceof Kst&&this.X(c)}};g.E(SB,Q0);g.y=SB.prototype;g.y.init=function(X,c,V){Q0.prototype.init.call(this,X,c,V);c.reasons?c.confirmLabel==null?g.Ni(Error("AdFeedbackRenderer.confirmLabel was not set.")):(c.cancelLabel==null&&g.UQ(Error("AdFeedbackRenderer.cancelLabel was not set.")),c.title==null&&g.UQ(Error("AdFeedbackRenderer.title was not set.")),Swl(this,c)):g.Ni(Error("AdFeedbackRenderer.reasons were not set."))}; +g.y.clear=function(){m9(this.B);m9(this.C);this.X.length=0;this.hide()}; +g.y.hide=function(){this.J&&this.J.hide();this.G&&this.G.hide();Q0.prototype.hide.call(this);this.U&&this.U.focus()}; +g.y.show=function(){this.J&&this.J.show();this.G&&this.G.show();this.U=document.activeElement;Q0.prototype.show.call(this);this.B.focus()}; +g.y.fB=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; +g.y.rOh=function(){this.hide()}; +id.prototype.WP=function(){return this.J.element}; +id.prototype.getCommand=function(){return this.G}; +id.prototype.isChecked=function(){return this.U.checked};g.E(qM,K3);qM.prototype.JM=function(X){K3.prototype.JM.call(this,X);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; +qM.prototype.wx=function(X){K3.prototype.wx.call(this,X);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; +qM.prototype.O6=function(X){K3.prototype.O6.call(this,X);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.E(XX,Q0);g.y=XX.prototype; +g.y.init=function(X,c,V){Q0.prototype.init.call(this,X,c,V);this.B=c;if(c.dialogMessage==null&&c.title==null)g.Ni(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{c.confirmLabel==null&&g.UQ(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(X=c.closeOverlayRenderer&&g.T(c.closeOverlayRenderer,g.Nz)||null)this.J=new I_(this.api,this.layoutId,this.interactionLoggingClientData,this.gy,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), +g.N(this,this.J),this.J.init(HR("button"),X,this.macros),this.J.uc(this.element);c.title&&(X=g.xT(c.title),this.updateValue("title",X));if(c.adReasons)for(X=c.adReasons,V=0;V=this.Hl?(this.A7.hide(),this.LS=!0,this.publish("i")):this.U&&this.U.isTemplated()&&(X=Math.max(0,Math.ceil((this.Hl-X)/1E3)),X!=this.T_&&(Gy(this.U,{TIME_REMAINING:String(X)}),this.T_=X)))}};g.E(Y9,nZ);g.y=Y9.prototype; +g.y.init=function(X,c,V){nZ.prototype.init.call(this,X,c,V);if(c.image&&c.image.thumbnail)if(c.headline)if(c.description)if((X=c.actionButton&&g.T(c.actionButton,g.Nz))&&X.navigationEndpoint){var G=this.api.getVideoData(2);if(G!=null)if(c.image&&c.image.thumbnail){var n=c.image.thumbnail.thumbnails;n!=null&&n.length>0&&g.kU(g.c1(n[0].url))&&(n[0].url=G.profilePicture)}else g.UQ(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.U.init(HR("ad-image"),c.image,V);this.B.init(HR("ad-text"), +c.headline,V);this.X.init(HR("ad-text"),c.description,V);this.G.init(HR("button"),X,V);V=Sn(this.G.element);Dm(this.G.element,V+" This link opens in new tab");this.A7=X.navigationEndpoint;this.api.PC()||this.show();this.api.j().S("enable_larger_flyout_cta_on_desktop")&&(this.I2("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.I2("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.I2("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"), +this.I2("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.I2("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.I2("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.G.element.classList.add("ytp-flyout-cta-action-button-large"),this.G.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.I2("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large")); +this.api.addEventListener("playerUnderlayVisibilityChange",this.WM.bind(this));this.Pl=c.startMs||0;LZ(this)}else g.Ni(Error("FlyoutCtaRenderer has no valid action button."));else g.Ni(Error("FlyoutCtaRenderer has no description AdText."));else g.Ni(Error("FlyoutCtaRenderer has no headline AdText."));else g.UQ(Error("FlyoutCtaRenderer has no image."))}; +g.y.onClick=function(X){nZ.prototype.onClick.call(this,X);this.api.pauseVideo();!g.h5(this.G.element,X.target)&&this.A7&&(this.layoutId?this.gy.executeCommand(this.A7,this.layoutId):g.Ni(Error("Missing layoutId for flyout cta.")))}; +g.y.Jv=function(){if(this.J){var X=this.J.getProgressState();(X&&X.current||this.Hl)&&1E3*X.current>=this.Pl&&(dR(this),g.jk(this.element,"ytp-flyout-cta-inactive"),this.G.element.removeAttribute("tabIndex"))}}; +g.y.Jn=function(){this.clear()}; +g.y.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.WM.bind(this))}; +g.y.show=function(){this.G&&this.G.show();nZ.prototype.show.call(this)}; +g.y.hide=function(){this.G&&this.G.hide();nZ.prototype.hide.call(this)}; +g.y.WM=function(X){X=="hidden"?this.show():this.hide()};g.E(jM,Q0);g.y=jM.prototype; +g.y.init=function(X,c,V){Q0.prototype.init.call(this,X,c,V);this.J=c;if(this.J.rectangle)for(X=this.J.likeButton&&g.T(this.J.likeButton,FA),c=this.J.dislikeButton&&g.T(this.J.dislikeButton,FA),this.U.init(HR("toggle-button"),X,V),this.G.init(HR("toggle-button"),c,V),this.L(this.element,"change",this.PM),this.X.show(100),this.show(),V=g.r(this.J&&this.J.impressionCommands||[]),X=V.next();!X.done;X=V.next())X=X.value,this.layoutId?this.gy.executeCommand(X,this.layoutId):g.Ni(Error("Missing layoutId for instream user sentiment."))}; +g.y.clear=function(){this.hide()}; +g.y.hide=function(){this.U.hide();this.G.hide();Q0.prototype.hide.call(this)}; +g.y.show=function(){this.U.show();this.G.show();Q0.prototype.show.call(this)}; +g.y.PM=function(){pE8(this.element,"ytp-ad-instream-user-sentiment-selected");this.J.postMessageAction&&this.api.z_("onYtShowToast",this.J.postMessageAction);this.X.hide()}; +g.y.onClick=function(X){this.NW.length>0&&this.PM();Q0.prototype.onClick.call(this,X)};g.E(HB,g.I);g.y=HB.prototype;g.y.R2=function(){this.reset();g.I.prototype.R2.call(this)}; +g.y.reset=function(){g.l5(this.X);this.B=!1;this.J&&this.J.stop();this.Z.stop();this.U&&(this.U=!1,this.D.play())}; +g.y.start=function(){this.reset();this.X.L(this.G,"mouseover",this.xY,this);this.X.L(this.G,"mouseout",this.mZ,this);this.G_&&(this.X.L(this.G,"focusin",this.xY,this),this.X.L(this.G,"focusout",this.mZ,this));this.J?this.J.start():(this.B=this.U=!0,g.$v(this.G,{opacity:this.C}))}; +g.y.xY=function(){this.U&&(this.U=!1,this.D.play());this.Z.stop();this.J&&this.J.stop()}; +g.y.mZ=function(){this.B?this.Z.start():this.J&&this.J.start()}; +g.y.bz=function(){this.U||(this.U=!0,this.T.play(),this.B=!0)};var AO2=[new au("b.f_",!1,0),new au("j.s_",!1,2),new au("r.s_",!1,4),new au("e.h_",!1,6),new au("i.s_",!0,8),new au("s.t_",!1,10),new au("p.h_",!1,12),new au("s.i_",!1,14),new au("f.i_",!1,16),new au("a.b_",!1,18),new au("a.o_",!1),new au("g.o_",!1,22),new au("p.i_",!1,24),new au("p.m_",!1),new au("n.k_",!0,20),new au("i.f_",!1),new au("a.s_",!0),new au("m.c_",!1),new au("n.h_",!1,26),new au("o.p_",!1)].reduce(function(X,c){X[c.G]=c;return X},{});g.E(Z2,nZ);g.y=Z2.prototype; +g.y.init=function(X,c,V){nZ.prototype.init.call(this,X,c,V);this.A7=c;(this.Pl=jkl(this))&&g.UQ(Error("hasAdControlInClickCommands_ is true."));if(!c||g.tN(c))g.Ni(Error("SkipButtonRenderer was not specified or empty."));else if(!c.message||g.tN(c.message))g.Ni(Error("SkipButtonRenderer.message was not specified or empty."));else{X=this.B?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"};c=p3(X);c==null?g.Ni(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+X.iconType+".")): +(this.X=new g.rP({N:"button",xO:[this.B?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],V:[{N:"span",Y:this.B?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",V:[c]}]}),g.N(this,this.X),this.X.uc(this.U.element),this.G=new VP(this.api,this.layoutId,this.interactionLoggingClientData,this.gy,"ytp-ad-skip-button-text"),this.B&&this.G.element.classList.add("ytp-ad-skip-button-text-centered"),this.G.init(HR("ad-text"),this.A7.message,V),g.N(this,this.G),dW(this.X.element,this.G.element, +0));var G=G===void 0?null:G;V=this.api.j();!(this.NW.length>0)&&V.G&&(e3?0:"ontouchstart"in document.documentElement&&(tm2()||Zw()))&&(this.Hd(this.qE),G&&this.Hd(G),this.NW=[this.L(this.element,"touchstart",this.onTouchStart,this),this.L(this.element,"touchmove",this.onTouchMove,this),this.L(this.element,"touchend",this.onTouchEnd,this)])}}; +g.y.clear=function(){this.Hl.reset();this.hide()}; +g.y.hide=function(){this.U.hide();this.G&&this.G.hide();dR(this);nZ.prototype.hide.call(this)}; +g.y.onClick=function(X){if(this.X!=null){if(X){var c=X||window.event;c.returnValue=!1;c.preventDefault&&c.preventDefault()}var V;if(yOw(X,{contentCpn:((V=this.api.getVideoData(1))==null?void 0:V.clientPlaybackNonce)||""})===0)this.api.z_("onAbnormalityDetected");else if(nZ.prototype.onClick.call(this,X),this.publish("j"),this.api.z_("onAdSkip"),this.LS||!this.Pl)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; +g.y.GB=function(X){if(!this.LS)return this.Pl&&FX("SkipButton click commands not pruned while ALC exist"),X;var c,V=(c=g.T(X,g.x9))==null?void 0:c.commands;if(!V)return X;X=[];for(c=0;c=this.B&&Hrl(this,!0)};g.E(k9,I_);k9.prototype.init=function(X,c,V){I_.prototype.init.call(this,X,c,V);X=!1;c.text!=null&&(X=g.xT(c.text),X=!g.kU(X));X?c.navigationEndpoint==null?g.UQ(Error("No visit advertiser clickthrough provided in renderer,")):c.style!=="STYLE_UNKNOWN"?g.UQ(Error("Button style was not a link-style type in renderer,")):this.show():g.UQ(Error("No visit advertiser text was present in the renderer."))};g.E(ou,Q0); +ou.prototype.init=function(X,c,V){Q0.prototype.init.call(this,X,c,V);X=c.text;g.kU(Zt(X))?g.UQ(Error("SimpleAdBadgeRenderer has invalid or empty text")):(X&&X.text&&(c=X.text,this.U&&!this.G&&(c=this.api.j(),c=X.text+" "+(c&&c.G?"\u2022":"\u00b7")),c={text:c,isTemplated:X.isTemplated},X.style&&(c.style=X.style),X.targetId&&(c.targetId=X.targetId),X=new VP(this.api,this.layoutId,this.interactionLoggingClientData,this.gy),X.init(HR("simple-ad-badge"),c,V),X.uc(this.element),g.N(this,X)),this.show())}; +ou.prototype.clear=function(){this.hide()};g.E(eM,a_);g.E(J0,g.$T);g.y=J0.prototype;g.y.Bp=function(){return this.durationMs}; +g.y.stop=function(){this.J&&this.kc.Hd(this.J)}; +g.y.er=function(X){this.G={seekableStart:0,seekableEnd:this.durationMs/1E3,current:X.current};this.publish("h")}; +g.y.getProgressState=function(){return this.G}; +g.y.ao=function(X){g.QP(X,2)&&this.publish("g")};g.E(m8,g.$T);g.y=m8.prototype;g.y.Bp=function(){return this.durationMs}; +g.y.start=function(){this.J||(this.J=!0,this.lf.start())}; +g.y.stop=function(){this.J&&(this.J=!1,this.lf.stop())}; +g.y.er=function(){this.XK+=100;var X=!1;this.XK>this.durationMs&&(this.XK=this.durationMs,this.lf.stop(),X=!0);this.G={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.XK/1E3};this.publish("h");X&&this.publish("g")}; +g.y.getProgressState=function(){return this.G};g.E(t0,nZ);g.y=t0.prototype;g.y.init=function(X,c,V){nZ.prototype.init.call(this,X,c,V);var G;if(c==null?0:(G=c.templatedCountdown)==null?0:G.templatedAdText){X=c.templatedCountdown.templatedAdText;if(!X.isTemplated){g.UQ(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.G=new VP(this.api,this.layoutId,this.interactionLoggingClientData,this.gy);this.G.init(HR("ad-text"),X,{});this.G.uc(this.element);g.N(this,this.G)}this.show()}; +g.y.clear=function(){this.hide()}; +g.y.hide=function(){dR(this);nZ.prototype.hide.call(this)}; +g.y.Jn=function(){this.hide()}; +g.y.Jv=function(){if(this.J!=null){var X=this.J.getProgressState();if(X!=null&&X.current!=null&&this.G){var c=this.J instanceof J0?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:X.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.J instanceof m8?X.seekableEnd:this.api.getDuration(2,!1);X=X.current;var V,G,n=((V=this.api.getVideoData())==null?0:(G=V.JT)==null?0:G.call(V))?Math.max(c-X,0):c-X;Gy(this.G,{FORMATTED_AD_DURATION_REMAINING:String(g.Ru(n)), +TIME_REMAINING:String(Math.ceil(n))})}}}; +g.y.show=function(){LZ(this);nZ.prototype.show.call(this)};g.E(OS,VP);OS.prototype.onClick=function(X){VP.prototype.onClick.call(this,X);this.api.onAdUxClicked(this.componentType)};g.E(MA,Q0);MA.prototype.init=function(X,c){Q0.prototype.init.call(this,X,c,{});if(X=c.content){g.A5(this.element,X);var V,G;c=((V=c.interaction)==null?void 0:(G=V.accessibility)==null?void 0:G.label)||X;this.element.setAttribute("aria-label",c)}else g.Ni(Error("AdSimpleAttributedString does not have text content"))}; +MA.prototype.clear=function(){this.hide()}; +MA.prototype.onClick=function(X){Q0.prototype.onClick.call(this,X)};g.E(gR,Q0); +gR.prototype.init=function(X,c){Q0.prototype.init.call(this,X,c,{});(X=c.label)&&X.content&&!g.kU(X.content)?(this.adBadgeText.init(HR("ad-simple-attributed-string"),new lG(X)),(c=c.adPodIndex)&&c.content&&!g.kU(c.content)&&(this.J=new MA(this.api,this.layoutId,this.interactionLoggingClientData,this.gy),this.J.uc(this.element),g.N(this,this.J),this.J.element.classList.add("ytp-ad-badge__pod-index"),this.J.init(HR("ad-simple-attributed-string"),new lG(c))),this.element.classList.add(this.G?"ytp-ad-badge--stark-clean-player": +"ytp-ad-badge--stark"),this.show()):g.Ni(Error("No label is returned in AdBadgeViewModel."))}; +gR.prototype.show=function(){this.adBadgeText.show();var X;(X=this.J)==null||X.show();Q0.prototype.show.call(this)}; +gR.prototype.hide=function(){this.adBadgeText.hide();var X;(X=this.J)==null||X.hide();Q0.prototype.hide.call(this)};g.E(fZ,Q0); +fZ.prototype.init=function(X,c){Q0.prototype.init.call(this,X,c,{});(X=c.adPodIndex)&&X.content&&!g.kU(X.content)&&(this.J=new MA(this.api,this.layoutId,this.interactionLoggingClientData,this.gy),this.J.uc(this.element),g.N(this,this.J),this.J.init(HR("ad-simple-attributed-string"),new lG(X)),(this.api.j().S("clean_player_style_fix_on_web")?c.visibilityCondition==="AD_POD_INDEX_VISIBILITY_CONDITION_AUTOHIDE":!this.G||c.visibilityCondition!=="AD_POD_INDEX_VISIBILITY_CONDITION_ALWAYS_SHOW_IF_NONSKIPPABLE")&&this.element.classList.add("ytp-ad-pod-index--autohide")); +this.element.classList.add("ytp-ad-pod-index--stark");this.api.S("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-ad-pod-index--stark-with-light-shadow");this.show()}; +fZ.prototype.show=function(){var X;(X=this.J)==null||X.show();Q0.prototype.show.call(this)}; +fZ.prototype.hide=function(){var X;(X=this.J)==null||X.hide();Q0.prototype.hide.call(this)};g.E(pZ,Q0); +pZ.prototype.init=function(X,c){Q0.prototype.init.call(this,X,c,{});if(c!=null&&c.text){var V;if(((V=c.text)==null?0:V.content)&&!g.kU(c.text.content)){this.J=new g.rP({N:"div",Y:"ytp-ad-disclosure-banner__text",Uy:c.text.content});g.N(this,this.J);this.J.uc(this.element);var G,n;X=((G=c.interaction)==null?void 0:(n=G.accessibility)==null?void 0:n.label)||c.text.content;this.element.setAttribute("aria-label",X);var L;if((L=c.interaction)==null?0:L.onTap)this.G=new g.rP({N:"div",Y:"ytp-ad-disclosure-banner__chevron",V:[g.eB()]}), +g.N(this,this.G),this.G.uc(this.element);this.show()}}else g.Ni(Error("No banner text found in AdDisclosureBanner."))}; +pZ.prototype.clear=function(){this.hide()};Iu.prototype.getLength=function(){return this.J-this.G};g.E(US,g.rP);US.prototype.er=function(){var X=this.G.getProgressState(),c=X.seekableEnd;this.api.getPresentingPlayerType()===2&&this.api.j().S("show_preskip_progress_bar_for_skippable_ads")&&(c=this.U?this.U/1E3:X.seekableEnd);X=NA(new Iu(X.seekableStart,c),X.current,0);this.progressBar.style.width=X*100+"%"}; +US.prototype.onStateChange=function(){g.fL(this.api.j())||(this.api.getPresentingPlayerType()===2?this.J===-1&&(this.show(),this.J=this.G.subscribe("h",this.er,this),this.er()):this.J!==-1&&(this.hide(),this.G.ov(this.J),this.J=-1))};g.E(Ty,Q0); +Ty.prototype.init=function(X,c,V,G){Q0.prototype.init.call(this,X,c,V);X=!0;if(c.skipOrPreviewRenderer){if(V=g.T(c.skipOrPreviewRenderer,Y2)){var n=new vB(this.api,this.layoutId,this.interactionLoggingClientData,this.gy,this.G,this.C);n.uc(this.QK);n.init(HR("skip-button"),V,this.macros);g.N(this,n)}if(V=g.T(c.skipOrPreviewRenderer,Y2)){X=!1;var L=V.skipOffsetMilliseconds}}c.brandInteractionRenderer&&(V=c.brandInteractionRenderer.brandInteractionRenderer,n=new jM(this.api,this.layoutId,this.interactionLoggingClientData, +this.gy),n.uc(this.Pl),n.init(HR("instream-user-sentiment"),V,this.macros),g.N(this,n));if(V=g.T(c,qHi))if(V=g.T(V,qHi))n=new Y9(this.api,this.layoutId,this.interactionLoggingClientData,this.gy,this.G,!!c.showWithoutLinkedMediaLayout),g.N(this,n),n.uc(this.B),n.init(HR("flyout-cta"),V,this.macros);G=G&&G.videoAdDurationSeconds;c.adBadgeRenderer&&(n=c.adBadgeRenderer,V=g.T(n,U0),V!=null?(n=new gR(this.api,this.layoutId,this.interactionLoggingClientData,this.gy,!1),g.N(this,n),n.uc(this.J),n.init(HR("ad-badge"), +V,this.macros),this.U=n.element):(V=n.simpleAdBadgeRenderer,V==null&&(V={text:{text:"Ad",isTemplated:!1}}),n=new ou(this.api,this.layoutId,this.interactionLoggingClientData,this.gy,!0),g.N(this,n),n.uc(this.J),n.init(HR("simple-ad-badge"),V,this.macros)));c.adPodIndex&&(V=g.T(c.adPodIndex,AEk),V!=null&&(X=new fZ(this.api,this.layoutId,this.interactionLoggingClientData,this.gy,X),g.N(this,X),X.uc(this.J),X.init(HR("ad-pod-index"),V)));c.adDurationRemaining&&!c.showWithoutLinkedMediaLayout&&(X=c.adDurationRemaining.adDurationRemainingRenderer, +X==null&&(X={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),G=new t0(this.api,this.layoutId,this.interactionLoggingClientData,this.gy,this.G,G,!1),g.N(this,G),G.uc(this.J),G.init(HR("ad-duration-remaining"),X,this.macros));c.adInfoRenderer&&(G=g.T(c.adInfoRenderer,pA))&&(X=new cB(this.api,this.layoutId,this.interactionLoggingClientData,this.gy,this.element,void 0,!1),g.N(this,X),this.U!==null?this.J.insertBefore(X.element,this.U.nextSibling):X.uc(this.J), +X.init(HR("ad-info-hover-text-button"),G,this.macros));c.visitAdvertiserRenderer&&(X=g.T(c.visitAdvertiserRenderer,g.Nz))&&(V=WD8(this)&&this.X?this.X:this.J)&&(G=new k9(this.api,this.layoutId,this.interactionLoggingClientData,this.gy),g.N(this,G),G.uc(V),G.init(HR("visit-advertiser"),X,this.macros),BL(G.element),X=Sn(G.element),Dm(G.element,X+" This link opens in new tab"));!(G=this.api.j())||g.M7(G)||G.controlsType!="3"&&!G.disableOrganicUi||(L=new US(this.api,this.G,L,!1),L.uc(this.Hl),g.N(this, +L));c.adDisclosureBannerRenderer&&(c=g.T(c.adDisclosureBannerRenderer,hGH))&&(L=new pZ(this.api,this.layoutId,this.interactionLoggingClientData,this.gy),L.uc(this.A7),L.init(HR("ad-disclosure-banner"),c),g.N(this,L));this.api.j().S("enable_updated_html5_player_focus_style")&&g.Ax(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; +Ty.prototype.clear=function(){this.hide()};BB.prototype.set=function(X,c,V){V=V!==void 0?Date.now()+V:void 0;this.J.set(X,c,V)}; +BB.prototype.get=function(X){return this.J.get(X)}; +BB.prototype.remove=function(X){this.J.remove(X)};var D2=null,SM=null,iG=null,ZrU=null;g.uO("yt.www.ads.eventcache.getLastCompanionData",function(){return D2}); +g.uO("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); +g.uO("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return SM}); +g.uO("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return iG}); +g.uO("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return ZrU});var v$l=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);qA.prototype.handleResponse=function(X,c){if(!c)throw Error("request needs to be passed into ConsistencyService");var V,G;c=((V=c.g_.context)==null?void 0:(G=V.request)==null?void 0:G.consistencyTokenJars)||[];var n;(X=(n=X.responseContext)==null?void 0:n.consistencyTokenJar)&&this.replace(c,X)}; +qA.prototype.replace=function(X,c){X=g.r(X);for(var V=X.next();!V.done;V=X.next())delete this.J[V.value.encryptedTokenJarContents];o$D(this,c)};var kBr=window.location.hostname.split(".").slice(-2).join("."),oS;ch.getInstance=function(){oS=g.Pw("yt.clientLocationService.instance");oS||(oS=new ch,g.uO("yt.clientLocationService.instance",oS));return oS}; +g.y=ch.prototype; +g.y.setLocationOnInnerTubeContext=function(X){X.client||(X.client={});if(this.J)X.client.locationInfo||(X.client.locationInfo={}),X.client.locationInfo.latitudeE7=Math.floor(this.J.coords.latitude*1E7),X.client.locationInfo.longitudeE7=Math.floor(this.J.coords.longitude*1E7),X.client.locationInfo.horizontalAccuracyMeters=Math.round(this.J.coords.accuracy),X.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.U||this.locationPlayabilityToken)X.client.locationPlayabilityToken=this.U|| +this.locationPlayabilityToken}; +g.y.handleResponse=function(X){var c;X=(c=X.responseContext)==null?void 0:c.locationPlayabilityToken;X!==void 0&&(this.locationPlayabilityToken=X,this.J=void 0,g.qK("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=X0(this))&&this.localStorage.set("yt-location-playability-token",X,15552E3):g.UE("YT_CL",JSON.stringify({loctok:X}),15552E3,kBr,!0))}; +g.y.clearLocationPlayabilityToken=function(X){X==="TVHTML5"?(this.localStorage=X0(this))&&this.localStorage.remove("yt-location-playability-token"):g.u9("YT_CL");this.U=void 0;this.G!==-1&&(clearTimeout(this.G),this.G=-1)}; +g.y.getCurrentPositionFromGeolocation=function(){var X=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var c=!1,V=1E4;g.qK("INNERTUBE_CLIENT_NAME")==="MWEB"&&(c=!0,V=15E3);return new Promise(function(G,n){navigator.geolocation.getCurrentPosition(function(L){X.J=L;G(L)},function(L){n(L)},{enableHighAccuracy:c, +maximumAge:0,timeout:V})})}; +g.y.createUnpluggedLocationInfo=function(X){var c={};X=X.coords;if(X==null?0:X.latitude)c.latitudeE7=Math.floor(X.latitude*1E7);if(X==null?0:X.longitude)c.longitudeE7=Math.floor(X.longitude*1E7);if(X==null?0:X.accuracy)c.locationRadiusMeters=Math.round(X.accuracy);return c}; +g.y.createLocationInfo=function(X){var c={};X=X.coords;if(X==null?0:X.latitude)c.latitudeE7=Math.floor(X.latitude*1E7);if(X==null?0:X.longitude)c.longitudeE7=Math.floor(X.longitude*1E7);return c};g.y=br2.prototype;g.y.contains=function(X){return Object.prototype.hasOwnProperty.call(this.J,X)}; +g.y.get=function(X){if(this.contains(X))return this.J[X]}; +g.y.set=function(X,c){this.J[X]=c}; +g.y.VR=function(){return Object.keys(this.J)}; +g.y.remove=function(X){delete this.J[X]};Gh.prototype.getModuleId=function(X){return X.serviceId.getModuleId()}; +Gh.prototype.get=function(X){a:{var c=this.mappings.get(X.toString());switch(c.type){case "mapping":X=c.value;break a;case "factory":c=c.value();this.mappings.set(X.toString(),{type:"mapping",value:c});X=c;break a;default:X=VB(c)}}return X}; +Gh.prototype.registerService=function(X,c){this.mappings.set(X.toString(),{type:"mapping",value:c});return X}; +new Gh;var eL={},tuS=(eL.WEB_UNPLUGGED="^unplugged/",eL.WEB_UNPLUGGED_ONBOARDING="^unplugged/",eL.WEB_UNPLUGGED_OPS="^unplugged/",eL.WEB_UNPLUGGED_PUBLIC="^unplugged/",eL.WEB_CREATOR="^creator/",eL.WEB_KIDS="^kids/",eL.WEB_EXPERIMENTS="^experiments/",eL.WEB_MUSIC="^music/",eL.WEB_REMIX="^music/",eL.WEB_MUSIC_EMBEDDED_PLAYER="^music/",eL.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",eL);dr.prototype.Z=function(X,c,V){c=c===void 0?{}:c;V=V===void 0?F7:V;var G={context:g.V$(X.clickTrackingParams,!1,this.X)};var n=this.G(X);if(n){this.J(G,n,c);var L;c=g.Ln(this.U());(n=(L=g.T(X.commandMetadata,g.wB))==null?void 0:L.apiUrl)&&(c=n);L=JBj(P3(c));X=Object.assign({},{command:X},void 0);G={input:L,wQ:zx(L),g_:G,config:X};G.config.nu?G.config.nu.identity=V:G.config.nu={identity:V};return G}g.Ni(new g.SP("Error: Failed to create Request from Command.",X))}; +g.Y1.Object.defineProperties(dr.prototype,{X:{configurable:!0,enumerable:!0,get:function(){return!1}}}); +g.E(y$,dr);g.E(rr,y$);rr.prototype.Z=function(){return{input:"/getDatasyncIdsEndpoint",wQ:zx("/getDatasyncIdsEndpoint","GET"),g_:{}}}; +rr.prototype.U=function(){return[]}; +rr.prototype.G=function(){}; +rr.prototype.J=function(){};var om_={},j7l=(om_.GET_DATASYNC_IDS=nn(rr),om_);var JJ={},eA7=(JJ["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",JJ["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",JJ["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",JJ["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",JJ["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",JJ["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",JJ["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", +JJ["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",JJ["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",JJ["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",JJ["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",JJ["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",JJ["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",JJ["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",JJ["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", +JJ["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",JJ["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",JJ["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",JJ["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",JJ["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",JJ["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",JJ["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", +JJ["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",JJ.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",JJ["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",JJ["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",JJ["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",JJ["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",JJ["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",JJ["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", +JJ["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",JJ["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",JJ["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",JJ["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",JJ["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",JJ["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",JJ["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",JJ["dialog.copyright_strikes"]= +"LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",JJ["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",JJ["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",JJ.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",JJ["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",JJ["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",JJ["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",JJ["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",JJ["owner.asset_groups"]= +"LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",JJ["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",JJ["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",JJ["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",JJ["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",JJ["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",JJ["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",JJ["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",JJ["owner.delivery"]= +"LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",JJ["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",JJ["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",JJ["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",JJ["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",JJ["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",JJ["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",JJ["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",JJ["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", +JJ["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",JJ["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",JJ["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",JJ["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",JJ["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",JJ["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",JJ["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",JJ["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",JJ["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", +JJ["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",JJ["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",JJ["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",JJ["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",JJ["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",JJ["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",JJ["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",JJ["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", +JJ),ma={},I$D=(ma.auto_search="LATENCY_ACTION_AUTO_SEARCH",ma.ad_to_ad="LATENCY_ACTION_AD_TO_AD",ma.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",ma.app_startup="LATENCY_ACTION_APP_STARTUP",ma.browse="LATENCY_ACTION_BROWSE",ma.cast_splash="LATENCY_ACTION_CAST_SPLASH",ma.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",ma.channels="LATENCY_ACTION_CHANNELS",ma.chips="LATENCY_ACTION_CHIPS",ma.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",ma.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", +ma.editor="LATENCY_ACTION_EDITOR",ma.embed="LATENCY_ACTION_EMBED",ma.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",ma.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",ma.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",ma.explore="LATENCY_ACTION_EXPLORE",ma.favorites="LATENCY_ACTION_FAVORITES",ma.home="LATENCY_ACTION_HOME",ma.inboarding="LATENCY_ACTION_INBOARDING",ma.library="LATENCY_ACTION_LIBRARY",ma.live="LATENCY_ACTION_LIVE",ma.live_pagination= +"LATENCY_ACTION_LIVE_PAGINATION",ma.management="LATENCY_ACTION_MANAGEMENT",ma.mini_app="LATENCY_ACTION_MINI_APP_PLAY",ma.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",ma.onboarding="LATENCY_ACTION_ONBOARDING",ma.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",ma.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",ma.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",ma.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",ma.prebuffer="LATENCY_ACTION_PREBUFFER", +ma.prefetch="LATENCY_ACTION_PREFETCH",ma.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",ma.profile_switcher="LATENCY_ACTION_LOGIN",ma.projects="LATENCY_ACTION_PROJECTS",ma.reel_watch="LATENCY_ACTION_REEL_WATCH",ma.results="LATENCY_ACTION_RESULTS",ma.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",ma.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",ma.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",ma.review="LATENCY_ACTION_REVIEW",ma.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER", +ma.search_ui="LATENCY_ACTION_SEARCH_UI",ma.search_suggest="LATENCY_ACTION_SUGGEST",ma.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",ma.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",ma.seek="LATENCY_ACTION_PLAYER_SEEK",ma.settings="LATENCY_ACTION_SETTINGS",ma.store="LATENCY_ACTION_STORE",ma.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",ma.tenx="LATENCY_ACTION_TENX",ma.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",ma.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",ma.watch="LATENCY_ACTION_WATCH", +ma.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",ma["watch,watch7"]="LATENCY_ACTION_WATCH",ma["watch,watch7_html5"]="LATENCY_ACTION_WATCH",ma["watch,watch7ad"]="LATENCY_ACTION_WATCH",ma["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",ma.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",ma.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",ma.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",ma.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",ma.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE", +ma.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",ma.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",ma.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",ma);Object.assign(I$D,eA7);g.E(m4,E6);var q6O=new rU("aft-recorded",m4);var JVH=g.UD.ytLoggingGelSequenceIdObj_||{};g.uO("ytLoggingGelSequenceIdObj_",JVH);var tM=g.UD.ytLoggingLatencyUsageStats_||{};g.uO("ytLoggingLatencyUsageStats_",tM);RG.prototype.tick=function(X,c,V,G){Or(this,"tick_"+X+"_"+c)||g.a0("latencyActionTicked",{tickName:X,clientActionNonce:c},{timestamp:V,cttAuthInfo:G})}; +RG.prototype.info=function(X,c,V){var G=Object.keys(X).join("");Or(this,"info_"+G+"_"+c)||(X=Object.assign({},X),X.clientActionNonce=c,g.a0("latencyActionInfo",X,{cttAuthInfo:V}))}; +RG.prototype.jspbInfo=function(X,c,V){for(var G="",n=0;n=n.length?(c.append(n),X-=n.length):X?(c.append(new Uint8Array(n.buffer,n.byteOffset,X)),V.append(new Uint8Array(n.buffer,n.byteOffset+X,n.length-X)),X=0):V.append(n);return{WA:c,RY:V}}; +g.y.isFocused=function(X){return X>=this.Fr&&X=64&&(this.B.set(X.subarray(0,64-this.G),this.G),c=64-this.G,this.G=0,iwU(this,this.B,0));for(;c+64<=V;c+=64)iwU(this,X,c);c=this.start&&(X=2&&V.ssdaiAdsConfig&&FX("Unexpected ad placement renderers length",X.slot,null,{length:G.length});var n;((n=V.adSlots)==null?0:n.some(function(L){var d,h;return((d=g.T(L,uS))==null?void 0:(h=d.adSlotMetadata)==null?void 0:h.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||G.some(function(L){var d,h,A,Y; +return!!((d=L.renderer)==null?0:(h=d.linearAdSequenceRenderer)==null?0:(A=h.linearAds)==null?0:A.length)||!((Y=L.renderer)==null||!Y.instreamVideoAdRenderer)})||wR2(X)})}; +as.prototype.cT=function(){VBl(this.J)};$a.prototype.Ms=function(){var X=this;cyw(this.G,function(){var c=jR(X.slot.clientMetadata,"metadata_type_ad_break_request_data");return c.cueProcessedMs?X.J.get().fetch({JR:c.getAdBreakUrl,RE:new g.AC(c.oz,c.CO),cueProcessedMs:c.cueProcessedMs}):X.J.get().fetch({JR:c.getAdBreakUrl,RE:new g.AC(c.oz,c.CO)})})}; +$a.prototype.cT=function(){VBl(this.G)};WQ.prototype.Ms=function(){var X=this.slot.clientMetadata,c,V=(c=this.slot.fulfilledLayout)!=null?c:jR(X,"metadata_type_fulfilled_layout");MaD(this.callback,this.slot,V)}; +WQ.prototype.cT=function(){kS(this.callback,this.slot,new D("Got CancelSlotFulfilling request for "+this.slot.slotType+" in DirectFulfillmentAdapter.",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_FULFILLMENT_CANCELLATION_REQUEST"),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")};Fu.prototype.build=function(X,c){return c.fulfilledLayout||w2(c,{uf:["metadata_type_fulfilled_layout"]})?new WQ(X,c):this.U(X,c)};g.E(EF,Fu); +EF.prototype.U=function(X,c){if(w2(c,{uf:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new as(X,c,this.J,this.G,this.X4,this.Xh,this.t7,this.mS,this.Iy);if(w2(c,{uf:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new $a(X,c,this.J,this.G,this.X4,this.Xh);throw new D("Unsupported slot with type: "+c.slotType+" and client metadata: "+Hv(c.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.E(r2,Fu);r2.prototype.U=function(X,c){throw new D("Unsupported slot with type: "+c.slotType+" and client metadata: "+Hv(c.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.y=Fdw.prototype;g.y.TF=function(){return this.slot}; +g.y.nS=function(){return this.layout}; +g.y.init=function(){}; +g.y.release=function(){}; +g.y.startRendering=function(X){if(X.layoutId!==this.layout.layoutId)this.callback.RP(this.slot,X,new Ar("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED");else{var c=jR(X.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.yZ(this.slot,X),lBs(this.U, +this.slot,c)):FX("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,X)}}; +g.y.X6=function(X,c){X.layoutId!==this.layout.layoutId?this.callback.RP(this.slot,X,new Ar("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):(this.callback.m7(this.slot,X,c),ry8(this),Q_S(this))};g.E(ka,g.$T);g.y=ka.prototype;g.y.TF=function(){return this.G.slot}; +g.y.nS=function(){return this.G.layout}; +g.y.init=function(){this.U.get().addListener(this)}; +g.y.release=function(){this.U.get().removeListener(this);this.dispose()}; +g.y.Sx=function(){}; +g.y.QA=function(){}; +g.y.tE=function(){}; +g.y.Uf=function(){}; +g.y.startRendering=function(X){var c=this;vQ(this.G,X,function(){return void c.kG()})}; +g.y.kG=function(){this.U.get().kG(this.J)}; +g.y.X6=function(X,c){var V=this;vQ(this.G,X,function(){var G=V.U.get();U9U(G,V.J,3);V.J=[];V.callback.m7(V.slot,X,c)})}; +g.y.R2=function(){this.U.vl()||this.U.get().removeListener(this);g.$T.prototype.R2.call(this)}; +g.Y1.Object.defineProperties(ka.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.G.slot}}, +layout:{configurable:!0,enumerable:!0,get:function(){return this.G.layout}}});OF.prototype.Cl=function(X,c){c=c===void 0?!1:c;var V=(this.U.get(X)||[]).concat();if(c=c&&kRU(X)){var G=this.U.get(c);G&&V.push.apply(V,g.x(G))}g2(this,X,V);this.J.add(X);c&&this.J.add(c)}; +OF.prototype.jS=function(X,c){c=c===void 0?!1:c;if(!this.J.has(X)){var V=c&&kRU(X);V&&(c=!this.J.has(V));this.Cl(X,c)}};g.E(JyL,a_);g.E(UF,ka);g.y=UF.prototype;g.y.WD=function(X,c){mj("ads-engagement-panel-layout",X,this.B.get().Uc,this.t7.get(),this.X,this.Z,this.TF(),this.nS(),c)}; +g.y.startRendering=function(X){ew(this.MW,this.TF(),this.nS(),g.T(this.nS().renderingContent,Al),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(c,V,G,n,L){return new JyL(c,V,G,n,L)},this.J); +ka.prototype.startRendering.call(this,X)}; +g.y.yZ=function(X,c){this.Z===c.layoutId&&(this.X===null?this.X=this.t7.get().m8():FX("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; +g.y.m7=function(){}; +g.y.s5=function(){}; +g.y.rJ=function(){}; +g.y.SO=function(){}; +g.y.QL=function(){}; +g.y.ZL=function(){}; +g.y.DO=function(){}; +g.y.eO=function(){}; +g.y.Rv=function(){}; +g.y.m6=function(){}; +g.y.Le=function(){}; +g.y.R2=function(){xS(this.A1(),this);ka.prototype.R2.call(this)};g.E(RS8,a_);g.E(Te,ka);g.y=Te.prototype;g.y.WD=function(X,c){mj("banner-image",X,this.B.get().Uc,this.t7.get(),this.X,this.Z,this.TF(),this.nS(),c)}; +g.y.startRendering=function(X){ew(this.MW,this.TF(),this.nS(),g.T(this.nS().renderingContent,yE),this.callback,"metadata_type_banner_image_layout_view_model",function(c,V,G,n,L){return new RS8(c,V,G,n,L)},this.J); +ka.prototype.startRendering.call(this,X)}; +g.y.yZ=function(X,c){this.Z===c.layoutId&&(this.X===null?this.X=this.t7.get().m8():FX("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; +g.y.m7=function(){}; +g.y.s5=function(){}; +g.y.rJ=function(){}; +g.y.SO=function(){}; +g.y.QL=function(){}; +g.y.ZL=function(){}; +g.y.DO=function(){}; +g.y.eO=function(){}; +g.y.Rv=function(){}; +g.y.m6=function(){}; +g.y.Le=function(){}; +g.y.R2=function(){xS(this.A1(),this);ka.prototype.R2.call(this)};g.E(ua,a_);g.E(PQ,ka);g.y=PQ.prototype;g.y.WD=function(X,c){mj("action-companion",X,this.B.get().Uc,this.t7.get(),this.X,this.Z,this.TF(),this.nS(),c)}; +g.y.startRendering=function(X){ew(this.MW,this.TF(),this.nS(),g.T(this.nS().renderingContent,nA),this.callback,"metadata_type_action_companion_ad_renderer",function(c,V,G,n,L){return new ua(c,V,G,n,L)},this.J); +ka.prototype.startRendering.call(this,X)}; +g.y.yZ=function(X,c){c.layoutId===this.layout.layoutId?this.MW.jS("impression"):this.Z===c.layoutId&&(this.X===null?this.X=this.t7.get().m8():FX("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; +g.y.m7=function(){}; +g.y.s5=function(){}; +g.y.rJ=function(){}; +g.y.SO=function(){}; +g.y.QL=function(){}; +g.y.ZL=function(){}; +g.y.DO=function(){}; +g.y.eO=function(){}; +g.y.Rv=function(){}; +g.y.m6=function(){}; +g.y.Le=function(){}; +g.y.R2=function(){xS(this.A1(),this);ka.prototype.R2.call(this)};g.E(O32,a_);g.E(ze,ka);g.y=ze.prototype;g.y.WD=function(X,c){mj("image-companion",X,this.B.get().Uc,this.t7.get(),this.X,this.Z,this.TF(),this.nS(),c)}; +g.y.startRendering=function(X){ew(this.MW,this.TF(),this.nS(),g.T(this.nS().renderingContent,LA),this.callback,"metadata_type_image_companion_ad_renderer",function(c,V,G,n,L){return new O32(c,V,G,n,L)},this.J); +ka.prototype.startRendering.call(this,X)}; +g.y.yZ=function(X,c){c.layoutId===this.layout.layoutId?this.MW.jS("impression"):this.Z===c.layoutId&&(this.X===null?this.X=this.t7.get().m8():FX("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; +g.y.m7=function(){}; +g.y.s5=function(){}; +g.y.rJ=function(){}; +g.y.SO=function(){}; +g.y.QL=function(){}; +g.y.ZL=function(){}; +g.y.DO=function(){}; +g.y.eO=function(){}; +g.y.Rv=function(){}; +g.y.m6=function(){}; +g.y.Le=function(){}; +g.y.R2=function(){xS(this.A1(),this);ka.prototype.R2.call(this)};g.E(MBD,a_);g.E(BQ,ka);g.y=BQ.prototype;g.y.WD=function(X,c){mj("shopping-companion",X,this.B.get().Uc,this.t7.get(),this.X,this.Z,this.TF(),this.nS(),c)}; +g.y.startRendering=function(X){ew(this.MW,this.TF(),this.nS(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(c,V,G,n,L){return new MBD(c,V,G,n,L)},this.J); +ka.prototype.startRendering.call(this,X)}; +g.y.yZ=function(X,c){c.layoutId===this.layout.layoutId?this.MW.jS("impression"):this.Z===c.layoutId&&(this.X===null?this.X=this.t7.get().m8():FX("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; +g.y.m7=function(){}; +g.y.s5=function(){}; +g.y.rJ=function(){}; +g.y.SO=function(){}; +g.y.QL=function(){}; +g.y.ZL=function(){}; +g.y.DO=function(){}; +g.y.eO=function(){}; +g.y.Rv=function(){}; +g.y.m6=function(){}; +g.y.Le=function(){}; +g.y.R2=function(){xS(this.A1(),this);ka.prototype.R2.call(this)};g.E(sF,ka);g.y=sF.prototype;g.y.startRendering=function(X){ew(this.MW,this.TF(),this.nS(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(c,V,G,n,L){return new ua(c,V,G,n,L)},this.J); +ka.prototype.startRendering.call(this,X)}; +g.y.yZ=function(){}; +g.y.m7=function(){}; +g.y.s5=function(){}; +g.y.rJ=function(){}; +g.y.SO=function(){}; +g.y.QL=function(){}; +g.y.ZL=function(){}; +g.y.DO=function(){}; +g.y.eO=function(){}; +g.y.Rv=function(){}; +g.y.m6=function(){}; +g.y.Le=function(){}; +g.y.R2=function(){xS(this.A1(),this);ka.prototype.R2.call(this)}; +g.y.WD=function(){};g.y=UMD.prototype;g.y.TF=function(){return this.slot}; +g.y.nS=function(){return this.layout}; +g.y.init=function(){this.mS.get().addListener(this);this.mS.get().mA.push(this);var X=jR(this.layout.clientMetadata,"metadata_type_video_length_seconds"),c=jR(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");Rs(this.layout.UM)&&is(this.F2.get(),this.layout.layoutId,{E8:c,ZM:X,listener:this})}; +g.y.release=function(){this.mS.get().removeListener(this);MCt(this.mS.get(),this);Rs(this.layout.UM)&&qE(this.F2.get(),this.layout.layoutId)}; +g.y.startRendering=function(X){this.callback.yZ(this.slot,X)}; +g.y.X6=function(X,c){d9j(this.Xh.get())&&!this.J&&(this.MW.jS("abandon"),this.J=!0);this.callback.m7(this.slot,X,c)}; +g.y.bX=function(X){switch(X.id){case "part2viewed":this.MW.jS("start");this.MW.jS("impression");break;case "videoplaytime25":this.MW.jS("first_quartile");break;case "videoplaytime50":this.MW.jS("midpoint");break;case "videoplaytime75":this.MW.jS("third_quartile");break;case "videoplaytime100":d9j(this.Xh.get())?this.J||(this.MW.jS("complete"),this.J=!0):this.MW.jS("complete");Nf(this.MW)&&pk(this.MW,Infinity,!0);yzt(this.Xh.get())&&Kk(this.G,Infinity,!0);break;case "engagedview":Nf(this.MW)||this.MW.jS("progress"); +break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:FX("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; +g.y.onVolumeChange=function(){}; +g.y.Jf=function(){}; +g.y.ZO=function(){}; +g.y.iX=function(){}; +g.y.onFullscreenToggled=function(){}; +g.y.i_=function(){}; +g.y.E_=function(){}; +g.y.Gc=function(X){yzt(this.Xh.get())&&Kk(this.G,X*1E3,!1);Nf(this.MW)&&pk(this.MW,X*1E3,!1)}; +g.y.nY=function(){}; +g.y.QP=function(){this.MW.jS("active_view_measurable")}; +g.y.Z0=function(){this.MW.jS("active_view_viewable")}; +g.y.tA=function(){this.MW.jS("active_view_fully_viewable_audible_half_duration")}; +g.y.cO=function(){this.MW.jS("audio_measurable")}; +g.y.wk=function(){this.MW.jS("audio_audible")};g.E(Ck,ka);g.y=Ck.prototype;g.y.init=function(){ka.prototype.init.call(this);var X=jR(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),c={adsClientData:this.layout.eS};this.J.push(new eM(X,this.layout.layoutId,jR(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),c,!0))}; +g.y.OY=function(){this.X||this.mS.get().resumeVideo(1)}; +g.y.startRendering=function(X){ka.prototype.startRendering.call(this,X);d7(this.mS.get(),"ad-showing");this.callback.yZ(this.slot,X);this.Z.iP=this}; +g.y.X6=function(X,c){ka.prototype.X6.call(this,X,c);yM(this.mS.get(),"ad-showing");z0(this.Z,this)}; +g.y.WD=function(X){switch(X){case "ad-info-icon-button":(this.X=this.mS.get().RX(1))||this.mS.get().pauseVideo();break;case "visit-advertiser":this.mS.get().pauseVideo()}}; +g.y.R2=function(){ka.prototype.R2.call(this)};g.E(DQ,a_);g.E(Sw,ka);g.y=Sw.prototype;g.y.startRendering=function(X){ew(this.MW,this.TF(),this.nS(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(c,V,G,n,L){return new DQ(c,V,G,n,L)},this.J); +ka.prototype.startRendering.call(this,X)}; +g.y.yZ=function(){}; +g.y.m7=function(){}; +g.y.s5=function(){}; +g.y.rJ=function(){}; +g.y.SO=function(){}; +g.y.QL=function(){}; +g.y.ZL=function(){}; +g.y.DO=function(){}; +g.y.eO=function(){}; +g.y.Rv=function(){}; +g.y.m6=function(){}; +g.y.Le=function(){}; +g.y.R2=function(){xS(this.A1(),this);ka.prototype.R2.call(this)}; +g.y.WD=function(){};g.E(ia,a_);g.E(qf,ka);qf.prototype.init=function(){ka.prototype.init.call(this);this.J.push(new ia(g.T(this.layout.renderingContent,tl),this.layout.layoutId,{adsClientData:this.layout.eS}))}; +qf.prototype.WD=function(){to(this.X.get(),this.Z)&&JC(this.t7.get(),3)}; +qf.prototype.startRendering=function(X){ka.prototype.startRendering.call(this,X);this.callback.yZ(this.slot,X)}; +qf.prototype.R2=function(){ka.prototype.R2.call(this)};g.E(XC,a_);g.E(cb,ka);cb.prototype.init=function(){ka.prototype.init.call(this);var X=g.T(this.layout.renderingContent,$q)||jR(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),c=os(this.MW);this.J.push(new XC(X,c,this.layout.layoutId,{adsClientData:this.layout.eS},!0,!0))}; +cb.prototype.startRendering=function(X){ka.prototype.startRendering.call(this,X);this.callback.yZ(this.slot,X)}; +cb.prototype.WD=function(X,c){if(c===this.layout.layoutId)switch(X){case "skip-button":var V;(X=(V=jR(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:V.current)&&X.nL(this.TF(),this.layout)}}; +cb.prototype.R2=function(){ka.prototype.R2.call(this)};Gm.prototype.build=function(X,c,V,G){if(VY(G,{uf:["metadata_type_ad_break_response_data"],oL:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new Fdw(X,V,G,this.G,this.U,this.J);throw new Ar("Unsupported layout with type: "+G.layoutType+" and client metadata: "+Hv(G.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.E(Pdw,a_);g.E(np,ka);g.y=np.prototype;g.y.WD=function(X,c){mj("ads-engagement-panel",X,this.B.get().Uc,this.t7.get(),this.X,this.Z,this.TF(),this.nS(),c)}; +g.y.startRendering=function(X){ew(this.MW,this.TF(),this.nS(),g.T(this.nS().renderingContent,d8),this.callback,"metadata_type_ads_engagement_panel_renderer",function(c,V,G,n,L){return new Pdw(c,V,G,n,L)},this.J); +ka.prototype.startRendering.call(this,X)}; +g.y.yZ=function(X,c){c.layoutId===this.layout.layoutId?this.MW.jS("impression"):this.Z===c.layoutId&&(this.X===null?this.X=this.t7.get().m8():FX("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; +g.y.m7=function(){}; +g.y.s5=function(){}; +g.y.rJ=function(){}; +g.y.SO=function(){}; +g.y.QL=function(){}; +g.y.ZL=function(){}; +g.y.DO=function(){}; +g.y.eO=function(){}; +g.y.Rv=function(){}; +g.y.m6=function(){}; +g.y.Le=function(){}; +g.y.R2=function(){xS(this.A1(),this);ka.prototype.R2.call(this)};g.E(Lp,ka);g.y=Lp.prototype;g.y.WD=function(X,c){mj("top-banner-image-text-icon-buttoned",X,this.B.get().Uc,this.t7.get(),this.X,this.Z,this.TF(),this.nS(),c)}; +g.y.startRendering=function(X){ew(this.MW,this.TF(),this.nS(),g.T(this.nS().renderingContent,hl),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(c,V,G,n,L){return new DQ(c,V,G,n,L)},this.J); +ka.prototype.startRendering.call(this,X)}; +g.y.yZ=function(X,c){this.Z===c.layoutId&&(this.X===null?this.X=this.t7.get().m8():FX("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; +g.y.m7=function(){}; +g.y.s5=function(){}; +g.y.rJ=function(){}; +g.y.SO=function(){}; +g.y.QL=function(){}; +g.y.ZL=function(){}; +g.y.DO=function(){}; +g.y.eO=function(){}; +g.y.Rv=function(){}; +g.y.m6=function(){}; +g.y.Le=function(){}; +g.y.R2=function(){xS(this.A1(),this);ka.prototype.R2.call(this)};Kd1.prototype.build=function(X,c,V,G){if(VY(G,zS1())||g.T(G.renderingContent,d8)!==void 0)return new np(X,V,G,this.X8,this.t7,this.A1,this.F2,this.J);if(VY(G,tBs())||g.T(G.renderingContent,nA)!==void 0)return new PQ(X,V,G,this.X8,this.t7,this.A1,this.F2,this.J);if(VY(G,ltt())||g.T(G.renderingContent,LA)!==void 0)return new ze(X,V,G,this.X8,this.t7,this.A1,this.F2,this.J);if(VY(G,gT8()))return new BQ(X,V,G,this.X8,this.t7,this.A1,this.F2,this.J);if(VY(G,NP1()))return new sF(X,V,G,this.X8,this.t7,this.A1, +this.F2,this.J);if(VY(G,b32())||g.T(G.renderingContent,yE)!==void 0)return new Te(X,V,G,this.X8,this.t7,this.A1,this.F2,this.J);if(VY(G,BPU())||g.T(G.renderingContent,hl)!==void 0)return new Lp(X,V,G,this.X8,this.t7,this.A1,this.F2,this.J);if(VY(G,TPD()))return new Sw(X,V,G,this.X8,this.t7,this.A1,this.F2,this.J);if(VY(G,mMs())||g.T(G.renderingContent,Al)!==void 0)return new UF(X,V,G,this.X8,this.t7,this.A1,this.F2,this.J);throw new Ar("Unsupported layout with type: "+G.layoutType+" and client metadata: "+ +Hv(G.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};s_1.prototype.build=function(X,c,V,G){if(VY(G,{uf:["metadata_type_linked_player_bytes_layout_id"],oL:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new qf(X,V,G,this.X8,this.t7,this.J);throw new Ar("Unsupported layout with type: "+G.layoutType+" and client metadata: "+Hv(G.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.y=Cdl.prototype;g.y.TF=function(){return this.slot}; +g.y.nS=function(){return this.layout}; +g.y.init=function(){}; +g.y.release=function(){}; +g.y.startRendering=function(X){X.layoutId!==this.layout.layoutId?this.callback.RP(this.slot,X,new Ar("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.callback.yZ(this.slot,X),this.MW.jS("impression"),Dq(this.nm,X,"normal"))}; +g.y.X6=function(X,c){X.layoutId!==this.layout.layoutId?this.callback.RP(this.slot,X,new Ar("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):this.callback.m7(this.slot,X,c)};g.y=Sds.prototype;g.y.TF=function(){return this.slot}; +g.y.nS=function(){return this.layout}; +g.y.init=function(){}; +g.y.release=function(){}; +g.y.startRendering=function(X){X.layoutId!==this.layout.layoutId?this.callback.RP(this.slot,X,new Ar("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.callback.yZ(this.slot,X),this.MW.jS("impression"),Dq(this.nm,X,"normal"))}; +g.y.X6=function(X,c){X.layoutId!==this.layout.layoutId?this.callback.RP(this.slot,X,new Ar("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):this.callback.m7(this.slot,X,c)};dp.prototype.build=function(X,c,V,G){if(!this.Xh.get().W.j().S("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(VY(G,DMs()))return new Cdl(X,V,G,this.t7,this.nm)}else if(VY(G,{uf:[],oL:["LAYOUT_TYPE_FORECASTING"]}))return new Sds(X,V,G,this.t7,this.nm);throw new Ar("Unsupported layout with type: "+G.layoutType+" and client metadata: "+Hv(G.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.E(XBD,a_);g.E(yY,ka);g.y=yY.prototype;g.y.init=function(){ka.prototype.init.call(this);var X=g.T(this.layout.renderingContent,ad)||jR(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),c={adsClientData:this.layout.eS};this.J.push(new XBD(X,jR(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,c))}; +g.y.OY=function(){this.X||this.mS.get().resumeVideo(2)}; +g.y.startRendering=function(X){ka.prototype.startRendering.call(this,X);this.callback.yZ(this.slot,X);this.Z.iP=this}; +g.y.X6=function(X,c){ka.prototype.X6.call(this,X,c);z0(this.Z,this)}; +g.y.WD=function(X){if(to(this.B.get(),this.D))switch(X){case "visit-advertiser-link":JC(this.t7.get(),3)}switch(X){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.X||this.mS.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.X=this.mS.get().RX(2))||this.mS.get().pauseVideo();break;case "visit-advertiser-link":this.mS.get().pauseVideo();c0t(this).rj();break;case "skip-button":if(X=c0t(this), +this.layout.renderingContent&&!dG(this.layout.clientMetadata,"metadata_type_dai")||!X.Dt){var c;(X=(c=jR(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:c.current)&&X.nL(this.TF(),this.layout)}else FX("Requesting to skip by LegacyPlayerBytes when components enabled"),X.pn(this.TF(),this.layout)}}; +g.y.R2=function(){ka.prototype.R2.call(this)};g.E(hm,ka);g.y=hm.prototype;g.y.init=function(){ka.prototype.init.call(this);var X=g.T(this.layout.renderingContent,Hb)||jR(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),c={adsClientData:this.layout.eS},V;(V=!!this.layout.renderingContent)||(V=!Am(this).Dt);this.J.push(new eM(X,this.layout.layoutId,jR(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),c,V))}; +g.y.OY=function(){this.X||this.mS.get().resumeVideo(2)}; +g.y.startRendering=function(X){ka.prototype.startRendering.call(this,X);this.callback.yZ(this.slot,X);this.Z.iP=this}; +g.y.X6=function(X,c){ka.prototype.X6.call(this,X,c);z0(this.Z,this)}; +g.y.WD=function(X){if(to(this.B.get(),this.D))switch(X){case "visit-advertiser":JC(this.t7.get(),3)}switch(X){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.X||this.mS.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.X=this.mS.get().RX(2))||this.mS.get().pauseVideo();break;case "visit-advertiser":this.mS.get().pauseVideo();Am(this).rj();break;case "skip-button":if(X=Am(this),this.layout.renderingContent&& +!dG(this.layout.clientMetadata,"metadata_type_dai")||!X.Dt){var c;(X=(c=jR(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:c.current)&&X.nL(this.TF(),this.layout)}else FX("Requesting to skip by LegacyPlayerBytes"),X.pn(this.TF(),this.layout)}}; +g.y.R2=function(){ka.prototype.R2.call(this)};g.E(Gyj,a_);g.E(Yq,ka);g.y=Yq.prototype;g.y.startRendering=function(X){var c=this;vQ(this.G,X,function(){c.J.push(new Gyj(jR(c.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),X.layoutId,X.eS));c.kG();c.callback.yZ(c.slot,X);g.B(SQ(c.mS.get(),1),512)&&c.callback.RP(c.TF(),c.nS(),new Ar("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; +g.y.E_=function(){}; +g.y.i_=function(X){if(X.state.isError()){var c;this.callback.RP(this.TF(),this.nS(),new Ar("A player error happened during adNotify",{playerErrorCode:(c=X.state.oP)==null?void 0:c.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; +g.y.onFullscreenToggled=function(){}; +g.y.ZO=function(){}; +g.y.iX=function(){}; +g.y.Jf=function(){}; +g.y.onVolumeChange=function(){}; +g.y.bX=function(){}; +g.y.nY=function(){}; +g.y.WD=function(){};g.E(L81,a_);g.E(js,ka);js.prototype.init=function(){ka.prototype.init.call(this);var X=g.T(this.layout.renderingContent,Wb),c=os(this.MW);this.J.push(new L81(X,c,this.layout.layoutId,{adsClientData:this.layout.eS}))}; +js.prototype.startRendering=function(X){ka.prototype.startRendering.call(this,X);this.callback.yZ(this.slot,X)}; +js.prototype.WD=function(X,c){if(c===this.layout.layoutId)switch(X){case "skip-button":var V;(X=(V=jR(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:V.current)&&X.nL(this.TF(),this.layout)}}; +js.prototype.R2=function(){ka.prototype.R2.call(this)};dAl.prototype.build=function(X,c,V,G){if(X=wp(X,V,G,this.X8,this.mS,this.t7,this.G,this.J,this.Xh))return X;throw new Ar("Unsupported layout with type: "+G.layoutType+" and client metadata: "+Hv(G.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.y=rp.prototype;g.y.TF=function(){return this.slot}; +g.y.nS=function(){return this.layout}; +g.y.init=function(){this.mS.get().addListener(this);this.mS.get().mA.push(this);var X=this.layout.renderingContent?Zq(this.Sv.get(),1).dG/1E3:jR(this.layout.clientMetadata,"metadata_type_video_length_seconds"),c=g.T(this.layout.renderingContent,ZC),V=c?ba(c.pings):jR(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");c=c?vTw(c.pings):jR(this.layout.clientMetadata,"metadata_type_active_view_identifier");Rs(this.layout.UM)&&is(this.F2.get(),this.layout.layoutId,{E8:V,ZM:X,listener:this, +eT:c})}; +g.y.release=function(){this.mS.get().removeListener(this);MCt(this.mS.get(),this);Rs(this.layout.UM)&&qE(this.F2.get(),this.layout.layoutId)}; +g.y.startRendering=function(X){this.callback.yZ(this.slot,X)}; +g.y.X6=function(X,c){QY(this,"abandon");this.callback.m7(this.slot,X,c)}; +g.y.bX=function(X){switch(X.id){case "part2viewed":this.MW.jS("start");this.MW.jS("impression");break;case "videoplaytime25":this.MW.jS("first_quartile");break;case "videoplaytime50":this.MW.jS("midpoint");break;case "videoplaytime75":this.MW.jS("third_quartile");break;case "videoplaytime100":QY(this,"complete");Nf(this.MW)&&pk(this.MW,Infinity,!0);break;case "engagedview":Nf(this.MW)||this.MW.jS("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; +default:FX("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; +g.y.onVolumeChange=function(){}; +g.y.Jf=function(){}; +g.y.ZO=function(){}; +g.y.iX=function(){}; +g.y.onFullscreenToggled=function(){}; +g.y.i_=function(X){this.J||(g.QP(X,4)&&!g.QP(X,2)?fk(this.MW,"pause"):rR(X,4)<0&&!(rR(X,2)<0)&&fk(this.MW,"resume"))}; +g.y.E_=function(){}; +g.y.Gc=function(X){Nf(this.MW)&&pk(this.MW,X*1E3,!1)}; +g.y.nY=function(){QY(this,"swipe")}; +g.y.QP=function(){this.MW.jS("active_view_measurable")}; +g.y.Z0=function(){this.MW.jS("active_view_viewable")}; +g.y.tA=function(){this.MW.jS("active_view_fully_viewable_audible_half_duration")}; +g.y.cO=function(){this.MW.jS("audio_measurable")}; +g.y.wk=function(){this.MW.jS("audio_audible")};y0l.prototype.build=function(X,c,V,G){if(V.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.T(G.renderingContent,ZC)!==void 0)return new rp(X,V,G,this.mS,this.t7,this.Xh,this.F2,this.Sv);c=["metadata_type_ad_placement_config"];for(var n=g.r(la()),L=n.next();!L.done;L=n.next())c.push(L.value);if(VY(G,{uf:c,oL:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return V.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new rp(X,V,G,this.mS,this.t7,this.Xh,this.F2,this.Sv):new UMD(X,V,G,this.mS,this.t7, +this.cP,this.Xh,this.F2);throw new Ar("Unsupported layout with type: "+G.layoutType+" and client metadata: "+Hv(G.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var kq={contentCpn:"",fF:new Map};F8D.prototype.OM=function(X,c){var V={};c=Object.assign({},c,(V.cc=this.kt.Yo(),V));this.kt.W.Oy(X,c)};var Byp,lK; +Byp={oyh:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",BWK:"AUTHENTICATION_MALFORMED",wSv:"AUTHENTICATION_MISSING",tUh:"BAD_REQUEST",pSS:"CAST_SESSION_DEVICE_MISMATCHED",YcR:"CAST_SESSION_VIDEO_MISMATCHED",bYy:"CAST_TOKEN_EXPIRED",Lgy:"CAST_TOKEN_FAILED",iYl:"CAST_TOKEN_MALFORMED",ERS:"CGI_PARAMS_MALFORMED",nRS:"CGI_PARAMS_MISSING",IUy:"DEVICE_FALLBACK",YgK:"GENERIC_WITH_LINK_AND_CPN",LBv:"ERROR_HDCP",irv:"LICENSE",n3O:"VIDEO_UNAVAILABLE",jTS:"FORMAT_UNAVAILABLE",yZh:"GEO_FAILURE", +Wul:"HTML5_AUDIO_RENDERER_ERROR",PVy:"GENERIC_WITHOUT_LINK",unv:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",mQS:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",xQy:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",HK7:"HTML5_SPS_UMP_STATUS_REJECTED",rJ_:"INVALID_DRM_MESSAGE",PWR:"PURCHASE_NOT_FOUND",u1y:"PURCHASE_REFUNDED",cnO:"RENTAL_EXPIRED",ekS:"RETRYABLE_ERROR",nqR:"SERVER_ERROR",zkv:"SIGNATURE_EXPIRED",JUR:"STOPPED_BY_ANOTHER_PLAYBACK",OWS:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",Gfv:"STREAMING_NOT_ALLOWED", +AUO:"STREAM_LICENSE_NOT_FOUND",IGy:"TOO_MANY_REQUESTS",aGR:"TOO_MANY_REQUESTS_WITH_LINK",Nn7:"TOO_MANY_STREAMS_PER_ENTITLEMENT",Whl:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",iWS:"VIDEO_FORBIDDEN",E1K:"VIDEO_NOT_FOUND",ScS:"BROWSER_OR_EXTENSION_ERROR"};lK={}; +g.IM=(lK.ALREADY_PINNED_ON_A_DEVICE="This video has already been downloaded on the maximum number of devices allowed by the copyright holder. Before you can play the video here, it needs to be unpinned on another device.",lK.DEVICE_FALLBACK="Sorry, this video is not available on this device.",lK.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",lK.LICENSE="Sorry, there was an error licensing this video.",lK.VIDEO_UNAVAILABLE= +"Video unavailable",lK.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",lK.GEO_FAILURE="This video isn't available in your country.",lK.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",lK.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",lK.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",lK.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="Your browser does not currently recognize any of the video formats available. $BEGIN_LINKClick here to visit our frequently asked questions about HTML5 video.$END_LINK", +lK.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",lK.HTML5_SPS_UMP_STATUS_REJECTED="Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",lK.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",lK.PURCHASE_NOT_FOUND="This video requires payment.",lK.PURCHASE_REFUNDED="This video's purchase has been refunded.",lK.RENTAL_EXPIRED="This video's rental has expired.",lK.CAST_SESSION_DEVICE_MISMATCHED= +"The device in the cast session doesn't match the requested one.",lK.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",lK.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",lK.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",lK.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",lK.SERVER_ERROR="There was an internal server error. Please try again later.",lK.STOPPED_BY_ANOTHER_PLAYBACK= +"Your account is playing this video in another location. Please reload this page to resume watching.",lK.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",lK.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",lK.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",lK.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",lK.TOO_MANY_REQUESTS="Please log in to watch this video.", +lK.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",lK.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",lK.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",lK.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",lK.VIDEO_FORBIDDEN="Access to this video is forbidden.",lK.VIDEO_NOT_FOUND="This video can not be found.",lK.BROWSER_OR_EXTENSION_ERROR= +"Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",lK);var KwH;var sAi=g.bA(),Cy7=sAi.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!Cy7||Cy7.length<2)KwH=void 0;else{var Dur=sAi.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);KwH=Dur&&Dur.length===6?Number(Dur[5].replace("_",".")):0}var Pr=KwH,lV=Pr>=0;g.E(g.U3,tj);g.U3.prototype.L=function(X,c,V,G,n){return tj.prototype.L.call(this,X,c,V,G,n)};var M3={},wf=(M3.FAIRPLAY="fairplay",M3.PLAYREADY="playready",M3.WIDEVINE="widevine",M3.CLEARKEY=null,M3.FLASHACCESS=null,M3.UNKNOWN=null,M3.WIDEVINE_CLASSIC=null,M3);Tm.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var gB={},v4=(gB.WIDTH={name:"width",video:!0,valid:640,JU:99999},gB.HEIGHT={name:"height",video:!0,valid:360,JU:99999},gB.FRAMERATE={name:"framerate",video:!0,valid:30,JU:9999},gB.BITRATE={name:"bitrate",video:!0,valid:3E5,JU:2E9},gB.EOTF={name:"eotf",video:!0,valid:"bt709",JU:"catavision"},gB.CHANNELS={name:"channels",video:!1,valid:2,JU:99},gB.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",JU:"invalidformat"},gB.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", +JU:"nope"},gB.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",JU:"av99.0.05M.08"},gB.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",JU:"invalid"},gB);var S5U=["h","H"],iY7=["9","("],q5i=["9h","(h"],XNp=["8","*"],ciV=["a","A"],VKM=["o","O"],GZA=["m","M"],nd_=["mac3","MAC3"],Lm_=["meac3","MEAC3"],fU={},aq1=(fU.h=S5U,fU.H=S5U,fU["9"]=iY7,fU["("]=iY7,fU["9h"]=q5i,fU["(h"]=q5i,fU["8"]=XNp,fU["*"]=XNp,fU.a=ciV,fU.A=ciV,fU.o=VKM,fU.O=VKM,fU.m=GZA,fU.M=GZA,fU.mac3=nd_,fU.MAC3=nd_,fU.meac3=Lm_,fU.MEAC3=Lm_,fU),dJV=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),LTt=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var S={},s3=(S["0"]="f",S["160"]="h",S["133"]="h",S["134"]="h",S["135"]="h",S["136"]="h",S["137"]="h",S["264"]="h",S["266"]="h",S["138"]="h",S["298"]="h",S["299"]="h",S["304"]="h",S["305"]="h",S["214"]="h",S["216"]="h",S["374"]="h",S["375"]="h",S["140"]="a",S["141"]="ah",S["327"]="sa",S["258"]="m",S["380"]="mac3",S["328"]="meac3",S["161"]="H",S["142"]="H",S["143"]="H",S["144"]="H",S["222"]="H",S["223"]="H",S["145"]="H",S["224"]="H",S["225"]="H",S["146"]="H",S["226"]="H",S["227"]="H",S["147"]="H", +S["384"]="H",S["376"]="H",S["385"]="H",S["377"]="H",S["149"]="A",S["261"]="M",S["381"]="MAC3",S["329"]="MEAC3",S["598"]="9",S["278"]="9",S["242"]="9",S["243"]="9",S["244"]="9",S["775"]="9",S["776"]="9",S["777"]="9",S["778"]="9",S["779"]="9",S["780"]="9",S["781"]="9",S["782"]="9",S["783"]="9",S["247"]="9",S["248"]="9",S["353"]="9",S["355"]="9",S["356"]="9",S["271"]="9",S["577"]="9",S["313"]="9",S["579"]="9",S["272"]="9",S["302"]="9",S["303"]="9",S["407"]="9",S["408"]="9",S["308"]="9",S["315"]="9", +S["330"]="9h",S["331"]="9h",S["332"]="9h",S["333"]="9h",S["334"]="9h",S["335"]="9h",S["336"]="9h",S["337"]="9h",S["338"]="so",S["600"]="o",S["250"]="o",S["251"]="o",S["774"]="o",S["194"]="*",S["195"]="*",S["220"]="*",S["221"]="*",S["196"]="*",S["197"]="*",S["279"]="(",S["280"]="(",S["317"]="(",S["318"]="(",S["273"]="(",S["274"]="(",S["357"]="(",S["358"]="(",S["275"]="(",S["359"]="(",S["360"]="(",S["276"]="(",S["583"]="(",S["584"]="(",S["314"]="(",S["585"]="(",S["561"]="(",S["277"]="(",S["361"]="(h", +S["362"]="(h",S["363"]="(h",S["364"]="(h",S["365"]="(h",S["366"]="(h",S["591"]="(h",S["592"]="(h",S["367"]="(h",S["586"]="(h",S["587"]="(h",S["368"]="(h",S["588"]="(h",S["562"]="(h",S["409"]="(",S["410"]="(",S["411"]="(",S["412"]="(",S["557"]="(",S["558"]="(",S["394"]="1",S["395"]="1",S["396"]="1",S["397"]="1",S["398"]="1",S["399"]="1",S["720"]="1",S["721"]="1",S["400"]="1",S["401"]="1",S["571"]="1",S["402"]="1",S["694"]="1h",S["695"]="1h",S["696"]="1h",S["697"]="1h",S["698"]="1h",S["699"]="1h",S["700"]= +"1h",S["701"]="1h",S["702"]="1h",S["703"]="1h",S["386"]="3",S["387"]="w",S["406"]="6",S["787"]="1",S["788"]="1",S["548"]="1e",S["549"]="1e",S["550"]="1e",S["551"]="1e",S["809"]="1e",S["810"]="1e",S["552"]="1e",S["811"]="1e",S["812"]="1e",S["553"]="1e",S["813"]="1e",S["814"]="1e",S["554"]="1e",S["815"]="1e",S["816"]="1e",S["555"]="1e",S["817"]="1e",S["818"]="1e",S["572"]="1e",S["556"]="1e",S["645"]="(",S["646"]="(",S["647"]="(",S["648"]="(",S["649"]="(",S["650"]="(",S["651"]="(",S["652"]="(",S["653"]= +"(",S["654"]="(",S["655"]="(",S["656"]="(",S["657"]="(",S["658"]="(",S["659"]="(",S["660"]="(",S["661"]="(",S["662"]="(",S["663"]="(",S["664"]="(",S["665"]="(",S["666"]="(",S["667"]="(",S["668"]="(",S["669"]="(",S["670"]="(",S["671"]="(",S["672"]="(",S["673"]="(",S["674"]="(h",S["675"]="(h",S["676"]="(h",S["677"]="(h",S["678"]="(h",S["679"]="(h",S["680"]="(h",S["681"]="(h",S["682"]="(h",S["683"]="(h",S["684"]="(h",S["685"]="(h",S["686"]="(h",S["687"]="(h",S["688"]="A",S["689"]="A",S["690"]="A",S["691"]= +"MEAC3",S["773"]="i",S["806"]="I",S["805"]="I",S["829"]="9",S["830"]="9",S["831"]="9",S["832"]="9",S["833"]="9",S["834"]="9",S["835"]="9",S["836"]="9",S["837"]="9",S["838"]="9",S["839"]="9",S["840"]="9",S["841"]="(",S["842"]="(",S["843"]="(",S["844"]="(",S["845"]="(",S["846"]="(",S["847"]="(",S["848"]="(",S["849"]="(",S["850"]="(",S["851"]="(",S["852"]="(",S["865"]="9",S["866"]="9",S["867"]="9",S["868"]="9",S["869"]="9",S["870"]="9",S["871"]="9",S["872"]="9",S["873"]="9",S["874"]="9",S["875"]="9", +S["876"]="9",S["877"]="(",S["878"]="(",S["879"]="(",S["880"]="(",S["881"]="(",S["882"]="(",S["883"]="(",S["884"]="(",S["885"]="(",S["886"]="(",S["887"]="(",S["888"]="(",S);var pU={},sQ2=(pU.STEREO_LAYOUT_UNKNOWN=0,pU.STEREO_LAYOUT_LEFT_RIGHT=1,pU.STEREO_LAYOUT_TOP_BOTTOM=2,pU);var IS,A7;IS={};g.Pb=(IS.auto=0,IS.tiny=144,IS.light=144,IS.small=240,IS.medium=360,IS.large=480,IS.hd720=720,IS.hd1080=1080,IS.hd1440=1440,IS.hd2160=2160,IS.hd2880=2880,IS.highres=4320,IS);A7={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var Bb="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");zm.prototype.isHdr=function(){return this.G==="smpte2084"||this.G==="arib-std-b67"};Cp.prototype.hO=function(){return this.containerType===2}; +Cp.prototype.isEncrypted=function(){return!!this.r$}; +Cp.prototype.oi=function(){return!!this.audio}; +Cp.prototype.EN=function(){return!!this.video}; +var io=!1;g.E(Eo,g.$T);g.y=Eo.prototype;g.y.appendBuffer=function(X,c,V){if(this.UH.qf()!==this.appendWindowStart+this.start||this.UH.u6()!==this.appendWindowEnd+this.start||this.UH.h1()!==this.timestampOffset+this.start)this.UH.supports(1),this.UH.K3(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.UH.RC(this.timestampOffset+this.start);this.UH.appendBuffer(X,c,V)}; +g.y.abort=function(){this.UH.abort()}; +g.y.remove=function(X,c){this.UH.remove(X+this.start,c+this.start)}; +g.y.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; +g.y.clear=function(){this.UH.clear()}; +g.y.K3=function(X,c){this.appendWindowStart=X;this.appendWindowEnd=c}; +g.y.HZ=function(){return this.timestampOffset+this.start}; +g.y.qf=function(){return this.appendWindowStart}; +g.y.u6=function(){return this.appendWindowEnd}; +g.y.RC=function(X){this.timestampOffset=X}; +g.y.h1=function(){return this.timestampOffset}; +g.y.KE=function(X){X=this.UH.KE(X===void 0?!1:X);return FN(X,this.start,this.end)}; +g.y.rM=function(){return this.UH.rM()}; +g.y.Ax=function(){return this.UH.Ax()}; +g.y.j_=function(){return this.UH.j_()}; +g.y.Ck=function(){return this.UH.Ck()}; +g.y.h4=function(){this.UH.h4()}; +g.y.C1=function(X){return this.UH.C1(X)}; +g.y.NT=function(){return this.UH.NT()}; +g.y.rz=function(){return this.UH.rz()}; +g.y.lT=function(){return this.UH.lT()}; +g.y.zl=function(X,c,V){this.UH.zl(X,c,V)}; +g.y.VD=function(X,c,V){this.UH.VD(X,c,V)}; +g.y.Be=function(X,c){return this.UH.Be(X,c)}; +g.y.supports=function(X){return this.UH.supports(X)}; +g.y.YN=function(){return this.UH.YN()}; +g.y.isView=function(){return!0}; +g.y.bD=function(){return this.UH.bD()?this.isActive:!1}; +g.y.isLocked=function(){return this.rR&&!this.isActive}; +g.y.J1=function(X){X=this.UH.J1(X);X.vw=this.start+"-"+this.end;return X}; +g.y.po=function(){return this.UH.po()}; +g.y.bJ=function(){return this.UH.bJ()}; +g.y.Nu=function(){return this.UH.Nu()}; +g.y.R2=function(){this.UH.Ma(this.l5);g.$T.prototype.R2.call(this)};var xO=!1;g.E(Qs,g.$T);g.y=Qs.prototype;g.y.appendBuffer=function(X,c,V){this.Xu=!1;V&&(this.y9=V);if(X.length){var G;((G=this.DQ)==null?0:G.appendBuffer)?this.DQ.appendBuffer(X):this.DQ?this.DQ.append(X):this.Yz&&this.Yz.webkitSourceAppend(this.id,X)}c&&(c.isEncrypted()&&(this.HI=this.y9),c.type===3&&(this.GY=c),this.V9.push(c.u3()),this.V9.length>4&&this.V9.shift());this.eE&&(this.eE.length>=2||X.length>1048576?delete this.eE:this.eE.push(X))}; +g.y.abort=function(){try{this.DQ?this.DQ.abort():this.Yz&&this.Yz.webkitSourceAbort(this.id)}catch(X){X_U&&g.Ni(new g.SP("Error while abort the source buffer: "+X.name+", "+X.message))}this.y9=this.GY=null}; +g.y.remove=function(X,c,V){this.Xu=!1;var G;if((G=this.DQ)==null?0:G.remove)V&&V({b:jU(this.KE()),s:X,e:c}),this.DQ.remove(X,c)}; +g.y.removeAll=function(){this.remove(this.qf(),this.u6())}; +g.y.clear=function(){this.j_()||(this.abort(),this.removeAll(),this.HI=this.y9=this.GY=null,this.appendWindowStart=this.timestampOffset=0,this.vT=YK([],[]),this.Xu=!1,this.eE=rq?[]:void 0,this.n7=!0)}; +g.y.qf=function(){if(xO&&this.EN)return this.appendWindowStart;var X;return((X=this.DQ)==null?void 0:X.appendWindowStart)||0}; +g.y.u6=function(){var X;return((X=this.DQ)==null?void 0:X.appendWindowEnd)||0}; +g.y.K3=function(X,c){this.DQ&&(xO&&this.EN?(this.appendWindowStart=X,this.DQ.appendWindowEnd=c):X>this.qf()?(this.DQ.appendWindowEnd=c,this.DQ.appendWindowStart=X):(this.DQ.appendWindowStart=X,this.DQ.appendWindowEnd=c))}; +g.y.HZ=function(){return this.timestampOffset}; +g.y.RC=function(X){xO?this.timestampOffset=X:this.supports(1)&&(this.DQ.timestampOffset=X)}; +g.y.h1=function(){return xO?this.timestampOffset:this.supports(1)?this.DQ.timestampOffset:0}; +g.y.KE=function(X){if(X===void 0?0:X)return this.Xu||this.rM()||(this.vT=this.KE(!1),this.Xu=!0),this.vT;try{return this.DQ?this.DQ.buffered:this.Yz?this.Yz.webkitSourceBuffered(this.id):YK([0],[Infinity])}catch(c){return YK([],[])}}; +g.y.rM=function(){var X;return((X=this.DQ)==null?void 0:X.updating)||!1}; +g.y.j_=function(){return this.n7}; +g.y.Ck=function(){return!this.n7&&this.rM()}; +g.y.h4=function(){this.n7=!1}; +g.y.C1=function(X){var c=X==null?void 0:X.VK;X=X==null?void 0:X.containerType;return!c&&!X||c===this.VK&&X===this.containerType}; +g.y.NT=function(){return this.y9}; +g.y.rz=function(){return this.HI}; +g.y.Be=function(X,c){return this.containerType!==X||this.VK!==c}; +g.y.zl=function(X,c,V){if(this.containerType!==X||V&&this.Be(X,V))this.supports(4),ZG()&&this.DQ.changeType(c),V&&(this.VK=V);this.containerType=X}; +g.y.VD=function(X,c,V){this.containerType&&this.Be(X,c)&&ZG()&&this.DQ.changeType(V);this.containerType=X;this.VK=c}; +g.y.YN=function(){return this.GY}; +g.y.isView=function(){return!1}; +g.y.supports=function(X){switch(X){case 1:var c;return((c=this.DQ)==null?void 0:c.timestampOffset)!==void 0;case 0:var V;return!((V=this.DQ)==null||!V.appendBuffer);case 2:var G;return!((G=this.DQ)==null||!G.remove);case 3:var n,L;return!!(((n=this.DQ)==null?0:n.addEventListener)&&((L=this.DQ)==null?0:L.removeEventListener));case 4:return!(!this.DQ||!this.DQ.changeType);default:return!1}}; +g.y.bD=function(){return!this.rM()}; +g.y.isLocked=function(){return!1}; +g.y.J1=function(X){X.to=this.h1();X.up=this.rM();var c,V=((c=this.DQ)==null?void 0:c.appendWindowStart)||0,G;c=((G=this.DQ)==null?void 0:G.appendWindowEnd)||Infinity;X.aw=V.toFixed(3)+"-"+c.toFixed(3);return X}; +g.y.Ax=function(){var X;return((X=this.DQ)==null?void 0:X.writeHead)||0}; +g.y.po=function(){for(var X={},c=0;c=7&&E9t(this,function(){g.Q8(function(){f2l(X,X.getCurrentTime(),0)},500)}); +return c}; +g.y.seekTo=function(X){this.ag()>0&&(lV&&Pr<4&&(X=Math.max(.1,X)),this.setCurrentTime(X))}; +g.y.Cr=function(){if(!this.G&&this.ev)if(this.ev.Z)try{var X;SU(this,{l:"mer",sr:(X=this.J7)==null?void 0:X.Rx(),rs:q1(this.ev)});this.ev.clear();this.G=this.ev;this.ev=void 0}catch(c){X=new g.SP("Error while clearing Media Source in MediaElement: "+c.name+", "+c.message),g.Ni(X),this.stopVideo()}else this.stopVideo()}; +g.y.stopVideo=function(){var X=this;if(!this.G){var c;(c=this.ev)==null||l2l(c);if(SK8){if(!this.U){var V=new cS;V.then(void 0,function(){}); +this.U=V;iIj&&this.pause();g.Q8(function(){X.U===V&&(Lg(X),V.resolve())},200)}}else Lg(this)}}; +g.y.QX=function(){var X=this.q$();return WZ(X)>0&&this.getDuration()?$K(X,this.getCurrentTime()):0}; +g.y.ut=function(){var X=this.getDuration();return X===Infinity?1:X?this.QX()/X:0}; +g.y.J1=function(){try{var X=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:jU(this.HN(),",",3),vbu:jU(this.q$()),vbs:jU(this.TT()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.ag(),vns:""+this.i6(),vec:""+this.dJ(),vemsg:this.NJ(),vvol:""+this.getVolume(),vdom:""+ +this.q8(),vsrc:""+ +!!this.I$(),vw:""+X.width,vh:""+X.height}}catch(c){return{}}}; +g.y.hasError=function(){return this.dJ()>0}; +g.y.addEventListener=function(X,c){this.X.listen(X,c,!1,this);this.HJ(X)}; +g.y.removeEventListener=function(X,c){this.X.Hd(X,c,!1,this)}; +g.y.dispatchEvent=function(X){if(this.U&&X.type==="pause")return!1;if(qKD){var c,V=((c=X.J)==null?void 0:c.timeStamp)||Infinity;c=V>performance.now()?V-Date.now()+performance.now():V;V=this.G||this.ev;if((V==null?0:V.j_())||c<=((V==null?void 0:V.B)||0)){var G;SU(this,{l:"mede",sr:(G=this.J7)==null?void 0:G.Rx(),et:X.type});return!1}if(this.HA)return SU(this,{l:"medes",et:X.type}),V&&X.type==="seeking"&&(V.B=performance.now(),this.HA=!1),!1}return this.X.dispatchEvent(X)}; +g.y.PJ=function(){this.B=!1}; +g.y.IE=function(){this.B=!0;this.nG(!0)}; +g.y.GN=function(){this.B&&!this.Lo()&&this.nG(!0)}; +g.y.w6=function(X){return!!X&&X.WP()===this.WP()}; +g.y.R2=function(){this.D&&this.removeEventListener("volumechange",this.GN);SK8&&Lg(this);g.I.prototype.R2.call(this)}; +var SK8=!1,iIj=!1,qKD=!1,NRS=!1;g.y=g.y_.prototype;g.y.isPaused=function(){return g.B(this,4)}; +g.y.isPlaying=function(){return g.B(this,8)&&!g.B(this,512)&&!g.B(this,64)&&!g.B(this,2)}; +g.y.isOrWillBePlaying=function(){return g.B(this,8)&&!g.B(this,2)&&!g.B(this,1024)}; +g.y.isCued=function(){return g.B(this,64)&&!g.B(this,8)&&!g.B(this,4)}; +g.y.isBuffering=function(){return g.B(this,1)&&!g.B(this,2)}; +g.y.isError=function(){return g.B(this,128)}; +g.y.isSuspended=function(){return g.B(this,512)}; +g.y.DI=function(){return g.B(this,64)&&g.B(this,4)}; +g.y.toString=function(){return"PSt."+this.state.toString(16)}; +var N3={},Uu=(N3.BUFFERING="buffering-mode",N3.CUED="cued-mode",N3.ENDED="ended-mode",N3.PAUSED="paused-mode",N3.PLAYING="playing-mode",N3.SEEKING="seeking-mode",N3.UNSTARTED="unstarted-mode",N3);g.E(FE,g.I);g.y=FE.prototype;g.y.lW=function(){return this.U}; +g.y.TF=function(){return this.slot}; +g.y.nS=function(){return this.layout}; +g.y.init=function(){var X=jR(this.layout.clientMetadata,"metadata_type_video_length_seconds"),c=jR(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");Rs(this.layout.UM)&&is(this.F2.get(),this.layout.layoutId,{E8:c,ZM:X,listener:this,hU:this.HW()});eWD(this.t7.get(),this);X=this.lj;c=this.layout.layoutId;var V={hU:this.HW()};X.J.set(c,V);this.vA()}; +g.y.Rq=function(){}; +g.y.release=function(){Rs(this.layout.UM)&&qE(this.F2.get(),this.layout.layoutId);Jz8(this.t7.get(),this);this.lj.J.delete(this.layout.layoutId);this.VP()}; +g.y.zP=function(){}; +g.y.GX=function(){}; +g.y.startRendering=function(X){Jm(E8(this));if(rx(this,X)){var c=this.J;mT(c.params.yH.Xh.get(),!0)&&wBO(c,"p_sr",{});Q_(this);this.FS(X);this.HW()||this.tj(!1)}}; +g.y.yZ=function(X,c){if(c.layoutId===this.layout.layoutId){this.Cy="rendering";this.G=this.mS.get().isMuted()||this.mS.get().getVolume()===0;this.jS("impression");this.jS("start");if(this.mS.get().isMuted()){eW(this,"mute");var V;X=((V=wx(this))==null?void 0:V.muteCommands)||[];DT(this.cP.get(),X,this.layout.layoutId)}if(this.mS.get().isFullscreen()){this.Cl("fullscreen");var G;V=((G=wx(this))==null?void 0:G.fullscreenCommands)||[];DT(this.cP.get(),V,this.layout.layoutId)}this.HW()||(G=this.wm.get(), +G.U&&!G.G&&(G.Z=!1,G.G=!0,G.actionType!=="ad_to_video"&&(DN("pbs",void 0,G.actionType),g.oa("finalize_all_timelines")&&n_l(G.actionType))));this.Ot(1);this.ma(c);var n;c=((n=wx(this))==null?void 0:n.impressionCommands)||[];DT(this.cP.get(),c,this.layout.layoutId)}}; +g.y.v4=function(X,c,V){this.D={qO:3,wR:X==="load_timeout"?402:400,errorMessage:c.message};this.jS("error");var G;X=((G=wx(this))==null?void 0:G.errorCommands)||[];DT(this.cP.get(),X,this.layout.layoutId);this.HW()||this.pW.RP(this.slot,this.layout,c,V)}; +g.y.eC=function(){if(this.Cy==="rendering"){eW(this,"pause");var X,c=((X=wx(this))==null?void 0:X.pauseCommands)||[];DT(this.cP.get(),c,this.layout.layoutId);this.Ot(2)}}; +g.y.rf=function(){if(this.Cy==="rendering"){eW(this,"resume");var X,c=((X=wx(this))==null?void 0:X.resumeCommands)||[];DT(this.cP.get(),c,this.layout.layoutId)}}; +g.y.m1=function(X,c){c=c===void 0?!1:c;if(this.Cy==="rendering"){var V={currentTimeSec:X,flush:c};Rd(this.J,"p_ip",V);pk(this.MW,X*1E3,c);this.G||pk(this.MW,X*1E3,c===void 0?!1:c);var G=this.LU();if(G){G/=1E3;if(X>=G*.25||c)this.jS("first_quartile"),Rd(this.J,"p_fq",V);if(X>=G*.5||c)this.jS("midpoint"),Rd(this.J,"p_sq",V);if(X>=G*.75||c)this.jS("third_quartile"),Rd(this.J,"p_tq",V);this.Xh.get().W.j().experiments.lc("enable_progress_command_flush_on_kabuki")?Kk(this.X,X*1E3,c):Kk(this.X,X*1E3,BRL(this)? +c:!1)}}}; +g.y.Yo=function(){var X;return((X=Zq(this.Sv.get(),1))==null?void 0:X.clientPlaybackNonce)||""}; +g.y.Hq=function(X,c){X.layoutId!==this.layout.layoutId?this.pW.RP(this.slot,X,new Ar("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):c()}; +g.y.m7=function(X,c,V){if(c.layoutId===this.layout.layoutId)switch(this.Cy="not_rendering",this.layoutExitReason=void 0,this.HW()||(X=V!=="normal"||this.position+1===this.B)&&this.tj(X),this.Dv(V),this.Ot(0),V){case "abandoned":if(Is(this.MW,"impression")){var G,n=((G=wx(this))==null?void 0:G.abandonCommands)||[];DT(this.cP.get(),n,this.layout.layoutId)}break;case "normal":G=((n=wx(this))==null?void 0:n.completeCommands)||[];DT(this.cP.get(),G,this.layout.layoutId);break;case "skipped":var L;G=((L= +wx(this))==null?void 0:L.skipCommands)||[];DT(this.cP.get(),G,this.layout.layoutId)}}; +g.y.iJ=function(){return this.layout.layoutId}; +g.y.iT=function(){return this.D}; +g.y.QP=function(){if(this.Cy==="rendering"){this.MW.jS("active_view_measurable");var X,c=((X=wx(this))==null?void 0:X.activeViewMeasurableCommands)||[];DT(this.cP.get(),c,this.layout.layoutId)}}; +g.y.tA=function(){if(this.Cy==="rendering"){this.MW.jS("active_view_fully_viewable_audible_half_duration");var X,c=((X=wx(this))==null?void 0:X.activeViewFullyViewableAudibleHalfDurationCommands)||[];DT(this.cP.get(),c,this.layout.layoutId)}}; +g.y.Z0=function(){if(this.Cy==="rendering"){this.MW.jS("active_view_viewable");var X,c=((X=wx(this))==null?void 0:X.activeViewViewableCommands)||[];DT(this.cP.get(),c,this.layout.layoutId)}}; +g.y.wk=function(){if(this.Cy==="rendering"){this.MW.jS("audio_audible");var X,c=((X=wx(this))==null?void 0:X.activeViewAudioAudibleCommands)||[];DT(this.cP.get(),c,this.layout.layoutId)}}; +g.y.cO=function(){if(this.Cy==="rendering"){this.MW.jS("audio_measurable");var X,c=((X=wx(this))==null?void 0:X.activeViewAudioMeasurableCommands)||[];DT(this.cP.get(),c,this.layout.layoutId)}}; +g.y.tj=function(X){this.wm.get().tj(jR(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,X,this.position,this.B,!1)}; +g.y.onFullscreenToggled=function(X){if(this.Cy==="rendering")if(X){this.Cl("fullscreen");var c,V=((c=wx(this))==null?void 0:c.fullscreenCommands)||[];DT(this.cP.get(),V,this.layout.layoutId)}else this.Cl("end_fullscreen"),c=((V=wx(this))==null?void 0:V.endFullscreenCommands)||[],DT(this.cP.get(),c,this.layout.layoutId)}; +g.y.onVolumeChange=function(){if(this.Cy==="rendering")if(this.mS.get().isMuted()){eW(this,"mute");var X,c=((X=wx(this))==null?void 0:X.muteCommands)||[];DT(this.cP.get(),c,this.layout.layoutId)}else eW(this,"unmute"),X=((c=wx(this))==null?void 0:c.unmuteCommands)||[],DT(this.cP.get(),X,this.layout.layoutId)}; +g.y.ZO=function(){}; +g.y.iX=function(){}; +g.y.Jf=function(){}; +g.y.bX=function(){}; +g.y.nY=function(){}; +g.y.Cl=function(X){this.MW.Cl(X,!this.G)}; +g.y.jS=function(X){this.MW.jS(X,!this.G)}; +g.y.HW=function(){var X=jR(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return X===void 0?(FX("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.Xh.get().HW(X)};g.E(t2,FE);g.y=t2.prototype;g.y.vA=function(){}; +g.y.VP=function(){var X=this.t7.get();X.Ad===this&&(X.Ad=null);this.lf.stop()}; +g.y.zP=function(){this.lf.stop();FE.prototype.eC.call(this)}; +g.y.GX=function(){l3(this);FE.prototype.rf.call(this)}; +g.y.LU=function(){return jR(this.nS().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; +g.y.X6=function(X,c){var V=this;this.Hq(X,function(){V.Cy!=="rendering_stop_requested"&&(V.Cy="rendering_stop_requested",V.layoutExitReason=c,xN(V,c),V.lf.stop())})}; +g.y.er=function(){var X=Date.now(),c=X-this.wN;this.wN=X;this.XK+=c;this.XK>=this.LU()?this.EB():(this.m1(this.XK/1E3),O8(this,this.XK))}; +g.y.Dv=function(){}; +g.y.E_=function(){}; +g.E(MU,t2);g.y=MU.prototype;g.y.i_=function(X){if(this.Cy!=="not_rendering"){X=vS(this,X);var c=this.mS.get().getPresentingPlayerType()===2;this.Cy==="rendering_start_requested"?c&&FC(X)&&this.gq():c?g.QP(X,2)?FX("Receive player ended event during MediaBreak",this.TF(),this.nS()):kN(this,X):this.fU()}}; +g.y.FS=function(){PGO(this);pXs(this.mS.get());this.t7.get().Ad=this;sr("pbp")||sr("pbs")||DN("pbp");sr("pbp","watch")||sr("pbs","watch")||DN("pbp",void 0,"watch");this.gq()}; +g.y.ma=function(X){this.wm.get();var c=jR(X.clientMetadata,"metadata_type_ad_placement_config").kind,V=this.position===0;X=jR(X.clientMetadata,"metadata_type_linked_in_player_layout_type");X={adBreakType:oH(c),adType:V1D(X)};var G=void 0;V?c!=="AD_PLACEMENT_KIND_START"&&(G="video_to_ad"):G="ad_to_ad";zh("ad_mbs",void 0,G);g.Bh(X,G);l3(this)}; +g.y.fU=function(){this.PU()}; +g.y.EB=function(){su8(this);this.PU()}; +g.E(gx,t2);g.y=gx.prototype;g.y.i_=function(X){this.Cy!=="not_rendering"&&(X=vS(this,X),kN(this,X))}; +g.y.FS=function(){FX("Not used in SSAP")}; +g.y.ma=function(){l3(this)}; +g.y.fU=function(){FX("Not used in SSAP")}; +g.y.EB=function(){su8(this);this.pW.Zy(this.TF(),this.nS(),"normal")}; +g.E(fg,gx);fg.prototype.X6=function(X,c){var V=this;this.Hq(X,function(){xq(V.U,c)&&(V.Cy="rendering_stop_requested",V.layoutExitReason=c,xN(V,c),V.lf.stop())})}; +fg.prototype.startRendering=function(X){Jm(E8(this));rx(this,X)&&(Q_(this),this.t7.get().Ad=this)};g.E(NU,FE);g.y=NU.prototype;g.y.fU=function(){this.PU()}; +g.y.i_=function(X){if(this.Cy!=="not_rendering"){X=vS(this,X);var c=this.mS.get().getPresentingPlayerType()===2;this.Cy==="rendering_start_requested"?c&&FC(X)&&this.gq():!c||g.QP(X,2)?this.PU():kN(this,X)}}; +g.y.vA=function(){jR(this.nS().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=jR(this.nS().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; +g.y.VP=function(){jR(this.nS().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.JQ){var X=this.context.yH,c=this.JQ,V=this.nS().layoutId;if(mT(X.Xh.get(),!0)){var G={};X.OM("mccru",(G.cid=c,G.p_ac=V,G))}this.b3.get().removeCueRange(this.JQ)}this.JQ=void 0;var n;(n=this.A9)==null||n.dispose();this.sG&&this.sG.dispose()}; +g.y.FS=function(X){var c=pg(this.Xh.get()),V=IH(this.Xh.get());if(c&&V&&!this.HW()){V=jR(X.clientMetadata,"metadata_type_preload_player_vars");var G=g.EZ(this.Xh.get().W.j().experiments,"html5_preload_wait_time_secs");V&&this.sG&&this.sG.start(G*1E3)}SSl(this,X);PGO(this);c?(V=this.CM.get(),X=jR(X.clientMetadata,"metadata_type_player_vars"),V.W.loadVideoByPlayerVars(X,!1,2)):K1D(this.CM.get(),jR(X.clientMetadata,"metadata_type_player_vars"));var n;(n=this.A9)==null||n.start();c||this.CM.get().W.playVideo(2)}; +g.y.ma=function(){var X;(X=this.A9)==null||X.stop();this.JQ="adcompletioncuerange:"+this.nS().layoutId;this.b3.get().addCueRange(this.JQ,0x7ffffffffffff,0x8000000000000,!1,this,2,2);X=this.context.yH;var c=this.JQ,V=this.nS().layoutId;if(mT(X.Xh.get(),!0)){var G={};X.OM("mccr",(G.cid=c,G.p_ac=V,G))}(this.adCpn=uXt(this))||FX("Media layout confirmed started, but ad CPN not set.");this.oy.get().Wu("onAdStart",this.adCpn);this.By=Date.now()}; +g.y.LU=function(){var X;return(X=Zq(this.Sv.get(),2))==null?void 0:X.dG}; +g.y.rj=function(){this.MW.Cl("clickthrough")}; +g.y.X6=function(X,c){var V=this;this.Hq(X,function(){if(V.Cy!=="rendering_stop_requested"){V.Cy="rendering_stop_requested";V.layoutExitReason=c;xN(V,c);var G;(G=V.A9)==null||G.stop();V.sG&&V.sG.stop();iZO(V)}})}; +g.y.onCueRangeEnter=function(X){if(X!==this.JQ)FX("Received CueRangeEnter signal for unknown layout.",this.TF(),this.nS(),{cueRangeId:X});else{var c=this.context.yH,V=this.nS().layoutId;if(mT(c.Xh.get(),!0)){var G={};c.OM("mccre",(G.cid=X,G.p_ac=V,G))}this.b3.get().removeCueRange(this.JQ);this.JQ=void 0;Xu(this.context.Xh.get(),"html5_ssap_flush_at_stop_rendering")&&this.HW()||(X=jR(this.nS().clientMetadata,"metadata_type_video_length_seconds"),this.m1(X,!0),this.jS("complete"))}}; +g.y.Dv=function(X){X!=="abandoned"&&this.oy.get().Wu("onAdComplete");this.oy.get().Wu("onAdEnd",this.adCpn)}; +g.y.onCueRangeExit=function(){}; +g.y.E_=function(X){this.Cy==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&X>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.mS.get().vF(!0),this.m1(X))}; +g.y.m1=function(X,c){FE.prototype.m1.call(this,X,c===void 0?!1:c);c=Date.now()-this.By;var V=X*1E3,G={contentCpn:this.Yo(),adCpn:uXt(this)};if(X-this.Ej>=5){var n=c=2||(this.KM.X6(this.layout,c),X=Xu(this.params.context.Xh.get(),"html5_ssap_pass_transition_reason")&&c==="abandoned",this.Qu()&&!X&&(Xu(this.params.context.Xh.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(c)||FX("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:c})),this.Iy.get().finishSegmentByCpn(this.layout.layoutId, +Zq(this.Sv.get(),1).clientPlaybackNonce,mG(c,this.params.context.Xh))),this.mS.get().removeListener(this),this.rQ()&&vb(this.KM.lW())&&this.v3.m7(this.slot,this.layout,this.KM.lW().J))}; +g.y.wK=function(X,c,V){$Aj({cpn:X,kt:this.Sv.get(),tQ:!0});this.nS().layoutId!==X||Xu(this.params.context.Xh.get(),"html5_ssap_pass_transition_reason")&&V===5||(this.KM.lW().currentState<2&&(X=RH(V,this.params.context.Xh),X==="error"?this.v3.RP(this.slot,this.layout,new Ar("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:V},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):Dq(this.xM, +this.layout,X)),Xu(this.params.context.Xh.get(),"html5_ssap_exit_without_waiting_for_transition")||this.v3.m7(this.slot,this.layout,this.KM.lW().J))};g.E(zC,g.I);g.y=zC.prototype;g.y.TF=function(){return this.slot}; +g.y.nS=function(){return this.layout}; +g.y.Tk=function(){}; +g.y.yL=function(){return this.Kl[this.yG]}; +g.y.pK=function(){return this.yG}; +g.y.zP=function(X,c){var V=this.yL();c.layoutId!==Kg(V,X,c)?FX("pauseLayout for a PlayerBytes layout that is not currently active",X,c):V.zP()}; +g.y.GX=function(X,c){var V=this.yL();c.layoutId!==Kg(V,X,c)?FX("resumeLayout for a PlayerBytes layout that is not currently active",X,c):V.GX()}; +g.y.pn=function(X,c){var V=this.yL();yMU(this,X,c);hvs(V,X,c)&&this.Is(V.TF(),V.nS(),"skipped")}; +g.y.nL=function(X,c){var V=this.yL();AMO(this);Yrs(V,X,c)&&(X=jGw(this,V,X,c),X!==void 0&&(this.HW()?FX("Should not happen. Should delete"):aNw(this,V.TF(),V.nS(),X)))}; +g.y.x6=function(X,c){var V=Object.assign({},BS(this),{layoutId:c.layoutId}),G=V.layoutId,n=V.tQ;if(V.hU){var L={};es(V.kt,"wrse",(L.ec=G,L.is=n,L.ctp=od(G),L))}lL(this.Ss,X,c)}; +g.y.yZ=function(X,c){var V;(V=this.yL())==null||V.yZ(X,c)}; +g.y.m7=function(X,c,V){c.layoutId===this.nS().layoutId&&(this.Y4=!1,xS(this.A1(),this));var G;(G=this.yL())==null||G.m7(X,c,V)}; +g.y.E_=function(X){var c;(c=this.yL())==null||c.E_(X)}; +g.y.X$=function(X,c,V){this.pK()===-1&&(this.callback.yZ(this.slot,this.layout),this.yG++);var G=this.yL();G?(G.v4(X,c,V),this.HW()&&this.callback.RP(this.slot,this.layout,c,V)):FX("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.pK()),layoutId:this.nS().layoutId})}; +g.y.onFullscreenToggled=function(X){var c;(c=this.yL())==null||c.onFullscreenToggled(X)}; +g.y.ZO=function(X){var c;(c=this.yL())==null||c.ZO(X)}; +g.y.Jf=function(X){var c;(c=this.yL())==null||c.Jf(X)}; +g.y.onVolumeChange=function(){var X;(X=this.yL())==null||X.onVolumeChange()}; +g.y.M3=function(X,c,V){Mg(this.Ss,X,c,V)}; +g.y.tD=function(X){X.startRendering(X.nS())}; +g.y.init=function(){var X=jR(this.nS().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");X&&(X.current=this);if(this.Kl.length<1)throw new D("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.Kl.length)});if(X=jR(this.nS().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))X.current=this;X=g.r(this.Kl);for(var c=X.next();!c.done;c=X.next())c=c.value,c.init(),g7O(this.Ss,this.slot,c.nS()),fnl(this.Ss,this.slot,c.nS()); +if(this.HW())for(this.Sv.get().addListener(this),hdS(dpl(this),this.Sv.get()),X=dpl(this),X=g.r(X),c=X.next();!c.done;c=X.next())this.Aw(c.value)}; +g.y.Aw=function(X){var c=jR(X.clientMetadata,"metadata_type_player_vars");c?(X.layoutType!=="LAYOUT_TYPE_MEDIA"&&FX("Non-video ad contains playerVars",this.slot,X),this.CM.get().addPlayerResponseForAssociation({playerVars:c})):(X=GhL(X),this.CM.get().addPlayerResponseForAssociation({MF:X}))}; +g.y.release=function(){var X=jR(this.nS().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");X&&(X.current=null);if(X=jR(this.nS().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))X.current=null;X=g.r(this.Kl);for(var c=X.next();!c.done;c=X.next())c=c.value,pTl(this.Ss,this.slot,c.nS()),c.release();this.HW()&&(this.Sv.get().removeListener(this),A0l())}; +g.y.Hq=function(X){return X.layoutId!==this.nS().layoutId?(this.callback.RP(this.TF(),X,new Ar("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.nS().layoutId+("and LayoutType: "+this.nS().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; +g.y.uD=function(){this.mS.get().addListener(this);ZT(this.A1(),this)}; +g.y.i_=function(X){if(X.state.isError()){var c,V;this.X$((c=X.state.oP)==null?void 0:c.errorCode,new Ar("There was a player error during this media layout.",{playerErrorCode:(V=X.state.oP)==null?void 0:V.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(c=this.yL())&&c.i_(X)}; +g.y.HW=function(){var X=jR(this.TF().clientMetadata,"metadata_type_eligible_for_ssap");return X===void 0?(FX("Expected SSAP eligibility in PlayerBytes slots",this.TF(),this.nS()),!1):this.Xh.get().HW(X)}; +g.y.iX=function(){}; +g.y.s5=function(){}; +g.y.rJ=function(){}; +g.y.SO=function(){}; +g.y.QL=function(){}; +g.y.ZL=function(){}; +g.y.DO=function(){}; +g.y.eO=function(){}; +g.y.Rv=function(){}; +g.y.m6=function(){}; +g.y.Le=function(){}; +g.y.bX=function(){}; +g.y.nY=function(){}; +g.E(SW,zC);g.y=SW.prototype;g.y.Bi=function(X,c,V){this.Is(X,c,V)}; +g.y.Hi=function(X,c){this.Is(X,c,"error")}; +g.y.Is=function(X,c,V){var G=this;Hns(this,X,c,V,function(){s8(G,G.pK()+1)})}; +g.y.startRendering=function(X){this.Hq(X)&&(this.uD(),XXl(this.wm.get()),L1t(this.Xh.get())||pXs(this.mS.get()),this.pK()===-1&&s8(this,this.pK()+1))}; +g.y.X6=function(X,c){var V=this;this.Y4=!0;this.pK()===this.Kl.length?this.callback.m7(this.slot,this.layout,c):(X=this.yL(),X.X6(X.nS(),c),this.Fq=function(){V.callback.m7(V.slot,V.layout,c)}); +this.mS.get().W.yP();K1D(this.CM.get(),{});X=SQ(this.mS.get(),1);X.isPaused()&&!g.B(X,2)&&this.mS.get().playVideo();this.mS.get().removeListener(this);this.Y4&&$pO(this)}; +g.y.wK=function(){}; +g.y.Ba=function(){}; +g.y.Zy=function(){}; +g.E(i3,zC);g.y=i3.prototype;g.y.Bi=function(X,c,V){X=Object.assign({},BS(this),{layoutId:c.layoutId,layoutExitReason:V});c=X.layoutId;V=X.layoutExitReason;var G={};es(X.kt,"prse",(G.xc=c,G.ler=V,G.ctp=od(c),G))}; +g.y.Hi=function(){FX("onSubLayoutError in SSAP")}; +g.y.Is=function(){FX("exitSubLayoutAndPlayNext in SSAP")}; +g.y.yL=function(){return this.BW}; +g.y.pK=function(){var X=this;return this.Kl.findIndex(function(c){var V;return c.nS().layoutId===((V=X.BW)==null?void 0:V.nS().layoutId)})}; +g.y.tD=function(X){wR(this.BW===void 0,"replacing another adapter");this.BW=X;X.startRendering(X.nS())}; +g.y.M3=function(X,c,V){Mg(this.Ss,X,c,V);var G;wR(c.layoutId===((G=this.BW)==null?void 0:G.nS().layoutId),"currentAdapter does not match exiting layout",{slot:X?"slot: "+X.slotType:"",subLayout:WB(c)})&&(this.BW=void 0)}; +g.y.release=function(){zC.prototype.release.call(this);wR(this.BW===void 0,"currentAdapter is still active during release");this.BW=void 0}; +g.y.Qu=function(){return this.mS.get().getPresentingPlayerType()===2}; +g.y.X6=function(X,c){function V(){qU(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(c)||FX("Composite stopRendering: Unexpected layout exit reason",this.slot,X,{layoutExitReason:c}))} +function G(){this.BW&&XM(this,this.BW,c);if(this.Qu()&&(!qU(this)||c!=="abandoned")){V.call(this);var L;var d=((L=this.Sv.get().W.getVideoData())==null?void 0:L.clientPlaybackNonce)||"";L=Zq(this.Sv.get(),1).clientPlaybackNonce;this.Iy.get().finishSegmentByCpn(d,L,mG(c,this.Xh))}W4D(this,c)} +function n(){if(this.BW){var L=this.BW;L.lW().currentState<2&&L.X6(L.nS(),c);L=qU(this)&&c==="abandoned";this.Qu()&&!L&&(V.call(this),this.Iy.get().finishSegmentByCpn(this.BW.nS().layoutId,Zq(this.Sv.get(),1).clientPlaybackNonce,mG(c,this.Xh)))}} +wR(X.layoutId===this.nS().layoutId,"StopRendering for wrong layout")&&xq(this.MM.G,c)&&(this.rQ()?G.call(this):n.call(this))}; +g.y.m7=function(X,c,V){zC.prototype.m7.call(this,X,c,V);c.layoutId===this.nS().layoutId&&this.mS.get().removeListener(this)}; +g.y.Yo=function(){return Zq(this.Sv.get(),1).clientPlaybackNonce}; +g.y.wK=function(X,c,V){$Aj(Object.assign({},BS(this),{cpn:X}));if(!qU(this)||V!==5)if(this.rQ()){if(this.BW&&this.BW.nS().layoutId!==c){var G=this.BW.nS().layoutId;G!==X&&FX("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:G,exitingCpn:X,enteringCpn:c});X=RH(V,this.Xh);XM(this,this.BW,X)}else this.BW&&FX("onClipExited: active layout is entering again");c===this.Yo()&&F4t(this,V)}else{if(this.BW&&this.BW.nS().layoutId===X)whD(this,this.BW,V);else{var n;FX("Exiting cpn does not match active cpn", +this.slot,(G=this.BW)==null?void 0:G.nS(),{exitingCpn:X,transitionReason:V,activeCpn:(n=this.BW)==null?void 0:n.nS().layoutId})}c===this.Yo()&&(this.BW!==void 0&&(FX("active adapter is not properly exited",this.slot,this.layout,{activeLayout:WB(this.BW.nS())}),whD(this,this.BW,V)),F4t(this,V),W4D(this,this.MM.G.J))}}; +g.y.rQ=function(){return Xu(this.Xh.get(),"html5_ssap_exit_without_waiting_for_transition")}; +g.y.startRendering=function(X){this.Hq(X)&&(X=this.MM,wR(X.J===1,"tickStartRendering: state is not initial"),X.J=2,this.uD())}; +g.y.Ba=function(X){a21(Object.assign({},BS(this),{cpn:X}));var c=this.Kl.find(function(V){return V.nS().layoutId===X}); +c?(this.MM.J!==2&&(Cx2(this.eQ,this.slot.slotId),wR(this.MM.J===2,"Expect started"),this.callback.yZ(this.slot,this.layout)),this.tD(c),lL(this.Ss,this.slot,c.nS())):Ees(this,X)}; +g.y.pn=function(X,c){yMU(this,X,c);var V=this.yL();V?hvs(V,X,c)&&rMS(this,"skipped"):QGw(this,"onSkipRequested")}; +g.y.nL=function(X,c){var V;a:{if(V=this.yL()){if(AMO(this),Yrs(V,X,c)&&(X=jGw(this,V,X,c),X!==void 0)){V={Dr:V,svO:this.Kl[X]};break a}}else QGw(this,"SkipWithAdPodSkip");V=void 0}if(X=V)V=X.Dr,c=X.svO,X=V.nS().layoutId,this.rQ()?XM(this,V,"skipped"):V.X6(V.nS(),"skipped"),V=c.nS().layoutId,this.Iy.get().finishSegmentByCpn(X,V,mG("skipped",this.Xh))}; +g.y.x6=function(){FX("Not used in html5_ssap_fix_layout_exit")}; +g.y.i_=function(X){var c;(c=this.yL())==null||c.i_(X)}; +g.y.X$=function(){FX("Not used in html5_ssap_fix_layout_exit")}; +g.y.Zy=function(X,c,V){var G;if(((G=this.yL())==null?void 0:G.nS().layoutId)!==c.layoutId)return void FX("requestToExitSubLayout: wrong layout");rMS(this,V)};g.E(cd,g.I);g.y=cd.prototype;g.y.TF=function(){return this.KM.TF()}; +g.y.nS=function(){return this.KM.nS()}; +g.y.init=function(){var X=jR(this.nS().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");X&&(X.current=this);this.vA()}; +g.y.vA=function(){this.KM.init()}; +g.y.release=function(){var X=jR(this.nS().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");X&&(X.current=null);this.VP()}; +g.y.VP=function(){this.KM.release()}; +g.y.zP=function(){this.KM.zP()}; +g.y.GX=function(){this.KM.GX()}; +g.y.pn=function(X,c){FX("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.TF(),this.nS(),{requestingSlot:X,requestingLayout:c})}; +g.y.startRendering=function(X){X.layoutId!==this.nS().layoutId?this.callback.RP(this.TF(),X,new Ar("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.nS().layoutId+("and LayoutType: "+this.nS().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.mS.get().addListener(this),ZT(this.A1(),this),XXl(this.wm.get()),L1t(this.Xh.get())||pXs(this.mS.get()),this.KM.startRendering(X))}; +g.y.X6=function(X,c){this.Y4=!0;this.KM.X6(X,c);this.mS.get().W.yP();K1D(this.CM.get(),{});X=SQ(this.mS.get(),1);X.isPaused()&&!g.B(X,2)&&this.mS.get().playVideo();this.mS.get().removeListener(this);this.Y4&&this.KM.fU()}; +g.y.yZ=function(X,c){this.KM.yZ(X,c)}; +g.y.m7=function(X,c,V){c.layoutId===this.nS().layoutId&&(this.Y4=!1,xS(this.A1(),this));this.KM.m7(X,c,V);c.layoutId===this.nS().layoutId&&Cg(this.wm.get())}; +g.y.E_=function(X){this.KM.E_(X)}; +g.y.i_=function(X){if(X.state.isError()){var c,V;this.X$((c=X.state.oP)==null?void 0:c.errorCode,new Ar("There was a player error during this media layout.",{playerErrorCode:(V=X.state.oP)==null?void 0:V.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.KM.i_(X)}; +g.y.X$=function(X,c,V){this.KM.v4(X,c,V)}; +g.y.onFullscreenToggled=function(X){this.KM.onFullscreenToggled(X)}; +g.y.ZO=function(X){this.KM.ZO(X)}; +g.y.Jf=function(X){this.KM.Jf(X)}; +g.y.onVolumeChange=function(){this.KM.onVolumeChange()}; +g.y.iX=function(){}; +g.y.s5=function(){}; +g.y.rJ=function(){}; +g.y.SO=function(){}; +g.y.QL=function(){}; +g.y.ZL=function(){}; +g.y.DO=function(){}; +g.y.eO=function(){}; +g.y.Rv=function(){}; +g.y.m6=function(){}; +g.y.Le=function(){}; +g.y.bX=function(){}; +g.y.nY=function(){};g.y=Vz.prototype;g.y.TF=function(){return this.slot}; +g.y.nS=function(){return this.layout}; +g.y.init=function(){this.VC.get().addListener(this);this.mS.get().addListener(this);var X=jR(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var c=jR(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.X){var V=this.VC.get().NH.slice(-1)[0];V!==void 0&&(X=V.startSecs*1E3,c=(V.startSecs+V.VL)*1E3)}this.Rq(X,c);var G;V=(G=this.Sv.get().Os)==null?void 0:G.clientPlaybackNonce;G=this.layout.eS.adClientDataEntry;G3(this.t7.get(),{daiStateTrigger:{filledAdsDurationMs:c-X,contentCpn:V, +adClientData:G}});var n=this.VC.get();n=veL(n.U,X,c);n!==null&&(G3(this.t7.get(),{daiStateTrigger:{filledAdsDurationMs:n-X,contentCpn:V,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:G}}),this.Iy.get().A4(n,c))}; +g.y.release=function(){this.VP();this.VC.get().removeListener(this);this.mS.get().removeListener(this)}; +g.y.startRendering=function(){this.FS();this.callback.yZ(this.slot,this.layout)}; +g.y.X6=function(X,c){this.hG(c);this.driftRecoveryMs!==null&&(nR(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(khU(this)-jR(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.mS.get().W.LK()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.m7(this.slot,this.layout,c)}; +g.y.QW=function(){return!1}; +g.y.AM=function(X){var c=jR(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),V=jR(this.layout.clientMetadata,"metadata_type_layout_exit_ms");X*=1E3;if(c<=X&&X0&&gG(this.J(),c)}; +g.y.rJ=function(X){this.Z.delete(X.slotId);for(var c=[],V=g.r(this.tX.values()),G=V.next();!G.done;G=V.next()){G=G.value;var n=G.trigger;n instanceof qs&&n.triggeringSlotId===X.slotId&&c.push(G)}c.length>0&&gG(this.J(),c)}; +g.y.SO=function(X){for(var c=[],V=g.r(this.tX.values()),G=V.next();!G.done;G=V.next()){G=G.value;var n=G.trigger;n instanceof uk&&n.slotType===X.slotType&&n.J!==X.slotId&&c.push(G)}c.length>0&&gG(this.J(),c)}; +g.y.QL=function(X){this.U.add(X.slotId);for(var c=[],V=g.r(this.tX.values()),G=V.next();!G.done;G=V.next())G=G.value,G.trigger instanceof sG&&X.slotId===G.trigger.triggeringSlotId&&c.push(G);c.length>0&&gG(this.J(),c)}; +g.y.ZL=function(X){this.U.delete(X.slotId);this.X.add(X.slotId);for(var c=[],V=g.r(this.tX.values()),G=V.next();!G.done;G=V.next())if(G=G.value,G.trigger instanceof CR)X.slotId===G.trigger.triggeringSlotId&&c.push(G);else if(G.trigger instanceof tf){var n=G.trigger;X.slotId===n.slotId&&this.G.has(n.triggeringLayoutId)&&c.push(G)}c.length>0&&gG(this.J(),c)}; +g.y.DO=function(X){for(var c=[],V=g.r(this.tX.values()),G=V.next();!G.done;G=V.next())G=G.value,G.trigger instanceof Dr&&X.slotId===G.trigger.triggeringSlotId&&c.push(G);c.length>0&&gG(this.J(),c)}; +g.y.eO=function(X){for(var c=[],V=g.r(this.tX.values()),G=V.next();!G.done;G=V.next())G=G.value,G.trigger instanceof SN&&X.slotId===G.trigger.triggeringSlotId&&c.push(G);c.length>0&&gG(this.J(),c)}; +g.y.Rv=function(X,c){this.B.add(c.layoutId)}; +g.y.m6=function(X,c){this.B.delete(c.layoutId)}; +g.y.yZ=function(X,c){this.G.add(c.layoutId);for(var V=[],G=g.r(this.tX.values()),n=G.next();!n.done;n=G.next())if(n=n.value,n.trigger instanceof OG)c.layoutId===n.trigger.triggeringLayoutId&&V.push(n);else if(n.trigger instanceof T3){var L=n.trigger;X.slotType===L.slotType&&c.layoutType===L.layoutType&&c.layoutId!==L.J&&V.push(n)}else n.trigger instanceof tf&&(L=n.trigger,c.layoutId===L.triggeringLayoutId&&this.X.has(L.slotId)&&V.push(n));V.length>0&&gG(this.J(),V)}; +g.y.m7=function(X,c,V){this.G.delete(c.layoutId);X=[];for(var G=g.r(this.tX.values()),n=G.next();!n.done;n=G.next())if(n=n.value,n.trigger instanceof Ms&&c.layoutId===n.trigger.triggeringLayoutId&&X.push(n),n.trigger instanceof lk){var L=n.trigger;c.layoutId===L.triggeringLayoutId&&L.J.includes(V)&&X.push(n)}X.length>0&&gG(this.J(),X)}; +g.y.Le=function(){}; +g.y.LY=function(){this.X.clear()}; +g.y.y6=function(){};g.E(NI,g.I);NI.prototype.Kr=function(X,c,V,G){if(this.tX.has(c.triggerId))throw new D("Tried to register duplicate trigger for slot.");if(!(c instanceof RD))throw new D("Incorrect TriggerType: Tried to register trigger of type "+c.triggerType+" in CloseRequestedTriggerAdapter");this.tX.set(c.triggerId,new VE(X,c,V,G))}; +NI.prototype.OQ=function(X){this.tX.delete(X.triggerId)};g.E(TP,g.I);TP.prototype.Kr=function(X,c,V,G){if(this.tX.has(c.triggerId))throw new D("Tried to register duplicate trigger for slot.");if(!(c instanceof mV||c instanceof z3))throw new D("Incorrect TriggerType: Tried to register trigger of type "+c.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.tX.set(c.triggerId,new VE(X,c,V,G))}; +TP.prototype.OQ=function(X){this.tX.delete(X.triggerId)}; +TP.prototype.LY=function(X){for(var c=[],V=c.push,G=V.apply,n=[],L=g.r(this.tX.values()),d=L.next();!d.done;d=L.next())d=d.value,d.trigger instanceof mV&&d.trigger.jq===X&&n.push(d);G.call(V,c,g.x(n));V=c.push;G=V.apply;n=[];L=g.r(this.tX.values());for(d=L.next();!d.done;d=L.next())d=d.value,d.trigger instanceof z3&&d.trigger.J!==X&&n.push(d);G.call(V,c,g.x(n));c.length&&gG(this.J(),c)}; +TP.prototype.y6=function(X){for(var c=[],V=c.push,G=V.apply,n=[],L=g.r(this.tX.values()),d=L.next();!d.done;d=L.next()){d=d.value;var h=d.trigger;h instanceof z3&&h.J===X&&n.push(d)}G.call(V,c,g.x(n));c.length&&gG(this.J(),c)};g.E(uQ,g.I);g.y=uQ.prototype;g.y.Kr=function(X,c,V,G){if(this.tX.has(c.triggerId))throw new D("Tried to register duplicate trigger for slot.");var n="adtriggercuerange:"+c.triggerId;if(c instanceof Ns)U0w(this,X,c,V,G,n,c.J.start,c.J.end,c.jq,c.visible);else if(c instanceof bk)U0w(this,X,c,V,G,n,0x7ffffffffffff,0x8000000000000,c.jq,c.visible);else throw new D("Incorrect TriggerType: Tried to register trigger of type "+c.triggerType+" in CueRangeTriggerAdapter");}; +g.y.OQ=function(X){var c=this.tX.get(X.triggerId);c&&this.b3.get().removeCueRange(c.cueRangeId);this.tX.delete(X.triggerId)}; +g.y.onCueRangeEnter=function(X){var c=Tj8(this,X);if(c&&(c=this.tX.get(c)))if(g.B(SQ(this.mS.get()),32))this.J.add(c.cueRangeId);else{var V=c==null?void 0:c.Rp.trigger;if(V instanceof Ns||V instanceof bk){if(mT(this.context.Xh.get())){var G=c.Rp.slot,n=c.Rp.layout,L={};this.context.yH.OM("cre",(L.ca=c.Rp.category,L.tt=V.triggerType,L.st=G.slotType,L.lt=n==null?void 0:n.layoutType,L.cid=X,L))}gG(this.G(),[c.Rp])}}}; +g.y.onCueRangeExit=function(X){(X=Tj8(this,X))&&(X=this.tX.get(X))&&this.J.delete(X.cueRangeId)}; +g.y.i_=function(X){if(rR(X,16)<0){X=g.r(this.J);for(var c=X.next();!c.done;c=X.next())this.onCueRangeEnter(c.value,!0);this.J.clear()}}; +g.y.s5=function(){}; +g.y.rJ=function(){}; +g.y.SO=function(){}; +g.y.QL=function(){}; +g.y.ZL=function(){}; +g.y.DO=function(){}; +g.y.eO=function(){}; +g.y.Rv=function(){}; +g.y.m6=function(){}; +g.y.yZ=function(){}; +g.y.m7=function(){}; +g.y.Le=function(){}; +g.y.E_=function(){}; +g.y.onFullscreenToggled=function(){}; +g.y.ZO=function(){}; +g.y.iX=function(){}; +g.y.Jf=function(){}; +g.y.onVolumeChange=function(){}; +g.y.bX=function(){}; +g.y.nY=function(){};g.E(Pq,g.I);g.y=Pq.prototype; +g.y.Kr=function(X,c,V,G){if(this.G.has(c.triggerId)||this.U.has(c.triggerId))throw new D("Tried to re-register the trigger.");X=new VE(X,c,V,G);if(X.trigger instanceof ID)this.G.set(X.trigger.triggerId,X);else if(X.trigger instanceof gE)this.U.set(X.trigger.triggerId,X);else throw new D("Incorrect TriggerType: Tried to register trigger of type "+X.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.G.has(X.trigger.triggerId)&&X.slot.slotId===this.J&&gG(this.X(),[X])}; +g.y.OQ=function(X){this.G.delete(X.triggerId);this.U.delete(X.triggerId)}; +g.y.Tk=function(X){X=X.slotId;if(this.J!==X){var c=[];this.J!=null&&c.push.apply(c,g.x(uSj(this.U,this.J)));X!=null&&c.push.apply(c,g.x(uSj(this.G,X)));this.J=X;c.length&&gG(this.X(),c)}}; +g.y.wK=function(){}; +g.y.Ba=function(){};g.E(zP,g.I);g.y=zP.prototype;g.y.Kr=function(X,c,V,G){if(this.tX.has(c.triggerId))throw new D("Tried to register duplicate trigger for slot.");if(!(c instanceof Pd))throw new D("Incorrect TriggerType: Tried to register trigger of type "+c.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.tX.set(c.triggerId,new VE(X,c,V,G))}; +g.y.OQ=function(X){this.tX.delete(X.triggerId)}; +g.y.yZ=function(){}; +g.y.m7=function(){}; +g.y.s5=function(){}; +g.y.rJ=function(){}; +g.y.SO=function(){}; +g.y.QL=function(){}; +g.y.ZL=function(){}; +g.y.DO=function(){}; +g.y.eO=function(){}; +g.y.Rv=function(){}; +g.y.m6=function(){}; +g.y.Le=function(){};g.E(Bq,g.I);g.y=Bq.prototype;g.y.Le=function(X,c){for(var V=[],G=g.r(this.tX.values()),n=G.next();!n.done;n=G.next()){n=n.value;var L=n.trigger;L.opportunityType===X&&(L.associatedSlotId&&L.associatedSlotId!==c||V.push(n))}V.length&&gG(this.J(),V)}; +g.y.Kr=function(X,c,V,G){if(this.tX.has(c.triggerId))throw new D("Tried to register duplicate trigger for slot.");if(!(c instanceof XRU))throw new D("Incorrect TriggerType: Tried to register trigger of type "+c.triggerType+" in OpportunityEventTriggerAdapter");this.tX.set(c.triggerId,new VE(X,c,V,G))}; +g.y.OQ=function(X){this.tX.delete(X.triggerId)}; +g.y.s5=function(){}; +g.y.rJ=function(){}; +g.y.SO=function(){}; +g.y.QL=function(){}; +g.y.ZL=function(){}; +g.y.DO=function(){}; +g.y.eO=function(){}; +g.y.Rv=function(){}; +g.y.m6=function(){}; +g.y.yZ=function(){}; +g.y.m7=function(){};g.E(Km,g.I);g.y=Km.prototype;g.y.Kr=function(X,c,V,G){X=new VE(X,c,V,G);if(c instanceof fR||c instanceof UG||c instanceof pR||c instanceof Bd||c instanceof qrD){if(this.tX.has(c.triggerId))throw new D("Tried to register duplicate trigger for slot.");this.tX.set(c.triggerId,X);V=V.slotId;X=this.U.has(V)?this.U.get(V):new Set;X.add(c);this.U.set(V,X)}else throw new D("Incorrect TriggerType: Tried to register trigger of type "+c.triggerType+" in PrefetchTriggerAdapter");}; +g.y.OQ=function(X){this.tX.delete(X.triggerId)}; +g.y.s5=function(X){var c=X.slotId;if(this.U.has(c)){X=0;var V=new Set;c=g.r(this.U.get(c));for(var G=c.next();!G.done;G=c.next())if(G=G.value,V.add(G.triggerId),G instanceof UG&&G.breakDurationMs){X=G.breakDurationMs;break}sg(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",X,V)}}; +g.y.rJ=function(){}; +g.y.SO=function(){}; +g.y.QL=function(){}; +g.y.ZL=function(){}; +g.y.DO=function(){}; +g.y.eO=function(){}; +g.y.Rv=function(){}; +g.y.m6=function(){}; +g.y.yZ=function(){}; +g.y.m7=function(){}; +g.y.Le=function(){}; +g.y.QW=function(X){if(this.J){this.G&&this.G.stop();this.X&&g.Xn(this.X);X=X.VL*1E3+1E3;for(var c=0,V=g.r(this.tX.values()),G=V.next();!G.done;G=V.next())G=G.value.trigger,G instanceof fR&&G.breakDurationMs<=X&&G.breakDurationMs>c&&(c=G.breakDurationMs);X=c;if(X>0)return sg(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",X,new Set,!0),sg(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",X,new Set,!1),!0}return!1}; +g.y.AM=function(){}; +g.y.LY=function(X){this.J&&this.J.contentCpn!==X?(FX("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:X,fetchInstructionsCpn:this.J.contentCpn}),Cm(this)):zyS(this)}; +g.y.y6=function(X){this.J&&this.J.contentCpn!==X&&FX("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:X,fetchInstructionsCpn:this.J.contentCpn},!0);Cm(this)}; +g.y.kL=function(X){var c=this;if(this.J)FX("Unexpected multiple fetch instructions for the current content");else{this.J=X;X=KtO(X);this.G=new g.qR(function(){zyS(c)},X?X:6E5); +this.G.start();this.X=new g.qR(function(){c.J&&(c.G&&(c.G.stop(),c.G.start()),PxU(c,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},BjD(this.J)); +X=this.mS.get().getCurrentTimeSec(1,!1);for(var V=g.r(this.VC.get().NH),G=V.next();!G.done;G=V.next())G=G.value,dE(this.t7.get(),"nocache","ct."+Date.now()+";cmt."+X+";d."+G.VL.toFixed(3)+";tw."+(G.startSecs-X)+";cid."+G.identifier+";")}}; +g.y.R2=function(){g.I.prototype.R2.call(this);Cm(this)};g.E(Dy,g.I);g.y=Dy.prototype;g.y.Kr=function(X,c,V,G){if(this.tX.has(c.triggerId))throw new D("Tried to register duplicate trigger for slot.");if(!(c instanceof cK))throw new D("Incorrect TriggerType: Tried to register trigger of type "+c.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.tX.set(c.triggerId,new VE(X,c,V,G));X=this.J.has(c.triggeringLayoutId)?this.J.get(c.triggeringLayoutId):new Set;X.add(c);this.J.set(c.triggeringLayoutId,X)}; +g.y.OQ=function(X){this.tX.delete(X.triggerId);if(!(X instanceof cK))throw new D("Incorrect TriggerType: Tried to unregister trigger of type "+X.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var c=this.G.get(X.triggerId);c&&(c.dispose(),this.G.delete(X.triggerId));if(c=this.J.get(X.triggeringLayoutId))c.delete(X),c.size===0&&this.J.delete(X.triggeringLayoutId)}; +g.y.s5=function(){}; +g.y.rJ=function(){}; +g.y.SO=function(){}; +g.y.QL=function(){}; +g.y.ZL=function(){}; +g.y.DO=function(){}; +g.y.eO=function(){}; +g.y.Rv=function(){}; +g.y.m6=function(){}; +g.y.Le=function(){}; +g.y.yZ=function(X,c){var V=this;if(this.J.has(c.layoutId)){X=this.J.get(c.layoutId);X=g.r(X);var G=X.next();for(c={};!G.done;c={tp:void 0},G=X.next())c.tp=G.value,G=new g.qR(function(n){return function(){var L=V.tX.get(n.tp.triggerId);gG(V.U(),[L])}}(c),c.tp.durationMs),G.start(),this.G.set(c.tp.triggerId,G)}}; +g.y.m7=function(){};g.E(S0,g.I);S0.prototype.Kr=function(X,c,V,G){if(this.tX.has(c.triggerId))throw new D("Tried to register duplicate trigger for slot.");if(!(c instanceof eN))throw new D("Incorrect TriggerType: Tried to register trigger of type "+c.triggerType+" in VideoTransitionTriggerAdapter.");this.tX.set(c.triggerId,new VE(X,c,V,G))}; +S0.prototype.OQ=function(X){this.tX.delete(X.triggerId)};cV.prototype.pP=function(X){return X.kind==="AD_PLACEMENT_KIND_START"};g.E(nF,g.I);g.y=nF.prototype;g.y.logEvent=function(X){this.D2(X)}; +g.y.hZ=function(X,c,V){this.D2(X,void 0,void 0,void 0,c,void 0,void 0,void 0,c.adSlotLoggingData,void 0,void 0,V)}; +g.y.JC=function(X,c,V,G){this.D2(X,void 0,void 0,void 0,c,V?V:void 0,void 0,void 0,c.adSlotLoggingData,V?V.adLayoutLoggingData:void 0,void 0,G)}; +g.y.Q_=function(X,c,V,G){Xu(this.Xh.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+X,"trigger:",V,"slot:",c,"layout:",G);wG(this.J.get())&&this.D2(X,void 0,void 0,void 0,c,G?G:void 0,void 0,V,c.adSlotLoggingData,G?G.adLayoutLoggingData:void 0)}; +g.y.US=function(X,c,V,G,n){this.D2(X,c,V,G,void 0,void 0,void 0,void 0,void 0,void 0,void 0,n)}; +g.y.W1=function(X,c,V,G){this.D2("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,V,G,void 0,void 0,V.adSlotLoggingData,G?G.adLayoutLoggingData:void 0,{errorType:X,errorMessage:c})}; +g.y.D2=function(X,c,V,G,n,L,d,h,A,Y,H,a){var W=this;a=a===void 0?0:a;Xu(this.Xh.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+X,"slot:",n,"layout:",L,"ping:",d,"Opportunity:",{opportunityType:c,associatedSlotId:V,KXl:G,JWW:h,adSlotLoggingData:A,adLayoutLoggingData:Y});try{var w=function(){if(!W.Xh.get().W.j().S("html5_disable_client_tmp_logs")&&X!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){X||FX("Empty PACF event type",n,L);var F=wG(W.J.get()),Z={eventType:X,eventOrder:++W.eventCount},v={}; +n&&(v.slotData=Wv(F,n));L&&(v.layoutData=bMs(F,L));d&&(v.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:d.J.serializedAdPingMetadata,pingIndex:d.index});h&&(v.triggerData=$S(h.trigger,h.category));c&&(v.opportunityData=ta8(F,c,V,G));F={organicPlaybackContext:{contentCpn:Zq(W.Sv.get(),1).clientPlaybackNonce}};F.organicPlaybackContext.isLivePlayback=Zq(W.Sv.get(),1).ZQ;var e;F.organicPlaybackContext.isMdxPlayback=(e=Zq(W.Sv.get(),1))==null?void 0:e.isMdxPlayback; +var m;if((m=Zq(W.Sv.get(),1))==null?0:m.daiEnabled)F.organicPlaybackContext.isDaiContent=!0;var t;if(e=(t=Zq(W.Sv.get(),2))==null?void 0:t.clientPlaybackNonce)F.adVideoPlaybackContext={adVideoCpn:e};F&&(v.externalContext=F);Z.adClientData=v;A&&(Z.serializedSlotAdServingData=A.serializedSlotAdServingDataEntry);Y&&(Z.serializedAdServingData=Y.serializedAdServingDataEntry);H&&(Z.errorInfo=H);g.a0("adsClientStateChange",{adsClientEvent:Z})}}; +a&&a>0?g.Va(g.n$(),function(){return w()},a):w()}catch(F){Xu(this.Xh.get(),"html5_log_pacf_logging_errors")&&g.Va(g.n$(),function(){FX(F instanceof Error?F:String(F),n,L,{pacf_message:"exception during pacf logging"})})}};var hsH=new Set("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED".split(" "));g.E(LF,nF);g.y=LF.prototype; +g.y.hZ=function(X,c,V){nF.prototype.hZ.call(this,X,c,V);mT(this.Xh.get())&&(V={},this.context.yH.OM("pacf",(V.et=X,V.st=c.slotType,V.si=c.slotId,V)))}; +g.y.JC=function(X,c,V,G){var n=hsH.has(X);nF.prototype.JC.call(this,X,c,V,G);mT(this.Xh.get(),n)&&(G={},this.context.yH.OM("pacf",(G.et=X,G.st=c.slotType,G.si=c.slotId,G.lt=V==null?void 0:V.layoutType,G.li=V==null?void 0:V.layoutId,G.p_ac=V==null?void 0:V.layoutId,G)))}; +g.y.US=function(X,c,V,G,n){nF.prototype.US.call(this,X,c,V,G,n);mT(this.Xh.get())&&(V={},this.context.yH.OM("pacf",(V.et=X,V.ot=c,V.ss=G==null?void 0:G.length,V)))}; +g.y.Q_=function(X,c,V,G){nF.prototype.Q_.call(this,X,c,V,G);if(mT(this.Xh.get())){var n={};this.context.yH.OM("pacf",(n.et=X,n.tt=V.trigger.triggerType,n.tc=V.category,n.st=c.slotType,n.si=c.slotId,n.lt=G==null?void 0:G.layoutType,n.li=G==null?void 0:G.layoutId,n.p_ac=G==null?void 0:G.layoutId,n))}}; +g.y.W1=function(X,c,V,G){nF.prototype.W1.call(this,X,c,V,G);if(mT(this.Xh.get(),!0)){var n={};this.context.yH.OM("perror",(n.ert=X,n.erm=c,n.st=V.slotType,n.si=V.slotId,n.lt=G==null?void 0:G.layoutType,n.li=G==null?void 0:G.layoutId,n.p_ac=G==null?void 0:G.layoutId,n))}}; +g.y.D2=function(X,c,V,G,n,L,d,h,A,Y,H){if(g.OZ(this.Xh.get().W.j())){var a=this.Xh.get();a=g.EZ(a.W.j().experiments,"H5_async_logging_delay_ms")}else a=void 0;nF.prototype.D2.call(this,X,c,V,G,n,L,d,h,A,Y,H,a)};d1.prototype.clear=function(){this.J.clear()};Ah.prototype.resolve=function(X){y7(this,X)}; +Ah.prototype.reject=function(X){hh(this,X)}; +Ah.prototype.state=function(){return this.currentState==="done"?{state:"done",result:this.result}:this.currentState==="fail"?{state:"fail",error:this.error}:{state:"wait"}}; +Ah.prototype.wait=function(){var X=this;return function V(){return aS2(V,function(G){if(G.J==1)return g.vw(G,2),g.b(G,{YW:X},4);if(G.J!=2)return G.return(G.G);g.eD(G);return g.mU(G,0)})}()}; +var QHl=Nx(function(X){return Y0(X)?X instanceof Ah:!1});Object.freeze({koy:function(X){var c=jX8(X);return Fk(YZS(c,function(V){return c[V].currentState==="fail"}),function(V){return Number.isNaN(V)?c.map(function(G){return G.state().result}):c[V]})}, +FRW:function(X){var c=jX8(X);return Fk(YZS(c),function(){return c.map(function(V){return V.state()})})}});var Q7=window.ZNv||"en";k0.prototype.Lz=function(X){this.client=X}; +k0.prototype.J=function(){this.clear();this.csn=g.tU()}; +k0.prototype.clear=function(){this.U.clear();this.G.clear();this.X.clear();this.csn=null};eh.prototype.Lz=function(X){g.Gx(or().Lz).bind(or())(X)}; +eh.prototype.clear=function(){g.Gx(or().clear).bind(or())()};g.y=Jh.prototype;g.y.Lz=function(X){this.client=X}; +g.y.mj=function(X,c){var V=this;c=c===void 0?{}:c;g.Gx(function(){var G,n,L,d=((G=g.T(X==null?void 0:X.commandMetadata,g.wB))==null?void 0:G.rootVe)||((n=g.T(X==null?void 0:X.commandMetadata,koM))==null?void 0:(L=n.screenVisualElement)==null?void 0:L.uiType);if(d){G=g.T(X==null?void 0:X.commandMetadata,Puh);if(G==null?0:G.parentTrackingParams){var h=g.m3(G.parentTrackingParams);if(G.parentCsn)var A=G.parentCsn}else c.clickedVisualElement?h=c.clickedVisualElement:X.clickTrackingParams&&(h=g.m3(X.clickTrackingParams)); +a:{G=g.T(X,g.qV);n=g.T(X,fRU);if(G){if(n=aT1(G,"VIDEO")){G={token:n,videoId:G.videoId};break a}}else if(n&&(G=aT1(n,"PLAYLIST"))){G={token:G,playlistId:n.playlistId};break a}G=void 0}c=Object.assign({},{cttAuthInfo:G,parentCsn:A},c);if(g.oa("expectation_logging")){var Y;c.loggingExpectations=((Y=g.T(X==null?void 0:X.commandMetadata,koM))==null?void 0:Y.loggingExpectations)||void 0}Rr(V,d,h,c)}else g.UQ(new g.SP("Error: Trying to create a new screen without a rootVeType",X))})()}; +g.y.clickCommand=function(X,c,V){X=X.clickTrackingParams;V=V===void 0?0:V;X?(V=g.tU(V===void 0?0:V))?(Fsl(this.client,V,g.m3(X),c),c=!0):c=!1:c=!1;return c}; +g.y.stateChanged=function(X,c,V){this.visualElementStateChanged(g.m3(X),c,V===void 0?0:V)}; +g.y.visualElementStateChanged=function(X,c,V){V=V===void 0?0:V;V===0&&this.G.has(V)?this.T.push([X,c]):ESl(this,X,c,V)};lI.prototype.fetch=function(X,c,V){var G=this,n=Zol(X,c,V);return new Promise(function(L,d){function h(){if(V==null?0:V.Rz)try{var Y=G.handleResponse(X,n.status,n.response,V);L(Y)}catch(H){d(H)}else L(G.handleResponse(X,n.status,n.response,V))} +n.onerror=h;n.onload=h;var A;n.send((A=c.body)!=null?A:null)})}; +lI.prototype.handleResponse=function(X,c,V,G){V=V.replace(")]}'","");try{var n=JSON.parse(V)}catch(L){g.UQ(new g.SP("JSON parsing failed after XHR fetch",X,c,V));if((G==null?0:G.Rz)&&V)throw new g.S1(1,"JSON parsing failed after XHR fetch");n={}}c!==200&&(g.UQ(new g.SP("XHR API fetch failed",X,c,V)),n=Object.assign({},n,{errorMetadata:{status:c}}));return n};Ma.getInstance=function(){var X=g.Pw("ytglobal.storage_");X||(X=new Ma,g.uO("ytglobal.storage_",X));return X}; +Ma.prototype.estimate=function(){var X,c,V;return g.O(function(G){X=navigator;return((c=X.storage)==null?0:c.estimate)?G.return(X.storage.estimate()):((V=X.webkitTemporaryStorage)==null?0:V.queryUsageAndQuota)?G.return(xgw()):G.return()})}; +g.uO("ytglobal.storageClass_",Ma);jA.prototype.qY=function(X){this.handleError(X)}; +jA.prototype.logEvent=function(X,c){switch(X){case "IDB_DATA_CORRUPTED":g.oa("idb_data_corrupted_killswitch")||this.J("idbDataCorrupted",c);break;case "IDB_UNEXPECTEDLY_CLOSED":this.J("idbUnexpectedlyClosed",c);break;case "IS_SUPPORTED_COMPLETED":g.oa("idb_is_supported_completed_killswitch")||this.J("idbIsSupportedCompleted",c);break;case "QUOTA_EXCEEDED":kL8(this,c);break;case "TRANSACTION_ENDED":this.U&&Math.random()<=.1&&this.J("idbTransactionEnded",c);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":X= +Object.assign({},c,{hasWindowUnloaded:this.G}),this.J("idbTransactionAborted",X)}};var Tf={},dzs=g.Lr("yt-player-local-media",{nO:(Tf.index={DF:2},Tf.media={DF:2},Tf.captions={DF:5},Tf),shared:!1,upgrade:function(X,c){c(2)&&(g.lE(X,"index"),g.lE(X,"media"));c(5)&&g.lE(X,"captions");c(6)&&(M8(X,"metadata"),M8(X,"playerdata"))}, +version:5});var AiM={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1,kitkat:4.4,lollipop:5.1,marshmallow:6,nougat:7.1},uK;a:{var PM=g.bA();PM=PM.toLowerCase();if(g.oh(PM,"android")){var YWh=PM.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(YWh){var jF_=parseFloat(YWh[1]);if(jF_<100){uK=jF_;break a}}var HdA=PM.match("("+Object.keys(AiM).join("|")+")");uK=HdA?AiM[HdA[0]]:0}else uK=void 0}var lY=uK,OT=lY>=0;var poL=window;var oSl=wL(function(){var X,c;return(c=(X=window).matchMedia)==null?void 0:c.call(X,"(prefers-reduced-motion: reduce)").matches});var fF;g.g1=new MZ;fF=0;var pF={k3:function(X,c){var V=X[0];X[0]=X[c%X.length];X[c%X.length]=V}, +bC:function(X){X.reverse()}, +l9:function(X,c){X.splice(0,c)}};var Det=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var qY=lTl()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.q8?!0:!1;var n2D={s$O:"adunit",FBv:"detailpage",BMl:"editpage",cZS:"embedded",GJW:"leanback",FEl:"previewpage",aF_:"profilepage",c$:"unplugged",UXl:"playlistoverview",q0_:"sponsorshipsoffer",fFW:"shortspage",hYl:"handlesclaiming",BuK:"immersivelivepage",hES:"creatormusic",woy:"immersivelivepreviewpage",Y_y:"admintoolyurt",gql:"shortsaudiopivot",oRS:"consumption"};var zf,agU,ZM;zf={};g.KF=(zf.STOP_EVENT_PROPAGATION="html5-stop-propagation",zf.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",zf.IV_DRAWER_OPEN="ytp-iv-drawer-open",zf.MAIN_VIDEO="html5-main-video",zf.VIDEO_CONTAINER="html5-video-container",zf.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",zf.HOUSE_BRAND="house-brand",zf);agU={};ZM=(agU.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",agU.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",agU);var Ug1={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var znj={ANDROID:3,ANDROID_KIDS:18,ANDROID_MUSIC:21,ANDROID_UNPLUGGED:29,WEB:1,WEB_REMIX:67,WEB_UNPLUGGED:41,IOS:5,IOS_KIDS:19,IOS_MUSIC:26,IOS_UNPLUGGED:33},B2l={android:"ANDROID","android.k":"ANDROID_KIDS","android.m":"ANDROID_MUSIC","android.up":"ANDROID_UNPLUGGED",youtube:"WEB","youtube.m":"WEB_REMIX","youtube.up":"WEB_UNPLUGGED",ytios:"IOS","ytios.k":"IOS_KIDS","ytios.m":"IOS_MUSIC","ytios.up":"IOS_UNPLUGGED"},szU={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var olD={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.n5.prototype.getLanguageInfo=function(){return this.zF}; +g.n5.prototype.getXtags=function(){if(!this.xtags){var X=this.id.split(";");X.length>1&&(this.xtags=X[1])}return this.xtags}; +g.n5.prototype.toString=function(){return this.zF.name}; +g.n5.prototype.getLanguageInfo=g.n5.prototype.getLanguageInfo;L5.prototype.w6=function(X){return this.G===X.G&&this.J===X.J&&this.U===X.U&&this.reason===X.reason&&(!yQ||this.JX===X.JX)}; +L5.prototype.isLocked=function(){return this.U&&!!this.G&&this.G===this.J}; +L5.prototype.compose=function(X){if(X.U&&h7(X))return Pp;if(X.U||h7(this))return X;if(this.U||h7(X))return this;var c=this.G&&X.G?Math.max(this.G,X.G):this.G||X.G,V=this.J&&X.J?Math.min(this.J,X.J):this.J||X.J;c=Math.min(c,V);var G=0;yQ&&(G=this.JX!==0&&X.JX!==0?Math.min(this.JX,X.JX):this.JX===0?X.JX:this.JX);return yQ&&c===this.G&&V===this.J&&G===this.JX||!yQ&&c===this.G&&V===this.J?this:yQ?new L5(c,V,!1,V===this.J&&G===this.JX?this.reason:X.reason,G):new L5(c,V,!1,V===this.J?this.reason:X.reason)}; +L5.prototype.X=function(X){return!X.video||yQ&&this.JX!==0&&this.JX=0}; +g.y.FX=function(){var X=this.segments[this.segments.length-1];return X?X.endTime:NaN}; +g.y.Qg=function(){return this.segments[0].startTime}; +g.y.Eh=function(){return this.segments.length}; +g.y.pg=function(){return 0}; +g.y.gJ=function(X){return(X=this.c7(X))?X.Bl:-1}; +g.y.Vo=function(X){return(X=this.dV(X))?X.sourceURL:""}; +g.y.getStartTime=function(X){return(X=this.dV(X))?X.startTime:0}; +g.y.t0=function(X){return this.getStartTime(X)+this.getDuration(X)}; +g.y.qZ=Gt(1);g.y.isLoaded=function(){return this.segments.length>0}; +g.y.dV=function(X){if(this.J&&this.J.Bl===X)return this.J;X=g.hE(this.segments,new t7(X,0,0,0,""),function(c,V){return c.Bl-V.Bl}); +return this.J=X>=0?this.segments[X]:null}; +g.y.c7=function(X){if(this.J&&this.J.startTime<=X&&X=0?this.segments[X]:this.segments[Math.max(0,-X-2)]}; +g.y.append=function(X){if(X.length)if(X=g.Vk(X),this.segments.length){var c=this.segments.length?g.Kt(this.segments).endTime:0,V=X[0].Bl-this.q6();V>1&&qDU(this.segments);for(V=V>0?0:-V+1;VX.Bl&&this.index.zC()<=X.Bl+1}; +g.y.update=function(X,c,V){this.index.append(X);QdU(this.index,V);X=this.index;X.G=c;X.U="update"}; +g.y.tb=function(){return this.xv()?!0:mK.prototype.tb.call(this)}; +g.y.LF=function(X,c){var V=this.index.Vo(X),G=this.index.getStartTime(X),n=this.index.getDuration(X),L;c?n=L=0:L=this.info.JX>0?this.info.JX*n:1E3;return new UC([new l$(3,this,void 0,"liveCreateRequestInfoForSegment",X,G,n,0,L,!c)],V)}; +g.y.Rk=function(){return this.xv()?0:this.initRange.length}; +g.y.Gu=function(){return!1};sC.prototype.update=function(X){var c=void 0;this.G&&(c=this.G);var V=new sC,G=Array.from(X.getElementsByTagName("S"));if(G.length){var n=+Bt(X,"timescale")||1,L=(+G[0].getAttribute("t")||0)/n,d=+Bt(X,"startNumber")||0;V.X=L;var h=c?c.startSecs+c.VL:0,A=Date.parse(aGS(Bt(X,"yt:segmentIngestTime")))/1E3;V.Z=X.parentElement.tagName==="SegmentTemplate";V.Z&&(V.D=Bt(X,"media"));X=c?d-c.Bl:1;V.B=X>0?0:-X+1;X=g.r(G);for(G=X.next();!G.done;G=X.next()){G=G.value;for(var Y=+G.getAttribute("d")/n,H=(+G.getAttribute("yt:sid")|| +0)/n,a=+G.getAttribute("r")||0,W=0;W<=a;W++)if(c&&d<=c.Bl)d++;else{var w=new jQt(d,h,Y,A+H,L);V.J.push(w);var F=G;var Z=n,v=w.startSecs;w=F.getAttribute("yt:cuepointTimeOffset");var e=F.getAttribute("yt:cuepointDuration");if(w&&e){w=Number(w);v=-w/Z+v;Z=Number(e)/Z;e=F.getAttribute("yt:cuepointContext")||null;var m=F.getAttribute("yt:cuepointIdentifier")||"";F=F.getAttribute("yt:cuepointEvent")||"";F=new Tu(v,Z,e,m,Wmz[F]||"unknown",w)}else F=null;F&&V.U.push(F);d++;h+=Y;L+=Y;A+=Y+H}}V.J.length&& +(V.G=g.Kt(V.J))}this.B=V.B;this.G=V.G||this.G;g.Go(this.J,V.J);g.Go(this.U,V.U);this.Z=V.Z;this.D=V.D;this.X===-1&&(this.X=V.getStreamTimeOffset())}; +sC.prototype.getStreamTimeOffset=function(){return this.X===-1?0:this.X};g.E(DY,g.Om);g.y=DY.prototype;g.y.HK=function(){return this.SL}; +g.y.TJ=function(X,c){X=S$(this,X);return X>=0&&(c||!this.segments[X].pending)}; +g.y.zC=function(){return this.e7?this.segments.length?this.c7(this.Qg()).Bl:-1:g.Om.prototype.zC.call(this)}; +g.y.Qg=function(){if(this.bf)return 0;if(!this.e7)return g.Om.prototype.Qg.call(this);if(!this.segments.length)return 0;var X=Math.max(g.Kt(this.segments).endTime-this.GP,0);return this.uH>0&&this.c7(X).Bl0)return this.fg/1E3;if(!this.segments.length)return g.Om.prototype.FX.call(this);var X=this.q6();if(!this.e7||X<=this.segments[this.segments.length-1].Bl)X=this.segments[this.segments.length-1];else{var c=this.segments[this.segments.length-1];X=new t7(X,Math.max(0,c.startTime-(c.Bl-X)*this.SL),this.SL,0,"sq/"+X,void 0,void 0,!0)}return this.bf?Math.min(this.GP,X.endTime):X.endTime}; +g.y.Eh=function(){return this.e7?this.segments.length?this.q6()-this.zC()+1:0:g.Om.prototype.Eh.call(this)}; +g.y.q6=function(){var X=Math.min(this.HE,Math.max(g.Om.prototype.q6.call(this),this.sW)),c=this.GP*1E3;c=this.fg>0&&this.fg0&&this.sW>0&&!c&&(c=this.c7(this.GP))&&(X=Math.min(c.Bl-1,X));return X}; +g.y.WN=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; +g.y.XM=function(X){var c=S$(this,X.Bl);if(c>=0)this.segments[c]=X;else if(this.segments.splice(-(c+1),0,X),this.EG&&X.Bl%(300/this.SL)===0){var V=this.segments[0].Bl,G=Math.floor(this.EG/this.SL);X=X.Bl-G;c=-(c+1)-G;c>0&&X>V&&(this.segments=this.segments.slice(c))}}; +g.y.Sy=function(){return this.sW}; +g.y.g8=function(X){return C8?!this.G&&X>=0&&this.q6()<=X:g.Om.prototype.g8.call(this,X)}; +g.y.c7=function(X){if(!this.e7)return g.Om.prototype.c7.call(this,X);if(!this.segments.length)return null;var c=this.segments[this.segments.length-1];if(X=c.endTime)c=c.Bl+Math.floor((X-c.endTime)/this.SL+1);else{c=AE(this.segments,function(G){return X=G.endTime?1:0}); +if(c>=0)return this.segments[c];var V=-(c+1);c=this.segments[V-1];V=this.segments[V];c=Math.floor((X-c.endTime)/((V.startTime-c.endTime)/(V.Bl-c.Bl-1))+1)+c.Bl}return this.dV(c)}; +g.y.dV=function(X){if(!this.e7)return g.Om.prototype.dV.call(this,X);if(!this.segments.length)return null;var c=S$(this,X);if(c>=0)return this.segments[c];var V=-(c+1);c=this.SL;if(V===0)var G=Math.max(0,this.segments[0].startTime-(this.segments[0].Bl-X)*c);else V===this.segments.length?(G=this.segments[this.segments.length-1],G=G.endTime+(X-G.Bl-1)*c):(G=this.segments[V-1],c=this.segments[V],c=(c.startTime-G.endTime)/(c.Bl-G.Bl-1),G=G.endTime+(X-G.Bl-1)*c);return new t7(X,G,c,0,"sq/"+X,void 0,void 0, +!0)}; +var C8=!1;g.E(i$,z1);g.y=i$.prototype;g.y.Iq=function(){return!0}; +g.y.tb=function(){return!0}; +g.y.bP=function(X){return this.ju()&&X.U&&!X.Z||!X.J.index.g8(X.Bl)}; +g.y.mM=function(){}; +g.y.FO=function(X,c){return typeof X!=="number"||isFinite(X)?z1.prototype.FO.call(this,X,c===void 0?!1:c):new UC([new l$(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.MY,void 0,this.MY*this.info.JX)],"")}; +g.y.LF=function(X,c){var V=V===void 0?!1:V;if(this.index.TJ(X))return z1.prototype.LF.call(this,X,c);var G=this.index.getStartTime(X),n=Math.round(this.MY*this.info.JX),L=this.MY;c&&(L=n=0);return new UC([new l$(V?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",X,G,L,void 0,n,!c)],X>=0?"sq/"+X:"")};g.E(qQ,mK);g.y=qQ.prototype;g.y.Mb=function(){return!1}; +g.y.ju=function(){return!1}; +g.y.Iq=function(){return!1}; +g.y.mM=function(){return new UC([new l$(1,this,void 0,"otfInit")],this.Z)}; +g.y.Ea=function(){return null}; +g.y.JN=function(X){this.bP(X);return Zuj(this,p8(X),!1)}; +g.y.FO=function(X,c){c=c===void 0?!1:c;X=this.index.gJ(X);c&&(X=Math.min(this.index.q6(),X+1));return Zuj(this,X,!0)}; +g.y.Zq=function(X){X.info.type===1&&(this.J||(this.J=mS(X.J)),X.G&&X.G.uri==="http://youtube.com/streaming/otf/durations/112015"&&x1D(this,X.G))}; +g.y.bP=function(X){return X.U===0?!0:this.index.q6()>X.Bl&&this.index.zC()<=X.Bl+1}; +g.y.Rk=function(){return 0}; +g.y.Gu=function(){return!1};XY.prototype.Hg=function(){return this.J.Hg()};g.y=g.df.prototype;g.y.TJ=function(X){return X<=this.q6()}; +g.y.pg=function(X){return this.offsets[X]}; +g.y.getStartTime=function(X){return this.startTicks[X]/this.J}; +g.y.t0=function(X){return this.getStartTime(X)+this.getDuration(X)}; +g.y.qZ=Gt(0);g.y.Tm=function(){return NaN}; +g.y.getDuration=function(X){X=this.G3(X);return X>=0?X/this.J:-1}; +g.y.G3=function(X){return X+1=0}; +g.y.FX=function(){return this.G?this.startTicks[this.count]/this.J:NaN}; +g.y.Qg=function(){return 0}; +g.y.Eh=function(){return this.count}; +g.y.Vo=function(){return""}; +g.y.gJ=function(X){X=g.hE(this.startTicks.subarray(0,this.count),X*this.J);return X>=0?X:Math.max(0,-X-2)}; +g.y.isLoaded=function(){return this.q6()>=0}; +g.y.aJ=function(X,c){if(X>=this.q6())return 0;var V=0;for(c=this.getStartTime(X)+c;Xthis.getStartTime(X);X++)V=Math.max(V,tUl(this,X)/this.getDuration(X));return V}; +g.y.resize=function(X){X+=2;var c=this.offsets;this.offsets=new Float64Array(X+1);var V=this.startTicks;this.startTicks=new Float64Array(X+1);for(X=0;X0&&X&&(V=V.range.end+1,X=Math.min(X,this.info.contentLength-V),X>0&&G.push(new l$(4,this,tQ(V,X),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,c)));return new UC(G)}; +g.y.Zq=function(X){if(X.info.type===1){if(this.J)return;this.J=mS(X.J)}else if(X.info.type===2){if(this.Z||this.index.q6()>=0)return;if(g.Vs(this.info)){var c=this.index,V=X.Hg();X=X.info.range.start;var G=g.K5(V,0,1936286840);V=OpL(G);c.J=V.timescale;var n=V.yT;c.offsets[0]=V.Zd+X+G.size;c.startTicks[0]=n;c.G=!0;X=V.DJ.length;for(G=0;G0&&X===L[0].TM)for(X=0;X=c+V)break}n.length||g.Ni(new g.SP("b189619593",""+X,""+c,""+V));return new UC(n)}; +g.y.HM=function(X){for(var c=this.SE(X.info),V=X.info.range.start+X.info.G,G=[],n=0;n=this.index.pg(V+1);)V++;return this.uv(V,c,X.U).KS}; +g.y.bP=function(X){X.Dm();return this.tb()?!0:X.range.end+1this.info.contentLength&&(c=new Rq(c.start,this.info.contentLength-1)),new UC([new l$(4,X.J,c,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,X.clipId)]);X.type===4&&(X=this.SE(X),X=X[X.length-1]);var V=0,G=X.range.start+X.G+X.U;X.type===3&&(X.Dm(),V=X.Bl,G===X.range.end+1&&(V+=1));return this.uv(V,G,c)}; +g.y.JN=function(){return null}; +g.y.FO=function(X,c,V){c=c===void 0?!1:c;X=this.index.gJ(X);c&&(X=Math.min(this.index.q6(),X+1));return this.uv(X,this.index.pg(X),0,V)}; +g.y.Mb=function(){return!0}; +g.y.ju=function(){return!0}; +g.y.Iq=function(){return!1}; +g.y.Rk=function(){return this.indexRange.length+this.initRange.length}; +g.y.Gu=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var KU={},CXl=(KU.COLOR_PRIMARIES_BT709="bt709",KU.COLOR_PRIMARIES_BT2020="bt2020",KU.COLOR_PRIMARIES_UNKNOWN=null,KU.COLOR_PRIMARIES_UNSPECIFIED=null,KU),CU={},lGD=(CU.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",CU.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",CU.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",CU.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",CU.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,CU.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,CU);g.AF.prototype.getName=function(){return this.name}; +g.AF.prototype.getId=function(){return this.id}; +g.AF.prototype.getIsDefault=function(){return this.isDefault}; +g.AF.prototype.toString=function(){return this.name}; +g.AF.prototype.getName=g.AF.prototype.getName;g.AF.prototype.getId=g.AF.prototype.getId;g.AF.prototype.getIsDefault=g.AF.prototype.getIsDefault;var pZD=/action_display_post/;var IGD,Hy,aE;g.E($F,g.$T);g.y=$F.prototype;g.y.isLoading=function(){return this.state===1}; +g.y.fK=function(){return this.state===3}; +g.y.TsS=function(X){var c=X.getElementsByTagName("Representation");if(X.getElementsByTagName("SegmentList").length>0||X.getElementsByTagName("SegmentTemplate").length>0){this.ZQ=this.G=!0;this.timeline||(this.timeline=new W$l);r8j(this.timeline,X);this.publish("refresh");for(X=0;X=0?H=b$(W):a=a+"?range="+W}A.call(h,new t7(Y.Bl,Y.startSecs,Y.VL,Y.J,a,H,Y.G))}G=n}V.update(G,this.isLive,this.fS)}QQs(this.timeline);return!0}this.duration=Hut(Bt(X,"mediaPresentationDuration")); +a:{for(X=0;X0))return this.SQ()-X}}X=this.J;for(var c in X){var V=X[c].index;if(V.isLoaded()&&!ys(X[c].info.mimeType))return V.Qg()}return 0}; +g.y.getStreamTimeOffset=function(){return this.D}; +g.y.Tm=function(X){for(var c in this.J){var V=this.J[c].index;if(V.isLoaded()){var G=V.gJ(X),n=V.Tm(G);if(n)return n+X-V.getStartTime(G)}}return NaN}; +var mF=null,wNU,RE=!((wNU=navigator.mediaCapabilities)==null||!wNU.decodingInfo),c2D={commentary:1,alternate:2,dub:3,main:4};var j5=new Set,b7=new Map;l7.prototype.clone=function(X){return new l7(this.flavor,X,this.G,this.experiments)}; +l7.prototype.J1=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; +l7.prototype.getInfo=function(){switch(this.keySystem){case "com.youtube.playready":return"PRY";case "com.microsoft.playready":return"PRM";case "com.widevine.alpha":return"WVA";case "com.youtube.widevine.l3":return"WVY";case "com.youtube.fairplay":return"FPY";case "com.youtube.fairplay.sbdl":return"FPC";case "com.apple.fps.1_0":return"FPA";default:return this.keySystem}}; +var Fmz={},Py=(Fmz.playready=["com.youtube.playready","com.microsoft.playready"],Fmz.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],Fmz),Df={},Ezs=(Df.widevine="DRM_SYSTEM_WIDEVINE",Df.fairplay="DRM_SYSTEM_FAIRPLAY",Df.playready="DRM_SYSTEM_PLAYREADY",Df),SL={},Edp=(SL.widevine=1,SL.fairplay=2,SL.playready=3,SL);By.prototype.O2=function(X,c){c=c===void 0?1:c;this.pj+=c;this.G+=X;X/=c;for(var V=0;V0)G+="."+zb[n].toFixed(0)+"_"+V.J[n].toFixed(0);else break;V=G}V&&(X[c]=V)}this.J=new WGs;return X}; +g.y.toString=function(){return""};g.y=Zg2.prototype;g.y.isActive=function(){return!1}; +g.y.cA=function(){}; +g.y.UG=function(){}; +g.y.wc=function(X,c){return c}; +g.y.Op=function(){}; +g.y.t4=function(){}; +g.y.WF=function(X,c){return c()}; +g.y.Vz=function(){return{}}; +g.y.toString=function(){return""};var iK,riG,QFH,ZdM,xJG,vdG,q3,xg,nD,gol,St;iK=new Zg2;riG=!!+Xx("html5_enable_profiler");QFH=!!+Xx("html5_onesie_enable_profiler");ZdM=!!+Xx("html5_offline_encryption_enable_profiler");xJG=!!+Xx("html5_performance_impact_profiling_timer_ms");vdG=!!+Xx("html5_drm_enable_profiler");q3=riG||QFH||ZdM||xJG||vdG?new FGO:iK;g.tG=riG?q3:iK;xg=QFH?q3:iK;nD=ZdM?q3:iK;gol=xJG?q3:iK;St=vdG?q3:iK;var DJ;g.E(sX,g.I); +sX.prototype.initialize=function(X,c){for(var V=this,G=g.r(Object.keys(X)),n=G.next();!n.done;n=G.next()){n=g.r(X[n.value]);for(var L=n.next();!L.done;L=n.next())if(L=L.value,L.r$)for(var d=g.r(Object.keys(L.r$)),h=d.next();!h.done;h=d.next()){var A=h.value;h=A;A=Py[A];!A&&this.S("html5_enable_vp9_fairplay")&&h==="fairplay"&&(A=["com.youtube.fairplay.sbdl"]);if(A){A=g.r(A);for(var Y=A.next();!Y.done;Y=A.next())Y=Y.value,this.U[Y]=this.U[Y]||new l7(h,Y,L.r$[h],this.Fh.experiments),this.J[h]=this.J[h]|| +{},this.J[h][L.mimeType]=!0}}}D9()&&(this.U["com.youtube.fairplay"]=new l7("fairplay","com.youtube.fairplay","",this.Fh.experiments),this.S("html5_enable_vp9_fairplay")||(this.J.fairplay=this.J.fairplay||{},this.J.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.J.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.G=$U2(c,this.useCobaltWidevine,this.S("html5_enable_safari_fairplay"),this.S("html5_enable_vp9_fairplay")).filter(function(H){return!!V.U[H]})}; +sX.prototype.S=function(X){return this.Fh.experiments.lc(X)};var kZA={"":"LIVE_STREAM_MODE_UNKNOWN",dvr:"LIVE_STREAM_MODE_DVR",lp:"LIVE_STREAM_MODE_LP",post:"LIVE_STREAM_MODE_POST",window:"LIVE_STREAM_MODE_WINDOW",live:"LIVE_STREAM_MODE_LIVE"};mUD.prototype.S=function(X){return this.experiments.lc(X)};var dsl={RED:"red",B_2:"white"};RoU.prototype.lc=function(X){X=this.flags[X];JSON.stringify(X);return X==="true"};var Og1=Promise.resolve(),fqD=window.queueMicrotask?window.queueMicrotask.bind(window):lqj;cD.prototype.canPlayType=function(X,c){X=X.canPlayType?X.canPlayType(c):!1;iE?X=X||od7[c]:lY===2.2?X=X||esA[c]:sE()&&(X=X||Ji7[c]);return!!X}; +cD.prototype.isTypeSupported=function(X){return this.A7?window.cast.receiver.platform.canDisplayType(X):pp(X)}; +var esA={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},Ji7={"application/x-mpegURL":"maybe"},od7={"application/x-mpegURL":"maybe"};g.E(LL,g.$T);LL.prototype.add=function(X,c){if(!this.items[X]&&(c.iD||c.Sd||c.w9)){var V=this.items,G=c;Object.isFrozen&&!Object.isFrozen(c)&&(G=Object.create(c),Object.freeze(G));V[X]=G;this.publish("vast_info_card_add",X)}}; +LL.prototype.remove=function(X){var c=this.get(X);delete this.items[X];return c}; +LL.prototype.get=function(X){return this.items[X]||null}; +LL.prototype.isEmpty=function(){return g.tN(this.items)};g.E(d0,g.J6);d0.prototype.J=function(X,c){return g.J6.prototype.J.call(this,X,c)}; +d0.prototype.G=function(X,c,V){var G=this;return g.O(function(n){return n.J==1?g.b(n,g.J6.prototype.G.call(G,X,c,V),2):n.return(n.G)})}; +g.E(ym,g.mB);ym.prototype.encrypt=function(X,c){return g.mB.prototype.encrypt.call(this,X,c)};var Aq;YC.prototype.add=function(X){if(this.pos+20>this.data.length){var c=new Uint8Array(this.data.length*2);c.set(this.data);this.data=c}for(;X>31;)this.data[this.pos++]=Aq[(X&31)+32],X>>=5;this.data[this.pos++]=Aq[X|0]}; +YC.prototype.ys=function(){return g.On(this.data.subarray(0,this.pos))}; +YC.prototype.reset=function(){this.pos=0};HD.prototype.Mm=function(X,c){var V=Math.pow(this.alpha,X);this.J=c*(1-V)+V*this.J;this.G+=X}; +HD.prototype.JP=function(){return this.J/(1-Math.pow(this.alpha,this.G))};aT.prototype.Mm=function(X,c){for(var V=0;V<10;V++){var G=this.J[V],n=G+(V===0?X:0),L=1*Math.pow(2,V);if(n<=L)break;G=Math.min(1,(n-L*.5)/G);for(n=0;n<16;n++)L=this.values[V*16+n]*G,this.values[(V+1)*16+n]+=L,this.J[V+1]+=L,this.values[V*16+n]-=L,this.J[V]-=L}G=V=0;n=8192;c>8192&&(V=Math.ceil(Math.log(c/8192)/Math.log(2)),G=8192*Math.pow(2,V-1),n=G*2);V+2>16?this.values[15]+=X:(c=(c-G)/(n-G),this.values[V]+=X*(1-c),this.values[V+1]+=X*c);this.J[0]+=X}; +aT.prototype.JP=function(){var X=X===void 0?this.G:X;var c=c===void 0?.02:c;var V=V===void 0?.98:V;for(var G=this.U,n=0;n<16;n++)G[n]=this.values[n];n=this.J[0];for(var L=1;L<11;L++){var d=this.J[L];if(d===0)break;for(var h=Math.min(1,(X-n)/d),A=0;A<16;A++)G[A]+=this.values[L*16+A]*h;n+=d*h;if(h<1)break}for(L=X=d=0;L<16;L++){h=d+G[L]/n;X+=Math.max(0,Math.min(h,V)-Math.max(d,c))*(L>0?8192*Math.pow(2,L-1):0);if(h>V)break;d=h}return X/(V-c)};$C.prototype.Mm=function(X,c){X=Math.min(this.J,Math.max(1,Math.round(X*this.resolution)));X+this.G>=this.J&&(this.U=!0);for(;X--;)this.values[this.G]=c,this.G=(this.G+1)%this.J;this.OZ=!0}; +$C.prototype.percentile=function(X){var c=this;if(!this.U&&this.G===0)return 0;this.OZ&&(g.Y5(this.Z,function(V,G){return c.values[V]-c.values[G]}),this.OZ=!1); +return this.values[this.Z[Math.round(X*((this.U?this.J:this.G)-1))]]||0}; +$C.prototype.JP=function(){return this.B?(this.percentile(this.X-this.B)+this.percentile(this.X)+this.percentile(this.X+this.B))/3:this.percentile(this.X)};g.E(WD,g.I);WD.prototype.LS=function(){var X;(X=this.QK)==null||X.start();if(vD(this)&&this.policy.T){var c;(c=this.Ed)==null||c.oa()}};S8L.prototype.S=function(X){return this.experiments.lc(X)};g.E(q88,g.I);var LVl="blogger ads-preview gac books docs duo flix google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),jD1={Fg_:"caoe",ImW:"capsv",QxR:"cbrand",ZY2:"cbr",DYy:"cbrver",TWO:"cchip",zyR:"ccappver",VUS:"ccrv",fU_:"cfrmver",QgW:"c",DQR:"cver",SQR:"ctheme",ZKl:"cplayer",ZgR:"cmodel",sYv:"cnetwork",l62:"cos",zec:"cosver",Oj7:"cplatform",QCW:"crqyear"};g.E(PD,g.I);g.y=PD.prototype;g.y.S=function(X){return this.experiments.lc(X)}; +g.y.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; +g.y.getVideoUrl=function(X,c,V,G,n,L,d){c={list:c};V&&(n?c.time_continue=V:c.t=V);V=d?"music.youtube.com":g.BD(this);n=V==="www.youtube.com";!L&&G&&n?L="https://youtu.be/"+X:g.fL(this)?(L="https://"+V+"/fire",c.v=X):(L&&n?(L=this.protocol+"://"+V+"/shorts/"+X,G&&(c.feature="share")):(L=this.protocol+"://"+V+"/watch",c.v=X),iE&&(X=SIw())&&(c.ebc=X));return g.KB(L,c)}; +g.y.getVideoEmbedCode=function(X,c,V,G){c="https://"+g.BD(this)+"/embed/"+c;G&&(c=g.KB(c,{list:G}));G=V.width;V=V.height;c=XJ(c);X=XJ(X!=null?X:"YouTube video player");return'')}; +g.y.supportsGaplessAudio=function(){return g.fp&&!iE&&B3()>=74||g.Tb&&g.EL(68)?!0:!1}; +g.y.supportsGaplessShorts=function(){return!this.S("html5_enable_short_gapless")||this.YO||g.v8?!1:!0}; +g.y.getPlayerType=function(){return this.J.cplayer}; +g.y.YU=function(){return this.YM}; +var WVs=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],YG1=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],arO=[19];var X3={},E2D=(X3["140"]={numChannels:2},X3["141"]={numChannels:2},X3["251"]={audioSampleRate:48E3,numChannels:2},X3["774"]={audioSampleRate:48E3,numChannels:2},X3["380"]={numChannels:6},X3["328"]={numChannels:6},X3["773"]={},X3),ck={},wdS=(ck["1"]='video/mp4; codecs="av01.0.08M.08"',ck["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',ck["1e"]='video/mp4; codecs="av01.0.08M.08"',ck["9"]='video/webm; codecs="vp9"',ck["("]='video/webm; codecs="vp9"',ck["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', +ck.h='video/mp4; codecs="avc1.64001e"',ck.H='video/mp4; codecs="avc1.64001e"',ck.o='audio/webm; codecs="opus"',ck.a='audio/mp4; codecs="mp4a.40.2"',ck.ah='audio/mp4; codecs="mp4a.40.2"',ck.mac3='audio/mp4; codecs="ac-3"; channels=6',ck.meac3='audio/mp4; codecs="ec-3"; channels=6',ck.i='audio/mp4; codecs="iamf.001.001.Opus"',ck),VW={},FVD=(VW["337"]={width:3840,height:2160,bitrate:3E7,fps:30},VW["336"]={width:2560,height:1440,bitrate:15E6,fps:30},VW["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, +VW["702"]={width:7680,height:4320,bitrate:4E7,fps:60},VW["701"]={width:3840,height:2160,bitrate:2E7,fps:60},VW["700"]={width:2560,height:1440,bitrate:1E7,fps:60},VW["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},VW["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},VW["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},VW["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, +VW["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},VW["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},VW["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},VW["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},VW["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},VW["315"]={width:3840,height:2160,bitrate:2E7,fps:60},VW["308"]={width:2560, +height:1440,bitrate:1E7,fps:60},VW["303"]={width:1920,height:1080,bitrate:5E6,fps:60},VW["302"]={width:1280,height:720,bitrate:25E5,fps:60},VW["299"]={width:1920,height:1080,bitrate:75E5,fps:60},VW["298"]={width:1280,height:720,bitrate:35E5,fps:60},VW["571"]={width:7680,height:4320,bitrate:3E7,fps:60},VW["401"]={width:3840,height:2160,bitrate:15E6,fps:60},VW["400"]={width:2560,height:1440,bitrate:75E5,fps:60},VW["399"]={width:1920,height:1080,bitrate:2E6,fps:60},VW["398"]={width:1280,height:720,bitrate:1E6, +fps:60},VW["397"]={width:854,height:480,bitrate:4E5,fps:30},VW["396"]={width:640,height:360,bitrate:25E4,fps:30},VW["787"]={width:1080,height:608,bitrate:2E5,fps:30},VW["788"]={width:1080,height:608,bitrate:4E5,fps:30},VW["572"]={width:7680,height:4320,bitrate:3E7,fps:60},VW["555"]={width:3840,height:2160,bitrate:15E6,fps:60},VW["554"]={width:2560,height:1440,bitrate:75E5,fps:60},VW["553"]={width:1920,height:1080,bitrate:2E6,fps:60},VW["552"]={width:1280,height:720,bitrate:1E6,fps:60},VW["551"]={width:854, +height:480,bitrate:4E5,fps:30},VW["550"]={width:640,height:360,bitrate:25E4,fps:30},VW["313"]={width:3840,height:2160,bitrate:8E6,fps:30},VW["271"]={width:2560,height:1440,bitrate:4E6,fps:30},VW["248"]={width:1920,height:1080,bitrate:2E6,fps:30},VW["247"]={width:1280,height:720,bitrate:15E5,fps:30},VW["244"]={width:854,height:480,bitrate:52E4,fps:30},VW["243"]={width:640,height:360,bitrate:28E4,fps:30},VW["137"]={width:1920,height:1080,bitrate:4E6,fps:30},VW["136"]={width:1280,height:720,bitrate:3E6, +fps:30},VW["135"]={width:854,height:480,bitrate:1E6,fps:30},VW["385"]={width:1920,height:1080,bitrate:6503313,fps:60},VW["376"]={width:1280,height:720,bitrate:5706960,fps:60},VW["384"]={width:1280,height:720,bitrate:3660979,fps:60},VW["225"]={width:1280,height:720,bitrate:5805E3,fps:30},VW["224"]={width:1280,height:720,bitrate:453E4,fps:30},VW["145"]={width:1280,height:720,bitrate:2682052,fps:30},VW);g.y=h4.prototype;g.y.getInfo=function(){return this.J}; +g.y.Om=function(){return null}; +g.y.RJ=function(){var X=this.Om();return X?(X=g.A3(X.uB),Number(X.expire)):NaN}; +g.y.Vf=function(){}; +g.y.getHeight=function(){return this.J.video.height};xsl.prototype.build=function(){o2l(this);var X=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],c={};a:if(this.J)var V=this.J;else{V="";for(var G=g.r(this.U),n=G.next();!n.done;n=G.next())if(n=n.value,n.zF){if(n.zF.getIsDefault()){V=n.zF.getId();break a}V||(V=n.zF.getId())}}G=g.r(this.U);for(n=G.next();!n.done;n=G.next())if(n=n.value,this.B||!n.zF||n.zF.getId()===V)c[n.itag]||(c[n.itag]=[]),c[n.itag].push(n);V=g.r(this.G);for(G=V.next();!G.done;G=V.next())if(G=G.value,n=c[G.J]){n=g.r(n);for(var L=n.next();!L.done;L= +n.next()){var d=X,h=d.push;L=L.value;var A="#EXT-X-MEDIA:TYPE=AUDIO,",Y="YES",H="audio";if(L.zF){H=L.zF;var a=H.getId().split(".")[0];a&&(A+='LANGUAGE="'+a+'",');(this.J?this.J===H.getId():H.getIsDefault())||(Y="NO");H=H.getName()}a="";G!==null&&(a=G.itag.toString());a=YJ(this,L.url,a);A=A+('NAME="'+H+'",DEFAULT='+(Y+',AUTOSELECT=YES,GROUP-ID="'))+(k3s(L,G)+'",URI="'+(a+'"'));h.call(d,A)}}V=g.r(this.Z);for(G=V.next();!G.done;G=V.next())G=G.value,n=mJG,G=(d=G.zF)?'#EXT-X-MEDIA:URI="'+YJ(this,G.url)+ +'",TYPE=SUBTITLES,GROUP-ID="'+n+'",LANGUAGE="'+d.getId()+'",NAME="'+d.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,G&&X.push(G);V=this.Z.length>0?mJG:void 0;G=g.r(this.G);for(n=G.next();!n.done;n=G.next())n=n.value,h=c[n.J],d=void 0,((d=h)==null?void 0:d.length)>0&&(d=n,h=h[0],h="#EXT-X-STREAM-INF:BANDWIDTH="+(d.bitrate+h.bitrate)+',CODECS="'+(d.codecs+","+h.codecs+'",RESOLUTION=')+(d.width+"x"+d.height+',AUDIO="')+(k3s(h,d)+'",')+(V?'SUBTITLES="'+V+'",':"")+"CLOSED-CAPTIONS=NONE",d.fps>1&&(h+= +",FRAME-RATE="+d.fps),d.Hw&&(h+=",VIDEO-RANGE="+d.Hw),X.push(h),X.push(YJ(this,n.url,"")));return X.join("\n")}; +var mJG="text";g.E(jz,h4);jz.prototype.RJ=function(){return this.expiration}; +jz.prototype.Om=function(){if(!this.uB||this.uB.vl()){var X=this.G.build();X="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(X);this.uB=new xK(X)}return this.uB};g.E(Hp,h4);Hp.prototype.Om=function(){return new xK(this.G.Yc())}; +Hp.prototype.Vf=function(){this.G=Rw(this.G)};g.E(a6,h4);a6.prototype.Om=function(){return new xK(this.G)};var GU={},g2l=(GU.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",GU.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",GU.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",GU);g.y=g.$J.prototype;g.y.getId=function(){return this.id}; +g.y.getName=function(){return this.name}; +g.y.isServable=function(){return this.J}; +g.y.Yc=function(){return this.url}; +g.y.getXtags=function(){return this.xtags}; +g.y.toString=function(){return this.languageCode+": "+g.Wp(this)+" - "+this.vssId+" - "+(this.captionId||"")}; +g.y.w6=function(X){return X?this.toString()===X.toString():!1}; +g.y.d$=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var UsU={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},TE1={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},uMw=/^(\d*)_((\d*)_?(\d*))$/;var zxU={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},BEt={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var n4={},RsA=(n4.ALWAYS=1,n4.BY_REQUEST=3,n4.UNKNOWN=void 0,n4),L4={},bdA=(L4.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",L4.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",L4.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",L4.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",L4);var fEU; +fEU=function(X){for(var c=Object.keys(X),V={},G=0;GG-c?-1:X}; +g.y.nh=function(){return this.G.q6()}; +g.y.ZZ=function(){return this.G.zC()}; +g.y.vM=function(X){this.G=X};g.E(uj,Uf);uj.prototype.G=function(X,c){return Uf.prototype.G.call(this,"$N|"+X,c)}; +uj.prototype.Z=function(X,c,V){return new T_(X,c,V,this.isLive)};var RjD=[],DV=new Set;g.E(g.z_,g.$T);g.y=g.z_.prototype; +g.y.setData=function(X){X=X||{};var c=X.errordetail;c!=null&&(this.errorDetail=c);var V=X.errorcode;V!=null?this.errorCode=V:X.status==="fail"&&(this.errorCode="auth");var G=X.reason;G!=null&&(this.errorReason=G);var n=X.subreason;n!=null&&(this.nj=n);this.S("html5_enable_ssap_entity_id")||this.clientPlaybackNonce||(this.clientPlaybackNonce=X.cpn||(this.Fh.YU()?"r"+g.mq(15):g.mq(16)));this.yK=ye(this.Fh.yK,X.livemonitor);xzs(this,X);var L=X.raw_player_response;if(L)this.Yj=L;else{var d=X.player_response; +d&&(L=JSON.parse(d))}if(this.S("html5_enable_ssap_entity_id")){var h=X.cached_load;h&&(this.Re=ye(this.Re,h));if(!this.clientPlaybackNonce){var A=X.cpn;A?(this.l0("ssei","shdc"),this.clientPlaybackNonce=A):this.clientPlaybackNonce=this.Fh.YU()?"r"+g.mq(15):g.mq(16)}}L&&(this.playerResponse=L);if(this.playerResponse){var Y=this.playerResponse.annotations;if(Y)for(var H=g.r(Y),a=H.next();!a.done;a=H.next()){var W=a.value.playerAnnotationsUrlsRenderer;if(W){W.adsOnly&&(this.w7=!0);var w=W.loadPolicy; +w&&(this.annotationsLoadPolicy=RsA[w]);var F=W.invideoUrl;F&&(this.fS=yn(F));break}}var Z=this.playerResponse.attestation;Z&&sDs(this,Z);var v=this.playerResponse.cotn;v&&(this.cotn=v);var e=this.playerResponse.heartbeatParams;if(e){ros(this)&&(this.Tp=!0);var m=e.heartbeatToken;m&&(this.drmSessionId=e.drmSessionId||"",this.heartbeatToken=m,this.dR=Number(e.intervalMilliseconds),this.gR=Number(e.maxRetries),this.a6=!!e.softFailOnError,this.Wm=!!e.useInnertubeHeartbeatsForDrm,this.MB=!0);this.heartbeatServerData= +e.heartbeatServerData;var t;this.Xn=!((t=e.heartbeatAttestationConfig)==null||!t.requiresAttestation)}var f=this.playerResponse.messages;f&&iRw(this,f);var U=this.playerResponse.overlay;if(U){var C=U.playerControlsOverlayRenderer;if(C)if(XK1(this,C.controlBgHtml),C.mutedAutoplay){var K=g.T(C.mutedAutoplay,NQp);if(K&&K.endScreen){var nj=g.T(K.endScreen,UxA);nj&&nj.text&&(this.CC=g.xT(nj.text))}}else this.mutedAutoplay=!1}var yl=this.playerResponse.playabilityStatus;if(yl){var Xl=yl.backgroundability; +Xl&&Xl.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var u,q;if((u=yl.offlineability)==null?0:(q=u.offlineabilityRenderer)==null?0:q.offlineable)this.offlineable=!0;var Q=yl.contextParams;Q&&(this.contextParams=Q);var P=yl.pictureInPicture;P&&P.pictureInPictureRenderer.playableInPip&&(this.pipable=!0);yl.playableInEmbed&&(this.allowEmbed=!0);var Tt=yl.ypcClickwrap;if(Tt){var xU=Tt.playerLegacyDesktopYpcClickwrapRenderer,$U=Tt.ypcRentalActivationRenderer;if(xU)this.dh=xU.durationMessage|| +"",this.l_=!0;else if($U){var Js=$U.durationMessage;this.dh=Js?g.xT(Js):"";this.l_=!0}}var iO=yl.errorScreen;if(iO){if(iO.playerLegacyDesktopYpcTrailerRenderer){var dM=iO.playerLegacyDesktopYpcTrailerRenderer;this.DD=dM.trailerVideoId||"";var Fr=iO.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var k=Fr&&Fr.ypcTrailerRenderer}else if(iO.playerLegacyDesktopYpcOfferRenderer)dM=iO.playerLegacyDesktopYpcOfferRenderer;else if(iO.ypcTrailerRenderer){k=iO.ypcTrailerRenderer;var J=k.fullVideoMessage;this.dn= +J?g.xT(J):"";var R,l;this.DD=((R=g.T(k,TQ_))==null?void 0:(l=R.videoDetails)==null?void 0:l.videoId)||""}dM&&(this.fW=dM.itemTitle||"",dM.itemUrl&&(this.h2=dM.itemUrl),dM.itemBuyUrl&&(this.OI=dM.itemBuyUrl),this.G5=dM.itemThumbnail||"",this.ez=dM.offerHeadline||"",this.zf=dM.offerDescription||"",this.wu=dM.offerId||"",this.Dn=dM.offerButtonText||"",this.gp=dM.offerButtonFormattedText||null,this.VB=dM.overlayDurationMsec||NaN,this.dn=dM.fullVideoMessage||"",this.JZ=!0);if(k){var p=g.T(k,TQ_);if(p)this.tJ= +{raw_player_response:p};else{var cw=g.T(k,qLH);this.tJ=cw?y8(cw):null}this.JZ=!0}}}var Lj=this.playerResponse.playbackTracking;if(Lj){var ds=X,M=Qb(Lj.googleRemarketingUrl);M&&(this.googleRemarketingUrl=M);var jD=Qb(Lj.youtubeRemarketingUrl);jD&&(this.youtubeRemarketingUrl=jD);var Fl={},As=Qb(Lj.ptrackingUrl);if(As){var ts=ZV(As),W7=ts.oid;W7&&(this.qw=W7);var Nk=ts.pltype;Nk&&(this.J5=Nk);var $5=ts.ptchn;$5&&(this.o7=$5);var Bw=ts.ptk;Bw&&(this.PO=encodeURIComponent(Bw));var UL=ts.m;UL&&(this.Yk= +UL)}var Ai=Qb(Lj.qoeUrl);if(Ai){for(var ly=g.A3(Ai),zV=g.r(Object.keys(ly)),j9=zV.next();!j9.done;j9=zV.next()){var PW=j9.value,To=ly[PW];ly[PW]=Array.isArray(To)?To.join(","):To}this.HY=ly;var zv=ly.cat;zv&&(this.S("html5_enable_qoe_cat_list")?this.CN=this.CN.concat(zv.split(",")):this.cz=zv);var Qj=ly.live;Qj&&(this.DB=Qj);var H1=ly.drm_product;H1&&(this.G7=H1)}var bP=Qb(Lj.videostatsPlaybackUrl);if(bP){var $m=ZV(bP),tu=$m.adformat;if(tu){ds.adformat=tu;var MX=this.j(),g6=Pk8(tu,this.qj,MX.X,MX.D); +g6&&(this.adFormat=g6)}var eS=$m.aqi;eS&&(ds.ad_query_id=eS);var qx=$m.autoplay;qx&&(this.Tx=qx=="1",this.QB=qx=="1",GT(this,"vss"));var BW=$m.autonav;BW&&(this.isAutonav=BW=="1");var nS=$m.delay;nS&&(this.EM=GV(nS));var xG=$m.ei;xG&&(this.eventId=xG);if($m.adcontext||tu)this.Tx=!0,GT(this,"ad");var NK=$m.feature;NK&&(this.UY=NK);var WY=$m.list;WY&&(this.playlistId=WY);var oQ=$m.of;oQ&&(this.iU=oQ);var eU=$m.osid;eU&&(this.osid=eU);var J8=$m.referrer;J8&&(this.referrer=J8);var hM=$m.sdetail;hM&&(this.xQ= +hM);var dS=$m.ssrt;dS&&(this.Lw=dS=="1");var AM=$m.subscribed;AM&&(this.subscribed=AM=="1",this.D.subscribed=AM);var Ye=$m.uga;Ye&&(this.userGenderAge=Ye);var m$=$m.upt;m$&&(this.Q8=m$);var RQ=$m.vm;RQ&&(this.videoMetadata=RQ);Fl.playback=$m}var bX=Qb(Lj.videostatsWatchtimeUrl);if(bX){var t8=ZV(bX),Oo=t8.ald;Oo&&(this.HL=Oo);Fl.watchtime=t8}var lX=Qb(Lj.atrUrl);if(lX){var z2=ZV(lX);Fl.atr=z2}var vL=Qb(Lj.engageUrl);if(vL){var BJ=ZV(vL);Fl.engage=BJ}this.nN=Fl;if(Lj.promotedPlaybackTracking){var B1= +Lj.promotedPlaybackTracking;B1.startUrls&&(this.fn=B1.startUrls);B1.firstQuartileUrls&&(this.FV=B1.firstQuartileUrls);B1.secondQuartileUrls&&(this.aD=B1.secondQuartileUrls);B1.thirdQuartileUrls&&(this.W8=B1.thirdQuartileUrls);B1.completeUrls&&(this.XV=B1.completeUrls);B1.engagedViewUrls&&(B1.engagedViewUrls.length>1&&g.UQ(new g.SP("There are more than one engaged_view_urls.")),this.TZ=B1.engagedViewUrls[0])}}var j1=this.playerResponse.playerCueRanges;j1&&j1.length>0&&(this.cueRanges=j1);var M1=this.playerResponse.playerCueRangeSet; +M1&&g.Sz(this,M1);a:{var Hh=this.playerResponse.adPlacements;if(Hh)for(var gq=g.r(Hh),aG=gq.next();!aG.done;aG=gq.next()){var fu=void 0,pu=void 0,IQ=(fu=aG.value.adPlacementRenderer)==null?void 0:(pu=fu.renderer)==null?void 0:pu.videoAdTrackingRenderer;if(IQ){var N1=IQ;break a}}N1=null}var $e=N1;Lj&&Lj.promotedPlaybackTracking&&$e&&g.UQ(new g.SP("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));var Q5;if(!(Q5=$e))a:{for(var Uo=g.r(this.playerResponse.adSlots||[]), +Wh=Uo.next();!Wh.done;Wh=Uo.next()){var wr=g.T(Wh.value,uS);if(wr===void 0||!vy2(wr))break;var Tz=void 0,KQ=(Tz=wr.fulfillmentContent)==null?void 0:Tz.fulfilledLayout,uX=g.T(KQ,lS);if(uX&&xl(uX)){Q5=!0;break a}}Q5=!1}Q5&&(this.sX=!0);var PZ=this.playerResponse.playerAds;if(PZ)for(var sq=X,zz=g.r(PZ),Z$=zz.next();!Z$.done;Z$=zz.next()){var BZ=Z$.value;if(BZ){var Ku=BZ.playerLegacyDesktopWatchAdsRenderer;if(Ku){var oI=Ku.playerAdParams;if(oI){oI.autoplay=="1"&&(this.QB=this.Tx=!0);this.BL=oI.encodedAdSafetyReason|| +null;oI.showContentThumbnail!==void 0&&(this.Po=!!oI.showContentThumbnail);sq.enabled_engage_types=oI.enabledEngageTypes;break}}}}var vN=this.playerResponse.playerConfig;if(vN){var fc=vN.manifestlessWindowedLiveConfig;if(fc){var so=Number(fc.minDvrSequence),F0=Number(fc.maxDvrSequence),x$=Number(fc.minDvrMediaTimeMs),vi=Number(fc.maxDvrMediaTimeMs),Er=Number(fc.startWalltimeMs);so&&(this.uH=so);x$&&(this.Hl=x$/1E3,this.S("html5_sabr_parse_live_metadata_playback_boundaries")&&yu(this)&&(this.aF=x$/ +1E3));F0&&(this.HE=F0);vi&&(this.oZ=vi/1E3,this.S("html5_sabr_parse_live_metadata_playback_boundaries")&&yu(this)&&(this.Fn=vi/1E3));Er&&(this.Bd=Er/1E3);(so||x$)&&(F0||vi)&&(this.allowLiveDvr=this.isLivePlayback=this.wy=!0,this.bf=!1)}var pc=vN.daiConfig;if(pc){if(pc.enableDai){this.Jb=!0;var k$=pc.enableServerStitchedDai;k$&&(this.enableServerStitchedDai=k$);var Cu=pc.enablePreroll;Cu&&(this.enablePreroll=Cu)}var Dz;if(pc.daiType==="DAI_TYPE_SS_DISABLED"||((Dz=pc.debugInfo)==null?0:Dz.isDisabledUnpluggedChannel))this.Ar= +!0;pc.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.Pm=!0)}var hS=vN.audioConfig;if(hS){var Ua=hS.loudnessDb;Ua!=null&&(this.lX=Ua);var Jtl=hS.trackAbsoluteLoudnessLkfs;Jtl!=null&&(this.Jm=Jtl);var m$U=hS.loudnessTargetLkfs;m$U!=null&&(this.loudnessTargetLkfs=m$U);hS.audioMuted&&(this.Og=!0);hS.muteOnStart&&(this.TD=!0);var vK=hS.loudnessNormalizationConfig;if(vK){vK.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);vK.preserveStatefulLoudnessTarget&&(this.preserveStatefulLoudnessTarget= +!0);var RJ8=vK.minimumLoudnessTargetLkfs;RJ8!=null&&(this.minimumLoudnessTargetLkfs=RJ8);var b91=vK.maxStatefulTimeThresholdSec;b91!=null&&(this.maxStatefulTimeThresholdSec=b91)}this.S("web_player_audio_playback_from_audio_config")&&hS.playAudioOnly&&(this.MJ=!0)}var xoU=vN.playbackEndConfig;if(xoU){var tZ2=xoU.endSeconds,O9l=xoU.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(tZ2&&(this.endSeconds=tZ2),O9l&&(this.limitedPlaybackDurationInSeconds=O9l))}var az=vN.fairPlayConfig;if(az){var l68= +az.certificate;l68&&(this.T_=hq(l68));var MZS=Number(az.keyRotationPeriodMs);MZS>0&&(this.XE=MZS);var gz2=Number(az.keyPrefetchMarginMs);gz2>0&&(this.d7=gz2)}var Xp=vN.playbackStartConfig;if(Xp){this.zI=Number(Xp.startSeconds);var f6l=Xp.liveUtcStartSeconds,pOL=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0;f6l&&!pOL&&(this.liveUtcStartSeconds=Number(f6l));var v8w=Xp.startPosition;if(v8w){var I6w=v8w.utcTimeMillis;I6w&&!pOL&&(this.liveUtcStartSeconds=Number(I6w)*.001);var NCj=v8w.streamTimeMillis; +NCj&&(this.ON=Number(NCj)*.001)}this.progressBarStartPosition=Xp.progressBarStartPosition;this.progressBarEndPosition=Xp.progressBarEndPosition}else{var ksL=vN.skippableSegmentsConfig;if(ksL){var U$D=ksL.introSkipDurationMs;U$D&&(this.oX=Number(U$D)/1E3);var TCs=ksL.outroSkipDurationMs;TCs&&(this.Lc=Number(TCs)/1E3)}}var o8O=vN.skippableIntroConfig;if(o8O){var usU=Number(o8O.startMs),Pcs=Number(o8O.endMs);isNaN(usU)||isNaN(Pcs)||(this.pY=usU,this.fJ=Pcs)}var zJt=vN.streamSelectionConfig;zJt&&(this.tT= +Number(zJt.maxBitrate));var BCS=vN.vrConfig;BCS&&(this.N1=BCS.partialSpherical=="1");var kl=vN.webDrmConfig;if(kl){kl.skipWidevine&&(this.t$=!0);var KMD=kl.widevineServiceCert;KMD&&(this.Bo=hq(KMD));kl.useCobaltWidevine&&(this.useCobaltWidevine=!0);kl.startWithNoQualityConstraint&&(this.AZ=!0)}var KO=vN.mediaCommonConfig;if(KO){var $k=KO.dynamicReadaheadConfig;if($k){this.maxReadAheadMediaTimeMs=$k.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=$k.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs= +$k.readAheadGrowthRateMs||NaN;var sxs,Ccl=KO==null?void 0:(sxs=KO.mediaUstreamerRequestConfig)==null?void 0:sxs.videoPlaybackUstreamerConfig;Ccl&&(this.DH=hq(Ccl));var eOs=KO==null?void 0:KO.sabrContextUpdates;if(eOs&&eOs.length>0)for(var D$s=g.r(eOs),Jvw=D$s.next();!Jvw.done;Jvw=D$s.next()){var Wu=Jvw.value;if(Wu.type&&Wu.value){var TaA={type:Wu.type,scope:Wu.scope,value:hq(Wu.value)||void 0,sendByDefault:Wu.sendByDefault};this.sabrContextUpdates.set(Wu.type,TaA)}}}var SNO=KO.serverPlaybackStartConfig; +SNO&&(this.serverPlaybackStartConfig=SNO);KO.useServerDrivenAbr&&(this.ql=!0);var i9O=KO.requestPipeliningConfig;i9O&&(this.requestPipeliningConfig=i9O)}var qNw=vN.inlinePlaybackConfig;qNw&&(this.Ka=!!qNw.showAudioControls);var Wo=vN.embeddedPlayerConfig;if(Wo){this.embeddedPlayerConfig=Wo;var mo8=Wo.embeddedPlayerMode;if(mo8){var X5l=this.j();X5l.NW=mo8;X5l.U=mo8==="EMBEDDED_PLAYER_MODE_PFL"}var cww=Wo.permissions;cww&&(this.allowImaMonetization=!!cww.allowImaMonetization)}var Vbl=vN.ssapConfig; +Vbl&&(this.Ca=Vbl.ssapPrerollEnabled||!1);var wl=vN.webPlayerConfig;wl&&(wl.gatewayExperimentGroup&&(this.gatewayExperimentGroup=wl.gatewayExperimentGroup),wl.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var sV=this.playerResponse.streamingData;if(sV){var ROS=sV.formats;if(ROS){for(var o2=[],G4U=g.r(ROS),b7L=G4U.next();!b7L.done;b7L=G4U.next()){var tvs=b7L.value;o2.push(tvs.itag+"/"+tvs.width+"x"+tvs.height)}this.Mf=o2.join(",");o2=[];for(var nHO=g.r(ROS),O7S=nHO.next();!O7S.done;O7S=nHO.next()){var eT= +O7S.value,Jl={itag:eT.itag,type:eT.mimeType,quality:eT.quality},LZt=eT.url;LZt&&(Jl.url=LZt);var Fd=bW(eT),ujA=Fd.Ip,PHA=Fd.y4,zgU=Fd.s;Fd.Vj&&(Jl.url=ujA,Jl.sp=PHA,Jl.s=zgU);o2.push(g.BU(Jl))}this.jL=o2.join(",")}var l11=sV.hlsFormats;if(l11){var dml=vN||null,EP={};if(dml){var MvU=dml.audioPairingConfig;if(MvU&&MvU.pairs)for(var ywU=g.r(MvU.pairs),g8D=ywU.next();!g8D.done;g8D=ywU.next()){var h0w=g8D.value,f1U=h0w.videoItag;EP[f1U]||(EP[f1U]=[]);EP[f1U].push(h0w.audioItag)}}for(var AwD={},YJt=g.r(l11), +pHs=YJt.next();!pHs.done;pHs=YJt.next()){var jyt=pHs.value;AwD[jyt.itag]=jyt.bitrate}for(var Hzs=[],axl=g.r(l11),I1s=axl.next();!I1s.done;I1s=axl.next()){var cU=I1s.value,kv={itag:cU.itag,type:cU.mimeType,url:cU.url,bitrate:cU.bitrate,width:cU.width,height:cU.height,fps:cU.fps},rl=cU.audioTrack;if(rl){var $mS=rl.displayName;$mS&&(kv.name=$mS,kv.audio_track_id=rl.id,rl.audioIsDefault&&(kv.is_default="1"))}if(cU.drmFamilies){for(var WZ2=[],w5U=g.r(cU.drmFamilies),NDU=w5U.next();!NDU.done;NDU=w5U.next())WZ2.push(wf[NDU.value]); +kv.drm_families=WZ2.join(",")}var Qp=EP[cU.itag];if(Qp&&Qp.length){kv.audio_itag=Qp.join(",");var FZS=AwD[Qp[0]];FZS&&(kv.bitrate+=FZS)}var EHl=MUL(cU);EHl&&(kv.eotf=EHl);cU.audioChannels&&(kv.audio_channels=cU.audioChannels);Hzs.push(g.BU(kv))}this.hlsFormats=Hzs.join(",")}var UoL=sV.licenseInfos;if(UoL&&UoL.length>0){for(var rw8={},QyD=g.r(UoL),TDS=QyD.next();!TDS.done;TDS=QyD.next()){var ZzL=TDS.value,xm1=ZzL.drmFamily,vHt=ZzL.url;xm1&&vHt&&(rw8[wf[xm1]]=vHt)}this.r$=rw8}var k41=sV.drmParams;k41&& +(this.drmParams=k41);var oHw=sV.dashManifestUrl;oHw&&(this.gm=g.KB(oHw,{cpn:this.clientPlaybackNonce}));var e08=sV.hlsManifestUrl;e08&&(this.hlsvp=e08);var JwL=sV.probeUrl;JwL&&(this.probeUrl=yn(g.KB(JwL,{cpn:this.clientPlaybackNonce})));var mmD=sV.serverAbrStreamingUrl;mmD&&(this.yr=new g.kW(mmD,!0))}var R0L=this.playerResponse.trackingParams;R0L&&(this.Pl=R0L);var sL=this.playerResponse.videoDetails;if(sL){var oo=X,ut1=sL.videoId;ut1&&(this.videoId=ut1,oo.video_id||(oo.video_id=ut1));var bzj=sL.channelId; +bzj&&(this.D.uid=bzj.substring(2));var P6U=sL.title;P6U&&(this.title=P6U,oo.title||(oo.title=P6U));var zOD=sL.lengthSeconds;zOD&&(this.lengthSeconds=Number(zOD),oo.length_seconds||(oo.length_seconds=zOD));var tbw=sL.keywords;tbw&&(this.keywords=Jl8(tbw));var BDl=sL.channelId;BDl&&(this.F7=BDl,oo.ucid||(oo.ucid=BDl));var Ozs=sL.viewCount;Ozs&&(this.rawViewCount=Number(Ozs));var KCS=sL.author;KCS&&(this.author=KCS,oo.author||(oo.author=KCS));var lxl=sL.shortDescription;lxl&&(this.shortDescription=lxl); +var MbD=sL.isCrawlable;MbD&&(this.isListed=MbD);var gHj=sL.musicVideoType;gHj&&(this.musicVideoType=gHj);var scl=sL.isLive;scl!=null&&(this.isLivePlayback=scl);if(scl||sL.isUpcoming)this.isPremiere=!sL.isLiveContent;var fxl=sL.thumbnail;fxl&&(this.C=r4(fxl));var p5D=sL.isExternallyHostedPodcast;p5D&&(this.isExternallyHostedPodcast=p5D);var C6D=sL.viewerLivestreamJoinPosition;if(C6D==null?0:C6D.utcTimeMillis)this.J2=GV(C6D.utcTimeMillis);var Ix1=vN||null,Do1=X;sL.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast= +!0);sL.isUpcoming&&(this.isUpcoming=!0);if(sL.isPostLiveDvr){this.bf=!0;var NZs=sL.latencyClass;NZs&&(this.latencyClass=bdA[NZs]||"UNKNOWN");sL.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var S9t=!1;this.yK?(this.allowLiveDvr=Vm()?!0:ce&&Pr<5?!1:!0,this.isLivePlayback=!0):sL.isLive?(Do1.livestream="1",this.allowLiveDvr=sL.isLiveDvrEnabled?Vm()?!0:ce&&Pr<5?!1:!0:!1,this.partnerId=27,S9t=!0):sL.isUpcoming&&(S9t=!0);if(sL.isLive||this.yK&&this.S("html5_parse_live_monitor_flags")){sL.isLowLatencyLiveStream&& +(this.isLowLatencyLiveStream=!0);var UmO=sL.latencyClass;UmO&&(this.latencyClass=bdA[UmO]||"UNKNOWN");var TZl=sL.liveChunkReadahead;TZl&&(this.liveChunkReadahead=TZl);var cc=Ix1&&Ix1.livePlayerConfig;if(cc){cc.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);cc.hasSubfragmentedWebm&&(this.Q9=!0);cc.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var uWs=cc.liveExperimentalContentId;uWs&&(this.liveExperimentalContentId=Number(uWs));var PnS=cc.isLiveHeadPlayable;this.S("html5_live_head_playable")&& +PnS!=null&&(this.isLiveHeadPlayable=PnS)}}S9t&&(this.isLivePlayback=!0,Do1.adformat&&Do1.adformat.split("_")[1]!=="8"||this.NW.push("heartbeat"),this.MB=!0)}var z0L=sL.isPrivate;z0L!==void 0&&(this.isPrivate=ye(this.isPrivate,z0L))}if(yl){var BZl=sL||null,KZD=!1,Vi=yl.errorScreen;KZD=Vi&&(Vi.playerLegacyDesktopYpcOfferRenderer||Vi.playerLegacyDesktopYpcTrailerRenderer||Vi.ypcTrailerRenderer)?!0:BZl&&BZl.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(yl.status);if(!KZD){this.errorCode= +fr8(yl.errorCode)||"auth";var Zd=Vi&&Vi.playerErrorMessageRenderer;if(Zd){this.playerErrorMessageRenderer=Zd;var sys=Zd.reason;sys&&(this.errorReason=g.xT(sys));var i78=Zd.subreason;i78&&(this.nj=g.xT(i78),this.Ql=i78)}else this.errorReason=yl.reason||null;var q9S=yl.status;if(q9S==="LOGIN_REQUIRED")this.errorDetail="1";else if(q9S==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(q9S==="AGE_CHECK_REQUIRED"){var CnL=yl.errorScreen,Dm8=CnL&&CnL.playerKavRenderer;this.errorDetail=Dm8&&Dm8.kavUrl? +"4":"3"}else this.errorDetail=yl.isBlockedInRestrictedMode?"5":"0"}}var SJw=this.playerResponse.interstitialPods;SJw&&SGS(this,SJw);this.fS&&this.eventId&&(this.fS=j4(this.fS,{ei:this.eventId}));var X1L=this.playerResponse.captions;if(X1L&&X1L.playerCaptionsTracklistRenderer)a:{var eF=X1L.playerCaptionsTracklistRenderer;this.captionTracks=[];if(eF.captionTracks)for(var izU=g.r(eF.captionTracks),cNt=izU.next();!cNt.done;cNt=izU.next()){var JS=cNt.value,qJ1=kAs(JS.baseUrl);if(!qJ1)break a;var V9s={is_translateable:!!JS.isTranslatable, +languageCode:JS.languageCode,languageName:JS.name&&g.xT(JS.name),url:qJ1,vss_id:JS.vssId,kind:JS.kind};V9s.name=JS.trackName;V9s.displayName=JS.name&&g.xT(JS.name);this.captionTracks.push(new g.$J(V9s))}this.c8=eF.audioTracks||[];this.Ap=eF.defaultAudioTrackIndex||0;this.Zw=[];if(eF.translationLanguages)for(var XCU=g.r(eF.translationLanguages),GVL=XCU.next();!GVL.done;GVL=XCU.next()){var GE=GVL.value,wc={};wc.languageCode=GE.languageCode;wc.languageName=g.xT(GE.languageName);if(GE.translationSourceTrackIndices){wc.translationSourceTrackIndices= +[];for(var cK2=g.r(GE.translationSourceTrackIndices),nbO=cK2.next();!nbO.done;nbO=cK2.next())wc.translationSourceTrackIndices.push(nbO.value)}if(GE.excludeAudioTrackIndices){wc.excludeAudioTrackIndices=[];for(var Vp8=g.r(GE.excludeAudioTrackIndices),LHs=Vp8.next();!LHs.done;LHs=Vp8.next())wc.excludeAudioTrackIndices.push(LHs.value)}this.Zw.push(wc)}this.QG=[];if(eF.defaultTranslationSourceTrackIndices)for(var GXD=g.r(eF.defaultTranslationSourceTrackIndices),d5D=GXD.next();!d5D.done;d5D=GXD.next())this.QG.push(d5D.value); +this.QJ=!!eF.contribute&&!!eF.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.zI=Number(this.clipConfig.startTimeMs)*.001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&qGD(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var nMD;this.compositeLiveIngestionOffsetToken= +(nMD=this.playerResponse.playbackTracking)==null?void 0:nMD.compositeLiveIngestionOffsetToken;var LN8;this.compositeLiveStatusToken=(LN8=this.playerResponse.playbackTracking)==null?void 0:LN8.compositeLiveStatusToken}KW(this,X);X.queue_info&&(this.queueInfo=X.queue_info);var dhw=X.hlsdvr;dhw!=null&&(this.allowLiveDvr=Number(dhw)===1?Vm()?!0:ce&&Pr<5?!1:!0:!1);this.adQueryId=X.ad_query_id||null;this.BL||(this.BL=X.encoded_ad_safety_reason||null);this.PA=X.agcid||null;this.NP=X.ad_id||null;this.mI= +X.ad_sys||null;this.C0=X.encoded_ad_playback_context||null;this.Og=ye(this.Og,X.infringe||X.muted);this.Ya=X.authkey;this.Dm2=X.authuser;this.mutedAutoplay=ye(this.mutedAutoplay,X&&X.playmuted);this.mutedAutoplayDurationMode=Aj(this.mutedAutoplayDurationMode,X&&X.muted_autoplay_duration_mode);this.wp=ye(this.wp,X&&X.mutedautoplay);var xk=X.length_seconds;xk&&(this.lengthSeconds=typeof xk==="string"?GV(xk):xk);if(this.isAd()||this.xq||!g.$3(g.IT(this.Fh)))this.endSeconds=Aj(this.endSeconds,this.Lc|| +X.end||X.endSeconds);else{var Bak=g.IT(this.Fh),vo=this.lengthSeconds;switch(Bak){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":vo>30?this.limitedPlaybackDurationInSeconds=30:vo<30&&vo>10&&(this.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=vo*.2}}this.Pl=Y3(this.Pl,X.itct);this.In=ye(this.In,X.noiba);this.LQ=ye(this.LQ,X.is_live_destination);this.isLivePlayback=ye(this.isLivePlayback,X.live_playback); +this.enableServerStitchedDai=this.enableServerStitchedDai&&this.ZQ();X.isUpcoming&&(this.isUpcoming=ye(this.isUpcoming,X.isUpcoming));this.bf=ye(this.bf,X.post_live_playback);this.wy&&(this.bf=!1);this.isMdxPlayback=ye(this.isMdxPlayback,X.mdx);var kk=X.mdx_control_mode;kk&&(this.mdxControlMode=typeof kk==="number"?kk:GV(kk));this.isInlinePlaybackNoAd=ye(this.isInlinePlaybackNoAd,X.is_inline_playback_no_ad);this.G2=Aj(this.G2,X.reload_count);this.reloadReason=Y3(this.reloadReason,X.reload_reason); +this.Po=ye(this.Po,X.show_content_thumbnail);this.ZB=ye(this.ZB,X.utpsa);this.cycToken=X.cyc||null;this.Z1=X.tkn||null;var yK8=Ef(X);Object.keys(yK8).length>0&&(this.C=yK8);this.A7=Y3(this.A7,X.vvt);this.mdxEnvironment=Y3(this.mdxEnvironment,X.mdx_environment);X.source_container_playlist_id&&(this.sourceContainerPlaylistId=X.source_container_playlist_id);X.serialized_mdx_metadata&&(this.serializedMdxMetadata=X.serialized_mdx_metadata);this.L5=X.osig;this.eventId||(this.eventId=X.eventid);this.osid|| +(this.osid=X.osid);this.playlistId=Y3(this.playlistId,X.list);X.index&&(this.playlistIndex=this.playlistIndex===void 0?Aj(0,X.index):Aj(this.playlistIndex,X.index));this.Nw=X.pyv_view_beacon_url;this.Z5=X.pyv_quartile25_beacon_url;this.YH=X.pyv_quartile50_beacon_url;this.j2=X.pyv_quartile75_beacon_url;this.qk=X.pyv_quartile100_beacon_url;var h71=X.session_data;!this.LT&&h71&&(this.LT=L1(h71,"&").feature);this.isFling=Aj(this.isFling?1:0,X.is_fling)===1;this.vnd=Aj(this.vnd,X.vnd);this.forceAdsUrl= +Y3(this.forceAdsUrl,X.force_ads_url);this.hf=Y3(this.hf,X.ctrl);this.fY=Y3(this.fY,X.ytr);this.Cu=X.ytrcc;this.hq=X.ytrexp;this.uq=X.ytrext;this.Od=Y3(this.Od,X.adformat);this.qj=Y3(this.qj,X.attrib);this.slotPosition=Aj(this.slotPosition,X.slot_pos);this.breakType=X.break_type;this.Lw=ye(this.Lw,X.ssrt);this.videoId=He(X)||this.videoId;this.B=Y3(this.B,X.vss_credentials_token);this.P5=Y3(this.P5,X.vss_credentials_token_type);this.MJ=ye(this.MJ,X.audio_only);this.qE=ye(this.qE,X.aac_high);this.kZ= +ye(this.kZ,X.prefer_low_quality_audio);this.iq=ye(this.iq,X.uncap_inline_quality);this.S("html5_enable_qoe_cat_list")?X.qoe_cat&&(this.CN=this.CN.concat(X.qoe_cat.split(","))):this.cz=Y3(this.cz,X.qoe_cat);this.v5=ye(this.v5,X.download_media);var AKs=X.prefer_gapless;this.T=AKs!=null?ye(this.T,AKs):this.T?this.T:this.Fh.preferGapless&&this.Fh.supportsGaplessShorts();S$l(this.playerResponse)&&this.NW.push("ad");var YUl=X.adaptive_fmts;YUl&&(this.adaptiveFormats=YUl,this.Oy("adpfmts",{},!0));var jP8= +X.allow_embed;jP8&&(this.allowEmbed=Number(jP8)===1);var HDl=X.backgroundable;HDl&&(this.backgroundable=Number(HDl)===1);var alO=X.autonav;alO&&(this.isAutonav=Number(alO)===1);var $hl=X.autoplay;$hl&&(this.Tx=this.QB=Number($hl)===1,GT(this,"c"));var WND=X.iv_load_policy;WND&&(this.annotationsLoadPolicy=hj(this.annotationsLoadPolicy,WND,N7));var wCs=X.cc_lang_pref;wCs&&(this.captionsLanguagePreference=Y3(wCs,this.captionsLanguagePreference));var FNO=X.cc_load_policy;FNO&&(this.Um=hj(this.Um,FNO, +N7));var EM2;this.deviceCaptionsOn=(EM2=X.device_captions_on)!=null?EM2:void 0;var rKs;this.Zi=(rKs=X.device_captions_lang_pref)!=null?rKs:"";var QPU;this.nt=(QPU=X.viewer_selected_caption_langs)!=null?QPU:[];if(!this.S("html5_enable_ssap_entity_id")){var ZD2=X.cached_load;ZD2&&(this.Re=ye(this.Re,ZD2))}if(X.dash==="0"||X.dash===0||X.dash===!1)this.Em=!0;var xht=X.dashmpd;xht&&(this.gm=g.KB(xht,{cpn:this.clientPlaybackNonce}));var vMU=X.delay;vMU&&(this.EM=GV(vMU));var yND=this.Lc||X.end;if(this.pM? +yND!=null:yND!=void 0)this.clipEnd=Aj(this.clipEnd,yND);var kXw=X.fmt_list;kXw&&(this.Mf=kXw);X.heartbeat_preroll&&this.NW.push("heartbeat");this.mE=-Math.floor(Math.random()*10);this.UI=-Math.floor(Math.random()*40);var oMl=X.is_listed;oMl&&(this.isListed=ye(this.isListed,oMl));var e7t=X.is_private;e7t&&(this.isPrivate=ye(this.isPrivate,e7t));var JKl=X.is_dni;JKl&&(this.O5=ye(this.O5,JKl));var mhD=X.dni_color;mhD&&(this.Ps=Y3(this.Ps,mhD));var R7D=X.pipable;R7D&&(this.pipable=ye(this.pipable,R7D)); +this.JI=(this.r3=this.pipable&&this.Fh.zf)&&!this.Fh.showMiniplayerButton;var bD8=X.paid_content_overlay_duration_ms;bD8&&(this.paidContentOverlayDurationMs=GV(bD8));var tpt=X.paid_content_overlay_text;tpt&&(this.paidContentOverlayText=tpt);var ODO=X.url_encoded_fmt_stream_map;ODO&&(this.jL=ODO);var lls=X.hls_formats;lls&&(this.hlsFormats=lls);var Mp8=X.hlsvp;Mp8&&(this.hlsvp=Mp8);var oz=X.live_start_walltime;oz&&(this.ek=typeof oz==="number"?oz:GV(oz));var er=X.live_manifest_duration;er&&(this.Rg= +typeof er==="number"?er:GV(er));var gMO=X.player_params;gMO&&(this.playerParams=gMO);var fll=X.partnerid;fll&&(this.partnerId=Aj(this.partnerId,fll));var pCt=X.probe_url;pCt&&(this.probeUrl=yn(g.KB(pCt,{cpn:this.clientPlaybackNonce})));var hr1=X.pyv_billable_url;hr1&&yyO(hr1)&&(this.TZ=hr1);var AN8=X.pyv_conv_url;AN8&&yyO(AN8)&&(this.ZN=AN8);mzt(this,X);this.startSeconds>0?this.S("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.zI||this.oX||X.start||X.startSeconds)&&this.Oy("lss", +{css:this.startSeconds,pcss:this.zI,iss:this.oX,ps:X.start||void 0,pss:X.startSeconds||void 0}):this.Ly=this.startSeconds=Aj(this.startSeconds,this.zI||this.oX||X.start||X.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var Ill=X.live_utc_start;if(Ill!=null)this.liveUtcStartSeconds=Number(Ill);else{var YzL=this.startSeconds;YzL&&isFinite(YzL)&&YzL>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var N38=X.utc_start_millis; +N38&&(this.liveUtcStartSeconds=Number(N38)*.001)}var Uhl=X.stream_time_start_millis;Uhl&&(this.ON=Number(Uhl)*.001);var jml=this.oX||X.start;(this.pM?jml==null||Number(X.resume)===1:jml==void 0||X.resume=="1")||this.isLivePlayback||(this.clipStart=Aj(this.clipStart,jml));var T3l=X.url_encoded_third_party_media;T3l&&(this.xo=h3(T3l));var H0s=X.ypc_offer_button_formatted_text;if(H0s){var uf2=JSON.parse(H0s);this.gp=uf2!=null?uf2:null;this.a_=H0s}var PTO=X.ypc_offer_button_text;PTO&&(this.Dn=PTO);var z7D= +X.ypc_offer_description;z7D&&(this.zf=z7D);var B3O=X.ypc_offer_headline;B3O&&(this.ez=B3O);var KNj=X.ypc_full_video_message;KNj&&(this.dn=KNj);var sP1=X.ypc_offer_id;sP1&&(this.wu=sP1);var CTD=X.ypc_buy_url;CTD&&(this.OI=CTD);var DhO=X.ypc_item_thumbnail;DhO&&(this.G5=DhO);var SU8=X.ypc_item_title;SU8&&(this.fW=SU8);var iDU=X.ypc_item_url;iDU&&(this.h2=iDU);var qUO=X.ypc_vid;qUO&&(this.DD=qUO);X.ypc_overlay_timeout&&(this.VB=Number(X.ypc_overlay_timeout));var X2s=X.ypc_trailer_player_vars;X2s&&(this.tJ= +y8(X2s));var cAD=X.ypc_original_itct;cAD&&(this.hg=cAD);this.F7=Y3(this.F7,X.ucid);X.baseUrl&&(this.D.baseUrl=X.baseUrl);X.uid&&(this.D.uid=X.uid);X.oeid&&(this.D.oeid=X.oeid);X.ieid&&(this.D.ieid=X.ieid);X.ppe&&(this.D.ppe=X.ppe);X.engaged&&(this.D.engaged=X.engaged);X.subscribed&&(this.D.subscribed=X.subscribed);this.D.focEnabled=ye(this.D.focEnabled,X.focEnabled);this.D.rmktEnabled=ye(this.D.rmktEnabled,X.rmktEnabled);this.cq=X.storyboard_spec||null;this.qn=X.live_storyboard_spec||null;this.lx= +X.iv_endscreen_url||null;this.MB=ye(this.MB,X.ypc_license_checker_module);this.JZ=ye(this.JZ,X.ypc_module);this.l_=ye(this.l_,X.ypc_clickwrap_module);this.JZ&&this.NW.push("ypc");this.l_&&this.NW.push("ypc_clickwrap");this.Rf={video_id:X.video_id,eventid:X.eventid,cbrand:X.cbrand,cbr:X.cbr,cbrver:X.cbrver,c:X.c,cver:X.cver,ctheme:X.ctheme,cplayer:X.cplayer,cmodel:X.cmodel,cnetwork:X.cnetwork,cos:X.cos,cosver:X.cosver,cplatform:X.cplatform,user_age:X.user_age,user_display_image:X.user_display_image, +user_display_name:X.user_display_name,user_gender:X.user_gender,csi_page_type:X.csi_page_type,csi_service_name:X.csi_service_name,enablecsi:X.enablecsi,enabled_engage_types:X.enabled_engage_types};vls(this,X);var Vxt=X.cotn;Vxt&&(this.cotn=Vxt);if(T8l(this))YB(this)&&(this.isLivePlayback&&this.gm&&(this.tf=!0),this.T_&&(this.qc=!0));else if(uH2(this))this.tf=!0;else{var GHj,nO2,LgD=((GHj=this.playerResponse)==null?void 0:(nO2=GHj.streamingData)==null?void 0:nO2.adaptiveFormats)||[];if(LgD.length> +0)var mR=UzO(this,LgD);else{var ddU=this.adaptiveFormats;if(ddU&&!YB(this)){jj(this,"html5_enable_cobalt_experimental_vp9_decoder")&&(RE=!0);var ny=Eq(ddU),auD=this.r$,yAS=this.lengthSeconds,KX7=this.isLivePlayback,R2=this.bf,Ly=this.Fh,sLG=D1j(ny);if(KX7||R2){var hPl=Ly==null?void 0:Ly.experiments,ps=new $F("",hPl,!0);ps.ZQ=!0;ps.isManifestless=!0;ps.G=!R2;ps.isLive=!R2;ps.bf=R2;for(var AAU=g.r(ny),$5s=AAU.next();!$5s.done;$5s=AAU.next()){var dH=$5s.value,YkU=EX(dH,auD),F6=rf(dH.url,dH.sp,dH.s), +jYS=F6.get("id");jYS&&jYS.includes("%7E")&&(ps.C=!0);var HGj=void 0,CHr=(HGj=hPl)==null?void 0:HGj.lc("html5_max_known_end_time_rebase"),DKA=Number(dH.target_duration_sec)||5,Sa_=Number(dH.max_dvr_duration_sec)||14400,aAD=Number(F6.get("mindsq")||F6.get("min_sq")||"0"),$d1=Number(F6.get("maxdsq")||F6.get("max_sq")||"0")||Infinity;ps.uH=ps.uH||aAD;ps.HE=ps.HE||$d1;var iKV=!ys(YkU.mimeType);F6&&jt(ps,new i$(F6,YkU,{MY:DKA,e7:iKV,GP:Sa_,uH:aAD,HE:$d1,EG:300,bf:R2,vk:CHr}))}var Wg1=ps}else{if(sLG==="FORMAT_STREAM_TYPE_OTF"){var JR= +yAS;JR=JR===void 0?0:JR;var yi=new $F("",Ly==null?void 0:Ly.experiments,!1);yi.duration=JR||0;for(var w21=g.r(ny),WHU=w21.next();!WHU.done;WHU=w21.next()){var h6=WHU.value,w1U=EX(h6,auD,yi.duration),FHD=rf(h6.url,h6.sp,h6.s);if(FHD)if(w1U.streamType==="FORMAT_STREAM_TYPE_OTF")jt(yi,new qQ(FHD,w1U,"sq/0"));else{var qaV=b$(h6.init),X3z=b$(h6.index);jt(yi,new hF(FHD,w1U,qaV,X3z))}}yi.isOtf=!0;var Fgt=yi}else{var mv=yAS;mv=mv===void 0?0:mv;var Rz=new $F("",Ly==null?void 0:Ly.experiments,!1);Rz.duration= +mv||0;for(var EOl=g.r(ny),Eb1=EOl.next();!Eb1.done;Eb1=EOl.next()){var A6=Eb1.value,c3r=EX(A6,auD,Rz.duration),V4k=b$(A6.init),Gxt=b$(A6.index),rAt=rf(A6.url,A6.sp,A6.s);rAt&&jt(Rz,new hF(rAt,c3r,V4k,Gxt))}Fgt=Rz}Wg1=Fgt}var QY2=Wg1;if(ny.length>0){var ZGw=ny[0];if(this.j().playerStyle==="hangouts-meet"&&ZGw.url){var nPV=g.A3(ZGw.url);this.sY=this.sY||Number(nPV.expire)}}var LpA=this.isLivePlayback&&!this.bf&&!this.wy&&!this.isPremiere;this.S("html5_live_head_playable")&&(!HJ(this)&&LpA&&this.Oy("missingLiveHeadPlayable", +{}),this.Fh.G_==="yt"&&(QY2.LS=!0));mR=QY2}else mR=null;this.Oy("pafmts",{isManifestFilled:!!mR})}if(mR){WJ(this,mR);var xdl=!0}else xdl=!1;xdl?this.enableServerStitchedDai=this.enableServerStitchedDai&&av(this):this.gm&&(this.Fh.G_==="yt"&&this.ZQ()&&this.S("drm_manifestless_unplugged")&&this.S("html5_deprecate_manifestful_fallback")?this.Oy("deprecateMflFallback",{}):this.tf=!0)}var rNO=X.adpings;rNO&&(this.vL=rNO?y8(rNO):null);var vO1=X.feature;vO1&&(this.UY=vO1);var kHs=X.referrer;kHs&&(this.referrer= +kHs);this.clientScreenNonce=Y3(this.clientScreenNonce,X.csn);this.Zl=Aj(this.Zl,X.root_ve_type);this.Jc=Aj(this.Jc,X.kids_age_up_mode);this.pM||X.kids_app_info==void 0||(this.kidsAppInfo=X.kids_app_info);this.pM&&X.kids_app_info!=null&&(this.kidsAppInfo=X.kids_app_info);this.Zn=ye(this.Zn,X.upg_content_filter_mode);this.unpluggedFilterModeType=Aj(this.unpluggedFilterModeType,X.unplugged_filter_mode_type);var oOO=X.unplugged_location_info;oOO&&(this.G_=oOO);var ePL=X.unplugged_partner_opt_out;ePL&& +(this.ID=Y3("",ePL));this.pu=ye(this.pu,X.disable_watch_next);this.KW=Y3(this.KW,X.internal_ip_override);this.YP=!!X.is_yto_interstitial;(this.interstitials.length||this.YP)&&this.NW.push("yto");var JAD=X.V6;JAD&&(this.V6=JAD);var mdD;this.YO=(mdD=X.csi_timer)!=null?mdD:"";this.wV=!!X.force_gvi;X.watchUrl&&(this.watchUrl=X.watchUrl);var Ex=X.watch_endpoint;this.S("html5_attach_watch_endpoint_ustreamer_config")&&Ex&&Irt(this,Ex);if(Ex==null?0:Ex.ustreamerConfig)this.nW=hq(Ex.ustreamerConfig);var RPs, +bG8,txl=Ex==null?void 0:(RPs=Ex.loggingContext)==null?void 0:(bG8=RPs.qoeLoggingContext)==null?void 0:bG8.serializedContextData;txl&&(this.lR=txl);g.RT(this.Fh)&&this.Fh.UQ&&(this.embedsRct=Y3(this.embedsRct,X.rct),this.embedsRctn=Y3(this.embedsRctn,X.rctn));this.UQ=this.UQ||!!X.pause_at_start;X.default_active_source_video_id&&(this.defaultActiveSourceVideoId=X.default_active_source_video_id)}; +g.y.j=function(){return this.Fh}; +g.y.S=function(X){return this.Fh.S(X)}; +g.y.tP=function(){return!this.isLivePlayback||this.allowLiveDvr}; +g.y.hasSupportedAudio51Tracks=function(){var X;return!((X=this.bH)==null||!X.o2)}; +g.y.getUserAudio51Preference=function(){var X=1;iY(this.Fh)&&this.S("html5_ytv_surround_toggle_default_off")?X=0:g.CL(this.Fh)&&this.isLivePlayback&&this.PE()&&(X=0);var c;return(c=g.Il("yt-player-audio51"))!=null?c:X}; +g.y.lL=function(){this.vl()||(this.J.G||this.J.unsubscribe("refresh",this.lL,this),this.Jo(-1))}; +g.y.Jo=function(X){if(!this.isLivePlayback||!this.Z||this.Z.flavor!=="fairplay"){var c=iut(this.J,this.Sk);if(c.length>0){for(var V=g.r(c),G=V.next();!G.done;G=V.next())G=G.value,G.startSecs=Math.max(G.startSecs,this.Qg()),this.S("html5_cuepoint_identifier_logging")&&G.event==="start"&&this.Oy("cuepoint",{pubCue:G.identifier,segNum:X});this.publish("cuepointupdated",c,X);this.Sk+=c.length;if(av(this)&&this.Fh.YU())for(c=g.r(c),V=c.next();!V.done;V=c.next())V=V.value,this.Oy("cuepoint",{segNum:X,event:V.event, +startSecs:V.startSecs,id:V.identifier.slice(-16)}),V.event==="start"&&(V=V.startSecs,this.P8.start=this.LS,this.P8.end=V+3)}}}; +g.y.J8=function(){this.vl()||(this.loading=!1,this.publish("dataloaded"))}; +g.y.PE=function(){return this.t2!==void 0?this.t2:this.t2=!!this.r$||!!this.J&&FT(this.J)}; +g.y.Q$=function(X){var c=this;if(this.vl())return f1();this.Wg=this.o2=this.U=null;jj(this,"html5_high_res_logging_always")&&(this.Fh.YM=!0);return KR8(this,X).then(void 0,function(){return CSl(c,X)}).then(void 0,function(){return DzS(c)}).then(void 0,function(){return iAD(c)})}; +g.y.KI=function(X){this.U=X;s2D(this,this.U.getAvailableAudioTracks());if(this.U){X=g.r(this.U.videoInfos);for(var c=X.next();!c.done;c=X.next()){c=c.value;var V=c.containerType;V!==0&&(this.Sl[V]=c.id)}}ov(this);if(this.Z&&this.U&&this.U.videoInfos&&!(this.U.videoInfos.length<=0)&&(X=Gz(this.U.videoInfos[0]),this.Z.flavor==="fairplay"!==X))for(c=g.r(this.VX),V=c.next();!V.done;V=c.next())if(V=V.value,X===(V.flavor==="fairplay")){this.Z=V;break}}; +g.y.a$=function(){if(this.cotn)return null;var X=g.bL(this.Fh)||this.S("web_l3_storyboard");if(!this.Gz)if(this.playerResponse&&this.playerResponse.storyboards){var c=this.playerResponse.storyboards,V=c.playerStoryboardSpecRenderer;V&&V.spec?this.Gz=new Uf(V.spec,this.lengthSeconds,void 0,!1,X):(c=c.playerLiveStoryboardSpecRenderer)&&c.spec&&this.J&&(V=zA1(this.J.J).index)&&(this.Gz=new uj(c.spec,this.J.isLive,V,X))}else this.cq?this.Gz=new Uf(this.cq,this.lengthSeconds,void 0,!1,X):this.qn&&this.J&& +(c=zA1(this.J.J).index)&&(this.Gz=new uj(this.qn,this.J.isLive,c,X));return this.Gz}; +g.y.getStoryboardFormat=function(){if(this.cotn)return null;if(this.playerResponse&&this.playerResponse.storyboards){var X=this.playerResponse.storyboards;return(X=X.playerStoryboardSpecRenderer||X.playerLiveStoryboardSpecRenderer)&&X.spec||null}return this.cq||this.qn}; +g.y.SQ=function(){return this.J&&!isNaN(this.J.SQ())?this.J.SQ():av(this)?0:this.lengthSeconds}; +g.y.Qg=function(){return this.J&&!isNaN(this.J.Qg())?this.J.Qg():0}; +g.y.getPlaylistSequenceForTime=function(X){if(this.J&&this.G){var c=this.J.J[this.G.id];if(!c)return null;var V=c.index.gJ(X);c=c.index.getStartTime(V);return{sequence:V,elapsed:Math.floor((X-c)*1E3)}}return null}; +g.y.d$=function(){return!this.vl()&&!(!this.videoId&&!this.xo)}; +g.y.wF=function(){var X,c,V;return!!this.adaptiveFormats||!!((X=this.playerResponse)==null?0:(c=X.streamingData)==null?0:(V=c.adaptiveFormats)==null?0:V.length)}; +g.y.isLoaded=function(){return Bp(this)&&!this.tf&&!this.qc}; +g.y.xz=function(X){X||(X="hqdefault.jpg");var c=this.C[X];return c||this.Fh.A7||X==="pop1.jpg"||X==="pop2.jpg"||X==="sddefault.jpg"||X==="hq720.jpg"||X==="maxresdefault.jpg"?c:KL(this.Fh,this.videoId,X)}; +g.y.ZQ=function(){return this.isLivePlayback||this.bf||this.wy||!(!this.liveUtcStartSeconds||!this.Rg)}; +g.y.isOtf=function(){return!!this.J&&(this.J.isOtf||!this.bf&&!this.isLivePlayback&&this.J.G)}; +g.y.getAvailableAudioTracks=function(){return this.U?this.U.getAvailableAudioTracks().length>0?this.U.getAvailableAudioTracks():this.AJ||[]:[]}; +g.y.getAudioTrack=function(){var X=this;if(this.X&&!Gz(this.X))return g.Ct(this.getAvailableAudioTracks(),function(G){return G.id===X.X.id})||this.SU; +if(this.AJ){if(!this.eB)for(var c=g.r(this.AJ),V=c.next();!V.done;V=c.next())if(V=V.value,V.zF.getIsDefault()){this.eB=V;break}return this.eB||this.SU}return this.SU}; +g.y.getPlayerResponse=function(){return this.playerResponse}; +g.y.getWatchNextResponse=function(){return this.QK}; +g.y.getHeartbeatResponse=function(){return this.oA}; +g.y.nK=function(){return this.watchUrl?this.watchUrl:this.Fh.getVideoUrl(this.videoId)}; +g.y.JH=function(){return!!this.J&&(Tqw(this.J)||uNt(this.J)||PXD(this.J))}; +g.y.getEmbeddedPlayerResponse=function(){return this.Yy}; +g.y.rW=function(){return(this.eventLabel||this.Fh.Pl)==="shortspage"}; +g.y.isAd=function(){return this.EX||!!this.adFormat}; +g.y.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; +g.y.JT=function(){var X,c,V;return this.isDaiEnabled()&&!!((X=this.playerResponse)==null?0:(c=X.playerConfig)==null?0:(V=c.daiConfig)==null?0:V.ssaEnabledPlayback)}; +g.y.FH=function(){return ros(this)?this.Tp:this.MB||this.Pb}; +g.y.gA=function(){return this.JZ||this.Pb}; +g.y.xs=function(){return jj(this,"html5_samsung_vp9_live")}; +g.y.Oy=function(X,c,V){this.publish("ctmp",X,c,V)}; +g.y.l0=function(X,c,V){this.publish("ctmpstr",X,c,V)}; +g.y.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; +g.y.getGetAdBreakContext=function(X,c){X=X===void 0?NaN:X;c=c===void 0?NaN:c;var V={isSabr:yu(this)},G,n=(G=this.getHeartbeatResponse())==null?void 0:G.adBreakHeartbeatParams;n&&(V.adBreakHeartbeatParams=n);if(this.S("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.J&&!isNaN(X)&&!isNaN(c)){c=X-c;for(var L in this.J.J)if(G=this.J.J[L],G.info.EN()||G.info.oi())if(G=G.index,G.isLoaded()){L=G.gJ(c);G=G.Tm(L)+c-G.getStartTime(L);this.Oy("gabc",{t:X.toFixed(3),mt:c.toFixed(3),sg:L,igt:G.toFixed(3)}); +V.livePlaybackPosition={utcTimeMillis:""+(G*1E3).toFixed(0)};break}}return V}; +g.y.isEmbedsShortsMode=function(X,c){if(!g.RT(this.Fh))return!1;var V;if(!this.S("embeds_enable_emc3ds_shorts")&&((V=this.Fh.getWebPlayerContextConfig())==null?0:V.embedsEnableEmc3ds)||(this.Fh.NW||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||c)return!1;var G,n;return!!(((G=this.embeddedPlayerConfig)==null?0:(n=G.embeddedPlayerFlags)==null?0:n.isShortsExperienceEligible)&&X.width<=X.height)}; +g.y.R2=function(){g.$T.prototype.R2.call(this);this.vL=null;delete this.SD;delete this.accountLinkingConfig;delete this.J;this.U=this.oA=this.playerResponse=this.QK=null;this.jL=this.adaptiveFormats="";delete this.botguardData;this.hX=this.suggestions=this.cL=null;this.sabrContextUpdates.clear()};var eXw={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},JoS={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},kPs={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},Zml={0:"YT_KIDS_AGE_UP_MODE_UNKNOWN",1:"YT_KIDS_AGE_UP_MODE_OFF",2:"YT_KIDS_AGE_UP_MODE_TWEEN",3:"YT_KIDS_AGE_UP_MODE_PRESCHOOL"},vIt={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},xIw={0:"UNPLUGGED_FILTER_MODE_TYPE_UNKNOWN",1:"UNPLUGGED_FILTER_MODE_TYPE_NONE",2:"UNPLUGGED_FILTER_MODE_TYPE_PG", +3:"UNPLUGGED_FILTER_MODE_TYPE_PG_THIRTEEN"},oIO={0:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_UNSPECIFIED",1:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_30_SECONDS",2:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_FULL"};g.E(yf,g.I);g.y=yf.prototype;g.y.handleExternalCall=function(X,c,V){var G=this.state.D[X],n=this.state.T[X],L=G;if(n)if(V&&Ge(V,zAU))L=n;else if(!G)throw Error('API call from an untrusted origin: "'+V+'"');this.logApiCall(X,V);if(L){V=!1;G=g.r(c);for(n=G.next();!n.done;n=G.next())if(String(n.value).includes("javascript:")){V=!0;break}V&&g.UQ(Error('Dangerous call to "'+X+'" with ['+c+"]."));return L.apply(this,c)}throw Error('Unknown API method: "'+X+'".');}; +g.y.logApiCall=function(X,c,V){var G=this.app.j();G.oX&&!this.state.C.has(X)&&(this.state.C.add(X),g.a0("webPlayerApiCalled",{callerUrl:G.loaderUrl,methodName:X,origin:c||void 0,playerStyle:G.playerStyle||void 0,embeddedPlayerMode:G.NW,errorCode:V}))}; +g.y.publish=function(X){var c=g.OD.apply(1,arguments);this.state.U.publish.apply(this.state.U,[X].concat(g.x(c)));if(X==="videodatachange"||X==="resize"||X==="cardstatechange")this.state.G.publish.apply(this.state.G,[X].concat(g.x(c))),this.state.X.publish.apply(this.state.X,[X].concat(g.x(c)))}; +g.y.z_=function(X){var c=g.OD.apply(1,arguments);this.state.U.publish.apply(this.state.U,[X].concat(g.x(c)));this.state.G.publish.apply(this.state.G,[X].concat(g.x(c)))}; +g.y.hT=function(X){var c=g.OD.apply(1,arguments);this.state.U.publish.apply(this.state.U,[X].concat(g.x(c)));this.state.G.publish.apply(this.state.G,[X].concat(g.x(c)));this.state.X.publish.apply(this.state.X,[X].concat(g.x(c)))}; +g.y.DL=function(X){var c=g.OD.apply(1,arguments);this.state.U.publish.apply(this.state.U,[X].concat(g.x(c)));this.state.G.publish.apply(this.state.G,[X].concat(g.x(c)));this.state.X.publish.apply(this.state.X,[X].concat(g.x(c)));this.state.Z.publish.apply(this.state.Z,[X].concat(g.x(c)))}; +g.y.S=function(X){return this.app.j().S(X)}; +g.y.R2=function(){if(this.state.element){var X=this.state.element,c;for(c in this.state.J)this.state.J.hasOwnProperty(c)&&(X[c]=null);this.state.element=null}g.I.prototype.R2.call(this)};g.E(HO,g.Rb);HO.prototype.publish=function(X){var c=g.OD.apply(1,arguments);if(this.Z.has(X))return this.Z.get(X).push(c),!0;var V=!1;try{for(c=[c],this.Z.set(X,c);c.length;)V=g.Rb.prototype.publish.call.apply(g.Rb.prototype.publish,[this,X].concat(g.x(c.shift())))}finally{this.Z.delete(X)}return V};g.E(ax,g.I);ax.prototype.R2=function(){this.Z.dispose();this.X.dispose();this.G.dispose();this.U.dispose();this.C=this.J=this.T=this.D=this.B=void 0};var M0S=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.E(WO,yf);g.y=WO.prototype;g.y.getApiInterface=function(){return Array.from(this.state.B)}; +g.y.jT=function(X,c){this.state.Z.subscribe(X,c)}; +g.y.tLc=function(X,c){this.state.Z.unsubscribe(X,c)}; +g.y.getPlayerState=function(X){return Vit(this.app,X)}; +g.y.OSy=function(){return Vit(this.app)}; +g.y.VLR=function(X,c,V){EN(this)&&(ME(this.app,!0,1),pq(this.app,X,c,V,1))}; +g.y.getCurrentTime=function(X,c,V){var G=this.getPlayerState(X);if(this.app.getAppState()===2&&G===5){var n;return((n=this.app.getVideoData())==null?void 0:n.startSeconds)||0}return this.S("web_player_max_seekable_on_ended")&&G===0?iV1(this.app,X):X?this.app.getCurrentTime(X,c,V):this.app.getCurrentTime(X)}; +g.y.ji=function(){return this.app.getCurrentTime(1)}; +g.y.Kp=function(){var X=this.app.Tm(1);return isNaN(X)?this.getCurrentTime(1):X}; +g.y.zg=function(){return this.app.getDuration(1)}; +g.y.G1=function(X,c){X=g.am(Math.floor(X),0,100);isFinite(X)&&Jb(this.app,{volume:X,muted:this.isMuted()},c)}; +g.y.aOR=function(X){this.G1(X,!1)}; +g.y.NA=function(X){Jb(this.app,{muted:!0,volume:this.getVolume()},X)}; +g.y.CBS=function(){this.NA(!1)}; +g.y.Di=function(X){Fs(this.app)&&!this.S("embeds_enable_emc3ds_muted_autoplay")||Jb(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},X)}; +g.y.GxS=function(){Fs(this.app)&&this.S("embeds_enable_emc3ds_muted_autoplay")||this.Di(!1)}; +g.y.getPlayerMode=function(){var X={};this.app.getVideoData().O5&&(X.pfp={enableIma:g.Vf(this.app.getVideoData())&&this.app.Vg().allowImaMonetization,autoplay:NO(this.app.Vg()),mutedAutoplay:this.app.Vg().mutedAutoplay});return X}; +g.y.Au=function(){var X=this.app.getPresentingPlayerType();if(X===2&&!this.app.Jb()){var c=JP(this.app.X2());if(!csM(c)||VD_(c))return}X===3?Rx(this.app.X2()).t3("control_play"):this.app.j().S("html5_ssap_ignore_play_for_ad")&&g.CW(this.app.Vg())&&X===2||this.app.playVideo(X)}; +g.y.Kl7=function(){ME(this.app,!0,1);this.Au()}; +g.y.pauseVideo=function(X){var c=this.app.getPresentingPlayerType();if(c!==2||this.app.Jb()||csM(JP(this.app.X2())))c===3?Rx(this.app.X2()).t3("control_pause"):this.app.pauseVideo(c,X)}; +g.y.pbR=function(){var X=this.app,c=!1;X.qW.G2&&(X.DR.publish("pageTransition"),c=!0);X.stopVideo(c)}; +g.y.clearVideo=function(){}; +g.y.getAvailablePlaybackRates=function(){var X=this.app.j();return X.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(X.X?X.ancestorOrigins[0]:window.location.origin)||X.qc?QAV:X.supportsVarispeedExtendedFeatures?ZYh:X.S("web_remix_allow_up_to_3x_playback_rate")&&g.uG(X)?xuk:kn:[1]}; +g.y.getPlaybackQuality=function(X){return(X=this.app.sM(X))?X.getPlaybackQuality():"unknown"}; +g.y.RM_=function(){}; +g.y.getAvailableQualityLevels=function(X){return(X=this.app.sM(X))?(X=g.Rt(X.gV(),function(c){return c.quality}),X.length&&(X[0]==="auto"&&X.shift(),X=X.concat(["auto"])),X):[]}; +g.y.Tg=function(){return this.getAvailableQualityLevels(1)}; +g.y.UWh=function(){return this.Yf()}; +g.y.Xly=function(){return 1}; +g.y.getVideoLoadedFraction=function(X){return this.app.getVideoLoadedFraction(X)}; +g.y.Yf=function(){return this.getVideoLoadedFraction()}; +g.y.IRR=function(){return 0}; +g.y.getSize=function(){var X=this.app.CS().getPlayerSize();return{width:X.width,height:X.height}}; +g.y.setSize=function(){this.app.CS().resize()}; +g.y.loadVideoById=function(X,c,V,G){if(!X)return!1;X=$z(X,c,V);return this.app.loadVideoByPlayerVars(X,G)}; +g.y.wPR=function(X,c,V){X=this.loadVideoById(X,c,V,1);ME(this.app,X,1)}; +g.y.cueVideoById=function(X,c,V,G){X=$z(X,c,V);this.app.cueVideoByPlayerVars(X,G)}; +g.y.YJ=function(X,c,V){this.cueVideoById(X,c,V,1)}; +g.y.loadVideoByUrl=function(X,c,V,G){X=ly1(X,c,V);return this.app.loadVideoByPlayerVars(X,G)}; +g.y.QZh=function(X,c,V){X=this.loadVideoByUrl(X,c,V,1);ME(this.app,X,1)}; +g.y.cueVideoByUrl=function(X,c,V,G){X=ly1(X,c,V);this.app.cueVideoByPlayerVars(X,G)}; +g.y.iO=function(X,c,V){this.cueVideoByUrl(X,c,V,1)}; +g.y.NyR=function(){var X=this.app.j();if(X.A7)return"";var c=this.app.Vg(),V=void 0;c.isLivePlayback||(V=Math.floor(this.app.getCurrentTime(1)));return X.getVideoUrl(c.videoId,this.getPlaylistId()||void 0,V)}; +g.y.lr=function(){return this.app.getDebugText()}; +g.y.getVideoEmbedCode=function(){var X=this.app.j();if(X.A7)return"";var c=this.app.Vg();return X.getVideoEmbedCode(c.isPrivate?"":c.title,this.app.Vg().videoId,this.app.CS().getPlayerSize(),this.getPlaylistId()||void 0)}; +g.y.gO=function(X,c,V){return YOO(this.app,X,c,V)}; +g.y.removeCueRange=function(X){return HJw(this.app,X)}; +g.y.loadPlaylist=function(X,c,V,G){this.app.loadPlaylist(X,c,V,G)}; +g.y.vUR=function(X,c,V,G){this.loadPlaylist(X,c,V,G);ME(this.app,!0,1)}; +g.y.cuePlaylist=function(X,c,V,G){this.app.cuePlaylist(X,c,V,G)}; +g.y.nextVideo=function(X,c){this.app.nextVideo(X,c)}; +g.y.oUK=function(){this.nextVideo();ME(this.app,!0,1)}; +g.y.previousVideo=function(X){this.app.previousVideo(X)}; +g.y.XDW=function(){this.previousVideo();ME(this.app,!0,1)}; +g.y.playVideoAt=function(X){this.app.playVideoAt(X)}; +g.y.yOl=function(X){this.playVideoAt(X);ME(this.app,!0,1)}; +g.y.setShuffle=function(X){var c=this.app.getPlaylist();c&&c.setShuffle(X)}; +g.y.setLoop=function(X){var c=this.app.getPlaylist();c&&(c.loop=X)}; +g.y.A7c=function(){var X=this.app.getPlaylist();if(!X)return null;for(var c=[],V=0;V=400)if(X=this.Vg(),this.W.j().S("client_respect_autoplay_switch_button_renderer"))X=!!X.autoplaySwitchButtonRenderer;else{var c,V,G,n;X=!!((c=X.getWatchNextResponse())==null?0:(V=c.contents)==null?0:(G=V.twoColumnWatchNextResults)==null?0:(n=G.autoplay)==null?0:n.autoplay)!==!1}if(X)this.J||(this.J=!0,this.Ry(this.J),this.W.j().S("web_player_autonav_toggle_always_listen")||n0O(this), +c=this.Vg(),this.BM(c.autonavState),this.W.logVisibility(this.element,this.J));else if(this.J=!1,this.Ry(this.J),!this.W.j().S("web_player_autonav_toggle_always_listen"))for(this.W.j().S("web_player_autonav_toggle_always_listen"),c=g.r(this.G),V=c.next();!V.done;V=c.next())this.Hd(V.value)}; +g.y.BM=function(X){daj(this)?this.isChecked=X!==1:((X=X!==1)||(g.zk(),X=g.oa("web_autonav_allow_off_by_default")&&!g.Be(0,141)&&g.qK("AUTONAV_OFF_BY_DEFAULT")?!1:!g.Be(0,140)),this.isChecked=X);L5U(this)}; +g.y.onClick=function(){this.isChecked=!this.isChecked;this.W.YC(this.isChecked?2:1);L5U(this);if(daj(this)){var X=this.Vg().autoplaySwitchButtonRenderer;this.isChecked&&(X==null?0:X.onEnabledCommand)?this.W.z_("innertubeCommand",X.onEnabledCommand):!this.isChecked&&(X==null?0:X.onDisabledCommand)&&this.W.z_("innertubeCommand",X.onDisabledCommand)}this.W.logClick(this.element)}; +g.y.getValue=function(){return this.isChecked}; +g.y.Vg=function(){return this.W.getVideoData(1)};g.E(yhs,SZ);g.E(nz,g.K9);nz.prototype.onClick=function(){this.enabled&&(Lz(this,!this.checked),this.publish("select",this.checked))}; +nz.prototype.getValue=function(){return this.checked}; +nz.prototype.setEnabled=function(X){(this.enabled=X)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var Ahl=["en-CA","en","es-MX","fr-CA"];g.E(H5,nz);H5.prototype.pS=function(X){X?this.J||(this.PP.Y9(this),this.J=!0):this.J&&(this.PP.Ll(this),this.J=!1);this.J&&Lz(this,eu1())}; +H5.prototype.X=function(){g.jk(this.element,"ytp-menuitem-highlight-transition-enabled")}; +H5.prototype.U=function(X){var c=eu1();X!==c&&(c=g.zk(),s1(190,X),s1(192,!0),c.save(),this.W.z_("cinematicSettingsToggleChange",X))}; +H5.prototype.R2=function(){this.J&&this.PP.Ll(this);nz.prototype.R2.call(this)};g.E(ay,SZ);ay.prototype.updateCinematicSettings=function(X){this.J=X;var c;(c=this.menuItem)==null||c.pS(X);this.api.publish("onCinematicSettingsVisibilityChange",X)};g.E($H,SZ);$H.prototype.CV=function(X,c){c=c.clipConfig;X==="dataloaded"&&c&&c.startTimeMs!=null&&c.endTimeMs!=null&&this.api.setLoopRange({startTimeMs:Math.floor(Number(c.startTimeMs)),endTimeMs:Math.floor(Number(c.endTimeMs)),postId:c.postId,type:"clips"})};g.E(W5,SZ);W5.prototype.setCreatorEndscreenVisibility=function(X){var c;(c=tP(this.api.X2()))==null||c.Ry(X)}; +W5.prototype.J=function(X){function c(G){G==="creatorendscreen"&&(G=tP(V.api.X2()))&&G.APO(V.hideButton)} +var V=this;this.hideButton=X;this.events.L(this.api,"modulecreated",c);c("creatorendscreen")};g.E(wZ,nz);wZ.prototype.U=function(X){this.X(X?1:0)}; +wZ.prototype.G=function(){var X=this.hasDrcAudioTrack(),c=this.J()===1&&X;Lz(this,c);this.setEnabled(X)}; +wZ.prototype.R2=function(){this.PP.Ll(this);nz.prototype.R2.call(this)};g.E(FW,SZ);FW.prototype.getDrcUserPreference=function(){return this.J}; +FW.prototype.setDrcUserPreference=function(X){g.pv("yt-player-drc-pref",X,31536E3);X!==this.J&&(this.J=X,this.updateEnvironmentData(),this.G()&&this.api.QE())}; +FW.prototype.updateEnvironmentData=function(){this.api.j().LJ=this.J===1}; +FW.prototype.G=function(){var X,c,V=(X=this.api.getVideoData())==null?void 0:(c=X.U)==null?void 0:c.J;if(!V)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.S("mta_drc_mutual_exclusion_removal")){var G=this.api.getAudioTrack().zF.id;return lF(V,function(n){var L;return n.audio.J&&((L=n.zF)==null?void 0:L.id)===G})}return lF(V,function(n){var L; +return((L=n.audio)==null?void 0:L.J)===!0})};g.E(EJ,SZ);EJ.prototype.onVideoDataChange=function(){var X=this,c=this.api.getVideoData();this.api.EH("embargo",1);var V=c==null?void 0:c.xZ.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(V==null?0:V.length)?aaO(this,V.filter(function(G){return HFw(X,G)})):(c==null?0:c.cueRanges)&&aaO(this,c.cueRanges.filter(function(G){return HFw(X,G)}))}; +EJ.prototype.G=function(X){return X.embargo!==void 0}; +EJ.prototype.R2=function(){SZ.prototype.R2.call(this);this.J={}};g.E(rZ,SZ); +rZ.prototype.addEmbedsConversionTrackingParams=function(X){var c=this.api.j(),V=c.widgetReferrer,G=c.T_,n=this.J,L="",d=c.getWebPlayerContextConfig();d&&(L=d.embedsIframeOriginParam||"");V.length>0&&(X.embeds_widget_referrer=V);G.length>0&&(X.embeds_referring_euri=G);c.X&&L.length>0&&(X.embeds_referring_origin=L);d&&d.embedsFeature&&(X.feature=d.embedsFeature);n.length>0&&(c.S("embeds_web_enable_lite_experiment_control_arm_logging")?n.unshift(28572):g.$3(g.IT(c))&&n.unshift(159628),c=n.join(","),c= +g.C1()?c:g.Qk(c,4),X.source_ve_path=c);this.J.length=0};g.E($as,SZ);g.E(W5S,SZ);g.E(QS,g.I);QS.prototype.R2=function(){g.I.prototype.R2.call(this);this.J=null;this.G&&this.G.disconnect()};g.E(F5s,SZ);g.E(Zx,g.z);Zx.prototype.show=function(){g.z.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; +Zx.prototype.onVideoDataChange=function(X){var c,V,G=(c=this.api.getVideoData())==null?void 0:(V=c.getPlayerResponse())==null?void 0:V.playabilityStatus;G&&(c=E0l(G),g.B(this.api.getPlayerStateObject(),128)||X==="dataloaderror"||!c?(this.G=0,xH(this),this.hide()):(X=(c.remainingTimeSecs||0)*1E3,X>0&&(this.show(),this.updateValue("label",x0(c.label)),Qrl(this,X))))}; +Zx.prototype.R2=function(){xH(this);g.z.prototype.R2.call(this)};g.E(ZFj,SZ);g.E(v5,g.z);v5.prototype.onClick=function(){this.DR.logClick(this.element);this.DR.z_("onFullerscreenEduClicked")}; +v5.prototype.pS=function(){this.DR.isFullscreen()?this.J?this.fade.hide():this.fade.show():this.hide();this.DR.logVisibility(this.element,this.DR.isFullscreen()&&!this.J)};g.E(kH,SZ);kH.prototype.updateFullerscreenEduButtonSubtleModeState=function(X){var c;(c=this.J)!=null&&(g.ab(c.element,"ytp-fullerscreen-edu-button-subtle",X),X&&!c.G&&(c.element.setAttribute("title","Scroll for details"),kz(c.DR,c.element,c),c.G=!0))}; +kH.prototype.updateFullerscreenEduButtonVisibility=function(X){var c;(c=this.J)!=null&&(c.J=X,c.pS())};g.E(xas,g.z);g.E(o0s,SZ);g.E(oy,SZ);oy.prototype.getSphericalProperties=function(){var X=g.ON(this.api.X2());return X?X.getSphericalProperties():{}}; +oy.prototype.setSphericalProperties=function(X){if(X){var c=g.ON(this.api.X2());c&&c.setSphericalProperties(X,!0)}};g.E(eb,SZ);g.y=eb.prototype;g.y.createClientVe=function(X,c,V,G){this.api.createClientVe(X,c,V,G===void 0?!1:G)}; +g.y.createServerVe=function(X,c,V){this.api.createServerVe(X,c,V===void 0?!1:V)}; +g.y.setTrackingParams=function(X,c){this.api.setTrackingParams(X,c)}; +g.y.logClick=function(X,c){this.api.logClick(X,c)}; +g.y.logVisibility=function(X,c,V){this.api.logVisibility(X,c,V)}; +g.y.hasVe=function(X){return this.api.hasVe(X)}; +g.y.destroyVe=function(X){this.api.destroyVe(X)};var Jhs=!1;mZ.prototype.setPlaybackRate=function(X){this.playbackRate=Math.max(1,X)}; +mZ.prototype.getPlaybackRate=function(){return this.playbackRate};ln.prototype.IA=function(X){var c=g.nu(X.info.J.info,this.ZR.ZQ),V=X.info.Bl+this.X,G=X.info.startTime*1E3;if(this.policy.fS)try{G=this.policy.fS?g.Vq(X)*1E3:X.info.startTime*1E3}catch(d){Math.random()>.99&&this.logger&&(G=mS(X.J).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:X.info.u3(),encodedDataView:g.rQ(G,4)})),G=X.info.startTime*1E3}var n=X.info.clipId,L=this.policy.fS?g.ebs(X)*1E3:X.info.duration*1E3;this.policy.fS&&(G<0||L<0)&&(this.logger&&(this.logger({missingSegInfo:X.info.u3(), +startTimeMs:G,durationMs:L}),this.policy.v5||(G<0&&(G=X.info.startTime*1E3),L<0&&(L=X.info.duration*1E3))),this.policy.v5&&(G<0&&(G=X.info.startTime*1E3),L<0&&(L=X.info.duration*1E3)));return{formatId:c,Bl:V,startTimeMs:G,clipId:n,VT:L}}; +ln.prototype.RC=function(X){this.timestampOffset=X};fz.prototype.seek=function(X,c){X!==this.J&&(this.seekCount=0);this.J=X;var V=this.videoTrack.G,G=this.audioTrack.G,n=this.audioTrack.DQ,L=B11(this,this.videoTrack,X,this.videoTrack.DQ,c);c=B11(this,this.audioTrack,this.policy.gs?X:L,n,c);X=Math.max(X,L,c);this.Z=!0;this.ZR.isManifestless&&(Ual(this,this.videoTrack,V),Ual(this,this.audioTrack,G));return X}; +fz.prototype.isSeeking=function(){return this.Z}; +fz.prototype.hD=function(X){this.U=X}; +var zR1=2/24;var CIw=0;g.y=sJ.prototype;g.y.au=function(){this.C=this.now();sHl(this.Pd,this.C);this.kU.au()}; +g.y.jw=function(X,c){var V=this.policy.G?(0,g.ta)():0;Cz(this,X,c);X-this.B<10&&this.G>0||this.uG(X,c);this.kU.jw(X,c);this.policy.G&&(X=(0,g.ta)()-V,this.NE+=X,this.qE=Math.max(X,this.qE))}; +g.y.uG=function(X,c){var V=(X-this.B)/1E3,G=c-this.U;this.Ws||(Qm(this.Pd,V,G),this.Hu(V,G));this.B=X;this.U=c}; +g.y.Pz=function(){this.NW&&Das(this);this.kU.Pz()}; +g.y.gi=function(X){this.NW||(this.NW=this.Z-this.Ly+X,this.Od=this.Z,this.G2=this.D)}; +g.y.uZ=function(X,c){X=X===void 0?this.D:X;c=c===void 0?this.Z:c;this.G>0||(this.T=X,this.G=c,this.G_=this.isActive=!0)}; +g.y.b6=function(){return this.SL||2}; +g.y.Xm=function(){}; +g.y.Vd=function(){var X,c={rn:this.requestNumber,rt:(this.D-this.J).toFixed(),lb:this.Z,stall:(1E3*this.X).toFixed(),ht:(this.C-this.J).toFixed(),elt:(this.T-this.J).toFixed(),elb:this.G,d:(X=this.Pl)==null?void 0:X.ys()};this.url&&eRw(c,this.url);this.policy.G&&(c.mph=this.qE.toFixed(),c.tph=this.NE.toFixed());c.ulb=this.wy;c.ult=this.A7;c.abw=this.T_;return c}; +g.y.now=function(){return(0,g.ta)()}; +g.y.deactivate=function(){this.isActive&&(this.isActive=!1)};g.E(Sb,sJ);g.y=Sb.prototype;g.y.Vd=function(){var X=sJ.prototype.Vd.call(this);X.pb=this.wB;X.pt=(1E3*this.o2).toFixed();X.se=this.oZ;return X}; +g.y.xw=function(){var X=this.kU;this.fS||(this.fS=X.xw?X.xw():1);return this.fS}; +g.y.IW=function(){return this.zz?this.xw()!==1:!1}; +g.y.l1=function(X,c,V){if(!this.EM){this.EM=!0;if(!this.Ws){Cz(this,X,c);this.uG(X,c);var G=this.xw();this.oZ=V;if(!this.Ws)if(G===2){G=X-this.T0)||qm(this,G,c),this.G>0&&ET(this.Pd, +c,this.X));X=(X-this.J)/1E3||.01;this.policy.T&&!(this.G>0)||Fi(this.Pd,X,this.U,iFD(this),this.Yq)}this.deactivate()}}; +g.y.Ub=function(X,c,V){V&&(this.fS=2);X<0&&this.SL&&(X=this.SL);c?this.LS+=X:this.YO+=X}; +g.y.b6=function(){return this.YO||this.LS||sJ.prototype.b6.call(this)}; +g.y.uG=function(X,c){var V=(X-this.B)/1E3,G=c-this.U,n=this.xw();this.isActive?n===1&&((G>0||this.policy.Z)&&(V>.2||G<1024)?(this.X+=V,G>0&&V>.2&&qm(this,this.Vq?V:.05,G),this.hX=!0):G>0&&(qm(this,V,G),this.hX=!0)):c&&c>=this.policy.J&&this.uZ(X,c);sJ.prototype.uG.call(this,X,c)}; +g.y.B4=function(X){if(!this.Ws){Cz(this,X,this.Z);var c=(X-this.J)/1E3;this.xw()!==2&&this.G>0&&(this.X+=(X-this.B)/1E3,ET(this.Pd,this.U,this.X));Fi(this.Pd,c,this.U,iFD(this),this.Yq,!0);X=(X-this.B)/1E3;Qm(this.Pd,X,0);this.Hu(X,0)}}; +g.y.uZ=function(X,c){X=X===void 0?this.D:X;c=c===void 0?this.Z:c;if(!(this.G>0)&&(sJ.prototype.uZ.call(this,X,c),this.xw()===1)){c=(this.C-this.J)/1E3;var V=(X-this.C)/1E3;this.zz&&Xf(this,this.now());this.HP||this.Ws||(this.SL&&(V=Math.max(0,V-this.SL)),X=this.Pd,X.T.Mm(1,c),X.Pl.Mm(1,V))}}; +g.y.B0=function(){this.zz&&Xf(this,this.now());return this.QK}; +g.y.Vl=function(){var X;if(X=this.U>this.VW)X=(X=this.U)?X>=this.policy.J:!1;return X}; +g.y.z0=function(){return this.yK}; +g.y.Qf=function(X){X=X===void 0?this.now():X;if(this.zz){Xf(this,X);if(this.fS?this.IW():this.kO!==this.Hl){var c=this.Hl;if(X0?V+X:V+Math.max(X,c)}; +g.y.wz=function(){return this.now()-this.T}; +g.y.Fs=function(){return(this.U-this.G)*1E3/this.wz()||0}; +g.y.Qj=function(){return this.T};cC.prototype.feed=function(X){ky(this.J,X);this.Dg()}; +cC.prototype.Dg=function(){if(this.X){if(!this.J.getLength())return;var X=this.J.split(this.U-this.G),c=X.WA;X=X.RY;if(!this.kU.gi(this.X,c,this.G,this.U))return;this.G+=c.getLength();this.J=X;this.G===this.U&&(this.X=this.U=this.G=void 0)}for(;;){var V=0;X=g.r(VHO(this.J,V));c=X.next().value;V=X.next().value;V=g.r(VHO(this.J,V));X=V.next().value;V=V.next().value;if(c<0||X<0)break;if(!this.J.cN(V,X)){if(!this.kU.gi||!this.J.cN(V,1))break;V=this.J.split(V).RY;this.kU.gi(c,V,0,X)&&(this.X=c,this.G= +V.getLength(),this.U=X,this.J=new vl([]));break}X=this.J.split(V).RY.split(X);V=X.RY;this.kU.Rh(c,X.WA);this.J=V}}; +cC.prototype.dispose=function(){this.J=new vl};g.y=VR.prototype;g.y.Mo=function(){return 0}; +g.y.Sy=function(){return null}; +g.y.kf=function(){return null}; +g.y.LP=function(){return this.state>=1}; +g.y.isComplete=function(){return this.state>=3}; +g.y.fK=function(){return this.state===5}; +g.y.onStateChange=function(){}; +g.y.yg=function(X){var c=this.state;this.state=X;this.onStateChange(c);this.callback&&this.callback(this,c)}; +g.y.yF=function(X){X&&this.state=this.xhr.HEADERS_RECEIVED}; +g.y.getResponseHeader=function(X){try{return this.xhr.getResponseHeader(X)}catch(c){return""}}; +g.y.GQ=function(){return+this.getResponseHeader("content-length")}; +g.y.e_=function(){return this.G}; +g.y.jM=function(){return this.status>=200&&this.status<300&&!!this.G}; +g.y.du=function(){return this.J.getLength()>0}; +g.y.Rt=function(){var X=this.J;this.J=new vl;return X}; +g.y.Rr=function(){return this.J}; +g.y.abort=function(){this.vl=!0;this.xhr.abort()}; +g.y.Eb=function(){return!0}; +g.y.BY=function(){return this.U}; +g.y.NJ=function(){return""};g.y=d2l.prototype;g.y.getResponseHeader=function(X){return X==="content-type"?this.J.get("type"):""}; +g.y.abort=function(){}; +g.y.c_=function(){return!0}; +g.y.GQ=function(){return this.range.length}; +g.y.e_=function(){return this.loaded}; +g.y.jM=function(){return!!this.loaded}; +g.y.du=function(){return!!this.G.getLength()}; +g.y.Rt=function(){var X=this.G;this.G=new vl;return X}; +g.y.Rr=function(){return this.G}; +g.y.Eb=function(){return!0}; +g.y.BY=function(){return!!this.error}; +g.y.NJ=function(){return this.error};g.y=his.prototype;g.y.start=function(X){var c={credentials:"include",cache:"no-store"};Object.assign(c,this.D);this.X&&(c.signal=this.X.signal);X=new Request(X,c);fetch(X).then(this.C,this.onError).then(void 0,H8)}; +g.y.onDone=function(){this.vl()||this.kU.Pz()}; +g.y.getResponseHeader=function(X){return this.responseHeaders?this.responseHeaders.get(X):null}; +g.y.c_=function(){return!!this.responseHeaders}; +g.y.e_=function(){return this.G}; +g.y.GQ=function(){return+this.getResponseHeader("content-length")}; +g.y.jM=function(){return this.status>=200&&this.status<300&&!!this.G}; +g.y.du=function(){return!!this.J.getLength()}; +g.y.Rt=function(){this.du();var X=this.J;this.J=new vl;return X}; +g.y.Rr=function(){this.du();return this.J}; +g.y.vl=function(){return this.Z}; +g.y.abort=function(){this.U&&this.U.cancel().catch(function(){}); +this.X&&this.X.abort();this.Z=!0}; +g.y.Eb=function(){return!0}; +g.y.BY=function(){return this.B}; +g.y.NJ=function(){return this.errorMessage};g.y=A7O.prototype;g.y.onDone=function(){if(!this.vl){this.status=this.xhr.status;try{this.response=this.xhr.response,this.G=this.response.byteLength}catch(X){}this.J=!0;this.kU.Pz()}}; +g.y.Or=function(){this.xhr.readyState===2&&this.kU.au()}; +g.y.E5=function(X){this.vl||(this.status=this.xhr.status,this.J||(this.G=X.loaded),this.kU.jw((0,g.ta)(),X.loaded))}; +g.y.c_=function(){return this.xhr.readyState>=2}; +g.y.getResponseHeader=function(X){try{return this.xhr.getResponseHeader(X)}catch(c){return g.UQ(Error("Could not read XHR header "+X)),""}}; +g.y.GQ=function(){return+this.getResponseHeader("content-length")}; +g.y.e_=function(){return this.G}; +g.y.jM=function(){return this.status>=200&&this.status<300&&this.J&&!!this.G}; +g.y.du=function(){return this.J&&!!this.response&&!!this.response.byteLength}; +g.y.Rt=function(){this.du();var X=this.response;this.response=void 0;return new vl([new Uint8Array(X)])}; +g.y.Rr=function(){this.du();return new vl([new Uint8Array(this.response)])}; +g.y.abort=function(){this.vl=!0;this.xhr.abort()}; +g.y.Eb=function(){return!1}; +g.y.BY=function(){return!1}; +g.y.NJ=function(){return""};g.d3.prototype.info=function(){}; +g.d3.prototype.debug=function(){}; +g.d3.prototype.J=function(X){yR.apply(null,[5,this.tag,X].concat(g.x(g.OD.apply(1,arguments))))}; +var H5O=new Map,WI2=new Map,a81=new function(){var X=this;this.J=new Map;this.F8={QFy:function(){return X.J}}};g.E(hK,g.I);hK.prototype.Av=function(){if(!this.sN.length)return[];var X=this.sN;this.sN=[];this.U=g.Kt(X).info;return X}; +hK.prototype.fL=function(){return this.sN}; +hK.prototype.R2=function(){g.I.prototype.R2.call(this);this.J=null;this.sN.length=0;this.KS.length=0;this.U=null};g.E(YM,g.I);g.y=YM.prototype; +g.y.eQK=function(){if(!this.vl()){var X=(0,g.ta)(),c=!1;if(this.policy.uV){X=X-(this.timing.G>0?this.timing.T:this.timing.J)-this.timing.b6()*1E3;var V=QH(jp(this),!1);X>=2E3*V?c=!0:X>=this.policy.VB*V&&(this.J=this.policy.Rg)}else if(this.timing.G>0){if(this.Z){this.policy.Bd&&(this.J=0);return}var G=this.timing.z0();this.timing.Qf();var n=this.timing.z0();n-G>=this.policy.jL*.8?(this.J++,this.logger.debug(function(){return"Mispredicted by "+(n-G).toFixed(0)}),c=this.J>=5):this.J=0}else{var L=X- +this.timing.B0(); +this.policy.Rg&&L>0&&(this.J+=1);c=QH(jp(this),!1)*this.policy.FV;(c=L>c*1E3)&&this.logger.debug(function(){return"Elbow late by "+L.toFixed(3)})}this.J>0&&this.kU.Dq(); +c?this.gQ():this.G.start()}}; +g.y.gQ=function(){this.X=!0;this.kU.fh();this.lastError="net.timeout";aP(this)}; +g.y.canRetry=function(X){var c=jp(this);X=X?this.policy.Zn:this.policy.ql;return c.timedOut0&&(c=c.J.getUint8(0),X.ubyte=c,V===1&&c===0&&(X.b248180278=!0))}this.Yt&&(X.rc=this.policy.mE?this.Yt:this.Yt.toString());this.policy.z2&&this.v6&&(X.tr=this.v6);X.itag=this.info.KS[0].J.info.itag;X.ml=""+ +this.info.KS[0].J.tb();X.sq=""+this.info.KS[0].Bl;this.cg&&(X.ifi=""+ +mI(this.info.uB.U));this.Yt!==410&&this.Yt!==500&&this.Yt!==503||(X.fmt_unav="true");var G;(V=this.errorMessage||((G=this.xhr)==null? +void 0:G.NJ()))&&(X.msg=V);this.o3&&(X.smb="1");this.info.isDecorated()&&(X.sdai="1");return X}; +g.y.OB=function(){return qM2(this.timing)}; +g.y.NJ=function(){return this.xhr.NJ()||""}; +g.y.Vl=function(){return this.isComplete()||this.timing.Vl()}; +g.y.jw=function(){!this.vl()&&this.xhr&&(this.Yt=this.xhr.status,this.policy.HL&&this.xt&&this.E2(!1),this.qX()?this.yF(2):!this.Oj&&this.Vl()&&(this.yF(),this.Oj=!0))}; +g.y.au=function(){if(!this.vl()&&this.xhr){if(!this.XT&&this.xhr.c_()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var X=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.XT=((0,g.ta)()-X)/1E3}this.xhr.c_()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.Zi&&!ITj()&&g.pv("yt-player-headers-readable",!0,2592E3);X=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var c=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),V;(V=this.KP)==null||V.stop();this.sW=X||this.sW; +this.fg=c||this.fg}}; +g.y.Pz=function(){var X=this.xhr;if(!this.vl()&&X){this.Yt=X.status;X=this.YE(X);if(this.policy.z2){var c;(c=this.KP)==null||c.stop()}X===5?aP(this.D3):this.yg(X);this.D3.G.stop()}}; +g.y.YE=function(X){var c=this;swL(this);if($M(this.D3,this.xhr.status,this.CF?this.timing.G_||this.Sj:this.xhr.jM(),!1,this.K1))return 5;var V="";WC(this.D3,this.xhr)&&(V=Z58(this.D3,this.xhr));if(V)return r_(jp(this.D3)),this.info.tZ(this.cg,V),3;V=X.e_();if(this.X7){this.E2(!0);swL(this);if($M(this.D3,this.xhr.status,this.timing.G_||this.Sj,!1,this.K1))return 5;if(!this.iK){if(this.Sj)return r_(jp(this.D3)),3;this.D3.lastError="net.closed";return 5}}else{if($M(this.D3,this.xhr.status,this.xhr.jM(), +!1,this.K1))return 5;var G=this.info.U;if(G&&G!==V||X.BY())return this.D3.lastError="net.closed",5;this.E2(!0)}G=Guw(this)?X.getResponseHeader("X-Bandwidth-Est"):0;if(X=Guw(this)?X.getResponseHeader("X-Bandwidth-Est3"):0)this.YS=!0,this.policy.C7&&(G=X);r7l(this.D3,V,G?Number(G):0,this.info.KS[0].type===5);this.logger.debug(function(){var n=c.timing;return"Succeeded, rtpd="+(n.o2*1E3+n.J-Date.now()).toFixed(0)}); +return 4}; +g.y.canRetry=function(){this.vl();var X=this.info.isDecorated();return this.D3.canRetry(X)}; +g.y.onStateChange=function(){this.isComplete()&&(this.policy.fW?this.fh():this.timing.deactivate())}; +g.y.gQ=function(){this.D3.gQ()}; +g.y.Dq=function(){this.callback&&this.callback(this,this.state)}; +g.y.kF=function(){return this.D3.kF()}; +g.y.dispose=function(){VR.prototype.dispose.call(this);this.D3.dispose();var X;(X=this.KP)==null||X.dispose();this.policy.fW||this.fh()}; +g.y.fh=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; +g.y.Av=function(){if(!this.fL().length)return[];this.Lk=!0;return this.xt.Av()}; +g.y.qX=function(){if(this.state<1)return!1;if(this.xt&&this.xt.sN.length)return!0;var X;return((X=this.xhr)==null?0:X.du())?!0:!1}; +g.y.fL=function(){this.E2(!1);return this.xt?this.xt.fL():[]}; +g.y.E2=function(X){try{if(X||this.xhr.c_()&&this.xhr.du()&&!WC(this.D3,this.xhr)&&!this.FQ)this.xt||(this.xt=new hK(this.policy,this.info.KS)),this.xhr.du()&&(this.X7?this.X7.feed(this.xhr.Rt()):AK(this.xt,this.xhr.Rt(),X&&!this.xhr.du()))}catch(c){this.X7?zi8(this,c):g.UQ(c)}}; +g.y.Rh=function(X,c){switch(X){case 21:X=c.split(1).RY;BVD(this,X);break;case 22:this.iK=!0;AK(this.xt,new vl([]),!0);break;case 43:if(X=u4(new f2(c),1))this.info.tZ(this.cg,X),this.Sj=!0;break;case 45:c=Gu(new f2(c));X=c.g2;c=c.f3;X&&c&&(this.e5=X/c);break;case 44:this.pG=pQl(new f2(c));var V,G,n;!this.timing.G_&&((V=this.pG)==null?void 0:V.action)===4&&((G=this.pG)==null?0:(n=G.Qk)==null?0:n.CF)&&(this.CF=this.pG.Qk.CF);break;case 53:this.policy.z2&&(X=Mwl(new f2(c)).JV)&&(this.KP||(this.JV=X,this.KP= +new g.qR(this.uL,X,this)),this.KP.start());break;case 60:this.QF=VQ(new f2(c));break;case 58:if(X=Hk8(new f2(c)))this.cF=X,X.cF===3&&(this.K1=!0)}}; +g.y.gi=function(X,c,V,G){V||this.timing.gi(G);if(X!==21)return!1;if(X=this.policy.HL)if(G=c.getLength()+V===G,X*=this.info.KS[0].J.info.JX,!G&&c.getLength()0)return!1;if(!this.xhr.c_())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.X7)var X=!this.info.U;else this.xhr.GQ()?X=!1:(X=this.xhr.getResponseHeader("content-type"),X=X==="audio/mp4"||X==="video/mp4"||X==="video/webm");if(!X)return!1;if(isNaN(this.info.Hb)){X=this.xhr.getResponseHeader("x-head-seqnum");var c=this.timing.policy.D?1:0;if(!X)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); +else if(Number(X)>this.info.KS[0].Bl+c)return!1}return!0}; +g.y.uQ=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; +g.y.Sy=function(){this.xhr&&(this.sW=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.sW}; +g.y.kf=function(){this.xhr&&(this.fg=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.fg}; +g.y.dJ=function(){return this.D3.dJ()}; +g.y.uL=function(){if(!this.vl()&&this.xhr){this.v6="heartbeat";var X=this.D3;X.J+=2;this.Dq()}};g.E(vC,sJ);g.y=vC.prototype;g.y.uG=function(X,c){var V=(X-this.B)/1E3,G=c-this.U;this.G>0?G>0&&(this.kO&&(V>.2||G<1024?(this.X+=V,V>.2&&CWs(this,.05,G)):CWs(this,V,G)),this.Hl&&(this.QK+=G,this.YO+=V)):c>this.policy.J&&this.uZ(X,c);sJ.prototype.uG.call(this,X,c)}; +g.y.l1=function(X,c){Cz(this,X,c);this.uG(X,c);this.kO&&(c=this.U*this.snapshot.stall+this.U/this.snapshot.byterate,this.G>0&&ET(this.Pd,this.QK,this.X),X=(X-this.J)/1E3||.01,this.policy.T&&!(this.G>0)||Fi(this.Pd,X,this.U,c,!1))}; +g.y.B4=function(X){Cz(this,X,this.Z);var c=(X-this.B)/1E3;Qm(this.Pd,c,0);this.Hu(c,0);!this.kO&&this.G>0||(c=this.U*this.snapshot.stall+this.U/this.snapshot.byterate,this.G>0&&(this.X+=(X-this.B)/1E3,ET(this.Pd,this.QK,this.X)),Fi(this.Pd,((X-this.J)/1E3||.01)*this.policy.A7,this.U,c,!1,!0))}; +g.y.sC=function(X){X=X.mK||2147483647;(X&2)!==2&&(this.Hl=!1);(X&1)===1&&(this.kO=!0)}; +g.y.D$=function(X){X=X.mK||2147483647;(X&2)===2&&(this.Hl=!1);(X&1)===1&&(this.kO=!1)}; +g.y.Qj=function(){return this.T}; +g.y.wz=function(){var X=this.Hl?this.now()-this.B:0;return Math.max(this.YO*1E3+X,1)}; +g.y.Fs=function(){return this.QK*1E3/this.wz()}; +g.y.uZ=function(X,c){X=X===void 0?this.D:X;c=c===void 0?this.Z:c;this.G>0||(sJ.prototype.uZ.call(this,X,c),c=this.Pd,X=(X-this.C)/1E3,c.T.Mm(1,(this.C-this.J)/1E3),c.Pl.Mm(1,X))}; +g.y.Xm=function(X){this.LS=X}; +g.y.Vd=function(){var X=sJ.prototype.Vd.call(this);X.rbw=this.Fs();X.rbe=+this.Hl;X.gbe=+this.kO;X.ackt=(this.LS-this.J).toFixed();return X}; +g.y.Qf=function(){}; +g.y.z0=function(){return NaN}; +g.y.B0=function(){return this.J+this.snapshot.delay*1E3};kM.prototype.Rh=function(X,c){c.getLength();switch(X){case 20:X=new f2(c);X={TI:NC(X,1),videoId:u4(X,2),itag:NC(X,3),lmt:NC(X,4),xtags:u4(X,5),YK:NC(X,6),AU:Un(X,8),tU:NC(X,9),VcR:NC(X,10),startMs:NC(X,11),durationMs:NC(X,12),R1:NC(X,14),timeRange:Pl(X,15,Dg8),jU:NC(X,16),wI:NC(X,17),clipId:u4(X,1E3)};this.Bn(X);break;case 21:this.Hn(c,!1);break;case 22:this.AV(c);break;case 31:X=K2(c,ens);this.G8(X);break;case 52:X=K2(c,ga1);this.G9(X);break;default:this.Xw(X,c)}}; +kM.prototype.Bn=function(){}; +kM.prototype.Xw=function(){};g.E(oP,kM);g.y=oP.prototype; +g.y.Xw=function(X,c){c.getLength();switch(X){case 35:this.hV(c);break;case 44:this.LL(c);break;case 43:this.eW(c);break;case 53:this.Z9(c);break;case 55:X=new f2(c);(X={timeline:Pl(X,1,N2U),T6R:Pl(X,2,uut)},X.timeline)&&X.timeline.H6&&this.kU.Tc(X.timeline.H6,X.timeline.m$S,X.T6R);break;case 56:this.Yl();break;case 57:this.rk(c);break;case 42:this.aI(c);break;case 45:this.RF(c);break;case 59:this.b9(c);break;case 51:this.EC(c);break;case 49:this.sC(c);break;case 50:this.D$(c);break;case 47:this.i9(c); +break;case 58:this.Fe(c);break;case 61:this.kU.IL.Xm((0,g.ta)());break;case 66:this.fO(c);break;case 46:this.rK(c);break;case 67:this.onSnackbarMessage(c)}}; +g.y.EC=function(X){X=new f2(X);X={S8W:Bl(X,1,XT),ZFS:Bl(X,2,XT)};this.kU.EC(X)}; +g.y.b9=function(X){var c=new f2(X);X=zF(c,1);var V=zF(c,2);c=zF(c,3);this.kU.b9(X,V,c)}; +g.y.RF=function(X){X=Gu(new f2(X));this.kU.RF(X)}; +g.y.i9=function(X){X=K2(X,Rns);this.kU.i9(X)}; +g.y.aI=function(X){X=new f2(X);X={videoId:u4(X,1),formatId:Pl(X,2,XT),endTimeMs:NC(X,3),hmS:NC(X,4),mimeType:u4(X,5),Hj:Pl(X,6,QsU),indexRange:Pl(X,7,QsU),Yh:Pl(X,8,Zkt)};this.kU.aI(X)}; +g.y.rk=function(X){X=uut(new f2(X));this.kU.rk(X)}; +g.y.Yl=function(){this.kU.Yl()}; +g.y.hV=function(X){X=JCl(new f2(X));this.kU.hV(X)}; +g.y.Z9=function(X){X=Mwl(new f2(X));this.kU.Z9(X)}; +g.y.LL=function(X){X=pQl(new f2(X));this.kU.LL(X)}; +g.y.eW=function(X){X={redirectUrl:u4(new f2(X),1)};this.kU.eW(X)}; +g.y.Hn=function(X){var c=X.getUint8(0);if(X.getLength()!==1){X=X.split(1).RY;var V=this.G[c]||null;V&&OU(this.kU.Ab,c,V,X)}}; +g.y.AV=function(X){X=X.getUint8(0);var c=this.G[X]||null;c&&this.kU.AV(X,c)}; +g.y.G9=function(X){this.kU.G9(X)}; +g.y.Bn=function(X){var c=X.TI,V=X.AU,G=X.YK,n=X.wI,L=X.jU,d=X.tU,h=X.startMs,A=X.durationMs,Y=X.timeRange,H=X.R1,a=X.clipId,W=JQ(X);X=dJV.has(s3[""+X.itag]);this.G[c]=W;this.kU.Ub(W,X,{TI:c,AU:!!V,YK:G!=null?G:-1,tU:d!=null?d:-1,startMs:h!=null?h:-1,durationMs:A!=null?A:-1,R1:H,wI:n,jU:L,clipId:a,timeRange:Y})}; +g.y.sC=function(X){X={mK:NC(new f2(X),1)};this.kU.sC(X)}; +g.y.D$=function(X){X={mK:NC(new f2(X),1)};this.kU.D$(X)}; +g.y.G8=function(X){this.kU.G8(X)}; +g.y.Fe=function(X){X=Hk8(new f2(X));this.kU.Fe(X)}; +g.y.fO=function(X){X={bv:Pl(new f2(X),1,OkD)};this.kU.fO(X)}; +g.y.onSnackbarMessage=function(X){X=NC(new f2(X),1);this.kU.onSnackbarMessage(X)}; +g.y.rK=function(X){X={reloadPlaybackParams:Pl(new f2(X),1,jsw)};this.kU.rK(X)};g.E(ep,g.I);g.y=ep.prototype;g.y.Ra=function(){return Array.from(this.T2.keys())}; +g.y.P3=function(X){X=this.T2.get(X);var c=X.sN;X.J4+=c.getLength();X.sN=new vl;return c}; +g.y.AP=function(X){return this.T2.get(X).AP}; +g.y.Es=function(X){return this.T2.get(X).Es}; +g.y.Ub=function(X,c,V,G){this.T2.get(X)||XtD(this,X,c);c=this.T2.get(X);if(this.ZR){X=V$l(this,X,V);if(G)for(var n=g.r(X),L=n.next();!L.done;L=n.next()){L=L.value;var d=G;L.A7=d;L.startTime+=d;L.X+=d;L.B+=d}cQl(this,V.TI,c,X)}else V.AU?c.xB=V.R1:c.I9.push(V),c.Mq.push(V)}; +g.y.r_=function(X){var c;return((c=this.T2.get(X))==null?void 0:c.KS)||[]}; +g.y.yF=function(){for(var X=g.r(this.T2.values()),c=X.next();!c.done;c=X.next())c=c.value,c.Nq&&(c.E5&&c.E5(),c.Nq=!1)}; +g.y.AV=function(X,c){this.logger.debug(function(){return"[onMediaEnd] formatId: "+c}); +var V=this.T2.get(c);if(JK){if(V&&!V.AP){if(V.YR.get(X))V.YR.get(X).f1=!0;else{var G;((G=this.OH)==null?0:G.gm)&&V.YR.set(X,{data:new vl,Df:0,f1:!0})}V.Es=!0}}else V&&!V.Es&&(V.Es=!0)}; +g.y.Av=function(X){if(JK){var c=this.T2.get(X);if(c)for(var V=g.r(c.YR),G=V.next();!G.done;G=V.next()){var n=g.r(G.value);G=n.next().value;n=n.next().value;var L=c.z$.get(G);if(MQ(L[0])){if(!n.f1)continue;var d=L,h=n.data;h.getLength();L=0;var A=[];d=g.r(d);for(var Y=d.next();!Y.done;Y=d.next()){Y=Y.value;var H=Y.U,a=oO(h,L,H);L+=H;A.push(new XY(Y,a))}c.u0.push.apply(c.u0,g.x(A))}else if(n.data.getLength()>0||!L[0].range&&n.f1)h=void 0,L=L[0],A=n.Df,d=n.data,L.range||(h=n.f1),Y=d.getLength(),h=new XY(d11(L, +L.G+A,Y,h),d),n.Df+=h.info.U,c.u0.push(h);c.YR.get(G).data=new vl;n.f1&&c.YR.delete(G)}X=this.T2.get(X);if(!X)return[];c=X.u0;X.u0=[];V=g.r(c);for(G=V.next();!G.done;G=V.next())X.J4+=G.value.info.U;return c||[]}V=(c=this.T2.get(X))==null?void 0:c.xt;if(!V)return[];this.E2(X,V);return V.Av()}; +g.y.qX=function(X){if(JK)return tK(this,X);var c,V,G;return!!((V=(c=this.T2.get(X))==null?void 0:c.xt)==null?0:(G=V.fL())==null?0:G.length)||tK(this,X)}; +g.y.E2=function(X,c){for(;tK(this,X);){var V=this.P3(X);var G=X;G=this.T2.get(G).AP&&!bT(this,G);AK(c,V,G&&qml(this,X))}}; +g.y.R2=function(){g.I.prototype.R2.call(this);for(var X=g.r(this.T2.keys()),c=X.next();!c.done;c=X.next())mN(this,c.value);var V;if((V=this.OH)==null?0:V.Fn)for(X=g.r(this.T2.values()),c=X.next();!c.done;c=X.next())c=c.value,c.YR.clear(),c.z$.clear(),c.u0.length=0,c.KS.length=0,c.Mq.length=0,c.I9.length=0;this.T2.clear()}; +var JK=!1;g.E(lT,g.I);g.y=lT.prototype;g.y.jw=function(){!this.vl()&&this.xhr&&(this.E2(!1),sP(this.kU,this))}; +g.y.au=function(){}; +g.y.Pz=function(){if(!this.vl()&&this.xhr){var X=this.YE();X===5?aP(this.D3):this.yg(X);this.D3.G.stop();var c;(c=this.m4)==null||c.stop()}}; +g.y.YE=function(){var X="";WC(this.D3,this.xhr)&&(X=Z58(this.D3,this.xhr));if(X)return this.info.uB.tZ(this.cg,X),3;this.E2(!0);if($M(this.D3,this.xhr.status,this.xhr.jM(),this.info.Bf(),this.K1))return 5;if(this.ZT)return 3;r7l(this.D3,this.xhr.e_(),0,this.Bf());this.policy.pM&&Sfl(this.kU);return 4}; +g.y.E2=function(X){var c=this.xhr;if((X||!WC(this.D3,this.xhr))&&c.du()){X=c.Rt();var V=X.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+V}); +this.X7.feed(X)}}; +g.y.Rh=function(X,c){this.xhr.Eb()&&X===21&&dQw(this);this.S1.Rh(X,c)}; +g.y.gi=function(X,c,V,G){V||(this.IL.gi(G),this.policy.fn&&X===21&&dQw(this));if(X!==21)return!1;this.IL.G_=!0;X=c.getLength();V||(this.Uv=c.getUint8(0),c=c.split(1).RY);var n=this.policy.uq,L=this.S1.G[this.Uv],d=this.ZR.U.get(L);if(n&&d&&(n*=d.info.JX,X+V!==G&&X0){this.policy.uV&&this.D3.G.stop();X=this.IL.wz();c=this.IL.Fs();var V=yQS(this,X);if(!(c>V.kd||V.E9>0&&this.info.Ks()>V.E9)){this.S8=(0,g.ta)();var G;(G=this.m4)==null||G.stop();this.policy.pM&&(G=this.kU,X={fu:Math.round(c*X/1E3),Wq:X},G.policy.pM&&(G.Pl=X,G.uA++));this.gQ()}}}}; +g.y.gQ=function(){this.D3.gQ()}; +g.y.LL=function(X){this.kU.LL(X,this.YA())}; +g.y.eW=function(X){this.ZT=!0;this.info.uB.tZ(this.cg,X.redirectUrl)}; +g.y.sC=function(X){this.IL instanceof vC&&this.IL.sC(X)}; +g.y.D$=function(X){this.IL instanceof vC&&this.IL.D$(X)}; +g.y.Tc=function(X,c,V){this.kU.Tc(X,c,V,this.YA())}; +g.y.aI=function(X){var c=X.formatId,V=JQ({itag:c.itag,lmt:c.lmt,xtags:c.xtags}),G,n,L=new Rq(((G=X.Hj)==null?void 0:G.first)||0,((n=X.Hj)==null?void 0:n.iY)||0),d,h;G=new Rq(((d=X.indexRange)==null?void 0:d.first)||0,((h=X.indexRange)==null?void 0:h.iY)||0);if(!this.ZR.U.get(V)){V=X.Yh||{};if(this.policy.eB){var A,Y;X=(A=X.mimeType)!=null?A:"";A=(Y=c.itag)!=null?Y:0;Y=s3[""+A];V.mimeType=Y!=="9"&&Y!=="9h"?X:'video/webm; codecs="'+["vp09",Y==="9h"?"02":"00","51",Y==="9h"?"10":"08","01.01.01.01.00"].join(".")+ +'"'}else V.mimeType=X.mimeType;V.itag=c.itag;V.lastModified=""+(c.lmt||0);V.xtags=c.xtags;c=this.ZR;Y=rf("");A=FY(V,null);jt(c,new hF(Y,A,L,G))}}; +g.y.RF=function(X){this.kU.RF(X)}; +g.y.onSnackbarMessage=function(X){if(this.policy.oA)this.kU.onSnackbarMessage(X)}; +g.y.G8=function(X){this.dj=X;this.yw=(0,g.ta)();this.kU.G8(X)}; +g.y.b9=function(X,c,V){this.kU.b9(X,c,V)}; +g.y.rk=function(X){X.scope===2&&(this.dJv=X);this.kU.rk(X)}; +g.y.Yl=function(){this.DN=!0;this.kU.Yl()}; +g.y.EC=function(X){this.policy.vW&&this.kU.EC(X)}; +g.y.i9=function(X){this.kU.i9(X,this.YA())}; +g.y.Fe=function(X){X.cF===3&&(this.K1=!0);this.kU.Fe(X)}; +g.y.fO=function(X){this.kU.fO(X)}; +g.y.rK=function(X){this.kU.rK(X)}; +g.y.canRetry=function(){this.vl();return this.D3.canRetry(!1)}; +g.y.dispose=function(){if(!this.vl()){g.I.prototype.dispose.call(this);this.D3.dispose();var X;(X=this.m4)==null||X.dispose();this.yg(-1);this.fh()}}; +g.y.yg=function(X){this.state=X;sP(this.kU,this)}; +g.y.Bf=function(){return this.info.Bf()}; +g.y.ww=function(){return this.DN}; +g.y.WZ=function(){return this.dJv}; +g.y.Ub=function(X,c,V){V.clipId&&(this.clipId=V.clipId);this.policy.Z&&!c&&(this.tC=V.tU,this.QY=V.startMs);var G=0;this.policy.SU&&this.md&&this.clipId&&(G=Mm(this.md,this.clipId)/1E3);this.Ab.Ub(X,c,V,G);this.policy.Po&&this.dj&&this.IL instanceof Sb&&(G=this.dj.ZA,this.IL.Ub(V.durationMs/1E3,c,G>0&&V.tU+1>=G));this.Ab.T2.get(X).VG=!0}; +g.y.AV=function(X,c){this.Ab.AV(X,c)}; +g.y.G9=function(X){this.requestIdentifier=X}; +g.y.Av=function(X){return this.Ab.Av(X)}; +g.y.r_=function(X){return this.Ab.r_(X)}; +g.y.qX=function(X){return this.Ab.qX(X)}; +g.y.Ra=function(){return this.Ab.Ra()}; +g.y.xw=function(){return 1}; +g.y.YA=function(){return this.IL.requestNumber}; +g.y.Ik=function(){return this.requestIdentifier}; +g.y.ob=function(){return this.clipId}; +g.y.Yc=function(){return this.cg.Yc()}; +g.y.E1=function(){this.fh()}; +g.y.fh=function(){this.IL.deactivate();var X;(X=this.xhr)==null||X.abort()}; +g.y.isComplete=function(){return this.state>=3}; +g.y.p8=function(){return this.state===3}; +g.y.fK=function(){return this.state===5}; +g.y.YB=function(){return this.state===4}; +g.y.bQ=function(){return this.isComplete()}; +g.y.LP=function(){return this.state>=1}; +g.y.kF=function(){return this.policy.Bd?this.D3.kF():0}; +g.y.Dq=function(){this.policy.Bd&&sP(this.kU,this)}; +g.y.Zo=function(){return Rcs(this.info)}; +g.y.dJ=function(){return this.D3.dJ()}; +g.y.Bs=function(){var X=x2D(this.D3);Object.assign(X,t38(this.info));X.req="sabr";X.rn=this.YA();var c;if((c=this.xhr)==null?0:c.status)X.rc=this.policy.mE?this.xhr.status:this.xhr.status.toString();var V;(c=(V=this.xhr)==null?void 0:V.NJ())&&(X.msg=c);this.S8&&(V=yQS(this,this.S8-this.IL.Qj()),X.letm=V.PBS,X.mrbps=V.kd,X.mram=V.E9);return X}; +g.y.Do=function(){return{tC:this.tC,QY:this.QY,isDecorated:this.info.isDecorated()}};hQO.prototype.tick=function(X,c){this.ticks[X]=c?window.performance.timing.navigationStart+c:(0,g.ta)()};g.E(g3,g.$T);g.y=g3.prototype; +g.y.E3=function(X,c,V,G){if(this.policy.EY&&this.policy.Z){var n=X.iH||null;n?(xQD(this,X.Bl,TX(this,X.startTime,X.Bl),{iH:n,Bl:X.Bl,lJ:!!c,EN:V},this.U),G&&this.U&&this.U.Xe(X.Bl,X.startTime,this.G,(c==null?void 0:c.J)||[],(c==null?void 0:c.G)||[],(c==null?void 0:c.U)||[],V,(c==null?void 0:c.jz)||0,(c==null?void 0:c.X)||void 0)):this.G===1&&pD(this,5,"noad")}else{var L=!1;this.policy.T_&&(L=V?this.NW===X.Bl:this.kO===X.Bl);if(this.U&&G&&!L){G=[];L=[];var d=[],h=void 0,A=0;c&&(G=c.J,L=c.G,d=c.U,h= +c.X,A=c.jz,this.Oy("sdai",{sq:X.Bl,ssvicpns:G.join("."),ssvid:L.join(".")}));this.policy.T_&&(V?this.NW=X.Bl:this.kO=X.Bl);this.U.Xe(X.Bl,X.startTime,this.G,G,L,d,V,A,h)}this.policy.T_?V&&(this.G===1&&pD(this,5,"noad"),X.Bl!==((n=this.J)==null?void 0:n.Bl)&&(Qq2(this,X,c,V),isNaN(X.startTime)||IP(this,X.Bl,TX(this,X.startTime,X.Bl),!!c,this.U))):V&&Qq2(this,X,c)}}; +g.y.w4=function(X,c,V){var G=this.videoTrack.J.index.q6()<=c;this.J={iH:X,Bl:c,lJ:V};G&&fD(this,X,c)}; +g.y.BN=function(){this.U&&this.U.BN()}; +g.y.Oy=function(X,c,V){(X!=="sdai"||this.policy.dn||(V===void 0?0:V))&&this.h7.Oy(X,c)}; +g.y.X1=function(X,c){var V=this.videoTrack.J.index.gJ(X);if(V>=0){var G;var n=((G=c.nM.dB(V,2))==null?void 0:G.Ai)||"";if(this.policy.Z||n)return c.uP(X,V),Nh(this.h7,X,X,V),this.Oy("sdai",{cmskpad:1,t:X.toFixed(3),sq:V}),!0}this.Oy("sdai",{cmskpad:0,t:X.toFixed(3),sq:V});return!1};g.E(BC,g.I);BC.prototype.LW=function(X,c,V){V=V===void 0?{}:V;this.policy.xR=OX(X,V,this.X,c===void 0?!1:c)};Sp.prototype.Yd=function(X){var c=this;if(this.policy.lq){var V=new Set(X);V.size===this.Pl.size&&[].concat(g.x(V)).every(function(G){return c.Pl.has(G)})||(this.h7.Oy("lwnmow",{itagDenylist:[].concat(g.x(X)).join(",")}),this.h7.Cn(!!V.size),this.C=-1,this.Pl=V,iT(this,this.J),this.QK=!0)}}; +Sp.prototype.LW=function(X,c,V){V=V===void 0?{}:V;var G=this.policy.xR;this.Z.LW(X,c===void 0?!1:c,V);if(G!==this.policy.xR){iT(this,this.J);qh(this);var n,L;G>this.policy.xR&&((n=this.U)==null?0:q_(n.info))&&((L=this.nextVideo)==null||!q_(L.info))&&(this.G_=!0)}};nG.prototype.RC=function(X){this.timestampOffset=X;this.flush()}; +nG.prototype.flush=function(){if(this.J.pos>0){var X={a:this.track.oi(),u:this.J.ys(),pd:Math.round(this.X),ad:Math.round(this.U)},c=this.G;if(c){var V=c.J.info;X.itag=V.itag;V.J&&(X.xtags=V.J);X.sq=c.Bl;X.st=c.startTime;X.sd=c.duration;this.track.policy.Ep&&(X.si=c.u3());c.Z&&(X.esl=c.G+c.U);c.Dm()&&(X.eos=1)}isNaN(this.timestampOffset)||(X.to=this.timestampOffset);var G;if(c=(G=this.track.DQ)==null?void 0:G.J1({})){for(var n in c)this.B[n]!==c[n]&&(X["sb_"+n]=c[n]);this.B=c}this.track.Oy("sbu", +X);this.J.reset();this.buffered=[];this.Z=this.U=this.X=0;this.timestampOffset=this.G=void 0}};dY.prototype.dispose=function(){this.A7=!0}; +dY.prototype.vl=function(){return this.A7}; +g.E(H2,Error);var OEs=new Uint8Array([0,0,0,38,112,115,115,104,0,0,0,0,237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237,0,0,0,6,72,227,220,149,155,6]);W2.prototype.skip=function(X){this.offset+=X}; +W2.prototype.pg=function(){return this.offset};g.y=AFw.prototype;g.y.v0=function(){return this.G}; +g.y.Hz=function(){return this.G.length?this.G[this.G.length-1]:null}; +g.y.pm=function(){this.G=[];Q3(this);Ek(this)}; +g.y.P3=function(X){this.YO=this.G.shift().info;X.info.w6(this.YO)}; +g.y.r_=function(){return g.Rt(this.G,function(X){return X.info})}; +g.y.oi=function(){return!!this.B.info.audio}; +g.y.getDuration=function(){return this.B.index.FX()};g.E(pz,VR);g.y=pz.prototype;g.y.onStateChange=function(){this.vl()&&(RP(this.Ab,this.formatId),this.J.dispose())}; +g.y.Bs=function(){var X=i5l(this.Ab,this.formatId),c;var V=((c=this.Ab.T2.get(this.formatId))==null?void 0:c.bytesReceived)||0;var G;c=((G=this.Ab.T2.get(this.formatId))==null?void 0:G.J4)||0;return{expected:X,received:V,bytesShifted:c,sliceLength:bT(this.Ab,this.formatId),isAnyMediaEndReceived:this.Ab.Es(this.formatId)}}; +g.y.OB=function(){return 0}; +g.y.Vl=function(){return!0}; +g.y.Av=function(){return this.Ab.Av(this.formatId)}; +g.y.fL=function(){return[]}; +g.y.qX=function(){return this.Ab.qX(this.formatId)}; +g.y.dJ=function(){return this.lastError}; +g.y.kF=function(){return 0};g.E(kO,g.I);g.y=kO.prototype;g.y.oi=function(){return!!this.J.info.audio}; +g.y.Hz=function(){return this.X.Hz()}; +g.y.P3=function(X){this.X.P3(X);var c;(c=this.T)!=null&&(c.Z.add(X.info.Bl),c.J=Mh8(c,c.lB,c.Cg,X,c.J),c.U=X,c.B=(0,g.ta)());this.JX=Math.max(this.JX,X.info.J.info.JX||0)}; +g.y.getDuration=function(){if(this.policy.G){var X=this.h7.KJ();if(X)return Bo(X)}return this.J.index.FX()}; +g.y.pm=function(){Nm(this);this.X.pm()}; +g.y.hE=function(){return this.X}; +g.y.isRequestPending=function(X){return this.U.length?X===this.U[this.U.length-1].info.KS[0].Bl:!1}; +g.y.RC=function(X){var c;(c=this.T)==null||c.RC(X);var V;(V=this.C)==null||V.RC(X)}; +g.y.Oy=function(X,c){this.h7.Oy(X,c)}; +g.y.Zk=function(){return this.h7.Zk()}; +g.y.dispose=function(){var X;(X=this.C)==null||X.flush();g.I.prototype.dispose.call(this)};g.E(DA,g.I);DA.prototype.U=function(){this.G++>15||(this.J=!this.J,new XDL(this.h7,this.policy,this.Pd,this.uB,this.J),this.delay.start())}; +g.y=XDL.prototype;g.y.au=function(){}; +g.y.jw=function(){}; +g.y.Pz=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.e_()===this.size)this.h7.Oy("rqs",this.getInfo());else{var X="net.connect";this.xhr.status>200?X="net.badstatus":this.xhr.c_()&&(X="net.closed");this.onError(X)}}; +g.y.onError=function(X){var c=this;this.h7.handleError(X,this.getInfo());Jw("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(V){c.h7.Oy("pathprobe",V)},function(V){c.h7.handleError(V.errorCode,V.details)})}; +g.y.getInfo=function(){var X=this.timing.Vd();X.shost=eH(this.location.lF);X.pb=this.size;return X};g.E(Sx,g.I); +Sx.prototype.D=function(X,c){if(X.D){this.ZR.isLive?(X=this.ZR.uH&&this.ZR.X?X.J.LF(this.ZR.uH,!1):X.J.FO(Infinity),X.Hb=this.Hb):X=X.J.LF(0,!1);if(this.G_){var V=this.G_;X.Hb===0&&(X.Z=V.T)}else X.Z=this.C;return X}V=X.G;if(!V.J.tb())return V.J.Mb()?(X=bn(this.Z,X.J.info.JX,c.J.info.JX,0),X=V.J.Ea(V,X)):X=V.J.JN(V),X;var G=V.B-this.h7.getCurrentTime(),n=!V.range||V.U===0&&V.G===0?0:V.range.length-(V.G+V.U),L=V.J;this.Xi(X,G)&&n===0&&(this.ZR.isManifestless?L=X.J:(L=V.startTime+BkD,V.U&&(L+=V.duration), +un(X,L),V=X.G,L=V.J));L.Mb()?(n=this.U,c=bn(this.Z,L.info.JX,c.J.info.JX,G,n.X.length>0&&n.T===0&&this.h7.wi),G=Uk(X),X=V.J.Ea(V,c),(c=X.U)&&X.KS.length>1&&(G||X.uB.G||X.KS[0].J!==V.J?X=V.J.Ea(V,X.KS[0].U):(G=X.KS[X.KS.length-1],L=G.U/c,!G.Z&&L<.4&&(X=V.J.Ea(V,c-G.U))))):(V.Bl<0&&(c=Iq(V),c.pr=""+X.U.length,this.h7.isSeeking()&&(c.sk="1"),c.snss=V.D,this.h7.Oy("nosq",c)),X=L.JN(V));if(this.policy.NW)for(V=g.r(X.KS),c=V.next();!c.done;c=V.next())c.value.type=6;return X}; +Sx.prototype.Xi=function(X,c){if(!Uk(X)||!X.J.tb())return!1;var V=this.U.QK||fJD(X)||c<=this.policy.XV||this.U.G_;this.logger.debug(function(){return"ready to adapt: "+V+", upgrade pending: "+fJD(X)+", health: "+c}); +return V}; +Sx.prototype.R2=function(){g.I.prototype.R2.call(this)}; +var BkD=2/24;g.E(Vp,g.I);Vp.prototype.rI=function(X,c,V){var G;var n=((G=this.G)==null?void 0:G.reason)==="m"?"m":this.G&&ECO(this,this.G)?this.G.reason:"a";this.h7.rI(new zX(X,n,V));Xd(this.h7,c,X,!0)}; +Vp.prototype.e1=function(X,c){for(var V=g.r(this.NW),G=V.next();!G.done;G=V.next())if(G=G.value,G.id===X)return this.OH.mu||(this.U=[G]),this.B=this.ZR.J[X],sk(this.OH)&&(this.G_=!0),X=new zX(this.B,c?"t":"m"),this.OH.bH&&c&&(this.Z=!0),X;this.U=[];return null}; +Vp.prototype.LW=function(X,c,V){V=V===void 0?{}:V;this.J.LW(X,c===void 0?!1:c,V)};LX.prototype.setData=function(X,c,V,G){var n=this;G=G===void 0?{}:G;if(V==null?0:V.EM)this.fI=LKD(this,V,G),X.lG=this.uB.lG();if(this.Bf())return!0;this.data=X;this.J=Jqw(X,c,function(L,d){var h;(h=n.kU)==null||h.OM(L,d)},V==null?void 0:V.U); +if(!this.J)return!1;this.G=g.jE(this.J,wQs);return!0}; +LX.prototype.Bf=function(){return this.requestType===1}; +LX.prototype.Ks=function(){var X;return((X=this.kU)==null?void 0:X.Ks())||0}; +LX.prototype.isDecorated=function(){var X;return!((X=this.data)==null||!X.An)};dl.prototype.encrypt=function(X){this.N6.exports.AES128CTRCipher_encrypt(this.cipher,X.byteOffset,X.byteLength);return X}; +dl.prototype.vl=function(){return this.cipher===0}; +dl.prototype.dispose=function(){this.N6.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};yp.prototype.encrypt=function(X,c){return HV(this.subtleCrypto.encrypt({name:"AES-CTR",length:128,counter:c},this.key,X).catch(function(V){return Promise.reject(V.name+": "+V.message)}).then(function(V){return new Uint8Array(V)}))}; +yp.prototype.vl=function(){return this.J}; +yp.prototype.dispose=function(){this.J=!0}; +xg.UG(yp,{encrypt:lvD("oan2")});hR.prototype.encrypt=function(X,c){vc(this.G,c);return HV(this.G.encrypt(X))}; +hR.prototype.vl=function(){return this.J}; +hR.prototype.dispose=function(){this.J=!0}; +xg.UG(hR,{encrypt:lvD("oap")});AR.prototype.encrypt=function(X,c){var V=this.N6.xi(c),G=this.J;G.N6.exports.AES128CTRCipher_setCounter(G.cipher,(V!=null?V:c).byteOffset);c=this.N6.xi(X);this.J.encrypt(c!=null?c:X);V&&this.N6.free(V.byteOffset);return c?HV(this.N6.gN(c)):HV(X)}; +AR.prototype.vl=function(){return this.J.vl()}; +AR.prototype.dispose=function(){this.J.dispose()}; +xg.UG(AR,{encrypt:lvD("oalw")});Yk.prototype.encrypt=function(X,c){var V=this,G=$0("");X.length<=this.pQ&&this.J&&!this.X&&(G=EM(G,function(){return V.J?V.J.encrypt(X,c):$0("wasm unavailable")})); +X.length<=this.jh&&(this.J&&this.X&&(G=EM(G,function(){return V.J?V.J.encrypt(X,c):$0("wasm unavailable")})),G=EM(G,function(){return fvs(V,X,c)})); +return EM(EM(G,function(){return pDl(V,X,c)}),function(){return fvs(V,X,c)})}; +Yk.prototype.vl=function(){return this.Z}; +Yk.prototype.dispose=function(){this.Z=!0;var X;(X=this.U)==null||Fk(X,g.Ap);g.Ap(this.J);g.Ap(this.G)};jr.prototype.encrypt=function(X){(0,g.ta)();return(new ym(this.J.J)).encrypt(X,this.iv)}; +jr.prototype.decrypt=function(X,c){(0,g.ta)();return(new ym(this.J.J)).decrypt(X,c)}; +jr.prototype.vl=function(){return this.U}; +jr.prototype.dispose=function(){this.U=!0;g.Ap(this.G)};g.E(Ho,g.I);Ho.prototype.U=function(X,c){if(c){c=c instanceof g.kW?c:br(this,c);var V;((V=this.J.get(X))==null?void 0:eH(V.location))!==eH(c)&&this.J.set(X,new sTt(c,X))}else this.J.delete(X)}; +Ho.prototype.load=function(){var X=this,c,V,G,n,L,d,h,A,Y,H;return g.O(function(a){switch(a.J){case 1:c=X.J.get(0);g.x1(a,2);var W;if(W=c&&!X.G)W=eH(c.location),W=X.G===HC(W);if(W){a.Wl(4);break}return g.b(a,B0l(X,X.G?2:0),5);case 5:if(V=a.G)X.U(0,V),mI(V)&&X.U(1,Rw(V));case 4:g.k1(a,3);break;case 2:G=g.o8(a);g.UQ(G);if(!X.G){a.Wl(3);break}X.G=!1;return g.b(a,X.load(),7);case 7:return a.return();case 3:if(!X.qW.experiments.lc("html5_onesie_probe_ec_hosts")){a.Wl(0);break}g.x1(a,9);n=X;L=n.U;d=3;return g.b(a, +B0l(X,1),11);case 11:return L.call(n,d,a.G),h=X,A=h.U,Y=4,g.b(a,B0l(X,2),12);case 12:A.call(h,Y,a.G);g.k1(a,0);break;case 9:H=g.o8(a),g.UQ(H),g.ZS(a)}})}; +Ho.prototype.D=function(){var X=this,c,V;return g.O(function(G){g.Xn(X.T);c=g.EZ(X.qW.experiments,"html5_onesie_prewarm_max_lact_ms");if(Ox()>=c)return G.return();(V=X.J.get(0))&&zc2(X,V);g.ZS(G)})}; +var uil={IFy:0,ij2:1,Hj7:2,Eqh:3,XcR:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};CYs.prototype.decrypt=function(X){var c=this,V,G,n,L,d,h;return g.O(function(A){switch(A.J){case 1:if(c.J.length&&!c.J[0].isEncrypted)return A.return();c.G=!0;c.Kg.aL("omd_s");V=new Uint8Array(16);eE()?G=new d0(X):n=new ym(X);case 2:if(!c.J.length||!c.J[0].isEncrypted){A.Wl(4);break}L=c.J.shift();if(!G){d=n.decrypt(L.buffer.wM(),V);A.Wl(5);break}return g.b(A,G.decrypt(L.buffer.wM(),V),6);case 6:d=A.G;case 5:h=d;for(var Y=0;Y=4)){var c=UP(this),V=this.xhr;c.rc=V.status;X&&(c.ab=!0);if(V.NJ()){var G="onesie.net";c.msg=V.NJ()}else V.status>=400?G="onesie.net.badstatus":V.jM()?this.Jq||(G="onesie.response.noplayerresponse"):G=V.status===204?"onesie.net.nocontent":"onesie.net.connect";G?this.Km(new tm(G,c)):(this.aL("or_fs"),this.IL.l1((0,g.ta)(),V.e_(),0),this.yg(4),this.s2&&this.Oy("rqs",c));this.s2&&this.Oy("ombre", +"ok."+ +!G);this.wA=!1;ur(this);HWj(this.Kg);if(!this.Hk){this.Ts.stop();var n;(n=this.yh)==null||n.stop()}var L;if(X=(L=this.yp)==null?void 0:KAL(L))for(L=0;L1E3){var X;(X=this.IL)==null||X.B4((0,g.ta)());X=UP(this);if(this.qW.YU()&&this.xhr instanceof GX){var c=this.xhr;X.xrs=c.xhr.readyState;X.xpb=c.J.getLength();X.xdc=c.X}this.Km(new tm("net.timeout",X))}}else(0,g.ta)()-this.IL.J>1E4&&((c=this.IL)==null||c.B4((0,g.ta)()),this.rZ());this.isComplete()||this.p9.start()}}; +g.y.rZ=function(){this.logger.info("Onesie request timed out");this.wA=!1;if(!ur(this)){var X=UP(this);X.timeout="1";this.Km(new tm("onesie.request",X))}}; +g.y.Km=function(X){var c=this;X=lo(X);this.X3?this.J7.Mi(X):(this.Qd.reject(X),this.X3=!0);HWj(this.Kg);this.Hk||this.Ts.stop();this.aL("or_fe");var V,G;(V=this.yp)==null||(G=KAL(V))==null||G.forEach(function(n){c.Oy("pathprobe",n)}); +this.yg(5);this.dispose()}; +g.y.isComplete=function(){return this.state>=3}; +g.y.YB=function(){return this.state===4}; +g.y.bQ=function(X){var c,V;return this.isComplete()||!!((c=this.u_)==null?0:(V=c.get(X))==null?0:V.J)}; +g.y.p8=function(){return!1}; +g.y.fK=function(){return this.state===5}; +g.y.notifySubscribers=function(X){for(var c=0;c102400&&!this.Za&&(this.aL("or100k"),this.Za=!0);if(X.du()){var c=X.Rt(),V=c.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+V}); +this.s2&&this.Oy("ombrss","len."+V);this.X7.feed(c)}if(this.u_)for(var G=g.r(this.u_.keys()),n=G.next();!n.done;n=G.next()){var L=n.value;X=void 0;(X=this.u_.get(L))==null||X.yF();this.notifySubscribers(L)}}catch(d){this.Km(d)}}; +g.y.YA=function(){return this.IL.requestNumber}; +g.y.Ik=function(X){return this.PB.get(X)}; +g.y.Do=function(){return{tC:this.tC,QY:this.QY,isDecorated:!1}};g.E(bWw,g.I);g.y=bWw.prototype;g.y.O8=function(X,c){this.A7=void 0;Sfl(this);s61(this,X,c)}; +g.y.RW=function(X){if(this.J.length===0)return!1;var c=this.J[0];return c instanceof TY?X===this.h7.getCurrentTime()*1E3:!(c instanceof lT&&bLU(c.info))&&Math.abs(c.Zo()-X)<50}; +g.y.hV=function(X){this.G=X;this.A7=(0,g.ta)()+(X.backoffTimeMs||0)}; +g.y.LL=function(X,c){if(X.action===void 0){var V=this.J7.x4();V!==void 0&&this.h7.Md(V)}else if(X.action!==0||!this.YO)switch(X.action===0&&this.policy.Sl&&(X.action=2),V={},V.reason=X.W6S,V.action=X.action,V.rn=c,X.action){case 1:this.policy.Z&&this.X&&this.X.H7(void 0,void 0,V);break;case 0:this.YO=!0;this.videoData.JT()&&this.policy.Z&&this.X&&this.X.H7(void 0,void 0,V,!1);this.h7.aE(V);break;case 2:this.h7.handleError("sabr.config",V,1);break;case 5:vgD(this.J7,!0);break;case 6:vgD(this.J7,!1); +break;case 3:this.policy.EM&&((X=this.ZR.T)!=null&&(X.T=!0),this.h7.handleError("sabr.hostfallback",V))}}; +g.y.Tc=function(X,c,V,G){if(this.policy.G){this.h7.Oy("ssap",{rn:G,v:c,tl:qfU(X)});var n=this.h7.KJ();X={fF:X,context:V,version:c};Cj1(this,V);n?DVL(this,n,X):(this.h7.Oy("ssap",{cacheclips:1,rn:G,v:c}),this.T=X)}}; +g.y.rk=function(X){this.h7.Oy("ssap",{onsbrctxt:X.type,dflt:X.sendByDefault});Cj1(this,X);this.J7.rk(X)}; +g.y.Yl=function(){}; +g.y.RF=function(X){if(X.g2!==void 0&&X.f3){var c=X.g2/X.f3;this.audioTrack.D=!1;this.videoTrack.D=!1;if(this.policy.A7||this.policy.TZ||this.policy.zI)this.h7.yQ.G=!1;this.policy.xQ||this.h7.H1(c,1);if(this.J7.getCurrentTime()!==c){var V={Z3:"sabr_seek",Z2:!0,xp:!0};X.seekSource&&(V.seekSource=X.seekSource);B5(this.h7,c+.1,V)}}}; +g.y.onSnackbarMessage=function(X){this.J7.publish("onSnackbarMessage",X)}; +g.y.G8=function(X){X.ZA&&X.zT&&et(this.ZR,X.ZA,X.zT);this.policy.hJ&&(X.Zh&&X.S$&&(this.ZR.aF=X.Zh/X.S$),X.ow&&X.qA&&(this.ZR.Fn=X.ow/X.qA));this.policy.xQ&&(this.policy.hJ?X.ow&&X.qA&&this.h7.H1(X.ow,X.qA):X.zT&&this.h7.H1(X.zT,1E3));X.d3!=null&&this.J7.zd(X.d3);this.policy.sY&&X.R6&&(X=((0,g.ta)()-X.R6)/1E3,this.h7.WU.Mm(1,X))}; +g.y.Fe=function(X){this.h7.Fe(X)}; +g.y.m_=function(X){return this.ZU.has(X)}; +g.y.b9=function(X,c,V){this.policy.U&&this.h7.Oy("sabrctxtplc",{start:X?X.join("_"):"",stop:c?c.join("_"):"",discard:V?V.join("_"):""});if(X){X=g.r(X);for(var G=X.next();!G.done;G=X.next())this.ZU.add(G.value)}if(c)for(c=g.r(c),X=c.next();!X.done;X=c.next())X=X.value,this.ZU.has(X)&&this.ZU.delete(X);if(V)for(V=g.r(V),c=V.next();!c.done;c=V.next())c=c.value,this.videoData.sabrContextUpdates.has(c)&&(this.videoData.sabrContextUpdates.delete(c),c===3&&(this.videoData.wU=""))}; +g.y.EC=function(){}; +g.y.gC=function(X){this.B=X}; +g.y.L6=function(X){this.Hl=X}; +g.y.i9=function(X,c){CG(this.policy,X,4,c)}; +g.y.fO=function(X){if(X==null?0:X.bv)if(X=X.bv.KX){X=g.r(X);for(var c=X.next();!c.done;c=X.next())if(c=c.value,c.formatId){var V=this.ZR.U.get(JQ(c.formatId));V&&V.info&&(V.info.debugInfo=c.debugInfo)}}}; +g.y.rK=function(X){(X=X==null?void 0:X.reloadPlaybackParams)&&this.J7.publish("reloadplayer",X)}; +g.y.tO=function(){return this.J7.tO()||""}; +g.y.Ks=function(){var X=Md(this.audioTrack,!0)*1E3,c=Md(this.videoTrack,!0)*1E3;return Math.min(X,c)}; +g.y.OM=function(X,c){this.h7.Oy(X,c)}; +g.y.nT=function(X){ZQj(this.h7,fYl(this.fS,X))}; +g.y.R2=function(){g.I.prototype.R2.call(this);this.G=void 0;s61(this,!0,"i");this.J=[]};cHl.prototype.Dg=function(X,c){if(this.X)return dOl(this,c);if(c=Kz(X)){var V=c.G;V&&V.U&&V.J&&(X=X.U.length?X.U[0]:null)&&X.state>=2&&!X.fK()&&X.info.Hb===0&&(this.X=X,this.D=V,this.G=c.info,this.B=this.startTimeSecs=Date.now()/1E3,this.Z=this.G.startTime)}return NaN}; +cHl.prototype.clear=function(){this.G=this.D=this.X=null;this.J=this.Z=this.B=this.startTimeSecs=NaN;this.U=!1};g.E(g.ir,g.I);g.y=g.ir.prototype;g.y.initialize=function(X,c,V){this.logger.debug(function(){return"Initialized, t="+X}); +X=X||0;this.policy.J||(c=IYs(this.J),k2D(this.J7,new zX(c.video,c.reason)),this.J7.eM(new zX(c.audio,c.reason)));this.ZR.isManifestless&&avw(this.Z);this.D&&G2S(this.D,this.videoTrack.J);c=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var G=!this.ZR.isManifestless;this.policy.Dw&&(G=G||this.ZR.bf);this.policy.Pl||(this.currentTime=G?X:c);this.policy.A7&&this.seek(this.getCurrentTime(),{}).Vr(function(){}); +if(this.policy.J){var n;((n=this.G_)==null?0:RzD(n,this.tO()||""))&&jv2(this)&&Yql(this,this.videoTrack)&&Yql(this,this.audioTrack)&&(iWU(this.U,this.G_),this.policy.B&&AHU(this))}else this.A7&&(HQD(this,this.videoTrack),HQD(this,this.audioTrack),Sm2(this.A7),delete this.A7);V?(this.policy.tf?(this.NE=V,qr(this,V)):qr(this,!1),g.Xn(this.rb)):(V=this.getCurrentTime()===0,qd(this.Z,this.videoTrack,this.videoTrack.J,V),qd(this.Z,this.audioTrack,this.audioTrack.J,V),this.policy.J&&lVD(this.U,!0),this.policy.A7|| +this.seek(this.getCurrentTime(),{}).Vr(function(){}),this.timing.tick("gv")); +(this.ZR.uH||this.ZR.HE||this.ZR.Hl||this.ZR.oZ||this.ZR.Bd)&&this.J7.XZ(this.ZR)}; +g.y.resume=function(){if(this.isSuspended||this.wi){this.logger.debug("Resumed.");this.oU=this.wi=this.isSuspended=!1;try{this.Dg()}catch(X){g.Ni(X)}}}; +g.y.Th=function(){return!this.policy.Pg}; +g.y.xr=function(X,c){X=X===void 0?!1:X;c=c===void 0?!1:c;this.logger.debug("detaching media source");FJD(this);this.J7.Rx()&&(this.B=NaN);X?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.wy&&this.Oy("loader",{setsmb:1}),this.policy.NW=!0,this.pm()):(this.policy.tf?qr(this,this.NE):qr(this,!1),c||this.pm())}; +g.y.setAudioTrack=function(X,c,V){V=V===void 0?!1:V;if(!this.vl()){var G=!isNaN(c);V&&G&&(this.audioTrack.A7=Date.now(),this.policy.LJ&&(this.T_=!0));if(this.policy.J){var n=this.G.e1(X.id,G);this.logger.debug(function(){return"Logging new audio format: "+n.J.info.id}); +this.J7.eM(n)}else{var L=gij(this.J,X.id,G);this.logger.debug(function(){return"Logging new audio format: "+L.audio.info.id}); +this.J7.eM(new zX(L.audio,L.reason))}if(G&&(V=this.audioTrack.J.index.gJ(c),this.Oy("setAudio",{id:X.id,cmt:c,sq:V}),V>=0)){this.policy.J&&(this.policy.bH||(this.G.Z=!0),this.O8(!0,"mosaic"));gY(this.audioTrack,V,NaN,NaN);!this.policy.YM&&this.ZR.isLive&&oE(this.ZR,V,!1);return}this.J7.Bz()}}; +g.y.setPlaybackRate=function(X){X!==this.C.getPlaybackRate()&&this.C.setPlaybackRate(X)}; +g.y.jE=function(X){var c=this.U.B;this.U.gC(X);this.Oy("scfidc",{curr:JQ(c),"new":JQ(X)});X&&JQ(X)!==JQ(c)&&(this.O8(!1,"caption change"),this.Dg())}; +g.y.fG=function(X){this.U.L6(X)}; +g.y.rI=function(X){var c=X.J.info.oi();this.logger.debug(function(){return"New "+(c?"audio":"video")+" format from SABR: "+A8(X.J.info)}); +c?this.J7.eM(X):k2D(this.J7,X)}; +g.y.nT=function(X){g_(X.KS[X.KS.length-1])&&ZQj(this,fYl(this.J,X.KS[0].J))}; +g.y.Cj=function(){return this.J7.Cj()}; +g.y.jy=function(){return this.J7.jy()}; +g.y.Fe=function(X){this.J7.j().YU()&&this.Oy("sps",{status:X.cF||""});if(X.cF===1)this.J7.videoData.v8=0;else if(X.cF===2||X.cF===3){var c=!1;if(X.cF===3){c=this.J7.P_();var V;this.G2=(V=X.vt2)!=null?V:Infinity;this.J7.videoData.v8=c+1;(c=HLD(this))&&this.Nn(!0)}this.J7.Lv(!0,c)}}; +g.y.nU=function(){return this.J7.nU()}; +g.y.F9=function(){return this.J7.F9()}; +g.y.g4=function(X){this.J7.g4(X)}; +g.y.Jbc=function(){var X,c=(X=this.J7.vg())==null?void 0:X.getCurrentTime();c?this.J7.Oy("rms",{cta:c}):g.Xn(this.oZ)}; +g.y.Dg=function(){Qvs(this);if(this.ev&&kK(this.ev)&&!this.ev.rM()&&(!this.policy.Pl||isFinite(this.getCurrentTime()))){var X=ex(this.videoTrack);X=this.policy.Yj&&X&&X.Dm();this.ZR.isManifestless&&this.ZR.X&&ZJ(this.ZR)?(this.B=ZJ(this.ZR),this.ev.HF(this.B)):JF(this.ZR)&&!X?isNaN(this.B)?(this.B=this.getCurrentTime()+3600,this.ev.HF(this.B)):this.B<=this.getCurrentTime()+1800&&(this.B=Math.max(this.B+1800,this.getCurrentTime()+3600),this.ev.HF(this.B)):this.ev.isView||(X=Math.max(this.audioTrack.getDuration(), +this.videoTrack.getDuration()),(!isFinite(this.B)||this.B!==X)&&X>0&&(this.ev.HF(X),this.B=X))}if(!this.vl())if(Qq(this.ZR)&&this.ZR.fK()){var c=this.ZR;this.handleError("manifest.net.retryexhausted",c.T_?{rc:c.Yt}:{rc:c.Yt.toString()},1)}else if(this.policy.J)a:{try{zzs(this.U);this.ZR.isManifestless&&this.policy.B&&P5(this.yQ);if(wJO(this)&&this.ev&&!iX(this.ev)&&this.videoTrack.Hl&&this.audioTrack.Hl){this.Oy("ssap",{delaysb:1,v:this.videoTrack.J.info.id,vf:this.videoTrack.J.info.VK,a:this.audioTrack.J.info.id, +af:this.audioTrack.J.info.VK});var V=this.ev,G=this.videoTrack.J,n=this.audioTrack.J;!iX(V)&&n&&G&&(bZD(V,G.info,n.info,this.policy.pJ),EB8(this,V))}var L;((L=this.ev)==null?0:iX(L))&&this.u2();lVD(this.U)}catch(h){g.UQ(h);c=h;if(c.message.includes("changeType")){this.Oy("ssap",{exp:c.name,msg:c.message,s:c.stack});break a}this.handleError("fmt.unplayable",{exp:c.name,msg:c.message,s:c.stack},1)}u2w(this);g.Xn(this.LS)}else if(!this.ZR.G||!Nfs(this.videoTrack)&&!Nfs(this.audioTrack)||(this.videoTrack.Z|| +this.audioTrack.Z)&&this.policy.HP?V=!1:(this.pm(),this.J7.seekTo(Infinity,{Z3:"checkLoaderTracksSync",H1:!0}),V=!0),!V){Qvs(this);this.ZR.isManifestless&&(UYl(this.videoTrack),UYl(this.audioTrack),P5(this.yQ),(V=Kz(this.videoTrack))&&V.G&&(V=V.G.U&&!this.policy.uw,this.Oy(V===this.policy.T.FK?"strm":"strmbug",{strm:V,sfmp4:this.policy.T.FK,dfs:this.policy.uw},!0)));if(this.ev)this.u2();else if(this.policy.X){var d;V=!1;if(this.policy.P8)for(G=g.r([this.videoTrack,this.audioTrack]),n=G.next();!n.done;n= +G.next()){L=n.value;for(n=Kz(L);n&&L.Hz()!==ex(L);n=Kz(L))L.P3(n);V=V||!!n}else(c=Kz(this.videoTrack))&&this.videoTrack.P3(c),(d=Kz(this.audioTrack))&&this.audioTrack.P3(d);tA(this.videoTrack)&&tA(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(c||d||V)&&KX(this)}az8(this);qd(this.Z,this.videoTrack,this.videoTrack.J,!1);qd(this.Z,this.audioTrack,this.audioTrack.J,!1);this.policy.rp||vB1(this,this.videoTrack,this.audioTrack);nCD(this.Z,this.videoTrack,this.audioTrack); +nCD(this.Z,this.audioTrack,this.videoTrack);u2w(this);this.D&&(c=this.D,c.X?(d=c.B+c.policy.ou,c.U||(d=Math.min(d,c.startTimeSecs+c.policy.Bo)),c=Math.max(0,d*1E3-Date.now())):c=NaN,isNaN(c)||g.Xn(this.Bd,c));g.Xn(this.LS)}}; +g.y.aE=function(X){this.J7.aE(X)}; +g.y.u2=function(){var X=this;if(this.ev){var c=this.ev.J,V=this.ev.G;CNO(this,this.audioTrack);CNO(this,this.videoTrack);var G=e3s(this);if(G){if(this.policy.bA){if(!c.NT()){var n=Kz(this.audioTrack);if(n){if(!Sr(this,this.audioTrack,c,n.info))return;R3t(this,this.audioTrack,c,n)}}if(!V.NT()&&(n=Kz(this.videoTrack))){if(!Sr(this,this.videoTrack,V,n.info))return;R3t(this,this.videoTrack,V,n)}}this.Ac||(this.Ac=(0,g.ta)(),this.logger.debug(function(){return"Appends pause start "+X.Ac+" reason "+G}), +this.policy.U&&this.Oy("apdps",{r:G}))}else if(this.Ac&&(oBs(this,this.Ac),this.Ac=0),JHs(this),n=!1,this.policy.G&&P2(this.videoTrack)||!Mjw(this,this.videoTrack,V)||(n=!0,jqw(this.timing),WKD(this.timing)),this.ev&&!this.ev.AP()&&(this.policy.G&&P2(this.audioTrack)||!Mjw(this,this.audioTrack,c)||(n=!0,H8s(this.timing),wtt(this.timing)),!this.vl()&&this.ev)){if(!this.policy.Pg&&tA(this.videoTrack)&&tA(this.audioTrack)&&kK(this.ev)&&!this.ev.rM()){V=!1; +V=ex(this.audioTrack);if(this.policy.G){var L;c=(L=this.AX)==null?void 0:gZ(L,V.X*1E3);V=!(!c||c.clipId!==V.clipId);this.Oy("ssap",{eos:V})}else L=V.J,V=L===this.ZR.J[L.info.id];V&&(this.logger.debug("Setting EOS"),tMl(this.ev),C3s(this.schedule))}n&&!this.ev.isAsync()&&KX(this)}}}; +g.y.Pr=function(X){var c,V=X===((c=this.ev)==null?void 0:c.J)?this.audioTrack:this.videoTrack,G;if((G=Kz(V))==null?0:G.isLocked){if(this.J7.j().YU()){var n;this.Oy("eosl",{ounlock:(n=Kz(V))==null?void 0:n.info.u3()})}var L;UOs(this,X===((L=this.ev)==null?void 0:L.J))}var d;if(this.policy.LJ&&X===((d=this.ev)==null?void 0:d.J)&&this.yK){c=this.yK-this.getCurrentTime();var h;this.J7.Oy("asl",{l:c,xtag:(h=ex(this.audioTrack))==null?void 0:h.J.info.J});this.T_=!1;this.yK=0}X.j_()&&X.KE().length===0&& +(X.h4(),this.ev&&!this.ev.j_()&&(this.J7.j().YU()&&this.J7.Oy("rms",{ld:"seek"}),this.ev.B=performance.now(),this.J7.eg(),this.J7.j().YU()&&g.Xn(this.oZ)));var A;(A=V.C)!=null&&LG(A,0);this.policy.G2?jTU(this):this.Dg()}; +g.y.I3y=function(X){if(this.ev){var c=ex(X===this.ev.J?this.audioTrack:this.videoTrack);if(X=X.Nu())for(var V=0;V5&&X.G_.shift();c=c.Bl;var G;this.policy.Ly&&((G=this.J7.getVideoData())==null?0:G.enableServerStitchedDai)&&(G=sEw(this.audioTrack,c),V=sEw(this.videoTrack,c),G!==0&&V!==0&&G!==V&&this.handleError("ssdai.avsync",{sq:c,a:G,v:V},0))}}; +g.y.w4=function(X,c,V,G){X.info.video&&this.X.w4(c,V,G)}; +g.y.Yd=function(X){this.J.Yd(X)}; +g.y.vK=Gt(20);g.y.eq=function(X){this.AX=X;var c;(c=this.audioTrack.T)!=null&&(c.nM=X);(c=this.videoTrack.T)!=null&&(c.nM=X);c=this.U;c.T&&(c.h7.Oy("ssap",{addcacheclips:1,v:c.T.version,tl:qfU(c.T.fF)}),DVL(c,X,c.T),c.T=void 0)}; +g.y.KJ=function(){return this.AX}; +g.y.d8=function(){return this.videoTrack.D||this.audioTrack.D}; +g.y.seek=function(X,c){if(this.vl())return xc();if(this.d8())return xc("seeking to head");if(this.policy.A7&&!isFinite(X))return ukl(this.yQ),g.Ze(Infinity);Qvs(this);this.yX=(0,g.ta)();this.policy.J||az8(this,X);this.ev&&this.ev.J&&this.ev.G&&!this.J7.getVideoData().p$&&(this.ev.J.isLocked()||this.ev.G.isLocked())&&this.J7.Bz({reattachOnLockedBuffer:1,vsb:""+this.ev.G.isLocked(),asb:""+this.ev.J.isLocked()});var V=this.getCurrentTime(),G=this.yQ.seek(X,c);this.policy.Pl||(this.currentTime=G);uT(this.X, +X,V,this.policy.wU&&!c.Z2);KX(this);return g.Ze(G)}; +g.y.RW=function(X){return this.policy.J&&this.U.RW(X)}; +g.y.m_=function(X){return this.U.m_(X)}; +g.y.O8=function(X,c){this.U.O8(X,c)}; +g.y.getCurrentTime=function(){if(this.policy.Pl){var X=this.h1()||0;return this.J7.getCurrentTime()-X}return this.currentTime}; +g.y.yS=function(){return this.audioTrack.J.info}; +g.y.Hs=function(){return this.videoTrack.J.info}; +g.y.SF=function(){return this.audioTrack.J.info.VK}; +g.y.DW=function(){return this.videoTrack.J.info.VK}; +g.y.R2=function(){try{this.xr(),Nm(this.audioTrack),Nm(this.videoTrack),TH(this.audioTrack),TH(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.I.prototype.R2.call(this)}catch(X){g.Ni(X)}}; +g.y.handleError=function(X,c,V){V=V===void 0?0:V;var G=O3(V);X==="fmt.unplayable"&&this.ZR.isLive&&(this.policy.bA=!1,kF(this.ZR));c=new tm(X,c,V);g.SD(this);bo(c.details);this.J7.handleError(c);X!=="html5.invalidstate"&&c.errorCode!=="fmt.unplayable"&&X!=="fmt.unparseable"&&G&&this.dispose()}; +g.y.J1=function(){var X=ex(this.audioTrack),c=ex(this.videoTrack);X={lct:this.getCurrentTime().toFixed(3),lsk:this.yQ.isSeeking(),lmf:this.J.J.isLocked(),lbw:Zv(this.schedule).toFixed(3),lhd:r0(this.schedule).toFixed(3),lst:((this.schedule.D.JP()||0)*1E9).toFixed(3),laa:X?X.u3():"",lva:c?c.u3():"",lar:this.audioTrack.G?this.audioTrack.G.u3():"",lvr:this.videoTrack.G?this.videoTrack.G.u3():"",laq:""+Ok(this.audioTrack),lvq:""+Ok(this.videoTrack)};this.ev&&!this.ev.AP()&&this.ev.J&&this.ev.G&&(X.lab= +jU(this.ev.J.KE()),X.lvb=jU(this.ev.G.KE()));this.Ac&&(X.lapt=((0,g.ta)()-this.Ac).toFixed(0),X.lapr=e3s(this));this.Pl&&(X.lapmabht=((0,g.ta)()-this.Pl).toFixed(0),X.lapmabh=T4(this,this.audioTrack).toFixed(0));this.Hl&&(X.lapmvbht=((0,g.ta)()-this.Hl).toFixed(0),X.lapmvbh=T4(this,this.videoTrack).toFixed(0));this.wy&&(X.lapsdai=((0,g.ta)()-this.wy).toFixed(0));return X}; +g.y.pm=function(){try{this.policy.J&&this.U.O8(!1,"pending"),this.audioTrack.pm(),this.videoTrack.pm()}catch(X){g.Ni(X)}this.policy.X=""}; +g.y.gr=function(){return Ry(this.C)}; +g.y.Oy=function(X,c,V){this.J7.Oy(X,c,V===void 0?!1:V)}; +g.y.tO=function(){return this.J7.tO()}; +g.y.H1=function(X,c){X/=c;isNaN(this.timestampOffset)&&DOL(this,X-Math.min(X,this.policy.W8));return(X-this.timestampOffset)*c}; +g.y.h1=function(){return this.timestampOffset}; +g.y.isSeeking=function(){return this.yQ.isSeeking()}; +g.y.BN=function(){this.X.BN()}; +g.y.LW=function(X,c,V){c=c===void 0?!1:c;V=V===void 0?{}:V;this.policy.J?this.G.LW(X,c,V):this.J.LW(X,c,V)}; +g.y.Dl=function(X,c){if(!this.T)return!1;var V=this.videoTrack.J.index.gJ(X);return this.T.Dl(X,c,V)}; +g.y.X1=function(X,c){if(this.T&&this.X.X1(X,this.T))return DOL(this,this.timestampOffset-c),KX(this),this.policy.Z&&(kF(this.ZR),TH(this.audioTrack),TH(this.videoTrack),this.pm()),!0;c=this.videoTrack.J.index.gJ(X);this.handleError("ad.skipfailed",{dec:!!this.T,t:X.toFixed(3),sq:c});return!1}; +g.y.getManifest=function(){return this.ZR}; +g.y.isOffline=function(){return!!this.J7.getVideoData().cotn}; +g.y.kx=function(X,c){this.J7.kx(X,c)}; +g.y.Jl=function(X){if(this.policy.dh)this.policy.J&&this.U.O8(!0,"utc"),this.Dg();else{var c=this.J7.getVideoData().DH;if(c){var V=this.Z;V.ij=X;V.DH=c;co(this)}}}; +g.y.Md=function(X){this.videoTrack.D=!1;this.audioTrack.D=!1;this.yQ.G=!1;this.J7.Md(X)}; +g.y.hD=function(X){this.yQ.hD(X-this.h1())}; +g.y.Ns=function(){this.J7.Ns()}; +g.y.Nn=function(X){X!==this.policy.pY&&((this.policy.pY=X)||this.Dg())}; +g.y.t8=function(X,c){var V=this.audioTrack.DQ,G=this.videoTrack.DQ;V&&G&&(V.remove(X,c),G.remove(X,c))}; +g.y.Bz=function(X){this.J7.Bz(X)}; +g.y.Cn=function(X){this.J7.Cn(X)}; +g.y.P_=function(){return this.J7.P_()}; +g.y.h8=function(){kF(this.ZR);this.pm()};g.y=g.Xa.prototype;g.y.eF=function(X,c,V,G,n,L){return this.nM.eF(X,c,V,G,n,L)}; +g.y.GD=function(X,c,V,G,n,L){return this.nM.GD(X,c,V,G,n,L)}; +g.y.mw=function(X){return this.nM.mw(X)}; +g.y.Rw=function(X){this.nM.Rw(X)}; +g.y.H7=function(X,c,V,G){return this.nM.H7(X,c,V,G)}; +g.y.BN=function(){this.nM.BN()}; +g.y.Dl=function(X,c,V){return this.nM.Dl(X,c,V)}; +g.y.uP=function(X,c){this.nM.uP(X,c)}; +g.y.im=function(){this.nM.im()}; +g.y.A6=Gt(62);g.y.tZ=function(X,c,V){this.nM.tZ(X,c,V)}; +g.y.lZ=Gt(65);g.y.Xe=function(X,c,V,G,n,L,d,h,A){this.nM.Xe(X,c,V,G,n,L,d,h,A)}; +g.y.XH=function(X){this.nM.XH(X)}; +g.y.Ob=function(X){return this.nM.Ob(X)}; +g.y.WJ=function(X){return this.nM.WJ(X)};g.E(cG,g.$T);g.E(VZ,cG);VZ.prototype.B=function(X,c){if(X&&c){var V=Number(CB(X,"cpi"))*1+1;isNaN(V)||V<=0||Vthis.U&&(this.U=V,g.tN(this.J)||(this.J={},this.X.stop(),this.G.stop())),this.J[c]=X,g.Xn(this.G))}}; +VZ.prototype.Z=function(){for(var X=g.r(Object.keys(this.J)),c=X.next();!c.done;c=X.next()){var V=c.value;c=this.publish;for(var G=this.U,n=this.J[V].match(I3),L=[],d=g.r(n[6].split("&")),h=d.next();!h.done;h=d.next())h=h.value,h.indexOf("cpi=")===0?L.push("cpi="+G.toString()):h.indexOf("ek=")===0?L.push("ek="+g.i6(V)):L.push(h);n[6]="?"+L.join("&");V="skd://"+n.slice(2).join("");n=V.length*2;G=new Uint8Array(n+4);G[0]=n%256;G[1]=(n-G[0])/256;for(n=0;n0)for(var V=g.r(this.J),G=V.next();!G.done;G=V.next())if(c===G.value.info.cryptoPeriodIndex){c=!0;break a}c=!1}if(!c){c=(0,g.ta)();a:{V=X.cryptoPeriodIndex;if(!isNaN(V)){G=g.r(this.U.values());for(var n=G.next();!n.done;n=G.next())if(Math.abs(n.value.cryptoPeriodIndex-V)<=1){V=!0;break a}}V=!1}V?(V=X.J,V=Math.max(0,Math.random()*((isNaN(V)?120:V)-30))*1E3):V=0;this.publish("log_qoe",{wvagt:"delay."+V,cpi:X.cryptoPeriodIndex,reqlen:this.J.length, +ignore:this.X});V<=0?ctw(this,X):this.X||(this.J.push({time:c+V,info:X}),g.Xn(this.G,V))}}; +GQ.prototype.R2=function(){this.J=[];cG.prototype.R2.call(this)};var Wk={},d$U=(Wk.DRM_TRACK_TYPE_AUDIO="AUDIO",Wk.DRM_TRACK_TYPE_SD="SD",Wk.DRM_TRACK_TYPE_HD="HD",Wk.DRM_TRACK_TYPE_UHD1="UHD1",Wk);g.E(nzt,g.I);g.E(hJj,g.$T);g.y=hJj.prototype;g.y.GS=function(X){var c=this;this.vl()||X.size<=0||(X.forEach(function(V,G){var n=fx(c.G)?G:V;G=new Uint8Array(fx(c.G)?V:G);fx(c.G)&&oz2(G);V=g.rQ(G,4);oz2(G);G=g.rQ(G,4);c.J[V]?c.J[V].status=n:c.J[G]?c.J[G].status=n:c.J[V]={type:"",status:n}}),Qx2(this,","),nl(this,{onkeystatuschange:1}),this.status="kc",this.publish("keystatuseschange",this))}; +g.y.error=function(X,c,V,G){this.vl()||(this.publish("licenseerror",X,c,V,G),X==="drm.provision"&&(X=(Date.now()-this.B)/1E3,this.B=NaN,this.publish("ctmp","provf",{et:X.toFixed(3)})));O3(c)&&this.dispose()}; +g.y.shouldRetry=function(X,c){return!X&&this.requestNumber===c.requestNumber}; +g.y.R2=function(){this.J={};g.$T.prototype.R2.call(this)}; +g.y.J1=function(){var X={ctype:this.T.contentType||"",length:this.T.initData.length,requestedKeyIds:this.kO,cryptoPeriodIndex:this.cryptoPeriodIndex};this.U&&(X.keyStatuses=this.J);return X}; +g.y.getInfo=function(){var X=this.X.join();if(Ll(this)){var c=new Set,V;for(V in this.J)this.J[V].status!=="usable"&&c.add(this.J[V].type);X+="/UKS."+Array.from(c)}return X+="/"+this.cryptoPeriodIndex}; +g.y.Yc=function(){return this.url};g.E(dK,g.I);g.y=dK.prototype;g.y.uI=function(X){if(this.Z){var c=X.messageType||"license-request";this.Z(new Uint8Array(X.message),c)}}; +g.y.GS=function(){this.D&&this.D(this.J.keyStatuses)}; +g.y.onClosed=function(){this.vl()||g.K1("xboxone")&&this.U&&this.U("closed")}; +g.y.Ae=function(X){this.Z&&this.Z(X.message,"license-request")}; +g.y.GK=function(X){if(this.U){if(this.G){var c=this.G.error.code;X=this.G.error.systemCode}else c=X.errorCode,X=X.systemCode;this.U("t.prefixedKeyError;c."+c+";sc."+X,c,X)}}; +g.y.Ow=function(){this.B&&this.B()}; +g.y.update=function(X){var c=this;if(this.J)return(St.isActive()?St.WF("emeupd",function(){return c.J.update(X)}):this.J.update(X)).then(null,vV(function(V){OGO(c,"t.update",V)})); +this.G?this.G.update(X):this.element.addKey?this.element.addKey(this.T.keySystem,X,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.T.keySystem,X,this.initData,this.sessionId);return p1()}; +g.y.R2=function(){this.J&&(this.C?this.J.close().catch(g.UQ):this.J.close());this.element=null;g.I.prototype.R2.call(this)};g.E(yZ,g.I);g.y=yZ.prototype;g.y.Xl=function(){var X=this;if(this.J.keySystemAccess)return(St.isActive()?St.WF("emenew",function(){return X.J.keySystemAccess.createMediaKeys()}):this.J.keySystemAccess.createMediaKeys()).then(function(V){if(!X.vl())if(X.G=V,St.isActive())St.WF("emeset",function(){return X.element.setMediaKeys(V)}); +else{var G;(G=X.element)==null||G.setMediaKeys(V)}}); +if(gf(this.J))this.U=new (MY())(this.J.keySystem);else if(px(this.J)){this.U=new (MY())(this.J.keySystem);var c;(c=this.element)==null||c.webkitSetMediaKeys(this.U)}else St.isActive()&&this.Oy("emev",{v:"01b"}),O1(this.Z,this.element,["keymessage","webkitkeymessage"],this.Hr),O1(this.Z,this.element,["keyerror","webkitkeyerror"],this.xe),O1(this.Z,this.element,["keyadded","webkitkeyadded"],this.m0);return null}; +g.y.setServerCertificate=function(){return this.G.setServerCertificate?this.J.flavor==="widevine"&&this.J.Bo?this.G.setServerCertificate(this.J.Bo):NY(this.J)&&this.J.T_?this.G.setServerCertificate(this.J.T_):null:null}; +g.y.createSession=function(X,c){var V=X.initData;if(this.J.keySystemAccess){c&&c("createsession");var G=this.G.createSession();IE(this.J)?V=lAj(V,this.J.T_):NY(this.J)&&(V=XOt(V)||new Uint8Array(0));c&&c("genreq");var n=St.isActive()?St.WF("emegen",function(){return G.generateRequest(X.contentType,V)}):G.generateRequest(X.contentType,V); +var L=new dK(null,null,null,G,null,this.D);n.then(function(){c&&c("genreqsuccess")},vV(function(h){OGO(L,"t.generateRequest",h)})); +return L}if(gf(this.J))return gO8(this,V);if(px(this.J))return MxU(this,V);if((n=this.element)==null?0:n.generateKeyRequest)this.element.generateKeyRequest(this.J.keySystem,V);else{var d;(d=this.element)==null||d.webkitGenerateKeyRequest(this.J.keySystem,V)}return this.X=new dK(this.element,this.J,V,null,null,this.D)}; +g.y.Hr=function(X){var c=fAj(this,X);c&&c.Ae(X)}; +g.y.xe=function(X){var c=fAj(this,X);c&&c.GK(X)}; +g.y.m0=function(X){var c=fAj(this,X);c&&c.Ow(X)}; +g.y.getMetrics=function(){if(this.G&&this.G.getMetrics)try{var X=this.G.getMetrics()}catch(c){}return X}; +g.y.R2=function(){this.U=this.G=null;var X;(X=this.X)==null||X.dispose();X=g.r(Object.values(this.B));for(var c=X.next();!c.done;c=X.next())c.value.dispose();this.B={};g.I.prototype.R2.call(this);delete this.element};g.y=hZ.prototype;g.y.get=function(X){X=this.findIndex(X);return X!==-1?this.values[X]:null}; +g.y.remove=function(X){X=this.findIndex(X);X!==-1&&(this.keys.splice(X,1),this.values.splice(X,1))}; +g.y.removeAll=function(){this.keys=[];this.values=[]}; +g.y.set=function(X,c){var V=this.findIndex(X);V!==-1?this.values[V]=c:(this.keys.push(X),this.values.push(c))}; +g.y.findIndex=function(X){return g.Di(this.keys,function(c){return g.jg(X,c)})};g.E(NY1,g.$T);g.y=NY1.prototype;g.y.syy=function(X){this.WS({onecpt:1});X.initData&&uRs(this,new Uint8Array(X.initData),X.initDataType)}; +g.y.Fth=function(X){this.WS({onndky:1});uRs(this,X.initData,X.contentType)}; +g.y.AF=function(X){this.WS({onneedkeyinfo:1});this.qW.S("html5_eme_loader_sync")&&(this.D.get(X.initData)||this.D.set(X.initData,X));TYs(this,X)}; +g.y.t5=function(X){this.U.push(X);AZ(this)}; +g.y.createSession=function(X){var c=zPD(this)?nFU(X):g.rQ(X.initData);this.G.get(c);this.NW=!0;X=new hJj(this.videoData,this.qW,X,this.drmSessionId);this.G.set(c,X);X.subscribe("ctmp",this.ZE,this);X.subscribe("keystatuseschange",this.GS,this);X.subscribe("licenseerror",this.Li,this);X.subscribe("newlicense",this.oS,this);X.subscribe("newsession",this.qg,this);X.subscribe("sessionready",this.Wi,this);X.subscribe("fairplay_next_need_key_info",this.z6,this);this.qW.S("html5_enable_vp9_fairplay")&&X.subscribe("qualitychange", +this.qr,this);this.qW.S("html5_enable_sabr_drm_hd720p")&&X.subscribe("sabrlicenseconstraint",this.JOy,this);H98(X,this.X)}; +g.y.oS=function(X){this.vl()||(this.WS({onnelcswhb:1}),X&&!this.heartbeatParams&&(this.heartbeatParams=X,this.publish("heartbeatparams",X)))}; +g.y.qg=function(){this.vl()||(this.WS({newlcssn:1}),this.U.shift(),this.NW=!1,AZ(this))}; +g.y.Wi=function(){if(gf(this.J)&&(this.WS({onsnrdy:1}),this.Hl--,this.Hl===0)){var X=this.G_,c,V;(c=X.element)==null||(V=c.msSetMediaKeys)==null||V.call(c,X.U)}}; +g.y.GS=function(X){if(!this.vl()){!this.wy&&this.videoData.S("html5_log_drm_metrics_on_key_statuses")&&(BYL(this),this.wy=!0);this.WS({onksch:1});var c=this.qr;if(!Ll(X)&&g.q8&&X.G.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var V="large";else{V=[];var G=!0;if(Ll(X))for(var n=g.r(Object.keys(X.J)),L=n.next();!L.done;L=n.next())L=L.value,X.J[L].status==="usable"&&V.push(X.J[L].type),X.J[L].status!=="unknown"&&(G=!1);if(!Ll(X)||G)V=X.X;V=rtD(V)}c.call(this,V);this.publish("keystatuseschange", +X)}}; +g.y.ZE=function(X,c){this.vl()||this.publish("ctmp",X,c)}; +g.y.z6=function(X,c){this.vl()||this.publish("fairplay_next_need_key_info",X,c)}; +g.y.Li=function(X,c,V,G){this.vl()||(this.videoData.S("html5_log_drm_metrics_on_error")&&BYL(this),this.publish("licenseerror",X,c,V,G))}; +g.y.PN=function(){return this.T}; +g.y.qr=function(X){var c=g.dV("auto",X,!1,"l");if(this.videoData.AZ){if(this.T.w6(c))return}else if(ss8(this.T,X))return;this.T=c;this.publish("qualitychange");this.WS({updtlq:X})}; +g.y.JOy=function(X){this.videoData.sabrLicenseConstraint=X}; +g.y.R2=function(){this.J.keySystemAccess&&this.element&&(this.kO?this.element.setMediaKeys(null).catch(g.UQ):this.element.setMediaKeys(null));this.element=null;this.U=[];for(var X=g.r(this.G.values()),c=X.next();!c.done;c=X.next())c=c.value,c.unsubscribe("ctmp",this.ZE,this),c.unsubscribe("keystatuseschange",this.GS,this),c.unsubscribe("licenseerror",this.Li,this),c.unsubscribe("newlicense",this.oS,this),c.unsubscribe("newsession",this.qg,this),c.unsubscribe("sessionready",this.Wi,this),c.unsubscribe("fairplay_next_need_key_info", +this.z6,this),this.qW.S("html5_enable_vp9_fairplay")&&c.unsubscribe("qualitychange",this.qr,this),c.dispose();this.G.clear();this.B.removeAll();this.D.removeAll();this.heartbeatParams=null;g.$T.prototype.R2.call(this)}; +g.y.J1=function(){for(var X={systemInfo:this.J.J1(),sessions:[]},c=g.r(this.G.values()),V=c.next();!V.done;V=c.next())X.sessions.push(V.value.J1());return X}; +g.y.getInfo=function(){return this.G.size<=0?"no session":""+this.G.values().next().value.getInfo()+(this.Z?"/KR":"")}; +g.y.WS=function(X,c){c=c===void 0?!1:c;this.vl()||(bo(X),(this.qW.YU()||c)&&this.publish("ctmp","drmlog",X))};g.E(Skj,g.I);g.y=Skj.prototype;g.y.A0=function(){return!!this.C4}; +g.y.oM=function(){return this.G}; +g.y.handleError=function(X){var c=this;GYS(this,X);if((X.errorCode!=="html5.invalidstate"&&X.errorCode!=="fmt.unplayable"&&X.errorCode!=="fmt.unparseable"||!VrU(this,X.errorCode,X.details))&&!yRS(this,X)){if(this.Fh.G_!=="yt"&&Lv2(this,X)&&this.videoData.sY&&(0,g.ta)()/1E3>this.videoData.sY&&this.Fh.G_==="hm"){var V=Object.assign({e:X.errorCode},X.details);V.stalesigexp="1";V.expire=this.videoData.sY;V.init=this.videoData.OP/1E3;V.now=(0,g.ta)()/1E3;V.systelapsed=((0,g.ta)()-this.videoData.OP)/1E3; +X=new tm(X.errorCode,V,2);this.J7.eX(X.errorCode,2,"SIGNATURE_EXPIRED",bo(X.details))}if(O3(X.severity)){var G;V=(G=this.J7.h7)==null?void 0:G.J.J;if(this.Fh.S("html5_use_network_error_code_enums"))if(nks(X)&&V&&V.isLocked())var n="FORMAT_UNAVAILABLE";else if(this.Fh.B||X.errorCode!=="auth"||X.details.rc!==429)X.errorCode==="ump.spsrejectfailure"&&(n="HTML5_SPS_UMP_STATUS_REJECTED");else{n="TOO_MANY_REQUESTS";var L="6"}else nks(X)&&V&&V.isLocked()?n="FORMAT_UNAVAILABLE":this.Fh.B||X.errorCode!=="auth"|| +X.details.rc!=="429"?X.errorCode==="ump.spsrejectfailure"&&(n="HTML5_SPS_UMP_STATUS_REJECTED"):(n="TOO_MANY_REQUESTS",L="6");this.J7.eX(X.errorCode,X.severity,n,bo(X.details),L)}else this.J7.publish("nonfatalerror",X),G=/^pp/.test(this.videoData.clientPlaybackNonce),this.Mi(X.errorCode,X.details),G&&X.errorCode==="manifest.net.connect"&&(X="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.ta)(),Jw(X,"manifest",function(d){c.B=!0;c.Oy("pathprobe",d)},function(d){c.Mi(d.errorCode, +d.details)}))}}; +g.y.Oy=function(X,c){this.J7.bB().Oy(X,c)}; +g.y.Mi=function(X,c){c=bo(c);this.J7.bB().Mi(X,c)};YP2.prototype.Ev=function(X,c){return(c===void 0?0:c)?{nH:X?HG(this,X):Pp,Tn:X?rRs(this,X):Pp,vzc:X?FvO(this,X):Pp,wER:X?ok1(this,X.videoData):Pp,hK:X?e9j(this,X.videoData,X):Pp,tOl:X?Wvs(this,X):Pp,SqR:adS(this)}:{nH:X?HG(this,X):Pp}}; +YP2.prototype.S=function(X){return this.qW.S(X)};g.E(aV,g.I);aV.prototype.onError=function(X){if(X!=="player.fatalexception"||this.provider.S("html5_exception_to_health"))X==="sabr.fallback"&&(this.encounteredSabrFallback=!0),X.match(tK_)?this.networkErrorCount++:this.nonNetworkErrorCount++}; +aV.prototype.send=function(){if(!(this.U||this.J<0)){R9j(this);var X=g.$R(this.provider)-this.J,c="PLAYER_PLAYBACK_STATE_UNKNOWN",V=this.playerState.oP;this.playerState.isError()?c=V&&V.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.B(this.playerState,2)?c="PLAYER_PLAYBACK_STATE_ENDED":g.B(this.playerState,64)?c="PLAYER_PLAYBACK_STATE_UNSTARTED":g.B(this.playerState,16)||g.B(this.playerState,32)?c="PLAYER_PLAYBACK_STATE_SEEKING":g.B(this.playerState,1)&&g.B(this.playerState, +4)?c="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.B(this.playerState,1)?c="PLAYER_PLAYBACK_STATE_BUFFERING":g.B(this.playerState,4)?c="PLAYER_PLAYBACK_STATE_PAUSED":g.B(this.playerState,8)&&(c="PLAYER_PLAYBACK_STATE_PLAYING");V=kZA[xB(this.provider.videoData)];a:switch(this.provider.qW.playerCanaryState){case "canary":var G="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":G="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:G="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var n=bXj(this.provider), +L=this.G<0?X:this.G-this.J;X=this.provider.qW.bH+36E5<(0,g.ta)();c={started:this.G>=0,stateAtSend:c,joinLatencySecs:L,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:G,playerCanaryStage:n,isAd:this.provider.videoData.isAd(),liveMode:V,hasDrm:!!g.Qu(this.provider.videoData),isGapless:this.provider.videoData.T,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, +encounteredSabrFallback:this.encounteredSabrFallback,isSabr:yu(this.provider.videoData)};X||g.a0("html5PlayerHealthEvent",c);this.U=!0;this.dispose()}}; +aV.prototype.R2=function(){this.U||this.send();window.removeEventListener("error",this.q9);window.removeEventListener("unhandledrejection",this.q9);g.I.prototype.R2.call(this)}; +var tK_=/\bnet\b/;g.E(OX1,g.I);OX1.prototype.R2=function(){MrL(this);g.I.prototype.R2.call(this)};var gk2=/[?&]cpn=/;g.E(WG,g.I);WG.prototype.flush=function(){var X={};this.G&&(X.pe=this.G);this.J.length>0&&(X.pt=this.J.join("."));this.J=[];return X}; +WG.prototype.stop=function(){var X=this,c,V,G;return g.O(function(n){if(n.J==1)return g.x1(n,2),g.b(n,(c=X.X)==null?void 0:c.stop(),4);if(n.J!=2)return(V=n.G)&&X.logTrace(V),g.k1(n,0);G=g.o8(n);X.G=udw(G.message);g.ZS(n)})}; +WG.prototype.logTrace=function(X){this.encoder.reset();this.encoder.add(1);this.encoder.add(X.resources.length);for(var c=g.r(X.resources),V=c.next();!V.done;V=c.next()){V=V.value.replace("https://www.youtube.com/s/","");this.encoder.add(V.length);for(var G=0;G=0?X:g.$R(this.provider),["PL","B","S"].indexOf(this.Ri)>-1&&(!g.tN(this.J)||X>=this.Z+30)&&(g.E7(this,X,"vps",[this.Ri]),this.Z=X),!g.tN(this.J))){this.sequenceNumber===7E3&&g.UQ(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){QZ(this,X);var c=this.provider.J7.TG();c=g.r(c);for(var V=c.next();!V.done;V=c.next())V=V.value,this.Oy(V.key,V.value);c=X;V=this.provider.J7.w8();var G=V.droppedVideoFrames||0,n=V.totalVideoFrames|| +0,L=G-this.HX,d=n&&!this.vX;G>V.totalVideoFrames||L>5E3?V5l(this,"html5.badframedropcount","df."+G+";tf."+V.totalVideoFrames):(L>0||d)&&g.E7(this,c,"df",[L]);this.HX=G;this.vX=n;this.C>0&&(g.E7(this,X,"glf",[this.C]),this.C=0);q3.isActive()&&(X=q3.Vz(),Object.keys(X).length>0&&this.Oy("profile",X));this.NE&&ZU(this,"lwnmow");this.provider.qW.YU()&&this.provider.S("html5_record_now")&&this.Oy("now",{wt:(0,g.ta)()});X={};this.provider.videoData.G&&(X.fmt=this.provider.videoData.G.itag,(c=this.provider.videoData.X)&& +c.itag!==X.fmt&&(X.afmt=c.itag));X.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(X.adcpn=this.adCpn);this.G_&&(X.addocid=this.G_);this.contentCpn&&(X.ccpn=this.contentCpn);this.kO&&(X.cdocid=this.kO);this.provider.videoData.cotn&&(X.cotn=this.provider.videoData.cotn);X.el=fQ(this.provider.videoData);X.content_v=Iv(this.provider.videoData);X.ns=this.provider.qW.G_;X.fexp=tWD(this.provider.qW.experiments).toString();X.cl=(735565842).toString();(c=this.provider.videoData.adFormat||this.adFormat)&& +(X.adformat=c);(c=xB(this.provider.videoData))&&(X.live=c);this.provider.videoData.PE()&&(X.drm=1,this.provider.videoData.Z&&(X.drm_system=Edp[this.provider.videoData.Z.flavor]||0),this.provider.videoData.G7&&(X.drm_product=this.provider.videoData.G7));aa()&&this.provider.videoData.B&&(X.ctt=this.provider.videoData.B,X.cttype=this.provider.videoData.P5,this.provider.videoData.mdxEnvironment&&(X.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(X.dai= +this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.gD&&(X.dai_fallback="1")):this.provider.videoData.Gm?X.dai="cs":this.provider.videoData.Ar&&(X.dai="disabled");X.seq=this.sequenceNumber++;if(this.provider.videoData.HY){if(c=this.provider.videoData.HY,X&&c)for(c.ns==="3pp"&&(X.ns="3pp"),this.Wg.has(c.ns)&&ZU(this,"hbps"),c.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=c.shbpslc),this.provider.qW.experiments.lc("html5_use_server_qoe_el_value")&&this.yK.delete("el"), +V=g.r(Object.keys(c)),G=V.next();!G.done;G=V.next())G=G.value,this.yK.has(G)||(X[G]=c[G])}else X.event="streamingstats",X.docid=this.provider.videoData.videoId,X.ei=this.provider.videoData.eventId;this.isEmbargoed&&(X.embargoed="1");Object.assign(X,this.provider.qW.J);if(c=X.seq)c={cpn:this.provider.videoData.clientPlaybackNonce,sequenceNumber:+c,serializedWatchEndpointLoggingContext:this.provider.videoData.lR},this.serializedHouseBrandPlayerServiceLoggingContext&&(c.serializedHouseBrandPlayerServiceLoggingContext= +ZR(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(c.playerResponseCpn=this.provider.videoData.playerResponseCpn),Fa.length&&(c.decoderInfo=Fa),this.provider.J7.KJ()&&(c.transitionStitchType=4,this.NW&&(c.timestampOffsetMsecs=this.NW)),this.remoteControlMode&&(c.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(c.remoteConnectedDevices=this.remoteConnectedDevices),c=g.jE(c,rCU),c=g.rQ(c,4),this.J.qclc=[c];X=g.KB("//"+ +this.provider.qW.wV+"/api/stats/qoe",X);V=c="";G=g.r(Object.keys(this.J));for(n=G.next();!n.done;n=G.next())n=n.value,this.J[n]===null?g.UQ(new g.SP("Stats report key has invalid value",n)):(n="&"+n+"="+this.J[n].join(","),n.length>100?V+=n:c+=n);iXU(this,X+c,V.replace(/ /g,"%20"))}this.J={}}}; +g.y.Cn=function(X){this.NE=X}; +g.y.sx=function(){if(this.provider.videoData.Z){var X=this.provider.videoData.Z;ZU(this,"eme-"+(X.keySystemAccess?"final":gf(X)?"ms":IE(X)?"ytfp":px(X)?"safarifp":"nonfinal"))}}; +g.y.Ur=function(X){var c=g.$R(this.provider);if(!this.provider.qW.experiments.lc("html5_refactor_sabr_video_format_selection_logging")||X.J.id!==this.YO){var V=[X.J.id,X.G,this.YO,X.reason];X.token&&V.push(X.token);g.E7(this,c,"vfs",V);this.YO=X.J.id;V=this.provider.J7.getPlayerSize();if(V.width>0&&V.height>0){V=[Math.round(V.width),Math.round(V.height)];var G=g.Dv();G>1&&V.push(G);g.E7(this,c,"view",V)}this.qE||(this.provider.qW.YU()&&ZU(this,"rqs2"),this.provider.videoData.J&&$W(this.provider.videoData.J)&& +(this.J.preload=["1"]));this.U=this.qE=!0}X.reason==="m"&&++this.Pg===100&&GQt(this,2);g.E7(this,c,"vps",[this.Ri]);this.reportStats(c)}; +g.y.Kx=function(X){var c=g.$R(this.provider);if(this.provider.qW.experiments.lc("html5_refactor_sabr_audio_format_selection_logging")){c=X.J;var V=[c.audio&&c.video?c.W4?c.W4:"":c.id];c.zF&&c.zF.id&&V.push(c.zF.id);c=V.join(";");c!==this.D&&(V=[c,this.D,X.reason],X.token&&V.push(X.token),g.E7(this,g.$R(this.provider),"afs",V),this.D=c)}else X.J.id!==this.D&&(V=[X.J.id,this.D,X.reason],X.token&&V.push(X.token),g.E7(this,c,"afs",V),this.D=X.J.id)}; +g.y.KK=Gt(59);g.y.y0=function(X){this.isEmbargoed=X}; +g.y.Uq=Gt(36);g.y.Vs=Gt(42);g.y.onPlaybackRateChange=function(X){var c=g.$R(this.provider);X&&X!==this.pM&&(g.E7(this,c,"rate",[X]),this.pM=X);this.reportStats(c)}; +g.y.Oc=Gt(30);g.y.getPlayerState=function(X){if(g.B(X,128))return"ER";if(g.B(X,2048))return"B";if(g.B(X,512))return"SU";if(g.B(X,16)||g.B(X,32))return"S";if(X.isOrWillBePlaying()&&g.B(X,64))return"B";var c=Odi[WS(X)];g.OZ(this.provider.qW)&&c==="B"&&this.provider.J7.getVisibilityState()===3&&(c="SU");c==="B"&&g.B(X,4)&&(c="PB");return c}; +g.y.R2=function(){g.I.prototype.R2.call(this);g.v3(this.B);g.v3(this.oZ)}; +g.y.cY=function(X){this.isOffline=X;g.E7(this,g.$R(this.provider),"is_offline",[this.isOffline?"1":"0"])}; +g.y.Oy=function(X,c,V){var G=this.J.ctmp||[],n=this.z2.indexOf(X)!==-1;n||this.z2.push(X);if(!V||!n){var L=typeof c!=="string"?bo(c):c;L=nRj(L);if(!V&&!/^t[.]/.test(L)){var d=g.$R(this.provider)*1E3;L="t."+d.toFixed()+";"+L}G.push(X+":"+L);this.logger.debug(function(){return"ctmp "+X+" "+L}); +this.J.ctmp=G;qPL(this);return d}}; +g.y.xm=function(X,c,V){this.X={sPO:Number(this.Oy("glrem",{nst:X.toFixed(),rem:c.toFixed(),ca:+V})),bL:X,B6h:c,isAd:V}}; +g.y.NS=function(X,c,V){g.E7(this,g.$R(this.provider),"ad_playback",[X,c,V])}; +g.y.m$=function(X,c){var V=g.$R(this.provider)*1E3,G=this.J.daism||[];G.push("t."+V.toFixed(0)+";smw."+(X*1E3).toFixed(0)+";smo."+(c*1E3).toFixed(0));this.J.daism=G}; +g.y.resume=function(){var X=this;this.provider.qW.YU()&&this.Oy("ssap",{qoesus:"0",vid:this.provider.videoData.videoId});isNaN(this.B)?XGD(this):this.B=g.Z9(function(){X.reportStats()},1E4)}; +var wo={},Odi=(wo[5]="N",wo[-1]="N",wo[3]="B",wo[0]="EN",wo[2]="PA",wo[1]="PL",wo[-1E3]="ER",wo[1E3]="N",wo),Fa=[];yZl.prototype.AE=function(){return this.J}; +yZl.prototype.update=function(){if(this.D){var X=this.provider.J7.vp(this.provider.videoData.clientPlaybackNonce)||0,c=g.$R(this.provider);X>=this.provider.J7.getDuration()-.1&&(this.previouslyEnded=!0);if(X!==this.J||Y7L(this,X,c)){var V;if(!(V=Xc-this.KN+2||Y7L(this,X,c))){V=this.provider.J7.getVolume();var G=V!==this.C,n=this.provider.J7.isMuted()?1:0;n!==this.T?(this.T=n,V=!0):(!G||this.X>=0||(this.C=V,this.X=c),V=c-this.X,this.X>=0&&V>2?(this.X=-1,V=!0):V=!1)}V&&(oV(this),this.U= +X);this.KN=c;this.J=X}}};jVS.prototype.send=function(X){var c=this;if(!this.fS){var V=aU2(this),G=g.KB(this.uri,V);this.qW.S("vss_through_gel_double")&&$DS(G);this.kO&&!this.qW.S("html5_simplify_pings")?rZl(this,G):Hl8(this,X).then(function(n){c.kO&&(n=n||{},n.method="POST",n.postParams={atr:c.attestationResponse});Nll(G,n,{token:c.G_,E$:c.o2,mdxEnvironment:c.mdxEnvironment},c.qW,X,c.NW,c.isFinal&&c.bH||c.Pl||c.U&&c.LJ)}); +this.fS=!0}}; +jVS.prototype.G=function(X){X===void 0&&(X=NaN);return Number(X.toFixed(3)).toString()}; +var F3={},FQt=(F3.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,F3.LIVING_ROOM_APP_MODE_MAIN=1,F3.LIVING_ROOM_APP_MODE_KIDS=2,F3.LIVING_ROOM_APP_MODE_MUSIC=3,F3.LIVING_ROOM_APP_MODE_UNPLUGGED=4,F3.LIVING_ROOM_APP_MODE_GAMING=5,F3),EY={},wGS=(EY.EMBEDDED_PLAYER_MODE_UNKNOWN=0,EY.EMBEDDED_PLAYER_MODE_DEFAULT=1,EY.EMBEDDED_PLAYER_MODE_PFP=2,EY.EMBEDDED_PLAYER_MODE_PFL=3,EY);g.E(JZ,g.I);g.y=JZ.prototype;g.y.E5=function(){this.J.update();JZs(this)&&(Zls(this),xDw(this),this.W5())}; +g.y.R2=function(){g.I.prototype.R2.call(this);bt(this);h1O(this.J)}; +g.y.J1=function(){return aU2(mQ(this,"playback"))}; +g.y.W5=function(){this.provider.videoData.D.eventLabel=fQ(this.provider.videoData);this.provider.videoData.D.playerStyle=this.provider.qW.playerStyle;this.provider.videoData.TZ&&(this.provider.videoData.D.feature="pyv");this.provider.videoData.D.vid=this.provider.videoData.videoId;var X=this.provider.videoData.D;var c=this.provider.videoData;c=c.isAd()||!!c.TZ;X.isAd=c}; +g.y.m8=function(X){var c=mQ(this,"engage");c.A7=X;return WQS(c,lUs(this.provider))};Ol2.prototype.isEmpty=function(){return this.endTime===this.startTime};O7.prototype.S=function(X){return this.qW.S(X)}; +O7.prototype.getCurrentTime=function(X){if(this.S("html5_ssap_current_time_for_logging_refactor")){var c=this.J7.KJ();if(c&&(X=X||c.bV()))return cn(c,X)}else if(g.CW(this.videoData)){var V=this.J7.KJ();if(V)return X=this.J7.getCurrentTime(),V=(((c=gZ(V,X*1E3))==null?void 0:c.yq)||0)/1E3,X-V}return this.J7.getCurrentTime()}; +O7.prototype.ws=function(X){if(this.S("html5_ssap_current_time_for_logging_refactor")){var c=this.J7.KJ();if(c&&(X=X||c.bV()))return cn(c,X)}else if(g.CW(this.videoData)){var V=this.J7.KJ();if(V)return X=this.J7.ws(),V=(((c=gZ(V,X*1E3))==null?void 0:c.yq)||0)/1E3,X-V}return this.J7.ws()}; +var M5L={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.E(g.lt,g.I);g.y=g.lt.prototype;g.y.E5=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Ke){var X;(X=this.U.get(this.Ke))==null||X.E5()}else this.J&&this.J.E5()}; +g.y.y0=function(X){this.qoe&&this.qoe.y0(X)}; +g.y.Uq=Gt(35);g.y.Vs=Gt(41);g.y.m$=function(X,c){this.qoe&&this.qoe.m$(X,c)}; +g.y.Gh=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Ke){var X;(X=this.U.get(this.Ke))!=null&&oV(X.J)}else this.J&&oV(this.J.J)}; +g.y.Mi=function(X,c){this.qoe&&V5l(this.qoe,X,c);if(this.G)this.G.onError(X)}; +g.y.Ur=function(X){this.qoe&&this.qoe.Ur(X)}; +g.y.Kx=function(X){this.qoe&&this.qoe.Kx(X)}; +g.y.onPlaybackRateChange=function(X){if(this.qoe)this.qoe.onPlaybackRateChange(X);this.J&&oV(this.J.J)}; +g.y.KK=Gt(58);g.y.Oy=function(X,c,V){this.qoe&&this.qoe.Oy(X,c,V)}; +g.y.xm=function(X,c,V){this.qoe&&this.qoe.xm(X,c,V)}; +g.y.zd=function(X){var c;(c=this.qoe)==null||c.zd(X)}; +g.y.XZ=function(X){var c;(c=this.qoe)==null||c.XZ(X)}; +g.y.Cn=function(X){this.qoe&&this.qoe.Cn(X)}; +g.y.NS=function(X,c,V){this.qoe&&this.qoe.NS(X,c,V)}; +g.y.Oc=Gt(29);g.y.XY=function(){if(this.qoe)return this.qoe.XY()}; +g.y.J1=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Ke){var X,c;return(c=(X=this.U.get(this.Ke))==null?void 0:X.J1())!=null?c:{}}return this.J?this.J.J1():{}}; +g.y.Nd=function(){var X;return(X=this.qoe)==null?void 0:X.Nd()}; +g.y.DP=function(X,c){var V;(V=this.qoe)==null||V.DP(X,c)}; +g.y.m8=function(X){return this.J?this.J.m8(X):function(){}}; +g.y.W5=function(){this.J&&this.J.W5()}; +g.y.getVideoData=function(){return this.provider.videoData}; +g.y.resume=function(){this.qoe&&this.qoe.resume()};g.E(gK,g.I); +gK.prototype.qo=function(X,c,V){if(this.J.has(X)){var G=this.J.get(X);if(c.videoId&&!gRt(G))this.G.Oy("ssap",{rlc:X}),BK8(this,X);else return}if(!this.J.has(X)){G=new O7(c,this.qW,this.J7);var n=Math.round(g.$R(this.G.provider)*1E3);G=new g.lt(G,n);gRt(G)||this.G.Oy("nqv",{vv:c.videoId});n=this.G.getVideoData();this.J.set(X,G);if(G.qoe){var L=G.qoe,d=n.videoId||"";L.contentCpn=n.clientPlaybackNonce;L.kO=d}fUt(G);V===2&&(this.qW.S("html5_log_ad_playback_docid")?(V=this.G,V.qoe&&(V=V.qoe,G=c.Od||"", +n=c.breakType||0,c=c.videoId||"",L=this.qW.G_||"yt",g.E7(V,g.$R(V.provider),"ad_playback",[X,G,n,c,L]))):this.G.NS(X,c.Od||"",c.breakType||0))}}; +gK.prototype.eH=function(X,c,V,G,n,L,d,h){if(X!==c){var A=this.bB(X),Y=this.bB(c),H,a=X===((H=A.getVideoData())==null?void 0:H.clientPlaybackNonce),W;H=c===((W=Y.getVideoData())==null?void 0:W.clientPlaybackNonce);var w;W=a?((w=A.getVideoData())==null?void 0:w.videoId)||"":"nvd";var F;w=H?((F=Y.getVideoData())==null?void 0:F.videoId)||"":"nvd";a&&(A=A.qoe)!=null&&(vG(A,4,L?4:n?2:0,c,w,V),A.reportStats());H&&(MD(Y),(c=Y.qoe)!=null&&(vG(c,4,L?5:n?3:1,X,W,G),c.reportStats()),NKO(Y,new g.ES(d,Y.Ri)), +pGS(Y));h&&BK8(this,X)}}; +gK.prototype.bB=function(X){X=X||this.Ke;return this.J.get(X)||this.G};g.E(g.fl,g.I);g.y=g.fl.prototype; +g.y.Gr=function(X,c){this.sync();c&&this.J.array.length>=2E3&&this.UZ("captions",1E4);c=this.J;if(X.length>1&&X.length>c.array.length)c.array=c.array.concat(X),c.array.sort(c.J);else for(var V=g.r(X),G=V.next();!G.done;G=V.next())G=G.value,!c.array.length||c.J(G,c.array[c.array.length-1])>0?c.array.push(G):g.HY(c.array,G,c.J);X=g.r(X);for(c=X.next();!c.done;c=X.next())c=c.value,c.namespace==="ad"&&this.X("ssap",{acrsid:c.getId(),acrsst:c.start,acrset:c.end,acrscpt:c.playerType});this.U=NaN;this.sync()}; +g.y.oT=function(X){X.length>1E4&&g.UQ(new g.SP("Over 10k cueRanges removal occurs with a sample: ",X[0]));if(!this.vl()){for(var c=g.r(X),V=c.next();!V.done;V=c.next())(V=V.value)&&V.namespace==="ad"&&this.X("ssap",{rcrid:V.getId(),rcst:V.start,rcet:V.end,rcpt:V.playerType});var G=new Set(X);this.G=this.G.filter(function(n){return!G.has(n)}); +q7t(this.J,G);this.sync()}}; +g.y.UZ=function(X,c){var V=(isNaN(this.U)?g.B(this.B(),2)?0x8000000000000:this.C()*1E3:this.U)-c;c=this.F9().filter(function(G){return G.namespace===X&&G.endthis.J,L=g.B(V,8)&&g.B(V,16),d=this.J7.Zm().isBackground()||V.isSuspended();Kl(this,this.qE,L&&!d,n,"qoe.slowseek",function(){},"timeout"); +var h=isFinite(this.J);h=L&&h&&I2w(c,this.J);var A=!G||Math.abs(G-this.J)>10,Y=this.qW.S("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),H=G===0&&this.G&&[11,10].includes(this.G);Kl(this,this.o2,h&&A&&!d&&(!Y||!H),n,"qoe.slowseek",function(){c.seekTo(X.J)},"set_cmt"); +A=h&&aQ(c.q$(),this.J);var a=this.J7.h7;h=!a||a.Th();var W=function(){c.seekTo(X.J+.001)}; +Kl(this,this.YO,A&&h&&!d,n,"qoe.slowseek",W,"jiggle_cmt");h=function(){return X.J7.cD()}; +Kl(this,this.fS,A&&!d,n,"qoe.slowseek",h,"new_elem");A=$N(V);Y=V.isBuffering();var w=c.q$(),F=HZ(w,G),Z=F>=0&&w.end(F)>G+5,v=A&&Y&&Z;H=this.J7.getVideoData();Kl(this,this.LS,G<.002&&this.J<.002&&L&&g.OZ(this.qW)&&g.pQ(H)&&!d,n,"qoe.slowseek",h,"slow_seek_shorts");Kl(this,this.G_,H.rW()&&L&&!d&&!H.kO,n,"qoe.slowseek",h,"slow_seek_gapless_shorts");Kl(this,this.kO,v&&!d,A&&!Y,"qoe.longrebuffer",W,"jiggle_cmt");Kl(this,this.NW,v&&!d,A&&!Y,"qoe.longrebuffer",h,"new_elem_nnr");if(a){var e=a.getCurrentTime(); +L=c.HN();L=edU(L,e);L=!a.isSeeking()&&G===L;Kl(this,this.Ly,A&&Y&&L&&!d,A&&!Y&&!L,"qoe.longrebuffer",function(){c.seekTo(e)},"seek_to_loader")}L={}; +W=HZ(w,Math.max(G-3.5,0));v=W>=0&&G>w.end(W)-1.1;var m=W>=0&&W+1=0&&v&&m<11;L.close2edge=v;L.gapsize=m;L.buflen=w.length;this.G&&(L.seekSour=this.G);if(W=this.J7.KJ()){v=W.bV();m=v!==gZ(W,G*1E3).clipId;var t=g.EZ(this.qW.experiments,"html5_ssap_skip_seeking_offset_ms"),f=(Mm(W,v)+t)/1E3;Kl(this,this.wy,m&&A&&Y&&!d,A&&!Y,"qoe.longrebuffer",function(){c.seekTo(f)},"ssap_clip_not_match")}Kl(this,this.Pl,A&&Y&&!d,A&&!Y,"qoe.longrebuffer", +function(){},"timeout",L); +L=V.isSuspended();L=this.J7.Gf()&&!L;Kl(this,this.D,L,!L,"qoe.start15s",function(){X.J7.Fj("ad")},"ads_preroll_timeout"); +W=G-this.X<.5;var U;L=!((U=this.J7.KJ())==null||!U.SZ());m=(v=H.isAd()||L&&this.qW.experiments.lc("html5_ssap_skip_slow_ad"))&&A&&!Y&&W;U=function(){var C=X.J7,K=g.CW(C.videoData)&&C.AX,nj=C.Ed.getVideoData();(nj&&C.videoData.isAd()&&nj.Gm===C.getVideoData().Gm||!C.videoData.Jb)&&!K?C.eX("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+C.videoData.videoId):jj(C.videoData,"html5_ssap_skip_slow_ad")&&K&&C.AX.SZ()&&(C.Mi(new tm("ssap.transitionfailure",{cpn:gZ(C.AX,C.ws()).clipId,pcpn:C.AX.bV(), +cmt:C.ws()})),C=C.AX,K=C.playback.ws(),(K=BXj(C,K))&&UWl(C,K.Lm()/1E3))}; +Kl(this,this.hX,m,!m,"ad.rebuftimeout",U,"skip_slow_ad");W=v&&Y&&aQ(c.q$(),G+5)&&W;Kl(this,this.HP,W&&!d,!W,"ad.rebuftimeout",U,"skip_slow_ad_buf");U=V.isOrWillBePlaying()&&g.B(V,64)&&!d;Kl(this,this.NE,U,n,"qoe.start15s",function(){},"timeout"); +U=!!a&&!a.ev&&V.isOrWillBePlaying();Kl(this,this.Hl,U,n,"qoe.start15s",h,"newElemMse");U=wq(w,0);W=g.B(V,16)||g.B(V,32);W=!d&&V.isOrWillBePlaying()&&Y&&!W&&(g.B(V,64)||G===0)&&U>5;Kl(this,this.yK,g.pQ(H)&&W,A&&!Y,"qoe.longrebuffer",function(){X.J7.Bz()},"reset_media_source"); +Kl(this,this.T_,g.pQ(H)&&W,A&&!Y,"qoe.longrebuffer",h,"reset_media_element");this.X===0&&(this.B=G);W=Y&&this.J===0&&G>1&&G===this.B;Kl(this,this.QK,g.pQ(H)&&W,A&&!Y,"qoe.slowseek",function(){c.seekTo(0)},"reseek_after_time_jump"); +d=V.isOrWillBePlaying()&&!d;Z=this.J7.Sc()-G<6&&!Z&&this.J7.eK();Kl(this,this.T,H.rW()&&d&&Y&&Z,A&&!Y,"qoe.longrebuffer",function(){X.J7.cD(!1,!0)},"handoff_end_long_buffer_reload"); +a=(a==null?void 0:iQ1(a))||NaN;a=w.length>1||!isNaN(a)&&a-.1<=G;Kl(this,this.C,nQ(H)&&d&&Y&&a,A&&!Y,"qoe.longrebuffer",h,"gapless_slice_append_stuck");a=F>=0&&w.end(F)>=2;d=nQ(H)&&this.J7.GV&&a&&!H.kO&&d&&(Y||g.B(V,8)&&g.B(V,16));Kl(this,this.A7,d,n,"qoe.start15s",h,"gapless_slow_start");V=!!(L&&U>5&&V.isPlaying()&&G<.1);Kl(this,this.EM,V,G>.5&&A,"qoe.longrebuffer",h,"ssap_stuck_in_ad_beginning");this.X=G;this.Z.start()}}; +BG.prototype.Mi=function(X,c,V){c=this.J1(c);c.wn=V;c.wdup=this.U[X]?"1":"0";this.J7.Mi(new tm(X,c));this.U[X]=!0}; +BG.prototype.J1=function(X){X=Object.assign(this.J7.J1(!0),X.J1());this.J&&(X.stt=this.J.toFixed(3));this.J7.getVideoData().isLivePlayback&&(X.ct=this.J7.getCurrentTime().toFixed(3),X.to=this.J7.h1().toFixed(3));delete X.uga;delete X.euri;delete X.referrer;delete X.fexp;delete X.vm;return X}; +PG.prototype.reset=function(){this.J=this.G=this.U=this.startTimestamp=0;this.X=!1}; +PG.prototype.test=function(X){if(!this.Z||this.G)return!1;if(!X)return this.reset(),!1;X=(0,g.ta)();if(!this.startTimestamp)this.startTimestamp=X,this.U=0;else if(this.U>=this.Z)return this.G=X,!0;this.U+=1;return!1}; +PG.prototype.J1=function(){var X={},c=(0,g.ta)();this.startTimestamp&&(X.wsd=(c-this.startTimestamp).toFixed());this.G&&(X.wtd=(c-this.G).toFixed());this.J&&(X.wssd=(c-this.J).toFixed());return X};g.E(r_l,g.I);g.y=r_l.prototype;g.y.setMediaElement=function(X){(this.mediaElement=X)?(this.mediaElement&&(this.Z||this.X||!this.mediaElement.e8()||this.seekTo(.01,{Z3:"seektimeline_setupMediaElement"})),s7(this)):DU(this)}; +g.y.getCurrentTime=function(){if(Cl(this.J7)){if(!isNaN(this.G))return this.G}else if(!isNaN(this.G)&&isFinite(this.G))return this.G;return this.mediaElement&&OiO(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.X||0}; +g.y.x4=function(){return this.T_}; +g.y.ws=function(){return this.getCurrentTime()-this.h1()}; +g.y.vc=function(){return this.J?this.J.vc():Infinity}; +g.y.isAtLiveHead=function(X){if(!this.J)return!1;X===void 0&&(X=this.getCurrentTime());return TQ(this.J,X)}; +g.y.le=function(){return!!this.J&&this.J.le()}; +g.y.seekTo=function(X,c){var V=c===void 0?{}:c;c=V.NC===void 0?!1:V.NC;var G=V.jJ===void 0?0:V.jJ;var n=V.rF===void 0?!1:V.rF;var L=V.nZ===void 0?0:V.nZ;var d=V.Z3===void 0?"":V.Z3;var h=V.seekSource===void 0?void 0:V.seekSource;var A=V.H1===void 0?!1:V.H1;var Y=V.Z2===void 0?!1:V.Z2;V=V.xp===void 0?!1:V.xp;A&&(X+=this.h1());yu(this.videoData)&&this.S("html5_sabr_enable_utc_seek_requests")&&h===29&&(this.T_=void 0);A=X=this.SQ())||!g.mJ(this.videoData),H||(Z={st:Z,mst:this.SQ()},this.J&&this.S("html5_high_res_seek_logging")&&(Z.ht=this.J.vc(),Z.adft=HiD(this.J)),this.J7.Oy("seeknotallowed",Z)),Z=H));if(!Z)return this.U&&(this.U=null,biD(this)),g.Ze(this.getCurrentTime());Z=.005;Y&&this.S("html5_sabr_seek_no_shift_tolerance")&&(Z=0);if(Math.abs(X-this.G)<=Z&&this.A7)return this.Z;d&&(Z=X,(this.qW.YU()||this.S("html5_log_seek_reasons"))&& +this.J7.Oy("seekreason",{reason:d,tgt:Z}));h&&(this.NW.G=h);this.A7&&DU(this);this.Z||(this.Z=new cS);X&&!isFinite(X)&&v4O(this,!1);(d=V||A)||(d=X,d=!(this.videoData.isLivePlayback&&this.videoData.U&&!this.videoData.U.J&&!(this.mediaElement&&this.mediaElement.ag()>0&&GC(this.mediaElement)>0)||av(this.videoData)&&this.Qg()===this.SQ(!1)?0:isFinite(d)||!av(this.videoData)));d||(X=it(this,X,n));X&&!isFinite(X)&&v4O(this,!1);this.X=X;this.YO=L;this.G=X;this.B=0;this.J&&(n=this.J,L=X,aDD(n,L,!1),$eD(n, +L));n=this.J7;L=X;d={NC:c,seekSource:h};n.Sr.X=L;V=n.hY;V.mediaTime=L;V.J=!0;d.NC&&n.GO(d);d=L>n.videoData.endSeconds&&L>n.videoData.limitedPlaybackDurationInSeconds;n.AQ&&d&&isFinite(L)&&jMl(n);Lc.start&&jMl(this.J7);return this.Z}; +g.y.SQ=function(X){if(!this.videoData.isLivePlayback)return ILL(this.J7);var c;return cO(this.videoData)&&((c=this.mediaElement)==null?0:c.isPaused())&&this.videoData.J?(X=this.getCurrentTime(),F7L(this.Tm(X)*1E3)+X):this.S("html5_sabr_parse_live_metadata_playback_boundaries")&&yu(this.videoData)&&this.videoData.J?X?this.videoData.J.A7||0:this.videoData.J.Fn||0:av(this.videoData)&&this.videoData.wy&&this.videoData.J?this.videoData.J.SQ()+this.timestampOffset:this.videoData.U&&this.videoData.U.J?!X&& +this.J?this.J.vc():ILL(this.J7)+this.timestampOffset:this.mediaElement?D9()?F7L(this.mediaElement.RU().getTime()):GC(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; +g.y.Qg=function(){if(g.CW(this.videoData)){var X=this.J7;g.CW(X.videoData);var c,V;return(V=(c=X.AX)==null?void 0:c.Qg())!=null?V:X.videoData.Qg()}if(this.S("html5_sabr_parse_live_metadata_playback_boundaries")&&yu(this.videoData)){var G;return((G=this.videoData.J)==null?void 0:G.aF)||0}c=this.videoData?this.videoData.Qg()+this.timestampOffset:this.timestampOffset;return cO(this.videoData)&&this.videoData.J&&(V=Number((X=this.videoData.progressBarStartPosition)==null?void 0:X.utcTimeMillis)/1E3,X= +this.getCurrentTime(),X=this.Tm(X)-X,!isNaN(V)&&!isNaN(X))?Math.max(c,V-X):c}; +g.y.eg=function(){this.Z||this.seekTo(this.X,{Z3:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; +g.y.d8=function(){return this.A7&&!isFinite(this.G)}; +g.y.R2=function(){k5w(this,null);this.NW.dispose();g.I.prototype.R2.call(this)}; +g.y.J1=function(){var X={};this.h7&&Object.assign(X,this.h7.J1());this.mediaElement&&Object.assign(X,this.mediaElement.J1());return X}; +g.y.d4=function(X){this.timestampOffset=X}; +g.y.getStreamTimeOffset=function(){return av(this.videoData)?0:this.videoData.J?this.videoData.J.getStreamTimeOffset():0}; +g.y.h1=function(){return this.timestampOffset}; +g.y.Tm=function(X){return this.videoData&&this.videoData.J?this.videoData.J.Tm(X-this.timestampOffset):NaN}; +g.y.ut=function(){if(!this.mediaElement)return 0;if(Rv(this.videoData)){var X=this.mediaElement,c=X.q$();X=(WZ(c)>0&&X.getDuration()?c.end(c.length-1):0)+this.timestampOffset-this.Qg();c=this.SQ()-this.Qg();return Math.max(0,Math.min(1,X/c))}return this.mediaElement.ut()}; +g.y.eM=function(X){this.D&&(this.D.J=X)}; +g.y.Jl=function(X,c){this.J7.Oy("requestUtcSeek",{time:X});yu(this.videoData)&&this.S("html5_sabr_enable_utc_seek_requests")&&(this.T_=X);var V;(V=this.h7)==null||V.Jl(X);c&&(this.kO=c)}; +g.y.Md=function(X){yu(this.videoData)&&this.S("html5_sabr_enable_utc_seek_requests")&&(this.T_=void 0);if(this.kO)this.J7.Oy("utcSeekingFallback",{source:"streamTime",timeSeconds:this.kO}),this.J7.seekTo(this.kO,{Z3:"utcSeekingFallback_streamTime"}),this.kO=0;else{var c=this.getCurrentTime();isNaN(c)||(X=this.Tm(c)-X,c-=X,this.J7.Oy("utcSeekingFallback",{source:"estimate",timeSeconds:c}),this.J7.seekTo(c,{Z3:"utcSeekingFallback_estimate"}))}}; +g.y.Ns=function(){this.kO=0}; +g.y.S=function(X){return this.qW&&this.qW.S(X)};g.E(qD,g.I);qD.prototype.start=function(){this.G.start()}; +qD.prototype.stop=function(){this.G.stop()}; +qD.prototype.clear=function(){for(var X=g.r(this.J.values()),c=X.next();!c.done;c=X.next())c.value.clear()}; +qD.prototype.sample=function(){for(var X=g.r(this.U),c=X.next();!c.done;c=X.next()){var V=g.r(c.value);c=V.next().value;V=V.next().value;this.J.has(c)||this.J.set(c,new IDl(lgG.has(c)));this.J.get(c).update(V())}this.G.start()}; +var lgG=new Set(["networkactivity"]);IDl.prototype.update=function(X){this.J?(this.buffer.add(X-this.wb||0),this.wb=X):this.buffer.add(X)}; +IDl.prototype.clear=function(){this.buffer.clear();this.wb=0};VI.prototype.LP=function(){return this.started}; +VI.prototype.start=function(){this.started=!0}; +VI.prototype.reset=function(){this.finished=this.started=!1};var Pe2=!1;g.E(g.de,g.$T);g.y=g.de.prototype;g.y.R2=function(){this.logger.debug("dispose");g.v3(this.Xx);DdU(this.U5);this.visibility.unsubscribe("visibilitystatechange",this.U5);G$l(this);A_(this);g.PL.IT(this.dk);this.cE();this.Xj=null;g.Ap(this.videoData);g.Ap(this.St);g.Ap(this.IG);g.Ap(this.aG);g.YU(this.OMK);this.AQ=null;g.$T.prototype.R2.call(this)}; +g.y.NS=function(X,c,V,G,n){if(this.qW.S("html5_log_ad_playback_docid")){var L=this.bB();if(L.qoe){L=L.qoe;var d=this.qW.G_||"yt";g.E7(L,g.$R(L.provider),"ad_playback",[X,c,V,n,d])}}else this.bB().NS(X,c,V);this.S("html5_log_media_perf_info")&&this.Oy("adloudness",{ld:G.toFixed(3),cpn:X})}; +g.y.SF=function(){var X;return(X=this.h7)==null?void 0:X.SF()}; +g.y.DW=function(){var X;return(X=this.h7)==null?void 0:X.DW()}; +g.y.Hs=function(){var X;return(X=this.h7)==null?void 0:X.Hs()}; +g.y.yS=function(){var X;return(X=this.h7)==null?void 0:X.yS()}; +g.y.PE=function(){return this.videoData.PE()}; +g.y.Rx=function(){return this.S("html5_not_reset_media_source")&&!this.PE()&&!this.videoData.isLivePlayback&&g.pQ(this.videoData)&&!this.qW.supportsGaplessShorts()}; +g.y.z9=function(){if(this.videoData.T){var X=this.videoData,c;if(!(c=this.videoData.mT)){var V;c=(V=this.Ed.Ey())==null?void 0:V.SF()}X.mT=c;X=this.videoData;if(!(c=this.videoData.xk)){var G;c=(G=this.Ed.Ey())==null?void 0:G.DW()}X.xk=c}if(yoj(this.videoData)||!Xs(this.videoData))G=this.videoData.errorDetail,this.eX(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),G,G,this.videoData.nj||void 0);this.S("html5_generate_content_po_token")&&this.uU();this.S("html5_enable_d6de4")&& +this.Pk();if(this.S("html5_ssap_cleanup_player_switch_ad_player")||this.S("html5_ssap_cleanup_ad_player_on_new_data"))if(G=this.Ed.Vg())this.rg=G.clientPlaybackNonce}; +g.y.FY=function(){return this.eI}; +g.y.qo=function(){!this.Du||this.Du.vl();this.Du=new g.lt(new O7(this.videoData,this.qW,this));this.eI=new gK(this.qW,this,this.Du)}; +g.y.getVideoData=function(){return this.videoData}; +g.y.j=function(){return this.qW}; +g.y.Ev=function(X){return this.Ml.Ev(this.Xj,X===void 0?!1:X)}; +g.y.bB=function(X){if(X)a:{for(var c=this.eI,V=g.r(c.J.values()),G=V.next();!G.done;G=V.next())if(G=G.value,G.getVideoData().videoId===X){X=G;break a}X=c.G}else X=this.eI.bB();return X}; +g.y.Zm=function(){return this.visibility}; +g.y.H_=function(){return this.mediaElement&&this.mediaElement.PL()?this.mediaElement.WP():null}; +g.y.vg=function(){return this.mediaElement}; +g.y.yJ=function(){if(this.S("html5_check_video_data_errors_before_playback_start")&&this.videoData.errorCode)return!1;this.j().B&&this.j().houseBrandUserStatus&&this.Oy("hbut",{status:this.j().houseBrandUserStatus});if(this.videoData.d$())return!0;this.eX("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; +g.y.mX=function(X){(X=X===void 0?!1:X)||g.CW(this.videoData)||MD(this.bB());this.r0=X;!this.yJ()||this.Vi.LP()?g.OZ(this.qW)&&this.videoData.isLivePlayback&&this.Vi.LP()&&!this.Vi.finished&&!this.r0&&this.Yg():(this.Vi.start(),X=this.bB(),g.$R(X.provider),X.qoe&&XGD(X.qoe),this.Yg())}; +g.y.Yg=function(){if(this.videoData.isLoaded()){var X=this.St;g.EZ(X.Fh.experiments,"html5_player_min_build_cl")>0&&g.EZ(X.Fh.experiments,"html5_player_min_build_cl")>735565842&&dr2(X,"oldplayer");yPl(this)}else this.videoData.tf||this.videoData.qc?this.r0&&g.OZ(this.qW)&&this.videoData.isLivePlayback||(this.videoData.tf?zjS(this.videoData):(X=this.bB(),X.qoe&&(X=X.qoe,ZU(X,"protected"),X.provider.videoData.Z?X.sx():X.provider.videoData.subscribe("dataloaded",X.sx,X)),N8w(this.videoData))):!this.videoData.loading&& +this.Gn&&ngl(this)}; +g.y.Jp=function(X){this.nM=X;this.h7&&(z3j(this.h7,new g.Xa(X)),this.Oy("sdai",{sdsstm:1}))}; +g.y.eq=function(X){this.AX=X;this.h7&&this.h7.eq(X)}; +g.y.yR=Gt(16);g.y.isFullscreen=function(){return this.visibility.isFullscreen()}; +g.y.isBackground=function(){return this.visibility.isBackground()}; +g.y.QE=function(){var X=this;this.logger.debug("Updating for format change");yI(this).then(function(){return Li(X)}); +this.playerState.isOrWillBePlaying()&&this.playVideo()}; +g.y.Jy=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.mX();this.yJ()&&!g.B(this.playerState,128)&&(this.KO.LP()||(this.KO.start(),this.videoData.UQ?this.Ni(YN(this.playerState,4)):this.Ni(YN(YN(this.playerState,8),1))),LW1(this))}; +g.y.TQ=function(){return this.Vi.finished}; +g.y.sendAbandonmentPing=function(){g.B(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.j4(!0),G$l(this),g.PL.IT(this.dk))}; +g.y.ZP=function(X,c){X=X===void 0?!0:X;(c===void 0||c)&&this.mediaElement&&this.mediaElement.pause();this.Ni(X?new g.y_(14):new g.y_)}; +g.y.Se=function(){this.bB().Gh()}; +g.y.eX=function(X,c,V,G,n,L){this.logger.debug(function(){return"set player error: ec="+X+", detail="+n}); +var d,h;g.Rm(Byp,V)?d=V:V?h=V:d="GENERIC_WITHOUT_LINK";G=(G||"")+(";a6s."+$y());if(X==="auth"||X==="drm.auth"||X==="heartbeat.stop")V&&(G+=";r."+V.replaceAll(" ","_")),L&&(G+="sr."+L.replaceAll(" ","_"));c={errorCode:X,errorDetail:n,errorMessage:h||g.IM[d]||"",wr:d,nj:L||"",vY:G,gL:c,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=X;h_(this,"dataloaderror");this.Ni(A2(this.playerState,128,c));g.PL.IT(this.dk);A_(this);this.Cr()}; +g.y.Fj=function(X){this.Xg=this.Xg.filter(function(c){return X!==c}); +this.logger.debug(function(){return"set preroll ready for "+X}); +g.CW(this.videoData)&&!this.Q0()&&this.BP.vD("pl_pr");this.KO.LP()&&LW1(this)}; +g.y.Q0=function(){var X;(X=!!this.Xg.length)||(X=this.R$.J.array[0],X=!!X&&X.start<=-0x8000000000000);return X}; +g.y.le=function(){return this.Sr.le()}; +g.y.isPlaying=function(){return this.playerState.isPlaying()}; +g.y.DI=function(){return this.playerState.DI()&&this.videoData.UQ}; +g.y.getPlayerState=function(){return this.playerState}; +g.y.jE=function(X){var c;(c=this.h7)==null||c.jE(X)}; +g.y.fG=function(X){var c;(c=this.h7)==null||c.fG(X)}; +g.y.getPlayerType=function(){return this.playerType}; +g.y.getPreferredQuality=function(){if(this.Xj){var X=this.Xj;X=X.videoData.Cf.compose(X.videoData.Tb);X=YW(X)}else X="auto";return X}; +g.y.Dk=Gt(22);g.y.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; +g.y.setMediaElement=function(X){this.logger.debug("set media element");if(this.mediaElement&&X.WP()===this.mediaElement.WP()&&(X.isView()||this.mediaElement.isView())){if(X.isView()||!this.mediaElement.isView())this.Qx(),this.mediaElement=X,this.mediaElement.J7=this,k$t(this),this.Sr.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.cE();if(!this.playerState.isError()){var c=jW(this.playerState,512);g.B(c,8)&&!g.B(c,2)&&(c=YN(c,1));X.isView()&&(c=jW(c,64));this.Ni(c)}this.mediaElement= +X;this.mediaElement.J7=this;!g.OZ(this.qW)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);k$t(this);this.Sr.setMediaElement(this.mediaElement);this.S("html5_prewarm_media_source")&&!this.St.A0()&&MMs(this.mediaElement)}}; +g.y.cE=function(X,c,V){X=X===void 0?!1:X;c=c===void 0?!1:c;V=V===void 0?!1:V;this.logger.debug("remove media element");if(this.mediaElement){var G=this.getCurrentTime();G>0&&(this.Sr.X=G);this.Sr.setMediaElement(null);!X&&this.Rx()?Egt(this):this.PF(V);this.h7&&(KX(this.h7),ai(this,c));this.Xy.stop();if(this.mediaElement&&(!this.KO.LP()&&!this.Gf()||this.playerState.isError()||g.B(this.playerState,2)||this.Ni(YN(this.playerState,512)),this.mediaElement)){this.Qx();if(X||!this.mediaElement.isView())this.BP.sb("mesv_s"), +this.mediaElement.stopVideo(),$4(this);this.mediaElement=this.mediaElement.J7=null}}}; +g.y.playVideo=function(X,c){X=X===void 0?!1:X;c=c===void 0?!1:c;var V=this,G,n,L,d,h,A;return g.O(function(Y){if(Y.J==1){V.logger.debug("start play video");var H=window.google_image_requests;H&&H.length>10&&(window.google_image_requests=H.slice(-10));if(g.B(V.playerState,128))return Y.return();if(V.St.oM())return V.publish("signatureexpired"),Y.return();V.mediaElement&&MD(V.bB());V.Jy();(g.B(V.playerState,64)||X)&&V.Ni(YN(V.playerState,8));return V.KO.finished&&V.mediaElement?V.Xj||!V.gK?Y.Wl(2): +g.b(Y,V.gK,3):Y.return()}if(Y.J!=2&&g.B(V.playerState,128))return Y.return();if(!V.videoData.U)return V.videoData.isLivePlayback&&!g.GD(V.qW.Z,!0)?(G="html5.unsupportedlive",n=2):(G=V.videoData.PE()?"fmt.unplayable":"fmt.noneavailable",n=1),g.UQ(Error("selectableFormats")),V.eX(G,n,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),Y.return();if(V.Gy()&&V.videoData.U.J)return V.logger.debug("rebuild playbackData for airplay"),Y.return(yI(V));if(Cl(V))H=V.Sr,HJ(H.videoData)?!H.isAtLiveHead(H.getCurrentTime())&& +H.le()&&H.J7.seekTo(Infinity,{Z3:"seektimeline_peggedToLive",seekSource:34}):g.CW(H.videoData)&&H.getCurrentTime()d;d=c.S("html5_dont_save_under_1080")&&d<1080;if(!n||!L&&!d){var h;n=$r2(c,(h=G.J)==null?void 0:h.videoInfos);h=c.J7.getPlaybackRate();h>1&&n&&(h=gNs(c.qW.Z,G.J.videoInfos,h),X.J!==0&&h=480;if(c.S("html5_exponential_memory_for_sticky")){A=c.qW.vW;Y=1;var H=H===void 0?!1:H;Xd1(A,"sticky-lifetime");A.values["sticky-lifetime"]&&A.Wf["sticky-lifetime"]||(A.values["sticky-lifetime"]=0,A.Wf["sticky-lifetime"]=0);H&&kC(A,"sticky-lifetime")>.0625&&(Y=A.Wf["sticky-lifetime"]*2);A.values["sticky-lifetime"]+=1*Math.pow(2,A.J/Y);A.Wf["sticky-lifetime"]=Y; +A.X.start()}if(c.S("html5_perf_cap_override_sticky")){H=c.U;A=c.S("html5_perserve_av1_perf_cap");A=A===void 0?!1:A;if(A===void 0?0:A){Y=uI();c=g.r(Object.keys(Y));for(X=c.next();!X.done;X=c.next())X=X.value,X.indexOf("1")!==0&&delete Y[X];g.pv("yt-player-performance-cap",Y,2592E3)}else g.Nc("yt-player-performance-cap");fTj(A);if(A){A=g.r(b7.keys());for(Y=A.next();!Y.done;Y=A.next())Y=Y.value,Y.startsWith("1")||b7.delete(Y);A=g.r(j5.values());for(Y=A.next();!Y.done;Y=A.next())Y=Y.value,Y.startsWith("1")|| +j5.delete(Y);A=g.r(H.keys());for(Y=A.next();!Y.done;Y=A.next())Y=Y.value,Y.startsWith("1")||H.delete(Y)}else b7.clear(),j5.clear(),H.clear()}}}this.h7&&(H=this.h7,V=V||"",H.policy.J?CD(H.G.J,V):CD(H.J.Z,V));this.pw()}; +g.y.getUserPlaybackQualityPreference=function(){return this.videoData.U&&!this.videoData.U.J?YW(this.videoData.Cf):A7[UM()]}; +g.y.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; +g.y.setUserAudio51Preference=function(X,c){this.getUserAudio51Preference()!==X&&(this.Oy("toggle51",{pref:X}),g.pv("yt-player-audio51",X,c?31536E3:2592E3),this.QE())}; +g.y.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; +g.y.setProximaLatencyPreference=function(X){var c=this.getProximaLatencyPreference();this.Oy("proxima",{pref:X});g.pv("yt-player-proxima-pref",X,31536E3);c!==X&&(X=this.Sr,X.yK=!0,X.J7.seekTo(Infinity,{Z3:"seektimeline_proximaSeekToHead",seekSource:34}))}; +g.y.getProximaLatencyPreference=function(){var X;return(X=T9())!=null?X:0}; +g.y.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; +g.y.uU=function(){this.videoData.videoId?this.Ed.uU(this.videoData):this.Oy("povid",{})}; +g.y.Pk=function(){this.videoData.videoId?this.Ed.Pk(this.videoData):this.Oy("piavid",{})}; +g.y.pw=function(){if(!this.vl()&&!g.B(this.playerState,128)&&this.videoData.U){if(this.videoData.U.J)ni(this);else{var X=HP(this),c=this.videoData;a:{var V=this.videoData.Wg;if(X.J){for(var G=g.r(V),n=G.next();!n.done;n=G.next()){n=n.value;var L=n.getInfo(),d=g.Pb[L.video.quality];if((!X.U||L.video.quality!=="auto")&&d<=X.J){V=n;break a}}V=V[V.length-1]}else V=V[0]}c.o2=V;HEl(this,X.reason,JP2(this,this.videoData.o2))}if(this.S("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.Sr.T= +!1,this.playVideo()}}; +g.y.Wk=function(X,c){if(this.vl()||g.B(this.playerState,128))return!1;var V,G=!((V=this.videoData.U)==null||!V.J);V=G&&c?this.getCurrentTime()-this.h1():NaN;if(this.qW.experiments.lc("html5_record_audio_format_intent")){var n=this.bB();if(n.qoe){n=n.qoe;var L=[X.zF.id,isNaN(V)?"m":"t"];g.E7(n,g.$R(n.provider),"afi",L)}}if(G)return c&&(G=eIj(this.Sr),this.Oy("aswh",{id:X.id,xtags:X.xtags,bh:G.toFixed(3)})),this.h7.setAudioTrack(X,V,c),!0;if($qD(this)){a:{c=this.mediaElement.audioTracks();for(G=0;G< +c.length;++G)if(V=c[G],V.label===X.zF.getName()){if(V.enabled){c=!1;break a}c=V.enabled=!0;break a}c=void 0}c&&this.Oy("hlsaudio",{id:X.id})}else{a:if(c=this.videoData,c.X&&!Gz(c.X)||X===c.eB||!c.Wg||c.Wg.length<=0)c=!1;else{G=g.r(c.Wg);for(V=G.next();!V.done;V=G.next()){V=V.value;if(!(V instanceof jz)){c=!1;break a}n=X.zF.getId();V.G&&(v28(V.G,n),V.uB=null)}c.eB=X;c=!0}c&&Li(this)&&(this.publish("internalaudioformatchange",this.videoData,!0),this.Oy("hlsaudio",{id:X.id}))}return!0}; +g.y.getAvailableAudioTracks=function(){return g.CW(this.videoData)&&this.AX?C2S(this.AX).getAvailableAudioTracks():this.videoData.getAvailableAudioTracks()}; +g.y.getAudioTrack=function(){if($qD(this)){var X=wrU(this);if(X)return X}return this.videoData.getAudioTrack()}; +g.y.oa=function(){if(this.videoData.S("html5_trigger_loader_when_idle_network")&&!this.videoData.ZQ()&&yu(this.videoData)){var X;(X=this.h7)!=null&&X.Dg()}}; +g.y.H4=function(){if(nQ(this.videoData)&&this.videoData.S("html5_gapless_append_early")){var X;(X=this.h7)!=null&&X.Dg()}}; +g.y.xr=function(X){X=X===void 0?!1:X;if(this.h7){var c=this.h7,V=c.xr;var G=this.videoData;G=G.S("html5_ssdai_use_post_for_media")&&G.enableServerStitchedDai?!1:av(G)&&G.Jb&&!G.isAd();V.call(c,G,X)}}; +g.y.PF=function(X){X=X===void 0?!1:X;this.ev&&(this.logger.debug("remove media source"),l2l(this.ev),this.xr(X),this.ev.dispose(),this.ev=null)}; +g.y.iV=function(){return this.ev}; +g.y.Er=function(X,c,V,G){function n(d){try{xqs(L,d,c,V)}catch(h){g.UQ(h),L.handleError(new tm("fmt.unplayable",{msi:"1",ename:h&&typeof h==="object"&&"name"in h?String(h.name):void 0},1))}} +var L=this;c=c===void 0?!1:c;V=V===void 0?!1:V;QMD(this,G===void 0?!1:G);this.ev=X;this.Rx()&&q1(this.ev)==="open"?n(this.ev):mAU(this.ev,n)}; +g.y.AF=function(X){this.logger.debug("onNeedKeyInfo");this.Ih.set(X.initData,X);this.yC&&(this.yC.AF(X),this.S("html5_eme_loader_sync")||this.Ih.remove(X.initData))}; +g.y.g4=function(X){this.videoData.ou=g.dV("auto",X,!1,"u");ni(this)}; +g.y.eM=function(X){var c=X.reason,V=X.J.info,G=X.token,n=X.videoId,L=this.bB(n),d=g.CW(this.videoData)?L.getVideoData():this.videoData;if(V!==d.X){var h=!d.X;d.X=V;c!=="m"&&c!=="t"&&(c=h?"i":"a");var A=c==="m"||c==="t";this.qW.experiments.lc("html5_refactor_sabr_audio_format_selection_logging")?this.oD=new AR2(d,V,c,"",G,n):L.Kx(new AR2(d,V,c,"",G));this.publish("internalaudioformatchange",d,!h&&A)}this.Sr.eM(X.J.index)}; +g.y.iC=function(X){this.publish("localmediachange",X)}; +g.y.LW=function(X){X=X===void 0?{}:X;var c;(c=this.h7)==null||c.LW(this.qW,dk(this.videoData),X)}; +g.y.oM=function(){return this.St.oM()}; +g.y.ZS=function(X){this.Mi(new tm("staleconfig",{reason:X}))}; +g.y.handleError=function(X){this.St.handleError(X)}; +g.y.A0=function(){return this.St.A0()}; +g.y.Md=function(X){this.Sr.Md(X)}; +g.y.cD=function(X,c,V){X=X===void 0?!1:X;c=c===void 0?!1:c;V=V===void 0?!1:V;var G=this,n,L,d;return g.O(function(h){if(h.J==1){G.h7&&G.h7.BN();G.h7&&G.h7.vl()&&A_(G);if(G.S("html5_enable_vp9_fairplay")&&G.PE()&&(n=G.videoData.J)!=null)for(var A in n.J)n.J.hasOwnProperty(A)&&(n.J[A].J=null,n.J[A].U=!1);G.Ni(YN(G.playerState,2048));G.S("html5_ssap_keep_media_on_finish_segment")&&g.CW(G.videoData)?G.publish("newelementrequired",V):G.publish("newelementrequired");return X?g.b(h,yI(G),2):h.Wl(2)}G.videoData.ZQ()&& +((L=G.h7)==null?0:L.kO)&&!Cl(G)&&((d=G.isAtLiveHead())&&HJ(G.videoData)?G.seekTo(Infinity,{Z3:"videoPlayer_getNewElement"}):G.videoData.bf&&G.h7&&(A=G.h7,A.ZR.ZQ&&(A.ZR.bf||A.ZR.X||A.ZR.isPremiere?(A.seek(0,{Z3:"loader_resetSqless"}),A.videoTrack.D=!0,A.audioTrack.D=!0,A.videoTrack.Z=!0,A.audioTrack.Z=!0):JF(A.ZR)&&co(A))));c&&G.seekTo(0,{seekSource:105});g.B(G.playerState,8)&&(G.S("html5_ssap_keep_media_on_finish_segment")&&g.CW(G.videoData)?G.playVideo(!1,V):G.playVideo());g.ZS(h)})}; +g.y.vN=function(X){this.Oy("hgte",{ne:+X});this.videoData.T=!1;X&&this.cD();this.h7&&WJU(this.h7)}; +g.y.kT=function(X){this.Oy("newelem",{r:X});this.cD()}; +g.y.pauseVideo=function(X){X=X===void 0?!1:X;if((g.B(this.playerState,64)||g.B(this.playerState,2))&&!X)if(g.B(this.playerState,8))this.Ni(HS(this.playerState,4,8));else if(this.DI())Li(this);else return;g.B(this.playerState,128)||(X?this.Ni(YN(this.playerState,256)):this.Ni(HS(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.mJ(this.videoData)&&this.h7&&ai(this,!1)}; +g.y.stopVideo=function(){this.pauseVideo();this.h7&&(ai(this,!1),this.h7.pm())}; +g.y.Cr=function(X,c){X=X===void 0?!1:X;c=c===void 0?!1:c;if(this.Rx()&&c){var V;(V=this.mediaElement)==null||V.Cr()}else{var G;(G=this.mediaElement)==null||G.stopVideo()}$4(this);A_(this);g.B(this.playerState,128)||(X?this.Ni(jW(jW(YN(this.playerState,4),8),16)):this.Ni(A2(this.playerState)));this.videoData.videoId&&this.qW.wy.remove(this.videoData.videoId)}; +g.y.seekTo=function(X,c){c=c===void 0?{}:c;this.logger.debug(function(){return"SeekTo "+X+", "+JSON.stringify(c)}); +g.B(this.playerState,2)&&Li(this);c.Cuy&&this.Ni(YN(this.playerState,2048));c.seekSource!==58&&c.seekSource!==60||!this.S("html5_update_vss_during_gapless_seeking")||IUD(this.bB(),c.seekSource);this.Sr.seekTo(X,c);this.R$.sync()}; +g.y.GO=function(X){this.BP.X.qD();g.B(this.playerState,32)||(this.Ni(YN(this.playerState,32,X==null?void 0:X.seekSource)),g.B(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking",this));this.er()}; +g.y.Qp=function(X){X=X==null?void 0:X.seekSource;g.B(this.playerState,32)?(this.Ni(HS(this.playerState,16,32,X)),this.publish("endseeking",this)):g.B(this.playerState,2)||this.Ni(YN(this.playerState,16,X));this.BP.X.RI(this.videoData,this.playerState.isPaused())}; +g.y.YL=function(X){this.Qp(X)}; +g.y.r4=function(){this.publish("SEEK_COMPLETE")}; +g.y.Vv=function(){this.publish("onAbnormalityDetected")}; +g.y.rk=function(X){var c=this.Ed,V=this.videoData.clientPlaybackNonce,G=this.playerType;if(X.scope===4){var n=X.type;if(n){var L=c.GF(),d=L.getVideoData().clientPlaybackNonce;G===1&&(d=V);(c=xNj(c,d))?(V=c.getVideoData())&&(X.writePolicy===2&&V.sabrContextUpdates.has(n)||V.sabrContextUpdates.set(n,X)):L.Oy("scuset",{ncpf:"1",ccpn:d,crcpn:V})}else g.UQ(Error("b/380308491: contextUpdateType is undefined"))}}; +g.y.zG=function(){if(this.playerType===2)return this.Ed.zG("")}; +g.y.getCurrentTime=function(){return this.Sr.getCurrentTime()}; +g.y.x4=function(){return this.Sr.x4()}; +g.y.ws=function(){return this.Sr.ws()}; +g.y.vp=function(X){return this.AX&&(X=X||this.AX.bV())?cn(this.AX,X):this.ws()}; +g.y.vc=function(){return this.Sr.vc()}; +g.y.getPlaylistSequenceForTime=function(X){return this.videoData.getPlaylistSequenceForTime(X-this.h1())}; +g.y.QX=function(){var X=NaN;this.mediaElement&&(X=this.mediaElement.QX());return X>=0?X:this.getCurrentTime()}; +g.y.Tm=function(){var X;return((X=this.videoData.J)==null?0:X.Tm)?this.videoData.J.Tm(this.getCurrentTime()-this.h1()):this.mediaElement&&(X=this.mediaElement.RU())&&(X=X.getTime(),!isNaN(X))?X/1E3+this.getCurrentTime():NaN}; +g.y.getDuration=function(X){return g.CW(this.videoData)&&this.AX?X?sf1(this.AX,X):Bo(this.AX):this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.h1():this.SQ()?this.SQ():0}; +g.y.mx=function(){var X=new z1j;if(this.h7){var c=this.qW.schedule,V=this.qW.YU();V=V===void 0?!1:V;X.wl=c.kO;X.T8=c.YO;X.bandwidthEstimate=xC(c);if(V){V=(c.T.JP()*1E3).toFixed();var G=(c.Pl.JP()*1E3).toFixed(),n=r0(c).toFixed(2),L=((c.D.JP()||0)*1E9).toFixed(2),d=c.U.JP().toFixed(0),h=c.wy.JP().toFixed(0),A=c.C.percentile(.5).toFixed(2),Y=c.C.percentile(.92).toFixed(2),H=c.C.percentile(.96).toFixed(2),a=c.C.percentile(.98).toFixed(2);c.J?c.J.reset():c.J=new YC;c.J.add(c.NW);c.J.add(c.interruptions.length); +for(var W=0,w=c.interruptions.length-1;w>=0;w--){var F=c.interruptions[w];c.J.add(F-W);W=F}W=0;for(w=c.X.length-1;w>=0;w--){F=c.X[w];var Z=F.stamp/36E5;c.J.add(Z-W);W=Z;c.J.add(F.net/1E3);c.J.add(F.max)}c=c.J.ys();X.J={ttr:V,ttm:G,d:n,st:L,bw:d,abw:h,v50:A,v92:Y,v96:H,v98:a,"int":c}}PND(this.h7,X)}else this.mediaElement&&(X.g7=ng(this.mediaElement));X.wl=this.wl;X.T8=this.T8;X.U=this.isAtLiveHead()&&this.isPlaying()?cPt(this):NaN;return X}; +g.y.kx=function(X,c){this.T8+=X;this.wl+=c}; +g.y.ut=function(){return this.mediaElement?g.mJ(this.videoData)?1:Rv(this.videoData)?this.isAtLiveHead()||this.le()?1:this.Sr.ut():this.mediaElement.ut():0}; +g.y.gB=function(){var X=this.ZJ,c=cP(X,"bandwidth"),V=cP(X,"bufferhealth"),G=cP(X,"livelatency"),n=cP(X,"networkactivity"),L=Xe(X,"bandwidth"),d=Xe(X,"bufferhealth"),h=Xe(X,"livelatency");X=Xe(X,"networkactivity");var A=this.w8(),Y=A.droppedVideoFrames;A=A.totalVideoFrames;var H=this.getCurrentTime();if(this.yC){var a="IT/"+(this.yC.J.getInfo()+"/"+YW(this.PN()));a+="/"+this.yC.getInfo()}else a="";var W=this.isGapless(),w=this.uF(),F=this.XY(),Z=g.j2(this),v=this.getPlayerState(),e=this.getPlaylistSequenceForTime(this.getCurrentTime()); +a:{var m=0;var t="";if(this.nM){if(this.nM.Z6){t="D,";break a}m=this.nM.VS();t=this.nM.bV().substring(0,4)}else this.AX&&(m=this.AX.VS(),t=this.AX.bV().substring(0,4));m>0?(m="AD"+m+", ",t&&(m+=t+", "),t=m):t=""}return{dg:L,Ch:d,currentTime:H,rL:a,droppedVideoFrames:Y,isGapless:W,uF:w,BC:F,M2:c,lY:V,VI:G,yI:n,o0:h,e$:X,pH:Z,playerState:v,zK:e,Yp:t,totalVideoFrames:A}}; +g.y.J1=function(X){var c={};if(X===void 0?0:X){Object.assign(c,this.bB().J1());this.mediaElement&&(Object.assign(c,this.mediaElement.J1()),Object.assign(c,this.w8()));this.h7&&Object.assign(c,this.h7.J1());this.yC&&(c.drm=JSON.stringify(this.yC.J1()));c.state=this.playerState.state.toString(16);g.B(this.playerState,128)&&(c.debug_error=JSON.stringify(this.playerState.oP));this.Q0()&&(c.prerolls=this.Xg.join(","));this.videoData.tT&&(c.ismb=this.videoData.tT);this.videoData.latencyClass!=="UNKNOWN"&& +(c.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(c.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)c.is_mosaic=1;this.videoData.cotn&&(c.is_offline=1,c.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(c.playerResponseCpn=this.videoData.playerResponseCpn);this.Ed.isOrchestrationLeader()&&(c.leader=1);this.videoData.isLivePlayback&&(this.videoData.J&& +vy(this.videoData.J)&&(c.segduration=vy(this.videoData.J)),X=this.Sr,c.lat=X.D?deO(X.D.X):0,c.liveutcstart=this.videoData.liveUtcStartSeconds);c.relative_loudness=this.videoData.lX.toFixed(3);if(X=g.j2(this))c.optimal_format=X.video.qualityLabel;c.user_qual=UM();c.release_version=Vl[50];g.CW(this.videoData)&&this.AX&&(c.ssap=nX(this.AX))}c.debug_videoId=this.videoData.videoId;return c}; +g.y.addCueRange=function(X){this.yd([X])}; +g.y.removeCueRange=function(X){this.R$.oT([X])}; +g.y.Q7=function(){this.R$.sync()}; +g.y.UZ=function(X,c){return this.R$.UZ(X,c)}; +g.y.yd=function(X,c){this.R$.Gr(X,c)}; +g.y.Bu=function(X){this.R$.oT(X)}; +g.y.a9=function(X){var c=this.R$;X.length<=0||c.vl()||(X=c.J,X.array.sort(X.J))}; +g.y.F9=function(){return this.R$.F9()||[]}; +g.y.ey=function(){return this.L4}; +g.y.Gy=function(){return this.visibility.Gy()}; +g.y.ZG=function(){this.mediaElement&&this.mediaElement.ZG()}; +g.y.YNl=function(){h_(this)}; +g.y.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; +g.y.Qx=function(){g.l5(this.td)}; +g.y.Uw=function(){this.er();this.publish("onLoadProgress",this,this.ut())}; +g.y.zk=function(X){var c=X.target.I$();if(this.mediaElement&&this.mediaElement.I$()&&this.mediaElement.I$()===c){ggS(this,X.type);switch(X.type){case "error":var V=dx(this.mediaElement)||"",G=this.mediaElement.NJ();if(V==="capability.changed"){this.S("html5_restart_on_capability_change")?(this.Oy("capchg",{msg:G}),this.cD(!0)):yI(this);return}if(this.mediaElement.hasError()&&(VrU(this.St,V,{msg:G})||g.CW(this.videoData)&&this.AX&&(G=this.playerState.oP,this.AX.handleError(V,G==null?void 0:G.gL))))return; +if(this.isBackground()&&this.mediaElement.dJ()===4){this.Cr();Y4(this,"unplayable");return}break;case "durationchange":V=this.mediaElement.getDuration();isFinite(V)&&(!this.ev||V>0)&&V!==1&&this.HF(V);break;case "ratechange":this.h7&&this.h7.setPlaybackRate(this.mediaElement.getPlaybackRate());XPs(this.R$);this.bB().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":prD(this);this.publish("onLoadedMetadata");ee8(this);V=this.Tm();this.videoData.J2&&(this.videoData.J2=V);break; +case "loadstart":ee8(this);break;case "progress":case "suspend":g.EZ(this.qW.experiments,"html5_progress_event_throttle_ms")>0?this.X5.GM():this.Uw();break;case "playing":this.BP.sb("plev");this.j8&&!Cl(this)&&(this.j8=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{Z3:"videoplayer_onPlaying"})));break;case "timeupdate":V=this.mediaElement&&!this.mediaElement.getCurrentTime();G=this.mediaElement&&this.mediaElement.ag()===0;if(V&&(!this.xd||G))return; +this.xd=this.xd||!!this.mediaElement.getCurrentTime();og1(this);this.er();if(!this.mediaElement||this.mediaElement.I$()!==c)return;this.publish("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(this.mediaElement.HN().length>0&&this.mediaElement.q$().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.h7)return;this.S("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.ag()>2||!this.mediaElement.isSeeking()&& +aQ(this.mediaElement.q$(),this.mediaElement.getCurrentTime()))&&(V=this.mediaElement.J1(),V.bh=ng(this.mediaElement).toFixed(3),this.Oy("uwe",V));g.CW(this.videoData)&&this.AX&&UWl(this.AX,this.mediaElement.getCurrentTime());break;case "resize":prD(this);this.videoData.G&&this.videoData.G.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.EP&&g.B(this.playerState,8)&&!g.B(this.playerState,1024)&&this.getCurrentTime()===0&&g.v8){Y4(this,"safari_autoplay_disabled"); +return}}if(this.mediaElement&&this.mediaElement.I$()===c){g4l(this.Sr,X,this.AX||void 0);this.publish("videoelementevent",X);c=this.playerState;G=this.hY;var n=this.mediaElement;V=this.videoData.clientPlaybackNonce;var L=g.CW(this.videoData)&&this.AX?Bo(this.AX):void 0;if(!g.B(c,128)){var d=c.state;n=n?n:X.target;var h=n.getCurrentTime();if(!g.B(c,64)||X.type!=="ended"&&X.type!=="pause"){L=L||n.getDuration();L=n.isEnded()||h>1&&Math.abs(h-L)<1.1;var A=X.type==="pause"&&n.isEnded();h=X.type==="ended"|| +X.type==="waiting"||X.type==="timeupdate"&&!g.B(c,4)&&!pl(G,h);if(A||L&&h)n.i6()>0&&n.I$()&&(d=14);else switch(X.type){case "error":dx(n)&&(d|=128);break;case "pause":g.B(c,256)?(d^=256)||(d=64):g.B(c,32)||g.B(c,2)||g.B(c,4)||(d=4,g.B(c,1)&&g.B(c,8)&&(d|=1));break;case "playing":h=d;d=(d|8)&-1093;h&4?(d|=1,h2(G,n,!0)):pl(G,n.getCurrentTime())&&(d&=-2);g.B(c,1)&&h2(G,n)&&(d|=1);break;case "seeking":d|=16;g.B(c,8)&&(d|=1);d&=-3;break;case "seeked":d&=-17;h2(G,n,!0);break;case "waiting":g.B(c,2)||(d|= +1);h2(G,n);break;case "timeupdate":h=g.B(c,16),L=g.B(c,4),(g.B(c,8)||h)&&!L&&pl(G,n.getCurrentTime())&&(d=8),h2(G,n)&&(d|=1)}}G=d;d=null;G&128&&(d=X.target,n=dx(d),h=1,n?(n==="capability.changed"&&(h=2),L="GENERIC_WITHOUT_LINK",A=d.J1(),A.mediaElem="1",/AUDIO_RENDERER/.test(d.NJ())&&(L="HTML5_AUDIO_RENDERER_ERROR"),d={errorCode:n,errorMessage:g.IM[L]||"",wr:L,vY:bo(A),gL:h,cpn:c.oP?c.oP.cpn:""}):d=null,d&&(d.cpn=V));c=A2(c,G,d)}!g.B(this.playerState,1)&&g.B(c,1)&&Mq2(this,"evt"+X.type);this.Ni(c)}}}; +g.y.Uiy=function(X){X=X.J.availability==="available";X!==this.L4&&(this.L4=X,this.publish("airplayavailabilitychange"))}; +g.y.XdO=function(){var X=(0,g.ta)(),c=this.mediaElement.Gy();this.Oy("airplay",{ia:c});!c&&!isNaN(this.L$)&&X-this.L$<2E3||(this.L$=X,c!==this.Gy()&&(X=this.visibility,X.J!==c&&(X.J=c,X.U5()),this.Oy("airplay",{rbld:c}),this.QE()),this.publish("airplayactivechange"))}; +g.y.v_=function(X){if(this.h7){var c=this.h7,V=c.X,G=c.getCurrentTime(),n=Date.now()-V.C;V.C=NaN;V.Oy("sdai",{adfetchdone:X,d:n});X&&!isNaN(V.D)&&V.G!==3&&Nh(V.h7,G,V.D,V.B);V.policy.Z?V.Z=NaN:V.X=NaN;pD(V,4,V.G===3?"adfps":"adf");KX(c)}}; +g.y.u9=function(){g.v3(this.Xx);this.Xy.stop();this.videoData.kO=!0;this.qW.KW=!0;this.qW.Ly=0;var X=this.St;if(X.videoData.G){var c=X.Fh.Z,V=X.videoData.G.VK;c.G.has(V)&&(c.G.delete(V),nL(c))}X.J.stop();this.Fu();g.B(this.playerState,8)&&this.Ni(jW(this.playerState,65));this.r0=!1;pGS(this.bB());g.Xn(this.IG);this.publish("playbackstarted");(X=g.Pw("yt.scheduler.instance.clearPriorityThreshold"))?X():di(0,0)}; +g.y.Fu=function(){var X=this.Ed.Vg(),c={},V={};!sr("pbs",this.BP.timerName)&&ll.measure&&ll.getEntriesByName&&(ll.getEntriesByName("mark_nr")[0]?Lq8("mark_nr"):Lq8());X.videoId&&(c.videoId=X.videoId);X.clientPlaybackNonce&&!this.S("web_player_early_cpn")&&(c.clientPlaybackNonce=X.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(V.isPausedOnLoad=!0);V.itag=X.G?Number(X.G.itag):-1;X.z2&&(V.preloadType=String(this.GU?2:1));c.liveStreamMode=kZA[xB(X)];c.playerInfo=V;this.BP.infoGel(c); +if(this.h7){X=this.h7.timing;window&&window.performance&&window.performance.getEntriesByName&&(X.U&&(c=window.performance.getEntriesByName(X.U),c.length&&(c=c[0],X.tick("vri",c.fetchStart),X.tick("vdns",c.domainLookupEnd),X.tick("vreq",c.requestStart),X.tick("vrc",c.responseEnd))),X.G&&(c=window.performance.getEntriesByName(X.G),c.length&&(c=c[0],X.tick("ari",c.fetchStart),X.tick("adns",c.domainLookupEnd),X.tick("areq",c.requestStart),X.tick("arc",c.responseEnd))));X=X.ticks;for(var G in X)X.hasOwnProperty(G)&& +this.BP.tick(G,X[G])}}; +g.y.FZ=function(X,c,V){X=(X+(this.lD===3?.3:0))/c;c=Math.floor(X*4);c>this.lD&&(this.Oy("vpq",{q:c,cpn:V||this.videoData.clientPlaybackNonce,ratio:X.toFixed(3)}),this.lD=c)}; +g.y.iE=function(){this.lD=-1}; +g.y.er=function(X){var c=this;X=X===void 0?!1:X;if(this.mediaElement&&this.videoData){J_1(this.Sr,this.isPlaying());var V=this.getCurrentTime();!this.h7||g.B(this.playerState,4)&&g.mJ(this.videoData)||g.B(this.playerState,32)&&yu(this.videoData)||KJO(this.h7,V);this.S("html5_ssap_pacf_qoe_ctmp")&&this.playerType===2&&this.FZ(V,this.videoData.lengthSeconds);V>5&&(this.Sr.X=V);var G=g.L$();G?g.PL.IT(this.dk):g.xP(this.dk);var n=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!n||cO(this.videoData))&& +!g.B(this.playerState,128)){var L=function(){if(c.mediaElement&&!g.B(c.playerState,128)){c.qW.YU()&&ggS(c,"pfx");var d=c.getCurrentTime();c.S("html5_buffer_underrun_transition_fix")&&(d-=c.h1());var h=ng(c.mediaElement),A=g.B(c.playerState,8),Y=pl(c.hY,d),H=UAl(c.hY,d,(0,g.ta)(),h);A&&Y?c.Ni(jW(c.playerState,1)):A&&H?(A=c.getDuration(),Y=HJ(c.videoData),A&&Math.abs(A-d)<1.1?(c.Oy("setended",{ct:d,bh:h,dur:A,live:Y}),c.mediaElement.Kj()?(c.logger.debug("seek to 0 because of looping"),c.seekTo(0,{Z3:"videoplayer_loop", +seekSource:37})):c.ZP()):(c.playerState.isBuffering()||Mq2(c,"progress_fix"),c.Ni(YN(c.playerState,1)))):(A&&!Y&&!H&&d>0&&(A=(Date.now()-c.C4)/1E3,Y=c.getDuration(),d>Y-1&&c.Oy("misspg",{t:d.toFixed(2),d:Y.toFixed(2),r:A.toFixed(2),bh:h.toFixed(2)})),c.playerState.isPaused()&&c.playerState.isBuffering()&&ng(c.mediaElement)>5&&c.Ni(jW(c.playerState,1)));c.er()}}; +this.mediaElement.HN().length===0?this.dk=G?g.PL.jV(L,100):g.Q8(L,100):this.dk=G?g.PL.jV(L,500):g.Q8(L,500)}this.videoData.LS=V;this.AX&&this.AX.xV();!X&&this.isPlaying()&&mq1(this);kYl(this.Ml,this.Xj,this.vg(),this.isBackground())&&ni(this);this.publish("progresssync",this,X);n&&cO(this.videoData)&&this.publish("onVideoProgress",this,this.getCurrentTime())}}; +g.y.xWW=function(){this.eX("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; +g.y.XY=function(){return this.bB().XY()}; +g.y.gr=function(){return this.h7?this.h7.gr():xC(this.qW.schedule,!0)}; +g.y.Ni=function(X){if(!g.aH(this.playerState,X)){this.logger.debug(function(){return"Setting state "+X.toString()}); +var c=new g.ES(X,this.playerState);this.playerState=X;fL2(this);var V=!this.Ir.length;this.Ir.push(c);var G=this.mediaElement&&this.mediaElement.isSeeking();G=c.oldState.state===8&&!G;g.QP(c,1)&&G&&g.B(this.playerState,8)&&!g.B(this.playerState,64)&&this.h7&&($Ow(this.h7),this.mediaElement&&ng(this.mediaElement)>=5&&xrj(this.Ml,this.Xj)&&ni(this));(G=g.EZ(this.qW.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.B(X,1)&&(g.B(X,8)||g.B(X,16))?this.zH.start(G):this.zH.stop();(rR(c,8)<0|| +g.QP(c,1024))&&this.Xy.stop();!g.QP(c,8)||this.videoData.kO||g.B(c.state,1024)||this.Xy.start();g.B(c.state,8)&&rR(c,16)<0&&!g.B(c.state,32)&&!g.B(c.state,2)&&this.playVideo();g.B(c.state,2)&&Rv(this.videoData)&&(this.HF(this.getCurrentTime()),this.er(!0));g.QP(c,2)&&(this.j4(!0),this.qW.YU()&&this.S("html5_sabr_parse_live_metadata_playback_boundaries")&&yu(this.videoData)&&this.videoData.J&&(G={minst:""+this.videoData.J.aF,cminst:""+(this.videoData.J.Qg()+this.h1()),maxst:""+this.videoData.J.Fn, +hts:""+this.videoData.J.A7,cmaxst:""+(this.videoData.J.SQ()+this.h1())},this.Oy("sabrSeekableBoundaries",G)));g.QP(c,128)&&this.Cr();this.videoData.J&&this.videoData.isLivePlayback&&!this.ML&&(rR(c,8)<0?dUs(this.videoData.J):g.QP(c,8)&&this.videoData.J.resume());o4U(this.Sr,c);NKO(this.bB(),c);if(V&&!this.vl())try{for(var n=g.r(this.Ir),L=n.next();!L.done;L=n.next()){var d=L.value;c_w(this.R$,d);this.publish("statechange",d)}}finally{this.Ir.length=0}}}; +g.y.D9=function(){this.BP.tick("qoes")}; +g.y.eg=function(){this.Sr.eg()}; +g.y.Li=function(X,c,V,G){a:{var n=this.St;G=G===void 0?"LICENSE":G;V=V.substring(0,256);var L=O3(c);X==="drm.keyerror"&&this.yC&&this.yC.G.keys.length>1&&n.X<96&&(X="drm.sessionlimitexhausted",L=!1);if(L)if(n.videoData.G&&n.videoData.G.video.isHdr())h91(n,X);else{if(n.J7.eX(X,c,G,V),qks(n,{detail:V}))break a}else n.Mi(X,{detail:V});X==="drm.sessionlimitexhausted"&&(n.Oy("retrydrm",{sessionLimitExhausted:1}),n.X++,lLl(n.J7))}}; +g.y.y1h=function(){var X=this,c=g.EZ(this.qW.experiments,"html5_license_constraint_delay"),V=Lv();c&&V?(c=new g.qR(function(){X.pw();h_(X)},c),g.N(this,c),c.start()):(this.pw(),h_(this))}; +g.y.Z$=function(X){this.publish("heartbeatparams",X)}; +g.y.GS=function(X){this.Oy("keystatuses",Z9U(X));var c="auto",V=!1;this.videoData.G&&(c=this.videoData.G.video.quality,V=this.videoData.G.video.isHdr());if(this.S("html5_drm_check_all_key_error_states")){var G=x$w(c,V);G=Ll(X)?vzO(X,G):X.X.includes(G)}else{a:{c=x$w(c,V);for(G in X.J)if(X.J[G].status==="output-restricted"){var n=X.J[G].type;if(c===""||n==="AUDIO"||c===n){G=!0;break a}}G=!1}G=!G}if(this.S("html5_enable_vp9_fairplay")){if(V)if(X.D){var L;if((L=this.yC)==null?0:NY(L.J))if((V=this.yC)== +null)V=0;else{c=L=void 0;n=g.r(V.G.values());for(var d=n.next();!d.done;d=n.next())d=d.value,L||(L=kTt(d,"SD")),c||(c=kTt(d,"AUDIO"));V.WS({sd:L,audio:c});V=L==="output-restricted"||c==="output-restricted"}else V=!G;if(V){this.Oy("drm",{dshdr:1});h91(this.St);return}}else{this.videoData.TE||(this.videoData.TE=!0,this.Oy("drm",{dphdr:1}),this.cD(!0));return}var h;if((h=this.yC)==null?0:NY(h.J))return}else if(h=X.D&&G,V&&!h){h91(this.St);return}G||vzO(X,"AUDIO")&&vzO(X,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"), +X=Z9U(X),this.n3?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.S("html5_report_fatal_drm_restricted_error_killswitch")||this.eX("drm.keyerror",2,void 0,"info."+X)):(this.n3=!0,this.Mi(new tm("qoe.restart",Object.assign({},{retrydrm:1},X))),ni(this),lLl(this)))}; +g.y.C3y=function(){if(!this.videoData.kO&&this.mediaElement&&!this.isBackground()){var X="0";this.mediaElement.ag()>0&&ng(this.mediaElement)>=5&&this.videoData.U&&this.videoData.U.J&&(this.Ni(YN(this.playerState,1)),Mq2(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),X="1");fL2(this);var c=this.videoData.U;X={restartmsg:X,mfmt:!G2(this.videoData),mdrm:!(!(c&&c.videoInfos&&c.videoInfos.length&&c.videoInfos[0].r$)||this.yC),mfmtinfo:!this.videoData.G,prerolls:this.Q0()?this.Xg.join(","): +"0"};if(this.yC){c=this.yC;if(c.G.size<=0){var V="ns;";c.C||(V+="nr;");c=V+="ql."+c.U.length}else c=Z9U(c.G.values().next().value),c=bo(c);X.drmp=c}var G;Object.assign(X,((G=this.h7)==null?void 0:G.J1())||{});var n;Object.assign(X,((n=this.mediaElement)==null?void 0:n.J1())||{});this.bB().Mi("qoe.start15s",bo(X));this.publish("loadsofttimeout")}}; +g.y.HF=function(X){this.videoData.lengthSeconds!==X&&(this.videoData.lengthSeconds=X,h_(this))}; +g.y.j4=function(X,c){var V=this;X=X===void 0?!1:X;if(!this.BQ)if(sr("att_s","player_att")||DN("att_s",void 0,"player_att"),this.S("use_rta_for_player"))(function(){var n,L,d,h;return g.O(function(A){switch(A.J){case 1:if(!(n=X)){A.Wl(2);break}return g.b(A,g.lEt(),3);case 3:n=!A.G;case 2:if(n)return A.return();g.x1(A,4);L=uaD(V.bB());if(!L)throw Error();d={};return g.b(A,g.Ows((d.cpn=V.videoData.clientPlaybackNonce,d.encryptedVideoId=V.videoData.videoId||"",d),3E4),6);case 6:h=A.G;if(V.BQ)throw Error(); +if(!h.challenge)throw g.UQ(Error("Not sending attestation ping; no attestation challenge string")),Error();V.BQ=!0;var Y=[h.challenge];h.error?Y.push("r1c="+h.error):h.webResponse&&Y.push("r1a="+h.webResponse);var H;((H=h.adblockReporting)==null?void 0:H.reportingStatus)!==void 0&&Y.push("r6a="+h.adblockReporting.reportingStatus);var a;((a=h.adblockReporting)==null?void 0:a.broadSpectrumDetectionResult)!==void 0&&Y.push("r6b="+h.adblockReporting.broadSpectrumDetectionResult);L(Y.join("&"));DN("att_f", +void 0,"player_att");g.k1(A,0);break;case 4:g.o8(A),DN("att_e",void 0,"player_att"),g.ZS(A)}})})().then(function(){c==null||c()}); +else{var G=new g.tRt(this.videoData);if("c1a"in G.B1&&!g.g1.isInitialized()){DN("att_wb",void 0,"player_att");this.Fl===2&&Math.random()<.01&&g.UQ(Error("Botguard not available after 2 attempts"));if(X)return;if(this.Fl<5){g.Xn(this.aG);this.Fl++;return}}(G=g.Oo8(G))?(DN("att_f",void 0,"player_att"),TKD(this.bB(),G),this.BQ=!0):DN("att_e",void 0,"player_att")}}; +g.y.Sc=function(X){X=X===void 0?!1:X;if(HJ(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.le()||g.mJ(this.videoData)))X=this.getCurrentTime();else if(g.CW(this.videoData)&&this.AX){X=this.AX;var c=this.getCurrentTime();X=(X=z81(X,c*1E3))?(X.Lm()-X.cW())/1E3:0}else X=this.SQ(X);return X}; +g.y.aA=function(){return g.CW(this.videoData)?this.videoData.Qg():this.Qg()}; +g.y.SQ=function(X){return this.Sr.SQ(X===void 0?!1:X)}; +g.y.Qg=function(){return this.Sr.Qg()}; +g.y.h1=function(){return this.Sr?this.Sr.h1():0}; +g.y.getStreamTimeOffset=function(){return this.Sr?this.Sr.getStreamTimeOffset():0}; +g.y.Bc=function(){var X=0;this.qW.S("web_player_ss_media_time_offset")&&(X=this.getStreamTimeOffset()===0?this.h1():this.getStreamTimeOffset());return X}; +g.y.setPlaybackRate=function(X){var c;this.playbackRate!==X&&$r2(this.Ml,(c=this.videoData.U)==null?void 0:c.videoInfos)&&(this.playbackRate=X,ni(this));this.playbackRate=X;this.mediaElement&&this.mediaElement.setPlaybackRate(X)}; +g.y.getPlaybackRate=function(){return this.playbackRate}; +g.y.getPlaybackQuality=function(){var X="unknown";if(this.videoData.G&&(X=this.videoData.G.video.quality,X==="auto"&&this.mediaElement)){var c=this.H_();c&&c.videoHeight>0&&(X=uo(c.videoWidth,c.videoHeight))}return X}; +g.y.isHdr=function(){return!!(this.videoData.G&&this.videoData.G.video&&this.videoData.G.video.isHdr())}; +g.y.W5=function(){this.bB().W5()}; +g.y.sendVideoStatsEngageEvent=function(X,c){var V=this.bB();V.J?(V=mQ(V.J,"engage"),V.A7=X,V.send(c)):c&&c()}; +g.y.m8=function(X){return this.bB().m8(X)}; +g.y.isAtLiveHead=function(X,c){c=c===void 0?!1:c;return HJ(this.videoData)&&(this.z3||c)?this.Sr.isAtLiveHead(X):!1}; +g.y.LK=function(){var X=this.SQ(),c=this.getCurrentTime(),V;(V=!HJ(this.videoData))||(V=this.Sr,V=!(V.J&&V.J.U));return V||this.le()||isNaN(X)||isNaN(c)?0:Math.max(0,X-c)}; +g.y.La=function(X){(this.z3=X)||this.Xy.stop();this.videoData.J&&(X?this.videoData.J.resume():dUs(this.videoData.J));if(this.h7){var c=this.videoData.S("html5_disable_preload_for_ssdai_with_preroll")&&this.Gf()&&this.videoData.isLivePlayback;X&&!c?this.h7.resume():ai(this,!0)}g.B(this.playerState,2)||X?g.B(this.playerState,512)&&X&&this.Ni(jW(this.playerState,512)):this.Ni(YN(this.playerState,512));c=this.bB();c.qoe&&(c=c.qoe,g.E7(c,g.$R(c.provider),"stream",[X?"A":"I"]))}; +g.y.DE=function(X){X={n:X.name,m:X.message};this.bB().Mi("player.exception",bo(X))}; +g.y.Oc=Gt(28);g.y.KK=Gt(57);g.y.y0=function(X){this.bB().y0(X)}; +g.y.zd=function(X){this.bB().zd(X)}; +g.y.Cn=function(X){this.bB().Cn(X)}; +g.y.Uq=Gt(34);g.y.Vs=Gt(40);g.y.XZ=function(X){this.bB().XZ(X)}; +g.y.zD=function(){this.Oy("hidden",{},!0)}; +g.y.w8=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; +g.y.Th=function(){return this.h7?this.h7.Th():!0}; +g.y.setLoop=function(X){this.loop=X;this.mediaElement&&!g.OZ(this.qW)&&this.mediaElement.setLoop(X)}; +g.y.Kj=function(){return this.mediaElement&&!g.OZ(this.qW)?this.mediaElement.Kj():this.loop}; +g.y.d4=function(X){this.Oy("timestamp",{o:X.toString()});this.Sr.d4(X)}; +g.y.aL=function(X){this.BP.tick(X)}; +g.y.vD=function(X){return this.BP.vD(X)}; +g.y.sb=function(X){this.BP.sb(X)}; +g.y.Oy=function(X,c,V){V=V===void 0?!1:V;this.bB().Oy(X,c,V)}; +g.y.l0=function(X,c,V){V=V===void 0?!1:V;this.bB().Oy(X,c,V)}; +g.y.Mi=function(X){this.bB().Mi(X.errorCode,bo(X.details));X=X.errorCode;if(this.videoData.isLivePlayback&&(X==="qoe.longrebuffer"||X==="qoe.slowseek")||X==="qoe.restart"){X=this.h7?mYD(this.h7.videoTrack):{};var c,V;this.Oy("lasoe",Object.assign(this.h7?mYD(this.h7.audioTrack):{},(c=this.ev)==null?void 0:(V=c.J)==null?void 0:V.po()));var G,n;this.Oy("lvsoe",Object.assign(X,(G=this.ev)==null?void 0:(n=G.G)==null?void 0:n.po()))}}; +g.y.xm=function(X,c,V){this.bB().xm(X,c,V)}; +g.y.vu=function(X,c,V,G,n,L,d,h){var A;if((A=this.videoData.J)!=null&&A.isLive){var Y=c.playerType===2?c:X,H=X.videoData.videoId,a=c.videoData.videoId;if(H&&a){A=this.bB();if(A.qoe){var W=A.qoe,w=X.cpn,F=c.cpn,Z=Y.videoData.Od,v=W.provider.videoData.clientPlaybackNonce,e=W.provider.videoData.videoId,m=F!==v&&a!==e;v=w!==v&&H!==e;W.reportStats();W.adCpn&&W.adCpn!==w||(W.adCpn=v?w:"",W.G_=v?H:"",W.adFormat=v?Z:void 0,vG(W,2,L?4:n?2:0,F,a,G),W.reportStats(),W.adCpn=m?F:"",W.G_=m?a:"",W.adFormat=m?Z: +void 0,vG(W,2,L?5:n?3:1,w,H,V),W.reportStats())}V=X.cpn;if(A.U.has(V)){if(n=A.U.get(V),tZ(n,!0).send(),bt(n),V!==A.provider.videoData.clientPlaybackNonce){R1w(n);var t;(t=A.J)==null||kQD(t);A.U.delete(V)}}else A.Ke=A.provider.videoData.clientPlaybackNonce,A.Ke&&A.J&&(A.U.set(A.Ke,A.J),tZ(A.J).send(),bt(A.J));t=c.cpn;Y=Y.videoData;G-=this.Bc();if(A.U.has(t)){G=A.U.get(t);var f=G.U&&isNaN(G.Z)?RV(G):NaN;G=mDl(G,!1);isNaN(f)||(G.D=f);G.send()}else G=PtU(A,A.provider,Y,G),A.U.set(t,G),blw(G,new g.ES(YN(new g.y_, +8),new g.y_)),vRD(G),(f=A.J)==null||bt(f);A.Ke=t;this.S("html5_unify_csi_server_stitched_transition_logging")?R4L(X.cpn,c.cpn,this.videoData.clientPlaybackNonce,c.videoData,d,void 0,h):(A=this.BP,G=this.videoData.clientPlaybackNonce,f=c.videoData,X=(X.cpn===G?"video":"ad")+"_to_"+(c.cpn===G?"video":"ad"),G={},f.B&&(G.cttAuthInfo={token:f.B,videoId:f.videoId}),d&&(G.startTime=d),Kn(X,G),g.Bh({targetVideoId:f.videoId,targetCpn:c.cpn,isSsdai:!0},X),A.qW.S("html5_enable_ssdai_transition_with_only_enter_cuerange")? +d||jq(h,X):jq(h,X))}}else this.logger.J(360717806,"SSTEvent for nonSS")}; +g.y.TG=function(){var X=this.Ed,c=X.yf;X.yf=[];return c}; +g.y.aE=function(X){this.videoData.nQ=!0;this.Mi(new tm("sabr.fallback",X));this.cD(!0)}; +g.y.q_=function(X,c){this.videoData.gD=!0;if(c===void 0||c)this.Mi(new tm("qoe.restart",X)),this.cD(!0);this.videoData.JT()&&this.S("html5_reload_caption_on_ssdai_fallback")&&this.Ed.Kn()}; +g.y.tL=function(X){this.Oy("sdai",{aftimeout:X});this.Mi(new tm("ad.fetchtimeout",{timeout:X}))}; +g.y.Qt=function(X,c){this.Oy("timelineerror",X);X=new tm("dai.timelineerror",X);c?this.eX("dai.timelineerror",1,"RETRYABLE_ERROR",bo(X.details)):this.Mi(X)}; +g.y.Zk=function(){return g.$R(this.bB().provider)}; +g.y.getPlayerSize=function(){return this.CG.getPlayerSize()}; +g.y.Nm=function(){return this.CG.Nm()}; +g.y.X9=function(){return this.BP}; +g.y.Iz=function(){return this.Ed.Iz()}; +g.y.getVolume=function(){return this.Ed.getVolume()}; +g.y.fN=function(){return this.Ed.fN()}; +g.y.isMuted=function(){return this.Ed.isMuted()}; +g.y.ZW=function(){return this.Ed.ZW()}; +g.y.Vt=function(){this.ML=!0}; +g.y.S=function(X){return this.qW.S(X)}; +g.y.UK=function(X,c,V,G,n){this.Oy("xvt",{m:X,g:c?1:0,tt:V?1:0,np:G?1:0,c:n})}; +g.y.nI=function(){var X;(X=this.h7)==null||X.resume()}; +g.y.Gf=function(){return g.SV(this.Xg,"ad")}; +g.y.X1=function(){var X=this.getCurrentTime(),c=X-this.h1();var V=this.mediaElement?WZ(this.mediaElement.q$()):0;V=Math.floor(Math.max(V-c,0))+100;var G;if(!this.S("html5_ssdai_disable_seek_to_skip")&&((G=this.h7)==null?0:G.Dl(c,this.SQ())))return this.Oy("sdai",{skipad:1,ct:c.toFixed(3),adj:0}),!0;var n;return((n=this.h7)==null?0:n.X1(c,V))?(this.Oy("sdai",{skipad:1,ct:c.toFixed(3),adj:V.toFixed(3)}),yu(this.videoData)&&this.h7.seek(c+V,{seekSource:89,Z3:"videoplayer_skipServerStitchedAd"}),pPl(this.Sr, +X),!0):!1}; +g.y.YU=function(){return this.qW.YU()}; +g.y.Cj=function(){if(this.S("html5_generate_content_po_token"))return this.videoData.mD||"";this.Ed.CZ();return this.qW.fJ||""}; +g.y.jy=function(){if(this.videoData.videoId)return this.videoData.rp}; +g.y.tO=function(){return this.videoData.videoId}; +g.y.nU=function(){return this.Ed.b0}; +g.y.WC=function(){return this.r0}; +g.y.eK=function(){return this.Ed.eK()}; +g.y.Jl=function(X,c){this.Sr.Jl(X,c)}; +g.y.Ns=function(){this.Sr.Ns()}; +g.y.Lv=function(X,c){var V=this.S("html5_generate_content_po_token")?this.videoData:void 0;this.Ed.Lv(X,c,V)}; +g.y.t8=function(X,c){var V;(V=this.h7)==null||V.t8(X,c)}; +g.y.Oh=function(){var X=this.iV();return!!X&&X.Oh()}; +g.y.KJ=function(){return this.AX}; +g.y.DP=function(X,c){this.bB().DP(X,c)}; +g.y.Nd=function(){return this.bB().Nd()}; +g.y.P_=function(){return this.videoData.v8}; +g.y.uF=function(){return this.Ed.uF()}; +g.y.U9=function(){return this.Ed.U9(this)}; +g.y.MA=function(){this.GV=!0}; +g.y.xN=function(){return this.rg}; +g.y.Nn=function(X){var c;(c=this.h7)==null||c.Nn(X)}; +g.y.h8=function(){var X;(X=this.h7)==null||X.h8()};g.E(NhS,SZ);g.E(Uqs,SZ);g.y=Uqs.prototype;g.y.seekToChapterWithAnimation=function(X){var c=this;if(g.wC(this.api)&&!(X<0)){var V=this.api.getVideoData(),G=V.U_;if(G&&X=0)return;c=~c;g.dQ(this.items,c,0,X);dW(this.menuItems.element,X.element,c)}X.subscribe("size-change",this.cn,this);this.menuItems.publish("size-change")}; +g.y.Ll=function(X){X.unsubscribe("size-change",this.cn,this);this.vl()||(g.qk(this.items,X),this.menuItems.element.removeChild(X.element),this.menuItems.publish("size-change"))}; +g.y.cn=function(){this.menuItems.publish("size-change")}; +g.y.focus=function(){for(var X=0,c=0;c1&&g.Oj(this)}; +g.y.m9=function(){Wxl(this);this.aZ&&(aZO(this),g.mn(this.element,this.size))}; +g.y.GZ=function(){var X=this.J.pop();$bw(this,X,this.J[this.J.length-1],!0)}; +g.y.vr=function(X){if(!X.defaultPrevented)switch(X.keyCode){case 27:this.QZ();X.preventDefault();break;case 37:this.J.length>1&&this.GZ();X.preventDefault();break;case 39:X.preventDefault()}}; +g.y.focus=function(){this.J.length&&this.J[this.J.length-1].focus()}; +g.y.R2=function(){g.TT.prototype.R2.call(this);this.B&&this.B.dispose();this.D&&this.D.dispose()};g.E(le,g.be);le.prototype.open=function(X,c){this.initialize(X.items)&&this.fM(c,!!c)}; +le.prototype.initialize=function(X){g.Ri(this.kM);if(X===void 0||X.length===0)return!1;var c=X.length;X=g.r(X);for(var V=X.next();!V.done;V=X.next())this.Y9(V.value,c--);return!0}; +le.prototype.Y9=function(X,c){X.menuNavigationItemRenderer?Ejw(this,X.menuNavigationItemRenderer,c):X.menuServiceItemRenderer&&rDw(this,X.menuServiceItemRenderer,c)};g.E(Me,oi);g.y=Me.prototype;g.y.Ha=function(X){X.target!==this.dismissButton.element&&X.target!==this.overflowButton.element&&(this.WO(),this.onClickCommand&&this.W.z_("innertubeCommand",this.onClickCommand))}; +g.y.JF=function(){this.enabled=!1;this.C.hide()}; +g.y.Ua=function(){return!!this.J&&this.enabled}; +g.y.onVideoDataChange=function(X,c){this.by(c);if(this.J){this.Ex();a:if(!this.isCounterfactual){var V,G,n;this.banner.update({title:(V=this.J)==null?void 0:V.title,subtitle:(G=this.J)==null?void 0:G.subtitle,metadata:(n=this.J)==null?void 0:n.metadataText});var L;this.onClickCommand=g.T((L=this.J)==null?void 0:L.onTap,uz);var d;if(X=g.T((d=this.J)==null?void 0:d.onOverflow,uz))this.D=g.T(X,tgr);var h;if((h=this.J)==null?0:h.thumbnailImage){var A,Y;d=((A=this.J)==null?void 0:(Y=A.thumbnailImage)== +null?void 0:Y.sources)||[];if(d.length===0)break a;this.thumbnailImage.update({url:d[0].url})}else{var H;if((H=this.J)==null?0:H.thumbnailIconName){var a;this.thumbnailIcon.update({icon:(a=this.J)==null?void 0:a.thumbnailIconName})}}var W;this.shouldShowOverflowButton=!((W=this.J)==null||!W.shouldShowOverflowButton);var w;this.shouldHideDismissButton=!((w=this.J)==null||!w.shouldHideDismissButton)}var F;this.banner.element.setAttribute("aria-label",((F=this.J)==null?void 0:F.a11yLabel)||"");var Z; +this.LS=(Z=this.J)==null?void 0:Z.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;ZHt(this)}}; +g.y.Tmy=function(){this.isVisible=!0;ZHt(this)}; +g.y.g97=function(){this.isVisible=!1;ZHt(this)}; +g.y.J9=function(){oi.prototype.J9.call(this);this.G&&this.W.logVisibility(this.banner.element,this.isVisible)}; +g.y.WO=function(){oi.prototype.WO.call(this,!1);this.G&&this.W.logClick(this.banner.element)}; +g.y.Br=function(X){this.B||(this.B=new le(this.W),g.N(this,this.B));var c,V;if((c=this.D)==null?0:(V=c.menu)==null?0:V.menuRenderer)this.B.open(this.D.menu.menuRenderer,X.target),X.preventDefault()}; +g.y.by=function(){}; +g.y.Ex=function(){}; +g.y.R2=function(){this.W.EH("suggested_action_view_model");oi.prototype.R2.call(this)};g.E(ge,Me); +ge.prototype.by=function(X){var c,V,G;this.productUpsellSuggestedActionViewModel=g.T((c=X.getWatchNextResponse())==null?void 0:(V=c.playerOverlays)==null?void 0:(G=V.playerOverlayRenderer)==null?void 0:G.suggestedActionViewModel,CuH);var n;if((n=this.productUpsellSuggestedActionViewModel)==null?0:n.content){var L;this.J=g.T((L=this.productUpsellSuggestedActionViewModel)==null?void 0:L.content,mxA)}var d,h;if(this.G=!!((d=this.productUpsellSuggestedActionViewModel)==null?0:(h=d.loggingDirectives)==null? +0:h.trackingParams)){var A,Y;this.W.setTrackingParams(this.banner.element,((A=this.productUpsellSuggestedActionViewModel)==null?void 0:(Y=A.loggingDirectives)==null?void 0:Y.trackingParams)||null)}var H;this.isCounterfactual=!((H=this.productUpsellSuggestedActionViewModel)==null||!H.isCounterfactualServing)}; +ge.prototype.Ex=function(){var X=[],c,V=g.r(((c=this.productUpsellSuggestedActionViewModel)==null?void 0:c.ranges)||[]);for(c=V.next();!c.done;c=V.next()){var G=c.value;G&&(c=Number(G.startTimeMilliseconds),G=Number(G.endTimeMilliseconds),isNaN(c)||isNaN(G)||X.push(new g.AC(c,G,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.W.Gr(X)};g.E(xbl,SZ);g.E(fi,SZ);fi.prototype.onVideoDataChange=function(X,c){var V=this;if(!PJ(c)&&(X==="newdata"&&kiD(this),this.G&&X==="dataloaded")){var G;Fk(d4(this.api.j(),(G=this.api.getVideoData())==null?void 0:g.T2(G)),function(n){var L=bHs(n);L&&!V.X&&(L=ojD(V,V.J||L))&&V.api.setAudioTrack(L,!0);V.U&&(V.U=!1,OHD(V,n))})}}; +fi.prototype.iF=function(){var X=this;if(g.OZ(this.api.j())){var c,V=g.LW(this.api.j(),(c=this.api.getVideoData())==null?void 0:g.T2(c));return Fk(HV(V),function(G){var n=Ix();N$(n,G);return X.api.iF(n)})}return HV(this.api.iF())};g.E(g.Ii,g.K9);g.y=g.Ii.prototype;g.y.open=function(){g.t_(this.PP,this.G)}; +g.y.O_=function(X){MOL(this);var c=this.options[X];c&&(c.element.setAttribute("aria-checked","true"),this.AT(this.NQ(X)),this.U=X)}; +g.y.Wo=function(X){g.Ri(this.G);for(var c={},V=!1,G=0;G=0?this.J.playbackRate:1}catch(X){return 1}}; +g.y.setPlaybackRate=function(X){this.getPlaybackRate()!==X&&(this.J.playbackRate=X);return X}; +g.y.Kj=function(){return this.J.loop}; +g.y.setLoop=function(X){this.J.loop=X}; +g.y.canPlayType=function(X,c){return this.J.canPlayType(X,c)}; +g.y.isPaused=function(){return this.J.paused}; +g.y.isSeeking=function(){return this.J.seeking}; +g.y.isEnded=function(){return this.J.ended}; +g.y.Lo=function(){return this.J.muted}; +g.y.nG=function(X){N_();this.J.muted=X}; +g.y.HN=function(){return this.J.played||YK([],[])}; +g.y.q$=function(){try{var X=this.J.buffered}catch(c){}return X||YK([],[])}; +g.y.TT=function(){return this.J.seekable||YK([],[])}; +g.y.RU=function(){var X=this.J;return X.getStartDate?X.getStartDate():null}; +g.y.getCurrentTime=function(){return this.J.currentTime}; +g.y.setCurrentTime=function(X){this.J.currentTime=X}; +g.y.getDuration=function(){return this.J.duration}; +g.y.load=function(){var X=this.J.playbackRate;try{this.J.load()}catch(c){}this.J.playbackRate=X}; +g.y.pause=function(){this.J.pause()}; +g.y.play=function(){var X=this.J.play();if(!X||!X.then)return null;X.then(void 0,function(){}); +return X}; +g.y.ag=function(){return this.J.readyState}; +g.y.i6=function(){return this.J.networkState}; +g.y.dJ=function(){return this.J.error?this.J.error.code:null}; +g.y.NJ=function(){return this.J.error?this.J.error.message:""}; +g.y.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.J instanceof window.HTMLVideoElement&&this.J.getVideoPlaybackQuality)return this.J.getVideoPlaybackQuality();if(this.J){var X=this.J,c=X.webkitDroppedFrameCount;if(X=X.webkitDecodedFrameCount)return{droppedVideoFrames:c||0,totalVideoFrames:X}}return{}}; +g.y.Gy=function(){return!!this.J.webkitCurrentPlaybackTargetIsWireless}; +g.y.ZG=function(){return!!this.J.webkitShowPlaybackTargetPicker()}; +g.y.togglePictureInPicture=function(){var X=this.J,c=window.document;window.document.pictureInPictureEnabled?this.J!==c.pictureInPictureElement?X.requestPictureInPicture():c.exitPictureInPicture():Id()&&X.webkitSetPresentationMode(X.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; +g.y.Ia=function(){var X=this.J;return new g.wn(X.offsetLeft,X.offsetTop)}; +g.y.getSize=function(){return g.Ro(this.J)}; +g.y.setSize=function(X){g.mn(this.J,X)}; +g.y.getVolume=function(){return this.J.volume}; +g.y.setVolume=function(X){N_();this.J.volume=X}; +g.y.HJ=function(X){this.Z[X]||(this.J.addEventListener(X,this.listener),this.Z[X]=this.listener)}; +g.y.setAttribute=function(X,c){this.J.setAttribute(X,c)}; +g.y.removeAttribute=function(X){this.J.removeAttribute(X)}; +g.y.hasAttribute=function(X){return this.J.hasAttribute(X)}; +g.y.Ct=Gt(67);g.y.OX=Gt(69);g.y.Gp=Gt(71);g.y.R5=Gt(73);g.y.f0=function(){return ve(this.J)}; +g.y.nF=function(X){g.Ax(this.J,X)}; +g.y.xI=function(X){return g.wS(this.J,X)}; +g.y.q8=function(){return g.h5(document.body,this.J)}; +g.y.audioTracks=function(){var X=this.J;if("audioTracks"in X)return X.audioTracks}; +g.y.R2=function(){for(var X=g.r(Object.keys(this.Z)),c=X.next();!c.done;c=X.next())c=c.value,this.J.removeEventListener(c,this.Z[c]);V_.prototype.R2.call(this)}; +g.y.oV=function(X){this.J.disableRemotePlayback=X};g.E(S2,g.z);g.E(qe,g.z);qe.prototype.show=function(){g.z.prototype.show.call(this);this.pS();this.DR.S("html5_enable_moving_s4n_window")&&g.OZ(this.DR.j())&&this.T()}; +qe.prototype.hide=function(){g.z.prototype.hide.call(this);this.delay.stop();this.X.stop()}; +qe.prototype.pS=function(){var X=(0,g.ta)(),c=BOs(this.DR);ie(this.J,c.bandwidth_samples);ie(this.D,c.network_activity_samples);ie(this.U,c.live_latency_samples);ie(this.G,c.buffer_health_samples);var V={};c=g.r(Object.entries(c));for(var G=c.next();!G.done;G=c.next()){var n=g.r(G.value);G=n.next().value;n=n.next().value;this.C[G]!==n&&(V[G]=" "+String(n));this.C[G]=n}this.update(V);X=(0,g.ta)()-X>25?5E3:500;this.delay.start(X)}; +qe.prototype.T=function(){this.B?(this.position+=1,this.position>15&&(this.B=!1)):(--this.position,this.position<=0&&(this.B=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.X.start(2E4)};g.E(C8t,SZ);g.E(Xc,g.I);Xc.prototype.J=function(){var X=(0,g.ta)()-this.startTime;X=Xthis.X[X])&&(this.J=X,AGl(this))}; +g.y.onCueRangeExit=function(X){var c=h4l(this,X);c&&this.J===X&&this.api.z_("innertubeCommand",c);this.clearTimeout();this.J=void 0}; +g.y.onTimeout=function(X){this.J!==void 0&&(X==null?void 0:X.cueRangeId)===this.J&&(X=h4l(this,this.J))&&this.api.z_("innertubeCommand",X)}; +g.y.YL=function(X){this.G=X}; +g.y.r4=function(){AGl(this);this.G=void 0}; +g.y.setTimeout=function(X){var c=this,V=Number(X==null?void 0:X.maxVisibleDurationMilliseconds);V&&(this.clearTimeout(),this.Z=setTimeout(function(){c.onTimeout(X)},V))}; +g.y.clearTimeout=function(){this.Z&&clearTimeout(this.Z);this.Z=void 0;this.D=!1}; +g.y.R2=function(){this.timelyActions=this.G=this.J=this.videoId=void 0;this.X={};this.oT();this.clearTimeout();SZ.prototype.R2.call(this)};g.E(HaO,SZ);var QW={},vXl=(QW[1]="pot_ss",QW[2]="pot_sf",QW[3]="pot_se",QW[4]="pot_xs",QW[5]="pot_xf",QW[6]="pot_xe",QW),kgt=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.E(LE,SZ);LE.prototype.R2=function(){this.B&&(g.v3(this.B),this.B=void 0);SZ.prototype.R2.call(this)}; +LE.prototype.CZ=function(){(this.J?!this.J.isReady():this.G)&&yD(this)}; +LE.prototype.s_=function(X,c,V){var G=this;if($nt(X)){var n=V||"",L;if((L=this.J)==null?0:L.isReady())c=hP(this,n),WEL(X,c);else{var d=new g.rw;c.push(d.promise);this.X.promise.then(function(){var h=hP(G,n);WEL(X,h);d.resolve()})}}}; +LE.prototype.uU=function(X){var c=this;if(this.J||this.G)X.mD=hP(this,X.videoId),this.J&&!this.J.isReady()&&(this.U=new cS,this.X.promise.then(function(){c.BP.vD("pot_if");X.mD=hP(c,X.videoId)}))};g.E(e4D,SZ);g.E(AP,g.I);AP.prototype.J=function(){for(var X=g.r(g.OD.apply(0,arguments)),c=X.next();!c.done;c=X.next())(c=c.value)&&this.features.push(c)}; +AP.prototype.R2=function(){for(var X=this.features.length-1;X>=0;X--)this.features[X].dispose();this.features.length=0;g.I.prototype.R2.call(this)};Yg.prototype.qD=function(){this.G=(0,g.ta)()}; +Yg.prototype.reset=function(){this.J=this.G=NaN}; +Yg.prototype.RI=function(X,c){if(X.clientPlaybackNonce&&!isNaN(this.J)){if(Math.random()<.01){c=c?"pbp":"pbs";var V={startTime:this.J};X.B&&(V.cttAuthInfo={token:X.B,videoId:X.videoId});Kn("seek",V);g.Bh({clientPlaybackNonce:X.clientPlaybackNonce},"seek");isNaN(this.G)||zh("pl_ss",this.G,"seek");zh(c,(0,g.ta)(),"seek")}this.reset()}};g.y=JGO.prototype;g.y.reset=function(){Th(this.timerName)}; +g.y.tick=function(X,c){zh(X,c,this.timerName)}; +g.y.vD=function(X){return Cn(X,this.timerName)}; +g.y.sb=function(X){b3(X,void 0,this.timerName)}; +g.y.infoGel=function(X){g.Bh(X,this.timerName)};g.E(tYs,g.$T);g.y=tYs.prototype;g.y.Tz=function(X){return this.loop||!!X||this.index+1=0}; +g.y.setShuffle=function(X){this.shuffle=X;X=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var c=0;c0)||Ob(this,1,!0)}; +g.y.Zs=function(){this.B=!0;this.J.Hd(this.Z);this.Z=this.J.L(document,"mouseup",this.SA)}; +g.y.SA=function(){this.B=!1;Ob(this,8,!1);this.J.Hd(this.Z);this.Z=this.J.L(this.target,"mousedown",this.Zs)}; +g.y.Sn=function(X){if(X=(X=X.changedTouches)&&X[0])this.kO=X.identifier,this.J.Hd(this.T),this.T=this.J.L(this.target,"touchend",this.Dp,void 0,!0),Ob(this,1024,!0)}; +g.y.Dp=function(X){if(X=X.changedTouches)for(var c=0;c1280||L>720)if(n=V.xz("maxresdefault.jpg"))break;if(G>640||L>480)if(n=V.xz("maxresdefault.jpg"))break; +if(G>320||L>180)if(n=V.xz("sddefault.jpg")||V.xz("hqdefault.jpg")||V.xz("mqdefault.jpg"))break;if(n=V.xz("default.jpg"))break}g.q7(c)&&(c=new Image,c.addEventListener("load",function(){Yxs()}),c.src=n?n:"",this.api.X9().tick("ftr")); +this.X.style.backgroundImage=n?"url("+n+")":""};g.E(g.fE,g.z);g.fE.prototype.resize=function(){}; +g.fE.prototype.G=function(X){var c=this;this.U=!1;mED(this);var V=X.wr,G=this.api.j();V!=="GENERIC_WITHOUT_LINK"||G.B?V==="TOO_MANY_REQUESTS"?(G=this.api.getVideoData(),this.AT(Nq(this,"TOO_MANY_REQUESTS_WITH_LINK",G.nK(),void 0,void 0,void 0,!1))):V!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||G.B?this.api.j().S("html5_enable_bandaid_error_screen")&&V==="HTML5_SPS_UMP_STATUS_REJECTED"&&!G.B?(G=G.hostLanguage,X="//support.google.com/youtube?p=videoError",G&&(X=g.KB(X,{hl:G})),this.AT(Nq(this,"HTML5_SPS_UMP_STATUS_REJECTED", +X))):this.api.j().S("enable_adb_handling_in_sabr")&&V==="BROWSER_OR_EXTENSION_ERROR"&&!G.B?(G=G.hostLanguage,X="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",G&&(X=g.KB(X,{hl:G})),this.AT(Nq(this,"BROWSER_OR_EXTENSION_ERROR",X))):this.AT(g.pE(X.errorMessage)):this.AT(Nq(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(X=G.hostLanguage,V="//support.google.com/youtube/?p=player_error1",X&&(V=g.KB(V, +{hl:X})),this.AT(Nq(this,"GENERIC_WITH_LINK_AND_CPN",V,!0)),G.G2&&!G.X&&JbO(this,function(L){if(g.dZ(L,c.api,!sT(c.api.j()))){L={as3:!1,html5:!0,player:!0,cpn:c.api.getVideoData().clientPlaybackNonce};var d=c.api;d.hT("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:L});d.isFullscreen()&&d.toggleFullscreen()}})); +if(this.U){var n=this.I2("ytp-error-link");n&&(this.api.createClientVe(n,this,216104),this.api.logVisibility(n,!0),JbO(this,function(){c.api.logClick(n)}))}}; +var eVD=/([^<>]+)<\/a>/;g.E(RVU,g.z);g.y=RVU.prototype;g.y.onClick=function(X){this.innertubeCommand?(this.W.z_("innertubeCommand",this.innertubeCommand),X.preventDefault()):g.dZ(X,this.W,!0);this.W.logClick(this.element)}; +g.y.onVideoDataChange=function(X,c){tQs(this,c);this.Ri&&OqO(this,this.Ri)}; +g.y.eA=function(X){var c=this.W.getVideoData();this.videoId!==c.videoId&&tQs(this,c);this.J&&OqO(this,X.state);this.Ri=X.state}; +g.y.fM=function(){this.fade.show();this.W.publish("paidcontentoverlayvisibilitychange",!0);this.W.logVisibility(this.element,!0)}; +g.y.QZ=function(){this.fade.hide();this.W.publish("paidcontentoverlayvisibilitychange",!1);this.W.logVisibility(this.element,!1)};g.E(Ub,g.z);Ub.prototype.hide=function(){this.J.stop();this.message.style.display="none";g.z.prototype.hide.call(this)}; +Ub.prototype.onStateChange=function(X){this.yg(X.state)}; +Ub.prototype.yg=function(X){(g.B(X,128)||this.api.WC()?0:g.B(X,16)||g.B(X,1))?this.J.start():this.hide()}; +Ub.prototype.G=function(){this.message.style.display="block"};g.E(T$,g.TT);T$.prototype.onMutedAutoplayChange=function(X){this.U&&(X?(lWj(this),this.fM()):(this.J&&this.logClick(),this.QZ()))}; +T$.prototype.vE=function(X){this.api.isMutedByMutedAutoplay()&&g.QP(X,2)&&this.QZ()}; +T$.prototype.onClick=function(){this.api.unMute();this.logClick()}; +T$.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.E(g.uV,g.U3);g.y=g.uV.prototype;g.y.init=function(){var X=this.api,c=X.getPlayerStateObject();this.BA=X.getPlayerSize();this.Ni(c);this.Y8();this.Ky();this.api.publish("basechromeinitialized",this);this.xE()&&this.api.publish("standardControlsInitialized")}; +g.y.onVideoDataChange=function(X,c){var V=this.K4!==c.videoId;if(V||X==="newdata"){X=this.api;X.isFullscreen()||(this.BA=X.getPlayerSize());var G;((G=this.api.getVideoData(1))==null?0:g.CW(G))&&this.rh()}V&&(this.K4=c.videoId,V=this.zY,V.NW=3E3,Ob(V,512,!0),this.Y8());this.api.S("web_render_jump_buttons")&&c.showSeekingControls&&(this.C6=572)}; +g.y.vcS=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; +g.y.KG=function(){var X=this.api.Xr()&&this.api.hc(),c=this.api.aq();return this.V5||X||this.E7||c}; +g.y.rh=function(){var X=!this.KG();g.ab(this.api.getRootNode(),"ytp-menu-shown",!X);var c;((c=this.api.getVideoData(1))==null?0:g.CW(c))&&g.ab(this.api.getRootNode(),"ytp-hide-controls",!X)}; +g.y.L7=function(X){try{if(!g.h5(this.api.getRootNode(),X))return!1}catch(c){return!1}for(;X&&!YW8(X);)X=X===this.api.getRootNode()?null:X.parentElement||null;return!!X}; +g.y.Cx=function(X){var c=this.api.getRootNode();g.ab(c,"ytp-autohide",X);g.ab(c,"ytp-autohide-active",!0);this.LR.start(X?250:100);X&&(this.BH=!1,g.jk(c,"ytp-touch-mode"));this.y5=!X;this.api.zb(!X)}; +g.y.oW=function(){var X=this.api.getRootNode();g.ab(X,"ytp-autohide-active",!1)}; +g.y.CfR=function(){this.Tl=!0}; +g.y.Ktc=function(X){if(this.api.j().S("player_doubletap_to_seek")||this.api.j().T)this.Tl=!1,this.dX&&this.Hd(this.dX),this.mW===0&&z$(this,X)?(this.nk(),this.J0.start(),this.dX=this.L(this.api.CS(),"touchmove",this.CfR,void 0,!0)):this.J0.stop();pnO(this)&&z$(this,X)&&!this.api.j().T&>l(this);var c=this.MI.DU();if(!g.RT(this.api.j())&&oT&&IWS(this,X))c&&X.preventDefault();else if(this.BH=!0,g.Ax(this.api.getRootNode(),"ytp-touch-mode"),this.zY.dQ(),this.api.j().S("player_doubletap_to_seek")||this.api.j().T)if(c= +this.api.getPlayerStateObject(),!(!this.api.tP()||g.B(c,2)&&g.Jt(this.api)||g.B(c,64))){c=Date.now()-this.dH;this.mW+=1;if(c<=350){this.DC=!0;c=this.api.getPlayerSize().width/3;var V=this.api.getRootNode().getBoundingClientRect(),G=X.targetTouches[0].clientX-V.left;V=X.targetTouches[0].clientY-V.top;var n=(this.mW-1)*10;G>0&&Gc*2&&G=650;this.zY.resize();g.ab(c,"ytp-fullscreen",this.api.isFullscreen());g.ab(c,"ytp-large-width-mode",V);g.ab(c,"ytp-small-mode",this.hP());g.ab(c,"ytp-tiny-mode",this.eb());g.ab(c,"ytp-big-mode",this.jO());this.eL&&this.eL.resize(X)}; +g.y.vE=function(X){this.Ni(X.state);this.Y8()}; +g.y.dE=Gt(5);g.y.O7=function(){var X=!!this.K4&&!this.api.qJ()&&!this.Kv,c=this.api.getPresentingPlayerType()===2,V=this.api.j();if(c){if(Zjr&&V.S("enable_visit_advertiser_support_on_ipad_mweb"))return!1;c=JP(this.api.X2());X&&(c&&c.player?X=(X=c.player.getVideoData(2))?X.isListed&&!g.bL(c.player.j()):!1:(FX("showInfoBarDuringAd: this is null"),X=!1));return X}return X&&(V.mE||this.api.isFullscreen()||V.lX)}; +g.y.Y8=function(){var X=this.O7();this.O0!==X&&(this.O0=X,g.ab(this.api.getRootNode(),"ytp-hide-info-bar",!X))}; +g.y.Ni=function(X){var c=X.isCued()||this.api.Q0()&&this.api.getPresentingPlayerType()!==3;c!==this.isCued&&(this.isCued=c,this.gX&&this.Hd(this.gX),this.gX=this.L(this.api.CS(),"touchstart",this.Ktc,void 0,c));var V=this.zY,G=X.isPlaying()&&!g.B(X,32)||this.api.sL();Ob(V,128,!G);V=this.zY;G=this.api.getPresentingPlayerType()===3;Ob(V,256,G);V=this.api.getRootNode();g.B(X,2)?G=[Uu.ENDED]:(G=[],g.B(X,8)?G.push(Uu.PLAYING):g.B(X,4)&&G.push(Uu.PAUSED),g.B(X,1)&&!g.B(X,32)&&G.push(Uu.BUFFERING),g.B(X, +32)&&G.push(Uu.SEEKING),g.B(X,64)&&G.push(Uu.UNSTARTED));g.jg(this.lS,G)||(g.H6(V,this.lS),this.lS=G,g.YD(V,G));G=this.api.j();var n=g.B(X,2);a:{var L=this.api.j();var d=L.controlsType;switch(d){case "2":case "0":L=!1;break a}L=d==="3"&&!g.B(X,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:VD_(JP(this.api.X2())))||this.api.aq()||g.RT(L)&&this.api.getPresentingPlayerType()===2?!1:!0}g.ab(V,"ytp-hide-controls",!L);g.ab(V,"ytp-native-controls",G.controlsType==="3"&&!c&&!n&&!this.E7);g.B(X, +128)&&!g.RT(G)?(this.eL||(this.eL=new g.fE(this.api),g.N(this,this.eL),g.M$(this.api,this.eL.element,4)),this.eL.G(X.oP),this.eL.show()):this.eL&&(this.eL.dispose(),this.eL=null)}; +g.y.hQ=function(){return this.api.Xr()&&this.api.hc()?(this.api.LG(!1,!1),!0):this.api.qJ()?(g.mM(this.api,!0),!0):!1}; +g.y.onMutedAutoplayChange=function(X){this.E7=X;this.rh()}; +g.y.jO=function(){return!1}; +g.y.hP=function(){return!this.jO()&&(this.api.getPlayerSize().width=0&&c.left>=0&&c.bottom>c.top&&c.right>c.left?c:null;c=this.size;X=X.clone();c=c.clone();G&&(d=c,n=5,(n&65)==65&&(X.x=G.right)&&(n&=-2),(n&132)==132&&(X.y=G.bottom)&&(n&=-5),X.xG.right&&(d.width=Math.min(G.right-X.x,L+d.width-G.left),d.width=Math.max(d.width,0))),X.x+d.width>G.right&&n&1&&(X.x=Math.max(G.right-d.width,G.left)),X.yG.bottom&&(d.height=Math.min(G.bottom-X.y,L+d.height-G.top),d.height=Math.max(d.height,0))),X.y+d.height>G.bottom&&n&4&&(X.y=Math.max(G.bottom-d.height,G.top)));G=new g.jF(0,0,0,0);G.left=X.x;G.top=X.y;G.width= +c.width;G.height=c.height;g.QF(this.element,new g.wn(G.left,G.top));g.l5(this.X);this.X.L(uc(this),"contextmenu",this.L77);this.X.L(this.W,"fullscreentoggled",this.onFullscreenToggled);this.X.L(this.W,"pageTransition",this.L_)}; +g.y.L77=function(X){if(!X.defaultPrevented){var c=Rl(X);g.h5(this.element,c)||this.QZ();this.W.j().disableNativeContextMenu&&X.preventDefault()}}; +g.y.onFullscreenToggled=function(){this.QZ();hht(this)}; +g.y.L_=function(){this.QZ()};g.E(XU,g.z);XU.prototype.onClick=function(){var X=this,c,V,G,n;return g.O(function(L){if(L.J==1)return c=X.api.j(),V=X.api.getVideoData(),G=X.api.getPlaylistId(),n=c.getVideoUrl(V.videoId,G,void 0,!0),g.b(L,j$O(X,n),2);L.G&&Y0D(X);X.api.logClick(X.element);g.ZS(L)})}; +XU.prototype.pS=function(){this.updateValue("icon",{N:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{N:"path",k9:!0,Y:"ytp-svg-fill",K:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3 c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.updateValue("title-attr","Copy link");this.visible=ATw(this);g.ab(this.element,"ytp-copylink-button-visible",this.visible); +this.Ry(this.visible);this.tooltip.hC();this.api.logVisibility(this.element,this.visible&&this.Z)}; +XU.prototype.iB=function(X){g.z.prototype.iB.call(this,X);this.api.logVisibility(this.element,this.visible&&X)}; +XU.prototype.R2=function(){g.z.prototype.R2.call(this);g.jk(this.element,"ytp-copylink-button-visible")};g.E(cz,g.z);cz.prototype.show=function(){g.z.prototype.show.call(this);g.Xn(this.G)}; +cz.prototype.hide=function(){this.X.stop();this.U=0;this.I2("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.jk(this.element,"ytp-chapter-seek");g.jk(this.element,"ytp-time-seeking");g.z.prototype.hide.call(this)}; +cz.prototype.Pe=function(X,c,V,G){this.U=X===this.D?this.U+G:G;this.D=X;var n=X===-1?this.C:this.T;n&&this.W.logClick(n);this.B?this.G.stop():g.VO(this.G);this.X.start();this.element.setAttribute("data-side",X===-1?"back":"forward");var L=3*this.W.CS().getPlayerSize().height;n=this.W.CS().getPlayerSize();n=n.width/3-3*n.height;this.J.style.width=L+"px";this.J.style.height=L+"px";X===1?(this.J.style.left="",this.J.style.right=n+"px"):X===-1&&(this.J.style.right="",this.J.style.left=n+"px");var d=L* +2.5;L=d/2;var h=this.I2("ytp-doubletap-ripple");h.style.width=d+"px";h.style.height=d+"px";X===1?(X=this.W.CS().getPlayerSize().width-c+Math.abs(n),h.style.left="",h.style.right=X-L+"px"):X===-1&&(X=Math.abs(n)+c,h.style.right="",h.style.left=X-L+"px");h.style.top="calc((33% + "+Math.round(V)+"px) - "+L+"px)";if(V=this.I2("ytp-doubletap-ripple"))V.classList.remove("ytp-doubletap-ripple"),V.classList.add("ytp-doubletap-ripple");HhD(this,this.B?this.U:G)};g.E(a3D,oi);g.y=a3D.prototype;g.y.iI=function(X){this.Hl||(this.Hl=new le(this.W),g.N(this,this.Hl));var c,V;if((c=this.hX)==null?0:(V=c.menu)==null?0:V.menuRenderer)this.Hl.open(this.hX.menu.menuRenderer,X.target),X.preventDefault()}; +g.y.Ua=function(){return!!this.J}; +g.y.Uk=function(){return!!this.J}; +g.y.Ha=function(X){X.target===this.overflowButton.element?X.preventDefault():(this.G2&&this.W.z_("innertubeCommand",this.G2),this.WO(!1))}; +g.y.JF=function(){this.WO(!0);var X,c;((X=this.J)==null?0:(c=X.bannerData)==null?0:c.dismissedStatusKey)&&this.Ly.push(this.J.bannerData.dismissedStatusKey);this.N4()}; +g.y.wD=function(){this.N4();dO(this)}; +g.y.GyS=function(X){var c=this,V;if(X.id!==((V=this.J)==null?void 0:V.identifier)){this.N4();V=g.r(this.NW);for(var G=V.next();!G.done;G=V.next()){var n=G.value,L=void 0,d=void 0;if((G=(L=n)==null?void 0:(d=L.bannerData)==null?void 0:d.itemData)&&n.identifier===X.id){d=L=void 0;var h=((L=n)==null?void 0:(d=L.bannerData)==null?void 0:d.dismissedStatusKey)||"";if(this.Ly.includes(h))break;this.J=n;this.banner.element.setAttribute("aria-label",G.accessibilityLabel||"");G.trackingParams&&(this.X=!0,this.W.setTrackingParams(this.badge.element, +G.trackingParams));this.C.show();k4(this);this.Pl.Ry(!G.stayInApp);oxl(this);Wyl(this);LH(this);this.G2=g.T(G.onTapCommand,uz);if(n=g.T(G.menuOnTap,uz))this.hX=g.T(n,tgr);n=void 0;this.banner.update({thumbnail:(n=(G.thumbnailSources||[])[0])==null?void 0:n.url,title:G.productTitle,price:G.priceReplacementText?G.priceReplacementText:G.price,salesOriginalPrice:Exs(this),priceDropReferencePrice:rTl(this),promotionText:Fyl(this),priceA11yText:Q$1(this),affiliateDisclaimer:G.affiliateDisclaimer,vendor:Zhj(this)}); +h=d=L=n=void 0;((n=G)==null?0:(L=n.hiddenProductOptions)==null?0:L.showDropCountdown)&&((d=G)==null?0:(h=d.hiddenProductOptions)==null?0:h.dropTimestampMs)&&(this.EM=new g.qR(function(){k0l(c)},1E3),this.Pl.hide(),this.countdownTimer.show(),k0l(this)); +this.W.S("web_player_enable_featured_product_banner_exclusives_on_desktop")&&$yU(this)&&(this.oZ=new g.qR(function(){wxw(c)},1E3),wxw(this))}}}}; +g.y.N4=function(){this.J&&(this.J=void 0,this.kA())}; +g.y.onVideoDataChange=function(X,c){var V=this;X==="dataloaded"&&dO(this);var G,n,L;X=g.T((G=c.getWatchNextResponse())==null?void 0:(n=G.playerOverlays)==null?void 0:(L=n.playerOverlayRenderer)==null?void 0:L.productsInVideoOverlayRenderer,RGV);this.overflowButton.show();this.dismissButton.hide();var d=X==null?void 0:X.featuredProductsEntityKey;this.trendingOfferEntityKey=X==null?void 0:X.trendingOfferEntityKey;this.NW.length||(vxO(this,d),LH(this));var h;(h=this.Bd)==null||h.call(this);this.Bd=g.Vu.subscribe(function(){vxO(V, +d);LH(V)})}; +g.y.R2=function(){dO(this);oxl(this);Wyl(this);oi.prototype.R2.call(this)};g.E(bhS,g.z);bhS.prototype.onClick=function(){this.W.logClick(this.element,this.G)};g.E(tcs,g.TT);g.y=tcs.prototype;g.y.show=function(){g.TT.prototype.show.call(this);this.W.publish("infopaneldetailvisibilitychange",!0);this.W.logVisibility(this.element,!0);Ohs(this,!0)}; +g.y.hide=function(){g.TT.prototype.hide.call(this);this.W.publish("infopaneldetailvisibilitychange",!1);this.W.logVisibility(this.element,!1);Ohs(this,!1)}; +g.y.getId=function(){return this.X}; +g.y.w_=function(){return this.itemData.length}; +g.y.onVideoDataChange=function(X,c){if(c){var V,G,n,L;this.update({title:((V=c.hJ)==null?void 0:(G=V.title)==null?void 0:G.content)||"",body:((n=c.hJ)==null?void 0:(L=n.bodyText)==null?void 0:L.content)||""});var d;X=((d=c.hJ)==null?void 0:d.trackingParams)||null;this.W.setTrackingParams(this.element,X);d=g.r(this.itemData);for(X=d.next();!X.done;X=d.next())X.value.dispose();this.itemData=[];var h;if((h=c.hJ)==null?0:h.ctaButtons)for(c=g.r(c.hJ.ctaButtons),h=c.next();!h.done;h=c.next())if(h=g.T(h.value, +v5k))h=new bhS(this.W,h,this.J),h.d$&&(this.itemData.push(h),h.uc(this.items))}}; +g.y.R2=function(){this.hide();g.TT.prototype.R2.call(this)};g.E(gxj,g.z);g.y=gxj.prototype;g.y.onVideoDataChange=function(X,c){Mc8(this,c);this.Ri&&pxL(this,this.Ri)}; +g.y.sT=function(X){var c=this.W.getVideoData();this.videoId!==c.videoId&&Mc8(this,c);pxL(this,X.state);this.Ri=X.state}; +g.y.MG=function(X){(this.U=X)?this.hide():this.J&&this.show()}; +g.y.n_=function(){this.G||this.fM();this.showControls=!0}; +g.y.ET=function(){this.G||this.QZ();this.showControls=!1}; +g.y.fM=function(){var X;if((X=this.W)==null?0:X.S("embeds_web_enable_info_panel_sizing_fix")){var c;X=(c=this.W)==null?void 0:c.getPlayerSize();c=X.width<380;var V;X=X.height<(((V=this.W)==null?0:V.isEmbedsShortsMode())?400:280);var G,n;if((((G=this.W)==null?0:G.getPlayerStateObject().isCued())||((n=this.W)==null?0:g.B(n.getPlayerStateObject(),1024)))&&c&&X)return}this.J&&!this.U&&(this.fade.show(),this.W.publish("infopanelpreviewvisibilitychange",!0),this.W.logVisibility(this.element,!0))}; +g.y.QZ=function(){this.J&&!this.U&&(this.fade.hide(),this.W.publish("infopanelpreviewvisibilitychange",!1),this.W.logVisibility(this.element,!1))}; +g.y.kyv=function(){this.G=!1;this.showControls||this.QZ()};var pNt={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(pNt).reduce(function(X,c){X[pNt[c]]=c;return X},{}); +var Igi={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(Igi).reduce(function(X,c){X[Igi[c]]=c;return X},{}); +var NAU={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(NAU).reduce(function(X,c){X[NAU[c]]=c;return X},{});var UJk,TAi;UJk=[{option:"#fff",text:"White"},{option:"#ff0",text:"Yellow"},{option:"#0f0",text:"Green"},{option:"#0ff",text:"Cyan"},{option:"#00f",text:"Blue"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Red"},{option:"#080808",text:"Black"}];TAi=[{option:0,text:yX(0)},{option:.25,text:yX(.25)},{option:.5,text:yX(.5)},{option:.75,text:yX(.75)},{option:1,text:yX(1)}]; +g.jO=[{option:"fontFamily",text:"Font family",options:[{option:1,text:"Monospaced Serif"},{option:2,text:"Proportional Serif"},{option:3,text:"Monospaced Sans-Serif"},{option:4,text:"Proportional Sans-Serif"},{option:5,text:"Casual"},{option:6,text:"Cursive"},{option:7,text:"Small Capitals"}]},{option:"color",text:"Font color",options:UJk},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:yX(.5)},{option:-1,text:yX(.75)},{option:0,text:yX(1)},{option:1,text:yX(1.5)},{option:2, +text:yX(2)},{option:3,text:yX(3)},{option:4,text:yX(4)}]},{option:"background",text:"Background color",options:UJk},{option:"backgroundOpacity",text:"Background opacity",options:TAi},{option:"windowColor",text:"Window color",options:UJk},{option:"windowOpacity",text:"Window opacity",options:TAi},{option:"charEdgeStyle",text:"Character edge style",options:[{option:0,text:"None"},{option:4,text:"Drop Shadow"},{option:1,text:"Raised"},{option:2,text:"Depressed"},{option:3,text:"Outline"}]},{option:"textOpacity", +text:"Font opacity",options:[{option:.25,text:yX(.25)},{option:.5,text:yX(.5)},{option:.75,text:yX(.75)},{option:1,text:yX(1)}]}];var uo7=[27,9,33,34,13,32,187,61,43,189,173,95,79,87,67,80,78,75,70,65,68,87,83,107,221,109,219];g.E(PMl,g.U3);g.y=PMl.prototype; +g.y.fT=function(X){X.repeat||(this.U.Sh=!1);var c=!1,V=X.keyCode,G=Rl(X),n=!X.altKey&&!X.ctrlKey&&!X.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||uo7.includes(V)),L=!1,d=!1,h=this.api.j();X.defaultPrevented?(n=!1,d=!0):h.Pg&&!this.api.isMutedByEmbedsMutedAutoplay()&&(n=!1);if(V===9)c=!0;else{if(G)switch(V){case 32:case 13:if(G.tagName==="BUTTON"||G.tagName==="A"||G.tagName==="INPUT")c=!0,n=!1;else if(n){var A=G.getAttribute("role");!A||A!=="option"&&A!=="button"&&A.indexOf("menuitem")!==0|| +(c=!0,G.click(),L=!0)}break;case 37:case 39:case 36:case 35:c=G.getAttribute("role")==="slider";break;case 38:case 40:A=G.getAttribute("role"),G=V===38?G.previousSibling:G.nextSibling,A==="slider"?c=!0:n&&(A==="option"?(G&&G.getAttribute("role")==="option"&&G.focus(),L=c=!0):A&&A.indexOf("menuitem")===0&&(G&&G.hasAttribute("role")&&G.getAttribute("role").indexOf("menuitem")===0&&G.focus(),L=c=!0))}if(n&&!L)switch(V){case 38:L=Math.min(this.api.getVolume()+5,100);sb(this.nE,L,!1);this.api.setVolume(L); +d=L=!0;break;case 40:L=Math.max(this.api.getVolume()-5,0);sb(this.nE,L,!0);this.api.setVolume(L);d=L=!0;break;case 36:this.api.tP()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),d=L=!0);break;case 35:this.api.tP()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),d=L=!0)}}c&&AD(this,!0);(c||d)&&this.zY.dQ();(L||n&&this.handleGlobalKeyDown(V,X.shiftKey,X.ctrlKey,X.altKey,X.metaKey,X.key,X.code,X.repeat))&&X.preventDefault();h.D&&(X={keyCode:X.keyCode, +altKey:X.altKey,ctrlKey:X.ctrlKey,metaKey:X.metaKey,shiftKey:X.shiftKey,handled:X.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.DL("onKeyPress",X))}; +g.y.jR=function(X){var c=X.keyCode;(!this.api.S("web_player_spacebar_control_bugfix")||this.api.S("web_player_spacebar_control_bugfix")&&!this.X)&&this.handleGlobalKeyUp(c,X.shiftKey,X.ctrlKey,X.altKey,X.metaKey,X.key,X.code)&&X.preventDefault()}; +g.y.handleGlobalKeyUp=function(X,c,V,G,n,L,d){this.api.publish("keyboardserviceglobalkeyup",{keyCode:X,shiftKey:c,ctrlKey:V,altKey:G,metaKey:n,key:L,code:d});c=!1;if(this.U.Sh)return c;(n=g.ON(this.api.X2()))&&(n=n.Lf)&&n.aZ&&(n.T3(X),c=!0);switch(X){case 9:AD(this,!0);c=!0;break;case 32:if(this.api.S("web_speedmaster_spacebar_control")&&(!this.api.S("web_player_spacebar_control_bugfix")&&!this.X||this.api.S("web_player_spacebar_control_bugfix"))&&!this.api.j().Pg){var h,A;X=(h=this.progressBar)== +null?void 0:(A=h.G)==null?void 0:A.isEnabled;c=this.B3(X)}break;case 39:(GH?G:V)&&this.api.S("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),h=(h=this.api.getVideoData())?h.U_:[],A=N7U(h,this.api.getCurrentTime()*1E3),A!==-1&&this.J!=null&&(Gi(this.J,1,h[A].title),this.api.seekTo(h[A].startTime/1E3,void 0,void 0,void 0,52),c=!0))}return c}; +g.y.handleGlobalKeyDown=function(X,c,V,G,n,L,d,h){h||(this.U.Sh=!1);var A=!1,Y=this.api.j();if(Y.Pg&&!this.api.isMutedByEmbedsMutedAutoplay())return A;var H=g.ON(this.api.X2());if(H&&(H=H.Lf)&&H.aZ)switch(X){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:A=H.sB(X)}Y.B||A||(A=L||String.fromCharCode(X).toLowerCase(),this.G+=A,"awesome".indexOf(this.G)===0?(A=!0,7===this.G.length&&pE8(this.api.getRootNode(),"ytp-color-party")):(this.G=A,A="awesome".indexOf(this.G)===0));if(!A&&(!this.api.isMutedByEmbedsMutedAutoplay()|| +uo7.includes(X))){var a=this.api.getVideoData(),W,w;H=(W=this.progressBar)==null?void 0:(w=W.G)==null?void 0:w.isEnabled;W=a?a.U_:[];w=GH?G:V;switch(X){case 80:c&&!Y.Hl&&(KE(this.nE,Iss(),"Previous"),this.api.previousVideo(),A=!0);break;case 78:c&&!Y.Hl&&(KE(this.nE,R_(),"Next"),this.api.nextVideo(),A=!0);break;case 74:this.api.tP()&&(this.api.startSeekCsiAction(),this.J?this.api.S("enable_key_press_seek_logging")?(A=Yj(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),VX(this.J, +-1,10,A)):VX(this.J,-1,10):KE(this.nE,{N:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{N:"path",k9:!0,Y:"ytp-svg-fill",K:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), +this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,73),A=!0);break;case 76:this.api.tP()&&(this.api.startSeekCsiAction(),this.J?this.api.S("enable_key_press_seek_logging")?(A=Yj(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),VX(this.J,1,10,A)):VX(this.J,1,10):KE(this.nE,{N:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{N:"path",k9:!0,Y:"ytp-svg-fill",K:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), +this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,74),A=!0);break;case 37:this.api.tP()&&(this.api.startSeekCsiAction(),w?(w=Uyt(W,this.api.getCurrentTime()*1E3),w!==-1&&this.J!=null&&(Gi(this.J,-1,W[w].title),this.api.seekTo(W[w].startTime/1E3,void 0,void 0,void 0,53),A=!0)):(this.J?this.api.S("enable_key_press_seek_logging")?(A=Yj(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),VX(this.J,-1,5,A)):VX(this.J,-1,5):KE(this.nE,{N:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36", +width:"100%"},V:[{N:"path",k9:!0,Y:"ytp-svg-fill",K:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}), +this.api.seekBy(-5*this.api.getPlaybackRate(),void 0,void 0,71),A=!0));break;case 39:this.api.tP()&&(this.api.startSeekCsiAction(),w?this.api.S("web_enable_keyboard_shortcut_for_timely_actions")||(w=N7U(W,this.api.getCurrentTime()*1E3),w!==-1&&this.J!=null&&(Gi(this.J,1,W[w].title),this.api.seekTo(W[w].startTime/1E3,void 0,void 0,void 0,52),A=!0)):(this.J!=null?this.api.S("enable_key_press_seek_logging")?(A=Yj(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),VX(this.J,1,5,A)):VX(this.J, +1,5):KE(this.nE,{N:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{N:"path",k9:!0,Y:"ytp-svg-fill",K:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}), +this.api.seekBy(5*this.api.getPlaybackRate(),void 0,void 0,72),A=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),sb(this.nE,this.api.getVolume(),!1)):(this.api.mute(),sb(this.nE,0,!0));A=!0;break;case 32:A=this.api.S("web_speedmaster_spacebar_control")?!this.api.j().Hl:this.B3(H);break;case 75:A=this.B3(H);break;case 190:c?Y.enableSpeedOptions&&B7t(this)&&(A=this.api.getPlaybackRate(),this.api.setPlaybackRate(A+.25,!0),UED(this.nE,!1),A=!0):this.api.tP()&&(this.step(1),A=!0);break;case 188:c? +Y.enableSpeedOptions&&B7t(this)&&(A=this.api.getPlaybackRate(),this.api.setPlaybackRate(A-.25,!0),UED(this.nE,!0),A=!0):this.api.tP()&&(this.step(-1),A=!0);break;case 70:hRl(this.api)&&(this.api.toggleFullscreen().catch(function(){}),A=!0); +break;case 27:H?(this.progressBar.FE(),A=!0):this.B()&&(A=!0)}if(Y.controlsType!=="3")switch(X){case 67:g.kg(this.api.X2())&&(Y=this.api.getOption("captions","track"),this.api.toggleSubtitles(),TuS(this.nE,!Y||Y&&!Y.displayName),A=!0);break;case 79:Hz(this,"textOpacity");break;case 87:Hz(this,"windowOpacity");break;case 187:case 61:Hz(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:Hz(this,"fontSizeIncrement",!0,!0)}var F;c||V||G||(X>=48&&X<=57?F=X-48:X>=96&&X<=105&&(F=X-96));F!=null&&this.api.tP()&& +(this.api.startSeekCsiAction(),Y=this.api.getProgressState(),this.api.seekTo(F/10*(Y.seekableEnd-Y.seekableStart)+Y.seekableStart,void 0,void 0,void 0,81),A=!0);A&&this.zY.dQ()}this.X||this.api.publish("keyboardserviceglobalkeydown",{keyCode:X,shiftKey:c,ctrlKey:V,altKey:G,metaKey:n,key:L,code:d,repeat:h},this.U);return A}; +g.y.step=function(X){this.api.tP();if(this.api.getPlayerStateObject().isPaused()){var c=this.api.getVideoData().G;c&&(c=c.video)&&this.api.seekBy(X/(c.fps||30),void 0,void 0,X>0?77:78)}}; +g.y.B3=function(X){if(!this.api.j().Hl){var c;var V,G=(c=this.api.getVideoData())==null?void 0:(V=c.getPlayerResponse())==null?void 0:V.playabilityStatus;if(G){var n;c=((n=g.T(G.miniplayer,IRi))==null?void 0:n.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else c=!1;c&&this.api.z_("onExpandMiniplayer");X?this.progressBar.Sg():(X=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.nE.fz(X),X?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; +g.y.R2=function(){g.VO(this.Z);g.U3.prototype.R2.call(this)};g.E(g.aK,g.z);g.aK.prototype.kV=Gt(11); +g.aK.prototype.pS=function(){var X=this.W.j(),c=X.U||this.W.S("web_player_hide_overflow_button_if_empty_menu")&&this.BE.isEmpty();X=g.RT(X)&&g.bc(this.W)&&g.B(this.W.getPlayerStateObject(),128);var V=this.W.getPlayerSize();this.visible=this.W.hP()&&!X&&V.width>=240&&!g.Vf(this.W.getVideoData())&&!c&&!this.J&&!this.W.isEmbedsShortsMode();g.ab(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.W.hC();this.W.logVisibility(this.element,this.visible&&this.Z)}; +g.aK.prototype.iB=function(X){g.z.prototype.iB.call(this,X);this.W.logVisibility(this.element,this.visible&&X)}; +g.aK.prototype.R2=function(){g.z.prototype.R2.call(this);g.jk(this.element,"ytp-overflow-button-visible")};g.E(Kys,g.TT);g.y=Kys.prototype;g.y.TA=function(X){X=Rl(X);g.h5(this.element,X)&&(g.h5(this.J,X)||g.h5(this.closeButton,X)||PO(this))}; +g.y.QZ=function(){g.TT.prototype.QZ.call(this);this.W.v1(this.element)}; +g.y.show=function(){this.aZ&&this.W.publish("OVERFLOW_PANEL_OPENED");g.TT.prototype.show.call(this);this.element.setAttribute("aria-modal","true");CMO(this,!0)}; +g.y.hide=function(){g.TT.prototype.hide.call(this);this.element.removeAttribute("aria-modal");CMO(this,!1)}; +g.y.onFullscreenToggled=function(X){!X&&this.DU()&&PO(this)}; +g.y.isEmpty=function(){return this.actionButtons.length===0}; +g.y.focus=function(){for(var X=g.r(this.actionButtons),c=X.next();!c.done;c=X.next())if(c=c.value,c.aZ){c.focus();break}};g.E(Dys,g.z);Dys.prototype.onClick=function(X){g.dZ(X,this.api)&&this.api.playVideoAt(this.index)};g.E(S0D,g.TT);g.y=S0D.prototype;g.y.show=function(){g.TT.prototype.show.call(this);this.J.L(this.api,"videodatachange",this.bS);this.J.L(this.api,"onPlaylistUpdate",this.bS);this.bS()}; +g.y.hide=function(){g.TT.prototype.hide.call(this);g.l5(this.J);this.updatePlaylist(null)}; +g.y.bS=function(){this.updatePlaylist(this.api.getPlaylist());this.api.j().U&&(this.I2("ytp-playlist-menu-title-name").removeAttribute("href"),this.U&&(this.Hd(this.U),this.U=null))}; +g.y.LI=function(){var X=this.playlist,c=X.author,V=c?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",G={CURRENT_POSITION:String(X.index+1),PLAYLIST_LENGTH:String(X.getLength())};c&&(G.AUTHOR=c);this.update({title:X.title,subtitle:g.xa(V,G),playlisturl:this.api.getVideoUrl(!0)});c=X.G;if(c===this.X)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[X.index];else{V=g.r(this.playlistData);for(G=V.next();!G.done;G=V.next())G.value.dispose(); +V=X.getLength();this.playlistData=[];for(G=0;G=this.G&&!X.U&&!c.isAd()&&!this.api.isEmbedsShortsMode()}else X=!1;this.visible=X;this.Ry(this.visible);g.ab(this.element,"ytp-search-button-visible",this.visible);g.ab(this.element,"ytp-show-search-title",!this.api.hP());this.api.logVisibility(this.element,this.visible&&this.Z)}; +E4.prototype.iB=function(X){g.z.prototype.iB.call(this,X);this.api.logVisibility(this.element,this.visible&&X)};g.E(g.rO,g.z);g.y=g.rO.prototype;g.y.Fb=Gt(8);g.y.onClick=function(){var X=this,c=this.api.j(),V=this.api.getVideoData(this.api.getPresentingPlayerType()),G=this.api.getPlaylistId();c=this.api.S("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):c.getVideoUrl(V.videoId,G,void 0,!0);if(navigator.share)try{var n=navigator.share({title:V.title,url:c});n instanceof Promise&&n.catch(function(L){LaO(X,L)})}catch(L){L instanceof Error&&LaO(this,L)}else this.J.hQ(),PO(this.U,this.element,!1); +this.api.logClick(this.element)}; +g.y.pS=function(){var X=this.api.j(),c=this.api.isEmbedsShortsMode();g.ab(this.element,"ytp-show-share-title",g.RT(X)&&!c);this.J.jO()&&c?(X=(this.api.CS().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.$v(this.element,"right",X+"px")):c&&g.$v(this.element,"right","0px");this.updateValue("icon",{N:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{N:"path",k9:!0,Y:"ytp-svg-fill",K:{d:"m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z"}}]}); +this.visible=nnS(this);g.ab(this.element,"ytp-share-button-visible",this.visible);this.Ry(this.visible);this.tooltip.hC();this.api.logVisibility(this.element,nnS(this)&&this.Z)}; +g.y.iB=function(X){g.z.prototype.iB.call(this,X);this.api.logVisibility(this.element,this.visible&&X)}; +g.y.R2=function(){g.z.prototype.R2.call(this);g.jk(this.element,"ytp-share-button-visible")};g.E(yJU,g.TT);g.y=yJU.prototype;g.y.jA=function(X){X=Rl(X);g.h5(this.B,X)||g.h5(this.closeButton,X)||PO(this)}; +g.y.QZ=function(){g.TT.prototype.QZ.call(this);this.tooltip.v1(this.element);this.api.logVisibility(this.J,!1);for(var X=g.r(this.U),c=X.next();!c.done;c=X.next())c=c.value,this.api.hasVe(c.element)&&this.api.logVisibility(c.element,!1)}; +g.y.show=function(){var X=this.aZ;g.TT.prototype.show.call(this);this.pS();X||this.api.z_("onSharePanelOpened")}; +g.y.rX2=function(){this.aZ&&this.pS()}; +g.y.pS=function(){var X=this;g.Ax(this.element,"ytp-share-panel-loading");g.jk(this.element,"ytp-share-panel-fail");var c=this.api.getVideoData(),V=this.api.getPlaylistId()&&this.X.checked;c.getSharePanelCommand&&qp(this.api.iF(),c.getSharePanelCommand,{includeListId:V}).then(function(G){X.vl()||(g.jk(X.element,"ytp-share-panel-loading"),AJs(X,G))}); +c=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",c);this.updateValue("linkText",c);this.updateValue("shareLinkWithUrl",g.xa("Share link $URL",{URL:c}));Aw(this.J);this.api.logVisibility(this.J,!0)}; +g.y.onFullscreenToggled=function(X){!X&&this.DU()&&PO(this)}; +g.y.focus=function(){this.J.focus()}; +g.y.R2=function(){g.TT.prototype.R2.call(this);hts(this)};g.E(HUs,oi);g.y=HUs.prototype;g.y.R2=function(){Fa2(this);oi.prototype.R2.call(this)}; +g.y.Ha=function(X){X.target!==this.dismissButton.element&&(this.WO(!1),this.W.z_("innertubeCommand",this.onClickCommand))}; +g.y.JF=function(){this.fS=!0;this.WO(!0);this.kA()}; +g.y.wgR=function(X){this.D=X;this.kA()}; +g.y.onVideoDataChange=function(X,c){if(X=!!c.videoId&&this.videoId!==c.videoId)this.videoId=c.videoId,this.fS=!1,this.kO=!0,this.T=this.A7=!1,Fa2(this),wMU(this,!1),this.G=this.J=!1,ZZ(this),afj(this);if(X||!c.videoId)this.G_=this.X=!1;var V,G;if(c==null?0:(V=c.getPlayerResponse())==null?0:(G=V.videoDetails)==null?0:G.isLiveContent)this.U5(!1);else{var n,L,d;c=g.T((n=c.getWatchNextResponse())==null?void 0:(L=n.playerOverlays)==null?void 0:(d=L.playerOverlayRenderer)==null?void 0:d.productsInVideoOverlayRenderer, +RGV);this.D=this.enabled=!1;if(c){if(n=c==null?void 0:c.featuredProductsEntityKey){L=g.Vu.getState().entities;var h;if((h=Wc(L,"featuredProductsEntity",n))==null?0:h.productsData){this.U5(!1);return}}this.enabled=!0;if(!this.X){var A;h=(A=c.badgeInteractionLogging)==null?void 0:A.trackingParams;(this.X=!!h)&&this.W.setTrackingParams(this.badge.element,h||null)}if(!this.G_){var Y;if(this.G_=!((Y=c.dismissButton)==null||!Y.trackingParams)){var H;this.W.setTrackingParams(this.dismissButton.element,((H= +c.dismissButton)==null?void 0:H.trackingParams)||null)}}c.isContentForward&&(A=c.productsData,wMU(this,!0),afj(this),A=WaD(this,A),Y=[],A.length>0&&Y.push(A[0]),A.length>1&&(H=new g.z({N:"div",Y:"ytp-suggested-action-more-products-icon"}),g.N(this,H),Y.push(H),Y.push.apply(Y,g.x(A.slice(1)))),this.B=new g.z({N:"div",V:Y,Y:"ytp-suggested-action-content-forward-container"}),g.N(this,this.B),this.wy.element.append(this.B.element));this.text=g.xT(c.text);var a;if(A=(a=c.dismissButton)==null?void 0:a.a11yLabel)this.LS= +g.xT(A);this.onClickCommand=c.onClickCommand;this.timing=c.timing;this.Gr()}jKS(this);k4(this);this.kA()}}; +g.y.Ua=function(){return!this.D&&this.enabled&&!this.fS&&!this.W.hP()&&!this.NE&&(this.T||this.kO)}; +g.y.S3=function(X){oi.prototype.S3.call(this,X);if(this.J||this.G)this.timing&&QX(this.timing.preview)&&(this.J=!1,ZZ(this),this.G=!1,ZZ(this),this.W.EH("shopping_overlay_preview_collapsed"),this.W.EH("shopping_overlay_preview_expanded"),X=xj(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),QX(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.W.EH("shopping_overlay_expanded"),X.end=this.timing.expanded.endSec*1E3),this.W.Gr([X])), +this.A7=!0,k4(this);ZZ(this)}; +g.y.U5=function(X){(this.T=X)?(vP(this),k4(this,!1)):(Fa2(this),this.QK.start());this.kA()}; +g.y.Gr=function(X){var c=this.timing;X=(X===void 0?0:X)+this.W.getCurrentTime();var V=[],G=c.visible,n=c.preview;c=c.expanded;QX(G)&&(Yul(G,X),V.push(xj(G.startSec,G.endSec,"shopping_overlay_visible")));QX(n)&&(Yul(n,X),G=n.startSec+1,V.push(xj(n.startSec,G,"shopping_overlay_preview_collapsed")),V.push(xj(G,n.endSec,"shopping_overlay_preview_expanded")));QX(c)&&(Yul(c,X),V.push(xj(c.startSec,c.endSec,"shopping_overlay_expanded")));this.W.Gr(V)};g.E(QSO,g.z); +QSO.prototype.pS=function(){var X=this.api.j();this.Ry(g.RT(X)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.aZ);var c=this.api.getVideoData(),V=!1;this.api.getPresentingPlayerType()===2?V=!!c.videoId&&!!c.isListed&&!!c.author&&!!c.NE&&!!c.profilePicture:g.RT(X)&&(V=!!c.videoId&&!!c.NE&&!!c.profilePicture&&!g.Vf(c)&&!X.U&&!(X.T&&this.api.getPlayerSize().width<200));var G=c.profilePicture;X=g.RT(X)?c.expandedTitle:c.author;G=G===void 0? +"":G;X=X===void 0?"":X;V?(this.G!==G&&(this.J.style.backgroundImage="url("+G+")",this.G=G),this.updateValue("channelLogoLabel",g.xa("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:X})),g.Ax(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.jk(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.J,V&&this.Z);this.api.logVisibility(this.channelName,V&&this.Z);this.subscribeButton&&(this.subscribeButton.channelId=c.F7);this.updateValue("expandedTitle",c.expandedTitle)};g.E(vz,g.TT);vz.prototype.show=function(){g.TT.prototype.show.call(this);this.J.start()}; +vz.prototype.hide=function(){g.TT.prototype.hide.call(this);this.J.stop()}; +vz.prototype.sQ=function(X,c){X==="dataloaded"&&((this.pY=c.pY,this.fJ=c.fJ,isNaN(this.pY)||isNaN(this.fJ))?this.U&&(this.W.EH("intro"),this.W.removeEventListener(g.jw("intro"),this.D),this.W.removeEventListener(g.HQ("intro"),this.B),this.W.removeEventListener("onShowControls",this.X),this.hide(),this.U=!1):(this.W.addEventListener(g.jw("intro"),this.D),this.W.addEventListener(g.HQ("intro"),this.B),this.W.addEventListener("onShowControls",this.X),X=new g.AC(this.pY,this.fJ,{priority:9,namespace:"intro"}), +this.W.Gr([X]),this.U=!0))};g.E(kj,g.z);kj.prototype.onClick=function(){this.W.ZG()}; +kj.prototype.pS=function(){var X=!0;g.RT(this.W.j())&&(X=X&&this.W.CS().getPlayerSize().width>=480);this.Ry(X);this.updateValue("icon",this.W.Gy()?{N:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{N:"path",k9:!0,K:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]}: +{N:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{N:"path",k9:!0,Y:"ytp-svg-fill",K:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]})};g.E(x3t,g.z);x3t.prototype.R2=function(){this.J=null;g.z.prototype.R2.call(this)};g.E(oK,g.z);oK.prototype.onClick=function(){this.W.z_("innertubeCommand",this.G)}; +oK.prototype.C=function(X){X!==this.B&&(this.update({title:X,ariaLabel:X}),this.B=X);X?this.show():this.hide()}; +oK.prototype.T=function(){this.J.disabled=this.G==null;g.ab(this.J,"ytp-chapter-container-disabled",this.J.disabled);this.er()};g.E(eO,oK);eO.prototype.onClickCommand=function(X){g.T(X,cJ)&&this.er()}; +eO.prototype.updateVideoData=function(X,c){var V,G,n;X=g.T((V=c.getWatchNextResponse())==null?void 0:(G=V.playerOverlays)==null?void 0:(n=G.playerOverlayRenderer)==null?void 0:n.decoratedPlayerBarRenderer,ez);V=g.T(X==null?void 0:X.playerBarActionButton,g.Nz);this.W.S("web_player_updated_entrypoint")&&(this.D=x0(V==null?void 0:V.text));this.G=V==null?void 0:V.command;oK.prototype.T.call(this)}; +eO.prototype.er=function(){var X=this.W.S("web_player_updated_entrypoint")?this.D:"",c=this.X.J,V,G=((V=this.W.getLoopRange())==null?void 0:V.type)==="clips";if(c.length>1&&!G){X=this.W.getProgressState().current*1E3;V=hD(c,X);X=c[V].title||"Chapters";if(V!==this.currentIndex||this.U)this.W.z_("innertubeCommand",c[V].onActiveCommand),this.currentIndex=V;this.U=!1}else this.U=!0;oK.prototype.C.call(this,X)};g.E(JD,g.z);JD.prototype.U=function(X){g.B(X.state,32)?kfD(this,this.api.a$()):this.aZ&&(g.B(X.state,16)||g.B(X.state,1))||this.fade.hide()}; +JD.prototype.E5=function(){var X=this.api.getPlayerStateObject();(g.B(X,32)||g.B(X,16))&&ons(this)}; +JD.prototype.X=function(){this.frameIndex=NaN;ons(this)}; +JD.prototype.hide=function(){this.J&&kfD(this,null);g.z.prototype.hide.call(this)};g.E(et1,g.z);g.y=et1.prototype;g.y.onClick=function(){var X=this;if(this.W.j().NE||this.W.j().T){this.W.logClick(this.element);try{this.W.toggleFullscreen().catch(function(c){X.cK(c)})}catch(c){this.cK(c)}}else PO(this.message,this.element,!0)}; +g.y.cK=function(X){String(X).includes("fullscreen error")?g.UQ(X):g.Ni(X);this.ND()}; +g.y.ND=function(){this.disable();this.message.fM(this.element,!0)}; +g.y.D0=function(){x3()===this.W.getRootNode()?this.U.start():(this.U.stop(),this.message&&this.message.hide())}; +g.y.Rd=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var X=window.screen.width*.9,c=window.screen.height*.9,V=Math.max(window.outerWidth,window.innerWidth),G=Math.max(window.outerHeight,window.innerHeight);if(V>G!==X>c){var n=V;V=G;G=n}X>V&&c>G&&this.ND()}}; +g.y.disable=function(){var X=this;if(!this.message){var c=(rN(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"Full screen is unavailable. $BEGIN_LINKLearn More$END_LINK":"Your browser doesn't support full screen. $BEGIN_LINKLearn More$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.TT(this.W,{N:"div",xO:["ytp-popup","ytp-generic-popup"],K:{role:"alert",tabindex:"0"},V:[c[0],{N:"a",K:{href:"https://support.google.com/youtube/answer/6276924", +target:this.W.j().C},Uy:c[2]},c[4]]},100,!0);this.message.hide();g.N(this,this.message);this.message.subscribe("show",function(V){X.G.i8(X.message,V)}); +g.M$(this.W,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.J)();this.J=null}}; +g.y.pS=function(){var X=hRl(this.W),c=this.W.j().T&&this.W.getPlayerSize().width<250;this.Ry(X&&!c);var V;((V=this.W.j())==null?0:V.S("embeds_use_parent_visibility_in_ve_logging"))?this.W.logVisibility(this.element,this.aZ&&this.Z):this.W.logVisibility(this.element,this.aZ)}; +g.y.GJ=function(X){if(X){var c={N:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{N:"g",Y:"ytp-fullscreen-button-corner-2",V:[{N:"path",k9:!0,Y:"ytp-svg-fill",K:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{N:"g",Y:"ytp-fullscreen-button-corner-3",V:[{N:"path",k9:!0,Y:"ytp-svg-fill",K:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{N:"g",Y:"ytp-fullscreen-button-corner-0",V:[{N:"path",k9:!0,Y:"ytp-svg-fill",K:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{N:"g", +Y:"ytp-fullscreen-button-corner-1",V:[{N:"path",k9:!0,Y:"ytp-svg-fill",K:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};X=g.ox(this.W,"Exit full screen","f");this.update({"data-title-no-tooltip":"Exit full screen"});document.activeElement===this.element&&this.W.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(V){g.UQ(V)})}else c={N:"svg", +K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{N:"g",Y:"ytp-fullscreen-button-corner-0",V:[{N:"path",k9:!0,Y:"ytp-svg-fill",K:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{N:"g",Y:"ytp-fullscreen-button-corner-1",V:[{N:"path",k9:!0,Y:"ytp-svg-fill",K:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{N:"g",Y:"ytp-fullscreen-button-corner-2",V:[{N:"path",k9:!0,Y:"ytp-svg-fill",K:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{N:"g",Y:"ytp-fullscreen-button-corner-3", +V:[{N:"path",k9:!0,Y:"ytp-svg-fill",K:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},X=g.ox(this.W,"Full screen","f"),this.update({"data-title-no-tooltip":"Full screen"});X=this.message?null:X;this.update({title:X,icon:c});this.G.ai().hC()}; +g.y.R2=function(){this.message||((0,this.J)(),this.J=null);g.z.prototype.R2.call(this)}; +g.y.iB=function(X){g.z.prototype.iB.call(this,X);var c;((c=this.W.j())==null?0:c.S("embeds_use_parent_visibility_in_ve_logging"))&&this.W.logVisibility(this.element,this.aZ&&X)};g.E(mx,g.z);mx.prototype.onClick=function(){this.W.logClick(this.element);this.W.seekBy(this.J,!0);var X=this.J>0?1:-1,c=Math.abs(this.J),V=this.W.bF().RM;V&&VX(V,X,c);this.G.isActive()?this.U=!0:(X=["ytp-jump-spin"],this.J<0&&X.push("backwards"),this.element.classList.add.apply(this.element.classList,g.x(X)),g.Xn(this.G))};g.E(RK,oK);RK.prototype.onClickCommand=function(X){g.T(X,JEG)&&this.er()}; +RK.prototype.updateVideoData=function(){var X,c;this.G=(X=m3D(this))==null?void 0:(c=X.onTap)==null?void 0:c.innertubeCommand;oK.prototype.T.call(this)}; +RK.prototype.er=function(){var X="",c=this.X.D,V,G=(V=m3D(this))==null?void 0:V.headerTitle;V=G?g.xT(G):"";var n;G=((n=this.W.getLoopRange())==null?void 0:n.type)==="clips";c.length>1&&!G&&(X=this.W.getProgressState().current*1E3,n=I3s(c,X),X=n!=null?c[n].title:V,n!=null&&n!==this.currentIndex&&(this.W.z_("innertubeCommand",c[n].onActiveCommand),this.currentIndex=n));oK.prototype.C.call(this,X)};g.E(b8,g.z);b8.prototype.onClick=function(){this.W.z_("onCollapseMiniplayer");this.W.logClick(this.element)}; +b8.prototype.pS=function(){this.visible=!this.W.isFullscreen();this.Ry(this.visible);this.W.logVisibility(this.element,this.visible&&this.Z)}; +b8.prototype.iB=function(X){g.z.prototype.iB.call(this,X);this.W.logVisibility(this.element,this.visible&&X)};g.E(tD,g.z);g.y=tD.prototype;g.y.pC=function(X){this.visible=X.width>=300||this.Pl;this.Ry(this.visible);this.W.logVisibility(this.element,this.visible&&this.Z)}; +g.y.Xgh=function(){this.W.j().QK?this.W.isMuted()?this.W.unMute():this.W.mute():PO(this.message,this.element,!0);this.W.logClick(this.element)}; +g.y.onVolumeChange=function(X){this.setVolume(X.volume,X.muted)}; +g.y.setVolume=function(X,c){var V=this,G=c?0:X/100,n=this.W.j();X=G===0?1:X>50?1:0;if(this.B!==X){var L=this.A7;isNaN(L)?tLO(this,X):iHs(this.NW,function(h){tLO(V,L+(V.B-L)*h)},250); +this.B=X}G=G===0?1:0;if(this.X!==G){var d=this.C;isNaN(d)?OUl(this,G):iHs(this.G_,function(h){OUl(V,d+(V.X-d)*h)},250); +this.X=G}n.QK&&(n=g.ox(this.W,"Mute","m"),G=g.ox(this.W,"Unmute","m"),this.updateValue("title",c?G:n),this.update({"data-title-no-tooltip":c?"Unmute":"Mute"}),this.tooltip.hC())}; +g.y.iB=function(X){g.z.prototype.iB.call(this,X);this.W.logVisibility(this.element,this.visible&&X)}; +var Rtl=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",24.77," C",21.89,",",23.85," ",24,",",21.17," ",24,",",18," C",24,",",14.83," ",21.89,",",12.15," ",19,",",11.29," L",19,",",11.29," Z"],bUD=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",26.77," C",23.01,",",25.86," ",26,",",22.28," ",26,",",18," C",26,",",13.72," ", +23.01,",",10.14," ",19,",",9.23," L",19,",",11.29," Z"];g.E(g.O4,g.z);g.y=g.O4.prototype;g.y.onStateChange=function(X){this.yg(X.state);var c;((c=this.W.j())==null?0:c.S("embeds_use_parent_visibility_in_ve_logging"))&&this.W.logVisibility(this.element,this.aZ&&this.Z)}; +g.y.yg=function(X){var c=g.mJ(this.W.getVideoData()),V=!1;X.isOrWillBePlaying()?X=c?4:2:g.B(X,2)?(X=3,V=c):X=1;this.element.disabled=V;if(this.J!==X){c=null;switch(X){case 2:c=g.ox(this.W,"Pause","k");this.update({"data-title-no-tooltip":"Pause"});break;case 3:c="Replay";this.update({"data-title-no-tooltip":"Replay"});break;case 1:c=g.ox(this.W,"Play","k");this.update({"data-title-no-tooltip":"Play"});break;case 4:c="Stop live playback",this.update({"data-title-no-tooltip":"Stop live playback"})}X=== +3?this.update({title:c,icon:lf1(X)}):(this.update({title:c}),(c=lf1(X))&&this.J&&this.J!==3?XjO(this.transition,this.element,c):this.updateValue("icon",c));this.tooltip.hC();this.J=X}}; +g.y.onVideoDataChange=function(){g.ab(this.element,"ytp-play-button-playlist",g.bc(this.W))}; +g.y.B3=function(X){this.W.logClick(this.element);if(this.W.getPlayerStateObject().isOrWillBePlaying())this.W.pauseVideo();else{if(this.W.isMinimized()&&this.W.getPlayerStateObject().isCued()){var c={},V;if((V=this.W.getVideoData())==null?0:V.B)c.cttAuthInfo={token:this.W.getVideoData().B,videoId:this.W.getVideoData().videoId};Kn("direct_playback",c);this.W.X9().timerName="direct_playback"}this.W.playVideo()}this.W.isMinimized()&&(X==null?void 0:X.type)==="click"&&this.element.blur()}; +g.y.iB=function(X){g.z.prototype.iB.call(this,X);var c;((c=this.W.j())==null?0:c.S("embeds_use_parent_visibility_in_ve_logging"))&&this.W.logVisibility(this.element,this.aZ&&X)};g.E(g.l8,g.z);g.y=g.l8.prototype;g.y.onVideoDataChange=function(){gnw(this);this.X&&(this.Hd(this.X),this.X=null);this.videoData=this.W.getVideoData(1);if(this.playlist=this.W.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.X=this.L(this.W,"progresssync",this.Mh);this.U=ffD(this);MLt(this);this.L2(this.W.CS().getPlayerSize())}; +g.y.L2=function(X){X=X===void 0?this.W.CS().getPlayerSize():X;var c,V=((c=this.W.getLoopRange())==null?void 0:c.type)==="clips";X=(g.bc(this.W)||this.J&&g.gC(this.W)&&!this.W.S("web_hide_next_button")||pMO(this))&&!V&&(this.J||X.width>=400);this.Ry(X);this.W.logVisibility(this.element,X)}; +g.y.onClick=function(X){this.W.logClick(this.element);var c=!0;this.D?c=g.dZ(X,this.W):X.preventDefault();c&&(this.J&&this.W.getPresentingPlayerType()===5?this.W.publish("ytoprerollinternstitialnext"):this.J?(Hr(this.W.X9()),this.W.publish("playlistnextbuttonclicked",this.element),this.W.nextVideo(!0)):this.U?this.W.seekTo(0):(Hr(this.W.X9()),this.W.publish("playlistprevbuttonclicked",this.element),this.W.previousVideo(!0)))}; +g.y.Mh=function(){var X=ffD(this);X!==this.U&&(this.U=X,MLt(this))}; +g.y.R2=function(){this.G&&(this.G(),this.G=null);gnw(this);g.z.prototype.R2.call(this)};g.E(NBl,g.z);g.y=NBl.prototype;g.y.zA=function(X){this.Ee(X.pageX);this.iS(X.pageX+X.deltaX);U3j(this)}; +g.y.Ee=function(X){this.G_=X-this.Hl}; +g.y.iS=function(X){X-=this.Hl;!isNaN(this.G_)&&this.thumbnails.length>0&&(this.C=X-this.G_,this.thumbnails.length>0&&this.C!==0&&(this.U=this.T+this.C,X=BBj(this,this.U),this.U<=this.J/2&&this.U>=ztO(this)?(this.api.seekTo(X,!1,void 0,void 0,25),g.$v(this.kO,"transform","translateX("+(this.U-this.J/2)+"px)"),IfD(this,X)):this.U=this.T))}; +g.y.lI=function(){this.A7&&(this.A7.Gw=!0);var X=(0,g.ta)()-this.YO<300;if(Math.abs(this.C)<5&&!X){this.YO=(0,g.ta)();X=this.G_+this.C;var c=this.J/2-X;this.Ee(X);this.iS(X+c);U3j(this);this.api.logClick(this.B)}U3j(this)}; +g.y.A8=function(){Mb(this,this.api.getCurrentTime())}; +g.y.play=function(X){this.api.seekTo(BBj(this,this.U),void 0,void 0,void 0,26);this.api.playVideo();X&&this.api.logClick(this.playButton)}; +g.y.onExit=function(X){this.api.seekTo(this.QK,void 0,void 0,void 0,63);this.api.playVideo();X&&this.api.logClick(this.dismissButton)}; +g.y.Ky=function(X,c){this.Hl=X;this.J=c;Mb(this,this.api.getCurrentTime())}; +g.y.enable=function(){this.isEnabled||(this.isEnabled=!0,this.QK=this.api.getCurrentTime(),IfD(this,this.QK),g.ab(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.wy=this.L(this.element,"wheel",this.zA),this.logVisibility(this.isEnabled))}; +g.y.disable=function(){this.isEnabled=!1;this.hide();g.ab(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.wy&&this.Hd(this.wy);this.logVisibility(this.isEnabled)}; +g.y.reset=function(){this.disable();this.X=[];this.Pl=!1}; +g.y.logVisibility=function(X){this.api.logVisibility(this.element,X);this.api.logVisibility(this.B,X);this.api.logVisibility(this.dismissButton,X);this.api.logVisibility(this.playButton,X)}; +g.y.R2=function(){for(;this.G.length;){var X=void 0;(X=this.G.pop())==null||X.dispose()}g.z.prototype.R2.call(this)}; +g.E(TBO,g.z);g.E(uAj,g.z);g.E(Ka1,g.z);g.E(gO,g.z);gO.prototype.WP=function(X){return X==="PLAY_PROGRESS"?this.T:X==="LOAD_PROGRESS"?this.D:X==="LIVE_BUFFER"?this.B:this.U};D3S.prototype.update=function(X,c,V,G){V=V===void 0?0:V;this.width=c;this.X=V;this.J=c-V-(G===void 0?0:G);this.position=g.am(X,V,V+this.J);this.U=this.position-V;this.G=this.U/this.J};g.E(SuO,g.z);g.E(g.IK,g.rP);g.y=g.IK.prototype; +g.y.jC=function(){var X=!1,c=this.api.getVideoData();if(!c)return X;this.api.EH("timedMarkerCueRange");Xkt(this);for(var V=g.r(c.hX),G=V.next();!G.done;G=V.next()){G=G.value;var n=void 0,L=(n=this.QK[G])==null?void 0:n.markerType;n=void 0;var d=(n=this.QK[G])==null?void 0:n.markers;if(!d)break;if(L==="MARKER_TYPE_TIMESTAMPS"){X=g.r(d);for(L=X.next();!L.done;L=X.next()){n=L.value;L=new SuO;d=void 0;L.title=((d=n.title)==null?void 0:d.simpleText)||"";L.timeRangeStartMillis=Number(n.startMillis);L.J= +Number(n.durationMillis);var h=d=void 0;L.onActiveCommand=(h=(d=n.onActive)==null?void 0:d.innertubeCommand)!=null?h:void 0;dFl(this,L)}yYS(this,this.D);X=this.D;L=this.YM;n=[];d=null;for(h=0;hA&&(d.end=A);A=T7t(A,A+H);n.push(A);d=A;L[A.id]=X[h].onActiveCommand}}this.api.Gr(n);this.fJ=this.QK[G];X=!0}else if(L==="MARKER_TYPE_HEATMAP"){G=this.QK[G];H=Y=n=A=h=d=void 0;if(G&& +G.markers){L=(n=(H=G.markersMetadata)==null?void 0:(Y=H.heatmapMetadata)==null?void 0:Y.minHeightDp)!=null?n:0;n=(d=(A=G.markersMetadata)==null?void 0:(h=A.heatmapMetadata)==null?void 0:h.maxHeightDp)!=null?d:60;d=this.J.length;h=null;for(A=0;A=H&&F<=a&&Y.push(w)}n>0&&(this.A7.style.height= +n+"px");H=this.X[A];a=Y;w=L;var Z=n,v=A===0;v=v===void 0?!1:v;sSD(H,Z);W=a;F=H.G;v=v===void 0?!1:v;var e=1E3/W.length,m=[];m.push({x:0,y:100});for(var t=0;t0&&(h=Y[Y.length-1])}g.Nb(this)}n=void 0;L=[];if(G=(n=G.markersDecoration)==null?void 0:n.timedMarkerDecorations)for(G=g.r(G),n=G.next();!n.done;n=G.next())n=n.value,A=h=d=void 0,L.push({visibleTimeRangeStartMillis:(d=n.visibleTimeRangeStartMillis)!=null?d:-1,visibleTimeRangeEndMillis:(h=n.visibleTimeRangeEndMillis)!=null?h:-1,decorationTimeMillis:(A=n.decorationTimeMillis)!= +null?A:NaN,label:n.label?g.xT(n.label):""});G=L;this.heatMarkersDecorations=G}}c.hx=this.D;g.ab(this.element,"ytp-timed-markers-enabled",X);return X}; +g.y.Ky=function(){g.Nb(this);u8(this);yYS(this,this.D);if(this.G){var X=g.xv(this.element).x||0;this.G.Ky(X,this.B)}}; +g.y.onClickCommand=function(X){if(X=g.T(X,cJ)){var c=X.key;X.isVisible&&c&&j4w(this,c)}}; +g.y.tXv=function(X){this.api.z_("innertubeCommand",this.YM[X.id])}; +g.y.er=function(){u8(this);var X=this.api.getCurrentTime();(Xthis.clipEnd)&&this.DS()}; +g.y.Vm=function(X){if(!X.defaultPrevented){var c=!1;switch(X.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);c=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);c=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);c=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);c=!0;break;case 38:this.api.S("enable_key_press_seek_logging")&&CH(this,this.api.getCurrentTime(),this.api.getCurrentTime()+5,"SEEK_SOURCE_SEEK_FORWARD_5S","INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"); +this.api.seekBy(5,void 0,void 0,72);c=!0;break;case 40:this.api.S("enable_key_press_seek_logging")&&CH(this,this.api.getCurrentTime(),this.api.getCurrentTime()-5,"SEEK_SOURCE_SEEK_BACKWARD_5S","INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"),this.api.seekBy(-5,void 0,void 0,71),c=!0}c&&X.preventDefault()}}; +g.y.sQ=function(X,c){this.updateVideoData(c,X==="newdata")}; +g.y.Syy=function(){this.sQ("newdata",this.api.getVideoData())}; +g.y.updateVideoData=function(X,c){c=c===void 0?!1:c;var V=!!X&&X.d$();if(V&&(cO(X)||wkj(this)?this.bH=!1:this.bH=X.allowLiveDvr,g.ab(this.api.getRootNode(),"ytp-enable-live-buffer",!(X==null||!cO(X))),this.api.S("enable_custom_playhead_parsing"))){var G,n,L,d=g.T((G=X.getWatchNextResponse())==null?void 0:(n=G.playerOverlays)==null?void 0:(L=n.playerOverlayRenderer)==null?void 0:L.decoratedPlayerBarRenderer,ez);if(d==null?0:d.progressColor)for(G=0;G0;)this.X.pop().dispose();this.heatMarkersDecorations=[];this.hX={};var a;(a=this.G)==null||a.reset();cj(this);g.ab(this.api.getRootNode(),"ytp-fine-scrubbing-exp",pH(this))}else this.DS();this.WE()}if(X){var W;a=((W=this.vP)==null?void 0:W.type)==="clips";if(W=!X.isLivePlayback){W=this.api.getVideoData();c=g.J4(W);V=Vdj(W);var w;W=c!=null||V!=null&&V.length>0||((w=W.JA)== +null?void 0:w.length)>0}if(W&&!a){w=this.api.getVideoData();a=g.J4(w);W=!1;if(a==null?0:a.markersMap){W=this.api.getVideoData();var F;W.ea=((F=a.visibleOnLoad)==null?void 0:F.key)||W.ea;F=g.r(a.markersMap);for(a=F.next();!a.done;a=F.next())a=a.value,a.key&&a.value&&(this.hX[a.key]=a.value,a.value.onChapterRepeat&&(W.jD=a.value.onChapterRepeat));W.ea!=null&&j4w(this,W.ea);W=!0}var Z;if(((Z=w.JA)==null?void 0:Z.length)>0){Z=g.Vu.getState().entities;F=g.r(w.JA);for(a=F.next();!a.done;a=F.next())if(a= +a.value,V=void 0,c=(V=Wc(Z,"macroMarkersListEntity",a))==null?void 0:V.markersList,h=V=void 0,((V=c)==null?void 0:V.markerType)==="MARKER_TYPE_TIMESTAMPS"||((h=c)==null?void 0:h.markerType)==="MARKER_TYPE_HEATMAP")this.QK[a]=c;W=this.jC()||W}!W&&(Z=Vdj(w))&&(n6l(this,Z),w.U_=this.J,GUS(this));FeO(this,null);X.KC&&this.X.length===0&&(X=X.KC,Z=X.key,X.isVisible&&Z&&j4w(this,Z))}else iUj(this),Xkt(this)}u8(this)}; +g.y.DW_=function(X){this.T&&!g.B(X.state,32)&&this.api.getPresentingPlayerType()!==3&&this.T.cancel();var c;((c=this.G)==null?0:c.isEnabled)&&g.B(X.state,8)&&this.api.pauseVideo();X=this.api.getPresentingPlayerType()===2||!this.api.tP()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.ab(this.vW,"ytp-hide-scrubber-button",X)}; +g.y.YY=function(X){var c=!!this.vP!==!!X,V=this.vP;this.vP=X;FeO(this,V);(X==null?void 0:X.type)!=="clips"&&X||(X?(this.updateValue("clipstarticon",MA2()),this.updateValue("clipendicon",MA2()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",epw()),this.updateValue("clipendicon",ou1()),this.updateValue("clipstarttitle","Watch full video"),this.updateValue("clipendtitle","Watch full video")),c&&(this.updateVideoData(this.api.getVideoData(), +!0),g.Nb(this)),DZ(this));Bz(this,this.C,this.qE)}; +g.y.QL7=function(X,c,V){var G=g.xv(this.element),n=Ti(this).J,L=V?V.getAttribute("data-tooltip"):void 0,d=V?V.getAttribute("data-position"):void 0,h=V?V.getAttribute("data-offset-y"):void 0;h=h?Number(h):0;d&&(X=NA(this.U,Number(V.getAttribute("data-position")),0)*n+g.xv(this.progressBar).x);this.yK.x=X-G.x;this.yK.y=c-G.y;X=Ti(this);V=s4(this,X);c=0;var A;if((A=this.api.getVideoData())==null?0:cO(A))(A=this.api.getProgressState().seekableEnd)&&V>A&&(V=A,X.position=NA(this.U,A)*Ti(this).J),c=this.U.G; +wkj(this)&&(c=this.U.G);A=L||g.Ru(this.bH?V-this.U.J:V-c);c=X.position+this.l_;V-=this.api.h1();var Y;if((Y=this.G)==null||!Y.isEnabled)if(this.api.a$()){if(this.J.length>1){Y=KH(this,this.yK.x,!0);if(!this.vP)for(G=0;G1)for(G=0;G0)for(Y=this.yK.x,G=g.r(this.D),n=G.next();!n.done;n=G.next())n=n.value,d=U4(this,n.timeRangeStartMillis/ +(this.U.J*1E3),Ti(this)),g.ab(n.element,"ytp-timed-marker-hover",d<=Y&&d+6>=Y);G=this.tooltip.scale;h=(isNaN(h)?0:h)-45*G;this.api.S("web_key_moments_markers")?this.fJ?(Y=I3s(this.D,V*1E3),Y=Y!=null?this.D[Y].title:""):(Y=hD(this.J,V*1E3),Y=this.J[Y].title):(Y=hD(this.J,V*1E3),Y=this.J[Y].title);Y||(h+=16*G);this.tooltip.scale===.6&&(g.S3(this.api.j())?(h=this.api.CS().getPlayerSize().height-225,h=Y?h+110:h+110+16):h=Y?110:126);G=hD(this.J,V*1E3);this.kO=E6s(this,V,G)?G:E6s(this,V,G+1)?G+1:-1;g.ab(this.api.getRootNode(), +"ytp-progress-bar-snap",this.kO!==-1&&this.J.length>1);G=!1;n=g.r(this.heatMarkersDecorations);for(d=n.next();!d.done;d=n.next()){d=d.value;var H=V*1E3;H>=d.visibleTimeRangeStartMillis&&H<=d.visibleTimeRangeEndMillis&&(Y=d.label,A=g.Ru(d.decorationTimeMillis/1E3),G=!0)}this.Wg!==G&&(this.Wg=G,this.api.logVisibility(this.tT,this.Wg));g.ab(this.api.getRootNode(),"ytp-progress-bar-decoration",G);G=160*this.tooltip.scale*2;n=Y.length*(this.G_?8.55:5.7);n=n<=G?n:G;d=n<160*this.tooltip.scale;G=3;!d&&n/ +2>X.position&&(G=1);!d&&n/2>this.B-X.position&&(G=2);this.api.j().T&&(h-=10);this.X.length&&this.X[0].d$&&(h-=14*(this.G_?2:1),this.wy||(this.wy=!0,this.api.logVisibility(this.A7,this.wy)));var a;if(pH(this)&&(((a=this.G)==null?0:a.isEnabled)||this.LS>0)){var W;h-=((W=this.G)==null?0:W.isEnabled)?i8(this):this.LS}a=void 0;pH(this)&&!this.api.S("web_player_hide_fine_scrubbing_edu")&&(a="Pull up for precise seeking",this.Pl||(this.Pl=!0,this.api.logVisibility(this.gm,this.Pl)));this.tooltip.FA(c,V, +A,!!L,h,Y,G,a)}else this.tooltip.FA(c,V,A,!!L,h);g.Ax(this.api.getRootNode(),"ytp-progress-bar-hover");WeS(this)}; +g.y.tQ7=function(){this.WE();g.jk(this.api.getRootNode(),"ytp-progress-bar-hover");this.wy&&(this.wy=!1,this.api.logVisibility(this.A7,this.wy));this.Pl&&(this.Pl=!1,this.api.logVisibility(this.gm,this.Pl))}; +g.y.cTO=function(X,c){pH(this)&&this.G&&(this.G.Pl?Mb(this.G,this.api.getCurrentTime()):PK1(this.G),this.G.show(),g.ab(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.G.isEnabled));this.ON&&(this.ON.dispose(),this.ON=null);this.Pb=c;this.gs=this.api.getCurrentTime();this.J.length>1&&this.kO!==-1?this.api.seekTo(this.J[this.kO].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(s4(this,Ti(this)),!1,void 0,void 0,7);g.Ax(this.element,"ytp-drag");(this.LJ=this.api.getPlayerStateObject().isOrWillBePlaying())&& +this.api.pauseVideo()}; +g.y.ZER=function(){if(pH(this)&&this.G){var X=i8(this);this.LS>=X*.5?(this.G.enable(),Mb(this.G,this.api.getCurrentTime()),JYt(this,X)):cj(this)}if(g.B(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var c;if((c=this.G)==null?0:c.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.J.length>1&&this.kO!==-1)this.api.S("html5_enable_progress_bar_slide_seek_logging")&&CH(this,this.gs,this.J[this.kO].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", +"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.J[this.kO].startTime/1E3,void 0,void 0,void 0,7);else{X=s4(this,Ti(this));this.api.S("html5_enable_progress_bar_slide_seek_logging")&&CH(this,this.gs,X,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(X,void 0,void 0,void 0,7);c=g.r(this.heatMarkersDecorations);for(var V=c.next();!V.done;V=c.next())V=V.value,X*1E3>=V.visibleTimeRangeStartMillis&&X*1E3<=V.visibleTimeRangeEndMillis&& +this.api.logClick(this.tT)}g.jk(this.element,"ytp-drag");this.LJ&&!g.B(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; +g.y.SHW=function(X,c){X=Ti(this);X=s4(this,X);this.api.seekTo(X,!1,void 0,void 0,7);var V;pH(this)&&((V=this.G)==null?0:V.Pl)&&(Mb(this.G,X),this.G.isEnabled||(V=i8(this),this.LS=g.am(this.Pb-c-10,0,V),JYt(this,this.LS)))}; +g.y.WE=function(){this.tooltip.s7()}; +g.y.gP=function(){this.vP||(this.updateValue("clipstarticon",kJL()),this.updateValue("clipendicon",kJL()),g.Ax(this.element,"ytp-clip-hover"))}; +g.y.dP=function(){this.vP||(this.updateValue("clipstarticon",epw()),this.updateValue("clipendicon",ou1()),g.jk(this.element,"ytp-clip-hover"))}; +g.y.DS=function(){this.clipStart=0;this.clipEnd=Infinity;DZ(this);Bz(this,this.C,this.qE)}; +g.y.aHv=function(X){X=g.r(X);for(var c=X.next();!c.done;c=X.next())if(c=c.value,c.visible){var V=c.getId();if(!this.Hl[V]){var G=g.Vj("DIV");c.tooltip&&G.setAttribute("data-tooltip",c.tooltip);this.Hl[V]=c;this.Ly[V]=G;g.yO(G,c.style);rYs(this,V);this.api.j().S("disable_ad_markers_on_content_progress_bar")||this.J[0].X.appendChild(G)}}else eEL(this,c)}; +g.y.Zey=function(X){X=g.r(X);for(var c=X.next();!c.done;c=X.next())eEL(this,c.value)}; +g.y.FE=function(X){this.G&&(this.G.onExit(X!=null),cj(this))}; +g.y.Sg=function(X){this.G&&(this.G.play(X!=null),cj(this))}; +g.y.N1_=function(){mFs(this,this.api.tP())}; +g.y.R2=function(){mFs(this,!1);g.rP.prototype.R2.call(this)};g.E(Vx,g.z);Vx.prototype.isActive=function(){return!!this.W.getOption("remote","casting")}; +Vx.prototype.pS=function(){var X=!1;this.W.getOptions().includes("remote")&&(X=this.W.getOption("remote","receivers").length>1);this.Ry(X&&this.W.CS().getPlayerSize().width>=400);this.W.logVisibility(this.element,this.aZ);var c=1;X&&this.isActive()&&(c=2);if(this.J!==c){this.J=c;switch(c){case 1:this.updateValue("icon",{N:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{N:"path",k9:!0,K:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z", +fill:"#fff"}}]});break;case 2:this.updateValue("icon",g.vu2())}g.ab(this.element,"ytp-remote-button-active",this.isActive())}}; +Vx.prototype.G=function(){if(this.W.getOption("remote","quickCast"))this.W.setOption("remote","quickCast",!0);else{var X=this.PP,c=this.element;if(X.DU())X.QZ();else{X.initialize();a:{var V=g.r(X.kM.items);for(var G=V.next();!G.done;G=V.next())if(G=G.value,G.priority===1){V=G;break a}V=null}V&&(V.open(),X.fM(c));X.fM(c)}}this.W.logClick(this.element)};g.E(Gg,g.z);Gg.prototype.J=function(X){var c=this.W.j(),V=400;this.W.S("web_player_small_hbp_settings_menu")&&c.B?V=300:c.T&&(V=200);X=this.G&&X.width>=V;this.Ry(X);this.W.S("embeds_use_parent_visibility_in_ve_logging")?this.W.logVisibility(this.element,X&&this.Z):this.W.logVisibility(this.element,X)}; +Gg.prototype.U=function(){if(this.PP.aZ)this.PP.QZ();else{var X=g.kg(this.W.X2());X&&!X.loaded&&(X.AC("tracklist",{includeAsr:!0}).length||X.load());this.W.logClick(this.element);this.PP.fM(this.element)}}; +Gg.prototype.updateBadge=function(){var X=this.W.isHdr(),c=this.W.getPresentingPlayerType(),V=c!==2&&c!==3,G=g.lc(this.W),n=V&&!!g.ON(this.W.X2());c=n&&G.displayMode===1;G=n&&G.displayMode===2;V=(n=c||G)||!V?null:this.W.getPlaybackQuality();g.ab(this.element,"ytp-hdr-quality-badge",X);g.ab(this.element,"ytp-hd-quality-badge",!X&&(V==="hd1080"||V==="hd1440"));g.ab(this.element,"ytp-4k-quality-badge",!X&&V==="hd2160");g.ab(this.element,"ytp-5k-quality-badge",!X&&V==="hd2880");g.ab(this.element,"ytp-8k-quality-badge", +!X&&V==="highres");g.ab(this.element,"ytp-3d-badge-grey",!X&&n&&c);g.ab(this.element,"ytp-3d-badge",!X&&n&&G)};g.E(na,nz);na.prototype.isLoaded=function(){var X=g.bV(this.W.X2());return X!==void 0&&X.loaded}; +na.prototype.pS=function(){g.bV(this.W.X2())!==void 0&&this.W.getPresentingPlayerType()!==3?this.J||(this.PP.Y9(this),this.J=!0):this.J&&(this.PP.Ll(this),this.J=!1);Lz(this,this.isLoaded())}; +na.prototype.onSelect=function(X){this.isLoaded();X?this.W.loadModule("annotations_module"):this.W.unloadModule("annotations_module");this.W.publish("annotationvisibility",X)}; +na.prototype.R2=function(){this.J&&this.PP.Ll(this);nz.prototype.R2.call(this)};g.E(La,g.Ii);La.prototype.pS=function(){var X=this.W.getAvailableAudioTracks();X.length>1?(this.Wo(g.Rt(X,this.J)),this.tracks=g.wQ(X,this.J,this),this.countLabel.AT(X.length?" ("+X.length+")":""),this.publish("size-change"),this.O_(this.J(this.W.getAudioTrack())),this.enable(!0)):this.enable(!1)}; +La.prototype.Iv=function(X){g.Ii.prototype.Iv.call(this,X);this.W.setAudioTrack(this.tracks[X]);this.PP.GZ()}; +La.prototype.J=function(X){return X.toString()};g.E(dF,nz); +dF.prototype.G=function(){var X=this.W.getPresentingPlayerType();if(X!==2&&X!==3&&g.gC(this.W))this.J||(this.PP.Y9(this),this.J=!0,this.U.push(this.L(this.W,"videodatachange",this.G)),this.U.push(this.L(this.W,"videoplayerreset",this.G)),this.U.push(this.L(this.W,"onPlaylistUpdate",this.G)),this.U.push(this.L(this.W,"autonavchange",this.X)),X=this.W.getVideoData(),this.X(X.autonavState),this.W.logVisibility(this.element,this.J));else if(this.J){this.PP.Ll(this);this.J=!1;X=g.r(this.U);for(var c=X.next();!c.done;c= +X.next())this.Hd(c.value)}}; +dF.prototype.X=function(X){Lz(this,X!==1)}; +dF.prototype.onSelect=function(X){this.W.YC(X?2:1);this.J&&(this.W.logVisibility(this.element,this.J),this.W.logClick(this.element))}; +dF.prototype.R2=function(){this.J&&this.PP.Ll(this);nz.prototype.R2.call(this)};g.E(b4j,g.K9);b4j.prototype.onClick=function(X){X.preventDefault();var c,V;(c=g.wC(this.W))==null||(V=c.b4())==null||V.QZ();var G,n;(G=g.wC(this.W))==null||(n=G.qK())==null||n.fM(X.target)};g.E(tdl,g.Ii);g.y=tdl.prototype; +g.y.AN=function(){var X=this.W.getPresentingPlayerType();if(X!==2&&X!==3){this.kO=this.W.gV();X=this.W.getAvailableQualityLevels();if(this.J){this.X={};var c=g.jZ(this.W,"getAvailableQualityData",[]);c=g.r(c);for(var V=c.next();!V.done;V=c.next())V=V.value,this.X[V.qualityLabel]=V;c=Object.keys(this.X);X[X.length-1]==="auto"&&c.push("auto");this.NW=new Set(X)}else if(this.B){V=g.jZ(this.W,"getAvailableQualityData",[]);c=[];V=g.r(V);for(var G=V.next();!G.done;G=V.next())G=G.value,this.C[G.quality]= +G,G.quality&&c.push(G.quality);X[X.length-1]==="auto"&&c.push("auto")}else c=X;g.sCl(this.W)&&this.W.wF()&&c.unshift("missing-qualities");CQ8(this.W)&&c.unshift("inline-survey");this.Wo(c);X=this.W.getVideoData().cotn?!0:!1;V=this.A7.wJ();V=!g.S3(this.W.j())||!(X===void 0?0:X)||!(V===void 0||V);X=this.G;V=V===void 0?!1:V;X.oJ&&g.ab(X.I2("ytp-panel-footer"),"ytp-panel-hide-footer",V===void 0?!1:V);if(c.length){this.bx();this.enable(!0);return}}this.enable(!1)}; +g.y.bx=function(){if(this.J){var X=this.W.getPreferredQuality();this.NW.has(X)&&(this.D=this.W.getPlaybackQuality(),this.G_=this.W.getPlaybackQualityLabel(),X==="auto"?(this.O_(X),this.AT(this.NQ(X))):this.O_(this.G_))}else X=this.W.getPreferredQuality(),this.options[X]&&(this.D=this.W.getPlaybackQuality(),this.O_(X),X==="auto"&&this.AT(this.NQ(X)))}; +g.y.Iv=function(X){if(X!=="missing-qualities"){g.Ii.prototype.Iv.call(this,X);var c=this.J?this.X[X]:this.C[X];var V=c==null?void 0:c.quality,G=c==null?void 0:c.formatId,n=c==null?void 0:c.paygatedQualityDetails;c=n==null?void 0:n.endpoint;if(n){var L;n=(L=this.options[X])==null?void 0:L.element;this.W.logClick(n)}if(this.J){var d,h;if((d=g.T(c,g.ZSG))==null?0:(h=d.popup)==null?0:h.notificationActionRenderer)this.W.z_("innertubeCommand",c);else if(c){this.W.z_("innertubeCommand",c);return}G?this.W.setPlaybackQuality(V, +G):this.W.setPlaybackQuality(V)}else{if(this.B){var A,Y;if((A=g.T(c,g.ZSG))==null?0:(Y=A.popup)==null?0:Y.notificationActionRenderer)this.W.z_("innertubeCommand",c);else if(c){this.W.z_("innertubeCommand",c);return}}this.W.setPlaybackQuality(X)}this.PP.QZ();this.AN()}}; +g.y.open=function(){for(var X=g.r(Object.values(this.options)),c=X.next();!c.done;c=X.next()){c=c.value;var V=void 0;this.W.hasVe((V=c)==null?void 0:V.element)&&(V=void 0,this.W.logVisibility((V=c)==null?void 0:V.element,!0))}g.Ii.prototype.open.call(this);this.W.logClick(this.element)}; +g.y.q5=function(X,c,V){var G=this;if(X==="missing-qualities")return new g.K9({N:"a",xO:["ytp-menuitem"],K:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.W.j().C,tabindex:"0",role:"menuitemradio"},V:[{N:"div",xO:["ytp-menuitem-label"],Uy:"{{label}}"}]},c,this.NQ(X));if(X!=="inline-survey"){var n,L=(n=this.J?this.X[X]:this.C[X])==null?void 0:n.paygatedQualityDetails;n=L==null?void 0:L.veType;L=L==null?void 0:L.trackingParams;c=g.Ii.prototype.q5.call(this,X,c,V);L?(this.W.createServerVe(c.element, +this,!0),this.W.setTrackingParams(c.element,L)):n&&this.W.createClientVe(c.element,this,n,!0);return c}X=[{N:"span",Uy:"Looks good?"}];V=g.r([!0,!1]);L=V.next();for(n={};!L.done;n={dZ:void 0},L=V.next())n.dZ=L.value,L=new g.z({N:"span",Y:"ytp-menuitem-inline-survey-response",V:[n.dZ?lsj():m8j()],K:{tabindex:"0",role:"button"}}),L.listen("click",function(d){return function(){var h=d.dZ,A=G.W.app.Ey();A&&(A.Oy("iqsr",{tu:h}),A.getVideoData().Nr=!0);G.PP.QZ();G.AN()}}(n)),X.push(L); +return new g.K9({N:"div",Y:"ytp-menuitem",K:{"aria-disabled":"true"},V:[{N:"div",xO:["ytp-menuitem-label"],V:X}]},c)}; +g.y.NQ=function(X,c){c=c===void 0?!1:c;if(X==="missing-qualities")return{N:"div",Uy:"Missing options?"};if(X==="inline-survey")return"";var V=this.B||this.J?[Mdl(this,X,c,!1)]:[l_w(this,X)];var G=this.W.getPreferredQuality();c||G!=="auto"||X!=="auto"||(V.push(" "),this.J?V.push(Mdl(this,this.G_,c,!0,["ytp-menu-label-secondary"])):this.B?V.push(Mdl(this,this.D,c,!0,["ytp-menu-label-secondary"])):V.push(l_w(this,this.D,["ytp-menu-label-secondary"])));return{N:"div",V:V}};g.E(yx,g.z);yx.prototype.init=function(){this.updateValue("minvalue",this.U);this.updateValue("maxvalue",this.X);this.updateValue("stepvalue",this.D);this.updateValue("slidervalue",this.G);g6D(this,this.G)}; +yx.prototype.T=function(){f_O(this,Number(this.J.value));this.J.focus()}; +yx.prototype.B=function(X){if(!X.defaultPrevented){switch(X.code){case "ArrowDown":X=-this.D;break;case "ArrowUp":X=this.D;break;default:return}f_O(this,Math.min(this.X,Math.max(Number((this.G+X).toFixed(2)),this.U)))}};g.E(hG,yx);hG.prototype.T=function(){yx.prototype.T.call(this);this.C&&pkl(this)}; +hG.prototype.kO=function(){this.G_()}; +hG.prototype.A7=function(){this.W.setPlaybackRate(this.G,!0)}; +hG.prototype.B=function(X){yx.prototype.B.call(this,X);this.G_();pkl(this);X.preventDefault()};g.E(AG,g.z);g.y=AG.prototype;g.y.init=function(){this.Aa(this.J);this.updateValue("minvalue",this.G);this.updateValue("maxvalue",this.U)}; +g.y.C_=function(X){if(!X.defaultPrevented){switch(X.keyCode){case 37:case 40:var c=-this.T;break;case 39:case 38:c=this.T;break;default:return}this.Aa(this.J+c);X.preventDefault()}}; +g.y.ym=function(X){var c=this.J;c+=(X.deltaX||-X.deltaY)<0?-this.C:this.C;this.Aa(c);X.preventDefault()}; +g.y.K_=function(X){X=(X-g.xv(this.X).x)/this.G_*this.range+this.G;this.Aa(X)}; +g.y.Aa=function(X,c){c=c===void 0?"":c;X=g.am(X,this.G,this.U);c===""&&(c=X.toString());this.updateValue("valuenow",X);this.updateValue("valuetext",c);this.A7.style.left=(X-this.G)/this.range*(this.G_-this.Pl)+"px";this.J=X}; +g.y.focus=function(){this.wy.focus()};g.E(YX,AG);YX.prototype.kO=function(){this.W.setPlaybackRate(this.J,!0)}; +YX.prototype.Aa=function(X){AG.prototype.Aa.call(this,X,No8(this,X).toString());this.B&&(I_D(this),this.NW())}; +YX.prototype.updateValues=function(){var X=this.W.getPlaybackRate();No8(this,this.J)!==X&&(this.Aa(X),I_D(this))};g.E(UFl,g.rP);UFl.prototype.focus=function(){this.J.focus()};g.E(Tos,e2);g.E(u3O,g.Ii);g.y=u3O.prototype;g.y.NQ=function(X){return X==="1"?"Normal":X.toLocaleString()}; +g.y.pS=function(){var X,c=(X=this.W.getVideoData())==null?void 0:X.JT();X=this.W.getPresentingPlayerType(c);this.enable(X!==2&&X!==3);Boj(this)}; +g.y.Wo=function(X){g.Ii.prototype.Wo.call(this,X);this.D&&this.D.J.focus()}; +g.y.TL=function(X){g.Ii.prototype.TL.call(this,X);X?(this.G_=this.L(this.W,"onPlaybackRateChange",this.onPlaybackRateChange),Boj(this),PJ2(this,this.W.getPlaybackRate())):(this.Hd(this.G_),this.G_=null)}; +g.y.onPlaybackRateChange=function(X){var c=this.W.getPlaybackRate();!this.X&&this.C.includes(c)||zEt(this,c);PJ2(this,X)}; +g.y.q5=function(X,c,V){return X===this.J&&Ke8(this.W)?g.Ii.prototype.q5.call(this,X,c,V,{N:"div",Y:"ytp-speed-slider-menu-footer",V:[this.D]}):g.Ii.prototype.q5.call(this,X,c,V)}; +g.y.Iv=function(X){g.Ii.prototype.Iv.call(this,X);X===this.J?this.W.setPlaybackRate(this.B,!0):this.W.setPlaybackRate(Number(X),!0);Ke8(this.W)&&X===this.J||this.PP.GZ()}; +g.y.SN=function(X){var c=X===this.J;this.X=!1;c&&jY(this.W)&&!Ke8(this.W)?(X=new Tos(this.W),g.t_(this.PP,X)):g.Ii.prototype.SN.call(this,X)};g.E(CJs,g.Ii);g.y=CJs.prototype;g.y.O_=function(X){g.Ii.prototype.O_.call(this,X)}; +g.y.LC=function(X){return X.option.toString()}; +g.y.getOption=function(X){return this.settings[X]}; +g.y.NQ=function(X){return this.getOption(X).text||""}; +g.y.Iv=function(X){g.Ii.prototype.Iv.call(this,X);this.publish("settingChange",this.setting,this.settings[X].option)};g.E(aZ,g.J_);aZ.prototype.ZH=function(X){for(var c=g.r(Object.keys(X)),V=c.next();!V.done;V=c.next()){var G=V.value;if(V=this.yV[G]){var n=X[G].toString();G=!!X[G+"Override"];V.options[n]&&(V.O_(n),V.X.element.setAttribute("aria-checked",String(!G)),V.J.element.setAttribute("aria-checked",String(G)))}}}; +aZ.prototype.gM=function(X,c){this.publish("settingChange",X,c)};g.E($X,g.Ii);$X.prototype.J=function(X){return X.languageCode}; +$X.prototype.NQ=function(X){return this.languages[X].languageName||""}; +$X.prototype.Iv=function(X){this.publish("select",X);this.W.logClick(this.element);g.Oj(this.PP)};g.E(i4D,g.Ii);g.y=i4D.prototype;g.y.hN=function(X){return g.tN(X)?"__off__":X.displayName}; +g.y.NQ=function(X){return X==="__off__"?"Off":X==="__translate__"?"Auto-translate":X==="__contribute__"?"Add subtitles/CC":X==="__correction__"?"Suggest caption corrections":(X==="__off__"?{}:this.tracks[X]).displayName}; +g.y.Iv=function(X){if(X==="__translate__")this.J.open();else if(X==="__contribute__"){this.W.pauseVideo();this.W.isFullscreen()&&this.W.toggleFullscreen();var c=g.Ir(this.W.j(),this.W.getVideoData());g.CZ(c)}else if(X==="__correction__"){this.W.pauseVideo();this.W.isFullscreen()&&this.W.toggleFullscreen();var V=qYU(this);Wj(this,V);g.Ii.prototype.Iv.call(this,this.hN(V));var G,n;V=(c=this.W.getVideoData().getPlayerResponse())==null?void 0:(G=c.captions)==null?void 0:(n=G.playerCaptionsTracklistRenderer)== +null?void 0:n.openTranscriptCommand;this.W.z_("innertubeCommand",V);this.PP.GZ();this.X&&this.W.logClick(this.X)}else{if(X==="__correction__"){this.W.pauseVideo();this.W.isFullscreen()&&this.W.toggleFullscreen();c=qYU(this);Wj(this,c);g.Ii.prototype.Iv.call(this,this.hN(c));var L,d;c=(V=this.W.getVideoData().getPlayerResponse())==null?void 0:(L=V.captions)==null?void 0:(d=L.playerCaptionsTracklistRenderer)==null?void 0:d.openTranscriptCommand;this.W.z_("innertubeCommand",c)}else this.W.logClick(this.element), +Wj(this,X==="__off__"?{}:this.tracks[X]),g.Ii.prototype.Iv.call(this,X);this.PP.GZ()}}; +g.y.pS=function(){var X=this.W.getOptions();X=X&&X.indexOf("captions")!==-1;var c=this.W.getVideoData(),V=c&&c.QJ,G,n=!((G=this.W.getVideoData())==null||!g.qO(G));G={};if(X||V){var L;if(X){var d=this.W.getOption("captions","track");G=this.W.getOption("captions","tracklist",{includeAsr:!0});var h=n?[]:this.W.getOption("captions","translationLanguages");this.tracks=g.wQ(G,this.hN,this);n=g.Rt(G,this.hN);var A,Y;qYU(this)&&((L=c.getPlayerResponse())==null?0:(A=L.captions)==null?0:(Y=A.playerCaptionsTracklistRenderer)== +null?0:Y.openTranscriptCommand)&&n.push("__correction__");if(h.length&&!g.tN(d)){if((L=d.translationLanguage)&&L.languageName){var H=L.languageName;L=h.findIndex(function(a){return a.languageName===H}); +dkj(h,L)}DFO(this.J,h);n.push("__translate__")}L=this.hN(d)}else this.tracks={},n=[],L="__off__";n.unshift("__off__");this.tracks.__off__={};V&&n.unshift("__contribute__");this.tracks[L]||(this.tracks[L]=d,n.push(L));this.Wo(n);this.O_(L);d&&d.translationLanguage?this.J.O_(this.J.J(d.translationLanguage)):MOL(this.J);X&&this.B.ZH(this.W.getSubtitlesUserSettings());this.countLabel.AT(G&&G.length?" ("+G.length+")":"");this.publish("size-change");this.W.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; +g.y.oo=function(X){var c=this.W.getOption("captions","track");c=g.M5(c);c.translationLanguage=this.J.languages[X];Wj(this,c)}; +g.y.gM=function(X,c){if(X==="reset")this.W.resetSubtitlesUserSettings();else{var V={};V[X]=c;this.W.updateSubtitlesUserSettings(V)}SYD(this,!0);this.D.start();this.B.ZH(this.W.getSubtitlesUserSettings())}; +g.y.XWK=function(X){X||g.VO(this.D)}; +g.y.R2=function(){g.VO(this.D);g.Ii.prototype.R2.call(this)}; +g.y.open=function(){g.Ii.prototype.open.call(this);this.options.__correction__&&!this.X&&(this.X=this.options.__correction__.element,this.W.createClientVe(this.X,this,167341),this.W.logVisibility(this.X,!0))};g.E(Xmj,g.be);g.y=Xmj.prototype; +g.y.initialize=function(){if(!this.isInitialized){var X=this.W.j();this.isInitialized=!0;try{this.Ph=new tdl(this.W,this)}catch(V){g.UQ(Error("QualityMenuItem creation failed"))}g.N(this,this.Ph);var c=new i4D(this.W,this);g.N(this,c);X.U||(c=new na(this.W,this),g.N(this,c));X.enableSpeedOptions&&(c=new u3O(this.W,this),g.N(this,c));(g.RT(X)||X.B)&&(X.G||X.YO)&&(c=new b4j(this.W,this),g.N(this,c));X.Wg&&!X.S("web_player_move_autonav_toggle")&&(X=new dF(this.W,this),g.N(this,X));X=new La(this.W,this); +g.N(this,X);this.W.publish("settingsMenuInitialized");REs(this.settingsButton,this.kM.w_())}}; +g.y.Y9=function(X){this.initialize();this.kM.Y9(X);REs(this.settingsButton,this.kM.w_())}; +g.y.Ll=function(X){this.aZ&&this.kM.w_()<=1&&this.hide();this.kM.Ll(X);REs(this.settingsButton,this.kM.w_())}; +g.y.fM=function(X){this.initialize();this.kM.w_()>0&&g.be.prototype.fM.call(this,X)}; +g.y.QZ=function(){this.JL?this.JL=!1:g.be.prototype.QZ.call(this)}; +g.y.show=function(){g.be.prototype.show.call(this);g.Ax(this.W.getRootNode(),"ytp-settings-shown")}; +g.y.hide=function(){g.be.prototype.hide.call(this);g.jk(this.W.getRootNode(),"ytp-settings-shown")}; +g.y.U5=function(X){this.W.logVisibility(this.element,X);this.W.publish("settingsMenuVisibilityChanged",X)};g.E(VlD,g.z);g.y=VlD.prototype;g.y.onClick=function(){if(GNl(this)&&(this.W.toggleSubtitles(),this.W.logClick(this.element),!this.isEnabled())){var X=!1,c=g.Be(g.zk(),65);g.S3(this.W.j())&&c!=null&&(X=!c);X&&this.W.j().S("web_player_nitrate_promo_tooltip")&&this.W.publish("showpromotooltip",this.element)}}; +g.y.ZJW=function(X){var c,V;(c=g.wC(this.W))==null||(V=c.b4())==null||V.fM(X)}; +g.y.isEnabled=function(){return!!this.W.getOption("captions","track").displayName}; +g.y.pS=function(){var X=GNl(this),c=300;this.W.j().T&&(c=480);if(this.W.j().B){this.updateValue("title",g.ox(this.W,"Subtitles/closed captions","c"));this.update({"data-title-no-tooltip":"Subtitles/closed captions"});var V=X}else{if(X)(V=this.I2("ytp-subtitles-button-icon"))==null||V.setAttribute("fill-opacity","1"),this.updateValue("title",g.ox(this.W,"Subtitles/closed captions","c")),this.update({"data-title-no-tooltip":"Subtitles/closed captions"});else{var G;(G=this.I2("ytp-subtitles-button-icon"))== +null||G.setAttribute("fill-opacity","0.3");this.updateValue("title","Subtitles/closed captions unavailable");this.update({"data-title-no-tooltip":"Subtitles/closed captions unavailable"})}V=!0}this.tooltip.hC();V=V&&this.W.CS().getPlayerSize().width>=c;this.Ry(V);this.W.S("embeds_use_parent_visibility_in_ve_logging")?this.W.logVisibility(this.element,V&&this.Z):this.W.logVisibility(this.element,V);X?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; +g.y.iB=function(X){g.z.prototype.iB.call(this,X);this.W.j().S("embeds_use_parent_visibility_in_ve_logging")&&this.W.logVisibility(this.element,this.aZ&&X)};g.E(g.wF,g.z);g.y=g.wF.prototype; +g.y.er=function(){var X=this.api.CS().getPlayerSize().width,c=this.C;this.api.j().T&&(c=400);c=X>=c&&(!Fh(this)||!g.B(this.api.getPlayerStateObject(),64));this.Ry(c);g.ab(this.element,"ytp-time-display-allow-autohide",c&&X<400);X=this.api.getProgressState();if(c){c=this.api.getPresentingPlayerType();var V=this.api.getCurrentTime(c,!1);this.G&&(V-=X.airingStart);Ep(this)&&(V-=this.vP.startTimeMs/1E3);Ep(this)||Fh(this)||!this.U||(V=this.api.getDuration(c,!1)-V);V=g.Ru(V);this.X!==V&&(this.updateValue("currenttime", +V),this.X=V);c=Ep(this)?g.Ru((this.vP.endTimeMs-this.vP.startTimeMs)/1E3):g.Ru(this.api.getDuration(c,!1));this.B!==c&&(this.updateValue("duration",c),this.B=c)}nhD(this,X.isAtLiveHead);LPw(this,this.api.getLoopRange())}; +g.y.onLoopRangeChange=function(X){var c=this.vP!==X;this.vP=X;c&&(this.er(),dSj(this))}; +g.y.LlO=function(){this.api.setLoopRange(null)}; +g.y.ef7=function(){this.U=!this.U;this.er()}; +g.y.onVideoDataChange=function(X,c,V){this.updateVideoData((this.api.j().S("enable_topsoil_wta_for_halftime")||this.api.j().S("enable_topsoil_wta_for_halftime_live_infra"))&&V===2?this.api.getVideoData(1):c);this.er();dSj(this)}; +g.y.updateVideoData=function(X){this.n4=X.isLivePlayback&&!X.yK;this.G=cO(X);this.isPremiere=X.isPremiere;g.ab(this.element,"ytp-live",Fh(this))}; +g.y.onClick=function(X){X.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; +g.y.R2=function(){this.J&&this.J();g.z.prototype.R2.call(this)};g.E(h5l,g.z);g.y=h5l.prototype;g.y.D0=function(){var X=this.api.jO();this.U!==X&&(this.U=X,y1l(this,this.api.getVolume(),this.api.isMuted()))}; +g.y.ix=function(X){this.Ry(X.width>=350)}; +g.y.OA=function(X){if(!X.defaultPrevented){var c=X.keyCode,V=null;c===37?V=this.volume-5:c===39?V=this.volume+5:c===36?V=0:c===35&&(V=100);V!==null&&(V=g.am(V,0,100),V===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(V)),X.preventDefault())}}; +g.y.qt=function(X){var c=X.deltaX||-X.deltaY;X.deltaMode?this.api.setVolume(this.volume+(c<0?-10:10)):this.api.setVolume(this.volume+g.am(c/10,-10,10));X.preventDefault()}; +g.y.PHK=function(){rF(this,this.J,!0,this.G,this.api.l4());this.C=this.volume;this.api.isMuted()&&this.api.unMute()}; +g.y.Jg=function(X){var c=this.U?78:52,V=this.U?18:12;X-=g.xv(this.T).x;this.api.setVolume(g.am((X-V/2)/(c-V),0,1)*100)}; +g.y.WlS=function(){rF(this,this.J,!1,this.G,this.api.l4());this.volume===0&&(this.api.mute(),this.api.setVolume(this.C))}; +g.y.onVolumeChange=function(X){y1l(this,X.volume,X.muted)}; +g.y.OR=function(){rF(this,this.J,this.isDragging,this.G,this.api.l4())}; +g.y.R2=function(){g.z.prototype.R2.call(this);g.jk(this.D,"ytp-volume-slider-active")};g.E(Qx,g.z); +Qx.prototype.onVideoDataChange=function(){var X=this.api.j();this.Ky();this.visible=!!this.api.getVideoData().videoId&&!g.Vf(this.api.getVideoData(1));this.Ry(this.visible);this.api.logVisibility(this.element,this.visible&&this.Z);if(this.visible){var c=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",c)}X.U&&(this.J&&(this.Hd(this.J),this.J=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.Ax(this.element,"no-link")); +c=this.api.j();X=this.api.getVideoData();var V="";c.U||(c=g.BD(c),c.indexOf("www.")===0&&(c=c.substring(4)),V=g.n9(X)?"Watch on YouTube Music":c==="youtube.com"?"Watch on YouTube":g.xa("Watch on $WEBSITE",{WEBSITE:c}));this.updateValue("title",V)}; +Qx.prototype.onClick=function(X){this.api.S("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var c=this.api.j(),V=this.api.getVideoUrl(!g.bG(X),!1,!0,!0);if(g.RT(c)){var G={};g.RT(c)&&g.jZ(this.api,"addEmbedsConversionTrackingParams",[G]);V=g.KB(V,G)}g.yS(V,this.api,X);this.api.S("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; +Qx.prototype.Ky=function(){var X={N:"svg",K:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},V:[{N:"path",k9:!0,Y:"ytp-svg-fill",K:{d:"M 45.09 10 L 45.09 25.82 L 47.16 25.82 L 47.41 24.76 L 47.47 24.76 C 47.66 25.14 47.94 25.44 48.33 25.66 C 48.72 25.88 49.16 25.99 49.63 25.99 C 50.48 25.99 51.1 25.60 51.5 24.82 C 51.9 24.04 52.09 22.82 52.09 21.16 L 52.09 19.40 C 52.12 18.13 52.05 17.15 51.90 16.44 C 51.75 15.74 51.50 15.23 51.16 14.91 C 50.82 14.59 50.34 14.44 49.75 14.44 C 49.29 14.44 48.87 14.57 48.47 14.83 C 48.27 14.96 48.09 15.11 47.93 15.29 C 47.78 15.46 47.64 15.65 47.53 15.86 L 47.51 15.86 L 47.51 10 L 45.09 10 z M 8.10 10.56 L 10.96 20.86 L 10.96 25.82 L 13.42 25.82 L 13.42 20.86 L 16.32 10.56 L 13.83 10.56 L 12.78 15.25 C 12.49 16.62 12.31 17.59 12.23 18.17 L 12.16 18.17 C 12.04 17.35 11.84 16.38 11.59 15.23 L 10.59 10.56 L 8.10 10.56 z M 30.10 10.56 L 30.10 12.58 L 32.59 12.58 L 32.59 25.82 L 35.06 25.82 L 35.06 12.58 L 37.55 12.58 L 37.55 10.56 L 30.10 10.56 z M 19.21 14.46 C 18.37 14.46 17.69 14.63 17.17 14.96 C 16.65 15.29 16.27 15.82 16.03 16.55 C 15.79 17.28 15.67 18.23 15.67 19.43 L 15.67 21.06 C 15.67 22.24 15.79 23.19 16 23.91 C 16.21 24.62 16.57 25.15 17.07 25.49 C 17.58 25.83 18.27 26 19.15 26 C 20.02 26 20.69 25.83 21.19 25.5 C 21.69 25.17 22.06 24.63 22.28 23.91 C 22.51 23.19 22.63 22.25 22.63 21.06 L 22.63 19.43 C 22.63 18.23 22.50 17.28 22.27 16.56 C 22.04 15.84 21.68 15.31 21.18 14.97 C 20.68 14.63 20.03 14.46 19.21 14.46 z M 56.64 14.47 C 55.39 14.47 54.51 14.84 53.99 15.61 C 53.48 16.38 53.22 17.60 53.22 19.27 L 53.22 21.23 C 53.22 22.85 53.47 24.05 53.97 24.83 C 54.34 25.40 54.92 25.77 55.71 25.91 C 55.97 25.96 56.26 25.99 56.57 25.99 C 57.60 25.99 58.40 25.74 58.96 25.23 C 59.53 24.72 59.81 23.94 59.81 22.91 C 59.81 22.74 59.79 22.61 59.78 22.51 L 57.63 22.39 C 57.62 23.06 57.54 23.54 57.40 23.83 C 57.26 24.12 57.01 24.27 56.63 24.27 C 56.35 24.27 56.13 24.18 56.00 24.02 C 55.87 23.86 55.79 23.61 55.75 23.25 C 55.71 22.89 55.68 22.36 55.68 21.64 L 55.68 21.08 L 59.86 21.08 L 59.86 19.16 C 59.86 17.99 59.77 17.08 59.58 16.41 C 59.39 15.75 59.07 15.25 58.61 14.93 C 58.15 14.62 57.50 14.47 56.64 14.47 z M 23.92 14.67 L 23.92 23.00 C 23.92 24.03 24.11 24.79 24.46 25.27 C 24.82 25.76 25.35 26.00 26.09 26.00 C 27.16 26.00 27.97 25.49 28.5 24.46 L 28.55 24.46 L 28.76 25.82 L 30.73 25.82 L 30.73 14.67 L 28.23 14.67 L 28.23 23.52 C 28.13 23.73 27.97 23.90 27.77 24.03 C 27.57 24.16 27.37 24.24 27.15 24.24 C 26.89 24.24 26.70 24.12 26.59 23.91 C 26.48 23.70 26.43 23.35 26.43 22.85 L 26.43 14.67 L 23.92 14.67 z M 36.80 14.67 L 36.80 23.00 C 36.80 24.03 36.98 24.79 37.33 25.27 C 37.60 25.64 37.97 25.87 38.45 25.96 C 38.61 25.99 38.78 26.00 38.97 26.00 C 40.04 26.00 40.83 25.49 41.36 24.46 L 41.41 24.46 L 41.64 25.82 L 43.59 25.82 L 43.59 14.67 L 41.09 14.67 L 41.09 23.52 C 40.99 23.73 40.85 23.90 40.65 24.03 C 40.45 24.16 40.23 24.24 40.01 24.24 C 39.75 24.24 39.58 24.12 39.47 23.91 C 39.36 23.70 39.31 23.35 39.31 22.85 L 39.31 14.67 L 36.80 14.67 z M 56.61 16.15 C 56.88 16.15 57.08 16.23 57.21 16.38 C 57.33 16.53 57.42 16.79 57.47 17.16 C 57.52 17.53 57.53 18.06 57.53 18.78 L 57.53 19.58 L 55.69 19.58 L 55.69 18.78 C 55.69 18.05 55.71 17.52 55.75 17.16 C 55.79 16.81 55.87 16.55 56.00 16.39 C 56.13 16.23 56.32 16.15 56.61 16.15 z M 19.15 16.19 C 19.50 16.19 19.75 16.38 19.89 16.75 C 20.03 17.12 20.09 17.7 20.09 18.5 L 20.09 21.97 C 20.09 22.79 20.03 23.39 19.89 23.75 C 19.75 24.11 19.51 24.29 19.15 24.30 C 18.80 24.30 18.54 24.11 18.41 23.75 C 18.28 23.39 18.22 22.79 18.22 21.97 L 18.22 18.5 C 18.22 17.7 18.28 17.12 18.42 16.75 C 18.56 16.38 18.81 16.19 19.15 16.19 z M 48.63 16.22 C 48.88 16.22 49.08 16.31 49.22 16.51 C 49.36 16.71 49.45 17.05 49.50 17.52 C 49.55 17.99 49.58 18.68 49.58 19.55 L 49.58 21 L 49.59 21 C 49.59 21.81 49.57 22.45 49.5 22.91 C 49.43 23.37 49.32 23.70 49.16 23.89 C 49.00 24.08 48.78 24.17 48.51 24.17 C 48.30 24.17 48.11 24.12 47.94 24.02 C 47.76 23.92 47.62 23.78 47.51 23.58 L 47.51 17.25 C 47.59 16.95 47.75 16.70 47.96 16.50 C 48.17 16.31 48.39 16.22 48.63 16.22 z "}}]}, +c=28666,V=this.api.getVideoData();this.api.isEmbedsShortsMode()?X={N:"svg",K:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},V:[{N:"path",K:{d:"m.73 13.78 2.57-.05c-.05 2.31.36 3.04 1.34 3.04.95 0 1.34-.61 1.34-1.88 0-1.88-.97-2.83-2.37-4.04C1.47 8.99.55 7.96.55 5.23c0-2.60 1.15-4.14 4.17-4.14 2.91 0 4.12 1.70 3.71 5.20l-2.57.15c.05-2.39-.20-3.22-1.26-3.22-.97 0-1.31.64-1.31 1.82 0 1.77.74 2.31 2.34 3.84 1.98 1.88 3.09 2.98 3.09 5.54 0 3.24-1.26 4.48-4.20 4.48-3.06.02-4.30-1.62-3.78-5.12ZM9.67.74h2.83V4.58c0 1.15-.05 1.95-.15 2.93h.05c.54-1.15 1.44-1.75 2.60-1.75 1.75 0 2.5 1.23 2.5 3.35v9.53h-2.83V9.32c0-1.03-.25-1.54-.90-1.54-.48 0-.92.28-1.23.79V18.65H9.70V.74h-.02ZM18.67 13.27v-1.82c0-4.07 1.18-5.64 3.99-5.64 2.80 0 3.86 1.62 3.86 5.64v1.82c0 3.96-1.00 5.59-3.94 5.59-2.98 0-3.91-1.67-3.91-5.59Zm5 1.03v-3.94c0-1.72-.25-2.60-1.08-2.60-.79 0-1.05.87-1.05 2.60v3.94c0 1.80.25 2.62 1.05 2.62.82 0 1.08-.82 1.08-2.62ZM27.66 6.03h2.19l.25 2.73h.10c.28-2.01 1.21-3.01 2.39-3.01.15 0 .30.02.51.05l-.15 3.27c-1.18-.25-2.13-.05-2.57.72V18.63h-2.73V6.03ZM34.80 15.67V8.27h-1.03V6.05h1.15l.36-3.73h2.11V6.05h1.93v2.21h-1.80v6.98c0 1.18.15 1.44.61 1.44.41 0 .77-.05 1.10-.18l.36 1.80c-.85.41-1.93.54-2.60.54-1.82-.02-2.21-.97-2.21-3.19ZM40.26 14.81l2.39-.05c-.12 1.39.36 2.19 1.21 2.19.72 0 1.13-.46 1.13-1.10 0-.87-.79-1.46-2.16-2.5-1.62-1.23-2.60-2.16-2.60-4.20 0-2.24 1.18-3.32 3.63-3.32 2.60 0 3.63 1.28 3.42 4.35l-2.39.10c-.02-1.90-.28-2.44-1.08-2.44-.77 0-1.10.38-1.10 1.08 0 .97.56 1.44 1.49 2.11 2.21 1.64 3.24 2.47 3.24 4.53 0 2.26-1.28 3.40-3.73 3.40-2.78-.02-3.81-1.54-3.45-4.14Z", +fill:"#fff"}}]}:g.n9(V)&&(X={N:"svg",K:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},V:[{N:"path",K:{d:"M33.96 20.91V15.45L37.43 4.11H34.84L33.52 9.26C33.22 10.44 32.95 11.67 32.75 12.81H32.59C32.48 11.81 32.16 10.50 31.84 9.24L30.56 4.11H27.97L31.39 15.45V20.91H33.96Z",fill:"white"}},{N:"path",K:{d:"M40.92 8.31C37.89 8.31 36.85 10.06 36.85 13.83V15.62C36.85 19.00 37.50 21.12 40.86 21.12C44.17 21.12 44.88 19.10 44.88 15.62V13.83C44.88 10.46 44.20 8.31 40.92 8.31ZM42.21 16.73C42.21 18.37 41.92 19.40 40.87 19.40C39.84 19.40 39.55 18.36 39.55 16.73V12.69C39.55 11.29 39.75 10.04 40.87 10.04C42.05 10.04 42.21 11.36 42.21 12.69V16.73Z", +fill:"white"}},{N:"path",K:{d:"M49.09 21.10C50.55 21.10 51.46 20.49 52.21 19.39H52.32L52.43 20.91H54.42V8.55H51.78V18.48C51.50 18.97 50.85 19.33 50.24 19.33C49.47 19.33 49.23 18.72 49.23 17.70V8.55H46.60V17.82C46.60 19.83 47.18 21.10 49.09 21.10Z",fill:"white"}},{N:"path",K:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{N:"path",K:{d:"M64.69 21.10C66.15 21.10 67.06 20.49 67.81 19.39H67.92L68.03 20.91H70.02V8.55H67.38V18.48C67.10 18.97 66.45 19.33 65.84 19.33C65.07 19.33 64.83 18.72 64.83 17.70V8.55H62.20V17.82C62.20 19.83 62.78 21.10 64.69 21.10Z", +fill:"white"}},{N:"path",K:{d:"M77.49 8.28C76.21 8.28 75.29 8.84 74.68 9.75H74.55C74.63 8.55 74.69 7.53 74.69 6.72V3.45H72.14L72.13 14.19L72.14 20.91H74.36L74.55 19.71H74.62C75.21 20.52 76.12 21.03 77.33 21.03C79.34 21.03 80.20 19.30 80.20 15.62V13.71C80.20 10.27 79.81 8.28 77.49 8.28ZM77.58 15.62C77.58 17.92 77.24 19.29 76.17 19.29C75.67 19.29 74.98 19.05 74.67 18.60V11.25C74.94 10.55 75.54 10.04 76.21 10.04C77.29 10.04 77.58 11.35 77.58 13.74V15.62Z",fill:"white"}},{N:"path",K:{d:"M89.47 13.51C89.47 10.53 89.17 8.32 85.74 8.32C82.51 8.32 81.79 10.47 81.79 13.63V15.80C81.79 18.88 82.45 21.12 85.66 21.12C88.20 21.12 89.51 19.85 89.36 17.39L87.11 17.27C87.08 18.79 86.73 19.41 85.72 19.41C84.45 19.41 84.39 18.20 84.39 16.40V15.56H89.47V13.51ZM85.68 9.98C86.90 9.98 86.99 11.13 86.99 13.08V14.09H84.39V13.08C84.39 11.15 84.47 9.98 85.68 9.98Z", +fill:"white"}},{N:"path",K:{d:"M93.18 20.86H95.50V13.57C95.50 11.53 95.46 9.36 95.30 6.46H95.56L95.99 8.24L98.73 20.86H101.09L103.78 8.24L104.25 6.46H104.49C104.37 9.03 104.30 11.35 104.30 13.57V20.86H106.63V4.06H102.67L101.25 10.27C100.65 12.85 100.22 16.05 99.97 17.68H99.78C99.60 16.02 99.15 12.83 98.56 10.29L97.10 4.06H93.18V20.86Z",fill:"white"}},{N:"path",K:{d:"M111.27 21.05C112.73 21.05 113.64 20.44 114.39 19.34H114.50L114.61 20.86H116.60V8.50H113.96V18.43C113.68 18.92 113.03 19.28 112.42 19.28C111.65 19.28 111.41 18.67 111.41 17.65V8.50H108.78V17.77C108.78 19.78 109.36 21.05 111.27 21.05Z", +fill:"white"}},{N:"path",K:{d:"M121.82 21.12C124.24 21.12 125.59 20.05 125.59 17.86C125.59 15.87 124.59 15.06 122.21 13.44C121.12 12.72 120.53 12.27 120.53 11.21C120.53 10.42 121.02 10.00 121.91 10.00C122.88 10.00 123.21 10.64 123.25 12.46L125.41 12.34C125.59 9.49 124.57 8.27 121.95 8.27C119.47 8.27 118.28 9.34 118.28 11.46C118.28 13.42 119.21 14.31 120.96 15.53C122.51 16.60 123.36 17.27 123.36 18.16C123.36 18.89 122.85 19.42 121.96 19.42C120.94 19.42 120.36 18.54 120.46 17.21L118.27 17.25C117.93 19.81 119.13 21.12 121.82 21.12Z", +fill:"white"}},{N:"path",K:{d:"M128.45 6.93C129.35 6.93 129.77 6.63 129.77 5.39C129.77 4.23 129.32 3.87 128.45 3.87C127.57 3.87 127.14 4.19 127.14 5.39C127.14 6.63 127.55 6.93 128.45 6.93ZM127.23 20.86H129.76V8.50H127.23V20.86Z",fill:"white"}},{N:"path",K:{d:"M135.41 21.06C136.67 21.06 137.38 20.91 137.95 20.37C138.80 19.63 139.15 18.48 139.09 16.54L136.78 16.42C136.78 18.54 136.44 19.34 135.45 19.34C134.36 19.34 134.18 18.15 134.18 15.99V13.43C134.18 11.07 134.41 9.95 135.47 9.95C136.35 9.95 136.70 10.69 136.70 13.05L138.99 12.89C139.15 11.20 138.98 9.82 138.18 9.05C137.58 8.49 136.69 8.27 135.51 8.27C132.48 8.27 131.54 10.19 131.54 13.84V15.53C131.54 19.18 132.25 21.06 135.41 21.06Z", +fill:"white"}}]},c=216163);g.n9(V)?g.Ax(this.element,"ytp-youtube-music-button"):g.jk(this.element,"ytp-youtube-music-button");X.K=Object.assign({},X.K,{"aria-hidden":"true"});this.updateValue("logoSvg",X);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,c,!0)}; +Qx.prototype.iB=function(X){g.z.prototype.iB.call(this,X);this.api.logVisibility(this.element,this.visible&&X)};g.E(YKl,g.U3);g.y=YKl.prototype;g.y.E5=function(){if(this.W.S("web_player_max_seekable_on_ended")||!g.B(this.W.getPlayerStateObject(),2))this.progressBar.er(),this.Pl.er()}; +g.y.Cx=function(){this.ol();this.zY.G?this.E5():this.progressBar.WE()}; +g.y.Gt=function(){this.E5();this.T.start()}; +g.y.ol=function(){var X;if(X=!this.W.j().G){X=this.progressBar;var c=2*g.Dv()*X.B;X=X.U.getLength()*1E3/X.api.getPlaybackRate()/c<300}X=X&&this.W.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;c=!X;this.zY.G||(X=c=!1);c?this.A7||(this.A7=this.L(this.W,"progresssync",this.E5)):this.A7&&(this.Hd(this.A7),this.A7=null);X?this.T.isActive()||this.T.start():this.T.stop()}; +g.y.Ky=function(){var X=this.W.jO(),c=this.W.CS().getPlayerSize(),V=HIU(this),G=Math.max(c.width-V*2,100);if(this.o2!==c.width||this.qE!==X){this.o2=c.width;this.qE=X;var n=aks(this);this.X.element.style.width=n+"px";this.X.element.style.left=V+"px";g.o6D(this.progressBar,V,n,X);this.W.ai().EF=n}V=this.U;G=Math.min(570*(X?1.5:1),G);X=Math.min(413*(X?1.5:1),Math.round((c.height-$S8(this))*.82));V.maxWidth=G;V.maxHeight=X;V.m9();this.ol();this.W.j().S("html5_player_dynamic_bottom_gradient")&&ZUs(this.yK, +c.height)}; +g.y.onVideoDataChange=function(){var X=this.W.getVideoData();this.YO.style.background=X.O5?X.Ps:"";this.G_&&JJS(this.G_,X.showSeekingControls);this.C&&JJS(this.C,X.showSeekingControls)}; +g.y.WP=function(){return this.X.element};g.E(WP8,oi);g.y=WP8.prototype;g.y.Ha=function(X){X.target!==this.dismissButton.element&&(this.onClickCommand&&this.W.z_("innertubeCommand",this.onClickCommand),this.JF())}; +g.y.JF=function(){this.enabled=!1;this.C.hide()}; +g.y.onVideoDataChange=function(X,c){X==="dataloaded"&&wms(this);X=[];var V,G,n,L;if(c=(L=g.T((V=c.getWatchNextResponse())==null?void 0:(G=V.playerOverlays)==null?void 0:(n=G.playerOverlayRenderer)==null?void 0:n.suggestedActionsRenderer,SLA))==null?void 0:L.suggestedActions)for(V=g.r(c),G=V.next();!G.done;G=V.next())(G=g.T(G.value,iSp))&&g.T(G.trigger,Dxz)&&X.push(G);if(X.length!==0){V=[];X=g.r(X);for(G=X.next();!G.done;G=X.next())if(G=G.value,n=g.T(G.trigger,Dxz))L=(L=G.title)?g.xT(L):"View Chapters", +c=n.timeRangeStartMillis,n=n.timeRangeEndMillis,c!=null&&n!=null&&G.tapCommand&&(V.push(new g.AC(c,n,{priority:9,namespace:"suggested_action_button_visible",id:L})),this.suggestedActions[L]=G.tapCommand);this.W.Gr(V)}}; +g.y.Ua=function(){return this.enabled}; +g.y.U5=function(){this.enabled?this.QK.start():vP(this);this.kA()}; +g.y.R2=function(){wms(this);oi.prototype.R2.call(this)};var vk={},vj=(vk.CHANNEL_NAME="ytp-title-channel-name",vk.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",vk.LINK="ytp-title-link",vk.SESSIONLINK="yt-uix-sessionlink",vk.SUBTEXT="ytp-title-subtext",vk.TEXT="ytp-title-text",vk.TITLE="ytp-title",vk);g.E(kX,g.z);kX.prototype.onClick=function(X){this.api.logClick(this.element);var c=this.api.j(),V=this.api.getVideoUrl(!g.bG(X),!1,!0);g.RT(c)&&(c={},g.jZ(this.api,"addEmbedsConversionTrackingParams",[c]),V=g.KB(V,c));g.yS(V,this.api,X)}; +kX.prototype.pS=function(){var X=this.api.getVideoData(),c=this.api.j();this.updateValue("title",X.title);var V={N:"a",Y:vj.CHANNEL_NAME,K:{href:"{{channelLink}}",target:"_blank"},Uy:"{{channelName}}"};this.api.j().U&&(V={N:"span",Y:vj.CHANNEL_NAME,Uy:"{{channelName}}",K:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",V);FPw(this);this.api.getPresentingPlayerType()===2&&(V=this.api.getVideoData(),V.videoId&&V.isListed&&V.author&&V.NE&&V.profilePicture?(this.updateValue("channelLink", +V.NE),this.updateValue("channelName",V.author),this.updateValue("channelTitleFocusable","0")):FPw(this));V=c.externalFullscreen||!this.api.isFullscreen()&&c.lX;g.ab(this.link,vj.FULLERSCREEN_LINK,V);c.A7||!X.videoId||V||g.Vf(X)||c.U?this.J&&(this.updateValue("url",null),this.Hd(this.J),this.J=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.J||(this.J=this.L(this.link,"click",this.onClick)));c.U&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.RT(c)?X.expandedTitle: +X.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.E(g.oZ,g.z);g.y=g.oZ.prototype;g.y.setEnabled=function(X){if(this.type!=null)if(X)switch(this.type){case 3:case 2:r1s(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.D=X}; +g.y.FA=function(X,c,V,G,n,L,d,h){if(!this.NW||this.env.T){this.type===3&&this.WE();this.type!==1&&(g.yO(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.D&&this.fade.show(),this.G&&this.G.dispose(),(this.G=this.api.a$())&&this.G.subscribe("l",this.Vw,this));if(h){var A=g.Ro(this.bg).height||141;this.Pl.style.bottom=A+2+"px"}else this.Pl.style.display="none";this.update({text:V,title:L!=null?L:"",eduText:h!=null?h:""});g.ab(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!L);this.api.isInline()&& +g.Ax(this.bottomText,"ytp-modern-tooltip-text");g.ab(this.element,"ytp-text-detail",!!G);V=-1;this.G&&(V=fW(this.G,243*this.scale),this.env.S("web_l3_storyboard")&&this.G.levels.length===4&&(V=this.G.levels.length-1),V=Q2s(this.G,V,c));ZIw(this,V);if(d)switch(c=g.Ro(this.element).width,d){case 1:this.title.style.right="0";this.title.style.textAlign="left";break;case 2:this.title.style.right=c+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=c/2+"px",this.title.style.textAlign= +"center"}QeL(this,!!G,X,n)}}; +g.y.s7=function(){this.type===1&&this.WE()}; +g.y.j9=function(X,c){if(this.type)if(this.type===3)this.WE();else return;Eh2(this,X,3,c)}; +g.y.hC=function(){this.J&&!this.T&&this.J.hasAttribute("title")&&(this.U=this.J.getAttribute("title")||"",this.J.removeAttribute("title"),this.D&&r1s(this))}; +g.y.Vw=function(X,c){X<=this.X&&this.X<=c&&(X=this.X,this.X=NaN,ZIw(this,X))}; +g.y.Hyv=function(){Els(this.G,this.X,243*this.scale)}; +g.y.WE=function(){switch(this.type){case 2:var X=this.J;X.removeEventListener("mouseout",this.C);X.addEventListener("mouseover",this.B);X.removeEventListener("blur",this.C);X.addEventListener("focus",this.B);xSD(this);break;case 3:xSD(this);break;case 1:this.G&&(this.G.unsubscribe("l",this.Vw,this),this.G=null),this.api.removeEventListener("videoready",this.G_),this.A7.stop()}this.type=null;this.D&&this.fade.hide()}; +g.y.v1=function(){if(this.J)for(var X=0;X=0;c--)if(this.CP[c]===X){this.CP.splice(c,1);break}Ob(this.zY,64,this.CP.length>0)}; +g.y.KG=function(){this.api.Xr()&&this.api.hc();return!!this.BU||mSL(this)||g.uV.prototype.KG.call(this)}; +g.y.T9=Gt(3);g.y.Fb=Gt(7);g.y.kV=Gt(10); +g.y.rh=function(){var X=!this.KG(),c=X&&this.api.Xr()&&!g.B(this.api.getPlayerStateObject(),2)&&!g.Vf(this.api.getVideoData())&&!this.api.j().U&&!this.api.isEmbedsShortsMode(),V=this.Hf&&g.bc(this.api)&&g.B(this.api.getPlayerStateObject(),128);X||V?(this.HH.show(),this.vH.show()):(this.HH.hide(),this.vH.hide(),this.api.v1(this.SV.element));c?this.uj.fM():this.uj.QZ();this.TY&&jeO(this.TY,this.yW||!X);this.api.S("web_player_hide_overflow_button_if_empty_menu")&&R5l(this);g.uV.prototype.rh.call(this)}; +g.y.sz=function(X,c,V,G,n){X.style.left="";X.style.top="";X.style.bottom="";var L=g.Ro(X),d=G||this.TY&&g.h5(this.TY.WP(),c),h=G=null;V!=null&&d||(G=g.Ro(c),h=g.vE(c,this.api.getRootNode()),V==null&&(V=h.x+G.width/2));V-=L.width/2;d?(c=this.TY,G=HIU(c),h=aks(c),d=this.api.CS().getPlayerSize().height,V=g.am(V,G,G+h-L.width),L=d-$S8(c)-L.height):g.h5(this.SV.element,c)?(c=this.api.CS().getPlayerSize().width,V=g.am(V,12,c-L.width-12),L=this.jO()?this.L9:this.bk,this.api.j().playerStyle==="gvn"&&(L+= +20),this.Hf&&(L-=this.jO()?26:18)):(c=this.api.CS().getPlayerSize(),V=g.am(V,12,c.width-L.width-12),L=h.y>(c.height-G.height)/2?h.y-L.height-12:h.y+G.height+12);X.style.top=L+(n||0)+"px";X.style.left=V+"px"}; +g.y.Cx=function(X){X&&(this.api.v1(this.SV.element),this.TY&&this.api.v1(this.TY.WP()));this.Zt&&(g.ab(this.contextMenu.element,"ytp-autohide",X),g.ab(this.contextMenu.element,"ytp-autohide-active",!0));g.uV.prototype.Cx.call(this,X)}; +g.y.oW=function(){g.uV.prototype.oW.call(this);this.Zt&&(g.ab(this.contextMenu.element,"ytp-autohide-active",!1),this.Zt&&(this.contextMenu.hide(),this.BE&&this.BE.hide()))}; +g.y.i4=function(X,c){var V=this.api.CS().getPlayerSize();V=new g.jF(0,0,V.width,V.height);if(X||this.zY.G&&!this.KG()){if(this.api.j().mE||c)X=this.jO()?this.L9:this.bk,V.top+=X,V.height-=X;this.TY&&(V.height-=$S8(this.TY))}return V}; +g.y.D0=function(X){var c=this.api.getRootNode();X?c.parentElement?(c.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.j().externalFullscreen||(c.parentElement.insertBefore(this.K0.element,c),c.parentElement.insertBefore(this.y3.element,c.nextSibling))):g.Ni(Error("Player not in DOM.")):(c.setAttribute("aria-label","YouTube Video Player"),this.K0.detach(),this.y3.detach());this.Ky();this.Y8()}; +g.y.jO=function(){var X=this.api.j();return this.api.isFullscreen()&&!X.T||!1}; +g.y.showControls=function(X){this.V5=!X;this.rh()}; +g.y.Ky=function(){var X=this.jO();this.tooltip.scale=X?1.5:1;this.contextMenu&&g.ab(this.contextMenu.element,"ytp-big-mode",X);this.rh();this.api.S("web_player_hide_overflow_button_if_empty_menu")||R5l(this);this.Y8();var c=this.api.isEmbedsShortsMode();c&&X?(X=(this.api.CS().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.$v(this.SV.element,"padding-left",X+"px"),g.$v(this.SV.element,"padding-right",X+"px")):c&&(g.$v(this.SV.element,"padding-left",""),g.$v(this.SV.element,"padding-right", +""));g.uV.prototype.Ky.call(this)}; +g.y.O7=function(){if(mSL(this)&&!g.bc(this.api))return!1;var X=this.api.getVideoData();return!g.RT(this.api.j())||this.api.getPresentingPlayerType()===2||!this.Yy||((X=this.Yy||X.Yy)?(X=X.embedPreview)?(X=X.thumbnailPreviewRenderer,X=X.videoDetails&&g.T(X.videoDetails,nID)||null):X=null:X=null,X&&X.collapsedRenderer&&X.expandedRenderer)?g.uV.prototype.O7.call(this):!1}; +g.y.Y8=function(){g.uV.prototype.Y8.call(this);this.api.logVisibility(this.title.element,!!this.O0);this.PX&&this.PX.iB(!!this.O0);this.channelAvatar.iB(!!this.O0);this.overflowButton&&this.overflowButton.iB(this.hP()&&!!this.O0);this.shareButton&&this.shareButton.iB(!this.hP()&&!!this.O0);this.s0&&this.s0.iB(!this.hP()&&!!this.O0);this.searchButton&&this.searchButton.iB(!this.hP()&&!!this.O0);this.copyLinkButton&&this.copyLinkButton.iB(!this.hP()&&!!this.O0);if(!this.O0){this.api.v1(this.SV.element); +for(var X=0;X5&&c.Oy("glrs",{cmt:V});c.seekTo(0,{seekSource:58});c.Oy("glrre",{cmt:V})}}; +RZ.prototype.R2=function(){this.J=null;g.I.prototype.R2.call(this)};g.E(g.bR,V_);g.y=g.bR.prototype;g.y.isView=function(){return!0}; +g.y.e8=function(){var X=this.mediaElement.getCurrentTime();if(X1;aQ(X.KE(),G-.01)&&!n&&(Op(this,4),V.isActive=!1,V.rR=V.rR||V.isActive,(this.Z===1?this.J:this.G).Oy("sbh",{}),c.isActive=!0,c.rR=c.rR||c.isActive,this.Z!==0&&(this.J.getVideoData().p$=!0));X=this.X.G;if(this.X.J.isActive&&X.isActive&&(Op(this,5),this.Z!==0)){X=this.G.Hs();V=this.J.Hs(); +this.J.Oy("sbs",{citag:V==null?void 0:V.itag,nitag:X==null?void 0:X.itag});this.G.Oy("gitags",{pitag:V==null?void 0:V.itag,citag:X==null?void 0:X.itag});var L;(L=this.G)==null||L.H4()}}}; +g.y.KB=function(){this.eK()&&this.XP("player-reload-after-handoff")}; +g.y.XP=function(X,c){c=c===void 0?{}:c;if(!this.vl()&&this.status.status!==6){var V=this.status.status>=4&&X!=="player-reload-after-handoff";this.status={status:Infinity,error:X};if(this.J&&this.G){var G=this.G.getVideoData().clientPlaybackNonce;this.J.Mi(new tm("dai.transitionfailure",Object.assign(c,{cpn:G,transitionTimeMs:this.IC,msg:X})));this.J.vN(V)}this.Qd.reject(X);this.dispose()}}; +g.y.eK=function(){return this.status.status>=4&&this.status.status<6}; +g.y.R2=function(){uw2(this);this.J.unsubscribe("newelementrequired",this.KB,this);if(this.U){var X=this.U.G;this.U.J.UH.unsubscribe("updateend",this.dU,this);X.UH.unsubscribe("updateend",this.dU,this)}g.I.prototype.R2.call(this)}; +g.y.nC=function(X){g.QP(X,128)&&this.XP("player-error-event")};g.E(lR,g.I);lR.prototype.clearQueue=function(X,c){X=X===void 0?!1:X;c=c===void 0?!1:c;this.X&&this.X.reject("Queue cleared");this.app.j().S("html5_gapless_fallback_on_qoe_restart_v2")||c&&this.G&&this.G.vN(!1);Mn(this,X)}; +lR.prototype.uF=function(){return!this.J}; +lR.prototype.eK=function(){var X;return((X=this.U)==null?void 0:X.eK())||!1}; +lR.prototype.R2=function(){Mn(this);g.I.prototype.R2.call(this)};g.E(DSL,g.$T);g.y=DSL.prototype;g.y.getVisibilityState=function(X,c,V,G,n,L,d,h){return X?4:KgO()?3:c?2:V?1:G?5:n?7:L?8:d?9:h?10:0}; +g.y.GJ=function(X){this.fullscreen!==X&&(this.fullscreen=X,this.U5())}; +g.y.setMinimized=function(X){this.G!==X&&(this.G=X,this.U5())}; +g.y.setInline=function(X){this.inline!==X&&(this.inline=X,this.U5())}; +g.y.Sq=function(X){this.pictureInPicture!==X&&(this.pictureInPicture=X,this.U5())}; +g.y.setSqueezeback=function(X){this.U!==X&&(this.U=X,this.U5())}; +g.y.l2=function(X){this.X!==X&&(this.X=X,this.U5())}; +g.y.Gy=function(){return this.J}; +g.y.fN=function(){return this.fullscreen!==0}; +g.y.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; +g.y.UL=function(){return this.fullscreen}; +g.y.isMinimized=function(){return this.G}; +g.y.isInline=function(){return this.inline}; +g.y.isBackground=function(){return KgO()}; +g.y.eU=function(){return this.pictureInPicture}; +g.y.F3=function(){return!1}; +g.y.HC=function(){return this.U}; +g.y.eZ=function(){return this.X}; +g.y.U5=function(){this.publish("visibilitychange");var X=this.getVisibilityState(this.Gy(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.eU(),this.F3(),this.HC(),this.eZ());X!==this.B&&this.publish("visibilitystatechange");this.B=X}; +g.y.R2=function(){DdU(this.Z);g.$T.prototype.R2.call(this)};g.y=g.gF.prototype;g.y.addCueRange=function(){}; +g.y.yd=function(){}; +g.y.Fu=function(){}; +g.y.Oh=function(){return!1}; +g.y.yJ=function(){return!1}; +g.y.Ov=function(){}; +g.y.Gh=function(){}; +g.y.q_=function(){}; +g.y.Et=function(){}; +g.y.UZ=function(){return[]}; +g.y.Qp=function(){}; +g.y.xN=function(){return""}; +g.y.getAudioTrack=function(){return this.getVideoData().SU}; +g.y.getAvailableAudioTracks=function(){return[]}; +g.y.gV=function(){return[]}; +g.y.Un=function(){return[]}; +g.y.F9=function(){return[]}; +g.y.SF=function(){}; +g.y.ws=function(){return 0}; +g.y.Jz=function(){return""}; +g.y.getCurrentTime=function(){return 0}; +g.y.DW=function(){}; +g.y.Hs=function(){}; +g.y.J1=function(){return{}}; +g.y.getDuration=function(){return 0}; +g.y.vc=function(){return 0}; +g.y.Tm=function(){return 0}; +g.y.ey=function(){return!1}; +g.y.LK=function(){return 0}; +g.y.QX=function(){return 0}; +g.y.yR=Gt(15);g.y.Zk=function(){return 0}; +g.y.Kj=function(){return!1}; +g.y.Sc=function(){return 0}; +g.y.vg=function(){return null}; +g.y.iV=function(){return null}; +g.y.Qg=function(){return 0}; +g.y.aA=function(){return 0}; +g.y.cD=function(){return g.O(function(X){g.ZS(X)})}; +g.y.Dk=Gt(21);g.y.getPlaybackQuality=function(){return"auto"}; +g.y.getPlaybackRate=function(){return 1}; +g.y.getPlayerState=function(){this.playerState||(this.playerState=new g.y_);return this.playerState}; +g.y.getPlayerType=function(){return 0}; +g.y.getPlaylistSequenceForTime=function(){return null}; +g.y.m8=function(){return function(){}}; +g.y.Cj=function(){return""}; +g.y.getPreferredQuality=function(){return"unknown"}; +g.y.Nd=function(){}; +g.y.getProximaLatencyPreference=function(){return 0}; +g.y.Co=function(){return Pp}; +g.y.a$=function(){return null}; +g.y.getStoryboardFormat=function(){return null}; +g.y.getStreamTimeOffset=function(){return 0}; +g.y.Bc=function(){return 0}; +g.y.h1=function(){return 0}; +g.y.gB=function(){return{dg:[],Ch:[],currentTime:0,rL:"",droppedVideoFrames:0,isGapless:!1,uF:!0,BC:0,M2:0,lY:0,VI:0,yI:0,o0:[],e$:[],pH:null,playerState:this.getPlayerState(),zK:null,Yp:"",totalVideoFrames:0}}; +g.y.getUserAudio51Preference=function(){return 0}; +g.y.getUserPlaybackQualityPreference=function(){return""}; +g.y.getVideoData=function(){this.videoData||(this.videoData=new g.z_(this.qW));return this.videoData}; +g.y.H_=function(){return null}; +g.y.tO=function(){}; +g.y.getVideoLoadedFraction=function(){return 0}; +g.y.v_=function(){}; +g.y.handleError=function(){}; +g.y.vN=function(){}; +g.y.kT=function(){}; +g.y.yj=function(){return!1}; +g.y.LN=Gt(46);g.y.Q0=function(){return!1}; +g.y.hasSupportedAudio51Tracks=function(){return!1}; +g.y.Gf=function(){return!1}; +g.y.Gy=function(){return!1}; +g.y.isAtLiveHead=function(){return!1}; +g.y.Th=function(){return!0}; +g.y.isGapless=function(){return!1}; +g.y.isHdr=function(){return!1}; +g.y.DI=function(){return!1}; +g.y.TQ=function(){return!1}; +g.y.WC=function(){return!1}; +g.y.isProximaLatencyEligible=function(){return!1}; +g.y.uF=function(){return!0}; +g.y.m_=function(){return!1}; +g.y.oM=function(){return!1}; +g.y.vC=function(){return!1}; +g.y.Xk=function(){}; +g.y.zD=function(){}; +g.y.Nn=function(){}; +g.y.a9=function(){}; +g.y.H4=function(){}; +g.y.oa=function(){}; +g.y.u9=function(){}; +g.y.Q7=function(){}; +g.y.DE=function(){}; +g.y.KK=Gt(56);g.y.Oc=Gt(27);g.y.h8=function(){}; +g.y.u$=function(){}; +g.y.MA=function(){}; +g.y.pauseVideo=function(){}; +g.y.playVideo=function(){return g.O(function(X){return X.return()})}; +g.y.NS=function(){}; +g.y.Uq=Gt(33);g.y.Vs=Gt(39);g.y.UK=function(){}; +g.y.Oy=function(){}; +g.y.y0=function(){}; +g.y.m$=function(){}; +g.y.xm=function(){}; +g.y.Mi=function(){}; +g.y.FZ=function(){}; +g.y.tL=function(){}; +g.y.Qt=function(){}; +g.y.vu=function(){}; +g.y.kS=function(){}; +g.y.ZS=function(){}; +g.y.Cr=function(){}; +g.y.t8=function(){}; +g.y.removeCueRange=function(){}; +g.y.Bu=function(){}; +g.y.EH=function(){return[]}; +g.y.PF=function(){}; +g.y.cE=function(){}; +g.y.Qx=function(){}; +g.y.m2=function(){}; +g.y.nI=function(){}; +g.y.Jl=function(){}; +g.y.iE=function(){}; +g.y.seekTo=function(){}; +g.y.sendAbandonmentPing=function(){}; +g.y.sendVideoStatsEngageEvent=function(){}; +g.y.n6=function(){}; +g.y.ZP=function(){}; +g.y.setLoop=function(){}; +g.y.Vt=function(){}; +g.y.setMediaElement=function(){}; +g.y.Er=function(){}; +g.y.setPlaybackRate=function(){}; +g.y.eX=function(){}; +g.y.DP=function(){}; +g.y.Fj=function(){}; +g.y.setProximaLatencyPreference=function(){}; +g.y.fG=function(){}; +g.y.jE=function(){}; +g.y.eq=function(){}; +g.y.z9=function(){}; +g.y.Jp=function(){}; +g.y.setUserAudio51Preference=function(){}; +g.y.T$=function(){}; +g.y.Rx=function(){return!1}; +g.y.ZG=function(){}; +g.y.X1=function(){return!1}; +g.y.mX=function(){}; +g.y.Jy=function(){}; +g.y.GO=function(){}; +g.y.stopVideo=function(){}; +g.y.subscribe=function(){return NaN}; +g.y.F1=function(){}; +g.y.togglePictureInPicture=function(){}; +g.y.SB=function(){return 0}; +g.y.unsubscribe=function(){return!1}; +g.y.Ma=function(){}; +g.y.Wk=function(){return!1}; +g.y.W5=function(){}; +g.y.pw=function(){}; +g.y.La=function(){}; +g.y.QE=function(){};g.E(g.fa,g.I);g.y=g.fa.prototype;g.y.GF=function(){return this.Z}; +g.y.lE=function(X){this.Z=X}; +g.y.Ey=function(){return this.qW.S("web_player_present_empty")?this.X||this.J:this.X}; +g.y.I1=function(X){this.X=X}; +g.y.nz=Gt(52);g.y.We=Gt(54);g.y.sM=function(X){return this.U[X]||null}; +g.y.R2=function(){for(var X=g.r(Object.values(this.U)),c=X.next();!c.done;c=X.next())c.value.Et();g.I.prototype.R2.call(this)};g.E(pa,g.I);g.y=pa.prototype;g.y.enqueue=function(X,c){if(X.X!==this)return!1;if(this.segments.length===0||(c===void 0?0:c))this.J=X;this.segments.push(X);return!0}; +g.y.cW=function(){return this.py||0}; +g.y.Lm=function(){return this.X||0}; +g.y.removeAll=function(){for(;this.segments.length;){var X=void 0;(X=this.segments.pop())==null||X.dispose()}this.G.clear();this.U=void 0}; +g.y.R2=function(){this.removeAll();g.I.prototype.R2.call(this)}; +g.E(dW2,g.I);g.y=dW2.prototype;g.y.cW=function(){return this.py}; +g.y.Lm=function(){return this.U}; +g.y.getType=function(){return this.type}; +g.y.getVideoData=function(){return this.videoData}; +g.y.Ok=function(X){ov(X);this.videoData=X}; +g.y.R2=function(){yns(this);g.I.prototype.R2.call(this)};g.Tg.prototype.dB=function(X,c){if(c===1)return this.J.get(X);if(c===2)return this.U.get(X);if(c===3)return this.G.get(X)}; +g.Tg.prototype.lZ=Gt(64);g.Tg.prototype.Xe=function(X,c,V,G){V={Ai:G,jz:V};c?this.U.set(X,V):this.J.set(X,V)}; +g.Tg.prototype.clearAll=function(){this.J.clear();this.U.clear();this.G.clear()}; +g.E(g.uR,g.I);g.y=g.uR.prototype;g.y.HU=function(X,c,V){return new g.AC(X,c,{id:V,namespace:"serverstitchedcuerange",priority:9})}; +g.y.Hh=function(X){var c=X.ZF?X.ZF*1E3:X.py,V=this.G.get(X.cpn);V&&this.playback.removeCueRange(V);this.G.delete(X.cpn);this.U.delete(X.cpn);V=this.Z.indexOf(X);V>=0&&this.Z.splice(V,1);V=[];for(var G=g.r(this.B),n=G.next();!n.done;n=G.next())n=n.value,n.end<=c?this.playback.removeCueRange(n):V.push(n);this.B=V;kcl(this,0,c+X.durationMs)}; +g.y.onCueRangeEnter=function(X){this.YO.push(X);var c=X.getId();this.OM({oncueEnter:1,cpn:c,start:X.start,end:X.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.ws()||0).toFixed(3)});var V=c==="";this.T_.add(X.G);var G=this.U.get(c);if(V){var n;if(this.playback.getVideoData().JT()&&((n=this.J)==null?0:n.ip)&&this.X){this.wW=0;this.J=void 0;this.kO&&(this.events.Hd(this.kO),this.kO=null);this.X="";this.LS=!0;return}}else if(this.OM({enterAdCueRange:1}),this.playback.getVideoData().JT()&& +(G==null?0:G.uo))return;if(this.LS&&!this.J)this.LS=!1,!V&&G&&(V=this.playback.getCurrentTime(),Ca(this,{pE:X,isAd:!0,Mc:!0,Eq:V,adCpn:c},{isAd:!1,Mc:!1,Eq:V}),this.IZ=G.cpn,Ka(this,G),X=Bj(this,"midab",G),this.OM(X),this.wW=1),this.C=!1;else if(this.J){if(this.J.Mc)this.OM({a_pair_of_same_transition_occurs_enter:1,acpn:this.J.adCpn,transitionTime:this.J.Eq,cpn:c,currentTime:this.playback.getCurrentTime()}),G=this.playback.getCurrentTime(),X={pE:X,isAd:!V,Mc:!0,Eq:G,adCpn:c},c={pE:this.J.pE,isAd:this.J.isAd, +Mc:!1,Eq:G,adCpn:this.J.adCpn},this.J.pE&&this.T_.delete(this.J.pE.G),Ca(this,X,c);else{if(this.J.pE===X){this.OM({same_cue_range_pair_enter:1,acpn:this.J.adCpn,transitionTime:this.J.Eq,cpn:c,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:X.start,cueRangeEndTime:X.end});this.J=void 0;return}if(this.J.adCpn===c){c&&this.OM({dchtsc:c});this.J=void 0;return}X={pE:X,isAd:!V,Mc:!0,Eq:this.playback.getCurrentTime(),adCpn:c};Ca(this,X,this.J)}this.J=void 0;this.C=!1}else this.J={pE:X,isAd:!V, +Mc:!0,Eq:this.playback.getCurrentTime(),adCpn:c}}; +g.y.onCueRangeExit=function(X){var c=X.getId();this.OM({oncueExit:1,cpn:c,start:X.start,end:X.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.ws()||0).toFixed(3)});var V=c==="",G=this.U.get(c);if(this.playback.getVideoData().JT()&&!V&&G){if(G.uo)return;G.uo=!0;this.T.clear();if(this.qW.S("html5_lifa_no_rewatch_ad_sbc"))if(this.playback.Oh()){var n=G.py;this.playback.t8(n/1E3,(n+G.durationMs)/1E3)}else this.playback.Oy("lifa",{remove:0})}if(this.T_.has(X.G))if(this.T_.delete(X.G), +this.YO=this.YO.filter(function(L){return L!==X}),this.LS&&(this.C=this.LS=!1,this.OM({cref:1})),this.J){if(this.J.Mc){if(this.J.pE===X){this.OM({same_cue_range_pair_exit:1, +acpn:this.J.adCpn,transitionTime:this.J.Eq,cpn:c,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:X.start,cueRangeEndTime:X.end});this.J=void 0;return}if(this.J.adCpn===c){c&&this.OM({dchtsc:c});this.J=void 0;return}c={pE:X,isAd:!V,Mc:!1,Eq:this.playback.getCurrentTime(),adCpn:c};Ca(this,this.J,c)}else if(this.OM({a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.J.adCpn,transitionTime:this.J.Eq,upcomingCpn:c,contentCpn:this.playback.getVideoData().clientPlaybackNonce,currentTime:this.playback.getCurrentTime()}), +this.J.adCpn===c)return;this.J=void 0;this.C=!1}else this.J={pE:X,isAd:!V,Mc:!1,Eq:this.playback.getCurrentTime(),adCpn:c};else this.OM({ignore_single_exit:1})}; +g.y.j7=function(){return{cpn:this.playback.getVideoData().clientPlaybackNonce,durationMs:0,py:0,playerType:1,F6:0,videoData:this.playback.getVideoData(),errorCount:0}}; +g.y.SZ=function(){if(this.Z6)return!1;var X=void 0;this.IZ&&(X=this.U.get(this.IZ));return this.playback.getVideoData().JT()?!!X&&!X.uo:!!X}; +g.y.seekTo=function(X,c,V,G){X=X===void 0?0:X;c=c===void 0?{}:c;V=V===void 0?!1:V;G=G===void 0?null:G;if(this.playback.getVideoData().JT()&&X<=this.NW/1E3)this.playback.pauseVideo(),this.NW=0,this.C=!0,this.playback.cD(),this.playback.seekTo(X),this.playback.playVideo();else if(this.C=!0,V)Anl(this,X,c);else{V=this.app.Ey();var n=V===this.fS?this.HP:null;SY(this,!1);this.Ly=X;this.EM=c;G!=null&&this.NE.start(G);V&&(this.HP=n||V.getPlayerState(),V.GO(),this.fS=V)}}; +g.y.R2=function(){SY(this,!1);Fu2(this);EVt(this);g.I.prototype.R2.call(this)}; +g.y.XH=function(X){this.G2=X;this.OM({swebm:X})}; +g.y.tZ=function(X,c,V){if(V&&c){var G=this.T.get(X);if(G){G.locations||(G.locations=new Map);var n=Number(c.split(";")[0]);V=new g.kW(V);this.OM({hdlredir:1,itag:c,seg:X,hostport:eH(V)});G.locations.set(n,V)}}}; +g.y.GD=function(X,c,V,G,n,L){var d=G===3,h=QfS(this,X,c,G,V,L);if(!h){qn(this,c,d);var A=g.rnD(this,c)?"undec":"ncp";this.OM({gvprp:A,mt:X,seg:c,tt:G,itag:V,ce:L});return null}d||this.T.set(c,h);L=h.PS;var Y;G=((Y=this.dB(c-1,G,n))==null?void 0:Y.Ai)||"";G===""&&this.OM({eds:1});Y=xWL(this,h.ssdaiAdsConfig);n=this.playback.getVideoData();var H;d=((H=n.G)==null?void 0:H.containerType)||0;H=n.Sl[d];h=h.BF&&c>=h.BF?h.BF:void 0;H={Mv:L?e8D(this,L):[],QU:Y,Ai:G,vR:h,OD:GV(H.split(";")[0]),Gv:H.split(";")[1]|| +""};h={An:H};this.o2&&(X={gvprpro:"v",sq:c,mt:X.toFixed(3),itag:V,acpns:((A=H.Mv)==null?void 0:A.join("_"))||"none",abid:L},this.OM(X));return h}; +g.y.mw=function(X){a:{if(!this.Z6){var c=Z6l(this,X);if(!(this.playback.getVideoData().JT()&&(c==null?0:c.uo)))break a}c=void 0}var V=c;if(!V)return this.OM({gvprp:"ncp",mt:X}),null;c=V.PS;var G=xWL(this,V.ssdaiAdsConfig);V=V.BF&&V.aj&&X>=V.aj?V.BF:void 0;var n=this.playback.getVideoData(),L,d=((L=n.G)==null?void 0:L.containerType)||0;L=n.Sl[d];L={Mv:c?e8D(this,c):[],QU:G,vR:V,OD:GV(L.split(";")[0]),Gv:L.split(";")[1]||""};var h;X={gvprpro:"v",mt:X.toFixed(3),acpns:((h=L.Mv)==null?void 0:h.join("_"))|| +"none",abid:c};this.OM(X);return L}; +g.y.eF=function(X,c,V,G,n,L){var d=Number(V.split(";")[0]),h=G===3;X=QfS(this,X,c,G,V,L);this.OM({gdu:1,seg:c,itag:d,pb:""+!!X});if(!X)return qn(this,c,h),null;X.locations||(X.locations=new Map);if(!X.locations.has(d)){var A,Y;L=(A=X.videoData.getPlayerResponse())==null?void 0:(Y=A.streamingData)==null?void 0:Y.adaptiveFormats;if(!L)return this.OM({gdu:"noadpfmts",seg:c,itag:d}),qn(this,c,h),null;A=L.find(function(W){return W.itag===d}); +if(!A||!A.url){var H=X.videoData.videoId;X=[];var a=g.r(L);for(G=a.next();!G.done;G=a.next())X.push(G.value.itag);this.OM({gdu:"nofmt",seg:c,vid:H,itag:d,fullitag:V,itags:X.join(",")});qn(this,c,h);return null}X.locations.set(d,new g.kW(A.url,!0))}L=X.locations.get(d);if(!L)return this.OM({gdu:"nourl",seg:c,itag:d}),qn(this,c,h),null;L=new FI(L);this.G2&&(L.get("dvc")?this.OM({dvc:L.get("dvc")||""}):L.set("dvc","webm"));(G=(a=this.dB(c-1,G,n))==null?void 0:a.Ai)&&L.set("daistate",G);X.BF&&c>=X.BF&& +L.set("skipsq",""+X.BF);(a=this.playback.getVideoData().clientPlaybackNonce)&&L.set("cpn",a);a=[];X.PS&&(a=e8D(this,X.PS),a.length>0&&L.set("acpns",a.join(",")));h||this.T.set(c,X);h=null;h=L.get("aids");G=L.Yc();(G==null?void 0:G.length)>2048&&this.OM({urltoolong:1,sq:c,itag:d,len:G.length});this.o2&&(G&&(L=X.cpn,n=X.PS,R88(this,L,n),n&&!this.tT.has(n)&&(L=JnU(this,L,n),A=mWl(this,n),this.OM({iofa:L}),this.OM({noawnzd:A-L}),this.OM({acpns:a.join("."),aids:(H=h)==null?void 0:H.replace(/,/g,".")}), +this.tT.add(n))),this.OM({gdu:"v",seg:c,itag:V,ast:X.py.toFixed(3),alen:X.durationMs.toFixed(3),acpn:X.cpn,avid:X.videoData.videoId}));return G}; +g.y.Dl=function(X,c,V){var G=iR(this,X,V);return(G=G?(G.py+G.durationMs)/1E3:0)&&c>G?(this.uP(X,V,!0),this.playback.seekTo(G),!0):!1}; +g.y.uP=function(X,c,V){V=V===void 0?!1:V;var G=iR(this,X,c);if(G){var n=void 0,L=G.PS;if(L){this.OM({skipadonsq:c,sts:V,abid:L,acpn:G.cpn,avid:G.videoData.videoId});V=this.D.get(L);if(!V)return;V=g.r(V);for(L=V.next();!L.done;L=V.next())L=L.value,L.BF=c,L.aj=X,L.py>G.py&&(n=L)}this.X=G.cpn;vV1(this);X=this.playback.getCurrentTime();sp(this,G,n,X,X,!1,!0)}}; +g.y.im=function(){for(var X=g.r(this.Z),c=X.next();!c.done;c=X.next())c=c.value,c.BF=NaN,c.aj=NaN;vV1(this);this.OM({rsac:"resetSkipAd",sac:this.X});this.X=""}; +g.y.dB=function(X,c,V){return this.Hl.dB(X,c,V)}; +g.y.lZ=Gt(63); +g.y.Xe=function(X,c,V,G,n,L,d,h,A){G.length>0&&this.OM({onssinfo:1,sq:X,start:c.toFixed(3),cpns:G.join(","),ds:n.join(","),isVideo:d?1:0});A&&this.Hl.Xe(X,d,h,A);if(d){if(G.length&&n.length)for(this.X&&this.X===G[0]&&this.OM({skipfail:1,sq:X,acpn:this.X}),X=c+this.Bc(),d=0;d0&&(this.wW=0,this.IZ="",this.api.publish("serverstitchedvideochange"));this.playback.q_(V,G);return!0}; +g.y.BN=function(){this.OM({rstdaist:1});this.Hl.clearAll()}; +g.y.hF=function(X){var c;if(X!==((c=this.A7)==null?void 0:c.identifier))this.OM({ignorenoad:X});else{this.Pg.add(X);(this.qW.S("html5_log_noad_response_received")||this.playback.getVideoData().JT())&&this.OM({noadrcv:X});var V;((V=this.A7)==null?void 0:V.identifier)===X&&zg(this)}}; +g.y.VS=function(){return this.wW}; +g.y.bV=function(){return this.IZ}; +g.y.Ob=function(X){if(this.Z6)return this.OM({dai_disabled:X.event}),!1;if(this.playback.getVideoData().JT()&&(this.qW.S("html5_lifa_no_gab_on_predict_start")&&X.event==="predictStart"||X.event==="continue"||X.event==="stop"))return this.OM({cuepoint_skipped:X.event}),!1;var c=JP(this.api.X2());if(c=c?c.Ob(X):!1)this.G_={e0:X.identifier,WQ:X.startSecs};else if(this.G_&&this.G_.e0===X.identifier&&X.startSecs>this.G_.WQ+1){this.OM({cueStChg:X.identifier,oldSt:this.G_.WQ.toFixed(3),newSt:X.startSecs.toFixed(3), +abid:this.G_.NF});if(this.G_.NF){var V=X.startSecs-this.G_.WQ,G=this.D.get(this.G_.NF);if(G){G=g.r(G);for(var n=G.next();!n.done;n=G.next())n=n.value,n.py>=0&&(n.py+=V*1E3,this.qW.S("html5_ssdai_update_timeline_on_start_time_change")&&(n.F6+=V*1E3),this.OM({newApEt:n.py,newApPrt:n.F6,acpn:n.cpn}))}}this.G_.WQ=X.startSecs}return c}; +g.y.WJ=function(X){return this.Z6?!1:!!Z6l(this,X)}; +g.y.Ij=function(X){var c=this;this.playback.pauseVideo();var V=this.playback.getCurrentTime(),G=this.qW.S("html5_lifa_reset_segment_index_on_skip"),n=G?V+this.playback.Bc():V,L=this.U.get(this.IZ),d=this.G.get(this.IZ);if(L){this.X=this.IZ;this.C=!1;L.uo=!0;V=this.playback.getCurrentTime();this.J={pE:d,isAd:!0,Mc:!1,Eq:V,adCpn:this.IZ,ip:L,yl7:X};this.playback.vu(L,this.j7(),V,this.playback.getCurrentTime(),!1,!0,X,(0,g.ta)());G&&this.playback.h8();if(d==null?0:d.start)this.NW=V*1E3-d.start;this.T.clear(); +this.playback.cD();this.IZ=this.j7().cpn;this.api.publish("serverstitchedvideochange");this.playback.seekTo(n,{seekSource:89,Z3:"lifa_skip"});this.playback.playVideo();this.kO||(this.kO=this.events.L(this.api,"progresssync",function(){c.Hh(L)})); +return!0}this.OM({skipFail:V},!0);return!1}; +g.y.OM=function(X,c){((c===void 0?0:c)||this.o2||this.playback.getVideoData().JT())&&this.playback.Oy("sdai",X)}; +var aoD=0;g.E(b6w,g.uR);g.y=b6w.prototype;g.y.onCueRangeEnter=function(X){var c=X.getId();this.playback.Oy("sdai",{oncueEnter:1,cpn:c,start:X.start,end:X.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.ws()||0).toFixed(3)});X=this.U.get(c);this.playback.Oy("sdai",{enterAdCueRange:1});c=this.IZ||this.j7().cpn;var V;c=(V=this.U.get(c))!=null?V:this.j7();X&&(V={t_:c,vJ:X,BJ:this.playback.getCurrentTime()},this.eH(V))}; +g.y.onCueRangeExit=function(X){var c=this.playback.getCurrentTime()*1E3;X=X.getId();for(var V=g.r(this.G.values()),G=V.next();!G.done;G=V.next())if(G=G.value,G.getId()!==X&&c>=G.start&&c<=G.end)return;if(c=this.U.get(X))c={t_:c,vJ:this.j7(),BJ:this.playback.getCurrentTime()},this.eH(c)}; +g.y.eH=function(X){this.X||this.C||this.xV(this.IZ);var c=X.t_,V=X.vJ;if(V.cpn===this.IZ)this.playback.Oy("sdai",{igtranssame:1,enter:V.cpn,exit:c.cpn});else{var G=this.C,n=!!this.X;this.X="";var L=X.BJ,d=c.playerType===2?c.py/1E3+c.videoData.LS:this.j7().videoData.LS;if(c.playerType===2&&V.playerType===2)n?this.playback.Oy("sdai",{igtransskip:1,enter:V.cpn,exit:c.cpn,seek:G,skip:this.X}):sp(this,c,V,d,L,G,n);else{this.IZ=V.cpn;X=X.Hl2;if(c.playerType===1&&V.playerType===2){this.NW=0;Ka(this,V);var h= +Bj(this,"c2a",V);this.playback.Oy("sdai",h);this.wW++}else if(c.playerType===2&&V.playerType===1){h=c.videoData.LS;this.api.publish("serverstitchedvideochange");var A=Bj(this,"a2c");this.playback.Oy("sdai",A);this.wW=0;this.NW=h*1E3;this.Wg=d;lol(this,c.PS)}this.playback.vu(c,V,d,L,G,n,X)}this.X="";this.C=!1}}; +g.y.seekTo=function(X,c,V,G){X=X===void 0?0:X;c=c===void 0?{}:c;V=V===void 0?!1:V;G=G===void 0?null:G;this.xV(this.IZ);this.playback.getVideoData().JT()&&X<=this.Wg?(this.playback.pauseVideo(),this.Wg=this.NW=0,tJU(this,X)):g.uR.prototype.seekTo.call(this,X,c,V,G)}; +g.y.uP=function(X,c,V){V=V===void 0?!1:V;var G=iR(this,X,c);if(G){var n=void 0,L=G.PS;if(L){this.playback.Oy("sdai",{skipadonsq:c,sts:V,abid:L,acpn:G.cpn,avid:G.videoData.videoId});V=this.D.get(L);if(!V)return;V=g.r(V);for(L=V.next();!L.done;L=V.next())L=L.value,L.BF=c,L.aj=X,L.py>G.py&&(n=L)}this.xV(this.IZ);this.X=G.cpn;vV1(this);X=this.playback.getCurrentTime();sp(this,G,n,X,X,!1,!0)}}; +g.y.Xe=function(X,c,V,G,n,L,d,h,A){G.length>0&&this.playback.Oy("sdai",{onssinfo:1,sq:X,start:c.toFixed(3),cpns:G.join(","),ds:n.join(","),isVideo:d?1:0});A&&this.Hl.Xe(X,d,h,A);V=yu(this.playback.getVideoData())&&this.qW.S("html5_process_all_cuepoints");if(d||V){if(G.length&&n.length)for(this.X&&this.X===G[0]&&this.playback.Oy("sdai",{skipfail:1,sq:X,acpn:this.X}),X=c+this.Bc(),d=0;d=0&&this.Z.splice(X,1)}; +g.y.xV=function(X){var c=X||this.IZ,V=this.U.get(c);if(V){X=V.videoData;var G,n;c=V.ZF||((n=(G=this.G.get(c))==null?void 0:G.start)!=null?n:0)/1E3;G=this.playback.getCurrentTime()-c;X.LS=G>0?G:0}else this.j7().videoData.LS=this.playback.getCurrentTime()};g.E(p_s,g.I);g.y=p_s.prototype; +g.y.Jw=function(X,c){c=c===void 0?"":c;if(this.timeline.U===c)return!0;var V=this.timeline.J,G=V==null?void 0:V.getVideoData();if(!V||!G)return this.api.Oy("ssap",{htsm:V?0:1}),!1;if(this.api.S("html5_ssap_clear_timeline_before_update")){var n=this.timeline,L;(L=n.J)==null||yns(L);n.G.clear()}n=IZ(V);var d=!1;L=[];var h=new Map;V=[];var A=[],Y=0,H=0,a=0,W=[];X=g.r(X);for(var w=X.next();!w.done;w=X.next())a:{var F=void 0,Z=void 0,v=w.value,e=v.clipId;if(e){if(v.ZD){a=v.ZD.hS||0;w=v.ZD.RS||1;var m= +Number(((v.ZD.Mg||0)/(v.ZD.l$||1)*1E3).toFixed(0));a=w=m+Number((a/w*1E3).toFixed(0))}else w=m=a,this.M4.has(e)||this.dM.add(e);var t=(Z=h.get(e))!=null?Z:0,f=this.timeline.U;Z=!1;if(f&&this.api.S("html5_ssap_clear_timeline_before_update")){if(f=this.Nl.get(e))f.start=m,f.end=w,Z=!0}else{if(f){var U=e;f=m;var C=w,K=t,nj=CX(this.timeline,U);if(nj!=null&&nj.length){K=h){this.aR.set(X,V);TX2(this,X,c);this.cH.set(X,(0,g.ta)());if(V=this.Nl.get(c))for(V=V.getId().split(","),V=g.r(V),d=V.next();!d.done;d=V.next())d=d.value,d!==c&&this.dM.has(d)&&(this.dM.delete(d),this.M4.add(d));this.xV();c=L.cW()/1E3;L=void 0;V=(L=g.EZ(this.api.j().experiments,"html5_ssap_skip_seeking_offset_ms"))!=null?L:0;this.api.S("html5_ssap_keep_media_on_finish_segment")?this.playback.seekTo(c+ +V/1E3,{Z2:!0}):this.playback.seekTo(c+V/1E3);this.yx?(this.api.Oy("ssap",{gpfreload:this.IZ}),fos(this)||(this.yx=!1),this.playback.cD(!1,!1,this.api.S("html5_ssap_keep_media_on_finish_segment"))):G&&this.playback.cD(!1,!1,this.api.S("html5_ssap_keep_media_on_finish_segment"));n&&this.api.playVideo(1,this.api.S("html5_ssap_keep_media_on_finish_segment"));return[X]}}}return[]}; +g.y.AE=function(){var X=this.timeline.J;if(!X)return 0;var c=X.Lm();X=g.r(X.J.values());for(var V=X.next();!V.done;V=X.next()){V=g.r(V.value);for(var G=V.next();!G.done;G=V.next())G=G.value,G.Lm()>c&&(c=G.Lm())}return c/1E3}; +g.y.Qg=function(){var X=this.playback.getCurrentTime()*1E3;var c=BXj(this,X);if(!c){var V=CX(this.timeline,this.IZ);if(V){V=g.r(V);for(var G=V.next();!G.done;G=V.next())G=G.value,G.cW()>X&&(c=G)}}return c&&c.getType()===1?c.cW()/1E3:0}; +g.y.getVideoData=function(X){if(X===2&&!this.SZ()){if(this.n$&&this.bW.has(this.n$))return this.bW.get(this.n$);this.api.Oy("ssap",{lpanf:""+IY(this)});return null}return C2S(this)}; +g.y.SZ=function(){var X=CX(this.timeline,this.IZ);return(X==null?0:X.length)?X[0].getType()===2:!1}; +g.y.aq=function(){var X=CX(this.timeline,this.IZ);return(X==null?0:X.length)?X[0].G:!1}; +g.y.seekTo=function(X,c){c=c===void 0?{}:c;var V=Kul(this,this.playback.getCurrentTime());this.playback.seekTo(X+V/1E3,c)}; +g.y.HU=function(X,c,V){return new g.AC(X,c,{id:V,namespace:"ssap",priority:9})}; +g.y.onCueRangeEnter=function(X){if(!this.kC.has(X.getId())){this.api.Oy("ssap",{oce:1,cpn:X.getId(),st:X.start,et:X.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.ws()||0).toFixed(3)});for(var c=X.getId().split(","),V=0;VV+1)for(G=V+1;G0?c:0}; +g.y.bJK=function(X){var c=this.bW.get(this.IZ);c&&this.playback.FZ(X-c.Pg/1E3,c.lengthSeconds,this.IZ)}; +g.y.R2=function(){this.api.j().YU()&&this.api.Oy("ssap",{di:""+this.IZ,dic:""+this.playback.getVideoData().clientPlaybackNonce});this.bW.clear();this.dM.clear();this.kC.clear();this.aR.clear();this.cH.clear();this.M4.clear();this.jH=[];gVl(this);this.kQ="";g.l5(this.events);g.I.prototype.R2.call(this)};g.E(qsD,g.I);g.y=qsD.prototype;g.y.onCueRangeEnter=function(X){if(this.J===this.app.Ey()){var c=this.Z.get(X);c?LOD(this,c.target,c.IC,X):this.Mi("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:X.toString()})}else if(c=this.G.find(function(n){return n.o1.pE===X})){var V=c.o1,G=V.target; +V=V.IC;G?LOD(this,G,V,X):nos(this,c.F6,V,X)}}; +g.y.onQueuedVideoLoaded=function(){var X=this.D;Lq(this);if(X){if(!nq(this,X)){var c=this.app.Ey();this.Mi("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:c==null?void 0:c.getVideoData().clientPlaybackNonce,ccpn:""+X.playerVars.cpn})}this.app.Ey().addCueRange(X.o1.pE)}}; +g.y.seekTo=function(X,c,V,G){X=X===void 0?0:X;c=c===void 0?{}:c;G=G===void 0?null:G;if(V===void 0?0:V)i6l(this,X,c);else{V=this.app.Ey()||null;var n=V===this.X?this.B:null;du(this,!1);this.G_=X;this.C=c;G!=null&&this.T.start(G);V&&(this.B=n||V.getPlayerState(),V.GO(),this.X=V)}}; +g.y.vE=function(X){g.QP(X,128)&&YyL(this)}; +g.y.isManifestless=function(){return av(this.J.getVideoData())}; +g.y.R2=function(){du(this,!1);HVO(this);g.I.prototype.R2.call(this)}; +g.y.Mi=function(X,c){this.J.Mi(new tm(X,c))}; +var X$1=0;var aj2="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.E(Yt,g.I);g.y=Yt.prototype;g.y.get=function(X){yT(this);var c=this.data.find(function(V){return V.key===X}); +return c?c.value:null}; +g.y.set=function(X,c,V){this.remove(X,!0);yT(this);X={key:X,value:c,expire:Infinity};V&&isFinite(V)&&(V*=1E3,X.expire=(0,g.ta)()+V);for(this.data.push(X);this.data.length>this.U;)(V=this.data.shift())&&jQ(this,V,!0);Ab(this)}; +g.y.remove=function(X,c){c=c===void 0?!1:c;var V=this.data.find(function(G){return G.key===X}); +V&&(jQ(this,V,c),g.XB(this.data,function(G){return G.key===X}),Ab(this))}; +g.y.removeAll=function(X){if(X=X===void 0?!1:X)for(var c=g.r(this.data),V=c.next();!V.done;V=c.next())jQ(this,V.value,X);this.data=[];Ab(this)}; +g.y.R2=function(){var X=this;g.I.prototype.R2.call(this);this.data.forEach(function(c){jQ(X,c,!0)}); +this.data=[]};g.E(Hn,g.I);Hn.prototype.Qo=function(X){if(X)return this.G.get(X)}; +Hn.prototype.R2=function(){this.J.removeAll();this.G.removeAll();g.I.prototype.R2.call(this)};g.P1A=wL(function(){var X=window.AudioContext||window.webkitAudioContext;try{return new X}catch(c){return c.name}});g.E(EoL,g.z);g.y=EoL.prototype;g.y.nF=function(){g.YD(this.element,g.OD.apply(0,arguments))}; +g.y.cE=function(){this.Ud&&(this.Ud.removeEventListener("focus",this.II),g.yj(this.Ud),this.Ud=null)}; +g.y.kh=function(){this.vl();var X=this.app.j();X.v5||this.nF("tag-pool-enabled");X.B&&this.nF(g.KF.HOUSE_BRAND);X.playerStyle==="gvn"&&(this.nF("ytp-gvn"),this.element.style.backgroundColor="transparent");X.G2&&(this.lk=g.Y_("yt-dom-content-change",this.resize,this));this.L(window,"orientationchange",this.resize,this);this.L(window,"resize",this.resize,this)}; +g.y.zb=function(X){g.M7(this.app.j());this.uM=!X;aB(this)}; +g.y.resize=function(){if(this.Ud){var X=this.Nm();if(!X.isEmpty()){var c=!g.rn(X,this.xK.getSize()),V=vol(this);c&&(this.xK.width=X.width,this.xK.height=X.height);X=this.app.j();(V||c||X.G2)&&this.app.DR.publish("resize",this.getPlayerSize())}}}; +g.y.sQ=function(X,c){this.updateVideoData(c)}; +g.y.updateVideoData=function(X){if(this.Ud){var c=this.app.j();iE&&(this.Ud.setAttribute("x-webkit-airplay","allow"),X.title?this.Ud.setAttribute("title",X.title):this.Ud.removeAttribute("title"));this.Ud.setAttribute("controlslist","nodownload");c.VB&&X.videoId&&(this.Ud.poster=X.xz("default.jpg"))}c=g.vJ(X,"yt:bgcolor");this.N5.style.backgroundColor=c?c:"";this.Yn=jP(g.vJ(X,"yt:stretch"));this.b1=jP(g.vJ(X,"yt:crop"),!0);g.ab(this.element,"ytp-dni",X.O5);this.resize()}; +g.y.setGlobalCrop=function(X){this.wZ=jP(X,!0);this.resize()}; +g.y.setCenterCrop=function(X){this.CR=X;this.resize()}; +g.y.GJ=function(){}; +g.y.getPlayerSize=function(){var X=this.app.j(),c=this.app.DR.isFullscreen(),V=X.externalFullscreen&&g.RT(X);if(c&&sE()&&!V)return new g.Ez(window.outerWidth,window.outerHeight);V=!isNaN(this.V3.width)&&!isNaN(this.V3.height);var G=this.app.j().S("kevlar_player_enable_squeezeback_fullscreen_sizing");if(c&&!V&&G)return new g.Ez(this.element.clientWidth,this.element.clientHeight);if(c||X.VX){if(window.matchMedia){X="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.R9&&this.R9.media=== +X||(this.R9=window.matchMedia(X));var n=this.R9&&this.R9.matches}if(n)return new g.Ez(window.innerWidth,window.innerHeight)}else if(V)return this.V3.clone();return new g.Ez(this.element.clientWidth,this.element.clientHeight)}; +g.y.Nm=function(){var X=this.app.j().S("enable_desktop_player_underlay"),c=this.getPlayerSize(),V=g.EZ(this.app.j().experiments,"player_underlay_min_player_width");return X&&this.FI&&c.width>V?(X=g.EZ(this.app.j().experiments,"player_underlay_video_width_fraction"),new g.Ez(Math.min(c.height*this.getVideoAspectRatio(),c.width*X),Math.min(c.height,c.width*X/this.getVideoAspectRatio()))):c}; +g.y.getVideoAspectRatio=function(){return isNaN(this.Yn)?Q1D(this):this.Yn}; +g.y.getVideoContentRect=function(X){var c=this.Nm();X=ZVs(this,c,this.getVideoAspectRatio(),X);return new g.jF((c.width-X.width)/2,(c.height-X.height)/2,X.width,X.height)}; +g.y.vF=function(X){this.FI=X;this.resize()}; +g.y.PC=function(){return this.Nz}; +g.y.onMutedAutoplayChange=function(){aB(this)}; +g.y.setInternalSize=function(X){g.rn(this.V3,X)||(this.V3=X,this.resize())}; +g.y.R2=function(){this.lk&&g.j_(this.lk);this.cE();g.z.prototype.R2.call(this)};g.y=k6D.prototype;g.y.click=function(X,c){this.elements.has(X);this.J.has(X);var V=g.tU();V&&X.visualElement&&g.jB(V,X.visualElement,c)}; +g.y.createClientVe=function(X,c,V,G){var n=this;G=G===void 0?!1:G;this.elements.has(X);this.elements.add(X);V=bvl(V);X.visualElement=V;var L=g.tU(),d=g.bz();L&&d&&(g.oa("combine_ve_grafts")?bI(m5(),V,d):g.Gx(g.qi)(void 0,L,d,V));c.addOnDisposeCallback(function(){n.elements.has(X)&&n.destroyVe(X)}); +G&&this.G.add(X)}; +g.y.createServerVe=function(X,c,V){var G=this;V=V===void 0?!1:V;this.elements.has(X);this.elements.add(X);c.addOnDisposeCallback(function(){G.destroyVe(X)}); +V&&this.G.add(X)}; +g.y.destroyVe=function(X){this.elements.has(X);this.elements.delete(X);this.U.delete(X);this.J.delete(X);this.G.delete(X)}; +g.y.mj=function(X,c){this.clientPlaybackNonce!==c&&(this.clientPlaybackNonce=c,Rr(m5(),X),ooO(this))}; +g.y.setTrackingParams=function(X,c){this.elements.has(X);c&&(X.visualElement=g.m3(c))}; +g.y.Ry=function(X,c,V){this.elements.has(X);c?this.J.add(X):this.J.delete(X);var G=g.tU(),n=X.visualElement;this.G.has(X)?G&&n&&(c?g.hy(G,[n]):g.Ay(G,[n])):c&&!this.U.has(X)&&(G&&n&&g.y0(G,n,void 0,V),this.U.add(X))}; +g.y.hasVe=function(X){return this.elements.has(X)};g.E(g.Wn,g.I);g.Wn.create=function(X,c,V,G){try{var n=typeof X==="string"?X:"player"+g.SD(X),L=k6[n];if(L){try{L.dispose()}catch(h){g.Ni(h)}k6[n]=null}var d=new g.Wn(X,c,V,G);d.addOnDisposeCallback(function(){k6[n]=null;d.El&&d.El()}); +return k6[n]=d}catch(h){throw g.Ni(h),(h&&h instanceof Error?h:Error(String(h))).stack;}}; +g.y=g.Wn.prototype;g.y.Zm=function(){return this.visibility}; +g.y.lE=function(X){var c=this.GF();if(X!==c){X.getVideoData().autonavState=c.getVideoData().autonavState;c.Ma(this.Uu,this);var V=c.getPlaybackRate();c.Et();this.jr.lE(X);X.setPlaybackRate(V);X.F1(this.Uu,this);OVO(this)}}; +g.y.iF=function(){this.VA||(this.VA=g.Yy(Ix(),QXU()));return this.VA}; +g.y.cE=function(X){if(this.mediaElement){this.Bw&&(this.events.Hd(this.Bw),this.Bw=null);g.l5(this.zo);var c=this.Ey();c&&c.cE(!0,!1,X);this.template.cE();try{this.S("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.e4()}catch(V){g.UQ(V)}this.mediaElement=null}}; +g.y.I1=function(X,c){if(X!==this.Ey()){this.logger.debug(function(){return"start set presenting player, type "+X.getPlayerType()+", vid "+X.getVideoData().videoId}); +var V=null,G=this.Ey();G&&(V=G.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),eq(this.qN,3),fq(this,"cuerangesremoved",G.F9()),this.CY&&!X.isGapless()&&G.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),G=X.Rx()&&G.Rx(),this.BP.sb("iv_s"),uL1(this,G));X.getPlayerType()===1&&this.lE(X);T5l(this,X);this.jr.I1(X);this.mediaElement&&X.setMediaElement(this.mediaElement);X.F1(this.CH,this);X.oM()?EZl(this,"setPresenting",!1):(this.sQ("newdata",X,X.getVideoData()), +V&&!g.aH(V,X.getPlayerState())&&this.Zj(new g.ES(X.getPlayerState(),V)),c=c&&this.S("html5_player_preload_ad_fix")&&X.getPlayerType()===1,X.TQ()&&!c&&this.sQ("dataloaded",X,X.getVideoData()),(c=(c=X.getVideoData().G)&&c.video)&&this.DR.DL("onPlaybackQualityChange",c.quality),this.Ey(),fq(this,"cuerangesadded",X.F9()),c=X.getPlayerState(),g.B(c,2)?UH2(this):g.B(c,8)?X.playVideo():X.DI()&&X.pauseVideo(),c=this.GF(),X.getPlayerType()===2&&(X.getVideoData().wq=c.getVideoData().clientPlaybackNonce),X.getPlayerType()!== +2||this.Jb()||(V=X.getVideoData(),c.NS(V.clientPlaybackNonce,V.Od||"",V.breakType||0,V.lX,V.videoId||"")),this.logger.debug("finish set presenting player"))}}; +g.y.yP=function(){if(this.GF()!==this.Ey()){var X=this.Ey();this.logger.debug(function(){return"release presenting player, type "+(X==null?void 0:X.getPlayerType())+", vid "+(X==null?void 0:X.getVideoData().videoId)}); +this.I1(this.GF())}}; +g.y.M_=function(){return this.jr}; +g.y.sM=function(X){if(X)if(X===1)X=this.GF();else if(this.getVideoData().enableServerStitchedDai&&X===2)X=this.getVideoData().enablePreroll?this.jr.sM(2)||this.Ey():this.Ey();else if(g.CW(this.getVideoData())&&X===2){if(X=this.S("html5_ssap_return_content_player_during_preroll"))if(X=this.AX)X=this.AX,X=X.IZ===""?!0:X.SZ();X=X?this.Ey():this.jr.sM(2)||this.Ey()}else X=this.jr.sM(X)||null;else X=this.Ey();return X}; +g.y.GF=function(){return this.jr.GF()}; +g.y.Ey=function(){return this.jr.Ey()}; +g.y.vU=Gt(50);g.y.a3y=function(){ZW(this)||(this.logger.debug("application playback ready"),this.x8(5))}; +g.y.HEK=function(X){if(!ZW(this)){this.logger.debug("playback ready");$Nl(this);var c=X.getPlayerState();X.DI()?this.pauseVideo():c.isOrWillBePlaying()&&this.playVideo()}}; +g.y.canPlayType=function(X){return gp(X)}; +g.y.j=function(){return this.qW}; +g.y.getVideoData=function(){return this.Ey().getVideoData()}; +g.y.vK=Gt(19);g.y.Vg=function(){return this.GF().getVideoData()}; +g.y.getVideoLoadedFraction=function(X){return(X=this.sM(X))?X.getVideoLoadedFraction():this.jr.J.getVideoLoadedFraction()}; +g.y.CS=function(){return this.template}; +g.y.X2=function(){return this.qN}; +g.y.X9=function(){return this.BP}; +g.y.gE=function(X){var c=this.sM(1);c&&c.ZP(X)}; +g.y.Iz=function(){var X=this.qN.Iz();this.DR.publish("videoStatsPingCreated",X);return X}; +g.y.getVolume=function(){return Math.round(this.DR.getVolume())}; +g.y.isMuted=function(){return this.DR.isMuted()}; +g.y.ZW=function(){if(this.GF()===this.Ey()&&this.vP)return this.vP.postId}; +g.y.mJ_=function(){var X=this;this.S("use_rta_for_player")||(g.OZ(this.qW)?g.LW(this.qW,g.T2(this.getVideoData())).then(function(c){N$(Ix(),c);Om1(X.getVideoData(),X.qW,X.iF())}):Om1(this.getVideoData(),this.qW,this.iF()))}; +g.y.uU=function(X){this.DR.publish("poTokenVideoBindingChange",X)}; +g.y.Pk=function(X){this.DR.publish("d6de4videobindingchange",X)}; +g.y.CZ=function(){this.VN&&this.VN.CZ()}; +g.y.Gl=function(X){this.VN=X}; +g.y.G$=function(X){if(X===1){this.BP.tick("vr");var c=this.Ey();c.Fu();mnl(this.BP,c.getVideoData(),abU(this));Wkj(this.qN)}c=this.qW;(Vb(c)&&c.D||g.fL(c))&&(this.Jb()||this.DR.DL("onAdStateChange",X))}; +g.y.setLoopVideo=function(X){var c=this.Ey();c===this.GF()&&c.Kj()!==X&&(c.setLoop(X),this.DR.z_("onLoopChange",X))}; +g.y.getLoopVideo=function(){return this.Ey().Kj()}; +g.y.setLoopRange=function(X){var c=!1;!!this.vP!==!!X?c=!0:this.vP&&X&&(c=this.vP.startTimeMs!==X.startTimeMs||this.vP.endTimeMs!==X.endTimeMs||this.vP.postId!==X.postId||this.vP.type!==X.type);if(c){(c=this.Ey())&&nQ(c.getVideoData())&&c.Oy("slr",{et:(X==null?void 0:X.endTimeMs)||-1});c=this.GF();c.EH("applooprange");if(X){var V=new g.AC(X.startTimeMs,X.endTimeMs,{id:"looprange",namespace:"applooprange"});c.addCueRange(V)}else{this.Vg().clipConfig=void 0;var G;((V=this.vP)==null?void 0:V.type)!== +"repeatChapter"||isNaN(Number((G=this.vP)==null?void 0:G.loopCount))||(V={loopCount:String(this.vP.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.a0("repeatChapterLoopEvent",V))}this.vP=X;this.DR.z_("onLoopRangeChange",X||void 0);this.GF()===this.Ey()&&(this.gj(),c.Gh())}}; +g.y.getLoopRange=function(){return this.vP}; +g.y.gj=function(){var X="",c=this.GF();this.vP?c!==this.Ey()?X="pnea":Sys(this,c.getCurrentTime())&&(this.vP.loopCount=0,X="ilr"):X="nlr";var V=this.Ey();if(V&&nQ(V.getVideoData()))if(this.S("html5_gapless_log_loop_range_info")){var G,n;V.Oy("slrre",{rej:X,ct:c.getCurrentTime(),lst:(G=this.vP)==null?void 0:G.startTimeMs,let:(n=this.vP)==null?void 0:n.endTimeMs})}else V.Oy("slrre",{});X||c92(this)}; +g.y.setPlaybackRate=function(X,c){if(!isNaN(X)){X=fjl(this,X);var V=this.GF();V.getPlaybackRate()!==X&&(V.setPlaybackRate(X),c&&!this.qW.X&&g.pv("yt-player-playback-rate",X),this.DR.DL("onPlaybackRateChange",X))}}; +g.y.getCurrentTime=function(X,c,V){c=c===void 0?!0:c;if(this.getPresentingPlayerType()===3)return this.jr.ew.getCurrentTime();var G=X===2&&this.getVideoData().enableServerStitchedDai,n=g.CW(this.getVideoData());X=G||n?this.Ey():this.sM(X);if(!X)return this.jr.J.getCurrentTime();if(n&&this.AX)return c=this.AX,X=X.getCurrentTime(),V?V=cn(c,V):(V=Kul(c,X),V=X-V/1E3),V;if(c){if(G&&this.jQ&&(V=this.jQ.NW/1E3,V!==0))return V;V=QT(this,X);return RB(this,V.getCurrentTime(),V)}G&&this.jQ?(V=this.jQ,X=X.getCurrentTime(), +V=(V=Wuw(V,X*1E3))?X-V.start/1E3:X):V=X.getCurrentTime();return V}; +g.y.QX=function(){var X=this.sM();if(!X)return this.jr.J.QX();X=QT(this,X);return RB(this,X.QX(),X)}; +g.y.getDuration=function(X,c){c=c===void 0?!0:c;var V=this.getVideoData(),G=X===2&&V.enableServerStitchedDai,n=g.CW(V);var L=G||n?this.Ey():this.sM(X);if(!L)return this.jr.J.getDuration();if(V.hasProgressBarBoundaries()&&!G&&!n){var d,h=Number((d=V.progressBarStartPosition)==null?void 0:d.utcTimeMillis),A;V=Number((A=V.progressBarEndPosition)==null?void 0:A.utcTimeMillis);if(!isNaN(h)&&!isNaN(V))return(V-h)/1E3}if(n&&this.AX)return c=sf1(this.AX,this.AX.bV()),X===1&&c===0?L.getDuration():c;if(c)return L= +ru(this,L),RB(this,L.getDuration(),L);G&&this.jQ?(X=this.jQ,L=L.getCurrentTime(),L=(L=w_2(X,L*1E3))?L.durationMs/1E3:0):L=L.getDuration();return L}; +g.y.Tm=function(X){var c=this.sM(X);return c?this.Jb(c)?(c=ru(this,c),c.Tm()-c.getCurrentTime()+this.getCurrentTime(X)):c.Tm():this.jr.J.Tm()}; +g.y.kE=function(){return this.k8}; +g.y.addPlayerResponseForAssociation=function(X){this.AX&&this.AX.addPlayerResponseForAssociation(X)}; +g.y.finishSegmentByCpn=function(X,c,V){return this.AX?this.AX.finishSegmentByCpn(X,c,V):[]}; +g.y.kh=function(){this.template.kh();var X=this.DR;X.state.element=this.template.element;var c=X.state.element,V;for(V in X.state.J)X.state.J.hasOwnProperty(V)&&(c[V]=X.state.J[V]);(X=sI2(this.template.element))&&this.events.L(this.template,X,this.onFullscreenChange);this.events.L(window,"resize",this.jLK)}; +g.y.getDebugText=function(X){var c=this.GF().J1(X),V=this.Ey(),G=this.GF();if(V&&V!==G){V=V.J1(X);G=g.r(Object.keys(V));for(var n=G.next();!n.done;n=G.next())n=n.value,c["ad"+n]=V[n];if(X){V=c;G={};if(n=P1(document,"movie_player"))G.bounds=n.getBoundingClientRect(),G["class"]=n.className;n={};var L=g.Du("video-ads");L?(ZJL(L,n),n.html=L.outerHTML):n.missing=1;L={};var d=g.Du("videoAdUiSkipContainer"),h=g.Du("ytp-ad-skip-button-container"),A=g.Du("ytp-skip-ad-button"),Y=d||h||A;Y?(ZJL(Y,L),L.ima=d? +1:0,L.bulleit=h?1:0,L.component=A?1:0):L.missing=1;G=JSON.stringify({player:G,videoAds:n,skipButton:L});V.ad_skipBtnDbgInfo=G}}X&&this.mediaElement&&(c["0sz"]=""+(+Qv(this.mediaElement.getSize())===0),c.op=this.mediaElement.xI("opacity"),V=this.mediaElement.Ia().y+this.mediaElement.getSize().height,c.yof=""+(+V<=0),c.dis=this.mediaElement.xI("display"));X&&((X=(0,g.xR)())&&(c.gpu=X),(X=this.qW.playerStyle)&&(c.ps=X),this.qW.YO&&(c.webview=1));c.debug_playbackQuality=this.DR.getPlaybackQuality(1); +c.debug_date=(new Date).toString();c.origin=window.origin;c.timestamp=Date.now();delete c.uga;delete c.q;return JSON.stringify(c,null,2)}; +g.y.getFeedbackProductData=function(){var X={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.j().experiments.experimentIds.join(", "),player_release:Vl[50]},c=this.getPlayerStateObject().oP;c&&(X.player_error_code=c.errorCode,X.player_error_details=JSON.stringify(c.errorDetail));return X}; +g.y.getPresentingPlayerType=function(X){if(this.appState===1)return 1;if(ZW(this))return 3;var c;if(X&&((c=this.jQ)==null?0:c.SZ(this.getCurrentTime())))return 2;var V;return g.CW(this.getVideoData())&&((V=this.AX)==null?0:V.SZ())?2:this.Ey().getPlayerType()}; +g.y.aq=function(){return g.CW(this.getVideoData())&&this.AX?this.AX.aq():!1}; +g.y.getPlayerStateObject=function(X){return this.getPresentingPlayerType()===3?this.jr.ew.getPlayerState():this.sM(X).getPlayerState()}; +g.y.getAppState=function(){return this.appState}; +g.y.zk=function(X){switch(X.type){case "loadedmetadata":this.EO.start();X=g.r(this.rE);for(var c=X.next();!c.done;c=X.next())c=c.value,jgl(this,c.id,c.HmS,c.xmO,void 0,!1);this.rE=[];break;case "loadstart":this.BP.sb("gv");break;case "progress":case "timeupdate":WZ(X.target.q$())>=2&&this.BP.sb("l2s");break;case "playing":g.Xg&&this.EO.start();if(g.OZ(this.qW))X=!1;else{var V=this.Ey();c=g.ON(this.X2());X=this.mediaElement.xI("display")==="none"||Qv(this.mediaElement.getSize())===0;var G=$t(this.template), +n=V.getVideoData();V=g.uG(this.qW);n=LQ(n);c=!G||c||V||n||this.qW.o2;X=X&&!c}X&&(X=this.Ey(),X.zD(),this.getVideoData().G2||(this.getVideoData().G2=1,this.CB(),X.playVideo()))}}; +g.y.onLoadProgress=function(X,c){this.DR.hT("onLoadProgress",c)}; +g.y.xNS=function(){this.DR.publish("playbackstalledatstart")}; +g.y.Ru=function(X,c){this.DR.publish("sabrCaptionsDataLoaded",X,c)}; +g.y.qNl=function(X){var c;(c=this.Ey())==null||c.jE(X)}; +g.y.ocv=function(X){var c;(c=this.Ey())==null||c.fG(X)}; +g.y.onVideoProgress=function(X,c){X=QT(this,X.y$);c=RB(this,X.getCurrentTime(),X);this.DR.DL("onVideoProgress",c);this.qW.xo&&y9j(this,this.visibility.eU())&&this.pauseVideo()}; +g.y.onAutoplayBlocked=function(){this.DR.DL("onAutoplayBlocked");var X,c=(X=this.Ey())==null?void 0:X.getVideoData();c&&(c.RQ=!0);this.S("embeds_enable_autoplay_and_visibility_signals")&&g.RT(this.qW)&&(X={autoplayBrowserPolicy:sM(),autoplayIntended:CF(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.a0("embedsAutoplayStatusChanged",X))}; +g.y.e6W=function(){this.DR.publish("progresssync")}; +g.y.x6y=function(){this.DR.hT("onPlaybackPauseAtStart")}; +g.y.W7v=function(X){if(this.getPresentingPlayerType()===1){g.QP(X,1)&&!g.B(X.state,64)&&this.Vg().isLivePlayback&&this.GF().isAtLiveHead()&&this.DR.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.QP(X,2)){if(this.vP&&this.vP.endTimeMs>=(this.getDuration()-1)*1E3){c92(this);return}UH2(this)}if(g.B(X.state,128)){var c=X.state;this.cancelPlayback(5);c=c.oP;JSON.stringify({errorData:c,debugInfo:this.getDebugText(!0)});this.DR.DL("onError",zXl(c.errorCode));this.DR.hT("onDetailedError",{errorCode:c.errorCode, +errorDetail:c.errorDetail,message:c.errorMessage,messageKey:c.wr,cpn:c.cpn});(0,g.ta)()-this.qW.bH>6048E5&&this.DR.hT("onReloadRequired")}c={};if(X.state.isPlaying()&&!X.state.isBuffering()&&!sr("pbresume","ad_to_video")&&sr("_start","ad_to_video")){var V=this.getVideoData();c.clientPlaybackNonce=V.clientPlaybackNonce;V.videoId&&(c.videoId=V.videoId);g.Bh(c,"ad_to_video");zh("pbresume",void 0,"ad_to_video");Wkj(this.qN)}this.DR.publish("applicationplayerstatechange",X)}}; +g.y.Zj=function(X){this.getPresentingPlayerType()!==3&&this.DR.publish("presentingplayerstatechange",X)}; +g.y.vE=function(X){EB(this,WS(X.state));g.B(X.state,1024)&&this.DR.isMutedByMutedAutoplay()&&(Jb(this,{muted:!1,volume:this.g1.volume},!1),mk(this,!1))}; +g.y.CV=function(X,c,V){X==="newdata"&&OVO(this);this.DR.publish("applicationvideodatachange",X,V)}; +g.y.Kx=function(X,c){this.DR.hT("onPlaybackAudioChange",this.DR.getAudioTrack().zF.name);this.DR.publish("internalaudioformatchange",this.DR.getAudioTrack().zF.id,c)}; +g.y.Ur=function(X){var c=this.Ey().getVideoData();X===c&&this.DR.DL("onPlaybackQualityChange",X.G.video.quality)}; +g.y.GT=function(){var X=this.jr.sM(2);if(X){var c=X.getVideoData();X=X.xN();var V;(V=this.Ey())==null||V.Oy("ssdai",{cleanaply:1,acpn:c==null?void 0:c.clientPlaybackNonce,avid:c.videoId,ccpn:X,sccpn:this.Vg().clientPlaybackNonce===X?1:0,isDai:this.Vg().enableServerStitchedDai?1:0});delete this.jr.U[2]}}; +g.y.onVideoDataChange=function(X,c,V){this.sQ(X,c.y$,V)}; +g.y.sQ=function(X,c,V){this.Ey();this.logger.debug(function(){return"on video data change "+X+", player type "+c.getPlayerType()+", vid "+V.videoId}); +this.qW.YU()&&c.Oy("vdc",{type:X,vid:V.videoId||"",cpn:V.clientPlaybackNonce||""});c===this.GF()&&(this.qW.SU=V.oauthToken);if(c===this.GF()){this.getVideoData().enableServerStitchedDai&&!this.jQ?(this.GF().Oy("sdai",{initSstm:1}),this.jQ=this.S("html5_enable_ssdai_transition_with_only_enter_cuerange")?new b6w(this.DR,this.qW,this.GF(),this):new g.uR(this.DR,this.qW,this.GF(),this)):!this.getVideoData().enableServerStitchedDai&&this.jQ&&(this.jQ.dispose(),this.jQ=null);var G,n;!g.CW(this.getVideoData())|| +X!=="newdata"&&X!=="dataloaded"||this.getVideoData().clientPlaybackNonce===((G=this.k8.J)==null?void 0:(n=G.getVideoData())==null?void 0:n.clientPlaybackNonce)?!g.CW(this.getVideoData())&&this.AX&&(this.AX.dispose(),this.AX=null):(nVs(this.k8),this.S("html5_ssap_cleanup_ad_player_on_new_data")&&this.GT(),G=Up(this.k8,1,0,this.getDuration(1)*1E3,this.getVideoData()),this.k8.enqueue(G,!0),Nn(this.k8,0,this.getDuration(1)*1E3,[G]),LuS(this.k8,this.getVideoData().clientPlaybackNonce,[G]),this.AX&&(this.AX.dispose(), +this.AX=null),this.AX=new p_s(this.DR,this.k8,this.GF()),this.jr.GF().eq(this.AX))}if(X==="newdata")this.logger.debug("new video data, destroy modules"),eq(this.qN,2),this.DR.publish("videoplayerreset",c);else{if(!this.mediaElement)return;X==="dataloaded"&&(this.GF()===this.Ey()?(TD(V.Fh,V.Rf),KOw(this)):zYs(this));c.getPlayerType()===1&&(this.qW.QK&&QgL(this),this.getVideoData().isLivePlayback&&!this.qW.MB&&this.XP("html5.unsupportedlive",2,"DEVICE_FALLBACK"),V.isLoaded()&&((V0D(V)||this.getVideoData().vL)&& +this.DR.publish("legacyadtrackingpingchange",this.getVideoData()),V.hasProgressBarBoundaries()&&Gpt(this)));this.DR.publish("videodatachange",X,V,c.getPlayerType())}this.DR.DL("onVideoDataChange",{type:X,playertype:c.getPlayerType()});this.gj();(G=V.Zl)?this.xF.mj(G,V.clientPlaybackNonce):ooO(this.xF)}; +g.y.n9=function(){vn(this,null);this.DR.hT("onPlaylistUpdate")}; +g.y.D6c=function(X){delete this.xC[X.getId()];this.GF().removeCueRange(X);a:{X=this.getVideoData();var c,V,G,n,L,d,h,A,Y,H,a=((c=X.QK)==null?void 0:(V=c.contents)==null?void 0:(G=V.singleColumnWatchNextResults)==null?void 0:(n=G.autoplay)==null?void 0:(L=n.autoplay)==null?void 0:L.sets)||((d=X.QK)==null?void 0:(h=d.contents)==null?void 0:(A=h.twoColumnWatchNextResults)==null?void 0:(Y=A.autoplay)==null?void 0:(H=Y.autoplay)==null?void 0:H.sets);if(a)for(c=g.r(a),V=c.next();!V.done;V=c.next())if(V= +V.value,n=G=void 0,V=V.autoplayVideo||((G=V.autoplayVideoRenderer)==null?void 0:(n=G.autoplayEndpointRenderer)==null?void 0:n.endpoint),G=g.T(V,g.qV),L=n=void 0,V!=null&&((n=G)==null?void 0:n.videoId)===X.videoId&&((L=G)==null?0:L.continuePlayback)){X=V;break a}X=null}(c=g.T(X,g.qV))&&this.DR.z_("onPlayVideo",{sessionData:{autonav:"1",itct:X==null?void 0:X.clickTrackingParams},videoId:c.videoId,watchEndpoint:c})}; +g.y.x8=function(X){var c=this;X!==this.appState&&(this.logger.debug(function(){return"app state change "+c.appState+" -> "+X}),X===2&&this.getPresentingPlayerType()===1&&(EB(this,-1),EB(this,5)),this.appState=X,this.DR.publish("appstatechange",X))}; +g.y.XP=function(X,c,V,G,n){this.GF().eX(X,c,V,G,n)}; +g.y.W3=function(X,c){this.GF().handleError(new tm(X,c))}; +g.y.isAtLiveHead=function(X,c){c=c===void 0?!1:c;var V=this.sM(X);if(!V)return this.jr.J.isAtLiveHead();X=ru(this,V);V=QT(this,V);return X!==V?X.isAtLiveHead(RB(this,V.getCurrentTime(),V),!0):X.isAtLiveHead(void 0,c)}; +g.y.LK=function(){var X=this.sM();return X?ru(this,X).LK():this.jr.J.LK()}; +g.y.seekTo=function(X,c,V,G,n){c=c!==!1;if(G=this.sM(G))this.appState===2&&oB(this),this.Jb(G)?bs(this)?this.jQ.seekTo(X,{seekSource:n},c,V):this.nM.seekTo(X,{seekSource:n},c,V):g.CW(this.getVideoData())&&this.AX?this.AX.seekTo(X,{NC:!c,jJ:V,Z3:"application",seekSource:n}):G.seekTo(X,{NC:!c,jJ:V,Z3:"application",seekSource:n})}; +g.y.seekBy=function(X,c,V,G){this.seekTo(this.getCurrentTime()+X,c,V,G)}; +g.y.A8=function(){this.DR.DL("SEEK_COMPLETE")}; +g.y.Vv=function(){this.DR.z_("onAbnormalityDetected")}; +g.y.onSnackbarMessage=function(X){this.DR.z_("onSnackbarMessage",X)}; +g.y.h8R=function(X,c){X=X.y$;var V=X.getVideoData();if(this.appState===1||this.appState===2)V.startSeconds=c;this.appState===2?g.B(X.getPlayerState(),512)||oB(this):this.DR.DL("SEEK_TO",c)}; +g.y.onAirPlayActiveChange=function(){this.DR.publish("airplayactivechange");this.qW.S("html5_external_airplay_events")&&this.DR.hT("onAirPlayActiveChange",this.DR.Gy())}; +g.y.onAirPlayAvailabilityChange=function(){this.DR.publish("airplayavailabilitychange");this.qW.S("html5_external_airplay_events")&&this.DR.hT("onAirPlayAvailabilityChange",this.DR.L4())}; +g.y.showAirplayPicker=function(){var X;(X=this.Ey())==null||X.ZG()}; +g.y.qD=function(){this.DR.publish("beginseeking")}; +g.y.RI=function(){this.DR.publish("endseeking")}; +g.y.getStoryboardFormat=function(X){return(X=this.sM(X))?ru(this,X).getStoryboardFormat():this.jr.J.getStoryboardFormat()}; +g.y.a$=function(X){return(X=this.sM(X))?ru(this,X).getVideoData().a$():this.jr.J.a$()}; +g.y.Jb=function(X){X=X||this.Ey();var c=!1;if(X){X=X.getVideoData();if(bs(this))X=X===this.jQ.playback.getVideoData();else a:if(c=this.nM,X===c.J.getVideoData()&&c.G.length)X=!0;else{c=g.r(c.G);for(var V=c.next();!V.done;V=c.next())if(X.Gm===V.value.Gm){X=!0;break a}X=!1}c=X}return c}; +g.y.Kt=function(X,c,V,G,n,L,d){this.logger.debug(function(){return"Adding video to timeline id="+X.video_id+"\n lengthMs="+G+" enterTimeMs="+n}); +var h="",A=bs(this),Y;(Y=this.Ey())==null||Y.Oy("appattl",{sstm:this.jQ?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:A});h=A?$WS(this.jQ,X,c,V,G,n,L,d):G61(this.nM,X,V,G,n,L);this.logger.debug(function(){return"Video added to timeline id="+X.video_id+" timelinePlaybackId="+h}); +return h}; +g.y.r8=function(X,c,V,G,n,L,d){if(bs(this)){var h=$WS(this.jQ,X,c,V,G,n,L,d);this.logger.debug(function(){return"Remaining video added to timeline id="+X.video_id+" timelinePlaybackId="+h})}return""}; +g.y.hF=function(X){var c;(c=this.jQ)==null||c.hF(X)}; +g.y.A4=function(X,c){X=X===void 0?-1:X;c=c===void 0?Infinity:c;bs(this)||HVO(this.nM,X,c)}; +g.y.xP=function(X,c,V){if(bs(this)){var G=this.jQ,n=G.oZ.get(X);n?(V===void 0&&(V=n.F6),n.durationMs=c,n.F6=V):G.qY("Invalid_timelinePlaybackId_"+X+"_specified")}else{G=this.nM;n=null;for(var L=g.r(G.G),d=L.next();!d.done;d=L.next())if(d=d.value,d.Gm===X){n=d;break}n?(V===void 0&&(V=n.F6),j1s(G,n,c,V)):VT(G,"InvalidTimelinePlaybackId timelinePlaybackId="+X)}}; +g.y.enqueueVideoByPlayerVars=function(X,c,V,G){V=V===void 0?Infinity:V;G=G===void 0?"":G;this.Jb();X=new g.z_(this.qW,X);G&&(X.Gm=G);nZl(this,X,c,V)}; +g.y.queueNextVideo=function(X,c,V,G,n){V=V===void 0?NaN:V;X=this.preloadVideoByPlayerVars(X,c===void 0?1:c,V,G===void 0?"":G,n===void 0?"":n);c=this.Ey();X&&c&&(this.S("html5_check_queue_on_data_loaded")?this.j().supportsGaplessShorts()&&c.getVideoData().T&&(V=this.MV,G=this.CY.D,V.X!==X&&(V.G=c,V.X=X,V.U=1,V.J=X.getVideoData(),V.Z=G,V.J.isLoaded()?V.B():V.J.subscribe("dataloaded",V.B,V))):(V=Mll(c,X,this.CY.D),V!=null?(c.Oy("sgap",V),c.getVideoData().T&&c.vN(!1)):(X=X.getVideoData(),c=this.MV,c.J!== +X&&(c.J=X,c.U=1,X.isLoaded()?c.D():c.J.subscribe("dataloaded",c.D,c)))))}; +g.y.Rs=function(X,c,V,G){var n=this;V=V===void 0?0:V;G=G===void 0?0:G;var L=this.Ey();L&&ru(this,L).Vt();KPD(this.CY,X,c,V,G).then(function(){n.DR.hT("onQueuedVideoLoaded")},function(){})}; +g.y.uF=function(){return this.CY.uF()}; +g.y.U9=function(X){return this.CY.J===X.y$}; +g.y.clearQueue=function(X,c){X=X===void 0?!1:X;c=c===void 0?!1:c;this.logger.debug("Clearing queue");this.CY.clearQueue(X,c)}; +g.y.loadVideoByPlayerVars=function(X,c,V,G,n,L){c=c===void 0?1:c;var d=this.GF();if(c===2&&this.Vg().enableServerStitchedDai&&d&&!d.Gf())return d.Oy("lvonss",{vid:(X==null?void 0:X.videoId)||"",ptype:c}),!1;var h=!1;d=new g.z_(this.qW,X);d.reloadPlaybackParams=L;g.q7(this.qW)&&!d.Tx&&Hr(this.BP);var A;L=this.BP;var Y=(A=d.YO)!=null?A:"";L.timerName=Y;this.BP.vD("pl_i");this.S("web_player_early_cpn")&&d.clientPlaybackNonce&&this.BP.infoGel({clientPlaybackNonce:d.clientPlaybackNonce});if(mIt(d).supportsVp9Encoding=== +!1){var H;(H=this.Ey())==null||H.Oy("noVp9",{})}if(this.j().supportsGaplessShorts()){A=Cgj(this.CY,d,c);if(A==null){EB(this,-1);X=this.CY;X.app.j().S("html5_gapless_new_slr")?qyl(X.app,"gaplessshortslooprange"):X.app.setLoopRange(null);X.app.getVideoData().jl=!0;var a;(a=X.J)==null||a.nI();var W;(W=X.J)==null||W.kS();V={Z3:"gapless_to_next_video",seekSource:60};G=g.EZ(X.app.j().experiments,"html5_gapless_seek_offset");var w;(w=X.app.Ey())==null||w.seekTo(seS(X)+G,V);if(!X.app.getPlayerStateObject(c).isPlaying()){var F; +(F=X.app.Ey())==null||F.playVideo(!0)}if(X.app.j().S("html5_short_gapless_unlisten_after_seek")){var Z;(Z=X.app.Ey())==null||Z.Qx()}X.B();return!0}w=this.S("html5_shorts_gapless_preload_fallback");F=this.CY.J;w&&F&&!F.vC()&&(Z=F.getVideoData(),Z=this.qW.S("html5_autonav_autoplay_in_preload_key")?OB(this,c,Z):ls(this,c,Z.videoId,Z.Gm),this.jr.G.set(Z,F,3600));this.CY.clearQueue(w);var v;(v=this.Ey())==null||v.Oy("sgap",{f:A})}if(n){for(;d.V6.length&&d.V6[0].isExpired();)d.V6.shift();h=d.V6.length- +1;h=h>0&&n.G(d.V6[h])&&n.G(d.V6[h-1]);d.V6.push(n)}V||(X&&Oaj(X)?(sT(this.qW)&&!this.cS&&(X.fetch=0),vn(this,X)):this.playlist&&vn(this,null),X&&(this.cS=ye(!1,X.external_list)));this.DR.publish("loadvideo");c=this.fP(d,c,G);h&&this.XP("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+d.V6.join()).replace(/[;:,]/g,"_"));return c}; +g.y.preloadVideoByPlayerVars=function(X,c,V,G,n){c=c===void 0?1:c;V=V===void 0?NaN:V;G=G===void 0?"":G;n=n===void 0?"":n;var L="";if(this.qW.S("html5_autonav_autoplay_in_preload_key"))L=dNl(this,c,X,n);else{var d=He(X);L=ls(this,c,d,n)}if(this.jr.G.get(L))return this.logger.debug(function(){return"already preloaded "+L}),null; +X=new g.z_(this.qW,X);n&&(X.Gm=n);return LrS(this,X,c,V,G)}; +g.y.setMinimized=function(X){this.visibility.setMinimized(X);(X=Etl(this.qN))&&(this.isMinimized()?X.load():X.unload());this.DR.publish("minimized")}; +g.y.setInline=function(X){this.visibility.setInline(X)}; +g.y.setInlinePreview=function(X){this.visibility.setInline(X)}; +g.y.Sq=function(X){hZs(this,X)||this.visibility.Sq(X)}; +g.y.setSqueezeback=function(X){this.visibility.setSqueezeback(X)}; +g.y.zq=function(){var X,c=(X=this.mediaElement)==null?void 0:X.WP();c&&(this.qW.EY&&EM(WV(function(){return document.exitFullscreen()}),function(){}),EM(WV(function(){return ve(c)}),function(){}))}; +g.y.OJO=function(){this.mediaElement.WP();this.mediaElement.WP().webkitPresentationMode==="picture-in-picture"?this.Sq(!0):this.Sq(!1)}; +g.y.togglePictureInPicture=function(){var X=this.Ey();X&&X.togglePictureInPicture()}; +g.y.fP=function(X,c,V){c=c===void 0?1:c;this.logger.debug(function(){return"start load video, id "+X.videoId+", type "+c}); +sr("_start",this.BP.timerName)||g.Gx(pn)(void 0,this.BP.timerName);var G=!1,n=DHj(this,c,X,!1);n?(G=!0,X.dispose()):(n=wu(this,c,X,!0,V),(this.S("html5_onesie")||this.S("html5_load_before_stop"))&&n.yJ()&&n.mX(),this.EO.stop(),c===1&&c!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,c),this.I1(n));n===this.GF()&&(this.qW.SU=X.oauthToken);if(!n.yJ())return!1;if(n===this.GF())return this.x8(1),V=oB(this),G&&this.S("html5_player_preload_ad_fix")&&n.getPlayerType()===1&& +n.TQ()&&this.sQ("dataloaded",n,n.getVideoData()),V;n.Jy();return!0}; +g.y.cueVideoByPlayerVars=function(X,c){var V=this;c=c===void 0?1:c;var G=this.GF();if(this.Vg().enableServerStitchedDai&&G&&!G.Gf()&&X&&Object.keys(X).length>0)G.Oy("qvonss",{vid:(X==null?void 0:X.videoId)||"",ptype:c});else if(X&&Oaj(X))if(this.yl=!0,vn(this,X),(X=g.aM(this.playlist))&&X.d$())gu(this,X,c);else this.playlist.onReady(function(){kt(V)}); +else{c||(c=this.getPresentingPlayerType());c===1&&this.n9();G=new g.z_(this.qW,X);var n=g.RT(this.qW)&&!this.qW.A7&&c===1&&!G.isAd()&&!G.Od;this.DR.publish("cuevideo");n?(this.Ey().getVideoData().loading=!0,NFD(G,X?X:{}).then(function(L){gu(V,L,c)}),G.dispose()):gu(this,G,c)}}; +g.y.Tf=function(X,c,V,G,n,L,d){if(!X&&!V)throw Error("Playback source is invalid");if(tq(this.qW)||g.bL(this.qW))return c=c||{},c.lact=Ox(),c.vis=this.DR.getVisibilityState(),this.DR.z_("onPlayVideo",{videoId:X,watchEndpoint:L,sessionData:c,listId:V}),!1;baU(this.BP);this.BP.reset();X={video_id:X};G&&(X.autoplay="1");G&&(X.autonav="1");L&&(X.player_params=L.playerParams);d&&(X.oauth_token=d);V?(X.list=V,this.loadPlaylist(X)):this.loadVideoByPlayerVars(X,1);return!0}; +g.y.cuePlaylist=function(X,c,V,G){this.yl=!0;A9U(this,X,c,V,G)}; +g.y.loadPlaylist=function(X,c,V,G){this.yl=!1;A9U(this,X,c,V,G)}; +g.y.OL=function(){return this.DR.isMutedByMutedAutoplay()?!1:this.getPresentingPlayerType()===3?!0:!(!this.playlist||!this.playlist.Tz())}; +g.y.hW=Gt(13); +g.y.nextVideo=function(X,c){var V=g.X2(this.GF().getVideoData());g.gC(this.DR)&&V?this.Tf(V.videoId,c?V.sE:V.sessionData,V.playlistId,c,void 0,V.iz||void 0):this.cS?this.DR.hT("onPlaylistNext"):this.getPresentingPlayerType()===3?Rx(this.qN).nextVideo():!this.playlist||sT(this.qW)&&!this.DR.isFullscreen()||(this.playlist.Tz(X)&&gXD(this.playlist,lMD(this.playlist)),this.playlist.loaded?(X=c&&this.qW.S("html5_player_autonav_logging"),c&&this.DR.publish("playlistautonextvideo"),this.fP(g.aM(this.playlist,void 0, +c,X),1)):this.yl=!1)}; +g.y.previousVideo=function(X){this.cS?this.DR.hT("onPlaylistPrevious"):this.getPresentingPlayerType()===3?Rx(this.qN).PY():!this.playlist||sT(this.qW)&&!this.DR.isFullscreen()||(this.playlist.EW(X)&&gXD(this.playlist,MY2(this.playlist)),this.playlist.loaded?this.fP(g.aM(this.playlist),1):this.yl=!1)}; +g.y.playVideoAt=function(X){this.cS?this.DR.hT("onPlaylistIndex",X):this.playlist&&(this.playlist.loaded?this.fP(g.aM(this.playlist,X),1):this.yl=!1,gXD(this.playlist,X))}; +g.y.getPlaylist=function(){return this.playlist}; +g.y.Nf=Gt(25);g.y.k2y=function(X){this.DR.DL("onCueRangeEnter",X.getId())}; +g.y.F7W=function(X){this.DR.DL("onCueRangeExit",X.getId())}; +g.y.Kn=function(){var X=g.kg(this.X2());X&&X.Kn()}; +g.y.yd=function(X,c,V){var G=this.sM(c);if(G){var n=this.Vg();if(g.CW(n)){if(this.AX)if(this.S("html5_ssap_enable_cpn_triggered_media_end")&&G.getPlayerType()===2&&this.AX.SZ()&&(G=this.GF()),c===1)for(var L=Mm(this.AX,n.clientPlaybackNonce),d=g.r(X),h=d.next();!h.done;h=d.next())h=h.value,h.start+=L,h.end+=L,h.yq=L,h.U=n.clientPlaybackNonce;else if(this.S("html5_ssap_enable_cpn_triggered_media_end")&&c===2)for(this.getPresentingPlayerType(),n=g.r(X),L=n.next();!L.done;L=n.next())L.value.U=this.AX.bV(); +n=g.r(X);for(L=n.next();!L.done;L=n.next())d=void 0,L.value.playerType=(d=c)!=null?d:1}G.yd(X,V);c&&this.getPresentingPlayerType()!==c||fq(this,"cuerangesadded",X)}}; +g.y.Bu=function(X,c){var V=this.sM(c);V&&(V.Bu(X),c&&this.getPresentingPlayerType()!==c||fq(this,"cuerangesremoved",X))}; +g.y.SB=function(X){var c=this.Ey()||this.GF(),V=this.getPresentingPlayerType();return this.S("html5_ssap_enable_cpn_triggered_media_end")?c.SB(V,X):c.SB(V)}; +g.y.NmS=function(){function X(){var G=c.screenLayer||(c.isMinimized()?3:0),n=g.tU(G);if(n&&n!=="UNDEFINED_CSN"){var L=c.qW.S("web_player_attach_player_response_ve"),d=c.qW.S("web_playback_associated_ve");G={cpn:c.getVideoData().clientPlaybackNonce,csn:n};c.getVideoData().Pl&&(L||d)&&(L=g.m3(c.getVideoData().Pl),g.y0(n,L),d&&(G.playbackVe=L.getAsJson()));c.getVideoData().queueInfo&&(G.queueInfo=c.getVideoData().queueInfo);n={};c.S("web_playback_associated_log_ctt")&&c.getVideoData().B&&(n.cttAuthInfo= +{token:c.getVideoData().B,videoId:c.getVideoData().videoId});g.a0("playbackAssociated",G,n)}else g.UQ(new g.SP("CSN Missing or undefined during playback association"))} +var c=this,V=this.Ey();this.getPresentingPlayerType();mnl(this.BP,V.getVideoData(),abU(this));xt(this)&&this.qW.X&&fQ(this.Vg())==="embedded"&&this.U1&&Math.random()<.01&&g.a0("autoplayTriggered",{intentional:this.intentionalPlayback});this.U1=!1;Wkj(this.qN);this.S("web_player_defer_ad")&&B5U(this);this.DR.hT("onPlaybackStartExternal");(this.qW.S("mweb_client_log_screen_associated"),uY(this.qW))||X();V={};this.getVideoData().B&&(V.cttAuthInfo={token:this.getVideoData().B,videoId:this.getVideoData().videoId}); +V.sampleRate=20;Kn("player_att",V);if(this.getVideoData().botguardData||this.S("fetch_att_independently"))g.S3(this.qW)||i7(this.qW)==="MWEB"?g.Va(g.n$(),function(){eQ(c)}):eQ(this); +this.gj();Xgl(this);this.S("embeds_enable_autoplay_and_visibility_signals")&&g.RT(this.qW)&&(V={autoplayBrowserPolicy:sM(),autoplayIntended:CF(this.getVideoData()),autoplayStatus:TGl(this.getVideoData(),1),cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.a0("embedsAutoplayStatusChanged",V))}; +g.y.SH=function(){this.DR.publish("internalAbandon");tb(this)}; +g.y.onApiChange=function(){var X=this.Ey();this.qW.D&&X?this.DR.DL("onApiChange",X.getPlayerType()):this.DR.DL("onApiChange")}; +g.y.h6c=function(){var X=this.mediaElement;X={volume:g.am(Math.floor(X.getVolume()*100),0,100),muted:X.Lo()};X.muted||mk(this,!1);this.g1=g.M5(X);this.DR.DL("onVolumeChange",X)}; +g.y.mutedAutoplay=function(X){var c=this.getVideoData().videoId;isNaN(this.fV)&&(this.fV=this.getVideoData().startSeconds);if((X==null?0:X.videoId)||c)this.loadVideoByPlayerVars({video_id:(X==null?0:X.videoId)?X==null?void 0:X.videoId:c,playmuted:!0,start:this.fV,muted_autoplay_duration_mode:X==null?void 0:X.durationMode}),this.DR.hT("onMutedAutoplayStarts")}; +g.y.onFullscreenChange=function(){var X=Wrl(this);this.GJ(X?1:0);Fr2(this,!!X)}; +g.y.GJ=function(X){var c=!!X,V=!!this.UL()!==c;this.visibility.GJ(X);this.template.GJ(c);this.S("html5_media_fullscreen")&&!c&&this.mediaElement&&Wrl(this)===this.mediaElement.WP()&&this.mediaElement.f0();this.template.resize();V&&this.BP.tick("fsc");V&&(this.DR.publish("fullscreentoggled",c),X=this.Vg(),c={fullscreen:c,videoId:X.MP||X.videoId,time:this.getCurrentTime()},this.DR.getPlaylistId()&&(c.listId=this.DR.getPlaylistId()),this.DR.DL("onFullscreenChange",c))}; +g.y.fN=function(){return this.visibility.fN()}; +g.y.isFullscreen=function(){return this.visibility.isFullscreen()}; +g.y.UL=function(){return this.visibility.UL()}; +g.y.jLK=function(){if(this.Ey()){var X=this.UL();X!==0&&X!==1||this.GJ(Wrl(this)?1:0);X=window.screen.width*window.screen.height;var c=window.outerHeight*window.outerWidth;this.qW.sY?(this.Qv=Math.max(this.Qv,X,c),X=c/this.Qv0&&(A=Math.floor(Y/1E3))}A=c?c.VL:A;var H={AD_BLOCK:this.J++,AD_BREAK_LENGTH:A,AUTONAV_STATE:IB(this.player.j()),CA_TYPE:"image",CPN:h.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.LK()*1E3,LACT:Ox(),LIVE_INDEX:c?this.U++:1,LIVE_TARGETING_CONTEXT:c&&c.context?c.context:"",MIDROLL_POS:L? +Math.round(L.start/1E3):0,MIDROLL_POS_MS:L?Math.round(L.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.CS().Nm().height,P_W:this.player.CS().Nm().width,YT_REMOTE:n?n.join(","):""},a=wd(W3);Object.keys(a).forEach(function(w){a[w]!=null&&(H[w.toUpperCase()]=a[w].toString())}); +V!==""&&(H.BISCOTTI_ID=V);V={};$P(X)&&(V.sts="20158",(c=this.player.j().forcedExperiments)&&(V.forced_experiments=c));var W=j4(g.l_(X,H),V);return W.split("?").length!==2?xc(Error("Invalid AdBreakInfo URL")):g.LW(this.player.j(),h==null?void 0:h.oauthToken).then(function(w){if(w&&aa()){var F=Ix();N$(F,w)}w=G.player.iF(F);F=uF1(G,W,H,h.isMdxPlayback,d);return g.X4(w,F,"/youtubei/v1/player/ad_break").then(function(Z){return Z})})}; +NE.prototype.reset=function(){this.U=this.J=1};g.E(PC1,NE); +PC1.prototype.G=function(X,c,V){c=c===void 0?{}:c;var G=c.Ji;var n=c.pE;var L=c.cueProcessedMs;V=V===void 0?"":V;c=this.J;this.J++;var d=this.player.j().S("h5_disable_macro_substitution_in_get_ad_break")?X:zZl(this,X,{Ji:G,pE:n,cueProcessedMs:L},V,c);if(d.split("?").length!==2)return Math.random()<.1&&g.UQ(Error("Invalid AdBreakInfo URL")),xc(Error("Invalid AdBreakInfo URL"));var h=this.player.getVideoData(1).isMdxPlayback,A=V;V=gZs.exec(d);V=V!=null&&V.length>=2?V[1]:"";X=fbD.test(d);var Y=pg8.exec(d); +Y=Y!=null&&Y.length>=2?Y[1]:"";var H=Ibj.exec(d);H=H!=null&&H.length>=2&&!Number.isNaN(Number(H[1]))?Number(H[1]):1;var a=N$D.exec(d);a=a!=null&&a.length>=2?a[1]:"0";var W=UT(this.player.j().Wb),w=g.V$(this.player.getVideoData(1).Pl,!0);RZl(this,w,d,A===""?"":A,this.player.j(),this.player.getVideoData(1));A={splay:!1,lactMilliseconds:String(Ox()),playerHeightPixels:Math.trunc(this.player.CS().Nm().height),playerWidthPixels:Math.trunc(this.player.CS().Nm().width),vis:Math.trunc(this.player.getVisibilityState()), +signatureTimestamp:20158,autonavState:IB(this.player.j())};if(h){h={};var F=this.player.j().pY;OJ1(h,F?F.join(","):"")&&(A.mdxContext=h)}if(h=UNl.includes(W)?void 0:g.Tx("PREF")){F=h.split(RegExp("[:&]"));for(var Z=0,v=F.length;Z1&&e[1].toUpperCase()==="TRUE"){w.user.lockedSafetyMode=!0;break}}A.autoCaptionsDefaultOn=MiL(h)}d=T$t.exec(d);(d=d!=null&&d.length>=2?d[1]:"")&&Y&&(w.user.credentialTransferTokens= +[{token:d,scope:"VIDEO"}]);d={contentPlaybackContext:A};A=this.player.getVideoData(1).getGetAdBreakContext();h=this.player.getVideoData(1).clientPlaybackNonce;F=L!==void 0?Math.round(L).toString():void 0;Z=(G==null?0:G.context)?G.context:void 0;v=0;L&&n&&!G&&(n=n.end-n.start,n>0&&(v=Math.floor(n/1E3)));G=(G=Math.trunc((G?G.VL:v)*1E3))?String(G):void 0;n=this.player.LK()*1E3;n=Number.isNaN(n)?0:Math.trunc(n);c={adBlock:c,params:V,breakIndex:H,breakPositionMs:a,clientPlaybackNonce:h,topLevelDomain:W, +isProxyAdTagRequest:X,context:w,overridePlaybackContext:d,cueProcessedMs:F,videoId:Y?Y:void 0,liveTargetingParams:Z,breakLengthMs:G,driftFromHeadMs:n?String(n):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:A?A:void 0};return B$O(this,c)};var BAV={t7S:"replaceUrlMacros",jYR:"onAboutThisAdPopupClosed",TM2:"executeCommand"};Krt.prototype.XO=function(){return"adPingingEndpoint"}; +Krt.prototype.B_=function(X,c,V){oAj(this.t7.get(),X,c,V)};sgD.prototype.XO=function(){return"changeEngagementPanelVisibilityAction"}; +sgD.prototype.B_=function(X){this.W.z_("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:X})};CC2.prototype.XO=function(){return"loggingUrls"}; +CC2.prototype.B_=function(X,c,V){X=g.r(X);for(var G=X.next();!G.done;G=X.next())G=G.value,oAj(this.t7.get(),G.baseUrl,c,V,G.attributionSrcMode)};g.E(SO1,g.I);g.E(Tj,g.I);g.y=Tj.prototype;g.y.addListener=function(X){this.listeners.push(X)}; +g.y.removeListener=function(X){this.listeners=this.listeners.filter(function(c){return c!==X})}; +g.y.LY=function(X,c,V,G,n,L,d,h){if(X==="")FX("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(X!==this.J||V){this.J=X;this.mS.get().LY(X,c,V,G,n,L,d,h);this.Sv.get().LY(X,c,V,G,n,L,d,h);var A;(A=this.VC)==null||A.get().LY(X,c,V,G,n,L,d,h);this.G.LY(X,c,V,G,n,L,d,h);A=g.r(this.listeners);for(var Y=A.next();!Y.done;Y=A.next())Y.value.LY(X,c,V,G,n,L,d,h)}else FX("Duplicate content video loaded signal")}; +g.y.SH=function(){this.J&&this.y6(this.J)}; +g.y.y6=function(X){this.J=void 0;for(var c=g.r(this.listeners),V=c.next();!V.done;V=c.next())V.value.y6(X)};us.prototype.tj=function(X,c,V,G,n){iJ8(this);this.Z=!c&&V===0;var L=this.W.getVideoData(1),d=this.W.getVideoData(2);L&&(this.contentCpn=L.clientPlaybackNonce,this.videoId=L.videoId,this.J=L.B);d&&(this.adCpn=d.clientPlaybackNonce,this.adVideoId=d.videoId,this.adFormat=d.adFormat);this.X=X;G<=0?(iJ8(this),this.Z=!c&&V===0):(this.actionType=this.Z?c?"unknown_type":"video_to_ad":c?"ad_to_video":"ad_to_ad",this.videoStreamType=n?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& +(this.U=!0,sr("_start",this.actionType)&&czO(this)))}; +us.prototype.reset=function(){return new us(this.W)};g.E(Pn,g.I);Pn.prototype.addCueRange=function(X,c,V,G,n,L,d){L=L===void 0?3:L;d=d===void 0?1:d;this.J.has(X)?FX("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:X}):(X=new VC1(X,c,V,G,L),this.J.set(X.id,{pE:X,listener:n,E0:d}),this.W.Gr([X],d))}; +Pn.prototype.removeCueRange=function(X){var c=this.J.get(X);c?(this.W.oT([c.pE],c.E0),this.J.delete(c.pE.id)):FX("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:X})}; +Pn.prototype.onCueRangeEnter=function(X){if(this.J.has(X.id))this.J.get(X.id).listener.onCueRangeEnter(X.id)}; +Pn.prototype.onCueRangeExit=function(X){if(this.J.has(X.id))this.J.get(X.id).listener.onCueRangeExit(X.id)}; +g.E(VC1,g.AC);zj.prototype.G$=function(X){this.W.G$(X)}; +zj.prototype.Wu=function(X){var c=g.OD.apply(1,arguments);X==="onAdStart"||X==="onAdEnd"?this.W.DL.apply(this.W,[X].concat(g.x(c))):this.W.z_.apply(this.W,[X].concat(g.x(c)))};Bn.prototype.HW=function(X){return X&&Kq(this)};var YcS=null;g.E(AzU,g.$T);AzU.prototype.oE=function(X){return this.J.hasOwnProperty(X)?this.J[X].oE():{}}; +g.uO("ytads.bulleit.getVideoMetadata",function(X){return Cq().oE(X)}); +g.uO("ytads.bulleit.triggerExternalActivityEvent",function(X,c,V){var G=Cq();V=hWt(V);V!==null&&G.publish(V,{queryId:X,viewabilityString:c})});g.y=DW.prototype;g.y.Cl=function(X,c){if(!this.J.has(X))return{};if(c==="seek"){c=!1;c=c===void 0?!1:c;var V=OA(ml).Of(X,{});V?o5(V):c&&(X=OA(ml).I3(null,Sy(),!1,X),X.Eg=3,q28([X]));return{}}c=HPt(c);if(c===null)return{};var G=this.W.H_();if(!G)return{};var n=this.W.getPresentingPlayerType(!0);if((V=this.W.getVideoData(n))==null||!V.isAd())return{};V={opt_adElement:G,opt_fullscreen:this.mS.get().isFullscreen()};return qAj(c,X,V)}; +g.y.z8=function(X,c,V,G,n){this.J.has(X)&&(G<=0||n<=0||OA(ml).z8(X,c,V,G,n))}; +g.y.QP=function(X){var c;(c=this.J.get(X.queryId))==null||c.QP()}; +g.y.tA=function(X){var c;(c=this.J.get(X.queryId))==null||c.tA()}; +g.y.Z0=function(X){var c;(c=this.J.get(X.queryId))==null||c.Z0()}; +g.y.wk=function(X){var c;(c=this.J.get(X.queryId))==null||c.wk()}; +g.y.cO=function(X){var c;(c=this.J.get(X.queryId))==null||c.cO()};QUw.prototype.send=function(X,c,V,G){try{ZPl(this,X,c,V,G===void 0?!1:G)}catch(n){}};g.E(x9l,QUw);vAl.prototype.send=function(X,c,V,G){var n=!1;try{if(G==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||G==="ATTRIBUTION_SRC_MODE_XHR_OPTION")n=!0,X=QaO(X);G=n;var L=X.match(I3);if(L[1]==="https")var d=X;else L[1]="https",d=fB("https",L[2],L[3],L[4],L[5],L[6],L[7]);var h=aX8(d);L=[];var A=Ll1(d)&&this.Xh.get().W.j().experiments.lc("add_auth_headers_to_remarketing_google_dot_com_ping");if($P(d)||A)L.push({headerType:"USER_AUTH"}),L.push({headerType:"PLUS_PAGE_ID"}),L.push({headerType:"VISITOR_ID"}),L.push({headerType:"EOM_VISITOR_ID"}), +L.push({headerType:"AUTH_USER"}),L.push({headerType:"DATASYNC_ID"});this.J.send({baseUrl:d,scrubReferrer:h,headers:L},c,V,G)}catch(Y){}};cx.prototype.m8=function(){return this.W.m8(1)};g.E(VM,g.I);g.y=VM.prototype;g.y.Yo=function(){return this.W.getVideoData(1).clientPlaybackNonce}; +g.y.addListener=function(X){this.listeners.push(X)}; +g.y.removeListener=function(X){this.listeners=this.listeners.filter(function(c){return c!==X})}; +g.y.LY=function(){this.q3.clear();this.cI=null;this.H3.get().clear()}; +g.y.y6=function(){}; +g.y.pWR=function(X,c,V,G,n){c.videoId==="nPpU29QrbiU"&&this.W.Oy("ads_ssm_vdc_s",{pt:V,dvt:X});kI(this.Xh.get())&&X!=="dataloaded"||OP1(this,c,V);if(Kq(this.Xh.get())&&X==="newdata"&&n!==void 0){X=this.Yo();var L=c.clientPlaybackNonce,d={};es(this,"rte",(d.ec=L,d.xc=G==null?void 0:G.clientPlaybackNonce,d.tr=n,d.pt=V,d.ia=L!==X,d.ctp=od(L),d));c=c.clientPlaybackNonce;G=G==null?void 0:G.clientPlaybackNonce;n=lKs(n);if(n!==1)if(G!==void 0)for(V=g.r(this.listeners),X=V.next();!X.done;X=V.next())X.value.wK(G, +c,n);else FX("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:c,transitionReason:String(n)});n=g.r(this.listeners);for(G=n.next();!G.done;G=n.next())G.value.Ba(c)}}; +g.y.R82=function(X,c){X!==void 0&&(this.cI=X,c===void 0?FX("Expected ad video start time on SS video changed"):this.q3.set(X,c));var V=this.W.getPresentingPlayerType(!0),G=this.W.getVideoData(V);this.W.getVideoData(1).Oy("ads_ssvc",{pt:V,cpn:G==null?void 0:G.clientPlaybackNonce,crtt:this.W.getCurrentTime(1,!1),atlh:this.W.isAtLiveHead(),adstt:c});G?OP1(this,G,V):FX("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.W.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:X})}; +g.y.Q$=function(X,c){var V=X.author,G=X.clientPlaybackNonce,n=X.isListed,L=X.Gm,d=X.title,h=X.hf,A=X.fY,Y=X.isMdxPlayback,H=X.P5,a=X.mdxEnvironment,W=X.isAutonav,w=X.QB,F=X.Tx,Z=X.Re,v=X.videoId||"",e=X.profilePicture||"",m=X.F7||"",t=X.rW()||!1,f=X.JT()||!1;X=X.Cu||void 0;L=this.H3.get().J.get(L)||{layoutId:null,slotId:null};var U=this.W.getVideoData(1),C=U.ZQ();U=U.getPlayerResponse();c=1E3*this.W.getDuration(c);var K=1E3*this.W.getDuration(1),nj,yl,Xl=(U==null?void 0:(nj=U.playerConfig)==null? +void 0:(yl=nj.daiConfig)==null?void 0:yl.enableDai)||!1,u,q;nj=(U==null?void 0:(u=U.playerConfig)==null?void 0:(q=u.daiConfig)==null?void 0:q.enablePreroll)||!1;return Object.assign({},L,{videoId:v,author:V,clientPlaybackNonce:G,dG:c,BS:K,daiEnabled:Xl,vt:nj,isListed:n,ZQ:C,profilePicture:e,title:d,F7:m,hf:h,fY:A,Cu:X,isMdxPlayback:Y,P5:H,mdxEnvironment:a,isAutonav:W,QB:w,Tx:F,Re:Z,rW:t,JT:f})}; +g.y.R2=function(){this.listeners.length=0;this.Os=null;g.I.prototype.R2.call(this)};g.E(G0,g.I);g.y=G0.prototype;g.y.LY=function(){var X=this;Kq(this.Xh.get())||(this.J=F$(function(){X.W.vl()||X.W.Fj("ad",1)}))}; +g.y.y6=function(){}; +g.y.addListener=function(X){this.listeners.push(X)}; +g.y.removeListener=function(X){this.listeners=this.listeners.filter(function(c){return c!==X})}; +g.y.Gc=function(){}; +g.y.playVideo=function(){this.W.playVideo()}; +g.y.pauseVideo=function(){this.W.pauseVideo()}; +g.y.resumeVideo=function(X){this.RX(X)&&this.W.playVideo()}; +g.y.RX=function(X){return this.W.getPlayerState(X)===2}; +g.y.getCurrentTimeSec=function(X,c,V){var G=this.Sv.get().cI;if(X===2&&!c&&G!==null)return gAL(this,G);Xu(this.Xh.get(),"html5_ssap_use_cpn_to_get_time")||(V=void 0);return V!==void 0?this.W.getCurrentTime(X,c,V):this.W.getCurrentTime(X,c)}; +g.y.getVolume=function(){return this.W.getVolume()}; +g.y.isMuted=function(){return this.W.isMuted()}; +g.y.getPresentingPlayerType=function(){return this.W.getPresentingPlayerType(!0)}; +g.y.getPlayerState=function(X){return this.W.getPlayerState(X)}; +g.y.isFullscreen=function(){return this.W.isFullscreen()}; +g.y.isAtLiveHead=function(){return this.W.isAtLiveHead()}; +g.y.vF=function(X){this.W.vF(X)}; +g.y.rTK=function(){var X=this.W.getPresentingPlayerType(!0),c=this.getCurrentTimeSec(X,!1);if(X===2){X=g.r(this.listeners);for(var V=X.next();!V.done;V=X.next())V.value.E_(c)}else if(X===1)for(X=g.r(this.mA),V=X.next();!V.done;V=X.next())V.value.Gc(c)}; +g.y.B$c=function(X){for(var c=g.r(this.listeners),V=c.next();!V.done;V=c.next())V.value.i_(X,this.getPresentingPlayerType())}; +g.y.onFullscreenToggled=function(X){for(var c=g.r(this.listeners),V=c.next();!V.done;V=c.next())V.value.onFullscreenToggled(X)}; +g.y.onVolumeChange=function(){for(var X=g.r(this.listeners),c=X.next();!c.done;c=X.next())c.value.onVolumeChange()}; +g.y.ZO=function(){for(var X=this.W.isMinimized(),c=g.r(this.listeners),V=c.next();!V.done;V=c.next())V.value.ZO(X)}; +g.y.iX=function(X){for(var c=g.r(this.listeners),V=c.next();!V.done;V=c.next())V.value.iX(X)}; +g.y.Ky=function(){for(var X=this.W.CS().Nm(),c=g.r(this.listeners),V=c.next();!V.done;V=c.next())V.value.Jf(X)}; +g.y.bX=function(X){for(var c=g.r(this.listeners),V=c.next();!V.done;V=c.next())V.value.bX(X)}; +g.y.nY=function(){for(var X=g.r(this.listeners),c=X.next();!c.done;c=X.next())c.value.nY()};g.E(IK1,g.I);g.E(hT,g.I);hT.prototype.R2=function(){this.FJ.vl()||this.FJ.get().removeListener(this);g.I.prototype.R2.call(this)};AT.prototype.fetch=function(X){var c=X.RE;return this.J.fetch(X.JR,{Ji:X.Ji===void 0?void 0:X.Ji,pE:c,cueProcessedMs:X.cueProcessedMs===void 0?0:X.cueProcessedMs}).then(function(V){return Nmj(V,c)})};g.E(Yx,g.I);g.y=Yx.prototype;g.y.addListener=function(X){this.listeners.push(X)}; +g.y.removeListener=function(X){this.listeners=this.listeners.filter(function(c){return c!==X})}; +g.y.kG=function(X){U9U(this,X,1)}; +g.y.onAdUxClicked=function(X,c){jc(this,function(V){V.WD(X,c)})}; +g.y.KV=function(X){jc(this,function(c){c.QA(X)})}; +g.y.yv=function(X){jc(this,function(c){c.tE(X)})}; +g.y.Rf2=function(X){jc(this,function(c){c.Uf(X)})};Hx.prototype.reduce=function(X){switch(X.event){case "unknown":return}var c=X.identifier;var V=this.J[c];V?c=V:(V={wL:null,zU:-Infinity},c=this.J[c]=V);V=X.startSecs+X.J/1E3;if(!(V=this.J.startSecs&&V.startSecs<=this.J.startSecs+this.J.VL)){var G=void 0;if(sB(this.Xh.get())&&V.identifier!==((G=this.J)==null?void 0:G.identifier)){var n=G=void 0,L=void 0,d=void 0;dE(this.t7.get(),"ocud","ccpi."+V.identifier+";ccpe."+V.event+";ccps."+V.startSecs+";\n ccpd."+V.VL+";pcpi."+((G=this.J)==null?void 0:G.identifier)+";pcpe."+ +((n=this.J)==null?void 0:n.event)+";\n pcps."+((L=this.J)==null?void 0:L.startSecs)+";pcpd."+((d=this.J)==null?void 0:d.VL)+";")}G=void 0;V.identifier!==((G=this.J)==null?void 0:G.identifier)&&FX("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.J=V,Pql(this,V)}}; +g.y.R2=function(){this.G!=null&&(this.G.unsubscribe("cuepointupdated",this.hM,this),this.G=null);this.listeners.length=0;this.NH.length=0;g.I.prototype.R2.call(this)};$x.prototype.addPlayerResponseForAssociation=function(X){this.W.addPlayerResponseForAssociation(X)};g.y=w7.prototype;g.y.Kt=function(X,c,V,G,n,L,d){return this.W.Kt(X,c,V,G,n,L,d)}; +g.y.A4=function(X,c){this.W.A4(X,c)}; +g.y.xP=function(X,c,V){this.W.xP(X,c,V)}; +g.y.hF=function(X){this.W.hF(X)}; +g.y.r8=function(X,c,V,G,n,L,d){this.W.r8(X,c,V,G,n,L,d)}; +g.y.X1=function(X){return this.W.X1(X)}; +g.y.finishSegmentByCpn=function(X,c,V){V=sUU(V);this.W.finishSegmentByCpn(X,c,V)};g.E(D9D,g.I);g.E(Scj,g.I);g.E(iPU,g.I);g.E(qcD,g.I);g.E(XsL,g.I);g.E(VoU,g.I);VoU.prototype.U=function(){return this.G};g.E(Glj,Dt); +Glj.prototype.X=function(X){var c=X.content;if(c.componentType==="shopping-companion")switch(X.actionType){case 1:case 2:X=this.J.getVideoData(1);this.J.z_("updateKevlarOrC3Companion",{contentVideoId:X&&X.videoId,shoppingCompanionCarouselRenderer:c.renderer,layoutId:c.layoutId,macros:c.macros,onLayoutVisibleCallback:c.J,interactionLoggingClientData:c.interactionLoggingClientData});break;case 3:this.J.z_("updateKevlarOrC3Companion",{})}else if(c.componentType==="action-companion")switch(X.actionType){case 1:case 2:X=this.J.getVideoData(1); +this.J.z_("updateKevlarOrC3Companion",{contentVideoId:X&&X.videoId,actionCompanionAdRenderer:c.renderer,layoutId:c.layoutId,macros:c.macros,onLayoutVisibleCallback:c.J,interactionLoggingClientData:c.interactionLoggingClientData});break;case 3:c.renderer&&(c=this.J.getVideoData(1),this.J.z_("updateKevlarOrC3Companion",{contentVideoId:c&&c.videoId})),this.J.z_("updateKevlarOrC3Companion",{})}else if(c.componentType==="image-companion")switch(X.actionType){case 1:case 2:X=this.J.getVideoData(1);this.J.z_("updateKevlarOrC3Companion", +{contentVideoId:X&&X.videoId,imageCompanionAdRenderer:c.renderer,layoutId:c.layoutId,macros:c.macros,onLayoutVisibleCallback:c.J,interactionLoggingClientData:c.interactionLoggingClientData});break;case 3:c=this.J.getVideoData(1),this.J.z_("updateKevlarOrC3Companion",{contentVideoId:c&&c.videoId}),this.J.z_("updateKevlarOrC3Companion",{})}else if(c.componentType==="top-banner-image-text-icon-buttoned")switch(X.actionType){case 1:case 2:X=this.J.getVideoData(1);this.J.z_("updateKevlarOrC3Companion", +{contentVideoId:X&&X.videoId,topBannerImageTextIconButtonedLayoutViewModel:c.renderer,layoutId:c.layoutId,macros:c.macros,onLayoutVisibleCallback:c.J,interactionLoggingClientData:c.interactionLoggingClientData});break;case 3:c.renderer&&(c=this.J.getVideoData(1),this.J.z_("updateKevlarOrC3Companion",{contentVideoId:c&&c.videoId})),this.J.z_("updateKevlarOrC3Companion",{})}else if(c.componentType==="banner-image")switch(X.actionType){case 1:case 2:X=this.J.getVideoData(1);this.J.z_("updateKevlarOrC3Companion", +{contentVideoId:X&&X.videoId,bannerImageLayoutViewModel:c.renderer,layoutId:c.layoutId,macros:c.macros,onLayoutVisibleCallback:c.J,interactionLoggingClientData:c.interactionLoggingClientData});break;case 3:c=this.J.getVideoData(1),this.J.z_("updateKevlarOrC3Companion",{contentVideoId:c&&c.videoId}),this.J.z_("updateKevlarOrC3Companion",{})}else if(c.componentType==="ads-engagement-panel")switch(c=c.renderer,X.actionType){case 1:case 2:this.J.z_("updateEngagementPanelAction",c.addAction);this.J.z_("changeEngagementPanelVisibility", +c.expandAction);break;case 3:this.J.z_("changeEngagementPanelVisibility",c.hideAction),this.J.z_("updateEngagementPanelAction",c.removeAction)}else if(c.componentType==="ads-engagement-panel-layout"){var V=c.renderer;switch(X.actionType){case 1:case 2:this.J.z_("updateEngagementPanelAction",{action:z8(V.addAction),layoutId:c.layoutId,onLayoutVisibleCallback:c.J,interactionLoggingClientData:c.interactionLoggingClientData});this.J.z_("changeEngagementPanelVisibility",z8(V.expandAction));break;case 3:this.J.z_("changeEngagementPanelVisibility", +z8(V.hideAction)),this.J.z_("updateEngagementPanelAction",{action:z8(V.removeAction)})}}};g.E(nY8,nZ);g.y=nY8.prototype;g.y.init=function(X,c,V){nZ.prototype.init.call(this,X,c,V);g.$v(this.U,"stroke-dasharray","0 "+this.G);this.U.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.B.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.X.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; +g.y.clear=function(){this.hide()}; +g.y.hide=function(){dR(this);nZ.prototype.hide.call(this)}; +g.y.show=function(){LZ(this);nZ.prototype.show.call(this)}; +g.y.Jn=function(){this.hide()}; +g.y.Jv=function(){if(this.J){var X=this.J.getProgressState();X!=null&&X.current!=null&&g.$v(this.U,"stroke-dasharray",X.current/X.seekableEnd*this.G+" "+this.G)}};g.E(L0s,Q0);g.y=L0s.prototype; +g.y.init=function(X,c,V){Q0.prototype.init.call(this,X,c,V);if(c.image&&c.image.thumbnail)if(c.headline)if(c.description)if(c.backgroundImage&&c.backgroundImage.thumbnail)if(c.actionButton&&g.T(c.actionButton,g.Nz))if(X=c.durationMilliseconds||0,typeof X!=="number"||X<=0)g.Ni(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+X));else if(c.navigationEndpoint){var G=this.api.getVideoData(2);if(G!=null){var n=c.image.thumbnail.thumbnails;n!=null&& +n.length>0&&g.kU(g.c1(n[0].url))&&(n[0].url=G.profilePicture,g.kU(g.c1(G.profilePicture))&&Ym8("VideoPlayer",239976093,"Expected non-empty profile picture."));n=c.backgroundImage.thumbnail.thumbnails;n!=null&&n.length>0&&g.kU(g.c1(n[0].url))&&(n[0].url=G.xz());n=c.headline;n!=null&&g.kU(g.c1(n.text))&&(n.text=G.author)}this.C.init(HR("ad-image"),c.image,V);this.B.init(HR("ad-text"),c.headline,V);this.U.init(HR("ad-text"),c.description,V);this.LS.init(HR("ad-image"),c.backgroundImage,V);G=["ytp-ad-action-interstitial-action-button", +"ytp-ad-action-interstitial-action-button-rounded"];this.slot.classList.add("ytp-ad-action-interstitial-slot-dark-background");this.B.element.classList.add("ytp-ad-action-interstitial-headline-light");this.U.element.classList.add("ytp-ad-action-interstitial-description-light");G.push("ytp-ad-action-interstitial-action-button-dark");this.api.j().G&&(G.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),G.push("ytp-ad-action-interstitial-action-button-dark"));this.api.j().S("enable_unified_action_endcap_on_web")&& +!this.api.j().G&&(G.push("ytp-ad-action-interstitial-action-button-unified"),this.T_.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.C.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.yK.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.MN.classList.add("ytp-ad-action-interstitial-card-unified"),this.A7.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.U.element.classList.add("ytp-ad-action-interstitial-description-unified"), +this.Pl.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.B.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.Hl.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.QK.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new I_(this.api,this.layoutId,this.interactionLoggingClientData,this.gy,G);g.N(this,this.actionButton);this.actionButton.uc(this.T_); +this.actionButton.init(HR("button"),g.T(c.actionButton,g.Nz),V);BL(this.actionButton.element);G=Sn(this.actionButton.element);Dm(this.actionButton.element,G+" This link opens in new tab");this.navigationEndpoint=c.navigationEndpoint;this.X.L(this.Hl,"click",this.cJ,this);this.X.L(this.A7,"click",this.cJ,this);!this.api.j().S("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.j().G||this.X.L(this.Pl,"click",this.cJ,this);this.J=this.WR?new J0(this.api,X):new m8(X);g.N(this,this.J);if(c.skipButton){(X= +g.T(c.skipButton,LLU))&&this.J&&(this.skipButton=new Z2(this.api,this.layoutId,this.interactionLoggingClientData,this.gy,this.J,this.Rj),g.N(this,this.skipButton),this.skipButton.uc(this.element),this.skipButton.init(HR("skip-button"),X,V));if(V=c.adBadgeRenderer)if(V=g.T(V,n5A))X=new ou(this.api,this.layoutId,this.interactionLoggingClientData,this.gy,!0,!0),X.uc(this.QK),X.init(HR("simple-ad-badge"),V,this.macros),g.N(this,X);if(V=c.adInfoRenderer)if(V=g.T(V,pA))X=new cB(this.api,this.layoutId,this.interactionLoggingClientData, +this.gy,this.element,void 0,!0),X.uc(this.QK),X.init(HR("ad-info-hover-text-button"),V,this.macros),g.N(this,X)}else c.nonskippableOverlayRenderer&&(X=g.T(c.nonskippableOverlayRenderer,I2))&&this.J&&(this.G=new A0(this.api,this.layoutId,this.interactionLoggingClientData,this.gy,this.J,!1),g.N(this,this.G),this.G.uc(this.element),this.G.init(HR("ad-preview"),X,V));c.countdownRenderer&&(c=c.countdownRenderer,g.T(c,dxk)&&this.J&&(V=new nY8(this.api,this.layoutId,this.interactionLoggingClientData,this.gy, +this.J),g.N(this,V),V.uc(this.element),V.init(HR("timed-pie-countdown"),g.T(c,dxk),this.macros)));this.show();this.element.focus()}else g.Ni(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.Ni(Error("AdActionInterstitialRenderer has no button."));else g.Ni(Error("AdActionInterstitialRenderer has no background AdImage."));else g.Ni(Error("AdActionInterstitialRenderer has no description AdText."));else g.Ni(Error("AdActionInterstitialRenderer has no headline AdText."));else g.Ni(Error("AdActionInterstitialRenderer has no image."))}; +g.y.clear=function(){g.l5(this.X);this.hide()}; +g.y.show=function(){dtS(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.G&&this.G.show();Q0.prototype.show.call(this)}; +g.y.hide=function(){dtS(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.G&&this.G.hide();Q0.prototype.hide.call(this)}; +g.y.cJ=function(){this.navigationEndpoint&&(this.layoutId?this.gy.executeCommand(this.navigationEndpoint,this.layoutId):g.Ni(Error("Missing layoutId for ad action interstitial.")))};var jps={iconType:"CLOSE"},QM=new g.Ez(320,63);g.E(YlD,Q0);g.y=YlD.prototype; +g.y.init=function(X,c,V){Q0.prototype.init.call(this,X,c,V);this.X=c;this.C=g.Vk(this.X.onClickCommands||[]);this.QK=this.X.onErrorCommand||null;if(X=this.X.contentSupportedRenderer)X=this.X.contentSupportedRenderer,c=this.X.adInfoRenderer||null,g.T(X,cEM)?(this.B=g.Du("ytp-ad-overlay-ad-info-button-container",this.U.element),HfO(this,c),X=$t2(this,g.T(X,cEM))):g.T(X,Vgk)?(this.B=g.Du("ytp-ad-overlay-ad-info-button-container",this.G.element),HfO(this,c),X=W0S(this,g.T(X,Vgk))):g.T(X,Go_)?(this.B= +g.Du("ytp-ad-overlay-ad-info-button-container",this.J.element),HfO(this,c),X=wss(this,g.T(X,Go_))):(g.Ni(Error("InvideoOverlayAdRenderer content could not be initialized.")),X=!1);X&&(this.show(),F02(this,!0))}; +g.y.clear=function(){F02(this,!1);this.Hl.reset();this.A7=0;this.U.hide();this.logVisibility(this.U.element,!1);this.G.hide();this.logVisibility(this.G.element,!1);this.J.hide();this.logVisibility(this.J.element,!1);this.hide();this.dispose()}; +g.y.wWK=function(){this.T_&&(this.layoutId?this.gy.executeCommand(this.T_,this.layoutId):g.Ni(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; +g.y.n2=function(){a:{if(this.X&&this.X.closeButton&&this.X.closeButton.buttonRenderer){var X=this.X.closeButton.buttonRenderer;if(X.serviceEndpoint){X=[X.serviceEndpoint];break a}}X=[]}X=g.r(X);for(var c=X.next();!c.done;c=X.next())c=c.value,this.layoutId?this.gy.executeCommand(c,this.layoutId):g.Ni(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; +g.y.A1R=function(){this.LS||this.api.getPlayerState(1)!==2||this.api.playVideo()}; +g.y.tM=function(){this.LS||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.tM("invideo-overlay")}; +g.y.hf2=function(X){X.target===this.B&&g.Du("ytp-ad-button",this.yK.element).click()};g.E(EYS,nZ);g.y=EYS.prototype;g.y.init=function(X,c,V){nZ.prototype.init.call(this,X,c,V);X=c.durationMs;this.U=X==null||X===0?0:X+this.J.getProgressState().current*1E3;if(c.text)var G=c.text.templatedAdText;else c.staticMessage&&(G=c.staticMessage);this.messageText.init(HR("ad-text"),G,V);this.messageText.uc(this.G.element);this.X.show(100);this.show()}; +g.y.clear=function(){this.hide()}; +g.y.hide=function(){rc1(this,!1);nZ.prototype.hide.call(this);this.G.hide();this.messageText.hide();dR(this)}; +g.y.show=function(){rc1(this,!0);nZ.prototype.show.call(this);LZ(this);this.G.show();this.messageText.show()}; +g.y.Jn=function(){this.hide()}; +g.y.Jv=function(){if(this.J!=null){var X=this.J.getProgressState();X!=null&&X.current!=null&&(X=1E3*X.current,!this.A7&&X>=this.U?(this.X.hide(),this.A7=!0):this.messageText&&this.messageText.isTemplated()&&(X=Math.max(0,Math.ceil((this.U-X)/1E3)),X!==this.B&&(Gy(this.messageText,{TIME_REMAINING:String(X)}),this.B=X)))}};g.E(QpD,Q0);g.y=QpD.prototype; +g.y.init=function(X,c,V){Q0.prototype.init.call(this,X,c,{});c.image&&c.image.thumbnail?c.headline?c.description?c.actionButton&&g.T(c.actionButton,g.Nz)?(this.U.init(HR("ad-image"),c.image,V),this.G.init(HR("ad-text"),c.headline,V),this.X.init(HR("ad-text"),c.description,V),X=["ytp-ad-underlay-action-button"],this.api.j().S("use_blue_buttons_for_desktop_player_underlay")&&X.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new I_(this.api,this.layoutId,this.interactionLoggingClientData,this.gy, +X),c.backgroundColor&&g.$v(this.element,"background-color",g.zy(c.backgroundColor)),g.N(this,this.actionButton),this.actionButton.uc(this.B),this.actionButton.init(HR("button"),g.T(c.actionButton,g.Nz),V),c=g.EZ(this.api.j().experiments,"player_underlay_video_width_fraction"),this.api.j().S("place_shrunken_video_on_left_of_player")?(V=this.J,g.jk(V,"ytp-ad-underlay-left-container"),g.Ax(V,"ytp-ad-underlay-right-container"),g.$v(this.J,"margin-left",Math.round((c+.02)*100)+"%")):(V=this.J,g.jk(V,"ytp-ad-underlay-right-container"), +g.Ax(V,"ytp-ad-underlay-left-container")),g.$v(this.J,"width",Math.round((1-c-.04)*100)+"%"),this.api.PC()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.Tj.bind(this)),this.api.addEventListener("resize",this.sF.bind(this))):g.Ni(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.Ni(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.Ni(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.Ni(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; +g.y.show=function(){ZfD(!0);this.actionButton&&this.actionButton.show();Q0.prototype.show.call(this)}; +g.y.hide=function(){ZfD(!1);this.actionButton&&this.actionButton.hide();Q0.prototype.hide.call(this)}; +g.y.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.Tj.bind(this));this.api.removeEventListener("resize",this.sF.bind(this));this.hide()}; +g.y.onClick=function(X){Q0.prototype.onClick.call(this,X);this.actionButton&&g.h5(this.actionButton.element,X.target)&&this.api.pauseVideo()}; +g.y.Tj=function(X){X==="transitioning"?(this.J.classList.remove("ytp-ad-underlay-clickable"),this.show()):X==="visible"?this.J.classList.add("ytp-ad-underlay-clickable"):X==="hidden"&&(this.hide(),this.J.classList.remove("ytp-ad-underlay-clickable"))}; +g.y.sF=function(X){X.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):X.width>875?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-medium"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large")):(this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")); +g.$v(this.G.element,"font-size",X.width/40+"px")};g.E(Z3,Q0); +Z3.prototype.init=function(X,c,V){Q0.prototype.init.call(this,X,c,V);c.toggledLoggingParams&&(this.toggledLoggingParams=c.toggledLoggingParams);c.answer&&g.T(c.answer,g.Nz)?(X=new I_(this.api,this.layoutId,this.interactionLoggingClientData,this.gy,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),X.uc(this.answer),X.init(HR("ytp-ad-survey-answer-button"),g.T(c.answer,g.Nz),V),X.show()):c.answer&&g.T(c.answer,FA)&&(this.J=new sd(this.api,this.layoutId,this.interactionLoggingClientData,this.gy, +["ytp-ad-survey-answer-toggle-button"]),this.J.uc(this.answer),g.N(this,this.J),this.J.init(HR("survey-answer-button"),g.T(c.answer,FA),V));this.show()}; +Z3.prototype.S9=function(X){this.layoutId?SR(this.gy,X,this.layoutId,this.macros):g.Ni(new g.SP("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))}; +Z3.prototype.onClick=function(X){Q0.prototype.onClick.call(this,X);if(this.api.j().S("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; +Z3.prototype.clear=function(){this.hide()};g.E(xt2,Q0);xt2.prototype.init=function(X,c,V){Q0.prototype.init.call(this,X,c,V);c.answer&&g.T(c.answer,FA)&&(this.button=new sd(this.api,this.layoutId,this.interactionLoggingClientData,this.gy,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.uc(this.J),this.button.init(HR("survey-none-of-the-above-button"),g.T(c.answer,FA),V));this.show()};g.E(xx,I_);xx.prototype.init=function(X,c,V){I_.prototype.init.call(this,X,c,V);X=!1;c.text&&(c=g.xT(c.text),X=!g.kU(c));X||g.UQ(Error("No submit text was present in the renderer."))}; +xx.prototype.onClick=function(X){this.publish("l");I_.prototype.onClick.call(this,X)};g.E(vx,Q0); +vx.prototype.init=function(X,c,V){Q0.prototype.init.call(this,X,c,V);if(X=c.skipOrPreviewRenderer)g.T(X,Y2)?(X=g.T(X,Y2),V=new vB(this.api,this.layoutId,this.interactionLoggingClientData,this.gy,this.X,!0),V.uc(this.skipOrPreview),V.init(HR("skip-button"),X,this.macros),g.N(this,V),this.J=V):g.T(X,I2)&&(X=g.T(X,I2),V=new A0(this.api,this.layoutId,this.interactionLoggingClientData,this.gy,this.X,!1),V.uc(this.skipOrPreview),V.init(HR("ad-preview"),X,this.macros),V.A7.show(100),V.show(),g.N(this,V), +this.J=V);this.J==null&&g.Ni(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(c)));c.submitButton&&(X=c.submitButton,g.T(X,g.Nz)&&(X=g.T(X,g.Nz),V=new xx(this.api,this.layoutId,this.interactionLoggingClientData,this.gy),V.uc(this.submitButton),V.init(HR("survey-submit"),X,this.macros),g.N(this,V),this.G=V));if(X=c.adBadgeRenderer)X=g.T(X,n5A),V=new ou(this.api,this.layoutId,this.interactionLoggingClientData,this.gy,!0,!0,!0),V.uc(this.U),V.init(HR("simple-ad-badge"), +X,this.macros),this.adBadge=V.element,g.N(this,V);if(X=c.adDurationRemaining)X=g.T(X,itA),V=new t0(this.api,this.layoutId,this.interactionLoggingClientData,this.gy,this.X,void 0,!0),V.uc(this.U),V.init(HR("ad-duration-remaining"),X,this.macros),g.N(this,V);(c=c.adInfoRenderer)&&g.T(c,pA)&&(X=new cB(this.api,this.layoutId,this.interactionLoggingClientData,this.gy,this.element,void 0,!0),g.N(this,X),this.adBadge!==void 0?this.U.insertBefore(X.element,this.adBadge.nextSibling):X.uc(this.U),X.init(HR("ad-info-hover-text-button"), +g.T(c,pA),this.macros));this.show()}; +vx.prototype.clear=function(){this.hide()};g.E(kx,Q0);kx.prototype.init=function(X,c,V){Q0.prototype.init.call(this,X,c,V);Jct(this)}; +kx.prototype.show=function(){this.U=Date.now();Q0.prototype.show.call(this)}; +kx.prototype.IH=function(){};g.E(mtO,kx);g.y=mtO.prototype;g.y.init=function(X,c,V){var G=this;kx.prototype.init.call(this,X,c,V);c.questionText&&vYl(this,c.questionText);c.answers&&c.answers.forEach(function(n,L){g.T(n,WM)&&klt(G,g.T(n,WM),V,L)}); +this.B=new Set(this.G.map(function(n){return n.J.J})); +(X=c.noneOfTheAbove)&&(X=g.T(X,XYr))&&RKD(this,X,V);c.surveyAdQuestionCommon&&eK2(this,c.surveyAdQuestionCommon);c.submitEndpoints&&(this.submitEndpoints=c.submitEndpoints);this.L(this.element,"change",this.onChange);this.show()}; +g.y.IH=function(){bfO(this,!1);this.X.G.subscribe("l",this.vMS,this)}; +g.y.onChange=function(X){X.target===this.noneOfTheAbove.button.J?tow(this):this.B.has(X.target)&&(this.noneOfTheAbove.button.toggleButton(!1),bfO(this,!0))}; +g.y.vMS=function(){var X=[],c=this.G.reduce(function(n,L,d){var h=L.toggledLoggingParams;L.J&&L.J.isToggled()&&h&&(n.push(h),X.push(d));return n},[]).join("&"),V=this.submitEndpoints.map(function(n){if(!n.loggingUrls)return n; +n=g.gn(n);n.loggingUrls=n.loggingUrls.map(function(L){L.baseUrl&&(L.baseUrl=se(L.baseUrl,c));return L}); +return n}); +if(V){V=g.r(V);for(var G=V.next();!G.done;G=V.next())G=G.value,this.layoutId?SR(this.gy,G,this.layoutId,this.macros):g.Ni(Error("Missing layoutId for multi_select_question."))}this.api.j().S("supports_multi_step_on_desktop")&&this.A7(X)}; +g.y.clear=function(){this.api.j().S("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.E(o$,kx);o$.prototype.init=function(X,c,V){var G=this;kx.prototype.init.call(this,X,c,V);c.questionText&&vYl(this,c.questionText);c.answers&&c.answers.forEach(function(n,L){g.T(n,WM)&&klt(G,g.T(n,WM),V,L)}); +c.surveyAdQuestionCommon?eK2(this,c.surveyAdQuestionCommon):g.Ni(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(c)));this.show()}; +o$.prototype.clear=function(){this.api.j().S("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.E(ec,Q0);ec.prototype.init=function(X,c,V){var G=this;Q0.prototype.init.call(this,X,c,V);if(this.api.j().S("supports_multi_step_on_desktop")){var n;this.conditioningRules=(n=c.conditioningRules)!=null?n:[];var L;this.G=(L=c.questions)!=null?L:[];var d;((d=c.questions)==null?0:d.length)&&gYw(this,0)}else(c.questions||[]).forEach(function(h){g.T(h,g8)?lHl(G,g.T(h,g8),V):g.T(h,Mz)&&Mo2(G,g.T(h,Mz),V)}); +this.show()}; +ec.prototype.clear=function(){this.api.j().S("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; +ec.prototype.X=function(X){var c=this;if(this.api.j().S("supports_multi_step_on_desktop")){var V;if((V=this.conditioningRules)==null?0:V.length){var G;if(X.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(n){return n.questionIndex===c.J})==null)g.Ni(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); +else if(this.conditioningRules.forEach(function(n){if(n.questionIndex===c.J)switch(n.condition){case "CONDITION_ALL_OF":var L;if((L=n.answerIndices)==null?0:L.every(function(h){return X.includes(h)}))G=n.nextQuestionIndex; +break;case "CONDITION_ANY_OF":var d;if((d=n.answerIndices)==null?0:d.some(function(h){return X.includes(h)}))G=n.nextQuestionIndex; +break;default:g.Ni(Error("Expected specified condition in survey conditioning rules."))}}),G!=null)gYw(this,G); +else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.Ni(Error("No conditioning rules, yet survey is multi step. Expected questions.length to be 1.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}};g.E(JT,Q0); +JT.prototype.init=function(X,c,V){var G=this;Q0.prototype.init.call(this,X,c,V);X=c.timeoutSeconds||0;if(typeof X!=="number"||X<0)g.Ni(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+X));else if(c.timeoutCommands)if(c.text)if(c.ctaButton&&g.T(c.ctaButton,g.Nz))if(c.brandImage)if(c.backgroundImage&&g.T(c.backgroundImage,UR)&&g.T(c.backgroundImage,UR).landscape){this.layoutId||g.Ni(Error("Missing layoutId for survey interstitial."));fHt(this.interstitial,g.T(c.backgroundImage, +UR).landscape);fHt(this.logoImage,c.brandImage);g.A5(this.text,g.xT(c.text));var n=["ytp-ad-survey-interstitial-action-button"];n.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new I_(this.api,this.layoutId,this.interactionLoggingClientData,this.gy,n);g.N(this,this.actionButton);this.actionButton.uc(this.G);this.actionButton.init(HR("button"),g.T(c.ctaButton,g.Nz),V);this.actionButton.show();this.J=new J0(this.api,X*1E3);this.J.subscribe("g",function(){G.transition.hide()}); +g.N(this,this.J);this.L(this.element,"click",function(L){var d=L.target===G.interstitial;L=G.actionButton.element.contains(L.target);if(d||L)if(G.transition.hide(),d)G.api.onAdUxClicked(G.componentType,G.layoutId)}); +this.transition.show(100)}else g.Ni(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.Ni(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.Ni(Error("SurveyTextInterstitialRenderer has no button."));else g.Ni(Error("SurveyTextInterstitialRenderer has no text."));else g.Ni(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; +JT.prototype.clear=function(){this.hide()}; +JT.prototype.show=function(){pss(!0);Q0.prototype.show.call(this)}; +JT.prototype.hide=function(){pss(!1);Q0.prototype.hide.call(this)};g.E(my,nZ);g.y=my.prototype; +g.y.init=function(X,c){nZ.prototype.init.call(this,X,c,{});if(c.durationMilliseconds){if(c.durationMilliseconds<0){g.Ni(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+c.durationMilliseconds));return}this.G=c.durationMilliseconds}else this.G=this.J.Bp();var V;if((V=c.previewText)==null||!V.text||g.kU(c.previewText.text))g.Ni(Error("No text is returned for AdPreview."));else{this.B=c.previewText;c.previewText.isTemplated||g.A5(this.U,c.previewText.text);var G; +if(((G=this.api.getVideoData(1))==null?0:G.Po)&&c.previewImage){var n,L;(X=((L=t6(((n=c.previewImage)==null?void 0:n.sources)||[],52,!1))==null?void 0:L.url)||"")&&X.length?(this.previewImage=new g.rP({N:"img",Y:"ytp-preview-ad__image",K:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",X),g.N(this,this.previewImage),this.previewImage.uc(this.element)):g.Ni(Error("Failed to get imageUrl in AdPreview."))}else this.U.classList.add("ytp-preview-ad__text--padding--wide")}}; +g.y.clear=function(){this.hide()}; +g.y.hide=function(){dR(this);nZ.prototype.hide.call(this)}; +g.y.show=function(){LZ(this);nZ.prototype.show.call(this)}; +g.y.Jn=function(){this.hide()}; +g.y.Jv=function(){if(this.J){var X=this.J.getProgressState();if(X!=null&&X.current)if(X=1E3*X.current,X>=this.G)this.transition.hide();else{var c;if((c=this.B)==null?0:c.isTemplated)if(c=Math.max(0,Math.ceil((this.G-X)/1E3)),c!==this.X){var V,G;(X=(V=this.B)==null?void 0:(G=V.text)==null?void 0:G.replace("{TIME_REMAINING}",String(c)))&&g.A5(this.U,X);this.X=c}}}};g.E(R$,Q0); +R$.prototype.init=function(X,c){Q0.prototype.init.call(this,X,c,{});var V,G;if((X=((G=t6(((V=c.image)==null?void 0:V.sources)||[],IHs(c),!0))==null?void 0:G.url)||"")&&X.length){V=this.I2("ytp-ad-avatar");V.src=X;var n,L;if(G=(n=c.interaction)==null?void 0:(L=n.accessibility)==null?void 0:L.label)V.alt=G;switch(c.size){case "AD_AVATAR_SIZE_XXS":this.element.classList.add("ytp-ad-avatar--size-xxs");break;case "AD_AVATAR_SIZE_XS":this.element.classList.add("ytp-ad-avatar--size-xs");break;case "AD_AVATAR_SIZE_S":this.element.classList.add("ytp-ad-avatar--size-s"); +break;case "AD_AVATAR_SIZE_M":this.element.classList.add("ytp-ad-avatar--size-m");break;case "AD_AVATAR_SIZE_L":this.element.classList.add("ytp-ad-avatar--size-l");break;case "AD_AVATAR_SIZE_XL":this.element.classList.add("ytp-ad-avatar--size-xl");break;case "AD_AVATAR_SIZE_RESPONSIVE":this.element.classList.add("ytp-ad-avatar--size-responsive");break;default:this.element.classList.add("ytp-ad-avatar--size-m")}switch(c.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":this.element.classList.add("ytp-ad-avatar--rounded-corner"); +break;default:this.element.classList.add("ytp-ad-avatar--circular")}}else g.Ni(Error("Failed to get imageUrl in AdAvatar."))}; +R$.prototype.clear=function(){this.hide()}; +R$.prototype.onClick=function(X){Q0.prototype.onClick.call(this,X)};g.E(bM,Q0); +bM.prototype.init=function(X,c){Q0.prototype.init.call(this,X,c,{});var V;X=(V=c.label)==null?void 0:V.content;if((V=X!=null&&!g.kU(X))||c.iconImage){V&&(this.buttonText=new g.rP({N:"span",Y:"ytp-ad-button-vm__text",Uy:X}),g.N(this,this.buttonText),this.buttonText.uc(this.element));var G,n,L=((G=c.interaction)==null?0:(n=G.accessibility)==null?0:n.label)||V?X:"";L&&Dm(this.element,L+" This link opens in new tab");BL(this.element);if(c.iconImage){G=void 0;if(c.iconImage){a:{n=c.iconImage;if(n.sources)for(n= +g.r(n.sources),X=n.next();!X.done;X=n.next())if(X=X.value,L=void 0,(L=X.clientResource)==null?0:L.imageName){n=X;break a}n=void 0}if(n){var d;G={iconType:(d=n.clientResource)==null?void 0:d.imageName}}}d=p3(G,!1,this.G);d!=null&&(this.buttonIcon=new g.rP({N:"span",Y:"ytp-ad-button-vm__icon",V:[d]}),g.N(this,this.buttonIcon),c.iconLeading?(dW(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):V?(this.buttonIcon.uc(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): +(this.buttonIcon.uc(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(c.style){case "AD_BUTTON_STYLE_TRANSPARENT":this.element.classList.add("ytp-ad-button-vm--style-transparent");break;case "AD_BUTTON_STYLE_FILLED_WHITE":this.element.classList.add("ytp-ad-button-vm--style-filled-white");break;case "AD_BUTTON_STYLE_FILLED":this.element.classList.add(this.J?"ytp-ad-button-vm--style-filled-dark":"ytp-ad-button-vm--style-filled");break;default:this.element.classList.add("ytp-ad-button-vm--style-filled")}switch(c.size){case "AD_BUTTON_SIZE_COMPACT":this.element.classList.add("ytp-ad-button-vm--size-compact"); +break;case "AD_BUTTON_SIZE_LARGE":this.element.classList.add("ytp-ad-button-vm--size-large");break;default:this.element.classList.add("ytp-ad-button-vm--size-default")}}else g.UQ(Error("AdButton does not have label or an icon."))}; +bM.prototype.clear=function(){this.hide()}; +bM.prototype.onClick=function(X){Q0.prototype.onClick.call(this,X)};g.E(Nt2,nZ);g.y=Nt2.prototype; +g.y.init=function(X,c){nZ.prototype.init.call(this,X,c,{});this.api.j().S("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.I2("ytp-ad-avatar-lockup-card__avatar_and_text_container").classList.add("ytp-ad-avatar-lockup-card__avatar_and_text_container--large"),this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline--large"),this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--large"),this.adButton.element.classList.add("ytp-ad-avatar-lockup-card__button--large"), +this.adAvatar.element.classList.add("ytp-ad-avatar-lockup-card__ad_avatar--large"),dW(this.I2("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(X=g.T(c.avatar,Ny)){var V=c.headline;if(V){var G=c.description;if(G){var n=g.T(c.button,T0);n?(this.adAvatar.init(HR("ad-avatar"),X),this.headline.init(HR("ad-simple-attributed-string"),new lG(V)),this.description.init(HR("ad-simple-attributed-string"),new lG(G)),V.content&&V.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"), +this.adButton.init(HR("ad-button"),n),this.startMilliseconds=c.startMs||0,this.api.PC()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.dD.bind(this)),LZ(this)):g.Ni(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Ni(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Ni(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Ni(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; +g.y.Jv=function(){if(this.J){var X=this.J.getProgressState();X&&X.current&&1E3*X.current>=this.startMilliseconds&&(dR(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; +g.y.Jn=function(){this.clear()}; +g.y.onClick=function(X){this.api.pauseVideo();nZ.prototype.onClick.call(this,X)}; +g.y.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.dD.bind(this))}; +g.y.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();nZ.prototype.show.call(this)}; +g.y.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();nZ.prototype.hide.call(this)}; +g.y.dD=function(X){X==="hidden"?this.show():this.hide()};g.E(tT,Q0);g.y=tT.prototype; +g.y.init=function(X,c){Q0.prototype.init.call(this,X,c,{});if(!c.label||g.kU(c.label))g.Ni(Error("No label is returned for SkipAdButton."));else if(g.A5(this.X,c.label),X=p3({iconType:"SKIP_NEXT_NEW"}),X==null)g.Ni(Error("Unable to retrieve icon for SkipAdButton"));else if(this.U=new g.rP({N:"span",Y:"ytp-skip-ad-button__icon",V:[X]}),g.N(this,this.U),this.U.uc(this.element),this.api.j().experiments.lc("enable_skip_to_next_messaging")&&(c=g.c1(c.targetId)))this.G=!0,this.element.setAttribute("data-tooltip-target-id",c), +this.element.setAttribute("data-tooltip-target-fixed","")}; +g.y.onClick=function(X){X&&X.preventDefault();var c,V;yOw(X,{contentCpn:(V=(c=this.api.getVideoData(1))==null?void 0:c.clientPlaybackNonce)!=null?V:""})===0?this.api.z_("onAbnormalityDetected"):(Q0.prototype.onClick.call(this,X),this.api.z_("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; +g.y.clear=function(){this.J.reset();this.hide()}; +g.y.hide=function(){Q0.prototype.hide.call(this)}; +g.y.show=function(){this.J.start();Q0.prototype.show.call(this);this.G&&this.api.j().experiments.lc("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.E(Ut2,nZ);g.y=Ut2.prototype; +g.y.init=function(X,c){nZ.prototype.init.call(this,X,c,{});X=g.T(c.preskipState,aRz);var V;if((V=this.api.getVideoData())==null?0:V.isDaiEnabled()){if(!X){g.Ni(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.G=new my(this.api,this.layoutId,this.interactionLoggingClientData,this.gy,this.J);g.N(this,this.G);this.G.uc(this.element);var G;(G=this.G)==null||G.init(HR("preview-ad"),X);(V=this.G)!=null&&(V.transition.show(100),V.show())}(V=g.T(c.skippableState,WLM))?(c.skipOffsetMilliseconds!= +null?this.skipOffsetMilliseconds=c.skipOffsetMilliseconds:(g.UQ(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.U.init(HR("skip-button"),V),this.show()):g.Ni(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; +g.y.show=function(){LZ(this);nZ.prototype.show.call(this)}; +g.y.hide=function(){!this.isSkippable&&this.G?this.G.hide():this.U&&this.U.hide();dR(this);nZ.prototype.hide.call(this)}; +g.y.clear=function(){var X;(X=this.G)==null||X.clear();this.U&&this.U.clear();dR(this);nZ.prototype.hide.call(this)}; +g.y.Jn=function(){this.hide()}; +g.y.Jv=function(){if(1E3*this.J.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var X;(X=this.G)!=null&&X.transition.hide();(X=this.U)!=null&&(X.transition.show(),X.show())}};g.E(O0,Q0); +O0.prototype.init=function(X,c){Q0.prototype.init.call(this,X,c,{});if(c.label){var V;((V=c.label)==null?0:V.content)&&!g.kU(c.label.content)&&(this.linkText=new g.rP({N:"span",Y:"ytp-visit-advertiser-link__text",Uy:c.label.content}),g.N(this,this.linkText),this.linkText.uc(this.element));var G,n;if((G=c.interaction)==null?0:(n=G.accessibility)==null?0:n.label)Dm(this.element,c.interaction.accessibility.label+" This link opens in new tab");else{var L;((L=c.label)==null?0:L.content)&&!g.kU(c.label.content)&&Dm(this.element, +c.label.content+" This link opens in new tab")}BL(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.Ni(Error("No label found in VisitAdvertiserLink."))}; +O0.prototype.onClick=function(X){Q0.prototype.onClick.call(this,X);this.api.onAdUxClicked(this.componentType,this.layoutId)}; +O0.prototype.clear=function(){this.hide()};g.E(lM,Q0); +lM.prototype.init=function(X,c,V,G){Q0.prototype.init.call(this,X,c,{});if(c.skipOrPreview){V=c.skipOrPreview;X=g.T(V,wY7);V=g.T(V,aRz);if(X)this.uP=new Ut2(this.api,this.layoutId,this.interactionLoggingClientData,this.gy,this.G),g.N(this,this.uP),this.uP.uc(this.A7),this.uP.init(HR("skip-ad"),X);else{var n;V&&((n=this.api.getVideoData())==null?0:n.isDaiEnabled())&&(this.B=new my(this.api,this.layoutId,this.interactionLoggingClientData,this.gy,this.G,1),g.N(this,this.B),this.B.uc(this.A7),this.B.init(HR("ad-preview"), +V),n=this.B,n.transition.show(100),n.show())}if(n=g.T(c.skipOrPreview,wY7))var L=n.skipOffsetMilliseconds}c.playerAdCard&&(n=g.T(c.playerAdCard,$xr))&&(this.playerAdCard=new Nt2(this.api,this.layoutId,this.interactionLoggingClientData,this.gy,this.G),g.N(this,this.playerAdCard),this.playerAdCard.uc(this.Hl),this.playerAdCard.init(HR("ad-avatar-lockup-card"),n));c.adBadgeRenderer&&((n=g.T(c.adBadgeRenderer,U0))?(this.J=new gR(this.api,this.layoutId,this.interactionLoggingClientData,this.gy,!0),g.N(this, +this.J),this.api.j().S("delhi_modern_web_player")?this.J.uc(this.X):this.J.uc(this.U),this.J.init(HR("ad-badge"),n)):g.Ni(Error("AdBadgeViewModel is not found in player overlay layout.")));c.adPodIndex&&(n=g.T(c.adPodIndex,AEk))&&(this.adPodIndex=new fZ(this.api,this.layoutId,this.interactionLoggingClientData,this.gy,g.T(c.skipOrPreview,wY7)===void 0),g.N(this,this.adPodIndex),this.api.j().S("delhi_modern_web_player")?this.adPodIndex.uc(this.X):this.adPodIndex.uc(this.U),this.adPodIndex.init(HR("ad-pod-index"), +n));c.adInfoRenderer&&((n=g.T(c.adInfoRenderer,pA))?(this.adInfoButton=new cB(this.api,this.layoutId,this.interactionLoggingClientData,this.gy,this.element,void 0,!0),g.N(this,this.adInfoButton),X=this.api.j().S("delhi_modern_web_player")?this.X:this.U,this.J!==void 0?X.insertBefore(this.adInfoButton.element,this.J.element.nextSibling):this.adInfoButton.uc(X),this.adInfoButton.init(HR("ad-info-hover-text-button"),n,this.macros)):g.UQ(Error("AdInfoRenderer is not found in player overlay layout."))); +var d;n=(d=this.api.getVideoData())==null?void 0:d.isDaiEnabled();c.adDurationRemaining&&n&&(d=g.T(c.adDurationRemaining,itA))&&(this.adDurationRemaining=new t0(this.api,this.layoutId,this.interactionLoggingClientData,this.gy,this.G,G.videoAdDurationSeconds,!0),g.N(this,this.adDurationRemaining),G=this.api.j().S("delhi_modern_web_player")?this.X:this.U,this.adPodIndex!==void 0?G.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.uc(G),this.adDurationRemaining.init(HR("ad-duration-remaining"), +d,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));c.visitAdvertiserLink&&(G=g.T(c.visitAdvertiserLink,E5V))&&(this.visitAdvertiserLink=new O0(this.api,this.layoutId,this.interactionLoggingClientData,this.gy),g.N(this,this.visitAdvertiserLink),this.visitAdvertiserLink.uc(this.U),this.visitAdvertiserLink.init(HR("visit-advertiser-link"),G));c.adDisclosureBanner&&(c=g.T(c.adDisclosureBanner,hGH))&&(this.adDisclosureBanner=new pZ(this.api,this.layoutId, +this.interactionLoggingClientData,this.gy),g.N(this,this.adDisclosureBanner),this.adDisclosureBanner.uc(this.Pl),this.adDisclosureBanner.init(HR("ad-disclosure-banner"),c));this.C=new US(this.api,this.G,L,!0);g.N(this,this.C);g.M$(this.api,this.C.element,4);this.show()}; +lM.prototype.clear=function(){this.hide()};g.E(Tts,Q0);g.y=Tts.prototype; +g.y.init=function(X,c){Q0.prototype.init.call(this,X,c,{});if(c!=null&&c.title)if(X=c.title)if(this.headline.init(HR("ad-simple-attributed-string"),new lG(X)),X=g.T(c.moreInfoButton,T0)){if(this.moreInfoButton.init(HR("ad-button"),X),c.descriptions)c.descriptions.length>0&&(X=c.descriptions[0])&&(this.J=new MA(this.api,this.layoutId,this.interactionLoggingClientData,this.gy),g.N(this,this.J),this.J.uc(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.J.init(HR("ad-simple-attributed-string"), +new lG(X))),c.descriptions.length>1&&(c=c.descriptions[1])&&(this.G=new MA(this.api,this.layoutId,this.interactionLoggingClientData,this.gy),g.N(this,this.G),this.G.uc(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.G.init(HR("ad-simple-attributed-string"),new lG(c)))}else g.Ni(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.Ni(Error("No headline found in AdGridCardText."));else g.Ni(Error("No headline found in AdGridCardText."))}; +g.y.onClick=function(X){Q0.prototype.onClick.call(this,X);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; +g.y.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var X;(X=this.J)==null||X.clear();var c;(c=this.G)==null||c.clear()}; +g.y.hide=function(){this.headline.hide();this.moreInfoButton.hide();var X;(X=this.J)==null||X.hide();var c;(c=this.G)==null||c.hide();Q0.prototype.hide.call(this)}; +g.y.show=function(){Q0.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var X;(X=this.J)==null||X.show();var c;(c=this.G)==null||c.show()};g.E(My,Q0);My.prototype.init=function(X,c){Q0.prototype.init.call(this,X,c,{});if(c!=null&&c.gridCards)if(c.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.Ni(Error("Only single column style is currently supported in AdGridCardCollection."));else for(X=g.r(c.gridCards),c=X.next();!c.done;c=X.next()){if(c=g.T(c.value,HSh)){var V=new Tts(this.api,this.layoutId,this.interactionLoggingClientData,this.gy);g.N(this,V);V.uc(this.element);V.init(HR("ad-grid-card-text"),c);this.J.push(V)}}else g.Ni(Error("No grid cards found in AdGridCardCollection."))}; +My.prototype.show=function(){for(var X=g.r(this.J),c=X.next();!c.done;c=X.next())c.value.show();Q0.prototype.show.call(this)}; +My.prototype.clear=function(){this.hide();for(var X=g.r(this.J),c=X.next();!c.done;c=X.next())c.value.clear()}; +My.prototype.hide=function(){for(var X=g.r(this.J),c=X.next();!c.done;c=X.next())c.value.hide();Q0.prototype.hide.call(this)};g.E(g7,nZ);g.y=g7.prototype;g.y.init=function(X,c,V,G,n){n=n===void 0?0:n;nZ.prototype.init.call(this,X,c,V,G);this.playerProgressOffsetMs=n;LZ(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.MK.bind(this));this.api.addEventListener("resize",this.u7.bind(this));this.api.PC()?(this.G=!0,this.api.vF(!0),this.show()):this.hide()}; +g.y.Jv=function(){if(this.J){var X=this.J.getProgressState();X&&X.current&&!this.G&&1E3*X.current>=this.playerProgressOffsetMs&&(this.G=!0,this.api.vF(!0),this.show())}}; +g.y.Jn=function(){this.G&&this.api.vF(!1);this.hide()}; +g.y.clear=function(){this.api.vF(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.MK.bind(this));this.api.removeEventListener("resize",this.u7.bind(this));dR(this);this.hide()}; +g.y.hide=function(){uQl(!1);nZ.prototype.hide.call(this)}; +g.y.show=function(){uQl(!0);nZ.prototype.show.call(this)};g.E(Pf1,g7);g.y=Pf1.prototype; +g.y.init=function(X,c,V,G){if(c!=null&&c.adGridCardCollection)if(c!=null&&c.adButton){var n=Number(c.playerProgressOffsetMs||"0");isNaN(n)?g7.prototype.init.call(this,X,c,V,G):g7.prototype.init.call(this,X,c,V,G,n);X=c.headline;V=g.T(c.adAvatar,Ny);X&&V?(this.headline=new MA(this.api,this.layoutId,this.interactionLoggingClientData,this.gy),g.N(this,this.headline),this.headline.uc(this.I2("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(HR("ad-simple-attributed-string"),new lG(X)), +this.adAvatar=new R$(this.api,this.layoutId,this.interactionLoggingClientData,this.gy),g.N(this,this.adAvatar),this.adAvatar.uc(this.I2("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(HR("ad-avatar"),V)):this.X.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");X=g.T(c.adGridCardCollection,jR7);this.adGridCardCollection.init(HR("ad-grid-card-collection"),X);c=g.T(c.adButton,T0);this.adButton.init(HR("ad-button"),c); +this.hide()}else g.Ni(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.Ni(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; +g.y.onClick=function(X){(this.adButton&&g.h5(this.adButton.element,X.target)||this.adAvatar&&g.h5(this.adAvatar.element,X.target))&&this.api.pauseVideo();g7.prototype.onClick.call(this,X);this.api.onAdUxClicked(this.componentType,this.layoutId)}; +g.y.u7=function(){}; +g.y.clear=function(){this.hide();var X;(X=this.headline)==null||X.clear();var c;(c=this.adAvatar)==null||c.clear();this.adGridCardCollection.clear();this.adButton.clear();g7.prototype.clear.call(this)}; +g.y.show=function(){var X;(X=this.headline)==null||X.show();var c;(c=this.adAvatar)==null||c.show();this.adGridCardCollection.show();this.adButton.show();g7.prototype.show.call(this)}; +g.y.hide=function(){var X;(X=this.headline)==null||X.hide();var c;(c=this.adAvatar)==null||c.hide();this.adGridCardCollection.hide();this.adButton.hide();g7.prototype.hide.call(this)}; +g.y.MK=function(X){X==="transitioning"?(this.U.classList.remove("ytp-ad-underlay-clickable"),this.show()):X==="visible"?this.U.classList.add("ytp-ad-underlay-clickable"):X==="hidden"&&(this.hide(),this.U.classList.remove("ytp-ad-underlay-clickable"))};g.E(fh,Q0); +fh.prototype.init=function(X,c){Q0.prototype.init.call(this,X,c,{});if(c.attributes===void 0)g.Ni(Error("No attributes found in AdDetailsLineViewModel."));else if(c.style===void 0)g.Ni(Error("No style found in AdDetailsLineViewModel."));else{X=g.r(c.attributes);for(var V=X.next();!V.done;V=X.next())if(V=V.value,V.text!==void 0){V=V.text;var G=c.style,n=new MA(this.api,this.layoutId,this.interactionLoggingClientData,this.gy);g.N(this,n);n.uc(this.element);a:switch(G){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":G="ytp-ad-details-line__text--style-responsive"; +break a;default:G="ytp-ad-details-line__text--style-standard"}n.element.classList.add(G);n.init(HR("ad-simple-attributed-string"),new lG(V));this.J.push(n)}this.show()}}; +fh.prototype.show=function(){this.J.forEach(function(X){X.show()}); +Q0.prototype.show.call(this)}; +fh.prototype.clear=function(){this.hide()}; +fh.prototype.hide=function(){this.J.forEach(function(X){X.hide()}); +Q0.prototype.hide.call(this)};g.E(ph,Q0);ph.prototype.init=function(X,c){Q0.prototype.init.call(this,X,c,{});var V,G;(X=((G=t6(((V=c.image)==null?void 0:V.sources)||[]))==null?void 0:G.url)||"")&&X.length?(V=this.I2("ytp-image-background-image"),g.$v(V,"backgroundImage","url("+X+")"),c.blurLevel!==void 0&&g.$v(V,"filter","blur("+c.blurLevel+"px)"),c.gradient!==void 0&&(c=new g.z({N:"div",xO:["ytp-image-background--gradient-vertical"]}),g.N(this,c),c.uc(this.element)),this.show()):g.Ni(Error("Failed to get imageUrl in ImageBackground."))}; +ph.prototype.clear=function(){this.hide()};g.E(zKt,nZ);g.y=zKt.prototype;g.y.init=function(X,c){nZ.prototype.init.call(this,X,c,{});g.$v(this.U,"stroke-dasharray","0 "+this.G);this.show()}; +g.y.clear=function(){this.hide()}; +g.y.hide=function(){dR(this);nZ.prototype.hide.call(this)}; +g.y.show=function(){LZ(this);nZ.prototype.show.call(this)}; +g.y.Jn=function(){this.hide()}; +g.y.Jv=function(){if(this.J){var X=this.J.getProgressState();X!=null&&X.current!=null&&g.$v(this.U,"stroke-dasharray",X.current/X.seekableEnd*this.G+" "+this.G)}};g.E(I$,Q0); +I$.prototype.init=function(X,c){Q0.prototype.init.call(this,X,c,{});if(K0s(c)){this.adAvatar=new R$(this.api,this.layoutId,this.interactionLoggingClientData,this.gy);g.N(this,this.adAvatar);this.adAvatar.uc(this.I2("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(HR("ad-avatar"),g.T(c.adAvatar,Ny));this.headline=new MA(this.api,this.layoutId,this.interactionLoggingClientData,this.gy);g.N(this,this.headline);this.headline.uc(this.I2("ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"));this.headline.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline"); +this.headline.init(HR("ad-simple-attributed-string"),new lG(c.headline));if(X=g.T(c.adDetailsLine,yEU))this.detailsLine=new fh(this.api,this.layoutId,this.interactionLoggingClientData,this.gy),g.N(this,this.detailsLine),this.detailsLine.uc(this.I2("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(HR("ad-details-line"),X);this.adButton=new bM(this.api,this.layoutId,this.interactionLoggingClientData,this.gy,!0);g.N(this,this.adButton); +this.adButton.uc(this.I2("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(HR("ad-button"),g.T(c.adButton,T0));this.adBadge=new gR(this.api,this.layoutId,this.interactionLoggingClientData,this.gy,!0);g.N(this,this.adBadge);this.adBadge.uc(this.X);this.adBadge.init(HR("ad-badge"),g.T(c.adBadge,U0));this.adInfoButton=new cB(this.api,this.layoutId,this.interactionLoggingClientData,this.gy,this.element,void 0,!0);g.N(this,this.adInfoButton);this.adInfoButton.uc(this.X); +this.adInfoButton.init(HR("ad-info-hover-text-button"),g.T(c.adInfoRenderer,pA),this.macros);if(X=g.T(c.skipAdButton,WLM))this.skipAdButton=new tT(this.api,this.layoutId,this.interactionLoggingClientData,this.gy),g.N(this,this.skipAdButton),this.skipAdButton.uc(this.element),this.skipAdButton.init(HR("skip-button"),X);this.G=new m8(c.durationMilliseconds);g.N(this,this.G);if(X=g.T(c.countdownViewModel,FLV))this.J=new zKt(this.api,this.layoutId,this.interactionLoggingClientData,this.gy,this.G),g.N(this, +this.J),this.J.uc(this.I2("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.J.init(HR("timed-pie-countdown"),X);if(c=g.T(c.imageBackground,YLA))this.imageBackground=new ph(this.api,this.layoutId,this.interactionLoggingClientData,this.gy),g.N(this,this.imageBackground),this.imageBackground.uc(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(HR("image-background"), +c);this.show();this.element.focus()}}; +I$.prototype.clear=function(){g.l5(this.U);this.hide()}; +I$.prototype.show=function(){BtL(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();Q0.prototype.show.call(this)}; +I$.prototype.hide=function(){BtL(!1);this.adAvatar&&this.adAvatar.hide();this.headline&&this.headline.hide();this.adButton&&this.adButton.hide();this.detailsLine&&this.detailsLine.hide();this.adBadge&&this.adBadge.hide();this.adInfoButton&&this.adInfoButton.hide();this.skipAdButton&&this.skipAdButton.hide();this.J&&this.J.hide();this.imageBackground&&this.imageBackground.hide();Q0.prototype.hide.call(this)};g.E(uM,g.$T);g.y=uM.prototype;g.y.Bp=function(){return 1E3*this.api.getDuration(this.E0,!1)}; +g.y.stop=function(){this.J&&this.kc.Hd(this.J)}; +g.y.er=function(){var X=this.api.getProgressState(this.E0);this.G={seekableStart:X.seekableStart,seekableEnd:X.seekableEnd,current:this.api.getCurrentTime(this.E0,!1)};this.publish("h")}; +g.y.getProgressState=function(){return this.G}; +g.y.ye=function(X){g.QP(X,2)&&this.publish("g")};var Kmi="ad-attribution-bar ad-channel-thumbnail advertiser-name ad-preview ad-title skip-button visit-advertiser".split(" ").concat("shopping-companion action-companion image-companion ads-engagement-panel ads-engagement-panel-layout banner-image top-banner-image-text-icon-buttoned".split(" "));g.E(Px,Dt); +Px.prototype.X=function(X){var c=X.id,V=X.content,G=V.componentType;if(!Kmi.includes(G))switch(X.actionType){case 1:X=this.api;var n=this.gy,L=V.layoutId,d=V.interactionLoggingClientData,h=V instanceof XC?V.WR:!1,A=V instanceof XC||V instanceof eM?V.Rj:!1;d=d===void 0?{}:d;h=h===void 0?!1:h;A=A===void 0?!1:A;switch(G){case "invideo-overlay":X=new YlD(X,L,d,n);break;case "player-overlay":X=new Ty(X,L,d,n,new uM(X),A);break;case "player-overlay-layout":X=new lM(X,L,d,n,new uM(X));break;case "survey":X= +new ec(X,L,d,n);break;case "ad-action-interstitial":X=new L0s(X,L,d,n,h,A);break;case "video-interstitial-buttoned-centered":X=new I$(X,L,d,n);break;case "survey-interstitial":X=new JT(X,L,d,n);break;case "ad-message":X=new EYS(X,L,d,n,new uM(X,1));break;case "player-underlay":X=new QpD(X,L,d,n);break;case "display-underlay-text-grid-cards":X=new Pf1(X,L,d,n,new uM(X));break;default:X=null}if(!X){g.UQ(Error("No UI component returned from ComponentFactory for type: "+G));break}g.mH(this.G,c)?g.UQ(Error("Ad UI component already registered: "+ +c)):this.G[c]=X;X.bind(V);V instanceof ia?this.U?this.U.append(X.Tu):g.UQ(Error("Underlay view was not created but UnderlayRenderer was created")):this.Z.append(X.Tu);break;case 2:c=spD(this,X);if(c==null)break;c.bind(V);break;case 3:V=spD(this,X),V!=null&&(g.Ap(V),g.mH(this.G,c)?(V=this.G,c in V&&delete V[c]):g.UQ(Error("Ad UI component does not exist: "+c)))}}; +Px.prototype.R2=function(){g.YU(Object.values(this.G));this.G={};Dt.prototype.R2.call(this)};g.E(CfS,g.wh);g.y=CfS.prototype;g.y.create=function(){try{Dt8(this),this.load(),this.created=!0,Dt8(this)}catch(X){FX(X instanceof Error?X:String(X))}}; +g.y.load=function(){try{qll(this)}finally{Kq(E0(this.J).D_)&&this.player.Fj("ad",1)}}; +g.y.destroy=function(){var X=this.player.getVideoData(1);this.J.J.SM.y6(X&&X.clientPlaybackNonce||"");this.unload();this.created=!1}; +g.y.unload=function(){g.wh.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(c){FX(c instanceof Error?c:String(c))}if(this.G!=null){var X=this.G;this.G=null;X.dispose()}this.U.reset()}; +g.y.Ut=function(){return!1}; +g.y.getAdState=function(){return-1}; +g.y.getOptions=function(){return Object.values(BAV)}; +g.y.AC=function(X,c){c=c===void 0?{}:c;switch(X){case "replaceUrlMacros":return X=c,X.url?(c=wX2(this.player),Object.assign(c,X.psy),X=g.l_(X.url,c)):X=null,X;case "onAboutThisAdPopupClosed":this.OY(c);break;case "executeCommand":X=c;X.command&&X.layoutId&&this.executeCommand(X);break;default:return null}}; +g.y.Ob=function(X){var c;return!((c=this.J.J.VC)==null||!c.get().Ob(X))}; +g.y.OY=function(X){X.isMuted&&E78(E0(this.J).MQ,E0(this.J).aX,X.layoutId);this.iP&&this.iP.OY()}; +g.y.executeCommand=function(X){E0(this.J).gy.executeCommand(X.command,X.layoutId)};g.uO("yt.player.Application.create",g.Wn.create);g.uO("yt.player.Application.createAlternate",g.Wn.create);K9s(gv(),zsi);var sF_=g.Pw("ytcsi.tick");sF_&&sF_("pe");g.Wr("ad",CfS);g.E(g.Kh,g.I);g.Kh.prototype.start=function(X,c,V){this.config={from:X,Z8:c,duration:V,startTime:(0,g.ta)()};this.next()}; +g.Kh.prototype.stop=function(){this.delay.stop();this.config=void 0}; +g.Kh.prototype.next=function(){if(this.config){var X=this.config,c=X.from,V=X.Z8,G=X.duration;X=X.startTime;var n=(0,g.ta)()-X;X=this.J;G=XIw(X,n/G);if(G==0)X=X.D;else if(G==1)X=X.T;else{n=W1(X.D,X.Z,G);var L=W1(X.Z,X.B,G);X=W1(X.B,X.T,G);n=W1(n,L,G);L=W1(L,X,G);X=W1(n,L,G)}X=g.am(X,0,1);this.callback(c+(V-c)*X);X<1&&this.delay.start()}};g.E(g.s0,g.z);g.y=g.s0.prototype;g.y.hasSuggestions=function(){return this.suggestionData.length>0}; +g.y.K5=function(){this.G&&this.scrollTo(this.scrollPosition-this.containerWidth)}; +g.y.show=function(){g.z.prototype.show.call(this);LUM(this)}; +g.y.C5=function(){this.G&&this.scrollTo(this.scrollPosition+this.containerWidth)}; +g.y.D0=function(){this.Ky(this.api.CS().getPlayerSize())}; +g.y.Ky=function(X){var c=this.api.isEmbedsShortsMode()?.5625:16/9,V=this.api.jO();X=X.width-(V?112:58);V=Math.ceil(X/(V?320:192));var G=(X-V*8)/V;c=Math.floor(G/c);for(var n=g.r(this.J),L=n.next();!L.done;L=n.next())L=L.value.I2("ytp-suggestion-image"),L.style.width=G+"px",L.style.height=c+"px";this.suggestions.element.style.height=c+"px";this.X=G;this.T=c;this.containerWidth=X;this.columns=V;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.Ch(this)}; +g.y.onVideoDataChange=function(){var X=this.api.j(),c=this.api.getVideoData();this.B=c.O5?!1:X.X;this.suggestionData=c.suggestions?g.HI(c.suggestions,function(V){return V&&!V.playlistId}):[]; +ysA(this);c.O5?this.title.update({title:g.xa("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:c.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"More shorts":"More videos"})}; +g.y.scrollTo=function(X){X=g.am(X,this.containerWidth-this.suggestionData.length*(this.X+8),0);this.D.start(this.scrollPosition,X,1E3);this.scrollPosition=X;g.Ch(this);LUM(this)};})(_yt_player); diff --git a/src/test/resources/com/github/felipeucelli/javatube/base/91201489-player_ias_tce.vflset-en_US.txt b/src/test/resources/com/github/felipeucelli/javatube/base/91201489-player_ias_tce.vflset-en_US.txt new file mode 100644 index 0000000..d887e54 --- /dev/null +++ b/src/test/resources/com/github/felipeucelli/javatube/base/91201489-player_ias_tce.vflset-en_US.txt @@ -0,0 +1,13809 @@ +var _yt_player={};(function(g){var window=this;/* + + Copyright The Closure Library Authors. + SPDX-License-Identifier: Apache-2.0 +*/ +/* + + Copyright Google LLC + SPDX-License-Identifier: Apache-2.0 +*/ +/* + + Copyright Google LLC All Rights Reserved. + + Use of this source code is governed by an MIT-style license that can be + found in the LICENSE file at https://angular.dev/license +*/ +/* + + (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). +*/ +/* + + + The MIT License (MIT) + + Copyright (c) 2015-present Dan Abramov + + 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. +*/ +'use strict';var H_="vXJxPM6{{shift{,[;,/[{undefined{1970-01-01T02:01:22.000+02:00{1970-01-01T01:16:24.000+01:15{1969-12-31T12:15:15.000-11:45{PxJZLyx-tJMuZ0BxuL-_w8_{instanceof{local{mn{,{/videoplayback{playerfallback{1{fvip{rr{r{---{fallback_count{\\.a1\\.googlevideo\\.com${\\.googlevideo\\.com${redirector.googlevideo.com{rr?[1-9].*\\.c\\.youtube\\.com${www.youtube.com{cmo=pf{cmo=td{a1.googlevideo.com{Untrusted URL{:{/initplayback{/api/manifest{/{index.m3u8{/file/index.m3u8{://{//{={?{&{cmo{cmo={%3D{youtube.player.web_20250305_01_RC00".split("{"), +fn,zp8,Hnc,Cn,f6a,LZu,EA,uaY,nn,SA6,gc,Z6,Gu,X_Z,vv8,y8A,IJ,A8,qAn,MYp,CLk,tY8,sA,B_,P_,aJ,UA,c_,EvJ,iL,V9,mZ,nvv,gvA,Znk,Gu_,$ku,fs,jJ_,FZ6,ys,qs,Ms,Onn,ovn,J89,Ncp,I6_,A8Y,YA6,r8n,ps,sJa,gJ,Bc6,c8Z,ZL,inA,hpZ,$O,WZp,OT,Jt,sT,Bu,Pu,au,Dk_,KZA,UT,ht,cu,VYL,dkn,mka,w_p,Wu,kuL,DL,Ks,Vs,Tc8,ep_,mB,RpY,Qu9,fr,zmc,Xk,Hsa,fLp,u4,bsn,LBY,uxJ,pr,STc,vOv,EOa,G7,t5k,qTZ,nOp,Zsc,$sJ,jj,Fk,O2,JC,oG,FBY,Os8,NI,IG,AC,BY,PY,aG,U2,cY,i4,ILk,hC,Kr,Atp,YTY,d7,w7,PRu,l4,zi,fS,aLZ,Ho,UsZ,ct_,b5,RG,LS,u5,is_,SX,vo,WB9, +yr,q4,M4,KBp,Gi,V5a,ds9,ms_,Ds9,Zc,pS,CS,wuL,kY9,emZ,lLa,Rm9,Fc,xt,O7,QG_,zW6,Jn,Lzk,XYa,Hr9,S2u,uka,brp,f3A,vT_,IU,yCa,Yt,An,Mj_,Po,s7,C4A,aU,U7,i5,co,Wo,hn,wC,Dc,Vr,dC,ET9,Ti,pY_,eX,l5,Hq,fw,br,RU,zH,Q3,ur,S4,XP,nTA,bR,vq,qo,KS,m8,Mo,ZrZ,Cw,S5,tc,E$,pw,nw,gq,Zu,GH,G7Y,$f,$Ip,j4,jG_,O$,xf,o0,Jc,No,I0,Ac,Fzc,OrL,rq,oT9,JCa,s$,Bq,U$,I3c,cq,ACY,ir,rCZ,hc,B7u,Wq,Du,Kw,P4p,V3,a3A,dq,UI_,cCZ,irY,m6,hWu,wq,kf,e4,lr,DI6,zU,dIL,Wzu,HJ,bz,L$,wY_,uz,X3,k7c,eWA,l3v,vJ,yo,qO,MO,C$,tb,EK,QU_,zeL,HSJ,bSZ,L8v,p$, +ucJ,S79,n$,g$,ZT,GU,Xou,MXZ,C5c,Et9,tXY,pok,gt9,xg,OK,o$,Jb,NO,Ab,Yg,jUY,sK,PJ,a$,UK,iz,WJ,F8Y,DT,K$,d$,OSA,otn,mT,kg,TU,lz,R$,z2,H3,BC6,P5L,acJ,U4L,fC,bQ,cnv,iS8,heJ,LC,uQ,Sa,XV,v3,t6,pC,G2,xs,W8c,D48,Ys,K8A,iQ,h6,m4_,lcc,TCc,Q0Z,KC,V4,lQ,fuv,L6p,bwJ,Qp,Hx,uPc,zl,Sz,Dz,Xqv,S$a,MK,qK,W3,Cm,tU,E0,vfn,pm,q$v,ZN,M4Z,Gl,$Z,jz,FU,Cru,t4p,EfA,O0,pqn,nfL,fcn,IK,gf_,Zwu,GHn,j0L,$on,NK,AU,YZ,F6a,xoZ,Owc,ofZ,rf,Jcu,s0,ync,vtJ,Bx,Px,U0,cx,Ac_,iT,hU,DN,Y$J,rcv,Km,Uok,lT,Bqc,auY,mU,df,H4,fg,cc_,SL,iwZ,Xr,v4,hou, +Dov,Cg,V4k,EE,pg,dou,moJ,Zl,$r,eo6,RoZ,Q$v,zOA,jL,LTu,ng,kHc,SKJ,b$J,H$a,fTn,XJ8,u3L,xr,lu6,Jj,ybA,qKA,MeY,Cz_,te_,IR,Egu,Yr,taJ,nsu,gsZ,re,sE,aR,hj,G26,W4,Dl,Kg,$zv,jI9,m_,FSv,we,kr,os8,Nau,A69,Izu,Yrc,eL,Q$,bu,uu,SB,X0,vn,y$,Bak,PQc,qa,azJ,Ma,CW,LW,tp,Eo,pW,Ls,nW,UzL,ZW,hfJ,GA,$M,jB,WSJ,Dz6,KS6,VaL,F0,dz8,xM,Oo,w3k,ef8,lzu,o6,HmZ,z4A,fNv,bma,LUc,Jp,uUk,RfJ,Na,S0A,Xxn,I6,yUu,q0u,Mz8,CTA,tzn,rB,EZ9,pxk,nZa,gZc,$Kv,Zma,so,Bn,Pn,a6,Uo,cn,iu,Wn,FU9,KW,DW,xK6,V$,Omv,dB,oZa,JUp,Nf8,INZ,mv,kM,rUL,wB,sK8, +TA,eB,Bfv,lu,R6,Qf,zn,HQ,f7,imc,PTL,SF,cUu,XA,UKL,ul,bl,aN_,L7,yf,WU_,M7,q7,n7,gj,Gn,VzZ,Zy,FA,dKu,xq,DK9,klu,TfJ,e4A,Jk,N7,I2,lNL,Ak,Yq,rj,sa,R4k,BQ,PQ,hk,QRp,zUa,WQ,Hg_,L_k,k2A,bgk,ur9,SEA,X4_,fl9,yj9,Dy,K7,Vf,qEL,mG,dj,MLu,Cd9,tLL,eF,Er8,ll,R2,p48,Qy,grJ,z9,nrJ,Zgp,GMn,$Hn,HI,fl,bV,Ll,uV,St,XY,jR_,vI,yy,qT,F_Y,Ogv,orc,Cl,En,t5,nl,gA,Zk,Nev,Il9,G9,$3,jt,YE9,rj9,Pd_,sRY,alL,hUk,FY,ign,UHp,x3,On,W_J,os,DHn,J5,VLp,K_v,dH9,mH6,Y3,rA,w4c,kMp,Teu,sn,BI,eUY,PI,llc,RU8,zZ9,Lvp,as,u0n,SoZ,XnJ,vMZ,ypu,iV, +qov,MBA,CuA,mo,dA,Vy,tBc,EMp,pnL,wA,k3,T9,gML,zJ,Hr,fh,bW,Lh,uW,GAZ,$ac,j6L,S$,vr,yY,ph,nh,GJ,xa8,oMa,OWn,JpY,NBa,o3,IW6,Ap9,Jx,YoJ,rpn,s6v,BBn,Pr,si,a3,Ui,cr,PuJ,aWc,Uaa,iW,hx,cpn,Wr,iWZ,hZc,Wvc,D5,Dac,Kh,VY,KvL,VB9,dan,maY,wnv,kAc,dW,mE,wW,TJ,lWn,e$,lW,RZa,eZn,ke,Q28,R3,QP,zN,f8,Hk,z8v,H79,fyY,b2,LG6,L8,Sap,XQL,vqn,ykc,qaY,MFL,Cl6,tFL,Xq,vk,yP,pQ9,Eqa,nqp,gq_,M3,Z7Y,C8,GnA,$7k,tP,E6,p8,j2_,n8,gd,FGL,ZP,GN,$B,j0,Fq,xB,O6,oL,x7n,O76,oq6,JkJ,JP,Njn,Akp,IyA,IL,AP,rk9,YaY,Plu,ck9,U7Z,YB,i7J,h8p,WG8, +KGn,D7k,VFZ,rd,d7L,m7J,Bk,wQc,knc,TjJ,e8A,Pk,lyv,aL,R8J,U6,ck,zlc,i2,HlJ,hP,Wk,fkA,bl_,DP,VP,uYL,dd,LoZ,Sn9,XI_,v38,qn8,m4,Mt6,TN,e0,ttA,E3n,g3Y,Zl8,l2,RL,QK,zO,Hz,f5,bp,L5,up,S_,Xg,vz,yK,FoL,js_,xTc,o3u,Olp,NAv,$Tu,J5u,G9A,qN,MN,A5L,Ynp,r5L,p5,n5,gN,C5,BAY,ZR,Ikv,akc,UTA,PVA,GO,$W,j_,Fg,c5_,ssJ,il8,xW,hl8,Woa,DTv,KoY,Vtk,wI6,k98,TA6,el9,JZ,Rl8,Q36,f5L,bh6,AZ,uLv,YW,Ie,XrJ,Sia,qiL,s4,Pz,CW8,t$u,Ee8,prY,gea,cz,U4,Zhn,neZ,$28,FE_,I5v,Wz,AxY,hZ,K5,Yi9,VK,ms,wN,rxv,s3n,fZ,BW9,LZ,PW6,a5c,tD,U2k,ihJ,EF, +h_L,WEk,m2k,D2_,Zx,Ge,$F,F9,xF,l5Y,OF,oH,JD,QL8,AD,zuL,H8c,YF,b8u,sF,BO,PO,aH,L4_,UF,hD,WO,Dx,KZ,uqn,S6Y,Xku,dv,mg,wv,kF,Te,eK,vBv,yP9,q6L,M06,C26,t0Z,ln,EBJ,LT,pka,nBJ,gBc,uq,Xy,v5,yX,CT,tu,E9,GNa,gw,ZV,G5,$3L,jL9,$c,F4u,x3u,Fy,rPa,sLu,Bdn,xc,P2n,aP8,i8Y,of,W4Y,huA,NU,K48,V0Y,d39,Au,Yc,m3A,rw,s9,B5,P5,af,U9,c5,iq,hu,W5,VX,dw,mk,ww,wkn,kN9,Td9,T5,lq,euv,H2,f1,bv,L1,uv,XZ,v2,zRv,yC,qn,Mn,fRv,H5L,lPJ,EM,tF,S4J,p1,OM,jT,on,JF,vW6,M_A,In,EW_,Cpp,t_a,nWv,jeL,gWn,GOu,$N9,Y7,AF,Fsa,sM,B2,P2,xNn,W2,O5n,DK, +K1,dR,oWv,wR,k7,JZc,Tr,eT,IR6,Qh,Hw,fF,bh,LF,uh,Ss,XX,vw,yh,Y4J,q0,tq,CF,se6,UNa,Pp6,aRZ,cZZ,i5a,WsZ,DN6,hR9,V_v,nF,gD,$Q,dNa,mNc,Gd,js,kOk,TNJ,QHa,RRc,o4,Jq,N0,I4,Aq,rD,HZa,fxa,bZA,ih,hq,LgA,u9Y,SF6,dD,m3,wD,XOu,vFp,qFk,Cnk,lh,tKp,za,R4,b0,Lf,S9,EFu,t1,Ee,pf,nf,ZE,Ga,j9,Gev,$Pc,xw,jH8,Fgu,oE,xPv,OZ9,J1,NV,oF_,JDY,Ixv,rG,YFY,rD_,A1,sHa,Bvn,ax9,Pn6,aE,ADJ,cDA,iZL,DE,h1,hEZ,Wgv,Kf,V5,DP6,KgL,wG,VKc,dPL,mPv,wO_,RE,keL,TvL,eEk,lx9,RE8,Qf6,z$Z,HT_,zK,fVp,fc,LkJ,uyk,S9u,X5a,vcZ,bS,yH,q96,tyv,qR,Ecp,nc9, +yu8,gcn,ZTY,G5a,MyL,Cqa,Lc,uS,vU,p5A,Xd,Si,$Up,jfA,Fk9,xU9,OTu,ocY,Y9Z,JuL,E5,pc,g2,BwJ,UUu,aVp,nc,$C,cuL,IW,iTL,Wkn,BU,h$Z,e$L,DU8,Twk,cU,lVA,zz8,iS,U5,R$J,Qna,H1J,WU,b1u,LWv,uZu,SMZ,X2c,v7Y,yF_,fKk,MTL,CvL,tTA,p29,E7J,g7L,d2,Z19,mu,w2,kC,Gr6,$nu,lS,RW,FW_,jnc,Q7,xn9,o7a,NR6,JF_,IKv,rFn,AF_,qA,tL,Ct,snJ,MA,Eb,pt,nt,g6,BRk,xk,aKY,JL,ow,Iw,AL,Yk,Una,r6,Bb,cF_,aw,cb,i8,i18,hz9,WWc,Dnp,hL,D7,KWY,Kt,V7,d6,dnZ,mC,w6,mna,Tw,Rw,l8,ev,Qa,z6,TRn,HF_,bF9,zMv,Q4c,fQa,bU,SZ,XwY,L3L,uXu,SPp,kr_,nQA,n2,pwJ,Gd_, +EQp,f2,gl,qX,EX,gQA,vT,lKc,ezA,RzA,uU,tsp,jZ,oQv,FG,NDZ,IQ6,Aq6,OX,YPp,rq_,s4n,Ph9,aQZ,NX,cqL,Ix,iFY,hMk,D0c,K3Y,YG,VsJ,m0p,rl,wwZ,sX,BT,y5,QEA,Lxk,hl,Se6,y1a,Dw,M9u,C0L,t9a,Ewu,QR,pHc,lU,Pqa,T6,Rx,eZ,K2,Xp,SE,yR,Mt,gwY,Ca,Ec,pa,ZfA,GaY,Zv,jEn,Fx6,xV8,Ofn,ow9,J1_,NGA,IEp,A16,Ye8,xj,r1c,Oc,JB,sE_,BGp,P0n,Nt,aEA,UVJ,rs,sc,Bf,c1J,Pf,ifJ,Uc,Wxa,hrv,iI,hB,Wf,Dv,DVk,Ka,VR,KxY,V98,ds,mX,ka8,dVZ,wHJ,mVZ,ws,kj,T8,TGa,er6,lEu,eE,QWp,fg_,Hcn,lI,Rv,Q_,zS,H6,bA,Lp,uA,Sh,XS,v6,bcZ,Lu6,ud_,y_,qZ,MZ,Cp,Ex,np,vCZ, +XUZ,Zh,y$9,GS,$U,jh,FS,xU,JT,NZ,IQ,AT,YU,rU,sx,B6,P6,aQ,Ux,CS9,iA,W6,tiZ,Dh,pU9,nCA,gC8,GKn,jWZ,kU,Fup,eh,TS,oCv,J$Y,N2Z,RQ,Qv,A$k,HC,fj,bb,Lj,r$L,ub,SV,X7,sWu,Gv,Y5_,$x,jV,PSv,B29,F7,xx,OS,oo,Nq,UR_,c$n,AN,Yx,sS,BC,icc,rE,DR_,Ku9,Viu,dR9,mRc,wUp,kKL,ao,PC,Wu_,lgu,US,Qwk,zSv,DA,HtY,ib,hN,f7L,Kj,LCA,Sb6,Vv,dE,Xba,wE,yL6,kx,pbp,tv8,qbJ,C8u,MvZ,eV,lb,Ro,QT,zp,Hm,f4,bG,gkp,$An,Sd,LEc,Xh,jw9,xA8,yT,tr,qr,C4,Mr,JLA,okv,Otk,N6A,E1,I7v,swk,p4,gt,P8A,Zt,Gp,$S,jd,a7n,Fh,UAa,cLk,O1,It,Ar,YS,rt,s1,Bm,Pm,at,U1, +cm,iG,hr,Wm,itL,hS6,Dt,K4,VT,dt,mt,wt,WC6,DA6,kS,vX,dAa,mAZ,yd,qx,nP,gh,kwA,$9,x9,T66,l7c,eS9,RSJ,Qxp,ztL,H2c,fw9,b28,uGu,LQv,SXA,yl8,MZ6,vGY,o7,J_,tZp,CUv,Nx,I7,A_,pTa,Y9,rh,sl,gGc,Z2A,BX,nGZ,PX,jxZ,a7,Ul,cX,i1,h_,WX,Do,KP,Vd,dh,md,wh,k9,TL,e7,l1,R7,QN,zg,He,fq,bx,Lq,ux,SU,Xi,ve,yN,q9,M9,Cq,tm,Ed,pq,nq,g1,Zs,Gg,$L,jU,Fi,xL,Od,oX,Jm,N9,IX,Am,YL,r1,sd,Be,Pe,aX,Ud,ce,ix,hm,We,Ds,Kq,VN,d1,mc,w1,kL,Tg,eU,lx,RX,z3,Ha,xXJ,fN,e,bY,QJ,LN,uY,So,oGA,va,Nla,XE,IwL,qf,Al_,CN,yJ,tO,EV,pN,g4,rlv,sxc,Bl6,PU8,JO, +Nf,FE,IT,UX_,cl9,i2a,ht8,YXp,WQ6,nN,DXv,KQv,YJ,aT,r4,G3,VZ8,ZS,AO,sV,UV,mXu,$J,jo,Pa,Ba,wTL,ca,iY,hO,Wa,k6A,DS,KN,VJ,d4,mm,Tl8,etv,Rta,Qv8,T3,eo,lY,RT,LXc,Scn,vjA,yB9,z4,MEA,CI_,Sx,tEL,X5,vD,yx,qS,MS,Ci,Ej_,nj6,gj6,pfJ,Zac,G8a,ni,gP,G4,jx,F5,OB,$tp,oh,jvp,JX,NS,ZI,Yy,rP,sB,BD,FXv,AX,Oan,PD,ojA,JBn,ah,Nsu,UB,cD,Iva,ABu,ic,Yc6,rBc,hX,svv,Bsn,PIJ,av_,WD,DI,Utp,cBk,Ki,Vx,dP,iac,mJ,wP,ky,T4,hIL,ex,lc,WXa,Rh,DtJ,QQ,KX_,VEv,dt6,mtL,wfv,k8k,zR,Tsn,eIn,lvA,Ht,RIp,fG,QQ8,ba,zvv,LG,Hp8,fh_,ua,qC,bpp,MC,CG,tI, +Eh,L5Z,pG,nG,g5,uSn,Sxk,GR,$K,vU6,jM,yTv,qxa,X6p,MhJ,CAu,thp,xK,EUZ,Oh,oj,JI,NC,p6p,Ij,AI,r5,nUA,sh,Bt,gUc,aj,ia,Uh,KG,VQ,Zpn,d5,GSA,w5,kK,TR,$Zp,la,jQu,QA,zs,Hs,Wt,f3,bZ,L3,F58,uZ,SP,X$,xZ9,vs,yA,q6,M6,C3,EU,p3,n3,gp,Opk,oU9,JTL,NUY,jP,ZF,wp,k6,IhZ,AT_,Yxc,Ts,eP,lZ,rT9,sQp,$6,BUc,PAp,Rm,ahv,Qu,zE,fx,bC,Lx,uC,Sm,vR,yu,Mv,Cx,tG,EH,qv,ipc,hvc,nx,gn,Z$,W56,$d,K5Y,jm,Fn,VhY,xd,OH,oc,Nv,dZ6,JG,Ic,AG,Yd,mZu,BR,kS9,TUY,PR,ac,evn,lhc,Rv_,UH,zAv,GE,Qop,Hj8,cR,fAn,iC,bjc,hG,Ly8,u7n,SSa,XCZ,vxL,WR,qSA,yNY,D$, +dn,MVa,mn,Cbn,wn,tVp,Ex8,kd,pCu,nxk,gxn,Zja,TE,GvY,em,jo8,Rc,Q0,xq8,Fya,Oj8,oxa,JNL,HZ,f6,bB,NEc,IAa,ANJ,YSu,rNL,sou,BEu,PbY,aAA,Uq8,uB,Sp,cNu,ijJ,XO,vZ,hAk,y0,qM,C6,Wy9,t2,Ev,p6,DqJ,n6,Kyc,g0,VVa,Zi,dqn,mqv,GT,wC8,kvp,TEv,$E,jp,FO,xE,Ov,eA_,lAn,o9,J2,NM,RAZ,I9,A2,YE,r0,BZ,Qtu,zJu,PZ,a9,H4n,Uv,cZ,iB,h2,lw_,ft_,b4n,WZ,LtA,uha,S1p,Di,K6,V0,d0,m9,w0,kE,TT,ep,lB,R9,Xmn,vSn,ug,SG,yra,X4,Ey,yb,gg,pma,$rp,nSc,jtk,xrn,O4J,Fta,oSa,JrA,Ntp,Uy,Y1Y,stL,PGL,atn,UrA,hA,Wc,i4Y,hJn,Vdn,Dq,drp,Wtc,KY,Vb,dg,me,wmc, +eJa,kpk,Q7v,Slp,umn,zY8,XXa,kN,fo8,HPu,qla,t7Z,C1_,g98,E9u,TC,eG,Fd_,QL,xx9,YlA,A_c,Iou,Nh6,o99,Bha,s7c,J_v,iPZ,c__,hY_,LQ,Kdv,Wd8,DxZ,OPv,V7Z,dxk,zx,fQ,aoY,P1L,Ux9,mx9,HS,r_9,kLJ,eYk,RYA,zkY,bqY,Lcn,Sdc,Xe9,ymk,vLZ,ELa,MUk,qdJ,peY,ZqZ,Ggp,$99,jXJ,pQ,rr_,OqL,Fcu,ZO,N1u,$H,Amn,YdA,Isc,j3,rmp,FM,xH,tX,OD,Aru,oa,J7,ND,sXA,B1v,Ia,PxZ,as_,U9Z,A7,YH,rM,sD,BS,PS,aa,UD,cS,cmu,iqn,i6,hkv,h7,Vu,WS,DO,D9A,Wcc,KQ,Kca,VUZ,VL,dM,d9n,mi,m9L,weY,Btk,JmL,kgu,wM,EB,kJ,u6,T1_,ekn,Tx,j79,lg,lsn,nQ,gM,XM,S3,wg,yL,Hqa, +ui9,vS,ZP9,nL8,Rk_,v9v,bPZ,e3,oLJ,ig,zF8,QTa,mr9,fsA,HN_,gL_,t7,GLn,$xa,M7n,QXZ,lo9,RJJ,Tt8,KtL,Dr_,cra,wXp,LdL,Cxp,pXc,n9A,MD,CQ,qD,tUa,Th8,bNY,fS6,l6,Ra,Q1,z0,HB,LE,X_,vB,y1,q1,CE,tK,Lmp,fE,bM,M1,SV6,uEA,EW,XaZ,vJJ,nE,yO_,qV_,gZ,ZJ,G0,$A,jJ,F_,xA,OW,EJp,JK,oA,pap,CY8,to_,nJ8,N1,IA,gJ6,ZNY,AK,G3J,vH,jTZ,$f8,xfZ,oJY,JOA,ONY,N4a,YVZ,aA,UW,rOa,sTu,cB,iM,B4Y,PYY,aSp,Uf_,WB,KE,V1,iNL,hF9,Km6,dfv,mfZ,VoZ,wZ,T0,kA,waZ,k3c,dZ,T4v,eFY,lS8,RFp,mN,fIn,biY,LJp,HiA,zL_,QhA,u5n,SBv,WmZ,XDk,DfZ,vyp,yXp,tx9,qB8, +MxZ,Cca,nyA,Eyv,pD9,gy6,ZiL,lM,jhp,G4Z,FJA,$SJ,xSY,OiL,oya,JXZ,NPv,IIu,AXL,YBk,rXJ,sh_,BPZ,Pcc,RA,USa,cXJ,iiL,aI_,hL_,WJZ,Vxu,zQ,b$,u$,dSn,Sl,XC,vM,TPY,lIu,eLa,Qj_,XtY,nu,qB,RLn,k4v,wDk,mSk,pu,MB,EY,jl,FC,qhZ,xo,OY,$o,EKJ,MMc,CaY,ptv,or,J0,gKn,Ir,A0,Yo,r8,sY,BM,PM,ZG_,GRJ,ar,UY,i$,jjL,Fqp,cM,h0,oKk,JIu,WM,N5J,VZ,IUA,d8,w8,AIp,m0,ko,Yhk,el,sjZ,B5Z,Rr,Qj,L_,aUp,H8,uw,Xw,UCn,yj,bw,SA,cI9,qm,iG9,Mm,hVJ,zz,f_,PaL,v8,C_,WqL,DCa,ti,Kqc,EN,p_,n_,gV,VML,Gz,ZZ,$l,jA,dCJ,mCk,Fw,xl,ON,od,Ji,wtu,Nm,Id,kRZ,T59, +Ai,Yl,rV,lUc,eVY,sN,RVZ,Qmp,zqA,B8,H3J,fFk,b3p,Lw_,u$c,P8,ad,UN,c8,SUJ,Xsk,hi,v6Z,W8,DZ,ya9,qUL,K_,MPA,CZa,n6a,g6Y,tPY,E68,psc,dV,m$,wV,kl,Z38,GsY,Tz,$6a,FwY,jma,QG,Rd,O3p,o6A,Ja8,Np9,zy,IFA,fy,bD,Aav,raY,smL,uD,yG,U6J,uIa,Cu,i3_,hqa,Ww6,D6L,KwA,yZ,Sb,VPY,Cy,tQ,ws8,ksk,Tpu,Em,Qcu,eq6,lF9,Hxc,f$c,py,bxZ,z2p,Lnk,ny,gS,Zn,unY,SHk,Gy,$i,XRZ,jb,vdu,Fo,qj,JQ,yGJ,ShY,zVk,Nj,Ik,Yi,rS,sm,Bj,Pj,AQ,cj,MmJ,Wj,CCp,tmp,Ed8,pRn,ndp,Dn,Zx9,Ky,$v6,VG,Fn_,xvY,jc8,GEv,Oxu,od_,JGL,Ty,Nn8,I$A,YHk,eb,yIc,lD,sc9,PCv,g8, +a$k,Uvv,Qq,ixc,t0,cGp,HGn,bGJ,LqJ,rGv,zt,H0,fo,h2Z,WnA,bf,Dv8,uf,SN,Xu,v0,yq,Knn,q$,M$,Vmn,dvk,Co,tE,E8,po,no,gm,wRp,mv9,Zd,kE8,e2L,Gt,l$Y,Tnk,hE,U8,W0,Ko,Vq,wS,R2A,uOv,OV,c0,kh,y2u,MpJ,JE,Rl,ol,Qc,fv,al,bF,nEA,Lv,uF,gEA,Z69,GTZ,$Mu,Sw,j9J,F9Y,vV,xMY,Iiu,N0Z,O6L,J2A,oE8,yc,A2c,qG,Yvn,r2L,B09,PBZ,aip,W9_,pv,nv,VpJ,gr,Z1,dMn,kTu,T0Y,ec9,li_,GZ,Rc8,zKu,HYL,rr,qy9,u4u,Syc,Cgn,BV,tGn,pcc,ENL,nNv,aZ,iF,gNc,PV,hh,WV,ZYJ,$dv,xda,dr,ew,H7,L9,UdJ,cAY,v7,XD,C9,tM,iY_,DdZ,We6,KeJ,p9,EC,VGa,mdA,wcJ,Tg8,Zm,kCL, +eKp,lqn,$m,jn,QaL,Vc,gi,OC,Iq9,GCv,sV_,Iq,MY,ddZ,aq,f9,c7,iE,hM,C6Y,M3L,bE,Dm,K9,EHa,Vt,T_,pSZ,uE,lE,hKc,Qw,LiY,qY,nHL,oNk,OY9,jV6,zI,fR,J7k,oH_,IOA,A7L,S1,vG,yw,Xv,MW,CR,YD_,tf,sa8,EZ,P6Z,gX,BM_,Za,GI,iQv,$1,DD_,Ki9,x1,V39,mDa,ag,cG,ij,Da,wSY,KR,Vw,k1,TI,e1,lj,kxa,Rg,QW,RsL,zG,HN,QAY,z6A,fK,HE9,fJY,bE6,LNJ,bo,LK,u_n,XBA,X1,vN,MF,CK,vA9,tv,EJ,pK,nK,gz,yKJ,qWY,Z_,MJk,CML,GG,EAJ,tJZ,pBL,$n,gAk,nAL,jf,ZE6,F1,xn,G09,jAZ,FNL,OJ,oM,Jv,x1Y,NF,oAn,Av,JK9,NZ8,IM,Yn,rz,sJ,rKc,BZa,IJY,sA6,PM9,AKc,YWJ,aJA,U1k, +aM,cKp,h6L,KNn,d1v,VJk,VW,KK,wz,wBL,kn,TG,ef,TZ9,lo,e6k,k09,RM,Qra,Qg,zh,zh8,HA,Huu,LeY,yA6,bu9,fM6,uCZ,L08,SYA,bk,XM8,vo9,uk,Mla,SS,Xt,vA,tl6,noc,MQ,CH,ts,Zun,goa,yg,GQu,$B8,jrv,xBa,Ef,srv,Zr,Gh,iuu,cN,W06,DBk,K0c,VlY,dBa,jS,mBu,Ft,x$,Of,wMZ,NQ,kQA,T8a,I8,As,ehk,lMY,Rhp,QdZ,z5v,Y$,Js,H_Y,rY,b_J,L$v,uwp,sf,SNL,X8v,vlc,yin,qN_,MAp,CwY,tAJ,El8,p8A,BA,gla,PA,Z_J,Uf,$m6,hs,nl6,a8,WA,Dr,KH,Vg,dY,wY,jdL,k$,F$L,eS,NV6,YN_,riu,sd8,BVY,Q8,PwL,Aic,Ji_,aZL,lk,UmL,i_u,Th,R8,O_c,olA,zX,h59,W$9,IZu,xmv,DmJ,fI, +K$9,bm,LI,VAZ,um,w8J,dma,mmY,Sc,kz8,XJ,vK,y8,q5,TVa,e5J,lZ8,M5,Qku,zxZ,CI,HyY,te,ER,fn9,by_,LfL,uo_,Smp,XjL,CDc,yQ6,WNY,nI,Ei_,pj_,qm9,MbY,vic,GX,$j_,Zp,gH,tb_,FfJ,Gyn,ZyZ,gin,nin,jc,xj9,UJ,FJ,xp,OR,Oy_,ob,oiL,Je,JQ6,mp,NSp,N5,hv,D_,iEJ,Yp,sR,YmJ,rQY,BK,ab,rH,Ae,cK,Ib,InJ,AQ8,im,skA,BS6,ik,Gza,io,he,PDk,PK,ank,UjA,cQa,iyk,WK,Dp,KI,WfZ,Djv,Kfp,Vba,djc,mjn,ciY,dH,mr,wH,V8,kyY,lJv,R6L,kp,TSA,exL,lnn,Rx9,TX,QlA,ec,z9a,fdu,lm,boa,LD_,Qk,uuu,Rb,LB,vhu,X0n,Cf6,q8J,tN9,Ehp,yEv,MNk,S8k,p0u,uK,nhY,Gtk,gh_, +Zoa,XT,fZu,$$v,jln,FDu,x$_,OoJ,vW,ohu,yk,JEu,ql,Ml,Nmn,CB,Idv,AEk,YY,Y8v,rEZ,slv,Bm9,r9,pML,sz,U$Y,BW,ad6,cEc,iop,Eok,qQ,h9v,WDJ,aD,ktY,w0u,WW,Tmc,m$Z,R9n,DD,QZa,zy6,bv9,LIJ,Ss_,f1Z,XV6,vav,yh8,qsY,Mwa,twp,Ean,pVp,CF_,Vk,PW,gav,Hv6,Zva,uRc,d9,$G6,na9,KB,jZ9,FI6,oan,Ah9,Jhc,Ysp,I18,rhp,xG9,ma,sZL,Ov9,e8,UGJ,iv6,ch8,hy8,WIp,DGZ,a1Y,KI6,Vwp,w9,dGn,mG_,wV_,kZ9,TrA,Ry8,l1v,ey9,RD,Qqp,H9J,fmL,b9v,LjY,uDL,HL,cA,SCY,X7Z,vm8,Mna,qCc,yMZ,CEp,EmL,p7v,tnc,Tc,zc,gmv,Z9Z,G_c,JMv,Fj9,xYu,O99,NiZ,AML,jka,QV,jq_, +$Y9,Imk,dz,omp,pI,WN,Nra,PEn,Bic,amc,UYa,i9L,hnY,znn,bK,HW,rM6,Wj_,sqY,DYc,Kjk,HoZ,Vnk,PFa,Bra,YCA,fB,bH,LD,mYA,uH,w7c,k_8,Tiv,en8,lmY,Qgk,z0k,Lhn,HRc,bRA,uvp,Xj,yfn,XGY,v1Z,Cjv,t1Y,E19,pG6,jbv,Sr,Frp,M1u,SZA,vL,x5c,fa8,OI9,yV,Je6,NHJ,IpJ,opY,qJ,reZ,YRA,PmY,BHa,sbc,apL,U5_,MJ,ceu,iIn,Wra,D5Y,hP9,Kru,kX_,d5A,m59,wK9,TH6,ePk,lpv,QDZ,RP8,z3n,HBA,fDA,LaL,uT8,XW9,Szp,vY9,bBL,yJZ,M8A,CKY,EY6,nYJ,t8a,Eg,gY_,ZB9,qza,GcJ,pWp,pD,$l9,jDv,Fap,xlp,OBp,oYp,JJ6,IDa,Yzk,rJu,sD8,B9u,PKv,gT,aDY,Z4,cJ_,iBZ,WaA,Fj,Kav, +V8Z,dl_,mlk,kca,wW9,lDL,R3u,xP,oy,T9A,e3c,QyY,NJ,HDa,zgv,f4v,bDJ,LRv,XLZ,ujL,qgA,Iy,Sgv,Mrk,Ad,pL9,rT,sg,nPY,YP,gPL,BL,$J8,Gb8,trJ,EPJ,jyu,FRk,xJu,CHa,ODL,PL,oP9,ZDp,DlY,Jd,NTn,Ug,I4Z,AdY,Yg9,rdc,syc,BTn,PH9,a49,UJk,cL,cdL,iDZ,WRL,DJA,KRJ,hgZ,VrZ,dJY,mJu,wLY,kbn,TTc,hd,cTv,eg6,l49,WL,RgY,Qiv,KD,fbA,bLZ,VV,uB8,Skn,Llv,HLA,dT,D4,zCA,kP,wT,X9Y,Tb,mR,MWA,E_Y,n_9,g_a,Gqp,yzu,p9L,$pL,qkc,jiY,FlL,zq,er,OLn,xpA,Ry,NI9,Ibn,tWA,Ct9,JzJ,AzZ,ZLc,v_6,H9,fL,bt,YkZ,LL,Up_,BI9,czL,PtZ,sic,iLL,rzA,Kl8,hCL,ut,VWL, +mp9,kqp,TIa,eCY,QOL,yO,zH8,lbZ,QO,bAJ,L78,Ek,GZL,SW,ueJ,SuL,vb8,XEu,y4v,fYa,Mp,qu9,MH_,CNL,Ebv,tHa,nma,pEJ,qp,nbL,ZAa,gbY,$b_,Gj6,w99,F7k,jO8,CL,XB,xb9,nL,obL,J4c,N3J,IY8,A4L,pL,Vc6,RCY,Yua,dYp,lH,r4v,sOp,B3L,PNY,aYL,gI,Zb,c4Y,iAA,hHZ,UbZ,W7Y,Gq,dbZ,K7k,VHL,mbp,$_,wEp,kjp,T3a,jW,eHa,RH8,QCk,z7Y,FB,lYa,x_,Ok,HU8,fHu,Np,oi,Jz,bUY,Ii,LMA,u6Z,SOv,vzL,Xpa,P9,qOk,MOk,y9n,CsJ,ai,tO_,Uk,Ez8,c9,ppZ,nzu,$gJ,GfY,xg_,gzp,jCa,it,ZUc,FMA,OUa,ozp,J9u,Nbu,W9,IH8,VO,Db,A9Z,dI,ml,r9Z,k_,Tq,sCa,wI,Bba,eW,aHY,Psp,Ri, +Qn,zj,iUn,Ugv,c9p,HE,h7v,VOc,DgJ,WM_,KMA,fA,mga,e7u,lHa,bN,R7Y,QYp,wp6,kfA,fCA,bOJ,LVa,ufp,S36,XP8,SH,Mkp,Xe,yY6,q3_,pP9,uN,vE,yn,v2J,C_6,n2A,qb,Mb,g29,ZO6,CA,GBu,t4,$8L,jY6,FVY,x89,OOn,o29,JYu,AYL,NoJ,Y3J,rYc,Bon,P_8,Ou,WVc,U8_,cYk,D8v,KV9,haA,aC9,VkA,m8n,d88,wP6,QPZ,J4,f29,uFv,LLv,bJ9,lCY,RaZ,kBa,To8,zG_,Nb,IO,Xga,Ig,aO6,vIu,Yb,BE,qLA,ywZ,HJ_,CeY,tQ8,EIA,PE,pgJ,DY,gIv,ZJk,GDu,jPJ,$cL,FLY,KA,Vn,xcu,Jwk,NQ8,w3,oIL,I2_,AwY,OJv,kb,lN,YL9,rwJ,eH,sPv,BQA,Pep,a2v,cw_,Uc8,WLc,Dc6,iJJ,VQ_,dcn,hGA,zf,Hp, +mcc,kDk,fU,wgp,TQp,l29,eGL,RGY,bs,Q5c,zNu,H08,LU,us,SO,fBY,b0L,LHc,Sp9,ulJ,XyY,v5k,yon,qpJ,M6Y,t6J,vp,X6,yI,E5Y,pyn,C7p,$_p,j5k,FHA,o5A,O08,x_J,Jo6,NuJ,qg,Mg,IBk,Aon,YpA,roc,Bu9,P7A,t9,aBZ,CU,pU,s5Y,U_L,co_,i0u,hNn,WHZ,gb,D_A,KHZ,m_8,ZH,wya,d_p,Gf,$z,km9,Tu6,lBc,QSL,eNn,RNu,F6,zdY,fXv,bXn,uQa,SjY,xz,OO,XlA,HXv,qja,ygA,v8_,oC,J9,Cy_,MRn,Ng,IC,tRu,A9,E8u,plk,n8v,Yz,g8Y,rb,ZXa,sO,Bp,jS_,FP_,xip,o8L,JgA,NxL,OXv,AgJ,IX6,Yj_,BxY,UO,aXJ,PyJ,rgY,sSA,UiA,cga,cp,is,iXZ,hd6,WPJ,DiL,KPA,VR9,mi6,wlp,HeY,edZ,lXc, +koc,bec,db,wb,XhZ,eO,ls,vD6,LA_,VI,zB,Qz,kz,qwn,HP,C3c,ED9,t2a,fO,Tf,KU,M2Z,RC,uK8,yHc,nD9,h9,b_,gDL,ZeA,mM,Swa,LO,u_,GWu,Sk,Xf,vP,$LJ,jFp,xLn,Oek,FAA,yz,JHc,oDu,q8,NLn,M8,CO,IfY,AHZ,Ywk,rH8,sFp,BL_,afn,P36,E3,tY,ULv,iek,cH9,pO,nO,hBZ,DLu,KAk,go,WAu,V2L,dL8,mLv,whY,kW6,TLA,eBn,GB,$2,RBu,lfv,Q_6,jk,Ff,z1n,HVL,bVk,f0p,L1u,O3,u2_,SQp,JY,Xi8,vRA,ySa,qQ9,MuJ,CO9,ERZ,pi_,nRn,tu6,gRu,ZV8,GFJ,$eY,j_Y,F1A,xec,OVL,ro,oRn,JSc,NkZ,YQ9,POn,s_v,ASL,PP,rSa,I0Y,BkA,aY,Ue9,a0A,U3,cSv,iVv,h1L,CD,deL,meY,wiv,hY,kFA, +DC,lK,TkA,KO,e1J,WP,l0a,R1_,LYv,TB,ek,RY,QU,Sqp,uWc,QNJ,zD,XFn,v06,qq_,Hg,MCu,CXa,tCa,l_,pF8,E0a,fJ,be,f98,wo,n0L,g0a,Zzk,Gkk,zXa,Hz8,k2,$w9,jN9,FYJ,xwv,NFY,I9v,Yq9,JVA,BFn,BN,PN,kY,Uwu,cVc,a9c,izZ,AVu,PXA,Oz8,hXA,sN_,WYa,rVA,UR,hxA,o_a,LJ,S8,o08,KYL,wF_,SQ,kkA,TFc,dwn,vg,eX_,l9k,DwY,RXc,mwc,QpY,yU,XF,zT9,feu,HMn,ue,LFk,CJ,uzL,qc,tw,Mc,EL,HAn,SI_,y3c,v4L,Mgp,C9L,qIA,nJ,pJ,E4u,pvk,n4n,o4Z,jp8,FFk,G1Z,IeA,ZM9,GD,r3_,A39,spY,BKJ,Z2,jQ,FF,c3a,Uua,aea,OL,OM9,IP,hTZ,Nc,xI,Dua,duL,muJ,NKL,KFc,rQ,wva,xuk, +iML,oP,k18,$I,TKA,eTa,leZ,Pg,aP,WFZ,RTa,Q1A,UL,cg,ziJ,Jw,YI6,HdL,f8J,bd9,Vgk,L2p,Aw,ub8,YI,nR,Stp,vX9,ie,hw,yyL,qtu,MIL,Bg,sL,CJ8,Xvp,tIn,EXa,p$Y,nXJ,gXY,Wg,D2,$En,xEA,oXa,GVk,By8,PJp,a8v,UEA,cy_,idn,hic,DEL,W2A,KJ,VU,dQ,K2Y,VI9,dEv,Kx,mEA,mL,w$u,wQ,kI,FI,TD,w4,kVa,Gx,x99,TyA,RV,ein,rn,sH,kH,l8n,RiY,eQ,Qz6,zbc,le,fja,bk8,RP,zm,Hy,LOY,X1k,vVv,f0,yR6,usZ,SG6,qGY,MD9,Ciu,tDp,EVu,b7,nVc,xtp,$y,lC,gVa,Zku,zT,p1k,Ih,G$9,$ha,jz_,L0,px,xhu,OkY,u7,S6,oVv,Xl,JR6,QB,N_a,Ij8,w6n,vy,yB,ARp,q_,M_,YGv,C0,rR8,to, +Ep,szZ,B_J,$qY,p0,Pi6,Uh9,ajp,n0,cRu,gu,ZB,ik_,hb9,WOp,DhL,KO_,VDp,dh_,w1Z,$5,mhA,k$u,T_J,ebc,lja,HbZ,RbL,QBc,zD_,bb_,uHp,S__,Xdv,LKY,j6,vup,yWp,q_v,Mqp,CPA,x5,tqn,Op,o5,Jo,Eun,pdA,guJ,Zba,GPp,$yZ,FKJ,jB8,xyJ,N_,I5,JWk,Ob6,ouv,Ao,NOv,IGA,Y5,ru,AWa,sp,Y_c,By,rWZ,Py,a5,sBL,Up,cy,BOc,PP6,i7,ho,aG6,Wy,Uyu,cW9,du,ibY,hD6,WKA,Vqp,KKn,mH,dyk,myp,wd6,Itk,Dy8,TOA,eDu,RD9,QJA,Mk;fn=function(Q){return function(){return QJA[Q].apply(this,arguments)}}; +g.Xa=function(Q,z){return QJA[Q]=z}; +zp8=function(Q){var z=0;return function(){return z=this.length))return this[Q]}; +c_=function(Q){return Q?Q:UA}; +EvJ=function(Q,z,H){Q instanceof String&&(Q=String(Q));for(var f=Q.length-1;f>=0;f--){var b=Q[f];if(z.call(H,b,f,Q))return{AU:f,DF:b}}return{AU:-1,DF:void 0}}; +iL=function(Q){return Q?Q:function(z,H){return EvJ(this,z,H).AU}}; +g.D6=function(Q,z,H){Q=Q.split(".");H=H||g.W_;for(var f;Q.length&&(f=Q.shift());)Q.length||z===void 0?H[f]&&H[f]!==Object.prototype[f]?H=H[f]:H=H[f]={}:H[f]=z}; +V9=function(Q,z){var H=g.Kn("CLOSURE_FLAGS");Q=H&&H[Q];return Q!=null?Q:z}; +g.Kn=function(Q,z){Q=Q.split(".");z=z||g.W_;for(var H=0;H2){var f=Array.prototype.slice.call(arguments,2);return function(){var b=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(b,f);return Q.apply(z,b)}}return function(){return Q.apply(z,arguments)}}; +g.RJ=function(Q,z,H){g.RJ=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?nvv:gvA;return g.RJ.apply(null,arguments)}; +g.Qs=function(Q,z){var H=Array.prototype.slice.call(arguments,1);return function(){var f=H.slice();f.push.apply(f,arguments);return Q.apply(this,f)}}; +g.zY=function(){return Date.now()}; +Znk=function(Q){return Q}; +g.Hu=function(Q,z){function H(){} +H.prototype=z.prototype;Q.xu=z.prototype;Q.prototype=new H;Q.prototype.constructor=Q;Q.XI=function(f,b,L){for(var u=Array(arguments.length-2),X=2;Xz&&H.push(S5(f,1))}); +return H}; +g.Xx=function(Q){Q&&typeof Q.dispose=="function"&&Q.dispose()}; +g.vu=function(Q){for(var z=0,H=arguments.length;z>6|192;else{if(L>=55296&&L<=57343){if(L<=56319&&b=56320&&u<=57343){L=(L-55296)*1024+ +u-56320+65536;f[H++]=L>>18|240;f[H++]=L>>12&63|128;f[H++]=L>>6&63|128;f[H++]=L&63|128;continue}else b--}if(z)throw Error("Found an unpaired surrogate");L=65533}f[H++]=L>>12|224;f[H++]=L>>6&63|128}f[H++]=L&63|128}}Q=H===f.length?f:f.subarray(0,H)}return Q}; +ZL=function(Q){g.W_.setTimeout(function(){throw Q;},0)}; +inA=function(Q){return Array.prototype.map.call(Q,function(z){z=z.toString(16);return z.length>1?z:"0"+z}).join("")}; +hpZ=function(Q){for(var z=[],H=0;H>6|192:((b&64512)==55296&&f+1>18|240,z[H++]=b>>12&63|128):z[H++]=b>>12|224,z[H++]=b>>6&63|128),z[H++]=b&63|128)}return z}; +$O=function(Q,z){return Q.lastIndexOf(z,0)==0}; +WZp=function(Q,z){var H=Q.length-z.length;return H>=0&&Q.indexOf(z,H)==H}; +g.Fx=function(Q){return/^[\s\xa0]*$/.test(Q)}; +g.xO=function(Q,z){return Q.indexOf(z)!=-1}; +OT=function(Q,z){return g.xO(Q.toLowerCase(),z.toLowerCase())}; +g.Ns=function(Q,z){var H=0;Q=ou(String(Q)).split(".");z=ou(String(z)).split(".");for(var f=Math.max(Q.length,z.length),b=0;H==0&&bz?1:0}; +g.Iu=function(){var Q=g.W_.navigator;return Q&&(Q=Q.userAgent)?Q:""}; +sT=function(Q){return At||YO?rJ?rJ.brands.some(function(z){return(z=z.brand)&&g.xO(z,Q)}):!1:!1}; +Bu=function(Q){return g.xO(g.Iu(),Q)}; +Pu=function(){return At||YO?!!rJ&&rJ.brands.length>0:!1}; +au=function(){return Pu()?!1:Bu("Opera")}; +Dk_=function(){return Pu()?!1:Bu("Trident")||Bu("MSIE")}; +KZA=function(){return Pu()?sT("Microsoft Edge"):Bu("Edg/")}; +UT=function(){return Bu("Firefox")||Bu("FxiOS")}; +ht=function(){return Bu("Safari")&&!(cu()||(Pu()?0:Bu("Coast"))||au()||(Pu()?0:Bu("Edge"))||KZA()||(Pu()?sT("Opera"):Bu("OPR"))||UT()||Bu("Silk")||Bu("Android"))}; +cu=function(){return Pu()?sT("Chromium"):(Bu("Chrome")||Bu("CriOS"))&&!(Pu()?0:Bu("Edge"))||Bu("Silk")}; +VYL=function(){return Bu("Android")&&!(cu()||UT()||au()||Bu("Silk"))}; +dkn=function(Q){var z={};Q.forEach(function(H){z[H[0]]=H[1]}); +return function(H){return z[H.find(function(f){return f in z})]||""}}; +mka=function(Q){var z=g.Iu();if(Q==="Internet Explorer"){if(Dk_())if((Q=/rv: *([\d\.]*)/.exec(z))&&Q[1])z=Q[1];else{Q="";var H=/MSIE +([\d\.]+)/.exec(z);if(H&&H[1])if(z=/Trident\/(\d.\d)/.exec(z),H[1]=="7.0")if(z&&z[1])switch(z[1]){case "4.0":Q="8.0";break;case "5.0":Q="9.0";break;case "6.0":Q="10.0";break;case "7.0":Q="11.0"}else Q="7.0";else Q=H[1];z=Q}else z="";return z}var f=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");H=[];for(var b;b=f.exec(z);)H.push([b[1],b[2],b[3]||void 0]); +z=dkn(H);switch(Q){case "Opera":if(au())return z(["Version","Opera"]);if(Pu()?sT("Opera"):Bu("OPR"))return z(["OPR"]);break;case "Microsoft Edge":if(Pu()?0:Bu("Edge"))return z(["Edge"]);if(KZA())return z(["Edg"]);break;case "Chromium":if(cu())return z(["Chrome","CriOS","HeadlessChrome"])}return Q==="Firefox"&&UT()||Q==="Safari"&&ht()||Q==="Android Browser"&&VYL()||Q==="Silk"&&Bu("Silk")?(z=H[2])&&z[1]||"":""}; +w_p=function(Q){if(Pu()&&Q!=="Silk"){var z=rJ.brands.find(function(H){return H.brand===Q}); +if(!z||!z.version)return NaN;z=z.version.split(".")}else{z=mka(Q);if(z==="")return NaN;z=z.split(".")}return z.length===0?NaN:Number(z[0])}; +Wu=function(){return At||YO?!!rJ&&!!rJ.platform:!1}; +kuL=function(){return Wu()?rJ.platform==="Android":Bu("Android")}; +DL=function(){return Bu("iPhone")&&!Bu("iPod")&&!Bu("iPad")}; +Ks=function(){return DL()||Bu("iPad")||Bu("iPod")}; +Vs=function(){return Wu()?rJ.platform==="macOS":Bu("Macintosh")}; +Tc8=function(){return Wu()?rJ.platform==="Windows":Bu("Windows")}; +g.dJ=function(Q){return Q[Q.length-1]}; +ep_=function(Q,z){var H=Q.length,f=typeof Q==="string"?Q.split(""):Q;for(--H;H>=0;--H)H in f&&z.call(void 0,f[H],H,Q)}; +g.wJ=function(Q,z,H){z=mB(Q,z,H);return z<0?null:typeof Q==="string"?Q.charAt(z):Q[z]}; +mB=function(Q,z,H){for(var f=Q.length,b=typeof Q==="string"?Q.split(""):Q,L=0;L=0;f--)if(f in b&&z.call(H,b[f],f,Q))return f;return-1}; +g.TY=function(Q,z){return l6J(Q,z)>=0}; +RpY=function(Q){if(!Array.isArray(Q))for(var z=Q.length-1;z>=0;z--)delete Q[z];Q.length=0}; +g.lR=function(Q,z){z=l6J(Q,z);var H;(H=z>=0)&&g.e5(Q,z);return H}; +g.e5=function(Q,z){return Array.prototype.splice.call(Q,z,1).length==1}; +g.Ru=function(Q,z){z=mB(Q,z);z>=0&&g.e5(Q,z)}; +Qu9=function(Q,z){var H=0;ep_(Q,function(f,b){z.call(void 0,f,b,Q)&&g.e5(Q,b)&&H++})}; +g.Qi=function(Q){return Array.prototype.concat.apply([],arguments)}; +g.z7=function(Q){var z=Q.length;if(z>0){for(var H=Array(z),f=0;f>>1),v=void 0;H?v=z.call(void 0,Q[X],X,Q):v=z(f,Q[X]);v>0?b=X+1:(L=X,u=!v)}return u?b:-b-1}; +g.vY=function(Q,z){Q.sort(z||u4)}; +fLp=function(Q,z){var H=u4;g.vY(Q,function(f,b){return H(z(f),z(b))})}; +g.yi=function(Q,z,H){if(!g.wc(Q)||!g.wc(z)||Q.length!=z.length)return!1;var f=Q.length;H=H||bsn;for(var b=0;bz?1:Q=0})}; +g.g7=function(Q,z){z===void 0&&(z=0);qTZ();z=M5k[z];for(var H=Array(Math.floor(Q.length/3)),f=z[64]||"",b=0,L=0;b>2];u=z[(u&3)<<4|X>>4];X=z[(X&15)<<2|v>>6];v=z[v&63];H[L++]=""+y+u+X+v}y=0;v=f;switch(Q.length-b){case 2:y=Q[b+1],v=z[(y&15)<<2]||f;case 1:Q=Q[b],H[L]=""+z[Q>>2]+z[(Q&3)<<4|y>>4]+v+f}return H.join("")}; +g.Z3=function(Q,z){if(CR8&&!z)Q=g.W_.btoa(Q);else{for(var H=[],f=0,b=0;b255&&(H[f++]=L&255,L>>=8);H[f++]=L}Q=g.g7(H,z)}return Q}; +EOa=function(Q){var z=[];t5k(Q,function(H){z.push(H)}); +return z}; +G7=function(Q){var z=Q.length,H=z*3/4;H%3?H=Math.floor(H):g.xO("=.",Q[z-1])&&(H=g.xO("=.",Q[z-2])?H-2:H-1);var f=new Uint8Array(H),b=0;t5k(Q,function(L){f[b++]=L}); +return b!==H?f.subarray(0,b):f}; +t5k=function(Q,z){function H(v){for(;f>4);u!=64&&(z(L<<4&240|u>>2),X!=64&&z(u<<6&192|X))}}; +qTZ=function(){if(!$T){$T={};for(var Q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),z=["+/=","+/","-_=","-_.","-_"],H=0;H<5;H++){var f=Q.concat(z[H].split(""));M5k[H]=f;for(var b=0;b=5||(H[Q]=z+1,Q=Error(),Os8(Q,"incident"),ZL(Q))}}; +AC=function(Q,z,H){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(H===void 0?0:H)&&Symbol.for&&Q?Symbol.for(Q):Q!=null?Symbol(Q):Symbol():z}; +BY=function(Q,z){r7||s2 in Q||Jt9(Q,NJ8);Q[s2]|=z}; +PY=function(Q,z){r7||s2 in Q||Jt9(Q,NJ8);Q[s2]=z}; +aG=function(Q,z){Q[s2]&=~z}; +U2=function(){return typeof BigInt==="function"}; +cY=function(Q){return Array.prototype.slice.call(Q)}; +i4=function(Q){return Q!==null&&typeof Q==="object"&&!Array.isArray(Q)&&Q.constructor===Object}; +ILk=function(Q,z){if(Q!=null)if(typeof Q==="string")Q=Q?new Fk(Q,xT):O2();else if(Q.constructor!==Fk)if(jj(Q))Q=Q.length?new Fk(new Uint8Array(Q),xT):O2();else{if(!z)throw Error();Q=void 0}return Q}; +hC=function(Q){if(Q&2)throw Error();}; +Kr=function(Q,z){if(typeof z!=="number"||z<0||z>=Q.length)throw Error();}; +Atp=function(Q){var z=Znk(Vi);return z?Q[z]:void 0}; +YTY=function(Q,z,H){var f=z&512?0:-1,b=Q.length;z=z&64?z&256:!!b&&i4(Q[b-1]);for(var L=b+(z?-1:0),u=0;uz.length)return!1;if(Q.lengthb)return!1;if(f>>0;T7=z;ej=(Q-z)/4294967296>>>0}; +zi=function(Q){if(Q<0){l4(0-Q);var z=g.n(RG(T7,ej));Q=z.next().value;z=z.next().value;T7=Q>>>0;ej=z>>>0}else l4(Q)}; +fS=function(Q,z){var H=z*4294967296+(Q>>>0);return Number.isSafeInteger(H)?H:Ho(Q,z)}; +aLZ=function(Q,z){var H=z&2147483648;H&&(Q=~Q+1>>>0,z=~z>>>0,Q==0&&(z=z+1>>>0));Q=fS(Q,z);return typeof Q==="number"?H?-Q:Q:H?"-"+Q:Q}; +Ho=function(Q,z){z>>>=0;Q>>>=0;if(z<=2097151)var H=""+(4294967296*z+Q);else U2()?H=""+(BigInt(z)<>>24|z<<8)&16777215,z=z>>16&65535,Q=(Q&16777215)+H*6777216+z*6710656,H+=z*8147497,z*=2,Q>=1E7&&(H+=Q/1E7>>>0,Q%=1E7),H>=1E7&&(z+=H/1E7>>>0,H%=1E7),H=z+UsZ(H)+UsZ(Q));return H}; +UsZ=function(Q){Q=String(Q);return"0000000".slice(Q.length)+Q}; +ct_=function(){var Q=T7,z=ej;z&2147483648?U2()?Q=""+(BigInt(z|0)<>>0)):(z=g.n(RG(Q,z)),Q=z.next().value,z=z.next().value,Q="-"+Ho(Q,z)):Q=Ho(Q,z);return Q}; +b5=function(Q){if(Q.length<16)zi(Number(Q));else if(U2())Q=BigInt(Q),T7=Number(Q&BigInt(4294967295))>>>0,ej=Number(Q>>BigInt(32)&BigInt(4294967295));else{var z=+(Q[0]==="-");ej=T7=0;for(var H=Q.length,f=0+z,b=(H-z)%6+z;b<=H;f=b,b+=6)f=Number(Q.slice(f,b)),ej*=1E6,T7=T7*1E6+f,T7>=4294967296&&(ej+=Math.trunc(T7/4294967296),ej>>>=0,T7>>>=0);z&&(z=g.n(RG(T7,ej)),Q=z.next().value,z=z.next().value,T7=Q,ej=z)}}; +RG=function(Q,z){z=~z;Q?Q=~Q+1:z+=1;return[Q,z]}; +LS=function(Q,z){throw Error(z===void 0?"unexpected value "+Q+"!":z);}; +u5=function(Q){if(Q!=null&&typeof Q!=="number")throw Error("Value of float/double field must be a number, found "+typeof Q+": "+Q);return Q}; +is_=function(Q){return Q.displayName||Q.name||"unknown type name"}; +SX=function(Q){if(Q!=null&&typeof Q!=="boolean")throw Error("Expected boolean but got "+mZ(Q)+": "+Q);return Q}; +vo=function(Q){switch(typeof Q){case "bigint":return!0;case "number":return Xc(Q);case "string":return hmZ.test(Q);default:return!1}}; +WB9=function(Q){if(typeof Q!=="number")throw NI("int32");if(!Xc(Q))throw NI("int32");return Q|0}; +yr=function(Q){return Q==null?Q:WB9(Q)}; +q4=function(Q){if(Q==null)return Q;if(typeof Q==="string"&&Q)Q=+Q;else if(typeof Q!=="number")return;return Xc(Q)?Q|0:void 0}; +M4=function(Q){if(Q==null)return Q;if(typeof Q==="string"&&Q)Q=+Q;else if(typeof Q!=="number")return;return Xc(Q)?Q>>>0:void 0}; +KBp=function(Q){var z=0;z=z===void 0?0:z;if(!vo(Q))throw NI("int64");var H=typeof Q;switch(z){case 2048:switch(H){case "string":return CS(Q);case "bigint":return String(tn(64,Q));default:return pS(Q)}case 4096:switch(H){case "string":return z=nS(Number(Q)),gC(z)?Q=w7(z):(z=Q.indexOf("."),z!==-1&&(Q=Q.substring(0,z)),Q=U2()?w7(tn(64,BigInt(Q))):w7(Ds9(Q))),Q;case "bigint":return w7(tn(64,Q));default:return gC(Q)?w7(Zc(Q)):w7(pS(Q))}case 0:switch(H){case "string":return CS(Q);case "bigint":return w7(tn(64, +Q));default:return Zc(Q)}default:return LS(z,"Unknown format requested type for int64")}}; +Gi=function(Q){return Q==null?Q:KBp(Q)}; +V5a=function(Q){if(Q[0]==="-")return!1;var z=Q.length;return z<20?!0:z===20&&Number(Q.substring(0,6))<184467}; +ds9=function(Q){var z=Q.length;return Q[0]==="-"?z<20?!0:z===20&&Number(Q.substring(0,7))>-922337:z<19?!0:z===19&&Number(Q.substring(0,6))<922337}; +ms_=function(Q){if(Q<0){zi(Q);var z=Ho(T7,ej);Q=Number(z);return gC(Q)?Q:z}z=String(Q);if(V5a(z))return z;zi(Q);return fS(T7,ej)}; +Ds9=function(Q){if(ds9(Q))return Q;b5(Q);return ct_()}; +Zc=function(Q){vo(Q);Q=nS(Q);gC(Q)||(zi(Q),Q=aLZ(T7,ej));return Q}; +pS=function(Q){vo(Q);Q=nS(Q);if(gC(Q))Q=String(Q);else{var z=String(Q);ds9(z)?Q=z:(zi(Q),Q=ct_())}return Q}; +CS=function(Q){vo(Q);var z=nS(Number(Q));if(gC(z))return String(z);z=Q.indexOf(".");z!==-1&&(Q=Q.substring(0,z));return Ds9(Q)}; +wuL=function(Q){if(Q==null)return Q;if(typeof Q==="bigint")return $t(Q)?Q=Number(Q):(Q=tn(64,Q),Q=$t(Q)?Number(Q):String(Q)),Q;if(vo(Q))return typeof Q==="number"?Zc(Q):CS(Q)}; +kY9=function(Q){if(Q==null)return Q;var z=typeof Q;if(z==="bigint")return String(tn(64,Q));if(vo(Q)){if(z==="string")return CS(Q);if(z==="number")return Zc(Q)}}; +emZ=function(Q){if(Q==null)return Q;var z=typeof Q;if(z==="bigint")return String(TJu(64,Q));if(vo(Q)){if(z==="string")return vo(Q),z=nS(Number(Q)),gC(z)&&z>=0?Q=String(z):(z=Q.indexOf("."),z!==-1&&(Q=Q.substring(0,z)),V5a(Q)||(b5(Q),Q=Ho(T7,ej))),Q;if(z==="number")return vo(Q),Q=nS(Q),Q>=0&&gC(Q)?Q:ms_(Q)}}; +lLa=function(Q){if(Q==null||typeof Q=="string"||Q instanceof Fk)return Q;if(jj(Q))return jj(Q)&&IG(jX),Q}; +Rm9=function(Q){if(typeof Q!=="string")throw Error();return Q}; +Fc=function(Q){if(Q!=null&&typeof Q!=="string")throw Error();return Q}; +xt=function(Q){return Q==null||typeof Q==="string"?Q:void 0}; +O7=function(Q,z){if(!(Q instanceof z))throw Error("Expected instanceof "+is_(z)+" but got "+(Q&&is_(Q.constructor)));return Q}; +QG_=function(Q,z,H){if(Q!=null&&typeof Q==="object"&&Q.nI===oU)return Q;if(Array.isArray(Q)){var f=Q[s2]|0,b=f;b===0&&(b|=H&32);b|=H&2;b!==f&&PY(Q,b);return new z(Q)}}; +zW6=function(Q){return Q}; +Jn=function(Q){return Q}; +Lzk=function(Q,z,H,f){return Hr9(Q,z,H,f,f3A,brp)}; +XYa=function(Q,z,H,f){return Hr9(Q,z,H,f,uka,S2u)}; +Hr9=function(Q,z,H,f,b,L){if(!H.length&&!f)return 1;for(var u=0,X=0,v=0,y=0,q=0,M=H.length-1;M>=0;M--){var C=H[M];f&&M===H.length-1&&C===f||(y++,C!=null&&v++)}if(f)for(var t in f)M=+t,isNaN(M)||(q+=vT_(M),X++,M>u&&(u=M));y=b(y,v)+L(X,u,q);t=v;M=X;C=u;for(var E=q,G=H.length-1;G>=0;G--){var x=H[G];if(!(x==null||f&&G===H.length-1&&x===f)){x=G-z;var J=b(x,t)+L(M,C,E);J=1024||(M--,t++,E-=I.length,u=b(f,t)+L(M,C,E),u1?Q-1:0)}; +uka=function(Q,z){return(Q>1?Q-1:0)+(Q-z)*4}; +brp=function(Q,z){return Q==0?0:9*Math.max(1<<32-Math.clz32(Q+Q/2-1),4)<=z?Q==0?0:Q<4?100+(Q-1)*16:Q<6?148+(Q-4)*16:Q<12?244+(Q-6)*16:Q<22?436+(Q-12)*19:Q<44?820+(Q-22)*17:52+32*Q:40+4*z}; +f3A=function(Q){return 40+4*Q}; +vT_=function(Q){return Q>=100?Q>=1E4?Math.ceil(Math.log10(1+Q)):Q<1E3?3:4:Q<10?1:2}; +IU=function(Q,z,H,f,b){var L=f?!!(z&32):void 0;f=[];var u=Q.length,X=!1;if(z&64){if(z&256){u--;var v=Q[u];var y=u}else y=4294967295,v=void 0;if(!(b||z&512)){X=!0;var q;var M=((q=N4)!=null?q:Jn)(v?y- -1:z>>14&1023||536870912,-1,Q,v);y=M+-1}}else y=4294967295,z&1||(v=u&&Q[u-1],i4(v)?(u--,y=u,M=0):v=void 0);q=void 0;for(var C=0;C=y){var E=void 0;((E=q)!=null?E:q={})[C- -1]=t}else f[C]=t}if(v)for(var G in v)u=v[G],u!=null&&(u=H(u,L))!=null&&(C=+G,C< +M?f[C+-1]=u:(C=void 0,((C=q)!=null?C:q={})[G]=u));q&&(X?f.push(q):f[y]=q);b&&(PY(f,z&16761409|(q!=null?290:34)),(Q=Atp(Q))&&(f[Vi]=cY(Q)));return f}; +yCa=function(Q){switch(typeof Q){case "number":return Number.isFinite(Q)?Q:""+Q;case "bigint":return $t(Q)?Number(Q):""+Q;case "boolean":return Q?1:0;case "object":if(Array.isArray(Q)){var z=Q[s2]|0;return Q.length===0&&z&1?void 0:IU(Q,z,yCa,!1,!1)}if(Q.nI===oU)return An(Q);if(Q instanceof Fk)return z=Q.Z,z==null?"":typeof z==="string"?z:Q.Z=nOp(z);if(jj(Q))return jj(Q)&&IG(jX),nOp(Q);return}return Q}; +Yt=function(Q,z){if(z){N4=z===Jn||z!==zW6&&z!==Lzk&&z!==XYa?Jn:z;try{return An(Q)}finally{N4=void 0}}return An(Q)}; +An=function(Q){Q=Q.Pz;return IU(Q,Q[s2]|0,yCa,void 0,!1)}; +Mj_=function(Q){switch(typeof Q){case "boolean":return rC||(rC=[0,void 0,!0]);case "number":return Q>0?void 0:Q===0?q2J||(q2J=[0,void 0]):[-Q,void 0];case "string":return[0,Q];case "object":return Q}}; +Po=function(Q,z,H){Q=s7(Q,z[0],z[1],H?1:2);z!==rC&&H&&BY(Q,8192);return Q}; +s7=function(Q,z,H,f){if(Q==null){var b=96;H?(Q=[H],b|=512):Q=[];z&&(b=b&-16760833|(z&1023)<<14)}else{if(!Array.isArray(Q))throw Error("narr");b=Q[s2]|0;8192&b||!(64&b)||2&b||C4A();if(b&1024)throw Error("farr");if(b&64)return Q;f===1||f===2||(b|=64);if(H&&(b|=512,H!==Q[0]))throw Error("mid");a:{H=Q;var L=H.length;if(L){var u=L-1;f=H[u];if(i4(f)){b|=256;z=b&512?0:-1;u-=z;if(u>=1024)throw Error("pvtlmt");for(var X in f)L=+X,L1024)throw Error("spvt");b=b&-16760833|(X&1023)<<14}}}PY(Q,b);return Q}; +C4A=function(){IG(tjY)}; +aU=function(Q,z){if(typeof Q!=="object")return Q;if(Array.isArray(Q)){var H=Q[s2]|0;if(Q.length===0&&H&1)return;if(H&2)return Q;var f;if(f=z)f=H===0||!!(H&32)&&!(H&64||!(H&16));return f?(BY(Q,34),H&4&&Object.freeze(Q),Q):IU(Q,H,aU,z!==void 0,!0)}if(Q.nI===oU)return z=Q.Pz,H=z[s2]|0,H&2?Q:IU(z,H,aU,!0,!0);if(Q instanceof Fk)return Q;if(jj(Q))return jj(Q)&&IG(jX),new Uint8Array(Q)}; +U7=function(Q){var z=Q.Pz;if(!((z[s2]|0)&2))return Q;Q=new Q.constructor(IU(z,z[s2]|0,aU,!0,!0));aG(Q.Pz,2);return Q}; +i5=function(Q,z){Q=Q.Pz;return co(Q,Q[s2]|0,z)}; +co=function(Q,z,H){if(H===-1)return null;var f=H+(z&512?0:-1),b=Q.length-1;if(f>=b&&z&256)return Q[b][H];if(f<=b)return Q[f]}; +Wo=function(Q,z,H){var f=Q.Pz,b=f[s2]|0;hC(b);hn(f,b,z,H);return Q}; +hn=function(Q,z,H,f){var b=z&512?0:-1,L=H+b,u=Q.length-1;if(L>=u&&z&256)return Q[u][H]=f,z;if(L<=u)return Q[L]=f,z;f!==void 0&&(u=z>>14&1023||536870912,H>=u?f!=null&&(L={},Q[u+b]=(L[H]=f,L),z|=256,PY(Q,z)):Q[L]=f);return z}; +wC=function(Q,z,H,f,b){var L=Q.Pz;Q=L[s2]|0;var u=2&Q?1:f;b=!!b;f=Dc(L,Q,z);var X=f[s2]|0;if(!(4&X)){4&X&&(f=cY(f),X=KS(X,Q),Q=hn(L,Q,z,f));for(var v=0,y=0;v "+Q)}; +j4=function(Q){if(typeof Q==="string")return{buffer:$sJ(Q),LQ:!1};if(Array.isArray(Q))return{buffer:new Uint8Array(Q),LQ:!1};if(Q.constructor===Uint8Array)return{buffer:Q,LQ:!1};if(Q.constructor===ArrayBuffer)return{buffer:new Uint8Array(Q),LQ:!1};if(Q.constructor===Fk)return{buffer:oG(Q)||new Uint8Array(0),LQ:!0};if(Q instanceof Uint8Array)return{buffer:new Uint8Array(Q.buffer,Q.byteOffset,Q.byteLength),LQ:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers"); +}; +jG_=function(Q,z){this.B=null;this.S=!1;this.Z=this.L=this.D=0;this.init(Q,void 0,void 0,z)}; +O$=function(Q){var z=0,H=0,f=0,b=Q.B,L=Q.Z;do{var u=b[L++];z|=(u&127)<32&&(H|=(u&127)>>4);for(f=3;f<32&&u&128;f+=7)u=b[L++],H|=(u&127)<>>0,H>>>0);throw $f();}; +xf=function(Q,z){Q.Z=z;if(z>Q.L)throw $Ip(Q.L,z);}; +o0=function(Q){var z=Q.B,H=Q.Z,f=z[H++],b=f&127;if(f&128&&(f=z[H++],b|=(f&127)<<7,f&128&&(f=z[H++],b|=(f&127)<<14,f&128&&(f=z[H++],b|=(f&127)<<21,f&128&&(f=z[H++],b|=f<<28,f&128&&z[H++]&128&&z[H++]&128&&z[H++]&128&&z[H++]&128&&z[H++]&128)))))throw $f();xf(Q,H);return b}; +Jc=function(Q){var z=Q.B,H=Q.Z,f=z[H+0],b=z[H+1],L=z[H+2];z=z[H+3];xf(Q,Q.Z+4);return(f<<0|b<<8|L<<16|z<<24)>>>0}; +No=function(Q){var z=Jc(Q);Q=Jc(Q);return fS(z,Q)}; +I0=function(Q){var z=Jc(Q),H=Jc(Q);Q=(H>>31)*2+1;var f=H>>>20&2047;z=4294967296*(H&1048575)+z;return f==2047?z?NaN:Q*Infinity:f==0?Q*4.9E-324*z:Q*Math.pow(2,f-1075)*(z+4503599627370496)}; +Ac=function(Q){for(var z=0,H=Q.Z,f=H+10,b=Q.B;HQ.L)throw $Ip(z,Q.L-H);Q.Z=f;return H}; +OrL=function(Q,z){if(z==0)return O2();var H=Fzc(Q,z);Q.Iw&&Q.S?H=Q.B.subarray(H,H+z):(Q=Q.B,z=H+z,H=H===z?new Uint8Array(0):xI_?Q.slice(H,z):new Uint8Array(Q.subarray(H,z)));return H.length==0?O2():new Fk(H,xT)}; +rq=function(Q,z){if(Yf.length){var H=Yf.pop();H.init(Q,void 0,void 0,z);Q=H}else Q=new jG_(Q,z);this.Z=Q;this.L=this.Z.Z;this.B=this.D=-1;oT9(this,z)}; +oT9=function(Q,z){z=z===void 0?{}:z;Q.FF=z.FF===void 0?!1:z.FF}; +JCa=function(Q){var z=Q.Z;if(z.Z==z.L)return!1;Q.L=Q.Z.Z;var H=o0(Q.Z)>>>0;z=H>>>3;H&=7;if(!(H>=0&&H<=5))throw G7Y(H,Q.L);if(z<1)throw Error("Invalid field number: "+z+" (at position "+Q.L+")");Q.D=z;Q.B=H;return!0}; +s$=function(Q){switch(Q.B){case 0:Q.B!=0?s$(Q):Ac(Q.Z);break;case 1:Q=Q.Z;xf(Q,Q.Z+8);break;case 2:if(Q.B!=2)s$(Q);else{var z=o0(Q.Z)>>>0;Q=Q.Z;xf(Q,Q.Z+z)}break;case 5:Q=Q.Z;xf(Q,Q.Z+4);break;case 3:z=Q.D;do{if(!JCa(Q))throw Error("Unmatched start-group tag: stream EOF");if(Q.B==4){if(Q.D!=z)throw Error("Unmatched end-group tag");break}s$(Q)}while(1);break;default:throw G7Y(Q.B,Q.L);}}; +Bq=function(Q,z,H){var f=Q.Z.L,b=o0(Q.Z)>>>0,L=Q.Z.Z+b,u=L-f;u<=0&&(Q.Z.L=L,H(z,Q,void 0,void 0,void 0),u=L-Q.Z.Z);if(u)throw Error("Message parsing ended unexpectedly. Expected to read "+(b+" bytes, instead read "+(b-u)+" bytes, either the data ended unexpectedly or the message misreported its own length"));Q.Z.Z=L;Q.Z.L=f}; +U$=function(Q){var z=o0(Q.Z)>>>0;Q=Q.Z;var H=Fzc(Q,z);Q=Q.B;if(N7Z){var f=Q,b;(b=Pq)||(b=Pq=new TextDecoder("utf-8",{fatal:!0}));z=H+z;f=H===0&&z===f.length?f:f.subarray(H,z);try{var L=b.decode(f)}catch(y){if(a0===void 0){try{b.decode(new Uint8Array([128]))}catch(q){}try{b.decode(new Uint8Array([97])),a0=!0}catch(q){a0=!1}}!a0&&(Pq=void 0);throw y;}}else{L=H;z=L+z;H=[];for(var u=null,X,v;L=z?gJ():(v=Q[L++],X<194||(v&192)!==128?(L--,gJ()):H.push((X&31)<<6|v&63)): +X<240?L>=z-1?gJ():(v=Q[L++],(v&192)!==128||X===224&&v<160||X===237&&v>=160||((b=Q[L++])&192)!==128?(L--,gJ()):H.push((X&15)<<12|(v&63)<<6|b&63)):X<=244?L>=z-2?gJ():(v=Q[L++],(v&192)!==128||(X<<28)+(v-144)>>30!==0||((b=Q[L++])&192)!==128||((f=Q[L++])&192)!==128?(L--,gJ()):(X=(X&7)<<18|(v&63)<<12|(b&63)<<6|f&63,X-=65536,H.push((X>>10&1023)+55296,(X&1023)+56320))):gJ(),H.length>=8192&&(u=Bc6(u,H),H.length=0);L=Bc6(u,H)}return L}; +I3c=function(Q){var z=o0(Q.Z)>>>0;return OrL(Q.Z,z)}; +cq=function(Q,z,H){this.Pz=s7(Q,z,H)}; +ACY=function(Q,z){if(z==null||z=="")return new Q;z=JSON.parse(z);if(!Array.isArray(z))throw Error("dnarr");BY(z,32);return new Q(z)}; +ir=function(Q,z){this.B=Q>>>0;this.Z=z>>>0}; +rCZ=function(Q){if(!Q)return Y2Z||(Y2Z=new ir(0,0));if(!/^\d+$/.test(Q))return null;b5(Q);return new ir(T7,ej)}; +hc=function(Q,z){this.B=Q>>>0;this.Z=z>>>0}; +B7u=function(Q){if(!Q)return sG8||(sG8=new hc(0,0));if(!/^-?\d+$/.test(Q))return null;b5(Q);return new hc(T7,ej)}; +Wq=function(){this.Z=[]}; +Du=function(Q,z,H){for(;H>0||z>127;)Q.Z.push(z&127|128),z=(z>>>7|H<<25)>>>0,H>>>=7;Q.Z.push(z)}; +Kw=function(Q,z){for(;z>127;)Q.Z.push(z&127|128),z>>>=7;Q.Z.push(z)}; +P4p=function(Q,z){if(z>=0)Kw(Q,z);else{for(var H=0;H<9;H++)Q.Z.push(z&127|128),z>>=7;Q.Z.push(1)}}; +V3=function(Q,z){Q.Z.push(z>>>0&255);Q.Z.push(z>>>8&255);Q.Z.push(z>>>16&255);Q.Z.push(z>>>24&255)}; +a3A=function(){this.L=[];this.B=0;this.Z=new Wq}; +dq=function(Q,z){z.length!==0&&(Q.L.push(z),Q.B+=z.length)}; +UI_=function(Q,z){m6(Q,z,2);z=Q.Z.end();dq(Q,z);z.push(Q.B);return z}; +cCZ=function(Q,z){var H=z.pop();for(H=Q.B+Q.Z.length()-H;H>127;)z.push(H&127|128),H>>>=7,Q.B++;z.push(H);Q.B++}; +irY=function(Q,z){dq(Q,Q.Z.end());for(var H=0;H>BigInt(32)));Q=Q.Z;z=H.Z;V3(Q,H.B);V3(Q,z);break;default:H=rCZ(H),Q=Q.Z,z=H.Z,V3(Q,H.B),V3(Q,z)}}}; +wq=function(Q,z,H){m6(Q,z,2);Kw(Q.Z,H.length);dq(Q,Q.Z.end());dq(Q,H)}; +kf=function(){function Q(){throw Error();} +Object.setPrototypeOf(Q,Q.prototype);return Q}; +e4=function(Q,z,H){this.VI=Q;this.mR=z;Q=Znk(TH);this.Z=!!Q&&H===Q||!1}; +lr=function(Q,z){var H=H===void 0?TH:H;return new e4(Q,z,H)}; +DI6=function(Q,z,H,f,b){z=Wzu(z,f);z!=null&&(H=UI_(Q,H),b(z,Q),cCZ(Q,H))}; +zU=function(Q,z,H,f){var b=f[Q];if(b)return b;b={};b.Efn=f;b.Fl=Mj_(f[0]);var L=f[1],u=1;L&&L.constructor===Object&&(b.extensions=L,L=f[++u],typeof L==="function"&&(b.x_=!0,R0!=null||(R0=L),Qo!=null||(Qo=f[u+1]),L=f[u+=2]));for(var X={};L&&Array.isArray(L)&&L.length&&typeof L[0]==="number"&&L[0]>0;){for(var v=0;v>BigInt(32)));Du(Q.Z,H.B,H.Z);break;default:H=B7u(z),Du(Q.Z,H.B,H.Z)}}}; +EK=function(Q,z,H){z=q4(z);z!=null&&z!=null&&(m6(Q,H,0),P4p(Q.Z,z))}; +QU_=function(Q,z,H){z=z==null||typeof z==="boolean"?z:typeof z==="number"?!!z:void 0;z!=null&&(m6(Q,H,0),Q.Z.Z.push(z?1:0))}; +zeL=function(Q,z,H){z=xt(z);z!=null&&wq(Q,H,c8Z(z))}; +HSJ=function(Q,z,H,f,b){z=Wzu(z,f);z!=null&&(H=UI_(Q,H),b(z,Q),cCZ(Q,H))}; +bSZ=function(){this.Z=fcn;this.isRepeated=0;this.B=XP;this.defaultValue=void 0}; +L8v=function(Q){return function(){var z=new a3A;eWA(this.Pz,z,zU(Se,uz,X3,Q));dq(z,z.Z.end());for(var H=new Uint8Array(z.B),f=z.L,b=f.length,L=0,u=0;u>>31)&4294967295;M=b[0];var E=b[1],G=b[2],x=b[3],J=b[4];for(t=0;t<80;t++){if(t<40)if(t<20){var I=x^E&(G^x);var r=1518500249}else I=E^G^x,r=1859775393;else t<60?(I=E&G|x&(E|G),r=2400959708):(I=E^G^x,r=3395469782);I=((M<<5|M>>>27)&4294967295)+I+J+r+C[t]&4294967295;J=x;x=G;G=(E<<30|E>>>2)&4294967295;E=M;M=I}b[0]=b[0]+M&4294967295;b[1]=b[1]+E&4294967295;b[2]= +b[2]+G&4294967295;b[3]=b[3]+x&4294967295;b[4]=b[4]+J&4294967295} +function H(M,C){if(typeof M==="string"){M=unescape(encodeURIComponent(M));for(var t=[],E=0,G=M.length;E=56;t--)L[t]=C&255,C>>>=8;z(L);for(t=C=0;t<5;t++)for(var E=24;E>=0;E-=8)M[C++]=b[t]>>E&255;return M} +for(var b=[],L=[],u=[],X=[128],v=1;v<64;++v)X[v]=0;var y,q;Q();return{reset:Q,update:H,digest:f,dw:function(){for(var M=f(),C="",t=0;t4);b++)z[kg(Q[b])]||(H+="\nInner error "+f++ +": ",Q[b].stack&&Q[b].stack.indexOf(Q[b].toString())==0||(H+=typeof Q[b]==="string"?Q[b]:Q[b].message+"\n"),H+=mT(Q[b],z));b")!=-1&&(Q=Q.replace(An9,">")),Q.indexOf('"')!=-1&&(Q=Q.replace(Y7k,""")),Q.indexOf("'")!=-1&&(Q=Q.replace(rnA,"'")),Q.indexOf("\x00")!=-1&&(Q=Q.replace(sUZ,"�")));return Q}; +g.Q4=function(Q){return Q==null?"":String(Q)}; +z2=function(Q){for(var z=0,H=0;H>>0;return z}; +H3=function(Q){var z=Number(Q);return z==0&&g.Fx(Q)?NaN:z}; +BC6=function(Q){return String(Q).replace(/\-([a-z])/g,function(z,H){return H.toUpperCase()})}; +P5L=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; +acJ=function(Q){return Q.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(z,H,f){return H+f.toUpperCase()})}; +U4L=function(Q){var z=1;Q=Q.split(":");for(var H=[];z>0&&Q.length;)H.push(Q.shift()),z--;Q.length&&H.push(Q.join(":"));return H}; +fC=function(Q){this.Z=Q||{cookie:""}}; +bQ=function(Q){Q=(Q.Z.cookie||"").split(";");for(var z=[],H=[],f,b,L=0;L/g,">").replace(/"/g,""").replace(/'/g,"'");return a$(Q)}; +m4_=function(Q){var z=h6("");return a$(Q.map(function(H){return UK(h6(H))}).join(UK(z).toString()))}; +lcc=function(Q){var z;if(!woc.test("div"))throw Error("");if(kiA.indexOf("DIV")!==-1)throw Error("");var H="":(Q=m4_(z.map(function(f){return f instanceof PJ?f:h6(String(f))})),H+=">"+Q.toString()+""); +return a$(H)}; +TCc=function(Q){for(var z="",H=Object.keys(Q),f=0;f2&&uPc(b,u,f,2);return u}; +uPc=function(Q,z,H,f){function b(X){X&&z.appendChild(typeof X==="string"?Q.createTextNode(X):X)} +for(;f0)b(L);else{a:{if(L&&typeof L.length=="number"){if(g.kv(L)){var u=typeof L.item=="function"||typeof L.item=="string";break a}if(typeof L==="function"){u=typeof L.item=="function";break a}}u=!1}g.MI(u?g.z7(L):L,b)}}}; +g.fm=function(Q){return zl(document,Q)}; +zl=function(Q,z){z=String(z);Q.contentType==="application/xhtml+xml"&&(z=z.toLowerCase());return Q.createElement(z)}; +g.bT=function(Q){return document.createTextNode(String(Q))}; +g.Lm=function(Q,z){Q.appendChild(z)}; +g.uT=function(Q){for(var z;z=Q.firstChild;)Q.removeChild(z)}; +Sz=function(Q,z,H){Q.insertBefore(z,Q.childNodes[H]||null)}; +g.XU=function(Q){return Q&&Q.parentNode?Q.parentNode.removeChild(Q):null}; +g.vx=function(Q,z){if(!Q||!z)return!1;if(Q.contains&&z.nodeType==1)return Q==z||Q.contains(z);if(typeof Q.compareDocumentPosition!="undefined")return Q==z||!!(Q.compareDocumentPosition(z)&16);for(;z&&Q!=z;)z=z.parentNode;return z==Q}; +Dz=function(Q){return Q.nodeType==9?Q:Q.ownerDocument||Q.document}; +g.yp=function(Q,z){if("textContent"in Q)Q.textContent=z;else if(Q.nodeType==3)Q.data=String(z);else if(Q.firstChild&&Q.firstChild.nodeType==3){for(;Q.lastChild!=Q.firstChild;)Q.removeChild(Q.lastChild);Q.firstChild.data=String(z)}else g.uT(Q),Q.appendChild(Dz(Q).createTextNode(String(z)))}; +Xqv=function(Q){return Q.tagName=="A"&&Q.hasAttribute("href")||Q.tagName=="INPUT"||Q.tagName=="TEXTAREA"||Q.tagName=="SELECT"||Q.tagName=="BUTTON"?!Q.disabled&&(!Q.hasAttribute("tabindex")||S$a(Q)):Q.hasAttribute("tabindex")&&S$a(Q)}; +S$a=function(Q){Q=Q.tabIndex;return typeof Q==="number"&&Q>=0&&Q<32768}; +MK=function(Q,z,H){if(!z&&!H)return null;var f=z?String(z).toUpperCase():null;return qK(Q,function(b){return(!f||b.nodeName==f)&&(!H||typeof b.className==="string"&&g.TY(b.className.split(/\s+/),H))},!0)}; +qK=function(Q,z,H){Q&&!H&&(Q=Q.parentNode);for(H=0;Q;){if(z(Q))return Q;Q=Q.parentNode;H++}return null}; +W3=function(Q){this.Z=Q||g.W_.document||document}; +Cm=function(Q){this.Pz=s7(Q)}; +tU=function(Q){this.Pz=s7(Q)}; +E0=function(Q){this.Pz=s7(Q)}; +vfn=function(Q,z){qo(Q,tU,1,z)}; +pm=function(Q){this.Pz=s7(Q)}; +q$v=function(Q,z){z=z===void 0?ycv:z;if(!nm){var H;Q=(H=Q.navigator)==null?void 0:H.userAgentData;if(!Q||typeof Q.getHighEntropyValues!=="function"||Q.brands&&typeof Q.brands.map!=="function")return Promise.reject(Error("UACH unavailable"));H=(Q.brands||[]).map(function(b){var L=new tU;L=gq(L,1,b.brand);return gq(L,2,b.version)}); +vfn(Wo(gf,2,SX(Q.mobile)),H);nm=Q.getHighEntropyValues(z)}var f=new Set(z);return nm.then(function(b){var L=gf.clone();f.has("platform")&&gq(L,3,b.platform);f.has("platformVersion")&&gq(L,4,b.platformVersion);f.has("architecture")&&gq(L,5,b.architecture);f.has("model")&&gq(L,6,b.model);f.has("uaFullVersion")&&gq(L,7,b.uaFullVersion);return L}).catch(function(){return gf.clone()})}; +ZN=function(Q){this.Pz=s7(Q)}; +M4Z=function(Q){this.Pz=s7(Q)}; +Gl=function(Q){this.Pz=s7(Q,4)}; +$Z=function(Q){this.Pz=s7(Q,36)}; +jz=function(Q){this.Pz=s7(Q,19)}; +FU=function(Q,z){this.M3=z=z===void 0?!1:z;this.uach=this.locale=null;this.B=0;this.isFinal=!1;this.Z=new jz;Number.isInteger(Q)&&this.Z.bx(Q);z||(this.locale=document.documentElement.getAttribute("lang"));Cru(this,new ZN)}; +Cru=function(Q,z){vq(Q.Z,ZN,1,z);pw(z,1)||GH(z,1,1);Q.M3||(z=O0(Q),E$(z,5)||gq(z,5,Q.locale));Q.uach&&(z=O0(Q),XP(z,E0,9)||vq(z,E0,9,Q.uach))}; +t4p=function(Q,z){Q.B=z}; +EfA=function(Q){var z=z===void 0?ycv:z;var H=Q.M3?void 0:Qp();H?q$v(H,z).then(function(f){Q.uach=f;f=O0(Q);vq(f,E0,9,Q.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)}; +O0=function(Q){Q=XP(Q.Z,ZN,1);var z=XP(Q,pm,11);z||(z=new pm,vq(Q,pm,11,z));return z}; +pqn=function(Q){return g.RI?"webkit"+Q:Q.toLowerCase()}; +g.oK=function(Q,z,H,f){this.D=Q;this.S=z;this.Z=this.L=Q;this.j=H||0;this.Y=f||2}; +g.JU=function(Q){Q.Z=Math.min(Q.S,Q.Z*Q.Y);Q.L=Math.min(Q.S,Q.Z+(Q.j?Math.round(Q.j*(Math.random()-.5)*2*Q.Z):0));Q.B++}; +nfL=function(Q){this.Pz=s7(Q,8)}; +fcn=function(Q){this.Pz=s7(Q)}; +IK=function(Q){g.h.call(this);var z=this;this.componentId="";this.Z=[];this.jm="";this.pageId=null;this.mq=this.L3=-1;this.Y=this.experimentIds=null;this.Ze=this.wh=this.j=this.D=0;this.En=1;this.timeoutMillis=0;this.De=!1;this.logSource=Q.logSource;this.h3=Q.h3||function(){}; +this.L=new FU(Q.logSource,Q.M3);this.network=Q.network||null;this.qY=Q.qY||null;this.N=Q.M3T||null;this.sessionIndex=Q.sessionIndex||null;this.t1=Q.t1||!1;this.logger=null;this.withCredentials=!Q.eO;this.M3=Q.M3||!1;this.U=!this.M3&&!!Qp()&&!!Qp().navigator&&Qp().navigator.sendBeacon!==void 0;this.f3=typeof URLSearchParams!=="undefined"&&!!(new URL(NK())).searchParams&&!!(new URL(NK())).searchParams.set;var H=GH(new ZN,1,1);Cru(this.L,H);this.S=new g.oK(1E4,3E5,.1);Q=gf_(this,Q.DT);this.B=new Sa(this.S.getValue(), +Q);this.yl=new Sa(6E5,Q);this.t1||this.yl.start();this.M3||(document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&z.P4()}),document.addEventListener("pagehide",this.P4.bind(this)))}; +gf_=function(Q,z){return Q.f3?z?function(){z().then(function(){Q.flush()})}:function(){Q.flush()}:function(){}}; +Zwu=function(Q){Q.N||(Q.N=NK());try{return(new URL(Q.N)).toString()}catch(z){return(new URL(Q.N,Qp().location.origin)).toString()}}; +GHn=function(Q,z,H){H=H===void 0?Q.h3():H;var f={},b=new URL(Zwu(Q));H&&(f.Authorization=H);Q.sessionIndex&&(f["X-Goog-AuthUser"]=Q.sessionIndex,b.searchParams.set("authuser",Q.sessionIndex));Q.pageId&&(Object.defineProperty(f,"X-Goog-PageId",{value:Q.pageId}),b.searchParams.set("pageId",Q.pageId));return{url:b.toString(),body:z,U$:1,requestHeaders:f,requestType:"POST",withCredentials:Q.withCredentials,timeoutMillis:Q.timeoutMillis}}; +j0L=function(Q){$on(Q,function(z,H){z=new URL(z);z.searchParams.set("format","json");var f=!1;try{f=Qp().navigator.sendBeacon(z.toString(),H.dP())}catch(b){}f||(Q.U=!1);return f})}; +$on=function(Q,z){if(Q.Z.length!==0){var H=new URL(Zwu(Q));H.searchParams.delete("format");var f=Q.h3();f&&H.searchParams.set("auth",f);H.searchParams.set("authuser",Q.sessionIndex||"0");for(f=0;f<10&&Q.Z.length;++f){var b=Q.Z.slice(0,32),L=Q.L.build(b,Q.D,Q.j,Q.qY,Q.wh,Q.Ze);if(!z(H.toString(),L)){++Q.j;break}Q.D=0;Q.j=0;Q.wh=0;Q.Ze=0;Q.Z=Q.Z.slice(b.length)}Q.B.enabled&&Q.B.stop()}}; +NK=function(){return"https://play.google.com/log?format=json&hasfast=true"}; +AU=function(){this.m1=typeof AbortController!=="undefined"}; +YZ=function(Q,z){g.h.call(this);this.logSource=Q;this.sessionIndex=z;this.E4="https://play.google.com/log?format=json&hasfast=true";this.B=null;this.D=!1;this.network=null;this.componentId="";this.Z=this.qY=null;this.L=!1;this.pageId=null}; +F6a=function(Q,z){Q.B=z;return Q}; +xoZ=function(Q,z){Q.network=z;return Q}; +Owc=function(Q,z){Q.Z=z}; +ofZ=function(Q){Q.L=!0;return Q}; +rf=function(Q,z,H,f,b,L,u){Q=Q===void 0?-1:Q;z=z===void 0?"":z;H=H===void 0?"":H;f=f===void 0?!1:f;b=b===void 0?"":b;g.h.call(this);this.logSource=Q;this.componentId=z;L?z=L:(Q=new YZ(Q,"0"),Q.componentId=z,g.W(this,Q),H!==""&&(Q.E4=H),f&&(Q.D=!0),b&&F6a(Q,b),u&&xoZ(Q,u),z=Q.build());this.Z=z}; +Jcu=function(Q){this.Z=Q}; +s0=function(Q,z,H){this.B=Q;this.D=z;this.fields=H||[];this.Z=new Map}; +ync=function(Q){return Q.fields.map(function(z){return z.fieldType})}; +vtJ=function(Q){return Q.fields.map(function(z){return z.fieldName})}; +Bx=function(Q,z){s0.call(this,Q,3,z)}; +Px=function(Q,z){s0.call(this,Q,2,z)}; +g.aK=function(Q,z){this.type=Q;this.currentTarget=this.target=z;this.defaultPrevented=this.B=!1}; +U0=function(Q,z){g.aK.call(this,Q?Q.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.Z=null;Q&&this.init(Q,z)}; +cx=function(Q){return!(!Q||!Q[NqJ])}; +Ac_=function(Q,z,H,f,b){this.listener=Q;this.proxy=null;this.src=z;this.type=H;this.capture=!!f;this.Hc=b;this.key=++IuJ;this.removed=this.ws=!1}; +iT=function(Q){Q.removed=!0;Q.listener=null;Q.proxy=null;Q.src=null;Q.Hc=null}; +hU=function(Q){this.src=Q;this.listeners={};this.Z=0}; +g.Wx=function(Q,z){var H=z.type;H in Q.listeners&&g.lR(Q.listeners[H],z)&&(iT(z),Q.listeners[H].length==0&&(delete Q.listeners[H],Q.Z--))}; +DN=function(Q,z,H,f){for(var b=0;b1)));u=u.next)b||(L=u);b&&(H.Z==0&&f==1?zOA(H,z):(L?(f=L,f.next==H.D&&(H.D=f),f.next=f.next.next):H$a(H),fTn(H,b,3,z)))}Q.L=null}else ng(Q,3,z)}; +jL=function(Q,z){Q.B||Q.Z!=2&&Q.Z!=3||b$J(Q);Q.D?Q.D.next=z:Q.B=z;Q.D=z}; +LTu=function(Q,z,H,f){var b=Zl(null,null,null);b.Z=new g.ge(function(L,u){b.L=z?function(X){try{var v=z.call(f,X);L(v)}catch(y){u(y)}}:L; +b.B=H?function(X){try{var v=H.call(f,X);v===void 0&&X instanceof xr?u(X):L(v)}catch(y){u(y)}}:u}); +b.Z.L=Q;jL(Q,b);return b.Z}; +ng=function(Q,z,H){Q.Z==0&&(Q===H&&(z=3,H=new TypeError("Promise cannot resolve to itself")),Q.Z=1,kHc(H,Q.OEh,Q.ZEe,Q)||(Q.Y=H,Q.Z=z,Q.L=null,b$J(Q),z!=3||H instanceof xr||u3L(Q,H)))}; +kHc=function(Q,z,H,f){if(Q instanceof g.ge)return Q$v(Q,z,H,f),!0;if(Q)try{var b=!!Q.$goog_Thenable}catch(u){b=!1}else b=!1;if(b)return Q.then(z,H,f),!0;if(g.kv(Q))try{var L=Q.then;if(typeof L==="function")return SKJ(Q,L,z,H,f),!0}catch(u){return H.call(f,u),!0}return!1}; +SKJ=function(Q,z,H,f,b){function L(v){X||(X=!0,f.call(b,v))} +function u(v){X||(X=!0,H.call(b,v))} +var X=!1;try{z.call(Q,u,L)}catch(v){L(v)}}; +b$J=function(Q){Q.j||(Q.j=!0,g.MH(Q.Mo,Q))}; +H$a=function(Q){var z=null;Q.B&&(z=Q.B,Q.B=z.next,z.next=null);Q.B||(Q.D=null);return z}; +fTn=function(Q,z,H,f){if(H==3&&z.B&&!z.D)for(;Q&&Q.S;Q=Q.L)Q.S=!1;if(z.Z)z.Z.L=null,XJ8(z,H,f);else try{z.D?z.L.call(z.context):XJ8(z,H,f)}catch(b){vgA.call(null,b)}cc_(wqL,z)}; +XJ8=function(Q,z,H){z==2?Q.L.call(Q.context,H):Q.B&&Q.B.call(Q.context,H)}; +u3L=function(Q,z){Q.S=!0;g.MH(function(){Q.S&&vgA.call(null,z)})}; +xr=function(Q){ps.call(this,Q)}; +lu6=function(Q,z,H){this.promise=Q;this.resolve=z;this.reject=H}; +g.OE=function(Q,z){g.zM.call(this);this.I6=Q||1;this.CR=z||g.W_;this.Kk=(0,g.RJ)(this.Ish,this);this.fO=g.zY()}; +g.oR=function(Q,z,H){if(typeof Q==="function")H&&(Q=(0,g.RJ)(Q,H));else if(Q&&typeof Q.handleEvent=="function")Q=(0,g.RJ)(Q.handleEvent,Q);else throw Error("Invalid listener argument");return Number(z)>2147483647?-1:g.W_.setTimeout(Q,z||0)}; +Jj=function(Q,z){var H=null;return(new g.ge(function(f,b){H=g.oR(function(){f(z)},Q); +H==-1&&b(Error("Failed to schedule timer."))})).IN(function(f){g.W_.clearTimeout(H); +throw f;})}; +g.NH=function(Q){g.h.call(this);this.Y=Q;this.D=0;this.L=100;this.S=!1;this.B=new Map;this.j=new Set;this.flushInterval=3E4;this.Z=new g.OE(this.flushInterval);this.Z.listen("tick",this.nR,!1,this);g.W(this,this.Z)}; +ybA=function(Q){Q.Z.enabled||Q.Z.start();Q.D++;Q.D>=Q.L&&Q.nR()}; +qKA=function(Q,z){return Q.j.has(z)?void 0:Q.B.get(z)}; +MeY=function(Q){for(var z=0;z=0){var L=Q[H].substring(0,f);b=Q[H].substring(f+1)}else L=Q[H];z(L,b?lz(b):"")}}}; +Dl=function(Q,z){if(!z)return Q;var H=Q.indexOf("#");H<0&&(H=Q.length);var f=Q.indexOf("?");if(f<0||f>H){f=H;var b=""}else b=Q.substring(f+1,H);Q=[Q.slice(0,f),b,Q.slice(H)];H=Q[1];Q[1]=z?H?H+"&"+z:z:H;return Q[0]+(Q[1]?"?"+Q[1]:"")+Q[2]}; +Kg=function(Q,z,H){if(Array.isArray(z))for(var f=0;f=0&&zH)b=H;f+=z.length+1;return lz(Q.slice(f,b!==-1?b:0))}; +kr=function(Q,z){for(var H=Q.search(xzc),f=0,b,L=[];(b=FSv(Q,f,z,H))>=0;)L.push(Q.substring(f,b)),f=Math.min(Q.indexOf("&",b)+1||H,H);L.push(Q.slice(f));return L.join("").replace(OCp,"$1")}; +os8=function(Q,z,H){return m_(kr(Q,z),z,H)}; +g.TM=function(Q){g.zM.call(this);this.headers=new Map;this.yl=Q||null;this.L=!1;this.Z=null;this.N="";this.B=0;this.D="";this.S=this.L3=this.U=this.wh=!1;this.Ze=0;this.j=null;this.De="";this.Y=!1}; +Nau=function(Q,z,H,f,b,L,u){var X=new g.TM;J6c.push(X);z&&X.listen("complete",z);X.iJ("ready",X.zd);L&&(X.Ze=Math.max(0,L));u&&(X.Y=u);X.send(Q,H,f,b)}; +A69=function(Q,z){Q.L=!1;Q.Z&&(Q.S=!0,Q.Z.abort(),Q.S=!1);Q.D=z;Q.B=5;Izu(Q);eL(Q)}; +Izu=function(Q){Q.wh||(Q.wh=!0,Q.dispatchEvent("complete"),Q.dispatchEvent("error"))}; +Yrc=function(Q){if(Q.L&&typeof ld!="undefined")if(Q.U&&g.RR(Q)==4)setTimeout(Q.RH.bind(Q),0);else if(Q.dispatchEvent("readystatechange"),Q.isComplete()){Q.getStatus();Q.L=!1;try{if(Q$(Q))Q.dispatchEvent("complete"),Q.dispatchEvent("success");else{Q.B=6;try{var z=g.RR(Q)>2?Q.Z.statusText:""}catch(H){z=""}Q.D=z+" ["+Q.getStatus()+"]";Izu(Q)}}finally{eL(Q)}}}; +eL=function(Q,z){if(Q.Z){Q.j&&(clearTimeout(Q.j),Q.j=null);var H=Q.Z;Q.Z=null;z||Q.dispatchEvent("ready");try{H.onreadystatechange=null}catch(f){}}}; +Q$=function(Q){var z=Q.getStatus();a:switch(z){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var H=!0;break a;default:H=!1}if(!H){if(z=z===0)Q=g.c4(1,String(Q.N)),!Q&&g.W_.self&&g.W_.self.location&&(Q=g.W_.self.location.protocol.slice(0,-1)),z=!r6A.test(Q?Q.toLowerCase():"");H=z}return H}; +g.RR=function(Q){return Q.Z?Q.Z.readyState:0}; +g.zA=function(Q){try{return Q.Z?Q.Z.responseText:""}catch(z){return""}}; +g.Hn=function(Q){try{if(!Q.Z)return null;if("response"in Q.Z)return Q.Z.response;switch(Q.De){case "":case "text":return Q.Z.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in Q.Z)return Q.Z.mozResponseArrayBuffer}return null}catch(z){return null}}; +g.sIp=function(Q){var z={};Q=(Q.Z&&g.RR(Q)>=2?Q.Z.getAllResponseHeaders()||"":"").split("\r\n");for(var H=0;H>1,z),I6(Q,Q.length>>1)]}; +q0u=function(Q){var z=g.n(yUu(Q,YM));Q=z.next().value;z=z.next().value;return Q.toString(16)+z.toString(16)}; +Mz8=function(Q,z){var H=yUu(z);Q=new Uint32Array(Q.buffer);z=Q[0];var f=g.n(H);H=f.next().value;f=f.next().value;for(var b=1;b>>8|u<<24,u+=L|0,u^=X+38293,L=L<<3|L>>>29,L^=u,v=v>>>8|v<<24,v+=X|0,v^=y+38293,X=X<<3|X>>>29,X^=v;L=[L,u];Q[b]^=L[0];b+1=H?(globalThis.sessionStorage.removeItem(Q),["e"]):["a",new Uint8Array(f.buffer,z+4)]}; +rB=function(Q,z,H){H=H===void 0?[]:H;this.maxItems=Q;this.Z=z===void 0?0:z;this.B=H}; +EZ9=function(Q){var z=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!z)return new rB(Q);var H=z.split(",");if(H.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new rB(Q);z=H.slice(1);z.length===1&&z[0]===""&&(z=[]);H=Number(H[0]);return isNaN(H)||H<0||H>z.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new rB(Q)):new rB(Q,H,z)}; +pxk=function(Q,z){this.logger=z;try{var H=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(f){H=!1}H&&(this.index=EZ9(Q))}; +nZa=function(Q,z,H,f,b){var L=Q.index?X0(Q.logger,function(){return CTA(Q.index,q0u(z),H,f,b)},"W"):"u"; +Q.logger.Dp(L)}; +gZc=function(Q,z,H){var f=g.n(Q.index?X0(Q.logger,function(){return tzn(q0u(z),H)},"R"):["u"]),b=f.next().value; +f=f.next().value;Q.logger.qk(b);return f}; +$Kv=function(Q){function z(){H-=f;H-=b;H^=b>>>13;f-=b;f-=H;f^=H<<8;b-=H;b-=f;b^=f>>>13;H-=f;H-=b;H^=b>>>12;f-=b;f-=H;f^=H<<16;b-=H;b-=f;b^=f>>>5;H-=f;H-=b;H^=b>>>3;f-=b;f-=H;f^=H<<10;b-=H;b-=f;b^=f>>>15} +Q=Zma(Q);for(var H=2654435769,f=2654435769,b=314159265,L=Q.length,u=L,X=0;u>=12;u-=12,X+=12)H+=so(Q,X),f+=so(Q,X+4),b+=so(Q,X+8),z();b+=L;switch(u){case 11:b+=Q[X+10]<<24;case 10:b+=Q[X+9]<<16;case 9:b+=Q[X+8]<<8;case 8:f+=Q[X+7]<<24;case 7:f+=Q[X+6]<<16;case 6:f+=Q[X+5]<<8;case 5:f+=Q[X+4];case 4:H+=Q[X+3]<<24;case 3:H+=Q[X+2]<<16;case 2:H+=Q[X+1]<<8;case 1:H+=Q[X+0]}z();return Gln.toString(b)}; +Zma=function(Q){for(var z=[],H=0;H>7,Q.error.code]);f.set(H,4);return f}; +KW=function(Q,z,H){Bn.call(this,Q);this.D=z;this.clientState=H;this.Z="S";this.L="q"}; +DW=function(Q){return globalThis.TextEncoder?(new TextEncoder).encode(Q):g.GY(Q)}; +xK6=function(Q,z,H){return Q instanceof Oo?ef8(Q,H,z,1):Q.Na(H)}; +V$=function(Q,z,H){g.h.call(this);var f=this;this.logger=Q;this.onError=z;this.state=H;this.Y=0;this.B=void 0;this.addOnDisposeCallback(function(){f.Z&&(f.Z.dispose(),f.Z=void 0)})}; +Omv=function(Q,z){z=z instanceof fs?z:new fs(5,"TVD:error",z);return Q.reportError(z)}; +dB=function(Q,z,H){try{if(Q.Sm())throw new fs(21,"BNT:disposed");if(!Q.Z&&Q.B)throw Q.B;var f,b;return(b=(f=oZa(Q,z,H))!=null?f:JUp(Q,z,H))!=null?b:Nf8(Q,z,H)}catch(L){if(!z.MM)throw Omv(Q,L);return INZ(Q,H,L)}}; +oZa=function(Q,z,H){var f;return(f=Q.Z)==null?void 0:a6(f,function(){return mv(Q,z)},H,function(b){var L; +if(Q.Z instanceof Uo&&((L=z.WB)==null?0:L.Q5))try{var u;(u=Q.cache)==null||nZa(u,mv(Q,z),b,z.WB.KW,Q.N-120)}catch(X){Q.reportError(new fs(24,"ELX:write",X))}})}; +JUp=function(Q,z,H){var f;if((f=z.WB)!=null&&f.lI)try{var b,L=(b=Q.cache)==null?void 0:gZc(b,mv(Q,z),z.WB.KW);return L?H?X0(Q.logger,function(){return g.g7(L,2)},"a"):L:void 0}catch(u){Q.reportError(new fs(23,"RXO:read",u))}}; +Nf8=function(Q,z,H){var f={stack:[],error:void 0,hasError:!1};try{if(!z.kC)throw new fs(29,"SDF:notready");return a6(Gu_(f,new KW(Q.logger,Q.Y,Q.state)),function(){return mv(Q,z)},H)}catch(b){f.error=b,f.hasError=!0}finally{$ku(f)}}; +INZ=function(Q,z,H){var f={stack:[],error:void 0,hasError:!1};try{var b=Omv(Q,H);return a6(Gu_(f,new Wn(Q.logger,b)),function(){return[]},z)}catch(L){f.error=L,f.hasError=!0}finally{$ku(f)}}; +mv=function(Q,z){return z.Zo?z.Zo:z.hT?X0(Q.logger,function(){return z.Zo=DW(z.hT)},"c"):[]}; +kM=function(Q){var z;V$.call(this,Q.Wc.Jr(),(z=Q.onError)!=null?z:function(){},0); +var H=this;this.S=0;this.D=new g.gB;this.L=!1;this.Wc=Q.Wc;this.Gi=Q.Gi;this.du=Object.assign({},AUv,Q.du||{});Q.RN&&(this.logger instanceof CW||this.logger instanceof y$)&&this.logger.vg(Q.RN);this.q5=Q.q5||!1;if(Y0Y(Q)){var f=this.Wc;this.j=function(){return HmZ(f).catch(function(u){u=H.reportError(new fs(H.L?20:32,"TRG:Disposed",u));H.B=u;var X;(X=H.Z)==null||X.dispose();H.Z=void 0;H.D.reject(u)})}; +fNv(f,function(){return void wB(H)}); +f.N===2&&wB(this)}else this.j=Q.z7m,wB(this);var b=this.logger.share();b.EJ("o");var L=new uu(b,"o");this.D.promise.then(function(){L.done();b.p9();b.dispose()},function(){return void b.dispose()}); +this.addOnDisposeCallback(function(){H.L||(H.B?H.logger.p9():(H.B=H.reportError(new fs(32,"TNP:Disposed")),H.logger.p9(),H.D.reject(H.B)))}); +g.W(this,this.logger)}; +rUL=function(Q,z){if(!(z instanceof fs))if(z instanceof IR){var H=Error(z.toString());H.stack=z.stack;z=new fs(11,"EBH:Error",H)}else z=new fs(12,"BSO:Unknown",z);return Q.reportError(z)}; +wB=function(Q){var z,H,f,b,L,u,X,v,y,q,M,C,t,E,G;return g.B(function(x){switch(x.Z){case 1:z=void 0;Q.S++;H=new g.gB;Q.Wc instanceof o6&&Q.Wc.D.push(H.promise);if(!Q.q5){x.bT(2);break}f=new g.gB;setTimeout(function(){return void f.resolve()}); +return g.Y(x,f.promise,2);case 2:return b=Q.logger.share(),g.jY(x,4,5),Q.state=5,L={},u=[],g.Y(x,Na(Q.Wc.snapshot({hT:L,XJ:u}),Q.du.ls3,function(){return Promise.reject(new fs(15,"MDA:Timeout"))}),7); +case 7:X=x.B;if(Q.Sm())throw new fs(Q.L?20:32,"MDA:Disposed");v=u[0];Q.state=6;return g.Y(x,Na(xK6(Q.Gi,b,X),Q.du.SX,function(){return Promise.reject(new fs(10,"BWB:Timeout"))}),8); +case 8:y=x.B;if(Q.Sm())throw new fs(Q.L?20:32,"BWB:Disposed");Q.state=7;z=X0(b,function(){var I=sK8(Q,y,H,v);I.B.promise.then(function(){return void Q.j()}).catch(function(){}); +return I},"i"); +case 5:g.oJ(x);b.dispose();g.Nk(x,6);break;case 4:q=g.OA(x);(M=z)==null||M.dispose();if(!Q.B){C=rUL(Q,q);H.resolve();var J;if(J=Q.Wc instanceof o6&&Q.S<2)a:if(q instanceof fs)J=q.code!==32&&q.code!==20&&q.code!==10;else{if(q instanceof IR)switch(q.code){case 2:case 13:case 14:case 4:break;default:J=!1;break a}J=!0}if(J)return t=(1+Math.random()*.25)*(Q.L?6E4:1E3),E=setTimeout(function(){return void Q.j()},t),Q.addOnDisposeCallback(function(){return void clearTimeout(E)}),x.return(); +Q.B=C}b.NO(Q.L?13:14);Q.D.reject(Q.B);return x.return();case 6:Q.state=8,Q.S=0,(G=Q.Z)==null||G.dispose(),Q.Z=z,Q.L=!0,Q.D.resolve(),g.$v(x)}})}; +sK8=function(Q,z,H,f){var b=tc(z,2)*1E3;if(b<=0)throw new fs(31,"TTM:Invalid");if(E$(z,4))return new iu(Q.logger,E$(z,4),b);if(!tc(z,3))return new cn(Q.logger,JC(Ti(z,1)),b);if(!f)throw new fs(4,"PMD:Undefined");f=f(JC(Ti(z,1)));if(!(f instanceof Function))throw new fs(16,"APF:Failed");Q.N=Math.floor((Date.now()+b)/1E3);Q=new Uo(Q.logger,f,tc(z,3),b);Q.addOnDisposeCallback(function(){return void H.resolve()}); +return Q}; +TA=function(){var Q=0,z;return function(H){z||(z=new vn);var f=new KW(z,Q,1),b=a6(f,function(){return DW(H)},!0); +f.dispose();Q++;return b}}; +eB=function(Q){this.Pz=s7(Q)}; +Bfv=function(Q,z,H){this.HD=Q;this.Bj=z;this.metadata=H}; +lu=function(Q,z){z=z===void 0?{}:z;this.Eu3=Q;this.metadata=z;this.status=null}; +R6=function(Q,z,H,f,b){this.name=Q;this.methodType="unary";this.requestType=z;this.responseType=H;this.Z=f;this.B=b}; +Qf=function(Q){this.Pz=s7(Q)}; +zn=function(Q){this.Pz=s7(Q)}; +HQ=function(Q){this.Pz=s7(Q)}; +f7=function(Q,z){this.Y=Q.e93;this.N=z;this.Z=Q.xhr;this.L=[];this.S=[];this.j=[];this.D=[];this.B=[];this.Y&&PTL(this)}; +imc=function(Q,z){var H=new aN_;g.Vp(Q.Z,"complete",function(){if(Q$(Q.Z)){var f=g.zA(Q.Z);if(z&&Q.Z.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");f=atob(f)}try{var b=Q.N(f)}catch(X){bl(Q,L7(new IR(13,"Error when deserializing response data; error: "+X+(", response: "+f)),H));return}f=Cz_(Q.Z.getStatus());ul(Q,SF(Q));f==0?UKL(Q,b):bl(Q,L7(new IR(f,"Xhr succeeded but the status code is not 200"),H))}else{f=g.zA(Q.Z);b=SF(Q);if(f){var L=cUu(Q, +f);f=L.code;var u=L.details;L=L.metadata}else f=2,u="Rpc failed due to xhr error. uri: "+String(Q.Z.N)+", error code: "+Q.Z.B+", error: "+Q.Z.getLastError(),L=b;ul(Q,b);bl(Q,L7(new IR(f,u,L),H))}})}; +PTL=function(Q){Q.Y.SE("data",function(z){if("1"in z){var H=z["1"];try{var f=Q.N(H)}catch(b){bl(Q,new IR(13,"Error when deserializing response data; error: "+b+(", response: "+H)))}f&&UKL(Q,f)}if("2"in z)for(z=cUu(Q,z["2"]),H=0;H-1&&Q.splice(z,1)}; +UKL=function(Q,z){for(var H=0;H>4&15).toString(16)+(Q&15).toString(16)}; +Zy=function(Q,z){this.B=this.Z=null;this.L=Q||null;this.D=!!z}; +FA=function(Q){Q.Z||(Q.Z=new Map,Q.B=0,Q.L&&W4(Q.L,function(z,H){Q.add(lz(z),H)}))}; +dKu=function(Q,z){FA(Q);z=xq(Q,z);return Q.Z.has(z)}; +g.mKp=function(Q,z,H){Q.remove(z);H.length>0&&(Q.L=null,Q.Z.set(xq(Q,z),g.z7(H)),Q.B=Q.B+H.length)}; +xq=function(Q,z){z=String(z);Q.D&&(z=z.toLowerCase());return z}; +DK9=function(Q,z){z&&!Q.D&&(FA(Q),Q.L=null,Q.Z.forEach(function(H,f){var b=f.toLowerCase();f!=b&&(this.remove(f),g.mKp(this,b,H))},Q)); +Q.D=z}; +g.wx_=function(Q){var z="";g.$s(Q,function(H,f){z+=f;z+=":";z+=H;z+="\r\n"}); +return z}; +g.Oa=function(Q,z,H){if(g.ra(H))return Q;H=g.wx_(H);if(typeof Q==="string")return m_(Q,g.ee(z),H);g.$q(Q,z,H);return Q}; +g.o2=function(Q){g.h.call(this);this.B=Q;this.Z={}}; +klu=function(Q,z,H,f,b,L){if(Array.isArray(H))for(var u=0;u0&&(z[b]=f)},Q); +return z}; +F_Y=function(Q){Q=qT(Q);var z=[];g.$s(Q,function(H,f){f in Object.prototype||typeof H!="undefined"&&z.push([f,":",H].join(""))}); +return z}; +Ogv=function(Q){XY(Q,"od",xHp);XY(Q,"opac",MT).Z=!0;XY(Q,"sbeos",MT).Z=!0;XY(Q,"prf",MT).Z=!0;XY(Q,"mwt",MT).Z=!0;XY(Q,"iogeo",MT)}; +orc=function(){this.Z=this.S5=null}; +Cl=function(){}; +En=function(){if(!t5())throw Error();}; +t5=function(){return!(!pl||!pl.performance)}; +nl=function(Q){return Q?Q.passive&&Jjv()?Q:Q.capture||!1:!1}; +gA=function(Q,z,H,f){return Q.addEventListener?(Q.addEventListener(z,H,nl(f)),!0):!1}; +Zk=function(Q){return Q.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[Q.visibilityState||Q.webkitVisibilityState||Q.mozVisibilityState||""]||0}; +Nev=function(){}; +Il9=function(){return(At||YO)&&rJ?rJ.mobile:!G9()&&(Bu("iPod")||Bu("iPhone")||Bu("Android")||Bu("IEMobile"))}; +G9=function(){return(At||YO)&&rJ?!rJ.mobile&&(Bu("iPad")||Bu("Android")||Bu("Silk")):Bu("iPad")||Bu("Android")&&!Bu("Mobile")||Bu("Silk")}; +$3=function(Q){try{return!!Q&&Q.location.href!=null&&STc(Q,"foo")}catch(z){return!1}}; +jt=function(Q,z){if(Q)for(var H in Q)Object.prototype.hasOwnProperty.call(Q,H)&&z(Q[H],H,Q)}; +YE9=function(){var Q=[];jt(Ajp,function(z){Q.push(z)}); +return Q}; +rj9=function(Q){var z,H;return(H=(z=/https?:\/\/[^\/]+/.exec(Q))==null?void 0:z[0])!=null?H:""}; +Pd_=function(){var Q=sRY("IFRAME"),z={};g.MI(BeZ(),function(H){Q.sandbox&&Q.sandbox.supports&&Q.sandbox.supports(H)&&(z[H]=!0)}); +return z}; +sRY=function(Q,z){z=z===void 0?document:z;return z.createElement(String(Q).toLowerCase())}; +alL=function(Q){for(var z=Q;Q&&Q!=Q.parent;)Q=Q.parent,$3(Q)&&(z=Q);return z}; +hUk=function(Q){Q=Q||FY();for(var z=new UHp(g.W_.location.href,!1),H=null,f=Q.length-1,b=f;b>=0;--b){var L=Q[b];!H&&cjL.test(L.url)&&(H=L);if(L.url&&!L.Eb){z=L;break}}b=null;L=Q.length&&Q[f].url;z.depth!=0&&L&&(b=Q[f]);return new ign(z,b,H)}; +FY=function(){var Q=g.W_,z=[],H=null;do{var f=Q;if($3(f)){var b=f.location.href;H=f.document&&f.document.referrer||null}else b=H,H=null;z.push(new UHp(b||""));try{Q=f.parent}catch(L){Q=null}}while(Q&&f!=Q);f=0;for(Q=z.length-1;f<=Q;++f)z[f].depth=Q-f;f=g.W_;if(f.location&&f.location.ancestorOrigins&&f.location.ancestorOrigins.length==z.length-1)for(Q=1;Qz&&(z=H.length);return 3997-z-Q.L.length-1}; +J5=function(Q,z){this.Z=Q;this.depth=z}; +VLp=function(){function Q(X,v){return X==null?v:X} +var z=FY(),H=Math.max(z.length-1,0),f=hUk(z);z=f.Z;var b=f.B,L=f.L,u=[];L&&u.push(new J5([L.url,L.Eb?2:0],Q(L.depth,1)));b&&b!=L&&u.push(new J5([b.url,2],0));z.url&&z!=L&&u.push(new J5([z.url,0],Q(z.depth,H)));f=g.NT(u,function(X,v){return u.slice(0,u.length-v)}); +!z.url||(L||b)&&z!=L||(b=rj9(z.url))&&f.push([new J5([b,1],Q(z.depth,H))]);f.push([]);return g.NT(f,function(X){return K_v(H,X)})}; +K_v=function(Q,z){g.Is(z,function(b){return b.depth>=0}); +var H=A5(z,function(b,L){return Math.max(b,L.depth)},-1),f=LBY(H+2); +f[0]=Q;g.MI(z,function(b){return f[b.depth+1]=b.Z}); +return f}; +dH9=function(){var Q=Q===void 0?VLp():Q;return Q.map(function(z){return os(z)})}; +mH6=function(Q){var z=!1;z=z===void 0?!1:z;pl.google_image_requests||(pl.google_image_requests=[]);var H=sRY("IMG",pl.document);z&&(H.attributionSrc="");H.src=Q;pl.google_image_requests.push(H)}; +Y3=function(Q){var z="bW";if(Q.bW&&Q.hasOwnProperty(z))return Q.bW;var H=new Q;Q.bW=H;Q.hasOwnProperty(z);return H}; +rA=function(){this.B=new Nev;this.Z=t5()?new En:new Cl}; +w4c=function(){sn();var Q=pl.document;return!!(Q&&Q.body&&Q.body.getBoundingClientRect&&typeof pl.setInterval==="function"&&typeof pl.clearInterval==="function"&&typeof pl.setTimeout==="function"&&typeof pl.clearTimeout==="function")}; +kMp=function(){sn();return dH9()}; +Teu=function(){}; +sn=function(){var Q=Y3(Teu);if(!Q.Z){if(!pl)throw Error("Context has not been set and window is undefined.");Q.Z=Y3(rA)}return Q.Z}; +BI=function(Q){this.Pz=s7(Q)}; +eUY=function(Q){this.L=Q;this.Z=-1;this.B=this.D=0}; +PI=function(Q,z){return function(){var H=g.rc.apply(0,arguments);if(Q.Z>-1)return z.apply(null,g.F(H));try{return Q.Z=Q.L.Z.now(),z.apply(null,g.F(H))}finally{Q.D+=Q.L.Z.now()-Q.Z,Q.Z=-1,Q.B+=1}}}; +llc=function(Q,z){this.B=Q;this.L=z;this.Z=new eUY(Q)}; +RU8=function(){this.Z={}}; +zZ9=function(){var Q=as().flags,z=Q6Z;Q=Q.Z[z.key];if(z.valueType==="proto"){try{var H=JSON.parse(Q);if(Array.isArray(H))return H}catch(f){}return z.defaultValue}return typeof Q===typeof z.defaultValue?Q:z.defaultValue}; +Lvp=function(){this.L=void 0;this.B=this.j=0;this.S=-1;this.K5=new St;XY(this.K5,"mv",HWn).Z=!0;XY(this.K5,"omid",MT);XY(this.K5,"epoh",MT).Z=!0;XY(this.K5,"epph",MT).Z=!0;XY(this.K5,"umt",MT).Z=!0;XY(this.K5,"phel",MT).Z=!0;XY(this.K5,"phell",MT).Z=!0;XY(this.K5,"oseid",fWp).Z=!0;var Q=this.K5;Q.Z.sloi||(Q.Z.sloi=new Ll);Q.Z.sloi.Z=!0;XY(this.K5,"mm",Un);XY(this.K5,"ovms",bW_).Z=!0;XY(this.K5,"xdi",MT).Z=!0;XY(this.K5,"amp",MT).Z=!0;XY(this.K5,"prf",MT).Z=!0;XY(this.K5,"gtx",MT).Z=!0;XY(this.K5, +"mvp_lv",MT).Z=!0;XY(this.K5,"ssmol",MT).Z=!0;XY(this.K5,"fmd",MT).Z=!0;XY(this.K5,"gen204simple",MT);this.Z=new llc(sn(),this.K5);this.D=!1;this.flags=new RU8}; +as=function(){return Y3(Lvp)}; +u0n=function(Q,z,H,f){if(Math.random()<(f||Q.Z))try{if(H instanceof x3)var b=H;else b=new x3,jt(H,function(u,X){var v=b,y=v.D++;u=On(X,u);v.Z.push(y);v.B[y]=u}); +var L=b.mM(Q.B,"pagead2.googlesyndication.com","/pagead/gen_204?id="+z+"&");L&&(sn(),mH6(L))}catch(u){}}; +SoZ=function(Q,z,H){H=H===void 0?{}:H;this.error=Q;this.context=z.context;this.msg=z.message||"";this.id=z.id||"jserror";this.meta=H}; +XnJ=function(){var Q=Q===void 0?g.W_:Q;return(Q=Q.performance)&&Q.now&&Q.timing?Math.floor(Q.now()+Q.timing.navigationStart):g.zY()}; +vMZ=function(){var Q=Q===void 0?g.W_:Q;return(Q=Q.performance)&&Q.now?Q.now():null}; +ypu=function(Q,z,H){this.label=Q;this.type=z;this.value=H;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; +iV=function(){var Q=window;this.events=[];this.B=Q||g.W_;var z=null;Q&&(Q.google_js_reporting_queue=Q.google_js_reporting_queue||[],this.events=Q.google_js_reporting_queue,z=Q.google_measure_js_timing);this.Z=cI()||(z!=null?z:Math.random()<1)}; +qov=function(Q){Q&&h5&&cI()&&(h5.clearMarks("goog_"+Q.label+"_"+Q.uniqueId+"_start"),h5.clearMarks("goog_"+Q.label+"_"+Q.uniqueId+"_end"))}; +MBA=function(){var Q=WI;this.Z=Dk;this.k0="jserror";this.FC=!0;this.nh=null;this.B=this.ZN;this.C5=Q===void 0?null:Q}; +CuA=function(Q,z,H){var f=Kl;return PI(as().Z.Z,function(){try{if(f.C5&&f.C5.Z){var b=f.C5.start(Q.toString(),3);var L=z();f.C5.end(b)}else L=z()}catch(X){var u=f.FC;try{qov(b),u=f.B(Q,new Vy(dA(X)),void 0,H)}catch(v){f.ZN(217,v)}if(!u)throw X;}return L})()}; +mo=function(Q,z,H,f){return PI(as().Z.Z,function(){var b=g.rc.apply(0,arguments);return CuA(Q,function(){return z.apply(H,b)},f)})}; +dA=function(Q){var z=Q.toString();Q.name&&z.indexOf(Q.name)==-1&&(z+=": "+Q.name);Q.message&&z.indexOf(Q.message)==-1&&(z+=": "+Q.message);if(Q.stack)a:{Q=Q.stack;var H=z;try{Q.indexOf(H)==-1&&(Q=H+"\n"+Q);for(var f;Q!=f;)f=Q,Q=Q.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");z=Q.replace(/\n */g,"\n");break a}catch(b){z=H;break a}z=void 0}return z}; +Vy=function(Q){SoZ.call(this,Error(Q),{message:Q})}; +tBc=function(){pl&&typeof pl.google_measure_js_timing!="undefined"&&(pl.google_measure_js_timing||WI.disable())}; +EMp=function(Q){Kl.nh=function(z){g.MI(Q,function(H){H(z)})}}; +pnL=function(Q,z){return CuA(Q,z)}; +wA=function(Q,z){return mo(Q,z)}; +k3=function(Q,z,H,f){Kl.ZN(Q,z,H,f)}; +T9=function(){return Date.now()-nMA}; +gML=function(){var Q=as().L,z=et>=0?T9()-et:-1,H=lV?T9()-Rs:-1,f=QY>=0?T9()-QY:-1;if(Q==947190542)return 100;if(Q==79463069)return 200;Q=[2E3,4E3];var b=[250,500,1E3];k3(637,Error(),.001);var L=z;H!=-1&&H1500&&f<4E3?500:u}; +zJ=function(Q,z,H,f){this.top=Q;this.right=z;this.bottom=H;this.left=f}; +Hr=function(Q){return Q.right-Q.left}; +fh=function(Q,z){return Q==z?!0:Q&&z?Q.top==z.top&&Q.right==z.right&&Q.bottom==z.bottom&&Q.left==z.left:!1}; +bW=function(Q,z,H){z instanceof g.Er?(Q.left+=z.x,Q.right+=z.x,Q.top+=z.y,Q.bottom+=z.y):(Q.left+=z,Q.right+=z,typeof H==="number"&&(Q.top+=H,Q.bottom+=H));return Q}; +Lh=function(Q,z,H){var f=new zJ(0,0,0,0);this.time=Q;this.volume=null;this.L=z;this.Z=f;this.B=H}; +uW=function(Q,z,H,f,b,L,u,X){this.D=Q;this.Y=z;this.L=H;this.j=f;this.Z=b;this.S=L;this.B=u;this.N=X}; +GAZ=function(Q){var z=Q!==Q.top,H=Q.top===alL(Q),f=-1,b=0;if(z&&H&&Q.top.mraid){f=3;var L=Q.top.mraid}else f=(L=Q.mraid)?z?H?2:1:0:-1;L&&(L.IS_GMA_SDK||(b=2),W8c(ZWZ,function(u){return typeof L[u]==="function"})||(b=1)); +return{Z4:L,compatibility:b,yFI:f}}; +$ac=function(){var Q=window.document;return Q&&typeof Q.elementFromPoint==="function"}; +j6L=function(Q,z,H){Q&&z!==null&&z!=z.top&&(z=z.top);try{return(H===void 0?0:H)?(new g.nC(z.innerWidth,z.innerHeight)).round():fuv(z||window).round()}catch(f){return new g.nC(-12245933,-12245933)}}; +S$=function(Q,z,H){try{Q&&(z=z.top);var f=j6L(Q,z,H),b=f.height,L=f.width;if(L===-12245933)return new zJ(L,L,L,L);var u=L6p(KC(z.document).Z),X=u.x,v=u.y;return new zJ(v,X+L,v+b,X)}catch(y){return new zJ(-12245933,-12245933,-12245933,-12245933)}}; +g.XL=function(Q,z,H,f){this.left=Q;this.top=z;this.width=H;this.height=f}; +vr=function(Q,z){return Q==z?!0:Q&&z?Q.left==z.left&&Q.width==z.width&&Q.top==z.top&&Q.height==z.height:!1}; +g.M2=function(Q,z,H){if(typeof z==="string")(z=yY(Q,z))&&(Q.style[z]=H);else for(var f in z){H=Q;var b=z[f],L=yY(H,f);L&&(H.style[L]=b)}}; +yY=function(Q,z){var H=FvL[z];if(!H){var f=BC6(z);H=f;Q.style[f]===void 0&&(f=(g.RI?"Webkit":tx?"Moz":null)+acJ(f),Q.style[f]!==void 0&&(H=f));FvL[z]=H}return H}; +g.Ei=function(Q,z){var H=Q.style[BC6(z)];return typeof H!=="undefined"?H:Q.style[yY(Q,z)]||""}; +ph=function(Q,z){var H=Dz(Q);return H.defaultView&&H.defaultView.getComputedStyle&&(Q=H.defaultView.getComputedStyle(Q,null))?Q[z]||Q.getPropertyValue(z)||"":""}; +nh=function(Q,z){return ph(Q,z)||(Q.currentStyle?Q.currentStyle[z]:null)||Q.style&&Q.style[z]}; +g.Z5=function(Q,z,H){if(z instanceof g.Er){var f=z.x;z=z.y}else f=z,z=H;Q.style.left=g.gW(f,!1);Q.style.top=g.gW(z,!1)}; +GJ=function(Q){try{return Q.getBoundingClientRect()}catch(z){return{left:0,top:0,right:0,bottom:0}}}; +xa8=function(Q){var z=Dz(Q),H=nh(Q,"position"),f=H=="fixed"||H=="absolute";for(Q=Q.parentNode;Q&&Q!=z;Q=Q.parentNode)if(Q.nodeType==11&&Q.host&&(Q=Q.host),H=nh(Q,"position"),f=f&&H=="static"&&Q!=z.documentElement&&Q!=z.body,!f&&(Q.scrollWidth>Q.clientWidth||Q.scrollHeight>Q.clientHeight||H=="fixed"||H=="absolute"||H=="relative"))return Q;return null}; +g.$e=function(Q){var z=Dz(Q),H=new g.Er(0,0);if(Q==(z?Dz(z):document).documentElement)return H;Q=GJ(Q);z=L6p(KC(z).Z);H.x=Q.left+z.x;H.y=Q.top+z.y;return H}; +oMa=function(Q,z){var H=new g.Er(0,0),f=Qp(Dz(Q));if(!STc(f,"parent"))return H;do{var b=f==z?g.$e(Q):OWn(Q);H.x+=b.x;H.y+=b.y}while(f&&f!=z&&f!=f.parent&&(Q=f.frameElement)&&(f=f.parent));return H}; +g.j$=function(Q,z){Q=JpY(Q);z=JpY(z);return new g.Er(Q.x-z.x,Q.y-z.y)}; +OWn=function(Q){Q=GJ(Q);return new g.Er(Q.left,Q.top)}; +JpY=function(Q){if(Q.nodeType==1)return OWn(Q);Q=Q.changedTouches?Q.changedTouches[0]:Q;return new g.Er(Q.clientX,Q.clientY)}; +g.FL=function(Q,z,H){if(z instanceof g.nC)H=z.height,z=z.width;else if(H==void 0)throw Error("missing height argument");Q.style.width=g.gW(z,!0);Q.style.height=g.gW(H,!0)}; +g.gW=function(Q,z){typeof Q=="number"&&(Q=(z?Math.round(Q):Q)+"px");return Q}; +g.xe=function(Q){var z=NBa;if(nh(Q,"display")!="none")return z(Q);var H=Q.style,f=H.display,b=H.visibility,L=H.position;H.visibility="hidden";H.position="absolute";H.display="inline";Q=z(Q);H.display=f;H.position=L;H.visibility=b;return Q}; +NBa=function(Q){var z=Q.offsetWidth,H=Q.offsetHeight,f=g.RI&&!z&&!H;return(z===void 0||f)&&Q.getBoundingClientRect?(Q=GJ(Q),new g.nC(Q.right-Q.left,Q.bottom-Q.top)):new g.nC(z,H)}; +g.Oi=function(Q,z){Q.style.display=z?"":"none"}; +o3=function(Q,z){z=Math.pow(10,z);return Math.floor(Q*z)/z}; +IW6=function(Q){return new zJ(Q.top,Q.right,Q.bottom,Q.left)}; +Ap9=function(Q){var z=Q.top||0,H=Q.left||0;return new zJ(z,H+(Q.width||0),z+(Q.height||0),H)}; +Jx=function(Q){return Q!=null&&Q>=0&&Q<=1}; +YoJ=function(){var Q=g.Iu();return Q?N2("AmazonWebAppPlatform;Android TV;Apple TV;AppleTV;BRAVIA;BeyondTV;Freebox;GoogleTV;HbbTV;LongTV;MiBOX;MiTV;NetCast.TV;Netcast;Opera TV;PANASONIC;POV_TV;SMART-TV;SMART_TV;SWTV;Smart TV;SmartTV;TV Store;UnionTV;WebOS".split(";"),function(z){return OT(Q,z)})||OT(Q,"OMI/")&&!OT(Q,"XiaoMi/")?!0:OT(Q,"Presto")&&OT(Q,"Linux")&&!OT(Q,"X11")&&!OT(Q,"Android")&&!OT(Q,"Mobi"):!1}; +rpn=function(){this.L=!$3(pl.top);this.isMobileDevice=G9()||Il9();var Q=FY();this.domain=Q.length>0&&Q[Q.length-1]!=null&&Q[Q.length-1].url!=null?g.id(Q[Q.length-1].url)||"":"";this.Z=new zJ(0,0,0,0);this.D=new g.nC(0,0);this.S=new g.nC(0,0);this.Y=new zJ(0,0,0,0);this.frameOffset=new g.Er(0,0);this.j=0;this.N=!1;this.B=!(!pl||!GAZ(pl).Z4);this.update(pl)}; +s6v=function(Q,z){z&&z.screen&&(Q.D=new g.nC(z.screen.width,z.screen.height))}; +BBn=function(Q,z){a:{var H=Q.Z?new g.nC(Hr(Q.Z),Q.Z.getHeight()):new g.nC(0,0);z=z===void 0?pl:z;z!==null&&z!=z.top&&(z=z.top);var f=0,b=0;try{var L=z.document,u=L.body,X=L.documentElement;if(L.compatMode=="CSS1Compat"&&X.scrollHeight)f=X.scrollHeight!=H.height?X.scrollHeight:X.offsetHeight,b=X.scrollWidth!=H.width?X.scrollWidth:X.offsetWidth;else{var v=X.scrollHeight,y=X.scrollWidth,q=X.offsetHeight,M=X.offsetWidth;X.clientHeight!=q&&(v=u.scrollHeight,y=u.scrollWidth,q=u.offsetHeight,M=u.offsetWidth); +v>H.height?v>q?(f=v,b=y):(f=q,b=M):v0||Q.N)return!0;Q=sn().B.isVisible();var z=Zk(Br)===0;return Q||z}; +si=function(){return Y3(rpn)}; +a3=function(Q){this.L=Q;this.B=0;this.Z=null}; +Ui=function(Q,z,H){this.L=Q;this.mq=H===void 0?"na":H;this.S=[];this.isInitialized=!1;this.D=new Lh(-1,!0,this);this.Z=this;this.N=z;this.Ze=this.U=!1;this.yl="uk";this.De=!1;this.j=!0}; +cr=function(Q,z){g.TY(Q.S,z)||(Q.S.push(z),z.KK(Q.Z),z.Zv(Q.D),z.OU()&&(Q.U=!0))}; +PuJ=function(Q){Q=Q.Z;Q.ib();Q.pL();var z=si();z.Y=S$(!1,Q.L,z.isMobileDevice);BBn(si(),Q.L);Q.D.Z=Q.oO()}; +aWc=function(Q){Q.U=Q.S.length?N2(Q.S,function(z){return z.OU()}):!1}; +Uaa=function(Q){var z=g.z7(Q.S);g.MI(z,function(H){H.Zv(Q.D)})}; +iW=function(Q){var z=g.z7(Q.S);g.MI(z,function(H){H.KK(Q.Z)}); +Q.Z!=Q||Uaa(Q)}; +hx=function(Q,z,H,f){this.element=Q;this.Z=new zJ(0,0,0,0);this.L=null;this.j=new zJ(0,0,0,0);this.B=z;this.K5=H;this.De=f;this.L3=!1;this.timestamp=-1;this.U=new uW(z.D,this.element,this.Z,new zJ(0,0,0,0),0,0,T9(),0);this.S=void 0}; +cpn=function(Q,z){return Q.S?new zJ(Math.max(z.top+Q.S.top,z.top),Math.min(z.left+Q.S.right,z.right),Math.min(z.top+Q.S.bottom,z.bottom),Math.max(z.left+Q.S.left,z.left)):z.clone()}; +Wr=function(Q){this.S=!1;this.Z=Q;this.D=function(){}}; +iWZ=function(Q,z,H){this.L=H===void 0?0:H;this.B=Q;this.Z=z==null?"":z}; +hZc=function(Q){switch(Math.trunc(Q.L)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; +Wvc=function(Q,z){return Q.Lz.L?!1:Q.Bz.B?!1:typeof Q.Ztypeof z.Z?!1:Q.Z0?f[H]-f[H-1]:f[H]})}; +R3=function(){this.B=new mE;this.mq=this.jm=0;this.iT=new dW;this.wh=this.Y=-1;this.WI=1E3;this.rT=new mE([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.yl=this.L3=-1}; +QP=function(Q,z){return lWn(Q.B,z===void 0?!0:z)}; +zN=function(Q,z,H,f){var b=b===void 0?!1:b;H=mo(f,H);gA(Q,z,H,{capture:b})}; +f8=function(Q,z){z=Hk(z);return z===0?0:Hk(Q)/z}; +Hk=function(Q){return Math.max(Q.bottom-Q.top,0)*Math.max(Q.right-Q.left,0)}; +z8v=function(Q,z){if(!Q||!z)return!1;for(var H=0;Q!==null&&H++<100;){if(Q===z)return!0;try{if(Q=Q.parentElement||Q){var f=Dz(Q),b=f&&Qp(f),L=b&&b.frameElement;L&&(Q=L)}}catch(u){break}}return!1}; +H79=function(Q,z,H){if(!Q||!z)return!1;z=bW(Q.clone(),-z.left,-z.top);Q=(z.left+z.right)/2;z=(z.top+z.bottom)/2;$3(window.top)&&window.top&&window.top.document&&(window=window.top);if(!$ac())return!1;Q=window.document.elementFromPoint(Q,z);if(!Q)return!1;z=(z=(z=Dz(H))&&z.defaultView&&z.defaultView.frameElement)&&z8v(z,Q);var f=Q===H;Q=!f&&Q&&qK(Q,function(b){return b===H}); +return!(z||f||Q)}; +fyY=function(Q,z,H,f){return si().L?!1:Hr(Q)<=0||Q.getHeight()<=0?!0:H&&f?pnL(208,function(){return H79(Q,z,H)}):!1}; +b2=function(Q,z,H){g.h.call(this);this.position=b7k.clone();this.fI=this.MN();this.ek=-2;this.timeCreated=Date.now();this.kY=-1;this.sJ=z;this.Zp=null;this.oR=!1;this.Uh=null;this.opacity=-1;this.requestSource=H;this.UPI=!1;this.wG=function(){}; +this.Eg=function(){}; +this.qG=new orc;this.qG.S5=Q;this.qG.Z=Q;this.Bn=!1;this.nW={b_:null,DN:null};this.Qc=!0;this.s6=null;this.Ew=this.qYq=!1;as().j++;this.xn=this.Qn();this.Pb=-1;this.pp=null;this.hasCompleted=this.xzh=!1;this.K5=new St;Ogv(this.K5);LG6(this);this.requestSource==1?vI(this.K5,"od",1):vI(this.K5,"od",0)}; +LG6=function(Q){Q=Q.qG.S5;var z;if(z=Q&&Q.getAttribute)z=/-[a-z]/.test("googleAvInapp")?!1:uAn&&Q.dataset?"googleAvInapp"in Q.dataset:Q.hasAttribute?Q.hasAttribute("data-"+P5L()):!!Q.getAttribute("data-"+P5L());z&&(si().B=!0)}; +L8=function(Q,z){z!=Q.Ew&&(Q.Ew=z,Q=si(),z?Q.j++:Q.j>0&&Q.j--)}; +Sap=function(Q,z){if(Q.pp){if(z.getName()===Q.pp.getName())return;Q.pp.dispose();Q.pp=null}z=z.create(Q.qG.Z,Q.K5,Q.OU());if(z=z!=null&&z.observe()?z:null)Q.pp=z}; +XQL=function(Q,z,H){if(!Q.Zp||Q.sJ==-1||z.B===-1||Q.Zp.B===-1)return 0;Q=z.B-Q.Zp.B;return Q>H?0:Q}; +vqn=function(Q,z,H){if(Q.pp){Q.pp.Av();var f=Q.pp.U,b=f.D,L=b.Z;if(f.j!=null){var u=f.L;Q.Uh=new g.Er(u.left-L.left,u.top-L.top)}L=Q.iE()?Math.max(f.Z,f.S):f.Z;u={};b.volume!==null&&(u.volume=b.volume);b=Q.dO(f);Q.Zp=f;Q.Jh(L,z,H,!1,u,b,f.N)}}; +ykc=function(Q){if(Q.oR&&Q.s6){var z=yy(Q.K5,"od")==1,H=si().Z,f=Q.s6,b=Q.pp?Q.pp.getName():"ns",L=Q.Uh,u=new g.nC(Hr(H),H.getHeight());H=Q.iE();Q={vVv:b,Uh:L,j6T:u,iE:H,vc:Q.xn.vc,bEe:z};if(z=f.B){z.Av();b=z.U;L=b.D.Z;var X=u=null;b.j!=null&&L&&(u=b.L,u=new g.Er(u.left-L.left,u.top-L.top),X=new g.nC(L.right-L.left,L.bottom-L.top));b=H?Math.max(b.Z,b.S):b.Z;H={vVv:z.getName(),Uh:u,j6T:X,iE:H,bEe:!1,vc:b}}else H=null;H&&kAc(f,Q,H)}}; +qaY=function(Q,z,H){z&&(Q.wG=z);H&&(Q.Eg=H)}; +g.u2=function(){}; +g.S0=function(Q){return{value:Q,done:!1}}; +MFL=function(){this.D=this.Z=this.L=this.B=this.S=0}; +Cl6=function(Q){var z={};var H=g.zY()-Q.S;z=(z.ptlt=H,z);(H=Q.B)&&(z.pnk=H);(H=Q.L)&&(z.pnc=H);(H=Q.D)&&(z.pnmm=H);(Q=Q.Z)&&(z.pns=Q);return z}; +tFL=function(){HI.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; +Xq=function(Q){return Jx(Q.volume)&&Q.volume>0}; +vk=function(Q,z,H,f){H=H===void 0?!0:H;f=f===void 0?function(){return!0}:f; +return function(b){var L=b[Q];if(Array.isArray(L)&&f(b))return Eqa(L,z,H)}}; +yP=function(Q,z){return function(H){return z(H)?H[Q]:void 0}}; +pQ9=function(Q){return function(z){for(var H=0;H0?L[b-1]+1:0,f+1).reduce(function(u,X){return u+X},0)})}; +nqp=function(){this.B=this.Z=""}; +gq_=function(){}; +M3=function(Q,z){var H={};if(Q!==void 0)if(z!=null)for(var f in z){var b=z[f];f in Object.prototype||b!=null&&(H[f]=typeof b==="function"?b(Q):Q[b])}else g.Ur(H,Q);return VY(Kh(new D5,H))}; +Z7Y=function(){var Q={};this.B=(Q.vs=[1,0],Q.vw=[0,1],Q.am=[2,2],Q.a=[4,4],Q.f=[8,8],Q.bm=[16,16],Q.b=[32,32],Q.avw=[0,64],Q.avs=[64,0],Q.pv=[256,256],Q.gdr=[0,512],Q.p=[0,1024],Q.r=[0,2048],Q.m=[0,4096],Q.um=[0,8192],Q.ef=[0,16384],Q.s=[0,32768],Q.pmx=[0,16777216],Q.mut=[33554432,33554432],Q.umutb=[67108864,67108864],Q.tvoff=[134217728,134217728],Q);this.Z={};for(var z in this.B)this.B[z][1]>0&&(this.Z[z]=0);this.L=0}; +C8=function(Q,z){var H=Q.B[z],f=H[1];Q.L+=H[0];f>0&&Q.Z[z]==0&&(Q.Z[z]=1)}; +GnA=function(Q){var z=g.Nz(Q.B),H=0,f;for(f in Q.Z)g.TY(z,f)&&Q.Z[f]==1&&(H+=Q.B[f][1],Q.Z[f]=2);return H}; +$7k=function(Q){var z=0,H;for(H in Q.Z){var f=Q.Z[H];if(f==1||f==2)z+=Q.B[H][1]}return z}; +tP=function(){this.Z=this.B=0}; +E6=function(){R3.call(this);this.L=new dW;this.En=this.U=this.De=0;this.N=-1;this.gh=new dW;this.S=new dW;this.Z=new mE;this.j=this.D=-1;this.Ze=new dW;this.WI=2E3;this.f3=new tP;this.C3=new tP;this.uT=new tP}; +p8=function(Q,z,H){var f=Q.En;lV||H||Q.N==-1||(f+=z-Q.N);return f}; +j2_=function(){this.L=!1}; +n8=function(Q,z){this.L=!1;this.D=Q;this.U=z;this.S=0}; +gd=function(Q,z){n8.call(this,Q,z);this.Y=[]}; +FGL=function(){}; +ZP=function(){}; +GN=function(Q,z,H,f){hx.call(this,Q,z,H,f)}; +$B=function(Q,z,H){hx.call(this,null,Q,z,H);this.N=Q.isActive();this.Y=0}; +j0=function(Q){return[Q.top,Q.left,Q.bottom,Q.right]}; +Fq=function(Q,z,H,f,b,L){L=L===void 0?new ZP:L;b2.call(this,z,H,f);this.vy=b;this.CB=0;this.bH={};this.N8=new Z7Y;this.Ug={};this.WU="";this.uT=null;this.yE=!1;this.Z=[];this.Mt=L.B();this.j=L.L();this.D=null;this.L=-1;this.mq=this.U=void 0;this.wh=this.Ze=0;this.yl=-1;this.WI=this.C3=!1;this.De=this.N=this.B=this.U0=this.ZJ=0;new mE;this.f3=this.En=0;this.iT=-1;this.YF=0;this.Y=g.tj;this.L3=[this.MN()];this.Xa=2;this.RK={};this.RK.pause="p";this.RK.resume="r";this.RK.skip="s";this.RK.mute="m";this.RK.unmute= +"um";this.RK.exitfullscreen="ef";this.S=null;this.rT=this.gh=!1;this.KH=Math.floor(Date.now()/1E3-1704067200);this.jm=0}; +xB=function(Q){Q.hasCompleted=!0;Q.YF!=0&&(Q.YF=3)}; +O6=function(Q){return Q===void 0?Q:Number(Q)?o3(Q,3):0}; +oL=function(Q,z){return Q.L3[z!=null&&zMath.max(1E4,Q.L/3)?0:z);var H=Q.Y(Q)||{};H=H.currentTime!==void 0?H.currentTime:Q.Ze;var f=H-Q.Ze,b=0;f>=0?(Q.wh+=z,Q.f3+=Math.max(z-f,0),b=Math.min(f,Q.wh)):Q.En+=Math.abs(f);f!=0&&(Q.wh=0);Q.iT==-1&&f>0&&(Q.iT=QY>=0?T9()-QY:-1);Q.Ze=H;return b}; +oq6=function(Q,z){N2(Q.j,function(H){return H.D==z.D})||Q.j.push(z)}; +JkJ=function(Q){var z=TJ(Q.Gw().Z,1);return JP(Q,z)}; +JP=function(Q,z,H){return z>=15E3?!0:Q.C3?(H===void 0?0:H)?!0:Q.L>0?z>=Q.L/2:Q.yl>0?z>=Q.yl:!1:!1}; +Njn=function(Q){var z=o3(Q.xn.vc,2),H=Q.N8.L,f=Q.xn,b=oL(Q),L=O6(b.D),u=O6(b.j),X=O6(f.volume),v=o3(b.Y,2),y=o3(b.wh,2),q=o3(f.vc,2),M=o3(b.L3,2),C=o3(b.yl,2);f=o3(f.FW,2);var t=Q.Wr().clone().round();Q=Q.pp&&Q.pp.L?(Q.pp?Q.pp.L:null).clone().round():null;b=QP(b,!1);return{KSe:z,Pa:H,Yl:L,G6:u,SG:X,vK:v,j_:y,vc:q,Eh:M,lY:C,FW:f,position:t,iy:Q,iY:b}}; +Akp=function(Q,z){IyA(Q.Z,z,function(){return{KSe:0,Pa:void 0,Yl:-1,G6:-1,SG:-1,vK:-1,j_:-1,vc:-1,Eh:-1,lY:-1,FW:-1,position:void 0,iy:void 0,iY:[]}}); +Q.Z[z]=Njn(Q)}; +IyA=function(Q,z,H){for(var f=Q.length;f0?1:0;M.atos= +wW(y.Z);M.ssb=wW(y.rT,!1);M.amtos=lWn(y.Z,!1);M.uac=Q.ZJ;M.vpt=y.L.Z;q=="nio"&&(M.nio=1,M.avms="nio");M.gmm="4";M.gdr=JP(Q,y.L.Z,!0)?1:0;M.efpf=Q.Xa;if(q=="gsv"||q=="nis")q=Q.pp,q.Y>0&&(M.nnut=q.Y);M.tcm=x7n(Q);M.nmt=Q.En;M.bt=Q.f3;M.pst=Q.iT;M.vpaid=Q.U;M.dur=Q.L;M.vmtime=Q.Ze;M.is=Q.N8.L;Q.Z.length>=1&&(M.i0=Q.Z[0].Pa,M.a0=[Q.Z[0].SG],M.c0=[Q.Z[0].vc],M.ss0=[Q.Z[0].FW],q=Q.Z[0].position,L=Q.Z[0].iy,M.p0=q?j0(q):void 0,q&&L&&!fh(L,q)&&(M.cp0=j0(L)));Q.Z.length>=2&&(M.i1=Q.Z[1].Pa,M.a1=AP(Q.Z[1].Yl, +Q.Z[1].SG,Q.Z[1].G6),M.c1=AP(Q.Z[1].vK,Q.Z[1].vc,Q.Z[1].j_),M.ss1=AP(Q.Z[1].Eh,Q.Z[1].FW,Q.Z[1].lY),q=Q.Z[1].position,L=Q.Z[1].iy,M.p1=q?j0(q):void 0,q&&L&&!fh(L,q)&&(M.cp1=j0(L)),M.mtos1=Q.Z[1].iY);Q.Z.length>=3&&(M.i2=Q.Z[2].Pa,M.a2=AP(Q.Z[2].Yl,Q.Z[2].SG,Q.Z[2].G6),M.c2=AP(Q.Z[2].vK,Q.Z[2].vc,Q.Z[2].j_),M.ss2=AP(Q.Z[2].Eh,Q.Z[2].FW,Q.Z[2].lY),q=Q.Z[2].position,L=Q.Z[2].iy,M.p2=q?j0(q):void 0,q&&L&&!fh(L,q)&&(M.cp2=j0(L)),M.mtos2=Q.Z[2].iY);Q.Z.length>=4&&(M.i3=Q.Z[3].Pa,M.a3=AP(Q.Z[3].Yl,Q.Z[3].SG, +Q.Z[3].G6),M.c3=AP(Q.Z[3].vK,Q.Z[3].vc,Q.Z[3].j_),M.ss3=AP(Q.Z[3].Eh,Q.Z[3].FW,Q.Z[3].lY),q=Q.Z[3].position,L=Q.Z[3].iy,M.p3=q?j0(q):void 0,q&&L&&!fh(L,q)&&(M.cp3=j0(L)),M.mtos3=Q.Z[3].iY);M.cs=$7k(Q.N8);z&&(M.ic=GnA(Q.N8),M.dvpt=y.L.B,M.dvs=lW(y.B,.5),M.dfvs=lW(y.B,1),M.davs=lW(y.Z,.5),M.dafvs=lW(y.Z,1),H&&(y.L.B=0,RZa(y.B),RZa(y.Z)),Q.BQ()&&(M.dtos=y.De,M.dav=y.U,M.dtoss=Q.CB+1,H&&(y.De=0,y.U=0,Q.CB++)),M.dat=y.S.B,M.dft=y.Ze.B,H&&(y.S.B=0,y.Ze.B=0));M.ps=[X.S.width,X.S.height];M.bs=[Hr(X.Z),X.Z.getHeight()]; +M.scs=[X.D.width,X.D.height];M.dom=X.domain;Q.U0&&(M.vds=Q.U0);if(Q.j.length>0||Q.Mt)z=g.z7(Q.j),Q.Mt&&z.push(Q.Mt),M.pings=g.NT(z,function(C){return C.toString()}); +z=g.NT(g.q3(Q.j,function(C){return C.j()}),function(C){return C.getId()}); +zmc(z);M.ces=z;Q.B&&(M.vmer=Q.B);Q.N&&(M.vmmk=Q.N);Q.De&&(M.vmiec=Q.De);M.avms=Q.pp?Q.pp.getName():"ns";Q.pp&&g.Ur(M,Q.pp.tv());f?(M.c=o3(Q.xn.vc,2),M.ss=o3(Q.xn.FW,2)):M.tth=T9()-BjY;M.mc=o3(y.wh,2);M.nc=o3(y.Y,2);M.mv=O6(y.j);M.nv=O6(y.D);M.lte=o3(Q.ek,2);f=oL(Q,b);QP(y);M.qmtos=QP(f);M.qnc=o3(f.Y,2);M.qmv=O6(f.j);M.qnv=O6(f.D);M.qas=f.D>0?1:0;M.qi=Q.WU;M.avms||(M.avms="geo");M.psm=y.f3.Z;M.psv=y.f3.getValue();M.psfv=y.C3.getValue();M.psa=y.uT.getValue();v=F_Y(v.K5);v.length&&(M.veid=v);Q.S&&g.Ur(M, +Cl6(Q.S));M.avas=Q.WV();M.vs=Q.Ot();M.co=Plu(Q);M.tm=y.jm;M.tu=y.mq;return M}; +YaY=function(Q,z){if(g.TY(ay_,z))return!0;var H=Q.bH[z];return H!==void 0?(Q.bH[z]=!0,!H):!1}; +Plu=function(Q){var z=Q.jm.toString(10).padStart(2,"0");z=""+Q.KH+z;Q.jm<99&&Q.jm++;return z}; +ck9=function(){this.Z={};var Q=Qp();YB(this,Q,document);var z=U7Z();try{if("1"==z){for(var H=Q.parent;H!=Q.top;H=H.parent)YB(this,H,H.document);YB(this,Q.top,Q.top.document)}}catch(f){}}; +U7Z=function(){var Q=document.documentElement;try{if(!$3(Qp().top))return"2";var z=[],H=Qp(Q.ownerDocument);for(Q=H;Q!=H.top;Q=Q.parent)if(Q.frameElement)z.push(Q.frameElement);else break;return z&&z.length!=0?"1":"0"}catch(f){return"2"}}; +YB=function(Q,z,H){zN(H,"mousedown",function(){return i7J(Q)},301); +zN(z,"scroll",function(){return h8p(Q)},302); +zN(H,"touchmove",function(){return WG8(Q)},303); +zN(H,"mousemove",function(){return D7k(Q)},304); +zN(H,"keydown",function(){return KGn(Q)},305)}; +i7J=function(Q){g.$s(Q.Z,function(z){z.L>1E5||++z.L})}; +h8p=function(Q){g.$s(Q.Z,function(z){z.Z>1E5||++z.Z})}; +WG8=function(Q){g.$s(Q.Z,function(z){z.Z>1E5||++z.Z})}; +KGn=function(Q){g.$s(Q.Z,function(z){z.B>1E5||++z.B})}; +D7k=function(Q){g.$s(Q.Z,function(z){z.D>1E5||++z.D})}; +VFZ=function(){this.Z=[];this.B=[]}; +rd=function(Q,z){return g.wJ(Q.Z,function(H){return H.WU==z})}; +d7L=function(Q,z){return z?g.wJ(Q.Z,function(H){return H.qG.S5==z}):null}; +m7J=function(Q,z){return g.wJ(Q.B,function(H){return H.kf()==2&&H.WU==z})}; +Bk=function(){var Q=s6;return Q.Z.length==0?Q.B:Q.B.length==0?Q.Z:g.Qi(Q.B,Q.Z)}; +wQc=function(Q,z){Q=z.kf()==1?Q.Z:Q.B;var H=mB(Q,function(f){return f==z}); +return H!=-1?(Q.splice(H,1),z.pp&&z.pp.unobserve(),z.dispose(),!0):!1}; +knc=function(Q){var z=s6;if(wQc(z,Q)){switch(Q.kf()){case 0:var H=function(){return null}; +case 2:H=function(){return m7J(z,Q.WU)}; +break;case 1:H=function(){return rd(z,Q.WU)}}for(var f=H();f;f=H())wQc(z,f)}}; +TjJ=function(Q){var z=s6;Q=g.q3(Q,function(H){return!d7L(z,H.qG.S5)}); +z.Z.push.apply(z.Z,g.F(Q))}; +e8A=function(Q){var z=[];g.MI(Q,function(H){N2(s6.Z,function(f){return f.qG.S5===H.qG.S5&&f.WU===H.WU})||(s6.Z.push(H),z.push(H))})}; +Pk=function(){this.Z=this.B=null}; +lyv=function(Q,z){function H(f,b){z(f,b)} +if(Q.B==null)return!1;Q.Z=g.wJ(Q.B,function(f){return f!=null&&f.XZ()}); +Q.Z&&(Q.Z.init(H)?PuJ(Q.Z.Z):z(Q.Z.Z.PC(),Q.Z));return Q.Z!=null}; +aL=function(Q){Q=R8J(Q);Wr.call(this,Q.length?Q[Q.length-1]:new Ui(pl,0));this.L=Q;this.B=null}; +R8J=function(Q){if(!Q.length)return[];Q=(0,g.q3)(Q,function(H){return H!=null&&H.lN()}); +for(var z=1;zH.time?z:H},Q[0])}; +hP=function(Q){Q=Q===void 0?pl:Q;Wr.call(this,new Ui(Q,2))}; +Wk=function(){var Q=fkA();Ui.call(this,pl.top,Q,"geo")}; +fkA=function(){as();var Q=si();return Q.L||Q.B?0:2}; +bl_=function(){}; +DP=function(){this.done=!1;this.Z={s$:0,U9:0,fiT:0,Zl:0,jL:-1,lA:0,j4:0,S4:0,YX5:0};this.S=null;this.j=!1;this.L=null;this.Y=0;this.B=new a3(this)}; +VP=function(){var Q=K8;Q.j||(Q.j=!0,LoZ(Q,function(){return Q.D.apply(Q,g.F(g.rc.apply(0,arguments)))}),Q.D())}; +uYL=function(){Y3(bl_);var Q=Y3(Pk);Q.Z!=null&&Q.Z.Z?PuJ(Q.Z.Z):si().update(pl)}; +dd=function(Q,z,H){if(!Q.done&&(Q.B.cancel(),z.length!=0)){Q.L=null;try{uYL();var f=T9();as().S=f;if(Y3(Pk).Z!=null)for(var b=0;b=0?T9()-et:-1,X=T9();b.Z.jL==-1&&(u=X);var v=si(),y=as(),q=qT(y.K5),M=Bk();try{if(M.length>0){var C=v.Z;C&&(q.bs=[Hr(C),C.getHeight()]);var t=v.S;t&&(q.ps=[t.width,t.height]);pl.screen&&(q.scs=[pl.screen.width,pl.screen.height])}else q.url=encodeURIComponent(pl.location.href.substring(0,512)),L.referrer&&(q.referrer=encodeURIComponent(L.referrer.substring(0,512))); +q.tt=u;q.pt=et;q.bin=y.B;pl.google_osd_load_pub_page_exp!==void 0&&(q.olpp=pl.google_osd_load_pub_page_exp);q.deb=[1,b.Z.s$,b.Z.U9,b.Z.Zl,b.Z.jL,0,b.B.B,b.Z.lA,b.Z.j4,b.Z.S4,b.Z.YX5,-1].join(";");q.tvt=XI_(b,X);v.B&&(q.inapp=1);if(pl!==null&&pl!=pl.top){M.length>0&&(q.iframe_loc=encodeURIComponent(pl.location.href.substring(0,512)));var E=v.Y;q.is=[Hr(E),E.getHeight()]}}catch(G){q.error=1}K8.L=q}C=g.P3(K8.L);t=as().Z;yy(t.L,"prf")==1?(E=new BI,b=t.Z,L=0,b.Z>-1&&(L=b.L.Z.now()-b.Z),E=eX(E,1,u5(b.D+ +L),0),b=t.Z,E=eX(E,5,yr(b.Z>-1?b.B+1:b.B),0),E=eX(E,2,Gi(t.B.Z.L()),"0"),E=eX(E,3,Gi(t.B.Z.B()),"0"),t=eX(E,4,Gi(t.B.Z.Z()),"0"),E={},t=(E.pf=g.g7(t.Z()),E)):t={};g.Ur(C,t);g.Ur(z,f,H,C,Q())}])}; +qn8=function(){var Q=y5n||pl;if(!Q)return"";var z=[];if(!Q.location||!Q.location.href)return"";z.push("url="+encodeURIComponent(Q.location.href.substring(0,512)));Q.document&&Q.document.referrer&&z.push("referrer="+encodeURIComponent(Q.document.referrer.substring(0,512)));return z.join("&")}; +m4=function(){var Q="youtube.player.web_20250305_01_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250305_01_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250305_01_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250305_01_RC00".match(/_(\d{8})_\d+_RC\d+$/),z;if(((z=Q)==null?void 0:z.length)==2)return Q[1];Q="youtube.player.web_20250305_01_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var H;return((H=Q)==null?void 0:H.length)==3?"20"+Q[1]+Q[2]:null}; +Mt6=function(){return"av.default_js".includes("ima_html5_sdk")?{Uv:"ima",gi:null}:"av.default_js".includes("ima_native_sdk")?{Uv:"nima",gi:null}:"av.default_js".includes("admob-native-video-javascript")?{Uv:"an",gi:null}:"youtube.player.web_20250305_01_RC00".includes("cast_js_sdk")?{Uv:"cast",gi:m4()}:"youtube.player.web_20250305_01_RC00".includes("youtube.player.web")?{Uv:"yw",gi:m4()}:"youtube.player.web_20250305_01_RC00".includes("outstream_web_client")?{Uv:"out",gi:m4()}:"youtube.player.web_20250305_01_RC00".includes("drx_rewarded_web")? +{Uv:"r",gi:m4()}:"youtube.player.web_20250305_01_RC00".includes("gam_native_web_video")?{Uv:"n",gi:m4()}:"youtube.player.web_20250305_01_RC00".includes("admob_interstitial_video")?{Uv:"int",gi:m4()}:{Uv:"j",gi:null}}; +TN=function(Q,z){var H={sv:"966"};wd!==null&&(H.v=wd);H.cb=CV_;H.nas=s6.Z.length;H.msg=Q;z!==void 0&&(Q=ttA(z))&&(H.e=kB[Q]);return H}; +e0=function(Q){return $O(Q,"custom_metric_viewable")}; +ttA=function(Q){var z=e0(Q)?"custom_metric_viewable":Q.toLowerCase();return Ys(N3,function(H){return H==z})}; +E3n=function(){this.Z=void 0;this.B=!1;this.L=0;this.D=-1;this.S="tos"}; +g3Y=function(Q){try{var z=Q.split(",");return z.length>g.Nz(pIv).length?null:A5(z,function(H,f){f=f.toLowerCase().split("=");if(f.length!=2||n3v[f[0]]===void 0||!n3v[f[0]](f[1]))throw Error("Entry ("+f[0]+", "+f[1]+") is invalid.");H[f[0]]=f[1];return H},{})}catch(H){return null}}; +Zl8=function(Q,z){if(Q.Z==void 0)return 0;switch(Q.S){case "mtos":return Q.B?e$(z.Z,Q.Z):e$(z.B,Q.Z);case "tos":return Q.B?TJ(z.Z,Q.Z):TJ(z.B,Q.Z)}return 0}; +l2=function(Q,z,H,f){n8.call(this,z,f);this.Y=Q;this.N=H}; +RL=function(){}; +QK=function(Q){n8.call(this,"fully_viewable_audible_half_duration_impression",Q)}; +zO=function(Q){this.Z=Q}; +Hz=function(Q,z){n8.call(this,Q,z)}; +f5=function(Q){gd.call(this,"measurable_impression",Q)}; +bp=function(){zO.apply(this,arguments)}; +L5=function(Q,z,H){$B.call(this,Q,z,H)}; +up=function(Q){Q=Q===void 0?pl:Q;Wr.call(this,new Ui(Q,2))}; +S_=function(Q,z,H){$B.call(this,Q,z,H)}; +Xg=function(Q){Q=Q===void 0?pl:Q;Wr.call(this,new Ui(Q,2))}; +vz=function(){Ui.call(this,pl,2,"mraid");this.f3=0;this.wh=this.L3=!1;this.Y=null;this.B=GAZ(this.L);this.D.Z=new zJ(0,0,0,0);this.jm=!1}; +yK=function(Q,z,H){Q.wA("addEventListener",z,H)}; +FoL=function(Q){as().D=!!Q.wA("isViewable");yK(Q,"viewableChange",G9A);Q.wA("getState")==="loading"?yK(Q,"ready",$Tu):js_(Q)}; +js_=function(Q){typeof Q.B.Z4.AFMA_LIDAR==="string"?(Q.L3=!0,xTc(Q)):(Q.B.compatibility=3,Q.Y="nc",Q.d7("w"))}; +xTc=function(Q){Q.wh=!1;var z=yy(as().K5,"rmmt")==1,H=!!Q.wA("isViewable");(z?!H:1)&&sn().setTimeout(wA(524,function(){Q.wh||(Olp(Q),k3(540,Error()),Q.Y="mt",Q.d7("w"))}),500); +o3u(Q);yK(Q,Q.B.Z4.AFMA_LIDAR,J5u)}; +o3u=function(Q){var z=yy(as().K5,"sneio")==1,H=Q.B.Z4.AFMA_LIDAR_EXP_1!==void 0,f=Q.B.Z4.AFMA_LIDAR_EXP_2!==void 0;(z=z&&f)&&(Q.B.Z4.AFMA_LIDAR_EXP_2=!0);H&&(Q.B.Z4.AFMA_LIDAR_EXP_1=!z)}; +Olp=function(Q){Q.wA("removeEventListener",Q.B.Z4.AFMA_LIDAR,J5u);Q.L3=!1}; +NAv=function(Q,z){if(Q.wA("getState")==="loading")return new g.nC(-1,-1);z=Q.wA(z);if(!z)return new g.nC(-1,-1);Q=parseInt(z.width,10);z=parseInt(z.height,10);return isNaN(Q)||isNaN(z)?new g.nC(-1,-1):new g.nC(Q,z)}; +$Tu=function(){try{var Q=Y3(vz);Q.wA("removeEventListener","ready",$Tu);js_(Q)}catch(z){k3(541,z)}}; +J5u=function(Q,z){try{var H=Y3(vz);H.wh=!0;var f=Q?new zJ(Q.y,Q.x+Q.width,Q.y+Q.height,Q.x):new zJ(0,0,0,0);var b=T9(),L=Pr();var u=new Lh(b,L,H);u.Z=f;u.volume=z;H.Zv(u)}catch(X){k3(542,X)}}; +G9A=function(Q){var z=as(),H=Y3(vz);Q&&!z.D&&(z.D=!0,H.jm=!0,H.Y&&H.d7("w",!0))}; +qN=function(){this.isInitialized=!1;this.Z=this.B=null;var Q={};this.Y=(Q.start=this.Nhe,Q.firstquartile=this.h5l,Q.midpoint=this.dc3,Q.thirdquartile=this.Fq5,Q.complete=this.i3I,Q.error=this.XII,Q.pause=this.s5,Q.resume=this.x4,Q.skip=this.Ien,Q.viewable_impression=this.Mj,Q.mute=this.R2,Q.unmute=this.R2,Q.fullscreen=this.CTn,Q.exitfullscreen=this.QjI,Q.fully_viewable_audible_half_duration_impression=this.Mj,Q.measurable_impression=this.Mj,Q.abandon=this.s5,Q.engagedview=this.Mj,Q.impression=this.Mj, +Q.creativeview=this.Mj,Q.progress=this.R2,Q.custom_metric_viewable=this.Mj,Q.bufferstart=this.s5,Q.bufferfinish=this.x4,Q.audio_measurable=this.Mj,Q.audio_audible=this.Mj,Q);Q={};this.N=(Q.overlay_resize=this.u$h,Q.abandon=this.BM,Q.close=this.BM,Q.collapse=this.BM,Q.overlay_unmeasurable_impression=function(z){return IL(z,"overlay_unmeasurable_impression",Pr())},Q.overlay_viewable_immediate_impression=function(z){return IL(z,"overlay_viewable_immediate_impression",Pr())},Q.overlay_unviewable_impression= +function(z){return IL(z,"overlay_unviewable_impression",Pr())},Q.overlay_viewable_end_of_session_impression=function(z){return IL(z,"overlay_viewable_end_of_session_impression",Pr())},Q); +as().B=3;Ikv(this);this.L=null}; +MN=function(Q,z,H,f){Q=Q.tQ(null,f,!0,z);Q.D=H;TjJ([Q]);return Q}; +A5L=function(Q,z,H){$Hn(z);var f=Q.Z;g.MI(z,function(b){var L=g.NT(b.criteria,function(u){var X=g3Y(u);if(X==null)u=null;else if(u=new E3n,X.visible!=null&&(u.Z=X.visible/100),X.audible!=null&&(u.B=X.audible==1),X.time!=null){var v=X.timetype=="mtos"?"mtos":"tos",y=WZp(X.time,"%")?"%":"ms";X=parseInt(X.time,10);y=="%"&&(X/=100);u.setTime(X,y,v)}return u}); +N2(L,function(u){return u==null})||oq6(H,new l2(b.id,b.event,L,f))})}; +Ynp=function(){var Q=[],z=as();Q.push(Y3(Wk));yy(z.K5,"mvp_lv")&&Q.push(Y3(vz));z=[new up,new Xg];z.push(new aL(Q));z.push(new hP(pl));return z}; +r5L=function(Q){if(!Q.isInitialized){Q.isInitialized=!0;try{var z=T9(),H=as(),f=si();et=z;H.L=79463069;Q.B!=="o"&&(y5n=alL(pl));if(w4c()){K8.Z.U9=0;K8.Z.jL=T9()-z;var b=Ynp(),L=Y3(Pk);L.B=b;lyv(L,function(){C5()})?K8.done||(Sn9(),cr(L.Z.Z,Q),VP()):f.L?C5():VP()}else tZ=!0}catch(u){throw s6.reset(),u; +}}}; +p5=function(Q){K8.B.cancel();E4=Q;K8.done=!0}; +n5=function(Q){if(Q.B)return Q.B;var z=Y3(Pk).Z;if(z)switch(z.getName()){case "nis":Q.B="n";break;case "gsv":Q.B="m"}Q.B||(Q.B="h");return Q.B}; +gN=function(Q,z,H){if(Q.Z==null)return z.U0|=4,!1;Q=ssJ(Q.Z,H,z);z.U0|=Q;return Q==0}; +C5=function(){var Q=[new hP(pl)],z=Y3(Pk);z.B=Q;lyv(z,function(){p5("i")})?K8.done||(Sn9(),VP()):p5("i")}; +BAY=function(Q,z){if(!Q.yE){var H=IL(Q,"start",Pr());H=Q.vy.Z(H).Z;var f={id:"lidarv"};f.r=z;f.sv="966";wd!==null&&(f.v=wd);W4(H,function(b,L){return f[b]=b=="mtos"||b=="tos"?L:encodeURIComponent(L)}); +z=qn8();W4(z,function(b,L){return f[b]=encodeURIComponent(L)}); +z="//pagead2.googlesyndication.com/pagead/gen_204?"+VY(Kh(new D5,f));maY(z);Q.yE=!0}}; +ZR=function(Q,z,H){dd(K8,[Q],!Pr());Akp(Q,H);H!=4&&IyA(Q.L3,H,Q.MN);return IL(Q,z,Pr())}; +Ikv=function(Q){v38(function(){var z=PVA();Q.B!=null&&(z.sdk=Q.B);var H=Y3(Pk);H.Z!=null&&(z.avms=H.Z.getName());return z})}; +akc=function(Q,z,H,f){var b=d7L(s6,H);b!==null&&b.WU!==z&&(Q.fv(b),b=null);b||(z=Q.tQ(H,T9(),!1,z),s6.B.length==0&&(as().L=79463069),e8A([z]),b=z,b.D=n5(Q),f&&(b.uT=f));return b}; +UTA=function(Q,z){var H=Q[z];H!==void 0&&H>0&&(Q[z]=Math.floor(H*1E3))}; +PVA=function(){var Q=si(),z={},H={},f={};return Object.assign({},(z.sv="966",z),wd!==null&&(H.v=wd,H),(f["if"]=Q.L?"1":"0",f.nas=String(s6.Z.length),f))}; +GO=function(Q){n8.call(this,"audio_audible",Q)}; +$W=function(Q){gd.call(this,"audio_measurable",Q)}; +j_=function(){zO.apply(this,arguments)}; +Fg=function(){}; +c5_=function(Q){this.Z=Q}; +ssJ=function(Q,z,H){Q=Q.B();if(typeof Q==="function"){var f={};var b={};f=Object.assign({},wd!==null&&(f.v=wd,f),(b.sv="966",b.cb=CV_,b.e=il8(z),b));b=IL(H,z,Pr());g.Ur(f,b);H.Ug[z]=b;f=H.kf()==2?dan(f).join("&"):H.vy.Z(f).Z;try{return Q(H.WU,f,z),0}catch(L){return 2}}else return 1}; +il8=function(Q){var z=e0(Q)?"custom_metric_viewable":Q;Q=Ys(N3,function(H){return H==z}); +return kB[Q]}; +xW=function(){qN.call(this);this.j=null;this.S=!1;this.D="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; +hl8=function(Q,z,H){H=H.opt_configurable_tracking_events;Q.Z!=null&&Array.isArray(H)&&A5L(Q,H,z)}; +Woa=function(Q,z,H){var f=rd(s6,z);f||(f=H.opt_nativeTime||-1,f=MN(Q,z,n5(Q),f),H.opt_osdId&&(f.uT=H.opt_osdId));return f}; +DTv=function(Q,z,H){var f=rd(s6,z);f||(f=MN(Q,z,"n",H.opt_nativeTime||-1));return f}; +KoY=function(Q,z){var H=rd(s6,z);H||(H=MN(Q,z,"h",-1));return H}; +Vtk=function(Q){as();switch(n5(Q)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; +wI6=function(Q,z,H,f){H=H===void 0?{}:H;var b={};g.Ur(b,{opt_adElement:void 0,opt_fullscreen:void 0},H);var L=Q.A6(z,H);H=L?L.vy:Q.YS();if(b.opt_bounds)return H.Z(TN("ol",f));if(f!==void 0)if(ttA(f)!==void 0)if(tZ)Q=TN("ue",f);else if(r5L(Q),E4=="i")Q=TN("i",f),Q["if"]=0;else if(z=Q.A6(z,b)){b:{E4=="i"&&(z.Bn=!0);L=b.opt_fullscreen;L!==void 0&&L8(z,!!L);var u;if(L=!si().B)(L=OT(g.Iu(),"CrKey")&&!(OT(g.Iu(),"CrKey")&&OT(g.Iu(),"SmartSpeaker"))||OT(g.Iu(),"PlayStation")||OT(g.Iu(),"Roku")||YoJ()||OT(g.Iu(), +"Xbox"))||(L=g.Iu(),L=OT(L,"AppleTV")||OT(L,"Apple TV")||OT(L,"CFNetwork")||OT(L,"tvOS")),L||(L=g.Iu(),L=OT(L,"sdk_google_atv_x86")||OT(L,"Android TV")),L=!L;L&&(sn(),L=Zk(Br)===0);if(u=L){switch(z.kf()){case 1:BAY(z,"pv");break;case 2:Q.Tz(z)}p5("pv")}L=f.toLowerCase();if(u=!u)u=yy(as().K5,"ssmol")&&L==="loaded"?!1:g.TY(dTL,L);if(u&&z.YF==0){E4!="i"&&(K8.done=!1);u=b!==void 0?b.opt_nativeTime:void 0;QY=u=typeof u==="number"?u:T9();z.oR=!0;var X=Pr();z.YF=1;z.bH={};z.bH.start=!1;z.bH.firstquartile= +!1;z.bH.midpoint=!1;z.bH.thirdquartile=!1;z.bH.complete=!1;z.bH.resume=!1;z.bH.pause=!1;z.bH.skip=!1;z.bH.mute=!1;z.bH.unmute=!1;z.bH.viewable_impression=!1;z.bH.measurable_impression=!1;z.bH.fully_viewable_audible_half_duration_impression=!1;z.bH.fullscreen=!1;z.bH.exitfullscreen=!1;z.CB=0;X||(z.Gw().N=u);dd(K8,[z],!X)}(u=z.RK[L])&&C8(z.N8,u);yy(as().K5,"fmd")||g.TY(mTJ,L)&&z.Mt&&z.Mt.B(z,null);switch(z.kf()){case 1:var v=e0(L)?Q.Y.custom_metric_viewable:Q.Y[L];break;case 2:v=Q.N[L]}if(v&&(f=v.call(Q, +z,b,f),yy(as().K5,"fmd")&&g.TY(mTJ,L)&&z.Mt&&z.Mt.B(z,null),f!==void 0)){b=TN(void 0,L);g.Ur(b,f);f=b;break b}f=void 0}z.YF==3&&Q.fv(z);Q=f}else Q=TN("nf",f);else Q=void 0;else tZ?Q=TN("ue"):L?(Q=TN(),g.Ur(Q,rk9(L,!0,!1,!1))):Q=TN("nf");return typeof Q==="string"?H.Z():H.Z(Q)}; +k98=function(Q,z){z&&(Q.D=z)}; +TA6=function(Q){var z={};return z.viewability=Q.Z,z.googleViewability=Q.B,z}; +el9=function(Q,z,H){H=H===void 0?{}:H;Q=wI6(Y3(xW),z,H,Q);return TA6(Q)}; +JZ=function(Q){var z=g.rc.apply(1,arguments).filter(function(f){return f}).join("&"); +if(!z)return Q;var H=Q.match(/[?&]adurl=/);return H?Q.slice(0,H.index+1)+z+"&"+Q.slice(H.index+1):Q+(Q.indexOf("?")===-1?"?":"&")+z}; +Rl8=function(Q){var z=Q.url;Q=Q.Hlj;this.Z=z;this.Y=Q;Q=/[?&]dsh=1(&|$)/.test(z);this.S=!Q&&/[?&]ae=1(&|$)/.test(z);this.j=!Q&&/[?&]ae=2(&|$)/.test(z);if((this.B=/[?&]adurl=([^&]*)/.exec(z))&&this.B[1]){try{var H=decodeURIComponent(this.B[1])}catch(f){H=null}this.L=H}this.D=(new Date).getTime()-lkv}; +Q36=function(Q){Q=Q.Y;if(!Q)return"";var z="";Q.platform&&(z+="&uap="+encodeURIComponent(Q.platform));Q.platformVersion&&(z+="&uapv="+encodeURIComponent(Q.platformVersion));Q.uaFullVersion&&(z+="&uafv="+encodeURIComponent(Q.uaFullVersion));Q.architecture&&(z+="&uaa="+encodeURIComponent(Q.architecture));Q.model&&(z+="&uam="+encodeURIComponent(Q.model));Q.bitness&&(z+="&uab="+encodeURIComponent(Q.bitness));Q.fullVersionList&&(z+="&uafvl="+encodeURIComponent(Q.fullVersionList.map(function(H){return encodeURIComponent(H.brand)+ +";"+encodeURIComponent(H.version)}).join("|"))); +typeof Q.wow64!=="undefined"&&(z+="&uaw="+Number(Q.wow64));return z.substring(1)}; +f5L=function(Q,z,H,f,b){var L=window;var u=u===void 0?!1:u;var X;H?X=(u===void 0?0:u)?"//ep1.adtrafficquality.google/bg/"+R$(H)+".js":"//pagead2.googlesyndication.com/bg/"+R$(H)+".js":X="";u=u===void 0?!1:u;H=L.document;var v={};z&&(v._scs_=z);v._bgu_=X;v._bgp_=f;v._li_="v_h.3.0.0.0";b&&(v._upb_=b);(z=L.GoogleTyFxhY)&&typeof z.push=="function"||(z=L.GoogleTyFxhY=[]);z.push(v);z=KC(H).createElement("SCRIPT");z.type="text/javascript";z.async=!0;Q=(u===void 0?0:u)?Q0Z(z_n,R$(Q)+".js"):Q0Z(HhA,R$(Q)+ +".js");g.Vo(z,Q);(L=(L.GoogleTyFxhYEET||{})[z.src])?L():H.getElementsByTagName("head")[0].appendChild(z)}; +bh6=function(){try{var Q,z;return!!((Q=window)==null?0:(z=Q.top)==null?0:z.location.href)&&!1}catch(H){return!0}}; +AZ=function(){var Q=LEc();Q=Q===void 0?"bevasrsg":Q;return new Promise(function(z){var H=window===window.top?window:bh6()?window:window.top,f=H[Q],b;((b=f)==null?0:b.bevasrs)?z(new Ie(f.bevasrs)):(f||(f={},f=(f.nqfbel=[],f),H[Q]=f),f.nqfbel.push(function(L){z(new Ie(L))}))})}; +uLv=function(Q){var z={c:Q.hT,e:Q.Zo,mc:Q.kC,me:Q.MM};Q.WB&&(z.co={c:Q.WB.KW,a:Q.WB.lI,s:Q.WB.Q5});return z}; +YW=function(Q){g.h.call(this);this.wpc=Q}; +Ie=function(Q){g.h.call(this);var z=this;this.Wc=Q;this.L="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.Z=void 0;this.Ab=this.Wc.p;this.D=this.VC.bind(this);this.addOnDisposeCallback(function(){return void Sia(z)})}; +XrJ=function(Q){var z;return g.B(function(H){if(H.Z==1){if(!Q.Wc.wpc)throw new fs(30,"NWA");return Q.B?H.return(Q.B):g.Y(H,Q.Wc.wpc(),2)}z=H.B;Q.B=new YW(z);return H.return(Q.B)})}; +Sia=function(Q){Q.Z!==void 0&&(Q.L.forEach(function(z){var H;(H=Q.Z)==null||H.removeEventListener(z,Q.D)}),Q.Z=void 0)}; +qiL=function(Q){if(g.Fx(g.Q4(Q)))return!1;if(Q.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")>=0)return!0;try{var z=new g.C7(Q)}catch(H){return g.wJ(vek,function(f){return Q.search(f)>0})!=null}return z.j.match(yxa)?!0:g.wJ(vek,function(H){return Q.match(H)!=null})!=null}; +g.rN=function(Q,z){return Q.replace(M$_,function(H,f){try{var b=g.sr(z,f);if(b==null||b.toString()==null)return H;b=b.toString();if(b==""||!g.Fx(g.Q4(b)))return encodeURIComponent(b).replace(/%2C/g,",")}catch(L){}return H})}; +s4=function(Q,z){return Object.is(Q,z)}; +Pz=function(Q){var z=Bz;Bz=Q;return z}; +CW8=function(Q){if(Q.c7!==void 0){var z=ae;ae=!0;try{for(var H=g.n(Q.c7),f=H.next();!f.done;f=H.next()){var b=f.value;b.uF||(Q=void 0,b.uF=!0,CW8(b),(Q=b.dC)==null||Q.call(b,b))}}finally{ae=z}}}; +t$u=function(){var Q;return((Q=Bz)==null?void 0:Q.hn)!==!1}; +Ee8=function(Q){Q&&(Q.CI=0);return Pz(Q)}; +prY=function(Q,z){Pz(z);if(Q&&Q.a6!==void 0&&Q.RD!==void 0&&Q.JQ!==void 0){if(U4(Q))for(z=Q.CI;zQ.CI;)Q.a6.pop(),Q.JQ.pop(),Q.RD.pop()}}; +gea=function(Q,z,H){neZ(Q);if(Q.c7.length===0&&Q.a6!==void 0)for(var f=0;f0}; +Zhn=function(Q){Q.a6!=null||(Q.a6=[]);Q.RD!=null||(Q.RD=[]);Q.JQ!=null||(Q.JQ=[])}; +neZ=function(Q){Q.c7!=null||(Q.c7=[]);Q.nQ!=null||(Q.nQ=[])}; +$28=function(Q){function z(){if(ae)throw Error("");if(Bz!==null){var f=Bz.CI++;Zhn(Bz);f0?" "+z:z))}}; +g.vO=function(Q,z){if(Q.classList)Array.prototype.forEach.call(z,function(b){g.X9(Q,b)}); +else{var H={};Array.prototype.forEach.call(LZ(Q),function(b){H[b]=!0}); +Array.prototype.forEach.call(z,function(b){H[b]=!0}); +z="";for(var f in H)z+=z.length>0?" "+f:f;g.un(Q,z)}}; +g.yM=function(Q,z){Q.classList?Q.classList.remove(z):g.SK(Q,z)&&g.un(Q,Array.prototype.filter.call(LZ(Q),function(H){return H!=z}).join(" "))}; +g.qP=function(Q,z){Q.classList?Array.prototype.forEach.call(z,function(H){g.yM(Q,H)}):g.un(Q,Array.prototype.filter.call(LZ(Q),function(H){return!g.TY(z,H)}).join(" "))}; +g.MP=function(Q,z,H){H?g.X9(Q,z):g.yM(Q,z)}; +PW6=function(Q,z){var H=!g.SK(Q,z);g.MP(Q,z,H)}; +g.CZ=function(){g.zM.call(this);this.Z=0;this.endTime=this.startTime=null}; +a5c=function(Q,z){Array.isArray(z)||(z=[z]);z=z.map(function(H){return typeof H==="string"?H:H.property+" "+H.duration+"s "+H.timing+" "+H.delay+"s"}); +g.M2(Q,"transition",z.join(","))}; +tD=function(Q,z,H,f,b){g.CZ.call(this);this.B=Q;this.S=z;this.j=H;this.D=f;this.Y=Array.isArray(b)?b:[b]}; +U2k=function(Q,z,H,f){return new tD(Q,z,{opacity:H},{opacity:f},{property:"opacity",duration:z,timing:"ease-in",delay:0})}; +ihJ=function(Q){Q=ou(Q);if(Q=="")return null;var z=String(Q.slice(0,4)).toLowerCase();if(("url("1||Q&&Q.split(")"),null;if(Q.indexOf("(")>0){if(/"|'/.test(Q))return null;z=/([\-\w]+)\(/g;for(var H;H=z.exec(Q);)if(!(H[1].toLowerCase()in cxp))return null}return Q}; +EF=function(Q,z){Q=g.W_[Q];return Q&&Q.prototype?(z=Object.getOwnPropertyDescriptor(Q.prototype,z))&&z.get||null:null}; +h_L=function(Q){var z=g.W_.CSSStyleDeclaration;return z&&z.prototype&&z.prototype[Q]||null}; +WEk=function(Q,z,H,f){if(Q)return Q.apply(z,f);if(g.pZ&&document.documentMode<10){if(!z[H].call)throw Error("IE Clobbering detected");}else if(typeof z[H]!="function")throw Error("Clobbering detected");return z[H].apply(z,f)}; +m2k=function(Q){if(!Q)return"";var z=document.createElement("div").style;D2_(Q).forEach(function(H){var f=g.RI&&H in KEa?H:H.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");$O(f,"--")||$O(f,"var")||(H=WEk(V$9,Q,Q.getPropertyValue?"getPropertyValue":"getAttribute",[H])||"",H=ihJ(H),H!=null&&WEk(d2a,z,z.setProperty?"setProperty":"setAttribute",[f,H]))}); +return z.cssText||""}; +D2_=function(Q){g.wc(Q)?Q=g.z7(Q):(Q=g.Nz(Q),g.lR(Q,"cssText"));return Q}; +g.gv=function(Q){var z,H=z=0,f=!1;Q=Q.split(wrZ);for(var b=0;b.4?-1:1;return(z==0?null:z)==-1?"rtl":"ltr"}; +g.jK=function(Q){if(Q instanceof Zx||Q instanceof Ge||Q instanceof $F)return Q;if(typeof Q.next=="function")return new Zx(function(){return Q}); +if(typeof Q[Symbol.iterator]=="function")return new Zx(function(){return Q[Symbol.iterator]()}); +if(typeof Q.xM=="function")return new Zx(function(){return Q.xM()}); +throw Error("Not an iterator or iterable.");}; +Zx=function(Q){this.B=Q}; +Ge=function(Q){this.B=Q}; +$F=function(Q){Zx.call(this,function(){return Q}); +this.L=Q}; +F9=function(Q,z,H,f,b,L,u,X){this.Z=Q;this.Y=z;this.L=H;this.S=f;this.D=b;this.j=L;this.B=u;this.N=X}; +xF=function(Q,z){if(z==0)return Q.Z;if(z==1)return Q.B;var H=t6(Q.Z,Q.L,z),f=t6(Q.L,Q.D,z);Q=t6(Q.D,Q.B,z);H=t6(H,f,z);f=t6(f,Q,z);return t6(H,f,z)}; +l5Y=function(Q,z){var H=(z-Q.Z)/(Q.B-Q.Z);if(H<=0)return 0;if(H>=1)return 1;for(var f=0,b=1,L=0,u=0;u<8;u++){L=xF(Q,H);var X=(xF(Q,H+1E-6)-L)/1E-6;if(Math.abs(L-z)<1E-6)return H;if(Math.abs(X)<1E-6)break;else L1E-6&&u<8;u++)L=0}; +g.NP=function(Q){g.h.call(this);this.j=1;this.L=[];this.D=0;this.Z=[];this.B={};this.Y=!!Q}; +QL8=function(Q,z,H){g.MH(function(){Q.apply(z,H)})}; +g.IH=function(Q){this.Z=Q}; +AD=function(Q){this.Z=Q}; +zuL=function(Q){this.data=Q}; +H8c=function(Q){return Q===void 0||Q instanceof zuL?Q:new zuL(Q)}; +YF=function(Q){this.Z=Q}; +g.fPp=function(Q){var z=Q.creation;Q=Q.expiration;return!!Q&&Qg.zY()}; +g.rv=function(Q){this.Z=Q}; +b8u=function(){}; +sF=function(){}; +BO=function(Q){this.Z=Q;this.B=null}; +PO=function(Q){if(Q.Z==null)throw Error("Storage mechanism: Storage unavailable");var z;((z=Q.B)!=null?z:Q.isAvailable())||ZL(Error("Storage mechanism: Storage unavailable"))}; +aH=function(){var Q=null;try{Q=g.W_.localStorage||null}catch(z){}BO.call(this,Q)}; +L4_=function(){var Q=null;try{Q=g.W_.sessionStorage||null}catch(z){}BO.call(this,Q)}; +UF=function(Q,z){this.B=Q;this.Z=z+"::"}; +g.cO=function(Q){var z=new aH;return z.isAvailable()?Q?new UF(z,Q):z:null}; +hD=function(Q,z){this.Z=Q;this.B=z}; +WO=function(Q){this.Z=[];if(Q)a:{if(Q instanceof WO){var z=Q.Im();Q=Q.fg();if(this.Z.length<=0){for(var H=this.Z,f=0;f>>6:(L<65536?X[H++]=224|L>>>12:(X[H++]=240|L>>>18,X[H++]=128|L>>>12&63),X[H++]=128|L>>> +6&63),X[H++]=128|L&63);return X}; +dv=function(Q){for(var z=Q.length;--z>=0;)Q[z]=0}; +mg=function(Q,z,H,f,b){this.RF=Q;this.GR=z;this.yu=H;this.UI=f;this.Xz$=b;this.cF=Q&&Q.length}; +wv=function(Q,z){this.wO=Q;this.La=0;this.b9=z}; +kF=function(Q,z){Q.f2[Q.pending++]=z&255;Q.f2[Q.pending++]=z>>>8&255}; +Te=function(Q,z,H){Q.j3>16-H?(Q.q7|=z<>16-Q.j3,Q.j3+=H-16):(Q.q7|=z<>>=1,H<<=1;while(--z>0);return H>>>1}; +yP9=function(Q,z,H){var f=Array(16),b=0,L;for(L=1;L<=15;L++)f[L]=b=b+H[L-1]<<1;for(H=0;H<=z;H++)b=Q[H*2+1],b!==0&&(Q[H*2]=vBv(f[b]++,b))}; +q6L=function(Q){var z;for(z=0;z<286;z++)Q.MG[z*2]=0;for(z=0;z<30;z++)Q.EN[z*2]=0;for(z=0;z<19;z++)Q.Qk[z*2]=0;Q.MG[512]=1;Q.cQ=Q.X_=0;Q.iZ=Q.matches=0}; +M06=function(Q){Q.j3>8?kF(Q,Q.q7):Q.j3>0&&(Q.f2[Q.pending++]=Q.q7);Q.q7=0;Q.j3=0}; +C26=function(Q,z,H){M06(Q);kF(Q,H);kF(Q,~H);VM.K_(Q.f2,Q.window,z,H,Q.pending);Q.pending+=H}; +t0Z=function(Q,z,H,f){var b=z*2,L=H*2;return Q[b]>>7)];eK(Q,u,H);X=fT[u];X!==0&&(b-=bq[u],Te(Q,b,X))}}while(f>1;u>=1;u--)ln(Q,H,u);v=L;do u=Q.cS[1],Q.cS[1]=Q.cS[Q.OT--],ln(Q,H,1),f=Q.cS[1],Q.cS[--Q.SC]=u,Q.cS[--Q.SC]=f,H[v*2]=H[u*2]+H[f*2],Q.depth[v]=(Q.depth[u]>=Q.depth[f]?Q.depth[u]:Q.depth[f])+1,H[u*2+1]=H[f*2+1]=v,Q.cS[1]=v++,ln(Q,H,1);while(Q.OT>= +2);Q.cS[--Q.SC]=Q.cS[1];u=z.wO;v=z.La;f=z.b9.RF;b=z.b9.cF;L=z.b9.GR;var y=z.b9.yu,q=z.b9.Xz$,M,C=0;for(M=0;M<=15;M++)Q.X9[M]=0;u[Q.cS[Q.SC]*2+1]=0;for(z=Q.SC+1;z<573;z++){var t=Q.cS[z];M=u[u[t*2+1]*2+1]+1;M>q&&(M=q,C++);u[t*2+1]=M;if(!(t>v)){Q.X9[M]++;var E=0;t>=y&&(E=L[t-y]);var G=u[t*2];Q.cQ+=G*(M+E);b&&(Q.X_+=G*(f[t*2+1]+E))}}if(C!==0){do{for(M=q-1;Q.X9[M]===0;)M--;Q.X9[M]--;Q.X9[M+1]+=2;Q.X9[q]--;C-=2}while(C>0);for(M=q;M!==0;M--)for(t=Q.X9[M];t!==0;)f=Q.cS[--z],f>v||(u[f*2+1]!==M&&(Q.cQ+=(M- +u[f*2+1])*u[f*2],u[f*2+1]=M),t--)}yP9(H,X,Q.X9)}; +pka=function(Q,z,H){var f,b=-1,L=z[1],u=0,X=7,v=4;L===0&&(X=138,v=3);z[(H+1)*2+1]=65535;for(f=0;f<=H;f++){var y=L;L=z[(f+1)*2+1];++u>>=1)if(z&1&&Q.MG[H*2]!==0)return 0;if(Q.MG[18]!==0||Q.MG[20]!==0||Q.MG[26]!==0)return 1;for(H=32;H<256;H++)if(Q.MG[H*2]!==0)return 1;return 0}; +uq=function(Q,z,H){Q.f2[Q.NW+Q.iZ*2]=z>>>8&255;Q.f2[Q.NW+Q.iZ*2+1]=z&255;Q.f2[Q.tL+Q.iZ]=H&255;Q.iZ++;z===0?Q.MG[H*2]++:(Q.matches++,z--,Q.MG[(RH[H]+256+1)*2]++,Q.EN[(z<256?H5[z]:H5[256+(z>>>7)])*2]++);return Q.iZ===Q.Xl-1}; +Xy=function(Q,z){Q.msg=Sy[z];return z}; +v5=function(Q){for(var z=Q.length;--z>=0;)Q[z]=0}; +yX=function(Q){var z=Q.state,H=z.pending;H>Q.gr&&(H=Q.gr);H!==0&&(VM.K_(Q.output,z.f2,z.cJ,H,Q.G2),Q.G2+=H,z.cJ+=H,Q.kE+=H,Q.gr-=H,z.pending-=H,z.pending===0&&(z.cJ=0))}; +CT=function(Q,z){var H=Q.b$>=0?Q.b$:-1,f=Q.DJ-Q.b$,b=0;if(Q.level>0){Q.QR.Qp===2&&(Q.QR.Qp=gBc(Q));LT(Q,Q.e_);LT(Q,Q.jg);pka(Q,Q.MG,Q.e_.La);pka(Q,Q.EN,Q.jg.La);LT(Q,Q.GT);for(b=18;b>=3&&Q.Qk[Z86[b]*2+1]===0;b--);Q.cQ+=3*(b+1)+5+5+4;var L=Q.cQ+3+7>>>3;var u=Q.X_+3+7>>>3;u<=L&&(L=u)}else L=u=f+5;if(f+4<=L&&H!==-1)Te(Q,z?1:0,3),C26(Q,H,f);else if(Q.strategy===4||u===L)Te(Q,2+(z?1:0),3),EBJ(Q,qU,MU);else{Te(Q,4+(z?1:0),3);H=Q.e_.La+1;f=Q.jg.La+1;b+=1;Te(Q,H-257,5);Te(Q,f-1,5);Te(Q,b-4,4);for(L=0;L>>8&255;Q.f2[Q.pending++]=z&255}; +GNa=function(Q,z){var H=Q.rf,f=Q.DJ,b=Q.Ix,L=Q.K1,u=Q.DJ>Q.HY-262?Q.DJ-(Q.HY-262):0,X=Q.window,v=Q.cR,y=Q.tp,q=Q.DJ+258,M=X[f+b-1],C=X[f+b];Q.Ix>=Q.wB&&(H>>=2);L>Q.Nz&&(L=Q.Nz);do{var t=z;if(X[t+b]===C&&X[t+b-1]===M&&X[t]===X[f]&&X[++t]===X[f+1]){f+=2;for(t++;X[++f]===X[++t]&&X[++f]===X[++t]&&X[++f]===X[++t]&&X[++f]===X[++t]&&X[++f]===X[++t]&&X[++f]===X[++t]&&X[++f]===X[++t]&&X[++f]===X[++t]&&fb){Q.BE=z;b=t;if(t>=L)break;M=X[f+b-1];C=X[f+b]}}}while((z=y[z&v])>u&&--H!== +0);return b<=Q.Nz?b:Q.Nz}; +gw=function(Q){var z=Q.HY,H;do{var f=Q.w9-Q.Nz-Q.DJ;if(Q.DJ>=z+(z-262)){VM.K_(Q.window,Q.window,z,z,0);Q.BE-=z;Q.DJ-=z;Q.b$-=z;var b=H=Q.iR;do{var L=Q.head[--b];Q.head[b]=L>=z?L-z:0}while(--H);b=H=z;do L=Q.tp[--b],Q.tp[b]=L>=z?L-z:0;while(--H);f+=z}if(Q.QR.BY===0)break;b=Q.QR;H=Q.window;L=Q.DJ+Q.Nz;var u=b.BY;u>f&&(u=f);u===0?H=0:(b.BY-=u,VM.K_(H,b.input,b.FM,u,L),b.state.wrap===1?b.Kp=pT(b.Kp,H,u,L):b.state.wrap===2&&(b.Kp=nT(b.Kp,H,u,L)),b.FM+=u,b.u3+=u,H=u);Q.Nz+=H;if(Q.Nz+Q.pA>=3)for(f=Q.DJ-Q.pA, +Q.Fh=Q.window[f],Q.Fh=(Q.Fh<=3&&(Q.Fh=(Q.Fh<=3)if(H=uq(Q,Q.DJ-Q.BE,Q.z1-3),Q.Nz-=Q.z1,Q.z1<=Q.Oo&&Q.Nz>=3){Q.z1--;do Q.DJ++,Q.Fh=(Q.Fh<=3&&(Q.Fh=(Q.Fh<4096)&&(Q.z1=2));if(Q.Ix>=3&&Q.z1<=Q.Ix){f=Q.DJ+Q.Nz-3;H=uq(Q,Q.DJ-1-Q.QB,Q.Ix-3);Q.Nz-=Q.Ix-1;Q.Ix-=2;do++Q.DJ<=f&&(Q.Fh=(Q.Fh<=3&&Q.DJ>0&&(f=Q.DJ-1,H=L[f],H===L[++f]&&H===L[++f]&&H===L[++f])){for(b=Q.DJ+258;H===L[++f]&&H===L[++f]&&H===L[++f]&&H===L[++f]&&H===L[++f]&&H===L[++f]&&H===L[++f]&&H===L[++f]&&fQ.Nz&&(Q.z1=Q.Nz)}Q.z1>=3?(H=uq(Q,1,Q.z1-3),Q.Nz-=Q.z1,Q.DJ+=Q.z1,Q.z1=0):(H=uq(Q,0,Q.window[Q.DJ]),Q.Nz--,Q.DJ++);if(H&&(CT(Q,!1),Q.QR.gr===0))return 1}Q.pA=0;return z=== +4?(CT(Q,!0),Q.QR.gr===0?3:4):Q.iZ&&(CT(Q,!1),Q.QR.gr===0)?1:2}; +jL9=function(Q,z){for(var H;;){if(Q.Nz===0&&(gw(Q),Q.Nz===0)){if(z===0)return 1;break}Q.z1=0;H=uq(Q,0,Q.window[Q.DJ]);Q.Nz--;Q.DJ++;if(H&&(CT(Q,!1),Q.QR.gr===0))return 1}Q.pA=0;return z===4?(CT(Q,!0),Q.QR.gr===0?3:4):Q.iZ&&(CT(Q,!1),Q.QR.gr===0)?1:2}; +$c=function(Q,z,H,f,b){this.Dce=Q;this.iHh=z;this.oNc=H;this.pz$=f;this.func=b}; +F4u=function(){this.QR=null;this.status=0;this.f2=null;this.wrap=this.pending=this.cJ=this.dN=0;this.M4=null;this.W5=0;this.method=8;this.oZ=-1;this.cR=this.E1=this.HY=0;this.window=null;this.w9=0;this.head=this.tp=null;this.K1=this.wB=this.strategy=this.level=this.Oo=this.rf=this.Ix=this.Nz=this.BE=this.DJ=this.pQ=this.QB=this.z1=this.b$=this.HQ=this.eE=this.kW=this.iR=this.Fh=0;this.MG=new VM.mf(1146);this.EN=new VM.mf(122);this.Qk=new VM.mf(78);v5(this.MG);v5(this.EN);v5(this.Qk);this.GT=this.jg= +this.e_=null;this.X9=new VM.mf(16);this.cS=new VM.mf(573);v5(this.cS);this.SC=this.OT=0;this.depth=new VM.mf(573);v5(this.depth);this.j3=this.q7=this.pA=this.matches=this.X_=this.cQ=this.NW=this.iZ=this.Xl=this.tL=0}; +x3u=function(Q,z){if(!Q||!Q.state||z>5||z<0)return Q?Xy(Q,-2):-2;var H=Q.state;if(!Q.output||!Q.input&&Q.BY!==0||H.status===666&&z!==4)return Xy(Q,Q.gr===0?-5:-2);H.QR=Q;var f=H.oZ;H.oZ=z;if(H.status===42)if(H.wrap===2)Q.Kp=0,tu(H,31),tu(H,139),tu(H,8),H.M4?(tu(H,(H.M4.text?1:0)+(H.M4.Pn?2:0)+(H.M4.extra?4:0)+(H.M4.name?8:0)+(H.M4.comment?16:0)),tu(H,H.M4.time&255),tu(H,H.M4.time>>8&255),tu(H,H.M4.time>>16&255),tu(H,H.M4.time>>24&255),tu(H,H.level===9?2:H.strategy>=2||H.level<2?4:0),tu(H,H.M4.os& +255),H.M4.extra&&H.M4.extra.length&&(tu(H,H.M4.extra.length&255),tu(H,H.M4.extra.length>>8&255)),H.M4.Pn&&(Q.Kp=nT(Q.Kp,H.f2,H.pending,0)),H.W5=0,H.status=69):(tu(H,0),tu(H,0),tu(H,0),tu(H,0),tu(H,0),tu(H,H.level===9?2:H.strategy>=2||H.level<2?4:0),tu(H,3),H.status=113);else{var b=8+(H.E1-8<<4)<<8;b|=(H.strategy>=2||H.level<2?0:H.level<6?1:H.level===6?2:3)<<6;H.DJ!==0&&(b|=32);H.status=113;E9(H,b+(31-b%31));H.DJ!==0&&(E9(H,Q.Kp>>>16),E9(H,Q.Kp&65535));Q.Kp=1}if(H.status===69)if(H.M4.extra){for(b= +H.pending;H.W5<(H.M4.extra.length&65535)&&(H.pending!==H.dN||(H.M4.Pn&&H.pending>b&&(Q.Kp=nT(Q.Kp,H.f2,H.pending-b,b)),yX(Q),b=H.pending,H.pending!==H.dN));)tu(H,H.M4.extra[H.W5]&255),H.W5++;H.M4.Pn&&H.pending>b&&(Q.Kp=nT(Q.Kp,H.f2,H.pending-b,b));H.W5===H.M4.extra.length&&(H.W5=0,H.status=73)}else H.status=73;if(H.status===73)if(H.M4.name){b=H.pending;do{if(H.pending===H.dN&&(H.M4.Pn&&H.pending>b&&(Q.Kp=nT(Q.Kp,H.f2,H.pending-b,b)),yX(Q),b=H.pending,H.pending===H.dN)){var L=1;break}L=H.W5b&&(Q.Kp=nT(Q.Kp,H.f2,H.pending-b,b));L===0&&(H.W5=0,H.status=91)}else H.status=91;if(H.status===91)if(H.M4.comment){b=H.pending;do{if(H.pending===H.dN&&(H.M4.Pn&&H.pending>b&&(Q.Kp=nT(Q.Kp,H.f2,H.pending-b,b)),yX(Q),b=H.pending,H.pending===H.dN)){L=1;break}L=H.W5b&&(Q.Kp=nT(Q.Kp,H.f2,H.pending-b,b));L===0&&(H.status=103)}else H.status= +103;H.status===103&&(H.M4.Pn?(H.pending+2>H.dN&&yX(Q),H.pending+2<=H.dN&&(tu(H,Q.Kp&255),tu(H,Q.Kp>>8&255),Q.Kp=0,H.status=113)):H.status=113);if(H.pending!==0){if(yX(Q),Q.gr===0)return H.oZ=-1,0}else if(Q.BY===0&&(z<<1)-(z>4?9:0)<=(f<<1)-(f>4?9:0)&&z!==4)return Xy(Q,-5);if(H.status===666&&Q.BY!==0)return Xy(Q,-5);if(Q.BY!==0||H.Nz!==0||z!==0&&H.status!==666){f=H.strategy===2?jL9(H,z):H.strategy===3?$3L(H,z):jy[H.level].func(H,z);if(f===3||f===4)H.status=666;if(f===1||f===3)return Q.gr===0&&(H.oZ= +-1),0;if(f===2&&(z===1?(Te(H,2,3),eK(H,256,qU),H.j3===16?(kF(H,H.q7),H.q7=0,H.j3=0):H.j3>=8&&(H.f2[H.pending++]=H.q7&255,H.q7>>=8,H.j3-=8)):z!==5&&(Te(H,0,3),C26(H,0,0),z===3&&(v5(H.head),H.Nz===0&&(H.DJ=0,H.b$=0,H.pA=0))),yX(Q),Q.gr===0))return H.oZ=-1,0}if(z!==4)return 0;if(H.wrap<=0)return 1;H.wrap===2?(tu(H,Q.Kp&255),tu(H,Q.Kp>>8&255),tu(H,Q.Kp>>16&255),tu(H,Q.Kp>>24&255),tu(H,Q.u3&255),tu(H,Q.u3>>8&255),tu(H,Q.u3>>16&255),tu(H,Q.u3>>24&255)):(E9(H,Q.Kp>>>16),E9(H,Q.Kp&65535));yX(Q);H.wrap>0&& +(H.wrap=-H.wrap);return H.pending!==0?0:1}; +Fy=function(Q){if(!(this instanceof Fy))return new Fy(Q);Q=this.options=VM.assign({level:-1,method:8,chunkSize:16384,Y7:15,uam:8,strategy:0,ac:""},Q||{});Q.raw&&Q.Y7>0?Q.Y7=-Q.Y7:Q.b35&&Q.Y7>0&&Q.Y7<16&&(Q.Y7+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.QR=new O8p;this.QR.gr=0;var z=this.QR;var H=Q.level,f=Q.method,b=Q.Y7,L=Q.uam,u=Q.strategy;if(z){var X=1;H===-1&&(H=6);b<0?(X=0,b=-b):b>15&&(X=2,b-=16);if(L<1||L>9||f!==8||b<8||b>15||H<0||H>9||u<0||u>4)z=Xy(z,-2);else{b===8&&(b=9); +var v=new F4u;z.state=v;v.QR=z;v.wrap=X;v.M4=null;v.E1=b;v.HY=1<>=7;L<30;L++)for(bq[L]=u<<7,b=0;b<1<=y.HY&&(z===0&&(v5(y.head),y.DJ=0,y.b$=0,y.pA=0),H=new VM.rU(y.HY),VM.K_(H,L,u-y.HY,y.HY,0),L=H,u=y.HY);H=Q.BY;f=Q.FM;b=Q.input;Q.BY=u;Q.FM=0;Q.input=L;for(gw(y);y.Nz>=3;){L=y.DJ;u=y.Nz-2;do y.Fh=(y.Fh<=10&&(H[27]!=-2?(0,H[85])(H[73],H[7])*(((0,H[55])((0,H[63])(H[54],(0,H[15])(),H[49]),H[85],H[33],H[16]),H[70])(H[0],H[49]),H[67])(H[4],H[48]):(0,H[27])(((0,H[50])(H[41],(0,H[16])(),H[3]),H[57])(H[26],H[36])^(0,H[new Date(H_[5])/1E3])(H[78]),H[42],(0,H[82])(H[81]),H[48],H[36])),(H[86]<7||((0,H[27])((((0,H[50])(H[41],(0,H[2])(),H[36]),H[54])(H[78],H[23]),H[42])((((0,H[48])(H[36]),(0,H[57])(H[10],H[81]),H[57])(H[28],H[7]), +H[77])(H[11],H[36]),H[72],H[76],H[36])>>(((0,H[50])(H[51],(0,H[2])(),H[36]),H[4])(H[1]),(0,H[50])(H[41],(0,H[34])(),H[36])),H[42],((0,H[50])(H[41],(0,H[16])(),H[3]),H[50])(H[51],(0,H[2])(),H[3]),H[77],H[12],H[78]),H_[1]))&&(0,H[58])((((0,H[58])((0,H[77])(H[46],H[3]),H[77],(0,H[4])(H[81]),H[64],H[7])^((0,H[85])((0,H[85])((0,H[76])(H[78],H[34]),H[6],H[7],(0,H[45])(),H[37]),H[33],H[81],H[34]),H[45])(H[69],H[47]),(0,H[1])(H[28],H[64]),H[19])(H[8],H[28]),H[1])(H[28],H[new Date(H_[6])/1E3]),H[19],(0,H[76])((0,H[24])(H[6], +H[70]),H[24],H[14],H[35]),H[33],H[79]),H[16]!=3&&(H[new Date(H_[7])/1E3]<=-8&&((0,H[71])((0,H[62])(H[70],H[81]),H[32],((0,H[63])(H[3],H[72]),H[63])(H[84],H[72]),(0,H[63])(H[76],H[72]),(0,H[39])(H[72]),H[63],H[86],H[85]),1)||(0,H[17])(((0,H[41])(H[31],(0,H[80])(),H[81]),(0,H[41])(H[31],(0,H[24])(),H[26]),H[62])(H[8],H[26])^(0,H[41])(H[31],(0,H[53])(),H[72]),H[32],(0,H[41])(H[42],(0,H[24])(),H[72]),H[41],H[31],(0,H[6])(),H[26])),(H[87]===-7||((0,H[62])(H[21],H[72]),0))&&(0,H[48])(H[64],H[26]),H[84]!= +-5&&(H[25]!=1?((0,H[68])(H[87],H[81]),(0,H[45])(H[72],H[19]),H[48])(H[57],H[72])^(0,H[62])(H[29],H[79]):(0,H[32])((((0,H[41])(H[31],(0,H[80])(),H[81]),H[41])(H[31],(0,H[53])(),H[72]),H[48])(H[35],H[81]),H[0],H[14],H[69])),H[62]>-8&&(H[50]>2||((0,H[32])((0,H[0])(H[4],H[79]),H[45],H[85],H[66]),0))&&((0,H[44])(H[45],(0,H[83])(),H[84]),H[42])(H[84]),H[69]<=10&&(0,H[24])(H[80],H[0]),H[65]==4?(0,H[51])(H[33],H[29]):(0,H[71])(H[78],H[45]),H[64]<=-10&&((0,H[77])((0,H[4])(((0,H[13])(H[57],(0,H[52])(),H[53]), +H[13])(H[57],(0,H[52])(),H[53]),H[13],H[3],(0,H[52])(),H[44]),H[4],(0,H[4])((0,H[13])(H[57],(0,H[66])(),H[53]),H[20],H[67],H[14]),H[54],H[53]),1)||(0,H[71])(H[10],(0,H[35])(H[75],H[51]),H[40],((0,H[17])(H[14],H[65]),H[36])(H[39]),(0,H[69])(H[78],H[48]),(0,H[36])(H[7],H[11]),H[63],H[48])}catch(f){((0,H[65])(H[30],H[41]),H[68])(H[41],H[2]),((0,H[50])(H[35],H[41]),H[74])(H[87])===(0,H[45])(H[57],H[41]),(0,H[65])(H[52],H[44]),(0,H[72])(H[28],(0,H[18])(),H[87]),(0,H[50])(H[53],H[87]),(0,H[65])(H[77],H[87])}}catch(f){return H_[8]+ +Q}return z.join(H_[1])}; +V0Y=function(Q){return Q,H_[9][1+!!Q]}; +g.If=function(Q){this.name=Q}; +d39=function(Q){this.Pz=s7(Q)}; +Au=function(Q){this.Pz=s7(Q)}; +Yc=function(Q){this.Pz=s7(Q)}; +m3A=function(Q){this.Pz=s7(Q)}; +rw=function(Q){this.Pz=s7(Q)}; +s9=function(Q){this.Pz=s7(Q)}; +B5=function(Q){this.Pz=s7(Q)}; +P5=function(Q){this.Pz=s7(Q)}; +af=function(Q){this.Pz=s7(Q)}; +U9=function(Q){this.Pz=s7(Q)}; +c5=function(Q){this.Pz=s7(Q)}; +iq=function(Q){this.Pz=s7(Q)}; +hu=function(Q){this.Pz=s7(Q)}; +W5=function(Q){this.Pz=s7(Q)}; +VX=function(Q){this.Pz=s7(Q)}; +dw=function(Q){this.Pz=s7(Q,500)}; +mk=function(Q){this.Pz=s7(Q)}; +ww=function(Q){this.Pz=s7(Q)}; +wkn=function(Q){this.Pz=s7(Q)}; +kN9=function(){return g.Kn("yt.ads.biscotti.lastId_")||""}; +Td9=function(Q){g.D6("yt.ads.biscotti.lastId_",Q)}; +T5=function(){var Q=arguments,z=kc;Q.length>1?z[Q[0]]=Q[1]:Q.length===1&&Object.assign(z,Q[0])}; +g.ey=function(Q,z){return Q in kc?kc[Q]:z}; +lq=function(Q){var z=kc.EXPERIMENT_FLAGS;return z?z[Q]:void 0}; +euv=function(Q){Rf.forEach(function(z){return z(Q)})}; +g.zr=function(Q){return Q&&window.yterr?function(){try{return Q.apply(this,arguments)}catch(z){g.QC(z)}}:Q}; +g.QC=function(Q){var z=g.Kn("yt.logging.errors.log");z?z(Q,"ERROR",void 0,void 0,void 0,void 0,void 0):(z=g.ey("ERRORS",[]),z.push([Q,"ERROR",void 0,void 0,void 0,void 0,void 0]),T5("ERRORS",z));euv(Q)}; +H2=function(Q,z,H,f,b){var L=g.Kn("yt.logging.errors.log");L?L(Q,"WARNING",z,H,f,void 0,b):(L=g.ey("ERRORS",[]),L.push([Q,"WARNING",z,H,f,void 0,b]),T5("ERRORS",L))}; +f1=function(Q,z){z=Q.split(z);for(var H={},f=0,b=z.length;f1?Q[1]:Q[0])):{}}; +XZ=function(Q,z){return zRv(Q,z||{},!0)}; +v2=function(Q,z){return zRv(Q,z||{},!1)}; +zRv=function(Q,z,H){var f=Q.split("#",2);Q=f[0];f=f.length>1?"#"+f[1]:"";var b=Q.split("?",2);Q=b[0];b=L1(b[1]||"");for(var L in z)if(H||!g.II(b,L))b[L]=z[L];return g.de(Q,b)+f}; +yC=function(Q){if(!z)var z=window.location.href;var H=g.c4(1,Q),f=g.id(Q);H&&f?(Q=Q.match(UE),z=z.match(UE),Q=Q[3]==z[3]&&Q[1]==z[1]&&Q[4]==z[4]):Q=f?g.id(z)===f&&(Number(g.c4(4,z))||null)===(Number(g.c4(4,Q))||null):!0;return Q}; +qn=function(Q){Q||(Q=document.location.href);Q=g.c4(1,Q);return Q!==null&&Q==="https"}; +Mn=function(Q){Q=H5L(Q);return Q===null?!1:Q[0]==="com"&&Q[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; +fRv=function(Q){Q=H5L(Q);return 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}; +H5L=function(Q){Q=g.id(Q);return Q!==null?Q.split(".").reverse():null}; +lPJ=function(Q){return Q&&Q.match(b5n)?Q:lz(Q)}; +EM=function(Q){var z=C1;Q=Q===void 0?kN9():Q;var H=Object,f=H.assign,b=tF(z);var L=z.Z;try{var u=L.screenX;var X=L.screenY}catch(J){}try{var v=L.outerWidth;var y=L.outerHeight}catch(J){}try{var q=L.innerWidth;var M=L.innerHeight}catch(J){}try{var C=L.screenLeft;var t=L.screenTop}catch(J){}try{q=L.innerWidth,M=L.innerHeight}catch(J){}try{var E=L.screen.availWidth;var G=L.screen.availTop}catch(J){}L=[C,t,u,X,E,G,v,y,q,M];u=j6L(!1,z.Z.top);X={};var x=x===void 0?g.W_:x;v=new K5;"SVGElement"in x&&"createElementNS"in +x.document&&v.set(0);y=Pd_();y["allow-top-navigation-by-user-activation"]&&v.set(1);y["allow-popups-to-escape-sandbox"]&&v.set(2);x.crypto&&x.crypto.subtle&&v.set(3);"TextDecoder"in x&&"TextEncoder"in x&&v.set(4);x=Yi9(v);z=(X.bc=x,X.bih=u.height,X.biw=u.width,X.brdim=L.join(),X.vis=Zk(z.B),X.wgl=!!pl.WebGLRenderingContext,X);H=f.call(H,b,z);H.ca_type="image";Q&&(H.bid=Q);return H}; +tF=function(Q){var z={};z.dt=Lsa;z.flash="0";a:{try{var H=Q.Z.top.location.href}catch(q){Q=2;break a}Q=H?H===Q.B.location.href?0:1:2}z=(z.frm=Q,z);try{z.u_tz=-(new Date).getTimezoneOffset();var f=f===void 0?pl:f;try{var b=f.history.length}catch(q){b=0}z.u_his=b;var L;z.u_h=(L=pl.screen)==null?void 0:L.height;var u;z.u_w=(u=pl.screen)==null?void 0:u.width;var X;z.u_ah=(X=pl.screen)==null?void 0:X.availHeight;var v;z.u_aw=(v=pl.screen)==null?void 0:v.availWidth;var y;z.u_cd=(y=pl.screen)==null?void 0: +y.colorDepth}catch(q){}return z}; +S4J=function(){if(!ugp)return null;var Q=ugp();return"open"in Q?Q:null}; +g.n1=function(Q){switch(p1(Q)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; +p1=function(Q){return Q&&"status"in Q?Q.status:-1}; +g.gR=function(Q,z){typeof Q==="function"&&(Q=g.zr(Q));return window.setTimeout(Q,z)}; +g.ZK=function(Q,z){typeof Q==="function"&&(Q=g.zr(Q));return window.setInterval(Q,z)}; +g.Gr=function(Q){window.clearTimeout(Q)}; +g.$7=function(Q){window.clearInterval(Q)}; +g.FZ=function(Q){Q=jT(Q);return typeof Q==="string"&&Q==="false"?!1:!!Q}; +g.x7=function(Q,z){Q=jT(Q);return Q===void 0&&z!==void 0?z:Number(Q||0)}; +OM=function(){return g.ey("EXPERIMENTS_TOKEN","")}; +jT=function(Q){return g.ey("EXPERIMENT_FLAGS",{})[Q]}; +on=function(){for(var Q=[],z=g.ey("EXPERIMENTS_FORCED_FLAGS",{}),H=g.n(Object.keys(z)),f=H.next();!f.done;f=H.next())f=f.value,Q.push({key:f,value:String(z[f])});H=g.ey("EXPERIMENT_FLAGS",{});f=g.n(Object.keys(H));for(var b=f.next();!b.done;b=f.next())b=b.value,b.startsWith("force_")&&z[b]===void 0&&Q.push({key:b,value:String(H[b])});return Q}; +JF=function(Q,z,H,f,b,L,u,X){function v(){(y&&"readyState"in y?y.readyState:0)===4&&z&&g.zr(z)(y)} +H=H===void 0?"GET":H;f=f===void 0?"":f;X=X===void 0?!1:X;var y=S4J();if(!y)return null;"onloadend"in y?y.addEventListener("loadend",v,!1):y.onreadystatechange=v;g.FZ("debug_forward_web_query_parameters")&&(Q=Xza(Q,window.location.search));y.open(H,Q,!0);L&&(y.responseType=L);u&&(y.withCredentials=!0);H=H==="POST"&&(window.FormData===void 0||!(f instanceof FormData));if(b=vW6(Q,b))for(var q in b)y.setRequestHeader(q,b[q]),"content-type"===q.toLowerCase()&&(H=!1);H&&y.setRequestHeader("Content-Type", +"application/x-www-form-urlencoded");if(X&&"setAttributionReporting"in XMLHttpRequest.prototype){Q={eventSourceEligible:!0,triggerEligible:!1};try{y.setAttributionReporting(Q)}catch(M){H2(M)}}y.send(f);return y}; +vW6=function(Q,z){z=z===void 0?{}:z;var H=yC(Q),f=g.ey("INNERTUBE_CLIENT_NAME"),b=g.FZ("web_ajax_ignore_global_headers_if_set"),L;for(L in yZa){var u=g.ey(yZa[L]),X=L==="X-Goog-AuthUser"||L==="X-Goog-PageId";L!=="X-Goog-Visitor-Id"||u||(u=g.ey("VISITOR_DATA"));var v;if(!(v=!u)){if(!(v=H||(g.id(Q)?!1:!0))){v=Q;var y;if(y=g.FZ("add_auth_headers_to_remarketing_google_dot_com_ping")&&L==="Authorization"&&(f==="TVHTML5"||f==="TVHTML5_UNPLUGGED"||f==="TVHTML5_SIMPLY")&&fRv(v))v=aR(g.c4(5,v))||"",v=v.split("/"), +v="/"+(v.length>1?v[1]:""),y=v==="/pagead";v=y?!0:!1}v=!v}v||b&&z[L]!==void 0||f==="TVHTML5_UNPLUGGED"&&X||(z[L]=u)}"X-Goog-EOM-Visitor-Id"in z&&"X-Goog-Visitor-Id"in z&&delete z["X-Goog-Visitor-Id"];if(H||!g.id(Q))z["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(H||!g.id(Q)){try{var q=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(M){}q&&(z["X-YouTube-Time-Zone"]=q)}document.location.hostname.endsWith("youtubeeducation.com")||!H&&g.id(Q)||(z["X-YouTube-Ad-Signals"]= +bv(EM()));return z}; +M_A=function(Q,z){var H=g.id(Q);g.FZ("debug_handle_relative_url_for_query_forward_killswitch")||!H&&yC(Q)&&(H=document.location.hostname);var f=aR(g.c4(5,Q));f=(H=H&&(H.endsWith("youtube.com")||H.endsWith("youtube-nocookie.com")))&&f&&f.startsWith("/api/");if(!H||f)return Q;var b=L1(z),L={};g.MI(q4c,function(u){b[u]&&(L[u]=b[u])}); +return v2(Q,L)}; +In=function(Q,z){z.method="POST";z.postParams||(z.postParams={});return g.Nn(Q,z)}; +EW_=function(Q,z){if(window.fetch&&z.format!=="XML"){var H={method:z.method||"GET",credentials:"same-origin"};z.headers&&(H.headers=z.headers);z.priority&&(H.priority=z.priority);Q=Cpp(Q,z);var f=t_a(Q,z);f&&(H.body=f);z.withCredentials&&(H.credentials="include");var b=z.context||g.W_,L=!1,u;fetch(Q,H).then(function(X){if(!L){L=!0;u&&g.Gr(u);var v=X.ok,y=function(q){q=q||{};v?z.onSuccess&&z.onSuccess.call(b,q,X):z.onError&&z.onError.call(b,q,X);z.onFinish&&z.onFinish.call(b,q,X)}; +(z.format||"JSON")==="JSON"&&(v||X.status>=400&&X.status<500)?X.json().then(y,function(){y(null)}):y(null)}}).catch(function(){z.onError&&z.onError.call(b,{},{})}); +Q=z.timeout||0;z.onFetchTimeout&&Q>0&&(u=g.gR(function(){L||(L=!0,g.Gr(u),z.onFetchTimeout.call(z.context||g.W_))},Q))}else g.Nn(Q,z)}; +g.Nn=function(Q,z){var H=z.format||"JSON";Q=Cpp(Q,z);var f=t_a(Q,z),b=!1,L=pza(Q,function(v){if(!b){b=!0;X&&g.Gr(X);var y=g.n1(v),q=null,M=400<=v.status&&v.status<500,C=500<=v.status&&v.status<600;if(y||M||C)q=nWv(Q,H,v,z.convertToSafeHtml);y&&(y=gWn(H,v,q));q=q||{};M=z.context||g.W_;y?z.onSuccess&&z.onSuccess.call(M,v,q):z.onError&&z.onError.call(M,v,q);z.onFinish&&z.onFinish.call(M,v,q)}},z.method,f,z.headers,z.responseType,z.withCredentials); +f=z.timeout||0;if(z.onTimeout&&f>0){var u=z.onTimeout;var X=g.gR(function(){b||(b=!0,L.abort(),g.Gr(X),u.call(z.context||g.W_,L))},f)}return L}; +Cpp=function(Q,z){z.includeDomain&&(Q=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+Q);var H=g.ey("XSRF_FIELD_NAME");if(z=z.urlParams)z[H]&&delete z[H],Q=XZ(Q,z);return Q}; +t_a=function(Q,z){var H=g.ey("XSRF_FIELD_NAME"),f=g.ey("XSRF_TOKEN"),b=z.postBody||"",L=z.postParams,u=g.ey("XSRF_FIELD_NAME"),X;z.headers&&(X=z.headers["Content-Type"]);z.excludeXsrf||g.id(Q)&&!z.withCredentials&&g.id(Q)!==document.location.hostname||z.method!=="POST"||X&&X!=="application/x-www-form-urlencoded"||z.postParams&&z.postParams[u]||(L||(L={}),L[H]=f);(g.FZ("ajax_parse_query_data_only_when_filled")&&L&&Object.keys(L).length>0||L)&&typeof b==="string"&&(b=L1(b),g.Ur(b,L),b=z.postBodyFormat&& +z.postBodyFormat==="JSON"?JSON.stringify(b):g.Ve(b));L=b||L&&!g.ra(L);!Z5J&&L&&z.method!=="POST"&&(Z5J=!0,g.QC(Error("AJAX request with postData should use POST")));return b}; +nWv=function(Q,z,H,f){var b=null;switch(z){case "JSON":try{var L=H.responseText}catch(u){throw f=Error("Error reading responseText"),f.params=Q,H2(f),u;}Q=H.getResponseHeader("Content-Type")||"";L&&Q.indexOf("json")>=0&&(L.substring(0,5)===")]}'\n"&&(L=L.substring(5)),b=JSON.parse(L));break;case "XML":if(Q=(Q=H.responseXML)?GOu(Q):null)b={},g.MI(Q.getElementsByTagName("*"),function(u){b[u.tagName]=$N9(u)})}f&&jeL(b); +return b}; +jeL=function(Q){if(g.kv(Q))for(var z in Q)z==="html_content"||WZp(z,"_html")?Q[z]=a$(Q[z]):jeL(Q[z])}; +gWn=function(Q,z,H){if(z&&z.status===204)return!0;switch(Q){case "JSON":return!!H;case "XML":return Number(H&&H.return_code)===0;case "RAW":return!0;default:return!!H}}; +GOu=function(Q){return Q?(Q=("responseXML"in Q?Q.responseXML:Q).getElementsByTagName("root"))&&Q.length>0?Q[0]:null:null}; +$N9=function(Q){var z="";g.MI(Q.childNodes,function(H){z+=H.nodeValue}); +return z}; +Y7=function(Q,z){var H=g.P3(z),f;return(new g.ge(function(b,L){H.onSuccess=function(u){g.n1(u)?b(new Fsa(u)):L(new AF("Request failed, status="+p1(u),"net.badstatus",u))}; +H.onError=function(u){L(new AF("Unknown request error","net.unknown",u))}; +H.onTimeout=function(u){L(new AF("Request timed out","net.timeout",u))}; +f=g.Nn(Q,H)})).IN(function(b){if(b instanceof xr){var L; +(L=f)==null||L.abort()}return $r(b)})}; +g.rR=function(Q,z,H,f){function b(X,v,y){return X.IN(function(q){if(v<=0||p1(q.xhr)===403)return $r(new AF("Request retried too many times","net.retryexhausted",q.xhr,q));q=Math.pow(2,H-v+1)*y;var M=u>0?Math.min(u,q):q;return L(y).then(function(){return b(Y7(Q,z),v-1,M)})})} +function L(X){return new g.ge(function(v){setTimeout(v,X)})} +var u=u===void 0?-1:u;return b(Y7(Q,z),H-1,f)}; +AF=function(Q,z,H){ps.call(this,Q+", errorCode="+z);this.errorCode=z;this.xhr=H;this.name="PromiseAjaxError"}; +Fsa=function(Q){this.xhr=Q}; +sM=function(Q){this.Z=Q===void 0?null:Q;this.L=0;this.B=null}; +B2=function(Q){var z=new sM;Q=Q===void 0?null:Q;z.L=2;z.B=Q===void 0?null:Q;return z}; +P2=function(Q){var z=new sM;Q=Q===void 0?null:Q;z.L=1;z.B=Q===void 0?null:Q;return z}; +g.c2=function(Q,z,H,f,b){an||UM.set(""+Q,z,{dF:H,path:"/",domain:f===void 0?"youtube.com":f,secure:b===void 0?!1:b})}; +g.iv=function(Q,z){if(!an)return UM.get(""+Q,z)}; +g.hF=function(Q,z,H){an||UM.remove(""+Q,z===void 0?"/":z,H===void 0?"youtube.com":H)}; +xNn=function(){if(g.FZ("embeds_web_enable_cookie_detection_fix")){if(!g.W_.navigator.cookieEnabled)return!1}else if(!UM.isEnabled())return!1;if(!UM.isEmpty())return!0;g.FZ("embeds_web_enable_cookie_detection_fix")?UM.set("TESTCOOKIESENABLED","1",{dF:60,uf5:"none",secure:!0}):UM.set("TESTCOOKIESENABLED","1",{dF:60});if(UM.get("TESTCOOKIESENABLED")!=="1")return!1;UM.remove("TESTCOOKIESENABLED");return!0}; +g.K=function(Q,z){if(Q)return Q[z.name]}; +W2=function(Q){var z=g.ey("INNERTUBE_HOST_OVERRIDE");z&&(Q=String(z)+String(hj(Q)));return Q}; +O5n=function(Q){var z={};g.FZ("json_condensed_response")&&(z.prettyPrint="false");return Q=v2(Q,z)}; +DK=function(Q,z){var H=H===void 0?{}:H;Q={method:z===void 0?"POST":z,mode:yC(Q)?"same-origin":"cors",credentials:yC(Q)?"same-origin":"include"};z={};for(var f=g.n(Object.keys(H)),b=f.next();!b.done;b=f.next())b=b.value,H[b]&&(z[b]=H[b]);Object.keys(z).length>0&&(Q.headers=z);return Q}; +K1=function(){var Q=/Chrome\/(\d+)/.exec(g.Iu());return Q?parseFloat(Q[1]):NaN}; +dR=function(){return g.VC("android")&&g.VC("chrome")&&!(g.VC("trident/")||g.VC("edge/"))&&!g.VC("cobalt")}; +oWv=function(){return g.VC("armv7")||g.VC("aarch64")||g.VC("android")}; +g.mW=function(){return g.VC("cobalt")}; +wR=function(){return g.VC("cobalt")&&g.VC("appletv")}; +k7=function(){return g.VC("(ps3; leanback shell)")||g.VC("ps3")&&g.mW()}; +JZc=function(){return g.VC("(ps4; leanback shell)")||g.VC("ps4")&&g.mW()}; +g.NNA=function(){return g.mW()&&(g.VC("ps4 vr")||g.VC("ps4 pro vr"))}; +Tr=function(){var Q=/WebKit\/([0-9]+)/.exec(g.Iu());return!!(Q&&parseInt(Q[1],10)>=600)}; +eT=function(){var Q=/WebKit\/([0-9]+)/.exec(g.Iu());return!!(Q&&parseInt(Q[1],10)>=602)}; +IR6=function(){return g.VC("iemobile")||g.VC("windows phone")&&g.VC("edge")}; +Qh=function(){return(lv||Rn)&&g.VC("applewebkit")&&!g.VC("version")&&(!g.VC("safari")||g.VC("gsa/"))}; +Hw=function(){return g.zd&&g.VC("version/")}; +fF=function(){return g.VC("smart-tv")&&g.VC("samsung")}; +g.VC=function(Q){var z=g.Iu();return z?z.toLowerCase().indexOf(Q)>=0:!1}; +bh=function(){return cnv()||Qh()||Hw()?!0:g.ey("EOM_VISITOR_DATA")?!1:!0}; +LF=function(Q,z){return z===void 0||z===null?Q:z==="1"||z===!0||z===1||z==="True"?!0:!1}; +uh=function(Q,z,H){for(var f in H)if(H[f]==z)return H[f];return Q}; +Ss=function(Q,z){return z===void 0||z===null?Q:Number(z)}; +XX=function(Q,z){return z===void 0||z===null?Q:z.toString()}; +vw=function(Q,z){if(z){if(Q==="fullwidth")return Infinity;if(Q==="fullheight")return 0}return Q&&(z=Q.match(AZ_))&&(Q=Number(z[2]),z=Number(z[1]),!isNaN(Q)&&!isNaN(z)&&Q>0)?z/Q:NaN}; +yh=function(Q){var z=Q.docid||Q.video_id||Q.videoId||Q.id;if(z)return z;z=Q.raw_player_response;z||(Q=Q.player_response)&&(z=JSON.parse(Q));return z&&z.videoDetails&&z.videoDetails.videoId||null}; +Y4J=function(Q){return q0(Q,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; +g.M0=function(Q){return Q==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||Q==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; +q0=function(Q,z){z=(z===void 0?0:z)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(z="EMBEDDED_PLAYER_MODE_PFL");var H=Q.raw_embedded_player_response;if(!H&&(Q=Q.embedded_player_response))try{H=JSON.parse(Q)}catch(f){return z}return H?uh(z,H.embeddedPlayerMode,rZa):z}; +tq=function(Q){ps.call(this,Q.message||Q.description||Q.name);this.isMissing=Q instanceof CF;this.isTimeout=Q instanceof AF&&Q.errorCode=="net.timeout";this.isCanceled=Q instanceof xr}; +CF=function(){ps.call(this,"Biscotti ID is missing from server")}; +se6=function(){if(g.FZ("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!bh())return Error("User has not consented - not fetching biscotti id.");var Q=g.ey("PLAYER_VARS",{});if(g.sr(Q,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(Y4J(Q))return Error("Biscotti id fetching has been disabled for pfl.")}; +UNa=function(){var Q=se6();if(Q!==void 0)return $r(Q);EP||(EP=Y7("//googleads.g.doubleclick.net/pagead/id",BNu).then(Pp6).IN(function(z){return aRZ(2,z)})); +return EP}; +Pp6=function(Q){Q=Q.xhr.responseText;if(!$O(Q,")]}'"))throw new CF;Q=JSON.parse(Q.substr(4));if((Q.type||1)>1)throw new CF;Q=Q.id;Td9(Q);EP=P2(Q);cZZ(18E5,2);return Q}; +aRZ=function(Q,z){z=new tq(z);Td9("");EP=B2(z);Q>0&&cZZ(12E4,Q-1);throw z;}; +cZZ=function(Q,z){g.gR(function(){Y7("//googleads.g.doubleclick.net/pagead/id",BNu).then(Pp6,function(H){return aRZ(z,H)}).IN(g.tj)},Q)}; +i5a=function(){try{var Q=g.Kn("yt.ads.biscotti.getId_");return Q?Q():UNa()}catch(z){return $r(z)}}; +WsZ=function(Q){Q&&(Q.dataset?Q.dataset[hR9()]="true":OSA(Q))}; +DN6=function(Q){return Q?Q.dataset?Q.dataset[hR9()]:Q.getAttribute("data-loaded"):null}; +hR9=function(){return Ksu.loaded||(Ksu.loaded="loaded".replace(/\-([a-z])/g,function(Q,z){return z.toUpperCase()}))}; +V_v=function(){var Q=document;if("visibilityState"in Q)return Q.visibilityState;var z=pF+"VisibilityState";if(z in Q)return Q[z]}; +nF=function(Q,z){var H;N2(Q,function(f){H=z[f];return!!H}); +return H}; +gD=function(Q){if(Q.requestFullscreen)Q=Q.requestFullscreen(void 0);else if(Q.webkitRequestFullscreen)Q=Q.webkitRequestFullscreen();else if(Q.mozRequestFullScreen)Q=Q.mozRequestFullScreen();else if(Q.msRequestFullscreen)Q=Q.msRequestFullscreen();else if(Q.webkitEnterFullscreen)Q=Q.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return Q instanceof Promise?Q:Promise.resolve()}; +$Q=function(Q){var z;g.ZQ()?Gd()==Q&&(z=document):z=Q;return z&&(Q=nF(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],z))?(z=Q.call(z),z instanceof Promise?z:Promise.resolve()):Promise.resolve()}; +dNa=function(Q){return g.wJ(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(z){return"on"+z.toLowerCase()in Q})}; +mNc=function(){var Q=document;return g.wJ(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(z){return"on"+z.toLowerCase()in Q})}; +g.ZQ=function(){return!!nF(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; +Gd=function(Q){Q=Q===void 0?!1:Q;var z=nF(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(Q)for(;z&&z.shadowRoot;)z=z.shadowRoot.fullscreenElement;return z?z:null}; +js=function(Q){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(Q=Q||window.event){this.event=Q;for(var z in Q)z in wzc||(this[z]=Q[z]);this.scale=Q.scale;this.rotation=Q.rotation;var H=Q.target||Q.srcElement;H&&H.nodeType==3&&(H=H.parentNode);this.target=H;var f=Q.relatedTarget; +if(f)try{f=f.nodeName?f:null}catch(b){f=null}else this.type=="mouseover"?f=Q.fromElement:this.type=="mouseout"&&(f=Q.toElement);this.relatedTarget=f;this.clientX=Q.clientX!=void 0?Q.clientX:Q.pageX;this.clientY=Q.clientY!=void 0?Q.clientY:Q.pageY;this.keyCode=Q.keyCode?Q.keyCode:Q.which;this.charCode=Q.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=Q.altKey;this.ctrlKey=Q.ctrlKey;this.shiftKey=Q.shiftKey;this.metaKey=Q.metaKey;this.Z=Q.pageX;this.B=Q.pageY}}catch(b){}}; +kOk=function(Q){if(document.body&&document.documentElement){var z=document.body.scrollTop+document.documentElement.scrollTop;Q.Z=Q.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);Q.B=Q.clientY+z}}; +TNJ=function(Q,z,H,f){f=f===void 0?{}:f;Q.addEventListener&&(z!="mouseenter"||"onmouseenter"in document?z!="mouseleave"||"onmouseenter"in document?z=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(z="MozMousePixelScroll"):z="mouseout":z="mouseover");return Ys(FX,function(b){var L=typeof b[4]==="boolean"&&b[4]==!!f,u=g.kv(b[4])&&g.kv(f)&&g.B3(b[4],f);return!!b.length&&b[0]==Q&&b[1]==z&&b[2]==H&&(L||u)})}; +g.xQ=function(Q,z,H,f){f=f===void 0?{}:f;if(!Q||!Q.addEventListener&&!Q.attachEvent)return"";var b=TNJ(Q,z,H,f);if(b)return b;b=++eR_.count+"";var L=!(z!="mouseenter"&&z!="mouseleave"||!Q.addEventListener||"onmouseenter"in document);var u=L?function(X){X=new js(X);if(!qK(X.relatedTarget,function(v){return v==Q},!0))return X.currentTarget=Q,X.type=z,H.call(Q,X)}:function(X){X=new js(X); +X.currentTarget=Q;return H.call(Q,X)}; +u=g.zr(u);Q.addEventListener?(z=="mouseenter"&&L?z="mouseover":z=="mouseleave"&&L?z="mouseout":z=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(z="MozMousePixelScroll"),lRJ()||typeof f==="boolean"?Q.addEventListener(z,u,f):Q.addEventListener(z,u,!!f.capture)):Q.attachEvent("on"+z,u);FX[b]=[Q,z,H,u,f];return b}; +QHa=function(Q){return RRc(Q,function(z){return g.SK(z,"ytp-ad-has-logging-urls")})}; +RRc=function(Q,z){var H=document.body||document;return g.xQ(H,"click",function(f){var b=qK(f.target,function(L){return L===H||z(L)},!0); +b&&b!==H&&!b.disabled&&(f.currentTarget=b,Q.call(b,f))})}; +g.OP=function(Q){Q&&(typeof Q=="string"&&(Q=[Q]),g.MI(Q,function(z){if(z in FX){var H=FX[z],f=H[0],b=H[1],L=H[3];H=H[4];f.removeEventListener?lRJ()||typeof H==="boolean"?f.removeEventListener(b,L,H):f.removeEventListener(b,L,!!H.capture):f.detachEvent&&f.detachEvent("on"+b,L);delete FX[z]}}))}; +o4=function(Q){for(var z in FX)FX[z][0]==Q&&g.OP(z)}; +Jq=function(Q){Q=Q||window.event;var z;Q.composedPath&&typeof Q.composedPath==="function"?z=Q.composedPath():z=Q.path;z&&z.length?Q=z[0]:(Q=Q||window.event,Q=Q.target||Q.srcElement,Q.nodeType==3&&(Q=Q.parentNode));return Q}; +N0=function(Q){this.Y=Q;this.Z=null;this.D=0;this.j=null;this.S=0;this.B=[];for(Q=0;Q<4;Q++)this.B.push(0);this.L=0;this.wh=g.xQ(window,"mousemove",(0,g.RJ)(this.U,this));this.N=g.ZK((0,g.RJ)(this.Ze,this),25)}; +I4=function(Q){g.h.call(this);this.Y=[];this.ZJ=Q||this}; +Aq=function(Q,z,H,f){for(var b=0;b0?H:0;H=f?Date.now()+f*1E3:0;if((f=f?(0,g.sP)():Bw())&&window.JSON){typeof z!=="string"&&(z=JSON.stringify(z,void 0));try{f.set(Q,z,H)}catch(b){f.remove(Q)}}}; +g.a4=function(Q){var z=Bw(),H=(0,g.sP)();if(!z&&!H||!window.JSON)return null;try{var f=z.get(Q)}catch(b){}if(typeof f!=="string")try{f=H.get(Q)}catch(b){}if(typeof f!=="string")return null;try{f=JSON.parse(f,void 0)}catch(b){}return f}; +fxa=function(){var Q=(0,g.sP)();if(Q&&(Q=Q.B("yt-player-quality")))return Q.creation}; +g.UP=function(Q){try{var z=Bw(),H=(0,g.sP)();z&&z.remove(Q);H&&H.remove(Q)}catch(f){}}; +g.cw=function(){return g.a4("yt-remote-session-screen-id")}; +bZA=function(Q){var z=this;this.B=void 0;this.Z=!1;Q.addEventListener("beforeinstallprompt",function(H){H.preventDefault();z.B=H}); +Q.addEventListener("appinstalled",function(){z.Z=!0},{once:!0})}; +ih=function(){if(!g.W_.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.W_.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.W_.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.W_.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.W_.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(Q){return"WEB_DISPLAY_MODE_UNKNOWN"}}; +hq=function(){this.eY=!0}; +LgA=function(){hq.instance||(hq.instance=new hq);return hq.instance}; +u9Y=function(Q){switch(Q){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}}; +SF6=function(){this.Z=g.ey("ALT_PREF_COOKIE_NAME","PREF");this.B=g.ey("ALT_PREF_COOKIE_DOMAIN","youtube.com");var Q=g.iv(this.Z);Q&&this.parse(Q)}; +g.DQ=function(){Ww||(Ww=new SF6);return Ww}; +g.KF=function(Q,z){return!!((XOu("f"+(Math.floor(z/31)+1))||0)&1<0;)switch(Q=MV.shift(),Q.type){case "ERROR":X8.NO(Q.payload);break;case "EVENT":X8.logEvent(Q.eventType,Q.payload)}}; +t1=function(Q){Cf||(X8?X8.NO(Q):(MV.push({type:"ERROR",payload:Q}),MV.length>10&&MV.shift()))}; +Ee=function(Q,z){Cf||(X8?X8.logEvent(Q,z):(MV.push({type:"EVENT",eventType:Q,payload:z}),MV.length>10&&MV.shift()))}; +pf=function(Q){if(Q.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; +nf=function(Q){return Q.substr(0,Q.indexOf(":"))||Q}; +g.gG=function(Q,z,H,f,b){z=z===void 0?{}:z;H=H===void 0?pOk[Q]:H;f=f===void 0?nFZ[Q]:f;b=b===void 0?gF6[Q]:b;g.kQ.call(this,H,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:Q},z));this.type=Q;this.message=H;this.level=f;this.Z=b;Object.setPrototypeOf(this,g.gG.prototype)}; +ZE=function(Q,z){g.gG.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:z,foundObjectStores:Q},pOk.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,ZE.prototype)}; +Ga=function(Q,z){var H=Error.call(this);this.message=H.message;"stack"in H&&(this.stack=H.stack);this.index=Q;this.objectStore=z;Object.setPrototypeOf(this,Ga.prototype)}; +j9=function(Q,z,H,f){z=nf(z);var b=Q instanceof Error?Q:Error("Unexpected error: "+Q);if(b instanceof g.gG)return b;Q={objectStoreNames:H,dbName:z,dbVersion:f};if(b.name==="QuotaExceededError")return new g.gG("QUOTA_EXCEEDED",Q);if(g.$w&&b.name==="UnknownError")return new g.gG("QUOTA_MAYBE_EXCEEDED",Q);if(b instanceof Ga)return new g.gG("MISSING_INDEX",Object.assign({},Q,{objectStore:b.objectStore,index:b.index}));if(b.name==="InvalidStateError"&&ZZc.some(function(L){return b.message.includes(L)}))return new g.gG("EXECUTE_TRANSACTION_ON_CLOSED_DB", +Q); +if(b.name==="AbortError")return new g.gG("UNKNOWN_ABORT",Q,b.message);b.args=[Object.assign({},Q,{name:"IdbError",jQ:b.name})];b.level="WARNING";return b}; +g.F8=function(Q,z,H){var f=S9();return new g.gG("IDB_NOT_SUPPORTED",{context:{caller:Q,publicName:z,version:H,hasSucceededOnce:f==null?void 0:f.hasSucceededOnce}})}; +Gev=function(Q){if(!Q)throw Error();throw Q;}; +$Pc=function(Q){return Q}; +xw=function(Q){this.Z=Q}; +g.Oe=function(Q){function z(b){if(f.state.status==="PENDING"){f.state={status:"REJECTED",reason:b};b=g.n(f.B);for(var L=b.next();!L.done;L=b.next())L=L.value,L()}} +function H(b){if(f.state.status==="PENDING"){f.state={status:"FULFILLED",value:b};b=g.n(f.Z);for(var L=b.next();!L.done;L=b.next())L=L.value,L()}} +var f=this;this.state={status:"PENDING"};this.Z=[];this.B=[];Q=Q.Z;try{Q(H,z)}catch(b){z(b)}}; +jH8=function(Q,z,H,f,b){try{if(Q.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var L=H(Q.state.value);L instanceof g.Oe?oE(Q,z,L,f,b):f(L)}catch(u){b(u)}}; +Fgu=function(Q,z,H,f,b){try{if(Q.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var L=H(Q.state.reason);L instanceof g.Oe?oE(Q,z,L,f,b):f(L)}catch(u){b(u)}}; +oE=function(Q,z,H,f,b){z===H?b(new TypeError("Circular promise chain detected.")):H.then(function(L){L instanceof g.Oe?oE(Q,z,L,f,b):f(L)},function(L){b(L)})}; +xPv=function(Q,z,H){function f(){H(Q.error);L()} +function b(){z(Q.result);L()} +function L(){try{Q.removeEventListener("success",b),Q.removeEventListener("error",f)}catch(u){}} +Q.addEventListener("success",b);Q.addEventListener("error",f)}; +OZ9=function(Q){return new Promise(function(z,H){xPv(Q,z,H)})}; +J1=function(Q){return new g.Oe(new xw(function(z,H){xPv(Q,z,H)}))}; +NV=function(Q,z){return new g.Oe(new xw(function(H,f){function b(){var L=Q?z(Q):null;L?L.then(function(u){Q=u;b()},f):H()} +b()}))}; +oF_=function(Q,z){this.request=Q;this.cursor=z}; +JDY=function(Q){return J1(Q).then(function(z){return z?new oF_(Q,z):null})}; +g.Nv6=function(Q){Q.cursor.continue(void 0);return JDY(Q.request)}; +Ixv=function(Q,z){this.Z=Q;this.options=z;this.transactionCount=0;this.L=Math.round((0,g.IE)());this.B=!1}; +g.Yw=function(Q,z,H){Q=Q.Z.createObjectStore(z,H);return new A1(Q)}; +rG=function(Q,z){Q.Z.objectStoreNames.contains(z)&&Q.Z.deleteObjectStore(z)}; +g.PH=function(Q,z,H){return g.se(Q,[z],{mode:"readwrite",VE:!0},function(f){return g.BH(f.objectStore(z),H)})}; +g.se=function(Q,z,H,f){var b,L,u,X,v,y,q,M,C,t,E,G;return g.B(function(x){switch(x.Z){case 1:var J={mode:"readonly",VE:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof H==="string"?J.mode=H:Object.assign(J,H);b=J;Q.transactionCount++;L=b.VE?3:1;u=0;case 2:if(X){x.bT(4);break}u++;v=Math.round((0,g.IE)());g.jY(x,5);y=Q.Z.transaction(z,b.mode);J=new aE(y);J=ADJ(J,f);return g.Y(x,J,7);case 7:return q=x.B,M=Math.round((0,g.IE)()),YFY(Q,v,M,u,void 0,z.join(),b),x.return(q);case 5:C=g.OA(x);t=Math.round((0,g.IE)()); +E=j9(C,Q.Z.name,z.join(),Q.Z.version);if((G=E instanceof g.gG&&!E.Z)||u>=L)YFY(Q,v,t,u,E,z.join(),b),X=E;x.bT(2);break;case 4:return x.return(Promise.reject(X))}})}; +YFY=function(Q,z,H,f,b,L,u){z=H-z;b?(b instanceof g.gG&&(b.type==="QUOTA_EXCEEDED"||b.type==="QUOTA_MAYBE_EXCEEDED")&&Ee("QUOTA_EXCEEDED",{dbName:nf(Q.Z.name),objectStoreNames:L,transactionCount:Q.transactionCount,transactionMode:u.mode}),b instanceof g.gG&&b.type==="UNKNOWN_ABORT"&&(H-=Q.L,H<0&&H>=2147483648&&(H=0),Ee("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:L,transactionDuration:z,transactionCount:Q.transactionCount,dbDuration:H}),Q.B=!0),rD_(Q,!1,f,L,z,u.tag),t1(b)):rD_(Q,!0,f,L,z, +u.tag)}; +rD_=function(Q,z,H,f,b,L){Ee("TRANSACTION_ENDED",{objectStoreNames:f,connectionHasUnknownAbortedTransaction:Q.B,duration:b,isSuccessful:z,tryCount:H,tag:L===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":L})}; +A1=function(Q){this.Z=Q}; +g.Ue=function(Q,z,H){Q.Z.createIndex(z,H,{unique:!1})}; +sHa=function(Q,z){return g.cH(Q,{query:z},function(H){return H.delete().then(function(){return g.i0(H)})}).then(function(){})}; +Bvn=function(Q,z,H){var f=[];return g.cH(Q,{query:z},function(b){if(!(H!==void 0&&f.length>=H))return f.push(b.getValue()),g.i0(b)}).then(function(){return f})}; +ax9=function(Q){return"getAllKeys"in IDBObjectStore.prototype?J1(Q.Z.getAllKeys(void 0,void 0)):Pn6(Q)}; +Pn6=function(Q){var z=[];return g.UP_(Q,{query:void 0},function(H){z.push(H.cursor.primaryKey);return g.Nv6(H)}).then(function(){return z})}; +g.BH=function(Q,z,H){return J1(Q.Z.put(z,H))}; +g.cH=function(Q,z,H){Q=Q.Z.openCursor(z.query,z.direction);return h1(Q).then(function(f){return NV(f,H)})}; +g.UP_=function(Q,z,H){var f=z.query;z=z.direction;Q="openKeyCursor"in IDBObjectStore.prototype?Q.Z.openKeyCursor(f,z):Q.Z.openCursor(f,z);return JDY(Q).then(function(b){return NV(b,H)})}; +aE=function(Q){var z=this;this.Z=Q;this.L=new Map;this.B=!1;this.done=new Promise(function(H,f){z.Z.addEventListener("complete",function(){H()}); +z.Z.addEventListener("error",function(b){b.currentTarget===b.target&&f(z.Z.error)}); +z.Z.addEventListener("abort",function(){var b=z.Z.error;if(b)f(b);else if(!z.B){b=g.gG;for(var L=z.Z.objectStoreNames,u=[],X=0;X=H))return f.push(b.getValue()),g.i0(b)}).then(function(){return f})}; +g.WH=function(Q,z,H){Q=Q.Z.openCursor(z.query===void 0?null:z.query,z.direction===void 0?"next":z.direction);return h1(Q).then(function(f){return NV(f,H)})}; +DE=function(Q,z){this.request=Q;this.cursor=z}; +h1=function(Q){return J1(Q).then(function(z){return z?new DE(Q,z):null})}; +g.i0=function(Q){Q.cursor.continue(void 0);return h1(Q.request)}; +hEZ=function(Q,z,H){return new Promise(function(f,b){function L(){C||(C=new Ixv(u.result,{closed:M}));return C} +var u=z!==void 0?self.indexedDB.open(Q,z):self.indexedDB.open(Q);var X=H.blocked,v=H.blocking,y=H.CWh,q=H.upgrade,M=H.closed,C;u.addEventListener("upgradeneeded",function(t){try{if(t.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(u.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");t.dataLoss&&t.dataLoss!=="none"&&Ee("IDB_DATA_CORRUPTED",{reason:t.dataLossMessage||"unknown reason",dbName:nf(Q)});var E=L(),G=new aE(u.transaction); +q&&q(E,function(x){return t.oldVersion=x},G); +G.done.catch(function(x){b(x)})}catch(x){b(x)}}); +u.addEventListener("success",function(){var t=u.result;v&&t.addEventListener("versionchange",function(){v(L())}); +t.addEventListener("close",function(){Ee("IDB_UNEXPECTEDLY_CLOSED",{dbName:nf(Q),dbVersion:t.version});y&&y()}); +f(L())}); +u.addEventListener("error",function(){b(u.error)}); +X&&u.addEventListener("blocked",function(){X()})})}; +Wgv=function(Q,z,H){H=H===void 0?{}:H;return hEZ(Q,z,H)}; +Kf=function(Q,z){z=z===void 0?{}:z;var H,f,b,L;return g.B(function(u){if(u.Z==1)return g.jY(u,2),H=self.indexedDB.deleteDatabase(Q),f=z,(b=f.blocked)&&H.addEventListener("blocked",function(){b()}),g.Y(u,OZ9(H),4); +if(u.Z!=2)return g.xv(u,0);L=g.OA(u);throw j9(L,Q,"",-1);})}; +V5=function(Q,z){this.name=Q;this.options=z;this.L=!0;this.S=this.D=0}; +DP6=function(Q,z){return new g.gG("INCOMPATIBLE_DB_VERSION",{dbName:Q.name,oldVersion:Q.options.version,newVersion:z})}; +g.dG=function(Q,z){if(!z)throw g.F8("openWithToken",nf(Q.name));return Q.open()}; +KgL=function(Q,z){var H;return g.B(function(f){if(f.Z==1)return g.Y(f,g.dG(mx,z),2);H=f.B;return f.return(g.se(H,["databases"],{VE:!0,mode:"readwrite"},function(b){var L=b.objectStore("databases");return L.get(Q.actualName).then(function(u){if(u?Q.actualName!==u.actualName||Q.publicName!==u.publicName||Q.userIdentifier!==u.userIdentifier:1)return g.BH(L,Q).then(function(){})})}))})}; +wG=function(Q,z){var H;return g.B(function(f){if(f.Z==1)return Q?g.Y(f,g.dG(mx,z),2):f.return();H=f.B;return f.return(H.delete("databases",Q))})}; +VKc=function(Q,z){var H,f;return g.B(function(b){return b.Z==1?(H=[],g.Y(b,g.dG(mx,z),2)):b.Z!=3?(f=b.B,g.Y(b,g.se(f,["databases"],{VE:!0,mode:"readonly"},function(L){H.length=0;return g.cH(L.objectStore("databases"),{},function(u){Q(u.getValue())&&H.push(u.getValue());return g.i0(u)})}),3)):b.return(H)})}; +dPL=function(Q,z){return VKc(function(H){return H.publicName===Q&&H.userIdentifier!==void 0},z)}; +mPv=function(){var Q,z,H,f;return g.B(function(b){switch(b.Z){case 1:Q=S9();if((z=Q)==null?0:z.hasSucceededOnce)return b.return(!0);if(kw&&Tr()&&!eT()||g.Ta)return b.return(!1);try{if(H=self,!(H.indexedDB&&H.IDBIndex&&H.IDBKeyRange&&H.IDBObjectStore))return b.return(!1)}catch(L){return b.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return b.return(!1);g.jY(b,2);f={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; +return g.Y(b,KgL(f,e9),4);case 4:return g.Y(b,wG("yt-idb-test-do-not-use",e9),5);case 5:return b.return(!0);case 2:return g.OA(b),b.return(!1)}})}; +wO_=function(){if(l0!==void 0)return l0;Cf=!0;return l0=mPv().then(function(Q){Cf=!1;var z;if((z=u0())!=null&&z.Z){var H;z={hasSucceededOnce:((H=S9())==null?void 0:H.hasSucceededOnce)||Q};var f;(f=u0())==null||f.set("LAST_RESULT_ENTRY_KEY",z,2592E3,!0)}return Q})}; +RE=function(){return g.Kn("ytglobal.idbToken_")||void 0}; +g.QH=function(){var Q=RE();return Q?Promise.resolve(Q):wO_().then(function(z){(z=z?e9:void 0)&&g.D6("ytglobal.idbToken_",z);return z})}; +keL=function(Q){if(!g.es())throw Q=new g.gG("AUTH_INVALID",{dbName:Q}),t1(Q),Q;var z=g.Td();return{actualName:Q+":"+z,publicName:Q,userIdentifier:z}}; +TvL=function(Q,z,H,f){var b,L,u,X,v,y;return g.B(function(q){switch(q.Z){case 1:return L=(b=Error().stack)!=null?b:"",g.Y(q,g.QH(),2);case 2:u=q.B;if(!u)throw X=g.F8("openDbImpl",Q,z),g.FZ("ytidb_async_stack_killswitch")||(X.stack=X.stack+"\n"+L.substring(L.indexOf("\n")+1)),t1(X),X;pf(Q);v=H?{actualName:Q,publicName:Q,userIdentifier:void 0}:keL(Q);g.jY(q,3);return g.Y(q,KgL(v,u),5);case 5:return g.Y(q,Wgv(v.actualName,z,f),6);case 6:return q.return(q.B);case 3:return y=g.OA(q),g.jY(q,7),g.Y(q,wG(v.actualName, +u),9);case 9:g.xv(q,8);break;case 7:g.OA(q);case 8:throw y;}})}; +eEk=function(Q,z,H){H=H===void 0?{}:H;return TvL(Q,z,!1,H)}; +lx9=function(Q,z,H){H=H===void 0?{}:H;return TvL(Q,z,!0,H)}; +RE8=function(Q,z){z=z===void 0?{}:z;var H,f;return g.B(function(b){if(b.Z==1)return g.Y(b,g.QH(),2);if(b.Z!=3){H=b.B;if(!H)return b.return();pf(Q);f=keL(Q);return g.Y(b,Kf(f.actualName,z),3)}return g.Y(b,wG(f.actualName,H),0)})}; +Qf6=function(Q,z,H){Q=Q.map(function(f){return g.B(function(b){return b.Z==1?g.Y(b,Kf(f.actualName,z),2):g.Y(b,wG(f.actualName,H),0)})}); +return Promise.all(Q).then(function(){})}; +z$Z=function(Q){var z=z===void 0?{}:z;var H,f;return g.B(function(b){if(b.Z==1)return g.Y(b,g.QH(),2);if(b.Z!=3){H=b.B;if(!H)return b.return();pf(Q);return g.Y(b,dPL(Q,H),3)}f=b.B;return g.Y(b,Qf6(f,z,H),0)})}; +HT_=function(Q,z){z=z===void 0?{}:z;var H;return g.B(function(f){if(f.Z==1)return g.Y(f,g.QH(),2);if(f.Z!=3){H=f.B;if(!H)return f.return();pf(Q);return g.Y(f,Kf(Q,z),3)}return g.Y(f,wG(Q,H),0)})}; +zK=function(Q,z){V5.call(this,Q,z);this.options=z;pf(Q)}; +fVp=function(Q,z){var H;return function(){H||(H=new zK(Q,z));return H}}; +g.HU=function(Q,z){return fVp(Q,z)}; +fc=function(Q){return g.dG(bTA(),Q)}; +LkJ=function(Q,z,H,f){var b,L,u;return g.B(function(X){switch(X.Z){case 1:return b={config:Q,hashData:z,timestamp:f!==void 0?f:(0,g.IE)()},g.Y(X,fc(H),2);case 2:return L=X.B,g.Y(X,L.clear("hotConfigStore"),3);case 3:return g.Y(X,g.PH(L,"hotConfigStore",b),4);case 4:return u=X.B,X.return(u)}})}; +uyk=function(Q,z,H,f,b){var L,u,X;return g.B(function(v){switch(v.Z){case 1:return L={config:Q,hashData:z,configData:H,timestamp:b!==void 0?b:(0,g.IE)()},g.Y(v,fc(f),2);case 2:return u=v.B,g.Y(v,u.clear("coldConfigStore"),3);case 3:return g.Y(v,g.PH(u,"coldConfigStore",L),4);case 4:return X=v.B,v.return(X)}})}; +S9u=function(Q){var z,H;return g.B(function(f){return f.Z==1?g.Y(f,fc(Q),2):f.Z!=3?(z=f.B,H=void 0,g.Y(f,g.se(z,["coldConfigStore"],{mode:"readwrite",VE:!0},function(b){return g.WH(b.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(L){H=L.getValue()})}),3)):f.return(H)})}; +X5a=function(Q){var z,H;return g.B(function(f){return f.Z==1?g.Y(f,fc(Q),2):f.Z!=3?(z=f.B,H=void 0,g.Y(f,g.se(z,["hotConfigStore"],{mode:"readwrite",VE:!0},function(b){return g.WH(b.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(L){H=L.getValue()})}),3)):f.return(H)})}; +vcZ=function(){return g.B(function(Q){return g.Y(Q,z$Z("ytGcfConfig"),0)})}; +bS=function(){g.h.call(this);this.B=[];this.Z=[];var Q=g.Kn("yt.gcf.config.hotUpdateCallbacks");Q?(this.B=[].concat(g.F(Q)),this.Z=Q):(this.Z=[],g.D6("yt.gcf.config.hotUpdateCallbacks",this.Z))}; +yH=function(){var Q=this;this.S=!1;this.L=this.D=0;this.j=new bS;this.Po={Jah:function(){Q.S=!0}, +YUl:function(){return Q.Z}, +prm:function(z){Lc(Q,z)}, +uU:function(z){Q.uU(z)}, +cv$:function(z){uS(Q,z)}, +Cy:function(){return Q.coldHashData}, +Ww:function(){return Q.hotHashData}, +Wfq:function(){return Q.B}, +CFI:function(){return Si()}, +u9m:function(){return Xd()}, +dFl:function(){return g.Kn("yt.gcf.config.coldHashData")}, +Iav:function(){return g.Kn("yt.gcf.config.hotHashData")}, +oGn:function(){yu8(Q)}, +liI:function(){Q.uU(void 0);vU(Q);delete yH.instance}, +v$$:function(z){Q.L=z}, +iZT:function(){return Q.L}}}; +q96=function(){if(!yH.instance){var Q=new yH;yH.instance=Q}return yH.instance}; +tyv=function(Q){var z;g.B(function(H){if(H.Z==1)return g.FZ("start_client_gcf")||g.FZ("delete_gcf_config_db")?g.FZ("start_client_gcf")?g.Y(H,g.QH(),3):H.bT(2):H.return();H.Z!=2&&((z=H.B)&&g.es()&&!g.FZ("delete_gcf_config_db")?(Q.S=!0,yu8(Q)):(MyL(Q),Cqa(Q)));return g.FZ("delete_gcf_config_db")?g.Y(H,vcZ(),0):H.bT(0)})}; +qR=function(){var Q;return(Q=Xd())!=null?Q:g.ey("RAW_HOT_CONFIG_GROUP")}; +Ecp=function(Q){var z,H,f,b,L,u;return g.B(function(X){switch(X.Z){case 1:if(Q.B)return X.return(Xd());if(!Q.S)return z=g.F8("getHotConfig IDB not initialized"),H2(z),X.return(Promise.reject(z));H=RE();f=g.ey("TIME_CREATED_MS");if(!H){b=g.F8("getHotConfig token error");H2(b);X.bT(2);break}return g.Y(X,X5a(H),3);case 3:if((L=X.B)&&L.timestamp>f)return Lc(Q,L.config),Q.uU(L.hashData),X.return(Xd());case 2:Cqa(Q);if(!(H&&Q.B&&Q.hotHashData)){X.bT(4);break}return g.Y(X,LkJ(Q.B,Q.hotHashData,H,f),4);case 4:return Q.B? +X.return(Xd()):(u=new g.kQ("Config not available in ytConfig"),H2(u),X.return(Promise.reject(u)))}})}; +nc9=function(Q){var z,H,f,b,L,u;return g.B(function(X){switch(X.Z){case 1:if(Q.Z)return X.return(Si());if(!Q.S)return z=g.F8("getColdConfig IDB not initialized"),H2(z),X.return(Promise.reject(z));H=RE();f=g.ey("TIME_CREATED_MS");if(!H){b=g.F8("getColdConfig");H2(b);X.bT(2);break}return g.Y(X,S9u(H),3);case 3:if((L=X.B)&&L.timestamp>f)return uS(Q,L.config),p5A(Q,L.configData),vU(Q,L.hashData),X.return(Si());case 2:MyL(Q);if(!(H&&Q.Z&&Q.coldHashData&&Q.configData)){X.bT(4);break}return g.Y(X,uyk(Q.Z, +Q.coldHashData,Q.configData,H,f),4);case 4:return Q.Z?X.return(Si()):(u=new g.kQ("Config not available in ytConfig"),H2(u),X.return(Promise.reject(u)))}})}; +yu8=function(Q){if(!Q.B||!Q.Z){if(!RE()){var z=g.F8("scheduleGetConfigs");H2(z)}Q.D||(Q.D=g.DR.pE(function(){return g.B(function(H){switch(H.Z){case 1:return g.jY(H,2),g.Y(H,Ecp(Q),4);case 4:g.xv(H,3);break;case 2:g.OA(H);case 3:return g.jY(H,5),g.Y(H,nc9(Q),7);case 7:g.xv(H,6);break;case 5:g.OA(H);case 6:Q.D&&(Q.D=0),g.$v(H)}})},100))}}; +gcn=function(Q,z,H){var f,b,L;return g.B(function(u){switch(u.Z){case 1:if(!g.FZ("start_client_gcf")){u.bT(0);break}H&&Lc(Q,H);Q.uU(z);f=RE();if(!f){u.bT(3);break}if(H){u.bT(4);break}return g.Y(u,X5a(f),5);case 5:b=u.B,H=(L=b)==null?void 0:L.config;case 4:return g.Y(u,LkJ(H,z,f),3);case 3:if(H)for(var X=H,v=g.n(Q.j.Z),y=v.next();!y.done;y=v.next())y=y.value,y(X);g.$v(u)}})}; +ZTY=function(Q,z,H){var f,b,L,u;return g.B(function(X){if(X.Z==1){if(!g.FZ("start_client_gcf"))return X.bT(0);vU(Q,z);return(f=RE())?H?X.bT(4):g.Y(X,S9u(f),5):X.bT(0)}X.Z!=4&&(b=X.B,H=(L=b)==null?void 0:L.config);if(!H)return X.bT(0);u=H.configData;return g.Y(X,uyk(H,z,u,f),0)})}; +G5a=function(){var Q=q96(),z=(0,g.IE)()-Q.L;if(!(Q.L!==0&&z0&&(z.request={internalExperimentFlags:H});jfA(Q,void 0,z);Fk9(void 0,z);xU9(void 0,z);OTu(Q,void 0,z);ocY(void 0,z);g.FZ("start_client_gcf")&&JuL(void 0,z);g.ey("DELEGATED_SESSION_ID")&& +!g.FZ("pageid_as_header_web")&&(z.user={onBehalfOfUser:g.ey("DELEGATED_SESSION_ID")});!g.FZ("fill_delegate_context_in_gel_killswitch")&&(Q=g.ey("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(z.user=Object.assign({},z.user,{serializedDelegationContext:Q}));Q=g.ey("INNERTUBE_CONTEXT");var f;if(g.FZ("enable_persistent_device_token")&&(Q==null?0:(f=Q.client)==null?0:f.rolloutToken)){var b;z.client.rolloutToken=Q==null?void 0:(b=Q.client)==null?void 0:b.rolloutToken}f=Object;b=f.assign;Q=z.client; +H={};for(var L=g.n(Object.entries(L1(g.ey("DEVICE","")))),u=L.next();!u.done;u=L.next()){var X=g.n(u.value);u=X.next().value;X=X.next().value;u==="cbrand"?H.deviceMake=X:u==="cmodel"?H.deviceModel=X:u==="cbr"?H.browserName=X:u==="cbrver"?H.browserVersion=X:u==="cos"?H.osName=X:u==="cosver"?H.osVersion=X:u==="cplatform"&&(H.platform=X)}z.client=b.call(f,Q,H);return z}; +jfA=function(Q,z,H){Q=Q.lO;if(Q==="WEB"||Q==="MWEB"||Q===1||Q===2)if(z){H=XP(z,Yc,96)||new Yc;var f=ih();f=Object.keys(Nw9).indexOf(f);f=f===-1?null:f;f!==null&&GH(H,3,f);vq(z,Yc,96,H)}else H&&(H.client.mainAppWebInfo=(f=H.client.mainAppWebInfo)!=null?f:{},H.client.mainAppWebInfo.webDisplayMode=ih())}; +Fk9=function(Q,z){var H=g.Kn("yt.embedded_player.embed_url");H&&(Q?(z=XP(Q,af,7)||new af,gq(z,4,H),vq(Q,af,7,z)):z&&(z.thirdParty={embedUrl:H}))}; +xU9=function(Q,z){var H;if(g.FZ("web_log_memory_total_kbytes")&&((H=g.W_.navigator)==null?0:H.deviceMemory)){var f;H=(f=g.W_.navigator)==null?void 0:f.deviceMemory;Q?Wo(Q,95,Gi(H*1E6)):z&&(z.client.memoryTotalKbytes=""+H*1E6)}}; +OTu=function(Q,z,H){if(Q.appInstallData)if(z){var f;H=(f=XP(z,Au,62))!=null?f:new Au;gq(H,6,Q.appInstallData);vq(z,Au,62,H)}else H&&(H.client.configInfo=H.client.configInfo||{},H.client.configInfo.appInstallData=Q.appInstallData)}; +ocY=function(Q,z){var H=qFk();H&&(Q?GH(Q,61,IVA[H]):z&&(z.client.connectionType=H));g.FZ("web_log_effective_connection_type")&&(H=Cnk())&&(Q?GH(Q,94,AuZ[H]):z&&(z.client.effectiveConnectionType=H))}; +Y9Z=function(Q,z,H){H=H===void 0?{}:H;var f={};g.ey("EOM_VISITOR_DATA")?f={"X-Goog-EOM-Visitor-Id":g.ey("EOM_VISITOR_DATA")}:f={"X-Goog-Visitor-Id":H.visitorData||g.ey("VISITOR_DATA","")};if(z&&z.includes("www.youtube-nocookie.com"))return f;z=H.Bx||g.ey("AUTHORIZATION");z||(Q?z="Bearer "+g.Kn("gapi.auth.getToken")().access_token:(Q=LgA().Kf(t$),g.FZ("pageid_as_header_web")||delete Q["X-Goog-PageId"],f=Object.assign({},f,Q)));z&&(f.Authorization=z);return f}; +JuL=function(Q,z){var H=G5a();if(H){var f=H.coldConfigData,b=H.coldHashData;H=H.hotHashData;if(Q){var L;z=(L=XP(Q,Au,62))!=null?L:new Au;f=gq(z,1,f);gq(f,3,b).uU(H);vq(Q,Au,62,z)}else z&&(z.client.configInfo=z.client.configInfo||{},f&&(z.client.configInfo.coldConfigData=f),b&&(z.client.configInfo.coldHashData=b),H&&(z.client.configInfo.hotHashData=H))}}; +E5=function(Q,z){this.version=Q;this.args=z}; +pc=function(Q,z){this.topic=Q;this.Z=z}; +g2=function(Q,z){var H=nc();H&&H.publish.call(H,Q.toString(),Q,z)}; +BwJ=function(Q){var z=ruk,H=nc();if(!H)return 0;var f=H.subscribe(z.toString(),function(b,L){var u=g.Kn("ytPubsub2Pubsub2SkipSubKey");u&&u==f||(u=function(){if(Zg[f])try{if(L&&z instanceof pc&&z!=b)try{var X=z.Z,v=L;if(!v.args||!v.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!X.n$){var y=new X;X.n$=y.version}var q=X.n$}catch(M){}if(!q||v.version!=q)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{L=Reflect.construct(X, +g.z7(v.args))}catch(M){throw M.message="yt.pubsub2.Data.deserialize(): "+M.message,M;}}catch(M){throw M.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+z.toString()+": "+M.message,M;}Q.call(window,L)}catch(M){g.QC(M)}},sfv[z.toString()]?g.ff()?g.DR.pE(u):g.gR(u,0):u())}); +Zg[f]=!0;GK[z.toString()]||(GK[z.toString()]=[]);GK[z.toString()].push(f);return f}; +UUu=function(){var Q=Pqa,z=BwJ(function(H){Q.apply(void 0,arguments);aVp(z)}); +return z}; +aVp=function(Q){var z=nc();z&&(typeof Q==="number"&&(Q=[Q]),g.MI(Q,function(H){z.unsubscribeByKey(H);delete Zg[H]}))}; +nc=function(){return g.Kn("ytPubsub2Pubsub2Instance")}; +$C=function(Q,z,H){H=H===void 0?{sampleRate:.1}:H;Math.random()Kk8||u=w5Z&&(aW++,g.FZ("abandon_compression_after_N_slow_zips")?PU===g.x7("compression_disable_point")&&aW>k5_&&(r2=!1):r2=!1);Twk(z);f.headers||(f.headers={});f.headers["Content-Encoding"]="gzip";f.postBody=Q;f.postParams=void 0;b(H,f)}; +e$L=function(Q){var z=z===void 0?!1:z;var H=H===void 0?!1:H;var f=(0,g.IE)(),b={startTime:f,ticks:{},infos:{}},L=z?g.Kn("yt.logging.gzipForFetch",!1):!0;if(r2&&L){if(!Q.body)return Q;try{var u=H?Q.body:typeof Q.body==="string"?Q.body:JSON.stringify(Q.body);L=u;if(!H&&typeof u==="string"){var X=DU8(u);if(X!=null&&(X>Kk8||X=w5Z)if(aW++,g.FZ("abandon_compression_after_N_slow_zips")||g.FZ("abandon_compression_after_N_slow_zips_lr")){z=aW/PU;var y=k5_/g.x7("compression_disable_point");PU>0&&PU%g.x7("compression_disable_point")===0&&z>=y&&(r2=!1)}else r2=!1;Twk(b)}}Q.headers=Object.assign({},{"Content-Encoding":"gzip"},Q.headers||{});Q.body=L;return Q}catch(q){return H2(q),Q}}else return Q}; +DU8=function(Q){try{return(new Blob(Q.split(""))).size}catch(z){return H2(z),null}}; +Twk=function(Q){g.FZ("gel_compression_csi_killswitch")||!g.FZ("log_gel_compression_latency")&&!g.FZ("log_gel_compression_latency_lr")||$C("gel_compression",Q,{sampleRate:.1})}; +cU=function(Q){var z=this;this.eg=this.Z=!1;this.potentialEsfErrorCounter=this.B=0;this.handleError=function(){}; +this.jC=function(){}; +this.now=Date.now;this.WX=!1;this.Po={stT:function(q){z.Iy=q}, +eVm:function(){z.I2()}, +OI:function(){z.oe()}, +Or:function(q){return g.B(function(M){return g.Y(M,z.Or(q),0)})}, +xg:function(q,M){return z.xg(q,M)}, +a7:function(){z.a7()}}; +var H;this.Zc=(H=Q.Zc)!=null?H:100;var f;this.q_=(f=Q.q_)!=null?f:1;var b;this.gL=(b=Q.gL)!=null?b:2592E6;var L;this.Nb=(L=Q.Nb)!=null?L:12E4;var u;this.BD=(u=Q.BD)!=null?u:5E3;var X;this.Iy=(X=Q.Iy)!=null?X:void 0;this.YO=!!Q.YO;var v;this.qa=(v=Q.qa)!=null?v:.1;var y;this.QC=(y=Q.QC)!=null?y:10;Q.handleError&&(this.handleError=Q.handleError);Q.jC&&(this.jC=Q.jC);Q.WX&&(this.WX=Q.WX);Q.eg&&(this.eg=Q.eg);this.Nc=Q.Nc;this.eT=Q.eT;this.XR=Q.XR;this.KA=Q.KA;this.sendFn=Q.sendFn;this.l6=Q.l6;this.Sk= +Q.Sk;U5(this)&&(!this.Nc||this.Nc("networkless_logging"))&&lVA(this)}; +lVA=function(Q){U5(Q)&&!Q.WX&&(Q.Z=!0,Q.YO&&Math.random()<=Q.qa&&Q.XR.xD(Q.Iy),Q.a7(),Q.KA.yP()&&Q.I2(),Q.KA.listen(Q.l6,Q.I2.bind(Q)),Q.KA.listen(Q.Sk,Q.oe.bind(Q)))}; +zz8=function(Q,z){if(!U5(Q))throw Error("IndexedDB is not supported: updateRequestHandlers");var H=z.options.onError?z.options.onError:function(){}; +z.options.onError=function(b,L){var u,X,v,y;return g.B(function(q){switch(q.Z){case 1:u=R$J(L);(X=Qna(L))&&Q.Nc&&Q.Nc("web_enable_error_204")&&Q.handleError(Error("Request failed due to compression"),z.url,L);if(!(Q.Nc&&Q.Nc("nwl_consider_error_code")&&u||Q.Nc&&!Q.Nc("nwl_consider_error_code")&&Q.potentialEsfErrorCounter<=Q.QC)){q.bT(2);break}if(!Q.KA.Kj){q.bT(3);break}return g.Y(q,Q.KA.Kj(),3);case 3:if(Q.KA.yP()){q.bT(2);break}H(b,L);if(!Q.Nc||!Q.Nc("nwl_consider_error_code")||((v=z)==null?void 0: +v.id)===void 0){q.bT(6);break}return g.Y(q,Q.XR.ZI(z.id,Q.Iy,!1),6);case 6:return q.return();case 2:if(Q.Nc&&Q.Nc("nwl_consider_error_code")&&!u&&Q.potentialEsfErrorCounter>Q.QC)return q.return();Q.potentialEsfErrorCounter++;if(((y=z)==null?void 0:y.id)===void 0){q.bT(8);break}return z.sendCount=400&&Q<=599?!1:!0}; +Qna=function(Q){var z;Q=Q==null?void 0:(z=Q.error)==null?void 0:z.code;return!(Q!==400&&Q!==415)}; +H1J=function(){if(h$)return h$();var Q={};h$=g.HU("LogsDatabaseV2",{lU:(Q.LogsRequestsStore={Gj:2},Q),shared:!1,upgrade:function(z,H,f){H(2)&&g.Yw(z,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});H(3);H(5)&&(f=f.objectStore("LogsRequestsStore"),f.Z.indexNames.contains("newRequest")&&f.Z.deleteIndex("newRequest"),g.Ue(f,"newRequestV2",["status","interface","timestamp"]));H(7)&&rG(z,"sapisid");H(9)&&rG(z,"SWHealthLog")}, +version:9});return h$()}; +WU=function(Q){return g.dG(H1J(),Q)}; +b1u=function(Q,z){var H,f,b,L;return g.B(function(u){if(u.Z==1)return H={startTime:(0,g.IE)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.Y(u,WU(z),2);if(u.Z!=3)return f=u.B,b=Object.assign({},Q,{options:JSON.parse(JSON.stringify(Q.options)),interface:g.ey("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.Y(u,g.PH(f,"LogsRequestsStore",b),3);L=u.B;H.ticks.tc=(0,g.IE)();fKk(H);return u.return(L)})}; +LWv=function(Q,z){var H,f,b,L,u,X,v,y;return g.B(function(q){if(q.Z==1)return H={startTime:(0,g.IE)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.Y(q,WU(z),2);if(q.Z!=3)return f=q.B,b=g.ey("INNERTUBE_CONTEXT_CLIENT_NAME",0),L=[Q,b,0],u=[Q,b,(0,g.IE)()],X=IDBKeyRange.bound(L,u),v="prev",g.FZ("use_fifo_for_networkless")&&(v="next"),y=void 0,g.Y(q,g.se(f,["LogsRequestsStore"],{mode:"readwrite",VE:!0},function(M){return g.WH(M.objectStore("LogsRequestsStore").index("newRequestV2"), +{query:X,direction:v},function(C){C.getValue()&&(y=C.getValue(),Q==="NEW"&&(y.status="QUEUED",C.update(y)))})}),3); +H.ticks.tc=(0,g.IE)();fKk(H);return q.return(y)})}; +uZu=function(Q,z){var H;return g.B(function(f){if(f.Z==1)return g.Y(f,WU(z),2);H=f.B;return f.return(g.se(H,["LogsRequestsStore"],{mode:"readwrite",VE:!0},function(b){var L=b.objectStore("LogsRequestsStore");return L.get(Q).then(function(u){if(u)return u.status="QUEUED",g.BH(L,u).then(function(){return u})})}))})}; +SMZ=function(Q,z,H,f){H=H===void 0?!0:H;var b;return g.B(function(L){if(L.Z==1)return g.Y(L,WU(z),2);b=L.B;return L.return(g.se(b,["LogsRequestsStore"],{mode:"readwrite",VE:!0},function(u){var X=u.objectStore("LogsRequestsStore");return X.get(Q).then(function(v){return v?(v.status="NEW",H&&(v.sendCount+=1),f!==void 0&&(v.options.compress=f),g.BH(X,v).then(function(){return v})):g.Oe.resolve(void 0)})}))})}; +X2c=function(Q,z){var H;return g.B(function(f){if(f.Z==1)return g.Y(f,WU(z),2);H=f.B;return f.return(H.delete("LogsRequestsStore",Q))})}; +v7Y=function(Q){var z,H;return g.B(function(f){if(f.Z==1)return g.Y(f,WU(Q),2);z=f.B;H=(0,g.IE)()-2592E6;return g.Y(f,g.se(z,["LogsRequestsStore"],{mode:"readwrite",VE:!0},function(b){return g.cH(b.objectStore("LogsRequestsStore"),{},function(L){if(L.getValue().timestamp<=H)return L.delete().then(function(){return g.i0(L)})})}),0)})}; +yF_=function(){g.B(function(Q){return g.Y(Q,z$Z("LogsDatabaseV2"),0)})}; +fKk=function(Q){g.FZ("nwl_csi_killswitch")||$C("networkless_performance",Q,{sampleRate:1})}; +MTL=function(Q){return g.dG(qMp(),Q)}; +CvL=function(Q){var z,H;g.B(function(f){if(f.Z==1)return g.Y(f,MTL(Q),2);z=f.B;H=(0,g.IE)()-2592E6;return g.Y(f,g.se(z,["SWHealthLog"],{mode:"readwrite",VE:!0},function(b){return g.cH(b.objectStore("SWHealthLog"),{},function(L){if(L.getValue().timestamp<=H)return L.delete().then(function(){return g.i0(L)})})}),0)})}; +tTA=function(Q){var z;return g.B(function(H){if(H.Z==1)return g.Y(H,MTL(Q),2);z=H.B;return g.Y(H,z.clear("SWHealthLog"),0)})}; +g.Dg=function(Q,z,H,f,b,L,u){b=b===void 0?"":b;L=L===void 0?!1:L;u=u===void 0?!1:u;if(Q)if(H&&!g.mW())H2(new g.kQ("Legacy referrer-scrubbed ping detected")),Q&&E7J(Q,void 0,{scrubReferrer:!0});else if(b)JF(Q,z,"POST",b,f);else if(g.ey("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||f||u)JF(Q,z,"GET","",f,void 0,L,u);else{b:{try{var X=new Rl8({url:Q});if(X.S?typeof X.L!=="string"||X.L.length===0?0:{version:3,uA:X.L,RA:JZ(X.Z,"act=1","ri=1",Q36(X))}:X.j&&{version:4,uA:JZ(X.Z,"dct=1","suid="+X.D,""),RA:JZ(X.Z, +"act=1","ri=1","suid="+X.D)}){var v=aR(g.c4(5,Q));var y=!(!v||!v.endsWith("/aclk")||we(Q,"ri")!=="1");break b}}catch(q){}y=!1}y?p29(Q)?(z&&z(),H=!0):H=!1:H=!1;H||E7J(Q,z)}}; +p29=function(Q,z){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(Q,z===void 0?"":z))return!0}catch(H){}return!1}; +E7J=function(Q,z,H){H=H===void 0?{}:H;var f=new Image,b=""+n7Z++;Kc[b]=f;f.onload=f.onerror=function(){z&&Kc[b]&&z();delete Kc[b]}; +H.scrubReferrer&&(f.referrerPolicy="no-referrer");f.src=Q}; +g7L=function(Q){var z;return((z=document.featurePolicy)==null?0:z.allowedFeatures().includes("attribution-reporting"))?Q+"&nis=6":Q+"&nis=5"}; +d2=function(){VH||(VH=new Lf("yt.offline"));return VH}; +Z19=function(Q){if(g.FZ("offline_error_handling")){var z=d2().get("errors",!0)||{};z[Q.message]={name:Q.name,stack:Q.stack};Q.level&&(z[Q.message].level=Q.level);d2().set("errors",z,2592E3,!0)}}; +mu=function(){this.Z=new Map;this.B=!1}; +w2=function(){if(!mu.instance){var Q=g.Kn("yt.networkRequestMonitor.instance")||new mu;g.D6("yt.networkRequestMonitor.instance",Q);mu.instance=Q}return mu.instance}; +kC=function(){g.zM.call(this);var Q=this;this.B=!1;this.Z=AxY();this.Z.listen("networkstatus-online",function(){if(Q.B&&g.FZ("offline_error_handling")){var z=d2().get("errors",!0);if(z){for(var H in z)if(z[H]){var f=new g.kQ(H,"sent via offline_errors");f.name=z[H].name;f.stack=z[H].stack;f.level=z[H].level;g.QC(f)}d2().set("errors",{},2592E3,!0)}}})}; +Gr6=function(){if(!kC.instance){var Q=g.Kn("yt.networkStatusManager.instance")||new kC;g.D6("yt.networkStatusManager.instance",Q);kC.instance=Q}return kC.instance}; +g.TK=function(Q){Q=Q===void 0?{}:Q;g.zM.call(this);var z=this;this.Z=this.D=0;this.B=Gr6();var H=g.Kn("yt.networkStatusManager.instance.listen").bind(this.B);H&&(Q.rateLimit?(this.rateLimit=Q.rateLimit,H("networkstatus-online",function(){$nu(z,"publicytnetworkstatus-online")}),H("networkstatus-offline",function(){$nu(z,"publicytnetworkstatus-offline")})):(H("networkstatus-online",function(){z.dispatchEvent("publicytnetworkstatus-online")}),H("networkstatus-offline",function(){z.dispatchEvent("publicytnetworkstatus-offline")})))}; +$nu=function(Q,z){Q.rateLimit?Q.Z?(g.DR.xF(Q.D),Q.D=g.DR.pE(function(){Q.L!==z&&(Q.dispatchEvent(z),Q.L=z,Q.Z=(0,g.IE)())},Q.rateLimit-((0,g.IE)()-Q.Z))):(Q.dispatchEvent(z),Q.L=z,Q.Z=(0,g.IE)()):Q.dispatchEvent(z)}; +lS=function(){var Q=cU.call;ei||(ei=new g.TK({Wr$:!0,oR3:!0}));Q.call(cU,this,{XR:{xD:v7Y,IW:X2c,uQ:LWv,sih:uZu,ZI:SMZ,set:b1u},KA:ei,handleError:function(z,H,f){var b,L=f==null?void 0:(b=f.error)==null?void 0:b.code;if(L===400||L===415){var u;H2(new g.kQ(z.message,H,f==null?void 0:(u=f.error)==null?void 0:u.code),void 0,void 0,void 0,!0)}else g.QC(z)}, +jC:H2,sendFn:jnc,now:g.IE,PH:Z19,eT:g.HH(),l6:"publicytnetworkstatus-online",Sk:"publicytnetworkstatus-offline",YO:!0,qa:.1,QC:g.x7("potential_esf_error_limit",10),Nc:g.FZ,WX:!(g.es()&&g.id(document.location.toString())!=="www.youtube-nocookie.com")});this.L=new g.gB;g.FZ("networkless_immediately_drop_all_requests")&&yF_();HT_("LogsDatabaseV2")}; +RW=function(){var Q=g.Kn("yt.networklessRequestController.instance");Q||(Q=new lS,g.D6("yt.networklessRequestController.instance",Q),g.FZ("networkless_logging")&&g.QH().then(function(z){Q.Iy=z;lVA(Q);Q.L.resolve();Q.YO&&Math.random()<=Q.qa&&Q.Iy&&CvL(Q.Iy);g.FZ("networkless_immediately_drop_sw_health_store")&&FW_(Q)})); +return Q}; +FW_=function(Q){var z;g.B(function(H){if(!Q.Iy)throw z=g.F8("clearSWHealthLogsDb"),z;return H.return(tTA(Q.Iy).catch(function(f){Q.handleError(f)}))})}; +jnc=function(Q,z,H,f){f=f===void 0?!1:f;z=g.FZ("web_fp_via_jspb")?Object.assign({},z):z;g.FZ("use_cfr_monitor")&&xn9(Q,z);if(g.FZ("use_request_time_ms_header"))z.headers&&yC(Q)&&(z.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.IE)())));else{var b;if((b=z.postParams)==null?0:b.requestTimeMs)z.postParams.requestTimeMs=Math.round((0,g.IE)())}H&&Object.keys(z).length===0?g.Dg(Q):z.compress?z.postBody?(typeof z.postBody!=="string"&&(z.postBody=JSON.stringify(z.postBody)),BU(Q,z.postBody, +z,g.Nn,f)):BU(Q,JSON.stringify(z.postParams),z,In,f):g.Nn(Q,z)}; +Q7=function(Q,z){g.FZ("use_event_time_ms_header")&&yC(Q)&&(z.headers||(z.headers={}),z.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.IE)())));return z}; +xn9=function(Q,z){var H=z.onError?z.onError:function(){}; +z.onError=function(b,L){w2().requestComplete(Q,!1);H(b,L)}; +var f=z.onSuccess?z.onSuccess:function(){}; +z.onSuccess=function(b,L){w2().requestComplete(Q,!0);f(b,L)}}; +g.zw=function(Q){this.config_=null;Q?this.config_=Q:$Up()&&(this.config_=g.MR())}; +g.Hb=function(Q,z,H,f){function b(y){try{if((y===void 0?0:y)&&f.retry&&!f.networklessOptions.bypassNetworkless)L.method="POST",f.networklessOptions.writeThenSend?RW().writeThenSend(v,L):RW().sendAndWrite(v,L);else if(f.compress){var q=!f.networklessOptions.writeThenSend;if(L.postBody){var M=L.postBody;typeof M!=="string"&&(M=JSON.stringify(L.postBody));BU(v,M,L,g.Nn,q)}else BU(v,JSON.stringify(L.postParams),L,In,q)}else g.FZ("web_all_payloads_via_jspb")?g.Nn(v,L):In(v,L)}catch(C){if(C.name==="InvalidAccessError")H2(Error("An extension is blocking network request.")); +else throw C;}} +!g.ey("VISITOR_DATA")&&z!=="visitor_id"&&Math.random()<.01&&H2(new g.kQ("Missing VISITOR_DATA when sending innertube request.",z,H,f));if(!Q.isReady())throw Q=new g.kQ("innertube xhrclient not ready",z,H,f),g.QC(Q),Q;var L={headers:f.headers||{},method:"POST",postParams:H,postBody:f.postBody,postBodyFormat:f.postBodyFormat||"JSON",onTimeout:function(){f.onTimeout()}, +onFetchTimeout:f.onTimeout,onSuccess:function(y,q){if(f.onSuccess)f.onSuccess(q)}, +onFetchSuccess:function(y){if(f.onSuccess)f.onSuccess(y)}, +onError:function(y,q){if(f.onError)f.onError(q)}, +onFetchError:function(y){if(f.onError)f.onError(y)}, +timeout:f.timeout,withCredentials:!0,compress:f.compress};L.headers["Content-Type"]||(L.headers["Content-Type"]="application/json");H="";var u=Q.config_.Ut;u&&(H=u);u=Q.config_.gB||!1;var X=Y9Z(u,H,f);Object.assign(L.headers,X);L.headers.Authorization&&!H&&u&&(L.headers["x-origin"]=window.location.origin);var v=XZ(""+H+("/youtubei/"+Q.config_.innertubeApiVersion+"/"+z),{alt:"json"});g.Kn("ytNetworklessLoggingInitializationOptions")&&O18.isNwlInitialized?wO_().then(function(y){b(y)}):b(!1)}; +g.Sv=function(Q,z,H){var f=g.ft();if(f&&z){var b=f.subscribe(Q,function(){function L(){b8[b]&&z.apply&&typeof z.apply=="function"&&z.apply(H||window,u)} +var u=arguments;try{g.Lt[Q]?L():g.gR(L,0)}catch(X){g.QC(X)}},H); +b8[b]=!0;u8[Q]||(u8[Q]=[]);u8[Q].push(b);return b}return 0}; +o7a=function(Q){var z=g.Sv("LOGGED_IN",function(H){Q.apply(void 0,arguments);g.XN(z)})}; +g.XN=function(Q){var z=g.ft();z&&(typeof Q==="number"?Q=[Q]:typeof Q==="string"&&(Q=[parseInt(Q,10)]),g.MI(Q,function(H){z.unsubscribeByKey(H);delete b8[H]}))}; +g.vb=function(Q,z){var H=g.ft();return H?H.publish.apply(H,arguments):!1}; +NR6=function(Q){var z=g.ft();if(z)if(z.clear(Q),Q)JF_(Q);else for(var H in u8)JF_(H)}; +g.ft=function(){return g.W_.ytPubsubPubsubInstance}; +JF_=function(Q){u8[Q]&&(Q=u8[Q],g.MI(Q,function(z){b8[z]&&delete b8[z]}),Q.length=0)}; +g.y7=function(Q,z,H){IKv(Q,z,H===void 0?null:H)}; +IKv=function(Q,z,H){H=H===void 0?null:H;var f=AF_(Q),b=document.getElementById(f),L=b&&DN6(b),u=b&&!L;L?z&&z():(z&&(L=g.Sv(f,z),z=""+g.eY(z),YML[z]=L),u||(b=rFn(Q,f,function(){DN6(b)||(WsZ(b),g.vb(f),g.gR(function(){NR6(f)},0))},H)))}; +rFn=function(Q,z,H,f){f=f===void 0?null:f;var b=g.fm("SCRIPT");b.id=z;b.onload=function(){H&&setTimeout(H,0)}; +b.onreadystatechange=function(){switch(b.readyState){case "loaded":case "complete":b.onload()}}; +f&&b.setAttribute("nonce",f);g.Vo(b,g.Ju(Q));Q=document.getElementsByTagName("head")[0]||document.body;Q.insertBefore(b,Q.firstChild);return b}; +AF_=function(Q){var z=document.createElement("a");g.BJ(z,Q);Q=z.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+z2(Q)}; +qA=function(Q,z){if(Q===z)Q=!0;else if(Array.isArray(Q)&&Array.isArray(z))Q=g.yi(Q,z,qA);else if(g.kv(Q)&&g.kv(z))a:if(g.Nz(Q).length!=g.Nz(z).length)Q=!1;else{for(var H in Q)if(!qA(Q[H],z[H])){Q=!1;break a}Q=!0}else Q=!1;return Q}; +tL=function(Q){var z=g.rc.apply(1,arguments);if(!MA(Q)||z.some(function(f){return!MA(f)}))throw Error("Only objects may be merged."); +z=g.n(z);for(var H=z.next();!H.done;H=z.next())Ct(Q,H.value)}; +Ct=function(Q,z){for(var H in z)if(MA(z[H])){if(H in Q&&!MA(Q[H]))throw Error("Cannot merge an object into a non-object.");H in Q||(Q[H]={});Ct(Q[H],z[H])}else if(Eb(z[H])){if(H in Q&&!Eb(Q[H]))throw Error("Cannot merge an array into a non-array.");H in Q||(Q[H]=[]);snJ(Q[H],z[H])}else Q[H]=z[H];return Q}; +snJ=function(Q,z){z=g.n(z);for(var H=z.next();!H.done;H=z.next())H=H.value,MA(H)?Q.push(Ct({},H)):Eb(H)?Q.push(snJ([],H)):Q.push(H);return Q}; +MA=function(Q){return typeof Q==="object"&&!Array.isArray(Q)}; +Eb=function(Q){return typeof Q==="object"&&Array.isArray(Q)}; +pt=function(Q){g.h.call(this);this.B=Q}; +nt=function(Q){pt.call(this,!0);this.Z=Q}; +g6=function(Q,z){g.h.call(this);var H=this;this.L=[];this.Y=!1;this.B=0;this.S=this.j=this.D=!1;this.Ze=null;var f=(0,g.RJ)(Q,z);this.Z=new g.lp(function(){return f(H.Ze)},300); +g.W(this,this.Z);this.U=this.N=Infinity}; +BRk=function(Q,z){if(!z)return!1;for(var H=0;H-1)throw Error("Deps cycle for: "+z);if(Q.B.has(z))return Q.B.get(z);if(!Q.Z.has(z)){if(f)return;throw Error("No provider for: "+z);}f=Q.Z.get(z);H.push(z);if(f.s1!==void 0)var b=f.s1;else if(f.DOc)b=f[sb]?cF_(Q,f[sb],H):[],b=f.DOc.apply(f,g.F(b));else if(f.If){b=f.If;var L=b[sb]?cF_(Q,b[sb],H):[];b=new (Function.prototype.bind.apply(b,[null].concat(g.F(L))))}else throw Error("Could not resolve providers for: "+z);H.pop();f.tZ5||Q.B.set(z,b); +return b}; +cF_=function(Q,z,H){return z?z.map(function(f){return f instanceof Yk?Bb(Q,f.key,H,!0):Bb(Q,f,H)}):[]}; +aw=function(){Pb||(Pb=new Una);return Pb}; +cb=function(){var Q,z;return"h5vcc"in Ub&&((Q=Ub.h5vcc.traceEvent)==null?0:Q.traceBegin)&&((z=Ub.h5vcc.traceEvent)==null?0:z.traceEnd)?1:"performance"in Ub&&Ub.performance.mark&&Ub.performance.measure?2:0}; +i8=function(Q){var z=cb();switch(z){case 1:Ub.h5vcc.traceEvent.traceBegin("YTLR",Q);break;case 2:Ub.performance.mark(Q+"-start");break;case 0:break;default:LS(z,"unknown trace type")}}; +i18=function(Q){var z=cb();switch(z){case 1:Ub.h5vcc.traceEvent.traceEnd("YTLR",Q);break;case 2:z=Q+"-start";var H=Q+"-end";Ub.performance.mark(H);Ub.performance.measure(Q,z,H);break;case 0:break;default:LS(z,"unknown trace type")}}; +hz9=function(Q){var z,H;(H=(z=window).onerror)==null||H.call(z,Q.message,"",0,0,Q)}; +WWc=function(Q){var z=this;var H=H===void 0?0:H;var f=f===void 0?g.HH():f;this.L=H;this.scheduler=f;this.B=new g.gB;this.Z=Q;for(Q={Hk:0};Q.Hk=1E3?b():f>=Q?ya||(ya=qX(function(){b();ya=void 0},0)):L-X>=10&&(L3L(z,H.tier),u.D=L)}; +Q4c=function(Q,z){if(Q.endpoint==="log_event"){g.FZ("more_accurate_gel_parser")&&z6().storePayload({isJspb:!1},Q.payload);f2(Q);var H=bU(Q),f=new Map;f.set(H,[Q.payload]);var b=ezA(Q.payload)||"";z&&(XG=new z);return new g.ge(function(L,u){XG&&XG.isReady()?uXu(f,XG,L,u,{bypassNetworkless:!0},!0,uU(b)):L()})}}; +fQa=function(Q,z,H){if(z.endpoint==="log_event"){f2(void 0,z);var f=bU(z,!0),b=new Map;b.set(f,[Yt(z.payload)]);H&&(XG=new H);return new g.ge(function(L){XG&&XG.isReady()?SPp(b,XG,L,{bypassNetworkless:!0},!0,uU(Q)):L()})}}; +bU=function(Q,z){var H="";if(Q.dangerousLogToVisitorSession)H="visitorOnlyApprovedKey";else if(Q.cttAuthInfo){if(z===void 0?0:z){z=Q.cttAuthInfo.token;H=Q.cttAuthInfo;var f=new ww;H.videoId?f.setVideoId(H.videoId):H.playlistId&&Hq(f,2,MX,Fc(H.playlistId));C2[z]=f}else z=Q.cttAuthInfo,H={},z.videoId?H.videoId=z.videoId:z.playlistId&&(H.playlistId=z.playlistId),tl[Q.cttAuthInfo.token]=H;H=Q.cttAuthInfo.token}return H}; +SZ=function(Q,z,H){Q=Q===void 0?{}:Q;z=z===void 0?!1:z;new g.ge(function(f,b){var L=vT(z,H),u=L.L;L.L=!1;EX(L.B);EX(L.Z);L.Z=0;XG&&XG.isReady()?H===void 0&&g.FZ("enable_web_tiered_gel")?XwY(f,b,Q,z,300,u):XwY(f,b,Q,z,H,u):(L3L(z,H),f())})}; +XwY=function(Q,z,H,f,b,L){var u=XG;H=H===void 0?{}:H;f=f===void 0?!1:f;b=b===void 0?200:b;L=L===void 0?!1:L;var X=new Map,v=new Map,y={isJspb:f,cttAuthInfo:void 0,tier:b},q={isJspb:f,cttAuthInfo:void 0};if(f){z=g.n(Object.keys(L2));for(b=z.next();!b.done;b=z.next())b=b.value,v=g.FZ("enable_web_tiered_gel")?z6().smartExtractMatchingEntries({keys:[y,q],sizeLimit:1E3}):z6().extractMatchingEntries({isJspb:!0,cttAuthInfo:b}),v.length>0&&X.set(b,v),(g.FZ("web_fp_via_jspb_and_json")&&H.writeThenSend||!g.FZ("web_fp_via_jspb_and_json"))&& +delete L2[b];SPp(X,u,Q,H,!1,L)}else{X=g.n(Object.keys(L2));for(y=X.next();!y.done;y=X.next())y=y.value,q=g.FZ("enable_web_tiered_gel")?z6().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:y,tier:b},{isJspb:!1,cttAuthInfo:y}],sizeLimit:1E3}):z6().extractMatchingEntries({isJspb:!1,cttAuthInfo:y}),q.length>0&&v.set(y,q),(g.FZ("web_fp_via_jspb_and_json")&&H.writeThenSend||!g.FZ("web_fp_via_jspb_and_json"))&&delete L2[y];uXu(v,u,Q,z,H,!1,L)}}; +L3L=function(Q,z){function H(){SZ({writeThenSend:!0},Q,z)} +Q=Q===void 0?!1:Q;z=z===void 0?200:z;var f=vT(Q,z),b=f===vQJ||f===yq6?5E3:qPk;g.FZ("web_gel_timeout_cap")&&!f.Z&&(b=qX(function(){H()},b),f.Z=b); +EX(f.B);b=g.ey("LOGGING_BATCH_TIMEOUT",g.x7("web_gel_debounce_ms",1E4));g.FZ("shorten_initial_gel_batch_timeout")&&p2&&(b=MsJ);b=qX(function(){g.x7("gel_min_batch_size")>0?z6().getSequenceCount({cttAuthInfo:void 0,isJspb:Q,tier:z})>=Ch6&&H():H()},b); +f.B=b}; +uXu=function(Q,z,H,f,b,L,u){b=b===void 0?{}:b;var X=Math.round((0,g.IE)()),v=Q.size,y=tsp(u);Q=g.n(Q);var q=Q.next();for(u={};!q.done;u={Kw:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,MV:void 0,QD:void 0},q=Q.next()){var M=g.n(q.value);q=M.next().value;M=M.next().value;u.batchRequest=g.aI({context:g.Cc(z.config_||g.MR())});if(!g.wc(M)&&!g.FZ("throw_err_when_logevent_malformed_killswitch")){f();break}u.batchRequest.events=M;(M=tl[q])&&EQp(u.batchRequest,q,M);delete tl[q];u.dangerousLogToVisitorSession= +q==="visitorOnlyApprovedKey";pwJ(u.batchRequest,X,u.dangerousLogToVisitorSession);nQA(b);u.MV=function(C){g.FZ("start_client_gcf")&&g.DR.pE(function(){return g.B(function(t){return g.Y(t,gQA(C),0)})}); +v--;v||H()}; +u.Kw=0;u.QD=function(C){return function(){C.Kw++;if(b.bypassNetworkless&&C.Kw===1)try{g.Hb(z,y,C.batchRequest,n2({writeThenSend:!0},C.dangerousLogToVisitorSession,C.MV,C.QD,L)),p2=!1}catch(t){g.QC(t),f()}v--;v||H()}}(u); +try{g.Hb(z,y,u.batchRequest,n2(b,u.dangerousLogToVisitorSession,u.MV,u.QD,L)),p2=!1}catch(C){g.QC(C),f()}}}; +SPp=function(Q,z,H,f,b,L){f=f===void 0?{}:f;var u=Math.round((0,g.IE)()),X={value:Q.size},v=new Map([].concat(g.F(Q)));v=g.n(v);for(var y=v.next();!y.done;y=v.next()){var q=g.n(y.value).next().value,M=Q.get(q);y=new wkn;var C=z.config_||g.MR(),t=new iq,E=new rw;gq(E,1,C.f0);gq(E,2,C.SL);GH(E,16,C.TF);gq(E,17,C.innertubeContextClientVersion);if(C.Fk){var G=C.Fk,x=new Au;G.coldConfigData&&gq(x,1,G.coldConfigData);G.appInstallData&&gq(x,6,G.appInstallData);G.coldHashData&&gq(x,3,G.coldHashData);G.hotHashData&& +x.uU(G.hotHashData);vq(E,Au,62,x)}(G=g.W_.devicePixelRatio)&&G!=1&&Wo(E,65,u5(G));G=OM();G!==""&&gq(E,54,G);G=on();if(G.length>0){x=new P5;for(var J=0;J65535&&(Q=1);T5("BATCH_CLIENT_COUNTER",Q);return Q}; +EQp=function(Q,z,H){if(H.videoId)var f="VIDEO";else if(H.playlistId)f="PLAYLIST";else return;Q.credentialTransferTokenTargetId=H;Q.context=Q.context||{};Q.context.user=Q.context.user||{};Q.context.user.credentialTransferTokens=[{token:z,scope:f}]}; +f2=function(Q,z){if(!g.Kn("yt.logging.transport.enableScrapingForTest")){var H=jT("il_payload_scraping");if((H!==void 0?String(H):"")==="enable_il_payload_scraping")G6=[],g.D6("yt.logging.transport.enableScrapingForTest",!0),g.D6("yt.logging.transport.scrapedPayloadsForTesting",G6),g.D6("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.D6("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), +g.D6("yt.logging.transport.scrapeClientEvent",!0);else return}H=g.Kn("yt.logging.transport.scrapedPayloadsForTesting");var f=g.Kn("yt.logging.transport.payloadToScrape");z&&(z=z.payload,(z=g.Kn("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(z)())&&H.push(z));z=g.Kn("yt.logging.transport.scrapeClientEvent");if(f&&f.length>=1)for(var b=0;b0&&iFY(Q,z,L)}else iFY(Q,z)}; +iFY=function(Q,z,H){Q=hMk(Q);z=z?g.Ve(z):"";H=H||5;bh()&&g.c2(Q,z,H)}; +hMk=function(Q){for(var z=g.n(W3_),H=z.next();!H.done;H=z.next())Q=kr(Q,H.value);return"ST-"+z2(Q).toString(36)}; +D0c=function(Q){if(Q.name==="JavaException")return!0;Q=Q.stack;return Q.includes("chrome://")||Q.includes("chrome-extension://")||Q.includes("moz-extension://")}; +K3Y=function(){this.Qe=[];this.bU=[]}; +YG=function(){if(!Al){var Q=Al=new K3Y;Q.bU.length=0;Q.Qe.length=0;VsJ(Q,d0u)}return Al}; +VsJ=function(Q,z){z.bU&&Q.bU.push.apply(Q.bU,z.bU);z.Qe&&Q.Qe.push.apply(Q.Qe,z.Qe)}; +m0p=function(Q){function z(){return Q.charCodeAt(f++)} +var H=Q.length,f=0;do{var b=rl(z);if(b===Infinity)break;var L=b>>3;switch(b&7){case 0:b=rl(z);if(L===2)return b;break;case 1:if(L===2)return;f+=8;break;case 2:b=rl(z);if(L===2)return Q.substr(f,b);f+=b;break;case 5:if(L===2)return;f+=4;break;default:return}}while(f500));f++);f=b}else if(typeof Q==="object")for(b in Q){if(Q[b]){var L=b;var u=Q[b],X=z,v=H;L=typeof u!=="string"||L!=="clickTrackingParams"&&L!=="trackingParams"?0:(u=m0p(atob(u.replace(/-/g,"+").replace(/_/g,"/"))))?sX(L+".ve",u,X,v):0;f+=L;f+=sX(b,Q[b],z,H);if(f>500)break}}else H[z]=BT(Q),f+=H[z].length;else H[z]=BT(Q),f+=H[z].length;return f}; +sX=function(Q,z,H,f){H+="."+Q;Q=BT(z);f[H]=Q;return H.length+Q.length}; +BT=function(Q){try{return(typeof Q==="string"?Q:String(JSON.stringify(Q))).substr(0,500)}catch(z){return"unable to serialize "+typeof Q+" ("+z.message+")"}}; +y5=function(Q){g.PT(Q)}; +g.ax=function(Q){g.PT(Q,"WARNING")}; +g.PT=function(Q,z){var H=H===void 0?{}:H;H.name=g.ey("INNERTUBE_CONTEXT_CLIENT_NAME",1);H.version=g.ey("INNERTUBE_CONTEXT_CLIENT_VERSION");z=z===void 0?"ERROR":z;var f=!1;z=z===void 0?"ERROR":z;f=f===void 0?!1:f;if(Q){Q.hasOwnProperty("level")&&Q.level&&(z=Q.level);if(g.FZ("console_log_js_exceptions")){var b=[];b.push("Name: "+Q.name);b.push("Message: "+Q.message);Q.hasOwnProperty("params")&&b.push("Error Params: "+JSON.stringify(Q.params));Q.hasOwnProperty("args")&&b.push("Error args: "+JSON.stringify(Q.args)); +b.push("File name: "+Q.fileName);b.push("Stacktrace: "+Q.stack);window.console.log(b.join("\n"),Q)}if(!(kdY>=5)){b=[];for(var L=g.n(TD6),u=L.next();!u.done;u=L.next()){u=u.value;try{u()&&b.push(u())}catch(G){}}b=[].concat(g.F(eMc),g.F(b));var X=otn(Q);L=X.message||"Unknown Error";u=X.name||"UnknownError";var v=X.stack||Q.B||"Not available";if(v.startsWith(u+": "+L)){var y=v.split("\n");y.shift();v=y.join("\n")}y=X.lineNumber||"Not available";X=X.fileName||"Not available";var q=0;if(Q.hasOwnProperty("args")&& +Q.args&&Q.args.length)for(var M=0;M=500);M++);else if(Q.hasOwnProperty("params")&&Q.params){var C=Q.params;if(typeof Q.params==="object")for(M in C){if(C[M]){var t="params."+M,E=BT(C[M]);H[t]=E;q+=t.length+E.length;if(q>500)break}}else H.params=BT(C)}if(b.length)for(M=0;M=500);M++);navigator.vendor&&!H.hasOwnProperty("vendor")&&(H["device.vendor"]=navigator.vendor);H={message:L,name:u,lineNumber:y, +fileName:X,stack:v,params:H,sampleWeight:1};M=Number(Q.columnNumber);isNaN(M)||(H.lineNumber=H.lineNumber+":"+M);if(Q.level==="IGNORED")Q=0;else a:{Q=YG();M=g.n(Q.bU);for(b=M.next();!b.done;b=M.next())if(b=b.value,H.message&&H.message.match(b.DL)){Q=b.weight;break a}Q=g.n(Q.Qe);for(M=Q.next();!M.done;M=Q.next())if(M=M.value,M.callback(H)){Q=M.weight;break a}Q=1}H.sampleWeight=Q;Q=g.n(lQa);for(M=Q.next();!M.done;M=Q.next())if(M=M.value,M.mx[H.name])for(L=g.n(M.mx[H.name]),b=L.next();!b.done;b=L.next())if(u= +b.value,b=H.message.match(u.Xp)){H.params["params.error.original"]=b[0];L=u.groups;u={};for(y=0;y1E3&&g.ax(new g.kQ("IL Attach cache exceeded limit"))}X= +T6(H,z);Va.has(X)?eZ(H,z):mQ.set(X,!0)}}f=f.filter(function(q){q.csn!==z?(q.csn=z,q=!0):q=!1;return q}); +H={csn:z,parentVe:H.getAsJson(),childVes:g.NT(f,function(q){return q.getAsJson()})}; +z==="UNDEFINED_CSN"?lU("visualElementAttached",L,H):Q?jZ("visualElementAttached",H,Q,L):g.qV("visualElementAttached",H,L)}; +C0L=function(Q,z,H,f,b){Rx(H,z);f=K2({cttAuthInfo:NX(z)||void 0},z);H={csn:z,ve:H.getAsJson(),eventType:1};b&&(H.clientData=b);z==="UNDEFINED_CSN"?lU("visualElementShown",f,H):Q?jZ("visualElementShown",H,Q,f):g.qV("visualElementShown",H,f)}; +t9a=function(Q,z,H,f){var b=(f=f===void 0?!1:f)?16:8;f=K2({cttAuthInfo:NX(z)||void 0,endOfSequence:f},z);H={csn:z,ve:H.getAsJson(),eventType:b};z==="UNDEFINED_CSN"?lU("visualElementHidden",f,H):Q?jZ("visualElementHidden",H,Q,f):g.qV("visualElementHidden",H,f)}; +Ewu=function(Q,z,H,f,b){QR(Q,z,H,void 0,f,b)}; +QR=function(Q,z,H,f,b){Rx(H,z);f=f||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var L=K2({cttAuthInfo:NX(z)||void 0},z);H={csn:z,ve:H.getAsJson(),gestureType:f};b&&(H.clientData=b);z==="UNDEFINED_CSN"?lU("visualElementGestured",L,H):Q?jZ("visualElementGestured",H,Q,L):g.qV("visualElementGestured",H,L)}; +pHc=function(){var Q=xk(16);for(var z=[],H=0;H0&&H.push(g.fm("BR"));H.push(g.bT(L))}):H.push(g.bT(f))}return H}; +Ca=function(Q,z,H,f){if(H==="child"){g.uT(z);var b;f===void 0?b=void 0:b=!Array.isArray(f)||f&&typeof f.G==="string"?[f]:f;H=gwY(Q,b);H=g.n(H);for(Q=H.next();!Q.done;Q=H.next())z.appendChild(Q.value)}else H==="style"?g.M2(z,"cssText",f?f:""):f===null||f===void 0?z.removeAttribute(H):(Q=f.toString(),H==="href"&&(Q=g.I$(g.r$(Q))),z.setAttribute(H,Q))}; +g.m=function(Q){g.qt.call(this,Q);this.LH=!0;this.S=!1;this.listeners=[]}; +g.tB=function(Q){g.m.call(this,Q);this.En=new g.vf;g.W(this,this.En)}; +Ec=function(Q,z,H,f,b,L,u){u=u===void 0?null:u;g.tB.call(this,z);this.api=Q;this.macros={};this.componentType=H;this.Y=this.N=null;this.gh=u;this.layoutId=f;this.interactionLoggingClientData=b;this.dh=L;this.uT=null;this.Bg=new nt(this.element);g.W(this,this.Bg);this.rT=this.X(this.element,"click",this.onClick);this.De=[];this.L3=new g6(this.onClick,this);g.W(this,this.L3);this.ZJ=!1;this.f3=this.Ze=null}; +pa=function(Q,z){Q=Q===void 0?null:Q;z=z===void 0?null:z;if(Q==null)return g.ax(Error("Got null or undefined adText object")),"";var H=g.Q4(Q.text);if(!Q.isTemplated)return H;if(z==null)return g.ax(Error("Missing required parameters for a templated message")),H;Q=g.n(Object.entries(z));for(z=Q.next();!z.done;z=Q.next()){var f=g.n(z.value);z=f.next().value;f=f.next().value;H=H.replace("{"+z+"}",f)}return H}; +ZfA=function(Q){Q=Q===void 0?null:Q;return Q!=null&&(Q=Q.thumbnail,Q!=null&&Q.thumbnails!=null&&Q.thumbnails.length!=0&&Q.thumbnails[0].url!=null)?g.Q4(Q.thumbnails[0].url):""}; +GaY=function(Q){Q=Q===void 0?null:Q;return Q!=null&&(Q=Q.thumbnail,Q!=null&&Q.thumbnails!=null&&Q.thumbnails.length!=0&&Q.thumbnails[0].width!=null&&Q.thumbnails[0].height!=null)?new g.nC(Q.thumbnails[0].width||0,Q.thumbnails[0].height||0):new g.nC(0,0)}; +g.na=function(Q){if(Q.simpleText)return Q.simpleText;if(Q.runs){var z=[];Q=g.n(Q.runs);for(var H=Q.next();!H.done;H=Q.next())H=H.value,H.text&&z.push(H.text);return z.join("")}return""}; +g.gs=function(Q){if(Q.simpleText)return Q=document.createTextNode(Q.simpleText),Q;var z=[];if(Q.runs)for(var H=0;H1){for(var z=[Q[0]],H=1;H0&&(this.Z=new g.lp(this.ql,z,this),g.W(this,this.Z));this.S=new g.lp(this.ql,H,this);g.W(this,this.S);this.N=U2k(this.B,b,1,f);g.W(this,this.N);this.Y=U2k(this.B,0,f,1);g.W(this,this.Y);this.D=new I4;g.W(this,this.D)}; +v6=function(Q,z,H){this.B=Q;this.isAsync=z;this.Z=H}; +bcZ=function(Q){switch(Q){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:LS(Q,"unknown result type")}}; +Lu6=function(Q,z){var H=1;Q.isTrusted===!1&&(H=0);T5("ISDSTAT",H);y_(H,"i.s_",{triggerContext:"sk",metadata:z});return H}; +ud_=function(Q,z){var H=[];z?z.isTrusted===!0?H.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):z.isTrusted===!1?H.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):H.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):H.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");y_(0,"a.s_",{metadata:Q,states:H});T5("ASDSTAT",0)}; +y_=function(Q,z,H){z=S5v[z];var f,b,L={detected:Q===0,source:""+z.B+((f=H.triggerContext)!=null?f:"")+((b=H.p7)!=null?b:""),detectionStates:H.states,durationMs:H.E$};H.metadata&&(L.contentCpn=H.metadata.contentCpn,L.adCpn=H.metadata.adCpn);g.qV("biscottiBasedDetection",L);z.Z!==void 0&&(H=Number(g.ey("CATSTAT",0)),z.Z!==void 0?(z=z.Z,Q=bcZ(Q),Q=H&~(3<0}; +np=function(Q,z,H,f,b,L){Q_.call(this,Q,{G:"div",J:"ytp-ad-skip-button-slot"},"skip-button",z,H,f,b);var u=this;this.wh=null;this.yl=!1;this.iT=L;this.j=this.api.C().experiments.Nc("enable_modern_skip_button_on_web");this.C3=!1;this.L=new g.tB({G:"span",lT:["ytp-ad-skip-button-container"]});this.j&&this.L.element.classList.add("ytp-ad-skip-button-container-detached");this.api.V("enable_ad_pod_index_autohide")&&this.L.element.classList.add("ytp-ad-skip-button-container--clean-player");g.W(this,this.L); +this.L.Gv(this.element);this.B=this.D=null;this.WI=new g.fp(this.L,500,!1,100,function(){return u.hide()}); +g.W(this,this.WI);this.jm=new XS(this.L.element,15E3,5E3,.5,.5,this.j);g.W(this,this.jm);this.hide()}; +vCZ=function(Q){Q=Q.wh&&Q.wh.adRendererCommands;return(Q&&Q.clickCommand&&g.K(Q.clickCommand,g.gU)&&g.K(Q.clickCommand,g.gU).commands||[]).some(function(z){return z.adLifecycleCommand?XUZ(z.adLifecycleCommand):!1})}; +XUZ=function(Q){return Q.action==="END_LINEAR_AD"||Q.action==="END_LINEAR_AD_PLACEMENT"}; +Zh=function(Q,z,H,f,b,L){Q_.call(this,Q,{G:"div",J:"ytp-ad-skip-ad-slot"},"skip-ad",z,H,f,b);this.wh=L;this.D=!1;this.j=0;this.L=this.B=null;this.hide()}; +y$9=function(Q,z){Q.D||(Q.D=!0,Q.B&&(z?Q.B.wh.hide():Q.B.hide()),z?(Q=Q.L,Q.WI.show(),Q.show()):Q.L.show())}; +GS=function(Q,z,H,f){Bf.call(this,Q,z,H,f,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; +$U=function(Q,z,H,f,b,L,u){L=L===void 0?!1:L;u=u===void 0?!1:u;Ec.call(this,Q,{G:"span",J:"ytp-ad-simple-ad-badge"},"simple-ad-badge",z,H,f);this.L=b;this.Z=this.Mc("ytp-ad-simple-ad-badge");(this.B=L)&&this.Z.classList.add("ytp-ad-simple-ad-badge--clean-player");u&&this.Z.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; +jh=function(Q,z,H,f,b){b=b===void 0?!1:b;Xp.call(this,"player-overlay",Q,{},z,f);this.videoAdDurationSeconds=H;this.interactionLoggingClientData=f;this.EH=b}; +FS=function(Q,z){g.vf.call(this);this.api=Q;this.durationMs=z;this.Z=null;this.Hc=new I4(this);g.W(this,this.Hc);this.B=q56;this.Hc.X(this.api,"presentingplayerstatechange",this.w6);this.Z=this.Hc.X(this.api,"onAdPlaybackProgress",this.A7)}; +xU=function(Q){g.vf.call(this);this.Z=!1;this.rS=0;this.Hc=new I4(this);g.W(this,this.Hc);this.durationMs=Q;this.hM=new g.OE(100);g.W(this,this.hM);this.Hc.X(this.hM,"tick",this.A7);this.B={seekableStart:0,seekableEnd:Q/1E3,current:0};this.start()}; +g.Ox=function(Q,z){var H=Math.abs(Math.floor(Q)),f=Math.floor(H/86400),b=Math.floor(H%86400/3600),L=Math.floor(H%3600/60);H=Math.floor(H%60);if(z){z="";f>0&&(z+=" "+f+" Days");if(f>0||b>0)z+=" "+b+" Hours";z+=" "+L+" Minutes";z+=" "+H+" Seconds";f=z.trim()}else{z="";f>0&&(z+=f+":",b<10&&(z+="0"));if(f>0||b>0)z+=b+":",L<10&&(z+="0");z+=L+":";H<10&&(z+="0");f=z+H}return Q>=0?f:"-"+f}; +g.oQ=function(Q){return(!("button"in Q)||typeof Q.button!=="number"||Q.button===0)&&!("shiftKey"in Q&&Q.shiftKey)&&!("altKey"in Q&&Q.altKey)&&!("metaKey"in Q&&Q.metaKey)&&!("ctrlKey"in Q&&Q.ctrlKey)}; +JT=function(Q,z,H,f,b,L,u){Q_.call(this,Q,{G:"span",J:u?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",z,H,f,b);this.videoAdDurationSeconds=L;this.B=null;this.api.V("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-ad-duration-remaining--clean-player-with-light-shadow");u&&this.api.C().B&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),this.api.V("clean_player_style_fix_on_web")&&(this.element.classList.add("ytp-ad-duration-remaining--mweb-light"), +kw&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios")));this.hide()}; +NZ=function(Q,z,H,f){lI.call(this,Q,z,H,f,"ytp-video-ad-top-bar-title","ad-title");Q.V("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-video-ad-top-bar-title--clean-player")}; +IQ=function(Q){this.content=Q.content;if(Q.commandRuns){Q=g.n(Q.commandRuns);for(var z=Q.next();!z.done;z=Q.next())z=z.value,this.loggingDirectives=g.K(z,Mik),z.onTap&&(this.interaction={onTap:z.onTap})}}; +AT=function(Q,z,H,f){Ec.call(this,Q,{G:"div",J:"ad-simple-attributed-string"},"ad-simple-attributed-string",z,H,f);this.hide()}; +YU=function(Q,z,H,f,b){Ec.call(this,Q,{G:"span",J:b?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",z,H,f);this.B=b;this.adBadgeText=new AT(this.api,this.layoutId,this.interactionLoggingClientData,this.dh);this.adBadgeText.Gv(this.element);g.W(this,this.adBadgeText);b?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),this.api.V("clean_player_style_fix_on_web")&&(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player-with-light-shadow"),kw&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios"))): +this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; +rU=function(Q,z,H,f,b){Ec.call(this,Q,{G:"span",J:"ytp-ad-pod-index"},"ad-pod-index",z,H,f);this.B=b;this.api.C().B&&(this.element.classList.add("ytp-ad-pod-index--mweb"),this.api.V("clean_player_style_fix_on_web")&&(this.element.classList.add("ytp-ad-pod-index--mweb-light"),kw&&this.element.classList.add("ytp-ad-pod-index--mweb-ios")));this.hide()}; +sx=function(Q,z,H,f){Ec.call(this,Q,{G:"div",J:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",z,H,f);this.hide()}; +B6=function(Q,z){this.B=Q;this.Z=z}; +P6=function(Q,z,H){if(!Q.getLength())return H!=null?H:Infinity;Q=(z-Q.B)/Q.getLength();return g.y4(Q,0,1)}; +aQ=function(Q,z,H,f){f=f===void 0?!1:f;g.tB.call(this,{G:"div",J:"ytp-ad-persistent-progress-bar-container",W:[{G:"div",J:"ytp-ad-persistent-progress-bar"}]});this.api=Q;this.B=z;this.L=H;f&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.W(this,this.B);this.progressBar=this.Mc("ytp-ad-persistent-progress-bar");this.Z=-1;this.X(Q,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; +Ux=function(Q,z,H,f,b,L){Ec.call(this,Q,{G:"div",J:"ytp-ad-player-overlay",W:[{G:"div",J:"ytp-ad-player-overlay-flyout-cta"},{G:"div",J:"ytp-ad-player-overlay-instream-info"},{G:"div",J:"ytp-ad-player-overlay-skip-or-preview"},{G:"div",J:"ytp-ad-player-overlay-progress-bar"},{G:"div",J:"ytp-ad-player-overlay-instream-user-sentiment"},{G:"div",J:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",z,H,f);this.U=L;this.j=this.Mc("ytp-ad-player-overlay-flyout-cta");this.j.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); +this.Z=this.Mc("ytp-ad-player-overlay-instream-info");this.D=null;CS9(this)&&(Q=Hx("div"),g.X9(Q,"ytp-ad-player-overlay-top-bar-gradients"),this.api.V("disable_ad_preview_for_instream_ads")&&g.X9(Q,"ytp-ad-player-overlay-top-bar-gradients--clean-player"),z=this.Z,z.parentNode&&z.parentNode.insertBefore(Q,z),(z=this.api.getVideoData(2))&&z.isListed&&z.title&&(H=new NZ(this.api,this.layoutId,this.interactionLoggingClientData,this.dh),H.Gv(Q),H.init(SE("ad-title"),{text:z.title},this.macros),g.W(this, +H)),this.D=Q);this.L=null;this.mq=this.Mc("ytp-ad-player-overlay-skip-or-preview");this.jm=this.Mc("ytp-ad-player-overlay-progress-bar");this.yl=this.Mc("ytp-ad-player-overlay-instream-user-sentiment");this.wh=this.Mc("ytp-ad-player-overlay-ad-disclosure-banner");this.B=b;g.W(this,this.B);this.hide()}; +CS9=function(Q){Q=Q.api.C();return g.c6(Q)&&Q.B}; +iA=function(Q,z,H){var f={};z&&(f.v=z);H&&(f.list=H);Q={name:Q,locale:void 0,feature:void 0};for(var b in f)Q[b]=f[b];f=g.de("/sharing_services",Q);g.Dg(f)}; +g.hT=function(Q){Q&=16777215;var z=[(Q&16711680)>>16,(Q&65280)>>8,Q&255];Q=z[0];var H=z[1];z=z[2];Q=Number(Q);H=Number(H);z=Number(z);if(Q!=(Q&255)||H!=(H&255)||z!=(z&255))throw Error('"('+Q+","+H+","+z+'") is not a valid RGB color');H=Q<<16|H<<8|z;return Q<16?"#"+(16777216|H).toString(16).slice(1):"#"+H.toString(16)}; +W6=function(Q){this.Z=new YF(Q)}; +tiZ=function(){var Q=!1;try{Q=!!window.sessionStorage.getItem("session_logininfo")}catch(z){Q=!0}return(g.ey("INNERTUBE_CLIENT_NAME")==="WEB"||g.ey("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&Q}; +Dh=function(Q){if(g.ey("LOGGED_IN",!0)&&tiZ()){var z=g.ey("VALID_SESSION_TEMPDATA_DOMAINS",[]);var H=g.id(window.location.href);H&&z.push(H);H=g.id(Q);g.TY(z,H)||!H&&$O(Q,"/")?(z=hj(Q),(z=G26(z))?(z=hMk(z),z=(z=g.iv(z)||null)?L1(z):{}):z=null):z=null;z==null&&(z={});H=z;var f=void 0;tiZ()?(f||(f=g.ey("LOGIN_INFO")),f?(H.session_logininfo=f,H=!0):H=!1):H=!1;H&&Ix(Q,z)}}; +g.ECL=function(Q){var z=z===void 0?{}:z;var H=H===void 0?"":H;var f=f===void 0?window:f;Q=g.de(Q,z);Dh(Q);H=g.r$(Q+H);f=f.location;H=sK(H);H!==void 0&&(f.href=H)}; +g.Kp=function(Q,z,H){z=z===void 0?{}:z;H=H===void 0?!1:H;var f=g.ey("EVENT_ID");f&&(z.ei||(z.ei=f));z&&Ix(Q,z);H||(Dh(Q),g.ECL(Q))}; +g.V_=function(Q,z,H,f,b){b=b===void 0?!1:b;H&&Ix(Q,H);H=g.r$(Q);var L=g.I$(H);Q!=L&&H2(Error("Unsafe window.open URL: "+Q));Q=L;z=z||z2(Q).toString(36);try{if(b){b=Q;b=g7L(b);Dh(b);g.cJ(window,b,z,"attributionsrc");return}}catch(u){g.QC(u)}Dh(Q);g.cJ(window,H,z,f)}; +pU9=function(Q){dU=Q}; +nCA=function(Q){m5=Q}; +gC8=function(Q){wU=Q}; +GKn=function(){Zcc=wU=m5=dU=null}; +jWZ=function(){var Q=Q===void 0?window.location.href:Q;if(g.FZ("kevlar_disable_theme_param"))return null;var z=aR(g.c4(5,Q));if(g.FZ("enable_dark_theme_only_on_shorts")&&z!=null&&z.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var H=g.ST(Q).theme;return $R8.get(H)||null}catch(f){}return null}; +kU=function(){this.Z={};if(this.B=xNn()){var Q=g.iv("CONSISTENCY");Q&&Fup(this,{encryptedTokenJarContents:Q})}}; +Fup=function(Q,z){if(z.encryptedTokenJarContents&&(Q.Z[z.encryptedTokenJarContents]=z,typeof z.expirationSeconds==="string")){var H=Number(z.expirationSeconds);setTimeout(function(){delete Q.Z[z.encryptedTokenJarContents]},H*1E3); +Q.B&&g.c2("CONSISTENCY",z.encryptedTokenJarContents,H,void 0,!0)}}; +eh=function(){this.B=-1;var Q=g.ey("LOCATION_PLAYABILITY_TOKEN");g.ey("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=TS(this))&&(Q=this.localStorage.get("yt-location-playability-token"));Q&&(this.locationPlayabilityToken=Q,this.Z=void 0)}; +TS=function(Q){return Q.localStorage===void 0?new Lf("yt-client-location"):Q.localStorage}; +g.lA=function(Q,z,H){z=z===void 0?!1:z;H=H===void 0?!1:H;var f=g.ey("INNERTUBE_CONTEXT");if(!f)return g.PT(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};f=g.aI(f);g.FZ("web_no_tracking_params_in_shell_killswitch")||delete f.clickTracking;f.client||(f.client={});var b=f.client;b.clientName==="MWEB"&&b.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(b.clientFormFactor=g.ey("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");b.screenWidthPoints=window.innerWidth;b.screenHeightPoints= +window.innerHeight;b.screenPixelDensity=Math.round(window.devicePixelRatio||1);b.screenDensityFloat=window.devicePixelRatio||1;b.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var L=L===void 0?!1:L;g.DQ();var u="USER_INTERFACE_THEME_LIGHT";g.KF(0,165)?u="USER_INTERFACE_THEME_DARK":g.KF(0,174)?u="USER_INTERFACE_THEME_LIGHT":!g.FZ("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& +(u="USER_INTERFACE_THEME_DARK");L=L?u:jWZ()||u;b.userInterfaceTheme=L;if(!z){if(L=qFk())b.connectionType=L;g.FZ("web_log_effective_connection_type")&&(L=Cnk())&&(f.client.effectiveConnectionType=L)}var X;if(g.FZ("web_log_memory_total_kbytes")&&((X=g.W_.navigator)==null?0:X.deviceMemory)){var v;X=(v=g.W_.navigator)==null?void 0:v.deviceMemory;f.client.memoryTotalKbytes=""+X*1E6}g.FZ("web_gcf_hashes_innertube")&&(L=G5a())&&(v=L.coldConfigData,X=L.coldHashData,L=L.hotHashData,f.client.configInfo=f.client.configInfo|| +{},v&&(f.client.configInfo.coldConfigData=v),X&&(f.client.configInfo.coldHashData=X),L&&(f.client.configInfo.hotHashData=L));v=g.ST(g.W_.location.href);!g.FZ("web_populate_internal_geo_killswitch")&&v.internalcountrycode&&(b.internalGeo=v.internalcountrycode);b.clientName==="MWEB"||b.clientName==="WEB"?(b.mainAppWebInfo={graftUrl:g.W_.location.href},g.FZ("kevlar_woffle")&&bZA.instance&&(v=bZA.instance,b.mainAppWebInfo.pwaInstallabilityStatus=!v.Z&&v.B?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": +"PWA_INSTALLABILITY_STATUS_UNKNOWN"),b.mainAppWebInfo.webDisplayMode=ih(),b.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):b.clientName==="TVHTML5"&&(!g.FZ("web_lr_app_quality_killswitch")&&(v=g.ey("LIVING_ROOM_APP_QUALITY"))&&(b.tvAppInfo=Object.assign(b.tvAppInfo||{},{appQuality:v})),v=g.ey("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(b.tvAppInfo=Object.assign(b.tvAppInfo||{},{certificationScope:v}));if(!g.FZ("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== +"undefined")try{var y=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(U){}y=void 0}y&&(b.timeZone=y)}(y=OM())?b.experimentsToken=y:delete b.experimentsToken;y=on();kU.instance||(kU.instance=new kU);f.request=Object.assign({},f.request,{internalExperimentFlags:y,consistencyTokenJars:g.J6(kU.instance.Z)});!g.FZ("web_prequest_context_killswitch")&&(y=g.ey("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(f.request.externalPrequestContext=y);b=g.DQ();y=g.KF(0,58);b=b.get("gsml","");f.user=Object.assign({}, +f.user);y&&(f.user.enableSafetyMode=y);b&&(f.user.lockedSafetyMode=!0);g.FZ("warm_op_csn_cleanup")?H&&(z=g.Jl())&&(f.clientScreenNonce=z):!z&&(z=g.Jl())&&(f.clientScreenNonce=z);Q&&(f.clickTracking={clickTrackingParams:Q});if(Q=g.Kn("yt.mdx.remote.remoteClient_"))f.remoteClient=Q;eh.getInstance().setLocationOnInnerTubeContext(f);try{var q=EM(),M=q.bid;delete q.bid;f.adSignalsInfo={params:[],bid:M};for(var C=g.n(Object.entries(q)),t=C.next();!t.done;t=C.next()){var E=g.n(t.value),G=E.next().value, +x=E.next().value;q=G;M=x;Q=void 0;(Q=f.adSignalsInfo.params)==null||Q.push({key:q,value:""+M})}var J,I;if(((J=f.client)==null?void 0:J.clientName)==="TVHTML5"||((I=f.client)==null?void 0:I.clientName)==="TVHTML5_UNPLUGGED"){var r=g.ey("INNERTUBE_CONTEXT");r.adSignalsInfo&&(f.adSignalsInfo.advertisingId=r.adSignalsInfo.advertisingId,f.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",f.adSignalsInfo.limitAdTracking=r.adSignalsInfo.limitAdTracking)}}catch(U){g.PT(U)}return f}; +oCv=function(Q,z){if(!Q)return!1;var H,f=(H=g.K(Q,xRZ))==null?void 0:H.signal;if(f&&z.Jd)return!!z.Jd[f];var b;if((H=(b=g.K(Q,Ocu))==null?void 0:b.request)&&z.jV)return!!z.jV[H];for(var L in Q)if(z.MU[L])return!0;return!1}; +J$Y=function(Q){var z={"Content-Type":"application/json"};g.ey("EOM_VISITOR_DATA")?z["X-Goog-EOM-Visitor-Id"]=g.ey("EOM_VISITOR_DATA"):g.ey("VISITOR_DATA")&&(z["X-Goog-Visitor-Id"]=g.ey("VISITOR_DATA"));z["X-Youtube-Bootstrap-Logged-In"]=g.ey("LOGGED_IN",!1);g.ey("DEBUG_SETTINGS_METADATA")&&(z["X-Debug-Settings-Metadata"]=g.ey("DEBUG_SETTINGS_METADATA"));Q!=="cors"&&((Q=g.ey("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(z["X-Youtube-Client-Name"]=Q),(Q=g.ey("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(z["X-Youtube-Client-Version"]= +Q),(Q=g.ey("CHROME_CONNECTED_HEADER"))&&(z["X-Youtube-Chrome-Connected"]=Q),(Q=g.ey("DOMAIN_ADMIN_STATE"))&&(z["X-Youtube-Domain-Admin-State"]=Q),g.ey("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(Q=g.ey("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(z["X-YouTube-Lava-Device-Context"]=Q));return z}; +N2Z=function(){this.Z={}}; +RQ=function(){this.mappings=new N2Z}; +Qv=function(Q){return function(){return new Q}}; +A$k=function(Q){var z=z===void 0?"UNKNOWN_INTERFACE":z;if(Q.length===1)return Q[0];var H=Ig6[z];if(H){H=new RegExp(H);for(var f=g.n(Q),b=f.next();!b.done;b=f.next())if(b=b.value,H.exec(b))return b}var L=[];Object.entries(Ig6).forEach(function(u){var X=g.n(u);u=X.next().value;X=X.next().value;z!==u&&L.push(X)}); +H=new RegExp(L.join("|"));Q.sort(function(u,X){return u.length-X.length}); +f=g.n(Q);for(b=f.next();!b.done;b=f.next())if(b=b.value,!H.exec(b))return b;return Q[0]}; +g.zv=function(Q){return"/youtubei/v1/"+A$k(Q)}; +HC=function(){}; +fj=function(){}; +bb=function(){}; +Lj=function(Q){return g.Kn("ytcsi."+(Q||"")+"data_")||Y5_(Q)}; +r$L=function(){var Q=Lj();Q.info||(Q.info={});return Q.info}; +ub=function(Q){Q=Lj(Q);Q.metadata||(Q.metadata={});return Q.metadata}; +SV=function(Q){Q=Lj(Q);Q.tick||(Q.tick={});return Q.tick}; +X7=function(Q){Q=Lj(Q);if(Q.gel){var z=Q.gel;z.gelInfos||(z.gelInfos={});z.gelTicks||(z.gelTicks={})}else Q.gel={gelTicks:{},gelInfos:{}};return Q.gel}; +sWu=function(Q){Q=X7(Q);Q.gelInfos||(Q.gelInfos={});return Q.gelInfos}; +Gv=function(Q){var z=Lj(Q).nonce;z||(z=g.Ob(16),Lj(Q).nonce=z);return z}; +Y5_=function(Q){var z={tick:{},info:{}};g.D6("ytcsi."+(Q||"")+"data_",z);return z}; +$x=function(){var Q=g.Kn("ytcsi.debug");Q||(Q=[],g.D6("ytcsi.debug",Q),g.D6("ytcsi.reference",{}));return Q}; +jV=function(Q){Q=Q||"";var z=B29();if(z[Q])return z[Q];var H=$x(),f={timerName:Q,info:{},tick:{},span:{},jspbInfo:[]};H.push(f);return z[Q]=f}; +PSv=function(Q){Q=Q||"";var z=B29();z[Q]&&delete z[Q];var H=$x(),f={timerName:Q,info:{},tick:{},span:{},jspbInfo:[]};H.push(f);z[Q]=f}; +B29=function(){var Q=g.Kn("ytcsi.reference");if(Q)return Q;$x();return g.Kn("ytcsi.reference")}; +F7=function(Q){return agv[Q]||"LATENCY_ACTION_UNKNOWN"}; +xx=function(Q,z){E5.call(this,1,arguments);this.hM=z}; +OS=function(){this.Z=0}; +oo=function(){OS.instance||(OS.instance=new OS);return OS.instance}; +Nq=function(Q,z){JN[z]=JN[z]||{count:0};var H=JN[z];H.count++;H.time=(0,g.IE)();Q.Z||(Q.Z=g.Q5(0,function(){var f=(0,g.IE)(),b;for(b in JN)JN[b]&&f-JN[b].time>6E4&&delete JN[b];Q&&(Q.Z=0)},5E3)); +return H.count>5?(H.count===6&&Math.random()*1E5<1&&(H=new g.kQ("CSI data exceeded logging limit with key",z.split("_")),z.indexOf("plev")>=0||g.ax(H)),!0):!1}; +UR_=function(){this.timing={};this.clearResourceTimings=function(){}; +this.webkitClearResourceTimings=function(){}; +this.mozClearResourceTimings=function(){}; +this.msClearResourceTimings=function(){}; +this.oClearResourceTimings=function(){}}; +c$n=function(){var Q;if(g.FZ("csi_use_performance_navigation_timing")||g.FZ("csi_use_performance_navigation_timing_tvhtml5")){var z,H,f,b=Io==null?void 0:(Q=Io.getEntriesByType)==null?void 0:(z=Q.call(Io,"navigation"))==null?void 0:(H=z[0])==null?void 0:(f=H.toJSON)==null?void 0:f.call(H);b?(b.requestStart=AN(b.requestStart),b.responseEnd=AN(b.responseEnd),b.redirectStart=AN(b.redirectStart),b.redirectEnd=AN(b.redirectEnd),b.domainLookupEnd=AN(b.domainLookupEnd),b.connectStart=AN(b.connectStart), +b.connectEnd=AN(b.connectEnd),b.responseStart=AN(b.responseStart),b.secureConnectionStart=AN(b.secureConnectionStart),b.domainLookupStart=AN(b.domainLookupStart),b.isPerformanceNavigationTiming=!0,Q=b):Q=Io.timing}else Q=g.FZ("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(Io.timing)):Io.timing;return Q}; +AN=function(Q){return Math.round(Yx()+Q)}; +Yx=function(){return(g.FZ("csi_use_time_origin")||g.FZ("csi_use_time_origin_tvhtml5"))&&Io.timeOrigin?Math.floor(Io.timeOrigin):Io.timing.navigationStart}; +sS=function(Q,z){rE("_start",Q,z)}; +BC=function(Q,z){if(!g.FZ("web_csi_action_sampling_enabled")||!Lj(z).actionDisabled){var H=jV(z||"");tL(H.info,Q);Q.loadType&&(H=Q.loadType,ub(z).loadType=H);tL(sWu(z),Q);H=Gv(z);z=Lj(z).cttAuthInfo;oo().info(Q,H,z)}}; +icc=function(){var Q,z,H,f;return((f=aw().resolve(new Yk(yH))==null?void 0:(Q=qR())==null?void 0:(z=Q.loggingHotConfig)==null?void 0:(H=z.csiConfig)==null?void 0:H.debugTicks)!=null?f:[]).map(function(b){return Object.values(b)[0]})}; +rE=function(Q,z,H){if(!g.FZ("web_csi_action_sampling_enabled")||!Lj(H).actionDisabled){var f=Gv(H),b;if(b=g.FZ("web_csi_debug_sample_enabled")&&f){(aw().resolve(new Yk(yH))==null?0:qR())&&!hwA&&(hwA=!0,rE("gcfl",(0,g.IE)(),H));var L,u,X;b=(aw().resolve(new Yk(yH))==null?void 0:(L=qR())==null?void 0:(u=L.loggingHotConfig)==null?void 0:(X=u.csiConfig)==null?void 0:X.debugSampleWeight)||0;if(L=b!==0)b:{L=icc();if(L.length>0)for(u=0;uH.duration?f:H},{duration:0}))&&z.startTime>0&&z.responseEnd>0&&(rE("wffs",AN(z.startTime)),rE("wffe",AN(z.responseEnd)))}; +wUp=function(Q,z,H){Io&&Io.measure&&(Q.startsWith("measure_")||(Q="measure_"+Q),H?Io.measure(Q,z,H):z?Io.measure(Q,z):Io.measure(Q))}; +kKL=function(Q){var z=PC("aft",Q);if(z)return z;z=g.ey((Q||"")+"TIMING_AFT_KEYS",["ol"]);for(var H=z.length,f=0;f0&&BC(z);z={isNavigation:!0,actionType:F7(g.ey("TIMING_ACTION"))};var H=g.ey("PREVIOUS_ACTION");H&&(z.previousAction=F7(H));if(H=g.ey("CLIENT_PROTOCOL"))z.httpProtocol=H;if(H=g.ey("CLIENT_TRANSPORT"))z.transportProtocol=H;(H=g.Jl())&&H!=="UNDEFINED_CSN"&&(z.clientScreenNonce=H);H=Ku9();if(H===1||H===-1)z.isVisible= +!0;H=ub().loadType==="cold";var f=r$L();H||(H=f.yt_lt==="cold");if(H){z.loadType="cold";H=r$L();f=c$n();var b=Yx(),L=g.ey("CSI_START_TIMESTAMP_MILLIS",0);L>0&&!g.FZ("embeds_web_enable_csi_start_override_killswitch")&&(b=L);b&&(rE("srt",f.responseStart),H.prerender!==1&&sS(b));H=lgu();H>0&&rE("fpt",H);H=c$n();H.isPerformanceNavigationTiming&&BC({performanceNavigationTiming:!0},void 0);rE("nreqs",H.requestStart,void 0);rE("nress",H.responseStart,void 0);rE("nrese",H.responseEnd,void 0);H.redirectEnd- +H.redirectStart>0&&(rE("nrs",H.redirectStart,void 0),rE("nre",H.redirectEnd,void 0));H.domainLookupEnd-H.domainLookupStart>0&&(rE("ndnss",H.domainLookupStart,void 0),rE("ndnse",H.domainLookupEnd,void 0));H.connectEnd-H.connectStart>0&&(rE("ntcps",H.connectStart,void 0),rE("ntcpe",H.connectEnd,void 0));H.secureConnectionStart>=Yx()&&H.connectEnd-H.secureConnectionStart>0&&(rE("nstcps",H.secureConnectionStart,void 0),rE("ntcpe",H.connectEnd,void 0));Io&&"getEntriesByType"in Io&&mRc();H=[];if(document.querySelector&& +Io&&Io.getEntriesByName)for(var u in cC)cC.hasOwnProperty(u)&&(f=cC[u],dR9(u,f)&&H.push(f));if(H.length>0)for(z.resourceInfo=[],u=g.n(H),H=u.next();!H.done;H=u.next())z.resourceInfo.push({resourceCache:H.value})}BC(z);z=X7();z.preLoggedGelInfos||(z.preLoggedGelInfos=[]);u=z.preLoggedGelInfos;z=sWu();H=void 0;for(f=0;f-1&&(delete Z["@type"],k=Z);G&&Q.B.has(G)&&Q.B.delete(G);((h8=z.config)==null?0:h8.pSq)&&hN(z.config.pSq);if(k||(j5=Q.L)==null||!j5.X03(z.input,z.lz)){J8.bT(15);break}return g.Y(J8,Q.L.tET(z.input,z.lz),16);case 16:k=J8.B;case 15:return pbp(Q,k,z),((tt=z.config)==null?0:tt.L25)&&hN(z.config.L25),f(),J8.return(k|| +void 0)}})}; +qbJ=function(Q,z){a:{Q=Q.TC;var H,f=(H=g.K(z,xRZ))==null?void 0:H.signal;if(f&&Q.Jd&&(H=Q.Jd[f])){var b=H();break a}var L;if((H=(L=g.K(z,Ocu))==null?void 0:L.request)&&Q.jV&&(L=Q.jV[H])){b=L();break a}for(b in z)if(Q.MU[b]&&(z=Q.MU[b])){b=z();break a}b=void 0}if(b!==void 0)return Promise.resolve(b)}; +C8u=function(Q,z,H){var f,b,L,u,X,v,y;return g.B(function(q){if(q.Z==1){L=((f=z)==null?void 0:(b=f.k9)==null?void 0:b.identity)||t$;v=(u=z)==null?void 0:(X=u.k9)==null?void 0:X.sessionIndex;var M=g.GM(Q.Z.Kf(L,{sessionIndex:v}));return g.Y(q,M,2)}y=q.B;return q.return(Promise.resolve(Object.assign({},J$Y(H),y)))})}; +MvZ=function(Q,z,H){var f,b=(z==null?void 0:(f=z.k9)==null?void 0:f.identity)||t$,L;z=z==null?void 0:(L=z.k9)==null?void 0:L.sessionIndex;Q=Q.Z.Kf(b,{sessionIndex:z});return Object.assign({},J$Y(H),Q)}; +eV=function(){}; +lb=function(){}; +Ro=function(Q){this.j=Q}; +QT=function(){}; +zp=function(){}; +Hm=function(){}; +f4=function(){}; +bG=function(Q,z,H){this.Z=Q;this.B=z;this.L=H}; +gkp=function(Q,z,H){if(Q.Z){var f=aR(g.c4(5,kr(z,"key")))||"/UNKNOWN_PATH";Q.Z.start(f)}Q=H;g.FZ("wug_networking_gzip_request")&&(Q=e$L(H));return new window.Request(z,Q)}; +g.uG=function(Q,z){if(!L4){var H=aw();r6(H,{QX:Zt_,If:bG});var f={MU:{feedbackEndpoint:Qv(QT),modifyChannelNotificationPreferenceEndpoint:Qv(zp),playlistEditEndpoint:Qv(Hm),shareEntityEndpoint:Qv(Ro),subscribeEndpoint:Qv(eV),unsubscribeEndpoint:Qv(lb),webPlayerShareEntityServiceEndpoint:Qv(f4)}},b=eh.getInstance(),L={};b&&(L.client_location=b);Q===void 0&&(Q=LgA());z===void 0&&(z=H.resolve(Zt_));yL6(f,z,Q,L);r6(H,{QX:GwY,s1:wE.instance});L4=H.resolve(GwY)}return L4}; +$An=function(Q){var z=new pW;if(Q.interpreterJavascript){var H=i8Y(Q.interpreterJavascript);H=DT(H).toString();var f=new tp;gq(f,6,H);vq(z,tp,1,f)}else Q.interpreterUrl&&(H=of(Q.interpreterUrl),H=Jb(H).toString(),f=new Eo,gq(f,4,H),vq(z,Eo,2,f));Q.interpreterHash&&Zu(z,3,Q.interpreterHash);Q.program&&Zu(z,4,Q.program);Q.globalName&&Zu(z,5,Q.globalName);Q.clientExperimentsStateBlob&&Zu(z,7,Q.clientExperimentsStateBlob);return z}; +Sd=function(Q){var z={};Q=Q.split("&");Q=g.n(Q);for(var H=Q.next();!H.done;H=Q.next())H=H.value.split("="),H.length===2&&(z[H[0]]=H[1]);return z}; +LEc=function(){if(g.FZ("bg_st_hr"))return"havuokmhhs-0";var Q,z=((Q=performance)==null?void 0:Q.timeOrigin)||0;return"havuokmhhs-"+Math.floor(z)}; +Xh=function(Q){this.Z=Q}; +jw9=function(){return new Promise(function(Q){var z=window.top;z.ntpevasrs!==void 0?Q(new Xh(z.ntpevasrs)):(z.ntpqfbel===void 0&&(z.ntpqfbel=[]),z.ntpqfbel.push(function(H){Q(new Xh(H))}))})}; +xA8=function(){if(!g.FZ("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.FZ("disable_biscotti_fetch_entirely_for_all_web_clients")&&bh()){var Q=g.ey("PLAYER_VARS",{});if(g.sr(Q,"privembed",!1)!="1"&&!Y4J(Q)){var z=function(){vm=!0;"google_ad_status"in window?T5("DCLKSTAT",1):T5("DCLKSTAT",2)}; +try{g.y7("//static.doubleclick.net/instream/ad_status.js",z)}catch(H){}FCk.push(g.DR.pE(function(){if(!(vm||"google_ad_status"in window)){try{if(z){var H=""+g.eY(z),f=YML[H];f&&g.XN(f)}}catch(b){}vm=!0;T5("DCLKSTAT",3)}},5E3))}}}; +yT=function(){var Q=Number(g.ey("DCLKSTAT",0));return isNaN(Q)?0:Q}; +tr=function(Q,z,H){var f=this;this.network=Q;this.options=z;this.B=H;this.Z=null;if(z.Zlh){var b=new g.gB;this.Z=b.promise;g.W_.ytAtRC&&R4(function(){var L,u;return g.B(function(X){if(X.Z==1){if(!g.W_.ytAtRC)return X.return();L=qr(null);return g.Y(X,Mr(f,L),2)}u=X.B;g.W_.ytAtRC&&g.W_.ytAtRC(JSON.stringify(u));g.$v(X)})},2); +jw9().then(function(L){var u,X,v,y;return g.B(function(q){if(q.Z==1)return L.bindInnertubeChallengeFetcher(function(M){return Mr(f,qr(M))}),g.Y(q,AZ(),2); +u=q.B;X=L.getLatestChallengeResponse();v=X.challenge;if(!v)throw Error("BGE_MACIL");y={challenge:v,kM:Sd(v),Wc:u,bgChallenge:new pW};b.resolve(y);L.registerChallengeFetchedCallback(function(M){M=M.challenge;if(!M)throw Error("BGE_MACR");M={challenge:M,kM:Sd(M),Wc:u,bgChallenge:new pW};f.Z=Promise.resolve(M)}); +g.$v(q)})})}else z.preload&&Otk(this,new Promise(function(L){g.Q5(0,function(){L(C4(f))},0)}))}; +qr=function(Q){var z={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};Q&&(z.interpreterHash=Q);return z}; +C4=function(Q,z){z=z===void 0?0:z;var H,f,b,L,u,X,v,y,q,M,C,t;return g.B(function(E){switch(E.Z){case 1:H=qr($M().Z);if(g.FZ("att_fet_ks"))return g.jY(E,7),g.Y(E,Mr(Q,H),9);g.jY(E,4);return g.Y(E,okv(Q,H),6);case 6:u=E.B;b=u.C2e;L=u.dB$;f=u;g.xv(E,3);break;case 4:return g.OA(E),g.ax(Error("Failed to fetch attestation challenge after "+(z+" attempts; not retrying for 24h."))),E1(Q,864E5),E.return({challenge:"",kM:{},Wc:void 0,bgChallenge:void 0});case 9:f=E.B;if(!f)throw Error("Fetching Attestation challenge returned falsy"); +if(!f.challenge)throw Error("Missing Attestation challenge");b=f.challenge;L=Sd(b);if("c1a"in L&&(!f.bgChallenge||!f.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.xv(E,3);break;case 7:X=g.OA(E);g.ax(X);z++;if(z>=5)return g.ax(Error("Failed to fetch attestation challenge after "+(z+" attempts; not retrying for 24h."))),E1(Q,864E5),E.return({challenge:"",kM:{},Wc:void 0,bgChallenge:void 0});v=1E3*Math.pow(2,z-1)+Math.random()*1E3;return E.return(new Promise(function(G){g.Q5(0, +function(){G(C4(Q,z))},v)})); +case 3:y=Number(L.t)||7200;E1(Q,y*1E3);q=void 0;if(!("c1a"in L&&f.bgChallenge)){E.bT(10);break}M=$An(f.bgChallenge);g.jY(E,11);return g.Y(E,jB($M(),M),13);case 13:g.xv(E,12);break;case 11:return C=g.OA(E),g.ax(C),E.return({challenge:b,kM:L,Wc:q,bgChallenge:M});case 12:return g.jY(E,14),q=new ZW({challenge:M,k8:{hF:"aGIf"}}),g.Y(E,q.Ab,16);case 16:g.xv(E,10);break;case 14:t=g.OA(E),g.ax(t),q=void 0;case 10:return E.return({challenge:b,kM:L,Wc:q,bgChallenge:M})}})}; +Mr=function(Q,z){var H;return g.B(function(f){H=Q.B;if(!H||H.yP())return f.return(Mr(Q.network,z));dE("att_pna",void 0,"attestation_challenge_fetch");return f.return(new Promise(function(b){H.iJ("publicytnetworkstatus-online",function(){Mr(Q.network,z).then(b)})}))})}; +JLA=function(Q){if(!Q)throw Error("Fetching Attestation challenge returned falsy");if(!Q.challenge)throw Error("Missing Attestation challenge");var z=Q.challenge,H=Sd(z);if("c1a"in H&&(!Q.bgChallenge||!Q.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},Q,{C2e:z,dB$:H})}; +okv=function(Q,z){var H,f,b,L,u;return g.B(function(X){switch(X.Z){case 1:H=void 0,f=0,b={};case 2:if(!(f<5)){X.bT(4);break}if(!(f>0)){X.bT(5);break}b.bX=1E3*Math.pow(2,f-1)+Math.random()*1E3;return g.Y(X,new Promise(function(v){return function(y){g.Q5(0,function(){y(void 0)},v.bX)}}(b)),5); +case 5:return g.jY(X,7),g.Y(X,Mr(Q,z),9);case 9:return L=X.B,X.return(JLA(L));case 7:H=u=g.OA(X),u instanceof Error&&g.ax(u);case 8:f++;b={bX:void 0};X.bT(2);break;case 4:throw H;}})}; +Otk=function(Q,z){Q.Z=z}; +N6A=function(Q){var z,H,f;return g.B(function(b){if(b.Z==1)return g.Y(b,Promise.race([Q.Z,null]),2);z=b.B;var L=C4(Q);Q.Z=L;(H=z)==null||(f=H.Wc)==null||f.dispose();g.$v(b)})}; +E1=function(Q,z){function H(){var b;return g.B(function(L){b=f-Date.now();return b<1E3?g.Y(L,N6A(Q),0):(R4(H,0,Math.min(b,6E4)),L.bT(0))})} +var f=Date.now()+z;H()}; +I7v=function(Q,z){return new Promise(function(H){g.Q5(0,function(){H(z())},Q)})}; +g.ALJ=function(Q,z){var H;return g.B(function(f){var b=g.Kn("yt.aba.att");return(H=b?b:tr.instance!==void 0?tr.instance.L.bind(tr.instance):null)?f.return(H("ENGAGEMENT_TYPE_PLAYBACK",Q,z)):f.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; +g.Ybv=function(){var Q;return(Q=(Q=g.Kn("yt.aba.att2"))?Q:tr.instance!==void 0?tr.instance.D.bind(tr.instance):null)?Q():Promise.resolve(!1)}; +swk=function(Q,z){var H=g.Kn("ytDebugData.callbacks");H||(H={},g.D6("ytDebugData.callbacks",H));if(g.FZ("web_dd_iu")||rLA.includes(Q))H[Q]=z}; +p4=function(){var Q=B6a;var z=z===void 0?[]:z;var H=H===void 0?[]:H;z=sLu.apply(null,[Bdn.apply(null,g.F(z))].concat(g.F(H)));this.store=aP8(Q,void 0,z)}; +g.n4=function(Q,z,H){for(var f=Object.assign({},Q),b=g.n(Object.keys(z)),L=b.next();!L.done;L=b.next()){L=L.value;var u=Q[L],X=z[L];if(X===void 0)delete f[L];else if(u===void 0)f[L]=X;else if(Array.isArray(X)&&Array.isArray(u))f[L]=H?[].concat(g.F(u),g.F(X)):X;else if(!Array.isArray(X)&&g.kv(X)&&!Array.isArray(u)&&g.kv(u))f[L]=g.n4(u,X,H);else if(typeof X===typeof u)f[L]=X;else return z=new g.kQ("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:L,q4h:u,updateValue:X}),g.PT(z), +Q}return f}; +gt=function(Q){var z=this;Q=Q===void 0?[]:Q;this.zS=[];this.P7=this.x3=0;this.aR=void 0;this.totalLength=0;Q.forEach(function(H){z.append(H)})}; +P8A=function(Q,z){return Q.zS.length===0?!1:(Q=Q.zS[Q.zS.length-1])&&Q.buffer===z.buffer&&Q.byteOffset+Q.length===z.byteOffset}; +Zt=function(Q,z){z=g.n(z.zS);for(var H=z.next();!H.done;H=z.next())Q.append(H.value)}; +Gp=function(Q,z,H){return Q.split(z).TO.split(H).Qb}; +$S=function(Q){Q.aR=void 0;Q.x3=0;Q.P7=0}; +jd=function(Q,z,H){Q.isFocused(z);return z-Q.P7+H<=Q.zS[Q.x3].length}; +a7n=function(Q){if(!Q.aR){var z=Q.zS[Q.x3];Q.aR=new DataView(z.buffer,z.byteOffset,z.length)}return Q.aR}; +Fh=function(Q,z,H){Q=Q.K4(z===void 0?0:z,H===void 0?-1:H);z=new Uint8Array(Q.length);try{z.set(Q)}catch(f){for(H=0;H>10;L=56320|L&1023}ot[b++]=L}}L=String.fromCharCode.apply(String,ot); +b<1024&&(L=L.substring(0,b));H.push(L)}return H.join("")}; +It=function(Q,z){var H;if((H=Nr)==null?0:H.encodeInto)return z=Nr.encodeInto(Q,z),z.read>6|192:((b&64512)===55296&&f+1>18|240,z[H++]=b>>12&63|128):z[H++]=b>>12|224,z[H++]=b>>6&63|128),z[H++]=b&63|128)}return H}; +Ar=function(Q){if(Nr)return Nr.encode(Q);var z=new Uint8Array(Math.ceil(Q.length*1.2)),H=It(Q,z);z.lengthH&&(z=z.subarray(0,H));return z}; +YS=function(Q){this.Z=Q;this.pos=0;this.B=-1}; +rt=function(Q){var z=Q.Z.getUint8(Q.pos);++Q.pos;if(z<128)return z;for(var H=z&127,f=1;z>=128;)z=Q.Z.getUint8(Q.pos),++Q.pos,f*=128,H+=(z&127)*f;return H}; +s1=function(Q,z){var H=Q.B;for(Q.B=-1;Q.Z.rd(Q.pos,1);){H<0&&(H=rt(Q));var f=H>>3,b=H&7;if(f===z)return!0;if(f>z){Q.B=H;break}H=-1;switch(b){case 0:rt(Q);break;case 1:Q.pos+=8;break;case 2:f=rt(Q);Q.pos+=f;break;case 5:Q.pos+=4}}return!1}; +Bm=function(Q,z){if(s1(Q,z))return rt(Q)}; +Pm=function(Q,z){if(s1(Q,z))return!!rt(Q)}; +at=function(Q,z){if(s1(Q,z)){z=rt(Q);var H=Q.Z.K4(Q.pos,z);Q.pos+=z;return H}}; +U1=function(Q,z){if(Q=at(Q,z))return g.Jr(Q)}; +cm=function(Q,z,H){if(Q=at(Q,z))return H(new YS(new gt([Q])))}; +iG=function(Q,z){for(var H=[];s1(Q,z);)H.push(rt(Q));return H.length?H:void 0}; +hr=function(Q,z,H){for(var f=[],b;b=at(Q,z);)f.push(H(new YS(new gt([b]))));return f.length?f:void 0}; +Wm=function(Q,z){Q=Q instanceof Uint8Array?new gt([Q]):Q;return z(new YS(Q))}; +itL=function(Q,z,H){if(z&&H&&H.buffer===z.exports.memory.buffer){var f=z.realloc(H.byteOffset,Q);if(f)return new Uint8Array(z.exports.memory.buffer,f,Q)}Q=z?new Uint8Array(z.exports.memory.buffer,z.malloc(Q),Q):new Uint8Array(Q);H&&Q.set(H);return Q}; +hS6=function(Q,z){this.xs=z;this.pos=0;this.B=[];this.Z=itL(Q===void 0?4096:Q,z);this.view=new DataView(this.Z.buffer,this.Z.byteOffset,this.Z.byteLength)}; +Dt=function(Q,z){z=Q.pos+z;if(!(Q.Z.length>=z)){for(var H=Q.Z.length*2;H268435455){Dt(Q,4);for(var H=z&1073741823,f=0;f<4;f++)Q.view.setUint8(Q.pos,H&127|128),H>>=7,Q.pos+=1;z=Math.floor(z/268435456)}for(Dt(Q,4);z>127;)Q.view.setUint8(Q.pos,z&127|128),z>>=7,Q.pos+=1;Q.view.setUint8(Q.pos,z);Q.pos+=1}; +VT=function(Q,z,H){H!==void 0&&(K4(Q,z*8),K4(Q,H))}; +dt=function(Q,z,H){H!==void 0&&VT(Q,z,H?1:0)}; +mt=function(Q,z,H){H!==void 0&&(K4(Q,z*8+2),z=H.length,K4(Q,z),Dt(Q,z),Q.Z.set(H,Q.pos),Q.pos+=z)}; +wt=function(Q,z,H){H!==void 0&&(WC6(Q,z,Math.ceil(Math.log2(H.length*4+2)/7)),Dt(Q,H.length*1.2),z=It(H,Q.Z.subarray(Q.pos)),Q.pos+z>Q.Z.length&&(Dt(Q,z),z=It(H,Q.Z.subarray(Q.pos))),Q.pos+=z,DA6(Q))}; +WC6=function(Q,z,H){H=H===void 0?2:H;K4(Q,z*8+2);Q.B.push(Q.pos);Q.B.push(H);Q.pos+=H}; +DA6=function(Q){for(var z=Q.B.pop(),H=Q.B.pop(),f=Q.pos-H-z;z--;){var b=z?128:0;Q.view.setUint8(H++,f&127|b);f>>=7}}; +kS=function(Q,z,H,f,b){H&&(WC6(Q,z,b===void 0?3:b),f(Q,H),DA6(Q))}; +g.Tp=function(Q,z,H){H=new hS6(4096,H);z(H,Q);return new Uint8Array(H.Z.buffer,H.Z.byteOffset,H.pos)}; +g.ed=function(Q){var z=new YS(new gt([G7(decodeURIComponent(Q))]));Q=U1(z,2);z=Bm(z,4);var H=KC6[z];if(typeof H==="undefined")throw Q=new g.kQ("Failed to recognize field number",{name:"EntityKeyHelperError",Ml$:z}),g.PT(Q),Q;return{Pw:z,entityType:H,entityId:Q}}; +g.lG=function(Q,z){var H=H===void 0?0:H;var f=new hS6;mt(f,2,Ar(Q));Q=Vvn[z];if(typeof Q==="undefined")throw H=new g.kQ("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:z}),g.PT(H),H;VT(f,4,Q);VT(f,5,1);z=new Uint8Array(f.Z.buffer,f.Z.byteOffset,f.pos);return encodeURIComponent(g.g7(z,H))}; +vX=function(Q,z,H,f){if(f===void 0)return f=Object.assign({},Q[z]||{}),H=(delete f[H],f),f={},Object.assign({},Q,(f[z]=H,f));var b={},L={};return Object.assign({},Q,(L[z]=Object.assign({},Q[z],(b[H]=f,b)),L))}; +dAa=function(Q,z,H,f,b){var L=Q[z];if(L==null||!L[H])return Q;f=g.n4(L[H],f,b==="REPEATED_FIELDS_MERGE_OPTION_APPEND");b={};L={};return Object.assign({},Q,(L[z]=Object.assign({},Q[z],(b[H]=f,b)),L))}; +mAZ=function(Q,z){Q=Q===void 0?{}:Q;switch(z.type){case "ENTITY_LOADED":return z.payload.reduce(function(f,b){var L,u=(L=b.options)==null?void 0:L.persistenceOption;if(u&&u!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&u!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return f;if(!b.entityKey)return g.PT(Error("Missing entity key")),f;if(b.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!b.payload)return g.PT(new g.kQ("REPLACE entity mutation is missing a payload",{entityKey:b.entityKey})),f;var X=g.oI(b.payload); +return vX(f,X,b.entityKey,b.payload[X])}if(b.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{b=b.entityKey;try{var v=g.ed(b).entityType;X=vX(f,v,b);break a}catch(M){if(M instanceof Error){g.PT(new g.kQ("Failed to deserialize entity key",{entityKey:b,SB:M.message}));X=f;break a}throw M;}X=void 0}return X}if(b.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!b.payload)return g.PT(new g.kQ("UPDATE entity mutation is missing a payload",{entityKey:b.entityKey})),f;X=g.oI(b.payload);var y,q;return dAa(f,X,b.entityKey, +b.payload[X],(y=b.fieldMask)==null?void 0:(q=y.mergeOptions)==null?void 0:q.repeatedFieldsMergeOption)}return f},Q); +case "REPLACE_ENTITY":var H=z.payload;return vX(Q,H.entityType,H.key,H.wE);case "REPLACE_ENTITIES":return Object.keys(z.payload).reduce(function(f,b){var L=z.payload[b];return Object.keys(L).reduce(function(u,X){return vX(u,b,X,L[X])},f)},Q); +case "UPDATE_ENTITY":return H=z.payload,dAa(Q,H.entityType,H.key,H.wE,H.gQn);default:return Q}}; +yd=function(Q,z,H){return Q[z]?Q[z][H]||null:null}; +qx=function(Q){return window.Int32Array?new Int32Array(Q):Array(Q)}; +nP=function(Q){g.h.call(this);this.counter=[0,0,0,0];this.B=new Uint8Array(16);this.Z=16;if(!wbZ){var z,H=new Uint8Array(256),f=new Uint8Array(256);var b=1;for(z=0;z<256;z++)H[b]=z,f[z]=b,b^=b<<1^(b>>7&&283);Mx=new Uint8Array(256);CP=qx(256);t_=qx(256);El=qx(256);pP=qx(256);for(var L=0;L<256;L++){b=L?f[255^H[L]]:0;b^=b<<1^b<<2^b<<3^b<<4;b=b&255^b>>>8^99;Mx[L]=b;z=b<<1^(b>>7&&283);var u=z^b;CP[L]=z<<24|b<<16|b<<8|u;t_[L]=u<<24|CP[L]>>>8;El[L]=b<<24|t_[L]>>>8;pP[L]=b<<24|El[L]>>>8}wbZ=!0}b=qx(44);for(H= +0;H<4;H++)b[H]=Q[4*H]<<24|Q[4*H+1]<<16|Q[4*H+2]<<8|Q[4*H+3];for(f=1;H<44;H++)Q=b[H-1],H%4||(Q=(Mx[Q>>16&255]^f)<<24|Mx[Q>>8&255]<<16|Mx[Q&255]<<8|Mx[Q>>>24],f=f<<1^(f>>7&&283)),b[H]=b[H-4]^Q;this.key=b}; +gh=function(Q,z){for(var H=0;H<4;H++)Q.counter[H]=z[H*4]<<24|z[H*4+1]<<16|z[H*4+2]<<8|z[H*4+3];Q.Z=16}; +kwA=function(Q){for(var z=Q.key,H=Q.counter[0]^z[0],f=Q.counter[1]^z[1],b=Q.counter[2]^z[2],L=Q.counter[3]^z[3],u=3;u>=0&&!(Q.counter[u]=-~Q.counter[u]);u--);for(var X,v,y=4;y<40;)u=CP[H>>>24]^t_[f>>16&255]^El[b>>8&255]^pP[L&255]^z[y++],X=CP[f>>>24]^t_[b>>16&255]^El[L>>8&255]^pP[H&255]^z[y++],v=CP[b>>>24]^t_[L>>16&255]^El[H>>8&255]^pP[f&255]^z[y++],L=CP[L>>>24]^t_[H>>16&255]^El[f>>8&255]^pP[b&255]^z[y++],H=u,f=X,b=v;Q=Q.B;u=z[40];Q[0]=Mx[H>>>24]^u>>>24;Q[1]=Mx[f>>16&255]^u>>16&255;Q[2]=Mx[b>>8&255]^ +u>>8&255;Q[3]=Mx[L&255]^u&255;u=z[41];Q[4]=Mx[f>>>24]^u>>>24;Q[5]=Mx[b>>16&255]^u>>16&255;Q[6]=Mx[L>>8&255]^u>>8&255;Q[7]=Mx[H&255]^u&255;u=z[42];Q[8]=Mx[b>>>24]^u>>>24;Q[9]=Mx[L>>16&255]^u>>16&255;Q[10]=Mx[H>>8&255]^u>>8&255;Q[11]=Mx[f&255]^u&255;u=z[43];Q[12]=Mx[L>>>24]^u>>>24;Q[13]=Mx[H>>16&255]^u>>16&255;Q[14]=Mx[f>>8&255]^u>>8&255;Q[15]=Mx[b&255]^u&255}; +$9=function(){if(!Zo&&!g.Ta){if(GL)return GL;var Q;GL=(Q=window.crypto)==null?void 0:Q.subtle;var z,H,f;if(((z=GL)==null?0:z.importKey)&&((H=GL)==null?0:H.sign)&&((f=GL)==null?0:f.encrypt))return GL;GL=void 0}}; +g.j7=function(Q){this.D=Q}; +g.Fm=function(Q){this.B=Q}; +x9=function(Q){this.S=new Uint8Array(64);this.L=new Uint8Array(64);this.D=0;this.j=new Uint8Array(64);this.B=0;this.S.set(Q);this.L.set(Q);for(Q=0;Q<64;Q++)this.S[Q]^=92,this.L[Q]^=54;this.reset()}; +T66=function(Q,z,H){for(var f=Q.Y,b=Q.Z[0],L=Q.Z[1],u=Q.Z[2],X=Q.Z[3],v=Q.Z[4],y=Q.Z[5],q=Q.Z[6],M=Q.Z[7],C,t,E,G=0;G<64;)G<16?(f[G]=E=z[H]<<24|z[H+1]<<16|z[H+2]<<8|z[H+3],H+=4):(C=f[G-2],t=f[G-15],E=f[G-7]+f[G-16]+((C>>>17|C<<15)^(C>>>19|C<<13)^C>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),f[G]=E),C=M+Ol[G]+E+((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+(v&y^~v&q),t=((b>>>2|b<<30)^(b>>>13|b<<19)^(b>>>22|b<<10))+(b&L^b&u^L&u),M=C+t,X+=C,G++,G<16?(f[G]=E=z[H]<<24|z[H+1]<<16|z[H+2]<<8|z[H+3],H+=4):(C= +f[G-2],t=f[G-15],E=f[G-7]+f[G-16]+((C>>>17|C<<15)^(C>>>19|C<<13)^C>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),f[G]=E),C=q+Ol[G]+E+((X>>>6|X<<26)^(X>>>11|X<<21)^(X>>>25|X<<7))+(X&v^~X&y),t=((M>>>2|M<<30)^(M>>>13|M<<19)^(M>>>22|M<<10))+(M&b^M&L^b&L),q=C+t,u+=C,G++,G<16?(f[G]=E=z[H]<<24|z[H+1]<<16|z[H+2]<<8|z[H+3],H+=4):(C=f[G-2],t=f[G-15],E=f[G-7]+f[G-16]+((C>>>17|C<<15)^(C>>>19|C<<13)^C>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),f[G]=E),C=y+Ol[G]+E+((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))+(u&X^ +~u&v),t=((q>>>2|q<<30)^(q>>>13|q<<19)^(q>>>22|q<<10))+(q&M^q&b^M&b),y=C+t,L+=C,G++,G<16?(f[G]=E=z[H]<<24|z[H+1]<<16|z[H+2]<<8|z[H+3],H+=4):(C=f[G-2],t=f[G-15],E=f[G-7]+f[G-16]+((C>>>17|C<<15)^(C>>>19|C<<13)^C>>>10)+((t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3),f[G]=E),C=v+Ol[G]+E+((L>>>6|L<<26)^(L>>>11|L<<21)^(L>>>25|L<<7))+(L&u^~L&X),t=((y>>>2|y<<30)^(y>>>13|y<<19)^(y>>>22|y<<10))+(y&q^y&M^q&M),E=M,M=X,X=E,E=q,q=u,u=E,E=y,y=L,L=E,v=b+C,b=C+t,G++;Q.Z[0]=b+Q.Z[0]|0;Q.Z[1]=L+Q.Z[1]|0;Q.Z[2]=u+Q.Z[2]|0;Q.Z[3]= +X+Q.Z[3]|0;Q.Z[4]=v+Q.Z[4]|0;Q.Z[5]=y+Q.Z[5]|0;Q.Z[6]=q+Q.Z[6]|0;Q.Z[7]=M+Q.Z[7]|0}; +l7c=function(Q){var z=new Uint8Array(32),H=64-Q.B;Q.B>55&&(H+=64);var f=new Uint8Array(H);f[0]=128;for(var b=Q.D*8,L=1;L<9;L++){var u=b%256;f[H-L]=u;b=(b-u)/256}Q.update(f);for(H=0;H<8;H++)z[H*4]=Q.Z[H]>>>24,z[H*4+1]=Q.Z[H]>>>16&255,z[H*4+2]=Q.Z[H]>>>8&255,z[H*4+3]=Q.Z[H]&255;eS9(Q);return z}; +eS9=function(Q){Q.Z=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];Q.Y=[];Q.Y.length=64;Q.D=0;Q.B=0}; +RSJ=function(Q){this.Z=Q}; +Qxp=function(Q,z,H){Q=new x9(Q.Z);Q.update(z);Q.update(H);z=l7c(Q);Q.update(Q.S);Q.update(z);z=l7c(Q);Q.reset();return z}; +ztL=function(Q){this.B=Q}; +H2c=function(Q,z,H,f){var b,L,u;return g.B(function(X){switch(X.Z){case 1:if(Q.Z){X.bT(2);break}return g.Y(X,f.importKey("raw",Q.B,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:Q.Z=X.B;case 2:return b=new Uint8Array(z.length+H.length),b.set(z),b.set(H,z.length),L={name:"HMAC",hash:"SHA-256"},g.Y(X,f.sign(L,Q.Z,b),4);case 4:return u=X.B,X.return(new Uint8Array(u))}})}; +fw9=function(Q,z,H){Q.L||(Q.L=new RSJ(Q.B));return Qxp(Q.L,z,H)}; +b28=function(Q,z,H){var f,b;return g.B(function(L){if(L.Z==1){f=$9();if(!f)return L.return(fw9(Q,z,H));g.jY(L,3);return g.Y(L,H2c(Q,z,H,f),5)}if(L.Z!=3)return L.return(L.B);b=g.OA(L);g.ax(b);Zo=!0;return L.return(fw9(Q,z,H))})}; +uGu=function(Q){for(var z="",H=0;H=1?Q[Q.length-1]:null;for(var f=g.n(Q),b=f.next();!b.done;b=f.next())if(b=b.value,b.width&&b.height&&(H&&b.width>=z||!H&&b.height>=z))return b;for(z=Q.length-1;z>=0;z--)if(H&&Q[z].width||!H&&Q[z].height)return Q[z];return Q[0]}; +J_=function(){this.state=1;this.Wc=null;this.qP=void 0}; +tZp=function(Q,z,H,f,b,L){var u=u===void 0?"trayride":u;H?(Q.Ni(2),g.y7(H,function(){if(window[u])CUv(Q,f,u,b);else{Q.Ni(3);var X=AF_(H),v=document.getElementById(X);v&&(NR6(X),v.parentNode.removeChild(v));g.ax(new g.kQ("Unable to load Botguard","from "+H))}},L)):z?(L=g.fm("SCRIPT"),z instanceof WJ?(L.textContent=DT(z),K$(L)):L.textContent=z,L.nonce=iz(document),document.head.appendChild(L),document.head.removeChild(L),window[u]?CUv(Q,f,u,b):(Q.Ni(4),g.ax(new g.kQ("Unable to load Botguard from JS")))): +g.ax(new g.kQ("Unable to load VM; no url or JS provided"))}; +CUv=function(Q,z,H,f){Q.Ni(5);var b=!!Q.qP&&EGJ.includes(g.id(Q.qP)||"");try{var L=new ZW({program:z,globalName:H,k8:{disable:!g.FZ("att_web_record_metrics")||!g.FZ("att_skip_metrics_for_cookieless_domains_ks")&&b,hF:"aGIf"}});L.Ab.then(function(){Q.Ni(6);f&&f(z)}); +Q.sB(L)}catch(u){Q.Ni(7),u instanceof Error&&g.ax(u)}}; +Nx=function(){var Q=g.Kn("yt.abuse.playerAttLoader");return Q&&["bgvma","bgvmb","bgvmc"].every(function(z){return z in Q})?Q:null}; +I7=function(){J_.apply(this,arguments)}; +A_=function(){}; +pTa=function(Q,z,H){for(var f=!1,b=g.n(Q.g7.entries()),L=b.next();!L.done;L=b.next())L=g.n(L.value).next().value,L.slotType==="SLOT_TYPE_PLAYER_BYTES"&&L.hh==="core"&&(f=!0);if(f){a:if(!H){Q=g.n(Q.g7.entries());for(H=Q.next();!H.done;H=Q.next())if(f=g.n(H.value),H=f.next().value,f=f.next().value,H.slotType==="SLOT_TYPE_IN_PLAYER"&&H.hh==="core"){H=f.layoutId;break a}H=void 0}H?z.wH(H):Cp("No triggering layout ID available when attempting to mute.")}}; +Y9=function(Q,z){this.EG=Q;this.wi=z}; +rh=function(){}; +sl=function(){}; +gGc=function(Q){g.h.call(this);var z=this;this.Rq=Q;this.Z=new Map;BX(this,"commandExecutorCommand",function(H,f,b){nGZ(z,H.commands,f,b)}); +BX(this,"clickTrackingParams",function(){})}; +Z2A=function(Q,z){BX(Q,z.We(),function(H,f,b){z.OW(H,f,b)})}; +BX=function(Q,z,H){Q.Sm();Q.Z.get(z)&&g.PT(Error("Extension name "+z+" already registered"));Q.Z.set(z,H)}; +nGZ=function(Q,z,H,f){z=z===void 0?[]:z;Q.Sm();var b=[],L=[];z=g.n(z);for(var u=z.next();!u.done;u=z.next())u=u.value,g.K(u,G6v)||g.K(u,$X6)?b.push(u):L.push(u);b=g.n(b);for(z=b.next();!z.done;z=b.next())PX(Q,z.value,H,f);L=g.n(L);for(b=L.next();!b.done;b=L.next())PX(Q,b.value,H,f)}; +PX=function(Q,z,H,f){Q.Sm();z.loggingUrls&&jxZ(Q,"loggingUrls",z.loggingUrls,H,f);z=g.n(Object.entries(z));for(var b=z.next();!b.done;b=z.next()){var L=g.n(b.value);b=L.next().value;L=L.next().value;b==="openPopupAction"?Q.Rq.get().Wn("innertubeCommand",{openPopupAction:L}):b==="confirmDialogEndpoint"?Q.Rq.get().Wn("innertubeCommand",{confirmDialogEndpoint:L}):FQu.hasOwnProperty(b)||jxZ(Q,b,L,H,f)}}; +jxZ=function(Q,z,H,f,b){if((Q=Q.Z.get(z))&&typeof Q==="function")try{Q(H,f,b)}catch(L){g.PT(L)}else z=new g.kQ("Unhandled field",z),g.ax(z)}; +a7=function(Q,z,H){this.wQ=Q;this.Z=z;this.Vl=H}; +Ul=function(Q){this.value=Q}; +cX=function(Q){this.value=Q}; +i1=function(Q){this.value=Q}; +h_=function(Q){this.value=Q}; +WX=function(Q){this.value=Q}; +Do=function(Q){this.value=Q}; +KP=function(Q){this.value=Q}; +Vd=function(){Ul.apply(this,arguments)}; +dh=function(Q){this.value=Q}; +md=function(Q){this.value=Q}; +wh=function(Q){this.value=Q}; +k9=function(Q){this.value=Q}; +TL=function(Q){this.value=Q}; +e7=function(Q){this.value=Q}; +l1=function(Q){this.value=Q}; +R7=function(Q){this.value=Q}; +QN=function(Q){this.value=Q}; +zg=function(Q){this.value=Q}; +He=function(){Ul.apply(this,arguments)}; +fq=function(Q){this.value=Q}; +bx=function(Q){this.value=Q}; +Lq=function(Q){this.value=Q}; +ux=function(Q){this.value=Q}; +SU=function(Q){this.value=Q}; +Xi=function(Q){this.value=Q}; +ve=function(Q){this.value=Q}; +yN=function(Q){this.value=Q}; +q9=function(Q){this.value=Q}; +M9=function(Q){this.value=Q}; +Cq=function(Q){this.value=Q}; +tm=function(Q){this.value=Q}; +Ed=function(Q){this.value=Q}; +pq=function(Q){this.value=Q}; +nq=function(Q){this.value=Q}; +g1=function(Q){this.value=Q}; +Zs=function(Q){this.value=Q}; +Gg=function(Q){this.value=Q}; +$L=function(Q){this.value=Q}; +jU=function(Q){this.value=Q}; +Fi=function(Q){this.value=Q}; +xL=function(Q){this.value=Q}; +Od=function(Q){this.value=Q}; +oX=function(Q){this.value=Q}; +Jm=function(Q){this.value=Q}; +N9=function(Q){this.value=Q}; +IX=function(Q){this.value=Q}; +Am=function(Q){this.value=Q}; +YL=function(Q){this.value=Q}; +r1=function(Q){this.value=Q}; +sd=function(Q){this.value=Q}; +Be=function(Q){this.value=Q}; +Pe=function(Q){this.value=Q}; +aX=function(Q){this.value=Q}; +Ud=function(Q){this.value=Q}; +ce=function(Q){this.value=Q}; +ix=function(Q){this.value=Q}; +hm=function(Q){this.value=Q}; +We=function(){Ul.apply(this,arguments)}; +Ds=function(Q){this.value=Q}; +Kq=function(){Ul.apply(this,arguments)}; +VN=function(){Ul.apply(this,arguments)}; +d1=function(){Ul.apply(this,arguments)}; +mc=function(){Ul.apply(this,arguments)}; +w1=function(){Ul.apply(this,arguments)}; +kL=function(Q){this.value=Q}; +Tg=function(Q){this.value=Q}; +eU=function(Q){this.value=Q}; +lx=function(Q){this.value=Q}; +RX=function(Q){this.value=Q}; +z3=function(Q,z,H){if(H&&!H.includes(Q.layoutType))return!1;z=g.n(z);for(H=z.next();!H.done;H=z.next())if(!QJ(Q.clientMetadata,H.value))return!1;return!0}; +Ha=function(){return""}; +xXJ=function(Q,z){switch(Q){case "TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL":return 0;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED":return 1;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED":return 2;case "TRIGGER_CATEGORY_SLOT_EXPIRATION":return 3;case "TRIGGER_CATEGORY_SLOT_FULFILLMENT":return 4;case "TRIGGER_CATEGORY_SLOT_ENTRY":return 5;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED":return 6;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED":return 7;default:return z(Q),8}}; +fN=function(Q,z,H,f){f=f===void 0?!1:f;ps.call(this,Q);this.D5=H;this.a_=f;this.args=[];z&&this.args.push(z)}; +e=function(Q,z,H,f){f=f===void 0?!1:f;ps.call(this,Q);this.D5=H;this.a_=f;this.args=[];z&&this.args.push(z)}; +bY=function(Q){var z=new Map;Q.forEach(function(H){z.set(H.getType(),H)}); +this.Z=z}; +QJ=function(Q,z){return Q.Z.has(z)}; +LN=function(Q,z){Q=Q.Z.get(z);if(Q!==void 0)return Q.get()}; +uY=function(Q){return Array.from(Q.Z.keys())}; +So=function(Q,z,H){if(H&&H!==Q.slotType)return!1;z=g.n(z);for(H=z.next();!H.done;H=z.next())if(!QJ(Q.clientMetadata,H.value))return!1;return!0}; +oGA=function(Q){var z;return((z=O2n.get(Q))==null?void 0:z.QT)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; +va=function(Q,z){var H={type:z.slotType,controlFlowManagerLayer:JlJ.get(z.hh)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};z.slotEntryTrigger&&(H.entryTriggerType=z.slotEntryTrigger.triggerType);z.slotPhysicalPosition!==1&&(H.slotPhysicalPosition=z.slotPhysicalPosition);if(Q){H.debugData={slotId:z.slotId};if(Q=z.slotEntryTrigger)H.debugData.slotEntryTriggerData=XE(Q);Q=z.slotFulfillmentTriggers;H.debugData.fulfillmentTriggerData=[];Q=g.n(Q);for(var f=Q.next();!f.done;f=Q.next())H.debugData.fulfillmentTriggerData.push(XE(f.value)); +z=z.slotExpirationTriggers;H.debugData.expirationTriggerData=[];z=g.n(z);for(Q=z.next();!Q.done;Q=z.next())H.debugData.expirationTriggerData.push(XE(Q.value))}return H}; +Nla=function(Q,z){var H={type:z.layoutType,controlFlowManagerLayer:JlJ.get(z.hh)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};Q&&(H.debugData={layoutId:z.layoutId});return H}; +XE=function(Q,z){var H={type:Q.triggerType};z!=null&&(H.category=z);Q.triggeringSlotId!=null&&(H.triggerSourceData||(H.triggerSourceData={}),H.triggerSourceData.associatedSlotId=Q.triggeringSlotId);Q.triggeringLayoutId!=null&&(H.triggerSourceData||(H.triggerSourceData={}),H.triggerSourceData.associatedLayoutId=Q.triggeringLayoutId);return H}; +IwL=function(Q,z,H,f){z={opportunityType:z};Q&&(f||H)&&(f=g.NT(f||[],function(b){return va(Q,b)}),z.debugData=Object.assign({},H&&H.length>0?{associatedSlotId:H}:{},f.length>0?{slots:f}:{})); +return z}; +qf=function(Q,z){return function(H){return Al_(yJ(Q),z.slotId,z.slotType,z.slotPhysicalPosition,z.hh,z.slotEntryTrigger,z.slotFulfillmentTriggers,z.slotExpirationTriggers,H.layoutId,H.layoutType,H.hh)}}; +Al_=function(Q,z,H,f,b,L,u,X,v,y,q){return{adClientDataEntry:{slotData:va(Q,{slotId:z,slotType:H,slotPhysicalPosition:f,hh:b,slotEntryTrigger:L,slotFulfillmentTriggers:u,slotExpirationTriggers:X,clientMetadata:new bY([])}),layoutData:Nla(Q,{layoutId:v,layoutType:y,hh:q,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],YN:[],wT:new Map,clientMetadata:new bY([]),cz:{}})}}}; +CN=function(Q){this.qc=Q;Q=Math.random();var z=this.qc.get();z=g.Mf(z.K.C().experiments,"html5_debug_data_log_probability");z=Number.isFinite(z)&&z>=0&&z<=1?z:0;this.Z=Q1){g.ax(new g.kQ("Exit already started",{current:Q.currentState}));var H=!1}else H=!0;if(!H)return!1;Q.currentState=2;Q.Z=z;return!0}; +g5=function(Q){if(Q.currentState!==2)return!1;Q.currentState=3;return!0}; +uSn=function(Q,z){var H=new Map;Q=g.n(Q);for(var f=Q.next();!f.done;f=Q.next()){f=f.value;if(f.layoutType==="LAYOUT_TYPE_MEDIA")var b="v";else f.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(b=LN(f.clientMetadata,"metadata_type_linked_in_player_layout_type"),b=b==="LAYOUT_TYPE_ENDCAP"||b==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":b==="LAYOUT_TYPE_SURVEY"?"s":b==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):b="u";H.set(f.layoutId,b);if(b==="u"){var L={};b=z;f=(L.c=f.layoutId,L);b.K.On("uct",f)}}Q= +z.jN();ZU={contentCpn:Q,Vt:H};f={};H=(f.ct=H.size,f.c=Q,f);z.K.On("acc",H)}; +Sxk=function(){ZU={contentCpn:"",Vt:new Map}}; +GR=function(Q){var z;return(z=ZU.Vt.get(Q))!=null?z:"u"}; +$K=function(Q,z,H){Q.K.On(z,H);X6p(Q)}; +vU6=function(Q){var z=Q.layoutId,H=Q.zN;if(Q.ri){var f={};$K(Q.wQ,"slso",(f.ec=z,f.is=H,f.ctp=GR(z),f))}}; +jM=function(Q){var z=Q.layoutId,H=Q.zN;if(Q.ri){var f={};$K(Q.wQ,"slse",(f.ec=z,f.is=H,f.ctp=GR(z),f))}}; +yTv=function(Q){var z=Q.layoutId,H=Q.zN,f=Q.wQ;Q.ri&&(Q={},$K(f,"sleo",(Q.xc=z,Q.is=H,Q.ctp=GR(z),Q)),X6p(f))}; +qxa=function(Q){var z=Q.cpn,H=Q.wQ;Q=Q.zN;var f=H.jN(),b={};$K(H,"ce",(b.ec=z,b.ia=z!==f,b.r=ZU.Vt.has(z),b.is=Q,b.ctp=GR(z),b))}; +X6p=function(Q){if(Q.jN()!==ZU.contentCpn){var z={};z=(z.c=ZU.contentCpn,z);Q.K.On("ccm",z)}}; +MhJ=function(Q){var z=Q.cpn,H=Q.wQ;Q=Q.zN;var f=H.jN(),b={};$K(H,"cx",(b.xc=z,b.ia=z!==f,b.r=ZU.Vt.has(z),b.is=Q,b.ctp=GR(z),b))}; +CAu=function(Q){this.params=Q;this.Z=new Set}; +thp=function(Q,z,H){if(!Q.Z.has(z)){Q.Z.add(z);var f={};Q.params.CE.Hz(z,Object.assign({},H,(f.p_ac=Q.params.adCpn,f.p_isv=Q.params.Lv5&&Q.params.rQ,f)))}}; +xK=function(Q,z,H){if(FI(Q.params.CE.qc.get(),!0)){var f=H.flush,b={};thp(Q,z,(b.cts=H.currentTimeSec,b.f=f,b))}}; +EUZ=function(Q,z){this.wQ=Q;this.qc=z}; +Oh=function(Q){var z=[];if(Q){Q=g.n(Object.entries(Q));for(var H=Q.next();!H.done;H=Q.next()){var f=g.n(H.value);H=f.next().value;f=f.next().value;f!==void 0&&(f=typeof f==="boolean"?""+ +f:(""+f).replace(/[:,=]/g,"_"),z.push(H+"."+f))}}return z.join(";")}; +oj=function(Q,z,H){z=z===void 0?{}:z;this.errorCode=Q;this.details=z;this.severity=H===void 0?0:H}; +JI=function(Q){return Q===1||Q===2}; +NC=function(Q,z){z=z===void 0?0:z;if(Q instanceof oj)return Q;Q=Q&&Q instanceof Error?Q:Error(""+Q);JI(z)?g.PT(Q):g.ax(Q);return new oj(z===1?"player.fatalexception":"player.exception",{name:""+Q.name,message:""+Q.message},z)}; +p6p=function(Q,z){function H(){var f=g.rc.apply(0,arguments);Q.removeEventListener("playing",H);z.apply(null,g.F(f))} +Q.addEventListener("playing",H)}; +Ij=function(){var Q=g.Kn("yt.player.utils.videoElement_");Q||(Q=g.fm("VIDEO"),g.D6("yt.player.utils.videoElement_",Q));return Q}; +AI=function(Q){var z=Ij();return!!(z&&z.canPlayType&&z.canPlayType(Q))}; +r5=function(Q){if(/opus/.test(Q)&&g.YK&&!JD("38")&&!g.mW())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(Q);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(Q);if(/webm/.test(Q)&&!JZc())return!1;Q==='audio/mp4; codecs="mp4a.40.2"'&&(Q='video/mp4; codecs="avc1.4d401f"');return!!AI(Q)}; +nUA=function(Q){try{var z=r5('video/mp4; codecs="avc1.42001E"')||r5('video/webm; codecs="vp9"');return(r5('audio/mp4; codecs="mp4a.40.2"')||r5('audio/webm; codecs="opus"'))&&(z||!Q)||AI('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(H){return"html5.missingapi"}}; +sh=function(){var Q=Ij();return!(!Q.webkitSupportsPresentationMode||typeof Q.webkitSetPresentationMode!=="function")}; +Bt=function(){var Q=Ij();try{var z=Q.muted;Q.muted=!z;return Q.muted!==z}catch(H){}return!1}; +gUc=function(){var Q;return((Q=navigator.connection)==null?void 0:Q.type)||""}; +g.Pt=function(){I4.apply(this,arguments)}; +aj=function(Q,z,H,f,b,L,u){this.sampleRate=Q===void 0?0:Q;this.numChannels=z===void 0?0:z;this.spatialAudioType=H===void 0?"SPATIAL_AUDIO_TYPE_NONE":H;this.Z=f===void 0?!1:f;this.L=b===void 0?0:b;this.B=L===void 0?0:L;this.audioQuality=u===void 0?"AUDIO_QUALITY_UNKNOWN":u}; +ia=function(Q,z,H,f,b,L,u,X,v){this.width=Q;this.height=z;this.quality=L||Uh(Q,z);this.Z=g.ct[this.quality];this.fps=H||0;this.stereoLayout=!b||f!=null&&f!=="UNKNOWN"&&f!=="RECTANGULAR"?0:b;this.projectionType=f?f==="EQUIRECTANGULAR"&&b===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":f:"UNKNOWN";(Q=u)||(Q=g.ct[this.quality],Q===0?Q="Auto":(z=this.fps,H=this.projectionType,Q=Q.toString()+(H==="EQUIRECTANGULAR"||H==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||H==="MESH"?"s":"p")+(z>55?"60":z>49?"50":z>39?"48":""))); +this.qualityLabel=Q;this.B=X||"";this.primaries=v||""}; +Uh=function(Q,z){var H=Math.max(Q,z);Q=Math.min(Q,z);z=hI[0];for(var f=0;f=Math.floor(L*16/9)*1.3||Q>=L*1.3)return z;z=b}return"tiny"}; +KG=function(Q,z,H){H=H===void 0?{}:H;this.id=Q;this.mimeType=z;H.oi>0||(H.oi=16E3);Object.assign(this,H);Q=g.n(this.id.split(";"));this.itag=Q.next().value;this.Z=Q.next().value;this.containerType=Wt(z);this.Rj=DU[this.itag]||""}; +VQ=function(Q){return Q.Rj==="9"||Q.Rj==="("||Q.Rj==="9h"||Q.Rj==="(h"}; +Zpn=function(Q){return Q.Rj==="H"||Q.Rj==="h"}; +d5=function(Q){return Q.Rj==="9h"||Q.Rj==="(h"}; +GSA=function(Q){return!!Q.AM&&!!Q.AM.fairplay&&(Q.Rj==="("||Q.Rj==="(h"||Q.Rj==="A"||Q.Rj==="MEAC3")||mq&&!!Q.AM&&Q.Rj==="1e"}; +w5=function(Q){return Q.Rj==="1"||Q.Rj==="1h"||mq&&Q.Rj==="1e"}; +kK=function(Q){return Q.Rj==="mac3"||Q.Rj==="meac3"||Q.Rj==="m"||Q.Rj==="i"}; +TR=function(Q){return Q.Rj==="MAC3"||Q.Rj==="MEAC3"||Q.Rj==="M"||Q.Rj==="I"}; +g.eM=function(Q){return Q.containerType===1}; +$Zp=function(Q){return Q.Rj==="("||Q.Rj==="(h"||Q.Rj==="H"||mq&&Q.Rj==="1e"}; +la=function(Q){return Q.mimeType==="application/x-mpegURL"}; +g.Rj=function(Q,z){return{itag:+Q.itag,lmt:z?0:Q.lastModified,xtags:Q.Z||""}}; +jQu=function(Q){var z=navigator.mediaCapabilities;if(z==null||!z.decodingInfo||Q.Rj==="f")return Promise.resolve();var H={type:Q.audio&&Q.video?"file":"media-source"};Q.video&&(H.video={contentType:Q.mimeType,width:Q.video.width||640,height:Q.video.height||360,bitrate:Q.oi*8||1E6,framerate:Q.video.fps||30});Q.audio&&(H.audio={contentType:Q.mimeType,channels:""+(Q.audio.numChannels||2),bitrate:Q.oi*8||128E3,samplerate:Q.audio.sampleRate||44100});return z.decodingInfo(H).then(function(f){Q.B=f})}; +QA=function(Q){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(Q)}; +zs=function(Q){return/(vp9|vp09|vp8|avc1|av01)/.test(Q)}; +Hs=function(Q){return Q.includes("vtt")||Q.includes("text/mp4")}; +Wt=function(Q){return Q.indexOf("/mp4")>=0?1:Q.indexOf("/webm")>=0?2:Q.indexOf("/x-flv")>=0?3:Q.indexOf("/vtt")>=0?4:0}; +f3=function(Q,z,H,f,b,L){var u=new aj;z in g.ct||(z="small");z==="light"&&(z="tiny");f&&b?(b=Number(b),f=Number(f)):(b=g.ct[z],f=Math.round(b*16/9));L=new ia(f,b,0,null,void 0,z,L);Q=unescape(Q.replace(/"/g,'"'));return new KG(H,Q,{audio:u,video:L})}; +bZ=function(Q){var z="id="+Q.id;Q.video&&(z+=", res="+Q.video.qualityLabel);var H,f;return z+", byterate=("+((H=Q.Mx)==null?void 0:H.toFixed(0))+", "+((f=Q.oi)==null?void 0:f.toFixed(0))+")"}; +L3=function(Q,z){return{start:function(H){return Q[H]}, +end:function(H){return z[H]}, +length:Q.length}}; +F58=function(Q,z,H){for(var f=[],b=[],L=0;L=z)return H}catch(f){}return-1}; +X$=function(Q,z){return SP(Q,z)>=0}; +xZ9=function(Q,z){if(!Q)return NaN;z=SP(Q,z);return z>=0?Q.start(z):NaN}; +vs=function(Q,z){if(!Q)return NaN;z=SP(Q,z);return z>=0?Q.end(z):NaN}; +yA=function(Q){return Q&&Q.length?Q.end(Q.length-1):NaN}; +q6=function(Q,z){Q=vs(Q,z);return Q>=0?Q-z:0}; +M6=function(Q,z,H){for(var f=[],b=[],L=0;LH||(f.push(Math.max(z,Q.start(L))-z),b.push(Math.min(H,Q.end(L))-z));return L3(f,b)}; +C3=function(Q,z,H,f){g.vf.call(this);var b=this;this.oB=Q;this.start=z;this.end=H;this.isActive=f;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.Dx={error:function(){!b.Sm()&&b.isActive&&b.publish("error",b)}, +updateend:function(){!b.Sm()&&b.isActive&&b.publish("updateend",b)}}; +this.oB.rZ(this.Dx);this.xL=this.isActive}; +EU=function(Q,z,H,f,b,L){g.vf.call(this);var u=this;this.nH=Q;this.VP=z;this.id=H;this.containerType=f;this.Rj=b;this.rQ=L;this.Tf=this.Aw=this.oz=null;this.Lv=!1;this.appendWindowStart=this.timestampOffset=0;this.RE=L3([],[]);this.Y6=!1;this.Sj=[];this.O0=ta?[]:void 0;this.Hc=function(v){return u.publish(v.type,u)}; +var X;if((X=this.nH)==null?0:X.addEventListener)this.nH.addEventListener("updateend",this.Hc),this.nH.addEventListener("error",this.Hc)}; +p3=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; +n3=function(Q,z){this.Mz=Q;this.Z=z===void 0?!1:z;this.B=!1}; +gp=function(Q,z,H){H=H===void 0?!1:H;g.h.call(this);this.mediaElement=Q;this.vI=z;this.isView=H;this.j=0;this.D=!1;this.S=!0;this.U=0;this.callback=null;this.N=!1;this.vI||(this.VP=this.mediaElement.ai());this.events=new g.Pt(this);g.W(this,this.events);this.L=new n3(this.vI?window.URL.createObjectURL(this.vI):this.VP.webkitMediaSourceURL,!0);Q=this.vI||this.VP;Aq(this.events,Q,["sourceopen","webkitsourceopen"],this.bim);Aq(this.events,Q,["sourceclose","webkitsourceclose"],this.DBc);this.Y={updateend:this.PA}}; +Opk=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; +oU9=function(Q,z){ZF(Q)?g.MH(function(){z(Q)}):Q.callback=z}; +JTL=function(Q,z,H){if(Gs){var f;$6(Q.mediaElement,{l:"mswssb",sr:(f=Q.mediaElement.HI)==null?void 0:f.Uq()},!1);z.rZ(Q.Y,Q);H.rZ(Q.Y,Q)}Q.Z=z;Q.B=H;g.W(Q,z);g.W(Q,H)}; +NUY=function(Q,z,H,f){f=z.mimeType+(f===void 0?"":f);var b=H.mimeType;z=z.Rj;H=H.Rj;var L;Q.Ze=(L=Q.vI)==null?void 0:L.addSourceBuffer(b);var u;Q.wh=f.split(";")[0]==="fakesb"?void 0:(u=Q.vI)==null?void 0:u.addSourceBuffer(f);Q.VP&&(Q.VP.webkitSourceAddId("0",b),Q.VP.webkitSourceAddId("1",f));L=new EU(Q.Ze,Q.VP,"0",Wt(b),H,!1);f=new EU(Q.wh,Q.VP,"1",Wt(f),z,!0);JTL(Q,L,f)}; +jP=function(Q){return!!Q.Z||!!Q.B}; +ZF=function(Q){try{return wp(Q)==="open"}catch(z){return!1}}; +wp=function(Q){if(Q.vI)return Q.vI.readyState;switch(Q.VP.webkitSourceState){case Q.VP.SOURCE_OPEN:return"open";case Q.VP.SOURCE_ENDED:return"ended";default:return"closed"}}; +k6=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; +IhZ=function(Q){ZF(Q)&&(Q.vI?Q.vI.endOfStream():Q.VP.webkitSourceEndOfStream(Q.VP.EOS_NO_ERROR))}; +AT_=function(Q,z,H,f){if(!Q.Z||!Q.B)return null;var b=Q.Z.isView()?Q.Z.oB:Q.Z,L=Q.B.isView()?Q.B.oB:Q.B,u=new gp(Q.mediaElement,Q.vI,!0);u.L=Q.L;JTL(u,new C3(b,z,H,f),new C3(L,z,H,f));ZF(Q)||Q.Z.WG(Q.Z.ex());return u}; +Yxc=function(Q){var z;(z=Q.Z)==null||z.v1();var H;(H=Q.B)==null||H.v1();Q.S=!1}; +Ts=function(){var Q=this;this.tA=this.fb=sJa;this.promise=new g.ge(function(z,H){Q.fb=z;Q.tA=H})}; +eP=function(){g.h.call(this);this.uR=!1;this.Mz=null;this.Y=this.j=!1;this.D=new g.zM;this.HI=null;g.W(this,this.D)}; +lZ=function(Q){Q=Q.MS();return Q.length<1?NaN:Q.end(Q.length-1)}; +rT9=function(Q){!Q.B&&Opk()&&(Q.L?Q.L.then(function(){return rT9(Q)}):Q.e3()||(Q.B=Q.AB()))}; +sQp=function(Q){Q.B&&(Q.B.dispose(),Q.B=void 0)}; +$6=function(Q,z,H){var f;((f=Q.HI)==null?0:f.vz())&&Q.HI.On("rms",z,H===void 0?!1:H)}; +BUc=function(Q,z,H){Q.isPaused()||Q.getCurrentTime()>z||H>10||(Q.play(),g.gR(function(){BUc(Q,Q.getCurrentTime(),H+1)},500))}; +PAp=function(Q,z){Q.Mz&&Q.Mz.jH(z)||(Q.Mz&&Q.Mz.dispose(),Q.Mz=z)}; +Rm=function(Q){return q6(Q.Ux(),Q.getCurrentTime())}; +ahv=function(Q,z){if(Q.OG()===0||Q.hasError())return!1;var H=Q.getCurrentTime()>0;return z>=0&&(Q=Q.MS(),Q.length||!H)?X$(Q,z):H}; +Qu=function(Q){Q.e3()&&(Q.HI&&Q.HI.K$("rs_s"),kw&&Q.getCurrentTime()>0&&Q.seekTo(0),Q.OH(),Q.load(),PAp(Q,null));delete Q.L}; +zE=function(Q){switch(Q.JF()){case 2:return"progressive.net.retryexhausted";case 3:return Q=Q.q8(),(Q==null?0:Q.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||UZJ&&(Q==null?0:Q.includes("audio_output_change"))?"capability.changed":"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}}; +g.HR=function(Q,z,H){this.WS=z===void 0?null:z;this.seekSource=H===void 0?null:H;this.state=Q||64}; +fx=function(Q,z,H){H=H===void 0?!1:H;return cTv(Q,z.getCurrentTime(),(0,g.IE)(),Rm(z),H)}; +bC=function(Q,z,H,f){if(!(z===Q.state&&H===Q.WS&&f===Q.seekSource||z!==void 0&&(z&128&&!H||z&2&&z&16))){var b;if(b=z)b=z||Q.state,b=!!(b&16||b&32);Q=new g.HR(z,H,b?f?f:Q.seekSource:null)}return Q}; +Lx=function(Q,z,H){return bC(Q,Q.state|z,null,H===void 0?null:H)}; +uC=function(Q,z){return bC(Q,Q.state&~z,null,null)}; +Sm=function(Q,z,H,f){return bC(Q,(Q.state|z)&~H,null,f===void 0?null:f)}; +g.w=function(Q,z){return!!(Q.state&z)}; +g.Xn=function(Q,z){return z.state===Q.state&&z.WS===Q.WS}; +vR=function(Q){return Q.isPlaying()&&!g.w(Q,16)&&!g.w(Q,32)}; +yu=function(Q){return g.w(Q,128)?-1:g.w(Q,2)?0:g.w(Q,2048)?3:g.w(Q,64)?-1:g.w(Q,1)&&!g.w(Q,32)?3:g.w(Q,8)?1:g.w(Q,4)?2:-1}; +Mv=function(Q,z,H,f,b,L,u,X,v,y,q,M,C,t,E,G,x){g.h.call(this);var J=this;this.KP=Q;this.slot=z;this.layout=H;this.Vl=f;this.Bz=b;this.cI=L;this.K3=u;this.Gq=X;this.le=v;this.NK=y;this.position=M;this.j=C;this.qc=t;this.b1=E;this.QP=G;this.context=x;this.rP=!0;this.S=!1;this.Ri="not_rendering";this.B=!1;this.L=new pG;Q=LN(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.Ij=new JX(H.wT,this.Vl,Q,H.layoutId);var I;Q=((I=qv(this))==null?void 0:I.progressCommands)||[];this.D=new av_(v, +Q,H.layoutId,function(){return J.BC()}); +this.Z=new CAu({adCpn:this.layout.layoutId,CE:x.CE,Lv5:this.b1,rQ:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; +Cx=function(Q){return{layoutId:Q.qS(),zN:Q.b1,wQ:Q.cI.get(),ri:Q.MB()}}; +tG=function(Q,z){return z.layoutId!==Q.layout.layoutId?(Q.KP.HS(Q.slot,z,new fN("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+Q.layout.layoutId+("and LayoutType: "+Q.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; +EH=function(Q){Q.Ri="rendering_start_requested";Q.NK(-1)}; +qv=function(Q){return LN(Q.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; +ipc=function(Q){Cp("Received layout exit signal when not in layout exit flow.",Q.slot,Q.layout)}; +hvc=function(Q){var z;return((z=px(Q.cI.get(),2))==null?void 0:z.clientPlaybackNonce)||""}; +nx=function(Q,z){switch(z){case "normal":Q.CH("complete");break;case "skipped":Q.CH("skip");break;case "abandoned":sB(Q.Ij,"impression")&&Q.CH("abandon")}}; +gn=function(Q,z){Q.S||(z=new g.tT(z.state,new g.HR),Q.S=!0);return z}; +Z$=function(Q,z){MC(z)?Q.NK(1):g.pp(z,4)&&!g.pp(z,2)&&Q.jY();Ex(z,4)<0&&!(Ex(z,2)<0)&&Q.lM()}; +W56=function(Q){Q.position===0&&(Q.Gq.get(),Q=LN(Q.layout.clientMetadata,"metadata_type_ad_placement_config").kind,Q={adBreakType:GE(Q)},hN("ad_bl"),g.WC(Q))}; +$d=function(Q,z){Yy(Q.Ij,z,!Q.B)}; +K5Y=function(Q){var z;return(((z=qv(Q))==null?void 0:z.progressCommands)||[]).findIndex(function(H){return!!g.K(H==null?void 0:H.command,DZJ)})!==-1}; +jm=function(Q,z){var H=LN(Q.clientMetadata,"metadata_type_eligible_for_ssap");return H===void 0?(Cp("Expected SSAP eligibility in PlayerBytes factory",Q),!1):z.MB(H)}; +Fn=function(Q,z){if(!w4(z.get(),"html5_ssap_pass_transition_reason"))return 3;switch(Q){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return Cp("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return Cp("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:Q}),3;default:LS(Q,"unknown layoutExitReason")}}; +VhY=function(Q){Cp("getExitReason: unexpected reason",void 0,void 0,{reason:Q})}; +xd=function(Q,z){if(w4(z.get(),"html5_ssap_pass_transition_reason"))switch(Q){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return VhY(Q),"abandoned";case 3:case 1:return VhY(Q),"error";default:LS(Q,"unexpected transition reason")}else switch(Q){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return Cp("getExitReason: unexpected reason",void 0,void 0,{reason:Q}),"error";default:LS(Q,"unexpected transition reason")}}; +OH=function(Q,z,H){Kj(Q,H)||dE(Q,z,H);Kj(Q,"video_to_ad")||dE(Q,z,"video_to_ad");Kj(Q,"ad_to_video")||dE(Q,z,"ad_to_video");Kj(Q,"ad_to_ad")||dE(Q,z,"ad_to_ad")}; +oc=function(Q,z,H,f,b,L,u,X,v,y,q,M,C,t,E,G,x,J){Mv.call(this,Q,z,H,f,b,L,u,X,y,q,M,C,t,E,G,x,J);var I=this;this.Rq=v;this.jd=M;this.Ua=!0;this.rG=this.rS=0;this.Dq=pg(function(){vU6(Cx(I));I.KP.Fa(I.slot,I.layout)}); +this.pU=pg(function(){yTv(Cx(I));I.Ri!=="rendering_stop_requested"&&I.jd(I);I.layoutExitReason?I.KP.kN(I.slot,I.layout,I.layoutExitReason):ipc(I)}); +this.hM=new g.OE(200);this.hM.listen("tick",function(){I.A7()}); +g.W(this,this.hM)}; +Nv=function(Q){Q.rG=Date.now();JG(Q,Q.rS);Q.hM.start()}; +dZ6=function(Q){Q.rS=Q.BC();Q.IK(Q.rS/1E3,!0);JG(Q,Q.rS)}; +JG=function(Q,z){z={current:z/1E3,duration:Q.BC()/1E3};Q.Rq.get().Wn("onAdPlaybackProgress",z)}; +Ic=function(Q){oc.call(this,Q.KP,Q.slot,Q.AN,Q.Vl,Q.Bz,Q.cI,Q.K3,Q.Gq,Q.Rq,Q.le,Q.NK,Q.jd,Q.gN,Q.Ny,Q.qc,Q.b1,Q.QP,Q.context)}; +AG=function(Q){oc.call(this,Q.KP,Q.slot,Q.AN,Q.Vl,Q.Bz,Q.cI,Q.K3,Q.Gq,Q.Rq,Q.le,Q.NK,Q.jd,Q.gN,Q.Ny,Q.qc,Q.b1,Q.QP,Q.context)}; +Yd=function(){AG.apply(this,arguments)}; +mZu=function(Q){return jm(Q.slot,Q.qc.get())?new Yd(Q):new Ic(Q)}; +BR=function(Q){Mv.call(this,Q.callback,Q.slot,Q.AN,Q.Vl,Q.Bz,Q.cI,Q.K3,Q.Gq,Q.le,Q.NK,Q.jd,Q.gN,Q.Ny,Q.qc,Q.b1,Q.QP,Q.context);var z=this;this.adCpn="";this.Mq=this.rC=0;this.Dq=pg(function(){vU6(Cx(z));z.KP.Fa(z.slot,z.layout)}); +this.pU=pg(function(){yTv(Cx(z));z.Ri!=="rendering_stop_requested"&&z.jd(z);z.layoutExitReason?z.KP.kN(z.slot,z.layout,z.layoutExitReason):ipc(z)}); +this.Xt=Q.Xt;this.t7=Q.t7;this.n5=Q.n5;this.Rq=Q.Rq;this.sx=Q.sx;this.jd=Q.jd;if(!this.MB()){w4(this.qc.get(),"html5_disable_media_load_timeout")||(this.V7=new g.lp(function(){z.Ra("load_timeout",new fN("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); +Q=rn(this.qc.get());var H=sH(this.qc.get());Q&&H&&(this.aZ=new g.lp(function(){var f=LN(z.layout.clientMetadata,"metadata_type_preload_player_vars");f&&z.t7.get().K.preloadVideoByPlayerVars(f,2,300)}))}}; +kS9=function(Q,z){var H=LN(z.clientMetadata,"metadata_type_ad_video_id"),f=LN(z.clientMetadata,"metadata_type_legacy_info_card_vast_extension");H&&f&&Q.sx.get().K.C().f3.add(H,{BV:f});(z=LN(z.clientMetadata,"metadata_type_sodar_extension_data"))&&Tl8(Q.Xt.get(),z);w6n(Q.K3.get(),!1)}; +TUY=function(Q){w6n(Q.K3.get(),!0);var z;((z=Q.shrunkenPlayerBytesConfig)==null?0:z.shouldRequestShrunkenPlayerBytes)&&Q.K3.get().Pe(!1)}; +PR=function(){BR.apply(this,arguments)}; +ac=function(){PR.apply(this,arguments)}; +evn=function(Q){return mZu(Object.assign({},Q,{KP:Q.callback,NK:function(){}}))}; +lhc=function(Q){return new BR(Object.assign({},Q,{NK:function(z){Q.Rq.get().Wn("onAdIntroStateChange",z)}}))}; +Rv_=function(Q){function z(H){Q.Rq.get().hQ(H)} +return jm(Q.slot,Q.qc.get())?new ac(Object.assign({},Q,{NK:z})):new BR(Object.assign({},Q,{NK:z}))}; +UH=function(Q){for(var z=Q.AN,H=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],f=g.n(NS()),b=f.next();!b.done;b=f.next())H.push(b.value);if(ex(z,{q4:H,tM:["LAYOUT_TYPE_MEDIA_BREAK"]}))return evn(Q);z=Q.AN;H=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];f=g.n(NS());for(b=f.next();!b.done;b=f.next())H.push(b.value);if(ex(z,{q4:H,tM:["LAYOUT_TYPE_MEDIA"]}))return QJ(Q.AN.clientMetadata,"metadata_type_ad_intro")?lhc(Q):Rv_(Q)}; +zAv=function(Q){var z=LN(Q.clientMetadata,"metadata_type_ad_placement_config").kind,H=LN(Q.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:Q.layoutId,adType:Qop(H),adBreakType:GE(z)}}; +GE=function(Q){switch(Q){case "AD_PLACEMENT_KIND_START":return"LATENCY_AD_BREAK_TYPE_PREROLL";case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return"LATENCY_AD_BREAK_TYPE_MIDROLL";case "AD_PLACEMENT_KIND_END":return"LATENCY_AD_BREAK_TYPE_POSTROLL";default:return"LATENCY_AD_BREAK_TYPE_UNKNOWN"}}; +Qop=function(Q){switch(Q){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; +Hj8=function(Q){try{return new cR(Q.Hr,Q.slot,Q.layout,Q.fp,Q.kJ,Q.cI,Q.xN,Q.t7,Q.r4,Q.K3,Q.JFI,Q)}catch(z){}}; +cR=function(Q,z,H,f,b,L,u,X,v,y,q,M){g.h.call(this);this.Hr=Q;this.slot=z;this.layout=H;this.fp=f;this.kJ=b;this.cI=L;this.xN=u;this.t7=X;this.r4=v;this.K3=y;this.params=M;this.rP=!0;Q=UH(q);if(!Q)throw Error("Invalid params for sublayout");this.Fg=Q}; +fAn=function(){this.Z=1;this.B=new pG}; +iC=function(Q,z,H,f,b,L,u,X,v,y,q,M,C){g.h.call(this);this.callback=Q;this.cI=z;this.xN=H;this.t7=f;this.K3=b;this.Gq=L;this.yO=u;this.slot=X;this.layout=v;this.fp=y;this.nE=q;this.r4=M;this.qc=C;this.rP=!0;this.Pk=!1;this.uW=[];this.yY=-1;this.cM=!1;this.Y$=new fAn}; +bjc=function(Q){var z;return(z=Q.layout.qF)!=null?z:LN(Q.layout.clientMetadata,"metadata_type_sub_layouts")}; +hG=function(Q){return{wQ:Q.cI.get(),zN:!1,ri:Q.MB()}}; +Ly8=function(Q,z,H){if(Q.Kt()===Q.uW.length-1){var f,b;Cp("Unexpected skip requested during the last sublayout",(f=Q.Ft())==null?void 0:f.hZ(),(b=Q.Ft())==null?void 0:b.Ql(),{requestingSlot:z,requestingLayout:H})}}; +u7n=function(Q,z,H){return H.layoutId!==WR(Q,z,H)?(Cp("onSkipRequested for a PlayerBytes layout that is not currently active",Q.hZ(),Q.Ql()),!1):!0}; +SSa=function(Q){Q.Kt()===Q.uW.length-1&&Cp("Unexpected skip with target requested during the last sublayout")}; +XCZ=function(Q,z,H){return H.renderingContent===void 0&&H.layoutId!==WR(Q,z,H)?(Cp("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",Q.hZ(),Q.Ql(),{requestingSlot:z,requestingLayout:H}),!1):!0}; +vxL=function(Q,z,H,f){var b=LN(z.Ql().clientMetadata,"metadata_type_ad_pod_skip_target");if(b&&b>0&&b0)){Cp("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",Q.slot,Q.layout,{indexToPlay:z,layoutId:Q.layout.layoutId});break a}Q.yY=z;z=Q.Ft();if(Q.Kt()>0&&!Q.MB()){var H=Q.Gq.get();H.B=!1;var f={};H.Z&&H.videoId&&(f.cttAuthInfo={token:H.Z,videoId:H.videoId});DA("ad_to_ad",f)}Q.oL(z)}}; +dn=function(Q){iC.call(this,Q.Hr,Q.cI,Q.xN,Q.t7,Q.K3,Q.Gq,Q.yO,Q.slot,Q.layout,Q.fp,Q.nE,Q.r4,Q.qc)}; +MVa=function(Q){(Q=Q.Ft())&&Q.Gn()}; +mn=function(Q){iC.call(this,Q.Hr,Q.cI,Q.xN,Q.t7,Q.K3,Q.Gq,Q.yO,Q.slot,Q.layout,Q.fp,Q.nE,Q.r4,Q.qc);this.b2=void 0}; +Cbn=function(Q,z){Q.a$()&&!g5(Q.Y$.B)||Q.callback.kN(Q.slot,Q.layout,z)}; +wn=function(Q){return w4(Q.qc.get(),"html5_ssap_pass_transition_reason")}; +tVp=function(Q,z,H){z.dZ().currentState<2&&(H=xd(H,Q.qc),z.eA(z.Ql(),H));H=z.dZ().Z;Q.GC(Q.slot,z.Ql(),H)}; +Ex8=function(Q,z){if(Q.Y$.B.currentState<2){var H=xd(z,Q.qc);H==="error"?Q.callback.HS(Q.slot,Q.layout,new fN("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:z},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):Vu(Q.nE,Q.layout,H)}}; +kd=function(Q,z,H){z.dZ().currentState>=2||(z.eA(z.Ql(),H),g5(z.dZ())&&(Nf(Q.yO,Q.slot,z.Ql(),H),Q.b2=void 0))}; +pCu=function(Q,z){Q.Y$.Z===2&&z!==Q.jN()&&Cp("onClipEntered: unknown cpn",Q.slot,Q.layout,{cpn:z})}; +nxk=function(Q,z){var H=Q.Ft();if(H){var f=H.Ql().layoutId,b=Q.Kt()+1;Q.a$()?kd(Q,H,z):H.eA(H.Ql(),z);b>=0&&bb&&u.To(q,b-f);return q}; +oxa=function(Q,z,H){var f=LN(z.clientMetadata,"metadata_type_sodar_extension_data");if(f)try{Tl8(H,f)}catch(b){Cp("Unexpected error when loading Sodar",Q,z,{error:b})}}; +JNL=function(Q,z,H,f,b,L,u){HZ(Q,z,new g.tT(H,new g.HR),f,b,u,!1,L)}; +HZ=function(Q,z,H,f,b,L,u,X){u=u===void 0?!0:u;MC(H)&&CG(b,0,null)&&(!sB(Q,"impression")&&X&&X(),Q.CH("impression"));sB(Q,"impression")&&(g.pp(H,4)&&!g.pp(H,2)&&Q.IJ("pause"),Ex(H,4)<0&&!(Ex(H,2)<0)&&Q.IJ("resume"),g.pp(H,16)&&b>=.5&&Q.IJ("seek"),u&&g.pp(H,2)&&f6(Q,H.state,z,f,b,L))}; +f6=function(Q,z,H,f,b,L,u,X){sB(Q,"impression")&&(L?(L=b-f,L=L>=-1&&L<=2):L=Math.abs(f-b)<=1,bB(Q,z,L?f:b,H,f,u,X&&L),L&&Q.CH("complete"))}; +bB=function(Q,z,H,f,b,L,u){rP(Q,H*1E3,u);b<=0||H<=0||(z==null?0:g.w(z,16))||(z==null?0:g.w(z,32))||(CG(H,b*.25,f)&&(L&&!sB(Q,"first_quartile")&&L("first"),Q.CH("first_quartile")),CG(H,b*.5,f)&&(L&&!sB(Q,"midpoint")&&L("second"),Q.CH("midpoint")),CG(H,b*.75,f)&&(L&&!sB(Q,"third_quartile")&&L("third"),Q.CH("third_quartile")))}; +NEc=function(Q,z){sB(Q,"impression")&&Q.IJ(z?"fullscreen":"end_fullscreen")}; +IAa=function(Q){sB(Q,"impression")&&Q.IJ("clickthrough")}; +ANJ=function(Q){Q.IJ("active_view_measurable")}; +YSu=function(Q){sB(Q,"impression")&&!sB(Q,"seek")&&Q.IJ("active_view_fully_viewable_audible_half_duration")}; +rNL=function(Q){sB(Q,"impression")&&!sB(Q,"seek")&&Q.IJ("active_view_viewable")}; +sou=function(Q){sB(Q,"impression")&&!sB(Q,"seek")&&Q.IJ("audio_audible")}; +BEu=function(Q){sB(Q,"impression")&&!sB(Q,"seek")&&Q.IJ("audio_measurable")}; +PbY=function(Q,z,H,f,b,L,u,X,v,y,q,M){this.callback=Q;this.slot=z;this.layout=H;this.xN=f;this.Ij=b;this.K3=L;this.eZ=u;this.Bz=X;this.Xt=v;this.qc=y;this.Vl=q;this.cI=M;this.Ua=!0;this.Tq=this.Ri=null;this.adCpn=void 0;this.Z=!1}; +aAA=function(Q,z,H){var f;zT(Q.Vl.get(),"ads_qua","cpn."+LN(Q.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((f=px(Q.cI.get(),2))==null?void 0:f.clientPlaybackNonce)+";qt."+z+";clr."+H)}; +Uq8=function(Q,z){var H,f;zT(Q.Vl.get(),"ads_imp","cpn."+LN(Q.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((H=px(Q.cI.get(),2))==null?void 0:H.clientPlaybackNonce)+";clr."+z+";skp."+!!g.K((f=LN(Q.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:f.skipOrPreviewRenderer,L6))}; +uB=function(Q){return{enterMs:LN(Q.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:LN(Q.clientMetadata,"metadata_type_layout_exit_ms")}}; +Sp=function(Q,z,H,f,b,L,u,X,v,y,q,M,C,t){em.call(this,Q,z,H,f,b,u,X,v,y,M);this.eZ=L;this.Xt=q;this.Bz=C;this.qc=t;this.Tq=this.Ri=null}; +cNu=function(Q,z){var H;zT(Q.Vl.get(),"ads_imp","acpn."+((H=px(Q.cI.get(),2))==null?void 0:H.clientPlaybackNonce)+";clr."+z)}; +ijJ=function(Q,z,H){var f;zT(Q.Vl.get(),"ads_qua","cpn."+LN(Q.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((f=px(Q.cI.get(),2))==null?void 0:f.clientPlaybackNonce)+";qt."+z+";clr."+H)}; +XO=function(Q,z,H,f,b,L,u,X,v,y,q,M,C,t,E,G,x,J,I,r,U){this.r4=Q;this.fp=z;this.nE=H;this.cI=f;this.xN=b;this.K3=L;this.Vl=u;this.eZ=X;this.u8=v;this.Bz=y;this.Xt=q;this.t7=M;this.n5=C;this.Gq=t;this.Rq=E;this.le=G;this.sx=x;this.qc=J;this.Z=I;this.context=r;this.QP=U}; +vZ=function(Q,z,H,f,b,L,u,X,v,y,q,M,C,t,E,G,x,J){this.r4=Q;this.fp=z;this.nE=H;this.Vl=f;this.Bz=b;this.Xt=L;this.t7=u;this.cI=X;this.K3=v;this.n5=y;this.Gq=q;this.Rq=M;this.le=C;this.sx=t;this.qc=E;this.xN=G;this.context=x;this.QP=J}; +hAk=function(Q,z,H,f){Xp.call(this,"survey-interstitial",Q,z,H,f)}; +y0=function(Q,z,H,f,b){gP.call(this,H,Q,z,f);this.Vl=b;Q=LN(z.clientMetadata,"metadata_type_ad_placement_config");this.Ij=new JX(z.wT,b,Q,z.layoutId)}; +qM=function(Q){return Math.round(Q.width)+"x"+Math.round(Q.height)}; +C6=function(Q,z,H){H=H===void 0?MM:H;H.widthQ.width*Q.height*.2)return{fC:3,eP:501,errorMessage:"ad("+qM(H)+") to container("+qM(Q)+") ratio exceeds limit."};if(H.height>Q.height/3-z)return{fC:3,eP:501,errorMessage:"ad("+qM(H)+") covers container("+qM(Q)+") center."}}; +Wy9=function(Q,z){var H=LN(Q.clientMetadata,"metadata_type_ad_placement_config");return new JX(Q.wT,z,H,Q.layoutId)}; +t2=function(Q){return LN(Q.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; +Ev=function(Q,z,H,f){Xp.call(this,"invideo-overlay",Q,z,H,f);this.interactionLoggingClientData=f}; +p6=function(Q,z,H,f,b,L,u,X,v,y,q,M){gP.call(this,L,Q,z,b);this.Vl=H;this.D=u;this.K3=X;this.le=v;this.qc=y;this.j=q;this.S=M;this.Ij=Wy9(z,H)}; +DqJ=function(){var Q=["metadata_type_invideo_overlay_ad_renderer"];NS().forEach(function(z){Q.push(z)}); +return{q4:Q,tM:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; +n6=function(Q,z,H,f,b,L,u,X,v,y,q,M,C){gP.call(this,L,Q,z,b);this.Vl=H;this.D=u;this.N=X;this.K3=v;this.le=y;this.qc=q;this.j=M;this.S=C;this.Ij=Wy9(z,H)}; +Kyc=function(){for(var Q=["metadata_type_invideo_overlay_ad_renderer"],z=g.n(NS()),H=z.next();!H.done;H=z.next())Q.push(H.value);return{q4:Q,tM:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; +g0=function(Q){this.K3=Q;this.Z=!1}; +VVa=function(Q,z,H){Xp.call(this,"survey",Q,{},z,H)}; +Zi=function(Q,z,H,f,b,L,u){gP.call(this,H,Q,z,f);this.D=b;this.K3=L;this.qc=u}; +dqn=function(Q,z,H,f,b,L,u,X,v,y){this.ZS=Q;this.K3=z;this.Vl=H;this.D=f;this.Bz=b;this.B=L;this.L=u;this.le=X;this.qc=v;this.Z=y}; +mqv=function(Q,z,H,f,b,L,u,X,v,y){this.ZS=Q;this.K3=z;this.Vl=H;this.D=f;this.Bz=b;this.B=L;this.L=u;this.le=X;this.qc=v;this.Z=y}; +GT=function(Q,z,H,f,b,L,u,X,v,y){fG.call(this,Q,z,H,f,b,L,u,v);this.M0=X;this.cI=y}; +wC8=function(){var Q=QQ8();Q.q4.push("metadata_type_ad_info_ad_metadata");return Q}; +kvp=function(Q,z,H,f,b,L,u){this.ZS=Q;this.K3=z;this.Vl=H;this.B=f;this.M0=b;this.Z=L;this.cI=u}; +TEv=function(Q,z,H,f,b,L,u,X){this.ZS=Q;this.K3=z;this.Vl=H;this.B=f;this.M0=b;this.Z=L;this.qc=u;this.cI=X}; +$E=function(Q,z){this.slotId=z;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=Q(this.triggerType)}; +jp=function(Q,z){this.adPodIndex=Q;this.Z=z.length;this.adBreakLengthSeconds=z.reduce(function(f,b){return f+b},0); +var H=0;for(Q+=1;Q0}; +ug=function(Q){return!!(Q.OHn&&Q.slot&&Q.layout)}; +SG=function(Q){var z,H=(z=Q.config)==null?void 0:z.adPlacementConfig;Q=Q.renderer;return!(!H||H.kind==null||!Q)}; +yra=function(Q){if(!R9(Q.adLayoutMetadata))return!1;Q=Q.renderingContent;return g.K(Q,vt)||g.K(Q,yQ)||g.K(Q,SM)||g.K(Q,XI)?!0:!1}; +X4=function(Q){return Q.playerVars!==void 0&&Q.pings!==void 0&&Q.externalVideoId!==void 0}; +Ey=function(Q){if(!R9(Q.adLayoutMetadata))return!1;Q=Q.renderingContent;var z=g.K(Q,vc);return z?yb(z):(z=g.K(Q,qd))?X4(z):(z=g.K(Q,Md))?z.playerVars!==void 0:(z=g.K(Q,vt))?z.durationMilliseconds!==void 0:g.K(Q,CY)||g.K(Q,tA)?!0:!1}; +yb=function(Q){Q=(Q.sequentialLayouts||[]).map(function(z){return g.K(z,pY)}); +return Q.length>0&&Q.every(Ey)}; +gg=function(Q){return R9(Q.adLayoutMetadata)?(Q=g.K(Q.renderingContent,nY))&&Q.pings?!0:!1:!1}; +pma=function(Q){if(!R9(Q.adLayoutMetadata))return!1;if(g.K(Q.renderingContent,q1Y)||g.K(Q.renderingContent,Md9))return!0;var z=g.K(Q.renderingContent,Zq);return g.K(Q.renderingContent,GC)||g.K(z==null?void 0:z.sidePanel,CGu)||g.K(z==null?void 0:z.sidePanel,td9)||g.K(z==null?void 0:z.sidePanel,ES9)?!0:!1}; +$rp=function(Q){var z;(z=!Q)||(z=Q.adSlotMetadata,z=!((z==null?void 0:z.slotId)!==void 0&&(z==null?void 0:z.slotType)!==void 0));if(z||!(nSc(Q)||Q.slotEntryTrigger&&Q.slotFulfillmentTriggers&&Q.slotExpirationTriggers))return!1;var H;Q=(H=Q.fulfillmentContent)==null?void 0:H.fulfilledLayout;return(H=g.K(Q,pY))?Ey(H):(H=g.K(Q,$N))?pma(H):(H=g.K(Q,gSA))?yra(H):(H=g.K(Q,Z4L))?Xmn(H):(H=g.K(Q,Gpu))?R9(H.adLayoutMetadata)?g.K(H.renderingContent,Qb)?!0:!1:!1:(Q=g.K(Q,IV))?gg(Q):!1}; +nSc=function(Q){var z;Q=g.K((z=Q.fulfillmentContent)==null?void 0:z.fulfilledLayout,$N);var H;return Q&&((H=Q.adLayoutMetadata)==null?void 0:H.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&Q.layoutExitNormalTriggers===void 0}; +jtk=function(Q){var z;return(Q==null?void 0:(z=Q.adSlotMetadata)==null?void 0:z.slotType)==="SLOT_TYPE_IN_PLAYER"}; +xrn=function(Q,z){var H;if((H=Q.questions)==null||!H.length||!Q.playbackCommands||(z===void 0||!z)&&Q.questions.length!==1)return!1;Q=g.n(Q.questions);for(z=Q.next();!z.done;z=Q.next()){z=z.value;var f=H=void 0,b=((H=g.K(z,AA))==null?void 0:H.surveyAdQuestionCommon)||((f=g.K(z,YN))==null?void 0:f.surveyAdQuestionCommon);if(!Fta(b))return!1}return!0}; +O4J=function(Q){Q=((Q==null?void 0:Q.playerOverlay)||{}).instreamSurveyAdRenderer;var z;if(Q)if(Q.playbackCommands&&Q.questions&&Q.questions.length===1){var H,f=((z=g.K(Q.questions[0],AA))==null?void 0:z.surveyAdQuestionCommon)||((H=g.K(Q.questions[0],YN))==null?void 0:H.surveyAdQuestionCommon);z=Fta(f)}else z=!1;else z=!1;return z}; +Fta=function(Q){if(!Q)return!1;Q=g.K(Q.instreamAdPlayerOverlay,rg);var z=g.K(Q==null?void 0:Q.skipOrPreviewRenderer,L6),H=g.K(Q==null?void 0:Q.adInfoRenderer,sy);return(g.K(Q==null?void 0:Q.skipOrPreviewRenderer,Bc)||z)&&H?!0:!1}; +oSa=function(Q){return Q.linearAds!=null&&R9(Q.adLayoutMetadata)}; +JrA=function(Q){return Q.linearAd!=null&&Q.adVideoStart!=null}; +Ntp=function(Q){if(isNaN(Number(Q.timeoutSeconds))||!Q.text||!Q.ctaButton||!g.K(Q.ctaButton,g.Pc)||!Q.brandImage)return!1;var z;return Q.backgroundImage&&g.K(Q.backgroundImage,aV)&&((z=g.K(Q.backgroundImage,aV))==null?0:z.landscape)?!0:!1}; +Uy=function(Q,z,H,f,b,L,u){g.h.call(this);this.qc=Q;this.Z=z;this.L=f;this.cI=b;this.D=L;this.B=u}; +Y1Y=function(Q,z,H){var f,b=((f=H.adSlots)!=null?f:[]).map(function(X){return g.K(X,cc)}); +if(H.un)if(LN(z.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))tX(Q.Z.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},z.slotId); +else{if(Q.qc.get().K.C().V("h5_check_forecasting_renderer_for_throttled_midroll")){var L=H.LW.filter(function(X){var v;return((v=X.renderer)==null?void 0:v.clientForecastingAdRenderer)!=null}); +L.length!==0?Itk(Q.B,L,b,z.slotId,H.ssdaiAdsConfig):tX(Q.Z.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},z.slotId)}else tX(Q.Z.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},z.slotId); +Aru(Q.D,z)}else{var u;f={ET:Math.round(((L=LN(z.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:L.ET)||0),Ja:(u=LN(z.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:u.Ja};Itk(Q.B,H.LW,b,z.slotId,H.ssdaiAdsConfig,f)}}; +stL=function(Q,z,H,f,b,L,u){var X=px(Q.cI.get(),1);tX(Q.Z.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return rr_(Q.L.get(),H,f,b,X.clientPlaybackNonce,X.Lq,X.daiEnabled,X,L,u)},z)}; +PGL=function(Q,z,H,f,b,L,u){z=Btk(z,L,Number(f.prefetchMilliseconds)||0,u);Q=z instanceof e?z:ig(Q,f,b,z,H);return Q instanceof e?Q:[Q]}; +atn=function(Q,z,H,f,b){var L=EB(Q.B.get(),"SLOT_TYPE_AD_BREAK_REQUEST");f=[new aX({getAdBreakUrl:f.getAdBreakUrl,ET:0,Ja:0}),new eU(!0)];Q=z.pauseDurationMs?z.lactThresholdMs?{slotId:L,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new w0(Q.Z,L),slotFulfillmentTriggers:[new lAn(Q.Z)],slotExpirationTriggers:[new h2(Q.Z,b),new V0(Q.Z,L)],hh:"core",clientMetadata:new bY(f),adSlotLoggingData:H}:new e("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new e("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); +return Q instanceof e?Q:[Q]}; +UrA=function(Q){var z,H;return((z=Q.renderer)==null?void 0:(H=z.adBreakServiceRenderer)==null?void 0:H.getAdBreakUrl)!==void 0}; +hA=function(Q,z,H){if(Q.beforeContentVideoIdStartedTrigger)Q=Q.beforeContentVideoIdStartedTrigger?new FO(Ha,z,Q.id):new e("Not able to create BeforeContentVideoIdStartedTrigger");else{if(Q.layoutIdExitedTrigger){var f;z=(f=Q.layoutIdExitedTrigger)!=null&&f.triggeringLayoutId?new I9(Ha,Q.layoutIdExitedTrigger.triggeringLayoutId,Q.id):new e("Not able to create LayoutIdExitedTrigger")}else{if(Q.layoutExitedForReasonTrigger){var b,L;((b=Q.layoutExitedForReasonTrigger)==null?0:b.triggeringLayoutId)&&((L= +Q.layoutExitedForReasonTrigger)==null?0:L.layoutExitReason)?(z=RAZ(Q.layoutExitedForReasonTrigger.layoutExitReason),Q=z instanceof e?z:new NM(Ha,Q.layoutExitedForReasonTrigger.triggeringLayoutId,[z],Q.id)):Q=new e("Not able to create LayoutIdExitedForReasonTrigger")}else{if(Q.onLayoutSelfExitRequestedTrigger){var u;z=(u=Q.onLayoutSelfExitRequestedTrigger)!=null&&u.triggeringLayoutId?new iB(Ha,Q.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,Q.id):new e("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(Q.onNewPlaybackAfterContentVideoIdTrigger)Q= +Q.onNewPlaybackAfterContentVideoIdTrigger?new h2(Ha,z,Q.id):new e("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(Q.skipRequestedTrigger){var X;z=(X=Q.skipRequestedTrigger)!=null&&X.triggeringLayoutId?new Di(Ha,Q.skipRequestedTrigger.triggeringLayoutId,Q.id):new e("Not able to create SkipRequestedTrigger")}else if(Q.slotIdEnteredTrigger){var v;z=(v=Q.slotIdEnteredTrigger)!=null&&v.triggeringSlotId?new K6(Ha,Q.slotIdEnteredTrigger.triggeringSlotId,Q.id):new e("Not able to create SlotIdEnteredTrigger")}else if(Q.slotIdExitedTrigger){var y; +z=(y=Q.slotIdExitedTrigger)!=null&&y.triggeringSlotId?new V0(Ha,Q.slotIdExitedTrigger.triggeringSlotId,Q.id):new e("Not able to create SkipRequestedTrigger")}else if(Q.surveySubmittedTrigger){var q;z=(q=Q.surveySubmittedTrigger)!=null&&q.triggeringLayoutId?new TT(Ha,Q.surveySubmittedTrigger.triggeringLayoutId,Q.id):new e("Not able to create SurveySubmittedTrigger")}else{if(Q.mediaResumedTrigger)Q=Q.mediaResumedTrigger&&Q.id?new Qtu(Q.id):new e("Not able to create MediaResumedTrigger");else{if(Q.closeRequestedTrigger){var M; +z=(M=Q.closeRequestedTrigger)!=null&&M.triggeringLayoutId?new xE(Ha,Q.closeRequestedTrigger.triggeringLayoutId,Q.id):new e("Not able to create CloseRequestedTrigger")}else if(Q.slotIdScheduledTrigger){var C;z=(C=Q.slotIdScheduledTrigger)!=null&&C.triggeringSlotId?new w0(Ha,Q.slotIdScheduledTrigger.triggeringSlotId,Q.id):new e("Not able to create SlotIdScheduledTrigger")}else{if(Q.mediaTimeRangeTrigger){var t;f=Number((t=Q.mediaTimeRangeTrigger)==null?void 0:t.offsetStartMilliseconds);var E;u=Number((E= +Q.mediaTimeRangeTrigger)==null?void 0:E.offsetEndMilliseconds);isFinite(f)&&isFinite(u)?(E=u,E===-1&&(E=H),H=f>E?new e("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:f,offsetEndMs:E},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",E===H&&f-500<=E):new OF(f,E),Q=H instanceof e?H:new PZ(Ha,z,H,!1,Q.id)):Q=new e("Not able to create MediaTimeRangeTrigger")}else if(Q.contentVideoIdEndedTrigger)Q=Q.contentVideoIdEndedTrigger?new Ov(Ha,z,!1,Q.id):new e("Not able to create ContentVideoIdEndedTrigger"); +else{if(Q.layoutIdEnteredTrigger){var G;z=(G=Q.layoutIdEnteredTrigger)!=null&&G.triggeringLayoutId?new J2(Ha,Q.layoutIdEnteredTrigger.triggeringLayoutId,Q.id):new e("Not able to create LayoutIdEnteredTrigger")}else if(Q.timeRelativeToLayoutEnterTrigger){var x;z=(x=Q.timeRelativeToLayoutEnterTrigger)!=null&&x.triggeringLayoutId?new ep(Ha,Number(Q.timeRelativeToLayoutEnterTrigger.durationMs),Q.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,Q.id):new e("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(Q.onDifferentLayoutIdEnteredTrigger){var J; +z=(J=Q.onDifferentLayoutIdEnteredTrigger)!=null&&J.triggeringLayoutId&&Q.onDifferentLayoutIdEnteredTrigger.slotType&&Q.onDifferentLayoutIdEnteredTrigger.layoutType?new Uv(Ha,Q.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,Q.onDifferentLayoutIdEnteredTrigger.slotType,Q.onDifferentLayoutIdEnteredTrigger.layoutType,Q.id):new e("Not able to create CloseRequestedTrigger")}else{if(Q.liveStreamBreakStartedTrigger)Q=Q.liveStreamBreakStartedTrigger&&Q.id?new BZ(Ha,Q.id):new e("Not able to create LiveStreamBreakStartedTrigger"); +else if(Q.liveStreamBreakEndedTrigger)Q=Q.liveStreamBreakEndedTrigger&&Q.id?new A2(Ha,Q.id):new e("Not able to create LiveStreamBreakEndedTrigger");else{if(Q.liveStreamBreakScheduledDurationMatchedTrigger){var I;z=(I=Q.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&I.breakDurationMs?new YE(Number(Q.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,Q.id):new e("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(Q.liveStreamBreakScheduledDurationNotMatchedTrigger){var r; +z=(r=Q.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&r.breakDurationMs?new r0(Number(Q.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,Q.id):new e("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(Q.newSlotScheduledWithBreakDurationTrigger){var U;z=(U=Q.newSlotScheduledWithBreakDurationTrigger)!=null&&U.breakDurationMs?new a9(Number(Q.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,Q.id):new e("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else z= +Q.prefetchCacheExpiredTrigger?new WZ(Ha,Q.id):new e("Not able to convert an AdsControlflowTrigger.");Q=z}z=Q}Q=z}z=Q}Q=z}z=Q}Q=z}z=Q}Q=z}z=Q}Q=z}return Q}; +Wc=function(Q,z){z.Z>=2&&(Q.slot_pos=z.adPodIndex);Q.autoplay="1"}; +i4Y=function(Q,z,H,f,b,L,u,X){return z===null?new e("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:z,ActionCompanionAdRenderer:f}):[cra(Q,z,u,L,function(v){var y=v.slotId;v=X(v);var q=f.adLayoutLoggingData,M=new bY([new cX(f),new e7(b)]);y=kJ(H.B.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",y);var C={layoutId:y,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",hh:"core"};return{layoutId:y,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",wT:new Map, +layoutExitNormalTriggers:[new h2(H.Z,u)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],YN:[],hh:"core",clientMetadata:M,cz:v(C),adLayoutLoggingData:q}})]}; +hJn=function(Q,z,H,f,b,L,u,X){return z===null?new e("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:z,TopBannerImageTextIconButtonedLayoutViewModel:f}):[cra(Q,z,u,L,function(v){var y=v.slotId;v=X(v);var q=f.adLayoutLoggingData,M=new bY([new i1(f),new e7(b)]);y=kJ(H.B.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",y);var C={layoutId:y,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",hh:"core"};return{layoutId:y,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", +wT:new Map,layoutExitNormalTriggers:[new h2(H.Z,u)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],YN:[],hh:"core",clientMetadata:M,cz:v(C),adLayoutLoggingData:q}})]}; +Vdn=function(Q,z,H,f,b,L){if(!L)for(z=g.n(z),L=z.next();!L.done;L=z.next())L=L.value,Dq(Q,L.renderer,L.config.adPlacementConfig.kind);Q=Array.from(Q.values()).filter(function(q){return Wtc(q)}); +z=[];L=g.n(Q);for(var u=L.next(),X={};!u.done;X={SM:void 0},u=L.next()){X.SM=u.value;u=g.n(X.SM.Sn);for(var v=u.next(),y={};!v.done;y={DK:void 0},v=u.next())y.DK=v.value,v=function(q,M){return function(C){return q.DK.mP(C,M.SM.instreamVideoAdRenderer.elementId,q.DK.jn)}}(y,X),y.DK.isContentVideoCompanion?z.push(Dr_(H,f,b,X.SM.instreamVideoAdRenderer.elementId,y.DK.associatedCompositePlayerBytesLayoutId,y.DK.adSlotLoggingData,v)):Q.length>1?z.push(KtL(H,f,b,X.SM.instreamVideoAdRenderer.elementId,y.DK.adSlotLoggingData, +function(q,M){return function(C){return q.DK.mP(C,M.SM.instreamVideoAdRenderer.elementId,q.DK.jn,q.DK.associatedCompositePlayerBytesLayoutId)}}(y,X))):z.push(KtL(H,f,b,X.SM.instreamVideoAdRenderer.elementId,y.DK.adSlotLoggingData,v))}return z}; +Dq=function(Q,z,H){if(z=drp(z)){z=g.n(z);for(var f=z.next();!f.done;f=z.next())if((f=f.value)&&f.externalVideoId){var b=KY(Q,f.externalVideoId);b.instreamVideoAdRenderer||(b.instreamVideoAdRenderer=f,b.xA=H)}else Cp("InstreamVideoAdRenderer without externalVideoId")}}; +drp=function(Q){var z=[],H=Q.sandwichedLinearAdRenderer&&Q.sandwichedLinearAdRenderer.linearAd&&g.K(Q.sandwichedLinearAdRenderer.linearAd,qd);if(H)return z.push(H),z;if(Q.instreamVideoAdRenderer)return z.push(Q.instreamVideoAdRenderer),z;if(Q.linearAdSequenceRenderer&&Q.linearAdSequenceRenderer.linearAds){Q=g.n(Q.linearAdSequenceRenderer.linearAds);for(H=Q.next();!H.done;H=Q.next())H=H.value,g.K(H,qd)&&z.push(g.K(H,qd));return z}return null}; +Wtc=function(Q){if(Q.instreamVideoAdRenderer===void 0)return Cp("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var z=g.n(Q.Sn),H=z.next();!H.done;H=z.next()){H=H.value;if(H.mP===void 0)return!1;if(H.jn===void 0)return Cp("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(Q.xA===void 0||H.d_===void 0||Q.xA!==H.d_&&H.d_!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(Q.instreamVideoAdRenderer.elementId===void 0)return Cp("InstreamVideoAdRenderer has no elementId", +void 0,void 0,{kind:Q.xA,"matching APSR kind":H.d_}),!1}return!0}; +KY=function(Q,z){Q.has(z)||Q.set(z,{instreamVideoAdRenderer:void 0,xA:void 0,adVideoId:z,Sn:[]});return Q.get(z)}; +Vb=function(Q,z,H,f,b,L,u,X,v){b?KY(Q,b).Sn.push({mj3:z,d_:H,isContentVideoCompanion:f,jn:u,associatedCompositePlayerBytesLayoutId:L,adSlotLoggingData:X,mP:v}):Cp("Companion AdPlacementSupportedRenderer without adVideoId")}; +dg=function(Q){var z=0;Q=g.n(Q.questions);for(var H=Q.next();!H.done;H=Q.next())if(H=H.value,H=g.K(H,AA)||g.K(H,YN)){var f=void 0;z+=((f=H.surveyAdQuestionCommon)==null?void 0:f.durationMilliseconds)||0}return z}; +me=function(Q){var z,H,f,b,L=((H=g.K((z=Q.questions)==null?void 0:z[0],AA))==null?void 0:H.surveyAdQuestionCommon)||((b=g.K((f=Q.questions)==null?void 0:f[0],YN))==null?void 0:b.surveyAdQuestionCommon),u;z=[].concat(g.F(((u=Q.playbackCommands)==null?void 0:u.instreamAdCompleteCommands)||[]),g.F((L==null?void 0:L.timeoutCommands)||[]));var X,v,y,q,M,C,t,E,G,x,J,I,r,U,D,T,k,bL,SY,Q9;return{impressionCommands:(X=Q.playbackCommands)==null?void 0:X.impressionCommands,errorCommands:(v=Q.playbackCommands)== +null?void 0:v.errorCommands,muteCommands:(y=Q.playbackCommands)==null?void 0:y.muteCommands,unmuteCommands:(q=Q.playbackCommands)==null?void 0:q.unmuteCommands,pauseCommands:(M=Q.playbackCommands)==null?void 0:M.pauseCommands,rewindCommands:(C=Q.playbackCommands)==null?void 0:C.rewindCommands,resumeCommands:(t=Q.playbackCommands)==null?void 0:t.resumeCommands,skipCommands:(E=Q.playbackCommands)==null?void 0:E.skipCommands,progressCommands:(G=Q.playbackCommands)==null?void 0:G.progressCommands,djh:(x= +Q.playbackCommands)==null?void 0:x.clickthroughCommands,fullscreenCommands:(J=Q.playbackCommands)==null?void 0:J.fullscreenCommands,activeViewViewableCommands:(I=Q.playbackCommands)==null?void 0:I.activeViewViewableCommands,activeViewMeasurableCommands:(r=Q.playbackCommands)==null?void 0:r.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(U=Q.playbackCommands)==null?void 0:U.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(D=Q.playbackCommands)== +null?void 0:(T=D.activeViewTracking)==null?void 0:T.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(k=Q.playbackCommands)==null?void 0:(bL=k.activeViewTracking)==null?void 0:bL.activeViewAudioMeasurableCommands,endFullscreenCommands:(SY=Q.playbackCommands)==null?void 0:SY.endFullscreenCommands,abandonCommands:(Q9=Q.playbackCommands)==null?void 0:Q9.abandonCommands,completeCommands:z}}; +wmc=function(Q,z,H,f,b,L,u){return function(X,v){return mr9(Q,v.slotId,X,L,function(y,q){var M=v.layoutId;y=u(y);return wg(z,M,q,b,y,"LAYOUT_TYPE_SURVEY",[new Cq(H),f],H.adLayoutLoggingData)})}}; +eJa=function(Q,z,H,f,b,L,u){if(!kpk(Q))return new e("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:Q});var X=Q.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[Tt8(L,z,H,f,function(v){var y=v.slotId;v=u(v);y=kJ(b.B.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",y);var q={layoutId:y,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",hh:"core"},M=new I9(b.Z,f);return{layoutId:y,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",wT:new Map,layoutExitNormalTriggers:[M], +layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],YN:[],hh:"core",clientMetadata:new bY([new tm(X)]),cz:v(q)}})]}; +kpk=function(Q){Q=g.K(Q==null?void 0:Q.additionalPlayerOverlay,ltu);if(!Q)return!1;var z=Q.slidingMessages;return Q.title&&z&&z.length!==0?!0:!1}; +Q7v=function(Q,z,H,f,b){var L;if((L=Q.playerOverlay)==null||!L.instreamSurveyAdRenderer)return function(){return[]}; +if(!O4J(Q))return function(){return new e("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:Q})}; +var u=Q.playerOverlay.instreamSurveyAdRenderer,X=dg(u);return X<=0?function(){return new e("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:u})}:function(v,y){var q=RJJ(v,H,f,function(M){var C=M.slotId; +M=y(M);var t=me(u);C=kJ(b.B.get(),"LAYOUT_TYPE_SURVEY",C);var E={layoutId:C,layoutType:"LAYOUT_TYPE_SURVEY",hh:"core"},G=new I9(b.Z,f),x=new Di(b.Z,C),J=new TT(b.Z,C),I=new b4n(b.Z);return{layoutId:C,layoutType:"LAYOUT_TYPE_SURVEY",wT:new Map,layoutExitNormalTriggers:[G,I],layoutExitSkipTriggers:[x],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[J],YN:[],hh:"core",clientMetadata:new bY([new M9(u),new e7(z),new ix(X/1E3),new Kq(t)]),cz:M(E),adLayoutLoggingData:u.adLayoutLoggingData}}); +v=eJa(Q,H,q.slotId,f,b,v,y);return v instanceof e?v:[q].concat(g.F(v))}}; +Slp=function(Q,z,H,f,b,L,u){u=u===void 0?!1:u;var X=[];try{var v=[];if(H.renderer.linearAdSequenceRenderer)var y=function(G){G=zY8(G.slotId,H,z,b(G),f,L,u);v=G.XBn;return G.Xj}; +else if(H.renderer.instreamVideoAdRenderer)y=function(G){var x=G.slotId;G=b(G);var J=u,I=H.config.adPlacementConfig,r=HPu(I),U=r.Lu,D=r.bQ;r=H.renderer.instreamVideoAdRenderer;var T;if(r==null?0:(T=r.playerOverlay)==null?0:T.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var k=kN(r,J);T=Math.min(U+k.videoLengthSeconds*1E3,D);J=new jp(0,[k.videoLengthSeconds]);D=k.videoLengthSeconds;var bL=k.playerVars,SY=k.instreamAdPlayerOverlayRenderer,Q9=k.playerOverlayLayoutRenderer, +V=k.adVideoId,R=fo8(H),Z=k.wT;k=k.K8;var d=r==null?void 0:r.adLayoutLoggingData;r=r==null?void 0:r.sodarExtensionData;x=kJ(z.B.get(),"LAYOUT_TYPE_MEDIA",x);var h8={layoutId:x,layoutType:"LAYOUT_TYPE_MEDIA",hh:"core"};return{layoutId:x,layoutType:"LAYOUT_TYPE_MEDIA",wT:Z,layoutExitNormalTriggers:[new A2(z.Z)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],YN:[],hh:"core",clientMetadata:new bY([new fq(f),new xL(D),new Od(bL),new N9(U),new IX(T),SY&&new bx(SY), +Q9&&new Lq(Q9),new e7(I),new He(V),new l1(J),new Be(R),r&&new Jm(r),new Gg({current:null}),new YL({}),new mc(k)].filter(bPZ)),cz:G(h8),adLayoutLoggingData:d}}; +else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var q=LdL(Q,f,H.adSlotLoggingData,y);X.push(q);for(var M=g.n(v),C=M.next();!C.done;C=M.next()){var t=C.value,E=t(Q,b);if(E instanceof e)return E;X.push.apply(X,g.F(E))}}catch(G){return new e(G,{errorMessage:G.message,AdPlacementRenderer:H,numberOfSurveyRenderers:umn(H)})}return X}; +umn=function(Q){Q=(Q.renderer.linearAdSequenceRenderer||{}).linearAds;return Q!=null&&Q.length?Q.filter(function(z){var H,f;return((H=g.K(z,qd))==null?void 0:(f=H.playerOverlay)==null?void 0:f.instreamSurveyAdRenderer)!=null}).length:0}; +zY8=function(Q,z,H,f,b,L,u){var X=z.config.adPlacementConfig,v=HPu(X),y=v.Lu,q=v.bQ;v=(z.renderer.linearAdSequenceRenderer||{}).linearAds;if(v==null||!v.length)throw new TypeError("Expected linear ads");var M=[],C={Jg:y,gN:0,EVv:M};v=v.map(function(E){return XXa(Q,E,C,H,f,X,b,q,u)}).map(function(E,G){G=new jp(G,M); +return E(G)}); +var t=v.map(function(E){return E.Q4}); +return{Xj:v9v(H,Q,y,t,X,fo8(z),f,q,L),XBn:v.map(function(E){return E.iAn})}}; +XXa=function(Q,z,H,f,b,L,u,X,v){var y=kN(g.K(z,qd),v),q=H.Jg,M=H.gN,C=Math.min(q+y.videoLengthSeconds*1E3,X);H.Jg=C;H.gN++;H.EVv.push(y.videoLengthSeconds);var t,E,G=(t=g.K(z,qd))==null?void 0:(E=t.playerOverlay)==null?void 0:E.instreamSurveyAdRenderer;if(y.adVideoId==="nPpU29QrbiU"&&G==null)throw new TypeError("Survey slate media has no survey overlay");return function(x){Wc(y.playerVars,x);var J,I,r=y.videoLengthSeconds,U=y.playerVars,D=y.wT,T=y.K8,k=y.instreamAdPlayerOverlayRenderer,bL=y.playerOverlayLayoutRenderer, +SY=y.adVideoId,Q9=(J=g.K(z,qd))==null?void 0:J.adLayoutLoggingData;J=(I=g.K(z,qd))==null?void 0:I.sodarExtensionData;I=kJ(f.B.get(),"LAYOUT_TYPE_MEDIA",Q);var V={layoutId:I,layoutType:"LAYOUT_TYPE_MEDIA",hh:"adapter"};x={layoutId:I,layoutType:"LAYOUT_TYPE_MEDIA",wT:D,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],YN:[],hh:"adapter",clientMetadata:new bY([new fq(u),new xL(r),new Od(U),new N9(q),new IX(C),new Am(M),new Gg({current:null}), +k&&new bx(k),bL&&new Lq(bL),new e7(L),new He(SY),new l1(x),J&&new Jm(J),G&&new d1(G),new YL({}),new mc(T)].filter(bPZ)),cz:b(V),adLayoutLoggingData:Q9};r=Q7v(g.K(z,qd),L,u,x.layoutId,f);return{Q4:x,iAn:r}}}; +kN=function(Q,z){if(!Q)throw new TypeError("Expected instream video ad renderer");if(!Q.playerVars)throw new TypeError("Expected player vars in url encoded string");var H=L1(Q.playerVars),f=Number(H.length_seconds);if(isNaN(f))throw new TypeError("Expected valid length seconds in player vars");var b=Number(Q.trimmedMaxNonSkippableAdDurationMs);f=isNaN(b)?f:Math.min(f,b/1E3);b=Q.playerOverlay||{};b=b.instreamAdPlayerOverlayRenderer===void 0?null:b.instreamAdPlayerOverlayRenderer;var L=Q.playerOverlay|| +{};L=L.playerOverlayLayoutRenderer===void 0?null:L.playerOverlayLayoutRenderer;var u=H.video_id;u||(u=(u=Q.externalVideoId)?u:void 0);if(!u)throw new TypeError("Expected valid video id in IVAR");if(z&&f===0){var X;z=(X=y_c[u])!=null?X:f}else z=f;return{playerVars:H,videoLengthSeconds:z,instreamAdPlayerOverlayRenderer:b,playerOverlayLayoutRenderer:L,adVideoId:u,wT:Q.pings?oh(Q.pings):new Map,K8:OB(Q.pings)}}; +fo8=function(Q){Q=Number(Q.driftRecoveryMs);return isNaN(Q)||Q<=0?null:Q}; +HPu=function(Q){var z=Q.adTimeOffset||{};Q=z.offsetEndMilliseconds;z=Number(z.offsetStartMilliseconds);if(isNaN(z))throw new TypeError("Expected valid start offset");Q=Number(Q);if(isNaN(Q))throw new TypeError("Expected valid end offset");return{Lu:z,bQ:Q}}; +qla=function(Q){var z,H=(z=LN(Q.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:z.current;if(!H)return null;z=LN(Q.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var f=Q.layoutId,b=LN(Q.clientMetadata,"metadata_type_content_cpn"),L=LN(Q.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),u=LN(Q.clientMetadata,"metadata_type_player_underlay_renderer"),X=LN(Q.clientMetadata,"metadata_type_ad_placement_config"),v=LN(Q.clientMetadata,"metadata_type_video_length_seconds"); +var y=QJ(Q.clientMetadata,"metadata_type_layout_enter_ms")&&QJ(Q.clientMetadata,"metadata_type_layout_exit_ms")?(LN(Q.clientMetadata,"metadata_type_layout_exit_ms")-LN(Q.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{MF:f,contentCpn:b,i6:H,fh:z,instreamAdPlayerOverlayRenderer:L,instreamAdPlayerUnderlayRenderer:u,adPlacementConfig:X,videoLengthSeconds:v,Al:y,inPlayerLayoutId:LN(Q.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:LN(Q.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; +t7Z=function(Q,z,H,f,b,L,u,X,v,y,q,M,C,t,E){f=EB(f,"SLOT_TYPE_PLAYER_BYTES");Q=M7n(b,Q,u,H,f,v,y);if(Q instanceof e)return Q;var G;y=(G=LN(Q.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:G.layoutId;if(!y)return new e("Invalid adNotify layout");z=C1_(y,b,L,H,X,z,v,q,M,C,t,E,u);return z instanceof e?z:[Q].concat(g.F(z))}; +C1_=function(Q,z,H,f,b,L,u,X,v,y,q,M,C){H=E9u(z,H,f,L,u,X,v,y,q,M,C);if(H instanceof e)return H;Q=pXc(z,Q,u,b,H);return Q instanceof e?Q:[].concat(g.F(Q.Se),[Q.zV])}; +g98=function(Q,z,H,f,b,L,u,X,v,y,q,M,C,t){z=E9u(Q,z,H,b,L,X,v,y,q,M,C,t);if(z instanceof e)return z;Q=n9A(Q,H,L,u,f,X.AZ,z);return Q instanceof e?Q:Q.Se.concat(Q.zV)}; +E9u=function(Q,z,H,f,b,L,u,X,v,y,q,M){var C=TC(f,H,y);return C instanceof fN?new e(C):y.K.C().experiments.Nc("html5_refactor_in_player_slot_generation")?function(t){var E=new jp(0,[C.I4]);t=ZP9(z,C.layoutId,C.fP,H,eG(C.playerVars,C.UO,L,v,E),C.I4,b,E,u(t),X.get(C.fP.externalVideoId),M);E=[];if(C.fP.playerOverlay.instreamAdPlayerOverlayRenderer){var G=qla(t);if(!G)return Cp("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,t),{layout:t,Se:[]}; +E=[GLn(Q,G.contentCpn,G.MF,function(J){return lg(z,J.slotId,"core",G,qf(q,J))},G.inPlayerSlotId)].concat(g.F(E)); +if(G.instreamAdPlayerUnderlayRenderer&&RV(y)){var x=G.instreamAdPlayerUnderlayRenderer;E=[$xa(Q,G.contentCpn,G.MF,function(J){return j79(z,J.slotId,x,G.adPlacementConfig,G.MF,qf(q,J))})].concat(g.F(E))}}return{layout:t, +Se:E}}:function(t){var E=new jp(0,[C.I4]); +return{layout:ZP9(z,C.layoutId,C.fP,H,eG(C.playerVars,C.UO,L,v,E),C.I4,b,E,u(t),X.get(C.fP.externalVideoId),M),Se:[]}}}; +TC=function(Q,z,H){if(!Q.playerVars)return new fN("No playerVars available in InstreamVideoAdRenderer.");var f,b;if(Q.elementId==null||Q.playerVars==null||Q.playerOverlay==null||((f=Q.playerOverlay)==null?void 0:f.instreamAdPlayerOverlayRenderer)==null&&((b=Q.playerOverlay)==null?void 0:b.playerOverlayLayoutRenderer)==null||Q.pings==null||Q.externalVideoId==null)return new fN("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:Q});f=L1(Q.playerVars);b=Number(f.length_seconds); +isNaN(b)&&(b=0,Cp("Expected valid length seconds in player vars but got NaN"));if(H.MB(z.kind==="AD_PLACEMENT_KIND_START")){if(Q.layoutId===void 0)return new fN("Expected server generated layout ID in instreamVideoAdRenderer");z=Q.layoutId}else z=Q.elementId;return{layoutId:z,fP:Q,playerVars:f,UO:Q.playerVars,I4:b}}; +eG=function(Q,z,H,f,b){Q.iv_load_policy=f;z=L1(z);if(z.cta_conversion_urls)try{Q.cta_conversion_urls=JSON.parse(z.cta_conversion_urls)}catch(L){Cp(L)}H.Ts&&(Q.ctrl=H.Ts);H.Qw&&(Q.ytr=H.Qw);H.mH&&(Q.ytrcc=H.mH);H.isMdxPlayback&&(Q.mdx="1");Q.vvt&&(Q.vss_credentials_token=Q.vvt,H.ZK&&(Q.vss_credentials_token_type=H.ZK),H.mdxEnvironment&&(Q.mdx_environment=H.mdxEnvironment));Wc(Q,b);return Q}; +Fd_=function(Q){var z=new Map;Q=g.n(Q);for(var H=Q.next();!H.done;H=Q.next())(H=H.value.renderer.remoteSlotsRenderer)&&H.hostElementId&&z.set(H.hostElementId,H);return z}; +QL=function(Q){return Q.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; +xx9=function(Q){return Q!=null}; +YlA=function(Q,z,H,f,b,L,u,X,v,y,q,M,C,t){for(var E=[],G=g.n(Q),x=G.next();!x.done;x=G.next())if(x=x.value,!nSc(x)&&!jtk(x)){var J=QL(x)&&!!x.slotEntryTrigger.beforeContentVideoIdStartedTrigger,I=v.MB(J),r=OPv(x,y,f,H.Lq,I);if(r instanceof e)return r;var U=void 0,D={slotId:x.adSlotMetadata.slotId,slotType:x.adSlotMetadata.slotType,slotPhysicalPosition:(U=x.adSlotMetadata.slotPhysicalPosition)!=null?U:1,hh:"core",slotEntryTrigger:r.slotEntryTrigger,slotFulfillmentTriggers:r.slotFulfillmentTriggers, +slotExpirationTriggers:r.slotExpirationTriggers},T=g.K(x.fulfillmentContent.fulfilledLayout,pY);if(T){if(!Ey(T))return new e("Invalid PlayerBytesAdLayoutRenderer");U=M&&!(QL(x)&&x.slotEntryTrigger.beforeContentVideoIdStartedTrigger);r=r.slotFulfillmentTriggers.some(function(k){return k instanceof YE}); +I=U?o99(D,x.adSlotMetadata.triggerEvent,T,H,f,L,y,Q,I,C,r,t):J_v(D,x.adSlotMetadata.triggerEvent,T,z,H,f,b,L,u,X,v,y,Q,q,I,x.adSlotMetadata.triggeringSourceLayoutId);if(I instanceof e)return I;r=[];QL(x)&&r.push(new lx({kG:QL(x)&&!!x.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));U&&r.push(new YL({}));H.AZ&&r.push(new VN({}));r.push(new Tg(J));x=Object.assign({},D,{clientMetadata:new bY(r),fulfilledLayout:I.layout,adSlotLoggingData:x.adSlotMetadata.adSlotLoggingData});E.push.apply(E,g.F(I.Se)); +E.push(x)}else if(J=g.K(x.fulfillmentContent.fulfilledLayout,$N)){if(!pma(J))return new e("Invalid PlayerUnderlayAdLayoutRenderer");J=Nh6(J,f,H.Lq,L,D,x.adSlotMetadata.triggerEvent,x.adSlotMetadata.triggeringSourceLayoutId);if(J instanceof e)return J;x=Object.assign({},D,{clientMetadata:new bY([]),fulfilledLayout:J,adSlotLoggingData:x.adSlotMetadata.adSlotLoggingData});E.push(x)}else if(J=g.K(x.fulfillmentContent.fulfilledLayout,Z4L)){if(!Xmn(J))return new e("Invalid AboveFeedAdLayoutRenderer");J= +Iou(J,f,H.Lq,L,D,x.adSlotMetadata.triggerEvent,x.adSlotMetadata.triggeringSourceLayoutId);if(J instanceof e)return J;x=Object.assign({},D,{clientMetadata:new bY([]),fulfilledLayout:J,adSlotLoggingData:x.adSlotMetadata.adSlotLoggingData});E.push(x)}else if(J=g.K(x.fulfillmentContent.fulfilledLayout,Gpu)){if(!R9(J.adLayoutMetadata)||!g.K(J.renderingContent,Qb))return new e("Invalid BelowPlayerAdLayoutRenderer");J=Iou(J,f,H.Lq,L,D,x.adSlotMetadata.triggerEvent,x.adSlotMetadata.triggeringSourceLayoutId); +if(J instanceof e)return J;x=Object.assign({},D,{clientMetadata:new bY([]),fulfilledLayout:J,adSlotLoggingData:x.adSlotMetadata.adSlotLoggingData});E.push(x)}else if(J=g.K(x.fulfillmentContent.fulfilledLayout,IV)){if(!gg(J))return new e("Invalid PlayerBytesSequenceItemAdLayoutRenderer");J=A_c(J,f,H.Lq,L,D,x.adSlotMetadata.triggerEvent);if(J instanceof e)return J;x=Object.assign({},D,{clientMetadata:new bY([]),fulfilledLayout:J,adSlotLoggingData:x.adSlotMetadata.adSlotLoggingData});E.push(x)}else return new e("Unable to retrieve a client slot ["+ +D.slotType+"] from a given AdSlotRenderer")}return E}; +A_c=function(Q,z,H,f,b,L){var u={layoutId:Q.adLayoutMetadata.layoutId,layoutType:Q.adLayoutMetadata.layoutType,hh:"core"};z=zx(Q,z,H);return z instanceof e?z:Object.assign({},u,{renderingContent:Q.renderingContent,wT:oh(Q.renderingContent.pings)},z,{cz:qf(f,b)(u),clientMetadata:new bY([new e7(HS(L))]),adLayoutLoggingData:Q.adLayoutMetadata.adLayoutLoggingData})}; +Iou=function(Q,z,H,f,b,L,u){var X={layoutId:Q.adLayoutMetadata.layoutId,layoutType:Q.adLayoutMetadata.layoutType,hh:"core"};z=zx(Q,z,H);if(z instanceof e)return z;H=[];H.push(new e7(HS(L)));L==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&u!==void 0&&H.push(new Ed(u));return Object.assign({},X,{renderingContent:Q.renderingContent,wT:new Map([["impression",r_9(Q)]])},z,{cz:qf(f,b)(X),clientMetadata:new bY(H),adLayoutLoggingData:Q.adLayoutMetadata.adLayoutLoggingData})}; +Nh6=function(Q,z,H,f,b,L,u){if(Q.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(u=g.K(Q.renderingContent,Zq))if(u=g.K(u.sidePanel,td9)){var X={layoutId:Q.adLayoutMetadata.layoutId,layoutType:Q.adLayoutMetadata.layoutType,hh:"core"};z=zx(Q,z,H);Q=z instanceof e?z:Object.assign({},X,{renderingContent:Q.renderingContent,wT:new Map([["impression",u.impressionPings||[]],["resume",u.resumePings||[]]])},z,{cz:qf(f,b)(X),clientMetadata:new bY([new e7(HS(L))]),adLayoutLoggingData:Q.adLayoutMetadata.adLayoutLoggingData})}else Q= +new e("DismissablePanelTextPortraitImageRenderer is missing");else Q=new e("SqueezebackPlayerSidePanelRenderer is missing");else Q.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.K(Q.renderingContent,q1Y)?(u={layoutId:Q.adLayoutMetadata.layoutId,layoutType:Q.adLayoutMetadata.layoutType,hh:"core"},z=zx(Q,z,H),Q=z instanceof e?z:Object.assign({},u,{renderingContent:Q.renderingContent,wT:new Map},z,{cz:qf(f,b)(u),clientMetadata:new bY([new e7(HS(L))]),adLayoutLoggingData:Q.adLayoutMetadata.adLayoutLoggingData})): +Q=new e("CounterfactualRenderer is missing"):Q.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?Q=new e("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):Q.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?Q=new e("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):Q.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.K(Q.renderingContent,GC)?(L={layoutId:Q.adLayoutMetadata.layoutId,layoutType:Q.adLayoutMetadata.layoutType, +hh:"core"},z=zx(Q,z,H),Q=z instanceof e?z:u?Object.assign({},L,{renderingContent:Q.renderingContent,wT:new Map},z,{cz:qf(f,b)(L),clientMetadata:new bY([new Ed(u)]),adLayoutLoggingData:Q.adLayoutMetadata.adLayoutLoggingData}):new e("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):Q=new e("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):Q.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.K(Q.renderingContent,Md9)? +(L={layoutId:Q.adLayoutMetadata.layoutId,layoutType:Q.adLayoutMetadata.layoutType,hh:"core"},z=zx(Q,z,H),Q=z instanceof e?z:Object.assign({},L,{renderingContent:Q.renderingContent,wT:new Map([])},z,{cz:qf(f,b)(L),adLayoutLoggingData:Q.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new bY([])})):Q=new e("AdsEngagementPanelSectionListViewModel is missing"):Q=new e("LayoutType ["+Q.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return Q}; +o99=function(Q,z,H,f,b,L,u,X,v,y,q,M){if((M==null?void 0:M.ET)===void 0||(M==null?void 0:M.Ja)===void 0)return new e("Cached ad break range from cue point is missing");var C=zx(H,b,f.Lq);if(C instanceof e)return C;C={layoutExitMuteTriggers:[],layoutExitNormalTriggers:C.layoutExitNormalTriggers,layoutExitSkipTriggers:[],YN:[],layoutExitUserInputSubmittedTriggers:[]};if(g.K(H.renderingContent,qd))return Q=s7c(Q,z,H,C,b,L,X,v,f.Lq,u,M.ET,M.Ja),Q instanceof e?Q:Q.i8===void 0?new e("Expecting associatedInPlayerSlot for single DAI media layout"): +{layout:Q.layout,Se:[Q.i8]};var t=g.K(H.renderingContent,vc);if(t){if(!R9(H.adLayoutMetadata))return new e("Invalid ad layout metadata");if(!yb(t))return new e("Invalid sequential layout");t=t.sequentialLayouts.map(function(E){return E.playerBytesAdLayoutRenderer}); +Q=Bha(Q,z,H,C,t,b,f,L,u,v,X,y,M.ET,M.Ja,q);return Q instanceof e?Q:{layout:Q.Dy,Se:Q.Se}}return new e("Not able to convert a sequential layout")}; +Bha=function(Q,z,H,f,b,L,u,X,v,y,q,M,C,t,E){var G=P1L(b,C,t);if(G instanceof e)return G;var x=[],J=[];G=g.n(G);for(var I=G.next();!I.done;I=G.next()){var r=I.value;I=Q;var U=b[r.gN],D=r,T=z;r=L;var k=u,bL=X,SY=v,Q9=y,V=q,R=fQ(U);if(R instanceof e)I=R;else{var Z={layoutId:U.adLayoutMetadata.layoutId,layoutType:U.adLayoutMetadata.layoutType,hh:"adapter"};D=aoY(T,U,D,r);D instanceof e?I=D:(I=Object.assign({},Z,b6,{wT:R,renderingContent:U.renderingContent,clientMetadata:new bY(D),cz:qf(bL,I)(Z),adLayoutLoggingData:U.adLayoutMetadata.adLayoutLoggingData}), +I=(U=LQ(V,I,r,k.Lq,bL,SY,Q9,void 0,!0))?U instanceof e?U:{layout:I,i8:U}:new e("Expecting associatedInPlayerSlot"))}if(I instanceof e)return I;x.push(I.layout);J.push(I.i8)}b={layoutId:H.adLayoutMetadata.layoutId,layoutType:H.adLayoutMetadata.layoutType,hh:"core"};z=[new Be(Number(H.driftRecoveryMs)),new N9(C),new IX(t),new e7(HS(z)),new kL(M),new YL({})];E&&z.push(new RX({}));return{Dy:Object.assign({},b,f,{qF:x,wT:new Map,clientMetadata:new bY(z),cz:qf(X,Q)(b)}),Se:J}}; +s7c=function(Q,z,H,f,b,L,u,X,v,y,q,M){if(!Ey(H))return new e("Invalid PlayerBytesAdLayoutRenderer");var C=fQ(H);if(C instanceof e)return C;var t={layoutId:H.adLayoutMetadata.layoutId,layoutType:H.adLayoutMetadata.layoutType,hh:"core"},E=g.K(H.renderingContent,qd);if(!E)return new e("Invalid rendering content for DAI media layout");E=kN(E,!1);q={lB:E,gN:0,Jg:q,Ui:Math.min(q+E.videoLengthSeconds*1E3,M),uf:new jp(0,[E.videoLengthSeconds])};var G;M=(G=Number(H.driftRecoveryMs))!=null?G:void 0;z=aoY(z, +H,q,b,M);if(z instanceof e)return z;Q=Object.assign({},t,f,{wT:C,renderingContent:H.renderingContent,clientMetadata:new bY(z),cz:qf(L,Q)(t),adLayoutLoggingData:H.adLayoutMetadata.adLayoutLoggingData});return(b=LQ(u,Q,b,v,L,y,X,void 0,!0))?b instanceof e?b:{layout:Q,i8:b}:new e("Expecting associatedInPlayerSlot")}; +J_v=function(Q,z,H,f,b,L,u,X,v,y,q,M,C,t,E,G){var x=zx(H,L,b.Lq);if(x instanceof e)return x;if(g.K(H.renderingContent,qd)){v=Ux9([H],b,v);if(v instanceof e)return v;if(v.length!==1)return new e("Only expected one media layout.");Q=c__(Q,z,H,x,v[0],void 0,"core",f,L,u,X,y,C,t,E,b.Lq,M,void 0,G);return Q instanceof e?Q:{layout:Q.layout,Se:Q.i8?[Q.i8]:[]}}var J=g.K(H.renderingContent,vc);if(J){if(!R9(H.adLayoutMetadata))return new e("Invalid ad layout metadata");if(!yb(J))return new e("Invalid sequential layout"); +J=J.sequentialLayouts.map(function(I){return I.playerBytesAdLayoutRenderer}); +Q=iPZ(Q,z,H.adLayoutMetadata,x,J,f,L,b,v,u,X,y,q,M,E,C,t,G);return Q instanceof e?Q:{layout:Q.Dy,Se:Q.Se}}return new e("Not able to convert a sequential layout")}; +iPZ=function(Q,z,H,f,b,L,u,X,v,y,q,M,C,t,E,G,x,J){var I=new zg({current:null}),r=Ux9(b,X,v);if(r instanceof e)return r;v=[];for(var U=[],D=void 0,T=0;T0&&(T.push(J),T.push(new QN(D.adPodSkipTarget)));(L=y.get(D.externalVideoId))&&T.push(new ce(L));L=T}else L=new e("Invalid vod media renderer")}if(L instanceof +e)return L;Q=Object.assign({},u,f,{wT:r,renderingContent:H.renderingContent,clientMetadata:new bY(L),cz:qf(q,Q)(u),adLayoutLoggingData:H.adLayoutMetadata.adLayoutLoggingData});H=g.K(H.renderingContent,qd);if(!H||!X4(H))return new e("Invalid meida renderer");M=KY(M,H.externalVideoId);M.instreamVideoAdRenderer=H;M.xA="AD_PLACEMENT_KIND_START";return t?(v=LQ(C,Q,v,G,q,x,E,J,!1),v instanceof e?v:DxZ(Q.layoutId,C)&&v?{layout:Object.assign({},Q,{clientMetadata:new bY(L.concat(new Xi(v)))})}:{layout:Q,i8:v}): +{layout:Q}}; +hY_=function(Q,z,H,f,b){if(!Ey(z))return new e("Invalid PlayerBytesAdLayoutRenderer");var L=g.K(z.renderingContent,vt);if(!L||L.durationMilliseconds===void 0)return new e("Invalid endcap renderer");var u={layoutId:z.adLayoutMetadata.layoutId,layoutType:z.adLayoutMetadata.layoutType,hh:"adapter"};f=[new hm(L.durationMilliseconds),new Kq({impressionCommands:void 0,abandonCommands:L.abandonCommands?[{commandExecutorCommand:L.abandonCommands}]:void 0,completeCommands:L.completionCommands}),new e7(f), +new nq("LAYOUT_TYPE_ENDCAP")];if(b){f.push(new R7(b.uf.adPodIndex-1));f.push(new Am(b.uf.adPodIndex));var X;f.push(new QN((X=b.adPodSkipTarget)!=null?X:-1))}return Object.assign({},u,b6,{renderingContent:z.renderingContent,clientMetadata:new bY(f),wT:L.skipPings?new Map([["skip",L.skipPings]]):new Map,cz:qf(H,Q)(u),adLayoutLoggingData:z.adLayoutMetadata.adLayoutLoggingData})}; +LQ=function(Q,z,H,f,b,L,u,X,v){Q=Q.filter(function(q){return q.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&q.adSlotMetadata.triggeringSourceLayoutId===z.layoutId}); +if(Q.length!==0){if(Q.length!==1)return new e("Invalid InPlayer slot association for the given PlayerBytes layout");Q=Q[0];u=OPv(Q,L,H,f,u);if(u instanceof e)return u;var y;L={slotId:Q.adSlotMetadata.slotId,slotType:Q.adSlotMetadata.slotType,slotPhysicalPosition:(y=Q.adSlotMetadata.slotPhysicalPosition)!=null?y:1,hh:"core",slotEntryTrigger:u.slotEntryTrigger,slotFulfillmentTriggers:u.slotFulfillmentTriggers,slotExpirationTriggers:u.slotExpirationTriggers};y=g.K(Q.fulfillmentContent.fulfilledLayout, +gSA);if(!y||!yra(y))return new e("Invalid InPlayerAdLayoutRenderer");u={layoutId:y.adLayoutMetadata.layoutId,layoutType:y.adLayoutMetadata.layoutType,hh:"core"};H=zx(y,H,f);if(H instanceof e)return H;f=[];v&&f.push(new YL({}));if(y.adLayoutMetadata.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")f.push.apply(f,g.F(Kdv(Q.adSlotMetadata.triggerEvent,z)));else if(y.adLayoutMetadata.layoutType==="LAYOUT_TYPE_ENDCAP")f.push(new e7(HS(Q.adSlotMetadata.triggerEvent))),X&&f.push(X);else return new e("Not able to parse an SDF InPlayer layout"); +b=Object.assign({},u,H,{renderingContent:y.renderingContent,wT:new Map,cz:qf(b,L)(u),clientMetadata:new bY(f),adLayoutLoggingData:y.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},L,{fulfilledLayout:b,clientMetadata:new bY([])})}}; +Kdv=function(Q,z){var H=[];H.push(new e7(HS(Q)));H.push(new Ed(z.layoutId));(Q=LN(z.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&H.push(new Gg(Q));(Q=LN(z.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&H.push(new zg(Q));(Q=LN(z.clientMetadata,"metadata_type_remote_slots_data"))&&H.push(new ce(Q));(Q=LN(z.clientMetadata,"metadata_type_ad_next_params"))&&H.push(new Do(Q));(Q=LN(z.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&H.push(new KP(Q));(Q= +LN(z.clientMetadata,"metadata_type_ad_pod_info"))&&H.push(new l1(Q));(z=LN(z.clientMetadata,"metadata_type_ad_video_id"))&&H.push(new He(z));return H}; +Wd8=function(Q,z,H,f,b,L){function u(y){return u6(z,y)} +var X=f.Ek.inPlayerSlotId,v={layoutId:f.Ek.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",hh:"core"};H={slotId:X,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,hh:"core",slotEntryTrigger:new J2(u,Q),slotFulfillmentTriggers:[new K6(u,X)],slotExpirationTriggers:[new V0(u,X),new h2(u,H)]};Q=Object.assign({},v,{layoutExitNormalTriggers:[new I9(u,Q)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],YN:[],wT:new Map,clientMetadata:new bY([new yN(f.Ek), +new e7(f.adPlacementConfig),b]),cz:qf(L,H)(v),adLayoutLoggingData:f.Ek.adLayoutLoggingData});return Object.assign({},H,{clientMetadata:new bY([new Pe(Q)])})}; +DxZ=function(Q,z){z=g.n(z);for(var H=z.next();!H.done;H=z.next())if(H=H.value,H.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var f=g.K(H.fulfillmentContent.fulfilledLayout,$N);if(f&&(f=g.K(f.renderingContent,Zq))&&f.associatedPlayerBytesLayoutId===Q)return H}}; +OPv=function(Q,z,H,f,b){var L=V7Z(hA(Q.slotEntryTrigger,H,f),b,Q,z);if(L instanceof e)return L;for(var u=[],X=g.n(Q.slotFulfillmentTriggers),v=X.next();!v.done;v=X.next()){v=hA(v.value,H,f);if(v instanceof e)return v;u.push(v)}u=dxk(u,b,Q,z);z=[];Q=g.n(Q.slotExpirationTriggers);for(b=Q.next();!b.done;b=Q.next()){b=hA(b.value,H,f);if(b instanceof e)return b;z.push(b)}return{slotEntryTrigger:L,slotFulfillmentTriggers:u,slotExpirationTriggers:z}}; +V7Z=function(Q,z,H,f){return z&&H.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&Q instanceof FO?new $E(function(b){return u6(f,b)},H.adSlotMetadata.slotId):Q}; +dxk=function(Q,z,H,f){return z&&H.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?Q.map(function(b){return b instanceof K6?new w0(function(L){return u6(f,L)},H.adSlotMetadata.slotId):b}):Q}; +zx=function(Q,z,H){for(var f=[],b=g.n(Q.layoutExitNormalTriggers||[]),L=b.next();!L.done;L=b.next()){L=hA(L.value,z,H);if(L instanceof e)return L;f.push(L)}b=[];L=g.n(Q.layoutExitSkipTriggers||[]);for(var u=L.next();!u.done;u=L.next()){u=hA(u.value,z,H);if(u instanceof e)return u;b.push(u)}L=[];u=g.n(Q.layoutExitMuteTriggers||[]);for(var X=u.next();!X.done;X=u.next()){X=hA(X.value,z,H);if(X instanceof e)return X;L.push(X)}u=[];Q=g.n(Q.layoutExitUserInputSubmittedTriggers||[]);for(X=Q.next();!X.done;X= +Q.next()){X=hA(X.value,z,H);if(X instanceof e)return X;u.push(X)}return{layoutExitNormalTriggers:f,layoutExitSkipTriggers:b,layoutExitMuteTriggers:L,layoutExitUserInputSubmittedTriggers:u,YN:[]}}; +fQ=function(Q){var z=g.K(Q.renderingContent,qd);if(z==null?0:z.pings)return oh(z.pings);Q=g.K(Q.renderingContent,vt);return(Q==null?0:Q.skipPings)?new Map([["skip",Q.skipPings]]):new Map}; +aoY=function(Q,z,H,f,b){z=g.K(z.renderingContent,qd);if(!z)return new e("Invalid rendering content for DAI media layout");Q=[new fq(f),new xL(H.lB.videoLengthSeconds),new Od(H.lB.playerVars),new N9(H.Jg),new IX(H.Ui),new Am(H.gN),new e7(HS(Q)),new He(H.lB.adVideoId),new l1(H.uf),z.sodarExtensionData&&new Jm(z.sodarExtensionData),new Gg({current:null}),new YL({}),new mc(OB(z.pings))].filter(xx9);b!==void 0&&Q.push(new Be(b));return Q}; +P1L=function(Q,z,H){Q=Q.map(function(v){return kN(g.K(v.renderingContent,qd),!1)}); +var f=Q.map(function(v){return v.videoLengthSeconds}),b=f.map(function(v,y){return new jp(y,f)}),L=z,u=H,X=[]; +Q.forEach(function(v,y){u=Math.min(L+v.videoLengthSeconds*1E3,H);Wc(v.playerVars,b[y]);X.push({lB:v,Jg:L,Ui:u,gN:y,uf:b[y]});L=u}); +return X}; +Ux9=function(Q,z,H){for(var f=[],b=g.n(Q),L=b.next();!L.done;L=b.next())if(L=g.K(L.value.renderingContent,qd)){if(!X4(L))return new e("Invalid vod media renderer");f.push(mx9(L))}b=f.map(function(M){return M.I4}); +L=[];for(var u=0,X=0;X0?Q9:-1;else if(Z=g.K(R,vt)){R=bqY(Q,z,H,Z,L,G,X,k,Q9);if(R instanceof e){t= +R;break a}R=R(C);x.push(R.AN);J=[].concat(g.F(R.DA),g.F(J));I=[].concat(g.F(R.zl),g.F(I));R.i8&&(SY=[R.i8].concat(g.F(SY)))}else if(Z=g.K(R,CY)){if(t===void 0){t=new e("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:Z});break a}R=Sdc(Q,z,H,L,Z,T,X,t,G,w4(q,"supports_multi_step_on_desktop"));if(R instanceof e){t=R;break a}R=R(C);x.push(R.AN);R.i8&&SY.push(R.i8);J=[].concat(g.F(R.DA),g.F(J));I=[].concat(g.F(R.zl),g.F(I));r=[].concat(g.F(R.XQ),g.F(r)); +U=[].concat(g.F(R.iI),g.F(U));D=[T].concat(g.F(D))}else if(R=g.K(R,tA)){R=Xe9(Q,z,H,L,R,T,X,G);if(R instanceof e){t=R;break a}R=R(C);x.push(R.AN);R.i8&&SY.push(R.i8);I=[].concat(g.F(R.zl),g.F(I))}else{t=new e("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}t={qF:x,layoutExitSkipTriggers:J,layoutExitUserInputSubmittedTriggers:r,YN:U,layoutExitMuteTriggers:I,Ee:D,Se:SY}}}else a:if(G=peY(f,H,q),G instanceof e)t=G;else{x=0;J=[];I=[];r=[];U=[];D=[];T=[];k=new $L({current:null});bL=new zg({current:null}); +SY=!1;V=[];Q9=-1;E=g.n(f);for(R=E.next();!R.done;R=E.next())if(R=R.value,g.K(R,Md)){R=Lcn(z,H,g.K(R,Md),X);if(R instanceof e){t=R;break a}R=R(C);J.push(R.AN);I=[].concat(g.F(R.DA),g.F(I));r=[].concat(g.F(R.zl),g.F(r));R.i8&&(V=[R.i8].concat(g.F(V)))}else if(g.K(R,qd)){Q9=TC(g.K(R,qd),H,q);if(Q9 instanceof fN){t=new e(Q9);break a}R=new jp(x,G);R=nL8(z,Q9.layoutId,Q9.fP,H,eG(Q9.playerVars,Q9.UO,u,y,R),Q9.I4,L,R,X(C),bL,v.get(Q9.fP.externalVideoId),void 0,M);x++;J.push(R.AN);I=[].concat(g.F(R.DA),g.F(I)); +r=[].concat(g.F(R.zl),g.F(r));SY||(T.push(bL),SY=!0);Q9=(Q9=Q9.fP.adPodSkipTarget)&&Q9>0?Q9:-1}else if(g.K(R,vt)){R=bqY(Q,z,H,g.K(R,vt),L,x,X,bL,Q9);if(R instanceof e){t=R;break a}R=R(C);J.push(R.AN);I=[].concat(g.F(R.DA),g.F(I));r=[].concat(g.F(R.zl),g.F(r));R.i8&&(V=[R.i8].concat(g.F(V)))}else if(g.K(R,CY)){if(t===void 0){t=new e("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.K(R,CY)});break a}R=Sdc(Q,z,H,L,g.K(R,CY),k,X,t,x,w4(q,"supports_multi_step_on_desktop")); +if(R instanceof e){t=R;break a}R=R(C);J.push(R.AN);R.i8&&V.push(R.i8);I=[].concat(g.F(R.DA),g.F(I));r=[].concat(g.F(R.zl),g.F(r));U=[].concat(g.F(R.XQ),g.F(U));D=[].concat(g.F(R.iI),g.F(D));T=[k].concat(g.F(T))}else if(g.K(R,tA)){R=Xe9(Q,z,H,L,g.K(R,tA),k,X,x);if(R instanceof e){t=R;break a}R=R(C);J.push(R.AN);R.i8&&V.push(R.i8);r=[].concat(g.F(R.zl),g.F(r))}else{t=new e("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}t={qF:J,layoutExitSkipTriggers:I,layoutExitUserInputSubmittedTriggers:U, +YN:D,layoutExitMuteTriggers:r,Ee:T,Se:V}}t instanceof e?C=t:(D=C.slotId,G=t.qF,x=t.layoutExitSkipTriggers,J=t.layoutExitMuteTriggers,I=t.layoutExitUserInputSubmittedTriggers,r=t.Ee,C=X(C),U=b?b.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",D=b?b.layoutId:kJ(z.B.get(),U,D),T={layoutId:D,layoutType:U,hh:"core"},C={layout:{layoutId:D,layoutType:U,wT:new Map,layoutExitNormalTriggers:[new iB(z.Z,D)],layoutExitSkipTriggers:x,layoutExitMuteTriggers:J,layoutExitUserInputSubmittedTriggers:I,YN:[],hh:"core", +clientMetadata:new bY([new jU(G)].concat(g.F(r))),cz:C(T)},Se:t.Se});return C}}; +peY=function(Q,z,H){var f=[];Q=g.n(Q);for(var b=Q.next();!b.done;b=Q.next())if(b=b.value,g.K(b,qd)){b=TC(g.K(b,qd),z,H);if(b instanceof fN)return new e(b);f.push(b.I4)}return f}; +ZqZ=function(Q,z,H,f,b,L,u,X){if(!xrn(H,X===void 0?!1:X))return new e("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:H});var v=dg(H);if(v<=0)return new e("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:H});var y=new $L({current:null}),q=wmc(Q,z,H,y,f,L,u);return gL_(Q,f,L,v,b,function(M,C){var t=M.slotId,E=me(H);M=u(M);var G,x=(G=yL(z,f,H.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?G: +kJ(z.B.get(),"LAYOUT_TYPE_MEDIA_BREAK",t);t={layoutId:x,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",hh:"core"};G=q(x,C);var J=LN(G.clientMetadata,"metadata_type_fulfilled_layout");J||Cp("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");E=[new e7(f),new hm(v),new Kq(E),y];J&&E.push(new nq(J.layoutType));return{Cem:{layoutId:x,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",wT:new Map,layoutExitNormalTriggers:[new iB(z.Z,x)],layoutExitSkipTriggers:[new Di(z.Z, +C.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new TT(z.Z,C.layoutId)],YN:[],hh:"core",clientMetadata:new bY(E),cz:M(t)},Uch:G}})}; +Ggp=function(Q){if(!JrA(Q))return!1;var z=g.K(Q.adVideoStart,ED);return z?g.K(Q.linearAd,qd)&&ug(z)?!0:(Cp("Invalid Sandwich with notify"),!1):!1}; +$99=function(Q){if(Q.linearAds==null)return!1;Q=g.K(Q.adStart,ED);return Q?ug(Q)?!0:(Cp("Invalid LASR with notify"),!1):!1}; +jXJ=function(Q){if(!oSa(Q))return!1;Q=g.K(Q.adStart,ED);return Q?ug(Q)?!0:(Cp("Invalid LASR with notify"),!1):!1}; +pQ=function(Q,z,H,f,b,L,u,X,v,y){this.D=Q;this.B=z;this.Z=H;this.qc=f;this.Oj=b;this.L=L;this.K3=u;this.L4=X;this.J$=v;this.loadPolicy=y===void 0?1:y}; +rr_=function(Q,z,H,f,b,L,u,X,v,y){var q=[];if(z.length===0&&f.length===0&&H.length===0)return q;z=z.filter(SG);var M=H.filter($rp),C=f.filter(SG),t=new Map,E=Fd_(z),G=H.some(function(d){var h8;return(d==null?void 0:(h8=d.adSlotMetadata)==null?void 0:h8.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),x=H.some(function(d){var h8; +return(d==null?void 0:(h8=d.adSlotMetadata)==null?void 0:h8.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),J=H.some(function(d){var h8; +return(d==null?void 0:(h8=d.adSlotMetadata)==null?void 0:h8.slotType)==="SLOT_TYPE_IN_PLAYER"}),I=H.some(function(d){var h8,j5; +return(d==null?void 0:(h8=d.adSlotMetadata)==null?void 0:h8.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(d==null?void 0:(j5=d.adSlotMetadata)==null?void 0:j5.slotType)==="SLOT_TYPE_ABOVE_FEED"}); +H=H.some(function(d){var h8;return(d==null?void 0:(h8=d.adSlotMetadata)==null?void 0:h8.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); +if(G||x||J||I||H)y=YlA(M,z,X,b,E,Q.Oj.get(),Q.loadPolicy,t,Q.qc.get(),Q.D.get(),J,u,v,y),y instanceof e?Cp(y,void 0,void 0,{contentCpn:b}):q.push.apply(q,g.F(y));y=g.n(z);for(H=y.next();!H.done;H=y.next())H=H.value,x=Fcu(Q,t,H,b,L,u,G,X,E,v,M),x instanceof e?Cp(x,void 0,void 0,{renderer:H.renderer,config:H.config.adPlacementConfig,kind:H.config.adPlacementConfig.kind,contentCpn:b,daiEnabled:u}):q.push.apply(q,g.F(x));x99(Q.qc.get())||(L=OqL(Q,C,b,X,E,t),q.push.apply(q,g.F(L)));if(Q.L===null||u&&!X.TT){var r, +U,D;Q=X.AZ&&z.length===1&&((r=z[0].config)==null?void 0:(U=r.adPlacementConfig)==null?void 0:U.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((D=z[0].renderer)==null?void 0:D.adBreakServiceRenderer);if(!q.length&&!Q){var T,k,bL,SY;Cp("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":z.length,contentCpn:b,"first APR kind":(T=z[0])==null?void 0:(k=T.config)==null?void 0:(bL=k.adPlacementConfig)==null?void 0:bL.kind,renderer:(SY=z[0])==null?void 0: +SY.renderer})}return q}r=f.filter(SG);q.push.apply(q,g.F(Vdn(t,r,Q.B.get(),Q.L,b,G)));if(!q.length){var Q9,V,R,Z;Cp("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":z.length,contentCpn:b,daiEnabled:u.toString(),"first APR kind":(Q9=z[0])==null?void 0:(V=Q9.config)==null?void 0:(R=V.adPlacementConfig)==null?void 0:R.kind,renderer:(Z=z[0])==null?void 0:Z.renderer})}return q}; +OqL=function(Q,z,H,f,b,L){function u(C){return qf(Q.Oj.get(),C)} +var X=[];z=g.n(z);for(var v=z.next();!v.done;v=z.next()){v=v.value;var y=v.renderer,q=y.sandwichedLinearAdRenderer,M=y.linearAdSequenceRenderer;q&&Ggp(q)?(Cp("Found AdNotify with SandwichedLinearAdRenderer"),M=g.K(q.adVideoStart,ED),q=g.K(q.linearAd,qd),Dq(L,y,v.config.adPlacementConfig.kind),y=void 0,M=C1_((y=M)==null?void 0:y.layout.layoutId,Q.B.get(),Q.Z.get(),v.config.adPlacementConfig,v.adSlotLoggingData,q,H,f,u,b,Q.loadPolicy,Q.qc.get(),Q.Oj.get()),M instanceof e?Cp(M):X.push.apply(X,g.F(M))): +M&&(!M.adLayoutMetadata&&$99(M)||M.adLayoutMetadata&&jXJ(M))&&(Cp("Found AdNotify with LinearAdSequenceRenderer"),Dq(L,y,v.config.adPlacementConfig.kind),y=void 0,q=vLZ((y=g.K(M.adStart,ED))==null?void 0:y.layout.layoutId,Q.B.get(),Q.Z.get(),v.config.adPlacementConfig,v.adSlotLoggingData,M.linearAds,R9(M.adLayoutMetadata)?M.adLayoutMetadata:void 0,H,f,u,b,Q.loadPolicy,Q.qc.get()),q instanceof e?Cp(q):X.push.apply(X,g.F(q)))}return X}; +Fcu=function(Q,z,H,f,b,L,u,X,v,y,q){function M(J){return qf(Q.Oj.get(),J)} +var C=H.renderer,t=H.config.adPlacementConfig,E=t.kind,G=H.adSlotLoggingData,x=X.TT&&E==="AD_PLACEMENT_KIND_START";x=L&&!x;if(C.adsEngagementPanelRenderer!=null)return Vb(z,H.elementId,E,C.adsEngagementPanelRenderer.isContentVideoEngagementPanel,C.adsEngagementPanelRenderer.adVideoId,C.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,t,G,function(J,I,r,U){var D=Q.Z.get(),T=J.slotId,k=C.adsEngagementPanelRenderer;J=qf(Q.Oj.get(),J);return nQ(D,T,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", +new h_(k),I,r,k.impressionPings,J,C.adsEngagementPanelRenderer.adLayoutLoggingData,U)}),[]; +if(C.adsEngagementPanelLayoutViewModel)return Vb(z,H.elementId,E,C.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,C.adsEngagementPanelLayoutViewModel.adVideoId,C.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,G,function(J,I,r,U){var D=Q.Z.get(),T=J.slotId,k=C.adsEngagementPanelLayoutViewModel;J=qf(Q.Oj.get(),J);return gM(D,T,"LAYOUT_TYPE_PANEL",new WX(k),I,r,J,C.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,U)}),[]; +if(C.actionCompanionAdRenderer!=null){if(C.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return i4Y(Q.B.get(),Q.L,Q.Z.get(),C.actionCompanionAdRenderer,t,G,f,M);Vb(z,H.elementId,E,C.actionCompanionAdRenderer.isContentVideoCompanion,C.actionCompanionAdRenderer.adVideoId,C.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,t,G,function(J,I,r,U){var D=Q.Z.get(),T=J.slotId,k=C.actionCompanionAdRenderer;J=qf(Q.Oj.get(),J);return nQ(D,T,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", +new cX(k),I,r,k.impressionPings,J,C.actionCompanionAdRenderer.adLayoutLoggingData,U)})}else if(C.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(C.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return hJn(Q.B.get(),Q.L,Q.Z.get(),C.topBannerImageTextIconButtonedLayoutViewModel,t,G,f,M); +Vb(z,H.elementId,E,C.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,C.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,C.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,G,function(J,I,r,U){var D=Q.Z.get(),T=J.slotId,k=C.topBannerImageTextIconButtonedLayoutViewModel;J=qf(Q.Oj.get(),J);return gM(D,T,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new i1(k),I,r,J,C.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,U)})}else if(C.imageCompanionAdRenderer)Vb(z, +H.elementId,E,C.imageCompanionAdRenderer.isContentVideoCompanion,C.imageCompanionAdRenderer.adVideoId,C.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,t,G,function(J,I,r,U){var D=Q.Z.get(),T=J.slotId,k=C.imageCompanionAdRenderer; +J=qf(Q.Oj.get(),J);return nQ(D,T,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new dh(k),I,r,k.impressionPings,J,C.imageCompanionAdRenderer.adLayoutLoggingData,U)}); +else if(C.bannerImageLayoutViewModel)Vb(z,H.elementId,E,C.bannerImageLayoutViewModel.isContentVideoCompanion,C.bannerImageLayoutViewModel.adVideoId,C.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,t,G,function(J,I,r,U){var D=Q.Z.get(),T=J.slotId,k=C.bannerImageLayoutViewModel;J=qf(Q.Oj.get(),J);return gM(D,T,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new md(k),I,r,J,C.bannerImageLayoutViewModel.adLayoutLoggingData,U)}); +else if(C.shoppingCompanionCarouselRenderer)Vb(z,H.elementId,E,C.shoppingCompanionCarouselRenderer.isContentVideoCompanion,C.shoppingCompanionCarouselRenderer.adVideoId,C.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,t,G,function(J,I,r,U){var D=Q.Z.get(),T=J.slotId,k=C.shoppingCompanionCarouselRenderer;J=qf(Q.Oj.get(),J);return nQ(D,T,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new wh(k),I,r,k.impressionPings,J,C.shoppingCompanionCarouselRenderer.adLayoutLoggingData,U)}); +else if(C.adBreakServiceRenderer){if(!UrA(H))return[];if(E==="AD_PLACEMENT_KIND_PAUSE")return atn(Q.B.get(),t,G,H.renderer.adBreakServiceRenderer,f);if(E!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&E!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return PGL(Q.B.get(),t,G,H.renderer.adBreakServiceRenderer,f,b,L);X.AZ||Cp("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:E,adPlacementConfig:t,daiEnabledForContentVideo:String(L),isServedFromLiveInfra:String(X.AZ),clientPlaybackNonce:X.clientPlaybackNonce}); +if(E==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!Q.K3)return new e("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!Q.J$)return new e("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");Q.J$.Cw({adPlacementRenderer:H,contentCpn:f,Lq:b});b=Q.K3.get().getCurrentTimeSec(1,!1);return oLJ(Q.B.get(),H.renderer.adBreakServiceRenderer,t,b,f,G,L)}if(!Q.L4)return new e("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); +Q.L4.Cw({adPlacementRenderer:H,contentCpn:f,Lq:b})}else{if(C.clientForecastingAdRenderer)return eYk(Q.B.get(),Q.Z.get(),t,G,C.clientForecastingAdRenderer,f,b,M);if(C.invideoOverlayAdRenderer)return zkY(Q.B.get(),Q.Z.get(),t,G,C.invideoOverlayAdRenderer,f,b,M);if(C.instreamAdPlayerOverlayRenderer)return RYA(Q.B.get(),Q.Z.get(),t,G,C.instreamAdPlayerOverlayRenderer,f,M);if((C.linearAdSequenceRenderer||C.instreamVideoAdRenderer)&&x)return Slp(Q.B.get(),Q.Z.get(),H,f,M,y,!Q.qc.get().K.C().V("html5_override_ad_video_length_killswitch")); +if(C.linearAdSequenceRenderer&&!x){if(u)return[];Dq(z,C,E);if(C.linearAdSequenceRenderer.adLayoutMetadata){if(!oSa(C.linearAdSequenceRenderer))return new e("Received invalid LinearAdSequenceRenderer.")}else if(C.linearAdSequenceRenderer.linearAds==null)return new e("Received invalid LinearAdSequenceRenderer.");if(g.K(C.linearAdSequenceRenderer.adStart,ED)){Cp("Found AdNotify in LinearAdSequenceRenderer");H=g.K(C.linearAdSequenceRenderer.adStart,ED);if(!vSn(H))return new e("Invalid AdMessageRenderer."); +L=C.linearAdSequenceRenderer.linearAds;return ymk(Q.D.get(),Q.B.get(),Q.Z.get(),Q.Oj.get(),t,G,H,R9(C.linearAdSequenceRenderer.adLayoutMetadata)?C.linearAdSequenceRenderer.adLayoutMetadata:void 0,L,f,b,X,M,v,Q.loadPolicy,Q.qc.get())}return ELa(Q.B.get(),Q.Z.get(),t,G,C.linearAdSequenceRenderer.linearAds,R9(C.linearAdSequenceRenderer.adLayoutMetadata)?C.linearAdSequenceRenderer.adLayoutMetadata:void 0,f,b,X,M,v,Q.loadPolicy,Q.qc.get(),q)}if(!C.remoteSlotsRenderer||L){if(C.instreamVideoAdRenderer&& +!x){if(u)return[];Dq(z,C,E);return g98(Q.B.get(),Q.Z.get(),t,G,C.instreamVideoAdRenderer,f,b,X,M,v,Q.loadPolicy,Q.qc.get(),Q.Oj.get(),q)}if(C.instreamSurveyAdRenderer)return ZqZ(Q.B.get(),Q.Z.get(),C.instreamSurveyAdRenderer,t,G,f,M,w4(Q.qc.get(),"supports_multi_step_on_desktop"));if(C.sandwichedLinearAdRenderer!=null)return JrA(C.sandwichedLinearAdRenderer)?g.K(C.sandwichedLinearAdRenderer.adVideoStart,ED)?(Cp("Found AdNotify in SandwichedLinearAdRenderer"),H=g.K(C.sandwichedLinearAdRenderer.adVideoStart, +ED),vSn(H)?(L=g.K(C.sandwichedLinearAdRenderer.linearAd,qd))?t7Z(H,L,t,Q.D.get(),Q.B.get(),Q.Z.get(),Q.Oj.get(),G,f,b,X,M,v,Q.loadPolicy,Q.qc.get()):new e("Missing IVAR from Sandwich"):new e("Invalid AdMessageRenderer.")):ELa(Q.B.get(),Q.Z.get(),t,G,[C.sandwichedLinearAdRenderer.adVideoStart,C.sandwichedLinearAdRenderer.linearAd],void 0,f,b,X,M,v,Q.loadPolicy,Q.qc.get()):new e("Received invalid SandwichedLinearAdRenderer.");if(C.videoAdTrackingRenderer!=null)return kLJ(Q.B.get(),Q.Z.get(),C.videoAdTrackingRenderer, +t,G,f,b,X.fq,M)}}return[]}; +ZO=function(Q,z,H,f,b,L,u,X){g.h.call(this);var v=this;this.B=Q;this.L=z;this.u8=f;this.K3=b;this.qc=L;this.Vl=u;this.xN=X;this.Z=null;H.get().addListener(this);this.addOnDisposeCallback(function(){H.Sm()||H.get().removeListener(v)}); +f.get().addListener(this);this.addOnDisposeCallback(function(){f.Sm()||f.get().removeListener(v)})}; +N1u=function(Q,z,H){var f=Q.K3.get().getCurrentTimeSec(1,!1);Q.qc.get().K.C().vz()&&zT(Q.Vl.get(),"sdai","onopp.1;evt."+H.event+";start."+H.startSecs.toFixed(3)+";d."+H.NB.toFixed(3));tX(Q.B.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var b=Q.L.get(),L=z.adPlacementRenderer.renderer.adBreakServiceRenderer,u=z.contentCpn,X=z.adPlacementRenderer.adSlotLoggingData,v=Gx(Q.qc.get()),y=Q.Vl;if(b.qc.get().K.C().experiments.Nc("enable_smearing_expansion_dai")){var q=g.Mf(b.qc.get().K.C().experiments, +"max_prefetch_window_sec_for_livestream_optimization");var M=g.Mf(b.qc.get().K.C().experiments,"min_prefetch_offset_sec_for_livestream_optimization");v={Fr:JmL(H),T2:!1,cueProcessedMs:f*1E3};var C=H.startSecs+H.NB;if(f===0)v.OJ=new OF(0,C*1E3);else{M=H.startSecs-M;var t=M-f;v.OJ=t<=0?new OF(M*1E3,C*1E3):new OF(Math.floor(f+Math.random()*Math.min(t,q))*1E3,C*1E3)}q=v}else q={Fr:JmL(H),T2:!1},C=H.startSecs+H.NB,H.startSecs<=f?v=new OF((H.startSecs-4)*1E3,C*1E3):(M=Math.max(0,H.startSecs-f-10),v=new OF(Math.floor(f+ +Math.random()*(v?f===0?0:Math.min(M,5):M))*1E3,C*1E3)),q.OJ=v;b=ig(b,L,u,q,X,[new Fi(H)]);y.get().K.rA(q.OJ.start/1E3-f,H.startSecs-f);return[b]})}; +$H=function(Q){var z,H=(z=LN(Q.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:z.current;if(!H)return null;z=LN(Q.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var f=Q.layoutId,b=LN(Q.clientMetadata,"metadata_type_content_cpn"),L=LN(Q.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),u=LN(Q.clientMetadata,"metadata_type_player_overlay_layout_renderer"),X=LN(Q.clientMetadata,"metadata_type_player_underlay_renderer"),v=LN(Q.clientMetadata, +"metadata_type_ad_placement_config"),y=LN(Q.clientMetadata,"metadata_type_video_length_seconds");var q=QJ(Q.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?LN(Q.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):QJ(Q.clientMetadata,"metadata_type_layout_enter_ms")&&QJ(Q.clientMetadata,"metadata_type_layout_exit_ms")?(LN(Q.clientMetadata,"metadata_type_layout_exit_ms")-LN(Q.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{MF:f,contentCpn:b,i6:H,fh:z,instreamAdPlayerOverlayRenderer:L, +playerOverlayLayoutRenderer:u,instreamAdPlayerUnderlayRenderer:X,adPlacementConfig:v,videoLengthSeconds:y,Al:q,inPlayerLayoutId:LN(Q.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:LN(Q.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; +Amn=function(Q,z){return Isc(Q,z)}; +YdA=function(Q,z){z=Isc(Q,z);if(!z)return null;var H;z.Al=(H=LN(Q.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:H.adBreakRemainingLengthSeconds;return z}; +Isc=function(Q,z){var H,f=(H=LN(Q.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:H.current;if(!f)return null;H=eIn(Q,z);return{v8:Tsn(Q,z),adPlacementConfig:LN(Q.clientMetadata,"metadata_type_ad_placement_config"),Xz:H,contentCpn:LN(Q.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:LN(Q.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:LN(Q.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:LN(Q.clientMetadata, +"metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,Al:void 0,i6:f,MF:Q.layoutId,videoLengthSeconds:LN(Q.clientMetadata,"metadata_type_video_length_seconds")}}; +j3=function(Q,z,H,f,b,L,u,X,v){g.h.call(this);this.D=Q;this.j=z;this.S=H;this.L=f;this.Z=b;this.B=L;this.Oj=u;this.qc=X;this.cI=v;this.rP=!0}; +rmp=function(Q,z,H){return $xa(Q.Z.get(),z.contentCpn,z.MF,function(f){return j79(Q.B.get(),f.slotId,H,z.adPlacementConfig,z.MF,qf(Q.Oj.get(),f))})}; +FM=function(Q,z,H,f,b,L,u,X){g.h.call(this);this.B=Q;this.Z=z;this.L=H;this.qc=f;this.D=b;this.cI=L;this.K3=u;this.Gq=X}; +xH=function(Q){g.h.call(this);this.Z=Q}; +tX=function(Q,z,H,f){Q.Z().vS(z,f);H=H();Q=Q.Z();Q.Yt.E3("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",z,f,H);z=g.n(H);for(H=z.next();!H.done;H=z.next())a:{f=Q;H=H.value;f.Yt.e6("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",H);f.Yt.e6("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",H);try{var b=f.Z;if(g.Fx(H.slotId))throw new e("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(G3(b,H))throw new e("Duplicate registration for slot.",{slotId:H.slotId,slotEntryTriggerType:H.slotEntryTrigger.triggerType}, +"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!b.mY.ut.has(H.slotType))throw new e("No fulfillment adapter factory registered for slot of type: "+H.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!b.mY.Mu.has(H.slotType))throw new e("No SlotAdapterFactory registered for slot of type: "+H.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");UV(b,"TRIGGER_CATEGORY_SLOT_ENTRY",H.slotEntryTrigger?[H.slotEntryTrigger]:[]);UV(b,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", +H.slotFulfillmentTriggers);UV(b,"TRIGGER_CATEGORY_SLOT_EXPIRATION",H.slotExpirationTriggers);var L=f.Z,u=H.slotType+"_"+H.slotPhysicalPosition,X=r4(L,u);if(G3(L,H))throw new e("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");X.set(H.slotId,new KQv(H));L.Z.set(u,X)}catch(bL){bL instanceof e&&bL.D5?(f.Yt.PG("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",bL.D5,H),Cp(bL,H,void 0,void 0,bL.a_)):(f.Yt.PG("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", +H),Cp(bL,H));break a}G3(f.Z,H).j=!0;try{var v=f.Z,y=G3(v,H),q=H.slotEntryTrigger,M=v.mY.H5.get(q.triggerType);M&&(M.u7("TRIGGER_CATEGORY_SLOT_ENTRY",q,H,null),y.L3.set(q.triggerId,M));for(var C=g.n(H.slotFulfillmentTriggers),t=C.next();!t.done;t=C.next()){var E=t.value,G=v.mY.H5.get(E.triggerType);G&&(G.u7("TRIGGER_CATEGORY_SLOT_FULFILLMENT",E,H,null),y.Ze.set(E.triggerId,G))}for(var x=g.n(H.slotExpirationTriggers),J=x.next();!J.done;J=x.next()){var I=J.value,r=v.mY.H5.get(I.triggerType);r&&(r.u7("TRIGGER_CATEGORY_SLOT_EXPIRATION", +I,H,null),y.U.set(I.triggerId,r))}var U=v.mY.ut.get(H.slotType).get().build(v.L,H);y.Y=U;var D=v.mY.Mu.get(H.slotType).get().build(v.S,H);D.init();y.B=D}catch(bL){bL instanceof e&&bL.D5?(f.Yt.PG("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",bL.D5,H),Cp(bL,H,void 0,void 0,bL.a_)):(f.Yt.PG("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",H),Cp(bL,H));nN(f,H,!0);break a}f.Yt.e6("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",H);f.Z.iL(H);for(var T=g.n(f.B),k=T.next();!k.done;k= +T.next())k.value.iL(H);FE(f,H)}}; +OD=function(Q,z,H,f,b){g.h.call(this);var L=this;this.B=Q;this.L=z;this.n5=H;this.context=b;this.Z=new Map;f.get().addListener(this);this.addOnDisposeCallback(function(){f.Sm()||f.get().removeListener(L)})}; +Aru=function(Q,z){var H=0x8000000000000;var f=0;for(var b=g.n(z.slotFulfillmentTriggers),L=b.next();!L.done;L=b.next())L=L.value,L instanceof PZ?(H=Math.min(H,L.Z.start),f=Math.max(f,L.Z.end)):Cp("Found unexpected fulfillment trigger for throttled slot.",z,null,{fulfillmentTrigger:L});f=new OF(H,f);H="throttledadcuerange:"+z.slotId;Q.Z.set(H,z);Q.n5.get().addCueRange(H,f.start,f.end,!1,Q);FI(Q.context.qc.get())&&(z=f.start,f=f.end,b={},Q.context.CE.Hz("tcrr",(b.cid=H,b.sm=z,b.em=f,b)))}; +oa=function(){g.h.apply(this,arguments);this.rP=!0;this.g7=new Map;this.Z=new Map}; +J7=function(Q,z){Q=g.n(Q.g7.values());for(var H=Q.next();!H.done;H=Q.next())if(H.value.layoutId===z)return!0;return!1}; +ND=function(Q,z){Q=g.n(Q.Z.values());for(var H=Q.next();!H.done;H=Q.next()){H=g.n(H.value);for(var f=H.next();!f.done;f=H.next())if(f=f.value,f.layoutId===z)return f}Cp("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.Fx(z)),layoutId:z})}; +sXA=function(){this.Z=new Map}; +B1v=function(Q,z){this.callback=Q;this.slot=z}; +Ia=function(){}; +PxZ=function(Q,z,H){this.callback=Q;this.slot=z;this.K3=H}; +as_=function(Q,z,H){this.callback=Q;this.slot=z;this.K3=H;this.B=!1;this.Z=0}; +U9Z=function(Q,z,H){this.callback=Q;this.slot=z;this.K3=H}; +A7=function(Q){this.K3=Q}; +YH=function(Q){g.h.call(this);this.Wt=Q;this.Sy=new Map}; +rM=function(Q,z){for(var H=[],f=g.n(Q.Sy.values()),b=f.next();!b.done;b=f.next()){b=b.value;var L=b.trigger;L instanceof TT&&L.triggeringLayoutId===z&&H.push(b)}H.length?IT(Q.Wt(),H):Cp("Survey is submitted but no registered triggers can be activated.")}; +sD=function(Q,z,H){YH.call(this,Q);var f=this;this.qc=H;z.get().addListener(this);this.addOnDisposeCallback(function(){z.Sm()||z.get().removeListener(f)})}; +BS=function(Q){g.h.call(this);this.Z=Q;this.rP=!0;this.Sy=new Map;this.S=new Set;this.L=new Set;this.D=new Set;this.j=new Set;this.B=new Set}; +PS=function(Q){g.h.call(this);this.Z=Q;this.Sy=new Map}; +aa=function(Q,z){for(var H=[],f=g.n(Q.Sy.values()),b=f.next();!b.done;b=f.next())b=b.value,b.trigger.Z===z.layoutId&&H.push(b);H.length&&IT(Q.Z(),H)}; +UD=function(Q,z,H){g.h.call(this);var f=this;this.Z=Q;this.context=H;this.Sy=new Map;z.get().addListener(this);this.addOnDisposeCallback(function(){z.Sm()||z.get().removeListener(f)})}; +cS=function(Q,z,H,f,b){g.h.call(this);var L=this;this.B=Q;this.n5=z;this.K3=H;this.cI=f;this.context=b;this.rP=!0;this.Sy=new Map;this.Z=new Set;H.get().addListener(this);this.addOnDisposeCallback(function(){H.Sm()||H.get().removeListener(L)})}; +cmu=function(Q,z,H,f,b,L,u,X,v,y){if(px(Q.cI.get(),1).clientPlaybackNonce!==v)throw new e("Cannot register CueRange-based trigger for different content CPN",{trigger:H});Q.Sy.set(H.triggerId,{nU:new lB(z,H,f,b),cueRangeId:L});Q.n5.get().addCueRange(L,u,X,y,Q);FI(Q.context.qc.get())&&(v={},Q.context.CE.Hz("crr",(v.ca=z,v.tt=H.triggerType,v.st=f.slotType,v.lt=b==null?void 0:b.layoutType,v.cid=L,v.sm=u,v.em=X,v)))}; +iqn=function(Q,z){Q=g.n(Q.Sy.entries());for(var H=Q.next();!H.done;H=Q.next()){var f=g.n(H.value);H=f.next().value;f=f.next().value;if(z===f.cueRangeId)return H}return""}; +i6=function(Q,z){g.h.call(this);var H=this;this.D=Q;this.B=new Map;this.L=new Map;this.Z=null;z.get().addListener(this);this.addOnDisposeCallback(function(){z.Sm()||z.get().removeListener(H)}); +var f;this.Z=((f=z.get().Y9)==null?void 0:f.slotId)||null}; +hkv=function(Q,z){var H=[];Q=g.n(Q.values());for(var f=Q.next();!f.done;f=Q.next())f=f.value,f.slot.slotId===z&&H.push(f);return H}; +h7=function(Q){g.h.call(this);this.Z=Q;this.rP=!0;this.Sy=new Map}; +Vu=function(Q,z,H){z=z.layoutId;for(var f=[],b=g.n(Q.Sy.values()),L=b.next();!L.done;L=b.next())if(L=L.value,L.trigger instanceof iB){var u;if(u=L.trigger.layoutId===z){u=H;var X=awZ.get(L.category);u=X?X===u:!1}u&&f.push(L)}f.length&&IT(Q.Z(),f)}; +WS=function(Q){g.h.call(this);this.Z=Q;this.rP=!0;this.Sy=new Map}; +DO=function(Q,z,H,f,b){g.h.call(this);var L=this;this.S=Q;this.u8=z;this.K3=H;this.Vl=f;this.Z=null;this.rP=!0;this.Sy=new Map;this.L=new Map;z.get().addListener(this);this.addOnDisposeCallback(function(){z.Sm()||z.get().removeListener(L)}); +b.get().addListener(this);this.addOnDisposeCallback(function(){b.Sm()||b.get().removeListener(L)})}; +D9A=function(Q){Q.Z&&(Q.B&&(Q.B.stop(),Q.B.start()),Wcc(Q,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"))}; +Wcc=function(Q,z){for(var H=[],f=g.n(Q.Sy.values()),b=f.next();!b.done;b=f.next())b=b.value,b.trigger.triggerType===z&&H.push(b);H.length>0&&IT(Q.S(),H)}; +KQ=function(Q,z,H,f,b){b=b===void 0?!0:b;for(var L=[],u=g.n(Q.Sy.values()),X=u.next();!X.done;X=u.next()){X=X.value;var v=X.trigger;if(v.triggerType===z){if(v instanceof YE||v instanceof r0||v instanceof a9){if(b&&v.breakDurationMs!==H)continue;if(!b&&v.breakDurationMs===H)continue;if(f.has(v.triggerId))continue}L.push(X)}}L.length>0&&IT(Q.S(),L)}; +Kca=function(Q){Q=Q.adPlacementRenderer.config.adPlacementConfig;if(!Q.prefetchModeConfig||!Q.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;Q=Number(Q.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(Q)||Q<=0?0:Math.floor(Math.random()*Q)}; +VUZ=function(Q){Q=Q.adPlacementRenderer.config.adPlacementConfig;if(Q.prefetchModeConfig&&Q.prefetchModeConfig.cacheFetchRefreshDurationMs&&(Q=Number(Q.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(Q)||Q<=0)))return Q}; +VL=function(Q){Q.Z=null;Q.Sy.clear();Q.L.clear();Q.B&&Q.B.stop();Q.D&&Q.D.stop()}; +dM=function(Q){g.h.call(this);this.L=Q;this.rP=!0;this.Sy=new Map;this.Z=new Map;this.B=new Map}; +d9n=function(Q,z){var H=[];if(z=Q.Z.get(z.layoutId)){z=g.n(z);for(var f=z.next();!f.done;f=z.next())(f=Q.B.get(f.value.triggerId))&&H.push(f)}return H}; +mi=function(Q){g.h.call(this);this.Z=Q;this.Sy=new Map}; +m9L=function(Q,z){for(var H=[],f=g.n(Q.Sy.values()),b=f.next();!b.done;b=f.next())b=b.value,b.trigger instanceof $E&&b.trigger.slotId===z&&H.push(b);H.length>=1&&IT(Q.Z(),H)}; +weY=function(Q,z){var H={slotId:EB(z,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],hh:"surface",clientMetadata:new bY([])},f=Object,b=f.assign;z=kJ(z,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",H.slotId);z={layoutId:z,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",wT:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],YN:[],hh:"surface", +clientMetadata:new bY([]),cz:Al_(!1,H.slotId,H.slotType,H.slotPhysicalPosition,H.hh,H.slotEntryTrigger,H.slotFulfillmentTriggers,H.slotExpirationTriggers,z,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return b.call(f,{},Q,{OHn:!0,slot:H,layout:z})}; +Btk=function(Q,z,H,f){var b=Q.kind;f=f?!1:!Q.hideCueRangeMarker;switch(b){case "AD_PLACEMENT_KIND_START":return f={Fr:new OF(-0x8000000000000,-0x8000000000000),T2:f},H!=null&&(f.OJ=new OF(-0x8000000000000,-0x8000000000000)),f;case "AD_PLACEMENT_KIND_END":return f={Fr:new OF(0x7ffffffffffff,0x8000000000000),T2:f},H!=null&&(f.OJ=new OF(Math.max(0,z-H),0x8000000000000)),f;case "AD_PLACEMENT_KIND_MILLISECONDS":b=Q.adTimeOffset;b.offsetStartMilliseconds||Cp("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); +b.offsetEndMilliseconds||Cp("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");Q=Number(b.offsetStartMilliseconds);b=Number(b.offsetEndMilliseconds);b===-1&&(b=z);if(Number.isNaN(Q)||Number.isNaN(b)||Q>b)return new e("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:Q,offsetEndMs:b},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",b===z&&Q-500<=b);f={Fr:new OF(Q,b),T2:f};if(H!=null){Q=Math.max(0,Q-H);if(Q===b)return f;f.OJ=new OF(Q,b)}return f; +default:return new e("AdPlacementKind not supported in convertToRange.",{kind:b,adPlacementConfig:Q})}}; +JmL=function(Q){var z=Q.startSecs*1E3;return new OF(z,z+Q.NB*1E3)}; +kgu=function(Q){if(!Q||!Q.adPlacements&&!Q.adSlots)return!1;for(var z=g.n(Q.adPlacements||[]),H=z.next();!H.done;H=z.next())if(H=H.value)if(H=H.adPlacementRenderer,H!=null&&(H.config&&H.config.adPlacementConfig&&H.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;Q=g.n(Q.adSlots||[]);for(z=Q.next();!z.done;z=Q.next()){var f=H=void 0;if(((H=g.K(z.value,cc))==null?void 0:(f=H.adSlotMetadata)==null?void 0:f.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; +wM=function(Q){this.qc=Q;this.B=new Map;this.Z=new Map;this.L=new Map}; +EB=function(Q,z){if(kH(Q.qc.get())){var H=Q.B.get(z)||0;H++;Q.B.set(z,H);return z+"_"+H}return g.Ob(16)}; +kJ=function(Q,z,H){if(kH(Q.qc.get())){var f=Q.Z.get(z)||0;f++;Q.Z.set(z,f);return H+"_"+z+"_"+f}return g.Ob(16)}; +u6=function(Q,z){if(kH(Q.qc.get())){var H=Q.L.get(z)||0;H++;Q.L.set(z,H);return z+"_"+H}return g.Ob(16)}; +T1_=function(Q){var z=[new Ed(Q.MF),new Zs(Q.i6),new e7(Q.adPlacementConfig),new xL(Q.videoLengthSeconds),new ix(Q.Al)];Q.instreamAdPlayerOverlayRenderer&&z.push(new bx(Q.instreamAdPlayerOverlayRenderer));Q.playerOverlayLayoutRenderer&&z.push(new Lq(Q.playerOverlayLayoutRenderer));Q.fh&&z.push(new zg(Q.fh));return z}; +ekn=function(Q,z,H,f,b,L){Q=H.inPlayerLayoutId?H.inPlayerLayoutId:kJ(L,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",Q);var u,X,v=H.instreamAdPlayerOverlayRenderer?(u=H.instreamAdPlayerOverlayRenderer)==null?void 0:u.adLayoutLoggingData:(X=H.playerOverlayLayoutRenderer)==null?void 0:X.adLayoutLoggingData;u={layoutId:Q,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",hh:z};return{layoutId:Q,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",wT:new Map,layoutExitNormalTriggers:[new I9(function(y){return u6(L, +y)},H.MF)], +layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],YN:[],hh:z,clientMetadata:f,cz:b(u),adLayoutLoggingData:v}}; +Tx=function(Q,z){var H=this;this.B=Q;this.qc=z;this.Z=function(f){return u6(H.B.get(),f)}}; +j79=function(Q,z,H,f,b,L){H=new bY([new ux(H),new e7(f)]);z=kJ(Q.B.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",z);f={layoutId:z,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",hh:"core"};return{layoutId:z,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",wT:new Map,layoutExitNormalTriggers:[new I9(function(u){return u6(Q.B.get(),u)},b)], +layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],YN:[],hh:"core",clientMetadata:H,cz:L(f),adLayoutLoggingData:void 0}}; +lg=function(Q,z,H,f,b){var L=T1_(f);return ekn(z,H,f,new bY(L),b,Q.B.get())}; +lsn=function(Q,z,H,f,b){var L=T1_(f);L.push(new k9(f.v8));L.push(new TL(f.Xz));return ekn(z,H,f,new bY(L),b,Q.B.get())}; +nQ=function(Q,z,H,f,b,L,u,X,v,y){z=kJ(Q.B.get(),H,z);var q={layoutId:z,layoutType:H,hh:"core"},M=new Map;u&&M.set("impression",u);u=[new Uv(Q.Z,b,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];y&&u.push(new NM(Q.Z,y,["normal"]));return{layoutId:z,layoutType:H,wT:M,layoutExitNormalTriggers:u,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],YN:[],hh:"core",clientMetadata:new bY([f,new e7(L),new Ed(b)]),cz:X(q),adLayoutLoggingData:v}}; +gM=function(Q,z,H,f,b,L,u,X,v){z=kJ(Q.B.get(),H,z);var y={layoutId:z,layoutType:H,hh:"core"},q=[new Uv(Q.Z,b,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];v&&q.push(new NM(Q.Z,v,["normal"]));return{layoutId:z,layoutType:H,wT:new Map,layoutExitNormalTriggers:q,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],YN:[],hh:"core",clientMetadata:new bY([f,new e7(L),new Ed(b)]),cz:u(y),adLayoutLoggingData:X}}; +XM=function(Q,z,H){var f=[];f.push(new cZ(Q.Z,H));z&&f.push(z);return f}; +S3=function(Q,z,H,f,b,L,u){var X={layoutId:z,layoutType:H,hh:"core"};return{layoutId:z,layoutType:H,wT:new Map,layoutExitNormalTriggers:u,layoutExitSkipTriggers:[new xE(Q.Z,z)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],YN:[],hh:"core",clientMetadata:new bY([new Vd(f),new e7(b)]),cz:L(X),adLayoutLoggingData:f.adLayoutLoggingData}}; +wg=function(Q,z,H,f,b,L,u,X){var v={layoutId:z,layoutType:L,hh:"core"};return{layoutId:z,layoutType:L,wT:new Map,layoutExitNormalTriggers:[new I9(Q.Z,H)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],YN:[],hh:"core",clientMetadata:new bY([new e7(f)].concat(g.F(u))),cz:b(v),adLayoutLoggingData:X}}; +yL=function(Q,z,H,f){if(Q.qc.get().MB(z.kind==="AD_PLACEMENT_KIND_START"))if(H===void 0)Cp("Expected SSAP layout ID in renderer",void 0,void 0,{caller:f});else return H}; +Hqa=function(Q,z,H,f,b,L,u,X,v,y,q,M,C){Q=vS(Q,z,H,b,L,u,X,v,M,yL(Q,H,f.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),C);z=Q.Ee;H=new pq(Q.lS);f=Q.layoutExitSkipTriggers;y>0&&(z.push(H),z.push(new QN(y)),f=[]);z.push(new R7(q));return{AN:{layoutId:Q.layoutId,layoutType:Q.layoutType,wT:Q.wT,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],YN:[],hh:Q.hh,clientMetadata:new bY(z),cz:Q.cz,adLayoutLoggingData:Q.adLayoutLoggingData}, +DA:f,zl:Q.layoutExitMuteTriggers,XQ:Q.layoutExitUserInputSubmittedTriggers,iI:Q.YN,i8:Q.i8}}; +ui9=function(Q,z,H,f,b,L,u,X,v,y){z=vS(Q,z,H,f,L,new Map,u,function(q){return X(q,v)},void 0,yL(Q,H,b.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); +Q=new TT(Q.Z,z.lS);H=new pq(z.lS);y=new R7(y);return{AN:{layoutId:z.layoutId,layoutType:z.layoutType,wT:z.wT,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],YN:[],hh:z.hh,clientMetadata:new bY([].concat(g.F(z.Ee),[H,y])),cz:z.cz,adLayoutLoggingData:z.adLayoutLoggingData},DA:z.layoutExitSkipTriggers,zl:z.layoutExitMuteTriggers,XQ:[].concat(g.F(z.layoutExitUserInputSubmittedTriggers),[Q]),iI:z.YN,i8:z.i8}}; +vS=function(Q,z,H,f,b,L,u,X,v,y,q){z=y!=null?y:kJ(Q.B.get(),"LAYOUT_TYPE_MEDIA_BREAK",z);y={layoutId:z,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",hh:"adapter"};X=X(z);var M=LN(X.clientMetadata,"metadata_type_fulfilled_layout");M||Cp("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var C=M?M.layoutId:"";H=[new e7(H),new hm(f),new Kq(b)];M&&H.push(new nq(M.layoutType));q&&H.push(new Am(q));return{layoutId:z,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", +wT:L,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new Di(Q.Z,C)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],YN:[],hh:"adapter",Ee:H,cz:u(y),adLayoutLoggingData:v,i8:X,lS:C}}; +ZP9=function(Q,z,H,f,b,L,u,X,v,y,q){Q=Rk_(Q,z,"core",H,f,b,L,u,X,v,y,void 0,q);return{layoutId:Q.layoutId,layoutType:Q.layoutType,wT:Q.wT,layoutExitNormalTriggers:Q.layoutExitNormalTriggers,layoutExitSkipTriggers:Q.layoutExitSkipTriggers,layoutExitMuteTriggers:Q.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:Q.layoutExitUserInputSubmittedTriggers,YN:Q.YN,hh:Q.hh,clientMetadata:new bY(Q.EP),cz:Q.cz,adLayoutLoggingData:Q.adLayoutLoggingData}}; +nL8=function(Q,z,H,f,b,L,u,X,v,y,q,M,C){z=Rk_(Q,z,"adapter",H,f,b,L,u,X,v,q,M,C);f=z.layoutExitSkipTriggers;b=z.EP;H.adPodSkipTarget&&H.adPodSkipTarget>0&&(b.push(y),b.push(new QN(H.adPodSkipTarget)),f=[]);b.push(new R7(X.adPodIndex));H.isCritical&&(f=[new NM(Q.Z,z.layoutId,["error"])].concat(g.F(f)));return{AN:{layoutId:z.layoutId,layoutType:z.layoutType,wT:z.wT,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],YN:[],hh:z.hh,clientMetadata:new bY(b), +cz:z.cz,adLayoutLoggingData:z.adLayoutLoggingData},DA:f,zl:z.layoutExitMuteTriggers,XQ:z.layoutExitUserInputSubmittedTriggers,iI:z.YN}}; +Rk_=function(Q,z,H,f,b,L,u,X,v,y,q,M,C){var t={layoutId:z,layoutType:"LAYOUT_TYPE_MEDIA",hh:H};b=[new e7(b),new l1(v),new He(f.externalVideoId),new fq(X),new Kq({impressionCommands:f.impressionCommands,abandonCommands:f.onAbandonCommands,completeCommands:f.completeCommands,progressCommands:f.adVideoProgressCommands}),new Od(L),new Gg({current:null}),new xL(u)];(L=f.playerOverlay.instreamAdPlayerOverlayRenderer)&&b.push(new bx(L));(u=f.playerOverlay.playerOverlayLayoutRenderer)&&b.push(new Lq(u)); +M&&b.push(new oX(M));(M=f.playerUnderlay)&&b.push(new ux(M));X=EB(Q.B.get(),"SLOT_TYPE_IN_PLAYER");M=(M=L?L.elementId:u==null?void 0:u.layoutId)?M:kJ(Q.B.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",X);b.push(new pq(M));b.push(new g1(X));b.push(new Am(v.adPodIndex));f.adNextParams&&b.push(new Do(f.adNextParams));f.shrunkenPlayerBytesConfig&&b.push(new ve(f.shrunkenPlayerBytesConfig));f.clickthroughEndpoint&&b.push(new KP(f.clickthroughEndpoint));f.legacyInfoCardVastExtension&&b.push(new We(f.legacyInfoCardVastExtension)); +f.sodarExtensionData&&b.push(new Jm(f.sodarExtensionData));q&&b.push(new ce(q));b.push(new mc(OB(f.pings)));v=oh(f.pings);if(C){a:{C=g.n(C);for(q=C.next();!q.done;q=C.next())if(q=q.value,q.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(L=g.K(q.fulfillmentContent.fulfilledLayout,$N))&&(L=g.K(L.renderingContent,Zq))&&L.associatedPlayerBytesLayoutId===z){C=q;break a}C=void 0}C&&b.push(new SU(C))}return{layoutId:z,layoutType:"LAYOUT_TYPE_MEDIA",wT:v,layoutExitNormalTriggers:[new iB(Q.Z,z)],layoutExitSkipTriggers:f.skipOffsetMilliseconds? +[new Di(Q.Z,M)]:[],layoutExitMuteTriggers:[new Di(Q.Z,M)],layoutExitUserInputSubmittedTriggers:[],YN:[],hh:H,EP:b,cz:y(t),adLayoutLoggingData:f.adLayoutLoggingData}}; +v9v=function(Q,z,H,f,b,L,u,X,v){f.every(function(q){return z3(q,[],["LAYOUT_TYPE_MEDIA"])})||Cp("Unexpect subLayout type for DAI composite layout"); +z=kJ(Q.B.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",z);var y={layoutId:z,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",hh:"core"};return{layoutId:z,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",wT:new Map,layoutExitNormalTriggers:[new A2(Q.Z)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],YN:[],hh:"core",clientMetadata:new bY([new N9(H),new IX(X),new jU(f),new e7(b),new Be(L),new YL({}),new kL(v)]),cz:u(y)}}; +bPZ=function(Q){return Q!=null}; +e3=function(Q,z,H){var f=this;this.B=Q;this.L=z;this.qc=H;this.Z=function(b){return u6(f.B.get(),b)}}; +oLJ=function(Q,z,H,f,b,L,u){if(!H.prefetchModeConfig)return new e("AdPlacementConfig for Live Prefetch is missing prefetch_config");H=H.prefetchModeConfig;f*=1E3;var X=[];if(!H.breakLengthMs)return new e("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var v=g.n(H.breakLengthMs),y=v.next();!y.done;y=v.next())if(y=y.value,Number(y)>0){var q=f+Number(H.startTimeOffsetMs),M=q+Number(H.cacheFetchSmearingDurationMs);y={Fr:new OF(M,M+Number(y)),T2:!1,OJ:new OF(Math.floor(q+Math.random()* +Number(H.cacheFetchSmearingDurationMs)),M),cueProcessedMs:f?f:q};q=[];q.push(new RX({}));M=[];M.push(new WZ(Q.Z));M.push(new eA_(Q.Z));u&&q.push(new YL({}));X.push(ig(Q,z,b,y,L,q,M))}return X}; +ig=function(Q,z,H,f,b,L,u){L=L===void 0?[]:L;u=u===void 0?[]:u;var X=EB(Q.B.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),v=[];u=g.n(u);for(var y=u.next();!y.done;y=u.next())v.push(y.value);f.OJ&&f.OJ.start!==f.Fr.start&&v.push(new PZ(Q.Z,H,new OF(f.OJ.start,f.Fr.start),!1));v.push(new PZ(Q.Z,H,new OF(f.Fr.start,f.Fr.end),f.T2));f={getAdBreakUrl:z.getAdBreakUrl,ET:f.Fr.start,Ja:f.Fr.end,cueProcessedMs:f.cueProcessedMs};z=new m9(Q.Z,X);L=[new aX(f)].concat(g.F(L));return{slotId:X,slotType:"SLOT_TYPE_AD_BREAK_REQUEST", +slotPhysicalPosition:1,slotEntryTrigger:z,slotFulfillmentTriggers:v,slotExpirationTriggers:[new h2(Q.Z,H),new V0(Q.Z,X),new d0(Q.Z,X)],hh:"core",clientMetadata:new bY(L),adSlotLoggingData:b}}; +zF8=function(Q,z,H){var f=[];H=g.n(H);for(var b=H.next();!b.done;b=H.next())f.push(QTa(Q,z,b.value));return f}; +QTa=function(Q,z,H){return H.triggeringSlotId!=null&&H.triggeringSlotId===Q?H.clone(z):H}; +mr9=function(Q,z,H,f,b){return HN_(Q,z,H,f,b)}; +fsA=function(Q,z,H,f){var b=EB(Q.B.get(),"SLOT_TYPE_IN_PLAYER");return HN_(Q,b,z,H,f)}; +HN_=function(Q,z,H,f,b){var L=new J2(Q.Z,H),u=[new K6(Q.Z,z)];Q=[new V0(Q.Z,z),new h2(Q.Z,f)];return{slotId:z,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:L,slotFulfillmentTriggers:u,slotExpirationTriggers:Q,hh:"core",clientMetadata:new bY([new Pe(b({slotId:z,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,hh:"core",slotEntryTrigger:L,slotFulfillmentTriggers:u,slotExpirationTriggers:Q},H))]),adSlotLoggingData:void 0}}; +gL_=function(Q,z,H,f,b,L){var u=EB(Q.B.get(),"SLOT_TYPE_PLAYER_BYTES"),X=EB(Q.B.get(),"SLOT_TYPE_IN_PLAYER"),v=kJ(Q.B.get(),"LAYOUT_TYPE_SURVEY",X);f=l6(Q,z,H,f);var y=[new K6(Q.Z,u)];H=[new V0(Q.Z,u),new h2(Q.Z,H),new xE(Q.Z,v)];if(f instanceof e)return f;X=L({slotId:u,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,hh:"core",slotEntryTrigger:f,slotFulfillmentTriggers:y,slotExpirationTriggers:H},{slotId:X,layoutId:v});L=X.Cem;X=X.Uch;return[{slotId:u,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, +slotEntryTrigger:MD(Q,z,u,f),slotFulfillmentTriggers:CQ(Q,z,u,y),slotExpirationTriggers:H,hh:"core",clientMetadata:new bY([new Pe(L),new Tg(t7(z)),new lx({kG:Q.kG(z)})]),adSlotLoggingData:b},X]}; +t7=function(Q){return Q.kind==="AD_PLACEMENT_KIND_START"}; +GLn=function(Q,z,H,f,b){b=b?b:EB(Q.B.get(),"SLOT_TYPE_IN_PLAYER");H=new J2(Q.Z,H);var L=[new K6(Q.Z,b)];Q=[new h2(Q.Z,z),new V0(Q.Z,b)];return{slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:H,slotFulfillmentTriggers:L,slotExpirationTriggers:Q,hh:"core",clientMetadata:new bY([new Pe(f({slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,hh:"core",slotEntryTrigger:H,slotFulfillmentTriggers:L,slotExpirationTriggers:Q}))])}}; +$xa=function(Q,z,H,f){var b=EB(Q.B.get(),"SLOT_TYPE_PLAYER_UNDERLAY");H=new J2(Q.Z,H);var L=[new K6(Q.Z,b)];Q=[new h2(Q.Z,z),new V0(Q.Z,b)];return{slotId:b,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:H,slotFulfillmentTriggers:L,slotExpirationTriggers:Q,hh:"core",clientMetadata:new bY([new Pe(f({slotId:b,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,hh:"core",slotEntryTrigger:H,slotFulfillmentTriggers:L,slotExpirationTriggers:Q}))])}}; +M7n=function(Q,z,H,f,b,L,u){var X=EB(Q.B.get(),"SLOT_TYPE_IN_PLAYER"),v=kJ(Q.B.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",X);f=fS6(Q,f,L,u,v);if(f instanceof e)return f;u=[new K6(Q.Z,X)];b=[new h2(Q.Z,L),new K6(Q.Z,b),new kE(Q.Z,b)];H=qf(H,{slotId:X,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,hh:"core",slotEntryTrigger:f,slotFulfillmentTriggers:u,slotExpirationTriggers:b});Q=Q.L.get();L={layoutId:v,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",hh:"core"};z={layoutId:v,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", +wT:new Map,layoutExitNormalTriggers:[new LtA(Q.Z,v,z.durationMs)],layoutExitSkipTriggers:[new S1p(Q.Z,v,z.durationMs)],YN:[new uha(Q.Z,v)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],hh:"core",clientMetadata:new bY([new Ds(z)]),cz:H(L)};return{slotId:X,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,hh:"core",slotEntryTrigger:f,slotFulfillmentTriggers:u,slotExpirationTriggers:b,clientMetadata:new bY([new Pe(z)])}}; +QXZ=function(Q,z,H,f,b,L){z=l6(Q,z,H,f);if(z instanceof e)return z;var u=z instanceof PZ?new H4n(Q.Z,H,z.Z):null;f=EB(Q.B.get(),"SLOT_TYPE_IN_PLAYER");var X=[new K6(Q.Z,f)];Q=[new h2(Q.Z,H),new V0(Q.Z,f)];L=L({slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,hh:"core",slotEntryTrigger:z,slotFulfillmentTriggers:X,slotExpirationTriggers:Q},u);return L instanceof fN?new e(L):{slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:z,slotFulfillmentTriggers:X,slotExpirationTriggers:Q, +hh:"core",clientMetadata:new bY([new Pe(L)]),adSlotLoggingData:b}}; +lo9=function(Q,z,H,f){var b=EB(Q.B.get(),"SLOT_TYPE_IN_PLAYER"),L=new FO(Q.Z,z),u=[new w0(Q.Z,b)];Q=[new h2(Q.Z,z),new V0(Q.Z,b)];return{slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:L,slotFulfillmentTriggers:u,slotExpirationTriggers:Q,hh:"core",clientMetadata:new bY([new Pe(f({slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,hh:"core",slotEntryTrigger:L,slotFulfillmentTriggers:u,slotExpirationTriggers:Q}))]),adSlotLoggingData:H}}; +RJJ=function(Q,z,H,f){var b=EB(Q.B.get(),"SLOT_TYPE_IN_PLAYER");H=new J2(Q.Z,H);var L=[new K6(Q.Z,b)],u=[new V0(Q.Z,b),new h2(Q.Z,z)];L={slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,hh:"core",slotEntryTrigger:H,slotFulfillmentTriggers:L,slotExpirationTriggers:u};return{slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:H,slotFulfillmentTriggers:[new K6(Q.Z,b)],slotExpirationTriggers:[new h2(Q.Z,z),new V0(Q.Z,b)],hh:"core",clientMetadata:new bY([new Pe(f(L))])}}; +Tt8=function(Q,z,H,f,b){var L=EB(Q.B.get(),"SLOT_TYPE_IN_PLAYER");H=new o9(Q.Z,f,H);f=[new K6(Q.Z,L)];Q=[new h2(Q.Z,z)];return{slotId:L,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:H,slotFulfillmentTriggers:f,slotExpirationTriggers:Q,hh:"core",clientMetadata:new bY([new Pe(b({slotId:L,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,hh:"core",slotEntryTrigger:H,slotFulfillmentTriggers:f,slotExpirationTriggers:Q}))])}}; +KtL=function(Q,z,H,f,b,L){var u=EB(Q.B.get(),z);return Ra(Q,u,z,new J2(Q.Z,f),[new h2(Q.Z,H),new V0(Q.Z,u),new NM(Q.Z,f,["error"])],b,L)}; +Dr_=function(Q,z,H,f,b,L,u){var X=EB(Q.B.get(),z);return Ra(Q,X,z,new NM(Q.Z,b,["normal"]),[new h2(Q.Z,H),new V0(Q.Z,X),new NM(Q.Z,f,["error"])],L,u)}; +cra=function(Q,z,H,f,b){var L=EB(Q.B.get(),z);return Ra(Q,L,z,new FO(Q.Z,H),[new h2(Q.Z,H),new V0(Q.Z,L)],f,b)}; +wXp=function(Q,z,H,f,b){H=H?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var L=EB(Q.B.get(),H);z=new FO(Q.Z,z);var u=[new K6(Q.Z,L)];Q=[new V0(Q.Z,L)];return{slotId:L,slotType:H,slotPhysicalPosition:1,slotEntryTrigger:z,slotFulfillmentTriggers:u,slotExpirationTriggers:Q,hh:"core",clientMetadata:new bY([new Pe(b({slotId:L,slotType:H,slotPhysicalPosition:1,hh:"core",slotEntryTrigger:z,slotFulfillmentTriggers:u,slotExpirationTriggers:Q}))]),adSlotLoggingData:f}}; +LdL=function(Q,z,H,f){var b=EB(Q.B.get(),"SLOT_TYPE_PLAYER_BYTES"),L=new BZ(Q.Z),u=[new w0(Q.Z,b)];Q=[new h2(Q.Z,z)];return{slotId:b,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:L,slotFulfillmentTriggers:u,slotExpirationTriggers:Q,hh:"core",clientMetadata:new bY([new Pe(f({slotId:b,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,hh:"core",slotEntryTrigger:L,slotFulfillmentTriggers:u,slotExpirationTriggers:Q})),new YL({})]),adSlotLoggingData:H}}; +Cxp=function(Q,z){return x99(Q.qc.get())?new NM(Q.Z,z,["normal","error","skipped"]):new NM(Q.Z,z,["normal"])}; +pXc=function(Q,z,H,f,b){z=Cxp(Q,z);Q=qD(Q,z,H);b=b({slotId:Q.slotId,slotType:Q.slotType,slotPhysicalPosition:Q.slotPhysicalPosition,slotEntryTrigger:Q.slotEntryTrigger,slotFulfillmentTriggers:Q.slotFulfillmentTriggers,slotExpirationTriggers:Q.slotExpirationTriggers,hh:Q.hh});return b instanceof e?b:{zV:Object.assign({},Q,{clientMetadata:new bY([new Pe(b.layout)]),adSlotLoggingData:f}),Se:b.Se}}; +n9A=function(Q,z,H,f,b,L,u){H=tUa(Q,z,H,f);if(H instanceof e)return H;u=u({slotId:H.slotId,slotType:H.slotType,slotPhysicalPosition:H.slotPhysicalPosition,slotEntryTrigger:H.slotEntryTrigger,slotFulfillmentTriggers:H.slotFulfillmentTriggers,slotExpirationTriggers:H.slotExpirationTriggers,hh:H.hh});if(u instanceof e)return u;f=[new Tg(t7(z)),new Pe(u.layout),new lx({kG:Q.kG(z)})];L&&f.push(new VN({}));return{zV:{slotId:H.slotId,slotType:H.slotType,slotPhysicalPosition:H.slotPhysicalPosition,slotEntryTrigger:MD(Q, +z,H.slotId,H.slotEntryTrigger),slotFulfillmentTriggers:CQ(Q,z,H.slotId,H.slotFulfillmentTriggers),slotExpirationTriggers:H.slotExpirationTriggers,hh:H.hh,clientMetadata:new bY(f),adSlotLoggingData:b},Se:u.Se}}; +MD=function(Q,z,H,f){return Q.qc.get().MB(t7(z))?new $E(Q.Z,H):f}; +CQ=function(Q,z,H,f){return Q.qc.get().MB(t7(z))?[new w0(Q.Z,H)]:f}; +qD=function(Q,z,H){var f=EB(Q.B.get(),"SLOT_TYPE_PLAYER_BYTES"),b=[new K6(Q.Z,f)];Q=[new V0(Q.Z,f),new h2(Q.Z,H)];return{slotId:f,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:z,slotFulfillmentTriggers:b,slotExpirationTriggers:Q,hh:"core"}}; +tUa=function(Q,z,H,f){z=l6(Q,z,H,f);return z instanceof e?z:qD(Q,z,H)}; +Th8=function(Q,z,H,f,b,L){var u=EB(Q.B.get(),"SLOT_TYPE_FORECASTING");z=l6(Q,z,H,f);if(z instanceof e)return z;f=[new K6(Q.Z,u)];Q=[new V0(Q.Z,u),new h2(Q.Z,H)];return{slotId:u,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:z,slotFulfillmentTriggers:f,slotExpirationTriggers:Q,hh:"core",clientMetadata:new bY([new Pe(L({slotId:u,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,hh:"core",slotEntryTrigger:z,slotFulfillmentTriggers:f,slotExpirationTriggers:Q}))]),adSlotLoggingData:b}}; +bNY=function(Q,z,H,f,b){var L=!z.hideCueRangeMarker;switch(z.kind){case "AD_PLACEMENT_KIND_START":return new FO(Q.Z,H);case "AD_PLACEMENT_KIND_MILLISECONDS":return Q=Btk(z,f),Q instanceof e?Q:b(Q.Fr,L);case "AD_PLACEMENT_KIND_END":return new Ov(Q.Z,H,L);default:return new e("Cannot construct entry trigger",{kind:z.kind})}}; +fS6=function(Q,z,H,f,b){return bNY(Q,z,H,f,function(L,u){return new zJu(Q.Z,H,L,u,b)})}; +l6=function(Q,z,H,f){return bNY(Q,z,H,f,function(b,L){return new PZ(Q.Z,H,b,L)})}; +Ra=function(Q,z,H,f,b,L,u){Q=[new w0(Q.Z,z)];return{slotId:z,slotType:H,slotPhysicalPosition:1,slotEntryTrigger:f,slotFulfillmentTriggers:Q,slotExpirationTriggers:b,hh:"core",clientMetadata:new bY([new Pe(u({slotId:z,slotType:H,slotPhysicalPosition:1,hh:"core",slotEntryTrigger:f,slotFulfillmentTriggers:Q,slotExpirationTriggers:b}))]),adSlotLoggingData:L}}; +Q1=function(Q,z){g.h.call(this);this.qc=Q;this.Z=z;this.eventCount=0}; +z0=function(Q,z,H,f){Q1.call(this,Q,z);this.qc=Q;this.cI=H;this.context=f}; +HB=function(){this.Z=new Map}; +LE=function(Q,z){var H=this;this.currentState="wait";this.onSuccess=[];this.onFailure=[];this.currentState=Q;this.result=z.result;this.error=z.error;z.promise&&z.promise.then(function(f){fE(H,f)},function(f){bM(H,f)})}; +X_=function(Q){if(uM(Q)){if(Q instanceof LE)return Q;if(SJ(Q))return new LE("wait",{promise:Q})}return new LE("done",{result:Q})}; +vB=function(){return new LE("wait",{})}; +y1=function(Q){return new LE("fail",{error:Q})}; +q1=function(Q){try{return X_(Q())}catch(z){return y1(z)}}; +CE=function(Q,z){var H=vB();Q.onSuccess.push(function(f){try{var b=z(f);fE(H,b)}catch(L){bM(H,L)}}); +Q.onFailure.push(function(f){bM(H,f)}); +M1(Q);return H}; +tK=function(Q,z){var H=vB();Q.onSuccess.push(function(f){fE(H,f)}); +Q.onFailure.push(function(f){try{var b=z(f);fE(H,b)}catch(L){bM(H,L)}}); +M1(Q);return H}; +Lmp=function(Q,z){var H=vB();Q.onSuccess.push(function(f){try{z(),fE(H,f)}catch(b){bM(H,b)}}); +Q.onFailure.push(function(f){try{z(),bM(H,f)}catch(b){bM(H,b)}}); +M1(Q)}; +fE=function(Q,z){if(uM(z)){if(SJ(z)){z.then(function(H){fE(Q,H)},function(H){bM(Q,H)}); +return}if(z instanceof LE){CE(z,function(H){fE(Q,H)}); +tK(z,function(H){bM(Q,H)}); +return}}Q.currentState="done";Q.result=z;M1(Q)}; +bM=function(Q,z){Q.currentState="fail";Q.error=z;M1(Q)}; +M1=function(Q){if(Q.currentState==="done"){var z=Q.onSuccess;Q.onSuccess=[];Q.onFailure=[];z=g.n(z);for(var H=z.next();!H.done;H=z.next())H=H.value,H(Q.result)}else if(Q.currentState==="fail")for(z=Q.onFailure,Q.onSuccess=[],Q.onFailure=[],z=g.n(z),H=z.next();!H.done;H=z.next())H=H.value,H(Q.error)}; +SV6=function(Q){return function(){return uEA(Q.apply(this,g.rc.apply(0,arguments)))}}; +uEA=function(Q){return q1(function(){return EW(Q,Q.next())})}; +EW=function(Q,z){return z.done?X_(z.value):tK(CE(z.value.sy,function(H){return EW(Q,Q.next(H))}),function(H){return EW(Q,Q.throw(H))})}; +XaZ=function(Q,z){if(Q.length===0)return X_(NaN);var H=vB(),f=Q.length;Q.forEach(function(b,L){Lmp(X_(b),function(){H.currentState==="wait"&&(z!==void 0&&z(L)&&H.currentState==="wait"?H.resolve(L):(--f,f===0&&H.resolve(NaN)))})}); +return H}; +vJJ=function(Q){return Q.map(function(z){return X_(z)})}; +nE=function(Q){var z=Q.hours||0;var H=Q.minutes||0,f=Q.seconds||0;z=f+H*60+z*3600+(Q.days||0)*86400+(Q.weeks||0)*604800+(Q.months||0)*2629800+(Q.years||0)*31557600;z<=0?z={hours:0,minutes:0,seconds:0}:(Q=z,z=Math.floor(Q/3600),Q%=3600,H=Math.floor(Q/60),f=Math.floor(Q%60),z={hours:z,minutes:H,seconds:f});var b=z.hours===void 0?0:z.hours;H=z.minutes===void 0?0:z.minutes;Q=z.seconds===void 0?0:z.seconds;f=b>0;z=[];if(f){b=(new Intl.NumberFormat("en-u-nu-latn")).format(b);var L=["fr"],u="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(" "); +b="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(pE)?b.replace(",","\u00a0"):L.includes(pE)?b.replace(",","\u202f"):u.includes(pE)?b.replace(",","."):b;z.push(b)}f=f===void 0?!1:f;H=(["af","be","lt"].includes(pE)||f)&&H<10?yO_().format(H):(new Intl.NumberFormat("en-u-nu-latn")).format(H);z.push(H);H=yO_().format(Q);z.push(H);H=":";"da fi id si sr sr-Latn".split(" ").includes(pE)&&(H=".");return z.join(H)}; +yO_=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; +qV_=function(Q,z){var H,f;Q=((H=Q.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(f=H.videoAuthorizationToken)==null?void 0:f.credentialTransferTokens)||[];for(H=0;Hz;Q=H}else Q=!1;return Q}; +N4a=function(Q){Q=Q.split(H_[1]);sW.OP(Q,32);sW.ZV(Q,3);sW.OP(Q,40);sW.kh(Q,15);sW.ZV(Q,1);sW.OP(Q,71);sW.ZV(Q,2);return Q.join(H_[1])}; +g.BB=function(Q,z){return Q.qP+"timedtext_video?ref=player&v="+z.videoId}; +g.ISv=function(Q){var z=this;this.videoData=Q;Q={};this.Z=(Q.c1a=function(){var H=[];if(g.YA.isInitialized()){var f="";z.videoData&&z.videoData.iF&&(f=z.videoData.iF+("&r1b="+z.videoData.clientPlaybackNonce));var b={};f=(b.atr_challenge=f,b);dE("bg_v",void 0,"player_att");(f=JOA(f))?(dE("bg_s",void 0,"player_att"),H.push("r1a="+f)):(dE("bg_e",void 0,"player_att"),H.push("r1c=2"))}else dE("bg_e",void 0,"player_att"),window.trayride||window.botguard?H.push("r1c=1"):H.push("r1c=4");H.push("r1d="+g.YA.getState()); +return H.join("&")},Q.c6a=function(H){return"r6a="+(Number(H.c)^yT())},Q.c6b=function(H){return"r6b="+(Number(H.c)^Number(g.ey("CATSTAT",0)))},Q); +this.videoData&&this.videoData.iF?this.kM=L1(this.videoData.iF):this.kM={}}; +g.AOp=function(Q){if(Q.videoData&&Q.videoData.iF){for(var z=[Q.videoData.iF],H=g.n(Object.keys(Q.Z)),f=H.next();!f.done;f=H.next())f=f.value,Q.kM[f]&&Q.Z[f]&&(f=Q.Z[f](Q.kM))&&z.push(f);return z.join("&")}return null}; +g.PB=function(Q,z){oJY(Q,{GSn:g.Mf(z.experiments,"bg_vm_reinit_threshold"),cspNonce:z.cspNonce,qP:z.qP||""})}; +YVZ=function(){var Q=XMLHttpRequest.prototype.fetch;return!!Q&&Q.length===3}; +aA=function(Q){Q=Q===void 0?2592E3:Q;if(Q>0&&!(fxa()>(0,g.IE)()-Q*1E3))return 0;Q=g.a4("yt-player-quality");if(typeof Q==="string"){if(Q=g.ct[Q],Q>0)return Q}else if(Q instanceof Object)return Q.quality;return 0}; +UW=function(){var Q=g.a4("yt-player-proxima-pref");return Q==null?null:Q}; +rOa=function(){var Q=g.a4("yt-player-quality");if(Q instanceof Object&&Q.quality&&Q.previousQuality){if(Q.quality>Q.previousQuality)return 1;if(Q.quality0&&z[0]?Q.getAutoplayPolicy(z[0]):Q.getAutoplayPolicy("mediaelement");if(cOA[H])return cOA[H]}}catch(f){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; +V1=function(Q){return Q.m4||Q.Yn||Q.mutedAutoplay}; +iNL=function(Q,z){return V1(Q)?z!==1&&z!==2&&z!==0?"AUTOPLAY_STATUS_UNAVAILABLE":Q.cK?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; +hF9=function(Q,z,H){var f=z.C();Q.thirdParty||(Q.thirdParty={});f.ancestorOrigins&&(Q.thirdParty.embeddedPlayerContext=Object.assign({},Q.thirdParty.embeddedPlayerContext,{ancestorOrigins:f.ancestorOrigins}));f.V("embeds_enable_autoplay_and_visibility_signals")&&(f.Uu!=null&&(Q.thirdParty.embeddedPlayerContext=Object.assign({},Q.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(f.Uu)})),f.gt&&(Q.thirdParty.embeddedPlayerContext=Object.assign({},Q.thirdParty.embeddedPlayerContext,{visibilityFractionSource:f.gt})), +Q.thirdParty.embeddedPlayerContext=Object.assign({},Q.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:KE(),autoplayIntended:V1(z),autoplayStatus:iNL(z,H)}))}; +Km6=function(Q,z){kS(Q,2,z.hK,dZ,3);kS(Q,3,z.AL,WmZ,3);mt(Q,4,z.onesieUstreamerConfig);mt(Q,9,z.VO);kS(Q,10,z.Cx,mN,3);kS(Q,15,z.reloadPlaybackParams,DfZ,3)}; +dfv=function(Q,z){kS(Q,1,z.formatId,wZ,3);VT(Q,2,z.startTimeMs);VT(Q,3,z.durationMs);VT(Q,4,z.t9);VT(Q,5,z.Rz);kS(Q,9,z.sDh,VoZ,3);kS(Q,11,z.MZe,kA,1);kS(Q,12,z.nS,kA,1)}; +mfZ=function(Q,z){wt(Q,1,z.videoId);VT(Q,2,z.lmt)}; +VoZ=function(Q,z){if(z.gy)for(var H=0;H>31));VT(Q,16,z.Dze);VT(Q,17,z.detailedNetworkType);VT(Q,18,z.kD);VT(Q,19,z.LJ);VT(Q,21,z.nVh);VT(Q,23,z.Tm);VT(Q,28,z.QZ);VT(Q,29,z.FYj);VT(Q,34,z.visibility);H=z.playbackRate;if(H!==void 0){var f=new ArrayBuffer(4);(new Float32Array(f))[0]=H;H=(new Uint32Array(f))[0];if(H!==void 0)for(K4(Q,285),Dt(Q,4),f=0;f<4;)Q.view.setUint8(Q.pos,H&255),H>>=8,Q.pos+=1,f+=1}VT(Q,36,z.Td); +kS(Q,38,z.mediaCapabilities,T4v,3);VT(Q,39,z.NPv);VT(Q,40,z.Oc);VT(Q,44,z.playerState);dt(Q,46,z.t2);VT(Q,48,z.VT);VT(Q,50,z.GX);VT(Q,51,z.Cb);VT(Q,54,z.He);dt(Q,56,z.RSj);VT(Q,57,z.Gd);dt(Q,58,z.LP);VT(Q,59,z.zw);VT(Q,60,z.Nm);dt(Q,61,z.isPrefetch);VT(Q,62,z.pk);mt(Q,63,z.sabrLicenseConstraint);VT(Q,64,z.yZ$);VT(Q,66,z.bHh);VT(Q,67,z.rv$);VT(Q,68,z.JZh);wt(Q,69,z.audioTrackId);dt(Q,71,z.jM);kS(Q,72,z.MHI,k3c,1);VT(Q,74,z.uJ);VT(Q,75,z.Ik)}; +T4v=function(Q,z){if(z.videoFormatCapabilities)for(var H=0;H>31));wt(Q,2,z.message)}; +LJp=function(Q,z){VT(Q,1,z.clientState);kS(Q,2,z.e7v,fIn,1)}; +HiA=function(Q,z){mt(Q,1,z.RYn);kS(Q,2,z.teI,biY,3);kS(Q,3,z.coldStartInfo,LJp,3)}; +zL_=function(Q,z){VT(Q,1,z.type);mt(Q,2,z.value)}; +QhA=function(Q,z){wt(Q,1,z.hl);wt(Q,12,z.deviceMake);wt(Q,13,z.deviceModel);VT(Q,16,z.clientName);wt(Q,17,z.clientVersion);wt(Q,18,z.osName);wt(Q,19,z.osVersion)}; +u5n=function(Q,z){wt(Q,1,z.name);wt(Q,2,z.value)}; +SBv=function(Q,z){wt(Q,1,z.url);if(z.yS)for(var H=0;H1&&(this.S=Q[1]==="2")}; +zQ=function(Q,z,H,f,b){this.B=Q;this.Z=z;this.L=H;this.reason=f;this.oi=b===void 0?0:b}; +g.HM=function(Q,z,H,f){return new zQ(g.ct[Q]||0,g.ct[z]||0,H,f)}; +b$=function(Q){if(fu&&Q.oi)return!1;var z=g.ct.auto;return Q.B===z&&Q.Z===z}; +u$=function(Q){return Lu[Q.Z||Q.B]||"auto"}; +dSn=function(Q,z){z=g.ct[z];return Q.B<=z&&(!Q.Z||Q.Z>=z)}; +Sl=function(Q){return"["+Q.B+"-"+Q.Z+", override: "+(Q.L+", reason: "+Q.reason+"]")}; +XC=function(Q,z,H){this.videoInfos=Q;this.Z=z;this.audioTracks=[];if(this.Z){Q=new Set;H==null||H({ainfolen:this.Z.length});z=g.n(this.Z);for(var f=z.next();!f.done;f=z.next())if(f=f.value,!f.Ii||Q.has(f.Ii.id)){var b=void 0,L=void 0,u=void 0;(u=H)==null||u({atkerr:!!f.Ii,itag:f.itag,xtag:f.Z,lang:((b=f.Ii)==null?void 0:b.name)||"",langid:((L=f.Ii)==null?void 0:L.id)||""})}else b=new g.QZ(f.id,f.Ii),Q.add(f.Ii.id),this.audioTracks.push(b);H==null||H({atklen:this.audioTracks.length})}}; +vM=function(){g.h.apply(this,arguments);this.Z=null}; +TPY=function(Q,z,H,f,b,L,u){if(Q.Z)return Q.Z;var X={},v=new Set,y={};if(yZ(f)){for(var q in f.Z)f.Z.hasOwnProperty(q)&&(Q=f.Z[q],y[Q.info.Rj]=[Q.info]);return y}q=mSk(z,f,X);L&&b({aftsrt:qB(q)});for(var M={},C=g.n(Object.keys(q)),t=C.next();!t.done;t=C.next()){t=t.value;for(var E=g.n(q[t]),G=E.next();!G.done;G=E.next()){G=G.value;var x=G.itag,J=void 0,I=t+"_"+(((J=G.video)==null?void 0:J.fps)||0);M.hasOwnProperty(I)?M[I]===!0?y[t].push(G):X[x]=M[I]:(J=MB(z,G,H,f.isLive,v),J!==!0?(u.add(t),X[x]=J, +J==="disablevp9hfr"&&(M[I]="disablevp9hfr")):(y[t]=y[t]||[],y[t].push(G),M[I]=!0))}}L&&b({bfflt:qB(y)});for(var r in y)y.hasOwnProperty(r)&&(f=r,y[f]&&y[f][0].rQ()&&(y[f]=y[f],y[f]=wDk(z,y[f],X),y[f]=k4v(y[f],X)));L&&Object.keys(X).length>0&&b({rjr:Oh(X)});z=g.n(v.values());for(f=z.next();!f.done;f=z.next())(f=H.B.get(f.value))&&--f.zg;L&&b({aftflt:qB(y)});Q.Z=g.FV(y,function(U){return!!U.length}); +return Q.Z}; +lIu=function(Q,z,H,f,b,L,u,X){X=X===void 0?!1:X;if(z.p5&&u&&u.length>1&&!(z.zw>0||z.N)){for(var v=z.B||!!b,y=v&&z.EY?L:void 0,q=mSk(z,f),M=[],C=[],t={},E=0;E0&&C&&b&&(q=[u,H],x=b.concat(C).filter(function(J){return J})); +if(x.length&&!z.LP){EY(x,q);if(v){v=[];z=g.n(x);for(f=z.next();!f.done;f=z.next())v.push(f.value.itag);L({hbdfmt:v.join(".")})}return P2(new XC(x,Q,y))}x=ShY(z);x=g.wJ(x,X);if(!x){if(M[u])return L=M[u],EY(L),P2(new XC(L,Q,y));v&&L({novideo:1});return B2()}z.ys&&(x==="1"||x==="1h")&&M[H]&&(u=pu(M[x]),q=pu(M[H]),q>u?x=H:q===u&&XtY(M[H])&&(x=H));x==="9"&&M.h&&pu(M.h)>pu(M["9"])&&(x="h");z.yE&&f.isLive&&x==="("&&M.H&&pu(M["("])<1440&&(x="H");v&&L({vfmly:nu(x)});z=M[x];if(!z.length)return v&&L({novfmly:nu(x)}), +B2();EY(z);return P2(new XC(z,Q,y))}; +Qj_=function(Q,z){var H=!(!Q.m&&!Q.M),f=!(!Q.mac3&&!Q.MAC3),b=!(!Q.meac3&&!Q.MEAC3);Q=!(!Q.i&&!Q.I);z.zx=Q;return H||f||b||Q}; +XtY=function(Q){Q=g.n(Q);for(var z=Q.next();!z.done;z=Q.next())if(z=z.value,z.itag&&vKu.has(z.itag))return!0;return!1}; +nu=function(Q){switch(Q){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return Q}}; +qB=function(Q){var z=[],H;for(H in Q)if(Q.hasOwnProperty(H)){var f=H;z.push(nu(f));f=g.n(Q[f]);for(var b=f.next();!b.done;b=f.next())z.push(b.value.itag)}return z.join(".")}; +RLn=function(Q,z,H,f,b,L){var u={},X={};g.$s(z,function(v,y){v=v.filter(function(q){var M=q.itag;if(!q.AM)return X[M]="noenc",!1;if(L.KH&&q.Rj==="(h"&&L.ZJ)return X[M]="lichdr",!1;if(!Q.L&&q.Rj==="1e")return X[M]="noav1enc",!1;if(q.Rj==="("||q.Rj==="(h"){if(Q.S&&H&&H.flavor==="widevine"){var C=q.mimeType+"; experimental=allowed";(C=!!q.AM[H.flavor]&&!!H.Z[C])||(X[M]=q.AM[H.flavor]?"unspt":"noflv");return C}if(!g8(Q,ZM.CRYPTOBLOCKFORMAT)&&!Q.f3||Q.De)return X[M]=Q.De?"disvp":"vpsub",!1}return H&&q.AM[H.flavor]&& +H.Z[q.mimeType]?!0:(X[M]=H?q.AM[H.flavor]?"unspt":"noflv":"nosys",!1)}); +v.length&&(u[y]=v)}); +f&&Object.entries(X).length&&b({rjr:Oh(X)});return u}; +k4v=function(Q,z){var H=A5(Q,function(f,b){return b.video.fps>32?Math.min(f,b.video.width):f},Infinity); +H32||f.video.widthQ.j)return"max"+Q.j;if(Q.WI&&z.Rj==="h"&&z.video&&z.video.Z>1080)return"blkhigh264";if(z.Rj==="(h"&&!H.Y)return"enchdr";if((f===void 0?0:f)&&TR(z)&&!Q.mq)return"blk51live";if((z.Rj==="MAC3"||z.Rj==="mac3")&&!Q.D)return"blkac3";if((z.Rj==="MEAC3"||z.Rj==="meac3")&&!Q.S)return"blkeac3";if(z.Rj==="M"||z.Rj==="m")return"blkaac51";if((z.Rj==="so"|| +z.Rj==="sa")&&!Q.wh)return"blkamb";if(!Q.KH&&GSA(z)&&(!H.L||z.Rj!=="1e"))return"cbc";if(!H.L&&GSA(z)&&z.Rj==="1e")return"cbcav1";if((z.Rj==="i"||z.Rj==="I")&&!Q.Xa)return"blkiamf";if(z.itag==="774"&&!Q.De)return"blkouh";var L,u;if(Q.uT&&(z.Rj==="1"||z.Rj==="1h"||H.L&&z.Rj==="1e")&&((L=z.video)==null?0:L.Z)&&((u=z.video)==null?void 0:u.Z)>Q.uT)return"av1cap";if((f=H.B.get(z.Rj))&&f.zg>0)return b.add(z.Rj),"byerr";var X;if((X=z.video)==null?0:X.fps>32){if(!H.yl&&!g8(H,ZM.FRAMERATE))return"capHfr";if(Q.C3&& +z.video.Z>=4320)return"blk8khfr";if(VQ(z)&&Q.QN&&z.AM&&z.video.Z>=1440)return"disablevp9hfr"}if(Q.oi&&z.oi>Q.oi)return"ratecap";Q=yIc(H,z);return Q!==!0?Q:!0}; +EY=function(Q,z){z=z===void 0?[]:z;g.vY(Q,function(H,f){var b=f.oi-H.oi;if(!H.rQ()||!f.rQ())return b;var L=f.video.height*f.video.width-H.video.height*H.video.width;!L&&z&&z.length>0&&(H=z.indexOf(H.Rj)+1,f=z.indexOf(f.Rj)+1,L=H===0||f===0?f||-1:H-f);L||(L=b);return L})}; +g.GQ=function(Q,z){this.B=Q;this.D=z===void 0?!1:z;this.L=this.path=this.scheme=H_[1];this.Z={};this.url=H_[1]}; +jl=function(Q){$o(Q);return Q.L}; +FC=function(Q){return Q.B?Q.B.startsWith(H_[10]):Q.scheme===H_[10]}; +qhZ=function(Q){$o(Q);return g.Or(Q.Z,function(z){return z!==null})}; +xo=function(Q){$o(Q);var z=decodeURIComponent(Q.get(H_[11])||H_[1]).split(H_[12]);return Q.path===H_[13]&&z.length>1&&!!z[1]}; +OY=function(Q,z){z=z===void 0?!1:z;$o(Q);if(Q.path!==H_[13]){var H=Q.clone();H.set(H_[14],H_[15]);return H}var f=Q.mM();H=new g.C7(f);var b=Q.get(H_[16]),L=decodeURIComponent(Q.get(H_[11])||H_[1]).split(H_[12]);if(b&&L&&L.length>1&&L[1])return f=H.Z,Q=f.replace(/^[^.]*/,H_[1]),g.Ea(H,(f.indexOf(H_[17])===0?H_[17]:H_[18])+b+H_[19]+L[1]+Q),H=new g.GQ(H.toString()),H.set(H_[20],H_[15]),H;if(z)return H=Q.clone(),H.set(H_[20],H_[15]),H;b=H.Z.match(H_[21]);H.Z.match(H_[22])?(g.Ea(H,H_[23]),f=H.toString()): +H.Z.match(H_[24])?(g.Ea(H,H_[25]),f=H.toString()):(H=yB9(f),RT(H)&&(f=H));H=new g.GQ(f);H.set(H_[26],H_[15]);b&&H.set(H_[27],H_[28]);return H}; +$o=function(Q){if(Q.B){if(!RT(Q.B)&&!Q.B.startsWith(H_[10]))throw new g.kQ(H_[29],Q.B);var z=g.jF(Q.B);Q.scheme=z.S;Q.L=z.Z+(z.L!=null?H_[30]+z.L:H_[1]);var H=z.B;if(H.startsWith(H_[13]))Q.path=H_[13],H=H.slice(14);else if(H.startsWith(H_[31]))Q.path=H_[31],H=H.slice(13);else if(H.startsWith(H_[32])){var f=H.indexOf(H_[33],12),b=H.indexOf(H_[33],f+1);f>0&&b>0?(Q.path=H.slice(0,b),H=H.slice(b+1)):(Q.path=H,H=H_[1])}else Q.path=H,H=H_[1];f=Q.Z;Q.Z=MMc(H);Object.assign(Q.Z,CaY(z.D.toString()));Object.assign(Q.Z, +f);Q.Z.file===H_[34]&&(delete Q.Z.file,Q.path+=H_[35]);Q.B=H_[1];Q.url=H_[1];Q.D&&(z=V0Y(),$o(Q),H=Q.Z[z]||null)&&(H=tMa[0](H),Q.set(z,H),Q.D||V0Y(H_[1]))}}; +EKJ=function(Q){$o(Q);var z=Q.scheme+(Q.scheme?H_[36]:H_[37])+Q.L+Q.path;if(qhZ(Q)){var H=[];g.$s(Q.Z,function(f,b){f!==null&&H.push(b+H_[38]+f)}); +z+=H_[39]+H.join(H_[40])}return z}; +MMc=function(Q){Q=Q.split(H_[33]);var z=0;Q[0]||z++;for(var H={};z0?ptv(z,f.slice(0,b),f.slice(b+1)):f&&(z[f]=H_[1])}return z}; +ptv=function(Q,z,H){if(z===H_[41]){var f;(f=H.indexOf(H_[38]))>=0?(z=H_[42]+H.slice(0,f),H=H.slice(f+1)):(f=H.indexOf(H_[43]))>=0&&(z=H_[42]+H.slice(0,f),H=H.slice(f+3))}Q[z]=H}; +or=function(Q){var z=g.K(Q,nKk)||Q.signatureCipher;Q={y$:!1,vX:H_[1],cO:H_[1],s:H_[1]};if(!z)return Q;z=L1(z);Q.y$=!0;Q.vX=z.url;Q.cO=z.sp;Q.s=z.s;return Q}; +J0=function(Q,z,H,f,b,L,u,X,v){this.Ah=Q;this.startTime=z;this.duration=H;this.ingestionTime=f;this.sourceURL=b;this.BS=v;this.endTime=z+H;this.Z=u||0;this.range=L||null;this.pending=X||!1;this.BS=v||null}; +g.NB=function(){this.segments=[];this.Z=null;this.B=!0;this.L=""}; +gKn=function(Q,z){if(z>Q.Xg())Q.segments=[];else{var H=mB(Q.segments,function(f){return f.Ah>=z},Q); +H>0&&Q.segments.splice(0,H)}}; +Ir=function(Q,z,H,f,b){b=b===void 0?!1:b;this.data=Q;this.offset=z;this.size=H;this.type=f;this.Z=(this.B=b)?0:8;this.dataOffset=this.offset+this.Z}; +A0=function(Q){var z=Q.data.getUint8(Q.offset+Q.Z);Q.Z+=1;return z}; +Yo=function(Q){var z=Q.data.getUint16(Q.offset+Q.Z);Q.Z+=2;return z}; +r8=function(Q){var z=Q.data.getInt32(Q.offset+Q.Z);Q.Z+=4;return z}; +sY=function(Q){var z=Q.data.getUint32(Q.offset+Q.Z);Q.Z+=4;return z}; +BM=function(Q){var z=Q.data;var H=Q.offset+Q.Z;z=z.getUint32(H)*4294967296+z.getUint32(H+4);Q.Z+=8;return z}; +PM=function(Q,z){z=z===void 0?NaN:z;if(isNaN(z))var H=Q.size;else for(H=Q.Z;H1?Math.ceil(b*z):Math.floor(b*z))}Q.skip(1);H=A0(Q)<<16|Yo(Q);if(H&256){f=H&1;b=H&4;var L=H&512,u=H&1024,X=H&2048;H=sY(Q);f&&Q.skip(4);b&&Q.skip(4);f=(L?4:0)+(u?4:0)+(X?4:0);for(b=0;b1?Math.ceil(u*z):Math.floor(u*z)),Q.skip(f)}}}; +VZ=function(Q){Q=new DataView(Q.buffer,Q.byteOffset,Q.byteLength);return(Q=g.DM(Q,0,1836476516))?g.Ku(Q):NaN}; +IUA=function(Q){var z=g.DM(Q,0,1937011556);if(!z)return null;z=d8(Q,z.dataOffset+8,1635148593)||d8(Q,z.dataOffset+8,1635135537);if(!z)return null;var H=d8(Q,z.dataOffset+78,1936995172),f=d8(Q,z.dataOffset+78,1937126244);if(!f)return null;z=null;if(H)switch(H.skip(4),A0(H)){default:z=0;break;case 1:z=2;break;case 2:z=1;break;case 3:z=255}var b=H=null,L=null;if(f=d8(Q,f.dataOffset,1886547818)){var u=d8(Q,f.dataOffset,1886546020),X=d8(Q,f.dataOffset,2037673328);if(!X&&(X=d8(Q,f.dataOffset,1836279920), +!X))return null;u&&(u.skip(4),H=r8(u)/65536,L=r8(u)/65536,b=r8(u)/65536);Q=ZG_(X);Q=new DataView(Q.buffer,Q.byteOffset+8,Q.byteLength-8);return new JIu(z,H,L,b,Q)}return null}; +d8=function(Q,z,H){for(;m0(Q,z);){var f=w8(Q,z);if(f.type===H)return f;z+=f.size}return null}; +g.DM=function(Q,z,H){for(;m0(Q,z);){var f=w8(Q,z);if(f.type===H)return f;z=ko(f.type)?z+8:z+f.size}return null}; +g.TQ=function(Q){if(Q.data.getUint8(Q.dataOffset)){var z=Q.data;Q=Q.dataOffset+4;z=z.getUint32(Q)*4294967296+z.getUint32(Q+4)}else z=Q.data.getUint32(Q.dataOffset+4);return z}; +w8=function(Q,z){var H=Q.getUint32(z),f=Q.getUint32(z+4);return new Ir(Q,z,H,f)}; +g.Ku=function(Q){var z=Q.data.getUint8(Q.dataOffset)?20:12;return Q.data.getUint32(Q.dataOffset+z)}; +AIp=function(Q){Q=new Ir(Q.data,Q.offset,Q.size,Q.type,Q.B);var z=A0(Q);Q.skip(7);var H=sY(Q);if(z===0){z=sY(Q);var f=sY(Q)}else z=BM(Q),f=BM(Q);Q.skip(2);for(var b=Yo(Q),L=[],u=[],X=0;X122)return!1}return!0}; +ko=function(Q){return Q===1701082227||Q===1836019558||Q===1836019574||Q===1835297121||Q===1835626086||Q===1937007212||Q===1953653094||Q===1953653099||Q===1836475768}; +Yhk=function(Q){Q.skip(4);return{IYh:PM(Q,0),value:PM(Q,0),timescale:sY(Q),G0l:sY(Q),ZZh:sY(Q),id:sY(Q),Pj:PM(Q),offset:Q.offset}}; +g.rI6=function(Q){var z=d8(Q,0,1701671783);if(!z)return null;var H=Yhk(z),f=H.IYh;H=WM(H.Pj);if(Q=d8(Q,z.offset+z.size,1701671783))if(Q=Yhk(Q),Q=WM(Q.Pj),H&&Q){z=g.n(Object.keys(Q));for(var b=z.next();!b.done;b=z.next())b=b.value,H[b]=Q[b]}return H?new i$(H,f):null}; +el=function(Q,z){for(var H=d8(Q,0,z);H;){var f=H;f.type=1936419184;f.data.setUint32(f.offset+4,1936419184);H=d8(Q,H.offset+H.size,z)}}; +g.l$=function(Q,z){for(var H=0,f=[];m0(Q,H);){var b=w8(Q,H);b.type===z&&f.push(b);H=ko(b.type)?H+8:H+b.size}return f}; +sjZ=function(Q,z){var H=g.DM(Q,0,1937011556),f=g.DM(Q,0,1953654136);if(!H||!f||Q.getUint32(H.offset+12)>=2)return null;var b=new DataView(z.buffer,z.byteOffset,z.length),L=g.DM(b,0,1937011556);if(!L)return null;z=b.getUint32(L.dataOffset+8);f=b.getUint32(L.dataOffset+12);if(f!==1701733217&&f!==1701733238)return null;f=new GRJ(Q.byteLength+z);ar(f,Q,0,H.offset+12);f.data.setInt32(f.offset,2);f.offset+=4;ar(f,Q,H.offset+16,H.size-16);ar(f,b,b.byteOffset+L.dataOffset+8,z);ar(f,Q,H.offset+H.size,Q.byteLength- +(H.offset+H.size));H=g.n([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(b=H.next();!b.done;b=H.next())b=g.DM(Q,0,b.value),f.data.setUint32(b.offset,b.size+z);Q=g.DM(f.data,0,1953654136);f.data.setUint32(Q.offset+16,2);return f.data}; +B5Z=function(Q){var z=g.DM(Q,0,1937011556);if(!z)return null;var H=Q.getUint32(z.dataOffset+12);if(H!==1701733217&&H!==1701733238)return null;z=d8(Q,z.offset+24+(H===1701733217?28:78),1936289382);if(!z)return null;H=d8(Q,z.offset+8,1935894637);if(!H||Q.getUint32(H.offset+12)!==1667392371)return null;z=d8(Q,z.offset+8,1935894633);if(!z)return null;z=d8(Q,z.offset+8,1952804451);if(!z)return null;H=new Uint8Array(16);for(var f=0;f<16;f++)H[f]=Q.getInt8(z.offset+16+f);return H}; +Rr=function(Q,z){this.Z=Q;this.pos=0;this.start=z||0}; +Qj=function(Q){return Q.pos>=Q.Z.byteLength}; +L_=function(Q,z,H){var f=new Rr(H);if(!zz(f,Q))return!1;f=H8(f);if(!f_(f,z))return!1;for(Q=0;z;)z>>>=8,Q++;z=f.start+f.pos;var b=bw(f,!0);f=Q+(f.start+f.pos-z)+b;f=f>9?PaL(f-9,8):PaL(f-2,1);Q=z-Q;H.setUint8(Q++,236);for(z=0;zH;b++)H=H*256+yj(Q),f*=128;return z?H-f:H}; +SA=function(Q){var z=bw(Q,!0);Q.pos+=z}; +cI9=function(Q){if(!f_(Q,440786851,!0))return null;var z=Q.pos;bw(Q,!1);var H=bw(Q,!0)+Q.pos-z;Q.pos=z+H;if(!f_(Q,408125543,!1))return null;bw(Q,!0);if(!f_(Q,357149030,!0))return null;var f=Q.pos;bw(Q,!1);var b=bw(Q,!0)+Q.pos-f;Q.pos=f+b;if(!f_(Q,374648427,!0))return null;var L=Q.pos;bw(Q,!1);var u=bw(Q,!0)+Q.pos-L,X=new Uint8Array(H+12+b+u),v=new DataView(X.buffer);X.set(new Uint8Array(Q.Z.buffer,Q.Z.byteOffset+z,H));v.setUint32(H,408125543);v.setUint32(H+4,33554431);v.setUint32(H+8,4294967295); +X.set(new Uint8Array(Q.Z.buffer,Q.Z.byteOffset+f,b),H+12);X.set(new Uint8Array(Q.Z.buffer,Q.Z.byteOffset+L,u),H+12+b);return X}; +qm=function(Q){var z=Q.pos;Q.pos=0;var H=1E6;zz(Q,[408125543,357149030,2807729])&&(H=uw(Q));Q.pos=z;return H}; +iG9=function(Q,z){var H=Q.pos;Q.pos=0;if(Q.Z.getUint8(Q.pos)!==160&&!Mm(Q)||!f_(Q,160))return Q.pos=H,NaN;bw(Q,!0);var f=Q.pos;if(!f_(Q,161))return Q.pos=H,NaN;bw(Q,!0);yj(Q);var b=yj(Q)<<8|yj(Q);Q.pos=f;if(!f_(Q,155))return Q.pos=H,NaN;f=uw(Q);Q.pos=H;return(b+f)*z/1E9}; +Mm=function(Q){if(!hVJ(Q)||!f_(Q,524531317))return!1;bw(Q,!0);return!0}; +hVJ=function(Q){if(Q.gZ()){if(!f_(Q,408125543))return!1;bw(Q,!0)}return!0}; +zz=function(Q,z){for(var H=0;H0){var f=CaY(z.substring(H+1));g.$s(f,function(b,L){this.set(L,b)},Q); +z=z.substring(0,H)}z=MMc(z);g.$s(z,function(b,L){this.set(L,b)},Q)}; +DCa=function(Q){var z=Q.XI.mM(),H=[];g.$s(Q.Z,function(b,L){H.push(L+"="+b)}); +if(!H.length)return z;var f=H.join("&");Q=qhZ(Q.XI)?"&":"?";return z+Q+f}; +ti=function(Q,z){var H=new g.GQ(z);(z=H.get("req_id"))&&Q.set("req_id",z);g.$s(Q.Z,function(f,b){H.set(b,null)}); +return H}; +Kqc=function(){this.D=this.L=this.Z=this.timedOut=this.started=this.S=this.B=0}; +EN=function(Q){Q.S=(0,g.IE)();Q.started=0;Q.timedOut=0;Q.Z=0}; +p_=function(Q,z){var H=Q.started+Q.Z*4;z&&(H+=Q.L);H=Math.max(0,H-3);return Math.pow(1.6,H)}; +n_=function(Q,z){Q[z]||(Q[z]=new Kqc);return Q[z]}; +gV=function(Q){this.U=this.Y=this.S=this.B=0;this.N=this.j=!1;this.Z=Q;this.L=Q.clone()}; +VML=function(Q,z,H){if(FC(Q.Z))return!1;var f=n_(H,jl(Q.Z));if(f.timedOut<1&&f.Z<1)return!1;f=f.timedOut+f.Z;Q=ZZ(Q,z);H=n_(H,jl(Q));return H.timedOut+H.Z+01?z=z.Bl:(H=n_(H,$l(Q,Q.Fp(z,H),z)),z=Math.max(Q.S,H.timedOut)+z.z6*(Q.B-Q.S)+.25*Q.Y,z=z>3?1E3*Math.pow(1.6,z-3):0);return z===0?!0:Q.U+z<(0,g.IE)()}; +dCJ=function(Q,z,H){Q.Z.set(z,H);Q.L.set(z,H);Q.D&&Q.D.set(z,H)}; +mCk=function(Q,z,H,f,b){++Q.B;z&&++Q.S;jl(H.XI).startsWith("redirector.")&&(Q.Z=Q.L.clone(),delete Q.D,f.oa&&delete b[jl(Q.Z)])}; +Fw=function(Q){return Q?(Q.itag||"")+";"+(Q.lmt||0)+";"+(Q.xtags||""):""}; +xl=function(Q,z,H,f){this.initRange=H;this.indexRange=f;this.Z=null;this.L=!1;this.j=0;this.D=this.UM=this.B=null;this.info=z;this.Mz=new gV(Q)}; +ON=function(Q,z){this.start=Q;this.end=z;this.length=z-Q+1}; +od=function(Q){Q=Q.split("-");var z=Number(Q[0]),H=Number(Q[1]);if(!isNaN(z)&&!isNaN(H)&&Q.length===2&&(Q=new ON(z,H),!isNaN(Q.start)&&!isNaN(Q.end)&&!isNaN(Q.length)&&Q.length>0))return Q}; +Ji=function(Q,z){return new ON(Q,Q+z-1)}; +wtu=function(Q){return Q.end==null?{start:String(Q.start)}:{start:String(Q.start),end:String(Q.end)}}; +Nm=function(Q){if(!Q)return new ON(0,0);var z=Number(Q.start);Q=Number(Q.end);if(!isNaN(z)&&!isNaN(Q)&&(z=new ON(z,Q),z.length>0))return z}; +Id=function(Q,z,H,f,b,L,u,X,v,y,q,M){f=f===void 0?"":f;this.type=Q;this.Z=z;this.range=H;this.source=f;this.h5=q;this.clipId=M===void 0?"":M;this.U=[];this.Y="";this.Ah=-1;this.Ze=this.wh=0;this.Y=f;this.Ah=b>=0?b:-1;this.startTime=L||0;this.duration=u||0;this.B=X||0;this.L=v>=0?v:this.range?this.range.length:NaN;this.S=this.range?this.B+this.L===this.range.length:y===void 0?!!this.L:y;this.range?(this.D=this.startTime+this.duration*this.B/this.range.length,this.N=this.duration*this.L/this.range.length, +this.j=this.D+this.N):kRZ(this)}; +kRZ=function(Q){Q.D=Q.startTime;Q.N=Q.duration;Q.j=Q.D+Q.N}; +T59=function(Q,z,H){var f=!(!z||z.Z!==Q.Z||z.type!==Q.type||z.Ah!==Q.Ah);return H?f&&!!z&&(Q.range&&z.range?z.range.end===Q.range.end:z.range===Q.range)&&z.B+z.L===Q.B+Q.L:f}; +Ai=function(Q){return Q.type===1||Q.type===2}; +Yl=function(Q){return Q.type===3||Q.type===6}; +rV=function(Q,z){return Q.Z===z.Z?Q.range&&z.range?Q.range.start+Q.B+Q.L===z.range.start+z.B:Q.Ah===z.Ah?Q.B+Q.L===z.B:Q.Ah+1===z.Ah&&z.B===0&&Q.S:!1}; +lUc=function(Q,z){return Q.Ah!==z.Ah&&z.Ah!==Q.Ah+1||Q.type!==z.type?!1:rV(Q,z)?!0:Math.abs(Q.D-z.D)<=1E-6&&Q.Ah===z.Ah?!1:eVY(Q,z)}; +eVY=function(Q,z){return rV(Q,z)||Math.abs(Q.j-z.D)<=1E-6||Q.Ah+1===z.Ah&&z.B===0&&Q.S?!0:!1}; +sN=function(Q){return Q.Ah+(Q.S?1:0)}; +RVZ=function(Q){Q.length===1||g.Is(Q,function(H){return!!H.range}); +for(var z=1;z=z.range.start+z.B&&Q.range.start+Q.B+Q.L<=z.range.start+z.B+z.L:Q.Ah===z.Ah&&Q.B>=z.B&&(Q.B+Q.L<=z.B+z.L||z.S)}; +u$c=function(Q,z){return Q.Z!==z.Z?!1:Q.type===4&&z.type===3&&Q.Z.SH()?(Q=Q.Z.ev(Q),N2(Q,function(H){return u$c(H,z)})):Q.Ah===z.Ah&&!!z.L&&z.B+z.L>Q.B&&z.B+z.L<=Q.B+Q.L}; +P8=function(Q,z){var H=z.Ah;Q.Y="updateWithSegmentInfo";Q.Ah=H;if(Q.startTime!==z.startTime||Q.duration!==z.duration)Q.startTime=z.startTime+Q.wh,Q.duration=z.duration,kRZ(Q)}; +ad=function(Q,z){var H=this;this.Tv=Q;this.D=this.Z=null;this.S=this.Ds=NaN;this.Fp=this.requestId=null;this.Po={Lre:function(){return H.range}}; +this.Mz=Q[0].Z.Mz;this.B=z||"";this.Tv[0].range&&this.Tv[0].L>0&&(Qmp(Q)?(this.range=RVZ(Q),this.L=this.range.length):(this.range=this.Tv[this.Tv.length-1].range,this.L=zqA(Q)))}; +UN=function(Q){return!Ai(Q.Tv[Q.Tv.length-1])}; +c8=function(Q){return Q.Tv[Q.Tv.length-1].type===4}; +g.iw=function(Q,z,H){H=Q.Fp===null?Q.Mz.Fp(z,H,Q.Tv[0].type):Q.Fp;if(Q.Z){z=H?OY(Q.Z,z.CP):Q.Z;var f=new C_(z);f.get("alr")||f.set("alr","yes");Q.B&&WqL(f,Q.B)}else/http[s]?:\/\//.test(Q.B)?f=new C_(new g.GQ(Q.B)):(f=Gz(Q.Mz,H,z),Q.B&&WqL(f,Q.B));(z=Q.range)?f.set("range",z.toString()):Q.Tv[0].Z.Mm()&&Q.Tv.length===1&&Q.Tv[0].B&&f.set("range",Q.Tv[0].B+"-");Q.requestId&&f.set("req_id",Q.requestId);isNaN(Q.Ds)||f.set("headm",Q.Ds.toString());isNaN(Q.S)||f.set("mffa",Q.S+"ms");Q.urlParams&&g.$s(Q.urlParams, +function(b,L){f.set(L,b)}); +return f}; +SUJ=function(Q){if(Q.range)return Q.L;Q=Q.Tv[0];return Math.round(Q.N*Q.Z.info.oi)}; +Xsk=function(Q,z){return Math.max(0,Q.Tv[0].D-z)}; +hi=function(Q,z,H,f,b,L){L=L===void 0?0:L;xl.call(this,Q,z,f,void 0);this.S=H;this.Cq=L;this.index=b||new g.NB}; +v6Z=function(Q,z,H,f,b){this.Ah=Q;this.startSecs=z;this.NB=H;this.Z=f||NaN;this.B=b||NaN}; +W8=function(Q,z,H){for(;Q;Q=Q.parentNode)if(Q.attributes&&(!H||Q.nodeName===H)){var f=Q.getAttribute(z);if(f)return f}return""}; +DZ=function(Q,z){for(;Q;Q=Q.parentNode){var H=Q.getElementsByTagName(z);if(H.length>0)return H[0]}return null}; +ya9=function(Q){if(!Q)return 0;var z=Q.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return z?(Number(z[2])|0)*3600+(Number(z[4])|0)*60+(Number(z[6])|0):Number(Q)|0}; +qUL=function(Q){return Q.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?Q+"Z":Q}; +K_=function(){this.Z=[];this.B=null;this.j=0;this.L=[];this.S=!1;this.Y="";this.D=-1}; +MPA=function(Q){var z=Q.L;Q.L=[];return z}; +CZa=function(){this.D=[];this.Z=null;this.B={};this.L={}}; +n6a=function(Q,z){var H=[];z=Array.from(z.getElementsByTagName("SegmentTimeline"));z=g.n(z);for(var f=z.next();!f.done;f=z.next()){f=f.value;var b=f.parentNode.parentNode,L=null;b.nodeName==="Period"?L=tPY(Q):b.nodeName==="AdaptationSet"?(b=b.getAttribute("id")||b.getAttribute("mimetype")||"",L=E68(Q,b)):b.nodeName==="Representation"&&(b=b.getAttribute("id")||"",L=psc(Q,b));if(L==null)return;L.update(f);g.HY(H,MPA(L))}g.HY(Q.D,H);fLp(Q.D,function(u){return u.startSecs*1E3+u.Z})}; +g6Y=function(Q){Q.Z&&(Q.Z.Z=[]);g.$s(Q.B,function(z){z.Z=[]}); +g.$s(Q.L,function(z){z.Z=[]})}; +tPY=function(Q){Q.Z||(Q.Z=new K_);return Q.Z}; +E68=function(Q,z){Q.B[z]||(Q.B[z]=new K_);return Q.B[z]}; +psc=function(Q,z){Q.L[z]||(Q.L[z]=new K_);return Q.L[z]}; +dV=function(Q){var z=Q===void 0?{}:Q;Q=z.Cq===void 0?0:z.Cq;var H=z.Kr===void 0?!1:z.Kr;var f=z.Ic===void 0?0:z.Ic;var b=z.Li===void 0?0:z.Li;var L=z.zs===void 0?Infinity:z.zs;var u=z.qJ===void 0?0:z.qJ;var X=z.l8===void 0?!1:z.l8;z=z.r_===void 0?!1:z.r_;g.NB.call(this);this.s7=this.Gp=-1;this.V9=Q;this.Ic=f;this.Kr=H;this.Li=b;this.zs=L;this.qJ=u;((this.l8=X)||isFinite(L)&&this.zs>0)&&H&&Vj&&(this.B=!1,this.L="postLive");this.r_=z}; +m$=function(Q,z){return Xk(Q.segments,function(H){return z-H.Ah})}; +wV=function(Q,z,H){H=H===void 0?{}:H;hi.call(this,Q,z,"",void 0,void 0,H.Cq||0);this.index=new dV(H)}; +kl=function(Q,z,H){xl.call(this,Q,z);this.S=H;Q=this.index=new g.NB;Q.B=!1;Q.L="d"}; +Z38=function(Q,z,H){var f=Q.index.KT(z),b=Q.index.getStartTime(z),L=Q.index.getDuration(z);H?L=H=0:H=Q.info.oi*L;return new ad([new Id(3,Q,void 0,"otfCreateRequestInfoForSegment",z,b,L,0,H)],f)}; +GsY=function(Q,z){if(!Q.index.isLoaded()){var H=[],f=z.D;z=z.S.split(",").filter(function(q){return q.length>0}); +for(var b=0,L=0,u=0,X=/^(\d+)/,v=/r=(\d+)/,y=0;y0&&(z-=Q.timestampOffset);var H=g.lw(Q)+z;jma(Q,H);Q.timestampOffset=z}; +jma=function(Q,z){g.eM(Q.info.Z.info)||Q.info.Z.info.rV();Q.L=z;if(g.eM(Q.info.Z.info)){var H=Q.Lp();Q=Q.info.Z.Z;for(var f=NaN,b=NaN,L=0;m0(H,L);){var u=w8(H,L);isNaN(f)&&(u.type===1936286840?f=u.data.getUint32(u.dataOffset+8):u.type===1836476516&&(f=g.Ku(u)));if(u.type===1952867444){!f&&Q&&(f=VZ(Q));var X=g.TQ(u);isNaN(b)&&(b=Math.round(z*f)-X);var v=u;X+=b;if(v.data.getUint8(v.dataOffset)){var y=v.data;v=v.dataOffset+4;y.setUint32(v,Math.floor(X/4294967296));y.setUint32(v+4,X&4294967295)}else v.data.setUint32(v.dataOffset+ +4,X)}L=ko(u.type)?L+8:L+u.size}return!0}H=new Rr(Q.Lp());Q=Q.S?H:new Rr(new DataView(Q.info.Z.Z.buffer));f=qm(Q);Q=H.pos;H.pos=0;if(Mm(H)&&f_(H,231))if(b=bw(H,!0),z=Math.floor(z*1E9/f),Math.ceil(Math.log(z)/Math.log(2)/8)>b)z=!1;else{for(f=b-1;f>=0;f--)H.Z.setUint8(H.pos+f,z&255),z>>>=8;H.pos=Q;z=!0}else z=!1;return z}; +QG=function(Q,z){z=z===void 0?!1:z;var H=Rd(Q);Q=z?0:Q.info.N;return H||Q}; +Rd=function(Q){g.eM(Q.info.Z.info)||Q.info.Z.info.rV();if(Q.B&&Q.info.type===6)return Q.B.Cq;if(g.eM(Q.info.Z.info)){var z=Q.Lp();var H=0;z=g.l$(z,1936286840);z=g.n(z);for(var f=z.next();!f.done;f=z.next())f=AIp(f.value),H+=f.ZD[0]/f.timescale;H=H||NaN;if(!(H>=0))a:{H=Q.Lp();z=Q.info.Z.Z;for(var b=f=0,L=0;m0(H,f);){var u=w8(H,f);if(u.type===1836476516)b=g.Ku(u);else if(u.type===1836019558){!b&&z&&(b=VZ(z));if(!b){H=NaN;break a}var X=d8(u.data,u.dataOffset,1953653094),v=X;X=b;var y=d8(v.data,v.dataOffset, +1952868452);v=d8(v.data,v.dataOffset,1953658222);var q=r8(y);r8(y);q&2&&r8(y);y=q&8?r8(y):0;var M=r8(v),C=M&1;q=M&4;var t=M&256,E=M&512,G=M&1024;M&=2048;var x=sY(v);C&&r8(v);q&&r8(v);for(var J=C=0;J2048?"":z.indexOf("https://")===0?z:""}; +uD=function(Q,z,H){z.match(PZa);return Q(z,H).then(function(f){var b=g.Bpn(f.xhr);return b?uD(Q,b,H):f.xhr})}; +yG=function(Q,z,H){Q=Q===void 0?"":Q;z=z===void 0?null:z;H=H===void 0?!1:H;g.vf.call(this);var f=this;this.sourceUrl=Q;this.isLivePlayback=H;this.uT=this.duration=0;this.isPremiere=this.l8=this.D=this.isLiveHeadPlayable=this.isLive=this.B=!1;this.zs=this.Li=0;this.isOtf=this.AZ=!1;this.En=(0,g.IE)();this.Ze=Infinity;this.Z={};this.L=new Map;this.state=this.Yu=0;this.timeline=null;this.isManifestless=!1;this.L3=[];this.j=null;this.De=0;this.S="";this.yl=NaN;this.jm=this.Wz=this.timestampOffset=this.Y= +0;this.eN=this.W0=NaN;this.ys=0;this.iT=this.U=!1;this.f3=[];this.mq={};this.wh=NaN;this.Po={nfT:function(X){Sb(f,X)}}; +var b;this.C3=(b=z)==null?void 0:b.Nc("html5_use_network_error_code_enums");aFu=!!z&&z.Nc("html5_modern_vp9_mime_type");var L;Xo=!((L=z)==null||!L.Nc("html5_enable_flush_during_seek"))&&g.mW();var u;vj=!((u=z)==null||!u.Nc("html5_enable_reset_audio_decoder"))&&g.mW()}; +U6J=function(Q){return g.Or(Q.Z,function(z){return!!z.info.video&&z.info.video.Z>=2160})}; +uIa=function(Q){return g.Or(Q.Z,function(z){return!!z.info.video&&z.info.video.isHdr()})}; +Cu=function(Q){return g.Or(Q.Z,function(z){return!!z.info.AM})}; +g.can=function(Q){return g.Or(Q.Z,function(z){return Hs(z.info.mimeType)})}; +i3_=function(Q){return g.Or(Q.Z,function(z){return z.info.video?z.info.video.projectionType==="EQUIRECTANGULAR":!1})}; +hqa=function(Q){return g.Or(Q.Z,function(z){return z.info.video?z.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; +Ww6=function(Q){return g.Or(Q.Z,function(z){return z.info.video?z.info.video.projectionType==="MESH":!1})}; +D6L=function(Q){return g.Or(Q.Z,function(z){return z.info.video?z.info.video.stereoLayout===1:!1})}; +KwA=function(Q){return W8c(Q.Z,function(z){return z.info.video?z.JA():!0})}; +yZ=function(Q){return g.Or(Q.Z,function(z){return FC(z.Mz.Z)})}; +Sb=function(Q,z){Q.Z[z.info.id]=z;Q.L.set(Fw(g.Rj(z.info,Q.AZ)),z)}; +VPY=function(Q,z){return Fw({itag:z.itag,lmt:Q.AZ?0:z.lmt||0,xtags:z.xtags})}; +Cy=function(Q,z,H){H=H===void 0?0:H;var f=Q.mimeType||"",b=Q.itag;var L=Q.xtags;b=b?b.toString():"";L&&(b+=";"+L);L=b;if(zs(f)){var u=Q.width||640;b=Q.height||360;var X=Q.fps,v=Q.qualityLabel,y=Q.colorInfo,q=Q.projectionType,M;Q.stereoLayout&&(M=d6c[Q.stereoLayout]);var C=raY(Q)||void 0;if(y==null?0:y.primaries)var t=m6A[y.primaries]||void 0;u=new ia(u,b,X,q,M,void 0,v,C,t);f=qj(f,u,DU[Q.itag||""]);Xo&&(f+="; enableflushduringseek=true");vj&&(f+="; enableresetaudiodecoder=true")}var E;if(QA(f)){var G= +Q.audioSampleRate;M=Q.audioTrack;G=new aj(G?+G:void 0,Q.audioChannels,Q.spatialAudioType,Q.isDrc,Q.loudnessDb,Q.trackAbsoluteLoudnessLkfs,Q.audioQuality||"AUDIO_QUALITY_UNKNOWN");M&&(t=M.displayName,b=M.id,M=M.audioIsDefault,t&&(E=new g.Ly(t,b||"",!!M)))}var x;Q.captionTrack&&(v=Q.captionTrack,M=v.displayName,t=v.vssId,b=v.languageCode,X=v.kind,v=v.id,M&&t&&b&&(x=new Aav(M,t,b,X,Q.xtags,v)));M=Number(Q.bitrate)/8;t=Number(Q.contentLength);b=Number(Q.lastModified);v=Q.drmFamilies;X=Q.type;H=H&&t?t/ +H:0;Q=Number(Q.approxDurationMs);if(z&&v){var J={};v=g.n(v);for(y=v.next();!y.done;y=v.next())(y=Mj[y.value])&&(J[y]=z[y])}return new KG(L,f,{audio:G,video:u,Ii:E,AM:J,oi:M,Mx:H,contentLength:t,lastModified:b,captionTrack:x,streamType:X,approxDurationMs:Q})}; +tQ=function(Q,z,H){H=H===void 0?0:H;var f=Q.type;var b=Q.itag;var L=Q.xtags;L&&(b=Q.itag+";"+L);if(zs(f)){var u=(Q.size||"640x360").split("x");u=new ia(+u[0],+u[1],+Q.fps,Q.projection_type,+Q.stereo_layout,void 0,Q.quality_label,Q.eotf,Q.primaries);f=qj(f,u,DU[Q.itag]);Xo&&(f+="; enableflushduringseek=true");vj&&(f+="; enableresetaudiodecoder=true")}var X;if(QA(f)){var v=new aj(+Q.audio_sample_rate||void 0,+Q.audio_channels||0,Q.spatial_audio_type,!!Q.drc);Q.name&&(X=new g.Ly(Q.name,Q.audio_track_id, +Q.isDefault==="1"))}var y;Q.caption_display_name&&Q.caption_vss_id&&Q.caption_language_code&&(y=new Aav(Q.caption_display_name,Q.caption_vss_id,Q.caption_language_code,Q.caption_kind,Q.xtags,Q.caption_id));L=Number(Q.bitrate)/8;var q=Number(Q.clen),M=Number(Q.lmt);H=H&&q?q/H:0;if(z&&Q.drm_families){var C={};for(var t=g.n(Q.drm_families.split(",")),E=t.next();!E.done;E=t.next())E=E.value,C[E]=z[E]}return new KG(b,f,{audio:v,video:u,Ii:X,AM:C,oi:L,Mx:H,contentLength:q,lastModified:M,captionTrack:y, +streamType:Q.stream_type,approxDurationMs:Number(Q.approx_duration_ms)})}; +ws8=function(Q){return N2(Q,function(z){return"FORMAT_STREAM_TYPE_OTF"===z.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; +ksk=function(Q){return N2(Q,function(z){return"FORMAT_STREAM_TYPE_OTF"===z.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; +Tpu=function(Q,z){return Q.timeline?fr(Q.timeline.D,z):Q.L3.length?fr(Q.L3,z):[]}; +Em=function(Q,z,H){z=z===void 0?"":z;H=H===void 0?"":H;Q=new g.GQ(Q,!0);Q.set("alr","yes");H&&(H=N4a(decodeURIComponent(H)),Q.set(z,encodeURIComponent(H)));return Q}; +Qcu=function(Q,z){var H=W8(z,"id");H=H.replace(":",";");var f=W8(z,"mimeType"),b=W8(z,"codecs");f=b?f+'; codecs="'+b+'"':f;b=Number(W8(z,"bandwidth"))/8;var L=Number(DZ(z,"BaseURL").getAttribute(Q.S+":contentLength")),u=Q.duration&&L?L/Q.duration:0;if(zs(f)){var X=Number(W8(z,"width"));var v=Number(W8(z,"height")),y=Number(W8(z,"frameRate")),q=eq6(W8(z,Q.S+":projectionType"));a:switch(W8(z,Q.S+":stereoLayout")){case "layout_left_right":var M=1;break a;case "layout_top_bottom":M=2;break a;default:M= +0}X=new ia(X,v,y,q,M)}if(QA(f)){var C=Number(W8(z,"audioSamplingRate"));var t=Number(W8(z.getElementsByTagName("AudioChannelConfiguration")[0],"value"));v=lF9(W8(z,Q.S+":spatialAudioType"));C=new aj(C,t,v);a:{t=W8(z,"lang")||"und";if(v=DZ(z,"Role"))if(q=W8(v,"value")||"",g.II(Rqv,q)){v=t+"."+Rqv[q];y=q==="main";Q=W8(z,Q.S+":langName")||t+" - "+q;t=new g.Ly(Q,v,y);break a}t=void 0}}if(z=DZ(z,"ContentProtection"))if(z.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var E={};for(z= +z.firstChild;z!=null;z=z.nextSibling)z instanceof Element&&/SystemURL/.test(z.nodeName)&&(Q=z.getAttribute("type"),v=z.textContent,Q&&v&&(E[Q]=v.trim()))}else E=void 0;return new KG(H,f,{audio:C,video:X,Ii:t,AM:E,oi:b,Mx:u,contentLength:L})}; +eq6=function(Q){switch(Q){case "equirectangular":return"EQUIRECTANGULAR";case "equirectangular_threed_top_bottom":return"EQUIRECTANGULAR_THREED_TOP_BOTTOM";case "mesh":return"MESH";case "rectangular":return"RECTANGULAR";default:return"UNKNOWN"}}; +lF9=function(Q){switch(Q){case "spatial_audio_type_ambisonics_5_1":return"SPATIAL_AUDIO_TYPE_AMBISONICS_5_1";case "spatial_audio_type_ambisonics_quad":return"SPATIAL_AUDIO_TYPE_AMBISONICS_QUAD";case "spatial_audio_type_foa_with_non_diegetic":return"SPATIAL_AUDIO_TYPE_FOA_WITH_NON_DIEGETIC";default:return"SPATIAL_AUDIO_TYPE_NONE"}}; +Hxc=function(Q,z){z=z===void 0?"":z;Q.state=1;Q.En=(0,g.IE)();return smL(z||Q.sourceUrl).then(function(H){if(!Q.Sm()){Q.Yu=H.status;H=H.responseText;var f=new DOMParser;H=TU(f,W4Y(H),"text/xml").getElementsByTagName("MPD")[0];Q.Ze=ya9(W8(H,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(H.attributes){f=g.n(H.attributes);for(var b=f.next();!b.done;b=f.next())if(b=b.value,b.value==="http://youtube.com/yt/2012/10/10"){f=b.name.split(":")[1];break b}}f=""}Q.S=f;Q.isLive=Q.Ze=Q.Ze}; +bxZ=function(Q){Q.j&&Q.j.stop()}; +z2p=function(Q){var z=Q.Ze;isFinite(z)&&(py(Q)?Q.refresh():(z=Math.max(0,Q.En+z-(0,g.IE)()),Q.j||(Q.j=new g.lp(Q.refresh,z,Q),g.W(Q,Q.j)),Q.j.start(z)))}; +Lnk=function(Q){Q=Q.Z;for(var z in Q){var H=Q[z].index;if(H.isLoaded())return H.Xg()+1}return 0}; +ny=function(Q){return Q.Wz?Q.Wz-(Q.Y||Q.timestampOffset):0}; +gS=function(Q){return Q.jm?Q.jm-(Q.Y||Q.timestampOffset):0}; +Zn=function(Q){if(!isNaN(Q.yl))return Q.yl;var z=Q.Z,H;for(H in z){var f=z[H].index;if(f.isLoaded()&&!Hs(z[H].info.mimeType)){z=0;for(H=f.ud();H<=f.Xg();H++)z+=f.getDuration(H);z/=f.LK();z=Math.round(z/.5)*.5;f.LK()>10&&(Q.yl=z);return z}if(Q.isLive&&(f=z[H],f.Cq))return f.Cq}return NaN}; +unY=function(Q,z){Q=K8A(Q.Z,function(f){return f.index.isLoaded()}); +if(!Q)return NaN;Q=Q.index;var H=Q.EX(z);return Q.getStartTime(H)===z?z:H=0&&b.segments.splice(L,1)}}}; +XRZ=function(Q){for(var z in Q.Z)Hs(Q.Z[z].info.mimeType)||gKn(Q.Z[z].index,Infinity)}; +jb=function(Q,z,H){for(var f in Q.Z){var b=Q.Z[f].index,L=z,u=H;b.Kr&&(L&&(b.Gp=Math.max(b.Gp,L)),u&&(b.s7=Math.max(b.s7||0,u)))}H&&(Q.wh=H/1E3)}; +vdu=function(Q){Q.jm=0;Q.Wz=0;Q.ys=0}; +Fo=function(Q){return Q.iT&&Q.isManifestless?Q.isLiveHeadPlayable:Q.isLive}; +qj=function(Q,z,H){xi===null&&(xi=window.MediaSource&&MediaSource.isTypeSupported&&MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.16.09.00"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.99.99.00"'));if(aFu&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return xi||H!=="9"&&H!=="("?xi||H!=="9h"&&H!=="(h"||(Q='video/webm; codecs="vp9.2"'):Q='video/webm; codecs="vp9"',Q;if(!xi&&!Om||Q!=='video/webm; codecs="vp9"'&&Q!=='video/webm; codecs="vp9.2"')return Q; +H="00";var f="08",b="01",L="01",u="01";Q==='video/webm; codecs="vp9.2"'&&(H="02",f="10",z.primaries==="bt2020"&&(u=b="09"),z.B==="smpte2084"&&(L="16"),z.B==="arib-std-b67"&&(L="18"));return'video/webm; codecs="'+["vp09",H,"51",f,"01",b,L,u,"00"].join(".")+'"'}; +JQ=function(Q,z,H){Q=""+Q+(z>49?"p60":z>32?"p48":"");z=cB()[Q];if(z!=null&&z>0)return z;z=ok.get(Q);if(z!=null&&z>0)return z;H=H==null?void 0:H.get(Q);return H!=null&&H>0?H:8192}; +yGJ=function(Q){this.aj=Q;this.gT=this.LP=this.jm=this.S=this.D=this.rT=this.iT=this.wh=!1;this.Y=this.j=0;this.WI=!1;this.L3=!0;this.C3=!1;this.zw=0;this.Nf=this.yl=!1;this.ys=!0;this.En=this.mq=!1;this.Z={};this.UY=this.disableAv1=this.ZJ=this.zx=this.gh=this.yE=this.B=this.N=!1;this.Bc=this.aj.V("html5_disable_aac_preference");this.Wz=Infinity;this.f3=0;this.EY=this.aj.vz();this.KH=this.aj.experiments.Nc("html5_enable_vp9_fairplay");this.Tx=this.aj.V("html5_force_av1_for_testing");this.uT=g.Mf(this.aj.experiments, +"html5_av1_ordinal_cap");this.QN=this.aj.V("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.p5=this.aj.V("html5_account_onesie_format_selection_during_format_filter");this.oi=g.Mf(this.aj.experiments,"html5_max_byterate");this.U=this.aj.V("html5_sunset_aac_high_codec_family");this.De=this.aj.V("html5_sunset_aac_high_codec_family");this.Xa=this.aj.V("html5_enable_iamf_audio");this.yR=this.aj.experiments.Nc("html5_allow_capability_merge");this.d4=this.aj.V("html5_prefer_h264_encrypted_appletv"); +this.Vs=this.aj.V("html5_enable_encrypted_av1")}; +ShY=function(Q){if(Q.iT)return["f"];if(Q.d4&&g.VC("appletv5"))return"9h 9 h 8 H (h ( *".split(" ");var z=["9h","9","h","8"];Q.Vs&&z.push("1e");z=z.concat(["(h","(","H","*"]);Q.yl&&(z.unshift("1"),z.unshift("1h"));Q.LP&&z.unshift("h");Q.Ze&&(z=(qH6[Q.Ze]||[Q.Ze]).concat(z));return z}; +zVk=function(Q){var z=["o","a","A"];Q.f3===1&&(Q.D&&(z=["mac3","MAC3"].concat(z)),Q.S&&(z=["meac3","MEAC3"].concat(z)),Q.Xa&&(z=["i","I"].concat(z)));Q.wh&&(z=["so","sa"].concat(z));!Q.gT||Q.jm||Q.L||Q.Bc||z.unshift("a");Q.rT&&!Q.U&&z.unshift("ah");Q.L&&(z=(qH6[Q.L]||[Q.L]).concat(z));return z}; +Nj=function(Q,z,H,f){z=z===void 0?{}:z;if(f===void 0?0:f)return z.disabled=1,0;if(g8(Q.S,ZM.AV1_CODECS)&&g8(Q.S,ZM.HEIGHT)&&g8(Q.S,ZM.BITRATE))return z.isCapabilityUsable=1,8192;try{var b=Uf_();if(b)return z.localPref=b}catch(X){}f=1080;b=navigator.hardwareConcurrency;b<=2&&(f=480);z.coreCount=b;if(b=g.Mf(Q.experiments,"html5_default_av1_threshold"))f=z["default"]=b;!Q.V("html5_disable_av1_arm_check")&&oWv()&&(z.isArm=1,f=240);if(Q=Q.S.L3)z.mcap=Q,f=Math.max(f,Q);if(H){var L,u;if(Q=(L=H.videoInfos.find(function(X){return w5(X)}))== +null?void 0:(u=L.B)==null?void 0:u.powerEfficient)f=8192,z.isEfficient=1; +H=H.videoInfos[0].video;L=Math.min(JQ("1",H.fps),JQ("1",30));z.perfCap=L;f=Math.min(f,L);H.isHdr()&&!Q&&(z.hdr=1,f*=.75)}else H=JQ("1",30),z.perfCap30=H,f=Math.min(f,H),H=JQ("1",60),z.perfCap60=H,f=Math.min(f,H);return z.av1Threshold=f}; +Ik=function(Q,z,H,f){this.flavor=Q;this.keySystem=z;this.B=H;this.experiments=f;this.Z={};this.C3=this.keySystemAccess=null;this.bu=this.pW=-1;this.Lt=null;this.L=!!f&&f.Nc("edge_nonprefixed_eme");f&&f.Nc("html5_enable_vp9_fairplay")}; +Yi=function(Q){return Q.L?!1:!Q.keySystemAccess&&!!AQ()&&Q.keySystem==="com.microsoft.playready"}; +rS=function(Q){return Q.keySystem==="com.microsoft.playready"}; +sm=function(Q){return!Q.keySystemAccess&&!!AQ()&&Q.keySystem==="com.apple.fps.1_0"}; +Bj=function(Q){return Q.keySystem==="com.youtube.fairplay"}; +Pj=function(Q){return Q.keySystem==="com.youtube.fairplay.sbdl"}; +g.ak=function(Q){return Q.flavor==="fairplay"}; +AQ=function(){var Q=window,z=Q.MSMediaKeys;Tr()&&!z&&(z=Q.WebKitMediaKeys);return z&&z.isTypeSupported?z:null}; +cj=function(Q){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.YK&&!g.mW())return JD("45");if(g.Ta||g.pZ)return Q.Nc("edge_nonprefixed_eme");if(g.Um)return JD("47");if(g.$w){if(Q.Nc("html5_enable_safari_fairplay"))return!1;if(Q=g.Mf(Q,"html5_safari_desktop_eme_min_version"))return JD(Q)}return!0}; +MmJ=function(Q,z,H,f){var b=wR(),L=(H=b||H&&Tr())?["com.youtube.fairplay"]:["com.widevine.alpha"];z&&L.unshift("com.youtube.widevine.l3");b&&f&&L.unshift("com.youtube.fairplay.sbdl");return H?L:Q?[].concat(g.F(L),g.F(iD.playready)):[].concat(g.F(iD.playready),g.F(L))}; +Wj=function(){this.B=this.S8=0;this.Z=Array.from({length:hQ.length}).fill(0)}; +CCp=function(){}; +tmp=function(){this.startTimeMs=(0,g.IE)();this.Z=!1}; +Ed8=function(){this.Z=new CCp}; +pRn=function(Q,z,H,f){f=f===void 0?1:f;H>=0&&(z in Q.Z||(Q.Z[z]=new Wj),Q.Z[z].Fc(H,f))}; +ndp=function(Q,z,H,f,b){var L=(0,g.IE)(),u=b?b(z):void 0,X;b=(X=u==null?void 0:u.S8)!=null?X:1;if(b!==0){var v;X=(v=u==null?void 0:u.profile)!=null?v:H;pRn(Q,X,L-f,b)}return z}; +Dn=function(Q,z,H,f,b){if(z&&typeof z==="object"){var L=function(u){return ndp(Q,u,H,f,b)}; +if(SJ(z))return z.then(L);if(gdn(z))return CE(z,L)}return ndp(Q,z,H,f,b)}; +Zx9=function(){}; +Ky=function(Q,z,H,f,b){f=f===void 0?!1:f;g.h.call(this);this.aj=z;this.useCobaltWidevine=f;this.On=b;this.B=[];this.L={};this.Z={};this.callback=null;this.S=!1;this.D=[];this.initialize(Q,!H)}; +$v6=function(Q,z){Q.callback=z;Q.D=[];cj(Q.aj.experiments)?VG(Q):GEv(Q)}; +VG=function(Q){if(!Q.Sm())if(Q.B.length===0)Q.callback(Q.D);else{var z=Q.B[0],H=Q.L[z],f=jc8(Q,H);if(dS&&dS.keySystem===z&&dS.vu5===JSON.stringify(f))Q.On("remksa",{re:!0}),Fn_(Q,H,dS.keySystemAccess);else{var b,L;Q.On("remksa",{re:!1,ok:(L=(b=dS)==null?void 0:b.keySystem)!=null?L:""});dS=void 0;(mf.isActive()?mf.UJ("emereq",function(){return navigator.requestMediaKeySystemAccess(z,f)}):navigator.requestMediaKeySystemAccess(z,f)).then(ZJ(function(u){Fn_(Q,H,u,f)}),ZJ(function(){Q.S=!Q.S&&Q.L[Q.B[0]].flavor=== +"widevine"; +Q.S||Q.B.shift();VG(Q)}))}}}; +Fn_=function(Q,z,H,f){if(!Q.Sm()){f&&(dS={keySystem:z.keySystem,keySystemAccess:H,vu5:JSON.stringify(f)});z.keySystemAccess=H;if(rS(z)){H=Ij();f=g.n(Object.keys(Q.Z[z.flavor]));for(var b=f.next();!b.done;b=f.next())b=b.value,z.Z[b]=!!H.canPlayType(b)}else{H=z.keySystemAccess.getConfiguration();if(H.audioCapabilities)for(f=g.n(H.audioCapabilities),b=f.next();!b.done;b=f.next())xvY(Q,z,b.value);if(H.videoCapabilities)for(H=g.n(H.videoCapabilities),f=H.next();!f.done;f=H.next())xvY(Q,z,f.value)}Q.D.push(z); +Q.useCobaltWidevine||Q.V("html5_enable_vp9_fairplay")&&Pj(z)?(Q.B.shift(),VG(Q)):Q.callback(Q.D)}}; +xvY=function(Q,z,H){Q.V("log_robustness_for_drm")?z.Z[H.contentType]=H.robustness||!0:z.Z[H.contentType]=!0}; +jc8=function(Q,z){var H={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(Q.V("html5_enable_vp9_fairplay")&&Bj(z))return H.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),H.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[H];rS(z)&&(H.initDataTypes=["keyids","cenc"]);for(var f=g.n(Object.keys(Q.Z[z.flavor])),b=f.next();!b.done;b=f.next()){b=b.value;var L=b.indexOf("audio/")===0,u=L?H.audioCapabilities:H.videoCapabilities;z.flavor!== +"widevine"||Q.S?u.push({contentType:b}):L?u.push({contentType:b,robustness:"SW_SECURE_CRYPTO"}):(g.YK&&g.VC("windows nt")&&!Q.V("html5_drm_enable_moho")||u.push({contentType:b,robustness:"HW_SECURE_ALL"}),L=b,Q.V("html5_enable_cobalt_experimental_vp9_decoder")&&b.includes("vp09")&&(L=b+"; experimental=allowed"),u.push({contentType:L,robustness:"SW_SECURE_DECODE"}),wS(Q.aj)==="MWEB"&&(Hw()||dR())&&(Q.On("swcrypto",{}),u.push({contentType:b,robustness:"SW_SECURE_CRYPTO"})))}return[H]}; +GEv=function(Q){if(AQ()&&(g.$w||lv&&Q.V("html5_drm_support_ios_mweb")))Q.D.push(new Ik("fairplay","com.apple.fps.1_0","",Q.aj.experiments));else{var z=Oxu(),H=g.wJ(Q.B,function(f){var b=Q.L[f],L=!1,u=!1,X;for(X in Q.Z[b.flavor])z(X,f)&&(b.Z[X]=!0,L=L||X.indexOf("audio/")===0,u=u||X.indexOf("video/")===0);return L&&u}); +H&&Q.D.push(Q.L[H]);Q.B=[]}Q.callback(Q.D)}; +Oxu=function(){var Q=AQ();if(Q){var z=Q.isTypeSupported;return function(f,b){return z(b,f)}}var H=Ij(); +return H&&(H.addKey||H.webkitAddKey)?function(f,b){return!!H.canPlayType(f,b)}:function(){return!1}}; +od_=function(Q){this.experiments=Q;this.Z=2048;this.D=0;this.L3=(this.Y=this.V("html5_streaming_resilience"))?.5:.25;var z=z===void 0?0:z;this.L=g.Mf(this.experiments,"html5_media_time_weight_prop")||z;this.wh=g.Mf(this.experiments,"html5_sabr_timeout_penalty_factor")||1;this.U=(this.S=this.experiments.Nc("html5_consider_end_stall"))&&ki;this.B=this.experiments.Nc("html5_measure_max_progress_handling");this.N=this.V("html5_treat_requests_pre_elbow_as_metadata");this.j=this.V("html5_media_time_weight")|| +!!this.L;this.Ze=g.Mf(this.experiments,"html5_streaming_fallback_byterate");this.V("html5_sabr_live_audio_early_return_fix")&&ki&&(this.Z=65536)}; +JGL=function(Q,z){this.Z=void 0;this.experimentIds=Q?Q.split(","):[];this.flags=f1(z||"","&");Q={};z=g.n(this.experimentIds);for(var H=z.next();!H.done;H=z.next())Q[H.value]=!0;this.experiments=Q}; +g.Mf=function(Q,z){Q=Q.flags[z];JSON.stringify(Q);return Number(Q)||0}; +Ty=function(Q,z){return(Q=Q.flags[z])?Q.toString():""}; +Nn8=function(Q){if(Q=Q.flags.html5_web_po_experiment_ids)if(Q=Q.replace(/\[ *(.*?) *\]/,"$1"))return Q.split(",").map(Number);return[]}; +I$A=function(Q){if(Q.Z)return Q.Z;if(Q.experimentIds.length<=1)return Q.Z=Q.experimentIds,Q.Z;var z=[].concat(g.F(Q.experimentIds)).map(function(f){return Number(f)}); +z.sort();for(var H=z.length-1;H>0;--H)z[H]-=z[H-1];Q.Z=z.map(function(f){return f.toString()}); +Q.Z.unshift("v1");return Q.Z}; +YHk=function(Q){return AGa.then(Q)}; +eb=function(Q,z,H){this.experiments=Q;this.yl=z;this.f3=H===void 0?!1:H;this.wh=!!g.Kn("cast.receiver.platform.canDisplayType");this.U={};this.N=!1;this.B=new Map;this.Y=!0;this.D=this.S=!1;this.Z=new Map;this.L3=0;this.De=this.experiments.Nc("html5_disable_vp9_encrypted");this.L=this.experiments.Nc("html5_enable_encrypted_av1");Q=g.Kn("cast.receiver.platform.getValue");this.j=!this.wh&&Q&&Q("max-video-resolution-vpx")||null;rGv(this)}; +yIc=function(Q,z,H){H=H===void 0?1:H;var f=z.itag;if(f==="0")return!0;var b=z.mimeType;if(z.rV()&&wR()&&Q.experiments.Nc("html5_appletv_disable_vp9"))return"dwebm";if(z.Rj==="1e"&&!Q.L)return"dav1enc";if(w5(z)&&Q.N)return"dav1";if(z.video&&(z.video.isHdr()||z.video.primaries==="bt2020")&&!(g8(Q,ZM.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high), (video-dynamic-range: high)").matches||window.screen.pixelDepth>24&&window.matchMedia("(color-gamut: p3)").matches)))return"dhdr";if(f=== +"338"&&!(g.YK?JD(53):g.Um&&JD(64)))return"dopus";var L=H;L=L===void 0?1:L;H={};z.video&&(z.video.width&&(H[ZM.WIDTH.name]=z.video.width),z.video.height&&(H[ZM.HEIGHT.name]=z.video.height),z.video.fps&&(H[ZM.FRAMERATE.name]=z.video.fps*L),z.video.B&&(H[ZM.EOTF.name]=z.video.B),z.oi&&(H[ZM.BITRATE.name]=z.oi*8*L),z.Rj==="("&&(H[ZM.CRYPTOBLOCKFORMAT.name]="subsample"),z.video.projectionType==="EQUIRECTANGULAR"||z.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||z.video.projectionType==="MESH")&& +(H[ZM.DECODETOTEXTURE.name]="true");z.audio&&z.audio.numChannels&&(H[ZM.CHANNELS.name]=z.audio.numChannels);Q.S&&VQ(z)&&(H[ZM.EXPERIMENTAL.name]="allowed");L=g.n(Object.keys(ZM));for(var u=L.next();!u.done;u=L.next()){u=ZM[u.value];var X;if(X=H[u.name])if(X=!(u===ZM.EOTF&&z.mimeType.indexOf("vp09.02")>0)){X=u;var v=z;X=!(Q.experiments.Nc("html5_ignore_h264_framerate_cap")&&X===ZM.FRAMERATE&&Zpn(v))}if(X)if(g8(Q,u))if(Q.j){if(Q.j[u.name]1080&&z.AM&&(b+="; hdcp=2.2");return f==="227"?"hqcenc":f!=="585"&&f!=="588"&&f!=="583"&&f!=="586"&&f!=="584"&&f!=="587"&&f!=="591"&&f!=="592"||Q.experiments.Nc("html5_enable_new_hvc_enc")?Q.isTypeSupported(b)?!0:"tpus":"newhvc"}; +lD=function(){var Q=dR()&&!JD(29),z=g.VC("google tv")&&g.VC("chrome")&&!JD(30);return Q||z?!1:Opk()}; +sc9=function(Q,z,H){var f=480;z=g.n(z);for(var b=z.next();!b.done;b=z.next()){b=b.value;var L=b.video.Z;L<=1080&&L>f&&yIc(Q,b,H)===!0&&(f=L)}return f}; +g.Rk=function(Q,z){z=z===void 0?!1:z;return lD()&&Q.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!z&&Q.canPlayType(Ij(),"application/x-mpegURL")?!0:!1}; +PCv=function(Q){Bnv(function(){for(var z=g.n(Object.keys(ZM)),H=z.next();!H.done;H=z.next())g8(Q,ZM[H.value])})}; +g8=function(Q,z){z.name in Q.U||(Q.U[z.name]=a$k(Q,z));return Q.U[z.name]}; +a$k=function(Q,z){if(Q.j)return!!Q.j[z.name];if(z===ZM.BITRATE&&Q.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!Q.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(z===ZM.AV1_CODECS)return Q.isTypeSupported("video/mp4; codecs="+z.valid)&&!Q.isTypeSupported("video/mp4; codecs="+z.Tj);if(z.video){var H='video/webm; codecs="vp9"';Q.isTypeSupported(H)||(H='video/mp4; codecs="avc1.4d401e"')}else H='audio/webm; codecs="opus"', +Q.isTypeSupported(H)||(H='audio/mp4; codecs="mp4a.40.2"');return Q.isTypeSupported(H+"; "+z.name+"="+z.valid)&&!Q.isTypeSupported(H+"; "+z.name+"="+z.Tj)}; +Uvv=function(Q){Q.S||(Q.S=!0,Qq(Q))}; +Qq=function(Q){Q.D=!0;Q.experiments.Nc("html5_ssap_update_capabilities_on_change")&&cGp(Q)}; +ixc=function(Q,z){var H=0;Q.B.has(z)&&(H=Q.B.get(z).Ky);Q.B.set(z,{Ky:H+1,zg:Math.pow(2,H+1)});Qq(Q)}; +t0=function(Q){for(var z=[],H=g.n(Q.Z.keys()),f=H.next();!f.done;f=H.next()){f=f.value;var b=Q.Z.get(f);z.push(f+"_"+b.maxWidth+"_"+b.maxHeight)}return z.join(".")}; +cGp=function(Q){Q.Ze=[];for(var z=g.n(Q.Z.values()),H=z.next();!H.done;H=z.next()){H=H.value;var f=H.Rj;Q.experiments.Nc("html5_ssap_force_mp4_aac")&&f!=="a"&&f!=="h"||Q.B.has(f)||Q.N&&(f==="1"||f==="1h"||Q.L&&f==="1e")||Q.Ze.push(H)}}; +HGn=function(Q,z){for(var H=new Map,f=g.n(Q.Z.keys()),b=f.next();!b.done;b=f.next()){b=b.value;var L=b.split("_")[0];z.has(L)||H.set(b,Q.Z.get(b))}Q.Z=H}; +bGJ=function(Q,z,H){var f,b=((f=H.video)==null?void 0:f.fps)||0;f=z+"_"+b;var L=!!H.audio,u={itag:H.itag,Rj:z,Wq:L};if(L)u.numChannels=H.audio.numChannels;else{var X=H.video;u.maxWidth=X==null?void 0:X.width;u.maxHeight=X==null?void 0:X.height;u.maxFramerate=b;g8(Q,ZM.BITRATE)&&(u.maxBitrateBps=H.oi*8);u.Le=X==null?void 0:X.isHdr()}X=Q.Z.get(f);X?L||(H=Math.max(X.maxWidth||0,X.maxHeight||0)>Math.max(u.maxWidth||0,u.maxHeight||0)?X:u,z={itag:H.itag,Rj:z,Wq:L,maxWidth:Math.max(X.maxWidth||0,u.maxWidth|| +0),maxHeight:Math.max(X.maxHeight||0,u.maxHeight||0),maxFramerate:b,Le:H.Le},g8(Q,ZM.BITRATE)&&(z.maxBitrateBps=H.maxBitrateBps),Q.Z.set(f,z)):Q.Z.set(f,u)}; +LqJ=function(Q,z,H){var f,b=((f=H.video)==null?void 0:f.fps)||0;f=z+"_"+b;var L=!!H.audio,u=Q.Z.get(f);a:{var X=Q.Z.get(f),v=!!H.audio;if(X){if(v){var y=!1;break a}var q;if(!v&&((y=H.video)==null?0:y.height)&&X.maxHeight&&X.maxHeight>=((q=H.video)==null?void 0:q.height)){y=!1;break a}}y=!0}y&&(y=H.itag,z=u?u:{itag:y,Rj:z,Wq:L},L?z.numChannels=H.audio.numChannels:(L=H.video,z.maxWidth=L==null?void 0:L.width,z.maxHeight=L==null?void 0:L.height,z.maxFramerate=b,g8(Q,ZM.BITRATE)&&(z.maxBitrateBps=H.oi* +8),z.Le=L==null?void 0:L.isHdr()),Q.Z.set(f,z))}; +rGv=function(Q){var z;(z=navigator.mediaCapabilities)!=null&&z.decodingInfo&&navigator.mediaCapabilities.decodingInfo({type:"media-source",video:{contentType:'video/mp4; codecs="av01.0.12M.08"',width:3840,height:2160,bitrate:32E6,framerate:60}}).then(function(H){H.smooth&&H.powerEfficient&&(Q.L3=2160)})}; +zt=function(){g.vf.call(this);this.items={}}; +H0=function(){g.j7.apply(this,arguments)}; +fo=function(){g.Fm.apply(this,arguments)}; +h2Z=function(Q,z,H){this.encryptedClientKey=z;this.S=H;this.Z=new Uint8Array(Q.buffer,0,16);this.L=new Uint8Array(Q.buffer,16)}; +WnA=function(Q){Q.B||(Q.B=new H0(Q.Z));return Q.B}; +bf=function(Q){try{return G7(Q)}catch(z){return null}}; +Dv8=function(Q,z){if(!z&&Q)try{z=JSON.parse(Q)}catch(b){}if(z){Q=z.clientKey?bf(z.clientKey):null;var H=z.encryptedClientKey?bf(z.encryptedClientKey):null,f=z.keyExpiresInSeconds?Number(z.keyExpiresInSeconds)*1E3+(0,g.IE)():null;Q&&H&&f&&(this.Z=new h2Z(Q,H,f));z.onesieUstreamerConfig&&(this.onesieUstreamerConfig=bf(z.onesieUstreamerConfig)||void 0);this.baseUrl=z.baseUrl}}; +uf=function(){this.data=new Uint8Array(2048);this.pos=0;Lo||(Lo=Ar("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}; +SN=function(Q,z){Q.add(z==null||isNaN(z)?0:z+1)}; +Xu=function(Q){this.Z=this.B=0;this.alpha=Math.exp(Math.log(.5)/Q)}; +v0=function(Q){this.B=Q===void 0?15:Q;this.values=new Float64Array(176);this.Z=new Float64Array(11);this.L=new Float64Array(16)}; +yq=function(Q,z,H,f){H=H===void 0?.5:H;f=f===void 0?0:f;this.resolution=z;this.B=0;this.L=!1;this.uF=!0;this.Z=Math.round(Q*this.resolution);this.values=Array(this.Z);for(Q=0;Q0)z=Q.byterate,this.Ze=!0;else{var f; +H=(((f=navigator.connection)==null?void 0:f.downlink)||0)*64*1024;H>0&&(z=H,this.Ze=!0)}this.L.iH(this.policy.j,z);Q.delay>0&&this.N.iH(1,Math.min(Q.delay,2));Q.stall>0&&this.Y.iH(1,Q.stall);Q.init>0&&(this.jm=Math.min(Q.init,this.jm));Q.interruptions&&(this.D=this.D.concat(Q.interruptions),this.D.length>16&&this.D.pop());this.wh=(0,g.IE)();this.policy.Y>0&&(this.mq=new g.lp(this.iT,this.policy.Y,this),g.W(this,this.mq),this.mq.start())}; +M$=function(Q,z,H,f){Q.L.iH(f===void 0?z:f,H/z);Q.j=(0,g.IE)()}; +Vmn=function(Q){Q.S||(Q.S=(0,g.IE)());Q.policy.U&&(Q.j=(0,g.IE)())}; +dvk=function(Q,z){if(Q.S){var H=z-Q.S;if(H<6E4){if(H>1E3){var f=Q.interruptions;f.push(Math.ceil(H));f.sort(function(b,L){return L-b}); +f.length>16&&f.pop()}Q.De+=H}}Q.S=z}; +Co=function(Q,z,H,f,b,L){L=L===void 0?!1:L;Q.f3.iH(z,H/z);Q.j=(0,g.IE)();b||Q.U.iH(1,z-f);L||(Q.S=0);Q.wh>-1&&(0,g.IE)()-Q.wh>3E4&&mv9(Q)}; +tE=function(Q,z,H){z=Math.max(z,Q.B.Z);Q.Y.iH(1,H/z)}; +E8=function(Q){Q=Q.N.gQ()+Q.yl.gQ()||0;Q=isNaN(Q)?.5:Q;return Q=Math.min(Q,5)}; +po=function(Q,z,H){isNaN(H)||(Q.L3+=H);isNaN(z)||(Q.En+=z)}; +no=function(Q){Q=Q.L.gQ();return Q>0?Q:1}; +gm=function(Q,z,H){z=z===void 0?!1:z;H=H===void 0?1048576:H;var f=no(Q);f=1/((Q.Y.gQ()||0)*Q.policy.Ze+1/f);var b=Q.f3.gQ();b=b>0?b:1;var L=Math.max(f,b);Q.policy.S>0&&b=4E3}; +kE8=function(Q){this.experiments=Q;this.Z=17;this.L=13E4;this.j=.5;this.B=!1;this.wh=this.V("html5_use_histogram_for_bandwidth");this.D=!1;this.S=g.Mf(this.experiments,"html5_auxiliary_estimate_weight");this.Ze=g.Mf(this.experiments,"html5_stall_factor")||1;this.Y=g.Mf(this.experiments,"html5_check_for_idle_network_interval_ms");this.N=this.experiments.Nc("html5_trigger_loader_when_idle_network");this.U=this.experiments.Nc("html5_sabr_fetch_on_idle_network_preloaded_players")}; +e2L=function(Q,z){Q=Q===void 0?{}:Q;z=z===void 0?{}:z;g.h.call(this);var H=this;this.values=Q;this.ol=z;this.B={};this.L=this.Z=0;this.D=new g.lp(function(){Tnk(H)},1E4); +g.W(this,this.D)}; +Gt=function(Q,z){l$Y(Q,z);return Q.values[z]&&Q.ol[z]?Q.values[z]/Math.pow(2,Q.Z/Q.ol[z]):0}; +l$Y=function(Q,z){Q.values[z]||(z=sTu(),Q.values=z.values||{},Q.ol=z.halfLives||{},Q.B=z.values?Object.assign({},z.values):{})}; +Tnk=function(Q){var z=sTu();if(z.values){z=z.values;for(var H={},f=g.n(Object.keys(Q.values)),b=f.next();!b.done;b=f.next())b=b.value,z[b]&&Q.B[b]&&(Q.values[b]+=z[b]-Q.B[b]),H[b]=Gt(Q,b);Q.B=H}z=Q.ol;H={};H.values=Q.B;H.halfLives=z;g.Pw("yt-player-memory",H,2592E3)}; +hE=function(Q,z,H,f,b){g.h.call(this);this.webPlayerContextConfig=z;this.eN=f;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.j2=this.Xa=this.uT=this.r7=this.userDisplayName=this.userDisplayImage=this.uL="";this.Z={};this.Wz={};this.controlsType="0";this.yR=NaN;this.gh=!1;this.YJ=(0,g.IE)();this.EY=0;this.Pl=this.X2=!1;this.B5=!0;this.preferGapless=this.rz=this.cq=this.L=this.ox=this.m4=!1;this.kX=[];this.sj=!1;Q=Q?g.P3(Q):{};z&&z.csiPageType&&(this.csiPageType=z.csiPageType);z&&z.csiServiceName&& +(this.csiServiceName=z.csiServiceName);z&&z.preferGapless&&(this.preferGapless=z.preferGapless);this.experiments=new JGL(z?z.serializedExperimentIds:Q.fexp,z?z.serializedExperimentFlags:Q.fflags);this.forcedExperiments=z?z.serializedForcedExperimentIds:XX("",Q.forced_experiments)||void 0;this.cspNonce=(z==null?0:z.cspNonce)?z.cspNonce:XX("",Q.csp_nonce);this.V("web_player_deprecated_uvr_killswitch");try{var L=document.location.toString()}catch(k){L=""}this.Tx=L;this.ancestorOrigins=(f=window.location.ancestorOrigins)? +Array.from(f):[];this.D=LF(!1,z?z.isEmbed:Q.is_embed);if(z&&z.device){if(f=z.device,f.androidOsExperience&&(this.Z.caoe=""+f.androidOsExperience),f.androidPlayServicesVersion&&(this.Z.capsv=""+f.androidPlayServicesVersion),f.brand&&(this.Z.cbrand=f.brand),f.browser&&(this.Z.cbr=f.browser),f.browserVersion&&(this.Z.cbrver=f.browserVersion),f.cobaltReleaseVehicle&&(this.Z.ccrv=""+f.cobaltReleaseVehicle),this.Z.c=f.interfaceName||"WEB",this.Z.cver=f.interfaceVersion||"html5",f.interfaceTheme&&(this.Z.ctheme= +f.interfaceTheme),this.Z.cplayer=f.interfacePlayerType||"UNIPLAYER",f.model&&(this.Z.cmodel=f.model),f.network&&(this.Z.cnetwork=f.network),f.os&&(this.Z.cos=f.os),f.osVersion&&(this.Z.cosver=f.osVersion),f.platform&&(this.Z.cplatform=f.platform),L=Ty(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),L==="all"||L==="once")f.chipset&&(this.Wz.cchip=f.chipset),f.cobaltAppVersion&&(this.Wz.ccappver=f.cobaltAppVersion),f.firmwareVersion&&(this.Wz.cfrmver=f.firmwareVersion),f.deviceYear&&(this.Wz.crqyear= +f.deviceYear)}else this.Z.c=Q.c||"web",this.Z.cver=Q.cver||"html5",this.Z.cplayer="UNIPLAYER";this.loaderUrl=z?this.D||R2A(this)&&z.loaderUrl?z.loaderUrl||"":this.Tx:this.D||R2A(this)&&Q.loaderUrl?XX("",Q.loaderUrl):this.Tx;this.D&&g.D6("yt.embedded_player.embed_url",this.loaderUrl);this.Y=eo(this.loaderUrl,Q9u);f=this.loaderUrl;var u=u===void 0?!1:u;this.W0=T3(eo(f,zcp),f,u,"Trusted Ad Domain URL");this.ys=LF(!1,Q.privembed);this.protocol=this.Tx.indexOf("http:")===0?"http":"https";this.qP=lY((z? +z.customBaseYoutubeUrl:Q.BASE_YT_URL)||"")||lY(this.Tx)||this.protocol+"://www.youtube.com/";u=z?z.eventLabel:Q.el;f="detailpage";u==="adunit"?f=this.D?"embedded":"detailpage":u==="embedded"||this.Y?f=uh(f,u,H6n):u&&(f="embedded");this.yl=f;aKY();u=null;f=z?z.playerStyle:Q.ps;L=g.TY(fiL,f);!f||L&&!this.Y||(u=f);this.playerStyle=u;this.j=g.TY(fiL,this.playerStyle);this.houseBrandUserStatus=z==null?void 0:z.houseBrandUserStatus;this.wh=this.j&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard"; +this.ID=!this.wh;this.jm=LF(!1,Q.disableplaybackui);this.disablePaidContentOverlay=LF(!1,z==null?void 0:z.disablePaidContentOverlay);this.disableSeek=LF(!1,z==null?void 0:z.disableSeek);this.enableSpeedOptions=(z==null?void 0:z.enableSpeedOptions)||(Ij().defaultPlaybackRate?$h||g.zd||jN?g.Um&&JD("20")||g.YK&&JD("4")||g.Fu&&JD("11")||eT():!(g.Fu&&!g.VC("chrome")||$h||g.VC("android")||g.VC("silk")):!1);this.h_=LF(!1,Q.enable_faster_speeds);var X;this.supportsVarispeedExtendedFeatures=(X=z==null?void 0: +z.supportsVarispeedExtendedFeatures)!=null?X:!1;this.B=LF(this.playerStyle==="blazer",Q.is_html5_mobile_device||z&&z.isMobileDevice);this.En=Qh()||Hw();this.v0=this.V("mweb_allow_background_playback")?!1:this.B&&!this.j;this.mq=Bt();this.YX=g.xh;var v;this.xr=!!(z==null?0:(v=z.embedsHostFlags)==null?0:v.optOutApiDeprecation);var y;this.rq=!!(z==null?0:(y=z.embedsHostFlags)==null?0:y.allowPfpImaIntegration);this.mZ=this.V("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var q;z?z.hideInfo!== +void 0&&(q=!z.hideInfo):q=Q.showinfo;this.P5=g.O8(this)&&!this.xr||LF(!ol(this)&&!JE(this)&&!this.j,q);this.Lt=z?!!z.mobileIphoneSupportsInlinePlayback:LF(!1,Q.playsinline);X=this.B&&N$&&Il!=null&&Il>0&&Il<=2.3;v=z?z.useNativeControls:Q.use_native_controls;this.N=g.O8(this)&&this.B;y=this.B&&!this.N;v=g.AE(this)||!X&&LF(y,v)?"3":"1";this.disableOrganicUi=!(z==null||!z.disableOrganicUi);y=z?z.controlsType:Q.controls;this.controlsType=this.disableOrganicUi?"0":y!=="0"&&y!==0?v:"0";this.ov=this.B;this.color= +uh("red",z?z.progressBarColor:Q.color,b6_);this.jl=this.controlsType==="3";this.gT=!this.D;this.zj=(v=!this.gT&&!JE(this)&&!this.wh&&!this.j&&!ol(this))&&!this.jl&&this.controlsType==="1";this.d4=g.Yh(this)&&v&&this.controlsType==="0"&&!this.zj&&!(z==null?0:z.embedsEnableEmc3ds);this.Ev=this.Ve=X;this.Vs=(this.controlsType==="3"||this.B||LF(!1,Q.use_media_volume))&&!this.N;this.q0=lv&&!g.nr(601)?!1:!0;this.nV=this.D||!1;this.C3=JE(this)?"":(this.loaderUrl||Q.post_message_origin||"").substring(0,128); +this.widgetReferrer=XX("",z?z.widgetReferrer:Q.widget_referrer);var M;z?z.disableCastApi&&(M=!1):M=Q.enablecastapi;M=!this.Y||LF(!0,M);X=!0;z&&z.disableMdxCast&&(X=!1);this.J5=this.V("enable_cast_for_web_unplugged")&&g.rm(this)&&X||g.c6(this)&&X||M&&X&&this.controlsType==="1"&&!this.B&&(JE(this)||g.Yh(this)||g.s8(this));this.J_=!!window.document.pictureInPictureEnabled||sh();M=z?!!z.supportsAutoplayOverride:LF(!1,Q.autoplayoverride);this.C2=!(this.B&&!g.O8(this))&&!g.VC("nintendo wiiu")||M;this.dQ= +(z?!!z.enableMutedAutoplay:LF(!1,Q.mutedautoplay))&&!1;M=(JE(this)||ol(this))&&this.playerStyle==="blazer";this.Ef=z?!!z.disableFullscreen:!LF(!0,Q.fs);X=g.M0(g.B0(this))&&g.O8(this);this.KH=!this.Ef&&(M||g.ZQ())&&!X;this.AK=this.V("html5_picture_in_picture_logging_onresize");this.zO=this.V("html5_picture_in_picture_blocking_onresize");this.Bl=this.V("html5_picture_in_picture_blocking_ontimeupdate");this.Sl=this.V("html5_picture_in_picture_blocking_document_fullscreen");this.qD=this.V("html5_picture_in_picture_blocking_standard_api"); +M=dR()&&JD(58)&&!Hw();X=kw||typeof MediaSource==="undefined";this.Tl=this.V("uniplayer_block_pip")&&(M||X)||this.zO||this.Bl||this.qD;M=g.O8(this)&&!this.xr;var C;z?z.disableRelatedVideos!==void 0&&(C=!z.disableRelatedVideos):C=Q.rel;this.p5=M||LF(!this.j,C);this.MD=LF(!1,z?z.enableContentOwnerRelatedVideos:Q.co_rel);this.U=Hw()&&Il>0&&Il<=4.4?"_top":"_blank";this.Ci=g.s8(this);this.gS=LF(this.playerStyle==="blazer",z?z.enableCsiLogging:Q.enablecsi);switch(this.playerStyle){case "blogger":C="bl"; +break;case "gmail":C="gm";break;case "gac":C="ga";break;case "ads-preview":C="ap";break;case "books":C="gb";break;case "docs":case "flix":C="gd";break;case "duo":C="gu";break;case "google-live":C="gl";break;case "google-one":C="go";break;case "play":C="gp";break;case "chat":C="hc";break;case "hangouts-meet":C="hm";break;case "photos-edu":case "picasaweb":C="pw";break;default:C="yt"}this.Ze=C;this.L3=XX("",z?z.authorizedUserIndex:Q.authuser);this.UY=g.O8(this)&&(this.ys||!xNn()||this.En);var t;z?z.disableWatchLater!== +void 0&&(t=!z.disableWatchLater):t=Q.showwatchlater;this.QN=((C=!this.UY)||!!this.L3&&C)&&LF(!this.wh,this.Y?t:void 0);this.Bc=z?z.isMobileDevice||!!z.disableKeyboardControls:LF(!1,Q.disablekb);this.loop=LF(!1,Q.loop);this.pageId=XX("",z?z.initialDelegatedSessionId:Q.pageid);this.vN=LF(!0,Q.canplaylive);this.WI=LF(!1,Q.livemonitor);this.disableSharing=LF(this.j,z?z.disableSharing:Q.ss);(t=z&&this.V("fill_video_container_size_override_from_wpcc")?z.videoContainerOverride:Q.video_container_override)? +(C=t.split("x"),C.length!==2?t=null:(t=Number(C[0]),C=Number(C[1]),t=isNaN(t)||isNaN(C)||t*C<=0?null:new g.nC(t,C))):t=null;this.Lr=t;this.mute=z?!!z.startMuted:LF(!1,Q.mute);this.storeUserVolume=!this.mute&&LF(this.controlsType!=="0",z?z.storeUserVolume:Q.store_user_volume);t=z?z.annotationsLoadPolicy:Q.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:uh(void 0,t,P0);this.captionsLanguagePreference=z?z.captionsLanguagePreference||"":XX("",Q.cc_lang_pref);t=uh(2,z?z.captionsLanguageLoadPolicy: +Q.cc_load_policy,P0);this.controlsType==="3"&&t===2&&(t=3);this.ZJ=t;this.yE=z?z.hl||"en_US":XX("en_US",Q.hl);this.region=z?z.contentRegion||"US":XX("US",Q.cr);this.hostLanguage=z?z.hostLanguage||"en":XX("en",Q.host_language);this.QO=!this.ys&&Math.random()=480;this.schedule=new q$(X,new od_(this.experiments),b);g.W(this,this.schedule);var E;this.enableSafetyMode=(E=z==null?void 0:z.initialEnableSafetyMode)!=null?E:LF(!1,Q.enable_safety_mode);b=this.jm?!1:JE(this)&&this.playerStyle!=="blazer";var G;z?z.disableAutonav!=null&&(G=!z.disableAutonav): +G=Q.allow_autonav;this.zx=LF(b,!this.wh&&G);this.sendVisitorIdHeader=z?!!z.sendVisitorIdHeader:LF(!1,Q.send_visitor_id_header);var x;this.playerStyle==="docs"&&(z?x=z.disableNativeContextMenu:x=Q.disable_native_context_menu);this.disableNativeContextMenu=LF(!1,x);this.yd=OV(this)&&this.V("enable_skip_intro_button");this.embedConfig=XX("",z?z.serializedEmbedConfig:Q.embed_config);this.De=q0(Q,g.O8(this));this.L=this.De==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!(z==null||!z.embedsErrorLinks); +this.dS=LF(!1,Q.full_window);var J;this.rT=!((J=this.webPlayerContextConfig)==null?0:J.chromeless);var I;this.livingRoomAppMode=uh("LIVING_ROOM_APP_MODE_UNSPECIFIED",Q.living_room_app_mode||(z==null?void 0:(I=z.device)==null?void 0:I.livingRoomAppMode),Sv_);var r;G=Ss(NaN,z==null?void 0:(r=z.device)==null?void 0:r.deviceYear);isNaN(G)||(this.deviceYear=G);this.transparentBackground=z?!!z.transparentBackground:LF(!1,Q.transparent_background);this.showMiniplayerButton=z?!!z.showMiniplayerButton:LF(!1, +Q.show_miniplayer_button);var U;g.O8(this)&&!(z==null?0:(U=z.embedsHostFlags)==null?0:U.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=z?!!z.externalFullscreen:LF(!1,Q.external_fullscreen);this.showMiniplayerUiWhenMinimized=z?!!z.showMiniplayerUiWhenMinimized:LF(!1,Q.use_miniplayer_ui);var D;this.B5=(D=Q.show_loop_video_toggle)!=null?D:!0;this.Da=Math.random()<1E-4;this.Tw=Q.onesie_hot_config||(z==null?0:z.onesieHotConfig)?new Dv8(Q.onesie_hot_config,z==null?void 0:z.onesieHotConfig): +void 0;this.isTectonic=z?!!z.isTectonic:!!Q.isTectonic;this.playerCanaryState=H;this.playerCanaryStage=z==null?void 0:z.canaryStage;this.D6=new e2L;g.W(this,this.D6);this.ox=LF(!1,Q.force_gvi);this.datasyncId=(z==null?void 0:z.datasyncId)||g.ey("DATASYNC_ID");this.WY=g.ey("LOGGED_IN",!1);this.yw=(z==null?void 0:z.allowWoffleManagement)||!1;this.W7=Infinity;this.Uf=NaN;this.livingRoomPoTokenId=z==null?void 0:z.livingRoomPoTokenId;this.V("html5_high_res_logging_always")?this.cq=!0:this.cq=Math.random()* +100=0&&Q0&&Q.Da&&(f.sort(),g.ax(new g.kQ("Player client parameters changed after startup",f)));Q.userAge=Ss(Q.userAge,z.user_age);Q.uL=XX(Q.uL,z.user_display_email);Q.userDisplayImage=XX(Q.userDisplayImage,z.user_display_image);g.Qx(Q.userDisplayImage)||(Q.userDisplayImage= +"");Q.userDisplayName=XX(Q.userDisplayName,z.user_display_name);Q.r7=XX(Q.r7,z.user_gender);Q.csiPageType=XX(Q.csiPageType,z.csi_page_type);Q.csiServiceName=XX(Q.csiServiceName,z.csi_service_name);Q.gS=LF(Q.gS,z.enablecsi);Q.pageId=XX(Q.pageId,z.pageid);if(H=z.enabled_engage_types)Q.enabledEngageTypes=new Set(H.split(","));z.living_room_session_po_token&&(Q.h$=z.living_room_session_po_token.toString())}; +W0=function(Q,z){return!Q.j&&dR()&&JD(55)&&Q.controlsType==="3"&&!z}; +g.Dd=function(Q){Q=al(Q.qP);return Q==="www.youtube-nocookie.com"?"www.youtube.com":Q}; +Ko=function(Q,z,H){return Q.protocol+"://i1.ytimg.com/vi/"+z+"/"+(H||"hqdefault.jpg")}; +Vq=function(Q){return JE(Q)&&!g.rm(Q)}; +g.AE=function(Q){return Q.V("html5_local_playsinline")?lv&&!g.nr(602)&&!("playsInline"in Ij()):lv&&!Q.Lt||g.VC("nintendo wiiu")?!0:!1}; +wS=function(Q){return Q.Z.c}; +g.oT=function(Q){return/^TVHTML5/.test(wS(Q))}; +g.dm=function(Q){return wS(Q)==="TVHTML5"}; +R2A=function(Q){return wS(Q)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; +uOv=function(Q){return Q.Z.cmodel==="CHROMECAST ULTRA/STEAK"||Q.Z.cmodel==="CHROMECAST/STEAK"}; +g.mD=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; +OV=function(Q){return/web/i.test(wS(Q))}; +g.wm=function(Q){return wS(Q).toUpperCase()==="WEB"}; +c0=function(Q){return wS(Q)==="WEB_KIDS"}; +g.rm=function(Q){return wS(Q)==="WEB_UNPLUGGED"}; +kh=function(Q){return wS(Q)==="TVHTML5_UNPLUGGED"}; +g.xJ=function(Q){return g.rm(Q)||wS(Q)==="TV_UNPLUGGED_CAST"||kh(Q)}; +g.c6=function(Q){return wS(Q)==="WEB_REMIX"}; +g.Tt=function(Q){return wS(Q)==="WEB_EMBEDDED_PLAYER"}; +g.lf=function(Q){return(Q.deviceIsAudioOnly||!g.YK||kw||Q.controlsType==="3"?!1:g.zd?Q.D&&g.nr(51):!0)||(Q.deviceIsAudioOnly||!g.Um||kw||Q.controlsType==="3"?!1:g.zd?Q.D&&g.nr(48):g.nr(38))||(Q.deviceIsAudioOnly||!g.Fu||kw||Q.controlsType==="3"?!1:g.zd?Q.D&&g.nr(37):g.nr(27))||!Q.deviceIsAudioOnly&&g.eN&&!IR6()&&g.nr(11)||!Q.deviceIsAudioOnly&&g.$w&&g.nr("604.4")}; +y2u=function(Q){if(g.Yh(Q)&&N$)return!1;if(g.Um){if(!g.nr(47)||!g.nr(52)&&g.nr(51))return!1}else if(g.$w)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; +MpJ=function(Q,z){return Q.enabledEngageTypes.has(z.toString())||qvJ.includes(z)}; +JE=function(Q){return Q.yl==="detailpage"}; +g.Yh=function(Q){return Q.yl==="embedded"}; +Rl=function(Q){return Q.yl==="leanback"}; +ol=function(Q){return Q.yl==="adunit"||Q.playerStyle==="gvn"}; +g.s8=function(Q){return Q.yl==="profilepage"}; +g.O8=function(Q){return Q.D&&g.Yh(Q)&&!ol(Q)&&!Q.j}; +Qc=function(Q){if(!Q.userDisplayImage)return"";var z=Q.userDisplayImage.split("/");if(z.length===5)return Q=z[z.length-1].split("="),Q[1]="s20-c",z[z.length-1]=Q.join("="),z.join("/");if(z.length===8)return z.splice(7,0,"s20-c"),z.join("/");if(z.length===9)return z[7]+="-s20-c",z.join("/");g.ax(new g.kQ("Profile image not a FIFE URL.",Q.userDisplayImage));return Q.userDisplayImage}; +g.zZ=function(Q){var z=g.Dd(Q);CBZ.includes(z)&&(z="www.youtube.com");return Q.protocol+"://"+z}; +g.HV=function(Q,z){z=z===void 0?"":z;if(Q.eN){var H=new Ts,f,b=Q.eN();b.signedOut?f="":b.token?f=b.token:b.pendingResult.then(function(L){b.signedOut?H.resolve(""):H.resolve(L.token)},function(L){g.ax(new g.kQ("b189348328_oauth_callback_failed",{error:L})); +H.resolve(z)}); +return f!==void 0?P2(f):new sM(H)}return P2(z)}; +fv=function(Q,z){z=z===void 0?"":z;return Q.WY?X_(!0):tK(CE(X_(g.HV(Q,z)),function(H){return X_(!!H)}),function(){return X_(!1)})}; +al=function(Q){var z=g.id(Q);return(Q=Number(g.c4(4,Q))||null)?z+":"+Q:z}; +bF=function(Q,z){z=z===void 0?!1:z;var H=DU[Q],f=tpu[H],b=EE_[Q];if(!b||!f)return null;z=new ia(z?b.height:b.width,z?b.width:b.height,b.fps);f=qj(f,z,H);return new KG(Q,f,{video:z,oi:b.bitrate/8})}; +nEA=function(Q){var z=tpu[DU[Q]],H=pZA[Q];return H&&z?new KG(Q,z,{audio:new aj(H.audioSampleRate,H.numChannels)}):null}; +Lv=function(Q){this.Z=Q}; +uF=function(Q,z,H,f){if(H)return B2();H={};var b=Ij();z=g.n(z);for(var L=z.next();!L.done;L=z.next())if(L=L.value,Q.canPlayType(b,L.getInfo().mimeType)||f){var u=L.Z.video.quality;if(!H[u]||H[u].getInfo().rV())H[u]=L}Q=[];H.auto&&Q.push(H.auto);f=g.n(hI);for(b=f.next();!b.done;b=f.next())(b=H[b.value])&&Q.push(b);return Q.length?P2(Q):B2()}; +gEA=function(Q){this.itag=Q.itag;this.url=Q.url;this.codecs=Q.codecs;this.width=Q.width;this.height=Q.height;this.fps=Q.fps;this.bitrate=Q.bitrate;var z;this.B=((z=Q.audioItag)==null?void 0:z.split(","))||[];this.g$=Q.g$;this.AM=Q.AM||"";this.Ii=Q.Ii;this.audioChannels=Q.audioChannels;this.Z=""}; +Z69=function(Q,z,H,f){z=z===void 0?!1:z;H=H===void 0?!0:H;f=f===void 0?{}:f;var b={};Q=g.n(Q);for(var L=Q.next();!L.done;L=Q.next()){L=L.value;if(z&&MediaSource&&MediaSource.isTypeSupported){var u=L.type;L.audio_channels&&(u=u+"; channels="+L.audio_channels);if(!MediaSource.isTypeSupported(u)){f[L.itag]="tpus";continue}}if(H||!L.drm_families||L.eotf!=="smpte2084"&&L.eotf!=="arib-std-b67"){u=void 0;var X={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},v=L.type.match(/codecs="([^"]*)"/); +v=v?v[1]:"";L.audio_track_id&&(u=new g.Ly(L.name,L.audio_track_id,!!L.is_default));var y=L.eotf;L=new gEA({itag:L.itag,url:L.url,codecs:v,width:Number(L.width),height:Number(L.height),fps:Number(L.fps),bitrate:Number(L.bitrate),audioItag:L.audio_itag,g$:y?X[y]:void 0,AM:L.drm_families,Ii:u,audioChannels:Number(L.audio_channels)});b[L.itag]=b[L.itag]||[];b[L.itag].push(L)}else f[L.itag]="enchdr"}return b}; +GTZ=function(Q,z,H,f,b){this.L=Q;this.B=z;this.S=H;this.cpn=f;this.j=b;this.D=0;this.Z=""}; +$Mu=function(Q,z){Q.L.some(function(H){var f;return((f=H.Ii)==null?void 0:f.getId())===z}); +Q.Z=z}; +Sw=function(Q,z,H){Q.cpn&&(z=g.de(z,{cpn:Q.cpn}));H&&(z=g.de(z,{paired:H}));return z}; +j9J=function(Q,z){Q=Q.itag.toString();z!==null&&(Q+=z.itag.toString());return Q}; +F9Y=function(Q){for(var z=[],H=[],f=g.n(Q.B),b=f.next();!b.done;b=f.next())b=b.value,b.bitrate<=Q.D?z.push(b):H.push(b);z.sort(function(L,u){return u.bitrate-L.bitrate}); +H.sort(function(L,u){return L.bitrate-u.bitrate}); +Q.B=z.concat(H)}; +vV=function(Q,z,H){this.Z=Q;this.B=z;this.expiration=H;this.Mz=null}; +xMY=function(Q,z){if(!(kw||Tr()||wR()))return null;Q=Z69(z,Q.V("html5_filter_fmp4_in_hls"));if(!Q)return null;z=[];for(var H={},f=g.n(Object.keys(Q)),b=f.next();!b.done;b=f.next()){b=g.n(Q[b.value]);for(var L=b.next();!L.done;L=b.next()){var u=L.value;u.Ii&&(L=u.Ii.getId(),H[L]||(u=new g.QZ(L,u.Ii),H[L]=u,z.push(u)))}}return z.length>0?z:null}; +Iiu=function(Q,z,H,f,b,L,u){if(!(kw||Tr()||wR()))return B2();var X={},v=O6L(H),y=Z69(H,Q.V("html5_filter_fmp4_in_hls"),Q.S.Y,X);if(!y)return u({noplst:1}),B2();oE8(y);H={};var q=(H.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",H),M;H=[];var C=[],t=[],E=null,G="";f=f&&f.match(/hls_timedtext_playlist/)?new gEA({itag:"0",url:f,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,Ii:new g.Ly("English","en",!1)}):null;for(var x=g.n(Object.keys(y)),J=x.next();!J.done;J=x.next())if(J=J.value,!Q.V("html5_disable_drm_hfr_1080")|| +J!=="383"&&J!=="373"){J=g.n(y[J]);for(var I=J.next();!I.done;I=J.next())if(I=I.value,I.width){for(var r=g.n(I.B),U=r.next();!U.done;U=r.next())if(U=U.value,y[U]){I.Z=U;break}I.Z||(I.Z=J2A(y,I));if(r=y[I.Z])if(H.push(I),I.AM==="fairplay"&&(M=q),U="",I.g$==="PQ"?U="smpte2084":I.g$==="HLG"&&(U="arib-std-b67"),U&&(G=U),t.push(N0Z(r,[I],f,L,I.itag,I.width,I.height,I.fps,v,void 0,void 0,M,U)),!E||I.width*I.height*I.fps>E.width*E.height*E.fps)E=I}else C.push(I)}else X[J]="disdrmhfr";t.reduce(function(D, +T){return T.getInfo().isEncrypted()&&D},!0)&&(M=q); +b=Math.max(b,0);q=E||{};y=q.fps===void 0?0:q.fps;E=q.width===void 0?0:q.width;q=q.height===void 0?0:q.height;x=Q.V("html5_native_audio_track_switching");t.push(N0Z(C,H,f,L,"93",E,q,y,v,"auto",b,M,G,x));Object.entries(X).length&&u(X);return uF(Q.S,t,W0(Q,z),!1)}; +N0Z=function(Q,z,H,f,b,L,u,X,v,y,q,M,C,t){for(var E=0,G="",x=g.n(Q),J=x.next();!J.done;J=x.next())J=J.value,G||(G=J.itag),J.audioChannels&&J.audioChannels>E&&(E=J.audioChannels,G=J.itag);b=new KG(b,"application/x-mpegURL",{audio:new aj(0,E),video:new ia(L,u,X,null,void 0,y,void 0,C),AM:M,Q7:G});Q=new GTZ(Q,z,H?[H]:[],f,!!t);Q.D=q?q:1369843;return new vV(b,Q,v)}; +O6L=function(Q){Q=g.n(Q);for(var z=Q.next();!z.done;z=Q.next())if(z=z.value,z.url&&(z=z.url.split("expire/"),!(z.length<=1)))return+z[1].split("/")[0];return NaN}; +J2A=function(Q,z){for(var H=g.n(Object.keys(Q)),f=H.next();!f.done;f=H.next()){f=f.value;var b=Q[f][0];if(!b.width&&b.AM===z.AM&&!b.audioChannels)return f}return""}; +oE8=function(Q){for(var z=new Set,H=g.n(Object.values(Q)),f=H.next();!f.done;f=H.next())f=f.value,f.length&&(f=f[0],f.height&&f.codecs.startsWith("vp09")&&z.add(f.height));H=[];if(z.size){f=g.n(Object.keys(Q));for(var b=f.next();!b.done;b=f.next())if(b=b.value,Q[b].length){var L=Q[b][0];L.height&&z.has(L.height)&&!L.codecs.startsWith("vp09")&&H.push(b)}}z=g.n(H);for(H=z.next();!H.done;H=z.next())delete Q[H.value]}; +yc=function(Q,z){this.Z=Q;this.B=z}; +A2c=function(Q,z,H,f){var b=[];H=g.n(H);for(var L=H.next();!L.done;L=H.next()){var u=L.value;if(u.url){L=new g.GQ(u.url,!0);if(u.s){var X=L,v=u.sp,y=N4a(decodeURIComponent(u.s));X.set(v,encodeURIComponent(y))}X=g.n(Object.keys(f));for(v=X.next();!v.done;v=X.next())v=v.value,L.set(v,f[v]);u=f3(u.type,u.quality,u.itag,u.width,u.height);b.push(new yc(u,L))}}return uF(Q.S,b,W0(Q,z),!1)}; +qG=function(Q,z){this.Z=Q;this.B=z}; +Yvn=function(Q,z,H){var f=[];H=g.n(H);for(var b=H.next();!b.done;b=H.next())if((b=b.value)&&b.url){var L=f3(b.type,"medium","0");f.push(new qG(L,b.url))}return uF(Q.S,f,W0(Q,z),!1)}; +r2L=function(Q,z){var H=[],f=f3(z.type,"auto",z.itag);H.push(new qG(f,z.url));return uF(Q.S,H,!1,!0)}; +B09=function(Q){return Q&&s9J[Q]?s9J[Q]:null}; +PBZ=function(Q){if(Q=Q.commonConfig)this.url=Q.url,this.urlQueryOverride=Q.urlQueryOverride,Q.ustreamerConfig&&(this.VO=bf(Q.ustreamerConfig)||void 0)}; +aip=function(Q,z){var H;if(z=z==null?void 0:(H=z.watchEndpointSupportedOnesieConfig)==null?void 0:H.html5PlaybackOnesieConfig)Q.KS=new PBZ(z)}; +g.MG=function(Q){Q=Q===void 0?{}:Q;this.languageCode=Q.languageCode||"";this.languageName=Q.languageName||null;this.kind=Q.kind||"";this.name=Q.name===void 0?null:Q.name;this.displayName=Q.displayName||null;this.id=Q.id||null;this.Z=Q.is_servable||!1;this.isTranslateable=Q.is_translateable||!1;this.url=Q.url||null;this.vssId=Q.vss_id||"";this.isDefault=Q.is_default||!1;this.translationLanguage=Q.translationLanguage||null;this.xtags=Q.xtags||"";this.captionId=Q.captionId||""}; +g.th=function(Q){var z={languageCode:Q.languageCode,languageName:Q.languageName,displayName:g.Cv(Q),kind:Q.kind,name:Q.name,id:Q.id,is_servable:Q.Z,is_default:Q.isDefault,is_translateable:Q.isTranslateable,vss_id:Q.vssId};Q.xtags&&(z.xtags=Q.xtags);Q.captionId&&(z.captionId=Q.captionId);Q.translationLanguage&&(z.translationLanguage=Q.translationLanguage);return z}; +g.Es=function(Q){return Q.translationLanguage?Q.translationLanguage.languageCode:Q.languageCode}; +g.UMA=function(Q){var z=Q.vssId;Q.translationLanguage&&z&&(z="t"+z+"."+g.Es(Q));return z}; +g.Cv=function(Q){var z=[];if(Q.displayName)z.push(Q.displayName);else{var H=Q.languageName||"";z.push(H);Q.kind==="asr"&&H.indexOf("(")===-1&&z.push(" (Automatic Captions)");Q.name&&z.push(" - "+Q.name)}Q.translationLanguage&&z.push(" >> "+Q.translationLanguage.languageName);return z.join("")}; +W9_=function(Q,z,H,f){Q||(Q=z&&c2Y.hasOwnProperty(z)&&i6a.hasOwnProperty(z)?i6a[z]+"_"+c2Y[z]:void 0);z=Q;if(!z)return null;Q=z.match(hcu);if(!Q||Q.length!==5)return null;if(Q=z.match(hcu)){var b=Number(Q[3]),L=[7,8,10,5,6];Q=!(Number(Q[1])===1&&b===8)&&L.indexOf(b)>=0}else Q=!1;return H||f||Q?z:null}; +pv=function(Q,z){for(var H={},f=g.n(Object.keys(DMc)),b=f.next();!b.done;b=f.next()){b=b.value;var L=z?z+b:b;L=Q[L+"_webp"]||Q[L];g.Qx(L)&&(H[DMc[b]]=L)}return H}; +nv=function(Q){var z={};if(!Q||!Q.thumbnails)return z;Q=Q.thumbnails.filter(function(X){return!!X.url}); +Q.sort(function(X,v){return X.width-v.width||X.height-v.height}); +for(var H=g.n(Object.keys(K9c)),f=H.next();!f.done;f=H.next()){var b=Number(f.value);f=K9c[b];for(var L=g.n(Q),u=L.next();!u.done;u=L.next())if(u=u.value,u.width>=b){b=VpJ(u.url);g.Qx(b)&&(z[f]=b);break}}(Q=Q.pop())&&Q.width>=1280&&(Q=VpJ(Q.url),g.Qx(Q)&&(z["maxresdefault.jpg"]=Q));return z}; +VpJ=function(Q){return Q.startsWith("//")?"https:"+Q:Q}; +gr=function(Q){return Q&&Q.baseUrl||""}; +Z1=function(Q){Q=g.ST(Q);for(var z=g.n(Object.keys(Q)),H=z.next();!H.done;H=z.next()){H=H.value;var f=Q[H];Q[H]=Array.isArray(f)?f[0]:f}return Q}; +dMn=function(Q,z){Q.botguardData=z.playerAttestationRenderer.botguardData;z=z.playerAttestationRenderer.challenge;z!=null&&(Q.iF=z)}; +kTu=function(Q,z){z=g.n(z);for(var H=z.next();!H.done;H=z.next()){H=H.value;var f=H.interstitials.map(function(u){var X=g.K(u,mM8);if(X)return{is_yto_interstitial:!0,raw_player_response:X};if(u=g.K(u,wZJ))return Object.assign({is_yto_interstitial:!0},L1(u))}); +f=g.n(f);for(var b=f.next();!b.done;b=f.next())switch(b=b.value,H.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":Q.interstitials=Q.interstitials.concat({time:0,playerVars:b,A_:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":Q.interstitials=Q.interstitials.concat({time:0x7ffffffffffff,playerVars:b,A_:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var L=Number(H.podConfig.timeToInsertAtMillis);Q.interstitials=Q.interstitials.concat({time:L,playerVars:b, +A_:L===0?5:7})}}}; +T0Y=function(Q,z){if(z=z.find(function(H){return!(!H||!H.tooltipRenderer)}))Q.tooltipRenderer=z.tooltipRenderer}; +ec9=function(Q,z){z.subscribeCommand&&(Q.subscribeCommand=z.subscribeCommand);z.unsubscribeCommand&&(Q.unsubscribeCommand=z.unsubscribeCommand);z.addToWatchLaterCommand&&(Q.addToWatchLaterCommand=z.addToWatchLaterCommand);z.removeFromWatchLaterCommand&&(Q.removeFromWatchLaterCommand=z.removeFromWatchLaterCommand);z.getSharePanelCommand&&(Q.getSharePanelCommand=z.getSharePanelCommand)}; +li_=function(Q,z){z!=null?(Q.H0=z,Q.gV=!0):(Q.H0="",Q.gV=!1)}; +GZ=function(Q,z){this.type=Q||"";this.id=z||""}; +g.$a=function(Q){return new GZ(Q.substring(0,2),Q.substring(2))}; +g.jw=function(Q,z){this.aj=Q;this.author="";this.wv=null;this.playlistLength=0;this.Z=this.sessionData=null;this.U={};this.title="";if(z){this.author=z.author||z.playlist_author||"";this.title=z.playlist_title||"";if(Q=z.session_data)this.sessionData=f1(Q,"&");var H;this.Z=((H=z.thumbnail_ids)==null?void 0:H.split(",")[0])||null;this.U=pv(z,"playlist_");this.videoId=z.video_id||void 0;if(H=z.list)switch(z.listType){case "user_uploads":this.playlistId=(new GZ("UU","PLAYER_"+H)).toString();break;default:if(Q= +z.playlist_length)this.playlistLength=Number(Q)||0;this.playlistId=g.$a(H).toString();if(z=z.video)this.videoId=(z[0]||null).video_id||void 0}else z.playlist&&(this.playlistLength=z.playlist.toString().split(",").length)}}; +g.FR=function(Q,z){this.aj=Q;this.SZ=this.author="";this.wv=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.VW=this.lengthText="";this.sessionData=null;this.U={};this.title="";if(z){this.ariaLabel=z.aria_label||void 0;this.author=z.author||"";this.SZ=z.SZ||"";if(Q=z.endscreen_autoplay_session_data)this.wv=f1(Q,"&");this.Pd=z.Pd;this.isLivePlayback=z.live_playback==="1";this.isUpcoming=!!z.isUpcoming;if(Q=z.length_seconds)this.lengthSeconds=typeof Q==="string"?Number(Q):Q;this.lengthText= +z.lengthText||"";this.VW=z.VW||"";this.publishedTimeText=z.publishedTimeText||void 0;if(Q=z.session_data)this.sessionData=f1(Q,"&");this.shortViewCount=z.short_view_count_text||void 0;this.U=pv(z);this.title=z.title||"";this.videoId=z.docid||z.video_id||z.videoId||z.id||void 0;this.watchUrl=z.watchUrl||void 0}}; +Rc8=function(Q){var z,H,f=(z=Q.getWatchNextResponse())==null?void 0:(H=z.contents)==null?void 0:H.twoColumnWatchNextResults,b,L,u,X,v;Q=(b=Q.getWatchNextResponse())==null?void 0:(L=b.playerOverlays)==null?void 0:(u=L.playerOverlayRenderer)==null?void 0:(X=u.endScreen)==null?void 0:(v=X.watchNextEndScreenRenderer)==null?void 0:v.results;if(!Q){var y,q;Q=f==null?void 0:(y=f.endScreen)==null?void 0:(q=y.endScreen)==null?void 0:q.results}return Q}; +g.Os=function(Q){var z,H,f;Q=g.K((z=Q.getWatchNextResponse())==null?void 0:(H=z.playerOverlays)==null?void 0:(f=H.playerOverlayRenderer)==null?void 0:f.decoratedPlayerBarRenderer,xa);return g.K(Q==null?void 0:Q.playerBar,QVa)}; +zKu=function(Q){this.Z=Q.playback_progress_0s_url;this.L=Q.playback_progress_2s_url;this.B=Q.playback_progress_10s_url}; +HYL=function(){if(oZ===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(z){}a:{try{var Q=!!self.localStorage}catch(z){Q=!1}if(Q&&(Q=g.cO(g.Td()+"::yt-player"))){oZ=new W6(Q);break a}oZ=void 0}}return oZ}; +g.Jh=function(){var Q=HYL();if(!Q)return{};try{var z=Q.get("yt-player-lv");return JSON.parse(z||"{}")}catch(H){return{}}}; +g.fqA=function(Q){var z=HYL();z&&(Q=JSON.stringify(Q),z.set("yt-player-lv",Q))}; +g.NG=function(Q){return g.Jh()[Q]||0}; +g.IZ=function(Q,z){var H=g.Jh();z!==H[Q]&&(z!==0?H[Q]=z:delete H[Q],g.fqA(H))}; +g.Ah=function(Q){return g.B(function(z){return z.return(g.dG(bYc(),Q))})}; +rr=function(Q,z,H,f,b,L,u,X){var v,y,q,M,C,t;return g.B(function(E){switch(E.Z){case 1:return v=g.NG(Q),v===4?E.return(4):g.Y(E,g.QH(),2);case 2:y=E.B;if(!y)throw g.F8("wiac");if(!X||u===void 0){E.bT(3);break}return g.Y(E,LeY(X,u),4);case 4:u=E.B;case 3:return q=H.lastModified||"0",g.Y(E,g.Ah(y),5);case 5:return M=E.B,g.jY(E,6),Ya++,g.Y(E,g.se(M,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",VE:!0},function(G){if(L!==void 0&&u!==void 0){var x=""+Q+"|"+z.id+"|"+q+"|"+String(L).padStart(10, +"0");x=g.BH(G.objectStore("media"),u,x)}else x=g.Oe.resolve(void 0);var J=u4u(Q,z.rQ()),I=u4u(Q,!z.rQ()),r={fmts:Syc(f),format:H||{}};J=g.BH(G.objectStore("index"),r,J);var U=f.downloadedEndTime===-1;r=U?G.objectStore("index").get(I):g.Oe.resolve(void 0);var D={fmts:"music",format:{}};G=U&&b&&!z.rQ()?g.BH(G.objectStore("index"),D,I):g.Oe.resolve(void 0);return g.Oe.all([G,r,x,J]).then(function(T){T=g.n(T);T.next();T=T.next().value;Ya--;var k=g.NG(Q);if(k!==4&&U&&b||T!==void 0&&g.Xcp(T.fmts))k=1,g.IZ(Q, +k);return k})}),8); +case 8:return E.return(E.B);case 6:C=g.OA(E);Ya--;t=g.NG(Q);if(t===4)return E.return(t);g.IZ(Q,4);throw C;}})}; +g.vNn=function(Q){var z,H;return g.B(function(f){if(f.Z==1)return g.Y(f,g.QH(),2);if(f.Z!=3){z=f.B;if(!z)throw g.F8("ri");return g.Y(f,g.Ah(z),3)}H=f.B;return f.return(g.se(H,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(b){var L=IDBKeyRange.bound(Q+"|",Q+"~");return b.objectStore("index").getAll(L).then(function(u){return u.map(function(X){return X?X.format:{}})})}))})}; +qy9=function(Q,z,H,f,b){var L,u,X;return g.B(function(v){if(v.Z==1)return g.Y(v,g.QH(),2);if(v.Z!=3){L=v.B;if(!L)throw g.F8("rc");return g.Y(v,g.Ah(L),3)}u=v.B;X=g.se(u,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(y){var q=""+Q+"|"+z+"|"+H+"|"+String(f).padStart(10,"0");return y.objectStore("media").get(q)}); +return b?v.return(X.then(function(y){if(y===void 0)throw Error("No data from indexDb");return yA6(b,y)}).catch(function(y){throw new g.kQ("Error while reading chunk: "+y.name+", "+y.message); +})):v.return(X)})}; +g.Xcp=function(Q){return Q?Q==="music"?!0:Q.includes("dlt=-1")||!Q.includes("dlt="):!1}; +u4u=function(Q,z){return""+Q+"|"+(z?"v":"a")}; +Syc=function(Q){var z={};return bv((z.dlt=Q.downloadedEndTime.toString(),z.mket=Q.maxKnownEndTime.toString(),z.avbr=Q.averageByteRate.toString(),z))}; +Cgn=function(Q){var z={},H={};Q=g.n(Q);for(var f=Q.next();!f.done;f=Q.next()){var b=f.value,L=b.split("|");b.match(g.MGZ)?(f=Number(L.pop()),isNaN(f)?H[b]="?":(L=L.join("|"),(b=z[L])?(L=b[b.length-1],f===L.end+1?L.end=f:b.push({start:f,end:f})):z[L]=[{start:f,end:f}])):H[b]="?"}Q=g.n(Object.keys(z));for(f=Q.next();!f.done;f=Q.next())f=f.value,H[f]=z[f].map(function(u){return u.start+"-"+u.end}).join(","); +return H}; +BV=function(Q){g.vf.call(this);this.Z=null;this.L=new Dx;this.Z=null;this.j=new Set;this.crossOrigin=Q||""}; +tGn=function(Q,z,H){for(H=PV(Q,H);H>=0;){var f=Q.levels[H];if(f.isLoaded(aZ(f,z))&&(f=g.Us(f,z)))return f;H--}return g.Us(Q.levels[0],z)}; +pcc=function(Q,z,H){H=PV(Q,H);for(var f,b;H>=0;H--)if(f=Q.levels[H],b=aZ(f,z),!f.isLoaded(b)){f=Q;var L=H,u=L+"-"+b;f.j.has(u)||(f.j.add(u),f.L.enqueue(L,{Jq:L,k5:b}))}ENL(Q)}; +ENL=function(Q){if(!Q.Z&&!Q.L.isEmpty()){var z=Q.L.remove();Q.Z=nNv(Q,z)}}; +nNv=function(Q,z){var H=document.createElement("img");Q.crossOrigin&&(H.crossOrigin=Q.crossOrigin);H.src=Q.levels[z.Jq].mM(z.k5);H.onload=function(){var f=z.Jq,b=z.k5;Q.Z!==null&&(Q.Z.onload=null,Q.Z=null);f=Q.levels[f];f.loaded.add(b);ENL(Q);var L=f.columns*f.rows;b*=L;f=Math.min(b+L-1,f.H6()-1);b=[b,f];Q.publish("l",b[0],b[1])}; +return H}; +g.cV=function(Q,z,H,f){this.level=Q;this.D=z;this.loaded=new Set;this.level=Q;this.D=z;Q=H.split("#");this.width=Math.floor(Number(Q[0]));this.height=Math.floor(Number(Q[1]));this.frameCount=Math.floor(Number(Q[2]));this.columns=Math.floor(Number(Q[3]));this.rows=Math.floor(Number(Q[4]));this.Z=Math.floor(Number(Q[5]));this.L=Q[6];this.signature=Q[7];this.videoLength=f}; +aZ=function(Q,z){return Math.floor(z/(Q.columns*Q.rows))}; +g.Us=function(Q,z){z>=Q.UC()&&Q.qT();var H=aZ(Q,z),f=Q.columns*Q.rows,b=z%f;z=b%Q.columns;b=Math.floor(b/Q.columns);var L=Q.qT()+1-f*H;if(L1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; +gNc=function(Q,z,H){return(Q=Q.levels[z])?Q.iK(H):-1}; +PV=function(Q,z){var H=Q.D.get(z);if(H)return H;H=Q.levels.length;for(var f=0;f=z)return Q.D.set(z,f),f;Q.D.set(z,H-1);return H-1}; +hh=function(Q,z,H,f){H=H.split("#");H=[H[1],H[2],0,H[3],H[4],-1,H[0],""].join("#");g.cV.call(this,Q,z,H,0);this.B=null;this.S=f?2:0}; +WV=function(Q,z,H,f){iF.call(this,Q,0,void 0,z,!(f===void 0||!f));for(Q=0;Q(H!=null?H:50)&&(H=JAA.shift())&&ka.delete(H),H=b),b!==H&&Q.b3("ssei","dcpn_"+b+"_"+H+"_"+Q.clientPlaybackNonce),H)}; +dr=function(Q,z){var H=z.raw_watch_next_response;if(!H){var f=z.watch_next_response;f&&(H=JSON.parse(f))}if(H){Q.mq=H;var b=Q.mq.playerCueRangeSet;b&&g.TZ(Q,b);var L=Q.mq.playerOverlays;if(L){var u=L.playerOverlayRenderer;if(u){var X=u.autonavToggle;X&&(Q.autoplaySwitchButtonRenderer=g.K(X,NgA),Q.V("web_player_autonav_use_server_provided_state")&&ew(Q)&&(Q.autonavState=Q.autoplaySwitchButtonRenderer.enabled?2:1));var v=u.videoDetails;if(v){var y=v.embeddedPlayerOverlayVideoDetailsRenderer;var q=v.playerOverlayVideoDetailsRenderer; +q&&(q.title&&(z.title=g.na(q.title)),q.subtitle&&(z.subtitle=g.na(q.subtitle)))}g.Yh(Q.aj)&&(Q.QN=!!u.addToMenu);Iq9(Q,u.shareButton);u.startPosition&&u.endPosition&&(Q.progressBarStartPosition=u.startPosition,Q.progressBarEndPosition=u.endPosition);var M=u.gatedActionsOverlayRenderer;M&&(Q.St=g.K(M,AAZ));var C,t,E,G=g.K((C=Q.getWatchNextResponse())==null?void 0:(t=C.playerOverlays)==null?void 0:(E=t.playerOverlayRenderer)==null?void 0:E.infoPanel,Yyk);if(G){Q.o8=Number(G==null?void 0:G.durationMs)|| +NaN;if(G==null?0:G.infoPanelOverviewViewModel)Q.sj=G==null?void 0:G.infoPanelOverviewViewModel;if(G==null?0:G.infoPanelDetailsViewModel)Q.Uu=G==null?void 0:G.infoPanelDetailsViewModel}Q.showSeekingControls=!!u.showSeekingControls}}var x,J,I=(x=Q.getWatchNextResponse())==null?void 0:(J=x.contents)==null?void 0:J.twoColumnWatchNextResults;if(I){var r=I.desktopOverlay&&g.K(I.desktopOverlay,rAu);r&&(r.suppressShareButton&&(Q.showShareButton=!1),r.suppressWatchLaterButton&&(Q.QN=!1))}y&&sV_(Q,z,y);var U= +Ss(0,z.autoplay_count),D=Q.getWatchNextResponse(),T,k=(T=D.contents)==null?void 0:T.twoColumnWatchNextResults,bL,SY,Q9,V=(bL=D.playerOverlays)==null?void 0:(SY=bL.playerOverlayRenderer)==null?void 0:(Q9=SY.autoplay)==null?void 0:Q9.playerOverlayAutoplayRenderer,R=Rc8(Q),Z,d=(Z=D.contents)==null?void 0:Z.singleColumnWatchNextResults;if(d){var h8;if(((h8=d.autoplay)==null?0:h8.autoplay)&&!d.playlist){var j5=d.autoplay.autoplay.sets,tt={},J8=new g.FR(Q.C()),lL=null,uR;if(j5){for(var ns=g.n(j5),O=ns.next();!O.done;O= +ns.next()){var N=O.value.autoplayVideoRenderer;if(N&&N.compactVideoRenderer){lL=N.compactVideoRenderer;break}}if(uR=j5[0].autoplayVideo){var A=uR.clickTrackingParams;A&&(tt.itct=A);tt.autonav="1";tt.playnext=String(U)}}else tt.feature="related-auto";var P=g.K(uR,g.lF);if(lL){J8.videoId=lL.videoId;var c=lL.shortBylineText;c&&(J8.author=g.na(c));var zu=lL.title;zu&&(J8.title=g.na(zu))}else P!=null&&P.videoId&&(J8.videoId=P.videoId);J8.wv=tt;Q.suggestions=[];Q.o_=J8}}if(R){for(var Ln=[],uL=g.n(R),a= +uL.next();!a.done;a=uL.next()){var qk=a.value,pn=void 0,v_=null;if(qk.endScreenVideoRenderer){var Yv=qk.endScreenVideoRenderer,ET=Yv.title;v_=new g.FR(Q.C());v_.videoId=Yv.videoId;v_.lengthSeconds=Yv.lengthInSeconds||0;var iR=Yv.publishedTimeText;iR&&(v_.publishedTimeText=g.na(iR));var tC=Yv.shortBylineText;tC&&(v_.author=g.na(tC));var dc=Yv.shortViewCountText;dc&&(v_.shortViewCount=g.na(dc));if(ET){v_.title=g.na(ET);var WY=ET.accessibility;if(WY){var y3=WY.accessibilityData;y3&&y3.label&&(v_.ariaLabel= +y3.label)}}var Bo=Yv.navigationEndpoint;if(Bo){pn=Bo.clickTrackingParams;var ks=g.K(Bo,g.lF),Mz=g.K(Bo,g.cf);ks?v_.Pd=ks:Mz!=null&&(v_.watchUrl=Mz.url)}var wf=Yv.thumbnailOverlays;if(wf)for(var D3=g.n(wf),kZ=D3.next();!kZ.done;kZ=D3.next()){var xZ=kZ.value.thumbnailOverlayTimeStatusRenderer;if(xZ)if(xZ.style==="LIVE"){v_.isLivePlayback=!0;break}else if(xZ.style==="UPCOMING"){v_.isUpcoming=!0;break}}v_.U=nv(Yv.thumbnail)}else if(qk.endScreenPlaylistRenderer){var CC=qk.endScreenPlaylistRenderer,B4= +CC.navigationEndpoint;if(!B4)continue;var E7=g.K(B4,g.lF);if(!E7)continue;var P4=E7.videoId;v_=new g.jw(Q.C());v_.playlistId=CC.playlistId;v_.playlistLength=Number(CC.videoCount)||0;v_.Z=P4||null;v_.videoId=P4;var a2=CC.title;a2&&(v_.title=g.na(a2));var Ua=CC.shortBylineText;Ua&&(v_.author=g.na(Ua));pn=B4.clickTrackingParams;v_.U=nv(CC.thumbnail)}v_&&(pn&&(v_.sessionData={itct:pn}),Ln.push(v_))}Q.suggestions=Ln}if(V){Q.Cs=!!V.preferImmediateRedirect;Q.Ci=Q.Ci||!!V.webShowNewAutonavCountdown;Q.xr= +Q.xr||!!V.webShowBigThumbnailEndscreen;if(Q.Ci||Q.xr){var Ap=k||null,Qr=new g.FR(Q.C());Qr.videoId=V.videoId;var Tl=V.videoTitle;if(Tl){Qr.title=g.na(Tl);var b4=Tl.accessibility;if(b4){var O4=b4.accessibilityData;O4&&O4.label&&(Qr.ariaLabel=O4.label)}}var DV=V.byline;DV&&(Qr.author=g.na(DV));var E2=V.publishedTimeText;E2&&(Qr.publishedTimeText=g.na(E2));var F$=V.shortViewCountText;F$&&(Qr.shortViewCount=g.na(F$));var x6=V.thumbnailOverlays;if(x6)for(var OU=g.n(x6),vC=OU.next();!vC.done;vC=OU.next()){var q2= +vC.value.thumbnailOverlayTimeStatusRenderer;if(q2)if(q2.style==="LIVE"){Qr.isLivePlayback=!0;break}else if(q2.style==="UPCOMING"){Qr.isUpcoming=!0;break}else if(q2.style==="DEFAULT"&&q2.text){Qr.lengthText=g.na(q2.text);var yv=q2.text.accessibility;if(yv){var qq=yv.accessibilityData;qq&&qq.label&&(Qr.VW=qq.label||"")}break}}Qr.U=nv(V.background);var om=V.nextButton;if(om){var Ja=om.buttonRenderer;if(Ja){var N6=Ja.navigationEndpoint;if(N6){var Im=g.K(N6,g.lF);Im&&(Qr.Pd=Im)}}}if(V.topBadges){var Aa= +V.topBadges[0];if(Aa){var Y6=g.K(Aa,Bgc);Y6&&Y6.style==="BADGE_STYLE_TYPE_PREMIUM"&&(Qr.kZl=!0)}}var di=V.alternativeTitle;di&&(Qr.SZ=g.na(di));var oe={autonav:"1",playnext:String(U)};Qr.playlistId&&(oe.autoplay="1");if(Ap){var mj,T2,Mq,rp,Cj=(mj=Ap.autoplay)==null?void 0:(T2=mj.autoplay)==null?void 0:(Mq=T2.sets)==null?void 0:(rp=Mq[0])==null?void 0:rp.autoplayVideo;if(Cj){var sU=Cj.clickTrackingParams;sU&&(oe.itct=sU);var tN=g.K(Cj,g.lF);tN&&(Qr.aM=tN)}}else if(V){var Bs,Ps,am,UU=(Bs=V.nextButton)== +null?void 0:(Ps=Bs.buttonRenderer)==null?void 0:(am=Ps.navigationEndpoint)==null?void 0:am.clickTrackingParams;UU&&(oe.itct=UU)}oe.itct||(oe.feature="related-auto");Qr.wv=oe;Q.suggestions||(Q.suggestions=[]);Q.o_=Qr}V.countDownSecs!=null&&(Q.uY=V.countDownSecs*1E3);V.countDownSecsForFullscreen!=null&&(Q.W_=V.countDownSecsForFullscreen>=0?V.countDownSecsForFullscreen*1E3:-1);Q.V("web_autonav_color_transition")&&V.watchToWatchTransitionRenderer&&(Q.watchToWatchTransitionRenderer=g.K(V.watchToWatchTransitionRenderer, +PgL))}var ES=Rc8(Q);if(ES){var Fd,cs,pj,nj=ES==null?void 0:(Fd=ES[0])==null?void 0:(cs=Fd.endScreenVideoRenderer)==null?void 0:(pj=cs.navigationEndpoint)==null?void 0:pj.clickTrackingParams,iZ=g.RZ(Q);nj&&iZ&&(iZ.sessionData={itct:nj})}Q.mq.currentVideoThumbnail&&(Q.U=nv(Q.mq.currentVideoThumbnail));var wi,ha,Ws,km,DF,xC=(wi=Q.mq)==null?void 0:(ha=wi.contents)==null?void 0:(Ws=ha.twoColumnWatchNextResults)==null?void 0:(km=Ws.results)==null?void 0:(DF=km.results)==null?void 0:DF.contents;if(xC&&xC[1]){var K3, +VA,NN,FP,cQ=(K3=xC[1].videoSecondaryInfoRenderer)==null?void 0:(VA=K3.owner)==null?void 0:(NN=VA.videoOwnerRenderer)==null?void 0:(FP=NN.thumbnail)==null?void 0:FP.thumbnails;cQ&&cQ.length&&(Q.profilePicture=cQ[cQ.length-1].url)}var dp=yh(z),gE,O5=(gE=Q.getWatchNextResponse())==null?void 0:gE.onResponseReceivedEndpoints;if(O5)for(var oW=g.n(O5),ZA=oW.next();!ZA.done;ZA=oW.next()){var il=ZA.value;g.K(il,Qt)&&(Q.Vo=g.K(il,Qt));var J$=g.K(il,aqv),mw=void 0;if((mw=J$)==null?0:mw.entityKeys)Q.Ss=J$.entityKeys|| +[],J$.visibleOnLoadKeys&&(Q.visibleOnLoadKeys=J$.visibleOnLoadKeys)}if(Q.V("web_key_moments_markers")){var en=g.z_.getState().entities,Ch=g.lG("visibility_override","markersVisibilityOverrideEntity");var KT=yd(en,"markersVisibilityOverrideEntity",Ch);Q.ZJ=(KT==null?void 0:KT.videoId)===(Q.videoId||dp)&&(KT==null?0:KT.visibilityOverrideMarkersKey)?KT.visibilityOverrideMarkersKey:Q.visibleOnLoadKeys;Q.visibleOnLoadKeys=[].concat(g.F(Q.ZJ))}}}; +ew=function(Q){var z;return((z=Q.autoplaySwitchButtonRenderer)==null?void 0:z.enabled)!==void 0}; +H7=function(Q){return!!(Q.L&&Q.L.videoInfos&&Q.L.videoInfos.length)}; +g.Sn=function(Q){var z=Q.N;Q.V("html5_gapless_unlimit_format_selection")&&f9(Q)&&(z=!1);var H=!!Q.Z&&Q.Z.AZ,f=Q.aj,b=Q.vM(),L=bE(Q),u=Q.rT,X=z,v=Q.isOtf();z=Q.Nf();var y=Q.WI,q=Q.getUserAudio51Preference(),M=L9(Q),C=new yGJ(f);if(f.vz()||f.V("html5_logging_format_selection"))C.B=!0;C.iT=L;C.rT=u&&f.Y;C.f3=q;g.VC("windows nt 5.1")&&!g.Um&&(C.LP=!0);if(L=b)L=g.lf(f)?y2u(f):!1;L&&(C.wh=!0);X&&(C.LP=!0,C.gT=!0);v&&!f.V("html5_otf_prefer_vp9")&&(C.LP=!0);f.playerStyle==="picasaweb"&&(v&&(C.LP=!1),C.L3= +!1);y&&(C.LP=!0);g8(f.S,ZM.CHANNELS)&&(f.V("html5_enable_ac3")&&(C.D=!0),f.V("html5_enable_eac3")&&(C.S=!0),f.V("html5_enable_ac3_gapless")&&(C.jm=!0));f.V("html5_block_8k_hfr")&&(C.C3=!0);C.j=g.Mf(f.experiments,"html5_max_selectable_quality_ordinal");C.Y=g.Mf(f.experiments,"html5_min_selectable_quality_ordinal");jN&&(C.Wz=480);if(H||b)C.L3=!1;C.WI=!1;C.disableAv1=M;H=Nj(f,C.Z,void 0,C.disableAv1);H>0&&H<2160&&(p3()||f.V("html5_format_hybridization"))&&(C.Z.supportsChangeType=+p3(),C.zw=H);H>=2160&& +(C.yl=!0);Uf_()&&(C.Z.serveVp9OverAv1IfHigherRes=0,C.ys=!1);C.Nf=z;C.En=g.Ta||fF()&&!z?!1:!0;C.N=f.V("html5_format_hybridization");C.yE=f.V("html5_disable_encrypted_vp9_live_non_2k_4k");uE(Q)&&(C.UY=Q.V("html5_prefer_language_over_codec"));wR()&&Q.playerResponse&&Q.playerResponse.playerConfig&&Q.playerResponse.playerConfig.webPlayerConfig&&Q.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(C.D=!0,C.S=!0);Q.N&&Q.isAd()&&(Q.WR&&(C.Ze=Q.WR),Q.R$&&(C.L=Q.R$));C.mq=Q.isLivePlayback&& +Q.w7()&&Q.aj.V("html5_drm_live_audio_51");C.ZJ=Q.qW;return Q.YJ=C}; +L9=function(Q){return Q.aj.V("html5_disable_av1")||Q.V("html5_gapless_shorts_disable_av1")&&f9(Q)?!0:!1}; +UdJ=function(Q){hN("drm_pb_s",void 0,Q.En);Q.C3||Q.Z&&Cu(Q.Z);var z={};Q.Z&&(z=TPY(Q.x9,g.Sn(Q),Q.aj.S,Q.Z,function(H){return Q.publish("ctmp","fmtflt",H)},!0,new Set)); +z=new Ky(z,Q.aj,Q.Lz,Q.useCobaltWidevine?wR()?XD(Q):!1:!1,function(H,f){Q.On(H,f)}); +g.W(Q,z);Q.h_=!1;Q.loading=!0;$v6(z,function(H){hN("drm_pb_f",void 0,Q.En);for(var f=g.n(H),b=f.next();!b.done;b=f.next())switch(b=b.value,b.flavor){case "fairplay":b.C3=Q.C3;b.pW=Q.pW;b.bu=Q.bu;break;case "widevine":b.Lt=Q.Lt}Q.nV=H;if(Q.nV.length>0&&(Q.S=Q.nV[0],Q.aj.vz())){H={};f=g.n(Object.entries(Q.S.Z));for(b=f.next();!b.done;b=f.next()){var L=g.n(b.value);b=L.next().value;L=L.next().value;var u="unk";(b=b.match(/(.*)codecs="(.*)"/))&&(u=b[2]);H[u]=L}Q.On("drmProbe",H)}Q.Az()})}; +cAY=function(Q,z){if(z.length===0||v7(Q))return null;qY(Q,"html5_enable_cobalt_experimental_vp9_decoder")&&(Om=!0);var H=Q.AM;var f=Q.lengthSeconds,b=Q.isLivePlayback,L=Q.l8,u=Q.aj,X=ksk(z);if(b||L){u=u.experiments;f=new yG("",u,!0);f.B=!L;f.AZ=!0;f.isManifestless=!0;f.isLive=!L;f.l8=L;z=g.n(z);for(b=z.next();!b.done;b=z.next()){var v=b.value;b=Cy(v,H);X=or(v);X=Em(X.vX||v.url||"",X.cO,X.s);var y=X.get("id");y&&y.includes("%7E")&&(f.U=!0);var q=void 0;y=(q=u)==null?void 0:q.Nc("html5_max_known_end_time_rebase"); +q=Number(v.targetDurationSec||5);v=Number(v.maxDvrDurationSec||14400);var M=Number(X.get("mindsq")||X.get("min_sq")||"0"),C=Number(X.get("maxdsq")||X.get("max_sq")||"0")||Infinity;f.Li=f.Li||M;f.zs=f.zs||C;var t=!Hs(b.mimeType);X&&Sb(f,new wV(X,b,{Cq:q,Kr:t,Ic:v,Li:M,zs:C,qJ:300,l8:L,r_:y}))}H=f}else if(X==="FORMAT_STREAM_TYPE_OTF"){f=f===void 0?0:f;L=new yG("",u.experiments,!1);L.duration=f||0;u=g.n(z);for(f=u.next();!f.done;f=u.next())f=f.value,z=Cy(f,H,L.duration),b=or(f),(b=Em(b.vX||f.url||"", +b.cO,b.s))&&(z.streamType==="FORMAT_STREAM_TYPE_OTF"?Sb(L,new kl(b,z,"sq/0")):Sb(L,new bD(b,z,Nm(f.initRange),Nm(f.indexRange))));L.isOtf=!0;H=L}else{f=f===void 0?0:f;L=new yG("",u.experiments,!1);L.duration=f||0;u=g.n(z);for(f=u.next();!f.done;f=u.next())X=f.value,f=Cy(X,H,L.duration),z=Nm(X.initRange),b=Nm(X.indexRange),y=or(X),(X=Em(y.vX||X.url||"",y.cO,y.s))&&Sb(L,new bD(X,f,z,b));H=L}L=Q.isLivePlayback&&!Q.l8&&!Q.f3&&!Q.isPremiere;Q.V("html5_live_head_playable")&&(!MY(Q)&&L&&Q.On("missingLiveHeadPlayable", +{}),Q.aj.Ze==="yt"&&(H.iT=!0));return H}; +v7=function(Q){return wR()?!XD(Q):Tr()?!(!Q.C3||!Q.V("html5_enable_safari_fairplay")&&lD()):!1}; +XD=function(Q){return Q.V("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; +g.TZ=function(Q,z){z=g.n(z);for(var H=z.next();!H.done;H=z.next())if(H=H.value,H.cueRangeSetIdentifier){var f=void 0;Q.Nr.set(H.cueRangeSetIdentifier,(f=H.playerCueRanges)!=null?f:[])}}; +C9=function(Q){return!(!Q.Z||!Q.Z.isManifestless)}; +tM=function(Q){return Q.Vs?Q.isLowLatencyLiveStream&&Q.Z!=null&&Zn(Q.Z)>=5:Q.isLowLatencyLiveStream&&Q.Z!=void 0&&Zn(Q.Z)>=5}; +iY_=function(Q){return wR()&&XD(Q)?!1:v7(Q)&&(g.xJ(Q.aj)?!Q.isLivePlayback:Q.hlsvp)||!lD()||Q.zD?!0:!1}; +DdZ=function(Q){Q.loading=!0;Q.yw=!1;if(hKc(Q))g.vNn(Q.videoId).then(function(f){We6(Q,f)}).then(function(){Q.Az()}); +else{RT(Q.p5)||g.ax(new g.kQ("DASH MPD Origin invalid: ",Q.p5));var z=Q.p5,H=g.Mf(Q.aj.experiments,"dash_manifest_version")||4;z=g.de(z,{mpd_version:H});Q.isLowLatencyLiveStream&&Q.latencyClass!=="NORMAL"||(z=g.de(z,{pacing:0}));f$c(z,Q.aj.experiments,Q.isLivePlayback).then(function(f){Q.Sm()||(EC(Q,f,!0),hN("mrc",void 0,Q.En),Q.Az())},function(f){Q.Sm()||(Q.loading=!1,Q.publish("dataloaderror",new oj("manifest.net.retryexhausted",{backend:"manifest", +rc:f.status},1)))}); +hN("mrs",void 0,Q.En)}}; +We6=function(Q,z){var H=z.map(function(v){return v.itag}),f; +if((f=Q.playerResponse)!=null&&f.streamingData){f=[];if(Q.V("html5_offline_always_use_local_formats")){H=0;for(var b=g.n(z),L=b.next();!L.done;L=b.next()){L=L.value;var u=Object.assign({},L);u.signatureCipher="";f.push(u);u=g.n(Q.playerResponse.streamingData.adaptiveFormats);for(var X=u.next();!X.done;X=u.next())if(X=X.value,L.itag===X.itag&&L.xtags===X.xtags){H+=1;break}}Hq&&(q=t.getInfo().audio.numChannels)}q>2&&Q.On("hlschl",{mn:q});var x;((x=Q.YJ)==null?0:x.B)&&Q.On("hlsfmtaf",{itags:M.join(".")});var J;if(Q.V("html5_enable_vp9_fairplay")&&((J=Q.S)==null?0:Pj(J)))for(Q.On("drm",{sbdlfbk:1}),q=g.n(Q.nV),M=q.next();!M.done;M=q.next())if(M=M.value,Bj(M)){Q.S=M;break}Zm(Q,y)})}return B2()}; +wcJ=function(Q){if(Q.isExternallyHostedPodcast&&Q.C2){var z=gi(Q.C2);if(!z[0])return B2();Q.Rg=z[0];return r2L(Q.aj,z[0]).then(function(H){Zm(Q,H)})}return Q.Bl&&Q.Ks?Yvn(Q.aj,Q.isAd(),Q.Bl).then(function(H){Zm(Q,H)}):B2()}; +Tg8=function(Q){if(Q.isExternallyHostedPodcast)return B2();var z=gi(Q.C2,Q.jj);if(Q.hlsvp){var H=ZYJ(Q.hlsvp,Q.clientPlaybackNonce,Q.yR);z.push(H)}return A2c(Q.aj,Q.isAd(),z,kCL(Q)).then(function(f){Zm(Q,f)})}; +Zm=function(Q,z){Q.zx=z;Q.Ar(new XC(g.NT(Q.zx,function(H){return H.getInfo()})))}; +kCL=function(Q){var z={cpn:Q.clientPlaybackNonce,c:Q.aj.Z.c,cver:Q.aj.Z.cver};Q.QW&&(z.ptk=Q.QW,z.oid=Q.vu,z.ptchn=Q.s9,z.pltype=Q.JI,Q.BP&&(z.m=Q.BP));return z}; +g.G_=function(Q){return v7(Q)&&Q.C3?(Q={},Q.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",Q):Q.B&&Q.B.AM||null}; +eKp=function(Q){var z=$m(Q);return z&&z.text?g.na(z.text):Q.paidContentOverlayText}; +lqn=function(Q){var z=$m(Q);return z&&z.durationMs?H3(z.durationMs):Q.paidContentOverlayDurationMs}; +$m=function(Q){var z,H,f;return Q.playerResponse&&Q.playerResponse.paidContentOverlay&&Q.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.K((z=Q.mq)==null?void 0:(H=z.playerOverlays)==null?void 0:(f=H.playerOverlayRenderer)==null?void 0:f.playerDisclosure,RKA)||null}; +jn=function(Q){var z="";if(Q.wD)return Q.wD;Q.isLivePlayback&&(z=Q.allowLiveDvr?"dvr":Q.isPremiere?"lp":Q.f3?"window":"live");Q.l8&&(z="post");return z}; +g.FD=function(Q,z){return typeof Q.keywords[z]!=="string"?null:Q.keywords[z]}; +QaL=function(Q){return!!Q.J5||!!Q.a5||!!Q.kd||!!Q.hd||Q.Mf||Q.Y.focEnabled||Q.Y.rmktEnabled}; +g.xm=function(Q){return!!(Q.p5||Q.C2||Q.Bl||Q.hlsvp||Q.gp())}; +Vc=function(Q){if(Q.V("html5_onesie")&&Q.errorCode)return!1;var z=g.TY(Q.De,"ypc");Q.ypcPreview&&(z=!1);return Q.EZ()&&!Q.loading&&(g.xm(Q)||g.TY(Q.De,"heartbeat")||z)}; +gi=function(Q,z){Q=uv(Q);var H={};if(z){z=g.n(z.split(","));for(var f=z.next();!f.done;f=z.next())(f=f.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(H[f[1]]={width:f[2],height:f[3]})}z=g.n(Q);for(f=z.next();!f.done;f=z.next()){f=f.value;var b=H[f.itag];b&&(f.width=b.width,f.height=b.height)}return Q}; +OC=function(Q){var z=Q.getAvailableAudioTracks();z=z.concat(Q.j2);for(var H=0;H0:z||Q.adFormat!=="17_8"||Q.isAutonav||g.Tt(Q.aj)||Q.D4?Q.D6?!1:Q.aj.C2||Q.aj.dQ||!g.O8(Q.aj)?!z&&aq(Q)==="adunit"&&Q.J5?!1:!0:!1:!1:(Q.D6?0:Q.m4)&&g.O8(Q.aj)?!0:!1;Q.V("html5_log_detailpage_autoplay")&&aq(Q)==="detailpage"&&Q.On("autoplay_info",{autoplay:Q.Yn,autonav:Q.isAutonav,wasDompaused:Q.D6,result:z});return z}; +g.W7=function(Q){return Q.oauthToken||Q.aj.j2}; +C6Y=function(Q){if(Q.V("html5_stateful_audio_normalization")){var z=1,H=g.Mf(Q.aj.experiments,"html5_default_ad_gain");H&&Q.isAd()&&(z=H);var f;if(H=((f=Q.D)==null?void 0:f.audio.B)||Q.AC){f=(0,g.IE)();Q.rq=2;var b=f-Q.aj.Uf<=Q.maxStatefulTimeThresholdSec*1E3;Q.applyStatefulNormalization&&b?Q.rq=4:b||(Q.aj.W7=Infinity,Q.aj.Uf=NaN);b=(Q.rq===4?g.y4(Q.aj.W7,Q.minimumLoudnessTargetLkfs,Q.loudnessTargetLkfs):Q.loudnessTargetLkfs)-H;if(Q.rq!==4){var L,u,X,v,y=((L=Q.playerResponse)==null?void 0:(u=L.playerConfig)== +null?void 0:(X=u.audioConfig)==null?void 0:(v=X.loudnessNormalizationConfig)==null?void 0:v.statelessLoudnessAdjustmentGain)||0;b+=y}b=Math.min(b,0);Q.preserveStatefulLoudnessTarget&&(Q.aj.W7=H+b,Q.aj.Uf=f);Q=Math.min(1,Math.pow(10,b/20))||z}else Q=M3L(Q)}else Q=M3L(Q);return Q}; +M3L=function(Q){var z=1,H=g.Mf(Q.aj.experiments,"html5_default_ad_gain");H&&Q.isAd()&&(z=H);var f;if(H=((f=Q.D)==null?void 0:f.audio.L)||Q.dS)Q.rq=1;return Math.min(1,Math.pow(10,-H/20))||z}; +bE=function(Q){var z=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],H=wS(Q.aj)==="TVHTML5_SIMPLY"&&Q.aj.Z.ctheme==="MUSIC";Q.dQ||!g.c6(Q.aj)&&!H||!z.includes(Q.musicVideoType)&&!Q.isExternallyHostedPodcast||(Q.dQ=!0);if(z=g.mW())z=/Starboard\/([0-9]+)/.exec(g.Iu()),z=(z?parseInt(z[1],10):NaN)<10;H=Q.aj;H=(wS(H)==="TVHTML5_CAST"||wS(H)==="TVHTML5"&&(H.Z.cver.startsWith("6.20130725")||H.Z.cver.startsWith("6.20130726")))&&Q.aj.Z.ctheme==="MUSIC";var f;if(f=!Q.dQ)H||(H=Q.aj,H=wS(H)=== +"TVHTML5"&&H.Z.cver.startsWith("7")),f=H;f&&!z&&(z=Q.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",H=(Q.V("cast_prefer_audio_only_for_atv_and_uploads")||Q.V("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&Q.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",z||H||Q.isExternallyHostedPodcast)&&(Q.dQ=!0);return Q.aj.deviceIsAudioOnly||Q.dQ&&Q.aj.Y}; +g.t3J=function(Q){var z;if(!(z=Q.V("html5_enable_sabr_live_captions")&&Q.AZ()&&uE(Q))){var H,f,b;z=((H=Q.playerResponse)==null?void 0:(f=H.playerConfig)==null?void 0:(b=f.compositeVideoConfig)==null?void 0:b.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}return z}; +Dm=function(Q){var z,H,f;return!!((z=Q.playerResponse)==null?0:(H=z.playerConfig)==null?0:(f=H.mediaCommonConfig)==null?0:f.splitScreenEligible)}; +K9=function(Q){var z;return!((z=Q.playerResponse)==null||!z.compositePlayabilityStatus)}; +EHa=function(Q){return isNaN(Q)?0:Math.max((Date.now()-Q)/1E3-30,0)}; +Vt=function(Q){return!(!Q.q0||!Q.aj.Y)&&Q.gp()}; +T_=function(Q){return Q.enablePreroll&&Q.enableServerStitchedDai}; +pSZ=function(Q){return Q.WY&&!Q.N7}; +uE=function(Q){var z=Q.V("html5_enable_sabr_on_drive")&&Q.aj.Ze==="gd";if(Q.kL)return Q.WY&&Q.On("fds",{fds:!0},!0),!1;if(Q.aj.Ze!=="yt"&&!z)return Q.WY&&Q.On("dsvn",{ns:Q.aj.Ze},!0),!1;if(Q.cotn||!Q.Z||Q.Z.isOtf||Q.RL&&!Q.V("html5_enable_sabr_csdai"))return!1;if(Q.V("html5_use_sabr_requests_for_debugging"))return!0;Q.WY&&Q.On("esfw",{usbc:Q.WY,hsu:!!Q.N7},!0);if(Q.WY&&Q.N7)return!0;if(Q.V("html5_remove_client_sabr_determination"))return!1;var H=!Q.Z.AZ&&!Q.w7();z=H&&ki&&Q.V("html5_enable_sabr_vod_streaming_xhr"); +H=H&&!ki&&Q.V("html5_enable_sabr_vod_non_streaming_xhr");var f=lE(Q),b=Q.V("html5_enable_sabr_drm_vod_streaming_xhr")&&ki&&Q.w7()&&!Q.Z.AZ&&(Q.gS==="1"?!1:!0);(z=z||H||f||b)&&!Q.N7&&Q.On("sabr",{loc:"m"},!0);return z&&!!Q.N7}; +lE=function(Q){var z;if(!(z=ki&&Q.AZ()&&Q.w7()&&(Q.gS==="1"?!1:!0)&&Q.V("html5_sabr_live_drm_streaming_xhr"))){z=Q.AZ()&&!Q.w7()&&ki;var H=Q.AZ()&&Q.latencyClass!=="ULTRALOW"&&!Q.isLowLatencyLiveStream&&Q.V("html5_sabr_live_normal_latency_streaming_xhr"),f=Q.isLowLatencyLiveStream&&Q.V("html5_sabr_live_low_latency_streaming_xhr"),b=Q.latencyClass==="ULTRALOW"&&Q.V("html5_sabr_live_ultra_low_latency_streaming_xhr");z=z&&(H||f||b)}H=z;z=Q.enableServerStitchedDai&&H&&Q.V("html5_enable_sabr_ssdai_streaming_xhr"); +H=!Q.enableServerStitchedDai&&H;f=Q.AZ()&&!ki&&Q.V("html5_enable_sabr_live_non_streaming_xhr");Q=ki&&(Q.OZ()||Dm(Q)&&Q.V("html5_enable_sabr_for_lifa_eligible_streams"));return z||H||f||Q}; +g.wr=function(Q){return Q.So&&uE(Q)}; +hKc=function(Q){var z;if(z=!!Q.cotn)z=Q.videoId,z=!!z&&g.NG(z)===1;return z&&!Q.q0}; +g.Rq=function(Q){if(!Q.Z||!Q.B||!Q.D)return!1;var z=Q.Z.Z,H=!!z[Q.B.id]&&FC(z[Q.B.id].Mz.Z);z=!!z[Q.D.id]&&FC(z[Q.D.id].Mz.Z);return(Q.B.itag==="0"||H)&&z}; +Qw=function(Q){return Q.aK?["OK","LIVE_STREAM_OFFLINE"].includes(Q.aK.status):!0}; +LiY=function(Q){return(Q=Q.Lr)&&Q.showError?Q.showError:!1}; +qY=function(Q,z){return Q.V(z)?!0:(Q.fflags||"").includes(z+"=true")}; +nHL=function(Q){return Q.V("html5_heartbeat_iff_heartbeat_params_filled")}; +oNk=function(Q,z){z.inlineMetricEnabled&&(Q.inlineMetricEnabled=!0);z.playback_progress_0s_url&&(Q.hd=new zKu(z));if(z=z.video_masthead_ad_quartile_urls)Q.a5=z.quartile_0_url,Q.IY=z.quartile_25_url,Q.NH=z.quartile_50_url,Q.FA=z.quartile_75_url,Q.uj=z.quartile_100_url,Q.kd=z.quartile_0_urls,Q.iN=z.quartile_25_urls,Q.QJ=z.quartile_50_urls,Q.Cc=z.quartile_75_urls,Q.EE=z.quartile_100_urls}; +OY9=function(Q){var z={};Q=g.n(Q);for(var H=Q.next();!H.done;H=Q.next()){H=H.value;var f=H.split("=");f.length===2?z[f[0]]=f[1]:z[H]=!0}return z}; +jV6=function(Q){if(Q){if(vjA(Q))return Q;Q=yB9(Q);if(vjA(Q,!0))return Q}return""}; +g.gHn=function(Q){return Q.captionsLanguagePreference||Q.aj.captionsLanguagePreference||g.FD(Q,"yt:cc_default_lang")||Q.aj.yE}; +zI=function(Q){return!(!Q.isLivePlayback||!Q.hasProgressBarBoundaries())}; +g.RZ=function(Q){var z;return Q.o_||((z=Q.suggestions)==null?void 0:z[0])||null}; +g.HG=function(Q){return Q.gV&&(Q.V("embeds_enable_pfp_always_unbranded")||Q.aj.rq)}; +fR=function(Q,z){Q.V("html5_log_autoplay_src")&&f9(Q)&&Q.On("apsrc",{src:z})}; +g.bj=function(Q){var z,H;return!!((z=Q.embeddedPlayerConfig)==null?0:(H=z.embeddedPlayerFlags)==null?0:H.enableMusicUx)}; +g.uj=function(Q){var z=Q.C(),H=g.LR(z),f=z.C3;(z.V("embeds_web_enable_iframe_api_send_full_embed_url")||z.V("embeds_web_enable_rcat_validation_in_havs")||z.V("embeds_enable_autoplay_and_visibility_signals"))&&g.Yh(z)&&(f&&(H.thirdParty=Object.assign({},H.thirdParty,{embedUrl:f})),hF9(H,Q));if(f=Q.yl)H.clickTracking={clickTrackingParams:f};f=H.client||{};var b="EMBED",L=aq(Q);L==="leanback"?b="WATCH":z.V("gvi_channel_client_screen")&&L==="profilepage"?b="CHANNEL":Q.WI?b="LIVE_MONITOR":L==="detailpage"? +b="WATCH_FULL_SCREEN":L==="adunit"?b="ADUNIT":L==="sponsorshipsoffer"&&(b="UNKNOWN");f.clientScreen=b;if(z=Q.kidsAppInfo)f.kidsAppInfo=JSON.parse(z);(b=Q.CP)&&!z&&(f.kidsAppInfo={contentSettings:{ageUpMode:ZQn[b]}});if(z=Q.gg)f.unpluggedAppInfo={enableFilterMode:!0};(b=Q.unpluggedFilterModeType)&&!z&&(f.unpluggedAppInfo={filterModeType:Gxn[b]});if(z=Q.Ze)f.unpluggedLocationInfo=z;H.client=f;f=H.request||{};Q.d4&&(f.isPrefetch=!0);if(z=Q.mdxEnvironment)f.mdxEnvironment=z;if(z=Q.mdxControlMode)f.mdxControlMode= +$D6[z];H.request=f;f=H.user||{};if(z=Q.wh)f.credentialTransferTokens=[{token:z,scope:"VIDEO"}];if(z=Q.yE)f.delegatePurchases={oauthToken:z},f.kidsParent={oauthToken:z};H.user=f;if(f=Q.contextParams)H.activePlayers=[{playerContextParams:f}];if(Q=Q.clientScreenNonce)H.clientScreenNonce=Q;return H}; +g.LR=function(Q){var z=g.lA(),H=z.client||{};if(Q.forcedExperiments){var f=Q.forcedExperiments.split(","),b=[];f=g.n(f);for(var L=f.next();!L.done;L=f.next())b.push(Number(L.value));H.experimentIds=b}if(b=Q.homeGroupInfo)H.homeGroupInfo=JSON.parse(b);if(b=Q.getPlayerType())H.playerType=b;if(b=Q.Z.ctheme)H.theme=b;if(b=Q.livingRoomAppMode)H.tvAppInfo=Object.assign({},H.tvAppInfo,{livingRoomAppMode:b});b=Q.deviceYear;Q.V("html5_propagate_device_year")&&b&&(H.tvAppInfo=Object.assign({},H.tvAppInfo,{deviceYear:b})); +if(b=Q.livingRoomPoTokenId)H.tvAppInfo=Object.assign({},H.tvAppInfo,{livingRoomPoTokenId:b});z.client=H;H=z.user||{};Q.enableSafetyMode&&(H=Object.assign({},H,{enableSafetyMode:!0}));Q.pageId&&(H=Object.assign({},H,{onBehalfOfUser:Q.pageId}));z.user=H;H=Q.C3;Q.V("embeds_web_enable_iframe_api_send_full_embed_url")||Q.V("embeds_web_enable_rcat_validation_in_havs")||Q.V("embeds_enable_autoplay_and_visibility_signals")||!H||(z.thirdParty={embedUrl:H});return z}; +J7k=function(Q,z,H){var f=Q.videoId,b=g.uj(Q),L=Q.C(),u={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(Iw()),referer:document.location.toString(),signatureTimestamp:20153};g.DQ();Q.isAutonav&&(u.autonav=!0);g.KF(0,141)&&(u.autonavState=g.KF(0,140)?"STATE_OFF":"STATE_ON");u.autoCaptionsDefaultOn=g.KF(0,66);hM(Q)&&(u.autoplay=!0);L.Y&&Q.cycToken&&(u.cycToken=Q.cycToken);L.enablePrivacyFilter&&(u.enablePrivacyFilter=!0);Q.isFling&&(u.fling=!0);var X=Q.forceAdsUrl;if(X){var v={},y=[];X=X.split(","); +X=g.n(X);for(var q=X.next();!q.done;q=X.next()){q=q.value;var M=q.split("|");M.length!==3||q.includes("=")||(M[0]="breaktype="+M[0],M[1]="offset="+M[1],M[2]="url="+M[2]);q={adtype:"video_ad"};M=g.n(M);for(var C=M.next();!C.done;C=M.next()){var t=g.n(C.value.split("="));C=t.next().value;t=LZu(t);q[C]=t.join("=")}M=q.url;C=q.presetad;t=q.viralresponseurl;var E=Number(q.campaignid);if(q.adtype==="in_display_ad")M&&(v.url=M),C&&(v.presetAd=C),t&&(v.viralAdResponseUrl=t),E&&(v.viralCampaignId=String(E)); +else if(q.adtype==="video_ad"){var G={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(q.offset)||0)}};if(q=ja6[q.breaktype])G.breakType=q;M&&(G.url=M);C&&(G.presetAd=C);t&&(G.viralAdResponseUrl=t);E&&(G.viralCampaignId=String(E));y.push(G)}}u.forceAdParameters={videoAds:y,inDisplayAd:v}}Q.isInlinePlaybackNoAd&&(u.isInlinePlaybackNoAd=!0);Q.isLivingRoomDeeplink&&(u.isLivingRoomDeeplink=!0);v=Q.P_;if(v!=null){v={startWalltime:String(v)};if(y=Q.gt)v.manifestDuration=String(y||14400);u.liveContext= +v}if(Q.mutedAutoplay){u.mutedAutoplay=!0;v=L.getWebPlayerContextConfig();var x,J;(v==null?0:(x=v.embedsHostFlags)==null?0:x.allowMutedAutoplayDurationMode)&&(v==null?0:(J=v.embedsHostFlags)==null?0:J.allowMutedAutoplayDurationMode.includes(Fi9[Q.mutedAutoplayDurationMode]))&&(u.mutedAutoplayDurationMode=Fi9[Q.mutedAutoplayDurationMode])}if(Q.D6?0:Q.m4)u.splay=!0;x=Q.vnd;x===5&&(u.vnd=x);x={};if(J=Q.isMdxPlayback)x.triggeredByMdx=J;if(J=Q.mH)x.skippableAdsSupported=J.split(",").includes("ska");if(y= +Q.Qw){J=Q.uN;v=[];y=g.n(WJZ(y));for(X=y.next();!X.done;X=y.next()){X=X.value;q=X.platform;X={applicationState:X.Xw?"INACTIVE":"ACTIVE",clientFormFactor:xD_[q]||"UNKNOWN_FORM_FACTOR",clientName:KJL[X.dn]||"UNKNOWN_INTERFACE",clientVersion:X.deviceVersion||"",platform:OQJ[q]||"UNKNOWN_PLATFORM"};q={};if(J){M=void 0;try{M=JSON.parse(J)}catch(I){g.ax(I)}M&&(q={params:[{key:"ms",value:M.ms}]},M.advertising_id&&(q.advertisingId=M.advertising_id),M.limit_ad_tracking!==void 0&&M.limit_ad_tracking!==null&& +(q.limitAdTracking=M.limit_ad_tracking),X.osName=M.os_name,X.userAgent=M.user_agent,X.windowHeightPoints=M.window_height_points,X.windowWidthPoints=M.window_width_points)}v.push({adSignalsInfo:q,remoteClient:X})}x.remoteContexts=v}J=Q.sourceContainerPlaylistId;v=Q.serializedMdxMetadata;if(J||v)y={},J&&(y.mdxPlaybackContainerInfo={sourceContainerPlaylistId:J}),v&&(y.serializedMdxMetadata=v),x.mdxPlaybackSourceContext=y;u.mdxContext=x;x=z.width;x>0&&(u.playerWidthPixels=Math.round(x));if(z=z.height)u.playerHeightPixels= +Math.round(z);H!==0&&(u.vis=H);if(H=L.widgetReferrer)u.widgetReferrer=H.substring(0,128);g.O8(L)&&u&&(u.ancestorOrigins=L.ancestorOrigins);Q.defaultActiveSourceVideoId&&(u.compositeVideoContext={defaultActiveSourceVideoId:Q.defaultActiveSourceVideoId});if(L=L.getWebPlayerContextConfig())u.encryptedHostFlags=L.encryptedHostFlags;f={videoId:f,context:b,playbackContext:{contentPlaybackContext:u}};Q.reloadPlaybackParams&&(f.playbackContext.reloadPlaybackContext={reloadPlaybackParams:Q.reloadPlaybackParams}); +Q.contentCheckOk&&(f.contentCheckOk=!0);if(b=Q.clientPlaybackNonce)f.cpn=b;if(b=Q.playerParams)f.params=b;if(b=Q.playlistId)f.playlistId=b;Q.racyCheckOk&&(f.racyCheckOk=!0);b=Q.C();if(u=b.embedConfig)f.serializedThirdPartyEmbedConfig=u;f.captionParams={};u=g.KF(g.DQ(),65);Q.deviceCaptionsOn!=null?f.captionParams.deviceCaptionsOn=Q.deviceCaptionsOn:g.wm(b)&&(f.captionParams.deviceCaptionsOn=u!=null?!u:!1);Q.ZF&&(f.captionParams.deviceCaptionsLangPref=Q.ZF);Q.BX.length?f.captionParams.viewerSelectedCaptionLangs= +Q.BX:g.wm(b)&&(u=g.hK(),u==null?0:u.length)&&(f.captionParams.viewerSelectedCaptionLangs=u);u=Q.fetchType==="onesie"&&Q.V("html5_onesie_attach_po_token");L=Q.fetchType!=="onesie"&&Q.V("html5_non_onesie_attach_po_token");if(u||L)u=Q.C(),u.h$&&(f.serviceIntegrityDimensions={},f.serviceIntegrityDimensions.poToken=u.h$);b.V("fetch_att_independently")&&(f.attestationRequest={omitBotguardData:!0});f.playbackContext||(f.playbackContext={});f.playbackContext.devicePlaybackCapabilities=oH_(Q);f.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding=== +!1&&Q.On("noVp9",{});return f}; +oH_=function(Q){var z=!(Q==null?0:Q.Nf())&&(Q==null?void 0:Q.AZ())&&fF(),H;if(H=Q==null?0:Q.V("html5_report_supports_vp9_encoding")){if(Q==null)H=0;else{H=g.Sn(Q);Q=Q.C().S;var f=bF("243");H=f?MB(H,f,Q,!0)===!0:!1}H=H&&!z}return{supportsVp9Encoding:!!H,supportXhr:ki}}; +IOA=function(Q,z){var H,f,b;return g.B(function(L){if(L.Z==1)return H={context:g.LR(Q.C()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:Q.videoId,cpn:Q.clientPlaybackNonce}}]},f=g.zv(NMY),g.Y(L,g.Tv(z,H,f),2);b=L.B;return L.return(b)})}; +A7L=function(Q,z,H){var f=g.Mf(z.experiments,"bg_vm_reinit_threshold");(!rZ||(0,g.IE)()-rZ>f)&&IOA(Q,H).then(function(b){b&&(b=b.botguardData)&&g.PB(b,z)},function(b){Q.Sm()||(b=NC(b),Q.On("attf",b.details))})}; +S1=function(Q,z){g.h.call(this);this.app=Q;this.state=z}; +vG=function(Q,z,H){Q.state.Z.hasOwnProperty(z)||Xv(Q,z,H);Q.state.Y[z]=function(){return H.apply(Q,g.rc.apply(0,arguments))}; +Q.state.j.add(z)}; +yw=function(Q,z,H){Q.state.Z.hasOwnProperty(z)||Xv(Q,z,H);Q.app.C().Y&&(Q.state.N[z]=function(){return H.apply(Q,g.rc.apply(0,arguments))},Q.state.j.add(z))}; +Xv=function(Q,z,H){Q.state.Z[z]=function(){return H.apply(Q,g.rc.apply(0,arguments))}}; +g.qW=function(Q,z,H){return Q.state.Z[z].apply(Q.state.Z,g.F(H))}; +MW=function(){g.NP.call(this);this.S=new Map}; +CR=function(){g.h.apply(this,arguments);this.element=null;this.j=new Set;this.Y={};this.N={};this.Z={};this.U=new Set;this.L=new MW;this.B=new MW;this.D=new MW;this.S=new MW}; +YD_=function(Q,z,H){typeof Q==="string"&&(Q={mediaContentUrl:Q,startSeconds:z,suggestedQuality:H});a:{if((z=Q.mediaContentUrl)&&(z=/\/([ve]|embed)\/([^#?]+)/.exec(z))&&z[2]){z=z[2];break a}z=null}Q.videoId=z;return tf(Q)}; +tf=function(Q,z,H){if(typeof Q==="string")return{videoId:Q,startSeconds:z,suggestedQuality:H};z={};H=g.n(r7a);for(var f=H.next();!f.done;f=H.next())f=f.value,Q[f]&&(z[f]=Q[f]);return z}; +sa8=function(Q,z,H,f){if(g.kv(Q)&&!Array.isArray(Q)){z="playlist list listType index startSeconds suggestedQuality".split(" ");H={};for(f=0;f32&&f.push("hfr");z.isHdr()&&f.push("hdr");z.primaries==="bt2020"&&f.push("wcg");H.video_quality_features=f}}if(Q=Q.getPlaylistId())H.list=Q;return H}; +Za=function(){EZ.apply(this,arguments)}; +GI=function(Q,z){var H={};if(Q.app.C().wh){Q=g.n(UDv);for(var f=Q.next();!f.done;f=Q.next())f=f.value,z.hasOwnProperty(f)&&(H[f]=z[f]);if(z=H.qoe_cat)Q="",typeof z==="string"&&z.length>0&&(Q=z.split(",").filter(function(b){return c7c.includes(b)}).join(",")),H.qoe_cat=Q; +iQv(H)}else for(Q=g.n(hsA),f=Q.next();!f.done;f=Q.next())f=f.value,z.hasOwnProperty(f)&&(H[f]=z[f]);return H}; +iQv=function(Q){var z=Q.raw_player_response;if(!z){var H=Q.player_response;H&&(z=JSON.parse(H))}delete Q.player_response;delete Q.raw_player_response;if(z){Q.raw_player_response={streamingData:z.streamingData};var f;if((f=z.playbackTracking)==null?0:f.qoeUrl)Q.raw_player_response=Object.assign({},Q.raw_player_response,{playbackTracking:{qoeUrl:z.playbackTracking.qoeUrl}});var b;if((b=z.videoDetails)==null?0:b.videoId)Q.raw_player_response=Object.assign({},Q.raw_player_response,{videoDetails:{videoId:z.videoDetails.videoId}})}}; +$1=function(Q,z,H){var f=Q.app.JM(H);if(!f)return 0;Q=f-Q.app.getCurrentTime(H);return z-Q}; +DD_=function(Q){var z=z===void 0?5:z;return Q?Wi_[Q]||z:z}; +g.j1=function(){Za.apply(this,arguments)}; +Ki9=function(Q){Xv(Q,"getInternalApiInterface",Q.getInternalApiInterface);Xv(Q,"addEventListener",Q.C7);Xv(Q,"removeEventListener",Q.Sxc);Xv(Q,"cueVideoByPlayerVars",Q.sI);Xv(Q,"loadVideoByPlayerVars",Q.SYn);Xv(Q,"preloadVideoByPlayerVars",Q.Z2n);Xv(Q,"getAdState",Q.getAdState);Xv(Q,"sendAbandonmentPing",Q.sendAbandonmentPing);Xv(Q,"setLoopRange",Q.setLoopRange);Xv(Q,"getLoopRange",Q.getLoopRange);Xv(Q,"setAutonavState",Q.setAutonavState);Xv(Q,"seekTo",Q.tH$);Xv(Q,"seekBy",Q.NQh);Xv(Q,"seekToLiveHead", +Q.seekToLiveHead);Xv(Q,"requestSeekToWallTimeSeconds",Q.requestSeekToWallTimeSeconds);Xv(Q,"seekToStreamTime",Q.seekToStreamTime);Xv(Q,"startSeekCsiAction",Q.startSeekCsiAction);Xv(Q,"getStreamTimeOffset",Q.getStreamTimeOffset);Xv(Q,"getVideoData",Q.z5v);Xv(Q,"setInlinePreview",Q.setInlinePreview);Xv(Q,"getAppState",Q.getAppState);Xv(Q,"updateLastActiveTime",Q.updateLastActiveTime);Xv(Q,"setBlackout",Q.setBlackout);Xv(Q,"setUserEngagement",Q.setUserEngagement);Xv(Q,"updateSubtitlesUserSettings",Q.updateSubtitlesUserSettings); +Xv(Q,"getPresentingPlayerType",Q.yb);Xv(Q,"canPlayType",Q.canPlayType);Xv(Q,"updatePlaylist",Q.updatePlaylist);Xv(Q,"updateVideoData",Q.updateVideoData);Xv(Q,"updateEnvironmentData",Q.updateEnvironmentData);Xv(Q,"sendVideoStatsEngageEvent",Q.guj);Xv(Q,"productsInVideoVisibilityUpdated",Q.productsInVideoVisibilityUpdated);Xv(Q,"setSafetyMode",Q.setSafetyMode);Xv(Q,"isAtLiveHead",function(z){return Q.isAtLiveHead(void 0,z)}); +Xv(Q,"getVideoAspectRatio",Q.getVideoAspectRatio);Xv(Q,"getPreferredQuality",Q.getPreferredQuality);Xv(Q,"getPlaybackQualityLabel",Q.getPlaybackQualityLabel);Xv(Q,"setPlaybackQualityRange",Q.PWe);Xv(Q,"onAdUxClicked",Q.onAdUxClicked);Xv(Q,"getFeedbackProductData",Q.getFeedbackProductData);Xv(Q,"getStoryboardFrame",Q.getStoryboardFrame);Xv(Q,"getStoryboardFrameIndex",Q.getStoryboardFrameIndex);Xv(Q,"getStoryboardLevel",Q.getStoryboardLevel);Xv(Q,"getNumberOfStoryboardLevels",Q.getNumberOfStoryboardLevels); +Xv(Q,"getCaptionWindowContainerId",Q.getCaptionWindowContainerId);Xv(Q,"getAvailableQualityLabels",Q.getAvailableQualityLabels);Xv(Q,"addCueRange",Q.addCueRange);Xv(Q,"addUtcCueRange",Q.addUtcCueRange);Xv(Q,"showAirplayPicker",Q.showAirplayPicker);Xv(Q,"dispatchReduxAction",Q.dispatchReduxAction);Xv(Q,"getPlayerResponse",Q.rh5);Xv(Q,"getWatchNextResponse",Q.kv5);Xv(Q,"getHeartbeatResponse",Q.R3);Xv(Q,"getCurrentTime",Q.dE);Xv(Q,"getDuration",Q.vT);Xv(Q,"getPlayerState",Q.getPlayerState);Xv(Q,"getPlayerStateObject", +Q.ov3);Xv(Q,"getVideoLoadedFraction",Q.getVideoLoadedFraction);Xv(Q,"getProgressState",Q.getProgressState);Xv(Q,"getVolume",Q.getVolume);Xv(Q,"setVolume",Q.sH);Xv(Q,"isMuted",Q.isMuted);Xv(Q,"mute",Q.X1);Xv(Q,"unMute",Q.Pt);Xv(Q,"loadModule",Q.loadModule);Xv(Q,"unloadModule",Q.unloadModule);Xv(Q,"getOption",Q.N2);Xv(Q,"getOptions",Q.getOptions);Xv(Q,"setOption",Q.setOption);Xv(Q,"loadVideoById",Q.QL);Xv(Q,"loadVideoByUrl",Q.hq);Xv(Q,"playVideo",Q.E5);Xv(Q,"loadPlaylist",Q.loadPlaylist);Xv(Q,"nextVideo", +Q.nextVideo);Xv(Q,"previousVideo",Q.previousVideo);Xv(Q,"playVideoAt",Q.playVideoAt);Xv(Q,"getDebugText",Q.getDebugText);Xv(Q,"getWebPlayerContextConfig",Q.getWebPlayerContextConfig);Xv(Q,"notifyShortsAdSwipeEvent",Q.notifyShortsAdSwipeEvent);Xv(Q,"getVideoContentRect",Q.getVideoContentRect);Xv(Q,"setSqueezeback",Q.setSqueezeback);Xv(Q,"toggleSubtitlesOn",Q.toggleSubtitlesOn);Xv(Q,"isSubtitlesOn",Q.isSubtitlesOn);Xv(Q,"reportPlaybackIssue",Q.reportPlaybackIssue);Xv(Q,"setAutonav",Q.setAutonav);Xv(Q, +"isNotServable",Q.isNotServable);Xv(Q,"channelSubscribed",Q.channelSubscribed);Xv(Q,"channelUnsubscribed",Q.channelUnsubscribed);Xv(Q,"togglePictureInPicture",Q.togglePictureInPicture);Xv(Q,"supportsGaplessAudio",Q.supportsGaplessAudio);Xv(Q,"supportsGaplessShorts",Q.supportsGaplessShorts);Xv(Q,"enqueueVideoByPlayerVars",function(z){return void Q.enqueueVideoByPlayerVars(z)}); +Xv(Q,"clearQueue",Q.clearQueue);Xv(Q,"getAudioTrack",Q.Jt);Xv(Q,"setAudioTrack",Q.rF3);Xv(Q,"getAvailableAudioTracks",Q.ih);Xv(Q,"getMaxPlaybackQuality",Q.getMaxPlaybackQuality);Xv(Q,"getUserPlaybackQualityPreference",Q.getUserPlaybackQualityPreference);Xv(Q,"getSubtitlesUserSettings",Q.getSubtitlesUserSettings);Xv(Q,"resetSubtitlesUserSettings",Q.resetSubtitlesUserSettings);Xv(Q,"setMinimized",Q.setMinimized);Xv(Q,"setOverlayVisibility",Q.setOverlayVisibility);Xv(Q,"confirmYpcRental",Q.confirmYpcRental); +Xv(Q,"queueNextVideo",Q.queueNextVideo);Xv(Q,"handleExternalCall",Q.handleExternalCall);Xv(Q,"logApiCall",Q.logApiCall);Xv(Q,"isExternalMethodAvailable",Q.isExternalMethodAvailable);Xv(Q,"setScreenLayer",Q.setScreenLayer);Xv(Q,"getCurrentPlaylistSequence",Q.getCurrentPlaylistSequence);Xv(Q,"getPlaylistSequenceForTime",Q.getPlaylistSequenceForTime);Xv(Q,"shouldSendVisibilityState",Q.shouldSendVisibilityState);Xv(Q,"syncVolume",Q.syncVolume);Xv(Q,"highlightSettingsMenuItem",Q.highlightSettingsMenuItem); +Xv(Q,"openSettingsMenuItem",Q.openSettingsMenuItem);Xv(Q,"getEmbeddedPlayerResponse",Q.getEmbeddedPlayerResponse);Xv(Q,"getVisibilityState",Q.getVisibilityState);Xv(Q,"isMutedByMutedAutoplay",Q.isMutedByMutedAutoplay);Xv(Q,"isMutedByEmbedsMutedAutoplay",Q.isMutedByEmbedsMutedAutoplay);Xv(Q,"setGlobalCrop",Q.setGlobalCrop);Xv(Q,"setInternalSize",Q.setInternalSize);Xv(Q,"setFauxFullscreen",Q.setFauxFullscreen);Xv(Q,"setAppFullscreen",Q.setAppFullscreen)}; +x1=function(Q,z,H){Q=g.Fv(Q.xJ(),z);return H?(H.addOnDisposeCallback(Q),null):Q}; +g.OZ=function(Q,z,H){return Q.app.C().Bc?z:g.pi("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:z,SHORTCUT:H})}; +V39=function(Q){Q.xJ().element.setAttribute("aria-live","polite")}; +g.og=function(Q,z){g.j1.call(this,Q,z);Ki9(this);yw(this,"addEventListener",this.IA);yw(this,"removeEventListener",this.ANj);yw(this,"cueVideoByPlayerVars",this.J2);yw(this,"loadVideoByPlayerVars",this.fJm);yw(this,"preloadVideoByPlayerVars",this.wSm);yw(this,"loadVideoById",this.QL);yw(this,"loadVideoByUrl",this.hq);yw(this,"playVideo",this.E5);yw(this,"loadPlaylist",this.loadPlaylist);yw(this,"nextVideo",this.nextVideo);yw(this,"previousVideo",this.previousVideo);yw(this,"playVideoAt",this.playVideoAt); +yw(this,"getVideoData",this.eb);yw(this,"seekBy",this.F2I);yw(this,"seekTo",this.W2n);yw(this,"showControls",this.showControls);yw(this,"hideControls",this.hideControls);yw(this,"cancelPlayback",this.cancelPlayback);yw(this,"getProgressState",this.getProgressState);yw(this,"isInline",this.isInline);yw(this,"setInline",this.setInline);yw(this,"setLoopVideo",this.setLoopVideo);yw(this,"getLoopVideo",this.getLoopVideo);yw(this,"getVideoContentRect",this.getVideoContentRect);yw(this,"getVideoStats",this.Lqj); +yw(this,"getCurrentTime",this.I3);yw(this,"getDuration",this.vT);yw(this,"getPlayerState",this.H3j);yw(this,"getVideoLoadedFraction",this.Bh$);yw(this,"mute",this.X1);yw(this,"unMute",this.Pt);yw(this,"setVolume",this.sH);yw(this,"loadModule",this.loadModule);yw(this,"unloadModule",this.unloadModule);yw(this,"getOption",this.N2);yw(this,"getOptions",this.getOptions);yw(this,"setOption",this.setOption);yw(this,"addCueRange",this.addCueRange);yw(this,"getDebugText",this.getDebugText);yw(this,"getStoryboardFormat", +this.getStoryboardFormat);yw(this,"toggleFullscreen",this.toggleFullscreen);yw(this,"isFullscreen",this.isFullscreen);yw(this,"getPlayerSize",this.getPlayerSize);yw(this,"toggleSubtitles",this.toggleSubtitles);this.app.C().V("embeds_enable_move_set_center_crop_to_public")||yw(this,"setCenterCrop",this.setCenterCrop);yw(this,"setFauxFullscreen",this.setFauxFullscreen);yw(this,"setSizeStyle",this.setSizeStyle);yw(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);yw(this,"handleGlobalKeyUp",this.handleGlobalKeyUp); +P6Z(this)}; +g.Jf=function(Q){Q=Q.xt();var z=Q.Hq.get("endscreen");return z&&z.k7()?!0:Q.SD()}; +g.NW=function(Q,z){Q.getPresentingPlayerType()===3?Q.publish("mdxautoplaycancel"):Q.F$("onAutonavCancelled",z)}; +g.Af=function(Q){var z=Ig(Q.xt());return Q.app.M7&&!Q.isFullscreen()||Q.getPresentingPlayerType()===3&&z&&z.Yr()&&z.bz()||!!Q.getPlaylist()}; +g.Y1=function(Q,z){g.qW(Q,"addEmbedsConversionTrackingParams",[z])}; +g.sZ=function(Q){return(Q=g.rX(Q.xt()))?Q.jc():{}}; +g.dDu=function(Q){Q=(Q=Q.getVideoData())&&Q.B;return!!Q&&!(!Q.audio||!Q.video)&&Q.mimeType!=="application/x-mpegURL"}; +g.BG=function(Q,z,H){Q=Q.Un().element;var f=Xk(Q.children,function(b){b=Number(b.getAttribute("data-layer"));return H-b||1}); +f<0&&(f=-(f+1));Sz(Q,z,f);z.setAttribute("data-layer",String(H))}; +g.PG=function(Q){var z=Q.C();if(!z.zx)return!1;var H=Q.getVideoData();if(!H||Q.getPresentingPlayerType()===3)return!1;var f=(!H.isLiveDefaultBroadcast||z.V("allow_poltergust_autoplay"))&&!zI(H);f=H.isLivePlayback&&(!z.V("allow_live_autoplay")||!f);var b=H.isLivePlayback&&z.V("allow_live_autoplay_on_mweb");Q=Q.getPlaylist();Q=!!Q&&Q.Yr();var L=H.mq&&H.mq.playerOverlays||null;L=!!(L&&L.playerOverlayRenderer&&L.playerOverlayRenderer.autoplay);L=H.gV&&L;return!H.ypcPreview&&(!f||b)&&!g.TY(H.De,"ypc")&& +!Q&&(!g.O8(z)||L)}; +mDa=function(Q){Q=Q.app.X$();if(!Q)return!1;var z=Q.getVideoData();if(!z.B||!z.B.video||z.B.video.Z<1080||z.FJ)return!1;var H=/^qsa/.test(z.clientPlaybackNonce),f="r";z.B.id.indexOf(";")>=0&&(H=/^[a-p]/.test(z.clientPlaybackNonce),f="x");return H?(Q.On("iqss",{trigger:f},!0),!0):!1}; +ag=function(){hq.apply(this,arguments);this.requestHeaders={}}; +cG=function(){UZ||(UZ=new ag);return UZ}; +ij=function(Q,z){z?Q.requestHeaders.Authorization="Bearer "+z:delete Q.requestHeaders.Authorization}; +g.hf=function(Q){var z=this;this.HI=Q;this.Po={fL5:function(){return z.HI}}}; +g.WG=function(Q,z,H,f){f=f===void 0?!1:f;g.tB.call(this,z);var b=this;this.K=Q;this.De=f;this.N=new g.Pt(this);this.Ze=new g.fp(this,H,!0,void 0,void 0,function(){b.fu()}); +g.W(this,this.N);g.W(this,this.Ze)}; +Da=function(Q){var z=Q.K.getRootNode();return Q.K.V("web_watch_pip")||Q.K.V("web_shorts_pip")?Dz(z):document}; +wSY=function(Q){Q.B&&(document.activeElement&&g.vx(Q.element,document.activeElement)&&Q.B.focus(),Q.B.setAttribute("aria-expanded","false"),Q.B=void 0);g.YQ(Q.N);Q.U=void 0}; +KR=function(Q,z,H){Q.A9()?Q.fH():Q.ir(z,H)}; +Vw=function(Q,z,H,f){f=new g.m({G:"div",lT:["ytp-linked-account-popup-button"],BI:f,T:{role:"button",tabindex:"0"}});z=new g.m({G:"div",J:"ytp-linked-account-popup",T:{role:"dialog","aria-modal":"true",tabindex:"-1"},W:[{G:"div",J:"ytp-linked-account-popup-title",BI:z},{G:"div",J:"ytp-linked-account-popup-description",BI:H},{G:"div",J:"ytp-linked-account-popup-buttons",W:[f]}]});g.WG.call(this,Q,{G:"div",J:"ytp-linked-account-popup-container",W:[z]},100);var b=this;this.dialog=z;g.W(this,this.dialog); +f.listen("click",function(){b.fH()}); +g.W(this,f);g.BG(this.K,this.element,4);this.hide()}; +g.mh=function(Q,z,H,f){g.tB.call(this,Q);this.priority=z;H&&g.dX(this,H);f&&this.UV(f)}; +g.wX=function(Q,z,H,f){Q=Q===void 0?{}:Q;z=z===void 0?[]:z;H=H===void 0?!1:H;f=f===void 0?!1:f;z.push("ytp-menuitem");var b=Q;"role"in b||(b.role="menuitem");H||(b=Q,"tabindex"in b||(b.tabindex="0"));Q={G:H?"a":"div",lT:z,T:Q,W:[{G:"div",J:"ytp-menuitem-icon",BI:"{{icon}}"},{G:"div",J:"ytp-menuitem-label",BI:"{{label}}"},{G:"div",J:"ytp-menuitem-content",BI:"{{content}}"}]};f&&Q.W.push({G:"div",J:"ytp-menuitem-secondary-icon",BI:"{{secondaryIcon}}"});return Q}; +g.dX=function(Q,z){Q.updateValue("label",z)}; +k1=function(Q){g.mh.call(this,g.wX({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var z=this;this.K=Q;this.B=this.Z=!1;this.kt=Q.S0();Q.createServerVe(this.element,this,!0);this.X(this.K,"settingsMenuVisibilityChanged",function(H){z.pH(H)}); +this.X(this.K,"videodatachange",this.D);this.listen("click",this.onClick);this.D()}; +TI=function(Q){return Q?g.na(Q):""}; +e1=function(Q){g.h.call(this);this.api=Q}; +lj=function(Q){e1.call(this,Q);var z=this;Xv(Q,"setAccountLinkState",function(H){z.setAccountLinkState(H)}); +Xv(Q,"updateAccountLinkingConfig",function(H){z.updateAccountLinkingConfig(H)}); +Q.addEventListener("videodatachange",function(H,f){z.onVideoDataChange(f)}); +Q.addEventListener("settingsMenuInitialized",function(){z.menuItem=new k1(z.api);g.W(z,z.menuItem)})}; +kxa=function(Q){this.api=Q;this.Z={}}; +Rg=function(Q,z,H,f){z in Q.Z||(H=new g.fi(H,f,{id:z,priority:2,namespace:"appad"}),Q.api.UZ([H],1),Q.Z[z]=H)}; +QW=function(Q){e1.call(this,Q);var z=this;this.events=new g.Pt(this);g.W(this,this.events);this.Z=new kxa(this.api);this.events.X(this.api,"legacyadtrackingpingreset",function(){z.Z.Z={}}); +this.events.X(this.api,"legacyadtrackingpingchange",function(H){var f=z.Z;Rg(f,"part2viewed",1,0x8000000000000);Rg(f,"engagedview",Math.max(1,H.Xa*1E3),0x8000000000000);if(!H.isLivePlayback){var b=H.lengthSeconds*1E3;f9(H)&&f.api.V("html5_shorts_gapless_ads_duration_fix")&&(b=f.api.getProgressState().seekableEnd*1E3-H.lD);Rg(f,"videoplaytime25",b*.25,b);Rg(f,"videoplaytime50",b*.5,b);Rg(f,"videoplaytime75",b*.75,b);Rg(f,"videoplaytime100",b,0x8000000000000);Rg(f,"conversionview",b,0x8000000000000); +Rg(f,"videoplaybackstart",1,b);Rg(f,"videoplayback2s",2E3,b);Rg(f,"videoplayback10s",1E4,b)}}); +this.events.X(this.api,g.Li("appad"),this.B);this.events.X(this.api,g.uc("appad"),this.B)}; +RsL=function(Q,z,H){if(!(H in z))return!1;z=z[H];Array.isArray(z)||(z=[z]);z=g.n(z);for(H=z.next();!H.done;H=z.next()){H=H.value;var f={CPN:Q.api.getVideoData().clientPlaybackNonce};H=g.rN(H,f);f=void 0;f=f===void 0?!1:f;(f=T3(eo(H,TMJ),H,f,"Active View 3rd Party Integration URL"))||(f=void 0,f=f===void 0?!1:f,f=T3(eo(H,es9),H,f,"Google/YouTube Brand Lift URL"));f||(f=void 0,f=f===void 0?!1:f,f=T3(eo(H,lOp),H,f,"Nielsen OCR URL"));g.Dg(H,void 0,f)}return!0}; +zG=function(Q,z){QAY(Q,z).then(function(H){g.Dg(z,void 0,void 0,H)})}; +HN=function(Q,z){z.forEach(function(H){zG(Q,H)})}; +QAY=function(Q,z){return g.oT(Q.api.C())&&Mn(z)&&qn(z)?g.HV(Q.api.C(),g.W7(Q.api.getVideoData())).then(function(H){var f;H&&(f={Authorization:"Bearer "+H});return f},void 0):P2()}; +z6A=function(Q){e1.call(this,Q);this.events=new g.Pt(Q);g.W(this,this.events);this.events.X(Q,"videoready",function(z){if(Q.getPresentingPlayerType()===1){var H,f,b={playerDebugData:{pmlSignal:!!((H=z.getPlayerResponse())==null?0:(f=H.adPlacements)==null?0:f.some(function(L){var u;return L==null?void 0:(u=L.adPlacementRenderer)==null?void 0:u.renderer})), +contentCpn:z.clientPlaybackNonce}};g.qV("adsClientStateChange",b)}})}; +fK=function(Q){g.m.call(this,{G:"button",lT:["ytp-button"],T:{title:"{{title}}","aria-label":"{{label}}","data-priority":"2","data-tooltip-target-id":"ytp-autonav-toggle-button"},W:[{G:"div",J:"ytp-autonav-toggle-button-container",W:[{G:"div",J:"ytp-autonav-toggle-button",T:{"aria-checked":"true"}}]}]});this.K=Q;this.B=[];this.Z=!1;this.isChecked=!0;Q.createClientVe(this.element,this,113681);this.X(Q,"presentingplayerstatechange",this.c_);this.listen("click",this.onClick);this.K.C().V("web_player_autonav_toggle_always_listen")&& +HE9(this);x1(Q,this.element,this);this.c_()}; +HE9=function(Q){Q.B.push(Q.X(Q.K,"videodatachange",Q.c_));Q.B.push(Q.X(Q.K,"videoplayerreset",Q.c_));Q.B.push(Q.X(Q.K,"onPlaylistUpdate",Q.c_));Q.B.push(Q.X(Q.K,"autonavchange",Q.Wh))}; +fJY=function(Q){Q.isChecked=Q.isChecked;Q.Mc("ytp-autonav-toggle-button").setAttribute("aria-checked",String(Q.isChecked));var z=Q.isChecked?"Autoplay is on":"Autoplay is off";Q.updateValue("title",z);Q.updateValue("label",z);Q.K.UX()}; +bE6=function(Q){return Q.K.C().V("web_player_autonav_use_server_provided_state")&&ew(Q.Iq())}; +LNJ=function(Q){e1.call(this,Q);var z=this;this.events=new g.Pt(Q);g.W(this,this.events);this.events.X(Q,"standardControlsInitialized",function(){var H=new fK(Q);g.W(z,H);Q.GJ(H,"RIGHT_CONTROLS_LEFT")})}; +bo=function(Q,z){g.mh.call(this,g.wX({role:"menuitemcheckbox","aria-checked":"false"}),z,Q,{G:"div",J:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; +LK=function(Q,z){Q.checked=z;Q.element.setAttribute("aria-checked",String(Q.checked))}; +u_n=function(Q){var z=!Q.C().Ef&&Q.getPresentingPlayerType()!==3;return Q.isFullscreen()||z}; +g.uo=function(Q,z,H,f){var b=Q.currentTarget;if((H===void 0||!H)&&g.oQ(Q))return Q.preventDefault(),!0;z.pauseVideo();Q=b.getAttribute("href");g.Kp(Q,f,!0);return!1}; +g.Sf=function(Q,z,H){if(Vq(z.C())&&z.getPresentingPlayerType()!==2){if(g.oQ(H))return z.isFullscreen()&&!z.C().externalFullscreen&&z.toggleFullscreen(),H.preventDefault(),!0}else{var f=g.oQ(H);f&&z.pauseVideo();g.Kp(Q,void 0,!0);f&&(g.V_(Q),H.preventDefault())}return!1}; +XBA=function(){var Q=SWa.includes("en")?{G:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",w4:!0,T:{d:"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z", +fill:"#fff"}}]}:{G:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",w4:!0,T:{d:"M11,11 C9.9,11 9,11.9 9,13 L9,23 C9,24.1 9.9,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M11,17 L14,17 L14,19 L11,19 L11,17 L11,17 Z M20,23 L11,23 L11,21 L20,21 L20,23 L20,23 Z M25,23 L22,23 L22,21 L25,21 L25,23 L25,23 Z M25,19 L16,19 L16,17 L25,17 L25,19 L25,19 Z",fill:"#fff"}}]};Q.J="ytp-subtitles-button-icon";return Q}; +X1=function(){return{G:"div",J:"ytp-spinner-container",W:[{G:"div",J:"ytp-spinner-rotator",W:[{G:"div",J:"ytp-spinner-left",W:[{G:"div",J:"ytp-spinner-circle"}]},{G:"div",J:"ytp-spinner-right",W:[{G:"div",J:"ytp-spinner-circle"}]}]}]}}; +vN=function(Q){if(document.createRange){var z=document.createRange();z&&(z.selectNodeContents(Q),Q=window.getSelection())&&(Q.removeAllRanges(),Q.addRange(z))}}; +MF=function(Q){var z=Q.V("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";bo.call(this,z,g.yW.cH);var H=this;this.K=Q;this.Z=!1;this.B=new g.lp(function(){g.yM(H.element,"ytp-menuitem-highlighted")},0); +this.kt=Q.S0();this.setIcon({G:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{G:"path",T:{d:"M21 7v10H3V7h18m1-1H2v12h20V6zM11.5 2v3h1V2h-1zm1 17h-1v3h1v-3zM3.79 3 6 5.21l.71-.71L4.5 2.29 3.79 3zm2.92 16.5L6 18.79 3.79 21l.71.71 2.21-2.21zM19.5 2.29 17.29 4.5l.71.71L20.21 3l-.71-.71zm0 19.42.71-.71L18 18.79l-.71.71 2.21 2.21z",fill:"white"}}]});this.subscribe("select",this.L,this);this.listen(qF,this.D);g.W(this,this.B)}; +CK=function(Q){e1.call(this,Q);var z=this;this.Z=!1;Q.addEventListener("settingsMenuInitialized",function(){vA9(z)}); +Q.addEventListener("highlightSettingsMenu",function(H){vA9(z);var f=z.menuItem;H==="menu_item_cinematic_lighting"&&(g.X9(f.element,"ytp-menuitem-highlighted"),g.X9(f.element,"ytp-menuitem-highlight-transition-enabled"),f.B.start())}); +Xv(Q,"updateCinematicSettings",function(H){z.updateCinematicSettings(H)})}; +vA9=function(Q){Q.menuItem||(Q.menuItem=new MF(Q.api),g.W(Q,Q.menuItem),Q.menuItem.Jh(Q.Z))}; +tv=function(Q){e1.call(this,Q);var z=this;this.events=new g.Pt(Q);g.W(this,this.events);this.events.X(Q,"applicationvideodatachange",function(H,f){z.nw(H,f)})}; +EJ=function(Q){e1.call(this,Q);this.events=new g.Pt(Q);g.W(this,this.events);Xv(Q,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));Xv(Q,"setCreatorEndscreenHideButton",this.Z.bind(this))}; +pK=function(Q,z,H,f){bo.call(this,"Stable Volume",g.yW.yU);g.X9(this.element,"ytp-drc-menu-item");this.kt=Q.S0();this.D=z;this.Z=H;this.hasDrcAudioTrack=f;Q.addEventListener("videodatachange",this.B.bind(this));Q.V("mta_drc_mutual_exclusion_removal")&&this.X(Q,"onPlaybackAudioChange",this.B);Q=this.Z()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());this.setIcon({G:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{G:"path",T:{d:"M7 13H5v-2h2v2zm3-4H8v6h2V9zm3-3h-2v12h2V6zm3 2h-2v8h2V8zm3 2h-2v4h2v-4zm-7-7c-4.96 0-9 4.04-9 9s4.04 9 9 9 9-4.04 9-9-4.04-9-9-9m0-1c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2z", +fill:"white"}}]});this.subscribe("select",this.L,this);LK(this,Q);this.kt.md(this)}; +nK=function(Q){e1.call(this,Q);var z=this;this.events=new g.Pt(Q);g.W(this,this.events);Q.V("html5_show_drc_toggle")&&Q.addEventListener("settingsMenuInitialized",function(){z.menuItem||(z.menuItem=new pK(z.api,z.setDrcUserPreference.bind(z),z.getDrcUserPreference.bind(z),z.B.bind(z)),g.W(z,z.menuItem))}); +Xv(this.api,"setDrcUserPreference",function(f){z.setDrcUserPreference(f)}); +Xv(this.api,"getDrcUserPreference",function(){return z.getDrcUserPreference()}); +Xv(this.api,"hasDrcAudioTrack",function(){return z.B()}); +var H;this.Z=(H=g.a4("yt-player-drc-pref"))!=null?H:1;this.updateEnvironmentData()}; +gz=function(Q){e1.call(this,Q);var z=this;this.Z={};this.events=new g.Pt(Q);g.W(this,this.events);this.events.X(Q,"videodatachange",function(){z.onVideoDataChange()}); +this.events.X(Q,g.Li("embargo"),function(H){z.api.C4(!0);var f,b=(f=z.Z[H.id])!=null?f:[];f=g.n(b);for(b=f.next();!b.done;b=f.next()){var L=b.value;z.api.hideControls();z.api.VN("auth",2,"This video isn't available in your current playback area",Oh({embargoed:1,id:H.id,idx:H.B,start:H.start}));b=void 0;(L=(b=L.embargo)==null?void 0:b.onTrigger)&&z.api.F$("innertubeCommand",L)}})}; +yKJ=function(Q,z){var H;return(H=z.onEnter)==null?void 0:H.some(Q.B)}; +qWY=function(Q,z){z=g.n(z);for(var H=z.next();!H.done;H=z.next()){H=H.value;var f=void 0,b=Number((f=H.playbackPosition)==null?void 0:f.utcTimeMillis)/1E3,L=void 0;f=b+Number((L=H.duration)==null?void 0:L.seconds);L="embargo_"+b;Q.api.addUtcCueRange(L,b,f,"embargo",!1);H.onEnter&&(Q.Z[L]=H.onEnter.filter(Q.B))}}; +Z_=function(Q){e1.call(this,Q);var z=this;this.Z=[];this.events=new g.Pt(Q);g.W(this,this.events);Xv(Q,"addEmbedsConversionTrackingParams",function(H){z.api.C().mZ&&z.addEmbedsConversionTrackingParams(H)}); +this.events.X(Q,"veClickLogged",function(H){z.api.hasVe(H)&&(H=S5(H.visualElement.getAsJspb(),2),z.Z.push(H))})}; +MJk=function(Q){e1.call(this,Q);Xv(Q,"isEmbedsShortsMode",function(){return Q.isEmbedsShortsMode()})}; +CML=function(Q){e1.call(this,Q);var z=this;this.events=new g.Pt(Q);g.W(this,this.events);this.events.X(Q,"initialvideodatacreated",function(H){OW(xA(),16623);z.Z=g.Jl();var f=Q.C().C2&&!H.D6;if(iE(H)&&f){OW(xA(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(H.getWatchNextResponse()){var b,L=(b=H.getWatchNextResponse())==null?void 0:b.trackingParams;L&&JK(L)}if(H.getPlayerResponse()){var u;(H=(u=H.getPlayerResponse())==null?void 0:u.trackingParams)&&JK(H)}}else OW(xA(), +32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),H.getEmbeddedPlayerResponse()&&(u=(L=H.getEmbeddedPlayerResponse())==null?void 0:L.trackingParams)&&JK(u)}); +this.events.X(Q,"loadvideo",function(){OW(xA(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:z.Z})}); +this.events.X(Q,"cuevideo",function(){OW(xA(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:z.Z})}); +this.events.X(Q,"largeplaybuttonclicked",function(H){OW(xA(),27240,H.visualElement)}); +this.events.X(Q,"playlistnextbuttonclicked",function(H){OW(xA(),27240,H.visualElement)}); +this.events.X(Q,"playlistprevbuttonclicked",function(H){OW(xA(),27240,H.visualElement)}); +this.events.X(Q,"playlistautonextvideo",function(){OW(xA(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; +GG=function(Q,z){g.h.call(this);var H=this;this.Z=null;this.L=z;z=[];for(var f=0;f<=100;f++)z.push(f/100);z={threshold:z,trackVisibility:!0,delay:1E3};(this.B=window.IntersectionObserver?new IntersectionObserver(function(b){b=b[b.length-1];typeof b.isVisible==="undefined"?document.visibilityState==="visible"&&b.isIntersecting&&b.intersectionRatio>0?H.Z=b.intersectionRatio:document.visibilityState==="hidden"?H.Z=0:H.Z=null:H.Z=b.isVisible?b.intersectionRatio:0;typeof H.L==="function"&&H.L(H.Z)},z): +null)&&this.B.observe(Q)}; +EAJ=function(Q){e1.call(this,Q);var z=this;this.events=new g.Pt(Q);g.W(this,this.events);this.events.X(Q,"applicationInitialized",function(){tJZ(z)})}; +tJZ=function(Q){var z=Q.api.getRootNode(),H=z;if(!Q.api.V("embeds_emc3ds_inview_ks")){var f;H=Q.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((f=z.parentElement)==null?void 0:f.parentElement)||z:z}Q.Z=new GG(H,function(b){b!=null&&(Q.api.C().Uu=b,Q.api.C().gt="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); +g.W(Q,Q.Z);Q.events.X(Q.api,"videoStatsPingCreated",function(b){var L=Q.Z;L=L.Z==null?null:Math.round(L.Z*100)/100;b.inview=L!=null?L:void 0;L=Q.api.getPlayerSize();if(L.height>0&&L.width>0){L=[Math.round(L.width),Math.round(L.height)];var u=g.mD();u>1&&L.push(u);L=L.join(":")}else L=void 0;b.size=L})}; +pBL=function(Q){var z;return((z=((Q==null?void 0:Q.messageRenderers)||[]).find(function(H){return!!H.timeCounterRenderer}))==null?void 0:z.timeCounterRenderer)||null}; +$n=function(Q){g.m.call(this,{G:"div",lT:["ytp-player-content","ytp-iv-player-content"],W:[{G:"div",J:"ytp-free-preview-countdown-timer",W:[{G:"span",BI:"{{label}}"},{G:"span",J:"ytp-free-preview-countdown-timer-separator",BI:"\u2022"},{G:"span",BI:"{{duration}}"}]}]});this.api=Q;this.Z=null;this.L=this.B=0;this.X(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; +gAk=function(Q,z){Q.Z||(Q.B=z,Q.L=(0,g.IE)(),Q.Z=new g.kW(function(){nAL(Q)},null),nAL(Q))}; +nAL=function(Q){var z=Math,H=z.round,f=Math.min((0,g.IE)()-Q.L,Q.B);z=H.call(z,(Q.B-f)/1E3);Q.updateValue("duration",nE({seconds:z}));z<=0&&Q.Z?jf(Q):Q.Z&&Q.Z.start()}; +jf=function(Q){Q.Z&&(Q.Z.dispose(),Q.Z=null)}; +ZE6=function(Q){e1.call(this,Q);var z=this;this.events=new g.Pt(Q);g.W(this,this.events);this.events.X(Q,"basechromeinitialized",function(){z.Z=new $n(Q);g.W(z,z.Z);g.BG(Q,z.Z.element,4);z.Z.hide()})}; +F1=function(Q){g.m.call(this,{G:"button",lT:["ytp-fullerscreen-edu-button","ytp-button"],W:[{G:"div",lT:["ytp-fullerscreen-edu-text"],BI:"Scroll for details"},{G:"div",lT:["ytp-fullerscreen-edu-chevron"],W:[{G:"svg",T:{height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{G:"path",T:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],T:{"data-priority":"1"}});this.Yv=Q;this.Z=new g.fp(this,250,void 0,100);this.L=this.B=!1;Q.createClientVe(this.element,this,61214);g.W(this, +this.Z);this.X(Q,"fullscreentoggled",this.Jh);this.X(Q,"presentingplayerstatechange",this.Jh);this.listen("click",this.onClick);this.Jh()}; +xn=function(Q){e1.call(this,Q);var z=this;this.events=new g.Pt(Q);g.W(this,this.events);Xv(this.api,"updateFullerscreenEduButtonSubtleModeState",function(f){z.updateFullerscreenEduButtonSubtleModeState(f)}); +Xv(this.api,"updateFullerscreenEduButtonVisibility",function(f){z.updateFullerscreenEduButtonVisibility(f)}); +var H=Q.C();Q.V("external_fullscreen_with_edu")&&H.externalFullscreen&&Vq(H)&&H.controlsType==="1"&&this.events.X(Q,"standardControlsInitialized",function(){z.Z=new F1(Q);g.W(z,z.Z);Q.GJ(z.Z)})}; +G09=function(Q){g.m.call(this,{G:"div",J:"ytp-gated-actions-overlay",W:[{G:"div",J:"ytp-gated-actions-overlay-background",W:[{G:"div",J:"ytp-gated-actions-overlay-background-overlay"}]},{G:"button",lT:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],T:{"aria-label":"Close"},W:[g.Fp()]},{G:"div",J:"ytp-gated-actions-overlay-bar",W:[{G:"div",J:"ytp-gated-actions-overlay-text-container",W:[{G:"div",J:"ytp-gated-actions-overlay-title",BI:"{{title}}"},{G:"div",J:"ytp-gated-actions-overlay-subtitle", +BI:"{{subtitle}}"}]},{G:"div",J:"ytp-gated-actions-overlay-button-container"}]}]});var z=this;this.api=Q;this.background=this.Mc("ytp-gated-actions-overlay-background");this.B=this.Mc("ytp-gated-actions-overlay-button-container");this.Z=[];this.X(this.Mc("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){z.api.F$("onCloseMiniplayer")}); +this.hide()}; +jAZ=function(Q,z){var H=0;H=0;for(var f={};H +b&&(b=X.width,L="url("+X.url+")")}H.background.style.backgroundImage=L;jAZ(H,f.actionButtons||[]);H.show()}else H.hide()}); +g.BG(this.api,this.Z.element,4)}; +OJ=function(Q){e1.call(this,Q);var z=this;yw(this.api,"getSphericalProperties",function(){return z.getSphericalProperties()}); +yw(this.api,"setSphericalProperties",function(){z.setSphericalProperties.apply(z,g.F(g.rc.apply(0,arguments)))}); +vG(this.api,"getSphericalProperties",function(){return z.api.getPresentingPlayerType()===2?{}:z.getSphericalProperties()}); +vG(this.api,"setSphericalProperties",function(){var H=g.rc.apply(0,arguments);z.api.getPresentingPlayerType()!==2&&z.setSphericalProperties.apply(z,g.F(H))})}; +oM=function(Q){e1.call(this,Q);Xv(Q,"createClientVe",this.createClientVe.bind(this));Xv(Q,"createServerVe",this.createServerVe.bind(this));Xv(Q,"destroyVe",this.destroyVe.bind(this));Xv(Q,"hasVe",this.hasVe.bind(this));Xv(Q,"logClick",this.logClick.bind(this));Xv(Q,"logVisibility",this.logVisibility.bind(this));Xv(Q,"setTrackingParams",this.setTrackingParams.bind(this))}; +Jv=function(Q,z,H,f){function b(u){var X=!(u.status!==204&&u.status!==200&&!u.response),v;u={succ:""+ +X,rc:u.status,lb:((v=u.response)==null?void 0:v.byteLength)||0,rt:((0,g.IE)()-L).toFixed(),shost:g.id(Q),trigger:z};x1Y(u,Q);H&&H(u);f&&!X&&f(new oj("pathprobe.net",u))} +var L=(0,g.IE)();g.Nn(Q,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:b,onTimeout:b})}; +x1Y=function(Q,z){var H;((H=window.performance)==null?0:H.getEntriesByName)&&(z=performance.getEntriesByName(z))&&z.length&&(z=z[0],Q.pedns=(z.domainLookupEnd-z.startTime).toFixed(),Q.pecon=(z.connectEnd-z.domainLookupEnd).toFixed(),Q.perqs=(z.requestStart-z.connectEnd).toFixed(),OEc&&(Q.perqsa=z.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; +NF=function(Q,z){this.L5=Q;this.policy=z;this.playbackRate=1}; +oAn=function(Q,z){var H=Math.min(2.5,E8(Q.L5));Q=IM(Q);return z-H*Q}; +Av=function(Q,z,H,f,b){b=b===void 0?!1:b;if(Q.policy.vN)return Math.ceil(Q.policy.vN*z);Q.policy.B5&&(f=Math.abs(f));f/=Q.playbackRate;var L=1/gm(Q.L5);H=Math.max(.9*(f-3),E8(Q.L5)+Q.L5.B.Z*L)/L*.8/(z+H);H=Math.min(H,f);Q.policy.fZ>0&&b&&(H=Math.max(H,Q.policy.fZ));return JK9(Q,H,z)}; +JK9=function(Q,z,H){return Math.ceil(Math.max(Math.max(Q.policy.rz,Q.policy.Ss*H),Math.min(Math.min(Q.policy.En,31*H),Math.ceil(z*H))))||Q.policy.rz}; +NZ8=function(Q,z,H){H=Av(Q,z.Z.info.oi,H.Z.info.oi,0);var f=E8(Q.L5)+H/gm(Q.L5);return Math.max(f,f+Q.policy.TK-H/z.Z.info.oi)}; +IM=function(Q){return gm(Q.L5,!Q.policy.W7,Q.policy.l5)}; +Yn=function(Q){return IM(Q)/Q.playbackRate}; +rz=function(Q,z,H){var f=Q.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],b=Q.policy.playbackStartPolicy.startMinReadaheadPolicy||[];Q=Infinity;z=g.n(z&&f.length>0?f:b);for(f=z.next();!f.done;f=z.next())f=f.value,b=f.minReadaheadMs||0,H<(f.minBandwidthBytesPerSec||0)||Q>b&&(Q=b);return Q0&&(this.B=H.rp)}; +rKc=function(Q,z,H,f,b){if(!f.info.S){if(H.length===0)H.push(f);else{var L;(Q=(L=H.pop())==null?void 0:g.eA(L,f))?H.push(Q):H.push(f)}return b}var u;(H=(u=H.pop())==null?void 0:g.eA(u,f))||(H=f);if(Q.policy.p5&&H.info.B)return Q.logger&&Q.logger({incompleteSegment:H.info.aq()}),b;u=Q.Ec(H);f=u.formatId;b=u.Ah;H=u.clipId;L=u.Rp;u=u.startTimeMs;if(!Q.policy.j2&&Q.policy.B&&Q.J7){var X=BN(Q.J7,H);u+=X}f={clipId:H,formatId:f,startTimeMs:u,durationMs:L,t9:b,Rz:b};b=IJY(z,f.startTimeMs);(H=b>=0?z[b]:null)&& +AKc(Q,H,f)?f=H:(b+=1,z.splice(b,0,f));H=0;for(L=b+1;L=y+u.B?u=!0:q+u.B=0?Q:-Q-2}; +sA6=function(Q,z){if(Q.nH){var H=Q.nH.N4();if(H.length!==0){if(Q.L&&z){var f=Q.L,b=f.info.D;!X$(H,b)&&f.info.N>0&&(0,g.IE)()-Q.j<5E3&&(Q.logger&&Q.logger({dend:f.info.aq()}),H=F58(H,b,b+.01))}Q.policy.ax&&Q.logger&&Q.logger({cbri:""+Q.Z});f=[];for(var L=b=0;b=u){var q=0;if(Q.J7){var M=PN(Q.J7,v*1E3);M&&(q=M.hB/1E3)}M=Object.assign({},Q.ue[L]);var C=Q.n3.L.get(Fw(Q.ue[L].formatId)), +t=Math.max(v,u);u=C.index.EX(t+Q.B/1E3-q);v=C.index.getStartTime(u)+q;var E=u+ +(Math.abs(v-t)>Q.B/1E3);t=E+Q.D;E=(C.index.getStartTime(E)+q)*1E3;L!==Q.Z||z?(M.t9=t,M.startTimeMs=E):(Q.logger&&Q.logger({pEvict:"1",og:M.startTimeMs,adj:v*1E3}),M.t9=u+Q.D,M.startTimeMs=v*1E3);u=void 0;v=((u=Q.L)==null?void 0:u.info.duration)||11;L===Q.Z&&XQ.B/1E3);u=v+Q.D;q=(C.index.r0(v)+q)*1E3;M.Rz=u;M.durationMs=q-M.startTimeMs;M.t9<=M.Rz&&f.push(M)}yQ.B)return!1;if(YWJ(Q,z.formatId,H.formatId))return z.durationMs=Math.max(f,b)-z.startTimeMs,z.Rz=Math.max(z.Rz,H.Rz),!0;if(Math.abs(z.startTimeMs-H.startTimeMs)<=Q.B){if(z.durationMs>H.durationMs+Q.B){Q=z.formatId;var L=z.t9,u=z.Rz;z.formatId=H.formatId;z.durationMs=H.durationMs;z.t9=H.t9;z.Rz=H.Rz;H.formatId=Q;H.startTimeMs=b;H.durationMs=f-b;H.t9=L;H.Rz=u;return!1}z.formatId=H.formatId;return!0}f> +H.startTimeMs&&(z.durationMs=H.startTimeMs-z.startTimeMs,z.clipId===H.clipId&&(z.Rz=H.t9-1));return!1}; +YWJ=function(Q,z,H){return z.itag!==H.itag||z.xtags!==H.xtags?!1:Q.n3.AZ||z.lmt===H.lmt}; +aJA=function(Q,z,H){if(Q.logger){for(var f=[],b=0;b=0&&hv(Q.audioTrack,Q.Z)>=0&&L?((Q.videoTrack.S||Q.audioTrack.S)&&Q.xv.On("iterativeSeeking",{status:"done",count:Q.seekCount}),Q.videoTrack.S=!1,Q.audioTrack.S=!1):f&&g.MH(function(){if(Q.B||!Q.policy.yE)KK(Q);else{var u=z.startTime,X=z.duration;if(!Q.policy.j){var v=H?Q.videoTrack.S:Q.audioTrack.S,y=Q.videoTrack.j!==-1&&Q.audioTrack.j!==-1,q=Q.Z>=u&&Q.Z432E3&&vdu(Q.n3);Q.L&&(b=Q.L,Q.L=0);g.MH(function(){Q.policy.j||VW(Q,b,102)}); +Q.xv.On("initManifestlessSync",{st:b,ost:b+Q.xv.ex(),a:Q.audioTrack.j,v:Q.videoTrack.j});Q.D&&(Q.D.resolve(b+.1),Q.D=null);Q.policy.j&&VW(Q,b,102)}}}; +wz=function(Q,z){var H=this;this.zL=Q;this.requestNumber=++m1Y;this.Z=this.now();this.N=this.U=NaN;this.Y=this.Z;this.L=this.EY=this.S=0;this.j=this.Z;this.C3=this.wh=this.f3=this.gT=this.UY=this.De=this.B=this.D=0;this.Ze=this.isActive=!1;this.KH=this.rT=0;this.Po={dte:function(){return H.Aj}}; +this.L5=z.L5;this.snapshot=wRp(this.L5);this.policy=this.L5.B;this.oD=!!z.oD;this.eJ=z.eJ;this.QF=z.QF||0;this.V9=z.V9||0;z.vV&&(this.yl=new uf);var f;this.Aj=(f=z.Aj)!=null?f:!1;this.oD||Vmn(this.L5)}; +wBL=function(Q){Q.f3=Math.max(Q.f3,Q.S-Q.UY);Q.wh=Math.max(Q.wh,Q.Y-Q.gT);Q.De=0}; +kn=function(Q,z,H){dvk(Q.L5,z);Q.yl&&(Q.yl.add(Math.ceil(z)-Math.ceil(Q.Y)),Q.yl.add(Math.max(0,Math.ceil(H/1024)-Math.ceil(Q.S/1024))));var f=z-Q.Y,b=H-Q.S;Q.EY=b;Q.C3=Math.max(Q.C3,b/(f+.01)*1E3);Q.Y=z;Q.S=H;Q.De&&H>Q.De&&wBL(Q)}; +TG=function(Q,z){Q.url=z;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; +ef=function(Q,z){wz.call(this,Q,z);this.ZJ=this.Xa=!1;this.jm=this.L3=Infinity;this.mq=NaN;this.yE=!1;this.WI=NaN;this.Wz=this.En=this.iT=0;this.TJ=z.TJ||1;this.fS=z.fS||this.TJ;this.Xc=z.Xc;this.Ah=z.Ah;this.Ds=z.Ds;k09(this);this.U5(this.Z);this.gh=(this.WI-this.Z)/1E3}; +TZ9=function(Q){var z=Q.En||Q.iT;return z?Q.snapshot.delay+Math.min(Q.V9,(Q.N-Q.U)/1E3)+z:Q.gh}; +lo=function(Q,z,H){if(!Q.oD){z=Math.max(z,.01);var f=Q.QF?Math.max(z,H/Q.QF):z,b=Q.L5.B.L;b&&(f=z,Q.QF&&(f=Math.max(z,H/Q.QF*b)));M$(Q.L5,z,H,f)}}; +e6k=function(Q){return(Q.j-Q.Z)/1E3}; +k09=function(Q){Q.mq=Q.Z+Q.snapshot.delay*1E3;Q.yE=!1}; +RM=function(Q,z){if(Q.Xc&&Q.Ah!==void 0&&Q.Ds!==void 0){var H=Math,f=H.min,b=Q.L3;var L=Q.Xc;var u=Q.Z;if(lJv(L,Q.Ah))L=z;else{var X=0;L.e2&&(X=.2);L=u+(L.V9+X)*1E3}Q.L3=f.call(H,b,L);H=Math;f=H.min;b=Q.jm;L=Q.Xc;u=Q.Z;X=R6L(L,Q.Ah,Q.Ds);X!==2&&(z=X?z:u+L.V9*1E3,L.e2&&(z+=L.V9*1E3));Q.jm=f.call(H,b,z);Q.L3<=Q.Z?k09(Q):(Q.mq=Q.L3,Q.yE=!0)}}; +Qra=function(Q,z){if(Q.rd(z,1)){var H=Q.getUint8(z);H=H<128?1:H<192?2:H<224?3:H<240?4:5}else H=0;if(H<1||!Q.rd(z,H))return[-1,z];if(H===1)Q=Q.getUint8(z++);else if(H===2)H=Q.getUint8(z++),Q=Q.getUint8(z++),Q=(H&63)+64*Q;else if(H===3){H=Q.getUint8(z++);var f=Q.getUint8(z++);Q=Q.getUint8(z++);Q=(H&31)+32*(f+256*Q)}else if(H===4){H=Q.getUint8(z++);f=Q.getUint8(z++);var b=Q.getUint8(z++);Q=Q.getUint8(z++);Q=(H&15)+16*(f+256*(b+256*Q))}else H=z+1,Q.focus(H),jd(Q,H,4)?Q=a7n(Q).getUint32(H-Q.P7,!0):(f= +Q.getUint8(H+2)+256*Q.getUint8(H+3),Q=Q.getUint8(H)+256*(Q.getUint8(H+1)+256*f)),z+=5;return[Q,z]}; +Qg=function(Q){this.zL=Q;this.Z=new gt}; +zh=function(Q,z){this.info=Q;this.callback=z;this.state=1;this.Xs=this.aS=!1;this.bL=null}; +zh8=function(Q){return g.Is(Q.info.Tv,function(z){return z.type===3})}; +HA=function(Q,z,H,f){var b=this;f=f===void 0?{}:f;this.policy=z;this.zL=H;this.status=0;this.Z=new gt;this.B=0;this.Sm=this.D=this.L=!1;this.xhr=new XMLHttpRequest;this.xhr.open(f.method||"GET",Q);if(f.headers)for(Q=f.headers,z=g.n(Object.keys(Q)),H=z.next();!H.done;H=z.next())H=H.value,this.xhr.setRequestHeader(H,Q[H]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return b.Vx()}; +this.xhr.onload=function(){return b.onDone()}; +this.xhr.onerror=function(){return b.onError()}; +this.xhr.fetch(function(L){b.Z.append(L);b.B+=L.length;L=(0,g.IE)();b.zL.n9(L,b.B)},function(){},f.body||null)}; +Huu=function(Q,z){this.B=(new TextEncoder).encode(Q);this.Z=(new TextEncoder).encode(z)}; +LeY=function(Q,z){var H,f,b;return g.B(function(L){if(L.Z==1){if(!z)return L.return(z);H=fH.Jb();f=new g.j7(Q.B);return g.Y(L,f.encrypt(z,Q.Z),2)}b=L.B;fH.gU("woe",H,Math.ceil(z.byteLength/16));return L.return(b)})}; +yA6=function(Q,z){var H,f,b;return g.B(function(L){if(L.Z==1){if(!z)return L.return(z);H=fH.Jb();f=new g.j7(Q.B);return g.Y(L,f.decrypt(z,Q.Z),2)}b=L.B;fH.gU("wod",H,Math.ceil(z.byteLength/16));return L.return(b)})}; +bu9=function(Q,z){var H=this;this.Z=Q;this.zL=z;this.loaded=this.status=0;this.error="";Q=od(this.Z.get("range")||"");if(!Q)throw Error("bad range");this.range=Q;this.B=new gt;fM6(this).then(function(){H.zL.z7()},function(f){H.error=""+f||"unknown_err"; +H.zL.z7()})}; +fM6=function(Q){var z,H,f,b,L,u,X,v,y,q,M,C,t,E,G;return g.B(function(x){if(x.Z==1){Q.status=200;z=Q.Z.get("docid");H=lz(Q.Z.get("fmtid")||"");f=Q.Z.get("lmt")||"0";b=+(Q.Z.get("csz")||0);if(!z||!H||!b)throw Error("Invalid local URL");Q.Z.get("ck")&&Q.Z.get("civ")&&(L=new Huu(Q.Z.get("ck"),Q.Z.get("civ")));u=Q.range;X=Math.floor(u.start/b);v=Math.floor(u.end/b);y=X}if(x.Z!=5)return y<=v?g.Y(x,qy9(z,H,f,y,L),5):x.bT(0);q=x.B;if(q===void 0)throw Error("invariant: data is undefined");M=y*b;C=(y+1)*b; +t=Math.max(0,u.start-M);E=Math.min(u.end+1,C)-(t+M);G=new Uint8Array(q.buffer,t,E);Q.B.append(G);Q.loaded+=E;Q.loaded0&&(b.Z=Math.min(b.Z+u,10),b.B=L);b.Z>0?(b.Z--,b=!0):b=!1;if(b)typeof f==="function"&&(f=f()),console.log("plyr."+z,f);else{var X;f=((X=C$A.get(z))!=null?X:0)+1;C$A.set(z,f);f%100===1&&console.warn("plyr","plyr."+z+" is chatty, dropping logs.")}}}; +Mla=function(){this.Z=10;this.B=Date.now()}; +SS=function(Q,z){g.h.call(this);var H=this;this.policy=Q;this.Tv=z;this.B=0;this.Z=null;this.Ej=[];this.L=null;this.Po={aD:function(){return H.Tv}}; +this.Tv.length===1||g.Is(this.Tv,function(f){return!!f.range})}; +Xt=function(Q,z,H){Q.Z&&(Zt(Q.Z,z),z=Q.Z,Q.Z=null);for(var f=0,b=0,L=g.n(Q.Tv),u=L.next();!u.done;u=L.next())if(u=u.value,u.range&&f+u.L<=Q.B)f+=u.L;else{z.getLength();if(Ai(u)&&!H&&Q.B+z.getLength()-b=400?(Q.lastError="net.badstatus",!0):(b===void 0?0:b)?(Q.lastError="ump.spsrejectfailure",!0):H||f!==void 0&&f?!1:(Q.lastError=z===204?"net.nocontent":"net.connect",!0)}; +ts=function(Q,z){if(Q.policy.W_)return!1;var H=z.getResponseHeader("content-type"),f=z.l4();Q=!f||f<=Q.policy.R$;return(!z.yg()||!H||H.indexOf("text/plain")!==-1)&&Q}; +Zun=function(Q,z){var H="";z=z.YZ();z.getLength()<=Q.policy.R$&&(H=goa(Q,z.K4()));return H}; +goa=function(Q,z){var H=O1(z);return RT(H)?(Q.logger.debug(function(){return"Redirecting to "+H}),H):""}; +yg=function(Q){return n_(Q.L,jl(Q.b8.XI))}; +GQu=function(Q){var z=Q.timing.EU();z.shost=jl(Q.b8.XI);return z}; +$B8=function(Q,z){return(Q==null?void 0:Q.maxWidth)>(z==null?void 0:z.maxWidth)||(Q==null?void 0:Q.maxHeight)>(z==null?void 0:z.maxHeight)}; +jrv=function(Q,z){for(var H=g.n(z.keys()),f=H.next();!f.done;f=H.next())if(f=z.get(f.value),f.length!==0){g.vY(f,function(X,v){return v.maxFramerate-X.maxFramerate}); +for(var b=[f[0]],L=0,u=1;uQ.Z||H.push(f)}return H}; +Ef=function(Q,z,H){var f=Ouc[Q]||[];H.V("html5_shorts_onesie_mismatched_fix")&&(f=ooL[Q]||[]);z.push.apply(z,g.F(f));H.V("html5_early_media_for_drm")&&z.push.apply(z,g.F(J0J[Q]||[]))}; +srv=function(Q,z){var H=g.Sn(Q),f=Q.C(),b=f.S;f=f.V("html5_shorts_onesie_mismatched_fix");var L=Q.fq();if(f){if(!b.D){if(L&&pH)return pH;if(nH)return nH}}else if(nH&&!b.D)return nH;var u=[],X=[],v={},y=gY.concat(N8_);f&&(y=gY.concat(IMv));Q.V("html5_early_media_for_drm")&&(y=y.concat(A09),Q.V("allow_vp9_1080p_mq_enc")&&y.push(YYc));var q=[].concat(g.F(r0v));if(H.U)for(var M=0;MH.zw)){var G=g.Mf(Q.C().experiments,"html5_drm_byterate_soft_cap");G>0&&$Zp(E)&&E.oi>G||(M?(u.push(t),Ef(t,u,Q)):(E=MB(H,E,b),E===!0?(M=!0,u.push(t),Ef(t,u,Q)):v[t]=E))}}}q=g.n(q);for(y=q.next();!y.done;y=q.next())for(y=g.n(y.value),M=y.next();!M.done;M=y.next())if(M= +M.value,(C=nEA(M))&&C.audio&&(Q.V("html5_onesie_51_audio")||!kK(C)&&!TR(C)))if(C=MB(H,C,b),C===!0){X.push(M);Ef(M,X,Q);break}else v[M]=C;H.B&&z("orfmts",v);if(f)return b.D&&(b.D=!1,pH=nH=void 0),L?pH={video:u,audio:X}:nH={video:u,audio:X};nH={video:u,audio:X};b.D=!1;return nH}; +g.aMY=function(Q,z,H){var f=H.S,b=[],L=[],u=H.V("html5_shorts_onesie_mismatched_fix");Q=Q.fq();var X=gY.concat(N8_);u&&(X=gY.concat(IMv));H.V("html5_early_media_for_drm")&&(X=X.concat(A09),H.V("allow_vp9_1080p_mq_enc")&&X.push(YYc));var v=[].concat(g.F(r0v));if(z.U)for(var y=0;y0&&$Zp(M)&&M.oi>C)&&MB(z,M,f)===!0){b.push({videoCodec:B8k[DU[q]],maxWidth:M.video.width,maxHeight:M.video.height,maxFramerate:M.video.fps});break}}}}u=g.n(v);for(Q=u.next();!Q.done;Q=u.next())for(Q=g.n(Q.value),v=Q.next();!v.done;v=Q.next())if(v=v.value,(X=nEA(v))&&X.audio&&(H.V("html5_onesie_51_audio")||!kK(X)&&!TR(X))&&MB(z,X,f)=== +!0){L.push({audioCodec:P$J[DU[v]],numChannels:X.audio.numChannels});break}return{videoFormatCapabilities:b,audioFormatCapabilities:L}}; +Zr=function(Q){var z={},H=Q.HI,f=Q.aj,b=H.getVideoData(),L=aA(0),u=H.getPlayerSize(),X=H.getVisibilityState();L&&(z.Dze=L,z.lastManualDirection=rOa(),L=fxa()||0,L>0&&(L=(f.V("html5_use_date_now_for_local_storage")?Date.now():(0,g.IE)())-L,f.V("html5_use_date_now_for_local_storage")?L>0&&(z.timeSinceLastManualFormatSelectionMs=L):z.timeSinceLastManualFormatSelectionMs=L));L=f.V("html5_use_streamer_bandwidth_for_low_latency_live")&&b.isLowLatencyLiveStream;if(f.schedule.Ze&&!L){var v;L=f.V("html5_disable_bandwidth_cofactors_for_sabr_live")? +!((v=Q.Wo)==null||!v.W7):!1;z.Tm=gm(f.schedule,!L)}v=g.mD();var y=g.ct.medium,q=Math.floor(y*16/9);L=b.fq()?y:q;y=b.fq()?q:y;z.kD=Math.max(u.width*v,L);z.LJ=Math.max(u.height*v,y);z.visibility=X;z.NPv=Iw();z.Td=H.B0()*1E3;u=Q.HI.b0(!0);var M,C,t,E,G,x;z.MHI={defaultPolicy:(u==null?void 0:(M=u.h2)==null?void 0:M.Z)||0,smooth:(u==null?void 0:(C=u.KYT)==null?void 0:C.Z)||0,visibility:(u==null?void 0:(t=u.l3v)==null?void 0:t.Z)||0,Hw:(u==null?void 0:(E=u.Oy)==null?void 0:E.Z)||0,performance:(u==null? +void 0:(G=u.jf)==null?void 0:G.Z)||0,speed:(u==null?void 0:(x=u.fsn)==null?void 0:x.Z)||0};var J;z.nVh=(u==null?void 0:(J=u.mPv)==null?void 0:J.Z)||0;f.V("html5_enable_sabr_drm_hd720p")&&Q.sabrLicenseConstraint&&(z.sabrLicenseConstraint=Q.sabrLicenseConstraint);if(f.V("html5_onesie_media_capabilities")||f.V("html5_enable_server_format_filter"))z.Oc=3;f.V("html5_onesie_audio_only_playback")&&bE(b)&&(z.Oc=1);var I;((I=Q.Wo)==null?0:I.ZJ)&&Q.wzh&&(z.Oc=z.Oc===void 0?7:z.Oc|4);M=b.YJ?b.YJ:g.Sn(b);f.V("html5_onesie_media_capabilities")&& +(z.mediaCapabilities=g.aMY(b,M,f));var r;if((r=Q.Wo)==null?0:r.Z&&r.D6){t=f.S;r=[];C=[];E=new Map;f.V("html5_ssap_update_capabilities_on_change")?(t.Ze||cGp(t),G=t.Ze||[]):G=Array.from(t.Z.values());G=g.n(G);for(x=G.next();!x.done;x=G.next())J=x.value,J.Wq?C.push({audioCodec:P$J[J.Rj],numChannels:J.numChannels,spatialCapabilityBitmask:UBu[J.Rj]}):(I=B8k[J.Rj],x={videoCodec:I,maxWidth:J.maxWidth||0,maxHeight:J.maxHeight||0,maxFramerate:J.maxFramerate||0,is10BitSupported:J.Le||!1},J.maxBitrateBps&& +(x.maxBitrateBps=J.maxBitrateBps,u=bF(J.itag),X=void 0,((X=u)==null?0:X.video)&&MB(M,u,t)===!0&&(u=u.oi*8,u>x.maxBitrateBps&&(x.maxBitrateBps=u))),J=I+"_"+J.Le,I=E.get(J)||[],I.push(x),E.set(J,I));r=jrv(r,E);t={};f.V("html5_ssff_denylist_opus_low")&&(t={itagDenylist:[249,350]});z.mediaCapabilities={videoFormatCapabilities:r,audioFormatCapabilities:C,hdrModeBitmask:3,perPlaybackAttributes:t}}var U;if((U=Q.Wo)==null?0:U.Z){z.LP=M.LP;var D;z.zw=(D=Q.Wo)==null?void 0:D.zw}f.sj&&(z.t2=f.sj);z.QZ=Q.IG; +z.uJ=Q.uJ;z.Ik=Q.Ik;z.VT=Q.VT;if(f.V("html5_fix_time_since_last_seek_reporting")?Q.Yf!==void 0:Q.Yf)z.FYj=(0,g.IE)()-Q.Yf;Q.isPrefetch&&f.V("html5_report_prefetch_requests")&&(z.isPrefetch=!0);ki||(z.RSj=!0);U=E8(f.schedule)*1E3;U>0&&(z.Gd=U);var T;((T=Q.Wo)==null?0:T.oQ)&&Q.Nm&&Q.Nm0?k:f.schedule.interruptions[0]||0);var bL;if((bL=Q.Wo)==null?0:bL.Xa)z.jM=Q.jM;var SY;((SY=Q.Wo)==null?0:SY.va)&&b.qD&&(z.audioTrackId=b.qD);var Q9;if((Q9=Q.Wo)==null?0:Q9.NI)if(Q=gUc())z.detailedNetworkType=c0u[Q]||c0u.other;return z}; +Gh=function(Q,z,H,f,b,L,u){var X={};z&&(X.Ca=z);if(!Q)return X;X.playbackCookie=H==null?void 0:H.playbackCookie;b&&(X.XN=b);X.tb=[];X.Ad=[];if(u==null?0:u.size)for(z=g.n(u.values()),H=z.next();!H.done;H=z.next())X.Ad.push(H.value);if(Q.sabrContextUpdates.size>0)for(z=g.n(Q.sabrContextUpdates.values()),H=z.next();!H.done;H=z.next())iuu(X,H.value,f);uE(Q)&&!g.wr(Q)&&Q.V("html5_enable_sabr_request_pipelining")&&L&&iuu(X,L,f);Q.Wp&&(X.DPe=Q.Wp);f=Q.C().Z;X.clientInfo={clientName:hhu[f.c.toUpperCase()]|| +0};f.cbrand&&(X.clientInfo.deviceMake=f.cbrand);f.cmodel&&(X.clientInfo.deviceModel=f.cmodel);f.cver&&(X.clientInfo.clientVersion=f.cver);f.cos&&(X.clientInfo.osName=f.cos);f.cosver&&(X.clientInfo.osVersion=f.cosver);f=Q.C();f.V("html5_sabr_enable_server_xtag_selection")&&f.yE&&(X.clientInfo.hl=f.yE);Q.VO&&(X.VO=Q.VO);return X}; +iuu=function(Q,z,H){var f=z.type||0;(H==null?0:H.has(f))?Q.Ad.push(z):Q.tb.push(f)}; +cN=function(Q,z,H,f,b,L){var u=L===void 0?{}:L;var X=u.Yj===void 0?[]:u.Yj;var v=u.vO===void 0?!1:u.vO;var y=u.yq===void 0?0:u.yq;var q=u.poToken===void 0?"":u.poToken;var M=u.Pp===void 0?void 0:u.Pp;var C=u.dM===void 0?"":u.dM;var t=u.cB===void 0?0:u.cB;var E=u.KE===void 0?new Uint8Array(0):u.KE;var G=u.uE===void 0?!1:u.uE;L=u.pV===void 0?0:u.pV;u=u.Ca===void 0?void 0:u.Ca;zh.call(this,z,b);var x=this;this.policy=Q;this.logger=new g.LH("dash/request");this.p_=this.Yu=0;this.jz=!1;this.s7=this.Gp= +null;this.V$=!1;this.KE=this.cB=null;this.w1=this.mm=!1;this.Ok=null;this.pV=this.XV=0;this.yW=!1;this.Po={Ni:function(I){x.Ni(I)}, +MEn:function(){return x.bL}, +Qtv:function(I){x.bL=I}, +Xrj:function(I){x.Yu=I}, +i8m:function(I){x.f5.lastError=I}, +rH:function(){return x.xhr}}; +this.timing=new ef(this,H);this.vO=v;this.cB=t;this.KE=E;this.b8=g.iw(this.info,this.policy,f);this.b8.set("rn",this.lZ().toString());this.b8.set("rbuf",(y*1E3).toFixed().toString());this.vO&&this.b8.set("smb","1");this.policy.Lr&&q&&this.b8.set("pot",q);C&&this.b8.set("bbs",C);this.policy.useUmp&&!FC(this.b8.XI)&&(this.rN=new Qg(this),this.b8.set("ump","1"),this.b8.set("srfvp","1"));if(Q=this.policy.KZ?this.policy.cK&&!isNaN(this.info.Ds)&&this.info.Ds>this.policy.iN?!1:!0:!1)z=null,this.policy.zK&& +this.policy.kF?z=[1]:G&&(z=[]),z!=null&&(this.policy.h6&&z.push(2),this.b8.set("defsel",z.join(",")));this.f5=new vA(this,this.policy,this.b8,this.info.Mz,this.timing,this.logger,f,M);this.Yj=X||null;this.Xs=W06(this);tl6(this.f5);f=void 0;if(this.policy.Mf||this.rN||this.policy.f3)f={method:"POST"},X=(0,g.$$)([120,0]),M={},this.policy.MW&&u&&(u=Gh(void 0,u),M.Cx=u),this.policy.hd&&this.KE&&(M.videoPlaybackUstreamerConfig=this.KE),this.policy.f3&&(u=this.info.D)&&Object.assign(M,u),Object.keys(M).length> +0?f.body=g.Tp(M,g.eJ):f.body=X;if(this.cB&&this.KE){this.b8.set("iwts","1");f={method:"POST"};u={VT:this.cB*1E3};var J;X=(J=this.info.D)==null?void 0:J.t8;J=g.Tp({hK:u,t8:X||void 0,videoPlaybackUstreamerConfig:this.KE},g.eJ);f.body=J}try{this.xhr=bk(this.b8,this.policy.N,this.timing,Q,f),this.f5.B.start(),L&&(this.sW=new g.lp(this.eh,L,this),this.sW.start(L+(this.timing.L5.N.gQ()||0)*1E3)),this.policy.zX&&TG(this.timing,this.mM()),this.logger.debug(function(){return"Sent, itag="+x.b8.get("itag")+ +" seg="+x.info.Tv[0].Ah+" range="+x.b8.get("range")+" time="+Math.round(x.info.Tv[0].D)+"-"+Math.round(g.dJ(x.info.Tv).j)+" rtp="+(x.timing.G3()-Date.now()).toFixed(0)}),g.MH(function(){})}catch(I){DBk(this,I,!0)}}; +W06=function(Q){if(!(c8(Q.info)&&Q.info.Aj()&&Q.policy.Ci&&Q.Yj)||Q.info.Mz.B>=2||aA()>0||!aSp())return!1;var z=Q.b8.get("aitags");if(!z)return!1;z=lz(z).split(",");for(var H=[],f=g.n(Q.Yj),b=f.next();!b.done;b=f.next())b=b.value,g.TY(z,b)&&H.push(b);if(!H.length)return!1;Q.b8.set("altitags",g.ee(H.join(",")));return!0}; +DBk=function(Q,z,H){H=H===void 0?!1:H;g.PT(z);Q.f5.lastError="player.exception";Q.errorMessage=z.name+"_"+z.message;H?g.MH(function(){MQ(Q.f5)}):MQ(Q.f5)}; +K0c=function(Q,z){Q.timing.Ze=!0;Q.xhr.yg()&&Q.timing.UW();if(Q.policy.d4){var H;(H=Q.sW)==null||H.stop()}Xt(Q.bL,z,!1)}; +VlY=function(Q,z){Q.info=z;if(Q.bL){var H=Q.bL;z=z.Tv;(z.length!==H.Tv.length||z.length0){z=g.n(z.Tv);for(var H=z.next();!H.done;H=z.next()){var f=void 0;Q+=((f=H.value.range)==null?void 0:f.length)||0}return Q}if(z.NZ.length>0)for(H=g.n(z.NZ),f=H.next();!f.done;f=H.next())Q+=f.value.dX||0;return Q+z.Fw}; +I8=function(Q,z){if(o8){var H=0;Q=Q.EV.get(z);if(Q==null||!Q.Vw)return 0;Q=g.n(Q.Vw.values());for(z=Q.next();!z.done;z=Q.next())H+=z.value.data.getLength();return H}return((H=Q.EV.get(z))==null?void 0:H.Ej.getLength())||0}; +As=function(Q,z){Q=Q.EV.get(z);if(o8){if(Q==null||!Q.by)return!1;z=Q.Vw.size>0;return Q.hV.length>0||z}return!(Q==null||!Q.by)&&!(Q==null||!Q.Ej.getLength())}; +ehk=function(Q,z){var H=Q.EV.get(z),f=T8a(Q,z),b=!f&&!!H.bytesReceived;if(o8){var L;if((L=Q.n3)==null?0:L.AZ){Q=g.n(H.Vw.values());for(z=Q.next();!z.done;z=Q.next())if(!z.value.kq)return!1;return b}}else if(L=Q.z4(z),b&&Q.Z&&L!==void 0)return L;return(b||H.bytesReceived===f)&&H.V8+I8(Q,z)===H.bytesReceived}; +lMY=function(Q,z,H){Q.EV.set(z,{Ej:new gt,V8:0,bytesReceived:0,Fw:0,u6:!1,eU:!1,z4:!1,Wq:H,bP:[],Tv:[],NZ:[],by:!1,Vw:new Map,mO:new Map,hV:[]});Q.logger.debug(function(){return"[initStream] formatId: "+z})}; +Rhp=function(Q,z,H,f){H.Tv.push.apply(H.Tv,g.F(f));if(o8){H.mO.has(z)||H.mO.set(z,[]);var b;(b=H.mO.get(z)).push.apply(b,g.F(f))}else if(H.bL)for(Q=g.n(f),z=Q.next();!z.done;z=Q.next())H.bL.Tv.push(z.value);else{H.bL=new SS(Q.Wo,[].concat(g.F(H.Tv)));var L;((L=Q.Wo)==null?0:L.eN)&&g.W(Q,H.bL)}}; +QdZ=function(Q,z,H){var f,b=(f=Q.n3)==null?void 0:f.L.get(z);if(!b)return[];if(H.gZ){var L;return((L=b.t3(0,H.clipId))==null?void 0:L.Tv)||[]}if(b.E7()){var u=H.startMs,X=H.durationMs,v=1E3,y;if(((y=Q.Wo)==null?0:y.Z)&&H.timeRange){var q;u=(q=H.timeRange.startTicks)!=null?q:-1;var M;X=(M=H.timeRange.gY)!=null?M:-1;var C;v=(C=H.timeRange.timescale)!=null?C:-1}if(H.P2<0||H.MC<0||X<0||u<0||H.dX<0||v<0)return NQ(Q,z),[];Q=Ji(H.P2,H.dX);z=H.T6||0;return[new Id(3,b,Q,"makeSliceInfosMediaBytes",H.MC-1,u/ +v,X/v,z,Q.length-z,void 0,H.h5,H.clipId)]}if(H.MC<0)return NQ(Q,z),[];var t;return((t=Q.n3)==null?0:t.AZ)?(z=b.Cq,y=z*b.info.oi,q=((u=Q.Wo)==null?0:u.p5)?H.T6:void 0,((v=Q.Wo)==null?0:v.JY)&&H.timeRange&&!q&&(X=H.timeRange.startTicks/H.timeRange.timescale),[new Id(3,b,void 0,"makeSliceInfosMediaBytes",H.MC,X,z,q,y,!0,H.h5,H.clipId)]):[]}; +z5v=function(Q,z,H){Q.n3=z;Q.Wo=H;z=g.n(Q.EV);for(H=z.next();!H.done;H=z.next()){var f=g.n(H.value);H=f.next().value;f=f.next().value;for(var b=g.n(f.bP),L=b.next();!L.done;L=b.next()){L=L.value;var u=QdZ(Q,H,L);Rhp(Q,L.KV,f,u)}}}; +Y$=function(Q,z,H,f){Q.logger.debug(function(){return"[addStreamData] formatId: "+H+",headerId: "+z+" bytes: "+f.getLength()}); +(Q=Q.EV.get(H))&&!Q.eU&&(o8?(Q.Vw.has(z)||Q.Vw.set(z,{data:new gt,HV:0,kq:!1}),Zt(Q.Vw.get(z).data,f)):Zt(Q.Ej,f),Q.bytesReceived+=f.getLength(),Q.u6=!0)}; +Js=function(Q,z){Q.logger.debug(function(){return"[closeStream] formatId: "+z}); +var H=Q.EV.get(z);H&&!H.eU&&(H.eU=!0,H.Ex&&H.Ex(),H_Y(Q)&&Q.D.lV())}; +H_Y=function(Q){Q=g.n(Q.EV.values());for(var z=Q.next();!z.done;z=Q.next())if(!z.value.eU)return!1;return!0}; +rY=function(Q,z,H,f,b,L,u,X){g.h.call(this);this.policy=Q;this.info=z;this.n3=H;this.zL=b;this.Hj=X;this.logger=new g.LH("sabr");this.rN=new Qg(this);this.Du=new x$(this);this.eH=new Of(this);this.state=1;this.M_=!1;this.rb=0;this.clipId="";this.PR=this.D3=-1;this.oF=0;this.XF=-1;this.yW=this.Px=!1;this.EQ=0;this.BT=!1;this.policy.Ga?this.wr=new jS(this,L):this.wr=new ef(this,L);this.b8=this.policy.Xa?z.yy:fZu(z,this.policy,f);this.b8.set("rn",""+this.lZ());this.b8.set("alr","yes");z5v(this.eH,H, +Q);this.f5=new vA(this,this.policy,this.b8,z.Mz,this.wr,this.logger,f,u,this.policy.enableServerDrivenRequestCancellation);tl6(this.f5);var v;if((v=this.policy)==null?0:v.eN)g.W(this,this.eH),g.W(this,this.f5);Q=z.B;z={method:"POST",body:Q};Q&&(this.oF=Q.length);try{this.xhr=bk(this.b8,this.policy.N,this.wr,ki,z),this.policy.zX&&TG(this.wr,this.mM()),this.f5.B.start()}catch(y){g.ax(y)}}; +b_J=function(Q){Q.policy.kd&&Q.DO&&!Q.BT?Q.BT=!0:Q.wr.UW()}; +L$v=function(Q,z){var H=-1,f=-1,b=-1,L;if((L=Q.gI)==null?0:L.items)for(Q=g.n(Q.gI.items),L=Q.next();!L.done;L=Q.next())L=L.value,z=X,v=Q.n3.isManifestless&&Q.policy.x9, +u){var y;if(((y=Q.Z)==null?void 0:y.BS.event)==="predictStart"&&Q.Z.AhQ.S&&(Q.S=NaN,Q.Y=NaN);if(Q.Z&&Q.Z.Ah===z)if(f=Q.Z,b&&f){var u=f.BS;L=b.Q6(u);u.event==="predictStart"&&(Q.wh=z);Q.On("sdai",{onqevt:u.event,sq:z,mt:H,gab:L,cst:u.startSecs,cueid:Q.policy.I5&&(L||u.event==="start")?u.identifier:void 0},!0);if(L)if(u.event!=="predictStart")u.event==="start"&&Q.wh===z-1&&Q.On("sdai",{gabonstart:z}),f.Uc?a8(Q, +4,"cue"):(Q.S=z,Q.Y=H,Q.On("sdai",{joinad:Q.B,sg:Q.S,st:Q.Y.toFixed(3)}),Q.U=Date.now(),a8(Q,2,"join"),b.c6(f.BS));else{var X=z+Math.max(Math.ceil(-u.Z/5E3),1);L=Math.floor(H-u.Z/1E3);Q.policy.S?Q.L=L:Q.D=X;Q.On("sdai",{onpred:H,estsq:X,estmt:L.toFixed(3)});cA(Q.xv,L,L,X);Q.U=Date.now();a8(Q,3,"predict");b.c6(f.BS)}else Q.B===1?((X=Q.j)==null?0:X.tX(H))?(cA(Q.xv,H,H,z),a8(Q,4,"sk2had")):a8(Q,5,"nogab"):u.event==="predictStart"&&(Q.policy.S&&Q.L>0?(H=Math.floor(H-u.Z/1E3),Q.L!==H&&Q.On("sdai",{updateSt:H, +old:Q.L}),Q.L=H):Q.D>0&&(H=z+Math.max(Math.ceil(-u.Z/5E3),1),Q.D!==H&&(Q.On("sdai",{updateSt:H,old:Q.D}),Q.D=H)));var v,y;if(Q.OZ&&u.event==="start"&&((v=Q.Z)==null?void 0:v.BS.event)!=="predictStart"&&((y=Q.Z)==null?void 0:y.Ah)===z-1){var q;Q.On("sdai",{ovlpst:(q=Q.Z)==null?void 0:q.BS.event,sq:z})}}else Q.On("sdai",{nulldec:1,sq:z,mt:H.toFixed(3),evt:(f==null?void 0:(u=f.BS)==null?void 0:u.event)||"none"});else Q.B===1&&a8(Q,5,"noad")}; +$m6=function(Q,z,H){if(Q.B===1||Q.B===2)return!1;if(Q.B!==0&&z===Q.audioTrack){if(Q.policy.S)return Gza(Q.videoTrack,H)||Gza(Q.videoTrack,H+1);Q=ik(Q.videoTrack);if(H>(Q?Q.Ah:-1))return!1}return!0}; +hs=function(Q,z,H){return(H<0||H===Q.S)&&!isNaN(Q.Y)?Q.Y:z}; +nl6=function(Q,z){if(Q.Z){var H=Q.Z.BS.NB-(z.startTime+Q.N-Q.Z.BS.startSecs);H<=0||(H=new UY(Q.Z.BS.startSecs-(isNaN(Q.N)?0:Q.N),H,Q.Z.BS.context,Q.Z.BS.identifier,"stop",Q.Z.BS.Z+z.duration*1E3),Q.On("cuepointdiscontinuity",{segNum:z.Ah}),PA(Q,H,z.Ah))}}; +a8=function(Q,z,H){Q.B!==z&&(Q.On("sdai",{setsst:z,old:Q.B,r:H}),Q.B=z)}; +WA=function(Q,z,H,f){(f===void 0?0:f)?a8(Q,1,"seek"):z>0&&Math.abs(z-H)>=5&&Q.B===4&&a8(Q,5,"sk2t."+z.toFixed(2)+";ct."+H.toFixed(2))}; +Dr=function(Q,z,H){this.audio=Q;this.video=z;this.reason=H}; +KH=function(Q,z,H){this.Z=Q;this.reason=z;this.token=H;this.videoId=void 0}; +Vg=function(Q,z,H){g.h.call(this);this.policy=Q;this.D=z;this.On=H;this.L=new Map;this.S=0;this.j=!1;this.Z="";this.B=!1}; +dY=function(Q,z,H){if(H===void 0?0:H)Q.j=!0;++Q.S;H=6E4*Math.pow(2,Q.S);H=(0,g.IE)()+H;Q.L.set(z.info.id,H)}; +wY=function(Q){for(var z=g.n(Q.L.entries()),H=z.next();!H.done;H=z.next()){var f=g.n(H.value);H=f.next().value;f=f.next().value;f<(0,g.IE)()&&Q.L.delete(H)}return Q.L}; +jdL=function(Q){return Q.j&&wY(Q).size>0}; +k$=function(Q,z){Q.Z!==z&&(Q.Z=z,Q.B=!0)}; +F$L=function(Q,z){var H;z&&(H=g.wJ(Q.D.Z,function(b){return b.id===z})); +if(!H&&(H=g.wJ(Q.D.Z,function(b){var L;return!((L=b.Ii)==null||!L.isDefault)}),z)){var f; +Q.On("iaf",{id:z,sid:(f=H)==null?void 0:f.id})}return H}; +eS=function(Q,z,H,f,b,L){var u=this;L=L===void 0?[]:L;this.xv=Q;this.L3=z;this.policy=H;this.n3=f;this.j=b;this.WI=L;this.logger=new g.LH("dash/abr");this.Z=D1;this.L=this.Y=null;this.U=-1;this.jm=!1;this.nextVideo=this.B=null;this.D=[];this.En=new Set;this.f3={};this.C3=new Xu(1);this.N=0;this.iT=this.wh=this.Ze=!1;this.De=0;this.uT=!1;this.yl=new Set;this.mq=!1;this.Po={yc:function(){Th(u)}}; +this.S=new Vg(this.policy,b,function(X,v){u.xv.On(X,v)})}; +NV6=function(Q,z,H){lk(Q,z);z=F$L(Q.S,H);H||z||(z=xmv(Q));z=z||Q.j.Z[0];Q.B=Q.n3.Z[z.id];Th(Q);Q.Y=Q.B;O_c(Q);olA(Q);Q.L=Q.nextVideo;Q.Y=Q.B;return Ji_(Q)}; +YN_=function(Q,z){if(IZu(Q,z))return null;if(z.reason==="m"&&z.isLocked())return Q.logger.debug(function(){return"User sets constraint to: "+Sl(z)}),lk(Q,z),Q.N=Q.D.length-1,Th(Q),R8(Q),Q.wh=Q.wh||Q.L!==Q.nextVideo,Q.L=Q.nextVideo,new Dr(Q.B,Q.L,z.reason); +z.reason==="r"&&(Q.U=-1);lk(Q,z);R8(Q);if(z.reason==="r"&&Q.nextVideo===Q.L)return new Dr(Q.B,Q.nextVideo,z.reason);Aic(Q);return null}; +riu=function(Q,z,H){Q.B=Q.n3.Z[z];Q.Y=Q.B;return new Dr(Q.Y,Q.L,H?"t":"m")}; +sd8=function(Q,z){if(z.info.video){if(Q.L!==z)return Q.L=z,Ji_(Q)}else Q.iT=Q.Y!==z,Q.Y=z;return null}; +BVY=function(Q,z){if(z.Z.info.video&&z.S){var H=(z.B+z.L)/z.duration,f=z.Z.info.oi;H&&f&&(Q.C3.iH(1,H/f),Q.policy.L&&H/f>1.5&&Q.xv.On("overshoot",{sq:z.Ah,br:H,max:f}))}}; +Q8=function(Q,z,H){dY(Q.S,z,H===void 0?!1:H);Q.U=-1;lk(Q,Q.Z)}; +PwL=function(Q,z){return new Dr(Q.Y,Q.L,z||Q.Z.reason)}; +Aic=function(Q){if(Q.L&&Q.nextVideo&&zX(Q,Q.L.info)Q.policy.zw,X=b<=Q.policy.zw?w5(f):VQ(f);if(!L||u||X)H[b]=f}return H}; +lk=function(Q,z){Q.Z=z;var H=Q.j.videoInfos;if(!Q.Z.isLocked()){var f=(0,g.IE)();H=g.q3(H,function(X){if(X.oi>this.policy.oi)return!1;var v=this.n3.Z[X.id];return wY(this.S).get(X.id)>f?!1:v.Mz.B>4||v.j>4?(this.logger.debug(function(){return"Remove "+bZ(X)+"; 4 load failures"}),!1):this.yl.has(+X.itag)?!1:!0},Q); +jdL(Q.S)&&(H=g.q3(H,function(X){return X.video.width<=854&&X.video.height<=480}))}H.length||(H=Q.j.videoInfos); +var b=H;Q.policy.J_&&(b=UmL(Q,b,z));b=g.q3(b,z.D,z);if(Q.Z.isLocked()&&Q.S.Z){var L=g.wJ(H,function(X){return X.id===Q.S.Z}); +L?b=[L]:k$(Q.S,"")}Q.policy.J_||(b=UmL(Q,b,z));b.length||(b=[H[0]]);b.sort(function(X,v){return zX(Q,X)-zX(Q,v)}); +z={};for(H=1;Hz.Ch.video.width?(g.e5(b,H),H--):zX(Q,z.ML)*Q.policy.U>zX(Q,z.Ch)&&(g.e5(b,H-1),H--);var u=b[b.length-1];Q.uT=!!Q.L&&!!Q.L.info&&Q.L.info.Rj!==u.Rj;Q.logger.debug(function(){return"Constraint: "+Sl(Q.Z)+", "+b.length+" fmts selectable, max selectable fmt: "+bZ(u)}); +Q.D=b;Q.En.clear();z=!1;for(H=0;H=1080&&(z=!0);ciY(Q.policy,u,Q.n3.AZ)}; +UmL=function(Q,z,H){var f=H.reason==="m"||H.reason==="s";Q.policy.B$&&HK&&g.$w&&(!f||H.Z<1080)&&(z=z.filter(function(y){return y.video&&(!y.B||y.B.powerEfficient)})); +if(z.length>0)if(p3()){var b=aZL(Q,z);z=z.filter(function(y){return!!y&&!!y.video&&y.Rj===b[y.video.Z].Rj})}else{var L,u,X=(L=z[0])==null?void 0:(u=L.video)==null?void 0:u.Z; +if(X){H=z.filter(function(y){return!!y&&!!y.video&&y.video.Z===X}); +var v=aZL(Q,H)[X].Rj;z=z.filter(function(y){return!!y&&!!y.video&&y.Rj===v})}}return z}; +i_u=function(Q,z){for(var H=0;H+1f}; +Th=function(Q){if(!Q.B||!Q.policy.D&&!Q.B.info.Ii){var z=Q.j.Z;Q.B&&(z=z.filter(function(f){return f.audio.Z===Q.B.info.audio.Z}),z.length||(z=Q.j.Z)); +Q.B=Q.n3.Z[z[0].id];if(z.length>1){if(Q.policy.zj){if(Q.policy.oW){var H=g.NT(z,function(f){return f.audio.audioQuality}); +Q.xv.On("aq",{hqa:Q.policy.rT,qs:H.join("_")})}if(Q.policy.rT)return;if(H=g.wJ(z,function(f){return f.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}))Q.B=Q.n3.Z[H.id]}H=!1; +if(H=Q.policy.zx?!0:Q.Z.isLocked()?Q.Z.Z<240:i_u(Q,Q.B))Q.B=Q.n3.Z[g.dJ(z).id]}}}; +R8=function(Q){if(!Q.nextVideo||!Q.policy.D)if(Q.Z.isLocked())Q.nextVideo=Q.Z.Z<=360?Q.n3.Z[Q.D[0].id]:Q.n3.Z[g.dJ(Q.D).id],Q.logger.debug(function(){return"Select max fmt: "+bZ(Q.nextVideo.info)}); +else{for(var z=Math.min(Q.N,Q.D.length-1),H=Yn(Q.L3),f=zX(Q,Q.B.info),b=H/Q.policy.Ze-f;z>0&&!(zX(Q,Q.D[z])<=b);z--);for(var L=H/Q.policy.U-f;z=L);z++);Q.nextVideo=Q.n3.Z[Q.D[z].id];Q.N!==z&&Q.logger.info(function(){return"Adapt to: "+bZ(Q.nextVideo.info)+", bandwidth: "+H.toFixed(0)+", bandwidth to downgrade: "+b.toFixed(0)+", bandwidth to upgrade: "+L.toFixed(0)+", constraint: "+Sl(Q.Z)}); +Q.N=z}}; +O_c=function(Q){var z=Q.policy.Ze,H=Yn(Q.L3),f=H/z-zX(Q,Q.B.info);z=g.kO(Q.D,function(b){return zX(this,b)L?b=0:f[u]>Q.buffered[u]&&(u===L-1?b=2:u===L-2&&f[u+1]>Q.buffered[u+1]&&(b=3))}Q.Z.add(z<<3|(H&&4)|b);z=Math.ceil(Q.track.B0()*1E3);Q.Z.add(z-Q.S);Q.S=z;if(b===1)for(Q.Z.add(L),u=z=0;u=2&&Q.Z.add(f[L- +1]-Q.buffered[L-1]);H&&Q.Z.add(H);Q.buffered=f}; +LI=function(Q,z,H){var f=this;this.policy=Q;this.Z=z;this.De=H;this.D=this.B=0;this.oz=null;this.Ze=new Set;this.U=[];this.indexRange=this.initRange=null;this.N=new Ts;this.wh=this.L3=!1;this.Po={zr$:function(){return f.L}, +cK5:function(){return f.chunkSize}, +jch:function(){return f.Y}, +Kf5:function(){return f.j}}; +(z=VAZ(this))?(this.chunkSize=z.csz,this.L=Math.floor(z.clen/z.csz),this.Y=z.ck,this.j=z.civ):(this.chunkSize=Q.PX,this.L=0,this.Y=g.Ob(16),this.j=g.Ob(16));this.S=new Uint8Array(this.chunkSize);this.Y&&this.j&&(this.crypto=new Huu(this.Y,this.j))}; +VAZ=function(Q){if(Q.policy.r7&&Q.policy.qW)for(var z=g.n(Q.policy.r7),H=z.next(),f={};!H.done;f={LB:void 0,ED:void 0},H=z.next())if(H=g.ST(H.value),f.LB=+H.clen,f.ED=+H.csz,f.LB>0&&f.ED>0&&Q.policy.D===H.docid&&Q.Z.info.id===H.fmtid&&Q.Z.info.lastModified===+H.lmt)return Q={},Q.clen=f.LB,Q.csz=f.ED,Q.ck=H.ck,Q.civ=H.civ,Q}; +um=function(Q){return!!Q.oz&&Q.oz.lc()}; +w8J=function(Q,z){if(!um(Q)&&!Q.Sm()){if(!(Q.L3||(Q.L3=!0,Q.L>0))){var H=Sc(Q);H=rr(Q.policy.D,Q.Z.info,XJ(Q),H,Q.policy.WI);vK(Q,H)}if(z.info.type===1){if(Q.oz){y8(Q,Error("Woffle: Expect INIT slices to always start us off"));return}Q.initRange=Ji(0,z.Z.getLength())}else if(z.info.type===2)Q.oz&&Q.oz.type===1||y8(Q,Error("Woffle: Index before init")),Q.indexRange=Ji(Q.initRange.end+1,z.Z.getLength());else if(z.info.type===3){if(!Q.oz){y8(Q,Error("Woffle: Expect MEDIA slices to always have lastSlice")); +return}if(Q.oz.type===3&&!rV(Q.oz,z.info)&&(Q.U=[],z.info.Ah!==sN(Q.oz)||z.info.B!==0))return;if(z.info.S){H=g.n(Q.U);for(var f=H.next();!f.done;f=H.next())dma(Q,f.value);Q.U=[]}else{Q.U.push(z);Q.oz=z.info;return}}else{y8(Q,Error("Woffle: Unexpected slice type"));return}Q.oz=z.info;dma(Q,z);mmY(Q)}}; +dma=function(Q,z){var H=0,f=z.Z.K4();if(Q.D=f.length)return;if(H<0)throw Error("Missing data");Q.D=Q.L;Q.B=0}for(b={};H0){var u=f.getUint32(H+28);L+=u*16+4}var X=f.getUint32(H+L-4);try{var v=R59(z.subarray(H+L,H+L+X));if(v!==null){var y=v;break a}}catch(q){}}H+=b}y=null;break a}catch(q){y=null;break a}y=void 0}if(y!=null)for(z=M4(i5(y,7)),z==null||Q.rV||(Q.cryptoPeriodIndex=z),z=M4(i5(y,10)),z!=null&&z>0&&!Q.rV&&(Q.Z=z),y=wC(y, +2,ET9,void 0===gTJ?2:4),y=g.n(y),z=y.next();!z.done;z=y.next())Q.L.push(g.g7(JC(z.value),4))}; +zxZ=function(Q){return isNaN(Q.cryptoPeriodIndex)?g.g7(Q.initData):""+Q.cryptoPeriodIndex}; +CI=function(Q,z,H){var f=H===void 0?{}:H;H=f.videoDuration===void 0?0:f.videoDuration;var b=f.E_===void 0?void 0:f.E_;f=f.d0===void 0?!1:f.d0;this.videoId=Q;this.status=z;this.videoDuration=H;this.E_=b;this.d0=f}; +HyY=function(Q,z,H,f,b){this.videoId=Q;this.LG=z;this.B=H;this.bytesDownloaded=f;this.Z=b}; +te=function(Q){this.Z=Q;this.offset=0}; +ER=function(Q){if(Q.offset>=Q.Z.getLength())throw Error();return Q.Z.getUint8(Q.offset++)}; +fn9=function(Q,z){z=z===void 0?!1:z;var H=ER(Q);if(H===1){z=-1;for(H=0;H<7;H++){var f=ER(Q);z===-1&&f!==255&&(z=0);z>-1&&(z=z*256+f)}return z}f=128;for(var b=0;b<6&&f>H;b++)H=H*256+ER(Q),f*=128;return z?H:H-f}; +by_=function(Q){try{var z=fn9(Q,!0),H=fn9(Q,!1);return{id:z,size:H}}catch(f){return{id:-1,size:-1}}}; +LfL=function(Q){for(var z=new te(Q),H=-1,f=0,b=0;!f||!b;){var L=by_(z),u=L.id;L=L.size;if(u<0)return;if(u===176){if(L!==2)return;f=z.j0()}else if(u===186){if(L!==2)return;b=z.j0()}u===374648427?H=z.j0()+L:u!==408125543&&u!==174&&u!==224&&z.skip(L)}z=Fh(Q,0,H);H=new DataView(z.buffer);H.setUint16(f,3840);H.setUint16(b,2160);f=new gt([z]);Zt(f,Q);return f}; +uo_=function(Q,z,H){var f=this;this.xv=Q;this.policy=z;this.j=H;this.logger=new g.LH("dash");this.B=[];this.Z=null;this.L3=-1;this.U=0;this.yl=NaN;this.Ze=0;this.L=NaN;this.N=this.jm=0;this.uT=-1;this.f3=this.S=this.D=this.De=null;this.C3=this.iT=NaN;this.Y=this.wh=this.En=this.WI=null;this.rT=!1;this.mq=this.timestampOffset=0;this.Po={tO:function(){return f.B}}; +if(this.policy.D){var b=this.j,L=this.policy.D;this.policy.WI&&Q.On("atv",{ap:this.policy.WI});this.Y=new LI(this.policy,b,function(u,X,v){pI(Q,new CI(f.policy.D,2,{E_:new HyY(L,u,b.info,X,v)}))}); +this.Y.N.promise.then(function(u){f.Y=null;u===1?pI(Q,new CI(f.policy.D,u)):f.xv.On("offlineerr",{status:u.toString()})},function(u){var X=(u.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); +u instanceof q5&&!u.Z?(f.logger.info(function(){return"Assertion failed: "+X}),f.xv.On("offlinenwerr",{em:X}),nI(f),pI(Q,new CI(f.policy.D,4))):(f.logger.info(function(){return"Failed to write to disk: "+X}),f.xv.On("dldbwerr",{em:X}),nI(f),pI(Q,new CI(f.policy.D,4,{d0:!0})))})}}; +Smp=function(Q){return Q.B.length?Q.B[0]:null}; +XjL=function(Q,z){return Q.B.some(function(H){return H.info.Ah===z})}; +CDc=function(Q,z,H,f){f=f===void 0?0:f;if(Q.S){var b=Q.S.B+Q.S.L;if(H.info.B>0)if(H.info.Ah===Q.S.Ah&&H.info.B=0&&Q.S.Ah>=0&&!rV(Q.S,H.info))throw new g.kQ("improper_continuation",Q.S.aq(),H.info.aq());lUc(Q.S,H.info)||gH(Q,"d")}else if(H.info.B>0)throw new g.kQ("continuation_of_null",H.info.aq());Q.S=H.info;Q.j=H.info.Z;if(H.info.B===0){if(Q.Z)if(!Q.xv.isOffline()||Q.policy.Tl)Q.xv.On("slice_not_fully_processed",{buffered:Q.Z.info.aq(), +push:H.info.aq()});else throw new g.kQ("slice_not_fully_processed",Q.Z.info.aq(),H.info.aq());Zp(Q);Q.jm=f}else{if(Q.jm&&f&&Q.jm!==f)throw Q=new g.kQ("lmt_mismatch",H.info.Ah,Q.jm,f),Q.level="WARNING",Q;!H.info.Z.E7()&&Q.D&&(f=H.info,b=Q.D.D3,f.Y="updateWithEmsg",f.Ah=b)}if(Q.Z){f=g.eA(Q.Z,H);if(!f)throw new g.kQ("failed_to_merge",Q.Z.info.aq(),H.info.aq());Q.Z=f}else Q.Z=H;a:{H=g.eM(Q.Z.info.Z.info);if(Q.Z.info.type!==3){if(!Q.Z.info.S)break a;Q.Z.info.type===6?vic(Q,z,Q.Z):yQ6(Q,Q.Z);Q.Z=null}for(;Q.Z;){f= +Q.Z.Z.getLength();if(Q.L3<=0&&Q.U===0){var L=Q.Z.Z,u=-1;b=-1;if(H){for(var X=0;X+80))break;if(M!==408125543)if(M===524531317)X=!0,q>=0&&(b=L.j0()+q,v=!0);else{if(X&&(M===160||M===163)&&(u<0&&(u=y),v))break;M===163&&(u=Math.max(0,u),b=L.j0()+q);if(M===160){u<0&&(b=u=L.j0()+q);break}L.skip(q)}}u<0&&(b=-1)}if(u< +0)break;Q.L3=u;Q.U=b-u}if(Q.L3>f)break;Q.L3?(f=qm9(Q,Q.L3),f.S&&MbY(Q,f),vic(Q,z,f),GX(Q,f),Q.L3=0):Q.U&&(f=qm9(Q,Q.U<0?Infinity:Q.U),Q.U-=f.Z.getLength(),GX(Q,f))}}Q.Z&&Q.Z.info.S&&(GX(Q,Q.Z),Q.Z=null)}; +yQ6=function(Q,z){!z.info.Z.E7()&&z.info.B===0&&(g.eM(z.info.Z.info)||z.info.Z.info.rV())&&Ja8(z);if(z.info.type===1)try{MbY(Q,z),tb_(Q,z)}catch(b){g.PT(b);var H=B8(z.info);H.hms="1";Q.xv.handleError("fmt.unparseable",H||{},1)}H=z.info.Z;H.ZQ(z);Q.Y&&w8J(Q.Y,z);if(H.SH()&&Q.policy.Z)a:{Q=Q.xv.n3;z=z.info.clipId;H=g.Rj(H.info,Q.AZ);if(z){var f=VPY(Q,H);if(Q.mq[f])break a;Q.mq[f]=z}Q.f3.push(H)}}; +WNY=function(Q,z,H){if(Q.B.length!==0&&(H||Q.B.some(function(L){return L.info.D=jc(u)+X):z=Q.getDuration()>=u.getDuration(),z=!z;z&&nin(H)&&(z=Q.De,$p?(X=O3p(H),u=1/X,X=jc(Q,X),z=jc(z)+u-X):z=z.getDuration()- +Q.getDuration(),z=1+z/H.info.duration,N5J(H.Lp(),z))}else{u=!1;Q.D||(Ja8(H),H.B&&(Q.D=H.B,u=!0,L=H.info,f=H.B.D3,L.Y="updateWithEmsg",L.Ah=f,L=H.B,L.lc&&(f=Q.j.index,f.B=!L.lc,f.L="emsg"),L=H.info.Z.info,f=H.Lp(),g.eM(L)?el(f,1701671783):L.rV()&&L_([408125543],307544935,f)));a:if((L=QG(H,Q.policy.UY))&&o6A(H))X=gin(Q,H),Q.N+=X,L-=X,Q.Ze+=L,Q.L=Q.policy.ox?Q.L+L:NaN;else{if(Q.policy.Wp){if(f=v=Q.xv.F2(g.lw(H),1),Q.L>=0&&H.info.type!==6){if(Q.policy.ox&&isNaN(Q.iT)){g.ax(new g.kQ("Missing duration while processing previous chunk", +H.info.aq()));Q.xv.isOffline()&&!Q.policy.Tl||ZyZ(Q,H,f);gH(Q,"m");break a}var y=v-Q.L,q=y-Q.N,M=H.info.Ah,C=Q.f3?Q.f3.Ah:-1,t=Q.C3,E=Q.iT,G=Q.policy.Qg&&y>Q.policy.Qg,x=Math.abs(q)>10,J=Math.abs(Q.L-f)<1E-7;if(Math.abs(q)>1E-4){Q.mq+=1;var I=(b=Q.D)==null?void 0:h0(b);b={audio:""+ +Q.Wq(),sq:M.toFixed(),sliceStart:v,lastSq:C.toFixed(),lastSliceStart:t,lastSliceDuration:E,totalDrift:(y*1E3).toFixed(),segDrift:(q*1E3).toFixed(),skipRewrite:""+ +(G||x)};if(I==null?0:I.length)b.adCpn=I[0];Q.xv.handleError("qoe.avsync", +b);Q.uT=M}G||x||J||(f=Q.L);b=gin(Q,H,v);L-=b;Q.N=y+b;Q.policy.L&&(q&&!J||b)&&(y=(X=Q.D)==null?void 0:h0(X),Q.xv.On("discontinuityRewrite",{adCpn:(y==null?0:y.length)?y.join("."):"",itag:H.info.Z.info.itag,sq:H.info.Ah,originalStartTime:v,rewrittenStartTime:f,startTimeAdjustment:f-v,segDrift:(q*1E3).toFixed(),originalDuration:L+b,rewrittenDuration:L,durationAdjustment:b}))}}else f=isNaN(Q.L)?H.info.startTime:Q.L;ZyZ(Q,H,f)&&(Q.Ze+=L,Q.L=f+L,Q.policy.XK&&Q.mq>=Q.policy.XK&&(Q.mq=0,Q.xv.a4({resetForRewrites:"count"})))}Q.f3= +H.info;Q.iT=Rd(H);H.L>=0&&(Q.C3=H.L);if(u&&Q.D){u=Gyn(Q,!0);P8(H.info,u);Q.Z&&P8(Q.Z.info,u);z=g.n(z);for(X=z.next();!X.done;X=z.next())X=X.value,b=void 0,Q.policy.j&&X.Ah!==((b=Q.D)==null?void 0:b.D3)||P8(X,u);(H.info.S||Q.Z&&Q.Z.info.S)&&H.info.type!==6||(Q.wh=u,Q.policy.C3?(z=$j_(Q.D),Q.xv.z8(Q.j,u,z)):(z=Q.xv,z.n3.isManifestless&&jka(z,u,null,!!Q.j.info.video)),Q.policy.LA||FfJ(Q))}}tb_(Q,H);Q.timestampOffset&&FwY(H,Q.timestampOffset)}; +GX=function(Q,z){if(z.info.S){Q.WI=z.info;if(Q.D){var H=Q.D,f=Gyn(Q,!1);H=$j_(H);Q.xv.z8(Q.j,f,H);Q.wh||Q.policy.LA||FfJ(Q);Q.wh=null}Zp(Q)}Q.Y&&w8J(Q.Y,z);if(f=Q.qC())if(f=g.eA(f,z,Q.policy.X2)){Q.B.pop();Q.B.push(f);return}Q.B.push(z)}; +$j_=function(Q){if(Q.Uc()){var z=Q.data["Stitched-Video-Id"]?Q.data["Stitched-Video-Id"].split(",").slice(0,-1):[],H=h0(Q),f=[];if(Q.data["Stitched-Video-Duration-Us"])for(var b=g.n(Q.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),L=b.next();!L.done;L=b.next())f.push((Number(L.value)||0)/1E6);b=[];if(Q.data["Stitched-Video-Start-Frame-Index"]){L=g.n(Q.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var u=L.next();!u.done;u=L.next())b.push(Number(u.value)||0)}b=[]; +if(Q.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(L=g.n(Q.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),u=L.next();!u.done;u=L.next())b.push((Number(u.value)||0)/1E6);Q=new lZ8(z,H,f,b,g.xCL(Q),g.OGL(Q))}else Q=null;return Q}; +Zp=function(Q){Q.Z=null;Q.L3=-1;Q.U=0;Q.D=null;Q.yl=NaN;Q.Ze=0;Q.wh=null}; +gH=function(Q,z){z={rst4disc:z,cd:Q.N.toFixed(3),sq:Q.f3?Q.f3.Ah:-1};Q.L=NaN;Q.N=0;Q.uT=-1;Q.f3=null;Q.C3=NaN;Q.iT=NaN;Q.En=null;Q.xv.On("mdstm",z)}; +tb_=function(Q,z){if(Q.j.info.AM){if(z.info.Z.info.rV()){var H=new Rr(z.Lp());if(zz(H,[408125543,374648427,174,28032,25152,20533,18402])){var f=bw(H,!0);H=f!==16?null:v8(H,f)}else H=null;f="webm"}else z.info.U=TVa(z.Lp()),H=e5J(z.info.U),f="cenc";H&&H.length&&(H=new M5(H,f),Q.policy.Z_&&g.eM(z.info.Z.info)&&(f=B5Z(z.Lp()))&&(H.B=f),H.rV=z.info.Z.info.rV(),z.B&&z.B.cryptoPeriodIndex&&(H.cryptoPeriodIndex=z.B.cryptoPeriodIndex),z.B&&z.B.B&&(H.Z=z.B.B),Q.xv.Cl(H))}}; +FfJ=function(Q){var z=Q.D,H=jjL(z);H&&(H.startSecs+=Q.yl,Q.xv.eB(Q.j,H,z.D3,z.Uc()))}; +Gyn=function(Q,z){var H,f=Q.D;if(H=jjL(f))H.startSecs+=Q.yl;return new J0(f.D3,Q.yl,z?f.Cq:Q.Ze,f.ingestionTime,"sq/"+f.D3,void 0,void 0,z,H)}; +ZyZ=function(Q,z,H){if(!jma(z,H))return z=B8(z.info),z.smst="1",Q.xv.handleError("fmt.unparseable",z||{},1),!1;isNaN(Q.yl)&&(Q.yl=H);return!0}; +gin=function(Q,z,H){var f=0;if(z.info.Z.info.rV()&&!o6A(z))return 0;if(Q.De&&!Q.Wq()){var b=0;H&&g.eM(z.info.Z.info)?b=H-Q.L:z.info.Z.info.rV()&&(b=Q.N);var L=z.info.Ah;H=QG(z,Q.policy.UY);var u=Q.De;var X=u.uT;u=u.N;var v=Math.abs(u-b)>.02;if((L===X||L>X&&L>Q.uT)&&v){f=Math.max(.95,Math.min(1.05,(H-(u-b))/H));if(g.eM(z.info.Z.info))N5J(z.Lp(),f);else if(z.info.Z.info.rV()&&(L=b-u,!g.eM(z.info.Z.info)&&(z.info.Z.info.rV(),f=new Rr(z.Lp()),X=z.S?f:new Rr(new DataView(z.info.Z.Z.buffer)),QG(z,!0)))){var y= +L*1E3,q=qm(X);X=f.pos;f.pos=0;if(f.Z.getUint8(f.pos)===160||Mm(f))if(f_(f,160))if(bw(f,!0),f_(f,155)){if(L=f.pos,v=bw(f,!0),f.pos=L,y=y*1E9/q,q=uw(f),y=q+Math.max(-q*.7,Math.min(q,y)),y=Math.sign(y)*Math.floor(Math.abs(y)),!(Math.ceil(Math.log(y)/Math.log(2)/8)>v)){f.pos=L+1;for(L=v-1;L>=0;L--)f.Z.setUint8(f.pos+L,y&255),y>>>=8;f.pos=X}}else f.pos=X;else f.pos=X;else f.pos=X}f=QG(z,Q.policy.UY);f=H-f}f&&z.info.Z.info.rV()&&Q.xv.On("webmDurationAdjustment",{durationAdjustment:f,videoDrift:b+f,audioDrift:u})}return f}; +nin=function(Q){return Q.info.Z.E7()&&Q.info.Ah===Q.info.Z.index.Xg()}; +jc=function(Q,z){z=(z=z===void 0?0:z)?Math.round(Q.timestampOffset*z)/z:Q.timestampOffset;Q.j.D&&z&&(z+=Q.j.D.Z);return z+Q.getDuration()}; +xj9=function(Q,z){z<0||(Q.B.forEach(function(H){FwY(H,z)}),Q.timestampOffset=z)}; +UJ=function(Q,z,H,f,b){zh.call(this,H,b);var L=this;this.policy=Q;this.formatId=z;this.eH=f;this.lastError=null;this.Ex=function(){L.Sm()||(L.eH.EV.has(L.formatId)?(L.isComplete()||L.Z.start(),As(L.eH,L.formatId)&&L.Ka(2),L.eH.eU(L.formatId)&&(ehk(L.eH,L.formatId)?L.Ni(4):(L.lastError="net.closed",L.Ni(5)))):(L.lastError="player.exception",L.Ni(5)))}; +this.Z=new g.lp(function(){L.isComplete()||(L.lastError="net.timeout",L.Ni(5))},1E3); +this.Z.start();wMZ(this.eH,this.formatId,this.Ex);g.MH(this.Ex)}; +FJ=function(Q,z,H,f){g.h.call(this);var b=this;this.xv=Q;this.policy=z;this.Z=H;this.timing=f;this.logger=new g.LH("dash");this.L=[];this.De=[];this.B=this.nH=null;this.jm=!1;this.mq=this.En=0;this.j=-1;this.L3=!1;this.yl=-1;this.f3=null;this.wh=NaN;this.Ze=[];this.Po={pG:function(){return b.D}, +PUh:function(){return b.L}, +Vlm:function(){return b.N}}; +this.D=new uo_(Q,z,H);this.policy.Z&&(this.N=new sJ(this.D,this.xv.getManifest(),this.policy,function(L){b.policy.z0&&b.On("buftl",L)})); +this.policy.Wz&&(this.U=new fI(this));this.oi=H.info.oi;this.Y=this.policy.wh?!1:H.dR();this.isManifestless=H.dR();this.S=this.Y;g.W(this,this.f3)}; +xp=function(Q,z,H){H=H===void 0?!1:H;z&&$p&&xj9(Q.D,z.UF());if(!H){var f;(f=Q.N)==null||U1k(f)}Q.nH=z;(z=Q.N)!=null&&(z.nH=Q.nH)}; +OR=function(Q){var z=Q.nH&&Q.nH.z3();if(Q.policy.ER){if((Q=Q.N)==null)Q=void 0;else{var H;Q=(H=Q.L)==null?void 0:H.info}return Q||null}return z}; +Oy_=function(Q){for(var z={},H=0;H4&&Q.De.shift()}; +oiL=function(Q,z){if(z.uZ()){var H=z.Rx();H=g.n(H);for(var f=H.next();!f.done;f=H.next())f=f.value,Q.policy.L&&z instanceof UJ&&Q.On("omblss",{s:f.info.aq()}),Je(Q,z.info.Tv,f,z.RP())}}; +Je=function(Q,z,H,f){f=f===void 0?0:f;isNaN(Q.wh)||(Q.On("aswm",{sq:z[0].Ah,id:z[0].Z.info.itag,xtag:z[0].Z.info.Z,ep:Date.now()-Q.wh}),Q.wh=NaN);switch(H.info.type){case 1:case 2:JQ6(Q,H);break;case 4:var b=H.info.Z,L=b.tE(H),u;((u=Q.B)==null?0:u.type===4)&&Lw_(H.info,Q.B)&&(Q.B=b.ev(Q.B).pop());H=g.n(L);for(b=H.next();!b.done;b=H.next())Je(Q,z,b.value,f);break;case 3:H.info.Z.info.video?(b=Q.timing,b.De||(b.De=(0,g.IE)(),OH("fvb_r",b.De,b.Z))):(b=Q.timing,b.j||(b.j=(0,g.IE)(),OH("fab_r",b.j,b.Z))); +CDc(Q.D,z,H,f);Q.policy.Z&&NSp(Q);break;case 6:CDc(Q.D,z,H,f),Q.B=H.info}}; +JQ6=function(Q,z){if(z.info.type===1)if(z.info.Z.info.video){var H=Q.timing;H.f3||(H.f3=(0,g.IE)(),OH("vis_r",H.f3,H.Z))}else H=Q.timing,H.N||(H.N=(0,g.IE)(),OH("ais_r",H.N,H.Z));yQ6(Q.D,z);Q=Q.xv;Q.videoTrack.Z.SH()&&Q.audioTrack.Z.SH()&&Q.policy.Z&&!Q.n3.AZ&&(z=Q.audioTrack.getDuration(),H=Q.videoTrack.getDuration(),Math.abs(z-H)>1&&Q.On("trBug",{af:""+g.Rj(Q.audioTrack.Z.info,!1),vf:""+g.Rj(Q.videoTrack.Z.info,!1),a:""+z,v:""+H}))}; +mp=function(Q){return Smp(Q.D)}; +NSp=function(Q){Q.L.length?Q.B=g.dJ(g.dJ(Q.L).info.Tv):Q.D.B.length?Q.B=Q.D.qC().info:Q.B=OR(Q)}; +N5=function(Q,z){var H={ue:[],u$:[]},f;if((Q=Q.N)==null)Q=void 0;else{aJA(Q,Q.ue,"og");sA6(Q,z);aJA(Q,Q.ue,"trim");var b=PM9(Q);z=b.ue;b=b.Cg;for(var L=[],u=0;u0){var C=SP(M,v);C>=0&&(q=(M.end(C)-v+.1)*1E3)}L.push({formatId:g.Rj(X.info.Z.info,Q.n3.AZ), +h5:X.info.h5,sequenceNumber:X.info.Ah+Q.D,Fe:y,sz:X.info.L,M2:q})}Q={ue:z,u$:L}}return(f=Q)!=null?f:H}; +hv=function(Q,z,H){H=H===void 0?!1:H;if(Q.nH){var f=Q.nH.N4(),b=vs(f,z),L=NaN,u=OR(Q);u&&(L=vs(f,u.Z.index.getStartTime(u.Ah)));if(b===L&&Q.B&&Q.B.L&&InJ(Ib(Q),0))return z}Q=AQ8(Q,z,H);return Q>=0?Q:NaN}; +D_=function(Q,z,H){Q.Z.SH();var f=AQ8(Q,z);if(f>=0)return f;var b;(b=Q.N)==null||BZa(b,z,H);H=Math;f=H.min;b=Q.D;if(b.Y)if(b=b.Y,b.oz&&b.oz.type===3)b=b.oz.startTime;else if(b.L>0){var L=b.Z.index;L=g.Sj(L.offsets.subarray(0,L.count),b.L*b.chunkSize);b=b.Z.index.getStartTime(L>=0?L:Math.max(0,-L-2))}else b=0;else b=Infinity;z=f.call(H,z,b);if(Q.policy.B){var u,X;H=(u=Q.xv.t$())==null?void 0:(X=PN(u,z))==null?void 0:X.clipId;Q.B=Q.Z.UU(z,void 0,H).Tv[0]}else Q.B=Q.policy.wh?null:Q.Z.UU(z).Tv[0];Ae(Q)&& +(Q.nH&&Q.nH.abort(),Q.policy.aK&&(u=Q.N)!=null&&(u.L=void 0));Q.mq=0;return Q.B?Q.B.startTime:z}; +iEJ=function(Q){Q.Y=!0;Q.S=!0;Q.j=-1;D_(Q,Infinity)}; +Yp=function(Q){for(var z=0,H=g.n(Q.L),f=H.next();!f.done;f=H.next())z+=SUJ(f.value.info);return z+=Ei_(Q.D)}; +sR=function(Q,z){z=z===void 0?!1:z;var H=Q.xv.getCurrentTime(),f=Q.D.qC(),b=(f==null?void 0:f.info.j)||0;Q.policy.Uf&&(f==null?0:f.info.Z.dR())&&!f.info.S&&(b=f.info.D);if(Q.policy.B&&f&&f.info.clipId){var L,u=(((L=Q.xv.t$())==null?void 0:BN(L,f.info.clipId))||0)/1E3;b+=u}if(!Q.nH)return Q.policy.Z&&z&&!isNaN(H)&&f?b-H:0;if((L=OR(Q))&&rH(Q,L))return L.j;u=Q.nH.N4(!0);if(z&&f)return L=0,Q.policy.Z&&(L=q6(u,b+.02)),L+b-H;b=q6(u,H);Q.policy.dD&&L&&(z=SP(u,H),u=SP(u,L.D-.02),z===u&&(H=L.j-H,Q.policy.L&& +H>b+.02&&Q.On("abh",{bh:b,bhtls:H}),b=Math.max(b,H)));return b}; +YmJ=function(Q){var z=OR(Q);return z?z.j-Q.xv.getCurrentTime():0}; +rQY=function(Q,z){if(Q.L.length){if(Q.L[0].info.Tv[0].startTime<=z)return;io(Q)}for(var H=Q.D,f=H.B.length-1;f>=0;f--)H.B[f].info.startTime>z&&H.B.pop();NSp(Q);Q.B&&z=0;u--){var X=b.B[u];X.info.Ah>=z&&(b.B.pop(),b.L-=QG(X,b.policy.UY),L=X.info)}L&&(b.S=b.B.length>0?b.B[b.B.length-1].info:b.En,b.B.length!==0||b.S||gH(b,"r"));b.xv.On("mdstm",{rollbk:1,itag:L?L.Z.info.itag:"",popped:L?L.Ah:-1,sq:z,lastslc:b.S?b.S.Ah:-1,lastfraget:b.L.toFixed(3)});if(Q.policy.Z)return Q.B=null,!0;f>H?D_(Q,f):Q.B=Q.Z.Di(z-1,!1).Tv[0]}catch(v){return z=NC(v),z.details.reason="rollbkerr", +Q.xv.handleError(z.errorCode,z.details,z.severity),!1}return!0}; +ab=function(Q,z){var H;for(H=0;H0?H||z.Ah>=Q.yl:H}; +cK=function(Q){var z;return Ae(Q)||rH(Q,(z=Q.D.qC())==null?void 0:z.info)}; +Ib=function(Q){var z=[],H=OR(Q);H&&z.push(H);z=g.Qi(z,Q.D.aD());H=g.n(Q.L);for(var f=H.next();!f.done;f=H.next()){f=f.value;for(var b=g.n(f.info.Tv),L=b.next(),u={};!L.done;u={HO:void 0},L=b.next())u.HO=L.value,f.aS&&(z=g.q3(z,function(X){return function(v){return!Lw_(v,X.HO)}}(u))),(Yl(u.HO)||u.HO.type===4)&&z.push(u.HO)}Q.B&&!T59(Q.B,g.dJ(z),Q.B.Z.E7())&&z.push(Q.B); +return z}; +InJ=function(Q,z){if(!Q.length)return!1;for(z+=1;z=z){z=L;break a}}z=b}return z<0?NaN:InJ(Q,H?z:0)?Q[z].startTime:NaN}; +im=function(Q){return!(!Q.B||Q.B.Z===Q.Z)}; +skA=function(Q){return im(Q)&&Q.Z.SH()&&Q.B.Z.info.oiz&&f.j1080&&!Q.HP&&(Q.mq=36700160,Q.gh=5242880,Q.En=Math.max(4194304,Q.En),Q.HP=!0);z.video.Z>2160&&!Q.ON&&(Q.mq=104857600,Q.oi=13107200,Q.ON=!0);g.Mf(Q.aj.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?z.isEncrypted()&&g.mW()&&g.VC("samsung")&&(g.VC("kant")||g.VC("muse"))&&(Q.oi=g.Mf(Q.aj.experiments,"html5_samsung_kant_limit_max_bitrate")):z.isEncrypted()&&g.mW()&&g.VC("kant")&&(Q.oi=1310720);Q.ID!==0&&z.isEncrypted()&&(Q.oi=Q.ID);Q.W0!==0&&z.isEncrypted()&& +H&&(Q.oi=Q.W0);z.oi&&(Q.l5=Math.max(Q.rz,Math.min(Q.En,5*z.oi)))}; +dH=function(Q){return Q.Z&&Q.dS&&Q.playbackStartPolicy}; +mr=function(Q){return Q.B||Q.Z&&Q.D6}; +wH=function(Q,z,H,f){Q.dS&&(Q.playbackStartPolicy=z,Q.k6=H,Q.LU=f)}; +V8=function(Q,z,H){H=H===void 0?0:H;return g.Mf(Q.aj.experiments,z)||H}; +kyY=function(Q){var z=Q===void 0?{}:Q;Q=z.kF;var H=z.e2;var f=z.V9;var b=z.Xg;z=z.I_;this.kF=Q;this.e2=H;this.V9=f;this.Xg=b;this.I_=z}; +lJv=function(Q,z){if(z<0)return!0;var H=Q.Xg();return z0)return 2;if(z<0)return 1;H=Q.Xg();return z(0,g.IE)()?0:1}; +TX=function(Q,z,H,f,b,L,u,X,v,y,q,M,C,t){t=t===void 0?null:t;g.h.call(this);var E=this;this.xv=Q;this.policy=z;this.videoTrack=H;this.audioTrack=f;this.D=b;this.Z=L;this.timing=u;this.S=X;this.schedule=v;this.n3=y;this.L=q;this.Ze=M;this.uE=C;this.KE=t;this.wh=!1;this.dM="";this.Xc=null;this.Ds=NaN;this.L3=!1;this.B=null;this.cB=this.U=NaN;this.pV=this.j=0;this.logger=new g.LH("dash");this.Po={hL:function(G,x){return E.hL(G,x)}}; +this.policy.gA>0&&(this.dM=g.Ob(this.policy.gA));this.policy.Ef&&(this.N=new kp(this.xv,this.policy,this.schedule),g.W(this,this.N))}; +QlA=function(Q,z,H){var f=z.B?z.B.Z.Mz:z.Z.Mz;var b=Q.D,L;(L=!Q.policy.AP)||(L=jl(f.Z)===jl(f.L));L?f=!1:(b=n_(b,jl(f.L)),L=6E4*Math.pow(b.D,1.6),(0,g.IE)()=b.D?(b.On("sdai",{haltrq:L+1,est:b.D}),f=!1):f=b.B!==2;if(!f||!jA(z.B?z.B.Z.Mz:z.Z.Mz,Q.policy,Q.D,Q.xv.g5())||Q.xv.isSuspended&&(!Zd(Q.schedule)||Q.xv.Vh))return!1;if(Q.policy.D&&Ya>=5)return g.Re(Q.xv.x8),!1;if(Q.n3.isManifestless){if(z.L.length>0&&z.B&&z.B.Ah===-1||z.L.length>=Q.policy.Br||!Q.policy.x6&&z.L.length>0&&!Q.policy.N.e2)return!1;if(z.Y)return!Q.n3.isLive||!isNaN(Q.Ds)}if(cQa(z))return Q.logger.debug("Pending request with server-selectable format found"), +!1;if(!z.B){if(!z.Z.SH())return!1;D_(z,Q.xv.getCurrentTime())}if(mp(z)&&(z.qC()!==mp(z)||Q.xv.isSuspended))return!1;b=(f=Q.policy.pc)&&!z.L.length&&sR(z,!0)=Q.policy.hY)return!1;f=z.B;if(!f)return!0;f.type===4&&f.Z.SH()&&(z.B=g.dJ(f.Z.ev(f)),f=z.B);if(!f.lc()&&!f.Z.Me(f))return!1;L=Q.n3.l8||Q.n3.D;if(Q.n3.isManifestless&&L){L=z.Z.index.Xg();var u=H.Z.index.Xg(); +L=Math.min(L,u);if(z.Z.index.Oa()>0&&L>0&&f.Ah>=L)return z.yl=L,H.yl=L,!1}if(f.Z.info.audio&&f.type===4||f.lc())return!1;L=!z.S&&!H.S;if(b=!b)b=f.j,b=!!(H.B&&!rH(H,H.B)&&H.B.jz9a(Q,z)?(z9a(Q,z),!1):(Q=z.nH)&&Q.isLocked()?!1:!0}; +z9a=function(Q,z){var H=Q.Z;H=H.Z?H.Z.BS:null;if(Q.policy.De&&H)return H.startSecs+H.NB+15;z=WN(Q.xv,z);Q.policy.KH>0&&(H=((0,g.IE)()-Q.xv.Yf)/1E3,z=Math.min(z,Q.policy.KH+Q.policy.kX*H));H=Q.xv.getCurrentTime()+z;return Q.policy.ZE&&(z=HoZ(Q.xv)+Q.policy.ZE,z=0||z.Mz.DR("defrag")==="1"||z.Mz.DR("otf")==="1"){z=null;break a}b=Ji(0,4096)}b=new ad([new Id(5,f.Z,b,"createProbeRequestInfo"+f.Y,f.Ah)],z.B);b.Fp=H;b.Z=z.Z;z=b}z&&lm(Q,z)}}; +lm=function(Q,z){Q.xv.xa(z);var H=SUJ(z),f=Q.xv.bR();H={L5:Q.schedule,TJ:H,fS:oAn(Q.S,H),Aj:Ai(z.Tv[0]),oD:FC(z.Mz.Z),vV:Q.policy.L,eJ:function(u,X){Q.xv.Nn(u,X)}}; +if(Q.schedule.B.j){var b,L;H.QF=(((b=Q.videoTrack.Z)==null?void 0:b.info.oi)||0)+(((L=Q.audioTrack.Z)==null?void 0:L.info.oi)||0)}Q.Xc&&(H.Ah=z.Tv[0].Ah,H.Ds=z.Ds,H.Xc=Q.Xc);f={yq:Xsk(z,Q.xv.getCurrentTime()),Yj:Q.policy.Ci&&c8(z)&&z.Tv[0].Z.info.video?W$9(Q.L):void 0,vO:Q.policy.De,poToken:Q.xv.tj(),Pp:Q.xv.kU(),dM:Q.dM,cB:isNaN(Q.cB)?null:Q.cB,KE:Q.KE,uE:Q.uE,pV:Q.pV,Ca:f};return new cN(Q.policy,z,H,Q.D,function(u,X){try{a:{var v=u.info.Tv[0].Z,y=v.info.video?Q.videoTrack:Q.audioTrack;if(!(u.state>= +2)||u.isComplete()||u.TY()||!(!Q.xv.vI||Q.xv.isSuspended||sR(y)>3)){var q=lnn(u,Q.policy,Q.D);q===1&&(Q.L3=!0);fdu(Q,u,q);if(u.isComplete()||u.Sm()&&X<3){if(Q.policy.L){var M=u.timing.EU();M.rst=u.state;M.strm=u.xhr.yg();M.cncl=u.xhr&&u.f5.D?1:0;Q.xv.On("rqs",M)}u.jz&&Q.xv.On("sbwe3",{},!0)}if(!Q.Sm()&&u.state>=2){El8(Q.timing,u,v);var C=Q.xv;Q.cB&&u.Ok&&C&&(Q.cB=NaN,Q.xv.Y2(u.Ok),Q.xv.J1(),Q.xv.On("cabrUtcSeek",{mediaTimeSeconds:u.Ok}));u.w$&&Q.cB&&u.w$&&!u.w$.action&&(Q.xv.fl(Q.cB),Q.cB=NaN,Q.xv.On("cabrUtcSeekFallback", +{targetUtcTimeSeconds:Q.cB}));u.Be&&Q.xv.N3(u.Be);Q.policy.d4&&(Q.pV=u.pV);if(u.state===3){ab(y,u);c8(u.info)&&Rb(Q,y,v,!0);if(Q.B){var t=u.info.ZM();t&&Q.B.j6(u.info.Tv[0].Ah,v.info.id,t)}Q.xv.SA()}else if(u.isComplete()&&u.info.Tv[0].type===5){if(u.state!==4)u.vl()&&Q.xv.handleError(u.JF(),u.P0());else{var E=(u.info.Tv[0].Z.info.video?Q.videoTrack:Q.audioTrack).L[0]||null;E&&E instanceof cN&&E.TY()&&E.SJ()}u.dispose()}else{u.vl()||boa(Q,u);var G;((G=u.HE)==null?0:G.itagDenylist)&&Q.xv.wK(u.HE.itagDenylist); +if(u.state===4)Qk(Q,u),Q.Z&&Z_J(Q.Z,u.info,Q.B);else if(Q.policy.KZ&&u.uZ()&&!u.isComplete()&&!Qk(Q,u)&&!u.vl())break a;u.vl()&&(LD_(Q,u),isNaN(Q.cB)||(Q.xv.fl(Q.cB),Q.cB=NaN));Q.policy.gT&&!u.isComplete()?zc(Q.xv):Q.xv.SA();var x=Rx9(u,Q.policy,Q.D);fdu(Q,u,x)}}}}}catch(J){X=Q.wh?1:0,Q.wh=!0,u=JI(X),X=NC(J,X),Q.xv.handleError(X.errorCode,X.details,X.severity),u||Q.xv.lH()}},f)}; +boa=function(Q,z){if(z.Xs&&z.state>=2&&z.state!==3){var H=z.xhr.getResponseHeader("X-Response-Itag");if(H){Q.logger.debug(function(){return"Applying streamer-selected format "+H}); +var f=h59(Q.L,H),b=z.info.L;b&&(b-=f.XO(),f.L=!0,z.info.Tv[0].Z.L=!1,VlY(z,f.t3(b)),HW(Q.xv,Q.videoTrack,f),iyk(Q.videoTrack,f),Q.xv.Gz(f.info.video.quality),(b=z.RP())&&f.info.lastModified&&f.info.lastModified!==+b&&ab(Q.videoTrack,z))}else z.Xs=!1}}; +LD_=function(Q,z){var H=z.info.Tv[0].Z,f=z.JF();if(FC(H.Mz.Z)){var b=g.Z3(z.q8(),3);Q.xv.On("dldbrerr",{em:b||"none"})}b=z.info.Tv[0].Ah;var L=hs(Q.Z,z.info.Tv[0].D,b);f==="net.badstatus"&&(Q.j+=1);if(z.canRetry()&&fB(Q.xv)){if(!(z.info.Mz.B>=Q.policy.U2&&Q.B&&z.info.isDecorated()&&f==="net.badstatus"&&Q.B.FQ(L,b))){b=(H.info.video&&H.Mz.B>1||z.Yu===410||z.Yu===500||z.Yu===503)&&!(wY(Q.L.S).size>0)&&!FC(H.Mz.Z);L=z.P0();var u=H.info.video?Q.videoTrack:Q.audioTrack;b&&(L.stun="1");Q.xv.handleError(f, +L);Q.Sm()||(b&&(Q.logger.debug(function(){return"Stunning format "+H.info.id}),Q8(Q.L,H)),ab(u,z),Q.xv.SA())}}else u=1,Q.B&&z.info.isDecorated()&&f==="net.badstatus"&&Q.B.FQ(L,b)&&(u=0),Q.n3.isLive&&z.JF()==="net.badstatus"&&Q.j<=Q.policy.WY*2?(XRZ(Q.n3),Q.n3.l8||Q.n3.isPremiere?dz(Q.xv,0,{lr:"badStatusWorkaround"}):Q.n3.D?dz(Q.xv,Q.n3.jm,{lr:"badStatusWorkaround", +F2:!0}):bK(Q.xv)):Q.xv.handleError(f,z.P0(),u)}; +Qk=function(Q,z){if(Q.policy.useUmp&&z.Sm())return!1;try{var H=z.info.Tv[0].Z,f=H.info.video?Q.videoTrack:Q.audioTrack;if(Q.n3.isManifestless&&f){Q.j=0;f.Y&&(z.Sm(),z.isComplete()||z.uZ(),f.Y=!1);z.ji()&&Q.xv.EM.iH(1,z.ji());var b=z.Oa(),L=z.iQ();jb(Q.n3,b,L)}if(z.info.Aj()&&!UN(z.info))for(var u=g.n(z.Rx()),X=u.next();!X.done;X=u.next())JQ6(f,X.value);for(Q.xv.getCurrentTime();f.L.length&&f.L[0].state===4;){var v=f.L.shift();oiL(f,v);f.En=v.Y0()}f.L.length&&oiL(f,f.L[0]);var y=!!mp(f);y&&z instanceof +UJ&&(H.info.Wq()?X8v(Q.timing):SNL(Q.timing));return y}catch(q){z=z.P0();z.origin="hrhs";a:{Q=Q.xv;H=q;if(H instanceof Error){z.msg||(z.msg=""+H.message);z.name||(z.name=""+H.name);if(H instanceof g.kQ&&H.args)for(f=g.n(Object.entries(H.args)),b=f.next();!b.done;b=f.next())L=g.n(b.value),b=L.next().value,L=L.next().value,z["arg"+b]=""+L;g.ax(H);if(H.level==="WARNING"){Q.HI.a4(z);break a}}Q.handleError("fmt.unplayable",z,1)}return!1}}; +uuu=function(Q){var z=Q.videoTrack.Z.index;Q.Xc=new kyY({kF:Q.policy.kF,e2:Q.policy.N.e2,V9:z.NR(),Xg:function(){return z.Xg()}, +I_:function(){return z.I_()}})}; +Rb=function(Q,z,H,f){var b=Q.policy.o8?Q.xv.g5():0;H.SH()||H.WC()||H.L||!jA(H.Mz,Q.policy,Q.D,b)||H.info.Rj==="f"||Q.policy.Z||(f?(f=Q.S,b=H.info,f=JK9(f,b.video?f.policy.i9:f.policy.kc,b.oi)):f=0,f=H.t3(f),Q=lm(Q,f),UN(f)&&ob(z,Q),H.L=!0)}; +LB=function(Q,z,H,f,b,L,u,X){g.h.call(this);var v=this;this.xv=Q;this.Wo=z;this.videoTrack=H;this.audioTrack=f;this.n3=b;this.U=L;this.isAudioOnly=u;this.N=X;this.B=D1;this.L3=!1;this.logger=new g.LH("sabr");this.S=this.wh=this.Ze=!1;this.videoInfos=this.Y=this.U.videoInfos;this.L=this.De=this.U.Z;this.Z=new Vg(z,L,function(y,q){v.xv.On(y,q)}); +this.Wo.zO||S8k(this);this.isAudioOnly&&X0n(this,this.n3.Z["0"])}; +vhu=function(Q,z){var H=[];z=g.n(z);for(var f=z.next();!f.done;f=z.next())H.push(g.Rj(f.value,Q.n3.AZ));return H}; +X0n=function(Q,z,H){z!==Q.D&&(Q.D&&(Q.L3=!0),Q.D=z,Q.Zg(z,Q.videoTrack,H))}; +Cf6=function(Q,z){Q.logger.debug("setConstraint: "+Sl(z));mr(Q.Wo)&&(Q.wh=z.reason==="m"||z.reason==="l"?!0:!1);z.reason==="m"?z.isLocked()&&yEv(Q,z.Z):q8J(Q,z)?MNk(Q,z.B,z.Z):Q.videoInfos=Q.Y;Q.B=z}; +q8J=function(Q,z){return Q.Wo.yA&&z.reason==="b"||Q.Wo.nT?!1:Q.Wo.Jk?!0:z.reason==="l"||z.reason==="b"||z.reason==="o"}; +tN9=function(Q,z){return z.isLocked()&&Q.Z.B||Q.B===void 0?!1:z.jH(Q.B)}; +Ehp=function(Q,z){var H,f=(H=Q.D)==null?void 0:H.info.video.Z;return Q.L3?!0:Q.D?z!==f?!0:!Q.Z.B||Q.Wo.Tw&&Q.Z.Z===Q.D.info.itag?!1:!0:!1}; +yEv=function(Q,z){var H=Q.Z.Z;if(H){Q.videoInfos=Q.Y;var f=g.wJ(Q.videoInfos,function(b){return b.id===H}); +f&&f.video.Z===z?Q.videoInfos=[f]:(f=Q.videoInfos.map(function(b){return b.id}),Q.xv.On("sabrpf",{pfid:""+H, +vfids:""+f.join(".")}),MNk(Q,z,z),k$(Q.Z,""))}else MNk(Q,z,z)}; +MNk=function(Q,z,H){Q.videoInfos=Q.Y;Q.videoInfos=g.q3(Q.videoInfos,function(f){return f.video.Z>=z&&f.video.Z<=H})}; +S8k=function(Q){var z=F$L(Q.Z,Q.N);z&&(Q.L=[z])}; +p0u=function(Q,z,H){if(Q.Wo.zO){if(Q.N){var f=g.q3(Q.L,function(b){return b.id===Q.N}); +return uK(f,H).includes(z)}f=g.q3(Q.L,function(b){var L;return!((L=b.Ii)==null||!L.isDefault)}); +if(f.length>0)return uK(f,H).includes(z)}return uK(Q.L,H).includes(z)}; +uK=function(Q,z){return Q.map(function(H){return Fw(g.Rj(H,z))})}; +nhY=function(Q){var z;if((z=Q.B)==null?0:z.isLocked())return Q.videoInfos;var H=wY(Q.Z);z=g.q3(Q.videoInfos,function(f){return f.oi>Q.Wo.oi?!1:!H.has(f.id)}); +jdL(Q.Z)&&(z=g.q3(z,function(f){return f.video.width<=854&&f.video.height<=480})); +return z}; +Gtk=function(Q,z,H,f){var b=Q.n3,L=Q.HI.getVideoData(),u=g.wr(L),X=Q.LR,v=Zr({aj:L.C(),HI:Q.HI,IG:Q.IG,Wo:Q.Wo,Yf:Q.Yf,Nm:Q.Nm,GX:Q.GX,Cb:Q.Cb,He:Q.He,isPrefetch:Q.isPrefetch,pk:Q.pk,sabrLicenseConstraint:L.sabrLicenseConstraint,VT:Q.VT,jM:Q.jM,uJ:Q.uJ,Ik:Q.Ik,wzh:!!X}),y=Gh(L,Q.Ca,Q.nextRequestPolicy,Q.S6,Q.XN,Q.Yxh,Q.fJ);f&&H&&(f=y.Ad?y.Ad.map(function(G){return G.type}):[],H("sabr",{stmctxt:f.join("_"), +unsntctxt:y.tb?y.tb.join("_"):""}));f=Q.qy;var q=Q.aT;if(q===void 0&&f===void 0){var M;q=gh_(b.AZ,(M=Q.gJ)==null?void 0:M.video);var C;f=gh_(b.AZ,(C=Q.gJ)==null?void 0:C.audio)}if(L.KE)var t=L.KE;L={hK:v,u$:Q.u$,qy:f,aT:q,LR:X,videoPlaybackUstreamerConfig:t,Cx:y};Q.t8&&(L.t8=Q.t8);if(u&&z){u=new Map;var E=g.n(b.f3);for(X=E.next();!X.done;X=E.next())X=X.value,(v=b.mq[VPY(b,X)]||"")?(u.has(v)||u.set(v,[]),u.get(v).push(X)):H&&H("ssap",{nocid4fmt:(X.itag||"")+"_"+(X.lmt||0)+"_"+(X.xtags||"")});b=new Map; +E=g.n(Q.ue);for(X=E.next();!X.done;X=E.next())X=X.value,v=X.startTimeMs||0,y=void 0,M=(y=z)==null?void 0:PN(y,v),y=M.clipId,M=M.hB,y?(b.has(y)||(C=u.get(y)||[],b.set(y,{clipId:y,ue:[],xq:C})),M!==0&&(X.startTimeMs=v-M),b.get(y).ue.push(X)):H&&(y=void 0,H("ssap",{nocid4range:"1",fmt:((y=X.formatId)==null?void 0:y.itag)||"",st:v.toFixed(3),d:(X.durationMs||0).toFixed(3),timeline:S8(z)}));L.Yi=[];b=g.n(b.entries());for(u=b.next();!u.done;u=b.next())u=g.n(u.value),u.next(),u=u.next().value,L.Yi.push(u); +if(Q.ue.length&&!L.Yi.length){H&&H("ssap",{nobfrange:"1",br:Zoa(Q.ue),timeline:S8(z)});return}Q.xl&&(L.xl=Q.xl);Q.Oh&&(L.Oh=Q.Oh)}else L.ue=Q.ue,L.xq=b.f3,u&&((E=Q.ue)==null?void 0:E.length)>0&&!z&&H&&H("ssap",{bldmistlm:"1"});return L}; +gh_=function(Q,z){return z?[g.Rj(z.info,Q)]:[]}; +Zoa=function(Q){var z="";Q=g.n(Q);for(var H=Q.next();!H.done;H=Q.next()){H=H.value;var f=void 0,b=void 0,L=void 0;z+="fmt."+(((f=H.formatId)==null?void 0:f.itag)||"")+"_"+(((b=H.formatId)==null?void 0:b.lmt)||0)+"_"+(((L=H.formatId)==null?void 0:L.xtags)||"")+";st."+(H.startTimeMs||0).toFixed(3)+";d."+(H.durationMs||0).toFixed(3)+";"}return z}; +XT=function(Q,z,H){var f=this;this.requestType=Q;this.Mz=z;this.zL=H;this.B=null;this.Po={CUv:function(){var b;return(b=f.data)==null?void 0:b.isPrefetch}, +XN:function(){var b;return(b=f.data)==null?void 0:b.XN}}}; +fZu=function(Q,z,H){z=Gz(Q.Mz,$$v(Q,z,H),z);Q.PQ()&&z.set("probe","1");return z}; +$$v=function(Q,z,H){Q.Fp===void 0&&(Q.Fp=Q.Mz.Fp(z,H));return Q.Fp}; +jln=function(Q){var z,H;return((z=Q.Z)==null?void 0:(H=z.hK)==null?void 0:H.QZ)||0}; +FDu=function(Q){var z,H;return!!((z=Q.Z)==null?0:(H=z.hK)==null?0:H.VT)}; +x$_=function(Q){var z={},H=[],f=[];if(!Q.data)return z;for(var b=0;b0;v--)H.push(X)}H.length!==u?z.error=!0:(L=H.slice(-L),H.length=b,ktY(z,H,L));break;case 1:ktY(z,Uz,D$c);break;case 0:Tmc(z, +z.Z&7);H=WW(z,16);b=WW(z,16);(H^b)!==65535&&(z.error=!0);z.output.set(z.data.subarray(z.B,z.B+H),z.L);z.B+=H;z.L+=H;break;default:z.error=!0}Q.L>Q.output.length&&(Q.output=new Uint8Array(Q.L*2),Q.L=0,Q.B=0,Q.D=!1,Q.Z=0,Q.register=0)}Q.output.length!==Q.L&&(Q.output=Q.output.subarray(0,Q.L));return Q.error?new Uint8Array(0):Q.output}; +ktY=function(Q,z,H){z=m$Z(z);H=m$Z(H);for(var f=Q.data,b=Q.output,L=Q.L,u=Q.register,X=Q.Z,v=Q.B;;){if(X<15){if(v>f.length){Q.error=!0;break}u|=(f[v+1]<<8)+f[v]<>=7;y<0;)y=z[(u&1)-y],u>>=1;else u>>=y&15;X-=y&15;y>>=4;if(y<256)b[L++]=y;else if(Q.register=u,Q.Z=X,Q.B=v,y>256){u=iK[y];u+=WW(Q,cW[y]);v=w0u(Q,H);X=hJ[v];X+=WW(Q,KD6[v]);if(ldu&&uH.length&&(Q.error=!0);Q.register|=(H[f+1]<<8)+H[f]<=0)return Tmc(Q,H&15),H>>4;for(Tmc(Q,7);H<0;)H=z[WW(Q,1)-H];return H>>4}; +WW=function(Q,z){for(;Q.Z=Q.data.length)return Q.error=!0,0;Q.register|=Q.data[Q.B++]<>=z;Q.Z-=z;return H}; +Tmc=function(Q,z){Q.Z-=z;Q.register>>=z}; +m$Z=function(Q){for(var z=[],H=g.n(Q),f=H.next();!f.done;f=H.next())f=f.value,z[f]||(z[f]=0),z[f]++;var b=z[0]=0;H=[];var L=0;f=0;for(var u=1;u7&&(L+=z[u]);for(b=1;b>v&1;X=L<<4|u;if(u<=7)for(v=1<<7-u;v--;)f[v<>=7;u--;){f[v]||(f[v]=-z,z+=2);var y=b&1;b>>=1;v=y-f[v]}f[v]=X}}return f}; +R9n=function(Q){var z,H,f,b,L,u,X;return g.B(function(v){switch(v.Z){case 1:if(!("DecompressionStream"in window))return v.return(g.e9n(new g.VN_(Q)));z=new DecompressionStream("gzip");H=z.writable.getWriter();H.write(Q);H.close();f=z.readable.getReader();b=new gt([]);case 2:return g.Y(v,f.read(),5);case 5:L=v.B;u=L.value;if(X=L.done){v.bT(4);break}b.append(u);v.bT(2);break;case 4:return v.return(b.K4())}})}; +DD=function(Q,z){this.Z=Q;this.xs=z}; +QZa=function(Q){return tK(tK(q1(function(){return CE(Q.xs,function(z){return Q.Np(Q.Z,z)})}),function(){return Q.ul(Q.Z)}),function(){return Q.dB(Q.Z)})}; +zy6=function(Q,z){return QZa(new DD(Q,z))}; +bv9=function(Q){Ft.call(this,"onesie");this.Bo=Q;this.Z={};this.L=!0;this.D=null;this.queue=new WDJ(this);this.S={};this.j=SV6(function(z,H){var f=this;return function L(){var u,X,v,y,q,M,C,t,E,G,x,J,I,r,U,D,T,k,bL,SY;return MYp(L,function(Q9){switch(Q9.Z){case 1:g.Fa(Q9,2);f.Bo.Bm();u=function(V){return function(R){throw{name:V,message:R};}}; +X=z.K4();g.jY(Q9,4,5);if(!H){Q9.bT(7);break}return X_Z(Q9,tK(Hv6(f.Bo,X,f.iv),u("DecryptError")).wait(),8);case 8:v=Q9.B;case 7:if(!f.Bo.enableCompression){Q9.bT(9);break}return X_Z(Q9,tK(zy6((M=v)!=null?M:X,f.Bo.C().LA),u("DecompressError")).wait(),10);case 10:y=Q9.B;case 9:q=Wm((t=(C=y)!=null?C:v)!=null?t:X,XDk);case 5:g.oJ(Q9,0,2);if(G=(E=f.Bo.C())==null?void 0:E.xs)((x=v)==null?void 0:x.buffer)===G.exports.memory.buffer&&G.free(v.byteOffset),((J=y)==null?void 0:J.buffer)===G.exports.memory.buffer&& +G.free(y.byteOffset);g.Nk(Q9,6);break;case 4:throw r=I=g.OA(Q9),new oj("onesie.response.parse",{name:(k=r.name)!=null?k:"unknown",message:(bL=r.message)!=null?bL:"unknown",wasm:((U=f.Bo.C())==null?0:U.xs)?((D=f.Bo.C())==null?0:(T=D.xs)==null?0:T.fV)?"1js":"1":"0",enc:f.L,gz:f.Bo.enableCompression,webcrypto:!!$9()});case 6:return f1Z(q),SY=g.Jr(q.body),Q9.return(SY);case 2:g.oJ(Q9),g.Nk(Q9,0)}})}()})}; +LIJ=function(Q){var z=Q.queue;z.Z.length&&z.Z[0].isEncrypted&&!z.B&&(z.Z.length=0);z=g.n(Object.keys(Q.Z));for(var H=z.next();!H.done;H=z.next()){H=H.value;var f=Q.Z[H];if(!f.Ko){var b=Q.queue;b.Z.push({videoId:f.videoId,formatId:H,isEncrypted:!1});b.B||aD(b)}}}; +Ss_=function(Q,z){var H=z.getLength(),f=!1;switch(Q.D){case 0:Q.Bo.V("html5_future_onesie_ump_handler_on_player_response")?tK(CE(Q.j(z,Q.L),function(b){uRc(Q.Bo,b)}),function(b){Q.Bo.d7(b)}):Q.Bm(z,Q.L).then(function(b){uRc(Q.Bo,b)},function(b){Q.Bo.d7(b)}); +break;case 2:Q.Pc("ormk");z=z.K4();Q.queue.decrypt(z);break;default:f=!0}Q.Bo.cG&&Q.Bo.On("ombup","id.11;pt."+Q.D+";len."+H+(f?";ignored.1":""));Q.D=null}; +f1Z=function(Q){if(Q.LN!==1)throw new oj("onesie.response.badproxystatus",{st:Q.LN,webcrypto:!!$9(),textencoder:!!g.W_.TextEncoder});if(Q.Et!==200)throw new oj("onesie.response.badstatus",{st:Q.Et});}; +XV6=function(Q){return new Promise(function(z){setTimeout(z,Q)})}; +vav=function(Q,z){var H=Q.C();H=Q.d4&&H.V("html5_onesie_preload_use_content_owner");var f=Q.KS,b=Ty(z.rh.experiments,"debug_bandaid_hostname");if(b)z=sz(z,b);else if((H===void 0?0:H)&&(f==null?0:f.url)&&!z.B){var L=jl(new g.GQ(f.url));z=sz(z,L)}else z=(L=z.Z.get(0))==null?void 0:L.location.clone();if(z&&Q.videoId){L=bf(Q.videoId);Q=[];if(L)for(L=g.n(L),H=L.next();!H.done;H=L.next())Q.push(H.value.toString(16).padStart(2,"0"));z.set("id",Q.join(""));return z}}; +yh8=function(Q,z,H){H=H===void 0?0:H;var f,b;return g.B(function(L){if(L.Z==1)return f=[],f.push(z.load()),H>0&&f.push(XV6(H)),g.Y(L,Promise.race(f),2);b=vav(Q,z);return L.return(b)})}; +qsY=function(Q,z,H,f){f=f===void 0?!1:f;Q.set("cpn",z.clientPlaybackNonce);Q.set("opr","1");var b=z.C();Q.set("por","1");$9()||Q.set("onem","1");z.startSeconds>0&&Q.set("osts",""+z.startSeconds);f||(b.V("html5_onesie_disable_partial_segments")&&Q.set("oses","1"),z=b.V("html5_gapless_onesie_no_media_bytes")&&f9(z)&&z.d4,H&&!z?(z=H.audio,Q.set("pvi",H.video.join(",")),b.V("html5_onesie_disable_audio_bytes")||Q.set("pai",z.join(",")),ki||Q.set("osh","1")):(Q.set("oad","0"),Q.set("ovd","0"),Q.set("oaad", +"0"),Q.set("oavd","0")))}; +Mwa=function(Q,z,H,f,b){b=b===void 0?!1:b;var L="https://youtubei.googleapis.com/youtubei/"+z.N7.innertubeApiVersion+"/player",u=[{name:"Content-Type",value:"application/json"}];f&&u.push({name:"Authorization",value:"Bearer "+f});u.push({name:"User-Agent",value:g.Iu()});g.ey("EOM_VISITOR_DATA")?u.push({name:"X-Goog-EOM-Visitor-Id",value:g.ey("EOM_VISITOR_DATA")}):(H=H.visitorData||g.ey("VISITOR_DATA"))&&u.push({name:"X-Goog-Visitor-Id",value:H});(H=g.ey("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&u.push({name:"X-YouTube-Lava-Device-Context", +value:H});(z=Ty(z.experiments,"debug_sherlog_username"))&&u.push({name:"X-Youtube-Sherlog-Username",value:z});Q=Ar(JSON.stringify(Q));return{url:L,yS:u,postBody:Q,aYT:b,YK:b}}; +twp=function(Q,z,H,f,b,L){var u=g.Tp(Q,SBv,Q.YK?void 0:H.xs),X={encryptedClientKey:z.Z.encryptedClientKey,Kz:!0,x0:!0,Wf:CF_(H,!!Q.YK),Nd:H.experiments.Nc("html5_use_jsonformatter_to_parse_player_response")};if(Q.YK)X.wU5=u;else{Q=z.encrypt(u);var v;if(((v=H.xs)==null?void 0:v.exports.memory.buffer)===u.buffer&&Q.byteOffset!==u.byteOffset){var y;(y=H.xs)==null||y.free(u.byteOffset)}var q;Q=((q=H.xs)==null?void 0:q.yD(Q))||Q;u=X.q2=Q;(0,g.IE)();u=Qxp(new RSJ(z.Z.L),u,z.iv);X.vF=u;X.iv=z.iv}z=f.getVideoData(); +H=Zr({aj:H,HI:f,IG:z.startSeconds*1E3});b={AL:X,hK:H,onesieUstreamerConfig:b,VO:L,Cx:Gh(z)};z.reloadPlaybackParams&&(b.reloadPlaybackParams=z.reloadPlaybackParams);return b}; +Ean=function(Q,z,H){var f,b,L;return g.B(function(u){if(u.Z==1)return f=g.Tp(z,SBv),g.Y(u,rEZ(H,f),2);if(u.Z!=3)return b=u.B,g.Y(u,slv(H,b),3);L=u.B;return u.return({q2:b,encryptedClientKey:H.Z.encryptedClientKey,iv:H.iv,vF:L,Kz:!0,x0:!0,Wf:CF_(Q,!!z.YK),Nd:Q.experiments.Nc("html5_use_jsonformatter_to_parse_player_response")})})}; +pVp=function(Q,z,H,f,b,L){var u,X,v,y;return g.B(function(q){if(q.Z==1)return g.Y(q,Ean(H,Q,z),2);u=q.B;X=f.getVideoData();v=Zr({aj:H,HI:f,IG:X.startSeconds*1E3});y={AL:u,hK:v,onesieUstreamerConfig:b,VO:L,Cx:Gh(X)};X.reloadPlaybackParams&&(y.reloadPlaybackParams=X.reloadPlaybackParams);return q.return(y)})}; +CF_=function(Q,z){Q=gm(Q.schedule,!0);z=z||!!$9()&&Q>1572864;return"DecompressionStream"in window||!z}; +Vk=function(Q,z){g.h.call(this);var H=this;this.HI=Q;this.playerRequest=z;this.logger=new g.LH("onesie");this.xhr=null;this.state=1;this.LZ=new Ts;this.Ae=!1;this.playerResponse="";this.rN=new Qg(this);this.h8=new bv9(this);this.RU="";this.T3=this.Oz=!1;this.jB="";this.enableCompression=this.PW=this.hU=!1;this.E6=[];this.PR=this.D3=-1;this.rh=this.HI.C();this.videoData=this.HI.getVideoData();this.cG=this.rh.vz();this.pB=this.rh.Tw;this.Jz=new YY(this.pB.Z,this.rh.LA,OoJ(this.rh));this.U6=this.rh.V("html5_onesie_check_timeout"); +this.Zy=new g.lp(this.Pi,500,this);this.fD=new g.lp(this.zf,1E4,this);this.G8=new g.lp(function(){if(!H.isComplete()){var f=KB(H);H.d7(new oj("net.timeout",f))}},1E3); +this.qb=new g.lp(this.Qiv,2E3,this);this.fK=this.HI.kU();this.ZP=this.V("html5_onesie_wait_for_media_availability");g.W(this.videoData,this);g.W(this,this.Zy);g.W(this,this.fD);g.W(this,this.qb);g.W(this,this.Jz);Q=lD();ki&&Q&&(this.M8=new Map);this.VQ=new Map;this.bV=new Map;this.ez=new Map;this.qg=new Map}; +PW=function(Q,z){var H;return(H=Q.M8)==null?void 0:H.get(z)}; +gav=function(Q,z,H){var f;return g.B(function(b){if(b.Z==1)return Q.Pc("oprd_s"),na9(Q)?g.Y(b,Bm9(Q.Jz,z,H),3):(f=Q.Jz.decrypt(z,H),b.bT(2));b.Z!=2&&(f=b.B);Q.Pc("oprd_c");return b.return(f)})}; +Hv6=function(Q,z,H){Q.Pc("oprd_s");z=Y8v(Q.Jz).encrypt(z,H);CE(z,function(){Q.Pc("oprd_c")}); +return z}; +Zva=function(Q){return Q.V("html5_onesie_host_probing")||Q.cG?ki:!1}; +uRc=function(Q,z){Q.Pc("oprr");Q.playerResponse=z;Q.PW||(Q.ZP=!1);d9(Q)}; +d9=function(Q){if(!Q.playerResponse)return!1;if(Q.hU)return!0;var z=Q.videoData.V("html5_onesie_audio_only_playback")&&bE(Q.videoData);if(Q.M8&&Q.ZP){if(!Q.M8.has(Q.RU))return!1;var H=Q.M8.get(Q.RU),f;if(f=H){f=!1;for(var b=g.n(H.EV.keys()),L=b.next();!L.done;L=b.next())if(L=H.EV.get(L.value))for(var u=g.n(L.NZ),X=u.next();!X.done;X=u.next())X.value.dX>0&&(L.Wq?f=!0:z=!0);f=!(z&&f)}if(f)return!1}Q.Pc("ofr");Q.LZ.resolve(Q.playerResponse);if(!Q.U6){var v;(v=Q.G8)==null||v.start();Q.fD.start()}return Q.hU= +!0}; +$G6=function(Q){if(Q.M8&&!Q.V("html5_onesie_media_capabilities")){Q.Pc("ogsf_s");var z=srv(Q.HI.getVideoData(),function(f,b){Q.On(f,b)}),H=GZL(Q.HI); +z.video=xBa(H,z.video);Q.Pc("ogsf_c");if(z.video.length)return z;Q.On("ombspf","l."+H.B+";u."+H.Z+";o."+H.L+";r."+H.reason)}}; +na9=function(Q,z){return Q.V("html5_onesie_sync_request_encryption")||(z==null?0:z.YK)||g.Tt(Q.rh)&&Q.V("html5_embed_onesie_use_sync_encryption")?!1:!!$9()}; +KB=function(Q){if(!Q.wr)return{};var z=Q.wr.EU(),H;z.d=(H=Q.wr.yl)==null?void 0:H.dP();z.shost=Q.yy;z.ty="o";return z}; +jZ9=function(Q,z){var H,f;(f=(Q=(H=Q.M8)==null?void 0:H.get(z))==null)||(z=Q.L?!1:Q.L=!0,f=!z);return!f}; +FI6=function(Q,z,H,f,b,L,u,X,v,y,q){g.h.call(this);var M=this;this.HI=Q;this.xv=z;this.policy=H;this.audioTrack=f;this.videoTrack=b;this.n3=L;this.L5=u;this.uT=X;this.L=v;this.timing=y;this.U=q;this.Z=[];this.Y={};this.En=this.iT=!1;this.S6=new Set;this.S=this.mq=this.Ze=this.He=0;this.D=null;this.L3={ue:[],u$:[]};this.De={ue:[],u$:[]};this.j=null;this.jm=[];this.Po={kNl:function(){return M.Z}, +ERq:function(){return M.Y}, +CzI:function(){M.Z.length=0}, +Tx3:function(){return M.S6}, +Ffj:function(){return M.Ze}, +E$5:function(C){M.Ze=C}, +h7v:function(C){M.S=C}, +Y4:function(C){M.j=C}}; +this.videoData=this.HI.getVideoData();this.policy.Ef&&(this.f3=new kp(this.xv,this.policy,this.L5),g.W(this,this.f3))}; +oan=function(Q,z){z=z===void 0?!1:z;if(xG9(Q,z)){Q.policy.Y&&Q.xv.On("sabrcrq",{create:1});var H=new XT(0,Q.n3.N,Q);Q.policy.dQ>0&&Q.S++;z=Ov9(Q,H,z);Q.Z.push(z);var f;(f=Q.f3)==null||TSA(f,Q.n3.N)}}; +Ah9=function(Q,z){var H=Jhc(Q);if(Q.policy.MD){var f=Q.L3;var b=Q.De}else f=ma(Q,Q.audioTrack),b=ma(Q,Q.videoTrack);var L=[].concat(g.F(f.ue),g.F(b.ue));Q.policy.ZJ&&Q.j&&L.push.apply(L,g.F(Q.jm));var u=[].concat(g.F(f.u$),g.F(b.u$)),X=Q.xv.bR(),v,y,q=Q.HI,M=Q.n3,C=Q.B,t=Q.S6,E=Q.policy,G=Q.xv.Yf,x=HoZ(Q.xv)*1E3,J=(v=Q.yl)==null?void 0:v.GX;v=(y=Q.yl)==null?void 0:y.Cb;var I;y=Number((I=Q.L.D)==null?void 0:I.info.itag)||0;var r;I=Number((r=Q.L.j)==null?void 0:r.info.itag)||0;z={HI:q,n3:M,ue:L,u$:u, +IG:H,nextRequestPolicy:C,S6:t,Wo:E,Yf:G,Nm:x,GX:J,Cb:v,He:Q.He,isPrefetch:z||Q.xv.isSuspended,xl:y,Oh:I,Ca:X,fJ:Q.HI.Si()};H=Q.xv.tj();L=bf(H);H&&(z.XN=L);if(H=Q.HI.R_())z.VT=H*1E3;var U;H=Q.L;L=H.Ze;if((H.Wo.B&&H.Wo.Fu||((U=H.Wo)==null?0:U.Z&&U.D6))&&!L)for(U=g.n(H.L),u=U.next();!u.done;u=U.next())if(u.value.Ii){L=!0;break}U=mr(H.Wo)&&!L?[]:vhu(H,H.L);z.qy=U;U=Q.L;mr(U.Wo)&&!U.wh?U=[]:(H=nhY(U),H.length===0&&(H=U.Y),U=vhu(U,H));z.aT=U;z.LR=Q.policy.ZJ&&Q.j?[Q.j]:void 0;Q.policy.ra&&(z.uJ=Nra(Q.xv, +Q.audioTrack),z.Ik=Nra(Q.xv,Q.videoTrack));if(Q.policy.S){f=I18(Q,f.ue,b.ue);var D;if(b=(D=Q.D)==null?void 0:D.W4(f))z.t8=b}Q.policy.jm&&Q.Z.length>0&&Q.Z[0].TM()&&(z.Yxh=Q.Z[0].FO());return z}; +Jhc=function(Q){var z,H=Q.policy.j&&((z=Q.xv)==null?void 0:z.bJ());z=Q.xv.getCurrentTime()||0;z=Ysp(Q,z);var f=Q.xv.ex()||0;z+=f;f=Iq(Q.videoData)||g.NY(Q.videoData);var b=0;H?(f&&(b=Number.MAX_SAFE_INTEGER),Q.videoData.f3&&(b=Math.ceil(Q.videoData.jm*1E3))):b=Math.ceil(z*1E3);return Math.min(Number.MAX_SAFE_INTEGER,b)}; +Ysp=function(Q,z){if(Q.xv.isSeeking())return z;var H=Q.HI.aB();if(!H)return z;H=H.Ux();if(H.length===0||X$(H,z))return z;if(!WK(Q.videoTrack,z)&&!WK(Q.audioTrack,z))return Q.xv.On("sundrn",{b:0,lt:z}),z;for(var f=z,b=Infinity,L=0;Lz)){var u=z-H.end(L);u=20)?(Q.xv.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),z):f}; +I18=function(Q,z,H){var f=Q.xv.getCurrentTime()||0;z=rhp(Q,z,f);Q=rhp(Q,H,f);return Math.min(z,Q)}; +rhp=function(Q,z,H){Q=Q.xv.ex()||0;z=g.n(z);for(var f=z.next();!f.done;f=z.next()){var b=f.value;f=b.startTimeMs?b.startTimeMs/1E3-Q:0;b=f+(b.durationMs?b.durationMs/1E3:0);if(f<=H&&H<=b)return b}return H}; +xG9=function(Q,z){if(Q.policy.dQ>0){var H=Math.floor((0,g.IE)()/1E4);if(H===Q.mq){if(Q.S>=Q.policy.dQ){if(Q.S===Q.policy.dQ){var f={reason:"toomanyrequests"};f.limit=Q.S;Q.xv.handleError("player.exception",f);Q.S+=1}return!1}}else Q.mq=H,Q.S=0}z=!z&&!Zd(Q.L5)&&!Q.policy.uL;if(Q.xv.isSuspended&&(Q.xv.Vh||z))return!1;if(Q.wh&&(0,g.IE)()0&&(!Q.policy.jm||Q.Z.length!==1||!Q.Z[0].TM()))return!1;var b;if((b=Q.n3.N)==null||!jA(b,Q.policy,Q.Y,Q.xv.g5()))return!1; +b=Q.policy.Dj&&Q.policy.B&&Q.xv.t$();if(cK(Q.audioTrack)&&cK(Q.videoTrack)&&!b)return!1;if(Q.policy.B&&Q.N&&!Q.xv.t$())return Q.Hz("ssap",{pauseontlm:1}),!1;if(w9(Q,Q.audioTrack)&&w9(Q,Q.videoTrack))return Q.policy.L&&Q.xv.On("sabrHeap",{a:""+Yp(Q.audioTrack),v:""+Yp(Q.videoTrack)}),!1;if(b=Q.policy.S)b=!1,Q.U.B===2?b=!0:Q.U.B===3&&(Jhc(Q),Q.xv.ex(),z=I18(Q,N5(Q.audioTrack,Q.xv.isSeeking()).ue,N5(Q.videoTrack,Q.xv.isSeeking()).ue),H=Q.U,z>=H.L?(H.On("sdai",{haltrq:z,est:H.L}),z=!0):z=!1,z&&(b=!0)), +b&&Q.policy.Y&&Q.xv.On("sabrcrq",{waitad:1});if(b)return!1;Q.policy.MD&&(Q.L3=ma(Q,Q.audioTrack),Q.De=ma(Q,Q.videoTrack));if(!Q.B)return Q.policy.Y&&Q.xv.On("sabrcrq",{nopolicy:1}),!0;if(Q.HI.R_())return Q.policy.Y&&Q.xv.On("sabrcrq",{utc:1}),!0;if(Q.L.S)return Q.policy.Y&&Q.xv.On("sabrcrq",{audio:1}),!0;if(!Q.B.targetAudioReadaheadMs||!Q.B.targetVideoReadaheadMs)return Q.policy.Y&&Q.xv.On("sabrcrq",{noreadahead:1}),!0;if(Q.policy.j&&Q.xv.bJ())return Q.policy.Y&&Q.xv.On("sabrcrq",{seekToHead:1}), +!0;b=Math.min(WN(Q.xv,Q.audioTrack)*1E3,Q.B.targetAudioReadaheadMs);z=Math.min(WN(Q.xv,Q.videoTrack)*1E3,Q.B.targetVideoReadaheadMs);var L=Math.min(b,z);H=sR(Q.audioTrack,!0)*1E3;var u=sR(Q.videoTrack,!0)*1E3;if(Q.policy.MD){var X=Q.HI.getCurrentTime()*1E3;var v=sZL(Q.L3.ue,X);X=sZL(Q.De.ue,X)}else v=H,X=u;var y=vz||f>=0&&b.t9>f+1)break;H=Math.max(H,b.startTimeMs+b.durationMs);f=Math.max(f,b.Rz)}return Math.max(0,H-z)}; +Ov9=function(Q,z,H){var f={L5:Q.L5,eJ:function(v,y){Q.HI.Nn(v,y)}, +Aj:Q.policy.v0,vV:Q.policy.L};Q.L5.B.j&&(f.QF=(Q.videoTrack.Z.info.oi||0)+(Q.audioTrack.Z.info.oi||0));Q.policy.Pl&&(f.V9=Q.audioTrack.Z.index.NR(),f.Aj=!1);var b=$$v(z,Q.policy,Q.Y)?2:1;b!==Q.Ze&&(Q.Ze=b,a1Y(Q));H=Ah9(Q,H);if((Q.policy.B||Q.policy.jm)&&Q.policy.L&&H.S6){for(var L=b="",u=g.n(H.S6),X=u.next();!X.done;X=u.next())X=X.value,Q.videoData.sabrContextUpdates.has(X)?b+="_"+X:L+="_"+X;Q.xv.On("sabrbldrqs",{ctxts:b,misctxts:L})}z.setData(H,Q.xv.t$(),Q.policy,Q.Y)||!Q.policy.B&&!Q.policy.jm|| +Q.xv.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);f=new rY(Q.policy,z,Q.n3,Q.Y,Q,f,Q.xv.kU(),Q.policy.j2?Q.xv.t$():void 0);sf(Q.timing);Q.policy.Y&&Q.xv.On("sabrcrq",{rn:f.lZ(),probe:z.PQ()});return f}; +e8=function(Q,z){if(z.Sm()||Q.Sm())Q.policy.mZ||(Q.policy.j?Tc(Q.xv):Q.xv.SA());else{if(Q.policy.L&&z.isComplete()&&z instanceof rY){var H=Q.xv,f=H.On,b,L,u=Object.assign(z.wr.EU(),{rst:z.state,strm:z.xhr.yg(),d:(b=z.wr.yl)==null?void 0:b.dP(),cncl:z.xhr&&z.f5.D?1:0,rqb:z.oF,cwt:z.EQ,swt:(L=z.DO)==null?void 0:L.pn});b=Object.assign(x$_(z.info),u);f.call(H,"rqs",b)}if(z.isComplete()&&z.PQ()&&z instanceof rY)Q.policy.ys?z.Bs()?(z.dispose(),Q.Z.length===0?Q.xv.SA():(Q=Q.Z[0],Q instanceof rY&&Q.TY()&& +Q.SJ())):z.vl()&&Q.xv.handleError(z.JF(),z.P0()):(z.dispose(),Q.xv.SA());else{if(z.zG())z instanceof rY&&El8(Q.timing,z),a1Y(Q),UGJ(Q);else if(z.vl())H=Q.HI.R_(),z instanceof rY&&FDu(z.info)&&H&&Q.xv.fl(H),z instanceof Vk?Q.Z.pop():(H=1,z.canRetry()&&fB(Q.xv)&&(ch8(Q,z),H=0),Q.xv.handleError(z.JF(),z.P0(),H));else{if(Q.xv.isSuspended&&!z.isComplete())return;UGJ(Q)}z.Sm()||z instanceof Vk||(z.isComplete()?H=Rx9(z,Q.policy,Q.Y):(H=lnn(z,Q.policy,Q.Y),H===1&&(Q.iT=!0)),H!==0&&(f=new XT(1,z.info.Mz), +f.Fp=H===2,Ov9(Q,f)));Q.policy.gT&&!z.isComplete()?zc(Q.xv):Q.xv.SA()}}}; +UGJ=function(Q){for(;Q.Z.length&&Q.Z[0].L0(Q.Ki());){var z=Q.Z.shift();iv6(Q,z);if(Q.policy.S){var H=Q;if(!H.policy.C3&&z.L0(H.Ki())){var f=z.lZ();if(H.C3!==f){var b=z.rB();z=b.D3;var L=b.PR;b=b.isDecorated;!H.D||L<0||(H.C3=f,f=hs(H.U,L/1E3,z),L=H.xv.ex()||0,Uf(H.U,z,f-L,b,H.D))}}}}Q.Z.length&&iv6(Q,Q.Z[0])}; +iv6=function(Q,z){var H=new Set(z.Ne(Q.Ki()));H=g.n(H);for(var f=H.next();!f.done;f=H.next()){var b=f.value;if(!(f=!(z instanceof Vk))){f=Q.L;var L=f.n3.AZ,u=uK(f.videoInfos,L);f=p0u(f,b,L)||u.includes(b)}if(f&&(f=z.aD(b,Q.Ki()),L=Q.policy.ZJ&&Hs(f[0].Z.info.mimeType),(!(!L&&Q.policy.Fo&&f.length>0&&(f[0].Z.info.Wq()?sR(Q.audioTrack):sR(Q.videoTrack))>3)||z.isComplete())&&z.uZ(b,Q.Ki()))){b=z.Rx(b,Q.Ki());if(Q.policy.B){u=f[0].Z.info;var X=Q.xv.t$();if(X&&u){var v=z.mK();X.api.V("html5_ssap_set_format_info_on_video_data")&& +v===UR(X)&&(u.Wq()?X.playback.getVideoData().D=u:X.playback.getVideoData().B=u);if(X=lK(X.timeline,v))if(X=X[0].getVideoData())u.Wq()?X.D=u:X.B=u}}b=g.n(b);for(u=b.next();!u.done;u=b.next())if(u=u.value,Q.policy.L&&z instanceof Vk&&Q.xv.On("omblss",{s:u.info.aq()}),L)X=Q,X.videoData.AZ()&&X.j&&Fw(X.j)===Fw(g.Rj(u.info.Z.info,X.n3.AZ))&&X.HI.publish("sabrCaptionsDataLoaded",u,X.Sz.bind(X));else{X=u.info.Z.info.Wq();var y=u.info.Z;if(X){v=void 0;var q=Q.L,M=(v=z.IP(Q.Ki()))==null?void 0:v.token;q.Wo.YJ&& +q.S&&y!==q.j?v=!0:(q.S=!1,y!==q.j&&(q.j=y,q.Zg(y,q.audioTrack,M)),v=!1);if(Q.policy.YJ&&v)continue}else v=void 0,X0n(Q.L,y,(v=z.IP(Q.Ki()))==null?void 0:v.token);v=X?Q.audioTrack:Q.videoTrack;z instanceof Vk&&(v.Y=!1,z instanceof Vk&&(X?X8v(Q.timing):SNL(Q.timing)));try{Je(v,f,u)}catch(C){u=NC(C),Q.xv.handleError(u.errorCode,u.details,u.severity),v.lH(),Q.Xx(!1,"pushSlice"),Tc(Q.xv)}}}}}; +ch8=function(Q,z){Q.policy.jm?Q.Z.splice(Q.Z.indexOf(z)).forEach(function(H){H.dispose()}):(Q.Z.pop(),z==null||z.dispose())}; +hy8=function(Q,z,H){for(var f=[],b=0;b0)for(var z=g.n(Q.videoData.sabrContextUpdates.keys()),H=z.next();!H.done;H=z.next()){H=H.value;var f=void 0;((f=Q.videoData.sabrContextUpdates.get(H))==null?0:f.sendByDefault)&&Q.S6.add(H)}if(Q.policy.jm&&Q.Z.length)for(z=g.n(Q.Z),H=z.next();!H.done;H=z.next())(H=H.value.FO())&&H.type&&H.sendByDefault&&Q.S6.add(H.type)}; +KI6=function(Q){Q.policy.Vs&&(Q.yl=void 0,Q.He=0)}; +Vwp=function(Q,z){if(z.vl()||z.Sm()){var H=Q.xv,f=H.On,b=z.state;Q=Q.Ki();var L,u;if((z=(L=z.M8)==null?void 0:L.get(Q))==null)z=void 0;else{L=0;Q=z.Ne();for(var X=0;X=Q.policy.sR,u=!1;if(L){var X=0;!isNaN(z)&&z>Q.S&&(X=z-Q.S,Q.S=z);X/b=Q.policy.Lt&&!Q.L;if(!L&&!H&&ey9(Q,z))return NaN;H&&(Q.L=!0);a:{f=u;H=(0,g.IE)()/1E3-(Q.p_.gQ()||0)-Q.Y.Z-Q.policy.yR;L=Q.B.startTime;H=L+H;if(f){if(isNaN(z)){RD(Q,NaN,"n",z);L=NaN;break a}f=z-Q.policy.qD;f=L.D&&f<=L.j){f=!0;break a}f=!1}f=!f}if(f)return Q.On("ostmf",{ct:Q.getCurrentTime(),a:z.Z.info.Wq()}),!1;(Q=Q.wh)!=null&&(Q.EV.get(H).by=!0);return!0}; +b9v=function(Q){if(!Q.n3.AZ)return!0;var z=Q.HI.getVideoData();if(z.V("html5_skip_live_preroll_onesie")&&Q.HI.vG()||z.V("html5_skip_live_preroll_onesie_post_live")&&Q.HI.vG()&&(z.l8||z.isPremiere))return Q.On("ombpa",{}),!1;var H,f;if(Q.policy.zD&&!!((H=Q.Ze)==null?0:(f=H.pO)==null?0:f.eXI)!==Q.n3.l8)return Q.On("ombplmm",{}),!1;H=z.EY||z.liveUtcStartSeconds||z.Tx;if(Q.n3.l8&&H)return Q.On("ombplst",{}),!1;if(Q.n3.U)return Q.On("ombab",{}),!1;H=Date.now();return Fo(Q.n3)&&!isNaN(Q.L3)&&H-Q.L3>Q.policy.oG* +1E3?(Q.On("ombttl",{}),!1):Q.n3.Li&&Q.n3.D||!Q.policy.AC&&Q.n3.isPremiere||!(p9(z)===0||Q.policy.Z&&z.V("html5_enable_onesie_media_for_sabr_proxima_optin"))||z.V("html5_disable_onesie_media_for_mosaic")&&K9(z)||z.V("html5_disable_onesie_media_for_ssdai")&&z.isDaiEnabled()&&z.enableServerStitchedDai||z.V("html5_disable_onesie_media_for_lifa_eligible")&&Dm(z)?!1:!0}; +LjY=function(Q,z){var H=z.Z,f=Q.n3.AZ;if(b9v(Q))if(Q.wh&&Q.wh.EV.has(Fw(g.Rj(H.info,f)))){if(f=Fw(g.Rj(H.info,f)),fmL(Q,z)){var b=new ad(Q.wh.aD(f)),L=function(u){try{if(u.vl())Q.handleError(u.JF(),u.P0()),ab(z,u),c8(u.info)&&Rb(Q.S,z,H,!0),Q.SA();else if(Qk(Q.S,u)){var X;(X=Q.D)==null||Z_J(X,u.info,Q.N);Q.SA()}}catch(v){u=NC(v),Q.handleError(u.errorCode,u.details,u.severity),Q.lH()}}; +H.L=!0;UN(b)&&(ob(z,new UJ(Q.policy,f,b,Q.wh,L)),sf(Q.timing))}}else Q.On("ombfmt",{})}; +uDL=function(Q,z){z=z||Q.videoTrack&&Q.videoTrack.B&&Q.videoTrack.B.startTime||Q.getCurrentTime();var H=HW,f=Q.videoTrack,b=Q.Z;z=b.nextVideo&&b.nextVideo.index.EX(z)||0;b.De!==z&&(b.f3={},b.De=z,lk(b,b.Z));z=!b.Z.isLocked()&&b.U>-1&&(0,g.IE)()-b.Uz.Z&&z.reason==="b";f||b||H?(Q.HI.a4({reattachOnConstraint:f?"u":b?"drm":"perf",lo:z.B,up:z.Z}),Q.policy.Tw||(Q.B.Z.B=!1)):(Q.policy.Tw&&(Q.B.Z.B=!1),Tc(Q))}}else if(!IZu(Q.Z,z)&&Q.videoTrack){Q.logger.debug(function(){return"Setting constraint: r="+z.reason+" u="+z.Z}); +H=Q.Z.Z;tnc(Q,YN_(Q.Z,z));uDL(Q);f=z.isLocked()&&z.reason==="m"&&Q.Z.wh;b=Q.policy.PN&&z.reason==="l"&&im(Q.videoTrack);H=H.Z>z.Z&&z.reason==="b";var L=Q.Z.uT&&!p3();f||b||H||L?Q.HI.a4({reattachOnConstraint:f?"u":b?"drm":L?"codec":"perf"}):Tc(Q)}}; +p7v=function(Q,z,H){if((!Q.vI||ZF(Q.vI)&&!Q.policy.rq)&&!Q.Ff.isSeeking()&&(Q.policy.Z||im(z)&&z.Z.SH()&&Q.Z.Ze)){var f=Q.getCurrentTime()+NZ8(Q.U,z,H);Q.logger.debug(function(){return"Clearing back to "+f.toFixed(3)}); +rQY(z,f)}}; +tnc=function(Q,z){z&&(Q.logger.debug(function(){return"Logging new format: "+bZ(z.video.info)}),nma(Q.HI,new KH(z.video,z.reason))); +if(Q.Z.iT){var H=PwL(Q.Z,"a");Q.HI.e9(new KH(H.audio,H.reason))}}; +Tc=function(Q){g.Re(Q.yE)}; +zc=function(Q){Q.policy.gT&&Q.policy.KZ&&Math.min(YmJ(Q.videoTrack),YmJ(Q.audioTrack))*1E3>Q.policy.HX?g.Re(Q.ZJ):Q.SA()}; +gmv=function(Q,z){var H=(0,g.IE)()-z,f=sR(Q.audioTrack,!0)*1E3,b=sR(Q.videoTrack,!0)*1E3;Q.logger.debug(function(){return"Appends paused for "+H}); +if(Q.policy.L&&(Q.On("apdpe",{dur:H.toFixed(),abuf:f.toFixed(),vbuf:b.toFixed()}),dH(Q.policy))){var L=Yn(Q.U);Q.On("sdps",{ct:z,ah:f.toFixed(),vh:b.toFixed(),mr:rz(Q.U,Q.xQ,L),bw:L.toFixed(),js:Q.isSeeking(),re:+Q.xQ,ps:(Q.policy.k6||"").toString(),rn:(Q.policy.LU||"").toString()})}}; +Z9Z=function(Q){if(Q.policy.B&&Dp(Q.videoTrack)&&Dp(Q.audioTrack))return"ssap";if(cQa(Q.videoTrack))return Q.logger.debug("Pausing appends for server-selectable format"),"ssf";if(Q.policy.iT&&KI(Q.videoTrack)&&KI(Q.audioTrack))return"updateEnd";if(cK(Q.audioTrack)||cK(Q.videoTrack)&&Q.videoTrack.Z.info.Rj!=="f")return"";if(Q.Ff.isSeeking()){var z=Q.U;var H=Q.videoTrack;var f=Q.audioTrack;if(z.policy.Z){var b=z.policy.ov;dH(z.policy)&&(b=rz(z,!1,Yn(z)));z=b;H=sR(f,!0)>=z&&sR(H,!0)>=z}else H.L.length|| +f.L.length?(b=H.Z.info.oi+f.Z.info.oi,b=10*(1-Yn(z)/b),z=Math.max(b,z.policy.ov),H=sR(f,!0)>=z&&sR(H,!0)>=z):H=!0;if(!H)return"abr";H=Q.videoTrack;if(H.L.length>0&&H.D.B.length===1&&Smp(H.D).info.N360);f=dH(Q.policy)&&Q.policy.nV;if(!Q.xQ||!f&&H)return"";H=Q.policy.gS;dH(Q.policy)&&(H=rz(Q.U,Q.xQ,Yn(Q.U)));H=BS6(Q.videoTrack, +Q.getCurrentTime(),H)||BS6(Q.audioTrack,Q.getCurrentTime(),H);return dH(Q.policy)?H?"mbnm":"":(Q.videoTrack.L.length>0||Q.audioTrack.L.length>0||ec(Q.S,Q.videoTrack,Q.audioTrack)||ec(Q.S,Q.audioTrack,Q.videoTrack))&&H?"nord":""}; +G_c=function(Q){if(Q.Y){var z=Q.Y.SA(Q.audioTrack,yA(Q.vI.B.N4()));z&&Q.HI.seekTo(z,{wd:!0,lr:"pollSubsegmentReadahead",F2:!0})}}; +JMv=function(Q,z,H){if(Q.policy.iT&&KI(z))return!1;if(H.YW())return!0;if(!H.xO())return!1;var f=mp(z);if(!f||f.info.type===6)return!1;var b=Q.policy.uN;if(b&&!f.info.S){var L=f.info.D-Q.getCurrentTime();if(f.info.NL)return Q.policy.Z&&Fj9(Q,z),Q.policy.bu&&WNY(z.D,L,!1),!1;xYu(Q,z);var X;Q.policy.sj&&H===((X=Q.vI)==null?void 0:X.Z)&&Q.C3&&(H.mT()===0?(Q.C3=!1,Q.policy.sj=!1):Q.WI=H.mT());if(!O99(Q,H,f,z))return!1;Q.policy.iT&&f.info.lc()?(Q.HI.C().vz()&&Q.On("eosl",{ls:f.info.aq()}), +f.isLocked=!0):(z.TN(f),BVY(Q.Z,f.info),Q.logger.debug(function(){return"Appended "+f.info.aq()+", buffered: "+uZ(H.N4())})); +b&&omp(Q,f.info.Z.UM);return!0}; +Fj9=function(Q,z){z===Q.videoTrack?Q.jm=Q.jm||(0,g.IE)():Q.yl=Q.yl||(0,g.IE)()}; +xYu=function(Q,z){z===Q.videoTrack?Q.jm=0:Q.yl=0}; +O99=function(Q,z,H,f){var b=Q.policy.Wz?(0,g.IE)():0,L=H.S&&H.info.Z.Z||void 0,u=H.Z;H.S&&(u=NiZ(Q,H,u)||u);var X=u.K4();u=Q.policy.Wz?(0,g.IE)():0;z=Imk(Q,z,X,H.info,L);(f=f.U)!=null&&(L=H.info,b=u-b,u=(0,g.IE)()-u,!f.B||lUc(f.B,L)&&f.B.Ah===L.Ah||f.flush(),f.D+=b,f.L+=u,b=1,!f.B&&L.B&&(b=2),bm(f,b,z),u=Math.ceil(L.B/1024),b===2&&f.Z.add(u),f.Z.add(Math.ceil((L.B+L.L)/1024)-u),f.B=L);Q.De=0;if(z===0)return Q.mq&&(Q.logger.debug("Retry succeed, back to normal append logic."),Q.mq=!1,Q.gh=!1),Q.rT= +0,!0;if(z===2||z===5)return AML(Q,"checked",z,H.info),!1;if(z===1){if(!Q.mq)return Q.logger.debug("QuotaExceeded, retrying."),Q.mq=!0,!1;if(!Q.gh)return Q.gh=!0,Q.HI.seekTo(Q.getCurrentTime(),{lr:"quotaExceeded",F2:!0}),!1;H.info.rQ()?(b=Q.policy,b.mq=Math.floor(b.mq*.8),b.L3=Math.floor(b.L3*.8)):(b=Q.policy,b.gh=Math.floor(b.gh*.8),b.L3=Math.floor(b.L3*.8));Q.policy.Z?dY(Q.B.Z,H.info.Z,!1):Q8(Q.Z,H.info.Z)}Q.HI.a4({reattachOnAppend:z});return!1}; +NiZ=function(Q,z,H){var f;if(f=Q.policy.TV&&Q.vI&&!Q.vI.N&&!Q.HI.JP())z=z.info.Z.info,f=z.rV()&&VQ(z)&&z.video&&z.video.width<3840&&z.video.width>z.video.height;if(f&&(Q.vI.N=!0,r5('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return H=LfL(H),Q.policy.L&&Q.On("sp4k",{s:!!H}),H}; +AML=function(Q,z,H,f){var b="fmt.unplayable",L=1;H===5||H===3?(b="fmt.unparseable",Q.policy.Z?!f.Z.info.video||wY(Q.B.Z).size>0||dY(Q.B.Z,f.Z,!1):!f.Z.info.video||wY(Q.Z.S).size>0||Q8(Q.Z,f.Z)):H===2&&(Q.rT<15?(Q.rT++,b="html5.invalidstate",L=0):b="fmt.unplayable");f=B8(f);var u;f.mrs=(u=Q.vI)==null?void 0:wp(u);f.origin=z;f.reason=H;Q.handleError(b,f,L)}; +jka=function(Q,z,H,f,b){var L=Q.n3;var u=Q.policy.Z,X=!1,v=-1,y;for(y in L.Z){var q=Hs(L.Z[y].info.mimeType)||L.Z[y].info.rQ();if(f===q)if(q=L.Z[y].index,q.YM(z.Ah)){X=q;var M=z,C=X.XD(M.Ah);C&&C.startTime!==M.startTime?(X.segments=[],X.pY(M),X=!0):X=!1;X?v=z.Ah:!z.pending&&u&&(M=q.getDuration(z.Ah),M!==z.duration&&(L.publish("clienttemp","mfldurUpdate",{itag:L.Z[y].info.itag,seg:z.Ah,od:M,nd:z.duration},!1),q.pY(z),X=!0))}else q.pY(z),X=!0}v>=0&&(u={},L.publish("clienttemp","resetMflIndex",(u[f? +"v":"a"]=v,u),!1));L=X;d1v(Q.Ff,z,f,L);Q.D.z8(z,H,f,b);if(Q.policy.h$&&H){var t;(t=Q.UY)!=null&&t.L.set(z.Ah,H)}z.Ah===Q.n3.Li&&L&&gS(Q.n3)&&z.startTime>gS(Q.n3)&&(Q.n3.jm=z.startTime+(isNaN(Q.timestampOffset)?0:Q.timestampOffset),Q.Ff.isSeeking()&&Q.Ff.Z +5)return Q.De=0,Q.HI.a4({initSegStuck:1,as:f.info.aq()}),!0}else Q.De=0,Q.Xa=f;Q.policy.e$&&(H.abort(),(u=z.U)!=null&&(bm(u,4),u.flush()));b=Imk(Q,H,L,v,b);var y;(y=z.U)==null||K$9(y,b,v);if(b!==0)return YCA(Q,b,f),!0;f.info.rQ()?qN_(Q.timing):MAp(Q.timing);Q.logger.debug(function(){return"Appended init for "+f.info.Z.info.id}); +omp(Q,f.info.Z.UM);return H.mB()}; +$Y9=function(Q,z,H){if(z.uu()==null){Q=OR(Q);if(!(z=!Q||Q.Z!==H.info.Z)){a:if(Q=Q.U,H=H.info.U,Q.length!==H.length)H=!1;else{for(z=0;z1)return 6;v.f3=new g.lp(function(){var y=mp(v);Q.Sm()||y==null||!y.isLocked?Q.HI.C().vz()&&Q.On("eosl",{delayA:y==null?void 0:y.info.aq()}):rM6(v)?(Q.HI.C().vz()&&Q.On("eosl",{dunlock:y==null?void 0:y.info.aq()}),sqY(Q, +v===Q.audioTrack)):(Q.On("nue",{ls:y.info.aq()}),y.info.Ze+=1,Q.vI&&Q.IZ())},1E4,Q); +Q.HI.C().vz()&&Q.On("eosl",{delayS:f.aq()});v.f3.start()}Q.policy.p$&&(f==null?void 0:f.Z)instanceof hi&&f.lc()&&Q.On("poseos",{itag:f.Z.info.itag,seg:f.Ah,lseg:f.Z.index.Xg(),es:f.Z.index.L});z.appendBuffer(H,f,b)}catch(y){if(y instanceof DOMException){if(y.code===11)return 2;if(y.code===12)return 5;if(y.code===22||y.message.indexOf("Not enough storage")===0)return z=Object.assign({name:"QuotaExceededError",buffered:uZ(z.N4()).replace(/,/g,"_"),vheap:Yp(Q.videoTrack),aheap:Yp(Q.audioTrack),message:g.Z3(y.message, +3),track:Q.vI?z===Q.vI.B?"v":"a":"u"},Qqp()),Q.handleError("player.exception",z),1;g.PT(y)}return 4}return Q.vI.eU()?3:0}; +dz=function(Q,z,H){Q.HI.seekTo(z,H)}; +omp=function(Q,z){z&&Q.HI.Cl(new M5(z.key,z.type))}; +pI=function(Q,z){Q.HI.xZ(z)}; +WN=function(Q,z){if(Q.mq&&!Q.xQ)return 3;if(Q.isSuspended)return 1;var H;if((H=Q.vI)==null?0:H.vI&&H.vI.streaming===!1)return 4;H=(z.Z.info.audio?Q.policy.gh:Q.policy.mq)/(z.oi*Q.policy.QO);if(Q.policy.T$>0&&Q.vI&&ZF(Q.vI)&&(z=z.Z.info.video?Q.vI.B:Q.vI.Z)&&!z.mB()){z=z.N4();var f=SP(z,Q.getCurrentTime());f>=0&&(z=Q.getCurrentTime()-z.start(f),H+=Math.max(0,Math.min(z-Q.policy.T$,Q.policy.Nr)))}Q.policy.L3>0&&(H=Math.min(H,Q.policy.L3));return H}; +Nra=function(Q,z){return(WN(Q,z)+Q.policy.BX)*z.oi}; +PEn=function(Q){Q.uT&&!Q.isSuspended&&Zd(Q.schedule)&&(Bic(Q,Q.uT),Q.uT="")}; +Bic=function(Q,z){Jv(z,"cms",function(H){Q.policy.L&&Q.On("pathprobe",H)},function(H){Q.HI.handleError(H)})}; +amc=function(Q,z){if(Q.vI&&Q.vI.D&&!Q.vI.eU()&&(z.yq=sR(Q.videoTrack),z.B=sR(Q.audioTrack),Q.policy.L)){var H=Yp(Q.videoTrack),f=Yp(Q.audioTrack),b=uZ(Q.vI.B.N4(),"_",5),L=uZ(Q.vI.Z.N4(),"_",5);Object.assign(z.Z,{lvq:H,laq:f,lvb:b,lab:L})}z.bandwidthEstimate=IM(Q.U);var u;(u=Q.audioTrack.U)==null||u.flush();var X;(X=Q.videoTrack.U)==null||X.flush();Q.logger.debug(function(){return Oh(z.Z)})}; +UYa=function(Q,z){Q.N=z;Q.D&&(Q.D.j=z);Q.N.Ji(Q.videoTrack.Z.info.rV());Q.S.B=Q.N;Q.policy.S&&(Q.L.D=Q.N)}; +i9L=function(Q,z){if(Q.vI&&Q.vI.B){if(Q.policy.LY){var H=Kfp(Q.audioTrack);if(H&&H.Wq()){var f=Q.HI;f.ly&&(f.ly.Z=H,f.JZ(f.ly.videoId).jK(f.ly))}}Q.policy.OE&&(H=Kfp(Q.videoTrack))&&H.rQ()&&(f=Q.HI,f.O3&&(f.O3.Z=H,f.JZ(f.O3.videoId).vE(f.O3)));z-=isNaN(Q.timestampOffset)?0:Q.timestampOffset;Q.getCurrentTime()!==z&&Q.resume();Q.Ff.isSeeking()&&Q.vI&&!Q.vI.eU()&&(H=Q.getCurrentTime()<=z&&z=0&&L1?X.B[0]=z&&znn(Q,f.startTime,!1)}); +return H&&H.startTimeQ.getCurrentTime())return H.start/1E3;return Infinity}; +Vnk=function(Q){var z=OR(Q.videoTrack),H=OR(Q.audioTrack);return z&&!Djv(Q.videoTrack)?z.startTime:H&&!Djv(Q.audioTrack)?H.startTime:NaN}; +PFa=function(Q){if(Q.HI.getVideoData().isLivePlayback)return!1;var z=Q.HI.aB();if(!z)return!1;z=z.getDuration();return Bra(Q,z)}; +Bra=function(Q,z){if(!Q.vI||!Q.vI.Z||!Q.vI.B)return!1;var H=Q.getCurrentTime(),f=Q.vI.Z.N4();Q=Q.vI.B.N4();f=f?vs(f,H):H;H=Q?vs(Q,H):H;H=Math.min(f,H);return isNaN(H)?!1:H>=z-.01}; +YCA=function(Q,z,H){Q.policy.qf&&f9(Q.HI.getVideoData())?(Q.HI.QS()||AML(Q,"sepInit",z,H.info),dYp(Q.HI,"sie")):AML(Q,"sepInit",z,H.info)}; +fB=function(Q){return Q.HI.g5()0){var b=f.Z.shift();w7c(f,b.info)}f.Z.length>0&&(b=f.Z[0].time-(0,g.IE)(),f.B.start(Math.max(0,b)))}},0); +g.W(this,this.B);z.subscribe("widevine_set_need_key_info",this.S,this)}; +w7c=function(Q,z){a:{var H=z.cryptoPeriodIndex;if(isNaN(H)&&Q.L.size>0)H=!0;else{for(var f=g.n(Q.L.values()),b=f.next();!b.done;b=f.next())if(b.value.cryptoPeriodIndex===H){H=!0;break a}H=!1}}Q.publish("log_qoe",{wvagt:"reqnews",canskip:H});H||Q.publish("rotated_need_key_info_ready",z)}; +k_8=function(){var Q={};var z=Q.url;var H=Q.interval;Q=Q.retries;this.url=z;this.interval=H;this.retries=Q}; +Tiv=function(Q,z){this.statusCode=Q;this.message=z;this.B=this.heartbeatParams=this.errorMessage=null;this.Z={};this.nextFairplayKeyId=null}; +en8=function(Q,z,H){H=H===void 0?"":H;g.h.call(this);this.message=Q;this.requestNumber=z;this.hM=H;this.onError=this.onSuccess=null;this.Z=new g.oK(5E3,2E4,.2)}; +lmY=function(Q,z,H){Q.onSuccess=z;Q.onError=H}; +Qgk=function(Q,z,H,f){var b={timeout:3E4,onSuccess:function(L){if(!Q.Sm()){hN("drm_net_r",void 0,Q.hM);var u=L.status==="LICENSE_STATUS_OK"?0:9999,X=null;if(L.license)try{X=G7(L.license)}catch(E){g.PT(E)}if(u!==0||X){X=new Tiv(u,X);u!==0&&L.reason&&(X.errorMessage=L.reason);if(L.authorizedFormats){u={};for(var v=[],y={},q=g.n(L.authorizedFormats),M=q.next();!M.done;M=q.next())if(M=M.value,M.trackType&&M.keyId){var C=Rn8[M.trackType];if(C){C==="HD"&&L.isHd720&&(C="HD720");M.isHdr&&(C+="HDR");u[C]|| +(v.push(C),u[C]=!0);var t=null;try{t=G7(M.keyId)}catch(E){g.PT(E)}t&&(y[g.g7(t,4)]=C)}}X.B=v;X.Z=y}L.nextFairplayKeyId&&(X.nextFairplayKeyId=L.nextFairplayKeyId);L.sabrLicenseConstraint&&(X.sabrLicenseConstraint=G7(L.sabrLicenseConstraint));L=X}else L=null;if(L)Q.onSuccess(L,Q.requestNumber);else Q.onError(Q,"drm.net","t.p;p.i")}}, +onError:function(L){if(!Q.Sm())if(L&&L.error)L=L.error,Q.onError(Q,"drm.net.badstatus","t.r;p.i;c."+L.code+";s."+L.status,L.code);else Q.onError(Q,"drm.net.badstatus","t.r;p.i;c.n")}, +onTimeout:function(){Q.onError(Q,"drm.net","rt.req."+Q.requestNumber)}}; +f&&(b.Bx="Bearer "+f);g.Hb(H,"player/get_drm_license",z,b)}; +z0k=function(Q,z,H,f){g.vf.call(this);this.videoData=Q;this.rh=z;this.N=H;this.sessionId=f;this.S={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.Ze=this.wh=!1;this.L=null;this.L3=[];this.D=[];this.Y=!1;this.Z={};this.status="";this.j=NaN;this.B=Q.S;this.cryptoPeriodIndex=H.cryptoPeriodIndex;Q={};Object.assign(Q,this.rh.Z);Q.cpn=this.videoData.clientPlaybackNonce;this.videoData.wh&&(Q.vvt=this.videoData.wh,this.videoData.mdxEnvironment&&(Q.mdx_environment=this.videoData.mdxEnvironment)); +this.rh.L3&&(Q.authuser=this.rh.L3);this.rh.pageId&&(Q.pageid=this.rh.pageId);isNaN(this.cryptoPeriodIndex)||(Q.cpi=this.cryptoPeriodIndex.toString());var b=(b=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.Iu()))?b[1]:"";b==="ATV"&&(Q.cdt=b);this.S=Q;this.S.session_id=f;this.U=!0;this.B.flavor==="widevine"&&(this.S.hdr="1");this.B.flavor==="playready"&&(z=Number(Ty(z.experiments,"playready_first_play_expiration")),!isNaN(z)&&z>=0&&(this.S.mfpe=""+z),this.U=!1);z="";g.ak(this.B)?Pj(this.B)?(f=H.B)&&(z="https://www.youtube.com/api/drm/fps?ek="+ +inA(f)):(z=H.initData.subarray(4),z=new Uint16Array(z.buffer,z.byteOffset,z.byteLength/2),z=String.fromCharCode.apply(null,z).replace("skd://","https://")):z=this.B.B;this.baseUrl=z;this.fairplayKeyId=we(this.baseUrl,"ek")||"";if(z=we(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(z);this.L3=H.rV?[g.g7(H.initData,4)]:H.L;Sr(this,{sessioninit:H.cryptoPeriodIndex});this.status="in"}; +Lhn=function(Q,z){Sr(Q,{createkeysession:1});Q.status="gr";hN("drm_gk_s",void 0,Q.videoData.En);Q.url=HRc(Q);try{Q.L=z.createSession(Q.N,function(H){Sr(Q,{m:H})})}catch(H){z="t.g"; +H instanceof DOMException&&(z+=";c."+H.code);Q.publish("licenseerror","drm.unavailable",1,z,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}Q.L&&(fa8(Q.L,function(H,f){bRA(Q,H,f)},function(H,f,b){if(!Q.Sm()){f=void 0; +var L=1;g.ak(Q.B)&&g.rm(Q.rh)&&Q.rh.V("html5_enable_safari_fairplay")&&b===1212433232&&(f="ERROR_HDCP",L=Q.rh.V("html5_safari_fairplay_ignore_hdcp")?0:L);Q.error("drm.keyerror",L,H,f)}},function(){Q.Sm()||(Sr(Q,{onkyadd:1}),Q.Ze||(Q.publish("sessionready"),Q.Ze=!0))},function(H){Q.XS(H)}),g.W(Q,Q.L))}; +HRc=function(Q){var z=Q.baseUrl;Scn(z)||Q.error("drm.net",2,"t.x");if(!we(z,"fexp")){var H=["23898307","23914062","23916106","23883098"].filter(function(b){return Q.rh.experiments.experiments[b]}); +H.length>0&&(Q.S.fexp=H.join())}H=g.n(Object.keys(Q.S));for(var f=H.next();!f.done;f=H.next())f=f.value,z=os8(z,f,Q.S[f]);return z}; +bRA=function(Q,z,H){if(!Q.Sm())if(z){Sr(Q,{onkmtyp:H});Q.status="km";switch(H){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":uvp(Q,z);return;default:Q.publish("ctmp","message_type",{t:H,l:z.byteLength})}Q.wh||(hN("drm_gk_f",void 0,Q.videoData.En),Q.wh=!0,Q.publish("newsession",Q));if(rS(Q.B)&&(z=SZA(z),!z))return;z=new en8(z,++Q.requestNumber,Q.videoData.En);lmY(z,function(f){XGY(Q,f)},function(f,b,L){if(!Q.Sm()){var u=0; +f.Z.B>=3&&(u=1,b="drm.net.retryexhausted");Sr(Q,{onlcsrqerr:b,info:L});Q.error(b,u,L);Q.shouldRetry(JI(u),f)&&v1Z(Q,f)}}); +g.W(Q,z);yfn(Q,z)}else Q.error("drm.unavailable",1,"km.empty")}; +uvp=function(Q,z){Sr(Q,{sdpvrq:1});Q.j=Date.now();if(Q.B.flavor!=="widevine")Q.error("drm.provision",1,"e.flavor;f."+Q.B.flavor+";l."+z.byteLength);else{var H={cpn:Q.videoData.clientPlaybackNonce};Object.assign(H,Q.rh.Z);H=g.de("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",H);z={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, +z)}),responseType:"arraybuffer"};g.rR(H,z,3,500).then(ZJ(function(f){f=f.xhr;if(!Q.Sm()){f=new Uint8Array(f.response);var b=String.fromCharCode.apply(null,f);try{var L=JSON.parse(b)}catch(u){}L&&L.signedResponse?(Q.publish("ctmp","drminfo",{provisioning:1}),L=(Date.now()-Q.j)/1E3,Q.j=NaN,Q.publish("ctmp","provs",{et:L.toFixed(3)}),Q.L&&Q.L.update(f)):(L=L&&L.error&&L.error.message,f="e.parse",L&&(f+=";m."+L),Q.error("drm.provision",1,f))}}),ZJ(function(f){Q.Sm()||Q.error("drm.provision",1,"e."+f.errorCode+ +";c."+(f.xhr&&f.xhr.status))}))}}; +Xj=function(Q){var z;if(z=Q.U&&Q.L!=null)Q=Q.L,z=!(!Q.Z||!Q.Z.keyStatuses);return z}; +yfn=function(Q,z){Q.status="km";hN("drm_net_s",void 0,Q.videoData.En);var H=new g.zw(Q.rh.N7),f={context:g.Cc(H.config_||g.MR())};f.drmSystem=qZn[Q.B.flavor];f.videoId=Q.videoData.videoId;f.cpn=Q.videoData.clientPlaybackNonce;f.sessionId=Q.sessionId;f.licenseRequest=g.g7(z.message);f.drmParams=Q.videoData.drmParams;isNaN(Q.cryptoPeriodIndex)||(f.isKeyRotated=!0,f.cryptoPeriodIndex=Q.cryptoPeriodIndex);var b,L,u=!!((b=Q.videoData.B)==null?0:(L=b.video)==null?0:L.isHdr());f.drmVideoFeature=u?"DRM_VIDEO_FEATURE_PREFER_HDR": +"DRM_VIDEO_FEATURE_SDR";if(f.context&&f.context.client){if(b=Q.rh.Z)f.context.client.deviceMake=b.cbrand,f.context.client.deviceModel=b.cmodel,f.context.client.browserName=b.cbr,f.context.client.browserVersion=b.cbrver,f.context.client.osName=b.cos,f.context.client.osVersion=b.cosver;f.context.user=f.context.user||{};f.context.request=f.context.request||{};Q.videoData.wh&&(f.context.user.credentialTransferTokens=[{token:Q.videoData.wh,scope:"VIDEO"}]);f.context.request.mdxEnvironment=Q.videoData.mdxEnvironment|| +f.context.request.mdxEnvironment;Q.videoData.yE&&(f.context.user.kidsParent={oauthToken:Q.videoData.yE});g.ak(Q.B)&&(f.fairplayKeyId=g.g7(hpZ(Q.fairplayKeyId)));g.HV(Q.rh,g.W7(Q.videoData)).then(function(X){Qgk(z,f,H,X);Q.status="rs"})}else Q.error("drm.net",2,"t.r;ic.0")}; +XGY=function(Q,z){if(!Q.Sm())if(Sr(Q,{onlcsrsp:1}),Q.status="rr",z.statusCode!==0)Q.error("drm.auth",1,"t.f;c."+z.statusCode,z.errorMessage||void 0);else{hN("drm_kr_s",void 0,Q.videoData.En);if(z.heartbeatParams&&z.heartbeatParams.url&&Q.videoData.V("outertube_streaming_data_always_use_staging_license_service")){var H=Q.B.B.match(/(.*)youtube.com/g);H&&(z.heartbeatParams.url=H[0]+z.heartbeatParams.url)}z.heartbeatParams&&Q.publish("newlicense",z.heartbeatParams);z.B&&(Q.D=z.B,Q.videoData.Ga||Q.publish("newlicense", +new k_8),Q.videoData.Ga=!0,Q.Y=N2(Q.D,function(f){return f.includes("HDR")})); +z.Z&&(Q.rh.V("html5_enable_vp9_fairplay")&&Pj(Q.B)?(H=g.g7(hpZ(Q.fairplayKeyId),4),Q.Z[H]={type:z.Z[H],status:"unknown"}):Q.Z=xs(z.Z,function(f){return{type:f,status:"unknown"}})); +Bj(Q.B)&&(z.message=cLk(g.g7(z.message)));Q.L&&(Sr(Q,{updtks:1}),Q.status="ku",Q.L.update(z.message).then(function(){hN("drm_kr_f",void 0,Q.videoData.En);Xj(Q)||(Sr(Q,{ksApiUnsup:1}),Q.publish("keystatuseschange",Q))},function(f){f="msuf.req."+Q.requestNumber+";msg."+g.Z3(f.message,3); +Q.error("drm.keyerror",1,f)})); +g.ak(Q.B)&&Q.publish("fairplay_next_need_key_info",Q.baseUrl,z.nextFairplayKeyId);Q.rh.V("html5_enable_vp9_fairplay")&&Pj(Q.B)&&Q.publish("qualitychange",M1u(Q.D));z.sabrLicenseConstraint&&Q.publish("sabrlicenseconstraint",z.sabrLicenseConstraint)}}; +v1Z=function(Q,z){var H=z.Z.getValue();H=new g.lp(function(){yfn(Q,z)},H); +g.W(Q,H);H.start();g.JU(z.Z);Sr(Q,{rtyrq:1})}; +Cjv=function(Q,z){for(var H=[],f=g.n(Object.keys(Q.Z)),b=f.next();!b.done;b=f.next())b=b.value,H.push(b+"_"+Q.Z[b].type+"_"+Q.Z[b].status);return H.join(z)}; +t1Y=function(Q){var z={};z[Q.status]=Xj(Q)?Cjv(Q,"."):Q.D.join(".");return z}; +E19=function(Q,z){switch(Q){case "highres":case "hd2880":Q="UHD2";break;case "hd2160":case "hd1440":Q="UHD1";break;case "hd1080":case "hd720":Q="HD";break;case "large":case "medium":case "small":case "light":case "tiny":Q="SD";break;default:return""}z&&(Q+="HDR");return Q}; +pG6=function(Q,z){for(var H in Q.Z)if(Q.Z[H].status==="usable"&&Q.Z[H].type===z)return!0;return!1}; +jbv=function(Q,z){for(var H in Q.Z)if(Q.Z[H].type===z)return Q.Z[H].status}; +Sr=function(Q,z){var H=H===void 0?!1:H;Oh(z);(H||Q.rh.vz())&&Q.publish("ctmp","drmlog",z)}; +Frp=function(Q){var z=Q[0];Q[0]=Q[3];Q[3]=z;z=Q[1];Q[1]=Q[2];Q[2]=z;z=Q[4];Q[4]=Q[5];Q[5]=z;z=Q[6];Q[6]=Q[7];Q[7]=z}; +M1u=function(Q){return g.TY(Q,"UHD2")||g.TY(Q,"UHD2HDR")?"highres":g.TY(Q,"UHD1")||g.TY(Q,"UHD1HDR")?"hd2160":g.TY(Q,"HD")||g.TY(Q,"HDHDR")?"hd1080":g.TY(Q,"HD720")||g.TY(Q,"HD720HDR")?"hd720":"large"}; +SZA=function(Q){for(var z="",H=0;H'.charCodeAt(f);Q=Q.L.createSession("video/mp4",z,H);return new vL(null,null,null,null,Q)}; +IpJ=function(Q,z){var H=Q.j[z.sessionId];!H&&Q.D&&(H=Q.D,Q.D=null,H.sessionId=z.sessionId,Q.j[z.sessionId]=H);return H}; +opY=function(Q,z){var H=Q.subarray(4);H=new Uint16Array(H.buffer,H.byteOffset,H.byteLength/2);H=String.fromCharCode.apply(null,H).match(/ek=([0-9a-f]+)/)[1];for(var f="",b=0;b=0&&Q.push(f);Q=parseFloat(Q.join("."))}else Q=NaN;Q>19.2999?(Q=H.pW,H=H.bu,H>=Q&&(H=Q*.75),z=(Q-H)*.5,H=new LD(z,Q,Q-z-H,this)):H=null;break a;case "widevine":H=new uH(z,this,Q);break a;default:H=null}if(this.S=H)g.W(this,this.S),this.S.subscribe("rotated_need_key_info_ready",this.e7,this),this.S.subscribe("log_qoe",this.wS,this);cj(this.rh.experiments);this.wS({cks:this.Z.getInfo()})}; +YRA=function(Q){var z=Q.D.Jy();z?z.then(ZJ(function(){sbc(Q)}),ZJ(function(H){if(!Q.Sm()){g.PT(H); +var f="t.a";H instanceof DOMException&&(f+=";n."+H.name+";m."+H.message);Q.publish("licenseerror","drm.unavailable",1,f,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(Q.wS({mdkrdy:1}),Q.U=!0); +Q.Ze&&(z=Q.Ze.Jy())}; +PmY=function(Q,z,H){Q.mq=!0;H=new M5(z,H);Q.rh.V("html5_eme_loader_sync")&&(Q.j.get(z)||Q.j.set(z,H));BHa(Q,H)}; +BHa=function(Q,z){if(!Q.Sm()){Q.wS({onInitData:1});if(Q.rh.V("html5_eme_loader_sync")&&Q.videoData.L&&Q.videoData.L.Z){var H=Q.Y.get(z.initData);z=Q.j.get(z.initData);if(!H||!z)return;z=H;H=z.initData;Q.j.remove(H);Q.Y.remove(H)}Q.wS({initd:z.initData.length,ct:z.contentType});if(Q.Z.flavor==="widevine")if(Q.yl&&!Q.videoData.isLivePlayback)MJ(Q);else{if(!(Q.rh.V("vp9_drm_live")&&Q.videoData.isLivePlayback&&z.rV)){Q.yl=!0;H=z.cryptoPeriodIndex;var f=z.Z;Qku(z);z.rV||(f&&z.Z!==f?Q.publish("ctmp","cpsmm", +{emsg:f,pssh:z.Z}):H&&z.cryptoPeriodIndex!==H&&Q.publish("ctmp","cpimm",{emsg:H,pssh:z.cryptoPeriodIndex}));Q.publish("widevine_set_need_key_info",z)}}else Q.e7(z)}}; +sbc=function(Q){if(!Q.Sm())if(Q.rh.V("html5_drm_set_server_cert")||Pj(Q.Z)){var z=Q.D.setServerCertificate();z?z.then(ZJ(function(H){Q.rh.vz()&&Q.publish("ctmp","ssc",{success:H})}),ZJ(function(H){Q.publish("ctmp","ssce",{n:H.name, +m:H.message})})).then(ZJ(function(){apL(Q)})):apL(Q)}else apL(Q)}; +apL=function(Q){Q.Sm()||(Q.U=!0,Q.wS({onmdkrdy:1}),MJ(Q))}; +U5_=function(Q){return Q.Z.flavor==="widevine"&&Q.videoData.V("html5_drm_cpi_license_key")}; +MJ=function(Q){if((Q.mq||Q.rh.V("html5_widevine_use_fake_pssh"))&&Q.U&&!Q.De){for(;Q.L.length;){var z=Q.L[0],H=U5_(Q)?zxZ(z):g.g7(z.initData);if(Pj(Q.Z)&&!z.B)Q.L.shift();else{if(Q.B.get(H))if(Q.Z.flavor!=="fairplay"||Pj(Q.Z)){Q.L.shift();continue}else Q.B.delete(H);Qku(z);break}}Q.L.length&&Q.createSession(Q.L[0])}}; +ceu=function(Q){var z;if(z=g.mW()){var H;z=!((H=Q.D.B)==null||!H.getMetrics)}z&&(z=Q.D.getMetrics())&&(z=g.Jr(z),Q.publish("ctmp","drm",{metrics:z}))}; +iIn=function(){var Q=V_v();return!(!Q||Q==="visible")}; +Wra=function(Q){var z=hP9();z&&document.addEventListener(z,Q,!1)}; +D5Y=function(Q){var z=hP9();z&&document.removeEventListener(z,Q,!1)}; +hP9=function(){if(document.visibilityState)var Q="visibilitychange";else{if(!document[pF+"VisibilityState"])return"";Q=pF+"visibilitychange"}return Q}; +Kru=function(Q){g.h.call(this);var z=this;this.HI=Q;this.YA=0;this.j=this.B=this.S=!1;this.D=0;this.aj=this.HI.C();this.videoData=this.HI.getVideoData();this.L=g.Mf(this.aj.experiments,"html5_delayed_retry_count");this.Z=new g.lp(function(){z.HI.lL()},g.Mf(this.aj.experiments,"html5_delayed_retry_delay_ms")); +g.W(this,this.Z)}; +kX_=function(Q,z,H){var f=Q.videoData.B,b=Q.videoData.D;f9(Q.HI.getVideoData())&&Q.aj.V("html5_gapless_fallback_on_qoe_restart")&&dYp(Q.HI,"pe");if((z==="progressive.net.retryexhausted"||z==="fmt.unplayable"||z==="fmt.decode")&&!Q.HI.i7.S&&f&&f.itag==="22")return Q.HI.i7.S=!0,Q.h7("qoe.restart",{reason:"fmt.unplayable.22"}),Q.HI.w5(),!0;var L=!1;if(Q.videoData.isExternallyHostedPodcast){if(L=Q.videoData.Rg)H.mimeType=L.type,Q.On("3pp",{url:L.url});H.ns="3pp";Q.HI.VN(z,1,"VIDEO_UNAVAILABLE",Oh((new oj(z, +H,1)).details));return!0}var u=Q.YA+3E4<(0,g.IE)()||Q.Z.isActive();if(Q.aj.V("html5_empty_src")&&Q.videoData.isAd()&&z==="fmt.unplayable"&&/Empty src/.test(""+H.msg))return H.origin="emptysrc",Q.h7("auth",H),!0;u||CD(Q.HI.Kq())||(H.nonfg="paused",u=!0,Q.HI.pauseVideo());(z==="fmt.decode"||z==="fmt.unplayable")&&(b==null?0:kK(b)||TR(b))&&(ixc(Q.aj.S,b.Rj),H.acfallexp=b.Rj,L=u=!0);!u&&Q.L>0&&(Q.Z.start(),u=!0,H.delayed="1",--Q.L);b=Q.HI.xv;!u&&((f==null?0:w5(f))||(f==null?0:VQ(f)))&&(ixc(Q.aj.S,f.Rj), +L=u=!0,H.cfallexp=f.Rj);if(Q.aj.V("html5_ssap_ignore_decode_error_for_next_video")&&g.wr(Q.videoData)&&z==="fmt.unplayable"&&H.cid&&H.ccid&&CD(Q.HI.Kq())){if(H.cid!==H.ccid)return H.ignerr="1",Q.h7("ssap.transitionfailure",H),!0;Q.h7("ssap.transitionfailure",H);if(Vc6(Q.HI,z))return!0}if(!u)return d5A(Q,H);if(Q.aj.V("html5_ssap_skip_decoding_clip_with_incompatible_codec")&&g.wr(Q.videoData)&&z==="fmt.unplayable"&&H.cid&&H.ccid&&H.cid!==H.ccid&&CD(Q.HI.Kq())&&(Q.h7("ssap.transitionfailure",H),Vc6(Q.HI, +z)))return!0;u=!1;Q.S?Q.YA=(0,g.IE)():u=Q.S=!0;var X=Q.videoData;if(X.gh){X=X.gh.JO();var v=Date.now()/1E3+1800;X=X6048E5&&RP8(Q,"signature");return!1}; +RP8=function(Q,z){try{window.location.reload(),Q.h7("qoe.restart",{detail:"pr."+z})}catch(H){}}; +z3n=function(Q,z){z=z===void 0?"fmt.noneavailable":z;var H=Q.aj.S;H.Y=!1;Qq(H);Q.h7("qoe.restart",{e:z,detail:"hdr"});Q.HI.lL(!0)}; +HBA=function(Q,z,H,f,b,L){this.videoData=Q;this.Z=z;this.reason=H;this.B=f;this.token=b;this.videoId=L}; +fDA=function(Q,z,H){this.rh=Q;this.nx=z;this.HI=H;this.N=this.j=this.Z=this.D=this.Y=this.B=0;this.S=!1;this.U=g.Mf(this.rh.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.L=new Map}; +LaL=function(Q,z,H){!Q.rh.V("html5_tv_ignore_capable_constraint")&&g.oT(Q.rh)&&(H=H.compose(bBL(Q,z)));return H}; +uT8=function(Q){if(Q.HI.Kq().isInline())return D1;var z;Q.V("html5_exponential_memory_for_sticky")?z=Gt(Q.rh.D6,"sticky-lifetime")<.5?"auto":Lu[aA()]:z=Lu[aA()];return g.HM("auto",z,!1,"s")}; +XW9=function(Q,z){var H,f=Szp(Q,(H=z.Z)==null?void 0:H.videoInfos);H=Q.HI.getPlaybackRate();return H>1&&f?(Q=sc9(Q.rh.S,z.Z.videoInfos,H),new zQ(0,Q,!0,"o")):new zQ(0,0,!1,"o")}; +Szp=function(Q,z){return z&&g.oT(Q.rh)?z.some(function(H){return H.video.fps>32}):!1}; +vY9=function(Q,z){var H=Q.HI.ob();Q.V("html5_use_video_quality_cap_for_ustreamer_constraint")&&H&&H.vZ>0&&b$(z.videoData.vR)&&(Q=H.vZ,z.videoData.vR=new zQ(0,Q,!1,"u"));return z.videoData.vR}; +bBL=function(Q,z){if(g.oT(Q.rh)&&g8(Q.rh.S,ZM.HEIGHT))var H=z.Z.videoInfos[0].video.Z;else{var f=!!z.Z.Z;var b;g.AE(Q.rh)&&(b=window.screen&&window.screen.width?new g.nC(window.screen.width,window.screen.height):null);b||(b=Q.rh.Lr?Q.rh.Lr.clone():Q.nx.Oq());(lv||HK||f)&&b.scale(g.mD());f=b;bE(z.videoData)||Vt(z.videoData);z=z.Z.videoInfos;if(z.length){b=g.Mf(Q.rh.experiments,"html5_override_oversend_fraction")||.85;var L=z[0].video;L.projectionType!=="MESH"&&L.projectionType!=="EQUIRECTANGULAR"&& +L.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||N$||(b=.45);Q=g.Mf(Q.rh.experiments,"html5_viewport_undersend_maximum");for(L=0;L0&&(H=Math.min(H,f));if(f=g.Mf(Q.rh.experiments,"html5_max_vertical_resolution")){Q=4320;for(b=0;b +f&&(Q=Math.min(Q,L.video.Z));if(Q<4320){for(b=f=0;b32){b=!0;break a}}b=!1}b&&(H=Math.min(H,f));(f=g.Mf(Q.rh.experiments,"html5_live_quality_cap"))&&z.videoData.isLivePlayback&&(H=Math.min(H,f));H=qza(Q,z,H);Q=g.Mf(Q.rh.experiments,"html5_byterate_soft_cap");return new zQ(0,H===4320?0:H,!1,"d",Q)}; +CKY=function(Q){var z,H,f,b;return g.B(function(L){switch(L.Z){case 1:return Q.Z.Z&&typeof((z=navigator.mediaCapabilities)==null?void 0:z.decodingInfo)==="function"?g.Y(L,Promise.resolve(),2):L.return(Promise.resolve());case 2:H=g.n(Q.Z.videoInfos),f=H.next();case 3:if(f.done){L.bT(0);break}b=f.value;return g.Y(L,jQu(b),4);case 4:f=H.next(),L.bT(3)}})}; +EY6=function(Q,z){if(!z.videoData.B||Q.V("html5_disable_performance_downgrade"))return!1;Date.now()-Q.Y>6E4&&(Q.B=0);Q.B++;Q.Y=Date.now();if(Q.B!==4)return!1;t8a(Q,z.videoData.B);return!0}; +nYJ=function(Q,z,H,f){if(!z||!H||!z.videoData.B)return!1;var b=g.Mf(Q.rh.experiments,"html5_df_downgrade_thresh"),L=Q.V("html5_log_media_perf_info");if(!((0,g.IE)()-Q.D<5E3?0:L||b>0))return!1;var u=((0,g.IE)()-Q.D)/1E3;Q.D=(0,g.IE)();H=H.getVideoPlaybackQuality();if(!H)return!1;var X=H.droppedVideoFrames-Q.j,v=H.totalVideoFrames-Q.N;Q.j=H.droppedVideoFrames;Q.N=H.totalVideoFrames;var y=H.displayCompositedVideoFrames===0?0:H.displayCompositedVideoFrames||-1;L&&Q.rh.vz()&&Q.HI.On("ddf",{dr:H.droppedVideoFrames, +de:H.totalVideoFrames,comp:y});if(f)return Q.Z=0,!1;if((v-X)/u>Q.U||!b||g.oT(Q.rh))return!1;Q.Z=(v>60?X/v:0)>b?Q.Z+1:0;if(Q.Z!==3)return!1;t8a(Q,z.videoData.B);Q.HI.On("dfd",Object.assign({dr:H.droppedVideoFrames,de:H.totalVideoFrames},pWp()));return!0}; +t8a=function(Q,z){var H=z.Rj,f=z.video.fps,b=z.video.Z-1,L=Q.L;z=""+H+(f>49?"p60":f>32?"p48":"");H=JQ(H,f,L);b>0&&(H=Math.min(H,b));if(!td.has(z)&&iM().includes(z)){var u=H;H=cB();+H[z]>0&&(u=Math.min(+H[z],u));H[z]!==u&&(H[z]=u,g.Pw("yt-player-performance-cap",H,2592E3))}else if(td.has(z)||L==null){a:{u=u===void 0?!0:u;f=iM().slice();if(u){if(f.includes(z))break a;f.push(z)}else{if(!f.includes(z))break a;f.splice(f.indexOf(z),1)}g.Pw("yt-player-performance-cap-active-set",f,2592E3)}ok.set(z,H)}else td.add(z), +L==null||L.set(z,H);Q.HI.ST()}; +Eg=function(Q,z){if(!z.Z.Z)return Q.S?new zQ(0,360,!1,"b"):D1;for(var H=!1,f=!1,b=g.n(z.Z.videoInfos),L=b.next();!L.done;L=b.next())w5(L.value)?H=!0:f=!0;H=H&&f;f=0;b=g.Mf(Q.rh.experiments,"html5_performance_cap_floor");b=Q.rh.B?240:b;z=g.n(z.Z.videoInfos);for(L=z.next();!L.done;L=z.next()){var u=L.value;if(!H||!w5(u))if(L=JQ(u.Rj,u.video.fps,Q.L),u=u.video.Z,Math.max(L,b)>=u){f=u;break}}return new zQ(0,f,!1,"b")}; +gY_=function(Q,z){var H=Q.HI.Kq();return H.isInline()&&!z.x6?new zQ(0,480,!1,"v"):H.isBackground()&&Iw()/1E3>60&&!g.oT(Q.rh)?new zQ(0,360,!1,"v"):D1}; +ZB9=function(Q,z,H){if(Q.rh.experiments.Nc("html5_disable_client_autonav_cap_for_onesie")&&z.fetchType==="onesie"||g.oT(Q.rh)&&(aA(-1)>=1080||z.osid))return D1;var f=g.Mf(Q.rh.experiments,"html5_autonav_quality_cap"),b=g.Mf(Q.rh.experiments,"html5_autonav_cap_idle_secs");return f&&z.isAutonav&&Iw()/1E3>b?(H&&(f=qza(Q,H,f)),new zQ(0,f,!1,"e")):D1}; +qza=function(Q,z,H){if(Q.V("html5_optimality_defaults_chooses_next_higher")&&H)for(Q=z.Z.videoInfos,z=1;z=0||(Q.provider.HI.getVisibilityState()===3?Q.S=!0:(Q.Z=g.nD(Q.provider),Q.delay.start()))}; +jDv=function(Q){if(!(Q.B<0)){var z=g.nD(Q.provider),H=z-Q.D;Q.D=z;Q.playerState.state===8?Q.playTimeSecs+=H:Q.playerState.isBuffering()&&!g.w(Q.playerState,16)&&(Q.rebufferTimeSecs+=H)}}; +Fap=function(Q){var z;switch((z=Q.rh.playerCanaryStage)==null?void 0:z.toLowerCase()){case "xsmall":return"HTML5_PLAYER_CANARY_STAGE_XSMALL";case "small":return"HTML5_PLAYER_CANARY_STAGE_SMALL";case "medium":return"HTML5_PLAYER_CANARY_STAGE_MEDIUM";case "large":return"HTML5_PLAYER_CANARY_STAGE_LARGE";default:return"HTML5_PLAYER_CANARY_STAGE_UNSPECIFIED"}}; +xlp=function(Q){return window.PressureObserver&&new window.PressureObserver(Q)}; +OBp=function(Q){Q=Q===void 0?xlp:Q;g.h.call(this);var z=this;try{this.L=Q(function(f){z.B=f.at(-1)}); +var H;this.D=(H=this.L)==null?void 0:H.observe("cpu",{sampleInterval:2E3}).catch(function(f){f instanceof DOMException&&(z.Z=f)})}catch(f){f instanceof DOMException&&(this.Z=f)}}; +oYp=function(Q){var z={},H=window.h5vcc;z.hwConcurrency=navigator.hardwareConcurrency;Q.Z&&(z.cpe=Q.Z.message);Q.B&&(z.cpt=Q.B.time,z.cps=Q.B.state);if(H==null?0:H.cVal)z.cb2s=H.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),z.cb5s=H.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),z.cb30s=H.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return z}; +JJ6=function(Q){var z;g.B(function(H){switch(H.Z){case 1:return g.jY(H,2),g.Y(H,Q.D,4);case 4:g.xv(H,3);break;case 2:g.OA(H);case 3:(z=Q.L)==null||z.disconnect(),g.$v(H)}})}; +IDa=function(Q,z){z?N9J.test(Q):(Q=g.ST(Q),Object.keys(Q).includes("cpn"))}; +Yzk=function(Q,z,H,f,b,L,u){var X={format:"RAW"},v={};if(yC(Q)&&qn()){if(u){var y;((y=AJ8.uaChPolyfill)==null?void 0:y.state.type)!==2?u=null:(u=AJ8.uaChPolyfill.state.data.values,u={"Synth-Sec-CH-UA-Arch":u.architecture,"Synth-Sec-CH-UA-Model":u.model,"Synth-Sec-CH-UA-Platform":u.platform,"Synth-Sec-CH-UA-Platform-Version":u.platformVersion,"Synth-Sec-CH-UA-Full-Version":u.uaFullVersion});v=Object.assign(v,u);X.withCredentials=!0}(u=g.ey("EOM_VISITOR_DATA"))?v["X-Goog-EOM-Visitor-Id"]=u:f?v["X-Goog-Visitor-Id"]= +f:g.ey("VISITOR_DATA")&&(v["X-Goog-Visitor-Id"]=g.ey("VISITOR_DATA"));H&&(v["X-Goog-PageId"]=H);(f=z.L3)&&!kh(z)&&(v["X-Goog-AuthUser"]=f);b&&(v.Authorization="Bearer "+b);z.V("enable_datasync_id_header_in_web_vss_pings")&&z.WY&&z.datasyncId&&(v["X-YouTube-DataSync-Id"]=z.datasyncId);u||v["X-Goog-Visitor-Id"]||b||H||f?X.withCredentials=!0:z.V("html5_send_cpn_with_options")&&N9J.test(Q)&&(X.withCredentials=!0)}Object.keys(v).length>0&&(X.headers=v);L&&(X.onFinish=L);return Object.keys(X).length>1? +X:null}; +rJu=function(Q,z,H,f,b,L,u,X){qn()&&H.token&&(Q=XZ(Q,{ctt:H.token,cttype:H.Ln,mdx_environment:H.mdxEnvironment}));f.V("net_pings_low_priority")&&(z||(z={}),z.priority="low");L||X&&f.V("nwl_skip_retry")?(z==null?z={}:IDa(Q,f.V("html5_assert_cpn_with_regex")),u?RW().sendAndWrite(Q,z):RW().sendThenWrite(Q,z,X)):z?(IDa(Q,f.V("html5_assert_cpn_with_regex")),f.V("net_pings_use_fetch")?EW_(Q,z):g.Nn(Q,z)):g.Dg(Q,b)}; +sD8=function(Q){for(var z=[],H=0;H0&&H>0&&!Q.B&&Q.L<1E7)try{Q.D=Q.S({sampleInterval:z,maxBufferSize:H});var f;(f=Q.D)==null||f.addEventListener("samplebufferfull",function(){return g.B(function(b){if(b.Z==1)return g.Y(b,Q.stop(),2);aDY(Q);g.$v(b)})})}catch(b){Q.B=PKv(b.message)}}; +Z4=function(Q,z){var H,f;return!!((H=window.h5vcc)==null?0:(f=H.settings)==null?0:f.set(Q,z))}; +cJ_=function(){var Q,z,H,f=(Q=window.h5vcc)==null?void 0:(z=Q.settings)==null?void 0:(H=z.getPersistentSettingAsString)==null?void 0:H.call(z,"cpu_usage_tracker_intervals");if(f!=null){var b;Q=(b=JSON.parse(f))!=null?b:[];b=Q.filter(function(y){return y.type==="total"}).map(function(y){return y.seconds}); +z=g.n(UlJ);for(H=z.next();!H.done;H=z.next())H=H.value,b.indexOf(H)===-1&&Q.push({type:"total",seconds:H});var L,u;(L=window.h5vcc)==null||(u=L.settings)==null||u.set("cpu_usage_tracker_intervals_enabled",1);var X,v;(X=window.h5vcc)==null||(v=X.settings)==null||v.set("cpu_usage_tracker_intervals",JSON.stringify(Q))}}; +iBZ=function(){var Q=window.H5vccPlatformService,z="";if(Q&&Q.has("dev.cobalt.coat.clientloginfo")&&(Q=Q.open("dev.cobalt.coat.clientloginfo",function(){}))){var H=Q.send(new ArrayBuffer(0)); +H&&(z=String.fromCharCode.apply(String,g.F(new Uint8Array(H))));Q.close()}return z}; +g.jr=function(Q,z){g.h.call(this);var H=this;this.provider=Q;this.logger=new g.LH("qoe");this.Z={};this.sequenceNumber=1;this.j=NaN;this.oy="N";this.U=this.RZ=this.Fs=this.Xa=this.S=0;this.UY=this.jm=this.Y=this.En="";this.ys=this.mq=NaN;this.gT=0;this.p5=-1;this.Vs=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.ZJ=this.isEmbargoed=this.yl=this.isOffline=this.isBuffering=!1;this.d4=[];this.wh=null;this.gh=this.L=this.rT=this.N=!1;this.B=-1;this.uT=!1;this.yR=new g.lp(this.Yn5,750,this);this.Ze= +this.adCpn=this.L3=this.contentCpn="";this.adFormat=void 0;this.Bc=0;this.WI=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.zx=new Set(["gd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.yE=!1;this.Wz=NaN;this.f3=0;this.KH=!1;this.De=0;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.EY=!1;this.Po={T8:function(b){H.T8(b)}, +gRv:function(){return H.D}, +jN:function(){return H.contentCpn}, +vRn:function(){return H.L3}, +reportStats:function(){H.reportStats()}, +mFh:function(){return H.Z.cat}, +DR:function(b){return H.Z[b]}, +mtT:function(){return H.De}}; +var f=g.Mf(this.provider.rh.experiments,"html5_qoe_proto_mock_length");f&&!Gb.length&&(Gb=sD8(f));g.W(this,this.yR);try{navigator.getBattery().then(function(b){H.wh=b})}catch(b){}g.$P(this,0,"vps",["N"]); +Q.rh.vz()&&(this.f3=(0,g.IE)(),this.Wz=g.ZK(function(){var b=(0,g.IE)(),L=b-H.f3;L>500&&H.On("vmlock",{diff:L.toFixed()});H.f3=b},250)); +Q.HI.t$()&&z&&(this.De=z-Math.round(g.nD(Q)*1E3));this.provider.videoData.Ts&&(this.remoteControlMode=h39[this.provider.videoData.Ts]||0);this.provider.videoData.Qw&&(z=Vxu(this.provider.videoData.Qw),z==null?0:z.length)&&(this.remoteConnectedDevices=z);if(Q.rh.vz()||Q.V("html5_log_cpu_info"))this.C3=new OBp,g.W(this,this.C3);z=g.Mf(Q.rh.experiments,"html5_js_self_profiler_sample_interval_ms");Q=g.Mf(Q.rh.experiments,"html5_js_self_profiler_max_samples");z>0&&Q>0&&(this.iT=new gT(z,Q),g.W(this,this.iT))}; +g.$P=function(Q,z,H,f){var b=Q.Z[H];b||(b=[],Q.Z[H]=b);b.push(z.toFixed(3)+":"+f.join(":"))}; +WaA=function(Q,z){var H=Q.adCpn||Q.provider.videoData.clientPlaybackNonce,f=Q.provider.getCurrentTime(H);g.$P(Q,z,"cmt",[f.toFixed(3)]);f=Q.provider.yN(H);if(Q.D&&f*1E3>Q.D.Gh+100&&Q.D){var b=Q.D;H=b.isAd;f=f*1E3-b.Gh;Q.gR=z*1E3-b.Qze-f-b.jzI;b=(0,g.IE)()-f;z=Q.gR;f=Q.provider.videoData;var L=f.isAd();if(H||L){L=(H?"ad":"video")+"_to_"+(L?"ad":"video");var u={};f.j&&(u.cttAuthInfo={token:f.j,videoId:f.videoId});u.startTime=b-z;DA(L,u);g.WC({targetVideoId:f.videoId,targetCpn:f.clientPlaybackNonce}, +L);hN("pbs",b,L)}else b=Q.provider.HI.vB(),b.j!==f.clientPlaybackNonce?(b.S=f.clientPlaybackNonce,b.B=z):f.fq()||g.ax(new g.kQ("CSI timing logged before gllat",{cpn:f.clientPlaybackNonce}));Q.On("gllat",{l:Q.gR.toFixed(),prev_ad:+H});delete Q.D}}; +Fj=function(Q,z){z=z===void 0?NaN:z;z=z>=0?z:g.nD(Q.provider);var H=Q.provider.HI.u4(),f=H.Zi-(Q.mq||0);f>0&&g.$P(Q,z,"bwm",[f,(H.jJ-(Q.ys||0)).toFixed(3)]);isNaN(Q.mq)&&H.Zi&&Q.isOffline&&Q.T8(!1);Q.mq=H.Zi;Q.ys=H.jJ;isNaN(H.bandwidthEstimate)||g.$P(Q,z,"bwe",[H.bandwidthEstimate.toFixed(0)]);Q.provider.rh.vz()&&Object.keys(H.Z).length!==0&&Q.On("bwinfo",H.Z);if(Q.provider.rh.vz()||Q.provider.rh.V("html5_log_meminfo"))f=Qqp(),Object.values(f).some(function(L){return L!==void 0})&&Q.On("meminfo", +f); +if(Q.provider.rh.vz()||Q.provider.rh.V("html5_log_cpu_info")){var b;(f=(b=Q.C3)==null?void 0:oYp(b))&&Object.values(f).some(function(L){return L!=null})&&Q.On("cpuinfo",f)}Q.iT&&Q.On("jsprof",Q.iT.flush()); +Q.wh&&g.$P(Q,z,"bat",[Q.wh.level,Q.wh.charging?"1":"0"]);b=Q.provider.HI.getVisibilityState();Q.p5!==b&&(g.$P(Q,z,"vis",[b]),Q.p5=b);WaA(Q,z);(b=DlY(Q.provider))&&b!==Q.gT&&(g.$P(Q,z,"conn",[b]),Q.gT=b);Kav(Q,z,H)}; +Kav=function(Q,z,H){if(!isNaN(H.yq)){var f=H.yq;H.B96E3&&(new g.lp(Q.reportStats,0,Q)).start()}; +mlk=function(Q){Q.provider.videoData.d4&&xP(Q,"prefetch");Q.provider.videoData.gT&&Q.On("reload",{r:Q.provider.videoData.reloadReason,ct:Q.provider.videoData.gT});Q.provider.videoData.WI&&xP(Q,"monitor");Q.provider.videoData.isLivePlayback&&xP(Q,"live");ki&&xP(Q,"streaming");Q.provider.videoData.Ts&&Q.On("ctrl",{mode:Q.provider.videoData.Ts},!0);if(Q.provider.videoData.Qw){var z=Q.provider.videoData.Qw.replace(/,/g,"_");Q.On("ytp",{type:z},!0)}Q.provider.videoData.Ya&&(z=Q.provider.videoData.Ya.replace(/,/g, +"."),Q.On("ytrexp",{ids:z},!0));var H=Q.provider.videoData;z=Q.provider.rh.V("enable_white_noise")||Q.provider.rh.V("enable_webgl_noop");H=g.n9(H)||g.AM(H)||g.Ym(H)||g.ri(H);(z||H)&&(z=(0,g.Og)())&&(Q.Z.gpu=[z]);Vt(Q.provider.videoData)&&g.$P(Q,g.nD(Q.provider),"dt",["1"]);Q.provider.rh.vz()&&(z=(0,g.IE)()-Q.provider.rh.YJ,Q.On("playerage",{secs:Math.pow(1.6,Math.round(Math.log(z/1E3)/Math.log(1.6))).toFixed()}));Q.L=!0;Q.j=g.ZK(function(){Q.reportStats()},1E4)}; +kca=function(Q,z,H){var f=g.nD(Q.provider);wW9(Q,f,z,0,H);Fj(Q,f);dl_(Q)}; +wW9=function(Q,z,H,f,b){var L=Q.provider.rh.Z.cbrver;Q.provider.rh.Z.cbr==="Chrome"&&/^96[.]/.test(L)&&H==="net.badstatus"&&/rc\.500/.test(b)&&T9A(Q,3);Q.provider.rh.V("html5_use_ump")&&/b248180278/.test(b)&&T9A(Q,4);L=Q.provider.getCurrentTime(Q.adCpn||Q.provider.videoData.clientPlaybackNonce);f=f===1?"fatal":"";H=[H,f,L.toFixed(3)];f&&(b+=";a6s."+yT());b&&H.push(e3c(b));g.$P(Q,z,"error",H);Q.L=!0}; +lDL=function(Q){Q.B>=0||(Q.provider.rh.m4||Q.provider.HI.getVisibilityState()!==3?Q.B=g.nD(Q.provider):Q.uT=!0)}; +R3u=function(Q,z,H,f){if(H!==Q.oy){z=10&&Q.playTimeSecs<=180&&(Q.Z.qoealert=["1"],Q.ZJ=!0)),H!=="B"||Q.oy!=="PL"&&Q.oy!=="PB"||(Q.isBuffering=!0),Q.S=z);Q.oy==="PL"&&(H==="B"||H==="S")||Q.provider.rh.vz()?Fj(Q,z):(Q.yE||H!=="PL"||(Q.yE=!0,Kav(Q,z,Q.provider.HI.u4())),WaA(Q,z));H==="PL"&&g.Re(Q.yR);var b=[H];H==="S"&&f&&b.push("ss."+f);g.$P(Q,z,"vps",b);Q.oy=H; +Q.Xa=z;Q.S=z;Q.L=!0}}; +xP=function(Q,z){var H=Q.Z.cat||[];H.push(z);Q.Z.cat=H}; +oy=function(Q,z,H,f,b,L){var u=g.nD(Q.provider);H!==1&&H!==3&&H!==5||g.$P(Q,u,"vps",[Q.oy]);var X=Q.Z.xvt||[];X.push("t."+u.toFixed(3)+";m."+L.toFixed(3)+";g."+z+";tt."+H+";np.0;c."+f+";d."+b);Q.Z.xvt=X}; +T9A=function(Q,z){if(!Q.gh){var H=Q.Z.fcnz;H||(H=[],Q.Z.fcnz=H);H.push(String(z));Q.gh=!0}}; +e3c=function(Q){/[^a-zA-Z0-9;.!_-]/.test(Q)&&(Q=Q.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return Q}; +QyY=function(Q){this.provider=Q;this.Y=!1;this.Z=0;this.D=-1;this.sJ=NaN;this.L=0;this.segments=[];this.j=this.S=0;this.previouslyEnded=!1;this.U=this.provider.HI.getVolume();this.N=this.provider.HI.isMuted()?1:0;this.B=Jd(this.provider)}; +NJ=function(Q){Q.B.startTime=Q.L;Q.B.endTime=Q.Z;var z=!1;Q.segments.length&&g.dJ(Q.segments).isEmpty()?(Q.segments[Q.segments.length-1].previouslyEnded&&(Q.B.previouslyEnded=!0),Q.segments[Q.segments.length-1]=Q.B,z=!0):Q.segments.length&&Q.B.isEmpty()||(Q.segments.push(Q.B),z=!0);z?Q.B.endTime===0&&(Q.previouslyEnded=!1):Q.B.previouslyEnded&&(Q.previouslyEnded=!0);Q.S+=Q.Z-Q.L;Q.B=Jd(Q.provider);Q.B.previouslyEnded=Q.previouslyEnded;Q.previouslyEnded=!1;Q.L=Q.Z}; +HDa=function(Q){zgv(Q);Q.j=g.ZK(function(){Q.update()},100); +Q.sJ=g.nD(Q.provider);Q.B=Jd(Q.provider)}; +zgv=function(Q){g.$7(Q.j);Q.j=NaN}; +f4v=function(Q,z,H){H-=Q.sJ;return z===Q.Z&&H>.5}; +bDJ=function(Q,z,H,f){this.rh=z;this.Wz=H;this.segments=[];this.experimentIds=[];this.iT=this.KH=this.isFinal=this.delayThresholdMet=this.ZJ=this.Vs=this.autoplay=this.autonav=!1;this.UY="yt";this.j=[];this.Y=this.U=null;this.sendVisitorIdHeader=this.uT=!1;this.N=this.pageId="";this.S=H==="watchtime";this.L=H==="playback";this.L3=H==="atr";this.m4=H==="engage";this.sendVisitorIdHeader=!1;this.uri=this.L3?"/api/stats/"+H:"//"+z.kc+"/api/stats/"+H;f&&(this.KH=f.fs,f.rtn&&(this.Y=f.rtn),this.S?(this.playerState= +f.state,f.rti>0&&(this.U=f.rti)):(this.cq=f.mos,this.Ci=f.volume,f.at&&(this.adType=f.at)),f.autonav&&(this.autonav=f.autonav),f.inview!=null&&(this.ys=f.inview),f.size&&(this.gT=f.size),f.playerwidth&&(this.playerWidth=f.playerwidth),f.playerheight&&(this.playerHeight=f.playerheight));this.zx=g.P3(z.Z);this.N=Ty(z.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.N==="all"||this.N==="once")this.yE=g.P3(z.Wz);this.D6=z.C3;this.experimentIds=I$A(z.experiments);this.En=z.yE;this.UY=z.Ze;this.region= +z.region;this.userAge=z.userAge;this.WI=z.r7;this.yR=Iw();this.sendVisitorIdHeader=z.sendVisitorIdHeader;this.De=z.V("vss_pings_using_networkless")||z.V("kevlar_woffle");this.YJ=z.V("vss_final_ping_send_and_write");this.yl=z.V("vss_use_send_and_write");this.pageId=z.pageId;this.sj=z.V("vss_playback_use_send_and_write");z.livingRoomAppMode&&(this.livingRoomAppMode=z.livingRoomAppMode);this.Tx=z.D&&z.V("embeds_append_synth_ch_headers");g.O8(z)&&(this.jm=z.De);g.M0(g.B0(z))&&this.j.push(1);this.accessToken= +g.W7(Q);Q.yd[this.Wz]?this.D=Q.yd[this.Wz]:Q.yd.playback&&(this.D=Q.yd.playback);this.adFormat=Q.adFormat;this.adQueryId=Q.adQueryId;this.autoplay=hM(Q);this.L&&(this.Vs=(Q.V("html5_enable_log_server_autoplay")||Q.V("enable_cleanup_masthead_autoplay_hack_fix"))&&Q.D4&&aq(Q)==="adunit"?!0:!1);this.autonav=Q.isAutonav||this.autonav;this.contentVideoId=c7(Q);this.clientPlaybackNonce=Q.clientPlaybackNonce;this.ZJ=Q.gV;Q.j&&(this.Ze=Q.j,this.gh=Q.ZK);Q.mdxEnvironment&&(this.mdxEnvironment=Q.mdxEnvironment); +this.Z=Q.iT;this.Xa=Q.Xa;Q.B&&(this.d4=Q.B.itag,Q.D&&Q.D.itag!==this.d4&&(this.rT=Q.D.itag));Q.Z&&yZ(Q.Z)&&(this.offlineDownloadUserChoice="1");this.eventLabel=aq(Q);this.iT=Q.D6?!1:Q.m4;this.Bc=Q.P5;if(z=jn(Q))this.h$=z;this.QN=Q.hY;this.partnerId=Q.partnerId;this.eventId=Q.eventId;this.playlistId=Q.Z9||Q.playlistId;this.F8=Q.F8;this.Ts=Q.Ts;this.Qw=Q.Qw;this.jl=Q.jl;this.subscribed=Q.subscribed;this.videoId=Q.videoId;this.videoMetadata=Q.videoMetadata;this.visitorData=Q.visitorData;this.osid=Q.osid; +this.Lc=Q.Lc;this.referrer=Q.referrer;this.ID=Q.Zx||Q.ID;this.C3=Q.Xo;this.U2=Q.U2;this.userGenderAge=Q.userGenderAge;this.T$=Q.T$;this.embedsRct=Q.embedsRct;this.embedsRctn=Q.embedsRctn;g.O8(this.rh)&&Q.mutedAutoplay&&(Q.mutedAutoplayDurationMode===2&&Q.limitedPlaybackDurationInSeconds===0&&Q.endSeconds===0?this.j.push(7):this.j.push(2));Q.isEmbedsShortsMode(new g.nC(this.playerWidth,this.playerHeight),!!this.playlistId)&&this.j.push(3);g.bj(Q)&&this.j.push(4);this.mq=Q.W$;Q.compositeLiveIngestionOffsetToken&& +(this.compositeLiveIngestionOffsetToken=Q.compositeLiveIngestionOffsetToken)}; +LRv=function(Q,z){var H=Q.sendVisitorIdHeader?Q.visitorData:void 0;return g.HV(Q.rh,Q.accessToken).then(function(f){return Yzk(Q.uri,Q.rh,Q.pageId,H,f,z,Q.Tx)})}; +XLZ=function(Q,z){return function(){Q.rh.V("html5_simplify_pings")?(Q.Z=Q.f3,Q.p5=z(),Q.yR=0,Q.send()):LRv(Q).then(function(H){var f=ujL(Q);f.cmt=f.len;f.lact="0";var b=z().toFixed(3);f.rt=Number(b).toString();f=g.de(Q.uri,f);Q.rh.V("vss_through_gel_double")&&Sgv(f);Q.De?(H==null&&(H={}),Q.yl?RW().sendAndWrite(f,H):RW().sendThenWrite(f,H)):H?g.Nn(f,H):g.Dg(f)})}}; +ujL=function(Q){var z={ns:Q.UY,el:Q.eventLabel,cpn:Q.clientPlaybackNonce,ver:2,cmt:Q.B(Q.Z),fmt:Q.d4,fs:Q.KH?"1":"0",rt:Q.B(Q.p5),adformat:Q.adFormat,content_v:Q.contentVideoId,euri:Q.D6,lact:Q.yR,live:Q.h$,cl:(733956867).toString(),mos:Q.cq,state:Q.playerState,volume:Q.Ci};Q.subscribed&&(z.subscribed="1");Object.assign(z,Q.zx);Q.N==="all"?Object.assign(z,Q.yE):Q.N==="once"&&Q.L&&Object.assign(z,Q.yE);Q.autoplay&&(z.autoplay="1");Q.Vs&&(z.sautoplay="1");Q.ZJ&&(z.dni="1");!Q.S&&Q.jm&&(z.epm=vP9[Q.jm]); +Q.isFinal&&(z["final"]="1");Q.iT&&(z.splay="1");Q.Xa&&(z.delay=Q.Xa);Q.En&&(z.hl=Q.En);Q.region&&(z.cr=Q.region);Q.userGenderAge&&(z.uga=Q.userGenderAge);Q.userAge!==void 0&&Q.WI&&(z.uga=Q.WI+Q.userAge);Q.f3!==void 0&&(z.len=Q.B(Q.f3));!Q.S&&Q.experimentIds.length>0&&(z.fexp=Q.experimentIds.toString());Q.Y!==null&&(z.rtn=Q.B(Q.Y));Q.ID&&(z.feature=Q.ID);Q.Ts&&(z.ctrl=Q.Ts);Q.Qw&&(z.ytr=Q.Qw);Q.rT&&(z.afmt=Q.rT);Q.offlineDownloadUserChoice&&(z.ODUC=Q.offlineDownloadUserChoice);Q.EY&&(z.lio=Q.B(Q.EY)); +Q.S?(z.idpj=Q.Bc,z.ldpj=Q.QN,Q.delayThresholdMet&&(z.dtm="1"),Q.U!=null&&(z.rti=Q.B(Q.U)),Q.T$&&(z.ald=Q.T$),Q.compositeLiveIngestionOffsetToken&&(z.clio=Q.compositeLiveIngestionOffsetToken)):Q.adType!==void 0&&(z.at=Q.adType);Q.gT&&(Q.L||Q.S)&&(z.size=Q.gT);Q.L&&Q.j.length&&(z.pbstyle=Q.j.join(","));Q.ys!=null&&(Q.L||Q.S)&&(z.inview=Q.B(Q.ys));Q.S&&(z.volume=Iy(Q,g.NT(Q.segments,function(f){return f.volume})),z.st=Iy(Q,g.NT(Q.segments,function(f){return f.startTime})),z.et=Iy(Q,g.NT(Q.segments,function(f){return f.endTime})), +N2(Q.segments,function(f){return f.playbackRate!==1})&&(z.rate=Iy(Q,g.NT(Q.segments,function(f){return f.playbackRate}))),N2(Q.segments,function(f){return f.Z!=="-"})&&(z.als=g.NT(Q.segments,function(f){return f.Z}).join(",")),N2(Q.segments,function(f){return f.previouslyEnded})&&(z.pe=g.NT(Q.segments,function(f){return""+ +f.previouslyEnded}).join(","))); +z.muted=Iy(Q,g.NT(Q.segments,function(f){return f.muted?1:0})); +N2(Q.segments,function(f){return f.visibilityState!==0})&&(z.vis=Iy(Q,g.NT(Q.segments,function(f){return f.visibilityState}))); +N2(Q.segments,function(f){return f.connectionType!==0})&&(z.conn=Iy(Q,g.NT(Q.segments,function(f){return f.connectionType}))); +N2(Q.segments,function(f){return f.B!==0})&&(z.blo=Iy(Q,g.NT(Q.segments,function(f){return f.B}))); +N2(Q.segments,function(f){return!!f.L})&&(z.blo=g.NT(Q.segments,function(f){return f.L}).join(",")); +N2(Q.segments,function(f){return!!f.compositeLiveStatusToken})&&(z.cbs=g.NT(Q.segments,function(f){return f.compositeLiveStatusToken}).join(",")); +N2(Q.segments,function(f){return f.D!=="-"})&&(z.cc=g.NT(Q.segments,function(f){return f.D}).join(",")); +N2(Q.segments,function(f){return f.clipId!=="-"})&&(z.clipid=g.NT(Q.segments,function(f){return f.clipId}).join(",")); +if(N2(Q.segments,function(f){return!!f.audioId})){var H="au"; +Q.L&&(H="au_d");z[H]=g.NT(Q.segments,function(f){return f.audioId}).join(",")}qn()&&Q.Ze&&(z.ctt=Q.Ze,z.cttype=Q.gh,z.mdx_environment=Q.mdxEnvironment); +Q.m4&&(z.etype=Q.wh!==void 0?Q.wh:0);Q.C3&&(z.uoo=Q.C3);Q.livingRoomAppMode&&Q.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(z.clram=ydu[Q.livingRoomAppMode]||Q.livingRoomAppMode);Q.D?qgA(Q,z):(z.docid=Q.videoId,z.referrer=Q.referrer,z.ei=Q.eventId,z.of=Q.Lc,z.osid=Q.osid,z.vm=Q.videoMetadata,Q.adQueryId&&(z.aqi=Q.adQueryId),Q.autonav&&(z.autonav="1"),Q.playlistId&&(z.list=Q.playlistId),Q.jl&&(z.ssrt="1"),Q.U2&&(z.upt=Q.U2));Q.L&&(Q.embedsRct&&(z.rct=Q.embedsRct),Q.embedsRctn&&(z.rctn= +Q.embedsRctn),Q.compositeLiveIngestionOffsetToken&&(z.clio=Q.compositeLiveIngestionOffsetToken));Q.mq&&(z.host_cpn=Q.mq);return z}; +qgA=function(Q,z){if(z&&Q.D){var H=new Set(["q","feature","mos"]),f=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),b=new Set(["aqi","autonav","list","ssrt","upt"]);Q.D.ns==="3pp"&&(z.ns="3pp");for(var L=g.n(Object.keys(Q.D)),u=L.next();!u.done;u=L.next())u=u.value,f.has(u)||H.has(u)||b.has(u)&&!Q.D[u]||(z[u]=Q.D[u])}}; +Iy=function(Q,z){return g.NT(z,Q.B).join(",")}; +Sgv=function(Q){Q.indexOf("watchtime")!==-1&&g.qV("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:Q}})}; +Mrk=function(Q,z){Q.attestationResponse&&LRv(Q).then(function(H){H=H||{};H.method="POST";H.postParams={atr:Q.attestationResponse};Q.De?Q.yl?RW().sendAndWrite(z,H):RW().sendThenWrite(z,H):g.Nn(z,H)})}; +Ad=function(Q){g.h.call(this);this.provider=Q;this.j="paused";this.S=NaN;this.Y=[10,10,10,40];this.U=this.N=0;this.wh=this.De=this.L3=this.Ze=this.L=!1;this.B=this.D=NaN;this.Z=new QyY(Q)}; +pL9=function(Q){if(!Q.L){Q.provider.videoData.PO===16623&&g.ax(Error("Playback for EmbedPage"));var z=YP(Q,"playback");a:{if(Q.provider.rh.V("web_player_use_server_vss_schedule")){var H,f=(H=Q.provider.videoData.getPlayerResponse())==null?void 0:H.playbackTracking,b=f==null?void 0:f.videostatsScheduledFlushWalltimeSeconds;f=f==null?void 0:f.videostatsDefaultFlushIntervalSeconds;if(b&&b.length>0&&f){H=[];var L=Q.provider.videoData.P5,u=Q.provider.videoData.hY,X=-L;b=g.n(b);for(var v=b.next();!v.done;v= +b.next())v=v.value,H.push(v-X),X=v;H.push(f+u-L);H.push(f);Q.Y=H;break a}}Q.Y=[10+Q.provider.videoData.P5,10,10,40+Q.provider.videoData.hY-Q.provider.videoData.P5,40]}HDa(Q.Z);z.Y=rT(Q);Q.B>0&&(z.Z-=Q.B);z.send();Q.provider.videoData.QW&&(z=Q.provider.rh,f=Q.provider.videoData,H={html5:"1",video_id:f.videoId,cpn:f.clientPlaybackNonce,ei:f.eventId,ptk:f.QW,oid:f.vu,ptchn:f.s9,pltype:f.JI,content_v:c7(f)},f.BP&&Object.assign(H,{m:f.BP}),z=g.de(z.qP+"ptracking",H),CHa(Q,z));Q.provider.videoData.Xa|| +(trJ(Q),EPJ(Q),Q.Op());Q.L=!0;Q=Q.Z;Q.Z=Q.provider.HI.yN();Q.sJ=g.nD(Q.provider);!(Q.L===0&&Q.Z<5)&&Q.Z-Q.L>2&&(Q.L=Q.Z);Q.Y=!0}}; +rT=function(Q,z){z=z===void 0?NaN:z;var H=g.nD(Q.provider);z=isNaN(z)?H:z;z=Math.ceil(z);var f=Q.Y[Q.N];Q.N+11E3;!(L.length>1)&&L[0].isEmpty()||X||(u.Y=rT(Q,b));u.send();Q.U++}},(b-H)*1E3); +return Q.D=b}; +sg=function(Q){g.Gr(Q.S);Q.S=NaN}; +nPY=function(Q){Q.Z.update();Q=Q.Z;Q.segments.length&&Q.Z===Q.L||NJ(Q);var z=Q.segments;Q.segments=[];return z}; +YP=function(Q,z){var H=ZDp(Q.provider);Object.assign(H,{state:Q.j});z=new bDJ(Q.provider.videoData,Q.provider.rh,z,H);z.Z=Q.provider.HI.yN();H=Q.provider.videoData.clientPlaybackNonce;z.Z=Q.provider.HI.Tt(H);Q.provider.videoData.isLivePlayback||(z.f3=Q.provider.HI.getDuration(H));Q.provider.videoData.Z&&(H=Q.provider.videoData.Z.JM(z.Z))&&(z.EY=H-z.Z);z.p5=g.nD(Q.provider);z.segments=[Jd(Q.provider)];return z}; +gPL=function(Q,z){var H=YP(Q,"watchtime");Gb8(Q)&&(H.delayThresholdMet=!0,Q.L3=!0);if(Q.B>0){for(var f=g.n(z),b=f.next();!b.done;b=f.next())b=b.value,b.startTime-=Q.B,b.endTime-=Q.B;H.Z-=Q.B}else H.Z=Q.Z.EF();H.segments=z;return H}; +BL=function(Q,z){var H=$J8(Q,!isNaN(Q.D));z&&(Q.D=NaN);return H}; +$J8=function(Q,z){var H=gPL(Q,nPY(Q));!isNaN(Q.D)&&z&&(H.U=Q.D);return H}; +Gb8=function(Q){var z;if(z=Q.provider.videoData.isLoaded()&&Q.provider.videoData.Xa&&Q.L&&!Q.L3)z=Q.Z,z=z.S+z.provider.HI.yN()-z.L>=Q.provider.videoData.Xa;return!!z}; +trJ=function(Q){Q.provider.videoData.youtubeRemarketingUrl&&!Q.De&&(CHa(Q,Q.provider.videoData.youtubeRemarketingUrl),Q.De=!0)}; +EPJ=function(Q){Q.provider.videoData.googleRemarketingUrl&&!Q.wh&&(CHa(Q,Q.provider.videoData.googleRemarketingUrl),Q.wh=!0)}; +jyu=function(Q){if(!Q.Sm()&&Q.L){Q.j="paused";var z=BL(Q);z.isFinal=!0;z.send();Q.dispose()}}; +FRk=function(Q,z){if(!Q.Sm())if(g.w(z.state,2)||g.w(z.state,512)){if(Q.j="paused",g.pp(z,2)||g.pp(z,512))g.pp(z,2)&&(Q.Z.previouslyEnded=!0),Q.L&&(sg(Q),BL(Q).send(),Q.D=NaN)}else if(g.w(z.state,8)){Q.j="playing";var H=Q.L&&isNaN(Q.S)?rT(Q):NaN;if(!isNaN(H)&&(Ex(z,64)<0||Ex(z,512)<0)){var f=$J8(Q,!1);f.Y=H;f.send()}Q.provider.rh.V("html5_report_gapless_loop_to_vss")&&g.pp(z,16)&&z.state.seekSource===58&&(Q.Z.previouslyEnded=!0)}else Q.j="paused"}; +xJu=function(Q,z,H){if(!Q.Ze){H||(H=YP(Q,"atr"));H.attestationResponse=z;try{H.send()}catch(f){if(f.message!=="Unknown Error")throw f;}Q.Ze=!0}}; +CHa=function(Q,z){var H=Q.provider.rh;g.HV(Q.provider.rh,g.W7(Q.provider.videoData)).then(function(f){var b=Q.provider.rh.pageId,L=Q.provider.rh.sendVisitorIdHeader?Q.provider.videoData.visitorData:void 0,u=Q.provider.rh.V("vss_pings_using_networkless")||Q.provider.rh.V("kevlar_woffle"),X=Q.provider.rh.V("allow_skip_networkless");f=Yzk(z,H,b,L,f);rJu(z,f,{token:Q.provider.videoData.j,Ln:Q.provider.videoData.ZK,mdxEnvironment:Q.provider.videoData.mdxEnvironment},H,void 0,u&&!X,!1,!0)})}; +ODL=function(){this.endTime=this.startTime=-1;this.D="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.B=0;this.compositeLiveStatusToken=this.L=void 0;this.volume=this.connectionType=0;this.muted=!1;this.Z=this.clipId="-";this.previouslyEnded=!1}; +PL=function(Q,z,H){this.videoData=Q;this.rh=z;this.HI=H;this.Z=void 0}; +g.nD=function(Q){return oP9(Q)()}; +oP9=function(Q){if(!Q.Z){var z=g.Qs(function(f){var b=(0,g.IE)();f&&b<=631152E6&&(Q.HI.On("ytnerror",{issue:28799967,value:""+b}),b=(new Date).getTime()+2);return b},Q.rh.V("html5_validate_yt_now")),H=z(); +Q.Z=function(){return Math.round(z()-H)/1E3}; +Q.HI.zz()}return Q.Z}; +ZDp=function(Q){var z=Q.HI.gx()||{};z.fs=Q.HI.Sd();z.volume=Q.HI.getVolume();z.muted=Q.HI.isMuted()?1:0;z.mos=z.muted;z.clipid=Q.HI.eC();var H;z.playerheight=((H=Q.HI.getPlayerSize())==null?void 0:H.height)||0;var f;z.playerwidth=((f=Q.HI.getPlayerSize())==null?void 0:f.width)||0;Q=Q.videoData;H={};Q.B&&(H.fmt=Q.B.itag,Q.D&&(Q.Vs?Q.D.itag!==Q.B.itag:Q.D.itag!=Q.B.itag)&&(H.afmt=Q.D.itag));H.ei=Q.eventId;H.list=Q.playlistId;H.cpn=Q.clientPlaybackNonce;Q.videoId&&(H.v=Q.videoId);Q.Uf&&(H.infringe=1); +(Q.D6?0:Q.m4)&&(H.splay=1);(f=jn(Q))&&(H.live=f);Q.D4&&(H.sautoplay=1);Q.Yn&&(H.autoplay=1);Q.F8&&(H.sdetail=Q.F8);Q.partnerId&&(H.partnerid=Q.partnerId);Q.osid&&(H.osid=Q.osid);Q.PX&&(H.cc=g.UMA(Q.PX));return Object.assign(z,H)}; +DlY=function(Q){var z=gUc();if(z)return Jdu[z]||Jdu.other;if(g.oT(Q.rh)){Q=navigator.userAgent;if(/[Ww]ireless[)]/.test(Q))return 3;if(/[Ww]ired[)]/.test(Q))return 30}return 0}; +Jd=function(Q){var z=new ODL,H;z.D=((H=ZDp(Q).cc)==null?void 0:H.toString())||"-";z.playbackRate=Q.HI.getPlaybackRate();H=Q.HI.getVisibilityState();H!==0&&(z.visibilityState=H);Q.rh.gh&&(z.B=1);z.L=Q.videoData.XK;z.compositeLiveStatusToken=Q.videoData.compositeLiveStatusToken;H=Q.HI.getAudioTrack();H.Ii&&H.Ii.id&&H.Ii.id!=="und"&&(z.audioId=H.Ii.id);z.connectionType=DlY(Q);z.volume=Q.HI.getVolume();z.muted=Q.HI.isMuted();z.clipId=Q.HI.eC()||"-";z.Z=Q.videoData.X5||"-";return z}; +g.ay=function(Q,z){g.h.call(this);var H=this;this.provider=Q;this.D=!1;this.L=new Map;this.oy=new g.HR;this.Po={BX3:function(){return H.qoe}, +VEv:function(){return H.Z}, +NxT:function(){return H.B}}; +this.provider.videoData.EZ()&&!this.provider.videoData.Bl&&(this.Z=new Ad(this.provider),this.Z.B=this.provider.videoData.Bc/1E3,g.W(this,this.Z),this.qoe=new g.jr(this.provider,z),g.W(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.tN=this.provider.videoData.clientPlaybackNonce)&&this.L.set(this.tN,this.Z));if(Q.rh.playerCanaryState==="canary"||Q.rh.playerCanaryState==="holdback")this.B=new pD(this.provider),g.W(this,this.B)}; +NTn=function(Q){return!!Q.Z&&!!Q.qoe}; +Ug=function(Q){Q.B&&$l9(Q.B);Q.qoe&&lDL(Q.qoe)}; +I4Z=function(Q){if(Q.qoe){Q=Q.qoe;for(var z=Q.provider.videoData,H=Q.provider.rh,f=g.n(H.kX),b=f.next();!b.done;b=f.next())xP(Q,b.value);if(Q.provider.V("html5_enable_qoe_cat_list"))for(f=g.n(z.v0),b=f.next();!b.done;b=f.next())xP(Q,b.value);else z.kX&&xP(Q,Q.provider.videoData.kX);z.AZ()&&(f=z.Z,C9(z)&&xP(Q,"manifestless"),f&&Zn(f)&&xP(Q,"live-segment-"+Zn(f).toFixed(1)));uE(z)?xP(Q,"sabr"):Q.yT(p9(z));if(Dm(z)||z.OZ())z.OZ()&&xP(Q,"ssa"),xP(Q,"lifa");z.gatewayExperimentGroup&&(f=z.gatewayExperimentGroup, +f==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?f="spkadtrt":f==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(f="spkadctrl"),xP(Q,f));H.Ze!=="yt"&&(Q.Z.len=[z.lengthSeconds.toFixed(2)]);z.cotn&&!Vt(z)&&Q.T8(!0);H.vz()&&(z=iBZ())&&Q.On("cblt",{m:z});if(H.V("html5_log_screen_diagonal")){H=Q.On;var L;z=((L=window.H5vccScreen)==null?0:L.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;H.call(Q,"cbltdiag",{v:z})}}}; +AdY=function(Q){if(Q.provider.HI.t$()){if(Q.D)return;Q.D=!0}Q.Z&&pL9(Q.Z);if(Q.B){Q=Q.B;var z=g.nD(Q.provider);Q.Z<0&&(Q.Z=z,Q.delay.start());Q.B=z;Q.D=z}}; +Yg9=function(Q,z){Q.Z&&(Q=Q.Z,z===58?Q.Z.update():Q.L&&(sg(Q),BL(Q).send(),Q.D=NaN))}; +rdc=function(Q,z){if(g.pp(z,1024)||g.pp(z,512)||g.pp(z,4)){if(Q.B){var H=Q.B;H.B>=0||(H.Z=-1,H.delay.stop())}Q.qoe&&(H=Q.qoe,H.N||(H.B=-1))}if(Q.provider.videoData.enableServerStitchedDai&&Q.tN){var f;(f=Q.L.get(Q.tN))==null||FRk(f,z)}else Q.Z&&FRk(Q.Z,z);if(Q.qoe){f=Q.qoe;H=z.state;var b=g.nD(f.provider),L=f.getPlayerState(H);R3u(f,b,L,H.seekSource||void 0);L=H.WS;g.w(H,128)&&L&&(L.Fd=L.Fd||"",wW9(f,b,L.errorCode,L.zE,L.Fd));(g.w(H,2)||g.w(H,128))&&f.reportStats(b);H.isPlaying()&&!f.N&&(f.B>=0&& +(f.Z.user_intent=[f.B.toString()]),f.N=!0);dl_(f)}Q.B&&(f=Q.B,jDv(f),f.playerState=z.state,f.B>=0&&g.pp(z,16)&&f.seekCount++,z.state.isError()&&f.send());Q.provider.HI.t$()&&(Q.oy=z.state)}; +syc=function(Q){Q.B&&Q.B.send();if(Q.qoe){var z=Q.qoe;if(z.L){z.oy==="PL"&&(z.oy="N");var H=g.nD(z.provider);g.$P(z,H,"vps",[z.oy]);z.N||(z.B>=0&&(z.Z.user_intent=[z.B.toString()]),z.N=!0);z.provider.rh.vz()&&z.On("finalized",{});z.yl=!0;z.reportStats(H)}}if(Q.provider.videoData.enableServerStitchedDai)for(z=g.n(Q.L.values()),H=z.next();!H.done;H=z.next())jyu(H.value);else Q.Z&&jyu(Q.Z);Q.dispose()}; +BTn=function(Q,z){Q.Z&&xJu(Q.Z,z)}; +PH9=function(Q){if(!Q.Z)return null;var z=YP(Q.Z,"atr");return function(H){Q.Z&&xJu(Q.Z,H,z)}}; +a49=function(Q,z,H,f){H.adFormat=H.UY;var b=z.HI;z=new Ad(new PL(H,z.rh,{getDuration:function(){return H.lengthSeconds}, +getCurrentTime:function(){return b.getCurrentTime()}, +yN:function(){return b.yN()}, +Tt:function(){return b.Tt()}, +t$:function(){return b.t$()}, +u4:function(){return b.u4()}, +getPlayerSize:function(){return b.getPlayerSize()}, +getAudioTrack:function(){return H.getAudioTrack()}, +getPlaybackRate:function(){return b.getPlaybackRate()}, +RR:function(){return b.RR()}, +getVisibilityState:function(){return b.getVisibilityState()}, +vB:function(){return b.vB()}, +gx:function(){return b.gx()}, +getVolume:function(){return b.getVolume()}, +isMuted:function(){return b.isMuted()}, +Sd:function(){return b.Sd()}, +eC:function(){return b.eC()}, +getProximaLatencyPreference:function(){return b.getProximaLatencyPreference()}, +zz:function(){b.zz()}, +On:function(L,u){b.On(L,u)}, +yn:function(){return b.yn()}})); +z.B=f;g.W(Q,z);return z}; +UJk=function(){this.yq=0;this.L=this.jJ=this.Zi=this.B=NaN;this.Z={};this.bandwidthEstimate=NaN}; +cL=function(Q,z,H){g.h.call(this);var f=this;this.rh=Q;this.HI=z;this.B=H;this.Z=new Map;this.tN="";this.Po={Im:function(){return Array.from(f.Z.keys())}}}; +cdL=function(Q,z){Q.Z.has(z)&&(syc(Q.Z.get(z)),Q.Z.delete(z))}; +iDZ=function(){this.Z=g.bc;this.array=[]}; +WRL=function(Q,z,H){var f=[];for(z=hgZ(Q,z);zH)break}return f}; +DJA=function(Q,z){var H=[];Q=g.n(Q.array);for(var f=Q.next();!f.done&&!(f=f.value,f.contains(z)&&H.push(f),f.start>z);f=Q.next());return H}; +KRJ=function(Q){return Q.array.slice(hgZ(Q,0x7ffffffffffff),Q.array.length)}; +hgZ=function(Q,z){Q=Xk(Q.array,function(H){return z-H.start||1}); +return Q<0?-(Q+1):Q}; +VrZ=function(Q,z){var H=NaN;Q=g.n(Q.array);for(var f=Q.next();!f.done;f=Q.next())if(f=f.value,f.contains(z)&&(isNaN(H)||f.endz&&(isNaN(H)||f.startQ.mediaTime+Q.S&&z1)Q.D=!0;if((b===void 0?0:b)||isNaN(Q.B))Q.B=z;if(Q.Z)z!==Q.mediaTime&&(Q.Z=!1);else if(z>0&&Q.mediaTime===z){b=1500;if(Q.rh.V("html5_buffer_underrun_transition_fix")){b=g.Mf(Q.rh.experiments,"html5_min_playback_advance_for_steady_state_secs");var L=g.Mf(Q.rh.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");b=b>0&&L>0&&Math.abs(z-Q.B)(f||!Q.D?b:400)}Q.mediaTime=z;Q.L=H;return!1}; +eg6=function(Q,z){this.videoData=Q;this.Z=z}; +l49=function(Q,z,H){return z.g_(H).then(function(){return P2(new eg6(z,z.L))},function(f){f instanceof Error&&g.ax(f); +var b=AI('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),L=r5('audio/mp4; codecs="mp4a.40.2"'),u=b||L,X=z.isLivePlayback&&!g.Rk(Q.S,!0);f="fmt.noneavailable";X?f="html5.unsupportedlive":u||(f="html5.missingapi");u=X||!u?2:1;b={buildRej:"1",a:z.gp(),d:!!z.p5,drm:z.w7(),f18:z.C2.indexOf("itag=18")>=0,c18:b};z.Z&&(z.w7()?(b.f142=!!z.Z.Z["142"],b.f149=!!z.Z.Z["149"],b.f279=!!z.Z.Z["279"]):(b.f133=!!z.Z.Z["133"],b.f140=!!z.Z.Z["140"],b.f242=!!z.Z.Z["242"]),b.cAAC=L,b.cAVC=r5('video/mp4; codecs="avc1.42001E"'), +b.cVP9=r5('video/webm; codecs="vp9"'));z.S&&(b.drmsys=z.S.keySystem,L=0,z.S.Z&&(L=Object.keys(z.S.Z).length),b.drmst=L);return new oj(f,b,u)})}; +WL=function(Q){this.data=window.Float32Array?new Float32Array(Q):Array(Q);this.B=this.Z=Q-1}; +RgY=function(Q){return Q.data[Q.Z]||0}; +Qiv=function(Q){this.S=Q;this.L=this.B=0;this.D=new WL(50)}; +KD=function(Q,z,H){g.vf.call(this);this.videoData=Q;this.experiments=z;this.S=H;this.B=[];this.f_=0;this.L=!0;this.D=!1;this.j=0;H=new zCA;Q.latencyClass==="ULTRALOW"&&(H.D=!1);Q.WI?H.B=3:g.NY(Q)&&(H.B=2);Q.latencyClass==="NORMAL"&&(H.j=!0);var f=g.Mf(z,"html5_liveness_drift_proxima_override");if(p9(Q)!==0&&f){H.Z=f;var b;((b=Q.Z)==null?0:U6J(b))&&H.Z--}uE(Q)&&z.Nc("html5_sabr_parse_live_metadata_playback_boundaries")&&(H.U=!0);if(g.VC("trident/")||g.VC("edge/"))b=g.Mf(z,"html5_platform_minimum_readahead_seconds")|| +3,H.L=Math.max(H.L,b);g.Mf(z,"html5_minimum_readahead_seconds")&&(H.L=g.Mf(z,"html5_minimum_readahead_seconds"));g.Mf(z,"html5_maximum_readahead_seconds")&&(H.N=g.Mf(z,"html5_maximum_readahead_seconds"));z.Nc("html5_force_adaptive_readahead")&&(H.D=!0);if(b=g.Mf(z,"html5_liveness_drift_chunk_override"))H.Z=b;tM(Q)&&(H.Z=(H.Z+1)/5,Q.latencyClass==="LOW"&&(H.Z*=2));if(Q.latencyClass==="ULTRALOW"||Q.latencyClass==="LOW")H.S=g.Mf(z,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,H.Y=g.Mf(z, +"html5_low_latency_max_allowable_liveness_drift_chunks")||10;this.policy=H;this.Y=this.policy.B!==1;this.Z=D4(this,HLA(this,isNaN(Q.liveChunkReadahead)?3:Q.liveChunkReadahead,Q))}; +fbA=function(Q,z){if(z)return z=Q.videoData,z=HLA(Q,isNaN(z.liveChunkReadahead)?3:z.liveChunkReadahead,z),D4(Q,z);if(Q.B.length){if(Math.min.apply(null,Q.B)>1)return D4(Q,Q.Z-1);if(Q.policy.D)return D4(Q,Q.Z+1)}return Q.Z}; +bLZ=function(Q,z){if(!Q.B.length)return!1;var H=Q.Z;Q.Z=fbA(Q,z===void 0?!1:z);if(z=H!==Q.Z)Q.B=[],Q.f_=0;return z}; +VV=function(Q,z){return z>=Q.yf()-Llv(Q)}; +uB8=function(Q,z,H){z=VV(Q,z);H||z?z&&(Q.L=!0):Q.L=!1;Q.Y=Q.policy.B===2||Q.policy.B===3&&Q.L}; +Skn=function(Q,z){z=VV(Q,z);Q.D!==z&&Q.publish("livestatusshift",z);Q.D=z}; +Llv=function(Q){var z=Q.policy.Z;Q.D||(z=Math.max(z-1,0));return z*dT(Q)}; +HLA=function(Q,z,H){H.WI&&z--;tM(H)&&(z=1);if(p9(H)!==0&&(Q=g.Mf(Q.experiments,"html5_live_chunk_readahead_proxima_override"))){z=Q;var f;((f=H.Z)==null?0:U6J(f))&&z++}return z}; +dT=function(Q){return Q.videoData.Z?Zn(Q.videoData.Z)||5:5}; +D4=function(Q,z){z=Math.max(Math.max(1,Math.ceil(Q.policy.L/dT(Q))),z);return Math.min(Math.min(8,Math.floor(Q.policy.N/dT(Q))),z)}; +zCA=function(){this.L=0;this.N=Infinity;this.D=!0;this.Z=2;this.B=1;this.j=!1;this.Y=10;this.U=!1;this.S=1}; +kP=function(Q){g.h.call(this);this.HI=Q;this.Z=0;this.B=null;this.j=this.D=0;this.L={};this.rh=this.HI.C();this.S=new g.lp(this.SA,1E3,this);this.rT=new mR({delayMs:g.Mf(this.rh.experiments,"html5_seek_timeout_delay_ms")});this.yl=new mR({delayMs:g.Mf(this.rh.experiments,"html5_long_rebuffer_threshold_ms")});this.gh=wT(this,"html5_seek_set_cmt");this.En=wT(this,"html5_seek_jiggle_cmt");this.uT=wT(this,"html5_seek_new_elem");this.EY=wT(this,"html5_unreported_seek_reseek");this.L3=wT(this,"html5_long_rebuffer_jiggle_cmt"); +this.f3=wT(this,"html5_long_rebuffer_ssap_clip_not_match");this.De=new mR({delayMs:2E4});this.iT=wT(this,"html5_seek_new_elem_shorts");this.WI=wT(this,"html5_seek_new_media_source_shorts_reuse");this.C3=wT(this,"html5_seek_new_media_element_shorts_reuse");this.mq=wT(this,"html5_reseek_after_time_jump");this.N=wT(this,"html5_gapless_handoff_close_end_long_rebuffer");this.Ze=wT(this,"html5_gapless_slow_seek");this.U=wT(this,"html5_gapless_slice_append_stuck");this.wh=wT(this,"html5_gapless_slow_start"); +this.Y=wT(this,"html5_ads_preroll_lock_timeout");this.Xa=wT(this,"html5_ssap_ad_longrebuffer_new_element");this.ZJ=new mR({delayMs:g.Mf(this.rh.experiments,"html5_skip_slow_ad_delay_ms")||5E3,dU:!this.rh.V("html5_report_slow_ads_as_error")});this.yE=new mR({delayMs:g.Mf(this.rh.experiments,"html5_skip_slow_ad_delay_ms")||5E3,dU:!this.rh.V("html5_skip_slow_buffering_ad")});this.KH=new mR({delayMs:g.Mf(this.rh.experiments,"html5_slow_start_timeout_delay_ms")});this.jm=wT(this,"html5_slow_start_no_media_source"); +g.W(this,this.S)}; +wT=function(Q,z){var H=g.Mf(Q.rh.experiments,z+"_delay_ms");Q=Q.rh.V(z+"_cfl");return new mR({delayMs:H,dU:Q})}; +X9Y=function(Q,z){Q.Z=z}; +Tb=function(Q,z,H,f,b,L,u,X){z.test(H)?(Q.h7(b,z,u),z.dU||L()):(z.w2&&z.B&&!z.D?(H=(0,g.IE)(),f?z.Z||(z.Z=H):z.Z=0,L=!f&&H-z.B>z.w2,H=z.Z&&H-z.Z>z.Wy||L?z.D=!0:!1):H=!1,H&&(X=Object.assign({},Q.TL(z),X),X.wn=u,X.we=b,X.wsuc=f,Q.HI.On("workaroundReport",X),f&&(z.reset(),Q.L[b]=!1)))}; +mR=function(Q){var z=Q===void 0?{}:Q;Q=z.delayMs===void 0?0:z.delayMs;var H=z.Wy===void 0?1E3:z.Wy;var f=z.w2===void 0?3E4:z.w2;z=z.dU===void 0?!1:z.dU;this.Z=this.B=this.L=this.startTimestamp=0;this.D=!1;this.S=Math.ceil(Q/1E3);this.Wy=H;this.w2=f;this.dU=z}; +MWA=function(Q){g.h.call(this);var z=this;this.HI=Q;this.Y=this.Z=this.xv=this.mediaElement=this.playbackData=null;this.D=0;this.S=this.Ze=this.L=null;this.wh=!1;this.ZJ=0;this.U=!1;this.timestampOffset=0;this.N=!0;this.En=0;this.uT=this.KH=!1;this.j=0;this.WI=!1;this.L3=0;this.rh=this.HI.C();this.videoData=this.HI.getVideoData();this.policy=new v_6;this.De=new kP(this.HI);this.rT=this.mq=this.jm=this.B=NaN;this.f3=new g.lp(function(){yzu(z,!1)},2E3); +this.yE=new g.lp(function(){er(z)}); +this.iT=new g.lp(function(){z.wh=!0;qkc(z,{})}); +this.gh=NaN;this.yl=new g.lp(function(){var H=z.rh.D6;H.Z+=1E4/36E5;H.Z-H.L>1/6&&(Tnk(H),H.L=H.Z);z.yl.start()},1E4); +g.W(this,this.De);g.W(this,this.f3);g.W(this,this.iT);g.W(this,this.yE);g.W(this,this.yl)}; +E_Y=function(Q,z){Q.playbackData=z;Q.videoData.isLivePlayback&&(Q.Y=new Qiv(function(){a:{if(Q.playbackData&&Q.playbackData.Z.Z){if(C9(Q.videoData)&&Q.xv){var H=Q.xv.EM.gQ()||0;break a}if(Q.videoData.Z){H=Q.videoData.Z.De;break a}}H=0}return H}),Q.Z=new KD(Q.videoData,Q.rh.experiments,function(){return Q.jA(!0)})); +lH(Q.HI)?(z=Ct9(Q),z.Ms?(Q.V("html5_sabr_enable_utc_seek_requests")&&uE(Q.videoData)&&Q.iU(z.Ms,z.startSeconds),Q.D=z.startSeconds):z.startSeconds>0&&Q.seekTo(z.startSeconds,{lr:"seektimeline_startPlayback",seekSource:15}),Q.N=!1):tWA(Q)||(Q.D=Q.D||(g.wr(Q.videoData)?0:Q.videoData.startSeconds)||0)}; +n_9=function(Q,z){(Q.xv=z)?p9L(Q,!0):Ry(Q)}; +g_a=function(Q,z){g.Re(Q.De.S);Q.V("html5_exponential_memory_for_sticky")&&(z.state.isPlaying()?g.Re(Q.yl):Q.yl.stop());if(Q.mediaElement)if(z.oldState.state===8&&vR(z.state)&&z.state.isBuffering()){z=Q.mediaElement.getCurrentTime();var H=Q.mediaElement.Ux();var f=Q.V("manifestless_post_live_ufph")||Q.V("manifestless_post_live")?SP(H,Math.max(z-3.5,0)):SP(H,z-3.5);f>=0&&z>H.end(f)-1.1&&f+10?(QO(Q.HI,Q.getCurrentTime()+Q.videoData.limitedPlaybackDurationInSeconds),Q.uT=!0):Q.videoData.isLivePlayback&&Q.videoData.endSeconds>0&&(QO(Q.HI,Q.getCurrentTime()+Q.videoData.endSeconds),Q.uT=!0))}; +Gqp=function(Q,z){var H=Q.getCurrentTime(),f=Q.isAtLiveHead(H);if(Q.Y&&f){var b=Q.Y;if(b.Z&&!(H>=b.B&&H50&&b.B.shift())),b=Q.Z,uB8(b,H,z===void 0?!0:z),Skn(b,H),z&&yzu(Q,!0));f!==Q.KH&&(z=Q.getCurrentTime()-Q.rT<=500,H=Q.ZJ>=1E3,z||H||(z=Q.HI.JZ(),z.qoe&&(z=z.qoe,H=g.nD(z.provider), +g.$P(z,H,"lh",[f?"1":"0"])),Q.KH=f,Q.ZJ++,Q.rT=Q.getCurrentTime()))}; +yzu=function(Q,z){if(Q.Z){var H=Q.Z;var f=Q.getCurrentTime();!VV(H,f)&&H.Vd()?(H.policy.j&&(H.policy.Z=Math.max(H.policy.Z+H.policy.S,H.policy.Y)),H=Infinity):H=f0&&lZ(Q.mediaElement)>0&&(Q.B=zq(Q,Q.B,!1)),!Q.mediaElement||!OLn(Q))Q.yE.start(750);else if(!isNaN(Q.B)&&isFinite(Q.B)){var z=Q.mq-(Q.B-Q.timestampOffset);if(!(z===0||Q.V("html5_enable_new_seek_timeline_logic")&&Math.abs(z)<.005))if(z=Q.mediaElement.getCurrentTime()-Q.B,Math.abs(z)<=Q.En||Q.V("html5_enable_new_seek_timeline_logic")&&Math.abs(z)<.005)Q.L&&Q.L.resolve(Q.mediaElement.getCurrentTime()); +else{if(Q.videoData.aG)Q.videoData.aG=!1;else if(!MY(Q.videoData)&&Q.B>=Q.jA()-.1){Q.B=Q.jA();Q.L.resolve(Q.jA());Q.HI.x7();return}try{var H=Q.B-Q.timestampOffset;Q.mediaElement.seekTo(H);Q.De.Z=H;Q.mq=H;Q.D=Q.B;Q.V("html5_enable_new_seek_timeline_logic")&&(Q.U=!1)}catch(f){}}}}; +OLn=function(Q){if(!Q.mediaElement||Q.mediaElement.OG()===0||Q.mediaElement.hasError())return!1;var z=Q.mediaElement.getCurrentTime()>0;if(!(Q.videoData.L&&Q.videoData.L.Z||Q.videoData.isLivePlayback)&&Q.videoData.w7())return z;if(Q.B>=0){var H=Q.mediaElement.MS();if(H.length||!z)return X$(H,Q.B-Q.timestampOffset)}return z}; +xpA=function(Q,z){Q.S&&(Q.S.resolve(z),Q.HI.qV(),Q.rh.vz()&&(z=Q.TL(),z["native"]=""+ +Q.U,z.otgt=""+(Q.B+Q.timestampOffset),Q.HI.On("seekEnd",z)));Ry(Q)}; +Ry=function(Q){Q.B=NaN;Q.mq=NaN;Q.L=null;Q.Ze=null;Q.S=null;Q.wh=!1;Q.U=!1;Q.En=0;Q.f3.stop();Q.iT.stop()}; +NI9=function(Q,z,H){var f=Q.mediaElement,b=z.type;switch(b){case "seeking":var L=f.getCurrentTime()+Q.timestampOffset;if(!Q.L||Q.U&&L!==Q.B){var u=!!Q.L;Q.L=new Ts;Q.V("html5_enable_new_seek_timeline_logic")&&Q.L.then(function(v){xpA(Q,v)},function(){Ry(Q)}); +if(Q.videoData.isAd()){var X;ud_({adCpn:Q.videoData.clientPlaybackNonce,contentCpn:(X=Q.videoData.W$)!=null?X:""},z.Z)}Q.mq=L;X9Y(Q.De,f.getCurrentTime());Q.seekTo(L,{seekSource:104,lr:"seektimeline_mediaElementEvent"});H&&o_a(H,L*1E3,!!u);Q.U=!0}break;case "seeked":Q.L&&Q.L.resolve(Q.mediaElement.getCurrentTime());break;case "loadedmetadata":lH(Q.HI)||JzJ(Q);er(Q);break;case "progress":er(Q);break;case "pause":Q.j=Q.getCurrentTime()}Q.j&&((b==="play"||b==="playing"||b==="timeupdate"||b==="progress")&& +Q.getCurrentTime()-Q.j>10&&(Q.V("html5_enable_new_media_element_puase_jump")?(Q.HI.h7(new oj("qoe.restart",{reason:"pauseJump"})),Q.HI.lL(),Q.seekTo(Q.j,{lr:"pauseJumpNewElement"})):Q.seekTo(Q.j,{lr:"pauseJump"})),b!=="pause"&&b!=="play"&&b!=="playing"&&b!=="progress"&&(Q.j=0))}; +Ibn=function(Q){return(Iq(Q.videoData)||!!Q.videoData.liveUtcStartSeconds)&&(!!Q.videoData.liveUtcStartSeconds||tWA(Q))&&!!Q.videoData.Z}; +tWA=function(Q){return!!Q.videoData.startSeconds&&isFinite(Q.videoData.startSeconds)&&Q.videoData.startSeconds>1E9}; +Ct9=function(Q){var z=0,H=NaN,f="";if(!Q.N)return{startSeconds:z,Ms:H,source:f};Q.videoData.f3?z=Q.videoData.jm:MY(Q.videoData)&&(z=Infinity);if(g.NY(Q.videoData))return{startSeconds:z,Ms:H,source:f};Q.videoData.startSeconds?(f="ss",z=Q.videoData.startSeconds):Q.videoData.Tx&&(f="stss",z=Q.videoData.Tx);Q.videoData.liveUtcStartSeconds&&(H=Q.videoData.liveUtcStartSeconds);if(isFinite(z)&&(z>Q.jA()||zQ.jA()||H0?(f.onesie="0",Q.handleError(new oj("html5.missingapi",f)),!1):!0}; +czL=function(Q){var z=cG();ij(z,Q);return g.uG(z,gJ6())}; +PtZ=function(Q,z){var H,f,b,L,u,X,v,y,q,M,C,t,E,G,x,J,I,r,U,D,T,k,bL,SY,Q9,V;return g.B(function(R){if(R.Z==1)return z.fetchType="onesie",H=J7k(z,Q.getPlayerSize(),Q.getVisibilityState()),f=new Vk(Q,H),g.Y(R,f.fetch(),2);b=R.B;L={player_response:b};z.loading=!1;u=Q.sV.cn;if(f.M8){X=g.n(f.M8.entries());for(v=X.next();!v.done;v=X.next())y=v.value,q=g.n(y),M=q.next().value,C=q.next().value,t=M,E=C,u.Z.set(t,E,180),t===z.videoId&&(G=E.Ne(),z.B_=G);u.Gi=f}x=g.n(f.VQ.entries());for(J=x.next();!J.done;J= +x.next())I=J.value,r=g.n(I),U=r.next().value,D=r.next().value,T=U,k=D,u.B.set(T,k,180);g.mI(z,L,!0);if(z.loading||Vc(z))return R.return(Promise.resolve());u.Z.removeAll();u.B.removeAll();z.B_=[];bL={};SY="onesie.response";Q9=0;z.errorCode?(SY="auth",bL.ec=z.errorCode,bL.ed=z.errorDetail,bL.es=z.Jj||"",Q9=2):(bL.successButUnplayable="1",bL.disposed=""+ +z.Sm(),bL.afmts=""+ +/adaptiveFormats/.test(b),bL.cpn=z.clientPlaybackNonce);V=new oj(SY,bL,Q9);return R.return(Promise.reject(V))})}; +sic=function(Q,z){var H,f,b,L,u,X,v,y,q,M,C;return g.B(function(t){switch(t.Z){case 1:H=z.isAd(),f=!H,b=H?1:3,L=0;case 2:if(!(L0)){t.bT(5);break}return g.Y(t,Jj(5E3),6);case 6:u=new g.kQ("Retrying OnePlatform request",{attempt:L}),g.ax(u);case 5:return g.jY(t,7),g.Y(t,iLL(Q,z),9);case 9:return t.return();case 7:X=g.OA(t);v=NC(X);y=v.errorCode;q=Q.C();M=q.V("html5_use_network_error_code_enums")?401:"401";f&&y==="manifest.net.badstatus"&&v.details.rc===M&&(f=!1,L===b-1&&(b+= +1));if(L===b-1)return C=hCL(H,v.details),C.details.backend="op",C.details.originec=y,t.return(Promise.reject(C));if(y==="auth"||y==="manifest.net.retryexhausted")return t.return(Promise.reject(v));Q.handleError(v);if(JI(v.severity)){t.bT(4);break}case 3:L++;t.bT(2);break;case 4:return t.return(Promise.reject(hCL(H,{backend:"op"})))}})}; +iLL=function(Q,z){function H(SY){SY.readyState===2&&Q.Pc("ps_c")} +var f,b,L,u,X,v,y,q,M,C,t,E,G,x,J,I,r,U,D,T,k,bL;return g.B(function(SY){switch(SY.Z){case 1:z.fetchType="gp";f=Q.C();b=g.HV(f,g.W7(z));if(!b.Z){L=b.getValue();SY.bT(2);break}return g.Y(SY,b.Z,3);case 3:L=SY.B;case 2:return u=L,X=czL(u),v=J7k(z,Q.getPlayerSize(),Q.getVisibilityState()),y=g.zv(Wln),q=g.W7(z),M=(0,g.IE)(),C=!1,t="empty",E=0,Q.Pc("psns"),G={Vx:H},g.Y(SY,g.Tv(X,v,y,void 0,G),4);case 4:x=SY.B;Q.Pc("psnr");if(z.Sm())return SY.return();x?"error"in x&&x.error?(C=!0,t="esf:"+x.error.message, +E=x.error.code):x.errorMetadata&&(C=!0,t="its",E=x.errorMetadata.status):C=!0;if(C)return J=0,I=((0,g.IE)()-M).toFixed(),r={},r=f.V("html5_use_network_error_code_enums")?{backend:"op",rc:E,rt:I,reason:t,has_kpt:z.yE?"1":"0",has_mdx_env:z.mdxEnvironment?"1":"0",has_omit_key_flag:g.ey("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:f.pageId?"1":"0",has_token:q?"1":"0",has_vvt:z.wh?"1":"0",is_mdx:z.isMdxPlayback?"1":"0",mdx_ctrl:z.Ts||"",token_eq:q===g.W7(z)?"1":"0"}:{backend:"op", +rc:""+E,rt:I,reason:t,has_kpt:z.yE?"1":"0",has_mdx_env:z.mdxEnvironment?"1":"0",has_omit_key_flag:g.ey("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:f.pageId?"1":"0",has_token:q?"1":"0",has_vvt:z.wh?"1":"0",is_mdx:z.isMdxPlayback?"1":"0",mdx_ctrl:z.Ts||"",token_eq:q===g.W7(z)?"1":"0"},U="manifest.net.connect",E===429?(U="auth",J=2):E>200&&(U="manifest.net.badstatus",E===400&&(J=2)),SY.return(Promise.reject(new oj(U,r,J)));z.loading=!1;g.mI(z,{raw_player_response:x},!0); +D=x;g.Yh(z.C())&&D&&D.trackingParams&&JK(D.trackingParams);if(z.errorCode)return T={ec:z.errorCode,ed:z.errorDetail,es:z.Jj||""},SY.return(Promise.reject(new oj("auth",T,2)));if(!z.loading&&!Vc(z))return k=z.isAd()?"auth":"manifest.net.retryexhausted",bL=z.isAd()?2:1,SY.return(Promise.reject(new oj(k,{successButUnplayable:"1",hasMedia:g.xm(z)?"1":"0"},bL)));g.$v(SY)}})}; +rzA=function(Q,z,H){function f(E){E=NC(E);if(JI(E.severity))return Promise.reject(E);Q.handleError(E);return!1} +function b(){return!0} +var L,u,X,v,y,q,M,C,t;return g.B(function(E){switch(E.Z){case 1:var G=Q.C(),x=Q.getPlayerSize(),J=Q.getVisibilityState();Q.isFullscreen();var I=window.location.search;if(z.partnerId===38&&G.playerStyle==="books")I=z.videoId.indexOf(":"),I=g.de("//play.google.com/books/volumes/"+z.videoId.slice(0,I)+"/content/media",{aid:z.videoId.slice(I+1),sig:z.EK});else if(z.partnerId===30&&G.playerStyle==="docs")I=g.de("https://docs.google.com/get_video_info",{docid:z.videoId,authuser:z.nne,authkey:z.vH,eurl:G.C3}); +else if(z.partnerId===33&&G.playerStyle==="google-live")I=g.de("//google-liveplayer.appspot.com/get_video_info",{key:z.videoId});else{G.Ze!=="yt"&&g.PT(Error("getVideoInfoUrl for invalid namespace: "+G.Ze));var r={html5:"1",video_id:z.videoId,cpn:z.clientPlaybackNonce,eurl:G.C3,ps:G.playerStyle,el:aq(z),hl:G.yE,list:z.playlistId,agcid:z.h6,aqi:z.adQueryId,sts:20153,lact:Iw()};Object.assign(r,G.Z);G.forcedExperiments&&(r.forced_experiments=G.forcedExperiments);z.wh?(r.vvt=z.wh,z.mdxEnvironment&&(r.mdx_environment= +z.mdxEnvironment)):g.W7(z)&&(r.access_token=g.W7(z));z.adFormat&&(r.adformat=z.adFormat);z.slotPosition>=0&&(r.slot_pos=z.slotPosition);z.breakType&&(r.break_type=z.breakType);z.hk!==null&&(r.ad_id=z.hk);z.I5!==null&&(r.ad_sys=z.I5);z.yA!==null&&(r.encoded_ad_playback_context=z.yA);G.captionsLanguagePreference&&(r.cc_lang_pref=G.captionsLanguagePreference);G.ZJ&&G.ZJ!==2&&(r.cc_load_policy=G.ZJ);var U=g.KF(g.DQ(),65);g.wm(G)&&U!=null&&!U&&(r.device_captions_on="1");G.mute&&(r.mute=G.mute);z.annotationsLoadPolicy&& +G.annotationsLoadPolicy!==2&&(r.iv_load_policy=z.annotationsLoadPolicy);z.qx&&(r.endscreen_ad_tracking=z.qx);(U=G.f3.get(z.videoId))&&U.g2&&(r.ic_track=U.g2);z.yl&&(r.itct=z.yl);hM(z)&&(r.autoplay="1");z.mutedAutoplay&&(r.mutedautoplay=z.mutedAutoplay);z.isAutonav&&(r.autonav="1");z.Fu&&(r.noiba="1");z.isMdxPlayback&&(r.mdx="1",r.ytr=z.Qw);z.mdxControlMode&&(r.mdx_control_mode=z.mdxControlMode);z.mH&&(r.ytrcc=z.mH);z.OE&&(r.utpsa="1");z.isFling&&(r.is_fling="1");z.isInlinePlaybackNoAd&&(r.mute="1"); +z.vnd&&(r.vnd=z.vnd);z.forceAdsUrl&&(U=z.forceAdsUrl.split("|").length===3,r.force_ad_params=U?z.forceAdsUrl:"||"+z.forceAdsUrl);z.d4&&(r.preload=z.d4);x.width&&(r.width=x.width);x.height&&(r.height=x.height);(z.D6?0:z.m4)&&(r.splay="1");z.ypcPreview&&(r.ypc_preview="1");c7(z)&&(r.content_v=c7(z));z.WI&&(r.livemonitor=1);G.L3&&(r.authuser=G.L3);G.pageId&&(r.pageid=G.pageId);G.uT&&(r.ei=G.uT);G.D&&(r.iframe="1");z.contentCheckOk&&(r.cco="1");z.racyCheckOk&&(r.rco="1");G.Y&&z.P_&&(r.live_start_walltime= +z.P_);G.Y&&z.gt&&(r.live_manifest_duration=z.gt);G.Y&&z.playerParams&&(r.player_params=z.playerParams);G.Y&&z.cycToken&&(r.cyc=z.cycToken);G.Y&&z.oG&&(r.tkn=z.oG);J!==0&&(r.vis=J);G.enableSafetyMode&&(r.enable_safety_mode="1");z.yE&&(r.kpt=z.yE);z.CP&&(r.kids_age_up_mode=z.CP);z.kidsAppInfo&&(r.kids_app_info=z.kidsAppInfo);z.gg&&(r.upg_content_filter_mode="1");G.widgetReferrer&&(r.widget_referrer=G.widgetReferrer.substring(0,128));z.Ze?(x=z.Ze.latitudeE7!=null&&z.Ze.longitudeE7!=null?z.Ze.latitudeE7+ +","+z.Ze.longitudeE7:",",x+=","+(z.Ze.clientPermissionState||0)+","+(z.Ze.locationRadiusMeters||"")+","+(z.Ze.locationOverrideToken||"")):x=null;x&&(r.uloc=x);z.X2&&(r.internalipoverride=z.X2);G.embedConfig&&(r.embed_config=G.embedConfig);G.MD&&(r.co_rel="1");G.ancestorOrigins.length>0&&(r.ancestor_origins=Array.from(G.ancestorOrigins).join(","));G.homeGroupInfo!==void 0&&(r.home_group_info=G.homeGroupInfo);G.livingRoomAppMode!==void 0&&(r.living_room_app_mode=G.livingRoomAppMode);G.enablePrivacyFilter&& +(r.enable_privacy_filter="1");z.isLivingRoomDeeplink&&(r.is_living_room_deeplink="1");z.ZE&&z.wp&&(r.clip=z.ZE,r.clipt=z.wp);z.zX&&(r.disable_watch_next="1");z.kc&&(r.forced_by_var="1");for(var D in r)!Dpu.has(D)&&r[D]&&String(r[D]).length>512&&(g.ax(Error("GVI param too long: "+D)),r[D]="");D=G.qP;g.rm(G)&&(D=lY(D.replace(/\b(?:www|web)([.-])/,"tv$1"))||G.qP);G=g.de(D+"get_video_info",r);I&&(G=M_A(G,I));I=G}L=I;X=(u=z.isAd())?1:3;v=0;case 2:if(!(v0)){E.bT(5);break}return g.Y(E, +Jj(5E3),6);case 6:q={playerretry:v,playerretrysrc:H},u||(q.recover="embedded"),y=v2(L,q);case 5:return g.Y(E,Kl8(z,y).then(b,f),7);case 7:if(M=E.B)return E.return();v++;E.bT(2);break;case 4:C=u?"auth":"manifest.net.retryexhausted";t=u?2:1;if(!u&&Math.random()<1E-4)try{g.ax(new g.kQ("b/152131571",btoa(L)))}catch(T){}return E.return(Promise.reject(new oj(C,{backend:"gvi"},t)))}})}; +Kl8=function(Q,z){function H(x){return f(x.xhr)} +function f(x){if(!Q.Sm()){x=x?x.status:-1;var J=0,I=((0,g.IE)()-q).toFixed();I=b.V("html5_use_network_error_code_enums")?{backend:"gvi",rc:x,rt:I}:{backend:"gvi",rc:""+x,rt:I};var r="manifest.net.connect";x===429?(r="auth",J=2):x>200&&(r="manifest.net.badstatus",x===400&&(J=2));return Promise.reject(new oj(r,I,J))}} +var b,L,u,X,v,y,q,M,C,t,E,G;return g.B(function(x){if(x.Z==1){Q.fetchType="gvi";b=Q.C();var J={};Q.uN&&(J.ytrext=Q.uN);(X=g.ra(J)?void 0:J)?(L={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:X},u=v2(z,{action_display_post:1})):(L={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},u=z);v={};b.sendVisitorIdHeader&&Q.visitorData&&(v["X-Goog-Visitor-Id"]=Q.visitorData);(y=Ty(b.experiments,"debug_sherlog_username"))&&(v["X-Youtube-Sherlog-Username"]=y);Object.keys(v).length> +0&&(L.headers=v);q=(0,g.IE)();return g.Y(x,uD(Y7,u,L).then(void 0,H),2)}M=x.B;if(!M||!M.responseText)return x.return(f(M));Q.loading=!1;C=L1(M.responseText);g.mI(Q,C,!0);if(Q.errorCode)return t={ec:Q.errorCode,ed:Q.errorDetail,es:Q.Jj||""},x.return(Promise.reject(new oj("auth",t,2)));if(!Q.loading&&!Vc(Q))return E=Q.isAd()?"auth":"manifest.net.retryexhausted",G=Q.isAd()?2:1,x.return(Promise.reject(new oj(E,{successButUnplayable:"1"},G)));g.$v(x)})}; +hCL=function(Q,z){return new oj(Q?"auth":"manifest.net.retryexhausted",z,Q?2:1)}; +ut=function(Q,z,H){H=H===void 0?!1:H;var f,b,L,u;g.B(function(X){if(X.Z==1){f=Q.C();if(H&&(!g.Tt(f)||aq(z)!=="embedded")||z.zX||aq(z)!=="adunit"&&(g.oT(f)||c0(f)||g.c6(f)||g.rm(f)||wS(f)==="WEB_CREATOR"))return X.return();b=g.HV(f,g.W7(z));return b.Z?g.Y(X,b.Z,3):(L=b.getValue(),X.bT(2))}X.Z!=2&&(L=X.B);u=L;return X.return(VWL(Q,z,u))})}; +VWL=function(Q,z,H){var f,b,L,u,X;return g.B(function(v){if(v.Z==1){g.jY(v,2);f=czL(H);var y=z.C();g.DQ();var q={context:g.uj(z),videoId:z.videoId,racyCheckOk:z.racyCheckOk,contentCheckOk:z.contentCheckOk,autonavState:"STATE_NONE"};aq(z)==="adunit"&&(q.isAdPlayback=!0);y.embedConfig&&(q.serializedThirdPartyEmbedConfig=y.embedConfig);y.MD&&(q.showContentOwnerOnly=!0);z.uD&&(q.showShortsOnly=!0);g.KF(0,141)&&(q.autonavState=g.KF(0,140)?"STATE_OFF":"STATE_ON");if(g.wm(y)){var M=g.KF(0,65);M=M!=null? +!M:!1;var C=!!g.a4("yt-player-sticky-caption");q.captionsRequested=M&&C}var t;if(y=(t=y.getWebPlayerContextConfig())==null?void 0:t.encryptedHostFlags)q.playbackContext={encryptedHostFlags:y};b=q;L=g.zv(dp9);Q.Pc("wn_s");return g.Y(v,g.Tv(f,b,L),4)}if(v.Z!=2)return u=v.B,Q.Pc("wn_r"),!u||"error"in u&&u.error||(X=u,g.Yh(z.C())&&X.trackingParams&&JK(X.trackingParams),g.mI(z,{raw_watch_next_response:u},!1)),g.xv(v,0);g.OA(v);g.$v(v)})}; +mp9=function(Q){Q.Pc("vir");Q.Pc("ps_s");dE("vir",void 0,"video_to_ad");var z=Up_(Q);z.then(function(){Q.Pc("virc");dE("virc",void 0,"video_to_ad");Q.Pc("ps_r");dE("ps_r",void 0,"video_to_ad")},function(){Q.Pc("virc"); +dE("virc",void 0,"video_to_ad")}); +return z}; +g.v9=function(Q,z,H,f,b,L,u,X,v,y){v=v===void 0?new g.Kv(Q):v;y=y===void 0?!0:y;g.vf.call(this);var q=this;this.rh=Q;this.playerType=z;this.jy=H;this.nx=f;this.getVisibilityState=L;this.visibility=u;this.sV=X;this.videoData=v;this.Hi=y;this.logger=new g.LH("VideoPlayer");this.IB=null;this.Qx=new qJ;this.NF=null;this.bl=!0;this.vI=this.xv=null;this.Nj=[];this.sT=new LL;this.ZY=this.VX=null;this.vQ=new LL;this.sL=null;this.mU=this.aU=!1;this.Jo=NaN;this.fN=!1;this.playerState=new g.HR;this.iS=[];this.H$= +new g.Pt;this.yF=new Kru(this);this.mediaElement=null;this.sA=new g.lp(this.gNh,15E3,this);this.DI=this.Nk=!1;this.Lb=NaN;this.Rw=!1;this.Es=0;this.qZ=!1;this.HK=NaN;this.HZ=new H9(new Map([["bufferhealth",function(){return ZLc(q.Sx)}], +["bandwidth",function(){return q.G9()}], +["networkactivity",function(){return q.rh.schedule.L3}], +["livelatency",function(){return q.isAtLiveHead()&&q.isPlaying()?w99(q):NaN}], +["rawlivelatency",function(){return w99(q)}]])); +this.YA=0;this.loop=!1;this.playbackRate=1;this.yL=0;this.Sx=new MWA(this);this.kz=!1;this.pX=[];this.WM=this.VB=0;this.zU=this.Qr=!1;this.jJ=this.Zi=0;this.Kv=-1;this.xz="";this.GM=new g.lp(this.yhh,0,this);this.FH=!1;this.OY=this.J7=null;this.H5T=[this.H$,this.GM,this.sA,this.HZ];this.O3=this.ly=null;this.Ox=function(){var M=q.JZ();M.provider.rh.m4||M.provider.HI.getVisibilityState()===3||(M.provider.rh.m4=!0);M.sN();if(M.B){var C=M.B;C.S&&C.Z<0&&C.provider.HI.getVisibilityState()!==3&&$l9(C)}M.qoe&& +(M=M.qoe,M.uT&&M.B<0&&M.provider.rh.m4&&lDL(M),M.L&&Fj(M));q.xv&&SW(q);q.rh.v0&&!q.videoData.backgroundable&&q.mediaElement&&!q.oJ()&&(q.isBackground()&&q.mediaElement.v$()?(q.On("bgmobile",{suspend:1}),q.Iv(!0,!0)):q.isBackground()||XB(q)&&q.On("bgmobile",{resume:1}))}; +this.Po={XS:function(M){q.XS(M)}, +JvI:function(M){q.IB=M}, +oQv:function(){return q.wk}, +JJ:function(){return q.PE}, +AB:function(){return q.vI}, +SUj:function(){return q.ph}, +fah:function(){return q.XX}, +Ptq:function(){}, +C:function(){return q.rh}, +aB:function(){return q.mediaElement}, +xeh:function(M){q.bS(M)}, +jl3:function(){return q.nx}}; +this.logger.debug(function(){return"creating, type "+z}); +this.mQ=new TTc(this.rh);this.i7=new fDA(this.rh,this.nx,this);this.gP=new g.iH(function(){return q.getCurrentTime()},function(){return q.getPlaybackRate()},function(){return q.getPlayerState()},function(M,C){M!==g.Li("endcr")||g.w(q.playerState,32)||q.x7(); +b(M,C,q.playerType)},function(M,C){g.wr(q.videoData)&&q.On(M,C)}); +g.W(this,this.gP);g.W(this,this.Sx);kqp(this,v);this.videoData.subscribe("dataupdated",this.vJj,this);this.videoData.subscribe("dataloaded",this.Pf,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.On,this);this.videoData.subscribe("ctmpstr",this.b3,this);this.nB();Wra(this.Ox);this.visibility.subscribe("visibilitystatechange",this.Ox);this.ph=new g.lp(this.Gc,g.Mf(this.rh.experiments,"html5_player_att_initial_delay_ms")||4500,this);this.XX= +new g.lp(this.Gc,g.Mf(this.rh.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.tR=new g.HO(this.FU,g.Mf(this.rh.experiments,"html5_progress_event_throttle_ms")||350,this);g.W(this,this.tR)}; +kqp=function(Q,z){if(Q.playerType===2||Q.rh.W0)z.Ks=!0;var H=W9_(z.UY,z.JY,Q.rh.D,Q.rh.Y);H&&(z.adFormat=H);Q.playerType===2&&(z.Yn=!0);if(Q.isFullscreen()||Q.rh.D)H=g.a4("yt-player-autonavstate"),z.autonavState=H||(Q.rh.D?2:Q.videoData.autonavState);z.endSeconds&&z.endSeconds>z.startSeconds&&QO(Q,z.endSeconds)}; +TIa=function(Q){syc(Q.wk);g.Xx(Q.wk);for(var z=Q.PE,H=g.n(z.Z.values()),f=H.next();!f.done;f=H.next())syc(f.value);z.Z.clear();g.Xx(Q.PE)}; +eCY=function(Q){var z=Q.videoData;mp9(Q).then(void 0,function(H){Q.videoData!==z||z.Sm()||(H=NC(H),H.errorCode==="auth"&&Q.videoData.errorDetail?Q.VN(H.errorCode,2,unescape(Q.videoData.errorReason),Oh(H.details),Q.videoData.errorDetail,Q.videoData.Jj||void 0):Q.handleError(H))})}; +QOL=function(Q){if(!g.w(Q.playerState,128))if(Q.videoData.isLoaded(),Q.logger.debug("finished loading playback data"),Q.Nj=g.z7(Q.videoData.De),g.xm(Q.videoData)){Q.jy.tick("bpd_s");yO(Q).then(function(){Q.jy.tick("bpd_c");if(!Q.Sm()){Q.aU&&(Q.zq(Lx(Lx(Q.playerState,512),1)),XB(Q));var f=Q.videoData;f.endSeconds&&f.endSeconds>f.startSeconds&&QO(Q,f.endSeconds);Q.sT.finished=!0;qp(Q,"dataloaded");Q.vQ.Dv()&&lbZ(Q);GcJ(Q.i7,Q.ZY)}}); +Q.V("html5_log_media_perf_info")&&Q.On("loudness",{v:Q.videoData.dS.toFixed(3)},!0);var z,H=(z=Q.mediaElement)==null?void 0:z.ai();if(H&&"disablePictureInPicture"in H&&Q.rh.qD)try{H.disablePictureInPicture=Q.rh.Tl&&!Q.videoData.backgroundable}catch(f){g.ax(f)}RCY(Q)}else qp(Q,"dataloaded")}; +yO=function(Q){Mp(Q);Q.ZY=null;var z=l49(Q.rh,Q.videoData,Q.oJ());Q.VX=z;Q.VX.then(function(H){zH8(Q,H)},function(H){Q.Sm()||(H=NC(H),Q.visibility.isBackground()?(CL(Q,"vp_none_avail"),Q.VX=null,Q.sT.reset()):(Q.sT.finished=!0,Q.VN(H.errorCode,H.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",Oh(H.details))))}); +return z}; +zH8=function(Q,z){if(!Q.Sm()&&!z.videoData.Sm()){Q.logger.debug("finished building playback data");Q.ZY=z;E_Y(Q.Sx,Q.ZY);if(Q.videoData.isLivePlayback){var H=HAn(Q.sV.cn,Q.videoData.videoId)||Q.xv&&!isNaN(Q.xv.L3);H=Q.V("html5_onesie_live")&&H;lH(Q)||Q.videoData.EY>0&&!C9(Q.videoData)||H||Q.seekTo(Q.jA(),{lr:"videoplayer_playbackData",seekSource:18})}if(Q.videoData.L.Z){if(Q.V("html5_sabr_report_missing_url_as_error")&&pSZ(Q.videoData)){Q.handleError(new oj("fmt.missing",{missabrurl:"1"},2));return}Q.xv? +g.ax(Error("Duplicated Loader")):(H=g.Mf(Q.rh.experiments,"html5_onesie_defer_content_loader_ms"))&&Q.vG()&&HAn(Q.sV.cn,Q.videoData.QM)?g.gR(function(){Q.Sm()||Q.xv||fYa(Q)},H):fYa(Q)}else!Q.videoData.L.Z&&Vt(Q.videoData)&&Q.xZ(new CI(Q.videoData.videoId||"",4)); +Q.ye();CKY(z).then(function(){var f={};Q.ST(f);Q.rh.vz()&&Q.V("html5_log_media_perf_info")&&Q.On("av1Info",f);SW(Q)})}}; +lbZ=function(Q){Q.Sm();Q.logger.debug("try finish readying playback");if(Q.vQ.finished)Q.logger.debug("already finished readying");else if(Q.sT.finished)if(g.w(Q.playerState,128))Q.logger.debug("cannot finish readying because of error");else if(Q.Nj.length)Q.logger.debug(function(){return"cannot finish readying because of pending preroll: "+Q.Nj}); +else if(Q.gP.started||mJu(Q.gP),Q.l7())Q.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{Q.xv&&(Q.mU=p8A(Q.xv.timing));Q.vQ.finished||(Q.vQ.finished=!0);var z=Q.V("html5_onesie_live")&&Q.xv&&!isNaN(Q.xv.L3);!Q.videoData.isLivePlayback||Q.videoData.EY>0&&!C9(Q.videoData)||z||lH(Q)||(Q.logger.debug("seek to head for live"),Q.seekTo(Infinity,{lr:"videoplayer_readying",seekSource:18}),Q.isBackground()&&(Q.DI=!0));I4Z(Q.JZ());Q.logger.debug("finished readying playback"); +Q.publish("playbackready",Q);Kj("pl_c",Q.jy.timerName)||(Q.jy.tick("pl_c"),dE("pl_c",void 0,"video_to_ad"));Kj("pbr",Q.jy.timerName)||(Q.jy.tick("pbr"),dE("pbr",void 0,"video_to_ad"))}else Q.logger.debug("playback data not loaded")}; +QO=function(Q,z){Q.NF&&bAJ(Q);Q.NF=new g.fi(z*1E3,0x7ffffffffffff);Q.NF.namespace="endcr";Q.addCueRange(Q.NF)}; +bAJ=function(Q){Q.removeCueRange(Q.NF);Q.NF=null}; +L78=function(Q,z,H,f,b){var L=Q.JZ(b),u=g.wr(Q.videoData)?L.getVideoData():Q.videoData;u.B=H;var X=g.tz(Q);H=new HBA(u,H,z,X?X.itag:"",f);Q.rh.experiments.Nc("html5_refactor_sabr_video_format_selection_logging")?(H.videoId=b,Q.O3=H):L.vE(H);b=Q.i7;b.B=0;b.Z=0;Q.publish("internalvideoformatchange",u,z==="m")}; +g.tz=function(Q){var z=Ek(Q);return b$(z)||!Q.ZY?null:g.wJ(Q.ZY.Z.videoInfos,function(H){return z.D(H)})}; +Ek=function(Q){if(Q.ZY){var z=Q.i7;var H=Q.ZY;Q=Q.Nx();var f=uT8(z);if(b$(f)){if(f=bBL(z,H).compose(yJZ(z,H)).compose(M8A(z,H)).compose(gY_(z,H.videoData)).compose(ZB9(z,H.videoData,H)).compose(Eg(z,H)).compose(XW9(z,H)),b$(Q)||z.V("html5_apply_pbr_cap_for_drm"))f=f.compose(vY9(z,H))}else z.V("html5_perf_cap_override_sticky")&&(f=f.compose(Eg(z,H))),z.V("html5_ustreamer_cap_override_sticky")&&(f=f.compose(vY9(z,H)));f=f.compose(XW9(z,H));z=H.videoData.sR.compose(f).compose(H.videoData.M9).compose(Q)}else z= +D1;return z}; +GZL=function(Q){var z=Q.i7;Q=Q.videoData;var H=gY_(z,Q);z.V("html5_disable_client_autonav_cap_for_onesie")||H.compose(ZB9(z,Q));return H}; +SW=function(Q){if(Q.videoData.L&&Q.videoData.L.Z){var z=Ek(Q);Q.xv&&EmL(Q.xv,z)}}; +ueJ=function(Q){var z;return!!(Q.V("html5_native_audio_track_switching")&&g.$w&&((z=Q.videoData.B)==null?0:la(z)))}; +SuL=function(Q){if(!ueJ(Q))return!1;var z;Q=(z=Q.mediaElement)==null?void 0:z.audioTracks();return!!(Q&&Q.length>1)}; +vb8=function(Q){var z=XEu(Q);if(z)return Q.videoData.getAvailableAudioTracks().find(function(H){return H.Ii.getName()===z})}; +XEu=function(Q){var z;if(Q=(z=Q.mediaElement)==null?void 0:z.audioTracks())for(z=0;z0&&(z.r7=f.Qg)); +z.PN=f.ov;z.zw=Nj(H,{},f.L||void 0,L9(f));z.WI=bE(f)&&g.c6(H);uE(f)&&(z.QN=!0,H.V("html5_sabr_report_partial_segment_estimated_duration")&&(z.pW=!0),z.Z=!0,z.AK=H.V("html5_sabr_enable_utc_seek_requests"),z.Sl=H.V("html5_sabr_enable_live_clock_offset"),z.nV=H.V("html5_disable_client_resume_policy_for_sabr"),z.gg=H.V("html5_trigger_loader_when_idle_network"),z.o_=H.V("html5_sabr_parse_live_metadata_playback_boundaries"),z.eM=H.V("html5_enable_platform_backpressure_with_sabr"),z.yd=H.V("html5_consume_onesie_next_request_policy_for_sabr"), +z.oQ=H.V("html5_sabr_report_next_ad_break_time"),z.z0=H.V("html5_log_high_res_buffer_timeline")&&H.vz(),z.bu=H.V("html5_remove_stuck_slices_beyond_max_buffer_limits"),z.ER=H.V("html5_gapless_sabr_btl_last_slice")&&f9(f),z.aK=H.V("html5_reset_last_appended_slice_on_seek")&&f9(f),C9(f)?(z.qx=!0,z.v0=H.V("html5_disable_variability_tracker_for_live"),z.uT=H.V("html5_sabr_use_accurate_slice_info_params"),H.V("html5_simplified_backup_timeout_sabr_live")&&(z.xr=!0,z.C2=z.Ev)):z.ys=H.V("html5_probe_request_on_sabr_request_progress"), +z.wp=H.V("html5_serve_start_seconds_seek_for_post_live_sabr"),z.cq=H.V("html5_flush_index_on_updated_timestamp_offset"),z.jm=H.V("html5_enable_sabr_request_pipelining")&&!g.wr(f),z.Uf=H.V("html5_ignore_partial_segment_from_live_readahead"),z.p$=H.V("html5_use_non_active_broadcast_for_post_live"),z.yl=H.V("html5_use_centralized_player_time"),z.J5=H.V("html5_consume_onesie_sabr_seek"),z.wh=H.V("html5_enable_sabr_seek_loader_refactor"),z.JY=H.V("html5_update_segment_start_time_from_media_header"),f.enableServerStitchedDai&& +(z.S=!0,z.F8=H.V("html5_reset_server_stitch_state_for_non_sabr_seek"),z.BP=H.V("html5_remove_ssdai_append_pause"),z.C3=H.V("html5_consume_ssdai_info_with_streaming"),z.gt=H.V("html5_process_all_cuepoints"),z.h$=H.V("html5_ssdai_log_ssevt_in_loader")),z.Ve=H.vz()||f.OZ());z.j=z.Z&&H.V("html5_sabr_live");z.ZJ=g.t3J(f);g8(H.S,ZM.BITRATE)&&(z.oi=NaN);if(X=g.Mf(H.experiments,"html5_request_size_max_kb"))z.En=X*1024;H.S.S?z.m4="; "+ZM.EXPERIMENTAL.name+"=allowed":H.V("html5_enable_cobalt_tunnel_mode")&& +(z.m4="; tunnelmode=true");X=f.serverPlaybackStartConfig;(X==null?0:X.enable)&&(X==null?0:X.playbackStartPolicy)&&(z.dS=!0,wH(z,X.playbackStartPolicy,2));X=y4v(Q);Q.Qx.removeAll();a:{H=Q.sV.cn;if(f=Q.videoData.videoId)if(b=H.Z.get(f)){H.Z.remove(f);H=b;break a}H=void 0}Q.xv=new g.zb(Q,Q.rh.schedule,z,Q.videoData.Z,Q.videoData.L,Ek(Q),X,Q.videoData.enableServerStitchedDai,H,Q.videoData.En);z=Q.videoData.V("html5_disable_preload_for_ssdai_with_preroll")&&Q.videoData.isLivePlayback&&Q.vG()?!0:Q.aU&& +g.oT(Q.rh)&&Q.videoData.isLivePlayback;Q.xv.initialize(Q.getCurrentTime(),Ek(Q),z);Q.videoData.probeUrl&&(Q.xv.uT=Q.videoData.probeUrl);if(Q.Nj.length||Q.aU)Q.videoData.cotn||pL(Q,!1);n_9(Q.Sx,Q.xv);Q.J7&&(UYa(Q.xv,new g.fD(Q.J7)),Q.On("sdai",{sdl:1}));Q.OY&&(Q.xv.L$(Q.OY),Q.Sx.N=!1);g.Rq(Q.videoData)&&(Q=Q.xv,Q.policy.WY=Q.policy.gD)}; +Mp=function(Q){Q.xv&&(Q.xv.dispose(),Q.xv=null,n_9(Q.Sx,null));Q.Uq()?qu9(Q):Q.gq()}; +qu9=function(Q){if(Q.vI)if(Q.logger.debug("release media source"),Q.NT(),Q.vI.S)try{Q.rh.vz()&&Q.On("rms",{l:"vprms",sr:Q.Uq(),rs:wp(Q.vI)});Q.vI.clear();var z;(z=Q.mediaElement)!=null&&(z.B=Q.vI);Q.vI=null}catch(H){z=new g.kQ("Error while clearing Media Source in VideoPlayer: "+H.name+", "+H.message),z=NC(z),Q.handleError(z),Q.gq()}else Q.gq()}; +MH_=function(Q,z){z=z===void 0?!1:z;if(Q.vI)return Q.vI.L;Q.logger.debug("update media source");a:{z=z===void 0?!1:z;try{g.mW()&&Q.videoData.vM()&&sQp(Q.mediaElement);var H=Q.mediaElement.AB(Q.wq(),Q.A4())}catch(b){if(kX_(Q.yF,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",b);Q.VN("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}Q.B2(H,!1,!1,z)}var f;return((f=Q.AB())==null?void 0:f.L)||null}; +CNL=function(Q,z){z=z===void 0?!1:z;if(Q.xv){Q.V("html5_keep_ssdai_avsync_in_loader_track")&&Kjk(Q.xv);var H=Q.getCurrentTime()-Q.ex();Q.xv.seek(H,{qt:z}).IN(function(){})}else fYa(Q)}; +Ebv=function(Q,z,H,f){H=H===void 0?!1:H;f=f===void 0?!1:f;if(Q.vI&&(!z||Q.vI===z)){Q.logger.debug("media source opened");var b=Q.getDuration();!b&&C9(Q.videoData)&&(b=25200);if(Q.vI.isView){var L=b;Q.logger.debug(function(){return"Set media source duration to "+L+", video duration "+b}); +L>Q.vI.getDuration()&&tHa(Q,L)}else tHa(Q,b);Mna(Q.xv,Q.vI,H,f);Q.publish("mediasourceattached")}}; +tHa=function(Q,z){if(Q.vI){Q.vI.wx(z);var H;(H=Q.xv)!=null&&H.policy.yl&&(H.j=z)}}; +nma=function(Q,z){L78(Q,z.reason,z.Z.info,z.token,z.videoId)}; +pEJ=function(Q,z){Q.rh.experiments.Nc("enable_adb_handling_in_sabr")&&(Q.pauseVideo(!0),Q.AS(),z&&Q.VN("sabr.config",1,"BROWSER_OR_EXTENSION_ERROR"))}; +qp=function(Q,z){Q.publish("internalvideodatachange",z===void 0?"dataupdated":z,Q,Q.videoData)}; +nbL=function(Q){var z="loadstart loadedmetadata play playing pause ended seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ");Q.V("html5_remove_progress_event_listener")||(z.push("progress"),z.push("suspend"));z=g.n(z);for(var H=z.next();!H.done;H=z.next())Q.H$.X(Q.mediaElement,H.value,Q.bS,Q);Q.rh.ax&&Q.mediaElement.FK()&&(Q.H$.X(Q.mediaElement,"webkitplaybacktargetavailabilitychanged",Q.xi5,Q),Q.H$.X(Q.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",Q.z9$, +Q))}; +ZAa=function(Q){g.$7(Q.Jo);gbY(Q)||(Q.Jo=g.ZK(function(){return gbY(Q)},100))}; +gbY=function(Q){var z=Q.mediaElement;z&&Q.Nk&&!Q.videoData.L3&&!Kj("vfp",Q.jy.timerName)&&z.OG()>=2&&!z.isEnded()&&yA(z.Ux())>0&&Q.jy.tick("vfp");return(z=Q.mediaElement)&&!Q.videoData.L3&&z.getDuration()>0&&(z.isPaused()&&z.OG()>=2&&yA(z.Ux())>0&&(Kj("pbp",Q.jy.timerName)||Q.jy.tick("pbp"),!Q.videoData.rz||Q.fN||z.isSeeking()||(Q.fN=!0,Q.publish("onPlaybackPauseAtStart"))),z=z.getCurrentTime(),hd(Q.mQ,z))?(Q.gF(),!0):!1}; +$b_=function(Q){Q.JZ().Ex();if(MY(Q.videoData)&&Date.now()>Q.yL+6283){if(!(!Q.isAtLiveHead()||Q.videoData.Z&&py(Q.videoData.Z))){var z=Q.JZ();if(z.qoe){z=z.qoe;var H=z.provider.HI.u4(),f=g.nD(z.provider);Kav(z,f,H);H=H.L;isNaN(H)||g.$P(z,f,"e2el",[H.toFixed(3)])}}Q.V("html5_alc_live_log_rawlat")?(z=Q.videoData,z=g.xJ(z.C())?!0:g.dm(z.C())?z.gS==="6":!1):z=g.xJ(Q.rh);z&&Q.On("rawlat",{l:bt(Q.HZ,"rawlivelatency").toFixed(3)});Q.yL=Date.now()}Q.videoData.B&&la(Q.videoData.B)&&(z=Q.e5())&&z.videoHeight!== +Q.WM&&(Q.WM=z.videoHeight,L78(Q,"a",Gj6(Q,Q.videoData.gh)))}; +Gj6=function(Q,z){if(z.Z.video.quality==="auto"&&la(z.getInfo())&&Q.videoData.zx)for(var H=g.n(Q.videoData.zx),f=H.next();!f.done;f=H.next())if(f=f.value,f.getHeight()===Q.WM&&f.Z.video.quality!=="auto")return f.getInfo();return z.getInfo()}; +w99=function(Q){if(!MY(Q.videoData))return NaN;var z=0;Q.xv&&Q.videoData.Z&&(z=C9(Q.videoData)?Q.xv.EM.gQ()||0:Q.videoData.Z.De);return(0,g.IE)()/1E3-Q.JM()-z}; +F7k=function(Q){Q.mediaElement&&Q.mediaElement.oJ()&&(Q.HK=(0,g.IE)());Q.rh.YX?g.gR(function(){jO8(Q)},0):jO8(Q)}; +jO8=function(Q){var z;if((z=Q.vI)==null||!z.J8()){if(Q.mediaElement)try{Q.sL=Q.mediaElement.playVideo()}catch(f){CL(Q,"err."+f)}if(Q.sL){var H=Q.sL;H.then(void 0,function(f){Q.logger.debug(function(){return"playMediaElement failed: "+f}); +if(!g.w(Q.playerState,4)&&!g.w(Q.playerState,256)&&Q.sL===H)if(f&&f.name==="AbortError"&&f.message&&f.message.includes("load"))Q.logger.debug(function(){return"ignore play media element failure: "+f.message}); +else{var b="promise";f&&f.name&&(b+=";m."+f.name);CL(Q,b);Q.kz=!0;Q.videoData.D6=!0}})}}}; +CL=function(Q,z){g.w(Q.playerState,128)||(Q.zq(Sm(Q.playerState,1028,9)),Q.On("dompaused",{r:z}),Q.publish("onAutoplayBlocked"))}; +XB=function(Q,z){z=z===void 0?!1:z;if(!Q.mediaElement||!Q.videoData.L)return!1;var H=z;H=H===void 0?!1:H;var f=null;var b;if((b=Q.videoData.L)==null?0:b.Z){f=MH_(Q,H);var L;(L=Q.xv)==null||L.resume()}else Mp(Q),Q.videoData.gh&&(f=Q.videoData.gh.mA());b=Q.mediaElement.v$();H=!1;b&&b.jH(f)||(xb9(Q,f),H=!0);g.w(Q.playerState,2)||(f=Q.Sx,z=z===void 0?!1:z,f.S||!(f.D>0)||f.mediaElement&&f.mediaElement.getCurrentTime()>0||(z={lr:"seektimeline_resumeTime",qt:z},f.videoData.L3||(z.seekSource=15),f.seekTo(f.D, +z)));a:{z=H;if(uE(Q.videoData)){if(!Q.videoData.w7())break a}else if(!g.G_(Q.videoData))break a;if(Q.mediaElement)if((f=Q.videoData.S)&&Q.mediaElement.FK()){b=Q.mediaElement.ai();if(Q.IB)if(b!==Q.IB.element)nL(Q);else if(z&&f.flavor==="fairplay"&&!wR())nL(Q);else break a;if(Q.V("html5_report_error_for_unsupported_tvos_widevine")&&wR()&&f.flavor==="widevine")Q.VN("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{Q.IB=new reZ(b,Q.videoData,Q.rh);Q.IB.subscribe("licenseerror", +Q.Pm,Q);Q.IB.subscribe("qualitychange",Q.T4v,Q);Q.IB.subscribe("heartbeatparams",Q.xj,Q);Q.IB.subscribe("keystatuseschange",Q.XS,Q);Q.IB.subscribe("ctmp",Q.On,Q);Q.V("html5_widevine_use_fake_pssh")&&!Q.videoData.isLivePlayback&&f.flavor==="widevine"&&Q.IB.Cl(new M5(OA9,"cenc",!1));z=g.n(Q.Qx.keys);for(f=z.next();!f.done;f=z.next())f=Q.Qx.get(f.value),Q.IB.Cl(f);Q.V("html5_eme_loader_sync")||Q.Qx.removeAll()}}else Q.VN("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}return H}; +xb9=function(Q,z){Q.jy.tick("vta");dE("vta",void 0,"video_to_ad");Q.getCurrentTime()>0&&$pL(Q.Sx,Q.getCurrentTime());Q.mediaElement.activate(z);Q.vI&&b0(0,4);!Q.videoData.L3&&Q.playerState.isOrWillBePlaying()&&Q.sA.start();if(ueJ(Q)){var H;if(z=(H=Q.mediaElement)==null?void 0:H.audioTracks())z.onchange=function(){Q.publish("internalaudioformatchange",Q.videoData,!0)}}}; +nL=function(Q){Q.IB&&(Q.IB.dispose(),Q.IB=null)}; +obL=function(Q){var z=z===void 0?!1:z;Q.logger.debug("reattachVideoSource");Q.mediaElement&&(Q.vI?(nL(Q),Q.gq(),MH_(Q,z)):(Q.videoData.gh&&Q.videoData.gh.GU(),Q.mediaElement.stopVideo()),Q.playVideo())}; +J4c=function(Q,z){Q.rh.V("html5_log_rebuffer_reason")&&(z={r:z,lact:Iw()},Q.mediaElement&&(z.bh=Rm(Q.mediaElement)),Q.On("bufreason",z))}; +N3J=function(Q,z){if(Q.rh.vz()&&Q.mediaElement){var H=Q.mediaElement.TL();H.omt=(Q.mediaElement.getCurrentTime()+Q.ex()).toFixed(3);H.ps=Q.playerState.state.toString(16);H.rt=(g.nD(Q.JZ().provider)*1E3).toFixed();H.e=z;Q.pX[Q.VB++%5]=H}try{if(z==="timeupdate"||z==="progress")return}catch(f){}Q.logger.debug(function(){return"video element event "+z})}; +IY8=function(Q){if(Q.rh.vz()){Q.pX.sort(function(f,b){return+f.rt-+b.rt}); +for(var z=g.n(Q.pX),H=z.next();!H.done;H=z.next())H=H.value,Q.On("vpe",Object.assign({t:H.rt},H));Q.pX=[];Q.VB=0}}; +A4L=function(Q){if(g.VC("cobalt")&&g.VC("nintendo switch")){var z=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;Q.On("nxdock",{d:z})}}; +pL=function(Q,z){var H;(H=Q.xv)==null||HL(H,z)}; +Vc6=function(Q,z){return g.wr(Q.videoData)&&Q.OY?Q.OY.handleError(z,void 0):!1}; +RCY=function(Q){qY(Q.videoData,"html5_set_debugging_opt_in")&&(Q=g.DQ(),g.KF(0,183)||(dD(183,!0),Q.save()))}; +Yua=function(Q){return g.wr(Q.videoData)&&Q.OY?kY(Q.OY):Q.videoData.jA()}; +dYp=function(Q,z){Q.sV.PU()||(Q.On("sgap",{f:z}),Q.sV.clearQueue(!1,z==="pe"))}; +lH=function(Q){return Q.V("html5_disable_video_player_initiated_seeks")&&uE(Q.videoData)}; +r4v=function(Q){e1.call(this,Q);var z=this;this.events=new g.Pt(Q);g.W(this,this.events);Xv(this.api,"isLifaAdPlaying",function(){return z.api.isLifaAdPlaying()}); +this.events.X(Q,"serverstitchedvideochange",function(){var H;(H=z.api.getVideoData())!=null&&H.OZ()&&(z.api.isLifaAdPlaying()?(z.playbackRate=z.api.getPlaybackRate(),z.api.setPlaybackRate(1)):z.api.setPlaybackRate(z.playbackRate))}); +this.playbackRate=1}; +sOp=function(Q){e1.call(this,Q);var z=this;this.events=new g.Pt(Q);g.W(this,this.events);Xv(this.api,"seekToChapterWithAnimation",function(H){z.seekToChapterWithAnimation(H)}); +Xv(this.api,"seekToTimeWithAnimation",function(H,f){z.seekToTimeWithAnimation(H,f)}); +Xv(this.api,"renderChapterSeekingAnimation",function(H,f,b){z.api.renderChapterSeekingAnimation(H,f,b)}); +Xv(this.api,"setMacroMarkers",function(H){z.setMacroMarkers(Q,H)}); +Xv(this.api,"changeMarkerVisibility",function(H,f,b){z.changeMarkerVisibility(H,f,b)}); +Xv(this.api,"isSameMarkerTypeVisible",function(H){return z.isSameMarkerTypeVisible(H)})}; +B3L=function(Q,z,H){var f=Q.api.getCurrentTime()*1E30&&b>0&&(H.width+=b,g.M2(z.element,"width",H.width+"px")));Q.size=H}}; +g.sk=function(Q,z){var H=Q.Z[Q.Z.length-1];H!==z&&(Q.Z.push(z),SOv(Q,H,z))}; +g.B9=function(Q){if(!(Q.Z.length<=1)){var z=Q.Z.pop(),H=Q.Z[0];Q.Z=[H];SOv(Q,z,H,!0)}}; +SOv=function(Q,z,H,f){Xpa(Q);z&&(z.unsubscribe("size-change",Q.Ty,Q),z.unsubscribe("back",Q.R6,Q));H.subscribe("size-change",Q.Ty,Q);H.subscribe("back",Q.R6,Q);if(Q.LH){g.X9(H.element,f?"ytp-panel-animate-back":"ytp-panel-animate-forward");H.Gv(Q.element);H.focus();Q.element.scrollLeft=0;Q.element.scrollTop=0;var b=Q.size;u6Z(Q);g.FL(Q.element,b);Q.j=new g.lp(function(){vzL(Q,z,H,f)},20,Q); +Q.j.start()}else H.Gv(Q.element),z&&z.detach()}; +vzL=function(Q,z,H,f){Q.j.dispose();Q.j=null;g.X9(Q.element,"ytp-popup-animating");f?(g.X9(z.element,"ytp-panel-animate-forward"),g.yM(H.element,"ytp-panel-animate-back")):(g.X9(z.element,"ytp-panel-animate-back"),g.yM(H.element,"ytp-panel-animate-forward"));g.FL(Q.element,Q.size);Q.Y=new g.lp(function(){g.yM(Q.element,"ytp-popup-animating");z.detach();g.qP(z.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);Q.Y.dispose();Q.Y=null},250,Q); +Q.Y.start()}; +Xpa=function(Q){Q.j&&g.QM(Q.j);Q.Y&&g.QM(Q.Y)}; +P9=function(Q){g.rI.call(this,Q,"ytp-shopping-product-menu");this.Z6=new g.Az(this.K);g.W(this,this.Z6);this.hide();g.sk(this,this.Z6);g.BG(this.K,this.element,4)}; +qOk=function(Q,z,H){var f,b=z==null?void 0:(f=z.text)==null?void 0:f.simpleText;b&&(H=y9n(Q,H,b,z==null?void 0:z.icon,z==null?void 0:z.secondaryIcon),z.navigationEndpoint&&H.listen("click",function(){Q.K.F$("innertubeCommand",z.navigationEndpoint);Q.hide()},Q))}; +MOk=function(Q,z,H){var f,b=z==null?void 0:(f=z.text)==null?void 0:f.simpleText;b&&y9n(Q,H,b,z==null?void 0:z.icon).listen("click",function(){var L;(z==null?void 0:(L=z.icon)==null?void 0:L.iconType)==="HIDE"?Q.K.publish("featuredproductdismissed"):z.serviceEndpoint&&Q.K.F$("innertubeCommand",z.serviceEndpoint);Q.hide()},Q)}; +y9n=function(Q,z,H,f,b){z=new g.mh(g.wX({},[],!1,!!b),z,H);b&&z.updateValue("secondaryIcon",CsJ(b));z.setIcon(CsJ(f));g.W(Q,z);Q.Z6.md(z,!0);return z}; +CsJ=function(Q){if(!Q)return null;switch(Q.iconType){case "ACCOUNT_CIRCLE":return{G:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{G:"path",T:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 1c4.96 0 9 4.04 9 9 0 1.42-.34 2.76-.93 3.96-1.53-1.72-3.98-2.89-7.38-3.03A3.99 3.99 0 0016 9c0-2.21-1.79-4-4-4S8 6.79 8 9c0 1.97 1.43 3.6 3.31 3.93-3.4.14-5.85 1.31-7.38 3.03C3.34 14.76 3 13.42 3 12c0-4.96 4.04-9 9-9zM9 9c0-1.65 1.35-3 3-3s3 1.35 3 3-1.35 3-3 3-3-1.35-3-3zm3 12c-3.16 0-5.94-1.64-7.55-4.12C6.01 14.93 8.61 13.9 12 13.9c3.39 0 5.99 1.03 7.55 2.98C17.94 19.36 15.16 21 12 21z", +fill:"#fff"}}]};case "FLAG":return{G:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{G:"path",T:{d:"M13.18 4L13.42 5.2L13.58 6H14.4H19V13H13.82L13.58 11.8L13.42 11H12.6H6V4H13.18ZM14 3H5V21H6V12H12.6L13 14H20V5H14.4L14 3Z",fill:"white"}}]};case "HELP":return NGA();case "HIDE":return{G:"svg",T:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{G:"g",W:[{G:"path",T:{d:"M16.24,9.17L13.41,12l2.83,2.83l-1.41,1.41L12,13.41l-2.83,2.83l-1.41-1.41L10.59,12L7.76,9.17l1.41-1.41L12,10.59 l2.83-2.83L16.24,9.17z M4.93,4.93c-3.91,3.91-3.91,10.24,0,14.14c3.91,3.91,10.24,3.91,14.14,0c3.91-3.91,3.91-10.24,0-14.14 C15.17,1.02,8.83,1.02,4.93,4.93z M18.36,5.64c3.51,3.51,3.51,9.22,0,12.73s-9.22,3.51-12.73,0s-3.51-9.22,0-12.73 C9.15,2.13,14.85,2.13,18.36,5.64z"}}]}]}; +case "OPEN_IN_NEW":return JB()}}; +ai=function(Q){Np.call(this,Q,!1,!0);this.isCounterfactual=this.B=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.N=!0;this.overflowButton=new g.m({G:"button",lT:["ytp-featured-product-overflow-icon","ytp-button"],T:{"aria-haspopup":"true"}});this.overflowButton.hide();g.W(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.m({G:"img",J:"ytp-suggested-action-badge-img",T:{src:"{{url}}"}}); +this.thumbnailImage.hide();g.W(this,this.thumbnailImage);this.thumbnailIcon=new g.m({G:"div",J:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.W(this,this.thumbnailIcon);this.banner=new g.m({G:"a",J:"ytp-suggested-action-container",W:[this.thumbnailImage,this.thumbnailIcon,{G:"div",J:"ytp-suggested-action-details",W:[{G:"text",J:"ytp-suggested-action-title",BI:"{{title}}"},{G:"text",J:"ytp-suggested-action-subtitle",BI:"{{subtitle}}"},{G:"text",J:"ytp-suggested-action-metadata-text", +BI:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.W(this,this.banner);this.banner.Gv(this.L.element);this.X(this.K,"videodatachange",this.onVideoDataChange);this.X(this.K,g.Li("suggested_action_view_model"),this.Crv);this.X(this.K,g.uc("suggested_action_view_model"),this.ug5);this.X(this.overflowButton.element,"click",this.M1);this.X(Q,"featuredproductdismissed",this.XE);this.K.createServerVe(this.banner.element,this.banner,!0)}; +tO_=function(Q){Q.isInitialized&&(Q.enabled=Q.isVisible,Q.wh=Q.isVisible,Jz(Q),Q.e0(),Q.thumbnailImage.Ho(Q.isVisible),Q.shouldHideDismissButton||Q.dismissButton.Ho(Q.isVisible),Q.shouldShowOverflowButton&&Q.overflowButton.Ho(Q.isVisible))}; +Uk=function(){ai.apply(this,arguments)}; +Ez8=function(Q){e1.call(this,Q);this.Z=new Uk(this.api);g.W(this,this.Z);g.BG(this.api,this.Z.element,4)}; +c9=function(Q){e1.call(this,Q);var z=this;this.Z="";this.L=!0;this.B=this.api.V("html5_enable_audio_track_stickiness_phase_two");var H=new g.Pt(Q);g.W(this,H);H.X(Q,"internalaudioformatchange",function(f,b){ppZ(z,f,b)}); +H.X(Q,"videoplayerreset",function(){nzu(z)}); +H.X(Q,"videodatachange",function(f,b){z.onVideoDataChange(f,b)})}; +ppZ=function(Q,z,H){if(H){var f="";gzp(Q,z)&&(f=z,Q.B||(Q.Z=z),Q.api.V("html5_sabr_enable_server_xtag_selection")&&(H=Q.api.getVideoData(void 0,!0)))&&(H.qD=z);if(Q.B&&f&&ZUc(Q,f)){var b;CE(fv(Q.api.C(),(b=Q.api.getVideoData())==null?void 0:g.W7(b)),function(L){GfY(Q,f,L)})}}}; +nzu=function(Q){if(Q.Z)$gJ(Q);else{var z;if(Q.B&&((z=WB())==null?0:z.size)){var H;CE(fv(Q.api.C(),(H=Q.api.getVideoData())==null?void 0:g.W7(H)),function(f){if((f=jCa(f))&&ZUc(Q,f)){var b=Q.api.getVideoData(void 0,!0);b&&(b.qD=f)}})}}}; +$gJ=function(Q){var z=Q.api.getVideoData(void 0,!0);z&&(z.qD=Q.Z)}; +GfY=function(Q,z,H){jCa(H)!==z&&(FMA([{settingItemId:it(H),settingOptionValue:{stringValue:z}}]),CE(Q.Vk(),function(f){MZ6(f,it(H),{stringValue:z})}))}; +xg_=function(Q,z){tK(CE(CE(Q.Vk(),function(H){return yl8(H,[it(z)])}),function(H){if(H){H=g.n(H); +for(var f=H.next();!f.done;f=H.next()){var b=f.value;f=b.key;b=b.value;f&&b&&FMA([{settingItemId:f,settingOptionValue:b}])}}}),function(){Q.L=!0})}; +gzp=function(Q,z){Q=Q.api.getAvailableAudioTracks();Q=g.n(Q);for(var H=Q.next();!H.done;H=Q.next())if(H=H.value,H.getLanguageInfo().getId()===z)return H;return null}; +jCa=function(Q){Q=it(Q);var z=WB();Q=z?z.get(Q):void 0;return Q&&Q.stringValue?Q.stringValue:""}; +it=function(Q){var z=(484).toString();Q&&(z=(483).toString());return z}; +ZUc=function(Q,z){var H;return z.split(".")[0]!==""&&((H=Q.api.getVideoData())==null?void 0:!K9(H))}; +FMA=function(Q){var z=WB();z||(z=new Map);Q=g.n(Q);for(var H=Q.next();!H.done;H=Q.next())H=H.value,z.set(H.settingItemId,H.settingOptionValue);z=JSON.stringify(Object.fromEntries(z));g.Pw("yt-player-user-settings",z,2592E3)}; +g.hz=function(Q,z,H,f,b,L,u){g.mh.call(this,g.wX({"aria-haspopup":"true"}),z,Q);this.kt=f;this.N=!1;this.L=null;this.options={};this.B=new g.Az(H,void 0,Q,b,L,u);g.W(this,this.B);this.listen("keydown",this.Dr);this.listen("click",this.open)}; +OUa=function(Q){if(Q.L){var z=Q.options[Q.L];z.element.getAttribute("aria-checked");z.element.setAttribute("aria-checked","false");Q.L=null}}; +ozp=function(Q,z){g.hz.call(this,"Sleep timer",g.yW.SLEEP_TIMER,Q,z);this.K=Q;this.U={};this.j=this.xU("Off");this.Y=this.Z="";Q.V("web_settings_menu_icons")&&this.setIcon({G:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{G:"path",T:{d:"M16.67,4.31C19.3,5.92,21,8.83,21,12c0,4.96-4.04,9-9,9c-2.61,0-5.04-1.12-6.72-3.02C5.52,17.99,5.76,18,6,18 c6.07,0,11-4.93,11-11C17,6.08,16.89,5.18,16.67,4.31 M14.89,2.43C15.59,3.8,16,5.35,16,7c0,5.52-4.48,10-10,10 c-1,0-1.97-0.15-2.89-0.43C4.77,19.79,8.13,22,12,22c5.52,0,10-4.48,10-10C22,7.48,19,3.67,14.89,2.43L14.89,2.43z M12,6H6v1h4.5 L6,10.99v0.05V12h6v-1H7.5L12,7.01V6.98V6L12,6z", +fill:"#fff"}}]});this.D=new g.m({G:"div",lT:["ytp-menuitem-label-wrapper"],W:[{G:"div",BI:"End of video"},{G:"div",lT:["ytp-menuitem-sublabel"],BI:"{{content}}"}]});g.W(this,this.D);this.listen("click",this.onClick);this.X(Q,"videodatachange",this.onVideoDataChange);this.X(Q,"presentingplayerstatechange",this.Jh);this.X(Q,"settingsMenuVisibilityChanged",this.BVm);Q.createClientVe(this.element,this,218889);this.Jh();this.K.F$("onSleepTimerFeatureAvailable")}; +J9u=function(Q){var z="Off 10 15 20 30 45 60".split(" "),H;((H=Q.K.getVideoData())==null?0:H.isLivePlayback)||z.push("End of video");H=Q.K.getPlaylist();var f;H&&((f=H.listId)==null?void 0:f.type)!=="RD"&&z.push("End of playlist");Q.wz(g.NT(z,Q.xU));Q.U=g.Cr(z,Q.xU,Q);z=Q.xU("End of video");Q.options[z]&&g.dX(Q.options[z],Q.D)}; +Nbu=function(Q,z){var H=Q.U[z],f=H==="End of video"||H==="End of playlist";H==="Off"&&(Q.Z="");Q.K.getPlayerState()!==0&&Q.K.getPlayerState()!==5||!f?(Q.j=z,g.hz.prototype.zZ.call(Q,z),Q.RJ(z),Q.K.F$("onSleepTimerSettingsChanged",H)):Q.K.F$("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"Video has already ended"}}}}})}; +W9=function(Q){e1.call(this,Q);var z=this;Q.addEventListener("settingsMenuInitialized",function(){z.menuItem||(z.menuItem=new ozp(z.api,z.api.S0()),g.W(z,z.menuItem))}); +Q.addEventListener("openSettingsMenuItem",function(H){if(H==="menu_item_sleep_timer"){if(!z.menuItem){var f;(f=z.api.S0())==null||f.ir()}z.menuItem.open()}}); +Xv(Q,"resetSleepTimerMenuSettings",function(){z.resetSleepTimerMenuSettings()}); +Xv(Q,"setSleepTimerTimeLeft",function(H){z.setSleepTimerTimeLeft(H)}); +Xv(Q,"setVideoTimeLeft",function(H){z.setVideoTimeLeft(H)})}; +IH8=function(Q){e1.call(this,Q);var z=this;this.events=new g.Pt(Q);g.W(this,this.events);this.events.X(Q,"onSnackbarMessage",function(H){switch(H){case 1:H=z.api.getPlayerStateObject(),H.isBuffering()&&g.w(H,8)&&g.w(H,16)&&z.api.F$("innertubeCommand",{openPopupAction:{popup:{notificationActionRenderer:{responseText:{runs:[{text:"Experiencing interruptions?"}]},actionButton:{buttonRenderer:{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:{runs:[{text:"Find out why"}]},navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers", +webPageType:"WEB_PAGE_TYPE_UNKNOWN"}},urlEndpoint:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers",target:"TARGET_NEW_WINDOW"}},loggingDirectives:{clientVeSpec:{uiType:232471}}}},loggingDirectives:{clientVeSpec:{uiType:232470}}}},durationHintMs:5E3,popupType:"TOAST"}})}})}; +g.KL=function(Q,z,H,f,b){z=z===void 0?!1:z;f=f===void 0?!1:f;b=b===void 0?!1:b;g.vf.call(this);this.U=b;this.Y=!1;this.D=new I4(this);this.S=this.j=null;this.L=this.B=!1;g.W(this,this.D);this.target=Q;this.Z=z;this.N=H||Q;this.Y=f;z&&(g.RI&&this.target.setAttribute("draggable","true"),b||(this.target.style.touchAction="none"));Db(this)}; +VO=function(Q){g.YQ(Q.D,!Q.Z)}; +Db=function(Q){Q.S=null;Q.j=null;Q.X(dI("over"),Q.u5);Q.X("touchstart",Q.HL);Q.Z&&Q.X(dI("down"),Q.TTh)}; +A9Z=function(Q,z){for(var H=0;Hb.start&&H>=5;G+=J}C=G.substr(0,4)+" "+G.substr(4,4)+" "+G.substr(8,4)+" "+(G.substr(12,4)+" "+G.substr(16,4))}else C="";u={video_id_and_cpn:String(z.videoId)+" / "+C,codecs:"", +dims_and_frames:"",bandwidth_kbps:u.toFixed(0)+" Kbps",buffer_health_seconds:v.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:y?"":"display:none",drm:y,debug_info:H,extra_debug_info:"",bandwidth_style:M,network_activity_style:M,network_activity_bytes:X.toFixed(0)+" KB",shader_info:q,shader_info_style:q?"":"display:none",playback_categories:""};X=f.clientWidth+"x"+f.clientHeight+(b>1?"*"+b.toFixed(2):"");v="-";L.totalVideoFrames&&(v=(L.droppedVideoFrames||0)+" dropped of "+L.totalVideoFrames); +u.dims_and_frames=X+" / "+v;Q=Q.getVolume();X=C6Y(z);var r;v=((r=z.D)==null?0:r.audio.Z)?"DRC":Math.round(Q*X)+"%";r=Math.round(Q)+"% / "+v;Q=z.dS.toFixed(1);isFinite(Number(Q))&&(r+=" (content loudness "+Q+"dB)");u.volume=r;u.resolution=f.videoWidth+"x"+f.videoHeight;if(f=z.B){if(r=f.video)Q=r.fps,Q>1&&(u.resolution+="@"+Q),(Q=L.Mb)&&Q.video&&(u.resolution+=" / "+Q.video.width+"x"+Q.video.height,Q.video.fps>1&&(u.resolution+="@"+Q.video.fps)),u.codecs=Psp(f),!z.D||f.audio&&f.video?f.Q7&&(u.codecs+= +" / "+f.Q7+"A"):u.codecs+=" / "+Psp(z.D),r.B||r.primaries?(Q=r.B||"unknown",Q==="smpte2084"?Q+=" (PQ)":Q==="arib-std-b67"&&(Q+=" (HLG)"),u.color=Q+" / "+(r.primaries||"unknown"),u.color_style=""):u.color_style="display:none";if(f.debugInfo)for(u.fmt_debug_info="",f=g.n(f.debugInfo),r=f.next();!r.done;r=f.next())r=r.value,u.fmt_debug_info+=r.label+":"+r.text+" ";u.fmt_debug_info_style=u.fmt_debug_info&&u.fmt_debug_info.length>0?"":"display:none"}f=z.isLivePlayback;r=z.l8;u.live_mode_style=f||r?"": +"display:none";u.live_latency_style=f?"":"display:none";if(r)u.live_mode="Post-Live"+(C9(z)?" Manifestless":"");else if(f){r=L.nO;u.live_latency_secs=r.toFixed(2)+"s";f=C9(z)?"Manifestless, ":"";z.f3&&(f+="Windowed, ");Q="Uncertain";if(r>=0&&r<120)if(z.latencyClass&&z.latencyClass!=="UNKNOWN")switch(z.latencyClass){case "NORMAL":Q="Optimized for Normal Latency";break;case "LOW":Q="Optimized for Low Latency";break;case "ULTRALOW":Q="Optimized for Ultra Low Latency";break;default:Q="Unknown Latency Setting"}else Q= +z.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";f+=Q;(r=L.v9)&&(f+=", seq "+r.sequence);u.live_mode=f}!L.isGapless||f9(z)&&L.PU||(u.playback_categories+="Gapless ");u.playback_categories_style=u.playback_categories?"":"display:none";u.bandwidth_samples=L.yK;u.network_activity_samples=L.MQ;u.live_latency_samples=L.Ez;u.buffer_health_samples=L.f_;L=g.Rq(z);if(z.cotn||L)u.cotn_and_local_media=(z.cotn?z.cotn:"null")+" / "+L;u.cotn_and_local_media_style=u.cotn_and_local_media? +"":"display:none";qY(z,"web_player_release_debug")?(u.release_name=H_[44],u.release_style=""):u.release_style="display:none";u.debug_info&&t.length>0&&u.debug_info.length+t.length<=60?u.debug_info+=" "+t:u.extra_debug_info=t;u.extra_debug_info_style=u.extra_debug_info&&u.extra_debug_info.length>0?"":"display:none";return u}; +Psp=function(Q){var z=/codecs="([^"]*)"/.exec(Q.mimeType);return z&&z[1]?z[1]+" ("+Q.itag+")":Q.itag}; +Ri=function(Q,z,H,f,b){g.m.call(this,{G:"div",J:"ytp-horizonchart"});this.Y=z;this.sampleCount=H;this.D=f;this.j=b;this.index=0;this.heightPx=-1;this.L=this.B=null;this.Z=Math.round(Q/H);this.element.style.width=this.Z*this.sampleCount+"px";this.element.style.height=this.Y+"em"}; +Qn=function(Q,z){if(Q.heightPx===-1){var H=null;try{H=g.fm("CANVAS"),Q.B=H.getContext("2d")}catch(X){}if(Q.B){var f=Q.Z*Q.sampleCount;Q.L=H;Q.L.width=f;Q.L.style.width=f+"px";Q.element.appendChild(Q.L)}else for(Q.sampleCount=Math.floor(Q.sampleCount/4),Q.Z*=4,H=0;H1?2:1,Q.L.height=Q.heightPx*H,Q.L.style.height= +Q.heightPx+"px",Q.B.scale(1,H)));z=g.n(z);for(f=z.next();!f.done;f=z.next()){H=Q;var b=Q.index,L=f.value;for(f=0;f+20&&g.uT(z.L.element);f.classList.add("ytp-timely-actions-overlay");z.L.element.appendChild(f)}); +g.W(this,this.L);g.BG(this.api,this.L.element,4)}; +lHa=function(Q){Q.timelyActions&&(Q.D=Q.timelyActions.reduce(function(z,H){if(H.cueRangeId===void 0)return z;z[H.cueRangeId]=0;return z},{}))}; +bN=function(Q,z){if(Q.timelyActions){Q=g.n(Q.timelyActions);for(var H=Q.next();!H.done;H=Q.next())if(H=H.value,H.cueRangeId===z)return H}}; +R7Y=function(Q,z){if((Q=bN(Q,z))&&Q.onCueRangeExit)return hl(Q.onCueRangeExit)}; +QYp=function(Q){if(Q.Z!==void 0){var z=(z=bN(Q,Q.Z))&&z.onCueRangeEnter?hl(z.onCueRangeEnter):void 0;var H=bN(Q,Q.Z);if(H&&H.additionalTrigger){var f=!1;for(var b=g.n(H.additionalTrigger),L=b.next();!L.done;L=b.next())L=L.value,L.type&&L.args&&Q.j[L.type]!==void 0&&(f=f||Q.j[L.type](L.args))}else f=!0;z&&f&&(Q.api.F$("innertubeCommand",z),Q.setTimeout(H),Q.D[Q.Z]!==void 0&&Q.D[Q.Z]++,Q.Y=!0)}}; +wp6=function(Q,z){return Q.B===void 0?!1:z.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(z.seekLengthMilliseconds)===5E3?Q.B===72:z.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(z.seekLengthMilliseconds)===1E4?Q.B===74:z.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(z.seekLengthMilliseconds)===5E3?Q.B===71:z.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(z.seekLengthMilliseconds)===1E4?Q.B===73:!1}; +kfA=function(Q){if(Q=Q.getWatchNextResponse()){var z,H;Q=(z=Q.playerOverlays)==null?void 0:(H=z.playerOverlayRenderer)==null?void 0:H.timelyActionsOverlayViewModel;z=g.K(Q,za8);if(z!=null&&z.timelyActions)return z==null?void 0:z.timelyActions.map(function(f){return g.K(f,HOc)}).filter(function(f){return!!f})}}; +fCA=function(Q){e1.call(this,Q);var z=this;vG(this.api,"getPlaybackRate",function(){return z.api.getPlaybackRate()}); +vG(this.api,"setPlaybackRate",function(H){typeof H==="number"&&z.api.setPlaybackRate(H)})}; +bOJ=function(Q){Q=Q.mM();if(!Q)return!1;Q=g.ST(Q).exp||"";return Q.includes("xpv")||Q.includes("xpe")}; +LVa=function(Q){Q=g.n(g.LA(Q,!0));for(var z=Q.next();!z.done;z=Q.next())if(bOJ(z.value))return!0;return!1}; +ufp=function(Q,z){Q=g.n(g.LA(Q,!0));for(var H=Q.next();!H.done;H=Q.next())if(H=H.value,bOJ(H)){var f={potc:"1",pot:z};H.url&&(H.url=XZ(H.url,f))}}; +S36=function(Q){var z=new yj9,H={},f=(H["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",H);return new Oo(z,Q,function(){return f})}; +XP8=function(Q){return g.B(function(z){if(z.Z==1)return g.jY(z,2),g.Y(z,Q,4);if(z.Z!=2)return g.xv(z,0);g.OA(z);g.$v(z)})}; +SH=function(Q){e1.call(this,Q);var z=this;this.useLivingRoomPoToken=!1;this.D=new g.gB;this.jy=null;this.Y=!1;this.L=null;this.S=!1;var H=Q.C().getWebPlayerContextConfig();this.events=new g.Pt(Q);g.W(this,this.events);this.events.X(Q,"spsumpreject",function(f,b,L){z.S=b;f&&z.Y&&!z.L&&(z.V("html5_generate_content_po_token")&&L?z.W2(L):z.V("html5_generate_session_po_token")&&v2J(z));z.L||z.api.On("stp",{s:+z.Y,b:+z.S})}); +this.events.X(Q,"poTokenVideoBindingChange",function(f){z.W2(f)}); +this.useLivingRoomPoToken=!(H==null||!H.useLivingRoomPoToken);Q.addEventListener("csiinitialized",function(){z.jy=Q.vB();var f=(z.V("html5_generate_session_po_token")||z.V("html5_generate_content_po_token"))&&!z.useLivingRoomPoToken;try{if(z.V("html5_use_shared_owl_instance"))yY6(z);else if(f){z.jy.GS("pot_isc");z.V("html5_new_wpo_client")||q3_(z);var b=g.Mf(z.api.C().experiments,"html5_webpo_kaios_defer_timeout_ms");b?(z.V("html5_new_wpo_client")&&(z.B=TA()),g.gR(function(){uN(z)},b)):z.V("html5_webpo_idle_priority_job")? +(z.V("html5_new_wpo_client")&&(z.B=TA()),g.Q5(g.HH(),function(){uN(z)})):uN(z)}}catch(L){L instanceof Error&&g.ax(L)}}); +Q.addEventListener("trackListLoaded",this.cU.bind(this));Q.mz(this)}; +Mkp=function(Q){var z=Ty(Q.experiments,"html5_web_po_request_key");return z?z:g.oT(Q)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; +Xe=function(Q,z){if(Q.V("html5_webpo_bge_ctmp")){var H,f={hwpo:!!Q.Z,hwpor:!((H=Q.Z)==null||!H.isReady())};Q.api.On(z,f)}}; +yY6=function(Q){var z,H;g.B(function(f){if(f.Z==1)return Xe(Q,"swpo_i"),Q.B=TA(),vE(Q),g.Y(f,AZ(),2);if(f.Z!=3)return z=f.B,Xe(Q,"swpo_co"),g.Y(f,XrJ(z),3);H=f.B;Q.Z=C_6(Q,H);Xe(Q,"swpo_cc");Q.Z.ready().then(function(){Q.D.resolve();Xe(Q,"swpo_re")}); +g.gR(function(){uN(Q);Xe(Q,"swpo_si")},0); +g.$v(f)})}; +q3_=function(Q){var z=Q.api.C(),H=Mkp(z),f=S36(H);z=new Qy({hF:"CLEn",eD:H,Gi:f,onEvent:function(b){(b=tk6[b])&&Q.jy.GS(b)}, +onError:g.ax,hv:Nn8(z.experiments),Ru:function(){return void Q.api.On("itr",{})}, +lY$:z.experiments.Nc("html5_web_po_disable_remote_logging")||E2Y.includes(g.id(z.qP)||"")});z.ready().then(function(){return void Q.D.resolve()}); +g.W(Q,z);Q.Z=z}; +pP9=function(Q){var z=Q.api.C(),H=S36(Mkp(z)),f=H.Na.bind(H);H.Na=function(X){var v;return g.B(function(y){if(y.Z==1)return g.Y(y,f(X),2);v=y.B;Q.api.On("itr",{});return y.return(v)})}; +try{var b=new o6({Gi:H,du:{maxAttempts:5},k8:{hF:"CLEn",disable:z.experiments.Nc("html5_web_po_disable_remote_logging")||E2Y.includes(g.id(z.qP)||""),Dt:Nn8(z.experiments),FvT:Q.V("wpo_dis_lfdms")?0:1E3},dim:g.ax});var L=new kM({Wc:b,Gi:H,onError:g.ax});XP8(L.z9()).then(function(){return void Q.D.resolve()}); +g.W(Q,b);g.W(Q,L);Q.Z=C_6(Q,L)}catch(X){g.ax(X);var u;(u=b)==null||u.dispose()}}; +uN=function(Q){var z=Q.api.C();Q.jy.GS("pot_ist");Q.Z?Q.Z.start():Q.V("html5_new_wpo_client")&&pP9(Q);Q.V("html5_bandaid_attach_content_po_token")||(Q.V("html5_generate_session_po_token")&&(vE(Q),v2J(Q)),z=g.Mf(z.experiments,"html5_session_po_token_interval_time_ms")||0,z>0&&(Q.j=g.ZK(function(){vE(Q)},z)),Q.Y=!0)}; +vE=function(Q){var z,H,f,b;g.B(function(L){if(!Q.V("html5_generate_session_po_token")||Q.useLivingRoomPoToken)return L.return();z=Q.api.C();H=g.ey("EOM_VISITOR_DATA")||g.ey("VISITOR_DATA");f=z.WY?z.datasyncId:H;b=Ty(z.experiments,"html5_mock_content_binding_for_session_token")||z.livingRoomPoTokenId||f;z.h$=yn(Q,b);g.$v(L)})}; +yn=function(Q,z){if(!Q.Z)return Q.B?Q.B(z):"";try{var H=Q.Z.isReady();Q.jy.GS(H?"pot_cms":"pot_csms");var f="";f=Q.V("html5_web_po_token_disable_caching")?Q.Z.K9({hT:z}):Q.Z.K9({hT:z,WB:{KW:z,vtj:150,lI:!0,Q5:!0}});Q.jy.GS(H?"pot_cmf":"pot_csmf");if(H){var b;(b=Q.L)==null||b.resolve();Q.L=null;if(Q.S){Q.S=!1;var L;(L=Q.api.app.X$())==null||L.i5(!1)}}return f}catch(u){return g.ax(u),""}}; +v2J=function(Q){Q.Z&&(Q.L=new Ts,Q.Z.ready().then(function(){Q.jy.GS("pot_if");vE(Q)}))}; +C_6=function(Q,z){Q.V("html5_web_po_token_disable_caching")||z.Vp(150);var H=!1,f=XP8(z.z9()).then(function(){H=!0}); +return{isReady:function(){return H}, +ready:function(){return f}, +K9:function(b){return z.K9({hT:b.hT,kC:!0,MM:!0,WB:b.WB?{KW:b.WB.KW,lI:b.WB.lI,Q5:b.WB.Q5}:void 0})}, +start:function(){}}}; +n2A=function(Q){e1.call(this,Q);var z=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.Pt(Q);g.W(this,this.events);this.events.X(Q,"heartbeatRequest",function(H){if(z.freePreviewUsageDetails.length||z.freePreviewWatchedDuration!==null)H.heartbeatRequestParams||(H.heartbeatRequestParams={}),H.heartbeatRequestParams.unpluggedParams||(H.heartbeatRequestParams.unpluggedParams={}),z.freePreviewUsageDetails.length>0?H.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= +z.freePreviewUsageDetails:H.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+z.freePreviewWatchedDuration}}); +Xv(Q,"setFreePreviewWatchedDuration",function(H){z.freePreviewWatchedDuration=H}); +Xv(Q,"setFreePreviewUsageDetails",function(H){z.freePreviewUsageDetails=H})}; +qb=function(Q){g.h.call(this);this.features=[];var z=this.Z,H=new oM(Q),f=new lj(Q),b=new $_(Q),L=new SH(Q);var u=g.xJ(Q.C())?void 0:new gz(Q);var X=new Gq(Q),v=new iUn(Q),y=new fCA(Q),q=new OJ(Q);var M=g.xJ(Q.C())?new n2A(Q):void 0;var C=Q.V("html5_enable_ssap")?new Bba(Q):void 0;var t=Q.V("web_cinematic_watch_settings")&&(t=Q.C().getWebPlayerContextConfig())!=null&&t.cinematicSettingsAvailable?new CK(Q):void 0;var E=new xn(Q);var G=Q.V("enable_courses_player_overlay_purchase")?new FNL(Q):void 0; +var x=g.wm(Q.C())?new ZE6(Q):void 0;var J=new Z_(Q);var I=Q.C().D?new CML(Q):void 0;var r=g.O8(Q.C())?new MJk(Q):void 0;var U=Q.V("web_player_move_autonav_toggle")&&Q.C().zx?new LNJ(Q):void 0;var D=g.wm(Q.C())?new sOp(Q):void 0;var T=Q.V("web_enable_speedmaster")&&g.wm(Q.C())?new k_(Q):void 0;var k=Q.C().dS?void 0:new mga(Q);var bL=Q.V("report_pml_debug_signal")?new z6A(Q):void 0;var SY=new mbp(Q),Q9=new Ok(Q);var V=g.c6(Q.C())?new fHu(Q):void 0;var R=navigator.mediaSession&&window.MediaMetadata&& +Q.C().CP?new gI(Q):void 0;var Z=Q.V("html5_enable_drc")&&!Q.C().j?new nK(Q):void 0;var d=new QW(Q);var h8=g.wm(Q.C())?new Ez8(Q):void 0;var j5=Q.V("html5_enable_d6de4")?new jW(Q):void 0;var tt=g.wm(Q.C())&&Q.V("web_sleep_timer")?new W9(Q):void 0;var J8=g.O8(Q.C())?new EAJ(Q):void 0;var lL=new c9(Q),uR=new tv(Q),ns=new r4v(Q);var O=Q.V("enable_sabr_snackbar_message")?new IH8(Q):void 0;var N=Q.V("web_enable_timely_actions")?new e7u(Q):void 0;z.call(this,H,f,b,L,u,X,v,y,q,M,C,t,E,G,x,J,I,r,U,D,T,k,bL, +SY,Q9,V,void 0,R,Z,d,void 0,h8,j5,tt,J8,void 0,lL,uR,ns,void 0,O,N,new EJ(Q))}; +Mb=function(){this.B=this.Z=NaN}; +g29=function(Q,z){this.rh=Q;this.timerName="";this.L=!1;this.B=NaN;this.D=new Mb;this.Z=z||null;this.L=!1}; +ZO6=function(Q,z,H){var f=g.Yh(z.aj)&&!z.aj.j;if(z.aj.gS&&(JE(z.aj)||z.aj.yl==="shortspage"||Rl(z.aj)||f)&&!Q.L){Q.L=!0;Q.j=z.clientPlaybackNonce;g.ey("TIMING_ACTION")||T5("TIMING_ACTION",Q.rh.csiPageType);Q.rh.csiServiceName&&T5("CSI_SERVICE_NAME",Q.rh.csiServiceName);if(Q.Z){f=Q.Z.vB();for(var b=g.n(Object.keys(f)),L=b.next();!L.done;L=b.next())L=L.value,hN(L,f[L],Q.timerName);f=g.zr(Viu)(Q.Z.yh);g.WC(f,Q.timerName);f=Q.Z;f.B={};f.yh={}}g.WC({playerInfo:{visibilityState:g.zr(Ku9)()},playerType:"LATENCY_PLAYER_HTML5"}, +Q.timerName);Q.S!==z.clientPlaybackNonce||Number.isNaN(Q.B)||(Kj("_start",Q.timerName)?H=g.zr(PC)("_start",Q.timerName)+Q.B:g.ax(new g.kQ("attempted to log gapless pbs before CSI timeline started",{cpn:z.clientPlaybackNonce})));H&&!Kj("pbs",Q.timerName)&&CA(H)}}; +CA=function(Q,z){hN("pbs",Q!=null?Q:(0,g.IE)(),z)}; +GBu=function(Q,z,H,f,b,L,u){Q=(Q===H?"video":"ad")+"_to_"+(z===H?"video":"ad");if(Q!=="video_to_ad"||L!=null&&L.L3){L=Q==="ad_to_video"?L:f;H=L==null?void 0:L.Gt;var X={};if(f==null?0:f.j)X.cttAuthInfo={token:f.j,videoId:f.videoId};b&&(X.startTime=b);DA(Q,X);var v,y,q;f={targetVideoId:(v=f==null?void 0:f.videoId)!=null?v:"empty_video",targetCpn:z,adVideoId:(y=L==null?void 0:L.videoId)!=null?y:"empty_video",adClientPlaybackNonce:(q=H==null?void 0:H.cpn)!=null?q:L==null?void 0:L.clientPlaybackNonce}; +H&&(f.adBreakType=H.adBreakType,f.adType=H.adType);g.WC(f,Q);CA(u,Q)}}; +t4=function(Q){zSv();Qwk();Q.timerName=""}; +$8L=function(Q){if(Q.Z){var z=Q.Z;z.B={};z.yh={}}Q.L=!1;Q.S=void 0;Q.B=NaN}; +jY6=function(Q,z){g.vf.call(this);this.aj=Q;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.Z=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.U={};this.B=0;if(Q=z.session_data)this.sessionData=f1(Q,"&");this.index=Math.max(0,Number(z.index)||0);this.loop=!!z.loop;this.startSeconds=Number(z.startSeconds)||0;this.title=z.playlist_title||"";this.description=z.playlist_description||"";this.author= +z.author||z.playlist_author||"";z.video_id&&(this.items[this.index]=z);if(Q=z.api)typeof Q==="string"&&Q.length===16?z.list="PL"+Q:z.playlist=Q;if(Q=z.list)switch(z.listType){case "user_uploads":this.listId=new GZ("UU","PLAYER_"+Q);break;default:var H=z.playlist_length;H&&(this.length=Number(H)||0);this.listId=g.$a(Q);if(Q=z.video)this.items=Q.slice(0),this.loaded=!0}else if(z.playlist){Q=z.playlist.toString().split(",");this.index>0&&(this.items=[]);Q=g.n(Q);for(H=Q.next();!H.done;H=Q.next())(H= +H.value)&&this.items.push({video_id:H});this.length=this.items.length;if(Q=z.video)this.items=Q.slice(0),this.loaded=!0}this.setShuffle(!!z.shuffle);if(Q=z.suggestedQuality)this.quality=Q;this.U=pv(z,"playlist_");this.L=(z=z.thumbnail_ids)?z.split(","):[]}; +FVY=function(Q){return!!(Q.playlist||Q.list||Q.api)}; +x89=function(Q){var z=Q.index+1;return z>=Q.length?0:z}; +OOn=function(Q){var z=Q.index-1;return z<0?Q.length-1:z}; +g.Eu=function(Q,z,H,f){z=z!==void 0?z:Q.index;z=Q.items&&z in Q.items?Q.items[Q.order[z]]:null;var b=null;z&&(H&&(z.autoplay="1"),f&&(z.autonav="1"),b=new g.Kv(Q.aj,z),g.W(Q,b),b.zj=!0,b.startSeconds=Q.startSeconds||b.clipStart||0,Q.listId&&(b.playlistId=Q.listId.toString()));return b}; +o29=function(Q,z){Q.index=g.y4(z,0,Q.length-1);Q.startSeconds=0}; +JYu=function(Q,z){if(z.video&&z.video.length){Q.title=z.title||"";Q.description=z.description;Q.views=z.views;Q.likes=z.likes;Q.dislikes=z.dislikes;Q.author=z.author||"";var H=z.loop;H&&(Q.loop=H);H=g.Eu(Q);Q.items=[];for(var f=g.n(z.video),b=f.next();!b.done;b=f.next())if(b=b.value)b.video_id=b.encrypted_id,Q.items.push(b);Q.length=Q.items.length;(z=z.index)?Q.index=z:Q.findIndex(H);Q.setShuffle(!1);Q.loaded=!0;Q.B++;Q.Z&&Q.Z()}}; +AYL=function(Q,z){var H,f,b,L,u,X,v;return g.B(function(y){if(y.Z==1){H=g.uG();var q=Q.C(),M={context:g.uj(Q),playbackContext:{contentPlaybackContext:{ancestorOrigins:q.ancestorOrigins}}},C=q.getWebPlayerContextConfig();if(C==null?0:C.encryptedHostFlags)M.playbackContext.contentPlaybackContext.encryptedHostFlags=C.encryptedHostFlags;if(C==null?0:C.hideInfo)M.playerParams={showinfo:!1};q=q.embedConfig;C=z.docid||z.video_id||z.videoId||z.id;if(!C){C=z.raw_embedded_player_response;if(!C){var t=z.embedded_player_response; +t&&(C=JSON.parse(t))}if(C){var E,G,x,J,I,r;C=((r=g.K((E=C)==null?void 0:(G=E.embedPreview)==null?void 0:(x=G.thumbnailPreviewRenderer)==null?void 0:(J=x.playButton)==null?void 0:(I=J.buttonRenderer)==null?void 0:I.navigationEndpoint,g.lF))==null?void 0:r.videoId)||null}else C=null}E=(E=C)?E:void 0;G=Q.playlistId?Q.playlistId:z.list;x=z.listType;if(G){var U;x==="user_uploads"?U={username:G}:U={playlistId:G};NoJ(q,E,z,U);M.playlistRequest=U}else z.playlist?(U={templistVideoIds:z.playlist.toString().split(",")}, +NoJ(q,E,z,U),M.playlistRequest=U):E&&(U={videoId:E},q&&(U.serializedThirdPartyEmbedConfig=q),M.singleVideoRequest=U);f=M;b=g.zv(ICa);g.jY(y,2);return g.Y(y,g.Tv(H,f,b),4)}if(y.Z!=2)return L=y.B,u=Q.C(),z.raw_embedded_player_response=L,u.De=q0(z,g.O8(u)),u.L=u.De==="EMBEDDED_PLAYER_MODE_PFL",L&&(X=L,X.trackingParams&&JK(X.trackingParams)),y.return(new g.Kv(u,z));v=g.OA(y);v instanceof Error||(v=Error("b259802748"));g.PT(v);return y.return(Q)})}; +NoJ=function(Q,z,H,f){H.index&&(f.playlistIndex=String(Number(H.index)+1));f.videoId=z?z:"";Q&&(f.serializedThirdPartyEmbedConfig=Q)}; +g.nA=function(Q,z){pA.get(Q);pA.set(Q,z)}; +g.g3=function(Q){g.vf.call(this);this.loaded=!1;this.player=Q}; +Y3J=function(){this.B=[];this.Z=[]}; +g.LA=function(Q,z){return z?Q.Z.concat(Q.B):Q.Z}; +g.ZY=function(Q,z){switch(z.kind){case "asr":rYc(z,Q.B);break;default:rYc(z,Q.Z)}}; +rYc=function(Q,z){g.wJ(z,function(H){return Q.jH(H)})||z.push(Q)}; +g.Gj=function(Q){g.h.call(this);this.Yv=Q;this.B=new Y3J;this.D=null;this.S=[];this.N=[]}; +g.$b=function(Q,z,H){g.Gj.call(this,Q);this.videoData=z;this.audioTrack=H;this.Z=null;this.L=!1;this.S=z.ON;this.N=z.rY;this.L=g.UC(z)}; +g.jH=function(Q,z){return Hs(Q.info.mimeType)?z?Q.info.itag===z:!0:!1}; +g.sYY=function(Q,z){if(Q.Z!=null&&g.xJ(z.C())&&!Q.Z.isManifestless&&Q.Z.Z.rawcc!=null)return!0;if(!Q.AZ())return!1;z=!!Q.Z&&Q.Z.isManifestless&&Object.values(Q.Z.Z).some(function(H){return g.jH(H,"386")}); +Q=!!Q.Z&&!Q.Z.isManifestless&&g.can(Q.Z);return z||Q}; +g.Fe=function(Q,z,H,f,b,L){g.Gj.call(this,Q);this.videoId=H;this.Q$=b;this.eventId=L;this.j={};this.Z=null;Q=f||g.ST(z).hl||"";Q=Q.split("_").join("-");this.L=XZ(z,{hl:Q})}; +Bon=function(Q,z){this.B=Q;this.Z=z;this.onFailure=void 0}; +P_8=function(Q,z){return{j$:Q.j$&&z.j$,xs:Q.xs&&z.xs,sync:Q.sync&&z.sync,streaming:Q.streaming&&z.streaming}}; +Ou=function(Q,z){var H=aC9,f=this;this.path=Q;this.L=z;this.D=H;this.capabilities={j$:!!this.L,xs:"WebAssembly"in window,sync:"WebAssembly"in window,streaming:"WebAssembly"in window&&"instantiateStreaming"in WebAssembly&&"compileStreaming"in WebAssembly};this.S=new Bon([{name:"compileStreaming",condition:function(b){return!!f.B&&b.streaming}, +Qq:xb.o5("wmcx",function(){return WebAssembly.compileStreaming(fetch(f.path))}), +onFailure:function(){return f.capabilities.streaming=!1}}, +{name:"sync",condition:function(b){return b.sync}, +Qq:function(){return CE(U8_(f),xb.o5("wmcs",function(b){return new WebAssembly.Module(b)}))}, +onFailure:function(){return f.capabilities.sync=!1}}, +{name:"async",condition:function(){return!0}, +Qq:function(){return CE(U8_(f),xb.o5("wmca",function(b){return WebAssembly.compile(b)}))}, +onFailure:function(){return f.capabilities.xs=!1}}]); +this.j=new Bon([{name:"instantiateStreaming",condition:function(b){return b.xs&&b.streaming&&!f.B&&!f.Z}, +Qq:function(b,L){return xb.UJ("wmix",function(){return WebAssembly.instantiateStreaming(fetch(f.path),L)}).then(function(u){f.Z=X_(u.module); +return{instance:u.instance,fV:!1}})}, +onFailure:function(){return f.capabilities.streaming=!1}}, +{name:"sync",condition:function(b){return b.xs&&b.sync}, +Qq:function(b,L){return CE(cYk(f,b),xb.o5("wmis",function(u){return{instance:new WebAssembly.Instance(u,L),fV:!1}}))}, +onFailure:function(){return f.capabilities.sync=!1}}, +{name:"async",condition:function(b){return b.xs}, +Qq:function(b,L){return CE(CE(cYk(f,b),xb.o5("wmia",function(u){return WebAssembly.instantiate(u,L)})),function(u){return{instance:u, +fV:!1}})}, +onFailure:function(){return f.capabilities.xs=!1}}, +{name:"asmjs",condition:function(b){return b.j$}, +Qq:function(b,L){return X_(xb.UJ("wmij",function(){return f.L(L)}).then(function(u){return{instance:{exports:u}, +fV:!0}}))}, +onFailure:function(){return f.capabilities.j$=!1}}],function(b,L,u){return f.D(u,b.instance.exports)})}; +WVc=function(Q){var z=iO6;return z.instantiate(Q?P_8(z.capabilities,Q):z.capabilities,new haA)}; +U8_=function(Q){if(Q.B)return Q.B;var z=fetch(Q.path).then(function(H){return H.arrayBuffer()}).then(function(H){Q.B=X_(H); +return H}).then(void 0,function(H){g.ax(Error("wasm module fetch failure: "+H.message,{cause:H})); +Q.B=void 0;throw H;}); +Q.B=X_(z);return Q.B}; +cYk=function(Q,z){if(!z.xs)return y1(Error("wasm unavailable"));if(Q.Z)return Q.Z;Q.Z=tK(CE(Q.compile(z),function(H){Q.Z=X_(H);return H}),function(H){g.ax(Error("wasm module compile failure: "+H.message,{cause:H})); +Q.Z=void 0;throw H;}); +return Q.Z}; +D8v=function(){}; +KV9=function(){var Q=this;this.proc_exit=function(){}; +this.fd_write=function(z,H,f){if(!Q.exports)return 1;z=new Uint32Array(Q.exports.memory.buffer,H,f*2);H=[];for(var b=0;b=11;Q=Q.api.C().N&&aO;return!(!z&&!Q)}; +w3=function(Q,z){return!Q.api.isInline()&&!Jwk(Q,Jq(z))&&g.oQ(z)}; +oIL=function(Q){Q.Iz.l9();if(Q.UH&&Q.fB)Q.fB=!1;else if(!Q.api.C().jm&&!Q.F9()){var z=Q.api.getPlayerStateObject();g.w(z,2)&&g.Jf(Q.api)||Q.fR(z);!Q.api.C().KH||z.isCued()||g.w(z,1024)?Q.O4():Q.R7.isActive()?(Q.DQ(),Q.R7.stop()):Q.R7.start()}}; +I2_=function(Q,z){var H;if((H=Q.api.getVideoData())==null?0:H.mutedAutoplay){var f,b;if((f=z.target)==null?0:(b=f.className)==null?0:b.includes("ytp-info-panel"))return!1}return g.oQ(z)&&Q.api.isMutedByMutedAutoplay()?(Q.api.unMute(),Q.api.getPresentingPlayerType()===2&&Q.api.playVideo(),z=Q.api.getPlayerStateObject(),!g.w(z,4)||g.w(z,8)||g.w(z,2)||Q.O4(),!0):!1}; +AwY=function(Q,z,H){Q.api.isFullscreen()?H<1-z&&Q.api.toggleFullscreen():H>1+z&&Q.api.toggleFullscreen()}; +OJv=function(Q){var z=dR()&&K1()>=67&&!Q.api.C().N;Q=Q.api.C().disableOrganicUi;return!g.VC("tizen")&&!jN&&!z&&!Q}; +kb=function(Q,z){z=z===void 0?2:z;g.vf.call(this);this.api=Q;this.Z=null;this.Hc=new I4(this);g.W(this,this.Hc);this.B=q56;this.Hc.X(this.api,"presentingplayerstatechange",this.f6);this.Z=this.Hc.X(this.api,"progresssync",this.A7);this.A_=z;this.A_===1&&this.A7()}; +g.Tj=function(Q){g.m.call(this,{G:"div",W:[{G:"div",J:"ytp-bezel-text-wrapper",W:[{G:"div",J:"ytp-bezel-text",BI:"{{title}}"}]},{G:"div",J:"ytp-bezel",T:{role:"status","aria-label":"{{label}}"},W:[{G:"div",J:"ytp-bezel-icon",BI:"{{icon}}"}]}]});this.K=Q;this.B=new g.lp(this.show,10,this);Q=this.K.V("delhi_modern_web_player")?1E3:500;this.Z=new g.lp(this.hide,Q,this);g.W(this,this.B);g.W(this,this.Z);this.hide()}; +lN=function(Q,z,H){if(z<=0){H=rs();z="muted";var f=0}else H=H?{G:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",w4:!0,T:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{G:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",w4:!0,T:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z", +fill:"#fff"}}]},f=Math.floor(z),z=f+"volume";eH(Q,H,z,f+"%")}; +YL9=function(Q,z){z=z?{G:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",w4:!0,J:"ytp-svg-fill",T:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:J1_();var H=Q.K.getPlaybackRate(),f=g.pi("Speed is $RATE",{RATE:String(H)});eH(Q,z,f,H+"x")}; +rwJ=function(Q,z){z=z?"Subtitles/closed captions on":"Subtitles/closed captions off";eH(Q,XBA(),z)}; +eH=function(Q,z,H,f){f=f===void 0?"":f;Q.updateValue("label",H===void 0?"":H);Q.updateValue("icon",z);g.ze(Q.Z);Q.B.start();Q.updateValue("title",f);g.MP(Q.element,"ytp-bezel-text-hide",!f)}; +sPv=function(Q,z){g.m.call(this,{G:"button",lT:["ytp-button","ytp-cards-button"],T:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.O8(Q.C()))},W:[{G:"span",J:"ytp-cards-button-icon-default",W:[{G:"div",J:"ytp-cards-button-icon",W:[Q.C().V("player_new_info_card_format")?A16():{G:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",w4:!0,J:"ytp-svg-fill",T:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]}, +{G:"div",J:"ytp-cards-button-title",BI:"Info"}]},{G:"span",J:"ytp-cards-button-icon-shopping",W:[{G:"div",J:"ytp-cards-button-icon",W:[{G:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",J:"ytp-svg-shadow",T:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{G:"path",J:"ytp-svg-fill",T:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z", +"fill-opacity":"1"}},{G:"path",J:"ytp-svg-shadow-fill",T:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{G:"div", +J:"ytp-cards-button-title",BI:"Shopping"}]}]});this.K=Q;this.L=z;this.Z=null;this.B=new g.fp(this,250,!0,100);g.W(this,this.B);g.MP(this.L,"ytp-show-cards-title",g.O8(Q.C()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.KR(!0)}; +BQA=function(Q,z){g.m.call(this,{G:"div",J:"ytp-cards-teaser",W:[{G:"div",J:"ytp-cards-teaser-box"},{G:"div",J:"ytp-cards-teaser-text",W:Q.C().V("player_new_info_card_format")?[{G:"button",J:"ytp-cards-teaser-info-icon",T:{"aria-label":"Show cards","aria-haspopup":"true"},W:[A16()]},{G:"span",J:"ytp-cards-teaser-label",BI:"{{text}}"},{G:"button",J:"ytp-cards-teaser-close-button",T:{"aria-label":"Close"},W:[g.Fp()]}]:[{G:"span",J:"ytp-cards-teaser-label",BI:"{{text}}"}]}]});var H=this;this.K=Q;this.aJ= +z;this.D=new g.fp(this,250,!1,250);this.Z=null;this.N=new g.lp(this.x4l,300,this);this.Y=new g.lp(this.P8n,2E3,this);this.j=[];this.B=null;this.U=new g.lp(function(){H.element.style.margin="0"},250); +this.onClickCommand=this.L=null;g.W(this,this.D);g.W(this,this.N);g.W(this,this.Y);g.W(this,this.U);Q.C().V("player_new_info_card_format")?(g.X9(Q.getRootNode(),"ytp-cards-teaser-dismissible"),this.X(this.Mc("ytp-cards-teaser-close-button"),"click",this.Au),this.X(this.Mc("ytp-cards-teaser-info-icon"),"click",this.w8),this.X(this.Mc("ytp-cards-teaser-label"),"click",this.w8)):this.listen("click",this.w8);this.X(z.element,"mouseover",this.O9);this.X(z.element,"mouseout",this.Hu);this.X(Q,"cardsteasershow", +this.jyv);this.X(Q,"cardsteaserhide",this.fH);this.X(Q,"cardstatechange",this.pF);this.X(Q,"presentingplayerstatechange",this.pF);this.X(Q,"appresize",this.Os);this.X(Q,"onShowControls",this.Os);this.X(Q,"onHideControls",this.Bi);this.listen("mouseenter",this.V3)}; +Pep=function(Q){g.m.call(this,{G:"button",lT:[RO.BUTTON,RO.TITLE_NOTIFICATIONS],T:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},W:[{G:"div",J:RO.TITLE_NOTIFICATIONS_ON,T:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},W:[g.ov()]},{G:"div",J:RO.TITLE_NOTIFICATIONS_OFF,T:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},W:[{G:"svg",T:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},W:[{G:"path",T:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]}); +this.api=Q;this.Z=!1;Q.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Get notified about every new video")}; +a2v=function(Q,z){Q.Z=z;Q.element.classList.toggle(RO.NOTIFICATIONS_ENABLED,Q.Z);var H=Q.api.getVideoData();H?(z=z?H.Z_:H.HX)?(Q=Q.api.Vk())?kx(Q,z):g.PT(Error("No innertube service available when updating notification preferences.")):g.PT(Error("No update preferences command available.")):g.PT(Error("No video data when updating notification preferences."))}; +cw_=function(Q,z,H){var f=f===void 0?800:f;var b=b===void 0?600:b;var L=document.location.protocol;Q=jI9(L+"//"+Q+"/signin?context=popup","feature",z,"next",L+"//"+location.hostname+"/post_login");Uc8(Q,H,f,b)}; +Uc8=function(Q,z,H,f){H=H===void 0?800:H;f=f===void 0?600:f;if(Q=g.cJ(window,Q,"loginPopup","width="+H+",height="+f+",resizable=yes,scrollbars=yes"))o7a(function(){z()}),Q.moveTo((screen.width-H)/2,(screen.height-f)/2)}; +g.QI=function(Q,z,H,f,b,L,u,X,v,y,q,M){Q=Q.charAt(0)+Q.substring(1).toLowerCase();H=H.charAt(0)+H.substring(1).toLowerCase();if(z==="0"||z==="-1")z=null;if(f==="0"||f==="-1")f=null;var C=q.C(),t=C.userDisplayName&&g.Yh(C);g.m.call(this,{G:"div",lT:["ytp-button","ytp-sb"],W:[{G:"div",J:"ytp-sb-subscribe",T:t?{title:g.pi("Subscribe as $USER_NAME",{USER_NAME:C.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":Qc(C),"data-tooltip-opaque":String(g.O8(C)),tabindex:"0",role:"button"}: +{"aria-label":"Subscribe to channel"},W:[{G:"div",J:"ytp-sb-text",W:[{G:"div",J:"ytp-sb-icon"},Q]},z?{G:"div",J:"ytp-sb-count",BI:z}:""]},{G:"div",J:"ytp-sb-unsubscribe",T:t?{title:g.pi("Subscribed as $USER_NAME",{USER_NAME:C.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":Qc(C),"data-tooltip-opaque":String(g.O8(C)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},W:[{G:"div",J:"ytp-sb-text",W:[{G:"div",J:"ytp-sb-icon"},H]},f?{G:"div",J:"ytp-sb-count", +BI:f}:""]}],T:{"aria-live":"polite"}});var E=this;this.channelId=u;this.K=q;this.L=M;var G=this.Mc("ytp-sb-subscribe"),x=this.Mc("ytp-sb-unsubscribe");L&&g.X9(this.element,"ytp-sb-classic");if(b){X?this.Z():this.B();var J=function(){if(C.L3){var r=E.channelId;if(v||y){var U={c:r};var D;g.YA.isInitialized()&&(D=JOA(U));U=D||"";if(D=q.getVideoData())if(D=D.subscribeCommand){var T=q.Vk();T?(kx(T,D,{botguardResponse:U,feature:v}),q.F$("SUBSCRIBE",r)):g.PT(Error("No innertube service available when updating subscriptions."))}else g.PT(Error("No subscribe command in videoData.")); +else g.PT(Error("No video data available when updating subscription."))}x.focus();x.removeAttribute("aria-hidden");G.setAttribute("aria-hidden","true")}else cw_(g.Dd(E.K.C()),"sb_button",E.D)},I=function(){var r=E.channelId; +if(v||y){var U=q.getVideoData();kx(q.Vk(),U.unsubscribeCommand,{feature:v});q.F$("UNSUBSCRIBE",r)}G.focus();G.removeAttribute("aria-hidden");x.setAttribute("aria-hidden","true")}; +this.X(G,"click",J);this.X(x,"click",I);this.X(G,"keypress",function(r){r.keyCode===13&&J(r)}); +this.X(x,"keypress",function(r){r.keyCode===13&&I(r)}); +this.X(q,"SUBSCRIBE",this.Z);this.X(q,"UNSUBSCRIBE",this.B);this.L&&t&&(V39(q),x1(q,G,this),x1(q,x,this))}else g.X9(G,"ytp-sb-disabled"),g.X9(x,"ytp-sb-disabled")}; +WLc=function(Q){g.m.call(this,{G:"div",J:"ytp-title-channel",W:[{G:"div",J:"ytp-title-beacon"},{G:"a",J:"ytp-title-channel-logo",T:{href:"{{channelLink}}",target:Q.C().U,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{G:"div",J:"ytp-title-expanded-overlay",T:{"aria-hidden":"{{flyoutUnfocusable}}"},W:[{G:"div",J:"ytp-title-expanded-heading",W:[{G:"div",J:"ytp-title-expanded-title",W:[{G:"a",BI:"{{expandedTitle}}",T:{href:"{{channelTitleLink}}",target:Q.C().U,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", +tabIndex:"{{channelTitleFocusable}}"}}]},{G:"div",J:"ytp-title-expanded-subtitle",BI:"{{expandedSubtitle}}",T:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var z=this;this.api=Q;this.channel=this.Mc("ytp-title-channel");this.B=this.Mc("ytp-title-channel-logo");this.channelName=this.Mc("ytp-title-expanded-title");this.j=this.Mc("ytp-title-expanded-overlay");this.L=this.Z=this.subscribeButton=null;this.D=!1;Q.createClientVe(this.B,this,36925);Q.createClientVe(this.channelName,this, +37220);g.O8(this.api.C())&&iJJ(this);this.X(Q,"videodatachange",this.Jh);this.X(Q,"videoplayerreset",this.Jh);this.X(this.channelName,"click",function(H){z.api.logClick(z.channelName);g.cJ(window,hGA(z));H.preventDefault()}); +this.X(this.B,"click",this.fSe);this.Jh()}; +Dc6=function(Q){if(!Q.api.C().UY){var z=Q.api.getVideoData(),H=new g.QI("Subscribe",null,"Subscribed",null,!0,!1,z.HG,z.subscribed,"channel_avatar",null,Q.api,!0);Q.api.createServerVe(H.element,Q);var f;Q.api.setTrackingParams(H.element,((f=z.subscribeButtonRenderer)==null?void 0:f.trackingParams)||null);Q.X(H.element,"click",function(){Q.api.logClick(H.element)}); +Q.subscribeButton=H;g.W(Q,Q.subscribeButton);Q.subscribeButton.Gv(Q.j);Q.subscribeButton.hide();var b=new Pep(Q.api);Q.Z=b;g.W(Q,b);b.Gv(Q.j);b.hide();Q.X(Q.api,"SUBSCRIBE",function(){z.zO&&(b.show(),Q.api.logVisibility(b.element,!0))}); +Q.X(Q.api,"UNSUBSCRIBE",function(){z.zO&&(b.hide(),Q.api.logVisibility(b.element,!1),a2v(b,!1))})}}; +iJJ=function(Q){var z=Q.api.C();Dc6(Q);Q.updateValue("flyoutUnfocusable","true");Q.updateValue("channelTitleFocusable","-1");Q.updateValue("shouldHideExpandedTitleForA11y","true");Q.updateValue("shouldHideExpandedSubtitleForA11y","true");z.B||z.En||(Q.X(Q.channel,"mouseenter",Q.Zh),Q.X(Q.channel,"mouseleave",Q.kS),Q.X(Q.channel,"focusin",Q.Zh),Q.X(Q.channel,"focusout",function(H){Q.channel.contains(H.relatedTarget)||Q.kS()})); +Q.L=new g.lp(function(){Q.isExpanded()&&(Q.api.logVisibility(Q.channelName,!1),Q.subscribeButton&&(Q.subscribeButton.hide(),Q.api.logVisibility(Q.subscribeButton.element,!1)),Q.Z&&(Q.Z.hide(),Q.api.logVisibility(Q.Z.element,!1)),Q.channel.classList.remove("ytp-title-expanded"),Q.channel.classList.add("ytp-title-show-collapsed"))},500); +g.W(Q,Q.L);Q.X(Q.channel,KL_,function(){VQ_(Q)}); +Q.X(Q.api,"onHideControls",Q.OB);Q.X(Q.api,"appresize",Q.OB);Q.X(Q.api,"fullscreentoggled",Q.OB)}; +VQ_=function(Q){Q.channel.classList.remove("ytp-title-show-collapsed");Q.channel.classList.remove("ytp-title-show-expanded")}; +dcn=function(Q){var z=Q.api.getPlayerSize();return g.O8(Q.api.C())&&z.width>=524}; +hGA=function(Q){var z=Q.api.C(),H=Q.api.getVideoData(),f=g.zZ(z)+H.KH;g.bj(H)&&(f="https://music.youtube.com"+H.KH);if(!g.O8(z))return f;z={};g.qW(Q.api,"addEmbedsConversionTrackingParams",[z]);return g.de(f,z)}; +zf=function(Q){var z=g.wX({"aria-haspopup":"true"});g.mh.call(this,z,Q);this.listen("keydown",this.Z)}; +Hp=function(Q,z){Q.element.setAttribute("aria-haspopup",String(z))}; +mcc=function(Q,z){g.m.call(this,{G:"div",J:"ytp-user-info-panel",T:{"aria-label":"User info"},W:Q.C().L3&&!Q.V("embeds_web_always_enable_signed_out_state")?[{G:"div",J:"ytp-user-info-panel-icon",BI:"{{icon}}"},{G:"div",J:"ytp-user-info-panel-content",W:[{G:"div",J:"ytp-user-info-panel-info",T:{tabIndex:"{{userInfoFocusable}}",role:"text"},BI:"{{watchingAsUsername}}"},{G:"div",J:"ytp-user-info-panel-info",T:{tabIndex:"{{userInfoFocusable2}}",role:"text"},BI:"{{watchingAsEmail}}"}]}]:[{G:"div",J:"ytp-user-info-panel-icon", +BI:"{{icon}}"},{G:"div",J:"ytp-user-info-panel-content",W:[{G:"div",W:[{G:"text",T:{tabIndex:"{{userInfoFocusable}}"},BI:"Signed out"}]},{G:"div",J:"ytp-user-info-panel-login",W:[{G:"a",T:{tabIndex:"{{userInfoFocusable2}}",role:"button"},BI:Q.C().UY?"":"Sign in on YouTube"}]}]}]});this.Yv=Q;this.Z=z;Q.C().L3||Q.C().UY||this.X(this.Mc("ytp-user-info-panel-login"),"click",this.cA);this.closeButton=new g.m({G:"button",lT:["ytp-collapse","ytp-button"],T:{title:"Close"},W:[g.Yj()]});this.closeButton.Gv(this.element); +g.W(this,this.closeButton);this.X(window,"blur",this.hide);this.X(document,"click",this.n6);this.Jh()}; +kDk=function(Q,z,H){g.Az.call(this,Q);this.kt=z;this.sZ=H;this.getVideoUrl=new zf(6);this.Rm=new zf(5);this.Cr=new zf(4);this.TL=new zf(3);this.gM=new g.mh(g.wX({href:"{{href}}",target:this.K.C().U},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.mh(g.wX(),1,"Stats for nerds");this.C_=new g.tB({G:"div",lT:["ytp-copytext","ytp-no-contextmenu"],T:{draggable:"false",tabindex:"1"},BI:"{{text}}"});this.uX=new Ii(this.K,this.C_);this.ow=this.xG=null;g.O8(this.K.C())&&(this.closeButton= +new g.m({G:"button",lT:["ytp-collapse","ytp-button"],T:{title:"Close"},W:[g.Yj()]}),g.W(this,this.closeButton),this.closeButton.Gv(this.element),this.closeButton.listen("click",this.M6,this));g.O8(this.K.C())&&(this.Wl=new g.mh(g.wX(),8,"Account"),g.W(this,this.Wl),this.md(this.Wl,!0),this.Wl.listen("click",this.qj$,this),Q.createClientVe(this.Wl.element,this.Wl,137682));this.K.C().B5&&(this.i$=new bo("Loop",7),g.W(this,this.i$),this.md(this.i$,!0),this.i$.listen("click",this.osh,this),Q.createClientVe(this.i$.element, +this.i$,28661));g.W(this,this.getVideoUrl);this.md(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.txl,this);Q.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.W(this,this.Rm);this.md(this.Rm,!0);this.Rm.listen("click",this.R93,this);Q.createClientVe(this.Rm.element,this.Rm,28660);g.W(this,this.Cr);this.md(this.Cr,!0);this.Cr.listen("click",this.FdI,this);Q.createClientVe(this.Cr.element,this.Cr,28658);g.W(this,this.TL);this.md(this.TL,!0);this.TL.listen("click",this.N4$, +this);g.W(this,this.gM);this.md(this.gM,!0);this.gM.listen("click",this.uh$,this);g.W(this,this.showVideoInfo);this.md(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.L4I,this);g.W(this,this.C_);this.C_.listen("click",this.c7h,this);g.W(this,this.uX);z=document.queryCommandSupported&&document.queryCommandSupported("copy");w_p("Chromium")>=43&&(z=!0);w_p("Firefox")<=40&&(z=!1);z&&(this.xG=new g.m({G:"textarea",J:"ytp-html5-clipboard",T:{readonly:"",tabindex:"-1"}}),g.W(this,this.xG), +this.xG.Gv(this.element));var f;(f=this.Wl)==null||f.setIcon(BGp());var b;(b=this.i$)==null||b.setIcon({G:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{G:"path",T:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});this.TL.setIcon({G:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{G:"path",T:{"clip-rule":"evenodd",d:"M20 10V8H17.19C16.74 7.22 16.12 6.54 15.37 6.04L17 4.41L15.59 3L13.42 5.17C13.39 5.16 13.37 5.16 13.34 5.16C13.18 5.12 13.02 5.1 12.85 5.07C12.79 5.06 12.74 5.05 12.68 5.04C12.46 5.02 12.23 5 12 5C11.51 5 11.03 5.07 10.58 5.18L10.6 5.17L8.41 3L7 4.41L8.62 6.04H8.63C7.88 6.54 7.26 7.22 6.81 8H4V10H6.09C6.03 10.33 6 10.66 6 11V12H4V14H6V15C6 15.34 6.04 15.67 6.09 16H4V18H6.81C7.85 19.79 9.78 21 12 21C14.22 21 16.15 19.79 17.19 18H20V16H17.91C17.96 15.67 18 15.34 18 15V14H20V12H18V11C18 10.66 17.96 10.33 17.91 10H20ZM16 15C16 17.21 14.21 19 12 19C9.79 19 8 17.21 8 15V11C8 8.79 9.79 7 12 7C14.21 7 16 8.79 16 11V15ZM10 14H14V16H10V14ZM10 10H14V12H10V10Z", +fill:"white","fill-rule":"evenodd"}}]});this.gM.setIcon(NGA());this.showVideoInfo.setIcon(IEp());this.X(Q,"onLoopChange",this.onLoopChange);this.X(Q,"videodatachange",this.onVideoDataChange);wgp(this);this.Yg(this.K.getVideoData())}; +fU=function(Q,z){var H=!1;if(Q.xG){var f=Q.xG.element;f.value=z;f.select();try{H=document.execCommand("copy")}catch(b){}}H?Q.kt.fH():(Q.C_.UV(z,"text"),g.sk(Q.kt,Q.uX),vN(Q.C_.element),Q.xG&&(Q.xG=null,wgp(Q)));return H}; +wgp=function(Q){var z=!!Q.xG;g.dX(Q.TL,z?"Copy debug info":"Get debug info");Hp(Q.TL,!z);g.dX(Q.Cr,z?"Copy embed code":"Get embed code");Hp(Q.Cr,!z);g.dX(Q.getVideoUrl,z?"Copy video URL":"Get video URL");Hp(Q.getVideoUrl,!z);g.dX(Q.Rm,z?"Copy video URL at current time":"Get video URL at current time");Hp(Q.Rm,!z);Q.Cr.setIcon(z?Ofn():null);Q.getVideoUrl.setIcon(z?xj():null);Q.Rm.setIcon(z?xj():null)}; +TQp=function(Q){return g.O8(Q.K.C())?Q.Wl:Q.i$}; +l29=function(Q,z){g.rI.call(this,Q);this.sZ=z;this.D=new g.Pt(this);this.wh=new g.lp(this.mBv,1E3,this);this.L3=this.L=null;g.W(this,this.D);g.W(this,this.wh);z=this.K.C();Q.createClientVe(this.element,this,28656);g.X9(this.element,"ytp-contextmenu");this.K.C().experiments.Nc("delhi_modern_web_player")&&g.wm(z)&&g.X9(this.element,"ytp-delhi-modern-contextmenu");eGL(this);this.hide()}; +eGL=function(Q){g.YQ(Q.D);var z=Q.K.C();z.playerStyle==="gvn"||z.B||z.En||(z=Q.K.Un(),Q.D.X(z,"contextmenu",Q.mie),Q.D.X(z,"touchstart",Q.onTouchStart,null,!0),Q.D.X(z,"touchmove",Q.P9,null,!0),Q.D.X(z,"touchend",Q.P9,null,!0))}; +RGY=function(Q){Q.K.isFullscreen()?g.BG(Q.K,Q.element,10):Q.Gv(Da(Q).body)}; +bs=function(Q,z,H){H=H===void 0?240:H;g.m.call(this,{G:"button",lT:["ytp-button","ytp-copylink-button"],T:{title:"{{title-attr}}","data-tooltip-opaque":String(g.O8(Q.C()))},W:[{G:"div",J:"ytp-copylink-icon",BI:"{{icon}}"},{G:"div",J:"ytp-copylink-title",BI:"Copy link",T:{"aria-hidden":"true"}}]});this.api=Q;this.Z=z;this.B=H;this.visible=!1;this.tooltip=this.Z.xJ();z=Q.C();this.tooltip.element.setAttribute("aria-live","polite");g.MP(this.element,"ytp-show-copylink-title",g.O8(z));Q.createClientVe(this.element, +this,86570);this.listen("click",this.onClick);this.X(Q,"videodatachange",this.Jh);this.X(Q,"videoplayerreset",this.Jh);this.X(Q,"appresize",this.Jh);this.Jh();this.addOnDisposeCallback(g.Fv(this.tooltip,this.element))}; +Q5c=function(Q){var z=Q.api.C(),H=Q.api.getVideoData(),f=Q.api.Un().getPlayerSize().width;z=z.L;return!!H.videoId&&f>=Q.B&&H.Sl&&!g.HG(H)&&!Q.api.isEmbedsShortsMode()&&!z}; +zNu=function(Q){Q.updateValue("icon",Zv());if(Q.api.C().B)Q.tooltip.Ag(Q.element,"Link copied to clipboard");else{Q.updateValue("title-attr","Link copied to clipboard");Q.tooltip.UX();Q.tooltip.Ag(Q.element);var z=Q.listen("mouseleave",function(){Q.DS(z);Q.Jh();Q.tooltip.Lg()})}}; +H08=function(Q,z){return g.B(function(H){if(H.Z==1)return g.jY(H,2),g.Y(H,navigator.clipboard.writeText(z),4);if(H.Z!=2)return H.return(!0);g.OA(H);var f=H.return,b=!1,L=g.fm("TEXTAREA");L.value=z;L.setAttribute("readonly","");var u=Q.api.getRootNode();u.appendChild(L);if(kw){var X=window.getSelection();X.removeAllRanges();var v=document.createRange();v.selectNodeContents(L);X.addRange(v);L.setSelectionRange(0,z.length)}else L.select();try{b=document.execCommand("copy")}catch(y){}u.removeChild(L); +return f.call(H,b)})}; +LU=function(Q){g.m.call(this,{G:"div",J:"ytp-doubletap-ui-legacy",W:[{G:"div",J:"ytp-doubletap-fast-forward-ve"},{G:"div",J:"ytp-doubletap-rewind-ve"},{G:"div",J:"ytp-doubletap-static-circle",W:[{G:"div",J:"ytp-doubletap-ripple"}]},{G:"div",J:"ytp-doubletap-overlay-a11y"},{G:"div",J:"ytp-doubletap-seek-info-container",W:[{G:"div",J:"ytp-doubletap-arrows-container",W:[{G:"span",J:"ytp-doubletap-base-arrow"},{G:"span",J:"ytp-doubletap-base-arrow"},{G:"span",J:"ytp-doubletap-base-arrow"}]},{G:"div", +J:"ytp-doubletap-tooltip",W:[{G:"div",J:"ytp-seek-icon-text-container",W:[{G:"div",J:"ytp-seek-icon",BI:"{{seekIcon}}"},{G:"div",J:"ytp-chapter-seek-text-legacy",BI:"{{seekText}}"}]},{G:"div",J:"ytp-doubletap-tooltip-label",BI:"{{seekTime}}"}]}]}]});this.K=Q;this.D=new g.lp(this.show,10,this);this.B=new g.lp(this.hide,700,this);this.Y=this.L=0;this.Ze=this.j=!1;this.Z=this.Mc("ytp-doubletap-static-circle");g.W(this,this.D);g.W(this,this.B);this.hide();this.N=this.Mc("ytp-doubletap-fast-forward-ve"); +this.U=this.Mc("ytp-doubletap-rewind-ve");this.K.createClientVe(this.N,this,28240);this.K.createClientVe(this.U,this,28239);this.K.logVisibility(this.N,!0);this.K.logVisibility(this.U,!0);this.j=Q.V("web_show_cumulative_seek_time");this.Ze=Q.V("web_center_static_circles")}; +us=function(Q,z,H,f){if(f=f===void 0?null:f){var b=z===-1?Q.U.visualElement:Q.N.visualElement;f={seekData:f};var L=g.Jl();L&&g.zr(QR)(void 0,L,b,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",f,void 0)}Q.L=z===Q.Y?Q.L+H:H;Q.Y=z;b=Q.K.Un().getPlayerSize();Q.j?Q.B.stop():g.ze(Q.B);Q.D.start();Q.element.setAttribute("data-side",z===-1?"back":"forward");g.X9(Q.element,"ytp-time-seeking");Q.Z.style.width="110px";Q.Z.style.height="110px";f=b.width*.1-15;z===1?Q.Ze?(Q.Z.style.right=f+"px",Q.Z.style.left=""): +(Q.Z.style.right="",Q.Z.style.left=b.width*.8-30+"px"):z===-1&&(Q.Ze?(Q.Z.style.right="",Q.Z.style.left=f+"px"):(Q.Z.style.right="",Q.Z.style.left=b.width*.1-15+"px"));Q.Z.style.top=b.height*.5+15+"px";fBY(Q,Q.j?Q.L:H)}; +SO=function(Q,z,H,f){f=f===void 0?null:f;g.ze(Q.B);Q.D.start();switch(z){case -1:z="back";break;case 1:z="forward";break;default:z=""}Q.element.setAttribute("data-side",z);Q.Z.style.width="0";Q.Z.style.height="0";g.X9(Q.element,"ytp-chapter-seek");Q.updateValue("seekText",H);Q.updateValue("seekTime","");H=Q.Mc("ytp-seek-icon");if(f){a:if(f){switch(f){case "PREMIUM_STANDALONE":f={G:"svg",T:{height:"24px",version:"1.1",viewBox:"-2 -2 24 24",width:"24px"},W:[{G:"path",T:{d:"M 0 1.43 C 0 .64 .64 0 1.43 0 L 18.56 0 C 19.35 0 20 .64 20 1.43 L 20 18.56 C 20 19.35 19.35 20 18.56 20 L 1.43 20 C .64 20 0 19.35 0 18.56 Z M 0 1.43 ", +fill:"#c00"}},{G:"path",T:{d:"M 7.88 11.42 L 7.88 15.71 L 5.37 15.71 L 5.37 3.52 L 10.12 3.52 C 11.04 3.52 11.84 3.69 12.54 4.02 C 13.23 4.36 13.76 4.83 14.14 5.45 C 14.51 6.07 14.70 6.77 14.70 7.56 C 14.70 8.75 14.29 9.69 13.48 10.38 C 12.66 11.07 11.53 11.42 10.08 11.42 Z M 7.88 9.38 L 10.12 9.38 C 10.79 9.38 11.30 9.23 11.64 8.91 C 11.99 8.60 12.17 8.16 12.17 7.57 C 12.17 6.98 11.99 6.5 11.64 6.12 C 11.29 5.76 10.80 5.57 10.18 5.56 L 7.88 5.56 Z M 7.88 9.38 ",fill:"#fff","fill-rule":"nonzero"}}]}; +break a;case "PREMIUM_STANDALONE_CAIRO":f={G:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},W:[{G:"rect",T:{fill:"white",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{G:"rect",T:{fill:"url(#ytp-premium-standalone-gradient)",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{G:"path",T:{d:"M12.75 13.02H9.98V11.56H12.75C13.24 11.56 13.63 11.48 13.93 11.33C14.22 11.17 14.44 10.96 14.58 10.68C14.72 10.40 14.79 10.09 14.79 9.73C14.79 9.39 14.72 9.08 14.58 8.78C14.44 8.49 14.22 8.25 13.93 8.07C13.63 7.89 13.24 7.80 12.75 7.80H10.54V17H8.70V6.33H12.75C13.58 6.33 14.28 6.48 14.86 6.77C15.44 7.06 15.88 7.46 16.18 7.97C16.48 8.48 16.64 9.06 16.64 9.71C16.64 10.40 16.48 10.99 16.18 11.49C15.88 11.98 15.44 12.36 14.86 12.62C14.28 12.89 13.58 13.02 12.75 13.02Z", +fill:"white"}},{G:"defs",W:[{G:"linearGradient",T:{gradientUnits:"userSpaceOnUse",id:"ytp-premium-standalone-gradient",x1:"2",x2:"22",y1:"22",y2:"2"},W:[{G:"stop",T:{offset:"0.3","stop-color":"#E1002D"}},{G:"stop",T:{offset:"0.9","stop-color":"#E01378"}}]}]}]};break a}f=void 0}else f=null;Q.updateValue("seekIcon",f);H.style.display="inline-block"}else H.style.display="none"}; +fBY=function(Q,z){z=g.pi("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:z.toString()});Q.updateValue("seekTime",z)}; +b0L=function(Q){Np.call(this,Q,!1,!0);this.De=[];this.EY=[];this.N=!0;this.badge.element.classList.add("ytp-featured-product");this.yl=new g.m({G:"div",J:"ytp-featured-product-open-in-new"});g.W(this,this.yl);this.countdownTimer=new g.m({G:"text",J:"ytp-featured-product-countdown",BI:"{{content}}"});this.countdownTimer.hide();g.W(this,this.countdownTimer);this.B=new g.m({G:"div",J:"ytp-featured-product-trending",W:[{G:"div",J:"ytp-featured-product-trending-icon"},{G:"text",J:"ytp-featured-product-trending-text", +BI:"{{trendingOffer}}"}]});this.B.hide();g.W(this,this.B);this.overflowButton=new g.m({G:"button",lT:["ytp-featured-product-overflow-icon","ytp-button"],T:{"aria-haspopup":"true"}});this.overflowButton.hide();g.W(this,this.overflowButton);this.Y=new g.m({G:"text",J:"ytp-featured-product-exclusive-countdown",BI:"{{content}}",T:{id:"exclusiveCountdown","aria-hidden":"true"}});this.Y.hide();g.W(this,this.Y);this.j=new g.m({G:"div",J:"ytp-featured-product-exclusive-container",T:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"}, +W:[{G:"div",J:"ytp-featured-product-exclusive-badge-container",W:[{G:"div",J:"ytp-featured-product-exclusive-badge",W:[{G:"text",J:"ytp-featured-product-exclusive-badge-text",BI:"{{exclusive}}",T:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.Y]});this.j.hide();g.W(this,this.j);this.banner=new g.m({G:"a",J:"ytp-featured-product-container",W:[{G:"div",J:"ytp-featured-product-thumbnail",W:[{G:"img",T:{src:"{{thumbnail}}"}},this.yl]},{G:"div",J:"ytp-featured-product-details",W:[{G:"text",J:"ytp-featured-product-title", +BI:"{{title}}"},this.K.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{G:"div",J:"ytp-featured-product-price-container",T:{"aria-label":"{{priceA11yText}}"},W:[{G:"text",J:"ytp-featured-product-price-when-promotion-text-enabled",BI:"{{price}}",T:{"aria-hidden":"true"}},{G:"text",J:"ytp-featured-product-promotion-text",BI:"{{promotionText}}",T:{"aria-hidden":"true"}}]}:{G:"div",T:{"aria-label":"{{priceA11yText}}"},W:[{G:"text",J:"ytp-featured-product-price",BI:"{{price}}", +T:{"aria-hidden":"true"}},{G:"text",J:"ytp-featured-product-sales-original-price",BI:"{{salesOriginalPrice}}",T:{"aria-hidden":"true"}},{G:"text",J:"ytp-featured-product-price-drop-reference-price",BI:"{{priceDropReferencePrice}}",T:{"aria-hidden":"true"}}]},this.K.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{G:"div",J:"ytp-featured-product-when-promotion-text-enabled",W:[{G:"text",J:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",BI:"{{affiliateDisclaimer}}"}, +this.B,{G:"text",J:"ytp-featured-product-vendor-when-promotion-text-enabled",BI:"{{vendor}}"}]}:{G:"div",W:[{G:"text",J:"ytp-featured-product-affiliate-disclaimer",BI:"{{affiliateDisclaimer}}"},this.K.V("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.j:null,this.B,{G:"text",J:"ytp-featured-product-vendor",BI:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.W(this,this.banner);this.banner.Gv(this.L.element);this.X(this.K,g.Li("featured_product"),this.HA3);this.X(this.K, +g.uc("featured_product"),this.WJ);this.X(this.K,"videodatachange",this.onVideoDataChange);this.X(this.overflowButton.element,"click",this.vA);this.X(Q,"featuredproductdismissed",this.XE)}; +LHc=function(Q){var z,H;Q=(z=Q.Z)==null?void 0:(H=z.bannerData)==null?void 0:H.itemData;var f,b,L;return(Q==null||!Q.affiliateDisclaimer)&&(Q==null?0:(f=Q.exclusivesData)==null?0:f.exclusiveOfferLabelText)&&(Q==null?0:(b=Q.exclusivesData)==null?0:b.expirationTimestampMs)&&(Q==null?0:(L=Q.exclusivesData)==null?0:L.exclusiveOfferCountdownText)?!0:!1}; +Sp9=function(Q){var z,H,f,b,L=(z=Q.Z)==null?void 0:(H=z.bannerData)==null?void 0:(f=H.itemData)==null?void 0:(b=f.exclusivesData)==null?void 0:b.expirationTimestampMs;z=(Number(L)-Date.now())/1E3;if(z>0){if(z<604800){var u,X,v,y;H=(u=Q.Z)==null?void 0:(X=u.bannerData)==null?void 0:(v=X.itemData)==null?void 0:(y=v.exclusivesData)==null?void 0:y.exclusiveOfferCountdownText;if(H!==void 0)for(u=Date.now(),X=g.n(H),v=X.next();!v.done;v=X.next())if(v=v.value,v!==void 0&&v.text!==void 0&&(y=Number(v.textDisplayStartTimestampMs), +!isNaN(y)&&u>=y)){v.insertCountdown?(z=v.text.replace(/\$0/,String(nE({seconds:z}))),Q.Y.UV(z)):Q.Y.UV(v.text);Q.Y.show();break}}var q,M,C,t;Q.j.update({exclusive:(q=Q.Z)==null?void 0:(M=q.bannerData)==null?void 0:(C=M.itemData)==null?void 0:(t=C.exclusivesData)==null?void 0:t.exclusiveOfferLabelText});Q.j.show();X6(Q);var E;(E=Q.Wz)==null||E.start()}else ulJ(Q)}; +ulJ=function(Q){var z;(z=Q.Wz)==null||z.stop();Q.Y.hide();Q.j.hide();vp(Q)}; +XyY=function(Q){var z,H,f=(z=Q.Z)==null?void 0:(H=z.bannerData)==null?void 0:H.itemData;return Q.K.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(f==null||!f.priceReplacementText)&&(f==null?0:f.promotionText)?f==null?void 0:f.promotionText.content:null}; +v5k=function(Q){var z,H,f=(z=Q.Z)==null?void 0:(H=z.bannerData)==null?void 0:H.itemData,b,L;if(!(f!=null&&f.priceReplacementText||Q.K.V("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(f==null?0:(b=f.dealsData)==null?0:(L=b.sales)==null?0:L.originalPrice)){var u,X;return f==null?void 0:(u=f.dealsData)==null?void 0:(X=u.sales)==null?void 0:X.originalPrice}return null}; +yon=function(Q){var z,H,f=(z=Q.Z)==null?void 0:(H=z.bannerData)==null?void 0:H.itemData,b,L,u,X;if(!((f==null?0:f.priceReplacementText)||Q.K.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(f==null?0:(b=f.dealsData)==null?0:(L=b.sales)==null?0:L.originalPrice))&&(f==null?0:(u=f.dealsData)==null?0:(X=u.priceDrop)==null?0:X.referencePrice)){var v,y;return f==null?void 0:(v=f.dealsData)==null?void 0:(y=v.priceDrop)==null?void 0:y.referencePrice}return null}; +qpJ=function(Q){var z,H,f=(z=Q.Z)==null?void 0:(H=z.bannerData)==null?void 0:H.itemData;if(f==null?0:f.priceReplacementText)return f==null?void 0:f.priceReplacementText;if((f==null?0:f.promotionText)&&Q.K.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var b;return(f==null?void 0:f.price)+" "+(f==null?void 0:(b=f.promotionText)==null?void 0:b.content)}var L,u;if(f==null?0:(L=f.dealsData)==null?0:(u=L.sales)==null?0:u.originalPrice){var X,v;return f==null?void 0:(X=f.dealsData)== +null?void 0:(v=X.sales)==null?void 0:v.salesPriceAccessibilityLabel}var y,q;if(f==null?0:(y=f.dealsData)==null?0:(q=y.priceDrop)==null?0:q.referencePrice){var M,C;return(f==null?void 0:f.price)+" "+(f==null?void 0:(M=f.dealsData)==null?void 0:(C=M.priceDrop)==null?void 0:C.referencePrice)}return f==null?void 0:f.price}; +M6Y=function(Q){if(Q.K.V("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var z,H,f;return Q.B.LH?null:(z=Q.Z)==null?void 0:(H=z.bannerData)==null?void 0:(f=H.itemData)==null?void 0:f.vendorName}var b,L,u,X,v,y;return Q.B.LH||Q.j.LH||((b=Q.Z)==null?0:(L=b.bannerData)==null?0:(u=L.itemData)==null?0:u.affiliateDisclaimer)?null:(X=Q.Z)==null?void 0:(v=X.bannerData)==null?void 0:(y=v.itemData)==null?void 0:y.vendorName}; +t6J=function(Q,z){yI(Q);if(z){var H=g.z_.getState().entities;H=yd(H,"featuredProductsEntity",z);if(H!=null&&H.productsData){z=[];H=g.n(H.productsData);for(var f=H.next();!f.done;f=H.next()){f=f.value;var b=void 0;if((b=f)!=null&&b.identifier&&f.featuredSegments){Q.De.push(f);var L=void 0;b=g.n((L=f)==null?void 0:L.featuredSegments);for(L=b.next();!L.done;L=b.next()){var u=L.value;L=C7p(u.startTimeSec);L!==void 0&&(u=C7p(u.endTimeSec),z.push(new g.fi(L*1E3,u===void 0?0x7ffffffffffff:u*1E3,{id:f.identifier, +namespace:"featured_product"})))}}}Q.K.UZ(z)}}}; +vp=function(Q){if(Q.trendingOfferEntityKey){var z=g.z_.getState().entities;if(z=yd(z,"trendingOfferEntity",Q.trendingOfferEntityKey)){var H,f,b;z.encodedSkuId!==((H=Q.Z)==null?void 0:(f=H.bannerData)==null?void 0:(b=f.itemData)==null?void 0:b.encodedOfferSkuId)?X6(Q):(Q.B.update({trendingOffer:z.shortLabel+" \u2022 "+z.countLabel}),Q.B.show(),Q.banner.update({vendor:M6Y(Q)}))}else X6(Q)}else X6(Q)}; +X6=function(Q){Q.B.hide();Q.banner.update({vendor:M6Y(Q)})}; +yI=function(Q){Q.De=[];Q.WJ();Q.K.Ys("featured_product")}; +E5Y=function(Q){var z,H,f,b,L=(z=Q.Z)==null?void 0:(H=z.bannerData)==null?void 0:(f=H.itemData)==null?void 0:(b=f.hiddenProductOptions)==null?void 0:b.dropTimestampMs;z=(Number(L)-Date.now())/1E3;Q.countdownTimer.UV(nE({seconds:z}));if(z>0){var u;(u=Q.Xa)==null||u.start()}}; +pyn=function(Q){var z;(z=Q.Xa)==null||z.stop();Q.countdownTimer.hide()}; +C7p=function(Q){if(Q!==void 0&&Q.trim()!==""&&(Q=Math.trunc(Number(Q.trim())),!(isNaN(Q)||Q<0)))return Q}; +$_p=function(Q,z,H){g.m.call(this,{G:"div",lT:["ytp-info-panel-action-item"],W:[{G:"div",J:"ytp-info-panel-action-item-disclaimer",BI:"{{disclaimer}}"},{G:"a",lT:["ytp-info-panel-action-item-button","ytp-button"],T:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},W:[{G:"div",J:"ytp-info-panel-action-item-icon",BI:"{{icon}}"},{G:"div",J:"ytp-info-panel-action-item-label",BI:"{{label}}"}]}]});this.K=Q;this.Z=H;this.disclaimer=this.Mc("ytp-info-panel-action-item-disclaimer");this.button= +this.Mc("ytp-info-panel-action-item-button");this.EZ=!1;this.K.createServerVe(this.element,this,!0);this.listen("click",this.onClick);Q="";H=g.K(z==null?void 0:z.onTap,cT);var f=g.K(H,g.cf);this.EZ=!1;f?(Q=f.url||"",Q.startsWith("//")&&(Q="https:"+Q),this.EZ=!0,g.BJ(this.button,g.r$(Q))):(f=g.K(H,n59))&&!this.Z?((Q=f.phoneNumbers)&&Q.length>0?(Q="sms:"+Q[0],f.messageText&&(Q+="?&body="+encodeURI(f.messageText))):Q="",this.EZ=!0,g.BJ(this.button,g.r$(Q,[g5a]))):(H=g.K(H,Z0A))&&!this.Z&&(Q=H.phoneNumber? +"tel:"+H.phoneNumber:"",this.EZ=!0,g.BJ(this.button,g.r$(Q,[Gm9])));var b;if(H=(b=z.disclaimerText)==null?void 0:b.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var L;this.update({label:(L=z.bodyText)==null?void 0:L.content,icon:JB(),disclaimer:H})}else{this.disclaimer.style.display="none";var u;this.update({label:(u=z.bodyText)==null?void 0:u.content,icon:JB()})}this.K.setTrackingParams(this.element,z.trackingParams||null);this.EZ&&(this.B={externalLinkData:{url:Q}})}; +j5k=function(Q,z){var H=yR();g.WG.call(this,Q,{G:"div",J:"ytp-info-panel-detail-skrim",W:[{G:"div",J:"ytp-info-panel-detail",T:{role:"dialog",id:H},W:[{G:"div",J:"ytp-info-panel-detail-header",W:[{G:"div",J:"ytp-info-panel-detail-title",BI:"{{title}}"},{G:"button",lT:["ytp-info-panel-detail-close","ytp-button"],T:{"aria-label":"Close"},W:[g.Fp()]}]},{G:"div",J:"ytp-info-panel-detail-body",BI:"{{body}}"},{G:"div",J:"ytp-info-panel-detail-items"}]}]},250);this.Z=z;this.items=this.Mc("ytp-info-panel-detail-items"); +this.L=new g.Pt(this);this.itemData=[];this.D=H;this.X(this.Mc("ytp-info-panel-detail-close"),"click",this.fH);this.X(this.Mc("ytp-info-panel-detail-skrim"),"click",this.fH);this.X(this.Mc("ytp-info-panel-detail"),"click",function(f){f.stopPropagation()}); +g.W(this,this.L);this.K.createServerVe(this.element,this,!0);this.X(Q,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",Q.getVideoData());this.hide()}; +FHA=function(Q,z){Q=g.n(Q.itemData);for(var H=Q.next();!H.done;H=Q.next())H=H.value,H.K.logVisibility(H.element,z)}; +o5A=function(Q,z){g.m.call(this,{G:"div",J:"ytp-info-panel-preview",T:{"aria-live":"assertive","aria-atomic":"true","aria-owns":z.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.O8(Q.C()))},W:[{G:"div",J:"ytp-info-panel-preview-text",BI:"{{text}}"},{G:"div",J:"ytp-info-panel-preview-chevron",BI:"{{chevron}}"}]});var H=this;this.K=Q;this.oy=this.Z=this.videoId=null;this.D=this.showControls=this.B=!1;this.X(this.element,"click",function(){Q.logClick(H.element);Q.F9();KR(z)}); +this.L=new g.fp(this,250,!1,100);g.W(this,this.L);this.K.createServerVe(this.element,this,!0);this.X(Q,"videodatachange",this.onVideoDataChange);this.X(Q,"presentingplayerstatechange",this.p6);this.X(this.K,"paidcontentoverlayvisibilitychange",this.Y5);this.X(this.K,"infopaneldetailvisibilitychange",this.Y5);var f=Q.getVideoData()||{};x_J(f)&&O08(this,f);this.X(Q,"onShowControls",this.Ed);this.X(Q,"onHideControls",this.Ju)}; +O08=function(Q,z){if(!z.uL||!Q.K.l7()){var H=z.o8||1E4,f=x_J(z);Q.Z?z.videoId&&z.videoId!==Q.videoId&&(g.ze(Q.Z),Q.videoId=z.videoId,f?(Jo6(Q,H,z),Q.ir()):(Q.fH(),Q.Z.dispose(),Q.Z=null)):f&&(z.videoId&&(Q.videoId=z.videoId),Jo6(Q,H,z),Q.ir())}}; +x_J=function(Q){var z,H,f,b;return!!((z=Q.sj)==null?0:(H=z.title)==null?0:H.content)||!!((f=Q.sj)==null?0:(b=f.bodyText)==null?0:b.content)}; +Jo6=function(Q,z,H){Q.Z&&Q.Z.dispose();Q.Z=new g.lp(Q.zuT,z,Q);g.W(Q,Q.Z);var f;z=((f=H.sj)==null?void 0:f.trackingParams)||null;Q.K.setTrackingParams(Q.element,z);var b;var L,u;if(H==null?0:(L=H.sj)==null?0:(u=L.title)==null?0:u.content){var X;f=(b=H.sj)==null?void 0:(X=b.title)==null?void 0:X.content;var v,y;if((v=H.sj)==null?0:(y=v.bodyText)==null?0:y.content)f+=" \u2022 ";b=f}else b="";var q,M;H=((q=H.sj)==null?void 0:(M=q.bodyText)==null?void 0:M.content)||"";Q.update({text:b+H,chevron:g.jE()})}; +NuJ=function(Q,z){Q.Z&&(g.w(z,8)?(Q.B=!0,Q.ir(),Q.Z.start()):(g.w(z,2)||g.w(z,64))&&Q.videoId&&(Q.videoId=null))}; +qg=function(Q){var z=null;try{z=Q.toLocaleString("en",{style:"percent"})}catch(H){z=Q.toLocaleString(void 0,{style:"percent"})}return z}; +Mg=function(Q,z){var H=0;Q=g.n(Q);for(var f=Q.next();!(f.done||f.value.startTime>z);f=Q.next())H++;return H===0?H:H-1}; +IBk=function(Q,z){for(var H=0,f=g.n(Q),b=f.next();!b.done;b=f.next()){b=b.value;if(z=b.timeRangeStartMillis&&z0?z[0]:null;var H=g.ea("ytp-chrome-bottom"),f=g.ea("ytp-ad-module");Q.D=!(H==null||!H.contains(z));Q.N=!(f==null||!f.contains(z));Q.U=!(z==null||!z.hasAttribute("data-tooltip-target-fixed"));return z}; +m_8=function(Q,z,H){if(!Q.j){if(z){Q.tooltipRenderer=z;z=Q.tooltipRenderer.text;var f=!1,b;(z==null?0:(b=z.runs)==null?0:b.length)&&z.runs[0].text&&(Q.update({title:z.runs[0].text.toString()}),f=!0);g.Oi(Q.title,f);z=Q.tooltipRenderer.detailsText;b=!1;var L;if((z==null?0:(L=z.runs)==null?0:L.length)&&z.runs[0].text){f=z.runs[0].text.toString();L=f.indexOf("$TARGET_ICON");if(L>-1)if(Q.tooltipRenderer.targetId){z=[];f=f.split("$TARGET_ICON");var u=new g.qt({G:"span",J:"ytp-promotooltip-details-icon", +W:[V6c[Q.tooltipRenderer.targetId]]});g.W(Q,u);for(var X=[],v=g.n(f),y=v.next();!y.done;y=v.next())y=new g.qt({G:"span",J:"ytp-promotooltip-details-component",BI:y.value}),g.W(Q,y),X.push(y);f.length===2?(z.push(X[0].element),z.push(u.element),z.push(X[1].element)):f.length===1&&(L===0?(z.push(u.element),z.push(X[0].element)):(z.push(X[0].element),z.push(u.element)));L=z.length?z:null}else L=null;else L=f;if(L){if(typeof L!=="string")for(g.uT(Q.details),b=g.n(L),L=b.next();!L.done;L=b.next())Q.details.appendChild(L.value); +else Q.update({details:L});b=!0}}g.Oi(Q.details,b);b=Q.tooltipRenderer.acceptButton;L=!1;var q,M,C;((q=g.K(b,g.Pc))==null?0:(M=q.text)==null?0:(C=M.runs)==null?0:C.length)&&g.K(b,g.Pc).text.runs[0].text&&(Q.update({acceptButtonText:g.K(b,g.Pc).text.runs[0].text.toString()}),L=!0);g.Oi(Q.acceptButton,L);q=Q.tooltipRenderer.dismissButton;M=!1;var t,E,G;((t=g.K(q,g.Pc))==null?0:(E=t.text)==null?0:(G=E.runs)==null?0:G.length)&&g.K(q,g.Pc).text.runs[0].text&&(Q.update({dismissButtonText:g.K(q,g.Pc).text.runs[0].text.toString()}), +M=!0);g.Oi(Q.dismissButton,M)}H&&(Q.L=H);Q.Z=KHZ(Q);Q.Y=!1;Q.K.C().V("web_player_hide_nitrate_promo_tooltip")||Q.Ho(!0);d_p(Q);Q.LH&&!Q.Ze&&(Q.Ze=!0,Q.Po.My(0));Q.B&&Q.K.logVisibility(Q.element,Q.LH)}}; +ZH=function(Q){Q.Ho(!1);Q.B&&Q.K.logVisibility(Q.element,Q.LH)}; +wya=function(Q){var z,H,f,b=((z=g.K(Q.acceptButton,g.Pc))==null?void 0:(H=z.text)==null?void 0:(f=H.runs)==null?void 0:f.length)&&!!g.K(Q.acceptButton,g.Pc).text.runs[0].text,L,u,X;z=((L=g.K(Q.dismissButton,g.Pc))==null?void 0:(u=L.text)==null?void 0:(X=u.runs)==null?void 0:X.length)&&!!g.K(Q.dismissButton,g.Pc).text.runs[0].text;return b||z}; +d_p=function(Q){var z;if(!(z=!Q.Z)){z=Q.Z;var H=window.getComputedStyle(z);z=H.display==="none"||H.visibility==="hidden"||z.getAttribute("aria-hidden")==="true"}if(z||Q.K.isMinimized())Q.Ho(!1);else if(z=g.xe(Q.Z),z.width&&z.height){Q.K.Bp(Q.element,Q.Z);var f=Q.K.Un().getPlayerSize().height;H=g.xe(Q.Mc("ytp-promotooltip-container")).height;Q.D?Q.element.style.top=f-H-z.height-12+"px":Q.U||(f=Q.K.A8().height-H-z.height-12,Q.element.style.top=f+"px");f=Q.Mc("ytp-promotooltip-pointer");var b=g.j$(Q.Z, +Q.K.getRootNode()),L=Number(Q.element.style.left.replace(/[^\d\.]/g,""));Q=Q.K.isFullscreen()?18:12;f.style.left=b.x-L+z.width/2-Q+"px";f.style.top=H+"px"}else Q.Ho(!1)}; +Gf=function(Q){g.m.call(this,{G:"button",lT:["ytp-replay-button","ytp-button"],T:{title:"Replay"},W:[g.Iv()]});this.K=Q;this.X(Q,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.Ni(Q.getPlayerStateObject());x1(this.K,this.element,this)}; +$z=function(Q,z){z=z===void 0?240:z;g.m.call(this,{G:"button",lT:["ytp-button","ytp-search-button"],T:{title:"Search","data-tooltip-opaque":String(g.O8(Q.C()))},W:[{G:"div",J:"ytp-search-icon",BI:"{{icon}}"},{G:"div",J:"ytp-search-title",BI:"Search"}]});this.api=Q;this.B=z;this.visible=!1;this.updateValue("icon",{G:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},W:[{G:"path",J:"ytp-svg-fill",T:{d:"M21.24,19.83l-5.64-5.64C16.48,13.02,17,11.57,17,10c0-3.87-3.13-7-7-7s-7,3.13-7,7c0,3.87,3.13,7,7,7 c1.57,0,3.02-0.52,4.19-1.4l5.64,5.64L21.24,19.83z M5,10c0-2.76,2.24-5,5-5s5,2.24,5,5c0,2.76-2.24,5-5,5S5,12.76,5,10z"}}]}); +Q.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.Z();this.X(Q,"appresize",this.Z);this.X(Q,"videodatachange",this.Z);x1(Q,this.element,this)}; +g.jO=function(Q,z,H,f){f=f===void 0?240:f;g.m.call(this,{G:"button",lT:["ytp-button","ytp-share-button"],T:{title:"Share","aria-haspopup":"true","aria-owns":H.element.id,"data-tooltip-opaque":String(g.O8(Q.C()))},W:[{G:"div",J:"ytp-share-icon",BI:"{{icon}}"},{G:"div",J:"ytp-share-title",BI:"Share"}]});this.api=Q;this.Z=z;this.L=H;this.D=f;this.B=this.visible=!1;this.tooltip=this.Z.xJ();Q.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.X(Q,"videodatachange",this.Jh); +this.X(Q,"videoplayerreset",this.Jh);this.X(Q,"appresize",this.Jh);this.X(Q,"presentingplayerstatechange",this.Jh);this.Jh();this.addOnDisposeCallback(g.Fv(this.tooltip,this.element))}; +km9=function(Q){var z=Q.api.C(),H=Q.api.getVideoData(),f=g.O8(z)&&g.Af(Q.api)&&g.w(Q.api.getPlayerStateObject(),128);z=z.L||z.disableSharing&&Q.api.getPresentingPlayerType()!==2||!H.showShareButton||H.Sl||f||g.HG(H)||Q.B;f=Q.api.Un().getPlayerSize().width;return!!H.videoId&&f>=Q.D&&!z}; +Tu6=function(Q,z){z.name!=="InvalidStateError"&&z.name!=="AbortError"&&(z.name==="NotAllowedError"?(Q.Z.F9(),KR(Q.L,Q.element,!1)):g.PT(z))}; +lBc=function(Q,z){var H=yR(),f=Q.C();H={G:"div",J:"ytp-share-panel",T:{id:yR(),role:"dialog","aria-labelledby":H},W:[{G:"div",J:"ytp-share-panel-inner-content",W:[{G:"div",J:"ytp-share-panel-title",T:{id:H},BI:"Share"},{G:"a",lT:["ytp-share-panel-link","ytp-no-contextmenu"],T:{href:"{{link}}",target:f.U,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},BI:"{{linkText}}"},{G:"label",J:"ytp-share-panel-include-playlist",W:[{G:"input",J:"ytp-share-panel-include-playlist-checkbox",T:{type:"checkbox", +checked:"true"}},"Include playlist"]},{G:"div",J:"ytp-share-panel-loading-spinner",W:[X1()]},{G:"div",J:"ytp-share-panel-service-buttons",BI:"{{buttons}}"},{G:"div",J:"ytp-share-panel-error",BI:"An error occurred while retrieving sharing information. Please try again later."}]},{G:"button",lT:["ytp-share-panel-close","ytp-button"],T:{title:"Close"},W:[g.Fp()]}]};g.WG.call(this,Q,H,250);var b=this;this.moreButton=null;this.api=Q;this.tooltip=z.xJ();this.L=[];this.j=this.Mc("ytp-share-panel-inner-content"); +this.closeButton=this.Mc("ytp-share-panel-close");this.X(this.closeButton,"click",this.fH);this.addOnDisposeCallback(g.Fv(this.tooltip,this.closeButton));this.D=this.Mc("ytp-share-panel-include-playlist-checkbox");this.X(this.D,"click",this.Jh);this.Z=this.Mc("ytp-share-panel-link");this.addOnDisposeCallback(g.Fv(this.tooltip,this.Z));this.api.createClientVe(this.Z,this,164503);this.X(this.Z,"click",function(L){L.preventDefault();b.api.logClick(b.Z);var u=b.api.getVideoUrl(!0,!0,!1,!1);u=eNn(b,u); +g.Sf(u,b.api,L)&&b.api.F$("SHARE_CLICKED")}); +this.listen("click",this.uo);this.X(Q,"videoplayerreset",this.hide);this.X(Q,"fullscreentoggled",this.onFullscreenToggled);this.X(Q,"onLoopRangeChange",this.YYh);this.hide()}; +QSL=function(Q,z){RNu(Q);for(var H=z.links||z.shareTargets,f=0,b={},L=0;L'),(G=t.document)&&G.write&&(G.write(UK(E)),G.close()))):((t=g.cJ(t,G,C,r))&&E.noopener&&(t.opener=null),t&&E.noreferrer&&(t.opener=null));t&&(t.opener||(t.opener=window),t.focus());M.preventDefault()}}}(b)); +b.Rs.addOnDisposeCallback(g.Fv(Q.tooltip,b.Rs.element));X==="Facebook"?Q.api.createClientVe(b.Rs.element,b.Rs,164504):X==="Twitter"&&Q.api.createClientVe(b.Rs.element,b.Rs,164505);Q.X(b.Rs.element,"click",function(q){return function(){Q.api.logClick(q.Rs.element)}}(b)); +Q.api.logVisibility(b.Rs.element,!0);Q.L.push(b.Rs);f++}}var v=z.more||z.moreLink,y=new g.m({G:"a",lT:["ytp-share-panel-service-button","ytp-button"],W:[{G:"span",J:"ytp-share-panel-service-button-more",W:[{G:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},W:[{G:"rect",T:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{G:"path",T:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z", +fill:"#4e4e4f","fill-rule":"evenodd"}}]}]}],T:{href:v,target:"_blank",title:"More"}});y.listen("click",function(q){var M=v;Q.api.logClick(Q.moreButton.element);M=eNn(Q,M);g.Sf(M,Q.api,q)&&Q.api.F$("SHARE_CLICKED")}); +y.addOnDisposeCallback(g.Fv(Q.tooltip,y.element));Q.api.createClientVe(y.element,y,164506);Q.X(y.element,"click",function(){Q.api.logClick(y.element)}); +Q.api.logVisibility(y.element,!0);Q.L.push(y);Q.moreButton=y;Q.updateValue("buttons",Q.L)}; +eNn=function(Q,z){var H={};g.O8(Q.api.C())&&(g.qW(Q.api,"addEmbedsConversionTrackingParams",[H]),z=g.de(z,H));return z}; +RNu=function(Q){for(var z=g.n(Q.L),H=z.next();!H.done;H=z.next())H=H.value,H.detach(),g.Xx(H);Q.L=[]}; +F6=function(Q){return Q===void 0||Q.startSec===void 0||Q.endSec===void 0?!1:!0}; +zdY=function(Q,z){Q.startSec+=z;Q.endSec+=z}; +fXv=function(Q){Np.call(this,Q);this.B=this.Z=this.isContentForward=this.Y=!1;HXv(this);this.X(this.K,"changeProductsInVideoVisibility",this.SZn);this.X(this.K,"videodatachange",this.onVideoDataChange)}; +bXn=function(Q){Q.j&&Q.f3.element.removeChild(Q.j.element);Q.j=void 0}; +uQa=function(Q,z){return z.map(function(H){var f,b;if((H=(f=g.K(H,LP_))==null?void 0:(b=f.thumbnail)==null?void 0:b.thumbnails)&&H.length!==0)return H[0].url}).filter(function(H){return H!==void 0}).map(function(H){H=new g.m({G:"img", +J:"ytp-suggested-action-product-thumbnail",T:{alt:"",src:H}});g.W(Q,H);return H})}; +SjY=function(Q,z){Q.isContentForward=z;g.MP(Q.badge.element,"ytp-suggested-action-badge-content-forward",z)}; +xz=function(Q){var z=Q.isContentForward&&!Q.pj();g.MP(Q.badge.element,"ytp-suggested-action-badge-preview-collapsed",z&&Q.Z);g.MP(Q.badge.element,"ytp-suggested-action-badge-preview-expanded",z&&Q.B)}; +OO=function(Q,z,H){return new g.fi(Q*1E3,z*1E3,{priority:9,namespace:H})}; +XlA=function(Q){Q.K.Ys("shopping_overlay_visible");Q.K.Ys("shopping_overlay_preview_collapsed");Q.K.Ys("shopping_overlay_preview_expanded");Q.K.Ys("shopping_overlay_expanded")}; +HXv=function(Q){Q.X(Q.K,g.Li("shopping_overlay_visible"),function(){Q.Ox(!0)}); +Q.X(Q.K,g.uc("shopping_overlay_visible"),function(){Q.Ox(!1)}); +Q.X(Q.K,g.Li("shopping_overlay_expanded"),function(){Q.wh=!0;Jz(Q)}); +Q.X(Q.K,g.uc("shopping_overlay_expanded"),function(){Q.wh=!1;Jz(Q)}); +Q.X(Q.K,g.Li("shopping_overlay_preview_collapsed"),function(){Q.Z=!0;xz(Q)}); +Q.X(Q.K,g.uc("shopping_overlay_preview_collapsed"),function(){Q.Z=!1;xz(Q)}); +Q.X(Q.K,g.Li("shopping_overlay_preview_expanded"),function(){Q.B=!0;xz(Q)}); +Q.X(Q.K,g.uc("shopping_overlay_preview_expanded"),function(){Q.B=!1;xz(Q)})}; +qja=function(Q){g.m.call(this,{G:"div",J:"ytp-shorts-title-channel",W:[{G:"a",J:"ytp-shorts-title-channel-logo",T:{href:"{{channelLink}}",target:Q.C().U,"aria-label":"{{channelLogoLabel}}"}},{G:"div",J:"ytp-shorts-title-expanded-heading",W:[{G:"div",J:"ytp-shorts-title-expanded-title",W:[{G:"a",BI:"{{expandedTitle}}",T:{href:"{{channelTitleLink}}",target:Q.C().U,tabIndex:"0"}}]}]}]});var z=this;this.api=Q;this.Z=this.Mc("ytp-shorts-title-channel-logo");this.channelName=this.Mc("ytp-shorts-title-expanded-title"); +this.subscribeButton=null;Q.createClientVe(this.Z,this,36925);this.X(this.Z,"click",function(H){z.api.logClick(z.Z);g.cJ(window,v8_(z));H.preventDefault()}); +Q.createClientVe(this.channelName,this,37220);this.X(this.channelName,"click",function(H){z.api.logClick(z.channelName);g.cJ(window,v8_(z));H.preventDefault()}); +ygA(this);this.X(Q,"videodatachange",this.Jh);this.X(Q,"videoplayerreset",this.Jh);this.Jh()}; +ygA=function(Q){if(!Q.api.C().UY){var z=Q.api.getVideoData(),H=new g.QI("Subscribe",null,"Subscribed",null,!0,!1,z.HG,z.subscribed,"channel_avatar",null,Q.api,!0);Q.api.createServerVe(H.element,Q);var f;Q.api.setTrackingParams(H.element,((f=z.subscribeButtonRenderer)==null?void 0:f.trackingParams)||null);Q.X(H.element,"click",function(){Q.api.logClick(H.element)}); +Q.subscribeButton=H;g.W(Q,Q.subscribeButton);Q.subscribeButton.Gv(Q.element)}}; +v8_=function(Q){var z=Q.api.C(),H=Q.api.getVideoData();H=g.zZ(z)+H.KH;if(!g.O8(z))return H;z={};g.qW(Q.api,"addEmbedsConversionTrackingParams",[z]);return g.de(H,z)}; +oC=function(Q){g.WG.call(this,Q,{G:"button",lT:["ytp-skip-intro-button","ytp-popup","ytp-button"],W:[{G:"div",J:"ytp-skip-intro-button-text",BI:"Skip Intro"}]},100);var z=this;this.L=!1;this.Z=new g.lp(function(){z.hide()},5E3); +this.h$=this.A5=NaN;g.W(this,this.Z);this.Y=function(){z.show()}; +this.j=function(){z.hide()}; +this.D=function(){var H=z.K.getCurrentTime();H>z.A5/1E3&&H0?{G:"svg",T:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},W:[{G:"path",lT:["ytp-circle-arrow","ytp-svg-fill"],T:{d:"m19,12c0,2.1 -0.93,4.07 -2.55,5.4c-1.62,1.34 -3.76,1.87 -5.86,1.46c-2.73,-0.53 -4.92,-2.72 -5.45,-5.45c-0.41,-2.1 .12,-4.24 1.46,-5.86c1.33,-1.62 3.3,-2.55 5.4,-2.55l1.27,0l-0.85,.85l1.41,1.41l3.35,-3.35l-3.35,-3.35l-1.41,1.41l1.01,1.03l-1.43,0c-2.7,0 -5.23,1.19 -6.95,3.28c-1.72,2.08 -2.4,4.82 -1.88,7.52c0.68,3.52 3.51,6.35 7.03,7.03c0.6,.11 1.19,.17 1.78,.17c2.09,0 4.11,-0.71 5.74,-2.05c2.09,-1.72 3.28,-4.25 3.28,-6.95l-2,0z"}}, +{G:"text",lT:["ytp-jump-button-text","ytp-svg-fill"],T:{x:"7.05",y:"15.05"}}]}:{G:"svg",T:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},W:[{G:"path",lT:["ytp-circle-arrow","ytp-svg-fill"],T:{d:"m18.95,6.28c-1.72,-2.09 -4.25,-3.28 -6.95,-3.28l-1.43,0l1.02,-1.02l-1.41,-1.41l-3.36,3.35l3.35,3.35l1.41,-1.41l-0.85,-0.86l1.27,0c2.1,0 4.07,.93 5.4,2.55c1.34,1.62 1.87,3.76 1.46,5.86c-0.53,2.73 -2.72,4.92 -5.45,5.45c-2.11,.41 -4.24,-0.12 -5.86,-1.46c-1.62,-1.33 -2.55,-3.3 -2.55,-5.4l-2,0c0,2.7 1.19,5.23 3.28,6.95c1.62,1.34 3.65,2.05 5.74,2.05c0.59,0 1.19,-0.06 1.78,-0.17c3.52,-0.68 6.35,-3.51 7.03,-7.03c0.52,-2.7 -0.17,-5.44 -1.88,-7.52z"}}, +{G:"text",lT:["ytp-jump-button-text","ytp-svg-fill"],T:{x:"6.5",y:"15"}}]}]});var H=this;this.K=Q;this.Z=z;this.B=new g.lp(function(){H.L?(H.L=!1,H.B.start()):H.element.classList.remove("ytp-jump-spin","backwards")},250); +this.L=!1;(z=z>0)?this.K.createClientVe(this.element,this,36843):this.K.createClientVe(this.element,this,36844);var f=g.pi(z?"Seek forward $SECONDS seconds. (\u2192)":"Seek backwards $SECONDS seconds. (\u2190)",{SECONDS:Math.abs(this.Z).toString()});this.update({title:f,"data-title-no-tooltip":f,"aria-keyshortcuts":z?"\u2192":"\u2190"});this.D=this.element.querySelector(".ytp-jump-button-text");this.D.textContent=Math.abs(this.Z).toString();this.listen("click",this.onClick,this);x1(Q,this.element, +this)}; +g8Y=function(Q,z){z?Q.element.classList.add("ytp-jump-button-enabled"):Q.element.classList.remove("ytp-jump-button-enabled");Q.K.logVisibility(Q.element,z);Q.K.UX()}; +rb=function(Q,z){Ng.call(this,Q,z,"timedMarkerCueRange","View key moments");this.X(Q,g.uc("timedMarkerCueRange"),this.A7);this.X(Q,"updatemarkervisibility",this.updateVideoData)}; +ZXa=function(Q){var z,H=(z=Q.K.getVideoData())==null?void 0:z.ZJ;if(H)for(Q=Q.D.mq,H=g.n(H),z=H.next();!z.done;z=H.next())if(z=Q[z.value]){var f=void 0,b=void 0,L=void 0;if(((f=z.onTap)==null?void 0:(b=f.innertubeCommand)==null?void 0:(L=b.changeEngagementPanelVisibilityAction)==null?void 0:L.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return z}}; +sO=function(Q){var z=Q.V("web_enable_pip_on_miniplayer");g.m.call(this,{G:"button",lT:["ytp-miniplayer-button","ytp-button"],T:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"6","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},W:[z?{G:"svg",T:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},W:[{G:"g",T:{transform:"translate(96, -96) scale(0.8)"},W:[{G:"path",w4:!0,T:{d:"M96-480v-72h165L71-743l50-50 191 190v-165h72v288H96Zm72 288q-29.7 0-50.85-21.15Q96-234.3 96-264v-144h72v144h336v72H168Zm624-264v-240H456v-72h336q29.7 0 50.85 21.15Q864-725.7 864-696v240h-72ZM576-192v-192h288v192H576Z"}}]}]}: +P0n()]});this.K=Q;this.visible=!1;this.listen("click",this.onClick);this.X(Q,"fullscreentoggled",this.Jh);this.updateValue("title",g.OZ(Q,"Miniplayer","i"));this.update({"data-title-no-tooltip":"Miniplayer"});x1(Q,this.element,this);Q.createClientVe(this.element,this,62946);this.Jh()}; +Bp=function(Q,z,H){H=H===void 0?!1:H;g.m.call(this,{G:"button",lT:["ytp-mute-button","ytp-button"],T:Q.C().mq?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}"}:{"aria-disabled":"true","aria-haspopup":"true"},BI:"{{icon}}"});this.K=Q;this.yl=H;this.Z=null;this.D=this.U=this.j=this.wh=NaN;this.L3=this.Y=null;this.L=[];this.B=[];this.visible=!1;this.N=null;Q.V("delhi_modern_web_player")&&this.update({"data-priority":3}); +H=this.K.C();this.updateValue("icon",rs());this.tooltip=z.xJ();this.Z=new g.qt({G:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"defs",W:[{G:"clipPath",T:{id:"ytp-svg-volume-animation-mask"},W:[{G:"path",T:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{G:"path",T:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{G:"path",J:"ytp-svg-volume-animation-mover",T:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{G:"clipPath",T:{id:"ytp-svg-volume-animation-slash-mask"}, +W:[{G:"path",J:"ytp-svg-volume-animation-mover",T:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{G:"path",w4:!0,lT:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],T:{"clip-path":"url(#ytp-svg-volume-animation-mask)",d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{G:"path",w4:!0,lT:["ytp-svg-fill","ytp-svg-volume-animation-hider"],T:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)", +d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z",fill:"#fff"}}]});g.W(this,this.Z);this.Y=this.Z.Mc("ytp-svg-volume-animation-speaker");this.L3=this.Y.getAttribute("d");this.L=g.mS("ytp-svg-volume-animation-mover",this.Z.element);this.B=g.mS("ytp-svg-volume-animation-hider",this.Z.element);this.De=new HE;g.W(this,this.De);this.Ze=new HE;g.W(this,this.Ze);this.listen("click",this.zah);this.X(Q,"appresize",this.Zb);this.X(Q,"onVolumeChange",this.onVolumeChange);var f=null;H.mq?this.addOnDisposeCallback(g.Fv(z.xJ(), +this.element)):(z="Your browser doesn't support changing the volume. $BEGIN_LINKLearn More$END_LINK".split(/\$(BEGIN|END)_LINK/),f=new g.WG(Q,{G:"span",lT:["ytp-popup","ytp-generic-popup"],T:{tabindex:"0"},W:[z[0],{G:"a",T:{href:"https://support.google.com/youtube/?p=noaudio",target:H.U},BI:z[2]},z[4]]},100,!0),g.W(this,f),f.hide(),f.subscribe("show",function(b){Q.Hd(f,b)}),g.BG(Q,f.element,4)); +this.message=f;Q.createClientVe(this.element,this,28662);this.Zb(Q.Un().getPlayerSize());this.setVolume(Q.getVolume(),Q.isMuted())}; +jS_=function(Q,z){Q.wh=z;var H=Q.L3;z&&(H+=KMA(Gop,$iL,z));Q.Y.setAttribute("d",H)}; +FP_=function(Q,z){Q.U=z;for(var H=20*z,f=0;f=3&&Q.K.getPresentingPlayerType()!==2}; +NxL=function(Q){var z=Ig(Q.K.xt());return z?Q.Z?z.Yr():z.bz():!1}; +OXv=function(Q){var z={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},H=Q.playlist!=null&&Q.playlist.Yr();H=g.Af(Q.K)&&(!Q.Z||H);var f=Q.Z&&g.PG(Q.K),b=NxL(Q),L=Q.Z&&Q.K.getPresentingPlayerType()===5,u=g.OZ(Q.K,"Next","SHIFT+n"),X=g.OZ(Q.K,"Previous","SHIFT+p");if(L)z.title="Start video";else if(Q.L)z.title="Replay";else if(H){var v=null;Q.playlist&&(v=g.Eu(Q.playlist,Q.Z?x89(Q.playlist):OOn(Q.playlist)));if(v){if(v.videoId){var y=Q.playlist.listId; +z.url=Q.K.C().getVideoUrl(v.videoId,y?y.toString():void 0)}z.text=v.title;z.duration=v.lengthText?v.lengthText:v.lengthSeconds?g.Ox(v.lengthSeconds):null;z.preview=v.MP("mqdefault.jpg")}Q.Z?(z.title=u,z["data-title-no-tooltip"]="Next",z["aria-keyshortcuts"]="SHIFT+n"):(z.title=X,z["data-title-no-tooltip"]="Previous",z["aria-keyshortcuts"]="SHIFT+p")}else if(f){if(X=(v=Q.videoData)==null?void 0:g.RZ(v))z.url=X.ma(),z.text=X.title,z.duration=X.lengthText?X.lengthText:X.lengthSeconds?g.Ox(X.lengthSeconds): +null,z.preview=X.MP("mqdefault.jpg");z.title=u;z["data-title-no-tooltip"]="Next";z["aria-keyshortcuts"]="SHIFT+n"}z.disabled=!f&&!H&&!b&&!L;Q.update(z);Q.Y=!!z.url;f||H||Q.L||b||L?Q.B||(Q.B=g.Fv(Q.tooltip,Q.element),Q.j=Q.listen("click",Q.onClick,Q)):Q.B&&(Q.B(),Q.B=null,Q.DS(Q.j),Q.j=null);Q.tooltip.UX();g.MP(Q.element,"ytp-playlist-ui",Q.Z&&H)}; +AgJ=function(Q,z){g.m.call(this,{G:"div",J:"ytp-fine-scrubbing",W:[{G:"div",J:"ytp-fine-scrubbing-draggable",W:[{G:"div",J:"ytp-fine-scrubbing-thumbnails",T:{tabindex:"0",role:"slider",type:"range","aria-label":"Click or scroll the panel for the precise seeking.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{G:"div",T:{"aria-hidden":"true"},J:"ytp-fine-scrubbing-cursor"},{G:"div",J:"ytp-fine-scrubbing-seek-time",T:{"aria-hidden":"true"}, +BI:"{{seekTime}}"},{G:"div",J:"ytp-fine-scrubbing-play",W:[Nt()],T:{title:"Play from this position",role:"button"}},{G:"div",J:"ytp-fine-scrubbing-dismiss",W:[g.Fp()],T:{title:"Exit precise seeking",role:"button"}}]});var H=this;this.api=Q;this.j=this.Mc("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.Mc("ytp-fine-scrubbing-dismiss");this.L3=this.Mc("ytp-fine-scrubbing-draggable");this.playButton=this.Mc("ytp-fine-scrubbing-play");this.thumbnails=[];this.B=[];this.jm=this.Z=0;this.f3=void 0; +this.Ze=NaN;this.mq=this.U=this.L=this.N=0;this.D=[];this.interval=this.frameCount=0;this.Y=160;this.scale=1;this.En=0;this.isEnabled=this.yl=!1;IX6(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.Fv(z,this.dismissButton));this.addOnDisposeCallback(g.Fv(z,this.playButton));this.De=new g.KL(this.L3,!0);this.De.subscribe("dragstart",this.zM,this);this.De.subscribe("dragmove",this.xk,this);this.De.subscribe("dragend",this.N1,this);this.X(Q,"SEEK_COMPLETE",this.cE);Q.V("web_fix_fine_scrubbing_false_play")&& +this.X(Q,"rootnodemousedown",function(f){H.wh=f}); +this.j.addEventListener("keydown",function(){}); +g.W(this,this.De);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.j,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; +IX6=function(Q,z){var H=g.Ox(z),f=g.pi("Seek to $PROGRESS",{PROGRESS:g.Ox(z,!0)});Q.update({ariamin:0,ariamax:Math.floor(Q.api.getDuration()),arianow:Math.floor(z),arianowtext:f,seekTime:H})}; +Yj_=function(Q){Q.Ze=NaN;Q.U=0;Q.N=Q.L}; +BxY=function(Q){var z=Q.api.HU();if(z){var H=90*Q.scale,f=PV(z,160*Q.scale);if(z=z.levels[f]){Q.Y=z.width;if(!Q.D.length){f=[];for(var b=aZ(z,z.qT()),L=z.columns*z.rows,u=z.frameCount,X=0;X<=b;X++)for(var v=uQ.D.length;)f= +void 0,(f=Q.thumbnails.pop())==null||f.dispose();for(;Q.thumbnails.lengthH.length;)f=void 0,(f=Q.B.pop())==null||f.dispose(); +for(;Q.B.length-H?-z/H*Q.interval*.5:-(z+H/2)/H*Q.interval}; +PyJ=function(Q){return-((Q.j.offsetWidth||(Q.frameCount-1)*Q.Y*Q.scale)-Q.Z/2)}; +rgY=function(){g.m.call(this,{G:"div",J:"ytp-fine-scrubbing-thumbnail"})}; +sSA=function(){g.m.call(this,{G:"div",J:"ytp-fine-scrubbing-chapter-title",W:[{G:"div",J:"ytp-fine-scrubbing-chapter-title-content",BI:"{{chapterTitle}}"}]})}; +UiA=function(Q){g.m.call(this,{G:"div",J:"ytp-heat-map-chapter",W:[{G:"svg",J:"ytp-heat-map-svg",T:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},W:[{G:"defs",W:[{G:"clipPath",T:{id:"{{id}}"},W:[{G:"path",J:"ytp-heat-map-path",T:{d:"",fill:"white"}}]},{G:"linearGradient",T:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},W:[{G:"stop",T:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{G:"stop",T:{offset:"100%", +"stop-color":"white","stop-opacity":"0"}}]}]},{G:"rect",J:"ytp-heat-map-graph",T:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{G:"rect",J:"ytp-heat-map-hover",T:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{G:"rect",J:"ytp-heat-map-play",T:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{G:"path",J:"ytp-modern-heat-map",T:{d:"",fill:"url(#ytp-heat-map-gradient-def)",height:"100%", +stroke:"white","stroke-opacity":"0.7","stroke-width":"2px",style:"display: none;",width:"100%",x:"0",y:"0"}}]}]});this.api=Q;this.N=this.Mc("ytp-heat-map-svg");this.j=this.Mc("ytp-heat-map-path");this.D=this.Mc("ytp-heat-map-graph");this.Y=this.Mc("ytp-heat-map-play");this.Z=this.Mc("ytp-heat-map-hover");this.L=this.Mc("ytp-modern-heat-map");this.EZ=!1;this.B=60;Q=""+g.eY(this);this.update({id:Q});Q="url(#"+Q+")";this.D.setAttribute("clip-path",Q);this.Y.setAttribute("clip-path",Q);this.Z.setAttribute("clip-path", +Q)}; +cga=function(Q,z){z>0&&(Q.B=z,Q.N.style.height=Q.B+"px")}; +cp=function(){g.m.call(this,{G:"div",J:"ytp-chapter-hover-container",W:[{G:"div",J:"ytp-progress-bar-padding"},{G:"div",J:"ytp-progress-list",W:[{G:"div",lT:["ytp-play-progress","ytp-swatch-background-color"]},{G:"div",J:"ytp-progress-linear-live-buffer"},{G:"div",J:"ytp-load-progress"},{G:"div",J:"ytp-hover-progress"},{G:"div",J:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.B=this.Mc("ytp-progress-list");this.j=this.Mc("ytp-progress-linear-live-buffer"); +this.D=this.Mc("ytp-ad-progress-list");this.Y=this.Mc("ytp-load-progress");this.N=this.Mc("ytp-play-progress");this.L=this.Mc("ytp-hover-progress");this.Z=this.Mc("ytp-chapter-hover-container")}; +is=function(Q,z){g.M2(Q.Z,"width",z)}; +iXZ=function(Q,z){g.M2(Q.Z,"margin-right",z+"px")}; +hd6=function(){this.B=this.position=this.L=this.Z=this.D=this.width=NaN}; +WPJ=function(){g.m.call(this,{G:"div",J:"ytp-timed-marker"});this.Z=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; +g.Wp=function(Q,z){g.tB.call(this,{G:"div",J:"ytp-progress-bar-container",T:{"aria-disabled":"true"},W:[{G:"div",lT:["ytp-heat-map-container"],W:[{G:"div",J:"ytp-heat-map-edu"}]},{G:"div",lT:["ytp-progress-bar"],T:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},W:[{G:"div",J:"ytp-chapters-container"},{G:"div",J:"ytp-timed-markers-container"},{G:"div",J:"ytp-clip-start-exclude"}, +{G:"div",J:"ytp-clip-end-exclude"},{G:"div",J:"ytp-scrubber-container",W:[{G:"div",lT:["ytp-scrubber-button","ytp-swatch-background-color"],W:[{G:"div",J:"ytp-scrubber-pull-indicator"},{G:"img",lT:["ytp-decorated-scrubber-button"]}]}]}]},{G:"div",lT:["ytp-fine-scrubbing-container"],W:[{G:"div",J:"ytp-fine-scrubbing-edu"}]},{G:"div",J:"ytp-bound-time-left",BI:"{{boundTimeLeft}}"},{G:"div",J:"ytp-bound-time-right",BI:"{{boundTimeRight}}"},{G:"div",J:"ytp-clip-start",T:{title:"{{clipstarttitle}}"},BI:"{{clipstarticon}}"}, +{G:"div",J:"ytp-clip-end",T:{title:"{{clipendtitle}}"},BI:"{{clipendicon}}"}]});this.api=Q;this.sj=!1;this.QN=this.LA=this.iT=this.j=this.uL=0;this.Tx=null;this.Bc=!1;this.jm={};this.EY={};this.clipEnd=Infinity;this.KH=this.Mc("ytp-clip-end");this.UY=new g.KL(this.KH,!0);this.Wz=this.Mc("ytp-clip-end-exclude");this.gT=this.Mc("ytp-clip-start-exclude");this.clipStart=0;this.Xa=this.Mc("ytp-clip-start");this.ys=new g.KL(this.Xa,!0);this.U=this.rT=0;this.progressBar=this.Mc("ytp-progress-bar");this.ZJ= +{};this.mq={};this.uT=this.Mc("ytp-chapters-container");this.dQ=this.Mc("ytp-timed-markers-container");this.Z=[];this.Y=[];this.cq={};this.h$=null;this.L3=-1;this.gh=this.De=0;this.d4=this.N=null;this.D6=this.Mc("ytp-scrubber-button");this.Vs=this.Mc("ytp-decorated-scrubber-button");this.r7=this.Mc("ytp-scrubber-container");this.WI=new g.Er;this.Ci=new hd6;this.L=new B6(0,0);this.GL=null;this.Ze=this.YJ=!1;this.C2=null;this.wh=this.Mc("ytp-heat-map-container");this.yR=this.Mc("ytp-heat-map-edu"); +this.D=[];this.heatMarkersDecorations=[];this.C3=this.Mc("ytp-fine-scrubbing-container");this.p5=this.Mc("ytp-fine-scrubbing-edu");this.B=void 0;this.yl=this.zx=this.f3=!1;this.tooltip=z.xJ();this.addOnDisposeCallback(g.Fv(this.tooltip,this.KH));g.W(this,this.UY);this.UY.subscribe("hoverstart",this.mu,this);this.UY.subscribe("hoverend",this.Vm,this);this.X(this.KH,"click",this.H3);this.addOnDisposeCallback(g.Fv(this.tooltip,this.Xa));g.W(this,this.ys);this.ys.subscribe("hoverstart",this.mu,this); +this.ys.subscribe("hoverend",this.Vm,this);this.X(this.Xa,"click",this.H3);DiL(this);this.X(Q,"resize",this.tZ);this.X(Q,"presentingplayerstatechange",this.nvv);this.X(Q,"videodatachange",this.nt);this.X(Q,"videoplayerreset",this.mch);this.X(Q,"cuerangesadded",this.LSe);this.X(Q,"cuerangesremoved",this.VHT);this.X(Q,"onLoopRangeChange",this.wy);this.X(Q,"innertubeCommand",this.onClickCommand);this.X(Q,g.Li("timedMarkerCueRange"),this.f6$);this.X(Q,"updatemarkervisibility",this.Xm);this.X(Q,"serverstitchedvideochange", +this.a3n);this.updateVideoData(Q.getVideoData(),!0);this.wy(Q.getLoopRange());h9(this)&&!this.B&&(this.B=new AgJ(this.api,this.tooltip),Q=g.$e(this.element).x||0,this.B.tZ(Q,this.j),this.B.Gv(this.C3),g.W(this,this.B),this.X(this.B.dismissButton,"click",this.X7),this.X(this.B.playButton,"click",this.xb),this.X(this.B.element,"dblclick",this.xb));this.api.createClientVe(this.wh,this,139609,!0);this.api.createClientVe(this.yR,this,140127,!0);this.api.createClientVe(this.p5,this,151179,!0);this.api.createClientVe(this.progressBar, +this,38856,!0)}; +DiL=function(Q){if(Q.Z.length===0){var z=new cp;Q.Z.push(z);g.W(Q,z);z.Gv(Q.uT,0)}for(;Q.Z.length>1;)Q.Z.pop().dispose();is(Q.Z[0],"100%");Q.Z[0].startTime=0;Q.Z[0].title=""}; +KPA=function(Q){var z=z===void 0?NaN:z;var H=new UiA(Q.api);Q.D.push(H);g.W(Q,H);H.Gv(Q.wh);z>=0&&(H.element.style.width=z+"px")}; +VR9=function(Q){for(;Q.Y.length;)Q.Y.pop().dispose()}; +mi6=function(Q){var z,H,f,b,L;return(L=g.K((b=g.K((z=Q.getWatchNextResponse())==null?void 0:(H=z.playerOverlays)==null?void 0:(f=H.playerOverlayRenderer)==null?void 0:f.decoratedPlayerBarRenderer,xa))==null?void 0:b.playerBar,diY))==null?void 0:L.chapters}; +wlp=function(Q){for(var z=Q.Z,H=[],f=0;f=u&&G<=q&&L.push(C)}v>0&&(Q.wh.style.height=v+"px");u=Q.D[f];q=L;C=b;E=v;G=f===0;G=G===void 0?!1:G;cga(u,E);M=q;t=u.B;G=G===void 0?!1:G;var x=1E3/M.length,J=[];J.push({x:0,y:100});for(var I=0;I0&&(H=L[L.length-1])}g.DH(Q);X=[];z=g.n(z.heatMarkersDecorations||[]);for(b=z.next();!b.done;b=z.next())if(b=g.K(b.value,zBn))v=b.label,f=H=y=void 0,X.push({visibleTimeRangeStartMillis:(y=b.visibleTimeRangeStartMillis)!=null?y:-1,visibleTimeRangeEndMillis:(H=b.visibleTimeRangeEndMillis)!=null?H:-1,decorationTimeMillis:(f=b.decorationTimeMillis)!=null?f:NaN,label:v?g.na(v):""});Q.heatMarkersDecorations=X}}; +edZ=function(Q,z){Q.Y.push(z);g.W(Q,z);z.Gv(Q.dQ,Q.dQ.children.length)}; +lXc=function(Q,z){z=g.n(z);for(var H=z.next();!H.done;H=z.next()){H=H.value;var f=KU(Q,H.timeRangeStartMillis/(Q.L.Z*1E3),VI(Q));g.M2(H.element,"transform","translateX("+f+"px) scaleX(0.6)")}}; +koc=function(Q,z){var H=0,f=!1;z=g.n(z);for(var b=z.next();!b.done;b=z.next()){b=b.value;if(g.K(b,ffY)){b=g.K(b,ffY);var L={startTime:NaN,title:null,onActiveCommand:void 0},u=b.title;L.title=u?g.na(u):"";u=b.timeRangeStartMillis;u!=null&&(L.startTime=u);L.onActiveCommand=b.onActiveCommand;b=L;H===0&&b.startTime!==0&&(Q.Z[H].startTime=0,Q.Z[H].title="",Q.Z[H].onActiveCommand=b.onActiveCommand,H++,f=!0);Q.Z.length<=H&&(L=new cp,Q.Z.push(L),g.W(Q,L),L.Gv(Q.uT,Q.uT.children.length));Q.Z[H].startTime= +b.startTime;Q.Z[H].title=b.title?b.title:"";Q.Z[H].onActiveCommand=b.onActiveCommand;Q.Z[H].index=f?H-1:H}H++}for(;H=0;f--)if(Q.Z[f].width>0){iXZ(Q.Z[f],0);var b=Math.floor(Q.Z[f].width);Q.Z[f].width=b;is(Q.Z[f],b+"px");break}Q.Z[H].width=0;is(Q.Z[H],"0")}else H===Q.Z.length-1?(f=Math.floor(Q.Z[H].width+z),Q.Z[H].width=f,is(Q.Z[H],f+"px")):(z=Q.Z[H].width+z,f=Math.round(z),z-=f,Q.Z[H].width=f,is(Q.Z[H],f+"px"));H=0;if(Q.D.length===Q.Z.length)for(z=0;z< +Q.D.length;z++)f=Q.Z[z].width,Q.D[z].element.style.width=f+"px",Q.D[z].element.style.left=H+"px",H+=f+mM(Q);Q.api.V("delhi_modern_web_player")&&(Q.Z.length===1?Q.Z[0].B.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(Q.Z[0].B.classList.remove("ytp-progress-bar-end"),Q.Z[0].B.classList.add("ytp-progress-bar-start"),Q.Z[Q.Z.length-1].B.classList.add("ytp-progress-bar-end")))}; +bec=function(Q,z){var H=0,f=!1,b=Q.Z.length,L=Q.L.Z*1E3;L===0&&(L=Q.api.getProgressState().seekableEnd*1E3);if(L>0&&Q.j>0){for(var u=Q.j-mM(Q)*Q.De,X=Q.gh===0?3:u*Q.gh,v=g.n(Q.Z),y=v.next();!y.done;y=v.next())y.value.width=0;for(;H1);y=(L===0?0:v/L*u)+Q.Z[H].width;if(y>X)Q.Z[H].width=y;else{Q.Z[H].width=0;var q=Q,M=H,C=q.Z[M-1];C!==void 0&&C.width>0? +C.width+=y:MQ.gh&&(Q.gh=v/L),f=!0)}H++}}return f}; +db=function(Q){if(Q.j){var z=Q.api.getProgressState(),H=Q.api.getVideoData();if(!(H&&H.enableServerStitchedDai&&H.enablePreroll)||isFinite(z.current)){var f;if(((f=Q.api.getVideoData())==null?0:zI(f))&&z.airingStart&&z.airingEnd)var b=wb(Q,z.airingStart,z.airingEnd);else if(Q.api.getPresentingPlayerType()===2&&Q.api.C().V("show_preskip_progress_bar_for_skippable_ads")){var L,u,X;b=(H=(b=Q.api.getVideoData())==null?void 0:(L=b.getPlayerResponse())==null?void 0:(u=L.playerConfig)==null?void 0:(X=u.webPlayerConfig)== +null?void 0:X.skippableAdProgressBarDuration)?wb(Q,z.seekableStart,H/1E3):wb(Q,z.seekableStart,z.seekableEnd)}else b=wb(Q,z.seekableStart,z.seekableEnd);L=P6(b,z.loaded,0);z=P6(b,z.current,0);u=Q.L.B!==b.B||Q.L.Z!==b.Z;Q.L=b;kz(Q,z,L);u&&LA_(Q);uK8(Q)}}}; +wb=function(Q,z,H){return Swa(Q)?new B6(Math.max(z,Q.GL.startTimeMs/1E3),Math.min(H,Q.GL.endTimeMs/1E3)):new B6(z,H)}; +XhZ=function(Q,z){var H;if(((H=Q.GL)==null?void 0:H.type)==="repeatChapter"||(z==null?void 0:z.type)==="repeatChapter")z&&(z=Q.Z[Mg(Q.Z,z.startTimeMs)],g.MP(z.Z,"ytp-repeating-chapter",!1)),Q.GL&&(z=Q.Z[Mg(Q.Z,Q.GL.startTimeMs)],g.MP(z.Z,"ytp-repeating-chapter",!0)),Q.Z.forEach(function(f){g.MP(f.Z,"ytp-exp-chapter-hover-container",!Q.GL)})}; +eO=function(Q,z){var H=Q.L;H=H.B+z.B*H.getLength();if(Q.Z.length>1){H=Tf(Q,z.L,!0);for(var f=0,b=0;b0&&(f+=Q.Z[b].width,f+=mM(Q));H=(Q.Z[H].startTime+(z.L-f)/Q.Z[H].width*((H===Q.Z.length-1?Q.L.Z*1E3:Q.Z[H+1].startTime)-Q.Z[H].startTime))/1E3||0}return H}; +ls=function(Q,z,H,f,b){z=z<0?0:Math.floor(Math.min(z,Q.api.getDuration())*1E3);H=H<0?0:Math.floor(Math.min(H,Q.api.getDuration())*1E3);Q=Q.progressBar.visualElement;f={seekData:{startMediaTimeMs:z,endMediaTimeMs:H,seekSource:f}};(z=g.Jl())&&g.zr(QR)(void 0,z,Q,b,f,void 0)}; +vD6=function(Q,z,H){if(H>=Q.Z.length)return!1;var f=Q.j-mM(Q)*Q.De;return Math.abs(z-Q.Z[H].startTime/1E3)/Q.L.Z*f<4}; +LA_=function(Q){Q.D6.style.removeProperty("height");for(var z=g.n(Object.keys(Q.jm)),H=z.next();!H.done;H=z.next())yHc(Q,H.value);RC(Q);kz(Q,Q.U,Q.rT)}; +VI=function(Q){var z=Q.WI.x;z=g.y4(z,0,Q.j);Q.Ci.update(z,Q.j);return Q.Ci}; +zB=function(Q){return(Q.Ze?135:90)-Qz(Q)}; +Qz=function(Q){var z=48,H=Q.api.C();Q.Ze?z=54:g.O8(H)&&!H.B?z=40:Q.api.V("delhi_modern_web_player")&&(z=68);return z}; +kz=function(Q,z,H){Q.U=z;Q.rT=H;var f=VI(Q),b=Q.L.Z;var L=Q.L;L=L.B+Q.U*L.getLength();var u=g.pi("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.Ox(L,!0),DURATION:g.Ox(b,!0)}),X=Mg(Q.Z,L*1E3);X=Q.Z[X].title;Q.update({ariamin:Math.floor(Q.L.B),ariamax:Math.floor(b),arianow:Math.floor(L),arianowtext:X?X+" "+u:u});b=Q.clipStart;L=Q.clipEnd;Q.GL&&Q.api.getPresentingPlayerType()!==2&&(b=Q.GL.startTimeMs/1E3,L=Q.GL.endTimeMs/1E3);b=P6(Q.L,b,0);X=P6(Q.L,L,1);u=Q.api.getVideoData();L=g.y4(z,b,X);H=(u==null? +0:g.Rq(u))?1:g.y4(H,b,X);z=KU(Q,z,f);g.M2(Q.r7,"transform","translateX("+z+"px)");Q.api.V("delhi_modern_web_player")&&qwn(Q,z);HP(Q,f,b,L,"PLAY_PROGRESS");(u==null?0:zI(u))?(z=Q.api.getProgressState().seekableEnd)&&HP(Q,f,L,P6(Q.L,z),"LIVE_BUFFER"):HP(Q,f,b,H,"LOAD_PROGRESS");if(Q.api.V("web_player_heat_map_played_bar")){var v;(v=Q.D[0])!=null&&v.Y.setAttribute("width",(L*100).toFixed(2)+"%")}}; +qwn=function(Q,z){if(Q.api.getPresentingPlayerType()!==1)Q.uT.style.removeProperty("clip-path");else{z||(z=KU(Q,Q.U,VI(Q)));var H=Q.Bc?36:28,f=z-H/2;z+=H/2;Q.uT.style.clipPath='path("M 0 0 L 0 8 L '+(f+" 8 C "+(f+6+" 8 "+(f+6)+" 0 "+f+" 0 L 0 0 M ")+(z+" 0 L ")+(Q.j+" 0 L ")+(Q.j+" 8 L ")+(z+" 8 C ")+(z-6+" 8 "+(z-6)+" 0 "+z+' 0")'))}}; +HP=function(Q,z,H,f,b){var L=Q.Z.length,u=z.Z-Q.De*mM(Q),X=H*u;H=Tf(Q,X);var v=f*u;u=Tf(Q,v);b==="HOVER_PROGRESS"&&(u=Tf(Q,z.Z*f,!0),v=z.Z*f-M2Z(Q,z.Z*f)*mM(Q));f=Math.max(X-C3c(Q,H),0);for(X=H;X=Q.Z.length)return Q.j;for(var H=0,f=0;f0||Q.Wz.clientWidth>0?(L=z.clientWidth/H,Q=-1*Q.gT.clientWidth/H):(L/=H,Q=-1*Q.Z[b].element.offsetLeft/H),g.M2(z,"background-size",L+"px"),g.M2(z,"background-position-x",Q+"px"))}; +fO=function(Q,z,H,f,b){b||Q.api.C().B?z.style.width=H+"px":g.M2(z,"transform","scalex("+(f?H/f:0)+")")}; +Tf=function(Q,z,H){var f=0;(H===void 0?0:H)&&(z-=M2Z(Q,z)*mM(Q));H=g.n(Q.Z);for(var b=H.next();!b.done;b=H.next()){b=b.value;if(z>b.width)z-=b.width;else break;f++}return f===Q.Z.length?f-1:f}; +KU=function(Q,z,H){var f=z*Q.L.Z*1E3;for(var b=-1,L=g.n(Q.Z),u=L.next();!u.done;u=L.next())u=u.value,f>u.startTime&&u.width>0&&b++;f=b<0?0:b;b=H.Z-mM(Q)*Q.De;return z*b+mM(Q)*f+H.D}; +M2Z=function(Q,z){for(var H=Q.Z.length,f=0,b=g.n(Q.Z),L=b.next();!L.done;L=b.next())if(L=L.value,L.width!==0)if(z>L.width)z-=L.width,z-=mM(Q),f++;else break;return f===H?H-1:f}; +g.phn=function(Q,z,H,f){var b=Q.j!==H,L=Q.Ze!==f;Q.uL=z;Q.j=H;Q.Ze=f;h9(Q)&&(z=Q.B)!=null&&(z.scale=f?1.5:1);LA_(Q);Q.Z.length===1&&(Q.Z[0].width=H||0);b&&g.DH(Q);Q.B&&L&&h9(Q)&&(Q.B.isEnabled&&(H=Q.Ze?135:90,f=H-Qz(Q),Q.C3.style.height=H+"px",g.M2(Q.wh,"transform","translateY("+-f+"px)"),g.M2(Q.progressBar,"transform","translateY("+-f+"px)")),BxY(Q.B))}; +RC=function(Q){var z=!!Q.GL&&Q.api.getPresentingPlayerType()!==2,H=Q.clipStart,f=Q.clipEnd,b=!0,L=!0;z&&Q.GL?(H=Q.GL.startTimeMs/1E3,f=Q.GL.endTimeMs/1E3):(b=H>Q.L.B,L=Q.L.Z>0&&fQ.U);g.MP(Q.D6,"ytp-scrubber-button-hover",H===f&&Q.Z.length>1);if(Q.api.V("web_player_heat_map_played_bar")){var L;(L=Q.D[0])!=null&&L.Z.setAttribute("width",(z.B*100).toFixed(2)+"%")}}}; +yHc=function(Q,z){var H=Q.jm[z];z=Q.EY[z];var f=VI(Q),b=P6(Q.L,H.start/1E3,0),L=CI_(H,Q.Ze)/f.width;var u=P6(Q.L,H.end/1E3,1);L!==Number.POSITIVE_INFINITY&&(b=g.y4(b,0,u-L));u=Math.min(u,b+L);H.color&&(z.style.background=H.color);H=b;z.style.left=Math.max(H*f.Z+f.D,0)+"px";fO(Q,z,g.y4((u-H)*f.Z+f.D,0,f.width),f.width,!0)}; +nD9=function(Q,z){var H=z.getId();Q.jm[H]===z&&(g.XU(Q.EY[H]),delete Q.jm[H],delete Q.EY[H])}; +h9=function(Q){var z=g.wm(Q.api.C())&&(Q.api.V("web_shorts_pip")||Q.api.V("web_watch_pip")),H;return!((H=Q.api.getVideoData())==null?0:H.isLivePlayback)&&!Q.api.isMinimized()&&!Q.api.isInline()&&(!Q.api.S2()||!z)}; +b_=function(Q){Q.B&&(Q.B.disable(),Q.iT=0,Q.wh.style.removeProperty("transform"),Q.progressBar.style.removeProperty("transform"),Q.C3.style.removeProperty("height"),Q.element.parentElement&&Q.element.parentElement.style.removeProperty("height"))}; +gDL=function(Q,z){var H=z/zB(Q)*Qz(Q);g.M2(Q.progressBar,"transform","translateY("+-z+"px)");g.M2(Q.wh,"transform","translateY("+-z+"px)");g.M2(Q.C3,"transform","translateY("+H+"px)");Q.C3.style.height=z+H+"px";Q.element.parentElement&&(Q.element.parentElement.style.height=Qz(Q)-H+"px")}; +ZeA=function(Q,z){z?Q.N||(Q.element.removeAttribute("aria-disabled"),Q.N=new g.KL(Q.progressBar,!0),Q.N.subscribe("hovermove",Q.VAq,Q),Q.N.subscribe("hoverend",Q.AMT,Q),Q.N.subscribe("dragstart",Q.fmT,Q),Q.N.subscribe("dragmove",Q.nsv,Q),Q.N.subscribe("dragend",Q.m4I,Q),Q.api&&Q.api.V("delhi_modern_web_player")&&(Q.d4=new g.KL(Q.progressBar,!0),Q.d4.subscribe("hoverstart",function(){Q.Bc=!0;qwn(Q)},Q),Q.d4.subscribe("hoverend",function(){Q.Bc=!1; +qwn(Q)},Q)),Q.C2=Q.listen("keydown",Q.RV)):Q.N&&(Q.element.setAttribute("aria-disabled","true"),Q.DS(Q.C2),Q.N.cancel(),Q.N.dispose(),Q.N=null)}; +mM=function(Q){return Q.api.V("delhi_modern_web_player")?4:Q.Ze?3:2}; +Swa=function(Q){var z;return!((z=Q.GL)==null||!z.postId)&&Q.api.getPresentingPlayerType()!==2}; +LO=function(Q,z){g.m.call(this,{G:"button",lT:["ytp-remote-button","ytp-button"],T:{title:"Play on TV","aria-haspopup":"true","data-priority":"9"},BI:"{{icon}}"});this.K=Q;this.kt=z;this.Z=null;this.X(Q,"onMdxReceiversChange",this.Jh);this.X(Q,"presentingplayerstatechange",this.Jh);this.X(Q,"appresize",this.Jh);Q.createClientVe(this.element,this,139118);this.Jh();this.listen("click",this.B,this);x1(Q,this.element,this)}; +u_=function(Q,z){g.m.call(this,{G:"button",lT:["ytp-button","ytp-settings-button"],T:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":yR(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},W:[g.AB()]});this.K=Q;this.kt=z;this.B=!0;this.listen("click",this.L);this.X(Q,"onPlaybackQualityChange",this.updateBadge);this.X(Q,"videodatachange",this.updateBadge);this.X(Q,"webglsettingschanged",this.updateBadge);this.X(Q,"appresize",this.Z);x1(Q,this.element,this);this.K.createClientVe(this.element, +this,28663);this.updateBadge();this.Z(Q.Un().getPlayerSize())}; +GWu=function(Q,z){Q.B=!!z;Q.Z(Q.K.Un().getPlayerSize())}; +Sk=function(Q,z){bo.call(this,"Annotations",g.yW.M5);this.K=Q;this.kt=z;this.Z=!1;Q.V("web_settings_menu_icons")&&this.setIcon({G:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{G:"path",T:{d:"M17.5,7c1.93,0,3.5,1.57,3.5,3.5c0,1-0.53,4.5-0.85,6.5h-2.02l0.24-1.89l0.14-1.09l-1.1-0.03C15.5,13.94,14,12.4,14,10.5 C14,8.57,15.57,7,17.5,7 M6.5,7C8.43,7,10,8.57,10,10.5c0,1-0.53,4.5-0.85,6.5H7.13l0.24-1.89l0.14-1.09l-1.1-0.03 C4.5,13.94,3,12.4,3,10.5C3,8.57,4.57,7,6.5,7 M17.5,6C15.01,6,13,8.01,13,10.5c0,2.44,1.95,4.42,4.38,4.49L17,18h4c0,0,1-6,1-7.5 C22,8.01,19.99,6,17.5,6L17.5,6z M6.5,6C4.01,6,2,8.01,2,10.5c0,2.44,1.95,4.42,4.38,4.49L6,18h4c0,0,1-6,1-7.5 C11,8.01,8.99,6,6.5,6L6.5,6z", +fill:"white"}}]});this.X(Q,"videodatachange",this.Jh);this.X(Q,"onApiChange",this.Jh);this.subscribe("select",this.onSelect,this);this.Jh()}; +Xf=function(Q,z){g.hz.call(this,"Audio track",g.yW.AUDIO,Q,z);this.K=Q;this.tracks={};g.X9(this.element,"ytp-audio-menu-item");this.countLabel=new g.m({G:"div",W:[{G:"span",BI:"Audio track"},{G:"span",J:"ytp-menuitem-label-count",BI:"{{content}}"}]});Q.V("web_settings_menu_icons")&&this.setIcon({G:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{G:"path",T:{d:"M11.72,11.93C13.58,11.59,15,9.96,15,8c0-2.21-1.79-4-4-4C8.79,4,7,5.79,7,8c0,1.96,1.42,3.59,3.28,3.93 C4.77,12.21,2,15.76,2,20h18C20,15.76,17.23,12.21,11.72,11.93z M8,8c0-1.65,1.35-3,3-3s3,1.35,3,3s-1.35,3-3,3S8,9.65,8,8z M11,12.9c5.33,0,7.56,2.99,7.94,6.1H3.06C3.44,15.89,5.67,12.9,11,12.9z M16.68,11.44l-0.48-0.88C17.31,9.95,18,8.77,18,7.5 c0-1.27-0.69-2.45-1.81-3.06l0.49-0.88C18.11,4.36,19,5.87,19,7.5C19,9.14,18.11,10.64,16.68,11.44z M18.75,13.13l-0.5-0.87 C19.95,11.28,21,9.46,21,7.5s-1.05-3.78-2.75-4.76l0.5-0.87C20.75,3.03,22,5.19,22,7.5S20.76,11.97,18.75,13.13z", +fill:"white"}}]});g.W(this,this.countLabel);g.dX(this,this.countLabel);this.X(Q,"videodatachange",this.Jh);this.X(Q,"onPlaybackAudioChange",this.Jh);this.Jh()}; +vP=function(Q,z){bo.call(this,"Autoplay",g.yW.jt);this.K=Q;this.kt=z;this.Z=!1;this.L=[];this.X(Q,"presentingplayerstatechange",this.B);this.subscribe("select",this.onSelect,this);Q.createClientVe(this.element,this,113682);this.B()}; +$LJ=function(Q,z){g.mh.call(this,g.wX({"aria-haspopup":"false"}),0,"More options");this.K=Q;this.kt=z;this.X(this.element,"click",this.onClick);this.kt.md(this)}; +jFp=function(Q,z){var H;g.wm(Q.C())&&(H={G:"div",J:"ytp-panel-footer-content",W:[{G:"span",BI:"Adjust download quality from your "},{G:"a",J:"ytp-panel-footer-content-link",BI:"Settings",T:{href:"/account_downloads"}}]});g.hz.call(this,"Quality",g.yW.aA,Q,z,void 0,void 0,H);this.K=Q;this.L3={};this.U={};this.D={};this.De=new Set;this.Z=this.j=!1;this.Y="unknown";this.Ze="";this.wh=new g.TK;g.W(this,this.wh);this.j=this.K.V("web_player_use_new_api_for_quality_pullback");this.Z=this.K.V("web_player_enable_premium_hbr_playback_cap"); +Q.V("web_settings_menu_icons")&&this.setIcon({G:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{G:"path",T:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",fill:"white"}}]});g.X9(this.B.element,"ytp-quality-menu");this.X(Q,"videodatachange",this.Yx);this.X(Q,"videoplayerreset",this.Yx);this.X(Q,"onPlaybackQualityChange",this.Pu);this.Yx();Q.createClientVe(this.element,this,137721)}; +xLn=function(Q,z,H){var f=Q.L3[z],b=g.ct[z];return FAA(Q,f?f.qualityLabel:b?b+"p":"Auto",z,H)}; +Oek=function(Q,z,H,f,b){var L=(z=Q.Z?Q.D[z]:Q.U[z])&&z.quality,u=z&&z.qualityLabel;u=u?u:"Auto";f&&(u="("+u);Q=FAA(Q,u,L||"",b);f&&Q.W.push(")");(f=(f=z&&z.paygatedQualityDetails)&&f.paygatedIndicatorText)&&H&&Q.W.push({G:"div",J:"ytp-premium-label",BI:f});return Q}; +FAA=function(Q,z,H,f){z={G:"span",lT:f,W:[z]};var b;f="ytp-swatch-color";if(Q.j||Q.Z)f="ytp-swatch-color-white";H==="highres"?b="8K":H==="hd2880"?b="5K":H==="hd2160"?b="4K":H.indexOf("hd")===0&&H!=="hd720"&&(b="HD");b&&(z.W.push(" "),z.W.push({G:"sup",J:f,BI:b}));return z}; +yz=function(Q,z,H,f,b,L){L=L===void 0?!1:L;var u={G:"div",lT:["ytp-input-slider-section"],W:[{G:"input",J:"ytp-input-slider",T:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};b&&u.W.unshift(b);L&&u.lT.push("ytp-vertical-slider");g.m.call(this,u);this.L=Q;this.D=z;this.Y=H;this.initialValue=f;this.header=b;this.Z=this.Mc("ytp-input-slider");this.B=f?f:Q;this.init();this.X(this.Z,"input",this.N);this.X(this.Z,"keydown", +this.j)}; +JHc=function(Q,z){Q.B=z;Q.updateValue("slidervalue",Q.B);Q.Z.valueAsNumber=Q.B;oDu(Q,z)}; +oDu=function(Q,z){Q.Z.style.setProperty("--yt-slider-shape-gradient-percent",(z-Q.L)/(Q.D-Q.L)*100+"%")}; +q8=function(Q){yz.call(this,Q.getAvailablePlaybackRates()[0],Q.getAvailablePlaybackRates()[Q.getAvailablePlaybackRates().length-1],.05,Q.getPlaybackRate(),{G:"div",J:"ytp-speedslider-indicator-container",W:[{G:"div",J:"ytp-speedslider-badge"},{G:"p",J:"ytp-speedslider-text"}]});this.K=Q;this.Ze=dou(this.wh,this);g.X9(this.Z,"ytp-speedslider");this.U=this.Mc("ytp-speedslider-text");this.De=this.Mc("ytp-speedslider-badge");NLn(this);this.X(this.Z,"change",this.L3)}; +NLn=function(Q){Q.U.textContent=Q.B+"x";Q.De.classList.toggle("ytp-speedslider-premium-badge",Q.B>2&&Q.K.V("enable_web_premium_varispeed"))}; +M8=function(Q,z,H,f,b,L,u){g.m.call(this,{G:"div",J:"ytp-slider-section",T:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},W:[{G:"div",J:"ytp-slider",W:[{G:"div",J:"ytp-slider-handle"}]}]});this.N=Q;this.U=z;this.B=H;this.L=f;this.Ze=b;this.yl=L;this.range=this.L-this.B;this.f3=this.Mc("ytp-slider-section");this.D=this.Mc("ytp-slider");this.wh=this.Mc("ytp-slider-handle");this.Y=new g.KL(this.D, +!0);this.Z=u?u:H;g.W(this,this.Y);this.Y.subscribe("dragmove",this.TW,this);this.X(this.element,"keydown",this.Ud);this.X(this.element,"wheel",this.WA);this.init()}; +CO=function(Q){M8.call(this,.05,.05,Q.getAvailablePlaybackRates()[0],Q.getAvailablePlaybackRates()[Q.getAvailablePlaybackRates().length-1],150,20,Q.getPlaybackRate());this.K=Q;this.j=g.fm("P");this.De=dou(this.L3,this);g.X9(this.D,"ytp-speedslider");g.X9(this.j,"ytp-speedslider-text");Q=this.j;var z=this.D;z.parentNode&&z.parentNode.insertBefore(Q,z.nextSibling);IfY(this);this.X(this.K,"onPlaybackRateChange",this.updateValues)}; +IfY=function(Q){Q.j.textContent=AHZ(Q,Q.Z)+"x"}; +AHZ=function(Q,z){Q=Number(g.y4(z,Q.B,Q.L).toFixed(2));z=Math.floor((Q+.001)*100%5+2E-15);var H=Q;z!==0&&(H=Q-z*.01);return Number(H.toFixed(2))}; +Ywk=function(Q){g.tB.call(this,{G:"div",J:"ytp-speedslider-component"});Q.V("web_settings_use_input_slider")?this.Z=new q8(Q):this.Z=new CO(Q);g.W(this,this.Z);this.element.appendChild(this.Z.element)}; +rH8=function(Q){var z=new Ywk(Q);Ii.call(this,Q,z,"Custom");g.W(this,z)}; +sFp=function(Q,z){var H=new rH8(Q);g.hz.call(this,"Playback speed",g.yW.Dd,Q,z,tY(Q)?void 0:"Custom",tY(Q)?void 0:function(){g.sk(z,H)}); +var f=this;this.D=!1;g.W(this,H);this.Y=new q8(Q);g.W(this,this.Y);Q.V("web_settings_menu_icons")&&this.setIcon({G:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},W:[{G:"path",T:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z", +fill:"white"}}]});this.K=Q;this.D=!1;this.Ze=null;tY(Q)?(this.Z=g.pi("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.K.getPlaybackRate().toString()}),this.j=this.K.getPlaybackRate()):this.j=this.Z=null;this.U=this.K.getAvailablePlaybackRates();this.X(Q,"presentingplayerstatechange",this.Jh);var b;((b=this.K.getVideoData())==null?0:b.OZ())&&this.X(Q,"serverstitchedvideochange",this.Jh);this.X(this.Y.Z,"change",function(){f.D=!0;f.Jh()}); +this.Jh()}; +BL_=function(Q,z){var H=E3(z);Q.Z&&(Q.D||z===Q.j)?(Q.RJ(Q.Z),Q.UV(z.toString())):Q.RJ(H)}; +afn=function(Q){Q.wz(Q.U.map(E3));Q.Z=null;Q.j=null;var z=Q.K.getPlaybackRate();tY(Q.K)&&P36(Q,z);!Q.U.includes(z)||Q.D?Q.RJ(Q.Z):Q.RJ(E3(z))}; +P36=function(Q,z){Q.j=z;Q.Z=g.pi("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:z.toString()});z=Q.U.map(E3);z.unshift(Q.Z);Q.wz(z)}; +E3=function(Q){return Q.toString()}; +tY=function(Q){return Q.V("web_settings_menu_surface_custom_playback")}; +ULv=function(Q){return Q.V("web_settings_menu_surface_custom_playback")&&Q.V("web_settings_use_input_slider")}; +iek=function(Q,z,H,f){var b=new g.Az(z,void 0,"Video Override");g.hz.call(this,f.text||"",Q,z,H,"Video Override",function(){g.sk(H,b)}); +var L=this;g.X9(this.element,"ytp-subtitles-options-menu-item");this.setting=f.option.toString();Q=f.options;this.settings=g.Cr(Q,this.xT,this);this.j=b;g.W(this,this.j);z=new g.mh({G:"div",J:"ytp-menuitemtitle",BI:"Allow for a different caption style if specified by the video."},0);g.W(this,z);this.j.md(z,!0);this.D=new g.mh({G:"div",J:"ytp-menuitem",T:{role:"menuitemradio",tabindex:"0"},W:[{G:"div",J:"ytp-menuitem-label",BI:"On"}]},-1);g.W(this,this.D);this.j.md(this.D,!0);this.X(this.D.element, +"click",function(){cH9(L,!0)}); +this.Z=new g.mh({G:"div",J:"ytp-menuitem",T:{role:"menuitemradio",tabindex:"0"},W:[{G:"div",J:"ytp-menuitem-label",BI:"Off"}]},-2);g.W(this,this.Z);this.j.md(this.Z,!0);this.X(this.Z.element,"click",function(){cH9(L,!1)}); +this.wz(g.NT(Q,this.xT))}; +cH9=function(Q,z){Q.publish("settingChange",Q.setting+"Override",!z);Q.kt.R6()}; +pO=function(Q,z){g.Az.call(this,Q,void 0,"Options");var H=this;this.YG={};for(var f=0;f=0);if(!(z<0||z===Q.D)){Q.D=z;z=243*Q.scale;var H=141*Q.scale,f=tGn(Q.B,Q.D,z);tRu(Q.bg,f,z,H,!0);Q.L3.start()}}; +CO9=function(Q){var z=Q.Z;Q.type===3&&Q.De.stop();Q.api.removeEventListener("appresize",Q.wh);Q.U||z.setAttribute("title",Q.L);Q.L="";Q.Z=null;Q.updateValue("keyBoardShortcut","");Q.wrapper.style.width=""}; +ERZ=function(Q){g.m.call(this,{G:"button",lT:["ytp-watch-later-button","ytp-button"],T:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.O8(Q.C()))},W:[{G:"div",J:"ytp-watch-later-icon",BI:"{{icon}}"},{G:"div",J:"ytp-watch-later-title",BI:"Watch later"}]});this.K=Q;this.icon=null;this.visible=this.isRequestPending=this.Z=!1;V39(Q);Q.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.X(Q,"videoplayerreset",this.onReset);this.X(Q,"appresize", +this.v_);this.X(Q,"videodatachange",this.v_);this.X(Q,"presentingplayerstatechange",this.v_);this.v_();Q=this.K.C();var z=g.a4("yt-player-watch-later-pending");Q.D&&z?(PYY(),tu6(this)):this.Jh(2);g.MP(this.element,"ytp-show-watch-later-title",g.O8(Q));x1(this.K,this.element,this)}; +pi_=function(Q){var z=Q.K.getPlayerSize(),H=Q.K.C(),f=Q.K.getVideoData(),b=g.O8(H)&&g.Af(Q.K)&&g.w(Q.K.getPlayerStateObject(),128),L=H.L;return H.QN&&z.width>=240&&!f.isAd()&&f.QN&&!b&&!g.HG(f)&&!Q.K.isEmbedsShortsMode()&&!L}; +nRn=function(Q,z){cw_(g.Dd(Q.K.C()),"wl_button",function(){PYY({videoId:z});window.location.reload()})}; +tu6=function(Q){if(!Q.isRequestPending){Q.isRequestPending=!0;Q.Jh(3);var z=Q.K.getVideoData();z=Q.Z?z.removeFromWatchLaterCommand:z.addToWatchLaterCommand;var H=Q.K.Vk(),f=Q.Z?function(){Q.Z=!1;Q.isRequestPending=!1;Q.Jh(2);Q.K.C().Y&&Q.K.F$("WATCH_LATER_VIDEO_REMOVED")}:function(){Q.Z=!0; +Q.isRequestPending=!1;Q.Jh(1);Q.K.C().B&&Q.K.Ag(Q.element);Q.K.C().Y&&Q.K.F$("WATCH_LATER_VIDEO_ADDED")}; +kx(H,z).then(f,function(){Q.isRequestPending=!1;Q.Jh(4,"An error occurred. Please try again later.");Q.K.C().Y&&Q.K.F$("WATCH_LATER_ERROR","An error occurred. Please try again later.")})}}; +gRu=function(Q,z){if(z!==Q.icon){switch(z){case 3:var H=X1();break;case 1:H=Zv();break;case 2:H={G:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",w4:!0,J:"ytp-svg-fill",T:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:H={G:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path", +w4:!0,T:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}Q.updateValue("icon",H);Q.icon=z}}; +g.IY=function(){g.d3.apply(this,arguments);this.W6=(this.wX=g.O8(this.api.C()))&&(this.api.C().B||Hw()||Qh());this.xS=48;this.zC=69;this.dY=this.S3=null;this.vn=[];this.W3=this.Gs=this.Tc=this.J3=this.sZ=null;this.IT=[];this.contextMenu=this.Xf=this.overflowButton=this.qO=this.aJ=this.searchButton=this.copyLinkButton=this.shareButton=this.nP=this.PB=this.title=this.channelAvatar=this.uw=this.tooltip=null;this.Qj=!1;this.pD=this.fQ=this.Do=this.b4=null;this.AA=this.xC=this.SV=!1}; +ZV8=function(Q){var z=Q.api.C(),H=g.w(Q.api.getPlayerStateObject(),128);return z.D&&H&&!Q.api.isFullscreen()}; +GFJ=function(Q){if(Q.HB()&&!Q.api.isEmbedsShortsMode()&&Q.qO){var z=Q.api.V("web_player_hide_overflow_button_if_empty_menu");!Q.nP||z&&!pi_(Q.nP)||co_(Q.qO,Q.nP);!Q.shareButton||z&&!km9(Q.shareButton)||co_(Q.qO,Q.shareButton);!Q.copyLinkButton||z&&!Q5c(Q.copyLinkButton)||co_(Q.qO,Q.copyLinkButton)}else{if(Q.qO){z=Q.qO;for(var H=g.n(z.actionButtons),f=H.next();!f.done;f=H.next())f.value.detach();z.actionButtons=[]}Q.searchButton&&!g.vx(Q.PB.element,Q.searchButton.element)&&Q.searchButton.Gv(Q.PB.element); +Q.nP&&!g.vx(Q.PB.element,Q.nP.element)&&Q.nP.Gv(Q.PB.element);Q.shareButton&&!g.vx(Q.PB.element,Q.shareButton.element)&&Q.shareButton.Gv(Q.PB.element);Q.copyLinkButton&&!g.vx(Q.PB.element,Q.copyLinkButton.element)&&Q.copyLinkButton.Gv(Q.PB.element)}}; +$eY=function(Q,z,H){z=H?z.lastElementChild:z.firstElementChild;for(var f=null;z;){if(ph(z,"display")!=="none"&&z.getAttribute("aria-hidden")!=="true"){var b=void 0;z.tabIndex>=0?b=z:b=$eY(Q,z,H);b&&(f?H?b.tabIndex>f.tabIndex&&(f=b):b.tabIndexf/1E3+1)return{msg:"in-the-past"};if(L.isLivePlayback&&!isFinite(f))return{msg:"live-infinite"};(f=z.aB())&&f.isView()&&(f=f.mediaElement);if(f&&f.WP().length>12&&g.G_(b))return{msg:"played-ranges"};if(!b.L)return null;if(!u)return{msg:"no-pvd-formats"};if(!b.L.Z||!u.Z)return{msg:"non-dash"};f=u.videoInfos[0];var X=b.L.videoInfos[0];Q.Y&&f9(L)&&(f=z.wq(),X= +H.wq());if(!f||!X)return{msg:"no-video-info"};if(Q.L&&(w5(f)||w5(X)))return{msg:"av1"};z=Q.Z&&L.fq()&&p3();if(X.containerType!==f.containerType)if(z)L.On("sgap",{ierr:"container"});else return{msg:"container"};if(Q.B&&!z&&(X.Rj!==f.Rj||X.Rj===""||f.Rj===""))return{msg:"codec"};if(Q.D&&X.video&&f.video&&Math.abs(X.video.width/X.video.height-f.video.width/f.video.height)>.01)return{msg:"ratio"};if(g.G_(L)&&g.G_(b))return{msg:"content-protection"};u=u.Z[0];b=b.L.Z[0];H=u.audio;var v=b.audio;if(H.sampleRate!== +v.sampleRate&&!g.YK)if(z)L.On("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:u.itag,cr:H.sampleRate,ni:b.itag,nr:v.sampleRate};return(H.numChannels||2)!==(v.numChannels||2)?{msg:"channel-count"}:Q.S&&L.fq()&&f.video.fps!==X.video.fps?{msg:"fps"}:null}; +OVL=function(Q,z,H){var f=Q.getVideoData(),b=z.getVideoData();if(!f.C().supportsGaplessShorts())return{nq:"env"};if(H.j){if(f.Yn&&!f.isAd()||b.Yn&&!b.isAd())return{nq:"autoplay"}}else if(f.Yn||b.Yn)return{nq:"autoplay"};if(!f.N)return{nq:"client"};if(!Q.PU())return{nq:"no-empty"};Q=xec(H,Q,z,Infinity);return Q!=null?{nq:Q.msg}:null}; +ro=function(Q){g.h.call(this);this.app=Q;this.S=this.D=this.B=this.Z=null;this.L=1;this.events=new g.Pt(this);this.events.X(this.app.Yv,g.uc("gaplessshortslooprange"),this.N);g.W(this,this.events)}; +oRn=function(){this.D=this.j=this.L=this.Y=this.S=this.B=this.Z=!1}; +JSc=function(Q){var z=new oRn;z.Z=Q.V("h5_gapless_support_types_diff");z.S=Q.V("h5_gapless_error_on_fps_diff");z.Y=Q.V("html5_gapless_use_format_info_fix");z.L=Q.V("html5_gapless_disable_on_av1")&&!Q.V("html5_gapless_enable_on_av1");z.B=Q.V("html5_gapless_check_codec_diff_strictly");z.j=Q.V("html5_gapless_on_ad_autoplay");z.D=Q.V("html5_gapless_disable_diff_aspect_radio");return z}; +g.s3=function(Q,z,H,f){f=f===void 0?!1:f;eP.call(this);this.mediaElement=Q;this.start=z;this.end=H;this.Z=f}; +NkZ=function(Q,z,H,f,b,L){L=L===void 0?0:L;g.h.call(this);var u=this;this.policy=Q;this.Z=z;this.B=H;this.sV=b;this.S=L;this.D=this.L=null;this.currentVideoDuration=this.j=-1;this.Y=!1;this.LZ=new Ts;this.e8=f-z.ex()*1E3;this.LZ.then(void 0,function(){}); +this.timeout=new g.lp(function(){u.wP("timeout")},1E4); +g.W(this,this.timeout);this.N=isFinite(f);this.status={status:0,error:null}}; +YQ9=function(Q){var z,H,f,b,L,u,X,v,y,q;return g.B(function(M){if(M.Z==1){if(Q.Sm())return M.return(Promise.reject(Error(Q.status.error||"disposed")));Q.timeout.start();z=g.BP.Jb();return g.Y(M,Q.LZ,2)}g.BP.gU("gtfta",z);H=Q.Z.aB();if(H.isEnded())return Q.wP("ended_in_finishTransition"),M.return(Promise.reject(Error(Q.status.error||"")));if(!Q.D||!ZF(Q.D))return Q.wP("next_mse_closed"),M.return(Promise.reject(Error(Q.status.error||"")));if(Q.B.AB()!==Q.D)return Q.wP("next_mse_mismatch"),M.return(Promise.reject(Error(Q.status.error|| +"")));f=I0Y(Q);b=f.ym;L=f.Wx;u=f.DZ;Q.Z.MO(!1,!0);X=ASL(H,b,u,!Q.B.getVideoData().isAd());Q.B.setMediaElement(X);(v=Q.Z.T0())&&Q.B.BR(v.Fs,v.RZ);Q.N&&(Q.B.seekTo(Q.B.getCurrentTime()+.001,{wd:!0,aL:3,lr:"gapless_pseudo"}),X.play(),P2());y=H.TL();y.cpn=Q.Z.getVideoData().clientPlaybackNonce;y.st=""+b;y.et=""+u;Q.B.On("gapless",y);Q.Z.On("gaplessTo",{cpn:Q.B.getVideoData().clientPlaybackNonce});q=Q.Z.getPlayerType()===Q.B.getPlayerType();Q.Z.us(L,!0,!1,q,Q.B.getVideoData().clientPlaybackNonce);Q.B.us(Q.B.getCurrentTime(), +!0,!0,q,Q.Z.getVideoData().clientPlaybackNonce);Q.B.MI();g.MH(function(){!Q.B.getVideoData().L3&&Q.B.getPlayerState().isOrWillBePlaying()&&Q.B.gF()}); +PP(Q,6);Q.dispose();return M.return(Promise.resolve())})}; +POn=function(Q){if(Q.B.getVideoData().L){var z=Q.sV.C().V("html5_gapless_suspend_next_loader")&&Q.S===1;Q.B.B2(Q.D,z,rSa(Q));PP(Q,3);s_v(Q);var H=BkA(Q);z=H.EB;H=H.Ei;z.subscribe("updateend",Q.aW,Q);H.subscribe("updateend",Q.aW,Q);Q.aW(z);Q.aW(H)}}; +s_v=function(Q){Q.Z.unsubscribe("internalvideodatachange",Q.j8,Q);Q.B.unsubscribe("internalvideodatachange",Q.j8,Q);Q.sV.C().V("html5_gapless_use_format_info_fix")&&(Q.Z.unsubscribe("internalvideoformatchange",Q.j8,Q),Q.B.unsubscribe("internalvideoformatchange",Q.j8,Q));Q.Z.unsubscribe("mediasourceattached",Q.j8,Q);Q.B.unsubscribe("statechange",Q.qH,Q)}; +ASL=function(Q,z,H,f){Q=Q.isView()?Q.mediaElement:Q;return new g.s3(Q,z,H,f)}; +PP=function(Q,z){z<=Q.status.status||(Q.status={status:z,error:null},z===5&&Q.LZ.resolve())}; +rSa=function(Q){return Q.sV.C().V("html5_gapless_no_clear_buffer_timeline")&&Q.S===1&&uE(Q.Z.getVideoData())}; +I0Y=function(Q){var z=Q.Z.aB();z=z.isView()?z.start:0;var H=Q.Z.getVideoData().isLivePlayback?Infinity:Q.Z.qj(!0);H=Math.min(Q.e8/1E3,H)+z;var f=Q.N?100:0;Q=H-Q.B.yN()+f;return{iA:z,ym:Q,Wx:H,DZ:Infinity}}; +BkA=function(Q){return{EB:Q.L.Z.oB,Ei:Q.L.B.oB}}; +aY=function(Q){g.h.call(this);var z=this;this.app=Q;this.S=this.B=this.Z=null;this.N=!1;this.L=this.D=null;this.Y=JSc(this.app.C());this.j=function(){g.MH(function(){a0A(z)})}}; +Ue9=function(Q,z,H,f,b){f=f===void 0?0:f;b=b===void 0?0:b;Q.PU()||U3(Q);Q.D=new Ts;Q.Z=z;var L=H,u=b===0;u=u===void 0?!0:u;var X=Q.app.X$(),v=X.getVideoData().isLivePlayback?Infinity:X.qj(!0)*1E3;L>v&&(L=v-200,Q.N=!0);u&&X.getCurrentTime()>=L/1E3?Q.j():(Q.B=X,u&&(u=L,L=Q.B,Q.app.Yv.addEventListener(g.Li("vqueued"),Q.j),u=isFinite(u)||u/1E3>L.getDuration()?u:0x8000000000000,Q.S=new g.fi(u,0x8000000000000,{namespace:"vqueued"}),L.addCueRange(Q.S)));u=f/=1E3;L=z.getVideoData().Z;f&&L&&Q.B&&(X=f,v=0, +z.getVideoData().isLivePlayback&&(u=Math.min(H/1E3,Q.B.qj(!0)),v=Math.max(0,u-Q.B.getCurrentTime()),X=Math.min(f,z.qj()+v)),u=unY(L,X)||f,u!==f&&Q.Z.On("qvaln",{st:f,at:u,rm:v,ct:X}));z=u;f=Q.Z;f.getVideoData().d4=!0;f.getVideoData().N=!0;f.gX(!0);L={};Q.B&&(L=Q.B.B0(),u=Q.B.getVideoData().clientPlaybackNonce,L={crt:(L*1E3).toFixed(),cpn:u});f.On("queued",L);z!==0&&f.seekTo(z+.01,{wd:!0,aL:3,lr:"videoqueuer_queued"});Q.L=new NkZ(Q.Y,Q.app.X$(),Q.Z,H,Q.app,b);H=Q.L;H.status.status!==Infinity&&(PP(H, +1),H.Z.subscribe("internalvideodatachange",H.j8,H),H.B.subscribe("internalvideodatachange",H.j8,H),H.sV.C().V("html5_gapless_use_format_info_fix")&&(H.Z.subscribe("internalvideoformatchange",H.j8,H),H.B.subscribe("internalvideoformatchange",H.j8,H)),H.Z.subscribe("mediasourceattached",H.j8,H),H.B.subscribe("statechange",H.qH,H),H.Z.subscribe("newelementrequired",H.iV,H),H.j8());return Q.D}; +a0A=function(Q){var z,H,f,b,L,u,X,v,y;g.B(function(q){switch(q.Z){case 1:if(Q.Sm()||!Q.D||!Q.Z)return q.return();Q.N&&Q.app.X$().x7(!0,!1);H=Q.app.C().V("html5_force_csdai_gapful_transition")&&((z=Q.app.X$())==null?void 0:z.getVideoData().isDaiEnabled());f=null;if(!Q.L||H){q.bT(2);break}g.jY(q,3);return g.Y(q,YQ9(Q.L),5);case 5:g.xv(q,2);break;case 3:f=b=g.OA(q);case 2:if(!Q.Z)return q.return();g.BP.UJ("vqsp",function(){Q.app.Rl(Q.Z)}); +if(!Q.Z)return q.return();L=Q.Z.aB();Q.app.C().V("html5_gapless_seek_on_negative_time")&&L&&L.getCurrentTime()<-.01&&Q.Z.seekTo(0);g.BP.UJ("vqpv",function(){Q.app.playVideo()}); +if(f||H)Q.Z?(u=f?f.message:"forced",(X=Q.B)==null||X.On("gapfulfbk",{r:u}),Q.Z.J6(u)):(v=Q.B)==null||v.On("gapsp",{});y=Q.D;U3(Q);y&&y.resolve();return q.return(Promise.resolve())}})}; +U3=function(Q,z){z=z===void 0?!1:z;if(Q.B){if(Q.S){var H=Q.B;Q.app.Yv.removeEventListener(g.Li("vqueued"),Q.j);H.removeCueRange(Q.S)}Q.B=null;Q.S=null}Q.L&&(Q.L.status.status!==6&&(H=Q.L,H.status.status!==Infinity&&H.S!==1&&H.wP("Canceled")),Q.L=null);Q.D=null;Q.Z&&!z&&Q.Z!==Q.app.ey()&&Q.Z!==Q.app.X$()&&Q.Z.v5();Q.Z&&z&&Q.Z.gq();Q.Z=null;Q.N=!1}; +cSv=function(Q){var z;return((z=Q.L)==null?void 0:z.currentVideoDuration)||-1}; +iVv=function(Q,z,H){if(Q.PU())return"qie";if(Q.Z==null||Q.Z.Uw()||Q.Z.getVideoData()==null)return"qpd";if(z.videoId!==Q.Z.Ki())return"vinm";if(cSv(Q)<=0)return"ivd";if(H!==1)return"upt";if((H=Q.L)==null)Q=void 0;else if(H.getStatus().status!==5)Q="niss";else if(xec(H.policy,H.Z,H.B,H.e8)!=null)Q="pge";else{z=BkA(H);Q=z.EB;var f=z.Ei;z=g.Mf(H.sV.C().experiments,"html5_shorts_gapless_next_buffer_in_seconds");H=H.j+z;f=X$(f.N4(),H);Q=X$(Q.N4(),H);Q=!(z>0)||f&&Q?null:"neb"}return Q!=null?Q:null}; +h1L=function(){g.vf.call(this);var Q=this;this.fullscreen=0;this.D=this.L=this.pictureInPicture=this.Z=this.B=this.inline=!1;this.S=function(){Q.Ox()}; +Wra(this.S);this.j=this.getVisibilityState(this.oJ(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.S2(),this.CK(),this.Tn(),this.Vf())}; +CD=function(Q){return!(Q.isMinimized()||Q.isInline()||Q.isBackground()||Q.S2()||Q.CK()||Q.Tn()||Q.Vf())}; +g.cP=function(Q){this.rh=Q;this.videoData=this.playerState=null}; +g.i_=function(Q,z){g.h.call(this);this.rh=Q;this.L={};this.kQ=this.D=this.S=null;this.Z=new g.cP(Q);this.B=z}; +deL=function(Q){var z=Q.experiments,H=z.Nc.bind(z);W18=H("html5_use_async_stopVideo");Deu=H("html5_pause_for_async_stopVideo");K1Y=H("html5_not_reset_media_source");H("html5_listen_for_audio_output_changed")&&(UZJ=!0);Gs=H("html5_not_reset_media_source");Vuu=H("html5_not_reset_media_source");ta=H("html5_retain_source_buffer_appends_for_debugging");YOL=H("web_watch_pip");H("html5_mediastream_applies_timestamp_offset")&&($p=!0);var f=g.Mf(z,"html5_cobalt_override_quic");f&&Z4("QUIC",+(f>0));(f=g.Mf(z, +"html5_cobalt_audio_write_ahead_ms"))&&Z4("Media.AudioWriteDurationLocal",f);(f=H("html5_cobalt_enable_decode_to_texture"))&&Z4("Media.PlayerConfiguration.DecodeToTexturePreferred",f?1:0);(Q.vz()||H("html5_log_cpu_info"))&&cJ_();Error.stackTraceLimit=50;var b=g.Mf(z,"html5_idle_rate_limit_ms");b&&Object.defineProperty(window,"requestIdleCallback",{value:function(L){return window.setTimeout(L,b)}}); +PCv(Q.S);o8=H("html5_use_ump_request_slicer");OEc=H("html5_record_now");H("html5_disable_streaming_xhr")&&(ki=!1);H("html5_byterate_constraints")&&(fu=!0);H("html5_use_non_active_broadcast_for_post_live")&&(Vj=!0);H("html5_sunset_aac_high_codec_family")&&(DU["141"]="a");H("html5_enable_encrypted_av1")&&(mq=!0)}; +meY=function(Q){return Q.slice(12).replace(/_[a-z]/g,function(z){return z.toUpperCase().replace("_","")}).replace("Dot",".")}; +wiv=function(Q){var z={},H;for(H in Q.experiments.flags)if(H.startsWith("cobalt_h5vcc")){var f=meY(H),b=g.Mf(Q.experiments,H);f&&b&&(z[f]=Z4(f,b))}return z}; +hY=function(Q,z,H,f,b){b=b===void 0?[]:b;g.h.call(this);this.rh=Q;this.sY=z;this.D=H;this.segments=b;this.Z=void 0;this.B=new Map;b.length&&(this.Z=b[0])}; +kFA=function(Q){if(!(Q.segments.length<2)){var z=Q.segments.shift();if(z){var H=z.Z,f=[];if(H.size){H=g.n(H.values());for(var b=H.next();!b.done;b=H.next()){b=g.n(b.value);for(var L=b.next();!L.done;L=b.next()){L=L.value;for(var u=g.n(L.segments),X=u.next();!X.done;X=u.next())(X=WP(X.value))&&f.push(X);L.removeAll()}}}(H=WP(z))&&f.push(H);f=g.n(f);for(H=f.next();!H.done;H=f.next())Q.B.delete(H.value);z.dispose()}}}; +DC=function(Q,z,H,f){if(!Q.Z||z>H)return!1;z=new hY(Q.rh,z,H,Q.Z,f);f=g.n(f);for(H=f.next();!H.done;H=f.next()){H=H.value;var b=WP(H);b&&b!==WP(Q.Z)&&Q.B.set(b,[H])}Q=Q.Z;Q.Z.has(z.G1())?Q.Z.get(z.G1()).push(z):Q.Z.set(z.G1(),[z]);return!0}; +lK=function(Q,z){return Q.B.get(z)}; +TkA=function(Q,z,H){Q.B.set(z,H)}; +KO=function(Q,z,H,f,b,L){return new e1J(H,H+(f||0),!f,z,Q,b,L)}; +e1J=function(Q,z,H,f,b,L,u){g.h.call(this);this.sY=Q;this.L=z;this.B=H;this.type=f;this.D=b;this.videoData=L;this.KI=u;this.Z=new Map;OC(L)}; +WP=function(Q){return Q.videoData.clientPlaybackNonce}; +l0a=function(Q){if(Q.Z.size)for(var z=g.n(Q.Z.values()),H=z.next();!H.done;H=z.next()){H=g.n(H.value);for(var f=H.next();!f.done;f=H.next())f.value.dispose()}Q.Z.clear()}; +R1_=function(Q){this.end=this.start=Q}; +g.Vz=function(){this.Z=new Map;this.L=new Map;this.B=new Map}; +g.mV=function(Q,z,H,f){g.h.call(this);var b=this;this.api=Q;this.rh=z;this.playback=H;this.app=f;this.jm=new g.Vz;this.B=new Map;this.j=[];this.S=[];this.L=new Map;this.Wz=new Map;this.Y=new Map;this.uT=null;this.EY=NaN;this.yE=this.Xa=null;this.KH=new g.lp(function(){QNJ(b,b.EY,b.Xa||void 0)}); +this.events=new g.Pt(this);this.ZJ=15E3;this.yl=new g.lp(function(){b.f3=!0;b.playback.UL(b.ZJ);zXa(b);b.Hn(!1)},this.ZJ); +this.f3=!1;this.N=new Map;this.rT=[];this.L3=null;this.Bc=new Set;this.mq=[];this.UY=[];this.p5=[];this.Vs=[];this.Z=void 0;this.De=0;this.iT=!0;this.U=!1;this.En=[];this.WI=new Set;this.d4=new Set;this.yR=new Set;this.aN=0;this.C3=new Set;this.ys=0;this.bZ=this.gT=!1;this.qz=this.D="";this.wh=null;this.logger=new g.LH("dai");this.Po={bZn:function(){return b.B}, +scl:function(){return b.j}, +GYe:function(){return b.L}, +Zt:function(L){b.onCueRangeEnter(b.B.get(L))}, +qUT:function(L){b.onCueRangeExit(b.B.get(L))}, +n$5:function(L,u){b.B.set(L,u)}, +Y4j:function(L){b.qz=L}, +hj:function(){return b.hj()}, +yKj:function(L){return b.Y.get(L)}, +lL$:function(){return b.wh}}; +this.playback.getPlayerType();this.playback.nj(this);this.gh=this.rh.vz();g.W(this,this.KH);g.W(this,this.events);g.W(this,this.yl);this.events.X(this.api,g.Li("serverstitchedcuerange"),this.onCueRangeEnter);this.events.X(this.api,g.uc("serverstitchedcuerange"),this.onCueRangeExit)}; +LYv=function(Q,z,H,f,b,L,u,X){var v=Hz8(Q,L,L+b);Q.f3&&Q.Hz({adaftto:1});H||Q.Hz({missadcon:1,enter:L,len:b,aid:X});Q.Ze&&!Q.Ze.hf&&(Q.Ze.hf=X);Q.bZ&&Q.Hz({adfbk:1,enter:L,len:b,aid:X});var y=Q.playback;u=u===void 0?L+b:u;L===u&&!b&&Q.rh.V("html5_allow_zero_duration_ads_on_timeline")&&Q.Hz({attl0d:1});L>u&&wo(Q,{reason:"enterTime_greater_than_return",sY:L,Zm:u});var q=y.jx()*1E3;Ly&&wo(Q,{reason:"parent_return_greater_than_content_duration",Zm:u,Lbn:y});y=null;q=g.Sj(Q.S,{Zm:L},function(M,C){return M.Zm-C.Zm}); +q>=0&&(y=Q.S[q],y.Zm>L&&f98(Q,z.video_id||"",L,u,y));if(v&&y)for(q=0;q.5&&Q.Hz({ttdtb:1,delta:u,cpn:b.cpn,enter:z.adCpn,exit:H.adCpn,seek:f,skip:L});Q.api.V("html5_ssdai_enable_media_end_cue_range")&&Q.api.kR();if(z.isAd&&H.isAd){b=!!L;if(z.adCpn&&H.adCpn){var X=Q.L.get(z.adCpn);var v=Q.L.get(H.adCpn)}b?Q.Hz({igtransskip:1,enter:z.adCpn,exit:H.adCpn,seek:f,skip:L}):l_(Q,v,X,H.YV,z.YV,f,b)}else if(!z.isAd&&H.isAd){Q.qz=b.cpn;Q.api.publish("serverstitchedvideochange");X=TB(Q,"a2c");Q.Hz(X); +Q.aN=0;if(X=H.VR)Q.De=X.end;var y;H.adCpn&&(y=Q.L.get(H.adCpn));y&&Q.playback.HR(y,b,H.YV,z.YV,f,!!L)}else if(z.isAd&&!H.isAd){var q;z.adCpn&&(q=Q.L.get(z.adCpn));q&&(Q.De=0,Q.qz=q.cpn,ek(Q,q),y=TB(Q,"c2a",q),Q.Hz(y),Q.aN=1,Q.playback.HR(b,q,H.YV,z.YV,f,!!L))}}; +QU=function(Q,z,H){H=H===void 0?0:H;var f=g.Sj(Q.S,{sY:(z+H)*1E3},function(X,v){return X.sY-v.sY}); +f=f<0?(f+2)*-1:f;if(f>=0)for(var b=z*1E3,L=f;L<=f+1&&L=u.sY-H*1E3&&b<=u.Zm+H*1E3)return{MK:u,EW:z}}return{MK:void 0,EW:z}}; +Sqp=function(Q,z){var H="";(z=uWc(Q,z))&&(H=z.getId());return H?Q.L.get(H):void 0}; +uWc=function(Q,z){if(Q.qz){var H=Q.B.get(Q.qz);if(H&&H.start-200<=z&&H.end+200>=z)return H}Q=g.n(Q.B.values());for(H=Q.next();!H.done;H=Q.next())if(H=H.value,H.start<=z&&H.end>=z)return H}; +QNJ=function(Q,z,H){var f=Q.yE||Q.app.X$().getPlayerState();zD(Q,!0);Q.playback.seekTo(z,H);Q=Q.app.X$();z=Q.getPlayerState();f.isOrWillBePlaying()&&!z.isOrWillBePlaying()?Q.playVideo():f.isPaused()&&!z.isPaused()&&Q.pauseVideo()}; +zD=function(Q,z){Q.EY=NaN;Q.Xa=null;Q.KH.stop();Q.uT&&z&&Q.uT.rR();Q.yE=null;Q.uT=null}; +XFn=function(Q){var z=z===void 0?-1:z;var H=H===void 0?Infinity:H;for(var f=[],b=g.n(Q.S),L=b.next();!L.done;L=b.next())L=L.value,(L.sYH)&&f.push(L);Q.S=f;f=g.n(Q.B.values());for(b=f.next();!b.done;b=f.next())b=b.value,b.start>=z&&b.end<=H&&(Q.playback.removeCueRange(b),Q.B.delete(b.getId()),Q.Hz({rmAdCR:1}));f=QU(Q,z/1E3);z=f.MK;f=f.EW;if(z&&(f=f*1E3-z.sY,b=z.sY+f,z.durationMs=f,z.Zm=b,f=Q.B.get(z.cpn))){b=g.n(Q.j);for(L=b.next();!L.done;L=b.next())L=L.value,L.start===f.end?L.start=z.sY+ +z.durationMs:L.end===f.start&&(L.end=z.sY);f.start=z.sY;f.end=z.sY+z.durationMs}if(z=QU(Q,H/1E3).MK){var u;f="playback_timelinePlaybackId_"+z.Tq+"_video_id_"+((u=z.videoData)==null?void 0:u.videoId)+"_durationMs_"+z.durationMs+"_enterTimeMs_"+z.sY+"_parentReturnTimeMs_"+z.Zm;Q.NO("Invalid_clearEndTimeMs_"+H+"_that_falls_during_"+f+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; +v06=function(Q){Q.jm.clearAll();Q.B.clear();Q.j=[];Q.S=[];Q.L.clear();Q.Wz.clear();Q.Y.clear();Q.N.clear();Q.rT=[];Q.L3=null;Q.Bc.clear();Q.mq=[];Q.UY=[];Q.p5=[];Q.Vs=[];Q.En=[];Q.WI.clear();Q.d4.clear();Q.yR.clear();Q.C3.clear();Q.f3=!1;Q.Z=void 0;Q.De=0;Q.iT=!0;Q.U=!1;Q.aN=0;Q.ys=0;Q.gT=!1;Q.bZ=!1;Q.D="";Q.yl.isActive()&&k2(Q)}; +qq_=function(Q,z,H,f,b,L){if(!Q.bZ)if(g.yVn(Q,H))Q.Hz({gdu:"undec",seg:H,itag:b});else if(z=Hg(Q,z,H,f,L),!(Q.playback.getVideoData().OZ()&&(z==null?0:z.tU)))return z}; +Hg=function(Q,z,H,f,b){var L=Q.N.get(H);if(!L){if(L=MCu(Q,z))return L;z=Q.DM(H-1,f!=null?f:2);if(b)return Q.Hz({misscue:b,sq:H,type:f,prevsstate:z==null?void 0:z.GD,prevrecord:Q.N.has(H-1)}),Q.N.get(H-1);if((z==null?void 0:z.GD)===2)return Q.Hz({adnf:1,sq:H,type:f,prevrecord:Q.N.has(H-1)}),Q.N.get(H-1)}return L}; +MCu=function(Q,z){z+=Q.Gl();if(Q.playback.getVideoData().OZ())a:{var H=1;H=H===void 0?0:H;var f=z*1E3;Q=g.n(Q.S);for(var b=Q.next();!b.done;b=Q.next()){b=b.value;var L=b.bd?b.bd*1E3:b.sY;if(f>=b.sY-H*1E3&&f<=L+b.durationMs+H*1E3){f={MK:b,EW:z};break a}}f={MK:void 0,EW:z}}else f=QU(Q,z),((H=f)==null?0:H.MK)||(f=QU(Q,z,1));var u;return(u=f)==null?void 0:u.MK}; +CXa=function(Q,z){z=z===void 0?"":z;var H=bf(z)||void 0;if(!z||!H){var f;Q.Hz({adcfg:(f=z)==null?void 0:f.length,dcfg:H==null?void 0:H.length})}return H}; +tCa=function(Q){if(Q.En.length)for(var z=g.n(Q.En),H=z.next();!H.done;H=z.next())Q.onCueRangeExit(H.value);z=g.n(Q.B.values());for(H=z.next();!H.done;H=z.next())Q.playback.removeCueRange(H.value);z=g.n(Q.j);for(H=z.next();!H.done;H=z.next())Q.playback.removeCueRange(H.value);Q.B.clear();Q.j=[];Q.jm.clearAll();Q.Z||(Q.iT=!0)}; +l_=function(Q,z,H,f,b,L,u){if(z&&H){Q.qz=H.cpn;ek(Q,H);var X=TB(Q,"a2a",H);Q.Hz(X);Q.aN++;Q.playback.HR(z,H,f||0,b||0,!!L,!!u)}else Q.Hz({misspbkonadtrans:1,enter:(H==null?void 0:H.cpn)||"",exit:(z==null?void 0:z.cpn)||"",seek:L,skip:u})}; +pF8=function(Q,z,H,f){if(f)for(f=0;fH){var L=b.end;b.end=z;E0a(Q,H,L)}else if(b.start>=z&&b.startH)b.start=H;else if(b.end>z&&b.end<=H&&b.start=z&&b.end<=H){Q.playback.removeCueRange(b);if(Q.En.includes(b))Q.onCueRangeExit(b);Q.j.splice(f,1);continue}f++}else E0a(Q,z,H)}; +E0a=function(Q,z,H){z=Q.h1(z,H);H=!0;g.qI(Q.j,z,function(u,X){return u.start-X.start}); +for(var f=0;f0){var b=Q.j[f],L=Q.j[f-1];if(Math.round(L.end/1E3)>=Math.round(b.start/1E3)){L.end=b.end;b!==z?Q.playback.removeCueRange(b):H=!1;Q.j.splice(f,1);continue}}f++}if(H)for(Q.playback.addCueRange(z),z=Q.playback.Rc("serverstitchedcuerange",36E5),z=g.n(z),H=z.next();!H.done;H=z.next())Q.B.delete(H.value.getId())}; +fJ=function(Q,z,H){if(H===void 0||!H){H=g.n(Q.rT);for(var f=H.next();!f.done;f=H.next()){f=f.value;if(z>=f.start&&z<=f.end)return;if(z===f.end+1){f.end+=1;return}}Q.rT.push(new R1_(z))}}; +g.yVn=function(Q,z){Q=g.n(Q.rT);for(var H=Q.next();!H.done;H=Q.next())if(H=H.value,z>=H.start&&z<=H.end)return!0;return!1}; +be=function(Q,z,H){var f;if(f=Q.playback.getVideoData().OZ()&&Q.rh.V("html5_lifa_extent_last_unfinished_ad_cue_range")||Q.rh.V("html5_ssdai_extent_last_unfinished_ad_cue_range"))f=(f=Q.L.get(z))&&f.PY?(Q=Q.Y.get(f==null?void 0:f.PY))&&Q.slice(-1)[0].cpn===z:!1;return f&&H===2?1E3:0}; +f98=function(Q,z,H,f,b){var L;z={reason:"overlapping_playbacks",wrq:z,sY:H,Zm:f,zse:b.Tq,Bxm:((L=b.videoData)==null?void 0:L.videoId)||"",wem:b.durationMs,PF$:b.sY,xFT:b.Zm};wo(Q,z)}; +wo=function(Q,z,H){Q.playback.gK(z,H)}; +n0L=function(Q,z){var H=[];Q=Q.Y.get(z);if(!Q)return[];Q=g.n(Q);for(z=Q.next();!z.done;z=Q.next())z=z.value,z.cpn&&H.push(z.cpn);return H}; +g0a=function(Q,z,H){var f=0;Q=Q.Y.get(H);if(!Q)return-1;Q=g.n(Q);for(H=Q.next();!H.done;H=Q.next()){if(H.value.cpn===z)return f;f++}return-1}; +Zzk=function(Q,z){var H=0;Q=Q.Y.get(z);if(!Q)return 0;Q=g.n(Q);for(z=Q.next();!z.done;z=Q.next())z=z.value,z.durationMs!==0&&z.Zm!==z.sY&&H++;return H}; +Gkk=function(Q,z,H){var f=!1;if(H&&(H=Q.Y.get(H))){H=g.n(H);for(var b=H.next();!b.done;b=H.next())b=b.value,b.durationMs!==0&&b.Zm!==b.sY&&(b=b.cpn,z===b&&(f=!0),f&&!Q.d4.has(b)&&(Q.Hz({decoratedAd:b}),Q.d4.add(b)))}}; +zXa=function(Q){Q.gh&&Q.Hz({adf:"0_"+((new Date).getTime()/1E3-Q.ys)+"_isTimeout_"+Q.f3})}; +Hz8=function(Q,z,H){if(Q.mq.length)for(var f=g.n(Q.mq),b=f.next(),L={};!b.done;L={uI:void 0},b=f.next()){L.uI=b.value;b=L.uI.startSecs*1E3;var u=L.uI.NB*1E3+b;if(z>b&&zb&&H0&&f>z*1E3+Q.TQ5)&&(f=AVu(Q,H))){z=!1;H=void 0;f=g.n(f.segments);for(b=f.next();!b.done;b=f.next()){b=b.value;if(z){H=b;break}WP(b)===Q.qz&&(z=!0)}f=void 0;if(H)f=WP(H);else if(z){var L;f=(L=Q.timeline.Z)==null?void 0:WP(L)}if(f)Q.finishSegmentByCpn(Q.qz,f,2,void 0);else{var u;Q.api.On("ssap",{mfnc:1,mfncc:(u=Q.timeline.Z)== +null?void 0:WP(u)})}}}}; +JVA=function(Q){return Q.api.V("html5_force_ssap_gapful_switch")||Q.api.V("html5_ssap_enable_legacy_browser_logic")&&!p3()}; +BFn=function(Q,z,H,f){Q.NA.set(z,f);rVA(Q,z,H);sN_(Q,H)}; +BN=function(Q,z){Q=lK(Q.timeline,z);return(Q==null?0:Q.length)?Q[0].G1():0}; +PN=function(Q,z){var H=H===void 0?!1:H;var f=Q.timeline.Z;if(!f)return{clipId:"",hB:0};var b=PXA(Q,z,H);if(b)return{clipId:WP(b)||"",hB:b.G1()};Q.api.On("mci",{cs:WP(f),mt:z,tl:S8(Q),invt:!!H});return{clipId:"",hB:0}}; +kY=function(Q){var z=Q.timeline.Z;if(!z)return 0;Q=0;if(z.Z.size===0)return(z.AT()-z.G1())/1E3;z=z.Z.values();z=g.n(z);for(var H=z.next();!H.done;H=z.next()){H=g.n(H.value);for(var f=H.next();!f.done;f=H.next())f=f.value,Q+=(f.AT()-f.G1())/1E3}return Q}; +Uwu=function(Q,z){return(Q=a9c(Q,z*1E3))?Q.G1():0}; +cVc=function(Q,z){var H=lK(Q.timeline,z);z=0;if(H==null?0:H.length)for(Q=g.n(H),H=Q.next();!H.done;H=Q.next())H=H.value,z+=(H.AT()-H.G1())/1E3;else return kY(Q);return z}; +a9c=function(Q,z){if(Q=lK(Q.timeline,Q.qz)){Q=g.n(Q);for(var H=Q.next();!H.done;H=Q.next())if(H=H.value,H.G1()<=z&&H.AT()>=z)return H}}; +izZ=function(Q){var z=Q.playback.getVideoData();Q.qz&&(Q=Q.Vz.get(Q.qz))&&(z=Q);return z}; +AVu=function(Q,z,H){H=H===void 0?!1:H;var f=Q.timeline.Z;if(f){f=f.Z;var b=Array.from(f.keys());g.vY(b);z=g.Sj(b,z);z=f.get(b[z<0?(z+2)*-1:z]);if(!H&&z){H=g.n(z);for(z=H.next();!z.done;z=H.next())if(z=z.value,z.G1()!==z.AT())return z;return Q.timeline}return z&&z.length>0?z[z.length-1]:void 0}}; +PXA=function(Q,z,H){H=H===void 0?!1:H;var f=AVu(Q,z,H);if(f){if(Q=f.segments,Q.length){for(var b=g.n(Q),L=b.next();!L.done;L=b.next())if(L=L.value,L.G1()<=z&&L.AT()>z)return L;if(H&&f.G1()===f.AT())return Q[0]}}else Q.api.On("ssap",{ctnf:1})}; +Oz8=function(Q,z){var H;if(Q.E2)for(H=Q.nD.shift();H&&H!==Q.E2;)H=Q.nD.shift();else H=Q.nD.shift();if(H){if(Q.J9.has(H))hXA(Q,H);else if(z===3||z===4)Q.Ia.stop(),Q.api.playVideo(1,Q.api.V("html5_ssap_keep_media_on_finish_segment"));Q.NA.set(Q.qz,z);Q.api.On("ssap",{onvftn:1});sN_(Q,H);return!1}Q.api.On("ssap",{onvftv:1});Q.Ia.stop();return!0}; +hXA=function(Q,z){z=lK(Q.timeline,z);if(z==null?0:z.length)Q.api.pauseVideo(),Q.Ia.start(z[0].KI)}; +sN_=function(Q,z){var H=Q.playback.getVideoData(),f=H.clientPlaybackNonce;Q.yI&&(Q.events.DS(Q.yI),Q.yI=null,Q.playback.B3());var b=Q.qz,L=!1;if(b==="")b=f,L=!0;else if(b===void 0){var u=Q.playback.cT();u&&Q.timeline.B.has(u)&&(b=u);Q.api.On("ssap",{mcc:b+";"+z});Q.playback.h7(new oj("ssap.timelineerror",{e:"missing_current_cpn",pcpn:b,ccpn:z}))}if(b===z)L&&H&&WYa(Q,H,L);else{u=Q.NA.get(b);if(!L&&(!u||u!==3&&u!==5&&u!==6&&u!==7)){var X=Q.api.kR(Q.qz);Q.api.On("ssap",{nmec:X,cpc:Q.qz,ec:z})}u&&u!== +2||Q.r5();Q.qz=z;Q.r5();z=lK(Q.timeline,Q.qz);if(z==null?0:z.length){z=z[0];X=z.getType();b!==f&&(Q.PK=b,H=Q.Vz.get(b));u?Q.NA.delete(b):u=L?1:2;Q.api.V("html5_ssap_pacf_qoe_ctmp")&&X===2&&!z.B&&(Q.yI=Q.events.X(Q.api,"onVideoProgress",Q.J$m));Q.api.On("ssapt",{ostro:u,pcpn:b,ccpn:Q.qz});a:{var v=Q.qz;if(!Q.B7.has(v))for(var y=g.n(Q.B7),q=y.next();!q.done;q=y.next()){var M=g.n(q.value);q=M.next().value;M=M.next().value;if(M.getId().includes(v)){v=q;break a}}}y=Q.api.C().V("html5_ssap_insert_su_before_nonvideo")&& +v!==Q.qz;Q.playback.Vc(v,y);v=Math.max(0,LJ(Q,b));y=Q.playback.getCurrentTime();y=Math.max(0,y-BN(Q,Q.qz)/1E3);q=z.getVideoData();M=u===3||u===5||u===6||u===7;if(Q.api.V("html5_ssap_skip_illegal_seeking")){var C=Q.playback.getPlayerState();C=!g.w(C,8)&&g.w(C,16);M=M||C;C&&Q.api.On("ssap",{iis:1})}Q.playback.H9(b,Q.qz,v,y,!1,M,Q.playback.getPlayerState(),!0);Q.api.On("ssapt",{ostri:u,pcpn:b,ccpn:Q.qz});var t;Q.playback.F0(b,Q.qz,f,q,(t=Q.oC.get(b))!=null?t:(0,g.IE)(),H);Q.oC.delete(b);L?H=void 0:H|| +Q.api.On("ssap",{pvdm:b+";"+Q.qz,pvdmc:Q.qz===f?"1":"0"});Q.api.On("ssap",{tpac:b+";"+Q.qz,tpcc:f,tpv:(q==null?0:q.EZ())?"1":"0"},!1,1);Q.api.C().V("html5_ssap_cleanup_player_switch_ad_player")&&Q.api.n_();Q.api.publish("videodatachange","newdata",q,X,H,u);z.B||Q.playback.getVideoData().publish("dataupdated");Q.J9.delete(b);Q.E2="";q&&X===1?WYa(Q,q):Q.playback.On("ssap",{nis:Q.qz});X===2?Q.aN++:Q.aN=0}}}; +WYa=function(Q,z,H){H=H===void 0?!1:H;if(z.startSeconds&&Q.XH){var f=z.startSeconds;z=lK(Q.timeline,z.clientPlaybackNonce);if(z==null?0:z.length)f+=z[0].G1()/1E3,Q.api.V("htm5_ssap_ignore_initial_seek_if_too_big")&&f>=Q.EF()||(Q.playback.seekTo(f,{Rr:!0}),Q.XH=!1,Q.playback.On("ssap",{is:Q.qz,co:H?"1":"0",tse:f.toFixed()}))}}; +rVA=function(Q,z,H){z=lK(Q.timeline,z);if(z!=null&&z.length&&(z=AVu(Q,z[0].G1()))){z=g.n(z.segments);for(var f=z.next();!f.done;f=z.next()){f=f.value;if(WP(f)===H)break;if(f=WP(f)){var b=Q.B7.get(f);b&&Q.playback.removeCueRange(b);Q.B7.delete(f)}}}}; +UR=function(Q){return Q.playback.getVideoData().clientPlaybackNonce}; +hxA=function(Q,z){if(Q.V5&&Q.qz!==z)return!1;if(Q.Ip)return!0;if(z=Q.B7.get(z))if(z=z.getId().split(","),z.length>1)for(var H=0;HL)return ue(Q,"enterAfterReturn enterTimeMs="+b+" is greater than parentReturnTimeMs="+L.toFixed(3),u,X),"";var y=v.jx()*1E3;if(by)return v="returnAfterDuration parentReturnTimeMs="+L.toFixed(3)+" is greater than parentDurationMs="+y+". And timestampOffset in seconds is "+ +v.ex(),ue(Q,v,u,X),"";y=null;for(var q=g.n(Q.B),M=q.next();!M.done;M=q.next()){M=M.value;if(b>=M.sY&&bM.sY)return ue(Q,"overlappingReturn",u,X),"";if(L===M.sY)return ue(Q,"outOfOrder",u,X),"";b===M.Zm&&(y=M)}u="cs_childplayback_"+VCv++;X={VR:SQ(f,!0),e8:Infinity,target:null};var C={Tq:u,playerVars:z,playerType:H,durationMs:f,sY:b,Zm:L,Qt:X};Q.B=Q.B.concat(C).sort(function(G,x){return G.sY-x.sY}); +y?dwn(Q,y,{VR:SQ(y.durationMs,!0),e8:y.Qt.e8,target:C}):(z={VR:SQ(b,!1),e8:b,target:C},Q.S.set(z.VR,z),v.addCueRange(z.VR));z=!0;if(Q.Z===Q.app.X$()&&(v=v.getCurrentTime()*1E3,v>=C.sY&&vz)break;if(L>z)return{MK:f,EW:z-b};H=L-f.Zm/1E3}return{MK:null,EW:z-H}}; +DwY=function(Q,z,H){H=H===void 0?{}:H;var f=Q.j||Q.app.X$().getPlayerState();yU(Q,!0);z=isFinite(z)?z:Q.Z.yf();var b=l9k(Q,z);z=b.EW;var L=(b=b.MK)&&!XF(Q,b)||!b&&Q.Z!==Q.app.X$(),u=z*1E3;u=Q.L&&Q.L.start<=u&&u<=Q.L.end;!L&&u||vg(Q);b?mwc(Q,b,z,H,f):RXc(Q,z,H,f)}; +RXc=function(Q,z,H,f){var b=Q.Z,L=Q.app.X$();b!==L&&Q.app.Kb();b.seekTo(z,Object.assign({},{lr:"application_timelinemanager"},H));QpY(Q,f)}; +mwc=function(Q,z,H,f,b){var L=XF(Q,z);if(!L){z.playerVars.prefer_gapless=!0;Q.rh.V("html5_enable_ssap_entity_id")&&(z.playerVars.cached_load=!0);var u=new g.Kv(Q.rh,z.playerVars);u.Tq=z.Tq;Q.api.l1(u,z.playerType)}u=Q.app.X$();L||u.addCueRange(z.Qt.VR);u.seekTo(H,Object.assign({},{lr:"application_timelinemanager"},f));QpY(Q,b)}; +QpY=function(Q,z){Q=Q.app.X$();var H=Q.getPlayerState();z.isOrWillBePlaying()&&!H.isOrWillBePlaying()?Q.playVideo():z.isPaused()&&!H.isPaused()&&Q.pauseVideo()}; +yU=function(Q,z){Q.Ze=NaN;Q.U=null;Q.N.stop();Q.D&&z&&Q.D.rR();Q.j=null;Q.D=null}; +XF=function(Q,z){Q=Q.app.X$();return!!Q&&Q.getVideoData().Tq===z.Tq}; +zT9=function(Q){var z=Q.B.find(function(b){return XF(Q,b)}); +if(z){var H=Q.app.X$();vg(Q);var f=new g.HR(8);z=eX_(Q,z)/1E3;RXc(Q,z,{},f);H.On("forceParentTransition",{childPlayback:1});Q.Z.On("forceParentTransition",{parentPlayback:1})}}; +feu=function(Q,z,H){z=z===void 0?-1:z;H=H===void 0?Infinity:H;for(var f=z,b=H,L=g.n(Q.S),u=L.next();!u.done;u=L.next()){var X=g.n(u.value);u=X.next().value;X=X.next().value;X.e8>=f&&X.target&&X.target.Zm<=b&&(Q.Z.removeCueRange(u),Q.S.delete(u))}f=z;b=H;L=[];u=g.n(Q.B);for(X=u.next();!X.done;X=u.next())if(X=X.value,X.sY>=f&&X.Zm<=b){var v=Q;v.Y===X&&vg(v);XF(v,X)&&v.app.Kb()}else L.push(X);Q.B=L;f=l9k(Q,z/1E3);z=f.MK;f=f.EW;z&&(f*=1E3,HMn(Q,z,f,z.Zm===z.sY+z.durationMs?z.sY+f:z.Zm));(z=l9k(Q,H/1E3).MK)&& +ue(Q,"Invalid clearEndTimeMs="+H+" that falls during playback={timelinePlaybackId="+(z.Tq+" video_id="+z.playerVars.video_id+" durationMs="+z.durationMs+" enterTimeMs="+z.sY+" parentReturnTimeMs="+z.Zm+"}.Child playbacks can only have duration updated not their start."))}; +HMn=function(Q,z,H,f){z.durationMs=H;z.Zm=f;f={VR:SQ(H,!0),e8:H,target:null};dwn(Q,z,f);XF(Q,z)&&Q.app.X$().getCurrentTime()*1E3>H&&(z=eX_(Q,z)/1E3,H=Q.app.X$().getPlayerState(),RXc(Q,z,{},H))}; +ue=function(Q,z,H,f){Q.Z.On("timelineerror",{e:z,cpn:H?H:void 0,videoId:f?f:void 0})}; +LFk=function(Q){Q&&Q!=="web"&&bMc.includes(Q)}; +CJ=function(Q,z){g.h.call(this);var H=this;this.data=[];this.L=Q||NaN;this.B=z||null;this.Z=new g.lp(function(){qc(H);Mc(H)}); +g.W(this,this.Z)}; +uzL=function(Q){qc(Q);return Q.data.map(function(z){return z.value})}; +qc=function(Q){var z=(0,g.IE)();Q.data.forEach(function(H){H.expireL?{width:z.width,height:z.width/b,aspectRatio:b}:bb?Q.width=Q.height*H:Hv;if(nJ(Q)){var y=Mgp(Q);var q=isNaN(y)||g.Ta||HK&&g.$w||v;kw&&!g.nr(601)?y=b.aspectRatio:q=q||L.controlsType==="3";q?v?(q=L.V("place_shrunken_video_on_left_of_player")?16:Q.getPlayerSize().width-z.width-16,y=Math.max((Q.getPlayerSize().height-z.height)/2,0),q=new g.XL(q,y,z.width, +z.height),Q.OV.style.setProperty("border-radius","12px")):q=new g.XL(0,0,z.width,z.height):(H=b.aspectRatio/y,q=new g.XL((z.width-b.width/H)/2,(z.height-b.height)/2,b.width/H,b.height),H===1&&g.$w&&(y=q.width-z.height*y,y>0&&(q.width+=y,q.height+=y)));g.MP(Q.element,"ytp-fit-cover-video",Math.max(q.width-b.width,q.height-b.height)<1);if(X||Q.iG)Q.OV.style.display="";Q.IS=!0}else{q=-z.height;kw?q*=window.devicePixelRatio:g.eN&&(q-=window.screen.height);q=new g.XL(0,q,z.width,z.height);if(X||Q.iG)Q.OV.style.display= +"none";Q.IS=!1}vr(Q.dK,q)||(Q.dK=q,g.rm(L)?(Q.OV.style.setProperty("width",q.width+"px","important"),Q.OV.style.setProperty("height",q.height+"px","important")):g.FL(Q.OV,q.getSize()),f=new g.Er(q.left,q.top),g.Z5(Q.OV,Math.round(f.x),Math.round(f.y)),f=!0);z=new g.XL((z.width-b.width)/2,(z.height-b.height)/2,b.width,b.height);vr(Q.NJ,z)||(Q.NJ=z,f=!0);g.M2(Q.OV,"transform",H===1?"":"scaleX("+H+")");u&&v!==Q.Xd&&(v&&(Q.OV.addEventListener(qF,Q.Dg),Q.OV.addEventListener("transitioncancel",Q.Dg),Q.OV.classList.add(g.DJ.VIDEO_CONTAINER_TRANSITIONING)), +Q.Xd=v,Q.app.Yv.publish("playerUnderlayVisibilityChange",Q.Xd?"transitioning":"hidden"));return f}; +pvk=function(){this.csn=g.Jl();this.clientPlaybackNonce=null;this.elements=new Set;this.L=new Set;this.Z=new Set;this.B=new Set}; +n4n=function(Q){if(Q.csn!==g.Jl())if(Q.csn==="UNDEFINED_CSN")Q.csn=g.Jl();else{var z=g.Jl(),H=g.ox();if(z&&H){Q.csn=z;for(var f=g.n(Q.elements),b=f.next();!b.done;b=f.next())(b=b.value.visualElement)&&b.isClientVe()&&z&&H&&(g.FZ("combine_ve_grafts")?oA(xA(),b,H):g.zr(g.kG)(void 0,z,H,b))}if(z)for(Q=g.n(Q.Z),H=Q.next();!H.done;H=Q.next())(H=H.value.visualElement)&&H.isClientVe()&&g.fa(z,H)}}; +g.gQ=function(Q,z,H,f){g.h.call(this);var b=this;this.logger=new g.LH("App");this.yx=this.M7=!1;this.I9={};this.ZU=[];this.WF=!1;this.VS=null;this.intentionalPlayback=!1;this.b5=!0;this.Q_=!1;this.Sa=this.Ub=null;this.Nq=!0;this.mediaElement=this.GL=null;this.Gk=NaN;this.AQ=!1;this.Cp=this.rD=this.OY=this.Xh=this.screenLayer=this.playlist=null;this.Kd=[];this.HW=0;this.Po={CG:function(){return b.Qs}, +t$:function(){return b.OY}, +L$:function(u){b.OY=u}, +Vj:function(u,X){b.OY&&b.OY.Vj(u,X)}}; +this.logger.debug("constructor begin");this.config=HZa(z||{});this.webPlayerContextConfig=H;EFu();z=this.config.args||{};this.rh=new hE(z,H,H?H.canaryState:this.config.assets.player_canary_state,f,this);g.W(this,this.rh);deL(this.rh);f=wiv(this.rh);this.rh.vz()&&this.Kd.push({key:"h5vcc",value:f});this.rh.experiments.Nc("jspb_serialize_with_worker")&&TRn();this.rh.experiments.Nc("gzip_gel_with_worker")&&Wkn();this.rh.B&&!g49&&(window.addEventListener($h?"touchstart":"click",F1A,{capture:!0,passive:!0}), +g49=!0);this.V("html5_onesie")&&(this.Pp=new r9(this.rh),g.W(this,this.Pp));this.hx=LF(JE(this.rh)&&!0,z.enablesizebutton);this.uO=LF(!1,z.player_wide);this.visibility=new h1L;g.W(this,this.visibility);this.V("web_log_theater_mode_visibility")&&this.Kx(LF(!1,z.player_wide));this.M7=LF(!1,z.external_list);this.events=new g.Pt(this);g.W(this,this.events);this.V("start_client_gcf")&&(r6(aw(),{QX:yH,s1:q96()}),this.y4=aw().resolve(yH),tyv(this.y4));this.qx$=new MW;g.W(this,this.qx$);this.ZL=new pvk;f= +new CR;this.Yv=new g.og(this,f);g.W(this,this.Yv);this.template=new y3c(this);g.W(this,this.template);this.appState=1;this.JT=ZM9(this);g.W(this,f);f={};this.vL=(f.internalvideodatachange=this.nw,f.playbackready=this.aS5,f.playbackstarted=this.kq5,f.statechange=this.Mxq,f);this.jX=new qb(this.Yv);this.RB=G1Z(this);f=this.V("html5_load_wasm");z=this.V("html5_allow_asmjs");if(f&&$ua||z)this.rh.LA=qLA(this.RB,z),tK(CE(this.rh.LA,function(u){b.rh.xs=u;var X;(X=b.X$())==null||X.On("wasm",{a:u.fV})}),function(u){g.ax(u); +u="message"in u&&u.message||u.toString()||"";var X;(X=b.X$())==null||X.On("wasm",{e:u})}); +else if(f&&!$ua){var L;(L=this.X$())==null||L.On("wasm",{e:"wasm unavailable"})}this.jy=new g29(this.rh,this.RB);this.Yv.publish("csiinitialized");L=10;g.oT(this.rh)&&(L=3);kh(this.rh)&&(L=g.Mf(this.rh.experiments,"tvhtml5_unplugged_preload_cache_size"));L=new CJ(L,function(u){u!==b.QE(u.getPlayerType())&&u.v5()}); +g.W(this,L);this.Qs=new g.i_(this.rh,L);L=jp8(this);this.Qs.jF(L);FFk(this);L={};this.iD=(L.airplayactivechange=this.onAirPlayActiveChange,L.airplayavailabilitychange=this.onAirPlayAvailabilityChange,L.beginseeking=this.YC,L.sabrCaptionsDataLoaded=this.u1,L.endseeking=this.XT,L.internalAbandon=this.zQ,L.internalaudioformatchange=this.jK,L.internalvideodatachange=this.onVideoDataChange,L.internalvideoformatchange=this.vE,L.liveviewshift=this.Uin,L.playbackstalledatstart=this.y$l,L.progresssync=this.YZe, +L.onAbnormalityDetected=this.AS,L.onSnackbarMessage=this.onSnackbarMessage,L.onLoadProgress=this.onLoadProgress,L.SEEK_COMPLETE=this.cE,L.SEEK_TO=this.wqT,L.onVideoProgress=this.onVideoProgress,L.onLoadedMetadata=this.onLoadedMetadata,L.onAutoplayBlocked=this.onAutoplayBlocked,L.onPlaybackPauseAtStart=this.Gx3,L.playbackready=this.KMn,L.statechange=this.B9,L.newelementrequired=this.XU,L.heartbeatparams=this.xj,L.videoelementevent=this.bS,L.drmoutputrestricted=this.onDrmOutputRestricted,L.signatureexpired= +this.a6n,L.nonfatalerror=this.LMn,L.reloadplayer=this.han,L);this.V6=new g.Pt(this);g.W(this,this.V6);this.cn=new EL;g.W(this,this.cn);this.wW=this.I0=-1;this.q9=new g.lp(this.template.resize,16,this.template);g.W(this,this.q9);this.J7=new KYL(this.Yv,this.rh,this.ey(),this);this.FS=new hY(this.rh);this.t5=new aY(this);g.W(this,this.t5);this.GP=new ro(this);g.W(this,this.GP);LFk(this.rh.Z.c);this.events.X(this.Yv,g.Li("appapi"),this.B4m);this.events.X(this.Yv,g.uc("appapi"),this.qVI);this.events.X(this.Yv, +g.Li("appprogressboundary"),this.cMe);this.events.X(this.Yv,g.uc("applooprange"),this.bE);this.events.X(this.Yv,"presentingplayerstatechange",this.BU);this.events.X(this.Yv,"resize",this.Imc);this.template.Gv(V4(document,Q));this.events.X(this.Yv,"offlineslatestatechange",this.kx$);this.events.X(this.Yv,"sabrCaptionsTrackChanged",this.oJm);this.events.X(this.Yv,"sabrCaptionsBufferedRangesUpdated",this.r$T);this.RB.K.C().yw&&J4(this.RB,"offline");this.rh.rT&&g.nA("ux",g.AY);Q=g.Mf(this.rh.experiments, +"html5_defer_fetch_att_ms");this.zT=new g.lp(this.b2h,Q,this);g.W(this,this.zT);this.Iq().EZ()&&(g.cw()&&this.Iq().De.push("remote"),xuk(this));this.jy.tick("fs");OM9(this);this.rh.rT&&J4(this.RB,"ux",!0);g.O8(this.RB.K.C())&&J4(this.RB,"embed");this.V("web_player_sentinel_is_uniplayer")||g.ax(new g.kQ("Player experiment flags missing","web_player_sentinel_is_uniplayer"));Q=this.V("web_player_sentinel_yt_experiments_sync");L=g.FZ("web_player_sentinel_yt_experiments_sync");Q!==L&&g.ax(new g.kQ("b/195699950", +{yt:Q,player:L}));H||g.ax(new g.kQ("b/179532961"));this.nF=o4Z(this);if(H=g.Mf(this.rh.experiments,"html5_block_pip_safari_delay"))this.Mg=new g.lp(this.fk,H,this),g.W(this,this.Mg);an=this.rh.ys;H=g.Mf(this.rh.experiments,"html5_performance_impact_profiling_timer_ms");H>0&&(this.G_=new g.OE(H),g.W(this,this.G_),this.events.X(this.G_,"tick",function(){b.KN&&J38.gU("apit",b.KN);b.KN=J38.Jb()})); +this.Yv.publish("applicationInitialized");this.logger.debug("constructor end")}; +o4Z=function(Q){function z(H){H.stack&&H.stack.indexOf("player")!==-1&&(Q.X$()||Q.ey()).Hm(H)} +UX.subscribe("handleError",z);Rf.push(z);return function(){UX.unsubscribe("handleError",z);var H=Rf.indexOf(z);H!==-1&&Rf.splice(H,1)}}; +jp8=function(Q){var z=new g.Kv(Q.rh,Q.config.args);Q.Yv.publish("initialvideodatacreated",z);return Z2(Q,1,z,!1)}; +FFk=function(Q){var z=Q.ey();z.setPlaybackRate(Q.rh.D?1:NKL(Q,Number(g.a4("yt-player-playback-rate"))||1));z.rZ(Q.vL,Q);z.Sv()}; +G1Z=function(Q){var z="",H=Xvp(Q);H.indexOf("//")===0&&(H=Q.rh.protocol+":"+H);var f=H.lastIndexOf("/base.js");f!==-1&&(z=H.substring(0,f+1));if(H=Error().stack)if(H=H.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))H=H[1],H.includes(z)||g.ax(Error("Player module URL mismatch: "+(H+" vs "+z+".")));z=new wP6(Q.Yv,z);IeA(Q,z);return z}; +IeA=function(Q,z){var H={};H=(H.destroyed=function(){Q.onApiChange()},H); +z.L=H}; +ZM9=function(Q){if(Q.rh.storeUserVolume){Q=g.a4("yt-player-volume")||{};var z=Q.volume;Q={volume:isNaN(z)?100:g.y4(Math.floor(z),0,100),muted:!!Q.muted}}else Q={volume:100,muted:Q.rh.mute};return Q}; +GD=function(Q){Q.mediaElement=Q.rh.deviceIsAudioOnly?new g.lt(g.fm("AUDIO")):Y2.pop()||new g.lt(g.fm("VIDEO"));g.W(Q,Q.mediaElement);var z=Q.X$();z&&z.setMediaElement(Q.mediaElement);try{Q.rh.Vs?(Q.rD&&Q.events.DS(Q.rD),Q.rD=Q.events.X(Q.mediaElement,"volumechange",Q.wcj)):(Q.mediaElement.qA(Q.JT.muted),Q.mediaElement.setVolume(Q.JT.volume/100))}catch(b){Q.wP("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(b&&typeof b==="object"&&"message"in b&&typeof b.message==="string"&&b.message.replace(/[;:,]/g, +"_")));return}g.YQ(Q.V6);A39(Q);z=Q.template;var H=Q.mediaElement.ai();z.OV=H;z.CT=!1;z.OV.parentNode||Sz(z.hc,z.OV,0);z.dK=new g.XL(0,0,0,0);E4u(z);pJ(z);H=z.OV;g.X9(H,"video-stream");g.X9(H,g.DJ.MAIN_VIDEO);var f=z.app.C();f.Ef&&H.setAttribute("data-no-fullscreen","true");f.V("html5_local_playsinline")?"playsInline"in Ij()&&(H.playsInline=!0):f.Lt&&(H.setAttribute("webkit-playsinline",""),H.setAttribute("playsinline",""));f.Ve&&z.OV&&z.X(H,"click",H.play,H);try{Q.mediaElement.activate()}catch(b){Q.wP("html5.missingapi", +2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(b&&typeof b==="object"&&"message"in b&&typeof b.message==="string"&&b.message.replace(/[;:,]/g,"_")))}}; +r3_=function(Q){if(!YI6(Q)){var z=Q.ey().aB();z&&(z=z.Bd(),z instanceof Promise&&z.catch(function(){})); +$I(Q,yu(Q.getPlayerStateObject()))}}; +A39=function(Q){var z=Q.mediaElement;sh()?Q.V6.X(z,"webkitpresentationmodechanged",Q.Hin):window.document.pictureInPictureEnabled&&(Q.V6.X(z,"enterpictureinpicture",function(){Q.z$(!0)}),Q.V6.X(z,"leavepictureinpicture",function(){Q.z$(!1)})); +lv&&(Q.V6.X(z,"webkitbeginfullscreen",function(){Q.tB(3)}),Q.V6.X(z,"webkitendfullscreen",function(){Q.tB(0)}))}; +spY=function(Q,z){var H=z.getPlayerType(),f=Q.Qs.QE(H);z!==Q.ey()&&z!==f&&(f==null||f.v5(),Q.Qs.L[H]=z)}; +BKJ=function(Q,z){z=z===void 0?!0:z;Q.logger.debug("start clear presenting player");var H;if(H=Q.Cp){H=Q.Cp;var f=Q.mediaElement;H=!!f&&f===H.mediaElement}H&&(Q.MO(),GD(Q));if(H=Q.X$())H.MO(!z),H.AY(Q.iD,Q),H.getPlayerType()!==1&&H.v5();Q.Qs.D=null;Q.logger.debug("finish clear presenting player")}; +g.P9Y=function(Q,z,H,f){var b=Q.jy;z===2&&(b=new g29(Q.rh));return new g.v9(Q.rh,z,b,Q.template,function(L,u,X){Q.Yv.publish(L,u,X)},function(){return Q.Yv.getVisibilityState()},Q.visibility,Q,H,f)}; +Z2=function(Q,z,H,f,b){Q=g.P9Y(Q,z,H,b);z=new g.hf(Q);Q.Sg=z;f&&Q.Sv();return z}; +jQ=function(Q,z){return Q.Uj(z)?Q.ey():z}; +FF=function(Q,z){var H=Q.X$(),f=Q.ey();return H&&z===f&&Q.Uj(z)&&Q.Uj(H)?H:z}; +c3a=function(Q){Q.logger.debug("start application playback");if(Q.ey().getPlayerState().isError())Q.logger.debug("start application playback done, player in error state");else{var z=xI(Q);Q.Iq().isLoaded();z&&Q.Za(6);aea(Q);bJ9(Q.RB)||Uua(Q)}}; +Uua=function(Q){if(!xI(Q)){var z=IO(Q.RB);z&&!z.created&&kBa(Q.RB)&&(Q.logger.debug("reload ad module"),z.create())}}; +aea=function(Q){Q.logger.debug("start presenter playback");var z=Q.getVideoData(),H=Q.RB;bJ9(H)||H.AX();!$ua&&H.K.V("html5_allow_asmjs")&&ywZ(H);J4(H,"embed");J4(H,"kids");J4(H,"remote");J4(H,"miniplayer");J4(H,"offline");J4(H,"unplugged");J4(H,"ypc",!1,!0);J4(H,"ypc_clickwrap",!1,!0);J4(H,"yto",!1,!0);J4(H,"webgl",!1,!0);LLv(H)||(J4(H,"captions",!0),J4(H,"endscreen"),H.XC()||H.bB(),J4(H,"creatorendscreen",!0));H.IM();Q.Yv.publish("videoready",z)}; +OL=function(Q){Q=Q.Iq();Q.EZ();return iE(Q)}; +OM9=function(Q){Q.logger.debug("start prepare initial playback");Q.hX();var z=Q.config.args;GD(Q);var H=Q.Iq();Q.Yv.A$("onVolumeChange",Q.JT);if(z&&FVY(z)){var f=Vq(Q.rh);f&&!Q.M7&&(z.fetch=0);var b=g.O8(Q.rh);b&&!Q.M7&&(z.fetch=0);oP(Q,z);g.O8(Q.rh)&&Q.jy.tick("ep_pr_s");if(!f||Q.M7)if(b&&!Q.M7)iML(Q);else if(!H.EZ())Q.playlist.onReady(function(){Jw(Q)})}Q.Rl(Q.ey()); +g.w(Q.ey().getPlayerState(),128)||(z=nUA(!Q.rh.deviceIsAudioOnly),z==="fmt.noneavailable"?Q.wP("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):z==="html5.missingapi"?Q.wP(z,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):H&&H.EZ()&&OL(Q)&&(Q.rh.C2||Q.rh.dQ)?Nc(Q):H.TK?Q.Yv.mutedAutoplay({durationMode:H.mutedAutoplayDurationMode}):g.a4("yt-player-playback-on-reload")?(g.qV("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!Q.rh.L3}),g.Pw("yt-player-playback-on-reload",!1), +Nc(Q)):Rl(Q.rh)||hTZ(Q),g.wm(Q.rh)||wS(Q.rh)==="MWEB"?(g.Q5(g.HH(),function(){IP(Q)}),g.Q5(g.HH(),function(){xA8()})):(IP(Q),xA8()),Q.logger.debug("finish prepare initial playback"))}; +IP=function(Q){if(!Q.V("use_rta_for_player"))if(Q.V("fetch_att_independently"))g.Re(Q.zT);else{var z=Q.getVideoData().botguardData;z&&g.PB(z,Q.rh,Q.getVideoData().iF||"")}}; +hTZ=function(Q){Q.logger.debug("start initialize to CUED mode");Q.Yv.publish("initializingmode");Q.Za(2);Q.V("embeds_web_enable_defer_loading_remote_js")&&g.Tt(Q.rh)?g.Q5(g.HH(),function(){J4(Q.RB,"remote")}):J4(Q.RB,"remote"); +J4(Q.RB,"miniplayer");Q.logger.debug("initialized to CUED mode")}; +Nc=function(Q){Q.logger.debug("start initialize application playback");var z=Q.ey();if(g.w(z.getPlayerState(),128))return!1;var H=z.getVideoData();OL(Q)&&Q.rh.dQ&&(Y2.length&&Q.yx?(Aw(Q,{muted:!1,volume:Q.JT.volume},!1),YI(Q,!1)):Y2.length||Q.JT.muted||(Aw(Q,{muted:!0,volume:Q.JT.volume},!1),YI(Q,!0)));OL(Q)&&g.O8(Q.rh)&&H.mutedAutoplay&&(Aw(Q,{muted:!0,volume:Q.JT.volume},!1),YI(Q,!0));H.z6&&Aw(Q,{muted:!0,volume:Q.JT.volume},!1);WFZ(Q,1,H,!1);Q.Yv.publish("initializingmode");Q.Rl(Q.ey());Q.Za(3); +var f;if(!(f=!Q.rh.q0)){if(f=Q.Cp){f=Q.Cp;var b=Q.mediaElement;f=!!b&&b===f.mediaElement}f=f&&Q.WF}f&&(Q.MO(),GD(Q),z.setMediaElement(Q.mediaElement));z.v2();if(g.w(z.getPlayerState(),128))return!1;H.rz||$I(Q,3);return Q.WF=!0}; +xI=function(Q){Q=Ig(Q.RB);return!!Q&&Q.loaded}; +Dua=function(Q,z){if(!Q.GL)return!1;var H=Q.GL.startTimeMs*.001-1,f=Q.GL.endTimeMs*.001;Q.GL.type==="repeatChapter"&&f--;return Math.abs(z-H)<=1E-6||Math.abs(z-f)<=1E-6||z>=H&&z<=f}; +duL=function(Q){var z=Q.X$();z&&f9(z.getVideoData())&&!z.qm()&&(z=KFc(Q)*1E3-Q.getVideoData().lD,Q.V("html5_gapless_new_slr")?(Q=Q.GP,Vgk(Q.app,"gaplessshortslooprange"),z=new g.fi(0,z,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(Q=Q.app.X$())&&Q.addCueRange(z)):Q.setLoopRange({startTimeMs:0,endTimeMs:z,type:"shortsLoop"}))}; +muJ=function(Q){var z=Q.ey();if(!(g.w(z.getPlayerState(),64)&&Q.Iq().isLivePlayback&&Q.GL.startTimeMs<5E3)){if(Q.GL.type==="repeatChapter"){var H,f=(H=aO6(Q.xt()))==null?void 0:H.fE(),b;H=(b=Q.getVideoData())==null?void 0:b.r7;f instanceof g.d3&&H&&(b=H[Mg(H,Q.GL.startTimeMs)],f.renderChapterSeekingAnimation(0,b.title));isNaN(Number(Q.GL.loopCount))?Q.GL.loopCount=0:Q.GL.loopCount++;Q.GL.loopCount===1&&Q.Yv.F$("innertubeCommand",Q.getVideoData().Ig)}f={lr:"application_loopRangeStart"};if(Q.GL.type=== +"clips"||Q.GL.type==="shortsLoop")f.seekSource=58;z.seekTo(Q.GL.startTimeMs*.001,f)}}; +NKL=function(Q,z){var H=Q.Yv.getAvailablePlaybackRates();z=Number(z.toFixed(2));Q=H[0];H=H[H.length-1];z<=Q?z=Q:z>=H?z=H:(Q=Math.floor(z*100+.001)%5,z=Q===0?z:Math.floor((z-Q*.01)*100+.001)/100);return z}; +KFc=function(Q,z){z=Q.QE(z);if(!z)return Q.Qs.Z.qj();z=jQ(Q,z);return rQ(Q,z.qj(),z)}; +rQ=function(Q,z,H){if(Q.Uj(H)){H=H.getVideoData();if(sL(Q))H=z;else{Q=Q.J7;for(var f=g.n(Q.B),b=f.next();!b.done;b=f.next())if(b=b.value,H.Tq===b.Tq){z+=b.sY/1E3;break}f=z;Q=g.n(Q.B);for(b=Q.next();!b.done;b=Q.next()){b=b.value;if(H.Tq===b.Tq)break;var L=b.sY/1E3;if(L1&&(b=!1);if(!Q.AQ||b!==z){H=H.lock(b?"portrait":"landscape");if(H!=null)H["catch"](function(){}); +Q.AQ=!0}}else Q.AQ&&(Q.AQ=!1,H.unlock())}; +ie=function(Q,z,H){Q.Yv.publish(z,H);var f=g.oT(Q.rh)||g.rm(Q.rh)||g.c6(Q.rh);if(H&&f){switch(z){case "cuerangemarkersupdated":var b="onCueRangeMarkersUpdated";break;case "cuerangesadded":b="onCueRangesAdded";break;case "cuerangesremoved":b="onCueRangesRemoved"}b&&Q.Yv.F$(b,H.map(function(L){return{getId:function(){return this.id}, +end:L.end,id:L.getId(),namespace:L.namespace==="ad"?"ad":"",start:L.start,style:L.style,visible:L.visible}}))}}; +hw=function(Q,z,H,f,b,L){H=H===void 0?!0:H;var u=Q.QE(b);u&&(u.getPlayerType()===2&&!Q.Uj(u)||g.NY(u.getVideoData()))||(Q.getPresentingPlayerType()===3?Ig(Q.RB).wM("control_seek",z,H):(u&&u===Q.ey()&&Q.GL&&!Dua(Q,z)&&Q.setLoopRange(null),Q.seekTo(z,H,f,b,L)))}; +yyL=function(Q,z,H,f){H&&(Q.MO(),GD(Q));H=Q.X$();H.o7(z);var b=Q.getVideoData(),L={};L.video_id=b.videoId;L.adformat=b.adFormat;b.isLivePlayback||(L.start=H.getCurrentTime(),L.resume="1");b.isLivePlayback&&C9(b)&&g.xJ(Q.rh)&&(L.live_utc_start=H.JM(),L.resume="1");b.wh&&(L.vvt=b.wh);b.j&&(L.vss_credentials_token=b.j,L.vss_credentials_token_type=b.ZK);b.oauthToken&&(L.oauth_token=b.oauthToken);b.kc&&(L.force_gvi=b.kc);L.autoplay=1;L.reload_count=b.gT+1;L.reload_reason=z;b.Xo&&(L.unplugged_partner_opt_out= +b.Xo);b.LA&&(L.ypc_is_premiere_trailer=b.LA);b.playerParams&&(L.player_params=b.playerParams);Q.loadVideoByPlayerVars(L,void 0,!0,void 0,void 0,f);z==="signature"&&Q.Xh&&Uua(Q)}; +qtu=function(Q,z){Q.Iq().autonavState=z;g.Pw("yt-player-autonavstate",z);Q.Yv.publish("autonavchange",z)}; +MIL=function(Q){var z=Q.getVideoData().Uf,H=Q.rh.gh,f=Q.isInline()&&!Q.getVideoData().lq,b=Q.mediaElement;z||H||f?b.Ie():(b.Re(),Aw(Q,Q.JT))}; +Bg=function(Q){var z=IO(Q.xt());z&&z.created&&(Q.logger.debug("reset ad module"),z.destroy())}; +sL=function(Q){return Q.getVideoData().enableServerStitchedDai&&!!Q.Xh}; +CJ8=function(Q,z){z.bounds=Q.getBoundingClientRect();for(var H=g.n(["display","opacity","visibility","zIndex"]),f=H.next();!f.done;f=H.next())f=f.value,z[f]=ph(Q,f);z.hidden=!!Q.hidden}; +Xvp=function(Q){if(Q.webPlayerContextConfig){var z=Q.webPlayerContextConfig.trustedJsUrl;return z?of(z).toString():Q.webPlayerContextConfig.jsUrl}return Q.config.assets&&Q.config.assets.js?Q.config.assets.js:""}; +tIn=function(Q,z){var H=Q.QE(1);if(H){if(H.getVideoData().clientPlaybackNonce===z)return H;if((Q=Q.t5.Z)&&Q.getVideoData().clientPlaybackNonce===z)return Q}return null}; +EXa=function(Q){return Q.name==="TypeError"&&Q.stack.includes("/s/player/")&&K1()<=105}; +p$Y=function(Q){return Q.isTimeout?"NO_BID":"ERR_BID"}; +nXJ=function(){var Q=null;i5a().then(function(z){return Q=z},function(z){return Q=p$Y(z)}); +return Q}; +gXY=function(){var Q=Jj(1E3,"NO_BID");return g.Fr(eo6([i5a(),Q]).IN(p$Y),function(){Q.cancel()})}; +Wg=function(Q){return Q.zx?g.KF(g.DQ(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; +D2=function(Q){this.player=Q;this.L=this.Z=1}; +$En=function(Q,z,H,f,b,L){z.client||(z.client={});Q.player.C().V("h5_remove_url_for_get_ad_break")||(z.client.originalUrl=H);var u=yC(H),X=g.id(H)?!1:!0;(u||X)&&typeof Intl!=="undefined"&&(z.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);X=g.id(H)?!1:!0;if(u||X||f!==""){var v={};H=bv(EM(f)).split("&");var y=new Map;H.forEach(function(q){q=q.split("=");q.length>1&&y.set(q[0].toString(),decodeURIComponent(q[1].toString()))}); +y.has("bid")&&(v.bid=y.get("bid"));v.params=[];Zdc.forEach(function(q){y.has(q)&&(q={key:q,value:y.get(q)},v.params.push(q))}); +GVk(Q,v);z.adSignalsInfo=v}z.client.unpluggedAppInfo||(z.client.unpluggedAppInfo={});z.client.unpluggedAppInfo.enableFilterMode=!1;H=b.Z.cosver;H!=null&&H!=="cosver"&&(z.client.osVersion=H);H=b.Z.cplatform;H!=null&&H!=="cplatform"&&H!==""&&(z.client.platform=H);H=b.Z.cmodel;H!=null&&H!=="cmodel"&&(z.client.deviceModel=H);H=b.Z.cplayer;H!=null&&H!=="cplayer"&&(z.client.playerType=H);H=b.Z.cbrand;H!=null&&H!=="cbrand"&&(z.client.deviceMake=H);z.user||(z.user={});z.user.lockedSafetyMode=!1;(b.V("embeds_web_enable_iframe_api_send_full_embed_url")|| +b.V("embeds_enable_autoplay_and_visibility_signals"))&&g.Yh(b)&&hF9(z,L,Q.player.getPlayerState(1))}; +xEA=function(Q,z){var H=!1;if(z==="")return H;z.split(",").forEach(function(f){var b={},L={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},u="ACTIVE";f[0]==="!"&&(f=f.substring(1),u="INACTIVE");f=f.split("-");f.length<3||(f[0]in j18&&(L.clientName=j18[f[0]]),f[1]in F2_&&(L.platform=F2_[f[1]]),L.applicationState=u,L.clientVersion=f.length>2?f[2]:"",b.remoteClient=L,Q.remoteContexts?Q.remoteContexts.push(b):Q.remoteContexts=[b],H=!0)}); +return H}; +oXa=function(Q){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in Od6))return!1;Q=Q.split(RegExp("[:&]"));var z=Od6.FLAG_AUTO_CAPTIONS_DEFAULT_ON,H="f"+(1+Math.floor(z/31)).toString();z=1<=2?u[1]:"";var X=Ny6.test(z),v=I89.exec(z);v=v!=null&&v.length>=2?v[1]:"";var y=Ay_.exec(z);y=y!=null&&y.length>=2&&!Number.isNaN(Number(y[1]))?Number(y[1]):1;var q=Ytc.exec(z);q=q!=null&&q.length>=2?q[1]:"0";var M=al(Q.player.C().qP),C=Q.player.getVideoData(1),t=g.lA(C.yl,!0),E="BISCOTTI_ID"in H?H.BISCOTTI_ID:"";$En(Q,t,z,E.toString(),Q.player.C(), +C);C={splay:!1,lactMilliseconds:H.LACT.toString(),playerHeightPixels:Math.trunc(H.P_H),playerWidthPixels:Math.trunc(H.P_W),vis:Math.trunc(H.VIS),signatureTimestamp:20153,autonavState:Wg(Q.player.C())};f&&(f={},xEA(f,H.YT_REMOTE)&&(C.mdxContext=f));if(f=ryJ.includes(M)?void 0:g.iv("PREF")){for(var G=f.split(RegExp("[:&]")),x=0,J=G.length;x1&&I[1].toUpperCase()==="TRUE"){t.user.lockedSafetyMode=!0;break}}C.autoCaptionsDefaultOn= +oXa(f)}z=s1c.exec(z);(z=z!=null&&z.length>=2?z[1]:"")&&v&&(t.user.credentialTransferTokens=[{token:z,scope:"VIDEO"}]);z={contentPlaybackContext:C};u={adBlock:Math.trunc(H.AD_BLOCK),params:u,breakIndex:y,breakPositionMs:q,clientPlaybackNonce:H.CPN,topLevelDomain:M,isProxyAdTagRequest:X,context:t,adSignalsInfoString:bv(EM(E.toString())),overridePlaybackContext:z};b!==void 0&&(u.cueProcessedMs=Math.round(b).toString());v&&(u.videoId=v);H.LIVE_TARGETING_CONTEXT&&(u.liveTargetingParams=H.LIVE_TARGETING_CONTEXT); +H.AD_BREAK_LENGTH&&(u.breakLengthMs=Math.trunc(H.AD_BREAK_LENGTH*1E3).toString());L&&(u.driftFromHeadMs=L.toString());u.currentMediaTimeMs=Math.round(Q.player.getCurrentTime(1)*1E3);(Q=Q.player.getGetAdBreakContext())&&(u.getAdBreakContext=Q);return u}; +PJp=function(){D2.apply(this,arguments)}; +a8v=function(Q,z,H,f,b){var L=H.cP;var u=H.VR;var X=Q.player.C().A5,v=0;H.cueProcessedMs&&u&&!L&&(H=u.end-u.start,H>0&&(v=Math.floor(H/1E3)));var y={AD_BLOCK:b,AD_BREAK_LENGTH:L?L.NB:v,AUTONAV_STATE:Wg(Q.player.C()),CA_TYPE:"image",CPN:Q.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:Q.player.SN()*1E3,LACT:Iw(),LIVE_INDEX:L?Q.L++:1,LIVE_TARGETING_CONTEXT:L&&L.context?L.context:"",MIDROLL_POS:u?Math.round(u.start/1E3):0,MIDROLL_POS_MS:u?Math.round(u.start):0,VIS:Q.player.getVisibilityState(), +P_H:Q.player.Un().Oq().height,P_W:Q.player.Un().Oq().width,YT_REMOTE:X?X.join(","):""},q=tF(C1);Object.keys(q).forEach(function(M){q[M]!=null&&(y[M.toUpperCase()]=q[M].toString())}); +f!==""&&(y.BISCOTTI_ID=f);f={};Mn(z)&&(f.sts="20153",(Q=Q.player.C().forcedExperiments)&&(f.forced_experiments=Q));return v2(g.rN(z,y),f)}; +UEA=function(Q,z){var H=Q.player.C(),f,b=(f=Q.player.getVideoData(1))==null?void 0:f.oauthToken;return g.HV(H,b).then(function(L){if(L&&qn()){var u=cG();ij(u,L)}return g.Tv(Q.player.Vk(u),z,"/youtubei/v1/player/ad_break").then(function(X){return X})})}; +cy_=function(Q){this.Vl=Q}; +idn=function(Q){this.K=Q}; +hic=function(Q){this.Vl=Q}; +DEL=function(Q){g.h.call(this);this.Z=Q;this.O$=W2A(this)}; +W2A=function(Q){var z=new gGc(Q.Z.Rq);g.W(Q,z);Q=g.n([new cy_(Q.Z.Vl),new idn(Q.Z.K),new hic(Q.Z.Vl),new Y9(Q.Z.EG,Q.Z.wi),new sl,new a7(Q.Z.wQ,Q.Z.GO,Q.Z.Vl),new rh,new A_]);for(var H=Q.next();!H.done;H=Q.next())Z2A(z,H.value);Q=g.n(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(H=Q.next();!H.done;H=Q.next())BX(z,H.value,function(){}); +return z}; +KJ=function(Q){var z=Q.cI,H=Q.qc;Q=Q.Oj;var f=new sXA,b={CE:new EUZ(z.get(),H),qc:H};return{Yt:new z0(H,Q,z,b),context:b,QP:f}}; +VU=function(Q,z,H,f,b){g.h.call(this);this.B=z;this.K3=H;this.cI=f;this.u8=b;this.listeners=[];var L=new I4(this);g.W(this,L);L.X(Q,"internalAbandon",this.zQ);this.addOnDisposeCallback(function(){g.YQ(L)})}; +dQ=function(Q){this.K=Q;this.adVideoId=this.Z=this.videoId=this.adCpn=this.contentCpn=null;this.S=!0;this.B=this.L=!1;this.adFormat=null;this.D="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; +K2Y=function(Q){Q.contentCpn=null;Q.adCpn=null;Q.videoId=null;Q.adVideoId=null;Q.adFormat=null;Q.D="AD_PLACEMENT_KIND_UNKNOWN";Q.actionType="unknown_type";Q.L=!1;Q.B=!1}; +VI9=function(Q,z){Q=g.n(z);for(z=Q.next();!z.done;z=Q.next())if((z=z.value.renderer)&&(z.instreamVideoAdRenderer||z.linearAdSequenceRenderer||z.sandwichedLinearAdRenderer||z.instreamSurveyAdRenderer)){hN("ad_i");g.WC({isMonetized:!0});break}}; +dEv=function(Q){var z;(z=Q.K.getVideoData(1))!=null&&z.L3&&(Q.B=!1,z={},Q.Z&&Q.videoId&&(z.cttAuthInfo={token:Q.Z,videoId:Q.videoId}),DA("video_to_ad",z))}; +Kx=function(Q){Q.B=!1;var z={};Q.Z&&Q.videoId&&(z.cttAuthInfo={token:Q.Z,videoId:Q.videoId});DA("ad_to_video",z);mEA(Q)}; +mEA=function(Q){if(Q.L)if(Q.D==="AD_PLACEMENT_KIND_START"&&Q.actionType==="video_to_ad")US("video_to_ad");else{var z={adBreakType:GE(Q.D),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:Q.videoStreamType};Q.actionType==="ad_to_video"?(Q.contentCpn&&(z.targetCpn=Q.contentCpn),Q.videoId&&(z.targetVideoId=Q.videoId)):(Q.adCpn&&(z.targetCpn=Q.adCpn),Q.adVideoId&&(z.targetVideoId=Q.adVideoId));Q.adFormat&&(z.adType=Q.adFormat);Q.contentCpn&& +(z.clientPlaybackNonce=Q.contentCpn);Q.videoId&&(z.videoId=Q.videoId);Q.adCpn&&(z.adClientPlaybackNonce=Q.adCpn);Q.adVideoId&&(z.adVideoId=Q.adVideoId);g.WC(z,Q.actionType)}}; +mL=function(Q){g.h.call(this);this.K=Q;this.Z=new Map;this.B=new I4(this);g.W(this,this.B);this.B.X(this.K,g.Li("ad"),this.onCueRangeEnter,this);this.B.X(this.K,g.uc("ad"),this.onCueRangeExit,this)}; +w$u=function(Q,z,H,f,b){g.fi.call(this,z,H,{id:Q,namespace:"ad",priority:b,visible:f})}; +wQ=function(Q){this.K=Q}; +kI=function(Q){this.K=Q;g.Mf(this.K.C().experiments,"tv_pacf_logging_sample_rate")}; +FI=function(Q,z){z=z===void 0?!1:z;return Q.K.C().V("html5_ssap_force_ads_ctmp")?!0:(z||Q.K.C().vz())&&Q.K.C().V("html5_ssap_pacf_qoe_ctmp")}; +TD=function(Q){var z,H;return(H=(z=Q.K.getVideoData(1))==null?void 0:g.wr(z))!=null?H:!1}; +w4=function(Q,z){return Q.K.C().V(z)}; +kVa=function(Q){return Q.K.C().V("substitute_ad_cpn_macro_in_ssdai")}; +Gx=function(Q){var z,H,f;return((z=Q.K.getVideoData(1).getPlayerResponse())==null?void 0:(H=z.playerConfig)==null?void 0:(f=H.daiConfig)==null?void 0:f.enableServerStitchedDai)||!1}; +x99=function(Q){return Q.K.C().V("html5_enable_vod_slar_with_notify_pacf")}; +TyA=function(Q){return Q.K.C().V("html5_recognize_predict_start_cue_point")}; +RV=function(Q){return Q.K.C().experiments.Nc("enable_desktop_player_underlay")}; +ein=function(Q){return Q.K.C().experiments.Nc("html5_load_empty_player_in_media_break_sub_lra")}; +rn=function(Q){return Q.K.C().experiments.Nc("html5_load_ads_instead_of_cue")}; +sH=function(Q){return Q.K.C().experiments.Nc("html5_preload_ads")}; +kH=function(Q){return Q.K.C().experiments.Nc("enable_ads_control_flow_deterministic_id_generation")}; +l8n=function(Q){return Q.K.C().experiments.Nc("enable_desktop_discovery_video_abandon_pings")||g.dm(Q.K.C())}; +RiY=function(Q){return Q.K.C().experiments.Nc("enable_progres_commands_lr_feeds")}; +eQ=function(Q){return Q.K.C().experiments.Nc("html5_cuepoint_identifier_logging")}; +Qz6=function(Q){switch(Q){case "audio_audible":return"adaudioaudible";case "audio_measurable":return"adaudiomeasurable";case "fully_viewable_audible_half_duration_impression":return"adfullyviewableaudiblehalfdurationimpression";case "measurable_impression":return"adactiveviewmeasurable";case "overlay_unmeasurable_impression":return"adoverlaymeasurableimpression";case "overlay_unviewable_impression":return"adoverlayunviewableimpression";case "overlay_viewable_end_of_session_impression":return"adoverlayviewableendofsessionimpression"; +case "overlay_viewable_immediate_impression":return"adoverlayviewableimmediateimpression";case "viewable_impression":return"adviewableimpression";default:return null}}; +zbc=function(){g.vf.call(this);var Q=this;this.Z={};this.addOnDisposeCallback(function(){for(var z=g.n(Object.keys(Q.Z)),H=z.next();!H.done;H=z.next())delete Q.Z[H.value]})}; +le=function(){if(HkJ===null){HkJ=new zbc;Y3(xW).B="b";var Q=Y3(xW),z=n5(Q)=="h"||n5(Q)=="b",H=!(as(),!1);z&&H&&(Q.S=!0,Q.j=new ck9)}return HkJ}; +fja=function(Q,z,H){Q.Z[z]=H}; +bk8=function(Q){switch(Q){case "abandon":case "unmuted_abandon":return"abandon";case "active_view_fully_viewable_audible_half_duration":return"fully_viewable_audible_half_duration_impression";case "active_view_measurable":return"measurable_impression";case "active_view_viewable":return"viewable_impression";case "audio_audible":return"audio_audible";case "audio_measurable":return"audio_measurable";case "complete":case "unmuted_complete":return"complete";case "end_fullscreen":case "unmuted_end_fullscreen":return"exitfullscreen"; +case "first_quartile":case "unmuted_first_quartile":return"firstquartile";case "fullscreen":case "unmuted_fullscreen":return"fullscreen";case "impression":case "unmuted_impression":return"impression";case "midpoint":case "unmuted_midpoint":return"midpoint";case "mute":case "unmuted_mute":return"mute";case "pause":case "unmuted_pause":return"pause";case "progress":case "unmuted_progress":return"progress";case "resume":case "unmuted_resume":return"resume";case "swipe":case "skip":case "unmuted_skip":return"skip"; +case "start":case "unmuted_start":return"start";case "third_quartile":case "unmuted_third_quartile":return"thirdquartile";case "unmute":case "unmuted_unmute":return"unmute";default:return null}}; +RP=function(Q,z,H){this.K3=Q;this.K=z;this.qc=H;this.B=new Set;this.Z=new Map;le().subscribe("adactiveviewmeasurable",this.T4,this);le().subscribe("adfullyviewableaudiblehalfdurationimpression",this.Wk,this);le().subscribe("adviewableimpression",this.UA,this);le().subscribe("adaudioaudible",this.tV,this);le().subscribe("adaudiomeasurable",this.RQ,this)}; +zm=function(Q,z,H){var f=H.K8,b=H.Zj,L=H.listener,u=H.c8;H=H.ri===void 0?!1:H.ri;if(Q.Z.has(z))Cp("Unexpected registration of layout in LidarApi");else{if(u){if(Q.B.has(u))return;Q.B.add(u)}Q.Z.set(z,L);vI(as().K5,"fmd",1);k98(Y3(xW),f);var X=H?z:void 0;fja(le(),z,{Yb:function(){if(!b)return{};var v=Q.K.getPresentingPlayerType(!0),y;return(y=Q.K.getVideoData(v))!=null&&y.isAd()?{currentTime:Q.K3.get().getCurrentTimeSec(v,!1,X),duration:b,isPlaying:QB(Q.K3.get(),v).isPlaying(),isVpaid:!1,isYouTube:!0, +volume:Q.K3.get().isMuted()?0:Q.K3.get().getVolume()/100}:{}}})}}; +Hy=function(Q,z){Q.Z.has(z)?(Q.Z.delete(z),delete le().Z[z]):Cp("Unexpected unregistration of layout in LidarApi")}; +LOY=function(Q,z){if(Q.K.isLifaAdPlaying()){var H=Q.K.A8(!0,!0);Q.mI(z,H.width*.5*1.1,H.height*.25*1.1,H.width*.5*.9,H.height*.5*.9)}}; +X1k=function(Q,z,H){var f={};usZ(Q,f,z,H);SG6(f);f.LACT=f0(function(){return Iw().toString()}); +f.VIS=f0(function(){return Q.getVisibilityState().toString()}); +f.SDKV="h.3.0";f.VOL=f0(function(){return Q.isMuted()?"0":Math.round(Q.getVolume()).toString()}); +f.VED="";return f}; +vVv=function(Q,z){var H={};if(z)return H;if(!Q.kind)return g.PT(Error("AdPlacementConfig without kind")),H;if(Q.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||Q.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!Q.adTimeOffset||!Q.adTimeOffset.offsetStartMilliseconds)return g.PT(Error("malformed AdPlacementConfig")),H;H.MIDROLL_POS=f0(Cg(Math.round(H3(Q.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else H.MIDROLL_POS=f0(Cg("0"));return H}; +f0=function(Q){return{toString:function(){return Q()}}}; +yR6=function(Q,z,H){function f(X,v){(v=H[v])&&(L[X]=v)} +function b(X,v){(v=H[v])&&(L[X]=u(v))} +if(!H||g.ra(H))return Q;var L=Object.assign({},Q),u=z?encodeURIComponent:function(X){return X}; +b("DV_VIEWABILITY","doubleVerifyViewability");b("IAS_VIEWABILITY","integralAdsViewability");b("MOAT_INIT","moatInit");b("MOAT_VIEWABILITY","moatViewability");f("GOOGLE_VIEWABILITY","googleViewability");f("VIEWABILITY","viewability");return L}; +usZ=function(Q,z,H,f){z.CPN=f0(function(){var b;(b=Q.getVideoData(1))?b=b.clientPlaybackNonce:(g.ax(Error("Video data is null.")),b=null);return b}); +z.AD_MT=f0(function(){if(f!=null)var b=f;else{var L=H;Q.C().V("html5_ssap_use_cpn_to_get_time")||(L=void 0);if(Q.C().V("enable_h5_shorts_ad_fill_ad_mt_macro")||Q.C().V("enable_desktop_discovery_pings_ad_mt_macro")||g.dm(Q.C())){var u=Q.getPresentingPlayerType(!0),X;b=((X=Q.getVideoData(u))==null?0:X.isAd())?qGY(Q,u,L):0}else b=qGY(Q,2,L)}return Math.round(Math.max(0,b*1E3)).toString()}); +z.MT=f0(function(){return Math.round(Math.max(0,Q.getCurrentTime(1,!1)*1E3)).toString()}); +z.P_H=f0(function(){return Q.Un().Oq().height.toString()}); +z.P_W=f0(function(){return Q.Un().Oq().width.toString()}); +z.PV_H=f0(function(){return Q.Un().getVideoContentRect().height.toString()}); +z.PV_W=f0(function(){return Q.Un().getVideoContentRect().width.toString()})}; +SG6=function(Q){Q.CONN=f0(Cg("0"));Q.WT=f0(function(){return Date.now().toString()})}; +qGY=function(Q,z,H){return H!==void 0?Q.getCurrentTime(z,!1,H):Q.getCurrentTime(z,!1)}; +MD9=function(){}; +Ciu=function(Q,z,H,f,b){var L,u,X,v,y,q,M,C,t,E,G,x,J;g.B(function(I){switch(I.Z){case 1:L=!!z.scrubReferrer;u=g.rN(z.baseUrl,yR6(H,L,f));X={};if(!z.headers){I.bT(2);break}v=Q.D();if(!v.Z){y=v.getValue();I.bT(3);break}return g.Y(I,v.Z,4);case 4:y=I.B;case 3:q=y;M=g.n(z.headers);for(C=M.next();!C.done;C=M.next())switch(t=C.value,t.headerType){case "VISITOR_ID":g.ey("VISITOR_DATA")&&(X["X-Goog-Visitor-Id"]=g.ey("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.ey("EOM_VISITOR_DATA")&&(X["X-Goog-EOM-Visitor-Id"]= +g.ey("EOM_VISITOR_DATA"));break;case "USER_AUTH":q&&(X.Authorization="Bearer "+q);break;case "PLUS_PAGE_ID":(E=Q.S())&&(X["X-Goog-PageId"]=E);break;case "AUTH_USER":G=Q.Z();!q&&G&&(X["X-Goog-AuthUser"]=G);break;case "DATASYNC_ID":if(x=void 0,(x=Q.L())==null?0:x.Nc("enable_datasync_id_header_in_web_vss_pings"))J=Q.B(),yC(u)&&g.ey("LOGGED_IN")&&J&&(X["X-YouTube-DataSync-Id"]=J)}"X-Goog-EOM-Visitor-Id"in X&&"X-Goog-Visitor-Id"in X&&delete X["X-Goog-Visitor-Id"];case 2:g.Dg(u,void 0,L,Object.keys(X).length!== +0?X:void 0,"",!0,b),g.$v(I)}})}; +tDp=function(Q,z,H,f,b){this.D=Q;this.S=z;this.Z=H;this.B=f;this.L=b}; +EVu=function(Q,z){this.Z=Q;this.qc=z}; +b7=function(Q,z,H,f,b,L,u){var X=X===void 0?new tDp(function(){var v=Q.C(),y=Q.getVideoData(1);return g.HV(v,y?g.W7(y):"")},function(){return Q.C().pageId},function(){return Q.C().L3},function(){var v; +return(v=Q.C().datasyncId)!=null?v:""},function(){return Q.C().experiments}):X; +this.K=Q;this.B=z;this.Bz=H;this.cI=f;this.Yt=b;this.qc=L;this.QP=u;this.D=X;this.Xu=null;this.Z=new Map;this.L=new EVu(X,this.qc)}; +nVc=function(Q,z,H,f,b){var L=ND(Q.B.get(),H);L?(H=Ih(Q,p1k(L),L,void 0,void 0,f),z.hasOwnProperty("baseUrl")?Q.D.send(z,H):Q.L.send(z,H,{},b)):Cp("Trying to ping from an unknown layout",void 0,void 0,{layoutId:H})}; +xtp=function(Q,z,H,f,b,L){f=f===void 0?[]:f;var u=ND(Q.B.get(),z);if(u){var X=Q.Bz.get().IJ(z,H),v=Ih(Q,p1k(u),u,b,L);f.forEach(function(y,q){y.baseUrl&&(Q.L.send(y.baseUrl,v,X,y.attributionSrcMode),y.serializedAdPingMetadata&&Q.Yt.al("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,u,new ft_(y,q),void 0,void 0,u.adLayoutLoggingData))})}else Cp("Trying to track from an unknown layout.",void 0,void 0,{layoutId:z, +trackingType:H})}; +$y=function(Q,z){Q.K.sendVideoStatsEngageEvent(z,void 0,2)}; +lC=function(Q,z){g.qV("adsClientStateChange",z)}; +gVa=function(Q,z){Q.Z.has(z.qS())?Cp("Trying to register an existing AdErrorInfoSupplier."):Q.Z.set(z.qS(),z)}; +Zku=function(Q,z){Q.Z.delete(z.qS())||Cp("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; +zT=function(Q,z,H){typeof H==="string"?Q.K.getVideoData(1).b3(z,H):Q.K.getVideoData(1).On(z,H)}; +p1k=function(Q){var z=LN(Q.clientMetadata,"metadata_type_ad_placement_config");Q=LN(Q.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:z,OQ:Q}}; +Ih=function(Q,z,H,f,b,L){var u=H?G$9(Q):{},X=H?$ha(Q,H.layoutId):{},v=jz_(Q),y,q=b!=null?b:(y=px(Q.cI.get(),2))==null?void 0:y.clientPlaybackNonce;b=void 0;if(H){var M;if((M=Q.QP.Z.get(H.layoutId))==null?0:M.ri)b=H.layoutId}M={};Q=Object.assign({},X1k(Q.K,b,f),vVv(z.adPlacementConfig,(H==null?void 0:H.renderingContent)!==void 0),X,u,v,(M.FINAL=f0(function(){return"1"}),M.AD_CPN=f0(function(){return q||""}),M)); +(H==null?void 0:H.renderingContent)!==void 0||(Q.SLOT_POS=f0(function(){return(z.OQ||0).toString()})); +H={};L=Object.assign({},Q,L);Q=g.n(Object.values(FOn));for(f=Q.next();!f.done;f=Q.next())f=f.value,u=L[f],u!=null&&u.toString()!=null&&(H[f]=u.toString());return H}; +G$9=function(Q){var z={},H,f=(H=Q.Xu)==null?void 0:H.rS/1E3;f!=null&&(z.SURVEY_ELAPSED_MS=f0(function(){return Math.round(f*1E3).toString()})); +z.SURVEY_LOCAL_TIME_EPOCH_S=f0(function(){return Math.round(Date.now()/1E3).toString()}); +return z}; +$ha=function(Q,z){Q=Q.Z.get(z);if(!Q)return{};Q=Q.Dh();if(!Q)return{};z={};return z.YT_ERROR_CODE=Q.fC.toString(),z.ERRORCODE=Q.eP.toString(),z.ERROR_MSG=Q.errorMessage,z}; +jz_=function(Q){var z={},H=Q.K.getVideoData(1);z.ASR=f0(function(){var f;return(f=H==null?void 0:H.gA)!=null?f:null}); +z.EI=f0(function(){var f;return(f=H==null?void 0:H.eventId)!=null?f:null}); +return z}; +L0=function(Q,z,H){g.h.call(this);this.K=Q;this.eZ=z;this.qc=H;this.listeners=[];this.ou=null;this.Ay=new Map;z=new g.Pt(this);g.W(this,z);z.X(Q,"videodatachange",this.syh);z.X(Q,"serverstitchedvideochange",this.P23);this.Y9=px(this)}; +px=function(Q,z){var H=Q.K.getVideoData(z);return H?Q.g_(H,z||Q.K.getPresentingPlayerType(!0)):null}; +xhu=function(Q,z,H){var f=Q.g_(z,H);Q.Y9=f;Q.listeners.forEach(function(b){b.qI(f)})}; +OkY=function(Q){switch(Q){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7}}; +u7=function(Q,z,H){g.h.call(this);this.K=Q;this.cI=z;this.qc=H;this.listeners=[];this.XB=[];this.Z=function(){Cp("Called 'doUnlockPreroll' before it's initialized.")}; +z=new I4(this);H=new g.Pt(this);g.W(this,H);g.W(this,z);z.X(Q,"progresssync",this.sBT);z.X(Q,"presentingplayerstatechange",this.lmm);z.X(Q,"fullscreentoggled",this.onFullscreenToggled);z.X(Q,"onVolumeChange",this.onVolumeChange);z.X(Q,"minimized",this.jU);z.X(Q,"overlayvisibilitychange",this.Y3);z.X(Q,"shortsadswipe",this.vY);z.X(Q,"resize",this.tZ);H.X(Q,g.Li("appad"),this.mW)}; +S6=function(Q){TD(Q.qc.get())||Q.Z()}; +oVv=function(Q,z){Q.XB=Q.XB.filter(function(H){return H!==z})}; +Xl=function(Q,z,H){return Q.getCurrentTimeSec(z,H)}; +JR6=function(Q,z){var H;z=(H=Q.cI.get().Ay.get(z))!=null?H:null;if(z===null)return Cp("Expected ad video start time on playback timeline"),0;Q=Q.K.getCurrentTime(2,!0);return Q0){var L=z.end.toString();b.forEach(function(u){(u=u.config&&u.config.adPlacementConfig)&&u.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&u.adTimeOffset&&u.adTimeOffset.offsetEndMilliseconds==="-1"&&u.adTimeOffset.offsetEndMilliseconds!==L&&(u.adTimeOffset.offsetEndMilliseconds=L)}); +f.map(function(u){return g.K(u,cc)}).forEach(function(u){var X; +(u=u==null?void 0:(X=u.slotEntryTrigger)==null?void 0:X.mediaTimeRangeTrigger)&&u.offsetEndMilliseconds==="-1"&&(u.offsetEndMilliseconds=L)})}return{LW:b, +adSlots:f,un:!1,ssdaiAdsConfig:Q.ssdaiAdsConfig}}; +C0=function(Q){g.h.call(this);this.K=Q;this.listeners=[];this.Z=new I4(this);g.W(this,this.Z);this.Z.X(this.K,"aduxclicked",this.onAdUxClicked);this.Z.X(this.K,"aduxmouseover",this.m$);this.Z.X(this.K,"aduxmouseout",this.VD);this.Z.X(this.K,"muteadaccepted",this.Prh)}; +rR8=function(Q,z,H){z=g.NT(z,function(f){return new V98(f,H,f.id)}); +Q.K.F$("onAdUxUpdate",z)}; +to=function(Q,z){Q=g.n(Q.listeners);for(var H=Q.next();!H.done;H=Q.next())z(H.value)}; +Ep=function(Q,z){this.B=Q;this.L=z===void 0?!1:z;this.Z={}}; +szZ=function(Q,z){var H=Q.startSecs+Q.NB;H=H<=0?null:H;if(H===null)return null;switch(Q.event){case "start":case "continue":case "stop":break;case "predictStart":if(z)break;return null;default:return null}z=Math.max(Q.startSecs,0);return{mX:new OF(z,H),HHv:new UY(z,H-z,Q.context,Q.identifier,Q.event,Q.Z)}}; +B_J=function(){this.Z=[]}; +$qY=function(Q,z,H){var f=g.Sj(Q.Z,z);if(f>=0)return z;z=-f-1;return z>=Q.Z.length||Q.Z[z]>H?null:Q.Z[z]}; +p0=function(Q,z,H){g.h.call(this);this.K=Q;this.qc=z;this.Vl=H;this.listeners=[];this.D=!1;this.F_=[];this.Z=null;this.S=new Ep(this,TyA(z.get()));this.L=new B_J;this.B=null}; +Pi6=function(Q,z){Q.F_.push(z);for(var H=!1,f=g.n(Q.listeners),b=f.next();!b.done;b=f.next())H=b.value.ZX(z)||H;Q.D=H;eQ(Q.qc.get())&&zT(Q.Vl.get(),"onci","cpi."+z.identifier+";cpe."+z.event+";cps."+z.startSecs+";cbi."+H)}; +Uh9=function(Q,z){lC(Q.Vl.get(),{cuepointTrigger:{event:ajp(z.event),cuepointId:z.identifier,totalCueDurationMs:z.NB*1E3,playheadTimeMs:z.Z,cueStartTimeMs:z.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:Q.K.getVideoData(1).clientPlaybackNonce}})}; +ajp=function(Q){switch(Q){case "unknown":return"CUEPOINT_EVENT_UNKNOWN";case "start":return"CUEPOINT_EVENT_START";case "continue":return"CUEPOINT_EVENT_CONTINUE";case "stop":return"CUEPOINT_EVENT_STOP";case "predictStart":return"CUEPOINT_EVENT_PREDICT_START";default:return LS(Q,"Unexpected cuepoint event")}}; +n0=function(Q){this.K=Q}; +cRu=function(Q,z){Q.K.cueVideoByPlayerVars(z,2)}; +gu=function(Q){this.K=Q}; +ZB=function(Q){this.K=Q}; +ik_=function(Q){switch(Q){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7;default:LS(Q,"unknown transitionReason")}}; +hb9=function(Q){this.K=Q}; +WOp=function(Q,z,H,f,b){g.h.call(this);var L=this,u=hO(function(){return new wM(L.qc)}); +g.W(this,u);var X=hO(function(){return new Tx(u,L.qc)}); +g.W(this,X);var v=hO(function(){return new oa}); +g.W(this,v);var y=hO(function(){return new xH(Q)}); +g.W(this,y);var q=hO(function(){return new e3(u,X,L.qc)}); +g.W(this,q);var M=hO(function(){return new HB}); +g.W(this,M);this.ZS=hO(function(){return new C0(z)}); +g.W(this,this.ZS);this.le=hO(function(){return new DS(b)}); +g.W(this,this.le);this.Gq=hO(function(){return new dQ(z)}); +g.W(this,this.Gq);this.n5=hO(function(){return new mL(z)}); +g.W(this,this.n5);this.t7=hO(function(){return new n0(z)}); +g.W(this,this.t7);this.Rq=hO(function(){return new wQ(z)}); +g.W(this,this.Rq);this.qc=hO(function(){return new kI(z)}); +g.W(this,this.qc);var C=hO(function(){return new M_(f)}); +g.W(this,C);var t=hO(function(){return new CN(L.qc)}); +g.W(this,t);this.sx=hO(function(){return new gu(z)}); +g.W(this,this.sx);this.Ov=hO(function(){return new d4}); +g.W(this,this.Ov);this.cI=hO(function(){return new L0(z,M,L.qc)}); +g.W(this,this.cI);var E=KJ({cI:this.cI,qc:this.qc,Oj:t}),G=E.context,x=E.QP;this.Yt=E.Yt;this.u8=hO(function(){return new p0(z,L.qc,L.Vl)}); +g.W(this,this.u8);this.xN=hO(function(){return new ZB(z)}); +g.W(this,this.xN);this.K3=hO(function(){return new u7(z,L.cI,L.qc)}); +g.W(this,this.K3);E=hO(function(){return new pQ(u,q,X,L.qc,t,"SLOT_TYPE_ABOVE_FEED",L.K3,L.L4,L.J$)}); +g.W(this,E);this.Xt=hO(function(){return new mm(L.qc)}); +this.Bz=hO(function(){return new RP(L.K3,z,L.qc)}); +g.W(this,this.Bz);this.Vl=hO(function(){return new b7(z,v,L.Bz,L.cI,L.Yt,L.qc,x)}); +g.W(this,this.Vl);this.Qf=new j3($H,Gm,function(I,r,U,D){return lg(X.get(),I,r,U,D)},y,q,X,t,this.qc,this.cI); +g.W(this,this.Qf);this.Dm=new FM(y,E,H,this.qc,Q,this.cI,this.K3,this.Gq);g.W(this,this.Dm);var J=new VU(z,this.Dm,this.K3,this.cI,this.u8);this.m2=hO(function(){return J}); +this.rg=J;this.L4=new ZO(y,q,this.m2,this.u8,this.K3,this.qc,this.Vl,this.xN);g.W(this,this.L4);this.Q9=new OD(y,q,this.n5,this.m2,G);g.W(this,this.Q9);this.Gx=new Uy(this.qc,y,q,E,this.cI,this.Q9,H);g.W(this,this.Gx);this.Ou=hO(function(){return new MS(C,X,t,L.qc,L.Vl,L.K3,L.xN)}); +g.W(this,this.Ou);this.Bq=hO(function(){return new Ci}); +g.W(this,this.Bq);this.BB=new sD(Q,this.ZS,this.qc);g.W(this,this.BB);this.dT=new BS(Q);g.W(this,this.dT);this.Vq=new PS(Q);g.W(this,this.Vq);this.sX=new UD(Q,this.m2,G);g.W(this,this.sX);this.u2=new cS(Q,this.n5,this.K3,this.cI,G);g.W(this,this.u2);this.Yq=new i6(Q,this.cI);g.W(this,this.Yq);this.J$=new DO(Q,this.u8,this.K3,this.Vl,this.m2);g.W(this,this.J$);this.kJ=new h7(Q);g.W(this,this.kJ);this.fp=new mi(Q);g.W(this,this.fp);this.p4=new WS(Q);g.W(this,this.p4);this.dg=new dM(Q);g.W(this,this.dg); +this.fp=new mi(Q);g.W(this,this.fp);this.Pq=hO(function(){return new Ia}); +g.W(this,this.Pq);this.h9=hO(function(){return new A7(L.K3)}); +g.W(this,this.h9);this.Tb=hO(function(){return new VEv(L.ZS,L.Vl,Q,v,L.Bz)}); +g.W(this,this.Tb);this.H7=hO(function(){return new lc(L.Gx,y,u)}); +g.W(this,this.H7);this.DC=hO(function(){return new zR(L.qc,L.Vl,L.kJ,L.Bz)}); +g.W(this,this.DC);this.XW=hO(function(){return new XO(Q,L.fp,L.kJ,L.cI,L.xN,L.K3,L.Vl,M,L.u8,L.Bz,L.Xt,L.t7,L.n5,L.Gq,L.Rq,L.le,L.sx,L.qc,v,G,x)}); +g.W(this,this.XW);this.pS=hO(function(){return new L5Z(L.K3,L.Vl,L.le,L.qc,L.Bz,L.cI)}); +g.W(this,this.pS);this.zI=hO(function(){return new dqn(L.ZS,L.K3,L.Vl,v,L.Bz,L.Vq,L.dg,L.le,L.qc,H)}); +g.W(this,this.zI);this.YY=hO(function(){return new dt6(L.ZS,L.Vl,v)}); +g.W(this,this.YY);this.Kh=new q_(Q,this.Ov,u);g.W(this,this.Kh);this.mY={EO:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Gx],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.L4],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Qf],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Dm],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Q9]]),ut:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ou],["SLOT_TYPE_ABOVE_FEED",this.Bq],["SLOT_TYPE_FORECASTING",this.Bq], +["SLOT_TYPE_IN_PLAYER",this.Bq],["SLOT_TYPE_PLAYER_BYTES",this.Bq],["SLOT_TYPE_PLAYER_UNDERLAY",this.Bq],["SLOT_TYPE_PLAYBACK_TRACKING",this.Bq],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Bq]]),H5:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.BB],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.BB],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.dT],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.dT],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.dT],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.dT],["TRIGGER_TYPE_SLOT_ID_ENTERED", +this.dT],["TRIGGER_TYPE_SLOT_ID_EXITED",this.dT],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.dT],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.dT],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.dT],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.dT],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.dT],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Vq],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.sX],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.u2],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", +this.u2],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.u2],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.u2],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.u2],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.u2],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.u2],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Yq],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Yq],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.kJ],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", +this.sX],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.p4],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.dg],["TRIGGER_TYPE_AD_BREAK_STARTED",this.fp],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.J$],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.J$],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.J$],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.J$],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.J$]]),Mu:new Map([["SLOT_TYPE_ABOVE_FEED",this.Pq], +["SLOT_TYPE_AD_BREAK_REQUEST",this.Pq],["SLOT_TYPE_FORECASTING",this.Pq],["SLOT_TYPE_IN_PLAYER",this.Pq],["SLOT_TYPE_PLAYER_BYTES",this.h9],["SLOT_TYPE_PLAYER_UNDERLAY",this.Pq],["SLOT_TYPE_PLAYBACK_TRACKING",this.Pq],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.Pq]]),Kl:new Map([["SLOT_TYPE_ABOVE_FEED",this.Tb],["SLOT_TYPE_AD_BREAK_REQUEST",this.H7],["SLOT_TYPE_FORECASTING",this.DC],["SLOT_TYPE_PLAYER_BYTES",this.XW],["SLOT_TYPE_PLAYBACK_TRACKING",this.pS],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", +this.pS],["SLOT_TYPE_IN_PLAYER",this.zI],["SLOT_TYPE_PLAYER_UNDERLAY",this.YY]])};this.listeners=[v.get()];this.OO={Gx:this.Gx,GO:this.qc.get(),dh:this.le.get(),dk:this.K3.get(),Dm:this.Dm,Z$:u.get(),Jw:this.Ov.get(),wi:this.BB,EG:v.get(),wQ:this.cI.get()}}; +DhL=function(Q,z,H,f,b){g.h.call(this);var L=this,u=hO(function(){return new wM(L.qc)}); +g.W(this,u);var X=hO(function(){return new Tx(u,L.qc)}); +g.W(this,X);var v=hO(function(){return new oa}); +g.W(this,v);var y=hO(function(){return new xH(Q)}); +g.W(this,y);var q=hO(function(){return new e3(u,X,L.qc)}); +g.W(this,q);var M=hO(function(){return new HB}); +g.W(this,M);this.ZS=hO(function(){return new C0(z)}); +g.W(this,this.ZS);this.le=hO(function(){return new DS(b)}); +g.W(this,this.le);this.Gq=hO(function(){return new dQ(z)}); +g.W(this,this.Gq);this.n5=hO(function(){return new mL(z)}); +g.W(this,this.n5);this.t7=hO(function(){return new n0(z)}); +g.W(this,this.t7);this.Rq=hO(function(){return new wQ(z)}); +g.W(this,this.Rq);this.qc=hO(function(){return new kI(z)}); +g.W(this,this.qc);var C=hO(function(){return new M_(f)}); +g.W(this,C);var t=hO(function(){return new CN(L.qc)}); +g.W(this,t);var E=hO(function(){return new pQ(u,q,X,L.qc,t,null,null,L.L4,L.J$)}); +g.W(this,E);this.sx=hO(function(){return new gu(z)}); +g.W(this,this.sx);this.Ov=hO(function(){return new d4}); +g.W(this,this.Ov);this.cI=hO(function(){return new L0(z,M,L.qc)}); +g.W(this,this.cI);var G=KJ({cI:this.cI,qc:this.qc,Oj:t}),x=G.context,J=G.QP;this.Yt=G.Yt;this.u8=hO(function(){return new p0(z,L.qc,L.Vl)}); +this.K3=hO(function(){return new u7(z,L.cI,L.qc)}); +g.W(this,this.K3);this.Bz=hO(function(){return new RP(L.K3,z,L.qc)}); +g.W(this,this.Bz);this.Vl=hO(function(){return new b7(z,v,L.Bz,L.cI,L.Yt,L.qc,J)}); +g.W(this,this.Vl);this.Xt=hO(function(){return new mm(L.qc)}); +g.W(this,this.Xt);this.Qf=new j3($H,Gm,function(r,U,D,T){return lg(X.get(),r,U,D,T)},y,q,X,t,this.qc,this.cI); +g.W(this,this.Qf);this.Dm=new FM(y,E,H,this.qc,Q,this.cI,this.K3,this.Gq);g.W(this,this.Dm);var I=new VU(z,this.Dm,this.K3,this.cI,this.u8);this.m2=hO(function(){return I}); +this.rg=I;this.L4=new ZO(y,q,this.m2,this.u8,this.K3,this.qc,this.Vl);g.W(this,this.L4);this.Q9=new OD(y,q,this.n5,this.m2,x);g.W(this,this.Q9);this.Gx=new Uy(this.qc,y,q,E,this.cI,this.Q9,H);g.W(this,this.Gx);this.Ou=hO(function(){return new MS(C,X,t,L.qc,L.Vl,L.K3)}); +g.W(this,this.Ou);this.Bq=hO(function(){return new Ci}); +g.W(this,this.Bq);this.BB=new sD(Q,this.ZS,this.qc);g.W(this,this.BB);this.dT=new BS(Q);g.W(this,this.dT);this.Vq=new PS(Q);g.W(this,this.Vq);this.sX=new UD(Q,this.m2,x);g.W(this,this.sX);this.u2=new cS(Q,this.n5,this.K3,this.cI,x);g.W(this,this.u2);this.kJ=new h7(Q);g.W(this,this.kJ);this.p4=new WS(Q);g.W(this,this.p4);this.dg=new dM(Q);g.W(this,this.dg);this.xN=hO(function(){return new ZB(z)}); +g.W(this,this.xN);this.fp=new mi(Q);g.W(this,this.fp);this.J$=new DO(Q,this.u8,this.K3,this.Vl,this.m2);g.W(this,this.J$);this.Pq=hO(function(){return new Ia}); +g.W(this,this.Pq);this.h9=hO(function(){return new A7(L.K3)}); +g.W(this,this.h9);this.H7=hO(function(){return new lc(L.Gx,y,u)}); +g.W(this,this.H7);this.DC=hO(function(){return new zR(L.qc,L.Vl,L.kJ,L.Bz)}); +g.W(this,this.DC);this.zI=hO(function(){return new mqv(L.ZS,L.K3,L.Vl,v,L.Bz,L.Vq,L.dg,L.le,L.qc,H)}); +g.W(this,this.zI);this.XW=hO(function(){return new vZ(Q,L.fp,L.kJ,L.Vl,L.Bz,L.Xt,L.t7,L.cI,L.K3,L.n5,L.Gq,L.Rq,L.le,L.sx,L.qc,L.xN,x,J)}); +g.W(this,this.XW);this.Kh=new q_(Q,this.Ov,u);g.W(this,this.Kh);this.mY={EO:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Gx],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.L4],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Qf],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Dm],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Q9]]),ut:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ou],["SLOT_TYPE_FORECASTING",this.Bq],["SLOT_TYPE_IN_PLAYER",this.Bq], +["SLOT_TYPE_PLAYER_BYTES",this.Bq]]),H5:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.BB],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.dT],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.dT],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.dT],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.dT],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.dT],["TRIGGER_TYPE_SLOT_ID_EXITED",this.dT],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.dT],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.dT],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.dT], +["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.dT],["TRIGGER_TYPE_CLOSE_REQUESTED",this.Vq],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.sX],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.u2],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.u2],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.u2],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.kJ],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.sX],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.p4],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", +this.dg],["TRIGGER_TYPE_AD_BREAK_STARTED",this.fp],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.J$],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.J$],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.J$],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.J$],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.J$]]),Mu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Pq],["SLOT_TYPE_FORECASTING",this.Pq],["SLOT_TYPE_IN_PLAYER",this.Pq],["SLOT_TYPE_PLAYER_BYTES",this.h9]]), +Kl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.H7],["SLOT_TYPE_FORECASTING",this.DC],["SLOT_TYPE_IN_PLAYER",this.zI],["SLOT_TYPE_PLAYER_BYTES",this.XW]])};this.listeners=[v.get()];this.OO={Gx:this.Gx,GO:this.qc.get(),dh:this.le.get(),dk:this.K3.get(),Dm:this.Dm,Z$:u.get(),Jw:this.Ov.get(),wi:this.BB,EG:v.get(),wQ:this.cI.get()}}; +KO_=function(Q,z,H,f,b){g.h.call(this);var L=this,u=hO(function(){return new wM(L.qc)}); +g.W(this,u);var X=hO(function(){return new Tx(u,L.qc)}); +g.W(this,X);var v=hO(function(){return new oa}); +g.W(this,v);var y=hO(function(){return new xH(Q)}); +g.W(this,y);var q=hO(function(){return new e3(u,X,L.qc)}); +g.W(this,q);var M=hO(function(){return new HB}); +g.W(this,M);this.ZS=hO(function(){return new C0(z)}); +g.W(this,this.ZS);this.le=hO(function(){return new DS(b)}); +g.W(this,this.le);this.Gq=hO(function(){return new dQ(z)}); +g.W(this,this.Gq);this.n5=hO(function(){return new mL(z)}); +g.W(this,this.n5);this.t7=hO(function(){return new n0(z)}); +g.W(this,this.t7);this.Rq=hO(function(){return new wQ(z)}); +g.W(this,this.Rq);this.qc=hO(function(){return new kI(z)}); +g.W(this,this.qc);var C=hO(function(){return new M_(f)}); +g.W(this,C);var t=hO(function(){return new CN(L.qc)}); +g.W(this,t);var E=hO(function(){return new pQ(u,q,X,L.qc,t,null,null,null,null)}); +g.W(this,E);this.sx=hO(function(){return new gu(z)}); +g.W(this,this.sx);this.cI=hO(function(){return new L0(z,M,L.qc)}); +g.W(this,this.cI);var G=KJ({cI:this.cI,qc:this.qc,Oj:t}),x=G.context,J=G.QP;this.Yt=G.Yt;this.K3=hO(function(){return new u7(z,L.cI,L.qc)}); +g.W(this,this.K3);this.Bz=hO(function(){return new RP(L.K3,z,L.qc)}); +g.W(this,this.Bz);this.Vl=hO(function(){return new b7(z,v,L.Bz,L.cI,L.Yt,L.qc,J)}); +g.W(this,this.Vl);this.Xt=hO(function(){return new mm(L.qc)}); +g.W(this,this.Xt);this.Qf=new j3($H,Gm,function(r,U,D,T){return lg(X.get(),r,U,D,T)},y,q,X,t,this.qc,this.cI); +g.W(this,this.Qf);this.Dm=new FM(y,E,H,this.qc,Q,this.cI,this.K3,this.Gq);g.W(this,this.Dm);var I=new VU(z,this.Dm,this.K3,this.cI);this.m2=hO(function(){return I}); +this.rg=I;this.Q9=new OD(y,q,this.n5,this.m2,x);g.W(this,this.Q9);this.Gx=new Uy(this.qc,y,q,E,this.cI,this.Q9,H);g.W(this,this.Gx);this.Ou=hO(function(){return new MS(C,X,t,L.qc,L.Vl,L.K3)}); +g.W(this,this.Ou);this.Bq=hO(function(){return new Ci}); +g.W(this,this.Bq);this.BB=new sD(Q,this.ZS,this.qc);g.W(this,this.BB);this.dT=new BS(Q);g.W(this,this.dT);this.sX=new UD(Q,this.m2,x);g.W(this,this.sX);this.u2=new cS(Q,this.n5,this.K3,this.cI,x);g.W(this,this.u2);this.kJ=new h7(Q);g.W(this,this.kJ);this.p4=new WS(Q);g.W(this,this.p4);this.xN=hO(function(){return new ZB(z)}); +g.W(this,this.xN);this.fp=new mi(Q);g.W(this,this.fp);this.Pq=hO(function(){return new Ia}); +g.W(this,this.Pq);this.h9=hO(function(){return new A7(L.K3)}); +g.W(this,this.h9);this.H7=hO(function(){return new lc(L.Gx,y,u)}); +g.W(this,this.H7);this.DC=hO(function(){return new zR(L.qc,L.Vl,L.kJ,L.Bz)}); +g.W(this,this.DC);this.yB=hO(function(){return new bpp(L.ZS,L.K3,L.Vl,v,H,L.qc)}); +g.W(this,this.yB);this.XW=hO(function(){return new vZ(Q,L.fp,L.kJ,L.Vl,L.Bz,L.Xt,L.t7,L.cI,L.K3,L.n5,L.Gq,L.Rq,L.le,L.sx,L.qc,L.xN,x,J)}); +g.W(this,this.XW);this.mY={EO:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Gx],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Qf],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Dm],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Q9]]),ut:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ou],["SLOT_TYPE_FORECASTING",this.Bq],["SLOT_TYPE_IN_PLAYER",this.Bq],["SLOT_TYPE_PLAYER_BYTES",this.Bq]]),H5:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.BB],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", +this.dT],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.dT],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.dT],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.dT],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.dT],["TRIGGER_TYPE_SLOT_ID_EXITED",this.dT],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.dT],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.dT],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.dT],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.sX],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.u2],["TRIGGER_TYPE_MEDIA_TIME_RANGE", +this.u2],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.kJ],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.sX],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.p4],["TRIGGER_TYPE_AD_BREAK_STARTED",this.fp]]),Mu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Pq],["SLOT_TYPE_ABOVE_FEED",this.Pq],["SLOT_TYPE_FORECASTING",this.Pq],["SLOT_TYPE_IN_PLAYER",this.Pq],["SLOT_TYPE_PLAYER_BYTES",this.h9]]),Kl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.H7],["SLOT_TYPE_FORECASTING",this.DC],["SLOT_TYPE_IN_PLAYER", +this.yB],["SLOT_TYPE_PLAYER_BYTES",this.XW]])};this.listeners=[v.get()];this.OO={Gx:this.Gx,GO:this.qc.get(),dh:this.le.get(),dk:this.K3.get(),Dm:this.Dm,Z$:u.get(),Jw:null,wi:this.BB,EG:v.get(),wQ:this.cI.get()}}; +VDp=function(Q,z,H,f,b){g.h.call(this);var L=this,u=hO(function(){return new wM(L.qc)}); +g.W(this,u);var X=hO(function(){return new Tx(u,L.qc)}); +g.W(this,X);var v=hO(function(){return new oa}); +g.W(this,v);var y=hO(function(){return new xH(Q)}); +g.W(this,y);var q=hO(function(){return new e3(u,X,L.qc)}); +g.W(this,q);var M=hO(function(){return new HB}); +g.W(this,M);this.M0=hO(function(){return new hb9(z)}); +g.W(this,this.M0);this.ZS=hO(function(){return new C0(z)}); +g.W(this,this.ZS);this.le=hO(function(){return new DS(b)}); +g.W(this,this.le);this.Gq=hO(function(){return new dQ(z)}); +g.W(this,this.Gq);this.n5=hO(function(){return new mL(z)}); +g.W(this,this.n5);this.t7=hO(function(){return new n0(z)}); +g.W(this,this.t7);this.Rq=hO(function(){return new wQ(z)}); +g.W(this,this.Rq);this.qc=hO(function(){return new kI(z)}); +g.W(this,this.qc);var C=hO(function(){return new M_(f)}); +g.W(this,C);var t=hO(function(){return new CN(L.qc)}); +g.W(this,t);var E=hO(function(){return new pQ(u,q,X,L.qc,t,null,null,null,null)}); +g.W(this,E);this.sx=hO(function(){return new gu(z)}); +g.W(this,this.sx);this.cI=hO(function(){return new L0(z,M,L.qc)}); +g.W(this,this.cI);var G=KJ({cI:this.cI,qc:this.qc,Oj:t}),x=G.context,J=G.QP;this.Yt=G.Yt;this.K3=hO(function(){return new u7(z,L.cI,L.qc)}); +g.W(this,this.K3);this.Bz=hO(function(){return new RP(L.K3,z,L.qc)}); +g.W(this,this.Bz);this.Vl=hO(function(){return new b7(z,v,L.Bz,L.cI,L.Yt,L.qc,J)}); +g.W(this,this.Vl);this.Xt=hO(function(){return new mm(L.qc)}); +g.W(this,this.Xt);this.Qf=new j3(Amn,Gm,function(r,U,D,T){return lsn(X.get(),r,U,D,T)},y,q,X,t,this.qc,this.cI); +g.W(this,this.Qf);this.Dm=new FM(y,E,H,this.qc,Q,this.cI,this.K3,this.Gq);g.W(this,this.Dm);var I=new VU(z,this.Dm,this.K3,this.cI);this.m2=hO(function(){return I}); +this.rg=I;this.Q9=new OD(y,q,this.n5,this.m2,x);g.W(this,this.Q9);this.Gx=new Uy(this.qc,y,q,E,this.cI,this.Q9,H);g.W(this,this.Gx);this.Ou=hO(function(){return new MS(C,X,t,L.qc,L.Vl,L.K3)}); +g.W(this,this.Ou);this.Bq=hO(function(){return new Ci}); +g.W(this,this.Bq);this.BB=new sD(Q,this.ZS,this.qc);g.W(this,this.BB);this.dT=new BS(Q);g.W(this,this.dT);this.sX=new UD(Q,this.m2,x);g.W(this,this.sX);this.u2=new cS(Q,this.n5,this.K3,this.cI,x);g.W(this,this.u2);this.kJ=new h7(Q);g.W(this,this.kJ);this.p4=new WS(Q);g.W(this,this.p4);this.xN=hO(function(){return new ZB(z)}); +g.W(this,this.xN);this.fp=new mi(Q);g.W(this,this.fp);this.Pq=hO(function(){return new Ia}); +g.W(this,this.Pq);this.h9=hO(function(){return new A7(L.K3)}); +g.W(this,this.h9);this.H7=hO(function(){return new lc(L.Gx,y,u)}); +g.W(this,this.H7);this.DC=hO(function(){return new zR(L.qc,L.Vl,L.kJ,L.Bz)}); +g.W(this,this.DC);this.XW=hO(function(){return new vZ(Q,L.fp,L.kJ,L.Vl,L.Bz,L.Xt,L.t7,L.cI,L.K3,L.n5,L.Gq,L.Rq,L.le,L.sx,L.qc,L.xN,x,J)}); +g.W(this,this.XW);this.HH=hO(function(){return new kvp(L.ZS,L.K3,L.Vl,v,L.M0,H,L.cI)}); +g.W(this,this.HH);this.mY={EO:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Gx],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Qf],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Dm],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Q9]]),ut:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ou],["SLOT_TYPE_FORECASTING",this.Bq],["SLOT_TYPE_IN_PLAYER",this.Bq],["SLOT_TYPE_PLAYER_BYTES",this.Bq]]),H5:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.BB],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", +this.dT],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.dT],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.dT],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.dT],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.dT],["TRIGGER_TYPE_SLOT_ID_EXITED",this.dT],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.dT],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.dT],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.dT],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.sX],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.u2],["TRIGGER_TYPE_MEDIA_TIME_RANGE", +this.u2],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.kJ],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.sX],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.p4],["TRIGGER_TYPE_AD_BREAK_STARTED",this.fp]]),Mu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Pq],["SLOT_TYPE_FORECASTING",this.Pq],["SLOT_TYPE_IN_PLAYER",this.Pq],["SLOT_TYPE_PLAYER_BYTES",this.h9]]),Kl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.H7],["SLOT_TYPE_FORECASTING",this.DC],["SLOT_TYPE_IN_PLAYER",this.HH],["SLOT_TYPE_PLAYER_BYTES", +this.XW]])};this.listeners=[v.get()];this.OO={Gx:this.Gx,GO:this.qc.get(),dh:this.le.get(),dk:this.K3.get(),Dm:this.Dm,Z$:u.get(),Jw:null,wi:this.BB,EG:v.get(),wQ:this.cI.get()}}; +dh_=function(Q,z,H,f,b){g.h.call(this);var L=this,u=hO(function(){return new wM(L.qc)}); +g.W(this,u);var X=hO(function(){return new Tx(u,L.qc)}); +g.W(this,X);var v=hO(function(){return new oa}); +g.W(this,v);var y=hO(function(){return new xH(Q)}); +g.W(this,y);var q=hO(function(){return new e3(u,X,L.qc)}); +g.W(this,q);var M=hO(function(){return new HB}); +g.W(this,M);this.M0=hO(function(){return new hb9(z)}); +g.W(this,this.M0);this.ZS=hO(function(){return new C0(z)}); +g.W(this,this.ZS);this.le=hO(function(){return new DS(b)}); +g.W(this,this.le);this.Gq=hO(function(){return new dQ(z)}); +g.W(this,this.Gq);this.n5=hO(function(){return new mL(z)}); +g.W(this,this.n5);this.t7=hO(function(){return new n0(z)}); +g.W(this,this.t7);this.Rq=hO(function(){return new wQ(z)}); +g.W(this,this.Rq);this.qc=hO(function(){return new kI(z)}); +g.W(this,this.qc);var C=hO(function(){return new M_(f)}); +g.W(this,C);var t=hO(function(){return new CN(L.qc)}); +g.W(this,t);this.sx=hO(function(){return new gu(z)}); +g.W(this,this.sx);this.cI=hO(function(){return new L0(z,M,L.qc)}); +g.W(this,this.cI);var E=KJ({cI:this.cI,qc:this.qc,Oj:t}),G=E.context,x=E.QP;this.Yt=E.Yt;this.u8=hO(function(){return new p0(z,L.qc,L.Vl)}); +g.W(this,this.u8);this.xN=hO(function(){return new ZB(z)}); +g.W(this,this.xN);this.K3=hO(function(){return new u7(z,L.cI,L.qc)}); +g.W(this,this.K3);E=hO(function(){return new pQ(u,q,X,L.qc,t,null,L.K3,L.L4,L.J$,3)}); +g.W(this,E);this.Xt=hO(function(){return new mm(L.qc)}); +this.Bz=hO(function(){return new RP(L.K3,z,L.qc)}); +g.W(this,this.Bz);this.Vl=hO(function(){return new b7(z,v,L.Bz,L.cI,L.Yt,L.qc,x)}); +g.W(this,this.Vl);this.Dm=new FM(y,E,H,this.qc,Q,this.cI,this.K3,this.Gq);g.W(this,this.Dm);var J=new VU(z,this.Dm,this.K3,this.cI,this.u8);this.m2=hO(function(){return J}); +this.rg=J;this.Qf=new j3(YdA,Gm,function(I,r,U,D){return lsn(X.get(),I,r,U,D)},y,q,X,t,this.qc,this.cI); +g.W(this,this.Qf);this.L4=new ZO(y,q,this.m2,this.u8,this.K3,this.qc,this.Vl,this.xN);g.W(this,this.L4);this.Q9=new OD(y,q,this.n5,this.m2,G);g.W(this,this.Q9);this.Gx=new Uy(this.qc,y,q,E,this.cI,this.Q9,H);g.W(this,this.Gx);this.Ou=hO(function(){return new MS(C,X,t,L.qc,L.Vl,L.K3,L.xN)}); +g.W(this,this.Ou);this.Bq=hO(function(){return new Ci}); +g.W(this,this.Bq);this.BB=new sD(Q,this.ZS,this.qc);g.W(this,this.BB);this.dT=new BS(Q);g.W(this,this.dT);this.sX=new UD(Q,this.m2,G);g.W(this,this.sX);this.u2=new cS(Q,this.n5,this.K3,this.cI,G);g.W(this,this.u2);this.Yq=new i6(Q,this.cI);g.W(this,this.Yq);this.J$=new DO(Q,this.u8,this.K3,this.Vl,this.m2);g.W(this,this.J$);this.kJ=new h7(Q);g.W(this,this.kJ);this.p4=new WS(Q);g.W(this,this.p4);this.fp=new mi(Q);g.W(this,this.fp);this.Pq=hO(function(){return new Ia}); +g.W(this,this.Pq);this.h9=hO(function(){return new A7(L.K3)}); +g.W(this,this.h9);this.H7=hO(function(){return new lc(L.Gx,y,u)}); +g.W(this,this.H7);this.DC=hO(function(){return new zR(L.qc,L.Vl,L.kJ,L.Bz)}); +g.W(this,this.DC);this.XW=hO(function(){return new XO(Q,L.fp,L.kJ,L.cI,L.xN,L.K3,L.Vl,M,L.u8,L.Bz,L.Xt,L.t7,L.n5,L.Gq,L.Rq,L.le,L.sx,L.qc,v,G,x)}); +g.W(this,this.XW);this.zI=hO(function(){return new TEv(L.ZS,L.K3,L.Vl,v,L.M0,H,L.qc,L.cI)}); +g.W(this,this.zI);this.mY={EO:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Gx],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.L4],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Qf],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.Dm],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Q9]]),ut:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Ou],["SLOT_TYPE_FORECASTING",this.Bq],["SLOT_TYPE_IN_PLAYER",this.Bq],["SLOT_TYPE_PLAYER_BYTES",this.Bq]]),H5:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", +this.BB],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.dT],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.dT],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.dT],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.dT],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.dT],["TRIGGER_TYPE_SLOT_ID_EXITED",this.dT],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.dT],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.dT],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.dT],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.sX],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", +this.u2],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.u2],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Yq],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Yq],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.kJ],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.sX],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.p4],["TRIGGER_TYPE_AD_BREAK_STARTED",this.fp],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.J$],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", +this.J$],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.J$],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.J$],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.J$]]),Mu:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.Pq],["SLOT_TYPE_FORECASTING",this.Pq],["SLOT_TYPE_IN_PLAYER",this.Pq],["SLOT_TYPE_PLAYER_BYTES",this.h9]]),Kl:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.H7],["SLOT_TYPE_FORECASTING",this.DC],["SLOT_TYPE_PLAYER_BYTES",this.XW],["SLOT_TYPE_IN_PLAYER",this.zI]])};this.listeners=[v.get()]; +this.OO={Gx:this.Gx,GO:this.qc.get(),dh:this.le.get(),dk:this.K3.get(),Dm:this.Dm,Z$:u.get(),Jw:null,wi:this.BB,EG:v.get(),wQ:this.cI.get()}}; +w1Z=function(Q,z,H,f){function b(){return L.B} +g.h.call(this);var L=this;Q.C().experiments.Nc("html5_dispose_of_manager_before_dependency")?(this.Z=mhA(b,Q,z,H,f),this.B=(new Wa(this.Z)).L(),g.W(this,this.B),g.W(this,this.Z)):(this.Z=mhA(b,Q,z,H,f),g.W(this,this.Z),this.B=(new Wa(this.Z)).L(),g.W(this,this.B))}; +$5=function(Q){return Q.Z.OO}; +mhA=function(Q,z,H,f,b){try{var L=z.C();if(g.wm(L))var u=new WOp(Q,z,H,f,b);else if(g.Tt(L))u=new DhL(Q,z,H,f,b);else if(c0(L))u=new KO_(Q,z,H,f,b);else if(g.c6(L))u=new VDp(Q,z,H,f,b);else if(g.rm(L))u=new dh_(Q,z,H,f,b);else throw new TypeError("Unknown web interface");return u}catch(X){return u=z.C(),Cp("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:u.Z.cplatform,interface:u.Z.c,i9T:u.Z.cver,pQl:u.Z.ctheme,EQ5:u.Z.cplayer,Dev:u.playerStyle}),new ARp(Q,z,H,f,b)}}; +k$u=function(Q){ds.call(this,Q)}; +T_J=function(Q,z,H,f,b){Q_.call(this,Q,{G:"div",J:"ytp-ad-timed-pie-countdown-container",W:[{G:"svg",J:"ytp-ad-timed-pie-countdown",T:{viewBox:"0 0 20 20"},W:[{G:"circle",J:"ytp-ad-timed-pie-countdown-background",T:{r:"10",cx:"10",cy:"10"}},{G:"circle",J:"ytp-ad-timed-pie-countdown-inner",T:{r:"5",cx:"10",cy:"10"}},{G:"circle",J:"ytp-ad-timed-pie-countdown-outer",T:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",z,H,f,b);this.D=this.Mc("ytp-ad-timed-pie-countdown-container");this.L=this.Mc("ytp-ad-timed-pie-countdown-inner"); +this.j=this.Mc("ytp-ad-timed-pie-countdown-outer");this.B=Math.ceil(2*Math.PI*5);this.hide()}; +ebc=function(Q,z,H,f,b,L){Ec.call(this,Q,{G:"div",J:"ytp-ad-action-interstitial",T:{tabindex:"0"},W:[{G:"div",J:"ytp-ad-action-interstitial-background-container"},{G:"div",J:"ytp-ad-action-interstitial-slot",W:[{G:"div",J:"ytp-ad-action-interstitial-instream-info"},{G:"div",J:"ytp-ad-action-interstitial-card",W:[{G:"div",J:"ytp-ad-action-interstitial-image-container"},{G:"div",J:"ytp-ad-action-interstitial-headline-container"},{G:"div",J:"ytp-ad-action-interstitial-description-container"},{G:"div", +J:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",z,H,f);this.uP=b;this.EH=L;this.navigationEndpoint=this.Z=this.skipButton=this.B=this.actionButton=null;this.mq=this.Mc("ytp-ad-action-interstitial-instream-info");this.jm=this.Mc("ytp-ad-action-interstitial-image-container");this.U=new Wf(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,"ytp-ad-action-interstitial-image");g.W(this,this.U);this.U.Gv(this.jm);this.yl=this.Mc("ytp-ad-action-interstitial-headline-container"); +this.j=new lI(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,"ytp-ad-action-interstitial-headline");g.W(this,this.j);this.j.Gv(this.yl);this.wh=this.Mc("ytp-ad-action-interstitial-description-container");this.L=new lI(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,"ytp-ad-action-interstitial-description");g.W(this,this.L);this.L.Gv(this.wh);this.WI=this.Mc("ytp-ad-action-interstitial-background-container");this.iT=new Wf(this.api,this.layoutId,this.interactionLoggingClientData, +this.dh,"ytp-ad-action-interstitial-background",!0);g.W(this,this.iT);this.iT.Gv(this.WI);this.C3=this.Mc("ytp-ad-action-interstitial-action-button-container");this.slot=this.Mc("ytp-ad-action-interstitial-slot");this.dV=this.Mc("ytp-ad-action-interstitial-card");this.D=new I4;g.W(this,this.D);this.hide()}; +lja=function(Q){var z=g.ea("html5-video-player");z&&g.MP(z,"ytp-ad-display-override",Q)}; +HbZ=function(Q,z,H,f){Ec.call(this,Q,{G:"div",J:"ytp-ad-overlay-slot",W:[{G:"div",J:"ytp-ad-overlay-container"}]},"invideo-overlay",z,H,f);this.U=[];this.WI=this.yl=this.D=this.C3=this.mq=null;this.iT=!1;this.j=null;this.wh=0;Q=this.Mc("ytp-ad-overlay-container");this.jm=new XS(Q,45E3,6E3,.3,.4);g.W(this,this.jm);this.L=RbL(this);g.W(this,this.L);this.L.Gv(Q);this.B=QBc(this);g.W(this,this.B);this.B.Gv(Q);this.Z=zD_(this);g.W(this,this.Z);this.Z.Gv(Q);this.hide()}; +RbL=function(Q){var z=new g.tB({G:"div",J:"ytp-ad-text-overlay",W:[{G:"div",J:"ytp-ad-overlay-ad-info-button-container"},{G:"div",J:"ytp-ad-overlay-close-container",W:[{G:"button",J:"ytp-ad-overlay-close-button",W:[sc(fGZ)]}]},{G:"div",J:"ytp-ad-overlay-title",BI:"{{title}}"},{G:"div",J:"ytp-ad-overlay-desc",BI:"{{description}}"},{G:"div",lT:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],BI:"{{displayUrl}}"}]});Q.X(z.Mc("ytp-ad-overlay-title"),"click",function(H){j6(Q,z.element,H)}); +Q.X(z.Mc("ytp-ad-overlay-link"),"click",function(H){j6(Q,z.element,H)}); +Q.X(z.Mc("ytp-ad-overlay-close-container"),"click",Q.BL);z.hide();return z}; +QBc=function(Q){var z=new g.tB({G:"div",lT:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],W:[{G:"div",J:"ytp-ad-overlay-ad-info-button-container"},{G:"div",J:"ytp-ad-overlay-close-container",W:[{G:"button",J:"ytp-ad-overlay-close-button",W:[sc(fGZ)]}]},{G:"div",J:"ytp-ad-overlay-text-image",W:[{G:"img",T:{src:"{{imageUrl}}"}}]},{G:"div",J:"ytp-ad-overlay-title",BI:"{{title}}"},{G:"div",J:"ytp-ad-overlay-desc",BI:"{{description}}"},{G:"div",lT:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], +BI:"{{displayUrl}}"}]});Q.X(z.Mc("ytp-ad-overlay-title"),"click",function(H){j6(Q,z.element,H)}); +Q.X(z.Mc("ytp-ad-overlay-link"),"click",function(H){j6(Q,z.element,H)}); +Q.X(z.Mc("ytp-ad-overlay-close-container"),"click",Q.BL);Q.X(z.Mc("ytp-ad-overlay-text-image"),"click",Q.l6j);z.hide();return z}; +zD_=function(Q){var z=new g.tB({G:"div",J:"ytp-ad-image-overlay",W:[{G:"div",J:"ytp-ad-overlay-ad-info-button-container"},{G:"div",J:"ytp-ad-overlay-close-container",W:[{G:"button",J:"ytp-ad-overlay-close-button",W:[sc(fGZ)]}]},{G:"div",J:"ytp-ad-overlay-image",W:[{G:"img",T:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});Q.X(z.Mc("ytp-ad-overlay-image"),"click",function(H){j6(Q,z.element,H)}); +Q.X(z.Mc("ytp-ad-overlay-close-container"),"click",Q.BL);z.hide();return z}; +bb_=function(Q,z){if(z){var H=g.K(z,sy)||null;H==null?g.PT(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(z=g.ea("video-ads ytp-ad-module")||null,z==null?g.PT(Error("Could not locate the root ads container element to attach the ad info dialog.")):(Q.yl=new g.tB({G:"div",J:"ytp-ad-overlay-ad-info-dialog-container"}),g.W(Q,Q.yl),Q.yl.Gv(z),z=new eE(Q.api,Q.layoutId,Q.interactionLoggingClientData,Q.dh,Q.yl.element,!1),g.W(Q,z),z.init(SE("ad-info-hover-text-button"),H,Q.macros), +Q.j?(z.Gv(Q.j,0),z.subscribe("f",Q.Z5j,Q),z.subscribe("e",Q.O5,Q),Q.X(Q.j,"click",Q.woh),Q.X(g.ea("ytp-ad-button",z.element),"click",function(){var f;if(g.K((f=g.K(H.button,g.Pc))==null?void 0:f.serviceEndpoint,zwp))Q.iT=Q.api.getPlayerState(1)===2,Q.api.pauseVideo();else Q.api.onAdUxClicked("ad-info-hover-text-button",Q.layoutId)}),Q.WI=z):g.PT(Error("Ad info button container within overlay ad was not present."))))}else g.ax(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; +uHp=function(Q,z){if(LKY(Q,Fl)||Q.api.isMinimized())return!1;var H=pa(z.title),f=pa(z.description);if(g.Fx(H)||g.Fx(f))return!1;Q.createServerVe(Q.L.element,z.trackingParams||null);Q.L.updateValue("title",pa(z.title));Q.L.updateValue("description",pa(z.description));Q.L.updateValue("displayUrl",pa(z.displayUrl));z.navigationEndpoint&&g.HY(Q.U,z.navigationEndpoint);Q.L.show();Q.jm.start();Q.logVisibility(Q.L.element,!0);Q.X(Q.L.element,"mouseover",function(){Q.wh++}); +return!0}; +S__=function(Q,z){if(LKY(Q,Fl)||Q.api.isMinimized())return!1;var H=pa(z.title),f=pa(z.description);if(g.Fx(H)||g.Fx(f))return!1;Q.createServerVe(Q.B.element,z.trackingParams||null);Q.B.updateValue("title",pa(z.title));Q.B.updateValue("description",pa(z.description));Q.B.updateValue("displayUrl",pa(z.displayUrl));Q.B.updateValue("imageUrl",ZfA(z.image));z.navigationEndpoint&&g.HY(Q.U,z.navigationEndpoint);Q.C3=z.imageNavigationEndpoint||null;Q.B.show();Q.jm.start();Q.logVisibility(Q.B.element,!0); +Q.X(Q.B.element,"mouseover",function(){Q.wh++}); +return!0}; +Xdv=function(Q,z){if(Q.api.isMinimized())return!1;var H=GaY(z.image),f=H;H.width0?(z=new aQ(Q.api,Q.Z),z.Gv(Q.playerOverlay), +g.W(Q,z)):g.PT(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(z)))}}else g.PT(Error("addCommonComponents() needs to be called before starting countdown."))}; +Zba=function(Q){function z(H){return{toString:function(){return H()}}} +Q.macros.SURVEY_LOCAL_TIME_EPOCH_S=z(function(){var H=new Date;return(Math.round(H.valueOf()/1E3)+-1*H.getTimezoneOffset()*60).toString()}); +Q.macros.SURVEY_ELAPSED_MS=z(function(){return(Date.now()-Q.L).toString()})}; +GPp=function(Q,z,H,f,b){Jo.call(this,Q,z,H,f,"survey-question-multi-select");this.wh=b;this.noneOfTheAbove=null;this.submitEndpoints=[];this.j=null;this.hide()}; +$yZ=function(Q,z,H){Q.noneOfTheAbove=new tqn(Q.api,Q.layoutId,Q.interactionLoggingClientData,Q.dh);Q.noneOfTheAbove.Gv(Q.answers);Q.noneOfTheAbove.init(SE("survey-none-of-the-above"),z,H)}; +FKJ=function(Q){Q.B.forEach(function(z){z.Z.toggleButton(!1)}); +jB8(Q,!0)}; +jB8=function(Q,z){var H=Q.D;Q=xyJ(Q);z=z===void 0?!1:z;H.Z&&(Q?H.Z.hide():H.Z.show(),z&&H.Z instanceof Zh&&!H.Z.D&&y$9(H.Z,!1));H.B&&(Q?H.B.show():H.B.hide())}; +xyJ=function(Q){return Q.B.some(function(z){return z.Z.isToggled()})||Q.noneOfTheAbove.button.isToggled()}; +N_=function(Q,z,H,f,b){Jo.call(this,Q,z,H,f,"survey-question-single-select",function(u){L.api.C().V("supports_multi_step_on_desktop")&&b([u])}); +var L=this;this.hide()}; +I5=function(Q,z,H,f){Ec.call(this,Q,{G:"div",J:"ytp-ad-survey",W:[{G:"div",J:"ytp-ad-survey-questions"}]},"survey",z,H,f);this.questions=[];this.B=[];this.conditioningRules=[];this.Z=0;this.j=this.Mc("ytp-ad-survey-questions");this.api.C().V("fix_survey_color_contrast_on_destop")&&this.Mc("ytp-ad-survey").classList.add("color-contrast-fix");this.api.C().V("web_enable_speedmaster")&&this.Mc("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; +JWk=function(Q,z){var H=Q.B[z],f;(f=Q.L)==null||f.dispose();g.K(H,YN)?Ob6(Q,g.K(H,YN),Q.macros):g.K(H,AA)&&ouv(Q,g.K(H,AA),Q.macros);Q.Z=z}; +Ob6=function(Q,z,H){var f=new N_(Q.api,Q.layoutId,Q.interactionLoggingClientData,Q.dh,Q.D.bind(Q));f.Gv(Q.j);f.init(SE("survey-question-single-select"),z,H);Q.api.C().V("supports_multi_step_on_desktop")?Q.L=f:Q.questions.push(f);g.W(Q,f)}; +ouv=function(Q,z,H){var f=new GPp(Q.api,Q.layoutId,Q.interactionLoggingClientData,Q.dh,Q.D.bind(Q));f.Gv(Q.j);f.init(SE("survey-question-multi-select"),z,H);Q.api.C().V("supports_multi_step_on_desktop")?Q.L=f:Q.questions.push(f);g.W(Q,f)}; +Ao=function(Q,z,H,f){Ec.call(this,Q,{G:"div",J:"ytp-ad-survey-interstitial",W:[{G:"div",J:"ytp-ad-survey-interstitial-contents",W:[{G:"div",J:"ytp-ad-survey-interstitial-logo",W:[{G:"div",J:"ytp-ad-survey-interstitial-logo-image"}]},{G:"div",J:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",z,H,f);this.Z=this.actionButton=null;this.interstitial=this.Mc("ytp-ad-survey-interstitial");this.B=this.Mc("ytp-ad-survey-interstitial-contents");this.text=this.Mc("ytp-ad-survey-interstitial-text"); +this.logoImage=this.Mc("ytp-ad-survey-interstitial-logo-image");this.transition=new g.fp(this,500,!1,300);g.W(this,this.transition)}; +NOv=function(Q,z){z=z&&hB(z)||"";if(g.Fx(z))g.ax(Error("Found ThumbnailDetails without valid image URL"));else{var H=Q.style;Q=Q.style.cssText;var f=document.implementation.createHTMLDocument("").createElement("DIV");f.style.cssText=Q;Q=m2k(f.style);H.cssText=[Q,'background-image:url("'+z+'");'].join("")}}; +IGA=function(Q){var z=g.ea("html5-video-player");z&&g.MP(z,"ytp-ad-display-override",Q)}; +Y5=function(Q,z,H,f,b,L){L=L===void 0?0:L;Q_.call(this,Q,{G:"div",J:"ytp-preview-ad",W:[{G:"div",J:"ytp-preview-ad__text"}]},"preview-ad",z,H,f,b);var u=this;this.wh=L;this.B=0;this.D=-1;this.L=this.Mc("ytp-preview-ad__text");switch(this.wh){case 1:this.L.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.fp(this,400,!1,100,function(){u.hide()}); +g.W(this,this.transition);this.hide()}; +ru=function(Q,z,H,f){Ec.call(this,Q,{G:"img",J:"ytp-ad-avatar"},"ad-avatar",z,H,f);this.hide()}; +AWa=function(Q){switch(Q.size){case "AD_AVATAR_SIZE_XXS":return 16;case "AD_AVATAR_SIZE_XS":return 24;case "AD_AVATAR_SIZE_S":return 32;case "AD_AVATAR_SIZE_M":return 36;case "AD_AVATAR_SIZE_L":return 56;case "AD_AVATAR_SIZE_XL":return 72;default:return 36}}; +sp=function(Q,z,H,f,b,L){b=b===void 0?!1:b;L=L===void 0?!1:L;Ec.call(this,Q,{G:"button",J:"ytp-ad-button-vm"},"ad-button",z,H,f);this.buttonText=this.buttonIcon=null;this.hide();this.Z=b;this.B=L}; +Y_c=function(Q,z,H,f,b){Q_.call(this,Q,{G:"div",lT:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],W:[{G:"div",J:"ytp-ad-avatar-lockup-card__avatar_and_text_container",W:[{G:"div",J:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",z,H,f,b);this.startMilliseconds=0;this.adAvatar=new ru(this.api,this.layoutId,this.interactionLoggingClientData,this.dh);g.W(this,this.adAvatar);Sz(this.element,this.adAvatar.element,0);this.headline=new AT(this.api,this.layoutId, +this.interactionLoggingClientData,this.dh);g.W(this,this.headline);this.headline.Gv(this.Mc("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new AT(this.api,this.layoutId,this.interactionLoggingClientData,this.dh);g.W(this,this.description);this.description.Gv(this.Mc("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new sp(this.api, +this.layoutId,this.interactionLoggingClientData,this.dh);g.W(this,this.adButton);this.adButton.Gv(this.element);this.hide()}; +By=function(Q,z,H,f){Ec.call(this,Q,{G:"button",J:"ytp-skip-ad-button",W:[{G:"div",J:"ytp-skip-ad-button__text"}]},"skip-button",z,H,f);var b=this;this.B=!1;this.D=this.Mc("ytp-skip-ad-button__text");this.transition=new g.fp(this,500,!1,100,function(){b.hide()}); +g.W(this,this.transition);this.Z=new XS(this.element,15E3,5E3,.5,.5,!0);g.W(this,this.Z);this.hide()}; +rWZ=function(Q,z,H,f,b){Q_.call(this,Q,{G:"div",J:"ytp-skip-ad"},"skip-ad",z,H,f,b);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.L=new By(this.api,this.layoutId,this.interactionLoggingClientData,this.dh);g.W(this,this.L);this.L.Gv(this.element);this.hide()}; +Py=function(Q,z,H,f){Ec.call(this,Q,{G:"div",J:"ytp-visit-advertiser-link"},"visit-advertiser-link",z,H,f);this.hide();this.api.V("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-visit-advertiser-link--clean-player");this.api.V("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-visit-advertiser-link--clean-player-with-light-shadow")}; +a5=function(Q,z,H,f,b){Ec.call(this,Q,{G:"div",J:"ytp-ad-player-overlay-layout",W:[{G:"div",J:"ytp-ad-player-overlay-layout__player-card-container"},{G:"div",J:"ytp-ad-player-overlay-layout__ad-info-container",W:[Q.C().V("delhi_modern_web_player")?{G:"div",J:"ytp-ad-player-overlay-layout__ad-info-container-left"}:null]},{G:"div",J:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{G:"div",J:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",z,H,f);this.L= +b;this.jm=this.Mc("ytp-ad-player-overlay-layout__player-card-container");this.Z=this.Mc("ytp-ad-player-overlay-layout__ad-info-container");this.wh=this.Mc("ytp-ad-player-overlay-layout__skip-or-preview-container");this.yl=this.Mc("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");Q.C().V("delhi_modern_web_player")&&(this.D=this.Mc("ytp-ad-player-overlay-layout__ad-info-container-left"));this.hide()}; +sBL=function(Q,z,H,f){Ec.call(this,Q,{G:"div",J:"ytp-ad-grid-card-text",W:[{G:"div",J:"ytp-ad-grid-card-text__metadata",W:[{G:"div",J:"ytp-ad-grid-card-text__metadata__headline"},{G:"div",J:"ytp-ad-grid-card-text__metadata__description",W:[{G:"div",J:"ytp-ad-grid-card-text__metadata__description__line"},{G:"div",J:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{G:"div",J:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",z,H,f);this.headline=new AT(this.api,this.layoutId,this.interactionLoggingClientData, +this.dh);g.W(this,this.headline);this.headline.Gv(this.Mc("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new sp(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,!0);g.W(this,this.moreInfoButton);this.moreInfoButton.Gv(this.Mc("ytp-ad-grid-card-text__button"))}; +Up=function(Q,z,H,f){Ec.call(this,Q,{G:"div",J:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",z,H,f);this.Z=[]}; +cy=function(Q,z,H,f,b,L,u){Q_.call(this,Q,L,u,z,H,f,b);this.playerProgressOffsetMs=0;this.B=!1}; +BOc=function(Q){var z=g.ea("html5-video-player");z&&g.MP(z,"ytp-ad-display-override",Q)}; +PP6=function(Q,z,H,f,b){cy.call(this,Q,z,H,f,b,{G:"div",J:"ytp-display-underlay-text-grid-cards",W:[{G:"div",J:"ytp-display-underlay-text-grid-cards__content_container",W:[{G:"div",J:"ytp-display-underlay-text-grid-cards__content_container__header",W:[{G:"div",J:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{G:"div",J:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{G:"div",J:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, +{G:"div",J:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new Up(this.api,this.layoutId,this.interactionLoggingClientData,this.dh);g.W(this,this.adGridCardCollection);this.adGridCardCollection.Gv(this.Mc("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new sp(this.api,this.layoutId,this.interactionLoggingClientData,this.dh);g.W(this,this.adButton);this.adButton.Gv(this.Mc("ytp-display-underlay-text-grid-cards__content_container__ad_button")); +this.L=this.Mc("ytp-display-underlay-text-grid-cards__content_container");this.D=this.Mc("ytp-display-underlay-text-grid-cards__content_container__header")}; +i7=function(Q,z,H,f){Ec.call(this,Q,{G:"div",J:"ytp-ad-details-line"},"ad-details-line",z,H,f);this.Z=[];this.hide()}; +ho=function(Q,z,H,f){Ec.call(this,Q,{G:"div",J:"ytp-image-background",W:[{G:"img",J:"ytp-image-background-image"}]},"image-background",z,H,f);this.hide()}; +aG6=function(Q,z,H,f,b){Q_.call(this,Q,{G:"svg",J:"ytp-timed-pie-countdown",T:{viewBox:"0 0 20 20"},W:[{G:"circle",J:"ytp-timed-pie-countdown__background",T:{r:"10",cx:"10",cy:"10"}},{G:"circle",J:"ytp-timed-pie-countdown__inner",T:{r:"5",cx:"10",cy:"10"}},{G:"circle",J:"ytp-timed-pie-countdown__outer",T:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",z,H,f,b);this.L=this.Mc("ytp-timed-pie-countdown__inner");this.B=Math.ceil(2*Math.PI*5);this.hide()}; +Wy=function(Q,z,H,f){Ec.call(this,Q,{G:"div",J:"ytp-video-interstitial-buttoned-centered-layout",T:{tabindex:"0"},W:[{G:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content",W:[{G:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{G:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",W:[{G:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{G:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, +{G:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{G:"div",J:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{G:"div",J:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",z,H,f);this.B=null;this.D=this.Mc("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.L=new I4;g.W(this,this.L);this.hide()}; +Uyu=function(Q){var z=g.ea("html5-video-player");z&&g.MP(z,"ytp-ad-display-override",Q)}; +cW9=function(Q){if(!Q.adAvatar||!g.K(Q.adAvatar,DB))return g.PT(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!Q.headline)return g.PT(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!Q.adBadge||!g.K(Q.adBadge,K0))return g.PT(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!Q.adButton||!g.K(Q.adButton,VB))return g.PT(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!Q.adInfoRenderer|| +!g.K(Q.adInfoRenderer,sy))return g.PT(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;Q=Q.durationMilliseconds||0;return typeof Q!=="number"||Q<=0?(g.PT(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+Q)),!1):!0}; +du=function(Q,z,H){ds.call(this,Q);this.api=Q;this.dh=z;this.B={};Q=new g.m({G:"div",lT:["video-ads","ytp-ad-module"]});g.W(this,Q);jN&&g.X9(Q.element,"ytp-ads-tiny-mode");this.S=new nt(Q.element);g.W(this,this.S);g.BG(this.api,Q.element,4);RV(H)&&(H=new g.m({G:"div",lT:["ytp-ad-underlay"]}),g.W(this,H),this.L=new nt(H.element),g.W(this,this.L),g.BG(this.api,H.element,0));g.W(this,ifJ())}; +ibY=function(Q,z){Q=g.sr(Q.B,z.id,null);Q==null&&g.ax(Error("Component not found for element id: "+z.id));return Q||null}; +hD6=function(Q){g.g3.call(this,Q);var z=this;this.B=null;this.created=!1;this.L=Q.C().V("h5_use_refactored_get_ad_break")?new PJp(this.player):new D2(this.player);this.D=function(){if(z.B!=null)return z.B;var f=new DEL({wi:$5(z.Z).wi,wQ:$5(z.Z).wQ,K:z.player,GO:$5(z.Z).GO,Vl:z.Z.Z.Vl,EG:$5(z.Z).EG,Rq:z.Z.Z.Rq});z.B=f.O$;return z.B}; +this.Z=new w1Z(this.player,this,this.L,this.D);g.W(this,this.Z);var H=Q.C();!OV(H)||g.rm(H)||c0(H)||(g.W(this,new du(Q,$5(this.Z).dh,$5(this.Z).GO)),g.W(this,new k$u(Q)))}; +WKA=function(Q){Q.created!==Q.loaded&&Cp("Created and loaded are out of sync")}; +Vqp=function(Q){g.g3.prototype.load.call(Q);var z=$5(Q.Z).GO;try{Q.player.getRootNode().classList.add("ad-created")}catch(v){Cp(v instanceof Error?v:String(v))}var H=Q.player.getVideoData(1),f=H&&H.videoId||"",b=H&&H.getPlayerResponse()||{},L=(!Q.player.C().experiments.Nc("debug_ignore_ad_placements")&&b&&b.adPlacements||[]).map(function(v){return v.adPlacementRenderer}),u=((b==null?void 0:b.adSlots)||[]).map(function(v){return g.K(v,cc)}); +b=b.playerConfig&&b.playerConfig.daiConfig&&b.playerConfig.daiConfig.enableDai||!1;H&&H.AZ();L=Dy8(L,u,z,$5(Q.Z).Z$);u=H&&H.clientPlaybackNonce||"";H=H&&H.R4||!1;if(FI(z,!0)&&H){var X;z={};(X=Q.player.getVideoData())==null||X.On("p_cpb",(z.cc=u,z))}X=1E3*Q.player.getDuration(1);KKn(Q);Q.Z.Z.rg.cY(u,X,H,L.Ao,L.oM,L.Ao,b,f)}; +KKn=function(Q){var z,H;if(H=(z=Q.player.getVideoData(1))==null||!z.R4)z=Q.player.C(),H=OV(z)&&!g.xJ(z)&&z.playerStyle==="desktop-polymer";H&&(Q=Q.player.getInternalApi(),Q.addEventListener("updateKevlarOrC3Companion",pU9),Q.addEventListener("updateEngagementPanelAction",nCA),Q.addEventListener("changeEngagementPanelVisibility",gC8),window.addEventListener("yt-navigate-start",GKn))}; +mH=function(Q,z){z===Q.G0&&(Q.G0=void 0)}; +dyk=function(Q){var z=$5(Q.Z).Dm,H=z.D().t4("SLOT_TYPE_PLAYER_BYTES",1);z=px(z.cI.get(),1).clientPlaybackNonce;var f=!1;H=g.n(H);for(var b=H.next();!b.done;b=H.next()){b=b.value;var L=b.slotType==="SLOT_TYPE_PLAYER_BYTES"&&b.slotEntryTrigger instanceof FO?b.slotEntryTrigger.f$:void 0;L&&L===z&&(f&&Cp("More than 1 preroll playerBytes slot detected",b),f=!0)}f||S6($5(Q.Z).dk)}; +myp=function(Q){if(TD($5(Q.Z).GO))return!0;var z="";Q=g.n($5(Q.Z).EG.g7.keys());for(var H=Q.next();!H.done;H=Q.next()){H=H.value;if(H.slotType==="SLOT_TYPE_PLAYER_BYTES"&&H.hh==="core")return!0;z+=H.slotType+" "}Math.random()<.01&&Cp("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:z});return!1}; +wd6=function(Q){Q=g.n($5(Q.Z).EG.g7.values());for(var z=Q.next();!z.done;z=Q.next())if(z.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; +Itk=function(Q,z,H,f,b,L){H=H===void 0?[]:H;f=f===void 0?"":f;b=b===void 0?"":b;var u=$5(Q.Z).GO,X=Q.player.getVideoData(1);X&&X.getPlayerResponse();X&&X.AZ();H=Dy8(z,H,u,$5(Q.Z).Z$);stL($5(Q.Z).Gx,f,H.Ao,H.oM,z,b,L)}; +Dy8=function(Q,z,H,f){z={Ao:[],oM:z};Q=g.n(Q);for(var b=Q.next();!b.done;b=Q.next())if((b=b.value)&&b.renderer!=null){var L=b.renderer;if(!H.K.C().V("html5_enable_vod_lasr_with_notify_pacf")){var u=void 0,X=void 0,v=void 0,y=void 0,q=f;g.K((y=L.sandwichedLinearAdRenderer)==null?void 0:y.adVideoStart,ED)?(u=g.K((v=L.sandwichedLinearAdRenderer)==null?void 0:v.adVideoStart,ED),u=weY(u,q),g.WT(L.sandwichedLinearAdRenderer.adVideoStart,ED,u)):g.K((X=L.linearAdSequenceRenderer)==null?void 0:X.adStart,ED)&& +(v=g.K((u=L.linearAdSequenceRenderer)==null?void 0:u.adStart,ED),u=weY(v,q),g.WT(L.linearAdSequenceRenderer.adStart,ED,u))}z.Ao.push(b)}return z}; +g.wu=function(Q){if(typeof DOMParser!="undefined")return TU(new DOMParser,W4Y(Q),"application/xml");throw Error("Your browser does not support loading xml documents");}; +g.k5=function(Q){g.h.call(this);this.callback=Q;this.Z=new F9(0,0,.4,0,.2,1,1,1);this.delay=new g.kW(this.next,window,this);g.W(this,this.delay)}; +g.kPc=function(Q){var z=Q.C();return z.p5&&!z.L&&g.O8(z)?Q.isEmbedsShortsMode()?(Q=Q.A8(),Math.min(Q.width,Q.height)>=315):!Q.HB():!1}; +g.Tm=function(Q){g.m.call(this,{G:"div",J:"ytp-more-videos-view",T:{tabIndex:"-1"}});var z=this;this.api=Q;this.B=!0;this.L=new g.Pt(this);this.Z=[];this.suggestionData=[];this.columns=this.containerWidth=this.N=this.D=this.scrollPosition=0;this.title=new g.m({G:"h2",J:"ytp-related-title",BI:"{{title}}"});this.previous=new g.m({G:"button",lT:["ytp-button","ytp-previous"],T:{"aria-label":"Show previous suggested videos"},W:[g.G8()]});this.Y=new g.k5(function(H){z.suggestions.element.scrollLeft=-H}); +this.next=new g.m({G:"button",lT:["ytp-button","ytp-next"],T:{"aria-label":"Show more suggested videos"},W:[g.jE()]});g.W(this,this.L);this.j=Q.C().D;g.W(this,this.title);this.title.Gv(this.element);this.suggestions=new g.m({G:"div",J:"ytp-suggestions"});g.W(this,this.suggestions);this.suggestions.Gv(this.element);g.W(this,this.previous);this.previous.Gv(this.element);this.previous.listen("click",this.Tu,this);g.W(this,this.Y);TOA(this);g.W(this,this.next);this.next.Gv(this.element);this.next.listen("click", +this.WH,this);this.L.X(this.api,"appresize",this.tZ);this.L.X(this.api,"fullscreentoggled",this.oK);this.L.X(this.api,"videodatachange",this.onVideoDataChange);this.tZ(this.api.Un().getPlayerSize());this.onVideoDataChange()}; +TOA=function(Q){for(var z={nK:0};z.nK<16;z={nK:z.nK},++z.nK){var H=new g.m({G:"a",J:"ytp-suggestion-link",T:{href:"{{link}}",target:Q.api.C().U,"aria-label":"{{aria_label}}"},W:[{G:"div",J:"ytp-suggestion-image"},{G:"div",J:"ytp-suggestion-overlay",T:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},W:[{G:"div",J:"ytp-suggestion-title",BI:"{{title}}"},{G:"div",J:"ytp-suggestion-author",BI:"{{author_and_views}}"},{G:"div",T:{"data-is-live":"{{is_live}}"},J:"ytp-suggestion-duration", +BI:"{{duration}}"}]}]});g.W(Q,H);var f=H.Mc("ytp-suggestion-link");g.M2(f,"transitionDelay",z.nK/20+"s");Q.L.X(f,"click",function(b){return function(L){var u=b.nK;if(Q.B){var X=Q.suggestionData[u],v=X.sessionData;Q.j&&Q.api.V("web_player_log_click_before_generating_ve_conversion_params")?(Q.api.logClick(Q.Z[u].element),u=X.ma(),X={},g.Y1(Q.api,X),u=g.de(u,X),g.Sf(u,Q.api,L)):g.uo(L,Q.api,Q.j,v||void 0)&&Q.api.cN(X.videoId,v,X.playlistId)}else L.preventDefault(),document.activeElement.blur()}}(z)); +H.Gv(Q.suggestions.element);Q.Z.push(H);Q.api.createServerVe(H.element,H)}}; +eDu=function(Q){if(Q.api.C().V("web_player_log_click_before_generating_ve_conversion_params"))for(var z=Math.floor(-Q.scrollPosition/(Q.D+8)),H=Math.min(z+Q.columns,Q.suggestionData.length)-1;z<=H;z++)Q.api.logVisibility(Q.Z[z].element,!0)}; +g.e6=function(Q){var z=Q.api.iW()?32:16;z=Q.N/2+z;Q.next.element.style.bottom=z+"px";Q.previous.element.style.bottom=z+"px";z=Q.scrollPosition;var H=Q.containerWidth-Q.suggestionData.length*(Q.D+8);g.MP(Q.element,"ytp-scroll-min",z>=0);g.MP(Q.element,"ytp-scroll-max",z<=H)}; +RD9=function(Q){for(var z=Q.suggestionData.length,H=0;H>>0)+"_",b=0;return z}); +Cn("Symbol.iterator",function(Q){if(Q)return Q;Q=Symbol("Symbol.iterator");for(var z="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),H=0;H=L}}); +Cn("String.prototype.endsWith",function(Q){return Q?Q:function(z,H){var f=sA(this,z,"endsWith");z+="";H===void 0&&(H=f.length);H=Math.max(0,Math.min(H|0,f.length));for(var b=z.length;b>0&&H>0;)if(f[--H]!=z[--b])return!1;return b<=0}}); +Cn("Array.prototype.entries",function(Q){return Q?Q:function(){return B_(this,function(z,H){return[z,H]})}}); +Cn("Math.imul",function(Q){return Q?Q:function(z,H){z=Number(z);H=Number(H);var f=z&65535,b=H&65535;return f*b+((z>>>16&65535)*b+f*(H>>>16&65535)<<16>>>0)|0}}); +Cn("Math.trunc",function(Q){return Q?Q:function(z){z=Number(z);if(isNaN(z)||z===Infinity||z===-Infinity||z===0)return z;var H=Math.floor(Math.abs(z));return z<0?-H:H}}); +Cn("Math.clz32",function(Q){return Q?Q:function(z){z=Number(z)>>>0;if(z===0)return 32;var H=0;(z&4294901760)===0&&(z<<=16,H+=16);(z&4278190080)===0&&(z<<=8,H+=8);(z&4026531840)===0&&(z<<=4,H+=4);(z&3221225472)===0&&(z<<=2,H+=2);(z&2147483648)===0&&H++;return H}}); +Cn("Math.log10",function(Q){return Q?Q:function(z){return Math.log(z)/Math.LN10}}); +Cn("Number.isNaN",function(Q){return Q?Q:function(z){return typeof z==="number"&&isNaN(z)}}); +Cn("Array.prototype.keys",function(Q){return Q?Q:function(){return B_(this,function(z){return z})}}); +Cn("Array.prototype.values",function(Q){return Q?Q:function(){return B_(this,function(z,H){return H})}}); +Cn("Array.prototype.fill",function(Q){return Q?Q:function(z,H,f){var b=this.length||0;H<0&&(H=Math.max(0,b+H));if(f==null||f>b)f=b;f=Number(f);f<0&&(f=Math.max(0,b+f));for(H=Number(H||0);H1342177279)throw new RangeError("Invalid count value");z|=0;for(var f="";z;)if(z&1&&(f+=H),z>>>=1)H+=H;return f}}); +Cn("Promise.prototype.finally",function(Q){return Q?Q:function(z){return this.then(function(H){return Promise.resolve(z()).then(function(){return H})},function(H){return Promise.resolve(z()).then(function(){throw H; +})})}}); +Cn("String.prototype.padStart",function(Q){return Q?Q:function(z,H){var f=sA(this,null,"padStart");z-=f.length;H=H!==void 0?String(H):" ";return(z>0&&H?H.repeat(Math.ceil(z/H.length)).substring(0,z):"")+f}}); +Cn("Array.prototype.findIndex",function(Q){return Q?Q:function(z,H){return tY8(this,z,H).AU}}); +Cn("Math.sign",function(Q){return Q?Q:function(z){z=Number(z);return z===0||isNaN(z)?z:z>0?1:-1}}); +Cn("WeakSet",function(Q){function z(H){this.Z=new WeakMap;if(H){H=g.n(H);for(var f;!(f=H.next()).done;)this.add(f.value)}} +if(function(){if(!Q||!Object.seal)return!1;try{var H=Object.seal({}),f=Object.seal({}),b=new Q([H]);if(!b.has(H)||b.has(f))return!1;b.delete(H);b.add(f);return!b.has(H)&&b.has(f)}catch(L){return!1}}())return Q; +z.prototype.add=function(H){this.Z.set(H,!0);return this}; +z.prototype.has=function(H){return this.Z.has(H)}; +z.prototype.delete=function(H){return this.Z.delete(H)}; +return z}); +Cn("Array.prototype.copyWithin",function(Q){function z(H){H=Number(H);return H===Infinity||H===-Infinity?H:H|0} +return Q?Q:function(H,f,b){var L=this.length;H=z(H);f=z(f);b=b===void 0?L:z(b);H=H<0?Math.max(L+H,0):Math.min(H,L);f=f<0?Math.max(L+f,0):Math.min(f,L);b=b<0?Math.max(L+b,0):Math.min(b,L);if(Hf;)--b in this?this[--H]=this[b]:delete this[--H];return this}}); +Cn("Int8Array.prototype.copyWithin",aJ);Cn("Uint8Array.prototype.copyWithin",aJ);Cn("Uint8ClampedArray.prototype.copyWithin",aJ);Cn("Int16Array.prototype.copyWithin",aJ);Cn("Uint16Array.prototype.copyWithin",aJ);Cn("Int32Array.prototype.copyWithin",aJ);Cn("Uint32Array.prototype.copyWithin",aJ);Cn("Float32Array.prototype.copyWithin",aJ);Cn("Float64Array.prototype.copyWithin",aJ);Cn("Array.prototype.at",function(Q){return Q?Q:UA}); +Cn("Int8Array.prototype.at",c_);Cn("Uint8Array.prototype.at",c_);Cn("Uint8ClampedArray.prototype.at",c_);Cn("Int16Array.prototype.at",c_);Cn("Uint16Array.prototype.at",c_);Cn("Int32Array.prototype.at",c_);Cn("Uint32Array.prototype.at",c_);Cn("Float32Array.prototype.at",c_);Cn("Float64Array.prototype.at",c_);Cn("String.prototype.at",function(Q){return Q?Q:UA}); +Cn("Array.prototype.findLastIndex",function(Q){return Q?Q:function(z,H){return EvJ(this,z,H).AU}}); +Cn("Int8Array.prototype.findLastIndex",iL);Cn("Uint8Array.prototype.findLastIndex",iL);Cn("Uint8ClampedArray.prototype.findLastIndex",iL);Cn("Int16Array.prototype.findLastIndex",iL);Cn("Uint16Array.prototype.findLastIndex",iL);Cn("Int32Array.prototype.findLastIndex",iL);Cn("Uint32Array.prototype.findLastIndex",iL);Cn("Float32Array.prototype.findLastIndex",iL);Cn("Float64Array.prototype.findLastIndex",iL);Cn("Number.parseInt",function(Q){return Q||parseInt});var ld,Tu,p_c;ld=ld||{};g.W_=this||self;Tu="closure_uid_"+(Math.random()*1E9>>>0);p_c=0;g.p(fs,Error);g.h.prototype.fZ=!1;g.h.prototype.Sm=function(){return this.fZ}; +g.h.prototype.dispose=function(){this.fZ||(this.fZ=!0,this.zv())}; +g.h.prototype[Symbol.dispose]=function(){this.dispose()}; +g.h.prototype.addOnDisposeCallback=function(Q,z){this.fZ?z!==void 0?Q.call(z):Q():(this.PN||(this.PN=[]),z&&(Q=Q.bind(z)),this.PN.push(Q))}; +g.h.prototype.zv=function(){if(this.PN)for(;this.PN.length;)this.PN.shift()()};var xkn;g.p(qs,g.h);qs.prototype.share=function(){if(this.Sm())throw Error("E:AD");this.D++;return this}; +qs.prototype.dispose=function(){--this.D||g.h.prototype.dispose.call(this)}; +xkn=Symbol.dispose;Onn.prototype.Fc=function(Q,z){this.Z.Fc("/client_streamz/bg/frs",Q,z)}; +ovn.prototype.Fc=function(Q,z,H,f,b,L){this.Z.Fc("/client_streamz/bg/wrl",Q,z,H,f,b,L)}; +J89.prototype.Z=function(Q,z){this.B.wZ("/client_streamz/bg/ec",Q,z)}; +Ncp.prototype.Fc=function(Q,z,H,f){this.Z.Fc("/client_streamz/bg/el",Q,z,H,f)}; +I6_.prototype.Z=function(Q,z,H){this.B.wZ("/client_streamz/bg/cec",Q,z,H)}; +A8Y.prototype.Z=function(Q,z,H){this.B.wZ("/client_streamz/bg/po/csc",Q,z,H)}; +YA6.prototype.Z=function(Q,z,H){this.B.wZ("/client_streamz/bg/po/ctav",Q,z,H)}; +r8n.prototype.Z=function(Q,z,H){this.B.wZ("/client_streamz/bg/po/cwsc",Q,z,H)};g.Hu(ps,Error);ps.prototype.name="CustomError";var zoY;var a0=void 0,Pq,N7Z=typeof TextDecoder!=="undefined",Ukc,a6A=typeof String.prototype.isWellFormed==="function",PLc=typeof TextEncoder!=="undefined";var ou=String.prototype.trim?function(Q){return Q.trim()}:function(Q){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(Q)[1]},NCn=/&/g,Ic8=//g,Y7k=/"/g,rnA=/'/g,sUZ=/\x00/g,JnZ=/[\x00&<>"']/;var ua5=V9(1,!0),At=V9(610401301,!1);V9(899588437,!1);var SAL=V9(725719775,!1),X_B=V9(513659523,!1);V9(568333945,!1);V9(651175828,!1);V9(722764542,!1);V9(2147483644,!1);V9(2147483645,!1);V9(2147483646,ua5);V9(2147483647,!0);var YO=!!g.Kn("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var rJ,vvt=g.W_.navigator;rJ=vvt?vvt.userAgentData||null:null;var l6J,A5,N2;l6J=Array.prototype.indexOf?function(Q,z){return Array.prototype.indexOf.call(Q,z,void 0)}:function(Q,z){if(typeof Q==="string")return typeof z!=="string"||z.length!=1?-1:Q.indexOf(z,0); +for(var H=0;H=0;H--)if(H in Q&&Q[H]===z)return H;return-1}; +g.MI=Array.prototype.forEach?function(Q,z,H){Array.prototype.forEach.call(Q,z,H)}:function(Q,z,H){for(var f=Q.length,b=typeof Q==="string"?Q.split(""):Q,L=0;LparseFloat(Evu)){tYt=String(l7);break a}}tYt=Evu}var yta=tYt,Xu9={};var lv,Rn;g.Um=UT();lv=DL()||Bu("iPod");Rn=Bu("iPad");g.xh=VYL();g.YK=cu();g.$w=ht()&&!Ks();var M5k={},$T=null,CR8=tx||g.RI||typeof g.W_.btoa=="function";var juZ=typeof Uint8Array!=="undefined",pu9=!g.pZ&&typeof btoa==="function",GY6=/[-_.]/g,gOJ={"-":"+",_:"/",".":"="},xT={};Fk.prototype.isEmpty=function(){return this.Z==null}; +Fk.prototype.sizeBytes=function(){var Q=oG(this);return Q?Q.length:0}; +var xsa;var oOL=void 0;var r7=typeof Symbol==="function"&&typeof Symbol()==="symbol",gvT=AC("jas",void 0,!0),Lw=AC(void 0,"1oa"),Vi=AC(void 0,Symbol()),tjY=AC(void 0,"0actk"),jX=AC(void 0,"8utk");Math.max.apply(Math,g.F(Object.values({RUh:1,tNl:2,Fa5:4,hov:8,Qsq:16,vMq:32,U7q:64,k7h:128,P$j:256,wl5:512,IC$:1024,OPv:2048,FBm:4096,z$q:8192})));var s2=r7?gvT:"ot3",NJ8={ot3:{value:0,configurable:!0,writable:!0,enumerable:!1}},Jt9=Object.defineProperties;var oU={},kt,Zns=[];PY(Zns,55);kt=Object.freeze(Zns);var gTJ=Object.freeze({});var suJ=d7(function(Q){return typeof Q==="number"}),rtY=d7(function(Q){return typeof Q==="string"}),BJn=d7(function(Q){return typeof Q==="boolean"}),SJ=d7(function(Q){return Q!=null&&typeof Q==="object"&&typeof Q.then==="function"}),uM=d7(function(Q){return!!Q&&(typeof Q==="object"||typeof Q==="function")});var mz=typeof g.W_.BigInt==="function"&&typeof g.W_.BigInt(0)==="bigint";var $t=d7(function(Q){return mz?Q>=Guu&&Q<=$kY:Q[0]==="-"?PRu(Q,jJu):PRu(Q,FZL)}),jJu=Number.MIN_SAFE_INTEGER.toString(),Guu=mz?BigInt(Number.MIN_SAFE_INTEGER):void 0,FZL=Number.MAX_SAFE_INTEGER.toString(),$kY=mz?BigInt(Number.MAX_SAFE_INTEGER):void 0;var xI_=typeof Uint8Array.prototype.slice==="function",T7=0,ej=0,RWc;var tn=typeof BigInt==="function"?BigInt.asIntN:void 0,TJu=typeof BigInt==="function"?BigInt.asUintN:void 0,gC=Number.isSafeInteger,Xc=Number.isFinite,nS=Math.trunc,hmZ=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var N4;var rC,q2J;g.S=jG_.prototype;g.S.init=function(Q,z,H,f){f=f===void 0?{}:f;this.Iw=f.Iw===void 0?!1:f.Iw;Q&&(Q=j4(Q),this.B=Q.buffer,this.S=Q.LQ,this.D=z||0,this.L=H!==void 0?this.D+H:this.B.length,this.Z=this.D)}; +g.S.free=function(){this.clear();Yf.length<100&&Yf.push(this)}; +g.S.clear=function(){this.B=null;this.S=!1;this.Z=this.L=this.D=0;this.Iw=!1}; +g.S.reset=function(){this.Z=this.D}; +g.S.Lp=function(){var Q=this.j;Q||(Q=this.B,Q=this.j=new DataView(Q.buffer,Q.byteOffset,Q.byteLength));return Q}; +var Yf=[];rq.prototype.free=function(){this.Z.clear();this.B=this.D=-1;R5.length<100&&R5.push(this)}; +rq.prototype.reset=function(){this.Z.reset();this.L=this.Z.Z;this.B=this.D=-1}; +var R5=[];g.S=cq.prototype;g.S.toJSON=function(){return Yt(this)}; +g.S.dP=function(Q){return JSON.stringify(Yt(this,Q))}; +g.S.clone=function(){var Q=this,z=Q.Pz;Q=new Q.constructor(IU(z,z[s2]|0,aU,!0,!0));aG(Q.Pz,2);return Q}; +g.S.LQ=function(){return!!((this.Pz[s2]|0)&2)}; +g.S.nI=oU;g.S.toString=function(){return this.Pz.toString()};var Y2Z,sG8;Wq.prototype.length=function(){return this.Z.length}; +Wq.prototype.end=function(){var Q=this.Z;this.Z=[];return Q};var TH=kf(),xks=kf(),Ons=kf(),ovs=kf(),J8s=kf(),Ncm=kf(),I6u=kf(),A85=kf();var KzJ=lr(function(Q,z,H,f,b){if(Q.B!==2)return!1;Bq(Q,ur(z,f,H),b);return!0},DI6),Vjn=lr(function(Q,z,H,f,b){if(Q.B!==2)return!1; +Bq(Q,ur(z,f,H),b);return!0},DI6),Se=Symbol(),f$=Symbol(),mIu=Symbol(),T7u=Symbol(),R0,Qo;var YAL=yo(function(Q,z,H){if(Q.B!==1)return!1;MO(z,H,I0(Q.Z));return!0},C$,I6u),r8s=yo(function(Q,z,H){if(Q.B!==1)return!1; +Q=I0(Q.Z);MO(z,H,Q===0?void 0:Q);return!0},C$,I6u),sJx=yo(function(Q,z,H,f){if(Q.B!==1)return!1; +fw(z,H,f,I0(Q.Z));return!0},C$,I6u),BcL=yo(function(Q,z,H){if(Q.B!==0)return!1; +MO(z,H,O$(Q.Z));return!0},tb,J8s),PLJ=yo(function(Q,z,H){if(Q.B!==0)return!1; +Q=O$(Q.Z);MO(z,H,Q===0?void 0:Q);return!0},tb,J8s),a6T=yo(function(Q,z,H,f){if(Q.B!==0)return!1; +fw(z,H,f,O$(Q.Z));return!0},tb,J8s),UkJ=yo(function(Q,z,H){if(Q.B!==0)return!1; +MO(z,H,o0(Q.Z));return!0},EK,ovs),c8B=yo(function(Q,z,H){if(Q.B!==0)return!1; +Q=o0(Q.Z);MO(z,H,Q===0?void 0:Q);return!0},EK,ovs),inT=yo(function(Q,z,H,f){if(Q.B!==0)return!1; +fw(z,H,f,o0(Q.Z));return!0},EK,ovs),hpB=yo(function(Q,z,H){if(Q.B!==1)return!1; +MO(z,H,No(Q.Z));return!0},function(Q,z,H){hWu(Q,H,emZ(z))},Ncm),WZm=qO(function(Q,z,H){if(Q.B!==1&&Q.B!==2)return!1; +z=l5(z,z[s2]|0,H,!1);if(Q.B==2)for(H=o0(Q.Z)>>>0,H=Q.Z.Z+H;Q.Z.Z>>0);return!0},function(Q,z,H){z=M4(z); +z!=null&&z!=null&&(m6(Q,H,0),Kw(Q.Z,z))},kf()),kuR=yo(function(Q,z,H){if(Q.B!==0)return!1; +MO(z,H,o0(Q.Z));return!0},function(Q,z,H){z=q4(z); +z!=null&&(z=parseInt(z,10),m6(Q,H,0),P4p(Q.Z,z))},kf());bSZ.prototype.register=function(){pr(this)};g.p(ucJ,cq);g.p(n$,cq);var je=[1,2,3];var Tct=[0,je,dks,inT,KZT];var epu=[0,zo,[0,YAL,BcL]];g.p(g$,cq);var $g=[1,2,3];var l6u=[0,$g,a6T,sJx,fX,epu];g.p(ZT,cq);var Rp5=[0,zo,Tct,l6u];var Qus=[0,[1,2,3],fX,[0,QE,-1,Dku],fX,[0,QE,-1,UkJ,Dku],fX,[0,QE]];g.p(GU,cq);GU.prototype.We=function(){var Q=wC(this,3,xt,3,!0);Kr(Q);return Q[void 0]};GU.prototype.Z=L8v([0,QE,Qus,VYR,zo,Rp5,hpB,WZm]);g.p(Xou,cq);var ntv=globalThis.trustedTypes,F3;OK.prototype.toString=function(){return this.Z+""};NO.prototype.toString=function(){return this.Z}; +var Gip=new NO("about:invalid#zClosurez");var Gm9=Yg("tel"),g5a=Yg("sms"),ZSu=[Yg("data"),Yg("http"),Yg("https"),Yg("mailto"),Yg("ftp"),new Ab(function(Q){return/^[^:]*([/?#]|$)/.test(Q)})],$4k=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;PJ.prototype.toString=function(){return this.Z+""};WJ.prototype.toString=function(){return this.Z+""};d$.prototype.toString=function(){return this.Z};var w$={};g.zmJ=String.prototype.repeat?function(Q,z){return Q.repeat(z)}:function(Q,z){return Array(z+1).join(Q)};g.S=fC.prototype;g.S.isEnabled=function(){if(!g.W_.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{dF:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; +g.S.set=function(Q,z,H){var f=!1;if(typeof H==="object"){var b=H.uf5;f=H.secure||!1;var L=H.domain||void 0;var u=H.path||void 0;var X=H.dF}if(/[;=\s]/.test(Q))throw Error('Invalid cookie name "'+Q+'"');if(/[;\r\n]/.test(z))throw Error('Invalid cookie value "'+z+'"');X===void 0&&(X=-1);H=L?";domain="+L:"";u=u?";path="+u:"";f=f?";secure":"";X=X<0?"":X==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+X*1E3)).toUTCString();this.Z.cookie=Q+"="+z+H+u+X+f+(b!=null?";samesite="+ +b:"")}; +g.S.get=function(Q,z){for(var H=Q+"=",f=(this.Z.cookie||"").split(";"),b=0,L;b=0;z--)this.remove(Q[z])}; +var UM=new fC(typeof document=="undefined"?null:document);LC.prototype.compress=function(Q){var z,H,f,b;return g.B(function(L){switch(L.Z){case 1:return z=new CompressionStream("gzip"),H=(new Response(z.readable)).arrayBuffer(),f=z.writable.getWriter(),g.Y(L,f.write((new TextEncoder).encode(Q)),2);case 2:return g.Y(L,f.close(),3);case 3:return b=Uint8Array,g.Y(L,H,4);case 4:return L.return(new b(L.B))}})}; +LC.prototype.isSupported=function(Q){return Q<1024?!1:typeof CompressionStream!=="undefined"};g.p(uQ,cq);Sa.prototype.setInterval=function(Q){this.intervalMs=Q;this.hM&&this.enabled?(this.stop(),this.start()):this.hM&&this.stop()}; +Sa.prototype.start=function(){var Q=this;this.enabled=!0;this.hM||(this.hM=setTimeout(function(){Q.tick()},this.intervalMs),this.B=this.Z())}; +Sa.prototype.stop=function(){this.enabled=!1;this.hM&&(clearTimeout(this.hM),this.hM=void 0)}; +Sa.prototype.tick=function(){var Q=this;if(this.enabled){var z=Math.max(this.Z()-this.B,0);z0?H:void 0));H=Wo(H,4,yr(b>0?b:void 0));H=Wo(H,5,yr(L>0?L:void 0));b=H.Pz;L=b[s2]|0;H=L&2?H:new H.constructor(IU(b,L,aU,!0,!0));vq(u,Cm,10,H)}u=this.Z.clone();H=Date.now().toString();u=Wo(u,4,Gi(H));Q=qo(u,$Z,3,Q.slice());f&&(u=new XV,f=Wo(u,13, +yr(f)),u=new v3,f=vq(u,XV,2,f),u=new Gl,f=vq(u,v3,1,f),f=GH(f,2,9),vq(Q,Gl,18,f));z&&nw(Q,14,z);return Q};var s0c=function(){if(!g.W_.addEventListener||!Object.defineProperty)return!1;var Q=!1,z=Object.defineProperty({},"passive",{get:function(){Q=!0}}); +try{var H=function(){}; +g.W_.addEventListener("test",H,z);g.W_.removeEventListener("test",H,z)}catch(f){}return Q}();var KL_=pqn("AnimationEnd"),qF=pqn("TransitionEnd");g.oK.prototype.B=0;g.oK.prototype.reset=function(){this.Z=this.L=this.D;this.B=0}; +g.oK.prototype.getValue=function(){return this.L};g.p(nfL,cq);var Hsx=p$(nfL);g.p(fcn,cq);var LX=new bSZ;g.p(IK,g.h);g.S=IK.prototype;g.S.zv=function(){this.P4();this.B.stop();this.yl.stop();g.h.prototype.zv.call(this)}; +g.S.dispatch=function(Q){if(Q instanceof $Z)this.log(Q);else try{var z=new $Z,H=Q.dP();var f=gq(z,8,H);this.log(f)}catch(b){}}; +g.S.log=function(Q){if(this.f3){Q=Q.clone();var z=this.En++;Q=nw(Q,21,z);this.componentId&&gq(Q,26,this.componentId);z=Q;if(ZrZ(z)==null){var H=Date.now();H=Number.isFinite(H)?H.toString():"0";Wo(z,1,Gi(H))}wuL(i5(z,15))!=null||nw(z,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(H=this.experimentIds.clone(),vq(z,uQ,16,H));z=this.Z.length-1E3+1;z>0&&(this.Z.splice(0,z),this.D+=z);this.Z.push(Q);this.t1||this.B.enabled||this.B.start()}}; +g.S.flush=function(Q,z){var H=this;if(this.Z.length===0)Q&&Q();else if(this.De&&this.U)this.L.B=3,j0L(this);else{var f=Date.now();if(this.mq>f&&this.L30&&(H.L3=Date.now(),H.mq=H.L3+G);C=LX.Z?LX.B(C,LX.Z,175237375):LX.B(C,175237375,null);if(C=C===null?void 0:C)C=S5(C,1,-1),C!==-1&&(H.S=new g.oK(C<1?1:C,3E5,.1),H.B.setInterval(H.S.getValue()))}}Q&&Q();H.j=0},y=function(M,C){var t=bR(b,$Z,3); +var E;var G=(E=wuL(i5(b,14)))!=null?E:void 0;g.JU(H.S);H.B.setInterval(H.S.getValue());M===401&&L&&(H.jm=L);G&&(H.D+=G);C===void 0&&(C=H.isRetryable(M));C&&(H.Z=t.concat(H.Z),H.t1||H.B.enabled||H.B.start());z&&z("net-send-failed",M);++H.j},q=function(){H.network&&H.network.send(X,v,y)}; +u?u.then(function(M){X.requestHeaders["Content-Encoding"]="gzip";X.requestHeaders["Content-Type"]="application/binary";X.body=M;X.U$=2;q()},function(){q()}):q()}}}}; +g.S.P4=function(){this.L.isFinal=!0;this.flush();this.L.isFinal=!1}; +g.S.isRetryable=function(Q){return 500<=Q&&Q<600||Q===401||Q===0};AU.prototype.send=function(Q,z,H){var f=this,b,L,u,X,v,y,q,M,C,t;return g.B(function(E){switch(E.Z){case 1:return L=(b=f.m1?new AbortController:void 0)?setTimeout(function(){b.abort()},Q.timeoutMillis):void 0,g.jY(E,2,3),u=Object.assign({},{method:Q.requestType, +headers:Object.assign({},Q.requestHeaders)},Q.body&&{body:Q.body},Q.withCredentials&&{credentials:"include"},{signal:Q.timeoutMillis&&b?b.signal:null}),g.Y(E,fetch(Q.url,u),5);case 5:X=E.B;if(X.status!==200){(v=H)==null||v(X.status);E.bT(3);break}if((y=z)==null){E.bT(7);break}return g.Y(E,X.text(),8);case 8:y(E.B);case 7:case 3:g.oJ(E);clearTimeout(L);g.Nk(E,0);break;case 2:q=g.OA(E);switch((M=q)==null?void 0:M.name){case "AbortError":(C=H)==null||C(408);break;default:(t=H)==null||t(400)}E.bT(3)}})}; +AU.prototype.fT=function(){return 4};g.p(YZ,g.h);YZ.prototype.eO=function(){this.S=!0;return this}; +YZ.prototype.build=function(){this.network||(this.network=new AU);var Q=new IK({logSource:this.logSource,h3:this.h3?this.h3:heJ,sessionIndex:this.sessionIndex,M3T:this.E4,M3:this.D,t1:!1,eO:this.S,DT:this.DT,network:this.network});g.W(this,Q);if(this.B){var z=this.B,H=O0(Q.L);gq(H,7,z)}Q.Y=new LC;this.componentId&&(Q.componentId=this.componentId);this.qY&&(Q.qY=this.qY);this.pageId&&(Q.pageId=this.pageId);this.Z&&((H=this.Z)?(Q.experimentIds||(Q.experimentIds=new uQ),z=Q.experimentIds,H=H.dP(),gq(z, +4,H)):Q.experimentIds&&Wo(Q.experimentIds,4));this.L&&(Q.De=Q.U);EfA(Q.L);this.network.bx&&this.network.bx(this.logSource);this.network.BPq&&this.network.BPq(Q);return Q};g.p(rf,g.h);rf.prototype.flush=function(Q){Q=Q||[];if(Q.length){for(var z=new Xou,H=[],f=0;f-1?(z=Q[u],H||(z.ws=!1)):(z=new Ac_(z,this.src,L,!!f,b),z.ws=H,Q.push(z));return z}; +g.S.remove=function(Q,z,H,f){Q=Q.toString();if(!(Q in this.listeners))return!1;var b=this.listeners[Q];z=DN(b,z,H,f);return z>-1?(iT(b[z]),g.e5(b,z),b.length==0&&(delete this.listeners[Q],this.Z--),!0):!1}; +g.S.removeAll=function(Q){Q=Q&&Q.toString();var z=0,H;for(H in this.listeners)if(!Q||H==Q){for(var f=this.listeners[H],b=0;b-1?Q[b]:null}; +g.S.hasListener=function(Q,z){var H=Q!==void 0,f=H?Q.toString():"",b=z!==void 0;return g.Or(this.listeners,function(L){for(var u=0;u>>0);g.Hu(g.zM,g.h);g.zM.prototype[NqJ]=!0;g.S=g.zM.prototype;g.S.addEventListener=function(Q,z,H,f){g.Vp(this,Q,z,H,f)}; +g.S.removeEventListener=function(Q,z,H,f){Uok(this,Q,z,H,f)}; +g.S.dispatchEvent=function(Q){var z=this.mN;if(z){var H=[];for(var f=1;z;z=z.mN)H.push(z),++f}z=this.YI;f=Q.type||Q;if(typeof Q==="string")Q=new g.aK(Q,z);else if(Q instanceof g.aK)Q.target=Q.target||z;else{var b=Q;Q=new g.aK(f,z);g.Ur(Q,b)}b=!0;var L;if(H)for(L=H.length-1;!Q.B&&L>=0;L--){var u=Q.currentTarget=H[L];b=H4(u,f,!0,Q)&&b}Q.B||(u=Q.currentTarget=z,b=H4(u,f,!0,Q)&&b,Q.B||(b=H4(u,f,!1,Q)&&b));if(H)for(L=0;!Q.B&&L0){this.B--;var Q=this.Z;this.Z=Q.next;Q.next=null}else Q=this.L();return Q};var ud;Xr.prototype.add=function(Q,z){var H=K6a.get();H.set(Q,z);this.B?this.B.next=H:this.Z=H;this.B=H}; +Xr.prototype.remove=function(){var Q=null;this.Z&&(Q=this.Z,this.Z=this.Z.next,this.Z||(this.B=null),Q.next=null);return Q}; +var K6a=new fg(function(){return new v4},function(Q){return Q.reset()}); +v4.prototype.set=function(Q,z){this.Z=Q;this.scope=z;this.next=null}; +v4.prototype.reset=function(){this.next=this.scope=this.Z=null};var ye,qH=!1,W6n=new Xr;moJ.prototype.reset=function(){this.context=this.B=this.L=this.Z=null;this.D=!1}; +var wqL=new fg(function(){return new moJ},function(Q){Q.reset()}); +g.ge.prototype.then=function(Q,z,H){return LTu(this,bd(typeof Q==="function"?Q:null),bd(typeof z==="function"?z:null),H)}; +g.ge.prototype.$goog_Thenable=!0;g.S=g.ge.prototype;g.S.finally=function(Q){var z=this;Q=bd(Q);return new Promise(function(H,f){Q$v(z,function(b){Q();H(b)},function(b){Q(); +f(b)})})}; +g.S.IN=function(Q,z){return LTu(this,null,bd(Q),z)}; +g.S.catch=g.ge.prototype.IN;g.S.cancel=function(Q){if(this.Z==0){var z=new xr(Q);g.MH(function(){zOA(this,z)},this)}}; +g.S.OEh=function(Q){this.Z=0;ng(this,2,Q)}; +g.S.ZEe=function(Q){this.Z=0;ng(this,3,Q)}; +g.S.Mo=function(){for(var Q;Q=H$a(this);)fTn(this,Q,this.Z,this.Y);this.j=!1}; +var vgA=ZL;g.Hu(xr,ps);xr.prototype.name="cancel";g.Hu(g.OE,g.zM);g.S=g.OE.prototype;g.S.enabled=!1;g.S.C5=null;g.S.setInterval=function(Q){this.I6=Q;this.C5&&this.enabled?(this.stop(),this.start()):this.C5&&this.stop()}; +g.S.Ish=function(){if(this.enabled){var Q=g.zY()-this.fO;Q>0&&Q0&&(this.getStatus(),this.j=setTimeout(this.Od.bind(this), +this.Ze)),this.getStatus(),this.U=!0,this.Z.send(Q),this.U=!1}catch(u){this.getStatus(),A69(this,u)}}; +g.S.Od=function(){typeof ld!="undefined"&&this.Z&&(this.D="Timed out after "+this.Ze+"ms, aborting",this.B=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; +g.S.abort=function(Q){this.Z&&this.L&&(this.getStatus(),this.L=!1,this.S=!0,this.Z.abort(),this.S=!1,this.B=Q||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),eL(this))}; +g.S.zv=function(){this.Z&&(this.L&&(this.L=!1,this.S=!0,this.Z.abort(),this.S=!1),eL(this,!0));g.TM.xu.zv.call(this)}; +g.S.RH=function(){this.Sm()||(this.L3||this.U||this.S?Yrc(this):this.EsI())}; +g.S.EsI=function(){Yrc(this)}; +g.S.isActive=function(){return!!this.Z}; +g.S.isComplete=function(){return g.RR(this)==4}; +g.S.getStatus=function(){try{return g.RR(this)>2?this.Z.status:-1}catch(Q){return-1}}; +g.S.getResponseHeader=function(Q){if(this.Z&&this.isComplete())return Q=this.Z.getResponseHeader(Q),Q===null?void 0:Q}; +g.S.getLastError=function(){return typeof this.D==="string"?this.D:String(this.D)};bu.prototype.send=function(Q,z,H){z=z===void 0?function(){}:z; +H=H===void 0?function(){}:H; +Nau(Q.url,function(f){f=f.target;Q$(f)?z(g.zA(f)):H(f.getStatus())},Q.requestType,Q.body,Q.requestHeaders,Q.timeoutMillis,Q.withCredentials)}; +bu.prototype.fT=function(){return 1};uu.prototype.done=function(){this.logger.JV(this.event,LW()-this.startTime)}; +g.p(SB,qs);g.p(vn,SB);g.S=vn.prototype;g.S.QH=function(){}; +g.S.EJ=function(){}; +g.S.JV=function(){}; +g.S.NO=function(){}; +g.S.p9=function(){}; +g.S.EA=function(Q,z,H){return H}; +g.S.bY=function(){}; +g.S.qk=function(){}; +g.S.Dp=function(){}; +g.S.Bt=function(){}; +g.p(y$,SB);g.S=y$.prototype;g.S.update=function(Q){this.logger.dispose();this.logger=Q}; +g.S.EJ=function(Q){this.logger.EJ(Q)}; +g.S.JV=function(Q,z){this.logger.JV(Q,z)}; +g.S.NO=function(Q){this.logger.NO(Q)}; +g.S.p9=function(){this.logger.p9()}; +g.S.EA=function(Q,z,H){return this.logger.EA(Q,z,H)}; +g.S.bY=function(Q){this.logger.bY(Q)}; +g.S.qk=function(Q){this.logger.qk(Q)}; +g.S.Dp=function(Q){this.logger.Dp(Q)}; +g.S.Bt=function(Q){this.logger.Bt(Q)}; +g.S.vg=function(Q){this.logger instanceof CW&&this.logger.vg(Q)}; +g.S.QH=function(Q){this.logger.QH(Q)}; +g.p(qa,g.h);g.p(Ma,SB);g.S=Ma.prototype;g.S.vg=function(Q){this.RN=Q}; +g.S.QH=function(Q){this.metrics.jJI.Fc(Q,this.hF)}; +g.S.EJ=function(Q){this.metrics.eventCount.Z(Q,this.hF)}; +g.S.JV=function(Q,z){this.metrics.kp.Fc(z,Q,this.RN,this.hF)}; +g.S.NO=function(Q){this.metrics.errorCount.Z(Q,this.RN,this.hF)}; +g.S.EA=function(Q,z,H){function f(u){if(!b.Sm()){var X=LW()-L;b.metrics.Sq5.Fc(X,Q,z,u,b.RN,b.hF)}} +var b=this,L=LW();H.then(function(){return void f(0)},function(u){return void f(u instanceof IR?u.code:-1)}); +return H}; +g.S.bY=function(Q){this.metrics.ATI.Z(Q,this.RN,this.hF)}; +g.S.qk=function(Q){this.metrics.e4.Z(Q,this.RN,this.hF)}; +g.S.Dp=function(Q){this.metrics.f3n.Z(Q,this.RN,this.hF)}; +g.p(CW,Ma);CW.prototype.Bt=function(Q){var z=this;this.Z.dispose();this.B&&this.service.dispose();this.service=this.options.d$("47",this.options.hv.concat(Q));this.Z=new qa(function(){return void z.service.nR()},this.options.LI); +this.metrics=Bak(this.service);this.L=Q}; +CW.prototype.p9=function(){azJ(this.Z)};g.p(tp,cq);g.p(Eo,cq);g.p(pW,cq);var mzu=p$(pW),c6_=function(Q){return d7(function(z){return z instanceof Q&&!((z.Pz[s2]|0)&2)})}(pW); +pW.messageId="bfkj";g.p(Ls,cq);g.p(nW,cq);var iCc=p$(nW);g.p(ZW,g.h);ZW.prototype.snapshot=function(Q){if(this.Sm())throw Error("Already disposed");this.logger.EJ("n");var z=this.logger.share();return this.L.then(function(H){var f=H.Fz;return new Promise(function(b){var L=new uu(z,"n");f(function(u){L.done();z.QH(u.length);z.p9();z.dispose();b(u)},[Q.hT, +Q.N$,Q.XJ,Q.Wg])})})}; +ZW.prototype.UB=function(Q){var z=this;if(this.Sm())throw Error("Already disposed");this.logger.EJ("n");var H=X0(this.logger,function(){return z.D([Q.hT,Q.N$,Q.XJ,Q.Wg])},"n"); +this.logger.QH(H.length);this.logger.p9();return H}; +ZW.prototype.VC=function(Q){this.L.then(function(z){var H;(H=z.I6I)==null||H(Q)})}; +ZW.prototype.Jr=function(){return this.logger.share()};g.p(F0,cq);g.p(xM,cq);Oo.prototype.qR=function(Q,z){return w3k(this,Q,z,new vn,0)}; +Oo.prototype.Na=function(Q){return ef8(this,Q,new vn,0)};g.p(o6,g.h);o6.prototype.snapshot=function(Q){var z=this;return g.B(function(H){switch(H.Z){case 1:if(z.Sm())throw Error("Already disposed");if(z.B||z.Y){H.bT(2);break}return g.Y(H,z.S.promise,2);case 2:if(!z.B){H.bT(4);break}return g.Y(H,z.B.snapshot(Q),5);case 5:return H.return(H.B);case 4:throw z.Y;}})}; +o6.prototype.VC=function(Q){var z,H;(z=this.B)==null||(H=z.VC)==null||H.call(z,Q)}; +o6.prototype.handleError=function(Q){if(!this.Sm()){this.Y=Q;this.S.resolve();var z,H;(H=(z=this.options).dim)==null||H.call(z,Q)}}; +o6.prototype.Jr=function(){return this.logger.share()}; +var QKL={yNm:432E5,wl:3E5,LF:10,KJ:1E4,lh:3E4,jim:3E4,asI:6E4,Bw:1E3,zR:6E4,qo:6E5,Ly:.25,xp:2,maxAttempts:10};var LB5,vZp=(LB5=Math.imul)!=null?LB5:function(Q,z){return Q*z|0},YM=[196, +200,224,18];rB.prototype.dP=function(){return String(this.Z)+","+this.B.join()}; +rB.prototype.pA=function(Q,z){var H=void 0;if(this.B[this.Z]!==Q){var f=this.B.indexOf(Q);f!==-1?(this.B.splice(f,1),f0;)z[H++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(Q%62),Q=Math.floor(Q/62);return z.join("")}};var jK6;g.p(Bn,g.h);Bn.prototype.K9=function(Q,z){var H=this.GN(Q);z==null||z(H);return X0(this.logger,function(){return g.g7(H,2)},this.L)}; +jK6=Symbol.dispose;g.p(Uo,Bn);Uo.prototype.GN=function(Q,z){var H=this;this.logger.EJ(this.Z);++this.S>=this.j&&this.B.resolve();var f=Q();Q=X0(this.logger,function(){return H.D(f)},"C"); +if(Q===void 0)throw new fs(17,"YNJ:Undefined");if(!(Q instanceof Uint8Array))throw new fs(18,"ODM:Invalid");z==null||z(Q);return Q}; +g.p(cn,Bn);cn.prototype.GN=function(){return this.D}; +g.p(iu,Bn);iu.prototype.GN=function(){var Q=this;return X0(this.logger,function(){return G7(Q.D)},"d")}; +iu.prototype.K9=function(){return this.D}; +g.p(Wn,Bn);Wn.prototype.GN=function(){if(this.D)return this.D;this.D=FU9(this,function(Q){return"_"+$Kv(Q)}); +return FU9(this,function(Q){return Q})}; +g.p(KW,Bn);KW.prototype.GN=function(Q){var z=Q();if(z.length>118)throw new fs(19,"DFO:Invalid");Q=Math.floor(Date.now()/1E3);var H=[Math.random()*255,Math.random()*255],f=H.concat([this.D&255,this.clientState],[Q>>24&255,Q>>16&255,Q>>8&255,Q&255]);Q=new Uint8Array(2+f.length+z.length);Q[0]=34;Q[1]=f.length+z.length;Q.set(f,2);Q.set(z,2+f.length);z=Q.subarray(2);for(f=H=H.length;f150))try{this.cache=new pxk(Q,this.logger)}catch(z){this.reportError(new fs(22,"GBJ:init",z))}}; +V$.prototype.reportError=function(Q){this.logger.NO(Q.code);this.onError(Q);return Q}; +g.p(kM,V$);kM.prototype.z9=function(){return this.D.promise}; +kM.prototype.GN=function(Q){return dB(this,Object.assign({},Q),!1)}; +kM.prototype.K9=function(Q){return dB(this,Object.assign({},Q),!0)}; +var Y0Y=function(Q){return d7(function(z){if(!uM(z))return!1;for(var H=g.n(Object.entries(Q)),f=H.next();!f.done;f=H.next()){var b=g.n(f.value);f=b.next().value;b=b.next().value;if(!(f in z)){if(b.hrv===!0)continue;return!1}if(!b(z[f]))return!1}return!0})}({Wc:function(Q){return d7(function(z){return z instanceof Q})}(o6)},"");g.p(eB,cq);var uxu=p$(eB);Bfv.prototype.getMetadata=function(){return this.metadata};lu.prototype.getMetadata=function(){return this.metadata}; +lu.prototype.getStatus=function(){return this.status};R6.prototype.Y=function(Q,z){z=z===void 0?{}:z;return new Bfv(Q,this,z)}; +R6.prototype.getName=function(){return this.name};var STJ=new R6("/google.internal.waa.v1.Waa/Create",F0,eB,function(Q){return Q.dP()},uxu);g.p(Qf,cq);var TaL=new R6("/google.internal.waa.v1.Waa/GenerateIT",xM,Qf,function(Q){return Q.dP()},p$(Qf));var vrZ=new Set(["SAPISIDHASH","APISIDHASH"]);g.p(zn,cq);zn.prototype.getValue=function(){var Q=i5(this,2);if(Array.isArray(Q)||Q instanceof cq)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return Ti(this,2)};g.p(HQ,cq);HQ.prototype.getMessage=function(){return E$(this,2)}; +var h49=p$(HQ);f7.prototype.SE=function(Q,z){Q=="data"?this.L.push(z):Q=="metadata"?this.S.push(z):Q=="status"?this.j.push(z):Q=="end"?this.D.push(z):Q=="error"&&this.B.push(z);return this}; +f7.prototype.removeListener=function(Q,z){Q=="data"?XA(this.L,z):Q=="metadata"?XA(this.S,z):Q=="status"?XA(this.j,z):Q=="end"?XA(this.D,z):Q=="error"&&XA(this.B,z);return this}; +f7.prototype.cancel=function(){this.Z.abort()}; +f7.prototype.cancel=f7.prototype.cancel;f7.prototype.removeListener=f7.prototype.removeListener;f7.prototype.on=f7.prototype.SE;g.p(aN_,Error);g.Hu(g.vQ,gsZ);g.vQ.prototype.Z=function(){var Q=new yf(this.D,this.L);this.B&&Q.setCredentialsMode(this.B);return Q}; +g.vQ.prototype.setCredentialsMode=function(Q){this.B=Q}; +g.Hu(yf,g.zM);g.S=yf.prototype;g.S.open=function(Q,z){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.Ze=Q;this.U=z;this.readyState=1;q7(this)}; +g.S.send=function(Q){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.Z=!0;var z={headers:this.N,method:this.Ze,credentials:this.S,cache:void 0};Q&&(z.body=Q);(this.wh||g.W_).fetch(new Request(this.U,z)).then(this.Jhh.bind(this),this.pT.bind(this))}; +g.S.abort=function(){this.response=this.responseText="";this.N=new Headers;this.status=0;this.L&&this.L.cancel("Request was aborted.").catch(function(){}); +this.readyState>=1&&this.Z&&this.readyState!=4&&(this.Z=!1,M7(this));this.readyState=0}; +g.S.Jhh=function(Q){if(this.Z&&(this.D=Q,this.B||(this.status=this.D.status,this.statusText=this.D.statusText,this.B=Q.headers,this.readyState=2,q7(this)),this.Z&&(this.readyState=3,q7(this),this.Z)))if(this.responseType==="arraybuffer")Q.arrayBuffer().then(this.sjq.bind(this),this.pT.bind(this));else if(typeof g.W_.ReadableStream!=="undefined"&&"body"in Q){this.L=Q.body.getReader();if(this.j){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.'); +this.response=[]}else this.response=this.responseText="",this.Y=new TextDecoder;WU_(this)}else Q.text().then(this.vvh.bind(this),this.pT.bind(this))}; +g.S.leq=function(Q){if(this.Z){if(this.j&&Q.value)this.response.push(Q.value);else if(!this.j){var z=Q.value?Q.value:new Uint8Array(0);if(z=this.Y.decode(z,{stream:!Q.done}))this.response=this.responseText+=z}Q.done?M7(this):q7(this);this.readyState==3&&WU_(this)}}; +g.S.vvh=function(Q){this.Z&&(this.response=this.responseText=Q,M7(this))}; +g.S.sjq=function(Q){this.Z&&(this.response=Q,M7(this))}; +g.S.pT=function(){this.Z&&M7(this)}; +g.S.setRequestHeader=function(Q,z){this.N.append(Q,z)}; +g.S.getResponseHeader=function(Q){return this.B?this.B.get(Q.toLowerCase())||"":""}; +g.S.getAllResponseHeaders=function(){if(!this.B)return"";for(var Q=[],z=this.B.entries(),H=z.next();!H.done;)H=H.value,Q.push(H[0]+": "+H[1]),H=z.next();return Q.join("\r\n")}; +g.S.setCredentialsMode=function(Q){this.S=Q}; +Object.defineProperty(yf.prototype,"withCredentials",{get:function(){return this.S==="include"}, +set:function(Q){this.setCredentialsMode(Q?"include":"same-origin")}});g.C7.prototype.toString=function(){var Q=[],z=this.S;z&&Q.push(Gn(z,Xus,!0),":");var H=this.Z;if(H||z=="file")Q.push("//"),(z=this.N)&&Q.push(Gn(z,Xus,!0),"@"),Q.push(g.ee(H).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),H=this.L,H!=null&&Q.push(":",String(H));if(H=this.B)this.Z&&H.charAt(0)!="/"&&Q.push("/"),Q.push(Gn(H,H.charAt(0)=="/"?vOO:ytx,!0));(H=this.D.toString())&&Q.push("?",H);(H=this.j)&&Q.push("#",Gn(H,qTB));return Q.join("")}; +g.C7.prototype.resolve=function(Q){var z=this.clone(),H=!!Q.S;H?g.tk(z,Q.S):H=!!Q.N;H?z.N=Q.N:H=!!Q.Z;H?g.Ea(z,Q.Z):H=Q.L!=null;var f=Q.B;if(H)g.p7(z,Q.L);else if(H=!!Q.B){if(f.charAt(0)!="/")if(this.Z&&!this.B)f="/"+f;else{var b=z.B.lastIndexOf("/");b!=-1&&(f=z.B.slice(0,b+1)+f)}b=f;if(b==".."||b==".")f="";else if(g.xO(b,"./")||g.xO(b,"/.")){f=$O(b,"/");b=b.split("/");for(var L=[],u=0;u1||L.length==1&&L[0]!="")&&L.pop(), +f&&u==b.length&&L.push("")):(L.push(X),f=!0)}f=L.join("/")}else f=b}H?z.B=f:H=Q.D.toString()!=="";H?n7(z,Q.D.clone()):H=!!Q.j;H&&(z.j=Q.j);return z}; +g.C7.prototype.clone=function(){return new g.C7(this)}; +var Xus=/[#\/\?@]/g,ytx=/[#\?:]/g,vOO=/[#\?]/g,KUJ=/[#\?@]/g,qTB=/#/g;g.S=Zy.prototype;g.S.add=function(Q,z){FA(this);this.L=null;Q=xq(this,Q);var H=this.Z.get(Q);H||this.Z.set(Q,H=[]);H.push(z);this.B=this.B+1;return this}; +g.S.remove=function(Q){FA(this);Q=xq(this,Q);return this.Z.has(Q)?(this.L=null,this.B=this.B-this.Z.get(Q).length,this.Z.delete(Q)):!1}; +g.S.clear=function(){this.Z=this.L=null;this.B=0}; +g.S.isEmpty=function(){FA(this);return this.B==0}; +g.S.forEach=function(Q,z){FA(this);this.Z.forEach(function(H,f){H.forEach(function(b){Q.call(z,b,f,this)},this)},this)}; +g.S.Im=function(){FA(this);for(var Q=Array.from(this.Z.values()),z=Array.from(this.Z.keys()),H=[],f=0;f0?String(Q[0]):z}; +g.S.toString=function(){if(this.L)return this.L;if(!this.Z)return"";for(var Q=[],z=Array.from(this.Z.keys()),H=0;H>>3;L.L!=1&&L.L!=2&&L.L!=15&&N7(L,u,X,"unexpected tag");L.Z=1;L.B=0;L.D=0} +function H(v){L.D++;L.D==5&&v&240&&N7(L,u,X,"message length too long");L.B|=(v&127)<<(L.D-1)*7;v&128||(L.Z=2,L.N=0,typeof Uint8Array!=="undefined"?L.S=new Uint8Array(L.B):L.S=Array(L.B),L.B==0&&b())} +function f(v){L.S[L.N++]=v;L.N==L.B&&b()} +function b(){if(L.L<15){var v={};v[L.L]=L.S;L.Y.push(v)}L.Z=0} +for(var L=this,u=Q instanceof Array?Q:new Uint8Array(Q),X=0;X0?Q:null};I2.prototype.isInputValid=function(){return this.Z===null}; +I2.prototype.q8=function(){return this.Z}; +I2.prototype.QV=function(){return!1}; +I2.prototype.parse=function(Q){this.Z!==null&&lNL(this,Q,"stream already broken");var z=null;try{var H=this.L;H.L||e4A(H,Q,"stream already broken");H.Z+=Q;var f=Math.floor(H.Z.length/4);if(f==0)var b=null;else{try{var L=EOa(H.Z.slice(0,f*4))}catch(u){e4A(H,H.Z,u.message)}H.B+=f*4;H.Z=H.Z.slice(f*4);b=L}z=b===null?null:this.D.parse(b)}catch(u){lNL(this,Q,u.message)}this.B+=Q.length;return z};var CRt={INIT:0,wY:1,aE:2,Dk:3,H_:4,eS:5,STRING:6,qL:7,bj:8,ij:9,XA:10,Qo:11,h0:12,Cn:13,d8:14,IL:15,lj:16,S1:17,AI:18,L7:19,Lh:20};g.S=Yq.prototype;g.S.isInputValid=function(){return this.S!=3}; +g.S.q8=function(){return this.U}; +g.S.done=function(){return this.S===2}; +g.S.QV=function(){return!1}; +g.S.parse=function(Q){function z(){for(;C0;)if(E=Q[C++], +L.N===4?L.N=0:L.N++,!E)break a;if(E==='"'&&!L.Y){L.Z=f();break}if(E==="\\"&&!L.Y&&(L.Y=!0,E=Q[C++],!E))break;if(L.Y)if(L.Y=!1,E==="u"&&(L.N=1),E=Q[C++])continue;else break;X.lastIndex=C;E=X.exec(Q);if(!E){C=Q.length+1;break}C=E.index+1;E=Q[E.index];if(!E)break}L.L+=C-G;continue;case v.ij:if(!E)continue;E==="r"?L.Z=v.XA:rj(L,Q,C);continue;case v.XA:if(!E)continue;E==="u"?L.Z=v.Qo:rj(L,Q,C);continue;case v.Qo:if(!E)continue;E==="e"?L.Z=f():rj(L,Q,C);continue;case v.h0:if(!E)continue;E==="a"?L.Z=v.Cn: +rj(L,Q,C);continue;case v.Cn:if(!E)continue;E==="l"?L.Z=v.d8:rj(L,Q,C);continue;case v.d8:if(!E)continue;E==="s"?L.Z=v.IL:rj(L,Q,C);continue;case v.IL:if(!E)continue;E==="e"?L.Z=f():rj(L,Q,C);continue;case v.lj:if(!E)continue;E==="u"?L.Z=v.S1:rj(L,Q,C);continue;case v.S1:if(!E)continue;E==="l"?L.Z=v.AI:rj(L,Q,C);continue;case v.AI:if(!E)continue;E==="l"?L.Z=f():rj(L,Q,C);continue;case v.L7:E==="."?L.Z=v.Lh:rj(L,Q,C);continue;case v.Lh:if("0123456789.eE+-".indexOf(E)!==-1)continue;else C--,L.L--,L.Z= +f();continue;default:rj(L,Q,C)}}} +function f(){var E=u.pop();return E!=null?E:v.wY} +function b(E){L.B>1||(E||(E=M===-1?L.D+Q.substring(q,C):Q.substring(M,C)),L.Ze?L.j.push(E):L.j.push(JSON.parse(E)),M=C)} +for(var L=this,u=L.wh,X=L.L3,v=CRt,y=Q.length,q=0,M=-1,C=0;C0?(t=L.j,L.j=[],t):null}return null};sa.prototype.isInputValid=function(){return this.S===null}; +sa.prototype.q8=function(){return this.S}; +sa.prototype.QV=function(){return!1}; +sa.prototype.parse=function(Q){function z(v){L.B=6;L.S="The stream is broken @"+L.Z+"/"+u+". Error: "+v+". With input:\n";throw Error(L.S);} +function H(){L.L=new Yq({vf3:!0,CJ:!0})} +function f(v){if(v)for(var y=0;y1)&&z("extra status: "+v);L.j=!0;var y={};y[2]=v[0];L.D.push(y)}} +for(var L=this,u=0;u0?(Q=L.D,L.D=[],Q):null};BQ.prototype.rH=function(){return this.Z}; +BQ.prototype.getStatus=function(){return this.S}; +BQ.prototype.Ze=function(Q){Q=Q.target;try{if(Q==this.Z)a:{var z=g.RR(this.Z),H=this.Z.B,f=this.Z.getStatus(),b=g.zA(this.Z);Q=[];if(g.Hn(this.Z)instanceof Array){var L=g.Hn(this.Z);L.length>0&&L[0]instanceof Uint8Array&&(this.U=!0,Q=L)}if(!(z<3||z==3&&!b&&Q.length==0))if(f=f==200||f==206,z==4&&(H==8?PQ(this,7):H==7?PQ(this,8):f||PQ(this,3)),this.B||(this.B=R4k(this.Z),this.B==null&&PQ(this,5)),this.S>2)hk(this);else{if(Q.length>this.L){var u=Q.length;H=[];try{if(this.B.QV())for(var X=0;Xthis.L){X=b.slice(this.L);this.L=b.length;try{var y=this.B.parse(X);y!=null&&this.D&&this.D(y)}catch(q){PQ(this,5);hk(this);break a}}z==4?(b.length!= +0||this.U?PQ(this,2):PQ(this,4),hk(this)):PQ(this,1)}}}catch(q){PQ(this,6),hk(this)}};g.S=QRp.prototype;g.S.SE=function(Q,z){var H=this.B[Q];H||(H=[],this.B[Q]=H);H.push(z);return this}; +g.S.addListener=function(Q,z){this.SE(Q,z);return this}; +g.S.removeListener=function(Q,z){var H=this.B[Q];H&&g.lR(H,z);(Q=this.Z[Q])&&g.lR(Q,z);return this}; +g.S.once=function(Q,z){var H=this.Z[Q];H||(H=[],this.Z[Q]=H);H.push(z);return this}; +g.S.sqm=function(Q){var z=this.B.data;z&&zUa(Q,z);(z=this.Z.data)&&zUa(Q,z);this.Z.data=[]}; +g.S.G1q=function(){switch(this.L.getStatus()){case 1:WQ(this,"readable");break;case 5:case 6:case 4:case 7:case 3:WQ(this,"error");break;case 8:WQ(this,"close");break;case 2:WQ(this,"end")}};Hg_.prototype.serverStreaming=function(Q,z,H,f){var b=this,L=Q.substring(0,Q.length-f.name.length);return fl9(function(u){var X=u.Bj,v=u.getMetadata(),y=ur9(b,!1);v=SEA(b,v,y,L+X.getName());var q=X4_(y,X.B,!0);u=X.Z(u.HD);y.send(v,"POST",u);return q},this.D).call(this,f.Y(z,H))};yj9.prototype.create=function(Q,z){return k2A(this.Z,this.B+"/$rpc/google.internal.waa.v1.Waa/Create",Q,z||{},STJ)};var t5s=1,Tn=new WeakMap;g.p(Dy,g.h);Dy.prototype.signal=function(){var Q=new Vf(!1);this.signals.add(Q);g.W(this,Q);return Q}; +Dy.prototype.rk=function(Q){return K7(this,Q).rk()}; +g.p(Vf,g.h);g.S=Vf.prototype;g.S.Jy=function(){var Q=this,z=t5s++;dj(function(){qEL(Q,z)}); +return z}; +g.S.detach=function(Q){var z=this;dj(function(){var H=z.slots.get(Q);H&&H.rO()})}; +g.S.value=function(Q){return this.promise(!0,Q)}; +g.S.rk=function(){return this.lm}; +g.S.next=function(Q){return this.promise(!1,Q)}; +g.S.promise=function(Q,z){var H=this,f=RoZ();dj(function(){if(H.Sm())f.reject(new xr("Signal initially disposed"));else if(z&&z.Sm())f.reject(new xr("Owner initially disposed"));else if(Q&&H.j7&&H.jb)f.resolve(H.lm);else if(H.H2.add(f),g.Fr(f.promise,function(){H.H2.delete(f)}),z){var b=function(){f.reject(new xr("Owner asynchronously disposed"))}; +g.Fr(f.promise,function(){var L=Tn.get(z);L&&g.lR(L,b)}); +tLL(z,b)}}); +return f.promise}; +g.S.zv=function(){var Q=this;g.h.prototype.zv.call(this);dj(function(){for(var z=g.n(Q.slots.values()),H=z.next();!H.done;H=z.next())H=H.value.rO,H();Q.slots.clear();z=g.n(Q.H2);for(H=z.next();!H.done;H=z.next())H.value.reject(new xr("Signal asynchronously disposed"));Q.H2.clear()})}; +var wj=[],kq=!1;g.p(eF,g.h);eF.prototype.start=function(){var Q=this;if(this.Sm())throw new R2("Cannot start a disposed timer.");if(!this.j){this.D=0;if(this.Y){var z=Date.now();this.handle=setInterval(function(){Q.D=Q.milliseconds>0?Math.trunc((Date.now()-z)/Q.milliseconds):Q.D+1;var H;(H=Q.B)==null||H.resolve();Q.B=void 0;if(Q.L){var f;(f=Q.Z)!=null&&mG(K7(f,Q.L),Q)}Q.zL.DX(Q)},this.milliseconds)}else this.handle=setTimeout(function(){Q.state=3; +Q.handle=void 0;Q.D=1;var H;(H=Q.B)==null||H.resolve();Q.B=void 0;if(Q.L){var f;(f=Q.Z)!=null&&mG(K7(f,Q.L),Q)}Q.zL.DX(Q)},this.milliseconds); +this.state=1}}; +eF.prototype.cancel=function(){if(this.j){this.clear();this.state=2;var Q;(Q=this.B)==null||Q.reject(new ll);var z;(z=this.zL.AR)==null||z.call(this);if(this.S){var H;(H=this.Z)!=null&&mG(K7(H,this.S))}}}; +eF.prototype.zv=function(){this.clear();var Q;(Q=this.B)==null||Q.reject(new R2);this.state=4;g.h.prototype.zv.call(this)}; +eF.prototype.clear=function(){this.Y?clearInterval(this.handle):clearTimeout(this.handle);this.handle=void 0}; +g.y9.Object.defineProperties(eF.prototype,{j:{configurable:!0,enumerable:!0,get:function(){return this.state===1}}, +isCancelled:{configurable:!0,enumerable:!0,get:function(){return this.state===2}}, +isExpired:{configurable:!0,enumerable:!0,get:function(){return this.state===3}}, +tick:{configurable:!0,enumerable:!0,get:function(){return this.D}}, +N:{configurable:!0,enumerable:!0,get:function(){switch(this.state){case 0:case 1:return this.B!=null||(this.B=new g.gB),this.B.promise;case 3:return Promise.resolve();case 2:return Promise.reject(new ll("Timer has been cancelled."));case 4:return Promise.reject(new R2("Timer has been disposed."));default:LS(this.state)}}}, +DX:{configurable:!0,enumerable:!0,get:function(){if(this.Sm())throw new R2("Cannot attach a signal to a disposed timer.");this.L||(this.Z!=null||(this.Z=new Dy(this)),this.L=this.Z.signal());return this.L}}, +AR:{configurable:!0,enumerable:!0,get:function(){if(this.Sm())throw new R2("Cannot attach a signal to a disposed timer.");this.S||(this.Z!=null||(this.Z=new Dy(this)),this.S=this.Z.signal());return this.S}}}); +g.p(ll,ps);g.p(R2,ps);g.p(Qy,V$);g.S=Qy.prototype;g.S.isReady=function(){return!!this.Z}; +g.S.ready=function(){var Q=this;return g.B(function(z){return g.Y(z,Q.L.promise,0)})}; +g.S.qR=function(Q){return nrJ(this,this.logger.EA("c",Q===void 0?1:Q,this.Gi.qR($M().Z,null)),new fs(10,"JVZ:Timeout"))}; +g.S.prefetch=function(){this.state===1&&(this.ZG=this.qR())}; +g.S.start=function(){if(this.state===1){this.state=2;var Q=new uu(this.logger,"r");this.ready().finally(function(){return void Q.done()}); +Zgp(this)}}; +g.S.GN=function(Q){GMn(this,Q);return dB(this,p48(Q),!1)}; +g.S.K9=function(Q){GMn(this,Q);return dB(this,p48(Q),!0)};var xHp={NONE:0,lCm:1},bW_={JG:0,V8q:1,Aj5:2,m05:3},Un={D9:"a",b43:"d",VIDEO:"v"};HI.prototype.isVisible=function(){return this.aQ?this.vc>=.3:this.vc>=.5};var MT={oFI:0,h$q:1},HWn={NONE:0,mD$:1,t6j:2};fl.prototype.getValue=function(){return this.B}; +g.p(bV,fl);bV.prototype.L=function(Q){this.B===null&&g.A6(this.D,Q)&&(this.B=Q)}; +g.p(Ll,fl);Ll.prototype.L=function(Q){this.B===null&&typeof Q==="number"&&(this.B=Q)}; +g.p(uV,fl);uV.prototype.L=function(Q){this.B===null&&typeof Q==="string"&&(this.B=Q)};St.prototype.disable=function(){this.B=!1}; +St.prototype.enable=function(){this.B=!0}; +St.prototype.isEnabled=function(){return this.B}; +St.prototype.reset=function(){this.Z={};this.B=!0;this.L={}};var Br=document,pl=window;var uAn=!g.pZ&&!ht();Cl.prototype.now=function(){return 0}; +Cl.prototype.B=function(){return 0}; +Cl.prototype.L=function(){return 0}; +Cl.prototype.Z=function(){return 0};g.p(En,Cl);En.prototype.now=function(){return t5()&&pl.performance.now?pl.performance.now():Cl.prototype.now.call(this)}; +En.prototype.B=function(){return t5()&&pl.performance.memory?pl.performance.memory.totalJSHeapSize||0:Cl.prototype.B.call(this)}; +En.prototype.L=function(){return t5()&&pl.performance.memory?pl.performance.memory.usedJSHeapSize||0:Cl.prototype.L.call(this)}; +En.prototype.Z=function(){return t5()&&pl.performance.memory?pl.performance.memory.jsHeapSizeLimit||0:Cl.prototype.Z.call(this)};var Jjv=EE(function(){var Q=!1;try{var z=Object.defineProperty({},"passive",{get:function(){Q=!0}}); +g.W_.addEventListener("test",null,z)}catch(H){}return Q});Nev.prototype.isVisible=function(){return Zk(Br)===1};var Ajp={CH$:"allow-forms",dOl:"allow-modals",uI$:"allow-orientation-lock",I3h:"allow-pointer-lock",N7q:"allow-popups",FSv:"allow-popups-to-escape-sandbox",t3j:"allow-presentation",Rim:"allow-same-origin",WSj:"allow-scripts",T7v:"allow-top-navigation",UOh:"allow-top-navigation-by-user-activation"},BeZ=EE(function(){return YE9()});var cjL=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");x3.prototype.mM=function(Q,z,H){Q=Q+"//"+z+H;var f=DHn(this)-H.length;if(f<0)return"";this.Z.sort(function(y,q){return y-q}); +H=null;z="";for(var b=0;b=v.length){f-=v.length;Q+=v;z=this.L;break}H=H==null?L:H}}f="";H!=null&&(f=""+z+"trn="+H);return Q+f};rA.prototype.setInterval=function(Q,z){return pl.setInterval(Q,z)}; +rA.prototype.clearInterval=function(Q){pl.clearInterval(Q)}; +rA.prototype.setTimeout=function(Q,z){return pl.setTimeout(Q,z)}; +rA.prototype.clearTimeout=function(Q){pl.clearTimeout(Q)};g.p(BI,cq);BI.prototype.Z=L8v([0,r8s,PLJ,-2,c8B]);var fWp={x0j:1,VU:2,A8m:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};Lvp.prototype.dI=function(Q){if(typeof Q==="string"&&Q.length!=0){var z=this.K5;if(z.B){Q=Q.split("&");for(var H=Q.length-1;H>=0;H--){var f=Q[H].split("="),b=decodeURIComponent(f[0]);f.length>1?(f=decodeURIComponent(f[1]),f=/^[0-9]+$/g.exec(f)?parseInt(f,10):f):f=1;(b=z.Z[b])&&b.L(f)}}}};var uy=null;var h5=g.W_.performance,EOx=!!(h5&&h5.mark&&h5.measure&&h5.clearMarks),cI=EE(function(){var Q;if(Q=EOx){var z=z===void 0?window:z;if(uy===null){uy="";try{Q="";try{Q=z.top.location.hash}catch(f){Q=z.location.hash}if(Q){var H=Q.match(/\bdeid=([\d,]+)/);uy=H?H[1]:""}}catch(f){}}z=uy;Q=!!z.indexOf&&z.indexOf("1337")>=0}return Q}); +iV.prototype.disable=function(){this.Z=!1;this.events!==this.B.google_js_reporting_queue&&(cI()&&g.MI(this.events,qov),this.events.length=0)}; +iV.prototype.start=function(Q,z){if(!this.Z)return null;var H=vMZ()||XnJ();Q=new ypu(Q,z,H);z="goog_"+Q.label+"_"+Q.uniqueId+"_start";h5&&cI()&&h5.mark(z);return Q}; +iV.prototype.end=function(Q){if(this.Z&&typeof Q.value==="number"){var z=vMZ()||XnJ();Q.duration=z-Q.value;z="goog_"+Q.label+"_"+Q.uniqueId+"_end";h5&&cI()&&h5.mark(z);!this.Z||this.events.length>2048||this.events.push(Q)}};MBA.prototype.ZN=function(Q,z,H,f,b){b=b||this.k0;try{var L=new x3;L.Z.push(1);L.B[1]=On("context",Q);z.error&&z.meta&&z.id||(z=new Vy(dA(z)));if(z.msg){var u=z.msg.substring(0,512);L.Z.push(2);L.B[2]=On("msg",u)}var X=z.meta||{};if(this.nh)try{this.nh(X)}catch(t){}if(f)try{f(X)}catch(t){}f=[X];L.Z.push(3);L.B[3]=f;var v=hUk();if(v.B){var y=v.B.url||"";L.Z.push(4);L.B[4]=On("top",y)}var q={url:v.Z.url||""};if(v.Z.url){var M=v.Z.url.match(UE);var C=sE(M[1],null,M[3],M[4])}else C="";y=[q,{url:C}];L.Z.push(5); +L.B[5]=y;u0n(this.Z,b,L,H)}catch(t){try{u0n(this.Z,b,{context:"ecmserr",rctx:Q,msg:dA(t),url:v&&v.Z.url},H)}catch(E){}}return this.FC}; +g.p(Vy,SoZ);var Dk,Kl,WI=new iV;Dk=new function(){var Q="https:";pl&&pl.location&&pl.location.protocol==="http:"&&(Q="http:");this.B=Q;this.Z=.01}; +Kl=new MBA;pl&&pl.document&&(pl.document.readyState=="complete"?tBc():WI.Z&&gA(pl,"load",function(){tBc()}));var nMA=Date.now(),Rs=-1,et=-1,BjY,QY=-1,lV=!1;g.S=zJ.prototype;g.S.getHeight=function(){return this.bottom-this.top}; +g.S.clone=function(){return new zJ(this.top,this.right,this.bottom,this.left)}; +g.S.contains=function(Q){return this&&Q?Q instanceof zJ?Q.left>=this.left&&Q.right<=this.right&&Q.top>=this.top&&Q.bottom<=this.bottom:Q.x>=this.left&&Q.x<=this.right&&Q.y>=this.top&&Q.y<=this.bottom:!1}; +g.S.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.S.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.S.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.S.scale=function(Q,z){z=typeof z==="number"?z:Q;this.left*=Q;this.right*=Q;this.top*=z;this.bottom*=z;return this};Lh.prototype.jH=function(Q,z){return!!Q&&(!(z===void 0?0:z)||this.volume==Q.volume)&&this.L==Q.L&&fh(this.Z,Q.Z)&&!0};uW.prototype.ai=function(){return this.Y}; +uW.prototype.jH=function(Q,z){return this.D.jH(Q.D,z===void 0?!1:z)&&this.Y==Q.Y&&fh(this.L,Q.L)&&fh(this.j,Q.j)&&this.Z==Q.Z&&this.S==Q.S&&this.B==Q.B&&this.N==Q.N};var pus={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},N3={Gm:"start",hG:"firstquartile",zm:"midpoint",K7:"thirdquartile",COMPLETE:"complete",ERROR:"error",xI:"metric",PAUSE:"pause",kI:"resume",Mv:"skip",As:"viewable_impression",qv:"mute",SR:"unmute",CM:"fullscreen",Xq:"exitfullscreen",VM:"bufferstart",AG:"bufferfinish",d9:"fully_viewable_audible_half_duration_impression",P8:"measurable_impression",ag:"abandon",pM:"engagedview",tG:"impression",Ym:"creativeview",wJ:"loaded", +Lc3:"progress",CLOSE:"close",WWh:"collapse",t0q:"overlay_resize",Roq:"overlay_unmeasurable_impression",Wee:"overlay_unviewable_impression",UKT:"overlay_viewable_immediate_impression",TNj:"overlay_viewable_end_of_session_impression",sK:"custom_metric_viewable",yM:"audio_audible",KM:"audio_measurable",Gu:"audio_impression"},dTL="start firstquartile midpoint thirdquartile resume loaded".split(" "),mTJ=["start","firstquartile","midpoint","thirdquartile"],ay_=["abandon"],kB={UNKNOWN:-1,Gm:0,hG:1,zm:2, +K7:3,COMPLETE:4,xI:5,PAUSE:6,kI:7,Mv:8,As:9,qv:10,SR:11,CM:12,Xq:13,d9:14,P8:15,ag:16,pM:17,tG:18,Ym:19,wJ:20,sK:21,VM:22,AG:23,Gu:27,KM:28,yM:29};var ZWZ={s6v:"addEventListener",WBl:"getMaxSize",Tth:"getScreenSize",UGj:"getState",gFe:"getVersion",jm$:"removeEventListener",Wan:"isViewable"};g.S=g.XL.prototype;g.S.clone=function(){return new g.XL(this.left,this.top,this.width,this.height)}; +g.S.contains=function(Q){return Q instanceof g.Er?Q.x>=this.left&&Q.x<=this.left+this.width&&Q.y>=this.top&&Q.y<=this.top+this.height:this.left<=Q.left&&this.left+this.width>=Q.left+Q.width&&this.top<=Q.top&&this.top+this.height>=Q.top+Q.height}; +g.S.getSize=function(){return new g.nC(this.width,this.height)}; +g.S.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; +g.S.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; +g.S.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; +g.S.scale=function(Q,z){z=typeof z==="number"?z:Q;this.left*=Q;this.width*=Q;this.top*=z;this.height*=z;return this};var FvL={};rpn.prototype.update=function(Q){Q&&Q.document&&(this.Y=S$(!1,Q,this.isMobileDevice),this.Z=S$(!0,Q,this.isMobileDevice),BBn(this,Q),s6v(this,Q))};a3.prototype.cancel=function(){sn().clearTimeout(this.Z);this.Z=null}; +a3.prototype.schedule=function(){var Q=this,z=sn(),H=as().Z.Z;this.Z=z.setTimeout(PI(H,wA(143,function(){Q.B++;Q.L.sample()})),gML())};g.S=Ui.prototype;g.S.lN=function(){return!1}; +g.S.initialize=function(){return this.isInitialized=!0}; +g.S.PC=function(){return this.Z.yl}; +g.S.TE=function(){return this.Z.Ze}; +g.S.d7=function(Q,z){if(!this.Ze||(z===void 0?0:z))this.Ze=!0,this.yl=Q,this.N=0,this.Z!=this||iW(this)}; +g.S.getName=function(){return this.Z.mq}; +g.S.tv=function(){return this.Z.Xi()}; +g.S.Xi=function(){return{}}; +g.S.rX=function(){return this.Z.N}; +g.S.pL=function(){var Q=si();Q.Z=S$(!0,this.L,Q.isMobileDevice)}; +g.S.ib=function(){s6v(si(),this.L)}; +g.S.oO=function(){return this.D.Z}; +g.S.sample=function(){}; +g.S.isActive=function(){return this.Z.j}; +g.S.KK=function(Q){var z=this.Z;this.Z=Q.rX()>=this.N?Q:this;z!==this.Z?(this.j=this.Z.j,iW(this)):this.j!==this.Z.j&&(this.j=this.Z.j,iW(this))}; +g.S.Zv=function(Q){if(Q.B===this.Z){var z=!this.D.jH(Q,this.U);this.D=Q;z&&Uaa(this)}}; +g.S.OU=function(){return this.U}; +g.S.dispose=function(){this.De=!0}; +g.S.Sm=function(){return this.De};g.S=hx.prototype;g.S.observe=function(){return!0}; +g.S.unobserve=function(){}; +g.S.mI=function(Q){this.S=Q}; +g.S.dispose=function(){if(!this.Sm()){var Q=this.B;g.lR(Q.S,this);Q.U&&this.OU()&&aWc(Q);this.unobserve();this.L3=!0}}; +g.S.Sm=function(){return this.L3}; +g.S.tv=function(){return this.B.tv()}; +g.S.rX=function(){return this.B.rX()}; +g.S.PC=function(){return this.B.PC()}; +g.S.TE=function(){return this.B.TE()}; +g.S.KK=function(){}; +g.S.Zv=function(){this.Av()}; +g.S.OU=function(){return this.De};g.S=Wr.prototype;g.S.rX=function(){return this.Z.rX()}; +g.S.PC=function(){return this.Z.PC()}; +g.S.TE=function(){return this.Z.TE()}; +g.S.create=function(Q,z,H){var f=null;this.Z&&(f=this.c$(Q,z,H),cr(this.Z,f));return f}; +g.S.XZ=function(){return this.SS()}; +g.S.SS=function(){return!1}; +g.S.init=function(Q){return this.Z.initialize()?(cr(this.Z,this),this.D=Q,!0):!1}; +g.S.KK=function(Q){Q.rX()==0&&this.D(Q.PC(),this)}; +g.S.Zv=function(){}; +g.S.OU=function(){return!1}; +g.S.dispose=function(){this.S=!0}; +g.S.Sm=function(){return this.S}; +g.S.tv=function(){return{}};D5.prototype.add=function(Q,z,H){++this.L;Q=new iWZ(Q,z,H);this.Z.push(new iWZ(Q.B,Q.Z,Q.L+this.L/4096));this.B=!0;return this};VB9.prototype.toString=function(){var Q="//pagead2.googlesyndication.com//pagead/gen_204",z=VY(this.Z);z.length>0&&(Q+="?"+z);return Q};dW.prototype.update=function(Q,z,H){Q&&(this.Z+=z,this.B+=z,this.D+=z,this.L=Math.max(this.L,this.D));if(H===void 0?!Q:H)this.D=0};var TBL=[1,.75,.5,.3,0];mE.prototype.update=function(Q,z,H,f,b,L){L=L===void 0?!0:L;z=b?Math.min(Q,z):z;for(b=0;b0&&z>=u;u=!(Q>0&&Q>=u)||H;this.Z[b].update(L&&X,f,!L||u)}};R3.prototype.update=function(Q,z,H,f){this.Y=this.Y!=-1?Math.min(this.Y,z.vc):z.vc;this.wh=Math.max(this.wh,z.vc);this.L3=this.L3!=-1?Math.min(this.L3,z.FW):z.FW;this.yl=Math.max(this.yl,z.FW);this.rT.update(z.FW,H.FW,z.Z,Q,f);this.jm+=Q;z.vc===0&&(this.mq+=Q);this.B.update(z.vc,H.vc,z.Z,Q,f);H=f||H.aQ!=z.aQ?H.isVisible()&&z.isVisible():H.isVisible();z=!z.isVisible()||z.Z;this.iT.update(H,Q,z)}; +R3.prototype.BQ=function(){return this.iT.L>=this.WI};if(Br&&Br.URL){var nOm=Br.URL,gOu;if(gOu=!!nOm){var ZsJ;a:{if(nOm){var GYL=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var SR=GYL.exec(decodeURIComponent(nOm));if(SR){ZsJ=SR[1]&&SR[1].length>1?SR[1].substring(1):"true";break a}}catch(Q){}}ZsJ=""}gOu=ZsJ.length>0}Kl.FC=!gOu};var $su=new zJ(0,0,0,0);var b7k=new zJ(0,0,0,0);g.p(b2,g.h);g.S=b2.prototype; +g.S.zv=function(){if(this.qG.Z){if(this.nW.b_){var Q=this.qG.Z;Q.removeEventListener&&Q.removeEventListener("mouseover",this.nW.b_,nl());this.nW.b_=null}this.nW.DN&&(Q=this.qG.Z,Q.removeEventListener&&Q.removeEventListener("mouseout",this.nW.DN,nl()),this.nW.DN=null)}this.s6&&this.s6.dispose();this.pp&&this.pp.dispose();delete this.fI;delete this.wG;delete this.Eg;delete this.qG.S5;delete this.qG.Z;delete this.nW;delete this.s6;delete this.pp;delete this.K5;g.h.prototype.zv.call(this)}; +g.S.Wr=function(){return this.pp?this.pp.Z:this.position}; +g.S.dI=function(Q){as().dI(Q)}; +g.S.OU=function(){return!1}; +g.S.MN=function(){return new R3}; +g.S.Gw=function(){return this.fI}; +g.S.dO=function(Q){return XQL(this,Q,1E4)}; +g.S.Jh=function(Q,z,H,f,b,L,u){this.Bn||(this.oR&&(Q=this.FX(Q,H,b,u),f=f&&this.xn.vc>=(this.aQ()?.3:.5),this.A0(L,Q,f),this.sJ=z,Q.vc>0&&-1===this.Pb&&(this.Pb=z),this.kY==-1&&this.BQ()&&(this.kY=z),this.ek==-2&&(this.ek=Hk(this.Wr())?Q.vc:-1),this.xn=Q),this.wG(this))}; +g.S.A0=function(Q,z,H){this.Gw().update(Q,z,this.xn,H)}; +g.S.Qn=function(){return new HI}; +g.S.FX=function(Q,z,H,f){H=this.Qn();H.Z=z;z=sn().B;z=Zk(Br)===0?-1:z.isVisible()?0:1;H.B=z;H.vc=this.yp(Q);H.aQ=this.aQ();H.FW=f;return H}; +g.S.yp=function(Q){return this.opacity===0&&yy(this.K5,"opac")===1?0:Q}; +g.S.aQ=function(){return!1}; +g.S.iE=function(){return this.xzh||this.qYq}; +g.S.u5=function(){T9()}; +g.S.D1=function(){T9()}; +g.S.kf=function(){return 0}; +g.S.BQ=function(){return this.fI.BQ()}; +g.S.Ot=function(){var Q=this.oR;Q=(this.hasCompleted||this.Sm())&&!Q;var z=as().B!==2||this.UPI;return this.Bn||z&&Q?2:this.BQ()?4:3}; +g.S.WV=function(){return 0};g.u2.prototype.next=function(){return g.XQ}; +g.XQ={done:!0,value:void 0};g.u2.prototype.xM=function(){return this};g.p(tFL,HI);var vl=pQ9([void 0,1,2,3,4,8,16]),yE=pQ9([void 0,4,8,16]),juB={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:yP("p0",yE),p1:yP("p1",yE),p2:yP("p2",yE),p3:yP("p3",yE),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:vk("mtos1",[0,2,4],!1,yE),mtos2:vk("mtos2",[0,2,4],!1,yE),mtos3:vk("mtos3",[0,2,4],!1,yE),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:yP("a0",yE),a1:yP("a1",yE),a2:yP("a2",yE),a3:yP("a3",yE),ft:"ft",dft:"dft",at:"at",dat:"dat",as:"as", +vpt:"vpt",gmm:"gmm",std:"std",efpf:"efpf",swf:"swf",nio:"nio",px:"px",nnut:"nnut",vmer:"vmer",vmmk:"vmmk",vmiec:"vmiec",nmt:"nmt",tcm:"tcm",bt:"bt",pst:"pst",vpaid:"vpaid",dur:"dur",vmtime:"vmtime",dtos:"dtos",dtoss:"dtoss",dvs:"dvs",dfvs:"dfvs",dvpt:"dvpt",fmf:"fmf",vds:"vds",is:"is",i0:"i0",i1:"i1",i2:"i2",i3:"i3",ic:"ic",cs:"cs",c:"c",c0:yP("c0",yE),c1:yP("c1",yE),c2:yP("c2",yE),c3:yP("c3",yE),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:yP("qmtos",vl),qnc:yP("qnc",vl),qmv:yP("qmv",vl),qnv:yP("qnv",vl), +raf:"raf",rafc:"rafc",lte:"lte",ces:"ces",tth:"tth",femt:"femt",femvt:"femvt",emc:"emc",emuc:"emuc",emb:"emb",avms:"avms",nvat:"nvat",qi:"qi",psm:"psm",psv:"psv",psfv:"psfv",psa:"psa",pnk:"pnk",pnc:"pnc",pnmm:"pnmm",pns:"pns",ptlt:"ptlt",pngs:"pings",veid:"veid",ssb:"ssb",ss0:yP("ss0",yE),ss1:yP("ss1",yE),ss2:yP("ss2",yE),ss3:yP("ss3",yE),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids",omidpv:"omidpv",omidam:"omidam",omidct:"omidct",omidia:"omidia", +omiddc:"omiddc",omidlat:"omidlat",omiddit:"omiddit",nopd:"nopd",co:"co",tm:"tm",tu:"tu"},FB5=Object.assign({},juB,{avid:Cg("audio"),avas:"avas",vs:"vs"}),xsx={atos:"atos",avt:vk("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(Q,z){return function(H){return H[Q]===void 0&&z!==void 0?z:H[Q]}}("ss",0), +t:"t"};tP.prototype.getValue=function(){return this.B}; +tP.prototype.update=function(Q,z){Q>=32||(this.Z&1<=.5;Jx(z.volume)&&(this.D=this.D!=-1?Math.min(this.D,z.volume):z.volume,this.j=Math.max(this.j,z.volume));L&&(this.De+=Q,this.U+=b?Q:0);this.Z.update(z.vc,H.vc,z.Z,Q,f,b);this.L.update(!0,Q);this.S.update(b,Q);this.Ze.update(H.fullscreen,Q);this.gh.update(b&&!L,Q);Q=Math.floor(z.mediaTime/1E3);this.f3.update(Q,z.isVisible());this.C3.update(Q,z.vc>=1);this.uT.update(Q, +Xq(z))}};j2_.prototype.B=function(Q){this.L||(this.Z(Q)?(Q=ssJ(this.U,this.D,Q),this.S|=Q,Q=Q==0):Q=!1,this.L=Q)};g.p(n8,j2_);n8.prototype.Z=function(){return!0}; +n8.prototype.j=function(){return!1}; +n8.prototype.getId=function(){var Q=this,z=Ys(N3,function(H){return H==Q.D}); +return kB[z].toString()}; +n8.prototype.toString=function(){var Q="";this.j()&&(Q+="c");this.L&&(Q+="s");this.S>0&&(Q+=":"+this.S);return this.getId()+Q};g.p(gd,n8);gd.prototype.B=function(Q,z){z=z===void 0?null:z;z!=null&&this.Y.push(z);n8.prototype.B.call(this,Q)};g.p(ZP,FGL);ZP.prototype.B=function(){return null}; +ZP.prototype.L=function(){return[]};g.p(GN,hx);g.S=GN.prototype;g.S.WL=function(){if(this.element){var Q=this.element,z=this.B.Z.L;try{try{var H=IW6(Q.getBoundingClientRect())}catch(y){H=new zJ(0,0,0,0)}var f=H.right-H.left,b=H.bottom-H.top,L=oMa(Q,z),u=L.x,X=L.y;var v=new zJ(Math.round(X),Math.round(u+f),Math.round(X+b),Math.round(u))}catch(y){v=$su.clone()}this.L=v;this.Z=cpn(this,this.L)}}; +g.S.lX=function(){this.j=this.B.D.Z}; +g.S.wm=function(Q){var z=yy(this.K5,"od")==1;return fyY(Q,this.j,this.element,z)}; +g.S.S7=function(){this.timestamp=T9()}; +g.S.Av=function(){this.S7();this.WL();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var Q=this.element;var z=new g.nC(Q.videoWidth,Q.videoHeight);Q=this.Z;var H=Hr(Q),f=Q.getHeight(),b=z.width;z=z.height;b<=0||z<=0||H<=0||f<=0||(b/=z,z=H/f,Q=Q.clone(),b>z?(H/=b,f=(f-H)/2,f>0&&(f=Q.top+f,Q.top=Math.round(f),Q.bottom=Math.round(f+H))):(f*=b,H=Math.round((H-f)/2),H>0&&(H=Q.left+H,Q.left=Math.round(H),Q.right=Math.round(H+f))));this.Z=Q}this.lX(); +Q=this.Z;H=this.j;Q=Q.left<=H.right&&H.left<=Q.right&&Q.top<=H.bottom&&H.top<=Q.bottom?new zJ(Math.max(Q.top,H.top),Math.min(Q.right,H.right),Math.min(Q.bottom,H.bottom),Math.max(Q.left,H.left)):new zJ(0,0,0,0);H=Q.top>=Q.bottom||Q.left>=Q.right?new zJ(0,0,0,0):Q;Q=this.B.D;z=b=f=0;if((this.Z.bottom-this.Z.top)*(this.Z.right-this.Z.left)>0)if(this.wm(H))H=new zJ(0,0,0,0);else{f=si().D;z=new zJ(0,f.height,f.width,0);var L;f=f8(H,(L=this.S)!=null?L:this.Z);b=f8(H,si().Z);z=f8(H,z)}L=H.top>=H.bottom|| +H.left>=H.right?new zJ(0,0,0,0):bW(H,-this.Z.left,-this.Z.top);Pr()||(b=f=0);this.U=new uW(Q,this.element,this.Z,L,f,b,this.timestamp,z)}; +g.S.getName=function(){return this.B.getName()};var Ost=new zJ(0,0,0,0);g.p($B,GN);g.S=$B.prototype;g.S.observe=function(){this.D();return!0}; +g.S.Zv=function(){GN.prototype.Av.call(this)}; +g.S.S7=function(){}; +g.S.WL=function(){}; +g.S.Av=function(){this.D();GN.prototype.Av.call(this)}; +g.S.KK=function(Q){Q=Q.isActive();Q!==this.N&&(Q?this.D():(si().Z=new zJ(0,0,0,0),this.Z=new zJ(0,0,0,0),this.j=new zJ(0,0,0,0),this.timestamp=-1));this.N=Q};var qi={},s2A=(qi.firstquartile=0,qi.midpoint=1,qi.thirdquartile=2,qi.complete=3,qi);g.p(Fq,b2);g.S=Fq.prototype;g.S.OU=function(){return!0}; +g.S.o4=function(){return this.YF==2}; +g.S.dO=function(Q){return XQL(this,Q,Math.max(1E4,this.L/3))}; +g.S.Jh=function(Q,z,H,f,b,L,u){var X=this,v=this.Y(this)||{};g.Ur(v,b);this.L=v.duration||this.L;this.U=v.isVpaid||this.U;this.mq=v.isYouTube||this.mq;sn();this.rT=!1;b=O76(this,z);x7n(this)===1&&(L=b);b2.prototype.Jh.call(this,Q,z,H,f,v,L,u);this.Mt&&this.Mt.L&&g.MI(this.j,function(y){y.B(X)})}; +g.S.A0=function(Q,z,H){b2.prototype.A0.call(this,Q,z,H);oL(this).update(Q,z,this.xn,H);this.WI=Xq(this.xn)&&Xq(z);this.yl==-1&&this.C3&&(this.yl=this.Gw().L.Z);this.N8.L=0;Q=this.BQ();z.isVisible()&&C8(this.N8,"vs");Q&&C8(this.N8,"vw");Jx(z.volume)&&C8(this.N8,"am");Xq(z)?C8(this.N8,"a"):C8(this.N8,"mut");this.Ew&&C8(this.N8,"f");z.B!=-1&&(C8(this.N8,"bm"),z.B==1&&(C8(this.N8,"b"),Xq(z)&&C8(this.N8,"umutb")));Xq(z)&&z.isVisible()&&C8(this.N8,"avs");this.WI&&Q&&C8(this.N8,"avw");z.vc>0&&C8(this.N8, +"pv");JP(this,this.Gw().L.Z,!0)&&C8(this.N8,"gdr");e$(this.Gw().B,1)>=2E3&&C8(this.N8,"pmx");this.rT&&C8(this.N8,"tvoff")}; +g.S.MN=function(){return new E6}; +g.S.Gw=function(){return this.fI}; +g.S.Qn=function(){return new tFL}; +g.S.FX=function(Q,z,H,f){Q=b2.prototype.FX.call(this,Q,z,H,f===void 0?-1:f);Q.fullscreen=this.Ew;Q.paused=this.o4();Q.volume=H.volume;Jx(Q.volume)||(this.ZJ++,z=this.xn,Jx(z.volume)&&(Q.volume=z.volume));H=H.currentTime;Q.mediaTime=H!==void 0&&H>=0?H:-1;return Q}; +g.S.yp=function(Q){return si(),this.Ew?1:b2.prototype.yp.call(this,Q)}; +g.S.kf=function(){return 1}; +g.S.getDuration=function(){return this.L}; +g.S.Ot=function(){return this.Bn?2:JkJ(this)?5:this.BQ()?4:3}; +g.S.WV=function(){return this.gh?this.Gw().S.L>=2E3?4:3:2}; +g.S.mI=function(Q){this.pp&&this.pp.mI(Q)};var oOR=g.zY();VFZ.prototype.reset=function(){this.Z=[];this.B=[]}; +var s6=Y3(VFZ);g.p(aL,Wr);g.S=aL.prototype;g.S.getName=function(){return(this.B?this.B:this.Z).getName()}; +g.S.tv=function(){return(this.B?this.B:this.Z).tv()}; +g.S.rX=function(){return(this.B?this.B:this.Z).rX()}; +g.S.init=function(Q){var z=!1;(0,g.MI)(this.L,function(H){H.initialize()&&(z=!0)}); +z&&(this.D=Q,cr(this.Z,this));return z}; +g.S.dispose=function(){(0,g.MI)(this.L,function(Q){Q.dispose()}); +Wr.prototype.dispose.call(this)}; +g.S.XZ=function(){return N2(this.L,function(Q){return Q.lN()})}; +g.S.SS=function(){return N2(this.L,function(Q){return Q.lN()})}; +g.S.c$=function(Q,z,H){return new GN(Q,this.Z,z,H)}; +g.S.Zv=function(Q){this.B=Q.B};var QsZ={threshold:[0,.3,.5,.75,1]};g.p(U6,GN);g.S=U6.prototype;g.S.observe=function(){var Q=this;this.wh||(this.wh=T9());if(pnL(298,function(){return zlc(Q)}))return!0; +this.B.d7("msf");return!1}; +g.S.unobserve=function(){if(this.D&&this.element)try{this.D.unobserve(this.element),this.N?(this.N.unobserve(this.element),this.N=null):this.Y&&(this.Y.disconnect(),this.Y=null)}catch(Q){}}; +g.S.Av=function(){var Q=ck(this);Q.length>0&&i2(this,Q);GN.prototype.Av.call(this)}; +g.S.WL=function(){}; +g.S.wm=function(){return!1}; +g.S.lX=function(){}; +g.S.tv=function(){var Q={};return Object.assign(this.B.tv(),(Q.niot_obs=this.wh,Q.niot_cbk=this.Ze,Q))}; +g.S.getName=function(){return"nio"};g.p(hP,Wr);hP.prototype.getName=function(){return"nio"}; +hP.prototype.SS=function(){return!si().B&&this.Z.Z.L.IntersectionObserver!=null}; +hP.prototype.c$=function(Q,z,H){return new U6(Q,this.Z,z,H)};g.p(Wk,Ui);Wk.prototype.oO=function(){return si().Z}; +Wk.prototype.lN=function(){var Q=fkA();this.N!==Q&&(this.Z!=this&&Q>this.Z.N&&(this.Z=this,iW(this)),this.N=Q);return Q==2};DP.prototype.sample=function(){dd(this,Bk(),!1)}; +DP.prototype.D=function(){var Q=Pr(),z=T9();Q?(lV||(Rs=z,g.MI(s6.Z,function(H){var f=H.Gw();f.En=p8(f,z,H.YF!=1)})),lV=!0):(this.Y=XI_(this,z),lV=!1,BjY=z,g.MI(s6.Z,function(H){H.oR&&(H.Gw().N=z)})); +dd(this,Bk(),!Q)}; +var K8=Y3(DP);var y5n=null,E4="",tZ=!1;var CV_=Mt6().Uv,wd=Mt6().gi;var pIv={C75:"visible",KWm:"audible",Pfv:"time",xCT:"timetype"},n3v={visible:function(Q){return/^(100|[0-9]{1,2})$/.test(Q)}, +audible:function(Q){return Q=="0"||Q=="1"}, +timetype:function(Q){return Q=="mtos"||Q=="tos"}, +time:function(Q){return/^(100|[0-9]{1,2})%$/.test(Q)||/^([0-9])+ms$/.test(Q)}}; +E3n.prototype.setTime=function(Q,z,H){z=="ms"?(this.L=Q,this.D=-1):(this.L=-1,this.D=Q);this.S=H===void 0?"tos":H;return this};g.p(l2,n8);l2.prototype.getId=function(){return this.Y}; +l2.prototype.j=function(){return!0}; +l2.prototype.Z=function(Q){var z=Q.Gw(),H=Q.getDuration();return N2(this.N,function(f){if(f.Z!=void 0)var b=Zl8(f,z);else b:{switch(f.S){case "mtos":b=f.B?z.S.L:z.L.Z;break b;case "tos":b=f.B?z.S.Z:z.L.Z;break b}b=0}b==0?f=!1:(f=f.L!=-1?f.L:H!==void 0&&H>0?f.D*H:-1,f=f!=-1&&b>=f);return f})};g.p(RL,gq_);RL.prototype.Z=function(Q){var z=new nqp;z.Z=M3(Q,juB);z.B=M3(Q,xsx);return z};g.p(QK,n8);QK.prototype.Z=function(Q){return JkJ(Q)};g.p(zO,FGL);g.p(Hz,n8);Hz.prototype.Z=function(Q){return Q.Gw().BQ()};g.p(f5,gd);f5.prototype.Z=function(Q){var z=g.TY(this.Y,yy(as().K5,"ovms"));return!Q.Bn&&(Q.YF!=0||z)};g.p(bp,zO);bp.prototype.B=function(){return new f5(this.Z)}; +bp.prototype.L=function(){return[new Hz("viewable_impression",this.Z),new QK(this.Z)]};g.p(L5,$B);L5.prototype.D=function(){var Q=g.Kn("ima.admob.getViewability"),z=yy(this.K5,"queryid");typeof Q==="function"&&z&&Q(z)}; +L5.prototype.getName=function(){return"gsv"};g.p(up,Wr);up.prototype.getName=function(){return"gsv"}; +up.prototype.SS=function(){var Q=si();as();return Q.B&&!1}; +up.prototype.c$=function(Q,z,H){return new L5(this.Z,z,H)};g.p(S_,$B);S_.prototype.D=function(){var Q=this,z=g.Kn("ima.bridge.getNativeViewability"),H=yy(this.K5,"queryid");typeof z==="function"&&H&&z(H,function(f){g.ra(f)&&Q.Y++;var b=f.opt_nativeViewVisibleBounds||{},L=f.opt_nativeViewHidden;Q.Z=Ap9(f.opt_nativeViewBounds||{});var u=Q.B.D;u.Z=L?Ost.clone():Ap9(b);Q.timestamp=f.opt_nativeTime||-1;si().Z=u.Z;f=f.opt_nativeVolume;f!==void 0&&(u.volume=f)})}; +S_.prototype.getName=function(){return"nis"};g.p(Xg,Wr);Xg.prototype.getName=function(){return"nis"}; +Xg.prototype.SS=function(){var Q=si();as();return Q.B&&!1}; +Xg.prototype.c$=function(Q,z,H){return new S_(this.Z,z,H)};g.p(vz,Ui);g.S=vz.prototype;g.S.lN=function(){return this.B.Z4!=null}; +g.S.Xi=function(){var Q={};this.f3&&(Q.mraid=this.f3);this.L3&&(Q.mlc=1);Q.mtop=this.B.yFI;this.Y&&(Q.mse=this.Y);this.jm&&(Q.msc=1);Q.mcp=this.B.compatibility;return Q}; +g.S.wA=function(Q){var z=g.rc.apply(1,arguments);try{return this.B.Z4[Q].apply(this.B.Z4,z)}catch(H){k3(538,H,.01,function(f){f.method=Q})}}; +g.S.initialize=function(){var Q=this;if(this.isInitialized)return!this.TE();this.isInitialized=!0;if(this.B.compatibility===2)return this.Y="ng",this.d7("w"),!1;if(this.B.compatibility===1)return this.Y="mm",this.d7("w"),!1;si().N=!0;this.L.document.readyState&&this.L.document.readyState=="complete"?FoL(this):zN(this.L,"load",function(){sn().setTimeout(wA(292,function(){return FoL(Q)}),100)},292); +return!0}; +g.S.pL=function(){var Q=si(),z=NAv(this,"getMaxSize");Q.Z=new zJ(0,z.width,z.height,0)}; +g.S.ib=function(){si().D=NAv(this,"getScreenSize")}; +g.S.dispose=function(){Olp(this);Ui.prototype.dispose.call(this)};var Q6Z=new function(Q,z){this.key=Q;this.defaultValue=z===void 0?!1:z;this.valueType="boolean"}("45378663");g.S=qN.prototype;g.S.fv=function(Q){L8(Q,!1);knc(Q)}; +g.S.A6=function(){}; +g.S.tQ=function(Q,z,H,f){var b=this;Q=new Fq(pl,Q,H?z:-1,7,this.YS(),this.Nl());Q.WU=f;jR_(Q.K5);vI(Q.K5,"queryid",Q.WU);Q.dI("");qaY(Q,function(){return b.qp.apply(b,g.F(g.rc.apply(0,arguments)))},function(){return b.pIv.apply(b,g.F(g.rc.apply(0,arguments)))}); +(f=Y3(Pk).Z)&&Sap(Q,f);this.L&&(Q.mI(this.L),this.L=null);Q.qG.S5&&Y3(bl_);return Q}; +g.S.KK=function(Q){switch(Q.rX()){case 0:if(Q=Y3(Pk).Z)Q=Q.Z,g.lR(Q.S,this),Q.U&&this.OU()&&aWc(Q);C5();break;case 2:VP()}}; +g.S.Zv=function(){}; +g.S.OU=function(){return!1}; +g.S.pIv=function(Q,z){Q.Bn=!0;switch(Q.kf()){case 1:BAY(Q,z);break;case 2:this.Tz(Q)}}; +g.S.Nhe=function(Q){var z=Q.Y(Q);z&&(z=z.volume,Q.gh=Jx(z)&&z>0);Akp(Q,0);return IL(Q,"start",Pr())}; +g.S.R2=function(Q,z,H){dd(K8,[Q],!Pr());return this.Mj(Q,z,H)}; +g.S.Mj=function(Q,z,H){return IL(Q,H,Pr())}; +g.S.h5l=function(Q){return ZR(Q,"firstquartile",1)}; +g.S.dc3=function(Q){Q.C3=!0;return ZR(Q,"midpoint",2)}; +g.S.Fq5=function(Q){return ZR(Q,"thirdquartile",3)}; +g.S.i3I=function(Q){var z=ZR(Q,"complete",4);xB(Q);return z}; +g.S.XII=function(Q){Q.YF=3;return IL(Q,"error",Pr())}; +g.S.x4=function(Q,z,H){z=Pr();if(Q.o4()&&!z){var f=Q.Gw(),b=T9();f.N=b}dd(K8,[Q],!z);Q.o4()&&(Q.YF=1);return IL(Q,H,z)}; +g.S.Ien=function(Q,z){z=this.R2(Q,z||{},"skip");xB(Q);return z}; +g.S.CTn=function(Q,z){L8(Q,!0);return this.R2(Q,z||{},"fullscreen")}; +g.S.QjI=function(Q,z){L8(Q,!1);return this.R2(Q,z||{},"exitfullscreen")}; +g.S.s5=function(Q,z,H){z=Q.Gw();var f=T9();z.En=p8(z,f,Q.YF!=1);dd(K8,[Q],!Pr());Q.YF==1&&(Q.YF=2);return IL(Q,H,Pr())}; +g.S.u$h=function(Q){dd(K8,[Q],!Pr());return Q.B()}; +g.S.BM=function(Q){dd(K8,[Q],!Pr());this.Um(Q);xB(Q);return Q.B()}; +g.S.qp=function(){}; +g.S.Tz=function(){}; +g.S.Um=function(){}; +g.S.Qv=function(){}; +g.S.JX=function(){}; +g.S.Nl=function(){this.Z||(this.Z=this.JX());return this.Z==null?new ZP:new bp(this.Z)}; +g.S.YS=function(){return new RL};g.p(GO,n8);GO.prototype.Z=function(Q){return Q.WV()==4};g.p($W,gd);$W.prototype.Z=function(Q){Q=Q.WV();return Q==3||Q==4};g.p(j_,zO);j_.prototype.B=function(){return new $W(this.Z)}; +j_.prototype.L=function(){return[new GO(this.Z)]};g.p(Fg,gq_);Fg.prototype.Z=function(Q){Q&&(Q.e===28&&(Q=Object.assign({},Q,{avas:3})),Q.vs===4||Q.vs===5)&&(Q=Object.assign({},Q,{vs:3}));var z=new nqp;z.Z=M3(Q,FB5);z.B=M3(Q,xsx);return z};c5_.prototype.B=function(){return g.Kn(this.Z)};g.p(xW,qN);g.S=xW.prototype;g.S.A6=function(Q,z){var H=this,f=Y3(Pk);if(f.Z!=null)switch(f.Z.getName()){case "nis":var b=DTv(this,Q,z);break;case "gsv":b=Woa(this,Q,z);break;case "exc":b=KoY(this,Q)}b||(z.opt_overlayAdElement?b=void 0:z.opt_adElement&&(b=akc(this,Q,z.opt_adElement,z.opt_osdId)));b&&b.kf()==1&&(b.Y==g.tj&&(b.Y=function(L){return H.Qv(L)}),hl8(this,b,z)); +return b}; +g.S.Qv=function(Q){Q.B=0;Q.De=0;if(Q.D=="h"||Q.D=="n"){as();Q.uT&&(as(),n5(this)!="h"&&n5(this));var z=g.Kn("ima.common.getVideoMetadata");if(typeof z==="function")try{var H=z(Q.WU)}catch(b){Q.B|=4}else Q.B|=2}else if(Q.D=="b")if(z=g.Kn("ytads.bulleit.getVideoMetadata"),typeof z==="function")try{H=z(Q.WU)}catch(b){Q.B|=4}else Q.B|=2;else if(Q.D=="ml")if(z=g.Kn("ima.common.getVideoMetadata"),typeof z==="function")try{H=z(Q.WU)}catch(b){Q.B|=4}else Q.B|=2;else Q.B|=1;Q.B||(H===void 0?Q.B|=8:H===null? +Q.B|=16:g.ra(H)?Q.B|=32:H.errorCode!=null&&(Q.De=H.errorCode,Q.B|=64));H==null&&(H={});z=H;Q.N=0;for(var f in pus)z[f]==null&&(Q.N|=pus[f]);UTA(z,"currentTime");UTA(z,"duration");Jx(H.volume)&&Jx()&&(H.volume*=NaN);return H}; +g.S.JX=function(){as();n5(this)!="h"&&n5(this);var Q=Vtk(this);return Q!=null?new c5_(Q):null}; +g.S.Tz=function(Q){!Q.Z&&Q.Bn&&gN(this,Q,"overlay_unmeasurable_impression")&&(Q.Z=!0)}; +g.S.Um=function(Q){Q.Qc&&(Q.BQ()?gN(this,Q,"overlay_viewable_end_of_session_impression"):gN(this,Q,"overlay_unviewable_impression"),Q.Qc=!1)}; +g.S.qp=function(){}; +g.S.tQ=function(Q,z,H,f){if(zZ9()){var b=yy(as().K5,"mm"),L={};(b=(L[Un.D9]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",L[Un.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",L)[b])&&k98(this,b);this.D==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&k3(1044,Error())}Q=qN.prototype.tQ.call(this,Q,z,H,f);this.S&&(z=this.j,Q.S==null&&(Q.S=new MFL),z.Z[Q.WU]=Q.S,Q.S.S=oOR);return Q}; +g.S.fv=function(Q){Q&&Q.kf()==1&&this.S&&delete this.j.Z[Q.WU];return qN.prototype.fv.call(this,Q)}; +g.S.Nl=function(){this.Z||(this.Z=this.JX());return this.Z==null?new ZP:this.D==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new j_(this.Z):new bp(this.Z)}; +g.S.YS=function(){return this.D==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new Fg:new RL}; +g.S.mI=function(Q,z,H,f,b){z=new zJ(H,z+f,H+b,z);(Q=rd(s6,Q))?Q.mI(z):this.L=z}; +var Jts=mo(193,el9,void 0,PVA);g.D6("Goog_AdSense_Lidar_sendVastEvent",Jts);var NJt=wA(194,function(Q,z){z=z===void 0?{}:z;Q=wI6(Y3(xW),Q,z);return TA6(Q)}); +g.D6("Goog_AdSense_Lidar_getViewability",NJt);var ILs=mo(195,function(){return kMp()}); +g.D6("Goog_AdSense_Lidar_getUrlSignalsArray",ILs);var Atm=wA(196,function(){return JSON.stringify(kMp())}); +g.D6("Goog_AdSense_Lidar_getUrlSignalsList",Atm);var lkv=(new Date("2024-01-01T00:00:00Z")).getTime();var z_n=EA(["//ep2.adtrafficquality.google/sodar/",""]),HhA=EA(["//tpc.googlesyndication.com/sodar/",""]);g.p(YW,g.h);YW.prototype.z9=function(){return this.wpc.f()}; +YW.prototype.Vp=function(Q){this.wpc.c(Q)}; +YW.prototype.GN=function(Q){return this.wpc.m(uLv(Q))}; +YW.prototype.K9=function(Q){return this.wpc.mws(uLv(Q))}; +g.p(Ie,g.h);Ie.prototype.snapshot=function(Q){return this.Wc.s(Object.assign({},Q.hT&&{c:Q.hT},Q.N$&&{s:Q.N$},Q.Wg!==void 0&&{p:Q.Wg}))}; +Ie.prototype.VC=function(Q){this.Wc.e(Q)}; +Ie.prototype.Jr=function(){return this.Wc.l()};var Lsa=(new Date).getTime();var vek="://secure-...imrworldwide.com/ ://cdn.imrworldwide.com/ ://aksecure.imrworldwide.com/ ://[^.]*.moatads.com ://youtube[0-9]+.moatpixel.com ://pm.adsafeprotected.com/youtube ://pm.test-adsafeprotected.com/youtube ://e[0-9]+.yt.srs.doubleverify.com www.google.com/pagead/xsul www.youtube.com/pagead/slav".split(" "),yxa=/\bocr\b/;var M$_=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var Ohc=0,x2A=0,Jxu=0;var oen=Object.assign({},{attributes:{},handleError:function(Q){throw Q;}},{TqI:!0, +gfI:!0,rKh:X_B,zr:!1,ILc:!1,Jpm:!1,FZe:!1,Ujn:SAL});var Bz=null,ae=!1,j3c=1,ip=Symbol("SIGNAL"),Mi={version:0,NX$:0,uF:!1,a6:void 0,JQ:void 0,RD:void 0,CI:0,c7:void 0,nQ:void 0,hn:!1,Ck:!1,kind:"unknown",hW:function(){return!1}, +CN:function(){}, +dC:function(){}, +Nqj:function(){}};var CX=Symbol("UNSET"),tg=Symbol("COMPUTING"),Ej=Symbol("ERRORED");Object.assign({},Mi,{value:CX,uF:!0,error:null,xo:s4,kind:"computed",hW:function(Q){return Q.value===CX||Q.value===tg}, +CN:function(Q){if(Q.value===tg)throw Error("Detected cycle in computations.");var z=Q.value;Q.value=tg;var H=Ee8(Q),f=!1;try{var b=Q.bA();Pz(null);f=z!==CX&&z!==Ej&&b!==Ej&&Q.xo(z,b)}catch(L){b=Ej,Q.error=L}finally{prY(Q,H)}f?Q.value=z:(Q.value=b,Q.version++)}});var GJk=Object.assign({},Mi,{xo:s4,value:void 0,kind:"signal"});Object.assign({},Mi,{value:CX,uF:!0,error:null,xo:s4,hW:function(Q){return Q.value===CX||Q.value===tg}, +CN:function(Q){if(Q.value===tg)throw Error("Detected cycle in computations.");var z=Q.value;Q.value=tg;var H=Ee8(Q);try{var f=Q.source();var b=Q.bA(f,z===CX||z===Ej?void 0:{source:Q.SXn,value:z});Q.SXn=f}catch(L){b=Ej,Q.error=L}finally{prY(Q,H)}z!==CX&&b!==Ej&&Q.xo(z,b)?Q.value=z:(Q.value=b,Q.version++)}});Object.assign({},Mi,{Ck:!0,hn:!1,dC:function(Q){Q.schedule!==null&&Q.schedule(Q.jtc)}, +ca3:!1,hej:function(){}});var NWa=Symbol("updater");g.p(Wz,g.zM);Wz.prototype.dispose=function(){window.removeEventListener("offline",this.L);window.removeEventListener("online",this.L);this.eT.xF(this.S);delete Wz.instance}; +Wz.prototype.yP=function(){return this.Z}; +Wz.prototype.SA=function(){var Q=this;this.S=this.eT.pE(function(){var z;return g.B(function(H){if(H.Z==1)return Q.Z?((z=window.navigator)==null?0:z.onLine)?H.bT(3):g.Y(H,hZ(Q),3):g.Y(H,hZ(Q),3);Q.SA();g.$v(H)})},3E4)};K5.prototype.set=function(Q,z){z=z===void 0?!0:z;0<=Q&&Q<52&&Number.isInteger(Q)&&this.data[Q]!==z&&(this.data[Q]=z,this.Z=-1)}; +K5.prototype.get=function(Q){return!!this.data[Q]};var dN;g.Hu(g.kW,g.h);g.S=g.kW.prototype;g.S.start=function(){this.stop();this.D=!1;var Q=rxv(this),z=s3n(this);Q&&!z&&this.B.mozRequestAnimationFrame?(this.Z=g.Vp(this.B,"MozBeforePaint",this.L),this.B.mozRequestAnimationFrame(null),this.D=!0):this.Z=Q&&z?Q.call(this.B,this.L):this.B.setTimeout(V4k(this.L),20)}; +g.S.stop=function(){if(this.isActive()){var Q=rxv(this),z=s3n(this);Q&&!z&&this.B.mozRequestAnimationFrame?lT(this.Z):Q&&z?z.call(this.B,this.Z):this.B.clearTimeout(this.Z)}this.Z=null}; +g.S.isActive=function(){return this.Z!=null}; +g.S.Zr=function(){this.D&&this.Z&&lT(this.Z);this.Z=null;this.j.call(this.S,g.zY())}; +g.S.zv=function(){this.stop();g.kW.xu.zv.call(this)};g.Hu(g.lp,g.h);g.S=g.lp.prototype;g.S.Ak=0;g.S.zv=function(){g.lp.xu.zv.call(this);this.stop();delete this.Z;delete this.B}; +g.S.start=function(Q){this.stop();this.Ak=g.oR(this.L,Q!==void 0?Q:this.I6)}; +g.S.stop=function(){this.isActive()&&g.W_.clearTimeout(this.Ak);this.Ak=0}; +g.S.isActive=function(){return this.Ak!=0}; +g.S.hE=function(){this.Ak=0;this.Z&&this.Z.call(this.B)};g.p(g.HO,g.h);g.S=g.HO.prototype;g.S.YL=function(Q){this.L=arguments;this.C5||this.B?this.Z=!0:fZ(this)}; +g.S.stop=function(){this.C5&&(g.W_.clearTimeout(this.C5),this.C5=null,this.Z=!1,this.L=null)}; +g.S.pause=function(){this.B++}; +g.S.resume=function(){this.B--;this.B||!this.Z||this.C5||(this.Z=!1,fZ(this))}; +g.S.zv=function(){g.h.prototype.zv.call(this);this.stop()};g.bn.prototype[Symbol.iterator]=function(){return this}; +g.bn.prototype.next=function(){var Q=this.Z.next();return{value:Q.done?void 0:this.B.call(void 0,Q.value),done:Q.done}};g.Hu(g.CZ,g.zM);g.S=g.CZ.prototype;g.S.isPlaying=function(){return this.Z==1}; +g.S.isPaused=function(){return this.Z==-1}; +g.S.rK=function(){this.Yc("begin")}; +g.S.f9=function(){this.Yc("end")}; +g.S.onFinish=function(){this.Yc("finish")}; +g.S.onStop=function(){this.Yc("stop")}; +g.S.Yc=function(Q){this.dispatchEvent(Q)};var YT5=EE(function(){var Q=g.fm("DIV"),z=g.RI?"-webkit":tx?"-moz":null,H="transition:opacity 1s linear;";z&&(H+=z+"-transition:opacity 1s linear;");z=lcc({style:H});if(Q.nodeType===1&&/^(script|style)$/i.test(Q.tagName))throw Error("");Q.innerHTML=UK(z);return g.Ei(Q.firstChild,"transition")!=""});g.Hu(tD,g.CZ);g.S=tD.prototype;g.S.play=function(){if(this.isPlaying())return!1;this.rK();this.Yc("play");this.startTime=g.zY();this.Z=1;if(YT5())return g.M2(this.B,this.j),this.L=g.oR(this.UBv,void 0,this),!0;this.tC(!1);return!1}; +g.S.UBv=function(){g.xe(this.B);a5c(this.B,this.Y);g.M2(this.B,this.D);this.L=g.oR((0,g.RJ)(this.tC,this,!1),this.S*1E3)}; +g.S.stop=function(){this.isPlaying()&&this.tC(!0)}; +g.S.tC=function(Q){g.M2(this.B,"transition","");g.W_.clearTimeout(this.L);g.M2(this.B,this.D);this.endTime=g.zY();this.Z=0;if(Q)this.onStop();else this.onFinish();this.f9()}; +g.S.zv=function(){this.stop();tD.xu.zv.call(this)}; +g.S.pause=function(){};var cxp={rgb:!0,rgba:!0,alpha:!0,rect:!0,image:!0,"linear-gradient":!0,"radial-gradient":!0,"repeating-linear-gradient":!0,"repeating-radial-gradient":!0,"cubic-bezier":!0,matrix:!0,perspective:!0,rotate:!0,rotate3d:!0,rotatex:!0,rotatey:!0,steps:!0,rotatez:!0,scale:!0,scale3d:!0,scalex:!0,scaley:!0,scalez:!0,skew:!0,skewx:!0,skewy:!0,translate:!0,translate3d:!0,translatex:!0,translatey:!0,translatez:!0};EF("Element","attributes")||EF("Node","attributes");EF("Element","innerHTML")||EF("HTMLElement","innerHTML");EF("Node","nodeName");EF("Node","nodeType");EF("Node","parentNode");EF("Node","childNodes");EF("HTMLElement","style")||EF("Element","style");EF("HTMLStyleElement","sheet");var V$9=h_L("getPropertyValue"),d2a=h_L("setProperty");EF("Element","namespaceURI")||EF("Node","namespaceURI");var KEa={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var TWv,lGA,kJk,wrZ,e_A;TWv=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]");lGA=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.rt5=RegExp("^[^\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]*[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"); +g.nZ=RegExp("^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");kJk=/^http:\/\/.*/;g.suu=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");wrZ=/\s+/;e_A=/[\d\u06f0-\u06f9]/;Zx.prototype.xM=function(){return new Ge(this.B())}; +Zx.prototype[Symbol.iterator]=function(){return new $F(this.B())}; +Zx.prototype.Z=function(){return new $F(this.B())}; +g.p(Ge,g.u2);Ge.prototype.next=function(){return this.B.next()}; +Ge.prototype[Symbol.iterator]=function(){return new $F(this.B)}; +Ge.prototype.Z=function(){return new $F(this.B)}; +g.p($F,Zx);$F.prototype.next=function(){return this.L.next()};F9.prototype.clone=function(){return new F9(this.Z,this.Y,this.L,this.S,this.D,this.j,this.B,this.N)}; +F9.prototype.jH=function(Q){return this.Z==Q.Z&&this.Y==Q.Y&&this.L==Q.L&&this.S==Q.S&&this.D==Q.D&&this.j==Q.j&&this.B==Q.B&&this.N==Q.N};OF.prototype.clone=function(){return new OF(this.start,this.end)}; +OF.prototype.getLength=function(){return this.end-this.start};(function(){if(X$v){var Q=/Windows NT ([0-9.]+)/;return(Q=Q.exec(g.Iu()))?Q[1]:"0"}return HK?(Q=/1[0|1][_.][0-9_.]+/,(Q=Q.exec(g.Iu()))?Q[0].replace(/_/g,"."):"10"):g.zd?(Q=/Android\s+([^\);]+)(\)|;)/,(Q=Q.exec(g.Iu()))?Q[1]:""):qAs||MYm||CLs?(Q=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(Q=Q.exec(g.Iu()))?Q[1].replace(/_/g,"."):""):""})();var R_p=function(){if(g.Um)return oH(/Firefox\/([0-9.]+)/);if(g.pZ||g.Ta||g.Fu)return yta;if(g.YK){if(Ks()||Vs()){var Q=oH(/CriOS\/([0-9.]+)/);if(Q)return Q}return oH(/Chrome\/([0-9.]+)/)}if(g.$w&&!Ks())return oH(/Version\/([0-9.]+)/);if(lv||Rn){if(Q=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.Iu()))return Q[1]+"."+Q[2]}else if(g.xh)return(Q=oH(/Android\s+([0-9.]+)/))?Q:oH(/Version\/([0-9.]+)/);return""}();g.Hu(g.NP,g.h);g.S=g.NP.prototype;g.S.subscribe=function(Q,z,H){var f=this.B[Q];f||(f=this.B[Q]=[]);var b=this.j;this.Z[b]=Q;this.Z[b+1]=z;this.Z[b+2]=H;this.j=b+3;f.push(b);return b}; +g.S.unsubscribe=function(Q,z,H){if(Q=this.B[Q]){var f=this.Z;if(Q=Q.find(function(b){return f[b+1]==z&&f[b+2]==H}))return this.NP(Q)}return!1}; +g.S.NP=function(Q){var z=this.Z[Q];if(z){var H=this.B[z];this.D!=0?(this.L.push(Q),this.Z[Q+1]=function(){}):(H&&g.lR(H,Q),delete this.Z[Q],delete this.Z[Q+1],delete this.Z[Q+2])}return!!z}; +g.S.publish=function(Q,z){var H=this.B[Q];if(H){var f=Array(arguments.length-1),b=arguments.length,L;for(L=1;L0&&this.D==0)for(;H=this.L.pop();)this.NP(H)}}return L!=0}return!1}; +g.S.clear=function(Q){if(Q){var z=this.B[Q];z&&(z.forEach(this.NP,this),delete this.B[Q])}else this.Z.length=0,this.B={}}; +g.S.zv=function(){g.NP.xu.zv.call(this);this.clear();this.L.length=0};g.IH.prototype.set=function(Q,z){z===void 0?this.Z.remove(Q):this.Z.set(Q,g.Aj(z))}; +g.IH.prototype.get=function(Q){try{var z=this.Z.get(Q)}catch(H){return}if(z!==null)try{return JSON.parse(z)}catch(H){throw"Storage: Invalid value was encountered";}}; +g.IH.prototype.remove=function(Q){this.Z.remove(Q)};g.Hu(AD,g.IH);AD.prototype.set=function(Q,z){AD.xu.set.call(this,Q,H8c(z))}; +AD.prototype.B=function(Q){Q=AD.xu.get.call(this,Q);if(Q===void 0||Q instanceof Object)return Q;throw"Storage: Invalid value was encountered";}; +AD.prototype.get=function(Q){if(Q=this.B(Q)){if(Q=Q.data,Q===void 0)throw"Storage: Invalid value was encountered";}else Q=void 0;return Q};g.Hu(YF,AD);YF.prototype.set=function(Q,z,H){if(z=H8c(z)){if(H){if(H=H.length)return g.XQ;var b=H.key(z++);if(Q)return g.S0(b);b=H.getItem(b);if(typeof b!=="string")throw"Storage mechanism: Invalid value was encountered";return g.S0(b)}; +return f}; +g.S.clear=function(){PO(this);this.Z.clear()}; +g.S.key=function(Q){PO(this);return this.Z.key(Q)};g.Hu(aH,BO);g.Hu(L4_,BO);g.Hu(UF,sF);UF.prototype.set=function(Q,z){this.B.set(this.Z+Q,z)}; +UF.prototype.get=function(Q){return this.B.get(this.Z+Q)}; +UF.prototype.remove=function(Q){this.B.remove(this.Z+Q)}; +UF.prototype.xM=function(Q){var z=this.B[Symbol.iterator](),H=this,f=new g.u2;f.next=function(){var b=z.next();if(b.done)return b;for(b=b.value;b.slice(0,H.Z.length)!=H.Z;){b=z.next();if(b.done)return b;b=b.value}return g.S0(Q?b.slice(H.Z.length):H.B.get(b))}; +return f};hD.prototype.getValue=function(){return this.B}; +hD.prototype.clone=function(){return new hD(this.Z,this.B)};g.S=WO.prototype;g.S.pA=function(Q,z){var H=this.Z;H.push(new hD(Q,z));Q=H.length-1;z=this.Z;for(H=z[Q];Q>0;){var f=Q-1>>1;if(z[f].Z>H.Z)z[Q]=z[f],Q=f;else break}z[Q]=H}; +g.S.remove=function(){var Q=this.Z,z=Q.length,H=Q[0];if(!(z<=0)){if(z==1)Q.length=0;else{Q[0]=Q.pop();Q=0;z=this.Z;for(var f=z.length,b=z[Q];Q>1;){var L=Q*2+1,u=Q*2+2;L=ub.Z)break;z[Q]=z[L];Q=L}z[Q]=b}return H.getValue()}}; +g.S.fg=function(){for(var Q=this.Z,z=[],H=Q.length,f=0;f>>16&65535|0;for(var L;H!==0;){L=H>2E3?2E3:H;H-=L;do b=b+z[f++]|0,Q=Q+b|0;while(--L);b%=65521;Q%=65521}return b|Q<<16|0};for(var nT={},pX,ctu=[],nX=0;nX<256;nX++){pX=nX;for(var isu=0;isu<8;isu++)pX=pX&1?3988292384^pX>>>1:pX>>>1;ctu[nX]=pX}nT=function(Q,z,H,f){H=f+H;for(Q^=-1;f>>8^ctu[(Q^z[f])&255];return Q^-1};var Sy={};Sy={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"};var QX=[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],fT=[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],APv=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Z86=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],qU=Array(576);dv(qU);var MU=Array(60);dv(MU);var H5=Array(512);dv(H5);var RH=Array(256);dv(RH);var z5=Array(29);dv(z5);var bq=Array(30);dv(bq);var JPp,NdZ,IPv,oBc=!1;var jy;jy=[new $c(0,0,0,0,function(Q,z){var H=65535;for(H>Q.dN-5&&(H=Q.dN-5);;){if(Q.Nz<=1){gw(Q);if(Q.Nz===0&&z===0)return 1;if(Q.Nz===0)break}Q.DJ+=Q.Nz;Q.Nz=0;var f=Q.b$+H;if(Q.DJ===0||Q.DJ>=f)if(Q.Nz=Q.DJ-f,Q.DJ=f,CT(Q,!1),Q.QR.gr===0)return 1;if(Q.DJ-Q.b$>=Q.HY-262&&(CT(Q,!1),Q.QR.gr===0))return 1}Q.pA=0;if(z===4)return CT(Q,!0),Q.QR.gr===0?3:4;Q.DJ>Q.b$&&CT(Q,!1);return 1}), +new $c(4,4,8,4,ZV),new $c(4,5,16,8,ZV),new $c(4,6,32,32,ZV),new $c(4,4,16,16,G5),new $c(8,16,32,32,G5),new $c(8,16,128,128,G5),new $c(8,32,128,256,G5),new $c(32,128,258,1024,G5),new $c(32,258,258,4096,G5)];var O8p={};O8p=function(){this.input=null;this.u3=this.BY=this.FM=0;this.output=null;this.kE=this.gr=this.G2=0;this.msg="";this.state=null;this.Qp=2;this.Kp=0};var Y6v=Object.prototype.toString; +Fy.prototype.push=function(Q,z){var H=this.QR,f=this.options.chunkSize;if(this.ended)return!1;var b=z===~~z?z:z===!0?4:0;typeof Q==="string"?H.input=Xku(Q):Y6v.call(Q)==="[object ArrayBuffer]"?H.input=new Uint8Array(Q):H.input=Q;H.FM=0;H.BY=H.input.length;do{H.gr===0&&(H.output=new VM.rU(f),H.G2=0,H.gr=f);Q=x3u(H,b);if(Q!==1&&Q!==0)return this.f9(Q),this.ended=!0,!1;if(H.gr===0||H.BY===0&&(b===4||b===2))if(this.options.ac==="string"){var L=VM.Ir(H.output,H.G2);z=L;L=L.length;if(L<65537&&(z.subarray&& +UsB||!z.subarray))z=String.fromCharCode.apply(null,VM.Ir(z,L));else{for(var u="",X=0;X0||H.gr===0)&&Q!==1);if(b===4)return(H=this.QR)&&H.state?(f=H.state.status,f!==42&&f!==69&&f!==73&&f!==91&&f!==103&&f!==113&&f!==666?Q=Xy(H,-2):(H.state=null,Q=f===113?Xy(H,-3):0)):Q=-2,this.f9(Q),this.ended=!0,Q===0;b===2&&(this.f9(0),H.gr=0);return!0}; +Fy.prototype.f9=function(Q){Q===0&&(this.result=this.options.ac==="string"?this.chunks.join(""):VM.lQ(this.chunks));this.chunks=[];this.err=Q;this.msg=this.QR.msg};var O9="@@redux/INIT"+xc(),U3n="@@redux/REPLACE"+xc();var cPu=typeof Symbol==="function"&&Symbol.observable||"@@observable";var hmB=[0,mkx,-3,by];g.p(NU,cq);NU.prototype.getType=function(){return pw(this,11)};var R59=function(){var Q=[0,kuR,w_m,QE,mkx,QE,-1,by,mkx,by,-1,kuR,by,w_m,zo,hmB,QE,-1,by];return function(z,H){if(R5.length){var f=R5.pop();oT9(f,H);f.Z.init(z,void 0,void 0,H);z=f}else z=new rq(z,H);try{var b=new NU,L=b.Pz;L$(Q)(L,z);var u=b}finally{z.free()}return u}}();var D36=1187109098;var zwp=new g.If("adInfoDialogEndpoint");var $X6=new g.If("adPingingEndpoint");var DZJ=new g.If("crossDeviceProgressCommand");var Qb=new g.If("actionCompanionAdRenderer");var vt=new g.If("adActionInterstitialRenderer");var WBs=new g.If("adDurationRemainingRenderer");var sy=new g.If("adHoverTextButtonRenderer");var Rr8=new g.If("adInfoDialogRenderer");var ED=new g.If("adMessageRenderer");var Bc=new g.If("adPreviewRenderer");var Hc=new g.If("adsEngagementPanelRenderer");var td9=new g.If("dismissablePanelTextPortraitImageRenderer");var Md9=new g.If("adsEngagementPanelSectionListViewModel");var Dss=new g.If("flyoutCtaRenderer");var zC=new g.If("imageCompanionAdRenderer");var SM=new g.If("instreamAdPlayerOverlayRenderer");var nu6=new g.If("instreamSurveyAdBackgroundImageRenderer");var rg=new g.If("instreamSurveyAdPlayerOverlayRenderer");var CY=new g.If("instreamSurveyAdRenderer"),YN=new g.If("instreamSurveyAdSingleSelectQuestionRenderer"),AA=new g.If("instreamSurveyAdMultiSelectQuestionRenderer"),gx=new g.If("instreamSurveyAdAnswerRenderer"),KBm=new g.If("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var qd=new g.If("instreamVideoAdRenderer");var V5x=new g.If("textOverlayAdContentRenderer"),dss=new g.If("enhancedTextOverlayAdContentRenderer"),msu=new g.If("imageOverlayAdContentRenderer");var XI=new g.If("playerOverlayLayoutRenderer");var yQ=new g.If("videoInterstitialButtonedCenteredLayoutRenderer");var Z4L=new g.If("aboveFeedAdLayoutRenderer");var Gpu=new g.If("belowPlayerAdLayoutRenderer");var gSA=new g.If("inPlayerAdLayoutRenderer");var pY=new g.If("playerBytesAdLayoutRenderer");var IV=new g.If("playerBytesSequenceItemAdLayoutRenderer");var $N=new g.If("playerUnderlayAdLayoutRenderer");var Md=new g.If("adIntroRenderer");var vc=new g.If("playerBytesSequentialLayoutRenderer");var ltu=new g.If("slidingTextPlayerOverlayRenderer");var tA=new g.If("surveyTextInterstitialRenderer");var nY=new g.If("videoAdTrackingRenderer");var wuR=new g.If("simpleAdBadgeRenderer");var L6=new g.If("skipAdRenderer"),kYs=new g.If("skipButtonRenderer");var cc=new g.If("adSlotRenderer");var Zq=new g.If("squeezebackPlayerSidePanelRenderer");var TJY=new g.If("timedPieCountdownRenderer");var DB=new g.If("adAvatarViewModel");var K0=new g.If("adBadgeViewModel");var VB=new g.If("adButtonViewModel");var emB=new g.If("adDetailsLineViewModel");var lLx=new g.If("adDisclosureBannerViewModel");var Rms=new g.If("adPodIndexViewModel");var QGu=new g.If("imageBackgroundViewModel");var zWL=new g.If("adGridCardCollectionViewModel");var Hrs=new g.If("adGridCardTextViewModel");var f3T=new g.If("adPreviewViewModel");var brm=new g.If("playerAdAvatarLockupCardButtonedViewModel");var Lzs=new g.If("skipAdButtonViewModel");var ukx=new g.If("skipAdViewModel");var S2Y=new g.If("timedPieCountdownViewModel");var XYx=new g.If("visitAdvertiserLinkViewModel");var fY=new g.If("bannerImageLayoutViewModel");var bg=new g.If("topBannerImageTextIconButtonedLayoutViewModel");var LY=new g.If("adsEngagementPanelLayoutViewModel");var GC=new g.If("displayUnderlayTextGridCardsLayoutViewModel");g.oq=new g.If("browseEndpoint");var vTu=new g.If("confirmDialogEndpoint");var Tbk=new g.If("commandContext");var j4_=new g.If("rawColdConfigGroup");var $0u=new g.If("rawHotConfigGroup");g.gU=new g.If("commandExecutorCommand");g.p(d39,cq);var L9L={Yv3:0,u2I:1,ofq:32,Pzq:61,kpc:67,Bqh:103,zeT:86,rp3:42,eej:60,Niq:62,w0v:73,OVT:76,qJv:88,LZv:90,Mdl:99,UC3:98,azj:100,ZVh:102,Djv:41,bVc:69,ypv:70,Gpv:71,J8l:2,EM5:27,ANDROID:3,o3v:54,eH$:14,LWv:91,Hq$:55,OqT:24,Zqq:20,wYI:18,x73:21,zHh:104,kwn:30,bqm:29,y53:28,XNh:101,Gwm:34,aV5:36,Pch:38,IOS:5,cBc:15,hUc:92,YGv:40,vrq:25,JB3:17,Erh:19,plc:64,itT:66,Xln:26,dDv:22,ucj:33,I5v:68,Nzh:35,Qx5:53,C$n:37,sxh:39,bPq:7,y_h:57,G7m:43,j4I:59,Khv:93,D7c:74,l4l:75,SvI:85,f4v:65,VTj:80,mCc:8,MTT:10, +c_I:58,nXj:63,A_h:72,M2q:23,lzv:11,SJI:13,FWI:12,DC$:16,gXm:56,xjl:31,Y7c:77,rBh:84,HVT:87,eUm:89,orh:94,DKl:95};g.p(Au,cq);Au.prototype.Cy=function(){return E$(this,3)}; +Au.prototype.Ww=function(){return E$(this,5)}; +Au.prototype.uU=function(Q){return gq(this,5,Q)};g.p(Yc,cq);g.p(m3A,cq);g.p(rw,cq);g.S=rw.prototype;g.S.getDeviceId=function(){return E$(this,6)}; +g.S.wR=function(Q){var z=wC(this,9,q4,3,!0);Kr(z,Q);return z[Q]}; +g.S.getPlayerType=function(){return pw(this,36)}; +g.S.setHomeGroupInfo=function(Q){return vq(this,m3A,81,Q)}; +g.S.clearLocationPlayabilityToken=function(){return Wo(this,89)};g.p(s9,cq);s9.prototype.getValue=function(){return E$(this,br(this,ZFn)===2?2:-1)}; +var ZFn=[2,3,4,5,6];g.p(B5,cq);B5.prototype.setTrackingParams=function(Q){return Wo(this,1,ILk(Q,!1))};g.p(P5,cq);g.p(af,cq);af.prototype.wR=function(Q){var z=wC(this,5,M4,3,!0);Kr(z,Q);return z[Q]};g.p(U9,cq);U9.prototype.getToken=function(){return Cw(this,2)}; +U9.prototype.setToken=function(Q){return gq(this,2,Q)};g.p(c5,cq);c5.prototype.setSafetyMode=function(Q){return GH(this,5,Q)};g.p(iq,cq);iq.prototype.DP=function(Q){return vq(this,rw,1,Q)};var aV=new g.If("thumbnailLandscapePortraitRenderer");g.yCx=new g.If("changeEngagementPanelVisibilityAction");var Ocu=new g.If("continuationCommand");g.q2u=new g.If("openPopupAction");g.ZX=new g.If("webCommandMetadata");var Bgc=new g.If("metadataBadgeRenderer");var xRZ=new g.If("signalServiceEndpoint");var cT=new g.If("innertubeCommand");var Mik=new g.If("loggingDirectives");var rZa={mGI:"EMBEDDED_PLAYER_MODE_UNKNOWN",fCn:"EMBEDDED_PLAYER_MODE_DEFAULT",V6h:"EMBEDDED_PLAYER_MODE_PFP",A9q:"EMBEDDED_PLAYER_MODE_PFL"};var SDZ=new g.If("channelThumbnailEndpoint");var uM_=new g.If("embeddedPlayerErrorMessageRenderer");var HQA=new g.If("embeddedPlayerOverlayVideoDetailsRenderer"),XSa=new g.If("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),vHu=new g.If("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var Yyk=new g.If("embedsInfoPanelRenderer");var Mju=new g.If("feedbackEndpoint");var C4T=new g.If("callToActionButtonViewModel");var tj5=new g.If("interactionLoggingCommandMetadata");var Nw9={Tiv:"WEB_DISPLAY_MODE_UNKNOWN",Fhc:"WEB_DISPLAY_MODE_BROWSER",RbT:"WEB_DISPLAY_MODE_MINIMAL_UI",WhI:"WEB_DISPLAY_MODE_STANDALONE",tTn:"WEB_DISPLAY_MODE_FULLSCREEN"};g.p(hu,cq);hu.prototype.getPlayerType=function(){return pw(this,7)}; +hu.prototype.Ki=function(){return E$(this,19)}; +hu.prototype.setVideoId=function(Q){return gq(this,19,Q)};g.p(W5,cq);g.p(VX,cq);g.p(dw,cq); +var ETs=[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];var pYu=new g.If("loggingContext");g.p(mk,cq);g.p(ww,cq);ww.prototype.Ki=function(){return Cw(this,br(this,MX)===1?1:-1)}; +ww.prototype.setVideoId=function(Q){return Hq(this,1,MX,Fc(Q))}; +ww.prototype.getPlaylistId=function(){return Cw(this,br(this,MX)===2?2:-1)}; +var MX=[1,2];g.p(wkn,cq);var Qt=new g.If("changeKeyedMarkersVisibilityCommand");var nTT=new g.If("changeMarkersVisibilityCommand");var aqv=new g.If("loadMarkersCommand");var gTu=new g.If("suggestedActionDataViewModel");var HOc=new g.If("timelyActionViewModel");var za8=new g.If("timelyActionsOverlayViewModel");var LP_=new g.If("productListItemRenderer");var ZrB=new g.If("shoppingOverlayRenderer");var fOv=new g.If("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var G75=new g.If("adFeedbackEndpoint");var $Im=new g.If("menuEndpoint");var Z0A=new g.If("phoneDialerEndpoint");var n59=new g.If("sendSmsEndpoint");var zs6=new g.If("copyTextEndpoint");var jGu=new g.If("shareEndpoint"),FzJ=new g.If("shareEntityEndpoint"),xIu=new g.If("shareEntityServiceEndpoint"),OrR=new g.If("webPlayerShareEntityServiceEndpoint");g.cf=new g.If("urlEndpoint");g.lF=new g.If("watchEndpoint");var oTs=new g.If("watchPlaylistEndpoint");g.JCx=new g.If("offlineOrchestrationActionCommand");var Db9=new g.If("compositeVideoOverlayRenderer");var N7B=new g.If("miniplayerRenderer");var RKA=new g.If("paidContentOverlayRenderer");var I3J=new g.If("playerMutedAutoplayOverlayRenderer"),AC5=new g.If("playerMutedAutoplayEndScreenRenderer");var mM8=new g.If("unserializedPlayerResponse"),Y2B=new g.If("unserializedPlayerResponse");var rCB=new g.If("playlistEditEndpoint");var Go;g.Pc=new g.If("buttonRenderer");Go=new g.If("toggleButtonRenderer");var q1Y=new g.If("counterfactualRenderer");var sGt=new g.If("resolveUrlCommandMetadata");var B7Y=new g.If("modifyChannelNotificationPreferenceEndpoint");var G6v=new g.If("pingingEndpoint");var P4m=new g.If("unsubscribeEndpoint");g.JM=new g.If("subscribeButtonRenderer");var a3T=new g.If("subscribeEndpoint");var $1J=new g.If("buttonViewModel");var CGu=new g.If("qrCodeRenderer");var Sv_={xKe:"LIVING_ROOM_APP_MODE_UNSPECIFIED",Zg5:"LIVING_ROOM_APP_MODE_MAIN",Ogv:"LIVING_ROOM_APP_MODE_KIDS",wGe:"LIVING_ROOM_APP_MODE_MUSIC",PZ$:"LIVING_ROOM_APP_MODE_UNPLUGGED",HgI:"LIVING_ROOM_APP_MODE_GAMING"};var NgA=new g.If("autoplaySwitchButtonRenderer");var xa,diY,QVa,ffY;xa=new g.If("decoratedPlayerBarRenderer");diY=new g.If("chapteredPlayerBarRenderer");QVa=new g.If("multiMarkersPlayerBarRenderer");ffY=new g.If("chapterRenderer");g.Txn=new g.If("markerRenderer");var UIu=new g.If("decoratedPlayheadRenderer");var rAu=new g.If("desktopOverlayConfigRenderer");var ES9=new g.If("engagementPanelSectionListRenderer");var AAZ=new g.If("gatedActionsOverlayViewModel");var QFA=new g.If("heatMarkerRenderer");var Rdu=new g.If("heatmapRenderer");var PgL=new g.If("watchToWatchTransitionRenderer");var bQk=new g.If("playlistPanelRenderer");var cCB=new g.If("productUpsellSuggestedActionViewModel");var ir5=new g.If("suggestedActionTimeRangeTrigger"),hWY=new g.If("suggestedActionsRenderer"),WzY=new g.If("suggestedActionRenderer");var zBn=new g.If("timedMarkerDecorationRenderer");var nKk=new g.If("cipher");var wZJ=new g.If("playerVars");var DIL=new g.If("playerVars");var $8=g.W_.window,Kzu,Vjs,kc=($8==null?void 0:(Kzu=$8.yt)==null?void 0:Kzu.config_)||($8==null?void 0:(Vjs=$8.ytcfg)==null?void 0:Vjs.data_)||{};g.D6("yt.config_",kc);var Rf=[];var b5n=/^[\w.]*$/,Qek={q:!0,search_query:!0},Run=String(f1);var C1=new function(){var Q=window.document;this.Z=window;this.B=Q}; +g.D6("yt.ads_.signals_.getAdSignalsString",function(Q){return bv(EM(Q))});g.zY();var ugp="XMLHttpRequest"in g.W_?function(){return new XMLHttpRequest}:null;var dIR="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.F(dIR);var yZa={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"},q4c="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(g.F(dIR)),Z5J=!1,Xza=M_A,pza=JF;g.p(AF,ps);sM.prototype.then=function(Q,z,H){return this.Z?this.Z.then(Q,z,H):this.L===1&&Q?(Q=Q.call(H,this.B))&&typeof Q.then==="function"?Q:P2(Q):this.L===2&&z?(Q=z.call(H,this.B))&&typeof Q.then==="function"?Q:B2(Q):this}; +sM.prototype.getValue=function(){return this.B}; +sM.prototype.$goog_Thenable=!0;var an=!1;var kw=lv||Rn;var AZ_=/^([0-9\.]+):([0-9\.]+)$/;g.p(tq,ps);tq.prototype.name="BiscottiError";g.p(CF,ps);CF.prototype.name="BiscottiMissingError";var BNu={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},EP=null;var x49=EA(["data-"]),Ksu={};var mIY=0,pF=g.RI?"webkit":tx?"moz":g.pZ?"ms":g.Fu?"o":"",wYu=g.Kn("ytDomDomGetNextId")||function(){return++mIY}; +g.D6("ytDomDomGetNextId",wYu);var wzc={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};js.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; +js.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; +js.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var FX=g.W_.ytEventsEventsListeners||{};g.D6("ytEventsEventsListeners",FX);var eR_=g.W_.ytEventsEventsCounter||{count:0};g.D6("ytEventsEventsCounter",eR_);var zEu=EE(function(){var Q=!1;try{var z=Object.defineProperty({},"passive",{get:function(){Q=!0}}); +window.addEventListener("test",null,z)}catch(H){}return Q}),lRJ=EE(function(){var Q=!1; +try{var z=Object.defineProperty({},"capture",{get:function(){Q=!0}}); +window.addEventListener("test",null,z)}catch(H){}return Q});var jR;jR=window;g.IE=jR.ytcsi&&jR.ytcsi.now?jR.ytcsi.now:jR.performance&&jR.performance.timing&&jR.performance.now&&jR.performance.timing.navigationStart?function(){return jR.performance.timing.navigationStart+jR.performance.now()}:function(){return(new Date).getTime()};g.Hu(N0,g.h);N0.prototype.U=function(Q){Q.Z===void 0&&kOk(Q);var z=Q.Z;Q.B===void 0&&kOk(Q);this.Z=new g.Er(z,Q.B)}; +N0.prototype.Wr=function(){return this.Z||new g.Er}; +N0.prototype.Ze=function(){if(this.Z){var Q=(0,g.IE)();if(this.D!=0){var z=this.j,H=this.Z,f=z.x-H.x;z=z.y-H.y;f=Math.sqrt(f*f+z*z)/(Q-this.D);this.B[this.L]=Math.abs((f-this.S)/this.S)>.5?1:0;for(H=z=0;H<4;H++)z+=this.B[H]||0;z>=3&&this.Y();this.S=f}this.D=Q;this.j=this.Z;this.L=(this.L+1)%4}}; +N0.prototype.zv=function(){g.$7(this.N);g.OP(this.wh)};g.p(I4,g.h);I4.prototype.X=function(Q,z,H,f,b){H=g.zr((0,g.RJ)(H,f||this.ZJ));H={target:Q,name:z,callback:H};var L;b&&zEu()&&(L={passive:!0});Q.addEventListener(z,H.callback,L);this.Y.push(H);return H}; +I4.prototype.DS=function(Q){for(var z=0;z=D.Gj)||x.Z.version>=T||x.Z.objectStoreNames.contains(U)||I.push(U)}v=I;if(v.length===0){G.bT(5);break}y=Object.keys(H.options.lU); +q=X.objectStoreNames();if(H.SH.options.version+1)throw C.close(),H.L=!1,DP6(H,t);return G.return(C);case 8:throw z(), +M instanceof Error&&!g.FZ("ytidb_async_stack_killswitch")&&(M.stack=M.stack+"\n"+u.substring(u.indexOf("\n")+1)),j9(M,H.name,"",(E=H.options.version)!=null?E:-1);}})} +function z(){H.Z===f&&(H.Z=void 0)} +var H=this;if(!this.L)throw DP6(this);if(this.Z)return this.Z;var f,b={blocking:function(L){L.close()}, +closed:z,CWh:z,upgrade:this.options.upgrade};return this.Z=f=Q()};var mx=new V5("YtIdbMeta",{lU:{databases:{Gj:1}},upgrade:function(Q,z){z(1)&&g.Yw(Q,"databases",{keyPath:"actualName"})}});var l0,e9=new function(){}(new function(){});new g.gB;g.p(zK,V5);zK.prototype.B=function(Q,z,H){H=H===void 0?{}:H;return(this.options.shared?lx9:eEk)(Q,z,Object.assign({},H))}; +zK.prototype.delete=function(Q){Q=Q===void 0?{}:Q;return(this.options.shared?HT_:RE8)(this.name,Q)};var fcs={},bTA=g.HU("ytGcfConfig",{lU:(fcs.coldConfigStore={Gj:1},fcs.hotConfigStore={Gj:1},fcs),shared:!1,upgrade:function(Q,z){z(1)&&(g.Ue(g.Yw(Q,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.Ue(g.Yw(Q,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, +version:1});g.p(bS,g.h);bS.prototype.zv=function(){for(var Q=g.n(this.B),z=Q.next();!z.done;z=Q.next()){var H=this.Z;z=H.indexOf(z.value);z>=0&&H.splice(z,1)}this.B.length=0;g.h.prototype.zv.call(this)};yH.prototype.uU=function(Q){this.hotHashData=Q;g.D6("yt.gcf.config.hotHashData",this.hotHashData||null)};var bSB=typeof TextEncoder!=="undefined"?new TextEncoder:null,mUA=bSB?function(Q){return bSB.encode(Q)}:function(Q){Q=g.GY(Q); +for(var z=new Uint8Array(Q.length),H=0;H=z?!1:!0}; +g.S.a7=function(){var Q=this;if(!U5(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.XR.uQ("QUEUED",this.Iy).then(function(z){z&&!Q.xg(z,Q.Nb)?Q.eT.pE(function(){return g.B(function(H){if(H.Z==1)return z.id===void 0?H.bT(2):g.Y(H,Q.XR.ZI(z.id,Q.Iy),2);Q.a7();g.$v(H)})}):Q.KA.yP()&&Q.I2()})};var h$;var OFJ={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135, +mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28, +nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42, +assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225, +liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73, +visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88, +spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153, +vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,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,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,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};var ucu={},qMp=g.HU("ServiceWorkerLogsDatabase",{lU:(ucu.SWHealthLog={Gj:1},ucu),shared:!0,upgrade:function(Q,z){z(1)&&g.Ue(g.Yw(Q,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, +version:1});var Kc={},n7Z=0;var VH;mu.prototype.requestComplete=function(Q,z){z&&(this.B=!0);Q=this.removeParams(Q);this.Z.get(Q)||this.Z.set(Q,z)}; +mu.prototype.isEndpointCFR=function(Q){Q=this.removeParams(Q);return(Q=this.Z.get(Q))?!1:Q===!1&&this.B?!0:null}; +mu.prototype.removeParams=function(Q){return Q.split("?")[0]}; +mu.prototype.removeParams=mu.prototype.removeParams;mu.prototype.isEndpointCFR=mu.prototype.isEndpointCFR;mu.prototype.requestComplete=mu.prototype.requestComplete;mu.getInstance=w2;g.p(kC,g.zM);g.S=kC.prototype;g.S.yP=function(){return this.Z.yP()}; +g.S.IQ=function(Q){this.Z.Z=Q}; +g.S.Mmj=function(){var Q=window.navigator.onLine;return Q===void 0?!0:Q}; +g.S.gw=function(){this.B=!0}; +g.S.listen=function(Q,z){return this.Z.listen(Q,z)}; +g.S.Kj=function(Q){Q=hZ(this.Z,Q);Q.then(function(z){g.FZ("use_cfr_monitor")&&w2().requestComplete("generate_204",z)}); +return Q}; +kC.prototype.sendNetworkCheckRequest=kC.prototype.Kj;kC.prototype.listen=kC.prototype.listen;kC.prototype.enableErrorFlushing=kC.prototype.gw;kC.prototype.getWindowStatus=kC.prototype.Mmj;kC.prototype.networkStatusHint=kC.prototype.IQ;kC.prototype.isNetworkAvailable=kC.prototype.yP;kC.getInstance=Gr6;g.p(g.TK,g.zM);g.TK.prototype.yP=function(){var Q=g.Kn("yt.networkStatusManager.instance.isNetworkAvailable");return Q?Q.bind(this.B)():!0}; +g.TK.prototype.IQ=function(Q){var z=g.Kn("yt.networkStatusManager.instance.networkStatusHint").bind(this.B);z&&z(Q)}; +g.TK.prototype.Kj=function(Q){var z=this,H;return g.B(function(f){H=g.Kn("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(z.B);return g.FZ("skip_network_check_if_cfr")&&w2().isEndpointCFR("generate_204")?f.return(new Promise(function(b){var L;z.IQ(((L=window.navigator)==null?void 0:L.onLine)||!0);b(z.yP())})):H?f.return(H(Q)):f.return(!0)})};var ei;g.p(lS,cU);lS.prototype.writeThenSend=function(Q,z){z||(z={});z=Q7(Q,z);g.es()||(this.Z=!1);cU.prototype.writeThenSend.call(this,Q,z)}; +lS.prototype.sendThenWrite=function(Q,z,H){z||(z={});z=Q7(Q,z);g.es()||(this.Z=!1);cU.prototype.sendThenWrite.call(this,Q,z,H)}; +lS.prototype.sendAndWrite=function(Q,z){z||(z={});z=Q7(Q,z);g.es()||(this.Z=!1);cU.prototype.sendAndWrite.call(this,Q,z)}; +lS.prototype.awaitInitialization=function(){return this.L.promise};var O18=g.W_.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.D6("ytNetworklessLoggingInitializationOptions",O18);g.zw.prototype.isReady=function(){!this.config_&&$Up()&&(this.config_=g.MR());return!!this.config_};var S7s,b8,u8;S7s=g.W_.ytPubsubPubsubInstance||new g.NP;b8=g.W_.ytPubsubPubsubSubscribedKeys||{};u8=g.W_.ytPubsubPubsubTopicToKeys||{};g.Lt=g.W_.ytPubsubPubsubIsSynchronous||{};g.NP.prototype.subscribe=g.NP.prototype.subscribe;g.NP.prototype.unsubscribeByKey=g.NP.prototype.NP;g.NP.prototype.publish=g.NP.prototype.publish;g.NP.prototype.clear=g.NP.prototype.clear;g.D6("ytPubsubPubsubInstance",S7s);g.D6("ytPubsubPubsubTopicToKeys",u8);g.D6("ytPubsubPubsubIsSynchronous",g.Lt); +g.D6("ytPubsubPubsubSubscribedKeys",b8);var YML={};g.p(pt,g.h);pt.prototype.append=function(Q){if(!this.B)throw Error("This does not support the append operation");Q=Q.ai();this.ai().appendChild(Q)}; +g.p(nt,pt);nt.prototype.ai=function(){return this.Z};g.p(g6,g.h);g6.prototype.onTouchStart=function(Q){this.Y=!0;this.B=Q.touches.length;this.Z.isActive()&&(this.Z.stop(),this.S=!0);Q=Q.touches;this.j=BRk(this,Q)||Q.length!=1;var z=Q.item(0);this.j||!z?this.U=this.N=Infinity:(this.N=z.clientX,this.U=z.clientY);for(z=this.L.length=0;z=0)}if(z||Q&&Math.pow(Q.clientX-this.N,2)+Math.pow(Q.clientY-this.U,2)>25)this.D=!0}; +g6.prototype.onTouchEnd=function(Q){var z=Q.changedTouches;z&&this.Y&&this.B==1&&!this.D&&!this.S&&!this.j&&BRk(this,z)&&(this.Ze=Q,this.Z.start());this.B=Q.touches.length;this.B===0&&(this.D=this.Y=!1,this.L.length=0);this.S=!1};var FN=Date.now().toString();var NA={};var sb=Symbol("injectionDeps");AL.prototype.toString=function(){return"InjectionToken("+this.name+")"}; +Una.prototype.resolve=function(Q){return Q instanceof Yk?Bb(this,Q.key,[],!0):Bb(this,Q,[])};var Pb;var Ub=window;var Wb=g.FZ("web_enable_lifecycle_monitoring")&&cb()!==0,VTJ=g.FZ("web_enable_lifecycle_monitoring");WWc.prototype.cancel=function(){for(var Q=g.n(this.Z),z=Q.next();!z.done;z=Q.next())z=z.value,z.jobId===void 0||z.uS||this.scheduler.xF(z.jobId),z.uS=!0;this.B.resolve()};g.S=D7.prototype;g.S.install=function(Q){this.plugins.push(Q);return this}; +g.S.uninstall=function(){var Q=this;g.rc.apply(0,arguments).forEach(function(z){z=Q.plugins.indexOf(z);z>-1&&Q.plugins.splice(z,1)})}; +g.S.transition=function(Q,z){var H=this;Wb&&i18(this.state);var f=this.transitions.find(function(L){return Array.isArray(L.from)?L.from.find(function(u){return u===H.state&&L.ac===Q}):L.from===H.state&&L.ac===Q}); +if(f){this.B&&(Dnp(this.B),this.B=void 0);dnZ(this,Q,z);this.state=Q;Wb&&i8(this.state);f=f.action.bind(this);var b=this.plugins.filter(function(L){return L[Q]}).map(function(L){return L[Q]}); +f(KWY(this,b),z)}else throw Error("no transition specified from "+this.state+" to "+Q);}; +g.S.XS$=function(Q){var z=g.rc.apply(1,arguments);g.HH();for(var H=g.n(Q),f=H.next(),b={};!f.done;b={Er:void 0},f=H.next())b.Er=f.value,tKp(function(L){return function(){V7(L.Er.name);mC(function(){return L.Er.callback.apply(L.Er,g.F(z))}); +d6(L.Er.name)}}(b))}; +g.S.i2$=function(Q){var z=g.rc.apply(1,arguments),H,f,b,L;return g.B(function(u){u.Z==1&&(g.HH(),H=g.n(Q),f=H.next(),b={});if(u.Z!=3){if(f.done)return u.bT(0);b.j5=f.value;b.tf=void 0;L=function(X){return function(){V7(X.j5.name);var v=mC(function(){return X.j5.callback.apply(X.j5,g.F(z))}); +SJ(v)?X.tf=g.FZ("web_lifecycle_error_handling_killswitch")?v.then(function(){d6(X.j5.name)}):v.then(function(){d6(X.j5.name)},function(y){hz9(y); +d6(X.j5.name)}):d6(X.j5.name)}}(b); +tKp(L);return b.tf?g.Y(u,b.tf,3):u.bT(3)}b={j5:void 0,tf:void 0};f=H.next();return u.bT(2)})}; +g.S.cD=function(Q){var z=g.rc.apply(1,arguments),H=this,f=Q.map(function(b){return{F6:function(){V7(b.name);mC(function(){return b.callback.apply(b,g.F(z))}); +d6(b.name)}, +priority:Kt(H,b)}}); +f.length&&(this.B=new WWc(f))}; +g.y9.Object.defineProperties(D7.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var kk;g.p(w6,D7);w6.prototype.S=function(Q,z){var H=this;this.Z=g.Q5(0,function(){H.currentState==="application_navigating"&&H.transition("none")},5E3); +Q(z==null?void 0:z.event)}; +w6.prototype.j=function(Q,z){this.Z&&(g.DR.xF(this.Z),this.Z=null);Q(z==null?void 0:z.event)};var G6=[];g.D6("yt.logging.transport.getScrapedGelPayloads",function(){return G6});Tw.prototype.storePayload=function(Q,z){Q=ev(Q);this.store[Q]?this.store[Q].push(z):(this.B={},this.store[Q]=[z]);this.Z++;g.FZ("more_accurate_gel_parser")&&(z=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(z));return Q}; +Tw.prototype.smartExtractMatchingEntries=function(Q){if(!Q.keys.length)return[];for(var z=Rw(this,Q.keys.splice(0,1)[0]),H=[],f=0;f=0){f=!1;break a}}f=!0}f&&(z=hl(z))&&this.xi(z)}}; +g.S.dL=function(Q){return Q}; +g.S.onTouchStart=function(Q){this.L3.onTouchStart(Q)}; +g.S.onTouchMove=function(Q){this.L3.onTouchMove(Q)}; +g.S.onTouchEnd=function(Q){if(this.L3)this.L3.onTouchEnd(Q)}; +g.S.xi=function(Q){this.layoutId?this.dh.executeCommand(Q,this.layoutId):g.PT(new g.kQ("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))}; +g.S.createServerVe=function(Q,z){this.api.createServerVe(Q,this);this.api.setTrackingParams(Q,z)}; +g.S.logVisibility=function(Q,z){this.api.hasVe(Q)&&this.api.logVisibility(Q,z,this.interactionLoggingClientData)}; +g.S.zv=function(){this.clear(null);this.DS(this.rT);for(var Q=g.n(this.De),z=Q.next();!z.done;z=Q.next())this.DS(z.value);g.tB.prototype.zv.call(this)};g.p(Bf,Ec); +Bf.prototype.init=function(Q,z,H){Ec.prototype.init.call(this,Q,z,H);this.Z=z;if(z.text==null&&z.icon==null)g.ax(Error("ButtonRenderer did not have text or an icon set."));else{switch(z.style||null){case "STYLE_UNKNOWN":Q="ytp-ad-button-link";break;default:Q=null}Q!=null&&g.X9(this.element,Q);z.text!=null&&(Q=g.na(z.text),g.Fx(Q)||(this.element.setAttribute("aria-label",Q),this.L=new g.tB({G:"span",J:"ytp-ad-button-text",BI:Q}),g.W(this,this.L),this.L.Gv(this.element)));z.accessibilityData&&z.accessibilityData.accessibilityData&& +z.accessibilityData.accessibilityData.label&&!g.Fx(z.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",z.accessibilityData.accessibilityData.label);z.icon!=null&&(z=sc(z.icon,this.D),z!=null&&(this.B=new g.tB({G:"span",J:"ytp-ad-button-icon",W:[z]}),g.W(this,this.B)),this.j?Sz(this.element,this.B.element,0):this.B.Gv(this.element))}}; +Bf.prototype.clear=function(){this.hide()}; +Bf.prototype.onClick=function(Q){Ec.prototype.onClick.call(this,Q);Q=g.n(c1J(this));for(var z=Q.next();!z.done;z=Q.next())z=z.value,this.layoutId?this.dh.executeCommand(z,this.layoutId):g.PT(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.p(Pf,g.h);Pf.prototype.zv=function(){this.B&&g.OP(this.B);this.Z.clear();av=null;g.h.prototype.zv.call(this)}; +Pf.prototype.register=function(Q,z){z&&this.Z.set(Q,z)}; +var av=null;g.p(iI,Ec); +iI.prototype.init=function(Q,z,H){Ec.prototype.init.call(this,Q,z,H);Q=z.hoverText||null;z=z.button&&g.K(z.button,g.Pc)||null;z==null?g.PT(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new Bf(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,void 0,void 0,void 0,void 0,this.L),g.W(this,this.button),this.button.init(SE("button"),z,this.macros),Q&&this.button.element.setAttribute("aria-label",g.na(Q)),this.button.Gv(this.element),this.U&&!g.SK(this.button.element, +"ytp-ad-clickable")&&g.X9(this.button.element,"ytp-ad-clickable"),this.L&&(g.X9(this.button.element,"ytp-ad-hover-text-button--clean-player"),this.api.V("clean_player_style_fix_on_web")&&g.X9(this.button.element,"ytp-ad-hover-text-button--clean-player-with-light-shadow")),Q&&(this.B=new g.tB({G:"div",J:"ytp-ad-hover-text-container"}),this.j&&(z=new g.tB({G:"div",J:"ytp-ad-hover-text-callout"}),z.Gv(this.B.element),g.W(this,z)),g.W(this,this.B),this.B.Gv(this.element),z=Uc(Q),Sz(this.B.element,z,0)), +this.show())}; +iI.prototype.hide=function(){this.button&&this.button.hide();this.B&&this.B.hide();Ec.prototype.hide.call(this)}; +iI.prototype.show=function(){this.button&&this.button.show();Ec.prototype.show.call(this)};g.p(Wf,Ec); +Wf.prototype.init=function(Q,z,H){Ec.prototype.init.call(this,Q,z,H);H=(Q=z.thumbnail)&&hB(Q)||"";g.Fx(H)?Math.random()<.01&&g.ax(Error("Found AdImage without valid image URL")):(this.Z?g.M2(this.element,"backgroundImage","url("+H+")"):lQ(this.element,{src:H}),lQ(this.element,{alt:Q&&Q.accessibility&&Q.accessibility.label||""}),z&&z.adRendererCommands&&z.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; +Wf.prototype.clear=function(){this.hide()};g.p(Dv,Ec);g.S=Dv.prototype;g.S.hide=function(){Ec.prototype.hide.call(this);this.L&&this.L.focus()}; +g.S.show=function(){this.L=document.activeElement;Ec.prototype.show.call(this);this.D.focus()}; +g.S.init=function(Q,z,H){Ec.prototype.init.call(this,Q,z,H);this.B=z;z.dialogMessages||z.title!=null?z.confirmLabel==null?g.PT(Error("ConfirmDialogRenderer.confirmLabel was not set.")):z.cancelLabel==null?g.PT(Error("ConfirmDialogRenderer.cancelLabel was not set.")):DVk(this,z):g.PT(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; +g.S.clear=function(){g.YQ(this.Z);this.hide()}; +g.S.vW=function(){this.hide()}; +g.S.RC=function(){var Q=this.B.cancelEndpoint;Q&&(this.layoutId?this.dh.executeCommand(Q,this.layoutId):g.PT(Error("Missing layoutId for confirm dialog.")));this.hide()}; +g.S.JS=function(){var Q=this.B.confirmNavigationEndpoint||this.B.confirmEndpoint;Q&&(this.layoutId?this.dh.executeCommand(Q,this.layoutId):g.PT(Error("Missing layoutId for confirm dialog.")));this.hide()};g.p(Ka,Ec);g.S=Ka.prototype; +g.S.init=function(Q,z,H){Ec.prototype.init.call(this,Q,z,H);this.L=z;if(z.defaultText==null&&z.defaultIcon==null)g.PT(Error("ToggleButtonRenderer must have either text or icon set."));else if(z.defaultIcon==null&&z.toggledIcon!=null)g.PT(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(z.style){switch(z.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":Q="ytp-ad-toggle-button-default-style";break;default:Q=null}Q!=null&&g.X9(this.D,Q)}Q={};z.defaultText? +(H=g.na(z.defaultText),g.Fx(H)||(Q.buttonText=H,this.api.C().experiments.Nc("a11y_h5_associate_survey_question")||this.Z.setAttribute("aria-label",H),this.api.C().experiments.Nc("fix_h5_toggle_button_a11y")&&this.B.setAttribute("aria-label",H))):g.Oi(this.yl,!1);z.defaultTooltip&&(Q.tooltipText=z.defaultTooltip,this.Z.hasAttribute("aria-label")||this.B.setAttribute("aria-label",z.defaultTooltip));z.defaultIcon?(H=sc(z.defaultIcon),this.updateValue("untoggledIconTemplateSpec",H),z.toggledIcon?(this.wh= +!0,H=sc(z.toggledIcon),this.updateValue("toggledIconTemplateSpec",H)):(g.Oi(this.U,!0),g.Oi(this.j,!1)),g.Oi(this.Z,!1)):g.Oi(this.B,!1);g.ra(Q)||this.update(Q);z.isToggled&&(g.X9(this.D,"ytp-ad-toggle-button-toggled"),this.toggleButton(z.isToggled));VR(this);this.X(this.element,"change",this.CL);this.show()}}; +g.S.onClick=function(Q){this.De.length>0&&(this.toggleButton(!this.isToggled()),this.CL());Ec.prototype.onClick.call(this,Q)}; +g.S.CL=function(){g.MP(this.D,"ytp-ad-toggle-button-toggled",this.isToggled());for(var Q=g.n(KxY(this,this.isToggled())),z=Q.next();!z.done;z=Q.next())z=z.value,this.layoutId?this.dh.executeCommand(z,this.layoutId):g.PT(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);VR(this)}; +g.S.clear=function(){this.hide()}; +g.S.toggleButton=function(Q){g.MP(this.D,"ytp-ad-toggle-button-toggled",Q);this.Z.checked=Q;VR(this)}; +g.S.isToggled=function(){return this.Z.checked};g.p(ds,I4);ds.prototype.j=function(Q){if(Array.isArray(Q)){Q=g.n(Q);for(var z=Q.next();!z.done;z=Q.next())z=z.value,z instanceof V98&&this.D(z)}};g.p(mX,Ec);g.S=mX.prototype;g.S.init=function(Q,z,H){Ec.prototype.init.call(this,Q,z,H);z.reasons?z.confirmLabel==null?g.PT(Error("AdFeedbackRenderer.confirmLabel was not set.")):(z.cancelLabel==null&&g.ax(Error("AdFeedbackRenderer.cancelLabel was not set.")),z.title==null&&g.ax(Error("AdFeedbackRenderer.title was not set.")),ka8(this,z)):g.PT(Error("AdFeedbackRenderer.reasons were not set."))}; +g.S.clear=function(){o4(this.j);o4(this.U);this.D.length=0;this.hide()}; +g.S.hide=function(){this.Z&&this.Z.hide();this.B&&this.B.hide();Ec.prototype.hide.call(this);this.L&&this.L.focus()}; +g.S.show=function(){this.Z&&this.Z.show();this.B&&this.B.show();this.L=document.activeElement;Ec.prototype.show.call(this);this.j.focus()}; +g.S.n1=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; +g.S.YjI=function(){this.hide()}; +ws.prototype.ai=function(){return this.Z.element}; +ws.prototype.getCommand=function(){return this.B}; +ws.prototype.isChecked=function(){return this.L.checked};g.p(kj,Dv);kj.prototype.vW=function(Q){Dv.prototype.vW.call(this,Q);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; +kj.prototype.RC=function(Q){Dv.prototype.RC.call(this,Q);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; +kj.prototype.JS=function(Q){Dv.prototype.JS.call(this,Q);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.p(T8,Ec);g.S=T8.prototype; +g.S.init=function(Q,z,H){Ec.prototype.init.call(this,Q,z,H);this.j=z;if(z.dialogMessage==null&&z.title==null)g.PT(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{z.confirmLabel==null&&g.ax(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(Q=z.closeOverlayRenderer&&g.K(z.closeOverlayRenderer,g.Pc)||null)this.Z=new Bf(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), +g.W(this,this.Z),this.Z.init(SE("button"),Q,this.macros),this.Z.Gv(this.element);z.title&&(Q=g.na(z.title),this.updateValue("title",Q));if(z.adReasons)for(Q=z.adReasons,H=0;H=this.jm?(this.wh.hide(),this.iT=!0,this.publish("i")):this.L&&this.L.isTemplated()&&(Q=Math.max(0,Math.ceil((this.jm-Q)/1E3)),Q!=this.C3&&(Rv(this.L,{TIME_REMAINING:String(Q)}),this.C3=Q)))}};g.p(uA,Q_);g.S=uA.prototype; +g.S.init=function(Q,z,H){Q_.prototype.init.call(this,Q,z,H);if(z.image&&z.image.thumbnail)if(z.headline)if(z.description)if((Q=z.actionButton&&g.K(z.actionButton,g.Pc))&&Q.navigationEndpoint){var f=this.api.getVideoData(2);if(f!=null)if(z.image&&z.image.thumbnail){var b=z.image.thumbnail.thumbnails;b!=null&&b.length>0&&g.Fx(g.Q4(b[0].url))&&(b[0].url=f.profilePicture)}else g.ax(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.L.init(SE("ad-image"),z.image,H);this.j.init(SE("ad-text"), +z.headline,H);this.D.init(SE("ad-text"),z.description,H);this.B.init(SE("button"),Q,H);H=wN(this.B.element);ms(this.B.element,H+" This link opens in new tab");this.wh=Q.navigationEndpoint;this.api.Fv()||this.show();this.api.C().V("enable_larger_flyout_cta_on_desktop")&&(this.Mc("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.Mc("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.Mc("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"), +this.Mc("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.Mc("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.Mc("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.B.element.classList.add("ytp-flyout-cta-action-button-large"),this.B.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.Mc("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large")); +this.api.addEventListener("playerUnderlayVisibilityChange",this.ub.bind(this));this.yl=z.startMs||0;zS(this)}else g.PT(Error("FlyoutCtaRenderer has no valid action button."));else g.PT(Error("FlyoutCtaRenderer has no description AdText."));else g.PT(Error("FlyoutCtaRenderer has no headline AdText."));else g.ax(Error("FlyoutCtaRenderer has no image."))}; +g.S.onClick=function(Q){Q_.prototype.onClick.call(this,Q);this.api.pauseVideo();!g.vx(this.B.element,Q.target)&&this.wh&&(this.layoutId?this.dh.executeCommand(this.wh,this.layoutId):g.PT(Error("Missing layoutId for flyout cta.")))}; +g.S.ND=function(){if(this.Z){var Q=this.Z.getProgressState();(Q&&Q.current||this.jm)&&1E3*Q.current>=this.yl&&(H6(this),g.yM(this.element,"ytp-flyout-cta-inactive"),this.B.element.removeAttribute("tabIndex"))}}; +g.S.Is=function(){this.clear()}; +g.S.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.ub.bind(this))}; +g.S.show=function(){this.B&&this.B.show();Q_.prototype.show.call(this)}; +g.S.hide=function(){this.B&&this.B.hide();Q_.prototype.hide.call(this)}; +g.S.ub=function(Q){Q=="hidden"?this.show():this.hide()};g.p(Sh,Ec);g.S=Sh.prototype; +g.S.init=function(Q,z,H){Ec.prototype.init.call(this,Q,z,H);this.Z=z;if(this.Z.rectangle)for(Q=this.Z.likeButton&&g.K(this.Z.likeButton,Go),z=this.Z.dislikeButton&&g.K(this.Z.dislikeButton,Go),this.L.init(SE("toggle-button"),Q,H),this.B.init(SE("toggle-button"),z,H),this.X(this.element,"change",this.Io),this.D.show(100),this.show(),H=g.n(this.Z&&this.Z.impressionCommands||[]),Q=H.next();!Q.done;Q=H.next())Q=Q.value,this.layoutId?this.dh.executeCommand(Q,this.layoutId):g.PT(Error("Missing layoutId for instream user sentiment."))}; +g.S.clear=function(){this.hide()}; +g.S.hide=function(){this.L.hide();this.B.hide();Ec.prototype.hide.call(this)}; +g.S.show=function(){this.L.show();this.B.show();Ec.prototype.show.call(this)}; +g.S.Io=function(){PW6(this.element,"ytp-ad-instream-user-sentiment-selected");this.Z.postMessageAction&&this.api.F$("onYtShowToast",this.Z.postMessageAction);this.D.hide()}; +g.S.onClick=function(Q){this.De.length>0&&this.Io();Ec.prototype.onClick.call(this,Q)};g.p(XS,g.h);g.S=XS.prototype;g.S.zv=function(){this.reset();g.h.prototype.zv.call(this)}; +g.S.reset=function(){g.YQ(this.D);this.j=!1;this.Z&&this.Z.stop();this.S.stop();this.L&&(this.L=!1,this.Y.play())}; +g.S.start=function(){this.reset();this.D.X(this.B,"mouseover",this.FZ,this);this.D.X(this.B,"mouseout",this.Nh,this);this.Ze&&(this.D.X(this.B,"focusin",this.FZ,this),this.D.X(this.B,"focusout",this.Nh,this));this.Z?this.Z.start():(this.j=this.L=!0,g.M2(this.B,{opacity:this.U}))}; +g.S.FZ=function(){this.L&&(this.L=!1,this.Y.play());this.S.stop();this.Z&&this.Z.stop()}; +g.S.Nh=function(){this.j?this.S.start():this.Z&&this.Z.start()}; +g.S.ql=function(){this.L||(this.L=!0,this.N.play(),this.j=!0)};var S5v=[new v6("b.f_",!1,0),new v6("j.s_",!1,2),new v6("r.s_",!1,4),new v6("e.h_",!1,6),new v6("i.s_",!0,8),new v6("s.t_",!1,10),new v6("p.h_",!1,12),new v6("s.i_",!1,14),new v6("f.i_",!1,16),new v6("a.b_",!1,18),new v6("a.o_",!1),new v6("g.o_",!1,22),new v6("p.i_",!1,24),new v6("p.m_",!1),new v6("n.k_",!0,20),new v6("i.f_",!1),new v6("a.s_",!0),new v6("m.c_",!1),new v6("n.h_",!1,26),new v6("o.p_",!1)].reduce(function(Q,z){Q[z.B]=z;return Q},{});g.p(np,Q_);g.S=np.prototype; +g.S.init=function(Q,z,H){Q_.prototype.init.call(this,Q,z,H);this.wh=z;(this.yl=vCZ(this))&&g.ax(Error("hasAdControlInClickCommands_ is true."));if(!z||g.ra(z))g.PT(Error("SkipButtonRenderer was not specified or empty."));else if(!z.message||g.ra(z.message))g.PT(Error("SkipButtonRenderer.message was not specified or empty."));else{Q=this.j?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"};z=sc(Q);z==null?g.PT(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+Q.iconType+".")): +(this.D=new g.tB({G:"button",lT:[this.j?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],W:[{G:"span",J:this.j?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",W:[z]}]}),g.W(this,this.D),this.D.Gv(this.L.element),this.B=new lI(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,"ytp-ad-skip-button-text"),this.j&&this.B.element.classList.add("ytp-ad-skip-button-text-centered"),this.B.init(SE("ad-text"),this.wh.message,H),g.W(this,this.B),Sz(this.D.element,this.B.element, +0));var f=f===void 0?null:f;H=this.api.C();!(this.De.length>0)&&H.B&&(jN?0:"ontouchstart"in document.documentElement&&(Il9()||G9()))&&(this.DS(this.rT),f&&this.DS(f),this.De=[this.X(this.element,"touchstart",this.onTouchStart,this),this.X(this.element,"touchmove",this.onTouchMove,this),this.X(this.element,"touchend",this.onTouchEnd,this)])}}; +g.S.clear=function(){this.jm.reset();this.hide()}; +g.S.hide=function(){this.L.hide();this.B&&this.B.hide();H6(this);Q_.prototype.hide.call(this)}; +g.S.onClick=function(Q){if(this.D!=null){if(Q){var z=Q||window.event;z.returnValue=!1;z.preventDefault&&z.preventDefault()}var H;if(Lu6(Q,{contentCpn:((H=this.api.getVideoData(1))==null?void 0:H.clientPlaybackNonce)||""})===0)this.api.F$("onAbnormalityDetected");else if(Q_.prototype.onClick.call(this,Q),this.publish("j"),this.api.F$("onAdSkip"),this.iT||!this.yl)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; +g.S.dL=function(Q){if(!this.iT)return this.yl&&Cp("SkipButton click commands not pruned while ALC exist"),Q;var z,H=(z=g.K(Q,g.gU))==null?void 0:z.commands;if(!H)return Q;Q=[];for(z=0;z=this.j&&y$9(this,!0)};g.p(GS,Bf);GS.prototype.init=function(Q,z,H){Bf.prototype.init.call(this,Q,z,H);Q=!1;z.text!=null&&(Q=g.na(z.text),Q=!g.Fx(Q));Q?z.navigationEndpoint==null?g.ax(Error("No visit advertiser clickthrough provided in renderer,")):z.style!=="STYLE_UNKNOWN"?g.ax(Error("Button style was not a link-style type in renderer,")):this.show():g.ax(Error("No visit advertiser text was present in the renderer."))};g.p($U,Ec); +$U.prototype.init=function(Q,z,H){Ec.prototype.init.call(this,Q,z,H);Q=z.text;g.Fx(pa(Q))?g.ax(Error("SimpleAdBadgeRenderer has invalid or empty text")):(Q&&Q.text&&(z=Q.text,this.L&&!this.B&&(z=this.api.C(),z=Q.text+" "+(z&&z.B?"\u2022":"\u00b7")),z={text:z,isTemplated:Q.isTemplated},Q.style&&(z.style=Q.style),Q.targetId&&(z.targetId=Q.targetId),Q=new lI(this.api,this.layoutId,this.interactionLoggingClientData,this.dh),Q.init(SE("simple-ad-badge"),z,H),Q.Gv(this.element),g.W(this,Q)),this.show())}; +$U.prototype.clear=function(){this.hide()};g.p(jh,Xp);g.p(FS,g.vf);g.S=FS.prototype;g.S.Uk=function(){return this.durationMs}; +g.S.stop=function(){this.Z&&this.Hc.DS(this.Z)}; +g.S.A7=function(Q){this.B={seekableStart:0,seekableEnd:this.durationMs/1E3,current:Q.current};this.publish("h")}; +g.S.getProgressState=function(){return this.B}; +g.S.w6=function(Q){g.pp(Q,2)&&this.publish("g")};g.p(xU,g.vf);g.S=xU.prototype;g.S.Uk=function(){return this.durationMs}; +g.S.start=function(){this.Z||(this.Z=!0,this.hM.start())}; +g.S.stop=function(){this.Z&&(this.Z=!1,this.hM.stop())}; +g.S.A7=function(){this.rS+=100;var Q=!1;this.rS>this.durationMs&&(this.rS=this.durationMs,this.hM.stop(),Q=!0);this.B={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.rS/1E3};this.publish("h");Q&&this.publish("g")}; +g.S.getProgressState=function(){return this.B};g.p(JT,Q_);g.S=JT.prototype;g.S.init=function(Q,z,H){Q_.prototype.init.call(this,Q,z,H);var f;if(z==null?0:(f=z.templatedCountdown)==null?0:f.templatedAdText){Q=z.templatedCountdown.templatedAdText;if(!Q.isTemplated){g.ax(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.B=new lI(this.api,this.layoutId,this.interactionLoggingClientData,this.dh);this.B.init(SE("ad-text"),Q,{});this.B.Gv(this.element);g.W(this,this.B)}this.show()}; +g.S.clear=function(){this.hide()}; +g.S.hide=function(){H6(this);Q_.prototype.hide.call(this)}; +g.S.Is=function(){this.hide()}; +g.S.ND=function(){if(this.Z!=null){var Q=this.Z.getProgressState();if(Q!=null&&Q.current!=null&&this.B){var z=this.Z instanceof FS?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:Q.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.Z instanceof xU?Q.seekableEnd:this.api.getDuration(2,!1);Q=Q.current;var H,f,b=((H=this.api.getVideoData())==null?0:(f=H.OZ)==null?0:f.call(H))?Math.max(z-Q,0):z-Q;Rv(this.B,{FORMATTED_AD_DURATION_REMAINING:String(g.Ox(b)), +TIME_REMAINING:String(Math.ceil(b))})}}}; +g.S.show=function(){zS(this);Q_.prototype.show.call(this)};g.p(NZ,lI);NZ.prototype.onClick=function(Q){lI.prototype.onClick.call(this,Q);this.api.onAdUxClicked(this.componentType)};g.p(AT,Ec);AT.prototype.init=function(Q,z){Ec.prototype.init.call(this,Q,z,{});if(Q=z.content){g.yp(this.element,Q);var H,f;z=((H=z.interaction)==null?void 0:(f=H.accessibility)==null?void 0:f.label)||Q;this.element.setAttribute("aria-label",z)}else g.PT(Error("AdSimpleAttributedString does not have text content"))}; +AT.prototype.clear=function(){this.hide()}; +AT.prototype.onClick=function(Q){Ec.prototype.onClick.call(this,Q)};g.p(YU,Ec); +YU.prototype.init=function(Q,z){Ec.prototype.init.call(this,Q,z,{});(Q=z.label)&&Q.content&&!g.Fx(Q.content)?(this.adBadgeText.init(SE("ad-simple-attributed-string"),new IQ(Q)),(z=z.adPodIndex)&&z.content&&!g.Fx(z.content)&&(this.Z=new AT(this.api,this.layoutId,this.interactionLoggingClientData,this.dh),this.Z.Gv(this.element),g.W(this,this.Z),this.Z.element.classList.add("ytp-ad-badge__pod-index"),this.Z.init(SE("ad-simple-attributed-string"),new IQ(z))),this.element.classList.add(this.B?"ytp-ad-badge--stark-clean-player": +"ytp-ad-badge--stark"),this.show()):g.PT(Error("No label is returned in AdBadgeViewModel."))}; +YU.prototype.show=function(){this.adBadgeText.show();var Q;(Q=this.Z)==null||Q.show();Ec.prototype.show.call(this)}; +YU.prototype.hide=function(){this.adBadgeText.hide();var Q;(Q=this.Z)==null||Q.hide();Ec.prototype.hide.call(this)};g.p(rU,Ec); +rU.prototype.init=function(Q,z){Ec.prototype.init.call(this,Q,z,{});(Q=z.adPodIndex)&&Q.content&&!g.Fx(Q.content)&&(this.Z=new AT(this.api,this.layoutId,this.interactionLoggingClientData,this.dh),this.Z.Gv(this.element),g.W(this,this.Z),this.Z.init(SE("ad-simple-attributed-string"),new IQ(Q)),(this.api.C().V("clean_player_style_fix_on_web")?z.visibilityCondition==="AD_POD_INDEX_VISIBILITY_CONDITION_AUTOHIDE":!this.B||z.visibilityCondition!=="AD_POD_INDEX_VISIBILITY_CONDITION_ALWAYS_SHOW_IF_NONSKIPPABLE")&&this.element.classList.add("ytp-ad-pod-index--autohide")); +this.element.classList.add("ytp-ad-pod-index--stark");this.api.V("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-ad-pod-index--stark-with-light-shadow");this.show()}; +rU.prototype.show=function(){var Q;(Q=this.Z)==null||Q.show();Ec.prototype.show.call(this)}; +rU.prototype.hide=function(){var Q;(Q=this.Z)==null||Q.hide();Ec.prototype.hide.call(this)};g.p(sx,Ec); +sx.prototype.init=function(Q,z){Ec.prototype.init.call(this,Q,z,{});if(z!=null&&z.text){var H;if(((H=z.text)==null?0:H.content)&&!g.Fx(z.text.content)){this.Z=new g.tB({G:"div",J:"ytp-ad-disclosure-banner__text",BI:z.text.content});g.W(this,this.Z);this.Z.Gv(this.element);var f,b;Q=((f=z.interaction)==null?void 0:(b=f.accessibility)==null?void 0:b.label)||z.text.content;this.element.setAttribute("aria-label",Q);var L;if((L=z.interaction)==null?0:L.onTap)this.B=new g.tB({G:"div",J:"ytp-ad-disclosure-banner__chevron",W:[g.jE()]}), +g.W(this,this.B),this.B.Gv(this.element);this.show()}}else g.PT(Error("No banner text found in AdDisclosureBanner."))}; +sx.prototype.clear=function(){this.hide()};B6.prototype.getLength=function(){return this.Z-this.B};g.p(aQ,g.tB);aQ.prototype.A7=function(){var Q=this.B.getProgressState(),z=Q.seekableEnd;this.api.getPresentingPlayerType()===2&&this.api.C().V("show_preskip_progress_bar_for_skippable_ads")&&(z=this.L?this.L/1E3:Q.seekableEnd);Q=P6(new B6(Q.seekableStart,z),Q.current,0);this.progressBar.style.width=Q*100+"%"}; +aQ.prototype.onStateChange=function(){g.rm(this.api.C())||(this.api.getPresentingPlayerType()===2?this.Z===-1&&(this.show(),this.Z=this.B.subscribe("h",this.A7,this),this.A7()):this.Z!==-1&&(this.hide(),this.B.NP(this.Z),this.Z=-1))};g.p(Ux,Ec); +Ux.prototype.init=function(Q,z,H,f){Ec.prototype.init.call(this,Q,z,H);H=!0;if(z.skipOrPreviewRenderer){if(Q=g.K(z.skipOrPreviewRenderer,L6)){var b=new Zh(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,this.B,this.U);b.Gv(this.mq);b.init(SE("skip-button"),Q,this.macros);g.W(this,b)}if(Q=g.K(z.skipOrPreviewRenderer,L6)){H=!1;var L=Q.skipOffsetMilliseconds}}z.brandInteractionRenderer&&(Q=z.brandInteractionRenderer.brandInteractionRenderer,b=new Sh(this.api,this.layoutId,this.interactionLoggingClientData, +this.dh),b.Gv(this.yl),b.init(SE("instream-user-sentiment"),Q,this.macros),g.W(this,b));if(Q=g.K(z,Dss))if(Q=g.K(Q,Dss))b=new uA(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,this.B,!!z.showWithoutLinkedMediaLayout),g.W(this,b),b.Gv(this.j),b.init(SE("flyout-cta"),Q,this.macros);Q=(this.api.C().V("disable_ad_duration_remaining_for_instream_video_ads")||z.adPodIndex!==void 0)&&!1;f=f&&f.videoAdDurationSeconds;if(z.adBadgeRenderer){var u=z.adBadgeRenderer;b=g.K(u,K0);b!=null?(u=new YU(this.api, +this.layoutId,this.interactionLoggingClientData,this.dh,Q),g.W(this,u),u.Gv(this.Z),u.init(SE("ad-badge"),b,this.macros),this.L=u.element):(b=u.simpleAdBadgeRenderer,b==null&&(b={text:{text:"Ad",isTemplated:!1}}),u=new $U(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,!0),g.W(this,u),u.Gv(this.Z),u.init(SE("simple-ad-badge"),b,this.macros))}z.adPodIndex&&(b=g.K(z.adPodIndex,Rms),b!=null&&(H=new rU(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,H),g.W(this,H),H.Gv(this.Z), +H.init(SE("ad-pod-index"),b)));z.adDurationRemaining&&!z.showWithoutLinkedMediaLayout&&(H=z.adDurationRemaining.adDurationRemainingRenderer,H==null&&(H={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),f=new JT(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,this.B,f,Q),g.W(this,f),f.Gv(this.Z),f.init(SE("ad-duration-remaining"),H,this.macros),Q&&f.element.classList.add("ytp-ad-duration-remaining-autohide"));z.adInfoRenderer&&(f=g.K(z.adInfoRenderer, +sy))&&(H=new eE(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,this.element,void 0,Q),g.W(this,H),this.api.C().V("enable_ad_pod_index_autohide")&&this.L!==null?this.Z.insertBefore(H.element,this.L.nextSibling):H.Gv(this.Z),H.init(SE("ad-info-hover-text-button"),f,this.macros));z.visitAdvertiserRenderer&&(H=g.K(z.visitAdvertiserRenderer,g.Pc))&&(b=CS9(this)&&this.D?this.D:this.Z)&&(f=new GS(this.api,this.layoutId,this.interactionLoggingClientData,this.dh),g.W(this,f),f.Gv(b),f.init(SE("visit-advertiser"), +H,this.macros),VK(f.element),H=wN(f.element),ms(f.element,H+" This link opens in new tab"));!(f=this.api.C())||g.AE(f)||f.controlsType!="3"&&!f.disableOrganicUi||(L=new aQ(this.api,this.B,L,Q),L.Gv(this.jm),g.W(this,L));z.adDisclosureBannerRenderer&&(z=g.K(z.adDisclosureBannerRenderer,lLx))&&(L=new sx(this.api,this.layoutId,this.interactionLoggingClientData,this.dh),L.Gv(this.wh),L.init(SE("ad-disclosure-banner"),z),g.W(this,L));this.api.C().V("enable_updated_html5_player_focus_style")&&g.X9(this.element, +"ytp-ad-player-overlay-updated-focus-style");Q&&this.api.C().B&&this.Z.classList.add("ytp-ad-player-overlay-instream-info--clean-player-mweb");this.show()}; +Ux.prototype.clear=function(){this.hide()};W6.prototype.set=function(Q,z,H){H=H!==void 0?Date.now()+H:void 0;this.Z.set(Q,z,H)}; +W6.prototype.get=function(Q){return this.Z.get(Q)}; +W6.prototype.remove=function(Q){this.Z.remove(Q)};var dU=null,m5=null,wU=null,Zcc=null;g.D6("yt.www.ads.eventcache.getLastCompanionData",function(){return dU}); +g.D6("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); +g.D6("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return m5}); +g.D6("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return wU}); +g.D6("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return Zcc});var $R8=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);kU.prototype.handleResponse=function(Q,z){if(!z)throw Error("request needs to be passed into ConsistencyService");var H,f;z=((H=z.lz.context)==null?void 0:(f=H.request)==null?void 0:f.consistencyTokenJars)||[];var b;(Q=(b=Q.responseContext)==null?void 0:b.consistencyTokenJar)&&this.replace(z,Q)}; +kU.prototype.replace=function(Q,z){Q=g.n(Q);for(var H=Q.next();!H.done;H=Q.next())delete this.Z[H.value.encryptedTokenJarContents];Fup(this,z)};var tX5=window.location.hostname.split(".").slice(-2).join("."),Ni;eh.getInstance=function(){Ni=g.Kn("yt.clientLocationService.instance");Ni||(Ni=new eh,g.D6("yt.clientLocationService.instance",Ni));return Ni}; +g.S=eh.prototype; +g.S.setLocationOnInnerTubeContext=function(Q){Q.client||(Q.client={});if(this.Z)Q.client.locationInfo||(Q.client.locationInfo={}),Q.client.locationInfo.latitudeE7=Math.floor(this.Z.coords.latitude*1E7),Q.client.locationInfo.longitudeE7=Math.floor(this.Z.coords.longitude*1E7),Q.client.locationInfo.horizontalAccuracyMeters=Math.round(this.Z.coords.accuracy),Q.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.L||this.locationPlayabilityToken)Q.client.locationPlayabilityToken=this.L|| +this.locationPlayabilityToken}; +g.S.handleResponse=function(Q){var z;Q=(z=Q.responseContext)==null?void 0:z.locationPlayabilityToken;Q!==void 0&&(this.locationPlayabilityToken=Q,this.Z=void 0,g.ey("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=TS(this))&&this.localStorage.set("yt-location-playability-token",Q,15552E3):g.c2("YT_CL",JSON.stringify({loctok:Q}),15552E3,tX5,!0))}; +g.S.clearLocationPlayabilityToken=function(Q){Q==="TVHTML5"?(this.localStorage=TS(this))&&this.localStorage.remove("yt-location-playability-token"):g.hF("YT_CL");this.L=void 0;this.B!==-1&&(clearTimeout(this.B),this.B=-1)}; +g.S.getCurrentPositionFromGeolocation=function(){var Q=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var z=!1,H=1E4;g.ey("INNERTUBE_CLIENT_NAME")==="MWEB"&&(z=!0,H=15E3);return new Promise(function(f,b){navigator.geolocation.getCurrentPosition(function(L){Q.Z=L;f(L)},function(L){b(L)},{enableHighAccuracy:z, +maximumAge:0,timeout:H})})}; +g.S.createUnpluggedLocationInfo=function(Q){var z={};Q=Q.coords;if(Q==null?0:Q.latitude)z.latitudeE7=Math.floor(Q.latitude*1E7);if(Q==null?0:Q.longitude)z.longitudeE7=Math.floor(Q.longitude*1E7);if(Q==null?0:Q.accuracy)z.locationRadiusMeters=Math.round(Q.accuracy);return z}; +g.S.createLocationInfo=function(Q){var z={};Q=Q.coords;if(Q==null?0:Q.latitude)z.latitudeE7=Math.floor(Q.latitude*1E7);if(Q==null?0:Q.longitude)z.longitudeE7=Math.floor(Q.longitude*1E7);return z};g.S=N2Z.prototype;g.S.contains=function(Q){return Object.prototype.hasOwnProperty.call(this.Z,Q)}; +g.S.get=function(Q){if(this.contains(Q))return this.Z[Q]}; +g.S.set=function(Q,z){this.Z[Q]=z}; +g.S.Im=function(){return Object.keys(this.Z)}; +g.S.remove=function(Q){delete this.Z[Q]};RQ.prototype.getModuleId=function(Q){return Q.serviceId.getModuleId()}; +RQ.prototype.get=function(Q){a:{var z=this.mappings.get(Q.toString());switch(z.type){case "mapping":Q=z.value;break a;case "factory":z=z.value();this.mappings.set(Q.toString(),{type:"mapping",value:z});Q=z;break a;default:Q=LS(z)}}return Q}; +RQ.prototype.registerService=function(Q,z){this.mappings.set(Q.toString(),{type:"mapping",value:z});return Q}; +new RQ;var IS={},Ig6=(IS.WEB_UNPLUGGED="^unplugged/",IS.WEB_UNPLUGGED_ONBOARDING="^unplugged/",IS.WEB_UNPLUGGED_OPS="^unplugged/",IS.WEB_UNPLUGGED_PUBLIC="^unplugged/",IS.WEB_CREATOR="^creator/",IS.WEB_KIDS="^kids/",IS.WEB_EXPERIMENTS="^experiments/",IS.WEB_MUSIC="^music/",IS.WEB_REMIX="^music/",IS.WEB_MUSIC_EMBEDDED_PLAYER="^music/",IS.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",IS);HC.prototype.S=function(Q,z,H){z=z===void 0?{}:z;H=H===void 0?t$:H;var f={context:g.lA(Q.clickTrackingParams,!1,this.D)};var b=this.B(Q);if(b){this.Z(f,b,z);var L;z=g.zv(this.L());(b=(L=g.K(Q.commandMetadata,g.ZX))==null?void 0:L.apiUrl)&&(z=b);L=O5n(W2(z));Q=Object.assign({},{command:Q},void 0);f={input:L,ZW:DK(L),lz:f,config:Q};f.config.k9?f.config.k9.identity=H:f.config.k9={identity:H};return f}g.PT(new g.kQ("Error: Failed to create Request from Command.",Q))}; +g.y9.Object.defineProperties(HC.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!1}}}); +g.p(fj,HC);g.p(bb,fj);bb.prototype.S=function(){return{input:"/getDatasyncIdsEndpoint",ZW:DK("/getDatasyncIdsEndpoint","GET"),lz:{}}}; +bb.prototype.L=function(){return[]}; +bb.prototype.B=function(){}; +bb.prototype.Z=function(){};var Ets={},vkA=(Ets.GET_DATASYNC_IDS=Qv(bb),Ets);var Ag={},pos=(Ag["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",Ag["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",Ag["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",Ag["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",Ag["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",Ag["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",Ag["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", +Ag["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",Ag["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",Ag["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",Ag["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",Ag["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",Ag["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",Ag["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",Ag["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", +Ag["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",Ag["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",Ag["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",Ag["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",Ag["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",Ag["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",Ag["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", +Ag["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",Ag.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",Ag["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",Ag["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",Ag["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",Ag["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",Ag["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",Ag["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", +Ag["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",Ag["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",Ag["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",Ag["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",Ag["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",Ag["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",Ag["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",Ag["dialog.copyright_strikes"]= +"LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",Ag["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",Ag["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",Ag.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",Ag["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",Ag["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",Ag["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",Ag["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",Ag["owner.asset_groups"]= +"LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",Ag["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",Ag["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",Ag["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",Ag["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",Ag["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",Ag["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",Ag["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",Ag["owner.delivery"]= +"LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",Ag["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",Ag["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",Ag["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",Ag["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",Ag["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",Ag["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",Ag["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",Ag["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", +Ag["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",Ag["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",Ag["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",Ag["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",Ag["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",Ag["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",Ag["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",Ag["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",Ag["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", +Ag["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",Ag["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",Ag["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",Ag["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",Ag["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",Ag["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",Ag["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",Ag["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", +Ag),Y8={},agv=(Y8.auto_search="LATENCY_ACTION_AUTO_SEARCH",Y8.ad_to_ad="LATENCY_ACTION_AD_TO_AD",Y8.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",Y8.app_startup="LATENCY_ACTION_APP_STARTUP",Y8.browse="LATENCY_ACTION_BROWSE",Y8.cast_splash="LATENCY_ACTION_CAST_SPLASH",Y8.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",Y8.channels="LATENCY_ACTION_CHANNELS",Y8.chips="LATENCY_ACTION_CHIPS",Y8.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",Y8.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", +Y8.editor="LATENCY_ACTION_EDITOR",Y8.embed="LATENCY_ACTION_EMBED",Y8.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",Y8.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",Y8.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",Y8.explore="LATENCY_ACTION_EXPLORE",Y8.favorites="LATENCY_ACTION_FAVORITES",Y8.home="LATENCY_ACTION_HOME",Y8.inboarding="LATENCY_ACTION_INBOARDING",Y8.library="LATENCY_ACTION_LIBRARY",Y8.live="LATENCY_ACTION_LIVE",Y8.live_pagination= +"LATENCY_ACTION_LIVE_PAGINATION",Y8.management="LATENCY_ACTION_MANAGEMENT",Y8.mini_app="LATENCY_ACTION_MINI_APP_PLAY",Y8.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",Y8.onboarding="LATENCY_ACTION_ONBOARDING",Y8.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",Y8.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",Y8.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",Y8.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",Y8.prebuffer="LATENCY_ACTION_PREBUFFER", +Y8.prefetch="LATENCY_ACTION_PREFETCH",Y8.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",Y8.profile_switcher="LATENCY_ACTION_LOGIN",Y8.projects="LATENCY_ACTION_PROJECTS",Y8.reel_watch="LATENCY_ACTION_REEL_WATCH",Y8.results="LATENCY_ACTION_RESULTS",Y8.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",Y8.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",Y8.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",Y8.review="LATENCY_ACTION_REVIEW",Y8.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER", +Y8.search_ui="LATENCY_ACTION_SEARCH_UI",Y8.search_suggest="LATENCY_ACTION_SUGGEST",Y8.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",Y8.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",Y8.seek="LATENCY_ACTION_PLAYER_SEEK",Y8.settings="LATENCY_ACTION_SETTINGS",Y8.store="LATENCY_ACTION_STORE",Y8.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",Y8.tenx="LATENCY_ACTION_TENX",Y8.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",Y8.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",Y8.watch="LATENCY_ACTION_WATCH", +Y8.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",Y8["watch,watch7"]="LATENCY_ACTION_WATCH",Y8["watch,watch7_html5"]="LATENCY_ACTION_WATCH",Y8["watch,watch7ad"]="LATENCY_ACTION_WATCH",Y8["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",Y8.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",Y8.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",Y8.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",Y8.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",Y8.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE", +Y8.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",Y8.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",Y8.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",Y8);Object.assign(agv,pos);g.p(xx,E5);var ewn=new pc("aft-recorded",xx);var ntO=g.W_.ytLoggingGelSequenceIdObj_||{};g.D6("ytLoggingGelSequenceIdObj_",ntO);var JN=g.W_.ytLoggingLatencyUsageStats_||{};g.D6("ytLoggingLatencyUsageStats_",JN);OS.prototype.tick=function(Q,z,H,f){Nq(this,"tick_"+Q+"_"+z)||g.qV("latencyActionTicked",{tickName:Q,clientActionNonce:z},{timestamp:H,cttAuthInfo:f})}; +OS.prototype.info=function(Q,z,H){var f=Object.keys(Q).join("");Nq(this,"info_"+f+"_"+z)||(Q=Object.assign({},Q),Q.clientActionNonce=z,g.qV("latencyActionInfo",Q,{cttAuthInfo:H}))}; +OS.prototype.jspbInfo=function(Q,z,H){for(var f="",b=0;b=b.length?(z.append(b),Q-=b.length):Q?(z.append(new Uint8Array(b.buffer,b.byteOffset,Q)),H.append(new Uint8Array(b.buffer,b.byteOffset+Q,b.length-Q)),Q=0):H.append(b);return{Qb:z,TO:H}}; +g.S.isFocused=function(Q){return Q>=this.P7&&Q=64&&(this.j.set(Q.subarray(0,64-this.B),this.B),z=64-this.B,this.B=0,T66(this,this.j,0));for(;z+64<=H;z+=64)T66(this,Q,z);z=this.start&&(Q=2&&H.ssdaiAdsConfig&&Cp("Unexpected ad placement renderers length",Q.slot,null,{length:f.length});var b;((b=H.adSlots)==null?0:b.some(function(L){var u,X;return((u=g.K(L,cc))==null?void 0:(X=u.adSlotMetadata)==null?void 0:X.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||f.some(function(L){var u,X,v,y; +return!!((u=L.renderer)==null?0:(X=u.linearAdSequenceRenderer)==null?0:(v=X.linearAds)==null?0:v.length)||!((y=L.renderer)==null||!y.instreamVideoAdRenderer)})||tEL(Q)})}; +Sx.prototype.Us=function(){Qv8(this.Z)};X5.prototype.Lf=function(){var Q=this;Rta(this.B,function(){var z=LN(Q.slot.clientMetadata,"metadata_type_ad_break_request_data");return z.cueProcessedMs?Q.Z.get().fetch({YE:z.getAdBreakUrl,ip:new g.fi(z.ET,z.Ja),cueProcessedMs:z.cueProcessedMs}):Q.Z.get().fetch({YE:z.getAdBreakUrl,ip:new g.fi(z.ET,z.Ja)})})}; +X5.prototype.Us=function(){Qv8(this.B)};vD.prototype.Lf=function(){var Q=this.slot.clientMetadata,z,H=(z=this.slot.fulfilledLayout)!=null?z:LN(Q,"metadata_type_fulfilled_layout");rlv(this.callback,this.slot,H)}; +vD.prototype.Us=function(){g4(this.callback,this.slot,new e("Got CancelSlotFulfilling request for "+this.slot.slotType+" in DirectFulfillmentAdapter.",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_FULFILLMENT_CANCELLATION_REQUEST"),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")};qS.prototype.build=function(Q,z){return z.fulfilledLayout||yx(z,{q4:["metadata_type_fulfilled_layout"]})?new vD(Q,z):this.L(Q,z)};g.p(MS,qS); +MS.prototype.L=function(Q,z){if(yx(z,{q4:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new Sx(Q,z,this.Z,this.B,this.Oj,this.qc,this.Vl,this.K3,this.xN);if(yx(z,{q4:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new X5(Q,z,this.Z,this.B,this.Oj,this.qc);throw new e("Unsupported slot with type: "+z.slotType+" and client metadata: "+uY(z.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.p(Ci,qS);Ci.prototype.L=function(Q,z){throw new e("Unsupported slot with type: "+z.slotType+" and client metadata: "+uY(z.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.S=Ej_.prototype;g.S.hZ=function(){return this.slot}; +g.S.Ql=function(){return this.layout}; +g.S.init=function(){}; +g.S.release=function(){}; +g.S.startRendering=function(Q){if(Q.layoutId!==this.layout.layoutId)this.callback.HS(this.slot,Q,new fN("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED");else{var z=LN(Q.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.Fa(this.slot,Q),Y1Y(this.L, +this.slot,z)):Cp("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,Q)}}; +g.S.eA=function(Q,z){Q.layoutId!==this.layout.layoutId?this.callback.HS(this.slot,Q,new fN("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):(this.callback.kN(this.slot,Q,z),nj6(this),gj6(this))};g.p(gP,g.vf);g.S=gP.prototype;g.S.hZ=function(){return this.B.slot}; +g.S.Ql=function(){return this.B.layout}; +g.S.init=function(){this.L.get().addListener(this)}; +g.S.release=function(){this.L.get().removeListener(this);this.dispose()}; +g.S.wH=function(){}; +g.S.Ob=function(){}; +g.S.HM=function(){}; +g.S.Y1=function(){}; +g.S.startRendering=function(Q){var z=this;ni(this.B,Q,function(){return void z.Xn()})}; +g.S.Xn=function(){this.L.get().Xn(this.Z)}; +g.S.eA=function(Q,z){var H=this;ni(this.B,Q,function(){var f=H.L.get();rR8(f,H.Z,3);H.Z=[];H.callback.kN(H.slot,Q,z)})}; +g.S.zv=function(){this.L.Sm()||this.L.get().removeListener(this);g.vf.prototype.zv.call(this)}; +g.y9.Object.defineProperties(gP.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.B.slot}}, +layout:{configurable:!0,enumerable:!0,get:function(){return this.B.layout}}});JX.prototype.IJ=function(Q,z){z=z===void 0?!1:z;var H=(this.L.get(Q)||[]).concat();if(z=z&&jvp(Q)){var f=this.L.get(z);f&&H.push.apply(H,g.F(f))}AX(this,Q,H);this.Z.add(Q);z&&this.Z.add(z)}; +JX.prototype.CH=function(Q,z){z=z===void 0?!1:z;if(!this.Z.has(Q)){var H=z&&jvp(Q);H&&(z=!this.Z.has(H));this.IJ(Q,z)}};g.p(Oan,Xp);g.p(PD,gP);g.S=PD.prototype;g.S.L2=function(Q,z){jx("ads-engagement-panel-layout",Q,this.j.get().g7,this.Vl.get(),this.D,this.S,this.hZ(),this.Ql(),z)}; +g.S.startRendering=function(Q){G4(this.Ij,this.hZ(),this.Ql(),g.K(this.Ql().renderingContent,LY),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(z,H,f,b,L){return new Oan(z,H,f,b,L)},this.Z); +gP.prototype.startRendering.call(this,Q)}; +g.S.Fa=function(Q,z){this.S===z.layoutId&&(this.D===null?this.D=this.Vl.get().kV():Cp("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; +g.S.kN=function(){}; +g.S.iL=function(){}; +g.S.AF=function(){}; +g.S.lW=function(){}; +g.S.je=function(){}; +g.S.l2=function(){}; +g.S.SU=function(){}; +g.S.fA=function(){}; +g.S.OX=function(){}; +g.S.DY=function(){}; +g.S.vS=function(){}; +g.S.zv=function(){pN(this.r4(),this);gP.prototype.zv.call(this)};g.p(JBn,Xp);g.p(ah,gP);g.S=ah.prototype;g.S.L2=function(Q,z){jx("banner-image",Q,this.j.get().g7,this.Vl.get(),this.D,this.S,this.hZ(),this.Ql(),z)}; +g.S.startRendering=function(Q){G4(this.Ij,this.hZ(),this.Ql(),g.K(this.Ql().renderingContent,fY),this.callback,"metadata_type_banner_image_layout_view_model",function(z,H,f,b,L){return new JBn(z,H,f,b,L)},this.Z); +gP.prototype.startRendering.call(this,Q)}; +g.S.Fa=function(Q,z){this.S===z.layoutId&&(this.D===null?this.D=this.Vl.get().kV():Cp("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; +g.S.kN=function(){}; +g.S.iL=function(){}; +g.S.AF=function(){}; +g.S.lW=function(){}; +g.S.je=function(){}; +g.S.l2=function(){}; +g.S.SU=function(){}; +g.S.fA=function(){}; +g.S.OX=function(){}; +g.S.DY=function(){}; +g.S.vS=function(){}; +g.S.zv=function(){pN(this.r4(),this);gP.prototype.zv.call(this)};g.p(UB,Xp);g.p(cD,gP);g.S=cD.prototype;g.S.L2=function(Q,z){jx("action-companion",Q,this.j.get().g7,this.Vl.get(),this.D,this.S,this.hZ(),this.Ql(),z)}; +g.S.startRendering=function(Q){G4(this.Ij,this.hZ(),this.Ql(),g.K(this.Ql().renderingContent,Qb),this.callback,"metadata_type_action_companion_ad_renderer",function(z,H,f,b,L){return new UB(z,H,f,b,L)},this.Z); +gP.prototype.startRendering.call(this,Q)}; +g.S.Fa=function(Q,z){z.layoutId===this.layout.layoutId?this.Ij.CH("impression"):this.S===z.layoutId&&(this.D===null?this.D=this.Vl.get().kV():Cp("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; +g.S.kN=function(){}; +g.S.iL=function(){}; +g.S.AF=function(){}; +g.S.lW=function(){}; +g.S.je=function(){}; +g.S.l2=function(){}; +g.S.SU=function(){}; +g.S.fA=function(){}; +g.S.OX=function(){}; +g.S.DY=function(){}; +g.S.vS=function(){}; +g.S.zv=function(){pN(this.r4(),this);gP.prototype.zv.call(this)};g.p(ABu,Xp);g.p(ic,gP);g.S=ic.prototype;g.S.L2=function(Q,z){jx("image-companion",Q,this.j.get().g7,this.Vl.get(),this.D,this.S,this.hZ(),this.Ql(),z)}; +g.S.startRendering=function(Q){G4(this.Ij,this.hZ(),this.Ql(),g.K(this.Ql().renderingContent,zC),this.callback,"metadata_type_image_companion_ad_renderer",function(z,H,f,b,L){return new ABu(z,H,f,b,L)},this.Z); +gP.prototype.startRendering.call(this,Q)}; +g.S.Fa=function(Q,z){z.layoutId===this.layout.layoutId?this.Ij.CH("impression"):this.S===z.layoutId&&(this.D===null?this.D=this.Vl.get().kV():Cp("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; +g.S.kN=function(){}; +g.S.iL=function(){}; +g.S.AF=function(){}; +g.S.lW=function(){}; +g.S.je=function(){}; +g.S.l2=function(){}; +g.S.SU=function(){}; +g.S.fA=function(){}; +g.S.OX=function(){}; +g.S.DY=function(){}; +g.S.vS=function(){}; +g.S.zv=function(){pN(this.r4(),this);gP.prototype.zv.call(this)};g.p(rBc,Xp);g.p(hX,gP);g.S=hX.prototype;g.S.L2=function(Q,z){jx("shopping-companion",Q,this.j.get().g7,this.Vl.get(),this.D,this.S,this.hZ(),this.Ql(),z)}; +g.S.startRendering=function(Q){G4(this.Ij,this.hZ(),this.Ql(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(z,H,f,b,L){return new rBc(z,H,f,b,L)},this.Z); +gP.prototype.startRendering.call(this,Q)}; +g.S.Fa=function(Q,z){z.layoutId===this.layout.layoutId?this.Ij.CH("impression"):this.S===z.layoutId&&(this.D===null?this.D=this.Vl.get().kV():Cp("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; +g.S.kN=function(){}; +g.S.iL=function(){}; +g.S.AF=function(){}; +g.S.lW=function(){}; +g.S.je=function(){}; +g.S.l2=function(){}; +g.S.SU=function(){}; +g.S.fA=function(){}; +g.S.OX=function(){}; +g.S.DY=function(){}; +g.S.vS=function(){}; +g.S.zv=function(){pN(this.r4(),this);gP.prototype.zv.call(this)};g.p(DI,gP);g.S=DI.prototype;g.S.startRendering=function(Q){G4(this.Ij,this.hZ(),this.Ql(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(z,H,f,b,L){return new UB(z,H,f,b,L)},this.Z); +gP.prototype.startRendering.call(this,Q)}; +g.S.Fa=function(){}; +g.S.kN=function(){}; +g.S.iL=function(){}; +g.S.AF=function(){}; +g.S.lW=function(){}; +g.S.je=function(){}; +g.S.l2=function(){}; +g.S.SU=function(){}; +g.S.fA=function(){}; +g.S.OX=function(){}; +g.S.DY=function(){}; +g.S.vS=function(){}; +g.S.zv=function(){pN(this.r4(),this);gP.prototype.zv.call(this)}; +g.S.L2=function(){};g.S=cBk.prototype;g.S.hZ=function(){return this.slot}; +g.S.Ql=function(){return this.layout}; +g.S.init=function(){this.K3.get().addListener(this);this.K3.get().XB.push(this);var Q=LN(this.layout.clientMetadata,"metadata_type_video_length_seconds"),z=LN(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");F5(this.layout.wT)&&zm(this.Bz.get(),this.layout.layoutId,{K8:z,Zj:Q,listener:this})}; +g.S.release=function(){this.K3.get().removeListener(this);oVv(this.K3.get(),this);F5(this.layout.wT)&&Hy(this.Bz.get(),this.layout.layoutId)}; +g.S.startRendering=function(Q){this.callback.Fa(this.slot,Q)}; +g.S.eA=function(Q,z){l8n(this.qc.get())&&!this.Z&&(this.Ij.CH("abandon"),this.Z=!0);this.callback.kN(this.slot,Q,z)}; +g.S.mW=function(Q){switch(Q.id){case "part2viewed":this.Ij.CH("start");this.Ij.CH("impression");break;case "videoplaytime25":this.Ij.CH("first_quartile");break;case "videoplaytime50":this.Ij.CH("midpoint");break;case "videoplaytime75":this.Ij.CH("third_quartile");break;case "videoplaytime100":l8n(this.qc.get())?this.Z||(this.Ij.CH("complete"),this.Z=!0):this.Ij.CH("complete");BD(this.Ij)&&rP(this.Ij,Infinity,!0);RiY(this.qc.get())&&WD(this.B,Infinity,!0);break;case "engagedview":BD(this.Ij)||this.Ij.CH("progress"); +break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:Cp("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; +g.S.onVolumeChange=function(){}; +g.S.FI=function(){}; +g.S.jU=function(){}; +g.S.Y3=function(){}; +g.S.onFullscreenToggled=function(){}; +g.S.JN=function(){}; +g.S.mS=function(){}; +g.S.Eo=function(Q){RiY(this.qc.get())&&WD(this.B,Q*1E3,!1);BD(this.Ij)&&rP(this.Ij,Q*1E3,!1)}; +g.S.vY=function(){}; +g.S.T4=function(){this.Ij.CH("active_view_measurable")}; +g.S.UA=function(){this.Ij.CH("active_view_viewable")}; +g.S.Wk=function(){this.Ij.CH("active_view_fully_viewable_audible_half_duration")}; +g.S.RQ=function(){this.Ij.CH("audio_measurable")}; +g.S.tV=function(){this.Ij.CH("audio_audible")};g.p(Ki,gP);g.S=Ki.prototype;g.S.init=function(){gP.prototype.init.call(this);var Q=LN(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),z={adsClientData:this.layout.cz};this.Z.push(new jh(Q,this.layout.layoutId,LN(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),z,!0))}; +g.S.iz=function(){this.D||this.K3.get().resumeVideo(1)}; +g.S.startRendering=function(Q){gP.prototype.startRendering.call(this,Q);vy(this.K3.get(),"ad-showing");this.callback.Fa(this.slot,Q);this.S.G0=this}; +g.S.eA=function(Q,z){gP.prototype.eA.call(this,Q,z);yB(this.K3.get(),"ad-showing");mH(this.S,this)}; +g.S.L2=function(Q){switch(Q){case "ad-info-icon-button":(this.D=this.K3.get().o4(1))||this.K3.get().pauseVideo();break;case "visit-advertiser":this.K3.get().pauseVideo()}}; +g.S.zv=function(){gP.prototype.zv.call(this)};g.p(Vx,Xp);g.p(dP,gP);g.S=dP.prototype;g.S.startRendering=function(Q){G4(this.Ij,this.hZ(),this.Ql(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(z,H,f,b,L){return new Vx(z,H,f,b,L)},this.Z); +gP.prototype.startRendering.call(this,Q)}; +g.S.Fa=function(){}; +g.S.kN=function(){}; +g.S.iL=function(){}; +g.S.AF=function(){}; +g.S.lW=function(){}; +g.S.je=function(){}; +g.S.l2=function(){}; +g.S.SU=function(){}; +g.S.fA=function(){}; +g.S.OX=function(){}; +g.S.DY=function(){}; +g.S.vS=function(){}; +g.S.zv=function(){pN(this.r4(),this);gP.prototype.zv.call(this)}; +g.S.L2=function(){};g.p(mJ,Xp);g.p(wP,gP);wP.prototype.init=function(){gP.prototype.init.call(this);this.Z.push(new mJ(g.K(this.layout.renderingContent,GC),this.layout.layoutId,{adsClientData:this.layout.cz}))}; +wP.prototype.L2=function(){J7(this.D.get(),this.S)&&$y(this.Vl.get(),3)}; +wP.prototype.startRendering=function(Q){gP.prototype.startRendering.call(this,Q);this.callback.Fa(this.slot,Q)}; +wP.prototype.zv=function(){gP.prototype.zv.call(this)};g.p(ky,Xp);g.p(T4,gP);T4.prototype.init=function(){gP.prototype.init.call(this);var Q=g.K(this.layout.renderingContent,vt)||LN(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),z=ZI(this.Ij);this.Z.push(new ky(Q,z,this.layout.layoutId,{adsClientData:this.layout.cz},!0,!0))}; +T4.prototype.startRendering=function(Q){gP.prototype.startRendering.call(this,Q);this.callback.Fa(this.slot,Q)}; +T4.prototype.L2=function(Q,z){if(z===this.layout.layoutId)switch(Q){case "skip-button":var H;(Q=(H=LN(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:H.current)&&Q.jW(this.hZ(),this.layout)}}; +T4.prototype.zv=function(){gP.prototype.zv.call(this)};lc.prototype.build=function(Q,z,H,f){if(ex(f,{q4:["metadata_type_ad_break_response_data"],tM:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new Ej_(Q,H,f,this.B,this.L,this.Z);throw new fN("Unsupported layout with type: "+f.layoutType+" and client metadata: "+uY(f.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.p(WXa,Xp);g.p(Rh,gP);g.S=Rh.prototype;g.S.L2=function(Q,z){jx("ads-engagement-panel",Q,this.j.get().g7,this.Vl.get(),this.D,this.S,this.hZ(),this.Ql(),z)}; +g.S.startRendering=function(Q){G4(this.Ij,this.hZ(),this.Ql(),g.K(this.Ql().renderingContent,Hc),this.callback,"metadata_type_ads_engagement_panel_renderer",function(z,H,f,b,L){return new WXa(z,H,f,b,L)},this.Z); +gP.prototype.startRendering.call(this,Q)}; +g.S.Fa=function(Q,z){z.layoutId===this.layout.layoutId?this.Ij.CH("impression"):this.S===z.layoutId&&(this.D===null?this.D=this.Vl.get().kV():Cp("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; +g.S.kN=function(){}; +g.S.iL=function(){}; +g.S.AF=function(){}; +g.S.lW=function(){}; +g.S.je=function(){}; +g.S.l2=function(){}; +g.S.SU=function(){}; +g.S.fA=function(){}; +g.S.OX=function(){}; +g.S.DY=function(){}; +g.S.vS=function(){}; +g.S.zv=function(){pN(this.r4(),this);gP.prototype.zv.call(this)};g.p(QQ,gP);g.S=QQ.prototype;g.S.L2=function(Q,z){jx("top-banner-image-text-icon-buttoned",Q,this.j.get().g7,this.Vl.get(),this.D,this.S,this.hZ(),this.Ql(),z)}; +g.S.startRendering=function(Q){G4(this.Ij,this.hZ(),this.Ql(),g.K(this.Ql().renderingContent,bg),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(z,H,f,b,L){return new Vx(z,H,f,b,L)},this.Z); +gP.prototype.startRendering.call(this,Q)}; +g.S.Fa=function(Q,z){this.S===z.layoutId&&(this.D===null?this.D=this.Vl.get().kV():Cp("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; +g.S.kN=function(){}; +g.S.iL=function(){}; +g.S.AF=function(){}; +g.S.lW=function(){}; +g.S.je=function(){}; +g.S.l2=function(){}; +g.S.SU=function(){}; +g.S.fA=function(){}; +g.S.OX=function(){}; +g.S.DY=function(){}; +g.S.vS=function(){}; +g.S.zv=function(){pN(this.r4(),this);gP.prototype.zv.call(this)};VEv.prototype.build=function(Q,z,H,f){if(ex(f,DtJ())||g.K(f.renderingContent,Hc)!==void 0)return new Rh(Q,H,f,this.ZS,this.Vl,this.r4,this.Bz,this.Z);if(ex(f,Iva())||g.K(f.renderingContent,Qb)!==void 0)return new cD(Q,H,f,this.ZS,this.Vl,this.r4,this.Bz,this.Z);if(ex(f,Yc6())||g.K(f.renderingContent,zC)!==void 0)return new ic(Q,H,f,this.ZS,this.Vl,this.r4,this.Bz,this.Z);if(ex(f,svv()))return new hX(Q,H,f,this.ZS,this.Vl,this.r4,this.Bz,this.Z);if(ex(f,Utp()))return new DI(Q,H,f,this.ZS,this.Vl,this.r4, +this.Bz,this.Z);if(ex(f,Nsu())||g.K(f.renderingContent,fY)!==void 0)return new ah(Q,H,f,this.ZS,this.Vl,this.r4,this.Bz,this.Z);if(ex(f,KX_())||g.K(f.renderingContent,bg)!==void 0)return new QQ(Q,H,f,this.ZS,this.Vl,this.r4,this.Bz,this.Z);if(ex(f,iac()))return new dP(Q,H,f,this.ZS,this.Vl,this.r4,this.Bz,this.Z);if(ex(f,ojA())||g.K(f.renderingContent,LY)!==void 0)return new PD(Q,H,f,this.ZS,this.Vl,this.r4,this.Bz,this.Z);throw new fN("Unsupported layout with type: "+f.layoutType+" and client metadata: "+ +uY(f.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};dt6.prototype.build=function(Q,z,H,f){if(ex(f,{q4:["metadata_type_linked_player_bytes_layout_id"],tM:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new wP(Q,H,f,this.ZS,this.Vl,this.Z);throw new fN("Unsupported layout with type: "+f.layoutType+" and client metadata: "+uY(f.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.S=mtL.prototype;g.S.hZ=function(){return this.slot}; +g.S.Ql=function(){return this.layout}; +g.S.init=function(){}; +g.S.release=function(){}; +g.S.startRendering=function(Q){Q.layoutId!==this.layout.layoutId?this.callback.HS(this.slot,Q,new fN("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.callback.Fa(this.slot,Q),this.Ij.CH("impression"),Vu(this.nE,Q,"normal"))}; +g.S.eA=function(Q,z){Q.layoutId!==this.layout.layoutId?this.callback.HS(this.slot,Q,new fN("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):this.callback.kN(this.slot,Q,z)};g.S=k8k.prototype;g.S.hZ=function(){return this.slot}; +g.S.Ql=function(){return this.layout}; +g.S.init=function(){}; +g.S.release=function(){}; +g.S.startRendering=function(Q){Q.layoutId!==this.layout.layoutId?this.callback.HS(this.slot,Q,new fN("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.callback.Fa(this.slot,Q),this.Ij.CH("impression"),Vu(this.nE,Q,"normal"))}; +g.S.eA=function(Q,z){Q.layoutId!==this.layout.layoutId?this.callback.HS(this.slot,Q,new fN("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):this.callback.kN(this.slot,Q,z)};zR.prototype.build=function(Q,z,H,f){if(!this.qc.get().K.C().V("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(ex(f,wfv()))return new mtL(Q,H,f,this.Vl,this.nE)}else if(ex(f,{q4:[],tM:["LAYOUT_TYPE_FORECASTING"]}))return new k8k(Q,H,f,this.Vl,this.nE);throw new fN("Unsupported layout with type: "+f.layoutType+" and client metadata: "+uY(f.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.p(lvA,Xp);g.p(Ht,gP);g.S=Ht.prototype;g.S.init=function(){gP.prototype.init.call(this);var Q=g.K(this.layout.renderingContent,XI)||LN(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),z={adsClientData:this.layout.cz};this.Z.push(new lvA(Q,LN(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,z))}; +g.S.iz=function(){this.D||this.K3.get().resumeVideo(2)}; +g.S.startRendering=function(Q){gP.prototype.startRendering.call(this,Q);this.callback.Fa(this.slot,Q);this.S.G0=this}; +g.S.eA=function(Q,z){gP.prototype.eA.call(this,Q,z);mH(this.S,this)}; +g.S.L2=function(Q){if(J7(this.j.get(),this.Y))switch(Q){case "visit-advertiser-link":$y(this.Vl.get(),3)}switch(Q){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.D||this.K3.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.D=this.K3.get().o4(2))||this.K3.get().pauseVideo();break;case "visit-advertiser-link":this.K3.get().pauseVideo();RIp(this).ZO();break;case "skip-button":if(Q=RIp(this), +this.layout.renderingContent&&!QJ(this.layout.clientMetadata,"metadata_type_dai")||!Q.Ua){var z;(Q=(z=LN(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:z.current)&&Q.jW(this.hZ(),this.layout)}else Cp("Requesting to skip by LegacyPlayerBytes when components enabled"),Q.Zf(this.hZ(),this.layout)}}; +g.S.zv=function(){gP.prototype.zv.call(this)};g.p(fG,gP);g.S=fG.prototype;g.S.init=function(){gP.prototype.init.call(this);var Q=g.K(this.layout.renderingContent,SM)||LN(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),z={adsClientData:this.layout.cz},H;(H=!!this.layout.renderingContent)||(H=!ba(this).Ua);this.Z.push(new jh(Q,this.layout.layoutId,LN(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),z,H))}; +g.S.iz=function(){this.D||this.K3.get().resumeVideo(2)}; +g.S.startRendering=function(Q){gP.prototype.startRendering.call(this,Q);this.callback.Fa(this.slot,Q);this.S.G0=this}; +g.S.eA=function(Q,z){gP.prototype.eA.call(this,Q,z);mH(this.S,this)}; +g.S.L2=function(Q){if(J7(this.j.get(),this.Y))switch(Q){case "visit-advertiser":$y(this.Vl.get(),3)}switch(Q){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.D||this.K3.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.D=this.K3.get().o4(2))||this.K3.get().pauseVideo();break;case "visit-advertiser":this.K3.get().pauseVideo();ba(this).ZO();break;case "skip-button":if(Q=ba(this),this.layout.renderingContent&& +!QJ(this.layout.clientMetadata,"metadata_type_dai")||!Q.Ua){var z;(Q=(z=LN(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:z.current)&&Q.jW(this.hZ(),this.layout)}else Cp("Requesting to skip by LegacyPlayerBytes"),Q.Zf(this.hZ(),this.layout)}}; +g.S.zv=function(){gP.prototype.zv.call(this)};g.p(zvv,Xp);g.p(LG,gP);g.S=LG.prototype;g.S.startRendering=function(Q){var z=this;ni(this.B,Q,function(){z.Z.push(new zvv(LN(z.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),Q.layoutId,Q.cz));z.Xn();z.callback.Fa(z.slot,Q);g.w(QB(z.K3.get(),1),512)&&z.callback.HS(z.hZ(),z.Ql(),new fN("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; +g.S.mS=function(){}; +g.S.JN=function(Q){if(Q.state.isError()){var z;this.callback.HS(this.hZ(),this.Ql(),new fN("A player error happened during adNotify",{playerErrorCode:(z=Q.state.WS)==null?void 0:z.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; +g.S.onFullscreenToggled=function(){}; +g.S.jU=function(){}; +g.S.Y3=function(){}; +g.S.FI=function(){}; +g.S.onVolumeChange=function(){}; +g.S.mW=function(){}; +g.S.vY=function(){}; +g.S.L2=function(){};g.p(fh_,Xp);g.p(ua,gP);ua.prototype.init=function(){gP.prototype.init.call(this);var Q=g.K(this.layout.renderingContent,yQ),z=ZI(this.Ij);this.Z.push(new fh_(Q,z,this.layout.layoutId,{adsClientData:this.layout.cz}))}; +ua.prototype.startRendering=function(Q){gP.prototype.startRendering.call(this,Q);this.callback.Fa(this.slot,Q)}; +ua.prototype.L2=function(Q,z){if(z===this.layout.layoutId)switch(Q){case "skip-button":var H;(Q=(H=LN(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:H.current)&&Q.jW(this.hZ(),this.layout)}}; +ua.prototype.zv=function(){gP.prototype.zv.call(this)};bpp.prototype.build=function(Q,z,H,f){if(Q=qC(Q,H,f,this.ZS,this.K3,this.Vl,this.B,this.Z,this.qc))return Q;throw new fN("Unsupported layout with type: "+f.layoutType+" and client metadata: "+uY(f.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.S=tI.prototype;g.S.hZ=function(){return this.slot}; +g.S.Ql=function(){return this.layout}; +g.S.init=function(){this.K3.get().addListener(this);this.K3.get().XB.push(this);var Q=this.layout.renderingContent?px(this.cI.get(),1).Sf/1E3:LN(this.layout.clientMetadata,"metadata_type_video_length_seconds"),z=g.K(this.layout.renderingContent,nY),H=z?OB(z.pings):LN(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");z=z?$tp(z.pings):LN(this.layout.clientMetadata,"metadata_type_active_view_identifier");F5(this.layout.wT)&&zm(this.Bz.get(),this.layout.layoutId,{K8:H,Zj:Q,listener:this, +c8:z})}; +g.S.release=function(){this.K3.get().removeListener(this);oVv(this.K3.get(),this);F5(this.layout.wT)&&Hy(this.Bz.get(),this.layout.layoutId)}; +g.S.startRendering=function(Q){this.callback.Fa(this.slot,Q)}; +g.S.eA=function(Q,z){Eh(this,"abandon");this.callback.kN(this.slot,Q,z)}; +g.S.mW=function(Q){switch(Q.id){case "part2viewed":this.Ij.CH("start");this.Ij.CH("impression");break;case "videoplaytime25":this.Ij.CH("first_quartile");break;case "videoplaytime50":this.Ij.CH("midpoint");break;case "videoplaytime75":this.Ij.CH("third_quartile");break;case "videoplaytime100":Eh(this,"complete");BD(this.Ij)&&rP(this.Ij,Infinity,!0);break;case "engagedview":BD(this.Ij)||this.Ij.CH("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; +default:Cp("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; +g.S.onVolumeChange=function(){}; +g.S.FI=function(){}; +g.S.jU=function(){}; +g.S.Y3=function(){}; +g.S.onFullscreenToggled=function(){}; +g.S.JN=function(Q){this.Z||(g.pp(Q,4)&&!g.pp(Q,2)?Yy(this.Ij,"pause"):Ex(Q,4)<0&&!(Ex(Q,2)<0)&&Yy(this.Ij,"resume"))}; +g.S.mS=function(){}; +g.S.Eo=function(Q){BD(this.Ij)&&rP(this.Ij,Q*1E3,!1)}; +g.S.vY=function(){Eh(this,"swipe")}; +g.S.T4=function(){this.Ij.CH("active_view_measurable")}; +g.S.UA=function(){this.Ij.CH("active_view_viewable")}; +g.S.Wk=function(){this.Ij.CH("active_view_fully_viewable_audible_half_duration")}; +g.S.RQ=function(){this.Ij.CH("audio_measurable")}; +g.S.tV=function(){this.Ij.CH("audio_audible")};L5Z.prototype.build=function(Q,z,H,f){if(H.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.K(f.renderingContent,nY)!==void 0)return new tI(Q,H,f,this.K3,this.Vl,this.qc,this.Bz,this.cI);z=["metadata_type_ad_placement_config"];for(var b=g.n(NS()),L=b.next();!L.done;L=b.next())z.push(L.value);if(ex(f,{q4:z,tM:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return H.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new tI(Q,H,f,this.K3,this.Vl,this.qc,this.Bz,this.cI):new cBk(Q,H,f,this.K3,this.Vl, +this.le,this.qc,this.Bz);throw new fN("Unsupported layout with type: "+f.layoutType+" and client metadata: "+uY(f.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var ZU={contentCpn:"",Vt:new Map};EUZ.prototype.Hz=function(Q,z){var H={};z=Object.assign({},z,(H.cc=this.wQ.jN(),H));this.wQ.K.On(Q,z)};var BCL,aS; +BCL={gnI:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",jNl:"AUTHENTICATION_MALFORMED",lVn:"AUTHENTICATION_MISSING",fV5:"BAD_REQUEST",sNI:"CAST_SESSION_DEVICE_MISMATCHED",v3h:"CAST_SESSION_VIDEO_MISMATCHED",J5v:"CAST_TOKEN_EXPIRED",E33:"CAST_TOKEN_FAILED",pYI:"CAST_TOKEN_MALFORMED",iq3:"CGI_PARAMS_MALFORMED",XY$:"CGI_PARAMS_MISSING",qul:"DEVICE_FALLBACK",vF5:"GENERIC_WITH_LINK_AND_CPN",J9v:"ERROR_HDCP",EFv:"LICENSE",i4m:"VIDEO_UNAVAILABLE",uWh:"FORMAT_UNAVAILABLE",R$j:"GEO_FAILURE", +LaT:"HTML5_AUDIO_RENDERER_ERROR",a5h:"GENERIC_WITHOUT_LINK",kOc:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",MNc:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",DDI:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",btq:"HTML5_SPS_UMP_STATUS_REJECTED",nrj:"INVALID_DRM_MESSAGE",kj5:"PURCHASE_NOT_FOUND",M8n:"PURCHASE_REFUNDED",lKh:"RENTAL_EXPIRED",ncl:"RETRYABLE_ERROR",irm:"SERVER_ERROR",Fcv:"SIGNATURE_EXPIRED",r_l:"STOPPED_BY_ANOTHER_PLAYBACK",oX$:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",ebh:"STREAMING_NOT_ALLOWED", +HPv:"STREAM_LICENSE_NOT_FOUND",Bih:"TOO_MANY_REQUESTS",qvj:"TOO_MANY_REQUESTS_WITH_LINK",Lh3:"TOO_MANY_STREAMS_PER_ENTITLEMENT",a4l:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",EX$:"VIDEO_FORBIDDEN",pN3:"VIDEO_NOT_FOUND",m7j:"BROWSER_OR_EXTENSION_ERROR"};aS={}; +g.WE=(aS.ALREADY_PINNED_ON_A_DEVICE="This video has already been downloaded on the maximum number of devices allowed by the copyright holder. Before you can play the video here, it needs to be unpinned on another device.",aS.DEVICE_FALLBACK="Sorry, this video is not available on this device.",aS.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",aS.LICENSE="Sorry, there was an error licensing this video.",aS.VIDEO_UNAVAILABLE= +"Video unavailable",aS.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",aS.GEO_FAILURE="This video isn't available in your country.",aS.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",aS.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",aS.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",aS.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="Your browser does not currently recognize any of the video formats available. $BEGIN_LINKClick here to visit our frequently asked questions about HTML5 video.$END_LINK", +aS.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",aS.HTML5_SPS_UMP_STATUS_REJECTED="Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",aS.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",aS.PURCHASE_NOT_FOUND="This video requires payment.",aS.PURCHASE_REFUNDED="This video's purchase has been refunded.",aS.RENTAL_EXPIRED="This video's rental has expired.",aS.CAST_SESSION_DEVICE_MISMATCHED= +"The device in the cast session doesn't match the requested one.",aS.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",aS.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",aS.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",aS.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",aS.SERVER_ERROR="There was an internal server error. Please try again later.",aS.STOPPED_BY_ANOTHER_PLAYBACK= +"Your account is playing this video in another location. Please reload this page to resume watching.",aS.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",aS.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",aS.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",aS.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",aS.TOO_MANY_REQUESTS="Please log in to watch this video.", +aS.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",aS.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",aS.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",aS.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",aS.VIDEO_FORBIDDEN="Access to this video is forbidden.",aS.VIDEO_NOT_FOUND="This video can not be found.",aS.BROWSER_OR_EXTENSION_ERROR= +"Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",aS);var P5R;var acu=g.Iu(),U4R=acu.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!U4R||U4R.length<2)P5R=void 0;else{var cnO=acu.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);P5R=cnO&&cnO.length===6?Number(cnO[5].replace("_",".")):0}var m7=P5R,aO=m7>=0;g.p(g.Pt,I4);g.Pt.prototype.X=function(Q,z,H,f,b){return I4.prototype.X.call(this,Q,z,H,f,b)};var Uj={},Mj=(Uj.FAIRPLAY="fairplay",Uj.PLAYREADY="playready",Uj.WIDEVINE="widevine",Uj.CLEARKEY=null,Uj.FLASHACCESS=null,Uj.UNKNOWN=null,Uj.WIDEVINE_CLASSIC=null,Uj);aj.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var cl={},ZM=(cl.WIDTH={name:"width",video:!0,valid:640,Tj:99999},cl.HEIGHT={name:"height",video:!0,valid:360,Tj:99999},cl.FRAMERATE={name:"framerate",video:!0,valid:30,Tj:9999},cl.BITRATE={name:"bitrate",video:!0,valid:3E5,Tj:2E9},cl.EOTF={name:"eotf",video:!0,valid:"bt709",Tj:"catavision"},cl.CHANNELS={name:"channels",video:!1,valid:2,Tj:99},cl.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",Tj:"invalidformat"},cl.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", +Tj:"nope"},cl.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",Tj:"av99.0.05M.08"},cl.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",Tj:"invalid"},cl);var iSt=["h","H"],heu=["9","("],W8J=["9h","(h"],D4t=["8","*"],K8T=["a","A"],VXO=["o","O"],d4x=["m","M"],m4u=["mac3","MAC3"],woJ=["meac3","MEAC3"],iy={},qH6=(iy.h=iSt,iy.H=iSt,iy["9"]=heu,iy["("]=heu,iy["9h"]=W8J,iy["(h"]=W8J,iy["8"]=D4t,iy["*"]=D4t,iy.a=K8T,iy.A=K8T,iy.o=VXO,iy.O=VXO,iy.m=d4x,iy.M=d4x,iy.mac3=m4u,iy.MAC3=m4u,iy.meac3=woJ,iy.MEAC3=woJ,iy),kiT=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),fUu=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var l={},DU=(l["0"]="f",l["160"]="h",l["133"]="h",l["134"]="h",l["135"]="h",l["136"]="h",l["137"]="h",l["264"]="h",l["266"]="h",l["138"]="h",l["298"]="h",l["299"]="h",l["304"]="h",l["305"]="h",l["214"]="h",l["216"]="h",l["374"]="h",l["375"]="h",l["140"]="a",l["141"]="ah",l["327"]="sa",l["258"]="m",l["380"]="mac3",l["328"]="meac3",l["161"]="H",l["142"]="H",l["143"]="H",l["144"]="H",l["222"]="H",l["223"]="H",l["145"]="H",l["224"]="H",l["225"]="H",l["146"]="H",l["226"]="H",l["227"]="H",l["147"]="H", +l["384"]="H",l["376"]="H",l["385"]="H",l["377"]="H",l["149"]="A",l["261"]="M",l["381"]="MAC3",l["329"]="MEAC3",l["598"]="9",l["278"]="9",l["242"]="9",l["243"]="9",l["244"]="9",l["775"]="9",l["776"]="9",l["777"]="9",l["778"]="9",l["779"]="9",l["780"]="9",l["781"]="9",l["782"]="9",l["783"]="9",l["247"]="9",l["248"]="9",l["353"]="9",l["355"]="9",l["356"]="9",l["271"]="9",l["577"]="9",l["313"]="9",l["579"]="9",l["272"]="9",l["302"]="9",l["303"]="9",l["407"]="9",l["408"]="9",l["308"]="9",l["315"]="9", +l["330"]="9h",l["331"]="9h",l["332"]="9h",l["333"]="9h",l["334"]="9h",l["335"]="9h",l["336"]="9h",l["337"]="9h",l["338"]="so",l["600"]="o",l["250"]="o",l["251"]="o",l["774"]="o",l["194"]="*",l["195"]="*",l["220"]="*",l["221"]="*",l["196"]="*",l["197"]="*",l["279"]="(",l["280"]="(",l["317"]="(",l["318"]="(",l["273"]="(",l["274"]="(",l["357"]="(",l["358"]="(",l["275"]="(",l["359"]="(",l["360"]="(",l["276"]="(",l["583"]="(",l["584"]="(",l["314"]="(",l["585"]="(",l["561"]="(",l["277"]="(",l["361"]="(h", +l["362"]="(h",l["363"]="(h",l["364"]="(h",l["365"]="(h",l["366"]="(h",l["591"]="(h",l["592"]="(h",l["367"]="(h",l["586"]="(h",l["587"]="(h",l["368"]="(h",l["588"]="(h",l["562"]="(h",l["409"]="(",l["410"]="(",l["411"]="(",l["412"]="(",l["557"]="(",l["558"]="(",l["394"]="1",l["395"]="1",l["396"]="1",l["397"]="1",l["398"]="1",l["399"]="1",l["720"]="1",l["721"]="1",l["400"]="1",l["401"]="1",l["571"]="1",l["402"]="1",l["694"]="1h",l["695"]="1h",l["696"]="1h",l["697"]="1h",l["698"]="1h",l["699"]="1h",l["700"]= +"1h",l["701"]="1h",l["702"]="1h",l["703"]="1h",l["386"]="3",l["387"]="w",l["406"]="6",l["787"]="1",l["788"]="1",l["548"]="1e",l["549"]="1e",l["550"]="1e",l["551"]="1e",l["809"]="1e",l["810"]="1e",l["552"]="1e",l["811"]="1e",l["812"]="1e",l["553"]="1e",l["813"]="1e",l["814"]="1e",l["554"]="1e",l["815"]="1e",l["816"]="1e",l["555"]="1e",l["817"]="1e",l["818"]="1e",l["572"]="1e",l["556"]="1e",l["645"]="(",l["646"]="(",l["647"]="(",l["648"]="(",l["649"]="(",l["650"]="(",l["651"]="(",l["652"]="(",l["653"]= +"(",l["654"]="(",l["655"]="(",l["656"]="(",l["657"]="(",l["658"]="(",l["659"]="(",l["660"]="(",l["661"]="(",l["662"]="(",l["663"]="(",l["664"]="(",l["665"]="(",l["666"]="(",l["667"]="(",l["668"]="(",l["669"]="(",l["670"]="(",l["671"]="(",l["672"]="(",l["673"]="(",l["674"]="(h",l["675"]="(h",l["676"]="(h",l["677"]="(h",l["678"]="(h",l["679"]="(h",l["680"]="(h",l["681"]="(h",l["682"]="(h",l["683"]="(h",l["684"]="(h",l["685"]="(h",l["686"]="(h",l["687"]="(h",l["688"]="A",l["689"]="A",l["690"]="A",l["691"]= +"MEAC3",l["773"]="i",l["806"]="I",l["805"]="I",l["829"]="9",l["830"]="9",l["831"]="9",l["832"]="9",l["833"]="9",l["834"]="9",l["835"]="9",l["836"]="9",l["837"]="9",l["838"]="9",l["839"]="9",l["840"]="9",l["841"]="(",l["842"]="(",l["843"]="(",l["844"]="(",l["845"]="(",l["846"]="(",l["847"]="(",l["848"]="(",l["849"]="(",l["850"]="(",l["851"]="(",l["852"]="(",l["865"]="9",l["866"]="9",l["867"]="9",l["868"]="9",l["869"]="9",l["870"]="9",l["871"]="9",l["872"]="9",l["873"]="9",l["874"]="9",l["875"]="9", +l["876"]="9",l["877"]="(",l["878"]="(",l["879"]="(",l["880"]="(",l["881"]="(",l["882"]="(",l["883"]="(",l["884"]="(",l["885"]="(",l["886"]="(",l["887"]="(",l["888"]="(",l);var hg={},d6c=(hg.STEREO_LAYOUT_UNKNOWN=0,hg.STEREO_LAYOUT_LEFT_RIGHT=1,hg.STEREO_LAYOUT_TOP_BOTTOM=2,hg);var Wl,Lu;Wl={};g.ct=(Wl.auto=0,Wl.tiny=144,Wl.light=144,Wl.small=240,Wl.medium=360,Wl.large=480,Wl.hd720=720,Wl.hd1080=1080,Wl.hd1440=1440,Wl.hd2160=2160,Wl.hd2880=2880,Wl.highres=4320,Wl);Lu={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var hI="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");ia.prototype.isHdr=function(){return this.B==="smpte2084"||this.B==="arib-std-b67"};KG.prototype.rV=function(){return this.containerType===2}; +KG.prototype.isEncrypted=function(){return!!this.AM}; +KG.prototype.Wq=function(){return!!this.audio}; +KG.prototype.rQ=function(){return!!this.video}; +var mq=!1;g.p(C3,g.vf);g.S=C3.prototype;g.S.appendBuffer=function(Q,z,H){if(this.oB.GE()!==this.appendWindowStart+this.start||this.oB.tP()!==this.appendWindowEnd+this.start||this.oB.ex()!==this.timestampOffset+this.start)this.oB.supports(1),this.oB.jr(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.oB.WG(this.timestampOffset+this.start);this.oB.appendBuffer(Q,z,H)}; +g.S.abort=function(){this.oB.abort()}; +g.S.remove=function(Q,z){this.oB.remove(Q+this.start,z+this.start)}; +g.S.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; +g.S.clear=function(){this.oB.clear()}; +g.S.jr=function(Q,z){this.appendWindowStart=Q;this.appendWindowEnd=z}; +g.S.UF=function(){return this.timestampOffset+this.start}; +g.S.GE=function(){return this.appendWindowStart}; +g.S.tP=function(){return this.appendWindowEnd}; +g.S.WG=function(Q){this.timestampOffset=Q}; +g.S.ex=function(){return this.timestampOffset}; +g.S.N4=function(Q){Q=this.oB.N4(Q===void 0?!1:Q);return M6(Q,this.start,this.end)}; +g.S.mB=function(){return this.oB.mB()}; +g.S.mT=function(){return this.oB.mT()}; +g.S.J8=function(){return this.oB.J8()}; +g.S.YW=function(){return this.oB.YW()}; +g.S.v1=function(){this.oB.v1()}; +g.S.G4=function(Q){return this.oB.G4(Q)}; +g.S.uu=function(){return this.oB.uu()}; +g.S.w0=function(){return this.oB.w0()}; +g.S.l0=function(){return this.oB.l0()}; +g.S.lk=function(Q,z,H){this.oB.lk(Q,z,H)}; +g.S.SI=function(Q,z,H){this.oB.SI(Q,z,H)}; +g.S.O6=function(Q,z){return this.oB.O6(Q,z)}; +g.S.supports=function(Q){return this.oB.supports(Q)}; +g.S.z3=function(){return this.oB.z3()}; +g.S.isView=function(){return!0}; +g.S.xO=function(){return this.oB.xO()?this.isActive:!1}; +g.S.isLocked=function(){return this.xL&&!this.isActive}; +g.S.TL=function(Q){Q=this.oB.TL(Q);Q.vw=this.start+"-"+this.end;return Q}; +g.S.P6=function(){return this.oB.P6()}; +g.S.zn=function(){return this.oB.zn()}; +g.S.Ng=function(){return this.oB.Ng()}; +g.S.zv=function(){this.oB.AY(this.Dx);g.vf.prototype.zv.call(this)};var $p=!1;g.p(EU,g.vf);g.S=EU.prototype;g.S.appendBuffer=function(Q,z,H){this.Y6=!1;H&&(this.Aw=H);if(Q.length){var f;((f=this.nH)==null?0:f.appendBuffer)?this.nH.appendBuffer(Q):this.nH?this.nH.append(Q):this.VP&&this.VP.webkitSourceAppend(this.id,Q)}z&&(z.isEncrypted()&&(this.Tf=this.Aw),z.type===3&&(this.oz=z),this.Sj.push(z.aq()),this.Sj.length>4&&this.Sj.shift());this.O0&&(this.O0.length>=2||Q.length>1048576?delete this.O0:this.O0.push(Q))}; +g.S.abort=function(){try{this.nH?this.nH.abort():this.VP&&this.VP.webkitSourceAbort(this.id)}catch(Q){Vuu&&g.PT(new g.kQ("Error while abort the source buffer: "+Q.name+", "+Q.message))}this.Aw=this.oz=null}; +g.S.remove=function(Q,z,H){this.Y6=!1;var f;if((f=this.nH)==null?0:f.remove)H&&H({b:uZ(this.N4()),s:Q,e:z}),this.nH.remove(Q,z)}; +g.S.removeAll=function(){this.remove(this.GE(),this.tP())}; +g.S.clear=function(){this.J8()||(this.abort(),this.removeAll(),this.Tf=this.Aw=this.oz=null,this.appendWindowStart=this.timestampOffset=0,this.RE=L3([],[]),this.Y6=!1,this.O0=ta?[]:void 0,this.Lv=!0)}; +g.S.GE=function(){if($p&&this.rQ)return this.appendWindowStart;var Q;return((Q=this.nH)==null?void 0:Q.appendWindowStart)||0}; +g.S.tP=function(){var Q;return((Q=this.nH)==null?void 0:Q.appendWindowEnd)||0}; +g.S.jr=function(Q,z){this.nH&&($p&&this.rQ?(this.appendWindowStart=Q,this.nH.appendWindowEnd=z):Q>this.GE()?(this.nH.appendWindowEnd=z,this.nH.appendWindowStart=Q):(this.nH.appendWindowStart=Q,this.nH.appendWindowEnd=z))}; +g.S.UF=function(){return this.timestampOffset}; +g.S.WG=function(Q){$p?this.timestampOffset=Q:this.supports(1)&&(this.nH.timestampOffset=Q)}; +g.S.ex=function(){return $p?this.timestampOffset:this.supports(1)?this.nH.timestampOffset:0}; +g.S.N4=function(Q){if(Q===void 0?0:Q)return this.Y6||this.mB()||(this.RE=this.N4(!1),this.Y6=!0),this.RE;try{return this.nH?this.nH.buffered:this.VP?this.VP.webkitSourceBuffered(this.id):L3([0],[Infinity])}catch(z){return L3([],[])}}; +g.S.mB=function(){var Q;return((Q=this.nH)==null?void 0:Q.updating)||!1}; +g.S.J8=function(){return this.Lv}; +g.S.YW=function(){return!this.Lv&&this.mB()}; +g.S.v1=function(){this.Lv=!1}; +g.S.G4=function(Q){var z=Q==null?void 0:Q.Rj;Q=Q==null?void 0:Q.containerType;return!z&&!Q||z===this.Rj&&Q===this.containerType}; +g.S.uu=function(){return this.Aw}; +g.S.w0=function(){return this.Tf}; +g.S.O6=function(Q,z){return this.containerType!==Q||this.Rj!==z}; +g.S.lk=function(Q,z,H){if(this.containerType!==Q||H&&this.O6(Q,H))this.supports(4),p3()&&this.nH.changeType(z),H&&(this.Rj=H);this.containerType=Q}; +g.S.SI=function(Q,z,H){this.containerType&&this.O6(Q,z)&&p3()&&this.nH.changeType(H);this.containerType=Q;this.Rj=z}; +g.S.z3=function(){return this.oz}; +g.S.isView=function(){return!1}; +g.S.supports=function(Q){switch(Q){case 1:var z;return((z=this.nH)==null?void 0:z.timestampOffset)!==void 0;case 0:var H;return!((H=this.nH)==null||!H.appendBuffer);case 2:var f;return!((f=this.nH)==null||!f.remove);case 3:var b,L;return!!(((b=this.nH)==null?0:b.addEventListener)&&((L=this.nH)==null?0:L.removeEventListener));case 4:return!(!this.nH||!this.nH.changeType);default:return!1}}; +g.S.xO=function(){return!this.mB()}; +g.S.isLocked=function(){return!1}; +g.S.TL=function(Q){Q.to=this.ex();Q.up=this.mB();var z,H=((z=this.nH)==null?void 0:z.appendWindowStart)||0,f;z=((f=this.nH)==null?void 0:f.appendWindowEnd)||Infinity;Q.aw=H.toFixed(3)+"-"+z.toFixed(3);return Q}; +g.S.mT=function(){var Q;return((Q=this.nH)==null?void 0:Q.writeHead)||0}; +g.S.P6=function(){for(var Q={},z=0;z=7&&p6p(this,function(){g.gR(function(){BUc(Q,Q.getCurrentTime(),0)},500)}); +return z}; +g.S.seekTo=function(Q){this.OG()>0&&(aO&&m7<4&&(Q=Math.max(.1,Q)),this.setCurrentTime(Q))}; +g.S.Iv=function(){if(!this.B&&this.vI)if(this.vI.S)try{var Q;$6(this,{l:"mer",sr:(Q=this.HI)==null?void 0:Q.Uq(),rs:wp(this.vI)});this.vI.clear();this.B=this.vI;this.vI=void 0}catch(z){Q=new g.kQ("Error while clearing Media Source in MediaElement: "+z.name+", "+z.message),g.PT(Q),this.stopVideo()}else this.stopVideo()}; +g.S.stopVideo=function(){var Q=this;if(!this.B){var z;(z=this.vI)==null||Yxc(z);if(W18){if(!this.L){var H=new Ts;H.then(void 0,function(){}); +this.L=H;Deu&&this.pause();g.gR(function(){Q.L===H&&(Qu(Q),H.resolve())},200)}}else Qu(this)}}; +g.S.zp=function(){var Q=this.Ux();return yA(Q)>0&&this.getDuration()?vs(Q,this.getCurrentTime()):0}; +g.S.F7=function(){var Q=this.getDuration();return Q===Infinity?1:Q?this.zp()/Q:0}; +g.S.TL=function(){try{var Q=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:uZ(this.WP(),",",3),vbu:uZ(this.Ux()),vbs:uZ(this.MS()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.OG(),vns:""+this.LT(),vec:""+this.JF(),vemsg:this.q8(),vvol:""+this.getVolume(),vdom:""+ +this.sb(),vsrc:""+ +!!this.e3(),vw:""+Q.width,vh:""+Q.height}}catch(z){return{}}}; +g.S.hasError=function(){return this.JF()>0}; +g.S.addEventListener=function(Q,z){this.D.listen(Q,z,!1,this);this.UD(Q)}; +g.S.removeEventListener=function(Q,z){this.D.DS(Q,z,!1,this)}; +g.S.dispatchEvent=function(Q){if(this.L&&Q.type==="pause")return!1;if(K1Y){var z,H=((z=Q.Z)==null?void 0:z.timeStamp)||Infinity;z=H>performance.now()?H-Date.now()+performance.now():H;H=this.B||this.vI;if((H==null?0:H.J8())||z<=((H==null?void 0:H.j)||0)){var f;$6(this,{l:"mede",sr:(f=this.HI)==null?void 0:f.Uq(),et:Q.type});return!1}if(this.uR)return $6(this,{l:"medes",et:Q.type}),H&&Q.type==="seeking"&&(H.j=performance.now(),this.uR=!1),!1}return this.D.dispatchEvent(Q)}; +g.S.Re=function(){this.j=!1}; +g.S.Ie=function(){this.j=!0;this.qA(!0)}; +g.S.Jn=function(){this.j&&!this.qN()&&this.qA(!0)}; +g.S.jH=function(Q){return!!Q&&Q.ai()===this.ai()}; +g.S.zv=function(){this.Y&&this.removeEventListener("volumechange",this.Jn);W18&&Qu(this);g.h.prototype.zv.call(this)}; +var W18=!1,Deu=!1,K1Y=!1,UZJ=!1;g.S=g.HR.prototype;g.S.isPaused=function(){return g.w(this,4)}; +g.S.isPlaying=function(){return g.w(this,8)&&!g.w(this,512)&&!g.w(this,64)&&!g.w(this,2)}; +g.S.isOrWillBePlaying=function(){return g.w(this,8)&&!g.w(this,2)&&!g.w(this,1024)}; +g.S.isCued=function(){return g.w(this,64)&&!g.w(this,8)&&!g.w(this,4)}; +g.S.isBuffering=function(){return g.w(this,1)&&!g.w(this,2)}; +g.S.isError=function(){return g.w(this,128)}; +g.S.isSuspended=function(){return g.w(this,512)}; +g.S.q3=function(){return g.w(this,64)&&g.w(this,4)}; +g.S.toString=function(){return"PSt."+this.state.toString(16)}; +var DX={},KX=(DX.BUFFERING="buffering-mode",DX.CUED="cued-mode",DX.ENDED="ended-mode",DX.PAUSED="paused-mode",DX.PLAYING="playing-mode",DX.SEEKING="seeking-mode",DX.UNSTARTED="unstarted-mode",DX);g.p(Mv,g.h);g.S=Mv.prototype;g.S.dZ=function(){return this.L}; +g.S.hZ=function(){return this.slot}; +g.S.Ql=function(){return this.layout}; +g.S.init=function(){var Q=LN(this.layout.clientMetadata,"metadata_type_video_length_seconds"),z=LN(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");F5(this.layout.wT)&&zm(this.Bz.get(),this.layout.layoutId,{K8:z,Zj:Q,listener:this,ri:this.MB()});gVa(this.Vl.get(),this);Q=this.QP;z=this.layout.layoutId;var H={ri:this.MB()};Q.Z.set(z,H);this.Ib()}; +g.S.Xv=function(){}; +g.S.release=function(){F5(this.layout.wT)&&Hy(this.Bz.get(),this.layout.layoutId);Zku(this.Vl.get(),this);this.QP.Z.delete(this.layout.layoutId);this.GV()}; +g.S.YQ=function(){}; +g.S.Q2=function(){}; +g.S.startRendering=function(Q){jM(Cx(this));if(tG(this,Q)){var z=this.Z;FI(z.params.CE.qc.get(),!0)&&thp(z,"p_sr",{});EH(this);this.X8(Q);this.MB()||this.U3(!1)}}; +g.S.Fa=function(Q,z){if(z.layoutId===this.layout.layoutId){this.Ri="rendering";this.B=this.K3.get().isMuted()||this.K3.get().getVolume()===0;this.CH("impression");this.CH("start");if(this.K3.get().isMuted()){$d(this,"mute");var H;Q=((H=qv(this))==null?void 0:H.muteCommands)||[];KN(this.le.get(),Q,this.layout.layoutId)}if(this.K3.get().isFullscreen()){this.IJ("fullscreen");var f;H=((f=qv(this))==null?void 0:f.fullscreenCommands)||[];KN(this.le.get(),H,this.layout.layoutId)}this.MB()||(f=this.Gq.get(), +f.L&&!f.B&&(f.S=!1,f.B=!0,f.actionType!=="ad_to_video"&&(dE("pbs",void 0,f.actionType),g.FZ("finalize_all_timelines")&&HtY(f.actionType))));this.NK(1);this.Tk(z);var b;z=((b=qv(this))==null?void 0:b.impressionCommands)||[];KN(this.le.get(),z,this.layout.layoutId)}}; +g.S.Ra=function(Q,z,H){this.Y={fC:3,eP:Q==="load_timeout"?402:400,errorMessage:z.message};this.CH("error");var f;Q=((f=qv(this))==null?void 0:f.errorCommands)||[];KN(this.le.get(),Q,this.layout.layoutId);this.MB()||this.KP.HS(this.slot,this.layout,z,H)}; +g.S.jY=function(){if(this.Ri==="rendering"){$d(this,"pause");var Q,z=((Q=qv(this))==null?void 0:Q.pauseCommands)||[];KN(this.le.get(),z,this.layout.layoutId);this.NK(2)}}; +g.S.lM=function(){if(this.Ri==="rendering"){$d(this,"resume");var Q,z=((Q=qv(this))==null?void 0:Q.resumeCommands)||[];KN(this.le.get(),z,this.layout.layoutId)}}; +g.S.IK=function(Q,z){z=z===void 0?!1:z;if(this.Ri==="rendering"){var H={currentTimeSec:Q,flush:z};xK(this.Z,"p_ip",H);rP(this.Ij,Q*1E3,z);this.B||rP(this.Ij,Q*1E3,z===void 0?!1:z);var f=this.BC();if(f){f/=1E3;if(Q>=f*.25||z)this.CH("first_quartile"),xK(this.Z,"p_fq",H);if(Q>=f*.5||z)this.CH("midpoint"),xK(this.Z,"p_sq",H);if(Q>=f*.75||z)this.CH("third_quartile"),xK(this.Z,"p_tq",H);this.qc.get().K.C().experiments.Nc("enable_progress_command_flush_on_kabuki")?WD(this.D,Q*1E3,z):WD(this.D,Q*1E3,K5Y(this)? +z:!1)}}}; +g.S.jN=function(){var Q;return((Q=px(this.cI.get(),1))==null?void 0:Q.clientPlaybackNonce)||""}; +g.S.td=function(Q,z){Q.layoutId!==this.layout.layoutId?this.KP.HS(this.slot,Q,new fN("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):z()}; +g.S.kN=function(Q,z,H){if(z.layoutId===this.layout.layoutId)switch(this.Ri="not_rendering",this.layoutExitReason=void 0,this.MB()||(Q=H!=="normal"||this.position+1===this.j)&&this.U3(Q),this.KF(H),this.NK(0),H){case "abandoned":if(sB(this.Ij,"impression")){var f,b=((f=qv(this))==null?void 0:f.abandonCommands)||[];KN(this.le.get(),b,this.layout.layoutId)}break;case "normal":f=((b=qv(this))==null?void 0:b.completeCommands)||[];KN(this.le.get(),f,this.layout.layoutId);break;case "skipped":var L;f=((L= +qv(this))==null?void 0:L.skipCommands)||[];KN(this.le.get(),f,this.layout.layoutId)}}; +g.S.qS=function(){return this.layout.layoutId}; +g.S.Dh=function(){return this.Y}; +g.S.T4=function(){if(this.Ri==="rendering"){this.Ij.CH("active_view_measurable");var Q,z=((Q=qv(this))==null?void 0:Q.activeViewMeasurableCommands)||[];KN(this.le.get(),z,this.layout.layoutId)}}; +g.S.Wk=function(){if(this.Ri==="rendering"){this.Ij.CH("active_view_fully_viewable_audible_half_duration");var Q,z=((Q=qv(this))==null?void 0:Q.activeViewFullyViewableAudibleHalfDurationCommands)||[];KN(this.le.get(),z,this.layout.layoutId)}}; +g.S.UA=function(){if(this.Ri==="rendering"){this.Ij.CH("active_view_viewable");var Q,z=((Q=qv(this))==null?void 0:Q.activeViewViewableCommands)||[];KN(this.le.get(),z,this.layout.layoutId)}}; +g.S.tV=function(){if(this.Ri==="rendering"){this.Ij.CH("audio_audible");var Q,z=((Q=qv(this))==null?void 0:Q.activeViewAudioAudibleCommands)||[];KN(this.le.get(),z,this.layout.layoutId)}}; +g.S.RQ=function(){if(this.Ri==="rendering"){this.Ij.CH("audio_measurable");var Q,z=((Q=qv(this))==null?void 0:Q.activeViewAudioMeasurableCommands)||[];KN(this.le.get(),z,this.layout.layoutId)}}; +g.S.U3=function(Q){this.Gq.get().U3(LN(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,Q,this.position,this.j,!1)}; +g.S.onFullscreenToggled=function(Q){if(this.Ri==="rendering")if(Q){this.IJ("fullscreen");var z,H=((z=qv(this))==null?void 0:z.fullscreenCommands)||[];KN(this.le.get(),H,this.layout.layoutId)}else this.IJ("end_fullscreen"),z=((H=qv(this))==null?void 0:H.endFullscreenCommands)||[],KN(this.le.get(),z,this.layout.layoutId)}; +g.S.onVolumeChange=function(){if(this.Ri==="rendering")if(this.K3.get().isMuted()){$d(this,"mute");var Q,z=((Q=qv(this))==null?void 0:Q.muteCommands)||[];KN(this.le.get(),z,this.layout.layoutId)}else $d(this,"unmute"),Q=((z=qv(this))==null?void 0:z.unmuteCommands)||[],KN(this.le.get(),Q,this.layout.layoutId)}; +g.S.jU=function(){}; +g.S.Y3=function(){}; +g.S.FI=function(){}; +g.S.mW=function(){}; +g.S.vY=function(){}; +g.S.IJ=function(Q){this.Ij.IJ(Q,!this.B)}; +g.S.CH=function(Q){this.Ij.CH(Q,!this.B)}; +g.S.MB=function(){var Q=LN(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return Q===void 0?(Cp("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.qc.get().MB(Q)};g.p(oc,Mv);g.S=oc.prototype;g.S.Ib=function(){}; +g.S.GV=function(){var Q=this.Vl.get();Q.Xu===this&&(Q.Xu=null);this.hM.stop()}; +g.S.YQ=function(){this.hM.stop();Mv.prototype.jY.call(this)}; +g.S.Q2=function(){Nv(this);Mv.prototype.lM.call(this)}; +g.S.BC=function(){return LN(this.Ql().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; +g.S.eA=function(Q,z){var H=this;this.td(Q,function(){H.Ri!=="rendering_stop_requested"&&(H.Ri="rendering_stop_requested",H.layoutExitReason=z,nx(H,z),H.hM.stop())})}; +g.S.A7=function(){var Q=Date.now(),z=Q-this.rG;this.rG=Q;this.rS+=z;this.rS>=this.BC()?this.PF():(this.IK(this.rS/1E3),JG(this,this.rS))}; +g.S.KF=function(){}; +g.S.mS=function(){}; +g.p(Ic,oc);g.S=Ic.prototype;g.S.JN=function(Q){if(this.Ri!=="not_rendering"){Q=gn(this,Q);var z=this.K3.get().getPresentingPlayerType()===2;this.Ri==="rendering_start_requested"?z&&MC(Q)&&this.Dq():z?g.pp(Q,2)?Cp("Receive player ended event during MediaBreak",this.hZ(),this.Ql()):Z$(this,Q):this.Gn()}}; +g.S.X8=function(){W56(this);Ij8(this.K3.get());this.Vl.get().Xu=this;Kj("pbp")||Kj("pbs")||dE("pbp");Kj("pbp","watch")||Kj("pbs","watch")||dE("pbp",void 0,"watch");this.Dq()}; +g.S.Tk=function(Q){this.Gq.get();var z=LN(Q.clientMetadata,"metadata_type_ad_placement_config").kind,H=this.position===0;Q=LN(Q.clientMetadata,"metadata_type_linked_in_player_layout_type");Q={adBreakType:GE(z),adType:Qop(Q)};var f=void 0;H?z!=="AD_PLACEMENT_KIND_START"&&(f="video_to_ad"):f="ad_to_ad";hN("ad_mbs",void 0,f);g.WC(Q,f);Nv(this)}; +g.S.Gn=function(){this.pU()}; +g.S.PF=function(){dZ6(this);this.pU()}; +g.p(AG,oc);g.S=AG.prototype;g.S.JN=function(Q){this.Ri!=="not_rendering"&&(Q=gn(this,Q),Z$(this,Q))}; +g.S.X8=function(){Cp("Not used in SSAP")}; +g.S.Tk=function(){Nv(this)}; +g.S.Gn=function(){Cp("Not used in SSAP")}; +g.S.PF=function(){dZ6(this);this.KP.o2(this.hZ(),this.Ql(),"normal")}; +g.p(Yd,AG);Yd.prototype.eA=function(Q,z){var H=this;this.td(Q,function(){nG(H.L,z)&&(H.Ri="rendering_stop_requested",H.layoutExitReason=z,nx(H,z),H.hM.stop())})}; +Yd.prototype.startRendering=function(Q){jM(Cx(this));tG(this,Q)&&(EH(this),this.Vl.get().Xu=this)};g.p(BR,Mv);g.S=BR.prototype;g.S.Gn=function(){this.pU()}; +g.S.JN=function(Q){if(this.Ri!=="not_rendering"){Q=gn(this,Q);var z=this.K3.get().getPresentingPlayerType()===2;this.Ri==="rendering_start_requested"?z&&MC(Q)&&this.Dq():!z||g.pp(Q,2)?this.pU():Z$(this,Q)}}; +g.S.Ib=function(){LN(this.Ql().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=LN(this.Ql().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; +g.S.GV=function(){LN(this.Ql().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.CZ){var Q=this.context.CE,z=this.CZ,H=this.Ql().layoutId;if(FI(Q.qc.get(),!0)){var f={};Q.Hz("mccru",(f.cid=z,f.p_ac=H,f))}this.n5.get().removeCueRange(this.CZ)}this.CZ=void 0;var b;(b=this.V7)==null||b.dispose();this.aZ&&this.aZ.dispose()}; +g.S.X8=function(Q){var z=rn(this.qc.get()),H=sH(this.qc.get());if(z&&H&&!this.MB()){H=LN(Q.clientMetadata,"metadata_type_preload_player_vars");var f=g.Mf(this.qc.get().K.C().experiments,"html5_preload_wait_time_secs");H&&this.aZ&&this.aZ.start(f*1E3)}kS9(this,Q);W56(this);z?(H=this.t7.get(),Q=LN(Q.clientMetadata,"metadata_type_player_vars"),H.K.loadVideoByPlayerVars(Q,!1,2)):cRu(this.t7.get(),LN(Q.clientMetadata,"metadata_type_player_vars"));var b;(b=this.V7)==null||b.start();z||this.t7.get().K.playVideo(2)}; +g.S.Tk=function(){var Q;(Q=this.V7)==null||Q.stop();this.CZ="adcompletioncuerange:"+this.Ql().layoutId;this.n5.get().addCueRange(this.CZ,0x7ffffffffffff,0x8000000000000,!1,this,2,2);Q=this.context.CE;var z=this.CZ,H=this.Ql().layoutId;if(FI(Q.qc.get(),!0)){var f={};Q.Hz("mccr",(f.cid=z,f.p_ac=H,f))}(this.adCpn=hvc(this))||Cp("Media layout confirmed started, but ad CPN not set.");this.Rq.get().Wn("onAdStart",this.adCpn);this.rC=Date.now()}; +g.S.BC=function(){var Q;return(Q=px(this.cI.get(),2))==null?void 0:Q.Sf}; +g.S.ZO=function(){this.Ij.IJ("clickthrough")}; +g.S.eA=function(Q,z){var H=this;this.td(Q,function(){if(H.Ri!=="rendering_stop_requested"){H.Ri="rendering_stop_requested";H.layoutExitReason=z;nx(H,z);var f;(f=H.V7)==null||f.stop();H.aZ&&H.aZ.stop();TUY(H)}})}; +g.S.onCueRangeEnter=function(Q){if(Q!==this.CZ)Cp("Received CueRangeEnter signal for unknown layout.",this.hZ(),this.Ql(),{cueRangeId:Q});else{var z=this.context.CE,H=this.Ql().layoutId;if(FI(z.qc.get(),!0)){var f={};z.Hz("mccre",(f.cid=Q,f.p_ac=H,f))}this.n5.get().removeCueRange(this.CZ);this.CZ=void 0;w4(this.context.qc.get(),"html5_ssap_flush_at_stop_rendering")&&this.MB()||(Q=LN(this.Ql().clientMetadata,"metadata_type_video_length_seconds"),this.IK(Q,!0),this.CH("complete"))}}; +g.S.KF=function(Q){Q!=="abandoned"&&this.Rq.get().Wn("onAdComplete");this.Rq.get().Wn("onAdEnd",this.adCpn)}; +g.S.onCueRangeExit=function(){}; +g.S.mS=function(Q){this.Ri==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&Q>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.K3.get().Pe(!0),this.IK(Q))}; +g.S.IK=function(Q,z){Mv.prototype.IK.call(this,Q,z===void 0?!1:z);z=Date.now()-this.rC;var H=Q*1E3,f={contentCpn:this.jN(),adCpn:hvc(this)};if(Q-this.Mq>=5){var b=z=2||(this.Fg.eA(this.layout,z),Q=w4(this.params.context.qc.get(),"html5_ssap_pass_transition_reason")&&z==="abandoned",this.Rb()&&!Q&&(w4(this.params.context.qc.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(z)||Cp("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:z})),this.xN.get().finishSegmentByCpn(this.layout.layoutId, +px(this.cI.get(),1).clientPlaybackNonce,Fn(z,this.params.context.qc))),this.K3.get().removeListener(this),this.a$()&&g5(this.Fg.dZ())&&this.Hr.kN(this.slot,this.layout,this.Fg.dZ().Z))}; +g.S.Zw=function(Q,z,H){MhJ({cpn:Q,wQ:this.cI.get(),zN:!0});this.Ql().layoutId!==Q||w4(this.params.context.qc.get(),"html5_ssap_pass_transition_reason")&&H===5||(this.Fg.dZ().currentState<2&&(Q=xd(H,this.params.context.qc),Q==="error"?this.Hr.HS(this.slot,this.layout,new fN("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:H},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):Vu(this.kJ, +this.layout,Q)),w4(this.params.context.qc.get(),"html5_ssap_exit_without_waiting_for_transition")||this.Hr.kN(this.slot,this.layout,this.Fg.dZ().Z))};g.p(iC,g.h);g.S=iC.prototype;g.S.hZ=function(){return this.slot}; +g.S.Ql=function(){return this.layout}; +g.S.qI=function(){}; +g.S.Ft=function(){return this.uW[this.yY]}; +g.S.Kt=function(){return this.yY}; +g.S.YQ=function(Q,z){var H=this.Ft();z.layoutId!==WR(H,Q,z)?Cp("pauseLayout for a PlayerBytes layout that is not currently active",Q,z):H.YQ()}; +g.S.Q2=function(Q,z){var H=this.Ft();z.layoutId!==WR(H,Q,z)?Cp("resumeLayout for a PlayerBytes layout that is not currently active",Q,z):H.Q2()}; +g.S.Zf=function(Q,z){var H=this.Ft();Ly8(this,Q,z);u7n(H,Q,z)&&this.uB(H.hZ(),H.Ql(),"skipped")}; +g.S.jW=function(Q,z){var H=this.Ft();SSa(this);XCZ(H,Q,z)&&(Q=vxL(this,H,Q,z),Q!==void 0&&(this.MB()?Cp("Should not happen. Should delete"):qSA(this,H.hZ(),H.Ql(),Q)))}; +g.S.Om=function(Q,z){var H=Object.assign({},hG(this),{layoutId:z.layoutId}),f=H.layoutId,b=H.zN;if(H.ri){var L={};$K(H.wQ,"wrse",(L.ec=f,L.is=b,L.ctp=GR(f),L))}JO(this.yO,Q,z)}; +g.S.Fa=function(Q,z){var H;(H=this.Ft())==null||H.Fa(Q,z)}; +g.S.kN=function(Q,z,H){z.layoutId===this.Ql().layoutId&&(this.Pk=!1,pN(this.r4(),this));var f;(f=this.Ft())==null||f.kN(Q,z,H)}; +g.S.mS=function(Q){var z;(z=this.Ft())==null||z.mS(Q)}; +g.S.v6=function(Q,z,H){this.Kt()===-1&&(this.callback.Fa(this.slot,this.layout),this.yY++);var f=this.Ft();f?(f.Ra(Q,z,H),this.MB()&&this.callback.HS(this.slot,this.layout,z,H)):Cp("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.Kt()),layoutId:this.Ql().layoutId})}; +g.S.onFullscreenToggled=function(Q){var z;(z=this.Ft())==null||z.onFullscreenToggled(Q)}; +g.S.jU=function(Q){var z;(z=this.Ft())==null||z.jU(Q)}; +g.S.FI=function(Q){var z;(z=this.Ft())==null||z.FI(Q)}; +g.S.onVolumeChange=function(){var Q;(Q=this.Ft())==null||Q.onVolumeChange()}; +g.S.GC=function(Q,z,H){Nf(this.yO,Q,z,H)}; +g.S.oL=function(Q){Q.startRendering(Q.Ql())}; +g.S.init=function(){var Q=LN(this.Ql().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");Q&&(Q.current=this);if(this.uW.length<1)throw new e("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.uW.length)});if(Q=LN(this.Ql().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))Q.current=this;Q=g.n(this.uW);for(var z=Q.next();!z.done;z=Q.next())z=z.value,z.init(),sxc(this.yO,this.slot,z.Ql()),Bl6(this.yO,this.slot,z.Ql()); +if(this.MB())for(this.cI.get().addListener(this),uSn(bjc(this),this.cI.get()),Q=bjc(this),Q=g.n(Q),z=Q.next();!z.done;z=Q.next())this.cL(z.value)}; +g.S.cL=function(Q){var z=LN(Q.clientMetadata,"metadata_type_player_vars");z?(Q.layoutType!=="LAYOUT_TYPE_MEDIA"&&Cp("Non-video ad contains playerVars",this.slot,Q),this.t7.get().addPlayerResponseForAssociation({playerVars:z})):(Q=zAv(Q),this.t7.get().addPlayerResponseForAssociation({Gt:Q}))}; +g.S.release=function(){var Q=LN(this.Ql().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");Q&&(Q.current=null);if(Q=LN(this.Ql().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))Q.current=null;Q=g.n(this.uW);for(var z=Q.next();!z.done;z=Q.next())z=z.value,PU8(this.yO,this.slot,z.Ql()),z.release();this.MB()&&(this.cI.get().removeListener(this),Sxk())}; +g.S.td=function(Q){return Q.layoutId!==this.Ql().layoutId?(this.callback.HS(this.hZ(),Q,new fN("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Ql().layoutId+("and LayoutType: "+this.Ql().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; +g.S.uK=function(){this.K3.get().addListener(this);EV(this.r4(),this)}; +g.S.JN=function(Q){if(Q.state.isError()){var z,H;this.v6((z=Q.state.WS)==null?void 0:z.errorCode,new fN("There was a player error during this media layout.",{playerErrorCode:(H=Q.state.WS)==null?void 0:H.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(z=this.Ft())&&z.JN(Q)}; +g.S.MB=function(){var Q=LN(this.hZ().clientMetadata,"metadata_type_eligible_for_ssap");return Q===void 0?(Cp("Expected SSAP eligibility in PlayerBytes slots",this.hZ(),this.Ql()),!1):this.qc.get().MB(Q)}; +g.S.Y3=function(){}; +g.S.iL=function(){}; +g.S.AF=function(){}; +g.S.lW=function(){}; +g.S.je=function(){}; +g.S.l2=function(){}; +g.S.SU=function(){}; +g.S.fA=function(){}; +g.S.OX=function(){}; +g.S.DY=function(){}; +g.S.vS=function(){}; +g.S.mW=function(){}; +g.S.vY=function(){}; +g.p(dn,iC);g.S=dn.prototype;g.S.wL=function(Q,z,H){this.uB(Q,z,H)}; +g.S.Z7=function(Q,z){this.uB(Q,z,"error")}; +g.S.uB=function(Q,z,H){var f=this;yNY(this,Q,z,H,function(){D$(f,f.Kt()+1)})}; +g.S.startRendering=function(Q){this.td(Q)&&(this.uK(),dEv(this.Gq.get()),ein(this.qc.get())||Ij8(this.K3.get()),this.Kt()===-1&&D$(this,this.Kt()+1))}; +g.S.eA=function(Q,z){var H=this;this.Pk=!0;this.Kt()===this.uW.length?this.callback.kN(this.slot,this.layout,z):(Q=this.Ft(),Q.eA(Q.Ql(),z),this.il=function(){H.callback.kN(H.slot,H.layout,z)}); +this.K3.get().K.Kb();cRu(this.t7.get(),{});Q=QB(this.K3.get(),1);Q.isPaused()&&!g.w(Q,2)&&this.K3.get().playVideo();this.K3.get().removeListener(this);this.Pk&&MVa(this)}; +g.S.Zw=function(){}; +g.S.O_=function(){}; +g.S.o2=function(){}; +g.p(mn,iC);g.S=mn.prototype;g.S.wL=function(Q,z,H){Q=Object.assign({},hG(this),{layoutId:z.layoutId,layoutExitReason:H});z=Q.layoutId;H=Q.layoutExitReason;var f={};$K(Q.wQ,"prse",(f.xc=z,f.ler=H,f.ctp=GR(z),f))}; +g.S.Z7=function(){Cp("onSubLayoutError in SSAP")}; +g.S.uB=function(){Cp("exitSubLayoutAndPlayNext in SSAP")}; +g.S.Ft=function(){return this.b2}; +g.S.Kt=function(){var Q=this;return this.uW.findIndex(function(z){var H;return z.Ql().layoutId===((H=Q.b2)==null?void 0:H.Ql().layoutId)})}; +g.S.oL=function(Q){MZ(this.b2===void 0,"replacing another adapter");this.b2=Q;Q.startRendering(Q.Ql())}; +g.S.GC=function(Q,z,H){Nf(this.yO,Q,z,H);var f;MZ(z.layoutId===((f=this.b2)==null?void 0:f.Ql().layoutId),"currentAdapter does not match exiting layout",{slot:Q?"slot: "+Q.slotType:"",subLayout:qZ(z)})&&(this.b2=void 0)}; +g.S.release=function(){iC.prototype.release.call(this);MZ(this.b2===void 0,"currentAdapter is still active during release");this.b2=void 0}; +g.S.Rb=function(){return this.K3.get().getPresentingPlayerType()===2}; +g.S.eA=function(Q,z){function H(){wn(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(z)||Cp("Composite stopRendering: Unexpected layout exit reason",this.slot,Q,{layoutExitReason:z}))} +function f(){this.b2&&kd(this,this.b2,z);if(this.Rb()&&(!wn(this)||z!=="abandoned")){H.call(this);var L;var u=((L=this.cI.get().K.getVideoData())==null?void 0:L.clientPlaybackNonce)||"";L=px(this.cI.get(),1).clientPlaybackNonce;this.xN.get().finishSegmentByCpn(u,L,Fn(z,this.qc))}Cbn(this,z)} +function b(){if(this.b2){var L=this.b2;L.dZ().currentState<2&&L.eA(L.Ql(),z);L=wn(this)&&z==="abandoned";this.Rb()&&!L&&(H.call(this),this.xN.get().finishSegmentByCpn(this.b2.Ql().layoutId,px(this.cI.get(),1).clientPlaybackNonce,Fn(z,this.qc)))}} +MZ(Q.layoutId===this.Ql().layoutId,"StopRendering for wrong layout")&&nG(this.Y$.B,z)&&(this.a$()?f.call(this):b.call(this))}; +g.S.kN=function(Q,z,H){iC.prototype.kN.call(this,Q,z,H);z.layoutId===this.Ql().layoutId&&this.K3.get().removeListener(this)}; +g.S.jN=function(){return px(this.cI.get(),1).clientPlaybackNonce}; +g.S.Zw=function(Q,z,H){MhJ(Object.assign({},hG(this),{cpn:Q}));if(!wn(this)||H!==5)if(this.a$()){if(this.b2&&this.b2.Ql().layoutId!==z){var f=this.b2.Ql().layoutId;f!==Q&&Cp("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:f,exitingCpn:Q,enteringCpn:z});Q=xd(H,this.qc);kd(this,this.b2,Q)}else this.b2&&Cp("onClipExited: active layout is entering again");z===this.jN()&&Ex8(this,H)}else{if(this.b2&&this.b2.Ql().layoutId===Q)tVp(this,this.b2,H);else{var b;Cp("Exiting cpn does not match active cpn", +this.slot,(f=this.b2)==null?void 0:f.Ql(),{exitingCpn:Q,transitionReason:H,activeCpn:(b=this.b2)==null?void 0:b.Ql().layoutId})}z===this.jN()&&(this.b2!==void 0&&(Cp("active adapter is not properly exited",this.slot,this.layout,{activeLayout:qZ(this.b2.Ql())}),tVp(this,this.b2,H)),Ex8(this,H),Cbn(this,this.Y$.B.Z))}}; +g.S.a$=function(){return w4(this.qc.get(),"html5_ssap_exit_without_waiting_for_transition")}; +g.S.startRendering=function(Q){this.td(Q)&&(Q=this.Y$,MZ(Q.Z===1,"tickStartRendering: state is not initial"),Q.Z=2,this.uK())}; +g.S.O_=function(Q){qxa(Object.assign({},hG(this),{cpn:Q}));var z=this.uW.find(function(H){return H.Ql().layoutId===Q}); +z?(this.Y$.Z!==2&&(m9L(this.fp,this.slot.slotId),MZ(this.Y$.Z===2,"Expect started"),this.callback.Fa(this.slot,this.layout)),this.oL(z),JO(this.yO,this.slot,z.Ql())):pCu(this,Q)}; +g.S.Zf=function(Q,z){Ly8(this,Q,z);var H=this.Ft();H?u7n(H,Q,z)&&nxk(this,"skipped"):gxn(this,"onSkipRequested")}; +g.S.jW=function(Q,z){var H;a:{if(H=this.Ft()){if(SSa(this),XCZ(H,Q,z)&&(Q=vxL(this,H,Q,z),Q!==void 0)){H={n7:H,QJn:this.uW[Q]};break a}}else gxn(this,"SkipWithAdPodSkip");H=void 0}if(Q=H)H=Q.n7,z=Q.QJn,Q=H.Ql().layoutId,this.a$()?kd(this,H,"skipped"):H.eA(H.Ql(),"skipped"),H=z.Ql().layoutId,this.xN.get().finishSegmentByCpn(Q,H,Fn("skipped",this.qc))}; +g.S.Om=function(){Cp("Not used in html5_ssap_fix_layout_exit")}; +g.S.JN=function(Q){var z;(z=this.Ft())==null||z.JN(Q)}; +g.S.v6=function(){Cp("Not used in html5_ssap_fix_layout_exit")}; +g.S.o2=function(Q,z,H){var f;if(((f=this.Ft())==null?void 0:f.Ql().layoutId)!==z.layoutId)return void Cp("requestToExitSubLayout: wrong layout");nxk(this,H)};g.p(TE,g.h);g.S=TE.prototype;g.S.hZ=function(){return this.Fg.hZ()}; +g.S.Ql=function(){return this.Fg.Ql()}; +g.S.init=function(){var Q=LN(this.Ql().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");Q&&(Q.current=this);this.Ib()}; +g.S.Ib=function(){this.Fg.init()}; +g.S.release=function(){var Q=LN(this.Ql().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");Q&&(Q.current=null);this.GV()}; +g.S.GV=function(){this.Fg.release()}; +g.S.YQ=function(){this.Fg.YQ()}; +g.S.Q2=function(){this.Fg.Q2()}; +g.S.Zf=function(Q,z){Cp("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.hZ(),this.Ql(),{requestingSlot:Q,requestingLayout:z})}; +g.S.startRendering=function(Q){Q.layoutId!==this.Ql().layoutId?this.callback.HS(this.hZ(),Q,new fN("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Ql().layoutId+("and LayoutType: "+this.Ql().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.K3.get().addListener(this),EV(this.r4(),this),dEv(this.Gq.get()),ein(this.qc.get())||Ij8(this.K3.get()),this.Fg.startRendering(Q))}; +g.S.eA=function(Q,z){this.Pk=!0;this.Fg.eA(Q,z);this.K3.get().K.Kb();cRu(this.t7.get(),{});Q=QB(this.K3.get(),1);Q.isPaused()&&!g.w(Q,2)&&this.K3.get().playVideo();this.K3.get().removeListener(this);this.Pk&&this.Fg.Gn()}; +g.S.Fa=function(Q,z){this.Fg.Fa(Q,z)}; +g.S.kN=function(Q,z,H){z.layoutId===this.Ql().layoutId&&(this.Pk=!1,pN(this.r4(),this));this.Fg.kN(Q,z,H);z.layoutId===this.Ql().layoutId&&Kx(this.Gq.get())}; +g.S.mS=function(Q){this.Fg.mS(Q)}; +g.S.JN=function(Q){if(Q.state.isError()){var z,H;this.v6((z=Q.state.WS)==null?void 0:z.errorCode,new fN("There was a player error during this media layout.",{playerErrorCode:(H=Q.state.WS)==null?void 0:H.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.Fg.JN(Q)}; +g.S.v6=function(Q,z,H){this.Fg.Ra(Q,z,H)}; +g.S.onFullscreenToggled=function(Q){this.Fg.onFullscreenToggled(Q)}; +g.S.jU=function(Q){this.Fg.jU(Q)}; +g.S.FI=function(Q){this.Fg.FI(Q)}; +g.S.onVolumeChange=function(){this.Fg.onVolumeChange()}; +g.S.Y3=function(){}; +g.S.iL=function(){}; +g.S.AF=function(){}; +g.S.lW=function(){}; +g.S.je=function(){}; +g.S.l2=function(){}; +g.S.SU=function(){}; +g.S.fA=function(){}; +g.S.OX=function(){}; +g.S.DY=function(){}; +g.S.vS=function(){}; +g.S.mW=function(){}; +g.S.vY=function(){};g.S=em.prototype;g.S.hZ=function(){return this.slot}; +g.S.Ql=function(){return this.layout}; +g.S.init=function(){this.u8.get().addListener(this);this.K3.get().addListener(this);var Q=LN(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var z=LN(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.D){var H=this.u8.get().F_.slice(-1)[0];H!==void 0&&(Q=H.startSecs*1E3,z=(H.startSecs+H.NB)*1E3)}this.Xv(Q,z);var f;H=(f=this.cI.get().Y9)==null?void 0:f.clientPlaybackNonce;f=this.layout.cz.adClientDataEntry;lC(this.Vl.get(),{daiStateTrigger:{filledAdsDurationMs:z-Q,contentCpn:H, +adClientData:f}});var b=this.u8.get();b=$qY(b.L,Q,z);b!==null&&(lC(this.Vl.get(),{daiStateTrigger:{filledAdsDurationMs:b-Q,contentCpn:H,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:f}}),this.xN.get().Yw(b,z))}; +g.S.release=function(){this.GV();this.u8.get().removeListener(this);this.K3.get().removeListener(this)}; +g.S.startRendering=function(){this.X8();this.callback.Fa(this.slot,this.layout)}; +g.S.eA=function(Q,z){this.WD(z);this.driftRecoveryMs!==null&&(Rc(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(jo8(this)-LN(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.K3.get().K.SN()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.kN(this.slot,this.layout,z)}; +g.S.ZX=function(){return!1}; +g.S.pw=function(Q){var z=LN(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),H=LN(this.layout.clientMetadata,"metadata_type_layout_exit_ms");Q*=1E3;if(z<=Q&&Q0&&IT(this.Z(),z)}; +g.S.AF=function(Q){this.S.delete(Q.slotId);for(var z=[],H=g.n(this.Sy.values()),f=H.next();!f.done;f=H.next()){f=f.value;var b=f.trigger;b instanceof kE&&b.triggeringSlotId===Q.slotId&&z.push(f)}z.length>0&&IT(this.Z(),z)}; +g.S.lW=function(Q){for(var z=[],H=g.n(this.Sy.values()),f=H.next();!f.done;f=H.next()){f=f.value;var b=f.trigger;b instanceof cZ&&b.slotType===Q.slotType&&b.Z!==Q.slotId&&z.push(f)}z.length>0&&IT(this.Z(),z)}; +g.S.je=function(Q){this.L.add(Q.slotId);for(var z=[],H=g.n(this.Sy.values()),f=H.next();!f.done;f=H.next())f=f.value,f.trigger instanceof K6&&Q.slotId===f.trigger.triggeringSlotId&&z.push(f);z.length>0&&IT(this.Z(),z)}; +g.S.l2=function(Q){this.L.delete(Q.slotId);this.D.add(Q.slotId);for(var z=[],H=g.n(this.Sy.values()),f=H.next();!f.done;f=H.next())if(f=f.value,f.trigger instanceof V0)Q.slotId===f.trigger.triggeringSlotId&&z.push(f);else if(f.trigger instanceof o9){var b=f.trigger;Q.slotId===b.slotId&&this.B.has(b.triggeringLayoutId)&&z.push(f)}z.length>0&&IT(this.Z(),z)}; +g.S.SU=function(Q){for(var z=[],H=g.n(this.Sy.values()),f=H.next();!f.done;f=H.next())f=f.value,f.trigger instanceof d0&&Q.slotId===f.trigger.triggeringSlotId&&z.push(f);z.length>0&&IT(this.Z(),z)}; +g.S.fA=function(Q){for(var z=[],H=g.n(this.Sy.values()),f=H.next();!f.done;f=H.next())f=f.value,f.trigger instanceof m9&&Q.slotId===f.trigger.triggeringSlotId&&z.push(f);z.length>0&&IT(this.Z(),z)}; +g.S.OX=function(Q,z){this.j.add(z.layoutId)}; +g.S.DY=function(Q,z){this.j.delete(z.layoutId)}; +g.S.Fa=function(Q,z){this.B.add(z.layoutId);for(var H=[],f=g.n(this.Sy.values()),b=f.next();!b.done;b=f.next())if(b=b.value,b.trigger instanceof J2)z.layoutId===b.trigger.triggeringLayoutId&&H.push(b);else if(b.trigger instanceof Uv){var L=b.trigger;Q.slotType===L.slotType&&z.layoutType===L.layoutType&&z.layoutId!==L.Z&&H.push(b)}else b.trigger instanceof o9&&(L=b.trigger,z.layoutId===L.triggeringLayoutId&&this.D.has(L.slotId)&&H.push(b));H.length>0&&IT(this.Z(),H)}; +g.S.kN=function(Q,z,H){this.B.delete(z.layoutId);Q=[];for(var f=g.n(this.Sy.values()),b=f.next();!b.done;b=f.next())if(b=b.value,b.trigger instanceof I9&&z.layoutId===b.trigger.triggeringLayoutId&&Q.push(b),b.trigger instanceof NM){var L=b.trigger;z.layoutId===L.triggeringLayoutId&&L.Z.includes(H)&&Q.push(b)}Q.length>0&&IT(this.Z(),Q)}; +g.S.vS=function(){}; +g.S.cY=function(){this.D.clear()}; +g.S.Qa=function(){};g.p(PS,g.h);PS.prototype.u7=function(Q,z,H,f){if(this.Sy.has(z.triggerId))throw new e("Tried to register duplicate trigger for slot.");if(!(z instanceof xE))throw new e("Incorrect TriggerType: Tried to register trigger of type "+z.triggerType+" in CloseRequestedTriggerAdapter");this.Sy.set(z.triggerId,new lB(Q,z,H,f))}; +PS.prototype.Rv=function(Q){this.Sy.delete(Q.triggerId)};g.p(UD,g.h);UD.prototype.u7=function(Q,z,H,f){if(this.Sy.has(z.triggerId))throw new e("Tried to register duplicate trigger for slot.");if(!(z instanceof FO||z instanceof h2))throw new e("Incorrect TriggerType: Tried to register trigger of type "+z.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Sy.set(z.triggerId,new lB(Q,z,H,f))}; +UD.prototype.Rv=function(Q){this.Sy.delete(Q.triggerId)}; +UD.prototype.cY=function(Q){for(var z=[],H=z.push,f=H.apply,b=[],L=g.n(this.Sy.values()),u=L.next();!u.done;u=L.next())u=u.value,u.trigger instanceof FO&&u.trigger.f$===Q&&b.push(u);f.call(H,z,g.F(b));H=z.push;f=H.apply;b=[];L=g.n(this.Sy.values());for(u=L.next();!u.done;u=L.next())u=u.value,u.trigger instanceof h2&&u.trigger.Z!==Q&&b.push(u);f.call(H,z,g.F(b));z.length&&IT(this.Z(),z)}; +UD.prototype.Qa=function(Q){for(var z=[],H=z.push,f=H.apply,b=[],L=g.n(this.Sy.values()),u=L.next();!u.done;u=L.next()){u=u.value;var X=u.trigger;X instanceof h2&&X.Z===Q&&b.push(u)}f.call(H,z,g.F(b));z.length&&IT(this.Z(),z)};g.p(cS,g.h);g.S=cS.prototype;g.S.u7=function(Q,z,H,f){if(this.Sy.has(z.triggerId))throw new e("Tried to register duplicate trigger for slot.");var b="adtriggercuerange:"+z.triggerId;if(z instanceof PZ)cmu(this,Q,z,H,f,b,z.Z.start,z.Z.end,z.f$,z.visible);else if(z instanceof Ov)cmu(this,Q,z,H,f,b,0x7ffffffffffff,0x8000000000000,z.f$,z.visible);else throw new e("Incorrect TriggerType: Tried to register trigger of type "+z.triggerType+" in CueRangeTriggerAdapter");}; +g.S.Rv=function(Q){var z=this.Sy.get(Q.triggerId);z&&this.n5.get().removeCueRange(z.cueRangeId);this.Sy.delete(Q.triggerId)}; +g.S.onCueRangeEnter=function(Q){var z=iqn(this,Q);if(z&&(z=this.Sy.get(z)))if(g.w(QB(this.K3.get()),32))this.Z.add(z.cueRangeId);else{var H=z==null?void 0:z.nU.trigger;if(H instanceof PZ||H instanceof Ov){if(FI(this.context.qc.get())){var f=z.nU.slot,b=z.nU.layout,L={};this.context.CE.Hz("cre",(L.ca=z.nU.category,L.tt=H.triggerType,L.st=f.slotType,L.lt=b==null?void 0:b.layoutType,L.cid=Q,L))}IT(this.B(),[z.nU])}}}; +g.S.onCueRangeExit=function(Q){(Q=iqn(this,Q))&&(Q=this.Sy.get(Q))&&this.Z.delete(Q.cueRangeId)}; +g.S.JN=function(Q){if(Ex(Q,16)<0){Q=g.n(this.Z);for(var z=Q.next();!z.done;z=Q.next())this.onCueRangeEnter(z.value,!0);this.Z.clear()}}; +g.S.iL=function(){}; +g.S.AF=function(){}; +g.S.lW=function(){}; +g.S.je=function(){}; +g.S.l2=function(){}; +g.S.SU=function(){}; +g.S.fA=function(){}; +g.S.OX=function(){}; +g.S.DY=function(){}; +g.S.Fa=function(){}; +g.S.kN=function(){}; +g.S.vS=function(){}; +g.S.mS=function(){}; +g.S.onFullscreenToggled=function(){}; +g.S.jU=function(){}; +g.S.Y3=function(){}; +g.S.FI=function(){}; +g.S.onVolumeChange=function(){}; +g.S.mW=function(){}; +g.S.vY=function(){};g.p(i6,g.h);g.S=i6.prototype; +g.S.u7=function(Q,z,H,f){if(this.B.has(z.triggerId)||this.L.has(z.triggerId))throw new e("Tried to re-register the trigger.");Q=new lB(Q,z,H,f);if(Q.trigger instanceof BZ)this.B.set(Q.trigger.triggerId,Q);else if(Q.trigger instanceof A2)this.L.set(Q.trigger.triggerId,Q);else throw new e("Incorrect TriggerType: Tried to register trigger of type "+Q.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.B.has(Q.trigger.triggerId)&&Q.slot.slotId===this.Z&&IT(this.D(),[Q])}; +g.S.Rv=function(Q){this.B.delete(Q.triggerId);this.L.delete(Q.triggerId)}; +g.S.qI=function(Q){Q=Q.slotId;if(this.Z!==Q){var z=[];this.Z!=null&&z.push.apply(z,g.F(hkv(this.L,this.Z)));Q!=null&&z.push.apply(z,g.F(hkv(this.B,Q)));this.Z=Q;z.length&&IT(this.D(),z)}}; +g.S.Zw=function(){}; +g.S.O_=function(){};g.p(h7,g.h);g.S=h7.prototype;g.S.u7=function(Q,z,H,f){if(this.Sy.has(z.triggerId))throw new e("Tried to register duplicate trigger for slot.");if(!(z instanceof iB))throw new e("Incorrect TriggerType: Tried to register trigger of type "+z.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Sy.set(z.triggerId,new lB(Q,z,H,f))}; +g.S.Rv=function(Q){this.Sy.delete(Q.triggerId)}; +g.S.Fa=function(){}; +g.S.kN=function(){}; +g.S.iL=function(){}; +g.S.AF=function(){}; +g.S.lW=function(){}; +g.S.je=function(){}; +g.S.l2=function(){}; +g.S.SU=function(){}; +g.S.fA=function(){}; +g.S.OX=function(){}; +g.S.DY=function(){}; +g.S.vS=function(){};g.p(WS,g.h);g.S=WS.prototype;g.S.vS=function(Q,z){for(var H=[],f=g.n(this.Sy.values()),b=f.next();!b.done;b=f.next()){b=b.value;var L=b.trigger;L.opportunityType===Q&&(L.associatedSlotId&&L.associatedSlotId!==z||H.push(b))}H.length&&IT(this.Z(),H)}; +g.S.u7=function(Q,z,H,f){if(this.Sy.has(z.triggerId))throw new e("Tried to register duplicate trigger for slot.");if(!(z instanceof lw_))throw new e("Incorrect TriggerType: Tried to register trigger of type "+z.triggerType+" in OpportunityEventTriggerAdapter");this.Sy.set(z.triggerId,new lB(Q,z,H,f))}; +g.S.Rv=function(Q){this.Sy.delete(Q.triggerId)}; +g.S.iL=function(){}; +g.S.AF=function(){}; +g.S.lW=function(){}; +g.S.je=function(){}; +g.S.l2=function(){}; +g.S.SU=function(){}; +g.S.fA=function(){}; +g.S.OX=function(){}; +g.S.DY=function(){}; +g.S.Fa=function(){}; +g.S.kN=function(){};g.p(DO,g.h);g.S=DO.prototype;g.S.u7=function(Q,z,H,f){Q=new lB(Q,z,H,f);if(z instanceof YE||z instanceof a9||z instanceof r0||z instanceof WZ||z instanceof eA_){if(this.Sy.has(z.triggerId))throw new e("Tried to register duplicate trigger for slot.");this.Sy.set(z.triggerId,Q);H=H.slotId;Q=this.L.has(H)?this.L.get(H):new Set;Q.add(z);this.L.set(H,Q)}else throw new e("Incorrect TriggerType: Tried to register trigger of type "+z.triggerType+" in PrefetchTriggerAdapter");}; +g.S.Rv=function(Q){this.Sy.delete(Q.triggerId)}; +g.S.iL=function(Q){var z=Q.slotId;if(this.L.has(z)){Q=0;var H=new Set;z=g.n(this.L.get(z));for(var f=z.next();!f.done;f=z.next())if(f=f.value,H.add(f.triggerId),f instanceof a9&&f.breakDurationMs){Q=f.breakDurationMs;break}KQ(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",Q,H)}}; +g.S.AF=function(){}; +g.S.lW=function(){}; +g.S.je=function(){}; +g.S.l2=function(){}; +g.S.SU=function(){}; +g.S.fA=function(){}; +g.S.OX=function(){}; +g.S.DY=function(){}; +g.S.Fa=function(){}; +g.S.kN=function(){}; +g.S.vS=function(){}; +g.S.ZX=function(Q){if(this.Z){this.B&&this.B.stop();this.D&&g.Re(this.D);Q=Q.NB*1E3+1E3;for(var z=0,H=g.n(this.Sy.values()),f=H.next();!f.done;f=H.next())f=f.value.trigger,f instanceof YE&&f.breakDurationMs<=Q&&f.breakDurationMs>z&&(z=f.breakDurationMs);Q=z;if(Q>0)return KQ(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",Q,new Set,!0),KQ(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",Q,new Set,!1),!0}return!1}; +g.S.pw=function(){}; +g.S.cY=function(Q){this.Z&&this.Z.contentCpn!==Q?(Cp("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:Q,fetchInstructionsCpn:this.Z.contentCpn}),VL(this)):D9A(this)}; +g.S.Qa=function(Q){this.Z&&this.Z.contentCpn!==Q&&Cp("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:Q,fetchInstructionsCpn:this.Z.contentCpn},!0);VL(this)}; +g.S.Cw=function(Q){var z=this;if(this.Z)Cp("Unexpected multiple fetch instructions for the current content");else{this.Z=Q;Q=VUZ(Q);this.B=new g.lp(function(){D9A(z)},Q?Q:6E5); +this.B.start();this.D=new g.lp(function(){z.Z&&(z.B&&(z.B.stop(),z.B.start()),Wcc(z,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},Kca(this.Z)); +Q=this.K3.get().getCurrentTimeSec(1,!1);for(var H=g.n(this.u8.get().F_),f=H.next();!f.done;f=H.next())f=f.value,zT(this.Vl.get(),"nocache","ct."+Date.now()+";cmt."+Q+";d."+f.NB.toFixed(3)+";tw."+(f.startSecs-Q)+";cid."+f.identifier+";")}}; +g.S.zv=function(){g.h.prototype.zv.call(this);VL(this)};g.p(dM,g.h);g.S=dM.prototype;g.S.u7=function(Q,z,H,f){if(this.Sy.has(z.triggerId))throw new e("Tried to register duplicate trigger for slot.");if(!(z instanceof ep))throw new e("Incorrect TriggerType: Tried to register trigger of type "+z.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Sy.set(z.triggerId,new lB(Q,z,H,f));Q=this.Z.has(z.triggeringLayoutId)?this.Z.get(z.triggeringLayoutId):new Set;Q.add(z);this.Z.set(z.triggeringLayoutId,Q)}; +g.S.Rv=function(Q){this.Sy.delete(Q.triggerId);if(!(Q instanceof ep))throw new e("Incorrect TriggerType: Tried to unregister trigger of type "+Q.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var z=this.B.get(Q.triggerId);z&&(z.dispose(),this.B.delete(Q.triggerId));if(z=this.Z.get(Q.triggeringLayoutId))z.delete(Q),z.size===0&&this.Z.delete(Q.triggeringLayoutId)}; +g.S.iL=function(){}; +g.S.AF=function(){}; +g.S.lW=function(){}; +g.S.je=function(){}; +g.S.l2=function(){}; +g.S.SU=function(){}; +g.S.fA=function(){}; +g.S.OX=function(){}; +g.S.DY=function(){}; +g.S.vS=function(){}; +g.S.Fa=function(Q,z){var H=this;if(this.Z.has(z.layoutId)){Q=this.Z.get(z.layoutId);Q=g.n(Q);var f=Q.next();for(z={};!f.done;z={Ht:void 0},f=Q.next())z.Ht=f.value,f=new g.lp(function(b){return function(){var L=H.Sy.get(b.Ht.triggerId);IT(H.L(),[L])}}(z),z.Ht.durationMs),f.start(),this.B.set(z.Ht.triggerId,f)}}; +g.S.kN=function(){};g.p(mi,g.h);mi.prototype.u7=function(Q,z,H,f){if(this.Sy.has(z.triggerId))throw new e("Tried to register duplicate trigger for slot.");if(!(z instanceof $E))throw new e("Incorrect TriggerType: Tried to register trigger of type "+z.triggerType+" in VideoTransitionTriggerAdapter.");this.Sy.set(z.triggerId,new lB(Q,z,H,f))}; +mi.prototype.Rv=function(Q){this.Sy.delete(Q.triggerId)};e3.prototype.kG=function(Q){return Q.kind==="AD_PLACEMENT_KIND_START"};g.p(Q1,g.h);g.S=Q1.prototype;g.S.logEvent=function(Q){this.al(Q)}; +g.S.e6=function(Q,z,H){this.al(Q,void 0,void 0,void 0,z,void 0,void 0,void 0,z.adSlotLoggingData,void 0,void 0,H)}; +g.S.tF=function(Q,z,H,f){this.al(Q,void 0,void 0,void 0,z,H?H:void 0,void 0,void 0,z.adSlotLoggingData,H?H.adLayoutLoggingData:void 0,void 0,f)}; +g.S.TP=function(Q,z,H,f){w4(this.qc.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+Q,"trigger:",H,"slot:",z,"layout:",f);yJ(this.Z.get())&&this.al(Q,void 0,void 0,void 0,z,f?f:void 0,void 0,H,z.adSlotLoggingData,f?f.adLayoutLoggingData:void 0)}; +g.S.E3=function(Q,z,H,f,b){this.al(Q,z,H,f,void 0,void 0,void 0,void 0,void 0,void 0,void 0,b)}; +g.S.PG=function(Q,z,H,f){this.al("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,H,f,void 0,void 0,H.adSlotLoggingData,f?f.adLayoutLoggingData:void 0,{errorType:Q,errorMessage:z})}; +g.S.al=function(Q,z,H,f,b,L,u,X,v,y,q,M){var C=this;M=M===void 0?0:M;w4(this.qc.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+Q,"slot:",b,"layout:",L,"ping:",u,"Opportunity:",{opportunityType:z,associatedSlotId:H,Wb5:f,rHh:X,adSlotLoggingData:v,adLayoutLoggingData:y});try{var t=function(){if(!C.qc.get().K.C().V("html5_disable_client_tmp_logs")&&Q!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){Q||Cp("Empty PACF event type",b,L);var E=yJ(C.Z.get()),G={eventType:Q,eventOrder:++C.eventCount},x={}; +b&&(x.slotData=va(E,b));L&&(x.layoutData=Nla(E,L));u&&(x.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:u.Z.serializedAdPingMetadata,pingIndex:u.index});X&&(x.triggerData=XE(X.trigger,X.category));z&&(x.opportunityData=IwL(E,z,H,f));E={organicPlaybackContext:{contentCpn:px(C.cI.get(),1).clientPlaybackNonce}};E.organicPlaybackContext.isLivePlayback=px(C.cI.get(),1).AZ;var J;E.organicPlaybackContext.isMdxPlayback=(J=px(C.cI.get(),1))==null?void 0:J.isMdxPlayback; +var I;if((I=px(C.cI.get(),1))==null?0:I.daiEnabled)E.organicPlaybackContext.isDaiContent=!0;var r;if(J=(r=px(C.cI.get(),2))==null?void 0:r.clientPlaybackNonce)E.adVideoPlaybackContext={adVideoCpn:J};E&&(x.externalContext=E);G.adClientData=x;v&&(G.serializedSlotAdServingData=v.serializedSlotAdServingDataEntry);y&&(G.serializedAdServingData=y.serializedAdServingDataEntry);q&&(G.errorInfo=q);g.qV("adsClientStateChange",{adsClientEvent:G})}}; +M&&M>0?g.Q5(g.HH(),function(){return t()},M):t()}catch(E){w4(this.qc.get(),"html5_log_pacf_logging_errors")&&g.Q5(g.HH(),function(){Cp(E instanceof Error?E:String(E),b,L,{pacf_message:"exception during pacf logging"})})}};var eeu=new Set("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED".split(" "));g.p(z0,Q1);g.S=z0.prototype; +g.S.e6=function(Q,z,H){Q1.prototype.e6.call(this,Q,z,H);FI(this.qc.get())&&(H={},this.context.CE.Hz("pacf",(H.et=Q,H.st=z.slotType,H.si=z.slotId,H)))}; +g.S.tF=function(Q,z,H,f){var b=eeu.has(Q);Q1.prototype.tF.call(this,Q,z,H,f);FI(this.qc.get(),b)&&(f={},this.context.CE.Hz("pacf",(f.et=Q,f.st=z.slotType,f.si=z.slotId,f.lt=H==null?void 0:H.layoutType,f.li=H==null?void 0:H.layoutId,f.p_ac=H==null?void 0:H.layoutId,f)))}; +g.S.E3=function(Q,z,H,f,b){Q1.prototype.E3.call(this,Q,z,H,f,b);FI(this.qc.get())&&(H={},this.context.CE.Hz("pacf",(H.et=Q,H.ot=z,H.ss=f==null?void 0:f.length,H)))}; +g.S.TP=function(Q,z,H,f){Q1.prototype.TP.call(this,Q,z,H,f);if(FI(this.qc.get())){var b={};this.context.CE.Hz("pacf",(b.et=Q,b.tt=H.trigger.triggerType,b.tc=H.category,b.st=z.slotType,b.si=z.slotId,b.lt=f==null?void 0:f.layoutType,b.li=f==null?void 0:f.layoutId,b.p_ac=f==null?void 0:f.layoutId,b))}}; +g.S.PG=function(Q,z,H,f){Q1.prototype.PG.call(this,Q,z,H,f);if(FI(this.qc.get(),!0)){var b={};this.context.CE.Hz("perror",(b.ert=Q,b.erm=z,b.st=H.slotType,b.si=H.slotId,b.lt=f==null?void 0:f.layoutType,b.li=f==null?void 0:f.layoutId,b.p_ac=f==null?void 0:f.layoutId,b))}}; +g.S.al=function(Q,z,H,f,b,L,u,X,v,y,q){if(g.oT(this.qc.get().K.C())){var M=this.qc.get();M=g.Mf(M.K.C().experiments,"H5_async_logging_delay_ms")}else M=void 0;Q1.prototype.al.call(this,Q,z,H,f,b,L,u,X,v,y,q,M)};HB.prototype.clear=function(){this.Z.clear()};LE.prototype.resolve=function(Q){fE(this,Q)}; +LE.prototype.reject=function(Q){bM(this,Q)}; +LE.prototype.state=function(){return this.currentState==="done"?{state:"done",result:this.result}:this.currentState==="fail"?{state:"fail",error:this.error}:{state:"wait"}}; +LE.prototype.wait=function(){var Q=this;return function H(){return MYp(H,function(f){if(f.Z==1)return g.Fa(f,2),g.Y(f,{sy:Q},4);if(f.Z!=2)return f.return(f.B);g.oJ(f);return g.Nk(f,0)})}()}; +var gdn=d7(function(Q){return uM(Q)?Q instanceof LE:!1});Object.freeze({x3v:function(Q){var z=vJJ(Q);return CE(XaZ(z,function(H){return z[H].currentState==="fail"}),function(H){return Number.isNaN(H)?z.map(function(f){return f.state().result}):z[H]})}, +zVc:function(Q){var z=vJJ(Q);return CE(XaZ(z),function(){return z.map(function(H){return H.state()})})}});var pE=window.Apl||"en";G0.prototype.DP=function(Q){this.client=Q}; +G0.prototype.Z=function(){this.clear();this.csn=g.Jl()}; +G0.prototype.clear=function(){this.L.clear();this.B.clear();this.D.clear();this.csn=null};jJ.prototype.DP=function(Q){g.zr($A().DP).bind($A())(Q)}; +jJ.prototype.clear=function(){g.zr($A().clear).bind($A())()};g.S=F_.prototype;g.S.DP=function(Q){this.client=Q}; +g.S.FP=function(Q,z){var H=this;z=z===void 0?{}:z;g.zr(function(){var f,b,L,u=((f=g.K(Q==null?void 0:Q.commandMetadata,g.ZX))==null?void 0:f.rootVe)||((b=g.K(Q==null?void 0:Q.commandMetadata,tj5))==null?void 0:(L=b.screenVisualElement)==null?void 0:L.uiType);if(u){f=g.K(Q==null?void 0:Q.commandMetadata,sGt);if(f==null?0:f.parentTrackingParams){var X=g.xG(f.parentTrackingParams);if(f.parentCsn)var v=f.parentCsn}else z.clickedVisualElement?X=z.clickedVisualElement:Q.clickTrackingParams&&(X=g.xG(Q.clickTrackingParams)); +a:{f=g.K(Q,g.lF);b=g.K(Q,oTs);if(f){if(b=qV_(f,"VIDEO")){f={token:b,videoId:f.videoId};break a}}else if(b&&(f=qV_(b,"PLAYLIST"))){f={token:f,playlistId:b.playlistId};break a}f=void 0}z=Object.assign({},{cttAuthInfo:f,parentCsn:v},z);if(g.FZ("expectation_logging")){var y;z.loggingExpectations=((y=g.K(Q==null?void 0:Q.commandMetadata,tj5))==null?void 0:y.loggingExpectations)||void 0}OW(H,u,X,z)}else g.ax(new g.kQ("Error: Trying to create a new screen without a rootVeType",Q))})()}; +g.S.clickCommand=function(Q,z,H){Q=Q.clickTrackingParams;H=H===void 0?0:H;Q?(H=g.Jl(H===void 0?0:H))?(Ewu(this.client,H,g.xG(Q),z),z=!0):z=!1:z=!1;return z}; +g.S.stateChanged=function(Q,z,H){this.visualElementStateChanged(g.xG(Q),z,H===void 0?0:H)}; +g.S.visualElementStateChanged=function(Q,z,H){H=H===void 0?0:H;H===0&&this.B.has(H)?this.N.push([Q,z]):pap(this,Q,z,H)};IA.prototype.fetch=function(Q,z,H){var f=this,b=ZNY(Q,z,H);return new Promise(function(L,u){function X(){if(H==null?0:H.tK)try{var y=f.handleResponse(Q,b.status,b.response,H);L(y)}catch(q){u(q)}else L(f.handleResponse(Q,b.status,b.response,H))} +b.onerror=X;b.onload=X;var v;b.send((v=z.body)!=null?v:null)})}; +IA.prototype.handleResponse=function(Q,z,H,f){H=H.replace(")]}'","");try{var b=JSON.parse(H)}catch(L){g.ax(new g.kQ("JSON parsing failed after XHR fetch",Q,z,H));if((f==null?0:f.tK)&&H)throw new g.my(1,"JSON parsing failed after XHR fetch");b={}}z!==200&&(g.ax(new g.kQ("XHR API fetch failed",Q,z,H)),b=Object.assign({},b,{errorMetadata:{status:z}}));return b};AK.getInstance=function(){var Q=g.Kn("ytglobal.storage_");Q||(Q=new AK,g.D6("ytglobal.storage_",Q));return Q}; +AK.prototype.estimate=function(){var Q,z,H;return g.B(function(f){Q=navigator;return((z=Q.storage)==null?0:z.estimate)?f.return(Q.storage.estimate()):((H=Q.webkitTemporaryStorage)==null?0:H.queryUsageAndQuota)?f.return(G3J()):f.return()})}; +g.D6("ytglobal.storageClass_",AK);vH.prototype.NO=function(Q){this.handleError(Q)}; +vH.prototype.logEvent=function(Q,z){switch(Q){case "IDB_DATA_CORRUPTED":g.FZ("idb_data_corrupted_killswitch")||this.Z("idbDataCorrupted",z);break;case "IDB_UNEXPECTEDLY_CLOSED":this.Z("idbUnexpectedlyClosed",z);break;case "IS_SUPPORTED_COMPLETED":g.FZ("idb_is_supported_completed_killswitch")||this.Z("idbIsSupportedCompleted",z);break;case "QUOTA_EXCEEDED":jTZ(this,z);break;case "TRANSACTION_ENDED":this.L&&Math.random()<=.1&&this.Z("idbTransactionEnded",z);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":Q= +Object.assign({},z,{hasWindowUnloaded:this.B}),this.Z("idbTransactionAborted",Q)}};var VE={},bYc=g.HU("yt-player-local-media",{lU:(VE.index={Gj:2},VE.media={Gj:2},VE.captions={Gj:5},VE),shared:!1,upgrade:function(Q,z){z(2)&&(g.Yw(Q,"index"),g.Yw(Q,"media"));z(5)&&g.Yw(Q,"captions");z(6)&&(rG(Q,"metadata"),rG(Q,"playerdata"))}, +version:5});var lcJ={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1,kitkat:4.4,lollipop:5.1,marshmallow:6,nougat:7.1},dx;a:{var mP=g.Iu();mP=mP.toLowerCase();if(g.xO(mP,"android")){var Rex=mP.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(Rex){var Q0B=parseFloat(Rex[1]);if(Q0B<100){dx=Q0B;break a}}var zo5=mP.match("("+Object.keys(lcJ).join("|")+")");dx=zo5?lcJ[zo5[0]]:0}else dx=void 0}var Il=dx,N$=Il>=0;var AJ8=window;var FmZ=EE(function(){var Q,z;return(z=(Q=window).matchMedia)==null?void 0:z.call(Q,"(prefers-reduced-motion: reduce)").matches});var rZ;g.YA=new I7;rZ=0;var sW={kh:function(Q,z){var H=Q[0];Q[0]=Q[z%Q.length];Q[z%Q.length]=H}, +ZV:function(Q,z){Q.splice(0,z)}, +OP:function(Q){Q.reverse()}};var Dpu=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var ki=YVZ()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.Ta?!0:!1;var H6n={Q6q:"adunit",Btc:"detailpage",jv5:"editpage",SuT:"embedded",r83:"leanback",zOn:"previewpage",qpj:"profilepage",f7:"unplugged",w5q:"playlistoverview",gc3:"sponsorshipsoffer",d0v:"shortspage",Otc:"handlesclaiming",GOv:"immersivelivepage",Z4T:"creatormusic",Kav:"immersivelivepreviewpage",vn5:"admintoolyurt",Cdl:"shortsaudiopivot",g3m:"consumption"};var wx,HwY,x2;wx={};g.DJ=(wx.STOP_EVENT_PROPAGATION="html5-stop-propagation",wx.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",wx.IV_DRAWER_OPEN="ytp-iv-drawer-open",wx.MAIN_VIDEO="html5-main-video",wx.VIDEO_CONTAINER="html5-video-container",wx.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",wx.HOUSE_BRAND="house-brand",wx);HwY={};x2=(HwY.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",HwY.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",HwY);var cOA={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var DSk={ANDROID:3,ANDROID_KIDS:18,ANDROID_MUSIC:21,ANDROID_UNPLUGGED:29,WEB:1,WEB_REMIX:67,WEB_UNPLUGGED:41,IOS:5,IOS_KIDS:19,IOS_MUSIC:26,IOS_UNPLUGGED:33},KJL={android:"ANDROID","android.k":"ANDROID_KIDS","android.m":"ANDROID_MUSIC","android.up":"ANDROID_UNPLUGGED",youtube:"WEB","youtube.m":"WEB_REMIX","youtube.up":"WEB_UNPLUGGED",ytios:"IOS","ytios.k":"IOS_KIDS","ytios.m":"IOS_MUSIC","ytios.up":"IOS_UNPLUGGED"},h39={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var FeL={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.QZ.prototype.getLanguageInfo=function(){return this.Ii}; +g.QZ.prototype.getXtags=function(){if(!this.xtags){var Q=this.id.split(";");Q.length>1&&(this.xtags=Q[1])}return this.xtags}; +g.QZ.prototype.toString=function(){return this.Ii.name}; +g.QZ.prototype.getLanguageInfo=g.QZ.prototype.getLanguageInfo;zQ.prototype.jH=function(Q){return this.B===Q.B&&this.Z===Q.Z&&this.L===Q.L&&this.reason===Q.reason&&(!fu||this.oi===Q.oi)}; +zQ.prototype.isLocked=function(){return this.L&&!!this.B&&this.B===this.Z}; +zQ.prototype.compose=function(Q){if(Q.L&&b$(Q))return D1;if(Q.L||b$(this))return Q;if(this.L||b$(Q))return this;var z=this.B&&Q.B?Math.max(this.B,Q.B):this.B||Q.B,H=this.Z&&Q.Z?Math.min(this.Z,Q.Z):this.Z||Q.Z;z=Math.min(z,H);var f=0;fu&&(f=this.oi!==0&&Q.oi!==0?Math.min(this.oi,Q.oi):this.oi===0?Q.oi:this.oi);return fu&&z===this.B&&H===this.Z&&f===this.oi||!fu&&z===this.B&&H===this.Z?this:fu?new zQ(z,H,!1,H===this.Z&&f===this.oi?this.reason:Q.reason,f):new zQ(z,H,!1,H===this.Z?this.reason:Q.reason)}; +zQ.prototype.D=function(Q){return!Q.video||fu&&this.oi!==0&&this.oi=0}; +g.S.Rt=function(){var Q=this.segments[this.segments.length-1];return Q?Q.endTime:NaN}; +g.S.jx=function(){return this.segments[0].startTime}; +g.S.LK=function(){return this.segments.length}; +g.S.j0=function(){return 0}; +g.S.EX=function(Q){return(Q=this.Ue(Q))?Q.Ah:-1}; +g.S.KT=function(Q){return(Q=this.XD(Q))?Q.sourceURL:""}; +g.S.getStartTime=function(Q){return(Q=this.XD(Q))?Q.startTime:0}; +g.S.r0=function(Q){return this.getStartTime(Q)+this.getDuration(Q)}; +g.S.Sc=fn(1);g.S.isLoaded=function(){return this.segments.length>0}; +g.S.XD=function(Q){if(this.Z&&this.Z.Ah===Q)return this.Z;Q=g.Sj(this.segments,new J0(Q,0,0,0,""),function(z,H){return z.Ah-H.Ah}); +return this.Z=Q>=0?this.segments[Q]:null}; +g.S.Ue=function(Q){if(this.Z&&this.Z.startTime<=Q&&Q=0?this.segments[Q]:this.segments[Math.max(0,-Q-2)]}; +g.S.append=function(Q){if(Q.length)if(Q=g.z7(Q),this.segments.length){var z=this.segments.length?g.dJ(this.segments).endTime:0,H=Q[0].Ah-this.Xg();H>1&&RpY(this.segments);for(H=H>0?0:-H+1;HQ.Ah&&this.index.ud()<=Q.Ah+1}; +g.S.update=function(Q,z,H){this.index.append(Q);gKn(this.index,H);Q=this.index;Q.B=z;Q.L="update"}; +g.S.SH=function(){return this.WC()?!0:xl.prototype.SH.call(this)}; +g.S.Di=function(Q,z){var H=this.index.KT(Q),f=this.index.getStartTime(Q),b=this.index.getDuration(Q),L;z?b=L=0:L=this.info.oi>0?this.info.oi*b:1E3;return new ad([new Id(3,this,void 0,"liveCreateRequestInfoForSegment",Q,f,b,0,L,!z)],H)}; +g.S.XO=function(){return this.WC()?0:this.initRange.length}; +g.S.JA=function(){return!1};K_.prototype.update=function(Q){var z=void 0;this.B&&(z=this.B);var H=new K_,f=Array.from(Q.getElementsByTagName("S"));if(f.length){var b=+W8(Q,"timescale")||1,L=(+f[0].getAttribute("t")||0)/b,u=+W8(Q,"startNumber")||0;H.D=L;var X=z?z.startSecs+z.NB:0,v=Date.parse(qUL(W8(Q,"yt:segmentIngestTime")))/1E3;H.S=Q.parentElement.tagName==="SegmentTemplate";H.S&&(H.Y=W8(Q,"media"));Q=z?u-z.Ah:1;H.j=Q>0?0:-Q+1;Q=g.n(f);for(f=Q.next();!f.done;f=Q.next()){f=f.value;for(var y=+f.getAttribute("d")/b,q=(+f.getAttribute("yt:sid")|| +0)/b,M=+f.getAttribute("r")||0,C=0;C<=M;C++)if(z&&u<=z.Ah)u++;else{var t=new v6Z(u,X,y,v+q,L);H.Z.push(t);var E=f;var G=b,x=t.startSecs;t=E.getAttribute("yt:cuepointTimeOffset");var J=E.getAttribute("yt:cuepointDuration");if(t&&J){t=Number(t);x=-t/G+x;G=Number(J)/G;J=E.getAttribute("yt:cuepointContext")||null;var I=E.getAttribute("yt:cuepointIdentifier")||"";E=E.getAttribute("yt:cuepointEvent")||"";E=new UY(x,G,J,I,bwu[E]||"unknown",t)}else E=null;E&&H.L.push(E);u++;X+=y;L+=y;v+=y+q}}H.Z.length&& +(H.B=g.dJ(H.Z))}this.j=H.j;this.B=H.B||this.B;g.HY(this.Z,H.Z);g.HY(this.L,H.L);this.S=H.S;this.Y=H.Y;this.D===-1&&(this.D=H.getStreamTimeOffset())}; +K_.prototype.getStreamTimeOffset=function(){return this.D===-1?0:this.D};g.p(dV,g.NB);g.S=dV.prototype;g.S.NR=function(){return this.V9}; +g.S.YM=function(Q,z){Q=m$(this,Q);return Q>=0&&(z||!this.segments[Q].pending)}; +g.S.ud=function(){return this.Kr?this.segments.length?this.Ue(this.jx()).Ah:-1:g.NB.prototype.ud.call(this)}; +g.S.jx=function(){if(this.l8)return 0;if(!this.Kr)return g.NB.prototype.jx.call(this);if(!this.segments.length)return 0;var Q=Math.max(g.dJ(this.segments).endTime-this.Ic,0);return this.Li>0&&this.Ue(Q).Ah0)return this.s7/1E3;if(!this.segments.length)return g.NB.prototype.Rt.call(this);var Q=this.Xg();if(!this.Kr||Q<=this.segments[this.segments.length-1].Ah)Q=this.segments[this.segments.length-1];else{var z=this.segments[this.segments.length-1];Q=new J0(Q,Math.max(0,z.startTime-(z.Ah-Q)*this.V9),this.V9,0,"sq/"+Q,void 0,void 0,!0)}return this.l8?Math.min(this.Ic,Q.endTime):Q.endTime}; +g.S.LK=function(){return this.Kr?this.segments.length?this.Xg()-this.ud()+1:0:g.NB.prototype.LK.call(this)}; +g.S.Xg=function(){var Q=Math.min(this.zs,Math.max(g.NB.prototype.Xg.call(this),this.Gp)),z=this.Ic*1E3;z=this.s7>0&&this.s70&&this.Gp>0&&!z&&(z=this.Ue(this.Ic))&&(Q=Math.min(z.Ah-1,Q));return Q}; +g.S.I_=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; +g.S.pY=function(Q){var z=m$(this,Q.Ah);if(z>=0)this.segments[z]=Q;else if(this.segments.splice(-(z+1),0,Q),this.qJ&&Q.Ah%(300/this.V9)===0){var H=this.segments[0].Ah,f=Math.floor(this.qJ/this.V9);Q=Q.Ah-f;z=-(z+1)-f;z>0&&Q>H&&(this.segments=this.segments.slice(z))}}; +g.S.Oa=function(){return this.Gp}; +g.S.yH=function(Q){return Vj?!this.B&&Q>=0&&this.Xg()<=Q:g.NB.prototype.yH.call(this,Q)}; +g.S.Ue=function(Q){if(!this.Kr)return g.NB.prototype.Ue.call(this,Q);if(!this.segments.length)return null;var z=this.segments[this.segments.length-1];if(Q=z.endTime)z=z.Ah+Math.floor((Q-z.endTime)/this.V9+1);else{z=Xk(this.segments,function(f){return Q=f.endTime?1:0}); +if(z>=0)return this.segments[z];var H=-(z+1);z=this.segments[H-1];H=this.segments[H];z=Math.floor((Q-z.endTime)/((H.startTime-z.endTime)/(H.Ah-z.Ah-1))+1)+z.Ah}return this.XD(z)}; +g.S.XD=function(Q){if(!this.Kr)return g.NB.prototype.XD.call(this,Q);if(!this.segments.length)return null;var z=m$(this,Q);if(z>=0)return this.segments[z];var H=-(z+1);z=this.V9;if(H===0)var f=Math.max(0,this.segments[0].startTime-(this.segments[0].Ah-Q)*z);else H===this.segments.length?(f=this.segments[this.segments.length-1],f=f.endTime+(Q-f.Ah-1)*z):(f=this.segments[H-1],z=this.segments[H],z=(z.startTime-f.endTime)/(z.Ah-f.Ah-1),f=f.endTime+(Q-f.Ah-1)*z);return new J0(Q,f,z,0,"sq/"+Q,void 0,void 0, +!0)}; +var Vj=!1;g.p(wV,hi);g.S=wV.prototype;g.S.dR=function(){return!0}; +g.S.SH=function(){return!0}; +g.S.Me=function(Q){return this.Mm()&&Q.L&&!Q.S||!Q.Z.index.yH(Q.Ah)}; +g.S.t3=function(){}; +g.S.UU=function(Q,z){return typeof Q!=="number"||isFinite(Q)?hi.prototype.UU.call(this,Q,z===void 0?!1:z):new ad([new Id(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.Cq,void 0,this.Cq*this.info.oi)],"")}; +g.S.Di=function(Q,z){var H=H===void 0?!1:H;if(this.index.YM(Q))return hi.prototype.Di.call(this,Q,z);var f=this.index.getStartTime(Q),b=Math.round(this.Cq*this.info.oi),L=this.Cq;z&&(L=b=0);return new ad([new Id(H?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",Q,f,L,void 0,b,!z)],Q>=0?"sq/"+Q:"")};g.p(kl,xl);g.S=kl.prototype;g.S.E7=function(){return!1}; +g.S.Mm=function(){return!1}; +g.S.dR=function(){return!1}; +g.S.t3=function(){return new ad([new Id(1,this,void 0,"otfInit")],this.S)}; +g.S.B1=function(){return null}; +g.S.VJ=function(Q){this.Me(Q);return Z38(this,sN(Q),!1)}; +g.S.UU=function(Q,z){z=z===void 0?!1:z;Q=this.index.EX(Q);z&&(Q=Math.min(this.index.Xg(),Q+1));return Z38(this,Q,!0)}; +g.S.ZQ=function(Q){Q.info.type===1&&(this.Z||(this.Z=Fh(Q.Z)),Q.B&&Q.B.uri==="http://youtube.com/streaming/otf/durations/112015"&&GsY(this,Q.B))}; +g.S.Me=function(Q){return Q.L===0?!0:this.index.Xg()>Q.Ah&&this.index.ud()<=Q.Ah+1}; +g.S.XO=function(){return 0}; +g.S.JA=function(){return!1};Tz.prototype.Lp=function(){return this.Z.Lp()};g.S=g.Hj.prototype;g.S.YM=function(Q){return Q<=this.Xg()}; +g.S.j0=function(Q){return this.offsets[Q]}; +g.S.getStartTime=function(Q){return this.startTicks[Q]/this.Z}; +g.S.r0=function(Q){return this.getStartTime(Q)+this.getDuration(Q)}; +g.S.Sc=fn(0);g.S.JM=function(){return NaN}; +g.S.getDuration=function(Q){Q=this.s8(Q);return Q>=0?Q/this.Z:-1}; +g.S.s8=function(Q){return Q+1=0}; +g.S.Rt=function(){return this.B?this.startTicks[this.count]/this.Z:NaN}; +g.S.jx=function(){return 0}; +g.S.LK=function(){return this.count}; +g.S.KT=function(){return""}; +g.S.EX=function(Q){Q=g.Sj(this.startTicks.subarray(0,this.count),Q*this.Z);return Q>=0?Q:Math.max(0,-Q-2)}; +g.S.isLoaded=function(){return this.Xg()>=0}; +g.S.hO=function(Q,z){if(Q>=this.Xg())return 0;var H=0;for(z=this.getStartTime(Q)+z;Qthis.getStartTime(Q);Q++)H=Math.max(H,IFA(this,Q)/this.getDuration(Q));return H}; +g.S.resize=function(Q){Q+=2;var z=this.offsets;this.offsets=new Float64Array(Q+1);var H=this.startTicks;this.startTicks=new Float64Array(Q+1);for(Q=0;Q0&&Q&&(H=H.range.end+1,Q=Math.min(Q,this.info.contentLength-H),Q>0&&f.push(new Id(4,this,Ji(H,Q),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,z)));return new ad(f)}; +g.S.ZQ=function(Q){if(Q.info.type===1){if(this.Z)return;this.Z=Fh(Q.Z)}else if(Q.info.type===2){if(this.S||this.index.Xg()>=0)return;if(g.eM(this.info)){var z=this.index,H=Q.Lp();Q=Q.info.range.start;var f=g.DM(H,0,1936286840);H=AIp(f);z.Z=H.timescale;var b=H.Wi;z.offsets[0]=H.At+Q+f.size;z.startTicks[0]=b;z.B=!0;Q=H.ZD.length;for(f=0;f0&&Q===L[0].Ma)for(Q=0;Q=z+H)break}b.length||g.PT(new g.kQ("b189619593",""+Q,""+z,""+H));return new ad(b)}; +g.S.tE=function(Q){for(var z=this.ev(Q.info),H=Q.info.range.start+Q.info.B,f=[],b=0;b=this.index.j0(H+1);)H++;return this.Cf(H,z,Q.L).Tv}; +g.S.Me=function(Q){Q.lc();return this.SH()?!0:Q.range.end+1this.info.contentLength&&(z=new ON(z.start,this.info.contentLength-1)),new ad([new Id(4,Q.Z,z,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,Q.clipId)]);Q.type===4&&(Q=this.ev(Q),Q=Q[Q.length-1]);var H=0,f=Q.range.start+Q.B+Q.L;Q.type===3&&(Q.lc(),H=Q.Ah,f===Q.range.end+1&&(H+=1));return this.Cf(H,f,z)}; +g.S.VJ=function(){return null}; +g.S.UU=function(Q,z,H){z=z===void 0?!1:z;Q=this.index.EX(Q);z&&(Q=Math.min(this.index.Xg(),Q+1));return this.Cf(Q,this.index.j0(Q),0,H)}; +g.S.E7=function(){return!0}; +g.S.Mm=function(){return!0}; +g.S.dR=function(){return!1}; +g.S.XO=function(){return this.indexRange.length+this.initRange.length}; +g.S.JA=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var To={},m6A=(To.COLOR_PRIMARIES_BT709="bt709",To.COLOR_PRIMARIES_BT2020="bt2020",To.COLOR_PRIMARIES_UNKNOWN=null,To.COLOR_PRIMARIES_UNSPECIFIED=null,To),eR={},YU9=(eR.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",eR.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",eR.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",eR.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",eR.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,eR.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,eR);g.Ly.prototype.getName=function(){return this.name}; +g.Ly.prototype.getId=function(){return this.id}; +g.Ly.prototype.getIsDefault=function(){return this.isDefault}; +g.Ly.prototype.toString=function(){return this.name}; +g.Ly.prototype.getName=g.Ly.prototype.getName;g.Ly.prototype.getId=g.Ly.prototype.getId;g.Ly.prototype.getIsDefault=g.Ly.prototype.getIsDefault;var PZa=/action_display_post/;var aFu,Xo,vj;g.p(yG,g.vf);g.S=yG.prototype;g.S.isLoading=function(){return this.state===1}; +g.S.vl=function(){return this.state===3}; +g.S.hYI=function(Q){var z=Q.getElementsByTagName("Representation");if(Q.getElementsByTagName("SegmentList").length>0||Q.getElementsByTagName("SegmentTemplate").length>0){this.AZ=this.B=!0;this.timeline||(this.timeline=new CZa);n6a(this.timeline,Q);this.publish("refresh");for(Q=0;Q=0?q=od(C):M=M+"?range="+C}v.call(X,new J0(y.Ah,y.startSecs,y.NB,y.Z,M,q,y.B))}f=b}H.update(f,this.isLive,this.uT)}g6Y(this.timeline);return!0}this.duration=ya9(W8(Q,"mediaPresentationDuration")); +a:{for(Q=0;Q0))return this.jA()-Q}}Q=this.Z;for(var z in Q){var H=Q[z].index;if(H.isLoaded()&&!Hs(Q[z].info.mimeType))return H.jx()}return 0}; +g.S.getStreamTimeOffset=function(){return this.Y}; +g.S.JM=function(Q){for(var z in this.Z){var H=this.Z[z].index;if(H.isLoaded()){var f=H.EX(Q),b=H.JM(f);if(b)return b+Q-H.getStartTime(f)}}return NaN}; +var xi=null,L6m,Om=!((L6m=navigator.mediaCapabilities)==null||!L6m.decodingInfo),Rqv={commentary:1,alternate:2,dub:3,main:4};var td=new Set,ok=new Map;Ik.prototype.clone=function(Q){return new Ik(this.flavor,Q,this.B,this.experiments)}; +Ik.prototype.TL=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; +Ik.prototype.getInfo=function(){switch(this.keySystem){case "com.youtube.playready":return"PRY";case "com.microsoft.playready":return"PRM";case "com.widevine.alpha":return"WVA";case "com.youtube.widevine.l3":return"WVY";case "com.youtube.fairplay":return"FPY";case "com.youtube.fairplay.sbdl":return"FPC";case "com.apple.fps.1_0":return"FPA";default:return this.keySystem}}; +var uPJ={},iD=(uPJ.playready=["com.youtube.playready","com.microsoft.playready"],uPJ.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],uPJ),ly={},qZn=(ly.widevine="DRM_SYSTEM_WIDEVINE",ly.fairplay="DRM_SYSTEM_FAIRPLAY",ly.playready="DRM_SYSTEM_PLAYREADY",ly),RS={},S$x=(RS.widevine=1,RS.fairplay=2,RS.playready=3,RS);Wj.prototype.Fc=function(Q,z){z=z===void 0?1:z;this.S8+=z;this.B+=Q;Q/=z;for(var H=0;H0)f+="."+hQ[b].toFixed(0)+"_"+H.Z[b].toFixed(0);else break;H=f}H&&(Q[z]=H)}this.Z=new CCp;return Q}; +g.S.toString=function(){return""};g.S=Zx9.prototype;g.S.isActive=function(){return!1}; +g.S.t6=function(){}; +g.S.Qi=function(){}; +g.S.o5=function(Q,z){return z}; +g.S.Jb=function(){}; +g.S.gU=function(){}; +g.S.UJ=function(Q,z){return z()}; +g.S.SO=function(){return{}}; +g.S.toString=function(){return""};var Qm,XqO,vfs,ycO,q$O,M4B,zW,xb,fH,J38,mf;Qm=new Zx9;XqO=!!+lq("html5_enable_profiler");vfs=!!+lq("html5_onesie_enable_profiler");ycO=!!+lq("html5_offline_encryption_enable_profiler");q$O=!!+lq("html5_performance_impact_profiling_timer_ms");M4B=!!+lq("html5_drm_enable_profiler");zW=XqO||vfs||ycO||q$O||M4B?new Ed8:Qm;g.BP=XqO?zW:Qm;xb=vfs?zW:Qm;fH=ycO?zW:Qm;J38=q$O?zW:Qm;mf=M4B?zW:Qm;var dS;g.p(Ky,g.h); +Ky.prototype.initialize=function(Q,z){for(var H=this,f=g.n(Object.keys(Q)),b=f.next();!b.done;b=f.next()){b=g.n(Q[b.value]);for(var L=b.next();!L.done;L=b.next())if(L=L.value,L.AM)for(var u=g.n(Object.keys(L.AM)),X=u.next();!X.done;X=u.next()){var v=X.value;X=v;v=iD[v];!v&&this.V("html5_enable_vp9_fairplay")&&X==="fairplay"&&(v=["com.youtube.fairplay.sbdl"]);if(v){v=g.n(v);for(var y=v.next();!y.done;y=v.next())y=y.value,this.L[y]=this.L[y]||new Ik(X,y,L.AM[X],this.aj.experiments),this.Z[X]=this.Z[X]|| +{},this.Z[X][L.mimeType]=!0}}}wR()&&(this.L["com.youtube.fairplay"]=new Ik("fairplay","com.youtube.fairplay","",this.aj.experiments),this.V("html5_enable_vp9_fairplay")||(this.Z.fairplay=this.Z.fairplay||{},this.Z.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.Z.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.B=MmJ(z,this.useCobaltWidevine,this.V("html5_enable_safari_fairplay"),this.V("html5_enable_vp9_fairplay")).filter(function(q){return!!H.L[q]})}; +Ky.prototype.V=function(Q){return this.aj.experiments.Nc(Q)};var CrY={"":"LIVE_STREAM_MODE_UNKNOWN",dvr:"LIVE_STREAM_MODE_DVR",lp:"LIVE_STREAM_MODE_LP",post:"LIVE_STREAM_MODE_POST",window:"LIVE_STREAM_MODE_WINDOW",live:"LIVE_STREAM_MODE_LIVE"};od_.prototype.V=function(Q){return this.experiments.Nc(Q)};var b6_={RED:"red",KZn:"white"};JGL.prototype.Nc=function(Q){Q=this.flags[Q];JSON.stringify(Q);return Q==="true"};var AGa=Promise.resolve(),Bnv=window.queueMicrotask?window.queueMicrotask.bind(window):YHk;eb.prototype.canPlayType=function(Q,z){Q=Q.canPlayType?Q.canPlayType(z):!1;kw?Q=Q||t4m[z]:Il===2.2?Q=Q||EfT[z]:dR()&&(Q=Q||pqs[z]);return!!Q}; +eb.prototype.isTypeSupported=function(Q){return this.wh?window.cast.receiver.platform.canDisplayType(Q):r5(Q)}; +var EfT={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},pqs={"application/x-mpegURL":"maybe"},t4m={"application/x-mpegURL":"maybe"};g.p(zt,g.vf);zt.prototype.add=function(Q,z){if(!this.items[Q]&&(z.BV||z.Hf||z.g2)){var H=this.items,f=z;Object.isFrozen&&!Object.isFrozen(z)&&(f=Object.create(z),Object.freeze(f));H[Q]=f;this.publish("vast_info_card_add",Q)}}; +zt.prototype.remove=function(Q){var z=this.get(Q);delete this.items[Q];return z}; +zt.prototype.get=function(Q){return this.items[Q]||null}; +zt.prototype.isEmpty=function(){return g.ra(this.items)};g.p(H0,g.j7);H0.prototype.Z=function(Q,z){return g.j7.prototype.Z.call(this,Q,z)}; +H0.prototype.B=function(Q,z,H){var f=this;return g.B(function(b){return b.Z==1?g.Y(b,g.j7.prototype.B.call(f,Q,z,H),2):b.return(b.B)})}; +g.p(fo,g.Fm);fo.prototype.encrypt=function(Q,z){return g.Fm.prototype.encrypt.call(this,Q,z)};var Lo;uf.prototype.add=function(Q){if(this.pos+20>this.data.length){var z=new Uint8Array(this.data.length*2);z.set(this.data);this.data=z}for(;Q>31;)this.data[this.pos++]=Lo[(Q&31)+32],Q>>=5;this.data[this.pos++]=Lo[Q|0]}; +uf.prototype.dP=function(){return g.Jr(this.data.subarray(0,this.pos))}; +uf.prototype.reset=function(){this.pos=0};Xu.prototype.iH=function(Q,z){var H=Math.pow(this.alpha,Q);this.Z=z*(1-H)+H*this.Z;this.B+=Q}; +Xu.prototype.gQ=function(){return this.Z/(1-Math.pow(this.alpha,this.B))};v0.prototype.iH=function(Q,z){for(var H=0;H<10;H++){var f=this.Z[H],b=f+(H===0?Q:0),L=1*Math.pow(2,H);if(b<=L)break;f=Math.min(1,(b-L*.5)/f);for(b=0;b<16;b++)L=this.values[H*16+b]*f,this.values[(H+1)*16+b]+=L,this.Z[H+1]+=L,this.values[H*16+b]-=L,this.Z[H]-=L}f=H=0;b=8192;z>8192&&(H=Math.ceil(Math.log(z/8192)/Math.log(2)),f=8192*Math.pow(2,H-1),b=f*2);H+2>16?this.values[15]+=Q:(z=(z-f)/(b-f),this.values[H]+=Q*(1-z),this.values[H+1]+=Q*z);this.Z[0]+=Q}; +v0.prototype.gQ=function(){var Q=Q===void 0?this.B:Q;var z=z===void 0?.02:z;var H=H===void 0?.98:H;for(var f=this.L,b=0;b<16;b++)f[b]=this.values[b];b=this.Z[0];for(var L=1;L<11;L++){var u=this.Z[L];if(u===0)break;for(var X=Math.min(1,(Q-b)/u),v=0;v<16;v++)f[v]+=this.values[L*16+v]*X;b+=u*X;if(X<1)break}for(L=Q=u=0;L<16;L++){X=u+f[L]/b;Q+=Math.max(0,Math.min(X,H)-Math.max(u,z))*(L>0?8192*Math.pow(2,L-1):0);if(X>H)break;u=X}return Q/(H-z)};yq.prototype.iH=function(Q,z){Q=Math.min(this.Z,Math.max(1,Math.round(Q*this.resolution)));Q+this.B>=this.Z&&(this.L=!0);for(;Q--;)this.values[this.B]=z,this.B=(this.B+1)%this.Z;this.uF=!0}; +yq.prototype.percentile=function(Q){var z=this;if(!this.L&&this.B===0)return 0;this.uF&&(g.vY(this.S,function(H,f){return z.values[H]-z.values[f]}),this.uF=!1); +return this.values[this.S[Math.round(Q*((this.L?this.Z:this.B)-1))]]||0}; +yq.prototype.gQ=function(){return this.j?(this.percentile(this.D-this.j)+this.percentile(this.D)+this.percentile(this.D+this.j))/3:this.percentile(this.D)};g.p(q$,g.h);q$.prototype.iT=function(){var Q;(Q=this.mq)==null||Q.start();if(Zd(this)&&this.policy.N){var z;(z=this.sV)==null||z.JH()}};kE8.prototype.V=function(Q){return this.experiments.Nc(Q)};g.p(e2L,g.h);var fiL="blogger ads-preview gac books docs duo flix google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),vEa={BSe:"caoe",qfq:"capsv",A5T:"cbrand",V2T:"cbr",n3v:"cbrver",hHq:"cchip",t2$:"ccappver",RHh:"ccrv",dG3:"cfrmver",SGe:"c",VNI:"cver",ABv:"ctheme",f5T:"cplayer",fA3:"cmodel",ig3:"cnetwork",NNn:"cos",FeT:"cosver",ocm:"cplatform",fKc:"crqyear"};g.p(hE,g.h);g.S=hE.prototype;g.S.V=function(Q){return this.experiments.Nc(Q)}; +g.S.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; +g.S.getVideoUrl=function(Q,z,H,f,b,L,u){z={list:z};H&&(b?z.time_continue=H:z.t=H);H=u?"music.youtube.com":g.Dd(this);b=H==="www.youtube.com";!L&&f&&b?L="https://youtu.be/"+Q:g.rm(this)?(L="https://"+H+"/fire",z.v=Q):(L&&b?(L=this.protocol+"://"+H+"/shorts/"+Q,f&&(z.feature="share")):(L=this.protocol+"://"+H+"/watch",z.v=Q),kw&&(Q=kN9())&&(z.ebc=Q));return g.de(L,z)}; +g.S.getVideoEmbedCode=function(Q,z,H,f){z="https://"+g.Dd(this)+"/embed/"+z;f&&(z=g.de(z,{list:f}));f=H.width;H=H.height;z=R$(z);Q=R$(Q!=null?Q:"YouTube video player");return'')}; +g.S.supportsGaplessAudio=function(){return g.YK&&!kw&&K1()>=74||g.Um&&g.nr(68)?!0:!1}; +g.S.supportsGaplessShorts=function(){return!this.V("html5_enable_short_gapless")||this.En||g.$w?!1:!0}; +g.S.getPlayerType=function(){return this.Z.cplayer}; +g.S.vz=function(){return this.cq}; +var CBZ=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],XZL=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],qvJ=[19];var Hh={},pZA=(Hh["140"]={numChannels:2},Hh["141"]={numChannels:2},Hh["251"]={audioSampleRate:48E3,numChannels:2},Hh["774"]={audioSampleRate:48E3,numChannels:2},Hh["380"]={numChannels:6},Hh["328"]={numChannels:6},Hh["773"]={},Hh),fe={},tpu=(fe["1"]='video/mp4; codecs="av01.0.08M.08"',fe["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',fe["1e"]='video/mp4; codecs="av01.0.08M.08"',fe["9"]='video/webm; codecs="vp9"',fe["("]='video/webm; codecs="vp9"',fe["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', +fe.h='video/mp4; codecs="avc1.64001e"',fe.H='video/mp4; codecs="avc1.64001e"',fe.o='audio/webm; codecs="opus"',fe.a='audio/mp4; codecs="mp4a.40.2"',fe.ah='audio/mp4; codecs="mp4a.40.2"',fe.mac3='audio/mp4; codecs="ac-3"; channels=6',fe.meac3='audio/mp4; codecs="ec-3"; channels=6',fe.i='audio/mp4; codecs="iamf.001.001.Opus"',fe),b3={},EE_=(b3["337"]={width:3840,height:2160,bitrate:3E7,fps:30},b3["336"]={width:2560,height:1440,bitrate:15E6,fps:30},b3["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, +b3["702"]={width:7680,height:4320,bitrate:4E7,fps:60},b3["701"]={width:3840,height:2160,bitrate:2E7,fps:60},b3["700"]={width:2560,height:1440,bitrate:1E7,fps:60},b3["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},b3["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},b3["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},b3["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, +b3["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},b3["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},b3["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},b3["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},b3["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},b3["315"]={width:3840,height:2160,bitrate:2E7,fps:60},b3["308"]={width:2560, +height:1440,bitrate:1E7,fps:60},b3["303"]={width:1920,height:1080,bitrate:5E6,fps:60},b3["302"]={width:1280,height:720,bitrate:25E5,fps:60},b3["299"]={width:1920,height:1080,bitrate:75E5,fps:60},b3["298"]={width:1280,height:720,bitrate:35E5,fps:60},b3["571"]={width:7680,height:4320,bitrate:3E7,fps:60},b3["401"]={width:3840,height:2160,bitrate:15E6,fps:60},b3["400"]={width:2560,height:1440,bitrate:75E5,fps:60},b3["399"]={width:1920,height:1080,bitrate:2E6,fps:60},b3["398"]={width:1280,height:720,bitrate:1E6, +fps:60},b3["397"]={width:854,height:480,bitrate:4E5,fps:30},b3["396"]={width:640,height:360,bitrate:25E4,fps:30},b3["787"]={width:1080,height:608,bitrate:2E5,fps:30},b3["788"]={width:1080,height:608,bitrate:4E5,fps:30},b3["572"]={width:7680,height:4320,bitrate:3E7,fps:60},b3["555"]={width:3840,height:2160,bitrate:15E6,fps:60},b3["554"]={width:2560,height:1440,bitrate:75E5,fps:60},b3["553"]={width:1920,height:1080,bitrate:2E6,fps:60},b3["552"]={width:1280,height:720,bitrate:1E6,fps:60},b3["551"]={width:854, +height:480,bitrate:4E5,fps:30},b3["550"]={width:640,height:360,bitrate:25E4,fps:30},b3["313"]={width:3840,height:2160,bitrate:8E6,fps:30},b3["271"]={width:2560,height:1440,bitrate:4E6,fps:30},b3["248"]={width:1920,height:1080,bitrate:2E6,fps:30},b3["247"]={width:1280,height:720,bitrate:15E5,fps:30},b3["244"]={width:854,height:480,bitrate:52E4,fps:30},b3["243"]={width:640,height:360,bitrate:28E4,fps:30},b3["137"]={width:1920,height:1080,bitrate:4E6,fps:30},b3["136"]={width:1280,height:720,bitrate:3E6, +fps:30},b3["135"]={width:854,height:480,bitrate:1E6,fps:30},b3["385"]={width:1920,height:1080,bitrate:6503313,fps:60},b3["376"]={width:1280,height:720,bitrate:5706960,fps:60},b3["384"]={width:1280,height:720,bitrate:3660979,fps:60},b3["225"]={width:1280,height:720,bitrate:5805E3,fps:30},b3["224"]={width:1280,height:720,bitrate:453E4,fps:30},b3["145"]={width:1280,height:720,bitrate:2682052,fps:30},b3);g.S=Lv.prototype;g.S.getInfo=function(){return this.Z}; +g.S.mA=function(){return null}; +g.S.JO=function(){var Q=this.mA();return Q?(Q=g.ST(Q.Mz),Number(Q.expire)):NaN}; +g.S.GU=function(){}; +g.S.getHeight=function(){return this.Z.video.height};GTZ.prototype.build=function(){F9Y(this);var Q=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],z={};a:if(this.Z)var H=this.Z;else{H="";for(var f=g.n(this.L),b=f.next();!b.done;b=f.next())if(b=b.value,b.Ii){if(b.Ii.getIsDefault()){H=b.Ii.getId();break a}H||(H=b.Ii.getId())}}f=g.n(this.L);for(b=f.next();!b.done;b=f.next())if(b=b.value,this.j||!b.Ii||b.Ii.getId()===H)z[b.itag]||(z[b.itag]=[]),z[b.itag].push(b);H=g.n(this.B);for(f=H.next();!f.done;f=H.next())if(f=f.value,b=z[f.Z]){b=g.n(b);for(var L=b.next();!L.done;L= +b.next()){var u=Q,X=u.push;L=L.value;var v="#EXT-X-MEDIA:TYPE=AUDIO,",y="YES",q="audio";if(L.Ii){q=L.Ii;var M=q.getId().split(".")[0];M&&(v+='LANGUAGE="'+M+'",');(this.Z?this.Z===q.getId():q.getIsDefault())||(y="NO");q=q.getName()}M="";f!==null&&(M=f.itag.toString());M=Sw(this,L.url,M);v=v+('NAME="'+q+'",DEFAULT='+(y+',AUTOSELECT=YES,GROUP-ID="'))+(j9J(L,f)+'",URI="'+(M+'"'));X.call(u,v)}}H=g.n(this.S);for(f=H.next();!f.done;f=H.next())f=f.value,b=nfR,f=(u=f.Ii)?'#EXT-X-MEDIA:URI="'+Sw(this,f.url)+ +'",TYPE=SUBTITLES,GROUP-ID="'+b+'",LANGUAGE="'+u.getId()+'",NAME="'+u.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,f&&Q.push(f);H=this.S.length>0?nfR:void 0;f=g.n(this.B);for(b=f.next();!b.done;b=f.next())b=b.value,X=z[b.Z],u=void 0,((u=X)==null?void 0:u.length)>0&&(u=b,X=X[0],X="#EXT-X-STREAM-INF:BANDWIDTH="+(u.bitrate+X.bitrate)+',CODECS="'+(u.codecs+","+X.codecs+'",RESOLUTION=')+(u.width+"x"+u.height+',AUDIO="')+(j9J(X,u)+'",')+(H?'SUBTITLES="'+H+'",':"")+"CLOSED-CAPTIONS=NONE",u.fps>1&&(X+= +",FRAME-RATE="+u.fps),u.g$&&(X+=",VIDEO-RANGE="+u.g$),Q.push(X),Q.push(Sw(this,b.url,"")));return Q.join("\n")}; +var nfR="text";g.p(vV,Lv);vV.prototype.JO=function(){return this.expiration}; +vV.prototype.mA=function(){if(!this.Mz||this.Mz.Sm()){var Q=this.B.build();Q="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(Q);this.Mz=new n3(Q)}return this.Mz};g.p(yc,Lv);yc.prototype.mA=function(){return new n3(this.B.mM())}; +yc.prototype.GU=function(){this.B=OY(this.B)};g.p(qG,Lv);qG.prototype.mA=function(){return new n3(this.B)};var Le={},s9J=(Le.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",Le.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",Le.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",Le);g.S=g.MG.prototype;g.S.getId=function(){return this.id}; +g.S.getName=function(){return this.name}; +g.S.isServable=function(){return this.Z}; +g.S.mM=function(){return this.url}; +g.S.getXtags=function(){return this.xtags}; +g.S.toString=function(){return this.languageCode+": "+g.Cv(this)+" - "+this.vssId+" - "+(this.captionId||"")}; +g.S.jH=function(Q){return Q?this.toString()===Q.toString():!1}; +g.S.EZ=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var c2Y={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},i6a={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},hcu=/^(\d*)_((\d*)_?(\d*))$/;var DMc={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},K9c={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var u3={},gfu=(u3.ALWAYS=1,u3.BY_REQUEST=3,u3.UNKNOWN=void 0,u3),S2={},ZwY=(S2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",S2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",S2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",S2.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",S2);var B6a; +B6a=function(Q){for(var z=Object.keys(Q),H={},f=0;ff-z?-1:Q}; +g.S.qT=function(){return this.B.Xg()}; +g.S.UC=function(){return this.B.ud()}; +g.S.Ro=function(Q){this.B=Q};g.p(WV,iF);WV.prototype.B=function(Q,z){return iF.prototype.B.call(this,"$N|"+Q,z)}; +WV.prototype.S=function(Q,z,H){return new hh(Q,z,H,this.isLive)};var JAA=[],ka=new Set;g.p(g.Kv,g.vf);g.S=g.Kv.prototype; +g.S.setData=function(Q){Q=Q||{};var z=Q.errordetail;z!=null&&(this.errorDetail=z);var H=Q.errorcode;H!=null?this.errorCode=H:Q.status==="fail"&&(this.errorCode="auth");var f=Q.reason;f!=null&&(this.errorReason=f);var b=Q.subreason;b!=null&&(this.Jj=b);this.V("html5_enable_ssap_entity_id")||this.clientPlaybackNonce||(this.clientPlaybackNonce=Q.cpn||(this.aj.vz()?"r"+g.Ob(15):g.Ob(16)));this.WI=LF(this.aj.WI,Q.livemonitor);GCv(this,Q);var L=Q.raw_player_response;if(L)this.zK=L;else{var u=Q.player_response; +u&&(L=JSON.parse(u))}if(this.V("html5_enable_ssap_entity_id")){var X=Q.cached_load;X&&(this.R4=LF(this.R4,X));if(!this.clientPlaybackNonce){var v=Q.cpn;v?(this.b3("ssei","shdc"),this.clientPlaybackNonce=v):this.clientPlaybackNonce=this.aj.vz()?"r"+g.Ob(15):g.Ob(16)}}L&&(this.playerResponse=L);if(this.playerResponse){var y=this.playerResponse.annotations;if(y)for(var q=g.n(y),M=q.next();!M.done;M=q.next()){var C=M.value.playerAnnotationsUrlsRenderer;if(C){C.adsOnly&&(this.rp=!0);var t=C.loadPolicy; +t&&(this.annotationsLoadPolicy=gfu[t]);var E=C.invideoUrl;E&&(this.uT=z4(E));break}}var G=this.playerResponse.attestation;G&&dMn(this,G);var x=this.playerResponse.cotn;x&&(this.cotn=x);var J=this.playerResponse.heartbeatParams;if(J){nHL(this)&&(this.Dj=!0);var I=J.heartbeatToken;I&&(this.drmSessionId=J.drmSessionId||"",this.heartbeatToken=I,this.bK=Number(J.intervalMilliseconds),this.Q0=Number(J.maxRetries),this.NE=!!J.softFailOnError,this.t0=!!J.useInnertubeHeartbeatsForDrm,this.J_=!0);this.heartbeatServerData= +J.heartbeatServerData;var r;this.ox=!((r=J.heartbeatAttestationConfig)==null||!r.requiresAttestation)}var U=this.playerResponse.messages;U&&T0Y(this,U);var D=this.playerResponse.overlay;if(D){var T=D.playerControlsOverlayRenderer;if(T)if(li_(this,T.controlBgHtml),T.mutedAutoplay){var k=g.K(T.mutedAutoplay,I3J);if(k&&k.endScreen){var bL=g.K(k.endScreen,AC5);bL&&bL.text&&(this.m0=g.na(bL.text))}}else this.mutedAutoplay=!1}var SY=this.playerResponse.playabilityStatus;if(SY){var Q9=SY.backgroundability; +Q9&&Q9.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var V,R;if((V=SY.offlineability)==null?0:(R=V.offlineabilityRenderer)==null?0:R.offlineable)this.offlineable=!0;var Z=SY.contextParams;Z&&(this.contextParams=Z);var d=SY.pictureInPicture;d&&d.pictureInPictureRenderer.playableInPip&&(this.pipable=!0);SY.playableInEmbed&&(this.allowEmbed=!0);var h8=SY.ypcClickwrap;if(h8){var j5=h8.playerLegacyDesktopYpcClickwrapRenderer,tt=h8.ypcRentalActivationRenderer;if(j5)this.Ve=j5.durationMessage|| +"",this.uL=!0;else if(tt){var J8=tt.durationMessage;this.Ve=J8?g.na(J8):"";this.uL=!0}}var lL=SY.errorScreen;if(lL){if(lL.playerLegacyDesktopYpcTrailerRenderer){var uR=lL.playerLegacyDesktopYpcTrailerRenderer;this.Br=uR.trailerVideoId||"";var ns=lL.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var O=ns&&ns.ypcTrailerRenderer}else if(lL.playerLegacyDesktopYpcOfferRenderer)uR=lL.playerLegacyDesktopYpcOfferRenderer;else if(lL.ypcTrailerRenderer){O=lL.ypcTrailerRenderer;var N=O.fullVideoMessage;this.YX= +N?g.na(N):"";var A,P;this.Br=((A=g.K(O,Y2B))==null?void 0:(P=A.videoDetails)==null?void 0:P.videoId)||""}uR&&(this.vN=uR.itemTitle||"",uR.itemUrl&&(this.oW=uR.itemUrl),uR.itemBuyUrl&&(this.p$=uR.itemBuyUrl),this.i9=uR.itemThumbnail||"",this.H1=uR.offerHeadline||"",this.Ev=uR.offerDescription||"",this.ax=uR.offerId||"",this.e$=uR.offerButtonText||"",this.LU=uR.offerButtonFormattedText||null,this.z0=uR.overlayDurationMsec||NaN,this.YX=uR.fullVideoMessage||"",this.Tw=!0);if(O){var c=g.K(O,Y2B);if(c)this.MD= +{raw_player_response:c};else{var zu=g.K(O,DIL);this.MD=zu?L1(zu):null}this.Tw=!0}}}var Ln=this.playerResponse.playbackTracking;if(Ln){var uL=Q,a=gr(Ln.googleRemarketingUrl);a&&(this.googleRemarketingUrl=a);var qk=gr(Ln.youtubeRemarketingUrl);qk&&(this.youtubeRemarketingUrl=qk);var pn={},v_=gr(Ln.ptrackingUrl);if(v_){var Yv=Z1(v_),ET=Yv.oid;ET&&(this.vu=ET);var iR=Yv.pltype;iR&&(this.JI=iR);var tC=Yv.ptchn;tC&&(this.s9=tC);var dc=Yv.ptk;dc&&(this.QW=encodeURIComponent(dc));var WY=Yv.m;WY&&(this.BP= +WY)}var y3=gr(Ln.qoeUrl);if(y3){for(var Bo=g.ST(y3),ks=g.n(Object.keys(Bo)),Mz=ks.next();!Mz.done;Mz=ks.next()){var wf=Mz.value,D3=Bo[wf];Bo[wf]=Array.isArray(D3)?D3.join(","):D3}this.NI=Bo;var kZ=Bo.cat;kZ&&(this.V("html5_enable_qoe_cat_list")?this.v0=this.v0.concat(kZ.split(",")):this.kX=kZ);var xZ=Bo.live;xZ&&(this.wD=xZ);var CC=Bo.drm_product;CC&&(this.gS=CC)}var B4=gr(Ln.videostatsPlaybackUrl);if(B4){var E7=Z1(B4),P4=E7.adformat;if(P4){uL.adformat=P4;var a2=this.C(),Ua=W9_(P4,this.JY,a2.D,a2.Y); +Ua&&(this.adFormat=Ua)}var Ap=E7.aqi;Ap&&(uL.ad_query_id=Ap);var Qr=E7.autoplay;Qr&&(this.Yn=Qr=="1",this.D4=Qr=="1",fR(this,"vss"));var Tl=E7.autonav;Tl&&(this.isAutonav=Tl=="1");var b4=E7.delay;b4&&(this.Xa=H3(b4));var O4=E7.ei;O4&&(this.eventId=O4);if(E7.adcontext||P4)this.Yn=!0,fR(this,"ad");var DV=E7.feature;DV&&(this.ID=DV);var E2=E7.list;E2&&(this.playlistId=E2);var F$=E7.of;F$&&(this.Lc=F$);var x6=E7.osid;x6&&(this.osid=x6);var OU=E7.referrer;OU&&(this.referrer=OU);var vC=E7.sdetail;vC&&(this.F8= +vC);var q2=E7.ssrt;q2&&(this.jl=q2=="1");var yv=E7.subscribed;yv&&(this.subscribed=yv=="1",this.Y.subscribed=yv);var qq=E7.uga;qq&&(this.userGenderAge=qq);var om=E7.upt;om&&(this.U2=om);var Ja=E7.vm;Ja&&(this.videoMetadata=Ja);pn.playback=E7}var N6=gr(Ln.videostatsWatchtimeUrl);if(N6){var Im=Z1(N6),Aa=Im.ald;Aa&&(this.T$=Aa);pn.watchtime=Im}var Y6=gr(Ln.atrUrl);if(Y6){var di=Z1(Y6);pn.atr=di}var oe=gr(Ln.engageUrl);if(oe){var mj=Z1(oe);pn.engage=mj}this.yd=pn;if(Ln.promotedPlaybackTracking){var T2= +Ln.promotedPlaybackTracking;T2.startUrls&&(this.kd=T2.startUrls);T2.firstQuartileUrls&&(this.iN=T2.firstQuartileUrls);T2.secondQuartileUrls&&(this.QJ=T2.secondQuartileUrls);T2.thirdQuartileUrls&&(this.Cc=T2.thirdQuartileUrls);T2.completeUrls&&(this.EE=T2.completeUrls);T2.engagedViewUrls&&(T2.engagedViewUrls.length>1&&g.ax(new g.kQ("There are more than one engaged_view_urls.")),this.J5=T2.engagedViewUrls[0])}}var Mq=this.playerResponse.playerCueRanges;Mq&&Mq.length>0&&(this.cueRanges=Mq);var rp=this.playerResponse.playerCueRangeSet; +rp&&g.TZ(this,rp);a:{var Cj=this.playerResponse.adPlacements;if(Cj)for(var sU=g.n(Cj),tN=sU.next();!tN.done;tN=sU.next()){var Bs=void 0,Ps=void 0,am=(Bs=tN.value.adPlacementRenderer)==null?void 0:(Ps=Bs.renderer)==null?void 0:Ps.videoAdTrackingRenderer;if(am){var UU=am;break a}}UU=null}var ES=UU;Ln&&Ln.promotedPlaybackTracking&&ES&&g.ax(new g.kQ("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));var Fd;if(!(Fd=ES))a:{for(var cs=g.n(this.playerResponse.adSlots||[]), +pj=cs.next();!pj.done;pj=cs.next()){var nj=g.K(pj.value,cc);if(nj===void 0||!$rp(nj))break;var iZ=void 0,wi=(iZ=nj.fulfillmentContent)==null?void 0:iZ.fulfilledLayout,ha=g.K(wi,IV);if(ha&&gg(ha)){Fd=!0;break a}}Fd=!1}Fd&&(this.Mf=!0);var Ws=this.playerResponse.playerAds;if(Ws)for(var km=Q,DF=g.n(Ws),xC=DF.next();!xC.done;xC=DF.next()){var K3=xC.value;if(K3){var VA=K3.playerLegacyDesktopWatchAdsRenderer;if(VA){var NN=VA.playerAdParams;if(NN){NN.autoplay=="1"&&(this.D4=this.Yn=!0);this.gA=NN.encodedAdSafetyReason|| +null;NN.showContentThumbnail!==void 0&&(this.Pl=!!NN.showContentThumbnail);km.enabled_engage_types=NN.enabledEngageTypes;break}}}}var FP=this.playerResponse.playerConfig;if(FP){var cQ=FP.manifestlessWindowedLiveConfig;if(cQ){var dp=Number(cQ.minDvrSequence),gE=Number(cQ.maxDvrSequence),O5=Number(cQ.minDvrMediaTimeMs),oW=Number(cQ.maxDvrMediaTimeMs),ZA=Number(cQ.startWalltimeMs);dp&&(this.Li=dp);O5&&(this.jm=O5/1E3,this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&uE(this)&&(this.W0=O5/ +1E3));gE&&(this.zs=gE);oW&&(this.Wz=oW/1E3,this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&uE(this)&&(this.eN=oW/1E3));ZA&&(this.ys=ZA/1E3);(dp||O5)&&(gE||oW)&&(this.allowLiveDvr=this.isLivePlayback=this.f3=!0,this.l8=!1)}var il=FP.daiConfig;if(il){if(il.enableDai){this.Uj=!0;var J$=il.enableServerStitchedDai;J$&&(this.enableServerStitchedDai=J$);var mw=il.enablePreroll;mw&&(this.enablePreroll=mw)}var en;if(il.daiType==="DAI_TYPE_SS_DISABLED"||((en=il.debugInfo)==null?0:en.isDisabledUnpluggedChannel))this.CD= +!0;il.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.RL=!0)}var Ch=FP.audioConfig;if(Ch){var KT=Ch.loudnessDb;KT!=null&&(this.dS=KT);var n1_=Ch.trackAbsoluteLoudnessLkfs;n1_!=null&&(this.AC=n1_);var g16=Ch.loudnessTargetLkfs;g16!=null&&(this.loudnessTargetLkfs=g16);Ch.audioMuted&&(this.Uf=!0);Ch.muteOnStart&&(this.z6=!0);var jG=Ch.loudnessNormalizationConfig;if(jG){jG.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);jG.preserveStatefulLoudnessTarget&&(this.preserveStatefulLoudnessTarget= +!0);var ZRL=jG.minimumLoudnessTargetLkfs;ZRL!=null&&(this.minimumLoudnessTargetLkfs=ZRL);var GIJ=jG.maxStatefulTimeThresholdSec;GIJ!=null&&(this.maxStatefulTimeThresholdSec=GIJ)}this.V("web_player_audio_playback_from_audio_config")&&Ch.playAudioOnly&&(this.dQ=!0)}var pJu=FP.playbackEndConfig;if(pJu){var $W6=pJu.endSeconds,jga=pJu.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&($W6&&(this.endSeconds=$W6),jga&&(this.limitedPlaybackDurationInSeconds=jga))}var tJ=FP.fairPlayConfig;if(tJ){var Fhk= +tJ.certificate;Fhk&&(this.C3=bf(Fhk));var xWk=Number(tJ.keyRotationPeriodMs);xWk>0&&(this.pW=xWk);var ORY=Number(tJ.keyPrefetchMarginMs);ORY>0&&(this.bu=ORY)}var Rt=FP.playbackStartConfig;if(Rt){this.mZ=Number(Rt.startSeconds);var o19=Rt.liveUtcStartSeconds,Jfu=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0;o19&&!Jfu&&(this.liveUtcStartSeconds=Number(o19));var nga=Rt.startPosition;if(nga){var NXa=nga.utcTimeMillis;NXa&&!Jfu&&(this.liveUtcStartSeconds=Number(NXa)*.001);var Iav=nga.streamTimeMillis; +Iav&&(this.Tx=Number(Iav)*.001)}this.progressBarStartPosition=Rt.progressBarStartPosition;this.progressBarEndPosition=Rt.progressBarEndPosition}else{var gg6=FP.skippableSegmentsConfig;if(gg6){var AfZ=gg6.introSkipDurationMs;AfZ&&(this.QO=Number(AfZ)/1E3);var YZ6=gg6.outroSkipDurationMs;YZ6&&(this.qr=Number(YZ6)/1E3)}}var Z$8=FP.skippableIntroConfig;if(Z$8){var rfL=Number(Z$8.startMs),sgA=Number(Z$8.endMs);isNaN(rfL)||isNaN(sgA)||(this.A5=rfL,this.h$=sgA)}var BXn=FP.streamSelectionConfig;BXn&&(this.yR= +Number(BXn.maxBitrate));var PjY=FP.vrConfig;PjY&&(this.In=PjY.partialSpherical=="1");var F4=FP.webDrmConfig;if(F4){F4.skipWidevine&&(this.Lz=!0);var aaL=F4.widevineServiceCert;aaL&&(this.Lt=bf(aaL));F4.useCobaltWidevine&&(this.useCobaltWidevine=!0);F4.startWithNoQualityConstraint&&(this.ov=!0)}var TO=FP.mediaCommonConfig;if(TO){var Ez=TO.dynamicReadaheadConfig;if(Ez){this.maxReadAheadMediaTimeMs=Ez.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=Ez.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs= +Ez.readAheadGrowthRateMs||NaN;var UWa,cfJ=TO==null?void 0:(UWa=TO.mediaUstreamerRequestConfig)==null?void 0:UWa.videoPlaybackUstreamerConfig;cfJ&&(this.KE=bf(cfJ));var GU6=TO==null?void 0:TO.sabrContextUpdates;if(GU6&&GU6.length>0)for(var iR_=g.n(GU6),$O_=iR_.next();!$O_.done;$O_=iR_.next()){var Z7=$O_.value;if(Z7.type&&Z7.value){var IVT={type:Z7.type,scope:Z7.scope,value:bf(Z7.value)||void 0,sendByDefault:Z7.sendByDefault};this.sabrContextUpdates.set(Z7.type,IVT)}}}var h0_=TO.serverPlaybackStartConfig; +h0_&&(this.serverPlaybackStartConfig=h0_);TO.useServerDrivenAbr&&(this.WY=!0);var Wh_=TO.requestPipeliningConfig;Wh_&&(this.requestPipeliningConfig=Wh_)}var DWu=FP.inlinePlaybackConfig;DWu&&(this.lq=!!DWu.showAudioControls);var pB=FP.embeddedPlayerConfig;if(pB){this.embeddedPlayerConfig=pB;var j$L=pB.embeddedPlayerMode;if(j$L){var Khv=this.C();Khv.De=j$L;Khv.L=j$L==="EMBEDDED_PLAYER_MODE_PFL"}var V1Y=pB.permissions;V1Y&&(this.allowImaMonetization=!!V1Y.allowImaMonetization)}var dWp=FP.ssapConfig; +dWp&&(this.So=dWp.ssapPrerollEnabled||!1);var nB=FP.webPlayerConfig;nB&&(nB.gatewayExperimentGroup&&(this.gatewayExperimentGroup=nB.gatewayExperimentGroup),nB.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var e_=this.playerResponse.streamingData;if(e_){var FTn=e_.formats;if(FTn){for(var xN=[],mW9=g.n(FTn),xO8=mW9.next();!xO8.done;xO8=mW9.next()){var O$k=xO8.value;xN.push(O$k.itag+"/"+O$k.width+"x"+O$k.height)}this.jj=xN.join(",");xN=[];for(var wG6=g.n(FTn),ogv=wG6.next();!ogv.done;ogv=wG6.next()){var Oy= +ogv.value,oV={itag:Oy.itag,type:Oy.mimeType,quality:Oy.quality},kIn=Oy.url;kIn&&(oV.url=kIn);var g9=or(Oy),AuB=g9.vX,Y9B=g9.cO,rus=g9.s;g9.y$&&(oV.url=AuB,oV.sp=Y9B,oV.s=rus);xN.push(g.Ve(oV))}this.C2=xN.join(",")}var JbL=e_.hlsFormats;if(JbL){var TXp=FP||null,ZD={};if(TXp){var N$A=TXp.audioPairingConfig;if(N$A&&N$A.pairs)for(var e0J=g.n(N$A.pairs),ITn=e0J.next();!ITn.done;ITn=e0J.next()){var laZ=ITn.value,AbZ=laZ.videoItag;ZD[AbZ]||(ZD[AbZ]=[]);ZD[AbZ].push(laZ.audioItag)}}for(var R0k={},QMY=g.n(JbL), +YK9=QMY.next();!YK9.done;YK9=QMY.next()){var zj6=YK9.value;R0k[zj6.itag]=zj6.bitrate}for(var HK8=[],f_L=g.n(JbL),rbk=f_L.next();!rbk.done;rbk=f_L.next()){var Lg=rbk.value,I3={itag:Lg.itag,type:Lg.mimeType,url:Lg.url,bitrate:Lg.bitrate,width:Lg.width,height:Lg.height,fps:Lg.fps},Gc=Lg.audioTrack;if(Gc){var bK_=Gc.displayName;bK_&&(I3.name=bK_,I3.audio_track_id=Gc.id,Gc.audioIsDefault&&(I3.is_default="1"))}if(Lg.drmFamilies){for(var Lp9=[],u1c=g.n(Lg.drmFamilies),s$v=u1c.next();!s$v.done;s$v=u1c.next())Lp9.push(Mj[s$v.value]); +I3.drm_families=Lp9.join(",")}var $Y=ZD[Lg.itag];if($Y&&$Y.length){I3.audio_itag=$Y.join(",");var SJ_=R0k[$Y[0]];SJ_&&(I3.bitrate+=SJ_)}var XN8=raY(Lg);XN8&&(I3.eotf=XN8);Lg.audioChannels&&(I3.audio_channels=Lg.audioChannels);HK8.push(g.Ve(I3))}this.hlsFormats=HK8.join(",")}var B$L=e_.licenseInfos;if(B$L&&B$L.length>0){for(var vnp={},yvZ=g.n(B$L),PzZ=yvZ.next();!PzZ.done;PzZ=yvZ.next()){var qJv=PzZ.value,Mfk=qJv.drmFamily,Co8=qJv.url;Mfk&&Co8&&(vnp[Mj[Mfk]]=Co8)}this.AM=vnp}var tfk=e_.drmParams;tfk&& +(this.drmParams=tfk);var Env=e_.dashManifestUrl;Env&&(this.p5=g.de(Env,{cpn:this.clientPlaybackNonce}));var pNn=e_.hlsManifestUrl;pNn&&(this.hlsvp=pNn);var nn6=e_.probeUrl;nn6&&(this.probeUrl=z4(g.de(nn6,{cpn:this.clientPlaybackNonce})));var gn_=e_.serverAbrStreamingUrl;gn_&&(this.N7=new g.GQ(gn_,!0))}var ZK_=this.playerResponse.trackingParams;ZK_&&(this.yl=ZK_);var kT=this.playerResponse.videoDetails;if(kT){var Ax=Q,aTv=kT.videoId;aTv&&(this.videoId=aTv,Ax.video_id||(Ax.video_id=aTv));var GGL=kT.channelId; +GGL&&(this.Y.uid=GGL.substring(2));var UO8=kT.title;UO8&&(this.title=UO8,Ax.title||(Ax.title=UO8));var cb_=kT.lengthSeconds;cb_&&(this.lengthSeconds=Number(cb_),Ax.length_seconds||(Ax.length_seconds=cb_));var $Fv=kT.keywords;$Fv&&(this.keywords=OY9($Fv));var i$Z=kT.channelId;i$Z&&(this.HG=i$Z,Ax.ucid||(Ax.ucid=i$Z));var jMa=kT.viewCount;jMa&&(this.rawViewCount=Number(jMa));var hOn=kT.author;hOn&&(this.author=hOn,Ax.author||(Ax.author=hOn));var Fpa=kT.shortDescription;Fpa&&(this.shortDescription=Fpa); +var xFL=kT.isCrawlable;xFL&&(this.isListed=xFL);var OKn=kT.musicVideoType;OKn&&(this.musicVideoType=OKn);var WTa=kT.isLive;WTa!=null&&(this.isLivePlayback=WTa);if(WTa||kT.isUpcoming)this.isPremiere=!kT.isLiveContent;var onc=kT.thumbnail;onc&&(this.U=nv(onc));var Jv_=kT.isExternallyHostedPodcast;Jv_&&(this.isExternallyHostedPodcast=Jv_);var DOk=kT.viewerLivestreamJoinPosition;if(DOk==null?0:DOk.utcTimeMillis)this.ER=H3(DOk.utcTimeMillis);var Nzc=FP||null,KTk=Q;kT.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast= +!0);kT.isUpcoming&&(this.isUpcoming=!0);if(kT.isPostLiveDvr){this.l8=!0;var I_A=kT.latencyClass;I_A&&(this.latencyClass=ZwY[I_A]||"UNKNOWN");kT.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var VeA=!1;this.WI?(this.allowLiveDvr=lD()?!0:Rn&&m7<5?!1:!0,this.isLivePlayback=!0):kT.isLive?(KTk.livestream="1",this.allowLiveDvr=kT.isLiveDvrEnabled?lD()?!0:Rn&&m7<5?!1:!0:!1,this.partnerId=27,VeA=!0):kT.isUpcoming&&(VeA=!0);if(kT.isLive||this.WI&&this.V("html5_parse_live_monitor_flags")){kT.isLowLatencyLiveStream&& +(this.isLowLatencyLiveStream=!0);var Av9=kT.latencyClass;Av9&&(this.latencyClass=ZwY[Av9]||"UNKNOWN");var YJu=kT.liveChunkReadahead;YJu&&(this.liveChunkReadahead=YJu);var Qd=Nzc&&Nzc.livePlayerConfig;if(Qd){Qd.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);Qd.hasSubfragmentedWebm&&(this.rF=!0);Qd.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var rva=Qd.liveExperimentalContentId;rva&&(this.liveExperimentalContentId=Number(rva));var sMv=Qd.isLiveHeadPlayable;this.V("html5_live_head_playable")&& +sMv!=null&&(this.isLiveHeadPlayable=sMv)}}VeA&&(this.isLivePlayback=!0,KTk.adformat&&KTk.adformat.split("_")[1]!=="8"||this.De.push("heartbeat"),this.J_=!0)}var Bz8=kT.isPrivate;Bz8!==void 0&&(this.isPrivate=LF(this.isPrivate,Bz8))}if(SY){var Poa=kT||null,a_9=!1,zL=SY.errorScreen;a_9=zL&&(zL.playerLegacyDesktopYpcOfferRenderer||zL.playerLegacyDesktopYpcTrailerRenderer||zL.ypcTrailerRenderer)?!0:Poa&&Poa.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(SY.status);if(!a_9){this.errorCode= +B09(SY.errorCode)||"auth";var j8=zL&&zL.playerErrorMessageRenderer;if(j8){this.playerErrorMessageRenderer=j8;var UFa=j8.reason;UFa&&(this.errorReason=g.na(UFa));var dO9=j8.subreason;dO9&&(this.Jj=g.na(dO9),this.oQ=dO9)}else this.errorReason=SY.reason||null;var mOn=SY.status;if(mOn==="LOGIN_REQUIRED")this.errorDetail="1";else if(mOn==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(mOn==="AGE_CHECK_REQUIRED"){var cva=SY.errorScreen,iKY=cva&&cva.playerKavRenderer;this.errorDetail=iKY&&iKY.kavUrl? +"4":"3"}else this.errorDetail=SY.isBlockedInRestrictedMode?"5":"0"}}var hjn=this.playerResponse.interstitialPods;hjn&&kTu(this,hjn);this.uT&&this.eventId&&(this.uT=v2(this.uT,{ei:this.eventId}));var wJL=this.playerResponse.captions;if(wJL&&wJL.playerCaptionsTracklistRenderer)a:{var Ye=wJL.playerCaptionsTracklistRenderer;this.captionTracks=[];if(Ye.captionTracks)for(var WpL=g.n(Ye.captionTracks),kU8=WpL.next();!kU8.done;kU8=WpL.next()){var rW=kU8.value,DFL=jV6(rW.baseUrl);if(!DFL)break a;var T$u={is_translateable:!!rW.isTranslatable, +languageCode:rW.languageCode,languageName:rW.name&&g.na(rW.name),url:DFL,vss_id:rW.vssId,kind:rW.kind};T$u.name=rW.trackName;T$u.displayName=rW.name&&g.na(rW.name);this.captionTracks.push(new g.MG(T$u))}this.UE=Ye.audioTracks||[];this.v3=Ye.defaultAudioTrackIndex||0;this.ON=[];if(Ye.translationLanguages)for(var Kp8=g.n(Ye.translationLanguages),eOc=Kp8.next();!eOc.done;eOc=Kp8.next()){var HX=eOc.value,Gw={};Gw.languageCode=HX.languageCode;Gw.languageName=g.na(HX.languageName);if(HX.translationSourceTrackIndices){Gw.translationSourceTrackIndices= +[];for(var Vf8=g.n(HX.translationSourceTrackIndices),lT9=Vf8.next();!lT9.done;lT9=Vf8.next())Gw.translationSourceTrackIndices.push(lT9.value)}if(HX.excludeAudioTrackIndices){Gw.excludeAudioTrackIndices=[];for(var dF9=g.n(HX.excludeAudioTrackIndices),RO6=dF9.next();!RO6.done;RO6=dF9.next())Gw.excludeAudioTrackIndices.push(RO6.value)}this.ON.push(Gw)}this.rY=[];if(Ye.defaultTranslationSourceTrackIndices)for(var mFc=g.n(Ye.defaultTranslationSourceTrackIndices),QIZ=mFc.next();!QIZ.done;QIZ=mFc.next())this.rY.push(QIZ.value); +this.HP=!!Ye.contribute&&!!Ye.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.mZ=Number(this.clipConfig.startTimeMs)*.001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&ec9(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var wNv;this.compositeLiveIngestionOffsetToken= +(wNv=this.playerResponse.playbackTracking)==null?void 0:wNv.compositeLiveIngestionOffsetToken;var kGa;this.compositeLiveStatusToken=(kGa=this.playerResponse.playbackTracking)==null?void 0:kGa.compositeLiveStatusToken}dr(this,Q);Q.queue_info&&(this.queueInfo=Q.queue_info);var Tzc=Q.hlsdvr;Tzc!=null&&(this.allowLiveDvr=Number(Tzc)===1?lD()?!0:Rn&&m7<5?!1:!0:!1);this.adQueryId=Q.ad_query_id||null;this.gA||(this.gA=Q.encoded_ad_safety_reason||null);this.h6=Q.agcid||null;this.hk=Q.ad_id||null;this.I5= +Q.ad_sys||null;this.yA=Q.encoded_ad_playback_context||null;this.Uf=LF(this.Uf,Q.infringe||Q.muted);this.vH=Q.authkey;this.nne=Q.authuser;this.mutedAutoplay=LF(this.mutedAutoplay,Q&&Q.playmuted);this.mutedAutoplayDurationMode=Ss(this.mutedAutoplayDurationMode,Q&&Q.muted_autoplay_duration_mode);this.TK=LF(this.TK,Q&&Q.mutedautoplay);var FT=Q.length_seconds;FT&&(this.lengthSeconds=typeof FT==="string"?H3(FT):FT);if(this.isAd()||this.zj||!g.M0(g.B0(this.aj)))this.endSeconds=Ss(this.endSeconds,this.qr|| +Q.end||Q.endSeconds);else{var sfO=g.B0(this.aj),xY=this.lengthSeconds;switch(sfO){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":xY>30?this.limitedPlaybackDurationInSeconds=30:xY<30&&xY>10&&(this.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=xY*.2}}this.yl=XX(this.yl,Q.itct);this.Fu=LF(this.Fu,Q.noiba);this.qf=LF(this.qf,Q.is_live_destination);this.isLivePlayback=LF(this.isLivePlayback,Q.live_playback); +this.enableServerStitchedDai=this.enableServerStitchedDai&&this.AZ();Q.isUpcoming&&(this.isUpcoming=LF(this.isUpcoming,Q.isUpcoming));this.l8=LF(this.l8,Q.post_live_playback);this.f3&&(this.l8=!1);this.isMdxPlayback=LF(this.isMdxPlayback,Q.mdx);var Oz=Q.mdx_control_mode;Oz&&(this.mdxControlMode=typeof Oz==="number"?Oz:H3(Oz));this.isInlinePlaybackNoAd=LF(this.isInlinePlaybackNoAd,Q.is_inline_playback_no_ad);this.gT=Ss(this.gT,Q.reload_count);this.reloadReason=XX(this.reloadReason,Q.reload_reason); +this.Pl=LF(this.Pl,Q.show_content_thumbnail);this.OE=LF(this.OE,Q.utpsa);this.cycToken=Q.cyc||null;this.oG=Q.tkn||null;var ejA=pv(Q);Object.keys(ejA).length>0&&(this.U=ejA);this.wh=XX(this.wh,Q.vvt);this.mdxEnvironment=XX(this.mdxEnvironment,Q.mdx_environment);Q.source_container_playlist_id&&(this.sourceContainerPlaylistId=Q.source_container_playlist_id);Q.serialized_mdx_metadata&&(this.serializedMdxMetadata=Q.serialized_mdx_metadata);this.EK=Q.osig;this.eventId||(this.eventId=Q.eventid);this.osid|| +(this.osid=Q.osid);this.playlistId=XX(this.playlistId,Q.list);Q.index&&(this.playlistIndex=this.playlistIndex===void 0?Ss(0,Q.index):Ss(this.playlistIndex,Q.index));this.tI=Q.pyv_view_beacon_url;this.oh=Q.pyv_quartile25_beacon_url;this.PT=Q.pyv_quartile50_beacon_url;this.Gr=Q.pyv_quartile75_beacon_url;this.Yz=Q.pyv_quartile100_beacon_url;var l__=Q.session_data;!this.Zx&&l__&&(this.Zx=f1(l__,"&").feature);this.isFling=Ss(this.isFling?1:0,Q.is_fling)===1;this.vnd=Ss(this.vnd,Q.vnd);this.forceAdsUrl= +XX(this.forceAdsUrl,Q.force_ads_url);this.Ts=XX(this.Ts,Q.ctrl);this.Qw=XX(this.Qw,Q.ytr);this.mH=Q.ytrcc;this.Ya=Q.ytrexp;this.uN=Q.ytrext;this.UY=XX(this.UY,Q.adformat);this.JY=XX(this.JY,Q.attrib);this.slotPosition=Ss(this.slotPosition,Q.slot_pos);this.breakType=Q.break_type;this.jl=LF(this.jl,Q.ssrt);this.videoId=yh(Q)||this.videoId;this.j=XX(this.j,Q.vss_credentials_token);this.ZK=XX(this.ZK,Q.vss_credentials_token_type);this.dQ=LF(this.dQ,Q.audio_only);this.rT=LF(this.rT,Q.aac_high);this.pc= +LF(this.pc,Q.prefer_low_quality_audio);this.x6=LF(this.x6,Q.uncap_inline_quality);this.V("html5_enable_qoe_cat_list")?Q.qoe_cat&&(this.v0=this.v0.concat(Q.qoe_cat.split(","))):this.kX=XX(this.kX,Q.qoe_cat);this.q0=LF(this.q0,Q.download_media);var RjY=Q.prefer_gapless;this.N=RjY!=null?LF(this.N,RjY):this.N?this.N:this.aj.preferGapless&&this.aj.supportsGaplessShorts();kgu(this.playerResponse)&&this.De.push("ad");var Q8L=Q.adaptive_fmts;Q8L&&(this.adaptiveFormats=Q8L,this.On("adpfmts",{},!0));var zQZ= +Q.allow_embed;zQZ&&(this.allowEmbed=Number(zQZ)===1);var HHu=Q.backgroundable;HHu&&(this.backgroundable=Number(HHu)===1);var frJ=Q.autonav;frJ&&(this.isAutonav=Number(frJ)===1);var bH8=Q.autoplay;bH8&&(this.Yn=this.D4=Number(bH8)===1,fR(this,"c"));var LbA=Q.iv_load_policy;LbA&&(this.annotationsLoadPolicy=uh(this.annotationsLoadPolicy,LbA,P0));var utv=Q.cc_lang_pref;utv&&(this.captionsLanguagePreference=XX(utv,this.captionsLanguagePreference));var Sf9=Q.cc_load_policy;Sf9&&(this.Jk=uh(this.Jk,Sf9, +P0));var XAp;this.deviceCaptionsOn=(XAp=Q.device_captions_on)!=null?XAp:void 0;var v$a;this.ZF=(v$a=Q.device_captions_lang_pref)!=null?v$a:"";var ysL;this.BX=(ysL=Q.viewer_selected_caption_langs)!=null?ysL:[];if(!this.V("html5_enable_ssap_entity_id")){var qfZ=Q.cached_load;qfZ&&(this.R4=LF(this.R4,qfZ))}if(Q.dash==="0"||Q.dash===0||Q.dash===!1)this.zD=!0;var MSp=Q.dashmpd;MSp&&(this.p5=g.de(MSp,{cpn:this.clientPlaybackNonce}));var CkL=Q.delay;CkL&&(this.Xa=H3(CkL));var zf8=this.qr||Q.end;if(this.Vs? +zf8!=null:zf8!=void 0)this.clipEnd=Ss(this.clipEnd,zf8);var tSv=Q.fmt_list;tSv&&(this.jj=tSv);Q.heartbeat_preroll&&this.De.push("heartbeat");this.P5=-Math.floor(Math.random()*10);this.hY=-Math.floor(Math.random()*40);var E$p=Q.is_listed;E$p&&(this.isListed=LF(this.isListed,E$p));var pAn=Q.is_private;pAn&&(this.isPrivate=LF(this.isPrivate,pAn));var n$p=Q.is_dni;n$p&&(this.gV=LF(this.gV,n$p));var g$Z$=Q.dni_color;g$Z$&&(this.H0=XX(this.H0,g$Z$));var ZHu=Q.pipable;ZHu&&(this.pipable=LF(this.pipable, +ZHu));this.Rf=(this.ra=this.pipable&&this.aj.J_)&&!this.aj.showMiniplayerButton;var Ghk=Q.paid_content_overlay_duration_ms;Ghk&&(this.paidContentOverlayDurationMs=H3(Ghk));var $QL=Q.paid_content_overlay_text;$QL&&(this.paidContentOverlayText=$QL);var j8v=Q.url_encoded_fmt_stream_map;j8v&&(this.C2=j8v);var Fbu=Q.hls_formats;Fbu&&(this.hlsFormats=Fbu);var xQA=Q.hlsvp;xQA&&(this.hlsvp=xQA);var oD=Q.live_start_walltime;oD&&(this.P_=typeof oD==="number"?oD:H3(oD));var JJ=Q.live_manifest_duration;JJ&&(this.gt= +typeof JJ==="number"?JJ:H3(JJ));var OHA=Q.player_params;OHA&&(this.playerParams=OHA);var o$Y=Q.partnerid;o$Y&&(this.partnerId=Ss(this.partnerId,o$Y));var Js9=Q.probe_url;Js9&&(this.probeUrl=z4(g.de(Js9,{cpn:this.clientPlaybackNonce})));var HCv=Q.pyv_billable_url;HCv&&LXc(HCv)&&(this.J5=HCv);var fzJ=Q.pyv_conv_url;fzJ&&LXc(fzJ)&&(this.ZT=fzJ);oNk(this,Q);this.startSeconds>0?this.V("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.mZ||this.QO||Q.start||Q.startSeconds)&&this.On("lss", +{css:this.startSeconds,pcss:this.mZ,iss:this.QO,ps:Q.start||void 0,pss:Q.startSeconds||void 0}):this.EY=this.startSeconds=Ss(this.startSeconds,this.mZ||this.QO||Q.start||Q.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var NYv=Q.live_utc_start;if(NYv!=null)this.liveUtcStartSeconds=Number(NYv);else{var bCk=this.startSeconds;bCk&&isFinite(bCk)&&bCk>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var Iru=Q.utc_start_millis; +Iru&&(this.liveUtcStartSeconds=Number(Iru)*.001)}var AsY=Q.stream_time_start_millis;AsY&&(this.Tx=Number(AsY)*.001);var LS6=this.QO||Q.start;(this.Vs?LS6==null||Number(Q.resume)===1:LS6==void 0||Q.resume=="1")||this.isLivePlayback||(this.clipStart=Ss(this.clipStart,LS6));var Yf8=Q.url_encoded_third_party_media;Yf8&&(this.Bl=uv(Yf8));var uVc=Q.ypc_offer_button_formatted_text;if(uVc){var rsA=JSON.parse(uVc);this.LU=rsA!=null?rsA:null;this.BH=uVc}var s8c=Q.ypc_offer_button_text;s8c&&(this.e$=s8c);var BYk= +Q.ypc_offer_description;BYk&&(this.Ev=BYk);var PkJ=Q.ypc_offer_headline;PkJ&&(this.H1=PkJ);var arL=Q.ypc_full_video_message;arL&&(this.YX=arL);var UQk=Q.ypc_offer_id;UQk&&(this.ax=UQk);var csc=Q.ypc_buy_url;csc&&(this.p$=csc);var iH8=Q.ypc_item_thumbnail;iH8&&(this.i9=iH8);var hQL=Q.ypc_item_title;hQL&&(this.vN=hQL);var Wbp=Q.ypc_item_url;Wbp&&(this.oW=Wbp);var DQp=Q.ypc_vid;DQp&&(this.Br=DQp);Q.ypc_overlay_timeout&&(this.z0=Number(Q.ypc_overlay_timeout));var KbA=Q.ypc_trailer_player_vars;KbA&&(this.MD= +L1(KbA));var VSa=Q.ypc_original_itct;VSa&&(this.Zd=VSa);this.HG=XX(this.HG,Q.ucid);Q.baseUrl&&(this.Y.baseUrl=Q.baseUrl);Q.uid&&(this.Y.uid=Q.uid);Q.oeid&&(this.Y.oeid=Q.oeid);Q.ieid&&(this.Y.ieid=Q.ieid);Q.ppe&&(this.Y.ppe=Q.ppe);Q.engaged&&(this.Y.engaged=Q.engaged);Q.subscribed&&(this.Y.subscribed=Q.subscribed);this.Y.focEnabled=LF(this.Y.focEnabled,Q.focEnabled);this.Y.rmktEnabled=LF(this.Y.rmktEnabled,Q.rmktEnabled);this.TV=Q.storyboard_spec||null;this.l5=Q.live_storyboard_spec||null;this.j1= +Q.iv_endscreen_url||null;this.J_=LF(this.J_,Q.ypc_license_checker_module);this.Tw=LF(this.Tw,Q.ypc_module);this.uL=LF(this.uL,Q.ypc_clickwrap_module);this.Tw&&this.De.push("ypc");this.uL&&this.De.push("ypc_clickwrap");this.hI={video_id:Q.video_id,eventid:Q.eventid,cbrand:Q.cbrand,cbr:Q.cbr,cbrver:Q.cbrver,c:Q.c,cver:Q.cver,ctheme:Q.ctheme,cplayer:Q.cplayer,cmodel:Q.cmodel,cnetwork:Q.cnetwork,cos:Q.cos,cosver:Q.cosver,cplatform:Q.cplatform,user_age:Q.user_age,user_display_image:Q.user_display_image, +user_display_name:Q.user_display_name,user_gender:Q.user_gender,csi_page_type:Q.csi_page_type,csi_service_name:Q.csi_service_name,enablecsi:Q.enablecsi,enabled_engage_types:Q.enabled_engage_types};$dv(this,Q);var dQ_=Q.cotn;dQ_&&(this.cotn=dQ_);if(iY_(this))v7(this)&&(this.isLivePlayback&&this.p5&&(this.yw=!0),this.C3&&(this.h_=!0));else if(hKc(this))this.yw=!0;else{var mQZ,wAk,khZ=((mQZ=this.playerResponse)==null?void 0:(wAk=mQZ.streamingData)==null?void 0:wAk.adaptiveFormats)||[];if(khZ.length> +0)var JA=cAY(this,khZ);else{var TY8=this.adaptiveFormats;if(TY8&&!v7(this)){qY(this,"html5_enable_cobalt_experimental_vp9_decoder")&&(Om=!0);var fP=gi(TY8),SrZ=this.AM,eQ9=this.lengthSeconds,Bwu=this.isLivePlayback,Nd=this.l8,b1=this.aj,Pqx=ws8(fP);if(Bwu||Nd){var lrv=b1==null?void 0:b1.experiments,hp=new yG("",lrv,!0);hp.AZ=!0;hp.isManifestless=!0;hp.B=!Nd;hp.isLive=!Nd;hp.l8=Nd;for(var RQY=g.n(fP),X3Z=RQY.next();!X3Z.done;X3Z=RQY.next()){var LP=X3Z.value,QbA=tQ(LP,SrZ),$k=Em(LP.url,LP.sp,LP.s), +zPY=$k.get("id");zPY&&zPY.includes("%7E")&&(hp.U=!0);var HIZ=void 0,aVm=(HIZ=lrv)==null?void 0:HIZ.Nc("html5_max_known_end_time_rebase"),UUY=Number(LP.target_duration_sec)||5,cuR=Number(LP.max_dvr_duration_sec)||14400,fp8=Number($k.get("mindsq")||$k.get("min_sq")||"0"),bIY=Number($k.get("maxdsq")||$k.get("max_sq")||"0")||Infinity;hp.Li=hp.Li||fp8;hp.zs=hp.zs||bIY;var iTR=!Hs(QbA.mimeType);$k&&Sb(hp,new wV($k,QbA,{Cq:UUY,Kr:iTR,Ic:cuR,Li:fp8,zs:bIY,qJ:300,l8:Nd,r_:aVm}))}var Lr6=hp}else{if(Pqx==="FORMAT_STREAM_TYPE_OTF"){var Nl= +eQ9;Nl=Nl===void 0?0:Nl;var u1=new yG("",b1==null?void 0:b1.experiments,!1);u1.duration=Nl||0;for(var uJc=g.n(fP),vs9=uJc.next();!vs9.done;vs9=uJc.next()){var S7=vs9.value,y6_=tQ(S7,SrZ,u1.duration),qrA=Em(S7.url,S7.sp,S7.s);if(qrA)if(y6_.streamType==="FORMAT_STREAM_TYPE_OTF")Sb(u1,new kl(qrA,y6_,"sq/0"));else{var h$B=od(S7.init),Wks=od(S7.index);Sb(u1,new bD(qrA,y6_,h$B,Wks))}}u1.isOtf=!0;var SRn=u1}else{var ID=eQ9;ID=ID===void 0?0:ID;var AJ=new yG("",b1==null?void 0:b1.experiments,!1);AJ.duration= +ID||0;for(var XKv=g.n(fP),MaA=XKv.next();!MaA.done;MaA=XKv.next()){var Xm=MaA.value,DUt=tQ(Xm,SrZ,AJ.duration),Kkt=od(Xm.init),Vy5=od(Xm.index),vp9=Em(Xm.url,Xm.sp,Xm.s);vp9&&Sb(AJ,new bD(vp9,DUt,Kkt,Vy5))}SRn=AJ}Lr6=SRn}var ye8=Lr6;if(fP.length>0){var qRc=fP[0];if(this.C().playerStyle==="hangouts-meet"&&qRc.url){var dUJ=g.ST(qRc.url);this.AK=this.AK||Number(dUJ.expire)}}var mUT=this.isLivePlayback&&!this.l8&&!this.f3&&!this.isPremiere;this.V("html5_live_head_playable")&&(!MY(this)&&mUT&&this.On("missingLiveHeadPlayable", +{}),this.aj.Ze==="yt"&&(ye8.iT=!0));JA=ye8}else JA=null;this.On("pafmts",{isManifestFilled:!!JA})}if(JA){EC(this,JA);var McJ=!0}else McJ=!1;McJ?this.enableServerStitchedDai=this.enableServerStitchedDai&&C9(this):this.p5&&(this.aj.Ze==="yt"&&this.AZ()&&this.V("drm_manifestless_unplugged")&&this.V("html5_deprecate_manifestful_fallback")?this.On("deprecateMflFallback",{}):this.yw=!0)}var CQJ=Q.adpings;CQJ&&(this.UR=CQJ?L1(CQJ):null);var Cmk=Q.feature;Cmk&&(this.ID=Cmk);var tc8=Q.referrer;tc8&&(this.referrer= +tc8);this.clientScreenNonce=XX(this.clientScreenNonce,Q.csn);this.PO=Ss(this.PO,Q.root_ve_type);this.CP=Ss(this.CP,Q.kids_age_up_mode);this.Vs||Q.kids_app_info==void 0||(this.kidsAppInfo=Q.kids_app_info);this.Vs&&Q.kids_app_info!=null&&(this.kidsAppInfo=Q.kids_app_info);this.gg=LF(this.gg,Q.upg_content_filter_mode);this.unpluggedFilterModeType=Ss(this.unpluggedFilterModeType,Q.unplugged_filter_mode_type);var Epp=Q.unplugged_location_info;Epp&&(this.Ze=Epp);var pKc=Q.unplugged_partner_opt_out;pKc&& +(this.Xo=XX("",pKc));this.zX=LF(this.zX,Q.disable_watch_next);this.X2=XX(this.X2,Q.internal_ip_override);this.B$=!!Q.is_yto_interstitial;(this.interstitials.length||this.B$)&&this.De.push("yto");var npv=Q.Xr;npv&&(this.Xr=npv);var gpA;this.En=(gpA=Q.csi_timer)!=null?gpA:"";this.kc=!!Q.force_gvi;Q.watchUrl&&(this.watchUrl=Q.watchUrl);var jv=Q.watch_endpoint;this.V("html5_attach_watch_endpoint_ustreamer_config")&&jv&&aip(this,jv);if(jv==null?0:jv.ustreamerConfig)this.VO=bf(jv.ustreamerConfig);var ZI_, +GXY,$5c=jv==null?void 0:(ZI_=jv.loggingContext)==null?void 0:(GXY=ZI_.qoeLoggingContext)==null?void 0:GXY.serializedContextData;$5c&&(this.Fq=$5c);g.O8(this.aj)&&this.aj.rz&&(this.embedsRct=XX(this.embedsRct,Q.rct),this.embedsRctn=XX(this.embedsRctn,Q.rctn));this.rz=this.rz||!!Q.pause_at_start;Q.default_active_source_video_id&&(this.defaultActiveSourceVideoId=Q.default_active_source_video_id)}; +g.S.C=function(){return this.aj}; +g.S.V=function(Q){return this.aj.V(Q)}; +g.S.GZ=function(){return!this.isLivePlayback||this.allowLiveDvr}; +g.S.hasSupportedAudio51Tracks=function(){var Q;return!((Q=this.YJ)==null||!Q.gh)}; +g.S.getUserAudio51Preference=function(){var Q=1;kh(this.aj)&&this.V("html5_ytv_surround_toggle_default_off")?Q=0:g.dm(this.aj)&&this.isLivePlayback&&this.w7()&&(Q=0);var z;return(z=g.a4("yt-player-audio51"))!=null?z:Q}; +g.S.sQ=function(){this.Sm()||(this.Z.B||this.Z.unsubscribe("refresh",this.sQ,this),this.sP(-1))}; +g.S.sP=function(Q){if(!this.isLivePlayback||!this.S||this.S.flavor!=="fairplay"){var z=Tpu(this.Z,this.ZH);if(z.length>0){for(var H=g.n(z),f=H.next();!f.done;f=H.next())f=f.value,f.startSecs=Math.max(f.startSecs,this.jx()),this.V("html5_cuepoint_identifier_logging")&&f.event==="start"&&this.On("cuepoint",{pubCue:f.identifier,segNum:Q});this.publish("cuepointupdated",z,Q);this.ZH+=z.length;if(C9(this)&&this.aj.vz())for(z=g.n(z),H=z.next();!H.done;H=z.next())H=H.value,this.On("cuepoint",{segNum:Q,event:H.event, +startSecs:H.startSecs,id:H.identifier.slice(-16)}),H.event==="start"&&(H=H.startSecs,this.dD.start=this.iT,this.dD.end=H+3)}}}; +g.S.Az=function(){this.Sm()||(this.loading=!1,this.publish("dataloaded"))}; +g.S.w7=function(){return this.eM!==void 0?this.eM:this.eM=!!this.AM||!!this.Z&&Cu(this.Z)}; +g.S.g_=function(Q){var z=this;if(this.Sm())return B2();this.zx=this.gh=this.L=null;qY(this,"html5_high_res_logging_always")&&(this.aj.cq=!0);return VGa(this,Q).then(void 0,function(){return mdA(z,Q)}).then(void 0,function(){return wcJ(z)}).then(void 0,function(){return Tg8(z)})}; +g.S.Ar=function(Q){this.L=Q;ddZ(this,this.L.getAvailableAudioTracks());if(this.L){Q=g.n(this.L.videoInfos);for(var z=Q.next();!z.done;z=Q.next()){z=z.value;var H=z.containerType;H!==0&&(this.eG[H]=z.id)}}OC(this);if(this.S&&this.L&&this.L.videoInfos&&!(this.L.videoInfos.length<=0)&&(Q=la(this.L.videoInfos[0]),this.S.flavor==="fairplay"!==Q))for(z=g.n(this.nV),H=z.next();!H.done;H=z.next())if(H=H.value,Q===(H.flavor==="fairplay")){this.S=H;break}}; +g.S.HU=function(){if(this.cotn)return null;var Q=g.xJ(this.aj)||this.V("web_l3_storyboard");if(!this.W7)if(this.playerResponse&&this.playerResponse.storyboards){var z=this.playerResponse.storyboards,H=z.playerStoryboardSpecRenderer;H&&H.spec?this.W7=new iF(H.spec,this.lengthSeconds,void 0,!1,Q):(z=z.playerLiveStoryboardSpecRenderer)&&z.spec&&this.Z&&(H=D48(this.Z.Z).index)&&(this.W7=new WV(z.spec,this.Z.isLive,H,Q))}else this.TV?this.W7=new iF(this.TV,this.lengthSeconds,void 0,!1,Q):this.l5&&this.Z&& +(z=D48(this.Z.Z).index)&&(this.W7=new WV(this.l5,this.Z.isLive,z,Q));return this.W7}; +g.S.getStoryboardFormat=function(){if(this.cotn)return null;if(this.playerResponse&&this.playerResponse.storyboards){var Q=this.playerResponse.storyboards;return(Q=Q.playerStoryboardSpecRenderer||Q.playerLiveStoryboardSpecRenderer)&&Q.spec||null}return this.TV||this.l5}; +g.S.jA=function(){return this.Z&&!isNaN(this.Z.jA())?this.Z.jA():C9(this)?0:this.lengthSeconds}; +g.S.jx=function(){return this.Z&&!isNaN(this.Z.jx())?this.Z.jx():0}; +g.S.getPlaylistSequenceForTime=function(Q){if(this.Z&&this.B){var z=this.Z.Z[this.B.id];if(!z)return null;var H=z.index.EX(Q);z=z.index.getStartTime(H);return{sequence:H,elapsed:Math.floor((Q-z)*1E3)}}return null}; +g.S.EZ=function(){return!this.Sm()&&!(!this.videoId&&!this.Bl)}; +g.S.gp=function(){var Q,z,H;return!!this.adaptiveFormats||!!((Q=this.playerResponse)==null?0:(z=Q.streamingData)==null?0:(H=z.adaptiveFormats)==null?0:H.length)}; +g.S.isLoaded=function(){return Vc(this)&&!this.yw&&!this.h_}; +g.S.MP=function(Q){Q||(Q="hqdefault.jpg");var z=this.U[Q];return z||this.aj.wh||Q==="pop1.jpg"||Q==="pop2.jpg"||Q==="sddefault.jpg"||Q==="hq720.jpg"||Q==="maxresdefault.jpg"?z:Ko(this.aj,this.videoId,Q)}; +g.S.AZ=function(){return this.isLivePlayback||this.l8||this.f3||!(!this.liveUtcStartSeconds||!this.gt)}; +g.S.isOtf=function(){return!!this.Z&&(this.Z.isOtf||!this.l8&&!this.isLivePlayback&&this.Z.B)}; +g.S.getAvailableAudioTracks=function(){return this.L?this.L.getAvailableAudioTracks().length>0?this.L.getAvailableAudioTracks():this.Tl||[]:[]}; +g.S.getAudioTrack=function(){var Q=this;if(this.D&&!la(this.D))return g.wJ(this.getAvailableAudioTracks(),function(f){return f.id===Q.D.id})||this.j2; +if(this.Tl){if(!this.Da)for(var z=g.n(this.Tl),H=z.next();!H.done;H=z.next())if(H=H.value,H.Ii.getIsDefault()){this.Da=H;break}return this.Da||this.j2}return this.j2}; +g.S.getPlayerResponse=function(){return this.playerResponse}; +g.S.getWatchNextResponse=function(){return this.mq}; +g.S.getHeartbeatResponse=function(){return this.va}; +g.S.ma=function(){return this.watchUrl?this.watchUrl:this.aj.getVideoUrl(this.videoId)}; +g.S.vM=function(){return!!this.Z&&(i3_(this.Z)||hqa(this.Z)||Ww6(this.Z))}; +g.S.getEmbeddedPlayerResponse=function(){return this.S3}; +g.S.fq=function(){return(this.eventLabel||this.aj.yl)==="shortspage"}; +g.S.isAd=function(){return this.LY||!!this.adFormat}; +g.S.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; +g.S.OZ=function(){var Q,z,H;return this.isDaiEnabled()&&!!((Q=this.playerResponse)==null?0:(z=Q.playerConfig)==null?0:(H=z.daiConfig)==null?0:H.ssaEnabledPlayback)}; +g.S.iP=function(){return nHL(this)?this.Dj:this.J_||this.LA}; +g.S.SD=function(){return this.Tw||this.LA}; +g.S.Nf=function(){return qY(this,"html5_samsung_vp9_live")}; +g.S.On=function(Q,z,H){this.publish("ctmp",Q,z,H)}; +g.S.b3=function(Q,z,H){this.publish("ctmpstr",Q,z,H)}; +g.S.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; +g.S.getGetAdBreakContext=function(Q,z){Q=Q===void 0?NaN:Q;z=z===void 0?NaN:z;var H={isSabr:uE(this)},f,b=(f=this.getHeartbeatResponse())==null?void 0:f.adBreakHeartbeatParams;b&&(H.adBreakHeartbeatParams=b);if(this.V("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.Z&&!isNaN(Q)&&!isNaN(z)){z=Q-z;for(var L in this.Z.Z)if(f=this.Z.Z[L],f.info.rQ()||f.info.Wq())if(f=f.index,f.isLoaded()){L=f.EX(z);f=f.JM(L)+z-f.getStartTime(L);this.On("gabc",{t:Q.toFixed(3),mt:z.toFixed(3),sg:L,igt:f.toFixed(3)}); +H.livePlaybackPosition={utcTimeMillis:""+(f*1E3).toFixed(0)};break}}return H}; +g.S.isEmbedsShortsMode=function(Q,z){if(!g.O8(this.aj))return!1;var H;if(!this.V("embeds_enable_emc3ds_shorts")&&((H=this.aj.getWebPlayerContextConfig())==null?0:H.embedsEnableEmc3ds)||(this.aj.De||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||z)return!1;var f,b;return!!(((f=this.embeddedPlayerConfig)==null?0:(b=f.embeddedPlayerFlags)==null?0:b.isShortsExperienceEligible)&&Q.width<=Q.height)}; +g.S.zv=function(){g.vf.prototype.zv.call(this);this.UR=null;delete this.mF;delete this.accountLinkingConfig;delete this.Z;this.L=this.va=this.playerResponse=this.mq=null;this.C2=this.adaptiveFormats="";delete this.botguardData;this.ZJ=this.suggestions=this.o_=null;this.sabrContextUpdates.clear()};var xD_={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},OQJ={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},ja6={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},ZQn={0:"YT_KIDS_AGE_UP_MODE_UNKNOWN",1:"YT_KIDS_AGE_UP_MODE_OFF",2:"YT_KIDS_AGE_UP_MODE_TWEEN",3:"YT_KIDS_AGE_UP_MODE_PRESCHOOL"},$D6={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},Gxn={0:"UNPLUGGED_FILTER_MODE_TYPE_UNKNOWN",1:"UNPLUGGED_FILTER_MODE_TYPE_NONE",2:"UNPLUGGED_FILTER_MODE_TYPE_PG", +3:"UNPLUGGED_FILTER_MODE_TYPE_PG_THIRTEEN"},Fi9={0:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_UNSPECIFIED",1:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_30_SECONDS",2:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_FULL"};g.p(S1,g.h);g.S=S1.prototype;g.S.handleExternalCall=function(Q,z,H){var f=this.state.Y[Q],b=this.state.N[Q],L=f;if(b)if(H&&eo(H,sUB))L=b;else if(!f)throw Error('API call from an untrusted origin: "'+H+'"');this.logApiCall(Q,H);if(L){H=!1;f=g.n(z);for(b=f.next();!b.done;b=f.next())if(String(b.value).includes("javascript:")){H=!0;break}H&&g.ax(Error('Dangerous call to "'+Q+'" with ['+z+"]."));return L.apply(this,z)}throw Error('Unknown API method: "'+Q+'".');}; +g.S.logApiCall=function(Q,z,H){var f=this.app.C();f.QO&&!this.state.U.has(Q)&&(this.state.U.add(Q),g.qV("webPlayerApiCalled",{callerUrl:f.loaderUrl,methodName:Q,origin:z||void 0,playerStyle:f.playerStyle||void 0,embeddedPlayerMode:f.De,errorCode:H}))}; +g.S.publish=function(Q){var z=g.rc.apply(1,arguments);this.state.L.publish.apply(this.state.L,[Q].concat(g.F(z)));if(Q==="videodatachange"||Q==="resize"||Q==="cardstatechange")this.state.B.publish.apply(this.state.B,[Q].concat(g.F(z))),this.state.D.publish.apply(this.state.D,[Q].concat(g.F(z)))}; +g.S.F$=function(Q){var z=g.rc.apply(1,arguments);this.state.L.publish.apply(this.state.L,[Q].concat(g.F(z)));this.state.B.publish.apply(this.state.B,[Q].concat(g.F(z)))}; +g.S.g4=function(Q){var z=g.rc.apply(1,arguments);this.state.L.publish.apply(this.state.L,[Q].concat(g.F(z)));this.state.B.publish.apply(this.state.B,[Q].concat(g.F(z)));this.state.D.publish.apply(this.state.D,[Q].concat(g.F(z)))}; +g.S.A$=function(Q){var z=g.rc.apply(1,arguments);this.state.L.publish.apply(this.state.L,[Q].concat(g.F(z)));this.state.B.publish.apply(this.state.B,[Q].concat(g.F(z)));this.state.D.publish.apply(this.state.D,[Q].concat(g.F(z)));this.state.S.publish.apply(this.state.S,[Q].concat(g.F(z)))}; +g.S.V=function(Q){return this.app.C().V(Q)}; +g.S.zv=function(){if(this.state.element){var Q=this.state.element,z;for(z in this.state.Z)this.state.Z.hasOwnProperty(z)&&(Q[z]=null);this.state.element=null}g.h.prototype.zv.call(this)};g.p(MW,g.NP);MW.prototype.publish=function(Q){var z=g.rc.apply(1,arguments);if(this.S.has(Q))return this.S.get(Q).push(z),!0;var H=!1;try{for(z=[z],this.S.set(Q,z);z.length;)H=g.NP.prototype.publish.call.apply(g.NP.prototype.publish,[this,Q].concat(g.F(z.shift())))}finally{this.S.delete(Q)}return H};g.p(CR,g.h);CR.prototype.zv=function(){this.S.dispose();this.D.dispose();this.B.dispose();this.L.dispose();this.U=this.Z=this.N=this.Y=this.j=void 0};var r7a=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.p(EZ,S1);g.S=EZ.prototype;g.S.getApiInterface=function(){return Array.from(this.state.j)}; +g.S.dJ=function(Q,z){this.state.S.subscribe(Q,z)}; +g.S.fY$=function(Q,z){this.state.S.unsubscribe(Q,z)}; +g.S.getPlayerState=function(Q){return wva(this.app,Q)}; +g.S.e5j=function(){return wva(this.app)}; +g.S.RXh=function(Q,z,H){gX(this)&&(UL(this.app,!0,1),hw(this.app,Q,z,H,1))}; +g.S.getCurrentTime=function(Q,z,H){var f=this.getPlayerState(Q);if(this.app.getAppState()===2&&f===5){var b;return((b=this.app.getVideoData())==null?void 0:b.startSeconds)||0}return this.V("web_player_max_seekable_on_ended")&&f===0?KFc(this.app,Q):Q?this.app.getCurrentTime(Q,z,H):this.app.getCurrentTime(Q)}; +g.S.uh=function(){return this.app.getCurrentTime(1)}; +g.S.TR=function(){var Q=this.app.JM(1);return isNaN(Q)?this.getCurrentTime(1):Q}; +g.S.FY=function(){return this.app.getDuration(1)}; +g.S.sH=function(Q,z){Q=g.y4(Math.floor(Q),0,100);isFinite(Q)&&Aw(this.app,{volume:Q,muted:this.isMuted()},z)}; +g.S.LYv=function(Q){this.sH(Q,!1)}; +g.S.X1=function(Q){Aw(this.app,{muted:!0,volume:this.getVolume()},Q)}; +g.S.gtl=function(){this.X1(!1)}; +g.S.Pt=function(Q){nR(this.app)&&!this.V("embeds_enable_emc3ds_muted_autoplay")||Aw(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},Q)}; +g.S.HEl=function(){nR(this.app)&&this.V("embeds_enable_emc3ds_muted_autoplay")||this.Pt(!1)}; +g.S.getPlayerMode=function(){var Q={};this.app.getVideoData().gV&&(Q.pfp={enableIma:g.HG(this.app.getVideoData())&&this.app.Iq().allowImaMonetization,autoplay:iE(this.app.Iq()),mutedAutoplay:this.app.Iq().mutedAutoplay});return Q}; +g.S.E5=function(){var Q=this.app.getPresentingPlayerType();if(Q===2&&!this.app.Uj()){var z=IO(this.app.xt());if(!myp(z)||wd6(z))return}Q===3?Ig(this.app.xt()).wM("control_play"):this.app.C().V("html5_ssap_ignore_play_for_ad")&&g.wr(this.app.Iq())&&Q===2||this.app.playVideo(Q)}; +g.S.TV$=function(){UL(this.app,!0,1);this.E5()}; +g.S.pauseVideo=function(Q){var z=this.app.getPresentingPlayerType();if(z!==2||this.app.Uj()||myp(IO(this.app.xt())))z===3?Ig(this.app.xt()).wM("control_pause"):this.app.pauseVideo(z,Q)}; +g.S.sJ$=function(){var Q=this.app,z=!1;Q.rh.gT&&(Q.Yv.publish("pageTransition"),z=!0);Q.stopVideo(z)}; +g.S.clearVideo=function(){}; +g.S.getAvailablePlaybackRates=function(){var Q=this.app.C();return Q.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(Q.D?Q.ancestorOrigins[0]:window.location.origin)||Q.h_?ynJ:Q.supportsVarispeedExtendedFeatures?q7Y:Q.V("web_remix_allow_up_to_3x_playback_rate")&&g.c6(Q)?MXB:Jg:[1]}; +g.S.getPlaybackQuality=function(Q){return(Q=this.app.QE(Q))?Q.getPlaybackQuality():"unknown"}; +g.S.wBT=function(){}; +g.S.getAvailableQualityLevels=function(Q){return(Q=this.app.QE(Q))?(Q=g.NT(Q.Qz(),function(z){return z.quality}),Q.length&&(Q[0]==="auto"&&Q.shift(),Q=Q.concat(["auto"])),Q):[]}; +g.S.XY=function(){return this.getAvailableQualityLevels(1)}; +g.S.PTT=function(){return this.HF()}; +g.S.xcv=function(){return 1}; +g.S.getVideoLoadedFraction=function(Q){return this.app.getVideoLoadedFraction(Q)}; +g.S.HF=function(){return this.getVideoLoadedFraction()}; +g.S.qnh=function(){return 0}; +g.S.getSize=function(){var Q=this.app.Un().getPlayerSize();return{width:Q.width,height:Q.height}}; +g.S.setSize=function(){this.app.Un().resize()}; +g.S.loadVideoById=function(Q,z,H,f){if(!Q)return!1;Q=tf(Q,z,H);return this.app.loadVideoByPlayerVars(Q,f)}; +g.S.lJv=function(Q,z,H){Q=this.loadVideoById(Q,z,H,1);UL(this.app,Q,1)}; +g.S.cueVideoById=function(Q,z,H,f){Q=tf(Q,z,H);this.app.cueVideoByPlayerVars(Q,f)}; +g.S.YD=function(Q,z,H){this.cueVideoById(Q,z,H,1)}; +g.S.loadVideoByUrl=function(Q,z,H,f){Q=YD_(Q,z,H);return this.app.loadVideoByPlayerVars(Q,f)}; +g.S.AZI=function(Q,z,H){Q=this.loadVideoByUrl(Q,z,H,1);UL(this.app,Q,1)}; +g.S.cueVideoByUrl=function(Q,z,H,f){Q=YD_(Q,z,H);this.app.cueVideoByPlayerVars(Q,f)}; +g.S.pJ=function(Q,z,H){this.cueVideoByUrl(Q,z,H,1)}; +g.S.ae$=function(){var Q=this.app.C();if(Q.wh)return"";var z=this.app.Iq(),H=void 0;z.isLivePlayback||(H=Math.floor(this.app.getCurrentTime(1)));return Q.getVideoUrl(z.videoId,this.getPlaylistId()||void 0,H)}; +g.S.No=function(){return this.app.getDebugText()}; +g.S.getVideoEmbedCode=function(){var Q=this.app.C();if(Q.wh)return"";var z=this.app.Iq();return Q.getVideoEmbedCode(z.isPrivate?"":z.title,this.app.Iq().videoId,this.app.Un().getPlayerSize(),this.getPlaylistId()||void 0)}; +g.S.hs=function(Q,z,H){return HdL(this.app,Q,z,H)}; +g.S.removeCueRange=function(Q){return bd9(this.app,Q)}; +g.S.loadPlaylist=function(Q,z,H,f){this.app.loadPlaylist(Q,z,H,f)}; +g.S.KvT=function(Q,z,H,f){this.loadPlaylist(Q,z,H,f);UL(this.app,!0,1)}; +g.S.cuePlaylist=function(Q,z,H,f){this.app.cuePlaylist(Q,z,H,f)}; +g.S.nextVideo=function(Q,z){this.app.nextVideo(Q,z)}; +g.S.r7$=function(){this.nextVideo();UL(this.app,!0,1)}; +g.S.previousVideo=function(Q){this.app.previousVideo(Q)}; +g.S.x8l=function(){this.previousVideo();UL(this.app,!0,1)}; +g.S.playVideoAt=function(Q){this.app.playVideoAt(Q)}; +g.S.W4m=function(Q){this.playVideoAt(Q);UL(this.app,!0,1)}; +g.S.setShuffle=function(Q){var z=this.app.getPlaylist();z&&z.setShuffle(Q)}; +g.S.setLoop=function(Q){var z=this.app.getPlaylist();z&&(z.loop=Q)}; +g.S.O35=function(){var Q=this.app.getPlaylist();if(!Q)return null;for(var z=[],H=0;H=400)if(Q=this.Iq(),this.K.C().V("client_respect_autoplay_switch_button_renderer"))Q=!!Q.autoplaySwitchButtonRenderer;else{var z,H,f,b;Q=!!((z=Q.getWatchNextResponse())==null?0:(H=z.contents)==null?0:(f=H.twoColumnWatchNextResults)==null?0:(b=f.autoplay)==null?0:b.autoplay)!==!1}if(Q)this.Z||(this.Z=!0,this.Ho(this.Z),this.K.C().V("web_player_autonav_toggle_always_listen")||HE9(this), +z=this.Iq(),this.Wh(z.autonavState),this.K.logVisibility(this.element,this.Z));else if(this.Z=!1,this.Ho(this.Z),!this.K.C().V("web_player_autonav_toggle_always_listen"))for(this.K.C().V("web_player_autonav_toggle_always_listen"),z=g.n(this.B),H=z.next();!H.done;H=z.next())this.DS(H.value)}; +g.S.Wh=function(Q){bE6(this)?this.isChecked=Q!==1:((Q=Q!==1)||(g.DQ(),Q=g.FZ("web_autonav_allow_off_by_default")&&!g.KF(0,141)&&g.ey("AUTONAV_OFF_BY_DEFAULT")?!1:!g.KF(0,140)),this.isChecked=Q);fJY(this)}; +g.S.onClick=function(){this.isChecked=!this.isChecked;this.K.P3(this.isChecked?2:1);fJY(this);if(bE6(this)){var Q=this.Iq().autoplaySwitchButtonRenderer;this.isChecked&&(Q==null?0:Q.onEnabledCommand)?this.K.F$("innertubeCommand",Q.onEnabledCommand):!this.isChecked&&(Q==null?0:Q.onDisabledCommand)&&this.K.F$("innertubeCommand",Q.onDisabledCommand)}this.K.logClick(this.element)}; +g.S.getValue=function(){return this.isChecked}; +g.S.Iq=function(){return this.K.getVideoData(1)};g.p(LNJ,e1);g.p(bo,g.mh);bo.prototype.onClick=function(){this.enabled&&(LK(this,!this.checked),this.publish("select",this.checked))}; +bo.prototype.getValue=function(){return this.checked}; +bo.prototype.setEnabled=function(Q){(this.enabled=Q)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var SWa=["en-CA","en","es-MX","fr-CA"];g.p(MF,bo);MF.prototype.Jh=function(Q){Q?this.Z||(this.kt.md(this),this.Z=!0):this.Z&&(this.kt.nA(this),this.Z=!1);this.Z&&LK(this,xfZ())}; +MF.prototype.D=function(){g.yM(this.element,"ytp-menuitem-highlight-transition-enabled")}; +MF.prototype.L=function(Q){var z=xfZ();Q!==z&&(z=g.DQ(),dD(190,Q),dD(192,!0),z.save(),this.K.F$("cinematicSettingsToggleChange",Q))}; +MF.prototype.zv=function(){this.Z&&this.kt.nA(this);bo.prototype.zv.call(this)};g.p(CK,e1);CK.prototype.updateCinematicSettings=function(Q){this.Z=Q;var z;(z=this.menuItem)==null||z.Jh(Q);this.api.publish("onCinematicSettingsVisibilityChange",Q)};g.p(tv,e1);tv.prototype.nw=function(Q,z){z=z.clipConfig;Q==="dataloaded"&&z&&z.startTimeMs!=null&&z.endTimeMs!=null&&this.api.setLoopRange({startTimeMs:Math.floor(Number(z.startTimeMs)),endTimeMs:Math.floor(Number(z.endTimeMs)),postId:z.postId,type:"clips"})};g.p(EJ,e1);EJ.prototype.setCreatorEndscreenVisibility=function(Q){var z;(z=BE(this.api.xt()))==null||z.Ho(Q)}; +EJ.prototype.Z=function(Q){function z(f){f==="creatorendscreen"&&(f=BE(H.api.xt()))&&f.OAl(H.hideButton)} +var H=this;this.hideButton=Q;this.events.X(this.api,"modulecreated",z);z("creatorendscreen")};g.p(pK,bo);pK.prototype.L=function(Q){this.D(Q?1:0)}; +pK.prototype.B=function(){var Q=this.hasDrcAudioTrack(),z=this.Z()===1&&Q;LK(this,z);this.setEnabled(Q)}; +pK.prototype.zv=function(){this.kt.nA(this);bo.prototype.zv.call(this)};g.p(nK,e1);nK.prototype.getDrcUserPreference=function(){return this.Z}; +nK.prototype.setDrcUserPreference=function(Q){g.Pw("yt-player-drc-pref",Q,31536E3);Q!==this.Z&&(this.Z=Q,this.updateEnvironmentData(),this.B()&&this.api.w5())}; +nK.prototype.updateEnvironmentData=function(){this.api.C().sj=this.Z===1}; +nK.prototype.B=function(){var Q,z,H=(Q=this.api.getVideoData())==null?void 0:(z=Q.L)==null?void 0:z.Z;if(!H)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.V("mta_drc_mutual_exclusion_removal")){var f=this.api.getAudioTrack().Ii.id;return N2(H,function(b){var L;return b.audio.Z&&((L=b.Ii)==null?void 0:L.id)===f})}return N2(H,function(b){var L; +return((L=b.audio)==null?void 0:L.Z)===!0})};g.p(gz,e1);gz.prototype.onVideoDataChange=function(){var Q=this,z=this.api.getVideoData();this.api.Ys("embargo",1);var H=z==null?void 0:z.Nr.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(H==null?0:H.length)?qWY(this,H.filter(function(f){return yKJ(Q,f)})):(z==null?0:z.cueRanges)&&qWY(this,z.cueRanges.filter(function(f){return yKJ(Q,f)}))}; +gz.prototype.B=function(Q){return Q.embargo!==void 0}; +gz.prototype.zv=function(){e1.prototype.zv.call(this);this.Z={}};g.p(Z_,e1); +Z_.prototype.addEmbedsConversionTrackingParams=function(Q){var z=this.api.C(),H=z.widgetReferrer,f=z.C3,b=this.Z,L="",u=z.getWebPlayerContextConfig();u&&(L=u.embedsIframeOriginParam||"");H.length>0&&(Q.embeds_widget_referrer=H);f.length>0&&(Q.embeds_referring_euri=f);z.D&&L.length>0&&(Q.embeds_referring_origin=L);u&&u.embedsFeature&&(Q.feature=u.embedsFeature);b.length>0&&(z.V("embeds_web_enable_lite_experiment_control_arm_logging")?b.unshift(28572):g.M0(g.B0(z))&&b.unshift(159628),z=b.join(","),z= +g.mW()?z:g.Z3(z,4),Q.source_ve_path=z);this.Z.length=0};g.p(MJk,e1);g.p(CML,e1);g.p(GG,g.h);GG.prototype.zv=function(){g.h.prototype.zv.call(this);this.Z=null;this.B&&this.B.disconnect()};g.p(EAJ,e1);g.p($n,g.m);$n.prototype.show=function(){g.m.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; +$n.prototype.onVideoDataChange=function(Q){var z,H,f=(z=this.api.getVideoData())==null?void 0:(H=z.getPlayerResponse())==null?void 0:H.playabilityStatus;f&&(z=pBL(f),g.w(this.api.getPlayerStateObject(),128)||Q==="dataloaderror"||!z?(this.B=0,jf(this),this.hide()):(Q=(z.remainingTimeSecs||0)*1E3,Q>0&&(this.show(),this.updateValue("label",gZ(z.label)),gAk(this,Q))))}; +$n.prototype.zv=function(){jf(this);g.m.prototype.zv.call(this)};g.p(ZE6,e1);g.p(F1,g.m);F1.prototype.onClick=function(){this.Yv.logClick(this.element);this.Yv.F$("onFullerscreenEduClicked")}; +F1.prototype.Jh=function(){this.Yv.isFullscreen()?this.B?this.Z.hide():this.Z.show():this.hide();this.Yv.logVisibility(this.element,this.Yv.isFullscreen()&&!this.B)};g.p(xn,e1);xn.prototype.updateFullerscreenEduButtonSubtleModeState=function(Q){var z;(z=this.Z)!=null&&(g.MP(z.element,"ytp-fullerscreen-edu-button-subtle",Q),Q&&!z.L&&(z.element.setAttribute("title","Scroll for details"),x1(z.Yv,z.element,z),z.L=!0))}; +xn.prototype.updateFullerscreenEduButtonVisibility=function(Q){var z;(z=this.Z)!=null&&(z.B=Q,z.Jh())};g.p(G09,g.m);g.p(FNL,e1);g.p(OJ,e1);OJ.prototype.getSphericalProperties=function(){var Q=g.rX(this.api.xt());return Q?Q.getSphericalProperties():{}}; +OJ.prototype.setSphericalProperties=function(Q){if(Q){var z=g.rX(this.api.xt());z&&z.setSphericalProperties(Q,!0)}};g.p(oM,e1);g.S=oM.prototype;g.S.createClientVe=function(Q,z,H,f){this.api.createClientVe(Q,z,H,f===void 0?!1:f)}; +g.S.createServerVe=function(Q,z,H){this.api.createServerVe(Q,z,H===void 0?!1:H)}; +g.S.setTrackingParams=function(Q,z){this.api.setTrackingParams(Q,z)}; +g.S.logClick=function(Q,z){this.api.logClick(Q,z)}; +g.S.logVisibility=function(Q,z,H){this.api.logVisibility(Q,z,H)}; +g.S.hasVe=function(Q){return this.api.hasVe(Q)}; +g.S.destroyVe=function(Q){this.api.destroyVe(Q)};var OEc=!1;NF.prototype.setPlaybackRate=function(Q){this.playbackRate=Math.max(1,Q)}; +NF.prototype.getPlaybackRate=function(){return this.playbackRate};sJ.prototype.Ec=function(Q){var z=g.Rj(Q.info.Z.info,this.n3.AZ),H=Q.info.Ah+this.D,f=Q.info.startTime*1E3;if(this.policy.uT)try{f=this.policy.uT?g.lw(Q)*1E3:Q.info.startTime*1E3}catch(u){Math.random()>.99&&this.logger&&(f=Fh(Q.Z).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:Q.info.aq(),encodedDataView:g.g7(f,4)})),f=Q.info.startTime*1E3}var b=Q.info.clipId,L=this.policy.uT?g.x6A(Q)*1E3:Q.info.duration*1E3;this.policy.uT&&(f<0||L<0)&&(this.logger&&(this.logger({missingSegInfo:Q.info.aq(), +startTimeMs:f,durationMs:L}),this.policy.q0||(f<0&&(f=Q.info.startTime*1E3),L<0&&(L=Q.info.duration*1E3))),this.policy.q0&&(f<0&&(f=Q.info.startTime*1E3),L<0&&(L=Q.info.duration*1E3)));return{formatId:z,Ah:H,startTimeMs:f,clipId:b,Rp:L}}; +sJ.prototype.WG=function(Q){this.timestampOffset=Q};aM.prototype.seek=function(Q,z){Q!==this.Z&&(this.seekCount=0);this.Z=Q;var H=this.videoTrack.B,f=this.audioTrack.B,b=this.audioTrack.nH,L=KNn(this,this.videoTrack,Q,this.videoTrack.nH,z);z=KNn(this,this.audioTrack,this.policy.QN?Q:L,b,z);Q=Math.max(Q,L,z);this.S=!0;this.n3.isManifestless&&(cKp(this,this.videoTrack,H),cKp(this,this.audioTrack,f));return Q}; +aM.prototype.isSeeking=function(){return this.S}; +aM.prototype.Y2=function(Q){this.L=Q}; +var D1n=2/24;var m1Y=0;g.S=wz.prototype;g.S.tH=function(){this.U=this.now();dvk(this.L5,this.U);this.zL.tH()}; +g.S.n9=function(Q,z){var H=this.policy.B?(0,g.IE)():0;kn(this,Q,z);Q-this.j<10&&this.B>0||this.tY(Q,z);this.zL.n9(Q,z);this.policy.B&&(Q=(0,g.IE)()-H,this.KH+=Q,this.rT=Math.max(Q,this.rT))}; +g.S.tY=function(Q,z){var H=(Q-this.j)/1E3,f=z-this.L;this.oD||(po(this.L5,H,f),this.eJ(H,f));this.j=Q;this.L=z}; +g.S.z7=function(){this.De&&wBL(this);this.zL.z7()}; +g.S.Aa=function(Q){this.De||(this.De=this.S-this.EY+Q,this.UY=this.S,this.gT=this.Y)}; +g.S.UW=function(Q,z){Q=Q===void 0?this.Y:Q;z=z===void 0?this.S:z;this.B>0||(this.N=Q,this.B=z,this.Ze=this.isActive=!0)}; +g.S.B6=function(){return this.V9||2}; +g.S.tW=function(){}; +g.S.EU=function(){var Q,z={rn:this.requestNumber,rt:(this.Y-this.Z).toFixed(),lb:this.S,stall:(1E3*this.D).toFixed(),ht:(this.U-this.Z).toFixed(),elt:(this.N-this.Z).toFixed(),elb:this.B,d:(Q=this.yl)==null?void 0:Q.dP()};this.url&&x1Y(z,this.url);this.policy.B&&(z.mph=this.rT.toFixed(),z.tph=this.KH.toFixed());z.ulb=this.f3;z.ult=this.wh;z.abw=this.C3;return z}; +g.S.now=function(){return(0,g.IE)()}; +g.S.deactivate=function(){this.isActive&&(this.isActive=!1)};g.p(ef,wz);g.S=ef.prototype;g.S.EU=function(){var Q=wz.prototype.EU.call(this);Q.pb=this.TJ;Q.pt=(1E3*this.gh).toFixed();Q.se=this.Wz;return Q}; +g.S.Zz=function(){var Q=this.zL;this.uT||(this.uT=Q.Zz?Q.Zz():1);return this.uT}; +g.S.dH=function(){return this.Xc?this.Zz()!==1:!1}; +g.S.l_=function(Q,z,H){if(!this.Xa){this.Xa=!0;if(!this.oD){kn(this,Q,z);this.tY(Q,z);var f=this.Zz();this.Wz=H;if(!this.oD)if(f===2){f=Q-this.N0)||lo(this,f,z),this.B>0&&tE(this.L5, +z,this.D));Q=(Q-this.Z)/1E3||.01;this.policy.N&&!(this.B>0)||Co(this.L5,Q,this.L,TZ9(this),this.Aj)}this.deactivate()}}; +g.S.IU=function(Q,z,H){H&&(this.uT=2);Q<0&&this.V9&&(Q=this.V9);z?this.iT+=Q:this.En+=Q}; +g.S.B6=function(){return this.En||this.iT||wz.prototype.B6.call(this)}; +g.S.tY=function(Q,z){var H=(Q-this.j)/1E3,f=z-this.L,b=this.Zz();this.isActive?b===1&&((f>0||this.policy.S)&&(H>.2||f<1024)?(this.D+=H,f>0&&H>.2&&lo(this,this.QF?H:.05,f),this.ZJ=!0):f>0&&(lo(this,H,f),this.ZJ=!0)):z&&z>=this.policy.Z&&this.UW(Q,z);wz.prototype.tY.call(this,Q,z)}; +g.S.WK=function(Q){if(!this.oD){kn(this,Q,this.S);var z=(Q-this.Z)/1E3;this.Zz()!==2&&this.B>0&&(this.D+=(Q-this.j)/1E3,tE(this.L5,this.L,this.D));Co(this.L5,z,this.L,TZ9(this),this.Aj,!0);Q=(Q-this.j)/1E3;po(this.L5,Q,0);this.eJ(Q,0)}}; +g.S.UW=function(Q,z){Q=Q===void 0?this.Y:Q;z=z===void 0?this.S:z;if(!(this.B>0)&&(wz.prototype.UW.call(this,Q,z),this.Zz()===1)){z=(this.U-this.Z)/1E3;var H=(Q-this.U)/1E3;this.Xc&&RM(this,this.now());this.yE||this.oD||(this.V9&&(H=Math.max(0,H-this.V9)),Q=this.L5,Q.N.iH(1,z),Q.yl.iH(1,H))}}; +g.S.Rh=function(){this.Xc&&RM(this,this.now());return this.mq}; +g.S.D$=function(){var Q;if(Q=this.L>this.fS)Q=(Q=this.L)?Q>=this.policy.Z:!1;return Q}; +g.S.G3=function(){return this.WI}; +g.S.U5=function(Q){Q=Q===void 0?this.now():Q;if(this.Xc){RM(this,Q);if(this.uT?this.dH():this.L3!==this.jm){var z=this.jm;if(Q0?H+Q:H+Math.max(Q,z)}; +g.S.gs=function(){return this.now()-this.N}; +g.S.u0=function(){return(this.L-this.B)*1E3/this.gs()||0}; +g.S.Tr=function(){return this.N};Qg.prototype.feed=function(Q){Zt(this.Z,Q);this.SA()}; +Qg.prototype.SA=function(){if(this.D){if(!this.Z.getLength())return;var Q=this.Z.split(this.L-this.B),z=Q.Qb;Q=Q.TO;if(!this.zL.Aa(this.D,z,this.B,this.L))return;this.B+=z.getLength();this.Z=Q;this.B===this.L&&(this.D=this.L=this.B=void 0)}for(;;){var H=0;Q=g.n(Qra(this.Z,H));z=Q.next().value;H=Q.next().value;H=g.n(Qra(this.Z,H));Q=H.next().value;H=H.next().value;if(z<0||Q<0)break;if(!this.Z.rd(H,Q)){if(!this.zL.Aa||!this.Z.rd(H,1))break;H=this.Z.split(H).TO;this.zL.Aa(z,H,0,Q)&&(this.D=z,this.B= +H.getLength(),this.L=Q,this.Z=new gt([]));break}Q=this.Z.split(H).TO.split(Q);H=Q.TO;this.zL.sO(z,Q.Qb);this.Z=H}}; +Qg.prototype.dispose=function(){this.Z=new gt};g.S=zh.prototype;g.S.ji=function(){return 0}; +g.S.Oa=function(){return null}; +g.S.iQ=function(){return null}; +g.S.Dv=function(){return this.state>=1}; +g.S.isComplete=function(){return this.state>=3}; +g.S.vl=function(){return this.state===5}; +g.S.onStateChange=function(){}; +g.S.Ni=function(Q){var z=this.state;this.state=Q;this.onStateChange(z);this.callback&&this.callback(this,z)}; +g.S.Ka=function(Q){Q&&this.state=this.xhr.HEADERS_RECEIVED}; +g.S.getResponseHeader=function(Q){try{return this.xhr.getResponseHeader(Q)}catch(z){return""}}; +g.S.l4=function(){return+this.getResponseHeader("content-length")}; +g.S.Kg=function(){return this.B}; +g.S.MY=function(){return this.status>=200&&this.status<300&&!!this.B}; +g.S.sG=function(){return this.Z.getLength()>0}; +g.S.s2=function(){var Q=this.Z;this.Z=new gt;return Q}; +g.S.YZ=function(){return this.Z}; +g.S.abort=function(){this.Sm=!0;this.xhr.abort()}; +g.S.yg=function(){return!0}; +g.S.R9=function(){return this.L}; +g.S.q8=function(){return""};g.S=bu9.prototype;g.S.getResponseHeader=function(Q){return Q==="content-type"?this.Z.get("type"):""}; +g.S.abort=function(){}; +g.S.wc=function(){return!0}; +g.S.l4=function(){return this.range.length}; +g.S.Kg=function(){return this.loaded}; +g.S.MY=function(){return!!this.loaded}; +g.S.sG=function(){return!!this.B.getLength()}; +g.S.s2=function(){var Q=this.B;this.B=new gt;return Q}; +g.S.YZ=function(){return this.B}; +g.S.yg=function(){return!0}; +g.S.R9=function(){return!!this.error}; +g.S.q8=function(){return this.error};g.S=uCZ.prototype;g.S.start=function(Q){var z={credentials:"include",cache:"no-store"};Object.assign(z,this.Y);this.D&&(z.signal=this.D.signal);Q=new Request(Q,z);fetch(Q).then(this.U,this.onError).then(void 0,y5)}; +g.S.onDone=function(){this.Sm()||this.zL.z7()}; +g.S.getResponseHeader=function(Q){return this.responseHeaders?this.responseHeaders.get(Q):null}; +g.S.wc=function(){return!!this.responseHeaders}; +g.S.Kg=function(){return this.B}; +g.S.l4=function(){return+this.getResponseHeader("content-length")}; +g.S.MY=function(){return this.status>=200&&this.status<300&&!!this.B}; +g.S.sG=function(){return!!this.Z.getLength()}; +g.S.s2=function(){this.sG();var Q=this.Z;this.Z=new gt;return Q}; +g.S.YZ=function(){this.sG();return this.Z}; +g.S.Sm=function(){return this.S}; +g.S.abort=function(){this.L&&this.L.cancel().catch(function(){}); +this.D&&this.D.abort();this.S=!0}; +g.S.yg=function(){return!0}; +g.S.R9=function(){return this.j}; +g.S.q8=function(){return this.errorMessage};g.S=SYA.prototype;g.S.onDone=function(){if(!this.Sm){this.status=this.xhr.status;try{this.response=this.xhr.response,this.B=this.response.byteLength}catch(Q){}this.Z=!0;this.zL.z7()}}; +g.S.Vx=function(){this.xhr.readyState===2&&this.zL.tH()}; +g.S.Ex=function(Q){this.Sm||(this.status=this.xhr.status,this.Z||(this.B=Q.loaded),this.zL.n9((0,g.IE)(),Q.loaded))}; +g.S.wc=function(){return this.xhr.readyState>=2}; +g.S.getResponseHeader=function(Q){try{return this.xhr.getResponseHeader(Q)}catch(z){return g.ax(Error("Could not read XHR header "+Q)),""}}; +g.S.l4=function(){return+this.getResponseHeader("content-length")}; +g.S.Kg=function(){return this.B}; +g.S.MY=function(){return this.status>=200&&this.status<300&&this.Z&&!!this.B}; +g.S.sG=function(){return this.Z&&!!this.response&&!!this.response.byteLength}; +g.S.s2=function(){this.sG();var Q=this.response;this.response=void 0;return new gt([new Uint8Array(Q)])}; +g.S.YZ=function(){this.sG();return new gt([new Uint8Array(this.response)])}; +g.S.abort=function(){this.Sm=!0;this.xhr.abort()}; +g.S.yg=function(){return!1}; +g.S.R9=function(){return!1}; +g.S.q8=function(){return""};g.LH.prototype.info=function(){}; +g.LH.prototype.debug=function(){}; +g.LH.prototype.Z=function(Q){uk.apply(null,[5,this.tag,Q].concat(g.F(g.rc.apply(1,arguments))))}; +var y0a=new Map,C$A=new Map,qYZ=new function(){var Q=this;this.Z=new Map;this.Po={AKh:function(){return Q.Z}}};g.p(SS,g.h);SS.prototype.Rx=function(){if(!this.Ej.length)return[];var Q=this.Ej;this.Ej=[];this.L=g.dJ(Q).info;return Q}; +SS.prototype.m_=function(){return this.Ej}; +SS.prototype.zv=function(){g.h.prototype.zv.call(this);this.Z=null;this.Ej.length=0;this.Tv.length=0;this.L=null};g.p(vA,g.h);g.S=vA.prototype; +g.S.cNv=function(){if(!this.Sm()){var Q=(0,g.IE)(),z=!1;if(this.policy.xr){Q=Q-(this.timing.B>0?this.timing.N:this.timing.Z)-this.timing.B6()*1E3;var H=p_(yg(this),!1);Q>=2E3*H?z=!0:Q>=this.policy.Ev*H&&(this.Z=this.policy.Uu)}else if(this.timing.B>0){if(this.S){this.policy.ys&&(this.Z=0);return}var f=this.timing.G3();this.timing.U5();var b=this.timing.G3();b-f>=this.policy.C2*.8?(this.Z++,this.logger.debug(function(){return"Mispredicted by "+(b-f).toFixed(0)}),z=this.Z>=5):this.Z=0}else{var L=Q- +this.timing.Rh(); +this.policy.Uu&&L>0&&(this.Z+=1);z=p_(yg(this),!1)*this.policy.EE;(z=L>z*1E3)&&this.logger.debug(function(){return"Elbow late by "+L.toFixed(3)})}this.Z>0&&this.zL.PM(); +z?this.SJ():this.B.start()}}; +g.S.SJ=function(){this.D=!0;this.zL.bI();this.lastError="net.timeout";MQ(this)}; +g.S.canRetry=function(Q){var z=yg(this);Q=Q?this.policy.U2:this.policy.WY;return z.timedOut0&&(z=z.Z.getUint8(0),Q.ubyte=z,H===1&&z===0&&(Q.b248180278=!0))}this.Yu&&(Q.rc=this.policy.P5?this.Yu:this.Yu.toString());this.policy.d4&&this.qd&&(Q.tr=this.qd);Q.itag=this.info.Tv[0].Z.info.itag;Q.ml=""+ +this.info.Tv[0].Z.SH();Q.sq=""+this.info.Tv[0].Ah;this.b8&&(Q.ifi=""+ +xo(this.info.Mz.L));this.Yu!==410&&this.Yu!==500&&this.Yu!==503||(Q.fmt_unav="true");var f;(H=this.errorMessage||((f=this.xhr)==null? +void 0:f.q8()))&&(Q.msg=H);this.vO&&(Q.smb="1");this.info.isDecorated()&&(Q.sdai="1");return Q}; +g.S.Y0=function(){return e6k(this.timing)}; +g.S.q8=function(){return this.xhr.q8()||""}; +g.S.D$=function(){return this.isComplete()||this.timing.D$()}; +g.S.n9=function(){!this.Sm()&&this.xhr&&(this.Yu=this.xhr.status,this.policy.WR&&this.bL&&this.Va(!1),this.uZ()?this.Ka(2):!this.V$&&this.D$()&&(this.Ka(),this.V$=!0))}; +g.S.tH=function(){if(!this.Sm()&&this.xhr){if(!this.p_&&this.xhr.wc()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var Q=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.p_=((0,g.IE)()-Q)/1E3}this.xhr.wc()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.Fn&&!aSp()&&g.Pw("yt-player-headers-readable",!0,2592E3);Q=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var z=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),H;(H=this.sW)==null||H.stop();this.Gp=Q||this.Gp; +this.s7=z||this.s7}}; +g.S.z7=function(){var Q=this.xhr;if(!this.Sm()&&Q){this.Yu=Q.status;Q=this.qX(Q);if(this.policy.d4){var z;(z=this.sW)==null||z.stop()}Q===5?MQ(this.f5):this.Ni(Q);this.f5.B.stop()}}; +g.S.qX=function(Q){var z=this;dBa(this);if(CH(this.f5,this.xhr.status,this.XV?this.timing.Ze||this.w1:this.xhr.MY(),!1,this.yW))return 5;var H="";ts(this.f5,this.xhr)&&(H=Zun(this.f5,this.xhr));if(H)return EN(yg(this.f5)),this.info.j6(this.b8,H),3;H=Q.Kg();if(this.rN){this.Va(!0);dBa(this);if(CH(this.f5,this.xhr.status,this.timing.Ze||this.w1,!1,this.yW))return 5;if(!this.mm){if(this.w1)return EN(yg(this.f5)),3;this.f5.lastError="net.closed";return 5}}else{if(CH(this.f5,this.xhr.status,this.xhr.MY(), +!1,this.yW))return 5;var f=this.info.L;if(f&&f!==H||Q.R9())return this.f5.lastError="net.closed",5;this.Va(!0)}f=zh8(this)?Q.getResponseHeader("X-Bandwidth-Est"):0;if(Q=zh8(this)?Q.getResponseHeader("X-Bandwidth-Est3"):0)this.jz=!0,this.policy.W$&&(f=Q);noc(this.f5,H,f?Number(f):0,this.info.Tv[0].type===5);this.logger.debug(function(){var b=z.timing;return"Succeeded, rtpd="+(b.gh*1E3+b.Z-Date.now()).toFixed(0)}); +return 4}; +g.S.canRetry=function(){this.Sm();var Q=this.info.isDecorated();return this.f5.canRetry(Q)}; +g.S.onStateChange=function(){this.isComplete()&&(this.policy.YX?this.bI():this.timing.deactivate())}; +g.S.SJ=function(){this.f5.SJ()}; +g.S.PM=function(){this.callback&&this.callback(this,this.state)}; +g.S.TY=function(){return this.f5.TY()}; +g.S.dispose=function(){zh.prototype.dispose.call(this);this.f5.dispose();var Q;(Q=this.sW)==null||Q.dispose();this.policy.YX||this.bI()}; +g.S.bI=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; +g.S.Rx=function(){if(!this.m_().length)return[];this.aS=!0;return this.bL.Rx()}; +g.S.uZ=function(){if(this.state<1)return!1;if(this.bL&&this.bL.Ej.length)return!0;var Q;return((Q=this.xhr)==null?0:Q.sG())?!0:!1}; +g.S.m_=function(){this.Va(!1);return this.bL?this.bL.m_():[]}; +g.S.Va=function(Q){try{if(Q||this.xhr.wc()&&this.xhr.sG()&&!ts(this.f5,this.xhr)&&!this.Xs)this.bL||(this.bL=new SS(this.policy,this.info.Tv)),this.xhr.sG()&&(this.rN?this.rN.feed(this.xhr.s2()):Xt(this.bL,this.xhr.s2(),Q&&!this.xhr.sG()))}catch(z){this.rN?DBk(this,z):g.ax(z)}}; +g.S.sO=function(Q,z){switch(Q){case 21:Q=z.split(1).TO;K0c(this,Q);break;case 22:this.mm=!0;Xt(this.bL,new gt([]),!0);break;case 43:if(Q=U1(new YS(z),1))this.info.j6(this.b8,Q),this.w1=!0;break;case 45:z=RA(new YS(z));Q=z.Ld;z=z.M$;Q&&z&&(this.Ok=Q/z);break;case 44:this.w$=Pcc(new YS(z));var H,f,b;!this.timing.Ze&&((H=this.w$)==null?void 0:H.action)===4&&((f=this.w$)==null?0:(b=f.aF)==null?0:b.XV)&&(this.XV=this.w$.aF.XV);break;case 53:this.policy.d4&&(Q=rXJ(new YS(z)).pV)&&(this.sW||(this.pV=Q,this.sW= +new g.lp(this.eh,Q,this)),this.sW.start());break;case 60:this.HE=lM(new YS(z));break;case 58:if(Q=yXp(new YS(z)))this.Be=Q,Q.Be===3&&(this.yW=!0)}}; +g.S.Aa=function(Q,z,H,f){H||this.timing.Aa(f);if(Q!==21)return!1;if(Q=this.policy.WR)if(f=z.getLength()+H===f,Q*=this.info.Tv[0].Z.info.oi,!f&&z.getLength()0)return!1;if(!this.xhr.wc())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.rN)var Q=!this.info.L;else this.xhr.l4()?Q=!1:(Q=this.xhr.getResponseHeader("content-type"),Q=Q==="audio/mp4"||Q==="video/mp4"||Q==="video/webm");if(!Q)return!1;if(isNaN(this.info.Ds)){Q=this.xhr.getResponseHeader("x-head-seqnum");var z=this.timing.policy.Y?1:0;if(!Q)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); +else if(Number(Q)>this.info.Tv[0].Ah+z)return!1}return!0}; +g.S.RP=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; +g.S.Oa=function(){this.xhr&&(this.Gp=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.Gp}; +g.S.iQ=function(){this.xhr&&(this.s7=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.s7}; +g.S.JF=function(){return this.f5.JF()}; +g.S.eh=function(){if(!this.Sm()&&this.xhr){this.qd="heartbeat";var Q=this.f5;Q.Z+=2;this.PM()}};g.p(jS,wz);g.S=jS.prototype;g.S.tY=function(Q,z){var H=(Q-this.j)/1E3,f=z-this.L;this.B>0?f>0&&(this.L3&&(H>.2||f<1024?(this.D+=H,H>.2&&mBu(this,.05,f)):mBu(this,H,f)),this.jm&&(this.mq+=f,this.En+=H)):z>this.policy.Z&&this.UW(Q,z);wz.prototype.tY.call(this,Q,z)}; +g.S.l_=function(Q,z){kn(this,Q,z);this.tY(Q,z);this.L3&&(z=this.L*this.snapshot.stall+this.L/this.snapshot.byterate,this.B>0&&tE(this.L5,this.mq,this.D),Q=(Q-this.Z)/1E3||.01,this.policy.N&&!(this.B>0)||Co(this.L5,Q,this.L,z,!1))}; +g.S.WK=function(Q){kn(this,Q,this.S);var z=(Q-this.j)/1E3;po(this.L5,z,0);this.eJ(z,0);!this.L3&&this.B>0||(z=this.L*this.snapshot.stall+this.L/this.snapshot.byterate,this.B>0&&(this.D+=(Q-this.j)/1E3,tE(this.L5,this.mq,this.D)),Co(this.L5,((Q-this.Z)/1E3||.01)*this.policy.wh,this.L,z,!1,!0))}; +g.S.SW=function(Q){Q=Q.IE||2147483647;(Q&2)!==2&&(this.jm=!1);(Q&1)===1&&(this.L3=!0)}; +g.S.BJ=function(Q){Q=Q.IE||2147483647;(Q&2)===2&&(this.jm=!1);(Q&1)===1&&(this.L3=!1)}; +g.S.Tr=function(){return this.N}; +g.S.gs=function(){var Q=this.jm?this.now()-this.j:0;return Math.max(this.En*1E3+Q,1)}; +g.S.u0=function(){return this.mq*1E3/this.gs()}; +g.S.UW=function(Q,z){Q=Q===void 0?this.Y:Q;z=z===void 0?this.S:z;this.B>0||(wz.prototype.UW.call(this,Q,z),z=this.L5,Q=(Q-this.U)/1E3,z.N.iH(1,(this.U-this.Z)/1E3),z.yl.iH(1,Q))}; +g.S.tW=function(Q){this.iT=Q}; +g.S.EU=function(){var Q=wz.prototype.EU.call(this);Q.rbw=this.u0();Q.rbe=+this.jm;Q.gbe=+this.L3;Q.ackt=(this.iT-this.Z).toFixed();return Q}; +g.S.U5=function(){}; +g.S.G3=function(){return NaN}; +g.S.Rh=function(){return this.Z+this.snapshot.delay*1E3};Ft.prototype.sO=function(Q,z){z.getLength();switch(Q){case 20:Q=new YS(z);Q={KV:Bm(Q,1),videoId:U1(Q,2),itag:Bm(Q,3),lmt:Bm(Q,4),xtags:U1(Q,5),P2:Bm(Q,6),gZ:Pm(Q,8),MC:Bm(Q,9),Re$:Bm(Q,10),startMs:Bm(Q,11),durationMs:Bm(Q,12),dX:Bm(Q,14),timeRange:cm(Q,15,waZ),h5:Bm(Q,16),T6:Bm(Q,17),clipId:U1(Q,1E3)};this.oX(Q);break;case 21:this.gG(z,!1);break;case 22:this.Qd(z);break;case 31:Q=Wm(z,xSY);this.hH(Q);break;case 52:Q=Wm(z,sh_);this.m5(Q);break;default:this.hS(Q,z)}}; +Ft.prototype.oX=function(){}; +Ft.prototype.hS=function(){};g.p(x$,Ft);g.S=x$.prototype; +g.S.hS=function(Q,z){z.getLength();switch(Q){case 35:this.hp(z);break;case 44:this.yX(z);break;case 43:this.By(z);break;case 53:this.wI(z);break;case 55:Q=new YS(z);(Q={timeline:cm(Q,1,USa),hXn:cm(Q,2,hL_)},Q.timeline)&&Q.timeline.Bb&&this.zL.b6(Q.timeline.Bb,Q.timeline.bAj,Q.hXn);break;case 56:this.Mn();break;case 57:this.Hp(z);break;case 42:this.Iu(z);break;case 45:this.CV(z);break;case 59:this.Dw(z);break;case 51:this.KD(z);break;case 49:this.SW(z);break;case 50:this.BJ(z);break;case 47:this.GQ(z); +break;case 58:this.N3(z);break;case 61:this.zL.wr.tW((0,g.IE)());break;case 66:this.V2(z);break;case 46:this.LD(z);break;case 67:this.onSnackbarMessage(z)}}; +g.S.KD=function(Q){Q=new YS(Q);Q={VZh:hr(Q,1,T0),Avl:hr(Q,2,T0)};this.zL.KD(Q)}; +g.S.Dw=function(Q){var z=new YS(Q);Q=iG(z,1);var H=iG(z,2);z=iG(z,3);this.zL.Dw(Q,H,z)}; +g.S.CV=function(Q){Q=RA(new YS(Q));this.zL.CV(Q)}; +g.S.GQ=function(Q){Q=Wm(Q,JXZ);this.zL.GQ(Q)}; +g.S.Iu=function(Q){Q=new YS(Q);Q={videoId:U1(Q,1),formatId:cm(Q,2,T0),endTimeMs:Bm(Q,3),OZl:Bm(Q,4),mimeType:U1(Q,5),RO:cm(Q,6,gy6),indexRange:cm(Q,7,gy6),LG:cm(Q,8,ZiL)};this.zL.Iu(Q)}; +g.S.Hp=function(Q){Q=hL_(new YS(Q));this.zL.Hp(Q)}; +g.S.Mn=function(){this.zL.Mn()}; +g.S.hp=function(Q){Q=OiL(new YS(Q));this.zL.hp(Q)}; +g.S.wI=function(Q){Q=rXJ(new YS(Q));this.zL.wI(Q)}; +g.S.yX=function(Q){Q=Pcc(new YS(Q));this.zL.yX(Q)}; +g.S.By=function(Q){Q={redirectUrl:U1(new YS(Q),1)};this.zL.By(Q)}; +g.S.gG=function(Q){var z=Q.getUint8(0);if(Q.getLength()!==1){Q=Q.split(1).TO;var H=this.B[z]||null;H&&Y$(this.zL.eH,z,H,Q)}}; +g.S.Qd=function(Q){Q=Q.getUint8(0);var z=this.B[Q]||null;z&&this.zL.Qd(Q,z)}; +g.S.m5=function(Q){this.zL.m5(Q)}; +g.S.oX=function(Q){var z=Q.KV,H=Q.gZ,f=Q.P2,b=Q.T6,L=Q.h5,u=Q.MC,X=Q.startMs,v=Q.durationMs,y=Q.timeRange,q=Q.dX,M=Q.clipId,C=Fw(Q);Q=kiT.has(DU[""+Q.itag]);this.B[z]=C;this.zL.IU(C,Q,{KV:z,gZ:!!H,P2:f!=null?f:-1,MC:u!=null?u:-1,startMs:X!=null?X:-1,durationMs:v!=null?v:-1,dX:q,T6:b,h5:L,clipId:M,timeRange:y})}; +g.S.SW=function(Q){Q={IE:Bm(new YS(Q),1)};this.zL.SW(Q)}; +g.S.BJ=function(Q){Q={IE:Bm(new YS(Q),1)};this.zL.BJ(Q)}; +g.S.hH=function(Q){this.zL.hH(Q)}; +g.S.N3=function(Q){Q=yXp(new YS(Q));this.zL.N3(Q)}; +g.S.V2=function(Q){Q={Ba:cm(new YS(Q),1,AXL)};this.zL.V2(Q)}; +g.S.onSnackbarMessage=function(Q){Q=Bm(new YS(Q),1);this.zL.onSnackbarMessage(Q)}; +g.S.LD=function(Q){Q={reloadPlaybackParams:cm(new YS(Q),1,vyp)};this.zL.LD(Q)};g.p(Of,g.h);g.S=Of.prototype;g.S.Ne=function(){return Array.from(this.EV.keys())}; +g.S.TN=function(Q){Q=this.EV.get(Q);var z=Q.Ej;Q.V8+=z.getLength();Q.Ej=new gt;return z}; +g.S.eU=function(Q){return this.EV.get(Q).eU}; +g.S.z4=function(Q){return this.EV.get(Q).z4}; +g.S.IU=function(Q,z,H,f){this.EV.get(Q)||lMY(this,Q,z);z=this.EV.get(Q);if(this.n3){Q=QdZ(this,Q,H);if(f)for(var b=g.n(Q),L=b.next();!L.done;L=b.next()){L=L.value;var u=f;L.wh=u;L.startTime+=u;L.D+=u;L.j+=u}Rhp(this,H.KV,z,Q)}else H.gZ?z.Fw=H.dX:z.NZ.push(H),z.bP.push(H)}; +g.S.aD=function(Q){var z;return((z=this.EV.get(Q))==null?void 0:z.Tv)||[]}; +g.S.Ka=function(){for(var Q=g.n(this.EV.values()),z=Q.next();!z.done;z=Q.next())z=z.value,z.u6&&(z.Ex&&z.Ex(),z.u6=!1)}; +g.S.Qd=function(Q,z){this.logger.debug(function(){return"[onMediaEnd] formatId: "+z}); +var H=this.EV.get(z);if(o8){if(H&&!H.eU){if(H.Vw.get(Q))H.Vw.get(Q).kq=!0;else{var f;((f=this.Wo)==null?0:f.p5)&&H.Vw.set(Q,{data:new gt,HV:0,kq:!0})}H.z4=!0}}else H&&!H.z4&&(H.z4=!0)}; +g.S.Rx=function(Q){if(o8){var z=this.EV.get(Q);if(z)for(var H=g.n(z.Vw),f=H.next();!f.done;f=H.next()){var b=g.n(f.value);f=b.next().value;b=b.next().value;var L=z.mO.get(f);if(Ai(L[0])){if(!b.kq)continue;var u=L,X=b.data;X.getLength();L=0;var v=[];u=g.n(u);for(var y=u.next();!y.done;y=u.next()){y=y.value;var q=y.L,M=Gp(X,L,q);L+=q;v.push(new Tz(y,M))}z.hV.push.apply(z.hV,g.F(v))}else if(b.data.getLength()>0||!L[0].range&&b.kq)X=void 0,L=L[0],v=b.HV,u=b.data,L.range||(X=b.kq),y=u.getLength(),X=new Tz(b3p(L, +L.B+v,y,X),u),b.HV+=X.info.L,z.hV.push(X);z.Vw.get(f).data=new gt;b.kq&&z.Vw.delete(f)}Q=this.EV.get(Q);if(!Q)return[];z=Q.hV;Q.hV=[];H=g.n(z);for(f=H.next();!f.done;f=H.next())Q.V8+=f.value.info.L;return z||[]}H=(z=this.EV.get(Q))==null?void 0:z.bL;if(!H)return[];this.Va(Q,H);return H.Rx()}; +g.S.uZ=function(Q){if(o8)return As(this,Q);var z,H,f;return!!((H=(z=this.EV.get(Q))==null?void 0:z.bL)==null?0:(f=H.m_())==null?0:f.length)||As(this,Q)}; +g.S.Va=function(Q,z){for(;As(this,Q);){var H=this.TN(Q);var f=Q;f=this.EV.get(f).eU&&!I8(this,f);Xt(z,H,f&&ehk(this,Q))}}; +g.S.zv=function(){g.h.prototype.zv.call(this);for(var Q=g.n(this.EV.keys()),z=Q.next();!z.done;z=Q.next())Js(this,z.value);var H;if((H=this.Wo)==null?0:H.eN)for(Q=g.n(this.EV.values()),z=Q.next();!z.done;z=Q.next())z=z.value,z.Vw.clear(),z.mO.clear(),z.hV.length=0,z.Tv.length=0,z.bP.length=0,z.NZ.length=0;this.EV.clear()}; +var o8=!1;g.p(rY,g.h);g.S=rY.prototype;g.S.n9=function(){!this.Sm()&&this.xhr&&(this.Va(!1),e8(this.zL,this))}; +g.S.tH=function(){}; +g.S.z7=function(){if(!this.Sm()&&this.xhr){var Q=this.qX();Q===5?MQ(this.f5):this.Ni(Q);this.f5.B.stop();var z;(z=this.oT)==null||z.stop()}}; +g.S.qX=function(){var Q="";ts(this.f5,this.xhr)&&(Q=Zun(this.f5,this.xhr));if(Q)return this.info.Mz.j6(this.b8,Q),3;this.Va(!0);if(CH(this.f5,this.xhr.status,this.xhr.MY(),this.info.PQ(),this.yW))return 5;if(this.M_)return 3;noc(this.f5,this.xhr.Kg(),0,this.PQ());this.policy.Vs&&KI6(this.zL);return 4}; +g.S.Va=function(Q){var z=this.xhr;if((Q||!ts(this.f5,this.xhr))&&z.sG()){Q=z.s2();var H=Q.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+H}); +this.rN.feed(Q)}}; +g.S.sO=function(Q,z){this.xhr.yg()&&Q===21&&b_J(this);this.Du.sO(Q,z)}; +g.S.Aa=function(Q,z,H,f){H||(this.wr.Aa(f),this.policy.kd&&Q===21&&b_J(this));if(Q!==21)return!1;this.wr.Ze=!0;Q=z.getLength();H||(this.XF=z.getUint8(0),z=z.split(1).TO);var b=this.policy.Cc,L=this.Du.B[this.XF],u=this.n3.L.get(L);if(b&&u&&(b*=u.info.oi,Q+H!==f&&Q0){this.policy.xr&&this.f5.B.stop();Q=this.wr.gs();z=this.wr.u0();var H=L$v(this,Q);if(!(z>H.Jl||H.au>0&&this.info.Vn()>H.au)){this.rb=(0,g.IE)();var f;(f=this.oT)==null||f.stop();this.policy.Vs&&(f=this.zL,Q={GX:Math.round(z*Q/1E3),Cb:Q},f.policy.Vs&&(f.yl=Q,f.He++));this.SJ()}}}}; +g.S.SJ=function(){this.f5.SJ()}; +g.S.yX=function(Q){this.zL.yX(Q,this.lZ())}; +g.S.By=function(Q){this.M_=!0;this.info.Mz.j6(this.b8,Q.redirectUrl)}; +g.S.SW=function(Q){this.wr instanceof jS&&this.wr.SW(Q)}; +g.S.BJ=function(Q){this.wr instanceof jS&&this.wr.BJ(Q)}; +g.S.b6=function(Q,z,H){this.zL.b6(Q,z,H,this.lZ())}; +g.S.Iu=function(Q){var z=Q.formatId,H=Fw({itag:z.itag,lmt:z.lmt,xtags:z.xtags}),f,b,L=new ON(((f=Q.RO)==null?void 0:f.first)||0,((b=Q.RO)==null?void 0:b.k_)||0),u,X;f=new ON(((u=Q.indexRange)==null?void 0:u.first)||0,((X=Q.indexRange)==null?void 0:X.k_)||0);if(!this.n3.L.get(H)){H=Q.LG||{};if(this.policy.Da){var v,y;Q=(v=Q.mimeType)!=null?v:"";v=(y=z.itag)!=null?y:0;y=DU[""+v];H.mimeType=y!=="9"&&y!=="9h"?Q:'video/webm; codecs="'+["vp09",y==="9h"?"02":"00","51",y==="9h"?"10":"08","01.01.01.01.00"].join(".")+ +'"'}else H.mimeType=Q.mimeType;H.itag=z.itag;H.lastModified=""+(z.lmt||0);H.xtags=z.xtags;z=this.n3;y=Em("");v=Cy(H,null);Sb(z,new bD(y,v,L,f))}}; +g.S.CV=function(Q){this.zL.CV(Q)}; +g.S.onSnackbarMessage=function(Q){if(this.policy.jj)this.zL.onSnackbarMessage(Q)}; +g.S.hH=function(Q){this.DO=Q;this.EQ=(0,g.IE)();this.zL.hH(Q)}; +g.S.Dw=function(Q,z,H){this.zL.Dw(Q,z,H)}; +g.S.Hp=function(Q){Q.scope===2&&(this.CLc=Q);this.zL.Hp(Q)}; +g.S.Mn=function(){this.Px=!0;this.zL.Mn()}; +g.S.KD=function(Q){this.policy.D6&&this.zL.KD(Q)}; +g.S.GQ=function(Q){this.zL.GQ(Q,this.lZ())}; +g.S.N3=function(Q){Q.Be===3&&(this.yW=!0);this.zL.N3(Q)}; +g.S.V2=function(Q){this.zL.V2(Q)}; +g.S.LD=function(Q){this.zL.LD(Q)}; +g.S.canRetry=function(){this.Sm();return this.f5.canRetry(!1)}; +g.S.dispose=function(){if(!this.Sm()){g.h.prototype.dispose.call(this);this.f5.dispose();var Q;(Q=this.oT)==null||Q.dispose();this.Ni(-1);this.bI()}}; +g.S.Ni=function(Q){this.state=Q;e8(this.zL,this)}; +g.S.PQ=function(){return this.info.PQ()}; +g.S.TM=function(){return this.Px}; +g.S.FO=function(){return this.CLc}; +g.S.IU=function(Q,z,H){H.clipId&&(this.clipId=H.clipId);this.policy.S&&!z&&(this.D3=H.MC,this.PR=H.startMs);var f=0;this.policy.j2&&this.Hj&&this.clipId&&(f=BN(this.Hj,this.clipId)/1E3);this.eH.IU(Q,z,H,f);this.policy.Pl&&this.DO&&this.wr instanceof ef&&(f=this.DO.ej,this.wr.IU(H.durationMs/1E3,z,f>0&&H.MC+1>=f));this.eH.EV.get(Q).by=!0}; +g.S.Qd=function(Q,z){this.eH.Qd(Q,z)}; +g.S.m5=function(Q){this.requestIdentifier=Q}; +g.S.Rx=function(Q){return this.eH.Rx(Q)}; +g.S.aD=function(Q){return this.eH.aD(Q)}; +g.S.uZ=function(Q){return this.eH.uZ(Q)}; +g.S.Ne=function(){return this.eH.Ne()}; +g.S.Zz=function(){return 1}; +g.S.lZ=function(){return this.wr.requestNumber}; +g.S.IP=function(){return this.requestIdentifier}; +g.S.mK=function(){return this.clipId}; +g.S.mM=function(){return this.b8.mM()}; +g.S.lV=function(){this.bI()}; +g.S.bI=function(){this.wr.deactivate();var Q;(Q=this.xhr)==null||Q.abort()}; +g.S.isComplete=function(){return this.state>=3}; +g.S.zG=function(){return this.state===3}; +g.S.vl=function(){return this.state===5}; +g.S.Bs=function(){return this.state===4}; +g.S.L0=function(){return this.isComplete()}; +g.S.Dv=function(){return this.state>=1}; +g.S.TY=function(){return this.policy.ys?this.f5.TY():0}; +g.S.PM=function(){this.policy.ys&&e8(this.zL,this)}; +g.S.U8=function(){return jln(this.info)}; +g.S.JF=function(){return this.f5.JF()}; +g.S.P0=function(){var Q=GQu(this.f5);Object.assign(Q,x$_(this.info));Q.req="sabr";Q.rn=this.lZ();var z;if((z=this.xhr)==null?0:z.status)Q.rc=this.policy.P5?this.xhr.status:this.xhr.status.toString();var H;(z=(H=this.xhr)==null?void 0:H.q8())&&(Q.msg=z);this.rb&&(H=L$v(this,this.rb-this.wr.Tr()),Q.letm=H.MyT,Q.mrbps=H.Jl,Q.mram=H.au);return Q}; +g.S.rB=function(){return{D3:this.D3,PR:this.PR,isDecorated:this.info.isDecorated()}};uwp.prototype.tick=function(Q,z){this.ticks[Q]=z?window.performance.timing.navigationStart+z:(0,g.IE)()};g.p(BA,g.vf);g.S=BA.prototype; +g.S.z8=function(Q,z,H,f){var b=!1;this.policy.C3&&(b=H?this.De===Q.Ah:this.L3===Q.Ah);if(this.j&&f&&!b){f=[];b=[];var L=[],u=void 0,X=0;z&&(f=z.Z,b=z.B,L=z.L,u=z.D,X=z.GD,this.On("sdai",{sq:Q.Ah,ssvicpns:f.join("."),ssvid:b.join(".")}));this.policy.C3&&(H?this.De=Q.Ah:this.L3=Q.Ah);this.j.O2(Q.Ah,Q.startTime,this.B,f,b,L,H,X,u)}if(this.policy.C3){if(H||this.policy.gt){this.B===1&&a8(this,5,"noad");var v;Q.Ah!==((v=this.Z)==null?void 0:v.Ah)&&(gla(this,Q,z,H),isNaN(Q.startTime)||Uf(this,Q.Ah,hs(this, +Q.startTime,Q.Ah),!!z,this.j))}}else H&&gla(this,Q,z)}; +g.S.eB=function(Q,z,H){var f=this.videoTrack.Z.index.Xg()<=z;this.Z={BS:Q,Ah:z,Uc:H};f&&PA(this,Q,z)}; +g.S.UN=function(){this.j&&this.j.UN()}; +g.S.On=function(Q,z,H){(Q!=="sdai"||this.policy.Ve||(H===void 0?0:H))&&this.xv.On(Q,z)}; +g.S.U7=function(Q,z){var H=this.videoTrack.Z.index.EX(Q);if(H>=0){var f;var b=((f=z.J7.DM(H,2))==null?void 0:f.vP)||"";if(this.policy.S||b)return z.UT(Q,H),cA(this.xv,Q,Q,H),this.On("sdai",{cmskpad:1,t:Q.toFixed(3),sq:H}),!0}this.On("sdai",{cmskpad:0,t:Q.toFixed(3),sq:H});return!1};g.p(Vg,g.h);Vg.prototype.ST=function(Q,z,H){H=H===void 0?{}:H;this.policy.zw=Nj(Q,H,this.D,z===void 0?!1:z)};eS.prototype.wK=function(Q){var z=this;if(this.policy.aG){var H=new Set(Q);H.size===this.yl.size&&[].concat(g.F(H)).every(function(f){return z.yl.has(f)})||(this.xv.On("lwnmow",{itagDenylist:[].concat(g.F(Q)).join(",")}),this.xv.l3(!!H.size),this.U=-1,this.yl=H,lk(this,this.Z),this.mq=!0)}}; +eS.prototype.ST=function(Q,z,H){H=H===void 0?{}:H;var f=this.policy.zw;this.S.ST(Q,z===void 0?!1:z,H);if(f!==this.policy.zw){lk(this,this.Z);R8(this);var b,L;f>this.policy.zw&&((b=this.L)==null?0:w5(b.info))&&((L=this.nextVideo)==null||!w5(L.info))&&(this.Ze=!0)}};fI.prototype.WG=function(Q){this.timestampOffset=Q;this.flush()}; +fI.prototype.flush=function(){if(this.Z.pos>0){var Q={a:this.track.Wq(),u:this.Z.dP(),pd:Math.round(this.D),ad:Math.round(this.L)},z=this.B;if(z){var H=z.Z.info;Q.itag=H.itag;H.Z&&(Q.xtags=H.Z);Q.sq=z.Ah;Q.st=z.startTime;Q.sd=z.duration;this.track.policy.Lc&&(Q.si=z.aq());z.S&&(Q.esl=z.B+z.L);z.lc()&&(Q.eos=1)}isNaN(this.timestampOffset)||(Q.to=this.timestampOffset);var f;if(z=(f=this.track.nH)==null?void 0:f.TL({})){for(var b in z)this.j[b]!==z[b]&&(Q["sb_"+b]=z[b]);this.j=z}this.track.On("sbu", +Q);this.Z.reset();this.buffered=[];this.S=this.L=this.D=0;this.timestampOffset=this.B=void 0}};LI.prototype.dispose=function(){this.wh=!0}; +LI.prototype.Sm=function(){return this.wh}; +g.p(q5,Error);var OA9=new Uint8Array([0,0,0,38,112,115,115,104,0,0,0,0,237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237,0,0,0,6,72,227,220,149,155,6]);te.prototype.skip=function(Q){this.offset+=Q}; +te.prototype.j0=function(){return this.offset};g.S=uo_.prototype;g.S.tO=function(){return this.B}; +g.S.qC=function(){return this.B.length?this.B[this.B.length-1]:null}; +g.S.lH=function(){this.B=[];Zp(this);nI(this)}; +g.S.TN=function(Q){this.En=this.B.shift().info;Q.info.jH(this.En)}; +g.S.aD=function(){return g.NT(this.B,function(Q){return Q.info})}; +g.S.Wq=function(){return!!this.j.info.audio}; +g.S.getDuration=function(){return this.j.index.Rt()};g.p(UJ,zh);g.S=UJ.prototype;g.S.onStateChange=function(){this.Sm()&&(NQ(this.eH,this.formatId),this.Z.dispose())}; +g.S.P0=function(){var Q=T8a(this.eH,this.formatId),z;var H=((z=this.eH.EV.get(this.formatId))==null?void 0:z.bytesReceived)||0;var f;z=((f=this.eH.EV.get(this.formatId))==null?void 0:f.V8)||0;return{expected:Q,received:H,bytesShifted:z,sliceLength:I8(this.eH,this.formatId),isAnyMediaEndReceived:this.eH.z4(this.formatId)}}; +g.S.Y0=function(){return 0}; +g.S.D$=function(){return!0}; +g.S.Rx=function(){return this.eH.Rx(this.formatId)}; +g.S.m_=function(){return[]}; +g.S.uZ=function(){return this.eH.uZ(this.formatId)}; +g.S.JF=function(){return this.lastError}; +g.S.TY=function(){return 0};g.p(FJ,g.h);g.S=FJ.prototype;g.S.Wq=function(){return!!this.Z.info.audio}; +g.S.qC=function(){return this.D.qC()}; +g.S.TN=function(Q){this.D.TN(Q);var z;(z=this.N)!=null&&(z.S.add(Q.info.Ah),z.Z=rKc(z,z.ue,z.Cg,Q,z.Z),z.L=Q,z.j=(0,g.IE)());this.oi=Math.max(this.oi,Q.info.Z.info.oi||0)}; +g.S.getDuration=function(){if(this.policy.B){var Q=this.xv.t$();if(Q)return kY(Q)}return this.Z.index.Rt()}; +g.S.lH=function(){io(this);this.D.lH()}; +g.S.pG=function(){return this.D}; +g.S.isRequestPending=function(Q){return this.L.length?Q===this.L[this.L.length-1].info.Tv[0].Ah:!1}; +g.S.WG=function(Q){var z;(z=this.N)==null||z.WG(Q);var H;(H=this.U)==null||H.WG(Q)}; +g.S.On=function(Q,z){this.xv.On(Q,z)}; +g.S.B0=function(){return this.xv.B0()}; +g.S.dispose=function(){var Q;(Q=this.U)==null||Q.flush();g.h.prototype.dispose.call(this)};g.p(kp,g.h);kp.prototype.L=function(){this.B++>15||(this.Z=!this.Z,new exL(this.xv,this.policy,this.L5,this.Mz,this.Z),this.delay.start())}; +g.S=exL.prototype;g.S.tH=function(){}; +g.S.n9=function(){}; +g.S.z7=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.Kg()===this.size)this.xv.On("rqs",this.getInfo());else{var Q="net.connect";this.xhr.status>200?Q="net.badstatus":this.xhr.wc()&&(Q="net.closed");this.onError(Q)}}; +g.S.onError=function(Q){var z=this;this.xv.handleError(Q,this.getInfo());Jv("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(H){z.xv.On("pathprobe",H)},function(H){z.xv.handleError(H.errorCode,H.details)})}; +g.S.getInfo=function(){var Q=this.timing.EU();Q.shost=jl(this.location.XI);Q.pb=this.size;return Q};g.p(TX,g.h); +TX.prototype.Y=function(Q,z){if(Q.Y){this.n3.isLive?(Q=this.n3.Li&&this.n3.D?Q.Z.Di(this.n3.Li,!1):Q.Z.UU(Infinity),Q.Ds=this.Ds):Q=Q.Z.Di(0,!1);if(this.Ze){var H=this.Ze;Q.Ds===0&&(Q.S=H.N)}else Q.S=this.U;return Q}H=Q.B;if(!H.Z.SH())return H.Z.E7()?(Q=Av(this.S,Q.Z.info.oi,z.Z.info.oi,0),Q=H.Z.B1(H,Q)):Q=H.Z.VJ(H),Q;var f=H.j-this.xv.getCurrentTime(),b=!H.range||H.L===0&&H.B===0?0:H.range.length-(H.B+H.L),L=H.Z;this.hL(Q,f)&&b===0&&(this.n3.isManifestless?L=Q.Z:(L=H.startTime+cM6,H.L&&(L+=H.duration), +D_(Q,L),H=Q.B,L=H.Z));L.E7()?(b=this.L,z=Av(this.S,L.info.oi,z.Z.info.oi,f,b.D.length>0&&b.N===0&&this.xv.xQ),f=im(Q),Q=H.Z.B1(H,z),(z=Q.L)&&Q.Tv.length>1&&(f||Q.Mz.B||Q.Tv[0].Z!==H.Z?Q=H.Z.B1(H,Q.Tv[0].L):(f=Q.Tv[Q.Tv.length-1],L=f.L/z,!f.S&&L<.4&&(Q=H.Z.B1(H,z-f.L))))):(H.Ah<0&&(z=B8(H),z.pr=""+Q.L.length,this.xv.isSeeking()&&(z.sk="1"),z.snss=H.Y,this.xv.On("nosq",z)),Q=L.VJ(H));if(this.policy.De)for(H=g.n(Q.Tv),z=H.next();!z.done;z=H.next())z.value.type=6;return Q}; +TX.prototype.hL=function(Q,z){if(!im(Q)||!Q.Z.SH())return!1;var H=this.L.mq||skA(Q)||z<=this.policy.a5||this.L.Ze;this.logger.debug(function(){return"ready to adapt: "+H+", upgrade pending: "+skA(Q)+", health: "+z}); +return H}; +TX.prototype.zv=function(){g.h.prototype.zv.call(this)}; +var cM6=2/24;g.p(LB,g.h);LB.prototype.Zg=function(Q,z,H){var f;var b=((f=this.B)==null?void 0:f.reason)==="m"?"m":this.B&&q8J(this,this.B)?this.B.reason:"a";this.xv.Zg(new KH(Q,b,H));HW(this.xv,z,Q,!0)}; +LB.prototype.yc=function(Q,z){for(var H=g.n(this.De),f=H.next();!f.done;f=H.next())if(f=f.value,f.id===Q)return this.Wo.zO||(this.L=[f]),this.j=this.n3.Z[Q],mr(this.Wo)&&(this.Ze=!0),Q=new KH(this.j,z?"t":"m"),this.Wo.YJ&&z&&(this.S=!0),Q;this.L=[];return null}; +LB.prototype.ST=function(Q,z,H){H=H===void 0?{}:H;this.Z.ST(Q,z===void 0?!1:z,H)};XT.prototype.setData=function(Q,z,H,f){var b=this;f=f===void 0?{}:f;if(H==null?0:H.Xa)this.yy=fZu(this,H,f),Q.jM=this.Mz.jM();if(this.PQ())return!0;this.data=Q;this.Z=Gtk(Q,z,function(L,u){var X;(X=b.zL)==null||X.Hz(L,u)},H==null?void 0:H.L); +if(!this.Z)return!1;this.B=g.Tp(this.Z,tx9);return!0}; +XT.prototype.PQ=function(){return this.requestType===1}; +XT.prototype.Vn=function(){var Q;return((Q=this.zL)==null?void 0:Q.Vn())||0}; +XT.prototype.isDecorated=function(){var Q;return!((Q=this.data)==null||!Q.t8)};vW.prototype.encrypt=function(Q){this.xs.exports.AES128CTRCipher_encrypt(this.cipher,Q.byteOffset,Q.byteLength);return Q}; +vW.prototype.Sm=function(){return this.cipher===0}; +vW.prototype.dispose=function(){this.xs.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};yk.prototype.encrypt=function(Q,z){return X_(this.subtleCrypto.encrypt({name:"AES-CTR",length:128,counter:z},this.key,Q).catch(function(H){return Promise.reject(H.name+": "+H.message)}).then(function(H){return new Uint8Array(H)}))}; +yk.prototype.Sm=function(){return this.Z}; +yk.prototype.dispose=function(){this.Z=!0}; +xb.Qi(yk,{encrypt:ohu("oan2")});ql.prototype.encrypt=function(Q,z){gh(this.B,z);return X_(this.B.encrypt(Q))}; +ql.prototype.Sm=function(){return this.Z}; +ql.prototype.dispose=function(){this.Z=!0}; +xb.Qi(ql,{encrypt:ohu("oap")});Ml.prototype.encrypt=function(Q,z){var H=this.xs.QY(z),f=this.Z;f.xs.exports.AES128CTRCipher_setCounter(f.cipher,(H!=null?H:z).byteOffset);z=this.xs.QY(Q);this.Z.encrypt(z!=null?z:Q);H&&this.xs.free(H.byteOffset);return z?X_(this.xs.yD(z)):X_(Q)}; +Ml.prototype.Sm=function(){return this.Z.Sm()}; +Ml.prototype.dispose=function(){this.Z.dispose()}; +xb.Qi(Ml,{encrypt:ohu("oalw")});CB.prototype.encrypt=function(Q,z){var H=this,f=y1("");Q.length<=this.zB&&this.Z&&!this.D&&(f=tK(f,function(){return H.Z?H.Z.encrypt(Q,z):y1("wasm unavailable")})); +Q.length<=this.Ke&&(this.Z&&this.D&&(f=tK(f,function(){return H.Z?H.Z.encrypt(Q,z):y1("wasm unavailable")})),f=tK(f,function(){return Idv(H,Q,z)})); +return tK(tK(f,function(){return AEk(H,Q,z)}),function(){return Idv(H,Q,z)})}; +CB.prototype.Sm=function(){return this.S}; +CB.prototype.dispose=function(){this.S=!0;var Q;(Q=this.L)==null||CE(Q,g.Xx);g.Xx(this.Z);g.Xx(this.B)};YY.prototype.encrypt=function(Q){(0,g.IE)();return(new fo(this.Z.Z)).encrypt(Q,this.iv)}; +YY.prototype.decrypt=function(Q,z){(0,g.IE)();return(new fo(this.Z.Z)).decrypt(Q,z)}; +YY.prototype.Sm=function(){return this.L}; +YY.prototype.dispose=function(){this.L=!0;g.Xx(this.B)};g.p(r9,g.h);r9.prototype.L=function(Q,z){if(z){z=z instanceof g.GQ?z:sz(this,z);var H;((H=this.Z.get(Q))==null?void 0:jl(H.location))!==jl(z)&&this.Z.set(Q,new h9v(z,Q))}else this.Z.delete(Q)}; +r9.prototype.load=function(){var Q=this,z,H,f,b,L,u,X,v,y,q;return g.B(function(M){switch(M.Z){case 1:z=Q.Z.get(0);g.jY(M,2);var C;if(C=z&&!Q.B)C=jl(z.location),C=Q.B===qQ(C);if(C){M.bT(4);break}return g.Y(M,cEc(Q,Q.B?2:0),5);case 5:if(H=M.B)Q.L(0,H),xo(H)&&Q.L(1,OY(H));case 4:g.xv(M,3);break;case 2:f=g.OA(M);g.ax(f);if(!Q.B){M.bT(3);break}Q.B=!1;return g.Y(M,Q.load(),7);case 7:return M.return();case 3:if(!Q.rh.experiments.Nc("html5_onesie_probe_ec_hosts")){M.bT(0);break}g.jY(M,9);b=Q;L=b.L;u=3;return g.Y(M, +cEc(Q,1),11);case 11:return L.call(b,u,M.B),X=Q,v=X.L,y=4,g.Y(M,cEc(Q,2),12);case 12:v.call(X,y,M.B);g.xv(M,0);break;case 9:q=g.OA(M),g.ax(q),g.$v(M)}})}; +r9.prototype.Y=function(){var Q=this,z,H;return g.B(function(f){g.Re(Q.N);z=g.Mf(Q.rh.experiments,"html5_onesie_prewarm_max_lact_ms");if(Iw()>=z)return f.return();(H=Q.Z.get(0))&&U$Y(Q,H);g.$v(f)})}; +var Pfv={BZ$:0,Ec5:1,yjl:2,p5n:3,xGl:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};WDJ.prototype.decrypt=function(Q){var z=this,H,f,b,L,u,X;return g.B(function(v){switch(v.Z){case 1:if(z.Z.length&&!z.Z[0].isEncrypted)return v.return();z.B=!0;z.h8.Pc("omd_s");H=new Uint8Array(16);$9()?f=new H0(Q):b=new fo(Q);case 2:if(!z.Z.length||!z.Z[0].isEncrypted){v.bT(4);break}L=z.Z.shift();if(!f){u=b.decrypt(L.buffer.K4(),H);v.bT(5);break}return g.Y(v,f.decrypt(L.buffer.K4(),H),6);case 6:u=v.B;case 5:X=u;for(var y=0;y=4)){var z=KB(this),H=this.xhr;z.rc=H.status;Q&&(z.ab=!0);if(H.q8()){var f="onesie.net";z.msg=H.q8()}else H.status>=400?f="onesie.net.badstatus":H.MY()?this.Ae||(f="onesie.response.noplayerresponse"):f=H.status===204?"onesie.net.nocontent":"onesie.net.connect";f?this.d7(new oj(f,z)):(this.Pc("or_fs"),this.wr.l_((0,g.IE)(),H.Kg(),0),this.Ni(4),this.cG&&this.On("rqs",z));this.cG&&this.On("ombre", +"ok."+ +!f);this.ZP=!1;d9(this);LIJ(this.h8);if(!this.U6){this.fD.stop();var b;(b=this.G8)==null||b.stop()}var L;if(Q=(L=this.fK)==null?void 0:iop(L))for(L=0;L1E3){var Q;(Q=this.wr)==null||Q.WK((0,g.IE)());Q=KB(this);if(this.rh.vz()&&this.xhr instanceof HA){var z=this.xhr;Q.xrs=z.xhr.readyState;Q.xpb=z.Z.getLength();Q.xdc=z.D}this.d7(new oj("net.timeout",Q))}}else(0,g.IE)()-this.wr.Z>1E4&&((z=this.wr)==null||z.WK((0,g.IE)()),this.zf());this.isComplete()||this.Zy.start()}}; +g.S.zf=function(){this.logger.info("Onesie request timed out");this.ZP=!1;if(!d9(this)){var Q=KB(this);Q.timeout="1";this.d7(new oj("onesie.request",Q))}}; +g.S.d7=function(Q){var z=this;Q=NC(Q);this.hU?this.HI.h7(Q):(this.LZ.reject(Q),this.hU=!0);LIJ(this.h8);this.U6||this.fD.stop();this.Pc("or_fe");var H,f;(H=this.fK)==null||(f=iop(H))==null||f.forEach(function(b){z.On("pathprobe",b)}); +this.Ni(5);this.dispose()}; +g.S.isComplete=function(){return this.state>=3}; +g.S.Bs=function(){return this.state===4}; +g.S.L0=function(Q){var z,H;return this.isComplete()||!!((z=this.M8)==null?0:(H=z.get(Q))==null?0:H.Z)}; +g.S.zG=function(){return!1}; +g.S.vl=function(){return this.state===5}; +g.S.notifySubscribers=function(Q){for(var z=0;z102400&&!this.Oz&&(this.Pc("or100k"),this.Oz=!0);if(Q.sG()){var z=Q.s2(),H=z.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+H}); +this.cG&&this.On("ombrss","len."+H);this.rN.feed(z)}if(this.M8)for(var f=g.n(this.M8.keys()),b=f.next();!b.done;b=f.next()){var L=b.value;Q=void 0;(Q=this.M8.get(L))==null||Q.Ka();this.notifySubscribers(L)}}catch(u){this.d7(u)}}; +g.S.lZ=function(){return this.wr.requestNumber}; +g.S.IP=function(Q){return this.ez.get(Q)}; +g.S.rB=function(){return{D3:this.D3,PR:this.PR,isDecorated:!1}};g.p(FI6,g.h);g.S=FI6.prototype;g.S.Xx=function(Q,z){this.wh=void 0;KI6(this);hy8(this,Q,z)}; +g.S.X6=function(Q){if(this.Z.length===0)return!1;var z=this.Z[0];return z instanceof Vk?Q===this.xv.getCurrentTime()*1E3:!(z instanceof rY&&FDu(z.info))&&Math.abs(z.U8()-Q)<50}; +g.S.hp=function(Q){this.B=Q;this.wh=(0,g.IE)()+(Q.backoffTimeMs||0)}; +g.S.yX=function(Q,z){if(Q.action===void 0){var H=this.HI.R_();H!==void 0&&this.xv.fl(H)}else if(Q.action!==0||!this.En)switch(Q.action===0&&this.policy.rY&&(Q.action=2),H={},H.reason=Q.kSl,H.action=Q.action,H.rn=z,Q.action){case 1:this.policy.S&&this.D&&this.D.FQ(void 0,void 0,H);break;case 0:this.En=!0;this.videoData.OZ()&&this.policy.S&&this.D&&this.D.FQ(void 0,void 0,H,!1);this.xv.NU(H);break;case 2:this.xv.handleError("sabr.config",H,1);break;case 5:pEJ(this.HI,!0);break;case 6:pEJ(this.HI,!1); +break;case 3:this.policy.Xa&&((Q=this.n3.N)!=null&&(Q.N=!0),this.xv.handleError("sabr.hostfallback",H))}}; +g.S.b6=function(Q,z,H,f){if(this.policy.B){this.xv.On("ssap",{rn:f,v:z,tl:dGn(Q)});var b=this.xv.t$();Q={Vt:Q,context:H,version:z};WIp(this,H);b?DGZ(this,b,Q):(this.xv.On("ssap",{cacheclips:1,rn:f,v:z}),this.N=Q)}}; +g.S.Hp=function(Q){this.xv.On("ssap",{onsbrctxt:Q.type,dflt:Q.sendByDefault});WIp(this,Q);this.HI.Hp(Q)}; +g.S.Mn=function(){}; +g.S.CV=function(Q){if(Q.Ld!==void 0&&Q.M$){var z=Q.Ld/Q.M$;this.audioTrack.Y=!1;this.videoTrack.Y=!1;if(this.policy.wh||this.policy.J5||this.policy.mZ)this.xv.Ff.B=!1;this.xv.F2(z,1);if(this.HI.getCurrentTime()!==z){var H={lr:"sabr_seek",qt:!0,Rr:!0};Q.seekSource&&(H.seekSource=Q.seekSource);dz(this.xv,z+.1,H)}}}; +g.S.onSnackbarMessage=function(Q){this.HI.publish("onSnackbarMessage",Q)}; +g.S.hH=function(Q){Q.ej&&Q.Xk&&jb(this.n3,Q.ej,Q.Xk);this.policy.o_&&(Q.L1&&Q.aH&&(this.n3.W0=Q.L1/Q.aH),Q.Uz&&Q.gm&&(this.n3.eN=Q.Uz/Q.gm));Q.BK!=null&&this.HI.yT(Q.BK);this.policy.Sl&&Q.pn&&(Q=((0,g.IE)()-Q.pn)/1E3,this.xv.EM.iH(1,Q))}; +g.S.N3=function(Q){this.xv.N3(Q)}; +g.S.Rn=function(Q){return this.S6.has(Q)}; +g.S.Dw=function(Q,z,H){this.policy.L&&this.xv.On("sabrctxtplc",{start:Q?Q.join("_"):"",stop:z?z.join("_"):"",discard:H?H.join("_"):""});if(Q){Q=g.n(Q);for(var f=Q.next();!f.done;f=Q.next())this.S6.add(f.value)}if(z)for(z=g.n(z),Q=z.next();!Q.done;Q=z.next())Q=Q.value,this.S6.has(Q)&&this.S6.delete(Q);if(H)for(H=g.n(H),z=H.next();!z.done;z=H.next())z=z.value,this.videoData.sabrContextUpdates.has(z)&&(this.videoData.sabrContextUpdates.delete(z),z===3&&(this.videoData.Wp=""))}; +g.S.KD=function(){}; +g.S.Y4=function(Q){this.j=Q}; +g.S.Sz=function(Q){this.jm=Q}; +g.S.GQ=function(Q,z){wH(this.policy,Q,4,z)}; +g.S.V2=function(Q){if(Q==null?0:Q.Ba)if(Q=Q.Ba.AO){Q=g.n(Q);for(var z=Q.next();!z.done;z=Q.next())if(z=z.value,z.formatId){var H=this.n3.L.get(Fw(z.formatId));H&&H.info&&(H.info.debugInfo=z.debugInfo)}}}; +g.S.LD=function(Q){(Q=Q==null?void 0:Q.reloadPlaybackParams)&&this.HI.publish("reloadplayer",Q)}; +g.S.Ki=function(){return this.HI.Ki()||""}; +g.S.Vn=function(){var Q=sR(this.audioTrack,!0)*1E3,z=sR(this.videoTrack,!0)*1E3;return Math.min(Q,z)}; +g.S.Hz=function(Q,z){this.xv.On(Q,z)}; +g.S.xa=function(Q){tnc(this.xv,sd8(this.uT,Q))}; +g.S.zv=function(){g.h.prototype.zv.call(this);this.B=void 0;hy8(this,!0,"i");this.Z=[]};wV_.prototype.SA=function(Q,z){if(this.D)return Ry8(this,z);if(z=mp(Q)){var H=z.B;H&&H.L&&H.Z&&(Q=Q.L.length?Q.L[0]:null)&&Q.state>=2&&!Q.vl()&&Q.info.Ds===0&&(this.D=Q,this.Y=H,this.B=z.info,this.j=this.startTimeSecs=Date.now()/1E3,this.S=this.B.startTime)}return NaN}; +wV_.prototype.clear=function(){this.B=this.Y=this.D=null;this.Z=this.S=this.j=this.startTimeSecs=NaN;this.L=!1};g.p(g.zb,g.h);g.S=g.zb.prototype;g.S.initialize=function(Q,z,H){this.logger.debug(function(){return"Initialized, t="+Q}); +Q=Q||0;this.policy.Z||(z=PwL(this.Z),nma(this.HI,new KH(z.video,z.reason)),this.HI.e9(new KH(z.audio,z.reason)));this.n3.isManifestless&&uuu(this.S);this.Y&&TrA(this.Y,this.videoTrack.Z);z=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var f=!this.n3.isManifestless;this.policy.wp&&(f=f||this.n3.l8);this.policy.yl||(this.currentTime=f?Q:z);this.policy.wh&&this.seek(this.getCurrentTime(),{}).IN(function(){}); +if(this.policy.Z){var b;((b=this.Ze)==null?0:jZ9(b,this.Ki()||""))&&b9v(this)&&fmL(this,this.videoTrack)&&fmL(this,this.audioTrack)&&(Vwp(this.L,this.Ze),this.policy.j&&H9J(this))}else this.wh&&(LjY(this,this.videoTrack),LjY(this,this.audioTrack),kQA(this.wh),delete this.wh);H?(this.policy.yw?(this.KH=H,HL(this,H)):HL(this,!1),g.Re(this.x8)):(H=this.getCurrentTime()===0,Rb(this.S,this.videoTrack,this.videoTrack.Z,H),Rb(this.S,this.audioTrack,this.audioTrack.Z,H),this.policy.Z&&oan(this.L,!0),this.policy.wh|| +this.seek(this.getCurrentTime(),{}).IN(function(){}),this.timing.tick("gv")); +(this.n3.Li||this.n3.zs||this.n3.jm||this.n3.Wz||this.n3.ys)&&this.HI.I8(this.n3)}; +g.S.resume=function(){if(this.isSuspended||this.xQ){this.logger.debug("Resumed.");this.Vh=this.xQ=this.isSuspended=!1;try{this.SA()}catch(Q){g.PT(Q)}}}; +g.S.qm=function(){return!this.policy.Bc}; +g.S.NT=function(Q,z){Q=Q===void 0?!1:Q;z=z===void 0?!1:z;this.logger.debug("detaching media source");yMZ(this);this.HI.Uq()&&(this.j=NaN);Q?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.f3&&this.On("loader",{setsmb:1}),this.policy.De=!0,this.lH()):(this.policy.yw?HL(this,this.KH):HL(this,!1),z||this.lH())}; +g.S.setAudioTrack=function(Q,z,H){H=H===void 0?!1:H;if(!this.Sm()){var f=!isNaN(z);H&&f&&(this.audioTrack.wh=Date.now(),this.policy.sj&&(this.C3=!0));if(this.policy.Z){var b=this.B.yc(Q.id,f);this.logger.debug(function(){return"Logging new audio format: "+b.Z.info.id}); +this.HI.e9(b)}else{var L=riu(this.Z,Q.id,f);this.logger.debug(function(){return"Logging new audio format: "+L.audio.info.id}); +this.HI.e9(new KH(L.audio,L.reason))}if(f&&(H=this.audioTrack.Z.index.EX(z),this.On("setAudio",{id:Q.id,cmt:z,sq:H}),H>=0)){this.policy.Z&&(this.policy.YJ||(this.B.S=!0),this.Xx(!0,"mosaic"));BK(this.audioTrack,H,NaN,NaN);!this.policy.cq&&this.n3.isLive&&$i(this.n3,H,!1);return}this.HI.a4()}}; +g.S.setPlaybackRate=function(Q){Q!==this.U.getPlaybackRate()&&this.U.setPlaybackRate(Q)}; +g.S.y5=function(Q){var z=this.L.j;this.L.Y4(Q);this.On("scfidc",{curr:Fw(z),"new":Fw(Q)});Q&&Fw(Q)!==Fw(z)&&(this.Xx(!1,"caption change"),this.SA())}; +g.S.DU=function(Q){this.L.Sz(Q)}; +g.S.Zg=function(Q){var z=Q.Z.info.Wq();this.logger.debug(function(){return"New "+(z?"audio":"video")+" format from SABR: "+bZ(Q.Z.info)}); +z?this.HI.e9(Q):nma(this.HI,Q)}; +g.S.xa=function(Q){Yl(Q.Tv[Q.Tv.length-1])&&tnc(this,sd8(this.Z,Q.Tv[0].Z))}; +g.S.tj=function(){return this.HI.tj()}; +g.S.bR=function(){return this.HI.bR()}; +g.S.N3=function(Q){this.HI.C().vz()&&this.On("sps",{status:Q.Be||""});if(Q.Be===1)this.HI.videoData.R5=0;else if(Q.Be===2||Q.Be===3){var z=!1;if(Q.Be===3){z=this.HI.g5();var H;this.gT=(H=Q.K2m)!=null?H:Infinity;this.HI.videoData.R5=z+1;(z=fB(this))&&this.i5(!0)}this.HI.aX(!0,z)}}; +g.S.kU=function(){return this.HI.kU()}; +g.S.o6=function(){return this.HI.o6()}; +g.S.Gz=function(Q){this.HI.Gz(Q)}; +g.S.ouv=function(){var Q,z=(Q=this.HI.aB())==null?void 0:Q.getCurrentTime();z?this.HI.On("rms",{cta:z}):g.Re(this.Wz)}; +g.S.SA=function(){CEp(this);if(this.vI&&ZF(this.vI)&&!this.vI.mB()&&(!this.policy.yl||isFinite(this.getCurrentTime()))){var Q=OR(this.videoTrack);Q=this.policy.P_&&Q&&Q.lc();this.n3.isManifestless&&this.n3.D&&ny(this.n3)?(this.j=ny(this.n3),this.vI.wx(this.j)):Fo(this.n3)&&!Q?isNaN(this.j)?(this.j=this.getCurrentTime()+3600,this.vI.wx(this.j)):this.j<=this.getCurrentTime()+1800&&(this.j=Math.max(this.j+1800,this.getCurrentTime()+3600),this.vI.wx(this.j)):this.vI.isView||(Q=Math.max(this.audioTrack.getDuration(), +this.videoTrack.getDuration()),(!isFinite(this.j)||this.j!==Q)&&Q>0&&(this.vI.wx(Q),this.j=Q))}if(!this.Sm())if(py(this.n3)&&this.n3.vl()){var z=this.n3;this.handleError("manifest.net.retryexhausted",z.C3?{rc:z.Yu}:{rc:z.Yu.toString()},1)}else if(this.policy.Z)a:{try{UGJ(this.L);this.n3.isManifestless&&this.policy.j&&KK(this.Ff);if(vm8(this)&&this.vI&&!jP(this.vI)&&this.videoTrack.jm&&this.audioTrack.jm){this.On("ssap",{delaysb:1,v:this.videoTrack.Z.info.id,vf:this.videoTrack.Z.info.Rj,a:this.audioTrack.Z.info.id, +af:this.audioTrack.Z.info.Rj});var H=this.vI,f=this.videoTrack.Z,b=this.audioTrack.Z;!jP(H)&&b&&f&&(NUY(H,f.info,b.info,this.policy.m4),qCc(this,H))}var L;((L=this.vI)==null?0:jP(L))&&this.IZ();oan(this.L)}catch(X){g.ax(X);z=X;if(z.message.includes("changeType")){this.On("ssap",{exp:z.name,msg:z.message,s:z.stack});break a}this.handleError("fmt.unplayable",{exp:z.name,msg:z.message,s:z.stack},1)}PEn(this);g.Re(this.iT)}else if(!this.n3.B||!ank(this.videoTrack)&&!ank(this.audioTrack)||(this.videoTrack.S|| +this.audioTrack.S)&&this.policy.yE?H=!1:(this.lH(),this.HI.seekTo(Infinity,{lr:"checkLoaderTracksSync",F2:!0}),H=!0),!H){CEp(this);this.n3.isManifestless&&(UjA(this.videoTrack),UjA(this.audioTrack),KK(this.Ff),(H=mp(this.videoTrack))&&H.B&&(H=H.B.L&&!this.policy.kF,this.On(H===this.policy.N.e2?"strm":"strmbug",{strm:H,sfmp4:this.policy.N.e2,dfs:this.policy.kF},!0)));if(this.vI)this.IZ();else if(this.policy.D){var u;H=!1;if(this.policy.hk)for(f=g.n([this.videoTrack,this.audioTrack]),b=f.next();!b.done;b= +f.next()){L=b.value;for(b=mp(L);b&&L.qC()!==OR(L);b=mp(L))L.TN(b);H=H||!!b}else(z=mp(this.videoTrack))&&this.videoTrack.TN(z),(u=mp(this.audioTrack))&&this.audioTrack.TN(u);Ae(this.videoTrack)&&Ae(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(z||u||H)&&Tc(this)}uDL(this);Rb(this.S,this.videoTrack,this.videoTrack.Z,!1);Rb(this.S,this.audioTrack,this.audioTrack.Z,!1);this.policy.eG||p7v(this,this.videoTrack,this.audioTrack);QlA(this.S,this.videoTrack,this.audioTrack); +QlA(this.S,this.audioTrack,this.videoTrack);PEn(this);this.Y&&(z=this.Y,z.D?(u=z.j+z.policy.sR,z.L||(u=Math.min(u,z.startTimeSecs+z.policy.Lt)),z=Math.max(0,u*1E3-Date.now())):z=NaN,isNaN(z)||g.Re(this.ys,z));g.Re(this.iT)}}; +g.S.NU=function(Q){this.HI.NU(Q)}; +g.S.IZ=function(){var Q=this;if(this.vI){var z=this.vI.Z,H=this.vI.B;Wj_(this,this.audioTrack);Wj_(this,this.videoTrack);var f=Z9Z(this);if(f){if(this.policy.KZ){if(!z.uu()){var b=mp(this.audioTrack);if(b){if(!QV(this,this.audioTrack,z,b.info))return;jq_(this,this.audioTrack,z,b)}}if(!H.uu()&&(b=mp(this.videoTrack))){if(!QV(this,this.videoTrack,H,b.info))return;jq_(this,this.videoTrack,H,b)}}this.NC||(this.NC=(0,g.IE)(),this.logger.debug(function(){return"Appends pause start "+Q.NC+" reason "+f}), +this.policy.L&&this.On("apdps",{r:f}))}else if(this.NC&&(gmv(this,this.NC),this.NC=0),G_c(this),b=!1,this.policy.B&&Dp(this.videoTrack)||!JMv(this,this.videoTrack,H)||(b=!0,vlc(this.timing),CwY(this.timing)),this.vI&&!this.vI.eU()&&(this.policy.B&&Dp(this.audioTrack)||!JMv(this,this.audioTrack,z)||(b=!0,yin(this.timing),tAJ(this.timing)),!this.Sm()&&this.vI)){if(!this.policy.Bc&&Ae(this.videoTrack)&&Ae(this.audioTrack)&&ZF(this.vI)&&!this.vI.mB()){H=!1; +H=OR(this.audioTrack);if(this.policy.B){var L;z=(L=this.OY)==null?void 0:PN(L,H.D*1E3);H=!(!z||z.clipId!==H.clipId);this.On("ssap",{eos:H})}else L=H.Z,H=L===this.n3.Z[L.info.id];H&&(this.logger.debug("Setting EOS"),IhZ(this.vI),mv9(this.schedule))}b&&!this.vI.isAsync()&&Tc(this)}}}; +g.S.zW=function(Q){var z,H=Q===((z=this.vI)==null?void 0:z.Z)?this.audioTrack:this.videoTrack,f;if((f=mp(H))==null?0:f.isLocked){if(this.HI.C().vz()){var b;this.On("eosl",{ounlock:(b=mp(H))==null?void 0:b.info.aq()})}var L;sqY(this,Q===((L=this.vI)==null?void 0:L.Z))}var u;if(this.policy.sj&&Q===((u=this.vI)==null?void 0:u.Z)&&this.WI){z=this.WI-this.getCurrentTime();var X;this.HI.On("asl",{l:z,xtag:(X=OR(this.audioTrack))==null?void 0:X.Z.info.Z});this.C3=!1;this.WI=0}Q.J8()&&Q.N4().length===0&& +(Q.v1(),this.vI&&!this.vI.J8()&&(this.HI.C().vz()&&this.HI.On("rms",{ld:"seek"}),this.vI.j=performance.now(),this.HI.B4(),this.HI.C().vz()&&g.Re(this.Wz)));var v;(v=H.U)!=null&&bm(v,0);this.policy.gT?zc(this):this.SA()}; +g.S.LdT=function(Q){if(this.vI){var z=OR(Q===this.vI.Z?this.audioTrack:this.videoTrack);if(Q=Q.Ng())for(var H=0;H5&&Q.Ze.shift();z=z.Ah;var f;this.policy.EY&&((f=this.HI.getVideoData())==null?0:f.enableServerStitchedDai)&&(f=Vba(this.audioTrack,z),H=Vba(this.videoTrack,z),f!==0&&H!==0&&f!==H&&this.handleError("ssdai.avsync",{sq:z,a:f,v:H},0))}}; +g.S.eB=function(Q,z,H,f){Q.info.video&&this.D.eB(z,H,f)}; +g.S.wK=function(Q){this.Z.wK(Q)}; +g.S.F4=fn(20);g.S.L$=function(Q){this.OY=Q;var z;(z=this.audioTrack.N)!=null&&(z.J7=Q);(z=this.videoTrack.N)!=null&&(z.J7=Q);z=this.L;z.N&&(z.xv.On("ssap",{addcacheclips:1,v:z.N.version,tl:dGn(z.N.Vt)}),DGZ(z,Q,z.N),z.N=void 0)}; +g.S.t$=function(){return this.OY}; +g.S.bJ=function(){return this.videoTrack.Y||this.audioTrack.Y}; +g.S.seek=function(Q,z){if(this.Sm())return $r();if(this.bJ())return $r("seeking to head");if(this.policy.wh&&!isFinite(Q))return h6L(this.Ff),g.GM(Infinity);CEp(this);this.Yf=(0,g.IE)();this.policy.Z||uDL(this,Q);this.vI&&this.vI.Z&&this.vI.B&&!this.HI.getVideoData().oa&&(this.vI.Z.isLocked()||this.vI.B.isLocked())&&this.HI.a4({reattachOnLockedBuffer:1,vsb:""+this.vI.B.isLocked(),asb:""+this.vI.Z.isLocked()});var H=this.getCurrentTime(),f=this.Ff.seek(Q,z);this.policy.yl||(this.currentTime=f);WA(this.D, +Q,H,this.policy.F8&&!z.qt);Tc(this);return g.GM(f)}; +g.S.X6=function(Q){return this.policy.Z&&this.L.X6(Q)}; +g.S.Rn=function(Q){return this.L.Rn(Q)}; +g.S.Xx=function(Q,z){this.L.Xx(Q,z)}; +g.S.getCurrentTime=function(){if(this.policy.yl){var Q=this.ex()||0;return this.HI.getCurrentTime()-Q}return this.currentTime}; +g.S.A4=function(){return this.audioTrack.Z.info}; +g.S.wq=function(){return this.videoTrack.Z.info}; +g.S.HC=function(){return this.audioTrack.Z.info.Rj}; +g.S.Ow=function(){return this.videoTrack.Z.info.Rj}; +g.S.zv=function(){try{this.NT(),io(this.audioTrack),io(this.videoTrack),he(this.audioTrack),he(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.h.prototype.zv.call(this)}catch(Q){g.PT(Q)}}; +g.S.handleError=function(Q,z,H){H=H===void 0?0:H;var f=JI(H);Q==="fmt.unplayable"&&this.n3.isLive&&(this.policy.KZ=!1,Gy(this.n3));z=new oj(Q,z,H);g.eY(this);Oh(z.details);this.HI.handleError(z);Q!=="html5.invalidstate"&&z.errorCode!=="fmt.unplayable"&&Q!=="fmt.unparseable"&&f&&this.dispose()}; +g.S.TL=function(){var Q=OR(this.audioTrack),z=OR(this.videoTrack);Q={lct:this.getCurrentTime().toFixed(3),lsk:this.Ff.isSeeking(),lmf:this.Z.Z.isLocked(),lbw:no(this.schedule).toFixed(3),lhd:E8(this.schedule).toFixed(3),lst:((this.schedule.Y.gQ()||0)*1E9).toFixed(3),laa:Q?Q.aq():"",lva:z?z.aq():"",lar:this.audioTrack.B?this.audioTrack.B.aq():"",lvr:this.videoTrack.B?this.videoTrack.B.aq():"",laq:""+Yp(this.audioTrack),lvq:""+Yp(this.videoTrack)};this.vI&&!this.vI.eU()&&this.vI.Z&&this.vI.B&&(Q.lab= +uZ(this.vI.Z.N4()),Q.lvb=uZ(this.vI.B.N4()));this.NC&&(Q.lapt=((0,g.IE)()-this.NC).toFixed(0),Q.lapr=Z9Z(this));this.yl&&(Q.lapmabht=((0,g.IE)()-this.yl).toFixed(0),Q.lapmabh=WN(this,this.audioTrack).toFixed(0));this.jm&&(Q.lapmvbht=((0,g.IE)()-this.jm).toFixed(0),Q.lapmvbh=WN(this,this.videoTrack).toFixed(0));this.f3&&(Q.lapsdai=((0,g.IE)()-this.f3).toFixed(0));return Q}; +g.S.lH=function(){try{this.policy.Z&&this.L.Xx(!1,"pending"),this.audioTrack.lH(),this.videoTrack.lH()}catch(Q){g.PT(Q)}this.policy.D=""}; +g.S.G9=function(){return IM(this.U)}; +g.S.On=function(Q,z,H){this.HI.On(Q,z,H===void 0?!1:H)}; +g.S.Ki=function(){return this.HI.Ki()}; +g.S.F2=function(Q,z){Q/=z;isNaN(this.timestampOffset)&&DYc(this,Q-Math.min(Q,this.policy.QJ));return(Q-this.timestampOffset)*z}; +g.S.ex=function(){return this.timestampOffset}; +g.S.isSeeking=function(){return this.Ff.isSeeking()}; +g.S.UN=function(){this.D.UN()}; +g.S.ST=function(Q,z,H){z=z===void 0?!1:z;H=H===void 0?{}:H;this.policy.Z?this.B.ST(Q,z,H):this.Z.ST(Q,z,H)}; +g.S.zo=function(Q,z){if(!this.N)return!1;var H=this.videoTrack.Z.index.EX(Q);return this.N.zo(Q,z,H)}; +g.S.U7=function(Q,z){if(this.N&&this.D.U7(Q,this.N))return DYc(this,this.timestampOffset-z),Tc(this),this.policy.S&&(Gy(this.n3),he(this.audioTrack),he(this.videoTrack),this.lH()),!0;z=this.videoTrack.Z.index.EX(Q);this.handleError("ad.skipfailed",{dec:!!this.N,t:Q.toFixed(3),sq:z});return!1}; +g.S.getManifest=function(){return this.n3}; +g.S.isOffline=function(){return!!this.HI.getVideoData().cotn}; +g.S.Nn=function(Q,z){this.HI.Nn(Q,z)}; +g.S.iU=function(Q){if(this.policy.AK)this.policy.Z&&this.L.Xx(!0,"utc"),this.SA();else{var z=this.HI.getVideoData().KE;if(z){var H=this.S;H.cB=Q;H.KE=z;bK(this)}}}; +g.S.fl=function(Q){this.videoTrack.Y=!1;this.audioTrack.Y=!1;this.Ff.B=!1;this.HI.fl(Q)}; +g.S.Y2=function(Q){this.Ff.Y2(Q-this.ex())}; +g.S.J1=function(){this.HI.J1()}; +g.S.i5=function(Q){Q!==this.policy.A5&&((this.policy.A5=Q)||this.SA())}; +g.S.gk=function(Q,z){var H=this.audioTrack.nH,f=this.videoTrack.nH;H&&f&&(H.remove(Q,z),f.remove(Q,z))}; +g.S.a4=function(Q){this.HI.a4(Q)}; +g.S.l3=function(Q){this.HI.l3(Q)}; +g.S.g5=function(){return this.HI.g5()}; +g.S.Y8=function(){Gy(this.n3);this.lH()};g.S=g.fD.prototype;g.S.ZM=function(Q,z,H,f,b,L){return this.J7.ZM(Q,z,H,f,b,L)}; +g.S.Vb=function(Q,z,H,f,b,L){return this.J7.Vb(Q,z,H,f,b,L)}; +g.S.W4=function(Q){return this.J7.W4(Q)}; +g.S.c6=function(Q){this.J7.c6(Q)}; +g.S.FQ=function(Q,z,H,f){return this.J7.FQ(Q,z,H,f)}; +g.S.UN=function(){this.J7.UN()}; +g.S.zo=function(Q,z,H){return this.J7.zo(Q,z,H)}; +g.S.UT=function(Q,z){this.J7.UT(Q,z)}; +g.S.wb=function(){this.J7.wb()}; +g.S.Sq=fn(62);g.S.j6=function(Q,z,H){this.J7.j6(Q,z,H)}; +g.S.Vg=fn(65);g.S.O2=function(Q,z,H,f,b,L,u,X,v){this.J7.O2(Q,z,H,f,b,L,u,X,v)}; +g.S.Ji=function(Q){this.J7.Ji(Q)}; +g.S.Q6=function(Q){return this.J7.Q6(Q)}; +g.S.tX=function(Q){return this.J7.tX(Q)};g.p(bH,g.vf);g.p(LD,bH);LD.prototype.j=function(Q,z){if(Q&&z){var H=Number(we(Q,"cpi"))*1+1;isNaN(H)||H<=0||Hthis.L&&(this.L=H,g.ra(this.Z)||(this.Z={},this.D.stop(),this.B.stop())),this.Z[z]=Q,g.Re(this.B))}}; +LD.prototype.S=function(){for(var Q=g.n(Object.keys(this.Z)),z=Q.next();!z.done;z=Q.next()){var H=z.value;z=this.publish;for(var f=this.L,b=this.Z[H].match(UE),L=[],u=g.n(b[6].split("&")),X=u.next();!X.done;X=u.next())X=X.value,X.indexOf("cpi=")===0?L.push("cpi="+f.toString()):X.indexOf("ek=")===0?L.push("ek="+g.ee(H)):L.push(X);b[6]="?"+L.join("&");H="skd://"+b.slice(2).join("");b=H.length*2;f=new Uint8Array(b+4);f[0]=b%256;f[1]=(b-f[0])/256;for(b=0;b0)for(var H=g.n(this.Z),f=H.next();!f.done;f=H.next())if(z===f.value.info.cryptoPeriodIndex){z=!0;break a}z=!1}if(!z){z=(0,g.IE)();a:{H=Q.cryptoPeriodIndex;if(!isNaN(H)){f=g.n(this.L.values());for(var b=f.next();!b.done;b=f.next())if(Math.abs(b.value.cryptoPeriodIndex-H)<=1){H=!0;break a}}H=!1}H?(H=Q.Z,H=Math.max(0,Math.random()*((isNaN(H)?120:H)-30))*1E3):H=0;this.publish("log_qoe",{wvagt:"delay."+H,cpi:Q.cryptoPeriodIndex,reqlen:this.Z.length, +ignore:this.D});H<=0?w7c(this,Q):this.D||(this.Z.push({time:z+H,info:Q}),g.Re(this.B,H))}}; +uH.prototype.zv=function(){this.Z=[];bH.prototype.zv.call(this)};var pe={},Rn8=(pe.DRM_TRACK_TYPE_AUDIO="AUDIO",pe.DRM_TRACK_TYPE_SD="SD",pe.DRM_TRACK_TYPE_HD="HD",pe.DRM_TRACK_TYPE_UHD1="UHD1",pe);g.p(en8,g.h);g.p(z0k,g.vf);g.S=z0k.prototype;g.S.XS=function(Q){var z=this;this.Sm()||Q.size<=0||(Q.forEach(function(H,f){var b=rS(z.B)?f:H;f=new Uint8Array(rS(z.B)?H:f);rS(z.B)&&Frp(f);H=g.g7(f,4);Frp(f);f=g.g7(f,4);z.Z[H]?z.Z[H].status=b:z.Z[f]?z.Z[f].status=b:z.Z[H]={type:"",status:b}}),Cjv(this,","),Sr(this,{onkeystatuschange:1}),this.status="kc",this.publish("keystatuseschange",this))}; +g.S.error=function(Q,z,H,f){this.Sm()||(this.publish("licenseerror",Q,z,H,f),Q==="drm.provision"&&(Q=(Date.now()-this.j)/1E3,this.j=NaN,this.publish("ctmp","provf",{et:Q.toFixed(3)})));JI(z)&&this.dispose()}; +g.S.shouldRetry=function(Q,z){return!Q&&this.requestNumber===z.requestNumber}; +g.S.zv=function(){this.Z={};g.vf.prototype.zv.call(this)}; +g.S.TL=function(){var Q={ctype:this.N.contentType||"",length:this.N.initData.length,requestedKeyIds:this.L3,cryptoPeriodIndex:this.cryptoPeriodIndex};this.L&&(Q.keyStatuses=this.Z);return Q}; +g.S.getInfo=function(){var Q=this.D.join();if(Xj(this)){var z=new Set,H;for(H in this.Z)this.Z[H].status!=="usable"&&z.add(this.Z[H].type);Q+="/UKS."+Array.from(z)}return Q+="/"+this.cryptoPeriodIndex}; +g.S.mM=function(){return this.url};g.p(vL,g.h);g.S=vL.prototype;g.S.BA=function(Q){if(this.S){var z=Q.messageType||"license-request";this.S(new Uint8Array(Q.message),z)}}; +g.S.XS=function(){this.Y&&this.Y(this.Z.keyStatuses)}; +g.S.onClosed=function(){this.Sm()||g.VC("xboxone")&&this.L&&this.L("closed")}; +g.S.IH=function(Q){this.S&&this.S(Q.message,"license-request")}; +g.S.uV=function(Q){if(this.L){if(this.B){var z=this.B.error.code;Q=this.B.error.systemCode}else z=Q.errorCode,Q=Q.systemCode;this.L("t.prefixedKeyError;c."+z+";sc."+Q,z,Q)}}; +g.S.df=function(){this.j&&this.j()}; +g.S.update=function(Q){var z=this;if(this.Z)return(mf.isActive()?mf.UJ("emeupd",function(){return z.Z.update(Q)}):this.Z.update(Q)).then(null,ZJ(function(H){OI9(z,"t.update",H)})); +this.B?this.B.update(Q):this.element.addKey?this.element.addKey(this.N.keySystem,Q,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.N.keySystem,Q,this.initData,this.sessionId);return P2()}; +g.S.zv=function(){this.Z&&(this.U?this.Z.close().catch(g.ax):this.Z.close());this.element=null;g.h.prototype.zv.call(this)};g.p(yV,g.h);g.S=yV.prototype;g.S.Jy=function(){var Q=this;if(this.Z.keySystemAccess)return(mf.isActive()?mf.UJ("emenew",function(){return Q.Z.keySystemAccess.createMediaKeys()}):this.Z.keySystemAccess.createMediaKeys()).then(function(H){if(!Q.Sm())if(Q.B=H,mf.isActive())mf.UJ("emeset",function(){return Q.element.setMediaKeys(H)}); +else{var f;(f=Q.element)==null||f.setMediaKeys(H)}}); +if(Yi(this.Z))this.L=new (AQ())(this.Z.keySystem);else if(sm(this.Z)){this.L=new (AQ())(this.Z.keySystem);var z;(z=this.element)==null||z.webkitSetMediaKeys(this.L)}else mf.isActive()&&this.On("emev",{v:"01b"}),Aq(this.S,this.element,["keymessage","webkitkeymessage"],this.aV),Aq(this.S,this.element,["keyerror","webkitkeyerror"],this.L6),Aq(this.S,this.element,["keyadded","webkitkeyadded"],this.q1);return null}; +g.S.setServerCertificate=function(){return this.B.setServerCertificate?this.Z.flavor==="widevine"&&this.Z.Lt?this.B.setServerCertificate(this.Z.Lt):Pj(this.Z)&&this.Z.C3?this.B.setServerCertificate(this.Z.C3):null:null}; +g.S.createSession=function(Q,z){var H=Q.initData;if(this.Z.keySystemAccess){z&&z("createsession");var f=this.B.createSession();Bj(this.Z)?H=opY(H,this.Z.C3):Pj(this.Z)&&(H=mYA(H)||new Uint8Array(0));z&&z("genreq");var b=mf.isActive()?mf.UJ("emegen",function(){return f.generateRequest(Q.contentType,H)}):f.generateRequest(Q.contentType,H); +var L=new vL(null,null,null,f,null,this.Y);b.then(function(){z&&z("genreqsuccess")},ZJ(function(X){OI9(L,"t.generateRequest",X)})); +return L}if(Yi(this.Z))return NHJ(this,H);if(sm(this.Z))return Je6(this,H);if((b=this.element)==null?0:b.generateKeyRequest)this.element.generateKeyRequest(this.Z.keySystem,H);else{var u;(u=this.element)==null||u.webkitGenerateKeyRequest(this.Z.keySystem,H)}return this.D=new vL(this.element,this.Z,H,null,null,this.Y)}; +g.S.aV=function(Q){var z=IpJ(this,Q);z&&z.IH(Q)}; +g.S.L6=function(Q){var z=IpJ(this,Q);z&&z.uV(Q)}; +g.S.q1=function(Q){var z=IpJ(this,Q);z&&z.df(Q)}; +g.S.getMetrics=function(){if(this.B&&this.B.getMetrics)try{var Q=this.B.getMetrics()}catch(z){}return Q}; +g.S.zv=function(){this.L=this.B=null;var Q;(Q=this.D)==null||Q.dispose();Q=g.n(Object.values(this.j));for(var z=Q.next();!z.done;z=Q.next())z.value.dispose();this.j={};g.h.prototype.zv.call(this);delete this.element};g.S=qJ.prototype;g.S.get=function(Q){Q=this.findIndex(Q);return Q!==-1?this.values[Q]:null}; +g.S.remove=function(Q){Q=this.findIndex(Q);Q!==-1&&(this.keys.splice(Q,1),this.values.splice(Q,1))}; +g.S.removeAll=function(){this.keys=[];this.values=[]}; +g.S.set=function(Q,z){var H=this.findIndex(Q);H!==-1?this.values[H]=z:(this.keys.push(Q),this.values.push(z))}; +g.S.findIndex=function(Q){return g.kO(this.keys,function(z){return g.yi(Q,z)})};g.p(reZ,g.vf);g.S=reZ.prototype;g.S.h9v=function(Q){this.wS({onecpt:1});Q.initData&&PmY(this,new Uint8Array(Q.initData),Q.initDataType)}; +g.S.qZ3=function(Q){this.wS({onndky:1});PmY(this,Q.initData,Q.contentType)}; +g.S.Cl=function(Q){this.wS({onneedkeyinfo:1});this.rh.V("html5_eme_loader_sync")&&(this.Y.get(Q.initData)||this.Y.set(Q.initData,Q));BHa(this,Q)}; +g.S.e7=function(Q){this.L.push(Q);MJ(this)}; +g.S.createSession=function(Q){var z=U5_(this)?zxZ(Q):g.g7(Q.initData);this.B.get(z);this.De=!0;Q=new z0k(this.videoData,this.rh,Q,this.drmSessionId);this.B.set(z,Q);Q.subscribe("ctmp",this.o9,this);Q.subscribe("keystatuseschange",this.XS,this);Q.subscribe("licenseerror",this.Pm,this);Q.subscribe("newlicense",this.Qm,this);Q.subscribe("newsession",this.hR,this);Q.subscribe("sessionready",this.rL,this);Q.subscribe("fairplay_next_need_key_info",this.vj,this);this.rh.V("html5_enable_vp9_fairplay")&&Q.subscribe("qualitychange", +this.cZ,this);this.rh.V("html5_enable_sabr_drm_hd720p")&&Q.subscribe("sabrlicenseconstraint",this.eYc,this);Lhn(Q,this.D)}; +g.S.Qm=function(Q){this.Sm()||(this.wS({onnelcswhb:1}),Q&&!this.heartbeatParams&&(this.heartbeatParams=Q,this.publish("heartbeatparams",Q)))}; +g.S.hR=function(){this.Sm()||(this.wS({newlcssn:1}),this.L.shift(),this.De=!1,MJ(this))}; +g.S.rL=function(){if(Yi(this.Z)&&(this.wS({onsnrdy:1}),this.jm--,this.jm===0)){var Q=this.Ze,z,H;(z=Q.element)==null||(H=z.msSetMediaKeys)==null||H.call(z,Q.L)}}; +g.S.XS=function(Q){if(!this.Sm()){!this.f3&&this.videoData.V("html5_log_drm_metrics_on_key_statuses")&&(ceu(this),this.f3=!0);this.wS({onksch:1});var z=this.cZ;if(!Xj(Q)&&g.Ta&&Q.B.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var H="large";else{H=[];var f=!0;if(Xj(Q))for(var b=g.n(Object.keys(Q.Z)),L=b.next();!L.done;L=b.next())L=L.value,Q.Z[L].status==="usable"&&H.push(Q.Z[L].type),Q.Z[L].status!=="unknown"&&(f=!1);if(!Xj(Q)||f)H=Q.D;H=M1u(H)}z.call(this,H);this.publish("keystatuseschange", +Q)}}; +g.S.o9=function(Q,z){this.Sm()||this.publish("ctmp",Q,z)}; +g.S.vj=function(Q,z){this.Sm()||this.publish("fairplay_next_need_key_info",Q,z)}; +g.S.Pm=function(Q,z,H,f){this.Sm()||(this.videoData.V("html5_log_drm_metrics_on_error")&&ceu(this),this.publish("licenseerror",Q,z,H,f))}; +g.S.Nx=function(){return this.N}; +g.S.cZ=function(Q){var z=g.HM("auto",Q,!1,"l");if(this.videoData.ov){if(this.N.jH(z))return}else if(dSn(this.N,Q))return;this.N=z;this.publish("qualitychange");this.wS({updtlq:Q})}; +g.S.eYc=function(Q){this.videoData.sabrLicenseConstraint=Q}; +g.S.zv=function(){this.Z.keySystemAccess&&this.element&&(this.L3?this.element.setMediaKeys(null).catch(g.ax):this.element.setMediaKeys(null));this.element=null;this.L=[];for(var Q=g.n(this.B.values()),z=Q.next();!z.done;z=Q.next())z=z.value,z.unsubscribe("ctmp",this.o9,this),z.unsubscribe("keystatuseschange",this.XS,this),z.unsubscribe("licenseerror",this.Pm,this),z.unsubscribe("newlicense",this.Qm,this),z.unsubscribe("newsession",this.hR,this),z.unsubscribe("sessionready",this.rL,this),z.unsubscribe("fairplay_next_need_key_info", +this.vj,this),this.rh.V("html5_enable_vp9_fairplay")&&z.unsubscribe("qualitychange",this.cZ,this),z.dispose();this.B.clear();this.j.removeAll();this.Y.removeAll();this.heartbeatParams=null;g.vf.prototype.zv.call(this)}; +g.S.TL=function(){for(var Q={systemInfo:this.Z.TL(),sessions:[]},z=g.n(this.B.values()),H=z.next();!H.done;H=z.next())Q.sessions.push(H.value.TL());return Q}; +g.S.getInfo=function(){return this.B.size<=0?"no session":""+this.B.values().next().value.getInfo()+(this.S?"/KR":"")}; +g.S.wS=function(Q,z){z=z===void 0?!1:z;this.Sm()||(Oh(Q),(this.rh.vz()||z)&&this.publish("ctmp","drmlog",Q))};g.p(Kru,g.h);g.S=Kru.prototype;g.S.JP=function(){return!!this.YA}; +g.S.KQ=function(){return this.B}; +g.S.handleError=function(Q){var z=this;TH6(this,Q);if((Q.errorCode!=="html5.invalidstate"&&Q.errorCode!=="fmt.unplayable"&&Q.errorCode!=="fmt.unparseable"||!kX_(this,Q.errorCode,Q.details))&&!QDZ(this,Q)){if(this.aj.Ze!=="yt"&&lpv(this,Q)&&this.videoData.AK&&(0,g.IE)()/1E3>this.videoData.AK&&this.aj.Ze==="hm"){var H=Object.assign({e:Q.errorCode},Q.details);H.stalesigexp="1";H.expire=this.videoData.AK;H.init=this.videoData.E9/1E3;H.now=(0,g.IE)()/1E3;H.systelapsed=((0,g.IE)()-this.videoData.E9)/1E3; +Q=new oj(Q.errorCode,H,2);this.HI.VN(Q.errorCode,2,"SIGNATURE_EXPIRED",Oh(Q.details))}if(JI(Q.severity)){var f;H=(f=this.HI.xv)==null?void 0:f.Z.Z;if(this.aj.V("html5_use_network_error_code_enums"))if(ePk(Q)&&H&&H.isLocked())var b="FORMAT_UNAVAILABLE";else if(this.aj.j||Q.errorCode!=="auth"||Q.details.rc!==429)Q.errorCode==="ump.spsrejectfailure"&&(b="HTML5_SPS_UMP_STATUS_REJECTED");else{b="TOO_MANY_REQUESTS";var L="6"}else ePk(Q)&&H&&H.isLocked()?b="FORMAT_UNAVAILABLE":this.aj.j||Q.errorCode!=="auth"|| +Q.details.rc!=="429"?Q.errorCode==="ump.spsrejectfailure"&&(b="HTML5_SPS_UMP_STATUS_REJECTED"):(b="TOO_MANY_REQUESTS",L="6");this.HI.VN(Q.errorCode,Q.severity,b,Oh(Q.details),L)}else this.HI.publish("nonfatalerror",Q),f=/^pp/.test(this.videoData.clientPlaybackNonce),this.h7(Q.errorCode,Q.details),f&&Q.errorCode==="manifest.net.connect"&&(Q="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.IE)(),Jv(Q,"manifest",function(u){z.j=!0;z.On("pathprobe",u)},function(u){z.h7(u.errorCode, +u.details)}))}}; +g.S.On=function(Q,z){this.HI.JZ().On(Q,z)}; +g.S.h7=function(Q,z){z=Oh(z);this.HI.JZ().h7(Q,z)};fDA.prototype.b0=function(Q,z){return(z===void 0?0:z)?{jf:Q?Eg(this,Q):D1,h2:Q?M8A(this,Q):D1,KYT:Q?yJZ(this,Q):D1,l3v:Q?gY_(this,Q.videoData):D1,Oy:Q?ZB9(this,Q.videoData,Q):D1,fsn:Q?XW9(this,Q):D1,mPv:uT8(this)}:{jf:Q?Eg(this,Q):D1}}; +fDA.prototype.V=function(Q){return this.rh.V(Q)};g.p(pD,g.h);pD.prototype.onError=function(Q){if(Q!=="player.fatalexception"||this.provider.V("html5_exception_to_health"))Q==="sabr.fallback"&&(this.encounteredSabrFallback=!0),Q.match(GHs)?this.networkErrorCount++:this.nonNetworkErrorCount++}; +pD.prototype.send=function(){if(!(this.L||this.Z<0)){jDv(this);var Q=g.nD(this.provider)-this.Z,z="PLAYER_PLAYBACK_STATE_UNKNOWN",H=this.playerState.WS;this.playerState.isError()?z=H&&H.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.w(this.playerState,2)?z="PLAYER_PLAYBACK_STATE_ENDED":g.w(this.playerState,64)?z="PLAYER_PLAYBACK_STATE_UNSTARTED":g.w(this.playerState,16)||g.w(this.playerState,32)?z="PLAYER_PLAYBACK_STATE_SEEKING":g.w(this.playerState,1)&&g.w(this.playerState, +4)?z="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.w(this.playerState,1)?z="PLAYER_PLAYBACK_STATE_BUFFERING":g.w(this.playerState,4)?z="PLAYER_PLAYBACK_STATE_PAUSED":g.w(this.playerState,8)&&(z="PLAYER_PLAYBACK_STATE_PLAYING");H=CrY[jn(this.provider.videoData)];a:switch(this.provider.rh.playerCanaryState){case "canary":var f="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":f="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:f="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var b=Fap(this.provider), +L=this.B<0?Q:this.B-this.Z;Q=this.provider.rh.YJ+36E5<(0,g.IE)();z={started:this.B>=0,stateAtSend:z,joinLatencySecs:L,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:f,playerCanaryStage:b,isAd:this.provider.videoData.isAd(),liveMode:H,hasDrm:!!g.G_(this.provider.videoData),isGapless:this.provider.videoData.N,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, +encounteredSabrFallback:this.encounteredSabrFallback,isSabr:uE(this.provider.videoData)};Q||g.qV("html5PlayerHealthEvent",z);this.L=!0;this.dispose()}}; +pD.prototype.zv=function(){this.L||this.send();window.removeEventListener("error",this.SK);window.removeEventListener("unhandledrejection",this.SK);g.h.prototype.zv.call(this)}; +var GHs=/\bnet\b/;g.p(OBp,g.h);OBp.prototype.zv=function(){JJ6(this);g.h.prototype.zv.call(this)};var N9J=/[?&]cpn=/;g.p(gT,g.h);gT.prototype.flush=function(){var Q={};this.B&&(Q.pe=this.B);this.Z.length>0&&(Q.pt=this.Z.join("."));this.Z=[];return Q}; +gT.prototype.stop=function(){var Q=this,z,H,f;return g.B(function(b){if(b.Z==1)return g.jY(b,2),g.Y(b,(z=Q.D)==null?void 0:z.stop(),4);if(b.Z!=2)return(H=b.B)&&Q.logTrace(H),g.xv(b,0);f=g.OA(b);Q.B=PKv(f.message);g.$v(b)})}; +gT.prototype.logTrace=function(Q){this.encoder.reset();this.encoder.add(1);this.encoder.add(Q.resources.length);for(var z=g.n(Q.resources),H=z.next();!H.done;H=z.next()){H=H.value.replace("https://www.youtube.com/s/","");this.encoder.add(H.length);for(var f=0;f=0?Q:g.nD(this.provider),["PL","B","S"].indexOf(this.oy)>-1&&(!g.ra(this.Z)||Q>=this.S+30)&&(g.$P(this,Q,"vps",[this.oy]),this.S=Q),!g.ra(this.Z))){this.sequenceNumber===7E3&&g.ax(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){Fj(this,Q);var z=this.provider.HI.yn();z=g.n(z);for(var H=z.next();!H.done;H=z.next())H=H.value,this.On(H.key,H.value);z=Q;H=this.provider.HI.RR();var f=H.droppedVideoFrames||0,b=H.totalVideoFrames|| +0,L=f-this.Fs,u=b&&!this.RZ;f>H.totalVideoFrames||L>5E3?kca(this,"html5.badframedropcount","df."+f+";tf."+H.totalVideoFrames):(L>0||u)&&g.$P(this,z,"df",[L]);this.Fs=f;this.RZ=b;this.U>0&&(g.$P(this,Q,"glf",[this.U]),this.U=0);zW.isActive()&&(Q=zW.SO(),Object.keys(Q).length>0&&this.On("profile",Q));this.KH&&xP(this,"lwnmow");this.provider.rh.vz()&&this.provider.V("html5_record_now")&&this.On("now",{wt:(0,g.IE)()});Q={};this.provider.videoData.B&&(Q.fmt=this.provider.videoData.B.itag,(z=this.provider.videoData.D)&& +z.itag!==Q.fmt&&(Q.afmt=z.itag));Q.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(Q.adcpn=this.adCpn);this.Ze&&(Q.addocid=this.Ze);this.contentCpn&&(Q.ccpn=this.contentCpn);this.L3&&(Q.cdocid=this.L3);this.provider.videoData.cotn&&(Q.cotn=this.provider.videoData.cotn);Q.el=aq(this.provider.videoData);Q.content_v=c7(this.provider.videoData);Q.ns=this.provider.rh.Ze;Q.fexp=I$A(this.provider.rh.experiments).toString();Q.cl=(733956867).toString();(z=this.provider.videoData.adFormat||this.adFormat)&& +(Q.adformat=z);(z=jn(this.provider.videoData))&&(Q.live=z);this.provider.videoData.w7()&&(Q.drm=1,this.provider.videoData.S&&(Q.drm_system=S$x[this.provider.videoData.S.flavor]||0),this.provider.videoData.gS&&(Q.drm_product=this.provider.videoData.gS));qn()&&this.provider.videoData.j&&(Q.ctt=this.provider.videoData.j,Q.cttype=this.provider.videoData.ZK,this.provider.videoData.mdxEnvironment&&(Q.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(Q.dai= +this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.Db&&(Q.dai_fallback="1")):this.provider.videoData.Tq?Q.dai="cs":this.provider.videoData.CD&&(Q.dai="disabled");Q.seq=this.sequenceNumber++;if(this.provider.videoData.NI){if(z=this.provider.videoData.NI,Q&&z)for(z.ns==="3pp"&&(Q.ns="3pp"),this.zx.has(z.ns)&&xP(this,"hbps"),z.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=z.shbpslc),this.provider.rh.experiments.Nc("html5_use_server_qoe_el_value")&&this.WI.delete("el"), +H=g.n(Object.keys(z)),f=H.next();!f.done;f=H.next())f=f.value,this.WI.has(f)||(Q[f]=z[f])}else Q.event="streamingstats",Q.docid=this.provider.videoData.videoId,Q.ei=this.provider.videoData.eventId;this.isEmbargoed&&(Q.embargoed="1");Object.assign(Q,this.provider.rh.Z);if(z=Q.seq)z={cpn:this.provider.videoData.clientPlaybackNonce,sequenceNumber:+z,serializedWatchEndpointLoggingContext:this.provider.videoData.Fq},this.serializedHouseBrandPlayerServiceLoggingContext&&(z.serializedHouseBrandPlayerServiceLoggingContext= +G7(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(z.playerResponseCpn=this.provider.videoData.playerResponseCpn),Gb.length&&(z.decoderInfo=Gb),this.provider.HI.t$()&&(z.transitionStitchType=4,this.De&&(z.timestampOffsetMsecs=this.De)),this.remoteControlMode&&(z.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(z.remoteConnectedDevices=this.remoteConnectedDevices),z=g.Tp(z,nyA),z=g.g7(z,4),this.Z.qclc=[z];Q=g.de("//"+ +this.provider.rh.kc+"/api/stats/qoe",Q);H=z="";f=g.n(Object.keys(this.Z));for(b=f.next();!b.done;b=f.next())b=b.value,this.Z[b]===null?g.ax(new g.kQ("Stats report key has invalid value",b)):(b="&"+b+"="+this.Z[b].join(","),b.length>100?H+=b:z+=b);V8Z(this,Q+z,H.replace(/ /g,"%20"))}this.Z={}}}; +g.S.l3=function(Q){this.KH=Q}; +g.S.mV=function(){if(this.provider.videoData.S){var Q=this.provider.videoData.S;xP(this,"eme-"+(Q.keySystemAccess?"final":Yi(Q)?"ms":Bj(Q)?"ytfp":sm(Q)?"safarifp":"nonfinal"))}}; +g.S.vE=function(Q){var z=g.nD(this.provider);if(!this.provider.rh.experiments.Nc("html5_refactor_sabr_video_format_selection_logging")||Q.Z.id!==this.En){var H=[Q.Z.id,Q.B,this.En,Q.reason];Q.token&&H.push(Q.token);g.$P(this,z,"vfs",H);this.En=Q.Z.id;H=this.provider.HI.getPlayerSize();if(H.width>0&&H.height>0){H=[Math.round(H.width),Math.round(H.height)];var f=g.mD();f>1&&H.push(f);g.$P(this,z,"view",H)}this.rT||(this.provider.rh.vz()&&xP(this,"rqs2"),this.provider.videoData.Z&&yZ(this.provider.videoData.Z)&& +(this.Z.preload=["1"]));this.L=this.rT=!0}Q.reason==="m"&&++this.Bc===100&&T9A(this,2);g.$P(this,z,"vps",[this.oy]);this.reportStats(z)}; +g.S.jK=function(Q){var z=g.nD(this.provider);if(this.provider.rh.experiments.Nc("html5_refactor_sabr_audio_format_selection_logging")){z=Q.Z;var H=[z.audio&&z.video?z.Q7?z.Q7:"":z.id];z.Ii&&z.Ii.id&&H.push(z.Ii.id);z=H.join(";");z!==this.Y&&(H=[z,this.Y,Q.reason],Q.token&&H.push(Q.token),g.$P(this,g.nD(this.provider),"afs",H),this.Y=z)}else Q.Z.id!==this.Y&&(H=[Q.Z.id,this.Y,Q.reason],Q.token&&H.push(Q.token),g.$P(this,z,"afs",H),this.Y=Q.Z.id)}; +g.S.Ct=fn(59);g.S.C4=function(Q){this.isEmbargoed=Q}; +g.S.Zs=fn(36);g.S.CA=fn(42);g.S.onPlaybackRateChange=function(Q){var z=g.nD(this.provider);Q&&Q!==this.Vs&&(g.$P(this,z,"rate",[Q]),this.Vs=Q);this.reportStats(z)}; +g.S.tT=fn(30);g.S.getPlayerState=function(Q){if(g.w(Q,128))return"ER";if(g.w(Q,2048))return"B";if(g.w(Q,512))return"SU";if(g.w(Q,16)||g.w(Q,32))return"S";if(Q.isOrWillBePlaying()&&g.w(Q,64))return"B";var z=$os[yu(Q)];g.oT(this.provider.rh)&&z==="B"&&this.provider.HI.getVisibilityState()===3&&(z="SU");z==="B"&&g.w(Q,4)&&(z="PB");return z}; +g.S.zv=function(){g.h.prototype.zv.call(this);g.$7(this.j);g.$7(this.Wz)}; +g.S.T8=function(Q){this.isOffline=Q;g.$P(this,g.nD(this.provider),"is_offline",[this.isOffline?"1":"0"])}; +g.S.On=function(Q,z,H){var f=this.Z.ctmp||[],b=this.d4.indexOf(Q)!==-1;b||this.d4.push(Q);if(!H||!b){var L=typeof z!=="string"?Oh(z):z;L=e3c(L);if(!H&&!/^t[.]/.test(L)){var u=g.nD(this.provider)*1E3;L="t."+u.toFixed()+";"+L}f.push(Q+":"+L);this.logger.debug(function(){return"ctmp "+Q+" "+L}); +this.Z.ctmp=f;dl_(this);return u}}; +g.S.o$=function(Q,z,H){this.D={Qze:Number(this.On("glrem",{nst:Q.toFixed(),rem:z.toFixed(),ca:+H})),Gh:Q,jzI:z,isAd:H}}; +g.S.Tp=function(Q,z,H){g.$P(this,g.nD(this.provider),"ad_playback",[Q,z,H])}; +g.S.rA=function(Q,z){var H=g.nD(this.provider)*1E3,f=this.Z.daism||[];f.push("t."+H.toFixed(0)+";smw."+(Q*1E3).toFixed(0)+";smo."+(z*1E3).toFixed(0));this.Z.daism=f}; +g.S.resume=function(){var Q=this;this.provider.rh.vz()&&this.On("ssap",{qoesus:"0",vid:this.provider.videoData.videoId});isNaN(this.j)?mlk(this):this.j=g.ZK(function(){Q.reportStats()},1E4)}; +var ne={},$os=(ne[5]="N",ne[-1]="N",ne[3]="B",ne[0]="EN",ne[2]="PA",ne[1]="PL",ne[-1E3]="ER",ne[1E3]="N",ne),Gb=[];QyY.prototype.EF=function(){return this.Z}; +QyY.prototype.update=function(){if(this.Y){var Q=this.provider.HI.Tt(this.provider.videoData.clientPlaybackNonce)||0,z=g.nD(this.provider);Q>=this.provider.HI.getDuration()-.1&&(this.previouslyEnded=!0);if(Q!==this.Z||f4v(this,Q,z)){var H;if(!(H=Qz-this.sJ+2||f4v(this,Q,z))){H=this.provider.HI.getVolume();var f=H!==this.U,b=this.provider.HI.isMuted()?1:0;b!==this.N?(this.N=b,H=!0):(!f||this.D>=0||(this.U=H,this.D=z),H=z-this.D,this.D>=0&&H>2?(this.D=-1,H=!0):H=!1)}H&&(NJ(this),this.L= +Q);this.sJ=z;this.Z=Q}}};bDJ.prototype.send=function(Q){var z=this;if(!this.uT){var H=ujL(this),f=g.de(this.uri,H);this.rh.V("vss_through_gel_double")&&Sgv(f);this.L3&&!this.rh.V("html5_simplify_pings")?Mrk(this,f):LRv(this,Q).then(function(b){z.L3&&(b=b||{},b.method="POST",b.postParams={atr:z.attestationResponse});rJu(f,b,{token:z.Ze,Ln:z.gh,mdxEnvironment:z.mdxEnvironment},z.rh,Q,z.De,z.isFinal&&z.YJ||z.yl||z.L&&z.sj)}); +this.uT=!0}}; +bDJ.prototype.B=function(Q){Q===void 0&&(Q=NaN);return Number(Q.toFixed(3)).toString()}; +var gL={},ydu=(gL.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,gL.LIVING_ROOM_APP_MODE_MAIN=1,gL.LIVING_ROOM_APP_MODE_KIDS=2,gL.LIVING_ROOM_APP_MODE_MUSIC=3,gL.LIVING_ROOM_APP_MODE_UNPLUGGED=4,gL.LIVING_ROOM_APP_MODE_GAMING=5,gL),Zf={},vP9=(Zf.EMBEDDED_PLAYER_MODE_UNKNOWN=0,Zf.EMBEDDED_PLAYER_MODE_DEFAULT=1,Zf.EMBEDDED_PLAYER_MODE_PFP=2,Zf.EMBEDDED_PLAYER_MODE_PFL=3,Zf);g.p(Ad,g.h);g.S=Ad.prototype;g.S.Ex=function(){this.Z.update();Gb8(this)&&(trJ(this),EPJ(this),this.Op())}; +g.S.zv=function(){g.h.prototype.zv.call(this);sg(this);zgv(this.Z)}; +g.S.TL=function(){return ujL(YP(this,"playback"))}; +g.S.Op=function(){this.provider.videoData.Y.eventLabel=aq(this.provider.videoData);this.provider.videoData.Y.playerStyle=this.provider.rh.playerStyle;this.provider.videoData.J5&&(this.provider.videoData.Y.feature="pyv");this.provider.videoData.Y.vid=this.provider.videoData.videoId;var Q=this.provider.videoData.Y;var z=this.provider.videoData;z=z.isAd()||!!z.J5;Q.isAd=z}; +g.S.kV=function(Q){var z=YP(this,"engage");z.wh=Q;return XLZ(z,oP9(this.provider))};ODL.prototype.isEmpty=function(){return this.endTime===this.startTime};PL.prototype.V=function(Q){return this.rh.V(Q)}; +PL.prototype.getCurrentTime=function(Q){if(this.V("html5_ssap_current_time_for_logging_refactor")){var z=this.HI.t$();if(z&&(Q=Q||z.l$()))return LJ(z,Q)}else if(g.wr(this.videoData)){var H=this.HI.t$();if(H)return Q=this.HI.getCurrentTime(),H=(((z=PN(H,Q*1E3))==null?void 0:z.hB)||0)/1E3,Q-H}return this.HI.getCurrentTime()}; +PL.prototype.yN=function(Q){if(this.V("html5_ssap_current_time_for_logging_refactor")){var z=this.HI.t$();if(z&&(Q=Q||z.l$()))return LJ(z,Q)}else if(g.wr(this.videoData)){var H=this.HI.t$();if(H)return Q=this.HI.yN(),H=(((z=PN(H,Q*1E3))==null?void 0:z.hB)||0)/1E3,Q-H}return this.HI.yN()}; +var Jdu={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.p(g.ay,g.h);g.S=g.ay.prototype;g.S.Ex=function(){if(this.provider.videoData.enableServerStitchedDai&&this.tN){var Q;(Q=this.L.get(this.tN))==null||Q.Ex()}else this.Z&&this.Z.Ex()}; +g.S.C4=function(Q){this.qoe&&this.qoe.C4(Q)}; +g.S.Zs=fn(35);g.S.CA=fn(41);g.S.rA=function(Q,z){this.qoe&&this.qoe.rA(Q,z)}; +g.S.sN=function(){if(this.provider.videoData.enableServerStitchedDai&&this.tN){var Q;(Q=this.L.get(this.tN))!=null&&NJ(Q.Z)}else this.Z&&NJ(this.Z.Z)}; +g.S.h7=function(Q,z){this.qoe&&kca(this.qoe,Q,z);if(this.B)this.B.onError(Q)}; +g.S.vE=function(Q){this.qoe&&this.qoe.vE(Q)}; +g.S.jK=function(Q){this.qoe&&this.qoe.jK(Q)}; +g.S.onPlaybackRateChange=function(Q){if(this.qoe)this.qoe.onPlaybackRateChange(Q);this.Z&&NJ(this.Z.Z)}; +g.S.Ct=fn(58);g.S.On=function(Q,z,H){this.qoe&&this.qoe.On(Q,z,H)}; +g.S.o$=function(Q,z,H){this.qoe&&this.qoe.o$(Q,z,H)}; +g.S.yT=function(Q){var z;(z=this.qoe)==null||z.yT(Q)}; +g.S.I8=function(Q){var z;(z=this.qoe)==null||z.I8(Q)}; +g.S.l3=function(Q){this.qoe&&this.qoe.l3(Q)}; +g.S.Tp=function(Q,z,H){this.qoe&&this.qoe.Tp(Q,z,H)}; +g.S.tT=fn(29);g.S.nf=function(){if(this.qoe)return this.qoe.nf()}; +g.S.TL=function(){if(this.provider.videoData.enableServerStitchedDai&&this.tN){var Q,z;return(z=(Q=this.L.get(this.tN))==null?void 0:Q.TL())!=null?z:{}}return this.Z?this.Z.TL():{}}; +g.S.T0=function(){var Q;return(Q=this.qoe)==null?void 0:Q.T0()}; +g.S.BR=function(Q,z){var H;(H=this.qoe)==null||H.BR(Q,z)}; +g.S.kV=function(Q){return this.Z?this.Z.kV(Q):function(){}}; +g.S.Op=function(){this.Z&&this.Z.Op()}; +g.S.getVideoData=function(){return this.provider.videoData}; +g.S.resume=function(){this.qoe&&this.qoe.resume()};g.p(cL,g.h); +cL.prototype.nB=function(Q,z,H){if(this.Z.has(Q)){var f=this.Z.get(Q);if(z.videoId&&!NTn(f))this.B.On("ssap",{rlc:Q}),cdL(this,Q);else return}if(!this.Z.has(Q)){f=new PL(z,this.rh,this.HI);var b=Math.round(g.nD(this.B.provider)*1E3);f=new g.ay(f,b);NTn(f)||this.B.On("nqv",{vv:z.videoId});b=this.B.getVideoData();this.Z.set(Q,f);if(f.qoe){var L=f.qoe,u=b.videoId||"";L.contentCpn=b.clientPlaybackNonce;L.L3=u}I4Z(f);H===2&&(this.rh.V("html5_log_ad_playback_docid")?(H=this.B,H.qoe&&(H=H.qoe,f=z.UY||"", +b=z.breakType||0,z=z.videoId||"",L=this.rh.Ze||"yt",g.$P(H,g.nD(H.provider),"ad_playback",[Q,f,b,z,L]))):this.B.Tp(Q,z.UY||"",z.breakType||0))}}; +cL.prototype.qn=function(Q,z,H,f,b,L,u,X){if(Q!==z){var v=this.JZ(Q),y=this.JZ(z),q,M=Q===((q=v.getVideoData())==null?void 0:q.clientPlaybackNonce),C;q=z===((C=y.getVideoData())==null?void 0:C.clientPlaybackNonce);var t;C=M?((t=v.getVideoData())==null?void 0:t.videoId)||"":"nvd";var E;t=q?((E=y.getVideoData())==null?void 0:E.videoId)||"":"nvd";M&&(v=v.qoe)!=null&&(oy(v,4,L?4:b?2:0,z,t,H),v.reportStats());q&&(Ug(y),(z=y.qoe)!=null&&(oy(z,4,L?5:b?3:1,Q,C,f),z.reportStats()),rdc(y,new g.tT(u,y.oy)), +AdY(y));X&&cdL(this,Q)}}; +cL.prototype.JZ=function(Q){Q=Q||this.tN;return this.Z.get(Q)||this.B};g.p(g.iH,g.h);g.S=g.iH.prototype; +g.S.UZ=function(Q,z){this.sync();z&&this.Z.array.length>=2E3&&this.Rc("captions",1E4);z=this.Z;if(Q.length>1&&Q.length>z.array.length)z.array=z.array.concat(Q),z.array.sort(z.Z);else for(var H=g.n(Q),f=H.next();!f.done;f=H.next())f=f.value,!z.array.length||z.Z(f,z.array[z.array.length-1])>0?z.array.push(f):g.qI(z.array,f,z.Z);Q=g.n(Q);for(z=Q.next();!z.done;z=Q.next())z=z.value,z.namespace==="ad"&&this.D("ssap",{acrsid:z.getId(),acrsst:z.start,acrset:z.end,acrscpt:z.playerType});this.L=NaN;this.sync()}; +g.S.NG=function(Q){Q.length>1E4&&g.ax(new g.kQ("Over 10k cueRanges removal occurs with a sample: ",Q[0]));if(!this.Sm()){for(var z=g.n(Q),H=z.next();!H.done;H=z.next())(H=H.value)&&H.namespace==="ad"&&this.D("ssap",{rcrid:H.getId(),rcst:H.start,rcet:H.end,rcpt:H.playerType});var f=new Set(Q);this.B=this.B.filter(function(b){return!f.has(b)}); +dJY(this.Z,f);this.sync()}}; +g.S.Rc=function(Q,z){var H=(isNaN(this.L)?g.w(this.j(),2)?0x8000000000000:this.U()*1E3:this.L)-z;z=this.o6().filter(function(f){return f.namespace===Q&&f.endthis.Z,L=g.w(H,8)&&g.w(H,16),u=this.HI.Kq().isBackground()||H.isSuspended();Tb(this,this.rT,L&&!u,b,"qoe.slowseek",function(){},"timeout"); +var X=isFinite(this.Z);X=L&&X&&ahv(z,this.Z);var v=!f||Math.abs(f-this.Z)>10,y=this.rh.V("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),q=f===0&&this.B&&[11,10].includes(this.B);Tb(this,this.gh,X&&v&&!u&&(!y||!q),b,"qoe.slowseek",function(){z.seekTo(Q.Z)},"set_cmt"); +v=X&&X$(z.Ux(),this.Z);var M=this.HI.xv;X=!M||M.qm();var C=function(){z.seekTo(Q.Z+.001)}; +Tb(this,this.En,v&&X&&!u,b,"qoe.slowseek",C,"jiggle_cmt");X=function(){return Q.HI.lL()}; +Tb(this,this.uT,v&&!u,b,"qoe.slowseek",X,"new_elem");v=vR(H);y=H.isBuffering();var t=z.Ux(),E=SP(t,f),G=E>=0&&t.end(E)>f+5,x=v&&y&&G;q=this.HI.getVideoData();Tb(this,this.iT,f<.002&&this.Z<.002&&L&&g.oT(this.rh)&&g.UC(q)&&!u,b,"qoe.slowseek",X,"slow_seek_shorts");Tb(this,this.Ze,q.fq()&&L&&!u&&!q.L3,b,"qoe.slowseek",X,"slow_seek_gapless_shorts");Tb(this,this.L3,x&&!u,v&&!y,"qoe.longrebuffer",C,"jiggle_cmt");Tb(this,this.De,x&&!u,v&&!y,"qoe.longrebuffer",X,"new_elem_nnr");if(M){var J=M.getCurrentTime(); +L=z.WP();L=xZ9(L,J);L=!M.isSeeking()&&f===L;Tb(this,this.EY,v&&y&&L&&!u,v&&!y&&!L,"qoe.longrebuffer",function(){z.seekTo(J)},"seek_to_loader")}L={}; +C=SP(t,Math.max(f-3.5,0));x=C>=0&&f>t.end(C)-1.1;var I=C>=0&&C+1=0&&x&&I<11;L.close2edge=x;L.gapsize=I;L.buflen=t.length;this.B&&(L.seekSour=this.B);if(C=this.HI.t$()){x=C.l$();I=x!==PN(C,f*1E3).clipId;var r=g.Mf(this.rh.experiments,"html5_ssap_skip_seeking_offset_ms"),U=(BN(C,x)+r)/1E3;Tb(this,this.f3,I&&v&&y&&!u,v&&!y,"qoe.longrebuffer",function(){z.seekTo(U)},"ssap_clip_not_match")}Tb(this,this.yl,v&&y&&!u,v&&!y,"qoe.longrebuffer", +function(){},"timeout",L); +L=H.isSuspended();L=this.HI.vG()&&!L;Tb(this,this.Y,L,!L,"qoe.start15s",function(){Q.HI.PS("ad")},"ads_preroll_timeout"); +C=f-this.D<.5;var D;L=!((D=this.HI.t$())==null||!D.f4());I=(x=q.isAd()||L&&this.rh.experiments.Nc("html5_ssap_skip_slow_ad"))&&v&&!y&&C;D=function(){var T=Q.HI,k=g.wr(T.videoData)&&T.OY,bL=T.sV.getVideoData();(bL&&T.videoData.isAd()&&bL.Tq===T.getVideoData().Tq||!T.videoData.Uj)&&!k?T.VN("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+T.videoData.videoId):qY(T.videoData,"html5_ssap_skip_slow_ad")&&k&&T.OY.f4()&&(T.h7(new oj("ssap.transitionfailure",{cpn:PN(T.OY,T.yN()).clipId,pcpn:T.OY.l$(), +cmt:T.yN()})),T=T.OY,k=T.playback.yN(),(k=a9c(T,k))&&Yq9(T,k.AT()/1E3))}; +Tb(this,this.ZJ,I,!I,"ad.rebuftimeout",D,"skip_slow_ad");C=x&&y&&X$(z.Ux(),f+5)&&C;Tb(this,this.yE,C&&!u,!C,"ad.rebuftimeout",D,"skip_slow_ad_buf");D=H.isOrWillBePlaying()&&g.w(H,64)&&!u;Tb(this,this.KH,D,b,"qoe.start15s",function(){},"timeout"); +D=!!M&&!M.vI&&H.isOrWillBePlaying();Tb(this,this.jm,D,b,"qoe.start15s",X,"newElemMse");D=q6(t,0);C=g.w(H,16)||g.w(H,32);C=!u&&H.isOrWillBePlaying()&&y&&!C&&(g.w(H,64)||f===0)&&D>5;Tb(this,this.WI,g.UC(q)&&C,v&&!y,"qoe.longrebuffer",function(){Q.HI.a4()},"reset_media_source"); +Tb(this,this.C3,g.UC(q)&&C,v&&!y,"qoe.longrebuffer",X,"reset_media_element");this.D===0&&(this.j=f);C=y&&this.Z===0&&f>1&&f===this.j;Tb(this,this.mq,g.UC(q)&&C,v&&!y,"qoe.slowseek",function(){z.seekTo(0)},"reseek_after_time_jump"); +u=H.isOrWillBePlaying()&&!u;G=this.HI.qj()-f<6&&!G&&this.HI.Ll();Tb(this,this.N,q.fq()&&u&&y&&G,v&&!y,"qoe.longrebuffer",function(){Q.HI.lL(!1,!0)},"handoff_end_long_buffer_reload"); +M=(M==null?void 0:Vnk(M))||NaN;M=t.length>1||!isNaN(M)&&M-.1<=f;Tb(this,this.U,f9(q)&&u&&y&&M,v&&!y,"qoe.longrebuffer",X,"gapless_slice_append_stuck");M=E>=0&&t.end(E)>=2;u=f9(q)&&this.HI.FH&&M&&!q.L3&&u&&(y||g.w(H,8)&&g.w(H,16));Tb(this,this.wh,u,b,"qoe.start15s",X,"gapless_slow_start");H=!!(L&&D>5&&H.isPlaying()&&f<.1);Tb(this,this.Xa,H,f>.5&&v,"qoe.longrebuffer",X,"ssap_stuck_in_ad_beginning");this.D=f;this.S.start()}}; +kP.prototype.h7=function(Q,z,H){z=this.TL(z);z.wn=H;z.wdup=this.L[Q]?"1":"0";this.HI.h7(new oj(Q,z));this.L[Q]=!0}; +kP.prototype.TL=function(Q){Q=Object.assign(this.HI.TL(!0),Q.TL());this.Z&&(Q.stt=this.Z.toFixed(3));this.HI.getVideoData().isLivePlayback&&(Q.ct=this.HI.getCurrentTime().toFixed(3),Q.to=this.HI.ex().toFixed(3));delete Q.uga;delete Q.euri;delete Q.referrer;delete Q.fexp;delete Q.vm;return Q}; +mR.prototype.reset=function(){this.Z=this.B=this.L=this.startTimestamp=0;this.D=!1}; +mR.prototype.test=function(Q){if(!this.S||this.B)return!1;if(!Q)return this.reset(),!1;Q=(0,g.IE)();if(!this.startTimestamp)this.startTimestamp=Q,this.L=0;else if(this.L>=this.S)return this.B=Q,!0;this.L+=1;return!1}; +mR.prototype.TL=function(){var Q={},z=(0,g.IE)();this.startTimestamp&&(Q.wsd=(z-this.startTimestamp).toFixed());this.B&&(Q.wtd=(z-this.B).toFixed());this.Z&&(Q.wssd=(z-this.Z).toFixed());return Q};g.p(MWA,g.h);g.S=MWA.prototype;g.S.setMediaElement=function(Q){(this.mediaElement=Q)?(this.mediaElement&&(this.S||this.D||!this.mediaElement.Hg()||this.seekTo(.01,{lr:"seektimeline_setupMediaElement"})),er(this)):Ry(this)}; +g.S.getCurrentTime=function(){if(lH(this.HI)){if(!isNaN(this.B))return this.B}else if(!isNaN(this.B)&&isFinite(this.B))return this.B;return this.mediaElement&&OLn(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.D||0}; +g.S.R_=function(){return this.C3}; +g.S.yN=function(){return this.getCurrentTime()-this.ex()}; +g.S.yf=function(){return this.Z?this.Z.yf():Infinity}; +g.S.isAtLiveHead=function(Q){if(!this.Z)return!1;Q===void 0&&(Q=this.getCurrentTime());return VV(this.Z,Q)}; +g.S.Vd=function(){return!!this.Z&&this.Z.Vd()}; +g.S.seekTo=function(Q,z){var H=z===void 0?{}:z;z=H.RT===void 0?!1:H.RT;var f=H.GA===void 0?0:H.GA;var b=H.wd===void 0?!1:H.wd;var L=H.aL===void 0?0:H.aL;var u=H.lr===void 0?"":H.lr;var X=H.seekSource===void 0?void 0:H.seekSource;var v=H.F2===void 0?!1:H.F2;var y=H.qt===void 0?!1:H.qt;H=H.Rr===void 0?!1:H.Rr;v&&(Q+=this.ex());uE(this.videoData)&&this.V("html5_sabr_enable_utc_seek_requests")&&X===29&&(this.C3=void 0);v=Q=this.jA())||!g.NY(this.videoData),q||(G={st:G,mst:this.jA()},this.Z&&this.V("html5_high_res_seek_logging")&&(G.ht=this.Z.yf(),G.adft=Llv(this.Z)),this.HI.On("seeknotallowed",G)),G=q));if(!G)return this.L&&(this.L=null,FlL(this)),g.GM(this.getCurrentTime());G=.005;y&&this.V("html5_sabr_seek_no_shift_tolerance")&&(G=0);if(Math.abs(Q-this.B)<=G&&this.wh)return this.S;u&&(G=Q,(this.rh.vz()||this.V("html5_log_seek_reasons"))&& +this.HI.On("seekreason",{reason:u,tgt:G}));X&&(this.De.B=X);this.wh&&Ry(this);this.S||(this.S=new Ts);Q&&!isFinite(Q)&&p9L(this,!1);(u=H||v)||(u=Q,u=!(this.videoData.isLivePlayback&&this.videoData.L&&!this.videoData.L.Z&&!(this.mediaElement&&this.mediaElement.OG()>0&&lZ(this.mediaElement)>0)||C9(this.videoData)&&this.jx()===this.jA(!1)?0:isFinite(u)||!C9(this.videoData)));u||(Q=zq(this,Q,b));Q&&!isFinite(Q)&&p9L(this,!1);this.D=Q;this.En=L;this.B=Q;this.j=0;this.Z&&(b=this.Z,L=Q,uB8(b,L,!1),Skn(b, +L));b=this.HI;L=Q;u={RT:z,seekSource:X};b.Sx.D=L;H=b.mQ;H.mediaTime=L;H.Z=!0;u.RT&&b.E0(u);u=L>b.videoData.endSeconds&&L>b.videoData.limitedPlaybackDurationInSeconds;b.NF&&u&&isFinite(L)&&bAJ(b);Lz.start&&bAJ(this.HI);return this.S}; +g.S.jA=function(Q){if(!this.videoData.isLivePlayback)return Yua(this.HI);var z;return zI(this.videoData)&&((z=this.mediaElement)==null?0:z.isPaused())&&this.videoData.Z?(Q=this.getCurrentTime(),EHa(this.JM(Q)*1E3)+Q):this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&uE(this.videoData)&&this.videoData.Z?Q?this.videoData.Z.wh||0:this.videoData.Z.eN||0:C9(this.videoData)&&this.videoData.f3&&this.videoData.Z?this.videoData.Z.jA()+this.timestampOffset:this.videoData.L&&this.videoData.L.Z?!Q&& +this.Z?this.Z.yf():Yua(this.HI)+this.timestampOffset:this.mediaElement?wR()?EHa(this.mediaElement.Jf().getTime()):lZ(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; +g.S.jx=function(){if(g.wr(this.videoData)){var Q=this.HI;g.wr(Q.videoData);var z,H;return(H=(z=Q.OY)==null?void 0:z.jx())!=null?H:Q.videoData.jx()}if(this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&uE(this.videoData)){var f;return((f=this.videoData.Z)==null?void 0:f.W0)||0}z=this.videoData?this.videoData.jx()+this.timestampOffset:this.timestampOffset;return zI(this.videoData)&&this.videoData.Z&&(H=Number((Q=this.videoData.progressBarStartPosition)==null?void 0:Q.utcTimeMillis)/1E3,Q= +this.getCurrentTime(),Q=this.JM(Q)-Q,!isNaN(H)&&!isNaN(Q))?Math.max(z,H-Q):z}; +g.S.B4=function(){this.S||this.seekTo(this.D,{lr:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; +g.S.bJ=function(){return this.wh&&!isFinite(this.B)}; +g.S.zv=function(){n_9(this,null);this.De.dispose();g.h.prototype.zv.call(this)}; +g.S.TL=function(){var Q={};this.xv&&Object.assign(Q,this.xv.TL());this.mediaElement&&Object.assign(Q,this.mediaElement.TL());return Q}; +g.S.yZ=function(Q){this.timestampOffset=Q}; +g.S.getStreamTimeOffset=function(){return C9(this.videoData)?0:this.videoData.Z?this.videoData.Z.getStreamTimeOffset():0}; +g.S.ex=function(){return this.timestampOffset}; +g.S.JM=function(Q){return this.videoData&&this.videoData.Z?this.videoData.Z.JM(Q-this.timestampOffset):NaN}; +g.S.F7=function(){if(!this.mediaElement)return 0;if(Iq(this.videoData)){var Q=this.mediaElement,z=Q.Ux();Q=(yA(z)>0&&Q.getDuration()?z.end(z.length-1):0)+this.timestampOffset-this.jx();z=this.jA()-this.jx();return Math.max(0,Math.min(1,Q/z))}return this.mediaElement.F7()}; +g.S.e9=function(Q){this.Y&&(this.Y.Z=Q)}; +g.S.iU=function(Q,z){this.HI.On("requestUtcSeek",{time:Q});uE(this.videoData)&&this.V("html5_sabr_enable_utc_seek_requests")&&(this.C3=Q);var H;(H=this.xv)==null||H.iU(Q);z&&(this.L3=z)}; +g.S.fl=function(Q){uE(this.videoData)&&this.V("html5_sabr_enable_utc_seek_requests")&&(this.C3=void 0);if(this.L3)this.HI.On("utcSeekingFallback",{source:"streamTime",timeSeconds:this.L3}),this.HI.seekTo(this.L3,{lr:"utcSeekingFallback_streamTime"}),this.L3=0;else{var z=this.getCurrentTime();isNaN(z)||(Q=this.JM(z)-Q,z-=Q,this.HI.On("utcSeekingFallback",{source:"estimate",timeSeconds:z}),this.HI.seekTo(z,{lr:"utcSeekingFallback_estimate"}))}}; +g.S.J1=function(){this.L3=0}; +g.S.V=function(Q){return this.rh&&this.rh.V(Q)};g.p(H9,g.h);H9.prototype.start=function(){this.B.start()}; +H9.prototype.stop=function(){this.B.stop()}; +H9.prototype.clear=function(){for(var Q=g.n(this.Z.values()),z=Q.next();!z.done;z=Q.next())z.value.clear()}; +H9.prototype.sample=function(){for(var Q=g.n(this.L),z=Q.next();!z.done;z=Q.next()){var H=g.n(z.value);z=H.next().value;H=H.next().value;this.Z.has(z)||this.Z.set(z,new YkZ(j0R.has(z)));this.Z.get(z).update(H())}this.B.start()}; +var j0R=new Set(["networkactivity"]);YkZ.prototype.update=function(Q){this.Z?(this.buffer.add(Q-this.rk||0),this.rk=Q):this.buffer.add(Q)}; +YkZ.prototype.clear=function(){this.buffer.clear();this.rk=0};LL.prototype.Dv=function(){return this.started}; +LL.prototype.start=function(){this.started=!0}; +LL.prototype.reset=function(){this.finished=this.started=!1};var abZ=!1;g.p(g.v9,g.vf);g.S=g.v9.prototype;g.S.zv=function(){this.logger.debug("dispose");g.$7(this.Jo);D5Y(this.Ox);this.visibility.unsubscribe("visibilitystatechange",this.Ox);TIa(this);Mp(this);g.DR.xF(this.Lb);this.MO();this.ZY=null;g.Xx(this.videoData);g.Xx(this.yF);g.Xx(this.ph);g.Xx(this.XX);g.vu(this.H5T);this.NF=null;g.vf.prototype.zv.call(this)}; +g.S.Tp=function(Q,z,H,f,b){if(this.rh.V("html5_log_ad_playback_docid")){var L=this.JZ();if(L.qoe){L=L.qoe;var u=this.rh.Ze||"yt";g.$P(L,g.nD(L.provider),"ad_playback",[Q,z,H,b,u])}}else this.JZ().Tp(Q,z,H);this.V("html5_log_media_perf_info")&&this.On("adloudness",{ld:f.toFixed(3),cpn:Q})}; +g.S.HC=function(){var Q;return(Q=this.xv)==null?void 0:Q.HC()}; +g.S.Ow=function(){var Q;return(Q=this.xv)==null?void 0:Q.Ow()}; +g.S.wq=function(){var Q;return(Q=this.xv)==null?void 0:Q.wq()}; +g.S.A4=function(){var Q;return(Q=this.xv)==null?void 0:Q.A4()}; +g.S.w7=function(){return this.videoData.w7()}; +g.S.Uq=function(){return this.V("html5_not_reset_media_source")&&!this.w7()&&!this.videoData.isLivePlayback&&g.UC(this.videoData)&&!this.rh.supportsGaplessShorts()}; +g.S.Sv=function(){if(this.videoData.N){var Q=this.videoData,z;if(!(z=this.videoData.R$)){var H;z=(H=this.sV.X$())==null?void 0:H.HC()}Q.R$=z;Q=this.videoData;if(!(z=this.videoData.WR)){var f;z=(f=this.sV.X$())==null?void 0:f.Ow()}Q.WR=z}if(LiY(this.videoData)||!Qw(this.videoData))f=this.videoData.errorDetail,this.VN(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),f,f,this.videoData.Jj||void 0);this.V("html5_generate_content_po_token")&&this.W2();this.V("html5_enable_d6de4")&& +this.WO();if(this.V("html5_ssap_cleanup_player_switch_ad_player")||this.V("html5_ssap_cleanup_ad_player_on_new_data"))if(f=this.sV.Iq())this.xz=f.clientPlaybackNonce}; +g.S.JJ=function(){return this.PE}; +g.S.nB=function(){!this.wk||this.wk.Sm();this.wk=new g.ay(new PL(this.videoData,this.rh,this));this.PE=new cL(this.rh,this,this.wk)}; +g.S.getVideoData=function(){return this.videoData}; +g.S.C=function(){return this.rh}; +g.S.b0=function(Q){return this.i7.b0(this.ZY,Q===void 0?!1:Q)}; +g.S.JZ=function(Q){if(Q)a:{for(var z=this.PE,H=g.n(z.Z.values()),f=H.next();!f.done;f=H.next())if(f=f.value,f.getVideoData().videoId===Q){Q=f;break a}Q=z.B}else Q=this.PE.JZ();return Q}; +g.S.Kq=function(){return this.visibility}; +g.S.e5=function(){return this.mediaElement&&this.mediaElement.FK()?this.mediaElement.ai():null}; +g.S.aB=function(){return this.mediaElement}; +g.S.A3=function(){if(this.V("html5_check_video_data_errors_before_playback_start")&&this.videoData.errorCode)return!1;this.C().j&&this.C().houseBrandUserStatus&&this.On("hbut",{status:this.C().houseBrandUserStatus});if(this.videoData.EZ())return!0;this.VN("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; +g.S.gX=function(Q){(Q=Q===void 0?!1:Q)||g.wr(this.videoData)||Ug(this.JZ());this.aU=Q;!this.A3()||this.sT.Dv()?g.oT(this.rh)&&this.videoData.isLivePlayback&&this.sT.Dv()&&!this.sT.finished&&!this.aU&&this.Pf():(this.sT.start(),Q=this.JZ(),g.nD(Q.provider),Q.qoe&&mlk(Q.qoe),this.Pf())}; +g.S.Pf=function(){if(this.videoData.isLoaded()){var Q=this.yF;g.Mf(Q.aj.experiments,"html5_player_min_build_cl")>0&&g.Mf(Q.aj.experiments,"html5_player_min_build_cl")>733956867&&RP8(Q,"oldplayer");QOL(this)}else this.videoData.yw||this.videoData.h_?this.aU&&g.oT(this.rh)&&this.videoData.isLivePlayback||(this.videoData.yw?DdZ(this.videoData):(Q=this.JZ(),Q.qoe&&(Q=Q.qoe,xP(Q,"protected"),Q.provider.videoData.S?Q.mV():Q.provider.videoData.subscribe("dataloaded",Q.mV,Q)),UdJ(this.videoData))):!this.videoData.loading&& +this.Hi&&eCY(this)}; +g.S.nj=function(Q){this.J7=Q;this.xv&&(UYa(this.xv,new g.fD(Q)),this.On("sdai",{sdsstm:1}))}; +g.S.L$=function(Q){this.OY=Q;this.xv&&this.xv.L$(Q)}; +g.S.N0=fn(16);g.S.isFullscreen=function(){return this.visibility.isFullscreen()}; +g.S.isBackground=function(){return this.visibility.isBackground()}; +g.S.w5=function(){var Q=this;this.logger.debug("Updating for format change");yO(this).then(function(){return XB(Q)}); +this.playerState.isOrWillBePlaying()&&this.playVideo()}; +g.S.v2=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.gX();this.A3()&&!g.w(this.playerState,128)&&(this.vQ.Dv()||(this.vQ.start(),this.videoData.rz?this.zq(Lx(this.playerState,4)):this.zq(Lx(Lx(this.playerState,8),1))),lbZ(this))}; +g.S.DG=function(){return this.sT.finished}; +g.S.sendAbandonmentPing=function(){g.w(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.Gc(!0),TIa(this),g.DR.xF(this.Lb))}; +g.S.x7=function(Q,z){Q=Q===void 0?!0:Q;(z===void 0||z)&&this.mediaElement&&this.mediaElement.pause();this.zq(Q?new g.HR(14):new g.HR)}; +g.S.x$=function(){this.JZ().sN()}; +g.S.VN=function(Q,z,H,f,b,L){this.logger.debug(function(){return"set player error: ec="+Q+", detail="+b}); +var u,X;g.A6(BCL,H)?u=H:H?X=H:u="GENERIC_WITHOUT_LINK";f=(f||"")+(";a6s."+yT());if(Q==="auth"||Q==="drm.auth"||Q==="heartbeat.stop")H&&(f+=";r."+H.replaceAll(" ","_")),L&&(f+="sr."+L.replaceAll(" ","_"));z={errorCode:Q,errorDetail:b,errorMessage:X||g.WE[u]||"",oP:u,Jj:L||"",Fd:f,zE:z,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=Q;qp(this,"dataloaderror");this.zq(bC(this.playerState,128,z));g.DR.xF(this.Lb);Mp(this);this.Iv()}; +g.S.PS=function(Q){this.Nj=this.Nj.filter(function(z){return Q!==z}); +this.logger.debug(function(){return"set preroll ready for "+Q}); +g.wr(this.videoData)&&!this.l7()&&this.jy.GS("pl_pr");this.vQ.Dv()&&lbZ(this)}; +g.S.l7=function(){var Q;(Q=!!this.Nj.length)||(Q=this.gP.Z.array[0],Q=!!Q&&Q.start<=-0x8000000000000);return Q}; +g.S.Vd=function(){return this.Sx.Vd()}; +g.S.isPlaying=function(){return this.playerState.isPlaying()}; +g.S.q3=function(){return this.playerState.q3()&&this.videoData.rz}; +g.S.getPlayerState=function(){return this.playerState}; +g.S.y5=function(Q){var z;(z=this.xv)==null||z.y5(Q)}; +g.S.DU=function(Q){var z;(z=this.xv)==null||z.DU(Q)}; +g.S.getPlayerType=function(){return this.playerType}; +g.S.getPreferredQuality=function(){if(this.ZY){var Q=this.ZY;Q=Q.videoData.sR.compose(Q.videoData.M9);Q=u$(Q)}else Q="auto";return Q}; +g.S.LV=fn(22);g.S.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; +g.S.setMediaElement=function(Q){this.logger.debug("set media element");if(this.mediaElement&&Q.ai()===this.mediaElement.ai()&&(Q.isView()||this.mediaElement.isView())){if(Q.isView()||!this.mediaElement.isView())this.r$(),this.mediaElement=Q,this.mediaElement.HI=this,nbL(this),this.Sx.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.MO();if(!this.playerState.isError()){var z=uC(this.playerState,512);g.w(z,8)&&!g.w(z,2)&&(z=Lx(z,1));Q.isView()&&(z=uC(z,64));this.zq(z)}this.mediaElement= +Q;this.mediaElement.HI=this;!g.oT(this.rh)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);nbL(this);this.Sx.setMediaElement(this.mediaElement);this.V("html5_prewarm_media_source")&&!this.yF.JP()&&rT9(this.mediaElement)}}; +g.S.MO=function(Q,z,H){Q=Q===void 0?!1:Q;z=z===void 0?!1:z;H=H===void 0?!1:H;this.logger.debug("remove media element");if(this.mediaElement){var f=this.getCurrentTime();f>0&&(this.Sx.D=f);this.Sx.setMediaElement(null);!Q&&this.Uq()?qu9(this):this.gq(H);this.xv&&(Tc(this.xv),pL(this,z));this.sA.stop();if(this.mediaElement&&(!this.vQ.Dv()&&!this.vG()||this.playerState.isError()||g.w(this.playerState,2)||this.zq(Lx(this.playerState,512)),this.mediaElement)){this.r$();if(Q||!this.mediaElement.isView())this.jy.K$("mesv_s"), +this.mediaElement.stopVideo(),nL(this);this.mediaElement=this.mediaElement.HI=null}}}; +g.S.playVideo=function(Q,z){Q=Q===void 0?!1:Q;z=z===void 0?!1:z;var H=this,f,b,L,u,X,v;return g.B(function(y){if(y.Z==1){H.logger.debug("start play video");var q=window.google_image_requests;q&&q.length>10&&(window.google_image_requests=q.slice(-10));if(g.w(H.playerState,128))return y.return();if(H.yF.KQ())return H.publish("signatureexpired"),y.return();H.mediaElement&&Ug(H.JZ());H.v2();(g.w(H.playerState,64)||Q)&&H.zq(Lx(H.playerState,8));return H.vQ.finished&&H.mediaElement?H.ZY||!H.VX?y.bT(2): +g.Y(y,H.VX,3):y.return()}if(y.Z!=2&&g.w(H.playerState,128))return y.return();if(!H.videoData.L)return H.videoData.isLivePlayback&&!g.Rk(H.rh.S,!0)?(f="html5.unsupportedlive",b=2):(f=H.videoData.w7()?"fmt.unplayable":"fmt.noneavailable",b=1),g.ax(Error("selectableFormats")),H.VN(f,b,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),y.return();if(H.oJ()&&H.videoData.L.Z)return H.logger.debug("rebuild playbackData for airplay"),y.return(yO(H));if(lH(H))q=H.Sx,MY(q.videoData)?!q.isAtLiveHead(q.getCurrentTime())&& +q.Vd()&&q.HI.seekTo(Infinity,{lr:"seektimeline_peggedToLive",seekSource:34}):g.wr(q.videoData)&&q.getCurrentTime()u;u=z.V("html5_dont_save_under_1080")&&u<1080;if(!b||!L&&!u){var X;b=Szp(z,(X=f.Z)==null?void 0:X.videoInfos);X=z.HI.getPlaybackRate();X>1&&b&&(X=sc9(z.rh.S,f.Z.videoInfos,X),Q.Z!==0&&X=480;if(z.V("html5_exponential_memory_for_sticky")){v=z.rh.D6;y=1;var q=q===void 0?!1:q;l$Y(v,"sticky-lifetime");v.values["sticky-lifetime"]&&v.ol["sticky-lifetime"]||(v.values["sticky-lifetime"]=0,v.ol["sticky-lifetime"]=0);q&&Gt(v,"sticky-lifetime")>.0625&&(y=v.ol["sticky-lifetime"]*2);v.values["sticky-lifetime"]+=1*Math.pow(2,v.Z/y);v.ol["sticky-lifetime"]=y; +v.D.start()}if(z.V("html5_perf_cap_override_sticky")){q=z.L;v=z.V("html5_perserve_av1_perf_cap");v=v===void 0?!1:v;if(v===void 0?0:v){y=cB();z=g.n(Object.keys(y));for(Q=z.next();!Q.done;Q=z.next())Q=Q.value,Q.indexOf("1")!==0&&delete y[Q];g.Pw("yt-player-performance-cap",y,2592E3)}else g.UP("yt-player-performance-cap");B4Y(v);if(v){v=g.n(ok.keys());for(y=v.next();!y.done;y=v.next())y=y.value,y.startsWith("1")||ok.delete(y);v=g.n(td.values());for(y=v.next();!y.done;y=v.next())y=y.value,y.startsWith("1")|| +td.delete(y);v=g.n(q.keys());for(y=v.next();!y.done;y=v.next())y=y.value,y.startsWith("1")||q.delete(y)}else ok.clear(),td.clear(),q.clear()}}}this.xv&&(q=this.xv,H=H||"",q.policy.Z?k$(q.B.Z,H):k$(q.Z.S,H));this.ye()}; +g.S.getUserPlaybackQualityPreference=function(){return this.videoData.L&&!this.videoData.L.Z?u$(this.videoData.sR):Lu[aA()]}; +g.S.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; +g.S.setUserAudio51Preference=function(Q,z){this.getUserAudio51Preference()!==Q&&(this.On("toggle51",{pref:Q}),g.Pw("yt-player-audio51",Q,z?31536E3:2592E3),this.w5())}; +g.S.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; +g.S.setProximaLatencyPreference=function(Q){var z=this.getProximaLatencyPreference();this.On("proxima",{pref:Q});g.Pw("yt-player-proxima-pref",Q,31536E3);z!==Q&&(Q=this.Sx,Q.WI=!0,Q.HI.seekTo(Infinity,{lr:"seektimeline_proximaSeekToHead",seekSource:34}))}; +g.S.getProximaLatencyPreference=function(){var Q;return(Q=UW())!=null?Q:0}; +g.S.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; +g.S.W2=function(){this.videoData.videoId?this.sV.W2(this.videoData):this.On("povid",{})}; +g.S.WO=function(){this.videoData.videoId?this.sV.WO(this.videoData):this.On("piavid",{})}; +g.S.ye=function(){if(!this.Sm()&&!g.w(this.playerState,128)&&this.videoData.L){if(this.videoData.L.Z)SW(this);else{var Q=Ek(this),z=this.videoData;a:{var H=this.videoData.zx;if(Q.Z){for(var f=g.n(H),b=f.next();!b.done;b=f.next()){b=b.value;var L=b.getInfo(),u=g.ct[L.video.quality];if((!Q.L||L.video.quality!=="auto")&&u<=Q.Z){H=b;break a}}H=H[H.length-1]}else H=H[0]}z.gh=H;L78(this,Q.reason,Gj6(this,this.videoData.gh))}if(this.V("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.Sx.N= +!1,this.playVideo()}}; +g.S.xB=function(Q,z){if(this.Sm()||g.w(this.playerState,128))return!1;var H,f=!((H=this.videoData.L)==null||!H.Z);H=f&&z?this.getCurrentTime()-this.ex():NaN;if(this.rh.experiments.Nc("html5_record_audio_format_intent")){var b=this.JZ();if(b.qoe){b=b.qoe;var L=[Q.Ii.id,isNaN(H)?"m":"t"];g.$P(b,g.nD(b.provider),"afi",L)}}if(f)return z&&(f=ZLc(this.Sx),this.On("aswh",{id:Q.id,xtags:Q.xtags,bh:f.toFixed(3)})),this.xv.setAudioTrack(Q,H,z),!0;if(SuL(this)){a:{z=this.mediaElement.audioTracks();for(f=0;f< +z.length;++f)if(H=z[f],H.label===Q.Ii.getName()){if(H.enabled){z=!1;break a}z=H.enabled=!0;break a}z=void 0}z&&this.On("hlsaudio",{id:Q.id})}else{a:if(z=this.videoData,z.D&&!la(z.D)||Q===z.Da||!z.zx||z.zx.length<=0)z=!1;else{f=g.n(z.zx);for(H=f.next();!H.done;H=f.next()){H=H.value;if(!(H instanceof vV)){z=!1;break a}b=Q.Ii.getId();H.B&&($Mu(H.B,b),H.Mz=null)}z.Da=Q;z=!0}z&&XB(this)&&(this.publish("internalaudioformatchange",this.videoData,!0),this.On("hlsaudio",{id:Q.id}))}return!0}; +g.S.getAvailableAudioTracks=function(){return g.wr(this.videoData)&&this.OY?izZ(this.OY).getAvailableAudioTracks():this.videoData.getAvailableAudioTracks()}; +g.S.getAudioTrack=function(){if(SuL(this)){var Q=vb8(this);if(Q)return Q}return this.videoData.getAudioTrack()}; +g.S.JH=function(){if(this.videoData.V("html5_trigger_loader_when_idle_network")&&!this.videoData.AZ()&&uE(this.videoData)){var Q;(Q=this.xv)!=null&&Q.SA()}}; +g.S.F1=function(){if(f9(this.videoData)&&this.videoData.V("html5_gapless_append_early")){var Q;(Q=this.xv)!=null&&Q.SA()}}; +g.S.NT=function(Q){Q=Q===void 0?!1:Q;if(this.xv){var z=this.xv,H=z.NT;var f=this.videoData;f=f.V("html5_ssdai_use_post_for_media")&&f.enableServerStitchedDai?!1:C9(f)&&f.Uj&&!f.isAd();H.call(z,f,Q)}}; +g.S.gq=function(Q){Q=Q===void 0?!1:Q;this.vI&&(this.logger.debug("remove media source"),Yxc(this.vI),this.NT(Q),this.vI.dispose(),this.vI=null)}; +g.S.AB=function(){return this.vI}; +g.S.B2=function(Q,z,H,f){function b(u){try{Ebv(L,u,z,H)}catch(X){g.ax(X),L.handleError(new oj("fmt.unplayable",{msi:"1",ename:X&&typeof X==="object"&&"name"in X?String(X.name):void 0},1))}} +var L=this;z=z===void 0?!1:z;H=H===void 0?!1:H;CNL(this,f===void 0?!1:f);this.vI=Q;this.Uq()&&wp(this.vI)==="open"?b(this.vI):oU9(this.vI,b)}; +g.S.Cl=function(Q){this.logger.debug("onNeedKeyInfo");this.Qx.set(Q.initData,Q);this.IB&&(this.IB.Cl(Q),this.V("html5_eme_loader_sync")||this.Qx.remove(Q.initData))}; +g.S.Gz=function(Q){this.videoData.vR=g.HM("auto",Q,!1,"u");SW(this)}; +g.S.e9=function(Q){var z=Q.reason,H=Q.Z.info,f=Q.token,b=Q.videoId,L=this.JZ(b),u=g.wr(this.videoData)?L.getVideoData():this.videoData;if(H!==u.D){var X=!u.D;u.D=H;z!=="m"&&z!=="t"&&(z=X?"i":"a");var v=z==="m"||z==="t";this.rh.experiments.Nc("html5_refactor_sabr_audio_format_selection_logging")?this.ly=new HBA(u,H,z,"",f,b):L.jK(new HBA(u,H,z,"",f));this.publish("internalaudioformatchange",u,!X&&v)}this.Sx.e9(Q.Z.index)}; +g.S.xZ=function(Q){this.publish("localmediachange",Q)}; +g.S.ST=function(Q){Q=Q===void 0?{}:Q;var z;(z=this.xv)==null||z.ST(this.rh,L9(this.videoData),Q)}; +g.S.KQ=function(){return this.yF.KQ()}; +g.S.o7=function(Q){this.h7(new oj("staleconfig",{reason:Q}))}; +g.S.handleError=function(Q){this.yF.handleError(Q)}; +g.S.JP=function(){return this.yF.JP()}; +g.S.fl=function(Q){this.Sx.fl(Q)}; +g.S.lL=function(Q,z,H){Q=Q===void 0?!1:Q;z=z===void 0?!1:z;H=H===void 0?!1:H;var f=this,b,L,u;return g.B(function(X){if(X.Z==1){f.xv&&f.xv.UN();f.xv&&f.xv.Sm()&&Mp(f);if(f.V("html5_enable_vp9_fairplay")&&f.w7()&&(b=f.videoData.Z)!=null)for(var v in b.Z)b.Z.hasOwnProperty(v)&&(b.Z[v].Z=null,b.Z[v].L=!1);f.zq(Lx(f.playerState,2048));f.V("html5_ssap_keep_media_on_finish_segment")&&g.wr(f.videoData)?f.publish("newelementrequired",H):f.publish("newelementrequired");return Q?g.Y(X,yO(f),2):X.bT(2)}f.videoData.AZ()&& +((L=f.xv)==null?0:L.L3)&&!lH(f)&&((u=f.isAtLiveHead())&&MY(f.videoData)?f.seekTo(Infinity,{lr:"videoPlayer_getNewElement"}):f.videoData.l8&&f.xv&&(v=f.xv,v.n3.AZ&&(v.n3.l8||v.n3.D||v.n3.isPremiere?(v.seek(0,{lr:"loader_resetSqless"}),v.videoTrack.Y=!0,v.audioTrack.Y=!0,v.videoTrack.S=!0,v.audioTrack.S=!0):Fo(v.n3)&&bK(v))));z&&f.seekTo(0,{seekSource:105});g.w(f.playerState,8)&&(f.V("html5_ssap_keep_media_on_finish_segment")&&g.wr(f.videoData)?f.playVideo(!1,H):f.playVideo());g.$v(X)})}; +g.S.TX=function(Q){this.On("hgte",{ne:+Q});this.videoData.N=!1;Q&&this.lL();this.xv&&X7Z(this.xv)}; +g.S.J6=function(Q){this.On("newelem",{r:Q});this.lL()}; +g.S.pauseVideo=function(Q){Q=Q===void 0?!1:Q;if((g.w(this.playerState,64)||g.w(this.playerState,2))&&!Q)if(g.w(this.playerState,8))this.zq(Sm(this.playerState,4,8));else if(this.q3())XB(this);else return;g.w(this.playerState,128)||(Q?this.zq(Lx(this.playerState,256)):this.zq(Sm(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.NY(this.videoData)&&this.xv&&pL(this,!1)}; +g.S.stopVideo=function(){this.pauseVideo();this.xv&&(pL(this,!1),this.xv.lH())}; +g.S.Iv=function(Q,z){Q=Q===void 0?!1:Q;z=z===void 0?!1:z;if(this.Uq()&&z){var H;(H=this.mediaElement)==null||H.Iv()}else{var f;(f=this.mediaElement)==null||f.stopVideo()}nL(this);Mp(this);g.w(this.playerState,128)||(Q?this.zq(uC(uC(Lx(this.playerState,4),8),16)):this.zq(bC(this.playerState)));this.videoData.videoId&&this.rh.f3.remove(this.videoData.videoId)}; +g.S.seekTo=function(Q,z){z=z===void 0?{}:z;this.logger.debug(function(){return"SeekTo "+Q+", "+JSON.stringify(z)}); +g.w(this.playerState,2)&&XB(this);z.Ut5&&this.zq(Lx(this.playerState,2048));z.seekSource!==58&&z.seekSource!==60||!this.V("html5_update_vss_during_gapless_seeking")||Yg9(this.JZ(),z.seekSource);this.Sx.seekTo(Q,z);this.gP.sync()}; +g.S.E0=function(Q){this.jy.D.YC();g.w(this.playerState,32)||(this.zq(Lx(this.playerState,32,Q==null?void 0:Q.seekSource)),g.w(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking",this));this.A7()}; +g.S.rR=function(Q){Q=Q==null?void 0:Q.seekSource;g.w(this.playerState,32)?(this.zq(Sm(this.playerState,16,32,Q)),this.publish("endseeking",this)):g.w(this.playerState,2)||this.zq(Lx(this.playerState,16,Q));this.jy.D.XT(this.videoData,this.playerState.isPaused())}; +g.S.LS=function(Q){this.rR(Q)}; +g.S.qV=function(){this.publish("SEEK_COMPLETE")}; +g.S.AS=function(){this.publish("onAbnormalityDetected")}; +g.S.Hp=function(Q){var z=this.sV,H=this.videoData.clientPlaybackNonce,f=this.playerType;if(Q.scope===4){var b=Q.type;if(b){var L=z.ey(),u=L.getVideoData().clientPlaybackNonce;f===1&&(u=H);(z=tIn(z,u))?(H=z.getVideoData())&&(Q.writePolicy===2&&H.sabrContextUpdates.has(b)||H.sabrContextUpdates.set(b,Q)):L.On("scuset",{ncpf:"1",ccpn:u,crcpn:H})}else g.ax(Error("b/380308491: contextUpdateType is undefined"))}}; +g.S.Si=function(){if(this.playerType===2)return this.sV.Si("")}; +g.S.getCurrentTime=function(){return this.Sx.getCurrentTime()}; +g.S.R_=function(){return this.Sx.R_()}; +g.S.yN=function(){return this.Sx.yN()}; +g.S.Tt=function(Q){return this.OY&&(Q=Q||this.OY.l$())?LJ(this.OY,Q):this.yN()}; +g.S.yf=function(){return this.Sx.yf()}; +g.S.getPlaylistSequenceForTime=function(Q){return this.videoData.getPlaylistSequenceForTime(Q-this.ex())}; +g.S.zp=function(){var Q=NaN;this.mediaElement&&(Q=this.mediaElement.zp());return Q>=0?Q:this.getCurrentTime()}; +g.S.JM=function(){var Q;return((Q=this.videoData.Z)==null?0:Q.JM)?this.videoData.Z.JM(this.getCurrentTime()-this.ex()):this.mediaElement&&(Q=this.mediaElement.Jf())&&(Q=Q.getTime(),!isNaN(Q))?Q/1E3+this.getCurrentTime():NaN}; +g.S.getDuration=function(Q){return g.wr(this.videoData)&&this.OY?Q?cVc(this.OY,Q):kY(this.OY):this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.ex():this.jA()?this.jA():0}; +g.S.u4=function(){var Q=new UJk;if(this.xv){var z=this.rh.schedule,H=this.rh.vz();H=H===void 0?!1:H;Q.Zi=z.L3;Q.jJ=z.En;Q.bandwidthEstimate=gm(z);if(H){H=(z.N.gQ()*1E3).toFixed();var f=(z.yl.gQ()*1E3).toFixed(),b=E8(z).toFixed(2),L=((z.Y.gQ()||0)*1E9).toFixed(2),u=z.L.gQ().toFixed(0),X=z.f3.gQ().toFixed(0),v=z.U.percentile(.5).toFixed(2),y=z.U.percentile(.92).toFixed(2),q=z.U.percentile(.96).toFixed(2),M=z.U.percentile(.98).toFixed(2);z.Z?z.Z.reset():z.Z=new uf;z.Z.add(z.De);z.Z.add(z.interruptions.length); +for(var C=0,t=z.interruptions.length-1;t>=0;t--){var E=z.interruptions[t];z.Z.add(E-C);C=E}C=0;for(t=z.D.length-1;t>=0;t--){E=z.D[t];var G=E.stamp/36E5;z.Z.add(G-C);C=G;z.Z.add(E.net/1E3);z.Z.add(E.max)}z=z.Z.dP();Q.Z={ttr:H,ttm:f,d:b,st:L,bw:u,abw:X,v50:v,v92:y,v96:q,v98:M,"int":z}}amc(this.xv,Q)}else this.mediaElement&&(Q.yq=Rm(this.mediaElement));Q.Zi=this.Zi;Q.jJ=this.jJ;Q.L=this.isAtLiveHead()&&this.isPlaying()?w99(this):NaN;return Q}; +g.S.Nn=function(Q,z){this.jJ+=Q;this.Zi+=z}; +g.S.F7=function(){return this.mediaElement?g.NY(this.videoData)?1:Iq(this.videoData)?this.isAtLiveHead()||this.Vd()?1:this.Sx.F7():this.mediaElement.F7():0}; +g.S.bv=function(){var Q=this.HZ,z=bt(Q,"bandwidth"),H=bt(Q,"bufferhealth"),f=bt(Q,"livelatency"),b=bt(Q,"networkactivity"),L=fL(Q,"bandwidth"),u=fL(Q,"bufferhealth"),X=fL(Q,"livelatency");Q=fL(Q,"networkactivity");var v=this.RR(),y=v.droppedVideoFrames;v=v.totalVideoFrames;var q=this.getCurrentTime();if(this.IB){var M="IT/"+(this.IB.Z.getInfo()+"/"+u$(this.Nx()));M+="/"+this.IB.getInfo()}else M="";var C=this.isGapless(),t=this.PU(),E=this.nf(),G=g.tz(this),x=this.getPlayerState(),J=this.getPlaylistSequenceForTime(this.getCurrentTime()); +a:{var I=0;var r="";if(this.J7){if(this.J7.bZ){r="D,";break a}I=this.J7.fG();r=this.J7.l$().substring(0,4)}else this.OY&&(I=this.OY.fG(),r=this.OY.l$().substring(0,4));I>0?(I="AD"+I+", ",r&&(I+=r+", "),r=I):r=""}return{yK:L,f_:u,currentTime:q,UM:M,droppedVideoFrames:y,isGapless:C,PU:t,gR:E,Aq:z,VL:H,nO:f,Y_:b,Ez:X,MQ:Q,Mb:G,playerState:x,v9:J,zA:r,totalVideoFrames:v}}; +g.S.TL=function(Q){var z={};if(Q===void 0?0:Q){Object.assign(z,this.JZ().TL());this.mediaElement&&(Object.assign(z,this.mediaElement.TL()),Object.assign(z,this.RR()));this.xv&&Object.assign(z,this.xv.TL());this.IB&&(z.drm=JSON.stringify(this.IB.TL()));z.state=this.playerState.state.toString(16);g.w(this.playerState,128)&&(z.debug_error=JSON.stringify(this.playerState.WS));this.l7()&&(z.prerolls=this.Nj.join(","));this.videoData.yR&&(z.ismb=this.videoData.yR);this.videoData.latencyClass!=="UNKNOWN"&& +(z.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(z.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)z.is_mosaic=1;this.videoData.cotn&&(z.is_offline=1,z.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(z.playerResponseCpn=this.videoData.playerResponseCpn);this.sV.isOrchestrationLeader()&&(z.leader=1);this.videoData.isLivePlayback&&(this.videoData.Z&& +Zn(this.videoData.Z)&&(z.segduration=Zn(this.videoData.Z)),Q=this.Sx,z.lat=Q.Y?RgY(Q.Y.D):0,z.liveutcstart=this.videoData.liveUtcStartSeconds);z.relative_loudness=this.videoData.dS.toFixed(3);if(Q=g.tz(this))z.optimal_format=Q.video.qualityLabel;z.user_qual=aA();z.release_version=H_[44];g.wr(this.videoData)&&this.OY&&(z.ssap=S8(this.OY))}z.debug_videoId=this.videoData.videoId;return z}; +g.S.addCueRange=function(Q){this.pZ([Q])}; +g.S.removeCueRange=function(Q){this.gP.NG([Q])}; +g.S.PJ=function(){this.gP.sync()}; +g.S.Rc=function(Q,z){return this.gP.Rc(Q,z)}; +g.S.pZ=function(Q,z){this.gP.UZ(Q,z)}; +g.S.OR=function(Q){this.gP.NG(Q)}; +g.S.Rk=function(Q){var z=this.gP;Q.length<=0||z.Sm()||(Q=z.Z,Q.array.sort(Q.Z))}; +g.S.o6=function(){return this.gP.o6()||[]}; +g.S.ZR=function(){return this.qZ}; +g.S.oJ=function(){return this.visibility.oJ()}; +g.S.bf=function(){this.mediaElement&&this.mediaElement.bf()}; +g.S.vJj=function(){qp(this)}; +g.S.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; +g.S.r$=function(){g.YQ(this.H$)}; +g.S.FU=function(){this.A7();this.publish("onLoadProgress",this,this.F7())}; +g.S.bS=function(Q){var z=Q.target.e3();if(this.mediaElement&&this.mediaElement.e3()&&this.mediaElement.e3()===z){N3J(this,Q.type);switch(Q.type){case "error":var H=zE(this.mediaElement)||"",f=this.mediaElement.q8();if(H==="capability.changed"){this.V("html5_restart_on_capability_change")?(this.On("capchg",{msg:f}),this.lL(!0)):yO(this);return}if(this.mediaElement.hasError()&&(kX_(this.yF,H,{msg:f})||g.wr(this.videoData)&&this.OY&&(f=this.playerState.WS,this.OY.handleError(H,f==null?void 0:f.zE))))return; +if(this.isBackground()&&this.mediaElement.JF()===4){this.Iv();CL(this,"unplayable");return}break;case "durationchange":H=this.mediaElement.getDuration();isFinite(H)&&(!this.vI||H>0)&&H!==1&&this.wx(H);break;case "ratechange":this.xv&&this.xv.setPlaybackRate(this.mediaElement.getPlaybackRate());mJu(this.gP);this.JZ().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":A4L(this);this.publish("onLoadedMetadata");ZAa(this);H=this.JM();this.videoData.ER&&(this.videoData.ER=H);break; +case "loadstart":ZAa(this);break;case "progress":case "suspend":g.Mf(this.rh.experiments,"html5_progress_event_throttle_ms")>0?this.tR.YL():this.FU();break;case "playing":this.jy.K$("plev");this.DI&&!lH(this)&&(this.DI=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{lr:"videoplayer_onPlaying"})));break;case "timeupdate":H=this.mediaElement&&!this.mediaElement.getCurrentTime();f=this.mediaElement&&this.mediaElement.OG()===0;if(H&&(!this.Nk||f))return; +this.Nk=this.Nk||!!this.mediaElement.getCurrentTime();gbY(this);this.A7();if(!this.mediaElement||this.mediaElement.e3()!==z)return;this.publish("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(this.mediaElement.WP().length>0&&this.mediaElement.Ux().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.xv)return;this.V("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.OG()>2||!this.mediaElement.isSeeking()&& +X$(this.mediaElement.Ux(),this.mediaElement.getCurrentTime()))&&(H=this.mediaElement.TL(),H.bh=Rm(this.mediaElement).toFixed(3),this.On("uwe",H));g.wr(this.videoData)&&this.OY&&Yq9(this.OY,this.mediaElement.getCurrentTime());break;case "resize":A4L(this);this.videoData.B&&this.videoData.B.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.kz&&g.w(this.playerState,8)&&!g.w(this.playerState,1024)&&this.getCurrentTime()===0&&g.$w){CL(this,"safari_autoplay_disabled"); +return}}if(this.mediaElement&&this.mediaElement.e3()===z){NI9(this.Sx,Q,this.OY||void 0);this.publish("videoelementevent",Q);z=this.playerState;f=this.mQ;var b=this.mediaElement;H=this.videoData.clientPlaybackNonce;var L=g.wr(this.videoData)&&this.OY?kY(this.OY):void 0;if(!g.w(z,128)){var u=z.state;b=b?b:Q.target;var X=b.getCurrentTime();if(!g.w(z,64)||Q.type!=="ended"&&Q.type!=="pause"){L=L||b.getDuration();L=b.isEnded()||X>1&&Math.abs(X-L)<1.1;var v=Q.type==="pause"&&b.isEnded();X=Q.type==="ended"|| +Q.type==="waiting"||Q.type==="timeupdate"&&!g.w(z,4)&&!hd(f,X);if(v||L&&X)b.LT()>0&&b.e3()&&(u=14);else switch(Q.type){case "error":zE(b)&&(u|=128);break;case "pause":g.w(z,256)?(u^=256)||(u=64):g.w(z,32)||g.w(z,2)||g.w(z,4)||(u=4,g.w(z,1)&&g.w(z,8)&&(u|=1));break;case "playing":X=u;u=(u|8)&-1093;X&4?(u|=1,fx(f,b,!0)):hd(f,b.getCurrentTime())&&(u&=-2);g.w(z,1)&&fx(f,b)&&(u|=1);break;case "seeking":u|=16;g.w(z,8)&&(u|=1);u&=-3;break;case "seeked":u&=-17;fx(f,b,!0);break;case "waiting":g.w(z,2)||(u|= +1);fx(f,b);break;case "timeupdate":X=g.w(z,16),L=g.w(z,4),(g.w(z,8)||X)&&!L&&hd(f,b.getCurrentTime())&&(u=8),fx(f,b)&&(u|=1)}}f=u;u=null;f&128&&(u=Q.target,b=zE(u),X=1,b?(b==="capability.changed"&&(X=2),L="GENERIC_WITHOUT_LINK",v=u.TL(),v.mediaElem="1",/AUDIO_RENDERER/.test(u.q8())&&(L="HTML5_AUDIO_RENDERER_ERROR"),u={errorCode:b,errorMessage:g.WE[L]||"",oP:L,Fd:Oh(v),zE:X,cpn:z.WS?z.WS.cpn:""}):u=null,u&&(u.cpn=H));z=bC(z,f,u)}!g.w(this.playerState,1)&&g.w(z,1)&&J4c(this,"evt"+Q.type);this.zq(z)}}}; +g.S.xi5=function(Q){Q=Q.Z.availability==="available";Q!==this.qZ&&(this.qZ=Q,this.publish("airplayavailabilitychange"))}; +g.S.z9$=function(){var Q=(0,g.IE)(),z=this.mediaElement.oJ();this.On("airplay",{ia:z});!z&&!isNaN(this.HK)&&Q-this.HK<2E3||(this.HK=Q,z!==this.oJ()&&(Q=this.visibility,Q.Z!==z&&(Q.Z=z,Q.Ox()),this.On("airplay",{rbld:z}),this.w5()),this.publish("airplayactivechange"))}; +g.S.Hn=function(Q){if(this.xv){var z=this.xv,H=z.D,f=z.getCurrentTime(),b=Date.now()-H.U;H.U=NaN;H.On("sdai",{adfetchdone:Q,d:b});Q&&!isNaN(H.Y)&&H.B!==3&&cA(H.xv,f,H.Y,H.S);H.policy.S?H.L=NaN:H.D=NaN;a8(H,4,H.B===3?"adfps":"adf");Tc(z)}}; +g.S.gF=function(){g.$7(this.Jo);this.sA.stop();this.videoData.L3=!0;this.rh.X2=!0;this.rh.EY=0;var Q=this.yF;if(Q.videoData.B){var z=Q.aj.S,H=Q.videoData.B.Rj;z.B.has(H)&&(z.B.delete(H),Qq(z))}Q.Z.stop();this.sM();g.w(this.playerState,8)&&this.zq(uC(this.playerState,65));this.aU=!1;AdY(this.JZ());g.Re(this.ph);this.publish("playbackstarted");(Q=g.Kn("yt.scheduler.instance.clearPriorityThreshold"))?Q():b0(0,0)}; +g.S.sM=function(){var Q=this.sV.Iq(),z={},H={};!Kj("pbs",this.jy.timerName)&&Io.measure&&Io.getEntriesByName&&(Io.getEntriesByName("mark_nr")[0]?f7L("mark_nr"):f7L());Q.videoId&&(z.videoId=Q.videoId);Q.clientPlaybackNonce&&!this.V("web_player_early_cpn")&&(z.clientPlaybackNonce=Q.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(H.isPausedOnLoad=!0);H.itag=Q.B?Number(Q.B.itag):-1;Q.d4&&(H.preloadType=String(this.mU?2:1));z.liveStreamMode=CrY[jn(Q)];z.playerInfo=H;this.jy.infoGel(z); +if(this.xv){Q=this.xv.timing;window&&window.performance&&window.performance.getEntriesByName&&(Q.L&&(z=window.performance.getEntriesByName(Q.L),z.length&&(z=z[0],Q.tick("vri",z.fetchStart),Q.tick("vdns",z.domainLookupEnd),Q.tick("vreq",z.requestStart),Q.tick("vrc",z.responseEnd))),Q.B&&(z=window.performance.getEntriesByName(Q.B),z.length&&(z=z[0],Q.tick("ari",z.fetchStart),Q.tick("adns",z.domainLookupEnd),Q.tick("areq",z.requestStart),Q.tick("arc",z.responseEnd))));Q=Q.ticks;for(var f in Q)Q.hasOwnProperty(f)&& +this.jy.tick(f,Q[f])}}; +g.S.FN=function(Q,z,H){Q=(Q+(this.Kv===3?.3:0))/z;z=Math.floor(Q*4);z>this.Kv&&(this.On("vpq",{q:z,cpn:H||this.videoData.clientPlaybackNonce,ratio:Q.toFixed(3)}),this.Kv=z)}; +g.S.B3=function(){this.Kv=-1}; +g.S.A7=function(Q){var z=this;Q=Q===void 0?!1:Q;if(this.mediaElement&&this.videoData){Gqp(this.Sx,this.isPlaying());var H=this.getCurrentTime();!this.xv||g.w(this.playerState,4)&&g.NY(this.videoData)||g.w(this.playerState,32)&&uE(this.videoData)||i9L(this.xv,H);this.V("html5_ssap_pacf_qoe_ctmp")&&this.playerType===2&&this.FN(H,this.videoData.lengthSeconds);H>5&&(this.Sx.D=H);var f=g.ff();f?g.DR.xF(this.Lb):g.Gr(this.Lb);var b=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!b||zI(this.videoData))&& +!g.w(this.playerState,128)){var L=function(){if(z.mediaElement&&!g.w(z.playerState,128)){z.rh.vz()&&N3J(z,"pfx");var u=z.getCurrentTime();z.V("html5_buffer_underrun_transition_fix")&&(u-=z.ex());var X=Rm(z.mediaElement),v=g.w(z.playerState,8),y=hd(z.mQ,u),q=cTv(z.mQ,u,(0,g.IE)(),X);v&&y?z.zq(uC(z.playerState,1)):v&&q?(v=z.getDuration(),y=MY(z.videoData),v&&Math.abs(v-u)<1.1?(z.On("setended",{ct:u,bh:X,dur:v,live:y}),z.mediaElement.FD()?(z.logger.debug("seek to 0 because of looping"),z.seekTo(0,{lr:"videoplayer_loop", +seekSource:37})):z.x7()):(z.playerState.isBuffering()||J4c(z,"progress_fix"),z.zq(Lx(z.playerState,1)))):(v&&!y&&!q&&u>0&&(v=(Date.now()-z.YA)/1E3,y=z.getDuration(),u>y-1&&z.On("misspg",{t:u.toFixed(2),d:y.toFixed(2),r:v.toFixed(2),bh:X.toFixed(2)})),z.playerState.isPaused()&&z.playerState.isBuffering()&&Rm(z.mediaElement)>5&&z.zq(uC(z.playerState,1)));z.A7()}}; +this.mediaElement.WP().length===0?this.Lb=f?g.DR.pE(L,100):g.gR(L,100):this.Lb=f?g.DR.pE(L,500):g.gR(L,500)}this.videoData.iT=H;this.OY&&this.OY.r5();!Q&&this.isPlaying()&&$b_(this);nYJ(this.i7,this.ZY,this.aB(),this.isBackground())&&SW(this);this.publish("progresssync",this,Q);b&&zI(this.videoData)&&this.publish("onVideoProgress",this,this.getCurrentTime())}}; +g.S.yhh=function(){this.VN("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; +g.S.nf=function(){return this.JZ().nf()}; +g.S.G9=function(){return this.xv?this.xv.G9():gm(this.rh.schedule,!0)}; +g.S.zq=function(Q){if(!g.Xn(this.playerState,Q)){this.logger.debug(function(){return"Setting state "+Q.toString()}); +var z=new g.tT(Q,this.playerState);this.playerState=Q;IY8(this);var H=!this.iS.length;this.iS.push(z);var f=this.mediaElement&&this.mediaElement.isSeeking();f=z.oldState.state===8&&!f;g.pp(z,1)&&f&&g.w(this.playerState,8)&&!g.w(this.playerState,64)&&this.xv&&(SCY(this.xv),this.mediaElement&&Rm(this.mediaElement)>=5&&EY6(this.i7,this.ZY)&&SW(this));(f=g.Mf(this.rh.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.w(Q,1)&&(g.w(Q,8)||g.w(Q,16))?this.GM.start(f):this.GM.stop();(Ex(z,8)<0|| +g.pp(z,1024))&&this.sA.stop();!g.pp(z,8)||this.videoData.L3||g.w(z.state,1024)||this.sA.start();g.w(z.state,8)&&Ex(z,16)<0&&!g.w(z.state,32)&&!g.w(z.state,2)&&this.playVideo();g.w(z.state,2)&&Iq(this.videoData)&&(this.wx(this.getCurrentTime()),this.A7(!0));g.pp(z,2)&&(this.Gc(!0),this.rh.vz()&&this.V("html5_sabr_parse_live_metadata_playback_boundaries")&&uE(this.videoData)&&this.videoData.Z&&(f={minst:""+this.videoData.Z.W0,cminst:""+(this.videoData.Z.jx()+this.ex()),maxst:""+this.videoData.Z.eN, +hts:""+this.videoData.Z.wh,cmaxst:""+(this.videoData.Z.jA()+this.ex())},this.On("sabrSeekableBoundaries",f)));g.pp(z,128)&&this.Iv();this.videoData.Z&&this.videoData.isLivePlayback&&!this.Qr&&(Ex(z,8)<0?bxZ(this.videoData.Z):g.pp(z,8)&&this.videoData.Z.resume());g_a(this.Sx,z);rdc(this.JZ(),z);if(H&&!this.Sm())try{for(var b=g.n(this.iS),L=b.next();!L.done;L=b.next()){var u=L.value;wLY(this.gP,u);this.publish("statechange",u)}}finally{this.iS.length=0}}}; +g.S.zz=function(){this.jy.tick("qoes")}; +g.S.B4=function(){this.Sx.B4()}; +g.S.Pm=function(Q,z,H,f){a:{var b=this.yF;f=f===void 0?"LICENSE":f;H=H.substring(0,256);var L=JI(z);Q==="drm.keyerror"&&this.IB&&this.IB.B.keys.length>1&&b.D<96&&(Q="drm.sessionlimitexhausted",L=!1);if(L)if(b.videoData.B&&b.videoData.B.video.isHdr())z3n(b,Q);else{if(b.HI.VN(Q,z,f,H),d5A(b,{detail:H}))break a}else b.h7(Q,{detail:H});Q==="drm.sessionlimitexhausted"&&(b.On("retrydrm",{sessionLimitExhausted:1}),b.D++,obL(b.HI))}}; +g.S.T4v=function(){var Q=this,z=g.Mf(this.rh.experiments,"html5_license_constraint_delay"),H=fF();z&&H?(z=new g.lp(function(){Q.ye();qp(Q)},z),g.W(this,z),z.start()):(this.ye(),qp(this))}; +g.S.xj=function(Q){this.publish("heartbeatparams",Q)}; +g.S.XS=function(Q){this.On("keystatuses",t1Y(Q));var z="auto",H=!1;this.videoData.B&&(z=this.videoData.B.video.quality,H=this.videoData.B.video.isHdr());if(this.V("html5_drm_check_all_key_error_states")){var f=E19(z,H);f=Xj(Q)?pG6(Q,f):Q.D.includes(f)}else{a:{z=E19(z,H);for(f in Q.Z)if(Q.Z[f].status==="output-restricted"){var b=Q.Z[f].type;if(z===""||b==="AUDIO"||z===b){f=!0;break a}}f=!1}f=!f}if(this.V("html5_enable_vp9_fairplay")){if(H)if(Q.Y){var L;if((L=this.IB)==null?0:Pj(L.Z))if((H=this.IB)== +null)H=0;else{z=L=void 0;b=g.n(H.B.values());for(var u=b.next();!u.done;u=b.next())u=u.value,L||(L=jbv(u,"SD")),z||(z=jbv(u,"AUDIO"));H.wS({sd:L,audio:z});H=L==="output-restricted"||z==="output-restricted"}else H=!f;if(H){this.On("drm",{dshdr:1});z3n(this.yF);return}}else{this.videoData.qW||(this.videoData.qW=!0,this.On("drm",{dphdr:1}),this.lL(!0));return}var X;if((X=this.IB)==null?0:Pj(X.Z))return}else if(X=Q.Y&&f,H&&!X){z3n(this.yF);return}f||pG6(Q,"AUDIO")&&pG6(Q,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"), +Q=t1Y(Q),this.zU?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.V("html5_report_fatal_drm_restricted_error_killswitch")||this.VN("drm.keyerror",2,void 0,"info."+Q)):(this.zU=!0,this.h7(new oj("qoe.restart",Object.assign({},{retrydrm:1},Q))),SW(this),obL(this)))}; +g.S.gNh=function(){if(!this.videoData.L3&&this.mediaElement&&!this.isBackground()){var Q="0";this.mediaElement.OG()>0&&Rm(this.mediaElement)>=5&&this.videoData.L&&this.videoData.L.Z&&(this.zq(Lx(this.playerState,1)),J4c(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),Q="1");IY8(this);var z=this.videoData.L;Q={restartmsg:Q,mfmt:!H7(this.videoData),mdrm:!(!(z&&z.videoInfos&&z.videoInfos.length&&z.videoInfos[0].AM)||this.IB),mfmtinfo:!this.videoData.B,prerolls:this.l7()?this.Nj.join(","): +"0"};if(this.IB){z=this.IB;if(z.B.size<=0){var H="ns;";z.U||(H+="nr;");z=H+="ql."+z.L.length}else z=t1Y(z.B.values().next().value),z=Oh(z);Q.drmp=z}var f;Object.assign(Q,((f=this.xv)==null?void 0:f.TL())||{});var b;Object.assign(Q,((b=this.mediaElement)==null?void 0:b.TL())||{});this.JZ().h7("qoe.start15s",Oh(Q));this.publish("loadsofttimeout")}}; +g.S.wx=function(Q){this.videoData.lengthSeconds!==Q&&(this.videoData.lengthSeconds=Q,qp(this))}; +g.S.Gc=function(Q,z){var H=this;Q=Q===void 0?!1:Q;if(!this.Rw)if(Kj("att_s","player_att")||dE("att_s",void 0,"player_att"),this.V("use_rta_for_player"))(function(){var b,L,u,X;return g.B(function(v){switch(v.Z){case 1:if(!(b=Q)){v.bT(2);break}return g.Y(v,g.Ybv(),3);case 3:b=!v.B;case 2:if(b)return v.return();g.jY(v,4);L=PH9(H.JZ());if(!L)throw Error();u={};return g.Y(v,g.ALJ((u.cpn=H.videoData.clientPlaybackNonce,u.encryptedVideoId=H.videoData.videoId||"",u),3E4),6);case 6:X=v.B;if(H.Rw)throw Error(); +if(!X.challenge)throw g.ax(Error("Not sending attestation ping; no attestation challenge string")),Error();H.Rw=!0;var y=[X.challenge];X.error?y.push("r1c="+X.error):X.webResponse&&y.push("r1a="+X.webResponse);var q;((q=X.adblockReporting)==null?void 0:q.reportingStatus)!==void 0&&y.push("r6a="+X.adblockReporting.reportingStatus);var M;((M=X.adblockReporting)==null?void 0:M.broadSpectrumDetectionResult)!==void 0&&y.push("r6b="+X.adblockReporting.broadSpectrumDetectionResult);L(y.join("&"));dE("att_f", +void 0,"player_att");g.xv(v,0);break;case 4:g.OA(v),dE("att_e",void 0,"player_att"),g.$v(v)}})})().then(function(){z==null||z()}); +else{var f=new g.ISv(this.videoData);if("c1a"in f.kM&&!g.YA.isInitialized()){dE("att_wb",void 0,"player_att");this.Es===2&&Math.random()<.01&&g.ax(Error("Botguard not available after 2 attempts"));if(Q)return;if(this.Es<5){g.Re(this.XX);this.Es++;return}}(f=g.AOp(f))?(dE("att_f",void 0,"player_att"),BTn(this.JZ(),f),this.Rw=!0):dE("att_e",void 0,"player_att")}}; +g.S.qj=function(Q){Q=Q===void 0?!1:Q;if(MY(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.Vd()||g.NY(this.videoData)))Q=this.getCurrentTime();else if(g.wr(this.videoData)&&this.OY){Q=this.OY;var z=this.getCurrentTime();Q=(Q=PXA(Q,z*1E3))?(Q.AT()-Q.G1())/1E3:0}else Q=this.jA(Q);return Q}; +g.S.i4=function(){return g.wr(this.videoData)?this.videoData.jx():this.jx()}; +g.S.jA=function(Q){return this.Sx.jA(Q===void 0?!1:Q)}; +g.S.jx=function(){return this.Sx.jx()}; +g.S.ex=function(){return this.Sx?this.Sx.ex():0}; +g.S.getStreamTimeOffset=function(){return this.Sx?this.Sx.getStreamTimeOffset():0}; +g.S.Gl=function(){var Q=0;this.rh.V("web_player_ss_media_time_offset")&&(Q=this.getStreamTimeOffset()===0?this.ex():this.getStreamTimeOffset());return Q}; +g.S.setPlaybackRate=function(Q){var z;this.playbackRate!==Q&&Szp(this.i7,(z=this.videoData.L)==null?void 0:z.videoInfos)&&(this.playbackRate=Q,SW(this));this.playbackRate=Q;this.mediaElement&&this.mediaElement.setPlaybackRate(Q)}; +g.S.getPlaybackRate=function(){return this.playbackRate}; +g.S.getPlaybackQuality=function(){var Q="unknown";if(this.videoData.B&&(Q=this.videoData.B.video.quality,Q==="auto"&&this.mediaElement)){var z=this.e5();z&&z.videoHeight>0&&(Q=Uh(z.videoWidth,z.videoHeight))}return Q}; +g.S.isHdr=function(){return!!(this.videoData.B&&this.videoData.B.video&&this.videoData.B.video.isHdr())}; +g.S.Op=function(){this.JZ().Op()}; +g.S.sendVideoStatsEngageEvent=function(Q,z){var H=this.JZ();H.Z?(H=YP(H.Z,"engage"),H.wh=Q,H.send(z)):z&&z()}; +g.S.kV=function(Q){return this.JZ().kV(Q)}; +g.S.isAtLiveHead=function(Q,z){z=z===void 0?!1:z;return MY(this.videoData)&&(this.bl||z)?this.Sx.isAtLiveHead(Q):!1}; +g.S.SN=function(){var Q=this.jA(),z=this.getCurrentTime(),H;(H=!MY(this.videoData))||(H=this.Sx,H=!(H.Z&&H.Z.L));return H||this.Vd()||isNaN(Q)||isNaN(z)?0:Math.max(0,Q-z)}; +g.S.aC=function(Q){(this.bl=Q)||this.sA.stop();this.videoData.Z&&(Q?this.videoData.Z.resume():bxZ(this.videoData.Z));if(this.xv){var z=this.videoData.V("html5_disable_preload_for_ssdai_with_preroll")&&this.vG()&&this.videoData.isLivePlayback;Q&&!z?this.xv.resume():pL(this,!0)}g.w(this.playerState,2)||Q?g.w(this.playerState,512)&&Q&&this.zq(uC(this.playerState,512)):this.zq(Lx(this.playerState,512));z=this.JZ();z.qoe&&(z=z.qoe,g.$P(z,g.nD(z.provider),"stream",[Q?"A":"I"]))}; +g.S.Hm=function(Q){Q={n:Q.name,m:Q.message};this.JZ().h7("player.exception",Oh(Q))}; +g.S.tT=fn(28);g.S.Ct=fn(57);g.S.C4=function(Q){this.JZ().C4(Q)}; +g.S.yT=function(Q){this.JZ().yT(Q)}; +g.S.l3=function(Q){this.JZ().l3(Q)}; +g.S.Zs=fn(34);g.S.CA=fn(40);g.S.I8=function(Q){this.JZ().I8(Q)}; +g.S.y7=function(){this.On("hidden",{},!0)}; +g.S.RR=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; +g.S.qm=function(){return this.xv?this.xv.qm():!0}; +g.S.setLoop=function(Q){this.loop=Q;this.mediaElement&&!g.oT(this.rh)&&this.mediaElement.setLoop(Q)}; +g.S.FD=function(){return this.mediaElement&&!g.oT(this.rh)?this.mediaElement.FD():this.loop}; +g.S.yZ=function(Q){this.On("timestamp",{o:Q.toString()});this.Sx.yZ(Q)}; +g.S.Pc=function(Q){this.jy.tick(Q)}; +g.S.GS=function(Q){return this.jy.GS(Q)}; +g.S.K$=function(Q){this.jy.K$(Q)}; +g.S.On=function(Q,z,H){H=H===void 0?!1:H;this.JZ().On(Q,z,H)}; +g.S.b3=function(Q,z,H){H=H===void 0?!1:H;this.JZ().On(Q,z,H)}; +g.S.h7=function(Q){this.JZ().h7(Q.errorCode,Oh(Q.details));Q=Q.errorCode;if(this.videoData.isLivePlayback&&(Q==="qoe.longrebuffer"||Q==="qoe.slowseek")||Q==="qoe.restart"){Q=this.xv?Oy_(this.xv.videoTrack):{};var z,H;this.On("lasoe",Object.assign(this.xv?Oy_(this.xv.audioTrack):{},(z=this.vI)==null?void 0:(H=z.Z)==null?void 0:H.P6()));var f,b;this.On("lvsoe",Object.assign(Q,(f=this.vI)==null?void 0:(b=f.B)==null?void 0:b.P6()))}}; +g.S.o$=function(Q,z,H){this.JZ().o$(Q,z,H)}; +g.S.HR=function(Q,z,H,f,b,L,u,X){var v;if((v=this.videoData.Z)!=null&&v.isLive){var y=z.playerType===2?z:Q,q=Q.videoData.videoId,M=z.videoData.videoId;if(q&&M){v=this.JZ();if(v.qoe){var C=v.qoe,t=Q.cpn,E=z.cpn,G=y.videoData.UY,x=C.provider.videoData.clientPlaybackNonce,J=C.provider.videoData.videoId,I=E!==x&&M!==J;x=t!==x&&q!==J;C.reportStats();C.adCpn&&C.adCpn!==t||(C.adCpn=x?t:"",C.Ze=x?q:"",C.adFormat=x?G:void 0,oy(C,2,L?4:b?2:0,E,M,f),C.reportStats(),C.adCpn=I?E:"",C.Ze=I?M:"",C.adFormat=I?G: +void 0,oy(C,2,L?5:b?3:1,t,q,H),C.reportStats())}H=Q.cpn;if(v.L.has(H)){if(b=v.L.get(H),BL(b,!0).send(),sg(b),H!==v.provider.videoData.clientPlaybackNonce){jyu(b);var r;(r=v.Z)==null||nPY(r);v.L.delete(H)}}else v.tN=v.provider.videoData.clientPlaybackNonce,v.tN&&v.Z&&(v.L.set(v.tN,v.Z),BL(v.Z).send(),sg(v.Z));r=z.cpn;y=y.videoData;f-=this.Gl();if(v.L.has(r)){f=v.L.get(r);var U=f.L&&isNaN(f.S)?rT(f):NaN;f=$J8(f,!1);isNaN(U)||(f.Y=U);f.send()}else f=a49(v,v.provider,y,f),v.L.set(r,f),FRk(f,new g.tT(Lx(new g.HR, +8),new g.HR)),pL9(f),(U=v.Z)==null||sg(U);v.tN=r;this.V("html5_unify_csi_server_stitched_transition_logging")?GBu(Q.cpn,z.cpn,this.videoData.clientPlaybackNonce,z.videoData,u,void 0,X):(v=this.jy,f=this.videoData.clientPlaybackNonce,U=z.videoData,Q=(Q.cpn===f?"video":"ad")+"_to_"+(z.cpn===f?"video":"ad"),f={},U.j&&(f.cttAuthInfo={token:U.j,videoId:U.videoId}),u&&(f.startTime=u),DA(Q,f),g.WC({targetVideoId:U.videoId,targetCpn:z.cpn,isSsdai:!0},Q),v.rh.V("html5_enable_ssdai_transition_with_only_enter_cuerange")? +u||CA(X,Q):CA(X,Q))}}else this.logger.Z(360717806,"SSTEvent for nonSS")}; +g.S.yn=function(){var Q=this.sV,z=Q.Kd;Q.Kd=[];return z}; +g.S.NU=function(Q){this.videoData.kL=!0;this.h7(new oj("sabr.fallback",Q));this.lL(!0)}; +g.S.m6=function(Q,z){this.videoData.Db=!0;if(z===void 0||z)this.h7(new oj("qoe.restart",Q)),this.lL(!0);this.videoData.OZ()&&this.V("html5_reload_caption_on_ssdai_fallback")&&this.sV.j9()}; +g.S.UL=function(Q){this.On("sdai",{aftimeout:Q});this.h7(new oj("ad.fetchtimeout",{timeout:Q}))}; +g.S.gK=function(Q,z){this.On("timelineerror",Q);Q=new oj("dai.timelineerror",Q);z?this.VN("dai.timelineerror",1,"RETRYABLE_ERROR",Oh(Q.details)):this.h7(Q)}; +g.S.B0=function(){return g.nD(this.JZ().provider)}; +g.S.getPlayerSize=function(){return this.nx.getPlayerSize()}; +g.S.Oq=function(){return this.nx.Oq()}; +g.S.vB=function(){return this.jy}; +g.S.gx=function(){return this.sV.gx()}; +g.S.getVolume=function(){return this.sV.getVolume()}; +g.S.Sd=function(){return this.sV.Sd()}; +g.S.isMuted=function(){return this.sV.isMuted()}; +g.S.eC=function(){return this.sV.eC()}; +g.S.SF=function(){this.Qr=!0}; +g.S.V=function(Q){return this.rh.V(Q)}; +g.S.us=function(Q,z,H,f,b){this.On("xvt",{m:Q,g:z?1:0,tt:H?1:0,np:f?1:0,c:b})}; +g.S.Lj=function(){var Q;(Q=this.xv)==null||Q.resume()}; +g.S.vG=function(){return g.TY(this.Nj,"ad")}; +g.S.U7=function(){var Q=this.getCurrentTime(),z=Q-this.ex();var H=this.mediaElement?yA(this.mediaElement.Ux()):0;H=Math.floor(Math.max(H-z,0))+100;var f;if(!this.V("html5_ssdai_disable_seek_to_skip")&&((f=this.xv)==null?0:f.zo(z,this.jA())))return this.On("sdai",{skipad:1,ct:z.toFixed(3),adj:0}),!0;var b;return((b=this.xv)==null?0:b.U7(z,H))?(this.On("sdai",{skipad:1,ct:z.toFixed(3),adj:H.toFixed(3)}),uE(this.videoData)&&this.xv.seek(z+H,{seekSource:89,lr:"videoplayer_skipServerStitchedAd"}),AzZ(this.Sx, +Q),!0):!1}; +g.S.vz=function(){return this.rh.vz()}; +g.S.tj=function(){if(this.V("html5_generate_content_po_token"))return this.videoData.Fn||"";this.sV.V0();return this.rh.h$||""}; +g.S.bR=function(){if(this.videoData.videoId)return this.videoData.OM}; +g.S.Ki=function(){return this.videoData.videoId}; +g.S.kU=function(){return this.sV.Pp}; +g.S.NS=function(){return this.aU}; +g.S.Ll=function(){return this.sV.Ll()}; +g.S.iU=function(Q,z){this.Sx.iU(Q,z)}; +g.S.J1=function(){this.Sx.J1()}; +g.S.aX=function(Q,z){var H=this.V("html5_generate_content_po_token")?this.videoData:void 0;this.sV.aX(Q,z,H)}; +g.S.gk=function(Q,z){var H;(H=this.xv)==null||H.gk(Q,z)}; +g.S.mj=function(){var Q=this.AB();return!!Q&&Q.mj()}; +g.S.t$=function(){return this.OY}; +g.S.BR=function(Q,z){this.JZ().BR(Q,z)}; +g.S.T0=function(){return this.JZ().T0()}; +g.S.g5=function(){return this.videoData.R5}; +g.S.PU=function(){return this.sV.PU()}; +g.S.QS=function(){return this.sV.QS(this)}; +g.S.MI=function(){this.FH=!0}; +g.S.R0=function(){return this.xz}; +g.S.i5=function(Q){var z;(z=this.xv)==null||z.i5(Q)}; +g.S.Y8=function(){var Q;(Q=this.xv)==null||Q.Y8()};g.p(r4v,e1);g.p(sOp,e1);g.S=sOp.prototype;g.S.seekToChapterWithAnimation=function(Q){var z=this;if(g.pR(this.api)&&!(Q<0)){var H=this.api.getVideoData(),f=H.r7;if(f&&Q=0)return;z=~z;g.Lr(this.items,z,0,Q);Sz(this.menuItems.element,Q.element,z)}Q.subscribe("size-change",this.Hy,this);this.menuItems.publish("size-change")}; +g.S.nA=function(Q){Q.unsubscribe("size-change",this.Hy,this);this.Sm()||(g.lR(this.items,Q),this.menuItems.element.removeChild(Q.element),this.menuItems.publish("size-change"))}; +g.S.Hy=function(){this.menuItems.publish("size-change")}; +g.S.focus=function(){for(var Q=0,z=0;z1&&g.B9(this)}; +g.S.Ty=function(){Xpa(this);this.LH&&(u6Z(this),g.FL(this.element,this.size))}; +g.S.R6=function(){var Q=this.Z.pop();SOv(this,Q,this.Z[this.Z.length-1],!0)}; +g.S.kP=function(Q){if(!Q.defaultPrevented)switch(Q.keyCode){case 27:this.fH();Q.preventDefault();break;case 37:this.Z.length>1&&this.R6();Q.preventDefault();break;case 39:Q.preventDefault()}}; +g.S.focus=function(){this.Z.length&&this.Z[this.Z.length-1].focus()}; +g.S.zv=function(){g.WG.prototype.zv.call(this);this.j&&this.j.dispose();this.Y&&this.Y.dispose()};g.p(P9,g.rI);P9.prototype.open=function(Q,z){this.initialize(Q.items)&&this.ir(z,!!z)}; +P9.prototype.initialize=function(Q){g.Y_(this.Z6);if(Q===void 0||Q.length===0)return!1;var z=Q.length;Q=g.n(Q);for(var H=Q.next();!H.done;H=Q.next())this.md(H.value,z--);return!0}; +P9.prototype.md=function(Q,z){Q.menuNavigationItemRenderer?qOk(this,Q.menuNavigationItemRenderer,z):Q.menuServiceItemRenderer&&MOk(this,Q.menuServiceItemRenderer,z)};g.p(ai,Np);g.S=ai.prototype;g.S.eW=function(Q){Q.target!==this.dismissButton.element&&Q.target!==this.overflowButton.element&&(this.XM(),this.onClickCommand&&this.K.F$("innertubeCommand",this.onClickCommand))}; +g.S.XE=function(){this.enabled=!1;this.U.hide()}; +g.S.vp=function(){return!!this.Z&&this.enabled}; +g.S.onVideoDataChange=function(Q,z){this.lG(z);if(this.Z){this.Ax();a:if(!this.isCounterfactual){var H,f,b;this.banner.update({title:(H=this.Z)==null?void 0:H.title,subtitle:(f=this.Z)==null?void 0:f.subtitle,metadata:(b=this.Z)==null?void 0:b.metadataText});var L;this.onClickCommand=g.K((L=this.Z)==null?void 0:L.onTap,cT);var u;if(Q=g.K((u=this.Z)==null?void 0:u.onOverflow,cT))this.Y=g.K(Q,$Im);var X;if((X=this.Z)==null?0:X.thumbnailImage){var v,y;u=((v=this.Z)==null?void 0:(y=v.thumbnailImage)== +null?void 0:y.sources)||[];if(u.length===0)break a;this.thumbnailImage.update({url:u[0].url})}else{var q;if((q=this.Z)==null?0:q.thumbnailIconName){var M;this.thumbnailIcon.update({icon:(M=this.Z)==null?void 0:M.thumbnailIconName})}}var C;this.shouldShowOverflowButton=!((C=this.Z)==null||!C.shouldShowOverflowButton);var t;this.shouldHideDismissButton=!((t=this.Z)==null||!t.shouldHideDismissButton)}var E;this.banner.element.setAttribute("aria-label",((E=this.Z)==null?void 0:E.a11yLabel)||"");var G; +this.iT=(G=this.Z)==null?void 0:G.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;tO_(this)}}; +g.S.Crv=function(){this.isVisible=!0;tO_(this)}; +g.S.ug5=function(){this.isVisible=!1;tO_(this)}; +g.S.S_=function(){Np.prototype.S_.call(this);this.B&&this.K.logVisibility(this.banner.element,this.isVisible)}; +g.S.XM=function(){Np.prototype.XM.call(this,!1);this.B&&this.K.logClick(this.banner.element)}; +g.S.M1=function(Q){this.j||(this.j=new P9(this.K),g.W(this,this.j));var z,H;if((z=this.Y)==null?0:(H=z.menu)==null?0:H.menuRenderer)this.j.open(this.Y.menu.menuRenderer,Q.target),Q.preventDefault()}; +g.S.lG=function(){}; +g.S.Ax=function(){}; +g.S.zv=function(){this.K.Ys("suggested_action_view_model");Np.prototype.zv.call(this)};g.p(Uk,ai); +Uk.prototype.lG=function(Q){var z,H,f;this.productUpsellSuggestedActionViewModel=g.K((z=Q.getWatchNextResponse())==null?void 0:(H=z.playerOverlays)==null?void 0:(f=H.playerOverlayRenderer)==null?void 0:f.suggestedActionViewModel,cCB);var b;if((b=this.productUpsellSuggestedActionViewModel)==null?0:b.content){var L;this.Z=g.K((L=this.productUpsellSuggestedActionViewModel)==null?void 0:L.content,gTu)}var u,X;if(this.B=!!((u=this.productUpsellSuggestedActionViewModel)==null?0:(X=u.loggingDirectives)==null? +0:X.trackingParams)){var v,y;this.K.setTrackingParams(this.banner.element,((v=this.productUpsellSuggestedActionViewModel)==null?void 0:(y=v.loggingDirectives)==null?void 0:y.trackingParams)||null)}var q;this.isCounterfactual=!((q=this.productUpsellSuggestedActionViewModel)==null||!q.isCounterfactualServing)}; +Uk.prototype.Ax=function(){var Q=[],z,H=g.n(((z=this.productUpsellSuggestedActionViewModel)==null?void 0:z.ranges)||[]);for(z=H.next();!z.done;z=H.next()){var f=z.value;f&&(z=Number(f.startTimeMilliseconds),f=Number(f.endTimeMilliseconds),isNaN(z)||isNaN(f)||Q.push(new g.fi(z,f,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.K.UZ(Q)};g.p(Ez8,e1);g.p(c9,e1);c9.prototype.onVideoDataChange=function(Q,z){var H=this;if(!K9(z)&&(Q==="newdata"&&nzu(this),this.B&&Q==="dataloaded")){var f;CE(fv(this.api.C(),(f=this.api.getVideoData())==null?void 0:g.W7(f)),function(b){var L=jCa(b);L&&(L=gzp(H,H.Z||L))&&H.api.setAudioTrack(L,!0);H.L&&(H.L=!1,xg_(H,b))})}}; +c9.prototype.Vk=function(){var Q=this;if(g.oT(this.api.C())){var z,H=g.HV(this.api.C(),(z=this.api.getVideoData())==null?void 0:g.W7(z));return CE(X_(H),function(f){var b=cG();ij(b,f);return Q.api.Vk(b)})}return X_(this.api.Vk())};g.p(g.hz,g.mh);g.S=g.hz.prototype;g.S.open=function(){g.sk(this.kt,this.B)}; +g.S.RJ=function(Q){OUa(this);var z=this.options[Q];z&&(z.element.setAttribute("aria-checked","true"),this.UV(this.Z5(Q)),this.L=Q)}; +g.S.wz=function(Q){g.Y_(this.B);for(var z={},H=!1,f=0;f=0?this.Z.playbackRate:1}catch(Q){return 1}}; +g.S.setPlaybackRate=function(Q){this.getPlaybackRate()!==Q&&(this.Z.playbackRate=Q);return Q}; +g.S.FD=function(){return this.Z.loop}; +g.S.setLoop=function(Q){this.Z.loop=Q}; +g.S.canPlayType=function(Q,z){return this.Z.canPlayType(Q,z)}; +g.S.isPaused=function(){return this.Z.paused}; +g.S.isSeeking=function(){return this.Z.seeking}; +g.S.isEnded=function(){return this.Z.ended}; +g.S.qN=function(){return this.Z.muted}; +g.S.qA=function(Q){Bt();this.Z.muted=Q}; +g.S.WP=function(){return this.Z.played||L3([],[])}; +g.S.Ux=function(){try{var Q=this.Z.buffered}catch(z){}return Q||L3([],[])}; +g.S.MS=function(){return this.Z.seekable||L3([],[])}; +g.S.Jf=function(){var Q=this.Z;return Q.getStartDate?Q.getStartDate():null}; +g.S.getCurrentTime=function(){return this.Z.currentTime}; +g.S.setCurrentTime=function(Q){this.Z.currentTime=Q}; +g.S.getDuration=function(){return this.Z.duration}; +g.S.load=function(){var Q=this.Z.playbackRate;try{this.Z.load()}catch(z){}this.Z.playbackRate=Q}; +g.S.pause=function(){this.Z.pause()}; +g.S.play=function(){var Q=this.Z.play();if(!Q||!Q.then)return null;Q.then(void 0,function(){}); +return Q}; +g.S.OG=function(){return this.Z.readyState}; +g.S.LT=function(){return this.Z.networkState}; +g.S.JF=function(){return this.Z.error?this.Z.error.code:null}; +g.S.q8=function(){return this.Z.error?this.Z.error.message:""}; +g.S.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.Z instanceof window.HTMLVideoElement&&this.Z.getVideoPlaybackQuality)return this.Z.getVideoPlaybackQuality();if(this.Z){var Q=this.Z,z=Q.webkitDroppedFrameCount;if(Q=Q.webkitDecodedFrameCount)return{droppedVideoFrames:z||0,totalVideoFrames:Q}}return{}}; +g.S.oJ=function(){return!!this.Z.webkitCurrentPlaybackTargetIsWireless}; +g.S.bf=function(){return!!this.Z.webkitShowPlaybackTargetPicker()}; +g.S.togglePictureInPicture=function(){var Q=this.Z,z=window.document;window.document.pictureInPictureEnabled?this.Z!==z.pictureInPictureElement?Q.requestPictureInPicture():z.exitPictureInPicture():sh()&&Q.webkitSetPresentationMode(Q.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; +g.S.Wr=function(){var Q=this.Z;return new g.Er(Q.offsetLeft,Q.offsetTop)}; +g.S.getSize=function(){return g.xe(this.Z)}; +g.S.setSize=function(Q){g.FL(this.Z,Q)}; +g.S.getVolume=function(){return this.Z.volume}; +g.S.setVolume=function(Q){Bt();this.Z.volume=Q}; +g.S.UD=function(Q){this.S[Q]||(this.Z.addEventListener(Q,this.listener),this.S[Q]=this.listener)}; +g.S.setAttribute=function(Q,z){this.Z.setAttribute(Q,z)}; +g.S.removeAttribute=function(Q){this.Z.removeAttribute(Q)}; +g.S.hasAttribute=function(Q){return this.Z.hasAttribute(Q)}; +g.S.jG=fn(67);g.S.pR=fn(69);g.S.ix=fn(71);g.S.Jc=fn(73);g.S.Bd=function(){return $Q(this.Z)}; +g.S.jZ=function(Q){g.X9(this.Z,Q)}; +g.S.IR=function(Q){return g.Ei(this.Z,Q)}; +g.S.sb=function(){return g.vx(document.body,this.Z)}; +g.S.audioTracks=function(){var Q=this.Z;if("audioTracks"in Q)return Q.audioTracks}; +g.S.zv=function(){for(var Q=g.n(Object.keys(this.S)),z=Q.next();!z.done;z=Q.next())z=z.value,this.Z.removeEventListener(z,this.S[z]);eP.prototype.zv.call(this)}; +g.S.Sr=function(Q){this.Z.disableRemotePlayback=Q};g.p(Ri,g.m);g.p(zj,g.m);zj.prototype.show=function(){g.m.prototype.show.call(this);this.Jh();this.Yv.V("html5_enable_moving_s4n_window")&&g.oT(this.Yv.C())&&this.N()}; +zj.prototype.hide=function(){g.m.prototype.hide.call(this);this.delay.stop();this.D.stop()}; +zj.prototype.Jh=function(){var Q=(0,g.IE)(),z=aHY(this.Yv);Qn(this.Z,z.bandwidth_samples);Qn(this.Y,z.network_activity_samples);Qn(this.L,z.live_latency_samples);Qn(this.B,z.buffer_health_samples);var H={};z=g.n(Object.entries(z));for(var f=z.next();!f.done;f=z.next()){var b=g.n(f.value);f=b.next().value;b=b.next().value;this.U[f]!==b&&(H[f]=" "+String(b));this.U[f]=b}this.update(H);Q=(0,g.IE)()-Q>25?5E3:500;this.delay.start(Q)}; +zj.prototype.N=function(){this.j?(this.position+=1,this.position>15&&(this.j=!1)):(--this.position,this.position<=0&&(this.j=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.D.start(2E4)};g.p(iUn,e1);g.p(HE,g.h);HE.prototype.Z=function(){var Q=(0,g.IE)()-this.startTime;Q=Qthis.D[Q])&&(this.Z=Q,QYp(this))}; +g.S.onCueRangeExit=function(Q){var z=R7Y(this,Q);z&&this.Z===Q&&this.api.F$("innertubeCommand",z);this.clearTimeout();this.Z=void 0}; +g.S.onTimeout=function(Q){this.Z!==void 0&&(Q==null?void 0:Q.cueRangeId)===this.Z&&(Q=R7Y(this,this.Z))&&this.api.F$("innertubeCommand",Q)}; +g.S.LS=function(Q){this.B=Q}; +g.S.qV=function(){QYp(this);this.B=void 0}; +g.S.setTimeout=function(Q){var z=this,H=Number(Q==null?void 0:Q.maxVisibleDurationMilliseconds);H&&(this.clearTimeout(),this.S=setTimeout(function(){z.onTimeout(Q)},H))}; +g.S.clearTimeout=function(){this.S&&clearTimeout(this.S);this.S=void 0;this.Y=!1}; +g.S.zv=function(){this.timelyActions=this.B=this.Z=this.videoId=void 0;this.D={};this.NG();this.clearTimeout();e1.prototype.zv.call(this)};g.p(fCA,e1);var $D={},tk6=($D[1]="pot_ss",$D[2]="pot_sf",$D[3]="pot_se",$D[4]="pot_xs",$D[5]="pot_xf",$D[6]="pot_xe",$D),E2Y=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.p(SH,e1);SH.prototype.zv=function(){this.j&&(g.$7(this.j),this.j=void 0);e1.prototype.zv.call(this)}; +SH.prototype.V0=function(){(this.Z?!this.Z.isReady():this.B)&&vE(this)}; +SH.prototype.cU=function(Q,z,H){var f=this;if(LVa(Q)){var b=H||"",L;if((L=this.Z)==null?0:L.isReady())z=yn(this,b),ufp(Q,z);else{var u=new g.gB;z.push(u.promise);this.D.promise.then(function(){var X=yn(f,b);ufp(Q,X);u.resolve()})}}}; +SH.prototype.W2=function(Q){var z=this;if(this.Z||this.B)Q.Fn=yn(this,Q.videoId),this.Z&&!this.Z.isReady()&&(this.L=new Ts,this.D.promise.then(function(){z.jy.GS("pot_if");Q.Fn=yn(z,Q.videoId)}))};g.p(n2A,e1);g.p(qb,g.h);qb.prototype.Z=function(){for(var Q=g.n(g.rc.apply(0,arguments)),z=Q.next();!z.done;z=Q.next())(z=z.value)&&this.features.push(z)}; +qb.prototype.zv=function(){for(var Q=this.features.length-1;Q>=0;Q--)this.features[Q].dispose();this.features.length=0;g.h.prototype.zv.call(this)};Mb.prototype.YC=function(){this.B=(0,g.IE)()}; +Mb.prototype.reset=function(){this.Z=this.B=NaN}; +Mb.prototype.XT=function(Q,z){if(Q.clientPlaybackNonce&&!isNaN(this.Z)){if(Math.random()<.01){z=z?"pbp":"pbs";var H={startTime:this.Z};Q.j&&(H.cttAuthInfo={token:Q.j,videoId:Q.videoId});DA("seek",H);g.WC({clientPlaybackNonce:Q.clientPlaybackNonce},"seek");isNaN(this.B)||hN("pl_ss",this.B,"seek");hN(z,(0,g.IE)(),"seek")}this.reset()}};g.S=g29.prototype;g.S.reset=function(){US(this.timerName)}; +g.S.tick=function(Q,z){hN(Q,z,this.timerName)}; +g.S.GS=function(Q){return Vv(Q,this.timerName)}; +g.S.K$=function(Q){OH(Q,void 0,this.timerName)}; +g.S.infoGel=function(Q){g.WC(Q,this.timerName)};g.p(jY6,g.vf);g.S=jY6.prototype;g.S.Yr=function(Q){return this.loop||!!Q||this.index+1=0}; +g.S.setShuffle=function(Q){this.shuffle=Q;Q=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var z=0;z0)||PE(this,1,!0)}; +g.S.oY=function(){this.j=!0;this.Z.DS(this.S);this.S=this.Z.X(document,"mouseup",this.K6)}; +g.S.K6=function(){this.j=!1;PE(this,8,!1);this.Z.DS(this.S);this.S=this.Z.X(this.target,"mousedown",this.oY)}; +g.S.e1=function(Q){if(Q=(Q=Q.changedTouches)&&Q[0])this.L3=Q.identifier,this.Z.DS(this.N),this.N=this.Z.X(this.target,"touchend",this.ju,void 0,!0),PE(this,1024,!0)}; +g.S.ju=function(Q){if(Q=Q.changedTouches)for(var z=0;z1280||L>720)if(b=H.MP("maxresdefault.jpg"))break;if(f>640||L>480)if(b=H.MP("maxresdefault.jpg"))break; +if(f>320||L>180)if(b=H.MP("sddefault.jpg")||H.MP("hqdefault.jpg")||H.MP("mqdefault.jpg"))break;if(b=H.MP("default.jpg"))break}g.Tt(z)&&(z=new Image,z.addEventListener("load",function(){Xba()}),z.src=b?b:"",this.api.vB().tick("ftr")); +this.j.style.backgroundImage=b?"url("+b+")":""};g.p(g.iN,g.m);g.iN.prototype.resize=function(){}; +g.iN.prototype.B=function(Q){var z=this;this.L=!1;ZJk(this);var H=Q.oP,f=this.api.C();H!=="GENERIC_WITHOUT_LINK"||f.j?H==="TOO_MANY_REQUESTS"?(f=this.api.getVideoData(),this.UV(DY(this,"TOO_MANY_REQUESTS_WITH_LINK",f.ma(),void 0,void 0,void 0,!1))):H!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||f.j?this.api.C().V("html5_enable_bandaid_error_screen")&&H==="HTML5_SPS_UMP_STATUS_REJECTED"&&!f.j?(f=f.hostLanguage,Q="//support.google.com/youtube?p=videoError",f&&(Q=g.de(Q,{hl:f})),this.UV(DY(this,"HTML5_SPS_UMP_STATUS_REJECTED", +Q))):this.api.C().V("enable_adb_handling_in_sabr")&&H==="BROWSER_OR_EXTENSION_ERROR"&&!f.j?(f=f.hostLanguage,Q="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",f&&(Q=g.de(Q,{hl:f})),this.UV(DY(this,"BROWSER_OR_EXTENSION_ERROR",Q))):this.UV(g.h4(Q.errorMessage)):this.UV(DY(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(Q=f.hostLanguage,H="//support.google.com/youtube/?p=player_error1",Q&&(H=g.de(H, +{hl:Q})),this.UV(DY(this,"GENERIC_WITH_LINK_AND_CPN",H,!0)),f.gT&&!f.D&&gIv(this,function(L){if(g.uo(L,z.api,!Vq(z.api.C()))){L={as3:!1,html5:!0,player:!0,cpn:z.api.getVideoData().clientPlaybackNonce};var u=z.api;u.g4("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:L});u.isFullscreen()&&u.toggleFullscreen()}})); +if(this.L){var b=this.Mc("ytp-error-link");b&&(this.api.createClientVe(b,this,216104),this.api.logVisibility(b,!0),gIv(this,function(){z.api.logClick(b)}))}}; +var nIY=/([^<>]+)<\/a>/;g.p(GDu,g.m);g.S=GDu.prototype;g.S.onClick=function(Q){this.innertubeCommand?(this.K.F$("innertubeCommand",this.innertubeCommand),Q.preventDefault()):g.uo(Q,this.K,!0);this.K.logClick(this.element)}; +g.S.onVideoDataChange=function(Q,z){jPJ(this,z);this.oy&&FLY(this,this.oy)}; +g.S.Su=function(Q){var z=this.K.getVideoData();this.videoId!==z.videoId&&jPJ(this,z);this.Z&&FLY(this,Q.state);this.oy=Q.state}; +g.S.ir=function(){this.D.show();this.K.publish("paidcontentoverlayvisibilitychange",!0);this.K.logVisibility(this.element,!0)}; +g.S.fH=function(){this.D.hide();this.K.publish("paidcontentoverlayvisibilitychange",!1);this.K.logVisibility(this.element,!1)};g.p(KA,g.m);KA.prototype.hide=function(){this.Z.stop();this.message.style.display="none";g.m.prototype.hide.call(this)}; +KA.prototype.onStateChange=function(Q){this.Ni(Q.state)}; +KA.prototype.Ni=function(Q){(g.w(Q,128)||this.api.NS()?0:g.w(Q,16)||g.w(Q,1))?this.Z.start():this.hide()}; +KA.prototype.B=function(){this.message.style.display="block"};g.p(Vn,g.WG);Vn.prototype.onMutedAutoplayChange=function(Q){this.L&&(Q?(xcu(this),this.ir()):(this.Z&&this.logClick(),this.fH()))}; +Vn.prototype.BU=function(Q){this.api.isMutedByMutedAutoplay()&&g.pp(Q,2)&&this.fH()}; +Vn.prototype.onClick=function(){this.api.unMute();this.logClick()}; +Vn.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.p(g.d3,g.Pt);g.S=g.d3.prototype;g.S.init=function(){var Q=this.api,z=Q.getPlayerStateObject();this.NN=Q.getPlayerSize();this.zq(z);this.GY();this.tZ();this.api.publish("basechromeinitialized",this);this.T9()&&this.api.publish("standardControlsInitialized")}; +g.S.onVideoDataChange=function(Q,z){var H=this.VH!==z.videoId;if(H||Q==="newdata"){Q=this.api;Q.isFullscreen()||(this.NN=Q.getPlayerSize());var f;((f=this.api.getVideoData(1))==null?0:g.wr(f))&&this.bF()}H&&(this.VH=z.videoId,H=this.Iz,H.De=3E3,PE(H,512,!0),this.GY());this.api.V("web_render_jump_buttons")&&z.showSeekingControls&&(this.Cz=572)}; +g.S.jBh=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; +g.S.mJ=function(){var Q=this.api.ZC()&&this.api.t_(),z=this.api.uv();return this.SV||Q||this.MX||z}; +g.S.bF=function(){var Q=!this.mJ();g.MP(this.api.getRootNode(),"ytp-menu-shown",!Q);var z;((z=this.api.getVideoData(1))==null?0:g.wr(z))&&g.MP(this.api.getRootNode(),"ytp-hide-controls",!Q)}; +g.S.zt=function(Q){try{if(!g.vx(this.api.getRootNode(),Q))return!1}catch(z){return!1}for(;Q&&!Xqv(Q);)Q=Q===this.api.getRootNode()?null:Q.parentElement||null;return!!Q}; +g.S.lw=function(Q){var z=this.api.getRootNode();g.MP(z,"ytp-autohide",Q);g.MP(z,"ytp-autohide-active",!0);this.Lk.start(Q?250:100);Q&&(this.UH=!1,g.yM(z,"ytp-touch-mode"));this.fB=!Q;this.api.lE(!Q)}; +g.S.cW=function(){var Q=this.api.getRootNode();g.MP(Q,"ytp-autohide-active",!1)}; +g.S.gsq=function(){this.ME=!0}; +g.S.U4T=function(Q){if(this.api.C().V("player_doubletap_to_seek")||this.api.C().N)this.ME=!1,this.DD&&this.DS(this.DD),this.rM===0&&w3(this,Q)?(this.DQ(),this.cV.start(),this.DD=this.X(this.api.Un(),"touchmove",this.gsq,void 0,!0)):this.cV.stop();NQ8(this)&&w3(this,Q)&&!this.api.C().N&&oIL(this);var z=this.Kn.A9();if(!g.O8(this.api.C())&&$h&&I2_(this,Q))z&&Q.preventDefault();else if(this.UH=!0,g.X9(this.api.getRootNode(),"ytp-touch-mode"),this.Iz.l9(),this.api.C().V("player_doubletap_to_seek")||this.api.C().N)if(z= +this.api.getPlayerStateObject(),!(!this.api.GZ()||g.w(z,2)&&g.Jf(this.api)||g.w(z,64))){z=Date.now()-this.KO;this.rM+=1;if(z<=350){this.TD=!0;z=this.api.getPlayerSize().width/3;var H=this.api.getRootNode().getBoundingClientRect(),f=Q.targetTouches[0].clientX-H.left;H=Q.targetTouches[0].clientY-H.top;var b=(this.rM-1)*10;f>0&&fz*2&&f=650;this.Iz.resize();g.MP(z,"ytp-fullscreen",this.api.isFullscreen());g.MP(z,"ytp-large-width-mode",H);g.MP(z,"ytp-small-mode",this.HB());g.MP(z,"ytp-tiny-mode",this.g0());g.MP(z,"ytp-big-mode",this.iW());this.n2&&this.n2.resize(Q)}; +g.S.BU=function(Q){this.zq(Q.state);this.GY()}; +g.S.kK=fn(5);g.S.v4=function(){var Q=!!this.VH&&!this.api.T1()&&!this.VZ,z=this.api.getPresentingPlayerType()===2,H=this.api.C();if(z){if(MYm&&H.V("enable_visit_advertiser_support_on_ipad_mweb"))return!1;z=IO(this.api.xt());Q&&(z&&z.player?Q=(Q=z.player.getVideoData(2))?Q.isListed&&!g.xJ(z.player.C()):!1:(Cp("showInfoBarDuringAd: this is null"),Q=!1));return Q}return Q&&(H.P5||this.api.isFullscreen()||H.dS)}; +g.S.GY=function(){var Q=this.v4();this.Up!==Q&&(this.Up=Q,g.MP(this.api.getRootNode(),"ytp-hide-info-bar",!Q))}; +g.S.zq=function(Q){var z=Q.isCued()||this.api.l7()&&this.api.getPresentingPlayerType()!==3;z!==this.isCued&&(this.isCued=z,this.bk&&this.DS(this.bk),this.bk=this.X(this.api.Un(),"touchstart",this.U4T,void 0,z));var H=this.Iz,f=Q.isPlaying()&&!g.w(Q,32)||this.api.MZ();PE(H,128,!f);H=this.Iz;f=this.api.getPresentingPlayerType()===3;PE(H,256,f);H=this.api.getRootNode();g.w(Q,2)?f=[KX.ENDED]:(f=[],g.w(Q,8)?f.push(KX.PLAYING):g.w(Q,4)&&f.push(KX.PAUSED),g.w(Q,1)&&!g.w(Q,32)&&f.push(KX.BUFFERING),g.w(Q, +32)&&f.push(KX.SEEKING),g.w(Q,64)&&f.push(KX.UNSTARTED));g.yi(this.yj,f)||(g.qP(H,this.yj),this.yj=f,g.vO(H,f));f=this.api.C();var b=g.w(Q,2);a:{var L=this.api.C();var u=L.controlsType;switch(u){case "2":case "0":L=!1;break a}L=u==="3"&&!g.w(Q,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:wd6(IO(this.api.xt())))||this.api.uv()||g.O8(L)&&this.api.getPresentingPlayerType()===2?!1:!0}g.MP(H,"ytp-hide-controls",!L);g.MP(H,"ytp-native-controls",f.controlsType==="3"&&!z&&!b&&!this.MX);g.w(Q, +128)&&!g.O8(f)?(this.n2||(this.n2=new g.iN(this.api),g.W(this,this.n2),g.BG(this.api,this.n2.element,4)),this.n2.B(Q.WS),this.n2.show()):this.n2&&(this.n2.dispose(),this.n2=null)}; +g.S.F9=function(){return this.api.ZC()&&this.api.t_()?(this.api.zy(!1,!1),!0):this.api.T1()?(g.NW(this.api,!0),!0):!1}; +g.S.onMutedAutoplayChange=function(Q){this.MX=Q;this.bF()}; +g.S.iW=function(){return!1}; +g.S.HB=function(){return!this.iW()&&(this.api.getPlayerSize().width=0&&z.left>=0&&z.bottom>z.top&&z.right>z.left?z:null;z=this.size;Q=Q.clone();z=z.clone();f&&(u=z,b=5,(b&65)==65&&(Q.x=f.right)&&(b&=-2),(b&132)==132&&(Q.y=f.bottom)&&(b&=-5),Q.xf.right&&(u.width=Math.min(f.right-Q.x,L+u.width-f.left),u.width=Math.max(u.width,0))),Q.x+u.width>f.right&&b&1&&(Q.x=Math.max(f.right-u.width,f.left)),Q.yf.bottom&&(u.height=Math.min(f.bottom-Q.y,L+u.height-f.top),u.height=Math.max(u.height,0))),Q.y+u.height>f.bottom&&b&4&&(Q.y=Math.max(f.bottom-u.height,f.top)));f=new g.XL(0,0,0,0);f.left=Q.x;f.top=Q.y;f.width= +z.width;f.height=z.height;g.Z5(this.element,new g.Er(f.left,f.top));g.YQ(this.D);this.D.X(Da(this),"contextmenu",this.poc);this.D.X(this.K,"fullscreentoggled",this.onFullscreenToggled);this.D.X(this.K,"pageTransition",this.YP)}; +g.S.poc=function(Q){if(!Q.defaultPrevented){var z=Jq(Q);g.vx(this.element,z)||this.fH();this.K.C().disableNativeContextMenu&&Q.preventDefault()}}; +g.S.onFullscreenToggled=function(){this.fH();RGY(this)}; +g.S.YP=function(){this.fH()};g.p(bs,g.m);bs.prototype.onClick=function(){var Q=this,z,H,f,b;return g.B(function(L){if(L.Z==1)return z=Q.api.C(),H=Q.api.getVideoData(),f=Q.api.getPlaylistId(),b=z.getVideoUrl(H.videoId,f,void 0,!0),g.Y(L,H08(Q,b),2);L.B&&zNu(Q);Q.api.logClick(Q.element);g.$v(L)})}; +bs.prototype.Jh=function(){this.updateValue("icon",{G:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",w4:!0,J:"ytp-svg-fill",T:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3 c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.updateValue("title-attr","Copy link");this.visible=Q5c(this);g.MP(this.element,"ytp-copylink-button-visible",this.visible); +this.Ho(this.visible);this.tooltip.UX();this.api.logVisibility(this.element,this.visible&&this.S)}; +bs.prototype.pH=function(Q){g.m.prototype.pH.call(this,Q);this.api.logVisibility(this.element,this.visible&&Q)}; +bs.prototype.zv=function(){g.m.prototype.zv.call(this);g.yM(this.element,"ytp-copylink-button-visible")};g.p(LU,g.m);LU.prototype.show=function(){g.m.prototype.show.call(this);g.Re(this.B)}; +LU.prototype.hide=function(){this.D.stop();this.L=0;this.Mc("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.yM(this.element,"ytp-chapter-seek");g.yM(this.element,"ytp-time-seeking");g.m.prototype.hide.call(this)}; +LU.prototype.U_=function(Q,z,H,f){this.L=Q===this.Y?this.L+f:f;this.Y=Q;var b=Q===-1?this.U:this.N;b&&this.K.logClick(b);this.j?this.B.stop():g.ze(this.B);this.D.start();this.element.setAttribute("data-side",Q===-1?"back":"forward");var L=3*this.K.Un().getPlayerSize().height;b=this.K.Un().getPlayerSize();b=b.width/3-3*b.height;this.Z.style.width=L+"px";this.Z.style.height=L+"px";Q===1?(this.Z.style.left="",this.Z.style.right=b+"px"):Q===-1&&(this.Z.style.right="",this.Z.style.left=b+"px");var u=L* +2.5;L=u/2;var X=this.Mc("ytp-doubletap-ripple");X.style.width=u+"px";X.style.height=u+"px";Q===1?(Q=this.K.Un().getPlayerSize().width-z+Math.abs(b),X.style.left="",X.style.right=Q-L+"px"):Q===-1&&(Q=Math.abs(b)+z,X.style.right="",X.style.left=Q-L+"px");X.style.top="calc((33% + "+Math.round(H)+"px) - "+L+"px)";if(H=this.Mc("ytp-doubletap-ripple"))H.classList.remove("ytp-doubletap-ripple"),H.classList.add("ytp-doubletap-ripple");fBY(this,this.j?this.L:f)};g.p(b0L,Np);g.S=b0L.prototype;g.S.vA=function(Q){this.jm||(this.jm=new P9(this.K),g.W(this,this.jm));var z,H;if((z=this.ZJ)==null?0:(H=z.menu)==null?0:H.menuRenderer)this.jm.open(this.ZJ.menu.menuRenderer,Q.target),Q.preventDefault()}; +g.S.vp=function(){return!!this.Z}; +g.S.pj=function(){return!!this.Z}; +g.S.eW=function(Q){Q.target===this.overflowButton.element?Q.preventDefault():(this.gT&&this.K.F$("innertubeCommand",this.gT),this.XM(!1))}; +g.S.XE=function(){this.XM(!0);var Q,z;((Q=this.Z)==null?0:(z=Q.bannerData)==null?0:z.dismissedStatusKey)&&this.EY.push(this.Z.bannerData.dismissedStatusKey);this.WJ()}; +g.S.T5=function(){this.WJ();yI(this)}; +g.S.HA3=function(Q){var z=this,H;if(Q.id!==((H=this.Z)==null?void 0:H.identifier)){this.WJ();H=g.n(this.De);for(var f=H.next();!f.done;f=H.next()){var b=f.value,L=void 0,u=void 0;if((f=(L=b)==null?void 0:(u=L.bannerData)==null?void 0:u.itemData)&&b.identifier===Q.id){u=L=void 0;var X=((L=b)==null?void 0:(u=L.bannerData)==null?void 0:u.dismissedStatusKey)||"";if(this.EY.includes(X))break;this.Z=b;this.banner.element.setAttribute("aria-label",f.accessibilityLabel||"");f.trackingParams&&(this.D=!0,this.K.setTrackingParams(this.badge.element, +f.trackingParams));this.U.show();Jz(this);this.yl.Ho(!f.stayInApp);pyn(this);ulJ(this);vp(this);this.gT=g.K(f.onTapCommand,cT);if(b=g.K(f.menuOnTap,cT))this.ZJ=g.K(b,$Im);b=void 0;this.banner.update({thumbnail:(b=(f.thumbnailSources||[])[0])==null?void 0:b.url,title:f.productTitle,price:f.priceReplacementText?f.priceReplacementText:f.price,salesOriginalPrice:v5k(this),priceDropReferencePrice:yon(this),promotionText:XyY(this),priceA11yText:qpJ(this),affiliateDisclaimer:f.affiliateDisclaimer,vendor:M6Y(this)}); +X=u=L=b=void 0;((b=f)==null?0:(L=b.hiddenProductOptions)==null?0:L.showDropCountdown)&&((u=f)==null?0:(X=u.hiddenProductOptions)==null?0:X.dropTimestampMs)&&(this.Xa=new g.lp(function(){E5Y(z)},1E3),this.yl.hide(),this.countdownTimer.show(),E5Y(this)); +this.K.V("web_player_enable_featured_product_banner_exclusives_on_desktop")&&LHc(this)&&(this.Wz=new g.lp(function(){Sp9(z)},1E3),Sp9(this))}}}}; +g.S.WJ=function(){this.Z&&(this.Z=void 0,this.e0())}; +g.S.onVideoDataChange=function(Q,z){var H=this;Q==="dataloaded"&&yI(this);var f,b,L;Q=g.K((f=z.getWatchNextResponse())==null?void 0:(b=f.playerOverlays)==null?void 0:(L=b.playerOverlayRenderer)==null?void 0:L.productsInVideoOverlayRenderer,ZrB);this.overflowButton.show();this.dismissButton.hide();var u=Q==null?void 0:Q.featuredProductsEntityKey;this.trendingOfferEntityKey=Q==null?void 0:Q.trendingOfferEntityKey;this.De.length||(t6J(this,u),vp(this));var X;(X=this.ys)==null||X.call(this);this.ys=g.z_.subscribe(function(){t6J(H, +u);vp(H)})}; +g.S.zv=function(){yI(this);pyn(this);ulJ(this);Np.prototype.zv.call(this)};g.p($_p,g.m);$_p.prototype.onClick=function(){this.K.logClick(this.element,this.B)};g.p(j5k,g.WG);g.S=j5k.prototype;g.S.show=function(){g.WG.prototype.show.call(this);this.K.publish("infopaneldetailvisibilitychange",!0);this.K.logVisibility(this.element,!0);FHA(this,!0)}; +g.S.hide=function(){g.WG.prototype.hide.call(this);this.K.publish("infopaneldetailvisibilitychange",!1);this.K.logVisibility(this.element,!1);FHA(this,!1)}; +g.S.getId=function(){return this.D}; +g.S.xf=function(){return this.itemData.length}; +g.S.onVideoDataChange=function(Q,z){if(z){var H,f,b,L;this.update({title:((H=z.Uu)==null?void 0:(f=H.title)==null?void 0:f.content)||"",body:((b=z.Uu)==null?void 0:(L=b.bodyText)==null?void 0:L.content)||""});var u;Q=((u=z.Uu)==null?void 0:u.trackingParams)||null;this.K.setTrackingParams(this.element,Q);u=g.n(this.itemData);for(Q=u.next();!Q.done;Q=u.next())Q.value.dispose();this.itemData=[];var X;if((X=z.Uu)==null?0:X.ctaButtons)for(z=g.n(z.Uu.ctaButtons),X=z.next();!X.done;X=z.next())if(X=g.K(X.value, +C4T))X=new $_p(this.K,X,this.Z),X.EZ&&(this.itemData.push(X),X.Gv(this.items))}}; +g.S.zv=function(){this.hide();g.WG.prototype.zv.call(this)};g.p(o5A,g.m);g.S=o5A.prototype;g.S.onVideoDataChange=function(Q,z){O08(this,z);this.oy&&NuJ(this,this.oy)}; +g.S.p6=function(Q){var z=this.K.getVideoData();this.videoId!==z.videoId&&O08(this,z);NuJ(this,Q.state);this.oy=Q.state}; +g.S.Y5=function(Q){(this.D=Q)?this.hide():this.Z&&this.show()}; +g.S.Ed=function(){this.B||this.ir();this.showControls=!0}; +g.S.Ju=function(){this.B||this.fH();this.showControls=!1}; +g.S.ir=function(){var Q;if((Q=this.K)==null?0:Q.V("embeds_web_enable_info_panel_sizing_fix")){var z;Q=(z=this.K)==null?void 0:z.getPlayerSize();z=Q.width<380;var H;Q=Q.height<(((H=this.K)==null?0:H.isEmbedsShortsMode())?400:280);var f,b;if((((f=this.K)==null?0:f.getPlayerStateObject().isCued())||((b=this.K)==null?0:g.w(b.getPlayerStateObject(),1024)))&&z&&Q)return}this.Z&&!this.D&&(this.L.show(),this.K.publish("infopanelpreviewvisibilitychange",!0),this.K.logVisibility(this.element,!0))}; +g.S.fH=function(){this.Z&&!this.D&&(this.L.hide(),this.K.publish("infopanelpreviewvisibilitychange",!1),this.K.logVisibility(this.element,!1))}; +g.S.zuT=function(){this.B=!1;this.showControls||this.fH()};var ofB={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(ofB).reduce(function(Q,z){Q[ofB[z]]=z;return Q},{}); +var JcY={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(JcY).reduce(function(Q,z){Q[JcY[z]]=z;return Q},{}); +var Nqu={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(Nqu).reduce(function(Q,z){Q[Nqu[z]]=z;return Q},{});var Iuu,Acu;Iuu=[{option:"#fff",text:"White"},{option:"#ff0",text:"Yellow"},{option:"#0f0",text:"Green"},{option:"#0ff",text:"Cyan"},{option:"#00f",text:"Blue"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Red"},{option:"#080808",text:"Black"}];Acu=[{option:0,text:qg(0)},{option:.25,text:qg(.25)},{option:.5,text:qg(.5)},{option:.75,text:qg(.75)},{option:1,text:qg(1)}]; +g.EO=[{option:"fontFamily",text:"Font family",options:[{option:1,text:"Monospaced Serif"},{option:2,text:"Proportional Serif"},{option:3,text:"Monospaced Sans-Serif"},{option:4,text:"Proportional Sans-Serif"},{option:5,text:"Casual"},{option:6,text:"Cursive"},{option:7,text:"Small Capitals"}]},{option:"color",text:"Font color",options:Iuu},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:qg(.5)},{option:-1,text:qg(.75)},{option:0,text:qg(1)},{option:1,text:qg(1.5)},{option:2, +text:qg(2)},{option:3,text:qg(3)},{option:4,text:qg(4)}]},{option:"background",text:"Background color",options:Iuu},{option:"backgroundOpacity",text:"Background opacity",options:Acu},{option:"windowColor",text:"Window color",options:Iuu},{option:"windowOpacity",text:"Window opacity",options:Acu},{option:"charEdgeStyle",text:"Character edge style",options:[{option:0,text:"None"},{option:4,text:"Drop Shadow"},{option:1,text:"Raised"},{option:2,text:"Depressed"},{option:3,text:"Outline"}]},{option:"textOpacity", +text:"Font opacity",options:[{option:.25,text:qg(.25)},{option:.5,text:qg(.5)},{option:.75,text:qg(.75)},{option:1,text:qg(1)}]}];var Y$u=[27,9,33,34,13,32,187,61,43,189,173,95,79,87,67,80,78,75,70,65,68,87,83,107,221,109,219];g.p(Bu9,g.Pt);g.S=Bu9.prototype; +g.S.Lo=function(Q){Q.repeat||(this.L.Ha=!1);var z=!1,H=Q.keyCode,f=Jq(Q),b=!Q.altKey&&!Q.ctrlKey&&!Q.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||Y$u.includes(H)),L=!1,u=!1,X=this.api.C();Q.defaultPrevented?(b=!1,u=!0):X.Bc&&!this.api.isMutedByEmbedsMutedAutoplay()&&(b=!1);if(H===9)z=!0;else{if(f)switch(H){case 32:case 13:if(f.tagName==="BUTTON"||f.tagName==="A"||f.tagName==="INPUT")z=!0,b=!1;else if(b){var v=f.getAttribute("role");!v||v!=="option"&&v!=="button"&&v.indexOf("menuitem")!==0|| +(z=!0,f.click(),L=!0)}break;case 37:case 39:case 36:case 35:z=f.getAttribute("role")==="slider";break;case 38:case 40:v=f.getAttribute("role"),f=H===38?f.previousSibling:f.nextSibling,v==="slider"?z=!0:b&&(v==="option"?(f&&f.getAttribute("role")==="option"&&f.focus(),L=z=!0):v&&v.indexOf("menuitem")===0&&(f&&f.hasAttribute("role")&&f.getAttribute("role").indexOf("menuitem")===0&&f.focus(),L=z=!0))}if(b&&!L)switch(H){case 38:L=Math.min(this.api.getVolume()+5,100);lN(this.sZ,L,!1);this.api.setVolume(L); +u=L=!0;break;case 40:L=Math.max(this.api.getVolume()-5,0);lN(this.sZ,L,!0);this.api.setVolume(L);u=L=!0;break;case 36:this.api.GZ()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),u=L=!0);break;case 35:this.api.GZ()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),u=L=!0)}}z&&CU(this,!0);(z||u)&&this.Iz.l9();(L||b&&this.handleGlobalKeyDown(H,Q.shiftKey,Q.ctrlKey,Q.altKey,Q.metaKey,Q.key,Q.code,Q.repeat))&&Q.preventDefault();X.Y&&(Q={keyCode:Q.keyCode, +altKey:Q.altKey,ctrlKey:Q.ctrlKey,metaKey:Q.metaKey,shiftKey:Q.shiftKey,handled:Q.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.A$("onKeyPress",Q))}; +g.S.aO=function(Q){var z=Q.keyCode;(!this.api.V("web_player_spacebar_control_bugfix")||this.api.V("web_player_spacebar_control_bugfix")&&!this.D)&&this.handleGlobalKeyUp(z,Q.shiftKey,Q.ctrlKey,Q.altKey,Q.metaKey,Q.key,Q.code)&&Q.preventDefault()}; +g.S.handleGlobalKeyUp=function(Q,z,H,f,b,L,u){this.api.publish("keyboardserviceglobalkeyup",{keyCode:Q,shiftKey:z,ctrlKey:H,altKey:f,metaKey:b,key:L,code:u});z=!1;if(this.L.Ha)return z;(b=g.rX(this.api.xt()))&&(b=b.DW)&&b.LH&&(b.BF(Q),z=!0);switch(Q){case 9:CU(this,!0);z=!0;break;case 32:if(this.api.V("web_speedmaster_spacebar_control")&&(!this.api.V("web_player_spacebar_control_bugfix")&&!this.D||this.api.V("web_player_spacebar_control_bugfix"))&&!this.api.C().Bc){var X,v;Q=(X=this.progressBar)== +null?void 0:(v=X.B)==null?void 0:v.isEnabled;z=this.O4(Q)}break;case 39:(HK?f:H)&&this.api.V("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),X=(X=this.api.getVideoData())?X.r7:[],v=Aon(X,this.api.getCurrentTime()*1E3),v!==-1&&this.Z!=null&&(SO(this.Z,1,X[v].title),this.api.seekTo(X[v].startTime/1E3,void 0,void 0,void 0,52),z=!0))}return z}; +g.S.handleGlobalKeyDown=function(Q,z,H,f,b,L,u,X){X||(this.L.Ha=!1);var v=!1,y=this.api.C();if(y.Bc&&!this.api.isMutedByEmbedsMutedAutoplay())return v;var q=g.rX(this.api.xt());if(q&&(q=q.DW)&&q.LH)switch(Q){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:v=q.zF(Q)}y.j||v||(v=L||String.fromCharCode(Q).toLowerCase(),this.B+=v,"awesome".indexOf(this.B)===0?(v=!0,7===this.B.length&&PW6(this.api.getRootNode(),"ytp-color-party")):(this.B=v,v="awesome".indexOf(this.B)===0));if(!v&&(!this.api.isMutedByEmbedsMutedAutoplay()|| +Y$u.includes(Q))){var M=this.api.getVideoData(),C,t;q=(C=this.progressBar)==null?void 0:(t=C.B)==null?void 0:t.isEnabled;C=M?M.r7:[];t=HK?f:H;switch(Q){case 80:z&&!y.jm&&(eH(this.sZ,aEA(),"Previous"),this.api.previousVideo(),v=!0);break;case 78:z&&!y.jm&&(eH(this.sZ,Oc(),"Next"),this.api.nextVideo(),v=!0);break;case 74:this.api.GZ()&&(this.api.startSeekCsiAction(),this.Z?this.api.V("enable_key_press_seek_logging")?(v=t9(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),us(this.Z, +-1,10,v)):us(this.Z,-1,10):eH(this.sZ,{G:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",w4:!0,J:"ytp-svg-fill",T:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), +this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,73),v=!0);break;case 76:this.api.GZ()&&(this.api.startSeekCsiAction(),this.Z?this.api.V("enable_key_press_seek_logging")?(v=t9(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),us(this.Z,1,10,v)):us(this.Z,1,10):eH(this.sZ,{G:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",w4:!0,J:"ytp-svg-fill",T:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), +this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,74),v=!0);break;case 37:this.api.GZ()&&(this.api.startSeekCsiAction(),t?(t=YpA(C,this.api.getCurrentTime()*1E3),t!==-1&&this.Z!=null&&(SO(this.Z,-1,C[t].title),this.api.seekTo(C[t].startTime/1E3,void 0,void 0,void 0,53),v=!0)):(this.Z?this.api.V("enable_key_press_seek_logging")?(v=t9(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),us(this.Z,-1,5,v)):us(this.Z,-1,5):eH(this.sZ,{G:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36", +width:"100%"},W:[{G:"path",w4:!0,J:"ytp-svg-fill",T:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}), +this.api.seekBy(-5*this.api.getPlaybackRate(),void 0,void 0,71),v=!0));break;case 39:this.api.GZ()&&(this.api.startSeekCsiAction(),t?this.api.V("web_enable_keyboard_shortcut_for_timely_actions")||(t=Aon(C,this.api.getCurrentTime()*1E3),t!==-1&&this.Z!=null&&(SO(this.Z,1,C[t].title),this.api.seekTo(C[t].startTime/1E3,void 0,void 0,void 0,52),v=!0)):(this.Z!=null?this.api.V("enable_key_press_seek_logging")?(v=t9(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),us(this.Z,1,5,v)):us(this.Z, +1,5):eH(this.sZ,{G:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",w4:!0,J:"ytp-svg-fill",T:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}), +this.api.seekBy(5*this.api.getPlaybackRate(),void 0,void 0,72),v=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),lN(this.sZ,this.api.getVolume(),!1)):(this.api.mute(),lN(this.sZ,0,!0));v=!0;break;case 32:v=this.api.V("web_speedmaster_spacebar_control")?!this.api.C().jm:this.O4(q);break;case 75:v=this.O4(q);break;case 190:z?y.enableSpeedOptions&&aBZ(this)&&(v=this.api.getPlaybackRate(),this.api.setPlaybackRate(v+.25,!0),YL9(this.sZ,!1),v=!0):this.api.GZ()&&(this.step(1),v=!0);break;case 188:z? +y.enableSpeedOptions&&aBZ(this)&&(v=this.api.getPlaybackRate(),this.api.setPlaybackRate(v-.25,!0),YL9(this.sZ,!0),v=!0):this.api.GZ()&&(this.step(-1),v=!0);break;case 70:u_n(this.api)&&(this.api.toggleFullscreen().catch(function(){}),v=!0); +break;case 27:q?(this.progressBar.X7(),v=!0):this.j()&&(v=!0)}if(y.controlsType!=="3")switch(Q){case 67:g.oO(this.api.xt())&&(y=this.api.getOption("captions","track"),this.api.toggleSubtitles(),rwJ(this.sZ,!y||y&&!y.displayName),v=!0);break;case 79:pU(this,"textOpacity");break;case 87:pU(this,"windowOpacity");break;case 187:case 61:pU(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:pU(this,"fontSizeIncrement",!0,!0)}var E;z||H||f||(Q>=48&&Q<=57?E=Q-48:Q>=96&&Q<=105&&(E=Q-96));E!=null&&this.api.GZ()&& +(this.api.startSeekCsiAction(),y=this.api.getProgressState(),this.api.seekTo(E/10*(y.seekableEnd-y.seekableStart)+y.seekableStart,void 0,void 0,void 0,81),v=!0);v&&this.Iz.l9()}this.D||this.api.publish("keyboardserviceglobalkeydown",{keyCode:Q,shiftKey:z,ctrlKey:H,altKey:f,metaKey:b,key:L,code:u,repeat:X},this.L);return v}; +g.S.step=function(Q){this.api.GZ();if(this.api.getPlayerStateObject().isPaused()){var z=this.api.getVideoData().B;z&&(z=z.video)&&this.api.seekBy(Q/(z.fps||30),void 0,void 0,Q>0?77:78)}}; +g.S.O4=function(Q){if(!this.api.C().jm){var z;var H,f=(z=this.api.getVideoData())==null?void 0:(H=z.getPlayerResponse())==null?void 0:H.playabilityStatus;if(f){var b;z=((b=g.K(f.miniplayer,N7B))==null?void 0:b.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else z=!1;z&&this.api.F$("onExpandMiniplayer");Q?this.progressBar.xb():(Q=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.sZ.fR(Q),Q?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; +g.S.zv=function(){g.ze(this.S);g.Pt.prototype.zv.call(this)};g.p(g.nU,g.m);g.nU.prototype.Nt=fn(11); +g.nU.prototype.Jh=function(){var Q=this.K.C(),z=Q.L||this.K.V("web_player_hide_overflow_button_if_empty_menu")&&this.qO.isEmpty();Q=g.O8(Q)&&g.Af(this.K)&&g.w(this.K.getPlayerStateObject(),128);var H=this.K.getPlayerSize();this.visible=this.K.HB()&&!Q&&H.width>=240&&!g.HG(this.K.getVideoData())&&!z&&!this.Z&&!this.K.isEmbedsShortsMode();g.MP(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.K.UX();this.K.logVisibility(this.element,this.visible&&this.S)}; +g.nU.prototype.pH=function(Q){g.m.prototype.pH.call(this,Q);this.K.logVisibility(this.element,this.visible&&Q)}; +g.nU.prototype.zv=function(){g.m.prototype.zv.call(this);g.yM(this.element,"ytp-overflow-button-visible")};g.p(U_L,g.WG);g.S=U_L.prototype;g.S.XL=function(Q){Q=Jq(Q);g.vx(this.element,Q)&&(g.vx(this.Z,Q)||g.vx(this.closeButton,Q)||KR(this))}; +g.S.fH=function(){g.WG.prototype.fH.call(this);this.K.Lg(this.element)}; +g.S.show=function(){this.LH&&this.K.publish("OVERFLOW_PANEL_OPENED");g.WG.prototype.show.call(this);this.element.setAttribute("aria-modal","true");i0u(this,!0)}; +g.S.hide=function(){g.WG.prototype.hide.call(this);this.element.removeAttribute("aria-modal");i0u(this,!1)}; +g.S.onFullscreenToggled=function(Q){!Q&&this.A9()&&KR(this)}; +g.S.isEmpty=function(){return this.actionButtons.length===0}; +g.S.focus=function(){for(var Q=g.n(this.actionButtons),z=Q.next();!z.done;z=Q.next())if(z=z.value,z.LH){z.focus();break}};g.p(hNn,g.m);hNn.prototype.onClick=function(Q){g.uo(Q,this.api)&&this.api.playVideoAt(this.index)};g.p(WHZ,g.WG);g.S=WHZ.prototype;g.S.show=function(){g.WG.prototype.show.call(this);this.Z.X(this.api,"videodatachange",this.Z0);this.Z.X(this.api,"onPlaylistUpdate",this.Z0);this.Z0()}; +g.S.hide=function(){g.WG.prototype.hide.call(this);g.YQ(this.Z);this.updatePlaylist(null)}; +g.S.Z0=function(){this.updatePlaylist(this.api.getPlaylist());this.api.C().L&&(this.Mc("ytp-playlist-menu-title-name").removeAttribute("href"),this.L&&(this.DS(this.L),this.L=null))}; +g.S.zc=function(){var Q=this.playlist,z=Q.author,H=z?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",f={CURRENT_POSITION:String(Q.index+1),PLAYLIST_LENGTH:String(Q.getLength())};z&&(f.AUTHOR=z);this.update({title:Q.title,subtitle:g.pi(H,f),playlisturl:this.api.getVideoUrl(!0)});z=Q.B;if(z===this.D)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[Q.index];else{H=g.n(this.playlistData);for(f=H.next();!f.done;f=H.next())f.value.dispose(); +H=Q.getLength();this.playlistData=[];for(f=0;f=this.B&&!Q.L&&!z.isAd()&&!this.api.isEmbedsShortsMode()}else Q=!1;this.visible=Q;this.Ho(this.visible);g.MP(this.element,"ytp-search-button-visible",this.visible);g.MP(this.element,"ytp-show-search-title",!this.api.HB());this.api.logVisibility(this.element,this.visible&&this.S)}; +$z.prototype.pH=function(Q){g.m.prototype.pH.call(this,Q);this.api.logVisibility(this.element,this.visible&&Q)};g.p(g.jO,g.m);g.S=g.jO.prototype;g.S.Fx=fn(8);g.S.onClick=function(){var Q=this,z=this.api.C(),H=this.api.getVideoData(this.api.getPresentingPlayerType()),f=this.api.getPlaylistId();z=this.api.V("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):z.getVideoUrl(H.videoId,f,void 0,!0);if(navigator.share)try{var b=navigator.share({title:H.title,url:z});b instanceof Promise&&b.catch(function(L){Tu6(Q,L)})}catch(L){L instanceof Error&&Tu6(this,L)}else this.Z.F9(),KR(this.L,this.element,!1); +this.api.logClick(this.element)}; +g.S.Jh=function(){var Q=this.api.C(),z=this.api.isEmbedsShortsMode();g.MP(this.element,"ytp-show-share-title",g.O8(Q)&&!z);this.Z.iW()&&z?(Q=(this.api.Un().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.M2(this.element,"right",Q+"px")):z&&g.M2(this.element,"right","0px");this.updateValue("icon",{G:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",w4:!0,J:"ytp-svg-fill",T:{d:"m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z"}}]}); +this.visible=km9(this);g.MP(this.element,"ytp-share-button-visible",this.visible);this.Ho(this.visible);this.tooltip.UX();this.api.logVisibility(this.element,km9(this)&&this.S)}; +g.S.pH=function(Q){g.m.prototype.pH.call(this,Q);this.api.logVisibility(this.element,this.visible&&Q)}; +g.S.zv=function(){g.m.prototype.zv.call(this);g.yM(this.element,"ytp-share-button-visible")};g.p(lBc,g.WG);g.S=lBc.prototype;g.S.uo=function(Q){Q=Jq(Q);g.vx(this.j,Q)||g.vx(this.closeButton,Q)||KR(this)}; +g.S.fH=function(){g.WG.prototype.fH.call(this);this.tooltip.Lg(this.element);this.api.logVisibility(this.Z,!1);for(var Q=g.n(this.L),z=Q.next();!z.done;z=Q.next())z=z.value,this.api.hasVe(z.element)&&this.api.logVisibility(z.element,!1)}; +g.S.show=function(){var Q=this.LH;g.WG.prototype.show.call(this);this.Jh();Q||this.api.F$("onSharePanelOpened")}; +g.S.YYh=function(){this.LH&&this.Jh()}; +g.S.Jh=function(){var Q=this;g.X9(this.element,"ytp-share-panel-loading");g.yM(this.element,"ytp-share-panel-fail");var z=this.api.getVideoData(),H=this.api.getPlaylistId()&&this.D.checked;z.getSharePanelCommand&&kx(this.api.Vk(),z.getSharePanelCommand,{includeListId:H}).then(function(f){Q.Sm()||(g.yM(Q.element,"ytp-share-panel-loading"),QSL(Q,f))}); +z=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",z);this.updateValue("linkText",z);this.updateValue("shareLinkWithUrl",g.pi("Share link $URL",{URL:z}));vN(this.Z);this.api.logVisibility(this.Z,!0)}; +g.S.onFullscreenToggled=function(Q){!Q&&this.A9()&&KR(this)}; +g.S.focus=function(){this.Z.focus()}; +g.S.zv=function(){g.WG.prototype.zv.call(this);RNu(this)};g.p(fXv,Np);g.S=fXv.prototype;g.S.zv=function(){XlA(this);Np.prototype.zv.call(this)}; +g.S.eW=function(Q){Q.target!==this.dismissButton.element&&(this.XM(!1),this.K.F$("innertubeCommand",this.onClickCommand))}; +g.S.XE=function(){this.uT=!0;this.XM(!0);this.e0()}; +g.S.SZn=function(Q){this.Y=Q;this.e0()}; +g.S.onVideoDataChange=function(Q,z){if(Q=!!z.videoId&&this.videoId!==z.videoId)this.videoId=z.videoId,this.uT=!1,this.L3=!0,this.N=this.wh=!1,XlA(this),SjY(this,!1),this.B=this.Z=!1,xz(this),bXn(this);if(Q||!z.videoId)this.Ze=this.D=!1;var H,f;if(z==null?0:(H=z.getPlayerResponse())==null?0:(f=H.videoDetails)==null?0:f.isLiveContent)this.Ox(!1);else{var b,L,u;z=g.K((b=z.getWatchNextResponse())==null?void 0:(L=b.playerOverlays)==null?void 0:(u=L.playerOverlayRenderer)==null?void 0:u.productsInVideoOverlayRenderer, +ZrB);this.Y=this.enabled=!1;if(z){if(b=z==null?void 0:z.featuredProductsEntityKey){L=g.z_.getState().entities;var X;if((X=yd(L,"featuredProductsEntity",b))==null?0:X.productsData){this.Ox(!1);return}}this.enabled=!0;if(!this.D){var v;X=(v=z.badgeInteractionLogging)==null?void 0:v.trackingParams;(this.D=!!X)&&this.K.setTrackingParams(this.badge.element,X||null)}if(!this.Ze){var y;if(this.Ze=!((y=z.dismissButton)==null||!y.trackingParams)){var q;this.K.setTrackingParams(this.dismissButton.element,((q= +z.dismissButton)==null?void 0:q.trackingParams)||null)}}z.isContentForward&&(v=z.productsData,SjY(this,!0),bXn(this),v=uQa(this,v),y=[],v.length>0&&y.push(v[0]),v.length>1&&(q=new g.m({G:"div",J:"ytp-suggested-action-more-products-icon"}),g.W(this,q),y.push(q),y.push.apply(y,g.F(v.slice(1)))),this.j=new g.m({G:"div",W:y,J:"ytp-suggested-action-content-forward-container"}),g.W(this,this.j),this.f3.element.append(this.j.element));this.text=g.na(z.text);var M;if(v=(M=z.dismissButton)==null?void 0:M.a11yLabel)this.iT= +g.na(v);this.onClickCommand=z.onClickCommand;this.timing=z.timing;this.UZ()}bUY(this);Jz(this);this.e0()}}; +g.S.vp=function(){return!this.Y&&this.enabled&&!this.uT&&!this.K.HB()&&!this.KH&&(this.N||this.L3)}; +g.S.eQ=function(Q){Np.prototype.eQ.call(this,Q);if(this.Z||this.B)this.timing&&F6(this.timing.preview)&&(this.Z=!1,xz(this),this.B=!1,xz(this),this.K.Ys("shopping_overlay_preview_collapsed"),this.K.Ys("shopping_overlay_preview_expanded"),Q=OO(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),F6(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.K.Ys("shopping_overlay_expanded"),Q.end=this.timing.expanded.endSec*1E3),this.K.UZ([Q])), +this.wh=!0,Jz(this);xz(this)}; +g.S.Ox=function(Q){(this.N=Q)?(oi(this),Jz(this,!1)):(XlA(this),this.mq.start());this.e0()}; +g.S.UZ=function(Q){var z=this.timing;Q=(Q===void 0?0:Q)+this.K.getCurrentTime();var H=[],f=z.visible,b=z.preview;z=z.expanded;F6(f)&&(zdY(f,Q),H.push(OO(f.startSec,f.endSec,"shopping_overlay_visible")));F6(b)&&(zdY(b,Q),f=b.startSec+1,H.push(OO(b.startSec,f,"shopping_overlay_preview_collapsed")),H.push(OO(f,b.endSec,"shopping_overlay_preview_expanded")));F6(z)&&(zdY(z,Q),H.push(OO(z.startSec,z.endSec,"shopping_overlay_expanded")));this.K.UZ(H)};g.p(qja,g.m); +qja.prototype.Jh=function(){var Q=this.api.C();this.Ho(g.O8(Q)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.LH);var z=this.api.getVideoData(),H=!1;this.api.getPresentingPlayerType()===2?H=!!z.videoId&&!!z.isListed&&!!z.author&&!!z.KH&&!!z.profilePicture:g.O8(Q)&&(H=!!z.videoId&&!!z.KH&&!!z.profilePicture&&!g.HG(z)&&!Q.L&&!(Q.N&&this.api.getPlayerSize().width<200));var f=z.profilePicture;Q=g.O8(Q)?z.expandedTitle:z.author;f=f===void 0? +"":f;Q=Q===void 0?"":Q;H?(this.B!==f&&(this.Z.style.backgroundImage="url("+f+")",this.B=f),this.updateValue("channelLogoLabel",g.pi("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:Q})),g.X9(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.yM(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.Z,H&&this.S);this.api.logVisibility(this.channelName,H&&this.S);this.subscribeButton&&(this.subscribeButton.channelId=z.HG);this.updateValue("expandedTitle",z.expandedTitle)};g.p(oC,g.WG);oC.prototype.show=function(){g.WG.prototype.show.call(this);this.Z.start()}; +oC.prototype.hide=function(){g.WG.prototype.hide.call(this);this.Z.stop()}; +oC.prototype.nt=function(Q,z){Q==="dataloaded"&&((this.A5=z.A5,this.h$=z.h$,isNaN(this.A5)||isNaN(this.h$))?this.L&&(this.K.Ys("intro"),this.K.removeEventListener(g.Li("intro"),this.Y),this.K.removeEventListener(g.uc("intro"),this.j),this.K.removeEventListener("onShowControls",this.D),this.hide(),this.L=!1):(this.K.addEventListener(g.Li("intro"),this.Y),this.K.addEventListener(g.uc("intro"),this.j),this.K.addEventListener("onShowControls",this.D),Q=new g.fi(this.A5,this.h$,{priority:9,namespace:"intro"}), +this.K.UZ([Q]),this.L=!0))};g.p(J9,g.m);J9.prototype.onClick=function(){this.K.bf()}; +J9.prototype.Jh=function(){var Q=!0;g.O8(this.K.C())&&(Q=Q&&this.K.Un().getPlayerSize().width>=480);this.Ho(Q);this.updateValue("icon",this.K.oJ()?{G:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",w4:!0,T:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]}: +{G:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",w4:!0,J:"ytp-svg-fill",T:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]})};g.p(Cy_,g.m);Cy_.prototype.zv=function(){this.Z=null;g.m.prototype.zv.call(this)};g.p(Ng,g.m);Ng.prototype.onClick=function(){this.K.F$("innertubeCommand",this.B)}; +Ng.prototype.U=function(Q){Q!==this.j&&(this.update({title:Q,ariaLabel:Q}),this.j=Q);Q?this.show():this.hide()}; +Ng.prototype.N=function(){this.Z.disabled=this.B==null;g.MP(this.Z,"ytp-chapter-container-disabled",this.Z.disabled);this.A7()};g.p(IC,Ng);IC.prototype.onClickCommand=function(Q){g.K(Q,Qt)&&this.A7()}; +IC.prototype.updateVideoData=function(Q,z){var H,f,b;Q=g.K((H=z.getWatchNextResponse())==null?void 0:(f=H.playerOverlays)==null?void 0:(b=f.playerOverlayRenderer)==null?void 0:b.decoratedPlayerBarRenderer,xa);H=g.K(Q==null?void 0:Q.playerBarActionButton,g.Pc);this.K.V("web_player_updated_entrypoint")&&(this.Y=gZ(H==null?void 0:H.text));this.B=H==null?void 0:H.command;Ng.prototype.N.call(this)}; +IC.prototype.A7=function(){var Q=this.K.V("web_player_updated_entrypoint")?this.Y:"",z=this.D.Z,H,f=((H=this.K.getLoopRange())==null?void 0:H.type)==="clips";if(z.length>1&&!f){Q=this.K.getProgressState().current*1E3;H=Mg(z,Q);Q=z[H].title||"Chapters";if(H!==this.currentIndex||this.L)this.K.F$("innertubeCommand",z[H].onActiveCommand),this.currentIndex=H;this.L=!1}else this.L=!0;Ng.prototype.U.call(this,Q)};g.p(A9,g.m);A9.prototype.j=function(Q){g.w(Q.state,32)?E8u(this,this.api.HU()):this.LH&&(g.w(Q.state,16)||g.w(Q.state,1))||this.Z.hide()}; +A9.prototype.Ex=function(){var Q=this.api.getPlayerStateObject();(g.w(Q,32)||g.w(Q,16))&&plk(this)}; +A9.prototype.Y=function(){this.L=NaN;plk(this)}; +A9.prototype.hide=function(){this.B&&E8u(this,null);g.m.prototype.hide.call(this)};g.p(n8v,g.m);g.S=n8v.prototype;g.S.onClick=function(){var Q=this;if(this.K.C().KH||this.K.C().N){this.K.logClick(this.element);try{this.K.toggleFullscreen().catch(function(z){Q.Wd(z)})}catch(z){this.Wd(z)}}else KR(this.message,this.element,!0)}; +g.S.Wd=function(Q){String(Q).includes("fullscreen error")?g.ax(Q):g.PT(Q);this.FT()}; +g.S.FT=function(){this.disable();this.message.ir(this.element,!0)}; +g.S.oK=function(){Gd()===this.K.getRootNode()?this.L.start():(this.L.stop(),this.message&&this.message.hide())}; +g.S.ww=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var Q=window.screen.width*.9,z=window.screen.height*.9,H=Math.max(window.outerWidth,window.innerWidth),f=Math.max(window.outerHeight,window.innerHeight);if(H>f!==Q>z){var b=H;H=f;f=b}Q>H&&z>f&&this.FT()}}; +g.S.disable=function(){var Q=this;if(!this.message){var z=(nF(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"Full screen is unavailable. $BEGIN_LINKLearn More$END_LINK":"Your browser doesn't support full screen. $BEGIN_LINKLearn More$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.WG(this.K,{G:"div",lT:["ytp-popup","ytp-generic-popup"],T:{role:"alert",tabindex:"0"},W:[z[0],{G:"a",T:{href:"https://support.google.com/youtube/answer/6276924", +target:this.K.C().U},BI:z[2]},z[4]]},100,!0);this.message.hide();g.W(this,this.message);this.message.subscribe("show",function(H){Q.B.Hd(Q.message,H)}); +g.BG(this.K,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.Z)();this.Z=null}}; +g.S.Jh=function(){var Q=u_n(this.K),z=this.K.C().N&&this.K.getPlayerSize().width<250;this.Ho(Q&&!z);var H;((H=this.K.C())==null?0:H.V("embeds_use_parent_visibility_in_ve_logging"))?this.K.logVisibility(this.element,this.LH&&this.S):this.K.logVisibility(this.element,this.LH)}; +g.S.tB=function(Q){if(Q){var z={G:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"g",J:"ytp-fullscreen-button-corner-2",W:[{G:"path",w4:!0,J:"ytp-svg-fill",T:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{G:"g",J:"ytp-fullscreen-button-corner-3",W:[{G:"path",w4:!0,J:"ytp-svg-fill",T:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{G:"g",J:"ytp-fullscreen-button-corner-0",W:[{G:"path",w4:!0,J:"ytp-svg-fill",T:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{G:"g", +J:"ytp-fullscreen-button-corner-1",W:[{G:"path",w4:!0,J:"ytp-svg-fill",T:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};Q=g.OZ(this.K,"Exit full screen","f");this.update({"data-title-no-tooltip":"Exit full screen"});document.activeElement===this.element&&this.K.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(H){g.ax(H)})}else z={G:"svg", +T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"g",J:"ytp-fullscreen-button-corner-0",W:[{G:"path",w4:!0,J:"ytp-svg-fill",T:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{G:"g",J:"ytp-fullscreen-button-corner-1",W:[{G:"path",w4:!0,J:"ytp-svg-fill",T:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{G:"g",J:"ytp-fullscreen-button-corner-2",W:[{G:"path",w4:!0,J:"ytp-svg-fill",T:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{G:"g",J:"ytp-fullscreen-button-corner-3", +W:[{G:"path",w4:!0,J:"ytp-svg-fill",T:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},Q=g.OZ(this.K,"Full screen","f"),this.update({"data-title-no-tooltip":"Full screen"});Q=this.message?null:Q;this.update({title:Q,icon:z});this.B.xJ().UX()}; +g.S.zv=function(){this.message||((0,this.Z)(),this.Z=null);g.m.prototype.zv.call(this)}; +g.S.pH=function(Q){g.m.prototype.pH.call(this,Q);var z;((z=this.K.C())==null?0:z.V("embeds_use_parent_visibility_in_ve_logging"))&&this.K.logVisibility(this.element,this.LH&&Q)};g.p(Yz,g.m);Yz.prototype.onClick=function(){this.K.logClick(this.element);this.K.seekBy(this.Z,!0);var Q=this.Z>0?1:-1,z=Math.abs(this.Z),H=this.K.fE().J3;H&&us(H,Q,z);this.B.isActive()?this.L=!0:(Q=["ytp-jump-spin"],this.Z<0&&Q.push("backwards"),this.element.classList.add.apply(this.element.classList,g.F(Q)),g.Re(this.B))};g.p(rb,Ng);rb.prototype.onClickCommand=function(Q){g.K(Q,nTT)&&this.A7()}; +rb.prototype.updateVideoData=function(){var Q,z;this.B=(Q=ZXa(this))==null?void 0:(z=Q.onTap)==null?void 0:z.innertubeCommand;Ng.prototype.N.call(this)}; +rb.prototype.A7=function(){var Q="",z=this.D.Y,H,f=(H=ZXa(this))==null?void 0:H.headerTitle;H=f?g.na(f):"";var b;f=((b=this.K.getLoopRange())==null?void 0:b.type)==="clips";z.length>1&&!f&&(Q=this.K.getProgressState().current*1E3,b=IBk(z,Q),Q=b!=null?z[b].title:H,b!=null&&b!==this.currentIndex&&(this.K.F$("innertubeCommand",z[b].onActiveCommand),this.currentIndex=b));Ng.prototype.U.call(this,Q)};g.p(sO,g.m);sO.prototype.onClick=function(){this.K.F$("onCollapseMiniplayer");this.K.logClick(this.element)}; +sO.prototype.Jh=function(){this.visible=!this.K.isFullscreen();this.Ho(this.visible);this.K.logVisibility(this.element,this.visible&&this.S)}; +sO.prototype.pH=function(Q){g.m.prototype.pH.call(this,Q);this.K.logVisibility(this.element,this.visible&&Q)};g.p(Bp,g.m);g.S=Bp.prototype;g.S.Zb=function(Q){this.visible=Q.width>=300||this.yl;this.Ho(this.visible);this.K.logVisibility(this.element,this.visible&&this.S)}; +g.S.zah=function(){this.K.C().mq?this.K.isMuted()?this.K.unMute():this.K.mute():KR(this.message,this.element,!0);this.K.logClick(this.element)}; +g.S.onVolumeChange=function(Q){this.setVolume(Q.volume,Q.muted)}; +g.S.setVolume=function(Q,z){var H=this,f=z?0:Q/100,b=this.K.C();Q=f===0?1:Q>50?1:0;if(this.j!==Q){var L=this.wh;isNaN(L)?jS_(this,Q):DgJ(this.De,function(X){jS_(H,L+(H.j-L)*X)},250); +this.j=Q}f=f===0?1:0;if(this.D!==f){var u=this.U;isNaN(u)?FP_(this,f):DgJ(this.Ze,function(X){FP_(H,u+(H.D-u)*X)},250); +this.D=f}b.mq&&(b=g.OZ(this.K,"Mute","m"),f=g.OZ(this.K,"Unmute","m"),this.updateValue("title",z?f:b),this.update({"data-title-no-tooltip":z?"Unmute":"Mute"}),this.tooltip.UX())}; +g.S.pH=function(Q){g.m.prototype.pH.call(this,Q);this.K.logVisibility(this.element,this.visible&&Q)}; +var Gop=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",24.77," C",21.89,",",23.85," ",24,",",21.17," ",24,",",18," C",24,",",14.83," ",21.89,",",12.15," ",19,",",11.29," L",19,",",11.29," Z"],$iL=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",26.77," C",23.01,",",25.86," ",26,",",22.28," ",26,",",18," C",26,",",13.72," ", +23.01,",",10.14," ",19,",",9.23," L",19,",",11.29," Z"];g.p(g.Pp,g.m);g.S=g.Pp.prototype;g.S.onStateChange=function(Q){this.Ni(Q.state);var z;((z=this.K.C())==null?0:z.V("embeds_use_parent_visibility_in_ve_logging"))&&this.K.logVisibility(this.element,this.LH&&this.S)}; +g.S.Ni=function(Q){var z=g.NY(this.K.getVideoData()),H=!1;Q.isOrWillBePlaying()?Q=z?4:2:g.w(Q,2)?(Q=3,H=z):Q=1;this.element.disabled=H;if(this.Z!==Q){z=null;switch(Q){case 2:z=g.OZ(this.K,"Pause","k");this.update({"data-title-no-tooltip":"Pause"});break;case 3:z="Replay";this.update({"data-title-no-tooltip":"Replay"});break;case 1:z=g.OZ(this.K,"Play","k");this.update({"data-title-no-tooltip":"Play"});break;case 4:z="Stop live playback",this.update({"data-title-no-tooltip":"Stop live playback"})}Q=== +3?this.update({title:z,icon:xip(Q)}):(this.update({title:z}),(z=xip(Q))&&this.Z&&this.Z!==3?VOc(this.transition,this.element,z):this.updateValue("icon",z));this.tooltip.UX();this.Z=Q}}; +g.S.onVideoDataChange=function(){g.MP(this.element,"ytp-play-button-playlist",g.Af(this.K))}; +g.S.O4=function(Q){this.K.logClick(this.element);if(this.K.getPlayerStateObject().isOrWillBePlaying())this.K.pauseVideo();else{if(this.K.isMinimized()&&this.K.getPlayerStateObject().isCued()){var z={},H;if((H=this.K.getVideoData())==null?0:H.j)z.cttAuthInfo={token:this.K.getVideoData().j,videoId:this.K.getVideoData().videoId};DA("direct_playback",z);this.K.vB().timerName="direct_playback"}else this.Z!==3||this.K.C().V("html5_no_csi_on_replay")||t4(this.K.vB());this.K.playVideo()}this.K.isMinimized()&& +(Q==null?void 0:Q.type)==="click"&&this.element.blur()}; +g.S.pH=function(Q){g.m.prototype.pH.call(this,Q);var z;((z=this.K.C())==null?0:z.V("embeds_use_parent_visibility_in_ve_logging"))&&this.K.logVisibility(this.element,this.LH&&Q)};g.p(g.aC,g.m);g.S=g.aC.prototype;g.S.onVideoDataChange=function(){o8L(this);this.D&&(this.DS(this.D),this.D=null);this.videoData=this.K.getVideoData(1);if(this.playlist=this.K.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.D=this.X(this.K,"progresssync",this.IV);this.L=JgA(this);OXv(this);this.PL(this.K.Un().getPlayerSize())}; +g.S.PL=function(Q){Q=Q===void 0?this.K.Un().getPlayerSize():Q;var z,H=((z=this.K.getLoopRange())==null?void 0:z.type)==="clips";Q=(g.Af(this.K)||this.Z&&g.PG(this.K)&&!this.K.V("web_hide_next_button")||NxL(this))&&!H&&(this.Z||Q.width>=400);this.Ho(Q);this.K.logVisibility(this.element,Q)}; +g.S.onClick=function(Q){this.K.logClick(this.element);var z=!0;this.Y?z=g.uo(Q,this.K):Q.preventDefault();z&&(this.Z&&this.K.getPresentingPlayerType()===5?this.K.publish("ytoprerollinternstitialnext"):this.Z?(t4(this.K.vB()),this.K.publish("playlistnextbuttonclicked",this.element),this.K.nextVideo(!0)):this.L?this.K.seekTo(0):(t4(this.K.vB()),this.K.publish("playlistprevbuttonclicked",this.element),this.K.previousVideo(!0)))}; +g.S.IV=function(){var Q=JgA(this);Q!==this.L&&(this.L=Q,OXv(this))}; +g.S.zv=function(){this.B&&(this.B(),this.B=null);o8L(this);g.m.prototype.zv.call(this)};g.p(AgJ,g.m);g.S=AgJ.prototype;g.S.FL=function(Q){this.zM(Q.pageX);this.xk(Q.pageX+Q.deltaX);Yj_(this)}; +g.S.zM=function(Q){this.Ze=Q-this.jm}; +g.S.xk=function(Q){Q-=this.jm;!isNaN(this.Ze)&&this.thumbnails.length>0&&(this.U=Q-this.Ze,this.thumbnails.length>0&&this.U!==0&&(this.L=this.N+this.U,Q=aXJ(this,this.L),this.L<=this.Z/2&&this.L>=PyJ(this)?(this.api.seekTo(Q,!1,void 0,void 0,25),g.M2(this.L3,"transform","translateX("+(this.L-this.Z/2)+"px)"),IX6(this,Q)):this.L=this.N))}; +g.S.N1=function(){this.wh&&(this.wh.JU=!0);var Q=(0,g.IE)()-this.En<300;if(Math.abs(this.U)<5&&!Q){this.En=(0,g.IE)();Q=this.Ze+this.U;var z=this.Z/2-Q;this.zM(Q);this.xk(Q+z);Yj_(this);this.api.logClick(this.j)}Yj_(this)}; +g.S.cE=function(){UO(this,this.api.getCurrentTime())}; +g.S.play=function(Q){this.api.seekTo(aXJ(this,this.L),void 0,void 0,void 0,26);this.api.playVideo();Q&&this.api.logClick(this.playButton)}; +g.S.onExit=function(Q){this.api.seekTo(this.mq,void 0,void 0,void 0,63);this.api.playVideo();Q&&this.api.logClick(this.dismissButton)}; +g.S.tZ=function(Q,z){this.jm=Q;this.Z=z;UO(this,this.api.getCurrentTime())}; +g.S.enable=function(){this.isEnabled||(this.isEnabled=!0,this.mq=this.api.getCurrentTime(),IX6(this,this.mq),g.MP(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.f3=this.X(this.element,"wheel",this.FL),this.logVisibility(this.isEnabled))}; +g.S.disable=function(){this.isEnabled=!1;this.hide();g.MP(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.f3&&this.DS(this.f3);this.logVisibility(this.isEnabled)}; +g.S.reset=function(){this.disable();this.D=[];this.yl=!1}; +g.S.logVisibility=function(Q){this.api.logVisibility(this.element,Q);this.api.logVisibility(this.j,Q);this.api.logVisibility(this.dismissButton,Q);this.api.logVisibility(this.playButton,Q)}; +g.S.zv=function(){for(;this.B.length;){var Q=void 0;(Q=this.B.pop())==null||Q.dispose()}g.m.prototype.zv.call(this)}; +g.p(rgY,g.m);g.p(sSA,g.m);g.p(UiA,g.m);g.p(cp,g.m);cp.prototype.ai=function(Q){return Q==="PLAY_PROGRESS"?this.N:Q==="LOAD_PROGRESS"?this.Y:Q==="LIVE_BUFFER"?this.j:this.L};hd6.prototype.update=function(Q,z,H,f){H=H===void 0?0:H;this.width=z;this.D=H;this.Z=z-H-(f===void 0?0:f);this.position=g.y4(Q,H,H+this.Z);this.L=this.position-H;this.B=this.L/this.Z};g.p(WPJ,g.m);g.p(g.Wp,g.tB);g.S=g.Wp.prototype; +g.S.Xm=function(){var Q=!1,z=this.api.getVideoData();if(!z)return Q;this.api.Ys("timedMarkerCueRange");VR9(this);for(var H=g.n(z.ZJ),f=H.next();!f.done;f=H.next()){f=f.value;var b=void 0,L=(b=this.mq[f])==null?void 0:b.markerType;b=void 0;var u=(b=this.mq[f])==null?void 0:b.markers;if(!u)break;if(L==="MARKER_TYPE_TIMESTAMPS"){Q=g.n(u);for(L=Q.next();!L.done;L=Q.next()){b=L.value;L=new WPJ;u=void 0;L.title=((u=b.title)==null?void 0:u.simpleText)||"";L.timeRangeStartMillis=Number(b.startMillis);L.Z= +Number(b.durationMillis);var X=u=void 0;L.onActiveCommand=(X=(u=b.onActive)==null?void 0:u.innertubeCommand)!=null?X:void 0;edZ(this,L)}lXc(this,this.Y);Q=this.Y;L=this.cq;b=[];u=null;for(X=0;Xv&&(u.end=v);v=roc(v,v+q);b.push(v);u=v;L[v.id]=Q[X].onActiveCommand}}this.api.UZ(b);this.h$=this.mq[f];Q=!0}else if(L==="MARKER_TYPE_HEATMAP"){f=this.mq[f];q=y=b=v=X=u=void 0;if(f&& +f.markers){L=(b=(q=f.markersMetadata)==null?void 0:(y=q.heatmapMetadata)==null?void 0:y.minHeightDp)!=null?b:0;b=(u=(v=f.markersMetadata)==null?void 0:(X=v.heatmapMetadata)==null?void 0:X.maxHeightDp)!=null?u:60;u=this.Z.length;X=null;for(v=0;v=q&&E<=M&&y.push(t)}b>0&&(this.wh.style.height= +b+"px");q=this.D[v];M=y;t=L;var G=b,x=v===0;x=x===void 0?!1:x;cga(q,G);C=M;E=q.B;x=x===void 0?!1:x;var J=1E3/C.length,I=[];I.push({x:0,y:100});for(var r=0;r0&&(X=y[y.length-1])}g.DH(this)}b=void 0;L=[];if(f=(b=f.markersDecoration)==null?void 0:b.timedMarkerDecorations)for(f=g.n(f),b=f.next();!b.done;b=f.next())b=b.value,v=X=u=void 0,L.push({visibleTimeRangeStartMillis:(u=b.visibleTimeRangeStartMillis)!=null?u:-1,visibleTimeRangeEndMillis:(X=b.visibleTimeRangeEndMillis)!=null?X:-1,decorationTimeMillis:(v=b.decorationTimeMillis)!= +null?v:NaN,label:b.label?g.na(b.label):""});f=L;this.heatMarkersDecorations=f}}z.nT=this.Y;g.MP(this.element,"ytp-timed-markers-enabled",Q);return Q}; +g.S.tZ=function(){g.DH(this);db(this);lXc(this,this.Y);if(this.B){var Q=g.$e(this.element).x||0;this.B.tZ(Q,this.j)}}; +g.S.onClickCommand=function(Q){if(Q=g.K(Q,Qt)){var z=Q.key;Q.isVisible&&z&&HeY(this,z)}}; +g.S.f6$=function(Q){this.api.F$("innertubeCommand",this.cq[Q.id])}; +g.S.A7=function(){db(this);var Q=this.api.getCurrentTime();(Qthis.clipEnd)&&this.H3()}; +g.S.RV=function(Q){if(!Q.defaultPrevented){var z=!1;switch(Q.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);z=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);z=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);z=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);z=!0;break;case 38:this.api.V("enable_key_press_seek_logging")&&ls(this,this.api.getCurrentTime(),this.api.getCurrentTime()+5,"SEEK_SOURCE_SEEK_FORWARD_5S","INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"); +this.api.seekBy(5,void 0,void 0,72);z=!0;break;case 40:this.api.V("enable_key_press_seek_logging")&&ls(this,this.api.getCurrentTime(),this.api.getCurrentTime()-5,"SEEK_SOURCE_SEEK_BACKWARD_5S","INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"),this.api.seekBy(-5,void 0,void 0,71),z=!0}z&&Q.preventDefault()}}; +g.S.nt=function(Q,z){this.updateVideoData(z,Q==="newdata")}; +g.S.mch=function(){this.nt("newdata",this.api.getVideoData())}; +g.S.updateVideoData=function(Q,z){z=z===void 0?!1:z;var H=!!Q&&Q.EZ();if(H&&(zI(Q)||Swa(this)?this.YJ=!1:this.YJ=Q.allowLiveDvr,g.MP(this.api.getRootNode(),"ytp-enable-live-buffer",!(Q==null||!zI(Q))),this.api.V("enable_custom_playhead_parsing"))){var f,b,L,u=g.K((f=Q.getWatchNextResponse())==null?void 0:(b=f.playerOverlays)==null?void 0:(L=b.playerOverlayRenderer)==null?void 0:L.decoratedPlayerBarRenderer,xa);if(u==null?0:u.progressColor)for(f=0;f0;)this.D.pop().dispose();this.heatMarkersDecorations=[];this.ZJ={};var M;(M=this.B)==null||M.reset();b_(this);g.MP(this.api.getRootNode(),"ytp-fine-scrubbing-exp",h9(this))}else this.H3();this.Z3()}if(Q){var C;M=((C=this.GL)==null?void 0:C.type)==="clips";if(C=!Q.isLivePlayback){C=this.api.getVideoData();z=g.Os(C);H=mi6(C);var t;C=z!=null||H!=null&&H.length>0||((t=C.Ss)== +null?void 0:t.length)>0}if(C&&!M){t=this.api.getVideoData();M=g.Os(t);C=!1;if(M==null?0:M.markersMap){C=this.api.getVideoData();var E;C.PP=((E=M.visibleOnLoad)==null?void 0:E.key)||C.PP;E=g.n(M.markersMap);for(M=E.next();!M.done;M=E.next())M=M.value,M.key&&M.value&&(this.ZJ[M.key]=M.value,M.value.onChapterRepeat&&(C.Ig=M.value.onChapterRepeat));C.PP!=null&&HeY(this,C.PP);C=!0}var G;if(((G=t.Ss)==null?void 0:G.length)>0){G=g.z_.getState().entities;E=g.n(t.Ss);for(M=E.next();!M.done;M=E.next())if(M= +M.value,H=void 0,z=(H=yd(G,"macroMarkersListEntity",M))==null?void 0:H.markersList,X=H=void 0,((H=z)==null?void 0:H.markerType)==="MARKER_TYPE_TIMESTAMPS"||((X=z)==null?void 0:X.markerType)==="MARKER_TYPE_HEATMAP")this.mq[M]=z;C=this.Xm()||C}!C&&(G=mi6(t))&&(koc(this,G),t.r7=this.Z,wlp(this));XhZ(this,null);Q.Vo&&this.D.length===0&&(Q=Q.Vo,G=Q.key,Q.isVisible&&G&&HeY(this,G))}else DiL(this),VR9(this)}db(this)}; +g.S.nvv=function(Q){this.N&&!g.w(Q.state,32)&&this.api.getPresentingPlayerType()!==3&&this.N.cancel();var z;((z=this.B)==null?0:z.isEnabled)&&g.w(Q.state,8)&&this.api.pauseVideo();Q=this.api.getPresentingPlayerType()===2||!this.api.GZ()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.MP(this.D6,"ytp-hide-scrubber-button",Q)}; +g.S.wy=function(Q){var z=!!this.GL!==!!Q,H=this.GL;this.GL=Q;XhZ(this,H);(Q==null?void 0:Q.type)!=="clips"&&Q||(Q?(this.updateValue("clipstarticon",r1c()),this.updateValue("clipendicon",r1c()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",xV8()),this.updateValue("clipendicon",Fx6()),this.updateValue("clipstarttitle","Watch full video"),this.updateValue("clipendtitle","Watch full video")),z&&(this.updateVideoData(this.api.getVideoData(), +!0),g.DH(this)),RC(this));kz(this,this.U,this.rT)}; +g.S.VAq=function(Q,z,H){var f=g.$e(this.element),b=VI(this).Z,L=H?H.getAttribute("data-tooltip"):void 0,u=H?H.getAttribute("data-position"):void 0,X=H?H.getAttribute("data-offset-y"):void 0;X=X?Number(X):0;u&&(Q=P6(this.L,Number(H.getAttribute("data-position")),0)*b+g.$e(this.progressBar).x);this.WI.x=Q-f.x;this.WI.y=z-f.y;Q=VI(this);H=eO(this,Q);z=0;var v;if((v=this.api.getVideoData())==null?0:zI(v))(v=this.api.getProgressState().seekableEnd)&&H>v&&(H=v,Q.position=P6(this.L,v)*VI(this).Z),z=this.L.B; +Swa(this)&&(z=this.L.B);v=L||g.Ox(this.YJ?H-this.L.Z:H-z);z=Q.position+this.uL;H-=this.api.ex();var y;if((y=this.B)==null||!y.isEnabled)if(this.api.HU()){if(this.Z.length>1){y=Tf(this,this.WI.x,!0);if(!this.GL)for(f=0;f1)for(f=0;f0)for(y=this.WI.x,f=g.n(this.Y),b=f.next();!b.done;b=f.next())b=b.value,u=KU(this,b.timeRangeStartMillis/ +(this.L.Z*1E3),VI(this)),g.MP(b.element,"ytp-timed-marker-hover",u<=y&&u+6>=y);f=this.tooltip.scale;X=(isNaN(X)?0:X)-45*f;this.api.V("web_key_moments_markers")?this.h$?(y=IBk(this.Y,H*1E3),y=y!=null?this.Y[y].title:""):(y=Mg(this.Z,H*1E3),y=this.Z[y].title):(y=Mg(this.Z,H*1E3),y=this.Z[y].title);y||(X+=16*f);this.tooltip.scale===.6&&(g.wm(this.api.C())?(X=this.api.Un().getPlayerSize().height-225,X=y?X+110:X+110+16):X=y?110:126);f=Mg(this.Z,H*1E3);this.L3=vD6(this,H,f)?f:vD6(this,H,f+1)?f+1:-1;g.MP(this.api.getRootNode(), +"ytp-progress-bar-snap",this.L3!==-1&&this.Z.length>1);f=!1;b=g.n(this.heatMarkersDecorations);for(u=b.next();!u.done;u=b.next()){u=u.value;var q=H*1E3;q>=u.visibleTimeRangeStartMillis&&q<=u.visibleTimeRangeEndMillis&&(y=u.label,v=g.Ox(u.decorationTimeMillis/1E3),f=!0)}this.zx!==f&&(this.zx=f,this.api.logVisibility(this.yR,this.zx));g.MP(this.api.getRootNode(),"ytp-progress-bar-decoration",f);f=160*this.tooltip.scale*2;b=y.length*(this.Ze?8.55:5.7);b=b<=f?b:f;u=b<160*this.tooltip.scale;f=3;!u&&b/ +2>Q.position&&(f=1);!u&&b/2>this.j-Q.position&&(f=2);this.api.C().N&&(X-=10);this.D.length&&this.D[0].EZ&&(X-=14*(this.Ze?2:1),this.f3||(this.f3=!0,this.api.logVisibility(this.wh,this.f3)));var M;if(h9(this)&&(((M=this.B)==null?0:M.isEnabled)||this.iT>0)){var C;X-=((C=this.B)==null?0:C.isEnabled)?zB(this):this.iT}M=void 0;h9(this)&&!this.api.V("web_player_hide_fine_scrubbing_edu")&&(M="Pull up for precise seeking",this.yl||(this.yl=!0,this.api.logVisibility(this.p5,this.yl)));this.tooltip.Qy(z,H, +v,!!L,X,y,f,M)}else this.tooltip.Qy(z,H,v,!!L,X);g.X9(this.api.getRootNode(),"ytp-progress-bar-hover");uK8(this)}; +g.S.AMT=function(){this.Z3();g.yM(this.api.getRootNode(),"ytp-progress-bar-hover");this.f3&&(this.f3=!1,this.api.logVisibility(this.wh,this.f3));this.yl&&(this.yl=!1,this.api.logVisibility(this.p5,this.yl))}; +g.S.fmT=function(Q,z){h9(this)&&this.B&&(this.B.yl?UO(this.B,this.api.getCurrentTime()):BxY(this.B),this.B.show(),g.MP(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.B.isEnabled));this.Tx&&(this.Tx.dispose(),this.Tx=null);this.LA=z;this.QN=this.api.getCurrentTime();this.Z.length>1&&this.L3!==-1?this.api.seekTo(this.Z[this.L3].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(eO(this,VI(this)),!1,void 0,void 0,7);g.X9(this.element,"ytp-drag");(this.sj=this.api.getPlayerStateObject().isOrWillBePlaying())&& +this.api.pauseVideo()}; +g.S.m4I=function(){if(h9(this)&&this.B){var Q=zB(this);this.iT>=Q*.5?(this.B.enable(),UO(this.B,this.api.getCurrentTime()),gDL(this,Q)):b_(this)}if(g.w(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var z;if((z=this.B)==null?0:z.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.Z.length>1&&this.L3!==-1)this.api.V("html5_enable_progress_bar_slide_seek_logging")&&ls(this,this.QN,this.Z[this.L3].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", +"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.Z[this.L3].startTime/1E3,void 0,void 0,void 0,7);else{Q=eO(this,VI(this));this.api.V("html5_enable_progress_bar_slide_seek_logging")&&ls(this,this.QN,Q,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(Q,void 0,void 0,void 0,7);z=g.n(this.heatMarkersDecorations);for(var H=z.next();!H.done;H=z.next())H=H.value,Q*1E3>=H.visibleTimeRangeStartMillis&&Q*1E3<=H.visibleTimeRangeEndMillis&& +this.api.logClick(this.yR)}g.yM(this.element,"ytp-drag");this.sj&&!g.w(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; +g.S.nsv=function(Q,z){Q=VI(this);Q=eO(this,Q);this.api.seekTo(Q,!1,void 0,void 0,7);var H;h9(this)&&((H=this.B)==null?0:H.yl)&&(UO(this.B,Q),this.B.isEnabled||(H=zB(this),this.iT=g.y4(this.LA-z-10,0,H),gDL(this,this.iT)))}; +g.S.Z3=function(){this.tooltip.bO()}; +g.S.mu=function(){this.GL||(this.updateValue("clipstarticon",jEn()),this.updateValue("clipendicon",jEn()),g.X9(this.element,"ytp-clip-hover"))}; +g.S.Vm=function(){this.GL||(this.updateValue("clipstarticon",xV8()),this.updateValue("clipendicon",Fx6()),g.yM(this.element,"ytp-clip-hover"))}; +g.S.H3=function(){this.clipStart=0;this.clipEnd=Infinity;RC(this);kz(this,this.U,this.rT)}; +g.S.LSe=function(Q){Q=g.n(Q);for(var z=Q.next();!z.done;z=Q.next())if(z=z.value,z.visible){var H=z.getId();if(!this.jm[H]){var f=g.fm("DIV");z.tooltip&&f.setAttribute("data-tooltip",z.tooltip);this.jm[H]=z;this.EY[H]=f;g.un(f,z.style);yHc(this,H);this.api.C().V("disable_ad_markers_on_content_progress_bar")||this.Z[0].D.appendChild(f)}}else nD9(this,z)}; +g.S.VHT=function(Q){Q=g.n(Q);for(var z=Q.next();!z.done;z=Q.next())nD9(this,z.value)}; +g.S.X7=function(Q){this.B&&(this.B.onExit(Q!=null),b_(this))}; +g.S.xb=function(Q){this.B&&(this.B.play(Q!=null),b_(this))}; +g.S.a3n=function(){ZeA(this,this.api.GZ())}; +g.S.zv=function(){ZeA(this,!1);g.tB.prototype.zv.call(this)};g.p(LO,g.m);LO.prototype.isActive=function(){return!!this.K.getOption("remote","casting")}; +LO.prototype.Jh=function(){var Q=!1;this.K.getOptions().includes("remote")&&(Q=this.K.getOption("remote","receivers").length>1);this.Ho(Q&&this.K.Un().getPlayerSize().width>=400);this.K.logVisibility(this.element,this.LH);var z=1;Q&&this.isActive()&&(z=2);if(this.Z!==z){this.Z=z;switch(z){case 1:this.updateValue("icon",{G:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},W:[{G:"path",w4:!0,T:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z", +fill:"#fff"}}]});break;case 2:this.updateValue("icon",g.$Vp())}g.MP(this.element,"ytp-remote-button-active",this.isActive())}}; +LO.prototype.B=function(){if(this.K.getOption("remote","quickCast"))this.K.setOption("remote","quickCast",!0);else{var Q=this.kt,z=this.element;if(Q.A9())Q.fH();else{Q.initialize();a:{var H=g.n(Q.Z6.items);for(var f=H.next();!f.done;f=H.next())if(f=f.value,f.priority===1){H=f;break a}H=null}H&&(H.open(),Q.ir(z));Q.ir(z)}}this.K.logClick(this.element)};g.p(u_,g.m);u_.prototype.Z=function(Q){var z=this.K.C(),H=400;this.K.V("web_player_small_hbp_settings_menu")&&z.j?H=300:z.N&&(H=200);Q=this.B&&Q.width>=H;this.Ho(Q);this.K.V("embeds_use_parent_visibility_in_ve_logging")?this.K.logVisibility(this.element,Q&&this.S):this.K.logVisibility(this.element,Q)}; +u_.prototype.L=function(){if(this.kt.LH)this.kt.fH();else{var Q=g.oO(this.K.xt());Q&&!Q.loaded&&(Q.TZ("tracklist",{includeAsr:!0}).length||Q.load());this.K.logClick(this.element);this.kt.ir(this.element)}}; +u_.prototype.updateBadge=function(){var Q=this.K.isHdr(),z=this.K.getPresentingPlayerType(),H=z!==2&&z!==3,f=g.sZ(this.K),b=H&&!!g.rX(this.K.xt());z=b&&f.displayMode===1;f=b&&f.displayMode===2;H=(b=z||f)||!H?null:this.K.getPlaybackQuality();g.MP(this.element,"ytp-hdr-quality-badge",Q);g.MP(this.element,"ytp-hd-quality-badge",!Q&&(H==="hd1080"||H==="hd1440"));g.MP(this.element,"ytp-4k-quality-badge",!Q&&H==="hd2160");g.MP(this.element,"ytp-5k-quality-badge",!Q&&H==="hd2880");g.MP(this.element,"ytp-8k-quality-badge", +!Q&&H==="highres");g.MP(this.element,"ytp-3d-badge-grey",!Q&&b&&z);g.MP(this.element,"ytp-3d-badge",!Q&&b&&f)};g.p(Sk,bo);Sk.prototype.isLoaded=function(){var Q=g.r3(this.K.xt());return Q!==void 0&&Q.loaded}; +Sk.prototype.Jh=function(){g.r3(this.K.xt())!==void 0&&this.K.getPresentingPlayerType()!==3?this.Z||(this.kt.md(this),this.Z=!0):this.Z&&(this.kt.nA(this),this.Z=!1);LK(this,this.isLoaded())}; +Sk.prototype.onSelect=function(Q){this.isLoaded();Q?this.K.loadModule("annotations_module"):this.K.unloadModule("annotations_module");this.K.publish("annotationvisibility",Q)}; +Sk.prototype.zv=function(){this.Z&&this.kt.nA(this);bo.prototype.zv.call(this)};g.p(Xf,g.hz);Xf.prototype.Jh=function(){var Q=this.K.getAvailableAudioTracks();Q.length>1?(this.wz(g.NT(Q,this.Z)),this.tracks=g.Cr(Q,this.Z,this),this.countLabel.UV(Q.length?" ("+Q.length+")":""),this.publish("size-change"),this.RJ(this.Z(this.K.getAudioTrack())),this.enable(!0)):this.enable(!1)}; +Xf.prototype.zZ=function(Q){g.hz.prototype.zZ.call(this,Q);this.K.setAudioTrack(this.tracks[Q]);this.kt.R6()}; +Xf.prototype.Z=function(Q){return Q.toString()};g.p(vP,bo); +vP.prototype.B=function(){var Q=this.K.getPresentingPlayerType();if(Q!==2&&Q!==3&&g.PG(this.K))this.Z||(this.kt.md(this),this.Z=!0,this.L.push(this.X(this.K,"videodatachange",this.B)),this.L.push(this.X(this.K,"videoplayerreset",this.B)),this.L.push(this.X(this.K,"onPlaylistUpdate",this.B)),this.L.push(this.X(this.K,"autonavchange",this.D)),Q=this.K.getVideoData(),this.D(Q.autonavState),this.K.logVisibility(this.element,this.Z));else if(this.Z){this.kt.nA(this);this.Z=!1;Q=g.n(this.L);for(var z=Q.next();!z.done;z= +Q.next())this.DS(z.value)}}; +vP.prototype.D=function(Q){LK(this,Q!==1)}; +vP.prototype.onSelect=function(Q){this.K.P3(Q?2:1);this.Z&&(this.K.logVisibility(this.element,this.Z),this.K.logClick(this.element))}; +vP.prototype.zv=function(){this.Z&&this.kt.nA(this);bo.prototype.zv.call(this)};g.p($LJ,g.mh);$LJ.prototype.onClick=function(Q){Q.preventDefault();var z,H;(z=g.pR(this.K))==null||(H=z.S0())==null||H.fH();var f,b;(f=g.pR(this.K))==null||(b=f.nu())==null||b.ir(Q.target)};g.p(jFp,g.hz);g.S=jFp.prototype; +g.S.Yx=function(){var Q=this.K.getPresentingPlayerType();if(Q!==2&&Q!==3){this.L3=this.K.Qz();Q=this.K.getAvailableQualityLevels();if(this.Z){this.D={};var z=g.qW(this.K,"getAvailableQualityData",[]);z=g.n(z);for(var H=z.next();!H.done;H=z.next())H=H.value,this.D[H.qualityLabel]=H;z=Object.keys(this.D);Q[Q.length-1]==="auto"&&z.push("auto");this.De=new Set(Q)}else if(this.j){H=g.qW(this.K,"getAvailableQualityData",[]);z=[];H=g.n(H);for(var f=H.next();!f.done;f=H.next())f=f.value,this.U[f.quality]= +f,f.quality&&z.push(f.quality);Q[Q.length-1]==="auto"&&z.push("auto")}else z=Q;g.dDu(this.K)&&this.K.gp()&&z.unshift("missing-qualities");mDa(this.K)&&z.unshift("inline-survey");this.wz(z);Q=this.K.getVideoData().cotn?!0:!1;H=this.wh.yP();H=!g.wm(this.K.C())||!(Q===void 0?0:Q)||!(H===void 0||H);Q=this.B;H=H===void 0?!1:H;Q.ll&&g.MP(Q.Mc("ytp-panel-footer"),"ytp-panel-hide-footer",H===void 0?!1:H);if(z.length){this.Pu();this.enable(!0);return}}this.enable(!1)}; +g.S.Pu=function(){if(this.Z){var Q=this.K.getPreferredQuality();this.De.has(Q)&&(this.Y=this.K.getPlaybackQuality(),this.Ze=this.K.getPlaybackQualityLabel(),Q==="auto"?(this.RJ(Q),this.UV(this.Z5(Q))):this.RJ(this.Ze))}else Q=this.K.getPreferredQuality(),this.options[Q]&&(this.Y=this.K.getPlaybackQuality(),this.RJ(Q),Q==="auto"&&this.UV(this.Z5(Q)))}; +g.S.zZ=function(Q){if(Q!=="missing-qualities"){g.hz.prototype.zZ.call(this,Q);var z=this.Z?this.D[Q]:this.U[Q];var H=z==null?void 0:z.quality,f=z==null?void 0:z.formatId,b=z==null?void 0:z.paygatedQualityDetails;z=b==null?void 0:b.endpoint;if(b){var L;b=(L=this.options[Q])==null?void 0:L.element;this.K.logClick(b)}if(this.Z){var u,X;if((u=g.K(z,g.q2u))==null?0:(X=u.popup)==null?0:X.notificationActionRenderer)this.K.F$("innertubeCommand",z);else if(z){this.K.F$("innertubeCommand",z);return}f?this.K.setPlaybackQuality(H, +f):this.K.setPlaybackQuality(H)}else{if(this.j){var v,y;if((v=g.K(z,g.q2u))==null?0:(y=v.popup)==null?0:y.notificationActionRenderer)this.K.F$("innertubeCommand",z);else if(z){this.K.F$("innertubeCommand",z);return}}this.K.setPlaybackQuality(Q)}this.kt.fH();this.Yx()}}; +g.S.open=function(){for(var Q=g.n(Object.values(this.options)),z=Q.next();!z.done;z=Q.next()){z=z.value;var H=void 0;this.K.hasVe((H=z)==null?void 0:H.element)&&(H=void 0,this.K.logVisibility((H=z)==null?void 0:H.element,!0))}g.hz.prototype.open.call(this);this.K.logClick(this.element)}; +g.S.Ac=function(Q,z,H){var f=this;if(Q==="missing-qualities")return new g.mh({G:"a",lT:["ytp-menuitem"],T:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.K.C().U,tabindex:"0",role:"menuitemradio"},W:[{G:"div",lT:["ytp-menuitem-label"],BI:"{{label}}"}]},z,this.Z5(Q));if(Q!=="inline-survey"){var b,L=(b=this.Z?this.D[Q]:this.U[Q])==null?void 0:b.paygatedQualityDetails;b=L==null?void 0:L.veType;L=L==null?void 0:L.trackingParams;z=g.hz.prototype.Ac.call(this,Q,z,H);L?(this.K.createServerVe(z.element, +this,!0),this.K.setTrackingParams(z.element,L)):b&&this.K.createClientVe(z.element,this,b,!0);return z}Q=[{G:"span",BI:"Looks good?"}];H=g.n([!0,!1]);L=H.next();for(b={};!L.done;b={Gf:void 0},L=H.next())b.Gf=L.value,L=new g.m({G:"span",J:"ytp-menuitem-inline-survey-response",W:[b.Gf?Ye8():ow9()],T:{tabindex:"0",role:"button"}}),L.listen("click",function(u){return function(){var X=u.Gf,v=f.K.app.X$();v&&(v.On("iqsr",{tu:X}),v.getVideoData().FJ=!0);f.kt.fH();f.Yx()}}(b)),Q.push(L); +return new g.mh({G:"div",J:"ytp-menuitem",T:{"aria-disabled":"true"},W:[{G:"div",lT:["ytp-menuitem-label"],W:Q}]},z)}; +g.S.Z5=function(Q,z){z=z===void 0?!1:z;if(Q==="missing-qualities")return{G:"div",BI:"Missing options?"};if(Q==="inline-survey")return"";var H=this.j||this.Z?[Oek(this,Q,z,!1)]:[xLn(this,Q)];var f=this.K.getPreferredQuality();z||f!=="auto"||Q!=="auto"||(H.push(" "),this.Z?H.push(Oek(this,this.Ze,z,!0,["ytp-menu-label-secondary"])):this.j?H.push(Oek(this,this.Y,z,!0,["ytp-menu-label-secondary"])):H.push(xLn(this,this.Y,["ytp-menu-label-secondary"])));return{G:"div",W:H}};g.p(yz,g.m);yz.prototype.init=function(){this.updateValue("minvalue",this.L);this.updateValue("maxvalue",this.D);this.updateValue("stepvalue",this.Y);this.updateValue("slidervalue",this.B);oDu(this,this.B)}; +yz.prototype.N=function(){JHc(this,Number(this.Z.value));this.Z.focus()}; +yz.prototype.j=function(Q){if(!Q.defaultPrevented){switch(Q.code){case "ArrowDown":Q=-this.Y;break;case "ArrowUp":Q=this.Y;break;default:return}JHc(this,Math.min(this.D,Math.max(Number((this.B+Q).toFixed(2)),this.L)))}};g.p(q8,yz);q8.prototype.N=function(){yz.prototype.N.call(this);this.U&&NLn(this)}; +q8.prototype.L3=function(){this.Ze()}; +q8.prototype.wh=function(){this.K.setPlaybackRate(this.B,!0)}; +q8.prototype.j=function(Q){yz.prototype.j.call(this,Q);this.Ze();NLn(this);Q.preventDefault()};g.p(M8,g.m);g.S=M8.prototype;g.S.init=function(){this.Yd(this.Z);this.updateValue("minvalue",this.B);this.updateValue("maxvalue",this.L)}; +g.S.Ud=function(Q){if(!Q.defaultPrevented){switch(Q.keyCode){case 37:case 40:var z=-this.N;break;case 39:case 38:z=this.N;break;default:return}this.Yd(this.Z+z);Q.preventDefault()}}; +g.S.WA=function(Q){var z=this.Z;z+=(Q.deltaX||-Q.deltaY)<0?-this.U:this.U;this.Yd(z);Q.preventDefault()}; +g.S.TW=function(Q){Q=(Q-g.$e(this.D).x)/this.Ze*this.range+this.B;this.Yd(Q)}; +g.S.Yd=function(Q,z){z=z===void 0?"":z;Q=g.y4(Q,this.B,this.L);z===""&&(z=Q.toString());this.updateValue("valuenow",Q);this.updateValue("valuetext",z);this.wh.style.left=(Q-this.B)/this.range*(this.Ze-this.yl)+"px";this.Z=Q}; +g.S.focus=function(){this.f3.focus()};g.p(CO,M8);CO.prototype.L3=function(){this.K.setPlaybackRate(this.Z,!0)}; +CO.prototype.Yd=function(Q){M8.prototype.Yd.call(this,Q,AHZ(this,Q).toString());this.j&&(IfY(this),this.De())}; +CO.prototype.updateValues=function(){var Q=this.K.getPlaybackRate();AHZ(this,this.Z)!==Q&&(this.Yd(Q),IfY(this))};g.p(Ywk,g.tB);Ywk.prototype.focus=function(){this.Z.focus()};g.p(rH8,Ii);g.p(sFp,g.hz);g.S=sFp.prototype;g.S.Z5=function(Q){return Q==="1"?"Normal":Q.toLocaleString()}; +g.S.Jh=function(){var Q,z=(Q=this.K.getVideoData())==null?void 0:Q.OZ();Q=this.K.getPresentingPlayerType(z);this.enable(Q!==2&&Q!==3);afn(this)}; +g.S.wz=function(Q){g.hz.prototype.wz.call(this,Q);this.Y&&this.Y.Z.focus()}; +g.S.L_=function(Q){g.hz.prototype.L_.call(this,Q);Q?(this.Ze=this.X(this.K,"onPlaybackRateChange",this.onPlaybackRateChange),afn(this),BL_(this,this.K.getPlaybackRate())):(this.DS(this.Ze),this.Ze=null)}; +g.S.onPlaybackRateChange=function(Q){var z=this.K.getPlaybackRate();!this.D&&this.U.includes(z)||P36(this,z);BL_(this,Q)}; +g.S.Ac=function(Q,z,H){return Q===this.Z&&ULv(this.K)?g.hz.prototype.Ac.call(this,Q,z,H,{G:"div",J:"ytp-speed-slider-menu-footer",W:[this.Y]}):g.hz.prototype.Ac.call(this,Q,z,H)}; +g.S.zZ=function(Q){g.hz.prototype.zZ.call(this,Q);Q===this.Z?this.K.setPlaybackRate(this.j,!0):this.K.setPlaybackRate(Number(Q),!0);ULv(this.K)&&Q===this.Z||this.kt.R6()}; +g.S.g1=function(Q){var z=Q===this.Z;this.D=!1;z&&tY(this.K)&&!ULv(this.K)?(Q=new rH8(this.K),g.sk(this.kt,Q)):g.hz.prototype.g1.call(this,Q)};g.p(iek,g.hz);g.S=iek.prototype;g.S.RJ=function(Q){g.hz.prototype.RJ.call(this,Q)}; +g.S.xT=function(Q){return Q.option.toString()}; +g.S.getOption=function(Q){return this.settings[Q]}; +g.S.Z5=function(Q){return this.getOption(Q).text||""}; +g.S.zZ=function(Q){g.hz.prototype.zZ.call(this,Q);this.publish("settingChange",this.setting,this.settings[Q].option)};g.p(pO,g.Az);pO.prototype.yk=function(Q){for(var z=g.n(Object.keys(Q)),H=z.next();!H.done;H=z.next()){var f=H.value;if(H=this.YG[f]){var b=Q[f].toString();f=!!Q[f+"Override"];H.options[b]&&(H.RJ(b),H.D.element.setAttribute("aria-checked",String(!f)),H.Z.element.setAttribute("aria-checked",String(f)))}}}; +pO.prototype.Eu=function(Q,z){this.publish("settingChange",Q,z)};g.p(nO,g.hz);nO.prototype.Z=function(Q){return Q.languageCode}; +nO.prototype.Z5=function(Q){return this.languages[Q].languageName||""}; +nO.prototype.zZ=function(Q){this.publish("select",Q);this.K.logClick(this.element);g.B9(this.kt)};g.p(DLu,g.hz);g.S=DLu.prototype;g.S.sE=function(Q){return g.ra(Q)?"__off__":Q.displayName}; +g.S.Z5=function(Q){return Q==="__off__"?"Off":Q==="__translate__"?"Auto-translate":Q==="__contribute__"?"Add subtitles/CC":Q==="__correction__"?"Suggest caption corrections":(Q==="__off__"?{}:this.tracks[Q]).displayName}; +g.S.zZ=function(Q){if(Q==="__translate__")this.Z.open();else if(Q==="__contribute__"){this.K.pauseVideo();this.K.isFullscreen()&&this.K.toggleFullscreen();var z=g.BB(this.K.C(),this.K.getVideoData());g.V_(z)}else if(Q==="__correction__"){this.K.pauseVideo();this.K.isFullscreen()&&this.K.toggleFullscreen();var H=KAk(this);go(this,H);g.hz.prototype.zZ.call(this,this.sE(H));var f,b;H=(z=this.K.getVideoData().getPlayerResponse())==null?void 0:(f=z.captions)==null?void 0:(b=f.playerCaptionsTracklistRenderer)== +null?void 0:b.openTranscriptCommand;this.K.F$("innertubeCommand",H);this.kt.R6();this.D&&this.K.logClick(this.D)}else{if(Q==="__correction__"){this.K.pauseVideo();this.K.isFullscreen()&&this.K.toggleFullscreen();z=KAk(this);go(this,z);g.hz.prototype.zZ.call(this,this.sE(z));var L,u;z=(H=this.K.getVideoData().getPlayerResponse())==null?void 0:(L=H.captions)==null?void 0:(u=L.playerCaptionsTracklistRenderer)==null?void 0:u.openTranscriptCommand;this.K.F$("innertubeCommand",z)}else this.K.logClick(this.element), +go(this,Q==="__off__"?{}:this.tracks[Q]),g.hz.prototype.zZ.call(this,Q);this.kt.R6()}}; +g.S.Jh=function(){var Q=this.K.getOptions();Q=Q&&Q.indexOf("captions")!==-1;var z=this.K.getVideoData(),H=z&&z.HP,f,b=!((f=this.K.getVideoData())==null||!g.Rq(f));f={};if(Q||H){var L;if(Q){var u=this.K.getOption("captions","track");f=this.K.getOption("captions","tracklist",{includeAsr:!0});var X=b?[]:this.K.getOption("captions","translationLanguages");this.tracks=g.Cr(f,this.sE,this);b=g.NT(f,this.sE);var v,y;KAk(this)&&((L=z.getPlayerResponse())==null?0:(v=L.captions)==null?0:(y=v.playerCaptionsTracklistRenderer)== +null?0:y.openTranscriptCommand)&&b.push("__correction__");if(X.length&&!g.ra(u)){if((L=u.translationLanguage)&&L.languageName){var q=L.languageName;L=X.findIndex(function(M){return M.languageName===q}); +uxJ(X,L)}hBZ(this.Z,X);b.push("__translate__")}L=this.sE(u)}else this.tracks={},b=[],L="__off__";b.unshift("__off__");this.tracks.__off__={};H&&b.unshift("__contribute__");this.tracks[L]||(this.tracks[L]=u,b.push(L));this.wz(b);this.RJ(L);u&&u.translationLanguage?this.Z.RJ(this.Z.Z(u.translationLanguage)):OUa(this.Z);Q&&this.j.yk(this.K.getSubtitlesUserSettings());this.countLabel.UV(f&&f.length?" ("+f.length+")":"");this.publish("size-change");this.K.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; +g.S.g6=function(Q){var z=this.K.getOption("captions","track");z=g.P3(z);z.translationLanguage=this.Z.languages[Q];go(this,z)}; +g.S.Eu=function(Q,z){if(Q==="reset")this.K.resetSubtitlesUserSettings();else{var H={};H[Q]=z;this.K.updateSubtitlesUserSettings(H)}WAu(this,!0);this.Y.start();this.j.yk(this.K.getSubtitlesUserSettings())}; +g.S.zYh=function(Q){Q||g.ze(this.Y)}; +g.S.zv=function(){g.ze(this.Y);g.hz.prototype.zv.call(this)}; +g.S.open=function(){g.hz.prototype.open.call(this);this.options.__correction__&&!this.D&&(this.D=this.options.__correction__.element,this.K.createClientVe(this.D,this,167341),this.K.logVisibility(this.D,!0))};g.p(V2L,g.rI);g.S=V2L.prototype; +g.S.initialize=function(){if(!this.isInitialized){var Q=this.K.C();this.isInitialized=!0;try{this.NV=new jFp(this.K,this)}catch(H){g.ax(Error("QualityMenuItem creation failed"))}g.W(this,this.NV);var z=new DLu(this.K,this);g.W(this,z);Q.L||(z=new Sk(this.K,this),g.W(this,z));Q.enableSpeedOptions&&(z=new sFp(this.K,this),g.W(this,z));(g.O8(Q)||Q.j)&&(Q.B||Q.En)&&(z=new $LJ(this.K,this),g.W(this,z));Q.zx&&!Q.V("web_player_move_autonav_toggle")&&(Q=new vP(this.K,this),g.W(this,Q));Q=new Xf(this.K,this); +g.W(this,Q);this.K.publish("settingsMenuInitialized");GWu(this.settingsButton,this.Z6.xf())}}; +g.S.md=function(Q){this.initialize();this.Z6.md(Q);GWu(this.settingsButton,this.Z6.xf())}; +g.S.nA=function(Q){this.LH&&this.Z6.xf()<=1&&this.hide();this.Z6.nA(Q);GWu(this.settingsButton,this.Z6.xf())}; +g.S.ir=function(Q){this.initialize();this.Z6.xf()>0&&g.rI.prototype.ir.call(this,Q)}; +g.S.fH=function(){this.fX?this.fX=!1:g.rI.prototype.fH.call(this)}; +g.S.show=function(){g.rI.prototype.show.call(this);g.X9(this.K.getRootNode(),"ytp-settings-shown")}; +g.S.hide=function(){g.rI.prototype.hide.call(this);g.yM(this.K.getRootNode(),"ytp-settings-shown")}; +g.S.Ox=function(Q){this.K.logVisibility(this.element,Q);this.K.publish("settingsMenuVisibilityChanged",Q)};g.p(mLv,g.m);g.S=mLv.prototype;g.S.onClick=function(){if(whY(this)&&(this.K.toggleSubtitles(),this.K.logClick(this.element),!this.isEnabled())){var Q=!1,z=g.KF(g.DQ(),65);g.wm(this.K.C())&&z!=null&&(Q=!z);Q&&this.K.C().V("web_player_nitrate_promo_tooltip")&&this.K.publish("showpromotooltip",this.element)}}; +g.S.Ven=function(Q){var z,H;(z=g.pR(this.K))==null||(H=z.S0())==null||H.ir(Q)}; +g.S.isEnabled=function(){return!!this.K.getOption("captions","track").displayName}; +g.S.Jh=function(){var Q=whY(this),z=300;this.K.C().N&&(z=480);if(this.K.C().j){this.updateValue("title",g.OZ(this.K,"Subtitles/closed captions","c"));this.update({"data-title-no-tooltip":"Subtitles/closed captions"});var H=Q}else{if(Q)(H=this.Mc("ytp-subtitles-button-icon"))==null||H.setAttribute("fill-opacity","1"),this.updateValue("title",g.OZ(this.K,"Subtitles/closed captions","c")),this.update({"data-title-no-tooltip":"Subtitles/closed captions"});else{var f;(f=this.Mc("ytp-subtitles-button-icon"))== +null||f.setAttribute("fill-opacity","0.3");this.updateValue("title","Subtitles/closed captions unavailable");this.update({"data-title-no-tooltip":"Subtitles/closed captions unavailable"})}H=!0}this.tooltip.UX();H=H&&this.K.Un().getPlayerSize().width>=z;this.Ho(H);this.K.V("embeds_use_parent_visibility_in_ve_logging")?this.K.logVisibility(this.element,H&&this.S):this.K.logVisibility(this.element,H);Q?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; +g.S.pH=function(Q){g.m.prototype.pH.call(this,Q);this.K.C().V("embeds_use_parent_visibility_in_ve_logging")&&this.K.logVisibility(this.element,this.LH&&Q)};g.p(g.ZC,g.m);g.S=g.ZC.prototype; +g.S.A7=function(){var Q=this.api.Un().getPlayerSize().width,z=this.U;this.api.C().N&&(z=400);z=Q>=z&&(!GB(this)||!g.w(this.api.getPlayerStateObject(),64));this.Ho(z);g.MP(this.element,"ytp-time-display-allow-autohide",z&&Q<400);Q=this.api.getProgressState();if(z){z=this.api.getPresentingPlayerType();var H=this.api.getCurrentTime(z,!1);this.B&&(H-=Q.airingStart);$2(this)&&(H-=this.GL.startTimeMs/1E3);$2(this)||GB(this)||!this.L||(H=this.api.getDuration(z,!1)-H);H=g.Ox(H);this.D!==H&&(this.updateValue("currenttime", +H),this.D=H);z=$2(this)?g.Ox((this.GL.endTimeMs-this.GL.startTimeMs)/1E3):g.Ox(this.api.getDuration(z,!1));this.j!==z&&(this.updateValue("duration",z),this.j=z)}kW6(this,Q.isAtLiveHead);TLA(this,this.api.getLoopRange())}; +g.S.onLoopRangeChange=function(Q){var z=this.GL!==Q;this.GL=Q;z&&(this.A7(),eBn(this))}; +g.S.EJ5=function(){this.api.setLoopRange(null)}; +g.S.YVq=function(){this.L=!this.L;this.A7()}; +g.S.onVideoDataChange=function(Q,z,H){this.updateVideoData((this.api.C().V("enable_topsoil_wta_for_halftime")||this.api.C().V("enable_topsoil_wta_for_halftime_live_infra"))&&H===2?this.api.getVideoData(1):z);this.A7();eBn(this)}; +g.S.updateVideoData=function(Q){this.kA=Q.isLivePlayback&&!Q.WI;this.B=zI(Q);this.isPremiere=Q.isPremiere;g.MP(this.element,"ytp-live",GB(this))}; +g.S.onClick=function(Q){Q.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; +g.S.zv=function(){this.Z&&this.Z();g.m.prototype.zv.call(this)};g.p(RBu,g.m);g.S=RBu.prototype;g.S.oK=function(){var Q=this.api.iW();this.L!==Q&&(this.L=Q,lfv(this,this.api.getVolume(),this.api.isMuted()))}; +g.S.zb=function(Q){this.Ho(Q.width>=350)}; +g.S.eR=function(Q){if(!Q.defaultPrevented){var z=Q.keyCode,H=null;z===37?H=this.volume-5:z===39?H=this.volume+5:z===36?H=0:z===35&&(H=100);H!==null&&(H=g.y4(H,0,100),H===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(H)),Q.preventDefault())}}; +g.S.rJ=function(Q){var z=Q.deltaX||-Q.deltaY;Q.deltaMode?this.api.setVolume(this.volume+(z<0?-10:10)):this.api.setVolume(this.volume+g.y4(z/10,-10,10));Q.preventDefault()}; +g.S.Mem=function(){jk(this,this.Z,!0,this.B,this.api.pg());this.U=this.volume;this.api.isMuted()&&this.api.unMute()}; +g.S.oA=function(Q){var z=this.L?78:52,H=this.L?18:12;Q-=g.$e(this.N).x;this.api.setVolume(g.y4((Q-H/2)/(z-H),0,1)*100)}; +g.S.k1h=function(){jk(this,this.Z,!1,this.B,this.api.pg());this.volume===0&&(this.api.mute(),this.api.setVolume(this.U))}; +g.S.onVolumeChange=function(Q){lfv(this,Q.volume,Q.muted)}; +g.S.vx=function(){jk(this,this.Z,this.isDragging,this.B,this.api.pg())}; +g.S.zv=function(){g.m.prototype.zv.call(this);g.yM(this.Y,"ytp-volume-slider-active")};g.p(Ff,g.m); +Ff.prototype.onVideoDataChange=function(){var Q=this.api.C();this.tZ();this.visible=!!this.api.getVideoData().videoId&&!g.HG(this.api.getVideoData(1));this.Ho(this.visible);this.api.logVisibility(this.element,this.visible&&this.S);if(this.visible){var z=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",z)}Q.L&&(this.Z&&(this.DS(this.Z),this.Z=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.X9(this.element,"no-link")); +z=this.api.C();Q=this.api.getVideoData();var H="";z.L||(z=g.Dd(z),z.indexOf("www.")===0&&(z=z.substring(4)),H=g.bj(Q)?"Watch on YouTube Music":z==="youtube.com"?"Watch on YouTube":g.pi("Watch on $WEBSITE",{WEBSITE:z}));this.updateValue("title",H)}; +Ff.prototype.onClick=function(Q){this.api.V("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var z=this.api.C(),H=this.api.getVideoUrl(!g.oQ(Q),!1,!0,!0);if(g.O8(z)){var f={};g.O8(z)&&g.qW(this.api,"addEmbedsConversionTrackingParams",[f]);H=g.de(H,f)}g.Sf(H,this.api,Q);this.api.V("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; +Ff.prototype.tZ=function(){var Q={G:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},W:[{G:"path",w4:!0,J:"ytp-svg-fill",T:{d:"M 45.09 10 L 45.09 25.82 L 47.16 25.82 L 47.41 24.76 L 47.47 24.76 C 47.66 25.14 47.94 25.44 48.33 25.66 C 48.72 25.88 49.16 25.99 49.63 25.99 C 50.48 25.99 51.1 25.60 51.5 24.82 C 51.9 24.04 52.09 22.82 52.09 21.16 L 52.09 19.40 C 52.12 18.13 52.05 17.15 51.90 16.44 C 51.75 15.74 51.50 15.23 51.16 14.91 C 50.82 14.59 50.34 14.44 49.75 14.44 C 49.29 14.44 48.87 14.57 48.47 14.83 C 48.27 14.96 48.09 15.11 47.93 15.29 C 47.78 15.46 47.64 15.65 47.53 15.86 L 47.51 15.86 L 47.51 10 L 45.09 10 z M 8.10 10.56 L 10.96 20.86 L 10.96 25.82 L 13.42 25.82 L 13.42 20.86 L 16.32 10.56 L 13.83 10.56 L 12.78 15.25 C 12.49 16.62 12.31 17.59 12.23 18.17 L 12.16 18.17 C 12.04 17.35 11.84 16.38 11.59 15.23 L 10.59 10.56 L 8.10 10.56 z M 30.10 10.56 L 30.10 12.58 L 32.59 12.58 L 32.59 25.82 L 35.06 25.82 L 35.06 12.58 L 37.55 12.58 L 37.55 10.56 L 30.10 10.56 z M 19.21 14.46 C 18.37 14.46 17.69 14.63 17.17 14.96 C 16.65 15.29 16.27 15.82 16.03 16.55 C 15.79 17.28 15.67 18.23 15.67 19.43 L 15.67 21.06 C 15.67 22.24 15.79 23.19 16 23.91 C 16.21 24.62 16.57 25.15 17.07 25.49 C 17.58 25.83 18.27 26 19.15 26 C 20.02 26 20.69 25.83 21.19 25.5 C 21.69 25.17 22.06 24.63 22.28 23.91 C 22.51 23.19 22.63 22.25 22.63 21.06 L 22.63 19.43 C 22.63 18.23 22.50 17.28 22.27 16.56 C 22.04 15.84 21.68 15.31 21.18 14.97 C 20.68 14.63 20.03 14.46 19.21 14.46 z M 56.64 14.47 C 55.39 14.47 54.51 14.84 53.99 15.61 C 53.48 16.38 53.22 17.60 53.22 19.27 L 53.22 21.23 C 53.22 22.85 53.47 24.05 53.97 24.83 C 54.34 25.40 54.92 25.77 55.71 25.91 C 55.97 25.96 56.26 25.99 56.57 25.99 C 57.60 25.99 58.40 25.74 58.96 25.23 C 59.53 24.72 59.81 23.94 59.81 22.91 C 59.81 22.74 59.79 22.61 59.78 22.51 L 57.63 22.39 C 57.62 23.06 57.54 23.54 57.40 23.83 C 57.26 24.12 57.01 24.27 56.63 24.27 C 56.35 24.27 56.13 24.18 56.00 24.02 C 55.87 23.86 55.79 23.61 55.75 23.25 C 55.71 22.89 55.68 22.36 55.68 21.64 L 55.68 21.08 L 59.86 21.08 L 59.86 19.16 C 59.86 17.99 59.77 17.08 59.58 16.41 C 59.39 15.75 59.07 15.25 58.61 14.93 C 58.15 14.62 57.50 14.47 56.64 14.47 z M 23.92 14.67 L 23.92 23.00 C 23.92 24.03 24.11 24.79 24.46 25.27 C 24.82 25.76 25.35 26.00 26.09 26.00 C 27.16 26.00 27.97 25.49 28.5 24.46 L 28.55 24.46 L 28.76 25.82 L 30.73 25.82 L 30.73 14.67 L 28.23 14.67 L 28.23 23.52 C 28.13 23.73 27.97 23.90 27.77 24.03 C 27.57 24.16 27.37 24.24 27.15 24.24 C 26.89 24.24 26.70 24.12 26.59 23.91 C 26.48 23.70 26.43 23.35 26.43 22.85 L 26.43 14.67 L 23.92 14.67 z M 36.80 14.67 L 36.80 23.00 C 36.80 24.03 36.98 24.79 37.33 25.27 C 37.60 25.64 37.97 25.87 38.45 25.96 C 38.61 25.99 38.78 26.00 38.97 26.00 C 40.04 26.00 40.83 25.49 41.36 24.46 L 41.41 24.46 L 41.64 25.82 L 43.59 25.82 L 43.59 14.67 L 41.09 14.67 L 41.09 23.52 C 40.99 23.73 40.85 23.90 40.65 24.03 C 40.45 24.16 40.23 24.24 40.01 24.24 C 39.75 24.24 39.58 24.12 39.47 23.91 C 39.36 23.70 39.31 23.35 39.31 22.85 L 39.31 14.67 L 36.80 14.67 z M 56.61 16.15 C 56.88 16.15 57.08 16.23 57.21 16.38 C 57.33 16.53 57.42 16.79 57.47 17.16 C 57.52 17.53 57.53 18.06 57.53 18.78 L 57.53 19.58 L 55.69 19.58 L 55.69 18.78 C 55.69 18.05 55.71 17.52 55.75 17.16 C 55.79 16.81 55.87 16.55 56.00 16.39 C 56.13 16.23 56.32 16.15 56.61 16.15 z M 19.15 16.19 C 19.50 16.19 19.75 16.38 19.89 16.75 C 20.03 17.12 20.09 17.7 20.09 18.5 L 20.09 21.97 C 20.09 22.79 20.03 23.39 19.89 23.75 C 19.75 24.11 19.51 24.29 19.15 24.30 C 18.80 24.30 18.54 24.11 18.41 23.75 C 18.28 23.39 18.22 22.79 18.22 21.97 L 18.22 18.5 C 18.22 17.7 18.28 17.12 18.42 16.75 C 18.56 16.38 18.81 16.19 19.15 16.19 z M 48.63 16.22 C 48.88 16.22 49.08 16.31 49.22 16.51 C 49.36 16.71 49.45 17.05 49.50 17.52 C 49.55 17.99 49.58 18.68 49.58 19.55 L 49.58 21 L 49.59 21 C 49.59 21.81 49.57 22.45 49.5 22.91 C 49.43 23.37 49.32 23.70 49.16 23.89 C 49.00 24.08 48.78 24.17 48.51 24.17 C 48.30 24.17 48.11 24.12 47.94 24.02 C 47.76 23.92 47.62 23.78 47.51 23.58 L 47.51 17.25 C 47.59 16.95 47.75 16.70 47.96 16.50 C 48.17 16.31 48.39 16.22 48.63 16.22 z "}}]}, +z=28666,H=this.api.getVideoData();this.api.isEmbedsShortsMode()?Q={G:"svg",T:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},W:[{G:"path",T:{d:"m.73 13.78 2.57-.05c-.05 2.31.36 3.04 1.34 3.04.95 0 1.34-.61 1.34-1.88 0-1.88-.97-2.83-2.37-4.04C1.47 8.99.55 7.96.55 5.23c0-2.60 1.15-4.14 4.17-4.14 2.91 0 4.12 1.70 3.71 5.20l-2.57.15c.05-2.39-.20-3.22-1.26-3.22-.97 0-1.31.64-1.31 1.82 0 1.77.74 2.31 2.34 3.84 1.98 1.88 3.09 2.98 3.09 5.54 0 3.24-1.26 4.48-4.20 4.48-3.06.02-4.30-1.62-3.78-5.12ZM9.67.74h2.83V4.58c0 1.15-.05 1.95-.15 2.93h.05c.54-1.15 1.44-1.75 2.60-1.75 1.75 0 2.5 1.23 2.5 3.35v9.53h-2.83V9.32c0-1.03-.25-1.54-.90-1.54-.48 0-.92.28-1.23.79V18.65H9.70V.74h-.02ZM18.67 13.27v-1.82c0-4.07 1.18-5.64 3.99-5.64 2.80 0 3.86 1.62 3.86 5.64v1.82c0 3.96-1.00 5.59-3.94 5.59-2.98 0-3.91-1.67-3.91-5.59Zm5 1.03v-3.94c0-1.72-.25-2.60-1.08-2.60-.79 0-1.05.87-1.05 2.60v3.94c0 1.80.25 2.62 1.05 2.62.82 0 1.08-.82 1.08-2.62ZM27.66 6.03h2.19l.25 2.73h.10c.28-2.01 1.21-3.01 2.39-3.01.15 0 .30.02.51.05l-.15 3.27c-1.18-.25-2.13-.05-2.57.72V18.63h-2.73V6.03ZM34.80 15.67V8.27h-1.03V6.05h1.15l.36-3.73h2.11V6.05h1.93v2.21h-1.80v6.98c0 1.18.15 1.44.61 1.44.41 0 .77-.05 1.10-.18l.36 1.80c-.85.41-1.93.54-2.60.54-1.82-.02-2.21-.97-2.21-3.19ZM40.26 14.81l2.39-.05c-.12 1.39.36 2.19 1.21 2.19.72 0 1.13-.46 1.13-1.10 0-.87-.79-1.46-2.16-2.5-1.62-1.23-2.60-2.16-2.60-4.20 0-2.24 1.18-3.32 3.63-3.32 2.60 0 3.63 1.28 3.42 4.35l-2.39.10c-.02-1.90-.28-2.44-1.08-2.44-.77 0-1.10.38-1.10 1.08 0 .97.56 1.44 1.49 2.11 2.21 1.64 3.24 2.47 3.24 4.53 0 2.26-1.28 3.40-3.73 3.40-2.78-.02-3.81-1.54-3.45-4.14Z", +fill:"#fff"}}]}:g.bj(H)&&(Q={G:"svg",T:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},W:[{G:"path",T:{d:"M33.96 20.91V15.45L37.43 4.11H34.84L33.52 9.26C33.22 10.44 32.95 11.67 32.75 12.81H32.59C32.48 11.81 32.16 10.50 31.84 9.24L30.56 4.11H27.97L31.39 15.45V20.91H33.96Z",fill:"white"}},{G:"path",T:{d:"M40.92 8.31C37.89 8.31 36.85 10.06 36.85 13.83V15.62C36.85 19.00 37.50 21.12 40.86 21.12C44.17 21.12 44.88 19.10 44.88 15.62V13.83C44.88 10.46 44.20 8.31 40.92 8.31ZM42.21 16.73C42.21 18.37 41.92 19.40 40.87 19.40C39.84 19.40 39.55 18.36 39.55 16.73V12.69C39.55 11.29 39.75 10.04 40.87 10.04C42.05 10.04 42.21 11.36 42.21 12.69V16.73Z", +fill:"white"}},{G:"path",T:{d:"M49.09 21.10C50.55 21.10 51.46 20.49 52.21 19.39H52.32L52.43 20.91H54.42V8.55H51.78V18.48C51.50 18.97 50.85 19.33 50.24 19.33C49.47 19.33 49.23 18.72 49.23 17.70V8.55H46.60V17.82C46.60 19.83 47.18 21.10 49.09 21.10Z",fill:"white"}},{G:"path",T:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{G:"path",T:{d:"M64.69 21.10C66.15 21.10 67.06 20.49 67.81 19.39H67.92L68.03 20.91H70.02V8.55H67.38V18.48C67.10 18.97 66.45 19.33 65.84 19.33C65.07 19.33 64.83 18.72 64.83 17.70V8.55H62.20V17.82C62.20 19.83 62.78 21.10 64.69 21.10Z", +fill:"white"}},{G:"path",T:{d:"M77.49 8.28C76.21 8.28 75.29 8.84 74.68 9.75H74.55C74.63 8.55 74.69 7.53 74.69 6.72V3.45H72.14L72.13 14.19L72.14 20.91H74.36L74.55 19.71H74.62C75.21 20.52 76.12 21.03 77.33 21.03C79.34 21.03 80.20 19.30 80.20 15.62V13.71C80.20 10.27 79.81 8.28 77.49 8.28ZM77.58 15.62C77.58 17.92 77.24 19.29 76.17 19.29C75.67 19.29 74.98 19.05 74.67 18.60V11.25C74.94 10.55 75.54 10.04 76.21 10.04C77.29 10.04 77.58 11.35 77.58 13.74V15.62Z",fill:"white"}},{G:"path",T:{d:"M89.47 13.51C89.47 10.53 89.17 8.32 85.74 8.32C82.51 8.32 81.79 10.47 81.79 13.63V15.80C81.79 18.88 82.45 21.12 85.66 21.12C88.20 21.12 89.51 19.85 89.36 17.39L87.11 17.27C87.08 18.79 86.73 19.41 85.72 19.41C84.45 19.41 84.39 18.20 84.39 16.40V15.56H89.47V13.51ZM85.68 9.98C86.90 9.98 86.99 11.13 86.99 13.08V14.09H84.39V13.08C84.39 11.15 84.47 9.98 85.68 9.98Z", +fill:"white"}},{G:"path",T:{d:"M93.18 20.86H95.50V13.57C95.50 11.53 95.46 9.36 95.30 6.46H95.56L95.99 8.24L98.73 20.86H101.09L103.78 8.24L104.25 6.46H104.49C104.37 9.03 104.30 11.35 104.30 13.57V20.86H106.63V4.06H102.67L101.25 10.27C100.65 12.85 100.22 16.05 99.97 17.68H99.78C99.60 16.02 99.15 12.83 98.56 10.29L97.10 4.06H93.18V20.86Z",fill:"white"}},{G:"path",T:{d:"M111.27 21.05C112.73 21.05 113.64 20.44 114.39 19.34H114.50L114.61 20.86H116.60V8.50H113.96V18.43C113.68 18.92 113.03 19.28 112.42 19.28C111.65 19.28 111.41 18.67 111.41 17.65V8.50H108.78V17.77C108.78 19.78 109.36 21.05 111.27 21.05Z", +fill:"white"}},{G:"path",T:{d:"M121.82 21.12C124.24 21.12 125.59 20.05 125.59 17.86C125.59 15.87 124.59 15.06 122.21 13.44C121.12 12.72 120.53 12.27 120.53 11.21C120.53 10.42 121.02 10.00 121.91 10.00C122.88 10.00 123.21 10.64 123.25 12.46L125.41 12.34C125.59 9.49 124.57 8.27 121.95 8.27C119.47 8.27 118.28 9.34 118.28 11.46C118.28 13.42 119.21 14.31 120.96 15.53C122.51 16.60 123.36 17.27 123.36 18.16C123.36 18.89 122.85 19.42 121.96 19.42C120.94 19.42 120.36 18.54 120.46 17.21L118.27 17.25C117.93 19.81 119.13 21.12 121.82 21.12Z", +fill:"white"}},{G:"path",T:{d:"M128.45 6.93C129.35 6.93 129.77 6.63 129.77 5.39C129.77 4.23 129.32 3.87 128.45 3.87C127.57 3.87 127.14 4.19 127.14 5.39C127.14 6.63 127.55 6.93 128.45 6.93ZM127.23 20.86H129.76V8.50H127.23V20.86Z",fill:"white"}},{G:"path",T:{d:"M135.41 21.06C136.67 21.06 137.38 20.91 137.95 20.37C138.80 19.63 139.15 18.48 139.09 16.54L136.78 16.42C136.78 18.54 136.44 19.34 135.45 19.34C134.36 19.34 134.18 18.15 134.18 15.99V13.43C134.18 11.07 134.41 9.95 135.47 9.95C136.35 9.95 136.70 10.69 136.70 13.05L138.99 12.89C139.15 11.20 138.98 9.82 138.18 9.05C137.58 8.49 136.69 8.27 135.51 8.27C132.48 8.27 131.54 10.19 131.54 13.84V15.53C131.54 19.18 132.25 21.06 135.41 21.06Z", +fill:"white"}}]},z=216163);g.bj(H)?g.X9(this.element,"ytp-youtube-music-button"):g.yM(this.element,"ytp-youtube-music-button");Q.T=Object.assign({},Q.T,{"aria-hidden":"true"});this.updateValue("logoSvg",Q);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,z,!0)}; +Ff.prototype.pH=function(Q){g.m.prototype.pH.call(this,Q);this.api.logVisibility(this.element,this.visible&&Q)};g.p(z1n,g.Pt);g.S=z1n.prototype;g.S.Ex=function(){if(this.K.V("web_player_max_seekable_on_ended")||!g.w(this.K.getPlayerStateObject(),2))this.progressBar.A7(),this.yl.A7()}; +g.S.lw=function(){this.mC();this.Iz.B?this.Ex():this.progressBar.Z3()}; +g.S.H8=function(){this.Ex();this.N.start()}; +g.S.mC=function(){var Q;if(Q=!this.K.C().B){Q=this.progressBar;var z=2*g.mD()*Q.j;Q=Q.L.getLength()*1E3/Q.api.getPlaybackRate()/z<300}Q=Q&&this.K.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;z=!Q;this.Iz.B||(Q=z=!1);z?this.wh||(this.wh=this.X(this.K,"progresssync",this.Ex)):this.wh&&(this.DS(this.wh),this.wh=null);Q?this.N.isActive()||this.N.start():this.N.stop()}; +g.S.tZ=function(){var Q=this.K.iW(),z=this.K.Un().getPlayerSize(),H=f0p(this),f=Math.max(z.width-H*2,100);if(this.gh!==z.width||this.rT!==Q){this.gh=z.width;this.rT=Q;var b=bVk(this);this.D.element.style.width=b+"px";this.D.element.style.left=H+"px";g.phn(this.progressBar,H,b,Q);this.K.xJ().Bu=b}H=this.L;f=Math.min(570*(Q?1.5:1),f);Q=Math.min(413*(Q?1.5:1),Math.round((z.height-L1u(this))*.82));H.maxWidth=f;H.maxHeight=Q;H.Ty();this.mC();this.K.C().V("html5_player_dynamic_bottom_gradient")&&MRn(this.WI, +z.height)}; +g.S.onVideoDataChange=function(){var Q=this.K.getVideoData();this.En.style.background=Q.gV?Q.H0:"";this.Ze&&g8Y(this.Ze,Q.showSeekingControls);this.U&&g8Y(this.U,Q.showSeekingControls)}; +g.S.ai=function(){return this.D.element};g.p(u2_,Np);g.S=u2_.prototype;g.S.eW=function(Q){Q.target!==this.dismissButton.element&&(this.onClickCommand&&this.K.F$("innertubeCommand",this.onClickCommand),this.XE())}; +g.S.XE=function(){this.enabled=!1;this.U.hide()}; +g.S.onVideoDataChange=function(Q,z){Q==="dataloaded"&&SQp(this);Q=[];var H,f,b,L;if(z=(L=g.K((H=z.getWatchNextResponse())==null?void 0:(f=H.playerOverlays)==null?void 0:(b=f.playerOverlayRenderer)==null?void 0:b.suggestedActionsRenderer,hWY))==null?void 0:L.suggestedActions)for(H=g.n(z),f=H.next();!f.done;f=H.next())(f=g.K(f.value,WzY))&&g.K(f.trigger,ir5)&&Q.push(f);if(Q.length!==0){H=[];Q=g.n(Q);for(f=Q.next();!f.done;f=Q.next())if(f=f.value,b=g.K(f.trigger,ir5))L=(L=f.title)?g.na(L):"View Chapters", +z=b.timeRangeStartMillis,b=b.timeRangeEndMillis,z!=null&&b!=null&&f.tapCommand&&(H.push(new g.fi(z,b,{priority:9,namespace:"suggested_action_button_visible",id:L})),this.suggestedActions[L]=f.tapCommand);this.K.UZ(H)}}; +g.S.vp=function(){return this.enabled}; +g.S.Ox=function(){this.enabled?this.mq.start():oi(this);this.e0()}; +g.S.zv=function(){SQp(this);Np.prototype.zv.call(this)};var xD={},oY=(xD.CHANNEL_NAME="ytp-title-channel-name",xD.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",xD.LINK="ytp-title-link",xD.SESSIONLINK="yt-uix-sessionlink",xD.SUBTEXT="ytp-title-subtext",xD.TEXT="ytp-title-text",xD.TITLE="ytp-title",xD);g.p(JY,g.m);JY.prototype.onClick=function(Q){this.api.logClick(this.element);var z=this.api.C(),H=this.api.getVideoUrl(!g.oQ(Q),!1,!0);g.O8(z)&&(z={},g.qW(this.api,"addEmbedsConversionTrackingParams",[z]),H=g.de(H,z));g.Sf(H,this.api,Q)}; +JY.prototype.Jh=function(){var Q=this.api.getVideoData(),z=this.api.C();this.updateValue("title",Q.title);var H={G:"a",J:oY.CHANNEL_NAME,T:{href:"{{channelLink}}",target:"_blank"},BI:"{{channelName}}"};this.api.C().L&&(H={G:"span",J:oY.CHANNEL_NAME,BI:"{{channelName}}",T:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",H);Xi8(this);this.api.getPresentingPlayerType()===2&&(H=this.api.getVideoData(),H.videoId&&H.isListed&&H.author&&H.KH&&H.profilePicture?(this.updateValue("channelLink", +H.KH),this.updateValue("channelName",H.author),this.updateValue("channelTitleFocusable","0")):Xi8(this));H=z.externalFullscreen||!this.api.isFullscreen()&&z.dS;g.MP(this.link,oY.FULLERSCREEN_LINK,H);z.wh||!Q.videoId||H||g.HG(Q)||z.L?this.Z&&(this.updateValue("url",null),this.DS(this.Z),this.Z=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.Z||(this.Z=this.X(this.link,"click",this.onClick)));z.L&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.O8(z)?Q.expandedTitle: +Q.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.p(g.N8,g.m);g.S=g.N8.prototype;g.S.setEnabled=function(Q){if(this.type!=null)if(Q)switch(this.type){case 3:case 2:ySa(this);this.Y.show();break;default:this.Y.show()}else this.Y.hide();this.N=Q}; +g.S.Qy=function(Q,z,H,f,b,L,u,X){if(!this.yl||this.env.N){this.type===3&&this.Z3();this.type!==1&&(g.un(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.N&&this.Y.show(),this.B&&this.B.dispose(),(this.B=this.api.HU())&&this.B.subscribe("l",this.JR,this));if(X){var v=g.xe(this.bg).height||141;this.f3.style.bottom=v+2+"px"}else this.f3.style.display="none";this.update({text:H,title:L!=null?L:"",eduText:X!=null?X:""});g.MP(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!L);this.api.isInline()&& +g.X9(this.bottomText,"ytp-modern-tooltip-text");g.MP(this.element,"ytp-text-detail",!!f);H=-1;this.B&&(H=PV(this.B,243*this.scale),this.env.V("web_l3_storyboard")&&this.B.levels.length===4&&(H=this.B.levels.length-1),H=gNc(this.B,H,z));MuJ(this,H);if(u)switch(z=g.xe(this.element).width,u){case 1:this.title.style.right="0";this.title.style.textAlign="left";break;case 2:this.title.style.right=z+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=z/2+"px",this.title.style.textAlign= +"center"}qQ9(this,!!f,Q,b)}}; +g.S.bO=function(){this.type===1&&this.Z3()}; +g.S.Ag=function(Q,z){if(this.type)if(this.type===3)this.Z3();else return;vRA(this,Q,3,z)}; +g.S.UX=function(){this.Z&&!this.U&&this.Z.hasAttribute("title")&&(this.L=this.Z.getAttribute("title")||"",this.Z.removeAttribute("title"),this.N&&ySa(this))}; +g.S.JR=function(Q,z){Q<=this.D&&this.D<=z&&(Q=this.D,this.D=NaN,MuJ(this,Q))}; +g.S.GL3=function(){pcc(this.B,this.D,243*this.scale)}; +g.S.Z3=function(){switch(this.type){case 2:var Q=this.Z;Q.removeEventListener("mouseout",this.Ze);Q.addEventListener("mouseover",this.j);Q.removeEventListener("blur",this.Ze);Q.addEventListener("focus",this.j);CO9(this);break;case 3:CO9(this);break;case 1:this.B&&(this.B.unsubscribe("l",this.JR,this),this.B=null),this.api.removeEventListener("videoready",this.wh),this.L3.stop()}this.type=null;this.N&&this.Y.hide()}; +g.S.Lg=function(){if(this.Z)for(var Q=0;Q=0;z--)if(this.vn[z]===Q){this.vn.splice(z,1);break}PE(this.Iz,64,this.vn.length>0)}; +g.S.mJ=function(){this.api.ZC()&&this.api.t_();return!!this.dY||ZV8(this)||g.d3.prototype.mJ.call(this)}; +g.S.Lx=fn(3);g.S.Fx=fn(7);g.S.Nt=fn(10); +g.S.bF=function(){var Q=!this.mJ(),z=Q&&this.api.ZC()&&!g.w(this.api.getPlayerStateObject(),2)&&!g.HG(this.api.getVideoData())&&!this.api.C().L&&!this.api.isEmbedsShortsMode(),H=this.wX&&g.Af(this.api)&&g.w(this.api.getPlayerStateObject(),128);Q||H?(this.W3.show(),this.Tc.show()):(this.W3.hide(),this.Tc.hide(),this.api.Lg(this.Gs.element));z?this.aJ.ir():this.aJ.fH();this.Xf&&HVL(this.Xf,this.AA||!Q);this.api.V("web_player_hide_overflow_button_if_empty_menu")&&GFJ(this);g.d3.prototype.bF.call(this)}; +g.S.Bp=function(Q,z,H,f,b){Q.style.left="";Q.style.top="";Q.style.bottom="";var L=g.xe(Q),u=f||this.Xf&&g.vx(this.Xf.ai(),z),X=f=null;H!=null&&u||(f=g.xe(z),X=g.j$(z,this.api.getRootNode()),H==null&&(H=X.x+f.width/2));H-=L.width/2;u?(z=this.Xf,f=f0p(z),X=bVk(z),u=this.api.Un().getPlayerSize().height,H=g.y4(H,f,f+X-L.width),L=u-L1u(z)-L.height):g.vx(this.Gs.element,z)?(z=this.api.Un().getPlayerSize().width,H=g.y4(H,12,z-L.width-12),L=this.iW()?this.zC:this.xS,this.api.C().playerStyle==="gvn"&&(L+= +20),this.wX&&(L-=this.iW()?26:18)):(z=this.api.Un().getPlayerSize(),H=g.y4(H,12,z.width-L.width-12),L=X.y>(z.height-f.height)/2?X.y-L.height-12:X.y+f.height+12);Q.style.top=L+(b||0)+"px";Q.style.left=H+"px"}; +g.S.lw=function(Q){Q&&(this.api.Lg(this.Gs.element),this.Xf&&this.api.Lg(this.Xf.ai()));this.W6&&(g.MP(this.contextMenu.element,"ytp-autohide",Q),g.MP(this.contextMenu.element,"ytp-autohide-active",!0));g.d3.prototype.lw.call(this,Q)}; +g.S.cW=function(){g.d3.prototype.cW.call(this);this.W6&&(g.MP(this.contextMenu.element,"ytp-autohide-active",!1),this.W6&&(this.contextMenu.hide(),this.qO&&this.qO.hide()))}; +g.S.A8=function(Q,z){var H=this.api.Un().getPlayerSize();H=new g.XL(0,0,H.width,H.height);if(Q||this.Iz.B&&!this.mJ()){if(this.api.C().P5||z)Q=this.iW()?this.zC:this.xS,H.top+=Q,H.height-=Q;this.Xf&&(H.height-=L1u(this.Xf))}return H}; +g.S.oK=function(Q){var z=this.api.getRootNode();Q?z.parentElement?(z.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.C().externalFullscreen||(z.parentElement.insertBefore(this.b4.element,z),z.parentElement.insertBefore(this.Do.element,z.nextSibling))):g.PT(Error("Player not in DOM.")):(z.setAttribute("aria-label","YouTube Video Player"),this.b4.detach(),this.Do.detach());this.tZ();this.GY()}; +g.S.iW=function(){var Q=this.api.C();return this.api.isFullscreen()&&!Q.N||!1}; +g.S.showControls=function(Q){this.SV=!Q;this.bF()}; +g.S.tZ=function(){var Q=this.iW();this.tooltip.scale=Q?1.5:1;this.contextMenu&&g.MP(this.contextMenu.element,"ytp-big-mode",Q);this.bF();this.api.V("web_player_hide_overflow_button_if_empty_menu")||GFJ(this);this.GY();var z=this.api.isEmbedsShortsMode();z&&Q?(Q=(this.api.Un().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.M2(this.Gs.element,"padding-left",Q+"px"),g.M2(this.Gs.element,"padding-right",Q+"px")):z&&(g.M2(this.Gs.element,"padding-left",""),g.M2(this.Gs.element,"padding-right", +""));g.d3.prototype.tZ.call(this)}; +g.S.v4=function(){if(ZV8(this)&&!g.Af(this.api))return!1;var Q=this.api.getVideoData();return!g.O8(this.api.C())||this.api.getPresentingPlayerType()===2||!this.S3||((Q=this.S3||Q.S3)?(Q=Q.embedPreview)?(Q=Q.thumbnailPreviewRenderer,Q=Q.videoDetails&&g.K(Q.videoDetails,HQA)||null):Q=null:Q=null,Q&&Q.collapsedRenderer&&Q.expandedRenderer)?g.d3.prototype.v4.call(this):!1}; +g.S.GY=function(){g.d3.prototype.GY.call(this);this.api.logVisibility(this.title.element,!!this.Up);this.uw&&this.uw.pH(!!this.Up);this.channelAvatar.pH(!!this.Up);this.overflowButton&&this.overflowButton.pH(this.HB()&&!!this.Up);this.shareButton&&this.shareButton.pH(!this.HB()&&!!this.Up);this.nP&&this.nP.pH(!this.HB()&&!!this.Up);this.searchButton&&this.searchButton.pH(!this.HB()&&!!this.Up);this.copyLinkButton&&this.copyLinkButton.pH(!this.HB()&&!!this.Up);if(!this.Up){this.api.Lg(this.Gs.element); +for(var Q=0;Q5&&z.On("glrs",{cmt:H});z.seekTo(0,{seekSource:58});z.On("glrre",{cmt:H})}}; +ro.prototype.zv=function(){this.Z=null;g.h.prototype.zv.call(this)};g.p(g.s3,eP);g.S=g.s3.prototype;g.S.isView=function(){return!0}; +g.S.Hg=function(){var Q=this.mediaElement.getCurrentTime();if(Q1;X$(Q.N4(),f-.01)&&!b&&(PP(this,4),H.isActive=!1,H.xL=H.xL||H.isActive,(this.S===1?this.Z:this.B).On("sbh",{}),z.isActive=!0,z.xL=z.xL||z.isActive,this.S!==0&&(this.Z.getVideoData().oa=!0));Q=this.D.B;if(this.D.Z.isActive&&Q.isActive&&(PP(this,5),this.S!==0)){Q=this.B.wq();H=this.Z.wq(); +this.Z.On("sbs",{citag:H==null?void 0:H.itag,nitag:Q==null?void 0:Q.itag});this.B.On("gitags",{pitag:H==null?void 0:H.itag,citag:Q==null?void 0:Q.itag});var L;(L=this.B)==null||L.F1()}}}; +g.S.iV=function(){this.Ll()&&this.wP("player-reload-after-handoff")}; +g.S.wP=function(Q,z){z=z===void 0?{}:z;if(!this.Sm()&&this.status.status!==6){var H=this.status.status>=4&&Q!=="player-reload-after-handoff";this.status={status:Infinity,error:Q};if(this.Z&&this.B){var f=this.B.getVideoData().clientPlaybackNonce;this.Z.h7(new oj("dai.transitionfailure",Object.assign(z,{cpn:f,transitionTimeMs:this.e8,msg:Q})));this.Z.TX(H)}this.LZ.reject(Q);this.dispose()}}; +g.S.Ll=function(){return this.status.status>=4&&this.status.status<6}; +g.S.zv=function(){s_v(this);this.Z.unsubscribe("newelementrequired",this.iV,this);if(this.L){var Q=this.L.B;this.L.Z.oB.unsubscribe("updateend",this.aW,this);Q.oB.unsubscribe("updateend",this.aW,this)}g.h.prototype.zv.call(this)}; +g.S.qH=function(Q){g.pp(Q,128)&&this.wP("player-error-event")};g.p(aY,g.h);aY.prototype.clearQueue=function(Q,z){Q=Q===void 0?!1:Q;z=z===void 0?!1:z;this.D&&this.D.reject("Queue cleared");this.app.C().V("html5_gapless_fallback_on_qoe_restart_v2")||z&&this.B&&this.B.TX(!1);U3(this,Q)}; +aY.prototype.PU=function(){return!this.Z}; +aY.prototype.Ll=function(){var Q;return((Q=this.L)==null?void 0:Q.Ll())||!1}; +aY.prototype.zv=function(){U3(this);g.h.prototype.zv.call(this)};g.p(h1L,g.vf);g.S=h1L.prototype;g.S.getVisibilityState=function(Q,z,H,f,b,L,u,X){return Q?4:iIn()?3:z?2:H?1:f?5:b?7:L?8:u?9:X?10:0}; +g.S.tB=function(Q){this.fullscreen!==Q&&(this.fullscreen=Q,this.Ox())}; +g.S.setMinimized=function(Q){this.B!==Q&&(this.B=Q,this.Ox())}; +g.S.setInline=function(Q){this.inline!==Q&&(this.inline=Q,this.Ox())}; +g.S.z$=function(Q){this.pictureInPicture!==Q&&(this.pictureInPicture=Q,this.Ox())}; +g.S.setSqueezeback=function(Q){this.L!==Q&&(this.L=Q,this.Ox())}; +g.S.Kx=function(Q){this.D!==Q&&(this.D=Q,this.Ox())}; +g.S.oJ=function(){return this.Z}; +g.S.Sd=function(){return this.fullscreen!==0}; +g.S.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; +g.S.mG=function(){return this.fullscreen}; +g.S.isMinimized=function(){return this.B}; +g.S.isInline=function(){return this.inline}; +g.S.isBackground=function(){return iIn()}; +g.S.S2=function(){return this.pictureInPicture}; +g.S.CK=function(){return!1}; +g.S.Tn=function(){return this.L}; +g.S.Vf=function(){return this.D}; +g.S.Ox=function(){this.publish("visibilitychange");var Q=this.getVisibilityState(this.oJ(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.S2(),this.CK(),this.Tn(),this.Vf());Q!==this.j&&this.publish("visibilitystatechange");this.j=Q}; +g.S.zv=function(){D5Y(this.S);g.vf.prototype.zv.call(this)};g.S=g.cP.prototype;g.S.addCueRange=function(){}; +g.S.pZ=function(){}; +g.S.sM=function(){}; +g.S.mj=function(){return!1}; +g.S.A3=function(){return!1}; +g.S.sD=function(){}; +g.S.sN=function(){}; +g.S.m6=function(){}; +g.S.v5=function(){}; +g.S.Rc=function(){return[]}; +g.S.rR=function(){}; +g.S.R0=function(){return""}; +g.S.getAudioTrack=function(){return this.getVideoData().j2}; +g.S.getAvailableAudioTracks=function(){return[]}; +g.S.Qz=function(){return[]}; +g.S.FV=function(){return[]}; +g.S.o6=function(){return[]}; +g.S.HC=function(){}; +g.S.yN=function(){return 0}; +g.S.cT=function(){return""}; +g.S.getCurrentTime=function(){return 0}; +g.S.Ow=function(){}; +g.S.wq=function(){}; +g.S.TL=function(){return{}}; +g.S.getDuration=function(){return 0}; +g.S.yf=function(){return 0}; +g.S.JM=function(){return 0}; +g.S.ZR=function(){return!1}; +g.S.SN=function(){return 0}; +g.S.zp=function(){return 0}; +g.S.N0=fn(15);g.S.B0=function(){return 0}; +g.S.FD=function(){return!1}; +g.S.qj=function(){return 0}; +g.S.aB=function(){return null}; +g.S.AB=function(){return null}; +g.S.jx=function(){return 0}; +g.S.i4=function(){return 0}; +g.S.lL=function(){return g.B(function(Q){g.$v(Q)})}; +g.S.LV=fn(21);g.S.getPlaybackQuality=function(){return"auto"}; +g.S.getPlaybackRate=function(){return 1}; +g.S.getPlayerState=function(){this.playerState||(this.playerState=new g.HR);return this.playerState}; +g.S.getPlayerType=function(){return 0}; +g.S.getPlaylistSequenceForTime=function(){return null}; +g.S.kV=function(){return function(){}}; +g.S.tj=function(){return""}; +g.S.getPreferredQuality=function(){return"unknown"}; +g.S.T0=function(){}; +g.S.getProximaLatencyPreference=function(){return 0}; +g.S.lR=function(){return D1}; +g.S.HU=function(){return null}; +g.S.getStoryboardFormat=function(){return null}; +g.S.getStreamTimeOffset=function(){return 0}; +g.S.Gl=function(){return 0}; +g.S.ex=function(){return 0}; +g.S.bv=function(){return{yK:[],f_:[],currentTime:0,UM:"",droppedVideoFrames:0,isGapless:!1,PU:!0,gR:0,Aq:0,VL:0,nO:0,Y_:0,Ez:[],MQ:[],Mb:null,playerState:this.getPlayerState(),v9:null,zA:"",totalVideoFrames:0}}; +g.S.getUserAudio51Preference=function(){return 0}; +g.S.getUserPlaybackQualityPreference=function(){return""}; +g.S.getVideoData=function(){this.videoData||(this.videoData=new g.Kv(this.rh));return this.videoData}; +g.S.e5=function(){return null}; +g.S.Ki=function(){}; +g.S.getVideoLoadedFraction=function(){return 0}; +g.S.Hn=function(){}; +g.S.handleError=function(){}; +g.S.TX=function(){}; +g.S.J6=function(){}; +g.S.GF=function(){return!1}; +g.S.Dz=fn(46);g.S.l7=function(){return!1}; +g.S.hasSupportedAudio51Tracks=function(){return!1}; +g.S.vG=function(){return!1}; +g.S.oJ=function(){return!1}; +g.S.isAtLiveHead=function(){return!1}; +g.S.qm=function(){return!0}; +g.S.isGapless=function(){return!1}; +g.S.isHdr=function(){return!1}; +g.S.q3=function(){return!1}; +g.S.DG=function(){return!1}; +g.S.NS=function(){return!1}; +g.S.isProximaLatencyEligible=function(){return!1}; +g.S.PU=function(){return!0}; +g.S.Rn=function(){return!1}; +g.S.KQ=function(){return!1}; +g.S.Uw=function(){return!1}; +g.S.F0=function(){}; +g.S.y7=function(){}; +g.S.i5=function(){}; +g.S.Rk=function(){}; +g.S.F1=function(){}; +g.S.JH=function(){}; +g.S.gF=function(){}; +g.S.PJ=function(){}; +g.S.Hm=function(){}; +g.S.Ct=fn(56);g.S.tT=fn(27);g.S.Y8=function(){}; +g.S.H9=function(){}; +g.S.MI=function(){}; +g.S.pauseVideo=function(){}; +g.S.playVideo=function(){return g.B(function(Q){return Q.return()})}; +g.S.Tp=function(){}; +g.S.Zs=fn(33);g.S.CA=fn(39);g.S.us=function(){}; +g.S.On=function(){}; +g.S.C4=function(){}; +g.S.rA=function(){}; +g.S.o$=function(){}; +g.S.h7=function(){}; +g.S.FN=function(){}; +g.S.UL=function(){}; +g.S.gK=function(){}; +g.S.HR=function(){}; +g.S.RI=function(){}; +g.S.o7=function(){}; +g.S.Iv=function(){}; +g.S.gk=function(){}; +g.S.removeCueRange=function(){}; +g.S.OR=function(){}; +g.S.Ys=function(){return[]}; +g.S.gq=function(){}; +g.S.MO=function(){}; +g.S.r$=function(){}; +g.S.Oi=function(){}; +g.S.Lj=function(){}; +g.S.iU=function(){}; +g.S.B3=function(){}; +g.S.seekTo=function(){}; +g.S.sendAbandonmentPing=function(){}; +g.S.sendVideoStatsEngageEvent=function(){}; +g.S.Vc=function(){}; +g.S.x7=function(){}; +g.S.setLoop=function(){}; +g.S.SF=function(){}; +g.S.setMediaElement=function(){}; +g.S.B2=function(){}; +g.S.setPlaybackRate=function(){}; +g.S.VN=function(){}; +g.S.BR=function(){}; +g.S.PS=function(){}; +g.S.setProximaLatencyPreference=function(){}; +g.S.DU=function(){}; +g.S.y5=function(){}; +g.S.L$=function(){}; +g.S.Sv=function(){}; +g.S.nj=function(){}; +g.S.setUserAudio51Preference=function(){}; +g.S.jD=function(){}; +g.S.Uq=function(){return!1}; +g.S.bf=function(){}; +g.S.U7=function(){return!1}; +g.S.gX=function(){}; +g.S.v2=function(){}; +g.S.E0=function(){}; +g.S.stopVideo=function(){}; +g.S.subscribe=function(){return NaN}; +g.S.rZ=function(){}; +g.S.togglePictureInPicture=function(){}; +g.S.kR=function(){return 0}; +g.S.unsubscribe=function(){return!1}; +g.S.AY=function(){}; +g.S.xB=function(){return!1}; +g.S.Op=function(){}; +g.S.ye=function(){}; +g.S.aC=function(){}; +g.S.w5=function(){};g.p(g.i_,g.h);g.S=g.i_.prototype;g.S.ey=function(){return this.S}; +g.S.jF=function(Q){this.S=Q}; +g.S.X$=function(){return this.rh.V("web_player_present_empty")?this.D||this.Z:this.D}; +g.S.Rl=function(Q){this.D=Q}; +g.S.Go=fn(52);g.S.TQ=fn(54);g.S.QE=function(Q){return this.L[Q]||null}; +g.S.zv=function(){for(var Q=g.n(Object.values(this.L)),z=Q.next();!z.done;z=Q.next())z.value.v5();g.h.prototype.zv.call(this)};g.p(hY,g.h);g.S=hY.prototype;g.S.enqueue=function(Q,z){if(Q.D!==this)return!1;if(this.segments.length===0||(z===void 0?0:z))this.Z=Q;this.segments.push(Q);return!0}; +g.S.G1=function(){return this.sY||0}; +g.S.AT=function(){return this.D||0}; +g.S.removeAll=function(){for(;this.segments.length;){var Q=void 0;(Q=this.segments.pop())==null||Q.dispose()}this.B.clear();this.L=void 0}; +g.S.zv=function(){this.removeAll();g.h.prototype.zv.call(this)}; +g.p(e1J,g.h);g.S=e1J.prototype;g.S.G1=function(){return this.sY}; +g.S.AT=function(){return this.L}; +g.S.getType=function(){return this.type}; +g.S.getVideoData=function(){return this.videoData}; +g.S.Yg=function(Q){OC(Q);this.videoData=Q}; +g.S.zv=function(){l0a(this);g.h.prototype.zv.call(this)};g.Vz.prototype.DM=function(Q,z){if(z===1)return this.Z.get(Q);if(z===2)return this.L.get(Q);if(z===3)return this.B.get(Q)}; +g.Vz.prototype.Vg=fn(64);g.Vz.prototype.O2=function(Q,z,H,f){H={vP:f,GD:H};z?this.L.set(Q,H):this.Z.set(Q,H)}; +g.Vz.prototype.clearAll=function(){this.Z.clear();this.L.clear();this.B.clear()}; +g.p(g.mV,g.h);g.S=g.mV.prototype;g.S.h1=function(Q,z,H){return new g.fi(Q,z,{id:H,namespace:"serverstitchedcuerange",priority:9})}; +g.S.RX=function(Q){var z=Q.bd?Q.bd*1E3:Q.sY,H=this.B.get(Q.cpn);H&&this.playback.removeCueRange(H);this.B.delete(Q.cpn);this.L.delete(Q.cpn);H=this.S.indexOf(Q);H>=0&&this.S.splice(H,1);H=[];for(var f=g.n(this.j),b=f.next();!b.done;b=f.next())b=b.value,b.end<=z?this.playback.removeCueRange(b):H.push(b);this.j=H;E0a(this,0,z+Q.durationMs)}; +g.S.onCueRangeEnter=function(Q){this.En.push(Q);var z=Q.getId();this.Hz({oncueEnter:1,cpn:z,start:Q.start,end:Q.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.yN()||0).toFixed(3)});var H=z==="";this.C3.add(Q.B);var f=this.L.get(z);if(H){var b;if(this.playback.getVideoData().OZ()&&((b=this.Z)==null?0:b.Js)&&this.D){this.aN=0;this.Z=void 0;this.wh&&(this.events.DS(this.wh),this.wh=null);this.D="";this.iT=!0;return}}else if(this.Hz({enterAdCueRange:1}),this.playback.getVideoData().OZ()&& +(f==null?0:f.tU))return;if(this.iT&&!this.Z)this.iT=!1,!H&&f&&(H=this.playback.getCurrentTime(),RY(this,{VR:Q,isAd:!0,Ap:!0,YV:H,adCpn:z},{isAd:!1,Ap:!1,YV:H}),this.qz=f.cpn,ek(this,f),Q=TB(this,"midab",f),this.Hz(Q),this.aN=1),this.U=!1;else if(this.Z){if(this.Z.Ap)this.Hz({a_pair_of_same_transition_occurs_enter:1,acpn:this.Z.adCpn,transitionTime:this.Z.YV,cpn:z,currentTime:this.playback.getCurrentTime()}),f=this.playback.getCurrentTime(),Q={VR:Q,isAd:!H,Ap:!0,YV:f,adCpn:z},z={VR:this.Z.VR,isAd:this.Z.isAd, +Ap:!1,YV:f,adCpn:this.Z.adCpn},this.Z.VR&&this.C3.delete(this.Z.VR.B),RY(this,Q,z);else{if(this.Z.VR===Q){this.Hz({same_cue_range_pair_enter:1,acpn:this.Z.adCpn,transitionTime:this.Z.YV,cpn:z,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:Q.start,cueRangeEndTime:Q.end});this.Z=void 0;return}if(this.Z.adCpn===z){z&&this.Hz({dchtsc:z});this.Z=void 0;return}Q={VR:Q,isAd:!H,Ap:!0,YV:this.playback.getCurrentTime(),adCpn:z};RY(this,Q,this.Z)}this.Z=void 0;this.U=!1}else this.Z={VR:Q,isAd:!H, +Ap:!0,YV:this.playback.getCurrentTime(),adCpn:z}}; +g.S.onCueRangeExit=function(Q){var z=Q.getId();this.Hz({oncueExit:1,cpn:z,start:Q.start,end:Q.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.yN()||0).toFixed(3)});var H=z==="",f=this.L.get(z);if(this.playback.getVideoData().OZ()&&!H&&f){if(f.tU)return;f.tU=!0;this.N.clear();if(this.rh.V("html5_lifa_no_rewatch_ad_sbc"))if(this.playback.mj()){var b=f.sY;this.playback.gk(b/1E3,(b+f.durationMs)/1E3)}else this.playback.On("lifa",{remove:0})}if(this.C3.has(Q.B))if(this.C3.delete(Q.B), +this.En=this.En.filter(function(L){return L!==Q}),this.iT&&(this.U=this.iT=!1,this.Hz({cref:1})),this.Z){if(this.Z.Ap){if(this.Z.VR===Q){this.Hz({same_cue_range_pair_exit:1, +acpn:this.Z.adCpn,transitionTime:this.Z.YV,cpn:z,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:Q.start,cueRangeEndTime:Q.end});this.Z=void 0;return}if(this.Z.adCpn===z){z&&this.Hz({dchtsc:z});this.Z=void 0;return}z={VR:Q,isAd:!H,Ap:!1,YV:this.playback.getCurrentTime(),adCpn:z};RY(this,this.Z,z)}else if(this.Hz({a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.Z.adCpn,transitionTime:this.Z.YV,upcomingCpn:z,contentCpn:this.playback.getVideoData().clientPlaybackNonce,currentTime:this.playback.getCurrentTime()}), +this.Z.adCpn===z)return;this.Z=void 0;this.U=!1}else this.Z={VR:Q,isAd:!H,Ap:!1,YV:this.playback.getCurrentTime(),adCpn:z};else this.Hz({ignore_single_exit:1})}; +g.S.hj=function(){return{cpn:this.playback.getVideoData().clientPlaybackNonce,durationMs:0,sY:0,playerType:1,Zm:0,videoData:this.playback.getVideoData(),errorCount:0}}; +g.S.f4=function(){if(this.bZ)return!1;var Q=void 0;this.qz&&(Q=this.L.get(this.qz));return this.playback.getVideoData().OZ()?!!Q&&!Q.tU:!!Q}; +g.S.seekTo=function(Q,z,H,f){Q=Q===void 0?0:Q;z=z===void 0?{}:z;H=H===void 0?!1:H;f=f===void 0?null:f;if(this.playback.getVideoData().OZ()&&Q<=this.De/1E3)this.playback.pauseVideo(),this.De=0,this.U=!0,this.playback.lL(),this.playback.seekTo(Q),this.playback.playVideo();else if(this.U=!0,H)QNJ(this,Q,z);else{H=this.app.X$();var b=H===this.uT?this.yE:null;zD(this,!1);this.EY=Q;this.Xa=z;f!=null&&this.KH.start(f);H&&(this.yE=b||H.getPlayerState(),H.E0(),this.uT=H)}}; +g.S.zv=function(){zD(this,!1);XFn(this);v06(this);g.h.prototype.zv.call(this)}; +g.S.Ji=function(Q){this.gT=Q;this.Hz({swebm:Q})}; +g.S.j6=function(Q,z,H){if(H&&z){var f=this.N.get(Q);if(f){f.locations||(f.locations=new Map);var b=Number(z.split(";")[0]);H=new g.GQ(H);this.Hz({hdlredir:1,itag:z,seg:Q,hostport:jl(H)});f.locations.set(b,H)}}}; +g.S.Vb=function(Q,z,H,f,b,L){var u=f===3,X=qq_(this,Q,z,f,H,L);if(!X){fJ(this,z,u);var v=g.yVn(this,z)?"undec":"ncp";this.Hz({gvprp:v,mt:Q,seg:z,tt:f,itag:H,ce:L});return null}u||this.N.set(z,X);L=X.PY;var y;f=((y=this.DM(z-1,f,b))==null?void 0:y.vP)||"";f===""&&this.Hz({eds:1});y=CXa(this,X.ssdaiAdsConfig);b=this.playback.getVideoData();var q;u=((q=b.B)==null?void 0:q.containerType)||0;q=b.eG[u];X=X.xR&&z>=X.xR?X.xR:void 0;q={y8:L?n0L(this,L):[],Hx:y,vP:f,TU:X,Wb:H3(q.split(";")[0]),TH:q.split(";")[1]|| +""};X={t8:q};this.gh&&(Q={gvprpro:"v",sq:z,mt:Q.toFixed(3),itag:H,acpns:((v=q.y8)==null?void 0:v.join("_"))||"none",abid:L},this.Hz(Q));return X}; +g.S.W4=function(Q){a:{if(!this.bZ){var z=MCu(this,Q);if(!(this.playback.getVideoData().OZ()&&(z==null?0:z.tU)))break a}z=void 0}var H=z;if(!H)return this.Hz({gvprp:"ncp",mt:Q}),null;z=H.PY;var f=CXa(this,H.ssdaiAdsConfig);H=H.xR&&H.d2&&Q>=H.d2?H.xR:void 0;var b=this.playback.getVideoData(),L,u=((L=b.B)==null?void 0:L.containerType)||0;L=b.eG[u];L={y8:z?n0L(this,z):[],Hx:f,TU:H,Wb:H3(L.split(";")[0]),TH:L.split(";")[1]||""};var X;Q={gvprpro:"v",mt:Q.toFixed(3),acpns:((X=L.y8)==null?void 0:X.join("_"))|| +"none",abid:z};this.Hz(Q);return L}; +g.S.ZM=function(Q,z,H,f,b,L){var u=Number(H.split(";")[0]),X=f===3;Q=qq_(this,Q,z,f,H,L);this.Hz({gdu:1,seg:z,itag:u,pb:""+!!Q});if(!Q)return fJ(this,z,X),null;Q.locations||(Q.locations=new Map);if(!Q.locations.has(u)){var v,y;L=(v=Q.videoData.getPlayerResponse())==null?void 0:(y=v.streamingData)==null?void 0:y.adaptiveFormats;if(!L)return this.Hz({gdu:"noadpfmts",seg:z,itag:u}),fJ(this,z,X),null;v=L.find(function(C){return C.itag===u}); +if(!v||!v.url){var q=Q.videoData.videoId;Q=[];var M=g.n(L);for(f=M.next();!f.done;f=M.next())Q.push(f.value.itag);this.Hz({gdu:"nofmt",seg:z,vid:q,itag:u,fullitag:H,itags:Q.join(",")});fJ(this,z,X);return null}Q.locations.set(u,new g.GQ(v.url,!0))}L=Q.locations.get(u);if(!L)return this.Hz({gdu:"nourl",seg:z,itag:u}),fJ(this,z,X),null;L=new C_(L);this.gT&&(L.get("dvc")?this.Hz({dvc:L.get("dvc")||""}):L.set("dvc","webm"));(f=(M=this.DM(z-1,f,b))==null?void 0:M.vP)&&L.set("daistate",f);Q.xR&&z>=Q.xR&& +L.set("skipsq",""+Q.xR);(M=this.playback.getVideoData().clientPlaybackNonce)&&L.set("cpn",M);M=[];Q.PY&&(M=n0L(this,Q.PY),M.length>0&&L.set("acpns",M.join(",")));X||this.N.set(z,Q);X=null;X=L.get("aids");f=L.mM();(f==null?void 0:f.length)>2048&&this.Hz({urltoolong:1,sq:z,itag:u,len:f.length});this.gh&&(f&&(L=Q.cpn,b=Q.PY,Gkk(this,L,b),b&&!this.yR.has(b)&&(L=g0a(this,L,b),v=Zzk(this,b),this.Hz({iofa:L}),this.Hz({noawnzd:v-L}),this.Hz({acpns:M.join("."),aids:(q=X)==null?void 0:q.replace(/,/g,".")}), +this.yR.add(b))),this.Hz({gdu:"v",seg:z,itag:H,ast:Q.sY.toFixed(3),alen:Q.durationMs.toFixed(3),acpn:Q.cpn,avid:Q.videoData.videoId}));return f}; +g.S.zo=function(Q,z,H){var f=Hg(this,Q,H);return(f=f?(f.sY+f.durationMs)/1E3:0)&&z>f?(this.UT(Q,H,!0),this.playback.seekTo(f),!0):!1}; +g.S.UT=function(Q,z,H){H=H===void 0?!1:H;var f=Hg(this,Q,z);if(f){var b=void 0,L=f.PY;if(L){this.Hz({skipadonsq:z,sts:H,abid:L,acpn:f.cpn,avid:f.videoData.videoId});H=this.Y.get(L);if(!H)return;H=g.n(H);for(L=H.next();!L.done;L=H.next())L=L.value,L.xR=z,L.d2=Q,L.sY>f.sY&&(b=L)}this.D=f.cpn;tCa(this);Q=this.playback.getCurrentTime();l_(this,f,b,Q,Q,!1,!0)}}; +g.S.wb=function(){for(var Q=g.n(this.S),z=Q.next();!z.done;z=Q.next())z=z.value,z.xR=NaN,z.d2=NaN;tCa(this);this.Hz({rsac:"resetSkipAd",sac:this.D});this.D=""}; +g.S.DM=function(Q,z,H){return this.jm.DM(Q,z,H)}; +g.S.Vg=fn(63); +g.S.O2=function(Q,z,H,f,b,L,u,X,v){f.length>0&&this.Hz({onssinfo:1,sq:Q,start:z.toFixed(3),cpns:f.join(","),ds:b.join(","),isVideo:u?1:0});v&&this.jm.O2(Q,u,X,v);v=uE(this.playback.getVideoData())&&this.rh.V("html5_process_all_cuepoints");if(u||v){if(f.length&&b.length)for(this.D&&this.D===f[0]&&this.Hz({skipfail:1,sq:Q,acpn:this.D}),Q=z+this.Gl(),u=0;u0&&(this.aN=0,this.qz="",this.api.publish("serverstitchedvideochange"));this.playback.m6(H,f);return!0}; +g.S.UN=function(){this.Hz({rstdaist:1});this.jm.clearAll()}; +g.S.dc=function(Q){var z;if(Q!==((z=this.L3)==null?void 0:z.identifier))this.Hz({ignorenoad:Q});else{this.Bc.add(Q);var H;((H=this.L3)==null?void 0:H.identifier)===Q&&k2(this)}}; +g.S.fG=function(){return this.aN}; +g.S.l$=function(){return this.qz}; +g.S.Q6=function(Q){if(this.bZ)return this.Hz({dai_disabled:Q.event}),!1;if(this.playback.getVideoData().OZ()&&(this.rh.V("html5_lifa_no_gab_on_predict_start")&&Q.event==="predictStart"||Q.event==="continue"||Q.event==="stop"))return this.Hz({cuepoint_skipped:Q.event}),!1;var z=IO(this.api.xt());if(z=z?z.Q6(Q):!1)this.Ze={V4:Q.identifier,CY:Q.startSecs};else if(this.Ze&&this.Ze.V4===Q.identifier&&Q.startSecs>this.Ze.CY+1){this.Hz({cueStChg:Q.identifier,oldSt:this.Ze.CY.toFixed(3),newSt:Q.startSecs.toFixed(3), +abid:this.Ze.hf});if(this.Ze.hf){var H=Q.startSecs-this.Ze.CY,f=this.Y.get(this.Ze.hf);if(f){f=g.n(f);for(var b=f.next();!b.done;b=f.next())b=b.value,b.sY>=0&&(b.sY+=H*1E3,this.rh.V("html5_ssdai_update_timeline_on_start_time_change")&&(b.Zm+=H*1E3),this.Hz({newApEt:b.sY,newApPrt:b.Zm,acpn:b.cpn}))}}this.Ze.CY=Q.startSecs}return z}; +g.S.tX=function(Q){return this.bZ?!1:!!MCu(this,Q)}; +g.S.Cj=function(Q){var z=this;this.playback.pauseVideo();var H=this.playback.getCurrentTime(),f=this.rh.V("html5_lifa_reset_segment_index_on_skip"),b=f?H+this.playback.Gl():H,L=this.L.get(this.qz),u=this.B.get(this.qz);if(L){this.D=this.qz;this.U=!1;L.tU=!0;H=this.playback.getCurrentTime();this.Z={VR:u,isAd:!0,Ap:!1,YV:H,adCpn:this.qz,Js:L,R7m:Q};this.playback.HR(L,this.hj(),H,this.playback.getCurrentTime(),!1,!0,Q,(0,g.IE)());f&&this.playback.Y8();if(u==null?0:u.start)this.De=H*1E3-u.start;this.N.clear(); +this.playback.lL();this.qz=this.hj().cpn;this.api.publish("serverstitchedvideochange");this.playback.seekTo(b,{seekSource:89,lr:"lifa_skip"});this.playback.playVideo();this.wh||(this.wh=this.events.X(this.api,"progresssync",function(){z.RX(L)})); +return!0}this.Hz({skipFail:H},!0);return!1}; +g.S.Hz=function(Q,z){((z===void 0?0:z)||this.gh||this.playback.getVideoData().OZ())&&this.playback.On("sdai",Q)}; +var bzn=0;g.p($w9,g.mV);g.S=$w9.prototype;g.S.onCueRangeEnter=function(Q){var z=Q.getId();this.playback.On("sdai",{oncueEnter:1,cpn:z,start:Q.start,end:Q.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.yN()||0).toFixed(3)});Q=this.L.get(z);this.playback.On("sdai",{enterAdCueRange:1});z=this.qz||this.hj().cpn;var H;z=(H=this.L.get(z))!=null?H:this.hj();Q&&(H={OF:z,ge:Q,rW:this.playback.getCurrentTime()},this.qn(H))}; +g.S.onCueRangeExit=function(Q){var z=this.playback.getCurrentTime()*1E3;Q=Q.getId();for(var H=g.n(this.B.values()),f=H.next();!f.done;f=H.next())if(f=f.value,f.getId()!==Q&&z>=f.start&&z<=f.end)return;if(z=this.L.get(Q))z={OF:z,ge:this.hj(),rW:this.playback.getCurrentTime()},this.qn(z)}; +g.S.qn=function(Q){this.D||this.U||this.r5(this.qz);var z=Q.OF,H=Q.ge;if(H.cpn===this.qz)this.playback.On("sdai",{igtranssame:1,enter:H.cpn,exit:z.cpn});else{var f=this.U,b=!!this.D;this.D="";var L=Q.rW,u=z.playerType===2?z.sY/1E3+z.videoData.iT:this.hj().videoData.iT;if(z.playerType===2&&H.playerType===2)b?this.playback.On("sdai",{igtransskip:1,enter:H.cpn,exit:z.cpn,seek:f,skip:this.D}):l_(this,z,H,u,L,f,b);else{this.qz=H.cpn;Q=Q.GZT;if(z.playerType===1&&H.playerType===2){this.De=0;ek(this,H);var X= +TB(this,"c2a",H);this.playback.On("sdai",X);this.aN++}else if(z.playerType===2&&H.playerType===1){X=z.videoData.iT;this.api.publish("serverstitchedvideochange");var v=TB(this,"a2c");this.playback.On("sdai",v);this.aN=0;this.De=X*1E3;this.zx=u;xwv(this,z.PY)}this.playback.HR(z,H,u,L,f,b,Q)}this.D="";this.U=!1}}; +g.S.seekTo=function(Q,z,H,f){Q=Q===void 0?0:Q;z=z===void 0?{}:z;H=H===void 0?!1:H;f=f===void 0?null:f;this.r5(this.qz);this.playback.getVideoData().OZ()&&Q<=this.zx?(this.playback.pauseVideo(),this.zx=this.De=0,jN9(this,Q)):g.mV.prototype.seekTo.call(this,Q,z,H,f)}; +g.S.UT=function(Q,z,H){H=H===void 0?!1:H;var f=Hg(this,Q,z);if(f){var b=void 0,L=f.PY;if(L){this.playback.On("sdai",{skipadonsq:z,sts:H,abid:L,acpn:f.cpn,avid:f.videoData.videoId});H=this.Y.get(L);if(!H)return;H=g.n(H);for(L=H.next();!L.done;L=H.next())L=L.value,L.xR=z,L.d2=Q,L.sY>f.sY&&(b=L)}this.r5(this.qz);this.D=f.cpn;tCa(this);Q=this.playback.getCurrentTime();l_(this,f,b,Q,Q,!1,!0)}}; +g.S.O2=function(Q,z,H,f,b,L,u,X,v){f.length>0&&this.playback.On("sdai",{onssinfo:1,sq:Q,start:z.toFixed(3),cpns:f.join(","),ds:b.join(","),isVideo:u?1:0});v&&this.jm.O2(Q,u,X,v);H=uE(this.playback.getVideoData())&&this.rh.V("html5_process_all_cuepoints");if(u||H){if(f.length&&b.length)for(this.D&&this.D===f[0]&&this.playback.On("sdai",{skipfail:1,sq:Q,acpn:this.D}),Q=z+this.Gl(),u=0;u=0&&this.S.splice(Q,1)}; +g.S.r5=function(Q){var z=Q||this.qz,H=this.L.get(z);if(H){Q=H.videoData;var f,b;z=H.bd||((b=(f=this.B.get(z))==null?void 0:f.start)!=null?b:0)/1E3;f=this.playback.getCurrentTime()-z;Q.iT=f>0?f:0}else this.hj().videoData.iT=this.playback.getCurrentTime()};g.p(NFY,g.h);g.S=NFY.prototype; +g.S.Vj=function(Q,z){z=z===void 0?"":z;if(this.timeline.L===z)return!0;var H=this.timeline.Z,f=H==null?void 0:H.getVideoData();if(!H||!f)return this.api.On("ssap",{htsm:H?0:1}),!1;if(this.api.V("html5_ssap_clear_timeline_before_update")){var b=this.timeline,L;(L=b.Z)==null||l0a(L);b.B.clear()}b=WP(H);var u=!1;L=[];var X=new Map;H=[];var v=[],y=0,q=0,M=0,C=[];Q=g.n(Q);for(var t=Q.next();!t.done;t=Q.next())a:{var E=void 0,G=void 0,x=t.value,J=x.clipId;if(J){if(x.Pr){M=x.Pr.CO||0;t=x.Pr.Id||1;var I= +Number(((x.Pr.c9||0)/(x.Pr.Yh||1)*1E3).toFixed(0));M=t=I+Number((M/t*1E3).toFixed(0))}else t=I=M,this.V1.has(J)||this.J9.add(J);var r=(G=X.get(J))!=null?G:0,U=this.timeline.L;G=!1;if(U&&this.api.V("html5_ssap_clear_timeline_before_update")){if(U=this.B7.get(J))U.start=I,U.end=t,G=!0}else{if(U){var D=J;U=I;var T=t,k=r,bL=lK(this.timeline,D);if(bL!=null&&bL.length){k=X){this.NA.set(Q,H);rVA(this,Q,z);this.oC.set(Q,(0,g.IE)());if(H=this.B7.get(z))for(H=H.getId().split(","),H=g.n(H),u=H.next();!u.done;u=H.next())u=u.value,u!==z&&this.J9.has(u)&&(this.J9.delete(u),this.V1.add(u));this.r5();z=L.G1()/1E3;L=void 0;H=(L=g.Mf(this.api.C().experiments,"html5_ssap_skip_seeking_offset_ms"))!=null?L:0;this.api.V("html5_ssap_keep_media_on_finish_segment")?this.playback.seekTo(z+ +H/1E3,{qt:!0}):this.playback.seekTo(z+H/1E3);this.V5?(this.api.On("ssap",{gpfreload:this.qz}),JVA(this)||(this.V5=!1),this.playback.lL(!1,!1,this.api.V("html5_ssap_keep_media_on_finish_segment"))):f&&this.playback.lL(!1,!1,this.api.V("html5_ssap_keep_media_on_finish_segment"));b&&this.api.playVideo(1,this.api.V("html5_ssap_keep_media_on_finish_segment"));return[Q]}}}return[]}; +g.S.EF=function(){var Q=this.timeline.Z;if(!Q)return 0;var z=Q.AT();Q=g.n(Q.Z.values());for(var H=Q.next();!H.done;H=Q.next()){H=g.n(H.value);for(var f=H.next();!f.done;f=H.next())f=f.value,f.AT()>z&&(z=f.AT())}return z/1E3}; +g.S.jx=function(){var Q=this.playback.getCurrentTime()*1E3;var z=a9c(this,Q);if(!z){var H=lK(this.timeline,this.qz);if(H){H=g.n(H);for(var f=H.next();!f.done;f=H.next())f=f.value,f.G1()>Q&&(z=f)}}return z&&z.getType()===1?z.G1()/1E3:0}; +g.S.getVideoData=function(Q){if(Q===2&&!this.f4()){if(this.PK&&this.Vz.has(this.PK))return this.Vz.get(this.PK);this.api.On("ssap",{lpanf:""+UR(this)});return null}return izZ(this)}; +g.S.f4=function(){var Q=lK(this.timeline,this.qz);return(Q==null?0:Q.length)?Q[0].getType()===2:!1}; +g.S.uv=function(){var Q=lK(this.timeline,this.qz);return(Q==null?0:Q.length)?Q[0].B:!1}; +g.S.seekTo=function(Q,z){z=z===void 0?{}:z;var H=Uwu(this,this.playback.getCurrentTime());this.playback.seekTo(Q+H/1E3,z)}; +g.S.h1=function(Q,z,H){return new g.fi(Q,z,{id:H,namespace:"ssap",priority:9})}; +g.S.onCueRangeEnter=function(Q){if(!this.EL.has(Q.getId())){this.api.On("ssap",{oce:1,cpn:Q.getId(),st:Q.start,et:Q.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.yN()||0).toFixed(3)});for(var z=Q.getId().split(","),H=0;HH+1)for(f=H+1;f0?z:0}; +g.S.J$m=function(Q){var z=this.Vz.get(this.qz);z&&this.playback.FN(Q-z.Bc/1E3,z.lengthSeconds,this.qz)}; +g.S.zv=function(){this.api.C().vz()&&this.api.On("ssap",{di:""+this.qz,dic:""+this.playback.getVideoData().clientPlaybackNonce});this.Vz.clear();this.J9.clear();this.EL.clear();this.NA.clear();this.oC.clear();this.V1.clear();this.nD=[];o08(this);this.E2="";g.YQ(this.events);g.h.prototype.zv.call(this)};g.p(KYL,g.h);g.S=KYL.prototype;g.S.onCueRangeEnter=function(Q){if(this.Z===this.app.X$()){var z=this.S.get(Q);z?TFc(this,z.target,z.e8,Q):this.h7("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:Q.toString()})}else if(z=this.B.find(function(b){return b.Qt.VR===Q})){var H=z.Qt,f=H.target; +H=H.e8;f?TFc(this,f,H,Q):kkA(this,z.Zm,H,Q)}}; +g.S.onQueuedVideoLoaded=function(){var Q=this.Y;vg(this);if(Q){if(!XF(this,Q)){var z=this.app.X$();this.h7("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:z==null?void 0:z.getVideoData().clientPlaybackNonce,ccpn:""+Q.playerVars.cpn})}this.app.X$().addCueRange(Q.Qt.VR)}}; +g.S.seekTo=function(Q,z,H,f){Q=Q===void 0?0:Q;z=z===void 0?{}:z;f=f===void 0?null:f;if(H===void 0?0:H)DwY(this,Q,z);else{H=this.app.X$()||null;var b=H===this.D?this.j:null;yU(this,!1);this.Ze=Q;this.U=z;f!=null&&this.N.start(f);H&&(this.j=b||H.getPlayerState(),H.E0(),this.D=H)}}; +g.S.BU=function(Q){g.pp(Q,128)&&zT9(this)}; +g.S.isManifestless=function(){return C9(this.Z.getVideoData())}; +g.S.zv=function(){yU(this,!1);feu(this);g.h.prototype.zv.call(this)}; +g.S.h7=function(Q,z){this.Z.h7(new oj(Q,z))}; +var VCv=0;var bMc="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.p(CJ,g.h);g.S=CJ.prototype;g.S.get=function(Q){qc(this);var z=this.data.find(function(H){return H.key===Q}); +return z?z.value:null}; +g.S.set=function(Q,z,H){this.remove(Q,!0);qc(this);Q={key:Q,value:z,expire:Infinity};H&&isFinite(H)&&(H*=1E3,Q.expire=(0,g.IE)()+H);for(this.data.push(Q);this.data.length>this.L;)(H=this.data.shift())&&tw(this,H,!0);Mc(this)}; +g.S.remove=function(Q,z){z=z===void 0?!1:z;var H=this.data.find(function(f){return f.key===Q}); +H&&(tw(this,H,z),g.Ru(this.data,function(f){return f.key===Q}),Mc(this))}; +g.S.removeAll=function(Q){if(Q=Q===void 0?!1:Q)for(var z=g.n(this.data),H=z.next();!H.done;H=z.next())tw(this,H.value,Q);this.data=[];Mc(this)}; +g.S.zv=function(){var Q=this;g.h.prototype.zv.call(this);this.data.forEach(function(z){tw(Q,z,!0)}); +this.data=[]};g.p(EL,g.h);EL.prototype.ob=function(Q){if(Q)return this.B.get(Q)}; +EL.prototype.zv=function(){this.Z.removeAll();this.B.removeAll();g.h.prototype.zv.call(this)};g.rcO=EE(function(){var Q=window.AudioContext||window.webkitAudioContext;try{return new Q}catch(z){return z.name}});g.p(y3c,g.m);g.S=y3c.prototype;g.S.jZ=function(){g.vO(this.element,g.rc.apply(0,arguments))}; +g.S.MO=function(){this.OV&&(this.OV.removeEventListener("focus",this.u_),g.XU(this.OV),this.OV=null)}; +g.S.hX=function(){this.Sm();var Q=this.app.C();Q.q0||this.jZ("tag-pool-enabled");Q.j&&this.jZ(g.DJ.HOUSE_BRAND);Q.playerStyle==="gvn"&&(this.jZ("ytp-gvn"),this.element.style.backgroundColor="transparent");Q.gT&&(this.KB=g.Sv("yt-dom-content-change",this.resize,this));this.X(window,"orientationchange",this.resize,this);this.X(window,"resize",this.resize,this)}; +g.S.lE=function(Q){g.AE(this.app.C());this.CT=!Q;pJ(this)}; +g.S.resize=function(){if(this.OV){var Q=this.Oq();if(!Q.isEmpty()){var z=!g.Zz(Q,this.NJ.getSize()),H=E4u(this);z&&(this.NJ.width=Q.width,this.NJ.height=Q.height);Q=this.app.C();(H||z||Q.gT)&&this.app.Yv.publish("resize",this.getPlayerSize())}}}; +g.S.nt=function(Q,z){this.updateVideoData(z)}; +g.S.updateVideoData=function(Q){if(this.OV){var z=this.app.C();kw&&(this.OV.setAttribute("x-webkit-airplay","allow"),Q.title?this.OV.setAttribute("title",Q.title):this.OV.removeAttribute("title"));this.OV.setAttribute("controlslist","nodownload");z.Ev&&Q.videoId&&(this.OV.poster=Q.MP("default.jpg"))}z=g.FD(Q,"yt:bgcolor");this.hc.style.backgroundColor=z?z:"";this.BW=vw(g.FD(Q,"yt:stretch"));this.qM=vw(g.FD(Q,"yt:crop"),!0);g.MP(this.element,"ytp-dni",Q.gV);this.resize()}; +g.S.setGlobalCrop=function(Q){this.oS=vw(Q,!0);this.resize()}; +g.S.setCenterCrop=function(Q){this.nk=Q;this.resize()}; +g.S.tB=function(){}; +g.S.getPlayerSize=function(){var Q=this.app.C(),z=this.app.Yv.isFullscreen(),H=Q.externalFullscreen&&g.O8(Q);if(z&&dR()&&!H)return new g.nC(window.outerWidth,window.outerHeight);H=!isNaN(this.MR.width)&&!isNaN(this.MR.height);var f=this.app.C().V("kevlar_player_enable_squeezeback_fullscreen_sizing");if(z&&!H&&f)return new g.nC(this.element.clientWidth,this.element.clientHeight);if(z||Q.nV){if(window.matchMedia){Q="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.Ce&&this.Ce.media=== +Q||(this.Ce=window.matchMedia(Q));var b=this.Ce&&this.Ce.matches}if(b)return new g.nC(window.innerWidth,window.innerHeight)}else if(H)return this.MR.clone();return new g.nC(this.element.clientWidth,this.element.clientHeight)}; +g.S.Oq=function(){var Q=this.app.C().V("enable_desktop_player_underlay"),z=this.getPlayerSize(),H=g.Mf(this.app.C().experiments,"player_underlay_min_player_width");return Q&&this.hA&&z.width>H?(Q=g.Mf(this.app.C().experiments,"player_underlay_video_width_fraction"),new g.nC(Math.min(z.height*this.getVideoAspectRatio(),z.width*Q),Math.min(z.height,z.width*Q/this.getVideoAspectRatio()))):z}; +g.S.getVideoAspectRatio=function(){return isNaN(this.BW)?Mgp(this):this.BW}; +g.S.getVideoContentRect=function(Q){var z=this.Oq();Q=C9L(this,z,this.getVideoAspectRatio(),Q);return new g.XL((z.width-Q.width)/2,(z.height-Q.height)/2,Q.width,Q.height)}; +g.S.Pe=function(Q){this.hA=Q;this.resize()}; +g.S.Fv=function(){return this.Xd}; +g.S.onMutedAutoplayChange=function(){pJ(this)}; +g.S.setInternalSize=function(Q){g.Zz(this.MR,Q)||(this.MR=Q,this.resize())}; +g.S.zv=function(){this.KB&&g.XN(this.KB);this.MO();g.m.prototype.zv.call(this)};g.S=pvk.prototype;g.S.click=function(Q,z){this.elements.has(Q);this.Z.has(Q);var H=g.Jl();H&&Q.visualElement&&g.uI(H,Q.visualElement,z)}; +g.S.createClientVe=function(Q,z,H,f){var b=this;f=f===void 0?!1:f;this.elements.has(Q);this.elements.add(Q);H=NDZ(H);Q.visualElement=H;var L=g.Jl(),u=g.ox();L&&u&&(g.FZ("combine_ve_grafts")?oA(xA(),H,u):g.zr(g.kG)(void 0,L,u,H));z.addOnDisposeCallback(function(){b.elements.has(Q)&&b.destroyVe(Q)}); +f&&this.B.add(Q)}; +g.S.createServerVe=function(Q,z,H){var f=this;H=H===void 0?!1:H;this.elements.has(Q);this.elements.add(Q);z.addOnDisposeCallback(function(){f.destroyVe(Q)}); +H&&this.B.add(Q)}; +g.S.destroyVe=function(Q){this.elements.has(Q);this.elements.delete(Q);this.L.delete(Q);this.Z.delete(Q);this.B.delete(Q)}; +g.S.FP=function(Q,z){this.clientPlaybackNonce!==z&&(this.clientPlaybackNonce=z,OW(xA(),Q),n4n(this))}; +g.S.setTrackingParams=function(Q,z){this.elements.has(Q);z&&(Q.visualElement=g.xG(z))}; +g.S.Ho=function(Q,z,H){this.elements.has(Q);z?this.Z.add(Q):this.Z.delete(Q);var f=g.Jl(),b=Q.visualElement;this.B.has(Q)?f&&b&&(z?g.bI(f,[b]):g.La(f,[b])):z&&!this.L.has(Q)&&(f&&b&&g.fa(f,b,void 0,H),this.L.add(Q))}; +g.S.hasVe=function(Q){return this.elements.has(Q)};g.p(g.gQ,g.h);g.gQ.create=function(Q,z,H,f){try{var b=typeof Q==="string"?Q:"player"+g.eY(Q),L=Ow[b];if(L){try{L.dispose()}catch(X){g.PT(X)}Ow[b]=null}var u=new g.gQ(Q,z,H,f);u.addOnDisposeCallback(function(){Ow[b]=null;u.nF&&u.nF()}); +return Ow[b]=u}catch(X){throw g.PT(X),(X&&X instanceof Error?X:Error(String(X))).stack;}}; +g.S=g.gQ.prototype;g.S.Kq=function(){return this.visibility}; +g.S.jF=function(Q){var z=this.ey();if(Q!==z){Q.getVideoData().autonavState=z.getVideoData().autonavState;z.AY(this.vL,this);var H=z.getPlaybackRate();z.v5();this.Qs.jF(Q);Q.setPlaybackRate(H);Q.rZ(this.vL,this);xuk(this)}}; +g.S.Vk=function(){this.VS||(this.VS=g.uG(cG(),gJ6()));return this.VS}; +g.S.MO=function(Q){if(this.mediaElement){this.rD&&(this.events.DS(this.rD),this.rD=null);g.YQ(this.V6);var z=this.X$();z&&z.MO(!0,!1,Q);this.template.MO();try{this.V("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.OH()}catch(H){g.ax(H)}this.mediaElement=null}}; +g.S.Rl=function(Q,z){if(Q!==this.X$()){this.logger.debug(function(){return"start set presenting player, type "+Q.getPlayerType()+", vid "+Q.getVideoData().videoId}); +var H=null,f=this.X$();f&&(H=f.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),Nb(this.RB,3),ie(this,"cuerangesremoved",f.o6()),this.t5&&!Q.isGapless()&&f.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),f=Q.Uq()&&f.Uq(),this.jy.K$("iv_s"),BKJ(this,f));Q.getPlayerType()===1&&this.jF(Q);spY(this,Q);this.Qs.Rl(Q);this.mediaElement&&Q.setMediaElement(this.mediaElement);Q.rZ(this.iD,this);Q.KQ()?yyL(this,"setPresenting",!1):(this.nt("newdata",Q,Q.getVideoData()), +H&&!g.Xn(H,Q.getPlayerState())&&this.B9(new g.tT(Q.getPlayerState(),H)),z=z&&this.V("html5_player_preload_ad_fix")&&Q.getPlayerType()===1,Q.DG()&&!z&&this.nt("dataloaded",Q,Q.getVideoData()),(z=(z=Q.getVideoData().B)&&z.video)&&this.Yv.A$("onPlaybackQualityChange",z.quality),this.X$(),ie(this,"cuerangesadded",Q.o6()),z=Q.getPlayerState(),g.w(z,2)?r3_(this):g.w(z,8)?Q.playVideo():Q.q3()&&Q.pauseVideo(),z=this.ey(),Q.getPlayerType()===2&&(Q.getVideoData().W$=z.getVideoData().clientPlaybackNonce),Q.getPlayerType()!== +2||this.Uj()||(H=Q.getVideoData(),z.Tp(H.clientPlaybackNonce,H.UY||"",H.breakType||0,H.dS,H.videoId||"")),this.logger.debug("finish set presenting player"))}}; +g.S.Kb=function(){if(this.ey()!==this.X$()){var Q=this.X$();this.logger.debug(function(){return"release presenting player, type "+(Q==null?void 0:Q.getPlayerType())+", vid "+(Q==null?void 0:Q.getVideoData().videoId)}); +this.Rl(this.ey())}}; +g.S.CG=function(){return this.Qs}; +g.S.QE=function(Q){if(Q)if(Q===1)Q=this.ey();else if(this.getVideoData().enableServerStitchedDai&&Q===2)Q=this.getVideoData().enablePreroll?this.Qs.QE(2)||this.X$():this.X$();else if(g.wr(this.getVideoData())&&Q===2){if(Q=this.V("html5_ssap_return_content_player_during_preroll"))if(Q=this.OY)Q=this.OY,Q=Q.qz===""?!0:Q.f4();Q=Q?this.X$():this.Qs.QE(2)||this.X$()}else Q=this.Qs.QE(Q)||null;else Q=this.X$();return Q}; +g.S.ey=function(){return this.Qs.ey()}; +g.S.X$=function(){return this.Qs.X$()}; +g.S.CU=fn(50);g.S.aS5=function(){xI(this)||(this.logger.debug("application playback ready"),this.Za(5))}; +g.S.KMn=function(Q){if(!xI(this)){this.logger.debug("playback ready");ub8(this);var z=Q.getPlayerState();Q.q3()?this.pauseVideo():z.isOrWillBePlaying()&&this.playVideo()}}; +g.S.canPlayType=function(Q){return AI(Q)}; +g.S.C=function(){return this.rh}; +g.S.getVideoData=function(){return this.X$().getVideoData()}; +g.S.F4=fn(19);g.S.Iq=function(){return this.ey().getVideoData()}; +g.S.getVideoLoadedFraction=function(Q){return(Q=this.QE(Q))?Q.getVideoLoadedFraction():this.Qs.Z.getVideoLoadedFraction()}; +g.S.Un=function(){return this.template}; +g.S.xt=function(){return this.RB}; +g.S.vB=function(){return this.jy}; +g.S.MA=function(Q){var z=this.QE(1);z&&z.x7(Q)}; +g.S.gx=function(){var Q=this.RB.gx();this.Yv.publish("videoStatsPingCreated",Q);return Q}; +g.S.getVolume=function(){return Math.round(this.Yv.getVolume())}; +g.S.isMuted=function(){return this.Yv.isMuted()}; +g.S.eC=function(){if(this.ey()===this.X$()&&this.GL)return this.GL.postId}; +g.S.b2h=function(){var Q=this;this.V("use_rta_for_player")||(g.oT(this.rh)?g.HV(this.rh,g.W7(this.getVideoData())).then(function(z){ij(cG(),z);A7L(Q.getVideoData(),Q.rh,Q.Vk())}):A7L(this.getVideoData(),this.rh,this.Vk()))}; +g.S.W2=function(Q){this.Yv.publish("poTokenVideoBindingChange",Q)}; +g.S.WO=function(Q){this.Yv.publish("d6de4videobindingchange",Q)}; +g.S.V0=function(){this.JW&&this.JW.V0()}; +g.S.mz=function(Q){this.JW=Q}; +g.S.hQ=function(Q){if(Q===1){this.jy.tick("vr");var z=this.X$();z.sM();ZO6(this.jy,z.getVideoData(),L2p(this));uFv(this.RB)}z=this.rh;(Rl(z)&&z.Y||g.rm(z))&&(this.Uj()||this.Yv.A$("onAdStateChange",Q))}; +g.S.setLoopVideo=function(Q){var z=this.X$();z===this.ey()&&z.FD()!==Q&&(z.setLoop(Q),this.Yv.F$("onLoopChange",Q))}; +g.S.getLoopVideo=function(){return this.X$().FD()}; +g.S.setLoopRange=function(Q){var z=!1;!!this.GL!==!!Q?z=!0:this.GL&&Q&&(z=this.GL.startTimeMs!==Q.startTimeMs||this.GL.endTimeMs!==Q.endTimeMs||this.GL.postId!==Q.postId||this.GL.type!==Q.type);if(z){(z=this.X$())&&f9(z.getVideoData())&&z.On("slr",{et:(Q==null?void 0:Q.endTimeMs)||-1});z=this.ey();z.Ys("applooprange");if(Q){var H=new g.fi(Q.startTimeMs,Q.endTimeMs,{id:"looprange",namespace:"applooprange"});z.addCueRange(H)}else{this.Iq().clipConfig=void 0;var f;((H=this.GL)==null?void 0:H.type)!== +"repeatChapter"||isNaN(Number((f=this.GL)==null?void 0:f.loopCount))||(H={loopCount:String(this.GL.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.qV("repeatChapterLoopEvent",H))}this.GL=Q;this.Yv.F$("onLoopRangeChange",Q||void 0);this.ey()===this.X$()&&(this.bE(),z.sN())}}; +g.S.getLoopRange=function(){return this.GL}; +g.S.bE=function(){var Q="",z=this.ey();this.GL?z!==this.X$()?Q="pnea":Dua(this,z.getCurrentTime())&&(this.GL.loopCount=0,Q="ilr"):Q="nlr";var H=this.X$();if(H&&f9(H.getVideoData()))if(this.V("html5_gapless_log_loop_range_info")){var f,b;H.On("slrre",{rej:Q,ct:z.getCurrentTime(),lst:(f=this.GL)==null?void 0:f.startTimeMs,let:(b=this.GL)==null?void 0:b.endTimeMs})}else H.On("slrre",{});Q||muJ(this)}; +g.S.setPlaybackRate=function(Q,z){if(!isNaN(Q)){Q=NKL(this,Q);var H=this.ey();H.getPlaybackRate()!==Q&&(H.setPlaybackRate(Q),z&&!this.rh.D&&g.Pw("yt-player-playback-rate",Q),this.Yv.A$("onPlaybackRateChange",Q))}}; +g.S.getCurrentTime=function(Q,z,H){z=z===void 0?!0:z;if(this.getPresentingPlayerType()===3)return this.Qs.kQ.getCurrentTime();var f=Q===2&&this.getVideoData().enableServerStitchedDai,b=g.wr(this.getVideoData());Q=f||b?this.X$():this.QE(Q);if(!Q)return this.Qs.Z.getCurrentTime();if(b&&this.OY)return z=this.OY,Q=Q.getCurrentTime(),H?H=LJ(z,H):(H=Uwu(z,Q),H=Q-H/1E3),H;if(z){if(f&&this.Xh&&(H=this.Xh.De/1E3,H!==0))return H;H=FF(this,Q);return rQ(this,H.getCurrentTime(),H)}f&&this.Xh?(H=this.Xh,Q=Q.getCurrentTime(), +H=(H=uWc(H,Q*1E3))?Q-H.start/1E3:Q):H=Q.getCurrentTime();return H}; +g.S.zp=function(){var Q=this.QE();if(!Q)return this.Qs.Z.zp();Q=FF(this,Q);return rQ(this,Q.zp(),Q)}; +g.S.getDuration=function(Q,z){z=z===void 0?!0:z;var H=this.getVideoData(),f=Q===2&&H.enableServerStitchedDai,b=g.wr(H);var L=f||b?this.X$():this.QE(Q);if(!L)return this.Qs.Z.getDuration();if(H.hasProgressBarBoundaries()&&!f&&!b){var u,X=Number((u=H.progressBarStartPosition)==null?void 0:u.utcTimeMillis),v;H=Number((v=H.progressBarEndPosition)==null?void 0:v.utcTimeMillis);if(!isNaN(X)&&!isNaN(H))return(H-X)/1E3}if(b&&this.OY)return z=cVc(this.OY,this.OY.l$()),Q===1&&z===0?L.getDuration():z;if(z)return L= +jQ(this,L),rQ(this,L.getDuration(),L);f&&this.Xh?(Q=this.Xh,L=L.getCurrentTime(),L=(L=Sqp(Q,L*1E3))?L.durationMs/1E3:0):L=L.getDuration();return L}; +g.S.JM=function(Q){var z=this.QE(Q);return z?this.Uj(z)?(z=jQ(this,z),z.JM()-z.getCurrentTime()+this.getCurrentTime(Q)):z.JM():this.Qs.Z.JM()}; +g.S.dW=function(){return this.FS}; +g.S.addPlayerResponseForAssociation=function(Q){this.OY&&this.OY.addPlayerResponseForAssociation(Q)}; +g.S.finishSegmentByCpn=function(Q,z,H){return this.OY?this.OY.finishSegmentByCpn(Q,z,H):[]}; +g.S.hX=function(){this.template.hX();var Q=this.Yv;Q.state.element=this.template.element;var z=Q.state.element,H;for(H in Q.state.Z)Q.state.Z.hasOwnProperty(H)&&(z[H]=Q.state.Z[H]);(Q=dNa(this.template.element))&&this.events.X(this.template,Q,this.onFullscreenChange);this.events.X(window,"resize",this.Nr$)}; +g.S.getDebugText=function(Q){var z=this.ey().TL(Q),H=this.X$(),f=this.ey();if(H&&H!==f){H=H.TL(Q);f=g.n(Object.keys(H));for(var b=f.next();!b.done;b=f.next())b=b.value,z["ad"+b]=H[b];if(Q){H=z;f={};if(b=V4(document,"movie_player"))f.bounds=b.getBoundingClientRect(),f["class"]=b.className;b={};var L=g.ea("video-ads");L?(CJ8(L,b),b.html=L.outerHTML):b.missing=1;L={};var u=g.ea("videoAdUiSkipContainer"),X=g.ea("ytp-ad-skip-button-container"),v=g.ea("ytp-skip-ad-button"),y=u||X||v;y?(CJ8(y,L),L.ima=u? +1:0,L.bulleit=X?1:0,L.component=v?1:0):L.missing=1;f=JSON.stringify({player:f,videoAds:b,skipButton:L});H.ad_skipBtnDbgInfo=f}}Q&&this.mediaElement&&(z["0sz"]=""+(+G2(this.mediaElement.getSize())===0),z.op=this.mediaElement.IR("opacity"),H=this.mediaElement.Wr().y+this.mediaElement.getSize().height,z.yof=""+(+H<=0),z.dis=this.mediaElement.IR("display"));Q&&((Q=(0,g.Og)())&&(z.gpu=Q),(Q=this.rh.playerStyle)&&(z.ps=Q),this.rh.En&&(z.webview=1));z.debug_playbackQuality=this.Yv.getPlaybackQuality(1); +z.debug_date=(new Date).toString();z.origin=window.origin;z.timestamp=Date.now();delete z.uga;delete z.q;return JSON.stringify(z,null,2)}; +g.S.getFeedbackProductData=function(){var Q={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.C().experiments.experimentIds.join(", "),player_release:H_[44]},z=this.getPlayerStateObject().WS;z&&(Q.player_error_code=z.errorCode,Q.player_error_details=JSON.stringify(z.errorDetail));return Q}; +g.S.getPresentingPlayerType=function(Q){if(this.appState===1)return 1;if(xI(this))return 3;var z;if(Q&&((z=this.Xh)==null?0:z.f4(this.getCurrentTime())))return 2;var H;return g.wr(this.getVideoData())&&((H=this.OY)==null?0:H.f4())?2:this.X$().getPlayerType()}; +g.S.uv=function(){return g.wr(this.getVideoData())&&this.OY?this.OY.uv():!1}; +g.S.getPlayerStateObject=function(Q){return this.getPresentingPlayerType()===3?this.Qs.kQ.getPlayerState():this.QE(Q).getPlayerState()}; +g.S.getAppState=function(){return this.appState}; +g.S.bS=function(Q){switch(Q.type){case "loadedmetadata":this.q9.start();Q=g.n(this.ZU);for(var z=Q.next();!z.done;z=Q.next())z=z.value,f8J(this,z.id,z.Gsm,z.yTv,void 0,!1);this.ZU=[];break;case "loadstart":this.jy.K$("gv");break;case "progress":case "timeupdate":yA(Q.target.Ux())>=2&&this.jy.K$("l2s");break;case "playing":g.eN&&this.q9.start();if(g.oT(this.rh))Q=!1;else{var H=this.X$();z=g.rX(this.xt());Q=this.mediaElement.IR("display")==="none"||G2(this.mediaElement.getSize())===0;var f=nJ(this.template), +b=H.getVideoData();H=g.c6(this.rh);b=bE(b);z=!f||z||H||b||this.rh.gh;Q=Q&&!z}Q&&(Q=this.X$(),Q.y7(),this.getVideoData().gT||(this.getVideoData().gT=1,this.XU(),Q.playVideo()))}}; +g.S.onLoadProgress=function(Q,z){this.Yv.g4("onLoadProgress",z)}; +g.S.y$l=function(){this.Yv.publish("playbackstalledatstart")}; +g.S.u1=function(Q,z){this.Yv.publish("sabrCaptionsDataLoaded",Q,z)}; +g.S.oJm=function(Q){var z;(z=this.X$())==null||z.y5(Q)}; +g.S.r$T=function(Q){var z;(z=this.X$())==null||z.DU(Q)}; +g.S.onVideoProgress=function(Q,z){Q=FF(this,Q.Sg);z=rQ(this,Q.getCurrentTime(),Q);this.Yv.A$("onVideoProgress",z);this.rh.Bl&&RTa(this,this.visibility.S2())&&this.pauseVideo()}; +g.S.onAutoplayBlocked=function(){this.Yv.A$("onAutoplayBlocked");var Q,z=(Q=this.X$())==null?void 0:Q.getVideoData();z&&(z.cK=!0);this.V("embeds_enable_autoplay_and_visibility_signals")&&g.O8(this.rh)&&(Q={autoplayBrowserPolicy:KE(),autoplayIntended:V1(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.qV("embedsAutoplayStatusChanged",Q))}; +g.S.YZe=function(){this.Yv.publish("progresssync")}; +g.S.Gx3=function(){this.Yv.g4("onPlaybackPauseAtStart")}; +g.S.Mxq=function(Q){if(this.getPresentingPlayerType()===1){g.pp(Q,1)&&!g.w(Q.state,64)&&this.Iq().isLivePlayback&&this.ey().isAtLiveHead()&&this.Yv.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.pp(Q,2)){if(this.GL&&this.GL.endTimeMs>=(this.getDuration()-1)*1E3){muJ(this);return}r3_(this)}if(g.w(Q.state,128)){var z=Q.state;this.cancelPlayback(5);z=z.WS;JSON.stringify({errorData:z,debugInfo:this.getDebugText(!0)});this.Yv.A$("onError",DD_(z.errorCode));this.Yv.g4("onDetailedError",{errorCode:z.errorCode, +errorDetail:z.errorDetail,message:z.errorMessage,messageKey:z.oP,cpn:z.cpn});(0,g.IE)()-this.rh.YJ>6048E5&&this.Yv.g4("onReloadRequired")}z={};if(Q.state.isPlaying()&&!Q.state.isBuffering()&&!Kj("pbresume","ad_to_video")&&Kj("_start","ad_to_video")){var H=this.getVideoData();z.clientPlaybackNonce=H.clientPlaybackNonce;H.videoId&&(z.videoId=H.videoId);g.WC(z,"ad_to_video");hN("pbresume",void 0,"ad_to_video");uFv(this.RB)}this.Yv.publish("applicationplayerstatechange",Q)}}; +g.S.B9=function(Q){this.getPresentingPlayerType()!==3&&this.Yv.publish("presentingplayerstatechange",Q)}; +g.S.BU=function(Q){$I(this,yu(Q.state));g.w(Q.state,1024)&&this.Yv.isMutedByMutedAutoplay()&&(Aw(this,{muted:!1,volume:this.JT.volume},!1),YI(this,!1))}; +g.S.nw=function(Q,z,H){Q==="newdata"&&xuk(this);this.Yv.publish("applicationvideodatachange",Q,H)}; +g.S.jK=function(Q,z){this.Yv.g4("onPlaybackAudioChange",this.Yv.getAudioTrack().Ii.name);this.Yv.publish("internalaudioformatchange",this.Yv.getAudioTrack().Ii.id,z)}; +g.S.vE=function(Q){var z=this.X$().getVideoData();Q===z&&this.Yv.A$("onPlaybackQualityChange",Q.B.video.quality)}; +g.S.n_=function(){var Q=this.Qs.QE(2);if(Q){var z=Q.getVideoData();Q=Q.R0();var H;(H=this.X$())==null||H.On("ssdai",{cleanaply:1,acpn:z==null?void 0:z.clientPlaybackNonce,avid:z.videoId,ccpn:Q,sccpn:this.Iq().clientPlaybackNonce===Q?1:0,isDai:this.Iq().enableServerStitchedDai?1:0});delete this.Qs.L[2]}}; +g.S.onVideoDataChange=function(Q,z,H){this.nt(Q,z.Sg,H)}; +g.S.nt=function(Q,z,H){this.X$();this.logger.debug(function(){return"on video data change "+Q+", player type "+z.getPlayerType()+", vid "+H.videoId}); +this.rh.vz()&&z.On("vdc",{type:Q,vid:H.videoId||"",cpn:H.clientPlaybackNonce||""});z===this.ey()&&(this.rh.j2=H.oauthToken);if(z===this.ey()){this.getVideoData().enableServerStitchedDai&&!this.Xh?(this.ey().On("sdai",{initSstm:1}),this.Xh=this.V("html5_enable_ssdai_transition_with_only_enter_cuerange")?new $w9(this.Yv,this.rh,this.ey(),this):new g.mV(this.Yv,this.rh,this.ey(),this)):!this.getVideoData().enableServerStitchedDai&&this.Xh&&(this.Xh.dispose(),this.Xh=null);var f,b;!g.wr(this.getVideoData())|| +Q!=="newdata"&&Q!=="dataloaded"||this.getVideoData().clientPlaybackNonce===((f=this.FS.Z)==null?void 0:(b=f.getVideoData())==null?void 0:b.clientPlaybackNonce)?!g.wr(this.getVideoData())&&this.OY&&(this.OY.dispose(),this.OY=null):(kFA(this.FS),this.V("html5_ssap_cleanup_ad_player_on_new_data")&&this.n_(),f=KO(this.FS,1,0,this.getDuration(1)*1E3,this.getVideoData()),this.FS.enqueue(f,!0),DC(this.FS,0,this.getDuration(1)*1E3,[f]),TkA(this.FS,this.getVideoData().clientPlaybackNonce,[f]),this.OY&&(this.OY.dispose(), +this.OY=null),this.OY=new NFY(this.Yv,this.FS,this.ey()),this.Qs.ey().L$(this.OY))}if(Q==="newdata")this.logger.debug("new video data, destroy modules"),Nb(this.RB,2),this.Yv.publish("videoplayerreset",z);else{if(!this.mediaElement)return;Q==="dataloaded"&&(this.ey()===this.X$()?(U8(H.aj,H.hI),c3a(this)):aea(this));z.getPlayerType()===1&&(this.rh.mq&&MIL(this),this.getVideoData().isLivePlayback&&!this.rh.vN&&this.wP("html5.unsupportedlive",2,"DEVICE_FALLBACK"),H.isLoaded()&&((QaL(H)||this.getVideoData().UR)&& +this.Yv.publish("legacyadtrackingpingchange",this.getVideoData()),H.hasProgressBarBoundaries()&&k18(this)));this.Yv.publish("videodatachange",Q,H,z.getPlayerType())}this.Yv.A$("onVideoDataChange",{type:Q,playertype:z.getPlayerType()});this.bE();(f=H.PO)?this.ZL.FP(f,H.clientPlaybackNonce):n4n(this.ZL)}; +g.S.qU=function(){oP(this,null);this.Yv.g4("onPlaylistUpdate")}; +g.S.cMe=function(Q){delete this.I9[Q.getId()];this.ey().removeCueRange(Q);a:{Q=this.getVideoData();var z,H,f,b,L,u,X,v,y,q,M=((z=Q.mq)==null?void 0:(H=z.contents)==null?void 0:(f=H.singleColumnWatchNextResults)==null?void 0:(b=f.autoplay)==null?void 0:(L=b.autoplay)==null?void 0:L.sets)||((u=Q.mq)==null?void 0:(X=u.contents)==null?void 0:(v=X.twoColumnWatchNextResults)==null?void 0:(y=v.autoplay)==null?void 0:(q=y.autoplay)==null?void 0:q.sets);if(M)for(z=g.n(M),H=z.next();!H.done;H=z.next())if(H= +H.value,b=f=void 0,H=H.autoplayVideo||((f=H.autoplayVideoRenderer)==null?void 0:(b=f.autoplayEndpointRenderer)==null?void 0:b.endpoint),f=g.K(H,g.lF),L=b=void 0,H!=null&&((b=f)==null?void 0:b.videoId)===Q.videoId&&((L=f)==null?0:L.continuePlayback)){Q=H;break a}Q=null}(z=g.K(Q,g.lF))&&this.Yv.F$("onPlayVideo",{sessionData:{autonav:"1",itct:Q==null?void 0:Q.clickTrackingParams},videoId:z.videoId,watchEndpoint:z})}; +g.S.Za=function(Q){var z=this;Q!==this.appState&&(this.logger.debug(function(){return"app state change "+z.appState+" -> "+Q}),Q===2&&this.getPresentingPlayerType()===1&&($I(this,-1),$I(this,5)),this.appState=Q,this.Yv.publish("appstatechange",Q))}; +g.S.wP=function(Q,z,H,f,b){this.ey().VN(Q,z,H,f,b)}; +g.S.WQ=function(Q,z){this.ey().handleError(new oj(Q,z))}; +g.S.isAtLiveHead=function(Q,z){z=z===void 0?!1:z;var H=this.QE(Q);if(!H)return this.Qs.Z.isAtLiveHead();Q=jQ(this,H);H=FF(this,H);return Q!==H?Q.isAtLiveHead(rQ(this,H.getCurrentTime(),H),!0):Q.isAtLiveHead(void 0,z)}; +g.S.SN=function(){var Q=this.QE();return Q?jQ(this,Q).SN():this.Qs.Z.SN()}; +g.S.seekTo=function(Q,z,H,f,b){z=z!==!1;if(f=this.QE(f))this.appState===2&&Nc(this),this.Uj(f)?sL(this)?this.Xh.seekTo(Q,{seekSource:b},z,H):this.J7.seekTo(Q,{seekSource:b},z,H):g.wr(this.getVideoData())&&this.OY?this.OY.seekTo(Q,{RT:!z,GA:H,lr:"application",seekSource:b}):f.seekTo(Q,{RT:!z,GA:H,lr:"application",seekSource:b})}; +g.S.seekBy=function(Q,z,H,f){this.seekTo(this.getCurrentTime()+Q,z,H,f)}; +g.S.cE=function(){this.Yv.A$("SEEK_COMPLETE")}; +g.S.AS=function(){this.Yv.F$("onAbnormalityDetected")}; +g.S.onSnackbarMessage=function(Q){this.Yv.F$("onSnackbarMessage",Q)}; +g.S.wqT=function(Q,z){Q=Q.Sg;var H=Q.getVideoData();if(this.appState===1||this.appState===2)H.startSeconds=z;this.appState===2?g.w(Q.getPlayerState(),512)||Nc(this):this.Yv.A$("SEEK_TO",z)}; +g.S.onAirPlayActiveChange=function(){this.Yv.publish("airplayactivechange");this.rh.V("html5_external_airplay_events")&&this.Yv.g4("onAirPlayActiveChange",this.Yv.oJ())}; +g.S.onAirPlayAvailabilityChange=function(){this.Yv.publish("airplayavailabilitychange");this.rh.V("html5_external_airplay_events")&&this.Yv.g4("onAirPlayAvailabilityChange",this.Yv.qZ())}; +g.S.showAirplayPicker=function(){var Q;(Q=this.X$())==null||Q.bf()}; +g.S.YC=function(){this.Yv.publish("beginseeking")}; +g.S.XT=function(){this.Yv.publish("endseeking")}; +g.S.getStoryboardFormat=function(Q){return(Q=this.QE(Q))?jQ(this,Q).getStoryboardFormat():this.Qs.Z.getStoryboardFormat()}; +g.S.HU=function(Q){return(Q=this.QE(Q))?jQ(this,Q).getVideoData().HU():this.Qs.Z.HU()}; +g.S.Uj=function(Q){Q=Q||this.X$();var z=!1;if(Q){Q=Q.getVideoData();if(sL(this))Q=Q===this.Xh.playback.getVideoData();else a:if(z=this.J7,Q===z.Z.getVideoData()&&z.B.length)Q=!0;else{z=g.n(z.B);for(var H=z.next();!H.done;H=z.next())if(Q.Tq===H.value.Tq){Q=!0;break a}Q=!1}z=Q}return z}; +g.S.KU=function(Q,z,H,f,b,L,u){this.logger.debug(function(){return"Adding video to timeline id="+Q.video_id+"\n lengthMs="+f+" enterTimeMs="+b}); +var X="",v=sL(this),y;(y=this.X$())==null||y.On("appattl",{sstm:this.Xh?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:v});X=v?LYv(this.Xh,Q,z,H,f,b,L,u):wF_(this.J7,Q,H,f,b,L);this.logger.debug(function(){return"Video added to timeline id="+Q.video_id+" timelinePlaybackId="+X}); +return X}; +g.S.wF=function(Q,z,H,f,b,L,u){if(sL(this)){var X=LYv(this.Xh,Q,z,H,f,b,L,u);this.logger.debug(function(){return"Remaining video added to timeline id="+Q.video_id+" timelinePlaybackId="+X})}return""}; +g.S.dc=function(Q){var z;(z=this.Xh)==null||z.dc(Q)}; +g.S.Yw=function(Q,z){Q=Q===void 0?-1:Q;z=z===void 0?Infinity:z;sL(this)||feu(this.J7,Q,z)}; +g.S.To=function(Q,z,H){if(sL(this)){var f=this.Xh,b=f.Wz.get(Q);b?(H===void 0&&(H=b.Zm),b.durationMs=z,b.Zm=H):f.NO("Invalid_timelinePlaybackId_"+Q+"_specified")}else{f=this.J7;b=null;for(var L=g.n(f.B),u=L.next();!u.done;u=L.next())if(u=u.value,u.Tq===Q){b=u;break}b?(H===void 0&&(H=b.Zm),HMn(f,b,z,H)):ue(f,"InvalidTimelinePlaybackId timelinePlaybackId="+Q)}}; +g.S.enqueueVideoByPlayerVars=function(Q,z,H,f){H=H===void 0?Infinity:H;f=f===void 0?"":f;this.Uj();Q=new g.Kv(this.rh,Q);f&&(Q.Tq=f);TKA(this,Q,z,H)}; +g.S.queueNextVideo=function(Q,z,H,f,b){H=H===void 0?NaN:H;Q=this.preloadVideoByPlayerVars(Q,z===void 0?1:z,H,f===void 0?"":f,b===void 0?"":b);z=this.X$();Q&&z&&(this.V("html5_check_queue_on_data_loaded")?this.C().supportsGaplessShorts()&&z.getVideoData().N&&(H=this.GP,f=this.t5.Y,H.D!==Q&&(H.B=z,H.D=Q,H.L=1,H.Z=Q.getVideoData(),H.S=f,H.Z.isLoaded()?H.j():H.Z.subscribe("dataloaded",H.j,H))):(H=OVL(z,Q,this.t5.Y),H!=null?(z.On("sgap",H),z.getVideoData().N&&z.TX(!1)):(Q=Q.getVideoData(),z=this.GP,z.Z!== +Q&&(z.Z=Q,z.L=1,Q.isLoaded()?z.Y():z.Z.subscribe("dataloaded",z.Y,z)))))}; +g.S.iB=function(Q,z,H,f){var b=this;H=H===void 0?0:H;f=f===void 0?0:f;var L=this.X$();L&&jQ(this,L).SF();Ue9(this.t5,Q,z,H,f).then(function(){b.Yv.g4("onQueuedVideoLoaded")},function(){})}; +g.S.PU=function(){return this.t5.PU()}; +g.S.QS=function(Q){return this.t5.Z===Q.Sg}; +g.S.clearQueue=function(Q,z){Q=Q===void 0?!1:Q;z=z===void 0?!1:z;this.logger.debug("Clearing queue");this.t5.clearQueue(Q,z)}; +g.S.loadVideoByPlayerVars=function(Q,z,H,f,b,L){z=z===void 0?1:z;var u=this.ey();if(z===2&&this.Iq().enableServerStitchedDai&&u&&!u.vG())return u.On("lvonss",{vid:(Q==null?void 0:Q.videoId)||"",ptype:z}),!1;var X=!1;u=new g.Kv(this.rh,Q);u.reloadPlaybackParams=L;g.Tt(this.rh)&&!u.Yn&&t4(this.jy);var v;L=this.jy;var y=(v=u.En)!=null?v:"";L.timerName=y;this.jy.GS("pl_i");this.V("web_player_early_cpn")&&u.clientPlaybackNonce&&this.jy.infoGel({clientPlaybackNonce:u.clientPlaybackNonce});if(oH_(u).supportsVp9Encoding=== +!1){var q;(q=this.X$())==null||q.On("noVp9",{})}if(this.C().supportsGaplessShorts()){v=iVv(this.t5,u,z);if(v==null){$I(this,-1);Q=this.t5;Q.app.C().V("html5_gapless_new_slr")?Vgk(Q.app,"gaplessshortslooprange"):Q.app.setLoopRange(null);Q.app.getVideoData().aG=!0;var M;(M=Q.Z)==null||M.Lj();var C;(C=Q.Z)==null||C.RI();H={lr:"gapless_to_next_video",seekSource:60};f=g.Mf(Q.app.C().experiments,"html5_gapless_seek_offset");var t;(t=Q.app.X$())==null||t.seekTo(cSv(Q)+f,H);if(!Q.app.getPlayerStateObject(z).isPlaying()){var E; +(E=Q.app.X$())==null||E.playVideo(!0)}if(Q.app.C().V("html5_short_gapless_unlisten_after_seek")){var G;(G=Q.app.X$())==null||G.r$()}Q.j();return!0}t=this.V("html5_shorts_gapless_preload_fallback");E=this.t5.Z;t&&E&&!E.Uw()&&(G=E.getVideoData(),G=this.rh.V("html5_autonav_autoplay_in_preload_key")?Pg(this,z,G):aP(this,z,G.videoId,G.Tq),this.Qs.B.set(G,E,3600));this.t5.clearQueue(t);var x;(x=this.X$())==null||x.On("sgap",{f:v})}if(b){for(;u.Xr.length&&u.Xr[0].isExpired();)u.Xr.shift();X=u.Xr.length- +1;X=X>0&&b.B(u.Xr[X])&&b.B(u.Xr[X-1]);u.Xr.push(b)}H||(Q&&FVY(Q)?(Vq(this.rh)&&!this.M7&&(Q.fetch=0),oP(this,Q)):this.playlist&&oP(this,null),Q&&(this.M7=LF(!1,Q.external_list)));this.Yv.publish("loadvideo");z=this.l1(u,z,f);X&&this.wP("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+u.Xr.join()).replace(/[;:,]/g,"_"));return z}; +g.S.preloadVideoByPlayerVars=function(Q,z,H,f,b){z=z===void 0?1:z;H=H===void 0?NaN:H;f=f===void 0?"":f;b=b===void 0?"":b;var L="";if(this.rh.V("html5_autonav_autoplay_in_preload_key"))L=leZ(this,z,Q,b);else{var u=yh(Q);L=aP(this,z,u,b)}if(this.Qs.B.get(L))return this.logger.debug(function(){return"already preloaded "+L}),null; +Q=new g.Kv(this.rh,Q);b&&(Q.Tq=b);return eTa(this,Q,z,H,f)}; +g.S.setMinimized=function(Q){this.visibility.setMinimized(Q);(Q=vIu(this.RB))&&(this.isMinimized()?Q.load():Q.unload());this.Yv.publish("minimized")}; +g.S.setInline=function(Q){this.visibility.setInline(Q)}; +g.S.setInlinePreview=function(Q){this.visibility.setInline(Q)}; +g.S.z$=function(Q){Q1A(this,Q)||this.visibility.z$(Q)}; +g.S.setSqueezeback=function(Q){this.visibility.setSqueezeback(Q)}; +g.S.fk=function(){var Q,z=(Q=this.mediaElement)==null?void 0:Q.ai();z&&(this.rh.Sl&&tK(q1(function(){return document.exitFullscreen()}),function(){}),tK(q1(function(){return $Q(z)}),function(){}))}; +g.S.Hin=function(){this.mediaElement.ai();this.mediaElement.ai().webkitPresentationMode==="picture-in-picture"?this.z$(!0):this.z$(!1)}; +g.S.togglePictureInPicture=function(){var Q=this.X$();Q&&Q.togglePictureInPicture()}; +g.S.l1=function(Q,z,H){z=z===void 0?1:z;this.logger.debug(function(){return"start load video, id "+Q.videoId+", type "+z}); +Kj("_start",this.jy.timerName)||g.zr(sS)(void 0,this.jy.timerName);var f=!1,b=WFZ(this,z,Q,!1);b?(f=!0,Q.dispose()):(b=Z2(this,z,Q,!0,H),(this.V("html5_onesie")||this.V("html5_load_before_stop"))&&b.A3()&&b.gX(),this.q9.stop(),z===1&&z!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,z),this.Rl(b));b===this.ey()&&(this.rh.j2=Q.oauthToken);if(!b.A3())return!1;if(b===this.ey())return this.Za(1),H=Nc(this),f&&this.V("html5_player_preload_ad_fix")&&b.getPlayerType()===1&& +b.DG()&&this.nt("dataloaded",b,b.getVideoData()),H;b.v2();return!0}; +g.S.cueVideoByPlayerVars=function(Q,z){var H=this;z=z===void 0?1:z;var f=this.ey();if(this.Iq().enableServerStitchedDai&&f&&!f.vG()&&Q&&Object.keys(Q).length>0)f.On("qvonss",{vid:(Q==null?void 0:Q.videoId)||"",ptype:z});else if(Q&&FVY(Q))if(this.b5=!0,oP(this,Q),(Q=g.Eu(this.playlist))&&Q.EZ())cg(this,Q,z);else this.playlist.onReady(function(){Jw(H)}); +else{z||(z=this.getPresentingPlayerType());z===1&&this.qU();f=new g.Kv(this.rh,Q);var b=g.O8(this.rh)&&!this.rh.wh&&z===1&&!f.isAd()&&!f.UY;this.Yv.publish("cuevideo");b?(this.X$().getVideoData().loading=!0,AYL(f,Q?Q:{}).then(function(L){cg(H,L,z)}),f.dispose()):cg(this,f,z)}}; +g.S.cN=function(Q,z,H,f,b,L,u){if(!Q&&!H)throw Error("Playback source is invalid");if(JE(this.rh)||g.xJ(this.rh))return z=z||{},z.lact=Iw(),z.vis=this.Yv.getVisibilityState(),this.Yv.F$("onPlayVideo",{videoId:Q,watchEndpoint:L,sessionData:z,listId:H}),!1;$8L(this.jy);this.jy.reset();Q={video_id:Q};f&&(Q.autoplay="1");f&&(Q.autonav="1");L&&(Q.player_params=L.playerParams);u&&(Q.oauth_token=u);H?(Q.list=H,this.loadPlaylist(Q)):this.loadVideoByPlayerVars(Q,1);return!0}; +g.S.cuePlaylist=function(Q,z,H,f){this.b5=!0;ziJ(this,Q,z,H,f)}; +g.S.loadPlaylist=function(Q,z,H,f){this.b5=!1;ziJ(this,Q,z,H,f)}; +g.S.jq=function(){return this.Yv.isMutedByMutedAutoplay()?!1:this.getPresentingPlayerType()===3?!0:!(!this.playlist||!this.playlist.Yr())}; +g.S.It=fn(13); +g.S.nextVideo=function(Q,z){var H=g.RZ(this.ey().getVideoData());g.PG(this.Yv)&&H?this.cN(H.videoId,z?H.wv:H.sessionData,H.playlistId,z,void 0,H.aM||void 0):this.M7?this.Yv.g4("onPlaylistNext"):this.getPresentingPlayerType()===3?Ig(this.RB).nextVideo():!this.playlist||Vq(this.rh)&&!this.Yv.isFullscreen()||(this.playlist.Yr(Q)&&o29(this.playlist,x89(this.playlist)),this.playlist.loaded?(Q=z&&this.rh.V("html5_player_autonav_logging"),z&&this.Yv.publish("playlistautonextvideo"),this.l1(g.Eu(this.playlist,void 0, +z,Q),1)):this.b5=!1)}; +g.S.previousVideo=function(Q){this.M7?this.Yv.g4("onPlaylistPrevious"):this.getPresentingPlayerType()===3?Ig(this.RB).CX():!this.playlist||Vq(this.rh)&&!this.Yv.isFullscreen()||(this.playlist.bz(Q)&&o29(this.playlist,OOn(this.playlist)),this.playlist.loaded?this.l1(g.Eu(this.playlist),1):this.b5=!1)}; +g.S.playVideoAt=function(Q){this.M7?this.Yv.g4("onPlaylistIndex",Q):this.playlist&&(this.playlist.loaded?this.l1(g.Eu(this.playlist,Q),1):this.b5=!1,o29(this.playlist,Q))}; +g.S.getPlaylist=function(){return this.playlist}; +g.S.X4=fn(25);g.S.B4m=function(Q){this.Yv.A$("onCueRangeEnter",Q.getId())}; +g.S.qVI=function(Q){this.Yv.A$("onCueRangeExit",Q.getId())}; +g.S.j9=function(){var Q=g.oO(this.xt());Q&&Q.j9()}; +g.S.pZ=function(Q,z,H){var f=this.QE(z);if(f){var b=this.Iq();if(g.wr(b)){if(this.OY)if(this.V("html5_ssap_enable_cpn_triggered_media_end")&&f.getPlayerType()===2&&this.OY.f4()&&(f=this.ey()),z===1)for(var L=BN(this.OY,b.clientPlaybackNonce),u=g.n(Q),X=u.next();!X.done;X=u.next())X=X.value,X.start+=L,X.end+=L,X.hB=L,X.L=b.clientPlaybackNonce;else if(this.V("html5_ssap_enable_cpn_triggered_media_end")&&z===2)for(this.getPresentingPlayerType(),b=g.n(Q),L=b.next();!L.done;L=b.next())L.value.L=this.OY.l$(); +b=g.n(Q);for(L=b.next();!L.done;L=b.next())u=void 0,L.value.playerType=(u=z)!=null?u:1}f.pZ(Q,H);z&&this.getPresentingPlayerType()!==z||ie(this,"cuerangesadded",Q)}}; +g.S.OR=function(Q,z){var H=this.QE(z);H&&(H.OR(Q),z&&this.getPresentingPlayerType()!==z||ie(this,"cuerangesremoved",Q))}; +g.S.kR=function(Q){var z=this.X$()||this.ey(),H=this.getPresentingPlayerType();return this.V("html5_ssap_enable_cpn_triggered_media_end")?z.kR(H,Q):z.kR(H)}; +g.S.kq5=function(){function Q(){var f=z.screenLayer||(z.isMinimized()?3:0),b=g.Jl(f);if(b&&b!=="UNDEFINED_CSN"){var L=z.rh.V("web_player_attach_player_response_ve"),u=z.rh.V("web_playback_associated_ve");f={cpn:z.getVideoData().clientPlaybackNonce,csn:b};z.getVideoData().yl&&(L||u)&&(L=g.xG(z.getVideoData().yl),g.fa(b,L),u&&(f.playbackVe=L.getAsJson()));z.getVideoData().queueInfo&&(f.queueInfo=z.getVideoData().queueInfo);b={};z.V("web_playback_associated_log_ctt")&&z.getVideoData().j&&(b.cttAuthInfo= +{token:z.getVideoData().j,videoId:z.getVideoData().videoId});g.qV("playbackAssociated",f,b)}else g.ax(new g.kQ("CSN Missing or undefined during playback association"))} +var z=this,H=this.X$();this.getPresentingPlayerType();ZO6(this.jy,H.getVideoData(),L2p(this));OL(this)&&this.rh.D&&aq(this.Iq())==="embedded"&&this.Nq&&Math.random()<.01&&g.qV("autoplayTriggered",{intentional:this.intentionalPlayback});this.Nq=!1;uFv(this.RB);this.V("web_player_defer_ad")&&Uua(this);this.Yv.g4("onPlaybackStartExternal");(this.rh.V("mweb_client_log_screen_associated"),c0(this.rh))||Q();H={};this.getVideoData().j&&(H.cttAuthInfo={token:this.getVideoData().j,videoId:this.getVideoData().videoId}); +H.sampleRate=20;DA("player_att",H);if(this.getVideoData().botguardData||this.V("fetch_att_independently"))g.wm(this.rh)||wS(this.rh)==="MWEB"?g.Q5(g.HH(),function(){IP(z)}):IP(this); +this.bE();duL(this);this.V("embeds_enable_autoplay_and_visibility_signals")&&g.O8(this.rh)&&(H={autoplayBrowserPolicy:KE(),autoplayIntended:V1(this.getVideoData()),autoplayStatus:iNL(this.getVideoData(),1),cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.qV("embedsAutoplayStatusChanged",H))}; +g.S.zQ=function(){this.Yv.publish("internalAbandon");Bg(this)}; +g.S.onApiChange=function(){var Q=this.X$();this.rh.Y&&Q?this.Yv.A$("onApiChange",Q.getPlayerType()):this.Yv.A$("onApiChange")}; +g.S.wcj=function(){var Q=this.mediaElement;Q={volume:g.y4(Math.floor(Q.getVolume()*100),0,100),muted:Q.qN()};Q.muted||YI(this,!1);this.JT=g.P3(Q);this.Yv.A$("onVolumeChange",Q)}; +g.S.mutedAutoplay=function(Q){var z=this.getVideoData().videoId;isNaN(this.Gk)&&(this.Gk=this.getVideoData().startSeconds);if((Q==null?0:Q.videoId)||z)this.loadVideoByPlayerVars({video_id:(Q==null?0:Q.videoId)?Q==null?void 0:Q.videoId:z,playmuted:!0,start:this.Gk,muted_autoplay_duration_mode:Q==null?void 0:Q.durationMode}),this.Yv.g4("onMutedAutoplayStarts")}; +g.S.onFullscreenChange=function(){var Q=Stp(this);this.tB(Q?1:0);vX9(this,!!Q)}; +g.S.tB=function(Q){var z=!!Q,H=!!this.mG()!==z;this.visibility.tB(Q);this.template.tB(z);this.V("html5_media_fullscreen")&&!z&&this.mediaElement&&Stp(this)===this.mediaElement.ai()&&this.mediaElement.Bd();this.template.resize();H&&this.jy.tick("fsc");H&&(this.Yv.publish("fullscreentoggled",z),Q=this.Iq(),z={fullscreen:z,videoId:Q.k6||Q.videoId,time:this.getCurrentTime()},this.Yv.getPlaylistId()&&(z.listId=this.Yv.getPlaylistId()),this.Yv.A$("onFullscreenChange",z))}; +g.S.Sd=function(){return this.visibility.Sd()}; +g.S.isFullscreen=function(){return this.visibility.isFullscreen()}; +g.S.mG=function(){return this.visibility.mG()}; +g.S.Nr$=function(){if(this.X$()){var Q=this.mG();Q!==0&&Q!==1||this.tB(Stp(this)?1:0);Q=window.screen.width*window.screen.height;var z=window.outerHeight*window.outerWidth;this.rh.AK?(this.HW=Math.max(this.HW,Q,z),Q=z/this.HW<.33,this.visibility.z$(Q),this.rh.zO&&Q1A(this,Q)):this.mediaElement&&RTa(this,z/Q<.33)&&this.mediaElement.Bd()}}; +g.S.Uin=function(Q){this.getPresentingPlayerType()!==3&&this.Yv.publish("liveviewshift",Q)}; +g.S.playVideo=function(Q,z){this.logger.debug(function(){return"play video, player type "+Q}); +var H=this.QE(Q);H?this.appState===2?(g.Tt(this.rh)&&t4(this.jy),Nc(this)):g.w(H.getPlayerState(),2)?(z=36,this.getVideoData().fq()&&(z=37),this.seekTo(0,void 0,void 0,void 0,z)):H.playVideo(!1,z):this.Qs.Z.playVideo(!1,z)}; +g.S.pauseVideo=function(Q,z){(Q=this.QE(Q))?Q.pauseVideo(z):this.Qs.Z.pauseVideo(z)}; +g.S.stopVideo=function(Q){Q=Q===void 0?!1:Q;this.logger.debug(function(){return"stop video"}); +var z=this.ey().getVideoData(),H=new g.Kv(this.rh,{video_id:z.k6||z.videoId,oauth_token:z.oauthToken});H.U=g.P3(z.U);var f;!Q||(f=this.webPlayerContextConfig)!=null&&f.disableStaleness||(H.AP=!0);this.cancelPlayback(6);cg(this,H,1)}; +g.S.cancelPlayback=function(Q,z){var H=this;this.logger.debug(function(){return"start cancel playback, type "+z}); +var f=this.QE(z);f?z===2&&f.getPlayerType()===1&&(T_(this.Iq())||g.wr(this.getVideoData()))?f.On("canclpb",{r:"no_adpb_ssdai"}):(this.rh.vz()&&f.On("canclpb",{r:Q}),this.appState===1||this.appState===2?this.logger.debug(function(){return"cancel playback end, app not started, state "+H.appState}):(f===this.X$()&&(this.logger.debug("cancel playback, destroy modules"),Nb(this.RB,Q)),z===1&&(f.stopVideo(),Bg(this)),f.Iv(void 0,Q!==6),ie(this,"cuerangesremoved",f.o6()),f.Oi(),this.t5&&f.isGapless()&&(f.MO(!0), +f.setMediaElement(this.mediaElement)))):this.logger.debug("cancel playback end, no player to cancel")}; +g.S.sendVideoStatsEngageEvent=function(Q,z,H){(z=this.QE(z))&&MpJ(this.rh,Q)?z.sendVideoStatsEngageEvent(Q,H):H&&H()}; +g.S.kV=function(Q){var z=this.QE();return z&&MpJ(this.rh,Q)?z.kV(Q):null}; +g.S.updatePlaylist=function(){!Vq(this.rh)&&g.O8(this.rh)&&iML(this);this.Yv.g4("onPlaylistUpdate")}; +g.S.setSizeStyle=function(Q,z){this.hx=Q;this.V("web_log_theater_mode_visibility")?this.Kx(z):this.uO=z;this.Yv.publish("sizestylechange",Q,z);this.template.resize()}; +g.S.Kx=function(Q){this.visibility.Kx(Q)}; +g.S.Vf=function(){return this.V("web_log_theater_mode_visibility")?this.visibility.Vf():this.uO}; +g.S.isMinimized=function(){return this.visibility.isMinimized()}; +g.S.isInline=function(){return this.visibility.isInline()}; +g.S.S2=function(){return this.visibility.S2()}; +g.S.CK=function(){return this.visibility.CK()}; +g.S.Tn=function(){return this.visibility.Tn()}; +g.S.C0=function(){return this.hx}; +g.S.getAdState=function(){if(this.getPresentingPlayerType()===3)return Ig(this.RB).getAdState();if(!this.Uj()){var Q=IO(this.xt());if(Q)return Q.getAdState()}return-1}; +g.S.Imc=function(Q){var z=this.template.getVideoContentRect();vr(this.Sa,z)||(this.Sa=z,(z=this.X$())&&z.ye(),(z=this.ey())&&z===this.X$()&&z.ye(),this.mG()===1&&this.AQ&&vX9(this,!0));this.Ub&&g.Zz(this.Ub,Q)||(this.Yv.publish("appresize",Q),this.Ub=Q)}; +g.S.GZ=function(){return this.Yv.GZ()}; +g.S.a6n=function(){this.getPresentingPlayerType()===2&&this.J7.isManifestless()?zT9(this.J7):(this.Xh&&(XFn(this.Xh),Bg(this)),yyL(this,"signature"))}; +g.S.han=function(Q){Q&&yyL(this,"reloadPlayerEvent",void 0,Q)}; +g.S.XU=function(Q){this.MO(Q);GD(this)}; +g.S.LMn=function(Q){if(Q.errorCode==="manifest.net.badstatus"){var z=this.rh.experiments.Nc("html5_use_network_error_code_enums")?401:"401";Q.details.rc===z&&this.Yv.F$("onPlayerRequestAuthFailed")}}; +g.S.xj=function(Q){this.Yv.publish("heartbeatparams",Q)}; +g.S.P3=function(Q){this.Yv.F$("onAutonavChangeRequest",Q!==1)}; +g.S.aB=function(){return this.mediaElement}; +g.S.setBlackout=function(Q){if(this.rh.gh!==Q){this.rh.gh=Q;var z=this.X$();z&&(z.sN(),this.rh.mq&&MIL(this),z.C4(Q))}}; +g.S.kx$=function(){var Q=this.X$();if(Q){var z=!this.Yv.MZ();Q.aC(z)}}; +g.S.onLoadedMetadata=function(){this.Yv.g4("onLoadedMetadata")}; +g.S.onDrmOutputRestricted=function(){this.Yv.g4("onDrmOutputRestricted")}; +g.S.z2=function(){this.intentionalPlayback=!0}; +g.S.zv=function(){this.RB.dispose();this.jX.dispose();this.J7.dispose();this.Xh&&this.Xh.dispose();this.FS.removeAll();this.FS.dispose();this.OY&&this.OY.dispose();this.ey().v5();this.MO();this.Qs.dispose();g.vu(this.playlist);g.h.prototype.zv.call(this)}; +g.S.V=function(Q){return this.rh.V(Q)}; +g.S.setScreenLayer=function(Q){this.screenLayer=Q}; +g.S.getInternalApi=function(){return this.Yv.getInternalApi()}; +g.S.createSubtitlesModuleIfNeeded=function(){return this.RB.createSubtitlesModuleIfNeeded()}; +g.S.isOrchestrationLeader=function(){var Q=Yb(this.RB);return Q?Q.isOrchestrationLeader():!1}; +g.S.getVideoUrl=function(Q,z,H,f,b){if(this.GL&&this.GL.postId)return Q=this.rh.getVideoUrl(Q),Q=kr(Q,"v"),Q.replace("/watch","/clip/"+this.GL.postId);var L=this.Yv.isEmbedsShortsMode()||this.rh.yl==="shortspage",u=g.bj(this.getVideoData());return this.rh.getVideoUrl(Q,z,H,f,b,L,u)}; +g.S.Ll=function(){return this.t5.Ll()}; +g.S.aX=function(Q,z,H){this.Yv.publish("spsumpreject",Q,z,H)}; +g.S.JH=function(){try{for(var Q=g.n(Object.values(this.Qs.L)),z=Q.next();!z.done;z=Q.next()){var H=z.value;H.Uw()||H.JH()}if(this.V("html5_sabr_fetch_on_idle_network_preloaded_players"))for(var f=g.n(uzL(this.Qs.B)),b=f.next();!b.done;b=f.next()){var L=b.value;L.Uw()||L.JH()}this.ey().JH()}catch(u){g.ax(u)}}; +g.S.Cj=function(){if(this.Xh){var Q=(0,g.IE)();return this.Xh.Cj(Q)}return!1}; +g.S.Si=function(Q){var z=this.ey();Q&&(z=tIn(this,Q));if(z){var H=z.getVideoData();Q=new Map;H=g.n(H.sabrContextUpdates);for(var f=H.next();!f.done;f=H.next()){var b=g.n(f.value);f=b.next().value;b=b.next().value;var L=void 0;b.scope===4&&((L=z)==null?0:L.Rn(f))&&Q.set(f,b)}return Q}this.ey().On("scuget",{ncpf:"1",ccpn:Q})}; +var Ow={};var s0J={bU:[{DL:/Unable to load player module/,weight:20},{DL:/Failed to fetch/,weight:500},{DL:/XHR API fetch failed/,weight:10},{DL:/JSON parsing failed after XHR fetch/,weight:10},{DL:/Retrying OnePlatform request/,weight:10},{DL:/CSN Missing or undefined during playback association/,weight:100},{DL:/Non-recoverable error. Do not retry./,weight:0},{DL:/Internal Error. Retry with an exponential backoff./,weight:0},{DL:/API disabled by application./,weight:0}],Qe:[{callback:EXa,weight:500}]};var Ny6=/[&\?]action_proxy=1/,Jyk=/[&\?]token=([\w-]*)/,I89=/[&\?]video_id=([\w-]*)/,Ay_=/[&\?]index=([\d-]*)/,Ytc=/[&\?]m_pos_ms=([\d-]*)/,s1c=/[&\?]vvt=([\w-]*)/,Zdc="ca_type dt el flash u_tz u_his u_h u_w u_ah u_aw u_cd u_nplug u_nmime frm u_java bc bih biw brdim vis wgl".split(" "),ryJ="www.youtube-nocookie.com youtube-nocookie.com www.youtube-nocookie.com:443 youtube.googleapis.com www.youtubeedu.com www.youtubeeducation.com video.google.com redirector.gvt1.com".split(" "),j18={android:"ANDROID", +"android.k":"ANDROID_KIDS","android.m":"ANDROID_MUSIC","android.up":"ANDROID_UNPLUGGED",youtube:"WEB","youtube.m":"WEB_REMIX","youtube.up":"WEB_UNPLUGGED",ytios:"IOS","ytios.k":"IOS_KIDS","ytios.m":"IOS_MUSIC","ytios.up":"IOS_UNPLUGGED"},F2_={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},Od6={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};D2.prototype.Z1=function(Q){this.player.vB().tick(Q)}; +D2.prototype.fetch=function(Q,z){var H=this;if(!Q.match(/\[BISCOTTI_ID\]/g))return this.B(Q,z);var f=this.Z===1;f&&this.Z1("a_bid_s");var b=nXJ();if(b!==null)return f&&this.Z1("a_bid_f"),this.B(Q,z,b);b=gXY();f&&g.Fr(b,function(){H.Z1("a_bid_f")}); +return b.then(function(L){return H.B(Q,z,L)})}; +D2.prototype.B=function(Q,z,H){var f=this,b=z===void 0?{}:z;z=b.cP;var L=b.VR;var u=b.cueProcessedMs;H=H===void 0?"":H;var X=this.player.getVideoData(1);b=this.player.C().A5;var v=0;if(u&&L&&!z){var y=L.end-L.start;y>0&&(v=Math.floor(y/1E3))}v=z?z.NB:v;var q={AD_BLOCK:this.Z++,AD_BREAK_LENGTH:v,AUTONAV_STATE:Wg(this.player.C()),CA_TYPE:"image",CPN:X.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.SN()*1E3,LACT:Iw(),LIVE_INDEX:z?this.L++:1,LIVE_TARGETING_CONTEXT:z&&z.context?z.context:"",MIDROLL_POS:L? +Math.round(L.start/1E3):0,MIDROLL_POS_MS:L?Math.round(L.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.Un().Oq().height,P_W:this.player.Un().Oq().width,YT_REMOTE:b?b.join(","):""},M=tF(C1);Object.keys(M).forEach(function(t){M[t]!=null&&(q[t.toUpperCase()]=M[t].toString())}); +H!==""&&(q.BISCOTTI_ID=H);H={};Mn(Q)&&(H.sts="20153",(z=this.player.C().forcedExperiments)&&(H.forced_experiments=z));var C=v2(g.rN(Q,q),H);return C.split("?").length!==2?$r(Error("Invalid AdBreakInfo URL")):g.HV(this.player.C(),X==null?void 0:X.oauthToken).then(function(t){if(t&&qn()){var E=cG();ij(E,t)}t=f.player.Vk(E);E=By8(f,C,q,X.isMdxPlayback,u);return g.Tv(t,E,"/youtubei/v1/player/ad_break").then(function(G){return G})})}; +D2.prototype.reset=function(){this.L=this.Z=1};g.p(PJp,D2); +PJp.prototype.B=function(Q,z,H){z=z===void 0?{}:z;var f=z.cP;var b=z.VR;var L=z.cueProcessedMs;H=H===void 0?"":H;z=this.Z;this.Z++;var u=this.player.C().V("h5_disable_macro_substitution_in_get_ad_break")?Q:a8v(this,Q,{cP:f,VR:b,cueProcessedMs:L},H,z);if(u.split("?").length!==2)return Math.random()<.1&&g.ax(Error("Invalid AdBreakInfo URL")),$r(Error("Invalid AdBreakInfo URL"));var X=this.player.getVideoData(1).isMdxPlayback,v=H;H=Jyk.exec(u);H=H!=null&&H.length>=2?H[1]:"";Q=Ny6.test(u);var y=I89.exec(u); +y=y!=null&&y.length>=2?y[1]:"";var q=Ay_.exec(u);q=q!=null&&q.length>=2&&!Number.isNaN(Number(q[1]))?Number(q[1]):1;var M=Ytc.exec(u);M=M!=null&&M.length>=2?M[1]:"0";var C=al(this.player.C().qP),t=g.lA(this.player.getVideoData(1).yl,!0);$En(this,t,u,v===""?"":v,this.player.C(),this.player.getVideoData(1));v={splay:!1,lactMilliseconds:String(Iw()),playerHeightPixels:Math.trunc(this.player.Un().Oq().height),playerWidthPixels:Math.trunc(this.player.Un().Oq().width),vis:Math.trunc(this.player.getVisibilityState()), +signatureTimestamp:20153,autonavState:Wg(this.player.C())};if(X){X={};var E=this.player.C().A5;xEA(X,E?E.join(","):"")&&(v.mdxContext=X)}if(X=ryJ.includes(C)?void 0:g.iv("PREF")){E=X.split(RegExp("[:&]"));for(var G=0,x=E.length;G1&&J[1].toUpperCase()==="TRUE"){t.user.lockedSafetyMode=!0;break}}v.autoCaptionsDefaultOn=oXa(X)}u=s1c.exec(u);(u=u!=null&&u.length>=2?u[1]:"")&&y&&(t.user.credentialTransferTokens= +[{token:u,scope:"VIDEO"}]);u={contentPlaybackContext:v};v=this.player.getVideoData(1).getGetAdBreakContext();X=this.player.getVideoData(1).clientPlaybackNonce;E=L!==void 0?Math.round(L).toString():void 0;G=(f==null?0:f.context)?f.context:void 0;x=0;L&&b&&!f&&(b=b.end-b.start,b>0&&(x=Math.floor(b/1E3)));f=(f=Math.trunc((f?f.NB:x)*1E3))?String(f):void 0;b=this.player.SN()*1E3;b=Number.isNaN(b)?0:Math.trunc(b);z={adBlock:z,params:H,breakIndex:q,breakPositionMs:M,clientPlaybackNonce:X,topLevelDomain:C, +isProxyAdTagRequest:Q,context:t,overridePlaybackContext:u,cueProcessedMs:E,videoId:y?y:void 0,liveTargetingParams:G,breakLengthMs:f,driftFromHeadMs:b?String(b):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:v?v:void 0};return UEA(this,z)};var BqJ={Spl:"replaceUrlMacros",dKv:"onAboutThisAdPopupClosed",Qvh:"executeCommand"};cy_.prototype.We=function(){return"adPingingEndpoint"}; +cy_.prototype.OW=function(Q,z,H){nVc(this.Vl.get(),Q,z,H)};idn.prototype.We=function(){return"changeEngagementPanelVisibilityAction"}; +idn.prototype.OW=function(Q){this.K.F$("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:Q})};hic.prototype.We=function(){return"loggingUrls"}; +hic.prototype.OW=function(Q,z,H){Q=g.n(Q);for(var f=Q.next();!f.done;f=Q.next())f=f.value,nVc(this.Vl.get(),f.baseUrl,z,H,f.attributionSrcMode)};g.p(DEL,g.h);g.p(VU,g.h);g.S=VU.prototype;g.S.addListener=function(Q){this.listeners.push(Q)}; +g.S.removeListener=function(Q){this.listeners=this.listeners.filter(function(z){return z!==Q})}; +g.S.cY=function(Q,z,H,f,b,L,u,X){if(Q==="")Cp("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(Q!==this.Z||H){this.Z=Q;this.K3.get().cY(Q,z,H,f,b,L,u,X);this.cI.get().cY(Q,z,H,f,b,L,u,X);var v;(v=this.u8)==null||v.get().cY(Q,z,H,f,b,L,u,X);this.B.cY(Q,z,H,f,b,L,u,X);v=g.n(this.listeners);for(var y=v.next();!y.done;y=v.next())y.value.cY(Q,z,H,f,b,L,u,X)}else Cp("Duplicate content video loaded signal")}; +g.S.zQ=function(){this.Z&&this.Qa(this.Z)}; +g.S.Qa=function(Q){this.Z=void 0;for(var z=g.n(this.listeners),H=z.next();!H.done;H=z.next())H.value.Qa(Q)};dQ.prototype.U3=function(Q,z,H,f,b){K2Y(this);this.S=!z&&H===0;var L=this.K.getVideoData(1),u=this.K.getVideoData(2);L&&(this.contentCpn=L.clientPlaybackNonce,this.videoId=L.videoId,this.Z=L.j);u&&(this.adCpn=u.clientPlaybackNonce,this.adVideoId=u.videoId,this.adFormat=u.adFormat);this.D=Q;f<=0?(K2Y(this),this.S=!z&&H===0):(this.actionType=this.S?z?"unknown_type":"video_to_ad":z?"ad_to_video":"ad_to_ad",this.videoStreamType=b?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& +(this.L=!0,Kj("_start",this.actionType)&&mEA(this)))}; +dQ.prototype.reset=function(){return new dQ(this.K)};g.p(mL,g.h);mL.prototype.addCueRange=function(Q,z,H,f,b,L,u){L=L===void 0?3:L;u=u===void 0?1:u;this.Z.has(Q)?Cp("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:Q}):(Q=new w$u(Q,z,H,f,L),this.Z.set(Q.id,{VR:Q,listener:b,A_:u}),this.K.UZ([Q],u))}; +mL.prototype.removeCueRange=function(Q){var z=this.Z.get(Q);z?(this.K.NG([z.VR],z.A_),this.Z.delete(z.VR.id)):Cp("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:Q})}; +mL.prototype.onCueRangeEnter=function(Q){if(this.Z.has(Q.id))this.Z.get(Q.id).listener.onCueRangeEnter(Q.id)}; +mL.prototype.onCueRangeExit=function(Q){if(this.Z.has(Q.id))this.Z.get(Q.id).listener.onCueRangeExit(Q.id)}; +g.p(w$u,g.fi);wQ.prototype.hQ=function(Q){this.K.hQ(Q)}; +wQ.prototype.Wn=function(Q){var z=g.rc.apply(1,arguments);Q==="onAdStart"||Q==="onAdEnd"?this.K.A$.apply(this.K,[Q].concat(g.F(z))):this.K.F$.apply(this.K,[Q].concat(g.F(z)))};kI.prototype.MB=function(Q){return Q&&TD(this)};var HkJ=null;g.p(zbc,g.vf);zbc.prototype.Yb=function(Q){return this.Z.hasOwnProperty(Q)?this.Z[Q].Yb():{}}; +g.D6("ytads.bulleit.getVideoMetadata",function(Q){return le().Yb(Q)}); +g.D6("ytads.bulleit.triggerExternalActivityEvent",function(Q,z,H){var f=le();H=Qz6(H);H!==null&&f.publish(H,{queryId:Q,viewabilityString:z})});g.S=RP.prototype;g.S.IJ=function(Q,z){if(!this.Z.has(Q))return{};if(z==="seek"){z=!1;z=z===void 0?!1:z;var H=Y3(xW).A6(Q,{});H?xB(H):z&&(Q=Y3(xW).tQ(null,T9(),!1,Q),Q.YF=3,e8A([Q]));return{}}z=bk8(z);if(z===null)return{};var f=this.K.e5();if(!f)return{};var b=this.K.getPresentingPlayerType(!0);if((H=this.K.getVideoData(b))==null||!H.isAd())return{};H={opt_adElement:f,opt_fullscreen:this.K3.get().isFullscreen()};return el9(z,Q,H)}; +g.S.mI=function(Q,z,H,f,b){this.Z.has(Q)&&(f<=0||b<=0||Y3(xW).mI(Q,z,H,f,b))}; +g.S.T4=function(Q){var z;(z=this.Z.get(Q.queryId))==null||z.T4()}; +g.S.Wk=function(Q){var z;(z=this.Z.get(Q.queryId))==null||z.Wk()}; +g.S.UA=function(Q){var z;(z=this.Z.get(Q.queryId))==null||z.UA()}; +g.S.tV=function(Q){var z;(z=this.Z.get(Q.queryId))==null||z.tV()}; +g.S.RQ=function(Q){var z;(z=this.Z.get(Q.queryId))==null||z.RQ()};MD9.prototype.send=function(Q,z,H,f){try{Ciu(this,Q,z,H,f===void 0?!1:f)}catch(b){}};g.p(tDp,MD9);EVu.prototype.send=function(Q,z,H,f){var b=!1;try{if(f==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||f==="ATTRIBUTION_SRC_MODE_XHR_OPTION")b=!0,Q=g7L(Q);f=b;var L=Q.match(UE);if(L[1]==="https")var u=Q;else L[1]="https",u=sE("https",L[2],L[3],L[4],L[5],L[6],L[7]);var X=qiL(u);L=[];var v=fRv(u)&&this.qc.get().K.C().experiments.Nc("add_auth_headers_to_remarketing_google_dot_com_ping");if(Mn(u)||v)L.push({headerType:"USER_AUTH"}),L.push({headerType:"PLUS_PAGE_ID"}),L.push({headerType:"VISITOR_ID"}),L.push({headerType:"EOM_VISITOR_ID"}), +L.push({headerType:"AUTH_USER"}),L.push({headerType:"DATASYNC_ID"});this.Z.send({baseUrl:u,scrubReferrer:X,headers:L},z,H,f)}catch(y){}};b7.prototype.kV=function(){return this.K.kV(1)};g.p(L0,g.h);g.S=L0.prototype;g.S.jN=function(){return this.K.getVideoData(1).clientPlaybackNonce}; +g.S.addListener=function(Q){this.listeners.push(Q)}; +g.S.removeListener=function(Q){this.listeners=this.listeners.filter(function(z){return z!==Q})}; +g.S.cY=function(){this.Ay.clear();this.ou=null;this.eZ.get().clear()}; +g.S.Qa=function(){}; +g.S.syh=function(Q,z,H,f,b){z.videoId==="nPpU29QrbiU"&&this.K.On("ads_ssm_vdc_s",{pt:H,dvt:Q});Gx(this.qc.get())&&Q!=="dataloaded"||xhu(this,z,H);if(TD(this.qc.get())&&Q==="newdata"&&b!==void 0){Q=this.jN();var L=z.clientPlaybackNonce,u={};$K(this,"rte",(u.ec=L,u.xc=f==null?void 0:f.clientPlaybackNonce,u.tr=b,u.pt=H,u.ia=L!==Q,u.ctp=GR(L),u));z=z.clientPlaybackNonce;f=f==null?void 0:f.clientPlaybackNonce;b=OkY(b);if(b!==1)if(f!==void 0)for(H=g.n(this.listeners),Q=H.next();!Q.done;Q=H.next())Q.value.Zw(f, +z,b);else Cp("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:z,transitionReason:String(b)});b=g.n(this.listeners);for(f=b.next();!f.done;f=b.next())f.value.O_(z)}}; +g.S.P23=function(Q,z){Q!==void 0&&(this.ou=Q,z===void 0?Cp("Expected ad video start time on SS video changed"):this.Ay.set(Q,z));var H=this.K.getPresentingPlayerType(!0),f=this.K.getVideoData(H);this.K.getVideoData(1).On("ads_ssvc",{pt:H,cpn:f==null?void 0:f.clientPlaybackNonce,crtt:this.K.getCurrentTime(1,!1),atlh:this.K.isAtLiveHead(),adstt:z});f?xhu(this,f,H):Cp("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.K.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:Q})}; +g.S.g_=function(Q,z){var H=Q.author,f=Q.clientPlaybackNonce,b=Q.isListed,L=Q.Tq,u=Q.title,X=Q.Ts,v=Q.Qw,y=Q.isMdxPlayback,q=Q.ZK,M=Q.mdxEnvironment,C=Q.isAutonav,t=Q.D4,E=Q.Yn,G=Q.R4,x=Q.videoId||"",J=Q.profilePicture||"",I=Q.HG||"",r=Q.fq()||!1,U=Q.OZ()||!1;Q=Q.mH||void 0;L=this.eZ.get().Z.get(L)||{layoutId:null,slotId:null};var D=this.K.getVideoData(1),T=D.AZ();D=D.getPlayerResponse();z=1E3*this.K.getDuration(z);var k=1E3*this.K.getDuration(1),bL,SY,Q9=(D==null?void 0:(bL=D.playerConfig)==null? +void 0:(SY=bL.daiConfig)==null?void 0:SY.enableDai)||!1,V,R;bL=(D==null?void 0:(V=D.playerConfig)==null?void 0:(R=V.daiConfig)==null?void 0:R.enablePreroll)||!1;return Object.assign({},L,{videoId:x,author:H,clientPlaybackNonce:f,Sf:z,Lq:k,daiEnabled:Q9,TT:bL,isListed:b,AZ:T,profilePicture:J,title:u,HG:I,Ts:X,Qw:v,mH:Q,isMdxPlayback:y,ZK:q,mdxEnvironment:M,isAutonav:C,D4:t,Yn:E,R4:G,fq:r,OZ:U})}; +g.S.zv=function(){this.listeners.length=0;this.Y9=null;g.h.prototype.zv.call(this)};g.p(u7,g.h);g.S=u7.prototype;g.S.cY=function(){var Q=this;TD(this.qc.get())||(this.Z=pg(function(){Q.K.Sm()||Q.K.PS("ad",1)}))}; +g.S.Qa=function(){}; +g.S.addListener=function(Q){this.listeners.push(Q)}; +g.S.removeListener=function(Q){this.listeners=this.listeners.filter(function(z){return z!==Q})}; +g.S.Eo=function(){}; +g.S.playVideo=function(){this.K.playVideo()}; +g.S.pauseVideo=function(){this.K.pauseVideo()}; +g.S.resumeVideo=function(Q){this.o4(Q)&&this.K.playVideo()}; +g.S.o4=function(Q){return this.K.getPlayerState(Q)===2}; +g.S.getCurrentTimeSec=function(Q,z,H){var f=this.cI.get().ou;if(Q===2&&!z&&f!==null)return JR6(this,f);w4(this.qc.get(),"html5_ssap_use_cpn_to_get_time")||(H=void 0);return H!==void 0?this.K.getCurrentTime(Q,z,H):this.K.getCurrentTime(Q,z)}; +g.S.getVolume=function(){return this.K.getVolume()}; +g.S.isMuted=function(){return this.K.isMuted()}; +g.S.getPresentingPlayerType=function(){return this.K.getPresentingPlayerType(!0)}; +g.S.getPlayerState=function(Q){return this.K.getPlayerState(Q)}; +g.S.isFullscreen=function(){return this.K.isFullscreen()}; +g.S.isAtLiveHead=function(){return this.K.isAtLiveHead()}; +g.S.Pe=function(Q){this.K.Pe(Q)}; +g.S.sBT=function(){var Q=this.K.getPresentingPlayerType(!0),z=this.getCurrentTimeSec(Q,!1);if(Q===2){Q=g.n(this.listeners);for(var H=Q.next();!H.done;H=Q.next())H.value.mS(z)}else if(Q===1)for(Q=g.n(this.XB),H=Q.next();!H.done;H=Q.next())H.value.Eo(z)}; +g.S.lmm=function(Q){for(var z=g.n(this.listeners),H=z.next();!H.done;H=z.next())H.value.JN(Q,this.getPresentingPlayerType())}; +g.S.onFullscreenToggled=function(Q){for(var z=g.n(this.listeners),H=z.next();!H.done;H=z.next())H.value.onFullscreenToggled(Q)}; +g.S.onVolumeChange=function(){for(var Q=g.n(this.listeners),z=Q.next();!z.done;z=Q.next())z.value.onVolumeChange()}; +g.S.jU=function(){for(var Q=this.K.isMinimized(),z=g.n(this.listeners),H=z.next();!H.done;H=z.next())H.value.jU(Q)}; +g.S.Y3=function(Q){for(var z=g.n(this.listeners),H=z.next();!H.done;H=z.next())H.value.Y3(Q)}; +g.S.tZ=function(){for(var Q=this.K.Un().Oq(),z=g.n(this.listeners),H=z.next();!H.done;H=z.next())H.value.FI(Q)}; +g.S.mW=function(Q){for(var z=g.n(this.listeners),H=z.next();!H.done;H=z.next())H.value.mW(Q)}; +g.S.vY=function(){for(var Q=g.n(this.listeners),z=Q.next();!z.done;z=Q.next())z.value.vY()};g.p(ARp,g.h);g.p(q_,g.h);q_.prototype.zv=function(){this.Ov.Sm()||this.Ov.get().removeListener(this);g.h.prototype.zv.call(this)};M_.prototype.fetch=function(Q){var z=Q.ip;return this.Z.fetch(Q.YE,{cP:Q.cP===void 0?void 0:Q.cP,VR:z,cueProcessedMs:Q.cueProcessedMs===void 0?0:Q.cueProcessedMs}).then(function(H){return YGv(H,z)})};g.p(C0,g.h);g.S=C0.prototype;g.S.addListener=function(Q){this.listeners.push(Q)}; +g.S.removeListener=function(Q){this.listeners=this.listeners.filter(function(z){return z!==Q})}; +g.S.Xn=function(Q){rR8(this,Q,1)}; +g.S.onAdUxClicked=function(Q,z){to(this,function(H){H.L2(Q,z)})}; +g.S.m$=function(Q){to(this,function(z){z.Ob(Q)})}; +g.S.VD=function(Q){to(this,function(z){z.HM(Q)})}; +g.S.Prh=function(Q){to(this,function(z){z.Y1(Q)})};Ep.prototype.reduce=function(Q){switch(Q.event){case "unknown":return}var z=Q.identifier;var H=this.Z[z];H?z=H:(H={uy:null,mp:-Infinity},z=this.Z[z]=H);H=Q.startSecs+Q.Z/1E3;if(!(H=this.Z.startSecs&&H.startSecs<=this.Z.startSecs+this.Z.NB)){var f=void 0;if(eQ(this.qc.get())&&H.identifier!==((f=this.Z)==null?void 0:f.identifier)){var b=f=void 0,L=void 0,u=void 0;zT(this.Vl.get(),"ocud","ccpi."+H.identifier+";ccpe."+H.event+";ccps."+H.startSecs+";\n ccpd."+H.NB+";pcpi."+((f=this.Z)==null?void 0:f.identifier)+";pcpe."+ +((b=this.Z)==null?void 0:b.event)+";\n pcps."+((L=this.Z)==null?void 0:L.startSecs)+";pcpd."+((u=this.Z)==null?void 0:u.NB)+";")}f=void 0;H.identifier!==((f=this.Z)==null?void 0:f.identifier)&&Cp("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.Z=H,Pi6(this,H)}}; +g.S.zv=function(){this.B!=null&&(this.B.unsubscribe("cuepointupdated",this.i_,this),this.B=null);this.listeners.length=0;this.F_.length=0;g.h.prototype.zv.call(this)};n0.prototype.addPlayerResponseForAssociation=function(Q){this.K.addPlayerResponseForAssociation(Q)};g.S=ZB.prototype;g.S.KU=function(Q,z,H,f,b,L,u){return this.K.KU(Q,z,H,f,b,L,u)}; +g.S.Yw=function(Q,z){this.K.Yw(Q,z)}; +g.S.To=function(Q,z,H){this.K.To(Q,z,H)}; +g.S.dc=function(Q){this.K.dc(Q)}; +g.S.wF=function(Q,z,H,f,b,L,u){this.K.wF(Q,z,H,f,b,L,u)}; +g.S.U7=function(Q){return this.K.U7(Q)}; +g.S.finishSegmentByCpn=function(Q,z,H){H=ik_(H);this.K.finishSegmentByCpn(Q,z,H)};g.p(WOp,g.h);g.p(DhL,g.h);g.p(KO_,g.h);g.p(VDp,g.h);g.p(dh_,g.h);g.p(w1Z,g.h);w1Z.prototype.L=function(){return this.B};g.p(k$u,ds); +k$u.prototype.D=function(Q){var z=Q.content;if(z.componentType==="shopping-companion")switch(Q.actionType){case 1:case 2:Q=this.Z.getVideoData(1);this.Z.F$("updateKevlarOrC3Companion",{contentVideoId:Q&&Q.videoId,shoppingCompanionCarouselRenderer:z.renderer,layoutId:z.layoutId,macros:z.macros,onLayoutVisibleCallback:z.Z,interactionLoggingClientData:z.interactionLoggingClientData});break;case 3:this.Z.F$("updateKevlarOrC3Companion",{})}else if(z.componentType==="action-companion")switch(Q.actionType){case 1:case 2:Q=this.Z.getVideoData(1); +this.Z.F$("updateKevlarOrC3Companion",{contentVideoId:Q&&Q.videoId,actionCompanionAdRenderer:z.renderer,layoutId:z.layoutId,macros:z.macros,onLayoutVisibleCallback:z.Z,interactionLoggingClientData:z.interactionLoggingClientData});break;case 3:z.renderer&&(z=this.Z.getVideoData(1),this.Z.F$("updateKevlarOrC3Companion",{contentVideoId:z&&z.videoId})),this.Z.F$("updateKevlarOrC3Companion",{})}else if(z.componentType==="image-companion")switch(Q.actionType){case 1:case 2:Q=this.Z.getVideoData(1);this.Z.F$("updateKevlarOrC3Companion", +{contentVideoId:Q&&Q.videoId,imageCompanionAdRenderer:z.renderer,layoutId:z.layoutId,macros:z.macros,onLayoutVisibleCallback:z.Z,interactionLoggingClientData:z.interactionLoggingClientData});break;case 3:z=this.Z.getVideoData(1),this.Z.F$("updateKevlarOrC3Companion",{contentVideoId:z&&z.videoId}),this.Z.F$("updateKevlarOrC3Companion",{})}else if(z.componentType==="top-banner-image-text-icon-buttoned")switch(Q.actionType){case 1:case 2:Q=this.Z.getVideoData(1);this.Z.F$("updateKevlarOrC3Companion", +{contentVideoId:Q&&Q.videoId,topBannerImageTextIconButtonedLayoutViewModel:z.renderer,layoutId:z.layoutId,macros:z.macros,onLayoutVisibleCallback:z.Z,interactionLoggingClientData:z.interactionLoggingClientData});break;case 3:z.renderer&&(z=this.Z.getVideoData(1),this.Z.F$("updateKevlarOrC3Companion",{contentVideoId:z&&z.videoId})),this.Z.F$("updateKevlarOrC3Companion",{})}else if(z.componentType==="banner-image")switch(Q.actionType){case 1:case 2:Q=this.Z.getVideoData(1);this.Z.F$("updateKevlarOrC3Companion", +{contentVideoId:Q&&Q.videoId,bannerImageLayoutViewModel:z.renderer,layoutId:z.layoutId,macros:z.macros,onLayoutVisibleCallback:z.Z,interactionLoggingClientData:z.interactionLoggingClientData});break;case 3:z=this.Z.getVideoData(1),this.Z.F$("updateKevlarOrC3Companion",{contentVideoId:z&&z.videoId}),this.Z.F$("updateKevlarOrC3Companion",{})}else if(z.componentType==="ads-engagement-panel")switch(z=z.renderer,Q.actionType){case 1:case 2:this.Z.F$("updateEngagementPanelAction",z.addAction);this.Z.F$("changeEngagementPanelVisibility", +z.expandAction);break;case 3:this.Z.F$("changeEngagementPanelVisibility",z.hideAction),this.Z.F$("updateEngagementPanelAction",z.removeAction)}else if(z.componentType==="ads-engagement-panel-layout"){var H=z.renderer;switch(Q.actionType){case 1:case 2:this.Z.F$("updateEngagementPanelAction",{action:hl(H.addAction),layoutId:z.layoutId,onLayoutVisibleCallback:z.Z,interactionLoggingClientData:z.interactionLoggingClientData});this.Z.F$("changeEngagementPanelVisibility",hl(H.expandAction));break;case 3:this.Z.F$("changeEngagementPanelVisibility", +hl(H.hideAction)),this.Z.F$("updateEngagementPanelAction",{action:hl(H.removeAction)})}}};g.p(T_J,Q_);g.S=T_J.prototype;g.S.init=function(Q,z,H){Q_.prototype.init.call(this,Q,z,H);g.M2(this.L,"stroke-dasharray","0 "+this.B);this.L.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.j.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.D.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; +g.S.clear=function(){this.hide()}; +g.S.hide=function(){H6(this);Q_.prototype.hide.call(this)}; +g.S.show=function(){zS(this);Q_.prototype.show.call(this)}; +g.S.Is=function(){this.hide()}; +g.S.ND=function(){if(this.Z){var Q=this.Z.getProgressState();Q!=null&&Q.current!=null&&g.M2(this.L,"stroke-dasharray",Q.current/Q.seekableEnd*this.B+" "+this.B)}};g.p(ebc,Ec);g.S=ebc.prototype; +g.S.init=function(Q,z,H){Ec.prototype.init.call(this,Q,z,H);if(z.image&&z.image.thumbnail)if(z.headline)if(z.description)if(z.backgroundImage&&z.backgroundImage.thumbnail)if(z.actionButton&&g.K(z.actionButton,g.Pc))if(Q=z.durationMilliseconds||0,typeof Q!=="number"||Q<=0)g.PT(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+Q));else if(z.navigationEndpoint){var f=this.api.getVideoData(2);if(f!=null){var b=z.image.thumbnail.thumbnails;b!=null&& +b.length>0&&g.Fx(g.Q4(b[0].url))&&(b[0].url=f.profilePicture,g.Fx(g.Q4(f.profilePicture))&&XM8("VideoPlayer",239976093,"Expected non-empty profile picture."));b=z.backgroundImage.thumbnail.thumbnails;b!=null&&b.length>0&&g.Fx(g.Q4(b[0].url))&&(b[0].url=f.MP());b=z.headline;b!=null&&g.Fx(g.Q4(b.text))&&(b.text=f.author)}this.U.init(SE("ad-image"),z.image,H);this.j.init(SE("ad-text"),z.headline,H);this.L.init(SE("ad-text"),z.description,H);this.iT.init(SE("ad-image"),z.backgroundImage,H);f=["ytp-ad-action-interstitial-action-button", +"ytp-ad-action-interstitial-action-button-rounded"];this.slot.classList.add("ytp-ad-action-interstitial-slot-dark-background");this.j.element.classList.add("ytp-ad-action-interstitial-headline-light");this.L.element.classList.add("ytp-ad-action-interstitial-description-light");f.push("ytp-ad-action-interstitial-action-button-dark");this.api.C().B&&(f.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),f.push("ytp-ad-action-interstitial-action-button-dark"));this.api.C().V("enable_unified_action_endcap_on_web")&& +!this.api.C().B&&(f.push("ytp-ad-action-interstitial-action-button-unified"),this.C3.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.U.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.WI.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.dV.classList.add("ytp-ad-action-interstitial-card-unified"),this.wh.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.L.element.classList.add("ytp-ad-action-interstitial-description-unified"), +this.yl.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.j.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.jm.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.mq.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new Bf(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,f);g.W(this,this.actionButton);this.actionButton.Gv(this.C3); +this.actionButton.init(SE("button"),g.K(z.actionButton,g.Pc),H);VK(this.actionButton.element);f=wN(this.actionButton.element);ms(this.actionButton.element,f+" This link opens in new tab");this.navigationEndpoint=z.navigationEndpoint;this.D.X(this.jm,"click",this.H4,this);this.D.X(this.wh,"click",this.H4,this);!this.api.C().V("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.C().B||this.D.X(this.yl,"click",this.H4,this);this.Z=this.uP?new FS(this.api,Q):new xU(Q);g.W(this,this.Z);if(z.skipButton){(Q= +g.K(z.skipButton,kYs))&&this.Z&&(this.skipButton=new np(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,this.Z,this.EH),g.W(this,this.skipButton),this.skipButton.Gv(this.element),this.skipButton.init(SE("skip-button"),Q,H));if(H=z.adBadgeRenderer)if(H=g.K(H,wuR))Q=new $U(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,!0,!0),Q.Gv(this.mq),Q.init(SE("simple-ad-badge"),H,this.macros),g.W(this,Q);if(H=z.adInfoRenderer)if(H=g.K(H,sy))Q=new eE(this.api,this.layoutId,this.interactionLoggingClientData, +this.dh,this.element,void 0,!0),Q.Gv(this.mq),Q.init(SE("ad-info-hover-text-button"),H,this.macros),g.W(this,Q)}else z.nonskippableOverlayRenderer&&(Q=g.K(z.nonskippableOverlayRenderer,Bc))&&this.Z&&(this.B=new Lp(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,this.Z,!1),g.W(this,this.B),this.B.Gv(this.element),this.B.init(SE("ad-preview"),Q,H));z.countdownRenderer&&(z=z.countdownRenderer,g.K(z,TJY)&&this.Z&&(H=new T_J(this.api,this.layoutId,this.interactionLoggingClientData,this.dh, +this.Z),g.W(this,H),H.Gv(this.element),H.init(SE("timed-pie-countdown"),g.K(z,TJY),this.macros)));this.show();this.element.focus()}else g.PT(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.PT(Error("AdActionInterstitialRenderer has no button."));else g.PT(Error("AdActionInterstitialRenderer has no background AdImage."));else g.PT(Error("AdActionInterstitialRenderer has no description AdText."));else g.PT(Error("AdActionInterstitialRenderer has no headline AdText."));else g.PT(Error("AdActionInterstitialRenderer has no image."))}; +g.S.clear=function(){g.YQ(this.D);this.hide()}; +g.S.show=function(){lja(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.B&&this.B.show();Ec.prototype.show.call(this)}; +g.S.hide=function(){lja(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.B&&this.B.hide();Ec.prototype.hide.call(this)}; +g.S.H4=function(){this.navigationEndpoint&&(this.layoutId?this.dh.executeCommand(this.navigationEndpoint,this.layoutId):g.PT(Error("Missing layoutId for ad action interstitial.")))};var fGZ={iconType:"CLOSE"},Fl=new g.nC(320,63);g.p(HbZ,Ec);g.S=HbZ.prototype; +g.S.init=function(Q,z,H){Ec.prototype.init.call(this,Q,z,H);this.D=z;this.U=g.z7(this.D.onClickCommands||[]);this.mq=this.D.onErrorCommand||null;if(Q=this.D.contentSupportedRenderer)Q=this.D.contentSupportedRenderer,z=this.D.adInfoRenderer||null,g.K(Q,V5x)?(this.j=g.ea("ytp-ad-overlay-ad-info-button-container",this.L.element),bb_(this,z),Q=uHp(this,g.K(Q,V5x))):g.K(Q,dss)?(this.j=g.ea("ytp-ad-overlay-ad-info-button-container",this.B.element),bb_(this,z),Q=S__(this,g.K(Q,dss))):g.K(Q,msu)?(this.j= +g.ea("ytp-ad-overlay-ad-info-button-container",this.Z.element),bb_(this,z),Q=Xdv(this,g.K(Q,msu))):(g.PT(Error("InvideoOverlayAdRenderer content could not be initialized.")),Q=!1);Q&&(this.show(),vup(this,!0))}; +g.S.clear=function(){vup(this,!1);this.jm.reset();this.wh=0;this.L.hide();this.logVisibility(this.L.element,!1);this.B.hide();this.logVisibility(this.B.element,!1);this.Z.hide();this.logVisibility(this.Z.element,!1);this.hide();this.dispose()}; +g.S.l6j=function(){this.C3&&(this.layoutId?this.dh.executeCommand(this.C3,this.layoutId):g.PT(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; +g.S.BL=function(){a:{if(this.D&&this.D.closeButton&&this.D.closeButton.buttonRenderer){var Q=this.D.closeButton.buttonRenderer;if(Q.serviceEndpoint){Q=[Q.serviceEndpoint];break a}}Q=[]}Q=g.n(Q);for(var z=Q.next();!z.done;z=Q.next())z=z.value,this.layoutId?this.dh.executeCommand(z,this.layoutId):g.PT(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; +g.S.Z5j=function(){this.iT||this.api.getPlayerState(1)!==2||this.api.playVideo()}; +g.S.O5=function(){this.iT||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.O5("invideo-overlay")}; +g.S.woh=function(Q){Q.target===this.j&&g.ea("ytp-ad-button",this.WI.element).click()};g.p(yWp,Q_);g.S=yWp.prototype;g.S.init=function(Q,z,H){Q_.prototype.init.call(this,Q,z,H);Q=z.durationMs;this.L=Q==null||Q===0?0:Q+this.Z.getProgressState().current*1E3;if(z.text)var f=z.text.templatedAdText;else z.staticMessage&&(f=z.staticMessage);this.messageText.init(SE("ad-text"),f,H);this.messageText.Gv(this.B.element);this.D.show(100);this.show()}; +g.S.clear=function(){this.hide()}; +g.S.hide=function(){q_v(this,!1);Q_.prototype.hide.call(this);this.B.hide();this.messageText.hide();H6(this)}; +g.S.show=function(){q_v(this,!0);Q_.prototype.show.call(this);zS(this);this.B.show();this.messageText.show()}; +g.S.Is=function(){this.hide()}; +g.S.ND=function(){if(this.Z!=null){var Q=this.Z.getProgressState();Q!=null&&Q.current!=null&&(Q=1E3*Q.current,!this.wh&&Q>=this.L?(this.D.hide(),this.wh=!0):this.messageText&&this.messageText.isTemplated()&&(Q=Math.max(0,Math.ceil((this.L-Q)/1E3)),Q!==this.j&&(Rv(this.messageText,{TIME_REMAINING:String(Q)}),this.j=Q)))}};g.p(Mqp,Ec);g.S=Mqp.prototype; +g.S.init=function(Q,z,H){Ec.prototype.init.call(this,Q,z,{});z.image&&z.image.thumbnail?z.headline?z.description?z.actionButton&&g.K(z.actionButton,g.Pc)?(this.L.init(SE("ad-image"),z.image,H),this.B.init(SE("ad-text"),z.headline,H),this.D.init(SE("ad-text"),z.description,H),Q=["ytp-ad-underlay-action-button"],this.api.C().V("use_blue_buttons_for_desktop_player_underlay")&&Q.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new Bf(this.api,this.layoutId,this.interactionLoggingClientData,this.dh, +Q),z.backgroundColor&&g.M2(this.element,"background-color",g.hT(z.backgroundColor)),g.W(this,this.actionButton),this.actionButton.Gv(this.j),this.actionButton.init(SE("button"),g.K(z.actionButton,g.Pc),H),z=g.Mf(this.api.C().experiments,"player_underlay_video_width_fraction"),this.api.C().V("place_shrunken_video_on_left_of_player")?(H=this.Z,g.yM(H,"ytp-ad-underlay-left-container"),g.X9(H,"ytp-ad-underlay-right-container"),g.M2(this.Z,"margin-left",Math.round((z+.02)*100)+"%")):(H=this.Z,g.yM(H,"ytp-ad-underlay-right-container"), +g.X9(H,"ytp-ad-underlay-left-container")),g.M2(this.Z,"width",Math.round((1-z-.04)*100)+"%"),this.api.Fv()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.aY.bind(this)),this.api.addEventListener("resize",this.Ls.bind(this))):g.PT(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.PT(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.PT(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.PT(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; +g.S.show=function(){CPA(!0);this.actionButton&&this.actionButton.show();Ec.prototype.show.call(this)}; +g.S.hide=function(){CPA(!1);this.actionButton&&this.actionButton.hide();Ec.prototype.hide.call(this)}; +g.S.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.aY.bind(this));this.api.removeEventListener("resize",this.Ls.bind(this));this.hide()}; +g.S.onClick=function(Q){Ec.prototype.onClick.call(this,Q);this.actionButton&&g.vx(this.actionButton.element,Q.target)&&this.api.pauseVideo()}; +g.S.aY=function(Q){Q==="transitioning"?(this.Z.classList.remove("ytp-ad-underlay-clickable"),this.show()):Q==="visible"?this.Z.classList.add("ytp-ad-underlay-clickable"):Q==="hidden"&&(this.hide(),this.Z.classList.remove("ytp-ad-underlay-clickable"))}; +g.S.Ls=function(Q){Q.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):Q.width>875?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-medium"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large")):(this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")); +g.M2(this.B.element,"font-size",Q.width/40+"px")};g.p(x5,Ec); +x5.prototype.init=function(Q,z,H){Ec.prototype.init.call(this,Q,z,H);z.toggledLoggingParams&&(this.toggledLoggingParams=z.toggledLoggingParams);z.answer&&g.K(z.answer,g.Pc)?(Q=new Bf(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),Q.Gv(this.answer),Q.init(SE("ytp-ad-survey-answer-button"),g.K(z.answer,g.Pc),H),Q.show()):z.answer&&g.K(z.answer,Go)&&(this.Z=new Ka(this.api,this.layoutId,this.interactionLoggingClientData,this.dh, +["ytp-ad-survey-answer-toggle-button"]),this.Z.Gv(this.answer),g.W(this,this.Z),this.Z.init(SE("survey-answer-button"),g.K(z.answer,Go),H));this.show()}; +x5.prototype.xi=function(Q){this.layoutId?VJ(this.dh,Q,this.layoutId,this.macros):g.PT(new g.kQ("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))}; +x5.prototype.onClick=function(Q){Ec.prototype.onClick.call(this,Q);if(this.api.C().V("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; +x5.prototype.clear=function(){this.hide()};g.p(tqn,Ec);tqn.prototype.init=function(Q,z,H){Ec.prototype.init.call(this,Q,z,H);z.answer&&g.K(z.answer,Go)&&(this.button=new Ka(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.Gv(this.Z),this.button.init(SE("survey-none-of-the-above-button"),g.K(z.answer,Go),H));this.show()};g.p(Op,Bf);Op.prototype.init=function(Q,z,H){Bf.prototype.init.call(this,Q,z,H);Q=!1;z.text&&(z=g.na(z.text),Q=!g.Fx(z));Q||g.ax(Error("No submit text was present in the renderer."))}; +Op.prototype.onClick=function(Q){this.publish("l");Bf.prototype.onClick.call(this,Q)};g.p(o5,Ec); +o5.prototype.init=function(Q,z,H){Ec.prototype.init.call(this,Q,z,H);if(Q=z.skipOrPreviewRenderer)g.K(Q,L6)?(Q=g.K(Q,L6),H=new Zh(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,this.D,!0),H.Gv(this.skipOrPreview),H.init(SE("skip-button"),Q,this.macros),g.W(this,H),this.Z=H):g.K(Q,Bc)&&(Q=g.K(Q,Bc),H=new Lp(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,this.D,!1),H.Gv(this.skipOrPreview),H.init(SE("ad-preview"),Q,this.macros),H.wh.show(100),H.show(),g.W(this,H), +this.Z=H);this.Z==null&&g.PT(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(z)));z.submitButton&&(Q=z.submitButton,g.K(Q,g.Pc)&&(Q=g.K(Q,g.Pc),H=new Op(this.api,this.layoutId,this.interactionLoggingClientData,this.dh),H.Gv(this.submitButton),H.init(SE("survey-submit"),Q,this.macros),g.W(this,H),this.B=H));if(Q=z.adBadgeRenderer)Q=g.K(Q,wuR),H=new $U(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,!0,!0,!0),H.Gv(this.L),H.init(SE("simple-ad-badge"), +Q,this.macros),this.adBadge=H.element,g.W(this,H);if(Q=z.adDurationRemaining)Q=g.K(Q,WBs),H=new JT(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,this.D,void 0,!0),H.Gv(this.L),H.init(SE("ad-duration-remaining"),Q,this.macros),g.W(this,H);(z=z.adInfoRenderer)&&g.K(z,sy)&&(Q=new eE(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,this.element,void 0,!0),g.W(this,Q),this.adBadge!==void 0?this.L.insertBefore(Q.element,this.adBadge.nextSibling):Q.Gv(this.L),Q.init(SE("ad-info-hover-text-button"), +g.K(z,sy),this.macros));this.show()}; +o5.prototype.clear=function(){this.hide()};g.p(Jo,Ec);Jo.prototype.init=function(Q,z,H){Ec.prototype.init.call(this,Q,z,H);Zba(this)}; +Jo.prototype.show=function(){this.L=Date.now();Ec.prototype.show.call(this)}; +Jo.prototype.T_=function(){};g.p(GPp,Jo);g.S=GPp.prototype;g.S.init=function(Q,z,H){var f=this;Jo.prototype.init.call(this,Q,z,H);z.questionText&&Eun(this,z.questionText);z.answers&&z.answers.forEach(function(b,L){g.K(b,gx)&&pdA(f,g.K(b,gx),H,L)}); +this.j=new Set(this.B.map(function(b){return b.Z.Z})); +(Q=z.noneOfTheAbove)&&(Q=g.K(Q,KBm))&&$yZ(this,Q,H);z.surveyAdQuestionCommon&&guJ(this,z.surveyAdQuestionCommon);z.submitEndpoints&&(this.submitEndpoints=z.submitEndpoints);this.X(this.element,"change",this.onChange);this.show()}; +g.S.T_=function(){jB8(this,!1);this.D.B.subscribe("l",this.K4h,this)}; +g.S.onChange=function(Q){Q.target===this.noneOfTheAbove.button.Z?FKJ(this):this.j.has(Q.target)&&(this.noneOfTheAbove.button.toggleButton(!1),jB8(this,!0))}; +g.S.K4h=function(){var Q=[],z=this.B.reduce(function(b,L,u){var X=L.toggledLoggingParams;L.Z&&L.Z.isToggled()&&X&&(b.push(X),Q.push(u));return b},[]).join("&"),H=this.submitEndpoints.map(function(b){if(!b.loggingUrls)return b; +b=g.aI(b);b.loggingUrls=b.loggingUrls.map(function(L){L.baseUrl&&(L.baseUrl=m_(L.baseUrl,z));return L}); +return b}); +if(H){H=g.n(H);for(var f=H.next();!f.done;f=H.next())f=f.value,this.layoutId?VJ(this.dh,f,this.layoutId,this.macros):g.PT(Error("Missing layoutId for multi_select_question."))}this.api.C().V("supports_multi_step_on_desktop")&&this.wh(Q)}; +g.S.clear=function(){this.api.C().V("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.p(N_,Jo);N_.prototype.init=function(Q,z,H){var f=this;Jo.prototype.init.call(this,Q,z,H);z.questionText&&Eun(this,z.questionText);z.answers&&z.answers.forEach(function(b,L){g.K(b,gx)&&pdA(f,g.K(b,gx),H,L)}); +z.surveyAdQuestionCommon?guJ(this,z.surveyAdQuestionCommon):g.PT(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(z)));this.show()}; +N_.prototype.clear=function(){this.api.C().V("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.p(I5,Ec);I5.prototype.init=function(Q,z,H){var f=this;Ec.prototype.init.call(this,Q,z,H);if(this.api.C().V("supports_multi_step_on_desktop")){var b;this.conditioningRules=(b=z.conditioningRules)!=null?b:[];var L;this.B=(L=z.questions)!=null?L:[];var u;((u=z.questions)==null?0:u.length)&&JWk(this,0)}else(z.questions||[]).forEach(function(X){g.K(X,YN)?Ob6(f,g.K(X,YN),H):g.K(X,AA)&&ouv(f,g.K(X,AA),H)}); +this.show()}; +I5.prototype.clear=function(){this.api.C().V("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; +I5.prototype.D=function(Q){var z=this;if(this.api.C().V("supports_multi_step_on_desktop")){var H;if((H=this.conditioningRules)==null?0:H.length){var f;if(Q.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(b){return b.questionIndex===z.Z})==null)g.PT(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); +else if(this.conditioningRules.forEach(function(b){if(b.questionIndex===z.Z)switch(b.condition){case "CONDITION_ALL_OF":var L;if((L=b.answerIndices)==null?0:L.every(function(X){return Q.includes(X)}))f=b.nextQuestionIndex; +break;case "CONDITION_ANY_OF":var u;if((u=b.answerIndices)==null?0:u.some(function(X){return Q.includes(X)}))f=b.nextQuestionIndex; +break;default:g.PT(Error("Expected specified condition in survey conditioning rules."))}}),f!=null)JWk(this,f); +else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.PT(Error("No conditioning rules, yet survey is multi step. Expected questions.length to be 1.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}};g.p(Ao,Ec); +Ao.prototype.init=function(Q,z,H){var f=this;Ec.prototype.init.call(this,Q,z,H);Q=z.timeoutSeconds||0;if(typeof Q!=="number"||Q<0)g.PT(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+Q));else if(z.timeoutCommands)if(z.text)if(z.ctaButton&&g.K(z.ctaButton,g.Pc))if(z.brandImage)if(z.backgroundImage&&g.K(z.backgroundImage,aV)&&g.K(z.backgroundImage,aV).landscape){this.layoutId||g.PT(Error("Missing layoutId for survey interstitial."));NOv(this.interstitial,g.K(z.backgroundImage, +aV).landscape);NOv(this.logoImage,z.brandImage);g.yp(this.text,g.na(z.text));var b=["ytp-ad-survey-interstitial-action-button"];b.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new Bf(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,b);g.W(this,this.actionButton);this.actionButton.Gv(this.B);this.actionButton.init(SE("button"),g.K(z.ctaButton,g.Pc),H);this.actionButton.show();this.Z=new FS(this.api,Q*1E3);this.Z.subscribe("g",function(){f.transition.hide()}); +g.W(this,this.Z);this.X(this.element,"click",function(L){var u=L.target===f.interstitial;L=f.actionButton.element.contains(L.target);if(u||L)if(f.transition.hide(),u)f.api.onAdUxClicked(f.componentType,f.layoutId)}); +this.transition.show(100)}else g.PT(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.PT(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.PT(Error("SurveyTextInterstitialRenderer has no button."));else g.PT(Error("SurveyTextInterstitialRenderer has no text."));else g.PT(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; +Ao.prototype.clear=function(){this.hide()}; +Ao.prototype.show=function(){IGA(!0);Ec.prototype.show.call(this)}; +Ao.prototype.hide=function(){IGA(!1);Ec.prototype.hide.call(this)};g.p(Y5,Q_);g.S=Y5.prototype; +g.S.init=function(Q,z){Q_.prototype.init.call(this,Q,z,{});if(z.durationMilliseconds){if(z.durationMilliseconds<0){g.PT(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+z.durationMilliseconds));return}this.B=z.durationMilliseconds}else this.B=this.Z.Uk();var H;if((H=z.previewText)==null||!H.text||g.Fx(z.previewText.text))g.PT(Error("No text is returned for AdPreview."));else{this.j=z.previewText;z.previewText.isTemplated||g.yp(this.L,z.previewText.text);var f; +if(((f=this.api.getVideoData(1))==null?0:f.Pl)&&z.previewImage){var b,L;(Q=((L=o7(((b=z.previewImage)==null?void 0:b.sources)||[],52,!1))==null?void 0:L.url)||"")&&Q.length?(this.previewImage=new g.tB({G:"img",J:"ytp-preview-ad__image",T:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",Q),g.W(this,this.previewImage),this.previewImage.Gv(this.element)):g.PT(Error("Failed to get imageUrl in AdPreview."))}else this.L.classList.add("ytp-preview-ad__text--padding--wide")}}; +g.S.clear=function(){this.hide()}; +g.S.hide=function(){H6(this);Q_.prototype.hide.call(this)}; +g.S.show=function(){zS(this);Q_.prototype.show.call(this)}; +g.S.Is=function(){this.hide()}; +g.S.ND=function(){if(this.Z){var Q=this.Z.getProgressState();if(Q!=null&&Q.current)if(Q=1E3*Q.current,Q>=this.B)this.transition.hide();else{var z;if((z=this.j)==null?0:z.isTemplated)if(z=Math.max(0,Math.ceil((this.B-Q)/1E3)),z!==this.D){var H,f;(Q=(H=this.j)==null?void 0:(f=H.text)==null?void 0:f.replace("{TIME_REMAINING}",String(z)))&&g.yp(this.L,Q);this.D=z}}}};g.p(ru,Ec); +ru.prototype.init=function(Q,z){Ec.prototype.init.call(this,Q,z,{});var H,f;if((Q=((f=o7(((H=z.image)==null?void 0:H.sources)||[],AWa(z),!0))==null?void 0:f.url)||"")&&Q.length){H=this.Mc("ytp-ad-avatar");H.src=Q;var b,L;if(f=(b=z.interaction)==null?void 0:(L=b.accessibility)==null?void 0:L.label)H.alt=f;switch(z.size){case "AD_AVATAR_SIZE_XXS":this.element.classList.add("ytp-ad-avatar--size-xxs");break;case "AD_AVATAR_SIZE_XS":this.element.classList.add("ytp-ad-avatar--size-xs");break;case "AD_AVATAR_SIZE_S":this.element.classList.add("ytp-ad-avatar--size-s"); +break;case "AD_AVATAR_SIZE_M":this.element.classList.add("ytp-ad-avatar--size-m");break;case "AD_AVATAR_SIZE_L":this.element.classList.add("ytp-ad-avatar--size-l");break;case "AD_AVATAR_SIZE_XL":this.element.classList.add("ytp-ad-avatar--size-xl");break;case "AD_AVATAR_SIZE_RESPONSIVE":this.element.classList.add("ytp-ad-avatar--size-responsive");break;default:this.element.classList.add("ytp-ad-avatar--size-m")}switch(z.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":this.element.classList.add("ytp-ad-avatar--rounded-corner"); +break;default:this.element.classList.add("ytp-ad-avatar--circular")}}else g.PT(Error("Failed to get imageUrl in AdAvatar."))}; +ru.prototype.clear=function(){this.hide()}; +ru.prototype.onClick=function(Q){Ec.prototype.onClick.call(this,Q)};g.p(sp,Ec); +sp.prototype.init=function(Q,z){Ec.prototype.init.call(this,Q,z,{});var H;Q=(H=z.label)==null?void 0:H.content;if((H=Q!=null&&!g.Fx(Q))||z.iconImage){H&&(this.buttonText=new g.tB({G:"span",J:"ytp-ad-button-vm__text",BI:Q}),g.W(this,this.buttonText),this.buttonText.Gv(this.element));var f,b,L=((f=z.interaction)==null?0:(b=f.accessibility)==null?0:b.label)||H?Q:"";L&&ms(this.element,L+" This link opens in new tab");VK(this.element);if(z.iconImage){f=void 0;if(z.iconImage){a:{b=z.iconImage;if(b.sources)for(b= +g.n(b.sources),Q=b.next();!Q.done;Q=b.next())if(Q=Q.value,L=void 0,(L=Q.clientResource)==null?0:L.imageName){b=Q;break a}b=void 0}if(b){var u;f={iconType:(u=b.clientResource)==null?void 0:u.imageName}}}u=sc(f,!1,this.B);u!=null&&(this.buttonIcon=new g.tB({G:"span",J:"ytp-ad-button-vm__icon",W:[u]}),g.W(this,this.buttonIcon),z.iconLeading?(Sz(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):H?(this.buttonIcon.Gv(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): +(this.buttonIcon.Gv(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(z.style){case "AD_BUTTON_STYLE_TRANSPARENT":this.element.classList.add("ytp-ad-button-vm--style-transparent");break;case "AD_BUTTON_STYLE_FILLED_WHITE":this.element.classList.add("ytp-ad-button-vm--style-filled-white");break;case "AD_BUTTON_STYLE_FILLED":this.element.classList.add(this.Z?"ytp-ad-button-vm--style-filled-dark":"ytp-ad-button-vm--style-filled");break;default:this.element.classList.add("ytp-ad-button-vm--style-filled")}switch(z.size){case "AD_BUTTON_SIZE_COMPACT":this.element.classList.add("ytp-ad-button-vm--size-compact"); +break;case "AD_BUTTON_SIZE_LARGE":this.element.classList.add("ytp-ad-button-vm--size-large");break;default:this.element.classList.add("ytp-ad-button-vm--size-default")}}else g.ax(Error("AdButton does not have label or an icon."))}; +sp.prototype.clear=function(){this.hide()}; +sp.prototype.onClick=function(Q){Ec.prototype.onClick.call(this,Q)};g.p(Y_c,Q_);g.S=Y_c.prototype; +g.S.init=function(Q,z){Q_.prototype.init.call(this,Q,z,{});this.api.C().V("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.Mc("ytp-ad-avatar-lockup-card__avatar_and_text_container").classList.add("ytp-ad-avatar-lockup-card__avatar_and_text_container--large"),this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline--large"),this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--large"),this.adButton.element.classList.add("ytp-ad-avatar-lockup-card__button--large"), +this.adAvatar.element.classList.add("ytp-ad-avatar-lockup-card__ad_avatar--large"),Sz(this.Mc("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(Q=g.K(z.avatar,DB)){var H=z.headline;if(H){var f=z.description;if(f){var b=g.K(z.button,VB);b?(this.adAvatar.init(SE("ad-avatar"),Q),this.headline.init(SE("ad-simple-attributed-string"),new IQ(H)),this.description.init(SE("ad-simple-attributed-string"),new IQ(f)),H.content&&H.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"), +this.adButton.init(SE("ad-button"),b),this.startMilliseconds=z.startMs||0,this.api.Fv()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.kT.bind(this)),zS(this)):g.PT(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.PT(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.PT(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.PT(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; +g.S.ND=function(){if(this.Z){var Q=this.Z.getProgressState();Q&&Q.current&&1E3*Q.current>=this.startMilliseconds&&(H6(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; +g.S.Is=function(){this.clear()}; +g.S.onClick=function(Q){this.api.pauseVideo();Q_.prototype.onClick.call(this,Q)}; +g.S.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.kT.bind(this))}; +g.S.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();Q_.prototype.show.call(this)}; +g.S.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();Q_.prototype.hide.call(this)}; +g.S.kT=function(Q){Q==="hidden"?this.show():this.hide()};g.p(By,Ec);g.S=By.prototype; +g.S.init=function(Q,z){Ec.prototype.init.call(this,Q,z,{});if(!z.label||g.Fx(z.label))g.PT(Error("No label is returned for SkipAdButton."));else if(g.yp(this.D,z.label),Q=sc({iconType:"SKIP_NEXT_NEW"}),Q==null)g.PT(Error("Unable to retrieve icon for SkipAdButton"));else if(this.L=new g.tB({G:"span",J:"ytp-skip-ad-button__icon",W:[Q]}),g.W(this,this.L),this.L.Gv(this.element),this.api.C().experiments.Nc("enable_skip_to_next_messaging")&&(z=g.Q4(z.targetId)))this.B=!0,this.element.setAttribute("data-tooltip-target-id",z), +this.element.setAttribute("data-tooltip-target-fixed","")}; +g.S.onClick=function(Q){Q&&Q.preventDefault();var z,H;Lu6(Q,{contentCpn:(H=(z=this.api.getVideoData(1))==null?void 0:z.clientPlaybackNonce)!=null?H:""})===0?this.api.F$("onAbnormalityDetected"):(Ec.prototype.onClick.call(this,Q),this.api.F$("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; +g.S.clear=function(){this.Z.reset();this.hide()}; +g.S.hide=function(){Ec.prototype.hide.call(this)}; +g.S.show=function(){this.Z.start();Ec.prototype.show.call(this);this.B&&this.api.C().experiments.Nc("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.p(rWZ,Q_);g.S=rWZ.prototype; +g.S.init=function(Q,z){Q_.prototype.init.call(this,Q,z,{});Q=g.K(z.preskipState,f3T);var H;if((H=this.api.getVideoData())==null?0:H.isDaiEnabled()){if(!Q){g.PT(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.B=new Y5(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,this.Z);g.W(this,this.B);this.B.Gv(this.element);var f;(f=this.B)==null||f.init(SE("preview-ad"),Q);(H=this.B)!=null&&(H.transition.show(100),H.show())}(H=g.K(z.skippableState,Lzs))?(z.skipOffsetMilliseconds!= +null?this.skipOffsetMilliseconds=z.skipOffsetMilliseconds:(g.ax(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.L.init(SE("skip-button"),H),this.show()):g.PT(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; +g.S.show=function(){zS(this);Q_.prototype.show.call(this)}; +g.S.hide=function(){!this.isSkippable&&this.B?this.B.hide():this.L&&this.L.hide();H6(this);Q_.prototype.hide.call(this)}; +g.S.clear=function(){var Q;(Q=this.B)==null||Q.clear();this.L&&this.L.clear();H6(this);Q_.prototype.hide.call(this)}; +g.S.Is=function(){this.hide()}; +g.S.ND=function(){if(1E3*this.Z.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var Q;(Q=this.B)!=null&&Q.transition.hide();(Q=this.L)!=null&&(Q.transition.show(),Q.show())}};g.p(Py,Ec); +Py.prototype.init=function(Q,z){Ec.prototype.init.call(this,Q,z,{});if(z.label){var H;((H=z.label)==null?0:H.content)&&!g.Fx(z.label.content)&&(this.linkText=new g.tB({G:"span",J:"ytp-visit-advertiser-link__text",BI:z.label.content}),g.W(this,this.linkText),this.linkText.Gv(this.element));var f,b;if((f=z.interaction)==null?0:(b=f.accessibility)==null?0:b.label)ms(this.element,z.interaction.accessibility.label+" This link opens in new tab");else{var L;((L=z.label)==null?0:L.content)&&!g.Fx(z.label.content)&&ms(this.element, +z.label.content+" This link opens in new tab")}VK(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.PT(Error("No label found in VisitAdvertiserLink."))}; +Py.prototype.onClick=function(Q){Ec.prototype.onClick.call(this,Q);this.api.onAdUxClicked(this.componentType,this.layoutId)}; +Py.prototype.clear=function(){this.hide()};g.p(a5,Ec); +a5.prototype.init=function(Q,z,H,f){Ec.prototype.init.call(this,Q,z,{});if(z.skipOrPreview){H=z.skipOrPreview;Q=g.K(H,ukx);H=g.K(H,f3T);if(Q)this.UT=new rWZ(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,this.L),g.W(this,this.UT),this.UT.Gv(this.wh),this.UT.init(SE("skip-ad"),Q);else{var b;H&&((b=this.api.getVideoData())==null?0:b.isDaiEnabled())&&(this.j=new Y5(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,this.L,1),g.W(this,this.j),this.j.Gv(this.wh),this.j.init(SE("ad-preview"), +H),b=this.j,b.transition.show(100),b.show())}if(b=g.K(z.skipOrPreview,ukx))var L=b.skipOffsetMilliseconds}z.playerAdCard&&(b=g.K(z.playerAdCard,brm))&&(this.playerAdCard=new Y_c(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,this.L),g.W(this,this.playerAdCard),this.playerAdCard.Gv(this.jm),this.playerAdCard.init(SE("ad-avatar-lockup-card"),b));b=this.api.C().V("disable_ad_duration_remaining_for_instream_video_ads")||z.adPodIndex!==void 0;z.adBadgeRenderer&&((Q=g.K(z.adBadgeRenderer, +K0))?(this.B=new YU(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,b),g.W(this,this.B),this.api.C().V("delhi_modern_web_player")?this.B.Gv(this.D):this.B.Gv(this.Z),this.B.init(SE("ad-badge"),Q)):g.PT(Error("AdBadgeViewModel is not found in player overlay layout.")));z.adPodIndex&&(Q=g.K(z.adPodIndex,Rms))&&(this.adPodIndex=new rU(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,g.K(z.skipOrPreview,ukx)===void 0),g.W(this,this.adPodIndex),this.api.C().V("delhi_modern_web_player")? +this.adPodIndex.Gv(this.D):this.adPodIndex.Gv(this.Z),this.adPodIndex.init(SE("ad-pod-index"),Q));if(z.adInfoRenderer&&(Q=g.K(z.adInfoRenderer,sy))){this.adInfoButton=new eE(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,this.element,void 0,b);g.W(this,this.adInfoButton);H=(this.api.C().V("delhi_modern_web_player")||this.api.C().V("enable_ad_pod_index_autohide"))&&this.B!==void 0;var u=this.api.C().V("delhi_modern_web_player")?this.D:this.Z;H?u.insertBefore(this.adInfoButton.element, +this.B.element.nextSibling):this.adInfoButton.Gv(u);this.adInfoButton.init(SE("ad-info-hover-text-button"),Q,this.macros)}var X;Q=this.api.C().V("clean_player_style_fix_on_web")&&((X=this.api.getVideoData())==null?void 0:X.isDaiEnabled());z.adDurationRemaining&&(!b||Q)&&(X=g.K(z.adDurationRemaining,WBs))&&(this.adDurationRemaining=new JT(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,this.L,f.videoAdDurationSeconds,b),g.W(this,this.adDurationRemaining),f=this.api.C().V("delhi_modern_web_player")? +this.D:this.Z,(b||this.api.C().V("delhi_modern_web_player"))&&this.adPodIndex!==void 0?f.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adInfoButton!==void 0?b||this.api.C().V("delhi_modern_web_player")?f.insertBefore(this.adDurationRemaining.element,this.adInfoButton.element.nextSibling):this.Z.insertBefore(this.adDurationRemaining.element,this.adInfoButton.element):this.adDurationRemaining.Gv(this.Z),this.adDurationRemaining.init(SE("ad-duration-remaining"), +X,this.macros),b&&this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));z.visitAdvertiserLink&&(f=g.K(z.visitAdvertiserLink,XYx))&&(this.visitAdvertiserLink=new Py(this.api,this.layoutId,this.interactionLoggingClientData,this.dh),g.W(this,this.visitAdvertiserLink),this.visitAdvertiserLink.Gv(this.Z),this.visitAdvertiserLink.init(SE("visit-advertiser-link"),f));z.adDisclosureBanner&&(z=g.K(z.adDisclosureBanner,lLx))&&(this.adDisclosureBanner=new sx(this.api,this.layoutId, +this.interactionLoggingClientData,this.dh),g.W(this,this.adDisclosureBanner),this.adDisclosureBanner.Gv(this.yl),this.adDisclosureBanner.init(SE("ad-disclosure-banner"),z));this.api.C().V("show_preskip_progress_bar_for_skippable_ads")&&(this.U=new aQ(this.api,this.L,L,b),g.W(this,this.U),g.BG(this.api,this.U.element,4));this.show()}; +a5.prototype.clear=function(){this.hide()};g.p(sBL,Ec);g.S=sBL.prototype; +g.S.init=function(Q,z){Ec.prototype.init.call(this,Q,z,{});if(z!=null&&z.title)if(Q=z.title)if(this.headline.init(SE("ad-simple-attributed-string"),new IQ(Q)),Q=g.K(z.moreInfoButton,VB)){if(this.moreInfoButton.init(SE("ad-button"),Q),z.descriptions)z.descriptions.length>0&&(Q=z.descriptions[0])&&(this.Z=new AT(this.api,this.layoutId,this.interactionLoggingClientData,this.dh),g.W(this,this.Z),this.Z.Gv(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.Z.init(SE("ad-simple-attributed-string"), +new IQ(Q))),z.descriptions.length>1&&(z=z.descriptions[1])&&(this.B=new AT(this.api,this.layoutId,this.interactionLoggingClientData,this.dh),g.W(this,this.B),this.B.Gv(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.B.init(SE("ad-simple-attributed-string"),new IQ(z)))}else g.PT(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.PT(Error("No headline found in AdGridCardText."));else g.PT(Error("No headline found in AdGridCardText."))}; +g.S.onClick=function(Q){Ec.prototype.onClick.call(this,Q);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; +g.S.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var Q;(Q=this.Z)==null||Q.clear();var z;(z=this.B)==null||z.clear()}; +g.S.hide=function(){this.headline.hide();this.moreInfoButton.hide();var Q;(Q=this.Z)==null||Q.hide();var z;(z=this.B)==null||z.hide();Ec.prototype.hide.call(this)}; +g.S.show=function(){Ec.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var Q;(Q=this.Z)==null||Q.show();var z;(z=this.B)==null||z.show()};g.p(Up,Ec);Up.prototype.init=function(Q,z){Ec.prototype.init.call(this,Q,z,{});if(z!=null&&z.gridCards)if(z.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.PT(Error("Only single column style is currently supported in AdGridCardCollection."));else for(Q=g.n(z.gridCards),z=Q.next();!z.done;z=Q.next()){if(z=g.K(z.value,Hrs)){var H=new sBL(this.api,this.layoutId,this.interactionLoggingClientData,this.dh);g.W(this,H);H.Gv(this.element);H.init(SE("ad-grid-card-text"),z);this.Z.push(H)}}else g.PT(Error("No grid cards found in AdGridCardCollection."))}; +Up.prototype.show=function(){for(var Q=g.n(this.Z),z=Q.next();!z.done;z=Q.next())z.value.show();Ec.prototype.show.call(this)}; +Up.prototype.clear=function(){this.hide();for(var Q=g.n(this.Z),z=Q.next();!z.done;z=Q.next())z.value.clear()}; +Up.prototype.hide=function(){for(var Q=g.n(this.Z),z=Q.next();!z.done;z=Q.next())z.value.hide();Ec.prototype.hide.call(this)};g.p(cy,Q_);g.S=cy.prototype;g.S.init=function(Q,z,H,f,b){b=b===void 0?0:b;Q_.prototype.init.call(this,Q,z,H,f);this.playerProgressOffsetMs=b;zS(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.Mp.bind(this));this.api.addEventListener("resize",this.MH.bind(this));this.api.Fv()?(this.B=!0,this.api.Pe(!0),this.show()):this.hide()}; +g.S.ND=function(){if(this.Z){var Q=this.Z.getProgressState();Q&&Q.current&&!this.B&&1E3*Q.current>=this.playerProgressOffsetMs&&(this.B=!0,this.api.Pe(!0),this.show())}}; +g.S.Is=function(){this.B&&this.api.Pe(!1);this.hide()}; +g.S.clear=function(){this.api.Pe(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.Mp.bind(this));this.api.removeEventListener("resize",this.MH.bind(this));H6(this);this.hide()}; +g.S.hide=function(){BOc(!1);Q_.prototype.hide.call(this)}; +g.S.show=function(){BOc(!0);Q_.prototype.show.call(this)};g.p(PP6,cy);g.S=PP6.prototype; +g.S.init=function(Q,z,H,f){if(z!=null&&z.adGridCardCollection)if(z!=null&&z.adButton){var b=Number(z.playerProgressOffsetMs||"0");isNaN(b)?cy.prototype.init.call(this,Q,z,H,f):cy.prototype.init.call(this,Q,z,H,f,b);Q=z.headline;H=g.K(z.adAvatar,DB);Q&&H?(this.headline=new AT(this.api,this.layoutId,this.interactionLoggingClientData,this.dh),g.W(this,this.headline),this.headline.Gv(this.Mc("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(SE("ad-simple-attributed-string"),new IQ(Q)), +this.adAvatar=new ru(this.api,this.layoutId,this.interactionLoggingClientData,this.dh),g.W(this,this.adAvatar),this.adAvatar.Gv(this.Mc("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(SE("ad-avatar"),H)):this.D.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");Q=g.K(z.adGridCardCollection,zWL);this.adGridCardCollection.init(SE("ad-grid-card-collection"),Q);z=g.K(z.adButton,VB);this.adButton.init(SE("ad-button"),z); +this.hide()}else g.PT(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.PT(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; +g.S.onClick=function(Q){(this.adButton&&g.vx(this.adButton.element,Q.target)||this.adAvatar&&g.vx(this.adAvatar.element,Q.target))&&this.api.pauseVideo();cy.prototype.onClick.call(this,Q);this.api.onAdUxClicked(this.componentType,this.layoutId)}; +g.S.MH=function(){}; +g.S.clear=function(){this.hide();var Q;(Q=this.headline)==null||Q.clear();var z;(z=this.adAvatar)==null||z.clear();this.adGridCardCollection.clear();this.adButton.clear();cy.prototype.clear.call(this)}; +g.S.show=function(){var Q;(Q=this.headline)==null||Q.show();var z;(z=this.adAvatar)==null||z.show();this.adGridCardCollection.show();this.adButton.show();cy.prototype.show.call(this)}; +g.S.hide=function(){var Q;(Q=this.headline)==null||Q.hide();var z;(z=this.adAvatar)==null||z.hide();this.adGridCardCollection.hide();this.adButton.hide();cy.prototype.hide.call(this)}; +g.S.Mp=function(Q){Q==="transitioning"?(this.L.classList.remove("ytp-ad-underlay-clickable"),this.show()):Q==="visible"?this.L.classList.add("ytp-ad-underlay-clickable"):Q==="hidden"&&(this.hide(),this.L.classList.remove("ytp-ad-underlay-clickable"))};g.p(i7,Ec); +i7.prototype.init=function(Q,z){Ec.prototype.init.call(this,Q,z,{});if(z.attributes===void 0)g.PT(Error("No attributes found in AdDetailsLineViewModel."));else if(z.style===void 0)g.PT(Error("No style found in AdDetailsLineViewModel."));else{Q=g.n(z.attributes);for(var H=Q.next();!H.done;H=Q.next())if(H=H.value,H.text!==void 0){H=H.text;var f=z.style,b=new AT(this.api,this.layoutId,this.interactionLoggingClientData,this.dh);g.W(this,b);b.Gv(this.element);a:switch(f){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":f="ytp-ad-details-line__text--style-responsive"; +break a;default:f="ytp-ad-details-line__text--style-standard"}b.element.classList.add(f);b.init(SE("ad-simple-attributed-string"),new IQ(H));this.Z.push(b)}this.show()}}; +i7.prototype.show=function(){this.Z.forEach(function(Q){Q.show()}); +Ec.prototype.show.call(this)}; +i7.prototype.clear=function(){this.hide()}; +i7.prototype.hide=function(){this.Z.forEach(function(Q){Q.hide()}); +Ec.prototype.hide.call(this)};g.p(ho,Ec);ho.prototype.init=function(Q,z){Ec.prototype.init.call(this,Q,z,{});var H,f;(Q=((f=o7(((H=z.image)==null?void 0:H.sources)||[]))==null?void 0:f.url)||"")&&Q.length?(H=this.Mc("ytp-image-background-image"),g.M2(H,"backgroundImage","url("+Q+")"),z.blurLevel!==void 0&&g.M2(H,"filter","blur("+z.blurLevel+"px)"),z.gradient!==void 0&&(z=new g.m({G:"div",lT:["ytp-image-background--gradient-vertical"]}),g.W(this,z),z.Gv(this.element)),this.show()):g.PT(Error("Failed to get imageUrl in ImageBackground."))}; +ho.prototype.clear=function(){this.hide()};g.p(aG6,Q_);g.S=aG6.prototype;g.S.init=function(Q,z){Q_.prototype.init.call(this,Q,z,{});g.M2(this.L,"stroke-dasharray","0 "+this.B);this.show()}; +g.S.clear=function(){this.hide()}; +g.S.hide=function(){H6(this);Q_.prototype.hide.call(this)}; +g.S.show=function(){zS(this);Q_.prototype.show.call(this)}; +g.S.Is=function(){this.hide()}; +g.S.ND=function(){if(this.Z){var Q=this.Z.getProgressState();Q!=null&&Q.current!=null&&g.M2(this.L,"stroke-dasharray",Q.current/Q.seekableEnd*this.B+" "+this.B)}};g.p(Wy,Ec); +Wy.prototype.init=function(Q,z){Ec.prototype.init.call(this,Q,z,{});if(cW9(z)){this.adAvatar=new ru(this.api,this.layoutId,this.interactionLoggingClientData,this.dh);g.W(this,this.adAvatar);this.adAvatar.Gv(this.Mc("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(SE("ad-avatar"),g.K(z.adAvatar,DB));this.headline=new AT(this.api,this.layoutId,this.interactionLoggingClientData,this.dh);g.W(this,this.headline);this.headline.Gv(this.Mc("ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"));this.headline.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline"); +this.headline.init(SE("ad-simple-attributed-string"),new IQ(z.headline));if(Q=g.K(z.adDetailsLine,emB))this.detailsLine=new i7(this.api,this.layoutId,this.interactionLoggingClientData,this.dh),g.W(this,this.detailsLine),this.detailsLine.Gv(this.Mc("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(SE("ad-details-line"),Q);this.adButton=new sp(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,!0);g.W(this,this.adButton); +this.adButton.Gv(this.Mc("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(SE("ad-button"),g.K(z.adButton,VB));this.adBadge=new YU(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,!0);g.W(this,this.adBadge);this.adBadge.Gv(this.D);this.adBadge.init(SE("ad-badge"),g.K(z.adBadge,K0));this.adInfoButton=new eE(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,this.element,void 0,!0);g.W(this,this.adInfoButton);this.adInfoButton.Gv(this.D); +this.adInfoButton.init(SE("ad-info-hover-text-button"),g.K(z.adInfoRenderer,sy),this.macros);if(Q=g.K(z.skipAdButton,Lzs))this.skipAdButton=new By(this.api,this.layoutId,this.interactionLoggingClientData,this.dh),g.W(this,this.skipAdButton),this.skipAdButton.Gv(this.element),this.skipAdButton.init(SE("skip-button"),Q);this.B=new xU(z.durationMilliseconds);g.W(this,this.B);if(Q=g.K(z.countdownViewModel,S2Y))this.Z=new aG6(this.api,this.layoutId,this.interactionLoggingClientData,this.dh,this.B),g.W(this, +this.Z),this.Z.Gv(this.Mc("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.Z.init(SE("timed-pie-countdown"),Q);if(z=g.K(z.imageBackground,QGu))this.imageBackground=new ho(this.api,this.layoutId,this.interactionLoggingClientData,this.dh),g.W(this,this.imageBackground),this.imageBackground.Gv(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(SE("image-background"), +z);this.show();this.element.focus()}}; +Wy.prototype.clear=function(){g.YQ(this.L);this.hide()}; +Wy.prototype.show=function(){Uyu(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();Ec.prototype.show.call(this)}; +Wy.prototype.hide=function(){Uyu(!1);this.adAvatar&&this.adAvatar.hide();this.headline&&this.headline.hide();this.adButton&&this.adButton.hide();this.detailsLine&&this.detailsLine.hide();this.adBadge&&this.adBadge.hide();this.adInfoButton&&this.adInfoButton.hide();this.skipAdButton&&this.skipAdButton.hide();this.Z&&this.Z.hide();this.imageBackground&&this.imageBackground.hide();Ec.prototype.hide.call(this)};var Prt="ad-attribution-bar ad-channel-thumbnail advertiser-name ad-preview ad-title skip-button visit-advertiser".split(" ").concat("shopping-companion action-companion image-companion ads-engagement-panel ads-engagement-panel-layout banner-image top-banner-image-text-icon-buttoned".split(" "));g.p(du,ds); +du.prototype.D=function(Q){var z=Q.id,H=Q.content,f=H.componentType;if(!Prt.includes(f))switch(Q.actionType){case 1:Q=this.api;var b=this.dh,L=H.layoutId,u=H.interactionLoggingClientData,X=H instanceof ky?H.uP:!1,v=H instanceof ky||H instanceof jh?H.EH:!1;u=u===void 0?{}:u;X=X===void 0?!1:X;v=v===void 0?!1:v;switch(f){case "invideo-overlay":Q=new HbZ(Q,L,u,b);break;case "player-overlay":Q=new Ux(Q,L,u,b,new kb(Q),v);break;case "player-overlay-layout":Q=new a5(Q,L,u,b,new kb(Q));break;case "survey":Q= +new I5(Q,L,u,b);break;case "ad-action-interstitial":Q=new ebc(Q,L,u,b,X,v);break;case "video-interstitial-buttoned-centered":Q=new Wy(Q,L,u,b);break;case "survey-interstitial":Q=new Ao(Q,L,u,b);break;case "ad-message":Q=new yWp(Q,L,u,b,new kb(Q,1));break;case "player-underlay":Q=new Mqp(Q,L,u,b);break;case "display-underlay-text-grid-cards":Q=new PP6(Q,L,u,b,new kb(Q));break;default:Q=null}if(!Q){g.ax(Error("No UI component returned from ComponentFactory for type: "+f));break}g.II(this.B,z)?g.ax(Error("Ad UI component already registered: "+ +z)):this.B[z]=Q;Q.bind(H);H instanceof mJ?this.L?this.L.append(Q.Bg):g.ax(Error("Underlay view was not created but UnderlayRenderer was created")):this.S.append(Q.Bg);break;case 2:z=ibY(this,Q);if(z==null)break;z.bind(H);break;case 3:H=ibY(this,Q),H!=null&&(g.Xx(H),g.II(this.B,z)?(H=this.B,z in H&&delete H[z]):g.ax(Error("Ad UI component does not exist: "+z)))}}; +du.prototype.zv=function(){g.vu(Object.values(this.B));this.B={};ds.prototype.zv.call(this)};g.p(hD6,g.g3);g.S=hD6.prototype;g.S.create=function(){try{WKA(this),this.load(),this.created=!0,WKA(this)}catch(Q){Cp(Q instanceof Error?Q:String(Q))}}; +g.S.load=function(){try{Vqp(this)}finally{TD($5(this.Z).GO)&&this.player.PS("ad",1)}}; +g.S.destroy=function(){var Q=this.player.getVideoData(1);this.Z.Z.rg.Qa(Q&&Q.clientPlaybackNonce||"");this.unload();this.created=!1}; +g.S.unload=function(){g.g3.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(z){Cp(z instanceof Error?z:String(z))}if(this.B!=null){var Q=this.B;this.B=null;Q.dispose()}this.L.reset()}; +g.S.Ti=function(){return!1}; +g.S.getAdState=function(){return-1}; +g.S.getOptions=function(){return Object.values(BqJ)}; +g.S.TZ=function(Q,z){z=z===void 0?{}:z;switch(Q){case "replaceUrlMacros":return Q=z,Q.url?(z=X1k(this.player),Object.assign(z,Q.YJv),Q=g.rN(Q.url,z)):Q=null,Q;case "onAboutThisAdPopupClosed":this.iz(z);break;case "executeCommand":Q=z;Q.command&&Q.layoutId&&this.executeCommand(Q);break;default:return null}}; +g.S.Q6=function(Q){var z;return!((z=this.Z.Z.u8)==null||!z.get().Q6(Q))}; +g.S.iz=function(Q){Q.isMuted&&pTa($5(this.Z).EG,$5(this.Z).wi,Q.layoutId);this.G0&&this.G0.iz()}; +g.S.executeCommand=function(Q){$5(this.Z).dh.executeCommand(Q.command,Q.layoutId)};g.D6("yt.player.Application.create",g.gQ.create);g.D6("yt.player.Application.createAlternate",g.gQ.create);VsJ(YG(),s0J);var au5=g.Kn("ytcsi.tick");au5&&au5("pe");g.nA("ad",hD6);g.p(g.k5,g.h);g.k5.prototype.start=function(Q,z,H){this.config={from:Q,ac:z,duration:H,startTime:(0,g.IE)()};this.next()}; +g.k5.prototype.stop=function(){this.delay.stop();this.config=void 0}; +g.k5.prototype.next=function(){if(this.config){var Q=this.config,z=Q.from,H=Q.ac,f=Q.duration;Q=Q.startTime;var b=(0,g.IE)()-Q;Q=this.Z;f=l5Y(Q,b/f);if(f==0)Q=Q.Y;else if(f==1)Q=Q.N;else{b=t6(Q.Y,Q.S,f);var L=t6(Q.S,Q.j,f);Q=t6(Q.j,Q.N,f);b=t6(b,L,f);L=t6(L,Q,f);Q=t6(b,L,f)}Q=g.y4(Q,0,1);this.callback(z+(H-z)*Q);Q<1&&this.delay.start()}};g.p(g.Tm,g.m);g.S=g.Tm.prototype;g.S.hasSuggestions=function(){return this.suggestionData.length>0}; +g.S.WH=function(){this.B&&this.scrollTo(this.scrollPosition-this.containerWidth)}; +g.S.show=function(){g.m.prototype.show.call(this);eDu(this)}; +g.S.Tu=function(){this.B&&this.scrollTo(this.scrollPosition+this.containerWidth)}; +g.S.oK=function(){this.tZ(this.api.Un().getPlayerSize())}; +g.S.tZ=function(Q){var z=this.api.isEmbedsShortsMode()?.5625:16/9,H=this.api.iW();Q=Q.width-(H?112:58);H=Math.ceil(Q/(H?320:192));var f=(Q-H*8)/H;z=Math.floor(f/z);for(var b=g.n(this.Z),L=b.next();!L.done;L=b.next())L=L.value.Mc("ytp-suggestion-image"),L.style.width=f+"px",L.style.height=z+"px";this.suggestions.element.style.height=z+"px";this.D=f;this.N=z;this.containerWidth=Q;this.columns=H;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.e6(this)}; +g.S.onVideoDataChange=function(){var Q=this.api.C(),z=this.api.getVideoData();this.j=z.gV?!1:Q.D;this.suggestionData=z.suggestions?g.q3(z.suggestions,function(H){return H&&!H.playlistId}):[]; +RD9(this);z.gV?this.title.update({title:g.pi("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:z.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"More shorts":"More videos"})}; +g.S.scrollTo=function(Q){Q=g.y4(Q,this.containerWidth-this.suggestionData.length*(this.D+8),0);this.Y.start(this.scrollPosition,Q,1E3);this.scrollPosition=Q;g.e6(this);eDu(this)};})(_yt_player); diff --git a/src/test/resources/com/github/felipeucelli/javatube/base/e7567ecf-player_ias_tce.vflset-en_US.txt b/src/test/resources/com/github/felipeucelli/javatube/base/e7567ecf-player_ias_tce.vflset-en_US.txt new file mode 100644 index 0000000..5536e96 --- /dev/null +++ b/src/test/resources/com/github/felipeucelli/javatube/base/e7567ecf-player_ias_tce.vflset-en_US.txt @@ -0,0 +1,13573 @@ +var _yt_player={};(function(g){var window=this;/* + + Copyright The Closure Library Authors. + SPDX-License-Identifier: Apache-2.0 +*/ +/* + + Copyright Google LLC + SPDX-License-Identifier: Apache-2.0 +*/ +/* + + Copyright Google LLC All Rights Reserved. + + Use of this source code is governed by an MIT-style license that can be + found in the LICENSE file at https://angular.dev/license +*/ +/* + + (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). +*/ +/* + + + The MIT License (MIT) + + Copyright (c) 2015-present Dan Abramov + + 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. +*/ +'use strict';var bc="(;'[{7c2KM{{undefined{true{1970-01-01T05:30:25.000+05:30{1969-12-31T17:00:02.000-07:00{1970-01-01T04:01:40.000+03:45{1969-12-31T18:30:18.000-05:30{1970-01-01T09:30:25.000+09:30{1969-12-31T13:31:17.000-10:30{SIi7xOM-FI0o50B3OL-_w8_{Content-Transfer-Encoding{local{mn{,{/videoplayback{playerfallback{1{fvip{rr{r{---{fallback_count{\\.a1\\.googlevideo\\.com${\\.googlevideo\\.com${redirector.googlevideo.com{rr?[1-9].*\\.c\\.youtube\\.com${www.youtube.com{cmo=pf{cmo=td{a1.googlevideo.com{Untrusted URL{:{/initplayback{/api/manifest{/{index.m3u8{/file/index.m3u8{://{//{={?{&{cmo{cmo={%3D{youtube.player.web_20250211_01_RC00".split("{"), +NW,bW1,hUW,Y_,Nol,p1W,jlW,Pco,lc,clH,FK,G6,SV,k6l,eUV,LSx,Al,yH,ZWS,Yll,axH,lxH,Jl,uc,Rl,QH,Ul,XK,o_K,KW,W1,El,G6_,SlU,$Wx,Np,gD,P$,zUK,HWW,ZU,YI,od,MVK,qlK,mWH,fxK,Al1,yll,rl_,iWS,SD,Jll,$I,uKl,X1W,ze,KSx,sl_,Mp,OWW,fd,yj,Qj,UE,X0,Kd,v_x,DW6,sE,DU,OE,dWU,WSl,E_V,n_H,dD,tVU,W$,EE,nd,Tol,BoW,Te,xWW,w1S,P5,CCU,eo,bdH,hES,c5,NDS,gI_,p$V,GQ,PC_,co1,aUU,H5,YEH,eEW,oIc,Ge_,$pc,MI,qI,fs,yR,Aj,Hdc,MDH,r$,mpH,i7,RI,QR,roo,Uz,XE,Ks,v5,idW,Du,d$,Ez,ns,B5,QdS,w$,hx,gN,Up1,NA,X$_,Kh_,pL,bK,Pv,jH,sdl,cv,eH,vI6, +LL,ZD,YQ,dpH,zx,Wh1,EIl,nIV,Dp6,$Q,Fj,a6,tDU,TDx,IUl,xpl,w$6,Vr,MA,qA,C7U,bsW,fL,p5l,cjc,h_c,jIH,P7l,gsS,N$l,kQl,e_l,L$_,Ax,YzW,rN,Zso,lux,R6,Jx,osl,GQ6,Qr,UW,KL,Xj,OW,sW,nL,vv,dN,Wv,$IU,Tx,z_W,Bv,I6,bB,h1,N0,xQ,Cv,wN,pv,PJ,jY,HsK,jD,cJ,kA,DD,EW,Lv,MoU,ZB,kI,YA,ay,lB,oy,F4,G5,SY,qzK,$A,mI6,z5,fu_,M0,Vz,q0,mR,fv,A1,yz,AjU,rjH,iB,is1,Jj_,J1,uB,UQ,R_U,X4,QIS,Kv,X5K,sQ,sIU,OQ,vJ,DB,Osl,dw,vsH,WJ,DIx,dIc,EQ,W$H,nv,t1,BJ,Iy,ns6,Co,B$c,Es1,bq,NN,g2,xI1,po,j9,w5S,bLS,hr_,ch,kT,e9,Lo,Zq,ae,lq,gQl,pvW,PK_, +j6c,oe,cxU,kxK,Fn,GC,S9,$T,erx,aDV,lDc,FP1,oQ_,GxW,$AW,MN,qN,mo,fo,AQ,r2,iq,MH1,uq,Qc,UN,Xn,sN,ON,qWV,vh,Dq,Wh,fDl,AxV,EN,tQ,TC,Ie,xT,CR,bF,UAK,XvU,KPl,s6_,h8,Ne,OLW,vQl,DAx,gk,pR,PE,je,cE,LR,Yv,GA,zA,dAK,WPl,A8,EQU,Ui,Xd,TNl,CBS,xAl,hxl,Oi,vE,TA,pJ6,jy6,PBS,IV,wk,c1l,xv,gQ,si,exc,k51,k9,cP,KR,eW,LM,Z6,LR_,Y9,YQH,o4,aBS,Fl,Gz,SW,$9,lBo,oAW,FRW,HP,G5K,SQU,$06,mk,zxS,Hvx,VYc,qQH,MYU,q7,fM,AW,m0U,fBV,A1x,yD,y1K,rQ,ZLo,LP1,JW,un,QD,U0,J11,Xl,KM,O0,u46,RxH,vP,syo,BP,U01,KRl,tW,dQ,Cb,bh,OvH,pb,vAH,Pt,jI, +D0o,WRc,Lb,nAc,YE,a9,tYl,TwW,FX,SI,wJc,boK,hnV,zp,CF1,$E,gvl,lh,IBW,PFK,NkS,bRl,h4H,jVx,pEl,Ht,CqK,qR,kAo,e4l,Lgl,ZRc,YiH,fb,aZc,yh,lZl,GAS,SiK,rt,ih,Je,Kb,z4l,sq,Oq,vt,HRo,Vel,Wt,MeV,Eq,nb,fZ6,y8l,iR1,r8W,J8H,Tp,xE,hF,gH,pn,Pa,jl,ca,QVK,UeH,k3,XE6,el,Ln,NB,ZI,Y3,a0,Kgc,c$,lY,sV1,FI,De6,G3,Sl,$3,dec,Wg_,Evl,nv_,z3,Ha,Vs,MB,IZ6,Bkl,xeo,wEU,CnW,qB,bMo,te1,mz,hXl,NQl,fn,pPH,Pnx,j41,cWH,kzl,ys,eX1,Lkl,ZMH,Y0V,o9H,a6l,iY,JF,uY,R0,Qs,UA,XI,Kn,GzK,va,OA,DI,S0l,dH,$7W,zXK,HMW,VWc,Wa,nn,m7l,EA,f6K,tF,T3,AWK, +Ba,I0,x3,wH,C0,bb,ull,yWU,p0,JWW,Pu,iMc,gX,hX,rWS,N4,cu,Q4o,eB,kk,lb,o3,GS,Kkl,FT,zS,s4W,Hu,U7S,D7W,d7c,WkW,q4,mf,f0,E96,AX,yV,rX,ib,n9l,JX,U9,XT,tWl,TQU,K0,BQl,Chx,wPx,bb1,hY1,NtU,I61,pt_,s9,O9,vu,PhH,dX,DH,j9l,ce6,kpW,tX,eYW,TS,Bu,Lrx,I3,YqH,xk,ZbK,ah_,lho,oEl,wX,C9,bP,hg,N_,gg,p9,FrU,Pb,jf,cb,Gp6,$Rl,zYl,ef,Zt,L9,aW,lP,oW,VIH,MIc,FV,Gb,Sf,mRo,fh1,reS,AeW,ibV,Q96,$u,RYl,Jex,zb,Hb,UR1,Ve,XtV,M_,s9l,Kr6,Obx,vEK,Ag,ye,DR1,dRH,WrK,rg,iP,EE1,Jg,nEl,tIW,BtW,CYl,uP,bn_,hGl,NHl,g3V,paU,U4,PYV,j0c,cF1,dg, +Dt,vb,k3o,eGc,LzW,Wb,E4,n9,YAx,xu,wg,CV,b3,hV,NT,lI6,o36,Fzo,pV,ju,LV,l3,ou,Su,SAx,zG1,$Bl,Hno,VlV,qT,MlK,qAW,md,mB6,fIW,AF1,yF1,Ru,JV,Qx,Uo,Xo,rFW,inl,JF1,KV,so,uIK,Oo,RGV,Q0S,UB6,vc,XaS,Dv,da,Kzl,s0o,OnW,v3l,DBW,dBK,Wc,Eo,nV,TV,n3_,Bc,Iu,tlx,E3W,tV,THx,xX,wa,CT,hH,bA,BHK,II6,xBK,N1,CbW,gh,hh6,NXK,gkU,puH,PbV,j3o,cXl,kSH,jr,c_,kS,Lfc,ehW,Z0l,Y9S,LT,aHV,ZR,lHK,ok_,YS,aO,lA,Ffl,oO,FF,GSl,GW,Sr,$S,zW,H_,V1,M1,q1,S96,$4W,zhl,H0l,m8,VBH,q9x,MBl,AH,y1,fH6,m41,rXl,uTl,JXS,rh,RhU,Q3x,U4c,KfU,XuH,s3W,iA, +O0l,vkl,uA,D4l,d4K,WfS,EkW,RO,nko,Q1,tBo,UU,XF,BXW,KT,IHl,sU,OU,x4H,wuc,v_,dh,b9_,W_,CPl,hqK,Ngl,gul,PPx,EU,jWS,TW,B_,kbW,eqx,Y4l,atW,IO,xS,wh,CU,bp,h5,Nv,gl,pU,PD,cD,kn,ea,Gbl,FIx,S4l,zql,$_U,Vfl,ou_,H9l,lt6,LU,Zb,q4o,m_l,ft1,ob,Fp,Gq,Yn,ygl,Sa,MfW,i9c,Jgl,rgV,$n,zq,HD,Vw,uVo,Agl,Rq_,Mv,QWU,U_c,XbK,KIx,sW6,D_l,d_U,WIU,EuW,qv,tfW,Tgl,ItW,x_l,ip,C3o,J5,A5,hMW,bVW,pco,Rb,Ue,juS,cVo,kVK,eMo,ZVl,se,KU,Yol,Ldc,lvl,Fd1,GVW,$T6,qo_,dl,mTl,Db,Ee,fvl,nU,Tq,BD,AV6,yVW,rVl,p2,iV_,JVl,a2,uo1,QuH,le,UTl,XcU,DT_, +Kd_,S6,$b,zj,VE,MM,tux,qM,mX,f2,BaW,rM,IvK,xTo,ie,CA6,ue,R2,QE,Uj,bTl,XY,sj,Oj,v4,Do,hel,W4,Ej,n2,tZ,Tj,B4,Nhx,gSl,p_o,PAU,jOl,cHH,I2,kWx,gW,eel,L8_,ZTV,pe,js,cC,kt,ZO,Yt,ao,aRS,FZ,Gf,Ss,lRl,oSK,$t,F8V,GW6,HC,m1V,fR_,AHS,VS,yHo,rHl,uF_,qJ,QOc,ReK,fe,X_S,K8l,sOU,yS,rW,OT6,iH,Jh,uH,Ro,QS,UB,XZ,Ke,sB,OB,dW,WC,EB,ne,vSW,D1W,d1_,Tf,Io,W8o,ba,hK,NQ,gJ,pN,jX,cQ,Thl,kG,eX,LN,IRx,BhK,ESH,af,YG,bUV,la,MQ,zu,qQ,mt,NlK,Ppx,AK,kqU,jb_,c51,LOV,ono,ZUo,abS,lbS,rJ,yv,FOW,JK,ua,Rf,GqU,OS,Sex,vQ,D1,WQ,$vx,nN,tK,zg_, +Tu,BQ,Vac,wJ,bU,hJ,Na,gU,pp,Pj,jw,cj,ka,qeW,ew,Ya,Z7,fbl,iUW,y5W,r5c,J56,up_,Qbl,Uv_,RgV,KO1,o1,Fr,$a,sbo,OUK,Sw,zm,Dvl,dvW,tal,nnx,qa,mJ,fp,AJ,yJ,iU,Blx,IbW,xvV,Kp,sJ,wDW,CeV,b2l,Wj,EJ,np,hPH,NMV,p4l,j21,I1,cZS,CB,xa,N$,gm,PG,kjU,Y1,aR,lf,oR,Gn,Sn,zn,aoV,loH,V9,obc,FX_,q$,Gjx,SjV,mK,fB,$M6,zPV,V6o,Ji,qjK,mMl,y9,fol,AZ1,rZK,yZK,U1,M6V,JZo,uYc,DQ,O1,RPl,Q2l,dm,WG,UMl,X41,ti,KX1,s2l,O2W,vbl,wm,DMo,dMW,WXK,Eb_,nbc,t6l,TMl,BM1,bZ,Io6,NP,w4o,CHK,beo,hAW,NWK,gf,ei,pC6,chl,LQ,kfl,L7l,gtH,Zel,YBW,aOx,PHH, +jol,pQ,Pm,kw,eA1,cm,ji,lOU,otW,F7W,GfV,SB_,$Jl,qBl,zA_,lZ,ot,Go,AhH,ieW,rhU,FP,qP,Jho,yo,uZ6,QoU,Rt,RAS,W7V,UJW,dJV,KQ,EtH,TW_,sp,XP,nt_,tsU,BWH,vm,xJ6,wCl,CaV,bNV,hdx,NJl,gGo,IOl,Pac,jfl,cKU,edS,kuc,ZNV,Ep,YS6,nQ,t0,To,a1V,l1_,xw,wf,FtK,oGl,Cr,Gu1,$Qc,HN1,zdV,VX_,mQS,MXS,Lr,aF,Yp,f1S,ZG,S8,$p,zB,AKo,yKl,VO,iNc,mi,q5,Ap,yO,rj,JKH,it,ut,uu6,QO,Xb,Kr,Rd6,Qfx,UQW,XQc,sx,vl,Ktc,DG,dj,Wl,ONV,Ex,nr,vGV,TB,xp,IF,Bl,wj,CZ,Wto,I1l,wQo,BJW,TJ6,xQl,N6,PL,NUV,CU_,bpU,hjW,dQ1,ZpW,oi,LJU,l7o,ejl,h_,Ft,eT,ai,YJ6, +cL,nGS,EGl,tXV,pZ,kmH,z_,zjx,HL,VwU,MwK,qJ_,M6,maV,f7c,AJl,rJ6,ipo,fZ,urH,A_,RjV,Q1l,Xjc,KJc,rr,s1o,va_,ix,Dao,J_,ux,k1,twU,wjU,sr,bBc,g1x,vL,Pf_,jR1,ciV,kno,wr,eOo,Ii,yhl,T_,xM,BL,DL,jv,Pr,kY,Lt,ZBH,ZN,aS,lI,Y1V,aQS,GY,o1H,FKl,Gnl,S1U,$$_,zOl,HBl,VnW,MnK,q1V,Hr,m$S,VA,qb,fQK,Aio,yiW,m3,ri6,iBS,rK,iI,Ju,Ji1,uI,uyW,QA,QRU,ROx,XW,Kt,sY,OY,U$V,vr,DN,XGV,KKW,dK,Wr,D$o,sRV,v1S,OBU,EY,nt,tu,d$S,WKl,E1H,TY,tno,IQx,BmH,Br,IS,xY,wK,CF,hM,Nj,gG,pF,PX,j5,cX,x$1,wGx,CZK,kH,e5,LF,ZK,ax,ox,Nfl,hTS,Gv,gwV,S5,$H, +zv,HX,Vt,mM,fF,AM,rG,i1,JM,u1,Rx,Qt,U8,X_,jtW,s8,vX,c06,DK,eTK,Lbl,ZQW,aYc,owH,Tv,Fb6,Ix,BX,$Po,zTH,HQl,wG,Cg,MiW,hN,Nr,lg,ow,mP_,FB,GI,Sd,fYK,$5,qpl,zI,Hs,y0K,A0H,V3,Mr,qr,ma,AN,iQ_,J0l,r8,ig,ug,Rw,uPo,JN,UP1,XmW,Kbl,stc,OQl,vwU,DPx,UG,Q3,Qt6,Ew6,XB,tiS,Tfl,Dd,Bf_,sG,OG,IYl,d8,wmo,brU,Ws,EG,hc6,ng,gpl,tN,ecH,cpW,plW,jFU,PtS,Bs,Iw,x5,w8,CD,by,hU,g1,ZrS,lGl,jc,wbS,cN,opV,GB6,ec,aM,LD,Yr,Zf,zcU,$5o,SxW,HrH,ly,V8S,fGS,oM,G7,yp6,Sc,$r,z7,HN,rpW,VC,irV,JpV,qn,yC,r1,iy,JU,uy,RM,QC,UT,X9,KD,sT,OT,vN,ubl, +Rcl,Df,d1,WN,ET,nD,tU,QFl,U51,pY,kJ,sFU,Orc,e_,LY,Fx,GN,D5V,zN,MH,d5l,EpU,Wi1,np_,t8K,Tjl,BjV,IGl,x5o,CxU,wlU,bZl,gMc,PxS,NrK,mw,fY,c_1,jiV,AB,y6,ri,k_l,io,JB,uo,LZ6,ZZo,RN,ezl,Q6,lLK,UD,Xx,KY,sD,OD,vW,D0,di,WW,ED,nY,tB,TN,BW,IN,xJ,wi,C4,bN,hD,Nl,gA,p4,Pn,jE,cn,kR,eE,L4,Zy,YR,aE,lN,oE,FL,Gl,SE,$R,zl,Hn,VW,Ml,ql,mC,f4,AD,yW,rA,iN,JD,uN,RE,QW,UH,XL,K4,sH,OH,vn,Dy,dA,Wn,EH,n4,tD,Tl,Bn,IE,xR,wA,bR,hc,FZx,No,I,g0,Ck,pk,Pk,jP,SrS,kU,zzl,ck,HZK,Lk,VTl,YU,eP,aH,lR,oH,GZ,qrl,m6l,fLU,A_o,fk,Ac,Va,ya,r_H,iZc, +J__,ut_,MTc,Rzl,FG,Qi_,U6l,iR,Uc,Jc,$U,XLS,SP,r0,uR,XG,sio,zZ,Hk,Qa,RH,OZH,Kk,sc,Oc,vk,vMS,Dc,d0,Wk,Ec,nk,D6c,d6o,EMU,nMl,Bk,IH,xU,w0,x6l,CI1,hpS,NKc,bG,prV,PIl,j0,jS1,cZ,kW,e0,L8,ZJ,YW,cuc,ep1,L3c,kYH,Zt1,YYo,Ff,Gk,$W,HZ,Vu,My,qy,aN1,mU,f8,S0,rL,iG,Jk,uG,lNc,yu,F36,Rk,GYx,SYl,Qu,$b1,UP,Xf,zpl,HtV,K8,VvW,MvS,sP,qYS,mbU,fN_,AuS,OP,vZ,yul,ruW,DJ,dL,WZ,itc,EP,n8,tk,Tk,Juc,BZ,Ik,uWo,xW,RpV,wL,QSc,UbS,Xrl,K3V,sSl,OtW,CE,vYH,DbH,dbS,bi,W31,hm,EYx,Nw,nYl,ge,tvl,TKl,pE,eZ,BKl,LE,ZC,INS,Y2,xbH,aT,li,oT,wrS, +C11,Gy,SZ,hio,$2,NGl,gHW,bFH,pXo,P1c,jxS,H9,cMx,VX,Mw,qw,ml,kvU,fE,Am,re,eiW,ii,Jm,LMl,RT,X7,QX,v9,DC,ZFW,de,W9,En,nE,Y8_,Ty,B9,aKV,x2,we,sn,CI,bJ,hA,lKo,N8,g6,pI,oH1,P6,jJ,c6,ke,eJ,Zm,Ye,aA,sO,FMl,GvV,S8W,$j1,d6,OO,W6,EO,zil,HF1,V5K,nI,tA,TF,M5W,q8l,Dm,mjW,fKW,B6,AMc,IA,xe,C3,b$,hI,NO,gP,PF,jg,k4,eg,L3,ZP,cF,iFV,JM_,aJ,l$,oJ,u_W,GO,QxU,Sg,$4,Ujl,zO,HF,VU,qO,XXK,MO,m0,f3,AI,KMl,i$,OFl,vH6,Dj_,JI,u$,djo,WM1,EHK,RJ,t5W,Fm,nHc,TGK,QU,BGU,UX,IK_,Xm,xjH,wXU,CgW,bgW,hk_,K3,g5K,N81,sX,DP,pso,dP,Pgc,WF,jwH, +cN6,EX,kIW,ekW,Lac,ZgU,n3,YG_,tI,ld6,BF,IJ,FaU,o5l,GIl,SGx,$rU,wP,Cy,bj,zkV,Hg1,VdW,MdH,qGV,mrH,fd6,ANl,yNV,rNc,NZ,gq,py,igW,JNc,Pz,jb,uBl,cz,kg,Ly,Rk1,ZV,Yg,az,QwW,lj,Url,oz,XsW,Fi,Ka_,swW,G9,Og_,v5W,Dr1,Sb,$g,z9,Hz,Vf,drU,Wal,MZ,qZ,mT,E5V,fy,Av,yf,rq,ij,n5H,tdH,Jv,uj,T8K,Rz,Qf,Uw,Xi,WZU,B8W,Id_,Ky,xrW,wsl,Cy1,Ow,vz,DV,dq,Wz,Ew,ny,tv,T9,Bz,Iz,bDl,h8U,gb,pG,N16,PA,SF,cA,k7o,oro,e8l,FW1,STo,$n6,G7V,z8_,HDK,Vcx,iE,mnK,AU_,rUc,iDS,JUU,Rj,QM,R8l,QMV,sM_,U2,ODc,UnK,XQ,KG,s2,O2,DnU,Erl,dnS,T11,hJW,bYo, +B1_,NiS,D8,xnH,IfV,PoK,kNH,cBW,YD1,eJK,db,WA,GNK,ta,SDS,mHx,qDS,M_l,V__,zJ6,yBH,AB6,HYc,RJl,uxl,QNl,wb,Kwl,UHU,XWH,$HW,sN1,OYH,TL,Ij,iY1,rBo,JBW,vJl,BA,f0U,dHH,EJU,t_K,Bio,wWH,CNc,hbH,NA_,pnc,gR6,ebo,jEW,PNV,LCl,ay1,ly_,oRW,FCW,ex,ffV,$lH,GlW,YD,VE_,lO,qHx,mlW,MEl,oa,fyV,Fg,GK,ak,Sx,qTS,$D,zK,Ho,ADl,yDW,V7,rD1,i4V,JDV,MG,qG,mx,fS,A$,y7,rc,iO,J$,uL_,Rbc,uO,QEl,Ra,vF,Q7,U3,Xnl,Ull,Xg,KCx,sE1,KS,s3,O4l,O3,vRl,DlV,yU6,H4W,dl1,vo,lG,TZ,CS,WCx,ERS,dc,FwV,E2,nRW,LS,Zr,h$,bO,vA,gc,I0V,b4W,NG,a0l,Z4c,tEc, +gJx,wN_,Wo,zbo,uE,BAV,TAx,vrS,xHU,Iyl,YHW,co,l0K,oJV,jNH,Ti_,nJl,tcl,WWo,KWV,XNl,u9V,DHW,Col,cDl,Lw1,ZYl,Po,jx,pS,kl6,Wwx,wn_,xlU,E3,nS,t$,TK,Bo,wc,hd,NS,gV,Px,jO,Ia,xD,px,bkl,CRl,cx,eO,h5H,N0S,Lx,Zp,Yl,ac,lw,oc,F$,G0,jHl,$l,SO,cc1,pkK,PR6,kZH,z0,Hx,e5l,L9c,Vp,Zk6,cG,acl,Ycx,oUH,GZc,ScW,F9V,$oW,VPV,yp,rV,MPl,qcV,iw,Jd,mol,fcW,Ac1,yc_,Rc,UK,X$,ik1,Jc6,QHK,Xk6,K9o,UoW,OK,Dp,vx,sHK,OkV,Kx,vUx,Do_,do6,W91,sK,T0V,B0H,Icl,tPV,nUl,EUS,xoS,wkW,uG6,CG6,R5H,b86,h9_,PGc,NLW,gWW,pZl,kkl,jkK,ckH,e9W,LUo,Wx,aJl, +Z8x,lJ_,YPU,oW_,FUH,GkW,SPU,$yS,z9K,H8o,V0V,M0x,qPW,myU,fJV,EK,yko,rkH,i8V,AkU,Jkl,ufU,Uy6,td,Ic,wV,XZc,C_,bk,h3,vWx,dyW,Dyl,EW1,Ci6,ek,gE,WU1,O8U,skl,KUl,k0,p_,ce,lk,oL,Ne_,F3,G2,aL,jTS,g2H,p9c,cm6,Sk,$0,eSH,He,VL,M9,q9,mm,f_,A3,Ll_,ZEx,yL,rE,J3,aCH,lCV,ik,uk,GyW,SnH,RL,$wH,X3,zS_,K_,Om,HEH,sm,ve,VZl,dE,qnl,mwo,Em,n_,x0,AmW,T2,wE,b0,ymW,NL,IL,C$,rmU,gd,iEl,p$,Jmc,t3,Be,fCl,h4,Pw,u7W,RSl,jS,QTK,cw,ki,eS,L$,Uw6,Yi,ZT,av,l0,X9V,Kll,ov,F2,GE,SS,$i,sT6,zE,Hw,OEo,v2l,V0,ML,qL,dwW,DwV,m6,WlW,E2V,n2l,f$, +tZU,Te6,BeS,ICK,xw_,A4,y0,rd,i0,w9H,CJl,u0,bIV,Rv,Q0,hBS,N6l,Uu,geK,p6U,kFl,eBW,PJU,jAS,cAV,K$,Ou,vw,DT,L16,ZI1,dd,YOc,lmV,amo,t4,n$,F1l,GFl,SO_,$8c,TE,zBW,Iv,xi,HIS,MJW,qOW,CA,gs,yAx,xyl,Pe,iIW,JAl,u1o,RB6,QAV,N9,b8,U81,j$,cR,sAx,OIH,veW,ky,Eel,D8_,d8l,tJS,T6x,e$,B6K,neS,ImW,LA,Z5,Yy,x8H,w6W,aG,l8,C$l,oG,b3U,Fc,pA,zM,hal,wZl,nW_,HR,VZ,qE,mY,fA,AP,yZ,ME,JP,g4H,QZ,pFl,P$l,jJ1,cIH,kOW,Uy,L0l,Xc,YXU,KA,lPl,o4S,aPl,Z3l,F0U,GO6,SXl,ds,$O1,zal,VgW,WR,hSx,nA,qXS,fPU,L_,AIU,yIo,TM,i31,jk,rIx,t0S,BL1,IJV, +MgU,BR,IG,ws,JI6,umW,CO,RaS,h9,NX,g_,pO,PI,QJl,jR,cI,UOl,XFW,k7,eR,LO,Zs,Y7,ah,sJK,K0o,l2,O3U,DOW,oh,dOH,v4c,Rh,J9,QY,XO,KO,vR,W0x,xOl,qo,u2,Ds,hul,ggx,HI,nO,za,t9,Ih,i2,x7,k9l,w_,Cj,eu_,LT6,ZyS,YwW,bW,aVU,lVl,hq,og_,zuc,$ZU,FTW,SwK,G9l,Nm,HyV,gF,VbK,MbV,mZ6,fVU,AvH,uiH,k6,ez,UZl,Lj,Za,XzK,Oy1,vgl,DZl,dZx,Y6,WTK,ngK,tb1,qm,Nb6,xZH,wzo,pAW,me,PEW,caW,jjc,kLl,Aq,iW,eLK,fj,Jq,uW,LD1,Y2S,oV_,XJ,Da,tq,IQ,yaH,raV,b4,C6,g9,p6,iGH,RLW,uQK,Qj1,jM,PT,XAU,KDx,sjS,vV_,UxH,eM,OGc,DxS,dxW,Y8,aD,EV6,UF,k8,L6,zL1, +ZG1,q2l,$8,NF,f6,Tt,u4,Q4,Uv,poW,gDc,B7,K6,Ov,jax,vT,c$W,kKc,x6,DS,Jal,WT,I8H,hE,e6W,GLW,FD6,a8_,Ev,tE,$Gx,S3x,HSl,Vx6,x8,CX,bv,w9,NC,gY,MxS,pX,mG1,PK,A$W,kz,frl,e3,LX,J$V,Z_,Qac,UGl,lv,Xo6,sal,fX,yG,rY,JR,OSl,uv,RC,KX,s_,O_,vK,vDx,D_,dY,EDH,WK,E_,nDH,txH,nX,Tcl,Bcx,Ir6,xGH,tR,T4,woo,bxS,xz,wY,hy,NV,hVl,gC,pl,PV,jK,cV,NVx,glK,kq,pxW,Pwc,eK,cdc,jcl,k0H,Ll,Lux,eVV,Zk,ZxH,Yq,a8,YKH,lp_,oll,lu,o8,FN,FuU,G8,SKl,$q,$Sl,zVW,SK,z8,HV,VQ,qKl,fpl,Hxo,mSW,AdV,VOo,MOW,yd6,rdo,mn,ixo,u$o,USK,KuH,XxW,R8,uu,XN, +Ox6,Kl,sh,Oh,DSW,vV,dSW,vlo,Dk,nlx,dC,WV,tO1,Eh,TVK,IVl,hL1,Ipl,BVV,wx1,xSV,Ckc,ty,b_l,hFH,NEo,Pkl,I8,xq,wC,c3K,LmU,hT,N3,gv,Yml,Z_l,CC,alc,llo,o0l,G2x,pC,flH,kh,e4,u3c,Ay,QLl,U9S,XeH,Kmx,sL6,Zg,O_o,Yh,am,lr,v0x,Gi,D9l,d9W,S4,$h,WmS,E0K,n0c,tkx,TE_,zi,Fe,BE6,Hp,x9H,weV,C0c,Vb,b$l,hfl,NdS,giW,pwl,P0W,jvU,c4V,kEl,efl,M3,Z$l,q3,YuK,fC,lTH,rv,L6U,m_,ir,JT,ur,Rm,Qb,Uk,oic,Xe,F6K,sk,H$K,quH,mL_,fTW,A4c,Dg,y4_,MSU,zfl,r4_,Ok,i$S,u21,KC,vp,Suc,$Ll,dv,Rfl,Qvl,VSK,GE_,UL_,Ek,XwV,nC,tT,K6K,Ti,vio,sv_,O$W,Bp, +DL6,Im,xh,wv,Cf,dLl,W6W,Ei1,bl,tS_,TdH,h7,BdW,Ni,gI,ITW,xLW,wwS,C86,bAl,hNW,jG1,gyx,RVS,Pg,kMU,eNW,pRW,P8l,Ns6,kc,l5V,cg,jQ,cP6,FYl,a5o,YyW,ZAK,LY_,Lf,GMW,fl,Zi,Yc,aZ,Syo,ll,$EW,oZ,zN6,Uh,HAW,FA,rC,Jy,Jd6,$c,Hg,qyH,mEl,VN,qi,z1,SQ,ff,G1,V$H,M$1,A7,f5c,AP_,yb,aT_,yQ,yN,yPH,Mi,rPK,iAl,JPU,ucl,rI,il,J7,QG1,UEl,XRS,KYc,sGl,J4o,RZ,QN,Ug,ul,vyU,Wu1,Ell,XA,DEc,dE_,WYK,Ey_,Kf,nyl,sg,t$6,BsW,Og,I5_,xEl,Di,wRU,vg,t7,hmS,bOl,pI_,g7c,P2W,jhU,N_K,T1,C2x,c9U,Bg,kal,ZOx,emS,LGx,ld,IlH,YaV,as1,lsW,o7K,FGc,og,Fw, +Gh,GaV,Sp,$L,SaU,zh,$Xx,zmo,Hf,HOo,VRH,MRW,qaV,Vm,eFV,Md,A9S,qd,fsl,mv,y9W,k2l,br,r9S,fw,ym,uO_,J96,Xw,s$,Kw,Qhl,vf,UX1,XI1,Dn,dp,v7V,sh1,DX_,dXU,WGl,E7l,n7S,T_l,B_l,Iso,tR6,E$,Az,wIx,KGW,CWl,OOW,nw,h2S,xXl,Wf,NFV,tz,PWx,ktV,Th,e2c,cqc,LeV,g6V,Bf,ZjK,p7_,CJ,o6l,GtW,Fec,SFx,$mx,z2U,laS,Hjl,VzS,Ig,Mzl,qFW,mmV,fal,rq1,yqx,Aqx,h2,ijl,uJo,R2l,QQl,Umc,pJ,PO,AT,X7S,Kel,sQU,Dml,v6S,Ojl,dmK,E6l,n6K,Wex,wp,dI,TFo,BFW,Ia_,g8V,C4l,b61,hwl,pTK,jD_,oyK,ND,w7o,xm_,P4U,QQ,N9l,pf,iu,jQ6,Z6H,LNl,YvW,aSU,lSl,o8c,Jq1, +nf,Wg,kg6,FNc,ewW,GgU,TsW,Sv1,aac,YFV,cEo,Eg,kO,eq,zwU,LJ,H6W,VMc,MMo,qvl,mFo,AEW,yE_,u5W,rES,JE6,RwW,YO,KNW,UFK,XT_,v81,DFc,dFH,WNV,E86,Z9,n8_,O6c,QDS,a_,tMK,i6K,T9l,lT,IS_,xFc,wTc,B96,o_,hyl,bXW,pgl,gcW,NIH,Pl6,jZH,F8,c7o,k1l,LA1,Zfl,eyH,YgH,G1S,li1,ocV,FAl,Sg_,$ic,zyx,VQ1,Hfc,MQl,qgl,mix,A7c,y7l,ifl,r7K,J7W,fic,uAW,QZK,Uil,KAW,OfW,XgK,$O,vcS,Dic,Ryl,diV,sZc,zG,WA6,EcU,ncH,tQl,TIK,BIH,Ii6,wgU,bwl,hKo,NpH,gL1,pfl,Vn,Pd1,MD,czc,khS,LvU,A2,Y$l,anW,lnW,oLl,GhW,Fvc,zK6,Hw6,yn,iT,S$K,$d_,Vpl,uT,q$_,Mpl, +mdl,fnH,AzS,iwS,yz6,RKl,R_,rzl,QgW,Qn,sgl,X8,KJ,Owo,UL,vLS,sL,Wvo,ddS,XfS,Kvc,ELK,nLl,tp6,Udl,Tp6,OL,BpW,DdS,Zw6,J2,xdK,D9,wf_,CTl,bJH,hHS,N4K,gOl,pOW,PTc,j_V,c2V,d4,kGK,eHK,ZJW,YLH,a9o,LQ_,l9W,oOc,FQ6,GGc,SLH,nJ,$Dx,t2,rMx,zHl,HJ1,TG,VqU,MqU,I_,f9l,A2o,xO,r2c,iJl,y26,mDK,w4,BO,qLl,hn,b_,J2l,Ng,Ca,UD_,s__,vO_,DD1,WQx,RHl,OJ_,EOK,Q_x,nOU,tqW,cY,gT,B4V,T4_,PY,wO1,C_x,KQ_,XO6,xD1,baS,dD6,u86,kC,e1,La,hZo,Zj,cn_,pY1,k$6,P_l,gCl,eZW,NTW,ajU,LjV,YC,ljK,FjH,Sdo,$gl,zZH,M16,Fs,qdl,Hac,j1,AnH,yno,HY,bjo,aY, +rnl,iao,usS,JnS,RZK,fjK,S1,QYU,Ug_,XYK,sYV,KjW,tzW,OaW,G$,vCS,dgl,Dgl,ECc,Wj1,G$H,t1V,nCl,$C,l_,TTo,Mg,Ijl,xg1,wY1,CSH,bPS,VF,aiU,V1V,hvo,$F_,pa,NO_,gjx,pSS,PS_,jno,qg,mj,kDW,evW,L2U,cOl,ZPH,fa,ojl,awS,lw1,F21,An,GD6,SCV,$K_,yF,zv_,VLU,ML6,qCo,rT,HP6,i_,Jn,mKU,fwH,QF,u_,RY,AOU,Ud,yO1,rOK,iPS,uqW,JOl,Dj,QnK,UKc,Rv1,XSK,dT,K2V,WY,snl,Ed,OP_,vjl,Ej1,W2l,TOl,DKH,njx,na,dK6,tLc,BOo,Iwc,xKx,wSV,T$,CV1,xC,BY,bhx,wT,CP,Nzo,hO,NK,gdW,bS,pHo,gO,jXl,PVl,PS,jL,cS,eWl,cLW,kdV,kj,Lql,lAW,YsU,ZhW,aAl,eL,FqU,$sl, +zWx,LP,Hhl,VUS,Gd1,Ss1,ms1,fAW,ALl,yLx,rLl,an,RWo,UsS,lS,JLl,ukK,sXl,Yj,on,Fq,ihl,QXS,Oho,GD,SL,vd6,DsH,dsH,zD,Wqc,Edl,ndU,tUK,Tzo,Bzl,IAK,Csl,xsK,bcS,hsl,gBo,pUH,JO,LFW,j$c,cYW,Zco,Yb_,esH,PsU,aMV,oBo,lMV,FFW,VmW,Rn,mYl,yYx,AYc,fMx,zsx,HcW,GXV,Sbx,Mml,Qi,UC,ico,$z,y$H,JY6,KP,OC,Rsc,uDc,qbl,UYK,XUS,KFo,vS,s$_,TD,vB_,DYo,dYU,EBl,WFS,nBl,BS,In,tmU,IM_,xY6,Ch,BBW,wUU,CXK,TBc,bV,gz,buH,hRH,Ns,NRx,gFx,pqW,PXl,cCS,j7H,LsK,ZuW,kHo,aF6,lFH,eR1,jU,cH,oF1,GHW,kd,FsK,S5_,zR_,$fl,Hu6,eU,VAS,MAU,q5x,Lh,ZA,fFW, +mfS,ACV,yCK,iu6,rCS,JCK,uRo,RRo,Q7_,Uf1,Ks6,aX,Yd,lV,s7o,Ouo,Xq_,EF6,nFS,tAl,IFl,BRW,TRW,xfS,wqc,oX,Fk,CQl,bzW,hQc,Nyx,pyW,PQo,SU,js1,Gd,zd,g$S,cGU,kr1,eQH,LcW,ZzW,V$,Yfl,a4H,Fc6,Ms,Grx,o$V,qs,mq,SfH,$qV,Hzl,M7W,zQS,V7S,AL,qfS,f4_,AGK,rG_,izS,y$,rz,JGc,mq_,QsS,RQV,uSW,iV,JL,XyV,Uql,uV,RX,KcK,Q$,ssl,Ozl,v$K,Us,Dql,Xk,dqW,Kh,Os,n$U,t7S,Tyl,I4S,xql,wyK,Byl,bK1,Cz1,ho6,p2H,dz,jq1,PzS,Nnl,gNo,crK,kRS,WH,Es,eox,LVK,ZK1,YIx,azl,lz6,FVV,GRl,mUl,zoV,HKl,SI1,Ar6,xd,Cc,Jrl,NY,gB,uUW,yrK,IX,jm,PU,bs,cU,UU6,KVH, +X2o,kB,hY,BH,QqU,pc,rr1,RoS,OKW,nh,em,vNW,DUl,wz,iKV,Lc,ZM,dUo,YB,a$,ls,WVo,ENc,ttl,TnW,nN_,o$,Iz6,Bn_,FD,xUH,GX,Sm,w2_,CLW,b16,h3H,Nxc,pMc,jPl,PLo,goK,$B,c61,e3o,kPo,zX,HU,Lyl,YVS,a$W,V8,Z1H,l$V,ooc,FyK,GPU,SVx,$2l,z3W,qY,mF,VhV,H1l,Mhl,fc,AY,qV1,m2W,A6H,f$o,y61,rB,r6l,i1l,JY,J6o,uCS,R36,QPS,U2W,XMl,sP_,O1l,voH,Kyo,D21,d2K,WyH,EoW,noo,thU,TxW,BxV,XD,I$l,x2l,wMS,htl,P5c,gxW,bqV,Ob,N5l,C5o,pBc,vU,cso,jBl,DM,kJW,et_,L41,GG,ZqS,F46,GJW,S6V,dB,$k6,Eb,bT,ztc,nc,HqK,WU,VyV,Myc,rsl,xB,wB,bX,hC,JsH,iqW,q6c, +Nf,uaV,RtK,Uko,gR,XBl,K4l,sBc,Cu,vxc,Oqc,pu,AsV,BU,Dk1,dkW,W4V,Exl,mkK,f3l,I$,nxW,I3o,xkW,CMc,B5S,N7S,MV,qV,xL,PMH,jpl,pi1,cb1,wBc,gZo,ty_,ksW,hll,elH,bHl,mA,RN6,I9_,Pq,ag,T5H,ZH6,oZK,cq,FE1,GsV,aXl,eA,SZl,$uK,LEo,zlo,lXo,HH6,Lu,kF,VjW,qZW,Mj1,jA,fX_,a7,AbS,ZF,lX,YF,o7,mgK,ybl,Jbc,iHl,Rll,QpV,u6S,GH,FR,Xil,KEK,spV,T76,WEW,EZH,DuK,xuW,vZU,zH,biV,wi_,hCc,NZl,gm_,V_,Mf,jKx,P6S,p3U,ms,tjV,rR,kcK,y_,qf,LpH,aEl,lE6,IXx,Zic,uX,omU,nZK,cw1,fu,FpK,Hq,Gcl,SRW,$cc,U5,Ku,eCV,zCl,s5,O5,Hil,AC,C6V,VN1,MNW,qRo, +YRl,mco,iX,fES,JC,cK,AwV,rwl,vq,DF,iic,JwW,uhK,Q_,R7,RCV,rbW,QKc,Ucl,X3S,Kpl,sKl,dR,Wq,Dcx,Emc,tNH,vml,h7_,N3l,gf1,pdl,PDW,jUV,cS_,e76,kwl,E5,nu,tC,LHo,Z5l,YMc,OX,aeK,TH,leS,Bq,I7,zy,xF,tc,ofS,aa,SHW,FHl,nG,GwV,yU,rP,Dr,SMS,$z_,z7V,H5c,VC_,wR,qMU,mz6,Cz,hG,Nq,fe6,rSK,i5K,gy,JSo,ASc,ySK,uM1,R7V,QU1,Uzc,Xd_,pz,sUS,oYU,zk,TO,O5W,vfW,x4,KHS,Ak,Dzx,dzl,WHS,Py,Y4,nfc,tCK,j7,cy,T3K,k$,B3c,bQ,Iel,xzo,sxo,e7,Lz,wdx,Z4,Y$,CmW,as,b7W,lQ,os,h01,Nul,adx,FS,gPc,PmV,p06,Gr,jr_,S7,$$,cfl,kT6,e0l,LL_,Z7V,Yto,aWo, +oPH,Hy,lWW,FLV,GTS,StU,$hK,MGS,z0W,H7H,VGK,mhl,AfS,yfW,rfc,fWU,VI,i7l,Jf6,uvU,R0W,QrK,qq,UhH,mc,fz,AG,X0W,KL1,O7x,vPH,Dhc,dh1,EPl,WLo,nPV,yI,ry,BuH,tGW,Tux,iQ,IWx,xh6,JG,uQ,w06,Rs,C9c,QI,bmK,Uf,XS,h$S,Kz,sf,NSU,gKW,Of,vy,p8l,D4,P9V,j5W,nz,ct1,kUl,e$c,Y7W,ZmK,tG,a2_,l2H,oKW,Mcl,L5S,GUx,S7H,z$S,CcK,Zx;NW=function(C){return function(){return CcK[C].apply(this,arguments)}}; +g.c1=function(C,b){return CcK[C]=b}; +bW1=function(C){var b=0;return function(){return b=this.length))return this[C]}; +XK=function(C){return C?C:Ul}; +o_K=function(C,b,h){C instanceof String&&(C=String(C));for(var N=C.length-1;N>=0;N--){var p=C[N];if(b.call(h,p,N,C))return{aG:N,Qi:p}}return{aG:-1,Qi:void 0}}; +KW=function(C){return C?C:function(b,h){return o_K(this,b,h).aG}}; +g.Ol=function(C,b,h){C=C.split(".");h=h||g.sl;for(var N;C.length&&(N=C.shift());)C.length||b===void 0?h[N]&&h[N]!==Object.prototype[N]?h=h[N]:h=h[N]={}:h[N]=b}; +W1=function(C,b){var h=g.Dx("CLOSURE_FLAGS");C=h&&h[C];return C!=null?C:b}; +g.Dx=function(C,b){C=C.split(".");b=b||g.sl;for(var h=0;h2){var N=Array.prototype.slice.call(arguments,2);return function(){var p=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(p,N);return C.apply(b,p)}}return function(){return C.apply(b,arguments)}}; +g.x_=function(C,b,h){g.x_=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?G6_:SlU;return g.x_.apply(null,arguments)}; +g.Cd=function(C,b){var h=Array.prototype.slice.call(arguments,1);return function(){var N=h.slice();N.push.apply(N,arguments);return C.apply(this,N)}}; +g.bC=function(){return Date.now()}; +$Wx=function(C){return C}; +g.ho=function(C,b){function h(){} +h.prototype=b.prototype;C.Re=b.prototype;C.prototype=new h;C.prototype.constructor=C;C.Oe=function(N,p,P){for(var c=Array(arguments.length-2),e=2;eb&&h.push(kI(N,1))}); +return h}; +g.eD=function(C){C&&typeof C.dispose=="function"&&C.dispose()}; +g.Ld=function(C){for(var b=0,h=arguments.length;b>6|192;else{if(P>=55296&&P<=57343){if(P<=56319&&p=56320&&c<=57343){P=(P-55296)*1024+ +c-56320+65536;N[h++]=P>>18|240;N[h++]=P>>12&63|128;N[h++]=P>>6&63|128;N[h++]=P&63|128;continue}else p--}if(b)throw Error("Found an unpaired surrogate");P=65533}N[h++]=P>>12|224;N[h++]=P>>6&63|128}N[h++]=P&63|128}}C=h===N.length?N:N.subarray(0,h)}return C}; +ze=function(C){g.sl.setTimeout(function(){throw C;},0)}; +KSx=function(C){return Array.prototype.map.call(C,function(b){b=b.toString(16);return b.length>1?b:"0"+b}).join("")}; +sl_=function(C){for(var b=[],h=0;h>6|192:((p&64512)==55296&&N+1>18|240,b[h++]=p>>12&63|128):b[h++]=p>>12|224,b[h++]=p>>6&63|128),b[h++]=p&63|128)}return b}; +Mp=function(C,b){return C.lastIndexOf(b,0)==0}; +OWW=function(C,b){var h=C.length-b.length;return h>=0&&C.indexOf(b,h)==h}; +g.qp=function(C){return/^[\s\xa0]*$/.test(C)}; +g.mh=function(C,b){return C.indexOf(b)!=-1}; +fd=function(C,b){return g.mh(C.toLowerCase(),b.toLowerCase())}; +g.rD=function(C,b){var h=0;C=Ao(String(C)).split(".");b=Ao(String(b)).split(".");for(var N=Math.max(C.length,b.length),p=0;h==0&&pb?1:0}; +g.iC=function(){var C=g.sl.navigator;return C&&(C=C.userAgent)?C:""}; +Qj=function(C){return Jo||uC?Rd?Rd.brands.some(function(b){return(b=b.brand)&&g.mh(b,C)}):!1:!1}; +UE=function(C){return g.mh(g.iC(),C)}; +X0=function(){return Jo||uC?!!Rd&&Rd.brands.length>0:!1}; +Kd=function(){return X0()?!1:UE("Opera")}; +v_x=function(){return X0()?!1:UE("Trident")||UE("MSIE")}; +DW6=function(){return X0()?Qj("Microsoft Edge"):UE("Edg/")}; +sE=function(){return UE("Firefox")||UE("FxiOS")}; +DU=function(){return UE("Safari")&&!(OE()||(X0()?0:UE("Coast"))||Kd()||(X0()?0:UE("Edge"))||DW6()||(X0()?Qj("Opera"):UE("OPR"))||sE()||UE("Silk")||UE("Android"))}; +OE=function(){return X0()?Qj("Chromium"):(UE("Chrome")||UE("CriOS"))&&!(X0()?0:UE("Edge"))||UE("Silk")}; +dWU=function(){return UE("Android")&&!(OE()||sE()||Kd()||UE("Silk"))}; +WSl=function(C){var b={};C.forEach(function(h){b[h[0]]=h[1]}); +return function(h){return b[h.find(function(N){return N in b})]||""}}; +E_V=function(C){var b=g.iC();if(C==="Internet Explorer"){if(v_x())if((C=/rv: *([\d\.]*)/.exec(b))&&C[1])b=C[1];else{C="";var h=/MSIE +([\d\.]+)/.exec(b);if(h&&h[1])if(b=/Trident\/(\d.\d)/.exec(b),h[1]=="7.0")if(b&&b[1])switch(b[1]){case "4.0":C="8.0";break;case "5.0":C="9.0";break;case "6.0":C="10.0";break;case "7.0":C="11.0"}else C="7.0";else C=h[1];b=C}else b="";return b}var N=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");h=[];for(var p;p=N.exec(b);)h.push([p[1],p[2],p[3]||void 0]); +b=WSl(h);switch(C){case "Opera":if(Kd())return b(["Version","Opera"]);if(X0()?Qj("Opera"):UE("OPR"))return b(["OPR"]);break;case "Microsoft Edge":if(X0()?0:UE("Edge"))return b(["Edge"]);if(DW6())return b(["Edg"]);break;case "Chromium":if(OE())return b(["Chrome","CriOS","HeadlessChrome"])}return C==="Firefox"&&sE()||C==="Safari"&&DU()||C==="Android Browser"&&dWU()||C==="Silk"&&UE("Silk")?(b=h[2])&&b[1]||"":""}; +n_H=function(C){if(X0()&&C!=="Silk"){var b=Rd.brands.find(function(h){return h.brand===C}); +if(!b||!b.version)return NaN;b=b.version.split(".")}else{b=E_V(C);if(b==="")return NaN;b=b.split(".")}return b.length===0?NaN:Number(b[0])}; +dD=function(){return Jo||uC?!!Rd&&!!Rd.platform:!1}; +tVU=function(){return dD()?Rd.platform==="Android":UE("Android")}; +W$=function(){return UE("iPhone")&&!UE("iPod")&&!UE("iPad")}; +EE=function(){return W$()||UE("iPad")||UE("iPod")}; +nd=function(){return dD()?Rd.platform==="macOS":UE("Macintosh")}; +Tol=function(){return dD()?Rd.platform==="Windows":UE("Windows")}; +g.to=function(C){return C[C.length-1]}; +BoW=function(C,b){var h=C.length,N=typeof C==="string"?C.split(""):C;for(--h;h>=0;--h)h in N&&b.call(void 0,N[h],h,C)}; +g.B$=function(C,b,h){b=Te(C,b,h);return b<0?null:typeof C==="string"?C.charAt(b):C[b]}; +Te=function(C,b,h){for(var N=C.length,p=typeof C==="string"?C.split(""):C,P=0;P=0;N--)if(N in p&&b.call(h,p[N],N,C))return N;return-1}; +g.xI=function(C,b){return Ix_(C,b)>=0}; +xWW=function(C){if(!Array.isArray(C))for(var b=C.length-1;b>=0;b--)delete C[b];C.length=0}; +g.Cs=function(C,b){b=Ix_(C,b);var h;(h=b>=0)&&g.wD(C,b);return h}; +g.wD=function(C,b){return Array.prototype.splice.call(C,b,1).length==1}; +g.b7=function(C,b){b=Te(C,b);b>=0&&g.wD(C,b)}; +w1S=function(C,b){var h=0;BoW(C,function(N,p){b.call(void 0,N,p,C)&&g.wD(C,p)&&h++})}; +g.hj=function(C){return Array.prototype.concat.apply([],arguments)}; +g.NI=function(C){var b=C.length;if(b>0){for(var h=Array(b),N=0;N>>1),L=void 0;h?L=b.call(void 0,C[e],e,C):L=b(N,C[e]);L>0?p=e+1:(P=e,c=!L)}return c?p:-p-1}; +g.Ls=function(C,b){C.sort(b||c5)}; +hES=function(C,b){var h=c5;g.Ls(C,function(N,p){return h(b(N),b(p))})}; +g.Zu=function(C,b,h){if(!g.tl(C)||!g.tl(b)||C.length!=b.length)return!1;var N=C.length;h=h||NDS;for(var p=0;pb?1:C=0})}; +g.$s=function(C,b){b===void 0&&(b=0);eEW();b=LhW[b];for(var h=Array(Math.floor(C.length/3)),N=b[64]||"",p=0,P=0;p>2];c=b[(c&3)<<4|e>>4];e=b[(e&15)<<2|L>>6];L=b[L&63];h[P++]=""+Z+c+e+L}Z=0;L=N;switch(C.length-p){case 2:Z=C[p+1],L=b[(Z&15)<<2]||N;case 1:C=C[p],h[P]=""+b[C>>2]+b[(C&3)<<4|Z>>4]+L+N}return h.join("")}; +g.zQ=function(C,b){if(Zdo&&!b)C=g.sl.btoa(C);else{for(var h=[],N=0,p=0;p255&&(h[N++]=P&255,P>>=8);h[N++]=P}C=g.$s(h,b)}return C}; +aUU=function(C){var b=[];YEH(C,function(h){b.push(h)}); +return b}; +H5=function(C){var b=C.length,h=b*3/4;h%3?h=Math.floor(h):g.mh("=.",C[b-1])&&(h=g.mh("=.",C[b-2])?h-2:h-1);var N=new Uint8Array(h),p=0;YEH(C,function(P){N[p++]=P}); +return p!==h?N.subarray(0,p):N}; +YEH=function(C,b){function h(L){for(;N>4);c!=64&&(b(P<<4&240|c>>2),e!=64&&b(c<<6&192|e))}}; +eEW=function(){if(!VR){VR={};for(var C="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),b=["+/=","+/","-_=","-_.","-_"],h=0;h<5;h++){var N=C.concat(b[h].split(""));LhW[h]=N;for(var p=0;p=b||(N[C]=h+1,C=Error(),MDH(C,"incident"),ze(C))}}; +i7=function(C,b,h,N){h=h===void 0?!1:h;C=typeof Symbol==="function"&&typeof Symbol()==="symbol"?(N===void 0?0:N)&&Symbol.for&&C?Symbol.for(C):C!=null?Symbol(C):Symbol():b;h&&fU6.add(C);return C}; +RI=function(C,b){Jj||u7 in C||AoW(C,yoW);C[u7]|=b}; +QR=function(C,b){Jj||u7 in C||AoW(C,yoW);C[u7]=b}; +roo=function(C,b){QR(b,(C|0)&-30975)}; +Uz=function(C,b){QR(b,(C|34)&-30941)}; +XE=function(){return typeof BigInt==="function"}; +Ks=function(C){return Array.prototype.slice.call(C)}; +v5=function(C){return C!==null&&typeof C==="object"&&!Array.isArray(C)&&C.constructor===Object}; +idW=function(C,b){if(C!=null)if(typeof C==="string")C=C?new qI(C,m$):fs();else if(C.constructor!==qI)if(MI(C))C=C.length?new qI(new Uint8Array(C),m$):fs();else{if(!b)throw Error();C=void 0}return C}; +Du=function(C){if(C&2)throw Error();}; +d$=function(C,b){if(typeof b!=="number"||b<0||b>=C.length)throw Error();}; +Ez=function(C){var b=$Wx(W5);return b?C[b]:void 0}; +ns=function(C){C.aQ6=!0;return C}; +B5=function(C){var b=C;if(Jox(b)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(b))throw Error(String(b));}else if(u0W(b)&&!Number.isSafeInteger(b))throw Error(String(b));return TQ?BigInt(C):C=REl(C)?C?"1":"0":Jox(C)?C.trim()||"0":String(C)}; +QdS=function(C,b){if(C.length>b.length)return!1;if(C.lengthp)return!1;if(N>>0;II=b;xs=(C-b)/4294967296>>>0}; +hx=function(C){if(C<0){w$(0-C);var b=g.z(bK(II,xs));C=b.next().value;b=b.next().value;II=C>>>0;xs=b>>>0}else w$(C)}; +gN=function(C,b){var h=b*4294967296+(C>>>0);return Number.isSafeInteger(h)?h:NA(C,b)}; +Up1=function(C,b){var h=b&2147483648;h&&(C=~C+1>>>0,b=~b>>>0,C==0&&(b=b+1>>>0));C=gN(C,b);return typeof C==="number"?h?-C:C:h?"-"+C:C}; +NA=function(C,b){b>>>=0;C>>>=0;if(b<=2097151)var h=""+(4294967296*b+C);else XE()?h=""+(BigInt(b)<>>24|b<<8)&16777215,b=b>>16&65535,C=(C&16777215)+h*6777216+b*6710656,h+=b*8147497,b*=2,C>=1E7&&(h+=C/1E7>>>0,C%=1E7),h>=1E7&&(b+=h/1E7>>>0,h%=1E7),h=b+X$_(h)+X$_(C));return h}; +X$_=function(C){C=String(C);return"0000000".slice(C.length)+C}; +Kh_=function(){var C=II,b=xs;b&2147483648?XE()?C=""+(BigInt(b|0)<>>0)):(b=g.z(bK(C,b)),C=b.next().value,b=b.next().value,C="-"+NA(C,b)):C=NA(C,b);return C}; +pL=function(C){if(C.length<16)hx(Number(C));else if(XE())C=BigInt(C),II=Number(C&BigInt(4294967295))>>>0,xs=Number(C>>BigInt(32)&BigInt(4294967295));else{var b=+(C[0]==="-");xs=II=0;for(var h=C.length,N=0+b,p=(h-b)%6+b;p<=h;N=p,p+=6)N=Number(C.slice(N,p)),xs*=1E6,II=II*1E6+N,II>=4294967296&&(xs+=Math.trunc(II/4294967296),xs>>>=0,II>>>=0);b&&(b=g.z(bK(II,xs)),C=b.next().value,b=b.next().value,II=C,xs=b)}}; +bK=function(C,b){b=~b;C?C=~C+1:b+=1;return[C,b]}; +Pv=function(C,b){throw Error(b===void 0?"unexpected value "+C+"!":b);}; +jH=function(C){if(C!=null&&typeof C!=="number")throw Error("Value of float/double field must be a number, found "+typeof C+": "+C);return C}; +sdl=function(C){return C.displayName||C.name||"unknown type name"}; +cv=function(C){if(C!=null&&typeof C!=="boolean")throw Error("Expected boolean but got "+El(C)+": "+C);return C}; +eH=function(C){switch(typeof C){case "bigint":return!0;case "number":return kQ(C);case "string":return Odx.test(C);default:return!1}}; +vI6=function(C){if(typeof C!=="number")throw r$("int32");if(!kQ(C))throw r$("int32");return C|0}; +LL=function(C){return C==null?C:vI6(C)}; +ZD=function(C){if(C==null)return C;if(typeof C==="string"&&C)C=+C;else if(typeof C!=="number")return;return kQ(C)?C|0:void 0}; +YQ=function(C){if(C==null)return C;if(typeof C==="string"&&C)C=+C;else if(typeof C!=="number")return;return kQ(C)?C>>>0:void 0}; +dpH=function(C){var b=0;b=b===void 0?0:b;if(!eH(C))throw r$("int64");var h=typeof C;switch(b){case 4096:switch(h){case "string":return a6(C);case "bigint":return String(o6(64,C));default:return Fj(C)}case 8192:switch(h){case "string":return b=Gx(Number(C)),SH(b)?C=B5(b):(b=C.indexOf("."),b!==-1&&(C=C.substring(0,b)),C=XE()?B5(o6(64,BigInt(C))):B5(Dp6(C))),C;case "bigint":return B5(o6(64,C));default:return SH(C)?B5($Q(C)):B5(Fj(C))}case 0:switch(h){case "string":return a6(C);case "bigint":return B5(o6(64, +C));default:return $Q(C)}default:return Pv(b,"Unknown format requested type for int64")}}; +zx=function(C){return C==null?C:dpH(C)}; +Wh1=function(C){if(C[0]==="-")return!1;var b=C.length;return b<20?!0:b===20&&Number(C.substring(0,6))<184467}; +EIl=function(C){var b=C.length;return C[0]==="-"?b<20?!0:b===20&&Number(C.substring(0,7))>-922337:b<19?!0:b===19&&Number(C.substring(0,6))<922337}; +nIV=function(C){if(C<0){hx(C);var b=NA(II,xs);C=Number(b);return SH(C)?C:b}b=String(C);if(Wh1(b))return b;hx(C);return gN(II,xs)}; +Dp6=function(C){if(EIl(C))return C;pL(C);return Kh_()}; +$Q=function(C){eH(C);C=Gx(C);SH(C)||(hx(C),C=Up1(II,xs));return C}; +Fj=function(C){eH(C);C=Gx(C);if(SH(C))C=String(C);else{var b=String(C);EIl(b)?C=b:(hx(C),C=Kh_())}return C}; +a6=function(C){eH(C);var b=Gx(Number(C));if(SH(b))return String(b);b=C.indexOf(".");b!==-1&&(C=C.substring(0,b));return Dp6(C)}; +tDU=function(C){if(C==null)return C;if(typeof C==="bigint")return Hv(C)?C=Number(C):(C=o6(64,C),C=Hv(C)?Number(C):String(C)),C;if(eH(C))return typeof C==="number"?$Q(C):a6(C)}; +TDx=function(C){if(C==null)return C;var b=typeof C;if(b==="bigint")return String(o6(64,C));if(eH(C)){if(b==="string")return a6(C);if(b==="number")return $Q(C)}}; +IUl=function(C){if(C==null)return C;var b=typeof C;if(b==="bigint")return String(BDH(64,C));if(eH(C)){if(b==="string")return eH(C),b=Gx(Number(C)),SH(b)&&b>=0?C=String(b):(b=C.indexOf("."),b!==-1&&(C=C.substring(0,b)),Wh1(C)||(pL(C),C=NA(II,xs))),C;if(b==="number")return eH(C),C=Gx(C),C>=0&&SH(C)?C:nIV(C)}}; +xpl=function(C){if(C==null||typeof C=="string"||MI(C)||C instanceof qI)return C}; +w$6=function(C){if(typeof C!=="string")throw Error();return C}; +Vr=function(C){if(C!=null&&typeof C!=="string")throw Error();return C}; +MA=function(C){return C==null||typeof C==="string"?C:void 0}; +qA=function(C,b){if(!(C instanceof b))throw Error("Expected instanceof "+sdl(b)+" but got "+(C&&sdl(C.constructor)));return C}; +C7U=function(C,b,h){if(C!=null&&typeof C==="object"&&C.OM===mP)return C;if(Array.isArray(C)){var N=C[u7]|0,p=N;p===0&&(p|=h&32);p|=h&2;p!==N&&QR(C,p);return new b(C)}}; +bsW=function(C){return C}; +fL=function(C){return C}; +p5l=function(C,b,h,N){return h_c(C,b,h,N,N$l,gsS)}; +cjc=function(C,b,h,N){return h_c(C,b,h,N,P7l,jIH)}; +h_c=function(C,b,h,N,p,P){if(!h.length&&!N)return 0;for(var c=0,e=0,L=0,Z=0,Y=0,a=h.length-1;a>=0;a--){var l=h[a];N&&a===h.length-1&&l===N||(Z++,l!=null&&L++)}if(N)for(var F in N)a=+F,isNaN(a)||(Y+=kQl(a),e++,a>c&&(c=a));Z=p(Z,L)+P(e,c,Y);F=L;a=e;l=c;for(var G=Y,V=h.length-1;V>=0;V--){var q=h[V];if(!(q==null||N&&V===h.length-1&&q===N)){q=V-b;var f=p(q,F)+P(a,l,G);f=1024||(a--,F++,G-=y.length,c=p(N,F)+P(a,l,G),c1?C-1:0)}; +P7l=function(C,b){return(C>1?C-1:0)+(C-b)*4}; +gsS=function(C,b){return C==0?0:9*Math.max(1<<32-Math.clz32(C+C/2-1),4)<=b?C==0?0:C<4?100+(C-1)*16:C<6?148+(C-4)*16:C<12?244+(C-6)*16:C<22?436+(C-12)*19:C<44?820+(C-22)*17:52+32*C:40+4*b}; +N$l=function(C){return 40+4*C}; +kQl=function(C){return C>=100?C>=1E4?Math.ceil(Math.log10(1+C)):C<1E3?3:4:C<10?1:2}; +e_l=function(C,b,h){var N=Ks(C),p=N.length,P=b&256?N[p-1]:void 0;p+=P?-1:0;for(b=b&512?1:0;b0;h=b-1)if(e=C[h],e==null)b--,p=!0;else if(h-=P,h>=c)p=void 0,((p=N)!=null?p:N={})[h]=e,b--,p=!0;else break;p&&(C.length=b);N&&C.push(N)}return C}; +lux=function(C){switch(typeof C){case "boolean":return iK||(iK=[0,void 0,!0]);case "number":return C>0?void 0:C===0?auV||(auV=[0,void 0]):[-C,void 0];case "string":return[0,C];case "object":return C}}; +R6=function(C,b,h){C=Jx(C,b[0],b[1],h?1:2);b!==iK&&h&&RI(C,16384);return C}; +Jx=function(C,b,h,N){if(C==null){var p=96;h?(C=[h],p|=512):C=[];b&&(p=p&-33521665|(b&1023)<<15)}else{if(!Array.isArray(C))throw Error("narr");p=C[u7]|0;16384&p||!(64&p)||2&p||osl();if(p&2048)throw Error("farr");if(p&64)return C;N===1||N===2||(p|=64);if(h&&(p|=512,h!==C[0]))throw Error("mid");a:{h=C;if(N=h.length){var P=N-1;if(v5(h[P])){p|=256;b=P-(p&512?0:-1);if(b>=1024)throw Error("pvtlmt");p=p&-33521665|(b&1023)<<15;break a}}if(b){b=Math.max(b,N-(p&512?0:-1));if(b>1024)throw Error("spvt");p=p&-33521665| +(b&1023)<<15}}}QR(C,p);return C}; +osl=function(){mpH(F$c,5)}; +GQ6=function(C,b,h){h=h===void 0?Uz:h;if(C!=null){if(zE6&&C instanceof Uint8Array)return b?C:new Uint8Array(C);if(Array.isArray(C)){var N=C[u7]|0;if(N&2)return C;b&&(b=N===0||!!(N&32)&&!(N&64||!(N&16)));return b?(QR(C,(N|34)&-12293),C):Ax(C,GQ6,N&4?Uz:h,!0,!0)}C.OM===mP&&(h=C.Xq,N=h[u7]|0,C=N&2?C:new C.constructor(Qr(h,N,!0)));return C}}; +Qr=function(C,b,h){var N=h||b&2?Uz:roo,p=!!(b&32);C=e_l(C,b,function(P){return GQ6(P,p,N)}); +RI(C,32|(h?2:0));return C}; +UW=function(C){var b=C.Xq,h=b[u7]|0;return h&2?new C.constructor(Qr(b,h,!1)):C}; +KL=function(C,b){C=C.Xq;return Xj(C,C[u7]|0,b)}; +Xj=function(C,b,h,N){if(h===-1)return null;var p=h+(b&512?0:-1),P=C.length-1;if(p>=P&&b&256)return C[P][h];if(N&&b&256&&(b=C[P][h],b!=null))return C[p]!=null&&mpH(SzU,4),b;if(p<=P)return C[p]}; +OW=function(C,b,h){var N=C.Xq,p=N[u7]|0;Du(p);sW(N,p,b,h);return C}; +sW=function(C,b,h,N){var p=b&512?0:-1,P=h+p,c=C.length-1;if(P>=c&&b&256)return C[c][h]=N,b;if(P<=c)return C[P]=N,b&256&&(C=C[c],h in C&&delete C[h]),b;N!==void 0&&(c=b>>15&1023||536870912,h>=c?N!=null&&(P={},C[c+p]=(P[h]=N,P),b|=256,QR(C,b)):C[P]=N);return b}; +nL=function(C,b,h,N,p,P){var c=C.Xq;C=c[u7]|0;N=2&C?1:N;P=!!P;p=vv(c,C,b,p);var e=p[u7]|0;if(!(4&e)){4&e&&(p=Ks(p),e=DD(e,C),C=sW(c,C,b,p));for(var L=0,Z=0;L "+C)}; +z5=function(C){if(typeof C==="string")return{buffer:$pc(C),Ad:!1};if(Array.isArray(C))return{buffer:new Uint8Array(C),Ad:!1};if(C.constructor===Uint8Array)return{buffer:C,Ad:!1};if(C.constructor===ArrayBuffer)return{buffer:new Uint8Array(C),Ad:!1};if(C.constructor===qI)return{buffer:Aj(C)||new Uint8Array(0),Ad:!0};if(C instanceof Uint8Array)return{buffer:new Uint8Array(C.buffer,C.byteOffset,C.byteLength),Ad:!1};throw Error("Type not convertible to a Uint8Array, expected a Uint8Array, an ArrayBuffer, a base64 encoded string, a ByteString or an Array of numbers"); +}; +fu_=function(C,b){this.K=null;this.G=!1;this.j=this.N=this.X=0;this.init(C,void 0,void 0,b)}; +M0=function(C){var b=0,h=0,N=0,p=C.K,P=C.j;do{var c=p[P++];b|=(c&127)<32&&(h|=(c&127)>>4);for(N=3;N<32&&c&128;N+=7)c=p[P++],h|=(c&127)<>>0,h>>>0);throw $A();}; +Vz=function(C,b){C.j=b;if(b>C.N)throw mI6(C.N,b);}; +q0=function(C){var b=C.K,h=C.j,N=b[h++],p=N&127;if(N&128&&(N=b[h++],p|=(N&127)<<7,N&128&&(N=b[h++],p|=(N&127)<<14,N&128&&(N=b[h++],p|=(N&127)<<21,N&128&&(N=b[h++],p|=N<<28,N&128&&b[h++]&128&&b[h++]&128&&b[h++]&128&&b[h++]&128&&b[h++]&128)))))throw $A();Vz(C,h);return p}; +mR=function(C){var b=C.K,h=C.j,N=b[h+0],p=b[h+1],P=b[h+2];b=b[h+3];Vz(C,C.j+4);return(N<<0|p<<8|P<<16|b<<24)>>>0}; +fv=function(C){var b=mR(C);C=mR(C);return gN(b,C)}; +A1=function(C){var b=mR(C),h=mR(C);C=(h>>31)*2+1;var N=h>>>20&2047;b=4294967296*(h&1048575)+b;return N==2047?b?NaN:C*Infinity:N==0?C*4.9E-324*b:C*Math.pow(2,N-1075)*(b+4503599627370496)}; +yz=function(C){for(var b=0,h=C.j,N=h+10,p=C.K;hC.N)throw mI6(b,C.N-h);C.j=N;return h}; +rjH=function(C,b){if(b==0)return fs();var h=AjU(C,b);C.dM&&C.G?h=C.K.subarray(h,h+b):(C=C.K,b=h+b,h=h===b?new Uint8Array(0):yjH?C.slice(h,b):new Uint8Array(C.subarray(h,b)));return h.length==0?fs():new qI(h,m$)}; +iB=function(C,b){if(rw.length){var h=rw.pop();h.init(C,void 0,void 0,b);C=h}else C=new fu_(C,b);this.j=C;this.N=this.j.j;this.K=this.X=-1;is1(this,b)}; +is1=function(C,b){b=b===void 0?{}:b;C.LC=b.LC===void 0?!1:b.LC}; +Jj_=function(C){var b=C.j;if(b.j==b.N)return!1;C.N=C.j.j;var h=q0(C.j)>>>0;b=h>>>3;h&=7;if(!(h>=0&&h<=5))throw qzK(h,C.N);if(b<1)throw Error("Invalid field number: "+b+" (at position "+C.N+")");C.X=b;C.K=h;return!0}; +J1=function(C){switch(C.K){case 0:C.K!=0?J1(C):yz(C.j);break;case 1:C=C.j;Vz(C,C.j+8);break;case 2:if(C.K!=2)J1(C);else{var b=q0(C.j)>>>0;C=C.j;Vz(C,C.j+b)}break;case 5:C=C.j;Vz(C,C.j+4);break;case 3:b=C.X;do{if(!Jj_(C))throw Error("Unmatched start-group tag: stream EOF");if(C.K==4){if(C.X!=b)throw Error("Unmatched end-group tag");break}J1(C)}while(1);break;default:throw qzK(C.K,C.N);}}; +uB=function(C,b,h){var N=C.j.N,p=q0(C.j)>>>0,P=C.j.j+p,c=P-N;c<=0&&(C.j.N=P,h(b,C,void 0,void 0,void 0),c=P-C.j.j);if(c)throw Error("Message parsing ended unexpectedly. Expected to read "+(p+" bytes, instead read "+(p-c)+" bytes, either the data ended unexpectedly or the message misreported its own length"));C.j.j=P;C.j.N=N}; +UQ=function(C){var b=q0(C.j)>>>0;C=C.j;var h=AjU(C,b);C=C.K;if(uEl){var N=C,p;(p=Ry)||(p=Ry=new TextDecoder("utf-8",{fatal:!0}));b=h+b;N=h===0&&b===N.length?N:N.subarray(h,b);try{var P=p.decode(N)}catch(Z){if(Qz===void 0){try{p.decode(new Uint8Array([128]))}catch(Y){}try{p.decode(new Uint8Array([97])),Qz=!0}catch(Y){Qz=!1}}!Qz&&(Ry=void 0);throw Z;}}else{P=h;b=P+b;h=[];for(var c=null,e,L;P=b?$I():(L=C[P++],e<194||(L&192)!==128?(P--,$I()):h.push((e&31)<<6|L&63)): +e<240?P>=b-1?$I():(L=C[P++],(L&192)!==128||e===224&&L<160||e===237&&L>=160||((p=C[P++])&192)!==128?(P--,$I()):h.push((e&15)<<12|(L&63)<<6|p&63)):e<=244?P>=b-2?$I():(L=C[P++],(L&192)!==128||(e<<28)+(L-144)>>30!==0||((p=C[P++])&192)!==128||((N=C[P++])&192)!==128?(P--,$I()):(e=(e&7)<<18|(L&63)<<12|(p&63)<<6|N&63,e-=65536,h.push((e>>10&1023)+55296,(e&1023)+56320))):$I(),h.length>=8192&&(c=uKl(c,h),h.length=0);P=uKl(c,h)}return P}; +R_U=function(C){var b=q0(C.j)>>>0;return rjH(C.j,b)}; +X4=function(C,b,h){this.Xq=Jx(C,b,h)}; +QIS=function(C,b){if(b==null||b=="")return new C;b=JSON.parse(b);if(!Array.isArray(b))throw Error("dnarr");RI(b,32);return new C(b)}; +Kv=function(C,b){this.K=C>>>0;this.j=b>>>0}; +X5K=function(C){if(!C)return UI1||(UI1=new Kv(0,0));if(!/^\d+$/.test(C))return null;pL(C);return new Kv(II,xs)}; +sQ=function(C,b){this.K=C>>>0;this.j=b>>>0}; +sIU=function(C){if(!C)return K$H||(K$H=new sQ(0,0));if(!/^-?\d+$/.test(C))return null;pL(C);return new sQ(II,xs)}; +OQ=function(){this.j=[]}; +vJ=function(C,b,h){for(;h>0||b>127;)C.j.push(b&127|128),b=(b>>>7|h<<25)>>>0,h>>>=7;C.j.push(b)}; +DB=function(C,b){for(;b>127;)C.j.push(b&127|128),b>>>=7;C.j.push(b)}; +Osl=function(C,b){if(b>=0)DB(C,b);else{for(var h=0;h<9;h++)C.j.push(b&127|128),b>>=7;C.j.push(1)}}; +dw=function(C,b){C.j.push(b>>>0&255);C.j.push(b>>>8&255);C.j.push(b>>>16&255);C.j.push(b>>>24&255)}; +vsH=function(){this.N=[];this.K=0;this.j=new OQ}; +WJ=function(C,b){b.length!==0&&(C.N.push(b),C.K+=b.length)}; +DIx=function(C,b){EQ(C,b,2);b=C.j.end();WJ(C,b);b.push(C.K);return b}; +dIc=function(C,b){var h=b.pop();for(h=C.K+C.j.length()-h;h>127;)b.push(h&127|128),h>>>=7,C.K++;b.push(h);C.K++}; +EQ=function(C,b,h){DB(C.j,b*8+h)}; +W$H=function(C,b,h){if(h!=null){switch(typeof h){case "string":X5K(h)}EQ(C,b,1);switch(typeof h){case "number":C=C.j;w$(h);dw(C,II);dw(C,xs);break;case "bigint":h=BigInt.asUintN(64,h);h=new Kv(Number(h&BigInt(4294967295)),Number(h>>BigInt(32)));C=C.j;b=h.j;dw(C,h.K);dw(C,b);break;default:h=X5K(h),C=C.j,b=h.j,dw(C,h.K),dw(C,b)}}}; +nv=function(C,b,h){EQ(C,b,2);DB(C.j,h.length);WJ(C,C.j.end());WJ(C,h)}; +t1=function(){function C(){throw Error();} +Object.setPrototypeOf(C,C.prototype);return C}; +BJ=function(C,b,h){this.bC=C;this.iC=b;C=$Wx(T5);this.j=!!C&&h===C||!1}; +Iy=function(C,b){var h=h===void 0?T5:h;return new BJ(C,b,h)}; +ns6=function(C,b,h,N,p){b=Es1(b,N);b!=null&&(h=DIx(C,h),p(b,C),dIc(C,h))}; +Co=function(C,b,h,N){var p=N[C];if(p)return p;p={};p.EC$=N;p.eR=lux(N[0]);var P=N[1],c=1;P&&P.constructor===Object&&(p.extensions=P,P=N[++c],typeof P==="function"&&(p.Um=!0,xA!=null||(xA=P),ww!=null||(ww=N[c+1]),P=N[c+=2]));for(var e={};P&&Array.isArray(P)&&P.length&&typeof P[0]==="number"&&P[0]>0;){for(var L=0;L>BigInt(32)));vJ(C.j,h.K,h.j);break;default:h=sIU(b),vJ(C.j,h.K,h.j)}}}; +lq=function(C,b,h){b=ZD(b);b!=null&&b!=null&&(EQ(C,h,0),Osl(C.j,b))}; +gQl=function(C,b,h){b=b==null||typeof b==="boolean"?b:typeof b==="number"?!!b:void 0;b!=null&&(EQ(C,h,0),C.j.j.push(b?1:0))}; +pvW=function(C,b,h){b=MA(b);b!=null&&nv(C,h,X1W(b))}; +PK_=function(C,b,h,N,p){b=Es1(b,N);b!=null&&(h=DIx(C,h),p(b,C),dIc(C,h))}; +j6c=function(C){return function(){var b=new vsH;bLS(this.Xq,b,Co(Ph,po,j9,C));WJ(b,b.j.end());for(var h=new Uint8Array(b.K),N=b.N,p=N.length,P=0,c=0;c>>31)&4294967295;a=p[0];var G=p[1],V=p[2],q=p[3],f=p[4];for(F=0;F<80;F++){if(F<40)if(F<20){var y=q^G&(V^q);var u=1518500249}else y=G^V^q,u=1859775393;else F<60?(y=G&V|q&(G|V),u=2400959708):(y=G^V^q,u=3395469782);y=((a<<5|a>>>27)&4294967295)+y+f+u+l[F]&4294967295;f=q;q=V;V=(G<<30|G>>>2)&4294967295;G=a;a=y}p[0]=p[0]+a&4294967295;p[1]=p[1]+G&4294967295;p[2]= +p[2]+V&4294967295;p[3]=p[3]+q&4294967295;p[4]=p[4]+f&4294967295} +function h(a,l){if(typeof a==="string"){a=unescape(encodeURIComponent(a));for(var F=[],G=0,V=a.length;G=56;F--)P[F]=l&255,l>>>=8;b(P);for(F=l=0;F<5;F++)for(var G=24;G>=0;G-=8)a[l++]=p[F]>>G&255;return a} +for(var p=[],P=[],c=[],e=[128],L=1;L<64;++L)e[L]=0;var Z,Y;C();return{reset:C,update:h,digest:N,Gj:function(){for(var a=N(),l="",F=0;F4);p++)b[tQ(C[p])]||(h+="\nInner error "+N++ +": ",C[p].stack&&C[p].stack.indexOf(C[p].toString())==0||(h+=typeof C[p]==="string"?C[p]:C[p].message+"\n"),h+=EN(C[p],b));p")!=-1&&(C=C.replace(Jx6,">")),C.indexOf('"')!=-1&&(C=C.replace(ujc,""")),C.indexOf("'")!=-1&&(C=C.replace(Rrl,"'")),C.indexOf("\x00")!=-1&&(C=C.replace(Q6S,"�")));return C}; +g.w2=function(C){return C==null?"":String(C)}; +CR=function(C){for(var b=0,h=0;h>>0;return b}; +bF=function(C){var b=Number(C);return b==0&&g.qp(C)?NaN:b}; +UAK=function(C){return String(C).replace(/\-([a-z])/g,function(b,h){return h.toUpperCase()})}; +XvU=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; +KPl=function(C){return C.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(b,h,N){return h+N.toUpperCase()})}; +s6_=function(C){var b=1;C=C.split(":");for(var h=[];b>0&&C.length;)h.push(C.shift()),b--;C.length&&h.push(C.join(":"));return h}; +h8=function(C){this.j=C||{cookie:""}}; +Ne=function(C){C=(C.j.cookie||"").split(";");for(var b=[],h=[],N,p,P=0;P/g,">").replace(/"/g,""").replace(/'/g,"'");return UN(C)}; +TNl=function(C){var b=Xd("");return UN(C.map(function(h){return Xn(Xd(h))}).join(Xn(b).toString()))}; +CBS=function(C){var b;if(!BN6.test("div"))throw Error("");if(IDK.indexOf("DIV")!==-1)throw Error("");var h="":(C=TNl(b.map(function(N){return N instanceof Qc?N:Xd(String(N))})),h+=">"+C.toString()+""); +return UN(h)}; +xAl=function(C){for(var b="",h=Object.keys(C),N=0;N2&&c1l(p,c,N,2);return c}; +c1l=function(C,b,h,N){function p(e){e&&b.appendChild(typeof e==="string"?C.createTextNode(e):e)} +for(;N0)p(P);else{a:{if(P&&typeof P.length=="number"){if(g.T6(P)){var c=typeof P.item=="function"||typeof P.item=="string";break a}if(typeof P==="function"){c=typeof P.item=="function";break a}}c=!1}g.oI(c?g.NI(P):P,p)}}}; +g.CM=function(C){return xv(document,C)}; +xv=function(C,b){b=String(b);C.contentType==="application/xhtml+xml"&&(b=b.toLowerCase());return C.createElement(b)}; +g.bn=function(C){return document.createTextNode(String(C))}; +g.hW=function(C,b){C.appendChild(b)}; +g.N7=function(C){for(var b;b=C.firstChild;)C.removeChild(b)}; +gQ=function(C,b,h){C.insertBefore(b,C.childNodes[h]||null)}; +g.pM=function(C){return C&&C.parentNode?C.parentNode.removeChild(C):null}; +g.PP=function(C,b){if(!C||!b)return!1;if(C.contains&&b.nodeType==1)return C==b||C.contains(b);if(typeof C.compareDocumentPosition!="undefined")return C==b||!!(C.compareDocumentPosition(b)&16);for(;b&&C!=b;)b=b.parentNode;return b==C}; +si=function(C){return C.nodeType==9?C:C.ownerDocument||C.document}; +g.jW=function(C,b){if("textContent"in C)C.textContent=b;else if(C.nodeType==3)C.data=String(b);else if(C.firstChild&&C.firstChild.nodeType==3){for(;C.lastChild!=C.firstChild;)C.removeChild(C.lastChild);C.firstChild.data=String(b)}else g.N7(C),C.appendChild(si(C).createTextNode(String(b)))}; +exc=function(C){return C.tagName=="A"&&C.hasAttribute("href")||C.tagName=="INPUT"||C.tagName=="TEXTAREA"||C.tagName=="SELECT"||C.tagName=="BUTTON"?!C.disabled&&(!C.hasAttribute("tabindex")||k51(C)):C.hasAttribute("tabindex")&&k51(C)}; +k51=function(C){C=C.tabIndex;return typeof C==="number"&&C>=0&&C<32768}; +k9=function(C,b,h){if(!b&&!h)return null;var N=b?String(b).toUpperCase():null;return cP(C,function(p){return(!N||p.nodeName==N)&&(!h||typeof p.className==="string"&&g.xI(p.className.split(/\s+/),h))},!0)}; +cP=function(C,b,h){C&&!h&&(C=C.parentNode);for(h=0;C;){if(b(C))return C;C=C.parentNode;h++}return null}; +KR=function(C){this.j=C||g.sl.document||document}; +eW=function(C){this.Xq=Jx(C)}; +LM=function(C){this.Xq=Jx(C)}; +Z6=function(C){this.Xq=Jx(C)}; +LR_=function(C,b){kA(C,LM,1,b)}; +Y9=function(C){this.Xq=Jx(C)}; +YQH=function(C,b){b=b===void 0?ZvK:b;if(!a4){var h;C=(h=C.navigator)==null?void 0:h.userAgentData;if(!C||typeof C.getHighEntropyValues!=="function"||C.brands&&typeof C.brands.map!=="function")return Promise.reject(Error("UACH unavailable"));h=(C.brands||[]).map(function(p){var P=new LM;P=F4(P,1,p.brand);return F4(P,2,p.version)}); +LR_(OW(ln,2,cv(C.mobile)),h);a4=C.getHighEntropyValues(b)}var N=new Set(b);return a4.then(function(p){var P=ln.clone();N.has("platform")&&F4(P,3,p.platform);N.has("platformVersion")&&F4(P,4,p.platformVersion);N.has("architecture")&&F4(P,5,p.architecture);N.has("model")&&F4(P,6,p.model);N.has("uaFullVersion")&&F4(P,7,p.uaFullVersion);return P}).catch(function(){return ln.clone()})}; +o4=function(C){this.Xq=Jx(C)}; +aBS=function(C){this.Xq=Jx(C)}; +Fl=function(C){this.Xq=Jx(C,4)}; +Gz=function(C){this.Xq=Jx(C,36)}; +SW=function(C){this.Xq=Jx(C,19)}; +$9=function(C,b){this.AK=b=b===void 0?!1:b;this.uach=this.locale=null;this.K=0;this.isFinal=!1;this.j=new SW;Number.isInteger(C)&&this.j.l4(C);b||(this.locale=document.documentElement.getAttribute("lang"));lBo(this,new o4)}; +lBo=function(C,b){cJ(C.j,o4,1,b);lB(b,1)||SY(b,1,1);C.AK||(b=HP(C),ay(b,5)||F4(b,5,C.locale));C.uach&&(b=HP(C),jY(b,Z6,9)||cJ(b,Z6,9,C.uach))}; +oAW=function(C,b){C.K=b}; +FRW=function(C){var b=b===void 0?ZvK:b;var h=C.AK?void 0:IV();h?YQH(h,b).then(function(N){C.uach=N;N=HP(C);cJ(N,Z6,9,C.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)}; +HP=function(C){C=jY(C.j,o4,1);var b=jY(C,Y9,11);b||(b=new Y9,cJ(C,Y9,11,b));return b}; +G5K=function(C){return g.BE?"webkit"+C:C.toLowerCase()}; +g.VD=function(C,b,h,N){this.X=C;this.G=b;this.j=this.N=C;this.W=h||0;this.J=N||2}; +g.M7=function(C){C.j=Math.min(C.G,C.j*C.J);C.N=Math.min(C.G,C.j+(C.W?Math.round(C.W*(Math.random()-.5)*2*C.j):0));C.K++}; +SQU=function(C){this.Xq=Jx(C,8)}; +$06=function(C){this.Xq=Jx(C)}; +mk=function(C){g.O.call(this);var b=this;this.componentId="";this.j=[];this.Df="";this.pageId=null;this.rO=this.nO=-1;this.J=this.experimentIds=null;this.KO=this.N2=this.W=this.X=0;this.t4=1;this.timeoutMillis=0;this.q2=!1;this.logSource=C.logSource;this.Jd=C.Jd||function(){}; +this.N=new $9(C.logSource,C.AK);this.network=C.network||null;this.Ih=C.Ih||null;this.L=C.OXh||null;this.sessionIndex=C.sessionIndex||null;this.rV=C.rV||!1;this.logger=null;this.withCredentials=!C.b8;this.AK=C.AK||!1;this.V=!this.AK&&!!IV()&&!!IV().navigator&&IV().navigator.sendBeacon!==void 0;this.Qz=typeof URLSearchParams!=="undefined"&&!!(new URL(q7())).searchParams&&!!(new URL(q7())).searchParams.set;var h=SY(new o4,1,1);lBo(this.N,h);this.G=new g.VD(1E4,3E5,.1);C=zxS(this,C.Tc);this.K=new PE(this.G.getValue(), +C);this.sX=new PE(6E5,C);this.rV||this.sX.start();this.AK||(document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&b.jx()}),document.addEventListener("pagehide",this.jx.bind(this)))}; +zxS=function(C,b){return C.Qz?b?function(){b().then(function(){C.flush()})}:function(){C.flush()}:function(){}}; +Hvx=function(C){C.L||(C.L=q7());try{return(new URL(C.L)).toString()}catch(b){return(new URL(C.L,IV().location.origin)).toString()}}; +VYc=function(C,b,h){h=h===void 0?C.Jd():h;var N={},p=new URL(Hvx(C));h&&(N.Authorization=h);C.sessionIndex&&(N["X-Goog-AuthUser"]=C.sessionIndex,p.searchParams.set("authuser",C.sessionIndex));C.pageId&&(Object.defineProperty(N,"X-Goog-PageId",{value:C.pageId}),p.searchParams.set("pageId",C.pageId));return{url:p.toString(),body:b,Jl:1,requestHeaders:N,requestType:"POST",withCredentials:C.withCredentials,timeoutMillis:C.timeoutMillis}}; +qQH=function(C){MYU(C,function(b,h){b=new URL(b);b.searchParams.set("format","json");var N=!1;try{N=IV().navigator.sendBeacon(b.toString(),h.Oq())}catch(p){}N||(C.V=!1);return N})}; +MYU=function(C,b){if(C.j.length!==0){var h=new URL(Hvx(C));h.searchParams.delete("format");var N=C.Jd();N&&h.searchParams.set("auth",N);h.searchParams.set("authuser",C.sessionIndex||"0");for(N=0;N<10&&C.j.length;++N){var p=C.j.slice(0,32),P=C.N.build(p,C.X,C.W,C.Ih,C.N2,C.KO);if(!b(h.toString(),P)){++C.W;break}C.X=0;C.W=0;C.N2=0;C.KO=0;C.j=C.j.slice(p.length)}C.K.enabled&&C.K.stop()}}; +q7=function(){return"https://play.google.com/log?format=json&hasfast=true"}; +fM=function(){this.Ij=typeof AbortController!=="undefined"}; +AW=function(C,b){g.O.call(this);this.logSource=C;this.sessionIndex=b;this.EY="https://play.google.com/log?format=json&hasfast=true";this.K=null;this.X=!1;this.network=null;this.componentId="";this.j=this.Ih=null;this.N=!1;this.pageId=null}; +m0U=function(C,b){C.K=b;return C}; +fBV=function(C,b){C.network=b;return C}; +A1x=function(C,b){C.j=b}; +yD=function(C,b,h,N,p,P,c){C=C===void 0?-1:C;b=b===void 0?"":b;h=h===void 0?"":h;N=N===void 0?!1:N;p=p===void 0?"":p;g.O.call(this);this.logSource=C;this.componentId=b;P?b=P:(C=new AW(C,"0"),C.componentId=b,g.D(this,C),h!==""&&(C.EY=h),N&&(C.X=!0),p&&m0U(C,p),c&&fBV(C,c),b=C.build());this.j=b}; +y1K=function(C){this.j=C}; +rQ=function(C,b,h){this.K=C;this.X=b;this.fields=h||[];this.j=new Map}; +ZLo=function(C){return C.fields.map(function(b){return b.fieldType})}; +LP1=function(C){return C.fields.map(function(b){return b.fieldName})}; +JW=function(C,b){rQ.call(this,C,3,b)}; +un=function(C,b){rQ.call(this,C,2,b)}; +g.R4=function(C,b){this.type=C;this.currentTarget=this.target=b;this.defaultPrevented=this.K=!1}; +QD=function(C,b){g.R4.call(this,C?C.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.j=null;C&&this.init(C,b)}; +U0=function(C){return!(!C||!C[r1o])}; +J11=function(C,b,h,N,p){this.listener=C;this.proxy=null;this.src=b;this.type=h;this.capture=!!N;this.B7=p;this.key=++ivx;this.removed=this.p7=!1}; +Xl=function(C){C.removed=!0;C.listener=null;C.proxy=null;C.src=null;C.B7=null}; +KM=function(C){this.src=C;this.listeners={};this.j=0}; +g.s0=function(C,b){var h=b.type;h in C.listeners&&g.Cs(C.listeners[h],b)&&(Xl(b),C.listeners[h].length==0&&(delete C.listeners[h],C.j--))}; +O0=function(C,b,h,N){for(var p=0;p1)));c=c.next)p||(P=c);p&&(h.j==0&&N==1?CF1(h,b):(P?(N=P,N.next==h.X&&(h.X=N),N.next=N.next.next):bRl(h),h4H(h,p,3,b)))}C.N=null}else lh(C,3,b)}; +$E=function(C,b){C.K||C.j!=2&&C.j!=3||NkS(C);C.X?C.X.next=b:C.K=b;C.X=b}; +gvl=function(C,b,h,N){var p=FX(null,null,null);p.j=new g.o9(function(P,c){p.N=b?function(e){try{var L=b.call(N,e);P(L)}catch(Z){c(Z)}}:P; +p.K=h?function(e){try{var L=h.call(N,e);L===void 0&&e instanceof Ht?c(e):P(L)}catch(Z){c(Z)}}:c}); +p.j.N=C;$E(C,p);return p.j}; +lh=function(C,b,h){C.j==0&&(C===h&&(b=3,h=new TypeError("Promise cannot resolve to itself")),C.j=1,IBW(h,C.m9$,C.g1f,C)||(C.J=h,C.j=b,C.N=null,NkS(C),b!=3||h instanceof Ht||pEl(C,h)))}; +IBW=function(C,b,h,N){if(C instanceof g.o9)return hnV(C,b,h,N),!0;if(C)try{var p=!!C.$goog_Thenable}catch(c){p=!1}else p=!1;if(p)return C.then(b,h,N),!0;if(g.T6(C))try{var P=C.then;if(typeof P==="function")return PFK(C,P,b,h,N),!0}catch(c){return h.call(N,c),!0}return!1}; +PFK=function(C,b,h,N,p){function P(L){e||(e=!0,N.call(p,L))} +function c(L){e||(e=!0,h.call(p,L))} +var e=!1;try{b.call(C,c,P)}catch(L){P(L)}}; +NkS=function(C){C.W||(C.W=!0,g.eI(C.Ok,C))}; +bRl=function(C){var b=null;C.K&&(b=C.K,C.K=b.next,b.next=null);C.K||(C.X=null);return b}; +h4H=function(C,b,h,N){if(h==3&&b.K&&!b.X)for(;C&&C.G;C=C.N)C.G=!1;if(b.j)b.j.N=null,jVx(b,h,N);else try{b.X?b.N.call(b.context):jVx(b,h,N)}catch(p){c8S.call(null,p)}OvH(Bwl,b)}; +jVx=function(C,b,h){b==2?C.N.call(C.context,h):C.K&&C.K.call(C.context,h)}; +pEl=function(C,b){C.G=!0;g.eI(function(){C.G&&c8S.call(null,b)})}; +Ht=function(C){SD.call(this,C)}; +CqK=function(C,b,h){this.promise=C;this.resolve=b;this.reject=h}; +g.Vh=function(C,b){g.wQ.call(this);this.Zo=C||1;this.wz=b||g.sl;this.OW=(0,g.x_)(this.rLX,this);this.XI=g.bC()}; +g.MR=function(C,b,h){if(typeof C==="function")h&&(C=(0,g.x_)(C,h));else if(C&&typeof C.handleEvent=="function")C=(0,g.x_)(C.handleEvent,C);else throw Error("Invalid listener argument");return Number(b)>2147483647?-1:g.sl.setTimeout(C,b||0)}; +qR=function(C,b){var h=null;return(new g.o9(function(N,p){h=g.MR(function(){N(b)},C); +h==-1&&p(Error("Failed to schedule timer."))})).jX(function(N){g.sl.clearTimeout(h); +throw N;})}; +g.mr=function(C){g.O.call(this);this.J=C;this.X=0;this.N=100;this.G=!1;this.K=new Map;this.W=new Set;this.flushInterval=3E4;this.j=new g.Vh(this.flushInterval);this.j.listen("tick",this.kD,!1,this);g.D(this,this.j)}; +kAo=function(C){C.j.enabled||C.j.start();C.X++;C.X>=C.N&&C.kD()}; +e4l=function(C,b){return C.W.has(b)?void 0:C.K.get(b)}; +Lgl=function(C){for(var b=0;b=0){var P=C[h].substring(0,N);p=C[h].substring(N+1)}else P=C[h];b(P,p?Ie(p):"")}}}; +Oq=function(C,b){if(!b)return C;var h=C.indexOf("#");h<0&&(h=C.length);var N=C.indexOf("?");if(N<0||N>h){N=h;var p=""}else p=C.substring(N+1,h);C=[C.slice(0,N),p,C.slice(h)];h=C[1];C[1]=b?h?h+"&"+b:b:h;return C[0]+(C[1]?"?"+C[1]:"")+C[2]}; +vt=function(C,b,h){if(Array.isArray(b))for(var N=0;N=0&&bh)p=h;N+=b.length+1;return Ie(C.slice(N,p!==-1?p:0))}; +nb=function(C,b){for(var h=C.search(qic),N=0,p,P=[];(p=MeV(C,N,b,h))>=0;)P.push(C.substring(N,p)),N=Math.min(C.indexOf("&",p)+1||h,h);P.push(C.slice(N));return P.join("").replace(meV,"$1")}; +fZ6=function(C,b,h){return Wt(nb(C,b),b,h)}; +g.te=function(C){g.wQ.call(this);this.headers=new Map;this.sX=C||null;this.N=!1;this.j=null;this.L="";this.K=0;this.X="";this.G=this.nO=this.V=this.N2=!1;this.KO=0;this.W=null;this.q2="";this.J=!1}; +y8l=function(C,b,h,N,p,P,c){var e=new g.te;A8V.push(e);b&&e.listen("complete",b);e.Zl("ready",e.iy);P&&(e.KO=Math.max(0,P));c&&(e.J=c);e.send(C,h,N,p)}; +iR1=function(C,b){C.N=!1;C.j&&(C.G=!0,C.j.abort(),C.G=!1);C.X=b;C.K=5;r8W(C);Tp(C)}; +r8W=function(C){C.N2||(C.N2=!0,C.dispatchEvent("complete"),C.dispatchEvent("error"))}; +J8H=function(C){if(C.N&&typeof Bt!="undefined")if(C.V&&g.I9(C)==4)setTimeout(C.QW.bind(C),0);else if(C.dispatchEvent("readystatechange"),C.isComplete()){C.getStatus();C.N=!1;try{if(xE(C))C.dispatchEvent("complete"),C.dispatchEvent("success");else{C.K=6;try{var b=g.I9(C)>2?C.j.statusText:""}catch(h){b=""}C.X=b+" ["+C.getStatus()+"]";r8W(C)}}finally{Tp(C)}}}; +Tp=function(C,b){if(C.j){C.W&&(clearTimeout(C.W),C.W=null);var h=C.j;C.j=null;b||C.dispatchEvent("ready");try{h.onreadystatechange=null}catch(N){}}}; +xE=function(C){var b=C.getStatus();a:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var h=!0;break a;default:h=!1}if(!h){if(b=b===0)C=g.Uq(1,String(C.L)),!C&&g.sl.self&&g.sl.self.location&&(C=g.sl.self.location.protocol.slice(0,-1)),b=!ud1.test(C?C.toLowerCase():"");h=b}return h}; +g.I9=function(C){return C.j?C.j.readyState:0}; +g.wt=function(C){try{return C.j?C.j.responseText:""}catch(b){return""}}; +g.Cn=function(C){try{if(!C.j)return null;if("response"in C.j)return C.j.response;switch(C.q2){case "":case "text":return C.j.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in C.j)return C.j.mozResponseArrayBuffer}return null}catch(b){return null}}; +g.R4W=function(C){var b={};C=(C.j&&g.I9(C)>=2?C.j.getAllResponseHeaders()||"":"").split("\r\n");for(var h=0;h0&&e>=b,EY:C.EY,yx:C.yx,qP:C.qP};N=N===void 0?[]:N;return new Ln(C,N)}; +FI=function(C){function b(G,V,q,f){Promise.resolve().then(function(){L.done();e.M$();e.dispose();c.resolve({E7:G,Ij4:V,cbE:q,J_h:f})})} +function h(G,V,q,f){if(!N.logger.HE()){var y="k";V?y="h":q&&(y="u");y!=="k"?f!==0&&(N.logger.h_(y),N.logger.DH(y,G)):N.K<=0?(N.logger.h_(y),N.logger.DH(y,G),N.K=Math.floor(Math.random()*200)):N.K--}} +g.O.call(this);var N=this;this.K=Math.floor(Math.random()*200);this.j=new lY;if("challenge"in C&&ORV(C.challenge)){var p=ay(C.challenge,4);var P=ay(C.challenge,5);ay(C.challenge,7)&&(this.j=vvl(ay(C.challenge,7)))}else p=C.program,P=C.globalName;this.addOnDisposeCallback(function(){var G,V,q;return g.R(function(f){if(f.j==1)return g.J(f,N.N,2);G=f.K;V=G.Ij4;(q=V)==null||q();g.$_(f)})}); +this.logger=sV1(C.ZG||{},this.j,C.Sn);g.D(this,this.logger);var c=new g.o0;this.N=c.promise;this.logger.h_("t");var e=this.logger.share(),L=new gH(e,"t");if(!g.sl[P])throw this.logger.RF(25),Error("EGOU");if(!g.sl[P].a)throw this.logger.RF(26),Error("ELIU");try{var Z=g.sl[P].a;P=[];for(var Y=[],a=zUK(this.j),l=0;l>1,b),fn(C,C.length>>1)]}; +Pnx=function(C){var b=g.z(pPH(C,AF));C=b.next().value;b=b.next().value;return C.toString(16)+b.toString(16)}; +j41=function(C,b){var h=pPH(b);C=new Uint32Array(C.buffer);b=C[0];var N=g.z(h);h=N.next().value;N=N.next().value;for(var p=1;p>>8|c<<24,c+=P|0,c^=e+38293,P=P<<3|P>>>29,P^=c,L=L>>>8|L<<24,L+=e|0,L^=Z+38293,e=e<<3|e>>>29,e^=L;P=[P,c];C[p]^=P[0];p+1=h?(globalThis.sessionStorage.removeItem(C),["e"]):["a",new Uint8Array(N.buffer,b+4)]}; +ys=function(C,b,h){h=h===void 0?[]:h;this.maxItems=C;this.j=b===void 0?0:b;this.K=h}; +eX1=function(C){var b=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!b)return new ys(C);var h=b.split(",");if(h.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new ys(C);b=h.slice(1);b.length===1&&b[0]===""&&(b=[]);h=Number(h[0]);return isNaN(h)||h<0||h>b.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new ys(C)):new ys(C,h,b)}; +Lkl=function(C,b){this.logger=b;try{var h=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(N){h=!1}h&&(this.index=eX1(C))}; +ZMH=function(C,b,h,N,p){var P=C.index?Pa(C.logger,function(){return cWH(C.index,Pnx(b),h,N,p)},"W"):"u"; +C.logger.Y$(P)}; +Y0V=function(C,b,h){var N=g.z(C.index?Pa(C.logger,function(){return kzl(Pnx(b),h)},"R"):["u"]),p=N.next().value; +N=N.next().value;C.logger.bz(p);return N}; +o9H=function(C){function b(){h-=N;h-=p;h^=p>>>13;N-=p;N-=h;N^=h<<8;p-=h;p-=N;p^=N>>>13;h-=N;h-=p;h^=p>>>12;N-=p;N-=h;N^=h<<16;p-=h;p-=N;p^=N>>>5;h-=N;h-=p;h^=p>>>3;N-=p;N-=h;N^=h<<10;p-=h;p-=N;p^=N>>>15} +C=a6l(C);for(var h=2654435769,N=2654435769,p=314159265,P=C.length,c=P,e=0;c>=12;c-=12,e+=12)h+=iY(C,e),N+=iY(C,e+4),p+=iY(C,e+8),b();p+=P;switch(c){case 11:p+=C[e+10]<<24;case 10:p+=C[e+9]<<16;case 9:p+=C[e+8]<<8;case 8:N+=C[e+7]<<24;case 7:N+=C[e+6]<<16;case 6:N+=C[e+5]<<8;case 5:N+=C[e+4];case 4:h+=C[e+3]<<24;case 3:h+=C[e+2]<<16;case 2:h+=C[e+1]<<8;case 1:h+=C[e+0]}b();return l6l.toString(p)}; +a6l=function(C){for(var b=[],h=0;h>7,C.error.code]);N.set(h,4);return N}; +va=function(C,b,h){JF.call(this,C);this.X=b;this.clientState=h;this.j="S";this.N="q"}; +OA=function(C){return globalThis.TextEncoder?(new TextEncoder).encode(C):g.H$(C)}; +DI=function(C,b,h){g.O.call(this);var N=this;this.logger=C;this.onError=b;this.state=h;this.J=0;this.K=void 0;this.addOnDisposeCallback(function(){N.j&&(N.j.dispose(),N.j=void 0)})}; +S0l=function(C,b){b=b instanceof P$?b:new P$(5,"TVD:error",b);return C.reportError(b)}; +dH=function(C,b,h){try{if(C.HE())throw new P$(21,"BNT:disposed");if(!C.j&&C.K)throw C.K;var N,p;return(p=(N=$7W(C,b,h))!=null?N:zXK(C,b,h))!=null?p:HMW(C,b,h)}catch(P){if(!b.J2)throw S0l(C,P);return VWc(C,h,P)}}; +$7W=function(C,b,h){var N;return(N=C.j)==null?void 0:R0(N,function(){return Wa(C,b)},h,function(p){var P; +if(C.j instanceof Qs&&((P=b.Ni)==null?0:P.x5))try{var c;(c=C.cache)==null||ZMH(c,Wa(C,b),p,b.Ni.jr,C.L-120)}catch(e){C.reportError(new P$(24,"ELX:write",e))}})}; +zXK=function(C,b,h){var N;if((N=b.Ni)!=null&&N.Ex)try{var p,P=(p=C.cache)==null?void 0:Y0V(p,Wa(C,b),b.Ni.jr);return P?h?Pa(C.logger,function(){return g.$s(P,2)},"a"):P:void 0}catch(c){C.reportError(new P$(23,"RXO:read",c))}}; +HMW=function(C,b,h){var N={stack:[],error:void 0,hasError:!1};try{if(!b.Hs)throw new P$(29,"SDF:notready");return R0(Np(N,new va(C.logger,C.J,C.state)),function(){return Wa(C,b)},h)}catch(p){N.error=p,N.hasError=!0}finally{gD(N)}}; +VWc=function(C,b,h){var N={stack:[],error:void 0,hasError:!1};try{var p=S0l(C,h);return R0(Np(N,new Kn(C.logger,p)),function(){return[]},b)}catch(P){N.error=P,N.hasError=!0}finally{gD(N)}}; +Wa=function(C,b){return b.bO?b.bO:b.Kf?Pa(C.logger,function(){return b.bO=OA(b.Kf)},"c"):[]}; +nn=function(C){var b;DI.call(this,C.eh.zq(),(b=C.onError)!=null?b:function(){},0); +var h=this;this.G=0;this.X=new g.o0;this.N=!1;this.eh=C.eh;this.DZ=C.DZ;this.BV=Object.assign({},MWl,C.BV||{});C.B$&&(this.logger instanceof Ln||this.logger instanceof ca)&&this.logger.KQ(C.B$);this.u0=C.u0||!1;if(q06(C)){var N=this.eh;this.W=function(){return IZ6(N).catch(function(c){c=h.reportError(new P$(h.N?20:32,"TRG:Disposed",c));h.K=c;var e;(e=h.j)==null||e.dispose();h.j=void 0;h.X.reject(c)})}; +xeo(N,function(){return void EA(h)}); +N.L===2&&EA(this)}else this.W=C.k7O,EA(this);var p=this.logger.share();p.h_("o");var P=new gH(p,"o");this.X.promise.then(function(){P.done();p.M$();p.dispose()},function(){return void p.dispose()}); +this.addOnDisposeCallback(function(){h.N||(h.K?h.logger.M$():(h.K=h.reportError(new P$(32,"TNP:Disposed")),h.logger.M$(),h.X.reject(h.K)));h.logger.dispose()})}; +m7l=function(C,b){if(!(b instanceof P$))if(b instanceof fb){var h=Error(b.toString());h.stack=b.stack;b=new P$(11,"EBH:Error",h)}else b=new P$(12,"BSO:Unknown",b);return C.reportError(b)}; +EA=function(C){var b,h,N,p,P,c,e,L,Z,Y,a,l,F,G,V;return g.R(function(q){switch(q.j){case 1:b=void 0;C.G++;h=new g.o0;C.eh instanceof MB&&C.eh.X.push(h.promise);if(!C.u0){q.WE(2);break}N=new g.o0;setTimeout(function(){return void N.resolve()}); +return g.J(q,N.promise,2);case 2:return p=C.logger.share(),g.z6(q,4,5),C.state=5,P={},c=[],g.J(q,mz(C.eh.snapshot({Kf:P,xH:c}),C.BV.w6O,function(){return Promise.reject(new P$(15,"MDA:Timeout"))}),7); +case 7:e=q.K;if(C.HE())throw new P$(C.N?20:32,"MDA:Disposed");L=c[0];C.state=6;return g.J(q,mz(p.Oz("g",1,C.DZ.WR(e)),C.BV.Xe,function(){return Promise.reject(new P$(10,"BWB:Timeout"))}),8); +case 8:Z=q.K;if(C.HE())throw new P$(C.N?20:32,"BWB:Disposed");C.state=7;b=Pa(p,function(){var y=f6K(C,Z,h,L);y.K.promise.then(function(){return void C.W()}).catch(function(){}); +return y},"i"); +case 5:g.qW(q);p.dispose();g.mS(q,6);break;case 4:Y=g.MW(q);(a=b)==null||a.dispose();if(!C.K){l=m7l(C,Y);h.resolve();var f;if(f=C.eh instanceof MB&&C.G<2)a:if(Y instanceof P$)f=Y.code!==32&&Y.code!==20&&Y.code!==10;else{if(Y instanceof fb)switch(Y.code){case 2:case 13:case 14:case 4:break;default:f=!1;break a}f=!0}if(f)return F=(1+Math.random()*.25)*(C.N?6E4:1E3),G=setTimeout(function(){return void C.W()},F),C.addOnDisposeCallback(function(){return void clearTimeout(G)}),q.return(); +C.K=l}p.RF(C.N?13:14);C.X.reject(C.K);return q.return();case 6:C.state=8,C.G=0,(V=C.j)==null||V.dispose(),C.j=b,C.N=!0,C.X.resolve(),g.$_(q)}})}; +f6K=function(C,b,h,N){var p=YA(b,2)*1E3;if(p<=0)throw new P$(31,"TTM:Invalid");if(ay(b,4))return new XI(C.logger,ay(b,4),p);if(!YA(b,3))return new UA(C.logger,yR(Tx(b,1)),p);if(!N)throw new P$(4,"PMD:Undefined");N=N(yR(Tx(b,1)));if(!(N instanceof Function))throw new P$(16,"APF:Failed");C.L=Math.floor((Date.now()+p)/1E3);C=new Qs(C.logger,N,YA(b,3),p);C.addOnDisposeCallback(function(){return void h.resolve()}); +return C}; +tF=function(){var C=0,b;return function(h){b||(b=new jl);var N=new va(b,C,1),p=R0(N,function(){return OA(h)},!0); +N.dispose();C++;return p}}; +T3=function(C){this.Xq=Jx(C)}; +AWK=function(C,b,h){this.tx=C;this.mK=b;this.metadata=h}; +Ba=function(C,b){b=b===void 0?{}:b;this.avE=C;this.metadata=b;this.status=null}; +I0=function(C,b,h,N,p){this.name=C;this.methodType="unary";this.requestType=b;this.responseType=h;this.j=N;this.K=p}; +x3=function(C){this.Xq=Jx(C)}; +wH=function(C){this.Xq=Jx(C)}; +C0=function(C){this.Xq=Jx(C)}; +bb=function(C,b){this.J=C.iJf;this.L=b;this.j=C.xhr;this.N=[];this.G=[];this.W=[];this.X=[];this.K=[];this.J&&yWU(this)}; +ull=function(C,b){var h=new rWS;g.D6(C.j,"complete",function(){if(xE(C.j)){var N=g.wt(C.j);if(b&&C.j.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");N=atob(N)}try{var p=C.L(N)}catch(e){hX(C,N4(new fb(13,"Error when deserializing response data; error: "+e+(", response: "+N)),h));return}N=ZRc(C.j.getStatus());gX(C,p0(C));N==0?iMc(C,p):hX(C,N4(new fb(N,"Xhr succeeded but the status code is not 200"),h))}else{N=g.wt(C.j);p=p0(C);if(N){var P=JWW(C, +N);N=P.code;var c=P.details;P=P.metadata}else N=2,c="Rpc failed due to xhr error. uri: "+String(C.j.L)+", error code: "+C.j.K+", error: "+C.j.getLastError(),P=p;gX(C,p);hX(C,N4(new fb(N,c,P),h))}})}; +yWU=function(C){C.J.x3("data",function(b){if("1"in b){var h=b["1"];try{var N=C.L(h)}catch(p){hX(C,new fb(13,"Error when deserializing response data; error: "+p+(", response: "+h)))}N&&iMc(C,N)}if("2"in b)for(b=JWW(C,b["2"]),h=0;h-1&&C.splice(b,1)}; +iMc=function(C,b){for(var h=0;h>4&15).toString(16)+(C&15).toString(16)}; +FT=function(C,b){this.K=this.j=null;this.N=C||null;this.X=!!b}; +zS=function(C){C.j||(C.j=new Map,C.K=0,C.N&&sq(C.N,function(b,h){C.add(Ie(b),h)}))}; +s4W=function(C,b){zS(C);b=Hu(C,b);return C.j.has(b)}; +g.OMH=function(C,b,h){C.remove(b);h.length>0&&(C.N=null,C.j.set(Hu(C,b),g.NI(h)),C.K=C.K+h.length)}; +Hu=function(C,b){b=String(b);C.X&&(b=b.toLowerCase());return b}; +U7S=function(C,b){b&&!C.X&&(zS(C),C.N=null,C.j.forEach(function(h,N){var p=N.toLowerCase();N!=p&&(this.remove(N),g.OMH(this,p,h))},C)); +C.X=b}; +g.v9_=function(C){var b="";g.Se(C,function(h,N){b+=N;b+=":";b+=h;b+="\r\n"}); +return b}; +g.VV=function(C,b,h){if(g.yT(h))return C;h=g.v9_(h);if(typeof C==="string")return Wt(C,g.Bh(b),h);g.SB(C,b,h);return C}; +g.M4=function(C){g.O.call(this);this.K=C;this.j={}}; +D7W=function(C,b,h,N,p,P){if(Array.isArray(h))for(var c=0;c0&&(b[p]=N)},C); +return b}; +Gp6=function(C){C=cb(C);var b=[];g.Se(C,function(h,N){N in Object.prototype||typeof h!="undefined"&&b.push([N,":",h].join(""))}); +return b}; +$Rl=function(C){p9(C,"od",SqU);p9(C,"opac",ku).j=!0;p9(C,"sbeos",ku).j=!0;p9(C,"prf",ku).j=!0;p9(C,"mwt",ku).j=!0;p9(C,"iogeo",ku)}; +zYl=function(){this.j=this.BO=null}; +ef=function(){}; +Zt=function(){if(!L9())throw Error();}; +L9=function(){return!(!Yu||!Yu.performance)}; +aW=function(C){return C?C.passive&&HbS()?C:C.capture||!1:!1}; +lP=function(C,b,h,N){return C.addEventListener?(C.addEventListener(b,h,aW(N)),!0):!1}; +oW=function(C){return C.prerendering?3:{visible:1,hidden:2,prerender:3,preview:4,unloaded:5}[C.visibilityState||C.webkitVisibilityState||C.mozVisibilityState||""]||0}; +VIH=function(){}; +MIc=function(){return(Jo||uC)&&Rd?Rd.mobile:!FV()&&(UE("iPod")||UE("iPhone")||UE("Android")||UE("IEMobile"))}; +FV=function(){return(Jo||uC)&&Rd?!Rd.mobile&&(UE("iPad")||UE("Android")||UE("Silk")):UE("iPad")||UE("Android")&&!UE("Mobile")||UE("Silk")}; +Gb=function(C){try{return!!C&&C.location.href!=null&&PC_(C,"foo")}catch(b){return!1}}; +Sf=function(C,b){if(C)for(var h in C)Object.prototype.hasOwnProperty.call(C,h)&&b(C[h],h,C)}; +mRo=function(){var C=[];Sf(qq1,function(b){C.push(b)}); +return C}; +fh1=function(C){var b,h;return(h=(b=/https?:\/\/[^\/]+/.exec(C))==null?void 0:b[0])!=null?h:""}; +reS=function(){var C=AeW("IFRAME"),b={};g.oI(yel(),function(h){C.sandbox&&C.sandbox.supports&&C.sandbox.supports(h)&&(b[h]=!0)}); +return b}; +AeW=function(C,b){b=b===void 0?document:b;return b.createElement(String(C).toLowerCase())}; +ibV=function(C){for(var b=C;C&&C!=C.parent;)C=C.parent,Gb(C)&&(b=C);return b}; +Q96=function(C){C=C||$u();for(var b=new Jex(g.sl.location.href,!1),h=null,N=C.length-1,p=N;p>=0;--p){var P=C[p];!h&&uX6.test(P.url)&&(h=P);if(P.url&&!P.g7){b=P;break}}p=null;P=C.length&&C[N].url;b.depth!=0&&P&&(p=C[N]);return new RYl(b,p,h)}; +$u=function(){var C=g.sl,b=[],h=null;do{var N=C;if(Gb(N)){var p=N.location.href;h=N.document&&N.document.referrer||null}else p=h,h=null;b.push(new Jex(p||""));try{C=N.parent}catch(P){C=null}}while(C&&N!=C);N=0;for(C=b.length-1;N<=C;++N)b[N].depth=C-N;N=g.sl;if(N.location&&N.location.ancestorOrigins&&N.location.ancestorOrigins.length==b.length-1)for(C=1;Cb&&(b=h.length);return 3997-b-C.N.length-1}; +M_=function(C,b){this.j=C;this.depth=b}; +s9l=function(){function C(e,L){return e==null?L:e} +var b=$u(),h=Math.max(b.length-1,0),N=Q96(b);b=N.j;var p=N.K,P=N.N,c=[];P&&c.push(new M_([P.url,P.g7?2:0],C(P.depth,1)));p&&p!=P&&c.push(new M_([p.url,2],0));b.url&&b!=P&&c.push(new M_([b.url,0],C(b.depth,h)));N=g.q_(c,function(e,L){return c.slice(0,c.length-L)}); +!b.url||(P||p)&&b!=P||(p=fh1(b.url))&&N.push([new M_([p,1],C(b.depth,h))]);N.push([]);return g.q_(N,function(e){return Kr6(h,e)})}; +Kr6=function(C,b){g.mI(b,function(p){return p.depth>=0}); +var h=f9(b,function(p,P){return Math.max(p,P.depth)},-1),N=gI_(h+2); +N[0]=C;g.oI(b,function(p){return N[p.depth+1]=p.j}); +return N}; +Obx=function(){var C=C===void 0?s9l():C;return C.map(function(b){return Ve(b)})}; +vEK=function(C){var b=!1;b=b===void 0?!1:b;Yu.google_image_requests||(Yu.google_image_requests=[]);var h=AeW("IMG",Yu.document);b&&(h.attributionSrc="");h.src=C;Yu.google_image_requests.push(h)}; +Ag=function(C){var b="M9";if(C.M9&&C.hasOwnProperty(b))return C.M9;var h=new C;C.M9=h;C.hasOwnProperty(b);return h}; +ye=function(){this.K=new VIH;this.j=L9()?new Zt:new ef}; +DR1=function(){rg();var C=Yu.document;return!!(C&&C.body&&C.body.getBoundingClientRect&&typeof Yu.setInterval==="function"&&typeof Yu.clearInterval==="function"&&typeof Yu.setTimeout==="function"&&typeof Yu.clearTimeout==="function")}; +dRH=function(){rg();return Obx()}; +WrK=function(){}; +rg=function(){var C=Ag(WrK);if(!C.j){if(!Yu)throw Error("Context has not been set and window is undefined.");C.j=Ag(ye)}return C.j}; +iP=function(C){this.Xq=Jx(C)}; +EE1=function(C){this.N=C;this.j=-1;this.K=this.X=0}; +Jg=function(C,b){return function(){var h=g.ro.apply(0,arguments);if(C.j>-1)return b.apply(null,g.M(h));try{return C.j=C.N.j.now(),b.apply(null,g.M(h))}finally{C.X+=C.N.j.now()-C.j,C.j=-1,C.K+=1}}}; +nEl=function(C,b){this.K=C;this.N=b;this.j=new EE1(C)}; +tIW=function(){this.j={}}; +BtW=function(){var C=uP().flags,b=Ttl;C=C.j[b.key];if(b.valueType==="proto"){try{var h=JSON.parse(C);if(Array.isArray(h))return h}catch(N){}return b.defaultValue}return typeof C===typeof b.defaultValue?C:b.defaultValue}; +CYl=function(){this.N=void 0;this.K=this.W=0;this.G=-1;this.aV=new gg;p9(this.aV,"mv",IhS).j=!0;p9(this.aV,"omid",ku);p9(this.aV,"epoh",ku).j=!0;p9(this.aV,"epph",ku).j=!0;p9(this.aV,"umt",ku).j=!0;p9(this.aV,"phel",ku).j=!0;p9(this.aV,"phell",ku).j=!0;p9(this.aV,"oseid",xRS).j=!0;var C=this.aV;C.j.sloi||(C.j.sloi=new hg);C.j.sloi.j=!0;p9(this.aV,"mm",RW);p9(this.aV,"ovms",wt6).j=!0;p9(this.aV,"xdi",ku).j=!0;p9(this.aV,"amp",ku).j=!0;p9(this.aV,"prf",ku).j=!0;p9(this.aV,"gtx",ku).j=!0;p9(this.aV, +"mvp_lv",ku).j=!0;p9(this.aV,"ssmol",ku).j=!0;p9(this.aV,"fmd",ku).j=!0;p9(this.aV,"gen204simple",ku);this.j=new nEl(rg(),this.aV);this.X=!1;this.flags=new tIW}; +uP=function(){return Ag(CYl)}; +bn_=function(C,b,h,N){if(Math.random()<(N||C.j))try{if(h instanceof zb)var p=h;else p=new zb,Sf(h,function(c,e){var L=p,Z=L.X++;c=Hb(e,c);L.j.push(Z);L.K[Z]=c}); +var P=p.p9(C.K,"pagead2.googlesyndication.com","/pagead/gen_204?id="+b+"&");P&&(rg(),vEK(P))}catch(c){}}; +hGl=function(C,b,h){h=h===void 0?{}:h;this.error=C;this.context=b.context;this.msg=b.message||"";this.id=b.id||"jserror";this.meta=h}; +NHl=function(){var C=C===void 0?g.sl:C;return(C=C.performance)&&C.now&&C.timing?Math.floor(C.now()+C.timing.navigationStart):g.bC()}; +g3V=function(){var C=C===void 0?g.sl:C;return(C=C.performance)&&C.now?C.now():null}; +paU=function(C,b,h){this.label=C;this.type=b;this.value=h;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; +U4=function(){var C=window;this.events=[];this.K=C||g.sl;var b=null;C&&(C.google_js_reporting_queue=C.google_js_reporting_queue||[],this.events=C.google_js_reporting_queue,b=C.google_measure_js_timing);this.j=Qe()||(b!=null?b:Math.random()<1)}; +PYV=function(C){C&&XV&&Qe()&&(XV.clearMarks("goog_"+C.label+"_"+C.uniqueId+"_start"),XV.clearMarks("goog_"+C.label+"_"+C.uniqueId+"_end"))}; +j0c=function(){var C=K9;this.j=s4;this.VJ="jserror";this.WZ=!0;this.C0=null;this.K=this.xS;this.Lj=C===void 0?null:C}; +cF1=function(C,b,h){var N=O4;return Jg(uP().j.j,function(){try{if(N.Lj&&N.Lj.j){var p=N.Lj.start(C.toString(),3);var P=b();N.Lj.end(p)}else P=b()}catch(e){var c=N.WZ;try{PYV(p),c=N.K(C,new vb(Dt(e)),void 0,h)}catch(L){N.xS(217,L)}if(!c)throw e;}return P})()}; +dg=function(C,b,h,N){return Jg(uP().j.j,function(){var p=g.ro.apply(0,arguments);return cF1(C,function(){return b.apply(h,p)},N)})}; +Dt=function(C){var b=C.toString();C.name&&b.indexOf(C.name)==-1&&(b+=": "+C.name);C.message&&b.indexOf(C.message)==-1&&(b+=": "+C.message);if(C.stack)a:{C=C.stack;var h=b;try{C.indexOf(h)==-1&&(C=h+"\n"+C);for(var N;C!=N;)N=C,C=C.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");b=C.replace(/\n */g,"\n");break a}catch(p){b=h;break a}b=void 0}return b}; +vb=function(C){hGl.call(this,Error(C),{message:C})}; +k3o=function(){Yu&&typeof Yu.google_measure_js_timing!="undefined"&&(Yu.google_measure_js_timing||K9.disable())}; +eGc=function(C){O4.C0=function(b){g.oI(C,function(h){h(b)})}}; +LzW=function(C,b){return cF1(C,b)}; +Wb=function(C,b){return dg(C,b)}; +E4=function(C,b,h,N){O4.xS(C,b,h,N)}; +n9=function(){return Date.now()-ZnW}; +YAx=function(){var C=uP().N,b=tg>=0?n9()-tg:-1,h=Tb?n9()-Bb:-1,N=IW>=0?n9()-IW:-1;if(C==947190542)return 100;if(C==79463069)return 200;C=[2E3,4E3];var p=[250,500,1E3];E4(637,Error(),.001);var P=b;h!=-1&&h1500&&N<4E3?500:c}; +xu=function(C,b,h,N){this.top=C;this.right=b;this.bottom=h;this.left=N}; +wg=function(C){return C.right-C.left}; +CV=function(C,b){return C==b?!0:C&&b?C.top==b.top&&C.right==b.right&&C.bottom==b.bottom&&C.left==b.left:!1}; +b3=function(C,b,h){b instanceof g.ZZ?(C.left+=b.x,C.right+=b.x,C.top+=b.y,C.bottom+=b.y):(C.left+=b,C.right+=b,typeof h==="number"&&(C.top+=h,C.bottom+=h));return C}; +hV=function(C,b,h){var N=new xu(0,0,0,0);this.time=C;this.volume=null;this.N=b;this.j=N;this.K=h}; +NT=function(C,b,h,N,p,P,c,e){this.X=C;this.J=b;this.N=h;this.W=N;this.j=p;this.G=P;this.K=c;this.L=e}; +lI6=function(C){var b=C!==C.top,h=C.top===ibV(C),N=-1,p=0;if(b&&h&&C.top.mraid){N=3;var P=C.top.mraid}else N=(P=C.mraid)?b?h?2:1:0:-1;P&&(P.IS_GMA_SDK||(p=2),dAK(aI1,function(c){return typeof P[c]==="function"})||(p=1)); +return{vK:P,compatibility:p,K3p:N}}; +o36=function(){var C=window.document;return C&&typeof C.elementFromPoint==="function"}; +Fzo=function(C,b,h){C&&b!==null&&b!=b.top&&(b=b.top);try{return(h===void 0?0:h)?(new g.oV(b.innerWidth,b.innerHeight)).round():pJ6(b||window).round()}catch(N){return new g.oV(-12245933,-12245933)}}; +pV=function(C,b,h){try{C&&(b=b.top);var N=Fzo(C,b,h),p=N.height,P=N.width;if(P===-12245933)return new xu(P,P,P,P);var c=jy6(Oi(b.document).j),e=c.x,L=c.y;return new xu(L,e+P,L+p,e)}catch(Z){return new xu(-12245933,-12245933,-12245933,-12245933)}}; +g.Pc=function(C,b,h,N){this.left=C;this.top=b;this.width=h;this.height=N}; +ju=function(C,b){return C==b?!0:C&&b?C.left==b.left&&C.width==b.width&&C.top==b.top&&C.height==b.height:!1}; +g.Zv=function(C,b,h){if(typeof b==="string")(b=LV(C,b))&&(C.style[b]=h);else for(var N in b){h=C;var p=b[N],P=LV(h,N);P&&(h.style[P]=p)}}; +LV=function(C,b){var h=G3l[b];if(!h){var N=UAK(b);h=N;C.style[N]===void 0&&(N=(g.BE?"Webkit":YX?"Moz":null)+KPl(N),C.style[N]!==void 0&&(h=N));G3l[b]=h}return h}; +g.au=function(C,b){var h=C.style[UAK(b)];return typeof h!=="undefined"?h:C.style[LV(C,b)]||""}; +l3=function(C,b){var h=si(C);return h.defaultView&&h.defaultView.getComputedStyle&&(C=h.defaultView.getComputedStyle(C,null))?C[b]||C.getPropertyValue(b)||"":""}; +ou=function(C,b){return l3(C,b)||(C.currentStyle?C.currentStyle[b]:null)||C.style&&C.style[b]}; +g.GV=function(C,b,h){if(b instanceof g.ZZ){var N=b.x;b=b.y}else N=b,b=h;C.style.left=g.Fo(N,!1);C.style.top=g.Fo(b,!1)}; +Su=function(C){try{return C.getBoundingClientRect()}catch(b){return{left:0,top:0,right:0,bottom:0}}}; +SAx=function(C){var b=si(C),h=ou(C,"position"),N=h=="fixed"||h=="absolute";for(C=C.parentNode;C&&C!=b;C=C.parentNode)if(C.nodeType==11&&C.host&&(C=C.host),h=ou(C,"position"),N=N&&h=="static"&&C!=b.documentElement&&C!=b.body,!N&&(C.scrollWidth>C.clientWidth||C.scrollHeight>C.clientHeight||h=="fixed"||h=="absolute"||h=="relative"))return C;return null}; +g.$X=function(C){var b=si(C),h=new g.ZZ(0,0);if(C==(b?si(b):document).documentElement)return h;C=Su(C);b=jy6(Oi(b).j);h.x=C.left+b.x;h.y=C.top+b.y;return h}; +zG1=function(C,b){var h=new g.ZZ(0,0),N=IV(si(C));if(!PC_(N,"parent"))return h;do{var p=N==b?g.$X(C):$Bl(C);h.x+=p.x;h.y+=p.y}while(N&&N!=b&&N!=N.parent&&(C=N.frameElement)&&(N=N.parent));return h}; +g.zV=function(C,b){C=Hno(C);b=Hno(b);return new g.ZZ(C.x-b.x,C.y-b.y)}; +$Bl=function(C){C=Su(C);return new g.ZZ(C.left,C.top)}; +Hno=function(C){if(C.nodeType==1)return $Bl(C);C=C.changedTouches?C.changedTouches[0]:C;return new g.ZZ(C.clientX,C.clientY)}; +g.Hc=function(C,b,h){if(b instanceof g.oV)h=b.height,b=b.width;else if(h==void 0)throw Error("missing height argument");C.style.width=g.Fo(b,!0);C.style.height=g.Fo(h,!0)}; +g.Fo=function(C,b){typeof C=="number"&&(C=(b?Math.round(C):C)+"px");return C}; +g.Vx=function(C){var b=VlV;if(ou(C,"display")!="none")return b(C);var h=C.style,N=h.display,p=h.visibility,P=h.position;h.visibility="hidden";h.position="absolute";h.display="inline";C=b(C);h.display=N;h.position=P;h.visibility=p;return C}; +VlV=function(C){var b=C.offsetWidth,h=C.offsetHeight,N=g.BE&&!b&&!h;return(b===void 0||N)&&C.getBoundingClientRect?(C=Su(C),new g.oV(C.right-C.left,C.bottom-C.top)):new g.oV(b,h)}; +g.MT=function(C,b){C.style.display=b?"":"none"}; +qT=function(C,b){b=Math.pow(10,b);return Math.floor(C*b)/b}; +MlK=function(C){return new xu(C.top,C.right,C.bottom,C.left)}; +qAW=function(C){var b=C.top||0,h=C.left||0;return new xu(b,h+(C.width||0),b+(C.height||0),h)}; +md=function(C){return C!=null&&C>=0&&C<=1}; +mB6=function(){var C=g.iC();return C?i3("AmazonWebAppPlatform;Android TV;Apple TV;AppleTV;BRAVIA;BeyondTV;Freebox;GoogleTV;HbbTV;LongTV;MiBOX;MiTV;NetCast.TV;Netcast;Opera TV;PANASONIC;POV_TV;SMART-TV;SMART_TV;SWTV;Smart TV;SmartTV;TV Store;UnionTV;WebOS".split(";"),function(b){return fd(C,b)})||fd(C,"OMI/")&&!fd(C,"XiaoMi/")?!0:fd(C,"Presto")&&fd(C,"Linux")&&!fd(C,"X11")&&!fd(C,"Android")&&!fd(C,"Mobi"):!1}; +fIW=function(){this.N=!Gb(Yu.top);this.isMobileDevice=FV()||MIc();var C=$u();this.domain=C.length>0&&C[C.length-1]!=null&&C[C.length-1].url!=null?g.XX(C[C.length-1].url)||"":"";this.j=new xu(0,0,0,0);this.X=new g.oV(0,0);this.G=new g.oV(0,0);this.J=new xu(0,0,0,0);this.frameOffset=new g.ZZ(0,0);this.W=0;this.L=!1;this.K=!(!Yu||!lI6(Yu).vK);this.update(Yu)}; +AF1=function(C,b){b&&b.screen&&(C.X=new g.oV(b.screen.width,b.screen.height))}; +yF1=function(C,b){a:{var h=C.j?new g.oV(wg(C.j),C.j.getHeight()):new g.oV(0,0);b=b===void 0?Yu:b;b!==null&&b!=b.top&&(b=b.top);var N=0,p=0;try{var P=b.document,c=P.body,e=P.documentElement;if(P.compatMode=="CSS1Compat"&&e.scrollHeight)N=e.scrollHeight!=h.height?e.scrollHeight:e.offsetHeight,p=e.scrollWidth!=h.width?e.scrollWidth:e.offsetWidth;else{var L=e.scrollHeight,Z=e.scrollWidth,Y=e.offsetHeight,a=e.offsetWidth;e.clientHeight!=Y&&(L=c.scrollHeight,Z=c.scrollWidth,Y=c.offsetHeight,a=c.offsetWidth); +L>h.height?L>Y?(N=L,p=Z):(N=Y,p=a):L0||C.L)return!0;C=rg().K.isVisible();var b=oW(u3)===0;return C||b}; +JV=function(){return Ag(fIW)}; +Qx=function(C){this.N=C;this.K=0;this.j=null}; +Uo=function(C,b,h){this.N=C;this.rO=h===void 0?"na":h;this.G=[];this.isInitialized=!1;this.X=new hV(-1,!0,this);this.j=this;this.L=b;this.KO=this.V=!1;this.sX="uk";this.q2=!1;this.W=!0}; +Xo=function(C,b){g.xI(C.G,b)||(C.G.push(b),b.We(C.j),b.g_(C.X),b.U1()&&(C.V=!0))}; +rFW=function(C){C=C.j;C.Zh();C.BN();var b=JV();b.J=pV(!1,C.N,b.isMobileDevice);yF1(JV(),C.N);C.X.j=C.gZ()}; +inl=function(C){C.V=C.G.length?i3(C.G,function(b){return b.U1()}):!1}; +JF1=function(C){var b=g.NI(C.G);g.oI(b,function(h){h.g_(C.X)})}; +KV=function(C){var b=g.NI(C.G);g.oI(b,function(h){h.We(C.j)}); +C.j!=C||JF1(C)}; +so=function(C,b,h,N){this.element=C;this.j=new xu(0,0,0,0);this.N=null;this.W=new xu(0,0,0,0);this.K=b;this.aV=h;this.q2=N;this.nO=!1;this.timestamp=-1;this.V=new NT(b.X,this.element,this.j,new xu(0,0,0,0),0,0,n9(),0);this.G=void 0}; +uIK=function(C,b){return C.G?new xu(Math.max(b.top+C.G.top,b.top),Math.min(b.left+C.G.right,b.right),Math.min(b.top+C.G.bottom,b.bottom),Math.max(b.left+C.G.left,b.left)):b.clone()}; +Oo=function(C){this.G=!1;this.j=C;this.X=function(){}}; +RGV=function(C,b,h){this.N=h===void 0?0:h;this.K=C;this.j=b==null?"":b}; +Q0S=function(C){switch(Math.trunc(C.N)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; +UB6=function(C,b){return C.Nb.N?!1:C.Kb.K?!1:typeof C.jtypeof b.j?!1:C.j0?N[h]-N[h-1]:N[h]})}; +xX=function(){this.K=new Eo;this.rO=this.Df=0;this.CO=new Wc;this.N2=this.J=-1;this.kh=1E3;this.zi=new Eo([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.sX=this.nO=-1}; +wa=function(C,b){return n3_(C.K,b===void 0?!0:b)}; +CT=function(C,b,h,N){var p=p===void 0?!1:p;h=dg(N,h);lP(C,b,h,{capture:p})}; +hH=function(C,b){b=bA(b);return b===0?0:bA(C)/b}; +bA=function(C){return Math.max(C.bottom-C.top,0)*Math.max(C.right-C.left,0)}; +BHK=function(C,b){if(!C||!b)return!1;for(var h=0;C!==null&&h++<100;){if(C===b)return!0;try{if(C=C.parentElement||C){var N=si(C),p=N&&IV(N),P=p&&p.frameElement;P&&(C=P)}}catch(c){break}}return!1}; +II6=function(C,b,h){if(!C||!b)return!1;b=b3(C.clone(),-b.left,-b.top);C=(b.left+b.right)/2;b=(b.top+b.bottom)/2;Gb(window.top)&&window.top&&window.top.document&&(window=window.top);if(!o36())return!1;C=window.document.elementFromPoint(C,b);if(!C)return!1;b=(b=(b=si(h))&&b.defaultView&&b.defaultView.frameElement)&&BHK(b,C);var N=C===h;C=!N&&C&&cP(C,function(p){return p===h}); +return!(b||N||C)}; +xBK=function(C,b,h,N){return JV().N?!1:wg(C)<=0||C.getHeight()<=0?!0:h&&N?LzW(208,function(){return II6(C,b,h)}):!1}; +N1=function(C,b,h){g.O.call(this);this.position=waS.clone();this.zv=this.bM();this.Bs=-2;this.timeCreated=Date.now();this.kX=-1;this.yr=b;this.f4=null;this.pu=!1;this.aq=null;this.opacity=-1;this.requestSource=h;this.CHo=!1;this.dY=function(){}; +this.RO=function(){}; +this.H$=new zYl;this.H$.BO=C;this.H$.j=C;this.zS=!1;this.ZC={yp:null,Qp:null};this.qt=!0;this.VL=null;this.rp=this.P$f=!1;uP().W++;this.Gx=this.Yl();this.uU=-1;this.iF=null;this.hasCompleted=this.L6D=!1;this.aV=new gg;$Rl(this.aV);CbW(this);this.requestSource==1?Pb(this.aV,"od",1):Pb(this.aV,"od",0)}; +CbW=function(C){C=C.H$.BO;var b;if(b=C&&C.getAttribute)b=/-[a-z]/.test("googleAvInapp")?!1:b0c&&C.dataset?"googleAvInapp"in C.dataset:C.hasAttribute?C.hasAttribute("data-"+XvU()):!!C.getAttribute("data-"+XvU());b&&(JV().K=!0)}; +gh=function(C,b){b!=C.rp&&(C.rp=b,C=JV(),b?C.W++:C.W>0&&C.W--)}; +hh6=function(C,b){if(C.iF){if(b.getName()===C.iF.getName())return;C.iF.dispose();C.iF=null}b=b.create(C.H$.j,C.aV,C.U1());if(b=b!=null&&b.observe()?b:null)C.iF=b}; +NXK=function(C,b,h){if(!C.f4||C.yr==-1||b.K===-1||C.f4.K===-1)return 0;C=b.K-C.f4.K;return C>h?0:C}; +gkU=function(C,b,h){if(C.iF){C.iF.xU();var N=C.iF.V,p=N.X,P=p.j;if(N.W!=null){var c=N.N;C.aq=new g.ZZ(c.left-P.left,c.top-P.top)}P=C.eE()?Math.max(N.j,N.G):N.j;c={};p.volume!==null&&(c.volume=p.volume);p=C.yB(N);C.f4=N;C.l$(P,b,h,!1,c,p,N.L)}}; +puH=function(C){if(C.pu&&C.VL){var b=jf(C.aV,"od")==1,h=JV().j,N=C.VL,p=C.iF?C.iF.getName():"ns",P=C.aq,c=new g.oV(wg(h),h.getHeight());h=C.eE();C={s2X:p,aq:P,X2O:c,eE:h,C9:C.Gx.C9,Ixh:b};if(b=N.K){b.xU();p=b.V;P=p.X.j;var e=c=null;p.W!=null&&P&&(c=p.N,c=new g.ZZ(c.left-P.left,c.top-P.top),e=new g.oV(P.right-P.left,P.bottom-P.top));p=h?Math.max(p.j,p.G):p.j;h={s2X:b.getName(),aq:c,X2O:e,eE:h,Ixh:!1,C9:p}}else h=null;h&&dBK(N,C,h)}}; +PbV=function(C,b,h){b&&(C.dY=b);h&&(C.RO=h)}; +g.pT=function(){}; +g.P_=function(C){return{value:C,done:!1}}; +j3o=function(){this.X=this.j=this.N=this.K=this.G=0}; +cXl=function(C){var b={};var h=g.bC()-C.G;b=(b.ptlt=h,b);(h=C.K)&&(b.pnk=h);(h=C.N)&&(b.pnc=h);(h=C.X)&&(b.pnmm=h);(C=C.j)&&(b.pns=C);return b}; +kSH=function(){wX.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; +jr=function(C){return md(C.volume)&&C.volume>0}; +c_=function(C,b,h,N){h=h===void 0?!0:h;N=N===void 0?function(){return!0}:N; +return function(p){var P=p[C];if(Array.isArray(P)&&N(p))return ehW(P,b,h)}}; +kS=function(C,b){return function(h){return b(h)?h[C]:void 0}}; +Lfc=function(C){return function(b){for(var h=0;h0?P[p-1]+1:0,N+1).reduce(function(c,e){return c+e},0)})}; +Z0l=function(){this.K=this.j=""}; +Y9S=function(){}; +LT=function(C,b){var h={};if(C!==void 0)if(b!=null)for(var N in b){var p=b[N];N in Object.prototype||p!=null&&(h[N]=typeof p==="function"?p(C):C[p])}else g.RV(h,C);return da(Dv(new vc,h))}; +aHV=function(){var C={};this.K=(C.vs=[1,0],C.vw=[0,1],C.am=[2,2],C.a=[4,4],C.f=[8,8],C.bm=[16,16],C.b=[32,32],C.avw=[0,64],C.avs=[64,0],C.pv=[256,256],C.gdr=[0,512],C.p=[0,1024],C.r=[0,2048],C.m=[0,4096],C.um=[0,8192],C.ef=[0,16384],C.s=[0,32768],C.pmx=[0,16777216],C.mut=[33554432,33554432],C.umutb=[67108864,67108864],C.tvoff=[134217728,134217728],C);this.j={};for(var b in this.K)this.K[b][1]>0&&(this.j[b]=0);this.N=0}; +ZR=function(C,b){var h=C.K[b],N=h[1];C.N+=h[0];N>0&&C.j[b]==0&&(C.j[b]=1)}; +lHK=function(C){var b=g.qe(C.K),h=0,N;for(N in C.j)g.xI(b,N)&&C.j[N]==1&&(h+=C.K[N][1],C.j[N]=2);return h}; +ok_=function(C){var b=0,h;for(h in C.j){var N=C.j[h];if(N==1||N==2)b+=C.K[h][1]}return b}; +YS=function(){this.j=this.K=0}; +aO=function(){xX.call(this);this.N=new Wc;this.t4=this.V=this.q2=0;this.L=-1;this.Vz=new Wc;this.G=new Wc;this.j=new Eo;this.W=this.X=-1;this.KO=new Wc;this.kh=2E3;this.Qz=new YS;this.Yh=new YS;this.m6=new YS}; +lA=function(C,b,h){var N=C.t4;Tb||h||C.L==-1||(N+=b-C.L);return N}; +Ffl=function(){this.N=!1}; +oO=function(C,b){this.N=!1;this.X=C;this.V=b;this.G=0}; +FF=function(C,b){oO.call(this,C,b);this.J=[]}; +GSl=function(){}; +GW=function(){}; +Sr=function(C,b,h,N){so.call(this,C,b,h,N)}; +$S=function(C,b,h){so.call(this,null,C,b,h);this.L=C.isActive();this.J=0}; +zW=function(C){return[C.top,C.left,C.bottom,C.right]}; +H_=function(C,b,h,N,p,P){P=P===void 0?new GW:P;N1.call(this,b,h,N);this.z1=p;this.SH=0;this.JT={};this.I2=new aHV;this.rX={};this.Wi="";this.m6=null;this.G$=!1;this.j=[];this.N$=P.K();this.W=P.N();this.X=null;this.N=-1;this.rO=this.V=void 0;this.N2=this.KO=0;this.sX=-1;this.kh=this.Yh=!1;this.q2=this.L=this.K=this.J1=this.sI=0;new Eo;this.Qz=this.t4=0;this.CO=-1;this.Ys=0;this.J=g.Zh;this.nO=[this.bM()];this.SC=2;this.LN={};this.LN.pause="p";this.LN.resume="r";this.LN.skip="s";this.LN.mute="m";this.LN.unmute= +"um";this.LN.exitfullscreen="ef";this.G=null;this.zi=this.Vz=!1;this.ob=Math.floor(Date.now()/1E3-1704067200);this.Df=0}; +V1=function(C){C.hasCompleted=!0;C.Ys!=0&&(C.Ys=3)}; +M1=function(C){return C===void 0?C:Number(C)?qT(C,3):0}; +q1=function(C,b){return C.nO[b!=null&&bMath.max(1E4,C.N/3)?0:b);var h=C.J(C)||{};h=h.currentTime!==void 0?h.currentTime:C.KO;var N=h-C.KO,p=0;N>=0?(C.N2+=b,C.Qz+=Math.max(b-N,0),p=Math.min(N,C.N2)):C.t4+=Math.abs(N);N!=0&&(C.N2=0);C.CO==-1&&N>0&&(C.CO=IW>=0?n9()-IW:-1);C.KO=h;return p}; +zhl=function(C,b){i3(C.W,function(h){return h.X==b.X})||C.W.push(b)}; +H0l=function(C){var b=TV(C.i5().j,1);return m8(C,b)}; +m8=function(C,b,h){return b>=15E3?!0:C.Yh?(h===void 0?0:h)?!0:C.N>0?b>=C.N/2:C.sX>0?b>=C.sX:!1:!1}; +VBH=function(C){var b=qT(C.Gx.C9,2),h=C.I2.N,N=C.Gx,p=q1(C),P=M1(p.X),c=M1(p.W),e=M1(N.volume),L=qT(p.J,2),Z=qT(p.N2,2),Y=qT(N.C9,2),a=qT(p.nO,2),l=qT(p.sX,2);N=qT(N.I0,2);var F=C.ud().clone().round();C=C.iF&&C.iF.N?(C.iF?C.iF.N:null).clone().round():null;p=wa(p,!1);return{Nai:b,Sy:h,Iq:P,Ft:c,IH:e,v_:L,k$:Z,C9:Y,Kz:a,UM:l,I0:N,position:F,W8:C,wS:p}}; +q9x=function(C,b){MBl(C.j,b,function(){return{Nai:0,Sy:void 0,Iq:-1,Ft:-1,IH:-1,v_:-1,k$:-1,C9:-1,Kz:-1,UM:-1,I0:-1,position:void 0,W8:void 0,wS:[]}}); +C.j[b]=VBH(C)}; +MBl=function(C,b,h){for(var N=C.length;N0?1:0;a.atos= +nV(Z.j);a.ssb=nV(Z.zi,!1);a.amtos=n3_(Z.j,!1);a.uac=C.sI;a.vpt=Z.N.j;Y=="nio"&&(a.nio=1,a.avms="nio");a.gmm="4";a.gdr=m8(C,Z.N.j,!0)?1:0;a.efpf=C.SC;if(Y=="gsv"||Y=="nis")Y=C.iF,Y.J>0&&(a.nnut=Y.J);a.tcm=S96(C);a.nmt=C.t4;a.bt=C.Qz;a.pst=C.CO;a.vpaid=C.V;a.dur=C.N;a.vmtime=C.KO;a.is=C.I2.N;C.j.length>=1&&(a.i0=C.j[0].Sy,a.a0=[C.j[0].IH],a.c0=[C.j[0].C9],a.ss0=[C.j[0].I0],Y=C.j[0].position,P=C.j[0].W8,a.p0=Y?zW(Y):void 0,Y&&P&&!CV(P,Y)&&(a.cp0=zW(P)));C.j.length>=2&&(a.i1=C.j[1].Sy,a.a1=y1(C.j[1].Iq, +C.j[1].IH,C.j[1].Ft),a.c1=y1(C.j[1].v_,C.j[1].C9,C.j[1].k$),a.ss1=y1(C.j[1].Kz,C.j[1].I0,C.j[1].UM),Y=C.j[1].position,P=C.j[1].W8,a.p1=Y?zW(Y):void 0,Y&&P&&!CV(P,Y)&&(a.cp1=zW(P)),a.mtos1=C.j[1].wS);C.j.length>=3&&(a.i2=C.j[2].Sy,a.a2=y1(C.j[2].Iq,C.j[2].IH,C.j[2].Ft),a.c2=y1(C.j[2].v_,C.j[2].C9,C.j[2].k$),a.ss2=y1(C.j[2].Kz,C.j[2].I0,C.j[2].UM),Y=C.j[2].position,P=C.j[2].W8,a.p2=Y?zW(Y):void 0,Y&&P&&!CV(P,Y)&&(a.cp2=zW(P)),a.mtos2=C.j[2].wS);C.j.length>=4&&(a.i3=C.j[3].Sy,a.a3=y1(C.j[3].Iq,C.j[3].IH, +C.j[3].Ft),a.c3=y1(C.j[3].v_,C.j[3].C9,C.j[3].k$),a.ss3=y1(C.j[3].Kz,C.j[3].I0,C.j[3].UM),Y=C.j[3].position,P=C.j[3].W8,a.p3=Y?zW(Y):void 0,Y&&P&&!CV(P,Y)&&(a.cp3=zW(P)),a.mtos3=C.j[3].wS);a.cs=ok_(C.I2);b&&(a.ic=lHK(C.I2),a.dvpt=Z.N.K,a.dvs=Iu(Z.K,.5),a.dfvs=Iu(Z.K,1),a.davs=Iu(Z.j,.5),a.dafvs=Iu(Z.j,1),h&&(Z.N.K=0,tlx(Z.K),tlx(Z.j)),C.I_()&&(a.dtos=Z.q2,a.dav=Z.V,a.dtoss=C.SH+1,h&&(Z.q2=0,Z.V=0,C.SH++)),a.dat=Z.G.K,a.dft=Z.KO.K,h&&(Z.G.K=0,Z.KO.K=0));a.ps=[e.G.width,e.G.height];a.bs=[wg(e.j),e.j.getHeight()]; +a.scs=[e.X.width,e.X.height];a.dom=e.domain;C.J1&&(a.vds=C.J1);if(C.W.length>0||C.N$)b=g.NI(C.W),C.N$&&b.push(C.N$),a.pings=g.q_(b,function(l){return l.toString()}); +b=g.q_(g.er(C.W,function(l){return l.W()}),function(l){return l.getId()}); +CCU(b);a.ces=b;C.K&&(a.vmer=C.K);C.L&&(a.vmmk=C.L);C.q2&&(a.vmiec=C.q2);a.avms=C.iF?C.iF.getName():"ns";C.iF&&g.RV(a,C.iF.pB());N?(a.c=qT(C.Gx.C9,2),a.ss=qT(C.Gx.I0,2)):a.tth=n9()-yXU;a.mc=qT(Z.N2,2);a.nc=qT(Z.J,2);a.mv=M1(Z.W);a.nv=M1(Z.X);a.lte=qT(C.Bs,2);N=q1(C,p);wa(Z);a.qmtos=wa(N);a.qnc=qT(N.J,2);a.qmv=M1(N.W);a.qnv=M1(N.X);a.qas=N.X>0?1:0;a.qi=C.Wi;a.avms||(a.avms="geo");a.psm=Z.Qz.j;a.psv=Z.Qz.getValue();a.psfv=Z.Yh.getValue();a.psa=Z.m6.getValue();L=Gp6(L.aV);L.length&&(a.veid=L);C.G&&g.RV(a, +cXl(C.G));a.avas=C.Eb();a.vs=C.kG();a.co=rXl(C);a.tm=Z.Df;a.tu=Z.rO;return a}; +m41=function(C,b){if(g.xI(i06,b))return!0;var h=C.JT[b];return h!==void 0?(C.JT[b]=!0,!h):!1}; +rXl=function(C){var b=C.Df.toString(10).padStart(2,"0");b=""+C.ob+b;C.Df<99&&C.Df++;return b}; +uTl=function(){this.j={};var C=IV();rh(this,C,document);var b=JXS();try{if("1"==b){for(var h=C.parent;h!=C.top;h=h.parent)rh(this,h,h.document);rh(this,C.top,C.top.document)}}catch(N){}}; +JXS=function(){var C=document.documentElement;try{if(!Gb(IV().top))return"2";var b=[],h=IV(C.ownerDocument);for(C=h;C!=h.top;C=C.parent)if(C.frameElement)b.push(C.frameElement);else break;return b&&b.length!=0?"1":"0"}catch(N){return"2"}}; +rh=function(C,b,h){CT(h,"mousedown",function(){return RhU(C)},301); +CT(b,"scroll",function(){return Q3x(C)},302); +CT(h,"touchmove",function(){return U4c(C)},303); +CT(h,"mousemove",function(){return XuH(C)},304); +CT(h,"keydown",function(){return KfU(C)},305)}; +RhU=function(C){g.Se(C.j,function(b){b.N>1E5||++b.N})}; +Q3x=function(C){g.Se(C.j,function(b){b.j>1E5||++b.j})}; +U4c=function(C){g.Se(C.j,function(b){b.j>1E5||++b.j})}; +KfU=function(C){g.Se(C.j,function(b){b.K>1E5||++b.K})}; +XuH=function(C){g.Se(C.j,function(b){b.X>1E5||++b.X})}; +s3W=function(){this.j=[];this.K=[]}; +iA=function(C,b){return g.B$(C.j,function(h){return h.Wi==b})}; +O0l=function(C,b){return b?g.B$(C.j,function(h){return h.H$.BO==b}):null}; +vkl=function(C,b){return g.B$(C.K,function(h){return h.nT()==2&&h.Wi==b})}; +uA=function(){var C=JH;return C.j.length==0?C.K:C.K.length==0?C.j:g.hj(C.K,C.j)}; +D4l=function(C,b){C=b.nT()==1?C.j:C.K;var h=Te(C,function(N){return N==b}); +return h!=-1?(C.splice(h,1),b.iF&&b.iF.unobserve(),b.dispose(),!0):!1}; +d4K=function(C){var b=JH;if(D4l(b,C)){switch(C.nT()){case 0:var h=function(){return null}; +case 2:h=function(){return vkl(b,C.Wi)}; +break;case 1:h=function(){return iA(b,C.Wi)}}for(var N=h();N;N=h())D4l(b,N)}}; +WfS=function(C){var b=JH;C=g.er(C,function(h){return!O0l(b,h.H$.BO)}); +b.j.push.apply(b.j,g.M(C))}; +EkW=function(C){var b=[];g.oI(C,function(h){i3(JH.j,function(N){return N.H$.BO===h.H$.BO&&N.Wi===h.Wi})||(JH.j.push(h),b.push(h))})}; +RO=function(){this.j=this.K=null}; +nko=function(C,b){function h(N,p){b(N,p)} +if(C.K==null)return!1;C.j=g.B$(C.K,function(N){return N!=null&&N.n3()}); +C.j&&(C.j.init(h)?rFW(C.j.j):b(C.j.j.Ox(),C.j));return C.j!=null}; +Q1=function(C){C=tBo(C);Oo.call(this,C.length?C[C.length-1]:new Uo(Yu,0));this.N=C;this.K=null}; +tBo=function(C){if(!C.length)return[];C=(0,g.er)(C,function(h){return h!=null&&h.VS()}); +for(var b=1;bh.time?b:h},C[0])}; +sU=function(C){C=C===void 0?Yu:C;Oo.call(this,new Uo(C,2))}; +OU=function(){var C=x4H();Uo.call(this,Yu.top,C,"geo")}; +x4H=function(){uP();var C=JV();return C.N||C.K?0:2}; +wuc=function(){}; +v_=function(){this.done=!1;this.j={XY:0,H0:0,wjD:0,SB:0,r7:-1,Te:0,ze:0,VE:0,qqE:0};this.G=null;this.W=!1;this.N=null;this.J=0;this.K=new Qx(this)}; +dh=function(){var C=DR;C.W||(C.W=!0,CPl(C,function(){return C.X.apply(C,g.M(g.ro.apply(0,arguments)))}),C.X())}; +b9_=function(){Ag(wuc);var C=Ag(RO);C.j!=null&&C.j.j?rFW(C.j.j):JV().update(Yu)}; +W_=function(C,b,h){if(!C.done&&(C.K.cancel(),b.length!=0)){C.N=null;try{b9_();var N=n9();uP().G=N;if(Ag(RO).j!=null)for(var p=0;p=0?n9()-tg:-1,e=n9();p.j.r7==-1&&(c=e);var L=JV(),Z=uP(),Y=cb(Z.aV),a=uA();try{if(a.length>0){var l=L.j;l&&(Y.bs=[wg(l),l.getHeight()]);var F=L.G;F&&(Y.ps=[F.width,F.height]);Yu.screen&&(Y.scs=[Yu.screen.width,Yu.screen.height])}else Y.url=encodeURIComponent(Yu.location.href.substring(0,512)),P.referrer&&(Y.referrer=encodeURIComponent(P.referrer.substring(0,512))); +Y.tt=c;Y.pt=tg;Y.bin=Z.K;Yu.google_osd_load_pub_page_exp!==void 0&&(Y.olpp=Yu.google_osd_load_pub_page_exp);Y.deb=[1,p.j.XY,p.j.H0,p.j.SB,p.j.r7,0,p.K.K,p.j.Te,p.j.ze,p.j.VE,p.j.qqE,-1].join(";");Y.tvt=Ngl(p,e);L.K&&(Y.inapp=1);if(Yu!==null&&Yu!=Yu.top){a.length>0&&(Y.iframe_loc=encodeURIComponent(Yu.location.href.substring(0,512)));var G=L.J;Y.is=[wg(G),G.getHeight()]}}catch(V){Y.error=1}DR.N=Y}l=g.J8(DR.N);F=uP().j;jf(F.N,"prf")==1?(G=new iP,p=F.j,P=0,p.j>-1&&(P=p.N.j.now()-p.j),G=Bv(G,1,jH(p.X+ +P),0),p=F.j,G=Bv(G,5,LL(p.j>-1?p.K+1:p.K),0),G=Bv(G,2,zx(F.K.j.N()),"0"),G=Bv(G,3,zx(F.K.j.K()),"0"),F=Bv(G,4,zx(F.K.j.j()),"0"),G={},F=(G.pf=g.$s(F.j()),G)):F={};g.RV(l,F);g.RV(b,N,h,l,C())}])}; +PPx=function(){var C=pbU||Yu;if(!C)return"";var b=[];if(!C.location||!C.location.href)return"";b.push("url="+encodeURIComponent(C.location.href.substring(0,512)));C.document&&C.document.referrer&&b.push("referrer="+encodeURIComponent(C.document.referrer.substring(0,512)));return b.join("&")}; +EU=function(){var C="youtube.player.web_20250211_01_RC00".match(/_(\d{8})_RC\d+$/)||"youtube.player.web_20250211_01_RC00".match(/_(\d{8})_\d+_\d+$/)||"youtube.player.web_20250211_01_RC00".match(/_(\d{8})_\d+\.\d+$/)||"youtube.player.web_20250211_01_RC00".match(/_(\d{8})_\d+_RC\d+$/),b;if(((b=C)==null?void 0:b.length)==2)return C[1];C="youtube.player.web_20250211_01_RC00".match(/.*_(\d{2})\.(\d{4})\.\d+_RC\d+$/);var h;return((h=C)==null?void 0:h.length)==3?"20"+C[1]+C[2]:null}; +jWS=function(){return"av.default_js".includes("ima_html5_sdk")?{PK:"ima",Tu:null}:"av.default_js".includes("ima_native_sdk")?{PK:"nima",Tu:null}:"av.default_js".includes("admob-native-video-javascript")?{PK:"an",Tu:null}:"youtube.player.web_20250211_01_RC00".includes("cast_js_sdk")?{PK:"cast",Tu:EU()}:"youtube.player.web_20250211_01_RC00".includes("youtube.player.web")?{PK:"yw",Tu:EU()}:"youtube.player.web_20250211_01_RC00".includes("outstream_web_client")?{PK:"out",Tu:EU()}:"youtube.player.web_20250211_01_RC00".includes("drx_rewarded_web")? +{PK:"r",Tu:EU()}:"youtube.player.web_20250211_01_RC00".includes("gam_native_web_video")?{PK:"n",Tu:EU()}:"youtube.player.web_20250211_01_RC00".includes("admob_interstitial_video")?{PK:"int",Tu:EU()}:{PK:"j",Tu:null}}; +TW=function(C,b){var h={sv:"966"};nT!==null&&(h.v=nT);h.cb=cgK;h.nas=JH.j.length;h.msg=C;b!==void 0&&(C=kbW(b))&&(h.e=tH[C]);return h}; +B_=function(C){return Mp(C,"custom_metric_viewable")}; +kbW=function(C){var b=B_(C)?"custom_metric_viewable":C.toLowerCase();return A8(fT,function(h){return h==b})}; +eqx=function(){this.j=void 0;this.K=!1;this.N=0;this.X=-1;this.G="tos"}; +Y4l=function(C){try{var b=C.split(",");return b.length>g.qe(LIl).length?null:f9(b,function(h,N){N=N.toLowerCase().split("=");if(N.length!=2||Z9S[N[0]]===void 0||!Z9S[N[0]](N[1]))throw Error("Entry ("+N[0]+", "+N[1]+") is invalid.");h[N[0]]=N[1];return h},{})}catch(h){return null}}; +atW=function(C,b){if(C.j==void 0)return 0;switch(C.G){case "mtos":return C.K?Bc(b.j,C.j):Bc(b.K,C.j);case "tos":return C.K?TV(b.j,C.j):TV(b.K,C.j)}return 0}; +IO=function(C,b,h,N){oO.call(this,b,N);this.J=C;this.L=h}; +xS=function(){}; +wh=function(C){oO.call(this,"fully_viewable_audible_half_duration_impression",C)}; +CU=function(C){this.j=C}; +bp=function(C,b){oO.call(this,C,b)}; +h5=function(C){FF.call(this,"measurable_impression",C)}; +Nv=function(){CU.apply(this,arguments)}; +gl=function(C,b,h){$S.call(this,C,b,h)}; +pU=function(C){C=C===void 0?Yu:C;Oo.call(this,new Uo(C,2))}; +PD=function(C,b,h){$S.call(this,C,b,h)}; +cD=function(C){C=C===void 0?Yu:C;Oo.call(this,new Uo(C,2))}; +kn=function(){Uo.call(this,Yu,2,"mraid");this.Qz=0;this.N2=this.nO=!1;this.J=null;this.K=lI6(this.N);this.X.j=new xu(0,0,0,0);this.Df=!1}; +ea=function(C,b,h){C.Sc("addEventListener",b,h)}; +Gbl=function(C){uP().X=!!C.Sc("isViewable");ea(C,"viewableChange",lt6);C.Sc("getState")==="loading"?ea(C,"ready",ou_):FIx(C)}; +FIx=function(C){typeof C.K.vK.AFMA_LIDAR==="string"?(C.nO=!0,S4l(C)):(C.K.compatibility=3,C.J="nc",C.wi("w"))}; +S4l=function(C){C.N2=!1;var b=jf(uP().aV,"rmmt")==1,h=!!C.Sc("isViewable");(b?!h:1)&&rg().setTimeout(Wb(524,function(){C.N2||($_U(C),E4(540,Error()),C.J="mt",C.wi("w"))}),500); +zql(C);ea(C,C.K.vK.AFMA_LIDAR,H9l)}; +zql=function(C){var b=jf(uP().aV,"sneio")==1,h=C.K.vK.AFMA_LIDAR_EXP_1!==void 0,N=C.K.vK.AFMA_LIDAR_EXP_2!==void 0;(b=b&&N)&&(C.K.vK.AFMA_LIDAR_EXP_2=!0);h&&(C.K.vK.AFMA_LIDAR_EXP_1=!b)}; +$_U=function(C){C.Sc("removeEventListener",C.K.vK.AFMA_LIDAR,H9l);C.nO=!1}; +Vfl=function(C,b){if(C.Sc("getState")==="loading")return new g.oV(-1,-1);b=C.Sc(b);if(!b)return new g.oV(-1,-1);C=parseInt(b.width,10);b=parseInt(b.height,10);return isNaN(C)||isNaN(b)?new g.oV(-1,-1):new g.oV(C,b)}; +ou_=function(){try{var C=Ag(kn);C.Sc("removeEventListener","ready",ou_);FIx(C)}catch(b){E4(541,b)}}; +H9l=function(C,b){try{var h=Ag(kn);h.N2=!0;var N=C?new xu(C.y,C.x+C.width,C.y+C.height,C.x):new xu(0,0,0,0);var p=n9(),P=Ru();var c=new hV(p,P,h);c.j=N;c.volume=b;h.g_(c)}catch(e){E4(542,e)}}; +lt6=function(C){var b=uP(),h=Ag(kn);C&&!b.X&&(b.X=!0,h.Df=!0,h.J&&h.wi("w",!0))}; +LU=function(){this.isInitialized=!1;this.j=this.K=null;var C={};this.J=(C.start=this.y4h,C.firstquartile=this.afO,C.midpoint=this.HOO,C.thirdquartile=this.Mpf,C.complete=this.ohi,C.error=this.GiD,C.pause=this.Pa,C.resume=this.S3,C.skip=this.Qff,C.viewable_impression=this.RR,C.mute=this.al,C.unmute=this.al,C.fullscreen=this.D2E,C.exitfullscreen=this.EhD,C.fully_viewable_audible_half_duration_impression=this.RR,C.measurable_impression=this.RR,C.abandon=this.Pa,C.engagedview=this.RR,C.impression=this.RR, +C.creativeview=this.RR,C.progress=this.al,C.custom_metric_viewable=this.RR,C.bufferstart=this.Pa,C.bufferfinish=this.S3,C.audio_measurable=this.RR,C.audio_audible=this.RR,C);C={};this.L=(C.overlay_resize=this.J4O,C.abandon=this.qR,C.close=this.qR,C.collapse=this.qR,C.overlay_unmeasurable_impression=function(b){return AH(b,"overlay_unmeasurable_impression",Ru())},C.overlay_viewable_immediate_impression=function(b){return AH(b,"overlay_viewable_immediate_impression",Ru())},C.overlay_unviewable_impression= +function(b){return AH(b,"overlay_unviewable_impression",Ru())},C.overlay_viewable_end_of_session_impression=function(b){return AH(b,"overlay_viewable_end_of_session_impression",Ru())},C); +uP().K=3;MfW(this);this.N=null}; +Zb=function(C,b,h,N){C=C.xD(null,N,!0,b);C.X=h;WfS([C]);return C}; +q4o=function(C,b,h){oEl(b);var N=C.j;g.oI(b,function(p){var P=g.q_(p.criteria,function(c){var e=Y4l(c);if(e==null)c=null;else if(c=new eqx,e.visible!=null&&(c.j=e.visible/100),e.audible!=null&&(c.K=e.audible==1),e.time!=null){var L=e.timetype=="mtos"?"mtos":"tos",Z=OWW(e.time,"%")?"%":"ms";e=parseInt(e.time,10);Z=="%"&&(e/=100);c.setTime(e,Z,L)}return c}); +i3(P,function(c){return c==null})||zhl(h,new IO(p.id,p.event,P,N))})}; +m_l=function(){var C=[],b=uP();C.push(Ag(OU));jf(b.aV,"mvp_lv")&&C.push(Ag(kn));b=[new pU,new cD];b.push(new Q1(C));b.push(new sU(Yu));return b}; +ft1=function(C){if(!C.isInitialized){C.isInitialized=!0;try{var b=n9(),h=uP(),N=JV();tg=b;h.N=79463069;C.K!=="o"&&(pbU=ibV(Yu));if(DR1()){DR.j.H0=0;DR.j.r7=n9()-b;var p=m_l(),P=Ag(RO);P.K=p;nko(P,function(){Yn()})?DR.done||(hqK(),Xo(P.j.j,C),dh()):N.N?Yn():dh()}else ab=!0}catch(c){throw JH.reset(),c; +}}}; +ob=function(C){DR.K.cancel();lp=C;DR.done=!0}; +Fp=function(C){if(C.K)return C.K;var b=Ag(RO).j;if(b)switch(b.getName()){case "nis":C.K="n";break;case "gsv":C.K="m"}C.K||(C.K="h");return C.K}; +Gq=function(C,b,h){if(C.j==null)return b.J1|=4,!1;C=Agl(C.j,h,b);b.J1|=C;return C==0}; +Yn=function(){var C=[new sU(Yu)],b=Ag(RO);b.K=C;nko(b,function(){ob("i")})?DR.done||(hqK(),dh()):ob("i")}; +ygl=function(C,b){if(!C.G$){var h=AH(C,"start",Ru());h=C.z1.j(h).j;var N={id:"lidarv"};N.r=b;N.sv="966";nT!==null&&(N.v=nT);sq(h,function(p,P){return N[p]=p=="mtos"||p=="tos"?P:encodeURIComponent(P)}); +b=PPx();sq(b,function(p,P){return N[p]=encodeURIComponent(P)}); +b="//pagead2.googlesyndication.com/pagead/gen_204?"+da(Dv(new vc,N));v3l(b);C.G$=!0}}; +Sa=function(C,b,h){W_(DR,[C],!Ru());q9x(C,h);h!=4&&MBl(C.nO,h,C.bM);return AH(C,b,Ru())}; +MfW=function(C){gul(function(){var b=rgV();C.K!=null&&(b.sdk=C.K);var h=Ag(RO);h.j!=null&&(b.avms=h.j.getName());return b})}; +i9c=function(C,b,h,N){var p=O0l(JH,h);p!==null&&p.Wi!==b&&(C.ew(p),p=null);p||(b=C.xD(h,n9(),!1,b),JH.K.length==0&&(uP().N=79463069),EkW([b]),p=b,p.X=Fp(C),N&&(p.m6=N));return p}; +Jgl=function(C,b){var h=C[b];h!==void 0&&h>0&&(C[b]=Math.floor(h*1E3))}; +rgV=function(){var C=JV(),b={},h={},N={};return Object.assign({},(b.sv="966",b),nT!==null&&(h.v=nT,h),(N["if"]=C.N?"1":"0",N.nas=String(JH.j.length),N))}; +$n=function(C){oO.call(this,"audio_audible",C)}; +zq=function(C){FF.call(this,"audio_measurable",C)}; +HD=function(){CU.apply(this,arguments)}; +Vw=function(){}; +uVo=function(C){this.j=C}; +Agl=function(C,b,h){C=C.K();if(typeof C==="function"){var N={};var p={};N=Object.assign({},nT!==null&&(N.v=nT,N),(p.sv="966",p.cb=cgK,p.e=Rq_(b),p));p=AH(h,b,Ru());g.RV(N,p);h.rX[b]=p;N=h.nT()==2?OnW(N).join("&"):h.z1.j(N).j;try{return C(h.Wi,N,b),0}catch(P){return 2}}else return 1}; +Rq_=function(C){var b=B_(C)?"custom_metric_viewable":C;C=A8(fT,function(h){return h==b}); +return tH[C]}; +Mv=function(){LU.call(this);this.W=null;this.G=!1;this.X="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; +QWU=function(C,b,h){h=h.opt_configurable_tracking_events;C.j!=null&&Array.isArray(h)&&q4o(C,h,b)}; +U_c=function(C,b,h){var N=iA(JH,b);N||(N=h.opt_nativeTime||-1,N=Zb(C,b,Fp(C),N),h.opt_osdId&&(N.m6=h.opt_osdId));return N}; +XbK=function(C,b,h){var N=iA(JH,b);N||(N=Zb(C,b,"n",h.opt_nativeTime||-1));return N}; +KIx=function(C,b){var h=iA(JH,b);h||(h=Zb(C,b,"h",-1));return h}; +sW6=function(C){uP();switch(Fp(C)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; +D_l=function(C,b,h,N){h=h===void 0?{}:h;var p={};g.RV(p,{opt_adElement:void 0,opt_fullscreen:void 0},h);var P=C.Ub(b,h);h=P?P.z1:C.Qe();if(p.opt_bounds)return h.j(TW("ol",N));if(N!==void 0)if(kbW(N)!==void 0)if(ab)C=TW("ue",N);else if(ft1(C),lp=="i")C=TW("i",N),C["if"]=0;else if(b=C.Ub(b,p)){b:{lp=="i"&&(b.zS=!0);P=p.opt_fullscreen;P!==void 0&&gh(b,!!P);var c;if(P=!JV().K)(P=fd(g.iC(),"CrKey")&&!(fd(g.iC(),"CrKey")&&fd(g.iC(),"SmartSpeaker"))||fd(g.iC(),"PlayStation")||fd(g.iC(),"Roku")||mB6()||fd(g.iC(), +"Xbox"))||(P=g.iC(),P=fd(P,"AppleTV")||fd(P,"Apple TV")||fd(P,"CFNetwork")||fd(P,"tvOS")),P||(P=g.iC(),P=fd(P,"sdk_google_atv_x86")||fd(P,"Android TV")),P=!P;P&&(rg(),P=oW(u3)===0);if(c=P){switch(b.nT()){case 1:ygl(b,"pv");break;case 2:C.Wu(b)}ob("pv")}P=N.toLowerCase();if(c=!c)c=jf(uP().aV,"ssmol")&&P==="loaded"?!1:g.xI(O9H,P);if(c&&b.Ys==0){lp!="i"&&(DR.done=!1);c=p!==void 0?p.opt_nativeTime:void 0;IW=c=typeof c==="number"?c:n9();b.pu=!0;var e=Ru();b.Ys=1;b.JT={};b.JT.start=!1;b.JT.firstquartile= +!1;b.JT.midpoint=!1;b.JT.thirdquartile=!1;b.JT.complete=!1;b.JT.resume=!1;b.JT.pause=!1;b.JT.skip=!1;b.JT.mute=!1;b.JT.unmute=!1;b.JT.viewable_impression=!1;b.JT.measurable_impression=!1;b.JT.fully_viewable_audible_half_duration_impression=!1;b.JT.fullscreen=!1;b.JT.exitfullscreen=!1;b.SH=0;e||(b.i5().L=c);W_(DR,[b],!e)}(c=b.LN[P])&&ZR(b.I2,c);jf(uP().aV,"fmd")||g.xI(vuU,P)&&b.N$&&b.N$.K(b,null);switch(b.nT()){case 1:var L=B_(P)?C.J.custom_metric_viewable:C.J[P];break;case 2:L=C.L[P]}if(L&&(N=L.call(C, +b,p,N),jf(uP().aV,"fmd")&&g.xI(vuU,P)&&b.N$&&b.N$.K(b,null),N!==void 0)){p=TW(void 0,P);g.RV(p,N);N=p;break b}N=void 0}b.Ys==3&&C.ew(b);C=N}else C=TW("nf",N);else C=void 0;else ab?C=TW("ue"):P?(C=TW(),g.RV(C,fH6(P,!0,!1,!1))):C=TW("nf");return typeof C==="string"?h.j():h.j(C)}; +d_U=function(C,b){b&&(C.X=b)}; +WIU=function(C){var b={};return b.viewability=C.j,b.googleViewability=C.K,b}; +EuW=function(C,b,h){h=h===void 0?{}:h;C=D_l(Ag(Mv),b,h,C);return WIU(C)}; +qv=function(C){var b=g.ro.apply(1,arguments).filter(function(N){return N}).join("&"); +if(!b)return C;var h=C.match(/[?&]adurl=/);return h?C.slice(0,h.index+1)+b+"&"+C.slice(h.index+1):C+(C.indexOf("?")===-1?"?":"&")+b}; +tfW=function(C){var b=C.url;C=C.SYX;this.j=b;this.J=C;C=/[?&]dsh=1(&|$)/.test(b);this.G=!C&&/[?&]ae=1(&|$)/.test(b);this.W=!C&&/[?&]ae=2(&|$)/.test(b);if((this.K=/[?&]adurl=([^&]*)/.exec(b))&&this.K[1]){try{var h=decodeURIComponent(this.K[1])}catch(N){h=null}this.N=h}this.X=(new Date).getTime()-nux}; +Tgl=function(C){C=C.J;if(!C)return"";var b="";C.platform&&(b+="&uap="+encodeURIComponent(C.platform));C.platformVersion&&(b+="&uapv="+encodeURIComponent(C.platformVersion));C.uaFullVersion&&(b+="&uafv="+encodeURIComponent(C.uaFullVersion));C.architecture&&(b+="&uaa="+encodeURIComponent(C.architecture));C.model&&(b+="&uam="+encodeURIComponent(C.model));C.bitness&&(b+="&uab="+encodeURIComponent(C.bitness));C.fullVersionList&&(b+="&uafvl="+encodeURIComponent(C.fullVersionList.map(function(h){return encodeURIComponent(h.brand)+ +";"+encodeURIComponent(h.version)}).join("|"))); +typeof C.wow64!=="undefined"&&(b+="&uaw="+Number(C.wow64));return b.substring(1)}; +ItW=function(C,b,h,N,p){var P=window,c=h?"//pagead2.googlesyndication.com/bg/"+xT(h)+".js":"";h=P.document;var e={};b&&(e._scs_=b);e._bgu_=c;e._bgp_=N;e._li_="v_h.3.0.0.0";p&&(e._upb_=p);(b=P.GoogleTyFxhY)&&typeof b.push=="function"||(b=P.GoogleTyFxhY=[]);b.push(e);b=Oi(h).createElement("SCRIPT");b.type="text/javascript";b.async=!0;C=hxl(Bgo,xT(C)+".js");g.d2(b,C);(P=(P.GoogleTyFxhYEET||{})[b.src])?P():h.getElementsByTagName("head")[0].appendChild(b)}; +x_l=function(){try{var C,b;return!!((C=window)==null?0:(b=C.top)==null?0:b.location.href)&&!1}catch(h){return!0}}; +ip=function(){var C=wbS();C=C===void 0?"bevasrsg":C;return new Promise(function(b){var h=window===window.top?window:x_l()?window:window.top,N=h[C],p;((p=N)==null?0:p.bevasrs)?b(new A5(N.bevasrs)):(N||(N={},N=(N.nqfbel=[],N),h[C]=N),N.nqfbel.push(function(P){b(new A5(P))}))})}; +C3o=function(C){var b={c:C.Kf,e:C.bO,mc:C.Hs,me:C.J2};C.Ni&&(b.co={c:C.Ni.jr,a:C.Ni.Ex,s:C.Ni.x5});return b}; +J5=function(C){g.O.call(this);this.wpc=C}; +A5=function(C){g.O.call(this);var b=this;this.eh=C;this.N="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.j=void 0;this.KP=this.eh.p;this.X=this.zs.bind(this);this.addOnDisposeCallback(function(){return void bVW(b)})}; +hMW=function(C){var b;return g.R(function(h){if(h.j==1){if(!C.eh.wpc)throw new P$(30,"NWA");return C.K?h.return(C.K):g.J(h,C.eh.wpc(),2)}b=h.K;C.K=new J5(b);return h.return(C.K)})}; +bVW=function(C){C.j!==void 0&&(C.N.forEach(function(b){var h;(h=C.j)==null||h.removeEventListener(b,C.X)}),C.j=void 0)}; +pco=function(C){if(g.qp(g.w2(C)))return!1;if(C.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")>=0)return!0;try{var b=new g.L0(C)}catch(h){return g.B$(Na6,function(N){return C.search(N)>0})!=null}return b.W.match(gXV)?!0:g.B$(Na6,function(h){return C.match(h)!=null})!=null}; +g.up=function(C,b){return C.replace(P3x,function(h,N){try{var p=g.rk(b,N);if(p==null||p.toString()==null)return h;p=p.toString();if(p==""||!g.qp(g.w2(p)))return encodeURIComponent(p).replace(/%2C/g,",")}catch(P){}return h})}; +Rb=function(C,b){return Object.is(C,b)}; +Ue=function(C){var b=Qw;Qw=C;return b}; +juS=function(C){if(C.SL!==void 0){var b=Xp;Xp=!0;try{for(var h=g.z(C.SL),N=h.next();!N.done;N=h.next()){var p=N.value;p.rh||(C=void 0,p.rh=!0,juS(p),(C=p.Hq)==null||C.call(p,p))}}finally{Xp=b}}}; +cVo=function(){var C;return((C=Qw)==null?void 0:C.sQ)!==!1}; +kVK=function(C){C&&(C.Rq=0);return Ue(C)}; +eMo=function(C,b){Ue(b);if(C&&C.H2!==void 0&&C.gf!==void 0&&C.vP!==void 0){if(KU(C))for(b=C.Rq;bC.Rq;)C.H2.pop(),C.vP.pop(),C.gf.pop()}}; +ZVl=function(C,b,h){Ldc(C);if(C.SL.length===0&&C.H2!==void 0)for(var N=0;N0}; +Yol=function(C){C.H2!=null||(C.H2=[]);C.gf!=null||(C.gf=[]);C.vP!=null||(C.vP=[])}; +Ldc=function(C){C.SL!=null||(C.SL=[]);C.oX!=null||(C.oX=[])}; +lvl=function(C){function b(){if(Xp)throw Error("");if(Qw!==null){var N=Qw.Rq++;Yol(Qw);N0?" "+b:b))}}; +g.kb=function(C,b){if(C.classList)Array.prototype.forEach.call(b,function(p){g.c4(C,p)}); +else{var h={};Array.prototype.forEach.call(p2(C),function(p){h[p]=!0}); +Array.prototype.forEach.call(b,function(p){h[p]=!0}); +b="";for(var N in h)b+=b.length>0?" "+N:N;g.P4(C,b)}}; +g.e6=function(C,b){C.classList?C.classList.remove(b):g.j6(C,b)&&g.P4(C,Array.prototype.filter.call(p2(C),function(h){return h!=b}).join(" "))}; +g.L2=function(C,b){C.classList?Array.prototype.forEach.call(b,function(h){g.e6(C,h)}):g.P4(C,Array.prototype.filter.call(p2(C),function(h){return!g.xI(b,h)}).join(" "))}; +g.Zo=function(C,b,h){h?g.c4(C,b):g.e6(C,b)}; +iV_=function(C,b){var h=!g.j6(C,b);g.Zo(C,b,h)}; +g.Yb=function(){g.wQ.call(this);this.j=0;this.endTime=this.startTime=null}; +JVl=function(C,b){Array.isArray(b)||(b=[b]);b=b.map(function(h){return typeof h==="string"?h:h.property+" "+h.duration+"s "+h.timing+" "+h.delay+"s"}); +g.Zv(C,"transition",b.join(","))}; +a2=function(C,b,h,N,p){g.Yb.call(this);this.K=C;this.G=b;this.W=h;this.X=N;this.J=Array.isArray(p)?p:[p]}; +uo1=function(C,b,h,N){return new a2(C,b,{opacity:h},{opacity:N},{property:"opacity",duration:b,timing:"ease-in",delay:0})}; +QuH=function(C){C=Ao(C);if(C=="")return null;var b=String(C.slice(0,4)).toLowerCase();if(("url("1||C&&C.split(")"),null;if(C.indexOf("(")>0){if(/"|'/.test(C))return null;b=/([\-\w]+)\(/g;for(var h;h=b.exec(C);)if(!(h[1].toLowerCase()in RM6))return null}return C}; +le=function(C,b){C=g.sl[C];return C&&C.prototype?(b=Object.getOwnPropertyDescriptor(C.prototype,b))&&b.get||null:null}; +UTl=function(C){var b=g.sl.CSSStyleDeclaration;return b&&b.prototype&&b.prototype[C]||null}; +XcU=function(C,b,h,N){if(C)return C.apply(b,N);if(g.o2&&document.documentMode<10){if(!b[h].call)throw Error("IE Clobbering detected");}else if(typeof b[h]!="function")throw Error("Clobbering detected");return b[h].apply(b,N)}; +DT_=function(C){if(!C)return"";var b=document.createElement("div").style;Kd_(C).forEach(function(h){var N=g.BE&&h in sul?h:h.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");Mp(N,"--")||Mp(N,"var")||(h=XcU(OVc,C,C.getPropertyValue?"getPropertyValue":"getAttribute",[h])||"",h=QuH(h),h!=null&&XcU(vXH,b,b.setProperty?"setProperty":"setAttribute",[N,h]))}); +return b.cssText||""}; +Kd_=function(C){g.tl(C)?C=g.NI(C):(C=g.qe(C),g.Cs(C,"cssText"));return C}; +g.Gj=function(C){var b,h=b=0,N=!1;C=C.split(dTc);for(var p=0;p.4?-1:1;return(b==0?null:b)==-1?"rtl":"ltr"}; +g.H4=function(C){if(C instanceof S6||C instanceof $b||C instanceof zj)return C;if(typeof C.next=="function")return new S6(function(){return C}); +if(typeof C[Symbol.iterator]=="function")return new S6(function(){return C[Symbol.iterator]()}); +if(typeof C.x7=="function")return new S6(function(){return C.x7()}); +throw Error("Not an iterator or iterable.");}; +S6=function(C){this.K=C}; +$b=function(C){this.K=C}; +zj=function(C){S6.call(this,function(){return C}); +this.N=C}; +VE=function(C,b,h,N,p,P,c,e){this.j=C;this.J=b;this.N=h;this.G=N;this.X=p;this.W=P;this.K=c;this.L=e}; +MM=function(C,b){if(b==0)return C.j;if(b==1)return C.K;var h=LR(C.j,C.N,b),N=LR(C.N,C.X,b);C=LR(C.X,C.K,b);h=LR(h,N,b);N=LR(N,C,b);return LR(h,N,b)}; +tux=function(C,b){var h=(b-C.j)/(C.K-C.j);if(h<=0)return 0;if(h>=1)return 1;for(var N=0,p=1,P=0,c=0;c<8;c++){P=MM(C,h);var e=(MM(C,h+1E-6)-P)/1E-6;if(Math.abs(P-b)<1E-6)return h;if(Math.abs(e)<1E-6)break;else P1E-6&&c<8;c++)P=0}; +g.AZ=function(C){g.O.call(this);this.W=1;this.N=[];this.X=0;this.j=[];this.K={};this.J=!!C}; +BaW=function(C,b,h){g.eI(function(){C.apply(b,h)})}; +g.yE=function(C){this.j=C}; +rM=function(C){this.j=C}; +IvK=function(C){this.data=C}; +xTo=function(C){return C===void 0||C instanceof IvK?C:new IvK(C)}; +ie=function(C){this.j=C}; +g.wcl=function(C){var b=C.creation;C=C.expiration;return!!C&&Cg.bC()}; +g.JZ=function(C){this.j=C}; +CA6=function(){}; +ue=function(){}; +R2=function(C){this.j=C;this.K=null}; +QE=function(C){if(C.j==null)throw Error("Storage mechanism: Storage unavailable");var b;((b=C.K)!=null?b:C.isAvailable())||ze(Error("Storage mechanism: Storage unavailable"))}; +Uj=function(){var C=null;try{C=g.sl.localStorage||null}catch(b){}R2.call(this,C)}; +bTl=function(){var C=null;try{C=g.sl.sessionStorage||null}catch(b){}R2.call(this,C)}; +XY=function(C,b){this.K=C;this.j=b+"::"}; +g.K2=function(C){var b=new Uj;return b.isAvailable()?C?new XY(b,C):b:null}; +sj=function(C,b){this.j=C;this.K=b}; +Oj=function(C){this.j=[];if(C)a:{if(C instanceof Oj){var b=C.Yo();C=C.hj();if(this.j.length<=0){for(var h=this.j,N=0;N>>6:(P<65536?e[h++]=224|P>>>12:(e[h++]=240|P>>>18,e[h++]=128|P>>>12&63),e[h++]=128|P>>> +6&63),e[h++]=128|P&63);return e}; +W4=function(C){for(var b=C.length;--b>=0;)C[b]=0}; +Ej=function(C,b,h,N,p){this.QT=C;this.vk=b;this.IK=h;this.lB=N;this.aJX=p;this.Gw=C&&C.length}; +n2=function(C,b){this.Y4=C;this.X$=0;this.PO=b}; +tZ=function(C,b){C.cL[C.pending++]=b&255;C.cL[C.pending++]=b>>>8&255}; +Tj=function(C,b,h){C.hT>16-h?(C.h6|=b<>16-C.hT,C.hT+=h-16):(C.h6|=b<>>=1,h<<=1;while(--b>0);return h>>>1}; +gSl=function(C,b,h){var N=Array(16),p=0,P;for(P=1;P<=15;P++)N[P]=p=p+h[P-1]<<1;for(h=0;h<=b;h++)p=C[h*2+1],p!==0&&(C[h*2]=Nhx(N[p]++,p))}; +p_o=function(C){var b;for(b=0;b<286;b++)C.yQ[b*2]=0;for(b=0;b<30;b++)C.o1[b*2]=0;for(b=0;b<19;b++)C.IF[b*2]=0;C.yQ[512]=1;C.o_=C.Rl=0;C.Y7=C.matches=0}; +PAU=function(C){C.hT>8?tZ(C,C.h6):C.hT>0&&(C.cL[C.pending++]=C.h6);C.h6=0;C.hT=0}; +jOl=function(C,b,h){PAU(C);tZ(C,h);tZ(C,~h);dM.oY(C.cL,C.window,b,h,C.pending);C.pending+=h}; +cHH=function(C,b,h,N){var p=b*2,P=h*2;return C[p]>>7)];B4(C,c,h);e=hh[c];e!==0&&(p-=NJ[c],Tj(C,p,e))}}while(N>1;c>=1;c--)I2(C,h,c);L=P;do c=C.gs[1],C.gs[1]=C.gs[C.z2--],I2(C,h,1),N=C.gs[1],C.gs[--C.Gp]=c,C.gs[--C.Gp]=N,h[L*2]=h[c*2]+h[N*2],C.depth[L]=(C.depth[c]>=C.depth[N]?C.depth[c]:C.depth[N])+1,h[c*2+1]=h[N*2+1]=L,C.gs[1]=L++,I2(C,h,1);while(C.z2>= +2);C.gs[--C.Gp]=C.gs[1];c=b.Y4;L=b.X$;N=b.PO.QT;p=b.PO.Gw;P=b.PO.vk;var Z=b.PO.IK,Y=b.PO.aJX,a,l=0;for(a=0;a<=15;a++)C.Jc[a]=0;c[C.gs[C.Gp]*2+1]=0;for(b=C.Gp+1;b<573;b++){var F=C.gs[b];a=c[c[F*2+1]*2+1]+1;a>Y&&(a=Y,l++);c[F*2+1]=a;if(!(F>L)){C.Jc[a]++;var G=0;F>=Z&&(G=P[F-Z]);var V=c[F*2];C.o_+=V*(a+G);p&&(C.Rl+=V*(N[F*2+1]+G))}}if(l!==0){do{for(a=Y-1;C.Jc[a]===0;)a--;C.Jc[a]--;C.Jc[a+1]+=2;C.Jc[Y]--;l-=2}while(l>0);for(a=Y;a!==0;a--)for(F=C.Jc[a];F!==0;)N=C.gs[--b],N>L||(c[N*2+1]!==a&&(C.o_+=(a- +c[N*2+1])*c[N*2],c[N*2+1]=a),F--)}gSl(h,e,C.Jc)}; +eel=function(C,b,h){var N,p=-1,P=b[1],c=0,e=7,L=4;P===0&&(e=138,L=3);b[(h+1)*2+1]=65535;for(N=0;N<=h;N++){var Z=P;P=b[(N+1)*2+1];++c>>=1)if(b&1&&C.yQ[h*2]!==0)return 0;if(C.yQ[18]!==0||C.yQ[20]!==0||C.yQ[26]!==0)return 1;for(h=32;h<256;h++)if(C.yQ[h*2]!==0)return 1;return 0}; +pe=function(C,b,h){C.cL[C.Qt+C.Y7*2]=b>>>8&255;C.cL[C.Qt+C.Y7*2+1]=b&255;C.cL[C.OA+C.Y7]=h&255;C.Y7++;b===0?C.yQ[h*2]++:(C.matches++,b--,C.yQ[(xb[h]+256+1)*2]++,C.o1[(b<256?bH[b]:bH[256+(b>>>7)])*2]++);return C.Y7===C.nx-1}; +js=function(C,b){C.msg=PC[b];return b}; +cC=function(C){for(var b=C.length;--b>=0;)C[b]=0}; +kt=function(C){var b=C.state,h=b.pending;h>C.ID&&(h=C.ID);h!==0&&(dM.oY(C.output,b.cL,b.eO,h,C.dF),C.dF+=h,b.eO+=h,C.YQ+=h,C.ID-=h,b.pending-=h,b.pending===0&&(b.eO=0))}; +ZO=function(C,b){var h=C.MZ>=0?C.MZ:-1,N=C.q8-C.MZ,p=0;if(C.level>0){C.g9.pC===2&&(C.g9.pC=ZTV(C));gW(C,C.MM);gW(C,C.TG);eel(C,C.yQ,C.MM.X$);eel(C,C.o1,C.TG.X$);gW(C,C.eV);for(p=18;p>=3&&C.IF[YUH[p]*2+1]===0;p--);C.o_+=3*(p+1)+5+5+4;var P=C.o_+3+7>>>3;var c=C.Rl+3+7>>>3;c<=P&&(P=c)}else P=c=N+5;if(N+4<=P&&h!==-1)Tj(C,b?1:0,3),jOl(C,h,N);else if(C.strategy===4||c===P)Tj(C,2+(b?1:0),3),kWx(C,es,Le);else{Tj(C,4+(b?1:0),3);h=C.MM.X$+1;N=C.TG.X$+1;p+=1;Tj(C,h-257,5);Tj(C,N-1,5);Tj(C,p-4,4);for(P=0;P>>8&255;C.cL[C.pending++]=b&255}; +aRS=function(C,b){var h=C.fg,N=C.q8,p=C.zC,P=C.e$,c=C.q8>C.Hi-262?C.q8-(C.Hi-262):0,e=C.window,L=C.Zn,Z=C.mp,Y=C.q8+258,a=e[N+p-1],l=e[N+p];C.zC>=C.Pw&&(h>>=2);P>C.T$&&(P=C.T$);do{var F=b;if(e[F+p]===l&&e[F+p-1]===a&&e[F]===e[N]&&e[++F]===e[N+1]){N+=2;for(F++;e[++N]===e[++F]&&e[++N]===e[++F]&&e[++N]===e[++F]&&e[++N]===e[++F]&&e[++N]===e[++F]&&e[++N]===e[++F]&&e[++N]===e[++F]&&e[++N]===e[++F]&&Np){C.KG=b;p=F;if(F>=P)break;a=e[N+p-1];l=e[N+p]}}}while((b=Z[b&L])>c&&--h!== +0);return p<=C.T$?p:C.T$}; +FZ=function(C){var b=C.Hi,h;do{var N=C.l0-C.T$-C.q8;if(C.q8>=b+(b-262)){dM.oY(C.window,C.window,b,b,0);C.KG-=b;C.q8-=b;C.MZ-=b;var p=h=C.jR;do{var P=C.head[--p];C.head[p]=P>=b?P-b:0}while(--h);p=h=b;do P=C.mp[--p],C.mp[p]=P>=b?P-b:0;while(--h);N+=b}if(C.g9.ri===0)break;p=C.g9;h=C.window;P=C.q8+C.T$;var c=p.ri;c>N&&(c=N);c===0?h=0:(p.ri-=c,dM.oY(h,p.input,p.tM,c,P),p.state.wrap===1?p.H7=lH(p.H7,h,c,P):p.state.wrap===2&&(p.H7=oo(p.H7,h,c,P)),p.tM+=c,p.Su+=c,h=c);C.T$+=h;if(C.T$+C.P6>=3)for(N=C.q8-C.P6, +C.zM=C.window[N],C.zM=(C.zM<=3&&(C.zM=(C.zM<=3)if(h=pe(C,C.q8-C.KG,C.WF-3),C.T$-=C.WF,C.WF<=C.R3&&C.T$>=3){C.WF--;do C.q8++,C.zM=(C.zM<=3&&(C.zM=(C.zM<4096)&&(C.WF=2));if(C.zC>=3&&C.WF<=C.zC){N=C.q8+C.T$-3;h=pe(C,C.q8-1-C.dE,C.zC-3);C.T$-=C.zC-1;C.zC-=2;do++C.q8<=N&&(C.zM=(C.zM<=3&&C.q8>0&&(N=C.q8-1,h=P[N],h===P[++N]&&h===P[++N]&&h===P[++N])){for(p=C.q8+258;h===P[++N]&&h===P[++N]&&h===P[++N]&&h===P[++N]&&h===P[++N]&&h===P[++N]&&h===P[++N]&&h===P[++N]&&NC.T$&&(C.WF=C.T$)}C.WF>=3?(h=pe(C,1,C.WF-3),C.T$-=C.WF,C.q8+=C.WF,C.WF=0):(h=pe(C,0,C.window[C.q8]),C.T$--,C.q8++);if(h&&(ZO(C,!1),C.g9.ID===0))return 1}C.P6=0;return b=== +4?(ZO(C,!0),C.g9.ID===0?3:4):C.Y7&&(ZO(C,!1),C.g9.ID===0)?1:2}; +oSK=function(C,b){for(var h;;){if(C.T$===0&&(FZ(C),C.T$===0)){if(b===0)return 1;break}C.WF=0;h=pe(C,0,C.window[C.q8]);C.T$--;C.q8++;if(h&&(ZO(C,!1),C.g9.ID===0))return 1}C.P6=0;return b===4?(ZO(C,!0),C.g9.ID===0?3:4):C.Y7&&(ZO(C,!1),C.g9.ID===0)?1:2}; +$t=function(C,b,h,N,p){this.VU=C;this.Egi=b;this.bJz=h;this.G$z=N;this.func=p}; +F8V=function(){this.g9=null;this.status=0;this.cL=null;this.wrap=this.pending=this.eO=this.k7=0;this.oL=null;this.FC=0;this.method=8;this.Pe=-1;this.Zn=this.n_=this.Hi=0;this.window=null;this.l0=0;this.head=this.mp=null;this.e$=this.Pw=this.strategy=this.level=this.R3=this.fg=this.zC=this.T$=this.KG=this.q8=this.Hh=this.dE=this.WF=this.MZ=this.P4=this.UF=this.EA=this.jR=this.zM=0;this.yQ=new dM.W4(1146);this.o1=new dM.W4(122);this.IF=new dM.W4(78);cC(this.yQ);cC(this.o1);cC(this.IF);this.eV=this.TG= +this.MM=null;this.Jc=new dM.W4(16);this.gs=new dM.W4(573);cC(this.gs);this.Gp=this.z2=0;this.depth=new dM.W4(573);cC(this.depth);this.hT=this.h6=this.P6=this.matches=this.Rl=this.o_=this.Qt=this.Y7=this.nx=this.OA=0}; +GW6=function(C,b){if(!C||!C.state||b>5||b<0)return C?js(C,-2):-2;var h=C.state;if(!C.output||!C.input&&C.ri!==0||h.status===666&&b!==4)return js(C,C.ID===0?-5:-2);h.g9=C;var N=h.Pe;h.Pe=b;if(h.status===42)if(h.wrap===2)C.H7=0,Yt(h,31),Yt(h,139),Yt(h,8),h.oL?(Yt(h,(h.oL.text?1:0)+(h.oL.kU?2:0)+(h.oL.extra?4:0)+(h.oL.name?8:0)+(h.oL.comment?16:0)),Yt(h,h.oL.time&255),Yt(h,h.oL.time>>8&255),Yt(h,h.oL.time>>16&255),Yt(h,h.oL.time>>24&255),Yt(h,h.level===9?2:h.strategy>=2||h.level<2?4:0),Yt(h,h.oL.os& +255),h.oL.extra&&h.oL.extra.length&&(Yt(h,h.oL.extra.length&255),Yt(h,h.oL.extra.length>>8&255)),h.oL.kU&&(C.H7=oo(C.H7,h.cL,h.pending,0)),h.FC=0,h.status=69):(Yt(h,0),Yt(h,0),Yt(h,0),Yt(h,0),Yt(h,0),Yt(h,h.level===9?2:h.strategy>=2||h.level<2?4:0),Yt(h,3),h.status=113);else{var p=8+(h.n_-8<<4)<<8;p|=(h.strategy>=2||h.level<2?0:h.level<6?1:h.level===6?2:3)<<6;h.q8!==0&&(p|=32);h.status=113;ao(h,p+(31-p%31));h.q8!==0&&(ao(h,C.H7>>>16),ao(h,C.H7&65535));C.H7=1}if(h.status===69)if(h.oL.extra){for(p= +h.pending;h.FC<(h.oL.extra.length&65535)&&(h.pending!==h.k7||(h.oL.kU&&h.pending>p&&(C.H7=oo(C.H7,h.cL,h.pending-p,p)),kt(C),p=h.pending,h.pending!==h.k7));)Yt(h,h.oL.extra[h.FC]&255),h.FC++;h.oL.kU&&h.pending>p&&(C.H7=oo(C.H7,h.cL,h.pending-p,p));h.FC===h.oL.extra.length&&(h.FC=0,h.status=73)}else h.status=73;if(h.status===73)if(h.oL.name){p=h.pending;do{if(h.pending===h.k7&&(h.oL.kU&&h.pending>p&&(C.H7=oo(C.H7,h.cL,h.pending-p,p)),kt(C),p=h.pending,h.pending===h.k7)){var P=1;break}P=h.FCp&&(C.H7=oo(C.H7,h.cL,h.pending-p,p));P===0&&(h.FC=0,h.status=91)}else h.status=91;if(h.status===91)if(h.oL.comment){p=h.pending;do{if(h.pending===h.k7&&(h.oL.kU&&h.pending>p&&(C.H7=oo(C.H7,h.cL,h.pending-p,p)),kt(C),p=h.pending,h.pending===h.k7)){P=1;break}P=h.FCp&&(C.H7=oo(C.H7,h.cL,h.pending-p,p));P===0&&(h.status=103)}else h.status= +103;h.status===103&&(h.oL.kU?(h.pending+2>h.k7&&kt(C),h.pending+2<=h.k7&&(Yt(h,C.H7&255),Yt(h,C.H7>>8&255),C.H7=0,h.status=113)):h.status=113);if(h.pending!==0){if(kt(C),C.ID===0)return h.Pe=-1,0}else if(C.ri===0&&(b<<1)-(b>4?9:0)<=(N<<1)-(N>4?9:0)&&b!==4)return js(C,-5);if(h.status===666&&C.ri!==0)return js(C,-5);if(C.ri!==0||h.T$!==0||b!==0&&h.status!==666){N=h.strategy===2?oSK(h,b):h.strategy===3?lRl(h,b):zf[h.level].func(h,b);if(N===3||N===4)h.status=666;if(N===1||N===3)return C.ID===0&&(h.Pe= +-1),0;if(N===2&&(b===1?(Tj(h,2,3),B4(h,256,es),h.hT===16?(tZ(h,h.h6),h.h6=0,h.hT=0):h.hT>=8&&(h.cL[h.pending++]=h.h6&255,h.h6>>=8,h.hT-=8)):b!==5&&(Tj(h,0,3),jOl(h,0,0),b===3&&(cC(h.head),h.T$===0&&(h.q8=0,h.MZ=0,h.P6=0))),kt(C),C.ID===0))return h.Pe=-1,0}if(b!==4)return 0;if(h.wrap<=0)return 1;h.wrap===2?(Yt(h,C.H7&255),Yt(h,C.H7>>8&255),Yt(h,C.H7>>16&255),Yt(h,C.H7>>24&255),Yt(h,C.Su&255),Yt(h,C.Su>>8&255),Yt(h,C.Su>>16&255),Yt(h,C.Su>>24&255)):(ao(h,C.H7>>>16),ao(h,C.H7&65535));kt(C);h.wrap>0&& +(h.wrap=-h.wrap);return h.pending!==0?0:1}; +HC=function(C){if(!(this instanceof HC))return new HC(C);C=this.options=dM.assign({level:-1,method:8,chunkSize:16384,nw:15,yZo:8,strategy:0,jT:""},C||{});C.raw&&C.nw>0?C.nw=-C.nw:C.eD&&C.nw>0&&C.nw<16&&(C.nw+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.g9=new SUl;this.g9.ID=0;var b=this.g9;var h=C.level,N=C.method,p=C.nw,P=C.yZo,c=C.strategy;if(b){var e=1;h===-1&&(h=6);p<0?(e=0,p=-p):p>15&&(e=2,p-=16);if(P<1||P>9||N!==8||p<8||p>15||h<0||h>9||c<0||c>4)b=js(b,-2);else{p===8&&(p=9); +var L=new F8V;b.state=L;L.g9=b;L.wrap=e;L.oL=null;L.n_=p;L.Hi=1<>=7;P<30;P++)for(NJ[P]=c<<7,p=0;p<1<=Z.Hi&&(b===0&&(cC(Z.head),Z.q8=0,Z.MZ=0,Z.P6=0),h=new dM.TZ(Z.Hi),dM.oY(h,P,c-Z.Hi,Z.Hi,0),P=h,c=Z.Hi);h=C.ri;N=C.tM;p=C.input;C.ri=c;C.tM=0;C.input=P;for(FZ(Z);Z.T$>=3;){P=Z.q8;c=Z.T$-2;do Z.zM=(Z.zM<=8&&(h[48]==-9&&(((0,h[18])((((0,h[12])(h[29],h[25]),h[75])(h[61],h[31]),h[30])(h[25]),h[55],(0,h[19])((0,h[55])(h[70],h[7]),h[6],h[3],h[11]),h[61],h[49]),h[19])((0,h[12])(h[21],h[3]),h[72],h[9],h[43],(0,h[24])())%(0,h[69])(h[61]),bc[4])||((0,h[14])((0,h[0])(h[64],h[25])>>(0,h[75])(h[70],h[27]),h[19],(0,h[58])(h[5],h[37])*(0,h[30])(h[new Date(bc[5])/1E3]),h[22],h[31],h[37]),(0,h[19])((0,h[58])(h[54],h[61]),h[69],h[37]),(0,h[46])(h[15]), +h[30])(h[25])),h[51]<=0&&(h[68]!==new Date(bc[6])/(new Date(bc[7])/1E3)||((0,h[new Date(bc[8])/1E3])((0,h[75])(h[61],h[74]),h[69],(0,h[30])(h[3]),h[25]),0))&&(((0,h[58])(h[56],h[25]),h[58])(h[16],h[43]),(0,h[22])(h[62],h[37]))}catch(N){(0,h[69])(h[61]),(0,h[72])(h[9],h[3],(0,h[66])())}finally{h[28]>1&&(0,h[19])(((0,h[58])(h[8],h[70]),(0,h[13])(h[37],h[74]),h[69])(h[3]),h[75],h[25],h[51]),(h[34]<-4||(((0,h[72])(h[9],h[3],(0,h[66])()),(((0,h[19])((0,h[30])(h[3]),h[75],h[61],h[21]),h[72])(h[9],h[3], +(0,h[10])()),(0,h[30])(h[61]),h[12])(h[38],h[3]),h[58])(h[23],h[new Date(bc[9])/1E3]),(0,h[14])((0,h[72])(h[9],h[25],(0,h[32])()),h[19],(0,h[19])((0,h[72])(h[9],h[25],(0,h[10])()),h[6],h[37],h[34]),h[69],h[70]),(0,h[72])(h[9],h[43],(0,h[66])()),(0,h[72])(h[9],h[3],(0,h[24])()),0))&&((0,h[35])(h[69],(0,h[12])(h[20],h[3]),(0,h[55])(h[70],h[40]),((0,h[46])(h[70],h[new Date(bc[10])/1E3]),h[40])(h[59],h[12]),h[16]),h[25])(((0,h[9])(h[48],(0,h[48])(h[1],h[42]),(0,h[68])(h[41],h[50]),(0,h[38])(h[41],h[18]), +h[53],h[0]),h[48])(h[1],h[29]),h[68],h[7],h[43])%((0,h[15])(h[14],h[30]),h[61])(h[28],h[30]),h[62]<=-8&&((0,h[38])(h[51],(((0,h[4])(h[70]),h[15])(h[32],h[3]),(0,h[15])(h[10],h[30]),h[1])(h[64],h[48],(0,h[41])()),(0,h[77])(h[0],h[55]),((0,h[67])(h[3],h[75]),h[60])(h[68],h[45]),h[17],h[2]),1)||((0,h[39])((0,h[46])(h[30],h[75],(0,h[74])()),h[27],(0,h[20])((0,h[63])(h[48],h[6]),h[27],h[0],h[48]),h[70],h[75]),(0,h[9])(h[75]),(0,h[33])(h[57],h[65]),h[20])((0,h[27])(h[53],h[48]),h[46],h[30],h[75],(0,h[29])())}try{h[10]!== +5&&(h[64]<-1||((0,h[20])((0,h[20])((0,h[33])(h[57],h[50]),h[41],h[57],h[63])===(0,h[41])(h[47],h[29]),h[30],h[29]),0))&&(0,h[73])((0,h[78])((0,h[65])(h[4],h[76]),h[52],h[68],h[4],(0,h[46])()),h[78],(0,h[9])(h[23]),h[71],h[40],h[23]),(0,h[27])(h[23]),(0,h[52])(h[68],h[23],(0,h[24])())}catch(N){}}catch(N){return bc[11]+C}return b.join(bc[2])}; +K8l=function(C){return C,bc[12][11+!!C]}; +g.Ah=function(C){this.name=C}; +sOU=function(C){this.Xq=Jx(C)}; +yS=function(C){this.Xq=Jx(C)}; +rW=function(C){this.Xq=Jx(C)}; +OT6=function(C){this.Xq=Jx(C)}; +iH=function(C){this.Xq=Jx(C)}; +Jh=function(C){this.Xq=Jx(C)}; +uH=function(C){this.Xq=Jx(C)}; +Ro=function(C){this.Xq=Jx(C)}; +QS=function(C){this.Xq=Jx(C)}; +UB=function(C){this.Xq=Jx(C)}; +XZ=function(C){this.Xq=Jx(C)}; +Ke=function(C){this.Xq=Jx(C)}; +sB=function(C){this.Xq=Jx(C)}; +OB=function(C){this.Xq=Jx(C)}; +dW=function(C){this.Xq=Jx(C)}; +WC=function(C){this.Xq=Jx(C,500)}; +EB=function(C){this.Xq=Jx(C)}; +ne=function(C){this.Xq=Jx(C)}; +vSW=function(C){this.Xq=Jx(C)}; +D1W=function(){return g.Dx("yt.ads.biscotti.lastId_")||""}; +d1_=function(C){g.Ol("yt.ads.biscotti.lastId_",C)}; +Tf=function(){var C=arguments,b=th;C.length>1?b[C[0]]=C[1]:C.length===1&&Object.assign(b,C[0])}; +g.BC=function(C,b){return C in th?th[C]:b}; +Io=function(C){var b=th.EXPERIMENT_FLAGS;return b?b[C]:void 0}; +W8o=function(C){xt.forEach(function(b){return b(C)})}; +g.CN=function(C){return C&&window.yterr?function(){try{return C.apply(this,arguments)}catch(b){g.wW(b)}}:C}; +g.wW=function(C){var b=g.Dx("yt.logging.errors.log");b?b(C,"ERROR",void 0,void 0,void 0,void 0,void 0):(b=g.BC("ERRORS",[]),b.push([C,"ERROR",void 0,void 0,void 0,void 0,void 0]),Tf("ERRORS",b));W8o(C)}; +ba=function(C,b,h,N,p){var P=g.Dx("yt.logging.errors.log");P?P(C,"WARNING",b,h,N,void 0,p):(P=g.BC("ERRORS",[]),P.push([C,"WARNING",b,h,N,void 0,p]),Tf("ERRORS",P))}; +hK=function(C,b){b=C.split(b);for(var h={},N=0,p=b.length;N1?C[1]:C[0])):{}}; +jX=function(C,b){return Thl(C,b||{},!0)}; +cQ=function(C,b){return Thl(C,b||{},!1)}; +Thl=function(C,b,h){var N=C.split("#",2);C=N[0];N=N.length>1?"#"+N[1]:"";var p=C.split("?",2);C=p[0];p=gJ(p[1]||"");for(var P in b)if(h||!g.mg(p,P))p[P]=b[P];return g.dt(C,p)+N}; +kG=function(C){if(!b)var b=window.location.href;var h=g.Uq(1,C),N=g.XX(C);h&&N?(C=C.match(Qh),b=b.match(Qh),C=C[3]==b[3]&&C[1]==b[1]&&C[4]==b[4]):C=N?g.XX(b)===N&&(Number(g.Uq(4,b))||null)===(Number(g.Uq(4,C))||null):!0;return C}; +eX=function(C){C||(C=document.location.href);C=g.Uq(1,C);return C!==null&&C==="https"}; +LN=function(C){C=BhK(C);return C===null?!1:C[0]==="com"&&C[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; +IRx=function(C){C=BhK(C);return C===null?!1:C[1]==="google"?!0:C[2]==="google"?C[0]==="au"&&C[1]==="com"?!0:C[0]==="uk"&&C[1]==="co"?!0:!1:!1}; +BhK=function(C){C=g.XX(C);return C!==null?C.split(".").reverse():null}; +ESH=function(C){return C&&C.match(x1V)?C:Ie(C)}; +af=function(C){var b=Z1;C=C===void 0?D1W():C;var h=Object,N=h.assign,p=YG(b);var P=b.j;try{var c=P.screenX;var e=P.screenY}catch(f){}try{var L=P.outerWidth;var Z=P.outerHeight}catch(f){}try{var Y=P.innerWidth;var a=P.innerHeight}catch(f){}try{var l=P.screenLeft;var F=P.screenTop}catch(f){}try{Y=P.innerWidth,a=P.innerHeight}catch(f){}try{var G=P.screen.availWidth;var V=P.screen.availTop}catch(f){}P=[l,F,c,e,G,V,L,Z,Y,a];c=Fzo(!1,b.j.top);e={};var q=q===void 0?g.sl:q;L=new Ee;"SVGElement"in q&&"createElementNS"in +q.document&&L.set(0);Z=reS();Z["allow-top-navigation-by-user-activation"]&&L.set(1);Z["allow-popups-to-escape-sandbox"]&&L.set(2);q.crypto&&q.crypto.subtle&&L.set(3);"TextDecoder"in q&&"TextEncoder"in q&&L.set(4);q=fvl(L);b=(e.bc=q,e.bih=c.height,e.biw=c.width,e.brdim=P.join(),e.vis=oW(b.K),e.wgl=!!Yu.WebGLRenderingContext,e);h=N.call(h,p,b);h.ca_type="image";C&&(h.bid=C);return h}; +YG=function(C){var b={};b.dt=w_U;b.flash="0";a:{try{var h=C.j.top.location.href}catch(Y){C=2;break a}C=h?h===C.K.location.href?0:1:2}b=(b.frm=C,b);try{b.u_tz=-(new Date).getTimezoneOffset();var N=N===void 0?Yu:N;try{var p=N.history.length}catch(Y){p=0}b.u_his=p;var P;b.u_h=(P=Yu.screen)==null?void 0:P.height;var c;b.u_w=(c=Yu.screen)==null?void 0:c.width;var e;b.u_ah=(e=Yu.screen)==null?void 0:e.availHeight;var L;b.u_aw=(L=Yu.screen)==null?void 0:L.availWidth;var Z;b.u_cd=(Z=Yu.screen)==null?void 0: +Z.colorDepth}catch(Y){}return b}; +bUV=function(){if(!CpU)return null;var C=CpU();return"open"in C?C:null}; +g.of=function(C){switch(la(C)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}}; +la=function(C){return C&&"status"in C?C.status:-1}; +g.Fu=function(C,b){typeof C==="function"&&(C=g.CN(C));return window.setTimeout(C,b)}; +g.Gu=function(C,b){typeof C==="function"&&(C=g.CN(C));return window.setInterval(C,b)}; +g.SX=function(C){window.clearTimeout(C)}; +g.$G=function(C){window.clearInterval(C)}; +g.HQ=function(C){C=zu(C);return typeof C==="string"&&C==="false"?!1:!!C}; +g.Vv=function(C,b){C=zu(C);return C===void 0&&b!==void 0?b:Number(C||0)}; +MQ=function(){return g.BC("EXPERIMENTS_TOKEN","")}; +zu=function(C){return g.BC("EXPERIMENT_FLAGS",{})[C]}; +qQ=function(){for(var C=[],b=g.BC("EXPERIMENTS_FORCED_FLAGS",{}),h=g.z(Object.keys(b)),N=h.next();!N.done;N=h.next())N=N.value,C.push({key:N,value:String(b[N])});h=g.BC("EXPERIMENT_FLAGS",{});N=g.z(Object.keys(h));for(var p=N.next();!p.done;p=N.next())p=p.value,p.startsWith("force_")&&b[p]===void 0&&C.push({key:p,value:String(h[p])});return C}; +mt=function(C,b,h,N,p,P,c,e){function L(){(Z&&"readyState"in Z?Z.readyState:0)===4&&b&&g.CN(b)(Z)} +h=h===void 0?"GET":h;N=N===void 0?"":N;e=e===void 0?!1:e;var Z=bUV();if(!Z)return null;"onloadend"in Z?Z.addEventListener("loadend",L,!1):Z.onreadystatechange=L;g.HQ("debug_forward_web_query_parameters")&&(C=hgS(C,window.location.search));Z.open(h,C,!0);P&&(Z.responseType=P);c&&(Z.withCredentials=!0);h=h==="POST"&&(window.FormData===void 0||!(N instanceof FormData));if(p=NlK(C,p))for(var Y in p)Z.setRequestHeader(Y,p[Y]),"content-type"===Y.toLowerCase()&&(h=!1);h&&Z.setRequestHeader("Content-Type", +"application/x-www-form-urlencoded");if(e&&"setAttributionReporting"in XMLHttpRequest.prototype){C={eventSourceEligible:!0,triggerEligible:!1};try{Z.setAttributionReporting(C)}catch(a){ba(a)}}Z.send(N);return Z}; +NlK=function(C,b){b=b===void 0?{}:b;var h=kG(C),N=g.BC("INNERTUBE_CLIENT_NAME"),p=g.HQ("web_ajax_ignore_global_headers_if_set"),P;for(P in gn1){var c=g.BC(gn1[P]),e=P==="X-Goog-AuthUser"||P==="X-Goog-PageId";P!=="X-Goog-Visitor-Id"||c||(c=g.BC("VISITOR_DATA"));var L;if(!(L=!c)){if(!(L=h||(g.XX(C)?!1:!0))){L=C;var Z;if(Z=g.HQ("add_auth_headers_to_remarketing_google_dot_com_ping")&&P==="Authorization"&&(N==="TVHTML5"||N==="TVHTML5_UNPLUGGED"||N==="TVHTML5_SIMPLY")&&IRx(L))L=Je(g.Uq(5,L))||"",L=L.split("/"), +L="/"+(L.length>1?L[1]:""),Z=L==="/pagead";L=Z?!0:!1}L=!L}L||p&&b[P]!==void 0||N==="TVHTML5_UNPLUGGED"&&e||(b[P]=c)}"X-Goog-EOM-Visitor-Id"in b&&"X-Goog-Visitor-Id"in b&&delete b["X-Goog-Visitor-Id"];if(h||!g.XX(C))b["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(h||!g.XX(C)){try{var Y=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(a){}Y&&(b["X-YouTube-Time-Zone"]=Y)}document.location.hostname.endsWith("youtubeeducation.com")||!h&&g.XX(C)||(b["X-YouTube-Ad-Signals"]= +NQ(af()));return b}; +Ppx=function(C,b){var h=g.XX(C);g.HQ("debug_handle_relative_url_for_query_forward_killswitch")||!h&&kG(C)&&(h=document.location.hostname);var N=Je(g.Uq(5,C));N=(h=h&&(h.endsWith("youtube.com")||h.endsWith("youtube-nocookie.com")))&&N&&N.startsWith("/api/");if(!h||N)return C;var p=gJ(b),P={};g.oI(pDH,function(c){p[c]&&(P[c]=p[c])}); +return cQ(C,P)}; +AK=function(C,b){b.method="POST";b.postParams||(b.postParams={});return g.fN(C,b)}; +kqU=function(C,b){if(window.fetch&&b.format!=="XML"){var h={method:b.method||"GET",credentials:"same-origin"};b.headers&&(h.headers=b.headers);b.priority&&(h.priority=b.priority);C=jb_(C,b);var N=c51(C,b);N&&(h.body=N);b.withCredentials&&(h.credentials="include");var p=b.context||g.sl,P=!1,c;fetch(C,h).then(function(e){if(!P){P=!0;c&&g.SX(c);var L=e.ok,Z=function(Y){Y=Y||{};L?b.onSuccess&&b.onSuccess.call(p,Y,e):b.onError&&b.onError.call(p,Y,e);b.onFinish&&b.onFinish.call(p,Y,e)}; +(b.format||"JSON")==="JSON"&&(L||e.status>=400&&e.status<500)?e.json().then(Z,function(){Z(null)}):Z(null)}}).catch(function(){b.onError&&b.onError.call(p,{},{})}); +C=b.timeout||0;b.onFetchTimeout&&C>0&&(c=g.Fu(function(){P||(P=!0,g.SX(c),b.onFetchTimeout.call(b.context||g.sl))},C))}else g.fN(C,b)}; +g.fN=function(C,b){var h=b.format||"JSON";C=jb_(C,b);var N=c51(C,b),p=!1,P=egx(C,function(L){if(!p){p=!0;e&&g.SX(e);var Z=g.of(L),Y=null,a=400<=L.status&&L.status<500,l=500<=L.status&&L.status<600;if(Z||a||l)Y=LOV(C,h,L,b.convertToSafeHtml);Z&&(Z=ZUo(h,L,Y));Y=Y||{};a=b.context||g.sl;Z?b.onSuccess&&b.onSuccess.call(a,L,Y):b.onError&&b.onError.call(a,L,Y);b.onFinish&&b.onFinish.call(a,L,Y)}},b.method,N,b.headers,b.responseType,b.withCredentials); +N=b.timeout||0;if(b.onTimeout&&N>0){var c=b.onTimeout;var e=g.Fu(function(){p||(p=!0,P.abort(),g.SX(e),c.call(b.context||g.sl,P))},N)}return P}; +jb_=function(C,b){b.includeDomain&&(C=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+C);var h=g.BC("XSRF_FIELD_NAME");if(b=b.urlParams)b[h]&&delete b[h],C=jX(C,b);return C}; +c51=function(C,b){var h=g.BC("XSRF_FIELD_NAME"),N=g.BC("XSRF_TOKEN"),p=b.postBody||"",P=b.postParams,c=g.BC("XSRF_FIELD_NAME"),e;b.headers&&(e=b.headers["Content-Type"]);b.excludeXsrf||g.XX(C)&&!b.withCredentials&&g.XX(C)!==document.location.hostname||b.method!=="POST"||e&&e!=="application/x-www-form-urlencoded"||b.postParams&&b.postParams[c]||(P||(P={}),P[h]=N);(g.HQ("ajax_parse_query_data_only_when_filled")&&P&&Object.keys(P).length>0||P)&&typeof p==="string"&&(p=gJ(p),g.RV(p,P),p=b.postBodyFormat&& +b.postBodyFormat==="JSON"?JSON.stringify(p):g.Dh(p));P=p||P&&!g.yT(P);!Yel&&P&&b.method!=="POST"&&(Yel=!0,g.wW(Error("AJAX request with postData should use POST")));return p}; +LOV=function(C,b,h,N){var p=null;switch(b){case "JSON":try{var P=h.responseText}catch(c){throw N=Error("Error reading responseText"),N.params=C,ba(N),c;}C=h.getResponseHeader("Content-Type")||"";P&&C.indexOf("json")>=0&&(P.substring(0,5)===")]}'\n"&&(P=P.substring(5)),p=JSON.parse(P));break;case "XML":if(C=(C=h.responseXML)?abS(C):null)p={},g.oI(C.getElementsByTagName("*"),function(c){p[c.tagName]=lbS(c)})}N&&ono(p); +return p}; +ono=function(C){if(g.T6(C))for(var b in C)b==="html_content"||OWW(b,"_html")?C[b]=UN(C[b]):ono(C[b])}; +ZUo=function(C,b,h){if(b&&b.status===204)return!0;switch(C){case "JSON":return!!h;case "XML":return Number(h&&h.return_code)===0;case "RAW":return!0;default:return!!h}}; +abS=function(C){return C?(C=("responseXML"in C?C.responseXML:C).getElementsByTagName("root"))&&C.length>0?C[0]:null:null}; +lbS=function(C){var b="";g.oI(C.childNodes,function(h){b+=h.nodeValue}); +return b}; +rJ=function(C,b){var h=g.J8(b),N;return(new g.o9(function(p,P){h.onSuccess=function(c){g.of(c)?p(new FOW(c)):P(new yv("Request failed, status="+la(c),"net.badstatus",c))}; +h.onError=function(c){P(new yv("Unknown request error","net.unknown",c))}; +h.onTimeout=function(c){P(new yv("Request timed out","net.timeout",c))}; +N=g.fN(C,h)})).jX(function(p){if(p instanceof Ht){var P; +(P=N)==null||P.abort()}return SI(p)})}; +g.ia=function(C,b,h,N){function p(e,L,Z){return e.jX(function(Y){if(L<=0||la(Y.xhr)===403)return SI(new yv("Request retried too many times","net.retryexhausted",Y.xhr,Y));Y=Math.pow(2,h-L+1)*Z;var a=c>0?Math.min(c,Y):Y;return P(Z).then(function(){return p(rJ(C,b),L-1,a)})})} +function P(e){return new g.o9(function(L){setTimeout(L,e)})} +var c=c===void 0?-1:c;return p(rJ(C,b),h-1,N)}; +yv=function(C,b,h){SD.call(this,C+", errorCode="+b);this.errorCode=b;this.xhr=h;this.name="PromiseAjaxError"}; +FOW=function(C){this.xhr=C}; +JK=function(C){this.j=C===void 0?null:C;this.N=0;this.K=null}; +ua=function(C){var b=new JK;C=C===void 0?null:C;b.N=2;b.K=C===void 0?null:C;return b}; +Rf=function(C){var b=new JK;C=C===void 0?null:C;b.N=1;b.K=C===void 0?null:C;return b}; +g.Xu=function(C,b,h,N,p){Qv||US.set(""+C,b,{qX:h,path:"/",domain:N===void 0?"youtube.com":N,secure:p===void 0?!1:p})}; +g.KN=function(C,b){if(!Qv)return US.get(""+C,b)}; +g.sS=function(C,b,h){Qv||US.remove(""+C,b===void 0?"/":b,h===void 0?"youtube.com":h)}; +GqU=function(){if(g.HQ("embeds_web_enable_cookie_detection_fix")){if(!g.sl.navigator.cookieEnabled)return!1}else if(!US.isEnabled())return!1;if(!US.isEmpty())return!0;g.HQ("embeds_web_enable_cookie_detection_fix")?US.set("TESTCOOKIESENABLED","1",{qX:60,cyE:"none",secure:!0}):US.set("TESTCOOKIESENABLED","1",{qX:60});if(US.get("TESTCOOKIESENABLED")!=="1")return!1;US.remove("TESTCOOKIESENABLED");return!0}; +g.d=function(C,b){if(C)return C[b.name]}; +OS=function(C){var b=g.BC("INNERTUBE_HOST_OVERRIDE");b&&(C=String(b)+String(Kb(C)));return C}; +Sex=function(C){var b={};g.HQ("json_condensed_response")&&(b.prettyPrint="false");return C=cQ(C,b)}; +vQ=function(C,b){var h=h===void 0?{}:h;C={method:b===void 0?"POST":b,mode:kG(C)?"same-origin":"cors",credentials:kG(C)?"same-origin":"include"};b={};for(var N=g.z(Object.keys(h)),p=N.next();!p.done;p=N.next())p=p.value,h[p]&&(b[p]=h[p]);Object.keys(b).length>0&&(C.headers=b);return C}; +D1=function(){var C=/Chrome\/(\d+)/.exec(g.iC());return C?parseFloat(C[1]):NaN}; +WQ=function(){return g.dJ("android")&&g.dJ("chrome")&&!(g.dJ("trident/")||g.dJ("edge/"))&&!g.dJ("cobalt")}; +$vx=function(){return g.dJ("armv7")||g.dJ("aarch64")||g.dJ("android")}; +g.ES=function(){return g.dJ("cobalt")}; +nN=function(){return g.dJ("cobalt")&&g.dJ("appletv")}; +tK=function(){return g.dJ("(ps3; leanback shell)")||g.dJ("ps3")&&g.ES()}; +zg_=function(){return g.dJ("(ps4; leanback shell)")||g.dJ("ps4")&&g.ES()}; +g.HUl=function(){return g.ES()&&(g.dJ("ps4 vr")||g.dJ("ps4 pro vr"))}; +Tu=function(){var C=/WebKit\/([0-9]+)/.exec(g.iC());return!!(C&&parseInt(C[1],10)>=600)}; +BQ=function(){var C=/WebKit\/([0-9]+)/.exec(g.iC());return!!(C&&parseInt(C[1],10)>=602)}; +Vac=function(){return g.dJ("iemobile")||g.dJ("windows phone")&&g.dJ("edge")}; +wJ=function(){return(If||xG)&&g.dJ("applewebkit")&&!g.dJ("version")&&(!g.dJ("safari")||g.dJ("gsa/"))}; +bU=function(){return g.Cp&&g.dJ("version/")}; +hJ=function(){return g.dJ("smart-tv")&&g.dJ("samsung")}; +g.dJ=function(C){var b=g.iC();return b?b.toLowerCase().indexOf(C)>=0:!1}; +Na=function(){return OLW()||wJ()||bU()?!0:g.BC("EOM_VISITOR_DATA")?!1:!0}; +gU=function(C,b){return b===void 0||b===null?C:b==="1"||b===!0||b===1||b==="True"?!0:!1}; +pp=function(C,b,h){for(var N in h)if(h[N]==b)return h[N];return C}; +Pj=function(C,b){return b===void 0||b===null?C:Number(b)}; +jw=function(C,b){return b===void 0||b===null?C:b.toString()}; +cj=function(C,b){if(b){if(C==="fullwidth")return Infinity;if(C==="fullheight")return 0}return C&&(b=C.match(Mal))&&(C=Number(b[2]),b=Number(b[1]),!isNaN(C)&&!isNaN(b)&&C>0)?b/C:NaN}; +ka=function(C){var b=C.docid||C.video_id||C.videoId||C.id;if(b)return b;b=C.raw_player_response;b||(C=C.player_response)&&(b=JSON.parse(C));return b&&b.videoDetails&&b.videoDetails.videoId||null}; +qeW=function(C){return ew(C,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; +g.Lp=function(C){return C==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||C==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; +ew=function(C,b){b=(b===void 0?0:b)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(b="EMBEDDED_PLAYER_MODE_PFL");var h=C.raw_embedded_player_response;if(!h&&(C=C.embedded_player_response))try{h=JSON.parse(C)}catch(N){return b}return h?pp(b,h.embeddedPlayerMode,mvH):b}; +Ya=function(C){SD.call(this,C.message||C.description||C.name);this.isMissing=C instanceof Z7;this.isTimeout=C instanceof yv&&C.errorCode=="net.timeout";this.isCanceled=C instanceof Ht}; +Z7=function(){SD.call(this,"Biscotti ID is missing from server")}; +fbl=function(){if(g.HQ("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!Na())return Error("User has not consented - not fetching biscotti id.");var C=g.BC("PLAYER_VARS",{});if(g.rk(C,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(qeW(C))return Error("Biscotti id fetching has been disabled for pfl.")}; +iUW=function(){var C=fbl();if(C!==void 0)return SI(C);a1||(a1=rJ("//googleads.g.doubleclick.net/pagead/id",A5c).then(y5W).jX(function(b){return r5c(2,b)})); +return a1}; +y5W=function(C){C=C.xhr.responseText;if(!Mp(C,")]}'"))throw new Z7;C=JSON.parse(C.substr(4));if((C.type||1)>1)throw new Z7;C=C.id;d1_(C);a1=Rf(C);J56(18E5,2);return C}; +r5c=function(C,b){b=new Ya(b);d1_("");a1=ua(b);C>0&&J56(12E4,C-1);throw b;}; +J56=function(C,b){g.Fu(function(){rJ("//googleads.g.doubleclick.net/pagead/id",A5c).then(y5W,function(h){return r5c(b,h)}).jX(g.Zh)},C)}; +up_=function(){try{var C=g.Dx("yt.ads.biscotti.getId_");return C?C():iUW()}catch(b){return SI(b)}}; +Qbl=function(C){C&&(C.dataset?C.dataset[RgV()]="true":fDl(C))}; +Uv_=function(C){return C?C.dataset?C.dataset[RgV()]:C.getAttribute("data-loaded"):null}; +RgV=function(){return XDW.loaded||(XDW.loaded="loaded".replace(/\-([a-z])/g,function(C,b){return b.toUpperCase()}))}; +KO1=function(){var C=document;if("visibilityState"in C)return C.visibilityState;var b=lU+"VisibilityState";if(b in C)return C[b]}; +o1=function(C,b){var h;i3(C,function(N){h=b[N];return!!h}); +return h}; +Fr=function(C){if(C.requestFullscreen)C=C.requestFullscreen(void 0);else if(C.webkitRequestFullscreen)C=C.webkitRequestFullscreen();else if(C.mozRequestFullScreen)C=C.mozRequestFullScreen();else if(C.msRequestFullscreen)C=C.msRequestFullscreen();else if(C.webkitEnterFullscreen)C=C.webkitEnterFullscreen();else return Promise.reject(Error("Fullscreen API unavailable"));return C instanceof Promise?C:Promise.resolve()}; +$a=function(C){var b;g.Gm()?Sw()==C&&(b=document):b=C;return b&&(C=o1(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],b))?(b=C.call(b),b instanceof Promise?b:Promise.resolve()):Promise.resolve()}; +sbo=function(C){return g.B$(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(b){return"on"+b.toLowerCase()in C})}; +OUK=function(){var C=document;return g.B$(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(b){return"on"+b.toLowerCase()in C})}; +g.Gm=function(){return!!o1(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; +Sw=function(C){C=C===void 0?!1:C;var b=o1(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(C)for(;b&&b.shadowRoot;)b=b.shadowRoot.fullscreenElement;return b?b:null}; +zm=function(C){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(C=C||window.event){this.event=C;for(var b in C)b in vnU||(this[b]=C[b]);this.scale=C.scale;this.rotation=C.rotation;var h=C.target||C.srcElement;h&&h.nodeType==3&&(h=h.parentNode);this.target=h;var N=C.relatedTarget; +if(N)try{N=N.nodeName?N:null}catch(p){N=null}else this.type=="mouseover"?N=C.fromElement:this.type=="mouseout"&&(N=C.toElement);this.relatedTarget=N;this.clientX=C.clientX!=void 0?C.clientX:C.pageX;this.clientY=C.clientY!=void 0?C.clientY:C.pageY;this.keyCode=C.keyCode?C.keyCode:C.which;this.charCode=C.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=C.altKey;this.ctrlKey=C.ctrlKey;this.shiftKey=C.shiftKey;this.metaKey=C.metaKey;this.j=C.pageX;this.K=C.pageY}}catch(p){}}; +Dvl=function(C){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;C.j=C.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);C.K=C.clientY+b}}; +dvW=function(C,b,h,N){N=N===void 0?{}:N;C.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 A8(Hj,function(p){var P=typeof p[4]==="boolean"&&p[4]==!!N,c=g.T6(p[4])&&g.T6(N)&&g.iF(p[4],N);return!!p.length&&p[0]==C&&p[1]==b&&p[2]==h&&(P||c)})}; +g.VJ=function(C,b,h,N){N=N===void 0?{}:N;if(!C||!C.addEventListener&&!C.attachEvent)return"";var p=dvW(C,b,h,N);if(p)return p;p=++WOU.count+"";var P=!(b!="mouseenter"&&b!="mouseleave"||!C.addEventListener||"onmouseenter"in document);var c=P?function(e){e=new zm(e);if(!cP(e.relatedTarget,function(L){return L==C},!0))return e.currentTarget=C,e.type=b,h.call(C,e)}:function(e){e=new zm(e); +e.currentTarget=C;return h.call(C,e)}; +c=g.CN(c);C.addEventListener?(b=="mouseenter"&&P?b="mouseover":b=="mouseleave"&&P?b="mouseout":b=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),En_()||typeof N==="boolean"?C.addEventListener(b,c,N):C.addEventListener(b,c,!!N.capture)):C.attachEvent("on"+b,c);Hj[p]=[C,b,h,c,N];return p}; +tal=function(C){return nnx(C,function(b){return g.j6(b,"ytp-ad-has-logging-urls")})}; +nnx=function(C,b){var h=document.body||document;return g.VJ(h,"click",function(N){var p=cP(N.target,function(P){return P===h||b(P)},!0); +p&&p!==h&&!p.disabled&&(N.currentTarget=p,C.call(p,N))})}; +g.Ma=function(C){C&&(typeof C=="string"&&(C=[C]),g.oI(C,function(b){if(b in Hj){var h=Hj[b],N=h[0],p=h[1],P=h[3];h=h[4];N.removeEventListener?En_()||typeof h==="boolean"?N.removeEventListener(p,P,h):N.removeEventListener(p,P,!!h.capture):N.detachEvent&&N.detachEvent("on"+p,P);delete Hj[b]}}))}; +qa=function(C){for(var b in Hj)Hj[b][0]==C&&g.Ma(b)}; +mJ=function(C){C=C||window.event;var b;C.composedPath&&typeof C.composedPath==="function"?b=C.composedPath():b=C.path;b&&b.length?C=b[0]:(C=C||window.event,C=C.target||C.srcElement,C.nodeType==3&&(C=C.parentNode));return C}; +fp=function(C){this.J=C;this.j=null;this.X=0;this.W=null;this.G=0;this.K=[];for(C=0;C<4;C++)this.K.push(0);this.N=0;this.N2=g.VJ(window,"mousemove",(0,g.x_)(this.V,this));this.L=g.Gu((0,g.x_)(this.KO,this),25)}; +AJ=function(C){g.O.call(this);this.J=[];this.sI=C||this}; +yJ=function(C,b,h,N){for(var p=0;p0?h:0;h=N?Date.now()+N*1E3:0;if((N=N?(0,g.JJ)():uU())&&window.JSON){typeof b!=="string"&&(b=JSON.stringify(b,void 0));try{N.set(C,b,h)}catch(p){N.remove(C)}}}; +g.QJ=function(C){var b=uU(),h=(0,g.JJ)();if(!b&&!h||!window.JSON)return null;try{var N=b.get(C)}catch(p){}if(typeof N!=="string")try{N=h.get(C)}catch(p){}if(typeof N!=="string")return null;try{N=JSON.parse(N,void 0)}catch(p){}return N}; +IbW=function(){var C=(0,g.JJ)();if(C&&(C=C.K("yt-player-quality")))return C.creation}; +g.UJ=function(C){try{var b=uU(),h=(0,g.JJ)();b&&b.remove(C);h&&h.remove(C)}catch(N){}}; +g.Xr=function(){return g.QJ("yt-remote-session-screen-id")}; +xvV=function(C){var b=this;this.K=void 0;this.j=!1;C.addEventListener("beforeinstallprompt",function(h){h.preventDefault();b.K=h}); +C.addEventListener("appinstalled",function(){b.j=!0},{once:!0})}; +Kp=function(){if(!g.sl.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.sl.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.sl.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.sl.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.sl.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(C){return"WEB_DISPLAY_MODE_UNKNOWN"}}; +sJ=function(){this.lU=!0}; +wDW=function(){sJ.instance||(sJ.instance=new sJ);return sJ.instance}; +CeV=function(C){switch(C){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}}; +b2l=function(){this.j=g.BC("ALT_PREF_COOKIE_NAME","PREF");this.K=g.BC("ALT_PREF_COOKIE_DOMAIN","youtube.com");var C=g.KN(this.j);C&&this.parse(C)}; +g.vj=function(){OJ||(OJ=new b2l);return OJ}; +g.D7=function(C,b){return!!((hPH("f"+(Math.floor(b/31)+1))||0)&1<0;)switch(C=LB.shift(),C.type){case "ERROR":jn.RF(C.payload);break;case "EVENT":jn.logEvent(C.eventType,C.payload)}}; +Y1=function(C){ZQ||(jn?jn.RF(C):(LB.push({type:"ERROR",payload:C}),LB.length>10&&LB.shift()))}; +aR=function(C,b){ZQ||(jn?jn.logEvent(C,b):(LB.push({type:"EVENT",eventType:C,payload:b}),LB.length>10&&LB.shift()))}; +lf=function(C){if(C.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; +oR=function(C){return C.substr(0,C.indexOf(":"))||C}; +g.Fy=function(C,b,h,N,p){b=b===void 0?{}:b;h=h===void 0?ePW[C]:h;N=N===void 0?LXo[C]:N;p=p===void 0?Z2l[C]:p;g.tJ.call(this,h,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:C},b));this.type=C;this.message=h;this.level=N;this.j=p;Object.setPrototypeOf(this,g.Fy.prototype)}; +Gn=function(C,b){g.Fy.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:b,foundObjectStores:C},ePW.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,Gn.prototype)}; +Sn=function(C,b){var h=Error.call(this);this.message=h.message;"stack"in h&&(this.stack=h.stack);this.index=C;this.objectStore=b;Object.setPrototypeOf(this,Sn.prototype)}; +zn=function(C,b,h,N){b=oR(b);var p=C instanceof Error?C:Error("Unexpected error: "+C);if(p instanceof g.Fy)return p;C={objectStoreNames:h,dbName:b,dbVersion:N};if(p.name==="QuotaExceededError")return new g.Fy("QUOTA_EXCEEDED",C);if(g.$1&&p.name==="UnknownError")return new g.Fy("QUOTA_MAYBE_EXCEEDED",C);if(p instanceof Sn)return new g.Fy("MISSING_INDEX",Object.assign({},C,{objectStore:p.objectStore,index:p.index}));if(p.name==="InvalidStateError"&&Yj1.some(function(P){return p.message.includes(P)}))return new g.Fy("EXECUTE_TRANSACTION_ON_CLOSED_DB", +C); +if(p.name==="AbortError")return new g.Fy("UNKNOWN_ABORT",C,p.message);p.args=[Object.assign({},C,{name:"IdbError",FO:p.name})];p.level="WARNING";return p}; +g.HG=function(C,b,h){var N=PG();return new g.Fy("IDB_NOT_SUPPORTED",{context:{caller:C,publicName:b,version:h,hasSucceededOnce:N==null?void 0:N.hasSucceededOnce}})}; +aoV=function(C){if(!C)throw Error();throw C;}; +loH=function(C){return C}; +V9=function(C){this.j=C}; +g.M$=function(C){function b(p){if(N.state.status==="PENDING"){N.state={status:"REJECTED",reason:p};p=g.z(N.K);for(var P=p.next();!P.done;P=p.next())P=P.value,P()}} +function h(p){if(N.state.status==="PENDING"){N.state={status:"FULFILLED",value:p};p=g.z(N.j);for(var P=p.next();!P.done;P=p.next())P=P.value,P()}} +var N=this;this.state={status:"PENDING"};this.j=[];this.K=[];C=C.j;try{C(h,b)}catch(p){b(p)}}; +obc=function(C,b,h,N,p){try{if(C.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var P=h(C.state.value);P instanceof g.M$?q$(C,b,P,N,p):N(P)}catch(c){p(c)}}; +FX_=function(C,b,h,N,p){try{if(C.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var P=h(C.state.reason);P instanceof g.M$?q$(C,b,P,N,p):N(P)}catch(c){p(c)}}; +q$=function(C,b,h,N,p){b===h?p(new TypeError("Circular promise chain detected.")):h.then(function(P){P instanceof g.M$?q$(C,b,P,N,p):N(P)},function(P){p(P)})}; +Gjx=function(C,b,h){function N(){h(C.error);P()} +function p(){b(C.result);P()} +function P(){try{C.removeEventListener("success",p),C.removeEventListener("error",N)}catch(c){}} +C.addEventListener("success",p);C.addEventListener("error",N)}; +SjV=function(C){return new Promise(function(b,h){Gjx(C,b,h)})}; +mK=function(C){return new g.M$(new V9(function(b,h){Gjx(C,b,h)}))}; +fB=function(C,b){return new g.M$(new V9(function(h,N){function p(){var P=C?b(C):null;P?P.then(function(c){C=c;p()},N):h()} +p()}))}; +$M6=function(C,b){this.request=C;this.cursor=b}; +zPV=function(C){return mK(C).then(function(b){return b?new $M6(C,b):null})}; +g.H2o=function(C){C.cursor.continue(void 0);return zPV(C.request)}; +V6o=function(C,b){this.j=C;this.options=b;this.transactionCount=0;this.N=Math.round((0,g.Ai)());this.K=!1}; +g.rm=function(C,b,h){C=C.j.createObjectStore(b,h);return new y9(C)}; +Ji=function(C,b){C.j.objectStoreNames.contains(b)&&C.j.deleteObjectStore(b)}; +g.Q9=function(C,b,h){return g.uf(C,[b],{mode:"readwrite",M8:!0},function(N){return g.RR(N.objectStore(b),h)})}; +g.uf=function(C,b,h,N){var p,P,c,e,L,Z,Y,a,l,F,G,V;return g.R(function(q){switch(q.j){case 1:var f={mode:"readonly",M8:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof h==="string"?f.mode=h:Object.assign(f,h);p=f;C.transactionCount++;P=p.M8?3:1;c=0;case 2:if(e){q.WE(4);break}c++;L=Math.round((0,g.Ai)());g.z6(q,5);Z=C.j.transaction(b,p.mode);f=new U1(Z);f=M6V(f,N);return g.J(q,f,7);case 7:return Y=q.K,a=Math.round((0,g.Ai)()),qjK(C,L,a,c,void 0,b.join(),p),q.return(Y);case 5:l=g.MW(q);F=Math.round((0,g.Ai)()); +G=zn(l,C.j.name,b.join(),C.j.version);if((V=G instanceof g.Fy&&!G.j)||c>=P)qjK(C,L,F,c,G,b.join(),p),e=G;q.WE(2);break;case 4:return q.return(Promise.reject(e))}})}; +qjK=function(C,b,h,N,p,P,c){b=h-b;p?(p instanceof g.Fy&&(p.type==="QUOTA_EXCEEDED"||p.type==="QUOTA_MAYBE_EXCEEDED")&&aR("QUOTA_EXCEEDED",{dbName:oR(C.j.name),objectStoreNames:P,transactionCount:C.transactionCount,transactionMode:c.mode}),p instanceof g.Fy&&p.type==="UNKNOWN_ABORT"&&(h-=C.N,h<0&&h>=2147483648&&(h=0),aR("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:P,transactionDuration:b,transactionCount:C.transactionCount,dbDuration:h}),C.K=!0),mMl(C,!1,N,P,b,c.tag),Y1(p)):mMl(C,!0,N,P,b, +c.tag)}; +mMl=function(C,b,h,N,p,P){aR("TRANSACTION_ENDED",{objectStoreNames:N,connectionHasUnknownAbortedTransaction:C.K,duration:p,isSuccessful:b,tryCount:h,tag:P===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":P})}; +y9=function(C){this.j=C}; +g.Xy=function(C,b,h){C.j.createIndex(b,h,{unique:!1})}; +fol=function(C,b){return g.KB(C,{query:b},function(h){return h.delete().then(function(){return g.s1(h)})}).then(function(){})}; +AZ1=function(C,b,h){var N=[];return g.KB(C,{query:b},function(p){if(!(h!==void 0&&N.length>=h))return N.push(p.getValue()),g.s1(p)}).then(function(){return N})}; +rZK=function(C){return"getAllKeys"in IDBObjectStore.prototype?mK(C.j.getAllKeys(void 0,void 0)):yZK(C)}; +yZK=function(C){var b=[];return g.i2K(C,{query:void 0},function(h){b.push(h.cursor.primaryKey);return g.H2o(h)}).then(function(){return b})}; +g.RR=function(C,b,h){return mK(C.j.put(b,h))}; +g.KB=function(C,b,h){C=C.j.openCursor(b.query,b.direction);return O1(C).then(function(N){return fB(N,h)})}; +g.i2K=function(C,b,h){var N=b.query;b=b.direction;C="openKeyCursor"in IDBObjectStore.prototype?C.j.openKeyCursor(N,b):C.j.openCursor(N,b);return zPV(C).then(function(p){return fB(p,h)})}; +U1=function(C){var b=this;this.j=C;this.N=new Map;this.K=!1;this.done=new Promise(function(h,N){b.j.addEventListener("complete",function(){h()}); +b.j.addEventListener("error",function(p){p.currentTarget===p.target&&N(b.j.error)}); +b.j.addEventListener("abort",function(){var p=b.j.error;if(p)N(p);else if(!b.K){p=g.Fy;for(var P=b.j.objectStoreNames,c=[],e=0;e=h))return N.push(p.getValue()),g.s1(p)}).then(function(){return N})}; +g.vG=function(C,b,h){C=C.j.openCursor(b.query===void 0?null:b.query,b.direction===void 0?"next":b.direction);return O1(C).then(function(N){return fB(N,h)})}; +DQ=function(C,b){this.request=C;this.cursor=b}; +O1=function(C){return mK(C).then(function(b){return b?new DQ(C,b):null})}; +g.s1=function(C){C.cursor.continue(void 0);return O1(C.request)}; +RPl=function(C,b,h){return new Promise(function(N,p){function P(){l||(l=new V6o(c.result,{closed:a}));return l} +var c=b!==void 0?self.indexedDB.open(C,b):self.indexedDB.open(C);var e=h.blocked,L=h.blocking,Z=h.Q24,Y=h.upgrade,a=h.closed,l;c.addEventListener("upgradeneeded",function(F){try{if(F.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(c.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");F.dataLoss&&F.dataLoss!=="none"&&aR("IDB_DATA_CORRUPTED",{reason:F.dataLossMessage||"unknown reason",dbName:oR(C)});var G=P(),V=new U1(c.transaction); +Y&&Y(G,function(q){return F.oldVersion=q},V); +V.done.catch(function(q){p(q)})}catch(q){p(q)}}); +c.addEventListener("success",function(){var F=c.result;L&&F.addEventListener("versionchange",function(){L(P())}); +F.addEventListener("close",function(){aR("IDB_UNEXPECTEDLY_CLOSED",{dbName:oR(C),dbVersion:F.version});Z&&Z()}); +N(P())}); +c.addEventListener("error",function(){p(c.error)}); +e&&c.addEventListener("blocked",function(){e()})})}; +Q2l=function(C,b,h){h=h===void 0?{}:h;return RPl(C,b,h)}; +dm=function(C,b){b=b===void 0?{}:b;var h,N,p,P;return g.R(function(c){if(c.j==1)return g.z6(c,2),h=self.indexedDB.deleteDatabase(C),N=b,(p=N.blocked)&&h.addEventListener("blocked",function(){p()}),g.J(c,SjV(h),4); +if(c.j!=2)return g.VH(c,0);P=g.MW(c);throw zn(P,C,"",-1);})}; +WG=function(C,b){this.name=C;this.options=b;this.N=!0;this.G=this.X=0}; +UMl=function(C,b){return new g.Fy("INCOMPATIBLE_DB_VERSION",{dbName:C.name,oldVersion:C.options.version,newVersion:b})}; +g.E1=function(C,b){if(!b)throw g.HG("openWithToken",oR(C.name));return C.open()}; +X41=function(C,b){var h;return g.R(function(N){if(N.j==1)return g.J(N,g.E1(nB,b),2);h=N.K;return N.return(g.uf(h,["databases"],{M8:!0,mode:"readwrite"},function(p){var P=p.objectStore("databases");return P.get(C.actualName).then(function(c){if(c?C.actualName!==c.actualName||C.publicName!==c.publicName||C.userIdentifier!==c.userIdentifier:1)return g.RR(P,C).then(function(){})})}))})}; +ti=function(C,b){var h;return g.R(function(N){if(N.j==1)return C?g.J(N,g.E1(nB,b),2):N.return();h=N.K;return N.return(h.delete("databases",C))})}; +KX1=function(C,b){var h,N;return g.R(function(p){return p.j==1?(h=[],g.J(p,g.E1(nB,b),2)):p.j!=3?(N=p.K,g.J(p,g.uf(N,["databases"],{M8:!0,mode:"readonly"},function(P){h.length=0;return g.KB(P.objectStore("databases"),{},function(c){C(c.getValue())&&h.push(c.getValue());return g.s1(c)})}),3)):p.return(h)})}; +s2l=function(C,b){return KX1(function(h){return h.publicName===C&&h.userIdentifier!==void 0},b)}; +O2W=function(){var C,b,h,N;return g.R(function(p){switch(p.j){case 1:C=PG();if((b=C)==null?0:b.hasSucceededOnce)return p.return(!0);if(Tn&&Tu()&&!BQ()||g.BG)return p.return(!1);try{if(h=self,!(h.indexedDB&&h.IDBIndex&&h.IDBKeyRange&&h.IDBObjectStore))return p.return(!1)}catch(P){return p.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return p.return(!1);g.z6(p,2);N={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; +return g.J(p,X41(N,IR),4);case 4:return g.J(p,ti("yt-idb-test-do-not-use",IR),5);case 5:return p.return(!0);case 2:return g.MW(p),p.return(!1)}})}; +vbl=function(){if(x1!==void 0)return x1;ZQ=!0;return x1=O2W().then(function(C){ZQ=!1;var b;if((b=pB())!=null&&b.j){var h;b={hasSucceededOnce:((h=PG())==null?void 0:h.hasSucceededOnce)||C};var N;(N=pB())==null||N.set("LAST_RESULT_ENTRY_KEY",b,2592E3,!0)}return C})}; +wm=function(){return g.Dx("ytglobal.idbToken_")||void 0}; +g.CQ=function(){var C=wm();return C?Promise.resolve(C):vbl().then(function(b){(b=b?IR:void 0)&&g.Ol("ytglobal.idbToken_",b);return b})}; +DMo=function(C){if(!g.Bj())throw C=new g.Fy("AUTH_INVALID",{dbName:C}),Y1(C),C;var b=g.Tm();return{actualName:C+":"+b,publicName:C,userIdentifier:b}}; +dMW=function(C,b,h,N){var p,P,c,e,L,Z;return g.R(function(Y){switch(Y.j){case 1:return P=(p=Error().stack)!=null?p:"",g.J(Y,g.CQ(),2);case 2:c=Y.K;if(!c)throw e=g.HG("openDbImpl",C,b),g.HQ("ytidb_async_stack_killswitch")||(e.stack=e.stack+"\n"+P.substring(P.indexOf("\n")+1)),Y1(e),e;lf(C);L=h?{actualName:C,publicName:C,userIdentifier:void 0}:DMo(C);g.z6(Y,3);return g.J(Y,X41(L,c),5);case 5:return g.J(Y,Q2l(L.actualName,b,N),6);case 6:return Y.return(Y.K);case 3:return Z=g.MW(Y),g.z6(Y,7),g.J(Y,ti(L.actualName, +c),9);case 9:g.VH(Y,8);break;case 7:g.MW(Y);case 8:throw Z;}})}; +WXK=function(C,b,h){h=h===void 0?{}:h;return dMW(C,b,!1,h)}; +Eb_=function(C,b,h){h=h===void 0?{}:h;return dMW(C,b,!0,h)}; +nbc=function(C,b){b=b===void 0?{}:b;var h,N;return g.R(function(p){if(p.j==1)return g.J(p,g.CQ(),2);if(p.j!=3){h=p.K;if(!h)return p.return();lf(C);N=DMo(C);return g.J(p,dm(N.actualName,b),3)}return g.J(p,ti(N.actualName,h),0)})}; +t6l=function(C,b,h){C=C.map(function(N){return g.R(function(p){return p.j==1?g.J(p,dm(N.actualName,b),2):g.J(p,ti(N.actualName,h),0)})}); +return Promise.all(C).then(function(){})}; +TMl=function(C){var b=b===void 0?{}:b;var h,N;return g.R(function(p){if(p.j==1)return g.J(p,g.CQ(),2);if(p.j!=3){h=p.K;if(!h)return p.return();lf(C);return g.J(p,s2l(C,h),3)}N=p.K;return g.J(p,t6l(N,b,h),0)})}; +BM1=function(C,b){b=b===void 0?{}:b;var h;return g.R(function(N){if(N.j==1)return g.J(N,g.CQ(),2);if(N.j!=3){h=N.K;if(!h)return N.return();lf(C);return g.J(N,dm(C,b),3)}return g.J(N,ti(C,h),0)})}; +bZ=function(C,b){WG.call(this,C,b);this.options=b;lf(C)}; +Io6=function(C,b){var h;return function(){h||(h=new bZ(C,b));return h}}; +g.h0=function(C,b){return Io6(C,b)}; +NP=function(C){return g.E1(xMV(),C)}; +w4o=function(C,b,h,N){var p,P,c;return g.R(function(e){switch(e.j){case 1:return p={config:C,hashData:b,timestamp:N!==void 0?N:(0,g.Ai)()},g.J(e,NP(h),2);case 2:return P=e.K,g.J(e,P.clear("hotConfigStore"),3);case 3:return g.J(e,g.Q9(P,"hotConfigStore",p),4);case 4:return c=e.K,e.return(c)}})}; +CHK=function(C,b,h,N,p){var P,c,e;return g.R(function(L){switch(L.j){case 1:return P={config:C,hashData:b,configData:h,timestamp:p!==void 0?p:(0,g.Ai)()},g.J(L,NP(N),2);case 2:return c=L.K,g.J(L,c.clear("coldConfigStore"),3);case 3:return g.J(L,g.Q9(c,"coldConfigStore",P),4);case 4:return e=L.K,L.return(e)}})}; +beo=function(C){var b,h;return g.R(function(N){return N.j==1?g.J(N,NP(C),2):N.j!=3?(b=N.K,h=void 0,g.J(N,g.uf(b,["coldConfigStore"],{mode:"readwrite",M8:!0},function(p){return g.vG(p.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(P){h=P.getValue()})}),3)):N.return(h)})}; +hAW=function(C){var b,h;return g.R(function(N){return N.j==1?g.J(N,NP(C),2):N.j!=3?(b=N.K,h=void 0,g.J(N,g.uf(b,["hotConfigStore"],{mode:"readwrite",M8:!0},function(p){return g.vG(p.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(P){h=P.getValue()})}),3)):N.return(h)})}; +NWK=function(){return g.R(function(C){return g.J(C,TMl("ytGcfConfig"),0)})}; +gf=function(){g.O.call(this);this.K=[];this.j=[];var C=g.Dx("yt.gcf.config.hotUpdateCallbacks");C?(this.K=[].concat(g.M(C)),this.j=C):(this.j=[],g.Ol("yt.gcf.config.hotUpdateCallbacks",this.j))}; +ei=function(){var C=this;this.G=!1;this.N=this.X=0;this.W=new gf;this.dn={s_h:function(){C.G=!0}, +dpz:function(){return C.j}, +GSX:function(b){pQ(C,b)}, +p6:function(b){C.p6(b)}, +xkO:function(b){Pm(C,b)}, +Ey:function(){return C.coldHashData}, +M3:function(){return C.hotHashData}, +p44:function(){return C.K}, +Jci:function(){return ji()}, +ych:function(){return cm()}, +Qg2:function(){return g.Dx("yt.gcf.config.coldHashData")}, +MT$:function(){return g.Dx("yt.gcf.config.hotHashData")}, +iB6:function(){gtH(C)}, +N_o:function(){C.p6(void 0);kw(C);delete ei.instance}, +WAi:function(b){C.N=b}, +EAf:function(){return C.N}}}; +pC6=function(){if(!ei.instance){var C=new ei;ei.instance=C}return ei.instance}; +chl=function(C){var b;g.R(function(h){if(h.j==1)return g.HQ("start_client_gcf")||g.HQ("delete_gcf_config_db")?g.HQ("start_client_gcf")?g.J(h,g.CQ(),3):h.WE(2):h.return();h.j!=2&&((b=h.K)&&g.Bj()&&!g.HQ("delete_gcf_config_db")?(C.G=!0,gtH(C)):(PHH(C),jol(C)));return g.HQ("delete_gcf_config_db")?g.J(h,NWK(),0):h.WE(0)})}; +LQ=function(){var C;return(C=cm())!=null?C:g.BC("RAW_HOT_CONFIG_GROUP")}; +kfl=function(C){var b,h,N,p,P,c;return g.R(function(e){switch(e.j){case 1:if(C.K)return e.return(cm());if(!C.G)return b=g.HG("getHotConfig IDB not initialized"),ba(b),e.return(Promise.reject(b));h=wm();N=g.BC("TIME_CREATED_MS");if(!h){p=g.HG("getHotConfig token error");ba(p);e.WE(2);break}return g.J(e,hAW(h),3);case 3:if((P=e.K)&&P.timestamp>N)return pQ(C,P.config),C.p6(P.hashData),e.return(cm());case 2:jol(C);if(!(h&&C.K&&C.hotHashData)){e.WE(4);break}return g.J(e,w4o(C.K,C.hotHashData,h,N),4);case 4:return C.K? +e.return(cm()):(c=new g.tJ("Config not available in ytConfig"),ba(c),e.return(Promise.reject(c)))}})}; +L7l=function(C){var b,h,N,p,P,c;return g.R(function(e){switch(e.j){case 1:if(C.j)return e.return(ji());if(!C.G)return b=g.HG("getColdConfig IDB not initialized"),ba(b),e.return(Promise.reject(b));h=wm();N=g.BC("TIME_CREATED_MS");if(!h){p=g.HG("getColdConfig");ba(p);e.WE(2);break}return g.J(e,beo(h),3);case 3:if((P=e.K)&&P.timestamp>N)return Pm(C,P.config),eA1(C,P.configData),kw(C,P.hashData),e.return(ji());case 2:PHH(C);if(!(h&&C.j&&C.coldHashData&&C.configData)){e.WE(4);break}return g.J(e,CHK(C.j, +C.coldHashData,C.configData,h,N),4);case 4:return C.j?e.return(ji()):(c=new g.tJ("Config not available in ytConfig"),ba(c),e.return(Promise.reject(c)))}})}; +gtH=function(C){if(!C.K||!C.j){if(!wm()){var b=g.HG("scheduleGetConfigs");ba(b)}C.X||(C.X=g.WD.Vy(function(){return g.R(function(h){switch(h.j){case 1:return g.z6(h,2),g.J(h,kfl(C),4);case 4:g.VH(h,3);break;case 2:g.MW(h);case 3:return g.z6(h,5),g.J(h,L7l(C),7);case 7:g.VH(h,6);break;case 5:g.MW(h);case 6:C.X&&(C.X=0),g.$_(h)}})},100))}}; +Zel=function(C,b,h){var N,p,P;return g.R(function(c){switch(c.j){case 1:if(!g.HQ("start_client_gcf")){c.WE(0);break}h&&pQ(C,h);C.p6(b);N=wm();if(!N){c.WE(3);break}if(h){c.WE(4);break}return g.J(c,hAW(N),5);case 5:p=c.K,h=(P=p)==null?void 0:P.config;case 4:return g.J(c,w4o(h,b,N),3);case 3:if(h)for(var e=h,L=g.z(C.W.j),Z=L.next();!Z.done;Z=L.next())Z=Z.value,Z(e);g.$_(c)}})}; +YBW=function(C,b,h){var N,p,P,c;return g.R(function(e){if(e.j==1){if(!g.HQ("start_client_gcf"))return e.WE(0);kw(C,b);return(N=wm())?h?e.WE(4):g.J(e,beo(N),5):e.WE(0)}e.j!=4&&(p=e.K,h=(P=p)==null?void 0:P.config);if(!h)return e.WE(0);c=h.configData;return g.J(e,CHK(h,b,c,N),0)})}; +aOx=function(){var C=pC6(),b=(0,g.Ai)()-C.N;if(!(C.N!==0&&b0&&(b.request={internalExperimentFlags:h});otW(C,void 0,b);F7W(void 0,b);GfV(void 0,b);SB_(C,void 0,b);$Jl(void 0,b);g.HQ("start_client_gcf")&&zA_(void 0,b);g.BC("DELEGATED_SESSION_ID")&& +!g.HQ("pageid_as_header_web")&&(b.user={onBehalfOfUser:g.BC("DELEGATED_SESSION_ID")});!g.HQ("fill_delegate_context_in_gel_killswitch")&&(C=g.BC("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(b.user=Object.assign({},b.user,{serializedDelegationContext:C}));C=g.BC("INNERTUBE_CONTEXT");var N;if(g.HQ("enable_persistent_device_token")&&(C==null?0:(N=C.client)==null?0:N.rolloutToken)){var p;b.client.rolloutToken=C==null?void 0:(p=C.client)==null?void 0:p.rolloutToken}N=Object;p=N.assign;C=b.client; +h={};for(var P=g.z(Object.entries(gJ(g.BC("DEVICE","")))),c=P.next();!c.done;c=P.next()){var e=g.z(c.value);c=e.next().value;e=e.next().value;c==="cbrand"?h.deviceMake=e:c==="cmodel"?h.deviceModel=e:c==="cbr"?h.browserName=e:c==="cbrver"?h.browserVersion=e:c==="cos"?h.osName=e:c==="cosver"?h.osVersion=e:c==="cplatform"&&(h.platform=e)}b.client=p.call(N,C,h);return b}; +otW=function(C,b,h){C=C.cn;if(C==="WEB"||C==="MWEB"||C===1||C===2)if(b){h=jY(b,rW,96)||new rW;var N=Kp();N=Object.keys(HeV).indexOf(N);N=N===-1?null:N;N!==null&&SY(h,3,N);cJ(b,rW,96,h)}else h&&(h.client.mainAppWebInfo=(N=h.client.mainAppWebInfo)!=null?N:{},h.client.mainAppWebInfo.webDisplayMode=Kp())}; +F7W=function(C,b){var h=g.Dx("yt.embedded_player.embed_url");h&&(C?(b=jY(C,QS,7)||new QS,F4(b,4,h),cJ(C,QS,7,b)):b&&(b.thirdParty={embedUrl:h}))}; +GfV=function(C,b){var h;if(g.HQ("web_log_memory_total_kbytes")&&((h=g.sl.navigator)==null?0:h.deviceMemory)){var N;h=(N=g.sl.navigator)==null?void 0:N.deviceMemory;C?OW(C,95,zx(h*1E6)):b&&(b.client.memoryTotalKbytes=""+h*1E6)}}; +SB_=function(C,b,h){if(C.appInstallData)if(b){var N;h=(N=jY(b,yS,62))!=null?N:new yS;F4(h,6,C.appInstallData);cJ(b,yS,62,h)}else h&&(h.client.configInfo=h.client.configInfo||{},h.client.configInfo.appInstallData=C.appInstallData)}; +$Jl=function(C,b){var h=p4l();h&&(C?SY(C,61,Vsl[h]):b&&(b.client.connectionType=h));g.HQ("web_log_effective_connection_type")&&(h=j21())&&(C?SY(C,94,Msl[h]):b&&(b.client.effectiveConnectionType=h))}; +qBl=function(C,b,h){h=h===void 0?{}:h;var N={};g.BC("EOM_VISITOR_DATA")?N={"X-Goog-EOM-Visitor-Id":g.BC("EOM_VISITOR_DATA")}:N={"X-Goog-Visitor-Id":h.visitorData||g.BC("VISITOR_DATA","")};if(b&&b.includes("www.youtube-nocookie.com"))return N;b=h.FD||g.BC("AUTHORIZATION");b||(C?b="Bearer "+g.Dx("gapi.auth.getToken")().access_token:(C=wDW().Og(at),g.HQ("pageid_as_header_web")||delete C["X-Goog-PageId"],N=Object.assign({},N,C)));b&&(N.Authorization=b);return N}; +zA_=function(C,b){var h=aOx();if(h){var N=h.coldConfigData,p=h.coldHashData;h=h.hotHashData;if(C){var P;b=(P=jY(C,yS,62))!=null?P:new yS;N=F4(b,1,N);F4(N,3,p).p6(h);cJ(C,yS,62,b)}else b&&(b.client.configInfo=b.client.configInfo||{},N&&(b.client.configInfo.coldConfigData=N),p&&(b.client.configInfo.coldHashData=p),h&&(b.client.configInfo.hotHashData=h))}}; +lZ=function(C,b){this.version=C;this.args=b}; +ot=function(C,b){this.topic=C;this.j=b}; +Go=function(C,b){var h=FP();h&&h.publish.call(h,C.toString(),C,b)}; +AhH=function(C){var b=mJ6,h=FP();if(!h)return 0;var N=h.subscribe(b.toString(),function(p,P){var c=g.Dx("ytPubsub2Pubsub2SkipSubKey");c&&c==N||(c=function(){if(Si[N])try{if(P&&b instanceof ot&&b!=p)try{var e=b.j,L=P;if(!L.args||!L.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!e.BA){var Z=new e;e.BA=Z.version}var Y=e.BA}catch(a){}if(!Y||L.version!=Y)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{P=Reflect.construct(e, +g.NI(L.args))}catch(a){throw a.message="yt.pubsub2.Data.deserialize(): "+a.message,a;}}catch(a){throw a.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+b.toString()+": "+a.message,a;}C.call(window,P)}catch(a){g.wW(a)}},fO_[b.toString()]?g.hi()?g.WD.Vy(c):g.Fu(c,0):c())}); +Si[N]=!0;MP[b.toString()]||(MP[b.toString()]=[]);MP[b.toString()].push(N);return N}; +ieW=function(){var C=yhl,b=AhH(function(h){C.apply(void 0,arguments);rhU(b)}); +return b}; +rhU=function(C){var b=FP();b&&(typeof C==="number"&&(C=[C]),g.oI(C,function(h){b.unsubscribeByKey(h);delete Si[h]}))}; +FP=function(){return g.Dx("ytPubsub2Pubsub2Instance")}; +qP=function(C,b,h){h=h===void 0?{sampleRate:.1}:h;Math.random()XCS||c=vtl&&(Up++,g.HQ("abandon_compression_after_N_slow_zips")?Qo===g.Vv("compression_disable_point")&&Up>DJl&&(J0=!1):J0=!1);dJV(b);N.headers||(N.headers={});N.headers["Content-Encoding"]="gzip";N.postBody=C;N.postParams=void 0;p(h,N)}; +W7V=function(C){var b=b===void 0?!1:b;var h=h===void 0?!1:h;var N=(0,g.Ai)(),p={startTime:N,ticks:{},infos:{}},P=b?g.Dx("yt.logging.gzipForFetch",!1):!0;if(J0&&P){if(!C.body)return C;try{var c=h?C.body:typeof C.body==="string"?C.body:JSON.stringify(C.body);P=c;if(!h&&typeof c==="string"){var e=UJW(c);if(e!=null&&(e>XCS||e=vtl)if(Up++,g.HQ("abandon_compression_after_N_slow_zips")||g.HQ("abandon_compression_after_N_slow_zips_lr")){b=Up/Qo;var Z=DJl/g.Vv("compression_disable_point");Qo>0&&Qo%g.Vv("compression_disable_point")===0&&b>=Z&&(J0=!1)}else J0=!1;dJV(p)}}C.headers=Object.assign({},{"Content-Encoding":"gzip"},C.headers||{});C.body=P;return C}catch(Y){return ba(Y),C}}else return C}; +UJW=function(C){try{return(new Blob(C.split(""))).size}catch(b){return ba(b),null}}; +dJV=function(C){g.HQ("gel_compression_csi_killswitch")||!g.HQ("log_gel_compression_latency")&&!g.HQ("log_gel_compression_latency_lr")||qP("gel_compression",C,{sampleRate:.1})}; +KQ=function(C){var b=this;this.Qn=this.j=!1;this.potentialEsfErrorCounter=this.K=0;this.handleError=function(){}; +this.sz=function(){}; +this.now=Date.now;this.c8=!1;this.dn={qY6:function(Y){b.z5=Y}, +u3$:function(){b.s5()}, +rr:function(){b.OH()}, +Cs:function(Y){return g.R(function(a){return g.J(a,b.Cs(Y),0)})}, +rN:function(Y,a){return b.rN(Y,a)}, +pA:function(){b.pA()}}; +var h;this.bU=(h=C.bU)!=null?h:100;var N;this.gE=(N=C.gE)!=null?N:1;var p;this.hx=(p=C.hx)!=null?p:2592E6;var P;this.HD=(P=C.HD)!=null?P:12E4;var c;this.m8=(c=C.m8)!=null?c:5E3;var e;this.z5=(e=C.z5)!=null?e:void 0;this.je=!!C.je;var L;this.uj=(L=C.uj)!=null?L:.1;var Z;this.X2=(Z=C.X2)!=null?Z:10;C.handleError&&(this.handleError=C.handleError);C.sz&&(this.sz=C.sz);C.c8&&(this.c8=C.c8);C.Qn&&(this.Qn=C.Qn);this.Fo=C.Fo;this.OS=C.OS;this.TO=C.TO;this.fX=C.fX;this.sendFn=C.sendFn;this.bk=C.bk;this.t2= +C.t2;XP(this)&&(!this.Fo||this.Fo("networkless_logging"))&&EtH(this)}; +EtH=function(C){XP(C)&&!C.c8&&(C.j=!0,C.je&&Math.random()<=C.uj&&C.TO.by(C.z5),C.pA(),C.fX.c6()&&C.s5(),C.fX.listen(C.bk,C.s5.bind(C)),C.fX.listen(C.t2,C.OH.bind(C)))}; +TW_=function(C,b){if(!XP(C))throw Error("IndexedDB is not supported: updateRequestHandlers");var h=b.options.onError?b.options.onError:function(){}; +b.options.onError=function(p,P){var c,e,L,Z;return g.R(function(Y){switch(Y.j){case 1:c=nt_(P);(e=tsU(P))&&C.Fo&&C.Fo("web_enable_error_204")&&C.handleError(Error("Request failed due to compression"),b.url,P);if(!(C.Fo&&C.Fo("nwl_consider_error_code")&&c||C.Fo&&!C.Fo("nwl_consider_error_code")&&C.potentialEsfErrorCounter<=C.X2)){Y.WE(2);break}if(!C.fX.uJ){Y.WE(3);break}return g.J(Y,C.fX.uJ(),3);case 3:if(C.fX.c6()){Y.WE(2);break}h(p,P);if(!C.Fo||!C.Fo("nwl_consider_error_code")||((L=b)==null?void 0: +L.id)===void 0){Y.WE(6);break}return g.J(Y,C.TO.QA(b.id,C.z5,!1),6);case 6:return Y.return();case 2:if(C.Fo&&C.Fo("nwl_consider_error_code")&&!c&&C.potentialEsfErrorCounter>C.X2)return Y.return();C.potentialEsfErrorCounter++;if(((Z=b)==null?void 0:Z.id)===void 0){Y.WE(8);break}return b.sendCount=400&&C<=599?!1:!0}; +tsU=function(C){var b;C=C==null?void 0:(b=C.error)==null?void 0:b.code;return!(C!==400&&C!==415)}; +BWH=function(){if(Op)return Op();var C={};Op=g.h0("LogsDatabaseV2",{R_:(C.LogsRequestsStore={ES:2},C),shared:!1,upgrade:function(b,h,N){h(2)&&g.rm(b,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});h(3);h(5)&&(N=N.objectStore("LogsRequestsStore"),N.j.indexNames.contains("newRequest")&&N.j.deleteIndex("newRequest"),g.Xy(N,"newRequestV2",["status","interface","timestamp"]));h(7)&&Ji(b,"sapisid");h(9)&&Ji(b,"SWHealthLog")}, +version:9});return Op()}; +vm=function(C){return g.E1(BWH(),C)}; +xJ6=function(C,b){var h,N,p,P;return g.R(function(c){if(c.j==1)return h={startTime:(0,g.Ai)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.J(c,vm(b),2);if(c.j!=3)return N=c.K,p=Object.assign({},C,{options:JSON.parse(JSON.stringify(C.options)),interface:g.BC("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.J(c,g.Q9(N,"LogsRequestsStore",p),3);P=c.K;h.ticks.tc=(0,g.Ai)();IOl(h);return c.return(P)})}; +wCl=function(C,b){var h,N,p,P,c,e,L,Z;return g.R(function(Y){if(Y.j==1)return h={startTime:(0,g.Ai)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.J(Y,vm(b),2);if(Y.j!=3)return N=Y.K,p=g.BC("INNERTUBE_CONTEXT_CLIENT_NAME",0),P=[C,p,0],c=[C,p,(0,g.Ai)()],e=IDBKeyRange.bound(P,c),L="prev",g.HQ("use_fifo_for_networkless")&&(L="next"),Z=void 0,g.J(Y,g.uf(N,["LogsRequestsStore"],{mode:"readwrite",M8:!0},function(a){return g.vG(a.objectStore("LogsRequestsStore").index("newRequestV2"), +{query:e,direction:L},function(l){l.getValue()&&(Z=l.getValue(),C==="NEW"&&(Z.status="QUEUED",l.update(Z)))})}),3); +h.ticks.tc=(0,g.Ai)();IOl(h);return Y.return(Z)})}; +CaV=function(C,b){var h;return g.R(function(N){if(N.j==1)return g.J(N,vm(b),2);h=N.K;return N.return(g.uf(h,["LogsRequestsStore"],{mode:"readwrite",M8:!0},function(p){var P=p.objectStore("LogsRequestsStore");return P.get(C).then(function(c){if(c)return c.status="QUEUED",g.RR(P,c).then(function(){return c})})}))})}; +bNV=function(C,b,h,N){h=h===void 0?!0:h;var p;return g.R(function(P){if(P.j==1)return g.J(P,vm(b),2);p=P.K;return P.return(g.uf(p,["LogsRequestsStore"],{mode:"readwrite",M8:!0},function(c){var e=c.objectStore("LogsRequestsStore");return e.get(C).then(function(L){return L?(L.status="NEW",h&&(L.sendCount+=1),N!==void 0&&(L.options.compress=N),g.RR(e,L).then(function(){return L})):g.M$.resolve(void 0)})}))})}; +hdx=function(C,b){var h;return g.R(function(N){if(N.j==1)return g.J(N,vm(b),2);h=N.K;return N.return(h.delete("LogsRequestsStore",C))})}; +NJl=function(C){var b,h;return g.R(function(N){if(N.j==1)return g.J(N,vm(C),2);b=N.K;h=(0,g.Ai)()-2592E6;return g.J(N,g.uf(b,["LogsRequestsStore"],{mode:"readwrite",M8:!0},function(p){return g.KB(p.objectStore("LogsRequestsStore"),{},function(P){if(P.getValue().timestamp<=h)return P.delete().then(function(){return g.s1(P)})})}),0)})}; +gGo=function(){g.R(function(C){return g.J(C,TMl("LogsDatabaseV2"),0)})}; +IOl=function(C){g.HQ("nwl_csi_killswitch")||qP("networkless_performance",C,{sampleRate:1})}; +Pac=function(C){return g.E1(pQH(),C)}; +jfl=function(C){var b,h;g.R(function(N){if(N.j==1)return g.J(N,Pac(C),2);b=N.K;h=(0,g.Ai)()-2592E6;return g.J(N,g.uf(b,["SWHealthLog"],{mode:"readwrite",M8:!0},function(p){return g.KB(p.objectStore("SWHealthLog"),{},function(P){if(P.getValue().timestamp<=h)return P.delete().then(function(){return g.s1(P)})})}),0)})}; +cKU=function(C){var b;return g.R(function(h){if(h.j==1)return g.J(h,Pac(C),2);b=h.K;return g.J(h,b.clear("SWHealthLog"),0)})}; +g.DY=function(C,b,h,N,p,P,c){p=p===void 0?"":p;P=P===void 0?!1:P;c=c===void 0?!1:c;if(C)if(h&&!g.ES())ba(new g.tJ("Legacy referrer-scrubbed ping detected")),C&&kuc(C,void 0,{scrubReferrer:!0});else if(p)mt(C,b,"POST",p,N);else if(g.BC("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||N||c)mt(C,b,"GET","",N,void 0,P,c);else{b:{try{var e=new tfW({url:C});if(e.G?typeof e.N!=="string"||e.N.length===0?0:{version:3,Ek:e.N,aj:qv(e.j,"act=1","ri=1",Tgl(e))}:e.W&&{version:4,Ek:qv(e.j,"dct=1","suid="+e.X,""),aj:qv(e.j, +"act=1","ri=1","suid="+e.X)}){var L=Je(g.Uq(5,C));var Z=!(!L||!L.endsWith("/aclk")||Eq(C,"ri")!=="1");break b}}catch(Y){}Z=!1}Z?edS(C)?(b&&b(),h=!0):h=!1:h=!1;h||kuc(C,b)}}; +edS=function(C,b){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(C,b===void 0?"":b))return!0}catch(h){}return!1}; +kuc=function(C,b,h){h=h===void 0?{}:h;var N=new Image,p=""+Ltl++;df[p]=N;N.onload=N.onerror=function(){b&&df[p]&&b();delete df[p]}; +h.scrubReferrer&&(N.referrerPolicy="no-referrer");N.src=C}; +ZNV=function(C){var b;return((b=document.featurePolicy)==null?0:b.allowedFeatures().includes("attribution-reporting"))?C+"&nis=6":C+"&nis=5"}; +Ep=function(){Wm||(Wm=new gm("yt.offline"));return Wm}; +YS6=function(C){if(g.HQ("offline_error_handling")){var b=Ep().get("errors",!0)||{};b[C.message]={name:C.name,stack:C.stack};C.level&&(b[C.message].level=C.level);Ep().set("errors",b,2592E3,!0)}}; +nQ=function(){this.j=new Map;this.K=!1}; +t0=function(){if(!nQ.instance){var C=g.Dx("yt.networkRequestMonitor.instance")||new nQ;g.Ol("yt.networkRequestMonitor.instance",C);nQ.instance=C}return nQ.instance}; +To=function(){g.wQ.call(this);var C=this;this.K=!1;this.j=mTl();this.j.listen("networkstatus-online",function(){if(C.K&&g.HQ("offline_error_handling")){var b=Ep().get("errors",!0);if(b){for(var h in b)if(b[h]){var N=new g.tJ(h,"sent via offline_errors");N.name=b[h].name;N.stack=b[h].stack;N.level=b[h].level;g.wW(N)}Ep().set("errors",{},2592E3,!0)}}})}; +a1V=function(){if(!To.instance){var C=g.Dx("yt.networkStatusManager.instance")||new To;g.Ol("yt.networkStatusManager.instance",C);To.instance=C}return To.instance}; +g.Bm=function(C){C=C===void 0?{}:C;g.wQ.call(this);var b=this;this.j=this.X=0;this.K=a1V();var h=g.Dx("yt.networkStatusManager.instance.listen").bind(this.K);h&&(C.rateLimit?(this.rateLimit=C.rateLimit,h("networkstatus-online",function(){l1_(b,"publicytnetworkstatus-online")}),h("networkstatus-offline",function(){l1_(b,"publicytnetworkstatus-offline")})):(h("networkstatus-online",function(){b.dispatchEvent("publicytnetworkstatus-online")}),h("networkstatus-offline",function(){b.dispatchEvent("publicytnetworkstatus-offline")})))}; +l1_=function(C,b){C.rateLimit?C.j?(g.WD.E2(C.X),C.X=g.WD.Vy(function(){C.N!==b&&(C.dispatchEvent(b),C.N=b,C.j=(0,g.Ai)())},C.rateLimit-((0,g.Ai)()-C.j))):(C.dispatchEvent(b),C.N=b,C.j=(0,g.Ai)()):C.dispatchEvent(b)}; +xw=function(){var C=KQ.call;It||(It=new g.Bm({pYE:!0,uko:!0}));C.call(KQ,this,{TO:{by:NJl,S7:hdx,M_:wCl,qIX:CaV,QA:bNV,set:xJ6},fX:It,handleError:function(b,h,N){var p,P=N==null?void 0:(p=N.error)==null?void 0:p.code;if(P===400||P===415){var c;ba(new g.tJ(b.message,h,N==null?void 0:(c=N.error)==null?void 0:c.code),void 0,void 0,void 0,!0)}else g.wW(b)}, +sz:ba,sendFn:oGl,now:g.Ai,tY:YS6,OS:g.bf(),bk:"publicytnetworkstatus-online",t2:"publicytnetworkstatus-offline",je:!0,uj:.1,X2:g.Vv("potential_esf_error_limit",10),Fo:g.HQ,c8:!(g.Bj()&&g.XX(document.location.toString())!=="www.youtube-nocookie.com")});this.N=new g.o0;g.HQ("networkless_immediately_drop_all_requests")&&gGo();BM1("LogsDatabaseV2")}; +wf=function(){var C=g.Dx("yt.networklessRequestController.instance");C||(C=new xw,g.Ol("yt.networklessRequestController.instance",C),g.HQ("networkless_logging")&&g.CQ().then(function(b){C.z5=b;EtH(C);C.N.resolve();C.je&&Math.random()<=C.uj&&C.z5&&jfl(C.z5);g.HQ("networkless_immediately_drop_sw_health_store")&&FtK(C)})); +return C}; +FtK=function(C){var b;g.R(function(h){if(!C.z5)throw b=g.HG("clearSWHealthLogsDb"),b;return h.return(cKU(C.z5).catch(function(N){C.handleError(N)}))})}; +oGl=function(C,b,h,N){N=N===void 0?!1:N;b=g.HQ("web_fp_via_jspb")?Object.assign({},b):b;g.HQ("use_cfr_monitor")&&Gu1(C,b);if(g.HQ("use_request_time_ms_header"))b.headers&&kG(C)&&(b.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.Ai)())));else{var p;if((p=b.postParams)==null?0:p.requestTimeMs)b.postParams.requestTimeMs=Math.round((0,g.Ai)())}h&&Object.keys(b).length===0?g.DY(C):b.compress?b.postBody?(typeof b.postBody!=="string"&&(b.postBody=JSON.stringify(b.postBody)),Rt(C,b.postBody, +b,g.fN,N)):Rt(C,JSON.stringify(b.postParams),b,AK,N):g.fN(C,b)}; +Cr=function(C,b){g.HQ("use_event_time_ms_header")&&kG(C)&&(b.headers||(b.headers={}),b.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.Ai)())));return b}; +Gu1=function(C,b){var h=b.onError?b.onError:function(){}; +b.onError=function(p,P){t0().requestComplete(C,!1);h(p,P)}; +var N=b.onSuccess?b.onSuccess:function(){}; +b.onSuccess=function(p,P){t0().requestComplete(C,!0);N(p,P)}}; +g.bt=function(C){this.config_=null;C?this.config_=C:lOU()&&(this.config_=g.ZY())}; +g.hp=function(C,b,h,N){function p(Z){try{if((Z===void 0?0:Z)&&N.retry&&!N.networklessOptions.bypassNetworkless)P.method="POST",N.networklessOptions.writeThenSend?wf().writeThenSend(L,P):wf().sendAndWrite(L,P);else if(N.compress){var Y=!N.networklessOptions.writeThenSend;if(P.postBody){var a=P.postBody;typeof a!=="string"&&(a=JSON.stringify(P.postBody));Rt(L,a,P,g.fN,Y)}else Rt(L,JSON.stringify(P.postParams),P,AK,Y)}else g.HQ("web_all_payloads_via_jspb")?g.fN(L,P):AK(L,P)}catch(l){if(l.name==="InvalidAccessError")ba(Error("An extension is blocking network request.")); +else throw l;}} +!g.BC("VISITOR_DATA")&&b!=="visitor_id"&&Math.random()<.01&&ba(new g.tJ("Missing VISITOR_DATA when sending innertube request.",b,h,N));if(!C.isReady())throw C=new g.tJ("innertube xhrclient not ready",b,h,N),g.wW(C),C;var P={headers:N.headers||{},method:"POST",postParams:h,postBody:N.postBody,postBodyFormat:N.postBodyFormat||"JSON",onTimeout:function(){N.onTimeout()}, +onFetchTimeout:N.onTimeout,onSuccess:function(Z,Y){if(N.onSuccess)N.onSuccess(Y)}, +onFetchSuccess:function(Z){if(N.onSuccess)N.onSuccess(Z)}, +onError:function(Z,Y){if(N.onError)N.onError(Y)}, +onFetchError:function(Z){if(N.onError)N.onError(Z)}, +timeout:N.timeout,withCredentials:!0,compress:N.compress};P.headers["Content-Type"]||(P.headers["Content-Type"]="application/json");h="";var c=C.config_.u7;c&&(h=c);c=C.config_.SF||!1;var e=qBl(c,h,N);Object.assign(P.headers,e);P.headers.Authorization&&!h&&c&&(P.headers["x-origin"]=window.location.origin);var L=jX(""+h+("/youtubei/"+C.config_.innertubeApiVersion+"/"+b),{alt:"json"});g.Dx("ytNetworklessLoggingInitializationOptions")&&SSK.isNwlInitialized?vbl().then(function(Z){p(Z)}):p(!1)}; +g.j8=function(C,b,h){var N=g.N5();if(N&&b){var p=N.subscribe(C,function(){function P(){gj[p]&&b.apply&&typeof b.apply=="function"&&b.apply(h||window,c)} +var c=arguments;try{g.pr[C]?P():g.Fu(P,0)}catch(e){g.wW(e)}},h); +gj[p]=!0;Pl[C]||(Pl[C]=[]);Pl[C].push(p);return p}return 0}; +$Qc=function(C){var b=g.j8("LOGGED_IN",function(h){C.apply(void 0,arguments);g.cl(b)})}; +g.cl=function(C){var b=g.N5();b&&(typeof C==="number"?C=[C]:typeof C==="string"&&(C=[parseInt(C,10)]),g.oI(C,function(h){b.unsubscribeByKey(h);delete gj[h]}))}; +g.kp=function(C,b){var h=g.N5();return h?h.publish.apply(h,arguments):!1}; +HN1=function(C){var b=g.N5();if(b)if(b.clear(C),C)zdV(C);else for(var h in Pl)zdV(h)}; +g.N5=function(){return g.sl.ytPubsubPubsubInstance}; +zdV=function(C){Pl[C]&&(C=Pl[C],g.oI(C,function(b){gj[b]&&delete gj[b]}),C.length=0)}; +g.e8=function(C,b,h){VX_(C,b,h===void 0?null:h)}; +VX_=function(C,b,h){h=h===void 0?null:h;var N=MXS(C),p=document.getElementById(N),P=p&&Uv_(p),c=p&&!P;P?b&&b():(b&&(P=g.j8(N,b),b=""+g.Il(b),qSl[b]=P),c||(p=mQS(C,N,function(){Uv_(p)||(Qbl(p),g.kp(N),g.Fu(function(){HN1(N)},0))},h)))}; +mQS=function(C,b,h,N){N=N===void 0?null:N;var p=g.CM("SCRIPT");p.id=b;p.onload=function(){h&&setTimeout(h,0)}; +p.onreadystatechange=function(){switch(p.readyState){case "loaded":case "complete":p.onload()}}; +N&&p.setAttribute("nonce",N);g.d2(p,g.m7(C));C=document.getElementsByTagName("head")[0]||document.body;C.insertBefore(p,C.firstChild);return p}; +MXS=function(C){var b=document.createElement("a");g.Re(b,C);C=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+CR(C)}; +Lr=function(C,b){if(C===b)C=!0;else if(Array.isArray(C)&&Array.isArray(b))C=g.Zu(C,b,Lr);else if(g.T6(C)&&g.T6(b))a:if(g.qe(C).length!=g.qe(b).length)C=!1;else{for(var h in C)if(!Lr(C[h],b[h])){C=!1;break a}C=!0}else C=!1;return C}; +aF=function(C){var b=g.ro.apply(1,arguments);if(!ZG(C)||b.some(function(N){return!ZG(N)}))throw Error("Only objects may be merged."); +b=g.z(b);for(var h=b.next();!h.done;h=b.next())Yp(C,h.value)}; +Yp=function(C,b){for(var h in b)if(ZG(b[h])){if(h in C&&!ZG(C[h]))throw Error("Cannot merge an object into a non-object.");h in C||(C[h]={});Yp(C[h],b[h])}else if(S8(b[h])){if(h in C&&!S8(C[h]))throw Error("Cannot merge an array into a non-array.");h in C||(C[h]=[]);f1S(C[h],b[h])}else C[h]=b[h];return C}; +f1S=function(C,b){b=g.z(b);for(var h=b.next();!h.done;h=b.next())h=h.value,ZG(h)?C.push(Yp({},h)):S8(h)?C.push(f1S([],h)):C.push(h);return C}; +ZG=function(C){return typeof C==="object"&&!Array.isArray(C)}; +S8=function(C){return typeof C==="object"&&Array.isArray(C)}; +$p=function(C){g.O.call(this);this.K=C}; +zB=function(C){$p.call(this,!0);this.j=C}; +AKo=function(C,b){g.O.call(this);var h=this;this.N=[];this.J=!1;this.K=0;this.G=this.W=this.X=!1;this.KO=null;var N=(0,g.x_)(C,b);this.j=new g.C2(function(){return N(h.KO)},300); +g.D(this,this.j);this.V=this.L=Infinity}; +yKl=function(C,b){if(!b)return!1;for(var h=0;h-1)throw Error("Deps cycle for: "+b);if(C.K.has(b))return C.K.get(b);if(!C.j.has(b)){if(N)return;throw Error("No provider for: "+b);}N=C.j.get(b);h.push(b);if(N.wT!==void 0)var p=N.wT;else if(N.ALf)p=N[Jp]?uu6(C,N[Jp],h):[],p=N.ALf.apply(N,g.M(p));else if(N.aO){p=N.aO;var P=p[Jp]?uu6(C,p[Jp],h):[];p=new (Function.prototype.bind.apply(p,[null].concat(g.M(P))))}else throw Error("Could not resolve providers for: "+b);h.pop();N.h$6||C.K.set(b,p); +return p}; +uu6=function(C,b,h){return b?b.map(function(N){return N instanceof rj?ut(C,N.key,h,!0):ut(C,N,h)}):[]}; +QO=function(){RF||(RF=new JKH);return RF}; +Xb=function(){var C,b;return"h5vcc"in Ux&&((C=Ux.h5vcc.traceEvent)==null?0:C.traceBegin)&&((b=Ux.h5vcc.traceEvent)==null?0:b.traceEnd)?1:"performance"in Ux&&Ux.performance.mark&&Ux.performance.measure?2:0}; +Kr=function(C){var b=Xb();switch(b){case 1:Ux.h5vcc.traceEvent.traceBegin("YTLR",C);break;case 2:Ux.performance.mark(C+"-start");break;case 0:break;default:Pv(b,"unknown trace type")}}; +Rd6=function(C){var b=Xb();switch(b){case 1:Ux.h5vcc.traceEvent.traceEnd("YTLR",C);break;case 2:b=C+"-start";var h=C+"-end";Ux.performance.mark(h);Ux.performance.measure(C,b,h);break;case 0:break;default:Pv(b,"unknown trace type")}}; +Qfx=function(C){var b,h;(h=(b=window).onerror)==null||h.call(b,C.message,"",0,0,C)}; +UQW=function(C){var b=this;var h=h===void 0?0:h;var N=N===void 0?g.bf():N;this.N=h;this.scheduler=N;this.K=new g.o0;this.j=C;for(C={kP:0};C.kP=1E3?p():N>=C?kM||(kM=eT(function(){p();kM=void 0},0)):P-e>=10&&(CU_(b,h.tier),c.X=P)}; +TJ6=function(C,b){if(C.endpoint==="log_event"){g.HQ("more_accurate_gel_parser")&&CZ().storePayload({isJspb:!1},C.payload);h_(C);var h=N6(C),N=new Map;N.set(h,[C.payload]);var p=EGl(C.payload)||"";b&&(jT=new b);return new g.o9(function(P,c){jT&&jT.isReady()?bpU(N,jT,P,c,{bypassNetworkless:!0},!0,pZ(p)):P()})}}; +xQl=function(C,b,h){if(b.endpoint==="log_event"){h_(void 0,b);var N=N6(b,!0),p=new Map;p.set(N,[rN(b.payload)]);h&&(jT=new h);return new g.o9(function(P){jT&&jT.isReady()?hjW(p,jT,P,{bypassNetworkless:!0},!0,pZ(C)):P()})}}; +N6=function(C,b){var h="";if(C.dangerousLogToVisitorSession)h="visitorOnlyApprovedKey";else if(C.cttAuthInfo){if(b===void 0?0:b){b=C.cttAuthInfo.token;h=C.cttAuthInfo;var N=new ne;h.videoId?N.setVideoId(h.videoId):h.playlistId&&bB(N,2,LZ,Vr(h.playlistId));ZL[b]=N}else b=C.cttAuthInfo,h={},b.videoId?h.videoId=b.videoId:b.playlistId&&(h.playlistId=b.playlistId),YM[C.cttAuthInfo.token]=h;h=C.cttAuthInfo.token}return h}; +PL=function(C,b,h){C=C===void 0?{}:C;b=b===void 0?!1:b;new g.o9(function(N,p){var P=cL(b,h),c=P.N;P.N=!1;ai(P.K);ai(P.j);P.j=0;jT&&jT.isReady()?h===void 0&&g.HQ("enable_web_tiered_gel")?NUV(N,p,C,b,300,c):NUV(N,p,C,b,h,c):(CU_(b,h),N())})}; +NUV=function(C,b,h,N,p,P){var c=jT;h=h===void 0?{}:h;N=N===void 0?!1:N;p=p===void 0?200:p;P=P===void 0?!1:P;var e=new Map,L=new Map,Z={isJspb:N,cttAuthInfo:void 0,tier:p},Y={isJspb:N,cttAuthInfo:void 0};if(N){b=g.z(Object.keys(gr));for(p=b.next();!p.done;p=b.next())p=p.value,L=g.HQ("enable_web_tiered_gel")?CZ().smartExtractMatchingEntries({keys:[Z,Y],sizeLimit:1E3}):CZ().extractMatchingEntries({isJspb:!0,cttAuthInfo:p}),L.length>0&&e.set(p,L),(g.HQ("web_fp_via_jspb_and_json")&&h.writeThenSend||!g.HQ("web_fp_via_jspb_and_json"))&& +delete gr[p];hjW(e,c,C,h,!1,P)}else{e=g.z(Object.keys(gr));for(Z=e.next();!Z.done;Z=e.next())Z=Z.value,Y=g.HQ("enable_web_tiered_gel")?CZ().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:Z,tier:p},{isJspb:!1,cttAuthInfo:Z}],sizeLimit:1E3}):CZ().extractMatchingEntries({isJspb:!1,cttAuthInfo:Z}),Y.length>0&&L.set(Z,Y),(g.HQ("web_fp_via_jspb_and_json")&&h.writeThenSend||!g.HQ("web_fp_via_jspb_and_json"))&&delete gr[Z];bpU(L,c,C,b,h,!1,P)}}; +CU_=function(C,b){function h(){PL({writeThenSend:!0},C,b)} +C=C===void 0?!1:C;b=b===void 0?200:b;var N=cL(C,b),p=N===ga_||N===pj1?5E3:PUl;g.HQ("web_gel_timeout_cap")&&!N.j&&(p=eT(function(){h()},p),N.j=p); +ai(N.K);p=g.BC("LOGGING_BATCH_TIMEOUT",g.Vv("web_gel_debounce_ms",1E4));g.HQ("shorten_initial_gel_batch_timeout")&&lx&&(p=j1l);p=eT(function(){g.Vv("gel_min_batch_size")>0?CZ().getSequenceCount({cttAuthInfo:void 0,isJspb:C,tier:b})>=cJ1&&h():h()},p); +N.K=p}; +bpU=function(C,b,h,N,p,P,c){p=p===void 0?{}:p;var e=Math.round((0,g.Ai)()),L=C.size,Z=kmH(c);C=g.z(C);var Y=C.next();for(c={};!Y.done;c={rY:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,y0:void 0,TK:void 0},Y=C.next()){var a=g.z(Y.value);Y=a.next().value;a=a.next().value;c.batchRequest=g.uF({context:g.Yw(b.config_||g.ZY())});if(!g.tl(a)&&!g.HQ("throw_err_when_logevent_malformed_killswitch")){N();break}c.batchRequest.events=a;(a=YM[Y])&&ejl(c.batchRequest,Y,a);delete YM[Y];c.dangerousLogToVisitorSession= +Y==="visitorOnlyApprovedKey";LJU(c.batchRequest,e,c.dangerousLogToVisitorSession);ZpW(p);c.y0=function(l){g.HQ("start_client_gcf")&&g.WD.Vy(function(){return g.R(function(F){return g.J(F,YJ6(l),0)})}); +L--;L||h()}; +c.rY=0;c.TK=function(l){return function(){l.rY++;if(p.bypassNetworkless&&l.rY===1)try{g.hp(b,Z,l.batchRequest,oi({writeThenSend:!0},l.dangerousLogToVisitorSession,l.y0,l.TK,P)),lx=!1}catch(F){g.wW(F),N()}L--;L||h()}}(c); +try{g.hp(b,Z,c.batchRequest,oi(p,c.dangerousLogToVisitorSession,c.y0,c.TK,P)),lx=!1}catch(l){g.wW(l),N()}}}; +hjW=function(C,b,h,N,p,P){N=N===void 0?{}:N;var c=Math.round((0,g.Ai)()),e={value:C.size},L=new Map([].concat(g.M(C)));L=g.z(L);for(var Z=L.next();!Z.done;Z=L.next()){var Y=g.z(Z.value).next().value,a=C.get(Y);Z=new vSW;var l=b.config_||g.ZY(),F=new Ke,G=new iH;F4(G,1,l.fR);F4(G,2,l.hO);SY(G,16,l.i7);F4(G,17,l.innertubeContextClientVersion);if(l.Wr){var V=l.Wr,q=new yS;V.coldConfigData&&F4(q,1,V.coldConfigData);V.appInstallData&&F4(q,6,V.appInstallData);V.coldHashData&&F4(q,3,V.coldHashData);V.hotHashData&& +q.p6(V.hotHashData);cJ(G,yS,62,q)}(V=g.sl.devicePixelRatio)&&V!=1&&OW(G,65,jH(V));V=MQ();V!==""&&F4(G,54,V);V=qQ();if(V.length>0){q=new Ro;for(var f=0;f65535&&(C=1);Tf("BATCH_CLIENT_COUNTER",C);return C}; +ejl=function(C,b,h){if(h.videoId)var N="VIDEO";else if(h.playlistId)N="PLAYLIST";else return;C.credentialTransferTokenTargetId=h;C.context=C.context||{};C.context.user=C.context.user||{};C.context.user.credentialTransferTokens=[{token:b,scope:N}]}; +h_=function(C,b){if(!g.Dx("yt.logging.transport.enableScrapingForTest")){var h=zu("il_payload_scraping");if((h!==void 0?String(h):"")==="enable_il_payload_scraping")ST=[],g.Ol("yt.logging.transport.enableScrapingForTest",!0),g.Ol("yt.logging.transport.scrapedPayloadsForTesting",ST),g.Ol("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.Ol("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), +g.Ol("yt.logging.transport.scrapeClientEvent",!0);else return}h=g.Dx("yt.logging.transport.scrapedPayloadsForTesting");var N=g.Dx("yt.logging.transport.payloadToScrape");b&&(b=b.payload,(b=g.Dx("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(b)())&&h.push(b));b=g.Dx("yt.logging.transport.scrapeClientEvent");if(N&&N.length>=1)for(var p=0;p0&&RjV(C,b,P)}else RjV(C,b)}; +RjV=function(C,b,h){C=Q1l(C);b=b?g.Dh(b):"";h=h||5;Na()&&g.Xu(C,b,h)}; +Q1l=function(C){for(var b=g.z(UaK),h=b.next();!h.done;h=b.next())C=nb(C,h.value);return"ST-"+CR(C).toString(36)}; +Xjc=function(C){if(C.name==="JavaException")return!0;C=C.stack;return C.includes("chrome://")||C.includes("chrome-extension://")||C.includes("moz-extension://")}; +KJc=function(){this.Q3=[];this.wg=[]}; +rr=function(){if(!yB){var C=yB=new KJc;C.wg.length=0;C.Q3.length=0;s1o(C,OpW)}return yB}; +s1o=function(C,b){b.wg&&C.wg.push.apply(C.wg,b.wg);b.Q3&&C.Q3.push.apply(C.Q3,b.Q3)}; +va_=function(C){function b(){return C.charCodeAt(N++)} +var h=C.length,N=0;do{var p=ix(b);if(p===Infinity)break;var P=p>>3;switch(p&7){case 0:p=ix(b);if(P===2)return p;break;case 1:if(P===2)return;N+=8;break;case 2:p=ix(b);if(P===2)return C.substr(N,p);N+=p;break;case 5:if(P===2)return;N+=4;break;default:return}}while(N500));N++);N=p}else if(typeof C==="object")for(p in C){if(C[p]){var P=p;var c=C[p],e=b,L=h;P=typeof c!=="string"||P!=="clickTrackingParams"&&P!=="trackingParams"?0:(c=va_(atob(c.replace(/-/g,"+").replace(/_/g,"/"))))?J_(P+".ve",c,e,L):0;N+=P;N+=J_(p,C[p],b,h);if(N>500)break}}else h[b]=ux(C),N+=h[b].length;else h[b]=ux(C),N+=h[b].length;return N}; +J_=function(C,b,h,N){h+="."+C;C=ux(b);N[h]=C;return h.length+C.length}; +ux=function(C){try{return(typeof C==="string"?C:String(JSON.stringify(C))).substr(0,500)}catch(b){return"unable to serialize "+typeof C+" ("+b.message+")"}}; +k1=function(C){g.Ri(C)}; +g.QB=function(C){g.Ri(C,"WARNING")}; +g.Ri=function(C,b){var h=h===void 0?{}:h;h.name=g.BC("INNERTUBE_CONTEXT_CLIENT_NAME",1);h.version=g.BC("INNERTUBE_CONTEXT_CLIENT_VERSION");b=b===void 0?"ERROR":b;var N=!1;b=b===void 0?"ERROR":b;N=N===void 0?!1:N;if(C){C.hasOwnProperty("level")&&C.level&&(b=C.level);if(g.HQ("console_log_js_exceptions")){var p=[];p.push("Name: "+C.name);p.push("Message: "+C.message);C.hasOwnProperty("params")&&p.push("Error Params: "+JSON.stringify(C.params));C.hasOwnProperty("args")&&p.push("Error args: "+JSON.stringify(C.args)); +p.push("File name: "+C.fileName);p.push("Stacktrace: "+C.stack);window.console.log(p.join("\n"),C)}if(!(daW>=5)){p=WJS;var P=AxV(C),c=P.message||"Unknown Error",e=P.name||"UnknownError",L=P.stack||C.K||"Not available";if(L.startsWith(e+": "+c)){var Z=L.split("\n");Z.shift();L=Z.join("\n")}Z=P.lineNumber||"Not available";P=P.fileName||"Not available";var Y=0;if(C.hasOwnProperty("args")&&C.args&&C.args.length)for(var a=0;a=500);a++);else if(C.hasOwnProperty("params")&& +C.params){var l=C.params;if(typeof C.params==="object")for(a in l){if(l[a]){var F="params."+a,G=ux(l[a]);h[F]=G;Y+=F.length+G.length;if(Y>500)break}}else h.params=ux(l)}if(p.length)for(a=0;a=500);a++);navigator.vendor&&!h.hasOwnProperty("vendor")&&(h["device.vendor"]=navigator.vendor);h={message:c,name:e,lineNumber:Z,fileName:P,stack:L,params:h,sampleWeight:1};p=Number(C.columnNumber);isNaN(p)||(h.lineNumber=h.lineNumber+":"+p);if(C.level==="IGNORED")C= +0;else a:{C=rr();p=g.z(C.wg);for(c=p.next();!c.done;c=p.next())if(c=c.value,h.message&&h.message.match(c.Xg)){C=c.weight;break a}C=g.z(C.Q3);for(p=C.next();!p.done;p=C.next())if(p=p.value,p.callback(h)){C=p.weight;break a}C=1}h.sampleWeight=C;C=g.z(EaW);for(p=C.next();!p.done;p=C.next())if(p=p.value,p.Ts[h.name])for(e=g.z(p.Ts[h.name]),c=e.next();!c.done;c=e.next())if(a=c.value,c=h.message.match(a.e1)){h.params["params.error.original"]=c[0];e=a.groups;a={};for(Z=0;Z1E3&&g.QB(new g.tJ("IL Attach cache exceeded limit"))}e= +T_(h,b);dr.has(e)?BL(h,b):Er.set(e,!0)}}N=N.filter(function(Y){Y.csn!==b?(Y.csn=b,Y=!0):Y=!1;return Y}); +h={csn:b,parentVe:h.getAsJson(),childVes:g.q_(N,function(Y){return Y.getAsJson()})}; +b==="UNDEFINED_CSN"?Ii("visualElementAttached",P,h):C?z_("visualElementAttached",h,C,P):g.en("visualElementAttached",h,P)}; +jR1=function(C,b,h,N,p){xM(h,b);N=DL({cttAuthInfo:fZ(b)||void 0},b);h={csn:b,ve:h.getAsJson(),eventType:1};p&&(h.clientData=p);b==="UNDEFINED_CSN"?Ii("visualElementShown",N,h):C?z_("visualElementShown",h,C,N):g.en("visualElementShown",h,N)}; +ciV=function(C,b,h,N){var p=(N=N===void 0?!1:N)?16:8;N=DL({cttAuthInfo:fZ(b)||void 0,endOfSequence:N},b);h={csn:b,ve:h.getAsJson(),eventType:p};b==="UNDEFINED_CSN"?Ii("visualElementHidden",N,h):C?z_("visualElementHidden",h,C,N):g.en("visualElementHidden",h,N)}; +kno=function(C,b,h,N,p){wr(C,b,h,void 0,N,p)}; +wr=function(C,b,h,N,p){xM(h,b);N=N||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var P=DL({cttAuthInfo:fZ(b)||void 0},b);h={csn:b,ve:h.getAsJson(),gestureType:N};p&&(h.clientData=p);b==="UNDEFINED_CSN"?Ii("visualElementGestured",P,h):C?z_("visualElementGestured",h,C,P):g.en("visualElementGestured",h,P)}; +eOo=function(){var C=VO(16);for(var b=[],h=0;h0&&h.push(g.CM("BR"));h.push(g.bn(P))}):h.push(g.bn(N))}return h}; +ZN=function(C,b,h,N){if(h==="child"){g.N7(b);var p;N===void 0?p=void 0:p=!Array.isArray(N)||N&&typeof N.B==="string"?[N]:N;h=ZBH(C,p);h=g.z(h);for(C=h.next();!C.done;C=h.next())b.appendChild(C.value)}else h==="style"?g.Zv(b,"cssText",N?N:""):N===null||N===void 0?b.removeAttribute(h):(C=N.toString(),h==="href"&&(C=g.yc(g.JQ(C))),b.setAttribute(h,C))}; +g.n=function(C){g.ev.call(this,C);this.Bb=!0;this.G=!1;this.listeners=[]}; +g.YY=function(C){g.n.call(this,C);this.t4=new g.cr;g.D(this,this.t4)}; +aS=function(C,b,h,N,p,P,c){c=c===void 0?null:c;g.YY.call(this,b);this.api=C;this.macros={};this.componentType=h;this.J=this.L=null;this.Vz=c;this.layoutId=N;this.interactionLoggingClientData=p;this.Sp=P;this.m6=null;this.fp=new zB(this.element);g.D(this,this.fp);this.zi=this.S(this.element,"click",this.onClick);this.q2=[];this.nO=new AKo(this.onClick,this);g.D(this,this.nO);this.G$=!1;this.Qz=this.KO=null}; +lI=function(C,b){C=C===void 0?null:C;b=b===void 0?null:b;if(C==null)return g.QB(Error("Got null or undefined adText object")),"";var h=g.w2(C.text);if(!C.isTemplated)return h;if(b==null)return g.QB(Error("Missing required parameters for a templated message")),h;C=g.z(Object.entries(b));for(b=C.next();!b.done;b=C.next()){var N=g.z(b.value);b=N.next().value;N=N.next().value;h=h.replace("{"+b+"}",N)}return h}; +Y1V=function(C){C=C===void 0?null:C;return C!=null&&(C=C.thumbnail,C!=null&&C.thumbnails!=null&&C.thumbnails.length!=0&&C.thumbnails[0].url!=null)?g.w2(C.thumbnails[0].url):""}; +aQS=function(C){C=C===void 0?null:C;return C!=null&&(C=C.thumbnail,C!=null&&C.thumbnails!=null&&C.thumbnails.length!=0&&C.thumbnails[0].width!=null&&C.thumbnails[0].height!=null)?new g.oV(C.thumbnails[0].width||0,C.thumbnails[0].height||0):new g.oV(0,0)}; +g.oS=function(C){if(C.simpleText)return C.simpleText;if(C.runs){var b=[];C=g.z(C.runs);for(var h=C.next();!h.done;h=C.next())h=h.value,h.text&&b.push(h.text);return b.join("")}return""}; +g.FW=function(C){if(C.simpleText)return C=document.createTextNode(C.simpleText),C;var b=[];if(C.runs)for(var h=0;h1){for(var b=[C[0]],h=1;h0&&(this.j=new g.C2(this.Lh,b,this),g.D(this,this.j));this.G=new g.C2(this.Lh,h,this);g.D(this,this.G);this.L=uo1(this.K,p,1,N);g.D(this,this.L);this.J=uo1(this.K,0,N,1);g.D(this,this.J);this.X=new AJ;g.D(this,this.X)}; +cX=function(C,b,h){this.K=C;this.isAsync=b;this.j=h}; +x$1=function(C){switch(C){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:Pv(C,"unknown result type")}}; +wGx=function(C,b){var h=1;C.isTrusted===!1&&(h=0);Tf("ISDSTAT",h);kH(h,"i.s_",{triggerContext:"sk",metadata:b});return h}; +CZK=function(C,b){var h=[];b?b.isTrusted===!0?h.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):b.isTrusted===!1?h.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):h.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):h.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");kH(0,"a.s_",{metadata:C,states:h});Tf("ASDSTAT",0)}; +kH=function(C,b,h){b=bQW[b];var N,p,P={detected:C===0,source:""+b.K+((N=h.triggerContext)!=null?N:"")+((p=h.MB)!=null?p:""),detectionStates:h.states,durationMs:h.Q2};h.metadata&&(P.contentCpn=h.metadata.contentCpn,P.adCpn=h.metadata.adCpn);g.en("biscottiBasedDetection",P);b.j!==void 0&&(h=Number(g.BC("CATSTAT",0)),b.j!==void 0?(b=b.j,C=x$1(C),C=h&~(3<0}; +ox=function(C,b,h,N,p,P){xY.call(this,C,{B:"div",C:"ytp-ad-skip-button-slot"},"skip-button",b,h,N,p);var c=this;this.N2=null;this.sX=!1;this.CO=P;this.W=this.api.Y().experiments.Fo("enable_modern_skip_button_on_web");this.Yh=!1;this.N=new g.YY({B:"span",J4:["ytp-ad-skip-button-container"]});this.W&&this.N.element.classList.add("ytp-ad-skip-button-container-detached");this.api.D("enable_ad_pod_index_autohide")&&this.N.element.classList.add("ytp-ad-skip-button-container--clean-player");g.D(this,this.N); +this.N.Gi(this.element);this.K=this.X=null;this.kh=new g.b1(this.N,500,!1,100,function(){return c.hide()}); +g.D(this,this.kh);this.Df=new j5(this.N.element,15E3,5E3,.5,.5,this.W);g.D(this,this.Df);this.hide()}; +Nfl=function(C){C=C.N2&&C.N2.adRendererCommands;return(C&&C.clickCommand&&g.d(C.clickCommand,g.F_)&&g.d(C.clickCommand,g.F_).commands||[]).some(function(b){return b.adLifecycleCommand?hTS(b.adLifecycleCommand):!1})}; +hTS=function(C){return C.action==="END_LINEAR_AD"||C.action==="END_LINEAR_AD_PLACEMENT"}; +Gv=function(C,b,h,N,p,P){xY.call(this,C,{B:"div",C:"ytp-ad-skip-ad-slot"},"skip-ad",b,h,N,p);this.N2=P;this.X=!1;this.W=0;this.N=this.K=null;this.hide()}; +gwV=function(C,b){C.X||(C.X=!0,C.K&&(b?C.K.sX.hide():C.K.hide()),b?(C=C.N,C.kh.show(),C.show()):C.N.show())}; +S5=function(C,b,h,N){Ju.call(this,C,b,h,N,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; +$H=function(C,b,h,N,p,P,c){P=P===void 0?!1:P;c=c===void 0?!1:c;aS.call(this,C,{B:"span",C:"ytp-ad-simple-ad-badge"},"simple-ad-badge",b,h,N);this.N=p;this.j=this.dO("ytp-ad-simple-ad-badge");(this.K=P)&&this.j.classList.add("ytp-ad-simple-ad-badge--clean-player");c&&this.j.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; +zv=function(C,b,h,N,p){p=p===void 0?!1:p;jv.call(this,"player-overlay",C,{},b,N);this.videoAdDurationSeconds=h;this.interactionLoggingClientData=N;this.Tq=p}; +HX=function(C,b){g.cr.call(this);this.api=C;this.durationMs=b;this.j=null;this.B7=new AJ(this);g.D(this,this.B7);this.K=pmK;this.B7.S(this.api,"presentingplayerstatechange",this.pD);this.j=this.B7.S(this.api,"onAdPlaybackProgress",this.cW)}; +Vt=function(C){g.cr.call(this);this.j=!1;this.EB=0;this.B7=new AJ(this);g.D(this,this.B7);this.durationMs=C;this.FZ=new g.Vh(100);g.D(this,this.FZ);this.B7.S(this.FZ,"tick",this.cW);this.K={seekableStart:0,seekableEnd:C/1E3,current:0};this.start()}; +g.Mj=function(C,b){var h=Math.abs(Math.floor(C)),N=Math.floor(h/86400),p=Math.floor(h%86400/3600),P=Math.floor(h%3600/60);h=Math.floor(h%60);if(b){b="";N>0&&(b+=" "+N+" Days");if(N>0||p>0)b+=" "+p+" Hours";b+=" "+P+" Minutes";b+=" "+h+" Seconds";N=b.trim()}else{b="";N>0&&(b+=N+":",p<10&&(b+="0"));if(N>0||p>0)b+=p+":",P<10&&(b+="0");b+=P+":";h<10&&(b+="0");N=b+h}return C>=0?N:"-"+N}; +g.qj=function(C){return(!("button"in C)||typeof C.button!=="number"||C.button===0)&&!("shiftKey"in C&&C.shiftKey)&&!("altKey"in C&&C.altKey)&&!("metaKey"in C&&C.metaKey)&&!("ctrlKey"in C&&C.ctrlKey)}; +mM=function(C,b,h,N,p,P,c){xY.call(this,C,{B:"span",C:c?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",b,h,N,p);this.videoAdDurationSeconds=P;this.K=null;this.api.D("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-ad-duration-remaining--clean-player-with-light-shadow");c&&this.api.Y().K&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),this.api.D("clean_player_style_fix_on_web")&&(this.element.classList.add("ytp-ad-duration-remaining--mweb-light"), +Tn&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios")));this.hide()}; +fF=function(C,b,h,N){Br.call(this,C,b,h,N,"ytp-video-ad-top-bar-title","ad-title");C.D("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-video-ad-top-bar-title--clean-player")}; +AM=function(C){this.content=C.content;if(C.commandRuns){C=g.z(C.commandRuns);for(var b=C.next();!b.done;b=C.next())b=b.value,this.loggingDirectives=g.d(b,PZK),b.onTap&&(this.interaction={onTap:b.onTap})}}; +rG=function(C,b,h,N){aS.call(this,C,{B:"div",C:"ad-simple-attributed-string"},"ad-simple-attributed-string",b,h,N);this.hide()}; +i1=function(C,b,h,N,p){aS.call(this,C,{B:"span",C:p?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",b,h,N);this.K=p;this.adBadgeText=new rG(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp);this.adBadgeText.Gi(this.element);g.D(this,this.adBadgeText);p?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),this.api.D("clean_player_style_fix_on_web")&&(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player-with-light-shadow"),Tn&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios"))): +this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; +JM=function(C,b,h,N,p){aS.call(this,C,{B:"span",C:"ytp-ad-pod-index"},"ad-pod-index",b,h,N);this.K=p;this.api.Y().K&&(this.element.classList.add("ytp-ad-pod-index--mweb"),this.api.D("clean_player_style_fix_on_web")&&(this.element.classList.add("ytp-ad-pod-index--mweb-light"),Tn&&this.element.classList.add("ytp-ad-pod-index--mweb-ios")));this.hide()}; +u1=function(C,b,h,N){aS.call(this,C,{B:"div",C:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",b,h,N);this.hide()}; +Rx=function(C,b){this.K=C;this.j=b}; +Qt=function(C,b,h){if(!C.getLength())return h!=null?h:Infinity;C=(b-C.K)/C.getLength();return g.kv(C,0,1)}; +U8=function(C,b,h,N){N=N===void 0?!1:N;g.YY.call(this,{B:"div",C:"ytp-ad-persistent-progress-bar-container",U:[{B:"div",C:"ytp-ad-persistent-progress-bar"}]});this.api=C;this.K=b;this.N=h;N&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.D(this,this.K);this.progressBar=this.dO("ytp-ad-persistent-progress-bar");this.j=-1;this.S(C,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; +X_=function(C,b,h,N,p,P){aS.call(this,C,{B:"div",C:"ytp-ad-player-overlay",U:[{B:"div",C:"ytp-ad-player-overlay-flyout-cta"},{B:"div",C:"ytp-ad-player-overlay-instream-info"},{B:"div",C:"ytp-ad-player-overlay-skip-or-preview"},{B:"div",C:"ytp-ad-player-overlay-progress-bar"},{B:"div",C:"ytp-ad-player-overlay-instream-user-sentiment"},{B:"div",C:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",b,h,N);this.N2=P;this.W=this.dO("ytp-ad-player-overlay-flyout-cta");this.W.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); +this.j=this.dO("ytp-ad-player-overlay-instream-info");this.X=null;jtW(this)&&(C=wk("div"),g.c4(C,"ytp-ad-player-overlay-top-bar-gradients"),this.api.D("disable_ad_preview_for_instream_ads")&&g.c4(C,"ytp-ad-player-overlay-top-bar-gradients--clean-player"),b=this.j,b.parentNode&&b.parentNode.insertBefore(C,b),(b=this.api.getVideoData(2))&&b.isListed&&b.title&&(h=new fF(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp),h.Gi(C),h.init(Pr("ad-title"),{text:b.title},this.macros),g.D(this, +h)),this.X=C);this.N=null;this.V=this.dO("ytp-ad-player-overlay-skip-or-preview");this.rO=this.dO("ytp-ad-player-overlay-progress-bar");this.Df=this.dO("ytp-ad-player-overlay-instream-user-sentiment");this.sX=this.dO("ytp-ad-player-overlay-ad-disclosure-banner");this.K=p;g.D(this,this.K);this.hide()}; +jtW=function(C){C=C.api.Y();return g.KF(C)&&C.K}; +s8=function(C,b,h){var N={};b&&(N.v=b);h&&(N.list=h);C={name:C,locale:void 0,feature:void 0};for(var p in N)C[p]=N[p];N=g.dt("/sharing_services",C);g.DY(N)}; +g.O8=function(C){C&=16777215;var b=[(C&16711680)>>16,(C&65280)>>8,C&255];C=b[0];var h=b[1];b=b[2];C=Number(C);h=Number(h);b=Number(b);if(C!=(C&255)||h!=(h&255)||b!=(b&255))throw Error('"('+C+","+h+","+b+'") is not a valid RGB color');h=C<<16|h<<8|b;return C<16?"#"+(16777216|h).toString(16).slice(1):"#"+h.toString(16)}; +vX=function(C){this.j=new ie(C)}; +c06=function(){var C=!1;try{C=!!window.sessionStorage.getItem("session_logininfo")}catch(b){C=!0}return(g.BC("INNERTUBE_CLIENT_NAME")==="WEB"||g.BC("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&C}; +DK=function(C){if(g.BC("LOGGED_IN",!0)&&c06()){var b=g.BC("VALID_SESSION_TEMPDATA_DOMAINS",[]);var h=g.XX(window.location.href);h&&b.push(h);h=g.XX(C);g.xI(b,h)||!h&&Mp(C,"/")?(b=Kb(C),(b=z4l(b))?(b=Q1l(b),b=(b=g.KN(b)||null)?gJ(b):{}):b=null):b=null;b==null&&(b={});h=b;var N=void 0;c06()?(N||(N=g.BC("LOGIN_INFO")),N?(h.session_logininfo=N,h=!0):h=!1):h=!1;h&&A_(C,b)}}; +g.koo=function(C){var b=b===void 0?{}:b;var h=h===void 0?"":h;var N=N===void 0?window:N;C=g.dt(C,b);DK(C);h=g.JQ(C+h);N=N.location;h=uq(h);h!==void 0&&(N.href=h)}; +g.dG=function(C,b,h){b=b===void 0?{}:b;h=h===void 0?!1:h;var N=g.BC("EVENT_ID");N&&(b.ei||(b.ei=N));b&&A_(C,b);h||(DK(C),g.koo(C))}; +g.WX=function(C,b,h,N,p){p=p===void 0?!1:p;h&&A_(C,h);h=g.JQ(C);var P=g.yc(h);C!=P&&ba(Error("Unsafe window.open URL: "+C));C=P;b=b||CR(C).toString(36);try{if(p){p=C;p=ZNV(p);DK(p);g.Ko(window,p,b,"attributionsrc");return}}catch(c){g.wW(c)}DK(C);g.Ko(window,h,b,N)}; +eTK=function(C){E8=C}; +Lbl=function(C){nF=C}; +ZQW=function(C){tM=C}; +aYc=function(){Ypl=tM=nF=E8=null}; +owH=function(){var C=C===void 0?window.location.href:C;if(g.HQ("kevlar_disable_theme_param"))return null;var b=Je(g.Uq(5,C));if(g.HQ("enable_dark_theme_only_on_shorts")&&b!=null&&b.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var h=g.PQ(C).theme;return lYK.get(h)||null}catch(N){}return null}; +Tv=function(){this.j={};if(this.K=GqU()){var C=g.KN("CONSISTENCY");C&&Fb6(this,{encryptedTokenJarContents:C})}}; +Fb6=function(C,b){if(b.encryptedTokenJarContents&&(C.j[b.encryptedTokenJarContents]=b,typeof b.expirationSeconds==="string")){var h=Number(b.expirationSeconds);setTimeout(function(){delete C.j[b.encryptedTokenJarContents]},h*1E3); +C.K&&g.Xu("CONSISTENCY",b.encryptedTokenJarContents,h,void 0,!0)}}; +Ix=function(){this.K=-1;var C=g.BC("LOCATION_PLAYABILITY_TOKEN");g.BC("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=BX(this))&&(C=this.localStorage.get("yt-location-playability-token"));C&&(this.locationPlayabilityToken=C,this.j=void 0)}; +BX=function(C){return C.localStorage===void 0?new gm("yt-client-location"):C.localStorage}; +g.xH=function(C,b,h){b=b===void 0?!1:b;h=h===void 0?!1:h;var N=g.BC("INNERTUBE_CONTEXT");if(!N)return g.Ri(Error("Error: No InnerTubeContext shell provided in ytconfig.")),{};N=g.uF(N);g.HQ("web_no_tracking_params_in_shell_killswitch")||delete N.clickTracking;N.client||(N.client={});var p=N.client;p.clientName==="MWEB"&&p.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(p.clientFormFactor=g.BC("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");p.screenWidthPoints=window.innerWidth;p.screenHeightPoints= +window.innerHeight;p.screenPixelDensity=Math.round(window.devicePixelRatio||1);p.screenDensityFloat=window.devicePixelRatio||1;p.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());var P=P===void 0?!1:P;g.vj();var c="USER_INTERFACE_THEME_LIGHT";g.D7(0,165)?c="USER_INTERFACE_THEME_DARK":g.D7(0,174)?c="USER_INTERFACE_THEME_LIGHT":!g.HQ("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches&&window.matchMedia("(prefers-color-scheme: dark)").matches&& +(c="USER_INTERFACE_THEME_DARK");P=P?c:owH()||c;p.userInterfaceTheme=P;if(!b){if(P=p4l())p.connectionType=P;g.HQ("web_log_effective_connection_type")&&(P=j21())&&(N.client.effectiveConnectionType=P)}var e;if(g.HQ("web_log_memory_total_kbytes")&&((e=g.sl.navigator)==null?0:e.deviceMemory)){var L;e=(L=g.sl.navigator)==null?void 0:L.deviceMemory;N.client.memoryTotalKbytes=""+e*1E6}g.HQ("web_gcf_hashes_innertube")&&(P=aOx())&&(L=P.coldConfigData,e=P.coldHashData,P=P.hotHashData,N.client.configInfo=N.client.configInfo|| +{},L&&(N.client.configInfo.coldConfigData=L),e&&(N.client.configInfo.coldHashData=e),P&&(N.client.configInfo.hotHashData=P));L=g.PQ(g.sl.location.href);!g.HQ("web_populate_internal_geo_killswitch")&&L.internalcountrycode&&(p.internalGeo=L.internalcountrycode);p.clientName==="MWEB"||p.clientName==="WEB"?(p.mainAppWebInfo={graftUrl:g.sl.location.href},g.HQ("kevlar_woffle")&&xvV.instance&&(L=xvV.instance,p.mainAppWebInfo.pwaInstallabilityStatus=!L.j&&L.K?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED": +"PWA_INSTALLABILITY_STATUS_UNKNOWN"),p.mainAppWebInfo.webDisplayMode=Kp(),p.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):p.clientName==="TVHTML5"&&(!g.HQ("web_lr_app_quality_killswitch")&&(L=g.BC("LIVING_ROOM_APP_QUALITY"))&&(p.tvAppInfo=Object.assign(p.tvAppInfo||{},{appQuality:L})),L=g.BC("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(p.tvAppInfo=Object.assign(p.tvAppInfo||{},{certificationScope:L}));if(!g.HQ("web_populate_time_zone_itc_killswitch")){a:{if(typeof Intl!== +"undefined")try{var Z=(new Intl.DateTimeFormat).resolvedOptions().timeZone;break a}catch(K){}Z=void 0}Z&&(p.timeZone=Z)}(Z=MQ())?p.experimentsToken=Z:delete p.experimentsToken;Z=qQ();Tv.instance||(Tv.instance=new Tv);N.request=Object.assign({},N.request,{internalExperimentFlags:Z,consistencyTokenJars:g.Me(Tv.instance.j)});!g.HQ("web_prequest_context_killswitch")&&(Z=g.BC("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(N.request.externalPrequestContext=Z);p=g.vj();Z=g.D7(0,58);p=p.get("gsml","");N.user=Object.assign({}, +N.user);Z&&(N.user.enableSafetyMode=Z);p&&(N.user.lockedSafetyMode=!0);g.HQ("warm_op_csn_cleanup")?h&&(b=g.mZ())&&(N.clientScreenNonce=b):!b&&(b=g.mZ())&&(N.clientScreenNonce=b);C&&(N.clickTracking={clickTrackingParams:C});if(C=g.Dx("yt.mdx.remote.remoteClient_"))N.remoteClient=C;Ix.getInstance().setLocationOnInnerTubeContext(N);try{var Y=af(),a=Y.bid;delete Y.bid;N.adSignalsInfo={params:[],bid:a};for(var l=g.z(Object.entries(Y)),F=l.next();!F.done;F=l.next()){var G=g.z(F.value),V=G.next().value, +q=G.next().value;Y=V;a=q;C=void 0;(C=N.adSignalsInfo.params)==null||C.push({key:Y,value:""+a})}var f,y;if(((f=N.client)==null?void 0:f.clientName)==="TVHTML5"||((y=N.client)==null?void 0:y.clientName)==="TVHTML5_UNPLUGGED"){var u=g.BC("INNERTUBE_CONTEXT");u.adSignalsInfo&&(N.adSignalsInfo.advertisingId=u.adSignalsInfo.advertisingId,N.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",N.adSignalsInfo.limitAdTracking=u.adSignalsInfo.limitAdTracking)}}catch(K){g.Ri(K)}return N}; +$Po=function(C,b){if(!C)return!1;var h,N=(h=g.d(C,GoU))==null?void 0:h.signal;if(N&&b.fN)return!!b.fN[N];var p;if((h=(p=g.d(C,SpH))==null?void 0:p.request)&&b.Gr)return!!b.Gr[h];for(var P in C)if(b.Ri[P])return!0;return!1}; +zTH=function(C){var b={"Content-Type":"application/json"};g.BC("EOM_VISITOR_DATA")?b["X-Goog-EOM-Visitor-Id"]=g.BC("EOM_VISITOR_DATA"):g.BC("VISITOR_DATA")&&(b["X-Goog-Visitor-Id"]=g.BC("VISITOR_DATA"));b["X-Youtube-Bootstrap-Logged-In"]=g.BC("LOGGED_IN",!1);g.BC("DEBUG_SETTINGS_METADATA")&&(b["X-Debug-Settings-Metadata"]=g.BC("DEBUG_SETTINGS_METADATA"));C!=="cors"&&((C=g.BC("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(b["X-Youtube-Client-Name"]=C),(C=g.BC("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(b["X-Youtube-Client-Version"]= +C),(C=g.BC("CHROME_CONNECTED_HEADER"))&&(b["X-Youtube-Chrome-Connected"]=C),(C=g.BC("DOMAIN_ADMIN_STATE"))&&(b["X-Youtube-Domain-Admin-State"]=C),g.BC("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(C=g.BC("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(b["X-YouTube-Lava-Device-Context"]=C));return b}; +HQl=function(){this.j={}}; +wG=function(){this.mappings=new HQl}; +Cg=function(C){return function(){return new C}}; +MiW=function(C){var b=b===void 0?"UNKNOWN_INTERFACE":b;if(C.length===1)return C[0];var h=Vi6[b];if(h){h=new RegExp(h);for(var N=g.z(C),p=N.next();!p.done;p=N.next())if(p=p.value,h.exec(p))return p}var P=[];Object.entries(Vi6).forEach(function(c){var e=g.z(c);c=e.next().value;e=e.next().value;b!==c&&P.push(e)}); +h=new RegExp(P.join("|"));C.sort(function(c,e){return c.length-e.length}); +N=g.z(C);for(p=N.next();!p.done;p=N.next())if(p=p.value,!h.exec(p))return p;return C[0]}; +g.bg=function(C){return"/youtubei/v1/"+MiW(C)}; +hN=function(){}; +Nr=function(){}; +lg=function(){}; +ow=function(C){return g.Dx("ytcsi."+(C||"")+"data_")||qpl(C)}; +mP_=function(){var C=ow();C.info||(C.info={});return C.info}; +FB=function(C){C=ow(C);C.metadata||(C.metadata={});return C.metadata}; +GI=function(C){C=ow(C);C.tick||(C.tick={});return C.tick}; +Sd=function(C){C=ow(C);if(C.gel){var b=C.gel;b.gelInfos||(b.gelInfos={});b.gelTicks||(b.gelTicks={})}else C.gel={gelTicks:{},gelInfos:{}};return C.gel}; +fYK=function(C){C=Sd(C);C.gelInfos||(C.gelInfos={});return C.gelInfos}; +$5=function(C){var b=ow(C).nonce;b||(b=g.M5(16),ow(C).nonce=b);return b}; +qpl=function(C){var b={tick:{},info:{}};g.Ol("ytcsi."+(C||"")+"data_",b);return b}; +zI=function(){var C=g.Dx("ytcsi.debug");C||(C=[],g.Ol("ytcsi.debug",C),g.Ol("ytcsi.reference",{}));return C}; +Hs=function(C){C=C||"";var b=A0H();if(b[C])return b[C];var h=zI(),N={timerName:C,info:{},tick:{},span:{},jspbInfo:[]};h.push(N);return b[C]=N}; +y0K=function(C){C=C||"";var b=A0H();b[C]&&delete b[C];var h=zI(),N={timerName:C,info:{},tick:{},span:{},jspbInfo:[]};h.push(N);b[C]=N}; +A0H=function(){var C=g.Dx("ytcsi.reference");if(C)return C;zI();return g.Dx("ytcsi.reference")}; +V3=function(C){return r0_[C]||"LATENCY_ACTION_UNKNOWN"}; +Mr=function(C,b){lZ.call(this,1,arguments);this.FZ=b}; +qr=function(){this.j=0}; +ma=function(){qr.instance||(qr.instance=new qr);return qr.instance}; +AN=function(C,b){fg[b]=fg[b]||{count:0};var h=fg[b];h.count++;h.time=(0,g.Ai)();C.j||(C.j=g.wU(0,function(){var N=(0,g.Ai)(),p;for(p in fg)fg[p]&&N-fg[p].time>6E4&&delete fg[p];C&&(C.j=0)},5E3)); +return h.count>5?(h.count===6&&Math.random()*1E5<1&&(h=new g.tJ("CSI data exceeded logging limit with key",b.split("_")),b.indexOf("plev")>=0||g.QB(h)),!0):!1}; +iQ_=function(){this.timing={};this.clearResourceTimings=function(){}; +this.webkitClearResourceTimings=function(){}; +this.mozClearResourceTimings=function(){}; +this.msClearResourceTimings=function(){}; +this.oClearResourceTimings=function(){}}; +J0l=function(){var C;if(g.HQ("csi_use_performance_navigation_timing")||g.HQ("csi_use_performance_navigation_timing_tvhtml5")){var b,h,N,p=y3==null?void 0:(C=y3.getEntriesByType)==null?void 0:(b=C.call(y3,"navigation"))==null?void 0:(h=b[0])==null?void 0:(N=h.toJSON)==null?void 0:N.call(h);p?(p.requestStart=r8(p.requestStart),p.responseEnd=r8(p.responseEnd),p.redirectStart=r8(p.redirectStart),p.redirectEnd=r8(p.redirectEnd),p.domainLookupEnd=r8(p.domainLookupEnd),p.connectStart=r8(p.connectStart), +p.connectEnd=r8(p.connectEnd),p.responseStart=r8(p.responseStart),p.secureConnectionStart=r8(p.secureConnectionStart),p.domainLookupStart=r8(p.domainLookupStart),p.isPerformanceNavigationTiming=!0,C=p):C=y3.timing}else C=g.HQ("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(y3.timing)):y3.timing;return C}; +r8=function(C){return Math.round(ig()+C)}; +ig=function(){return(g.HQ("csi_use_time_origin")||g.HQ("csi_use_time_origin_tvhtml5"))&&y3.timeOrigin?Math.floor(y3.timeOrigin):y3.timing.navigationStart}; +ug=function(C,b){JN("_start",C,b)}; +Rw=function(C,b){if(!g.HQ("web_csi_action_sampling_enabled")||!ow(b).actionDisabled){var h=Hs(b||"");aF(h.info,C);C.loadType&&(h=C.loadType,FB(b).loadType=h);aF(fYK(b),C);h=$5(b);b=ow(b).cttAuthInfo;ma().info(C,h,b)}}; +uPo=function(){var C,b,h,N;return((N=QO().resolve(new rj(ei))==null?void 0:(C=LQ())==null?void 0:(b=C.loggingHotConfig)==null?void 0:(h=b.csiConfig)==null?void 0:h.debugTicks)!=null?N:[]).map(function(p){return Object.values(p)[0]})}; +JN=function(C,b,h){if(!g.HQ("web_csi_action_sampling_enabled")||!ow(h).actionDisabled){var N=$5(h),p;if(p=g.HQ("web_csi_debug_sample_enabled")&&N){(QO().resolve(new rj(ei))==null?0:LQ())&&!RTK&&(RTK=!0,JN("gcfl",(0,g.Ai)(),h));var P,c,e;p=(QO().resolve(new rj(ei))==null?void 0:(P=LQ())==null?void 0:(c=P.loggingHotConfig)==null?void 0:(e=c.csiConfig)==null?void 0:e.debugSampleWeight)||0;if(P=p!==0)b:{P=uPo();if(P.length>0)for(c=0;ch.duration?N:h},{duration:0}))&&b.startTime>0&&b.responseEnd>0&&(JN("wffs",r8(b.startTime)),JN("wffe",r8(b.responseEnd)))}; +vwU=function(C,b,h){y3&&y3.measure&&(C.startsWith("measure_")||(C="measure_"+C),h?y3.measure(C,b,h):b?y3.measure(C,b):y3.measure(C))}; +DPx=function(C){var b=Q3("aft",C);if(b)return b;b=g.BC((C||"")+"TIMING_AFT_KEYS",["ol"]);for(var h=b.length,N=0;N0&&Rw(b);b={isNavigation:!0,actionType:V3(g.BC("TIMING_ACTION"))};var h=g.BC("PREVIOUS_ACTION");h&&(b.previousAction=V3(h));if(h=g.BC("CLIENT_PROTOCOL"))b.httpProtocol=h;if(h=g.BC("CLIENT_TRANSPORT"))b.transportProtocol=h;(h=g.mZ())&&h!=="UNDEFINED_CSN"&&(b.clientScreenNonce=h);h=XmW();if(h===1||h===-1)b.isVisible= +!0;h=FB().loadType==="cold";var N=mP_();h||(h=N.yt_lt==="cold");if(h){b.loadType="cold";h=mP_();N=J0l();var p=ig(),P=g.BC("CSI_START_TIMESTAMP_MILLIS",0);P>0&&!g.HQ("embeds_web_enable_csi_start_override_killswitch")&&(p=P);p&&(JN("srt",N.responseStart),h.prerender!==1&&ug(p));h=Ew6();h>0&&JN("fpt",h);h=J0l();h.isPerformanceNavigationTiming&&Rw({performanceNavigationTiming:!0},void 0);JN("nreqs",h.requestStart,void 0);JN("nress",h.responseStart,void 0);JN("nrese",h.responseEnd,void 0);h.redirectEnd- +h.redirectStart>0&&(JN("nrs",h.redirectStart,void 0),JN("nre",h.redirectEnd,void 0));h.domainLookupEnd-h.domainLookupStart>0&&(JN("ndnss",h.domainLookupStart,void 0),JN("ndnse",h.domainLookupEnd,void 0));h.connectEnd-h.connectStart>0&&(JN("ntcps",h.connectStart,void 0),JN("ntcpe",h.connectEnd,void 0));h.secureConnectionStart>=ig()&&h.connectEnd-h.secureConnectionStart>0&&(JN("nstcps",h.secureConnectionStart,void 0),JN("ntcpe",h.connectEnd,void 0));y3&&"getEntriesByType"in y3&&OQl();h=[];if(document.querySelector&& +y3&&y3.getEntriesByName)for(var c in Kg)Kg.hasOwnProperty(c)&&(N=Kg[c],stc(c,N)&&h.push(N));if(h.length>0)for(b.resourceInfo=[],c=g.z(h),h=c.next();!h.done;h=c.next())b.resourceInfo.push({resourceCache:h.value})}Rw(b);b=Sd();b.preLoggedGelInfos||(b.preLoggedGelInfos=[]);c=b.preLoggedGelInfos;b=fYK();h=void 0;for(N=0;N-1&&(delete H["@type"],t=H);V&&C.K.has(V)&&C.K.delete(V);((v1=b.config)==null?0:v1.DKz)&&OG(b.config.DKz);if(t||(Vj=C.N)==null||!Vj.HTE(b.input,b.oR)){fW.WE(15);break}return g.J(fW,C.N.hM2(b.input,b.oR),16);case 16:t=fW.K;case 15:return ecH(C,t,b),((ad=b.config)==null?0:ad.eef)&&OG(b.config.eef),N(),fW.return(t|| +void 0)}})}; +plW=function(C,b){a:{C=C.Ve;var h,N=(h=g.d(b,GoU))==null?void 0:h.signal;if(N&&C.fN&&(h=C.fN[N])){var p=h();break a}var P;if((h=(P=g.d(b,SpH))==null?void 0:P.request)&&C.Gr&&(P=C.Gr[h])){p=P();break a}for(p in b)if(C.Ri[p]&&(b=C.Ri[p])){p=b();break a}p=void 0}if(p!==void 0)return Promise.resolve(p)}; +jFU=function(C,b,h){var N,p,P,c,e,L,Z;return g.R(function(Y){if(Y.j==1){P=((N=b)==null?void 0:(p=N.TW)==null?void 0:p.identity)||at;L=(c=b)==null?void 0:(e=c.TW)==null?void 0:e.sessionIndex;var a=g.Gp(C.j.Og(P,{sessionIndex:L}));return g.J(Y,a,2)}Z=Y.K;return Y.return(Promise.resolve(Object.assign({},zTH(h),Z)))})}; +PtS=function(C,b,h){var N,p=(b==null?void 0:(N=b.TW)==null?void 0:N.identity)||at,P;b=b==null?void 0:(P=b.TW)==null?void 0:P.sessionIndex;C=C.j.Og(p,{sessionIndex:b});return Object.assign({},zTH(h),C)}; +Bs=function(){}; +Iw=function(){}; +x5=function(C){this.W=C}; +w8=function(){}; +CD=function(){}; +by=function(){}; +hU=function(){}; +g.Nn=function(C,b){var h=g.ro.apply(2,arguments);C=C===void 0?0:C;g.tJ.call(this,b,h);this.errorType=C;Object.setPrototypeOf(this,this.constructor.prototype)}; +g1=function(C,b,h){this.j=C;this.K=b;this.N=h}; +ZrS=function(C,b,h){if(C.j){var N=Je(g.Uq(5,nb(b,"key")))||"/UNKNOWN_PATH";C.j.start(N)}C=h;g.HQ("wug_networking_gzip_request")&&(C=W7V(h));return new window.Request(b,C)}; +g.PN=function(C,b){if(!pD){var h=QO();it(h,{XV:Yxo,aO:g1});var N={Ri:{feedbackEndpoint:Cg(w8),modifyChannelNotificationPreferenceEndpoint:Cg(CD),playlistEditEndpoint:Cg(by),shareEntityEndpoint:Cg(x5),subscribeEndpoint:Cg(Bs),unsubscribeEndpoint:Cg(Iw),webPlayerShareEntityServiceEndpoint:Cg(hU)}},p=Ix.getInstance(),P={};p&&(P.client_location=p);C===void 0&&(C=wDW());b===void 0&&(b=h.resolve(Yxo));gpl(N,b,C,P);it(h,{XV:aGx,wT:ng.instance});pD=h.resolve(aGx)}return pD}; +lGl=function(C){var b=new a0;if(C.interpreterJavascript){var h=uF_(C.interpreterJavascript);h=vh(h).toString();var N=new ZI;F4(N,6,h);cJ(b,ZI,1,N)}else C.interpreterUrl&&(h=qJ(C.interpreterUrl),h=fo(h).toString(),N=new Y3,F4(N,4,h),cJ(b,Y3,2,N));C.interpreterHash&&G5(b,3,C.interpreterHash);C.program&&G5(b,4,C.program);C.globalName&&G5(b,5,C.globalName);C.clientExperimentsStateBlob&&G5(b,7,C.clientExperimentsStateBlob);return b}; +jc=function(C){var b={};C=C.split("&");C=g.z(C);for(var h=C.next();!h.done;h=C.next())h=h.value.split("="),h.length===2&&(b[h[0]]=h[1]);return b}; +wbS=function(){if(g.HQ("bg_st_hr"))return"havuokmhhs-0";var C,b=((C=performance)==null?void 0:C.timeOrigin)||0;return"havuokmhhs-"+Math.floor(b)}; +cN=function(C){this.j=C}; +opV=function(){return new Promise(function(C){var b=window.top;b.ntpevasrs!==void 0?C(new cN(b.ntpevasrs)):(b.ntpqfbel===void 0&&(b.ntpqfbel=[]),b.ntpqfbel.push(function(h){C(new cN(h))}))})}; +GB6=function(){if(!g.HQ("disable_biscotti_fetch_for_ad_blocker_detection")&&!g.HQ("disable_biscotti_fetch_entirely_for_all_web_clients")&&Na()){var C=g.BC("PLAYER_VARS",{});if(g.rk(C,"privembed",!1)!="1"&&!qeW(C)){var b=function(){kr=!0;"google_ad_status"in window?Tf("DCLKSTAT",1):Tf("DCLKSTAT",2)}; +try{g.e8("//static.doubleclick.net/instream/ad_status.js",b)}catch(h){}FiH.push(g.WD.Vy(function(){if(!(kr||"google_ad_status"in window)){try{if(b){var h=""+g.Il(b),N=qSl[h];N&&g.cl(N)}}catch(p){}kr=!0;Tf("DCLKSTAT",3)}},5E3))}}}; +ec=function(){var C=Number(g.BC("DCLKSTAT",0));return isNaN(C)?0:C}; +aM=function(C,b,h){var N=this;this.network=C;this.options=b;this.K=h;this.j=null;if(b.mko){var p=new g.o0;this.j=p.promise;g.sl.ytAtRC&&xa(function(){var P,c;return g.R(function(e){if(e.j==1){if(!g.sl.ytAtRC)return e.return();P=LD(null);return g.J(e,Zf(N,P),2)}c=e.K;g.sl.ytAtRC&&g.sl.ytAtRC(JSON.stringify(c));g.$_(e)})},2); +opV().then(function(P){var c,e,L,Z;return g.R(function(Y){if(Y.j==1)return P.bindInnertubeChallengeFetcher(function(a){return Zf(N,LD(a))}),g.J(Y,ip(),2); +c=Y.K;e=P.getLatestChallengeResponse();L=e.challenge;if(!L)throw Error("BGE_MACIL");Z={challenge:L,oI:jc(L),eh:c,bgChallenge:new a0};p.resolve(Z);P.registerChallengeFetchedCallback(function(a){a=a.challenge;if(!a)throw Error("BGE_MACR");a={challenge:a,oI:jc(a),eh:c,bgChallenge:new a0};N.j=Promise.resolve(a)}); +g.$_(Y)})})}else b.preload&&SxW(this,new Promise(function(P){g.wU(0,function(){P(Yr(N))},0)}))}; +LD=function(C){var b={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};C&&(b.interpreterHash=C);return b}; +Yr=function(C,b){b=b===void 0?0:b;var h,N,p,P,c,e,L,Z,Y,a,l,F;return g.R(function(G){switch(G.j){case 1:h=LD(Sl().j);if(g.HQ("att_fet_ks"))return g.z6(G,7),g.J(G,Zf(C,h),9);g.z6(G,4);return g.J(G,$5o(C,h),6);case 6:c=G.K;p=c.ybX;P=c.Msf;N=c;g.VH(G,3);break;case 4:return g.MW(G),g.QB(Error("Failed to fetch attestation challenge after "+(b+" attempts; not retrying for 24h."))),ly(C,864E5),G.return({challenge:"",oI:{},eh:void 0,bgChallenge:void 0});case 9:N=G.K;if(!N)throw Error("Fetching Attestation challenge returned falsy"); +if(!N.challenge)throw Error("Missing Attestation challenge");p=N.challenge;P=jc(p);if("c1a"in P&&(!N.bgChallenge||!N.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.VH(G,3);break;case 7:e=g.MW(G);g.QB(e);b++;if(b>=5)return g.QB(Error("Failed to fetch attestation challenge after "+(b+" attempts; not retrying for 24h."))),ly(C,864E5),G.return({challenge:"",oI:{},eh:void 0,bgChallenge:void 0});L=1E3*Math.pow(2,b-1)+Math.random()*1E3;return G.return(new Promise(function(V){g.wU(0, +function(){V(Yr(C,b))},L)})); +case 3:Z=Number(P.t)||7200;ly(C,Z*1E3);Y=void 0;if(!("c1a"in P&&N.bgChallenge)){G.WE(10);break}a=lGl(N.bgChallenge);g.z6(G,11);return g.J(G,$3(Sl(),a),13);case 13:g.VH(G,12);break;case 11:return l=g.MW(G),g.QB(l),G.return({challenge:p,oI:P,eh:Y,bgChallenge:a});case 12:return g.z6(G,14),Y=new FI({challenge:a,ZG:{u1:"aGIf"}}),g.J(G,Y.KP,16);case 16:g.VH(G,10);break;case 14:F=g.MW(G),g.QB(F),Y=void 0;case 10:return G.return({challenge:p,oI:P,eh:Y,bgChallenge:a})}})}; +Zf=function(C,b){var h;return g.R(function(N){h=C.K;if(!h||h.c6())return N.return(Zf(C.network,b));EG("att_pna",void 0,"attestation_challenge_fetch");return N.return(new Promise(function(p){h.Zl("publicytnetworkstatus-online",function(){Zf(C.network,b).then(p)})}))})}; +zcU=function(C){if(!C)throw Error("Fetching Attestation challenge returned falsy");if(!C.challenge)throw Error("Missing Attestation challenge");var b=C.challenge,h=jc(b);if("c1a"in h&&(!C.bgChallenge||!C.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},C,{ybX:b,Msf:h})}; +$5o=function(C,b){var h,N,p,P,c;return g.R(function(e){switch(e.j){case 1:h=void 0,N=0,p={};case 2:if(!(N<5)){e.WE(4);break}if(!(N>0)){e.WE(5);break}p.V2=1E3*Math.pow(2,N-1)+Math.random()*1E3;return g.J(e,new Promise(function(L){return function(Z){g.wU(0,function(){Z(void 0)},L.V2)}}(p)),5); +case 5:return g.z6(e,7),g.J(e,Zf(C,b),9);case 9:return P=e.K,e.return(zcU(P));case 7:h=c=g.MW(e),c instanceof Error&&g.QB(c);case 8:N++;p={V2:void 0};e.WE(2);break;case 4:throw h;}})}; +SxW=function(C,b){C.j=b}; +HrH=function(C){var b,h,N;return g.R(function(p){if(p.j==1)return g.J(p,Promise.race([C.j,null]),2);b=p.K;var P=Yr(C);C.j=P;(h=b)==null||(N=h.eh)==null||N.dispose();g.$_(p)})}; +ly=function(C,b){function h(){var p;return g.R(function(P){p=N-Date.now();return p<1E3?g.J(P,HrH(C),0):(xa(h,0,Math.min(p,6E4)),P.WE(0))})} +var N=Date.now()+b;h()}; +V8S=function(C,b){return new Promise(function(h){g.wU(0,function(){h(b())},C)})}; +g.M8l=function(C,b){var h;return g.R(function(N){var p=g.Dx("yt.aba.att");return(h=p?p:aM.instance!==void 0?aM.instance.N.bind(aM.instance):null)?N.return(h("ENGAGEMENT_TYPE_PLAYBACK",C,b)):N.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; +g.qxK=function(){var C;return(C=(C=g.Dx("yt.aba.att2"))?C:aM.instance!==void 0?aM.instance.X.bind(aM.instance):null)?C():Promise.resolve(!1)}; +fGS=function(C,b){var h=g.Dx("ytDebugData.callbacks");h||(h={},g.Ol("ytDebugData.callbacks",h));if(g.HQ("web_dd_iu")||m5H.includes(C))h[C]=b}; +oM=function(){var C=ApH;var b=b===void 0?[]:b;var h=h===void 0?[]:h;b=fR_.apply(null,[AHS.apply(null,g.M(b))].concat(g.M(h)));this.store=rHl(C,void 0,b)}; +g.F9=function(C,b,h){for(var N=Object.assign({},C),p=g.z(Object.keys(b)),P=p.next();!P.done;P=p.next()){P=P.value;var c=C[P],e=b[P];if(e===void 0)delete N[P];else if(c===void 0)N[P]=e;else if(Array.isArray(e)&&Array.isArray(c))N[P]=h?[].concat(g.M(c),g.M(e)):e;else if(!Array.isArray(e)&&g.T6(e)&&!Array.isArray(c)&&g.T6(c))N[P]=g.F9(c,e,h);else if(typeof e===typeof c)N[P]=e;else return b=new g.tJ("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:P,Pbp:c,updateValue:e}),g.Ri(b), +C}return N}; +G7=function(C){var b=this;C=C===void 0?[]:C;this.xJ=[];this.GQ=this.yX=0;this.Ug=void 0;this.totalLength=0;C.forEach(function(h){b.append(h)})}; +yp6=function(C,b){return C.xJ.length===0?!1:(C=C.xJ[C.xJ.length-1])&&C.buffer===b.buffer&&C.byteOffset+C.length===b.byteOffset}; +Sc=function(C,b){b=g.z(b.xJ);for(var h=b.next();!h.done;h=b.next())C.append(h.value)}; +$r=function(C,b,h){return C.split(b).j9.split(h).Xt}; +z7=function(C){C.Ug=void 0;C.yX=0;C.GQ=0}; +HN=function(C,b,h){C.isFocused(b);return b-C.GQ+h<=C.xJ[C.yX].length}; +rpW=function(C){if(!C.Ug){var b=C.xJ[C.yX];C.Ug=new DataView(b.buffer,b.byteOffset,b.length)}return C.Ug}; +VC=function(C,b,h){C=C.f5(b===void 0?0:b,h===void 0?-1:h);b=new Uint8Array(C.length);try{b.set(C)}catch(N){for(h=0;h>10;P=56320|P&1023}mW[p++]=P}}P=String.fromCharCode.apply(String,mW); +p<1024&&(P=P.substring(0,p));h.push(P)}return h.join("")}; +yC=function(C,b){var h;if((h=AU)==null?0:h.encodeInto)return b=AU.encodeInto(C,b),b.read>6|192:((p&64512)===55296&&N+1>18|240,b[h++]=p>>12&63|128):b[h++]=p>>12|224,b[h++]=p>>6&63|128),b[h++]=p&63|128)}return h}; +r1=function(C){if(AU)return AU.encode(C);var b=new Uint8Array(Math.ceil(C.length*1.2)),h=yC(C,b);b.lengthh&&(b=b.subarray(0,h));return b}; +iy=function(C){this.j=C;this.pos=0;this.K=-1}; +JU=function(C){var b=C.j.getUint8(C.pos);++C.pos;if(b<128)return b;for(var h=b&127,N=1;b>=128;)b=C.j.getUint8(C.pos),++C.pos,N*=128,h+=(b&127)*N;return h}; +uy=function(C,b){var h=C.K;for(C.K=-1;C.j.FS(C.pos,1);){h<0&&(h=JU(C));var N=h>>3,p=h&7;if(N===b)return!0;if(N>b){C.K=h;break}h=-1;switch(p){case 0:JU(C);break;case 1:C.pos+=8;break;case 2:N=JU(C);C.pos+=N;break;case 5:C.pos+=4}}return!1}; +RM=function(C,b){if(uy(C,b))return JU(C)}; +QC=function(C,b){if(uy(C,b))return!!JU(C)}; +UT=function(C,b){if(uy(C,b)){b=JU(C);var h=C.j.f5(C.pos,b);C.pos+=b;return h}}; +X9=function(C,b){if(C=UT(C,b))return g.fD(C)}; +KD=function(C,b,h){if(C=UT(C,b))return h(new iy(new G7([C])))}; +sT=function(C,b){for(var h=[];uy(C,b);)h.push(JU(C));return h.length?h:void 0}; +OT=function(C,b,h){for(var N=[],p;p=UT(C,b);)N.push(h(new iy(new G7([p]))));return N.length?N:void 0}; +vN=function(C,b){C=C instanceof Uint8Array?new G7([C]):C;return b(new iy(C))}; +ubl=function(C,b,h){if(b&&h&&h.buffer===b.exports.memory.buffer){var N=b.realloc(h.byteOffset,C);if(N)return new Uint8Array(b.exports.memory.buffer,N,C)}C=b?new Uint8Array(b.exports.memory.buffer,b.malloc(C),C):new Uint8Array(C);h&&C.set(h);return C}; +Rcl=function(C,b){this.d9=b;this.pos=0;this.K=[];this.j=ubl(C===void 0?4096:C,b);this.view=new DataView(this.j.buffer,this.j.byteOffset,this.j.byteLength)}; +Df=function(C,b){b=C.pos+b;if(!(C.j.length>=b)){for(var h=C.j.length*2;h268435455){Df(C,4);for(var h=b&1073741823,N=0;N<4;N++)C.view.setUint8(C.pos,h&127|128),h>>=7,C.pos+=1;b=Math.floor(b/268435456)}for(Df(C,4);b>127;)C.view.setUint8(C.pos,b&127|128),b>>=7,C.pos+=1;C.view.setUint8(C.pos,b);C.pos+=1}; +WN=function(C,b,h){h!==void 0&&(d1(C,b*8),d1(C,h))}; +ET=function(C,b,h){h!==void 0&&WN(C,b,h?1:0)}; +nD=function(C,b,h){h!==void 0&&(d1(C,b*8+2),b=h.length,d1(C,b),Df(C,b),C.j.set(h,C.pos),C.pos+=b)}; +tU=function(C,b,h){h!==void 0&&(QFl(C,b,Math.ceil(Math.log2(h.length*4+2)/7)),Df(C,h.length*1.2),b=yC(h,C.j.subarray(C.pos)),C.pos+b>C.j.length&&(Df(C,b),b=yC(h,C.j.subarray(C.pos))),C.pos+=b,U51(C))}; +QFl=function(C,b,h){h=h===void 0?2:h;d1(C,b*8+2);C.K.push(C.pos);C.K.push(h);C.pos+=h}; +U51=function(C){for(var b=C.K.pop(),h=C.K.pop(),N=C.pos-h-b;b--;){var p=b?128:0;C.view.setUint8(h++,N&127|p);N>>=7}}; +pY=function(C,b,h,N,p){h&&(QFl(C,b,p===void 0?3:p),N(C,h),U51(C))}; +g.PW=function(C,b,h){h=new Rcl(4096,h);b(h,C);return new Uint8Array(h.j.buffer,h.j.byteOffset,h.pos)}; +g.j_=function(C){var b=new iy(new G7([H5(decodeURIComponent(C))]));C=X9(b,2);b=RM(b,4);var h=Xll[b];if(typeof h==="undefined")throw C=new g.tJ("Failed to recognize field number",{name:"EntityKeyHelperError",eJo:b}),g.Ri(C),C;return{Lb:b,entityType:h,entityId:C}}; +g.cW=function(C,b){var h=new Rcl;nD(h,2,r1(C));C=KiH[b];if(typeof C==="undefined")throw b=new g.tJ("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:b}),g.Ri(b),b;WN(h,4,C);WN(h,5,1);b=new Uint8Array(h.j.buffer,h.j.byteOffset,h.pos);return encodeURIComponent(g.$s(b))}; +kJ=function(C,b,h,N){if(N===void 0)return N=Object.assign({},C[b]||{}),h=(delete N[h],N),N={},Object.assign({},C,(N[b]=h,N));var p={},P={};return Object.assign({},C,(P[b]=Object.assign({},C[b],(p[h]=N,p)),P))}; +sFU=function(C,b,h,N,p){var P=C[b];if(P==null||!P[h])return C;N=g.F9(P[h],N,p==="REPEATED_FIELDS_MERGE_OPTION_APPEND");p={};P={};return Object.assign({},C,(P[b]=Object.assign({},C[b],(p[h]=N,p)),P))}; +Orc=function(C,b){C=C===void 0?{}:C;switch(b.type){case "ENTITY_LOADED":return b.payload.reduce(function(N,p){var P,c=(P=p.options)==null?void 0:P.persistenceOption;if(c&&c!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&c!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return N;if(!p.entityKey)return g.Ri(Error("Missing entity key")),N;if(p.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!p.payload)return g.Ri(new g.tJ("REPLACE entity mutation is missing a payload",{entityKey:p.entityKey})),N;var e=g.VT(p.payload); +return kJ(N,e,p.entityKey,p.payload[e])}if(p.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{p=p.entityKey;try{var L=g.j_(p).entityType;e=kJ(N,L,p);break a}catch(a){if(a instanceof Error){g.Ri(new g.tJ("Failed to deserialize entity key",{entityKey:p,S5:a.message}));e=N;break a}throw a;}e=void 0}return e}if(p.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!p.payload)return g.Ri(new g.tJ("UPDATE entity mutation is missing a payload",{entityKey:p.entityKey})),N;e=g.VT(p.payload);var Z,Y;return sFU(N,e,p.entityKey, +p.payload[e],(Z=p.fieldMask)==null?void 0:(Y=Z.mergeOptions)==null?void 0:Y.repeatedFieldsMergeOption)}return N},C); +case "REPLACE_ENTITY":var h=b.payload;return kJ(C,h.entityType,h.key,h.Fj);case "REPLACE_ENTITIES":return Object.keys(b.payload).reduce(function(N,p){var P=b.payload[p];return Object.keys(P).reduce(function(c,e){return kJ(c,p,e,P[e])},N)},C); +case "UPDATE_ENTITY":return h=b.payload,sFU(C,h.entityType,h.key,h.Fj,h.CbO);default:return C}}; +e_=function(C,b,h){return C[b]?C[b][h]||null:null}; +LY=function(C){return window.Int32Array?new Int32Array(C):Array(C)}; +Fx=function(C){g.O.call(this);this.counter=[0,0,0,0];this.K=new Uint8Array(16);this.j=16;if(!vpH){var b,h=new Uint8Array(256),N=new Uint8Array(256);var p=1;for(b=0;b<256;b++)h[p]=b,N[b]=p,p^=p<<1^(p>>7&&283);Z0=new Uint8Array(256);YJ=LY(256);aN=LY(256);lo=LY(256);oN=LY(256);for(var P=0;P<256;P++){p=P?N[255^h[P]]:0;p^=p<<1^p<<2^p<<3^p<<4;p=p&255^p>>>8^99;Z0[P]=p;b=p<<1^(p>>7&&283);var c=b^p;YJ[P]=b<<24|p<<16|p<<8|c;aN[P]=c<<24|YJ[P]>>>8;lo[P]=p<<24|aN[P]>>>8;oN[P]=p<<24|lo[P]>>>8}vpH=!0}p=LY(44);for(h= +0;h<4;h++)p[h]=C[4*h]<<24|C[4*h+1]<<16|C[4*h+2]<<8|C[4*h+3];for(N=1;h<44;h++)C=p[h-1],h%4||(C=(Z0[C>>16&255]^N)<<24|Z0[C>>8&255]<<16|Z0[C&255]<<8|Z0[C>>>24],N=N<<1^(N>>7&&283)),p[h]=p[h-4]^C;this.key=p}; +GN=function(C,b){for(var h=0;h<4;h++)C.counter[h]=b[h*4]<<24|b[h*4+1]<<16|b[h*4+2]<<8|b[h*4+3];C.j=16}; +D5V=function(C){for(var b=C.key,h=C.counter[0]^b[0],N=C.counter[1]^b[1],p=C.counter[2]^b[2],P=C.counter[3]^b[3],c=3;c>=0&&!(C.counter[c]=-~C.counter[c]);c--);for(var e,L,Z=4;Z<40;)c=YJ[h>>>24]^aN[N>>16&255]^lo[p>>8&255]^oN[P&255]^b[Z++],e=YJ[N>>>24]^aN[p>>16&255]^lo[P>>8&255]^oN[h&255]^b[Z++],L=YJ[p>>>24]^aN[P>>16&255]^lo[h>>8&255]^oN[N&255]^b[Z++],P=YJ[P>>>24]^aN[h>>16&255]^lo[N>>8&255]^oN[p&255]^b[Z++],h=c,N=e,p=L;C=C.K;c=b[40];C[0]=Z0[h>>>24]^c>>>24;C[1]=Z0[N>>16&255]^c>>16&255;C[2]=Z0[p>>8&255]^ +c>>8&255;C[3]=Z0[P&255]^c&255;c=b[41];C[4]=Z0[N>>>24]^c>>>24;C[5]=Z0[p>>16&255]^c>>16&255;C[6]=Z0[P>>8&255]^c>>8&255;C[7]=Z0[h&255]^c&255;c=b[42];C[8]=Z0[p>>>24]^c>>>24;C[9]=Z0[P>>16&255]^c>>16&255;C[10]=Z0[h>>8&255]^c>>8&255;C[11]=Z0[N&255]^c&255;c=b[43];C[12]=Z0[P>>>24]^c>>>24;C[13]=Z0[h>>16&255]^c>>16&255;C[14]=Z0[N>>8&255]^c>>8&255;C[15]=Z0[p&255]^c&255}; +zN=function(){if(!S_&&!g.BG){if($J)return $J;var C;$J=(C=window.crypto)==null?void 0:C.subtle;var b,h,N;if(((b=$J)==null?0:b.importKey)&&((h=$J)==null?0:h.sign)&&((N=$J)==null?0:N.encrypt))return $J;$J=void 0}}; +g.HW=function(C){this.X=C}; +g.V6=function(C){this.K=C}; +MH=function(C){this.G=new Uint8Array(64);this.N=new Uint8Array(64);this.X=0;this.W=new Uint8Array(64);this.K=0;this.G.set(C);this.N.set(C);for(C=0;C<64;C++)this.G[C]^=92,this.N[C]^=54;this.reset()}; +d5l=function(C,b,h){for(var N=C.J,p=C.j[0],P=C.j[1],c=C.j[2],e=C.j[3],L=C.j[4],Z=C.j[5],Y=C.j[6],a=C.j[7],l,F,G,V=0;V<64;)V<16?(N[V]=G=b[h]<<24|b[h+1]<<16|b[h+2]<<8|b[h+3],h+=4):(l=N[V-2],F=N[V-15],G=N[V-7]+N[V-16]+((l>>>17|l<<15)^(l>>>19|l<<13)^l>>>10)+((F>>>7|F<<25)^(F>>>18|F<<14)^F>>>3),N[V]=G),l=a+qH[V]+G+((L>>>6|L<<26)^(L>>>11|L<<21)^(L>>>25|L<<7))+(L&Z^~L&Y),F=((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+(p&P^p&c^P&c),a=l+F,e+=l,V++,V<16?(N[V]=G=b[h]<<24|b[h+1]<<16|b[h+2]<<8|b[h+3],h+=4):(l= +N[V-2],F=N[V-15],G=N[V-7]+N[V-16]+((l>>>17|l<<15)^(l>>>19|l<<13)^l>>>10)+((F>>>7|F<<25)^(F>>>18|F<<14)^F>>>3),N[V]=G),l=Y+qH[V]+G+((e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7))+(e&L^~e&Z),F=((a>>>2|a<<30)^(a>>>13|a<<19)^(a>>>22|a<<10))+(a&p^a&P^p&P),Y=l+F,c+=l,V++,V<16?(N[V]=G=b[h]<<24|b[h+1]<<16|b[h+2]<<8|b[h+3],h+=4):(l=N[V-2],F=N[V-15],G=N[V-7]+N[V-16]+((l>>>17|l<<15)^(l>>>19|l<<13)^l>>>10)+((F>>>7|F<<25)^(F>>>18|F<<14)^F>>>3),N[V]=G),l=Z+qH[V]+G+((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))+(c&e^ +~c&L),F=((Y>>>2|Y<<30)^(Y>>>13|Y<<19)^(Y>>>22|Y<<10))+(Y&a^Y&p^a&p),Z=l+F,P+=l,V++,V<16?(N[V]=G=b[h]<<24|b[h+1]<<16|b[h+2]<<8|b[h+3],h+=4):(l=N[V-2],F=N[V-15],G=N[V-7]+N[V-16]+((l>>>17|l<<15)^(l>>>19|l<<13)^l>>>10)+((F>>>7|F<<25)^(F>>>18|F<<14)^F>>>3),N[V]=G),l=L+qH[V]+G+((P>>>6|P<<26)^(P>>>11|P<<21)^(P>>>25|P<<7))+(P&c^~P&e),F=((Z>>>2|Z<<30)^(Z>>>13|Z<<19)^(Z>>>22|Z<<10))+(Z&Y^Z&a^Y&a),G=a,a=e,e=G,G=Y,Y=c,c=G,G=Z,Z=P,P=G,L=p+l,p=l+F,V++;C.j[0]=p+C.j[0]|0;C.j[1]=P+C.j[1]|0;C.j[2]=c+C.j[2]|0;C.j[3]= +e+C.j[3]|0;C.j[4]=L+C.j[4]|0;C.j[5]=Z+C.j[5]|0;C.j[6]=Y+C.j[6]|0;C.j[7]=a+C.j[7]|0}; +EpU=function(C){var b=new Uint8Array(32),h=64-C.K;C.K>55&&(h+=64);var N=new Uint8Array(h);N[0]=128;for(var p=C.X*8,P=1;P<9;P++){var c=p%256;N[h-P]=c;p=(p-c)/256}C.update(N);for(h=0;h<8;h++)b[h*4]=C.j[h]>>>24,b[h*4+1]=C.j[h]>>>16&255,b[h*4+2]=C.j[h]>>>8&255,b[h*4+3]=C.j[h]&255;Wi1(C);return b}; +Wi1=function(C){C.j=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];C.J=[];C.J.length=64;C.X=0;C.K=0}; +np_=function(C){this.j=C}; +t8K=function(C,b,h){C=new MH(C.j);C.update(b);C.update(h);b=EpU(C);C.update(C.G);C.update(b);b=EpU(C);C.reset();return b}; +Tjl=function(C){this.K=C}; +BjV=function(C,b,h,N){var p,P,c;return g.R(function(e){switch(e.j){case 1:if(C.j){e.WE(2);break}return g.J(e,N.importKey("raw",C.K,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:C.j=e.K;case 2:return p=new Uint8Array(b.length+h.length),p.set(b),p.set(h,b.length),P={name:"HMAC",hash:"SHA-256"},g.J(e,N.sign(P,C.j,p),4);case 4:return c=e.K,e.return(new Uint8Array(c))}})}; +IGl=function(C,b,h){C.N||(C.N=new np_(C.K));return t8K(C.N,b,h)}; +x5o=function(C,b,h){var N,p;return g.R(function(P){if(P.j==1){N=zN();if(!N)return P.return(IGl(C,b,h));g.z6(P,3);return g.J(P,BjV(C,b,h,N),5)}if(P.j!=3)return P.return(P.K);p=g.MW(P);g.QB(p);S_=!0;return P.return(IGl(C,b,h))})}; +CxU=function(C){for(var b="",h=0;h=1?C[C.length-1]:null;for(var N=g.z(C),p=N.next();!p.done;p=N.next())if(p=p.value,p.width&&p.height&&(h&&p.width>=b||!h&&p.height>=b))return p;for(b=C.length-1;b>=0;b--)if(h&&C[b].width||!h&&C[b].height)return C[b];return C[0]}; +fY=function(){this.state=1;this.eh=null}; +c_1=function(C,b,h,N,p,P){var c=c===void 0?"trayride":c;h?(C.TE(2),g.e8(h,function(){if(window[c])jiV(C,N,c,p);else{C.TE(3);var e=MXS(h),L=document.getElementById(e);L&&(HN1(e),L.parentNode.removeChild(L));g.QB(new g.tJ("Unable to load Botguard","from "+h))}},P)):b?(P=g.CM("SCRIPT"),b instanceof ON?(P.textContent=vh(b),Dq(P)):P.textContent=b,P.nonce=sN(document),document.head.appendChild(P),document.head.removeChild(P),window[c]?jiV(C,N,c,p):(C.TE(4),g.QB(new g.tJ("Unable to load Botguard from JS")))): +g.QB(new g.tJ("Unable to load VM; no url or JS provided"))}; +jiV=function(C,b,h,N){C.TE(5);try{var p=new FI({program:b,globalName:h,ZG:{disable:!g.HQ("att_web_record_metrics"),u1:"aGIf"}});p.KP.then(function(){C.TE(6);N&&N(b)}); +C.j0(p)}catch(P){C.TE(7),P instanceof Error&&g.QB(P)}}; +AB=function(){var C=g.Dx("yt.abuse.playerAttLoader");return C&&["bgvma","bgvmb","bgvmc"].every(function(b){return b in C})?C:null}; +y6=function(){fY.apply(this,arguments)}; +ri=function(){}; +k_l=function(C,b,h){for(var N=!1,p=g.z(C.Gn.entries()),P=p.next();!P.done;P=p.next())P=g.z(P.value).next().value,P.slotType==="SLOT_TYPE_PLAYER_BYTES"&&P.u$==="core"&&(N=!0);if(N){a:if(!h){C=g.z(C.Gn.entries());for(h=C.next();!h.done;h=C.next())if(N=g.z(h.value),h=N.next().value,N=N.next().value,h.slotType==="SLOT_TYPE_IN_PLAYER"&&h.u$==="core"){h=N.layoutId;break a}h=void 0}h?b.ZK(h):ZK("No triggering layout ID available when attempting to mute.")}}; +io=function(C,b){this.gH=C;this.j2=b}; +JB=function(){}; +uo=function(){}; +LZ6=function(C){g.O.call(this);var b=this;this.UU=C;this.j=new Map;RN(this,"commandExecutorCommand",function(h,N,p){ezl(b,h.commands,N,p)}); +RN(this,"clickTrackingParams",function(){})}; +ZZo=function(C,b){RN(C,b.ir(),function(h,N,p){b.mA(h,N,p)})}; +RN=function(C,b,h){C.HE();C.j.get(b)&&g.Ri(Error("Extension name "+b+" already registered"));C.j.set(b,h)}; +ezl=function(C,b,h,N){b=b===void 0?[]:b;C.HE();var p=[],P=[];b=g.z(b);for(var c=b.next();!c.done;c=b.next())c=c.value,g.d(c,Yro)||g.d(c,aLS)?p.push(c):P.push(c);p=g.z(p);for(b=p.next();!b.done;b=p.next())Q6(C,b.value,h,N);P=g.z(P);for(p=P.next();!p.done;p=P.next())Q6(C,p.value,h,N)}; +Q6=function(C,b,h,N){C.HE();b.loggingUrls&&lLK(C,"loggingUrls",b.loggingUrls,h,N);b=g.z(Object.entries(b));for(var p=b.next();!p.done;p=b.next()){var P=g.z(p.value);p=P.next().value;P=P.next().value;p==="openPopupAction"?C.UU.get().DQ("innertubeCommand",{openPopupAction:P}):p==="confirmDialogEndpoint"?C.UU.get().DQ("innertubeCommand",{confirmDialogEndpoint:P}):oMK.hasOwnProperty(p)||lLK(C,p,P,h,N)}}; +lLK=function(C,b,h,N,p){if((C=C.j.get(b))&&typeof C==="function")try{C(h,N,p)}catch(P){g.Ri(P)}else b=new g.tJ("Unhandled field",b),g.QB(b)}; +UD=function(C,b,h){this.Zv=C;this.j=b;this.M2=h}; +Xx=function(C){this.value=C}; +KY=function(C){this.value=C}; +sD=function(C){this.value=C}; +OD=function(C){this.value=C}; +vW=function(C){this.value=C}; +D0=function(C){this.value=C}; +di=function(C){this.value=C}; +WW=function(){Xx.apply(this,arguments)}; +ED=function(C){this.value=C}; +nY=function(C){this.value=C}; +tB=function(C){this.value=C}; +TN=function(C){this.value=C}; +BW=function(C){this.value=C}; +IN=function(C){this.value=C}; +xJ=function(C){this.value=C}; +wi=function(C){this.value=C}; +C4=function(C){this.value=C}; +bN=function(C){this.value=C}; +hD=function(){Xx.apply(this,arguments)}; +Nl=function(C){this.value=C}; +gA=function(C){this.value=C}; +p4=function(C){this.value=C}; +Pn=function(C){this.value=C}; +jE=function(C){this.value=C}; +cn=function(C){this.value=C}; +kR=function(C){this.value=C}; +eE=function(C){this.value=C}; +L4=function(C){this.value=C}; +Zy=function(C){this.value=C}; +YR=function(C){this.value=C}; +aE=function(C){this.value=C}; +lN=function(C){this.value=C}; +oE=function(C){this.value=C}; +FL=function(C){this.value=C}; +Gl=function(C){this.value=C}; +SE=function(C){this.value=C}; +$R=function(C){this.value=C}; +zl=function(C){this.value=C}; +Hn=function(C){this.value=C}; +VW=function(C){this.value=C}; +Ml=function(C){this.value=C}; +ql=function(C){this.value=C}; +mC=function(C){this.value=C}; +f4=function(C){this.value=C}; +AD=function(C){this.value=C}; +yW=function(C){this.value=C}; +rA=function(C){this.value=C}; +iN=function(C){this.value=C}; +JD=function(C){this.value=C}; +uN=function(C){this.value=C}; +RE=function(C){this.value=C}; +QW=function(C){this.value=C}; +UH=function(C){this.value=C}; +XL=function(C){this.value=C}; +K4=function(C){this.value=C}; +sH=function(C){this.value=C}; +OH=function(C){this.value=C}; +vn=function(){Xx.apply(this,arguments)}; +Dy=function(C){this.value=C}; +dA=function(){Xx.apply(this,arguments)}; +Wn=function(){Xx.apply(this,arguments)}; +EH=function(){Xx.apply(this,arguments)}; +n4=function(){Xx.apply(this,arguments)}; +tD=function(){Xx.apply(this,arguments)}; +Tl=function(C){this.value=C}; +Bn=function(C){this.value=C}; +IE=function(C){this.value=C}; +xR=function(C){this.value=C}; +wA=function(C){this.value=C}; +bR=function(C,b,h){if(h&&!h.includes(C.layoutType))return!1;b=g.z(b);for(h=b.next();!h.done;h=b.next())if(!Ck(C.clientMetadata,h.value))return!1;return!0}; +hc=function(){return""}; +FZx=function(C,b){switch(C){case "TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL":return 0;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED":return 1;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED":return 2;case "TRIGGER_CATEGORY_SLOT_EXPIRATION":return 3;case "TRIGGER_CATEGORY_SLOT_FULFILLMENT":return 4;case "TRIGGER_CATEGORY_SLOT_ENTRY":return 5;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED":return 6;case "TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED":return 7;default:return b(C),8}}; +No=function(C,b,h,N){N=N===void 0?!1:N;SD.call(this,C);this.yH=h;this.zW=N;this.args=[];b&&this.args.push(b)}; +I=function(C,b,h,N){N=N===void 0?!1:N;SD.call(this,C);this.yH=h;this.zW=N;this.args=[];b&&this.args.push(b)}; +g0=function(C){var b=new Map;C.forEach(function(h){b.set(h.getType(),h)}); +this.j=b}; +Ck=function(C,b){return C.j.has(b)}; +pk=function(C,b){C=C.j.get(b);if(C!==void 0)return C.get()}; +Pk=function(C){return Array.from(C.j.keys())}; +jP=function(C,b,h){if(h&&h!==C.slotType)return!1;b=g.z(b);for(h=b.next();!h.done;h=b.next())if(!Ck(C.clientMetadata,h.value))return!1;return!0}; +SrS=function(C){var b;return((b=G_o.get(C))==null?void 0:b.CN)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; +kU=function(C,b){var h={type:b.slotType,controlFlowManagerLayer:$6K.get(b.u$)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};b.slotEntryTrigger&&(h.entryTriggerType=b.slotEntryTrigger.triggerType);b.slotPhysicalPosition!==1&&(h.slotPhysicalPosition=b.slotPhysicalPosition);if(C){h.debugData={slotId:b.slotId};if(C=b.slotEntryTrigger)h.debugData.slotEntryTriggerData=ck(C);C=b.slotFulfillmentTriggers;h.debugData.fulfillmentTriggerData=[];C=g.z(C);for(var N=C.next();!N.done;N=C.next())h.debugData.fulfillmentTriggerData.push(ck(N.value)); +b=b.slotExpirationTriggers;h.debugData.expirationTriggerData=[];b=g.z(b);for(C=b.next();!C.done;C=b.next())h.debugData.expirationTriggerData.push(ck(C.value))}return h}; +zzl=function(C,b){var h={type:b.layoutType,controlFlowManagerLayer:$6K.get(b.u$)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};C&&(h.debugData={layoutId:b.layoutId});return h}; +ck=function(C,b){var h={type:C.triggerType};b!=null&&(h.category=b);C.triggeringSlotId!=null&&(h.triggerSourceData||(h.triggerSourceData={}),h.triggerSourceData.associatedSlotId=C.triggeringSlotId);C.triggeringLayoutId!=null&&(h.triggerSourceData||(h.triggerSourceData={}),h.triggerSourceData.associatedLayoutId=C.triggeringLayoutId);return h}; +HZK=function(C,b,h,N){b={opportunityType:b};C&&(N||h)&&(N=g.q_(N||[],function(p){return kU(C,p)}),b.debugData=Object.assign({},h&&h.length>0?{associatedSlotId:h}:{},N.length>0?{slots:N}:{})); +return b}; +Lk=function(C,b){return function(h){return VTl(eP(C),b.slotId,b.slotType,b.slotPhysicalPosition,b.u$,b.slotEntryTrigger,b.slotFulfillmentTriggers,b.slotExpirationTriggers,h.layoutId,h.layoutType,h.u$)}}; +VTl=function(C,b,h,N,p,P,c,e,L,Z,Y){return{adClientDataEntry:{slotData:kU(C,{slotId:b,slotType:h,slotPhysicalPosition:N,u$:p,slotEntryTrigger:P,slotFulfillmentTriggers:c,slotExpirationTriggers:e,clientMetadata:new g0([])}),layoutData:zzl(C,{layoutId:L,layoutType:Z,u$:Y,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],lf:[],KJ:new Map,clientMetadata:new g0([]),hZ:{}})}}}; +YU=function(C){this.Zf=C;C=Math.random();var b=this.Zf.get();b=g.Zc(b.Z.Y().experiments,"html5_debug_data_log_probability");b=Number.isFinite(b)&&b>=0&&b<=1?b:0;this.j=C1){g.QB(new g.tJ("Exit already started",{current:C.currentState}));var h=!1}else h=!0;if(!h)return!1;C.currentState=2;C.j=b;return!0}; +oT=function(C){if(C.currentState!==2)return!1;C.currentState=3;return!0}; +wrS=function(C,b){var h=new Map;C=g.z(C);for(var N=C.next();!N.done;N=C.next()){N=N.value;if(N.layoutType==="LAYOUT_TYPE_MEDIA")var p="v";else N.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(p=pk(N.clientMetadata,"metadata_type_linked_in_player_layout_type"),p=p==="LAYOUT_TYPE_ENDCAP"||p==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":p==="LAYOUT_TYPE_SURVEY"?"s":p==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):p="u";h.set(N.layoutId,p);if(p==="u"){var P={};p=b;N=(P.c=N.layoutId,P);p.Z.jp("uct",N)}}C= +b.fI();F7={contentCpn:C,d_:h};N={};h=(N.ct=h.size,N.c=C,N);b.Z.jp("acc",h)}; +C11=function(){F7={contentCpn:"",d_:new Map}}; +Gy=function(C){var b;return(b=F7.d_.get(C))!=null?b:"u"}; +SZ=function(C,b,h){C.Z.jp(b,h);bFH(C)}; +hio=function(C){var b=C.layoutId,h=C.Ac;if(C.Vm){var N={};SZ(C.Zv,"slso",(N.ec=b,N.is=h,N.ctp=Gy(b),N))}}; +$2=function(C){var b=C.layoutId,h=C.Ac;if(C.Vm){var N={};SZ(C.Zv,"slse",(N.ec=b,N.is=h,N.ctp=Gy(b),N))}}; +NGl=function(C){var b=C.layoutId,h=C.Ac,N=C.Zv;C.Vm&&(C={},SZ(N,"sleo",(C.xc=b,C.is=h,C.ctp=Gy(b),C)),bFH(N))}; +gHW=function(C){var b=C.cpn,h=C.Zv;C=C.Ac;var N=h.fI(),p={};SZ(h,"ce",(p.ec=b,p.ia=b!==N,p.r=F7.d_.has(b),p.is=C,p.ctp=Gy(b),p))}; +bFH=function(C){if(C.fI()!==F7.contentCpn){var b={};b=(b.c=F7.contentCpn,b);C.Z.jp("ccm",b)}}; +pXo=function(C){var b=C.cpn,h=C.Zv;C=C.Ac;var N=h.fI(),p={};SZ(h,"cx",(p.xc=b,p.ia=b!==N,p.r=F7.d_.has(b),p.is=C,p.ctp=Gy(b),p))}; +P1c=function(C){this.params=C;this.j=new Set}; +jxS=function(C,b,h){if(!C.j.has(b)){C.j.add(b);var N={};C.params.Nl.jC(b,Object.assign({},h,(N.p_ac=C.params.adCpn,N.p_isv=C.params.zDE&&C.params.CK,N)))}}; +H9=function(C,b,h){if(zy(C.params.Nl.Zf.get(),!0)){var N=h.flush,p={};jxS(C,b,(p.cts=h.currentTimeSec,p.f=N,p))}}; +cMx=function(C,b){this.Zv=C;this.Zf=b}; +VX=function(C){var b=[];if(C){C=g.z(Object.entries(C));for(var h=C.next();!h.done;h=C.next()){var N=g.z(h.value);h=N.next().value;N=N.next().value;N!==void 0&&(N=typeof N==="boolean"?""+ +N:(""+N).replace(/[:,=]/g,"_"),b.push(h+"."+N))}}return b.join(";")}; +Mw=function(C,b,h){b=b===void 0?{}:b;this.errorCode=C;this.details=b;this.severity=h===void 0?0:h}; +qw=function(C){return C===1||C===2}; +ml=function(C,b){b=b===void 0?0:b;if(C instanceof Mw)return C;C=C&&C instanceof Error?C:Error(""+C);qw(b)?g.Ri(C):g.QB(C);return new Mw(b===1?"player.fatalexception":"player.exception",{name:""+C.name,message:""+C.message},b)}; +kvU=function(C,b){function h(){var N=g.ro.apply(0,arguments);C.removeEventListener("playing",h);b.apply(null,g.M(N))} +C.addEventListener("playing",h)}; +fE=function(){var C=g.Dx("yt.player.utils.videoElement_");C||(C=g.CM("VIDEO"),g.Ol("yt.player.utils.videoElement_",C));return C}; +Am=function(C){var b=fE();return!!(b&&b.canPlayType&&b.canPlayType(C))}; +re=function(C){if(/opus/.test(C)&&g.yX&&!f2("38")&&!g.ES())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(C);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(C);if(/webm/.test(C)&&!zg_())return!1;C==='audio/mp4; codecs="mp4a.40.2"'&&(C='video/mp4; codecs="avc1.4d401f"');return!!Am(C)}; +eiW=function(C){try{var b=re('video/mp4; codecs="avc1.42001E"')||re('video/webm; codecs="vp9"');return(re('audio/mp4; codecs="mp4a.40.2"')||re('audio/webm; codecs="opus"'))&&(b||!C)||Am('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(h){return"html5.missingapi"}}; +ii=function(){var C=fE();return!(!C.webkitSupportsPresentationMode||typeof C.webkitSetPresentationMode!=="function")}; +Jm=function(){var C=fE();try{var b=C.muted;C.muted=!b;return C.muted!==b}catch(h){}return!1}; +LMl=function(){var C;return((C=navigator.connection)==null?void 0:C.type)||""}; +g.ui=function(){AJ.apply(this,arguments)}; +RT=function(C,b,h,N,p,P,c){this.sampleRate=C===void 0?0:C;this.numChannels=b===void 0?0:b;this.spatialAudioType=h===void 0?"SPATIAL_AUDIO_TYPE_NONE":h;this.j=N===void 0?!1:N;this.N=p===void 0?0:p;this.K=P===void 0?0:P;this.audioQuality=c===void 0?"AUDIO_QUALITY_UNKNOWN":c}; +X7=function(C,b,h,N,p,P,c,e,L){this.width=C;this.height=b;this.quality=P||QX(C,b);this.j=g.Un[this.quality];this.fps=h||0;this.stereoLayout=!p||N!=null&&N!=="UNKNOWN"&&N!=="RECTANGULAR"?0:p;this.projectionType=N?N==="EQUIRECTANGULAR"&&p===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":N:"UNKNOWN";(C=c)||(C=g.Un[this.quality],C===0?C="Auto":(b=this.fps,h=this.projectionType,C=C.toString()+(h==="EQUIRECTANGULAR"||h==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||h==="MESH"?"s":"p")+(b>55?"60":b>49?"50":b>39?"48":""))); +this.qualityLabel=C;this.K=e||"";this.primaries=L||""}; +QX=function(C,b){var h=Math.max(C,b);C=Math.min(C,b);b=KE[0];for(var N=0;N=Math.floor(P*16/9)*1.3||C>=P*1.3)return b;b=p}return"tiny"}; +v9=function(C,b,h){h=h===void 0?{}:h;this.id=C;this.mimeType=b;h.OX>0||(h.OX=16E3);Object.assign(this,h);C=g.z(this.id.split(";"));this.itag=C.next().value;this.j=C.next().value;this.containerType=sn(b);this.PE=On[this.itag]||""}; +DC=function(C){return C.PE==="9"||C.PE==="("||C.PE==="9h"||C.PE==="(h"}; +ZFW=function(C){return C.PE==="H"||C.PE==="h"}; +de=function(C){return C.PE==="9h"||C.PE==="(h"}; +W9=function(C){return C.PE==="1"||C.PE==="1h"}; +En=function(C){return C.PE==="mac3"||C.PE==="meac3"||C.PE==="m"||C.PE==="i"}; +nE=function(C){return C.PE==="MAC3"||C.PE==="MEAC3"||C.PE==="M"||C.PE==="I"}; +g.tm=function(C){return C.containerType===1}; +Y8_=function(C){return C.PE==="("||C.PE==="(h"||C.PE==="H"}; +Ty=function(C){return C.mimeType==="application/x-mpegURL"}; +B9=function(C){C=C.mimeType;return C.includes("vtt")||C.includes("text/mp4")}; +g.IT=function(C,b){return{itag:+C.itag,lmt:b?0:C.lastModified,xtags:C.j||""}}; +aKV=function(C){var b=navigator.mediaCapabilities;if(b==null||!b.decodingInfo||C.PE==="f")return Promise.resolve();var h={type:C.audio&&C.video?"file":"media-source"};C.video&&(h.video={contentType:C.mimeType,width:C.video.width||640,height:C.video.height||360,bitrate:C.OX*8||1E6,framerate:C.video.fps||30});C.audio&&(h.audio={contentType:C.mimeType,channels:""+(C.audio.numChannels||2),bitrate:C.OX*8||128E3,samplerate:C.audio.sampleRate||44100});return b.decodingInfo(h).then(function(N){C.K=N})}; +x2=function(C){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(C)}; +we=function(C){return/(vp9|vp09|vp8|avc1|av01)/.test(C)}; +sn=function(C){return C.indexOf("/mp4")>=0?1:C.indexOf("/webm")>=0?2:C.indexOf("/x-flv")>=0?3:C.indexOf("/vtt")>=0?4:0}; +CI=function(C,b,h,N,p,P){var c=new RT;b in g.Un||(b="small");b==="light"&&(b="tiny");N&&p?(p=Number(p),N=Number(N)):(p=g.Un[b],N=Math.round(p*16/9));P=new X7(N,p,0,null,void 0,b,P);C=unescape(C.replace(/"/g,'"'));return new v9(h,C,{audio:c,video:P})}; +bJ=function(C){var b="id="+C.id;C.video&&(b+=", res="+C.video.qualityLabel);var h,N;return b+", byterate=("+((h=C.V$)==null?void 0:h.toFixed(0))+", "+((N=C.OX)==null?void 0:N.toFixed(0))+")"}; +hA=function(C,b){return{start:function(h){return C[h]}, +end:function(h){return b[h]}, +length:C.length}}; +lKo=function(C,b,h){for(var N=[],p=[],P=0;P=b)return h}catch(N){}return-1}; +pI=function(C,b){return g6(C,b)>=0}; +oH1=function(C,b){if(!C)return NaN;b=g6(C,b);return b>=0?C.start(b):NaN}; +P6=function(C,b){if(!C)return NaN;b=g6(C,b);return b>=0?C.end(b):NaN}; +jJ=function(C){return C&&C.length?C.end(C.length-1):NaN}; +c6=function(C,b){C=P6(C,b);return C>=0?C-b:0}; +ke=function(C,b,h){for(var N=[],p=[],P=0;Ph||(N.push(Math.max(b,C.start(P))-b),p.push(Math.min(h,C.end(P))-b));return hA(N,p)}; +eJ=function(C,b,h,N){g.cr.call(this);var p=this;this.Ns=C;this.start=b;this.end=h;this.isActive=N;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.XL={error:function(){!p.HE()&&p.isActive&&p.publish("error",p)}, +updateend:function(){!p.HE()&&p.isActive&&p.publish("updateend",p)}}; +this.Ns.Gu(this.XL);this.yf=this.isActive}; +Zm=function(C,b,h,N,p,P){g.cr.call(this);var c=this;this.rU=C;this.iH=b;this.id=h;this.containerType=N;this.PE=p;this.CK=P;this.j_=this.vp=this.Kv=null;this.Sw=!1;this.appendWindowStart=this.timestampOffset=0;this.zf=hA([],[]);this.Z2=!1;this.Ai=[];this.kR=LI?[]:void 0;this.B7=function(L){return c.publish(L.type,c)}; +var e;if((e=this.rU)==null?0:e.addEventListener)this.rU.addEventListener("updateend",this.B7),this.rU.addEventListener("error",this.B7)}; +Ye=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; +aA=function(C,b){this.dU=C;this.j=b===void 0?!1:b;this.K=!1}; +sO=function(C,b,h){h=h===void 0?!1:h;g.O.call(this);this.mediaElement=C;this.pO=b;this.isView=h;this.W=0;this.X=!1;this.G=!0;this.V=0;this.callback=null;this.L=!1;this.pO||(this.iH=this.mediaElement.Rb());this.events=new g.ui(this);g.D(this,this.events);this.N=new aA(this.pO?window.URL.createObjectURL(this.pO):this.iH.webkitMediaSourceURL,!0);C=this.pO||this.iH;yJ(this.events,C,["sourceopen","webkitsourceopen"],this.IbO);yJ(this.events,C,["sourceclose","webkitsourceclose"],this.A8p);this.J={updateend:this.lK}}; +FMl=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; +GvV=function(C,b){OO(C)?g.eI(function(){b(C)}):C.callback=b}; +S8W=function(C,b,h){if(v6){var N;Dm(C.mediaElement,{l:"mswssb",sr:(N=C.mediaElement.vE)==null?void 0:N.v$()},!1);b.Gu(C.J,C);h.Gu(C.J,C)}C.j=b;C.K=h;g.D(C,b);g.D(C,h)}; +$j1=function(C,b,h,N){N=b.mimeType+(N===void 0?"":N);var p=h.mimeType;b=b.PE;h=h.PE;var P;C.KO=(P=C.pO)==null?void 0:P.addSourceBuffer(p);var c;C.N2=N.split(";")[0]==="fakesb"?void 0:(c=C.pO)==null?void 0:c.addSourceBuffer(N);C.iH&&(C.iH.webkitSourceAddId("0",p),C.iH.webkitSourceAddId("1",N));P=new Zm(C.KO,C.iH,"0",sn(p),h,!1);N=new Zm(C.N2,C.iH,"1",sn(N),b,!0);S8W(C,P,N)}; +d6=function(C){return!!C.j||!!C.K}; +OO=function(C){try{return W6(C)==="open"}catch(b){return!1}}; +W6=function(C){if(C.pO)return C.pO.readyState;switch(C.iH.webkitSourceState){case C.iH.SOURCE_OPEN:return"open";case C.iH.SOURCE_ENDED:return"ended";default:return"closed"}}; +EO=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; +zil=function(C){OO(C)&&(C.pO?C.pO.endOfStream():C.iH.webkitSourceEndOfStream(C.iH.EOS_NO_ERROR))}; +HF1=function(C,b,h,N){if(!C.j||!C.K)return null;var p=C.j.isView()?C.j.Ns:C.j,P=C.K.isView()?C.K.Ns:C.K,c=new sO(C.mediaElement,C.pO,!0);c.N=C.N;S8W(c,new eJ(p,b,h,N),new eJ(P,b,h,N));OO(C)||C.j.OV(C.j.Z9());return c}; +V5K=function(C){var b;(b=C.j)==null||b.MI();var h;(h=C.K)==null||h.MI();C.G=!1}; +nI=function(){var C=this;this.d$=this.oh=Jll;this.promise=new g.o9(function(b,h){C.oh=b;C.d$=h})}; +tA=function(){g.O.call(this);this.n4=!1;this.dU=null;this.J=this.W=!1;this.X=new g.wQ;this.vE=null;g.D(this,this.X)}; +TF=function(C){C=C.Zd();return C.length<1?NaN:C.end(C.length-1)}; +M5W=function(C){!C.K&&FMl()&&(C.N?C.N.then(function(){return M5W(C)}):C.R$()||(C.K=C.Jj()))}; +q8l=function(C){C.K&&(C.K.dispose(),C.K=void 0)}; +Dm=function(C,b,h){var N;((N=C.vE)==null?0:N.tZ())&&C.vE.jp("rms",b,h===void 0?!1:h)}; +mjW=function(C,b,h){C.isPaused()||C.getCurrentTime()>b||h>10||(C.play(),g.Fu(function(){mjW(C,C.getCurrentTime(),h+1)},500))}; +fKW=function(C,b){C.dU&&C.dU.y8(b)||(C.dU&&C.dU.dispose(),C.dU=b)}; +B6=function(C){return c6(C.XX(),C.getCurrentTime())}; +AMc=function(C,b){if(C.qZ()===0||C.hasError())return!1;var h=C.getCurrentTime()>0;return b>=0&&(C=C.Zd(),C.length||!h)?pI(C,b):h}; +IA=function(C){C.R$()&&(C.vE&&C.vE.Ap("rs_s"),Tn&&C.getCurrentTime()>0&&C.seekTo(0),C.Hd(),C.load(),fKW(C,null));delete C.N}; +xe=function(C){switch(C.LX()){case 2:return"progressive.net.retryexhausted";case 3:return C=C.WL(),(C==null?0:C.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||yMS&&(C==null?0:C.includes("audio_output_change"))?"capability.changed":"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}}; +g.w6=function(C,b,h){this.N9=b===void 0?null:b;this.seekSource=h===void 0?null:h;this.state=C||64}; +C3=function(C,b,h){h=h===void 0?!1:h;return rMx(C,b.getCurrentTime(),(0,g.Ai)(),B6(b),h)}; +b$=function(C,b,h,N){if(!(b===C.state&&h===C.N9&&N===C.seekSource||b!==void 0&&(b&128&&!h||b&2&&b&16))){var p;if(p=b)p=b||C.state,p=!!(p&16||p&32);C=new g.w6(b,h,p?N?N:C.seekSource:null)}return C}; +hI=function(C,b,h){return b$(C,C.state|b,null,h===void 0?null:h)}; +NO=function(C,b){return b$(C,C.state&~b,null,null)}; +gP=function(C,b,h,N){return b$(C,(C.state|b)&~h,null,N===void 0?null:N)}; +g.B=function(C,b){return!!(C.state&b)}; +g.p3=function(C,b){return b.state===C.state&&b.N9===C.N9}; +PF=function(C){return C.isPlaying()&&!g.B(C,16)&&!g.B(C,32)}; +jg=function(C){return g.B(C,128)?-1:g.B(C,2)?0:g.B(C,2048)?3:g.B(C,64)?-1:g.B(C,1)&&!g.B(C,32)?3:g.B(C,8)?1:g.B(C,4)?2:-1}; +k4=function(C,b,h,N,p,P,c,e,L,Z,Y,a,l,F,G,V,q){g.O.call(this);var f=this;this.aM=C;this.slot=b;this.layout=h;this.M2=N;this.ZJ=p;this.fO=P;this.EX=c;this.EU=e;this.Hb=L;this.zV=Z;this.position=a;this.W=l;this.Zf=F;this.vO=G;this.V6=V;this.context=q;this.Zj=!0;this.G=!1;this.OI="not_rendering";this.K=!1;this.N=new aT;C=pk(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.gO=new mU(h.KJ,this.M2,C,h.layoutId);var y;C=((y=cF(this))==null?void 0:y.progressCommands)||[];this.X=new AuS(L, +C,h.layoutId,function(){return f.j6()}); +this.j=new P1c({adCpn:this.layout.layoutId,Nl:q.Nl,zDE:this.vO,CK:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; +eg=function(C){return{layoutId:C.Kt(),Ac:C.vO,Zv:C.fO.get(),Vm:C.aD()}}; +L3=function(C,b){return b.layoutId!==C.layout.layoutId?(C.aM.XH(C.slot,b,new No("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+C.layout.layoutId+("and LayoutType: "+C.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; +ZP=function(C){C.OI="rendering_start_requested";C.zV(-1)}; +cF=function(C){return pk(C.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; +iFV=function(C){ZK("Received layout exit signal when not in layout exit flow.",C.slot,C.layout)}; +JM_=function(C){var b;return((b=Y4(C.fO.get(),2))==null?void 0:b.clientPlaybackNonce)||""}; +aJ=function(C,b){switch(b){case "normal":C.LJ("complete");break;case "skipped":C.LJ("skip");break;case "abandoned":Jk(C.gO,"impression")&&C.LJ("abandon")}}; +l$=function(C,b){C.G||(b=new g.YH(b.state,new g.w6),C.G=!0);return b}; +oJ=function(C,b){LE(b)?C.zV(1):g.l1(b,4)&&!g.l1(b,2)&&C.Ot();ax(b,4)<0&&!(ax(b,2)<0)&&C.AB()}; +u_W=function(C){C.position===0&&(C.EU.get(),C=pk(C.layout.clientMetadata,"metadata_type_ad_placement_config").kind,C={adBreakType:Fm(C)},OG("ad_bl"),g.vs(C))}; +GO=function(C,b){rL(C.gO,b,!C.K)}; +QxU=function(C){var b;return(((b=cF(C))==null?void 0:b.progressCommands)||[]).findIndex(function(h){return!!g.d(h==null?void 0:h.command,RiV)})!==-1}; +Sg=function(C,b){var h=pk(C.clientMetadata,"metadata_type_eligible_for_ssap");return h===void 0?(ZK("Expected SSAP eligibility in PlayerBytes factory",C),!1):b.aD(h)}; +$4=function(C,b){if(!tc(b.get(),"html5_ssap_pass_transition_reason"))return 3;switch(C){case "skipped":case "muted":case "user_input_submitted":return 3;case "normal":return 2;case "error":return ZK("Unexpected error from cPACF during rendering"),6;case "abandoned":return 5;case "user_cancelled":case "unknown":return ZK("Unexpected layout exit reason",void 0,void 0,{layoutExitReason:C}),3;default:Pv(C,"unknown layoutExitReason")}}; +Ujl=function(C){ZK("getExitReason: unexpected reason",void 0,void 0,{reason:C})}; +zO=function(C,b){if(tc(b.get(),"html5_ssap_pass_transition_reason"))switch(C){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return Ujl(C),"abandoned";case 3:case 1:return Ujl(C),"error";default:Pv(C,"unexpected transition reason")}else switch(C){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return ZK("getExitReason: unexpected reason",void 0,void 0,{reason:C}),"error";default:Pv(C,"unexpected transition reason")}}; +HF=function(C,b,h){d8(C,h)||EG(C,b,h);d8(C,"video_to_ad")||EG(C,b,"video_to_ad");d8(C,"ad_to_video")||EG(C,b,"ad_to_video");d8(C,"ad_to_ad")||EG(C,b,"ad_to_ad")}; +VU=function(C,b,h,N,p,P,c,e,L,Z,Y,a,l,F,G,V,q,f){k4.call(this,C,b,h,N,p,P,c,e,Z,Y,a,l,F,G,V,q,f);var y=this;this.UU=L;this.s1=a;this.a8=!0;this.Xl=this.EB=0;this.F1=a9(function(){hio(eg(y));y.aM.VV(y.slot,y.layout)}); +this.qc=a9(function(){NGl(eg(y));y.OI!=="rendering_stop_requested"&&y.s1(y);y.layoutExitReason?y.aM.oV(y.slot,y.layout,y.layoutExitReason):iFV(y)}); +this.FZ=new g.Vh(200);this.FZ.listen("tick",function(){y.cW()}); +g.D(this,this.FZ)}; +qO=function(C){C.Xl=Date.now();MO(C,C.EB);C.FZ.start()}; +XXK=function(C){C.EB=C.j6();C.YY(C.EB/1E3,!0);MO(C,C.EB)}; +MO=function(C,b){b={current:b/1E3,duration:C.j6()/1E3};C.UU.get().DQ("onAdPlaybackProgress",b)}; +m0=function(C){VU.call(this,C.aM,C.slot,C.Cv,C.M2,C.ZJ,C.fO,C.EX,C.EU,C.UU,C.Hb,C.zV,C.s1,C.In,C.RA,C.Zf,C.vO,C.V6,C.context)}; +f3=function(C){VU.call(this,C.aM,C.slot,C.Cv,C.M2,C.ZJ,C.fO,C.EX,C.EU,C.UU,C.Hb,C.zV,C.s1,C.In,C.RA,C.Zf,C.vO,C.V6,C.context)}; +AI=function(){f3.apply(this,arguments)}; +KMl=function(C){return Sg(C.slot,C.Zf.get())?new AI(C):new m0(C)}; +i$=function(C){k4.call(this,C.callback,C.slot,C.Cv,C.M2,C.ZJ,C.fO,C.EX,C.EU,C.Hb,C.zV,C.s1,C.In,C.RA,C.Zf,C.vO,C.V6,C.context);var b=this;this.adCpn="";this.hw=0;this.nL=!1;this.Om=0;this.F1=a9(function(){hio(eg(b));b.aM.VV(b.slot,b.layout)}); +this.qc=a9(function(){NGl(eg(b));b.OI!=="rendering_stop_requested"&&b.s1(b);b.layoutExitReason?b.aM.oV(b.slot,b.layout,b.layoutExitReason):iFV(b)}); +this.Y6=C.Y6;this.Ak=C.Ak;this.pj=C.pj;this.UU=C.UU;this.Lv=C.Lv;this.s1=C.s1;if(!this.aD()){tc(this.Zf.get(),"html5_disable_media_load_timeout")||(this.VY=new g.C2(function(){b.W_("load_timeout",new No("Media layout load timeout.",{},"ADS_CLIENT_ERROR_MESSAGE_MEDIA_LAYOUT_LOAD_TIMEOUT",!0),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")},1E4)); +C=yU(this.Zf.get());var h=rP(this.Zf.get());C&&h&&(this.BQ=new g.C2(function(){var N=pk(b.layout.clientMetadata,"metadata_type_preload_player_vars");N&&b.Ak.get().Z.preloadVideoByPlayerVars(N,2,300)}))}}; +OFl=function(C,b){var h=pk(b.clientMetadata,"metadata_type_ad_video_id"),N=pk(b.clientMetadata,"metadata_type_legacy_info_card_vast_extension");h&&N&&C.Lv.get().Z.Y().Df.add(h,{ij:N});(b=pk(b.clientMetadata,"metadata_type_sodar_extension_data"))&&D6c(C.Y6.get(),b);sxo(C.EX.get(),!1)}; +vH6=function(C){sxo(C.EX.get(),!0);var b;((b=C.shrunkenPlayerBytesConfig)==null?0:b.shouldRequestShrunkenPlayerBytes)&&C.EX.get().TI(!1)}; +Dj_=function(C){var b=pk(C.Fq().clientMetadata,"metadata_type_player_bytes_slot_metadata");b===void 0&&ZK("PlayerBytesSlotMetadata is not filled",C.Fq(),C.b$());return(b==null?void 0:b.OY)===!0}; +JI=function(){i$.apply(this,arguments)}; +u$=function(){JI.apply(this,arguments)}; +djo=function(C){return KMl(Object.assign({},C,{aM:C.callback,zV:function(){}}))}; +WM1=function(C){return new i$(Object.assign({},C,{zV:function(b){C.UU.get().DQ("onAdIntroStateChange",b)}}))}; +EHK=function(C){function b(h){C.UU.get().wC(h)} +return Sg(C.slot,C.Zf.get())?new u$(Object.assign({},C,{zV:b})):new i$(Object.assign({},C,{zV:b}))}; +RJ=function(C){for(var b=C.Cv,h=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],N=g.z(f8()),p=N.next();!p.done;p=N.next())h.push(p.value);if(BZ(b,{qs:h,V_:["LAYOUT_TYPE_MEDIA_BREAK"]}))return djo(C);b=C.Cv;h=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];N=g.z(f8());for(p=N.next();!p.done;p=N.next())h.push(p.value);if(BZ(b,{qs:h,V_:["LAYOUT_TYPE_MEDIA"]}))return Ck(C.Cv.clientMetadata,"metadata_type_ad_intro")?WM1(C):EHK(C)}; +t5W=function(C){var b=pk(C.clientMetadata,"metadata_type_ad_placement_config").kind,h=pk(C.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:C.layoutId,adType:nHc(h),adBreakType:Fm(b)}}; +Fm=function(C){switch(C){case "AD_PLACEMENT_KIND_START":return"LATENCY_AD_BREAK_TYPE_PREROLL";case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return"LATENCY_AD_BREAK_TYPE_MIDROLL";case "AD_PLACEMENT_KIND_END":return"LATENCY_AD_BREAK_TYPE_POSTROLL";default:return"LATENCY_AD_BREAK_TYPE_UNKNOWN"}}; +nHc=function(C){switch(C){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; +TGK=function(C){try{return new QU(C.Fg,C.slot,C.layout,C.h8,C.E_,C.fO,C.qo,C.Ak,C.vW,C.EX,C.o1z,C)}catch(b){}}; +QU=function(C,b,h,N,p,P,c,e,L,Z,Y,a){g.O.call(this);this.Fg=C;this.slot=b;this.layout=h;this.h8=N;this.E_=p;this.fO=P;this.qo=c;this.Ak=e;this.vW=L;this.EX=Z;this.params=a;this.Zj=!0;C=RJ(Y);if(!C)throw Error("Invalid params for sublayout");this.Vd=C}; +BGU=function(){this.j=1;this.K=new aT}; +UX=function(C,b,h,N,p,P,c,e,L,Z,Y,a,l){g.O.call(this);this.callback=C;this.fO=b;this.qo=h;this.Ak=N;this.EX=p;this.EU=P;this.oM=c;this.slot=e;this.layout=L;this.h8=Z;this.Ye=Y;this.vW=a;this.Zf=l;this.Zj=!0;this.T0=!1;this.AL=[];this.Tl=-1;this.CR=!1;this.Wj=new BGU}; +IK_=function(C){var b;return(b=C.layout.Ig)!=null?b:pk(C.layout.clientMetadata,"metadata_type_sub_layouts")}; +Xm=function(C){return{Zv:C.fO.get(),Ac:!1,Vm:C.aD()}}; +xjH=function(C,b,h){if(C.hC()===C.AL.length-1){var N,p;ZK("Unexpected skip requested during the last sublayout",(N=C.T5())==null?void 0:N.Fq(),(p=C.T5())==null?void 0:p.b$(),{requestingSlot:b,requestingLayout:h})}}; +wXU=function(C,b,h){return h.layoutId!==K3(C,b,h)?(ZK("onSkipRequested for a PlayerBytes layout that is not currently active",C.Fq(),C.b$()),!1):!0}; +CgW=function(C){C.hC()===C.AL.length-1&&ZK("Unexpected skip with target requested during the last sublayout")}; +bgW=function(C,b,h){return h.renderingContent===void 0&&h.layoutId!==K3(C,b,h)?(ZK("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",C.Fq(),C.b$(),{requestingSlot:b,requestingLayout:h}),!1):!0}; +hk_=function(C,b,h,N){var p=pk(b.b$().clientMetadata,"metadata_type_ad_pod_skip_target");if(p&&p>0&&p0)){ZK("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",C.slot,C.layout,{indexToPlay:b,layoutId:C.layout.layoutId});break a}C.Tl=b;b=C.T5();if(C.hC()>0&&!C.aD()){var h=C.EU.get();h.K=!1;var N={};h.j&&h.videoId&&(N.cttAuthInfo={token:h.j,videoId:h.videoId});Dd("ad_to_ad",N)}C.yR(b)}}; +DP=function(C){UX.call(this,C.Fg,C.fO,C.qo,C.Ak,C.EX,C.EU,C.oM,C.slot,C.layout,C.h8,C.Ye,C.vW,C.Zf)}; +pso=function(C){(C=C.T5())&&C.xB()}; +dP=function(C){UX.call(this,C.Fg,C.fO,C.qo,C.Ak,C.EX,C.EU,C.oM,C.slot,C.layout,C.h8,C.Ye,C.vW,C.Zf);this.Db=void 0}; +Pgc=function(C,b){C.gL()&&!oT(C.Wj.K)||C.callback.oV(C.slot,C.layout,b)}; +WF=function(C){return tc(C.Zf.get(),"html5_ssap_pass_transition_reason")}; +jwH=function(C,b,h){b.ut().currentState<2&&(h=zO(h,C.Zf),b.XZ(b.b$(),h));h=b.ut().j;C.WJ(C.slot,b.b$(),h)}; +cN6=function(C,b){if(C.Wj.K.currentState<2){var h=zO(b,C.Zf);h==="error"?C.callback.XH(C.slot,C.layout,new No("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:b},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):vF(C.Ye,C.layout,h)}}; +EX=function(C,b,h){b.ut().currentState>=2||(b.XZ(b.b$(),h),oT(b.ut())&&(Ac(C.oM,C.slot,b.b$(),h),C.Db=void 0))}; +kIW=function(C,b){C.Wj.j===2&&b!==C.fI()&&ZK("onClipEntered: unknown cpn",C.slot,C.layout,{cpn:b})}; +ekW=function(C,b){var h=C.T5();if(h){var N=h.b$().layoutId,p=C.hC()+1;C.gL()?EX(C,h,b):h.XZ(h.b$(),b);p>=0&&pp&&c.sC(Y,p-N);return Y}; +SGx=function(C,b,h){var N=pk(b.clientMetadata,"metadata_type_sodar_extension_data");if(N)try{D6c(h,N)}catch(p){ZK("Unexpected error when loading Sodar",C,b,{error:p})}}; +$rU=function(C,b,h,N,p,P,c){wP(C,b,new g.YH(h,new g.w6),N,p,c,!1,P)}; +wP=function(C,b,h,N,p,P,c,e){c=c===void 0?!0:c;LE(h)&&ZC(p,0,null)&&(!Jk(C,"impression")&&e&&e(),C.LJ("impression"));Jk(C,"impression")&&(g.l1(h,4)&&!g.l1(h,2)&&C.I$("pause"),ax(h,4)<0&&!(ax(h,2)<0)&&C.I$("resume"),g.l1(h,16)&&p>=.5&&C.I$("seek"),c&&g.l1(h,2)&&Cy(C,h.state,b,N,p,P))}; +Cy=function(C,b,h,N,p,P,c,e){Jk(C,"impression")&&(P?(P=p-N,P=P>=-1&&P<=2):P=Math.abs(N-p)<=1,bj(C,b,P?N:p,h,N,c,e&&P),P&&C.LJ("complete"))}; +bj=function(C,b,h,N,p,P,c){iG(C,h*1E3,c);p<=0||h<=0||(b==null?0:g.B(b,16))||(b==null?0:g.B(b,32))||(ZC(h,p*.25,N)&&(P&&!Jk(C,"first_quartile")&&P("first"),C.LJ("first_quartile")),ZC(h,p*.5,N)&&(P&&!Jk(C,"midpoint")&&P("second"),C.LJ("midpoint")),ZC(h,p*.75,N)&&(P&&!Jk(C,"third_quartile")&&P("third"),C.LJ("third_quartile")))}; +zkV=function(C,b){Jk(C,"impression")&&C.I$(b?"fullscreen":"end_fullscreen")}; +Hg1=function(C){Jk(C,"impression")&&C.I$("clickthrough")}; +VdW=function(C){C.I$("active_view_measurable")}; +MdH=function(C){Jk(C,"impression")&&!Jk(C,"seek")&&C.I$("active_view_fully_viewable_audible_half_duration")}; +qGV=function(C){Jk(C,"impression")&&!Jk(C,"seek")&&C.I$("active_view_viewable")}; +mrH=function(C){Jk(C,"impression")&&!Jk(C,"seek")&&C.I$("audio_audible")}; +fd6=function(C){Jk(C,"impression")&&!Jk(C,"seek")&&C.I$("audio_measurable")}; +ANl=function(C,b,h,N,p,P,c,e,L,Z,Y,a){this.callback=C;this.slot=b;this.layout=h;this.qo=N;this.gO=p;this.EX=P;this.gg=c;this.ZJ=e;this.Y6=L;this.Zf=Z;this.M2=Y;this.fO=a;this.a8=!0;this.v7=this.OI=null;this.adCpn=void 0;this.j=!1}; +yNV=function(C,b,h){var N;x4(C.M2.get(),"ads_qua","cpn."+pk(C.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((N=Y4(C.fO.get(),2))==null?void 0:N.clientPlaybackNonce)+";qt."+b+";clr."+h)}; +rNc=function(C,b){var h,N;x4(C.M2.get(),"ads_imp","cpn."+pk(C.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((h=Y4(C.fO.get(),2))==null?void 0:h.clientPlaybackNonce)+";clr."+b+";skp."+!!g.d((N=pk(C.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:N.skipOrPreviewRenderer,hv))}; +NZ=function(C){return C.Zf.get().Z.Y().experiments.Fo("increase_completion_ping_firing_window")&&Y4(C.fO.get(),1).qz}; +gq=function(C){return{enterMs:pk(C.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:pk(C.clientMetadata,"metadata_type_layout_exit_ms")}}; +py=function(C,b,h,N,p,P,c,e,L,Z,Y,a,l,F){tI.call(this,C,b,h,N,p,c,e,L,Z,a);this.gg=P;this.Y6=Y;this.ZJ=l;this.Zf=F;this.v7=this.OI=null}; +igW=function(C,b){var h;x4(C.M2.get(),"ads_imp","acpn."+((h=Y4(C.fO.get(),2))==null?void 0:h.clientPlaybackNonce)+";clr."+b)}; +JNc=function(C,b,h){var N;x4(C.M2.get(),"ads_qua","cpn."+pk(C.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((N=Y4(C.fO.get(),2))==null?void 0:N.clientPlaybackNonce)+";qt."+b+";clr."+h)}; +Pz=function(C,b,h,N,p,P,c,e,L,Z,Y,a,l,F,G,V,q,f,y,u,K){this.vW=C;this.h8=b;this.Ye=h;this.fO=N;this.qo=p;this.EX=P;this.M2=c;this.gg=e;this.kt=L;this.ZJ=Z;this.Y6=Y;this.Ak=a;this.pj=l;this.EU=F;this.UU=G;this.Hb=V;this.Lv=q;this.Zf=f;this.j=y;this.context=u;this.V6=K}; +jb=function(C,b,h,N,p,P,c,e,L,Z,Y,a,l,F,G,V,q,f){this.vW=C;this.h8=b;this.Ye=h;this.M2=N;this.ZJ=p;this.Y6=P;this.Ak=c;this.fO=e;this.EX=L;this.pj=Z;this.EU=Y;this.UU=a;this.Hb=l;this.Lv=F;this.Zf=G;this.qo=V;this.context=q;this.V6=f}; +uBl=function(C,b,h,N){jv.call(this,"survey-interstitial",C,b,h,N)}; +cz=function(C,b,h,N,p){Gk.call(this,h,C,b,N);this.M2=p;C=pk(b.clientMetadata,"metadata_type_ad_placement_config");this.gO=new mU(b.KJ,p,C,b.layoutId)}; +kg=function(C){return Math.round(C.width)+"x"+Math.round(C.height)}; +Ly=function(C,b,h){h=h===void 0?eb:h;h.widthC.width*C.height*.2)return{t9:3,aA:501,errorMessage:"ad("+kg(h)+") to container("+kg(C)+") ratio exceeds limit."};if(h.height>C.height/3-b)return{t9:3,aA:501,errorMessage:"ad("+kg(h)+") covers container("+kg(C)+") center."}}; +Rk1=function(C,b){var h=pk(C.clientMetadata,"metadata_type_ad_placement_config");return new mU(C.KJ,b,h,C.layoutId)}; +ZV=function(C){return pk(C.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; +Yg=function(C,b,h,N){jv.call(this,"invideo-overlay",C,b,h,N);this.interactionLoggingClientData=N}; +az=function(C,b,h,N,p,P,c,e,L,Z,Y,a){Gk.call(this,P,C,b,p);this.M2=h;this.X=c;this.EX=e;this.Hb=L;this.Zf=Z;this.W=Y;this.G=a;this.gO=Rk1(b,h)}; +QwW=function(){var C=["metadata_type_invideo_overlay_ad_renderer"];f8().forEach(function(b){C.push(b)}); +return{qs:C,V_:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; +lj=function(C,b,h,N,p,P,c,e,L,Z,Y,a,l){Gk.call(this,P,C,b,p);this.M2=h;this.X=c;this.L=e;this.EX=L;this.Hb=Z;this.Zf=Y;this.W=a;this.G=l;this.gO=Rk1(b,h)}; +Url=function(){for(var C=["metadata_type_invideo_overlay_ad_renderer"],b=g.z(f8()),h=b.next();!h.done;h=b.next())C.push(h.value);return{qs:C,V_:["LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY"]}}; +oz=function(C){this.EX=C;this.j=!1}; +XsW=function(C,b,h){jv.call(this,"survey",C,{},b,h)}; +Fi=function(C,b,h,N,p,P,c){Gk.call(this,h,C,b,N);this.X=p;this.EX=P;this.Zf=c}; +Ka_=function(C,b,h,N,p,P,c,e,L,Z){this.nj=C;this.EX=b;this.M2=h;this.X=N;this.ZJ=p;this.K=P;this.N=c;this.Hb=e;this.Zf=L;this.j=Z}; +swW=function(C,b,h,N,p,P,c,e,L,Z){this.nj=C;this.EX=b;this.M2=h;this.X=N;this.ZJ=p;this.K=P;this.N=c;this.Hb=e;this.Zf=L;this.j=Z}; +G9=function(C,b,h,N,p,P,c,e,L,Z){hm.call(this,C,b,h,N,p,P,c,L);this.qe=e;this.fO=Z}; +Og_=function(){var C=EYx();C.qs.push("metadata_type_ad_info_ad_metadata");return C}; +v5W=function(C,b,h,N,p,P,c){this.nj=C;this.EX=b;this.M2=h;this.K=N;this.qe=p;this.j=P;this.fO=c}; +Dr1=function(C,b,h,N,p,P,c,e){this.nj=C;this.EX=b;this.M2=h;this.K=N;this.qe=p;this.j=P;this.Zf=c;this.fO=e}; +Sb=function(C,b){this.slotId=b;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=C(this.triggerType)}; +$g=function(C,b){this.adPodIndex=C;this.j=b.length;this.adBreakLengthSeconds=b.reduce(function(N,p){return N+p},0); +var h=0;for(C+=1;C0}; +gb=function(C){return!!(C.SXX&&C.slot&&C.layout)}; +pG=function(C){var b,h=(b=C.config)==null?void 0:b.adPlacementConfig;C=C.renderer;return!(!h||h.kind==null||!C)}; +N16=function(C){if(!Iz(C.adLayoutMetadata))return!1;C=C.renderingContent;return g.d(C,c9)||g.d(C,k2)||g.d(C,P9)||g.d(C,jZ)?!0:!1}; +PA=function(C){return C.playerVars!==void 0&&C.pings!==void 0&&C.externalVideoId!==void 0}; +SF=function(C){if(!Iz(C.adLayoutMetadata))return!1;C=C.renderingContent;var b=g.d(C,jF);return b?cA(b):(b=g.d(C,lE))?PA(b):(b=g.d(C,oj))?b.playerVars!==void 0:(b=g.d(C,c9))?b.durationMilliseconds!==void 0:g.d(C,FQ)||g.d(C,GL)?!0:!1}; +cA=function(C){C=(C.sequentialLayouts||[]).map(function(b){return g.d(b,$V)}); +return C.length>0&&C.every(SF)}; +k7o=function(C){if(!Iz(C.adLayoutMetadata))return!1;if(g.d(C.renderingContent,grl)||g.d(C.renderingContent,pNW))return!0;var b=g.d(C.renderingContent,zL);return g.d(C.renderingContent,HA)||g.d(b==null?void 0:b.sidePanel,Pyl)||g.d(b==null?void 0:b.sidePanel,jMK)||g.d(b==null?void 0:b.sidePanel,cU6)?!0:!1}; +oro=function(C){var b;(b=!C)||(b=C.adSlotMetadata,b=!((b==null?void 0:b.slotId)!==void 0&&(b==null?void 0:b.slotType)!==void 0));if(b||!(e8l(C)||C.slotEntryTrigger&&C.slotFulfillmentTriggers&&C.slotExpirationTriggers))return!1;var h;C=(h=C.fulfillmentContent)==null?void 0:h.fulfilledLayout;return(h=g.d(C,$V))?SF(h):(h=g.d(C,VM))?k7o(h):(h=g.d(C,LW_))?N16(h):(h=g.d(C,ZDU))?bDl(h):(h=g.d(C,YTV))?Iz(h.adLayoutMetadata)?g.d(h.renderingContent,xg)?!0:!1:!1:(C=g.d(C,afW))?Iz(C.adLayoutMetadata)?g.d(C.renderingContent, +lf_)?!0:!1:!1:!1}; +e8l=function(C){var b;C=g.d((b=C.fulfillmentContent)==null?void 0:b.fulfilledLayout,VM);var h;return C&&((h=C.adLayoutMetadata)==null?void 0:h.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&C.layoutExitNormalTriggers===void 0}; +FW1=function(C){var b;return(C==null?void 0:(b=C.adSlotMetadata)==null?void 0:b.slotType)==="SLOT_TYPE_IN_PLAYER"}; +STo=function(C,b){var h;if((h=C.questions)==null||!h.length||!C.playbackCommands||(b===void 0||!b)&&C.questions.length!==1)return!1;C=g.z(C.questions);for(b=C.next();!b.done;b=C.next()){b=b.value;var N=h=void 0,p=((h=g.d(b,Mx))==null?void 0:h.surveyAdQuestionCommon)||((N=g.d(b,qx))==null?void 0:N.surveyAdQuestionCommon);if(!G7V(p))return!1}return!0}; +$n6=function(C){C=((C==null?void 0:C.playerOverlay)||{}).instreamSurveyAdRenderer;var b;if(C)if(C.playbackCommands&&C.questions&&C.questions.length===1){var h,N=((b=g.d(C.questions[0],Mx))==null?void 0:b.surveyAdQuestionCommon)||((h=g.d(C.questions[0],qx))==null?void 0:h.surveyAdQuestionCommon);b=G7V(N)}else b=!1;else b=!1;return b}; +G7V=function(C){if(!C)return!1;C=g.d(C.instreamAdPlayerOverlay,mD);var b=g.d(C==null?void 0:C.skipOrPreviewRenderer,hv),h=g.d(C==null?void 0:C.adInfoRenderer,fG);return(g.d(C==null?void 0:C.skipOrPreviewRenderer,Aa)||b)&&h?!0:!1}; +z8_=function(C){return C.linearAds!=null&&Iz(C.adLayoutMetadata)}; +HDK=function(C){return C.linearAd!=null&&C.adVideoStart!=null}; +Vcx=function(C){if(isNaN(Number(C.timeoutSeconds))||!C.text||!C.ctaButton||!g.d(C.ctaButton,g.yM)||!C.brandImage)return!1;var b;return C.backgroundImage&&g.d(C.backgroundImage,rb)&&((b=g.d(C.backgroundImage,rb))==null?0:b.landscape)?!0:!1}; +iE=function(C,b,h,N,p,P,c){g.O.call(this);this.Zf=C;this.j=b;this.N=N;this.fO=p;this.X=P;this.K=c}; +mnK=function(C,b,h){var N,p=((N=h.adSlots)!=null?N:[]).map(function(e){return g.d(e,Ja)}); +if(h.Wg)if(pk(b.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))ak(C.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId); +else{if(C.Zf.get().Z.Y().D("h5_check_forecasting_renderer_for_throttled_midroll")){var P=h.PA.filter(function(e){var L;return((L=e.renderer)==null?void 0:L.clientForecastingAdRenderer)!=null}); +P.length!==0?Mcl(C.K,P,p,b.slotId,h.ssdaiAdsConfig):ak(C.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId)}else ak(C.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},b.slotId); +qTS(C.X,b)}else{var c;N={J$:Math.round(((P=pk(b.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:P.J$)||0),HY:(c=pk(b.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:c.HY};Mcl(C.K,h.PA,p,b.slotId,h.ssdaiAdsConfig,N)}}; +AU_=function(C,b,h,N,p,P,c){var e=Y4(C.fO.get(),1);ak(C.j.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return ffV(C.N.get(),h,N,p,e.clientPlaybackNonce,e.l5,e.daiEnabled,e,P,c)},b)}; +rUc=function(C,b,h,N,p,P,c){b=yU6(b,P,Number(N.prefetchMilliseconds)||0,c);C=b instanceof I?b:uE(C,N,p,b,h);return C instanceof I?C:[C]}; +iDS=function(C,b,h,N,p){var P=lG(C.K.get(),"SLOT_TYPE_AD_BREAK_REQUEST");N=[new UH({getAdBreakUrl:N.getAdBreakUrl,J$:0,HY:0}),new IE(!0)];C=b.pauseDurationMs?b.lactThresholdMs?{slotId:P,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new Ew(C.j,P),slotFulfillmentTriggers:[new Wal(C.j)],slotExpirationTriggers:[new Xi(C.j,p),new DV(C.j,P)],u$:"core",clientMetadata:new g0(N),adSlotLoggingData:h}:new I("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new I("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); +return C instanceof I?C:[C]}; +JUU=function(C){var b,h;return((b=C.renderer)==null?void 0:(h=b.adBreakServiceRenderer)==null?void 0:h.getAdBreakUrl)!==void 0}; +Rj=function(C,b,h){if(C.beforeContentVideoIdStartedTrigger)C=C.beforeContentVideoIdStartedTrigger?new z9(hc,b,C.id):new I("Not able to create BeforeContentVideoIdStartedTrigger");else{if(C.layoutIdExitedTrigger){var N;b=(N=C.layoutIdExitedTrigger)!=null&&N.triggeringLayoutId?new fy(hc,C.layoutIdExitedTrigger.triggeringLayoutId,C.id):new I("Not able to create LayoutIdExitedTrigger")}else{if(C.layoutExitedForReasonTrigger){var p,P;((p=C.layoutExitedForReasonTrigger)==null?0:p.triggeringLayoutId)&&((P= +C.layoutExitedForReasonTrigger)==null?0:P.layoutExitReason)?(b=E5V(C.layoutExitedForReasonTrigger.layoutExitReason),C=b instanceof I?b:new mT(hc,C.layoutExitedForReasonTrigger.triggeringLayoutId,[b],C.id)):C=new I("Not able to create LayoutIdExitedForReasonTrigger")}else{if(C.onLayoutSelfExitRequestedTrigger){var c;b=(c=C.onLayoutSelfExitRequestedTrigger)!=null&&c.triggeringLayoutId?new Uw(hc,C.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,C.id):new I("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(C.onNewPlaybackAfterContentVideoIdTrigger)C= +C.onNewPlaybackAfterContentVideoIdTrigger?new Xi(hc,b,C.id):new I("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(C.skipRequestedTrigger){var e;b=(e=C.skipRequestedTrigger)!=null&&e.triggeringLayoutId?new Ow(hc,C.skipRequestedTrigger.triggeringLayoutId,C.id):new I("Not able to create SkipRequestedTrigger")}else if(C.slotIdEnteredTrigger){var L;b=(L=C.slotIdEnteredTrigger)!=null&&L.triggeringSlotId?new vz(hc,C.slotIdEnteredTrigger.triggeringSlotId,C.id):new I("Not able to create SlotIdEnteredTrigger")}else if(C.slotIdExitedTrigger){var Z; +b=(Z=C.slotIdExitedTrigger)!=null&&Z.triggeringSlotId?new DV(hc,C.slotIdExitedTrigger.triggeringSlotId,C.id):new I("Not able to create SkipRequestedTrigger")}else if(C.surveySubmittedTrigger){var Y;b=(Y=C.surveySubmittedTrigger)!=null&&Y.triggeringLayoutId?new tv(hc,C.surveySubmittedTrigger.triggeringLayoutId,C.id):new I("Not able to create SurveySubmittedTrigger")}else{if(C.mediaResumedTrigger)C=C.mediaResumedTrigger&&C.id?new n5H(C.id):new I("Not able to create MediaResumedTrigger");else{if(C.closeRequestedTrigger){var a; +b=(a=C.closeRequestedTrigger)!=null&&a.triggeringLayoutId?new Hz(hc,C.closeRequestedTrigger.triggeringLayoutId,C.id):new I("Not able to create CloseRequestedTrigger")}else if(C.slotIdScheduledTrigger){var l;b=(l=C.slotIdScheduledTrigger)!=null&&l.triggeringSlotId?new Ew(hc,C.slotIdScheduledTrigger.triggeringSlotId,C.id):new I("Not able to create SlotIdScheduledTrigger")}else{if(C.mediaTimeRangeTrigger){var F;N=Number((F=C.mediaTimeRangeTrigger)==null?void 0:F.offsetStartMilliseconds);var G;c=Number((G= +C.mediaTimeRangeTrigger)==null?void 0:G.offsetEndMilliseconds);isFinite(N)&&isFinite(c)?(G=c,G===-1&&(G=h),h=N>G?new I("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:N,offsetEndMs:G},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",G===h&&N-500<=G):new qM(N,G),C=h instanceof I?h:new Jv(hc,b,h,!1,C.id)):C=new I("Not able to create MediaTimeRangeTrigger")}else if(C.contentVideoIdEndedTrigger)C=C.contentVideoIdEndedTrigger?new Vf(hc,b,!1,C.id):new I("Not able to create ContentVideoIdEndedTrigger"); +else{if(C.layoutIdEnteredTrigger){var V;b=(V=C.layoutIdEnteredTrigger)!=null&&V.triggeringLayoutId?new qZ(hc,C.layoutIdEnteredTrigger.triggeringLayoutId,C.id):new I("Not able to create LayoutIdEnteredTrigger")}else if(C.timeRelativeToLayoutEnterTrigger){var q;b=(q=C.timeRelativeToLayoutEnterTrigger)!=null&&q.triggeringLayoutId?new T9(hc,Number(C.timeRelativeToLayoutEnterTrigger.durationMs),C.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,C.id):new I("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(C.onDifferentLayoutIdEnteredTrigger){var f; +b=(f=C.onDifferentLayoutIdEnteredTrigger)!=null&&f.triggeringLayoutId&&C.onDifferentLayoutIdEnteredTrigger.slotType&&C.onDifferentLayoutIdEnteredTrigger.layoutType?new Rz(hc,C.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,C.onDifferentLayoutIdEnteredTrigger.slotType,C.onDifferentLayoutIdEnteredTrigger.layoutType,C.id):new I("Not able to create CloseRequestedTrigger")}else{if(C.liveStreamBreakStartedTrigger)C=C.liveStreamBreakStartedTrigger&&C.id?new ij(hc,C.id):new I("Not able to create LiveStreamBreakStartedTrigger"); +else if(C.liveStreamBreakEndedTrigger)C=C.liveStreamBreakEndedTrigger&&C.id?new Av(hc,C.id):new I("Not able to create LiveStreamBreakEndedTrigger");else{if(C.liveStreamBreakScheduledDurationMatchedTrigger){var y;b=(y=C.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&y.breakDurationMs?new yf(Number(C.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,C.id):new I("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(C.liveStreamBreakScheduledDurationNotMatchedTrigger){var u; +b=(u=C.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&u.breakDurationMs?new rq(Number(C.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,C.id):new I("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(C.newSlotScheduledWithBreakDurationTrigger){var K;b=(K=C.newSlotScheduledWithBreakDurationTrigger)!=null&&K.breakDurationMs?new uj(Number(C.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,C.id):new I("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else b= +C.prefetchCacheExpiredTrigger?new Ky(hc,C.id):new I("Not able to convert an AdsControlflowTrigger.");C=b}b=C}C=b}b=C}C=b}b=C}C=b}b=C}C=b}b=C}C=b}return C}; +QM=function(C,b){b.j>=2&&(C.slot_pos=b.adPodIndex);C.autoplay="1"}; +R8l=function(C,b,h,N,p,P,c,e){return b===null?new I("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:b,ActionCompanionAdRenderer:N}):[u9V(C,b,c,P,function(L){var Z=L.slotId;L=e(L);var Y=N.adLayoutLoggingData,a=new g0([new KY(N),new IN(p)]);Z=TZ(h.K.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Z);var l={layoutId:Z,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",u$:"core"};return{layoutId:Z,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",KJ:new Map, +layoutExitNormalTriggers:[new Xi(h.j,c)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],lf:[],u$:"core",clientMetadata:a,hZ:L(l),adLayoutLoggingData:Y}})]}; +QMV=function(C,b,h,N,p,P,c,e){return b===null?new I("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:b,TopBannerImageTextIconButtonedLayoutViewModel:N}):[u9V(C,b,c,P,function(L){var Z=L.slotId;L=e(L);var Y=N.adLayoutLoggingData,a=new g0([new sD(N),new IN(p)]);Z=TZ(h.K.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",Z);var l={layoutId:Z,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",u$:"core"};return{layoutId:Z,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", +KJ:new Map,layoutExitNormalTriggers:[new Xi(h.j,c)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],lf:[],u$:"core",clientMetadata:a,hZ:L(l),adLayoutLoggingData:Y}})]}; +sM_=function(C,b,h,N,p,P){if(!P)for(b=g.z(b),P=b.next();!P.done;P=b.next())P=P.value,U2(C,P.renderer,P.config.adPlacementConfig.kind);C=Array.from(C.values()).filter(function(Y){return UnK(Y)}); +b=[];P=g.z(C);for(var c=P.next(),e={};!c.done;e={NJ:void 0},c=P.next()){e.NJ=c.value;c=g.z(e.NJ.cX);for(var L=c.next(),Z={};!L.done;Z={WM:void 0},L=c.next())Z.WM=L.value,L=function(Y,a){return function(l){return Y.WM.Jo(l,a.NJ.instreamVideoAdRenderer.elementId,Y.WM.r6)}}(Z,e),Z.WM.isContentVideoCompanion?b.push(XNl(h,N,p,e.NJ.instreamVideoAdRenderer.elementId,Z.WM.associatedCompositePlayerBytesLayoutId,Z.WM.adSlotLoggingData,L)):C.length>1?b.push(KWV(h,N,p,e.NJ.instreamVideoAdRenderer.elementId,Z.WM.adSlotLoggingData, +function(Y,a){return function(l){return Y.WM.Jo(l,a.NJ.instreamVideoAdRenderer.elementId,Y.WM.r6,Y.WM.associatedCompositePlayerBytesLayoutId)}}(Z,e))):b.push(KWV(h,N,p,e.NJ.instreamVideoAdRenderer.elementId,Z.WM.adSlotLoggingData,L))}return b}; +U2=function(C,b,h){if(b=ODc(b)){b=g.z(b);for(var N=b.next();!N.done;N=b.next())if((N=N.value)&&N.externalVideoId){var p=XQ(C,N.externalVideoId);p.instreamVideoAdRenderer||(p.instreamVideoAdRenderer=N,p.YW=h)}else ZK("InstreamVideoAdRenderer without externalVideoId")}}; +ODc=function(C){var b=[],h=C.sandwichedLinearAdRenderer&&C.sandwichedLinearAdRenderer.linearAd&&g.d(C.sandwichedLinearAdRenderer.linearAd,lE);if(h)return b.push(h),b;if(C.instreamVideoAdRenderer)return b.push(C.instreamVideoAdRenderer),b;if(C.linearAdSequenceRenderer&&C.linearAdSequenceRenderer.linearAds){C=g.z(C.linearAdSequenceRenderer.linearAds);for(h=C.next();!h.done;h=C.next())h=h.value,g.d(h,lE)&&b.push(g.d(h,lE));return b}return null}; +UnK=function(C){if(C.instreamVideoAdRenderer===void 0)return ZK("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var b=g.z(C.cX),h=b.next();!h.done;h=b.next()){h=h.value;if(h.Jo===void 0)return!1;if(h.r6===void 0)return ZK("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(C.YW===void 0||h.n7===void 0||C.YW!==h.n7&&h.n7!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(C.instreamVideoAdRenderer.elementId===void 0)return ZK("InstreamVideoAdRenderer has no elementId", +void 0,void 0,{kind:C.YW,"matching APSR kind":h.n7}),!1}return!0}; +XQ=function(C,b){C.has(b)||C.set(b,{instreamVideoAdRenderer:void 0,YW:void 0,adVideoId:b,cX:[]});return C.get(b)}; +KG=function(C,b,h,N,p,P,c,e,L){p?XQ(C,p).cX.push({dWD:b,n7:h,isContentVideoCompanion:N,r6:c,associatedCompositePlayerBytesLayoutId:P,adSlotLoggingData:e,Jo:L}):ZK("Companion AdPlacementSupportedRenderer without adVideoId")}; +s2=function(C){var b=0;C=g.z(C.questions);for(var h=C.next();!h.done;h=C.next())if(h=h.value,h=g.d(h,Mx)||g.d(h,qx)){var N=void 0;b+=((N=h.surveyAdQuestionCommon)==null?void 0:N.durationMilliseconds)||0}return b}; +O2=function(C){var b,h,N,p,P=((h=g.d((b=C.questions)==null?void 0:b[0],Mx))==null?void 0:h.surveyAdQuestionCommon)||((p=g.d((N=C.questions)==null?void 0:N[0],qx))==null?void 0:p.surveyAdQuestionCommon),c;b=[].concat(g.M(((c=C.playbackCommands)==null?void 0:c.instreamAdCompleteCommands)||[]),g.M((P==null?void 0:P.timeoutCommands)||[]));var e,L,Z,Y,a,l,F,G,V,q,f,y,u,K,v,T,t,go,jV,CW;return{impressionCommands:(e=C.playbackCommands)==null?void 0:e.impressionCommands,errorCommands:(L=C.playbackCommands)== +null?void 0:L.errorCommands,muteCommands:(Z=C.playbackCommands)==null?void 0:Z.muteCommands,unmuteCommands:(Y=C.playbackCommands)==null?void 0:Y.unmuteCommands,pauseCommands:(a=C.playbackCommands)==null?void 0:a.pauseCommands,rewindCommands:(l=C.playbackCommands)==null?void 0:l.rewindCommands,resumeCommands:(F=C.playbackCommands)==null?void 0:F.resumeCommands,skipCommands:(G=C.playbackCommands)==null?void 0:G.skipCommands,progressCommands:(V=C.playbackCommands)==null?void 0:V.progressCommands,MZf:(q= +C.playbackCommands)==null?void 0:q.clickthroughCommands,fullscreenCommands:(f=C.playbackCommands)==null?void 0:f.fullscreenCommands,activeViewViewableCommands:(y=C.playbackCommands)==null?void 0:y.activeViewViewableCommands,activeViewMeasurableCommands:(u=C.playbackCommands)==null?void 0:u.activeViewMeasurableCommands,activeViewFullyViewableAudibleHalfDurationCommands:(K=C.playbackCommands)==null?void 0:K.activeViewFullyViewableAudibleHalfDurationCommands,activeViewAudioAudibleCommands:(v=C.playbackCommands)== +null?void 0:(T=v.activeViewTracking)==null?void 0:T.activeViewAudioAudibleCommands,activeViewAudioMeasurableCommands:(t=C.playbackCommands)==null?void 0:(go=t.activeViewTracking)==null?void 0:go.activeViewAudioMeasurableCommands,endFullscreenCommands:(jV=C.playbackCommands)==null?void 0:jV.endFullscreenCommands,abandonCommands:(CW=C.playbackCommands)==null?void 0:CW.abandonCommands,completeCommands:b}}; +DnU=function(C,b,h,N,p,P,c){return function(e,L){return vrS(C,L.slotId,e,P,function(Z,Y){var a=L.layoutId;Z=c(Z);return vA(b,a,Y,p,Z,"LAYOUT_TYPE_SURVEY",[new YR(h),N],h.adLayoutLoggingData)})}}; +Erl=function(C,b,h,N,p,P,c){if(!dnS(C))return new I("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:C});var e=C.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[WWo(P,b,h,N,function(L){var Z=L.slotId;L=c(L);Z=TZ(p.K.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",Z);var Y={layoutId:Z,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",u$:"core"},a=new fy(p.j,N);return{layoutId:Z,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",KJ:new Map,layoutExitNormalTriggers:[a], +layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],lf:[],u$:"core",clientMetadata:new g0([new aE(e)]),hZ:L(Y)}})]}; +dnS=function(C){C=g.d(C==null?void 0:C.additionalPlayerOverlay,nrl);if(!C)return!1;var b=C.slidingMessages;return C.title&&b&&b.length!==0?!0:!1}; +T11=function(C,b,h,N,p){var P;if((P=C.playerOverlay)==null||!P.instreamSurveyAdRenderer)return function(){return[]}; +if(!$n6(C))return function(){return new I("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:C})}; +var c=C.playerOverlay.instreamSurveyAdRenderer,e=s2(c);return e<=0?function(){return new I("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:c})}:function(L,Z){var Y=tcl(L,h,N,function(a){var l=a.slotId; +a=Z(a);var F=O2(c);l=TZ(p.K.get(),"LAYOUT_TYPE_SURVEY",l);var G={layoutId:l,layoutType:"LAYOUT_TYPE_SURVEY",u$:"core"},V=new fy(p.j,N),q=new Ow(p.j,l),f=new tv(p.j,l),y=new Id_(p.j);return{layoutId:l,layoutType:"LAYOUT_TYPE_SURVEY",KJ:new Map,layoutExitNormalTriggers:[V,y],layoutExitSkipTriggers:[q],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[f],lf:[],u$:"core",clientMetadata:new g0([new Zy(c),new IN(b),new sH(e/1E3),new dA(F)]),hZ:a(G),adLayoutLoggingData:c.adLayoutLoggingData}}); +L=Erl(C,h,Y.slotId,N,p,L,Z);return L instanceof I?L:[Y].concat(g.M(L))}}; +hJW=function(C,b,h,N,p,P,c){c=c===void 0?!1:c;var e=[];try{var L=[];if(h.renderer.linearAdSequenceRenderer)var Z=function(V){V=B1_(V.slotId,h,b,p(V),N,P,c);L=V.D9X;return V.Z4}; +else if(h.renderer.instreamVideoAdRenderer)Z=function(V){var q=V.slotId;V=p(V);var f=c,y=h.config.adPlacementConfig,u=IfV(y),K=u.Pq,v=u.At;u=h.renderer.instreamVideoAdRenderer;var T;if(u==null?0:(T=u.playerOverlay)==null?0:T.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var t=D8(u,f);T=Math.min(K+t.videoLengthSeconds*1E3,v);f=new $g(0,[t.videoLengthSeconds]);v=t.videoLengthSeconds;var go=t.playerVars,jV=t.instreamAdPlayerOverlayRenderer,CW=t.playerOverlayLayoutRenderer, +W=t.adVideoId,w=xnH(h),H=t.KJ;t=t.w_;var E=u==null?void 0:u.adLayoutLoggingData;u=u==null?void 0:u.sodarExtensionData;q=TZ(b.K.get(),"LAYOUT_TYPE_MEDIA",q);var v1={layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA",u$:"core"};return{layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA",KJ:H,layoutExitNormalTriggers:[new Av(b.j)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],lf:[],u$:"core",clientMetadata:new g0([new Nl(N),new Ml(v),new ql(go),new AD(K),new yW(T),jV&&new gA(jV), +CW&&new p4(CW),new IN(y),new hD(W),new xJ(f),new RE(w),u&&new f4(u),new $R({current:null}),new iN({}),new n4(t)].filter(wN_)),hZ:V(v1),adLayoutLoggingData:E}}; +else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var Y=Col(C,N,h.adSlotLoggingData,Z);e.push(Y);for(var a=g.z(L),l=a.next();!l.done;l=a.next()){var F=l.value,G=F(C,p);if(G instanceof I)return G;e.push.apply(e,g.M(G))}}catch(V){return new I(V,{errorMessage:V.message,AdPlacementRenderer:h,numberOfSurveyRenderers:bYo(h)})}return e}; +bYo=function(C){C=(C.renderer.linearAdSequenceRenderer||{}).linearAds;return C!=null&&C.length?C.filter(function(b){var h,N;return((h=g.d(b,lE))==null?void 0:(N=h.playerOverlay)==null?void 0:N.instreamSurveyAdRenderer)!=null}).length:0}; +B1_=function(C,b,h,N,p,P,c){var e=b.config.adPlacementConfig,L=IfV(e),Z=L.Pq,Y=L.At;L=(b.renderer.linearAdSequenceRenderer||{}).linearAds;if(L==null||!L.length)throw new TypeError("Expected linear ads");var a=[],l={AQ:Z,In:0,GOi:a};L=L.map(function(G){return NiS(C,G,l,h,N,e,p,Y,c)}).map(function(G,V){V=new $g(V,a); +return G(V)}); +var F=L.map(function(G){return G.Rr}); +return{Z4:gJx(h,C,Z,F,e,xnH(b),N,Y,P),D9X:L.map(function(G){return G.ajD})}}; +NiS=function(C,b,h,N,p,P,c,e,L){var Z=D8(g.d(b,lE),L),Y=h.AQ,a=h.In,l=Math.min(Y+Z.videoLengthSeconds*1E3,e);h.AQ=l;h.In++;h.GOi.push(Z.videoLengthSeconds);var F,G,V=(F=g.d(b,lE))==null?void 0:(G=F.playerOverlay)==null?void 0:G.instreamSurveyAdRenderer;if(Z.adVideoId==="nPpU29QrbiU"&&V==null)throw new TypeError("Survey slate media has no survey overlay");return function(q){QM(Z.playerVars,q);var f,y,u=Z.videoLengthSeconds,K=Z.playerVars,v=Z.KJ,T=Z.w_,t=Z.instreamAdPlayerOverlayRenderer,go=Z.playerOverlayLayoutRenderer, +jV=Z.adVideoId,CW=(f=g.d(b,lE))==null?void 0:f.adLayoutLoggingData;f=(y=g.d(b,lE))==null?void 0:y.sodarExtensionData;y=TZ(N.K.get(),"LAYOUT_TYPE_MEDIA",C);var W={layoutId:y,layoutType:"LAYOUT_TYPE_MEDIA",u$:"adapter"};q={layoutId:y,layoutType:"LAYOUT_TYPE_MEDIA",KJ:v,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],lf:[],u$:"adapter",clientMetadata:new g0([new Nl(c),new Ml(u),new ql(K),new AD(Y),new yW(l),new rA(a),new $R({current:null}), +t&&new gA(t),go&&new p4(go),new IN(P),new hD(jV),new xJ(q),f&&new f4(f),V&&new EH(V),new iN({}),new n4(T)].filter(wN_)),hZ:p(W),adLayoutLoggingData:CW};u=T11(g.d(b,lE),P,c,q.layoutId,N);return{Rr:q,ajD:u}}}; +D8=function(C,b){if(!C)throw new TypeError("Expected instream video ad renderer");if(!C.playerVars)throw new TypeError("Expected player vars in url encoded string");var h=gJ(C.playerVars),N=Number(h.length_seconds);if(isNaN(N))throw new TypeError("Expected valid length seconds in player vars");var p=Number(C.trimmedMaxNonSkippableAdDurationMs);N=isNaN(p)?N:Math.min(N,p/1E3);p=C.playerOverlay||{};p=p.instreamAdPlayerOverlayRenderer===void 0?null:p.instreamAdPlayerOverlayRenderer;var P=C.playerOverlay|| +{};P=P.playerOverlayLayoutRenderer===void 0?null:P.playerOverlayLayoutRenderer;var c=h.video_id;c||(c=(c=C.externalVideoId)?c:void 0);if(!c)throw new TypeError("Expected valid video id in IVAR");if(b&&N===0){var e;b=(e=pWU[c])!=null?e:N}else b=N;return{playerVars:h,videoLengthSeconds:b,instreamAdPlayerOverlayRenderer:p,playerOverlayLayoutRenderer:P,adVideoId:c,KJ:C.pings?qy(C.pings):new Map,w_:My(C.pings)}}; +xnH=function(C){C=Number(C.driftRecoveryMs);return isNaN(C)||C<=0?null:C}; +IfV=function(C){var b=C.adTimeOffset||{};C=b.offsetEndMilliseconds;b=Number(b.offsetStartMilliseconds);if(isNaN(b))throw new TypeError("Expected valid start offset");C=Number(C);if(isNaN(C))throw new TypeError("Expected valid end offset");return{Pq:b,At:C}}; +PoK=function(C){var b,h=(b=pk(C.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:b.current;if(!h)return null;b=pk(C.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var N=C.layoutId,p=pk(C.clientMetadata,"metadata_type_content_cpn"),P=pk(C.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),c=pk(C.clientMetadata,"metadata_type_player_underlay_renderer"),e=pk(C.clientMetadata,"metadata_type_ad_placement_config"),L=pk(C.clientMetadata,"metadata_type_video_length_seconds"); +var Z=Ck(C.clientMetadata,"metadata_type_layout_enter_ms")&&Ck(C.clientMetadata,"metadata_type_layout_exit_ms")?(pk(C.clientMetadata,"metadata_type_layout_exit_ms")-pk(C.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{K$:N,contentCpn:p,OT:h,hS:b,instreamAdPlayerOverlayRenderer:P,instreamAdPlayerUnderlayRenderer:c,adPlacementConfig:e,videoLengthSeconds:L,Tv:Z,inPlayerLayoutId:pk(C.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:pk(C.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; +kNH=function(C,b,h,N,p,P,c,e,L,Z,Y,a,l,F,G){N=lG(N,"SLOT_TYPE_PLAYER_BYTES");C=jNH(p,C,c,h,N,L,Z);if(C instanceof I)return C;var V;Z=(V=pk(C.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:V.layoutId;if(!Z)return new I("Invalid adNotify layout");b=cBW(Z,p,P,h,e,b,L,Y,a,l,F,G,c);return b instanceof I?b:[C].concat(g.M(b))}; +cBW=function(C,b,h,N,p,P,c,e,L,Z,Y,a,l){h=eJK(b,h,N,P,c,e,L,Z,Y,a,l);if(h instanceof I)return h;C=Lw1(b,C,c,p,h);return C instanceof I?C:[].concat(g.M(C.yP),[C.ON])}; +YD1=function(C,b,h,N,p,P,c,e,L,Z,Y,a,l,F){b=eJK(C,b,h,p,P,e,L,Z,Y,a,l,F);if(b instanceof I)return b;C=ZYl(C,h,P,c,N,e.yV,b);return C instanceof I?C:C.yP.concat(C.ON)}; +eJK=function(C,b,h,N,p,P,c,e,L,Z,Y,a){var l=db(N,h,Z);return l instanceof No?new I(l):Z.Z.Y().experiments.Fo("html5_refactor_in_player_slot_generation")?function(F){var G=new $g(0,[l.Yd]);F=a0l(b,l.layoutId,l.y7,h,WA(l.playerVars,l.m_,P,L,G),l.Yd,p,G,c(F),e.get(l.y7.externalVideoId),a);G=[];if(l.y7.playerOverlay.instreamAdPlayerOverlayRenderer){var V=PoK(F);if(!V)return ZK("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,F),{layout:F,yP:[]}; +G=[l0K(C,V.contentCpn,V.K$,function(f){return E2(b,f.slotId,"core",V,Lk(Y,f))},V.inPlayerSlotId)].concat(g.M(G)); +if(V.instreamAdPlayerUnderlayRenderer&&nG(Z)){var q=V.instreamAdPlayerUnderlayRenderer;G=[oJV(C,V.contentCpn,V.K$,function(f){return FwV(b,f.slotId,q,V.adPlacementConfig,V.K$,Lk(Y,f))})].concat(g.M(G))}}return{layout:F, +yP:G}}:function(F){var G=new $g(0,[l.Yd]); +return{layout:a0l(b,l.layoutId,l.y7,h,WA(l.playerVars,l.m_,P,L,G),l.Yd,p,G,c(F),e.get(l.y7.externalVideoId),a),yP:[]}}}; +db=function(C,b,h){if(!C.playerVars)return new No("No playerVars available in InstreamVideoAdRenderer.");var N,p;if(C.elementId==null||C.playerVars==null||C.playerOverlay==null||((N=C.playerOverlay)==null?void 0:N.instreamAdPlayerOverlayRenderer)==null&&((p=C.playerOverlay)==null?void 0:p.playerOverlayLayoutRenderer)==null||C.pings==null||C.externalVideoId==null)return new No("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:C});N=gJ(C.playerVars);p=Number(N.length_seconds); +isNaN(p)&&(p=0,ZK("Expected valid length seconds in player vars but got NaN"));if(h.aD(b.kind==="AD_PLACEMENT_KIND_START")){if(C.layoutId===void 0)return new No("Expected server generated layout ID in instreamVideoAdRenderer");b=C.layoutId}else b=C.elementId;return{layoutId:b,y7:C,playerVars:N,m_:C.playerVars,Yd:p}}; +WA=function(C,b,h,N,p){C.iv_load_policy=N;b=gJ(b);if(b.cta_conversion_urls)try{C.cta_conversion_urls=JSON.parse(b.cta_conversion_urls)}catch(P){ZK(P)}h.sB&&(C.ctrl=h.sB);h.OB&&(C.ytr=h.OB);h.BC&&(C.ytrcc=h.BC);h.isMdxPlayback&&(C.mdx="1");C.vvt&&(C.vss_credentials_token=C.vvt,h.KS&&(C.vss_credentials_token_type=h.KS),h.mdxEnvironment&&(C.mdx_environment=h.mdxEnvironment));QM(C,p);return C}; +GNK=function(C){var b=new Map;C=g.z(C);for(var h=C.next();!h.done;h=C.next())(h=h.value.renderer.remoteSlotsRenderer)&&h.hostElementId&&b.set(h.hostElementId,h);return b}; +ta=function(C){return C.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; +SDS=function(C){return C!=null}; +mHx=function(C,b,h,N,p,P,c,e,L,Z,Y,a,l,F){for(var G=[],V=g.z(C),q=V.next();!q.done;q=V.next())if(q=q.value,!e8l(q)&&!FW1(q)){var f=ta(q)&&!!q.slotEntryTrigger.beforeContentVideoIdStartedTrigger,y=L.aD(f),u=$HW(q,Z,N,h.l5,y);if(u instanceof I)return u;var K=void 0,v={slotId:q.adSlotMetadata.slotId,slotType:q.adSlotMetadata.slotType,slotPhysicalPosition:(K=q.adSlotMetadata.slotPhysicalPosition)!=null?K:1,u$:"core",slotEntryTrigger:u.slotEntryTrigger,slotFulfillmentTriggers:u.slotFulfillmentTriggers, +slotExpirationTriggers:u.slotExpirationTriggers},T=g.d(q.fulfillmentContent.fulfilledLayout,$V);if(T){if(!SF(T))return new I("Invalid PlayerBytesAdLayoutRenderer");K=a&&!(ta(q)&&q.slotEntryTrigger.beforeContentVideoIdStartedTrigger);u=u.slotFulfillmentTriggers.some(function(t){return t instanceof yf}); +y=K?zJ6(v,q.adSlotMetadata.triggerEvent,T,h,N,P,Z,C,y,l,u,F):HYc(v,q.adSlotMetadata.triggerEvent,T,b,h,N,p,P,c,e,L,Z,C,Y,y,q.adSlotMetadata.triggeringSourceLayoutId);if(y instanceof I)return y;u=[];ta(q)&&u.push(new xR({OY:ta(q)&&!!q.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));K&&u.push(new iN({}));h.yV&&u.push(new Wn({}));u.push(new Bn(f));q=Object.assign({},v,{clientMetadata:new g0(u),fulfilledLayout:y.layout,adSlotLoggingData:q.adSlotMetadata.adSlotLoggingData});G.push.apply(G,g.M(y.yP)); +G.push(q)}else if(f=g.d(q.fulfillmentContent.fulfilledLayout,VM)){if(!k7o(f))return new I("Invalid PlayerUnderlayAdLayoutRenderer");f=V__(f,N,h.l5,P,v,q.adSlotMetadata.triggerEvent,q.adSlotMetadata.triggeringSourceLayoutId);if(f instanceof I)return f;q=Object.assign({},v,{clientMetadata:new g0([]),fulfilledLayout:f,adSlotLoggingData:q.adSlotMetadata.adSlotLoggingData});G.push(q)}else if(f=g.d(q.fulfillmentContent.fulfilledLayout,ZDU)){if(!bDl(f))return new I("Invalid AboveFeedAdLayoutRenderer");f= +M_l(f,N,h.l5,P,v,q.adSlotMetadata.triggerEvent,q.adSlotMetadata.triggeringSourceLayoutId);if(f instanceof I)return f;q=Object.assign({},v,{clientMetadata:new g0([]),fulfilledLayout:f,adSlotLoggingData:q.adSlotMetadata.adSlotLoggingData});G.push(q)}else if(f=g.d(q.fulfillmentContent.fulfilledLayout,YTV)){if(!Iz(f.adLayoutMetadata)||!g.d(f.renderingContent,xg))return new I("Invalid BelowPlayerAdLayoutRenderer");f=M_l(f,N,h.l5,P,v,q.adSlotMetadata.triggerEvent,q.adSlotMetadata.triggeringSourceLayoutId); +if(f instanceof I)return f;q=Object.assign({},v,{clientMetadata:new g0([]),fulfilledLayout:f,adSlotLoggingData:q.adSlotMetadata.adSlotLoggingData});G.push(q)}else if(f=g.d(q.fulfillmentContent.fulfilledLayout,afW)){if(!Iz(f.adLayoutMetadata)||!g.d(f.renderingContent,lf_))return new I("Invalid PlayerBytesSequenceItemAdLayoutRenderer");f=qDS(f,N,h.l5,P,v,q.adSlotMetadata.triggerEvent);if(f instanceof I)return f;q=Object.assign({},v,{clientMetadata:new g0([]),fulfilledLayout:f,adSlotLoggingData:q.adSlotMetadata.adSlotLoggingData}); +G.push(q)}else return new I("Unable to retrieve a client slot ["+v.slotType+"] from a given AdSlotRenderer")}return G}; +qDS=function(C,b,h,N,p,P){var c={layoutId:C.adLayoutMetadata.layoutId,layoutType:C.adLayoutMetadata.layoutType,u$:"core"};b=TL(C,b,h);return b instanceof I?b:Object.assign({},c,{renderingContent:C.renderingContent,KJ:new Map([["impression",f0U(C)]])},b,{hZ:Lk(N,p)(c),clientMetadata:new g0([new IN(BA(P))]),adLayoutLoggingData:C.adLayoutMetadata.adLayoutLoggingData})}; +M_l=function(C,b,h,N,p,P,c){var e={layoutId:C.adLayoutMetadata.layoutId,layoutType:C.adLayoutMetadata.layoutType,u$:"core"};b=TL(C,b,h);if(b instanceof I)return b;h=[];h.push(new IN(BA(P)));P==="SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED"&&c!==void 0&&h.push(new lN(c));return Object.assign({},e,{renderingContent:C.renderingContent,KJ:new Map([["impression",f0U(C)]])},b,{hZ:Lk(N,p)(e),clientMetadata:new g0(h),adLayoutLoggingData:C.adLayoutMetadata.adLayoutLoggingData})}; +V__=function(C,b,h,N,p,P,c){if(C.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(c=g.d(C.renderingContent,zL))if(c=g.d(c.sidePanel,jMK)){var e={layoutId:C.adLayoutMetadata.layoutId,layoutType:C.adLayoutMetadata.layoutType,u$:"core"};b=TL(C,b,h);C=b instanceof I?b:Object.assign({},e,{renderingContent:C.renderingContent,KJ:new Map([["impression",c.impressionPings||[]],["resume",c.resumePings||[]]])},b,{hZ:Lk(N,p)(e),clientMetadata:new g0([new IN(BA(P))]),adLayoutLoggingData:C.adLayoutMetadata.adLayoutLoggingData})}else C= +new I("DismissablePanelTextPortraitImageRenderer is missing");else C=new I("SqueezebackPlayerSidePanelRenderer is missing");else C.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.d(C.renderingContent,grl)?(c={layoutId:C.adLayoutMetadata.layoutId,layoutType:C.adLayoutMetadata.layoutType,u$:"core"},b=TL(C,b,h),C=b instanceof I?b:Object.assign({},c,{renderingContent:C.renderingContent,KJ:new Map},b,{hZ:Lk(N,p)(c),clientMetadata:new g0([new IN(BA(P))]),adLayoutLoggingData:C.adLayoutMetadata.adLayoutLoggingData})): +C=new I("CounterfactualRenderer is missing"):C.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?C=new I("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):C.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?C=new I("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):C.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.d(C.renderingContent,HA)?(P={layoutId:C.adLayoutMetadata.layoutId,layoutType:C.adLayoutMetadata.layoutType, +u$:"core"},b=TL(C,b,h),C=b instanceof I?b:c?Object.assign({},P,{renderingContent:C.renderingContent,KJ:new Map},b,{hZ:Lk(N,p)(P),clientMetadata:new g0([new lN(c)]),adLayoutLoggingData:C.adLayoutMetadata.adLayoutLoggingData}):new I("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):C=new I("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):C.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.d(C.renderingContent,pNW)? +(P={layoutId:C.adLayoutMetadata.layoutId,layoutType:C.adLayoutMetadata.layoutType,u$:"core"},b=TL(C,b,h),C=b instanceof I?b:Object.assign({},P,{renderingContent:C.renderingContent,KJ:new Map([])},b,{hZ:Lk(N,p)(P),adLayoutLoggingData:C.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new g0([])})):C=new I("AdsEngagementPanelSectionListViewModel is missing"):C=new I("LayoutType ["+C.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return C}; +zJ6=function(C,b,h,N,p,P,c,e,L,Z,Y,a){if((a==null?void 0:a.J$)===void 0||(a==null?void 0:a.HY)===void 0)return new I("Cached ad break range from cue point is missing");var l=TL(h,p,N.l5);if(l instanceof I)return l;l={layoutExitMuteTriggers:[],layoutExitNormalTriggers:l.layoutExitNormalTriggers,layoutExitSkipTriggers:[],lf:[],layoutExitUserInputSubmittedTriggers:[]};if(g.d(h.renderingContent,lE))return C=AB6(C,b,h,l,p,P,e,L,N.l5,c,a.J$,a.HY),C instanceof I?C:C.uF===void 0?new I("Expecting associatedInPlayerSlot for single DAI media layout"): +{layout:C.layout,yP:[C.uF]};var F=g.d(h.renderingContent,jF);if(F){if(!Iz(h.adLayoutMetadata))return new I("Invalid ad layout metadata");if(!cA(F))return new I("Invalid sequential layout");F=F.sequentialLayouts.map(function(G){return G.playerBytesAdLayoutRenderer}); +C=yBH(C,b,h,l,F,p,N,P,c,L,e,Z,a.J$,a.HY,Y);return C instanceof I?C:{layout:C.xi,yP:C.yP}}return new I("Not able to convert a sequential layout")}; +yBH=function(C,b,h,N,p,P,c,e,L,Z,Y,a,l,F,G){var V=rBo(p,l,F);if(V instanceof I)return V;var q=[],f=[];V=g.z(V);for(var y=V.next();!y.done;y=V.next()){var u=y.value;y=C;var K=p[u.In],v=u,T=b;u=P;var t=c,go=e,jV=L,CW=Z,W=Y,w=Ij(K);if(w instanceof I)y=w;else{var H={layoutId:K.adLayoutMetadata.layoutId,layoutType:K.adLayoutMetadata.layoutType,u$:"adapter"};v=iY1(T,K,v,u);v instanceof I?y=v:(y=Object.assign({},H,xV,{KJ:w,renderingContent:K.renderingContent,clientMetadata:new g0(v),hZ:Lk(go,y)(H),adLayoutLoggingData:K.adLayoutMetadata.adLayoutLoggingData}), +y=(K=wb(W,y,u,t.l5,go,jV,CW,void 0,!0))?K instanceof I?K:{layout:y,uF:K}:new I("Expecting associatedInPlayerSlot"))}if(y instanceof I)return y;q.push(y.layout);f.push(y.uF)}p={layoutId:h.adLayoutMetadata.layoutId,layoutType:h.adLayoutMetadata.layoutType,u$:"core"};b=[new RE(Number(h.driftRecoveryMs)),new AD(l),new yW(F),new IN(BA(b)),new Tl(a),new iN({})];G&&b.push(new wA({}));return{xi:Object.assign({},p,N,{Ig:q,KJ:new Map,clientMetadata:new g0(b),hZ:Lk(e,C)(p)}),yP:f}}; +AB6=function(C,b,h,N,p,P,c,e,L,Z,Y,a){if(!SF(h))return new I("Invalid PlayerBytesAdLayoutRenderer");var l=Ij(h);if(l instanceof I)return l;var F={layoutId:h.adLayoutMetadata.layoutId,layoutType:h.adLayoutMetadata.layoutType,u$:"core"},G=g.d(h.renderingContent,lE);if(!G)return new I("Invalid rendering content for DAI media layout");G=D8(G,!1);Y={Vn:G,In:0,AQ:Y,cS:Math.min(Y+G.videoLengthSeconds*1E3,a),S2:new $g(0,[G.videoLengthSeconds])};var V;a=(V=Number(h.driftRecoveryMs))!=null?V:void 0;b=iY1(b, +h,Y,p,a);if(b instanceof I)return b;C=Object.assign({},F,N,{KJ:l,renderingContent:h.renderingContent,clientMetadata:new g0(b),hZ:Lk(P,C)(F),adLayoutLoggingData:h.adLayoutMetadata.adLayoutLoggingData});return(p=wb(c,C,p,L,P,Z,e,void 0,!0))?p instanceof I?p:{layout:C,uF:p}:new I("Expecting associatedInPlayerSlot")}; +HYc=function(C,b,h,N,p,P,c,e,L,Z,Y,a,l,F,G,V){var q=TL(h,P,p.l5);if(q instanceof I)return q;if(g.d(h.renderingContent,lE)){L=JBW([h],p,L);if(L instanceof I)return L;if(L.length!==1)return new I("Only expected one media layout.");C=uxl(C,b,h,q,L[0],void 0,"core",N,P,c,e,Z,l,F,G,p.l5,a,void 0,V);return C instanceof I?C:{layout:C.layout,yP:C.uF?[C.uF]:[]}}var f=g.d(h.renderingContent,jF);if(f){if(!Iz(h.adLayoutMetadata))return new I("Invalid ad layout metadata");if(!cA(f))return new I("Invalid sequential layout"); +f=f.sequentialLayouts.map(function(y){return y.playerBytesAdLayoutRenderer}); +C=RJl(C,b,h.adLayoutMetadata,q,f,N,P,p,L,c,e,Z,Y,a,G,l,F,V);return C instanceof I?C:{layout:C.xi,yP:C.yP}}return new I("Not able to convert a sequential layout")}; +RJl=function(C,b,h,N,p,P,c,e,L,Z,Y,a,l,F,G,V,q,f){var y=new bN({current:null}),u=JBW(p,e,L);if(u instanceof I)return u;L=[];for(var K=[],v=void 0,T=0;T0&&(T.push(f),T.push(new C4(v.adPodSkipTarget)));(P=Z.get(v.externalVideoId))&&T.push(new K4(P));P=T}else P=new I("Invalid vod media renderer")}if(P instanceof +I)return P;C=Object.assign({},c,N,{KJ:u,renderingContent:h.renderingContent,clientMetadata:new g0(P),hZ:Lk(Y,C)(c),adLayoutLoggingData:h.adLayoutMetadata.adLayoutLoggingData});h=g.d(h.renderingContent,lE);if(!h||!PA(h))return new I("Invalid meida renderer");a=XQ(a,h.externalVideoId);a.instreamVideoAdRenderer=h;a.YW="AD_PLACEMENT_KIND_START";return F?(L=wb(l,C,L,V,Y,q,G,f,!1),L instanceof I?L:XWH(C.layoutId,l)&&L?{layout:Object.assign({},C,{clientMetadata:new g0(P.concat(new cn(L)))})}:{layout:C,uF:L}): +{layout:C}}; +QNl=function(C,b,h,N,p){if(!SF(b))return new I("Invalid PlayerBytesAdLayoutRenderer");var P=g.d(b.renderingContent,c9);if(!P||P.durationMilliseconds===void 0)return new I("Invalid endcap renderer");var c={layoutId:b.adLayoutMetadata.layoutId,layoutType:b.adLayoutMetadata.layoutType,u$:"adapter"};N=[new OH(P.durationMilliseconds),new dA({impressionCommands:void 0,abandonCommands:P.abandonCommands?[{commandExecutorCommand:P.abandonCommands}]:void 0,completeCommands:P.completionCommands}),new IN(N), +new FL("LAYOUT_TYPE_ENDCAP")];if(p){N.push(new wi(p.S2.adPodIndex-1));N.push(new rA(p.S2.adPodIndex));var e;N.push(new C4((e=p.adPodSkipTarget)!=null?e:-1))}return Object.assign({},c,xV,{renderingContent:b.renderingContent,clientMetadata:new g0(N),KJ:P.skipPings?new Map([["skip",P.skipPings]]):new Map,hZ:Lk(h,C)(c),adLayoutLoggingData:b.adLayoutMetadata.adLayoutLoggingData})}; +wb=function(C,b,h,N,p,P,c,e,L){C=C.filter(function(Y){return Y.adSlotMetadata.slotType==="SLOT_TYPE_IN_PLAYER"&&Y.adSlotMetadata.triggeringSourceLayoutId===b.layoutId}); +if(C.length!==0){if(C.length!==1)return new I("Invalid InPlayer slot association for the given PlayerBytes layout");C=C[0];c=$HW(C,P,h,N,c);if(c instanceof I)return c;var Z;P={slotId:C.adSlotMetadata.slotId,slotType:C.adSlotMetadata.slotType,slotPhysicalPosition:(Z=C.adSlotMetadata.slotPhysicalPosition)!=null?Z:1,u$:"core",slotEntryTrigger:c.slotEntryTrigger,slotFulfillmentTriggers:c.slotFulfillmentTriggers,slotExpirationTriggers:c.slotExpirationTriggers};Z=g.d(C.fulfillmentContent.fulfilledLayout, +LW_);if(!Z||!N16(Z))return new I("Invalid InPlayerAdLayoutRenderer");c={layoutId:Z.adLayoutMetadata.layoutId,layoutType:Z.adLayoutMetadata.layoutType,u$:"core"};h=TL(Z,h,N);if(h instanceof I)return h;N=[];L&&N.push(new iN({}));if(Z.adLayoutMetadata.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY")N.push.apply(N,g.M(Kwl(C.adSlotMetadata.triggerEvent,b)));else if(Z.adLayoutMetadata.layoutType==="LAYOUT_TYPE_ENDCAP")N.push(new IN(BA(C.adSlotMetadata.triggerEvent))),e&&N.push(e);else return new I("Not able to parse an SDF InPlayer layout"); +p=Object.assign({},c,h,{renderingContent:Z.renderingContent,KJ:new Map,hZ:Lk(p,P)(c),clientMetadata:new g0(N),adLayoutLoggingData:Z.adLayoutMetadata.adLayoutLoggingData});return Object.assign({},P,{fulfilledLayout:p,clientMetadata:new g0([])})}}; +Kwl=function(C,b){var h=[];h.push(new IN(BA(C)));h.push(new lN(b.layoutId));(C=pk(b.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&h.push(new $R(C));(C=pk(b.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&h.push(new bN(C));(C=pk(b.clientMetadata,"metadata_type_remote_slots_data"))&&h.push(new K4(C));(C=pk(b.clientMetadata,"metadata_type_ad_next_params"))&&h.push(new D0(C));(C=pk(b.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&h.push(new di(C));(C= +pk(b.clientMetadata,"metadata_type_ad_pod_info"))&&h.push(new xJ(C));(b=pk(b.clientMetadata,"metadata_type_ad_video_id"))&&h.push(new hD(b));return h}; +UHU=function(C,b,h,N,p,P){function c(Z){return CS(b,Z)} +var e=N.XU.inPlayerSlotId,L={layoutId:N.XU.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",u$:"core"};h={slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,u$:"core",slotEntryTrigger:new qZ(c,C),slotFulfillmentTriggers:[new vz(c,e)],slotExpirationTriggers:[new DV(c,e),new Xi(c,h)]};C=Object.assign({},L,{layoutExitNormalTriggers:[new fy(c,C)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],lf:[],KJ:new Map,clientMetadata:new g0([new eE(N.XU), +new IN(N.adPlacementConfig),p]),hZ:Lk(P,h)(L),adLayoutLoggingData:N.XU.adLayoutLoggingData});return Object.assign({},h,{clientMetadata:new g0([new QW(C)])})}; +XWH=function(C,b){b=g.z(b);for(var h=b.next();!h.done;h=b.next())if(h=h.value,h.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"){var N=g.d(h.fulfillmentContent.fulfilledLayout,VM);if(N&&(N=g.d(N.renderingContent,zL))&&N.associatedPlayerBytesLayoutId===C)return h}}; +$HW=function(C,b,h,N,p){var P=sN1(Rj(C.slotEntryTrigger,h,N),p,C,b);if(P instanceof I)return P;for(var c=[],e=g.z(C.slotFulfillmentTriggers),L=e.next();!L.done;L=e.next()){L=Rj(L.value,h,N);if(L instanceof I)return L;c.push(L)}c=OYH(c,p,C,b);b=[];C=g.z(C.slotExpirationTriggers);for(p=C.next();!p.done;p=C.next()){p=Rj(p.value,h,N);if(p instanceof I)return p;b.push(p)}return{slotEntryTrigger:P,slotFulfillmentTriggers:c,slotExpirationTriggers:b}}; +sN1=function(C,b,h,N){return b&&h.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&C instanceof z9?new Sb(function(p){return CS(N,p)},h.adSlotMetadata.slotId):C}; +OYH=function(C,b,h,N){return b&&h.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?C.map(function(p){return p instanceof vz?new Ew(function(P){return CS(N,P)},h.adSlotMetadata.slotId):p}):C}; +TL=function(C,b,h){for(var N=[],p=g.z(C.layoutExitNormalTriggers||[]),P=p.next();!P.done;P=p.next()){P=Rj(P.value,b,h);if(P instanceof I)return P;N.push(P)}p=[];P=g.z(C.layoutExitSkipTriggers||[]);for(var c=P.next();!c.done;c=P.next()){c=Rj(c.value,b,h);if(c instanceof I)return c;p.push(c)}P=[];c=g.z(C.layoutExitMuteTriggers||[]);for(var e=c.next();!e.done;e=c.next()){e=Rj(e.value,b,h);if(e instanceof I)return e;P.push(e)}c=[];C=g.z(C.layoutExitUserInputSubmittedTriggers||[]);for(e=C.next();!e.done;e= +C.next()){e=Rj(e.value,b,h);if(e instanceof I)return e;c.push(e)}return{layoutExitNormalTriggers:N,layoutExitSkipTriggers:p,layoutExitMuteTriggers:P,layoutExitUserInputSubmittedTriggers:c,lf:[]}}; +Ij=function(C){var b=g.d(C.renderingContent,lE);if(b==null?0:b.pings)return qy(b.pings);C=g.d(C.renderingContent,c9);return(C==null?0:C.skipPings)?new Map([["skip",C.skipPings]]):new Map}; +iY1=function(C,b,h,N,p){b=g.d(b.renderingContent,lE);if(!b)return new I("Invalid rendering content for DAI media layout");C=[new Nl(N),new Ml(h.Vn.videoLengthSeconds),new ql(h.Vn.playerVars),new AD(h.AQ),new yW(h.cS),new rA(h.In),new IN(BA(C)),new hD(h.Vn.adVideoId),new xJ(h.S2),b.sodarExtensionData&&new f4(b.sodarExtensionData),new $R({current:null}),new iN({}),new n4(My(b.pings))].filter(SDS);p!==void 0&&C.push(new RE(p));return C}; +rBo=function(C,b,h){C=C.map(function(L){return D8(g.d(L.renderingContent,lE),!1)}); +var N=C.map(function(L){return L.videoLengthSeconds}),p=N.map(function(L,Z){return new $g(Z,N)}),P=b,c=h,e=[]; +C.forEach(function(L,Z){c=Math.min(P+L.videoLengthSeconds*1E3,h);QM(L.playerVars,p[Z]);e.push({Vn:L,AQ:P,cS:c,In:Z,S2:p[Z]});P=c}); +return e}; +JBW=function(C,b,h){for(var N=[],p=g.z(C),P=p.next();!P.done;P=p.next())if(P=g.d(P.value.renderingContent,lE)){if(!PA(P))return new I("Invalid vod media renderer");N.push(vJl(P))}p=N.map(function(a){return a.Yd}); +P=[];for(var c=0,e=0;e0?CW:-1;else if(H=g.d(w,c9)){w=wWH(C,b,h,H,P,V,e,t,CW);if(w instanceof I){F= +w;break a}w=w(l);q.push(w.Cv);f=[].concat(g.M(w.EV),g.M(f));y=[].concat(g.M(w.aS),g.M(y));w.uF&&(jV=[w.uF].concat(g.M(jV)))}else if(H=g.d(w,FQ)){if(F===void 0){F=new I("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:H});break a}w=hbH(C,b,h,P,H,T,e,F,V,tc(Y,"supports_multi_step_on_desktop"));if(w instanceof I){F=w;break a}w=w(l);q.push(w.Cv);w.uF&&jV.push(w.uF);f=[].concat(g.M(w.EV),g.M(f));y=[].concat(g.M(w.aS),g.M(y));u=[].concat(g.M(w.lS),g.M(u)); +K=[].concat(g.M(w.pE),g.M(K));v=[T].concat(g.M(v))}else if(w=g.d(w,GL)){w=NA_(C,b,h,P,w,T,e,V);if(w instanceof I){F=w;break a}w=w(l);q.push(w.Cv);w.uF&&jV.push(w.uF);y=[].concat(g.M(w.aS),g.M(y))}else{F=new I("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}F={Ig:q,layoutExitSkipTriggers:f,layoutExitUserInputSubmittedTriggers:u,lf:K,layoutExitMuteTriggers:y,hX:v,yP:jV}}}else a:if(V=LCl(N,h,Y),V instanceof I)F=V;else{q=0;f=[];y=[];u=[];K=[];v=[];T=[];t=new zl({current:null});go=new bN({current:null}); +jV=!1;W=[];CW=-1;G=g.z(N);for(w=G.next();!w.done;w=G.next())if(w=w.value,g.d(w,oj)){w=CNc(b,h,g.d(w,oj),e);if(w instanceof I){F=w;break a}w=w(l);f.push(w.Cv);y=[].concat(g.M(w.EV),g.M(y));u=[].concat(g.M(w.aS),g.M(u));w.uF&&(W=[w.uF].concat(g.M(W)))}else if(g.d(w,lE)){CW=db(g.d(w,lE),h,Y);if(CW instanceof No){F=new I(CW);break a}w=new $g(q,V);w=Z4c(b,CW.layoutId,CW.y7,h,WA(CW.playerVars,CW.m_,c,Z,w),CW.Yd,P,w,e(l),go,L.get(CW.y7.externalVideoId),void 0,a);q++;f.push(w.Cv);y=[].concat(g.M(w.EV),g.M(y)); +u=[].concat(g.M(w.aS),g.M(u));jV||(T.push(go),jV=!0);CW=(CW=CW.y7.adPodSkipTarget)&&CW>0?CW:-1}else if(g.d(w,c9)){w=wWH(C,b,h,g.d(w,c9),P,q,e,go,CW);if(w instanceof I){F=w;break a}w=w(l);f.push(w.Cv);y=[].concat(g.M(w.EV),g.M(y));u=[].concat(g.M(w.aS),g.M(u));w.uF&&(W=[w.uF].concat(g.M(W)))}else if(g.d(w,FQ)){if(F===void 0){F=new I("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.d(w,FQ)});break a}w=hbH(C,b,h,P,g.d(w,FQ),t,e,F,q,tc(Y,"supports_multi_step_on_desktop")); +if(w instanceof I){F=w;break a}w=w(l);f.push(w.Cv);w.uF&&W.push(w.uF);y=[].concat(g.M(w.EV),g.M(y));u=[].concat(g.M(w.aS),g.M(u));K=[].concat(g.M(w.lS),g.M(K));v=[].concat(g.M(w.pE),g.M(v));T=[t].concat(g.M(T))}else if(g.d(w,GL)){w=NA_(C,b,h,P,g.d(w,GL),t,e,q);if(w instanceof I){F=w;break a}w=w(l);f.push(w.Cv);w.uF&&W.push(w.uF);u=[].concat(g.M(w.aS),g.M(u))}else{F=new I("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}F={Ig:f,layoutExitSkipTriggers:y,layoutExitUserInputSubmittedTriggers:K, +lf:v,layoutExitMuteTriggers:u,hX:T,yP:W}}F instanceof I?l=F:(v=l.slotId,V=F.Ig,q=F.layoutExitSkipTriggers,f=F.layoutExitMuteTriggers,y=F.layoutExitUserInputSubmittedTriggers,u=F.hX,l=e(l),K=p?p.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",v=p?p.layoutId:TZ(b.K.get(),K,v),T={layoutId:v,layoutType:K,u$:"core"},l={layout:{layoutId:v,layoutType:K,KJ:new Map,layoutExitNormalTriggers:[new Uw(b.j,v)],layoutExitSkipTriggers:q,layoutExitMuteTriggers:f,layoutExitUserInputSubmittedTriggers:y,lf:[],u$:"core", +clientMetadata:new g0([new Hn(V)].concat(g.M(u))),hZ:l(T)},yP:F.yP});return l}}; +LCl=function(C,b,h){var N=[];C=g.z(C);for(var p=C.next();!p.done;p=C.next())if(p=p.value,g.d(p,lE)){p=db(g.d(p,lE),b,h);if(p instanceof No)return new I(p);N.push(p.Yd)}return N}; +ay1=function(C,b,h,N,p,P,c,e){if(!STo(h,e===void 0?!1:e))return new I("Received invalid InstreamSurveyAdRenderer for VOD single survey.",{InstreamSurveyAdRenderer:h});var L=s2(h);if(L<=0)return new I("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:h});var Z=new zl({current:null}),Y=DnU(C,b,h,Z,N,P,c);return YHW(C,N,P,L,p,function(a,l){var F=a.slotId,G=O2(h);a=c(a);var V,q=(V=gc(b,N,h.layoutId,"createMediaBreakLayoutAndAssociatedInPlayerSlotForVodSurvey"))!=null?V: +TZ(b.K.get(),"LAYOUT_TYPE_MEDIA_BREAK",F);F={layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",u$:"core"};V=Y(q,l);var f=pk(V.clientMetadata,"metadata_type_fulfilled_layout");f||ZK("Could not retrieve overlay layout ID during VodMediaBreakLayout for survey creation. This should never happen.");G=[new IN(N),new OH(L),new dA(G),Z];f&&G.push(new FL(f.layoutType));return{JZO:{layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",KJ:new Map,layoutExitNormalTriggers:[new Uw(b.j,q)],layoutExitSkipTriggers:[new Ow(b.j, +l.layoutId)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[new tv(b.j,l.layoutId)],lf:[],u$:"core",clientMetadata:new g0(G),hZ:a(F)},pEf:V}})}; +ly_=function(C){if(!HDK(C))return!1;var b=g.d(C.adVideoStart,kD);return b?g.d(C.linearAd,lE)&&gb(b)?!0:(ZK("Invalid Sandwich with notify"),!1):!1}; +oRW=function(C){if(C.linearAds==null)return!1;C=g.d(C.adStart,kD);return C?gb(C)?!0:(ZK("Invalid LASR with notify"),!1):!1}; +FCW=function(C){if(!z8_(C))return!1;C=g.d(C.adStart,kD);return C?gb(C)?!0:(ZK("Invalid LASR with notify"),!1):!1}; +ex=function(C,b,h,N,p,P,c,e,L,Z){this.X=C;this.K=b;this.j=h;this.Zf=N;this.BF=p;this.N=P;this.EX=c;this.JR=e;this.b3=L;this.loadPolicy=Z===void 0?1:Z}; +ffV=function(C,b,h,N,p,P,c,e,L,Z){var Y=[];if(b.length===0&&N.length===0&&h.length===0)return Y;b=b.filter(pG);var a=h.filter(oro),l=N.filter(pG),F=new Map,G=GNK(b),V=h.some(function(E){var v1;return(E==null?void 0:(v1=E.adSlotMetadata)==null?void 0:v1.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),q=h.some(function(E){var v1; +return(E==null?void 0:(v1=E.adSlotMetadata)==null?void 0:v1.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),f=h.some(function(E){var v1; +return(E==null?void 0:(v1=E.adSlotMetadata)==null?void 0:v1.slotType)==="SLOT_TYPE_IN_PLAYER"}),y=h.some(function(E){var v1,Vj; +return(E==null?void 0:(v1=E.adSlotMetadata)==null?void 0:v1.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(E==null?void 0:(Vj=E.adSlotMetadata)==null?void 0:Vj.slotType)==="SLOT_TYPE_ABOVE_FEED"}); +h=h.some(function(E){var v1;return(E==null?void 0:(v1=E.adSlotMetadata)==null?void 0:v1.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); +if(V||q||f||y||h)Z=mHx(a,b,e,p,G,C.BF.get(),C.loadPolicy,F,C.Zf.get(),C.X.get(),f,c,L,Z),Z instanceof I?ZK(Z,void 0,void 0,{contentCpn:p}):Y.push.apply(Y,g.M(Z));Z=g.z(b);for(h=Z.next();!h.done;h=Z.next())h=h.value,q=GlW(C,F,h,p,P,c,V,e,G,L,a),q instanceof I?ZK(q,void 0,void 0,{renderer:h.renderer,config:h.config.adPlacementConfig,kind:h.config.adPlacementConfig.kind,contentCpn:p,daiEnabled:c}):Y.push.apply(Y,g.M(q));SHW(C.Zf.get())||(P=$lH(C,l,p,e,G,F),Y.push.apply(Y,g.M(P)));if(C.N===null||c&&!e.f8){var u, +K,v;C=e.yV&&b.length===1&&((u=b[0].config)==null?void 0:(K=u.adPlacementConfig)==null?void 0:K.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((v=b[0].renderer)==null?void 0:v.adBreakServiceRenderer);if(!Y.length&&!C){var T,t,go,jV;ZK("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:p,"first APR kind":(T=b[0])==null?void 0:(t=T.config)==null?void 0:(go=t.adPlacementConfig)==null?void 0:go.kind,renderer:(jV=b[0])==null?void 0: +jV.renderer})}return Y}u=N.filter(pG);Y.push.apply(Y,g.M(sM_(F,u,C.K.get(),C.N,p,V)));if(!Y.length){var CW,W,w,H;ZK("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":b.length,contentCpn:p,daiEnabled:c.toString(),"first APR kind":(CW=b[0])==null?void 0:(W=CW.config)==null?void 0:(w=W.adPlacementConfig)==null?void 0:w.kind,renderer:(H=b[0])==null?void 0:H.renderer})}return Y}; +$lH=function(C,b,h,N,p,P){function c(l){return Lk(C.BF.get(),l)} +var e=[];b=g.z(b);for(var L=b.next();!L.done;L=b.next()){L=L.value;var Z=L.renderer,Y=Z.sandwichedLinearAdRenderer,a=Z.linearAdSequenceRenderer;Y&&ly_(Y)?(ZK("Found AdNotify with SandwichedLinearAdRenderer"),a=g.d(Y.adVideoStart,kD),Y=g.d(Y.linearAd,lE),U2(P,Z,L.config.adPlacementConfig.kind),Z=void 0,a=cBW((Z=a)==null?void 0:Z.layout.layoutId,C.K.get(),C.j.get(),L.config.adPlacementConfig,L.adSlotLoggingData,Y,h,N,c,p,C.loadPolicy,C.Zf.get(),C.BF.get()),a instanceof I?ZK(a):e.push.apply(e,g.M(a))): +a&&(!a.adLayoutMetadata&&oRW(a)||a.adLayoutMetadata&&FCW(a))&&(ZK("Found AdNotify with LinearAdSequenceRenderer"),U2(P,Z,L.config.adPlacementConfig.kind),Z=void 0,Y=gR6((Z=g.d(a.adStart,kD))==null?void 0:Z.layout.layoutId,C.K.get(),C.j.get(),L.config.adPlacementConfig,L.adSlotLoggingData,a.linearAds,Iz(a.adLayoutMetadata)?a.adLayoutMetadata:void 0,h,N,c,p,C.loadPolicy,C.Zf.get()),Y instanceof I?ZK(Y):e.push.apply(e,g.M(Y)))}return e}; +GlW=function(C,b,h,N,p,P,c,e,L,Z,Y){function a(f){return Lk(C.BF.get(),f)} +var l=h.renderer,F=h.config.adPlacementConfig,G=F.kind,V=h.adSlotLoggingData,q=e.f8&&G==="AD_PLACEMENT_KIND_START";q=P&&!q;if(l.adsEngagementPanelRenderer!=null)return KG(b,h.elementId,G,l.adsEngagementPanelRenderer.isContentVideoEngagementPanel,l.adsEngagementPanelRenderer.adVideoId,l.adsEngagementPanelRenderer.associatedCompositePlayerBytesLayoutId,F,V,function(f,y,u,K){var v=C.j.get(),T=f.slotId,t=l.adsEngagementPanelRenderer;f=Lk(C.BF.get(),f);return LS(v,T,"LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON", +new OD(t),y,u,t.impressionPings,f,l.adsEngagementPanelRenderer.adLayoutLoggingData,K)}),[]; +if(l.adsEngagementPanelLayoutViewModel)return KG(b,h.elementId,G,l.adsEngagementPanelLayoutViewModel.isContentVideoEngagementPanel,l.adsEngagementPanelLayoutViewModel.adVideoId,l.adsEngagementPanelLayoutViewModel.associatedCompositePlayerBytesLayoutId,F,V,function(f,y,u,K){var v=C.j.get(),T=f.slotId,t=l.adsEngagementPanelLayoutViewModel;f=Lk(C.BF.get(),f);return Zr(v,T,"LAYOUT_TYPE_PANEL",new vW(t),y,u,f,l.adsEngagementPanelLayoutViewModel.adLayoutLoggingData,K)}),[]; +if(l.actionCompanionAdRenderer!=null){if(l.actionCompanionAdRenderer.showWithoutLinkedMediaLayout)return R8l(C.K.get(),C.N,C.j.get(),l.actionCompanionAdRenderer,F,V,N,a);KG(b,h.elementId,G,l.actionCompanionAdRenderer.isContentVideoCompanion,l.actionCompanionAdRenderer.adVideoId,l.actionCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,F,V,function(f,y,u,K){var v=C.j.get(),T=f.slotId,t=l.actionCompanionAdRenderer;f=Lk(C.BF.get(),f);return LS(v,T,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", +new KY(t),y,u,t.impressionPings,f,l.actionCompanionAdRenderer.adLayoutLoggingData,K)})}else if(l.topBannerImageTextIconButtonedLayoutViewModel!==void 0){if(l.topBannerImageTextIconButtonedLayoutViewModel.showWithoutLinkedMediaLayout)return QMV(C.K.get(),C.N,C.j.get(),l.topBannerImageTextIconButtonedLayoutViewModel,F,V,N,a); +KG(b,h.elementId,G,l.topBannerImageTextIconButtonedLayoutViewModel.isContentVideoCompanion,l.topBannerImageTextIconButtonedLayoutViewModel.adVideoId,l.topBannerImageTextIconButtonedLayoutViewModel.associatedCompositePlayerBytesLayoutId,F,V,function(f,y,u,K){var v=C.j.get(),T=f.slotId,t=l.topBannerImageTextIconButtonedLayoutViewModel;f=Lk(C.BF.get(),f);return Zr(v,T,"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",new sD(t),y,u,f,l.topBannerImageTextIconButtonedLayoutViewModel.adLayoutLoggingData,K)})}else if(l.imageCompanionAdRenderer)KG(b, +h.elementId,G,l.imageCompanionAdRenderer.isContentVideoCompanion,l.imageCompanionAdRenderer.adVideoId,l.imageCompanionAdRenderer.associatedCompositePlayerBytesLayoutId,F,V,function(f,y,u,K){var v=C.j.get(),T=f.slotId,t=l.imageCompanionAdRenderer; +f=Lk(C.BF.get(),f);return LS(v,T,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new ED(t),y,u,t.impressionPings,f,l.imageCompanionAdRenderer.adLayoutLoggingData,K)}); +else if(l.bannerImageLayoutViewModel)KG(b,h.elementId,G,l.bannerImageLayoutViewModel.isContentVideoCompanion,l.bannerImageLayoutViewModel.adVideoId,l.bannerImageLayoutViewModel.associatedCompositePlayerBytesLayoutId,F,V,function(f,y,u,K){var v=C.j.get(),T=f.slotId,t=l.bannerImageLayoutViewModel;f=Lk(C.BF.get(),f);return Zr(v,T,"LAYOUT_TYPE_COMPANION_WITH_IMAGE",new nY(t),y,u,f,l.bannerImageLayoutViewModel.adLayoutLoggingData,K)}); +else if(l.shoppingCompanionCarouselRenderer)KG(b,h.elementId,G,l.shoppingCompanionCarouselRenderer.isContentVideoCompanion,l.shoppingCompanionCarouselRenderer.adVideoId,l.shoppingCompanionCarouselRenderer.associatedCompositePlayerBytesLayoutId,F,V,function(f,y,u,K){var v=C.j.get(),T=f.slotId,t=l.shoppingCompanionCarouselRenderer;f=Lk(C.BF.get(),f);return LS(v,T,"LAYOUT_TYPE_COMPANION_WITH_SHOPPING",new tB(t),y,u,t.impressionPings,f,l.shoppingCompanionCarouselRenderer.adLayoutLoggingData,K)}); +else if(l.adBreakServiceRenderer){if(!JUU(h))return[];if(G==="AD_PLACEMENT_KIND_PAUSE")return iDS(C.K.get(),F,V,h.renderer.adBreakServiceRenderer,N);if(G!=="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&G!=="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED")return rUc(C.K.get(),F,V,h.renderer.adBreakServiceRenderer,N,p,P);e.yV||ZK("Received non-live cue point triggered AdBreakServiceRenderer",void 0,void 0,{kind:G,adPlacementConfig:F,daiEnabledForContentVideo:String(P),isServedFromLiveInfra:String(e.yV),clientPlaybackNonce:e.clientPlaybackNonce}); +if(G==="AD_PLACEMENT_KIND_PREFETCH_TRIGGERED"){if(!C.EX)return new I("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no playerControlsApiProvider set for interface");if(!C.b3)return new I("Received AD_PLACEMENT_KIND_PREFETCH_TRIGGERED with no PrefetchTriggerAdapter set for interface");C.b3.OE({adPlacementRenderer:h,contentCpn:N,l5:p});p=C.EX.get().getCurrentTimeSec(1,!1);return zbo(C.K.get(),h.renderer.adBreakServiceRenderer,F,p,N,V,P)}if(!C.JR)return new I("Received AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED with no CuePointOpportunityAdapter set for interface"); +C.JR.OE({adPlacementRenderer:h,contentCpn:N,l5:p})}else{if(l.clientForecastingAdRenderer)return EJU(C.K.get(),C.j.get(),F,V,l.clientForecastingAdRenderer,N,p,a);if(l.invideoOverlayAdRenderer)return Bio(C.K.get(),C.j.get(),F,V,l.invideoOverlayAdRenderer,N,p,a);if(l.instreamAdPlayerOverlayRenderer)return t_K(C.K.get(),C.j.get(),F,V,l.instreamAdPlayerOverlayRenderer,N,a);if((l.linearAdSequenceRenderer||l.instreamVideoAdRenderer)&&q)return hJW(C.K.get(),C.j.get(),h,N,a,Z,!C.Zf.get().Z.Y().D("html5_override_ad_video_length_killswitch")); +if(l.linearAdSequenceRenderer&&!q){if(c)return[];U2(b,l,G);if(l.linearAdSequenceRenderer.adLayoutMetadata){if(!z8_(l.linearAdSequenceRenderer))return new I("Received invalid LinearAdSequenceRenderer.")}else if(l.linearAdSequenceRenderer.linearAds==null)return new I("Received invalid LinearAdSequenceRenderer.");if(g.d(l.linearAdSequenceRenderer.adStart,kD)){ZK("Found AdNotify in LinearAdSequenceRenderer");h=g.d(l.linearAdSequenceRenderer.adStart,kD);if(!h8U(h))return new I("Invalid AdMessageRenderer."); +P=l.linearAdSequenceRenderer.linearAds;return pnc(C.X.get(),C.K.get(),C.j.get(),C.BF.get(),F,V,h,Iz(l.linearAdSequenceRenderer.adLayoutMetadata)?l.linearAdSequenceRenderer.adLayoutMetadata:void 0,P,N,p,e,a,L,C.loadPolicy,C.Zf.get())}return ebo(C.K.get(),C.j.get(),F,V,l.linearAdSequenceRenderer.linearAds,Iz(l.linearAdSequenceRenderer.adLayoutMetadata)?l.linearAdSequenceRenderer.adLayoutMetadata:void 0,N,p,e,a,L,C.loadPolicy,C.Zf.get(),Y)}if(!l.remoteSlotsRenderer||P){if(l.instreamVideoAdRenderer&& +!q){if(c)return[];U2(b,l,G);return YD1(C.K.get(),C.j.get(),F,V,l.instreamVideoAdRenderer,N,p,e,a,L,C.loadPolicy,C.Zf.get(),C.BF.get(),Y)}if(l.instreamSurveyAdRenderer)return ay1(C.K.get(),C.j.get(),l.instreamSurveyAdRenderer,F,V,N,a,tc(C.Zf.get(),"supports_multi_step_on_desktop"));if(l.sandwichedLinearAdRenderer!=null)return HDK(l.sandwichedLinearAdRenderer)?g.d(l.sandwichedLinearAdRenderer.adVideoStart,kD)?(ZK("Found AdNotify in SandwichedLinearAdRenderer"),h=g.d(l.sandwichedLinearAdRenderer.adVideoStart, +kD),h8U(h)?(P=g.d(l.sandwichedLinearAdRenderer.linearAd,lE))?kNH(h,P,F,C.X.get(),C.K.get(),C.j.get(),C.BF.get(),V,N,p,e,a,L,C.loadPolicy,C.Zf.get()):new I("Missing IVAR from Sandwich"):new I("Invalid AdMessageRenderer.")):ebo(C.K.get(),C.j.get(),F,V,[l.sandwichedLinearAdRenderer.adVideoStart,l.sandwichedLinearAdRenderer.linearAd],void 0,N,p,e,a,L,C.loadPolicy,C.Zf.get()):new I("Received invalid SandwichedLinearAdRenderer.");if(l.videoAdTrackingRenderer!=null)return e=tc(C.Zf.get(),"enable_h5_shorts_ad_terminal_events")&& +e.Yw,dHH(C.K.get(),C.j.get(),l.videoAdTrackingRenderer,F,V,N,p,e,a)}}return[]}; +YD=function(C,b,h,N,p,P,c,e){g.O.call(this);var L=this;this.K=C;this.N=b;this.kt=N;this.EX=p;this.Zf=P;this.M2=c;this.qo=e;this.j=null;h.get().addListener(this);this.addOnDisposeCallback(function(){h.HE()||h.get().removeListener(L)}); +N.get().addListener(this);this.addOnDisposeCallback(function(){N.HE()||N.get().removeListener(L)})}; +VE_=function(C,b,h){var N=C.EX.get().getCurrentTimeSec(1,!1);C.Zf.get().Z.Y().tZ()&&x4(C.M2.get(),"sdai","onopp.1;evt."+h.event+";start."+h.startSecs.toFixed(3)+";d."+h.YJ.toFixed(3));ak(C.K.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var p=C.N.get(),P=b.adPlacementRenderer.renderer.adBreakServiceRenderer,c=b.contentCpn,e=b.adPlacementRenderer.adSlotLoggingData,L=aa(C.Zf.get()),Z=C.M2;if(p.Zf.get().Z.Y().experiments.Fo("enable_smearing_expansion_dai")){var Y=g.Zc(p.Zf.get().Z.Y().experiments, +"max_prefetch_window_sec_for_livestream_optimization");var a=g.Zc(p.Zf.get().Z.Y().experiments,"min_prefetch_offset_sec_for_livestream_optimization");L={TV:H4W(h),YR:!1,cueProcessedMs:N*1E3};var l=h.startSecs+h.YJ;if(N===0)L.AN=new qM(0,l*1E3);else{a=h.startSecs-a;var F=a-N;L.AN=F<=0?new qM(a*1E3,l*1E3):new qM(Math.floor(N+Math.random()*Math.min(F,Y))*1E3,l*1E3)}Y=L}else Y={TV:H4W(h),YR:!1},l=h.startSecs+h.YJ,h.startSecs<=N?L=new qM((h.startSecs-4)*1E3,l*1E3):(a=Math.max(0,h.startSecs-N-10),L=new qM(Math.floor(N+ +Math.random()*(L?N===0?0:Math.min(a,5):a))*1E3,l*1E3)),Y.AN=L;p=uE(p,P,c,Y,e,[new VW(h)]);Z.get().Z.w4(Y.AN.start/1E3-N,h.startSecs-N);return[p]})}; +lO=function(C){var b,h=(b=pk(C.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:b.current;if(!h)return null;b=pk(C.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var N=C.layoutId,p=pk(C.clientMetadata,"metadata_type_content_cpn"),P=pk(C.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),c=pk(C.clientMetadata,"metadata_type_player_overlay_layout_renderer"),e=pk(C.clientMetadata,"metadata_type_player_underlay_renderer"),L=pk(C.clientMetadata, +"metadata_type_ad_placement_config"),Z=pk(C.clientMetadata,"metadata_type_video_length_seconds");var Y=Ck(C.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?pk(C.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):Ck(C.clientMetadata,"metadata_type_layout_enter_ms")&&Ck(C.clientMetadata,"metadata_type_layout_exit_ms")?(pk(C.clientMetadata,"metadata_type_layout_exit_ms")-pk(C.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{K$:N,contentCpn:p,OT:h,hS:b,instreamAdPlayerOverlayRenderer:P, +playerOverlayLayoutRenderer:c,instreamAdPlayerUnderlayRenderer:e,adPlacementConfig:L,videoLengthSeconds:Z,Tv:Y,inPlayerLayoutId:pk(C.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:pk(C.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; +qHx=function(C,b){return MEl(C,b)}; +mlW=function(C,b){b=MEl(C,b);if(!b)return null;var h;b.Tv=(h=pk(C.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:h.adBreakRemainingLengthSeconds;return b}; +MEl=function(C,b){var h,N=(h=pk(C.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:h.current;if(!N)return null;h=DbH(C,b);return{wr:vYH(C,b),adPlacementConfig:pk(C.clientMetadata,"metadata_type_ad_placement_config"),ZW:h,contentCpn:pk(C.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:pk(C.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:pk(C.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:pk(C.clientMetadata, +"metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,Tv:void 0,OT:N,K$:C.layoutId,videoLengthSeconds:pk(C.clientMetadata,"metadata_type_video_length_seconds")}}; +oa=function(C,b,h,N,p,P,c,e,L){g.O.call(this);this.X=C;this.W=b;this.G=h;this.N=N;this.j=p;this.K=P;this.BF=c;this.Zf=e;this.fO=L;this.Zj=!0}; +fyV=function(C,b,h){return oJV(C.j.get(),b.contentCpn,b.K$,function(N){return FwV(C.K.get(),N.slotId,h,b.adPlacementConfig,b.K$,Lk(C.BF.get(),N))})}; +Fg=function(C,b,h,N,p,P,c,e){g.O.call(this);this.K=C;this.j=b;this.N=h;this.Zf=N;this.X=p;this.fO=P;this.EX=c;this.EU=e}; +GK=function(C){g.O.call(this);this.j=C}; +ak=function(C,b,h,N){C.j().kJ(b,N);h=h();C=C.j();C.fJ.jw("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",b,N,h);b=g.z(h);for(h=b.next();!h.done;h=b.next())a:{N=C;h=h.value;N.fJ.qU("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",h);N.fJ.qU("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",h);try{var p=N.j;if(g.qp(h.slotId))throw new I("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if($U(p,h))throw new I("Duplicate registration for slot.",{slotId:h.slotId,slotEntryTriggerType:h.slotEntryTrigger.triggerType}, +"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!p.uH.r_.has(h.slotType))throw new I("No fulfillment adapter factory registered for slot of type: "+h.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!p.uH.Lr.has(h.slotType))throw new I("No SlotAdapterFactory registered for slot of type: "+h.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");XG(p,"TRIGGER_CATEGORY_SLOT_ENTRY",h.slotEntryTrigger?[h.slotEntryTrigger]:[]);XG(p,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", +h.slotFulfillmentTriggers);XG(p,"TRIGGER_CATEGORY_SLOT_EXPIRATION",h.slotExpirationTriggers);var P=N.j,c=h.slotType+"_"+h.slotPhysicalPosition,e=Jc(P,c);if($U(P,h))throw new I("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");e.set(h.slotId,new U6l(h));P.j.set(c,e)}catch(go){go instanceof I&&go.yH?(N.fJ.RI("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",go.yH,h),ZK(go,h,void 0,void 0,go.zW)):(N.fJ.RI("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", +h),ZK(go,h));break a}$U(N.j,h).W=!0;try{var L=N.j,Z=$U(L,h),Y=h.slotEntryTrigger,a=L.uH.jJ.get(Y.triggerType);a&&(a.O2("TRIGGER_CATEGORY_SLOT_ENTRY",Y,h,null),Z.nO.set(Y.triggerId,a));for(var l=g.z(h.slotFulfillmentTriggers),F=l.next();!F.done;F=l.next()){var G=F.value,V=L.uH.jJ.get(G.triggerType);V&&(V.O2("TRIGGER_CATEGORY_SLOT_FULFILLMENT",G,h,null),Z.KO.set(G.triggerId,V))}for(var q=g.z(h.slotExpirationTriggers),f=q.next();!f.done;f=q.next()){var y=f.value,u=L.uH.jJ.get(y.triggerType);u&&(u.O2("TRIGGER_CATEGORY_SLOT_EXPIRATION", +y,h,null),Z.V.set(y.triggerId,u))}var K=L.uH.r_.get(h.slotType).get().build(L.N,h);Z.J=K;var v=L.uH.Lr.get(h.slotType).get().build(L.G,h);v.init();Z.K=v}catch(go){go instanceof I&&go.yH?(N.fJ.RI("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",go.yH,h),ZK(go,h,void 0,void 0,go.zW)):(N.fJ.RI("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",h),ZK(go,h));FG(N,h,!0);break a}N.fJ.qU("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",h);N.j.zo(h);for(var T=g.z(N.K),t=T.next();!t.done;t= +T.next())t.value.zo(h);Va(N,h)}}; +Sx=function(C,b,h,N,p){g.O.call(this);var P=this;this.K=C;this.N=b;this.pj=h;this.context=p;this.j=new Map;N.get().addListener(this);this.addOnDisposeCallback(function(){N.HE()||N.get().removeListener(P)})}; +qTS=function(C,b){var h=0x8000000000000;var N=0;for(var p=g.z(b.slotFulfillmentTriggers),P=p.next();!P.done;P=p.next())P=P.value,P instanceof Jv?(h=Math.min(h,P.j.start),N=Math.max(N,P.j.end)):ZK("Found unexpected fulfillment trigger for throttled slot.",b,null,{fulfillmentTrigger:P});N=new qM(h,N);h="throttledadcuerange:"+b.slotId;C.j.set(h,b);C.pj.get().addCueRange(h,N.start,N.end,!1,C);zy(C.context.Zf.get())&&(b=N.start,N=N.end,p={},C.context.Nl.jC("tcrr",(p.cid=h,p.sm=b,p.em=N,p)))}; +$D=function(){g.O.apply(this,arguments);this.Zj=!0;this.Gn=new Map;this.j=new Map}; +zK=function(C,b){C=g.z(C.Gn.values());for(var h=C.next();!h.done;h=C.next())if(h.value.layoutId===b)return!0;return!1}; +Ho=function(C,b){C=g.z(C.j.values());for(var h=C.next();!h.done;h=C.next()){h=g.z(h.value);for(var N=h.next();!N.done;N=h.next())if(N=N.value,N.layoutId===b)return N}ZK("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.qp(b)),layoutId:b})}; +ADl=function(){this.j=new Map}; +yDW=function(C,b){this.callback=C;this.slot=b}; +V7=function(){}; +rD1=function(C,b,h){this.callback=C;this.slot=b;this.EX=h}; +i4V=function(C,b,h){this.callback=C;this.slot=b;this.EX=h;this.K=!1;this.j=0}; +JDV=function(C,b,h){this.callback=C;this.slot=b;this.EX=h}; +MG=function(C){this.EX=C}; +qG=function(C){g.O.call(this);this.w6=C;this.JZ=new Map}; +mx=function(C,b){for(var h=[],N=g.z(C.JZ.values()),p=N.next();!p.done;p=N.next()){p=p.value;var P=p.trigger;P instanceof tv&&P.triggeringLayoutId===b&&h.push(p)}h.length?ya(C.w6(),h):ZK("Survey is submitted but no registered triggers can be activated.")}; +fS=function(C,b,h){qG.call(this,C);var N=this;this.Zf=h;b.get().addListener(this);this.addOnDisposeCallback(function(){b.HE()||b.get().removeListener(N)})}; +A$=function(C){g.O.call(this);this.j=C;this.Zj=!0;this.JZ=new Map;this.G=new Set;this.N=new Set;this.X=new Set;this.W=new Set;this.K=new Set}; +y7=function(C){g.O.call(this);this.j=C;this.JZ=new Map}; +rc=function(C,b){for(var h=[],N=g.z(C.JZ.values()),p=N.next();!p.done;p=N.next())p=p.value,p.trigger.j===b.layoutId&&h.push(p);h.length&&ya(C.j(),h)}; +iO=function(C,b,h){g.O.call(this);var N=this;this.j=C;this.context=h;this.JZ=new Map;b.get().addListener(this);this.addOnDisposeCallback(function(){b.HE()||b.get().removeListener(N)})}; +J$=function(C,b,h,N,p){g.O.call(this);var P=this;this.K=C;this.pj=b;this.EX=h;this.fO=N;this.context=p;this.Zj=!0;this.JZ=new Map;this.j=new Set;h.get().addListener(this);this.addOnDisposeCallback(function(){h.HE()||h.get().removeListener(P)})}; +uL_=function(C,b,h,N,p,P,c,e,L,Z){if(Y4(C.fO.get(),1).clientPlaybackNonce!==L)throw new I("Cannot register CueRange-based trigger for different content CPN",{trigger:h});C.JZ.set(h.triggerId,{wV:new Bz(b,h,N,p),cueRangeId:P});C.pj.get().addCueRange(P,c,e,Z,C);zy(C.context.Zf.get())&&(L={},C.context.Nl.jC("crr",(L.ca=b,L.tt=h.triggerType,L.st=N.slotType,L.lt=p==null?void 0:p.layoutType,L.cid=P,L.sm=c,L.em=e,L)))}; +Rbc=function(C,b){C=g.z(C.JZ.entries());for(var h=C.next();!h.done;h=C.next()){var N=g.z(h.value);h=N.next().value;N=N.next().value;if(b===N.cueRangeId)return h}return""}; +uO=function(C,b){g.O.call(this);var h=this;this.X=C;this.K=new Map;this.N=new Map;this.j=null;b.get().addListener(this);this.addOnDisposeCallback(function(){b.HE()||b.get().removeListener(h)}); +var N;this.j=((N=b.get().xP)==null?void 0:N.slotId)||null}; +QEl=function(C,b){var h=[];C=g.z(C.values());for(var N=C.next();!N.done;N=C.next())N=N.value,N.slot.slotId===b&&h.push(N);return h}; +Ra=function(C){g.O.call(this);this.j=C;this.Zj=!0;this.JZ=new Map}; +vF=function(C,b,h){b=b.layoutId;for(var N=[],p=g.z(C.JZ.values()),P=p.next();!P.done;P=p.next())if(P=P.value,P.trigger instanceof Uw){var c;if(c=P.trigger.layoutId===b){c=h;var e=y_o.get(P.category);c=e?e===c:!1}c&&N.push(P)}N.length&&ya(C.j(),N)}; +Q7=function(C){g.O.call(this);this.j=C;this.Zj=!0;this.JZ=new Map}; +U3=function(C,b,h,N,p){g.O.call(this);var P=this;this.G=C;this.kt=b;this.EX=h;this.M2=N;this.j=null;this.Zj=!0;this.JZ=new Map;this.N=new Map;b.get().addListener(this);this.addOnDisposeCallback(function(){b.HE()||b.get().removeListener(P)}); +p.get().addListener(this);this.addOnDisposeCallback(function(){p.HE()||p.get().removeListener(P)})}; +Xnl=function(C){C.j&&(C.K&&(C.K.stop(),C.K.start()),Ull(C,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"))}; +Ull=function(C,b){for(var h=[],N=g.z(C.JZ.values()),p=N.next();!p.done;p=N.next())p=p.value,p.trigger.triggerType===b&&h.push(p);h.length>0&&ya(C.G(),h)}; +Xg=function(C,b,h,N,p){p=p===void 0?!0:p;for(var P=[],c=g.z(C.JZ.values()),e=c.next();!e.done;e=c.next()){e=e.value;var L=e.trigger;if(L.triggerType===b){if(L instanceof yf||L instanceof rq||L instanceof uj){if(p&&L.breakDurationMs!==h)continue;if(!p&&L.breakDurationMs===h)continue;if(N.has(L.triggerId))continue}P.push(e)}}P.length>0&&ya(C.G(),P)}; +KCx=function(C){C=C.adPlacementRenderer.config.adPlacementConfig;if(!C.prefetchModeConfig||!C.prefetchModeConfig.cacheFetchSmearingDurationMs)return 0;C=Number(C.prefetchModeConfig.cacheFetchSmearingDurationMs);return isNaN(C)||C<=0?0:Math.floor(Math.random()*C)}; +sE1=function(C){C=C.adPlacementRenderer.config.adPlacementConfig;if(C.prefetchModeConfig&&C.prefetchModeConfig.cacheFetchRefreshDurationMs&&(C=Number(C.prefetchModeConfig.cacheFetchRefreshDurationMs),!(isNaN(C)||C<=0)))return C}; +KS=function(C){C.j=null;C.JZ.clear();C.N.clear();C.K&&C.K.stop();C.X&&C.X.stop()}; +s3=function(C){g.O.call(this);this.N=C;this.Zj=!0;this.JZ=new Map;this.j=new Map;this.K=new Map}; +O4l=function(C,b){var h=[];if(b=C.j.get(b.layoutId)){b=g.z(b);for(var N=b.next();!N.done;N=b.next())(N=C.K.get(N.value.triggerId))&&h.push(N)}return h}; +O3=function(C){g.O.call(this);this.j=C;this.JZ=new Map}; +vRl=function(C,b){for(var h=[],N=g.z(C.JZ.values()),p=N.next();!p.done;p=N.next())p=p.value,p.trigger instanceof Sb&&p.trigger.slotId===b&&h.push(p);h.length>=1&&ya(C.j(),h)}; +DlV=function(C,b){var h={slotId:lG(b,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],u$:"surface",clientMetadata:new g0([])},N=Object,p=N.assign;b=TZ(b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",h.slotId);b={layoutId:b,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",KJ:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],lf:[],u$:"surface", +clientMetadata:new g0([]),hZ:VTl(!1,h.slotId,h.slotType,h.slotPhysicalPosition,h.u$,h.slotEntryTrigger,h.slotFulfillmentTriggers,h.slotExpirationTriggers,b,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return p.call(N,{},C,{SXX:!0,slot:h,layout:b})}; +yU6=function(C,b,h,N){var p=C.kind;N=N?!1:!C.hideCueRangeMarker;switch(p){case "AD_PLACEMENT_KIND_START":return N={TV:new qM(-0x8000000000000,-0x8000000000000),YR:N},h!=null&&(N.AN=new qM(-0x8000000000000,-0x8000000000000)),N;case "AD_PLACEMENT_KIND_END":return N={TV:new qM(0x7ffffffffffff,0x8000000000000),YR:N},h!=null&&(N.AN=new qM(Math.max(0,b-h),0x8000000000000)),N;case "AD_PLACEMENT_KIND_MILLISECONDS":p=C.adTimeOffset;p.offsetStartMilliseconds||ZK("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); +p.offsetEndMilliseconds||ZK("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");C=Number(p.offsetStartMilliseconds);p=Number(p.offsetEndMilliseconds);p===-1&&(p=b);if(Number.isNaN(C)||Number.isNaN(p)||C>p)return new I("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:C,offsetEndMs:p},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",p===b&&C-500<=p);N={TV:new qM(C,p),YR:N};if(h!=null){C=Math.max(0,C-h);if(C===p)return N;N.AN=new qM(C,p)}return N; +default:return new I("AdPlacementKind not supported in convertToRange.",{kind:p,adPlacementConfig:C})}}; +H4W=function(C){var b=C.startSecs*1E3;return new qM(b,b+C.YJ*1E3)}; +dl1=function(C){if(!C||!C.adPlacements&&!C.adSlots)return!1;for(var b=g.z(C.adPlacements||[]),h=b.next();!h.done;h=b.next())if(h=h.value)if(h=h.adPlacementRenderer,h!=null&&(h.config&&h.config.adPlacementConfig&&h.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;C=g.z(C.adSlots||[]);for(b=C.next();!b.done;b=C.next()){var N=h=void 0;if(((h=g.d(b.value,Ja))==null?void 0:(N=h.adSlotMetadata)==null?void 0:N.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; +vo=function(C){this.Zf=C;this.K=new Map;this.j=new Map;this.N=new Map}; +lG=function(C,b){if(Dr(C.Zf.get())){var h=C.K.get(b)||0;h++;C.K.set(b,h);return b+"_"+h}return g.M5(16)}; +TZ=function(C,b,h){if(Dr(C.Zf.get())){var N=C.j.get(b)||0;N++;C.j.set(b,N);return h+"_"+b+"_"+N}return g.M5(16)}; +CS=function(C,b){if(Dr(C.Zf.get())){var h=C.N.get(b)||0;h++;C.N.set(b,h);return b+"_"+h}return g.M5(16)}; +WCx=function(C){var b=[new lN(C.K$),new SE(C.OT),new IN(C.adPlacementConfig),new Ml(C.videoLengthSeconds),new sH(C.Tv)];C.instreamAdPlayerOverlayRenderer&&b.push(new gA(C.instreamAdPlayerOverlayRenderer));C.playerOverlayLayoutRenderer&&b.push(new p4(C.playerOverlayLayoutRenderer));C.hS&&b.push(new bN(C.hS));return b}; +ERS=function(C,b,h,N,p,P){C=h.inPlayerLayoutId?h.inPlayerLayoutId:TZ(P,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",C);var c,e,L=h.instreamAdPlayerOverlayRenderer?(c=h.instreamAdPlayerOverlayRenderer)==null?void 0:c.adLayoutLoggingData:(e=h.playerOverlayLayoutRenderer)==null?void 0:e.adLayoutLoggingData;c={layoutId:C,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",u$:b};return{layoutId:C,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",KJ:new Map,layoutExitNormalTriggers:[new fy(function(Z){return CS(P, +Z)},h.K$)], +layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],lf:[],u$:b,clientMetadata:N,hZ:p(c),adLayoutLoggingData:L}}; +dc=function(C,b){var h=this;this.K=C;this.Zf=b;this.j=function(N){return CS(h.K.get(),N)}}; +FwV=function(C,b,h,N,p,P){h=new g0([new Pn(h),new IN(N)]);b=TZ(C.K.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",b);N={layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",u$:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",KJ:new Map,layoutExitNormalTriggers:[new fy(function(c){return CS(C.K.get(),c)},p)], +layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],lf:[],u$:"core",clientMetadata:h,hZ:P(N),adLayoutLoggingData:void 0}}; +E2=function(C,b,h,N,p){var P=WCx(N);return ERS(b,h,N,new g0(P),p,C.K.get())}; +nRW=function(C,b,h,N,p){var P=WCx(N);P.push(new TN(N.wr));P.push(new BW(N.ZW));return ERS(b,h,N,new g0(P),p,C.K.get())}; +LS=function(C,b,h,N,p,P,c,e,L,Z){b=TZ(C.K.get(),h,b);var Y={layoutId:b,layoutType:h,u$:"core"},a=new Map;c&&a.set("impression",c);c=[new Rz(C.j,p,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];Z&&c.push(new mT(C.j,Z,["normal"]));return{layoutId:b,layoutType:h,KJ:a,layoutExitNormalTriggers:c,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],lf:[],u$:"core",clientMetadata:new g0([N,new IN(P),new lN(p)]),hZ:e(Y),adLayoutLoggingData:L}}; +Zr=function(C,b,h,N,p,P,c,e,L){b=TZ(C.K.get(),h,b);var Z={layoutId:b,layoutType:h,u$:"core"},Y=[new Rz(C.j,p,"SLOT_TYPE_PLAYER_BYTES","LAYOUT_TYPE_MEDIA")];L&&Y.push(new mT(C.j,L,["normal"]));return{layoutId:b,layoutType:h,KJ:new Map,layoutExitNormalTriggers:Y,layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],lf:[],u$:"core",clientMetadata:new g0([N,new IN(P),new lN(p)]),hZ:c(Z),adLayoutLoggingData:e}}; +h$=function(C,b,h){var N=[];N.push(new Qf(C.j,h));b&&N.push(b);return N}; +bO=function(C,b,h,N,p,P,c){var e={layoutId:b,layoutType:h,u$:"core"};return{layoutId:b,layoutType:h,KJ:new Map,layoutExitNormalTriggers:c,layoutExitSkipTriggers:[new Hz(C.j,b)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],lf:[],u$:"core",clientMetadata:new g0([new WW(N),new IN(p)]),hZ:P(e),adLayoutLoggingData:N.adLayoutLoggingData}}; +vA=function(C,b,h,N,p,P,c,e){var L={layoutId:b,layoutType:P,u$:"core"};return{layoutId:b,layoutType:P,KJ:new Map,layoutExitNormalTriggers:[new fy(C.j,h)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],lf:[],u$:"core",clientMetadata:new g0([new IN(N)].concat(g.M(c))),hZ:p(L),adLayoutLoggingData:e}}; +gc=function(C,b,h,N){if(C.Zf.get().aD(b.kind==="AD_PLACEMENT_KIND_START"))if(h===void 0)ZK("Expected SSAP layout ID in renderer",void 0,void 0,{caller:N});else return h}; +I0V=function(C,b,h,N,p,P,c,e,L,Z,Y,a,l){C=NG(C,b,h,p,P,c,e,L,a,gc(C,h,N.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),l);b=C.hX;h=new oE(C.Lz);N=C.layoutExitSkipTriggers;Z>0&&(b.push(h),b.push(new C4(Z)),N=[]);b.push(new wi(Y));return{Cv:{layoutId:C.layoutId,layoutType:C.layoutType,KJ:C.KJ,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],lf:[],u$:C.u$,clientMetadata:new g0(b),hZ:C.hZ,adLayoutLoggingData:C.adLayoutLoggingData}, +EV:N,aS:C.layoutExitMuteTriggers,lS:C.layoutExitUserInputSubmittedTriggers,pE:C.lf,uF:C.uF}}; +b4W=function(C,b,h,N,p,P,c,e,L,Z){b=NG(C,b,h,N,P,new Map,c,function(Y){return e(Y,L)},void 0,gc(C,h,p.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForVodSurvey")); +C=new tv(C.j,b.Lz);h=new oE(b.Lz);Z=new wi(Z);return{Cv:{layoutId:b.layoutId,layoutType:b.layoutType,KJ:b.KJ,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],lf:[],u$:b.u$,clientMetadata:new g0([].concat(g.M(b.hX),[h,Z])),hZ:b.hZ,adLayoutLoggingData:b.adLayoutLoggingData},EV:b.layoutExitSkipTriggers,aS:b.layoutExitMuteTriggers,lS:[].concat(g.M(b.layoutExitUserInputSubmittedTriggers),[C]),pE:b.lf,uF:b.uF}}; +NG=function(C,b,h,N,p,P,c,e,L,Z,Y){b=Z!=null?Z:TZ(C.K.get(),"LAYOUT_TYPE_MEDIA_BREAK",b);Z={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",u$:"adapter"};e=e(b);var a=pk(e.clientMetadata,"metadata_type_fulfilled_layout");a||ZK("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var l=a?a.layoutId:"";h=[new IN(h),new OH(N),new dA(p)];a&&h.push(new FL(a.layoutType));Y&&h.push(new rA(Y));return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", +KJ:P,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new Ow(C.j,l)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],lf:[],u$:"adapter",hX:h,hZ:c(Z),adLayoutLoggingData:L,uF:e,Lz:l}}; +a0l=function(C,b,h,N,p,P,c,e,L,Z,Y){C=tEc(C,b,"core",h,N,p,P,c,e,L,Z,void 0,Y);return{layoutId:C.layoutId,layoutType:C.layoutType,KJ:C.KJ,layoutExitNormalTriggers:C.layoutExitNormalTriggers,layoutExitSkipTriggers:C.layoutExitSkipTriggers,layoutExitMuteTriggers:C.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:C.layoutExitUserInputSubmittedTriggers,lf:C.lf,u$:C.u$,clientMetadata:new g0(C.dR),hZ:C.hZ,adLayoutLoggingData:C.adLayoutLoggingData}}; +Z4c=function(C,b,h,N,p,P,c,e,L,Z,Y,a,l){b=tEc(C,b,"adapter",h,N,p,P,c,e,L,Y,a,l);N=b.layoutExitSkipTriggers;p=b.dR;h.adPodSkipTarget&&h.adPodSkipTarget>0&&(p.push(Z),p.push(new C4(h.adPodSkipTarget)),N=[]);p.push(new wi(e.adPodIndex));h.isCritical&&(N=[new mT(C.j,b.layoutId,["error"])].concat(g.M(N)));return{Cv:{layoutId:b.layoutId,layoutType:b.layoutType,KJ:b.KJ,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],lf:[],u$:b.u$,clientMetadata:new g0(p), +hZ:b.hZ,adLayoutLoggingData:b.adLayoutLoggingData},EV:N,aS:b.layoutExitMuteTriggers,lS:b.layoutExitUserInputSubmittedTriggers,pE:b.lf}}; +tEc=function(C,b,h,N,p,P,c,e,L,Z,Y,a,l){var F={layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",u$:h};p=[new IN(p),new xJ(L),new hD(N.externalVideoId),new Nl(e),new dA({impressionCommands:N.impressionCommands,abandonCommands:N.onAbandonCommands,completeCommands:N.completeCommands,progressCommands:N.adVideoProgressCommands}),new ql(P),new $R({current:null}),new Ml(c)];(P=N.playerOverlay.instreamAdPlayerOverlayRenderer)&&p.push(new gA(P));(c=N.playerOverlay.playerOverlayLayoutRenderer)&&p.push(new p4(c)); +a&&p.push(new mC(a));(a=N.playerUnderlay)&&p.push(new Pn(a));e=lG(C.K.get(),"SLOT_TYPE_IN_PLAYER");a=(a=P?P.elementId:c==null?void 0:c.layoutId)?a:TZ(C.K.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",e);p.push(new oE(a));p.push(new Gl(e));p.push(new rA(L.adPodIndex));N.adNextParams&&p.push(new D0(N.adNextParams));N.shrunkenPlayerBytesConfig&&p.push(new kR(N.shrunkenPlayerBytesConfig));N.clickthroughEndpoint&&p.push(new di(N.clickthroughEndpoint));N.legacyInfoCardVastExtension&&p.push(new vn(N.legacyInfoCardVastExtension)); +N.sodarExtensionData&&p.push(new f4(N.sodarExtensionData));Y&&p.push(new K4(Y));p.push(new n4(My(N.pings)));L=qy(N.pings);if(l){a:{l=g.z(l);for(Y=l.next();!Y.done;Y=l.next())if(Y=Y.value,Y.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(P=g.d(Y.fulfillmentContent.fulfilledLayout,VM))&&(P=g.d(P.renderingContent,zL))&&P.associatedPlayerBytesLayoutId===b){l=Y;break a}l=void 0}l&&p.push(new jE(l))}return{layoutId:b,layoutType:"LAYOUT_TYPE_MEDIA",KJ:L,layoutExitNormalTriggers:[new Uw(C.j,b)],layoutExitSkipTriggers:N.skipOffsetMilliseconds? +[new Ow(C.j,a)]:[],layoutExitMuteTriggers:[new Ow(C.j,a)],layoutExitUserInputSubmittedTriggers:[],lf:[],u$:h,dR:p,hZ:Z(F),adLayoutLoggingData:N.adLayoutLoggingData}}; +gJx=function(C,b,h,N,p,P,c,e,L){N.every(function(Y){return bR(Y,[],["LAYOUT_TYPE_MEDIA"])})||ZK("Unexpect subLayout type for DAI composite layout"); +b=TZ(C.K.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",b);var Z={layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",u$:"core"};return{layoutId:b,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",KJ:new Map,layoutExitNormalTriggers:[new Av(C.j)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],lf:[],u$:"core",clientMetadata:new g0([new AD(h),new yW(e),new Hn(N),new IN(p),new RE(P),new iN({}),new Tl(L)]),hZ:c(Z)}}; +wN_=function(C){return C!=null}; +Wo=function(C,b,h){var N=this;this.K=C;this.N=b;this.Zf=h;this.j=function(p){return CS(N.K.get(),p)}}; +zbo=function(C,b,h,N,p,P,c){if(!h.prefetchModeConfig)return new I("AdPlacementConfig for Live Prefetch is missing prefetch_config");h=h.prefetchModeConfig;N*=1E3;var e=[];if(!h.breakLengthMs)return new I("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var L=g.z(h.breakLengthMs),Z=L.next();!Z.done;Z=L.next())if(Z=Z.value,Number(Z)>0){var Y=N+Number(h.startTimeOffsetMs),a=Y+Number(h.cacheFetchSmearingDurationMs);Z={TV:new qM(a,a+Number(Z)),YR:!1,AN:new qM(Math.floor(Y+Math.random()* +Number(h.cacheFetchSmearingDurationMs)),a),cueProcessedMs:N?N:Y};Y=[];Y.push(new wA({}));a=[];a.push(new Ky(C.j));a.push(new drU(C.j));c&&Y.push(new iN({}));e.push(uE(C,b,p,Z,P,Y,a))}return e}; +uE=function(C,b,h,N,p,P,c){P=P===void 0?[]:P;c=c===void 0?[]:c;var e=lG(C.K.get(),"SLOT_TYPE_AD_BREAK_REQUEST"),L=[];c=g.z(c);for(var Z=c.next();!Z.done;Z=c.next())L.push(Z.value);N.AN&&N.AN.start!==N.TV.start&&L.push(new Jv(C.j,h,new qM(N.AN.start,N.TV.start),!1));L.push(new Jv(C.j,h,new qM(N.TV.start,N.TV.end),N.YR));N={getAdBreakUrl:b.getAdBreakUrl,J$:N.TV.start,HY:N.TV.end,cueProcessedMs:N.cueProcessedMs};b=new Wz(C.j,e);P=[new UH(N)].concat(g.M(P));return{slotId:e,slotType:"SLOT_TYPE_AD_BREAK_REQUEST", +slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:L,slotExpirationTriggers:[new Xi(C.j,h),new DV(C.j,e),new dq(C.j,e)],u$:"core",clientMetadata:new g0(P),adSlotLoggingData:p}}; +BAV=function(C,b,h){var N=[];h=g.z(h);for(var p=h.next();!p.done;p=h.next())N.push(TAx(C,b,p.value));return N}; +TAx=function(C,b,h){return h.triggeringSlotId!=null&&h.triggeringSlotId===C?h.clone(b):h}; +vrS=function(C,b,h,N,p){return Iyl(C,b,h,N,p)}; +xHU=function(C,b,h,N){var p=lG(C.K.get(),"SLOT_TYPE_IN_PLAYER");return Iyl(C,p,b,h,N)}; +Iyl=function(C,b,h,N,p){var P=new qZ(C.j,h),c=[new vz(C.j,b)];C=[new DV(C.j,b),new Xi(C.j,N)];return{slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:P,slotFulfillmentTriggers:c,slotExpirationTriggers:C,u$:"core",clientMetadata:new g0([new QW(p({slotId:b,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,u$:"core",slotEntryTrigger:P,slotFulfillmentTriggers:c,slotExpirationTriggers:C},h))]),adSlotLoggingData:void 0}}; +YHW=function(C,b,h,N,p,P){var c=lG(C.K.get(),"SLOT_TYPE_PLAYER_BYTES"),e=lG(C.K.get(),"SLOT_TYPE_IN_PLAYER"),L=TZ(C.K.get(),"LAYOUT_TYPE_SURVEY",e);N=E3(C,b,h,N);var Z=[new vz(C.j,c)];h=[new DV(C.j,c),new Xi(C.j,h),new Hz(C.j,L)];if(N instanceof I)return N;e=P({slotId:c,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,u$:"core",slotEntryTrigger:N,slotFulfillmentTriggers:Z,slotExpirationTriggers:h},{slotId:e,layoutId:L});P=e.JZO;e=e.pEf;return[{slotId:c,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, +slotEntryTrigger:Po(C,b,c,N),slotFulfillmentTriggers:jx(C,b,c,Z),slotExpirationTriggers:h,u$:"core",clientMetadata:new g0([new QW(P),new Bn(co(b)),new xR({OY:C.OY(b)})]),adSlotLoggingData:p},e]}; +co=function(C){return C.kind==="AD_PLACEMENT_KIND_START"}; +l0K=function(C,b,h,N,p){p=p?p:lG(C.K.get(),"SLOT_TYPE_IN_PLAYER");h=new qZ(C.j,h);var P=[new vz(C.j,p)];C=[new Xi(C.j,b),new DV(C.j,p)];return{slotId:p,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:h,slotFulfillmentTriggers:P,slotExpirationTriggers:C,u$:"core",clientMetadata:new g0([new QW(N({slotId:p,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,u$:"core",slotEntryTrigger:h,slotFulfillmentTriggers:P,slotExpirationTriggers:C}))])}}; +oJV=function(C,b,h,N){var p=lG(C.K.get(),"SLOT_TYPE_PLAYER_UNDERLAY");h=new qZ(C.j,h);var P=[new vz(C.j,p)];C=[new Xi(C.j,b),new DV(C.j,p)];return{slotId:p,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:h,slotFulfillmentTriggers:P,slotExpirationTriggers:C,u$:"core",clientMetadata:new g0([new QW(N({slotId:p,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,u$:"core",slotEntryTrigger:h,slotFulfillmentTriggers:P,slotExpirationTriggers:C}))])}}; +jNH=function(C,b,h,N,p,P,c){var e=lG(C.K.get(),"SLOT_TYPE_IN_PLAYER"),L=TZ(C.K.get(),"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",e);N=xlU(C,N,P,c,L);if(N instanceof I)return N;c=[new vz(C.j,e)];p=[new Xi(C.j,P),new vz(C.j,p),new ny(C.j,p)];h=Lk(h,{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,u$:"core",slotEntryTrigger:N,slotFulfillmentTriggers:c,slotExpirationTriggers:p});C=C.N.get();P={layoutId:L,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",u$:"core"};b={layoutId:L,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY", +KJ:new Map,layoutExitNormalTriggers:[new xrW(C.j,L,b.durationMs)],layoutExitSkipTriggers:[new Cy1(C.j,L,b.durationMs)],lf:[new wsl(C.j,L)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],u$:"core",clientMetadata:new g0([new Dy(b)]),hZ:h(P)};return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,u$:"core",slotEntryTrigger:N,slotFulfillmentTriggers:c,slotExpirationTriggers:p,clientMetadata:new g0([new QW(b)])}}; +Ti_=function(C,b,h,N,p,P){b=E3(C,b,h,N);if(b instanceof I)return b;var c=b instanceof Jv?new T8K(C.j,h,b.j):null;N=lG(C.K.get(),"SLOT_TYPE_IN_PLAYER");var e=[new vz(C.j,N)];C=[new Xi(C.j,h),new DV(C.j,N)];P=P({slotId:N,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,u$:"core",slotEntryTrigger:b,slotFulfillmentTriggers:e,slotExpirationTriggers:C},c);return P instanceof No?new I(P):{slotId:N,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:e,slotExpirationTriggers:C, +u$:"core",clientMetadata:new g0([new QW(P)]),adSlotLoggingData:p}}; +nJl=function(C,b,h,N){var p=lG(C.K.get(),"SLOT_TYPE_IN_PLAYER"),P=new z9(C.j,b),c=[new Ew(C.j,p)];C=[new Xi(C.j,b),new DV(C.j,p)];return{slotId:p,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:P,slotFulfillmentTriggers:c,slotExpirationTriggers:C,u$:"core",clientMetadata:new g0([new QW(N({slotId:p,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,u$:"core",slotEntryTrigger:P,slotFulfillmentTriggers:c,slotExpirationTriggers:C}))]),adSlotLoggingData:h}}; +tcl=function(C,b,h,N){var p=lG(C.K.get(),"SLOT_TYPE_IN_PLAYER");h=new qZ(C.j,h);var P=[new vz(C.j,p)],c=[new DV(C.j,p),new Xi(C.j,b)];P={slotId:p,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,u$:"core",slotEntryTrigger:h,slotFulfillmentTriggers:P,slotExpirationTriggers:c};return{slotId:p,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:h,slotFulfillmentTriggers:[new vz(C.j,p)],slotExpirationTriggers:[new Xi(C.j,b),new DV(C.j,p)],u$:"core",clientMetadata:new g0([new QW(N(P))])}}; +WWo=function(C,b,h,N,p){var P=lG(C.K.get(),"SLOT_TYPE_IN_PLAYER");h=new MZ(C.j,N,h);N=[new vz(C.j,P)];C=[new Xi(C.j,b)];return{slotId:P,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:h,slotFulfillmentTriggers:N,slotExpirationTriggers:C,u$:"core",clientMetadata:new g0([new QW(p({slotId:P,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,u$:"core",slotEntryTrigger:h,slotFulfillmentTriggers:N,slotExpirationTriggers:C}))])}}; +KWV=function(C,b,h,N,p,P){var c=lG(C.K.get(),b);return nS(C,c,b,new qZ(C.j,N),[new Xi(C.j,h),new DV(C.j,c),new mT(C.j,N,["error"])],p,P)}; +XNl=function(C,b,h,N,p,P,c){var e=lG(C.K.get(),b);return nS(C,e,b,new mT(C.j,p,["normal"]),[new Xi(C.j,h),new DV(C.j,e),new mT(C.j,N,["error"])],P,c)}; +u9V=function(C,b,h,N,p){var P=lG(C.K.get(),b);return nS(C,P,b,new z9(C.j,h),[new Xi(C.j,h),new DV(C.j,P)],N,p)}; +DHW=function(C,b,h,N,p){h=h?"SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM":"SLOT_TYPE_PLAYBACK_TRACKING";var P=lG(C.K.get(),h);b=new z9(C.j,b);var c=[new vz(C.j,P)];C=[new DV(C.j,P)];return{slotId:P,slotType:h,slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:c,slotExpirationTriggers:C,u$:"core",clientMetadata:new g0([new QW(p({slotId:P,slotType:h,slotPhysicalPosition:1,u$:"core",slotEntryTrigger:b,slotFulfillmentTriggers:c,slotExpirationTriggers:C}))]),adSlotLoggingData:N}}; +Col=function(C,b,h,N){var p=lG(C.K.get(),"SLOT_TYPE_PLAYER_BYTES"),P=new ij(C.j),c=[new Ew(C.j,p)];C=[new Xi(C.j,b)];return{slotId:p,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:P,slotFulfillmentTriggers:c,slotExpirationTriggers:C,u$:"core",clientMetadata:new g0([new QW(N({slotId:p,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,u$:"core",slotEntryTrigger:P,slotFulfillmentTriggers:c,slotExpirationTriggers:C})),new iN({})]),adSlotLoggingData:h}}; +cDl=function(C,b){return SHW(C.Zf.get())?new mT(C.j,b,["normal","error","skipped"]):new mT(C.j,b,["normal"])}; +Lw1=function(C,b,h,N,p){b=cDl(C,b);C=pS(C,b,h);p=p({slotId:C.slotId,slotType:C.slotType,slotPhysicalPosition:C.slotPhysicalPosition,slotEntryTrigger:C.slotEntryTrigger,slotFulfillmentTriggers:C.slotFulfillmentTriggers,slotExpirationTriggers:C.slotExpirationTriggers,u$:C.u$});return p instanceof I?p:{ON:Object.assign({},C,{clientMetadata:new g0([new QW(p.layout)]),adSlotLoggingData:N}),yP:p.yP}}; +ZYl=function(C,b,h,N,p,P,c){h=kl6(C,b,h,N);if(h instanceof I)return h;c=c({slotId:h.slotId,slotType:h.slotType,slotPhysicalPosition:h.slotPhysicalPosition,slotEntryTrigger:h.slotEntryTrigger,slotFulfillmentTriggers:h.slotFulfillmentTriggers,slotExpirationTriggers:h.slotExpirationTriggers,u$:h.u$});if(c instanceof I)return c;N=[new Bn(co(b)),new QW(c.layout),new xR({OY:C.OY(b)})];P&&N.push(new Wn({}));return{ON:{slotId:h.slotId,slotType:h.slotType,slotPhysicalPosition:h.slotPhysicalPosition,slotEntryTrigger:Po(C, +b,h.slotId,h.slotEntryTrigger),slotFulfillmentTriggers:jx(C,b,h.slotId,h.slotFulfillmentTriggers),slotExpirationTriggers:h.slotExpirationTriggers,u$:h.u$,clientMetadata:new g0(N),adSlotLoggingData:p},yP:c.yP}}; +Po=function(C,b,h,N){return C.Zf.get().aD(co(b))?new Sb(C.j,h):N}; +jx=function(C,b,h,N){return C.Zf.get().aD(co(b))?[new Ew(C.j,h)]:N}; +pS=function(C,b,h){var N=lG(C.K.get(),"SLOT_TYPE_PLAYER_BYTES"),p=[new vz(C.j,N)];C=[new DV(C.j,N),new Xi(C.j,h)];return{slotId:N,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:p,slotExpirationTriggers:C,u$:"core"}}; +kl6=function(C,b,h,N){b=E3(C,b,h,N);return b instanceof I?b:pS(C,b,h)}; +Wwx=function(C,b,h,N,p,P){var c=lG(C.K.get(),"SLOT_TYPE_FORECASTING");b=E3(C,b,h,N);if(b instanceof I)return b;N=[new vz(C.j,c)];C=[new DV(C.j,c),new Xi(C.j,h)];return{slotId:c,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:b,slotFulfillmentTriggers:N,slotExpirationTriggers:C,u$:"core",clientMetadata:new g0([new QW(P({slotId:c,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,u$:"core",slotEntryTrigger:b,slotFulfillmentTriggers:N,slotExpirationTriggers:C}))]),adSlotLoggingData:p}}; +wn_=function(C,b,h,N,p){var P=!b.hideCueRangeMarker;switch(b.kind){case "AD_PLACEMENT_KIND_START":return new z9(C.j,h);case "AD_PLACEMENT_KIND_MILLISECONDS":return C=yU6(b,N),C instanceof I?C:p(C.TV,P);case "AD_PLACEMENT_KIND_END":return new Vf(C.j,h,P);default:return new I("Cannot construct entry trigger",{kind:b.kind})}}; +xlU=function(C,b,h,N,p){return wn_(C,b,h,N,function(P,c){return new tdH(C.j,h,P,c,p)})}; +E3=function(C,b,h,N){return wn_(C,b,h,N,function(p,P){return new Jv(C.j,h,p,P)})}; +nS=function(C,b,h,N,p,P,c){C=[new Ew(C.j,b)];return{slotId:b,slotType:h,slotPhysicalPosition:1,slotEntryTrigger:N,slotFulfillmentTriggers:C,slotExpirationTriggers:p,u$:"core",clientMetadata:new g0([new QW(c({slotId:b,slotType:h,slotPhysicalPosition:1,u$:"core",slotEntryTrigger:N,slotFulfillmentTriggers:C,slotExpirationTriggers:p}))]),adSlotLoggingData:P}}; +t$=function(C,b){g.O.call(this);this.Zf=C;this.j=b;this.eventCount=0}; +TK=function(C,b,h,N){t$.call(this,C,b);this.Zf=C;this.fO=h;this.context=N}; +Bo=function(){this.j=new Map}; +wc=function(C,b){var h=this;this.currentState="wait";this.onSuccess=[];this.onFailure=[];this.currentState=C;this.result=b.result;this.error=b.error;b.promise&&b.promise.then(function(N){Ia(h,N)},function(N){xD(h,N)})}; +hd=function(C){if(Cx(C)){if(C instanceof wc)return C;if(bw(C))return new wc("wait",{promise:C})}return new wc("done",{result:C})}; +NS=function(C){return new wc("fail",{error:C})}; +gV=function(C){try{return hd(C())}catch(b){return NS(b)}}; +Px=function(C,b){var h=new wc("wait",{});C.onSuccess.push(function(N){try{var p=b(N);Ia(h,p)}catch(P){xD(h,P)}}); +C.onFailure.push(function(N){xD(h,N)}); +px(C);return h}; +jO=function(C,b){var h=new wc("wait",{});C.onSuccess.push(function(N){Ia(h,N)}); +C.onFailure.push(function(N){try{var p=b(N);Ia(h,p)}catch(P){xD(h,P)}}); +px(C);return h}; +Ia=function(C,b){if(Cx(b)){if(bw(b)){b.then(function(h){Ia(C,h)},function(h){xD(C,h)}); +return}if(b instanceof wc){Px(b,function(h){Ia(C,h)}); +jO(b,function(h){xD(C,h)}); +return}}C.currentState="done";C.result=b;px(C)}; +xD=function(C,b){C.currentState="fail";C.error=b;px(C)}; +px=function(C){if(C.currentState==="done"){var b=C.onSuccess;C.onSuccess=[];C.onFailure=[];b=g.z(b);for(var h=b.next();!h.done;h=b.next())h=h.value,h(C.result)}else if(C.currentState==="fail")for(b=C.onFailure,C.onSuccess=[],C.onFailure=[],b=g.z(b),h=b.next();!h.done;h=b.next())h=h.value,h(C.error)}; +bkl=function(C){return function(){return CRl(C.apply(this,g.ro.apply(0,arguments)))}}; +CRl=function(C){return gV(function(){return cx(C,C.next())})}; +cx=function(C,b){return b.done?hd(b.value):jO(Px(b.value.xO,function(h){return cx(C,C.next(h))}),function(h){return cx(C,C.throw(h))})}; +eO=function(C){var b=C.hours||0;var h=C.minutes||0,N=C.seconds||0;b=N+h*60+b*3600+(C.days||0)*86400+(C.weeks||0)*604800+(C.months||0)*2629800+(C.years||0)*31557600;b<=0?b={hours:0,minutes:0,seconds:0}:(C=b,b=Math.floor(C/3600),C%=3600,h=Math.floor(C/60),N=Math.floor(C%60),b={hours:b,minutes:h,seconds:N});var p=b.hours===void 0?0:b.hours;h=b.minutes===void 0?0:b.minutes;C=b.seconds===void 0?0:b.seconds;N=p>0;b=[];if(N){p=(new Intl.NumberFormat("en-u-nu-latn")).format(p);var P=["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(" "); +p="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(kl)?p.replace(",","\u00a0"):P.includes(kl)?p.replace(",","\u202f"):c.includes(kl)?p.replace(",","."):p;b.push(p)}N=N===void 0?!1:N;h=(["af","be","lt"].includes(kl)||N)&&h<10?h5H().format(h):(new Intl.NumberFormat("en-u-nu-latn")).format(h);b.push(h);h=h5H().format(C);b.push(h);h=":";"da fi id si sr sr-Latn".split(" ").includes(kl)&&(h=".");return b.join(h)}; +h5H=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; +N0S=function(C,b){var h,N;C=((h=C.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(N=h.videoAuthorizationToken)==null?void 0:N.credentialTransferTokens)||[];for(h=0;hb;C=h}else C=!1;return C}; +$oW=function(C){C=C.split(bc[2]);mu.Zm(C,1);mu.xQ(C,77);mu.F7(C,10);mu.F7(C,48);mu.Zm(C,3);return C.join(bc[2])}; +g.fx=function(C,b){return C.nO+"timedtext_video?ref=player&v="+b.videoId}; +g.z5_=function(C){var b=this;this.videoData=C;C={};this.j=(C.c1a=function(){var h=[];if(g.MS.isInitialized()){var N="";b.videoData&&b.videoData.H4&&(N=b.videoData.H4+("&r1b="+b.videoData.clientPlaybackNonce));var p={};N=(p.atr_challenge=N,p);EG("bg_v",void 0,"player_att");(N=ScW(N))?(EG("bg_s",void 0,"player_att"),h.push("r1a="+N)):(EG("bg_e",void 0,"player_att"),h.push("r1c=2"))}else EG("bg_e",void 0,"player_att"),window.trayride||window.botguard?h.push("r1c=1"):h.push("r1c=4");h.push("r1d="+g.MS.getState()); +return h.join("&")},C.c6a=function(h){return"r6a="+(Number(h.c)^ec())},C.c6b=function(h){return"r6b="+(Number(h.c)^Number(g.BC("CATSTAT",0)))},C); +this.videoData&&this.videoData.H4?this.oI=gJ(this.videoData.H4):this.oI={}}; +g.Hkl=function(C){if(C.videoData&&C.videoData.H4){for(var b=[C.videoData.H4],h=g.z(Object.keys(C.j)),N=h.next();!N.done;N=h.next())N=N.value,C.oI[N]&&C.j[N]&&(N=C.j[N](C.oI))&&b.push(N);return b.join("&")}return null}; +g.Ad=function(C,b){GZc(C,{Nsi:g.Zc(b.experiments,"bg_vm_reinit_threshold"),cspNonce:b.cspNonce})}; +VPV=function(){var C=XMLHttpRequest.prototype.fetch;return!!C&&C.length===3}; +yp=function(C){C=C===void 0?2592E3:C;if(C>0&&!(IbW()>(0,g.Ai)()-C*1E3))return 0;C=g.QJ("yt-player-quality");if(typeof C==="string"){if(C=g.Un[C],C>0)return C}else if(C instanceof Object)return C.quality;return 0}; +rV=function(){var C=g.QJ("yt-player-proxima-pref");return C==null?null:C}; +MPl=function(){var C=g.QJ("yt-player-quality");if(C instanceof Object&&C.quality&&C.previousQuality){if(C.quality>C.previousQuality)return 1;if(C.quality0&&b[0]?C.getAutoplayPolicy(b[0]):C.getAutoplayPolicy("mediaelement");if(rc_[h])return rc_[h]}}catch(N){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; +X$=function(C){return C.fK||C.LZ||C.mutedAutoplay}; +ik1=function(C,b){return X$(C)?b!==1&&b!==2&&b!==0?"AUTOPLAY_STATUS_UNAVAILABLE":C.x8?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; +Jc6=function(C,b,h){var N=b.Y();C.thirdParty||(C.thirdParty={});N.ancestorOrigins&&(C.thirdParty.embeddedPlayerContext=Object.assign({},C.thirdParty.embeddedPlayerContext,{ancestorOrigins:N.ancestorOrigins}));N.D("embeds_enable_autoplay_and_visibility_signals")&&(N.Zu!=null&&(C.thirdParty.embeddedPlayerContext=Object.assign({},C.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(N.Zu)})),N.nI&&(C.thirdParty.embeddedPlayerContext=Object.assign({},C.thirdParty.embeddedPlayerContext,{visibilityFractionSource:N.nI})), +C.thirdParty.embeddedPlayerContext=Object.assign({},C.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:UK(),autoplayIntended:X$(b),autoplayStatus:ik1(b,h)}))}; +QHK=function(C,b){pY(C,2,b.y3,Kx,3);pY(C,3,b.pR,uG6,3);nD(C,4,b.onesieUstreamerConfig);nD(C,9,b.cK);pY(C,10,b.d1,sK,3);pY(C,15,b.reloadPlaybackParams,R5H,3)}; +Xk6=function(C,b){pY(C,1,b.formatId,OK,3);WN(C,2,b.startTimeMs);WN(C,3,b.durationMs);WN(C,4,b.vT);WN(C,5,b.KX);pY(C,9,b.sRp,UoW,3);pY(C,11,b.eMO,vx,1);pY(C,12,b.Lm,vx,1)}; +K9o=function(C,b){tU(C,1,b.videoId);WN(C,2,b.lmt)}; +UoW=function(C,b){if(b.Jw)for(var h=0;h>31));WN(C,16,b.OOO);WN(C,17,b.detailedNetworkType);WN(C,18,b.mP);WN(C,19,b.Y0);WN(C,21,b.yT);WN(C,23,b.Ho);WN(C,28,b.Iz);WN(C,29,b.hrh);WN(C,34,b.visibility);h=b.playbackRate;if(h!==void 0){var N=new ArrayBuffer(4);(new Float32Array(N))[0]=h;h=(new Uint32Array(N))[0];if(h!==void 0)for(d1(C,285),Df(C,4),N=0;N<4;)C.view.setUint8(C.pos,h&255),h>>=8,C.pos+=1,N+=1}WN(C,36,b.fb); +pY(C,38,b.mediaCapabilities,vUx,3);WN(C,39,b.cL2);WN(C,40,b.Cu);WN(C,44,b.playerState);ET(C,46,b.Qj);WN(C,48,b.E0);WN(C,50,b.vC);WN(C,51,b.iX);WN(C,54,b.kC);ET(C,56,b.hWi);WN(C,57,b.U7);ET(C,58,b.nk);WN(C,59,b.Ml);WN(C,60,b.lq);ET(C,61,b.isPrefetch);WN(C,62,b.qq);nD(C,63,b.sabrLicenseConstraint);WN(C,64,b.IJp);WN(C,66,b.A4$);WN(C,67,b.b6E);WN(C,68,b.sbO);tU(C,69,b.audioTrackId);ET(C,71,b.Ke);pY(C,72,b.Ivo,OkV,1);WN(C,74,b.Wp);WN(C,75,b.s6)}; +vUx=function(C,b){if(b.videoFormatCapabilities)for(var h=0;h>31));tU(C,2,b.message)}; +Icl=function(C,b){WN(C,1,b.clientState);pY(C,2,b.ugD,T0V,1)}; +tPV=function(C,b){nD(C,1,b.lb6);pY(C,2,b.pF4,B0H,3);pY(C,3,b.coldStartInfo,Icl,3)}; +nUl=function(C,b){WN(C,1,b.type);nD(C,2,b.value)}; +EUS=function(C,b){tU(C,1,b.hl);tU(C,12,b.deviceMake);tU(C,13,b.deviceModel);WN(C,16,b.clientName);tU(C,17,b.clientVersion);tU(C,18,b.osName);tU(C,19,b.osVersion)}; +xoS=function(C,b){tU(C,1,b.name);tU(C,2,b.value)}; +wkW=function(C,b){tU(C,1,b.url);if(b.JO)for(var h=0;h1&&(this.G=C[1]==="2")}; +td=function(C,b,h,N,p){this.K=C;this.j=b;this.N=h;this.reason=N;this.OX=p===void 0?0:p}; +g.T0=function(C,b,h,N){return new td(g.Un[C]||0,g.Un[b]||0,h,N)}; +Ic=function(C){if(Bx&&C.OX)return!1;var b=g.Un.auto;return C.K===b&&C.j===b}; +wV=function(C){return xl[C.j||C.K]||"auto"}; +XZc=function(C,b){b=g.Un[b];return C.K<=b&&(!C.j||C.j>=b)}; +C_=function(C){return"["+C.K+"-"+C.j+", override: "+(C.N+", reason: "+C.reason+"]")}; +bk=function(C,b,h){this.videoInfos=C;this.j=b;this.audioTracks=[];if(this.j){C=new Set;h==null||h({ainfolen:this.j.length});b=g.z(this.j);for(var N=b.next();!N.done;N=b.next())if(N=N.value,!N.z$||C.has(N.z$.id)){var p=void 0,P=void 0,c=void 0;(c=h)==null||c({atkerr:!!N.z$,itag:N.itag,xtag:N.j,lang:((p=N.z$)==null?void 0:p.name)||"",langid:((P=N.z$)==null?void 0:P.id)||""})}else p=new g.nx(N.id,N.z$),C.add(N.z$.id),this.audioTracks.push(p);h==null||h({atklen:this.audioTracks.length})}}; +h3=function(){g.O.apply(this,arguments);this.j=null}; +vWx=function(C,b,h,N,p,P,c){if(C.j)return C.j;var e={},L=new Set,Z={};if(N9(N)){for(var Y in N.j)N.j.hasOwnProperty(Y)&&(C=N.j[Y],Z[C.info.PE]=[C.info]);return Z}Y=KUl(b,N,e);P&&p({aftsrt:gE(Y)});for(var a={},l=g.z(Object.keys(Y)),F=l.next();!F.done;F=l.next()){F=F.value;for(var G=g.z(Y[F]),V=G.next();!V.done;V=G.next()){V=V.value;var q=V.itag,f=void 0,y=F+"_"+(((f=V.video)==null?void 0:f.fps)||0);a.hasOwnProperty(y)?a[y]===!0?Z[F].push(V):e[q]=a[y]:(f=p_(b,V,h,N.isLive,L),f!==!0?(c.add(F),e[q]=f, +f==="disablevp9hfr"&&(a[y]="disablevp9hfr")):(Z[F]=Z[F]||[],Z[F].push(V),a[y]=!0))}}P&&p({bfflt:gE(Z)});for(var u in Z)Z.hasOwnProperty(u)&&(N=u,Z[N]&&Z[N][0].CK()&&(Z[N]=Z[N],Z[N]=skl(b,Z[N],e),Z[N]=O8U(Z[N],e)));P&&Object.keys(e).length>0&&(b.IV?p({rjr:VX(e)}):p(e));b=g.z(L.values());for(N=b.next();!N.done;N=b.next())(N=h.K.get(N.value))&&--N.Yx;P&&p({aftflt:gE(Z)});C.j=g.$v(Z,function(K){return!!K.length}); +return C.j}; +dyW=function(C,b,h,N,p,P,c,e){e=e===void 0?!1:e;if(b.aL&&c&&c.length>1&&!(b.Ml>0||b.L)){for(var L=b.K||!!p,Z=L&&b.AZ?P:void 0,Y=KUl(b,N),a=[],l=[],F={},G=0;G0&&l&&p&&(Y=[c,h],q=p.concat(l).filter(function(f){return f})); +if(q.length&&!b.nk){ce(q,Y);if(L){L=[];b=g.z(q);for(N=b.next();!N.done;N=b.next())L.push(N.value.itag);P({hbdfmt:L.join(".")})}return Rf(new bk(q,C,Z))}q=wZl(b);q=g.B$(q,e);if(!q){if(a[c])return P=a[c],ce(P),Rf(new bk(P,C,Z));L&&P({novideo:1});return ua()}b.Yr&&(q==="1"||q==="1h")&&a[h]&&(c=k0(a[q]),Y=k0(a[h]),Y>c?q=h:Y===c&&Ci6(a[h])&&(q=h));q==="9"&&a.h&&k0(a.h)>k0(a["9"])&&(q="h");b.ob&&N.isLive&&q==="("&&a.H&&k0(a["("])<1440&&(q="H");L&&P({vfmly:ek(q)});b=a[q];if(!b.length)return L&&P({novfmly:ek(q)}), +ua();ce(b);return Rf(new bk(b,C,Z))}; +EW1=function(C,b){var h=!(!C.m&&!C.M),N=!(!C.mac3&&!C.MAC3),p=!(!C.meac3&&!C.MEAC3);C=!(!C.i&&!C.I);b.w9=C;return h||N||p||C}; +Ci6=function(C){C=g.z(C);for(var b=C.next();!b.done;b=C.next())if(b=b.value,b.itag&&bEx.has(b.itag))return!0;return!1}; +ek=function(C){switch(C){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return C}}; +gE=function(C){var b=[],h;for(h in C)if(C.hasOwnProperty(h)){var N=h;b.push(ek(N));N=g.z(C[N]);for(var p=N.next();!p.done;p=N.next())b.push(p.value.itag)}return b.join(".")}; +WU1=function(C,b,h,N,p,P){var c={},e={};g.Se(b,function(L,Z){L=L.filter(function(Y){var a=Y.itag;if(!Y.f9)return e[a]="noenc",!1;if(P.SC&&Y.PE==="(h"&&P.sI)return e[a]="lichdr",!1;if(Y.PE==="("||Y.PE==="(h"){if(C.X&&h&&h.flavor==="widevine"){var l=Y.mimeType+"; experimental=allowed";(l=!!Y.f9[h.flavor]&&!!h.j[l])||(e[a]=Y.f9[h.flavor]?"unspt":"noflv");return l}if(!L_(C,Zl.CRYPTOBLOCKFORMAT)&&!C.Qz||C.nO)return e[a]=C.nO?"disvp":"vpsub",!1}return h&&Y.f9[h.flavor]&&h.j[Y.mimeType]?!0:(e[a]=h?Y.f9[h.flavor]? +"unspt":"noflv":"nosys",!1)}); +L.length&&(c[Z]=L)}); +N&&Object.entries(e).length&&(P.IV?p({rjr:VX(e)}):p(e));return c}; +O8U=function(C,b){var h=f9(C,function(N,p){return p.video.fps>32?Math.min(N,p.video.width):N},Infinity); +h32||N.video.widthC.W)return"max"+C.W;if(C.zi&&b.PE==="h"&&b.video&&b.video.j>1080)return"blkhigh264";if(b.PE==="(h"&&!h.W)return"enchdr";if((N===void 0?0:N)&&nE(b)&&!C.t4)return"blk51live";if((b.PE==="MAC3"||b.PE==="mac3")&&!C.X)return"blkac3";if((b.PE==="MEAC3"||b.PE==="meac3")&&!C.G)return"blkeac3";if((b.PE==="M"||b.PE==="m")&&!C.N2)return"blkaac51";if((b.PE=== +"so"||b.PE==="sa")&&!C.nO)return"blkamb";if(!C.SC&&b.f9&&b.f9.fairplay&&(b.PE==="("||b.PE==="(h"||b.PE==="A"||b.PE==="MEAC3"))return"cbc";if((b.PE==="i"||b.PE==="I")&&!C.Yg)return"blkiamf";if(b.itag==="774"&&!C.sX)return"blkouh";var P,c;if(C.Yh&&(b.PE==="1"||b.PE==="1h")&&((P=b.video)==null?0:P.j)&&((c=b.video)==null?void 0:c.j)>C.Yh)return"av1cap";if((N=h.K.get(b.PE))&&N.Yx>0)return p.add(b.PE),"byerr";var e;if((e=b.video)==null?0:e.fps>32){if(!h.sX&&!L_(h,Zl.FRAMERATE))return"capHfr";if(C.kh&&b.video.j>= +4320)return"blk8khfr";if(DC(b)){if(C.mw&&b.f9&&b.video.j>=1440)return"disablevp9hfr";if(C.Xy&&g.dJ("appletv5")&&b.f9)return"atv5sfr"}}if(C.OX&&b.OX>C.OX)return"ratecap";C=hSx(h,b);return C!==!0?C:!0}; +ce=function(C,b){b=b===void 0?[]:b;g.Ls(C,function(h,N){var p=N.OX-h.OX;if(!h.CK()||!N.CK())return p;var P=N.video.height*N.video.width-h.video.height*h.video.width;!P&&b&&b.length>0&&(h=b.indexOf(h.PE)+1,N=b.indexOf(N.PE)+1,P=h===0||N===0?N||-1:h-N);P||(P=p);return P})}; +g.Y0=function(C,b){this.K=C;this.X=b===void 0?!1:b;this.N=this.path=this.scheme=bc[2];this.j={};this.url=bc[2]}; +lk=function(C){aL(C);return C.N}; +oL=function(C){return C.K?C.K.startsWith(bc[13]):C.scheme===bc[13]}; +Ne_=function(C){aL(C);return g.HE(C.j,function(b){return b!==null})}; +F3=function(C){aL(C);var b=decodeURIComponent(C.get(bc[14])||bc[2]).split(bc[15]);return C.path===bc[16]&&b.length>1&&!!b[1]}; +G2=function(C,b){b=b===void 0?!1:b;aL(C);if(C.path!==bc[16]){var h=C.clone();h.set(bc[17],bc[18]);return h}var N=C.p9();h=new g.L0(N);var p=C.get(bc[19]),P=decodeURIComponent(C.get(bc[14])||bc[2]).split(bc[15]);if(p&&P&&P.length>1&&P[1])return N=h.j,C=N.replace(/^[^.]*/,bc[2]),g.Yk(h,(N.indexOf(bc[20])===0?bc[20]:bc[21])+p+bc[22]+P[1]+C),h=new g.Y0(h.toString()),h.set(bc[23],bc[18]),h;if(b)return h=C.clone(),h.set(bc[23],bc[18]),h;p=h.j.match(bc[24]);h.j.match(bc[25])?(g.Yk(h,bc[26]),N=h.toString()): +h.j.match(bc[27])?(g.Yk(h,bc[28]),N=h.toString()):(h=NKc(N),w0(h)&&(N=h));h=new g.Y0(N);h.set(bc[29],bc[18]);p&&h.set(bc[30],bc[31]);return h}; +aL=function(C){if(C.K){if(!w0(C.K)&&!C.K.startsWith(bc[13]))throw new g.tJ(bc[32],C.K);var b=g.$k(C.K);C.scheme=b.G;C.N=b.j+(b.N!=null?bc[33]+b.N:bc[2]);var h=b.K;if(h.startsWith(bc[16]))C.path=bc[16],h=h.slice(14);else if(h.startsWith(bc[34]))C.path=bc[34],h=h.slice(13);else if(h.startsWith(bc[35])){var N=h.indexOf(bc[36],12),p=h.indexOf(bc[36],N+1);N>0&&p>0?(C.path=h.slice(0,p),h=h.slice(p+1)):(C.path=h,h=bc[2])}else C.path=h,h=bc[2];N=C.j;C.j=g2H(h);Object.assign(C.j,p9c(b.X.toString()));Object.assign(C.j, +N);C.j.file===bc[37]&&(delete C.j.file,C.path+=bc[38]);C.K=bc[2];C.url=bc[2];C.X&&(b=K8l(),aL(C),h=C.j[b]||null)&&(h=Pix[0](h),C.set(b,h),C.X||K8l(bc[2]))}}; +jTS=function(C){aL(C);var b=C.scheme+(C.scheme?bc[39]:bc[40])+C.N+C.path;if(Ne_(C)){var h=[];g.Se(C.j,function(N,p){N!==null&&h.push(p+bc[41]+N)}); +b+=bc[42]+h.join(bc[43])}return b}; +g2H=function(C){C=C.split(bc[36]);var b=0;C[0]||b++;for(var h={};b0?cm6(b,N.slice(0,p),N.slice(p+1)):N&&(b[N]=bc[2])}return b}; +cm6=function(C,b,h){if(b===bc[44]){var N;(N=h.indexOf(bc[41]))>=0?(b=bc[45]+h.slice(0,N),h=h.slice(N+1)):(N=h.indexOf(bc[46]))>=0&&(b=bc[45]+h.slice(0,N),h=h.slice(N+3))}C[b]=h}; +Sk=function(C){var b=g.d(C,kyV)||C.signatureCipher;C={Bv:!1,RH:bc[2],Uf:bc[2],s:bc[2]};if(!b)return C;b=gJ(b);C.Bv=!0;C.RH=b.url;C.Uf=b.sp;C.s=b.s;return C}; +$0=function(C,b,h,N,p,P,c,e,L,Z){this.yz=C;this.startTime=b;this.duration=h;this.ingestionTime=N;this.sourceURL=p;this.qK=L;this.j=Z;this.endTime=b+h;this.K=c||0;this.range=P||null;this.pending=e||!1;this.qK=L||null}; +g.z2=function(){this.segments=[];this.j=null;this.K=!0;this.N=""}; +eSH=function(C,b){if(b>C.Fs())C.segments=[];else{var h=Te(C.segments,function(N){return N.yz>=b},C); +h>0&&C.segments.splice(0,h)}}; +He=function(C,b,h,N,p){p=p===void 0?!1:p;this.data=C;this.offset=b;this.size=h;this.type=N;this.j=(this.K=p)?0:8;this.dataOffset=this.offset+this.j}; +VL=function(C){var b=C.data.getUint8(C.offset+C.j);C.j+=1;return b}; +M9=function(C){var b=C.data.getUint16(C.offset+C.j);C.j+=2;return b}; +q9=function(C){var b=C.data.getInt32(C.offset+C.j);C.j+=4;return b}; +mm=function(C){var b=C.data.getUint32(C.offset+C.j);C.j+=4;return b}; +f_=function(C){var b=C.data;var h=C.offset+C.j;b=b.getUint32(h)*4294967296+b.getUint32(h+4);C.j+=8;return b}; +A3=function(C,b){b=b===void 0?NaN:b;if(isNaN(b))var h=C.size;else for(h=C.j;h1?Math.ceil(p*b):Math.floor(p*b))}C.skip(1);h=VL(C)<<16|M9(C);if(h&256){N=h&1;p=h&4;var P=h&512,c=h&1024,e=h&2048;h=mm(C);N&&C.skip(4);p&&C.skip(4);N=(P?4:0)+(c?4:0)+(e?4:0);for(p=0;p1?Math.ceil(c*b):Math.floor(c*b)),C.skip(N)}}}; +X3=function(C){C=new DataView(C.buffer,C.byteOffset,C.byteLength);return(C=g.QL(C,0,1836476516))?g.Um(C):NaN}; +zS_=function(C){var b=g.QL(C,0,1937011556);if(!b)return null;b=K_(C,b.dataOffset+8,1635148593)||K_(C,b.dataOffset+8,1635135537);if(!b)return null;var h=K_(C,b.dataOffset+78,1936995172),N=K_(C,b.dataOffset+78,1937126244);if(!N)return null;b=null;if(h)switch(h.skip(4),VL(h)){default:b=0;break;case 1:b=2;break;case 2:b=1;break;case 3:b=255}var p=h=null,P=null;if(N=K_(C,N.dataOffset,1886547818)){var c=K_(C,N.dataOffset,1886546020),e=K_(C,N.dataOffset,2037673328);if(!e&&(e=K_(C,N.dataOffset,1836279920), +!e))return null;c&&(c.skip(4),h=q9(c)/65536,P=q9(c)/65536,p=q9(c)/65536);C=Ll_(e);C=new DataView(C.buffer,C.byteOffset+8,C.byteLength-8);return new SnH(b,h,P,p,C)}return null}; +K_=function(C,b,h){for(;sm(C,b);){var N=Om(C,b);if(N.type===h)return N;b+=N.size}return null}; +g.QL=function(C,b,h){for(;sm(C,b);){var N=Om(C,b);if(N.type===h)return N;b=ve(N.type)?b+8:b+N.size}return null}; +g.Dl=function(C){if(C.data.getUint8(C.dataOffset)){var b=C.data;C=C.dataOffset+4;b=b.getUint32(C)*4294967296+b.getUint32(C+4)}else b=C.data.getUint32(C.dataOffset+4);return b}; +Om=function(C,b){var h=C.getUint32(b),N=C.getUint32(b+4);return new He(C,b,h,N)}; +g.Um=function(C){var b=C.data.getUint8(C.dataOffset)?20:12;return C.data.getUint32(C.dataOffset+b)}; +HEH=function(C){C=new He(C.data,C.offset,C.size,C.type,C.K);var b=VL(C);C.skip(7);var h=mm(C);if(b===0){b=mm(C);var N=mm(C)}else b=f_(C),N=f_(C);C.skip(2);for(var p=M9(C),P=[],c=[],e=0;e122)return!1}return!0}; +ve=function(C){return C===1701082227||C===1836019558||C===1836019574||C===1835297121||C===1835626086||C===1937007212||C===1953653094||C===1953653099||C===1836475768}; +VZl=function(C){C.skip(4);return{hp6:A3(C,0),value:A3(C,0),timescale:mm(C),vUf:mm(C),mWz:mm(C),id:mm(C),S$:A3(C),offset:C.offset}}; +g.MZx=function(C){var b=K_(C,0,1701671783);if(!b)return null;var h=VZl(b),N=h.hp6;h=RL(h.S$);if(C=K_(C,b.offset+b.size,1701671783))if(C=VZl(C),C=RL(C.S$),h&&C){b=g.z(Object.keys(C));for(var p=b.next();!p.done;p=b.next())p=p.value,h[p]=C[p]}return h?new J3(h,N):null}; +dE=function(C,b){for(var h=K_(C,0,b);h;){var N=h;N.type=1936419184;N.data.setUint32(N.offset+4,1936419184);h=K_(C,h.offset+h.size,b)}}; +g.We=function(C,b){for(var h=0,N=[];sm(C,h);){var p=Om(C,h);p.type===b&&N.push(p);h=ve(p.type)?h+8:h+p.size}return N}; +qnl=function(C,b){var h=g.QL(C,0,1937011556),N=g.QL(C,0,1953654136);if(!h||!N||C.getUint32(h.offset+12)>=2)return null;var p=new DataView(b.buffer,b.byteOffset,b.length),P=g.QL(p,0,1937011556);if(!P)return null;b=p.getUint32(P.dataOffset+8);N=p.getUint32(P.dataOffset+12);if(N!==1701733217&&N!==1701733238)return null;N=new ZEx(C.byteLength+b);yL(N,C,0,h.offset+12);N.data.setInt32(N.offset,2);N.offset+=4;yL(N,C,h.offset+16,h.size-16);yL(N,p,p.byteOffset+P.dataOffset+8,b);yL(N,C,h.offset+h.size,C.byteLength- +(h.offset+h.size));h=g.z([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(p=h.next();!p.done;p=h.next())p=g.QL(C,0,p.value),N.data.setUint32(p.offset,p.size+b);C=g.QL(N.data,0,1953654136);N.data.setUint32(C.offset+16,2);return N.data}; +mwo=function(C){var b=g.QL(C,0,1937011556);if(!b)return null;var h=C.getUint32(b.dataOffset+12);if(h!==1701733217&&h!==1701733238)return null;b=K_(C,b.offset+24+(h===1701733217?28:78),1936289382);if(!b)return null;h=K_(C,b.offset+8,1935894637);if(!h||C.getUint32(h.offset+12)!==1667392371)return null;b=K_(C,b.offset+8,1935894633);if(!b)return null;b=K_(C,b.offset+8,1952804451);if(!b)return null;h=new Uint8Array(16);for(var N=0;N<16;N++)h[N]=C.getInt8(b.offset+16+N);return h}; +Em=function(C,b){this.j=C;this.pos=0;this.start=b||0}; +n_=function(C){return C.pos>=C.j.byteLength}; +x0=function(C,b,h){var N=new Em(h);if(!t3(N,C))return!1;N=T2(N);if(!Be(N,b))return!1;for(C=0;b;)b>>>=8,C++;b=N.start+N.pos;var p=IL(N,!0);N=C+(N.start+N.pos-b)+p;N=N>9?fCl(N-9,8):fCl(N-2,1);C=b-C;h.setUint8(C++,236);for(b=0;bh;p++)h=h*256+NL(C),N*=128;return b?h-N:h}; +C$=function(C){var b=IL(C,!0);C.pos+=b}; +rmU=function(C){if(!Be(C,440786851,!0))return null;var b=C.pos;IL(C,!1);var h=IL(C,!0)+C.pos-b;C.pos=b+h;if(!Be(C,408125543,!1))return null;IL(C,!0);if(!Be(C,357149030,!0))return null;var N=C.pos;IL(C,!1);var p=IL(C,!0)+C.pos-N;C.pos=N+p;if(!Be(C,374648427,!0))return null;var P=C.pos;IL(C,!1);var c=IL(C,!0)+C.pos-P,e=new Uint8Array(h+12+p+c),L=new DataView(e.buffer);e.set(new Uint8Array(C.j.buffer,C.j.byteOffset+b,h));L.setUint32(h,408125543);L.setUint32(h+4,33554431);L.setUint32(h+8,4294967295); +e.set(new Uint8Array(C.j.buffer,C.j.byteOffset+N,p),h+12);e.set(new Uint8Array(C.j.buffer,C.j.byteOffset+P,c),h+12+p);return e}; +gd=function(C){var b=C.pos;C.pos=0;var h=1E6;t3(C,[408125543,357149030,2807729])&&(h=wE(C));C.pos=b;return h}; +iEl=function(C,b){var h=C.pos;C.pos=0;if(C.j.getUint8(C.pos)!==160&&!p$(C)||!Be(C,160))return C.pos=h,NaN;IL(C,!0);var N=C.pos;if(!Be(C,161))return C.pos=h,NaN;IL(C,!0);NL(C);var p=NL(C)<<8|NL(C);C.pos=N;if(!Be(C,155))return C.pos=h,NaN;N=wE(C);C.pos=h;return(p+N)*b/1E9}; +p$=function(C){if(!Jmc(C)||!Be(C,524531317))return!1;IL(C,!0);return!0}; +Jmc=function(C){if(C.TJ()){if(!Be(C,408125543))return!1;IL(C,!0)}return!0}; +t3=function(C,b){for(var h=0;h0){var N=p9c(b.substring(h+1));g.Se(N,function(p,P){this.set(P,p)},C); +b=b.substring(0,h)}b=g2H(b);g.Se(b,function(p,P){this.set(P,p)},C)}; +RSl=function(C){var b=C.Oe.p9(),h=[];g.Se(C.j,function(p,P){h.push(P+"="+p)}); +if(!h.length)return b;var N=h.join("&");C=Ne_(C.Oe)?"&":"?";return b+C+N}; +jS=function(C,b){var h=new g.Y0(b);(b=h.get("req_id"))&&C.set("req_id",b);g.Se(C.j,function(N,p){h.set(p,null)}); +return h}; +QTK=function(){this.X=this.K=this.j=this.timedOut=this.started=this.G=this.N=0}; +cw=function(C){C.G=(0,g.Ai)();C.started=0;C.timedOut=0;C.j=0}; +ki=function(C,b){var h=C.started+C.j*4;b&&(h+=C.K);h=Math.max(0,h-3);return Math.pow(1.6,h)}; +eS=function(C,b){C[b]||(C[b]=new QTK);return C[b]}; +L$=function(C){this.V=this.J=this.G=this.K=0;this.L=this.W=!1;this.j=C;this.N=C.clone()}; +Uw6=function(C,b,h){if(oL(C.j))return!1;var N=eS(h,lk(C.j));if(N.timedOut<1&&N.j<1)return!1;N=N.timedOut+N.j;C=ZT(C,b);h=eS(h,lk(C));return h.timedOut+h.j+01?b=b.Ec:(h=eS(h,av(C,C.XQ(b,h),b)),b=Math.max(C.G,h.timedOut)+b.x8*(C.K-C.G)+.25*C.J,b=b>3?1E3*Math.pow(1.6,b-3):0);return b===0?!0:C.V+b<(0,g.Ai)()}; +X9V=function(C,b,h){C.j.set(b,h);C.N.set(b,h);C.X&&C.X.set(b,h)}; +Kll=function(C,b,h,N,p){++C.K;b&&++C.G;lk(h.Oe).startsWith("redirector.")&&(C.j=C.N.clone(),delete C.X,N.AE&&delete p[lk(C.j)])}; +ov=function(C){return C?(C.itag||"")+";"+(C.lmt||0)+";"+(C.xtags||""):""}; +F2=function(C,b,h,N){this.initRange=h;this.indexRange=N;this.j=null;this.N=!1;this.W=0;this.X=this.vR=this.K=null;this.info=b;this.dU=new L$(C)}; +GE=function(C,b){this.start=C;this.end=b;this.length=b-C+1}; +SS=function(C){C=C.split("-");var b=Number(C[0]),h=Number(C[1]);if(!isNaN(b)&&!isNaN(h)&&C.length===2&&(C=new GE(b,h),!isNaN(C.start)&&!isNaN(C.end)&&!isNaN(C.length)&&C.length>0))return C}; +$i=function(C,b){return new GE(C,C+b-1)}; +sT6=function(C){return C.end==null?{start:String(C.start)}:{start:String(C.start),end:String(C.end)}}; +zE=function(C){if(!C)return new GE(0,0);var b=Number(C.start);C=Number(C.end);if(!isNaN(b)&&!isNaN(C)&&(b=new GE(b,C),b.length>0))return b}; +Hw=function(C,b,h,N,p,P,c,e,L,Z,Y,a){N=N===void 0?"":N;this.type=C;this.j=b;this.range=h;this.source=N;this.IS=Y;this.clipId=a===void 0?"":a;this.J=[];this.G="";this.yz=-1;this.L=this.V=0;this.G=N;this.yz=p>=0?p:-1;this.startTime=P||0;this.duration=c||0;this.K=e||0;this.N=L>=0?L:this.range?this.range.length:NaN;this.X=this.range?this.K+this.N===this.range.length:Z===void 0?!!this.N:Z;this.range?(this.c7=this.startTime+this.duration*this.K/this.range.length,this.W=this.duration*this.N/this.range.length, +this.cF=this.c7+this.W):OEo(this)}; +OEo=function(C){C.c7=C.startTime;C.W=C.duration;C.cF=C.c7+C.W}; +v2l=function(C,b,h){var N=!(!b||b.j!==C.j||b.type!==C.type||b.yz!==C.yz);return h?N&&!!b&&(C.range&&b.range?b.range.end===C.range.end:b.range===C.range)&&b.K+b.N===C.K+C.N:N}; +V0=function(C){return C.type===1||C.type===2}; +ML=function(C){return C.type===3||C.type===6}; +qL=function(C,b){return C.j===b.j?C.range&&b.range?C.range.start+C.K+C.N===b.range.start+b.K:C.yz===b.yz?C.K+C.N===b.K:C.yz+1===b.yz&&b.K===0&&C.X:!1}; +dwW=function(C,b){return C.yz!==b.yz&&b.yz!==C.yz+1||C.type!==b.type?!1:qL(C,b)?!0:Math.abs(C.c7-b.c7)<=1E-6&&C.yz===b.yz?!1:DwV(C,b)}; +DwV=function(C,b){return qL(C,b)||Math.abs(C.cF-b.c7)<=1E-6||C.yz+1===b.yz&&b.K===0&&C.X?!0:!1}; +m6=function(C){return C.yz+(C.X?1:0)}; +WlW=function(C){C.length===1||g.mI(C,function(h){return!!h.range}); +for(var b=1;b=b.range.start+b.K&&C.range.start+C.K+C.N<=b.range.start+b.K+b.N:C.yz===b.yz&&C.K>=b.K&&(C.K+C.N<=b.K+b.N||b.X)}; +xw_=function(C,b){return C.j!==b.j?!1:C.type===4&&b.type===3&&C.j.MK()?(C=C.j.F$(C),i3(C,function(h){return xw_(h,b)})):C.yz===b.yz&&!!b.N&&b.K+b.N>C.K&&b.K+b.N<=C.K+C.N}; +A4=function(C,b){var h=b.yz;C.G="updateWithSegmentInfo";C.yz=h;if(C.startTime!==b.startTime||C.duration!==b.duration)C.startTime=b.startTime+C.V,C.duration=b.duration,OEo(C)}; +y0=function(C,b){var h=this;this.UX=C;this.X=this.j=null;this.G=this.y6=NaN;this.XQ=this.requestId=null;this.dn={Th4:function(){return h.range}}; +this.dU=C[0].j.dU;this.K=b||"";this.UX[0].range&&this.UX[0].N>0&&(E2V(C)?(this.range=WlW(C),this.N=this.range.length):(this.range=this.UX[this.UX.length-1].range,this.N=n2l(C)))}; +rd=function(C){return!V0(C.UX[C.UX.length-1])}; +i0=function(C){return C.UX[C.UX.length-1].type===4}; +g.J4=function(C,b,h){h=C.XQ===null?C.dU.XQ(b,h,C.UX[0].type):C.XQ;if(C.j){b=h?G2(C.j,b.Ck):C.j;var N=new Pw(b);N.get("alr")||N.set("alr","yes");C.K&&u7W(N,C.K)}else/http[s]?:\/\//.test(C.K)?N=new Pw(new g.Y0(C.K)):(N=Yi(C.dU,h,b),C.K&&u7W(N,C.K));(b=C.range)?N.set("range",b.toString()):C.UX[0].j.Ka()&&C.UX.length===1&&C.UX[0].K&&N.set("range",C.UX[0].K+"-");C.requestId&&N.set("req_id",C.requestId);isNaN(C.y6)||N.set("headm",C.y6.toString());isNaN(C.G)||N.set("mffa",C.G+"ms");C.urlParams&&g.Se(C.urlParams, +function(p,P){N.set(P,p)}); +return N}; +w9H=function(C){if(C.range)return C.N;C=C.UX[0];return Math.round(C.W*C.j.info.OX)}; +CJl=function(C,b){return Math.max(0,C.UX[0].c7-b)}; +u0=function(C,b,h,N,p,P){P=P===void 0?0:P;F2.call(this,C,b,N,void 0);this.G=h;this.jL=P;this.index=p||new g.z2}; +bIV=function(C,b,h,N,p){this.yz=C;this.startSecs=b;this.YJ=h;this.j=N||NaN;this.K=p||NaN}; +Rv=function(C,b,h){for(;C;C=C.parentNode)if(C.attributes&&(!h||C.nodeName===h)){var N=C.getAttribute(b);if(N)return N}return""}; +Q0=function(C,b){for(;C;C=C.parentNode){var h=C.getElementsByTagName(b);if(h.length>0)return h[0]}return null}; +hBS=function(C){if(!C)return 0;var b=C.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return b?(Number(b[2])|0)*3600+(Number(b[4])|0)*60+(Number(b[6])|0):Number(C)|0}; +N6l=function(C){return C.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?C+"Z":C}; +Uu=function(){this.j=[];this.K=null;this.W=0;this.N=[];this.G=!1;this.J="";this.X=-1}; +geK=function(C){var b=C.N;C.N=[];return b}; +p6U=function(){this.X=[];this.j=null;this.K={};this.N={}}; +kFl=function(C,b){var h=[];b=Array.from(b.getElementsByTagName("SegmentTimeline"));b=g.z(b);for(var N=b.next();!N.done;N=b.next()){N=N.value;var p=N.parentNode.parentNode,P=null;p.nodeName==="Period"?P=PJU(C):p.nodeName==="AdaptationSet"?(p=p.getAttribute("id")||p.getAttribute("mimetype")||"",P=jAS(C,p)):p.nodeName==="Representation"&&(p=p.getAttribute("id")||"",P=cAV(C,p));if(P==null)return;P.update(N);g.g$(h,geK(P))}g.g$(C.X,h);hES(C.X,function(c){return c.startSecs*1E3+c.j})}; +eBW=function(C){C.j&&(C.j.j=[]);g.Se(C.K,function(b){b.j=[]}); +g.Se(C.N,function(b){b.j=[]})}; +PJU=function(C){C.j||(C.j=new Uu);return C.j}; +jAS=function(C,b){C.K[b]||(C.K[b]=new Uu);return C.K[b]}; +cAV=function(C,b){C.N[b]||(C.N[b]=new Uu);return C.N[b]}; +K$=function(C){var b=C===void 0?{}:C;C=b.jL===void 0?0:b.jL;var h=b.DR===void 0?!1:b.DR;var N=b.hc===void 0?0:b.hc;var p=b.G5===void 0?0:b.G5;var P=b.Ee===void 0?Infinity:b.Ee;var c=b.Nw===void 0?0:b.Nw;var e=b.y_===void 0?!1:b.y_;b=b.Gd===void 0?!1:b.Gd;g.z2.call(this);this.bR=this.qW=-1;this.ip=C;this.hc=N;this.DR=h;this.G5=p;this.Ee=P;this.Nw=c;((this.y_=e)||isFinite(P)&&this.Ee>0)&&h&&X2&&(this.K=!1,this.N="postLive");this.Gd=b}; +Ou=function(C,b){return eo(C.segments,function(h){return b-h.yz})}; +vw=function(C,b,h){h=h===void 0?{}:h;u0.call(this,C,b,"",void 0,void 0,h.jL||0);this.index=new K$(h)}; +DT=function(C,b,h){F2.call(this,C,b);this.G=h;C=this.index=new g.z2;C.K=!1;C.N="d"}; +L16=function(C,b,h){var N=C.index.gI(b),p=C.index.getStartTime(b),P=C.index.getDuration(b);h?P=h=0:h=C.info.OX*P;return new y0([new Hw(3,C,void 0,"otfCreateRequestInfoForSegment",b,p,P,0,h)],N)}; +ZI1=function(C,b){if(!C.index.isLoaded()){var h=[],N=b.X;b=b.G.split(",").filter(function(Y){return Y.length>0}); +for(var p=0,P=0,c=0,e=/^(\d+)/,L=/r=(\d+)/,Z=0;Z0&&(b-=C.timestampOffset);var h=g.Eu(C)+b;amo(C,h);C.timestampOffset=b}; +amo=function(C,b){g.tm(C.info.j.info)||C.info.j.info.KK();C.N=b;if(g.tm(C.info.j.info)){var h=C.W7();C=C.info.j.j;for(var N=NaN,p=NaN,P=0;sm(h,P);){var c=Om(h,P);isNaN(N)&&(c.type===1936286840?N=c.data.getUint32(c.dataOffset+8):c.type===1836476516&&(N=g.Um(c)));if(c.type===1952867444){!N&&C&&(N=X3(C));var e=g.Dl(c);isNaN(p)&&(p=Math.round(b*N)-e);var L=c;e+=p;if(L.data.getUint8(L.dataOffset)){var Z=L.data;L=L.dataOffset+4;Z.setUint32(L,Math.floor(e/4294967296));Z.setUint32(L+4,e&4294967295)}else L.data.setUint32(L.dataOffset+ +4,e)}P=ve(c.type)?P+8:P+c.size}return!0}h=new Em(C.W7());C=C.G?h:new Em(new DataView(C.info.j.j.buffer));N=gd(C);C=h.pos;h.pos=0;if(p$(h)&&Be(h,231))if(p=IL(h,!0),b=Math.floor(b*1E9/N),Math.ceil(Math.log(b)/Math.log(2)/8)>p)b=!1;else{for(N=p-1;N>=0;N--)h.j.setUint8(h.pos+N,b&255),b>>>=8;h.pos=C;b=!0}else b=!1;return b}; +t4=function(C,b){b=b===void 0?!1:b;var h=n$(C);C=b?0:C.info.W;return h||C}; +n$=function(C){g.tm(C.info.j.info)||C.info.j.info.KK();if(C.K&&C.info.type===6)return C.K.jL;if(g.tm(C.info.j.info)){var b=C.W7();var h=0;b=g.We(b,1936286840);b=g.z(b);for(var N=b.next();!N.done;N=b.next())N=HEH(N.value),h+=N.hW[0]/N.timescale;h=h||NaN;if(!(h>=0))a:{h=C.W7();b=C.info.j.j;for(var p=N=0,P=0;sm(h,N);){var c=Om(h,N);if(c.type===1836476516)p=g.Um(c);else if(c.type===1836019558){!p&&b&&(p=X3(b));if(!p){h=NaN;break a}var e=K_(c.data,c.dataOffset,1953653094),L=e;e=p;var Z=K_(L.data,L.dataOffset, +1952868452);L=K_(L.data,L.dataOffset,1953658222);var Y=q9(Z);q9(Z);Y&2&&q9(Z);Z=Y&8?q9(Z):0;var a=q9(L),l=a&1;Y=a&4;var F=a&256,G=a&512,V=a&1024;a&=2048;var q=mm(L);l&&q9(L);Y&&q9(L);for(var f=l=0;f2048?"":b.indexOf("https://")===0?b:""}; +CA=function(C,b,h){b.match(fmc);return C(b,h).then(function(N){var p=g.m8W(N.xhr);return p?CA(C,p,h):N.xhr})}; +gs=function(C,b,h){C=C===void 0?"":C;b=b===void 0?null:b;h=h===void 0?!1:h;g.cr.call(this);var N=this;this.sourceUrl=C;this.isLivePlayback=h;this.m6=this.duration=0;this.isPremiere=this.y_=this.X=this.isLiveHeadPlayable=this.isLive=this.K=!1;this.Ee=this.G5=0;this.isOtf=this.yV=!1;this.t4=(0,g.Ai)();this.KO=Infinity;this.j={};this.N=new Map;this.state=this.FH=0;this.timeline=null;this.isManifestless=!1;this.nO=[];this.W=null;this.q2=0;this.G="";this.sX=NaN;this.Df=this.AZ=this.timestampOffset=this.J= +0;this.nI=this.J_=NaN;this.HW=0;this.CO=this.V=!1;this.Qz=[];this.rO={};this.N2=NaN;this.dn={q1p:function(e){b8(N,e)}}; +var p;this.Yh=(p=b)==null?void 0:p.Fo("html5_use_network_error_code_enums");AAS=!!b&&b.Fo("html5_modern_vp9_mime_type");var P;hP=!((P=b)==null||!P.Fo("html5_enable_flush_during_seek"))&&g.ES();var c;NE=!((c=b)==null||!c.Fo("html5_enable_reset_audio_decoder"))&&g.ES()}; +yAx=function(C){return g.HE(C.j,function(b){return!!b.info.video&&b.info.video.j>=2160})}; +xyl=function(C){return g.HE(C.j,function(b){return!!b.info.video&&b.info.video.isHdr()})}; +Pe=function(C){return g.HE(C.j,function(b){return!!b.info.f9})}; +g.rA6=function(C){return g.HE(C.j,function(b){return B9(b.info)})}; +iIW=function(C){return g.HE(C.j,function(b){return b.info.video?b.info.video.projectionType==="EQUIRECTANGULAR":!1})}; +JAl=function(C){return g.HE(C.j,function(b){return b.info.video?b.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; +u1o=function(C){return g.HE(C.j,function(b){return b.info.video?b.info.video.projectionType==="MESH":!1})}; +RB6=function(C){return g.HE(C.j,function(b){return b.info.video?b.info.video.stereoLayout===1:!1})}; +QAV=function(C){return dAK(C.j,function(b){return b.info.video?b.T1():!0})}; +N9=function(C){return g.HE(C.j,function(b){return oL(b.dU.j)})}; +b8=function(C,b){C.j[b.info.id]=b;C.N.set(ov(g.IT(b.info,C.yV)),b)}; +U81=function(C,b){return ov({itag:b.itag,lmt:C.yV?0:b.lmt||0,xtags:b.xtags})}; +j$=function(C,b,h){h=h===void 0?0:h;var N=C.mimeType||"",p=C.itag;var P=C.xtags;p=p?p.toString():"";P&&(p+=";"+P);P=p;if(we(N)){var c=C.width||640;p=C.height||360;var e=C.fps,L=C.qualityLabel,Z=C.colorInfo,Y=C.projectionType,a;C.stereoLayout&&(a=X6U[C.stereoLayout]);var l=MJW(C)||void 0;if(Z==null?0:Z.primaries)var F=K1V[Z.primaries]||void 0;c=new X7(c,p,e,Y,a,void 0,L,l,F);N=pA(N,c,On[C.itag||""]);hP&&(N+="; enableflushduringseek=true");NE&&(N+="; enableresetaudiodecoder=true")}var G;if(x2(N)){var V= +C.audioSampleRate;a=C.audioTrack;V=new RT(V?+V:void 0,C.audioChannels,C.spatialAudioType,C.isDrc,C.loudnessDb,C.trackAbsoluteLoudnessLkfs,C.audioQuality||"AUDIO_QUALITY_UNKNOWN");a&&(F=a.displayName,p=a.id,a=a.audioIsDefault,F&&(G=new g.wd(F,p||"",!!a)))}var q;C.captionTrack&&(L=C.captionTrack,a=L.displayName,F=L.vssId,p=L.languageCode,e=L.kind,L=L.id,a&&F&&p&&(q=new HIS(a,F,p,e,C.xtags,L)));a=Number(C.bitrate)/8;F=Number(C.contentLength);p=Number(C.lastModified);L=C.drmFamilies;e=C.type;h=h&&F?F/ +h:0;C=Number(C.approxDurationMs);if(b&&L){var f={};L=g.z(L);for(Z=L.next();!Z.done;Z=L.next())(Z=PR[Z.value])&&(f[Z]=b[Z])}return new v9(P,N,{audio:V,video:c,z$:G,f9:f,OX:a,V$:h,contentLength:F,lastModified:p,captionTrack:q,streamType:e,approxDurationMs:C})}; +cR=function(C,b,h){h=h===void 0?0:h;var N=C.type;var p=C.itag;var P=C.xtags;P&&(p=C.itag+";"+P);if(we(N)){var c=(C.size||"640x360").split("x");c=new X7(+c[0],+c[1],+C.fps,C.projection_type,+C.stereo_layout,void 0,C.quality_label,C.eotf,C.primaries);N=pA(N,c,On[C.itag]);hP&&(N+="; enableflushduringseek=true");NE&&(N+="; enableresetaudiodecoder=true")}var e;if(x2(N)){var L=new RT(+C.audio_sample_rate||void 0,+C.audio_channels||0,C.spatial_audio_type,!!C.drc);C.name&&(e=new g.wd(C.name,C.audio_track_id, +C.isDefault==="1"))}var Z;C.caption_display_name&&C.caption_vss_id&&C.caption_language_code&&(Z=new HIS(C.caption_display_name,C.caption_vss_id,C.caption_language_code,C.caption_kind,C.xtags,C.caption_id));P=Number(C.bitrate)/8;var Y=Number(C.clen),a=Number(C.lmt);h=h&&Y?Y/h:0;if(b&&C.drm_families){var l={};for(var F=g.z(C.drm_families.split(",")),G=F.next();!G.done;G=F.next())G=G.value,l[G]=b[G]}return new v9(p,N,{audio:L,video:c,z$:e,f9:l,OX:P,V$:h,contentLength:Y,lastModified:a,captionTrack:Z, +streamType:C.stream_type,approxDurationMs:Number(C.approx_duration_ms)})}; +sAx=function(C){return i3(C,function(b){return"FORMAT_STREAM_TYPE_OTF"===b.stream_type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; +OIH=function(C){return i3(C,function(b){return"FORMAT_STREAM_TYPE_OTF"===b.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; +veW=function(C,b){return C.timeline?P5(C.timeline.X,b):C.nO.length?P5(C.nO,b):[]}; +ky=function(C,b,h){b=b===void 0?"":b;h=h===void 0?"":h;C=new g.Y0(C,!0);C.set("alr","yes");h&&(h=$oW(decodeURIComponent(h)),C.set(b,encodeURIComponent(h)));return C}; +Eel=function(C,b){var h=Rv(b,"id");h=h.replace(":",";");var N=Rv(b,"mimeType"),p=Rv(b,"codecs");N=p?N+'; codecs="'+p+'"':N;p=Number(Rv(b,"bandwidth"))/8;var P=Number(Q0(b,"BaseURL").getAttribute(C.G+":contentLength")),c=C.duration&&P?P/C.duration:0;if(we(N)){var e=Number(Rv(b,"width"));var L=Number(Rv(b,"height")),Z=Number(Rv(b,"frameRate")),Y=D8_(Rv(b,C.G+":projectionType"));a:switch(Rv(b,C.G+":stereoLayout")){case "layout_left_right":var a=1;break a;case "layout_top_bottom":a=2;break a;default:a= +0}e=new X7(e,L,Z,Y,a)}if(x2(N)){var l=Number(Rv(b,"audioSamplingRate"));var F=Number(Rv(b.getElementsByTagName("AudioChannelConfiguration")[0],"value"));L=d8l(Rv(b,C.G+":spatialAudioType"));l=new RT(l,F,L);a:{F=Rv(b,"lang")||"und";if(L=Q0(b,"Role"))if(Y=Rv(L,"value")||"",g.mg(W1l,Y)){L=F+"."+W1l[Y];Z=Y==="main";C=Rv(b,C.G+":langName")||F+" - "+Y;F=new g.wd(C,L,Z);break a}F=void 0}}if(b=Q0(b,"ContentProtection"))if(b.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var G={};for(b= +b.firstChild;b!=null;b=b.nextSibling)b instanceof Element&&/SystemURL/.test(b.nodeName)&&(C=b.getAttribute("type"),L=b.textContent,C&&L&&(G[C]=L.trim()))}else G=void 0;return new v9(h,N,{audio:l,video:e,z$:F,f9:G,OX:p,V$:c,contentLength:P})}; +D8_=function(C){switch(C){case "equirectangular":return"EQUIRECTANGULAR";case "equirectangular_threed_top_bottom":return"EQUIRECTANGULAR_THREED_TOP_BOTTOM";case "mesh":return"MESH";case "rectangular":return"RECTANGULAR";default:return"UNKNOWN"}}; +d8l=function(C){switch(C){case "spatial_audio_type_ambisonics_5_1":return"SPATIAL_AUDIO_TYPE_AMBISONICS_5_1";case "spatial_audio_type_ambisonics_quad":return"SPATIAL_AUDIO_TYPE_AMBISONICS_QUAD";case "spatial_audio_type_foa_with_non_diegetic":return"SPATIAL_AUDIO_TYPE_FOA_WITH_NON_DIEGETIC";default:return"SPATIAL_AUDIO_TYPE_NONE"}}; +tJS=function(C,b){b=b===void 0?"":b;C.state=1;C.t4=(0,g.Ai)();return qOW(b||C.sourceUrl).then(function(h){if(!C.HE()){C.FH=h.status;h=h.responseText;var N=new DOMParser;h=TC(N,QOc(h),"text/xml").getElementsByTagName("MPD")[0];C.KO=hBS(Rv(h,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(h.attributes){N=g.z(h.attributes);for(var p=N.next();!p.done;p=N.next())if(p=p.value,p.value==="http://youtube.com/yt/2012/10/10"){N=p.name.split(":")[1];break b}}N=""}C.G=N;C.isLive=C.KO=C.KO}; +B6K=function(C){C.W&&C.W.stop()}; +neS=function(C){var b=C.KO;isFinite(b)&&(e$(C)?C.refresh():(b=Math.max(0,C.t4+b-(0,g.Ai)()),C.W||(C.W=new g.C2(C.refresh,b,C),g.D(C,C.W)),C.W.start(b)))}; +ImW=function(C){C=C.j;for(var b in C){var h=C[b].index;if(h.isLoaded())return h.Fs()+1}return 0}; +LA=function(C){return C.AZ?C.AZ-(C.J||C.timestampOffset):0}; +Z5=function(C){return C.Df?C.Df-(C.J||C.timestampOffset):0}; +Yy=function(C){if(!isNaN(C.sX))return C.sX;var b=C.j,h;for(h in b){var N=b[h].index;if(N.isLoaded()&&!B9(b[h].info)){b=0;for(h=N.SJ();h<=N.Fs();h++)b+=N.getDuration(h);b/=N.wp();b=Math.round(b/.5)*.5;N.wp()>10&&(C.sX=b);return b}if(C.isLive&&(N=b[h],N.jL))return N.jL}return NaN}; +x8H=function(C,b){C=EQU(C.j,function(N){return N.index.isLoaded()}); +if(!C)return NaN;C=C.index;var h=C.nZ(b);return C.getStartTime(h)===b?b:h=0&&p.segments.splice(P,1)}}}; +C$l=function(C){for(var b in C.j)B9(C.j[b].info)||eSH(C.j[b].index,Infinity)}; +oG=function(C,b,h){for(var N in C.j){var p=C.j[N].index,P=b,c=h;p.DR&&(P&&(p.qW=Math.max(p.qW,P)),c&&(p.bR=Math.max(p.bR||0,c)))}h&&(C.N2=h/1E3)}; +b3U=function(C){C.Df=0;C.AZ=0;C.HW=0}; +Fc=function(C){return C.CO&&C.isManifestless?C.isLiveHeadPlayable:C.isLive}; +pA=function(C,b,h){GM===null&&(GM=window.MediaSource&&MediaSource.isTypeSupported&&MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.16.09.00"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.99.99.00"'));if(AAS&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return GM||h!=="9"&&h!=="("?GM||h!=="9h"&&h!=="(h"||(C='video/webm; codecs="vp9.2"'):C='video/webm; codecs="vp9"',C;if(!GM&&!S$||C!=='video/webm; codecs="vp9"'&&C!=='video/webm; codecs="vp9.2"')return C; +h="00";var N="08",p="01",P="01",c="01";C==='video/webm; codecs="vp9.2"'&&(h="02",N="10",b.primaries==="bt2020"&&(c=p="09"),b.K==="smpte2084"&&(P="16"),b.K==="arib-std-b67"&&(P="18"));return'video/webm; codecs="'+["vp09",h,"51",N,"01",p,P,c,"00"].join(".")+'"'}; +zM=function(C,b,h){C=""+C+(b>49?"p60":b>32?"p48":"");b=iw()[C];if(b!=null&&b>0)return b;b=$y.get(C);if(b!=null&&b>0)return b;h=h==null?void 0:h.get(C);return h!=null&&h>0?h:8192}; +hal=function(C){this.Rf=C;this.yd=this.nk=this.rO=this.G=this.X=this.N2=this.G$=this.m6=this.nO=!1;this.J=this.W=0;this.zi=!1;this.q2=!0;this.kh=!1;this.Ml=0;this.q5=this.Qz=!1;this.Yr=!0;this.CO=this.t4=!1;this.j={};this.HW=this.disableAv1=this.sI=this.w9=this.Vz=this.ob=this.K=this.L=!1;this.lF=this.Rf.D("html5_disable_aac_preference");this.Xs=Infinity;this.Df=0;this.AZ=this.Rf.tZ();this.SC=this.Rf.experiments.Fo("html5_enable_vp9_fairplay");this.OG=this.Rf.D("html5_force_av1_for_testing");this.Yh= +g.Zc(this.Rf.experiments,"html5_av1_ordinal_cap");this.mw=this.Rf.D("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.aL=this.Rf.D("html5_account_onesie_format_selection_during_format_filter");this.OX=g.Zc(this.Rf.experiments,"html5_max_byterate");this.V=this.Rf.D("html5_sunset_aac_high_codec_family");this.sX=this.Rf.D("html5_sunset_aac_high_codec_family");this.Yg=this.Rf.D("html5_enable_iamf_audio");this.OU=this.Rf.experiments.Fo("html5_allow_capability_merge");this.IV=this.Rf.D("html5_log_format_filter_rejection_reason_as_string"); +this.Xy=this.Rf.D("html5_prefer_vp9_sfr")}; +wZl=function(C){if(C.m6)return["f"];var b="9h 9 h 8 (h ( H *".split(" ");C.Qz&&(b.unshift("1"),b.unshift("1h"));C.nk&&b.unshift("h");C.KO&&(b=(NP_[C.KO]||[C.KO]).concat(b));return b}; +nW_=function(C){var b=["o","a","A"];C.Df===1&&(C.N2&&(b=["m","M"].concat(b)),C.X&&(b=["mac3","MAC3"].concat(b)),C.G&&(b=["meac3","MEAC3"].concat(b)),C.Yg&&(b=["i","I"].concat(b)));C.nO&&(b=["so","sa"].concat(b));!C.yd||C.rO||C.N||C.lF||b.unshift("a");C.G$&&!C.V&&b.unshift("ah");C.N&&(b=(NP_[C.N]||[C.N]).concat(b));return b}; +HR=function(C,b,h,N){b=b===void 0?{}:b;if(N===void 0?0:N)return b.disabled=1,0;if(L_(C.G,Zl.AV1_CODECS)&&L_(C.G,Zl.HEIGHT)&&L_(C.G,Zl.BITRATE))return b.isCapabilityUsable=1,8192;try{var p=yc_();if(p)return b.localPref=p}catch(e){}N=1080;p=navigator.hardwareConcurrency;p<=2&&(N=480);b.coreCount=p;if(p=g.Zc(C.experiments,"html5_default_av1_threshold"))N=b["default"]=p;!C.D("html5_disable_av1_arm_check")&&$vx()&&(b.isArm=1,N=240);if(C=C.G.N2)b.mcap=C,N=Math.max(N,C);if(h){var P,c;if(C=(P=h.videoInfos.find(function(e){return W9(e)}))== +null?void 0:(c=P.K)==null?void 0:c.powerEfficient)N=8192,b.isEfficient=1; +h=h.videoInfos[0].video;P=Math.min(zM("1",h.fps),zM("1",30));b.perfCap=P;N=Math.min(N,P);h.isHdr()&&!C&&(b.hdr=1,N*=.75)}else h=zM("1",30),b.perfCap30=h,N=Math.min(N,h),h=zM("1",60),b.perfCap60=h,N=Math.min(N,h);return b.av1Threshold=N}; +VZ=function(C,b,h,N){this.flavor=C;this.keySystem=b;this.K=h;this.experiments=N;this.j={};this.Yh=this.keySystemAccess=null;this.kN=this.U$=-1;this.HT=null;this.N=!!N&&N.Fo("edge_nonprefixed_eme");N&&N.Fo("html5_enable_vp9_fairplay")}; +qE=function(C){return C.N?!1:!C.keySystemAccess&&!!ME()&&C.keySystem==="com.microsoft.playready"}; +mY=function(C){return C.keySystem==="com.microsoft.playready"}; +fA=function(C){return!C.keySystemAccess&&!!ME()&&C.keySystem==="com.apple.fps.1_0"}; +AP=function(C){return C.keySystem==="com.youtube.fairplay"}; +yZ=function(C){return C.keySystem==="com.youtube.fairplay.sbdl"}; +g.rs=function(C){return C.flavor==="fairplay"}; +ME=function(){var C=window,b=C.MSMediaKeys;Tu()&&!b&&(b=C.WebKitMediaKeys);return b&&b.isTypeSupported?b:null}; +JP=function(C){if(!navigator.requestMediaKeySystemAccess)return!1;if(g.yX&&!g.ES())return f2("45");if(g.BG||g.o2)return C.Fo("edge_nonprefixed_eme");if(g.i8)return f2("47");if(g.$1){if(C.Fo("html5_enable_safari_fairplay"))return!1;if(C=g.Zc(C,"html5_safari_desktop_eme_min_version"))return f2(C)}return!0}; +g4H=function(C,b,h,N){var p=nN(),P=(h=p||h&&Tu())?["com.youtube.fairplay"]:["com.widevine.alpha"];b&&P.unshift("com.youtube.widevine.l3");p&&N&&P.unshift("com.youtube.fairplay.sbdl");return h?P:C?[].concat(g.M(P),g.M(u8.playready)):[].concat(g.M(u8.playready),g.M(P))}; +QZ=function(){this.K=this.Js=0;this.j=Array.from({length:RG.length}).fill(0)}; +pFl=function(){}; +P$l=function(){this.startTimeMs=(0,g.Ai)();this.j=!1}; +jJ1=function(){this.j=new pFl}; +cIH=function(C,b,h,N){N=N===void 0?1:N;h>=0&&(b in C.j||(C.j[b]=new QZ),C.j[b].VH(h,N))}; +kOW=function(C,b,h,N,p){var P=(0,g.Ai)(),c=p?p(b):void 0,e;p=(e=c==null?void 0:c.Js)!=null?e:1;if(p!==0){var L;e=(L=c==null?void 0:c.profile)!=null?L:h;cIH(C,e,P-N,p)}return b}; +Uy=function(C,b,h,N,p){if(b&&typeof b==="object"){var P=function(c){return kOW(C,c,h,N,p)}; +if(bw(b))return b.then(P);if(eaV(b))return Px(b,P)}return kOW(C,b,h,N,p)}; +L0l=function(){}; +Xc=function(C,b,h,N,p){N=N===void 0?!1:N;g.O.call(this);this.Rf=b;this.useCobaltWidevine=N;this.jp=p;this.K=[];this.N={};this.j={};this.callback=null;this.G=!1;this.X=[];this.initialize(C,!h)}; +YXU=function(C,b){C.callback=b;C.X=[];JP(C.Rf.experiments)?KA(C):Z3l(C)}; +KA=function(C){if(!C.HE())if(C.K.length===0)C.callback(C.X);else{var b=C.K[0],h=C.N[b],N=aPl(C,h);if(sy&&sy.keySystem===b&&sy.GoD===JSON.stringify(N))C.jp("remksa",{re:!0}),lPl(C,h,sy.keySystemAccess);else{var p,P;C.jp("remksa",{re:!1,ok:(P=(p=sy)==null?void 0:p.keySystem)!=null?P:""});sy=void 0;(Oy.isActive()?Oy.LT("emereq",function(){return navigator.requestMediaKeySystemAccess(b,N)}):navigator.requestMediaKeySystemAccess(b,N)).then(Zp(function(c){lPl(C,h,c,N)}),Zp(function(){C.G=!C.G&&C.N[C.K[0]].flavor=== +"widevine"; +C.G||C.K.shift();KA(C)}))}}}; +lPl=function(C,b,h,N){if(!C.HE()){N&&(sy={keySystem:b.keySystem,keySystemAccess:h,GoD:JSON.stringify(N)});b.keySystemAccess=h;if(mY(b)){h=fE();N=g.z(Object.keys(C.j[b.flavor]));for(var p=N.next();!p.done;p=N.next())p=p.value,b.j[p]=!!h.canPlayType(p)}else{h=b.keySystemAccess.getConfiguration();if(h.audioCapabilities)for(N=g.z(h.audioCapabilities),p=N.next();!p.done;p=N.next())o4S(C,b,p.value);if(h.videoCapabilities)for(h=g.z(h.videoCapabilities),N=h.next();!N.done;N=h.next())o4S(C,b,N.value)}C.X.push(b); +C.useCobaltWidevine||C.D("html5_enable_vp9_fairplay")&&yZ(b)?(C.K.shift(),KA(C)):C.callback(C.X)}}; +o4S=function(C,b,h){C.D("log_robustness_for_drm")?b.j[h.contentType]=h.robustness||!0:b.j[h.contentType]=!0}; +aPl=function(C,b){var h={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(C.D("html5_enable_vp9_fairplay")&&AP(b))return h.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),h.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[h];mY(b)&&(h.initDataTypes=["keyids","cenc"]);for(var N=g.z(Object.keys(C.j[b.flavor])),p=N.next();!p.done;p=N.next()){p=p.value;var P=p.indexOf("audio/")===0,c=P?h.audioCapabilities:h.videoCapabilities;b.flavor!== +"widevine"||C.G?c.push({contentType:p}):P?c.push({contentType:p,robustness:"SW_SECURE_CRYPTO"}):(g.yX&&g.dJ("windows nt")&&!C.D("html5_drm_enable_moho")||c.push({contentType:p,robustness:"HW_SECURE_ALL"}),P=p,C.D("html5_enable_cobalt_experimental_vp9_decoder")&&p.includes("vp09")&&(P=p+"; experimental=allowed"),c.push({contentType:P,robustness:"SW_SECURE_DECODE"}),vR(C.Rf)==="MWEB"&&(bU()||WQ())&&(C.jp("swcrypto",{}),c.push({contentType:p,robustness:"SW_SECURE_CRYPTO"})))}return[h]}; +Z3l=function(C){if(ME()&&(g.$1||If&&C.D("html5_drm_support_ios_mweb")))C.X.push(new VZ("fairplay","com.apple.fps.1_0","",C.Rf.experiments));else{var b=F0U(),h=g.B$(C.K,function(N){var p=C.N[N],P=!1,c=!1,e;for(e in C.j[p.flavor])b(e,N)&&(p.j[e]=!0,P=P||e.indexOf("audio/")===0,c=c||e.indexOf("video/")===0);return P&&c}); +h&&C.X.push(C.N[h]);C.K=[]}C.callback(C.X)}; +F0U=function(){var C=ME();if(C){var b=C.isTypeSupported;return function(N,p){return b(p,N)}}var h=fE(); +return h&&(h.addKey||h.webkitAddKey)?function(N,p){return!!h.canPlayType(N,p)}:function(){return!1}}; +GO6=function(C){this.experiments=C;this.j=2048;this.X=0;this.N2=(this.V=this.D("html5_streaming_resilience"))?.5:.25;var b=b===void 0?0:b;this.N=g.Zc(this.experiments,"html5_media_time_weight_prop")||b;this.G=this.D("html5_app_limited_aware_bwe");this.q2=g.Zc(this.experiments,"html5_sabr_timeout_penalty_factor")||1;this.nO=(this.W=this.experiments.Fo("html5_consider_end_stall"))&&D5;this.K=this.experiments.Fo("html5_measure_max_progress_handling");this.KO=this.D("html5_treat_requests_pre_elbow_as_metadata"); +this.J=this.D("html5_media_time_weight")||!!this.N;this.L=g.Zc(this.experiments,"html5_streaming_fallback_byterate");this.D("html5_sabr_live_audio_early_return_fix")&&D5&&(this.j=65536)}; +SXl=function(C,b){this.j=void 0;this.experimentIds=C?C.split(","):[];this.flags=hK(b||"","&");C={};b=g.z(this.experimentIds);for(var h=b.next();!h.done;h=b.next())C[h.value]=!0;this.experiments=C}; +g.Zc=function(C,b){C=C.flags[b];JSON.stringify(C);return Number(C)||0}; +ds=function(C,b){return(C=C.flags[b])?C.toString():""}; +$O1=function(C){if(C=C.flags.html5_web_po_experiment_ids)if(C=C.replace(/\[ *(.*?) *\]/,"$1"))return C.split(",").map(Number);return[]}; +zal=function(C){if(C.j)return C.j;if(C.experimentIds.length<=1)return C.j=C.experimentIds,C.j;var b=[].concat(g.M(C.experimentIds)).map(function(N){return Number(N)}); +b.sort();for(var h=b.length-1;h>0;--h)b[h]-=b[h-1];C.j=b.map(function(N){return N.toString()}); +C.j.unshift("v1");return C.j}; +VgW=function(C){return H3l.then(C)}; +WR=function(C,b,h){this.experiments=C;this.sX=b;this.Qz=h===void 0?!1:h;this.KO=!!g.Dx("cast.receiver.platform.canDisplayType");this.L={};this.J=!1;this.K=new Map;this.W=!0;this.N=this.X=!1;this.j=new Map;this.N2=0;this.nO=this.experiments.Fo("html5_disable_vp9_encrypted");C=g.Dx("cast.receiver.platform.getValue");this.q2=g.Zc(this.experiments,"html5_kaios_max_resolution");this.G=!this.KO&&C&&C("max-video-resolution-vpx")||null;MgU(this)}; +hSx=function(C,b,h){h=h===void 0?1:h;var N=b.itag;if(N==="0")return!0;var p=b.mimeType;if(b.KK()&&nN()&&C.experiments.Fo("html5_appletv_disable_vp9"))return"dwebm";if(W9(b)&&C.J)return"dav1";if(b.video&&(b.video.isHdr()||b.video.primaries==="bt2020")&&!(L_(C,Zl.EOTF)||window.matchMedia&&(window.matchMedia("(dynamic-range: high), (video-dynamic-range: high)").matches||window.screen.pixelDepth>24&&window.matchMedia("(color-gamut: p3)").matches)))return"dhdr";if(N==="338"&&!(g.yX?f2(53):g.i8&&f2(64)))return"dopus"; +var P;if(C.q2&&Ey&&((P=b.video)==null?void 0:P.j)>C.q2)return"kaios";P=h;P=P===void 0?1:P;h={};b.video&&(b.video.width&&(h[Zl.WIDTH.name]=b.video.width),b.video.height&&(h[Zl.HEIGHT.name]=b.video.height),b.video.fps&&(h[Zl.FRAMERATE.name]=b.video.fps*P),b.video.K&&(h[Zl.EOTF.name]=b.video.K),b.OX&&(h[Zl.BITRATE.name]=b.OX*8*P),b.PE==="("&&(h[Zl.CRYPTOBLOCKFORMAT.name]="subsample"),b.video.projectionType==="EQUIRECTANGULAR"||b.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||b.video.projectionType=== +"MESH")&&(h[Zl.DECODETOTEXTURE.name]="true");b.audio&&b.audio.numChannels&&(h[Zl.CHANNELS.name]=b.audio.numChannels);C.X&&DC(b)&&(h[Zl.EXPERIMENTAL.name]="allowed");P=g.z(Object.keys(Zl));for(var c=P.next();!c.done;c=P.next()){c=Zl[c.value];var e;if(e=h[c.name])if(e=!(c===Zl.EOTF&&b.mimeType.indexOf("vp09.02")>0)){e=c;var L=b;e=!(C.experiments.Fo("html5_ignore_h264_framerate_cap")&&e===Zl.FRAMERATE&&ZFW(L))}if(e)if(L_(C,c))if(C.G){if(C.G[c.name]1080&&b.f9&&(p+="; hdcp=2.2");return N==="227"?"hqcenc":N!=="585"&&N!=="588"&&N!=="583"&&N!=="586"&&N!=="584"&&N!=="587"&&N!=="591"&&N!=="592"||C.experiments.Fo("html5_enable_new_hvc_enc")?C.isTypeSupported(p)?!0:"tpus":"newhvc"}; +nA=function(){var C=WQ()&&!f2(29),b=g.dJ("google tv")&&g.dJ("chrome")&&!f2(30);return C||b?!1:FMl()}; +qXS=function(C,b,h){var N=480;b=g.z(b);for(var p=b.next();!p.done;p=b.next()){p=p.value;var P=p.video.j;P<=1080&&P>N&&hSx(C,p,h)===!0&&(N=P)}return N}; +g.tP=function(C,b){b=b===void 0?!1:b;return nA()&&C.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!b&&C.canPlayType(fE(),"application/x-mpegURL")?!0:!1}; +fPU=function(C){mOW(function(){for(var b=g.z(Object.keys(Zl)),h=b.next();!h.done;h=b.next())L_(C,Zl[h.value])})}; +L_=function(C,b){b.name in C.L||(C.L[b.name]=AIU(C,b));return C.L[b.name]}; +AIU=function(C,b){if(C.G)return!!C.G[b.name];if(b===Zl.BITRATE&&C.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!C.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(b===Zl.AV1_CODECS)return C.isTypeSupported("video/mp4; codecs="+b.valid)&&!C.isTypeSupported("video/mp4; codecs="+b.US);if(b.video){var h='video/webm; codecs="vp9"';C.isTypeSupported(h)||(h='video/mp4; codecs="avc1.4d401e"')}else h='audio/webm; codecs="opus"', +C.isTypeSupported(h)||(h='audio/mp4; codecs="mp4a.40.2"');return C.isTypeSupported(h+"; "+b.name+"="+b.valid)&&!C.isTypeSupported(h+"; "+b.name+"="+b.US)}; +yIo=function(C){C.X||(C.X=!0,TM(C))}; +TM=function(C){C.N=!0;C.experiments.Fo("html5_ssap_update_capabilities_on_change")&&rIx(C)}; +i31=function(C,b){var h=0;C.K.has(b)&&(h=C.K.get(b).jD);C.K.set(b,{jD:h+1,Yx:Math.pow(2,h+1)});TM(C)}; +jk=function(C){for(var b=[],h=g.z(C.j.keys()),N=h.next();!N.done;N=h.next()){N=N.value;var p=C.j.get(N);b.push(N+"_"+p.maxWidth+"_"+p.maxHeight)}return b.join(".")}; +rIx=function(C){C.V=[];for(var b=g.z(C.j.values()),h=b.next();!h.done;h=b.next()){h=h.value;var N=h.PE;C.experiments.Fo("html5_ssap_force_mp4_aac")&&N!=="a"&&N!=="h"||C.K.has(N)||(!C.J||N!=="1"&&N!=="1h")&&C.V.push(h)}}; +t0S=function(C,b){for(var h=new Map,N=g.z(C.j.keys()),p=N.next();!p.done;p=N.next()){p=p.value;var P=p.split("_")[0];b.has(P)||h.set(p,C.j.get(p))}C.j=h}; +BL1=function(C,b,h){var N,p=((N=h.video)==null?void 0:N.fps)||0;N=b+"_"+p;var P=!!h.audio,c={itag:h.itag,PE:b,Ab:P};if(P)c.numChannels=h.audio.numChannels;else{var e=h.video;c.maxWidth=e==null?void 0:e.width;c.maxHeight=e==null?void 0:e.height;c.maxFramerate=p;L_(C,Zl.BITRATE)&&(c.maxBitrateBps=h.OX*8);c.FB=e==null?void 0:e.isHdr()}e=C.j.get(N);e?P||(h=Math.max(e.maxWidth||0,e.maxHeight||0)>Math.max(c.maxWidth||0,c.maxHeight||0)?e:c,b={itag:h.itag,PE:b,Ab:P,maxWidth:Math.max(e.maxWidth||0,c.maxWidth|| +0),maxHeight:Math.max(e.maxHeight||0,c.maxHeight||0),maxFramerate:p,FB:h.FB},L_(C,Zl.BITRATE)&&(b.maxBitrateBps=h.maxBitrateBps),C.j.set(N,b)):C.j.set(N,c)}; +IJV=function(C,b,h){var N,p=((N=h.video)==null?void 0:N.fps)||0;N=b+"_"+p;var P=!!h.audio,c=C.j.get(N);a:{var e=C.j.get(N),L=!!h.audio;if(e){if(L){var Z=!1;break a}var Y;if(!L&&((Z=h.video)==null?0:Z.height)&&e.maxHeight&&e.maxHeight>=((Y=h.video)==null?void 0:Y.height)){Z=!1;break a}}Z=!0}Z&&(Z=h.itag,b=c?c:{itag:Z,PE:b,Ab:P},P?b.numChannels=h.audio.numChannels:(P=h.video,b.maxWidth=P==null?void 0:P.width,b.maxHeight=P==null?void 0:P.height,b.maxFramerate=p,L_(C,Zl.BITRATE)&&(b.maxBitrateBps=h.OX* +8),b.FB=P==null?void 0:P.isHdr()),C.j.set(N,b))}; +MgU=function(C){var b;(b=navigator.mediaCapabilities)!=null&&b.decodingInfo&&navigator.mediaCapabilities.decodingInfo({type:"media-source",video:{contentType:'video/mp4; codecs="av01.0.12M.08"',width:3840,height:2160,bitrate:32E6,framerate:60}}).then(function(h){h.smooth&&h.powerEfficient&&(C.N2=2160)})}; +BR=function(){g.cr.call(this);this.items={}}; +IG=function(){g.HW.apply(this,arguments)}; +ws=function(){g.V6.apply(this,arguments)}; +JI6=function(C,b,h){this.encryptedClientKey=b;this.G=h;this.j=new Uint8Array(C.buffer,0,16);this.N=new Uint8Array(C.buffer,16)}; +umW=function(C){C.K||(C.K=new IG(C.j));return C.K}; +CO=function(C){try{return H5(C)}catch(b){return null}}; +RaS=function(C,b){if(!b&&C)try{b=JSON.parse(C)}catch(p){}if(b){C=b.clientKey?CO(b.clientKey):null;var h=b.encryptedClientKey?CO(b.encryptedClientKey):null,N=b.keyExpiresInSeconds?Number(b.keyExpiresInSeconds)*1E3+(0,g.Ai)():null;C&&h&&N&&(this.j=new JI6(C,h,N));b.onesieUstreamerConfig&&(this.onesieUstreamerConfig=CO(b.onesieUstreamerConfig)||void 0);this.baseUrl=b.baseUrl}}; +h9=function(){this.data=new Uint8Array(2048);this.pos=0;b2||(b2=r1("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}; +NX=function(C,b){C.add(b==null||isNaN(b)?0:b+1)}; +g_=function(C){this.j=this.K=0;this.alpha=Math.exp(Math.log(.5)/C)}; +pO=function(C){this.K=C===void 0?15:C;this.values=new Float64Array(176);this.j=new Float64Array(11);this.N=new Float64Array(16)}; +PI=function(C,b,h,N){h=h===void 0?.5:h;N=N===void 0?0:N;this.resolution=b;this.K=0;this.N=!1;this.rh=!0;this.j=Math.round(C*this.resolution);this.values=Array(this.j);for(C=0;C0)b=C.byterate,this.KO=!0;else{var N; +h=(((N=navigator.connection)==null?void 0:N.downlink)||0)*64*1024;h>0&&(b=h,this.KO=!0)}this.N.eQ(this.policy.W,b);C.delay>0&&this.L.eQ(1,Math.min(C.delay,2));C.stall>0&&this.J.eQ(1,C.stall);C.init>0&&(this.Df=Math.min(C.init,this.Df));C.interruptions&&(this.X=this.X.concat(C.interruptions),this.X.length>16&&this.X.pop());this.N2=(0,g.Ai)();this.policy.J>0&&(this.rO=new g.C2(this.CO,this.policy.J,this),g.D(this,this.rO),this.rO.start())}; +cI=function(C,b,h,N){C.N.eQ(N===void 0?b:N,h/b);C.W=(0,g.Ai)()}; +UOl=function(C){C.G||(C.G=(0,g.Ai)());C.policy.V&&(C.W=(0,g.Ai)())}; +XFW=function(C,b){if(C.G){var h=b-C.G;if(h<6E4){if(h>1E3){var N=C.interruptions;N.push(Math.ceil(h));N.sort(function(p,P){return P-p}); +N.length>16&&N.pop()}C.q2+=h}}C.G=b}; +k7=function(C,b,h,N,p,P){P=P===void 0?!1:P;C.Qz.eQ(b,h/b);C.W=(0,g.Ai)();p||C.V.eQ(1,b-N);P||(C.G=0);C.N2>-1&&(0,g.Ai)()-C.N2>3E4&&K0o(C)}; +eR=function(C,b,h){b=Math.max(b,C.K.j);C.J.eQ(1,h/b)}; +LO=function(C){C=C.L.w0()+C.sX.w0()||0;C=isNaN(C)?.5:C;return C=Math.min(C,5)}; +Zs=function(C,b,h){isNaN(h)||(C.nO+=h);isNaN(b)||(C.t4+=b)}; +Y7=function(C){C=C.N.w0();return C>0?C:1}; +ah=function(C,b,h){b=b===void 0?!1:b;h=h===void 0?1048576:h;var N=Y7(C);N=1/((C.J.w0()||0)*C.policy.KO+1/N);var p=C.Qz.w0();p=p>0?p:1;var P=Math.max(N,p);C.policy.G>0&&p=4E3}; +O3U=function(C){this.experiments=C;this.j=17;this.N=13E4;this.W=.5;this.K=!1;this.N2=this.D("html5_use_histogram_for_bandwidth");this.X=!1;this.G=g.Zc(this.experiments,"html5_auxiliary_estimate_weight");this.KO=g.Zc(this.experiments,"html5_stall_factor")||1;this.J=g.Zc(this.experiments,"html5_check_for_idle_network_interval_ms");this.L=this.experiments.Fo("html5_trigger_loader_when_idle_network");this.V=this.experiments.Fo("html5_sabr_fetch_on_idle_network_preloaded_players")}; +DOW=function(C,b){C=C===void 0?{}:C;b=b===void 0?{}:b;g.O.call(this);var h=this;this.values=C;this.kA=b;this.K={};this.N=this.j=0;this.X=new g.C2(function(){v4c(h)},1E4); +g.D(this,this.X)}; +oh=function(C,b){dOH(C,b);return C.values[b]&&C.kA[b]?C.values[b]/Math.pow(2,C.j/C.kA[b]):0}; +dOH=function(C,b){C.values[b]||(b=qcV(),C.values=b.values||{},C.kA=b.halfLives||{},C.K=b.values?Object.assign({},b.values):{})}; +v4c=function(C){var b=qcV();if(b.values){b=b.values;for(var h={},N=g.z(Object.keys(C.values)),p=N.next();!p.done;p=N.next())p=p.value,b[p]&&C.K[p]&&(C.values[p]+=b[p]-C.K[p]),h[p]=oh(C,p);C.K=h}b=C.kA;h={};h.values=C.K;h.halfLives=b;g.R1("yt-player-memory",h,2592E3)}; +Rh=function(C,b,h,N,p){g.O.call(this);this.webPlayerContextConfig=b;this.Ec=N;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.Fz=this.Yg=this.Yh=this.b5=this.userDisplayName=this.userDisplayImage=this.AT="";this.j={};this.IV={};this.controlsType="0";this.aL=NaN;this.sI=!1;this.Fy=(0,g.Ai)();this.AZ=0;this.Du=this.lW=!1;this.ZR=!0;this.preferGapless=this.R0=this.ge=this.N=this.xf=this.pK=!1;this.RM=[];this.LK=!1;C=C?g.J8(C):{};b&&b.csiPageType&&(this.csiPageType=b.csiPageType);b&&b.csiServiceName&& +(this.csiServiceName=b.csiServiceName);b&&b.preferGapless&&(this.preferGapless=b.preferGapless);this.experiments=new SXl(b?b.serializedExperimentIds:C.fexp,b?b.serializedExperimentFlags:C.fflags);this.forcedExperiments=b?b.serializedForcedExperimentIds:jw("",C.forced_experiments)||void 0;this.cspNonce=(b==null?0:b.cspNonce)?b.cspNonce:jw("",C.csp_nonce);this.D("web_player_deprecated_uvr_killswitch");try{var P=document.location.toString()}catch(t){P=""}this.Xy=P;this.ancestorOrigins=(N=window.location.ancestorOrigins)? +Array.from(N):[];this.X=gU(!1,b?b.isEmbed:C.is_embed);if(b&&b.device){if(N=b.device,N.androidOsExperience&&(this.j.caoe=""+N.androidOsExperience),N.androidPlayServicesVersion&&(this.j.capsv=""+N.androidPlayServicesVersion),N.brand&&(this.j.cbrand=N.brand),N.browser&&(this.j.cbr=N.browser),N.browserVersion&&(this.j.cbrver=N.browserVersion),N.cobaltReleaseVehicle&&(this.j.ccrv=""+N.cobaltReleaseVehicle),this.j.c=N.interfaceName||"WEB",this.j.cver=N.interfaceVersion||"html5",N.interfaceTheme&&(this.j.ctheme= +N.interfaceTheme),this.j.cplayer=N.interfacePlayerType||"UNIPLAYER",N.model&&(this.j.cmodel=N.model),N.network&&(this.j.cnetwork=N.network),N.os&&(this.j.cos=N.os),N.osVersion&&(this.j.cosver=N.osVersion),N.platform&&(this.j.cplatform=N.platform),P=ds(this.experiments,"html5_log_vss_extra_lr_cparams_freq"),P==="all"||P==="once")N.chipset&&(this.IV.cchip=N.chipset),N.cobaltAppVersion&&(this.IV.ccappver=N.cobaltAppVersion),N.firmwareVersion&&(this.IV.cfrmver=N.firmwareVersion),N.deviceYear&&(this.IV.crqyear= +N.deviceYear)}else this.j.c=C.c||"web",this.j.cver=C.cver||"html5",this.j.cplayer="UNIPLAYER";this.loaderUrl=b?this.X||W0x(this)&&b.loaderUrl?b.loaderUrl||"":this.Xy:this.X||W0x(this)&&C.loaderUrl?jw("",C.loaderUrl):this.Xy;this.X&&g.Ol("yt.embedded_player.embed_url",this.loaderUrl);this.J=IH(this.loaderUrl,E46);N=this.loaderUrl;var c=c===void 0?!1:c;this.MW=Bk(IH(N,n4W),N,c,"Trusted Ad Domain URL");this.yd=gU(!1,C.privembed);this.protocol=this.Xy.indexOf("http:")===0?"http":"https";this.nO=xU((b? +b.customBaseYoutubeUrl:C.BASE_YT_URL)||"")||xU(this.Xy)||this.protocol+"://www.youtube.com/";c=b?b.eventLabel:C.el;N="detailpage";c==="adunit"?N=this.X?"embedded":"detailpage":c==="embedded"||this.J?N=pp(N,c,tgK):c&&(N="embedded");this.Qz=N;iNc();c=null;N=b?b.playerStyle:C.ps;P=g.xI(TPV,N);!N||P&&!this.J||(c=N);this.playerStyle=c;this.W=g.xI(TPV,this.playerStyle);this.houseBrandUserStatus=b==null?void 0:b.houseBrandUserStatus;this.N2=this.W&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard"; +this.J_=!this.N2;this.rO=gU(!1,C.disableplaybackui);this.disablePaidContentOverlay=gU(!1,b==null?void 0:b.disablePaidContentOverlay);this.disableSeek=gU(!1,b==null?void 0:b.disableSeek);this.enableSpeedOptions=(b==null?void 0:b.enableSpeedOptions)||(fE().defaultPlaybackRate?FO||g.Cp||Ey?g.i8&&f2("20")||g.yX&&f2("4")||g.Ga&&f2("11")||BQ():!(g.Ga&&!g.dJ("chrome")||FO||g.dJ("android")||g.dJ("silk")):!1);this.Ck=gU(!1,C.enable_faster_speeds);var e;this.supportsVarispeedExtendedFeatures=(e=b==null?void 0: +b.supportsVarispeedExtendedFeatures)!=null?e:!1;this.K=gU(this.playerStyle==="blazer",C.is_html5_mobile_device||b&&b.isMobileDevice);this.CO=wJ()||bU();this.Hm=this.D("mweb_allow_background_playback")?!1:this.K&&!this.W;this.t4=Jm();this.n$=g.SR;var L;this.HT=!!(b==null?0:(L=b.embedsHostFlags)==null?0:L.optOutApiDeprecation);var Z;this.iW=!!(b==null?0:(Z=b.embedsHostFlags)==null?0:Z.allowPfpImaIntegration);this.V7=this.D("embeds_web_enable_ve_conversion_logging_tracking_no_allow_list");var Y;b?b.hideInfo!== +void 0&&(Y=!b.hideInfo):Y=C.showinfo;this.wG=g.$7(this)&&!this.HT||gU(!za(this)&&!HI(this)&&!this.W,Y);this.JC=b?!!b.mobileIphoneSupportsInlinePlayback:gU(!1,C.playsinline);e=this.K&&VY&&MX!=null&&MX>0&&MX<=2.3;L=b?b.useNativeControls:C.use_native_controls;this.L=g.$7(this)&&this.K;Z=this.K&&!this.L;L=g.qX(this)||!e&&gU(Z,L)?"3":"1";this.disableOrganicUi=!(b==null||!b.disableOrganicUi);Z=b?b.controlsType:C.controls;this.controlsType=this.disableOrganicUi?"0":Z!=="0"&&Z!==0?L:"0";this.du=this.K;this.color= +pp("red",b?b.progressBarColor:C.color,BPS);this.Fk=this.controlsType==="3";this.HW=!this.X;this.BM=(L=!this.HW&&!HI(this)&&!this.N2&&!this.W&&!za(this))&&!this.Fk&&this.controlsType==="1";this.w9=g.mG(this)&&L&&this.controlsType==="0"&&!this.BM&&!(b==null?0:b.embedsEnableEmc3ds);this.qp=this.XG=e;this.Yr=(this.controlsType==="3"||this.K||gU(!1,C.use_media_volume))&&!this.L;this.nS=If&&!g.So(601)?!1:!0;this.df=this.X||!1;this.zi=HI(this)?"":(this.loaderUrl||C.post_message_origin||"").substring(0,128); +this.widgetReferrer=jw("",b?b.widgetReferrer:C.widget_referrer);var a;b?b.disableCastApi&&(a=!1):a=C.enablecastapi;a=!this.J||gU(!0,a);e=!0;b&&b.disableMdxCast&&(e=!1);this.K5=this.D("enable_cast_for_web_unplugged")&&g.fO(this)&&e||g.KF(this)&&e||a&&e&&this.controlsType==="1"&&!this.K&&(HI(this)||g.mG(this)||g.A9(this));this.dh=!!window.document.pictureInPictureEnabled||ii();a=b?!!b.supportsAutoplayOverride:gU(!1,C.autoplayoverride);this.Eq=!(this.K&&!g.$7(this))&&!g.dJ("nintendo wiiu")||a;this.Dj= +(b?!!b.enableMutedAutoplay:gU(!1,C.mutedautoplay))&&!1;a=(HI(this)||za(this))&&this.playerStyle==="blazer";this.NZ=b?!!b.disableFullscreen:!gU(!0,C.fs);e=g.Lp(g.yY(this))&&g.$7(this);this.SC=!this.NZ&&(a||g.Gm())&&!e;a=WQ()&&f2(58)&&!bU();e=Tn||typeof MediaSource==="undefined";this.VX=this.D("uniplayer_block_pip")&&(a||e)||this.D("html5_disable_pip_with_standard_api");a=g.$7(this)&&!this.HT;var l;b?b.disableRelatedVideos!==void 0&&(l=!b.disableRelatedVideos):l=C.rel;this.OU=a||gU(!this.W,l);this.XC= +gU(!1,b?b.enableContentOwnerRelatedVideos:C.co_rel);this.V=bU()&&MX>0&&MX<=4.4?"_top":"_blank";this.OR=g.A9(this);this.xs=gU(this.playerStyle==="blazer",b?b.enableCsiLogging:C.enablecsi);switch(this.playerStyle){case "blogger":l="bl";break;case "gmail":l="gm";break;case "gac":l="ga";break;case "books":l="gb";break;case "docs":case "flix":l="gd";break;case "duo":l="gu";break;case "google-live":l="gl";break;case "google-one":l="go";break;case "play":l="gp";break;case "chat":l="hc";break;case "hangouts-meet":l= +"hm";break;case "photos-edu":case "picasaweb":l="pw";break;default:l="yt"}this.KO=l;this.q2=jw("",b?b.authorizedUserIndex:C.authuser);this.Xs=g.$7(this)&&(this.yd||!GqU()||this.CO);var F;b?b.disableWatchLater!==void 0&&(F=!b.disableWatchLater):F=C.showwatchlater;this.mw=((l=!this.Xs)||!!this.q2&&l)&&gU(!this.N2,this.J?F:void 0);this.OG=b?b.isMobileDevice||!!b.disableKeyboardControls:gU(!1,C.disablekb);this.loop=gU(!1,C.loop);this.pageId=jw("",b?b.initialDelegatedSessionId:C.pageid);this.xA=gU(!0, +C.canplaylive);this.kh=gU(!1,C.livemonitor);this.disableSharing=gU(this.W,b?b.disableSharing:C.ss);(F=b&&this.D("fill_video_container_size_override_from_wpcc")?b.videoContainerOverride:C.video_container_override)?(l=F.split("x"),l.length!==2?F=null:(F=Number(l[0]),l=Number(l[1]),F=isNaN(F)||isNaN(l)||F*l<=0?null:new g.oV(F,l))):F=null;this.Rn=F;this.mute=b?!!b.startMuted:gU(!1,C.mute);this.storeUserVolume=!this.mute&&gU(this.controlsType!=="0",b?b.storeUserVolume:C.store_user_volume);F=b?b.annotationsLoadPolicy: +C.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:pp(void 0,F,r_);this.captionsLanguagePreference=b?b.captionsLanguagePreference||"":jw("",C.cc_lang_pref);F=pp(2,b?b.captionsLanguageLoadPolicy:C.cc_load_policy,r_);this.controlsType==="3"&&F===2&&(F=3);this.G$=F;this.ob=b?b.hl||"en_US":jw("en_US",C.hl);this.region=b?b.contentRegion||"US":jw("US",C.cr);this.hostLanguage=b?b.hostLanguage||"en":jw("en",C.host_language);this.tN=!this.yd&&Math.random()=480;this.schedule=new jR(e,new GO6(this.experiments),p);g.D(this,this.schedule);var G;this.enableSafetyMode= +(G=b==null?void 0:b.initialEnableSafetyMode)!=null?G:gU(!1,C.enable_safety_mode);p=this.rO?!1:HI(this)&&this.playerStyle!=="blazer";var V;b?b.disableAutonav!=null&&(V=!b.disableAutonav):V=C.allow_autonav;this.lF=gU(p,!this.N2&&V);this.sendVisitorIdHeader=b?!!b.sendVisitorIdHeader:gU(!1,C.send_visitor_id_header);var q;this.playerStyle==="docs"&&(b?q=b.disableNativeContextMenu:q=C.disable_native_context_menu);this.disableNativeContextMenu=gU(!1,q);this.uW=qo(this)&&this.D("enable_skip_intro_button"); +this.embedConfig=jw("",b?b.serializedEmbedConfig:C.embed_config);this.sX=ew(C,g.$7(this));this.N=this.sX==="EMBEDDED_PLAYER_MODE_PFL";this.embedsErrorLinks=!(b==null||!b.embedsErrorLinks);this.Xb=gU(!1,C.full_window);var f;this.Vz=!((f=this.webPlayerContextConfig)==null?0:f.chromeless);var y;this.livingRoomAppMode=pp("LIVING_ROOM_APP_MODE_UNSPECIFIED",C.living_room_app_mode||(b==null?void 0:(y=b.device)==null?void 0:y.livingRoomAppMode),wF1);var u;V=Pj(NaN,b==null?void 0:(u=b.device)==null?void 0: +u.deviceYear);isNaN(V)||(this.deviceYear=V);this.transparentBackground=b?!!b.transparentBackground:gU(!1,C.transparent_background);this.showMiniplayerButton=b?!!b.showMiniplayerButton:gU(!1,C.show_miniplayer_button);var K;g.$7(this)&&!(b==null?0:(K=b.embedsHostFlags)==null?0:K.allowSetFauxFullscreen)?this.externalFullscreen=!1:this.externalFullscreen=b?!!b.externalFullscreen:gU(!1,C.external_fullscreen);this.showMiniplayerUiWhenMinimized=b?!!b.showMiniplayerUiWhenMinimized:gU(!1,C.use_miniplayer_ui); +var v;this.ZR=(v=C.show_loop_video_toggle)!=null?v:!0;this.ix=Math.random()<1E-4;this.ZT=C.onesie_hot_config||(b==null?0:b.onesieHotConfig)?new RaS(C.onesie_hot_config,b==null?void 0:b.onesieHotConfig):void 0;this.isTectonic=b?!!b.isTectonic:!!C.isTectonic;this.playerCanaryState=h;this.playerCanaryStage=b==null?void 0:b.canaryStage;this.fK=new DOW;g.D(this,this.fK);this.xf=gU(!1,C.force_gvi);this.datasyncId=(b==null?void 0:b.datasyncId)||g.BC("DATASYNC_ID");this.BT=g.BC("LOGGED_IN",!1);this.mu=(b== +null?void 0:b.allowWoffleManagement)||!1;this.n5=Infinity;this.RS=NaN;this.livingRoomPoTokenId=b==null?void 0:b.livingRoomPoTokenId;this.D("html5_high_res_logging_always")?this.ge=!0:this.ge=Math.random()*100=0&&C0&&C.ix&&(N.sort(),g.QB(new g.tJ("Player client parameters changed after startup",N)));C.userAge=Pj(C.userAge,b.user_age);C.AT=jw(C.AT,b.user_display_email);C.userDisplayImage=jw(C.userDisplayImage,b.user_display_image);g.C8(C.userDisplayImage)||(C.userDisplayImage= +"");C.userDisplayName=jw(C.userDisplayName,b.user_display_name);C.b5=jw(C.b5,b.user_gender);C.csiPageType=jw(C.csiPageType,b.csi_page_type);C.csiServiceName=jw(C.csiServiceName,b.csi_service_name);C.xs=gU(C.xs,b.enablecsi);C.pageId=jw(C.pageId,b.pageid);if(h=b.enabled_engage_types)C.enabledEngageTypes=new Set(h.split(","));b.living_room_session_po_token&&(C.k6=b.living_room_session_po_token.toString())}; +QY=function(C,b){return!C.W&&WQ()&&f2(55)&&C.controlsType==="3"&&!b}; +g.Ua=function(C){C=i2(C.nO);return C==="www.youtube-nocookie.com"?"www.youtube.com":C}; +XO=function(C,b,h){return C.protocol+"://i1.ytimg.com/vi/"+b+"/"+(h||"hqdefault.jpg")}; +KO=function(C){return HI(C)&&!g.fO(C)}; +g.qX=function(C){return C.D("html5_local_playsinline")?If&&!g.So(602)&&!("playsInline"in fE()):If&&!C.JC||g.dJ("nintendo wiiu")?!0:!1}; +vR=function(C){return C.j.c}; +g.m9=function(C){return/^TVHTML5/.test(vR(C))}; +g.sa=function(C){return vR(C)==="TVHTML5"}; +W0x=function(C){return vR(C)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; +xOl=function(C){return C.j.cmodel==="CHROMECAST ULTRA/STEAK"||C.j.cmodel==="CHROMECAST/STEAK"}; +g.Oa=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; +qo=function(C){return/web/i.test(vR(C))}; +g.vI=function(C){return vR(C).toUpperCase()==="WEB"}; +u2=function(C){return vR(C)==="WEB_KIDS"}; +g.fO=function(C){return vR(C)==="WEB_UNPLUGGED"}; +Ds=function(C){return vR(C)==="TVHTML5_UNPLUGGED"}; +g.Mo=function(C){return g.fO(C)||vR(C)==="TV_UNPLUGGED_CAST"||Ds(C)}; +g.KF=function(C){return vR(C)==="WEB_REMIX"}; +g.d_=function(C){return vR(C)==="WEB_EMBEDDED_PLAYER"}; +g.Ea=function(C){return(C.deviceIsAudioOnly||!g.yX||Tn||C.controlsType==="3"?!1:g.Cp?C.X&&g.So(51):!0)||(C.deviceIsAudioOnly||!g.i8||Tn||C.controlsType==="3"?!1:g.Cp?C.X&&g.So(48):g.So(38))||(C.deviceIsAudioOnly||!g.Ga||Tn||C.controlsType==="3"?!1:g.Cp?C.X&&g.So(37):g.So(27))||!C.deviceIsAudioOnly&&g.WI&&!Vac()&&g.So(11)||!C.deviceIsAudioOnly&&g.$1&&g.So("604.4")}; +hul=function(C){if(g.mG(C)&&VY)return!1;if(g.i8){if(!g.So(47)||!g.So(52)&&g.So(51))return!1}else if(g.$1)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; +ggx=function(C,b){return C.enabledEngageTypes.has(b.toString())||Nql.includes(b)}; +HI=function(C){return C.Qz==="detailpage"}; +g.mG=function(C){return C.Qz==="embedded"}; +nO=function(C){return C.Qz==="leanback"}; +za=function(C){return C.Qz==="adunit"||C.playerStyle==="gvn"}; +g.A9=function(C){return C.Qz==="profilepage"}; +g.$7=function(C){return C.X&&g.mG(C)&&!za(C)&&!C.W}; +t9=function(C){if(!C.userDisplayImage)return"";var b=C.userDisplayImage.split("/");if(b.length===5)return C=b[b.length-1].split("="),C[1]="s20-c",b[b.length-1]=C.join("="),b.join("/");if(b.length===8)return b.splice(7,0,"s20-c"),b.join("/");if(b.length===9)return b[7]+="-s20-c",b.join("/");g.QB(new g.tJ("Profile image not a FIFE URL.",C.userDisplayImage));return C.userDisplayImage}; +g.Ta=function(C){var b=g.Ua(C);pzK.includes(b)&&(b="www.youtube.com");return C.protocol+"://"+b}; +g.BI=function(C,b){b=b===void 0?"":b;if(C.Ec){var h=new nI,N,p=C.Ec();p.signedOut?N="":p.token?N=p.token:p.pendingResult.then(function(P){p.signedOut?h.resolve(""):h.resolve(P.token)},function(P){g.QB(new g.tJ("b189348328_oauth_callback_failed",{error:P})); +h.resolve(b)}); +return N!==void 0?Rf(N):new JK(h)}return Rf(b)}; +Ih=function(C,b){b=b===void 0?"":b;return C.BT?hd(!0):jO(Px(hd(g.BI(C,b)),function(h){return hd(!!h)}),function(){return hd(!1)})}; +i2=function(C){var b=g.XX(C);return(C=Number(g.Uq(4,C))||null)?b+":"+C:b}; +x7=function(C,b){b=b===void 0?!1:b;var h=On[C],N=PjV[h],p=jz1[C];if(!p||!N)return null;b=new X7(b?p.height:p.width,b?p.width:p.height,p.fps);N=pA(N,b,h);return new v9(C,N,{video:b,OX:p.bitrate/8})}; +k9l=function(C){var b=PjV[On[C]],h=cvK[C];return h&&b?new v9(C,b,{audio:new RT(h.audioSampleRate,h.numChannels)}):null}; +w_=function(C){this.j=C}; +Cj=function(C,b,h,N){if(h)return ua();h={};var p=fE();b=g.z(b);for(var P=b.next();!P.done;P=b.next())if(P=P.value,C.canPlayType(p,P.getInfo().mimeType)||N){var c=P.j.video.quality;if(!h[c]||h[c].getInfo().KK())h[c]=P}C=[];h.auto&&C.push(h.auto);N=g.z(KE);for(p=N.next();!p.done;p=N.next())(p=h[p.value])&&C.push(p);return C.length?Rf(C):ua()}; +eu_=function(C){this.itag=C.itag;this.url=C.url;this.codecs=C.codecs;this.width=C.width;this.height=C.height;this.fps=C.fps;this.bitrate=C.bitrate;var b;this.K=((b=C.audioItag)==null?void 0:b.split(","))||[];this.yS=C.yS;this.f9=C.f9||"";this.z$=C.z$;this.audioChannels=C.audioChannels;this.j=""}; +LT6=function(C,b,h,N){b=b===void 0?!1:b;h=h===void 0?!0:h;N=N===void 0?{}:N;var p={};C=g.z(C);for(var P=C.next();!P.done;P=C.next()){P=P.value;if(b&&MediaSource&&MediaSource.isTypeSupported){var c=P.type;P.audio_channels&&(c=c+"; channels="+P.audio_channels);if(!MediaSource.isTypeSupported(c)){N[P.itag]="tpus";continue}}if(h||!P.drm_families||P.eotf!=="smpte2084"&&P.eotf!=="arib-std-b67"){c=void 0;var e={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},L=P.type.match(/codecs="([^"]*)"/); +L=L?L[1]:"";P.audio_track_id&&(c=new g.wd(P.name,P.audio_track_id,!!P.is_default));var Z=P.eotf;P=new eu_({itag:P.itag,url:P.url,codecs:L,width:Number(P.width),height:Number(P.height),fps:Number(P.fps),bitrate:Number(P.bitrate),audioItag:P.audio_itag,yS:Z?e[Z]:void 0,f9:P.drm_families,z$:c,audioChannels:Number(P.audio_channels)});p[P.itag]=p[P.itag]||[];p[P.itag].push(P)}else N[P.itag]="enchdr"}return p}; +ZyS=function(C,b,h,N,p){this.N=C;this.K=b;this.G=h;this.cpn=N;this.W=p;this.X=0;this.j=""}; +YwW=function(C,b){C.N.some(function(h){var N;return((N=h.z$)==null?void 0:N.getId())===b}); +C.j=b}; +bW=function(C,b,h){C.cpn&&(b=g.dt(b,{cpn:C.cpn}));h&&(b=g.dt(b,{paired:h}));return b}; +aVU=function(C,b){C=C.itag.toString();b!==null&&(C+=b.itag.toString());return C}; +lVl=function(C){for(var b=[],h=[],N=g.z(C.K),p=N.next();!p.done;p=N.next())p=p.value,p.bitrate<=C.X?b.push(p):h.push(p);b.sort(function(P,c){return c.bitrate-P.bitrate}); +h.sort(function(P,c){return P.bitrate-c.bitrate}); +C.K=b.concat(h)}; +hq=function(C,b,h){this.j=C;this.K=b;this.expiration=h;this.dU=null}; +og_=function(C,b){if(!(Tn||Tu()||nN()))return null;C=LT6(b,C.D("html5_filter_fmp4_in_hls"));if(!C)return null;b=[];for(var h={},N=g.z(Object.keys(C)),p=N.next();!p.done;p=N.next()){p=g.z(C[p.value]);for(var P=p.next();!P.done;P=p.next()){var c=P.value;c.z$&&(P=c.z$.getId(),h[P]||(c=new g.nx(P,c.z$),h[P]=c,b.push(c)))}}return b.length>0?b:null}; +zuc=function(C,b,h,N,p,P,c){if(!(Tn||Tu()||nN()))return ua();var e={},L=FTW(h),Z=LT6(h,C.D("html5_filter_fmp4_in_hls"),C.G.W,e);if(!Z)return c({noplst:1}),ua();G9l(Z);h={};var Y=(h.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",h),a;h=[];var l=[],F=[],G=null,V="";N=N&&N.match(/hls_timedtext_playlist/)?new eu_({itag:"0",url:N,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,z$:new g.wd("English","en",!1)}):null;for(var q=g.z(Object.keys(Z)),f=q.next();!f.done;f=q.next())if(f=f.value,!C.D("html5_disable_drm_hfr_1080")|| +f!=="383"&&f!=="373"){f=g.z(Z[f]);for(var y=f.next();!y.done;y=f.next())if(y=y.value,y.width){for(var u=g.z(y.K),K=u.next();!K.done;K=u.next())if(K=K.value,Z[K]){y.j=K;break}y.j||(y.j=SwK(Z,y));if(u=Z[y.j])if(h.push(y),y.f9==="fairplay"&&(a=Y),K="",y.yS==="PQ"?K="smpte2084":y.yS==="HLG"&&(K="arib-std-b67"),K&&(V=K),F.push($ZU(u,[y],N,P,y.itag,y.width,y.height,y.fps,L,void 0,void 0,a,K)),!G||y.width*y.height*y.fps>G.width*G.height*G.fps)G=y}else l.push(y)}else e[f]="disdrmhfr";F.reduce(function(v, +T){return T.getInfo().isEncrypted()&&v},!0)&&(a=Y); +p=Math.max(p,0);Y=G||{};Z=Y.fps===void 0?0:Y.fps;G=Y.width===void 0?0:Y.width;Y=Y.height===void 0?0:Y.height;q=C.D("html5_native_audio_track_switching");F.push($ZU(l,h,N,P,"93",G,Y,Z,L,"auto",p,a,V,q));Object.entries(e).length&&c(e);return Cj(C.G,F,QY(C,b),!1)}; +$ZU=function(C,b,h,N,p,P,c,e,L,Z,Y,a,l,F){for(var G=0,V="",q=g.z(C),f=q.next();!f.done;f=q.next())f=f.value,V||(V=f.itag),f.audioChannels&&f.audioChannels>G&&(G=f.audioChannels,V=f.itag);p=new v9(p,"application/x-mpegURL",{audio:new RT(0,G),video:new X7(P,c,e,null,void 0,Z,void 0,l),f9:a,nz:V});C=new ZyS(C,b,h?[h]:[],N,!!F);C.X=Y?Y:1369843;return new hq(p,C,L)}; +FTW=function(C){C=g.z(C);for(var b=C.next();!b.done;b=C.next())if(b=b.value,b.url&&(b=b.url.split("expire/"),!(b.length<=1)))return+b[1].split("/")[0];return NaN}; +SwK=function(C,b){for(var h=g.z(Object.keys(C)),N=h.next();!N.done;N=h.next()){N=N.value;var p=C[N][0];if(!p.width&&p.f9===b.f9&&!p.audioChannels)return N}return""}; +G9l=function(C){for(var b=new Set,h=g.z(Object.values(C)),N=h.next();!N.done;N=h.next())N=N.value,N.length&&(N=N[0],N.height&&N.codecs.startsWith("vp09")&&b.add(N.height));h=[];if(b.size){N=g.z(Object.keys(C));for(var p=N.next();!p.done;p=N.next())if(p=p.value,C[p].length){var P=C[p][0];P.height&&b.has(P.height)&&!P.codecs.startsWith("vp09")&&h.push(p)}}b=g.z(h);for(h=b.next();!h.done;h=b.next())delete C[h.value]}; +Nm=function(C,b){this.j=C;this.K=b}; +HyV=function(C,b,h,N){var p=[];h=g.z(h);for(var P=h.next();!P.done;P=h.next()){var c=P.value;if(c.url){P=new g.Y0(c.url,!0);if(c.s){var e=P,L=c.sp,Z=$oW(decodeURIComponent(c.s));e.set(L,encodeURIComponent(Z))}e=g.z(Object.keys(N));for(L=e.next();!L.done;L=e.next())L=L.value,P.set(L,N[L]);c=CI(c.type,c.quality,c.itag,c.width,c.height);p.push(new Nm(c,P))}}return Cj(C.G,p,QY(C,b),!1)}; +gF=function(C,b){this.j=C;this.K=b}; +VbK=function(C,b,h){var N=[];h=g.z(h);for(var p=h.next();!p.done;p=h.next())if((p=p.value)&&p.url){var P=CI(p.type,"medium","0");N.push(new gF(P,p.url))}return Cj(C.G,N,QY(C,b),!1)}; +MbV=function(C,b){var h=[],N=CI(b.type,"auto",b.itag);h.push(new gF(N,b.url));return Cj(C.G,h,!1,!0)}; +mZ6=function(C){return C&&qwW[C]?qwW[C]:null}; +fVU=function(C){if(C=C.commonConfig)this.url=C.url,this.urlQueryOverride=C.urlQueryOverride,C.ustreamerConfig&&(this.cK=CO(C.ustreamerConfig)||void 0)}; +AvH=function(C,b){var h;if(b=b==null?void 0:(h=b.watchEndpointSupportedOnesieConfig)==null?void 0:h.html5PlaybackOnesieConfig)C.t7=new fVU(b)}; +g.pj=function(C){C=C===void 0?{}:C;this.languageCode=C.languageCode||"";this.languageName=C.languageName||null;this.kind=C.kind||"";this.name=C.name===void 0?null:C.name;this.displayName=C.displayName||null;this.id=C.id||null;this.j=C.is_servable||!1;this.isTranslateable=C.is_translateable||!1;this.url=C.url||null;this.vssId=C.vss_id||"";this.isDefault=C.is_default||!1;this.translationLanguage=C.translationLanguage||null;this.xtags=C.xtags||"";this.captionId=C.captionId||""}; +g.jz=function(C){var b={languageCode:C.languageCode,languageName:C.languageName,displayName:g.P7(C),kind:C.kind,name:C.name,id:C.id,is_servable:C.j,is_default:C.isDefault,is_translateable:C.isTranslateable,vss_id:C.vssId};C.xtags&&(b.xtags=C.xtags);C.captionId&&(b.captionId=C.captionId);C.translationLanguage&&(b.translationLanguage=C.translationLanguage);return b}; +g.c7=function(C){return C.translationLanguage?C.translationLanguage.languageCode:C.languageCode}; +g.yvS=function(C){var b=C.vssId;C.translationLanguage&&b&&(b="t"+b+"."+g.c7(C));return b}; +g.P7=function(C){var b=[];if(C.displayName)b.push(C.displayName);else{var h=C.languageName||"";b.push(h);C.kind==="asr"&&h.indexOf("(")===-1&&b.push(" (Automatic Captions)");C.name&&b.push(" - "+C.name)}C.translationLanguage&&b.push(" >> "+C.translationLanguage.languageName);return b.join("")}; +uiH=function(C,b,h,N){C||(C=b&&rvK.hasOwnProperty(b)&&iyW.hasOwnProperty(b)?iyW[b]+"_"+rvK[b]:void 0);b=C;if(!b)return null;C=b.match(Jv1);if(!C||C.length!==5)return null;if(C=b.match(Jv1)){var p=Number(C[3]),P=[7,8,10,5,6];C=!(Number(C[1])===1&&p===8)&&P.indexOf(p)>=0}else C=!1;return h||N||C?b:null}; +k6=function(C,b){for(var h={},N=g.z(Object.keys(RuW)),p=N.next();!p.done;p=N.next()){p=p.value;var P=b?b+p:p;P=C[P+"_webp"]||C[P];g.C8(P)&&(h[RuW[p]]=P)}return h}; +ez=function(C){var b={};if(!C||!C.thumbnails)return b;C=C.thumbnails.filter(function(e){return!!e.url}); +C.sort(function(e,L){return e.width-L.width||e.height-L.height}); +for(var h=g.z(Object.keys(Qzx)),N=h.next();!N.done;N=h.next()){var p=Number(N.value);N=Qzx[p];for(var P=g.z(C),c=P.next();!c.done;c=P.next())if(c=c.value,c.width>=p){p=UZl(c.url);g.C8(p)&&(b[N]=p);break}}(C=C.pop())&&C.width>=1280&&(C=UZl(C.url),g.C8(C)&&(b["maxresdefault.jpg"]=C));return b}; +UZl=function(C){return C.startsWith("//")?"https:"+C:C}; +Lj=function(C){return C&&C.baseUrl||""}; +Za=function(C){C=g.PQ(C);for(var b=g.z(Object.keys(C)),h=b.next();!h.done;h=b.next()){h=h.value;var N=C[h];C[h]=Array.isArray(N)?N[0]:N}return C}; +XzK=function(C,b){C.botguardData=b.playerAttestationRenderer.botguardData;b=b.playerAttestationRenderer.challenge;b!=null&&(C.H4=b)}; +Oy1=function(C,b){b=g.z(b);for(var h=b.next();!h.done;h=b.next()){h=h.value;var N=h.interstitials.map(function(c){var e=g.d(c,KTW);if(e)return{is_yto_interstitial:!0,raw_player_response:e};if(c=g.d(c,szS))return Object.assign({is_yto_interstitial:!0},gJ(c))}); +N=g.z(N);for(var p=N.next();!p.done;p=N.next())switch(p=p.value,h.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":C.interstitials=C.interstitials.concat({time:0,playerVars:p,MG:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":C.interstitials=C.interstitials.concat({time:0x7ffffffffffff,playerVars:p,MG:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var P=Number(h.podConfig.timeToInsertAtMillis);C.interstitials=C.interstitials.concat({time:P,playerVars:p, +MG:P===0?5:7})}}}; +vgl=function(C,b){if(b=b.find(function(h){return!(!h||!h.tooltipRenderer)}))C.tooltipRenderer=b.tooltipRenderer}; +DZl=function(C,b){b.subscribeCommand&&(C.subscribeCommand=b.subscribeCommand);b.unsubscribeCommand&&(C.unsubscribeCommand=b.unsubscribeCommand);b.addToWatchLaterCommand&&(C.addToWatchLaterCommand=b.addToWatchLaterCommand);b.removeFromWatchLaterCommand&&(C.removeFromWatchLaterCommand=b.removeFromWatchLaterCommand);b.getSharePanelCommand&&(C.getSharePanelCommand=b.getSharePanelCommand)}; +dZx=function(C,b){b!=null?(C.Oa=b,C.jS=!0):(C.Oa="",C.jS=!1)}; +Y6=function(C,b){this.type=C||"";this.id=b||""}; +g.aQ=function(C){return new Y6(C.substring(0,2),C.substring(2))}; +g.lW=function(C,b){this.Rf=C;this.author="";this.iO=null;this.playlistLength=0;this.j=this.sessionData=null;this.V={};this.title="";if(b){this.author=b.author||b.playlist_author||"";this.title=b.playlist_title||"";if(C=b.session_data)this.sessionData=hK(C,"&");var h;this.j=((h=b.thumbnail_ids)==null?void 0:h.split(",")[0])||null;this.V=k6(b,"playlist_");this.videoId=b.video_id||void 0;if(h=b.list)switch(b.listType){case "user_uploads":this.playlistId=(new Y6("UU","PLAYER_"+h)).toString();break;default:if(C= +b.playlist_length)this.playlistLength=Number(C)||0;this.playlistId=g.aQ(h).toString();if(b=b.video)this.videoId=(b[0]||null).video_id||void 0}else b.playlist&&(this.playlistLength=b.playlist.toString().split(",").length)}}; +g.oQ=function(C,b){this.Rf=C;this.nB=this.author="";this.iO=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.Wh=this.lengthText="";this.sessionData=null;this.V={};this.title="";if(b){this.ariaLabel=b.aria_label||void 0;this.author=b.author||"";this.nB=b.nB||"";if(C=b.endscreen_autoplay_session_data)this.iO=hK(C,"&");this.uO=b.uO;this.isLivePlayback=b.live_playback==="1";this.isUpcoming=!!b.isUpcoming;if(C=b.length_seconds)this.lengthSeconds=typeof C==="string"?Number(C):C;this.lengthText= +b.lengthText||"";this.Wh=b.Wh||"";this.publishedTimeText=b.publishedTimeText||void 0;if(C=b.session_data)this.sessionData=hK(C,"&");this.shortViewCount=b.short_view_count_text||void 0;this.V=k6(b);this.title=b.title||"";this.videoId=b.docid||b.video_id||b.videoId||b.id||void 0;this.watchUrl=b.watchUrl||void 0}}; +WTK=function(C){var b,h,N=(b=C.getWatchNextResponse())==null?void 0:(h=b.contents)==null?void 0:h.twoColumnWatchNextResults,p,P,c,e,L;C=(p=C.getWatchNextResponse())==null?void 0:(P=p.playerOverlays)==null?void 0:(c=P.playerOverlayRenderer)==null?void 0:(e=c.endScreen)==null?void 0:(L=e.watchNextEndScreenRenderer)==null?void 0:L.results;if(!C){var Z,Y;C=N==null?void 0:(Z=N.endScreen)==null?void 0:(Y=Z.endScreen)==null?void 0:Y.results}return C}; +g.Gt=function(C){var b,h,N;C=g.d((b=C.getWatchNextResponse())==null?void 0:(h=b.playerOverlays)==null?void 0:(N=h.playerOverlayRenderer)==null?void 0:N.decoratedPlayerBarRenderer,FJ);return g.d(C==null?void 0:C.playerBar,Eg6)}; +ngK=function(C){this.j=C.playback_progress_0s_url;this.N=C.playback_progress_2s_url;this.K=C.playback_progress_10s_url}; +tb1=function(){if(Sz===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(b){}a:{try{var C=!!self.localStorage}catch(b){C=!1}if(C&&(C=g.K2(g.Tm()+"::yt-player"))){Sz=new vX(C);break a}Sz=void 0}}return Sz}; +g.$6=function(){var C=tb1();if(!C)return{};try{var b=C.get("yt-player-lv");return JSON.parse(b||"{}")}catch(h){return{}}}; +g.Tq1=function(C){var b=tb1();b&&(C=JSON.stringify(C),b.set("yt-player-lv",C))}; +g.zt=function(C){return g.$6()[C]||0}; +g.H7=function(C,b){var h=g.$6();b!==h[C]&&(b!==0?h[C]=b:delete h[C],g.Tq1(h))}; +g.VK=function(C){return g.R(function(b){return b.return(g.E1(Bqo(),C))})}; +qm=function(C,b,h,N,p,P,c,e){var L,Z,Y,a,l,F;return g.R(function(G){switch(G.j){case 1:return L=g.zt(C),L===4?G.return(4):g.J(G,g.CQ(),2);case 2:Z=G.K;if(!Z)throw g.HG("wiac");if(!e||c===void 0){G.WE(3);break}return g.J(G,IVl(e,c),4);case 4:c=G.K;case 3:return Y=h.lastModified||"0",g.J(G,g.VK(Z),5);case 5:return a=G.K,g.z6(G,6),Mm++,g.J(G,g.uf(a,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",M8:!0},function(V){if(P!==void 0&&c!==void 0){var q=""+C+"|"+b.id+"|"+Y+"|"+String(P).padStart(10, +"0");q=g.RR(V.objectStore("media"),c,q)}else q=g.M$.resolve(void 0);var f=xZH(C,b.CK()),y=xZH(C,!b.CK()),u={fmts:wzo(N),format:h||{}};f=g.RR(V.objectStore("index"),u,f);var K=N.downloadedEndTime===-1;u=K?V.objectStore("index").get(y):g.M$.resolve(void 0);var v={fmts:"music",format:{}};V=K&&p&&!b.CK()?g.RR(V.objectStore("index"),v,y):g.M$.resolve(void 0);return g.M$.all([V,u,q,f]).then(function(T){T=g.z(T);T.next();T=T.next().value;Mm--;var t=g.zt(C);if(t!==4&&K&&p||T!==void 0&&g.CEU(T.fmts))t=1,g.H7(C, +t);return t})}),8); +case 8:return G.return(G.K);case 6:l=g.MW(G);Mm--;F=g.zt(C);if(F===4)return G.return(F);g.H7(C,4);throw l;}})}; +g.bGl=function(C){var b,h;return g.R(function(N){if(N.j==1)return g.J(N,g.CQ(),2);if(N.j!=3){b=N.K;if(!b)throw g.HG("ri");return g.J(N,g.VK(b),3)}h=N.K;return N.return(g.uf(h,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(p){var P=IDBKeyRange.bound(C+"|",C+"~");return p.objectStore("index").getAll(P).then(function(c){return c.map(function(e){return e?e.format:{}})})}))})}; +Nb6=function(C,b,h,N,p){var P,c,e;return g.R(function(L){if(L.j==1)return g.J(L,g.CQ(),2);if(L.j!=3){P=L.K;if(!P)throw g.HG("rc");return g.J(L,g.VK(P),3)}c=L.K;e=g.uf(c,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(Z){var Y=""+C+"|"+b+"|"+h+"|"+String(N).padStart(10,"0");return Z.objectStore("media").get(Y)}); +return p?L.return(e.then(function(Z){if(Z===void 0)throw Error("No data from indexDb");return hL1(p,Z)}).catch(function(Z){throw new g.tJ("Error while reading chunk: "+Z.name+", "+Z.message); +})):L.return(e)})}; +g.CEU=function(C){return C?C==="music"?!0:C.includes("dlt=-1")||!C.includes("dlt="):!1}; +xZH=function(C,b){return""+C+"|"+(b?"v":"a")}; +wzo=function(C){var b={};return NQ((b.dlt=C.downloadedEndTime.toString(),b.mket=C.maxKnownEndTime.toString(),b.avbr=C.averageByteRate.toString(),b))}; +pAW=function(C){var b={},h={};C=g.z(C);for(var N=C.next();!N.done;N=C.next()){var p=N.value,P=p.split("|");p.match(g.gVK)?(N=Number(P.pop()),isNaN(N)?h[p]="?":(P=P.join("|"),(p=b[P])?(P=p[p.length-1],N===P.end+1?P.end=N:p.push({start:N,end:N})):b[P]=[{start:N,end:N}])):h[p]="?"}C=g.z(Object.keys(b));for(N=C.next();!N.done;N=C.next())N=N.value,h[N]=b[N].map(function(c){return c.start+"-"+c.end}).join(","); +return h}; +me=function(C){g.cr.call(this);this.j=null;this.N=new v4;this.j=null;this.W=new Set;this.crossOrigin=C||""}; +PEW=function(C,b,h){for(h=fj(C,h);h>=0;){var N=C.levels[h];if(N.isLoaded(Aq(N,b))&&(N=g.yK(N,b)))return N;h--}return g.yK(C.levels[0],b)}; +caW=function(C,b,h){h=fj(C,h);for(var N,p;h>=0;h--)if(N=C.levels[h],p=Aq(N,b),!N.isLoaded(p)){N=C;var P=h,c=P+"-"+p;N.W.has(c)||(N.W.add(c),N.N.enqueue(P,{ZM:P,Uj:p}))}jjc(C)}; +jjc=function(C){if(!C.j&&!C.N.isEmpty()){var b=C.N.remove();C.j=kLl(C,b)}}; +kLl=function(C,b){var h=document.createElement("img");C.crossOrigin&&(h.crossOrigin=C.crossOrigin);h.src=C.levels[b.ZM].p9(b.Uj);h.onload=function(){var N=b.ZM,p=b.Uj;C.j!==null&&(C.j.onload=null,C.j=null);N=C.levels[N];N.loaded.add(p);jjc(C);var P=N.columns*N.rows;p*=P;N=Math.min(p+P-1,N.M1()-1);p=[p,N];C.publish("l",p[0],p[1])}; +return h}; +g.rF=function(C,b,h,N){this.level=C;this.X=b;this.loaded=new Set;this.level=C;this.X=b;C=h.split("#");this.width=Math.floor(Number(C[0]));this.height=Math.floor(Number(C[1]));this.frameCount=Math.floor(Number(C[2]));this.columns=Math.floor(Number(C[3]));this.rows=Math.floor(Number(C[4]));this.j=Math.floor(Number(C[5]));this.N=C[6];this.signature=C[7];this.videoLength=N}; +Aq=function(C,b){return Math.floor(b/(C.columns*C.rows))}; +g.yK=function(C,b){b>=C.ZD()&&C.nE();var h=Aq(C,b),N=C.columns*C.rows,p=b%N;b=p%C.columns;p=Math.floor(p/C.columns);var P=C.nE()+1-N*h;if(P1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; +eLK=function(C,b,h){return(C=C.levels[b])?C.N5(h):-1}; +fj=function(C,b){var h=C.X.get(b);if(h)return h;h=C.levels.length;for(var N=0;N=b)return C.X.set(b,N),N;C.X.set(b,h-1);return h-1}; +Jq=function(C,b,h,N){h=h.split("#");h=[h[1],h[2],0,h[3],h[4],-1,h[0],""].join("#");g.rF.call(this,C,b,h,0);this.K=null;this.G=N?2:0}; +uW=function(C,b,h,N){iW.call(this,C,0,void 0,b,!(N===void 0||!N));for(C=0;C(h!=null?h:50)&&(h=S26.shift())&&OF.delete(h),h=p),p!==h&&C.tp("ssei","dcpn_"+p+"_"+h+"_"+C.clientPlaybackNonce),h)}; +XJ=function(C,b){var h=b.raw_watch_next_response;if(!h){var N=b.watch_next_response;N&&(h=JSON.parse(N))}if(h){C.rO=h;var p=C.rO.playerCueRangeSet;p&&g.v7(C,p);var P=C.rO.playerOverlays;if(P){var c=P.playerOverlayRenderer;if(c){var e=c.autonavToggle;e&&(C.autoplaySwitchButtonRenderer=g.d(e,$xK),C.D("web_player_autonav_use_server_provided_state")&&Da(C)&&(C.autonavState=C.autoplaySwitchButtonRenderer.enabled?2:1));var L=c.videoDetails;if(L){var Z=L.embeddedPlayerOverlayVideoDetailsRenderer;var Y=L.playerOverlayVideoDetailsRenderer; +Y&&(Y.title&&(b.title=g.oS(Y.title)),Y.subtitle&&(b.subtitle=g.oS(Y.subtitle)))}g.mG(C.Rf)&&(C.mw=!!c.addToMenu);zL1(C,c.shareButton);c.startPosition&&c.endPosition&&(C.progressBarStartPosition=c.startPosition,C.progressBarEndPosition=c.endPosition);var a=c.gatedActionsOverlayRenderer;a&&(C.OP=g.d(a,HGW));var l,F,G,V=g.d((l=C.getWatchNextResponse())==null?void 0:(F=l.playerOverlays)==null?void 0:(G=F.playerOverlayRenderer)==null?void 0:G.infoPanel,VFS);if(V){C.Hp=Number(V==null?void 0:V.durationMs)|| +NaN;if(V==null?0:V.infoPanelOverviewViewModel)C.Fy=V==null?void 0:V.infoPanelOverviewViewModel;if(V==null?0:V.infoPanelDetailsViewModel)C.RS=V==null?void 0:V.infoPanelDetailsViewModel}C.showSeekingControls=!!c.showSeekingControls}}var q,f,y=(q=C.getWatchNextResponse())==null?void 0:(f=q.contents)==null?void 0:f.twoColumnWatchNextResults;if(y){var u=y.desktopOverlay&&g.d(y.desktopOverlay,MFc);u&&(u.suppressShareButton&&(C.showShareButton=!1),u.suppressWatchLaterButton&&(C.mw=!1))}Z&&q2l(C,b,Z);var K= +Pj(0,b.autoplay_count),v=C.getWatchNextResponse(),T,t=(T=v.contents)==null?void 0:T.twoColumnWatchNextResults,go,jV,CW,W=(go=v.playerOverlays)==null?void 0:(jV=go.playerOverlayRenderer)==null?void 0:(CW=jV.autoplay)==null?void 0:CW.playerOverlayAutoplayRenderer,w=WTK(C),H,E=(H=v.contents)==null?void 0:H.singleColumnWatchNextResults;if(E){var v1;if(((v1=E.autoplay)==null?0:v1.autoplay)&&!E.playlist){var Vj=E.autoplay.autoplay.sets,ad={},fW=new g.oQ(C.Y()),wo=null,pd;if(Vj){for(var Ge=g.z(Vj),m=Ge.next();!m.done;m= +Ge.next()){var A=m.value.autoplayVideoRenderer;if(A&&A.compactVideoRenderer){wo=A.compactVideoRenderer;break}}if(pd=Vj[0].autoplayVideo){var r=pd.clickTrackingParams;r&&(ad.itct=r);ad.autonav="1";ad.playnext=String(K)}}else ad.feature="related-auto";var Q=g.d(pd,g.dF);if(wo){fW.videoId=wo.videoId;var X=wo.shortBylineText;X&&(fW.author=g.oS(X));var hl=wo.title;hl&&(fW.title=g.oS(hl))}else Q!=null&&Q.videoId&&(fW.videoId=Q.videoId);fW.iO=ad;C.suggestions=[];C.tH=fW}}if(w){for(var pW=[],P1=g.z(w),U= +P1.next();!U.done;U=P1.next()){var LW=U.value,ol=void 0,k_=null;if(LW.endScreenVideoRenderer){var ic=LW.endScreenVideoRenderer,lC=ic.title;k_=new g.oQ(C.Y());k_.videoId=ic.videoId;k_.lengthSeconds=ic.lengthInSeconds||0;var v$=ic.publishedTimeText;v$&&(k_.publishedTimeText=g.oS(v$));var aI=ic.shortBylineText;aI&&(k_.author=g.oS(aI));var nW=ic.shortViewCountText;nW&&(k_.shortViewCount=g.oS(nW));if(lC){k_.title=g.oS(lC);var sz=lC.accessibility;if(sz){var eY=sz.accessibilityData;eY&&eY.label&&(k_.ariaLabel= +eY.label)}}var uK=ic.navigationEndpoint;if(uK){ol=uK.clickTrackingParams;var nR=g.d(uK,g.dF),aV=g.d(uK,g.UY);nR?k_.uO=nR:aV!=null&&(k_.watchUrl=aV.url)}var WP=ic.thumbnailOverlays;if(WP)for(var Oz=g.z(WP),E0=Oz.next();!E0.done;E0=Oz.next()){var zz=E0.value.thumbnailOverlayTimeStatusRenderer;if(zz)if(zz.style==="LIVE"){k_.isLivePlayback=!0;break}else if(zz.style==="UPCOMING"){k_.isUpcoming=!0;break}}k_.V=ez(ic.thumbnail)}else if(LW.endScreenPlaylistRenderer){var lF=LW.endScreenPlaylistRenderer,uh= +lF.navigationEndpoint;if(!uh)continue;var lK=g.d(uh,g.dF);if(!lK)continue;var R9=lK.videoId;k_=new g.lW(C.Y());k_.playlistId=lF.playlistId;k_.playlistLength=Number(lF.videoCount)||0;k_.j=R9||null;k_.videoId=R9;var ub=lF.title;ub&&(k_.title=g.oS(ub));var R3=lF.shortBylineText;R3&&(k_.author=g.oS(R3));ol=uh.clickTrackingParams;k_.V=ez(lF.thumbnail)}k_&&(ol&&(k_.sessionData={itct:ol}),pW.push(k_))}C.suggestions=pW}if(W){C.qB=!!W.preferImmediateRedirect;C.k6=C.k6||!!W.webShowNewAutonavCountdown;C.xf= +C.xf||!!W.webShowBigThumbnailEndscreen;if(C.k6||C.xf){var rH=t||null,CL=new g.oQ(C.Y());CL.videoId=W.videoId;var nM=W.videoTitle;if(nM){CL.title=g.oS(nM);var ps=nM.accessibility;if(ps){var mO=ps.accessibilityData;mO&&mO.label&&(CL.ariaLabel=mO.label)}}var vC=W.byline;vC&&(CL.author=g.oS(vC));var l7=W.publishedTimeText;l7&&(CL.publishedTimeText=g.oS(l7));var lJ=W.shortViewCountText;lJ&&(CL.shortViewCount=g.oS(lJ));var oA=W.thumbnailOverlays;if(oA)for(var F1=g.z(oA),g8=F1.next();!g8.done;g8=F1.next()){var cc= +g8.value.thumbnailOverlayTimeStatusRenderer;if(cc)if(cc.style==="LIVE"){CL.isLivePlayback=!0;break}else if(cc.style==="UPCOMING"){CL.isUpcoming=!0;break}else if(cc.style==="DEFAULT"&&cc.text){CL.lengthText=g.oS(cc.text);var pg=cc.text.accessibility;if(pg){var Ps=pg.accessibilityData;Ps&&Ps.label&&(CL.Wh=Ps.label||"")}break}}CL.V=ez(W.background);var GF=W.nextButton;if(GF){var SJ=GF.buttonRenderer;if(SJ){var $e=SJ.navigationEndpoint;if($e){var zF=g.d($e,g.dF);zF&&(CL.uO=zF)}}}if(W.topBadges){var H6= +W.topBadges[0];if(H6){var Vq=g.d(H6,mxH);Vq&&Vq.style==="BADGE_STYLE_TYPE_PREMIUM"&&(CL.AyE=!0)}}var y4=W.alternativeTitle;y4&&(CL.nB=g.oS(y4));var fU={autonav:"1",playnext:String(K)};CL.playlistId&&(fU.autoplay="1");if(rH){var r9,t8,jd,M8,cs=(r9=rH.autoplay)==null?void 0:(t8=r9.autoplay)==null?void 0:(jd=t8.sets)==null?void 0:(M8=jd[0])==null?void 0:M8.autoplayVideo;if(cs){var q8=cs.clickTrackingParams;q8&&(fU.itct=q8);var k5=g.d(cs,g.dF);k5&&(CL.UW=k5)}}else if(W){var m1,fI,AA,yq=(m1=W.nextButton)== +null?void 0:(fI=m1.buttonRenderer)==null?void 0:(AA=fI.navigationEndpoint)==null?void 0:AA.clickTrackingParams;yq&&(fU.itct=yq)}fU.itct||(fU.feature="related-auto");CL.iO=fU;C.suggestions||(C.suggestions=[]);C.tH=CL}W.countDownSecs!=null&&(C.RW=W.countDownSecs*1E3);W.countDownSecsForFullscreen!=null&&(C.Qh=W.countDownSecsForFullscreen>=0?W.countDownSecsForFullscreen*1E3:-1);C.D("web_autonav_color_transition")&&W.watchToWatchTransitionRenderer&&(C.watchToWatchTransitionRenderer=g.d(W.watchToWatchTransitionRenderer, +f8l))}var ed=WTK(C);if(ed){var r6,i4,iJ,Lg=ed==null?void 0:(r6=ed[0])==null?void 0:(i4=r6.endScreenVideoRenderer)==null?void 0:(iJ=i4.navigationEndpoint)==null?void 0:iJ.clickTrackingParams,JA=g.W7(C);Lg&&JA&&(JA.sessionData={itct:Lg})}C.rO.currentVideoThumbnail&&(C.V=ez(C.rO.currentVideoThumbnail));var uJ,yw,HJ,rl,Zd,$w=(uJ=C.rO)==null?void 0:(yw=uJ.contents)==null?void 0:(HJ=yw.twoColumnWatchNextResults)==null?void 0:(rl=HJ.results)==null?void 0:(Zd=rl.results)==null?void 0:Zd.contents;if($w&&$w[1]){var zo, +Hm,RA,kX,Vo=(zo=$w[1].videoSecondaryInfoRenderer)==null?void 0:(Hm=zo.owner)==null?void 0:(RA=Hm.videoOwnerRenderer)==null?void 0:(kX=RA.thumbnail)==null?void 0:kX.thumbnails;Vo&&Vo.length&&(C.profilePicture=Vo[Vo.length-1].url)}var JE=ka(b),Qq,QV=(Qq=C.getWatchNextResponse())==null?void 0:Qq.onResponseReceivedEndpoints;if(QV)for(var UO=g.z(QV),Y5=UO.next();!Y5.done;Y5=UO.next()){var aw=Y5.value;g.d(aw,EF)&&(C.v0=g.d(aw,EF));var eu=g.d(aw,Aa_),X1=void 0;if((X1=eu)==null?0:X1.entityKeys)C.RX=eu.entityKeys|| +[],eu.visibleOnLoadKeys&&(C.visibleOnLoadKeys=eu.visibleOnLoadKeys)}if(C.D("web_key_moments_markers")){var RD=g.nj.getState().entities,KI=g.cW("visibility_override","markersVisibilityOverrideEntity");var DO=e_(RD,"markersVisibilityOverrideEntity",KI);C.Vz=(DO==null?void 0:DO.videoId)===(C.videoId||JE)&&(DO==null?0:DO.visibilityOverrideMarkersKey)?DO.visibilityOverrideMarkersKey:C.visibleOnLoadKeys;C.visibleOnLoadKeys=[].concat(g.M(C.Vz))}}}; +Da=function(C){var b;return((b=C.autoplaySwitchButtonRenderer)==null?void 0:b.enabled)!==void 0}; +tq=function(C){return!!(C.N&&C.N.videoInfos&&C.N.videoInfos.length)}; +g.wF=function(C){var b=C.L;C.D("html5_gapless_unlimit_format_selection")&&Tt(C)&&(b=!1);var h=!!C.j&&C.j.yV,N=C.Rf,p=C.YF(),P=B7(C),c=C.G$,e=b,L=C.isOtf();b=C.q5();var Z=C.kh,Y=C.getUserAudio51Preference(),a=IQ(C),l=new hal(N);if(N.tZ()||N.D("html5_logging_format_selection"))l.K=!0;l.m6=P;l.G$=c&&N.J;l.Df=Y;g.dJ("windows nt 5.1")&&!g.i8&&(l.nk=!0);if(P=p)P=g.Ea(N)?hul(N):!1;P&&(l.nO=!0);e&&(l.nk=!0,l.yd=!0);L&&!N.D("html5_otf_prefer_vp9")&&(l.nk=!0);N.playerStyle==="picasaweb"&&(L&&(l.nk=!1),l.q2= +!1);Z&&(l.nk=!0);L_(N.G,Zl.CHANNELS)&&(N.D("html5_enable_aac51")&&(l.N2=!0),N.D("html5_enable_ac3")&&(l.X=!0),N.D("html5_enable_eac3")&&(l.G=!0),N.D("html5_enable_ac3_gapless")&&(l.rO=!0));N.D("html5_block_8k_hfr")&&(l.kh=!0);l.W=g.Zc(N.experiments,"html5_max_selectable_quality_ordinal");l.J=g.Zc(N.experiments,"html5_min_selectable_quality_ordinal");Ey&&(l.Xs=480);if(h||p)l.q2=!1;l.zi=!1;l.disableAv1=a;h=HR(N,l.j,void 0,l.disableAv1);h>0&&h<2160&&(Ye()||N.D("html5_format_hybridization"))&&(l.j.supportsChangeType= ++Ye(),l.Ml=h);h>=2160&&(l.Qz=!0);yc_()&&(l.j.serveVp9OverAv1IfHigherRes=0,l.Yr=!1);l.q5=b;l.CO=g.BG||hJ()&&!b?!1:!0;l.L=N.D("html5_format_hybridization");l.ob=N.D("html5_disable_encrypted_vp9_live_non_2k_4k");x6(C)&&(l.HW=C.D("html5_prefer_language_over_codec"));nN()&&C.playerResponse&&C.playerResponse.playerConfig&&C.playerResponse.playerConfig.webPlayerConfig&&C.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(l.X=!0,l.G=!0);C.L&&C.isAd()&&(C.E$&&(l.KO=C.E$),C.GW&&(l.N= +C.GW));l.t4=C.isLivePlayback&&C.o$()&&C.Rf.D("html5_drm_live_audio_51");l.sI=C.mf;return C.ge=l}; +IQ=function(C){return C.Rf.D("html5_disable_av1")||C.D("html5_gapless_shorts_disable_av1")&&Tt(C)?!0:!1}; +yaH=function(C){OG("drm_pb_s",void 0,C.t4);C.Yh||C.j&&Pe(C.j);var b={};C.j&&(b=vWx(C.mJ,g.wF(C),C.Rf.G,C.j,function(h){return C.publish("ctmp","fmtflt",h)},!0,new Set)); +b=new Xc(b,C.Rf,C.QI,C.useCobaltWidevine?nN()?C6(C):!1:!1,function(h,N){C.jp(h,N)}); +g.D(C,b);C.tN=!1;C.loading=!0;YXU(b,function(h){OG("drm_pb_f",void 0,C.t4);for(var N=g.z(h),p=N.next();!p.done;p=N.next())switch(p=p.value,p.flavor){case "fairplay":p.Yh=C.Yh;p.U$=C.U$;p.kN=C.kN;break;case "widevine":p.HT=C.HT}C.V7=h;if(C.V7.length>0&&(C.G=C.V7[0],C.Rf.tZ())){h={};N=g.z(Object.entries(C.G.j));for(p=N.next();!p.done;p=N.next()){var P=g.z(p.value);p=P.next().value;P=P.next().value;var c="unk";(p=p.match(/(.*)codecs="(.*)"/))&&(c=p[2]);h[c]=P}C.jp("drmProbe",h)}C.Eo()})}; +raV=function(C,b){if(b.length===0||b4(C))return null;hE(C,"html5_enable_cobalt_experimental_vp9_decoder")&&(S$=!0);var h=C.f9;var N=C.lengthSeconds,p=C.isLivePlayback,P=C.y_,c=C.Rf,e=OIH(b);if(p||P){c=c.experiments;N=new gs("",c,!0);N.K=!P;N.yV=!0;N.isManifestless=!0;N.isLive=!P;N.y_=P;b=g.z(b);for(p=b.next();!p.done;p=b.next()){var L=p.value;p=j$(L,h);e=Sk(L);e=ky(e.RH||L.url||"",e.Uf,e.s);var Z=e.get("id");Z&&Z.includes("%7E")&&(N.V=!0);var Y=void 0;Z=(Y=c)==null?void 0:Y.Fo("html5_max_known_end_time_rebase"); +Y=Number(L.targetDurationSec||5);L=Number(L.maxDvrDurationSec||14400);var a=Number(e.get("mindsq")||e.get("min_sq")||"0"),l=Number(e.get("maxdsq")||e.get("max_sq")||"0")||Infinity;N.G5=N.G5||a;N.Ee=N.Ee||l;var F=!B9(p);e&&b8(N,new vw(e,p,{jL:Y,DR:F,hc:L,G5:a,Ee:l,Nw:300,y_:P,Gd:Z}))}h=N}else if(e==="FORMAT_STREAM_TYPE_OTF"){N=N===void 0?0:N;P=new gs("",c.experiments,!1);P.duration=N||0;c=g.z(b);for(N=c.next();!N.done;N=c.next())N=N.value,b=j$(N,h,P.duration),p=Sk(N),(p=ky(p.RH||N.url||"",p.Uf,p.s))&& +(b.streamType==="FORMAT_STREAM_TYPE_OTF"?b8(P,new DT(p,b,"sq/0")):b8(P,new xi(p,b,zE(N.initRange),zE(N.indexRange))));P.isOtf=!0;h=P}else{N=N===void 0?0:N;P=new gs("",c.experiments,!1);P.duration=N||0;c=g.z(b);for(N=c.next();!N.done;N=c.next())e=N.value,N=j$(e,h,P.duration),b=zE(e.initRange),p=zE(e.indexRange),Z=Sk(e),(e=ky(Z.RH||e.url||"",Z.Uf,Z.s))&&b8(P,new xi(e,N,b,p));h=P}P=C.isLivePlayback&&!C.y_&&!C.Qz&&!C.isPremiere;C.D("html5_live_head_playable")&&(!NF(C)&&P&&C.jp("missingLiveHeadPlayable", +{}),C.Rf.KO==="yt"&&(h.CO=!0));return h}; +b4=function(C){return nN()?!C6(C):Tu()?!(!C.Yh||!C.D("html5_enable_safari_fairplay")&&nA()):!1}; +C6=function(C){return C.D("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; +g.v7=function(C,b){b=g.z(b);for(var h=b.next();!h.done;h=b.next())if(h=h.value,h.cueRangeSetIdentifier){var N=void 0;C.DF.set(h.cueRangeSetIdentifier,(N=h.playerCueRanges)!=null?N:[])}}; +g9=function(C){return!(!C.j||!C.j.isManifestless)}; +p6=function(C){return C.yd?C.isLowLatencyLiveStream&&C.j!=null&&Yy(C.j)>=5:C.isLowLatencyLiveStream&&C.j!=void 0&&Yy(C.j)>=5}; +iGH=function(C){return nN()&&C6(C)?!1:b4(C)&&(g.Mo(C.Rf)?!C.isLivePlayback:C.hlsvp)||!nA()||C.Sv?!0:!1}; +RLW=function(C){C.loading=!0;C.Xz=!1;if(Jal(C))g.bGl(C.videoId).then(function(N){uQK(C,N)}).then(function(){C.Eo()}); +else{w0(C.Yr)||g.QB(new g.tJ("DASH MPD Origin invalid: ",C.Yr));var b=C.Yr,h=g.Zc(C.Rf.experiments,"dash_manifest_version")||4;b=g.dt(b,{mpd_version:h});C.isLowLatencyLiveStream&&C.latencyClass!=="NORMAL"||(b=g.dt(b,{pacing:0}));T6x(b,C.Rf.experiments,C.isLivePlayback).then(function(N){C.HE()||(PT(C,N,!0),OG("mrc",void 0,C.t4),C.Eo())},function(N){C.HE()||(C.loading=!1,C.publish("dataloaderror",new Mw("manifest.net.retryexhausted",{backend:"manifest", +rc:N.status},1)))}); +OG("mrs",void 0,C.t4)}}; +uQK=function(C,b){var h=b.map(function(L){return L.itag}),N; +if((N=C.playerResponse)!=null&&N.streamingData){N=[];if(C.D("html5_offline_always_use_local_formats")){h=0;for(var p=g.z(b),P=p.next();!P.done;P=p.next()){P=P.value;var c=Object.assign({},P);c.signatureCipher="";N.push(c);c=g.z(C.playerResponse.streamingData.adaptiveFormats);for(var e=c.next();!e.done;e=c.next())if(e=e.value,P.itag===e.itag&&P.xtags===e.xtags){h+=1;break}}hY&&(Y=F.getInfo().audio.numChannels)}Y>2&&C.jp("hlschl",{mn:Y});var q;((q=C.ge)==null?0:q.K)&&C.jp("hlsfmtaf",{itags:a.join(".")});var f;if(C.D("html5_enable_vp9_fairplay")&&((f=C.G)==null?0:yZ(f)))for(C.jp("drm",{sbdlfbk:1}),Y=g.z(C.V7),a=Y.next();!a.done;a=Y.next())if(a=a.value,AP(a)){C.G=a;break}eM(C,Z)})}return ua()}; +sjS=function(C){if(C.isExternallyHostedPodcast&&C.OR){var b=k8(C.OR);if(!b[0])return ua();C.MD=b[0];return MbV(C.Rf,b[0]).then(function(h){eM(C,h)})}return C.Du&&C.V4?VbK(C.Rf,C.isAd(),C.Du).then(function(h){eM(C,h)}):ua()}; +vV_=function(C){if(C.isExternallyHostedPodcast)return ua();var b=k8(C.OR,C.ey);if(C.hlsvp){var h=LD1(C.hlsvp,C.clientPlaybackNonce,C.aL);b.push(h)}return HyV(C.Rf,C.isAd(),b,OGc(C)).then(function(N){eM(C,N)})}; +UxH=function(C,b){C.N=b;if(C.N){b=g.z(C.N.videoInfos);for(var h=b.next();!h.done;h=b.next()){h=h.value;var N=h.containerType;N!==0&&(C.pn[N]=h.id)}}L6(C);if(C.G&&C.N&&C.N.videoInfos&&!(C.N.videoInfos.length<=0)&&(b=Ty(C.N.videoInfos[0]),C.G.flavor==="fairplay"!==b))for(h=g.z(C.V7),N=h.next();!N.done;N=h.next())if(N=N.value,b===(N.flavor==="fairplay")){C.G=N;break}}; +eM=function(C,b){C.w9=b;UxH(C,new bk(g.q_(C.w9,function(h){return h.getInfo()})))}; +OGc=function(C){var b={cpn:C.clientPlaybackNonce,c:C.Rf.j.c,cver:C.Rf.j.cver};C.xb&&(b.ptk=C.xb,b.oid=C.NB,b.ptchn=C.Kh,b.pltype=C.XD,C.FP&&(b.m=C.FP));return b}; +g.ZS=function(C){return b4(C)&&C.Yh?(C={},C.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",C):C.K&&C.K.f9||null}; +DxS=function(C){var b=Y8(C);return b&&b.text?g.oS(b.text):C.paidContentOverlayText}; +dxW=function(C){var b=Y8(C);return b&&b.durationMs?bF(b.durationMs):C.paidContentOverlayDurationMs}; +Y8=function(C){var b,h,N;return C.playerResponse&&C.playerResponse.paidContentOverlay&&C.playerResponse.paidContentOverlay.paidContentOverlayRenderer||g.d((b=C.rO)==null?void 0:(h=b.playerOverlays)==null?void 0:(N=h.playerOverlayRenderer)==null?void 0:N.playerDisclosure,WDl)||null}; +aD=function(C){var b="";if(C.t1)return C.t1;C.isLivePlayback&&(b=C.allowLiveDvr?"dvr":C.isPremiere?"lp":C.Qz?"window":"live");C.y_&&(b="post");return b}; +g.l4=function(C,b){return typeof C.keywords[b]!=="string"?null:C.keywords[b]}; +EV6=function(C){return!!C.mu||!!C.m4||!!C.ju||!!C.KN||C.Cl||C.J.focEnabled||C.J.rmktEnabled}; +g.oD=function(C){return!!(C.Yr||C.OR||C.Du||C.hlsvp||C.mS())}; +UF=function(C){if(C.D("html5_onesie")&&C.errorCode)return!1;var b=g.xI(C.q2,"ypc");C.ypcPreview&&(b=!1);return C.bF()&&!C.loading&&(g.oD(C)||g.xI(C.q2,"heartbeat")||b)}; +k8=function(C,b){C=pN(C);var h={};if(b){b=g.z(b.split(","));for(var N=b.next();!N.done;N=b.next())(N=N.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(h[N[1]]={width:N[2],height:N[3]})}b=g.z(C);for(N=b.next();!N.done;N=b.next()){N=N.value;var p=h[N.itag];p&&(N.width=p.width,N.height=p.height)}return C}; +L6=function(C){var b=C.getAvailableAudioTracks();b=b.concat(C.BT);for(var h=0;h0:b||C.adFormat!=="17_8"||C.isAutonav||g.d_(C.Rf)||C.qG?C.Xy?!1:C.Rf.Eq||C.Rf.Dj||!g.$7(C.Rf)?!b&&f6(C)==="adunit"&&C.mu?!1:!0:!1:!1:(C.Xy?0:C.fK)&&g.$7(C.Rf)?!0:!1;C.D("html5_log_detailpage_autoplay")&&f6(C)==="detailpage"&&C.jp("autoplay_info",{autoplay:C.LZ,autonav:C.isAutonav,wasDompaused:C.Xy,result:b});return b}; +g.X5=function(C){return C.oauthToken||C.Rf.Fz}; +poW=function(C){if(C.D("html5_stateful_audio_normalization")){var b=1,h=g.Zc(C.Rf.experiments,"html5_default_ad_gain");h&&C.isAd()&&(b=h);var N;if(h=((N=C.X)==null?void 0:N.audio.K)||C.fl){N=(0,g.Ai)();C.bW=2;var p=N-C.Rf.RS<=C.maxStatefulTimeThresholdSec*1E3;C.applyStatefulNormalization&&p?C.bW=4:p||(C.Rf.n5=Infinity,C.Rf.RS=NaN);p=(C.bW===4?g.kv(C.Rf.n5,C.minimumLoudnessTargetLkfs,C.loudnessTargetLkfs):C.loudnessTargetLkfs)-h;if(C.bW!==4){var P,c,e,L,Z=((P=C.playerResponse)==null?void 0:(c=P.playerConfig)== +null?void 0:(e=c.audioConfig)==null?void 0:(L=e.loudnessNormalizationConfig)==null?void 0:L.statelessLoudnessAdjustmentGain)||0;p+=Z}p=Math.min(p,0);C.preserveStatefulLoudnessTarget&&(C.Rf.n5=h+p,C.Rf.RS=N);C=Math.min(1,Math.pow(10,p/20))||b}else C=gDc(C)}else C=gDc(C);return C}; +gDc=function(C){var b=1,h=g.Zc(C.Rf.experiments,"html5_default_ad_gain");h&&C.isAd()&&(b=h);var N;if(h=((N=C.X)==null?void 0:N.audio.N)||C.VX)C.bW=1;return Math.min(1,Math.pow(10,-h/20))||b}; +B7=function(C){var b=["MUSIC_VIDEO_TYPE_ATV","MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK"],h=vR(C.Rf)==="TVHTML5_SIMPLY"&&C.Rf.j.ctheme==="MUSIC";C.Eq||!g.KF(C.Rf)&&!h||!b.includes(C.musicVideoType)&&!C.isExternallyHostedPodcast||(C.Eq=!0);if(b=g.ES())b=/Starboard\/([0-9]+)/.exec(g.iC()),b=(b?parseInt(b[1],10):NaN)<10;h=C.Rf;h=(vR(h)==="TVHTML5_CAST"||vR(h)==="TVHTML5"&&(h.j.cver.startsWith("6.20130725")||h.j.cver.startsWith("6.20130726")))&&C.Rf.j.ctheme==="MUSIC";var N;if(N=!C.Eq)h||(h=C.Rf,h=vR(h)=== +"TVHTML5"&&h.j.cver.startsWith("7")),N=h;N&&!b&&(b=C.musicVideoType==="MUSIC_VIDEO_TYPE_PRIVATELY_OWNED_TRACK",h=(C.D("cast_prefer_audio_only_for_atv_and_uploads")||C.D("kabuki_pangea_prefer_audio_only_for_atv_and_uploads"))&&C.musicVideoType==="MUSIC_VIDEO_TYPE_ATV",b||h||C.isExternallyHostedPodcast)&&(C.Eq=!0);return C.Rf.deviceIsAudioOnly||C.Eq&&C.Rf.J}; +g.POW=function(C){var b;if(!(b=C.D("html5_enable_sabr_live_captions")&&C.yV()&&x6(C))){var h,N,p;b=((h=C.playerResponse)==null?void 0:(N=h.playerConfig)==null?void 0:(p=N.compositeVideoConfig)==null?void 0:p.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}return b}; +K6=function(C){var b,h,N;return!!((b=C.playerResponse)==null?0:(h=b.playerConfig)==null?0:(N=h.mediaCommonConfig)==null?0:N.splitScreenEligible)}; +Ov=function(C){var b;return!((b=C.playerResponse)==null||!b.compositePlayabilityStatus)}; +jax=function(C){return isNaN(C)?0:Math.max((Date.now()-C)/1E3-30,0)}; +vT=function(C){return!(!C.ZR||!C.Rf.J)&&C.mS()}; +c$W=function(C){return C.enablePreroll&&C.enableServerStitchedDai}; +kKc=function(C){return C.D("html5_enable_sabr_from_watch_server")&&C.zZ&&!C.A6}; +x6=function(C){var b=C.D("html5_enable_sabr_on_drive")&&C.Rf.KO==="gd";if(C.tU)return C.D("html5_enable_sabr_from_watch_server")&&C.jp("fds",{fds:!0},!0),!1;if(C.Rf.KO!=="yt"&&!b)return C.D("html5_enable_sabr_from_watch_server")&&C.jp("dsvn",{ns:C.Rf.KO},!0),!1;if(C.cotn||!C.j||C.j.isOtf||C.Uu&&!C.D("html5_enable_sabr_csdai"))return!1;if(C.D("html5_use_sabr_requests_for_debugging"))return!0;if(C.D("html5_enable_sabr_from_watch_server")){b=C.zZ&&!!C.A6;C.jp("esfw",{usbc:C.zZ,hsu:!!C.A6},!0);if(!C.D("html5_combine_client_check_for_sabr"))return b; +if(b)return!0;C.tp("sabr","esfc")}var h=!C.j.yV&&!C.o$();b=h&&D5&&C.D("html5_enable_sabr_vod_streaming_xhr");h=h&&!D5&&C.D("html5_enable_sabr_vod_non_streaming_xhr");var N=DS(C),p=C.D("html5_enable_sabr_drm_vod_streaming_xhr")&&D5&&C.o$()&&!C.j.yV&&(C.ZT==="1"?!1:!0);(b=b||h||N||p)&&!C.A6&&C.jp("sabr",{loc:"m"},!0);return b&&!!C.A6}; +DS=function(C){var b;if(!(b=D5&&C.yV()&&C.o$()&&(C.ZT==="1"?!1:!0)&&C.D("html5_sabr_live_drm_streaming_xhr"))){b=C.yV()&&!C.o$()&&D5;var h=C.yV()&&C.latencyClass!=="ULTRALOW"&&!C.isLowLatencyLiveStream&&C.D("html5_sabr_live_normal_latency_streaming_xhr"),N=C.isLowLatencyLiveStream&&C.D("html5_sabr_live_low_latency_streaming_xhr"),p=C.latencyClass==="ULTRALOW"&&C.D("html5_sabr_live_ultra_low_latency_streaming_xhr");b=b&&(h||N||p)}h=b;b=C.enableServerStitchedDai&&h&&C.D("html5_enable_sabr_ssdai_streaming_xhr"); +h=!C.enableServerStitchedDai&&h;N=C.yV()&&!D5&&C.D("html5_enable_sabr_live_non_streaming_xhr");C=D5&&(C.qz()||K6(C)&&C.D("html5_enable_sabr_for_lifa_eligible_streams"));return b||h||N||C}; +g.sF=function(C){return C.CY&&x6(C)}; +Jal=function(C){var b;if(b=!!C.cotn)b=C.videoId,b=!!b&&g.zt(b)===1;return b&&!C.ZR}; +g.d9=function(C){if(!C.j||!C.K||!C.X)return!1;var b=C.j.j,h=!!b[C.K.id]&&oL(b[C.K.id].dU.j);b=!!b[C.X.id]&&oL(b[C.X.id].dU.j);return(C.K.itag==="0"||h)&&b}; +WT=function(C){return C.Q5?["OK","LIVE_STREAM_OFFLINE"].includes(C.Q5.status):!0}; +I8H=function(C){return(C=C.nS)&&C.showError?C.showError:!1}; +hE=function(C,b){return C.D(b)?!0:(C.fflags||"").includes(b+"=true")}; +e6W=function(C){return C.D("html5_heartbeat_iff_heartbeat_params_filled")}; +GLW=function(C,b){b.inlineMetricEnabled&&(C.inlineMetricEnabled=!0);b.playback_progress_0s_url&&(C.KN=new ngK(b));if(b=b.video_masthead_ad_quartile_urls)C.m4=b.quartile_0_url,C.sW=b.quartile_25_url,C.oo=b.quartile_50_url,C.Gc=b.quartile_75_url,C.W0=b.quartile_100_url,C.ju=b.quartile_0_urls,C.R7=b.quartile_25_urls,C.qF=b.quartile_50_urls,C.o7=b.quartile_75_urls,C.BB=b.quartile_100_urls}; +FD6=function(C){var b={};C=g.z(C);for(var h=C.next();!h.done;h=C.next()){h=h.value;var N=h.split("=");N.length===2?b[N[0]]=N[1]:b[h]=!0}return b}; +a8_=function(C){if(C){if(hpS(C))return C;C=NKc(C);if(hpS(C,!0))return C}return""}; +g.LxW=function(C){return C.captionsLanguagePreference||C.Rf.captionsLanguagePreference||g.l4(C,"yt:cc_default_lang")||C.Rf.ob}; +Ev=function(C){return!(!C.isLivePlayback||!C.hasProgressBarBoundaries())}; +g.W7=function(C){var b;return C.tH||((b=C.suggestions)==null?void 0:b[0])||null}; +g.n6=function(C){return C.jS&&(C.D("embeds_enable_pfp_always_unbranded")||C.Rf.iW)}; +tE=function(C,b){C.D("html5_log_autoplay_src")&&Tt(C)&&C.jp("apsrc",{src:b})}; +g.Tg=function(C){var b,h;return!!((b=C.embeddedPlayerConfig)==null?0:(h=b.embeddedPlayerFlags)==null?0:h.enableMusicUx)}; +g.ID=function(C){var b=C.Y(),h=g.BT(b),N=b.zi;(b.D("embeds_web_enable_iframe_api_send_full_embed_url")||b.D("embeds_web_enable_rcat_validation_in_havs")||b.D("embeds_enable_autoplay_and_visibility_signals"))&&g.mG(b)&&(N&&(h.thirdParty=Object.assign({},h.thirdParty,{embedUrl:N})),Jc6(h,C));if(N=C.sX)h.clickTracking={clickTrackingParams:N};N=h.client||{};var p="EMBED",P=f6(C);P==="leanback"?p="WATCH":b.D("gvi_channel_client_screen")&&P==="profilepage"?p="CHANNEL":C.kh?p="LIVE_MONITOR":P==="detailpage"? +p="WATCH_FULL_SCREEN":P==="adunit"?p="ADUNIT":P==="sponsorshipsoffer"&&(p="UNKNOWN");N.clientScreen=p;if(b=C.kidsAppInfo)N.kidsAppInfo=JSON.parse(b);(p=C.Ck)&&!b&&(N.kidsAppInfo={contentSettings:{ageUpMode:ZS6[p]}});if(b=C.P1)N.unpluggedAppInfo={enableFilterMode:!0};(p=C.unpluggedFilterModeType)&&!b&&(N.unpluggedAppInfo={filterModeType:Y3l[p]});if(b=C.KO)N.unpluggedLocationInfo=b;h.client=N;N=h.request||{};C.OU&&(N.isPrefetch=!0);if(b=C.mdxEnvironment)N.mdxEnvironment=b;if(b=C.mdxControlMode)N.mdxControlMode= +arc[b];h.request=N;N=h.user||{};if(b=C.N2)N.credentialTransferTokens=[{token:b,scope:"VIDEO"}];if(b=C.sI)N.delegatePurchases={oauthToken:b},N.kidsParent={oauthToken:b};h.user=N;if(N=C.contextParams)h.activePlayers=[{playerContextParams:N}];if(C=C.clientScreenNonce)h.clientScreenNonce=C;return h}; +g.BT=function(C){var b=g.xH(),h=b.client||{};if(C.forcedExperiments){var N=C.forcedExperiments.split(","),p=[];N=g.z(N);for(var P=N.next();!P.done;P=N.next())p.push(Number(P.value));h.experimentIds=p}if(p=C.homeGroupInfo)h.homeGroupInfo=JSON.parse(p);if(p=C.getPlayerType())h.playerType=p;if(p=C.j.ctheme)h.theme=p;if(p=C.livingRoomAppMode)h.tvAppInfo=Object.assign({},h.tvAppInfo,{livingRoomAppMode:p});p=C.deviceYear;C.D("html5_propagate_device_year")&&p&&(h.tvAppInfo=Object.assign({},h.tvAppInfo,{deviceYear:p})); +if(p=C.livingRoomPoTokenId)h.tvAppInfo=Object.assign({},h.tvAppInfo,{livingRoomPoTokenId:p});b.client=h;h=b.user||{};C.enableSafetyMode&&(h=Object.assign({},h,{enableSafetyMode:!0}));C.pageId&&(h=Object.assign({},h,{onBehalfOfUser:C.pageId}));b.user=h;h=C.zi;C.D("embeds_web_enable_iframe_api_send_full_embed_url")||C.D("embeds_web_enable_rcat_validation_in_havs")||C.D("embeds_enable_autoplay_and_visibility_signals")||!h||(b.thirdParty={embedUrl:h});return b}; +$Gx=function(C,b,h){var N=C.videoId,p=g.ID(C),P=C.Y(),c={html5Preference:"HTML5_PREF_WANTS",lactMilliseconds:String(Ap()),referer:document.location.toString(),signatureTimestamp:20131};g.vj();C.isAutonav&&(c.autonav=!0);g.D7(0,141)&&(c.autonavState=g.D7(0,140)?"STATE_OFF":"STATE_ON");c.autoCaptionsDefaultOn=g.D7(0,66);Uv(C)&&(c.autoplay=!0);P.J&&C.cycToken&&(c.cycToken=C.cycToken);P.enablePrivacyFilter&&(c.enablePrivacyFilter=!0);C.isFling&&(c.fling=!0);var e=C.forceAdsUrl;if(e){var L={},Z=[];e=e.split(","); +e=g.z(e);for(var Y=e.next();!Y.done;Y=e.next()){Y=Y.value;var a=Y.split("|");a.length!==3||Y.includes("=")||(a[0]="breaktype="+a[0],a[1]="offset="+a[1],a[2]="url="+a[2]);Y={adtype:"video_ad"};a=g.z(a);for(var l=a.next();!l.done;l=a.next()){var F=g.z(l.value.split("="));l=F.next().value;F=p1W(F);Y[l]=F.join("=")}a=Y.url;l=Y.presetad;F=Y.viralresponseurl;var G=Number(Y.campaignid);if(Y.adtype==="in_display_ad")a&&(L.url=a),l&&(L.presetAd=l),F&&(L.viralAdResponseUrl=F),G&&(L.viralCampaignId=String(G)); +else if(Y.adtype==="video_ad"){var V={offset:{kind:"OFFSET_MILLISECONDS",value:String(Number(Y.offset)||0)}};if(Y=lr_[Y.breaktype])V.breakType=Y;a&&(V.url=a);l&&(V.presetAd=l);F&&(V.viralAdResponseUrl=F);G&&(V.viralCampaignId=String(G));Z.push(V)}}c.forceAdParameters={videoAds:Z,inDisplayAd:L}}C.isInlinePlaybackNoAd&&(c.isInlinePlaybackNoAd=!0);C.isLivingRoomDeeplink&&(c.isLivingRoomDeeplink=!0);L=C.CP;if(L!=null){L={startWalltime:String(L)};if(Z=C.xs)L.manifestDuration=String(Z||14400);c.liveContext= +L}if(C.mutedAutoplay&&(c.mutedAutoplay=!0,C.D("embeds_enable_full_length_inline_muted_autoplay"))){L=P.getWebPlayerContextConfig();var q,f;(L==null?0:(q=L.embedsHostFlags)==null?0:q.allowMutedAutoplayDurationMode)&&(L==null?0:(f=L.embedsHostFlags)==null?0:f.allowMutedAutoplayDurationMode.includes(oD6[C.mutedAutoplayDurationMode]))&&(c.mutedAutoplayDurationMode=oD6[C.mutedAutoplayDurationMode])}if(C.Xy?0:C.fK)c.splay=!0;q=C.vnd;q===5&&(c.vnd=q);q={};if(f=C.isMdxPlayback)q.triggeredByMdx=f;if(f=C.BC)q.skippableAdsSupported= +f.split(",").includes("ska");if(Z=C.OB){f=C.Ew;L=[];Z=g.z(ufU(Z));for(e=Z.next();!e.done;e=Z.next()){e=e.value;Y=e.platform;e={applicationState:e.Mx?"INACTIVE":"ACTIVE",clientFormFactor:Fxx[Y]||"UNKNOWN_FORM_FACTOR",clientName:Qk6[e.Gk]||"UNKNOWN_INTERFACE",clientVersion:e.deviceVersion||"",platform:GKW[Y]||"UNKNOWN_PLATFORM"};Y={};if(f){a=void 0;try{a=JSON.parse(f)}catch(y){g.QB(y)}a&&(Y={params:[{key:"ms",value:a.ms}]},a.advertising_id&&(Y.advertisingId=a.advertising_id),a.limit_ad_tracking!==void 0&& +a.limit_ad_tracking!==null&&(Y.limitAdTracking=a.limit_ad_tracking),e.osName=a.os_name,e.userAgent=a.user_agent,e.windowHeightPoints=a.window_height_points,e.windowWidthPoints=a.window_width_points)}L.push({adSignalsInfo:Y,remoteClient:e})}q.remoteContexts=L}f=C.sourceContainerPlaylistId;L=C.serializedMdxMetadata;if(f||L)Z={},f&&(Z.mdxPlaybackContainerInfo={sourceContainerPlaylistId:f}),L&&(Z.serializedMdxMetadata=L),q.mdxPlaybackSourceContext=Z;c.mdxContext=q;q=b.width;q>0&&(c.playerWidthPixels= +Math.round(q));if(b=b.height)c.playerHeightPixels=Math.round(b);h!==0&&(c.vis=h);if(h=P.widgetReferrer)c.widgetReferrer=h.substring(0,128);g.$7(P)&&c&&(c.ancestorOrigins=P.ancestorOrigins);C.defaultActiveSourceVideoId&&(c.compositeVideoContext={defaultActiveSourceVideoId:C.defaultActiveSourceVideoId});if(P=P.getWebPlayerContextConfig())c.encryptedHostFlags=P.encryptedHostFlags;N={videoId:N,context:p,playbackContext:{contentPlaybackContext:c}};C.reloadPlaybackParams&&(N.playbackContext.reloadPlaybackContext= +{reloadPlaybackParams:C.reloadPlaybackParams});C.contentCheckOk&&(N.contentCheckOk=!0);if(p=C.clientPlaybackNonce)N.cpn=p;if(p=C.playerParams)N.params=p;if(p=C.playlistId)N.playlistId=p;C.racyCheckOk&&(N.racyCheckOk=!0);p=C.Y();if(c=p.embedConfig)N.serializedThirdPartyEmbedConfig=c;N.captionParams={};c=g.D7(g.vj(),65);C.deviceCaptionsOn!=null?N.captionParams.deviceCaptionsOn=C.deviceCaptionsOn:g.vI(p)&&(N.captionParams.deviceCaptionsOn=c!=null?!c:!1);C.h9&&(N.captionParams.deviceCaptionsLangPref= +C.h9);C.Ym.length?N.captionParams.viewerSelectedCaptionLangs=C.Ym:g.vI(p)&&(c=g.uw(),c==null?0:c.length)&&(N.captionParams.viewerSelectedCaptionLangs=c);c=C.fetchType==="onesie"&&C.D("html5_onesie_attach_po_token");P=C.fetchType!=="onesie"&&C.D("html5_non_onesie_attach_po_token");if(c||P)c=C.Y(),c.k6&&(N.serviceIntegrityDimensions={},N.serviceIntegrityDimensions.poToken=c.k6);p.D("fetch_att_independently")&&(N.attestationRequest={omitBotguardData:!0});if(p.D("html5_enable_sabr_from_watch_server")|| +p.D("html5_report_supports_vp9_encoding"))N.playbackContext||(N.playbackContext={}),N.playbackContext.devicePlaybackCapabilities=S3x(C);return N}; +S3x=function(C){var b=!(C==null?0:C.q5())&&(C==null?void 0:C.yV())&&hJ(),h;if(h=C==null?0:C.D("html5_report_supports_vp9_encoding")){if(C==null)h=0;else{h=g.wF(C);C=C.Y().G;var N=x7("243");h=N?p_(h,N,C,!0)===!0:!1}h=h&&!b}return{supportsVp9Encoding:!!h,supportXhr:D5}}; +HSl=function(C,b){var h,N,p;return g.R(function(P){if(P.j==1)return h={context:g.BT(C.Y()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:C.videoId,cpn:C.clientPlaybackNonce}}]},N=g.bg(z6l),g.J(P,g.TI(b,h,N),2);p=P.K;return P.return(p)})}; +Vx6=function(C,b,h){var N=g.Zc(b.experiments,"bg_vm_reinit_threshold");(!qS||(0,g.Ai)()-qS>N)&&HSl(C,h).then(function(p){p&&(p=p.botguardData)&&g.Ad(p,b)},function(p){C.HE()||(p=ml(p),C.jp("attf",p.details))})}; +x8=function(C,b){g.O.call(this);this.app=C;this.state=b}; +CX=function(C,b,h){C.state.j.hasOwnProperty(b)||w9(C,b,h);C.state.J[b]=function(){return h.apply(C,g.ro.apply(0,arguments))}; +C.state.W.add(b)}; +bv=function(C,b,h){C.state.j.hasOwnProperty(b)||w9(C,b,h);C.app.Y().J&&(C.state.L[b]=function(){return h.apply(C,g.ro.apply(0,arguments))},C.state.W.add(b))}; +w9=function(C,b,h){C.state.j[b]=function(){return h.apply(C,g.ro.apply(0,arguments))}}; +g.hR=function(C,b,h){return C.state.j[b].apply(C.state.j,g.M(h))}; +NC=function(){g.AZ.call(this);this.G=new Map}; +gY=function(){g.O.apply(this,arguments);this.element=null;this.W=new Set;this.J={};this.L={};this.j={};this.V=new Set;this.N=new NC;this.K=new NC;this.X=new NC;this.G=new NC}; +MxS=function(C,b,h){typeof C==="string"&&(C={mediaContentUrl:C,startSeconds:b,suggestedQuality:h});a:{if((b=C.mediaContentUrl)&&(b=/\/([ve]|embed)\/([^#?]+)/.exec(b))&&b[2]){b=b[2];break a}b=null}C.videoId=b;return pX(C)}; +pX=function(C,b,h){if(typeof C==="string")return{videoId:C,startSeconds:b,suggestedQuality:h};b={};h=g.z(q31);for(var N=h.next();!N.done;N=h.next())N=N.value,C[N]&&(b[N]=C[N]);return b}; +mG1=function(C,b,h,N){if(g.T6(C)&&!Array.isArray(C)){b="playlist list listType index startSeconds suggestedQuality".split(" ");h={};for(N=0;N32&&N.push("hfr");b.isHdr()&&N.push("hdr");b.primaries==="bt2020"&&N.push("wcg");h.video_quality_features=N}}if(C=C.getPlaylistId())h.list=C;return h}; +e3=function(){PK.apply(this,arguments)}; +LX=function(C,b){var h={};if(C.app.Y().N2){C=g.z(r$c);for(var N=C.next();!N.done;N=C.next())N=N.value,b.hasOwnProperty(N)&&(h[N]=b[N]);if(b=h.qoe_cat)C="",typeof b==="string"&&b.length>0&&(C=b.split(",").filter(function(p){return iSl.includes(p)}).join(",")),h.qoe_cat=C; +J$V(h)}else for(C=g.z(ugU),N=C.next();!N.done;N=C.next())N=N.value,b.hasOwnProperty(N)&&(h[N]=b[N]);return h}; +J$V=function(C){var b=C.raw_player_response;if(!b){var h=C.player_response;h&&(b=JSON.parse(h))}delete C.player_response;delete C.raw_player_response;if(b){C.raw_player_response={streamingData:b.streamingData};var N;if((N=b.playbackTracking)==null?0:N.qoeUrl)C.raw_player_response=Object.assign({},C.raw_player_response,{playbackTracking:{qoeUrl:b.playbackTracking.qoeUrl}});var p;if((p=b.videoDetails)==null?0:p.videoId)C.raw_player_response=Object.assign({},C.raw_player_response,{videoDetails:{videoId:b.videoDetails.videoId}})}}; +Z_=function(C,b,h){var N=C.app.vF(h);if(!N)return 0;C=N-C.app.getCurrentTime(h);return b-C}; +Qac=function(C){var b=b===void 0?5:b;return C?R6c[C]||b:b}; +g.Yz=function(){e3.apply(this,arguments)}; +UGl=function(C){w9(C,"getInternalApiInterface",C.getInternalApiInterface);w9(C,"addEventListener",C.qh);w9(C,"removeEventListener",C.Zvo);w9(C,"cueVideoByPlayerVars",C.Nf);w9(C,"loadVideoByPlayerVars",C.Xbo);w9(C,"preloadVideoByPlayerVars",C.LwE);w9(C,"getAdState",C.getAdState);w9(C,"sendAbandonmentPing",C.sendAbandonmentPing);w9(C,"setLoopRange",C.setLoopRange);w9(C,"getLoopRange",C.getLoopRange);w9(C,"setAutonavState",C.setAutonavState);w9(C,"seekTo",C.lvX);w9(C,"seekBy",C.fv4);w9(C,"seekToLiveHead", +C.seekToLiveHead);w9(C,"requestSeekToWallTimeSeconds",C.requestSeekToWallTimeSeconds);w9(C,"seekToStreamTime",C.seekToStreamTime);w9(C,"startSeekCsiAction",C.startSeekCsiAction);w9(C,"getStreamTimeOffset",C.getStreamTimeOffset);w9(C,"getVideoData",C.Fe);w9(C,"setInlinePreview",C.setInlinePreview);w9(C,"getAppState",C.getAppState);w9(C,"updateLastActiveTime",C.updateLastActiveTime);w9(C,"setBlackout",C.setBlackout);w9(C,"setUserEngagement",C.setUserEngagement);w9(C,"updateSubtitlesUserSettings",C.updateSubtitlesUserSettings); +w9(C,"getPresentingPlayerType",C.Se);w9(C,"canPlayType",C.canPlayType);w9(C,"updatePlaylist",C.updatePlaylist);w9(C,"updateVideoData",C.updateVideoData);w9(C,"updateEnvironmentData",C.updateEnvironmentData);w9(C,"sendVideoStatsEngageEvent",C.uHD);w9(C,"productsInVideoVisibilityUpdated",C.productsInVideoVisibilityUpdated);w9(C,"setSafetyMode",C.setSafetyMode);w9(C,"isAtLiveHead",function(b){return C.isAtLiveHead(void 0,b)}); +w9(C,"getVideoAspectRatio",C.getVideoAspectRatio);w9(C,"getPreferredQuality",C.getPreferredQuality);w9(C,"getPlaybackQualityLabel",C.getPlaybackQualityLabel);w9(C,"setPlaybackQualityRange",C.UK$);w9(C,"onAdUxClicked",C.onAdUxClicked);w9(C,"getFeedbackProductData",C.getFeedbackProductData);w9(C,"getStoryboardFrame",C.getStoryboardFrame);w9(C,"getStoryboardFrameIndex",C.getStoryboardFrameIndex);w9(C,"getStoryboardLevel",C.getStoryboardLevel);w9(C,"getNumberOfStoryboardLevels",C.getNumberOfStoryboardLevels); +w9(C,"getCaptionWindowContainerId",C.getCaptionWindowContainerId);w9(C,"getAvailableQualityLabels",C.getAvailableQualityLabels);w9(C,"addCueRange",C.addCueRange);w9(C,"addUtcCueRange",C.addUtcCueRange);w9(C,"showAirplayPicker",C.showAirplayPicker);w9(C,"dispatchReduxAction",C.dispatchReduxAction);w9(C,"getPlayerResponse",C.pU);w9(C,"getWatchNextResponse",C.zF);w9(C,"getHeartbeatResponse",C.yU);w9(C,"getCurrentTime",C.aK);w9(C,"getDuration",C.s3);w9(C,"getPlayerState",C.getPlayerState);w9(C,"getPlayerStateObject", +C.lG);w9(C,"getVideoLoadedFraction",C.getVideoLoadedFraction);w9(C,"getProgressState",C.getProgressState);w9(C,"getVolume",C.getVolume);w9(C,"setVolume",C.Uh);w9(C,"isMuted",C.isMuted);w9(C,"mute",C.B_);w9(C,"unMute",C.s4);w9(C,"loadModule",C.loadModule);w9(C,"unloadModule",C.unloadModule);w9(C,"getOption",C.cw);w9(C,"getOptions",C.getOptions);w9(C,"setOption",C.setOption);w9(C,"loadVideoById",C.qE);w9(C,"loadVideoByUrl",C.W3);w9(C,"playVideo",C.V0);w9(C,"loadPlaylist",C.loadPlaylist);w9(C,"nextVideo", +C.nextVideo);w9(C,"previousVideo",C.previousVideo);w9(C,"playVideoAt",C.playVideoAt);w9(C,"getDebugText",C.getDebugText);w9(C,"getWebPlayerContextConfig",C.getWebPlayerContextConfig);w9(C,"notifyShortsAdSwipeEvent",C.notifyShortsAdSwipeEvent);w9(C,"getVideoContentRect",C.getVideoContentRect);w9(C,"setSqueezeback",C.setSqueezeback);w9(C,"toggleSubtitlesOn",C.toggleSubtitlesOn);w9(C,"isSubtitlesOn",C.isSubtitlesOn);w9(C,"reportPlaybackIssue",C.reportPlaybackIssue);w9(C,"setAutonav",C.setAutonav);w9(C, +"isNotServable",C.isNotServable);w9(C,"channelSubscribed",C.channelSubscribed);w9(C,"channelUnsubscribed",C.channelUnsubscribed);w9(C,"togglePictureInPicture",C.togglePictureInPicture);w9(C,"supportsGaplessAudio",C.supportsGaplessAudio);w9(C,"supportsGaplessShorts",C.supportsGaplessShorts);w9(C,"enqueueVideoByPlayerVars",function(b){return void C.enqueueVideoByPlayerVars(b)}); +w9(C,"clearQueue",C.clearQueue);w9(C,"getAudioTrack",C.dW);w9(C,"setAudioTrack",C.SRO);w9(C,"getAvailableAudioTracks",C.sy);w9(C,"getMaxPlaybackQuality",C.getMaxPlaybackQuality);w9(C,"getUserPlaybackQualityPreference",C.getUserPlaybackQualityPreference);w9(C,"getSubtitlesUserSettings",C.getSubtitlesUserSettings);w9(C,"resetSubtitlesUserSettings",C.resetSubtitlesUserSettings);w9(C,"setMinimized",C.setMinimized);w9(C,"setOverlayVisibility",C.setOverlayVisibility);w9(C,"confirmYpcRental",C.confirmYpcRental); +w9(C,"queueNextVideo",C.queueNextVideo);w9(C,"handleExternalCall",C.handleExternalCall);w9(C,"logApiCall",C.logApiCall);w9(C,"isExternalMethodAvailable",C.isExternalMethodAvailable);w9(C,"setScreenLayer",C.setScreenLayer);w9(C,"getCurrentPlaylistSequence",C.getCurrentPlaylistSequence);w9(C,"getPlaylistSequenceForTime",C.getPlaylistSequenceForTime);w9(C,"shouldSendVisibilityState",C.shouldSendVisibilityState);w9(C,"syncVolume",C.syncVolume);w9(C,"highlightSettingsMenuItem",C.highlightSettingsMenuItem); +w9(C,"openSettingsMenuItem",C.openSettingsMenuItem);w9(C,"getEmbeddedPlayerResponse",C.getEmbeddedPlayerResponse);w9(C,"getVisibilityState",C.getVisibilityState);w9(C,"isMutedByMutedAutoplay",C.isMutedByMutedAutoplay);C.D("embeds_enable_emc3ds_muted_autoplay")&&w9(C,"isMutedByEmbedsMutedAutoplay",C.isMutedByEmbedsMutedAutoplay);w9(C,"setGlobalCrop",C.setGlobalCrop);w9(C,"setInternalSize",C.setInternalSize);w9(C,"setFauxFullscreen",C.setFauxFullscreen);w9(C,"setAppFullscreen",C.setAppFullscreen)}; +lv=function(C,b,h){C=g.aC(C.x6(),b);return h?(h.addOnDisposeCallback(C),null):C}; +g.oC=function(C,b,h){return C.app.Y().OG?b:g.ok("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:b,SHORTCUT:h})}; +Xo6=function(C){C.x6().element.setAttribute("aria-live","polite")}; +g.Fz=function(C,b){g.Yz.call(this,C,b);UGl(this);bv(this,"addEventListener",this.s7);bv(this,"removeEventListener",this.Rpp);bv(this,"cueVideoByPlayerVars",this.Xj);bv(this,"loadVideoByPlayerVars",this.wb6);bv(this,"preloadVideoByPlayerVars",this.k5E);bv(this,"loadVideoById",this.qE);bv(this,"loadVideoByUrl",this.W3);bv(this,"playVideo",this.V0);bv(this,"loadPlaylist",this.loadPlaylist);bv(this,"nextVideo",this.nextVideo);bv(this,"previousVideo",this.previousVideo);bv(this,"playVideoAt",this.playVideoAt); +bv(this,"getVideoData",this.Fv);bv(this,"seekBy",this.pLz);bv(this,"seekTo",this.CpD);bv(this,"showControls",this.showControls);bv(this,"hideControls",this.hideControls);bv(this,"cancelPlayback",this.cancelPlayback);bv(this,"getProgressState",this.getProgressState);bv(this,"isInline",this.isInline);bv(this,"setInline",this.setInline);bv(this,"setLoopVideo",this.setLoopVideo);bv(this,"getLoopVideo",this.getLoopVideo);bv(this,"getVideoContentRect",this.getVideoContentRect);bv(this,"getVideoStats",this.Uy); +bv(this,"getCurrentTime",this.Hk);bv(this,"getDuration",this.s3);bv(this,"getPlayerState",this.bG);bv(this,"getVideoLoadedFraction",this.LU);bv(this,"mute",this.B_);bv(this,"unMute",this.s4);bv(this,"setVolume",this.Uh);bv(this,"loadModule",this.loadModule);bv(this,"unloadModule",this.unloadModule);bv(this,"getOption",this.cw);bv(this,"getOptions",this.getOptions);bv(this,"setOption",this.setOption);bv(this,"addCueRange",this.addCueRange);bv(this,"getDebugText",this.getDebugText);bv(this,"getStoryboardFormat", +this.getStoryboardFormat);bv(this,"toggleFullscreen",this.toggleFullscreen);bv(this,"isFullscreen",this.isFullscreen);bv(this,"getPlayerSize",this.getPlayerSize);bv(this,"toggleSubtitles",this.toggleSubtitles);bv(this,"setCenterCrop",this.setCenterCrop);bv(this,"setFauxFullscreen",this.setFauxFullscreen);bv(this,"setSizeStyle",this.setSizeStyle);bv(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);bv(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);A$W(this)}; +g.G4=function(C){C=C.N8();var b=C.Nz.get("endscreen");return b&&b.Fa()?!0:C.YD()}; +g.S3=function(C,b){C.getPresentingPlayerType()===3?C.publish("mdxautoplaycancel"):C.LO("onAutonavCancelled",b)}; +g.z4=function(C){var b=$z(C.N8());return C.app.Cf&&!C.isFullscreen()||C.getPresentingPlayerType()===3&&b&&b.iN()&&b.xC()||!!C.getPlaylist()}; +g.HK=function(C,b){g.hR(C,"addEmbedsConversionTrackingParams",[b])}; +g.MC=function(C){return(C=g.VG(C.N8()))?C.FU():{}}; +g.KxV=function(C){C=(C=C.getVideoData())&&C.K;return!!C&&!(!C.audio||!C.video)&&C.mimeType!=="application/x-mpegURL"}; +g.qC=function(C,b,h){C=C.Ti().element;var N=eo(C.children,function(p){p=Number(p.getAttribute("data-layer"));return h-p||1}); +N<0&&(N=-(N+1));gQ(C,b,N);b.setAttribute("data-layer",String(h))}; +g.mB=function(C){var b=C.Y();if(!b.lF)return!1;var h=C.getVideoData();if(!h||C.getPresentingPlayerType()===3)return!1;var N=(!h.isLiveDefaultBroadcast||b.D("allow_poltergust_autoplay"))&&!Ev(h);N=h.isLivePlayback&&(!b.D("allow_live_autoplay")||!N);var p=h.isLivePlayback&&b.D("allow_live_autoplay_on_mweb");C=C.getPlaylist();C=!!C&&C.iN();var P=h.rO&&h.rO.playerOverlays||null;P=!!(P&&P.playerOverlayRenderer&&P.playerOverlayRenderer.autoplay);P=h.jS&&P;return!h.ypcPreview&&(!N||p)&&!g.xI(h.q2,"ypc")&& +!C&&(!g.$7(b)||P)}; +sal=function(C){C=C.app.i$();if(!C)return!1;var b=C.getVideoData();if(!b.K||!b.K.video||b.K.video.j<1080||b.G8)return!1;var h=/^qsa/.test(b.clientPlaybackNonce),N="r";b.K.id.indexOf(";")>=0&&(h=/^[a-p]/.test(b.clientPlaybackNonce),N="x");return h?(C.jp("iqss",{trigger:N},!0),!0):!1}; +fX=function(){sJ.apply(this,arguments);this.requestHeaders={}}; +yG=function(){AR||(AR=new fX);return AR}; +rY=function(C,b){b?C.requestHeaders.Authorization="Bearer "+b:delete C.requestHeaders.Authorization}; +g.iv=function(C,b,h,N){N=N===void 0?!1:N;g.YY.call(this,b);var p=this;this.Z=C;this.q2=N;this.L=new g.ui(this);this.KO=new g.b1(this,h,!0,void 0,void 0,function(){p.ZI()}); +g.D(this,this.L);g.D(this,this.KO)}; +JR=function(C){var b=C.Z.getRootNode();return C.Z.D("web_enable_auto_pip")||C.Z.D("web_enable_pip_on_miniplayer")||C.Z.D("web_shorts_pip")?si(b):document}; +OSl=function(C){C.K&&(document.activeElement&&g.PP(C.element,document.activeElement)&&C.K.focus(),C.K.setAttribute("aria-expanded","false"),C.K=void 0);g.rU(C.L);C.V=void 0}; +uv=function(C,b,h){C.C5()?C.QV():C.mE(b,h)}; +RC=function(C,b,h,N){N=new g.n({B:"div",J4:["ytp-linked-account-popup-button"],BE:N,T:{role:"button",tabindex:"0"}});b=new g.n({B:"div",C:"ytp-linked-account-popup",T:{role:"dialog","aria-modal":"true",tabindex:"-1"},U:[{B:"div",C:"ytp-linked-account-popup-title",BE:b},{B:"div",C:"ytp-linked-account-popup-description",BE:h},{B:"div",C:"ytp-linked-account-popup-buttons",U:[N]}]});g.iv.call(this,C,{B:"div",C:"ytp-linked-account-popup-container",U:[b]},100);var p=this;this.dialog=b;g.D(this,this.dialog); +N.listen("click",function(){p.QV()}); +g.D(this,N);g.qC(this.Z,this.element,4);this.hide()}; +g.U_=function(C,b,h,N){g.YY.call(this,C);this.priority=b;h&&g.QG(this,h);N&&this.jh(N)}; +g.Xz=function(C,b,h,N){C=C===void 0?{}:C;b=b===void 0?[]:b;h=h===void 0?!1:h;N=N===void 0?!1:N;b.push("ytp-menuitem");var p=C;"role"in p||(p.role="menuitem");h||(p=C,"tabindex"in p||(p.tabindex="0"));C={B:h?"a":"div",J4:b,T:C,U:[{B:"div",C:"ytp-menuitem-icon",BE:"{{icon}}"},{B:"div",C:"ytp-menuitem-label",BE:"{{label}}"},{B:"div",C:"ytp-menuitem-content",BE:"{{content}}"}]};N&&C.U.push({B:"div",C:"ytp-menuitem-secondary-icon",BE:"{{secondaryIcon}}"});return C}; +g.QG=function(C,b){C.updateValue("label",b)}; +KX=function(C){g.U_.call(this,g.Xz({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var b=this;this.Z=C;this.K=this.j=!1;this.xg=C.r8();C.createServerVe(this.element,this,!0);this.S(this.Z,"settingsMenuVisibilityChanged",function(h){b.us(h)}); +this.S(this.Z,"videodatachange",this.X);this.listen("click",this.onClick);this.X()}; +s_=function(C){return C?g.oS(C):""}; +O_=function(C){g.O.call(this);this.api=C}; +vK=function(C){O_.call(this,C);var b=this;w9(C,"setAccountLinkState",function(h){b.setAccountLinkState(h)}); +w9(C,"updateAccountLinkingConfig",function(h){b.updateAccountLinkingConfig(h)}); +C.addEventListener("videodatachange",function(h,N){b.onVideoDataChange(N)}); +C.addEventListener("settingsMenuInitialized",function(){b.menuItem=new KX(b.api);g.D(b,b.menuItem)})}; +vDx=function(C){this.api=C;this.j={}}; +D_=function(C,b,h,N){b in C.j||(h=new g.Ny(h,N,{id:b,priority:2,namespace:"appad"}),C.api.A8([h],1),C.j[b]=h)}; +dY=function(C){O_.call(this,C);var b=this;this.events=new g.ui(this);g.D(this,this.events);this.j=new vDx(this.api);this.events.S(this.api,"legacyadtrackingpingreset",function(){b.j.j={}}); +this.events.S(this.api,"legacyadtrackingpingchange",function(h){var N=b.j;D_(N,"part2viewed",1,0x8000000000000);D_(N,"engagedview",Math.max(1,h.SC*1E3),0x8000000000000);if(!h.isLivePlayback){var p=h.lengthSeconds*1E3;Tt(h)&&N.api.D("html5_shorts_gapless_ads_duration_fix")&&(p=N.api.getProgressState().seekableEnd*1E3-h.Er);D_(N,"videoplaytime25",p*.25,p);D_(N,"videoplaytime50",p*.5,p);D_(N,"videoplaytime75",p*.75,p);D_(N,"videoplaytime100",p,0x8000000000000);D_(N,"conversionview",p,0x8000000000000); +D_(N,"videoplaybackstart",1,p);D_(N,"videoplayback2s",2E3,p);D_(N,"videoplayback10s",1E4,p)}}); +this.events.S(this.api,g.p8("appad"),this.K);this.events.S(this.api,g.PZ("appad"),this.K)}; +EDH=function(C,b,h){if(!(h in b))return!1;b=b[h];Array.isArray(b)||(b=[b]);b=g.z(b);for(h=b.next();!h.done;h=b.next()){h=h.value;var N={CPN:C.api.getVideoData().clientPlaybackNonce};h=g.up(h,N);N=void 0;N=N===void 0?!1:N;(N=Bk(IH(h,DGS),h,N,"Active View 3rd Party Integration URL"))||(N=void 0,N=N===void 0?!1:N,N=Bk(IH(h,dGW),h,N,"Google/YouTube Brand Lift URL"));N||(N=void 0,N=N===void 0?!1:N,N=Bk(IH(h,WxK),h,N,"Nielsen OCR URL"));g.DY(h,void 0,N)}return!0}; +WK=function(C,b){nDH(C,b).then(function(h){g.DY(b,void 0,void 0,h)})}; +E_=function(C,b){b.forEach(function(h){WK(C,h)})}; +nDH=function(C,b){return g.m9(C.api.Y())&&LN(b)&&eX(b)?g.BI(C.api.Y(),g.X5(C.api.getVideoData())).then(function(h){var N;h&&(N={Authorization:"Bearer "+h});return N},void 0):Rf()}; +txH=function(C){O_.call(this,C);this.events=new g.ui(C);g.D(this,this.events);this.events.S(C,"videoready",function(b){if(C.getPresentingPlayerType()===1){var h,N,p={playerDebugData:{pmlSignal:!!((h=b.getPlayerResponse())==null?0:(N=h.adPlacements)==null?0:N.some(function(P){var c;return P==null?void 0:(c=P.adPlacementRenderer)==null?void 0:c.renderer})), +contentCpn:b.clientPlaybackNonce}};g.en("adsClientStateChange",p)}})}; +nX=function(C){g.n.call(this,{B:"button",J4:["ytp-button"],T:{title:"{{title}}","aria-label":"{{label}}","data-priority":"2","data-tooltip-target-id":"ytp-autonav-toggle-button"},U:[{B:"div",C:"ytp-autonav-toggle-button-container",U:[{B:"div",C:"ytp-autonav-toggle-button",T:{"aria-checked":"true"}}]}]});this.Z=C;this.K=[];this.j=!1;this.isChecked=!0;C.createClientVe(this.element,this,113681);this.S(C,"presentingplayerstatechange",this.vB);this.listen("click",this.onClick);this.Z.Y().D("web_player_autonav_toggle_always_listen")&& +Tcl(this);lv(C,this.element,this);this.vB()}; +Tcl=function(C){C.K.push(C.S(C.Z,"videodatachange",C.vB));C.K.push(C.S(C.Z,"videoplayerreset",C.vB));C.K.push(C.S(C.Z,"onPlaylistUpdate",C.vB));C.K.push(C.S(C.Z,"autonavchange",C.Jm))}; +Bcx=function(C){C.isChecked=C.isChecked;C.dO("ytp-autonav-toggle-button").setAttribute("aria-checked",String(C.isChecked));var b=C.isChecked?"Autoplay is on":"Autoplay is off";C.updateValue("title",b);C.updateValue("label",b);C.Z.B2()}; +Ir6=function(C){return C.Z.Y().D("web_player_autonav_use_server_provided_state")&&Da(C.PW())}; +xGH=function(C){O_.call(this,C);var b=this;this.events=new g.ui(C);g.D(this,this.events);this.events.S(C,"standardControlsInitialized",function(){var h=new nX(C);g.D(b,h);C.sx(h,"RIGHT_CONTROLS_LEFT")})}; +tR=function(C,b){g.U_.call(this,g.Xz({role:"menuitemcheckbox","aria-checked":"false"}),b,C,{B:"div",C:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; +T4=function(C,b){C.checked=b;C.element.setAttribute("aria-checked",String(C.checked))}; +woo=function(C){var b=!C.Y().NZ&&C.getPresentingPlayerType()!==3;return C.isFullscreen()||b}; +g.BK=function(C,b,h,N){var p=C.currentTarget;if((h===void 0||!h)&&g.qj(C))return C.preventDefault(),!0;b.pauseVideo();C=p.getAttribute("href");g.dG(C,N,!0);return!1}; +g.IC=function(C,b,h){if(KO(b.Y())&&b.getPresentingPlayerType()!==2){if(g.qj(h))return b.isFullscreen()&&!b.Y().externalFullscreen&&b.toggleFullscreen(),h.preventDefault(),!0}else{var N=g.qj(h);N&&b.pauseVideo();g.dG(C,void 0,!0);N&&(g.WX(C),h.preventDefault())}return!1}; +bxS=function(){var C=CwV.includes("en")?{B:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{B:"path",xr:!0,T:{d:"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z", +fill:"#fff"}}]}:{B:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{B:"path",xr:!0,T:{d:"M11,11 C9.9,11 9,11.9 9,13 L9,23 C9,24.1 9.9,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M11,17 L14,17 L14,19 L11,19 L11,17 L11,17 Z M20,23 L11,23 L11,21 L20,21 L20,23 L20,23 Z M25,23 L22,23 L22,21 L25,21 L25,23 L25,23 Z M25,19 L16,19 L16,17 L25,17 L25,19 L25,19 Z",fill:"#fff"}}]};C.C="ytp-subtitles-button-icon";return C}; +xz=function(){return{B:"div",C:"ytp-spinner-container",U:[{B:"div",C:"ytp-spinner-rotator",U:[{B:"div",C:"ytp-spinner-left",U:[{B:"div",C:"ytp-spinner-circle"}]},{B:"div",C:"ytp-spinner-right",U:[{B:"div",C:"ytp-spinner-circle"}]}]}]}}; +wY=function(C){if(document.createRange){var b=document.createRange();b&&(b.selectNodeContents(C),C=window.getSelection())&&(C.removeAllRanges(),C.addRange(b))}}; +hy=function(C){var b=C.D("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";tR.call(this,b,g.Cl.IC);var h=this;this.Z=C;this.j=!1;this.K=new g.C2(function(){g.e6(h.element,"ytp-menuitem-highlighted")},0); +this.xg=C.r8();this.setIcon({B:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{B:"path",T:{d:"M21 7v10H3V7h18m1-1H2v12h20V6zM11.5 2v3h1V2h-1zm1 17h-1v3h1v-3zM3.79 3 6 5.21l.71-.71L4.5 2.29 3.79 3zm2.92 16.5L6 18.79 3.79 21l.71.71 2.21-2.21zM19.5 2.29 17.29 4.5l.71.71L20.21 3l-.71-.71zm0 19.42.71-.71L18 18.79l-.71.71 2.21 2.21z",fill:"white"}}]});this.subscribe("select",this.N,this);this.listen(bu,this.X);g.D(this,this.K)}; +NV=function(C){O_.call(this,C);var b=this;this.j=!1;C.addEventListener("settingsMenuInitialized",function(){hVl(b)}); +C.addEventListener("highlightSettingsMenu",function(h){hVl(b);var N=b.menuItem;h==="menu_item_cinematic_lighting"&&(g.c4(N.element,"ytp-menuitem-highlighted"),g.c4(N.element,"ytp-menuitem-highlight-transition-enabled"),N.K.start())}); +w9(C,"updateCinematicSettings",function(h){b.updateCinematicSettings(h)})}; +hVl=function(C){C.menuItem||(C.menuItem=new hy(C.api),g.D(C,C.menuItem),C.menuItem.l$(C.j))}; +gC=function(C){O_.call(this,C);var b=this;this.events=new g.ui(C);g.D(this,this.events);this.events.S(C,"applicationvideodatachange",function(h,N){b.YS(h,N)})}; +pl=function(C){O_.call(this,C);this.events=new g.ui(C);g.D(this,this.events);w9(C,"setCreatorEndscreenVisibility",this.setCreatorEndscreenVisibility.bind(this));w9(C,"setCreatorEndscreenHideButton",this.j.bind(this))}; +PV=function(C,b,h,N){tR.call(this,"Stable Volume",g.Cl.Ui);g.c4(this.element,"ytp-drc-menu-item");this.xg=C.r8();this.X=b;this.j=h;this.hasDrcAudioTrack=N;C.addEventListener("videodatachange",this.K.bind(this));C.D("mta_drc_mutual_exclusion_removal")&&this.S(C,"onPlaybackAudioChange",this.K);C=this.j()===1&&this.hasDrcAudioTrack();this.setEnabled(this.hasDrcAudioTrack());this.setIcon({B:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{B:"path",T:{d:"M7 13H5v-2h2v2zm3-4H8v6h2V9zm3-3h-2v12h2V6zm3 2h-2v8h2V8zm3 2h-2v4h2v-4zm-7-7c-4.96 0-9 4.04-9 9s4.04 9 9 9 9-4.04 9-9-4.04-9-9-9m0-1c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2z", +fill:"white"}}]});this.subscribe("select",this.N,this);T4(this,C);this.xg.hk(this)}; +jK=function(C){O_.call(this,C);var b=this;this.events=new g.ui(C);g.D(this,this.events);C.D("html5_show_drc_toggle")&&C.addEventListener("settingsMenuInitialized",function(){b.menuItem||(b.menuItem=new PV(b.api,b.setDrcUserPreference.bind(b),b.getDrcUserPreference.bind(b),b.K.bind(b)),g.D(b,b.menuItem))}); +w9(this.api,"setDrcUserPreference",function(N){b.setDrcUserPreference(N)}); +w9(this.api,"getDrcUserPreference",function(){return b.getDrcUserPreference()}); +w9(this.api,"hasDrcAudioTrack",function(){return b.K()}); +var h;this.j=(h=g.QJ("yt-player-drc-pref"))!=null?h:1;this.updateEnvironmentData()}; +cV=function(C){O_.call(this,C);var b=this;this.j={};this.events=new g.ui(C);g.D(this,this.events);this.events.S(C,"videodatachange",function(){b.onVideoDataChange()}); +this.events.S(C,g.p8("embargo"),function(h){b.api.eX(!0);var N,p=(N=b.j[h.id])!=null?N:[];N=g.z(p);for(p=N.next();!p.done;p=N.next()){var P=p.value;b.api.hideControls();b.api.u3("auth",2,"This video isn't available in your current playback area",VX({embargoed:1,id:h.id,idx:h.K,start:h.start}));p=void 0;(P=(p=P.embargo)==null?void 0:p.onTrigger)&&b.api.LO("innertubeCommand",P)}})}; +NVx=function(C,b){var h;return(h=b.onEnter)==null?void 0:h.some(C.K)}; +glK=function(C,b){b=g.z(b);for(var h=b.next();!h.done;h=b.next()){h=h.value;var N=void 0,p=Number((N=h.playbackPosition)==null?void 0:N.utcTimeMillis)/1E3,P=void 0;N=p+Number((P=h.duration)==null?void 0:P.seconds);P="embargo_"+p;C.api.addUtcCueRange(P,p,N,"embargo",!1);h.onEnter&&(C.j[P]=h.onEnter.filter(C.K))}}; +kq=function(C){O_.call(this,C);var b=this;this.j=[];this.events=new g.ui(C);g.D(this,this.events);w9(C,"addEmbedsConversionTrackingParams",function(h){b.api.Y().V7&&b.addEmbedsConversionTrackingParams(h)}); +this.events.S(C,"veClickLogged",function(h){b.api.hasVe(h)&&(h=kI(h.visualElement.getAsJspb(),2),b.j.push(h))})}; +pxW=function(C){O_.call(this,C);w9(C,"isEmbedsShortsMode",function(){return C.isEmbedsShortsMode()})}; +Pwc=function(C){O_.call(this,C);var b=this;this.events=new g.ui(C);g.D(this,this.events);this.events.S(C,"initialvideodatacreated",function(h){G0(F$(),16623);b.j=g.mZ();var N=C.Y().Eq&&!h.Xy;if(Q4(h)&&N){G0(F$(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(h.getWatchNextResponse()){var p,P=(p=h.getWatchNextResponse())==null?void 0:p.trackingParams;P&&$l(P)}if(h.getPlayerResponse()){var c;(h=(c=h.getPlayerResponse())==null?void 0:c.trackingParams)&&$l(h)}}else G0(F$(), +32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),h.getEmbeddedPlayerResponse()&&(c=(P=h.getEmbeddedPlayerResponse())==null?void 0:P.trackingParams)&&$l(c)}); +this.events.S(C,"loadvideo",function(){G0(F$(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:b.j})}); +this.events.S(C,"cuevideo",function(){G0(F$(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:b.j})}); +this.events.S(C,"largeplaybuttonclicked",function(h){G0(F$(),27240,h.visualElement)}); +this.events.S(C,"playlistnextbuttonclicked",function(h){G0(F$(),27240,h.visualElement)}); +this.events.S(C,"playlistprevbuttonclicked",function(h){G0(F$(),27240,h.visualElement)}); +this.events.S(C,"playlistautonextvideo",function(){G0(F$(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; +eK=function(C,b){g.O.call(this);var h=this;this.j=null;this.N=b;b=[];for(var N=0;N<=100;N++)b.push(N/100);b={threshold:b,trackVisibility:!0,delay:1E3};(this.K=window.IntersectionObserver?new IntersectionObserver(function(p){p=p[p.length-1];typeof p.isVisible==="undefined"?document.visibilityState==="visible"&&p.isIntersecting&&p.intersectionRatio>0?h.j=p.intersectionRatio:document.visibilityState==="hidden"?h.j=0:h.j=null:h.j=p.isVisible?p.intersectionRatio:0;typeof h.N==="function"&&h.N(h.j)},b): +null)&&this.K.observe(C)}; +cdc=function(C){O_.call(this,C);var b=this;this.events=new g.ui(C);g.D(this,this.events);this.events.S(C,"applicationInitialized",function(){jcl(b)})}; +jcl=function(C){var b=C.api.getRootNode(),h=b;if(!C.api.D("embeds_emc3ds_inview_ks")){var N;h=C.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((N=b.parentElement)==null?void 0:N.parentElement)||b:b}C.j=new eK(h,function(p){p!=null&&(C.api.Y().Zu=p,C.api.Y().nI="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); +g.D(C,C.j);C.events.S(C.api,"videoStatsPingCreated",function(p){var P=C.j;P=P.j==null?null:Math.round(P.j*100)/100;p.inview=P!=null?P:void 0;P=C.api.getPlayerSize();if(P.height>0&&P.width>0){P=[Math.round(P.width),Math.round(P.height)];var c=g.Oa();c>1&&P.push(c);P=P.join(":")}else P=void 0;p.size=P})}; +k0H=function(C){var b;return((b=((C==null?void 0:C.messageRenderers)||[]).find(function(h){return!!h.timeCounterRenderer}))==null?void 0:b.timeCounterRenderer)||null}; +Ll=function(C){g.n.call(this,{B:"div",J4:["ytp-player-content","ytp-iv-player-content"],U:[{B:"div",C:"ytp-free-preview-countdown-timer",U:[{B:"span",BE:"{{label}}"},{B:"span",C:"ytp-free-preview-countdown-timer-separator",BE:"\u2022"},{B:"span",BE:"{{duration}}"}]}]});this.api=C;this.j=null;this.N=this.K=0;this.S(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; +Lux=function(C,b){C.j||(C.K=b,C.N=(0,g.Ai)(),C.j=new g.wl(function(){eVV(C)},null),eVV(C))}; +eVV=function(C){var b=Math,h=b.round,N=Math.min((0,g.Ai)()-C.N,C.K);b=h.call(b,(C.K-N)/1E3);C.updateValue("duration",eO({seconds:b}));b<=0&&C.j?Zk(C):C.j&&C.j.start()}; +Zk=function(C){C.j&&(C.j.dispose(),C.j=null)}; +ZxH=function(C){O_.call(this,C);var b=this;this.events=new g.ui(C);g.D(this,this.events);this.events.S(C,"basechromeinitialized",function(){b.j=new Ll(C);g.D(b,b.j);g.qC(C,b.j.element,4);b.j.hide()})}; +Yq=function(C){g.n.call(this,{B:"button",J4:["ytp-fullerscreen-edu-button","ytp-button"],U:[{B:"div",J4:["ytp-fullerscreen-edu-text"],BE:"Scroll for details"},{B:"div",J4:["ytp-fullerscreen-edu-chevron"],U:[{B:"svg",T:{height:"100%",viewBox:"0 0 24 24",width:"100%"},U:[{B:"path",T:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}]}],T:{"data-priority":"1"}});this.h4=C;this.j=new g.b1(this,250,void 0,100);this.N=this.K=!1;C.createClientVe(this.element,this,61214);g.D(this, +this.j);this.S(C,"fullscreentoggled",this.l$);this.S(C,"presentingplayerstatechange",this.l$);this.listen("click",this.onClick);this.l$()}; +a8=function(C){O_.call(this,C);var b=this;this.events=new g.ui(C);g.D(this,this.events);w9(this.api,"updateFullerscreenEduButtonSubtleModeState",function(N){b.updateFullerscreenEduButtonSubtleModeState(N)}); +w9(this.api,"updateFullerscreenEduButtonVisibility",function(N){b.updateFullerscreenEduButtonVisibility(N)}); +var h=C.Y();C.D("external_fullscreen_with_edu")&&h.externalFullscreen&&KO(h)&&h.controlsType==="1"&&this.events.S(C,"standardControlsInitialized",function(){b.j=new Yq(C);g.D(b,b.j);C.sx(b.j)})}; +YKH=function(C){g.n.call(this,{B:"div",C:"ytp-gated-actions-overlay",U:[{B:"div",C:"ytp-gated-actions-overlay-background",U:[{B:"div",C:"ytp-gated-actions-overlay-background-overlay"}]},{B:"button",J4:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],T:{"aria-label":"Close"},U:[g.zY()]},{B:"div",C:"ytp-gated-actions-overlay-bar",U:[{B:"div",C:"ytp-gated-actions-overlay-text-container",U:[{B:"div",C:"ytp-gated-actions-overlay-title",BE:"{{title}}"},{B:"div",C:"ytp-gated-actions-overlay-subtitle", +BE:"{{subtitle}}"}]},{B:"div",C:"ytp-gated-actions-overlay-button-container"}]}]});var b=this;this.api=C;this.background=this.dO("ytp-gated-actions-overlay-background");this.K=this.dO("ytp-gated-actions-overlay-button-container");this.j=[];this.S(this.dO("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){b.api.LO("onCloseMiniplayer")}); +this.hide()}; +lp_=function(C,b){var h=0;h=0;for(var N={};h +p&&(p=e.width,P="url("+e.url+")")}h.background.style.backgroundImage=P;lp_(h,N.actionButtons||[]);h.show()}else h.hide()}); +g.qC(this.api,this.j.element,4)}; +lu=function(C){O_.call(this,C);var b=this;bv(this.api,"getSphericalProperties",function(){return b.getSphericalProperties()}); +bv(this.api,"setSphericalProperties",function(){b.setSphericalProperties.apply(b,g.M(g.ro.apply(0,arguments)))}); +CX(this.api,"getSphericalProperties",function(){return b.api.getPresentingPlayerType()===2?{}:b.getSphericalProperties()}); +CX(this.api,"setSphericalProperties",function(){var h=g.ro.apply(0,arguments);b.api.getPresentingPlayerType()!==2&&b.setSphericalProperties.apply(b,g.M(h))})}; +o8=function(C){O_.call(this,C);w9(C,"createClientVe",this.createClientVe.bind(this));w9(C,"createServerVe",this.createServerVe.bind(this));w9(C,"destroyVe",this.destroyVe.bind(this));w9(C,"hasVe",this.hasVe.bind(this));w9(C,"logClick",this.logClick.bind(this));w9(C,"logVisibility",this.logVisibility.bind(this));w9(C,"setTrackingParams",this.setTrackingParams.bind(this))}; +FN=function(C,b,h,N){function p(c){var e=!(c.status!==204&&c.status!==200&&!c.response),L;c={succ:""+ +e,rc:c.status,lb:((L=c.response)==null?void 0:L.byteLength)||0,rt:((0,g.Ai)()-P).toFixed(),shost:g.XX(C),trigger:b};FuU(c,C);h&&h(c);N&&!e&&N(new Mw("pathprobe.net",c))} +var P=(0,g.Ai)();g.fN(C,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:p,onTimeout:p})}; +FuU=function(C,b){var h;((h=window.performance)==null?0:h.getEntriesByName)&&(b=performance.getEntriesByName(b))&&b.length&&(b=b[0],C.pedns=(b.domainLookupEnd-b.startTime).toFixed(),C.pecon=(b.connectEnd-b.domainLookupEnd).toFixed(),C.perqs=(b.requestStart-b.connectEnd).toFixed(),G0H&&(C.perqsa=b.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; +G8=function(C,b){this.BW=C;this.policy=b;this.playbackRate=1}; +SKl=function(C,b){var h=Math.min(2.5,LO(C.BW));C=SK(C);return b-h*C}; +$q=function(C,b,h,N,p){p=p===void 0?!1:p;if(C.policy.xA)return Math.ceil(C.policy.xA*b);C.policy.BM&&(N=Math.abs(N));N/=C.playbackRate;var P=1/ah(C.BW);h=Math.max(.9*(N-3),LO(C.BW)+C.BW.K.j*P)/P*.8/(b+h);h=Math.min(h,N);C.policy.Np>0&&p&&(h=Math.max(h,C.policy.Np));return $Sl(C,h,b)}; +$Sl=function(C,b,h){return Math.ceil(Math.max(Math.max(C.policy.xs,C.policy.Ep*h),Math.min(Math.min(C.policy.t4,31*h),Math.ceil(b*h))))||C.policy.xs}; +zVW=function(C,b,h){h=$q(C,b.j.info.OX,h.j.info.OX,0);var N=LO(C.BW)+h/ah(C.BW);return Math.max(N,N+C.policy.cB-h/b.j.info.OX)}; +SK=function(C){return ah(C.BW,!C.policy.NZ,C.policy.O$)}; +z8=function(C){return SK(C)/C.playbackRate}; +HV=function(C,b,h){var N=C.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],p=C.policy.playbackStartPolicy.startMinReadaheadPolicy||[];C=Infinity;b=g.z(b&&N.length>0?N:p);for(N=b.next();!N.done;N=b.next())N=N.value,p=N.minReadaheadMs||0,h<(N.minBandwidthBytesPerSec||0)||C>p&&(C=p);return C0&&(this.K=h.pw)}; +qKl=function(C,b,h,N,p){if(!N.info.X){if(h.length===0)h.push(N);else{var P;(C=(P=h.pop())==null?void 0:g.Ww(P,N))?h.push(C):h.push(N)}return p}var c;(h=(c=h.pop())==null?void 0:g.Ww(c,N))||(h=N);if(C.policy.Yr&&h.info.K)return C.logger&&C.logger({incompleteSegment:h.info.RV()}),p;c=C.xW(h);N=c.formatId;p=c.yz;h=c.clipId;P=c.yj;c=c.startTimeMs;if(!C.policy.AT&&C.policy.K&&C.uf){var e=MV(C.uf,h);c+=e}N={clipId:h,formatId:N,startTimeMs:c,durationMs:P,vT:p,KX:p,cQ:c,rF:P};p=Hxo(b,N.startTimeMs);(h=p>= +0?b[p]:null)&&VOo(C,h,N)?N=h:(p+=1,b.splice(p,0,N));h=0;for(P=p+1;P=Z+c.K?c=!0:Y+c.K=0?C:-C-2}; +mSW=function(C,b){if(C.rU){var h=C.rU.P7();if(h.length!==0){if(C.N&&b){var N=C.N,p=N.info.c7;!pI(h,p)&&N.info.W>0&&(0,g.Ai)()-C.W<5E3&&(C.logger&&C.logger({dend:N.info.RV()}),h=lKo(h,p,p+.01))}C.policy.JC&&C.logger&&C.logger({cbri:""+C.j});N=[];for(var P=p=0;p=c){var Y=0;if(C.uf){var a=qV(C.uf,L*1E3);a&&(Y=a.Uc/1E3)}a=Object.assign({},C.Pb[P]);var l=C.cE.N.get(ov(C.Pb[P].formatId)), +F=Math.max(L,c);c=l.index.nZ(F+C.K/1E3-Y);L=l.index.getStartTime(c)+Y;var G=c+ +(Math.abs(L-F)>C.K/1E3);F=G+C.X;G=(l.index.getStartTime(G)+Y)*1E3;P!==C.j||b?(a.vT=F,a.startTimeMs=G):(C.logger&&C.logger({pEvict:"1",og:a.startTimeMs,adj:L*1E3}),a.vT=c+C.X,a.startTimeMs=L*1E3);a.cQ=a.startTimeMs;c=void 0;L=((c=C.N)==null?void 0:c.info.duration)||11;P===C.j&&eC.K/1E3);c=L+C.X;Y=(l.index.Qg(L)+Y)*1E3;a.KX=c;a.durationMs=Y-a.startTimeMs;a.rF=a.durationMs;a.vT<=a.KX&&N.push(a)}ZC.K)return!1;if(MOW(C,b.formatId,h.formatId))return b.durationMs=Math.max(N,p)-b.startTimeMs,b.rF=b.durationMs,b.KX=Math.max(b.KX,h.KX),!0;if(Math.abs(b.startTimeMs-h.startTimeMs)<=C.K){if(b.durationMs>h.durationMs+C.K){C=b.formatId;var P=b.vT,c=b.KX;b.formatId=h.formatId;b.durationMs=h.durationMs;b.vT=h.vT;b.rF=h.durationMs;b.KX=h.KX;h.formatId=C;h.startTimeMs=p;h.cQ=p;h.durationMs=N-p;h.rF=h.durationMs; +h.vT=P;h.KX=c;return!1}b.formatId=h.formatId;return!0}N>h.startTimeMs&&(b.durationMs=h.startTimeMs-b.startTimeMs,b.rF=b.durationMs,b.clipId===h.clipId&&(b.KX=h.vT-1));return!1}; +MOW=function(C,b,h){return b.itag!==h.itag||b.xtags!==h.xtags?!1:C.cE.yV||b.lmt===h.lmt}; +yd6=function(C,b,h){if(C.logger){for(var N=[],p=0;p=0&&rC(C.audioTrack,C.j)>=0&&P?((C.videoTrack.G||C.audioTrack.G)&&C.Xo.jp("iterativeSeeking",{status:"done",count:C.seekCount}),C.videoTrack.G=!1,C.audioTrack.G=!1):N&&g.eI(function(){if(C.K||!C.policy.SC)uu(C);else{var c=b.startTime,e=b.duration;if(!C.policy.W){var L=h?C.videoTrack.G:C.audioTrack.G,Z=C.videoTrack.W!==-1&&C.audioTrack.W!==-1,Y=C.j>=c&&C.j432E3&&b3U(C.cE);C.N&&(p=C.N,C.N=0);g.eI(function(){C.policy.W||R8(C,p,102)}); +C.Xo.jp("initManifestlessSync",{st:p,ost:p+C.Xo.Z9(),a:C.audioTrack.W,v:C.videoTrack.W});C.X&&(C.X.resolve(p+.1),C.X=null);C.policy.W&&R8(C,p,102)}}}; +XN=function(C,b){var h=this;this.wU=C;this.requestNumber=++scH;this.j=this.now();this.V=this.KO=NaN;this.J=this.j;this.N=this.Yg=this.G=0;this.W=this.j;this.rO=this.L=this.q2=this.Xs=this.IV=this.sX=this.K=this.X=0;this.N2=this.isActive=!1;this.ob=this.zi=0;this.dn={Q_f:function(){return h.Qm}}; +this.BW=b.BW;this.snapshot=sJK(this.BW);this.policy=this.BW.K;this.cM=!!b.cM;this.bl=b.bl;this.kf=b.kf||0;this.ip=b.ip||0;b.Kq&&(this.Qz=new h9);var N;this.Qm=(N=b.Qm)!=null?N:!1;this.cM||UOl(this.BW)}; +Ox6=function(C){C.q2=Math.max(C.q2,C.G-C.IV);C.L=Math.max(C.L,C.J-C.Xs);C.sX=0}; +Kl=function(C,b,h){XFW(C.BW,b);C.Qz&&(C.Qz.add(Math.ceil(b)-Math.ceil(C.J)),C.Qz.add(Math.max(0,Math.ceil(h/1024)-Math.ceil(C.G/1024))));var N=b-C.J,p=h-C.G;C.Yg=p;C.rO=Math.max(C.rO,p/(N+.01)*1E3);C.J=b;C.G=h;C.sX&&h>C.sX&&Ox6(C)}; +sh=function(C,b){C.url=b;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; +Oh=function(C,b){XN.call(this,C,b);this.sI=this.SC=!1;this.t4=this.nO=Infinity;this.CO=NaN;this.G$=!1;this.kh=NaN;this.AZ=this.Df=this.m6=0;this.Ux=b.Ux||1;this.Yy=b.Yy||this.Ux;this.LI=b.LI;this.yz=b.yz;this.y6=b.y6;vlo(this);this.sL(this.j);this.Vz=(this.kh-this.j)/1E3}; +DSW=function(C){var b=C.Df||C.m6;return b?C.snapshot.delay+Math.min(C.ip,(C.V-C.KO)/1E3)+b:C.Vz}; +vV=function(C,b,h){if(!C.cM){b=Math.max(b,.01);var N=C.kf?Math.max(b,h/C.kf):b,p=C.BW.K.N;p&&(N=b,C.kf&&(N=Math.max(b,h/C.kf*p)));cI(C.BW,b,h,N)}}; +dSW=function(C){return(C.W-C.j)/1E3}; +vlo=function(C){C.CO=C.j+C.snapshot.delay*1E3;C.G$=!1}; +Dk=function(C,b){if(C.LI&&C.yz!==void 0&&C.y6!==void 0){var h=Math,N=h.min,p=C.nO;var P=C.LI;var c=C.j;if(Wu1(P,C.yz))P=b;else{var e=0;P.Do&&(e=.2);P=c+(P.ip+e)*1E3}C.nO=N.call(h,p,P);h=Math;N=h.min;p=C.t4;P=C.LI;c=C.j;e=Ell(P,C.yz,C.y6);e!==2&&(b=e?b:c+P.ip*1E3,P.Do&&(b+=P.ip*1E3));C.t4=N.call(h,p,b);C.nO<=C.j?vlo(C):(C.CO=C.nO,C.G$=!0)}}; +nlx=function(C,b){if(C.FS(b,1)){var h=C.getUint8(b);h=h<128?1:h<192?2:h<224?3:h<240?4:5}else h=0;if(h<1||!C.FS(b,h))return[-1,b];if(h===1)C=C.getUint8(b++);else if(h===2)h=C.getUint8(b++),C=C.getUint8(b++),C=(h&63)+64*C;else if(h===3){h=C.getUint8(b++);var N=C.getUint8(b++);C=C.getUint8(b++);C=(h&31)+32*(N+256*C)}else if(h===4){h=C.getUint8(b++);N=C.getUint8(b++);var p=C.getUint8(b++);C=C.getUint8(b++);C=(h&15)+16*(N+256*(p+256*C))}else h=b+1,C.focus(h),HN(C,h,4)?C=rpW(C).getUint32(h-C.GQ,!0):(N= +C.getUint8(h+2)+256*C.getUint8(h+3),C=C.getUint8(h)+256*(C.getUint8(h+1)+256*N)),b+=5;return[C,b]}; +dC=function(C){this.wU=C;this.j=new G7}; +WV=function(C,b){this.info=C;this.callback=b;this.state=1;this.hv=this.Gg=!1;this.ER=null}; +tO1=function(C){return g.mI(C.info.UX,function(b){return b.type===3})}; +Eh=function(C,b,h,N){var p=this;N=N===void 0?{}:N;this.policy=b;this.wU=h;this.status=0;this.j=new G7;this.K=0;this.HE=this.X=this.N=!1;this.xhr=new XMLHttpRequest;this.xhr.open(N.method||"GET",C);if(N.headers)for(C=N.headers,b=g.z(Object.keys(C)),h=b.next();!h.done;h=b.next())h=h.value,this.xhr.setRequestHeader(h,C[h]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return p.aB()}; +this.xhr.onload=function(){return p.onDone()}; +this.xhr.onerror=function(){return p.onError()}; +this.xhr.fetch(function(P){p.j.append(P);p.K+=P.length;P=(0,g.Ai)();p.wU.s8(P,p.K)},function(){},N.body||null)}; +TVK=function(C,b){this.K=(new TextEncoder).encode(C);this.j=(new TextEncoder).encode(b)}; +IVl=function(C,b){var h,N,p;return g.R(function(P){if(P.j==1){if(!b)return P.return(b);h=nl.nP();N=new g.HW(C.K);return g.J(P,N.encrypt(b,C.j),2)}p=P.K;nl.zP("woe",h,Math.ceil(b.byteLength/16));return P.return(p)})}; +hL1=function(C,b){var h,N,p;return g.R(function(P){if(P.j==1){if(!b)return P.return(b);h=nl.nP();N=new g.HW(C.K);return g.J(P,N.decrypt(b,C.j),2)}p=P.K;nl.zP("wod",h,Math.ceil(b.byteLength/16));return P.return(p)})}; +Ipl=function(C,b){var h=this;this.j=C;this.wU=b;this.loaded=this.status=0;this.error="";C=SS(this.j.get("range")||"");if(!C)throw Error("bad range");this.range=C;this.K=new G7;BVV(this).then(function(){h.wU.Xh()},function(N){h.error=""+N||"unknown_err"; +h.wU.Xh()})}; +BVV=function(C){var b,h,N,p,P,c,e,L,Z,Y,a,l,F,G,V;return g.R(function(q){if(q.j==1){C.status=200;b=C.j.get("docid");h=Ie(C.j.get("fmtid")||"");N=C.j.get("lmt")||"0";p=+(C.j.get("csz")||0);if(!b||!h||!p)throw Error("Invalid local URL");C.j.get("ck")&&C.j.get("civ")&&(P=new TVK(C.j.get("ck"),C.j.get("civ")));c=C.range;e=Math.floor(c.start/p);L=Math.floor(c.end/p);Z=e}if(q.j!=5)return Z<=L?g.J(q,Nb6(b,h,N,Z,P),5):q.WE(0);Y=q.K;if(Y===void 0)throw Error("invariant: data is undefined");a=Z*p;l=(Z+1)*p; +F=Math.max(0,c.start-a);G=Math.min(c.end+1,l)-(F+a);V=new Uint8Array(Y.buffer,F,G);C.K.append(V);C.loaded+=G;C.loaded0&&(b.j=Math.min(b.j+P,10),b.K=p),b.j>0?(b.j--,b=!0):b=!1,b)typeof h==="function"&&(h=h()),N&&(h=N(h)),console.log("plyr."+C,h); +else{var c;h=((c=jLH.get(C))!=null?c:0)+1;jLH.set(C,h);h%100===1&&console.warn("plyr","plyr."+C+" is chatty, dropping logs.")}}; +Pkl=function(){this.j=10;this.K=Date.now()}; +I8=function(C,b){g.O.call(this);var h=this;this.policy=C;this.UX=b;this.K=0;this.j=null;this.Ss=[];this.N=null;this.dn={Zt:function(){return h.UX}}; +this.UX.length===1||g.mI(this.UX,function(N){return!!N.range})}; +xq=function(C,b,h){C.j&&(Sc(C.j,b),b=C.j,C.j=null);for(var N=0,p=0,P=g.z(C.UX),c=P.next();!c.done;c=P.next())if(c=c.value,c.range&&N+c.N<=C.K)N+=c.N;else{b.getLength();if(V0(c)&&!h&&C.K+b.getLength()-p=400?(C.lastError="net.badstatus",!0):(p===void 0?0:p)?(C.lastError="ump.spsrejectfailure",!0):h||N!==void 0&&N?!1:(C.lastError=b===204?"net.nocontent":"net.connect",!0)}; +gv=function(C,b){if(C.policy.hA)return!1;var h=b.getResponseHeader("content-type"),N=b.IQ();C=!N||N<=C.policy.oJ;return(!b.Ta()||!h||h.indexOf("text/plain")!==-1)&&C}; +Yml=function(C,b){var h="";b=b.eA();b.getLength()<=C.policy.oJ&&(h=Z_l(C,b.f5()));return h}; +Z_l=function(C,b){var h=qn(b);return w0(h)?(C.logger.debug(function(){return"Redirecting to "+h}),h):""}; +CC=function(C){return eS(C.N,lk(C.EG.Oe))}; +alc=function(C){var b=C.timing.Dp();b.shost=lk(C.EG.Oe);return b}; +llo=function(C,b){return(C==null?void 0:C.maxWidth)>(b==null?void 0:b.maxWidth)||(C==null?void 0:C.maxHeight)>(b==null?void 0:b.maxHeight)}; +o0l=function(C,b){for(var h=g.z(b.keys()),N=h.next();!N.done;N=h.next())if(N=b.get(N.value),N.length!==0){g.Ls(N,function(e,L){return L.maxFramerate-e.maxFramerate}); +for(var p=[N[0]],P=0,c=1;cC.j||h.push(N)}return h}; +pC=function(C,b,h){var N=SmU[C]||[];h.D("html5_shorts_onesie_mismatched_fix")&&(N=$9H[C]||[]);b.push.apply(b,g.M(N));h.D("html5_early_media_for_drm")&&b.push.apply(b,g.M(zFl[C]||[]))}; +flH=function(C,b){var h=g.wF(C),N=C.Y(),p=N.G;N=N.D("html5_shorts_onesie_mismatched_fix");var P=C.Yw();if(N){if(!p.N){if(P&&Pp)return Pp;if(j4)return j4}}else if(j4&&!p.N)return j4;var c=[],e=[],L={},Z=cp.concat(H_V);N&&(Z=cp.concat(Vkl));C.D("html5_early_media_for_drm")&&(Z=Z.concat(MkU),C.D("allow_vp9_1080p_mq_enc")&&Z.push(qmH));var Y=[].concat(g.M(m9c));if(h.V)for(var a=0;ah.Ml)){var V=g.Zc(C.Y().experiments,"html5_drm_byterate_soft_cap");V>0&&Y8_(G)&&G.OX>V||(a?(c.push(F),pC(F,c,C)):(G=p_(h,G,p),G===!0?(a=!0,c.push(F),pC(F,c,C)):L[F]=G))}}}Y=g.z(Y);for(Z=Y.next();!Z.done;Z=Y.next())for(Z=g.z(Z.value),a=Z.next();!a.done;a=Z.next())if(a= +a.value,(l=k9l(a))&&l.audio&&(C.D("html5_onesie_51_audio")||!En(l)&&!nE(l)))if(l=p_(h,l,p),l===!0){e.push(a);pC(a,e,C);break}else L[a]=l;h.K&&b("orfmts",L);if(N)return p.N&&(p.N=!1,Pp=j4=void 0),P?Pp={video:c,audio:e}:j4={video:c,audio:e};j4={video:c,audio:e};p.N=!1;return j4}; +g.r31=function(C,b,h){var N=h.G,p=[],P=[],c=h.D("html5_shorts_onesie_mismatched_fix");C=C.Yw();var e=cp.concat(H_V);c&&(e=cp.concat(Vkl));h.D("html5_early_media_for_drm")&&(e=e.concat(MkU),h.D("allow_vp9_1080p_mq_enc")&&e.push(qmH));var L=[].concat(g.M(m9c));if(b.V)for(var Z=0;Z0&&Y8_(a)&&a.OX>l)&&p_(b,a,N)===!0){p.push({videoCodec:A3H[On[Y]],maxWidth:a.video.width,maxHeight:a.video.height,maxFramerate:a.video.fps});break}}}}c=g.z(L);for(C=c.next();!C.done;C=c.next())for(C=g.z(C.value),L=C.next();!L.done;L=C.next())if(L=L.value,(e=k9l(L))&&e.audio&&(h.D("html5_onesie_51_audio")||!En(e)&&!nE(e))&&p_(b,e,N)=== +!0){P.push({audioCodec:y3o[On[L]],numChannels:e.audio.numChannels});break}return{videoFormatCapabilities:p,audioFormatCapabilities:P}}; +kh=function(C){var b={},h=C.vE,N=C.Rf,p=h.getVideoData(),P=yp(0),c=h.getPlayerSize(),e=h.getVisibilityState();P&&(b.OOO=P,b.lastManualDirection=MPl(),P=IbW()||0,P>0&&(P=(N.D("html5_use_date_now_for_local_storage")?Date.now():(0,g.Ai)())-P,N.D("html5_use_date_now_for_local_storage")?P>0&&(b.timeSinceLastManualFormatSelectionMs=P):b.timeSinceLastManualFormatSelectionMs=P));P=N.D("html5_use_streamer_bandwidth_for_low_latency_live")&&p.isLowLatencyLiveStream;if(N.schedule.KO&&!P){var L;P=N.D("html5_disable_bandwidth_cofactors_for_sabr_live")? +!((L=C.Zi)==null||!L.NZ):!1;b.Ho=ah(N.schedule,!P)}L=g.Oa();var Z=g.Un.medium,Y=Math.floor(Z*16/9);P=p.Yw()?Z:Y;Z=p.Yw()?Y:Z;b.mP=Math.max(c.width*L,P);b.Y0=Math.max(c.height*L,Z);b.visibility=e;b.cL2=Ap();b.fb=h.YA()*1E3;c=C.vE.sO(!0);var a,l,F,G,V,q;b.Ivo={defaultPolicy:(c==null?void 0:(a=c.qf)==null?void 0:a.j)||0,smooth:(c==null?void 0:(l=c.N06)==null?void 0:l.j)||0,visibility:(c==null?void 0:(F=c.w2h)==null?void 0:F.j)||0,Yj:(c==null?void 0:(G=c.mz)==null?void 0:G.j)||0,performance:(c==null? +void 0:(V=c.Au)==null?void 0:V.j)||0,speed:(c==null?void 0:(q=c.ZXo)==null?void 0:q.j)||0};if(N.D("html5_sabr_report_sticky_constraints")){var f;b.yT=(c==null?void 0:(f=c.d9O)==null?void 0:f.j)||0}else b.yT=yp();N.D("html5_enable_sabr_drm_hd720p")&&C.sabrLicenseConstraint&&(b.sabrLicenseConstraint=C.sabrLicenseConstraint);if(N.D("html5_onesie_media_capabilities")||N.D("html5_enable_server_format_filter"))b.Cu=3;N.D("html5_onesie_audio_only_playback")&&B7(p)&&(b.Cu=1);var y;((y=C.Zi)==null?0:y.sI)&& +C.ghE&&(b.Cu=b.Cu===void 0?7:b.Cu|4);a=p.ge?p.ge:g.wF(p);N.D("html5_onesie_media_capabilities")&&(b.mediaCapabilities=g.r31(p,a,N));var u;if((u=C.Zi)==null?0:u.j&&u.OG){F=N.G;u=[];l=[];G=new Map;N.D("html5_ssap_update_capabilities_on_change")?(F.V||rIx(F),V=F.V||[]):V=Array.from(F.j.values());V=g.z(V);for(q=V.next();!q.done;q=V.next())f=q.value,f.Ab?l.push({audioCodec:y3o[f.PE],numChannels:f.numChannels,spatialCapabilityBitmask:i_6[f.PE]}):(y=A3H[f.PE],q={videoCodec:y,maxWidth:f.maxWidth||0,maxHeight:f.maxHeight|| +0,maxFramerate:f.maxFramerate||0,is10BitSupported:f.FB||!1},f.maxBitrateBps&&(q.maxBitrateBps=f.maxBitrateBps,c=x7(f.itag),e=void 0,((e=c)==null?0:e.video)&&p_(a,c,F)===!0&&(c=c.OX*8,c>q.maxBitrateBps&&(q.maxBitrateBps=c))),f=y+"_"+f.FB,y=G.get(f)||[],y.push(q),G.set(f,y));u=o0l(u,G);F={};N.D("html5_ssff_denylist_opus_low")&&(F={itagDenylist:[249,350]});b.mediaCapabilities={videoFormatCapabilities:u,audioFormatCapabilities:l,hdrModeBitmask:3,perPlaybackAttributes:F}}var K;if((K=C.Zi)==null?0:K.j){b.nk= +a.nk;var v;b.Ml=(v=C.Zi)==null?void 0:v.Ml}N.LK&&(b.Qj=N.LK);b.Iz=C.J0;b.Wp=C.Wp;b.s6=C.s6;b.E0=C.E0;if(N.D("html5_fix_time_since_last_seek_reporting")?C.Qr!==void 0:C.Qr)b.hrh=(0,g.Ai)()-C.Qr;C.isPrefetch&&N.D("html5_report_prefetch_requests")&&(b.isPrefetch=!0);D5||(b.hWi=!0);K=LO(N.schedule)*1E3;K>0&&(b.U7=K);var T;((T=C.Zi)==null?0:T.U$)&&C.lq&&C.lq0?t:N.schedule.interruptions[0]||0);var go;if((go=C.Zi)==null?0:go.AZ)b.Ke=C.Ke;var jV;((jV=C.Zi)==null?0:jV.BP)&&p.n$&&(b.audioTrackId=p.n$);var CW;if((CW=C.Zi)==null?0:CW.Nj)if(C=LMl())b.detailedNetworkType=J3l[C]||J3l.other;return b}; +e4=function(C,b,h,N,p,P,c){var e={};b&&(e.pG=b);if(!C)return e;e.playbackCookie=h==null?void 0:h.playbackCookie;p&&(e.NN=p);e.E5=[];e.GZ=[];if(c==null?0:c.size)for(b=g.z(c.values()),h=b.next();!h.done;h=b.next())e.GZ.push(h.value);if(C.En&&C.sabrContextUpdates.size>0)for(b=g.z(C.sabrContextUpdates.values()),h=b.next();!h.done;h=b.next())u3c(e,h.value,N);x6(C)&&!g.sF(C)&&C.D("html5_enable_sabr_request_pipelining")&&P&&u3c(e,P,N);C.mF&&(e.v16=C.mF);N=C.Y().j;e.clientInfo={clientName:RFU[N.c.toUpperCase()]|| +0};N.cbrand&&(e.clientInfo.deviceMake=N.cbrand);N.cmodel&&(e.clientInfo.deviceModel=N.cmodel);N.cver&&(e.clientInfo.clientVersion=N.cver);N.cos&&(e.clientInfo.osName=N.cos);N.cosver&&(e.clientInfo.osVersion=N.cosver);N=C.Y();N.D("html5_sabr_enable_server_xtag_selection")&&N.ob&&(e.clientInfo.hl=N.ob);C.cK&&(e.cK=C.cK);return e}; +u3c=function(C,b,h){var N=b.type||0;(h==null?0:h.has(N))?C.GZ.push(b):C.E5.push(N)}; +Ay=function(C,b,h,N,p,P){var c=P===void 0?{}:P;var e=c.O6===void 0?[]:c.O6;var L=c.Of===void 0?!1:c.Of;var Z=c.I1===void 0?0:c.I1;var Y=c.poToken===void 0?"":c.poToken;var a=c.V5===void 0?void 0:c.V5;var l=c.Zr===void 0?"":c.Zr;var F=c.Y1===void 0?0:c.Y1;var G=c.Mi===void 0?new Uint8Array(0):c.Mi;var V=c.vI===void 0?!1:c.vI;P=c.fT===void 0?0:c.fT;c=c.pG===void 0?void 0:c.pG;WV.call(this,b,p);var q=this;this.policy=C;this.logger=new g.T8("dash/request");this.fE=this.FH=0;this.e3=!1;this.bR=this.qW= +null;this.Wv=!1;this.Mi=this.Y1=null;this.WI=this.X4=!1;this.M5=null;this.fT=this.D8=0;this.Bh=!1;this.dn={TE:function(y){q.TE(y)}, +O$2:function(){return q.ER}, +DkE:function(y){q.ER=y}, +a8h:function(y){q.FH=y}, +EU6:function(y){q.Qd.lastError=y}, +jj:function(){return q.xhr}}; +this.timing=new Oh(this,h);this.Of=L;this.Y1=F;this.Mi=G;this.EG=g.J4(this.info,this.policy,N);this.EG.set("rn",this.ML().toString());this.EG.set("rbuf",(Z*1E3).toFixed().toString());this.Of&&this.EG.set("smb","1");this.policy.nS&&Y&&this.EG.set("pot",Y);l&&this.EG.set("bbs",l);this.policy.useUmp&&!oL(this.EG.Oe)&&(this.NL=new dC(this),this.EG.set("ump","1"),this.EG.set("srfvp","1"));if(C=this.policy.Zp?this.policy.lJ&&!isNaN(this.info.y6)&&this.info.y6>this.policy.qF?!1:!0:!1)b=null,this.policy.uT&& +this.policy.QQ?b=[1]:V&&(b=[]),b!=null&&(this.policy.yY&&b.push(2),this.EG.set("defsel",b.join(",")));this.Qd=new wC(this,this.policy,this.EG,this.info.dU,this.timing,this.logger,N,a);this.O6=e||null;this.hv=QLl(this);c3K(this.Qd);N=void 0;if(this.policy.uv||this.NL||this.policy.Qz)N={method:"POST"},e=(0,g.LC)([120,0]),a={},this.policy.Tb&&c&&(c=e4(void 0,c),a.d1=c),this.policy.Q5&&this.Mi&&(a.videoPlaybackUstreamerConfig=this.Mi),this.policy.Qz&&(c=this.info.X)&&Object.assign(a,c),Object.keys(a).length> +0?N.body=g.PW(a,g.dV):N.body=e;if(this.Y1&&this.Mi){this.EG.set("iwts","1");N={method:"POST"};c={E0:this.Y1*1E3};var f;e=(f=this.info.X)==null?void 0:f.Vw;f=g.PW({y3:c,Vw:e||void 0,videoPlaybackUstreamerConfig:this.Mi},g.dV);N.body=f}try{this.xhr=ty(this.EG,this.policy.L,this.timing,C,N),this.Qd.K.start(),P&&(this.qS=new g.C2(this.lL,P,this),this.qS.start(P+(this.timing.BW.L.w0()||0)*1E3)),this.policy.mJ&&sh(this.timing,this.p9()),this.logger.debug(function(){return"Sent, itag="+q.EG.get("itag")+ +" seg="+q.info.UX[0].yz+" range="+q.EG.get("range")+" time="+Math.round(q.info.UX[0].c7)+"-"+Math.round(g.to(q.info.UX).cF)+" rtp="+(q.timing.Yp()-Date.now()).toFixed(0)}),g.eI(function(){})}catch(y){U9S(this,y,!0)}}; +QLl=function(C){if(!(i0(C.info)&&C.info.Qm()&&C.policy.ge&&C.O6)||C.info.dU.K>=2||yp()>0||!Ac1())return!1;var b=C.EG.get("aitags");if(!b)return!1;b=Ie(b).split(",");for(var h=[],N=g.z(C.O6),p=N.next();!p.done;p=N.next())p=p.value,g.xI(b,p)&&h.push(p);if(!h.length)return!1;C.EG.set("altitags",g.Bh(h.join(",")));return!0}; +U9S=function(C,b,h){h=h===void 0?!1:h;g.Ri(b);C.Qd.lastError="player.exception";C.errorMessage=b.name+"_"+b.message;h?g.eI(function(){hT(C.Qd)}):hT(C.Qd)}; +XeH=function(C,b){C.timing.N2=!0;C.xhr.Ta()&&C.timing.Cr();if(C.policy.OU){var h;(h=C.qS)==null||h.stop()}xq(C.ER,b,!1)}; +Kmx=function(C,b){C.info=b;if(C.ER){var h=C.ER;b=b.UX;(b.length!==h.UX.length||b.length0){b=g.z(b.UX);for(var h=b.next();!h.done;h=b.next()){var N=void 0;C+=((N=h.value.range)==null?void 0:N.length)||0}return C}if(b.o6.length>0)for(h=g.z(b.o6),N=h.next();!N.done;N=h.next())C+=N.value.f6||0;return C+b.tP}; +S4=function(C,b){if(om){var h=0;C=C.Sf.get(b);if(C==null||!C.gi)return 0;C=g.z(C.gi.values());for(b=C.next();!b.done;b=C.next())h+=b.value.data.getLength();return h}return((h=C.Sf.get(b))==null?void 0:h.Ss.getLength())||0}; +$h=function(C,b){C=C.Sf.get(b);if(om){if(C==null||!C.zl)return!1;b=C.gi.size>0;return C.y5.length>0||b}return!(C==null||!C.zl)&&!(C==null||!C.Ss.getLength())}; +WmS=function(C,b){var h=C.Sf.get(b),N=d9W(C,b),p=!N&&!!h.bytesReceived;if(om){var P;if((P=C.cE)==null?0:P.yV){C=g.z(h.gi.values());for(b=C.next();!b.done;b=C.next())if(!b.value.jb)return!1;return p}}else if(P=C.er(b),p&&C.j&&P!==void 0)return P;return(p||h.bytesReceived===N)&&h.Hx+S4(C,b)===h.bytesReceived}; +E0K=function(C,b,h){C.Sf.set(b,{Ss:new G7,Hx:0,bytesReceived:0,tP:0,NH:!1,nX:!1,er:!1,Ab:h,Yk:[],UX:[],o6:[],zl:!1,gi:new Map,LH:new Map,y5:[]});C.logger.debug(function(){return"[initStream] formatId: "+b})}; +n0c=function(C,b,h,N){h.UX.push.apply(h.UX,g.M(N));if(om){h.LH.has(b)||h.LH.set(b,[]);var p;(p=h.LH.get(b)).push.apply(p,g.M(N))}else if(h.ER)for(C=g.z(N),b=C.next();!b.done;b=C.next())h.ER.UX.push(b.value);else{h.ER=new I8(C.Zi,[].concat(g.M(h.UX)));var P;((P=C.Zi)==null?0:P.Zu)&&g.D(C,h.ER)}}; +tkx=function(C,b,h){var N,p=(N=C.cE)==null?void 0:N.N.get(b);if(!p)return[];if(h.TJ){var P;return((P=p.lP(0,h.clipId))==null?void 0:P.UX)||[]}if(p.uR()){var c=h.startMs,e=h.durationMs,L=1E3,Z;if(((Z=C.Zi)==null?0:Z.j)&&h.timeRange){var Y;c=(Y=h.timeRange.startTicks)!=null?Y:-1;var a;e=(a=h.timeRange.fu)!=null?a:-1;var l;L=(l=h.timeRange.timescale)!=null?l:-1}if(h.zT<0||h.dA<0||e<0||c<0||h.f6<0||L<0)return Gi(C,b),[];C=$i(h.zT,h.f6);b=h.EZ||0;return[new Hw(3,p,C,"makeSliceInfosMediaBytes",h.dA-1,c/ +L,e/L,b,C.length-b,void 0,h.IS,h.clipId)]}if(h.dA<0)return Gi(C,b),[];var F;return((F=C.cE)==null?0:F.yV)?(b=p.jL,Z=b*p.info.OX,Y=((c=C.Zi)==null?0:c.Yr)?h.EZ:void 0,((L=C.Zi)==null?0:L.RJ)&&h.timeRange&&!Y&&(e=h.timeRange.startTicks/h.timeRange.timescale),[new Hw(3,p,void 0,"makeSliceInfosMediaBytes",h.dA,e,b,Y,Z,!0,h.IS,h.clipId)]):[]}; +TE_=function(C,b,h){C.cE=b;C.Zi=h;b=g.z(C.Sf);for(h=b.next();!h.done;h=b.next()){var N=g.z(h.value);h=N.next().value;N=N.next().value;for(var p=g.z(N.Yk),P=p.next();!P.done;P=p.next()){P=P.value;var c=tkx(C,h,P);n0c(C,P.Wm,N,c)}}}; +zi=function(C,b,h,N){C.logger.debug(function(){return"[addStreamData] formatId: "+h+",headerId: "+b+" bytes: "+N.getLength()}); +(C=C.Sf.get(h))&&!C.nX&&(om?(C.gi.has(b)||C.gi.set(b,{data:new G7,yn:0,jb:!1}),Sc(C.gi.get(b).data,N)):Sc(C.Ss,N),C.bytesReceived+=N.getLength(),C.NH=!0)}; +Fe=function(C,b){C.logger.debug(function(){return"[closeStream] formatId: "+b}); +var h=C.Sf.get(b);h&&!h.nX&&(h.nX=!0,h.PL&&h.PL(),BE6(C)&&C.X.Ar())}; +BE6=function(C){C=g.z(C.Sf.values());for(var b=C.next();!b.done;b=C.next())if(!b.value.nX)return!1;return!0}; +Hp=function(C,b,h,N,p,P,c,e){g.O.call(this);this.policy=C;this.info=b;this.cE=h;this.wU=p;this.Cg=e;this.logger=new g.T8("sabr");this.NL=new dC(this);this.Ur=new am(this);this.NK=new lr(this);this.state=1;this.kx=!1;this.GD=0;this.clipId="";this.Yq=this.oF=-1;this.fV=0;this.fC=-1;this.Bh=this.SV=!1;this.xn=0;this.L8=!1;this.policy.XM?this.RL=new Zg(this,P):this.RL=new Oh(this,P);this.EG=this.policy.AZ?b.bJ:IlH(b,this.policy,N);this.EG.set("rn",""+this.ML());this.EG.set("alr","yes");TE_(this.NK,h, +C);this.Qd=new wC(this,this.policy,this.EG,b.dU,this.RL,this.logger,N,c,this.policy.enableServerDrivenRequestCancellation);c3K(this.Qd);var L;if((L=this.policy)==null?0:L.Zu)g.D(this,this.NK),g.D(this,this.Qd);C=b.K;b={method:"POST",body:C};C&&(this.fV=C.length);try{this.xhr=ty(this.EG,this.policy.L,this.RL,D5,b),this.policy.mJ&&sh(this.RL,this.p9()),this.Qd.K.start()}catch(Z){g.QB(Z)}}; +x9H=function(C){C.policy.xb&&C.tF&&!C.L8?C.L8=!0:C.RL.Cr()}; +weV=function(C,b){var h=-1,N=-1,p=-1,P;if((P=C.oz)==null?0:P.items)for(C=g.z(C.oz.items),P=C.next();!P.done;P=C.next())P=P.value,b=e,L=C.cE.isManifestless&&C.policy.YN, +c){var Z;if(((Z=C.j)==null?void 0:Z.qK.event)==="predictStart"&&C.j.yzC.G&&(C.G=NaN,C.J=NaN);if(C.j&&C.j.yz===b)if(N=C.j,!C.policy.WB||p&&N){var c=N.qK;P=p.Es(c);c.event==="predictStart"&&(C.N2=b);C.jp("sdai",{onqevt:c.event,sq:b,mt:h,gab:P,cst:c.startSecs,cueid:C.policy.Qh&&(P||c.event==="start")?c.identifier:void 0},!0);if(P)if(c.event!=="predictStart")c.event==="start"&&C.N2===b-1&&C.jp("sdai",{gabonstart:b}), +N.oG?m_(C,4,"cue"):(C.G=b,C.J=h,C.jp("sdai",{joinad:C.K,sg:C.G,st:C.J.toFixed(3)}),C.V=Date.now(),m_(C,2,"join"),p.Vg(N.qK));else{var e=b+Math.max(Math.ceil(-c.j/5E3),1);P=Math.floor(h-c.j/1E3);C.policy.G?C.N=P:C.X=e;C.jp("sdai",{onpred:h,estsq:e,estmt:P.toFixed(3)});AT(C.Xo,P,P,e);C.V=Date.now();m_(C,3,"predict");p.Vg(N.qK)}else C.K===1?((e=C.W)==null?0:e.UQ(h))?(AT(C.Xo,h,h,b),m_(C,4,"sk2had")):m_(C,5,"nogab"):c.event==="predictStart"&&(C.policy.G&&C.N>0?(h=Math.floor(h-c.j/1E3),C.N!==h&&C.jp("sdai", +{updateSt:h,old:C.N}),C.N=h):C.X>0&&(h=b+Math.max(Math.ceil(-c.j/5E3),1),C.X!==h&&(C.jp("sdai",{updateSt:h,old:C.X}),C.X=h)));var L,Z;if(C.qz&&c.event==="start"&&((L=C.j)==null?void 0:L.qK.event)!=="predictStart"&&((Z=C.j)==null?void 0:Z.yz)===b-1){var Y;C.jp("sdai",{ovlpst:(Y=C.j)==null?void 0:Y.qK.event,sq:b})}}else C.jp("sdai",{nulldec:1,sq:b,mt:h.toFixed(3),evt:(N==null?void 0:(c=N.qK)==null?void 0:c.event)||"none"});else C.K===1&&m_(C,5,"noad")}; +lTH=function(C,b,h){if(C.K===1||C.K===2)return!1;if(C.K!==0&&b===C.audioTrack){if(C.policy.G)return aT_(C.videoTrack,h)||aT_(C.videoTrack,h+1);C=yb(C.videoTrack);if(h>(C?C.yz:-1))return!1}return!0}; +rv=function(C,b,h){return(h<0||h===C.G)&&!isNaN(C.J)?C.J:b}; +L6U=function(C,b){if(C.j){var h=C.j.qK.YJ-(b.startTime+C.L-C.j.qK.startSecs);h<=0||(h=new rE(C.j.qK.startSecs-(isNaN(C.L)?0:C.L),h,C.j.qK.context,C.j.qK.identifier,"stop",C.j.qK.j+b.duration*1E3),C.jp("cuepointdiscontinuity",{segNum:b.yz}),q3(C,h,b.yz))}}; +m_=function(C,b,h){C.K!==b&&(C.jp("sdai",{setsst:b,old:C.K,r:h}),C.K=b)}; +ir=function(C,b,h,N){(N===void 0?0:N)?m_(C,1,"seek"):b>0&&Math.abs(b-h)>=5&&C.K===4&&m_(C,5,"sk2t."+b.toFixed(2)+";ct."+h.toFixed(2))}; +JT=function(C,b,h){this.audio=C;this.video=b;this.reason=h}; +ur=function(C,b,h){this.j=C;this.reason=b;this.token=h;this.videoId=void 0}; +Rm=function(C,b,h){g.O.call(this);this.policy=C;this.X=b;this.jp=h;this.N=new Map;this.G=0;this.W=!1;this.j="";this.K=!1}; +Qb=function(C,b,h){if(h===void 0?0:h)C.W=!0;++C.G;h=6E4*Math.pow(2,C.G);h=(0,g.Ai)()+h;C.N.set(b.info.id,h)}; +Uk=function(C){for(var b=g.z(C.N.entries()),h=b.next();!h.done;h=b.next()){var N=g.z(h.value);h=N.next().value;N=N.next().value;N<(0,g.Ai)()&&C.N.delete(h)}return C.N}; +oic=function(C){return C.W&&Uk(C).size>0}; +Xe=function(C,b){C.j!==b&&(C.j=b,C.K=!0)}; +F6K=function(C,b){var h;b&&(h=g.B$(C.X.j,function(p){return p.id===b})); +if(!h&&(h=g.B$(C.X.j,function(p){var P;return!((P=p.z$)==null||!P.isDefault)}),b)){var N; +C.jp("iaf",{id:b,sid:(N=h)==null?void 0:N.id})}return h}; +sk=function(C,b,h,N,p,P){var c=this;P=P===void 0?[]:P;this.Xo=C;this.nO=b;this.policy=h;this.cE=N;this.W=p;this.kh=P;this.logger=new g.T8("dash/abr");this.j=RQ;this.N=this.J=null;this.V=-1;this.Df=!1;this.nextVideo=this.K=null;this.X=[];this.t4=new Set;this.Qz={};this.Yh=new g_(1);this.L=0;this.CO=this.N2=this.KO=!1;this.q2=0;this.m6=!1;this.sX=new Set;this.rO=!1;this.dn={z9:function(){KC(c)}}; +this.G=new Rm(this.policy,p,function(e,L){c.Xo.jp(e,L)})}; +H$K=function(C,b,h){Ok(C,b);b=F6K(C.G,h);h||b||(b=GE_(C));b=b||C.W.j[0];C.K=C.cE.j[b.id];KC(C);C.J=C.K;Suc(C);$Ll(C);C.N=C.nextVideo;C.J=C.K;return zfl(C)}; +quH=function(C,b){if(VSK(C,b))return null;if(b.reason==="m"&&b.isLocked())return C.logger.debug(function(){return"User sets constraint to: "+C_(b)}),Ok(C,b),C.L=C.X.length-1,KC(C),vp(C),C.N2=C.N2||C.N!==C.nextVideo,C.N=C.nextVideo,new JT(C.K,C.N,b.reason); +b.reason==="r"&&(C.V=-1);Ok(C,b);vp(C);if(b.reason==="r"&&C.nextVideo===C.N)return new JT(C.K,C.nextVideo,b.reason);MSU(C);return null}; +mL_=function(C,b,h){C.K=C.cE.j[b];C.J=C.K;return new JT(C.J,C.N,h?"t":"m")}; +fTW=function(C,b){if(b.info.video){if(C.N!==b)return C.N=b,zfl(C)}else C.CO=C.J!==b,C.J=b;return null}; +A4c=function(C,b){if(b.j.info.video&&b.X){var h=(b.K+b.N)/b.duration,N=b.j.info.OX;h&&N&&(C.Yh.eQ(1,h/N),C.policy.N&&h/N>1.5&&C.Xo.jp("overshoot",{sq:b.yz,br:h,max:N}))}}; +Dg=function(C,b,h){Qb(C.G,b,h===void 0?!1:h);C.V=-1;Ok(C,C.j)}; +y4_=function(C,b){return new JT(C.J,C.N,b||C.j.reason)}; +MSU=function(C){if(C.N&&C.nextVideo&&dv(C,C.N.info)C.policy.Ml,e=p<=C.policy.Ml?W9(N):DC(N);if(!P||c||e)h[p]=N}return h}; +Ok=function(C,b){C.j=b;var h=C.W.videoInfos;if(!C.j.isLocked()){var N=(0,g.Ai)();h=g.er(h,function(e){if(e.OX>this.policy.OX)return!1;var L=this.cE.j[e.id];return Uk(this.G).get(e.id)>N?!1:L.dU.K>4||L.W>4?(this.logger.debug(function(){return"Remove "+bJ(e)+"; 4 load failures"}),!1):this.sX.has(+e.itag)?!1:!0},C); +oic(C.G)&&(h=g.er(h,function(e){return e.video.width<=854&&e.video.height<=480}))}h.length||(h=C.W.videoInfos); +var p=h;C.policy.dh&&(p=i$S(C,p,b));p=g.er(p,b.X,b);if(C.j.isLocked()&&C.G.j){var P=g.B$(h,function(e){return e.id===C.G.j}); +P?p=[P]:Xe(C.G,"")}C.policy.dh||(p=i$S(C,p,b));p.length||(p=[h[0]]);p.sort(function(e,L){return dv(C,e)-dv(C,L)}); +b={};for(h=1;hb.L0.video.width?(g.wD(p,h),h--):dv(C,b.HX)*C.policy.V>dv(C,b.L0)&&(g.wD(p,h-1),h--);var c=p[p.length-1];C.m6=!!C.N&&!!C.N.info&&C.N.info.PE!==c.PE;C.logger.debug(function(){return"Constraint: "+C_(C.j)+", "+p.length+" fmts selectable, max selectable fmt: "+bJ(c)}); +C.X=p;C.t4.clear();b=!1;for(h=0;h=1080&&(b=!0);J4o(C.policy,c,C.cE.yV)}; +i$S=function(C,b,h){var N=h.reason==="m"||h.reason==="s";C.policy.cV&&Wp&&g.$1&&(!N||h.j<1080)&&(b=b.filter(function(Z){return Z.video&&(!Z.K||Z.K.powerEfficient)})); +if(b.length>0)if(Ye()){var p=r4_(C,b);b=b.filter(function(Z){return!!Z&&!!Z.video&&Z.PE===p[Z.video.j].PE})}else{var P,c,e=(P=b[0])==null?void 0:(c=P.video)==null?void 0:c.j; +if(e){h=b.filter(function(Z){return!!Z&&!!Z.video&&Z.video.j===e}); +var L=r4_(C,h)[e].PE;b=b.filter(function(Z){return!!Z&&!!Z.video&&Z.PE===L})}}return b}; +u21=function(C,b){for(var h=0;h+1N}; +KC=function(C){if(!C.K||!C.policy.X&&!C.K.info.z$){var b=C.W.j;C.K&&(b=b.filter(function(N){return N.audio.j===C.K.info.audio.j}),b.length||(b=C.W.j)); +C.K=C.cE.j[b[0].id];if(b.length>1){if(C.policy.wG){if(C.policy.G$)return;var h=g.B$(b,function(N){return N.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); +h&&(C.K=C.cE.j[h.id])}h=!1;if(h=C.policy.w9?!0:C.j.isLocked()?C.j.j<240:u21(C,C.K))C.K=C.cE.j[g.to(b).id]}}}; +vp=function(C){if(!C.nextVideo||!C.policy.X)if(C.j.isLocked())C.nextVideo=C.j.j<=360?C.cE.j[C.X[0].id]:C.cE.j[g.to(C.X).id],C.logger.debug(function(){return"Select max fmt: "+bJ(C.nextVideo.info)}); +else{for(var b=Math.min(C.L,C.X.length-1),h=z8(C.nO),N=dv(C,C.K.info),p=h/C.policy.KO-N;b>0&&!(dv(C,C.X[b])<=p);b--);for(var P=h/C.policy.V-N;b=P);b++);C.nextVideo=C.cE.j[C.X[b].id];C.L!==b&&C.logger.info(function(){return"Adapt to: "+bJ(C.nextVideo.info)+", bandwidth: "+h.toFixed(0)+", bandwidth to downgrade: "+p.toFixed(0)+", bandwidth to upgrade: "+P.toFixed(0)+", constraint: "+C_(C.j)}); +C.L=b}}; +Suc=function(C){var b=C.policy.KO,h=z8(C.nO),N=h/b-dv(C,C.K.info);b=g.Id(C.X,function(p){return dv(this,p)P?p=0:N[c]>C.buffered[c]&&(c===P-1?p=2:c===P-2&&N[c+1]>C.buffered[c+1]&&(p=3))}C.j.add(b<<3|(h&&4)|p);b=Math.ceil(C.track.YA()*1E3);C.j.add(b-C.G);C.G=b;if(p===1)for(C.j.add(P),c=b=0;c=2&&C.j.add(N[P- +1]-C.buffered[P-1]);h&&C.j.add(h);C.buffered=N}; +tT=function(C,b,h){var N=this;this.policy=C;this.j=b;this.q2=h;this.X=this.K=0;this.Kv=null;this.KO=new Set;this.V=[];this.indexRange=this.initRange=null;this.L=new nI;this.N2=this.nO=!1;this.dn={UpE:function(){return N.N}, +xpX:function(){return N.chunkSize}, +Nhf:function(){return N.J}, +KXE:function(){return N.W}}; +(b=K6K(this))?(this.chunkSize=b.csz,this.N=Math.floor(b.clen/b.csz),this.J=b.ck,this.W=b.civ):(this.chunkSize=C.mf,this.N=0,this.J=g.M5(16),this.W=g.M5(16));this.G=new Uint8Array(this.chunkSize);this.J&&this.W&&(this.crypto=new TVK(this.J,this.W))}; +K6K=function(C){if(C.policy.Eq&&C.policy.Uw)for(var b=g.z(C.policy.Eq),h=b.next(),N={};!h.done;N={Zk:void 0,Md:void 0},h=b.next())if(h=g.PQ(h.value),N.Zk=+h.clen,N.Md=+h.csz,N.Zk>0&&N.Md>0&&C.policy.X===h.docid&&C.j.info.id===h.fmtid&&C.j.info.lastModified===+h.lmt)return C={},C.clen=N.Zk,C.csz=N.Md,C.ck=h.ck,C.civ=h.civ,C}; +Ti=function(C){return!!C.Kv&&C.Kv.b1()}; +vio=function(C,b){if(!Ti(C)&&!C.HE()){if(!(C.nO||(C.nO=!0,C.N>0))){var h=Bp(C);h=qm(C.policy.X,C.j.info,Im(C),h,C.policy.kh);xh(C,h)}if(b.info.type===1){if(C.Kv){wv(C,Error("Woffle: Expect INIT slices to always start us off"));return}C.initRange=$i(0,b.j.getLength())}else if(b.info.type===2)C.Kv&&C.Kv.type===1||wv(C,Error("Woffle: Index before init")),C.indexRange=$i(C.initRange.end+1,b.j.getLength());else if(b.info.type===3){if(!C.Kv){wv(C,Error("Woffle: Expect MEDIA slices to always have lastSlice")); +return}if(C.Kv.type===3&&!qL(C.Kv,b.info)&&(C.V=[],b.info.yz!==m6(C.Kv)||b.info.K!==0))return;if(b.info.X){h=g.z(C.V);for(var N=h.next();!N.done;N=h.next())sv_(C,N.value);C.V=[]}else{C.V.push(b);C.Kv=b.info;return}}else{wv(C,Error("Woffle: Unexpected slice type"));return}C.Kv=b.info;sv_(C,b);O$W(C)}}; +sv_=function(C,b){var h=0,N=b.j.f5();if(C.X=N.length)return;if(h<0)throw Error("Missing data");C.X=C.N;C.K=0}for(p={};h0){var c=N.getUint32(h+28);P+=c*16+4}var e=N.getUint32(h+P-4);try{var L=niW(b.subarray(h+P,h+P+e));if(L!==null){var Z=L;break a}}catch(Y){}}h+=p}Z=null;break a}catch(Y){Z=null;break a}Z=void 0}if(Z!=null)for(b=YQ(KL(Z,7)),b==null||C.KK||(C.cryptoPeriodIndex=b),b=YQ(KL(Z,10)),b!=null&&b>0&&!C.KK&&(C.j=b),Z=nL(Z, +2,$IU,void 0===VoS?2:4),Z=g.z(Z),b=Z.next();!b.done;b=Z.next())C.N.push(g.$s(yR(b.value),4))}; +TdH=function(C){return isNaN(C.cryptoPeriodIndex)?g.$s(C.initData):""+C.cryptoPeriodIndex}; +h7=function(C,b,h){var N=h===void 0?{}:h;h=N.videoDuration===void 0?0:N.videoDuration;var p=N.jm===void 0?void 0:N.jm;N=N.ZV===void 0?!1:N.ZV;this.videoId=C;this.status=b;this.videoDuration=h;this.jm=p;this.ZV=N}; +BdW=function(C,b,h,N,p){this.videoId=C;this.ZE=b;this.K=h;this.bytesDownloaded=N;this.j=p}; +Ni=function(C){this.j=C;this.offset=0}; +gI=function(C){if(C.offset>=C.j.getLength())throw Error();return C.j.getUint8(C.offset++)}; +ITW=function(C,b){b=b===void 0?!1:b;var h=gI(C);if(h===1){b=-1;for(h=0;h<7;h++){var N=gI(C);b===-1&&N!==255&&(b=0);b>-1&&(b=b*256+N)}return b}N=128;for(var p=0;p<6&&N>h;p++)h=h*256+gI(C),N*=128;return b?h:h-N}; +xLW=function(C){try{var b=ITW(C,!0),h=ITW(C,!1);return{id:b,size:h}}catch(N){return{id:-1,size:-1}}}; +wwS=function(C){for(var b=new Ni(C),h=-1,N=0,p=0;!N||!p;){var P=xLW(b),c=P.id;P=P.size;if(c<0)return;if(c===176){if(P!==2)return;N=b.yw()}else if(c===186){if(P!==2)return;p=b.yw()}c===374648427?h=b.yw()+P:c!==408125543&&c!==174&&c!==224&&b.skip(P)}b=VC(C,0,h);h=new DataView(b.buffer);h.setUint16(N,3840);h.setUint16(p,2160);N=new G7([b]);Sc(N,C);return N}; +C86=function(C,b,h){var N=this;this.Xo=C;this.policy=b;this.W=h;this.logger=new g.T8("dash");this.K=[];this.j=null;this.nO=-1;this.V=0;this.sX=NaN;this.KO=0;this.N=NaN;this.L=this.Df=0;this.m6=-1;this.Qz=this.G=this.X=this.q2=null;this.Yh=this.CO=NaN;this.J=this.N2=this.t4=this.kh=null;this.zi=!1;this.rO=this.timestampOffset=0;this.dn={f1:function(){return N.K}}; +if(this.policy.X){var p=this.W,P=this.policy.X;this.policy.kh&&C.jp("atv",{ap:this.policy.kh});this.J=new tT(this.policy,p,function(c,e,L){pf(C,new h7(N.policy.X,2,{jm:new BdW(P,c,p.info,e,L)}))}); +this.J.L.promise.then(function(c){N.J=null;c===1?pf(C,new h7(N.policy.X,c)):N.Xo.jp("offlineerr",{status:c.toString()})},function(c){var e=(c.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); +c instanceof Cf&&!c.j?(N.logger.info(function(){return"Assertion failed: "+e}),N.Xo.jp("offlinenwerr",{em:e}),Pg(N),pf(C,new h7(N.policy.X,4))):(N.logger.info(function(){return"Failed to write to disk: "+e}),N.Xo.jp("dldbwerr",{em:e}),Pg(N),pf(C,new h7(N.policy.X,4,{ZV:!0})))})}}; +bAl=function(C){return C.K.length?C.K[0]:null}; +hNW=function(C,b){return C.K.some(function(h){return h.info.yz===b})}; +jG1=function(C,b,h,N){N=N===void 0?0:N;if(C.G){var p=C.G.K+C.G.N;if(h.info.K>0)if(h.info.yz===C.G.yz&&h.info.K=0&&C.G.yz>=0&&!qL(C.G,h.info))throw new g.tJ("improper_continuation",C.G.RV(),h.info.RV());dwW(C.G,h.info)||jQ(C,"d")}else if(h.info.K>0)throw new g.tJ("continuation_of_null",h.info.RV());C.G=h.info;C.W=h.info.j;if(h.info.K===0){if(C.j)if(!C.Xo.isOffline()||C.policy.ZT)C.Xo.jp("slice_not_fully_processed",{buffered:C.j.info.RV(), +push:h.info.RV()});else throw new g.tJ("slice_not_fully_processed",C.j.info.RV(),h.info.RV());cg(C);C.Df=N}else{if(C.Df&&N&&C.Df!==N)throw C=new g.tJ("lmt_mismatch",h.info.yz,C.Df,N),C.level="WARNING",C;!h.info.j.uR()&&C.X&&(N=h.info,p=C.X.oF,N.G="updateWithEmsg",N.yz=p)}if(C.j){N=g.Ww(C.j,h);if(!N)throw new g.tJ("failed_to_merge",C.j.info.RV(),h.info.RV());C.j=N}else C.j=h;a:{h=g.tm(C.j.info.j.info);if(C.j.info.type!==3){if(!C.j.info.X)break a;C.j.info.type===6?Ns6(C,b,C.j):gyx(C,C.j);C.j=null}for(;C.j;){N= +C.j.j.getLength();if(C.nO<=0&&C.V===0){var P=C.j.j,c=-1;p=-1;if(h){for(var e=0;e+80))break;if(a!==408125543)if(a===524531317)e=!0,Y>=0&&(p=P.yw()+Y,L=!0);else{if(e&&(a===160||a===163)&&(c<0&&(c=Z),L))break;a===163&&(c=Math.max(0,c),p=P.yw()+Y);if(a===160){c<0&&(p=c=P.yw()+Y);break}P.skip(Y)}}c<0&&(p=-1)}if(c< +0)break;C.nO=c;C.V=p-c}if(C.nO>N)break;C.nO?(N=pRW(C,C.nO),N.G&&P8l(C,N),Ns6(C,b,N),kc(C,N),C.nO=0):C.V&&(N=pRW(C,C.V<0?Infinity:C.V),C.V-=N.j.getLength(),kc(C,N))}}C.j&&C.j.info.X&&(kc(C,C.j),C.j=null)}; +gyx=function(C,b){!b.info.j.uR()&&b.info.K===0&&(g.tm(b.info.j.info)||b.info.j.info.KK())&&SO_(b);if(b.info.type===1)try{P8l(C,b),cP6(C,b)}catch(p){g.Ri(p);var h=f$(b.info);h.hms="1";C.Xo.handleError("fmt.unparseable",h||{},1)}h=b.info.j;h.Bn(b);C.J&&vio(C.J,b);if(h.MK()&&C.policy.j)a:{C=C.Xo.cE;b=b.info.clipId;h=g.IT(h.info,C.yV);if(b){var N=U81(C,h);if(C.rO[N])break a;C.rO[N]=b}C.Qz.push(h)}}; +RVS=function(C,b,h){if(C.K.length!==0&&(h||C.K.some(function(P){return P.info.c7=Lf(c)+e):b=C.getDuration()>=c.getDuration(),b=!b;b&&LY_(h)&&(b=C.q2,eQ?(e=F1l(h),c=1/e,e=Lf(C,e),b=Lf(b)+c-e):b=b.getDuration()- +C.getDuration(),b=1+b/h.info.duration,$wH(h.W7(),b))}else{c=!1;C.X||(SO_(h),h.K&&(C.X=h.K,c=!0,P=h.info,N=h.K.oF,P.G="updateWithEmsg",P.yz=N,P=h.K,P.b1&&(N=C.W.index,N.K=!P.b1,N.N="emsg"),P=h.info.j.info,N=h.W7(),g.tm(P)?dE(N,1701671783):P.KK()&&x0([408125543],307544935,N)));a:if((P=t4(h,C.policy.IV))&&GFl(h))e=ZAK(C,h),C.L+=e,P-=e,C.KO+=P,C.N=C.policy.du?C.N+P:NaN;else{if(C.policy.KN){if(N=L=C.Xo.gA(g.Eu(h),1),C.N>=0&&h.info.type!==6){if(C.policy.du&&isNaN(C.CO)){g.QB(new g.tJ("Missing duration while processing previous chunk", +h.info.RV()));C.Xo.isOffline()&&!C.policy.ZT||YyW(C,h,N);jQ(C,"m");break a}var Z=L-C.N,Y=Z-C.L,a=h.info.yz,l=C.Qz?C.Qz.yz:-1,F=C.Yh,G=C.CO,V=C.policy.WA&&Z>C.policy.WA,q=Math.abs(Y)>10,f=Math.abs(C.N-N)<1E-7;if(Math.abs(Y)>1E-4){C.rO+=1;var y=(p=C.X)==null?void 0:uk(p);p={audio:""+ +C.Ab(),sq:a.toFixed(),sliceStart:L,lastSq:l.toFixed(),lastSliceStart:F,lastSliceDuration:G,totalDrift:(Z*1E3).toFixed(),segDrift:(Y*1E3).toFixed(),skipRewrite:""+ +(V||q)};if(y==null?0:y.length)p.adCpn=y[0];C.Xo.handleError("qoe.avsync", +p);C.m6=a}V||q||f||(N=C.N);p=ZAK(C,h,L);P-=p;C.L=Z+p;C.policy.N&&(Y&&!f||p)&&(Z=(e=C.X)==null?void 0:uk(e),C.Xo.jp("discontinuityRewrite",{adCpn:(Z==null?0:Z.length)?Z.join("."):"",itag:h.info.j.info.itag,sq:h.info.yz,originalStartTime:L,rewrittenStartTime:N,startTimeAdjustment:N-L,segDrift:(Y*1E3).toFixed(),originalDuration:P+p,rewrittenDuration:P,durationAdjustment:p}))}}else N=isNaN(C.N)?h.info.startTime:C.N;YyW(C,h,N)&&(C.KO+=P,C.N=N+P,C.policy.A$&&C.rO>=C.policy.A$&&(C.rO=0,C.Xo.xd({resetForRewrites:"count"})))}C.Qz= +h.info;C.CO=n$(h);h.N>=0&&(C.Yh=h.N);if(c&&C.X){c=a5o(C,!0);A4(h.info,c);C.j&&A4(C.j.info,c);b=g.z(b);for(e=b.next();!e.done;e=b.next())e=e.value,p=void 0,C.policy.W&&e.yz!==((p=C.X)==null?void 0:p.oF)||A4(e,c);(h.info.X||C.j&&C.j.info.X)&&h.info.type!==6||(C.N2=c,C.policy.Yh?(b=l5V(C.X),C.Xo.fz(C.W,c,b)):(b=C.Xo,b.cE.isManifestless&&oyK(b,c,null,!!C.W.info.video)),C.policy.OR||FYl(C))}}cP6(C,h);C.timestampOffset&&lmV(h,C.timestampOffset)}; +kc=function(C,b){if(b.info.X){C.kh=b.info;if(C.X){var h=C.X,N=a5o(C,!1);h=l5V(h);C.Xo.fz(C.W,N,h);C.N2||C.policy.OR||FYl(C);C.N2=null}cg(C)}C.J&&vio(C.J,b);if(N=C.BK())if(N=g.Ww(N,b,C.policy.xo)){C.K.pop();C.K.push(N);return}C.K.push(b)}; +l5V=function(C){if(C.oG()){var b=C.data["Stitched-Video-Id"]?C.data["Stitched-Video-Id"].split(",").slice(0,-1):[],h=uk(C),N=[];if(C.data["Stitched-Video-Duration-Us"])for(var p=g.z(C.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),P=p.next();!P.done;P=p.next())N.push((Number(P.value)||0)/1E6);p=[];if(C.data["Stitched-Video-Start-Frame-Index"]){P=g.z(C.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var c=P.next();!c.done;c=P.next())p.push(Number(c.value)||0)}p=[]; +if(C.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(P=g.z(C.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),c=P.next();!c.done;c=P.next())p.push((Number(c.value)||0)/1E6);C=new Ei1(b,h,N,p,g.o2H(C),g.Flc(C))}else C=null;return C}; +cg=function(C){C.j=null;C.nO=-1;C.V=0;C.X=null;C.sX=NaN;C.KO=0;C.N2=null}; +jQ=function(C,b){b={rst4disc:b,cd:C.L.toFixed(3),sq:C.Qz?C.Qz.yz:-1};C.N=NaN;C.L=0;C.m6=-1;C.Qz=null;C.Yh=NaN;C.CO=NaN;C.t4=null;C.Xo.jp("mdstm",b)}; +cP6=function(C,b){if(C.W.info.f9){if(b.info.j.info.KK()){var h=new Em(b.W7());if(t3(h,[408125543,374648427,174,28032,25152,20533,18402])){var N=IL(h,!0);h=N!==16?null:h4(h,N)}else h=null;N="webm"}else b.info.J=dLl(b.W7()),h=W6W(b.info.J),N="cenc";h&&h.length&&(h=new bl(h,N),C.policy.Ym&&g.tm(b.info.j.info)&&(N=mwo(b.W7()))&&(h.K=N),h.KK=b.info.j.info.KK(),b.K&&b.K.cryptoPeriodIndex&&(h.cryptoPeriodIndex=b.K.cryptoPeriodIndex),b.K&&b.K.K&&(h.j=b.K.K),C.Xo.HO(h))}}; +FYl=function(C){var b=C.X,h=aCH(b);h&&(h.startSecs+=C.sX,C.Xo.q7(C.W,h,b.oF,b.oG()))}; +a5o=function(C,b){var h,N=C.X;if(h=aCH(N))h.startSecs+=C.sX;var p=C.sX;C=b?N.jL:C.KO;var P=N.oG()?2:1;return new $0(N.oF,p,C,N.ingestionTime,"sq/"+N.oF,void 0,void 0,b,h,P)}; +YyW=function(C,b,h){if(!amo(b,h))return b=f$(b.info),b.smst="1",C.Xo.handleError("fmt.unparseable",b||{},1),!1;isNaN(C.sX)&&(C.sX=h);return!0}; +ZAK=function(C,b,h){var N=0;if(b.info.j.info.KK()&&!GFl(b))return 0;if(C.q2&&!C.Ab()){var p=0;h&&g.tm(b.info.j.info)?p=h-C.N:b.info.j.info.KK()&&(p=C.L);var P=b.info.yz;h=t4(b,C.policy.IV);var c=C.q2;var e=c.m6;c=c.L;var L=Math.abs(c-p)>.02;if((P===e||P>e&&P>C.m6)&&L){N=Math.max(.95,Math.min(1.05,(h-(c-p))/h));if(g.tm(b.info.j.info))$wH(b.W7(),N);else if(b.info.j.info.KK()&&(P=p-c,!g.tm(b.info.j.info)&&(b.info.j.info.KK(),N=new Em(b.W7()),e=b.G?N:new Em(new DataView(b.info.j.j.buffer)),t4(b,!0)))){var Z= +P*1E3,Y=gd(e);e=N.pos;N.pos=0;if(N.j.getUint8(N.pos)===160||p$(N))if(Be(N,160))if(IL(N,!0),Be(N,155)){if(P=N.pos,L=IL(N,!0),N.pos=P,Z=Z*1E9/Y,Y=wE(N),Z=Y+Math.max(-Y*.7,Math.min(Y,Z)),Z=Math.sign(Z)*Math.floor(Math.abs(Z)),!(Math.ceil(Math.log(Z)/Math.log(2)/8)>L)){N.pos=P+1;for(P=L-1;P>=0;P--)N.j.setUint8(N.pos+P,Z&255),Z>>>=8;N.pos=e}}else N.pos=e;else N.pos=e;else N.pos=e}N=t4(b,C.policy.IV);N=h-N}N&&b.info.j.info.KK()&&C.Xo.jp("webmDurationAdjustment",{durationAdjustment:N,videoDrift:p+N,audioDrift:c})}return N}; +LY_=function(C){return C.info.j.uR()&&C.info.yz===C.info.j.index.Fs()}; +Lf=function(C,b){b=(b=b===void 0?0:b)?Math.round(C.timestampOffset*b)/b:C.timestampOffset;C.W.X&&b&&(b+=C.W.X.j);return b+C.getDuration()}; +GMW=function(C,b){b<0||(C.K.forEach(function(h){lmV(h,b)}),C.timestampOffset=b)}; +fl=function(C,b,h,N,p){WV.call(this,h,p);var P=this;this.policy=C;this.formatId=b;this.NK=N;this.lastError=null;this.PL=function(){P.HE()||(P.NK.Sf.has(P.formatId)?(P.isComplete()||P.j.start(),$h(P.NK,P.formatId)&&P.qw(2),P.NK.nX(P.formatId)&&(WmS(P.NK,P.formatId)?P.TE(4):(P.lastError="net.closed",P.TE(5)))):(P.lastError="player.exception",P.TE(5)))}; +this.j=new g.C2(function(){P.isComplete()||(P.lastError="net.timeout",P.TE(5))},this.policy.Cn); +this.j.start();v0x(this.NK,this.formatId,this.PL);g.eI(this.PL)}; +Zi=function(C,b,h,N){g.O.call(this);var p=this;this.Xo=C;this.policy=b;this.j=h;this.timing=N;this.logger=new g.T8("dash");this.N=[];this.nO=[];this.K=this.rU=null;this.Df=!1;this.rO=this.t4=0;this.W=-1;this.N2=!1;this.sX=-1;this.q2=this.Qz=null;this.KO=NaN;this.dn={i_:function(){return p.X}, +FXh:function(){return p.N}, +Z$4:function(){return p.L}}; +this.X=new C86(C,b,h);this.policy.j&&(this.L=new VQ(this.X,this.Xo.getManifest(),this.policy,function(P){p.policy.e4&&p.jp("buftl",P)})); +this.policy.zi&&(this.V=new Ek(this));this.OX=h.info.OX;this.J=this.policy.N2?!1:h.uQ();this.isManifestless=h.uQ();this.G=this.J;g.D(this,this.Qz)}; +Yc=function(C,b,h){h=h===void 0?!1:h;b&&eQ&&GMW(C.X,b.Ic());if(!h){var N;(N=C.L)==null||rdo(N)}C.rU=b;(b=C.L)!=null&&(b.rU=C.rU)}; +aZ=function(C){var b=C.rU&&C.rU.ZA();if(C.policy.xN){if((C=C.L)==null)C=void 0;else{var h;C=(h=C.N)==null?void 0:h.info}return C||null}return b}; +Syo=function(C){for(var b={},h=0;h4&&C.nO.shift()}; +$EW=function(C,b){if(b.UV()){var h=b.II();h=g.z(h);for(var N=h.next();!N.done;N=h.next())N=N.value,C.policy.N&&b instanceof fl&&C.jp("omblss",{s:N.info.RV()}),oZ(C,b.info.UX,N,b.V9())}}; +oZ=function(C,b,h,N){N=N===void 0?0:N;isNaN(C.KO)||(C.jp("aswm",{sq:b[0].yz,id:b[0].j.info.itag,xtag:b[0].j.info.j,ep:Date.now()-C.KO}),C.KO=NaN);switch(h.info.type){case 1:case 2:zN6(C,h);break;case 4:var p=h.info.j,P=p.Dh(h),c;((c=C.K)==null?0:c.type===4)&&ICK(h.info,C.K)&&(C.K=p.F$(C.K).pop());h=g.z(P);for(p=h.next();!p.done;p=h.next())oZ(C,b,p.value,N);break;case 3:h.info.j.info.video?(p=C.timing,p.q2||(p.q2=(0,g.Ai)(),HF("fvb_r",p.q2,p.j))):(p=C.timing,p.W||(p.W=(0,g.Ai)(),HF("fab_r",p.W,p.j))); +jG1(C.X,b,h,N);C.policy.j&&HAW(C);break;case 6:jG1(C.X,b,h,N),C.K=h.info}}; +zN6=function(C,b){if(b.info.type===1)if(b.info.j.info.video){var h=C.timing;h.Qz||(h.Qz=(0,g.Ai)(),HF("vis_r",h.Qz,h.j))}else h=C.timing,h.L||(h.L=(0,g.Ai)(),HF("ais_r",h.L,h.j));gyx(C.X,b);C=C.Xo;C.videoTrack.j.MK()&&C.audioTrack.j.MK()&&C.policy.j&&!C.cE.yV&&(b=C.audioTrack.getDuration(),h=C.videoTrack.getDuration(),Math.abs(b-h)>1&&C.jp("trBug",{af:""+g.IT(C.audioTrack.j.info,!1),vf:""+g.IT(C.videoTrack.j.info,!1),a:""+b,v:""+h}))}; +Uh=function(C){return bAl(C.X)}; +HAW=function(C){C.N.length?C.K=g.to(g.to(C.N).info.UX):C.X.K.length?C.K=C.X.BK().info:C.K=aZ(C)}; +FA=function(C,b){var h={Pb:[],PT:[]},N;if((C=C.L)==null)C=void 0;else{yd6(C,C.Pb,"og");mSW(C,b);yd6(C,C.Pb,"trim");var p=AdV(C);b=p.Pb;p=p.L2;for(var P=[],c=0;c0){var l=g6(a,L);l>=0&&(Y=(a.end(l)-L+.1)*1E3)}P.push({formatId:g.IT(e.info.j.info,C.cE.yV), +IS:e.info.IS,sequenceNumber:e.info.yz+C.X,sb:Z,B3:e.info.N,eB:Y})}C={Pb:b,PT:P}}return(N=C)!=null?N:h}; +rC=function(C,b,h){h=h===void 0?!1:h;if(C.rU){var N=C.rU.P7(),p=P6(N,b),P=NaN,c=aZ(C);c&&(P=P6(N,c.j.index.getStartTime(c.yz)));if(p===P&&C.K&&C.K.N&&V$H(G1(C),0))return b}C=M$1(C,b,h);return C>=0?C:NaN}; +Jy=function(C,b,h){C.j.MK();var N=M$1(C,b);if(N>=0)return N;var p;(p=C.L)==null||fpl(p,b,h);h=Math;N=h.min;p=C.X;if(p.J)if(p=p.J,p.Kv&&p.Kv.type===3)p=p.Kv.startTime;else if(p.N>0){var P=p.j.index;P=g.ks(P.offsets.subarray(0,P.count),p.N*p.chunkSize);p=p.j.index.getStartTime(P>=0?P:Math.max(0,-P-2))}else p=0;else p=Infinity;b=N.call(h,b,p);if(C.policy.K){var c,e;h=(c=C.Xo.VP())==null?void 0:(e=qV(c,b))==null?void 0:e.clipId;C.K=C.j.gh(b,void 0,h).UX[0]}else C.K=C.policy.N2?null:C.j.gh(b).UX[0];SQ(C)&& +(C.rU&&C.rU.abort(),C.policy.RX&&(c=C.L)!=null&&(c.N=void 0));C.rO=0;return C.K?C.K.startTime:b}; +Jd6=function(C){C.J=!0;C.G=!0;C.W=-1;Jy(C,Infinity)}; +$c=function(C){for(var b=0,h=g.z(C.N),N=h.next();!N.done;N=h.next())b+=w9H(N.value.info);return b+=kMU(C.X)}; +Hg=function(C,b){b=b===void 0?!1:b;var h=C.Xo.getCurrentTime(),N=C.X.BK(),p=(N==null?void 0:N.info.cF)||0;C.policy.Xb&&(N==null?0:N.info.j.uQ())&&!N.info.X&&(p=N.info.c7);if(C.policy.K&&N&&N.info.clipId){var P,c=(((P=C.Xo.VP())==null?void 0:MV(P,N.info.clipId))||0)/1E3;p+=c}if(!C.rU)return C.policy.j&&b&&!isNaN(h)&&N?p-h:0;if((P=aZ(C))&&z1(C,P))return P.cF;c=C.rU.P7(!0);if(b&&N)return P=0,C.policy.j&&(P=c6(c,p+.02)),P+p-h;p=c6(c,h);C.policy.HB&&P&&(b=g6(c,h),c=g6(c,P.c7-.02),b===c&&(h=P.cF-h,C.policy.N&& +h>p+.02&&C.jp("abh",{bh:p,bhtls:h}),p=Math.max(p,h)));return p}; +qyH=function(C){var b=aZ(C);return b?b.cF-C.Xo.getCurrentTime():0}; +mEl=function(C,b){if(C.N.length){if(C.N[0].info.UX[0].startTime<=b)return;yQ(C)}for(var h=C.X,N=h.K.length-1;N>=0;N--)h.K[N].info.startTime>b&&h.K.pop();HAW(C);C.K&&b=0;c--){var e=p.K[c];e.info.yz>=b&&(p.K.pop(),p.N-=t4(e,p.policy.IV),P=e.info)}P&&(p.G=p.K.length>0?p.K[p.K.length-1].info:p.t4,p.K.length!==0||p.G||jQ(p,"r"));p.Xo.jp("mdstm",{rollbk:1,itag:P?P.j.info.itag:"",popped:P?P.yz:-1,sq:b,lastslc:p.G?p.G.yz:-1,lastfraget:p.N.toFixed(3)});if(C.policy.j)return C.K=null,!0;N>h?Jy(C,N):C.K=C.j.Nk(b-1,!1).UX[0]}catch(L){return b=ml(L),b.details.reason="rollbkerr", +C.Xo.handleError(b.errorCode,b.details,b.severity),!1}return!0}; +qi=function(C,b){var h;for(h=0;h0?h||b.yz>=C.sX:h}; +ff=function(C){var b;return SQ(C)||z1(C,(b=C.X.BK())==null?void 0:b.info)}; +G1=function(C){var b=[],h=aZ(C);h&&b.push(h);b=g.hj(b,C.X.Zt());h=g.z(C.N);for(var N=h.next();!N.done;N=h.next()){N=N.value;for(var p=g.z(N.info.UX),P=p.next(),c={};!P.done;c={Ef:void 0},P=p.next())c.Ef=P.value,N.Gg&&(b=g.er(b,function(e){return function(L){return!ICK(L,e.Ef)}}(c))),(ML(c.Ef)||c.Ef.type===4)&&b.push(c.Ef)}C.K&&!v2l(C.K,g.to(b),C.K.j.uR())&&b.push(C.K); +return b}; +V$H=function(C,b){if(!C.length)return!1;for(b+=1;b=b){b=P;break a}}b=p}return b<0?NaN:V$H(C,h?b:0)?C[b].startTime:NaN}; +A7=function(C){return!(!C.K||C.K.j===C.j)}; +f5c=function(C){return A7(C)&&C.j.MK()&&C.K.j.info.OXb&&N.cF1080&&!C.Cw&&(C.rO=36700160,C.Vz=5242880,C.t4=Math.max(4194304,C.t4),C.Cw=!0);b.video.j>2160&&!C.b6&&(C.rO=104857600,C.OX=13107200,C.b6=!0);g.Zc(C.Rf.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?b.isEncrypted()&&g.ES()&&g.dJ("samsung")&&(g.dJ("kant")||g.dJ("muse"))&&(C.OX=g.Zc(C.Rf.experiments,"html5_samsung_kant_limit_max_bitrate")):b.isEncrypted()&&g.ES()&&g.dJ("kant")&&(C.OX=1310720);C.Hm!==0&&b.isEncrypted()&&(C.OX=C.Hm);C.J_!==0&&b.isEncrypted()&& +h&&(C.OX=C.J_);b.OX&&(C.O$=Math.max(C.xs,Math.min(C.t4,5*b.OX)))}; +RZ=function(C){return C.j&&C.RM&&C.playbackStartPolicy}; +QN=function(C){return C.K||C.j&&C.OG}; +Ug=function(C,b,h,N){C.RM&&(C.playbackStartPolicy=b,C.En=h,C.X1=N)}; +ul=function(C,b,h){h=h===void 0?0:h;return g.Zc(C.Rf.experiments,b)||h}; +vyU=function(C){var b=C===void 0?{}:C;C=b.QQ;var h=b.Do;var N=b.ip;var p=b.Fs;b=b.MJ;this.QQ=C;this.Do=h;this.ip=N;this.Fs=p;this.MJ=b}; +Wu1=function(C,b){if(b<0)return!0;var h=C.Fs();return b0)return 2;if(b<0)return 1;h=C.Fs();return b(0,g.Ai)()?0:1}; +Kf=function(C,b,h,N,p,P,c,e,L,Z,Y,a,l,F){F=F===void 0?null:F;g.O.call(this);var G=this;this.Xo=C;this.policy=b;this.videoTrack=h;this.audioTrack=N;this.X=p;this.j=P;this.timing=c;this.G=e;this.schedule=L;this.cE=Z;this.N=Y;this.KO=a;this.vI=l;this.Mi=F;this.N2=!1;this.Zr="";this.LI=null;this.y6=NaN;this.nO=!1;this.K=null;this.Y1=this.V=NaN;this.fT=this.W=0;this.logger=new g.T8("dash");this.dn={UA:function(V,q){return G.UA(V,q)}}; +this.policy.hH>0&&(this.Zr=g.M5(this.policy.hH));this.policy.mu&&(this.L=new XA(this.Xo,this.policy,this.schedule),g.D(this,this.L))}; +nyl=function(C,b,h){var N=b.K?b.K.j.dU:b.j.dU;var p=C.X,P;(P=!C.policy.wP)||(P=lk(N.j)===lk(N.N));P?N=!1:(p=eS(p,lk(N.N)),P=6E4*Math.pow(p.X,1.6),(0,g.Ai)()=p.X?(p.jp("sdai",{haltrq:P+1,est:p.X}),N=!1):N=p.K!==2;if(!N||!l0(b.K?b.K.j.dU:b.j.dU,C.policy,C.X,C.Xo.iP())||C.Xo.isSuspended&&(!l2(C.schedule)||C.Xo.Aa))return!1;if(C.policy.X&&Mm>=5)return g.be(C.Xo.vQ),!1;if(C.cE.isManifestless){if(b.N.length>0&&b.K&&b.K.yz===-1||b.N.length>=C.policy.O8||!C.policy.gy&&b.N.length>0&&!C.policy.L.Do)return!1;if(b.J)return!C.cE.isLive||!isNaN(C.y6)}if(JPU(b))return C.logger.debug("Pending request with server-selectable format found"), +!1;if(!b.K){if(!b.j.MK())return!1;Jy(b,C.Xo.getCurrentTime())}if(Uh(b)&&(b.BK()!==Uh(b)||C.Xo.isSuspended))return!1;p=(N=C.policy.wy)&&!b.N.length&&Hg(b,!0)=C.policy.s$)return!1;N=b.K;if(!N)return!0;N.type===4&&N.j.MK()&&(b.K=g.to(N.j.F$(N)),N=b.K);if(!N.b1()&&!N.j.KB(N))return!1;P=C.cE.y_||C.cE.X;if(C.cE.isManifestless&&P){P=b.j.index.Fs();var c=h.j.index.Fs(); +P=Math.min(P,c);if(b.j.index.rI()>0&&P>0&&N.yz>=P)return b.sX=P,h.sX=P,!1}if(N.j.info.audio&&N.type===4||N.b1())return!1;P=!b.G&&!h.G;if(p=!p)p=N.cF,p=!!(h.K&&!z1(h,h.K)&&h.K.cFt$6(C,b)?(t$6(C,b),!1):(C=b.rU)&&C.isLocked()?!1:!0}; +t$6=function(C,b){var h=C.j;h=h.j?h.j.qK:null;if(C.policy.q2&&h)return h.startSecs+h.YJ+15;b=iu(C.Xo,b);C.policy.Yg>0&&(h=((0,g.Ai)()-C.Xo.Qr)/1E3,b=Math.min(b,C.policy.Yg+C.policy.Fz*h));h=C.Xo.getCurrentTime()+b;return C.policy.i6&&(b=TsW(C.Xo)+C.policy.i6,b=0||b.dU.iM("defrag")==="1"||b.dU.iM("otf")==="1"){b=null;break a}p=$i(0,4096)}p=new y0([new Hw(5,N.j,p,"createProbeRequestInfo"+N.G,N.yz)],b.K);p.XQ=h;p.j=b.j;b=p}b&&Og(C,b)}}; +Og=function(C,b){C.Xo.VB(b);var h=w9H(b),N=C.Xo.uM();h={BW:C.schedule,Ux:h,Yy:SKl(C.G,h),Qm:V0(b.UX[0]),cM:oL(b.dU.j),Kq:C.policy.N,bl:function(c,e){C.Xo.R5(c,e)}}; +if(C.schedule.K.J){var p,P;h.kf=(((p=C.videoTrack.j)==null?void 0:p.info.OX)||0)+(((P=C.audioTrack.j)==null?void 0:P.info.OX)||0)}C.LI&&(h.yz=b.UX[0].yz,h.y6=b.y6,h.LI=C.LI);N={I1:CJl(b,C.Xo.getCurrentTime()),O6:C.policy.ge&&i0(b)&&b.UX[0].j.info.video?Qvl(C.N):void 0,Of:C.policy.q2,poToken:C.Xo.Bm(),V5:C.Xo.Be(),Zr:C.Zr,Y1:isNaN(C.Y1)?null:C.Y1,Mi:C.Mi,vI:C.vI,fT:C.fT,pG:N};return new Ay(C.policy,b,h,C.X,function(c,e){try{a:{var L=c.info.UX[0].j,Z=L.info.video?C.videoTrack:C.audioTrack;if(!(c.state>= +2)||c.isComplete()||c.mX()||!(!C.Xo.pO||C.Xo.isSuspended||Hg(Z)>3)){var Y=WYK(c,C.policy,C.X);Y===1&&(C.nO=!0);BsW(C,c,Y);if(c.isComplete()||c.HE()&&e<3){if(C.policy.N){var a=c.timing.Dp();a.rst=c.state;a.strm=c.xhr.Ta();a.cncl=c.xhr&&c.Qd.X?1:0;C.Xo.jp("rqs",a)}c.e3&&C.Xo.jp("sbwe3",{},!0)}if(!C.HE()&&c.state>=2){kEl(C.timing,c,L);var l=C.Xo;C.Y1&&c.M5&&l&&(C.Y1=NaN,C.Xo.Id(c.M5),C.Xo.xv(),C.Xo.jp("cabrUtcSeek",{mediaTimeSeconds:c.M5}));c.PQ&&C.Y1&&c.PQ&&!c.PQ.action&&(C.Xo.Z$(C.Y1),C.Y1=NaN,C.Xo.jp("cabrUtcSeekFallback", +{targetUtcTimeSeconds:C.Y1}));c.A_&&C.Xo.MS(c.A_);C.policy.OU&&(C.fT=c.fT);if(c.state===3){qi(Z,c);i0(c.info)&&vg(C,Z,L,!0);if(C.K){var F=c.info.Vu();F&&C.K.p5(c.info.UX[0].yz,L.info.id,F)}C.Xo.r9()}else if(c.isComplete()&&c.info.UX[0].type===5){if(c.state!==4)c.Yf()&&C.Xo.handleError(c.LX(),c.NW());else{var G=(c.info.UX[0].j.info.video?C.videoTrack:C.audioTrack).N[0]||null;G&&G instanceof Ay&&G.mX()&&G.jP(!0)}c.dispose()}else{c.Yf()||I5_(C,c);var V;((V=c.Tp)==null?0:V.itagDenylist)&&C.Xo.rS(c.Tp.itagDenylist); +if(c.state===4)Di(C,c),C.j&&YuK(C.j,c.info,C.K);else if(C.policy.Zp&&c.UV()&&!c.isComplete()&&!Di(C,c)&&!c.Yf())break a;c.Yf()&&(xEl(C,c),isNaN(C.Y1)||(C.Xo.Z$(C.Y1),C.Y1=NaN));C.policy.Xs&&!c.isComplete()?dI(C.Xo):C.Xo.r9();var q=Ey_(c,C.policy,C.X);BsW(C,c,q)}}}}}catch(f){e=C.N2?1:0,C.N2=!0,c=qw(e),e=ml(f,e),C.Xo.handleError(e.errorCode,e.details,e.severity),c||C.Xo.j1()}},N)}; +I5_=function(C,b){if(b.hv&&b.state>=2&&b.state!==3){var h=b.xhr.getResponseHeader("X-Response-Itag");if(h){C.logger.debug(function(){return"Applying streamer-selected format "+h}); +var N=Rfl(C.N,h),p=b.info.N;p&&(p-=N.u_(),N.N=!0,b.info.UX[0].j.N=!1,Kmx(b,N.lP(p)),Wg(C.Xo,C.videoTrack,N),ucl(C.videoTrack,N),C.Xo.lk(N.info.video.quality),(p=b.V9())&&N.info.lastModified&&N.info.lastModified!==+p&&qi(C.videoTrack,b))}else b.hv=!1}}; +xEl=function(C,b){var h=b.info.UX[0].j,N=b.LX();if(oL(h.dU.j)){var p=g.zQ(b.WL(),3);C.Xo.jp("dldbrerr",{em:p||"none"})}p=b.info.UX[0].yz;var P=rv(C.j,b.info.UX[0].c7,p);N==="net.badstatus"&&(C.W+=1);if(b.canRetry()&&Eg(C.Xo)){if(!(b.info.dU.K>=C.policy.mF&&C.K&&b.info.isDecorated()&&N==="net.badstatus"&&C.K.mM(P,p))){p=(h.info.video&&h.dU.K>1||b.FH===410||b.FH===500||b.FH===503)&&!(Uk(C.N.G).size>0)&&!oL(h.dU.j);P=b.NW();var c=h.info.video?C.videoTrack:C.audioTrack;p&&(P.stun="1");C.Xo.handleError(N, +P);C.HE()||(p&&(C.logger.debug(function(){return"Stunning format "+h.info.id}),Dg(C.N,h)),qi(c,b),C.Xo.r9())}}else c=1,C.K&&b.info.isDecorated()&&N==="net.badstatus"&&C.K.mM(P,p)&&(c=0),C.cE.isLive&&b.LX()==="net.badstatus"&&C.W<=C.policy.A6*2?(C$l(C.cE),C.cE.y_||C.cE.isPremiere?QQ(C.Xo,0,{Cj:"badStatusWorkaround"}):C.cE.X?QQ(C.Xo,C.cE.Df,{Cj:"badStatusWorkaround", +gA:!0}):nf(C.Xo)):C.Xo.handleError(N,b.NW(),c)}; +Di=function(C,b){if(C.policy.useUmp&&b.HE())return!1;try{var h=b.info.UX[0].j,N=h.info.video?C.videoTrack:C.audioTrack;if(C.cE.isManifestless&&N){C.W=0;N.J&&(b.HE(),b.isComplete()||b.UV(),N.J=!1);b.DE()&&C.Xo.dV.eQ(1,b.DE());var p=b.rI(),P=b.aZ();oG(C.cE,p,P)}if(b.info.Qm()&&!rd(b.info))for(var c=g.z(b.II()),e=c.next();!e.done;e=c.next())zN6(N,e.value);for(C.Xo.getCurrentTime();N.N.length&&N.N[0].state===4;){var L=N.N.shift();$EW(N,L);N.t4=L.q_()}N.N.length&&$EW(N,N.N[0]);var Z=!!Uh(N);Z&&b instanceof +fl&&(h.info.Ab()?hfl(C.timing):b$l(C.timing));return Z}catch(Y){b=b.NW();b.origin="hrhs";a:{C=C.Xo;h=Y;if(h instanceof Error){b.msg||(b.msg=""+h.message);b.name||(b.name=""+h.name);if(h instanceof g.tJ&&h.args)for(N=g.z(Object.entries(h.args)),p=N.next();!p.done;p=N.next())P=g.z(p.value),p=P.next().value,P=P.next().value,b["arg"+p]=""+P;g.QB(h);if(h.level==="WARNING"){C.vE.xd(b);break a}}C.handleError("fmt.unplayable",b,1)}return!1}}; +wRU=function(C){var b=C.videoTrack.j.index;C.LI=new vyU({QQ:C.policy.QQ,Do:C.policy.L.Do,ip:b.DA(),Fs:function(){return b.Fs()}, +MJ:function(){return b.MJ()}})}; +vg=function(C,b,h,N){if(!(h.MK()||h.FE()||h.N||!l0(h.dU,C.policy,C.X)||h.info.PE==="f"||C.policy.j)){if(N){N=C.G;var p=h.info;N=$Sl(N,p.video?N.policy.qg:N.policy.Rn,p.OX)}else N=0;N=h.lP(N);C=Og(C,N);rd(N)&&ll(b,C);h.N=!0}}; +t7=function(C,b,h,N,p,P,c,e){g.O.call(this);var L=this;this.Xo=C;this.Zi=b;this.videoTrack=h;this.audioTrack=N;this.cE=p;this.V=P;this.isAudioOnly=c;this.J=e;this.K=RQ;this.nO=!1;this.logger=new g.T8("sabr");this.L=this.N2=this.KO=!1;this.videoInfos=this.G=this.V.videoInfos;this.N=this.q2=this.V.j;this.j=new Rm(b,P,function(Z,Y){L.Xo.jp(Z,Y)}); +this.Zi.xf||C2x(this);this.isAudioOnly&&bOl(this,this.cE.j["0"])}; +hmS=function(C,b){var h=[];b=g.z(b);for(var N=b.next();!N.done;N=b.next())h.push(g.IT(N.value,C.cE.yV));return h}; +bOl=function(C,b,h){b!==C.X&&(C.X&&(C.nO=!0),C.X=b,C.M4(b,C.videoTrack,h))}; +pI_=function(C,b){C.logger.debug("setConstraint: "+C_(b));QN(C.Zi)&&(C.N2=b.reason==="m"||b.reason==="l"?!0:!1);b.reason==="m"?b.isLocked()&&N_K(C,b.j):g7c(C,b)?T1(C,b.K,b.j):C.videoInfos=C.G;C.K=b}; +g7c=function(C,b){return C.Zi.ey&&b.reason==="b"||C.Zi.QY?!1:C.Zi.vx?!0:b.reason==="l"||b.reason==="b"||b.reason==="o"}; +P2W=function(C,b){return b.isLocked()&&C.j.K||C.K===void 0?!1:b.y8(C.K)}; +jhU=function(C,b){var h,N=(h=C.X)==null?void 0:h.info.video.j;return C.nO?!0:C.X?b!==N?!0:!C.j.K||C.Zi.K5&&C.j.j===C.X.info.itag?!1:!0:!1}; +N_K=function(C,b){var h=C.j.j;if(h){C.videoInfos=C.G;var N=g.B$(C.videoInfos,function(p){return p.id===h}); +N&&N.video.j===b?C.videoInfos=[N]:(N=C.videoInfos.map(function(p){return p.id}),C.Xo.jp("sabrpf",{pfid:""+h, +vfids:""+N.join(".")}),T1(C,b,b),Xe(C.j,""))}else T1(C,b,b)}; +T1=function(C,b,h){C.videoInfos=C.G;C.videoInfos=g.er(C.videoInfos,function(N){return N.video.j>=b&&N.video.j<=h})}; +C2x=function(C){var b=F6K(C.j,C.J);b&&(C.N=[b])}; +c9U=function(C,b,h){if(C.Zi.xf){if(C.J){var N=g.er(C.N,function(p){return p.id===C.J}); +return Bg(N,h).includes(b)}N=g.er(C.N,function(p){var P;return!((P=p.z$)==null||!P.isDefault)}); +if(N.length>0)return Bg(N,h).includes(b)}return Bg(C.N,h).includes(b)}; +Bg=function(C,b){return C.map(function(h){return ov(g.IT(h,b))})}; +kal=function(C){var b;if((b=C.K)==null?0:b.isLocked())return C.videoInfos;var h=Uk(C.j);b=g.er(C.videoInfos,function(N){return N.OX>C.Zi.OX?!1:!h.has(N.id)}); +oic(C.j)&&(b=g.er(b,function(N){return N.video.width<=854&&N.video.height<=480})); +return b}; +ZOx=function(C,b,h,N){var p=C.cE,P=C.vE.getVideoData(),c=g.sF(P),e=C.cP,L=kh({Rf:P.Y(),vE:C.vE,J0:C.J0,Zi:C.Zi,Qr:C.Qr,lq:C.lq,vC:C.vC,iX:C.iX,kC:C.kC,isPrefetch:C.isPrefetch,qq:C.qq,sabrLicenseConstraint:P.sabrLicenseConstraint,E0:C.E0,Ke:C.Ke,Wp:C.Wp,s6:C.s6,ghE:!!e}),Z=e4(P,C.pG,C.nextRequestPolicy,C.lY,C.NN,C.sef,C.O7);N&&h&&(N=Z.GZ?Z.GZ.map(function(V){return V.type}):[],h("ssap",{stmctxt:N.join("_"), +unsntctxt:Z.E5?Z.E5.join("_"):""}));N=C.rC;var Y=C.hQ;if(Y===void 0&&N===void 0){var a;Y=emS(p.yV,(a=C.QE)==null?void 0:a.video);var l;N=emS(p.yV,(l=C.QE)==null?void 0:l.audio)}if(P.Mi)var F=P.Mi;P={y3:L,PT:C.PT,rC:N,hQ:Y,cP:e,videoPlaybackUstreamerConfig:F,d1:Z};C.Vw&&(P.Vw=C.Vw);if(c&&b){c=new Map;var G=g.z(p.Qz);for(e=G.next();!e.done;e=G.next())e=e.value,(L=p.rO[U81(p,e)]||"")?(c.has(L)||c.set(L,[]),c.get(L).push(e)):h&&h("ssap",{nocid4fmt:(e.itag||"")+"_"+(e.lmt||0)+"_"+(e.xtags||"")});p=new Map; +G=g.z(C.Pb);for(e=G.next();!e.done;e=G.next())e=e.value,L=e.startTimeMs||0,Z=void 0,a=(Z=b)==null?void 0:qV(Z,L),Z=a.clipId,a=a.Uc,Z?(p.has(Z)||(l=c.get(Z)||[],p.set(Z,{clipId:Z,Pb:[],VF:l})),a!==0&&(e.startTimeMs=L-a),p.get(Z).Pb.push(e)):h&&(Z=void 0,h("ssap",{nocid4range:"1",fmt:((Z=e.formatId)==null?void 0:Z.itag)||"",st:L.toFixed(3),d:(e.durationMs||0).toFixed(3),timeline:ag(b)}));P.PP=[];p=g.z(p.entries());for(c=p.next();!c.done;c=p.next())c=g.z(c.value),c.next(),c=c.next().value,P.PP.push(c); +if(C.Pb.length&&!P.PP.length){h&&h("ssap",{nobfrange:"1",br:LGx(C.Pb),timeline:ag(b)});return}C.lz&&(P.lz=C.lz);C.hE&&(P.hE=C.hE)}else P.Pb=C.Pb,P.VF=p.Qz,c&&((G=C.Pb)==null?void 0:G.length)>0&&!b&&h&&h("ssap",{bldmistlm:"1"});return P}; +emS=function(C,b){return b?[g.IT(b.info,C)]:[]}; +LGx=function(C){var b="";C=g.z(C);for(var h=C.next();!h.done;h=C.next()){h=h.value;var N=void 0,p=void 0,P=void 0;b+="fmt."+(((N=h.formatId)==null?void 0:N.itag)||"")+"_"+(((p=h.formatId)==null?void 0:p.lmt)||0)+"_"+(((P=h.formatId)==null?void 0:P.xtags)||"")+";st."+(h.startTimeMs||0).toFixed(3)+";d."+(h.durationMs||0).toFixed(3)+";"}return b}; +ld=function(C,b,h){var N=this;this.requestType=C;this.dU=b;this.wU=h;this.K=null;this.dn={J$p:function(){var p;return(p=N.data)==null?void 0:p.isPrefetch}, +NN:function(){var p;return(p=N.data)==null?void 0:p.NN}}}; +IlH=function(C,b,h){b=Yi(C.dU,YaV(C,b,h),b);C.eT()&&b.set("probe","1");return b}; +YaV=function(C,b,h){C.XQ===void 0&&(C.XQ=C.dU.XQ(b,h));return C.XQ}; +as1=function(C){var b,h;return((b=C.j)==null?void 0:(h=b.y3)==null?void 0:h.Iz)||0}; +lsW=function(C){var b,h;return!!((b=C.j)==null?0:(h=b.y3)==null?0:h.E0)}; +o7K=function(C){var b={},h=[],N=[];if(!C.data)return b;for(var p=0;p0;L--)h.push(e)}h.length!==c?b.error=!0:(P=h.slice(-P),h.length=p,uO_(b,h,P));break;case 1:uO_(b,rp,id);break;case 0:s$(b, +b.j&7);h=Xw(b,16);p=Xw(b,16);(h^p)!==65535&&(b.error=!0);b.output.set(b.data.subarray(b.K,b.K+h),b.N);b.K+=h;b.N+=h;break;default:b.error=!0}C.N>C.output.length&&(C.output=new Uint8Array(C.N*2),C.N=0,C.K=0,C.X=!1,C.j=0,C.register=0)}C.output.length!==C.N&&(C.output=C.output.subarray(0,C.N));return C.error?new Uint8Array(0):C.output}; +uO_=function(C,b,h){b=Kw(b);h=Kw(h);for(var N=C.data,p=C.output,P=C.N,c=C.register,e=C.j,L=C.K;;){if(e<15){if(L>N.length){C.error=!0;break}c|=(N[L+1]<<8)+N[L]<>=7;Z<0;)Z=b[(c&1)-Z],c>>=1;else c>>=Z&15;e-=Z&15;Z>>=4;if(Z<256)p[P++]=Z;else if(C.register=c,C.j=e,C.K=L,Z>256){c=ud[Z];c+=Xw(C,Jz[Z]);L=J96(C,h);e=Qm[L];e+=Xw(C,Rg[L]);if(RmH&&ch.length&&(C.error=!0);C.register|=(h[N+1]<<8)+h[N]<=0)return s$(C,h&15),h>>4;for(s$(C,7);h<0;)h=b[Xw(C,1)-h];return h>>4}; +Xw=function(C,b){for(;C.j=C.data.length)return C.error=!0,0;C.register|=C.data[C.K++]<>=b;C.j-=b;return h}; +s$=function(C,b){C.j-=b;C.register>>=b}; +Kw=function(C){for(var b=[],h=g.z(C),N=h.next();!N.done;N=h.next())N=N.value,b[N]||(b[N]=0),b[N]++;var p=b[0]=0;h=[];var P=0;N=0;for(var c=1;c7&&(P+=b[c]);for(p=1;p>L&1;e=P<<4|c;if(c<=7)for(L=1<<7-c;L--;)N[L<>=7;c--;){N[L]||(N[L]=-b,b+=2);var Z=p&1;p>>=1;L=Z-N[L]}N[L]=e}}return N}; +Qhl=function(C){var b,h,N,p,P,c,e;return g.R(function(L){switch(L.j){case 1:if(!("DecompressionStream"in window))return L.return(g.O$(new g.U$(C)));b=new DecompressionStream("gzip");h=b.writable.getWriter();h.write(C);h.close();N=b.readable.getReader();p=new G7([]);case 2:return g.J(L,N.read(),5);case 5:P=L.K;c=P.value;if(e=P.done){L.WE(4);break}p.append(c);L.WE(2);break;case 4:return L.return(p.f5())}})}; +vf=function(C,b){this.j=C;this.d9=b}; +UX1=function(C){return jO(jO(gV(function(){return Px(C.d9,function(b){return C.l7(C.j,b)})}),function(){return C.pL(C.j)}),function(){return C.fL(C.j)})}; +XI1=function(C,b){return UX1(new vf(C,b))}; +Dn=function(C){Yh.call(this,"onesie");this.sU=C;this.j={};this.N=!0;this.X=null;this.queue=new fw(this);this.G={};this.W=bkl(function(b,h){var N=this;return function P(){var c,e,L,Z,Y,a,l,F,G,V,q,f,y,u,K,v,T,t,go,jV;return Yll(P,function(CW){switch(CW.j){case 1:g.H1(CW,2);N.sU.pz();c=function(W){return function(w){throw{name:W,message:w};}}; +e=b.f5();g.z6(CW,4,5);if(!h){CW.WE(7);break}return k6l(CW,jO(KGW(N.sU,e,N.iv),c("DecryptError")).wait(),8);case 8:L=CW.K;case 7:if(!N.sU.enableCompression){CW.WE(9);break}return k6l(CW,jO(XI1((a=L)!=null?a:e,N.sU.Y().Xz),c("DecompressError")).wait(),10);case 10:Z=CW.K;case 9:Y=vN((F=(l=Z)!=null?l:L)!=null?F:e,CG6);case 5:g.qW(CW,0,2);if(V=(G=N.sU.Y())==null?void 0:G.d9)((q=L)==null?void 0:q.buffer)===V.exports.memory.buffer&&V.free(L.byteOffset),((f=Z)==null?void 0:f.buffer)===V.exports.memory.buffer&& +V.free(Z.byteOffset);g.mS(CW,6);break;case 4:throw u=y=g.MW(CW),new Mw("onesie.response.parse",{name:(t=u.name)!=null?t:"unknown",message:(go=u.message)!=null?go:"unknown",wasm:((K=N.sU.Y())==null?0:K.d9)?((v=N.sU.Y())==null?0:(T=v.d9)==null?0:T.E1)?"1js":"1":"0",enc:N.N,gz:N.sU.enableCompression,webcrypto:!!zN()});case 6:return sh1(Y),jV=g.fD(Y.body),CW.return(jV);case 2:g.qW(CW),g.mS(CW,0)}})}()})}; +dp=function(C){var b=C.queue;b.j.length&&b.j[0].isEncrypted&&!b.K&&(b.j.length=0);b=g.z(Object.keys(C.j));for(var h=b.next();!h.done;h=b.next()){h=h.value;var N=C.j[h];if(!N.Z_){var p=C.queue;p.j.push({videoId:N.videoId,formatId:h,isEncrypted:!1});p.K||ym(p)}}}; +v7V=function(C,b){var h=b.getLength(),N=!1;switch(C.X){case 0:C.sU.D("html5_future_onesie_ump_handler_on_player_response")?jO(Px(C.W(b,C.N),function(p){OOW(C.sU,p)}),function(p){C.sU.wi(p)}):C.pz(b,C.N).then(function(p){OOW(C.sU,p)},function(p){C.sU.wi(p)}); +break;case 2:C.xt("ormk");b=b.f5();C.queue.decrypt(b);break;default:N=!0}C.sU.tj&&C.sU.jp("ombup","id.11;pt."+C.X+";len."+h+(N?";ignored.1":""));C.X=null}; +sh1=function(C){if(C.LM!==1)throw new Mw("onesie.response.badproxystatus",{st:C.LM,webcrypto:!!zN(),textencoder:!!g.sl.TextEncoder});if(C.JP!==200)throw new Mw("onesie.response.badstatus",{st:C.JP});}; +DX_=function(C){return new Promise(function(b){setTimeout(b,C)})}; +dXU=function(C,b){var h=C.Y();h=C.OU&&h.D("html5_onesie_preload_use_content_owner");var N=C.t7,p=ds(b.If.experiments,"debug_bandaid_hostname");if(p)b=Md(b,p);else if((h===void 0?0:h)&&(N==null?0:N.url)&&!b.K){var P=lk(new g.Y0(N.url));b=Md(b,P)}else b=(P=b.j.get(0))==null?void 0:P.location.clone();if(b&&C.videoId){P=CO(C.videoId);C=[];if(P)for(P=g.z(P),h=P.next();!h.done;h=P.next())C.push(h.value.toString(16).padStart(2,"0"));b.set("id",C.join(""));return b}}; +WGl=function(C,b,h){h=h===void 0?0:h;var N,p;return g.R(function(P){if(P.j==1)return N=[],N.push(b.load()),h>0&&N.push(DX_(h)),g.J(P,Promise.race(N),2);p=dXU(C,b);return P.return(p)})}; +E7l=function(C,b,h,N){N=N===void 0?!1:N;C.set("cpn",b.clientPlaybackNonce);C.set("opr","1");var p=b.Y();C.set("por","1");zN()||C.set("onem","1");b.startSeconds>0&&C.set("osts",""+b.startSeconds);N||(p.D("html5_onesie_disable_partial_segments")&&C.set("oses","1"),b=p.D("html5_gapless_onesie_no_media_bytes")&&Tt(b)&&b.OU,h&&!b?(b=h.audio,C.set("pvi",h.video.join(",")),p.D("html5_onesie_disable_audio_bytes")||C.set("pai",b.join(",")),D5||C.set("osh","1")):(C.set("oad","0"),C.set("ovd","0"),C.set("oaad", +"0"),C.set("oavd","0")))}; +n7S=function(C,b,h,N,p){p=p===void 0?!1:p;var P="https://youtubei.googleapis.com/youtubei/"+b.wH.innertubeApiVersion+"/player",c=[{name:"Content-Type",value:"application/json"}];N&&c.push({name:"Authorization",value:"Bearer "+N});c.push({name:"User-Agent",value:g.iC()});g.BC("EOM_VISITOR_DATA")?c.push({name:"X-Goog-EOM-Visitor-Id",value:g.BC("EOM_VISITOR_DATA")}):(h=h.visitorData||g.BC("VISITOR_DATA"))&&c.push({name:"X-Goog-Visitor-Id",value:h});(h=g.BC("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&c.push({name:"X-YouTube-Lava-Device-Context", +value:h});(b=ds(b.experiments,"debug_sherlog_username"))&&c.push({name:"X-Youtube-Sherlog-Username",value:b});C=r1(JSON.stringify(C));return{url:P,JO:c,postBody:C,OKO:p,Bg:p}}; +T_l=function(C,b,h,N,p,P){var c=g.PW(C,wkW,C.Bg?void 0:h.d9),e={encryptedClientKey:b.j.encryptedClientKey,Vb:!0,Ff:!0,Tr:tR6(h,!!C.Bg),Dy:h.experiments.Fo("html5_use_jsonformatter_to_parse_player_response")};if(C.Bg)e.F3i=c;else{C=b.encrypt(c);var L;if(((L=h.d9)==null?void 0:L.exports.memory.buffer)===c.buffer&&C.byteOffset!==c.byteOffset){var Z;(Z=h.d9)==null||Z.free(c.byteOffset)}var Y;C=((Y=h.d9)==null?void 0:Y.Ma(C))||C;c=e.Ud=C;(0,g.Ai)();c=t8K(new np_(b.j.N),c,b.iv);e.D_=c;e.iv=b.iv}b=N.getVideoData(); +h=kh({Rf:h,vE:N,J0:b.startSeconds*1E3});p={pR:e,y3:h,onesieUstreamerConfig:p,cK:P,d1:e4(b)};b.reloadPlaybackParams&&(p.reloadPlaybackParams=b.reloadPlaybackParams);return p}; +B_l=function(C,b,h){var N,p,P;return g.R(function(c){if(c.j==1)return N=g.PW(b,wkW),g.J(c,VRH(h,N),2);if(c.j!=3)return p=c.K,g.J(c,MRW(h,p),3);P=c.K;return c.return({Ud:p,encryptedClientKey:h.j.encryptedClientKey,iv:h.iv,D_:P,Vb:!0,Ff:!0,Tr:tR6(C,!!b.Bg),Dy:C.experiments.Fo("html5_use_jsonformatter_to_parse_player_response")})})}; +Iso=function(C,b,h,N,p,P){var c,e,L,Z;return g.R(function(Y){if(Y.j==1)return g.J(Y,B_l(h,C,b),2);c=Y.K;e=N.getVideoData();L=kh({Rf:h,vE:N,J0:e.startSeconds*1E3});Z={pR:c,y3:L,onesieUstreamerConfig:p,cK:P,d1:e4(e)};e.reloadPlaybackParams&&(Z.reloadPlaybackParams=e.reloadPlaybackParams);return Y.return(Z)})}; +tR6=function(C,b){C=ah(C.schedule,!0);b=b||!!zN()&&C>1572864;return"DecompressionStream"in window||!b}; +E$=function(C,b){g.O.call(this);var h=this;this.vE=C;this.playerRequest=b;this.If=this.vE.Y();this.videoData=this.vE.getVideoData();this.logger=new g.T8("onesie");this.tj=this.If.tZ();this.rb=this.If.ZT;this.yk=new Hf(this.rb.j,this.If.Xz,FGc(this.If));this.xhr=null;this.state=1;this.v4=new nI;this.qx=!1;this.playerResponse="";this.NL=new dC(this);this.Fw=new Dn(this);this.oA=this.If.D("html5_onesie_check_timeout");this.jH=new g.C2(this.Co,500,this);this.U6=new g.C2(this.d7,1E4,this);this.mI=new g.C2(function(){if(!h.isComplete()){var N= +Wf(h);h.wi(new Mw("net.timeout",N))}},g.Zc(this.If.experiments,"html5_onesie_request_timeout_ms")); +this.FK=new g.C2(this.D8h,2E3,this);this.hp="";this.EM=this.gQ=!1;this.Ez=this.vE.Be();this.Cm="";this.Dr=this.D("html5_onesie_wait_for_media_availability");this.enableCompression=this.qa=this.bQ=!1;this.IA=[];this.Yq=this.oF=-1;g.D(this.videoData,this);g.D(this,this.jH);g.D(this,this.U6);g.D(this,this.FK);g.D(this,this.yk);C=nA();D5&&C&&!this.If.D("html5_disable_onesie_media_bytes")&&(this.oe=new Map);this.RZ=new Map;this.zU=new Map;this.pV=new Map;this.Bz=new Map}; +Az=function(C,b){var h;return(h=C.oe)==null?void 0:h.get(b)}; +wIx=function(C,b,h){var N;return g.R(function(p){if(p.j==1)return C.xt("oprd_s"),xXl(C)?g.J(p,qaV(C.yk,b,h),3):(N=C.yk.decrypt(b,h),p.WE(2));p.j!=2&&(N=p.K);C.xt("oprd_c");return p.return(N)})}; +KGW=function(C,b,h){C.xt("oprd_s");b=HOo(C.yk).encrypt(b,h);Px(b,function(){C.xt("oprd_c")}); +return b}; +CWl=function(C){return C.D("html5_onesie_host_probing")||C.tj?D5:!1}; +OOW=function(C,b){C.xt("oprr");C.playerResponse=b;C.qa||(C.Dr=!1);nw(C)}; +nw=function(C){if(!C.playerResponse)return!1;if(C.bQ)return!0;var b=C.videoData.D("html5_onesie_audio_only_playback")&&B7(C.videoData);if(C.oe&&C.Dr){if(!C.oe.has(C.hp))return!1;var h=C.oe.get(C.hp),N;if(N=h){N=!1;for(var p=g.z(h.Sf.keys()),P=p.next();!P.done;P=p.next())if(P=h.Sf.get(P.value))for(var c=g.z(P.o6),e=c.next();!e.done;e=c.next())e.value.f6>0&&(P.Ab?N=!0:b=!0);N=!(b&&N)}if(N)return!1}C.xt("ofr");C.v4.resolve(C.playerResponse);if(!C.oA){var L;(L=C.mI)==null||L.start();C.U6.start()}return C.bQ= +!0}; +h2S=function(C){if(C.oe&&!C.D("html5_onesie_media_capabilities")){C.xt("ogsf_s");var b=flH(C.vE.getVideoData(),function(N,p){C.jp(N,p)}),h=bjo(C.vE); +b.video=G2x(h,b.video);C.xt("ogsf_c");if(b.video.length)return b;C.jp("ombspf","l."+h.K+";u."+h.j+";o."+h.N+";r."+h.reason)}}; +xXl=function(C,b){return C.D("html5_onesie_sync_request_encryption")||(b==null?0:b.Bg)||g.d_(C.If)&&C.D("html5_embed_onesie_use_sync_encryption")?!1:!!zN()}; +Wf=function(C){if(!C.RL)return{};var b=C.RL.Dp(),h;b.d=(h=C.RL.Qz)==null?void 0:h.Oq();b.shost=C.bJ;b.ty="o";return b}; +NFV=function(C,b){var h,N;(N=(C=(h=C.oe)==null?void 0:h.get(b))==null)||(b=C.N?!1:C.N=!0,N=!b);return!N}; +tz=function(C,b,h,N,p,P,c,e,L,Z,Y){g.O.call(this);var a=this;this.vE=C;this.Xo=b;this.policy=h;this.audioTrack=N;this.videoTrack=p;this.cE=P;this.BW=c;this.m6=e;this.N=L;this.timing=Z;this.V=Y;this.j=[];this.J={};this.t4=this.CO=!1;this.lY=new Set;this.G=this.rO=this.KO=this.kC=0;this.X=null;this.nO={Pb:[],PT:[]};this.q2={Pb:[],PT:[]};this.W=null;this.Df=[];this.dn={eOO:function(){return a.j}, +oAO:function(){return a.J}, +y_O:function(){a.j.length=0}, +lph:function(){return a.lY}, +ccE:function(){return a.KO}, +oUz:function(l){a.KO=l}, +HBX:function(l){a.G=l}, +X_:function(l){a.W=l}}; +this.videoData=this.vE.getVideoData();this.policy.mu&&(this.Qz=new XA(this.Xo,this.policy,this.BW),g.D(this,this.Qz))}; +PWx=function(C,b){b=b===void 0?!1:b;if(g6V(C,b)){C.policy.J&&C.Xo.jp("sabrcrq",{create:1});var h=new ld(0,C.cE.L,C);C.policy.LK>0&&C.G++;b=p7_(C,h,b);C.j.push(b);var N;(N=C.Qz)==null||DEc(N,C.cE.L)}}; +ktV=function(C,b){var h=Th(C);if(C.policy.QH){var N=C.nO;var p=C.q2}else N=Bf(C,C.audioTrack),p=Bf(C,C.videoTrack);var P=[].concat(g.M(N.Pb),g.M(p.Pb));C.policy.sI&&C.W&&P.push.apply(P,g.M(C.Df));var c=[].concat(g.M(N.PT),g.M(p.PT)),e=C.Xo.uM(),L,Z,Y=C.vE,a=C.cE,l=C.K,F=C.lY,G=C.policy,V=C.Xo.Qr,q=TsW(C.Xo)*1E3,f=(L=C.sX)==null?void 0:L.vC;L=(Z=C.sX)==null?void 0:Z.iX;var y;Z=Number((y=C.N.X)==null?void 0:y.info.itag)||0;var u;y=Number((u=C.N.W)==null?void 0:u.info.itag)||0;b={vE:Y,cE:a,Pb:P,PT:c, +J0:h,nextRequestPolicy:l,lY:F,Zi:G,Qr:V,lq:q,vC:f,iX:L,kC:C.kC,isPrefetch:b||C.Xo.isSuspended,lz:Z,hE:y,pG:e,O7:C.vE.Jq()};h=C.Xo.Bm();P=CO(h);h&&(b.NN=P);if(h=C.vE.td())b.E0=h*1E3;var K;h=C.N;P=h.KO;if((h.Zi.K&&h.Zi.rz||((K=h.Zi)==null?0:K.j&&K.OG))&&!P)for(K=g.z(h.N),c=K.next();!c.done;c=K.next())if(c.value.z$){P=!0;break}K=QN(h.Zi)&&!P?[]:hmS(h,h.N);b.rC=K;K=C.N;QN(K.Zi)&&!K.N2?K=[]:(h=kal(K),h.length===0&&(h=K.G),K=hmS(K,h));b.hQ=K;b.cP=C.policy.sI&&C.W?[C.W]:void 0;C.policy.tE&&(b.Wp=jQ6(C.Xo, +C.audioTrack),b.s6=jQ6(C.Xo,C.videoTrack));if(C.policy.G){N=cqc(C,N.Pb,p.Pb);var v;if(p=(v=C.X)==null?void 0:v.ex(N))b.Vw=p}C.policy.Df&&C.j.length>0&&C.j[0].Vl()&&(b.sef=C.j[0].zz());return b}; +Th=function(C){var b,h=C.policy.W&&((b=C.Xo)==null?void 0:b.Pc());b=C.Xo.getCurrentTime()||0;b=e2c(C,b);var N=C.Xo.Z9()||0;b+=N;N=$8(C.videoData)||g.SM(C.videoData);var p=0;h?(N&&(p=Number.MAX_SAFE_INTEGER),C.videoData.Qz&&(p=Math.ceil(C.videoData.Df*1E3))):p=Math.ceil(b*1E3);return Math.min(Number.MAX_SAFE_INTEGER,p)}; +e2c=function(C,b){if(C.Xo.isSeeking())return b;var h=C.vE.Q_();if(!h)return b;h=h.XX();if(h.length===0||pI(h,b))return b;if(!rI(C.videoTrack,b)&&!rI(C.audioTrack,b))return C.Xo.jp("sundrn",{b:0,lt:b}),b;for(var N=b,p=Infinity,P=0;Pb)){var c=b-h.end(P);c=20)?(C.Xo.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),b):N}; +cqc=function(C,b,h){var N=C.Xo.getCurrentTime()||0;b=LeV(C,b,N);C=LeV(C,h,N);return Math.min(b,C)}; +LeV=function(C,b,h){C=C.Xo.Z9()||0;b=g.z(b);for(var N=b.next();!N.done;N=b.next()){var p=N.value;N=p.startTimeMs?p.startTimeMs/1E3-C:0;p=N+(p.durationMs?p.durationMs/1E3:0);if(N<=h&&h<=p)return p}return h}; +g6V=function(C,b){if(C.policy.LK>0){var h=Math.floor((0,g.Ai)()/1E4);if(h===C.rO){if(C.G>=C.policy.LK){if(C.G===C.policy.LK){var N={reason:"toomanyrequests"};N.limit=C.G;C.Xo.handleError("player.exception",N);C.G+=1}return!1}}else C.rO=h,C.G=0}b=!b&&!l2(C.BW)&&!C.policy.k6;if(C.Xo.isSuspended&&(C.Xo.Aa||b))return!1;if(C.N2&&(0,g.Ai)()0&&(!C.policy.Df||C.j.length!==1||!C.j[0].Vl()))return!1;var p;if((p=C.cE.L)==null||!l0(p,C.policy,C.J,C.Xo.iP()))return!1; +p=C.policy.Sk&&C.policy.K&&C.Xo.VP();if(ff(C.audioTrack)&&ff(C.videoTrack)&&!p)return!1;if(C.policy.K&&C.L&&!C.Xo.VP())return C.jC("ssap",{pauseontlm:1}),!1;if(Ig(C,C.audioTrack)&&Ig(C,C.videoTrack))return C.policy.N&&C.Xo.jp("sabrHeap",{a:""+$c(C.audioTrack),v:""+$c(C.videoTrack)}),!1;if(p=C.policy.G)p=!1,C.V.K===2?p=!0:C.V.K===3&&(Th(C),C.Xo.Z9(),b=cqc(C,FA(C.audioTrack,C.Xo.isSeeking()).Pb,FA(C.videoTrack,C.Xo.isSeeking()).Pb),h=C.V,b>=h.N?(h.jp("sdai",{haltrq:b,est:h.N}),b=!0):b=!1,b&&(p=!0)), +p&&C.policy.J&&C.Xo.jp("sabrcrq",{waitad:1});if(p)return!1;C.policy.QH&&(C.nO=Bf(C,C.audioTrack),C.q2=Bf(C,C.videoTrack));if(!C.K)return C.policy.J&&C.Xo.jp("sabrcrq",{nopolicy:1}),!0;if(C.vE.td())return C.policy.J&&C.Xo.jp("sabrcrq",{utc:1}),!0;if(C.N.L)return C.policy.J&&C.Xo.jp("sabrcrq",{audio:1}),!0;if(!C.K.targetAudioReadaheadMs||!C.K.targetVideoReadaheadMs)return C.policy.J&&C.Xo.jp("sabrcrq",{noreadahead:1}),!0;if(C.policy.W&&C.Xo.Pc())return C.policy.J&&C.Xo.jp("sabrcrq",{seekToHead:1}), +!0;p=Math.min(iu(C.Xo,C.audioTrack)*1E3,C.K.targetAudioReadaheadMs);b=Math.min(iu(C.Xo,C.videoTrack)*1E3,C.K.targetVideoReadaheadMs);var P=Math.min(p,b);h=Hg(C.audioTrack,!0)*1E3;var c=Hg(C.videoTrack,!0)*1E3;if(C.policy.QH){var e=C.vE.getCurrentTime()*1E3;var L=ZjK(C.nO.Pb,e);e=ZjK(C.q2.Pb,e)}else L=h,e=c;var Z=Lb||N>=0&&p.vT>N+1)break;h=Math.max(h,p.startTimeMs+p.durationMs);N=Math.max(N,p.KX)}return Math.max(0,h-b)}; +p7_=function(C,b,h){var N={BW:C.BW,bl:function(L,Z){C.vE.R5(L,Z)}, +Qm:C.policy.df,Kq:C.policy.N};C.BW.K.J&&(N.kf=(C.videoTrack.j.info.OX||0)+(C.audioTrack.j.info.OX||0));C.policy.nI&&(N.ip=C.audioTrack.j.index.DA(),N.Qm=!1);var p=YaV(b,C.policy,C.J)?2:1;p!==C.KO&&(C.KO=p,laS(C));h=ktV(C,h);if((C.policy.K||C.policy.Df)&&C.policy.N&&h.lY){for(var P=p="",c=g.z(h.lY),e=c.next();!e.done;e=c.next())e=e.value,C.videoData.sabrContextUpdates.has(e)?p+="_"+e:P+="_"+e;C.Xo.jp("sabrbldrqs",{ctxts:p,misctxts:P})}b.setData(h,C.Xo.VP(),C.policy,C.J)||!C.policy.K&&!C.policy.Df|| +C.Xo.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);N=new Hp(C.policy,b,C.cE,C.J,C,N,C.Xo.Be(),C.policy.AT?C.Xo.VP():void 0);Vb(C.timing);C.policy.J&&C.Xo.jp("sabrcrq",{rn:N.ML(),probe:b.eT()});return N}; +CJ=function(C,b){if(b.HE()||C.HE())C.policy.uW||(C.policy.W?wp(C.Xo):C.Xo.r9());else{if(C.policy.N&&b.isComplete()&&b instanceof Hp){var h=C.Xo,N=h.jp,p,P,c=Object.assign(b.RL.Dp(),{rst:b.state,strm:b.xhr.Ta(),d:(p=b.RL.Qz)==null?void 0:p.Oq(),cncl:b.xhr&&b.Qd.X?1:0,rqb:b.fV,cwt:b.xn,swt:(P=b.tF)==null?void 0:P.RE});p=Object.assign(o7K(b.info),c);N.call(h,"rqs",p)}if(b.isComplete()&&b.eT()&&b instanceof Hp)C.policy.HW?b.zw()?(b.dispose(),C.j.length===0?C.Xo.r9():(C=C.j[0],C instanceof Hp&&C.mX()&& +C.jP(!1))):b.Yf()&&C.Xo.handleError(b.LX(),b.NW()):(b.dispose(),C.Xo.r9());else{if(b.Pv())b instanceof Hp&&kEl(C.timing,b),laS(C),o6l(C);else if(b.Yf())h=C.vE.td(),b instanceof Hp&&lsW(b.info)&&h&&C.Xo.Z$(h),b instanceof E$?C.j.pop():(h=1,b.canRetry()&&Eg(C.Xo)&&(Fec(C,b),h=0),C.Xo.handleError(b.LX(),b.NW(),h));else{if(C.Xo.isSuspended&&!b.isComplete())return;o6l(C)}b.HE()||b instanceof E$||(b.isComplete()?h=Ey_(b,C.policy,C.J):(h=WYK(b,C.policy,C.J),h===1&&(C.CO=!0)),h!==0&&(N=new ld(1,b.info.dU), +N.XQ=h===2,p7_(C,N)));C.policy.Xs&&!b.isComplete()?dI(C.Xo):C.Xo.r9()}}}; +o6l=function(C){for(;C.j.length&&C.j[0].sA(C.tb());){var b=C.j.shift();GtW(C,b);if(C.policy.G){var h=C;if(!h.policy.Yh&&b.sA(h.tb())){var N=b.ML();if(h.Yh!==N){var p=b.ma();b=p.oF;var P=p.Yq;p=p.isDecorated;!h.X||P<0||(h.Yh=N,N=rv(h.V,P/1E3,b),P=h.Xo.Z9()||0,fC(h.V,b,N-P,p,h.X))}}}}C.j.length&&GtW(C,C.j[0])}; +GtW=function(C,b){var h=new Set(b.hK(C.tb()));h=g.z(h);for(var N=h.next();!N.done;N=h.next()){var p=N.value;if(!(N=!(b instanceof E$))){N=C.N;var P=N.cE.yV,c=Bg(N.videoInfos,P);N=c9U(N,p,P)||c.includes(p)}if(N&&(N=b.Zt(p,C.tb()),P=C.policy.sI&&B9(N[0].j.info),(!(!P&&C.policy.MF&&N.length>0&&(N[0].j.info.Ab()?Hg(C.audioTrack):Hg(C.videoTrack))>3)||b.isComplete())&&b.UV(p,C.tb()))){p=b.II(p,C.tb());if(C.policy.K){c=N[0].j.info;var e=C.Xo.VP();if(e&&c){var L=b.xG();e.api.D("html5_ssap_set_format_info_on_video_data")&& +L===mA(e)&&(c.Ab()?e.playback.getVideoData().X=c:e.playback.getVideoData().K=c);if(e=bT(e.timeline,L))if(e=e[0].getVideoData())c.Ab()?e.X=c:e.K=c}}p=g.z(p);for(c=p.next();!c.done;c=p.next())if(c=c.value,C.policy.N&&b instanceof E$&&C.Xo.jp("omblss",{s:c.info.RV()}),P)e=C,e.videoData.yV()&&e.W&&ov(e.W)===ov(g.IT(c.info.j.info,e.cE.yV))&&e.vE.publish("sabrCaptionsDataLoaded",c,e.Ax.bind(e));else{e=c.info.j.info.Ab();var Z=c.info.j;if(e){L=void 0;var Y=C.N,a=(L=b.UO(C.tb()))==null?void 0:L.token;Y.L= +!1;Z!==Y.W&&(Y.W=Z,Y.M4(Z,Y.audioTrack,a))}else L=void 0,bOl(C.N,Z,(L=b.UO(C.tb()))==null?void 0:L.token);L=e?C.audioTrack:C.videoTrack;b instanceof E$&&(L.J=!1,b instanceof E$&&(e?hfl(C.timing):b$l(C.timing)));try{oZ(L,N,c)}catch(l){c=ml(l),C.Xo.handleError(c.errorCode,c.details,c.severity),L.j1(),C.rg(!1,"pushSlice"),wp(C.Xo)}}}}}; +Fec=function(C,b){C.policy.Df?C.j.splice(C.j.indexOf(b)).forEach(function(h){h.dispose()}):(C.j.pop(),b==null||b.dispose())}; +SFx=function(C,b,h){for(var N=[],p=0;p0)for(var b=g.z(C.videoData.sabrContextUpdates.keys()),h=b.next();!h.done;h=b.next()){h=h.value;var N=void 0;((N=C.videoData.sabrContextUpdates.get(h))==null?0:N.sendByDefault)&&C.lY.add(h)}if(C.policy.Df&&C.j.length)for(b=g.z(C.j),h=b.next();!h.done;h=b.next())(h=h.value.zz())&&h.type&&h.sendByDefault&&C.lY.add(h.type)}; +Hjl=function(C){C.policy.yd&&(C.sX=void 0,C.kC=0)}; +VzS=function(C,b){if(b.Yf()||b.HE()){var h=C.Xo,N=h.jp,p=b.state;C=C.tb();var P,c;if((b=(P=b.oe)==null?void 0:P.get(C))==null)b=void 0;else{P=0;C=b.hK();for(var e=0;e=C.policy.U0,c=!1;if(P){var e=0;!isNaN(b)&&b>C.G&&(e=b-C.G,C.G=b);e/p=C.policy.HT&&!C.N;if(!P&&!h&&Aqx(C,b))return NaN;h&&(C.N=!0);a:{N=c;h=(0,g.Ai)()/1E3-(C.fE.w0()||0)-C.J.j-C.policy.aL;P=C.K.startTime;h=P+h;if(N){if(isNaN(b)){h2(C,NaN,"n",b);P=NaN;break a}N=b-C.policy.Du;N=P.c7&&N<=P.cF){N=!0;break a}N=!1}N=!N}if(N)return C.jp("ostmf",{ct:C.getCurrentTime(),a:b.j.info.Ab()}),!1;(C=C.N2)!=null&&(C.Sf.get(h).zl=!0);return!0}; +QQl=function(C){if(!C.cE.yV)return!0;var b=C.vE.getVideoData();if(b.D("html5_skip_live_preroll_onesie")&&C.vE.zJ()||b.D("html5_skip_live_preroll_onesie_post_live")&&C.vE.zJ()&&(b.y_||b.isPremiere))return C.jp("ombpa",{}),!1;var h,N;if(C.policy.F6&&!!((h=C.KO)==null?0:(N=h.Rs)==null?0:N.mzi)!==C.cE.y_)return C.jp("ombplmm",{}),!1;h=b.Yg||b.liveUtcStartSeconds||b.OG;if(C.cE.y_&&h)return C.jp("ombplst",{}),!1;if(C.cE.V)return C.jp("ombab",{}),!1;h=Date.now();return Fc(C.cE)&&!isNaN(C.nO)&&h-C.nO>C.policy.lE* +1E3?(C.jp("ombttl",{}),!1):C.cE.G5&&C.cE.X||!C.policy.Cl&&C.cE.isPremiere||!(jM(b)===0||C.policy.j&&b.D("html5_enable_onesie_media_for_sabr_proxima_optin"))||b.D("html5_disable_onesie_media_for_mosaic")&&Ov(b)||b.D("html5_disable_onesie_media_for_ssdai")&&b.isDaiEnabled()&&b.enableServerStitchedDai?!1:!0}; +Umc=function(C,b){var h=b.j,N=C.cE.yV;if(QQl(C))if(C.N2&&C.N2.Sf.has(ov(g.IT(h.info,N)))){if(N=ov(g.IT(h.info,N)),R2l(C,b)){var p=new y0(C.N2.Zt(N)),P=function(c){try{if(c.Yf())C.handleError(c.LX(),c.NW()),qi(b,c),i0(c.info)&&vg(C.G,b,h,!0),C.r9();else if(Di(C.G,c)){var e;(e=C.X)==null||YuK(e,c.info,C.L);C.r9()}}catch(L){c=ml(L),C.handleError(c.errorCode,c.details,c.severity),C.j1()}}; +h.N=!0;rd(p)&&(ll(b,new fl(C.policy,N,p,C.N2,P)),Vb(C.timing))}}else C.jp("ombfmt",{})}; +pJ=function(C,b){b=b||C.videoTrack&&C.videoTrack.K&&C.videoTrack.K.startTime||C.getCurrentTime();var h=Wg,N=C.videoTrack,p=C.j;b=p.nextVideo&&p.nextVideo.index.nZ(b)||0;p.q2!==b&&(p.Qz={},p.q2=b,Ok(p,p.j));b=!p.j.isLocked()&&p.V>-1&&(0,g.Ai)()-p.Vb.j&&b.reason==="b";N||p||h?(C.vE.xd({reattachOnConstraint:N?"u":p?"drm":"perf",lo:b.K,up:b.j}),C.policy.K5||(C.K.j.K=!1)):(C.policy.K5&&(C.K.j.K=!1),wp(C))}}else if(!VSK(C.j,b)&&C.videoTrack){C.logger.debug(function(){return"Setting constraint: r="+b.reason+" u="+b.j}); +h=C.j.j;Wex(C,quH(C.j,b));pJ(C);N=b.isLocked()&&b.reason==="m"&&C.j.N2;p=C.policy.b5&&b.reason==="l"&&A7(C.videoTrack);h=h.j>b.j&&b.reason==="b";var P=C.j.m6&&!Ye();N||p||h||P?C.vE.xd({reattachOnConstraint:N?"u":p?"drm":P?"codec":"perf"}):wp(C)}}; +n6K=function(C,b,h){if((!C.pO||OO(C.pO)&&!C.policy.bW)&&!C.v6.isSeeking()&&(C.policy.j||A7(b)&&b.j.MK()&&C.j.KO)){var N=C.getCurrentTime()+zVW(C.V,b,h);C.logger.debug(function(){return"Clearing back to "+N.toFixed(3)}); +mEl(b,N)}}; +Wex=function(C,b){b&&(C.logger.debug(function(){return"Logging new format: "+bJ(b.video.info)}),tzW(C.vE,new ur(b.video,b.reason))); +if(C.j.CO){var h=y4_(C.j,"a");C.vE.La(new ur(h.audio,h.reason))}}; +wp=function(C){g.be(C.G$)}; +dI=function(C){C.policy.Xs&&C.policy.Zp&&Math.min(qyH(C.videoTrack),qyH(C.audioTrack))*1E3>C.policy.uE?g.be(C.sI):C.r9()}; +TFo=function(C,b){var h=(0,g.Ai)()-b,N=Hg(C.audioTrack,!0)*1E3,p=Hg(C.videoTrack,!0)*1E3;C.logger.debug(function(){return"Appends paused for "+h}); +if(C.policy.N&&(C.jp("apdpe",{dur:h.toFixed(),abuf:N.toFixed(),vbuf:p.toFixed()}),RZ(C.policy))){var P=z8(C.V);C.jp("sdps",{ct:b,ah:N.toFixed(),vh:p.toFixed(),mr:HV(C.V,C.OF,P),bw:P.toFixed(),js:C.isSeeking(),re:+C.OF,ps:(C.policy.En||"").toString(),rn:(C.policy.X1||"").toString()})}}; +BFW=function(C){if(C.policy.K&&il(C.videoTrack)&&il(C.audioTrack))return"ssap";if(JPU(C.videoTrack))return C.logger.debug("Pausing appends for server-selectable format"),"ssf";if(C.policy.CO&&J7(C.videoTrack)&&J7(C.audioTrack))return"updateEnd";if(ff(C.audioTrack)||ff(C.videoTrack)&&C.videoTrack.j.info.PE!=="f")return"";if(C.v6.isSeeking()){var b=C.V;var h=C.videoTrack;var N=C.audioTrack;if(b.policy.j){var p=b.policy.BT;RZ(b.policy)&&(p=HV(b,!1,z8(b)));b=p;h=Hg(N,!0)>=b&&Hg(h,!0)>=b}else h.N.length|| +N.N.length?(p=h.j.info.OX+N.j.info.OX,p=10*(1-z8(b)/p),b=Math.max(p,b.policy.BT),h=Hg(N,!0)>=b&&Hg(h,!0)>=b):h=!0;if(!h)return"abr";h=C.videoTrack;if(h.N.length>0&&h.X.K.length===1&&bAl(h.X).info.W360);N=RZ(C.policy)&&C.policy.V7;if(!C.OF||!N&&h)return"";h=C.policy.wH;RZ(C.policy)&&(h=HV(C.V,C.OF,z8(C.V)));h=AP_(C.videoTrack, +C.getCurrentTime(),h)||AP_(C.audioTrack,C.getCurrentTime(),h);return RZ(C.policy)?h?"mbnm":"":(C.videoTrack.N.length>0||C.audioTrack.N.length>0||sg(C.G,C.videoTrack,C.audioTrack)||sg(C.G,C.audioTrack,C.videoTrack))&&h?"nord":""}; +Ia_=function(C){if(C.J){var b=C.J.r9(C.audioTrack,jJ(C.pO.K.P7()));b&&C.vE.seekTo(b,{z0:!0,Cj:"pollSubsegmentReadahead",gA:!0})}}; +g8V=function(C,b,h){if(C.policy.CO&&J7(b))return!1;if(h.ue())return!0;if(!h.C7())return!1;var N=Uh(b);if(!N||N.info.type===6)return!1;var p=C.policy.DF;if(p&&!N.info.X){var P=N.info.c7-C.getCurrentTime();if(N.info.WP)return C.policy.j&&C4l(C,b),C.policy.Lw&&RVS(b.X,P,!1),!1;b61(C,b);var e;C.policy.pK&&h===((e=C.pO)==null?void 0:e.j)&&C.Yh&&(h.zX()===0?(C.Yh=!1,C.policy.pK=!1):C.kh=h.zX());if(!hwl(C,h,N,b))return!1;C.policy.CO&&N.info.b1()?(C.vE.Y().tZ()&&C.jp("eosl",{ls:N.info.RV()}), +N.isLocked=!0):(b.Y3(N),A4c(C.j,N.info),C.logger.debug(function(){return"Appended "+N.info.RV()+", buffered: "+N8(h.P7())})); +p&&N9l(C,N.info.j.vR);return!0}; +C4l=function(C,b){b===C.videoTrack?C.Df=C.Df||(0,g.Ai)():C.sX=C.sX||(0,g.Ai)()}; +b61=function(C,b){b===C.videoTrack?C.Df=0:C.sX=0}; +hwl=function(C,b,h,N){var p=C.policy.zi?(0,g.Ai)():0,P=h.G&&h.info.j.j||void 0,c=h.j;h.G&&(c=pTK(C,h,c)||c);var e=c.f5();c=C.policy.zi?(0,g.Ai)():0;b=P4U(C,b,e,h.info,P);(N=N.V)!=null&&(P=h.info,p=c-p,c=(0,g.Ai)()-c,!N.K||dwW(N.K,P)&&N.K.yz===P.yz||N.flush(),N.X+=p,N.N+=c,p=1,!N.K&&P.K&&(p=2),nC(N,p,b),c=Math.ceil(P.K/1024),p===2&&N.j.add(c),N.j.add(Math.ceil((P.K+P.N)/1024)-c),N.K=P);C.q2=0;if(b===0)return C.rO&&(C.logger.debug("Retry succeed, back to normal append logic."),C.rO=!1,C.Vz=!1),C.zi= +0,!0;if(b===2||b===5)return jD_(C,"checked",b,h.info),!1;if(b===1){if(!C.rO)return C.logger.debug("QuotaExceeded, retrying."),C.rO=!0,!1;if(!C.Vz)return C.Vz=!0,C.vE.seekTo(C.getCurrentTime(),{Cj:"quotaExceeded",gA:!0}),!1;h.info.CK()?(p=C.policy,p.rO=Math.floor(p.rO*.8),p.nO=Math.floor(p.nO*.8)):(p=C.policy,p.Vz=Math.floor(p.Vz*.8),p.nO=Math.floor(p.nO*.8));C.policy.j?Qb(C.K.j,h.info.j,!1):Dg(C.j,h.info.j)}C.vE.xd({reattachOnAppend:b});return!1}; +pTK=function(C,b,h){var N;if(N=C.policy.bX&&C.pO&&!C.pO.L&&!C.vE.N1())b=b.info.j.info,N=b.KK()&&DC(b)&&b.video&&b.video.width<3840&&b.video.width>b.video.height;if(N&&(C.pO.L=!0,re('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return h=wwS(h),C.policy.N&&C.jp("sp4k",{s:!!h}),h}; +jD_=function(C,b,h,N){var p="fmt.unplayable",P=1;h===5||h===3?(p="fmt.unparseable",C.policy.j?!N.j.info.video||Uk(C.K.j).size>0||Qb(C.K.j,N.j,!1):!N.j.info.video||Uk(C.j.G).size>0||Dg(C.j,N.j)):h===2&&(C.zi<15?(C.zi++,p="html5.invalidstate",P=0):p="fmt.unplayable");N=f$(N);var c;N.mrs=(c=C.pO)==null?void 0:W6(c);N.origin=b;N.reason=h;C.handleError(p,N,P)}; +oyK=function(C,b,h,N,p){var P=C.cE;var c=C.policy.j,e=!1,L=-1,Z;for(Z in P.j){var Y=B9(P.j[Z].info)||P.j[Z].info.CK();if(N===Y)if(Y=P.j[Z].index,Y.C2(b.yz)){e=Y;var a=b,l=e.H5(a.yz);l&&l.startTime!==a.startTime?(e.segments=[],e.K7(a),e=!0):e=!1;e?L=b.yz:!b.pending&&c&&(a=Y.getDuration(b.yz),a!==b.duration&&(P.publish("clienttemp","mfldurUpdate",{itag:P.j[Z].info.itag,seg:b.yz,od:a,nd:b.duration},!1),Y.K7(b),e=!0))}else Y.K7(b),e=!0}L>=0&&(c={},P.publish("clienttemp","resetMflIndex",(c[N?"v":"a"]= +L,c),!1));P=e;KuH(C.v6,b,N,P);C.X.fz(b,h,N,p);b.yz===C.cE.G5&&P&&Z5(C.cE)&&b.startTime>Z5(C.cE)&&(C.cE.Df=b.startTime+(isNaN(C.timestampOffset)?0:C.timestampOffset),C.v6.isSeeking()&&C.v6.j +5)return C.q2=0,C.vE.xd({initSegStuck:1,as:N.info.RV()}),!0}else C.q2=0,C.SC=N;C.policy.Az&&(h.abort(),(c=b.V)!=null&&(nC(c,4),c.flush()));p=P4U(C,h,P,L,p);var Z;(Z=b.V)==null||XwV(Z,p,L);if(p!==0)return cEo(C,p,N),!0;N.info.CK()?pwl(C.timing):P0W(C.timing);C.logger.debug(function(){return"Appended init for "+N.info.j.info.id}); +N9l(C,N.info.j.vR);return h.iY()}; +xm_=function(C,b,h){if(b.yF()==null){C=aZ(C);if(!(b=!C||C.j!==h.info.j)){a:if(C=C.J,h=h.info.J,C.length!==h.length)h=!1;else{for(b=0;b1)return 6;L.Qz=new g.C2(function(){var Y=Uh(L);C.HE()||Y==null||!Y.isLocked?C.vE.Y().tZ()&&C.jp("eosl",{delayA:Y==null?void 0:Y.info.RV()}):kg6(L)?(C.vE.Y().tZ()&&C.jp("eosl",{dunlock:Y==null?void 0:Y.info.RV()}),ewW(C, +L===C.audioTrack)):(C.jp("nue",{ls:Y.info.RV()}),Y.info.L+=1,C.pO&&C.CG())},1E4,C); +C.vE.Y().tZ()&&C.jp("eosl",{delayS:N.RV()});L.Qz.start()}if(C.policy.VC&&(N==null?0:N.b1())){var Z;if((Z=L.q2)==null?0:Z.isActive())g.hZ(L.q2),C.jp("sbac",{as:N.RV()});L.q2=new g.C2(function(){C.jp("sbum5s",{as:N.RV()})},5E3,C); +L.q2.start()}C.policy.d2&&(N==null?void 0:N.j)instanceof u0&&N.b1()&&C.jp("poseos",{itag:N.j.info.itag,seg:N.yz,lseg:N.j.index.Fs(),es:N.j.index.N});b.appendBuffer(h,N,p)}catch(Y){if(Y instanceof DOMException){if(Y.code===11)return 2;if(Y.code===12)return 5;if(Y.code===22||Y.message.indexOf("Not enough storage")===0)return b=Object.assign({name:"QuotaExceededError",buffered:N8(b.P7()).replace(/,/g,"_"),vheap:$c(C.videoTrack),aheap:$c(C.audioTrack),message:g.zQ(Y.message,3),track:C.pO?b===C.pO.K?"v": +"a":"u"},ijl()),C.handleError("player.exception",b),1;g.Ri(Y)}return 4}return C.pO.nX()?3:0}; +QQ=function(C,b,h){C.vE.seekTo(b,h)}; +N9l=function(C,b){b&&C.vE.HO(new bl(b.key,b.type))}; +pf=function(C,b){C.vE.h5(b)}; +iu=function(C,b){if(C.rO&&!C.OF)return 3;if(C.isSuspended)return 1;var h;if((h=C.pO)==null?0:h.pO&&h.pO.streaming===!1)return 4;h=(b.j.info.audio?C.policy.Vz:C.policy.rO)/(b.OX*C.policy.lW);if(C.policy.E$>0&&C.pO&&OO(C.pO)&&(b=b.j.info.video?C.pO.K:C.pO.j)&&!b.iY()){b=b.P7();var N=g6(b,C.getCurrentTime());N>=0&&(b=C.getCurrentTime()-b.start(N),h+=Math.max(0,Math.min(b-C.policy.E$,C.policy.JA)))}C.policy.nO>0&&(h=Math.min(h,C.policy.nO));return h}; +jQ6=function(C,b){return(iu(C,b)+C.policy.Ln)*b.OX}; +Z6H=function(C){C.m6&&!C.isSuspended&&l2(C.schedule)&&(LNl(C,C.m6),C.m6="")}; +LNl=function(C,b){FN(b,"cms",function(h){C.policy.N&&C.jp("pathprobe",h)},function(h){C.vE.handleError(h)})}; +YvW=function(C,b){if(C.pO&&C.pO.X&&!C.pO.nX()&&(b.I1=Hg(C.videoTrack),b.K=Hg(C.audioTrack),C.policy.N)){var h=$c(C.videoTrack),N=$c(C.audioTrack),p=N8(C.pO.K.P7(),"_",5),P=N8(C.pO.j.P7(),"_",5);Object.assign(b.j,{lvq:h,laq:N,lvb:p,lab:P})}b.bandwidthEstimate=SK(C.V);var c;(c=C.audioTrack.V)==null||c.flush();var e;(e=C.videoTrack.V)==null||e.flush();C.logger.debug(function(){return VX(b.j)})}; +aSU=function(C,b){C.L=b;C.X&&(C.X.W=b);C.L.NV(C.videoTrack.j.info.KK());C.G.K=C.L;C.policy.G&&(C.N.X=C.L)}; +lSl=function(C,b){if(C.pO&&C.pO.K){if(C.policy.pP){var h=XRS(C.audioTrack);if(h&&h.Ab()){var N=C.vE;N.AA&&(N.AA.j=h,N.CJ(N.AA.videoId).WQ(N.AA))}}C.policy.lT&&(h=XRS(C.videoTrack))&&h.CK()&&(N=C.vE,N.D6&&(N.D6.j=h,N.CJ(N.D6.videoId).Qk(N.D6)));b-=isNaN(C.timestampOffset)?0:C.timestampOffset;C.getCurrentTime()!==b&&C.resume();C.v6.isSeeking()&&C.pO&&!C.pO.nX()&&(h=C.getCurrentTime()<=b&&b=b&&Jq1(C,N.startTime,!1)}); +return h&&h.startTimeC.getCurrentTime())return h.start/1E3;return Infinity}; +Sv1=function(C){var b=aZ(C.videoTrack),h=aZ(C.audioTrack);return b&&!UEl(C.videoTrack)?b.startTime:h&&!UEl(C.audioTrack)?h.startTime:NaN}; +aac=function(C){if(C.vE.getVideoData().isLivePlayback)return!1;var b=C.vE.Q_();if(!b)return!1;b=b.getDuration();return YFV(C,b)}; +YFV=function(C,b){if(!C.pO||!C.pO.j||!C.pO.K)return!1;var h=C.getCurrentTime(),N=C.pO.j.P7();C=C.pO.K.P7();N=N?P6(N,h):h;h=C?P6(C,h):h;h=Math.min(N,h);return isNaN(h)?!1:h>=b-.01}; +cEo=function(C,b,h){C.policy.hU&&Tt(C.vE.getVideoData())?(C.vE.kF()||jD_(C,"sepInit",b,h.info),$F_(C.vE,"sie")):jD_(C,"sepInit",b,h.info)}; +Eg=function(C){return C.vE.iP()0){var p=N.j.shift();H6W(N,p.info)}N.j.length>0&&(p=N.j[0].time-(0,g.Ai)(),N.K.start(Math.max(0,p)))}},0); +g.D(this,this.K);b.subscribe("widevine_set_need_key_info",this.G,this)}; +H6W=function(C,b){a:{var h=b.cryptoPeriodIndex;if(isNaN(h)&&C.N.size>0)h=!0;else{for(var N=g.z(C.N.values()),p=N.next();!p.done;p=N.next())if(p.value.cryptoPeriodIndex===h){h=!0;break a}h=!1}}C.publish("log_qoe",{wvagt:"reqnews",canskip:h});h||C.publish("rotated_need_key_info_ready",b)}; +VMc=function(){var C={};var b=C.url;var h=C.interval;C=C.retries;this.url=b;this.interval=h;this.retries=C}; +MMo=function(C,b){this.statusCode=C;this.message=b;this.K=this.heartbeatParams=this.errorMessage=null;this.j={};this.nextFairplayKeyId=null}; +qvl=function(C,b,h){h=h===void 0?"":h;g.O.call(this);this.message=C;this.requestNumber=b;this.FZ=h;this.onError=this.onSuccess=null;this.j=new g.VD(5E3,2E4,.2)}; +mFo=function(C,b,h){C.onSuccess=b;C.onError=h}; +AEW=function(C,b,h,N){var p={timeout:3E4,onSuccess:function(P){if(!C.HE()){OG("drm_net_r",void 0,C.FZ);var c=P.status==="LICENSE_STATUS_OK"?0:9999,e=null;if(P.license)try{e=H5(P.license)}catch(G){g.Ri(G)}if(c!==0||e){e=new MMo(c,e);c!==0&&P.reason&&(e.errorMessage=P.reason);if(P.authorizedFormats){c={};for(var L=[],Z={},Y=g.z(P.authorizedFormats),a=Y.next();!a.done;a=Y.next())if(a=a.value,a.trackType&&a.keyId){var l=fSx[a.trackType];if(l){l==="HD"&&P.isHd720&&(l="HD720");a.isHdr&&(l+="HDR");c[l]|| +(L.push(l),c[l]=!0);var F=null;try{F=H5(a.keyId)}catch(G){g.Ri(G)}F&&(Z[g.$s(F,4)]=l)}}e.K=L;e.j=Z}P.nextFairplayKeyId&&(e.nextFairplayKeyId=P.nextFairplayKeyId);P.sabrLicenseConstraint&&(e.sabrLicenseConstraint=H5(P.sabrLicenseConstraint));P=e}else P=null;if(P)C.onSuccess(P,C.requestNumber);else C.onError(C,"drm.net","t.p;p.i")}}, +onError:function(P){if(!C.HE())if(P&&P.error)P=P.error,C.onError(C,"drm.net.badstatus","t.r;p.i;c."+P.code+";s."+P.status,P.code);else C.onError(C,"drm.net.badstatus","t.r;p.i;c.n")}, +onTimeout:function(){C.onError(C,"drm.net","rt.req."+C.requestNumber)}}; +N&&(p.FD="Bearer "+N);g.hp(h,"player/get_drm_license",b,p)}; +yE_=function(C,b,h,N){g.cr.call(this);this.videoData=C;this.If=b;this.V=h;this.sessionId=N;this.G={};this.cryptoPeriodIndex=NaN;this.url="";this.requestNumber=0;this.J=this.N2=!1;this.N=null;this.q2=[];this.X=[];this.L=!1;this.j={};this.nO=NaN;this.status="";this.W=NaN;this.K=C.G;this.cryptoPeriodIndex=h.cryptoPeriodIndex;C={};Object.assign(C,this.If.j);C.cpn=this.videoData.clientPlaybackNonce;this.videoData.N2&&(C.vvt=this.videoData.N2,this.videoData.mdxEnvironment&&(C.mdx_environment=this.videoData.mdxEnvironment)); +this.If.q2&&(C.authuser=this.If.q2);this.If.pageId&&(C.pageid=this.If.pageId);isNaN(this.cryptoPeriodIndex)||(C.cpi=this.cryptoPeriodIndex.toString());var p=(p=/_(TV|STB|GAME|OTT|ATV|BDP)_/.exec(g.iC()))?p[1]:"";p==="ATV"&&(C.cdt=p);this.G=C;this.G.session_id=N;this.KO=!0;this.K.flavor==="widevine"&&(this.G.hdr="1");this.K.flavor==="playready"&&(b=Number(ds(b.experiments,"playready_first_play_expiration")),!isNaN(b)&&b>=0&&(this.G.mfpe=""+b),this.KO=!1);b="";g.rs(this.K)?yZ(this.K)?(N=h.K)&&(b="https://www.youtube.com/api/drm/fps?ek="+ +KSx(N)):(b=h.initData.subarray(4),b=new Uint16Array(b.buffer,b.byteOffset,b.byteLength/2),b=String.fromCharCode.apply(null,b).replace("skd://","https://")):b=this.K.K;this.baseUrl=b;this.fairplayKeyId=Eq(this.baseUrl,"ek")||"";if(b=Eq(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(b);this.sX=this.videoData.D("html5_use_drm_retry");this.q2=h.KK?[g.$s(h.initData,4)]:h.N;Z9(this,{sessioninit:h.cryptoPeriodIndex});this.status="in"}; +u5W=function(C,b){Z9(C,{createkeysession:1});C.status="gr";OG("drm_gk_s",void 0,C.videoData.t4);C.url=rES(C);try{C.N=b.createSession(C.V,function(h){Z9(C,{m:h})})}catch(h){b="t.g"; +h instanceof DOMException&&(b+=";c."+h.code);C.publish("licenseerror","drm.unavailable",1,b,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}C.N&&(i6K(C.N,function(h,N){JE6(C,h,N)},function(h,N,p){if(!C.HE()){N=void 0; +var P=1;g.rs(C.K)&&g.fO(C.If)&&C.If.D("html5_enable_safari_fairplay")&&p===1212433232&&(N="ERROR_HDCP",P=C.If.D("html5_safari_fairplay_ignore_hdcp")?0:P);C.error("drm.keyerror",P,h,N)}},function(){C.HE()||(Z9(C,{onkyadd:1}),C.J||(C.publish("sessionready"),C.J=!0))},function(h){C.lx(h)}),g.D(C,C.N))}; +rES=function(C){var b=C.baseUrl;CI1(b)||C.error("drm.net",2,"t.x");if(!Eq(b,"fexp")){var h=["23898307","23914062","23916106","23883098"].filter(function(p){return C.If.experiments.experiments[p]}); +h.length>0&&(C.G.fexp=h.join())}h=g.z(Object.keys(C.G));for(var N=h.next();!N.done;N=h.next())N=N.value,b=fZ6(b,N,C.G[N]);return b}; +JE6=function(C,b,h){if(!C.HE())if(b){Z9(C,{onkmtyp:h});C.status="km";switch(h){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":RwW(C,b);return;default:C.publish("ctmp","message_type",{t:h,l:b.byteLength})}C.N2||(OG("drm_gk_f",void 0,C.videoData.t4),C.N2=!0,C.publish("newsession",C));if(mY(C.K)&&(b=QDS(b),!b))return;b=new qvl(b,++C.requestNumber,C.videoData.t4);mFo(b,function(N){UFK(C,N)},function(N,p,P){if(!C.HE()){var c=0,e; +(e=N.j.K>=3)||(e=C.sX&&(0,g.Ai)()-C.nO>36E4);e&&(c=1,p="drm.net.retryexhausted");Z9(C,{onlcsrqerr:p,info:P});C.error(p,c,P);C.shouldRetry(qw(c),N)&&XT_(C,N)}}); +g.D(C,b);KNW(C,b)}else C.error("drm.unavailable",1,"km.empty")}; +RwW=function(C,b){Z9(C,{sdpvrq:1});C.W=Date.now();if(C.K.flavor!=="widevine")C.error("drm.provision",1,"e.flavor;f."+C.K.flavor+";l."+b.byteLength);else{var h={cpn:C.videoData.clientPlaybackNonce};Object.assign(h,C.If.j);h=g.dt("https://www.googleapis.com/certificateprovisioning/v1/devicecertificates/create?key=AIzaSyB-5OLKTx2iU5mko18DfdwK5611JIjbUhE",h);b={format:"RAW",headers:{"content-type":"application/json"},method:"POST",postBody:JSON.stringify({signedRequest:String.fromCharCode.apply(null, +b)}),responseType:"arraybuffer"};g.ia(h,b,3,500).then(Zp(function(N){N=N.xhr;if(!C.HE()){N=new Uint8Array(N.response);var p=String.fromCharCode.apply(null,N);try{var P=JSON.parse(p)}catch(c){}P&&P.signedResponse?(C.publish("ctmp","drminfo",{provisioning:1}),P=(Date.now()-C.W)/1E3,C.W=NaN,C.publish("ctmp","provs",{et:P.toFixed(3)}),C.N&&C.N.update(N)):(P=P&&P.error&&P.error.message,N="e.parse",P&&(N+=";m."+P),C.error("drm.provision",1,N))}}),Zp(function(N){C.HE()||C.error("drm.provision",1,"e."+N.errorCode+ +";c."+(N.xhr&&N.xhr.status))}))}}; +YO=function(C){var b;if(b=C.KO&&C.N!=null)C=C.N,b=!(!C.j||!C.j.keyStatuses);return b}; +KNW=function(C,b){C.status="km";OG("drm_net_s",void 0,C.videoData.t4);var h=new g.bt(C.If.wH),N={context:g.Yw(h.config_||g.ZY())};N.drmSystem=sDl[C.K.flavor];N.videoId=C.videoData.videoId;N.cpn=C.videoData.clientPlaybackNonce;N.sessionId=C.sessionId;N.licenseRequest=g.$s(b.message);N.drmParams=C.videoData.drmParams;isNaN(C.cryptoPeriodIndex)||(N.isKeyRotated=!0,N.cryptoPeriodIndex=C.cryptoPeriodIndex);var p,P,c=!!((p=C.videoData.K)==null?0:(P=p.video)==null?0:P.isHdr());N.drmVideoFeature=c?"DRM_VIDEO_FEATURE_PREFER_HDR": +"DRM_VIDEO_FEATURE_SDR";if(N.context&&N.context.client){if(p=C.If.j)N.context.client.deviceMake=p.cbrand,N.context.client.deviceModel=p.cmodel,N.context.client.browserName=p.cbr,N.context.client.browserVersion=p.cbrver,N.context.client.osName=p.cos,N.context.client.osVersion=p.cosver;N.context.user=N.context.user||{};N.context.request=N.context.request||{};C.videoData.N2&&(N.context.user.credentialTransferTokens=[{token:C.videoData.N2,scope:"VIDEO"}]);N.context.request.mdxEnvironment=C.videoData.mdxEnvironment|| +N.context.request.mdxEnvironment;C.videoData.sI&&(N.context.user.kidsParent={oauthToken:C.videoData.sI});g.rs(C.K)&&(N.fairplayKeyId=g.$s(sl_(C.fairplayKeyId)));g.BI(C.If,g.X5(C.videoData)).then(function(e){AEW(b,N,h,e);C.status="rs"})}else C.error("drm.net",2,"t.r;ic.0")}; +UFK=function(C,b){if(!C.HE())if(Z9(C,{onlcsrsp:1}),C.status="rr",b.statusCode!==0)C.error("drm.auth",1,"t.f;c."+b.statusCode,b.errorMessage||void 0);else{OG("drm_kr_s",void 0,C.videoData.t4);if(b.heartbeatParams&&b.heartbeatParams.url&&C.videoData.D("outertube_streaming_data_always_use_staging_license_service")){var h=C.K.K.match(/(.*)youtube.com/g);h&&(b.heartbeatParams.url=h[0]+b.heartbeatParams.url)}b.heartbeatParams&&C.publish("newlicense",b.heartbeatParams);b.K&&(C.X=b.K,C.videoData.Tb||C.publish("newlicense", +new VMc),C.videoData.Tb=!0,C.L=i3(C.X,function(N){return N.includes("HDR")})); +b.j&&(C.If.D("html5_enable_vp9_fairplay")&&yZ(C.K)?(h=g.$s(sl_(C.fairplayKeyId),4),C.j[h]={type:b.j[h],status:"unknown"}):C.j=zA(b.j,function(N){return{type:N,status:"unknown"}})); +AP(C.K)&&(b.message=JpV(g.$s(b.message)));C.N&&(Z9(C,{updtks:1}),C.status="ku",C.N.update(b.message).then(function(){OG("drm_kr_f",void 0,C.videoData.t4);YO(C)||(Z9(C,{ksApiUnsup:1}),C.publish("keystatuseschange",C))},function(N){N="msuf.req."+C.requestNumber+";msg."+g.zQ(N.message,3); +C.error("drm.keyerror",1,N)})); +C.J&&(C.nO=(0,g.Ai)());g.rs(C.K)&&C.publish("fairplay_next_need_key_info",C.baseUrl,b.nextFairplayKeyId);C.If.D("html5_enable_vp9_fairplay")&&yZ(C.K)&&C.publish("qualitychange",O6c(C.X));b.sabrLicenseConstraint&&C.publish("sabrlicenseconstraint",b.sabrLicenseConstraint)}}; +XT_=function(C,b){var h=b.j.getValue();h=new g.C2(function(){KNW(C,b)},h); +g.D(C,h);h.start();g.M7(b.j);Z9(C,{rtyrq:1})}; +v81=function(C,b){for(var h=[],N=g.z(Object.keys(C.j)),p=N.next();!p.done;p=N.next())p=p.value,h.push(p+"_"+C.j[p].type+"_"+C.j[p].status);return h.join(b)}; +DFc=function(C){var b={};b[C.status]=YO(C)?v81(C,"."):C.X.join(".");return b}; +dFH=function(C,b){switch(C){case "highres":case "hd2880":C="UHD2";break;case "hd2160":case "hd1440":C="UHD1";break;case "hd1080":case "hd720":C="HD";break;case "large":case "medium":case "small":case "light":case "tiny":C="SD";break;default:return""}b&&(C+="HDR");return C}; +WNV=function(C,b){for(var h in C.j)if(C.j[h].status==="usable"&&C.j[h].type===b)return!0;return!1}; +E86=function(C,b){for(var h in C.j)if(C.j[h].type===b)return C.j[h].status}; +Z9=function(C,b){var h=h===void 0?!1:h;VX(b);(h||C.If.tZ())&&C.publish("ctmp","drmlog",b)}; +n8_=function(C){var b=C[0];C[0]=C[3];C[3]=b;b=C[1];C[1]=C[2];C[2]=b;b=C[4];C[4]=C[5];C[5]=b;b=C[6];C[6]=C[7];C[7]=b}; +O6c=function(C){return g.xI(C,"UHD2")||g.xI(C,"UHD2HDR")?"highres":g.xI(C,"UHD1")||g.xI(C,"UHD1HDR")?"hd2160":g.xI(C,"HD")||g.xI(C,"HDHDR")?"hd1080":g.xI(C,"HD720")||g.xI(C,"HD720HDR")?"hd720":"large"}; +QDS=function(C){for(var b="",h=0;h'.charCodeAt(N);C=C.N.createSession("video/mp4",b,h);return new a_(null,null,null,null,C)}; +wTc=function(C,b){var h=C.W[b.sessionId];!h&&C.X&&(h=C.X,C.X=null,h.sessionId=b.sessionId,C.W[b.sessionId]=h);return h}; +B96=function(C,b){var h=C.subarray(4);h=new Uint16Array(h.buffer,h.byteOffset,h.byteLength/2);h=String.fromCharCode.apply(null,h).match(/ek=([0-9a-f]+)/)[1];for(var N="",p=0;p=0&&C.push(N);C=parseFloat(C.join("."))}else C=NaN;C>19.2999?(C=h.U$,h=h.kN,h>=C&&(h=C*.75),b=(C-h)*.5,h=new eq(b,C,C-b-h,this)):h=null;break a;case "widevine":h=new LJ(b,this,C);break a;default:h=null}if(this.G=h)g.D(this,this.G),this.G.subscribe("rotated_need_key_info_ready",this.ph,this),this.G.subscribe("log_qoe",this.QX,this);JP(this.If.experiments);this.QX({cks:this.j.getInfo()})}; +bXW=function(C){var b=C.X.SI();b?b.then(Zp(function(){NIH(C)}),Zp(function(h){if(!C.HE()){g.Ri(h); +var N="t.a";h instanceof DOMException&&(N+=";n."+h.name+";m."+h.message);C.publish("licenseerror","drm.unavailable",1,N,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}})):(C.QX({mdkrdy:1}),C.V=!0); +C.KO&&(b=C.KO.SI())}; +pgl=function(C,b,h){C.rO=!0;h=new bl(b,h);C.If.D("html5_eme_loader_sync")&&(C.W.get(b)||C.W.set(b,h));gcW(C,h)}; +gcW=function(C,b){if(!C.HE()){C.QX({onInitData:1});if(C.If.D("html5_eme_loader_sync")&&C.videoData.N&&C.videoData.N.j){var h=C.J.get(b.initData);b=C.W.get(b.initData);if(!h||!b)return;b=h;h=b.initData;C.W.remove(h);C.J.remove(h)}C.QX({initd:b.initData.length,ct:b.contentType});if(C.j.flavor==="widevine")if(C.sX&&!C.videoData.isLivePlayback)F8(C);else{if(!(C.If.D("vp9_drm_live")&&C.videoData.isLivePlayback&&b.KK)){C.sX=!0;h=b.cryptoPeriodIndex;var N=b.j;tS_(b);b.KK||(N&&b.j!==N?C.publish("ctmp","cpsmm", +{emsg:N,pssh:b.j}):h&&b.cryptoPeriodIndex!==h&&C.publish("ctmp","cpimm",{emsg:h,pssh:b.cryptoPeriodIndex}));C.publish("widevine_set_need_key_info",b)}}else C.ph(b)}}; +NIH=function(C){if(!C.HE())if(C.If.D("html5_drm_set_server_cert")||yZ(C.j)){var b=C.X.setServerCertificate();b?b.then(Zp(function(h){C.If.tZ()&&C.publish("ctmp","ssc",{success:h})}),Zp(function(h){C.publish("ctmp","ssce",{n:h.name, +m:h.message})})).then(Zp(function(){Pl6(C)})):Pl6(C)}else Pl6(C)}; +Pl6=function(C){C.HE()||(C.V=!0,C.QX({onmdkrdy:1}),F8(C))}; +jZH=function(C){return C.j.flavor==="widevine"&&C.videoData.D("html5_drm_cpi_license_key")}; +F8=function(C){if((C.rO||C.If.D("html5_widevine_use_fake_pssh"))&&C.V&&!C.q2){for(;C.N.length;){var b=C.N[0],h=jZH(C)?TdH(b):g.$s(b.initData);if(yZ(C.j)&&!b.K)C.N.shift();else{if(C.K.get(h))if(C.j.flavor!=="fairplay"||yZ(C.j)){C.N.shift();continue}else C.K.delete(h);tS_(b);break}}C.N.length&&C.createSession(C.N[0])}}; +c7o=function(C){var b;if(b=g.ES()){var h;b=!((h=C.X.K)==null||!h.getMetrics)}b&&(b=C.X.getMetrics())&&(b=g.fD(b),C.publish("ctmp","drm",{metrics:b}))}; +k1l=function(){var C=KO1();return!(!C||C==="visible")}; +LA1=function(C){var b=eyH();b&&document.addEventListener(b,C,!1)}; +Zfl=function(C){var b=eyH();b&&document.removeEventListener(b,C,!1)}; +eyH=function(){if(document.visibilityState)var C="visibilitychange";else{if(!document[lU+"VisibilityState"])return"";C=lU+"visibilitychange"}return C}; +YgH=function(C){g.O.call(this);var b=this;this.vE=C;this.Kx=0;this.W=this.K=this.G=!1;this.X=0;this.Rf=this.vE.Y();this.videoData=this.vE.getVideoData();this.N=g.Zc(this.Rf.experiments,"html5_delayed_retry_count");this.j=new g.C2(function(){b.vE.B6()},g.Zc(this.Rf.experiments,"html5_delayed_retry_delay_ms")); +g.D(this,this.j)}; +G1S=function(C,b,h){var N=C.videoData.K,p=C.videoData.X;Tt(C.vE.getVideoData())&&C.Rf.D("html5_gapless_fallback_on_qoe_restart")&&$F_(C.vE,"pe");if((b==="progressive.net.retryexhausted"||b==="fmt.unplayable"||b==="fmt.decode")&&!C.vE.zQ.G&&N&&N.itag==="22")return C.vE.zQ.G=!0,C.zE("qoe.restart",{reason:"fmt.unplayable.22"}),C.vE.w2(),!0;var P=!1;if(C.videoData.isExternallyHostedPodcast){if(P=C.videoData.MD)h.mimeType=P.type,C.jp("3pp",{url:P.url});h.ns="3pp";C.vE.u3(b,1,"VIDEO_UNAVAILABLE",VX((new Mw(b, +h,1)).details));return!0}var c=C.Kx+3E4<(0,g.Ai)()||C.j.isActive();if(C.Rf.D("html5_empty_src")&&C.videoData.isAd()&&b==="fmt.unplayable"&&/Empty src/.test(""+h.msg))return h.origin="emptysrc",C.zE("auth",h),!0;c||GG(C.vE.u5())||(h.nonfg="paused",c=!0,C.vE.pauseVideo());(b==="fmt.decode"||b==="fmt.unplayable")&&(p==null?0:En(p)||nE(p))&&(i31(C.Rf.G,p.PE),h.acfallexp=p.PE,P=c=!0);!c&&C.N>0&&(C.j.start(),c=!0,h.delayed="1",--C.N);p=C.vE.Xo;!c&&((N==null?0:W9(N))||(N==null?0:DC(N)))&&(i31(C.Rf.G,N.PE), +P=c=!0,h.cfallexp=N.PE);if(C.Rf.D("html5_ssap_ignore_decode_error_for_next_video")&&g.sF(C.videoData)&&b==="fmt.unplayable"&&h.cid&&h.ccid&&GG(C.vE.u5())){if(h.cid!==h.ccid)return h.ignerr="1",C.zE("ssap.transitionfailure",h),!0;C.zE("ssap.transitionfailure",h);if(aiU(C.vE,b))return!0}if(!c)return li1(C,h);if(C.Rf.D("html5_ssap_skip_decoding_clip_with_incompatible_codec")&&g.sF(C.videoData)&&b==="fmt.unplayable"&&h.cid&&h.ccid&&h.cid!==h.ccid&&GG(C.vE.u5())&&(C.zE("ssap.transitionfailure",h),aiU(C.vE, +b)))return!0;c=!1;C.G?C.Kx=(0,g.Ai)():c=C.G=!0;var e=C.videoData;if(e.zi){e=e.zi.oZ();var L=Date.now()/1E3+1800;e=e6048E5&&Hfc(C,"signature");return!1}; +Hfc=function(C,b){try{window.location.reload(),C.zE("qoe.restart",{detail:"pr."+b})}catch(h){}}; +MQl=function(C,b){b=b===void 0?"fmt.noneavailable":b;var h=C.Rf.G;h.W=!1;TM(h);C.zE("qoe.restart",{e:b,detail:"hdr"});C.vE.B6(!0)}; +qgl=function(C,b,h,N,p,P){this.videoData=C;this.j=b;this.reason=h;this.K=N;this.token=p;this.videoId=P}; +mix=function(C,b,h){this.If=C;this.w1=b;this.vE=h;this.L=this.W=this.j=this.X=this.J=this.K=0;this.G=!1;this.V=g.Zc(this.If.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.N=new Map}; +A7c=function(C,b,h){!C.If.D("html5_tv_ignore_capable_constraint")&&g.m9(C.If)&&(h=h.compose(fic(C,b)));return h}; +y7l=function(C){if(C.vE.u5().isInline())return RQ;var b;C.D("html5_exponential_memory_for_sticky")?b=oh(C.If.fK,"sticky-lifetime")<.5?"auto":xl[yp()]:b=xl[yp()];return g.T0("auto",b,!1,"s")}; +ifl=function(C,b){var h,N=r7K(C,(h=b.j)==null?void 0:h.videoInfos);h=C.vE.getPlaybackRate();return h>1&&N?(C=qXS(C.If.G,b.j.videoInfos,h),new td(0,C,!0,"o")):new td(0,0,!1,"o")}; +r7K=function(C,b){return b&&g.m9(C.If)?b.some(function(h){return h.video.fps>32}):!1}; +J7W=function(C,b){var h=C.vE.yg();C.D("html5_use_video_quality_cap_for_ustreamer_constraint")&&h&&h.Bf>0&&Ic(b.videoData.xN)&&(C=h.Bf,b.videoData.xN=new td(0,C,!1,"u"));return b.videoData.xN}; +fic=function(C,b){if(g.m9(C.If)&&L_(C.If.G,Zl.HEIGHT))var h=b.j.videoInfos[0].video.j;else{var N=!!b.j.j;var p;g.qX(C.If)&&(p=window.screen&&window.screen.width?new g.oV(window.screen.width,window.screen.height):null);p||(p=C.If.Rn?C.If.Rn.clone():C.w1.xe());(If||Wp||N)&&p.scale(g.Oa());N=p;B7(b.videoData)||vT(b.videoData);b=b.j.videoInfos;if(b.length){p=g.Zc(C.If.experiments,"html5_override_oversend_fraction")||.85;var P=b[0].video;P.projectionType!=="MESH"&&P.projectionType!=="EQUIRECTANGULAR"&& +P.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||VY||(p=.45);C=g.Zc(C.If.experiments,"html5_viewport_undersend_maximum");for(P=0;P0&&(h=Math.min(h,N));if(N=g.Zc(C.If.experiments,"html5_max_vertical_resolution")){C=4320;for(p=0;p +N&&(C=Math.min(C,P.video.j));if(C<4320){for(p=N=0;p32){p=!0;break a}}p=!1}p&&(h=Math.min(h,N));(N=g.Zc(C.If.experiments,"html5_live_quality_cap"))&&b.videoData.isLivePlayback&&(h=Math.min(h,N));h=Ryl(C,b,h);C=g.Zc(C.If.experiments,"html5_byterate_soft_cap");return new td(0,h===4320?0:h,!1,"d",C)}; +Uil=function(C){var b,h,N,p;return g.R(function(P){switch(P.j){case 1:return C.j.j&&typeof((b=navigator.mediaCapabilities)==null?void 0:b.decodingInfo)==="function"?g.J(P,Promise.resolve(),2):P.return(Promise.resolve());case 2:h=g.z(C.j.videoInfos),N=h.next();case 3:if(N.done){P.WE(0);break}p=N.value;return g.J(P,aKV(p),4);case 4:N=h.next(),P.WE(3)}})}; +KAW=function(C,b){if(!b.videoData.K||C.D("html5_disable_performance_downgrade"))return!1;Date.now()-C.J>6E4&&(C.K=0);C.K++;C.J=Date.now();if(C.K!==4)return!1;XgK(C,b.videoData.K);return!0}; +OfW=function(C,b,h,N){if(!b||!h||!b.videoData.K)return!1;var p=g.Zc(C.If.experiments,"html5_df_downgrade_thresh"),P=C.D("html5_log_media_perf_info");if(!((0,g.Ai)()-C.X<5E3?0:P||p>0))return!1;var c=((0,g.Ai)()-C.X)/1E3;C.X=(0,g.Ai)();h=h.getVideoPlaybackQuality();if(!h)return!1;var e=h.droppedVideoFrames-C.W,L=h.totalVideoFrames-C.L;C.W=h.droppedVideoFrames;C.L=h.totalVideoFrames;var Z=h.displayCompositedVideoFrames===0?0:h.displayCompositedVideoFrames||-1;P&&C.If.tZ()&&C.vE.jp("ddf",{dr:h.droppedVideoFrames, +de:h.totalVideoFrames,comp:Z});if(N)return C.j=0,!1;if((L-e)/c>C.V||!p||g.m9(C.If))return!1;C.j=(L>60?e/L:0)>p?C.j+1:0;if(C.j!==3)return!1;XgK(C,b.videoData.K);C.vE.jp("dfd",Object.assign({dr:h.droppedVideoFrames,de:h.totalVideoFrames},sZc()));return!0}; +XgK=function(C,b){var h=b.PE,N=b.video.fps,p=b.video.j-1,P=C.N;b=""+h+(N>49?"p60":N>32?"p48":"");h=zM(h,N,P);p>0&&(h=Math.min(h,p));if(!Sq.has(b)&&Jd().includes(b)){var c=h;h=iw();+h[b]>0&&(c=Math.min(+h[b],c));h[b]!==c&&(h[b]=c,g.R1("yt-player-performance-cap",h,2592E3))}else if(Sq.has(b)||P==null){a:{c=c===void 0?!0:c;N=Jd().slice();if(c){if(N.includes(b))break a;N.push(b)}else{if(!N.includes(b))break a;N.splice(N.indexOf(b),1)}g.R1("yt-player-performance-cap-active-set",N,2592E3)}$y.set(b,h)}else Sq.add(b), +P==null||P.set(b,h);C.vE.JN()}; +$O=function(C,b){if(!b.j.j)return C.G?new td(0,360,!1,"b"):RQ;for(var h=!1,N=!1,p=g.z(b.j.videoInfos),P=p.next();!P.done;P=p.next())W9(P.value)?h=!0:N=!0;h=h&&N;N=0;p=g.Zc(C.If.experiments,"html5_performance_cap_floor");p=C.If.K?240:p;b=g.z(b.j.videoInfos);for(P=b.next();!P.done;P=b.next()){var c=P.value;if(!h||!W9(c))if(P=zM(c.PE,c.video.fps,C.N),c=c.video.j,Math.max(P,p)>=c){N=c;break}}return new td(0,N,!1,"b")}; +vcS=function(C,b){var h=C.vE.u5();return h.isInline()&&!b.uE?new td(0,480,!1,"v"):h.isBackground()&&Ap()/1E3>60&&!g.m9(C.If)?new td(0,360,!1,"v"):RQ}; +Dic=function(C,b,h){if(C.If.experiments.Fo("html5_disable_client_autonav_cap_for_onesie")&&b.fetchType==="onesie"||g.m9(C.If)&&(yp(-1)>=1080||b.osid))return RQ;var N=g.Zc(C.If.experiments,"html5_autonav_quality_cap"),p=g.Zc(C.If.experiments,"html5_autonav_cap_idle_secs");return N&&b.isAutonav&&Ap()/1E3>p?(h&&(N=Ryl(C,h,N)),new td(0,N,!1,"e")):RQ}; +Ryl=function(C,b,h){if(C.D("html5_optimality_defaults_chooses_next_higher")&&h)for(C=b.j.videoInfos,b=1;b=0||(C.provider.vE.getVisibilityState()===3?C.G=!0:(C.j=g.HO(C.provider),C.delay.start()))}; +EcU=function(C){if(!(C.K<0)){var b=g.HO(C.provider),h=b-C.X;C.X=b;C.playerState.state===8?C.playTimeSecs+=h:C.playerState.isBuffering()&&!g.B(C.playerState,16)&&(C.rebufferTimeSecs+=h)}}; +ncH=function(C){var b;switch((b=C.If.playerCanaryStage)==null?void 0:b.toLowerCase()){case "xsmall":return"HTML5_PLAYER_CANARY_STAGE_XSMALL";case "small":return"HTML5_PLAYER_CANARY_STAGE_SMALL";case "medium":return"HTML5_PLAYER_CANARY_STAGE_MEDIUM";case "large":return"HTML5_PLAYER_CANARY_STAGE_LARGE";default:return"HTML5_PLAYER_CANARY_STAGE_UNSPECIFIED"}}; +tQl=function(C){return window.PressureObserver&&new window.PressureObserver(C)}; +TIK=function(C,b){b=b===void 0?tQl:b;g.O.call(this);var h=this;if(this.G=C)try{this.j=b(function(P){h.K=P.at(-1)}); +var N;this.N=(N=this.j)==null?void 0:N.observe("cpu",{sampleInterval:2E3}).catch(function(P){P instanceof DOMException&&(h.X=P)})}catch(P){P instanceof DOMException&&(this.X=P)}else{this.j=b(function(P){h.K=P.at(-1)}); +var p;this.N=(p=this.j)==null?void 0:p.observe("cpu",{sampleInterval:2E3})}}; +BIH=function(C){var b={},h=window.h5vcc;b.hwConcurrency=navigator.hardwareConcurrency;C.X&&(b.cpe=C.X.message);C.K&&(b.cpt=C.K.time,b.cps=C.K.state);if(h==null?0:h.cVal)b.cb2s=h.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),b.cb5s=h.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),b.cb30s=h.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return b}; +Ii6=function(C){var b;g.R(function(h){switch(h.j){case 1:if(!C.G)return g.J(h,C.N,3);g.z6(h,4);return g.J(h,C.N,6);case 6:g.VH(h,3);break;case 4:g.MW(h);h.WE(3);break;case 3:(b=C.j)==null||b.disconnect(),g.$_(h)}})}; +wgU=function(C,b){b?xiU.test(C):(C=g.PQ(C),Object.keys(C).includes("cpn"))}; +bwl=function(C,b,h,N,p,P,c){var e={format:"RAW"},L={};if(kG(C)&&eX()){if(c){var Z;((Z=CdH.uaChPolyfill)==null?void 0:Z.state.type)!==2?c=null:(c=CdH.uaChPolyfill.state.data.values,c={"Synth-Sec-CH-UA-Arch":c.architecture,"Synth-Sec-CH-UA-Model":c.model,"Synth-Sec-CH-UA-Platform":c.platform,"Synth-Sec-CH-UA-Platform-Version":c.platformVersion,"Synth-Sec-CH-UA-Full-Version":c.uaFullVersion});L=Object.assign(L,c);e.withCredentials=!0}(c=g.BC("EOM_VISITOR_DATA"))?L["X-Goog-EOM-Visitor-Id"]=c:N?L["X-Goog-Visitor-Id"]= +N:g.BC("VISITOR_DATA")&&(L["X-Goog-Visitor-Id"]=g.BC("VISITOR_DATA"));h&&(L["X-Goog-PageId"]=h);(N=b.q2)&&!Ds(b)&&(L["X-Goog-AuthUser"]=N);p&&(L.Authorization="Bearer "+p);b.D("enable_datasync_id_header_in_web_vss_pings")&&b.BT&&b.datasyncId&&(L["X-YouTube-DataSync-Id"]=b.datasyncId);c||L["X-Goog-Visitor-Id"]||p||h||N?e.withCredentials=!0:b.D("html5_send_cpn_with_options")&&xiU.test(C)&&(e.withCredentials=!0)}Object.keys(L).length>0&&(e.headers=L);P&&(e.onFinish=P);return Object.keys(e).length>1? +e:null}; +hKo=function(C,b,h,N,p,P,c,e){eX()&&h.token&&(C=jX(C,{ctt:h.token,cttype:h.uw,mdx_environment:h.mdxEnvironment}));N.D("net_pings_low_priority")&&(b||(b={}),b.priority="low");P||e&&N.D("nwl_skip_retry")?(b==null?b={}:wgU(C,N.D("html5_assert_cpn_with_regex")),c?wf().sendAndWrite(C,b):wf().sendThenWrite(C,b,e)):b?(wgU(C,N.D("html5_assert_cpn_with_regex")),N.D("net_pings_use_fetch")?kqU(C,b):g.fN(C,b)):g.DY(C,p)}; +NpH=function(C){for(var b=[],h=0;h0&&h>0&&!C.K&&C.N<1E7)try{C.X=C.G({sampleInterval:b,maxBufferSize:h});var N;(N=C.X)==null||N.addEventListener("samplebufferfull",function(){return g.R(function(p){if(p.j==1)return g.J(p,C.stop(),2);Pd1(C);g.$_(p)})})}catch(p){C.K=pfl(p.message)}}; +MD=function(C,b){var h,N;return!!((h=window.h5vcc)==null?0:(N=h.settings)==null?0:N.set(C,b))}; +czc=function(){var C,b,h,N=(C=window.h5vcc)==null?void 0:(b=C.settings)==null?void 0:(h=b.getPersistentSettingAsString)==null?void 0:h.call(b,"cpu_usage_tracker_intervals");if(N!=null){var p;C=(p=JSON.parse(N))!=null?p:[];p=C.filter(function(Z){return Z.type==="total"}).map(function(Z){return Z.seconds}); +b=g.z(jgK);for(h=b.next();!h.done;h=b.next())h=h.value,p.indexOf(h)===-1&&C.push({type:"total",seconds:h});var P,c;(P=window.h5vcc)==null||(c=P.settings)==null||c.set("cpu_usage_tracker_intervals_enabled",1);var e,L;(e=window.h5vcc)==null||(L=e.settings)==null||L.set("cpu_usage_tracker_intervals",JSON.stringify(C))}}; +khS=function(){var C=window.H5vccPlatformService,b="";if(C&&C.has("dev.cobalt.coat.clientloginfo")&&(C=C.open("dev.cobalt.coat.clientloginfo",function(){}))){var h=C.send(new ArrayBuffer(0)); +h&&(b=String.fromCharCode.apply(String,g.M(new Uint8Array(h))));C.close()}return b}; +g.fJ=function(C,b){g.O.call(this);var h=this;this.provider=C;this.logger=new g.T8("qoe");this.j={};this.sequenceNumber=1;this.W=NaN;this.TM="N";this.V=this.uZ=this.iZ=this.ob=this.G=0;this.AZ=this.Df=this.J=this.t4="";this.Xs=this.rO=NaN;this.IV=0;this.yd=-1;this.HW=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.Vz=this.isEmbargoed=this.sX=this.isOffline=this.isBuffering=!1;this.aL=[];this.N2=null;this.zi=this.N=this.kh=this.L=!1;this.K=-1;this.m6=!1;this.Yr=new g.C2(this.RDz,750,this);this.KO= +this.adCpn=this.nO=this.contentCpn="";this.adFormat=void 0;this.lF=0;this.OU=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.w9=new Set(["gd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.sI=!1;this.Yg=NaN;this.Qz=0;this.G$=!1;this.q2=0;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.SC=!1;this.dn={Gq:function(p){h.Gq(p)}, +Cri:function(){return h.X}, +fI:function(){return h.contentCpn}, +WXo:function(){return h.nO}, +reportStats:function(){h.reportStats()}, +nA$:function(){return h.j.cat}, +iM:function(p){return h.j[p]}, +n3h:function(){return h.q2}}; +var N=g.Zc(this.provider.If.experiments,"html5_qoe_proto_mock_length");N&&!qD.length&&(qD=NpH(N));g.D(this,this.Yr);try{navigator.getBattery().then(function(p){h.N2=p})}catch(p){}g.mQ(this,0,"vps",["N"]); +C.If.tZ()&&(this.Qz=(0,g.Ai)(),this.Yg=g.Gu(function(){var p=(0,g.Ai)(),P=p-h.Qz;P>500&&h.jp("vmlock",{diff:P.toFixed()});h.Qz=p},250)); +C.vE.VP()&&b&&(this.q2=b-Math.round(g.HO(C)*1E3));this.provider.videoData.sB&&(this.remoteControlMode=eKU[this.provider.videoData.sB]||0);this.provider.videoData.OB&&(b=Uy6(this.provider.videoData.OB),b==null?0:b.length)&&(this.remoteConnectedDevices=b);if(C.If.tZ()||C.D("html5_log_cpu_info"))this.Yh=new TIK(C.D("html5_catch_cpu_info_errors")),g.D(this,this.Yh);b=g.Zc(C.If.experiments,"html5_js_self_profiler_sample_interval_ms");C=g.Zc(C.If.experiments,"html5_js_self_profiler_max_samples");b>0&&C> +0&&(this.CO=new Vn(b,C),g.D(this,this.CO))}; +g.mQ=function(C,b,h,N){var p=C.j[h];p||(p=[],C.j[h]=p);p.push(b.toFixed(3)+":"+N.join(":"))}; +LvU=function(C,b){var h=C.adCpn||C.provider.videoData.clientPlaybackNonce,N=C.provider.getCurrentTime(h);g.mQ(C,b,"cmt",[N.toFixed(3)]);N=C.provider.l3(h);if(C.X&&N*1E3>C.X.VK+100&&C.X){var p=C.X;h=p.isAd;N=N*1E3-p.VK;C.I6=b*1E3-p.Qe2-N-p.wLp;p=(0,g.Ai)()-N;b=C.I6;N=C.provider.videoData;var P=N.isAd();if(h||P){P=(h?"ad":"video")+"_to_"+(P?"ad":"video");var c={};N.W&&(c.cttAuthInfo={token:N.W,videoId:N.videoId});c.startTime=p-b;Dd(P,c);g.vs({targetVideoId:N.videoId,targetCpn:N.clientPlaybackNonce}, +P);OG("pbs",p,P)}else p=C.provider.vE.FX(),p.W!==N.clientPlaybackNonce?(p.G=N.clientPlaybackNonce,p.K=b):N.Yw()||g.QB(new g.tJ("CSI timing logged before gllat",{cpn:N.clientPlaybackNonce}));C.jp("gllat",{l:C.I6.toFixed(),prev_ad:+h});delete C.X}}; +A2=function(C,b){b=b===void 0?NaN:b;b=b>=0?b:g.HO(C.provider);var h=C.provider.vE.ED(),N=h.U8-(C.rO||0);N>0&&g.mQ(C,b,"bwm",[N,(h.IJ-(C.Xs||0)).toFixed(3)]);isNaN(C.rO)&&h.U8&&C.isOffline&&C.Gq(!1);C.rO=h.U8;C.Xs=h.IJ;isNaN(h.bandwidthEstimate)||g.mQ(C,b,"bwe",[h.bandwidthEstimate.toFixed(0)]);C.provider.If.tZ()&&Object.keys(h.j).length!==0&&C.jp("bwinfo",h.j);if(C.provider.If.tZ()||C.provider.If.D("html5_log_meminfo"))N=ijl(),Object.values(N).some(function(P){return P!==void 0})&&C.jp("meminfo", +N); +if(C.provider.If.tZ()||C.provider.If.D("html5_log_cpu_info")){var p;(N=(p=C.Yh)==null?void 0:BIH(p))&&Object.values(N).some(function(P){return P!=null})&&C.jp("cpuinfo",N)}C.CO&&C.jp("jsprof",C.CO.flush()); +C.N2&&g.mQ(C,b,"bat",[C.N2.level,C.N2.charging?"1":"0"]);p=C.provider.vE.getVisibilityState();C.yd!==p&&(g.mQ(C,b,"vis",[p]),C.yd=p);LvU(C,b);(p=Zw6(C.provider))&&p!==C.IV&&(g.mQ(C,b,"conn",[p]),C.IV=p);Y$l(C,b,h)}; +Y$l=function(C,b,h){if(!isNaN(h.I1)){var N=h.I1;h.K96E3&&(new g.C2(C.reportStats,0,C)).start()}; +oLl=function(C){C.provider.videoData.OU&&yn(C,"prefetch");C.provider.videoData.Xs&&C.jp("reload",{r:C.provider.videoData.reloadReason,ct:C.provider.videoData.Xs});C.provider.videoData.kh&&yn(C,"monitor");C.provider.videoData.isLivePlayback&&yn(C,"live");D5&&yn(C,"streaming");C.provider.videoData.sB&&C.jp("ctrl",{mode:C.provider.videoData.sB},!0);if(C.provider.videoData.OB){var b=C.provider.videoData.OB.replace(/,/g,"_");C.jp("ytp",{type:b},!0)}C.provider.videoData.Vq&&(b=C.provider.videoData.Vq.replace(/,/g, +"."),C.jp("ytrexp",{ids:b},!0));var h=C.provider.videoData;b=C.provider.If.D("enable_white_noise")||C.provider.If.D("enable_webgl_noop");h=g.cT(h)||g.zg(h)||g.HT(h)||g.V4(h);(b||h)&&(b=(0,g.r4)())&&(C.j.gpu=[b]);vT(C.provider.videoData)&&g.mQ(C,g.HO(C.provider),"dt",["1"]);C.provider.If.tZ()&&(b=(0,g.Ai)()-C.provider.If.Fy,C.jp("playerage",{secs:Math.pow(1.6,Math.round(Math.log(b/1E3)/Math.log(1.6))).toFixed()}));C.N=!0;C.W=g.Gu(function(){C.reportStats()},1E4)}; +GhW=function(C,b,h){var N=g.HO(C.provider);Fvc(C,N,b,0,h);A2(C,N);lnW(C)}; +Fvc=function(C,b,h,N,p){var P=C.provider.If.j.cbrver;C.provider.If.j.cbr==="Chrome"&&/^96[.]/.test(P)&&h==="net.badstatus"&&/rc\.500/.test(p)&&S$K(C,3);C.provider.If.D("html5_use_ump")&&/b248180278/.test(p)&&S$K(C,4);P=C.provider.getCurrentTime(C.adCpn||C.provider.videoData.clientPlaybackNonce);N=N===1?"fatal":"";h=[h,N,P.toFixed(3)];N&&(p+=";a6s."+ec());p&&h.push($d_(p));g.mQ(C,b,"error",h);C.N=!0}; +zK6=function(C){C.K>=0||(C.provider.If.pK||C.provider.vE.getVisibilityState()!==3?C.K=g.HO(C.provider):C.m6=!0)}; +Hw6=function(C,b,h,N){if(h!==C.TM){b=10&&C.playTimeSecs<=180&&(C.j.qoealert=["1"],C.Vz=!0)),h!=="B"||C.TM!=="PL"&&C.TM!=="PB"||(C.isBuffering=!0),C.G=b);C.TM==="PL"&&(h==="B"||h==="S")||C.provider.If.tZ()?A2(C,b):(C.sI||h!=="PL"||(C.sI=!0,Y$l(C,b,C.provider.vE.ED())),LvU(C,b));h==="PL"&&g.be(C.Yr);var p=[h];h==="S"&&N&&p.push("ss."+N);g.mQ(C,b,"vps",p);C.TM=h; +C.ob=b;C.G=b;C.N=!0}}; +yn=function(C,b){var h=C.j.cat||[];h.push(b);C.j.cat=h}; +iT=function(C,b,h,N,p,P){var c=g.HO(C.provider);h!==1&&h!==3&&h!==5||g.mQ(C,c,"vps",[C.TM]);var e=C.j.xvt||[];e.push("t."+c.toFixed(3)+";m."+P.toFixed(3)+";g."+b+";tt."+h+";np.0;c."+N+";d."+p);C.j.xvt=e}; +S$K=function(C,b){if(!C.zi){var h=C.j.fcnz;h||(h=[],C.j.fcnz=h);h.push(String(b));C.zi=!0}}; +$d_=function(C){/[^a-zA-Z0-9;.!_-]/.test(C)&&(C=C.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return C}; +Vpl=function(C){this.provider=C;this.J=!1;this.j=0;this.X=-1;this.yr=NaN;this.N=0;this.segments=[];this.W=this.G=0;this.previouslyEnded=!1;this.V=this.provider.vE.getVolume();this.L=this.provider.vE.isMuted()?1:0;this.K=J2(this.provider)}; +uT=function(C){C.K.startTime=C.N;C.K.endTime=C.j;var b=!1;C.segments.length&&g.to(C.segments).isEmpty()?(C.segments[C.segments.length-1].previouslyEnded&&(C.K.previouslyEnded=!0),C.segments[C.segments.length-1]=C.K,b=!0):C.segments.length&&C.K.isEmpty()||(C.segments.push(C.K),b=!0);b?C.K.endTime===0&&(C.previouslyEnded=!1):C.K.previouslyEnded&&(C.previouslyEnded=!0);C.G+=C.j-C.N;C.K=J2(C.provider);C.K.previouslyEnded=C.previouslyEnded;C.previouslyEnded=!1;C.N=C.j}; +q$_=function(C){Mpl(C);C.W=g.Gu(function(){C.update()},100); +C.yr=g.HO(C.provider);C.K=J2(C.provider)}; +Mpl=function(C){g.$G(C.W);C.W=NaN}; +mdl=function(C,b,h){h-=C.yr;return b===C.j&&h>.5}; +fnH=function(C,b,h,N){this.If=b;this.AZ=h;this.segments=[];this.experimentIds=[];this.CO=this.ob=this.isFinal=this.delayThresholdMet=this.sI=this.yd=this.autoplay=this.autonav=!1;this.IV="yt";this.W=[];this.J=this.V=null;this.sendVisitorIdHeader=this.m6=!1;this.L=this.pageId="";this.G=h==="watchtime";this.N=h==="playback";this.nO=h==="atr";this.fK=h==="engage";this.sendVisitorIdHeader=!1;this.uri=this.nO?"/api/stats/"+h:"//"+b.xo+"/api/stats/"+h;N&&(this.ob=N.fs,N.rtn&&(this.J=N.rtn),this.G?(this.playerState= +N.state,N.rti>0&&(this.V=N.rti)):(this.pK=N.mos,this.k6=N.volume,N.at&&(this.adType=N.at)),N.autonav&&(this.autonav=N.autonav),N.inview!=null&&(this.HW=N.inview),N.size&&(this.Xs=N.size),N.playerwidth&&(this.playerWidth=N.playerwidth),N.playerheight&&(this.playerHeight=N.playerheight));this.w9=g.J8(b.j);this.L=ds(b.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.L==="all"||this.L==="once")this.G$=g.J8(b.IV);this.Xy=b.zi;this.experimentIds=zal(b.experiments);this.t4=b.ob;this.IV=b.KO;this.region= +b.region;this.userAge=b.userAge;this.kh=b.b5;this.aL=Ap();this.sendVisitorIdHeader=b.sendVisitorIdHeader;this.q2=b.D("vss_pings_using_networkless")||b.D("kevlar_woffle");this.ge=b.D("vss_final_ping_send_and_write");this.sX=b.D("vss_use_send_and_write");this.pageId=b.pageId;this.Fy=b.D("vss_playback_use_send_and_write");b.livingRoomAppMode&&(this.livingRoomAppMode=b.livingRoomAppMode);this.OG=b.X&&b.D("embeds_append_synth_ch_headers");g.$7(b)&&(this.Df=b.sX);g.Lp(g.yY(b))&&this.W.push(1);this.accessToken= +g.X5(C);C.iW[this.AZ]?this.X=C.iW[this.AZ]:C.iW.playback&&(this.X=C.iW.playback);this.adFormat=C.adFormat;this.adQueryId=C.adQueryId;this.autoplay=Uv(C);this.N&&(this.yd=(C.D("html5_enable_log_server_autoplay")||C.D("enable_cleanup_masthead_autoplay_hack_fix"))&&C.qG&&f6(C)==="adunit"?!0:!1);this.autonav=C.isAutonav||this.autonav;this.contentVideoId=u4(C);this.clientPlaybackNonce=C.clientPlaybackNonce;this.sI=C.jS;C.W&&(this.KO=C.W,this.Vz=C.KS);C.mdxEnvironment&&(this.mdxEnvironment=C.mdxEnvironment); +this.j=C.CO;this.SC=C.SC;C.K&&(this.OU=C.K.itag,C.X&&C.X.itag!==this.OU&&(this.zi=C.X.itag));C.j&&N9(C.j)&&(this.offlineDownloadUserChoice="1");this.eventLabel=f6(C);this.CO=C.Xy?!1:C.fK;this.lF=C.XC;if(b=aD(C))this.LK=b;this.mw=C.oJ;this.partnerId=C.partnerId;this.eventId=C.eventId;this.playlistId=C.Cy||C.playlistId;this.bX=C.bX;this.sB=C.sB;this.OB=C.OB;this.ix=C.ix;this.subscribed=C.subscribed;this.videoId=C.videoId;this.videoMetadata=C.videoMetadata;this.visitorData=C.visitorData;this.osid=C.osid; +this.Y5=C.Y5;this.referrer=C.referrer;this.Hm=C.Em||C.Hm;this.Yh=C.xm;this.U0=C.U0;this.userGenderAge=C.userGenderAge;this.cA=C.cA;this.embedsRct=C.embedsRct;this.embedsRctn=C.embedsRctn;g.$7(this.If)&&C.mutedAutoplay&&(C.D("embeds_enable_full_length_inline_muted_autoplay")&&C.mutedAutoplayDurationMode===2&&C.limitedPlaybackDurationInSeconds===0&&C.endSeconds===0?this.W.push(7):this.W.push(2));C.isEmbedsShortsMode(new g.oV(this.playerWidth,this.playerHeight),!!this.playlistId)&&this.W.push(3);g.Tg(C)&& +this.W.push(4);this.rO=C.On;C.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=C.compositeLiveIngestionOffsetToken)}; +AzS=function(C,b){var h=C.sendVisitorIdHeader?C.visitorData:void 0;return g.BI(C.If,C.accessToken).then(function(N){return bwl(C.uri,C.If,C.pageId,h,N,b,C.OG)})}; +iwS=function(C,b){return function(){C.If.D("html5_simplify_pings")?(C.j=C.Qz,C.Yr=b(),C.aL=0,C.send()):AzS(C).then(function(h){var N=yz6(C);N.cmt=N.len;N.lact="0";var p=b().toFixed(3);N.rt=Number(p).toString();N=g.dt(C.uri,N);C.If.D("vss_through_gel_double")&&rzl(N);C.q2?(h==null&&(h={}),C.sX?wf().sendAndWrite(N,h):wf().sendThenWrite(N,h)):h?g.fN(N,h):g.DY(N)})}}; +yz6=function(C){var b={ns:C.IV,el:C.eventLabel,cpn:C.clientPlaybackNonce,ver:2,cmt:C.K(C.j),fmt:C.OU,fs:C.ob?"1":"0",rt:C.K(C.Yr),adformat:C.adFormat,content_v:C.contentVideoId,euri:C.Xy,lact:C.aL,live:C.LK,cl:(725870172).toString(),mos:C.pK,state:C.playerState,volume:C.k6};C.subscribed&&(b.subscribed="1");Object.assign(b,C.w9);C.L==="all"?Object.assign(b,C.G$):C.L==="once"&&C.N&&Object.assign(b,C.G$);C.autoplay&&(b.autoplay="1");C.yd&&(b.sautoplay="1");C.sI&&(b.dni="1");!C.G&&C.Df&&(b.epm=Jzl[C.Df]); +C.isFinal&&(b["final"]="1");C.CO&&(b.splay="1");C.SC&&(b.delay=C.SC);C.t4&&(b.hl=C.t4);C.region&&(b.cr=C.region);C.userGenderAge&&(b.uga=C.userGenderAge);C.userAge!==void 0&&C.kh&&(b.uga=C.kh+C.userAge);C.Qz!==void 0&&(b.len=C.K(C.Qz));!C.G&&C.experimentIds.length>0&&(b.fexp=C.experimentIds.toString());C.J!==null&&(b.rtn=C.K(C.J));C.Hm&&(b.feature=C.Hm);C.sB&&(b.ctrl=C.sB);C.OB&&(b.ytr=C.OB);C.zi&&(b.afmt=C.zi);C.offlineDownloadUserChoice&&(b.ODUC=C.offlineDownloadUserChoice);C.Yg&&(b.lio=C.K(C.Yg)); +C.G?(b.idpj=C.lF,b.ldpj=C.mw,C.delayThresholdMet&&(b.dtm="1"),C.V!=null&&(b.rti=C.K(C.V)),C.cA&&(b.ald=C.cA),C.compositeLiveIngestionOffsetToken&&(b.clio=C.compositeLiveIngestionOffsetToken)):C.adType!==void 0&&(b.at=C.adType);C.Xs&&(C.N||C.G)&&(b.size=C.Xs);C.N&&C.W.length&&(b.pbstyle=C.W.join(","));C.HW!=null&&(C.N||C.G)&&(b.inview=C.K(C.HW));C.G&&(b.volume=R_(C,g.q_(C.segments,function(N){return N.volume})),b.st=R_(C,g.q_(C.segments,function(N){return N.startTime})),b.et=R_(C,g.q_(C.segments,function(N){return N.endTime})), +i3(C.segments,function(N){return N.playbackRate!==1})&&(b.rate=R_(C,g.q_(C.segments,function(N){return N.playbackRate}))),i3(C.segments,function(N){return N.j!=="-"})&&(b.als=g.q_(C.segments,function(N){return N.j}).join(",")),i3(C.segments,function(N){return N.previouslyEnded})&&(b.pe=g.q_(C.segments,function(N){return""+ +N.previouslyEnded}).join(","))); +b.muted=R_(C,g.q_(C.segments,function(N){return N.muted?1:0})); +i3(C.segments,function(N){return N.visibilityState!==0})&&(b.vis=R_(C,g.q_(C.segments,function(N){return N.visibilityState}))); +i3(C.segments,function(N){return N.connectionType!==0})&&(b.conn=R_(C,g.q_(C.segments,function(N){return N.connectionType}))); +i3(C.segments,function(N){return N.K!==0})&&(b.blo=R_(C,g.q_(C.segments,function(N){return N.K}))); +i3(C.segments,function(N){return!!N.N})&&(b.blo=g.q_(C.segments,function(N){return N.N}).join(",")); +i3(C.segments,function(N){return!!N.compositeLiveStatusToken})&&(b.cbs=g.q_(C.segments,function(N){return N.compositeLiveStatusToken}).join(",")); +i3(C.segments,function(N){return N.X!=="-"})&&(b.cc=g.q_(C.segments,function(N){return N.X}).join(",")); +i3(C.segments,function(N){return N.clipId!=="-"})&&(b.clipid=g.q_(C.segments,function(N){return N.clipId}).join(",")); +if(i3(C.segments,function(N){return!!N.audioId})){var h="au"; +C.N&&(h="au_d");b[h]=g.q_(C.segments,function(N){return N.audioId}).join(",")}eX()&&C.KO&&(b.ctt=C.KO,b.cttype=C.Vz,b.mdx_environment=C.mdxEnvironment); +C.fK&&(b.etype=C.N2!==void 0?C.N2:0);C.Yh&&(b.uoo=C.Yh);C.livingRoomAppMode&&C.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(b.clram=uwU[C.livingRoomAppMode]||C.livingRoomAppMode);C.X?RKl(C,b):(b.docid=C.videoId,b.referrer=C.referrer,b.ei=C.eventId,b.of=C.Y5,b.osid=C.osid,b.vm=C.videoMetadata,C.adQueryId&&(b.aqi=C.adQueryId),C.autonav&&(b.autonav="1"),C.playlistId&&(b.list=C.playlistId),C.ix&&(b.ssrt="1"),C.U0&&(b.upt=C.U0));C.N&&(C.embedsRct&&(b.rct=C.embedsRct),C.embedsRctn&&(b.rctn= +C.embedsRctn),C.compositeLiveIngestionOffsetToken&&(b.clio=C.compositeLiveIngestionOffsetToken));C.rO&&(b.host_cpn=C.rO);return b}; +RKl=function(C,b){if(b&&C.X){var h=new Set(["q","feature","mos"]),N=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),p=new Set(["aqi","autonav","list","ssrt","upt"]);C.X.ns==="3pp"&&(b.ns="3pp");for(var P=g.z(Object.keys(C.X)),c=P.next();!c.done;c=P.next())c=c.value,N.has(c)||h.has(c)||p.has(c)&&!C.X[c]||(b[c]=C.X[c])}}; +R_=function(C,b){return g.q_(b,C.K).join(",")}; +rzl=function(C){C.indexOf("watchtime")!==-1&&g.en("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:C}})}; +QgW=function(C,b){C.attestationResponse&&AzS(C).then(function(h){h=h||{};h.method="POST";h.postParams={atr:C.attestationResponse};C.q2?C.sX?wf().sendAndWrite(b,h):wf().sendThenWrite(b,h):g.fN(b,h)})}; +Qn=function(C){g.O.call(this);this.provider=C;this.W="paused";this.G=NaN;this.J=[10,10,10,40];this.V=this.L=0;this.N2=this.q2=this.nO=this.KO=this.N=!1;this.K=this.X=NaN;this.j=new Vpl(C)}; +sgl=function(C){if(!C.N){C.provider.videoData.JQ===16623&&g.QB(Error("Playback for EmbedPage"));var b=UL(C,"playback");a:{if(C.provider.If.D("web_player_use_server_vss_schedule")){var h,N=(h=C.provider.videoData.getPlayerResponse())==null?void 0:h.playbackTracking,p=N==null?void 0:N.videostatsScheduledFlushWalltimeSeconds;N=N==null?void 0:N.videostatsDefaultFlushIntervalSeconds;if(p&&p.length>0&&N){h=[];var P=C.provider.videoData.XC,c=C.provider.videoData.oJ,e=-P;p=g.z(p);for(var L=p.next();!L.done;L= +p.next())L=L.value,h.push(L-e),e=L;h.push(N+c-P);h.push(N);C.J=h;break a}}C.J=[10+C.provider.videoData.XC,10,10,40+C.provider.videoData.oJ-C.provider.videoData.XC,40]}q$_(C.j);b.J=X8(C);C.K>0&&(b.j-=C.K);b.send();C.provider.videoData.xb&&(b=C.provider.If,N=C.provider.videoData,h={html5:"1",video_id:N.videoId,cpn:N.clientPlaybackNonce,ei:N.eventId,ptk:N.xb,oid:N.NB,ptchn:N.Kh,pltype:N.XD,content_v:u4(N)},N.FP&&Object.assign(h,{m:N.FP}),b=g.dt(b.nO+"ptracking",h),Udl(C,b));C.provider.videoData.SC|| +(XfS(C),Kvc(C),C.Q7());C.N=!0;b=C.j;b.j=b.provider.vE.l3();b.yr=g.HO(b.provider);!(b.N===0&&b.j<5)&&b.j-b.N>2&&(b.N=b.j);b.J=!0;C.provider.If.D("html5_log_vss_details")&&C.provider.vE.jp("vssinit",{})}}; +X8=function(C,b){b=b===void 0?NaN:b;var h=g.HO(C.provider);b=isNaN(b)?h:b;b=Math.ceil(b);var N=C.J[C.L];C.L+11E3;!(P.length>1)&&P[0].isEmpty()||e||(c.J=X8(C,p));c.send();C.V++}},(p-h)*1E3); +return C.X=p}; +KJ=function(C){g.SX(C.G);C.G=NaN}; +Owo=function(C){C.j.update();C=C.j;C.segments.length&&C.j===C.N||uT(C);var b=C.segments;C.segments=[];return b}; +UL=function(C,b){var h=DdS(C.provider);Object.assign(h,{state:C.W});b=new fnH(C.provider.videoData,C.provider.If,b,h);b.j=C.provider.vE.l3();h=C.provider.videoData.clientPlaybackNonce;b.j=C.provider.vE.DB(h);C.provider.videoData.isLivePlayback||(b.Qz=C.provider.vE.getDuration(h));C.provider.videoData.j&&(h=C.provider.videoData.j.vF(b.j))&&(b.Yg=h-b.j);b.Yr=g.HO(C.provider);b.segments=[J2(C.provider)];return b}; +vLS=function(C,b){var h=UL(C,"watchtime");ddS(C)&&(h.delayThresholdMet=!0,C.nO=!0);if(C.K>0){for(var N=g.z(b),p=N.next();!p.done;p=N.next())p=p.value,p.startTime-=C.K,p.endTime-=C.K;h.j-=C.K}else h.j=C.j.b_();h.segments=b;return h}; +sL=function(C,b){var h=Wvo(C,!isNaN(C.X));b&&(C.X=NaN);return h}; +Wvo=function(C,b){var h=vLS(C,Owo(C));!isNaN(C.X)&&b&&(h.V=C.X);return h}; +ddS=function(C){var b;if(b=C.provider.videoData.isLoaded()&&C.provider.videoData.SC&&C.N&&!C.nO)b=C.j,b=b.G+b.provider.vE.l3()-b.N>=C.provider.videoData.SC;return!!b}; +XfS=function(C){C.provider.videoData.youtubeRemarketingUrl&&!C.q2&&(Udl(C,C.provider.videoData.youtubeRemarketingUrl),C.q2=!0)}; +Kvc=function(C){C.provider.videoData.googleRemarketingUrl&&!C.N2&&(Udl(C,C.provider.videoData.googleRemarketingUrl),C.N2=!0)}; +ELK=function(C){C.provider.If.D("html5_log_vss_details")&&C.provider.vE.jp("vssfi",{});if(!C.HE()&&C.N){C.W="paused";var b=sL(C);b.isFinal=!0;b.send();C.dispose()}}; +nLl=function(C,b){if(!C.HE())if(g.B(b.state,2)||g.B(b.state,512)){if(C.W="paused",g.l1(b,2)||g.l1(b,512))g.l1(b,2)&&(C.j.previouslyEnded=!0),C.N&&(KJ(C),sL(C).send(),C.X=NaN)}else if(g.B(b.state,8)){C.W="playing";var h=C.N&&isNaN(C.G)?X8(C):NaN;!isNaN(h)&&(ax(b,64)<0||ax(b,512)<0)&&(C=Wvo(C,!1),C.J=h,C.send())}else C.W="paused"}; +tp6=function(C,b,h){if(!C.KO){h||(h=UL(C,"atr"));h.attestationResponse=b;try{h.send()}catch(N){if(N.message!=="Unknown Error")throw N;}C.KO=!0}}; +Udl=function(C,b){var h=C.provider.If;g.BI(C.provider.If,g.X5(C.provider.videoData)).then(function(N){var p=C.provider.If.pageId,P=C.provider.If.sendVisitorIdHeader?C.provider.videoData.visitorData:void 0,c=C.provider.If.D("vss_pings_using_networkless")||C.provider.If.D("kevlar_woffle"),e=C.provider.If.D("allow_skip_networkless");N=bwl(b,h,p,P,N);hKo(b,N,{token:C.provider.videoData.W,uw:C.provider.videoData.KS,mdxEnvironment:C.provider.videoData.mdxEnvironment},h,void 0,c&&!e,!1,!0)})}; +Tp6=function(){this.endTime=this.startTime=-1;this.X="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.K=0;this.compositeLiveStatusToken=this.N=void 0;this.volume=this.connectionType=0;this.muted=!1;this.j=this.clipId="-";this.previouslyEnded=!1}; +OL=function(C,b,h){this.videoData=C;this.If=b;this.vE=h;this.j=void 0}; +g.HO=function(C){return BpW(C)()}; +BpW=function(C){if(!C.j){var b=g.Cd(function(N){var p=(0,g.Ai)();N&&p<=631152E6&&(C.vE.jp("ytnerror",{issue:28799967,value:""+p}),p=(new Date).getTime()+2);return p},C.If.D("html5_validate_yt_now")),h=b(); +C.j=function(){return Math.round(b()-h)/1E3}; +C.vE.a9()}return C.j}; +DdS=function(C){var b=C.vE.FG()||{};b.fs=C.vE.GI();b.volume=C.vE.getVolume();b.muted=C.vE.isMuted()?1:0;b.mos=b.muted;b.clipid=C.vE.TP();var h;b.playerheight=((h=C.vE.getPlayerSize())==null?void 0:h.height)||0;var N;b.playerwidth=((N=C.vE.getPlayerSize())==null?void 0:N.width)||0;C=C.videoData;h={};C.K&&(h.fmt=C.K.itag,C.X&&(C.yd?C.X.itag!==C.K.itag:C.X.itag!=C.K.itag)&&(h.afmt=C.X.itag));h.ei=C.eventId;h.list=C.playlistId;h.cpn=C.clientPlaybackNonce;C.videoId&&(h.v=C.videoId);C.wH&&(h.infringe=1); +(C.Xy?0:C.fK)&&(h.splay=1);(N=aD(C))&&(h.live=N);C.qG&&(h.sautoplay=1);C.LZ&&(h.autoplay=1);C.bX&&(h.sdetail=C.bX);C.partnerId&&(h.partnerid=C.partnerId);C.osid&&(h.osid=C.osid);C.iE&&(h.cc=g.yvS(C.iE));return Object.assign(b,h)}; +Zw6=function(C){var b=LMl();if(b)return Inl[b]||Inl.other;if(g.m9(C.If)){C=navigator.userAgent;if(/[Ww]ireless[)]/.test(C))return 3;if(/[Ww]ired[)]/.test(C))return 30}return 0}; +J2=function(C){var b=new Tp6,h;b.X=((h=DdS(C).cc)==null?void 0:h.toString())||"-";b.playbackRate=C.vE.getPlaybackRate();h=C.vE.getVisibilityState();h!==0&&(b.visibilityState=h);C.If.sI&&(b.K=1);b.N=C.videoData.WA;b.compositeLiveStatusToken=C.videoData.compositeLiveStatusToken;h=C.vE.getAudioTrack();h.z$&&h.z$.id&&h.z$.id!=="und"&&(b.audioId=h.z$.id);b.connectionType=Zw6(C);b.volume=C.vE.getVolume();b.muted=C.vE.isMuted();b.clipId=C.vE.TP()||"-";b.j=C.videoData.X1||"-";return b}; +g.vO=function(C,b){g.O.call(this);var h=this;this.provider=C;this.X=!1;this.N=new Map;this.TM=new g.w6;this.dn={Pr4:function(){return h.qoe}, +Z6z:function(){return h.j}, +rch:function(){return h.K}}; +this.provider.videoData.bF()&&!this.provider.videoData.Du&&(this.j=new Qn(this.provider),this.j.K=this.provider.videoData.lF/1E3,g.D(this,this.j),this.qoe=new g.fJ(this.provider,b),g.D(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.jq=this.provider.videoData.clientPlaybackNonce)&&this.N.set(this.jq,this.j));if(C.If.playerCanaryState==="canary"||C.If.playerCanaryState==="holdback")this.K=new zG(this.provider),g.D(this,this.K)}; +xdK=function(C){return!!C.j&&!!C.qoe}; +D9=function(C){C.K&&WA6(C.K);C.qoe&&zK6(C.qoe)}; +wf_=function(C){if(C.qoe){C=C.qoe;for(var b=C.provider.videoData,h=C.provider.If,N=g.z(h.RM),p=N.next();!p.done;p=N.next())yn(C,p.value);if(C.provider.D("html5_enable_qoe_cat_list"))for(N=g.z(b.df),p=N.next();!p.done;p=N.next())yn(C,p.value);else b.RM&&yn(C,C.provider.videoData.RM);b.yV()&&(N=b.j,g9(b)&&yn(C,"manifestless"),N&&Yy(N)&&yn(C,"live-segment-"+Yy(N).toFixed(1)));x6(b)?yn(C,"sabr"):C.ZN(jM(b));if(K6(b)||b.qz())b.qz()&&yn(C,"ssa"),yn(C,"lifa");b.gatewayExperimentGroup&&(N=b.gatewayExperimentGroup, +N==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?N="spkadtrt":N==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(N="spkadctrl"),yn(C,N));h.KO!=="yt"&&(C.j.len=[b.lengthSeconds.toFixed(2)]);b.cotn&&!vT(b)&&C.Gq(!0);h.tZ()&&(b=khS())&&C.jp("cblt",{m:b});if(h.D("html5_log_screen_diagonal")){h=C.jp;var P;b=((P=window.H5vccScreen)==null?0:P.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;h.call(C,"cbltdiag",{v:b})}}}; +CTl=function(C){if(C.provider.vE.VP()){if(C.X)return;C.X=!0}C.j&&sgl(C.j);if(C.K){C=C.K;var b=g.HO(C.provider);C.j<0&&(C.j=b,C.delay.start());C.K=b;C.X=b}}; +bJH=function(C,b){C.j&&(C=C.j,b===58?C.j.update():C.N&&(KJ(C),sL(C).send(),C.X=NaN))}; +hHS=function(C,b){if(g.l1(b,1024)||g.l1(b,512)||g.l1(b,4)){if(C.K){var h=C.K;h.K>=0||(h.j=-1,h.delay.stop())}C.qoe&&(h=C.qoe,h.L||(h.K=-1))}if(C.provider.videoData.enableServerStitchedDai&&C.jq){var N;(N=C.N.get(C.jq))==null||nLl(N,b)}else C.j&&nLl(C.j,b);if(C.qoe){N=C.qoe;h=b.state;var p=g.HO(N.provider),P=N.getPlayerState(h);Hw6(N,p,P,h.seekSource||void 0);P=h.N9;g.B(h,128)&&P&&(P.dN=P.dN||"",Fvc(N,p,P.errorCode,P.Sa,P.dN));(g.B(h,2)||g.B(h,128))&&N.reportStats(p);h.isPlaying()&&!N.L&&(N.K>=0&& +(N.j.user_intent=[N.K.toString()]),N.L=!0);lnW(N)}C.K&&(N=C.K,EcU(N),N.playerState=b.state,N.K>=0&&g.l1(b,16)&&N.seekCount++,b.state.isError()&&N.send());C.provider.vE.VP()&&(C.TM=b.state)}; +N4K=function(C){if(C.provider.videoData.enableServerStitchedDai&&C.jq){var b;(b=C.N.get(C.jq))!=null&&uT(b.j)}else C.j&&uT(C.j.j)}; +gOl=function(C){C.K&&C.K.send();if(C.qoe){var b=C.qoe;if(b.N){b.TM==="PL"&&(b.TM="N");var h=g.HO(b.provider);g.mQ(b,h,"vps",[b.TM]);b.L||(b.K>=0&&(b.j.user_intent=[b.K.toString()]),b.L=!0);b.provider.If.tZ()&&b.jp("finalized",{});b.sX=!0;b.reportStats(h)}}if(C.provider.videoData.enableServerStitchedDai)for(b=g.z(C.N.values()),h=b.next();!h.done;h=b.next())ELK(h.value);else C.j&&ELK(C.j);C.dispose()}; +pOW=function(C,b){C.j&&tp6(C.j,b)}; +PTc=function(C){if(!C.j)return null;var b=UL(C.j,"atr");return function(h){C.j&&tp6(C.j,h,b)}}; +j_V=function(C,b,h,N){h.adFormat=h.IV;var p=b.vE;b=new Qn(new OL(h,b.If,{getDuration:function(){return h.lengthSeconds}, +getCurrentTime:function(){return p.getCurrentTime()}, +l3:function(){return p.l3()}, +DB:function(){return p.DB()}, +VP:function(){return p.VP()}, +ED:function(){return p.ED()}, +getPlayerSize:function(){return p.getPlayerSize()}, +getAudioTrack:function(){return h.getAudioTrack()}, +getPlaybackRate:function(){return p.getPlaybackRate()}, +Qs:function(){return p.Qs()}, +getVisibilityState:function(){return p.getVisibilityState()}, +FX:function(){return p.FX()}, +FG:function(){return p.FG()}, +getVolume:function(){return p.getVolume()}, +isMuted:function(){return p.isMuted()}, +GI:function(){return p.GI()}, +TP:function(){return p.TP()}, +getProximaLatencyPreference:function(){return p.getProximaLatencyPreference()}, +a9:function(){p.a9()}, +jp:function(P,c){p.jp(P,c)}, +Gz:function(){return p.Gz()}})); +b.K=N;g.D(C,b);return b}; +c2V=function(){this.I1=0;this.N=this.IJ=this.U8=this.K=NaN;this.j={};this.bandwidthEstimate=NaN}; +d4=function(C,b,h){g.O.call(this);var N=this;this.If=C;this.vE=b;this.K=h;this.j=new Map;this.jq="";this.dn={Yo:function(){return Array.from(N.j.keys())}}}; +kGK=function(C,b){C.j.has(b)&&(gOl(C.j.get(b)),C.j.delete(b))}; +eHK=function(){this.j=g.gL;this.array=[]}; +ZJW=function(C,b,h){var N=[];for(b=LQ_(C,b);bh)break}return N}; +YLH=function(C,b){var h=[];C=g.z(C.array);for(var N=C.next();!N.done&&!(N=N.value,N.contains(b)&&h.push(N),N.start>b);N=C.next());return h}; +a9o=function(C){return C.array.slice(LQ_(C,0x7ffffffffffff),C.array.length)}; +LQ_=function(C,b){C=eo(C.array,function(h){return b-h.start||1}); +return C<0?-(C+1):C}; +l9W=function(C,b){var h=NaN;C=g.z(C.array);for(var N=C.next();!N.done;N=C.next())if(N=N.value,N.contains(b)&&(isNaN(h)||N.endb&&(isNaN(h)||N.startC.mediaTime+C.G&&b1)C.X=!0;if((p===void 0?0:p)||isNaN(C.K))C.K=b;if(C.j)b!==C.mediaTime&&(C.j=!1);else if(b>0&&C.mediaTime===b){p=1500;if(C.If.D("html5_buffer_underrun_transition_fix")){p=g.Zc(C.If.experiments,"html5_min_playback_advance_for_steady_state_secs");var P=g.Zc(C.If.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");p=p>0&&P>0&&Math.abs(b-C.K)(N||!C.X?p:400)}C.mediaTime=b;C.N=h;return!1}; +zHl=function(C,b){this.videoData=C;this.j=b}; +HJ1=function(C,b,h){return b.Hy(h).then(function(){return Rf(new zHl(b,b.N))},function(N){N instanceof Error&&g.QB(N); +var p=Am('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),P=re('audio/mp4; codecs="mp4a.40.2"'),c=p||P,e=b.isLivePlayback&&!g.tP(C.G,!0);N="fmt.noneavailable";e?N="html5.unsupportedlive":c||(N="html5.missingapi");c=e||!c?2:1;p={buildRej:"1",a:b.mS(),d:!!b.Yr,drm:b.o$(),f18:b.OR.indexOf("itag=18")>=0,c18:p};b.j&&(b.o$()?(p.f142=!!b.j.j["142"],p.f149=!!b.j.j["149"],p.f279=!!b.j.j["279"]):(p.f133=!!b.j.j["133"],p.f140=!!b.j.j["140"],p.f242=!!b.j.j["242"]),p.cAAC=P,p.cAVC=re('video/mp4; codecs="avc1.42001E"'), +p.cVP9=re('video/webm; codecs="vp9"'));b.G&&(p.drmsys=b.G.keySystem,P=0,b.G.j&&(P=Object.keys(b.G.j).length),p.drmst=P);return new Mw(N,p,c)})}; +TG=function(C){this.data=window.Float32Array?new Float32Array(C):Array(C);this.K=this.j=C-1}; +VqU=function(C){return C.data[C.j]||0}; +MqU=function(C){this.G=C;this.N=this.K=0;this.X=new TG(50)}; +I_=function(C,b,h){g.cr.call(this);this.videoData=C;this.experiments=b;this.W=h;this.K=[];this.X=0;this.N=!0;this.G=!1;this.J=0;h=new qLl;C.latencyClass==="ULTRALOW"&&(h.X=!1);C.kh?h.K=3:g.SM(C)&&(h.K=2);C.latencyClass==="NORMAL"&&(h.W=!0);var N=g.Zc(b,"html5_liveness_drift_proxima_override");if(jM(C)!==0&&N){h.j=N;var p;((p=C.j)==null?0:yAx(p))&&h.j--}x6(C)&&b.Fo("html5_sabr_parse_live_metadata_playback_boundaries")&&(h.V=!0);if(g.dJ("trident/")||g.dJ("edge/"))p=g.Zc(b,"html5_platform_minimum_readahead_seconds")|| +3,h.N=Math.max(h.N,p);g.Zc(b,"html5_minimum_readahead_seconds")&&(h.N=g.Zc(b,"html5_minimum_readahead_seconds"));g.Zc(b,"html5_maximum_readahead_seconds")&&(h.L=g.Zc(b,"html5_maximum_readahead_seconds"));b.Fo("html5_force_adaptive_readahead")&&(h.X=!0);if(p=g.Zc(b,"html5_liveness_drift_chunk_override"))h.j=p;p6(C)&&(h.j=(h.j+1)/5,C.latencyClass==="LOW"&&(h.j*=2));if(C.latencyClass==="ULTRALOW"||C.latencyClass==="LOW")h.G=g.Zc(b,"html5_low_latency_adaptive_liveness_adjustment_segments")||1,h.J=g.Zc(b, +"html5_low_latency_max_allowable_liveness_drift_chunks")||10;this.policy=h;this.L=this.policy.K!==1;this.j=BO(this,mDK(this,isNaN(C.liveChunkReadahead)?3:C.liveChunkReadahead,C))}; +f9l=function(C,b){if(b)return b=C.videoData,b=mDK(C,isNaN(b.liveChunkReadahead)?3:b.liveChunkReadahead,b),BO(C,b);if(C.K.length){if(Math.min.apply(null,C.K)>1)return BO(C,C.j-1);if(C.policy.X)return BO(C,C.j+1)}return C.j}; +A2o=function(C,b){if(!C.K.length)return!1;var h=C.j;C.j=f9l(C,b===void 0?!1:b);if(b=h!==C.j)C.K=[],C.X=0;return b}; +xO=function(C,b){return b>=C.lN()-y26(C)}; +r2c=function(C,b,h){b=xO(C,b);h||b?b&&(C.N=!0):C.N=!1;C.L=C.policy.K===2||C.policy.K===3&&C.N}; +iJl=function(C,b){b=xO(C,b);C.G!==b&&C.publish("livestatusshift",b);C.G=b}; +y26=function(C){var b=C.policy.j;C.G||(b=Math.max(b-1,0));return b*w4(C)}; +mDK=function(C,b,h){h.kh&&b--;p6(h)&&(b=1);if(jM(h)!==0&&(C=g.Zc(C.experiments,"html5_live_chunk_readahead_proxima_override"))){b=C;var N;((N=h.j)==null?0:yAx(N))&&b++}return b}; +w4=function(C){return C.videoData.j?Yy(C.videoData.j)||5:5}; +BO=function(C,b){b=Math.max(Math.max(1,Math.ceil(C.policy.N/w4(C))),b);return Math.min(Math.min(8,Math.floor(C.policy.L/w4(C))),b)}; +qLl=function(){this.N=0;this.L=Infinity;this.X=!0;this.j=2;this.K=1;this.W=!1;this.J=10;this.V=!1;this.G=1}; +hn=function(C){g.O.call(this);this.vE=C;this.j=0;this.K=null;this.W=this.X=0;this.N={};this.If=this.vE.Y();this.G=new g.C2(this.r9,1E3,this);this.zi=new Ca({delayMs:g.Zc(this.If.experiments,"html5_seek_timeout_delay_ms")});this.sX=new Ca({delayMs:g.Zc(this.If.experiments,"html5_long_rebuffer_threshold_ms")});this.Vz=b_(this,"html5_seek_set_cmt");this.t4=b_(this,"html5_seek_jiggle_cmt");this.m6=b_(this,"html5_seek_new_elem");this.Yg=b_(this,"html5_unreported_seek_reseek");this.nO=b_(this,"html5_long_rebuffer_jiggle_cmt"); +this.Qz=b_(this,"html5_long_rebuffer_ssap_clip_not_match");this.q2=new Ca({delayMs:2E4});this.CO=b_(this,"html5_seek_new_elem_shorts");this.kh=b_(this,"html5_seek_new_media_source_shorts_reuse");this.Yh=b_(this,"html5_seek_new_media_element_shorts_reuse");this.rO=b_(this,"html5_reseek_after_time_jump");this.L=b_(this,"html5_gapless_handoff_close_end_long_rebuffer");this.KO=b_(this,"html5_gapless_slow_seek");this.V=b_(this,"html5_gapless_slice_append_stuck");this.N2=b_(this,"html5_gapless_slow_start"); +this.J=b_(this,"html5_ads_preroll_lock_timeout");this.SC=b_(this,"html5_ssap_ad_longrebuffer_new_element");this.sI=new Ca({delayMs:g.Zc(this.If.experiments,"html5_skip_slow_ad_delay_ms")||5E3,iS:!this.If.D("html5_report_slow_ads_as_error")});this.G$=new Ca({delayMs:g.Zc(this.If.experiments,"html5_skip_slow_ad_delay_ms")||5E3,iS:!this.If.D("html5_skip_slow_buffering_ad")});this.ob=new Ca({delayMs:g.Zc(this.If.experiments,"html5_slow_start_timeout_delay_ms")});this.Df=b_(this,"html5_slow_start_no_media_source"); +g.D(this,this.G)}; +b_=function(C,b){var h=g.Zc(C.If.experiments,b+"_delay_ms");C=C.If.D(b+"_cfl");return new Ca({delayMs:h,iS:C})}; +J2l=function(C,b){C.j=b}; +Ng=function(C,b,h,N,p,P,c,e){b.test(h)?(C.zE(p,b,c),b.iS||P()):(b.QZ&&b.K&&!b.X?(h=(0,g.Ai)(),N?b.j||(b.j=h):b.j=0,P=!N&&h-b.K>b.QZ,h=b.j&&h-b.j>b.qH||P?b.X=!0:!1):h=!1,h&&(e=Object.assign({},C.jf(b),e),e.wn=c,e.we=p,e.wsuc=N,C.vE.jp("workaroundReport",e),N&&(b.reset(),C.N[p]=!1)))}; +Ca=function(C){var b=C===void 0?{}:C;C=b.delayMs===void 0?0:b.delayMs;var h=b.qH===void 0?1E3:b.qH;var N=b.QZ===void 0?3E4:b.QZ;b=b.iS===void 0?!1:b.iS;this.j=this.K=this.N=this.startTimestamp=0;this.X=!1;this.G=Math.ceil(C/1E3);this.qH=h;this.QZ=N;this.iS=b}; +UD_=function(C){g.O.call(this);var b=this;this.vE=C;this.W=this.j=this.Xo=this.mediaElement=this.playbackData=null;this.X=0;this.G=this.KO=this.N=null;this.N2=!1;this.sI=0;this.L=!1;this.timestampOffset=0;this.J=!0;this.t4=0;this.m6=this.ob=!1;this.V=0;this.kh=!1;this.nO=0;this.If=this.vE.Y();this.videoData=this.vE.getVideoData();this.policy=new u86;this.q2=new hn(this.vE);this.zi=this.rO=this.Df=this.K=NaN;this.Qz=new g.C2(function(){RHl(b,!1)},2E3); +this.G$=new g.C2(function(){gT(b)}); +this.CO=new g.C2(function(){b.N2=!0;Q_x(b,{})}); +this.Vz=NaN;this.sX=new g.C2(function(){var h=b.If.fK;h.j+=1E4/36E5;h.j-h.N>1/6&&(v4c(h),h.N=h.j);b.sX.start()},1E4); +g.D(this,this.q2);g.D(this,this.Qz);g.D(this,this.CO);g.D(this,this.G$);g.D(this,this.sX)}; +s__=function(C,b){C.playbackData=b;C.videoData.isLivePlayback&&(C.W=new MqU(function(){a:{if(C.playbackData&&C.playbackData.j.j){if(g9(C.videoData)&&C.Xo){var h=C.Xo.dV.w0()||0;break a}if(C.videoData.j){h=C.videoData.j.q2;break a}}h=0}return h}),C.j=new I_(C.videoData,C.If.experiments,function(){return C.J8(!0)})); +pa(C.vE)?(b=XO6(C),b.J9?(C.D("html5_sabr_enable_utc_seek_requests")&&x6(C.videoData)&&C.il(b.J9,b.startSeconds),C.X=b.startSeconds):b.startSeconds>0&&C.seekTo(b.startSeconds,{Cj:"seektimeline_startPlayback",seekSource:15}),C.J=!1):KQ_(C)||(C.X=C.X||(g.sF(C.videoData)?0:C.videoData.startSeconds)||0)}; +vO_=function(C,b){(C.Xo=b)?OJ_(C,!0):PY(C)}; +DD1=function(C,b){g.be(C.q2.G);C.D("html5_exponential_memory_for_sticky")&&(b.state.isPlaying()?g.be(C.sX):C.sX.stop());if(C.mediaElement)if(b.oldState.state===8&&PF(b.state)&&b.state.isBuffering()){b=C.mediaElement.getCurrentTime();var h=C.mediaElement.XX();var N=C.D("manifestless_post_live_ufph")||C.D("manifestless_post_live")?g6(h,Math.max(b-3.5,0)):g6(h,b-3.5);N>=0&&b>h.end(N)-1.1&&N+10?(j1(C.vE,C.getCurrentTime()+C.videoData.limitedPlaybackDurationInSeconds),C.m6=!0):C.videoData.isLivePlayback&&C.videoData.endSeconds>0&&(j1(C.vE,C.getCurrentTime()+C.videoData.endSeconds),C.m6=!0))}; +WQx=function(C,b){var h=C.getCurrentTime(),N=C.isAtLiveHead(h);if(C.W&&N){var p=C.W;if(p.j&&!(h>=p.K&&h50&&p.K.shift())),p=C.j,r2c(p,h,b===void 0?!0:b),iJl(p,h),b&&RHl(C,!0));N!==C.ob&&(b=C.getCurrentTime()-C.zi<=500,h=C.sI>=1E3,b||h||(b=C.vE.CJ(),b.qoe&&(b=b.qoe,h=g.HO(b.provider), +g.mQ(b,h,"lh",[N?"1":"0"])),C.ob=N,C.sI++,C.zi=C.getCurrentTime()))}; +RHl=function(C,b){if(C.j){var h=C.j;var N=C.getCurrentTime();!xO(h,N)&&h.Dt()?(h.policy.W&&(h.policy.j=Math.max(h.policy.j+h.policy.G,h.policy.J)),h=Infinity):h=N0&&TF(C.mediaElement)>0&&(C.K=cY(C,C.K,!1)),!C.mediaElement||!B4V(C))C.G$.start(750);else if(!isNaN(C.K)&&isFinite(C.K)){var b=C.rO-(C.K-C.timestampOffset);if(!(b===0||C.D("html5_enable_new_seek_timeline_logic")&&Math.abs(b)<.005))if(b=C.mediaElement.getCurrentTime()-C.K,Math.abs(b)<=C.t4||C.D("html5_enable_new_seek_timeline_logic")&&Math.abs(b)<.005)C.N&&C.N.resolve(C.mediaElement.getCurrentTime()); +else{if(C.videoData.F6)C.videoData.F6=!1;else if(!NF(C.videoData)&&C.K>=C.J8()-.1){C.K=C.J8();C.N.resolve(C.J8());C.vE.DN();return}try{var h=C.K-C.timestampOffset;C.mediaElement.seekTo(h);C.q2.j=h;C.rO=h;C.X=C.K;C.D("html5_enable_new_seek_timeline_logic")&&(C.L=!1)}catch(N){}}}}; +B4V=function(C){if(!C.mediaElement||C.mediaElement.qZ()===0||C.mediaElement.hasError())return!1;var b=C.mediaElement.getCurrentTime()>0;if(!(C.videoData.N&&C.videoData.N.j||C.videoData.isLivePlayback)&&C.videoData.o$())return b;if(C.K>=0){var h=C.mediaElement.Zd();if(h.length||!b)return pI(h,C.K-C.timestampOffset)}return b}; +T4_=function(C,b){C.G&&(C.G.resolve(b),C.vE.Ha(),C.If.tZ()&&(b=C.jf(),b["native"]=""+ +C.L,b.otgt=""+(C.K+C.timestampOffset),C.vE.jp("seekEnd",b)));PY(C)}; +PY=function(C){C.K=NaN;C.rO=NaN;C.N=null;C.KO=null;C.G=null;C.N2=!1;C.L=!1;C.t4=0;C.Qz.stop();C.CO.stop()}; +wO1=function(C,b,h){var N=C.mediaElement,p=b.type;switch(p){case "seeking":var P=N.getCurrentTime()+C.timestampOffset;if(!C.N||C.L&&P!==C.K){var c=!!C.N;C.N=new nI;C.D("html5_enable_new_seek_timeline_logic")&&C.N.then(function(L){T4_(C,L)},function(){PY(C)}); +if(C.videoData.isAd()){var e;CZK({adCpn:C.videoData.clientPlaybackNonce,contentCpn:(e=C.videoData.On)!=null?e:""},b.j)}C.rO=P;J2l(C.q2,N.getCurrentTime());C.seekTo(P,{seekSource:104,Cj:"seektimeline_mediaElementEvent"});h&&I9_(h,P*1E3,!!c);C.L=!0}break;case "seeked":C.N&&C.N.resolve(C.mediaElement.getCurrentTime());break;case "loadedmetadata":pa(C.vE)||xD1(C);gT(C);break;case "progress":gT(C);break;case "pause":C.V=C.getCurrentTime()}C.V&&((p==="play"||p==="playing"||p==="timeupdate"||p==="progress")&& +C.getCurrentTime()-C.V>10&&(C.D("html5_enable_new_media_element_puase_jump")?(C.vE.zE(new Mw("qoe.restart",{reason:"pauseJump"})),C.vE.B6()):C.seekTo(C.V,{Cj:"pauseJump"})),p!=="pause"&&p!=="play"&&p!=="playing"&&p!=="progress"&&(C.V=0))}; +C_x=function(C){return($8(C.videoData)||!!C.videoData.liveUtcStartSeconds)&&(!!C.videoData.liveUtcStartSeconds||KQ_(C))&&!!C.videoData.j}; +KQ_=function(C){return!!C.videoData.startSeconds&&isFinite(C.videoData.startSeconds)&&C.videoData.startSeconds>1E9}; +XO6=function(C){var b=0,h=NaN,N="";if(!C.J)return{startSeconds:b,J9:h,source:N};C.videoData.Qz?b=C.videoData.Df:NF(C.videoData)&&(b=Infinity);if(g.SM(C.videoData))return{startSeconds:b,J9:h,source:N};C.videoData.startSeconds?(N="ss",b=C.videoData.startSeconds):C.videoData.OG&&(N="stss",b=C.videoData.OG);C.videoData.liveUtcStartSeconds&&(h=C.videoData.liveUtcStartSeconds);if(isFinite(b)&&(b>C.J8()||bC.J8()||h +0?(N.onesie="0",C.handleError(new Mw("html5.missingapi",N)),!1):!0}; +k$6=function(C){var b=yG();rY(b,C);return g.PN(b,e5l())}; +P_l=function(C,b){var h,N,p,P,c,e,L,Z,Y,a,l,F,G,V,q,f,y,u,K,v,T,t,go,jV,CW,W;return g.R(function(w){if(w.j==1)return b.fetchType="onesie",h=$Gx(b,C.getPlayerSize(),C.getVisibilityState()),N=new E$(C,h),g.J(w,N.fetch(),2);p=w.K;P={player_response:p};b.loading=!1;c=C.bf.xq;if(N.oe){e=g.z(N.oe.entries());for(L=e.next();!L.done;L=e.next())Z=L.value,Y=g.z(Z),a=Y.next().value,l=Y.next().value,F=a,G=l,c.j.set(F,G,180),F===b.videoId&&(V=G.hK(),b.uT=V);c.DZ=N}q=g.z(N.RZ.entries());for(f=q.next();!f.done;f= +q.next())y=f.value,u=g.z(y),K=u.next().value,v=u.next().value,T=K,t=v,c.K.set(T,t,180);g.Kj(b,P,!0);if(b.loading||UF(b))return w.return(Promise.resolve());c.j.removeAll();c.K.removeAll();b.uT=[];go={};jV="onesie.response";CW=0;b.errorCode?(jV="auth",go.ec=b.errorCode,go.ed=b.errorDetail,go.es=b.fS||"",CW=2):(go.successButUnplayable="1",go.disposed=""+ +b.HE(),go.afmts=""+ +/adaptiveFormats/.test(p),go.cpn=b.clientPlaybackNonce);W=new Mw(jV,go,CW);return w.return(Promise.reject(W))})}; +gCl=function(C,b){var h,N,p,P,c,e,L,Z,Y,a,l;return g.R(function(F){switch(F.j){case 1:h=b.isAd(),N=!h,p=h?1:3,P=0;case 2:if(!(P0)){F.WE(5);break}return g.J(F,qR(5E3),6);case 6:c=new g.tJ("Retrying OnePlatform request",{attempt:P}),g.QB(c);case 5:return g.z6(F,7),g.J(F,eZW(C,b),9);case 9:return F.return();case 7:e=g.MW(F);L=ml(e);Z=L.errorCode;Y=C.Y();a=Y.D("html5_use_network_error_code_enums")?401:"401";N&&Z==="manifest.net.badstatus"&&L.details.rc===a&&(N=!1,P===p-1&&(p+= +1));if(P===p-1)return l=LjV(h,L.details),l.details.backend="op",l.details.originec=Z,F.return(Promise.reject(l));if(Z==="auth"||Z==="manifest.net.retryexhausted")return F.return(Promise.reject(L));C.handleError(L);if(qw(L.severity)){F.WE(4);break}case 3:P++;F.WE(2);break;case 4:return F.return(Promise.reject(LjV(h,{backend:"op"})))}})}; +eZW=function(C,b){function h(jV){jV.readyState===2&&C.xt("ps_c")} +var N,p,P,c,e,L,Z,Y,a,l,F,G,V,q,f,y,u,K,v,T,t,go;return g.R(function(jV){switch(jV.j){case 1:b.fetchType="gp";N=C.Y();p=g.BI(N,g.X5(b));if(!p.j){P=p.getValue();jV.WE(2);break}return g.J(jV,p.j,3);case 3:P=jV.K;case 2:return c=P,e=k$6(c),L=$Gx(b,C.getPlayerSize(),C.getVisibilityState()),Z=g.bg(Zao),Y=g.X5(b),a=(0,g.Ai)(),l=!1,F="empty",G=0,C.xt("psns"),V={aB:h},g.J(jV,g.TI(e,L,Z,void 0,V),4);case 4:q=jV.K;C.xt("psnr");if(b.HE())return jV.return();q?"error"in q&&q.error?(l=!0,F="esf:"+q.error.message, +G=q.error.code):q.errorMetadata&&(l=!0,F="its",G=q.errorMetadata.status):l=!0;if(l)return f=0,y=((0,g.Ai)()-a).toFixed(),u={},u=N.D("html5_use_network_error_code_enums")?{backend:"op",rc:G,rt:y,reason:F,has_kpt:b.sI?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.BC("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:N.pageId?"1":"0",has_token:Y?"1":"0",has_vvt:b.N2?"1":"0",is_mdx:b.isMdxPlayback?"1":"0",mdx_ctrl:b.sB||"",token_eq:Y===g.X5(b)?"1":"0"}:{backend:"op", +rc:""+G,rt:y,reason:F,has_kpt:b.sI?"1":"0",has_mdx_env:b.mdxEnvironment?"1":"0",has_omit_key_flag:g.BC("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:N.pageId?"1":"0",has_token:Y?"1":"0",has_vvt:b.N2?"1":"0",is_mdx:b.isMdxPlayback?"1":"0",mdx_ctrl:b.sB||"",token_eq:Y===g.X5(b)?"1":"0"},K="manifest.net.connect",G===429?(K="auth",f=2):G>200&&(K="manifest.net.badstatus",G===400&&(f=2)),jV.return(Promise.reject(new Mw(K,u,f)));b.loading=!1;g.Kj(b,{raw_player_response:q},!0); +v=q;g.mG(b.Y())&&v&&v.trackingParams&&$l(v.trackingParams);if(b.errorCode)return T={ec:b.errorCode,ed:b.errorDetail,es:b.fS||""},jV.return(Promise.reject(new Mw("auth",T,2)));if(!b.loading&&!UF(b))return t=b.isAd()?"auth":"manifest.net.retryexhausted",go=b.isAd()?2:1,jV.return(Promise.reject(new Mw(t,{successButUnplayable:"1",hasMedia:g.oD(b)?"1":"0"},go)));g.$_(jV)}})}; +NTW=function(C,b,h){function N(G){G=ml(G);if(qw(G.severity))return Promise.reject(G);C.handleError(G);return!1} +function p(){return!0} +var P,c,e,L,Z,Y,a,l,F;return g.R(function(G){switch(G.j){case 1:var V=C.Y(),q=C.getPlayerSize(),f=C.getVisibilityState();C.isFullscreen();var y=window.location.search;if(b.partnerId===38&&V.playerStyle==="books")y=b.videoId.indexOf(":"),y=g.dt("//play.google.com/books/volumes/"+b.videoId.slice(0,y)+"/content/media",{aid:b.videoId.slice(y+1),sig:b.Zw});else if(b.partnerId===30&&V.playerStyle==="docs")y=g.dt("https://docs.google.com/get_video_info",{docid:b.videoId,authuser:b.z3,authkey:b.Xd,eurl:V.zi}); +else if(b.partnerId===33&&V.playerStyle==="google-live")y=g.dt("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId});else{V.KO!=="yt"&&g.Ri(Error("getVideoInfoUrl for invalid namespace: "+V.KO));var u={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:V.zi,ps:V.playerStyle,el:f6(b),hl:V.ob,list:b.playlistId,agcid:b.QY,aqi:b.adQueryId,sts:20131,lact:Ap()};Object.assign(u,V.j);V.forcedExperiments&&(u.forced_experiments=V.forcedExperiments);b.N2?(u.vvt=b.N2,b.mdxEnvironment&&(u.mdx_environment= +b.mdxEnvironment)):g.X5(b)&&(u.access_token=g.X5(b));b.adFormat&&(u.adformat=b.adFormat);b.slotPosition>=0&&(u.slot_pos=b.slotPosition);b.breakType&&(u.break_type=b.breakType);b.WB!==null&&(u.ad_id=b.WB);b.a7!==null&&(u.ad_sys=b.a7);b.Vt!==null&&(u.encoded_ad_playback_context=b.Vt);V.captionsLanguagePreference&&(u.cc_lang_pref=V.captionsLanguagePreference);V.G$&&V.G$!==2&&(u.cc_load_policy=V.G$);var K=g.D7(g.vj(),65);g.vI(V)&&K!=null&&!K&&(u.device_captions_on="1");V.mute&&(u.mute=V.mute);b.annotationsLoadPolicy&& +V.annotationsLoadPolicy!==2&&(u.iv_load_policy=b.annotationsLoadPolicy);b.Lw&&(u.endscreen_ad_tracking=b.Lw);(K=V.Df.get(b.videoId))&&K.nY&&(u.ic_track=K.nY);b.sX&&(u.itct=b.sX);Uv(b)&&(u.autoplay="1");b.mutedAutoplay&&(u.mutedautoplay=b.mutedAutoplay);b.isAutonav&&(u.autonav="1");b.xI&&(u.noiba="1");b.isMdxPlayback&&(u.mdx="1",u.ytr=b.OB);b.mdxControlMode&&(u.mdx_control_mode=b.mdxControlMode);b.BC&&(u.ytrcc=b.BC);b.pP&&(u.utpsa="1");b.isFling&&(u.is_fling="1");b.isInlinePlaybackNoAd&&(u.mute="1"); +b.vnd&&(u.vnd=b.vnd);b.forceAdsUrl&&(K=b.forceAdsUrl.split("|").length===3,u.force_ad_params=K?b.forceAdsUrl:"||"+b.forceAdsUrl);b.OU&&(u.preload=b.OU);q.width&&(u.width=q.width);q.height&&(u.height=q.height);(b.Xy?0:b.fK)&&(u.splay="1");b.ypcPreview&&(u.ypc_preview="1");u4(b)&&(u.content_v=u4(b));b.kh&&(u.livemonitor=1);V.q2&&(u.authuser=V.q2);V.pageId&&(u.pageid=V.pageId);V.Yh&&(u.ei=V.Yh);V.X&&(u.iframe="1");b.contentCheckOk&&(u.cco="1");b.racyCheckOk&&(u.rco="1");V.J&&b.CP&&(u.live_start_walltime= +b.CP);V.J&&b.xs&&(u.live_manifest_duration=b.xs);V.J&&b.playerParams&&(u.player_params=b.playerParams);V.J&&b.cycToken&&(u.cyc=b.cycToken);V.J&&b.fn&&(u.tkn=b.fn);f!==0&&(u.vis=f);V.enableSafetyMode&&(u.enable_safety_mode="1");b.sI&&(u.kpt=b.sI);b.Ck&&(u.kids_age_up_mode=b.Ck);b.kidsAppInfo&&(u.kids_app_info=b.kidsAppInfo);b.P1&&(u.upg_content_filter_mode="1");V.widgetReferrer&&(u.widget_referrer=V.widgetReferrer.substring(0,128));b.KO?(q=b.KO.latitudeE7!=null&&b.KO.longitudeE7!=null?b.KO.latitudeE7+ +","+b.KO.longitudeE7:",",q+=","+(b.KO.clientPermissionState||0)+","+(b.KO.locationRadiusMeters||"")+","+(b.KO.locationOverrideToken||"")):q=null;q&&(u.uloc=q);b.xo&&(u.internalipoverride=b.xo);V.embedConfig&&(u.embed_config=V.embedConfig);V.XC&&(u.co_rel="1");V.ancestorOrigins.length>0&&(u.ancestor_origins=Array.from(V.ancestorOrigins).join(","));V.homeGroupInfo!==void 0&&(u.home_group_info=V.homeGroupInfo);V.livingRoomAppMode!==void 0&&(u.living_room_app_mode=V.livingRoomAppMode);V.enablePrivacyFilter&& +(u.enable_privacy_filter="1");b.isLivingRoomDeeplink&&(u.is_living_room_deeplink="1");b.u6&&b.SP&&(u.clip=b.u6,u.clipt=b.SP);b.g2&&(u.disable_watch_next="1");b.Rn&&(u.forced_by_var="1");for(var v in u)!Ydl.has(v)&&u[v]&&String(u[v]).length>512&&(g.QB(Error("GVI param too long: "+v)),u[v]="");v=V.nO;g.fO(V)&&(v=xU(v.replace(/\b(?:www|web)([.-])/,"tv$1"))||V.nO);V=g.dt(v+"get_video_info",u);y&&(V=Ppx(V,y));y=V}P=y;e=(c=b.isAd())?1:3;L=0;case 2:if(!(L0)){G.WE(5);break}return g.J(G, +qR(5E3),6);case 6:Y={playerretry:L,playerretrysrc:h},c||(Y.recover="embedded"),Z=cQ(P,Y);case 5:return g.J(G,ajU(b,Z).then(p,N),7);case 7:if(a=G.K)return G.return();L++;G.WE(2);break;case 4:l=c?"auth":"manifest.net.retryexhausted";F=c?2:1;if(!c&&Math.random()<1E-4)try{g.QB(new g.tJ("b/152131571",btoa(P)))}catch(T){}return G.return(Promise.reject(new Mw(l,{backend:"gvi"},F)))}})}; +ajU=function(C,b){function h(q){return N(q.xhr)} +function N(q){if(!C.HE()){q=q?q.status:-1;var f=0,y=((0,g.Ai)()-Y).toFixed();y=p.D("html5_use_network_error_code_enums")?{backend:"gvi",rc:q,rt:y}:{backend:"gvi",rc:""+q,rt:y};var u="manifest.net.connect";q===429?(u="auth",f=2):q>200&&(u="manifest.net.badstatus",q===400&&(f=2));return Promise.reject(new Mw(u,y,f))}} +var p,P,c,e,L,Z,Y,a,l,F,G,V;return g.R(function(q){if(q.j==1){C.fetchType="gvi";p=C.Y();var f={};C.Ew&&(f.ytrext=C.Ew);(e=g.yT(f)?void 0:f)?(P={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:e},c=cQ(b,{action_display_post:1})):(P={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},c=b);L={};p.sendVisitorIdHeader&&C.visitorData&&(L["X-Goog-Visitor-Id"]=C.visitorData);(Z=ds(p.experiments,"debug_sherlog_username"))&&(L["X-Youtube-Sherlog-Username"]=Z);Object.keys(L).length> +0&&(P.headers=L);Y=(0,g.Ai)();return g.J(q,CA(rJ,c,P).then(void 0,h),2)}a=q.K;if(!a||!a.responseText)return q.return(N(a));C.loading=!1;l=gJ(a.responseText);g.Kj(C,l,!0);if(C.errorCode)return F={ec:C.errorCode,ed:C.errorDetail,es:C.fS||""},q.return(Promise.reject(new Mw("auth",F,2)));if(!C.loading&&!UF(C))return G=C.isAd()?"auth":"manifest.net.retryexhausted",V=C.isAd()?2:1,q.return(Promise.reject(new Mw(G,{successButUnplayable:"1"},V)));g.$_(q)})}; +LjV=function(C,b){return new Mw(C?"auth":"manifest.net.retryexhausted",b,C?2:1)}; +YC=function(C,b,h){h=h===void 0?!1:h;var N,p,P,c;g.R(function(e){if(e.j==1){N=C.Y();if(h&&(!g.d_(N)||f6(b)!=="embedded")||b.g2||f6(b)!=="adunit"&&(g.m9(N)||u2(N)||g.KF(N)||g.fO(N)||vR(N)==="WEB_CREATOR"))return e.return();p=g.BI(N,g.X5(b));return p.j?g.J(e,p.j,3):(P=p.getValue(),e.WE(2))}e.j!=2&&(P=e.K);c=P;return e.return(ljK(C,b,c))})}; +ljK=function(C,b,h){var N,p,P,c,e;return g.R(function(L){if(L.j==1){g.z6(L,2);N=k$6(h);var Z=b.Y();g.vj();var Y={context:g.ID(b),videoId:b.videoId,racyCheckOk:b.racyCheckOk,contentCheckOk:b.contentCheckOk,autonavState:"STATE_NONE"};f6(b)==="adunit"&&(Y.isAdPlayback=!0);Z.embedConfig&&(Y.serializedThirdPartyEmbedConfig=Z.embedConfig);Z.XC&&(Y.showContentOwnerOnly=!0);b.FN&&(Y.showShortsOnly=!0);g.D7(0,141)&&(Y.autonavState=g.D7(0,140)?"STATE_OFF":"STATE_ON");if(g.vI(Z)){var a=g.D7(0,65);a=a!=null? +!a:!1;var l=!!g.QJ("yt-player-sticky-caption");Y.captionsRequested=a&&l}var F;if(Z=(F=Z.getWebPlayerContextConfig())==null?void 0:F.encryptedHostFlags)Y.playbackContext={encryptedHostFlags:Z};p=Y;P=g.bg(oC_);C.xt("wn_s");return g.J(L,g.TI(N,p,P),4)}if(L.j!=2)return c=L.K,C.xt("wn_r"),!c||"error"in c&&c.error||(e=c,g.mG(b.Y())&&e.trackingParams&&$l(e.trackingParams),g.Kj(b,{raw_watch_next_response:c},!1)),g.VH(L,0);g.MW(L);g.$_(L)})}; +FjH=function(C){C.xt("vir");C.xt("ps_s");EG("vir",void 0,"video_to_ad");var b=cn_(C);b.then(function(){C.xt("virc");EG("virc",void 0,"video_to_ad");C.xt("ps_r");EG("ps_r",void 0,"video_to_ad")},function(){C.xt("virc"); +EG("virc",void 0,"video_to_ad")}); +return b}; +g.oY=function(C,b,h,N,p,P,c,e,L,Z){L=L===void 0?new g.QK(C):L;Z=Z===void 0?!0:Z;g.cr.call(this);var Y=this;this.If=C;this.playerType=b;this.DJ=h;this.w1=N;this.getVisibilityState=P;this.visibility=c;this.bf=e;this.videoData=L;this.Mh=Z;this.logger=new g.T8("VideoPlayer");this.XA=new $Dx(this.If);this.UG=null;this.fG=new o_;this.f$=null;this.zQ=new mix(this.If,this.w1,this);this.wQ=!0;this.pO=this.Xo=null;this.SZ=[];this.E8=new Zj;this.BL=this.zR=null;this.a_=new Zj;this.OZ=null;this.ow=this.eU=!1; +this.A5=NaN;this.j3=!1;this.playerState=new g.w6;this.KA=[];this.QS=new g.ui;this.rH=new YgH(this);this.mediaElement=null;this.EN=new g.C2(this.Cff,15E3,this);this.SG=this.q4=!1;this.v1=NaN;this.GG=!1;this.Yz=0;this.gq=!1;this.rP=NaN;this.rB=new kC(new Map([["bufferhealth",function(){return dD6(Y.Jk)}], +["bandwidth",function(){return Y.EO()}], +["networkactivity",function(){return Y.If.schedule.nO}], +["livelatency",function(){return Y.isAtLiveHead()&&Y.isPlaying()?G$H(Y):NaN}], +["rawlivelatency",function(){return G$H(Y)}]])); +this.Kx=0;this.loop=!1;this.playbackRate=1;this.Is=0;this.Jk=new UD_(this);this.P0=!1;this.jE=[];this.I3=this.KV=0;this.hf=this.WU=!1;this.IJ=this.U8=0;this.zG=-1;this.YK="";this.yl=new g.C2(this.Oy,0,this);this.JB=!1;this.Ib=this.uf=null;this.uqO=[this.QS,this.yl,this.EN,this.rB];this.D6=this.AA=null;this.ws=function(){var a=Y.CJ();a.provider.If.pK||a.provider.vE.getVisibilityState()===3||(a.provider.If.pK=!0);N4K(a);if(a.K){var l=a.K;l.G&&l.j<0&&l.provider.vE.getVisibilityState()!==3&&WA6(l)}a.qoe&& +(a=a.qoe,a.m6&&a.K<0&&a.provider.If.pK&&zK6(a),a.N&&A2(a));Y.Xo&&aY(Y);Y.If.Hm&&!Y.videoData.backgroundable&&Y.mediaElement&&!Y.r0()&&(Y.isBackground()&&Y.mediaElement.Iu()?(Y.jp("bgmobile",{suspend:1}),Y.Oc(!0,!0)):Y.isBackground()||l_(Y)&&Y.jp("bgmobile",{resume:1}))}; +this.dn={lx:function(a){Y.lx(a)}, +sTi:function(a){Y.UG=a}, +i$6:function(){return Y.AJ}, +XE:function(){return Y.IB}, +Jj:function(){return Y.pO}, +X4E:function(){return Y.mW}, +w4O:function(){return Y.g6}, +FTO:function(){}, +Y:function(){return Y.If}, +Q_:function(){return Y.mediaElement}, +LTi:function(a){Y.SA(a)}, +NgX:function(){return Y.w1}}; +this.logger.debug(function(){return"creating, type "+b}); +this.Zx=new g.WO(function(){return Y.getCurrentTime()},function(){return Y.getPlaybackRate()},function(){return Y.getPlayerState()},function(a,l){a!==g.p8("endcr")||g.B(Y.playerState,32)||Y.DN(); +p(a,l,Y.playerType)},function(a,l){g.sF(Y.videoData)&&Y.jp(a,l)}); +g.D(this,this.Zx);g.D(this,this.Jk);Sdo(this,L);this.videoData.subscribe("dataupdated",this.sD4,this);this.videoData.subscribe("dataloaded",this.KC,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.jp,this);this.videoData.subscribe("ctmpstr",this.tp,this);this.kc();LA1(this.ws);this.visibility.subscribe("visibilitystatechange",this.ws);this.mW=new g.C2(this.iJ,g.Zc(this.If.experiments,"html5_player_att_initial_delay_ms")||4500,this);this.g6= +new g.C2(this.iJ,g.Zc(this.If.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.e2=new g.EL(this)}; +Sdo=function(C,b){if(C.playerType===2||C.If.MW)b.V4=!0;var h=uiH(b.IV,b.d2,C.If.X,C.If.J);h&&(b.adFormat=h);C.playerType===2&&(b.LZ=!0);if(C.isFullscreen()||C.If.X)h=g.QJ("yt-player-autonavstate"),b.autonavState=h||(C.If.X?2:C.videoData.autonavState);b.endSeconds&&b.endSeconds>b.startSeconds&&j1(C,b.endSeconds)}; +$gl=function(C){gOl(C.AJ);g.eD(C.AJ);for(var b=C.IB,h=g.z(b.j.values()),N=h.next();!N.done;N=h.next())gOl(N.value);b.j.clear();g.eD(C.IB)}; +zZH=function(C){var b=C.videoData;FjH(C).then(void 0,function(h){C.videoData!==b||b.HE()||(h=ml(h),h.errorCode==="auth"&&C.videoData.errorDetail?C.u3(h.errorCode,2,unescape(C.videoData.errorReason),VX(h.details),C.videoData.errorDetail,C.videoData.fS||void 0):C.handleError(h))})}; +M16=function(C){if(!g.B(C.playerState,128))if(C.videoData.isLoaded(),C.logger.debug("finished loading playback data"),C.SZ=g.NI(C.videoData.q2),g.oD(C.videoData)){C.DJ.tick("bpd_s");Fs(C).then(function(){C.DJ.tick("bpd_c");if(!C.HE()){C.eU&&(C.WW(hI(hI(C.playerState,512),1)),l_(C));var N=C.videoData;N.endSeconds&&N.endSeconds>N.startSeconds&&j1(C,N.endSeconds);C.E8.finished=!0;G$(C,"dataloaded");C.a_.Ia()&&Hac(C);diV(C.zQ,C.BL)}}); +C.D("html5_log_media_perf_info")&&C.jp("loudness",{v:C.videoData.VX.toFixed(3)},!0);var b,h=(b=C.mediaElement)==null?void 0:b.Rb();h&&"disablePictureInPicture"in h&&C.D("html5_disable_pip_with_standard_api")&&(h.disablePictureInPicture=C.If.VX&&!C.videoData.backgroundable);V1V(C)}else G$(C,"dataloaded")}; +Fs=function(C){S1(C);C.BL=null;var b=HJ1(C.If,C.videoData,C.r0());C.zR=b;C.zR.then(function(h){qdl(C,h)},function(h){C.HE()||(h=ml(h),C.visibility.isBackground()?($C(C,"vp_none_avail"),C.zR=null,C.E8.reset()):(C.E8.finished=!0,C.u3(h.errorCode,h.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",VX(h.details))))}); +return b}; +qdl=function(C,b){if(!C.HE()&&!b.videoData.HE()){C.logger.debug("finished building playback data");C.BL=b;s__(C.Jk,C.BL);if(C.videoData.isLivePlayback){var h=mgK(C.bf.xq,C.videoData.videoId)||C.Xo&&!isNaN(C.Xo.nO);h=C.D("html5_onesie_live")&&h;pa(C)||C.videoData.Yg>0&&!g9(C.videoData)||h||C.seekTo(C.J8(),{Cj:"videoplayer_playbackData",seekSource:18})}if(C.videoData.N.j){if(C.D("html5_sabr_report_missing_url_as_error")&&kKc(C.videoData)){C.handleError(new Mw("fmt.missing",{missabrurl:"1"},2));return}C.Xo? +g.QB(Error("Duplicated Loader")):(h=g.Zc(C.If.experiments,"html5_onesie_defer_content_loader_ms"))&&C.zJ()&&mgK(C.bf.xq,C.videoData.W9)?g.Fu(function(){C.HE()||C.Xo||fjK(C)},h):fjK(C)}else!C.videoData.N.j&&vT(C.videoData)&&C.h5(new h7(C.videoData.videoId||"",4)); +C.z7();Uil(b).then(function(){var N={};C.JN(N);C.If.tZ()&&C.D("html5_log_media_perf_info")&&C.jp("av1Info",N);aY(C)})}}; +Hac=function(C){C.HE();C.logger.debug("try finish readying playback");if(C.a_.finished)C.logger.debug("already finished readying");else if(C.E8.finished)if(g.B(C.playerState,128))C.logger.debug("cannot finish readying because of error");else if(C.SZ.length)C.logger.debug(function(){return"cannot finish readying because of pending preroll: "+C.SZ}); +else if(C.Zx.started||FQ6(C.Zx),C.uN())C.logger.debug("cannot finish readying because cuemanager has pending prerolls");else{C.Xo&&(C.ow=efl(C.Xo.timing));C.a_.finished||(C.a_.finished=!0);var b=C.D("html5_onesie_live")&&C.Xo&&!isNaN(C.Xo.nO);!C.videoData.isLivePlayback||C.videoData.Yg>0&&!g9(C.videoData)||b||pa(C)||(C.logger.debug("seek to head for live"),C.seekTo(Infinity,{Cj:"videoplayer_readying",seekSource:18}),C.isBackground()&&(C.SG=!0));wf_(C.CJ());C.logger.debug("finished readying playback"); +C.publish("playbackready",C);d8("pl_c",C.DJ.timerName)||(C.DJ.tick("pl_c"),EG("pl_c",void 0,"video_to_ad"));d8("pbr",C.DJ.timerName)||(C.DJ.tick("pbr"),EG("pbr",void 0,"video_to_ad"))}else C.logger.debug("playback data not loaded")}; +j1=function(C,b){C.f$&&AnH(C);C.f$=new g.Ny(b*1E3,0x7ffffffffffff);C.f$.namespace="endcr";C.addCueRange(C.f$)}; +AnH=function(C){C.removeCueRange(C.f$);C.f$=null}; +yno=function(C,b,h,N,p){var P=C.CJ(p),c=g.sF(C.videoData)?P.getVideoData():C.videoData;c.K=h;var e=g.z$(C);h=new qgl(c,h,b,e?e.itag:"",N);C.If.experiments.Fo("html5_refactor_sabr_video_format_selection_logging")?(h.videoId=p,C.D6=h):P.Qk(h);p=C.zQ;p.K=0;p.j=0;C.publish("internalvideoformatchange",c,b==="m")}; +g.z$=function(C){var b=HY(C);return Ic(b)||!C.BL?null:g.B$(C.BL.j.videoInfos,function(h){return b.X(h)})}; +HY=function(C){if(C.BL){var b=C.zQ;var h=C.BL;C=C.cC();var N=y7l(b);if(Ic(N)){if(N=fic(b,h).compose(uAW(b,h)).compose(QZK(b,h)).compose(vcS(b,h.videoData)).compose(Dic(b,h.videoData,h)).compose($O(b,h)).compose(ifl(b,h)),Ic(C)||b.D("html5_apply_pbr_cap_for_drm"))N=N.compose(J7W(b,h))}else b.D("html5_perf_cap_override_sticky")&&(N=N.compose($O(b,h))),b.D("html5_ustreamer_cap_override_sticky")&&(N=N.compose(J7W(b,h)));N=N.compose(ifl(b,h));b=h.videoData.RJ.compose(N).compose(h.videoData.Pd).compose(C)}else b= +RQ;return b}; +bjo=function(C){var b=C.zQ;C=C.videoData;var h=vcS(b,C);b.D("html5_disable_client_autonav_cap_for_onesie")||h.compose(Dic(b,C));return h}; +aY=function(C){if(C.videoData.N&&C.videoData.N.j){var b=HY(C);C.Xo&&E6l(C.Xo,b)}}; +rnl=function(C){var b;return!!(C.D("html5_native_audio_track_switching")&&g.$1&&((b=C.videoData.K)==null?0:Ty(b)))}; +iao=function(C){if(!rnl(C))return!1;var b;C=(b=C.mediaElement)==null?void 0:b.audioTracks();return!!(C&&C.length>1)}; +usS=function(C){var b=JnS(C);if(b)return C.videoData.getAvailableAudioTracks().find(function(h){return h.z$.getName()===b})}; +JnS=function(C){var b;if(C=(b=C.mediaElement)==null?void 0:b.audioTracks())for(b=0;b0&&(b.Eq=N.s$)); +b.b5=N.n5;b.Ml=HR(h,{},N.N||void 0,IQ(N));b.kh=B7(N)&&g.KF(h);b.ZF=h.D("html5_catch_errors_for_rollback");x6(N)&&(h.D("html5_sabr_allow_video_keyframe_without_audio")&&(b.lF=!0),h.D("html5_sabr_report_partial_segment_estimated_duration")&&(b.kN=!0),b.j=!0,b.XG=h.D("html5_sabr_enable_utc_seek_requests"),b.Fk=h.D("html5_sabr_enable_live_clock_offset"),b.V7=h.D("html5_disable_client_resume_policy_for_sabr"),b.kY=h.D("html5_trigger_loader_when_idle_network"),b.l6=h.D("html5_sabr_parse_live_metadata_playback_boundaries"), +b.tH=h.D("html5_enable_platform_backpressure_with_sabr"),b.iW=h.D("html5_consume_onesie_next_request_policy_for_sabr"),b.U$=h.D("html5_sabr_report_next_ad_break_time"),b.e4=h.D("html5_log_high_res_buffer_timeline")&&h.tZ(),b.Lw=h.D("html5_remove_stuck_slices_beyond_max_buffer_limits"),b.xN=h.D("html5_gapless_sabr_btl_last_slice")&&Tt(N),b.RX=h.D("html5_reset_last_appended_slice_on_seek")&&Tt(N),g9(N)?(b.FP=!0,b.df=h.D("html5_disable_variability_tracker_for_live"),b.m6=h.D("html5_sabr_use_accurate_slice_info_params"), +h.D("html5_simplified_backup_timeout_sabr_live")&&(b.R0=!0,b.Fy=b.qp)):b.HW=h.D("html5_probe_request_on_sabr_request_progress"),b.u6=h.D("html5_serve_start_seconds_seek_for_post_live_sabr"),b.fK=h.D("html5_flush_index_on_updated_timestamp_offset"),b.Df=h.D("html5_enable_sabr_request_pipelining")&&!g.sF(N),b.Xb=h.D("html5_ignore_partial_segment_from_live_readahead"),b.d2=h.D("html5_use_non_active_broadcast_for_post_live"),b.sX=h.D("html5_use_centralized_player_time"),b.LS=h.D("html5_consume_onesie_sabr_seek"), +b.N2=h.D("html5_enable_sabr_seek_loader_refactor"),b.RJ=h.D("html5_update_segment_start_time_from_media_header"),N.enableServerStitchedDai&&(b.G=!0,b.ju=h.D("html5_reset_server_stitch_state_for_non_sabr_seek"),b.g2=h.D("html5_remove_ssdai_append_pause"),b.Yh=h.D("html5_consume_ssdai_info_with_streaming"),b.RS=h.D("html5_process_all_cuepoints")));b.W=b.j&&h.D("html5_sabr_live");b.sI=g.POW(N);L_(h.G,Zl.BITRATE)&&(b.OX=NaN);if(e=g.Zc(h.experiments,"html5_request_size_max_kb"))b.t4=e*1024;h.G.X?b.Xy= +"; "+Zl.EXPERIMENTAL.name+"=allowed":h.D("html5_enable_cobalt_tunnel_mode")&&(b.Xy="; tunnelmode=true");e=N.serverPlaybackStartConfig;(e==null?0:e.enable)&&(e==null?0:e.playbackStartPolicy)&&(b.RM=!0,Ug(b,e.playbackStartPolicy,2));e=RZK(C);C.fG.removeAll();a:{h=C.bf.xq;if(N=C.videoData.videoId)if(p=h.j.get(N)){h.j.remove(N);h=p;break a}h=void 0}C.Xo=new g.g4(C,C.If.schedule,b,C.videoData.j,C.videoData.N,HY(C),e,C.videoData.enableServerStitchedDai,h,C.videoData.t4);b=C.videoData.D("html5_disable_preload_for_ssdai_with_preroll")&& +C.videoData.isLivePlayback&&C.zJ()?!0:C.eU&&g.m9(C.If)&&C.videoData.isLivePlayback;C.Xo.initialize(C.getCurrentTime(),HY(C),b);C.videoData.probeUrl&&(C.Xo.m6=C.videoData.probeUrl);if(C.SZ.length||C.eU)C.videoData.cotn||VF(C,!1);vO_(C.Jk,C.Xo);C.uf&&(aSU(C.Xo,new g.cO(C.uf)),C.D("html5_check_decorator_on_cuepoint")&&C.jp("sdai",{sdl:1}));C.Ib&&(C.Xo.ya(C.Ib),C.Jk.J=!1);g.d9(C.videoData)&&(C=C.Xo,C.policy.A6=C.policy.fn)}; +S1=function(C){C.Xo&&(C.Xo.dispose(),C.Xo=null,vO_(C.Jk,null));C.v$()?QYU(C):C.yC()}; +QYU=function(C){if(C.pO)if(C.logger.debug("release media source"),C.YE(),C.pO.G)try{C.If.tZ()&&C.jp("rms",{l:"vprms",sr:C.v$(),rs:W6(C.pO)});C.pO.clear();var b;(b=C.mediaElement)!=null&&(b.K=C.pO);C.pO=null}catch(h){b=new g.tJ("Error while clearing Media Source in VideoPlayer: "+h.name+", "+h.message),b=ml(b),C.handleError(b),C.yC()}else C.yC()}; +Ug_=function(C,b){b=b===void 0?!1:b;if(C.pO)return C.pO.N;C.logger.debug("update media source");a:{b=b===void 0?!1:b;try{g.ES()&&C.videoData.YF()&&q8l(C.mediaElement);var h=C.mediaElement.Jj(C.C$(),C.y9())}catch(p){if(G1S(C.rH,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",p);C.u3("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}C.tQ(h,!1,!1,b)}var N;return((N=C.Jj())==null?void 0:N.N)||null}; +XYK=function(C,b){b=b===void 0?!1:b;if(C.Xo){var h=C.getCurrentTime()-C.Z9();C.Xo.seek(h,{vY:b}).jX(function(){})}else fjK(C)}; +sYV=function(C,b,h,N){h=h===void 0?!1:h;N=N===void 0?!1:N;if(C.pO&&(!b||C.pO===b)){C.logger.debug("media source opened");var p=C.getDuration();!p&&g9(C.videoData)&&(p=25200);if(C.pO.isView){var P=p;C.logger.debug(function(){return"Set media source duration to "+P+", video duration "+p}); +P>C.pO.getDuration()&&KjW(C,P)}else KjW(C,p);Dml(C.Xo,C.pO,h,N);C.publish("mediasourceattached")}}; +KjW=function(C,b){if(C.pO){C.pO.zI(b);var h;(h=C.Xo)!=null&&h.policy.sX&&(h.W=b)}}; +tzW=function(C,b){yno(C,b.reason,b.j.info,b.token,b.videoId)}; +OaW=function(C,b){C.If.experiments.Fo("enable_adb_handling_in_sabr")&&(C.pauseVideo(!0),C.bu(),b&&C.u3("sabr.config",1,"BROWSER_OR_EXTENSION_ERROR"))}; +G$=function(C,b){C.publish("internalvideodatachange",b===void 0?"dataupdated":b,C,C.videoData)}; +vCS=function(C){for(var b=g.z("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),h=b.next();!h.done;h=b.next())C.QS.S(C.mediaElement,h.value,C.SA,C);C.If.QH&&C.mediaElement.y$()&&(C.QS.S(C.mediaElement,"webkitplaybacktargetavailabilitychanged",C.Fo$,C),C.QS.S(C.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",C.Lo6,C))}; +dgl=function(C){g.$G(C.A5);Dgl(C)||(C.A5=g.Gu(function(){return Dgl(C)},100))}; +Dgl=function(C){var b=C.mediaElement;b&&C.q4&&!C.videoData.nO&&!d8("vfp",C.DJ.timerName)&&b.qZ()>=2&&!b.isEnded()&&jJ(b.XX())>0&&C.DJ.tick("vfp");return(b=C.mediaElement)&&!C.videoData.nO&&b.getDuration()>0&&(b.isPaused()&&b.qZ()>=2&&jJ(b.XX())>0&&(d8("pbp",C.DJ.timerName)||C.DJ.tick("pbp"),!C.videoData.du||C.j3||b.isSeeking()||(C.j3=!0,C.publish("onPlaybackPauseAtStart"))),b=b.getCurrentTime(),t2(C.XA,b))?(C.sZ(),!0):!1}; +ECc=function(C){C.CJ().PL();if(NF(C.videoData)&&Date.now()>C.Is+6283){if(!(!C.isAtLiveHead()||C.videoData.j&&e$(C.videoData.j))){var b=C.CJ();if(b.qoe){b=b.qoe;var h=b.provider.vE.ED(),N=g.HO(b.provider);Y$l(b,N,h);h=h.N;isNaN(h)||g.mQ(b,N,"e2el",[h.toFixed(3)])}}C.D("html5_alc_live_log_rawlat")?(b=C.videoData,b=g.Mo(b.Y())?!0:g.sa(b.Y())?b.ZT==="6":!1):b=g.Mo(C.If);b&&C.jp("rawlat",{l:La(C.rB,"rawlivelatency").toFixed(3)});C.Is=Date.now()}C.videoData.K&&Ty(C.videoData.K)&&(b=C.uP())&&b.videoHeight!== +C.I3&&(C.I3=b.videoHeight,yno(C,"a",Wj1(C,C.videoData.zi)))}; +Wj1=function(C,b){if(b.j.video.quality==="auto"&&Ty(b.getInfo())&&C.videoData.w9)for(var h=g.z(C.videoData.w9),N=h.next();!N.done;N=h.next())if(N=N.value,N.getHeight()===C.I3&&N.j.video.quality!=="auto")return N.getInfo();return b.getInfo()}; +G$H=function(C){if(!NF(C.videoData))return NaN;var b=0;C.Xo&&C.videoData.j&&(b=g9(C.videoData)?C.Xo.dV.w0()||0:C.videoData.j.q2);return(0,g.Ai)()/1E3-C.vF()-b}; +t1V=function(C){C.mediaElement&&C.mediaElement.r0()&&(C.rP=(0,g.Ai)());C.If.n$?g.Fu(function(){nCl(C)},0):nCl(C)}; +nCl=function(C){var b;if((b=C.pO)==null||!b.iR()){if(C.mediaElement)try{C.OZ=C.mediaElement.playVideo()}catch(N){$C(C,"err."+N)}if(C.OZ){var h=C.OZ;h.then(void 0,function(N){C.logger.debug(function(){return"playMediaElement failed: "+N}); +if(!g.B(C.playerState,4)&&!g.B(C.playerState,256)&&C.OZ===h)if(N&&N.name==="AbortError"&&N.message&&N.message.includes("load"))C.logger.debug(function(){return"ignore play media element failure: "+N.message}); +else{var p="promise";N&&N.name&&(p+=";m."+N.name);$C(C,p);C.P0=!0;C.videoData.Xy=!0}})}}}; +$C=function(C,b){g.B(C.playerState,128)||(C.WW(gP(C.playerState,1028,9)),C.jp("dompaused",{r:b}),C.publish("onAutoplayBlocked"))}; +l_=function(C,b){b=b===void 0?!1:b;if(!C.mediaElement||!C.videoData.N)return!1;var h=b;h=h===void 0?!1:h;var N=null;var p;if((p=C.videoData.N)==null?0:p.j){N=Ug_(C,h);var P;(P=C.Xo)==null||P.resume()}else S1(C),C.videoData.zi&&(N=C.videoData.zi.I7());p=C.mediaElement.Iu();h=!1;p&&p.y8(N)||(TTo(C,N),h=!0);g.B(C.playerState,2)||(N=C.Jk,b=b===void 0?!1:b,N.G||!(N.X>0)||N.mediaElement&&N.mediaElement.getCurrentTime()>0||(b={Cj:"seektimeline_resumeTime",vY:b},N.videoData.nO||(b.seekSource=15),N.seekTo(N.X, +b)));a:{b=h;if(x6(C.videoData)){if(!C.videoData.o$())break a}else if(!g.ZS(C.videoData))break a;if(C.mediaElement)if((N=C.videoData.G)&&C.mediaElement.y$()){p=C.mediaElement.Rb();if(C.UG)if(p!==C.UG.element)Mg(C);else if(b&&N.flavor==="fairplay"&&!nN())Mg(C);else break a;if(C.D("html5_report_error_for_unsupported_tvos_widevine")&&nN()&&N.flavor==="widevine")C.u3("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.unspttvoswidevine");else{C.UG=new hyl(p,C.videoData,C.If);C.UG.subscribe("licenseerror", +C.c_,C);C.UG.subscribe("qualitychange",C.l92,C);C.UG.subscribe("heartbeatparams",C.hD,C);C.UG.subscribe("keystatuseschange",C.lx,C);C.UG.subscribe("ctmp",C.jp,C);C.D("html5_widevine_use_fake_pssh")&&!C.videoData.isLivePlayback&&N.flavor==="widevine"&&C.UG.HO(new bl(BTW,"cenc",!1));b=g.z(C.fG.keys);for(N=b.next();!N.done;N=b.next())N=C.fG.get(N.value),C.UG.HO(N);C.D("html5_eme_loader_sync")||C.fG.removeAll()}}else C.u3("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","drm.1")}return h}; +TTo=function(C,b){C.DJ.tick("vta");EG("vta",void 0,"video_to_ad");C.getCurrentTime()>0&&EOK(C.Jk,C.getCurrentTime());C.mediaElement.activate(b);C.pO&&N$(0,4);!C.videoData.nO&&C.playerState.isOrWillBePlaying()&&C.EN.start();if(rnl(C)){var h;if(b=(h=C.mediaElement)==null?void 0:h.audioTracks())b.onchange=function(){C.publish("internalaudioformatchange",C.videoData,!0)}}}; +Mg=function(C){C.UG&&(C.UG.dispose(),C.UG=null)}; +Ijl=function(C){var b=b===void 0?!1:b;C.logger.debug("reattachVideoSource");C.mediaElement&&(C.pO?(Mg(C),C.yC(),Ug_(C,b)):(C.videoData.zi&&C.videoData.zi.g$(),C.mediaElement.stopVideo()),C.playVideo())}; +xg1=function(C,b){C.If.D("html5_log_rebuffer_reason")&&(b={r:b,lact:Ap()},C.mediaElement&&(b.bh=B6(C.mediaElement)),C.jp("bufreason",b))}; +wY1=function(C,b){if(C.If.tZ()&&C.mediaElement){var h=C.mediaElement.jf();h.omt=(C.mediaElement.getCurrentTime()+C.Z9()).toFixed(3);h.ps=C.playerState.state.toString(16);h.rt=(g.HO(C.CJ().provider)*1E3).toFixed();h.e=b;C.jE[C.KV++%5]=h}try{if(b==="timeupdate"||b==="progress")return}catch(N){}C.logger.debug(function(){return"video element event "+b})}; +CSH=function(C){if(C.If.tZ()){C.jE.sort(function(N,p){return+N.rt-+p.rt}); +for(var b=g.z(C.jE),h=b.next();!h.done;h=b.next())h=h.value,C.jp("vpe",Object.assign({t:h.rt},h));C.jE=[];C.KV=0}}; +bPS=function(C){if(g.dJ("cobalt")&&g.dJ("nintendo switch")){var b=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;C.jp("nxdock",{d:b})}}; +VF=function(C,b){var h;(h=C.Xo)==null||PO(h,b)}; +aiU=function(C,b){return g.sF(C.videoData)&&C.Ib?C.Ib.handleError(b,void 0):!1}; +V1V=function(C){hE(C.videoData,"html5_set_debugging_opt_in")&&(C=g.vj(),g.D7(0,183)||(Wj(183,!0),C.save()))}; +hvo=function(C){return g.sF(C.videoData)&&C.Ib?xL(C.Ib):C.videoData.J8()}; +$F_=function(C,b){C.bf.nf()||(C.jp("sgap",{f:b}),C.bf.clearQueue(!1,b==="pe"))}; +pa=function(C){return C.D("html5_disable_video_player_initiated_seeks")&&x6(C.videoData)}; +NO_=function(C){O_.call(this,C);var b=this;this.events=new g.ui(C);g.D(this,this.events);w9(this.api,"isLifaAdPlaying",function(){return b.api.isLifaAdPlaying()}); +this.events.S(C,"serverstitchedvideochange",function(){b.api.isLifaAdPlaying()?(b.playbackRate=b.api.getPlaybackRate(),b.api.setPlaybackRate(1)):b.api.setPlaybackRate(b.playbackRate)}); +this.playbackRate=1}; +gjx=function(C){O_.call(this,C);var b=this;this.events=new g.ui(C);g.D(this,this.events);w9(this.api,"seekToChapterWithAnimation",function(h){b.seekToChapterWithAnimation(h)}); +w9(this.api,"seekToTimeWithAnimation",function(h,N){b.seekToTimeWithAnimation(h,N)}); +w9(this.api,"renderChapterSeekingAnimation",function(h,N,p){b.api.renderChapterSeekingAnimation(h,N,p)}); +w9(this.api,"setMacroMarkers",function(h){b.setMacroMarkers(C,h)}); +w9(this.api,"changeMarkerVisibility",function(h,N,p){b.changeMarkerVisibility(h,N,p)}); +w9(this.api,"isSameMarkerTypeVisible",function(h){return b.isSameMarkerTypeVisible(h)})}; +pSS=function(C,b,h){var N=C.api.getCurrentTime()*1E30&&p>0&&(h.width+=p,g.Zv(b.element,"width",h.width+"px")));C.size=h}}; +g.Od=function(C,b){var h=C.j[C.j.length-1];h!==b&&(C.j.push(b),iPS(C,h,b))}; +g.vY=function(C){if(!(C.j.length<=1)){var b=C.j.pop(),h=C.j[0];C.j=[h];iPS(C,b,h,!0)}}; +iPS=function(C,b,h,N){JOl(C);b&&(b.unsubscribe("size-change",C.Hg,C),b.unsubscribe("back",C.ql,C));h.subscribe("size-change",C.Hg,C);h.subscribe("back",C.ql,C);if(C.Bb){g.c4(h.element,N?"ytp-panel-animate-back":"ytp-panel-animate-forward");h.Gi(C.element);h.focus();C.element.scrollLeft=0;C.element.scrollTop=0;var p=C.size;rOK(C);g.Hc(C.element,p);C.W=new g.C2(function(){uqW(C,b,h,N)},20,C); +C.W.start()}else h.Gi(C.element),b&&b.detach()}; +uqW=function(C,b,h,N){C.W.dispose();C.W=null;g.c4(C.element,"ytp-popup-animating");N?(g.c4(b.element,"ytp-panel-animate-forward"),g.e6(h.element,"ytp-panel-animate-back")):(g.c4(b.element,"ytp-panel-animate-back"),g.e6(h.element,"ytp-panel-animate-forward"));g.Hc(C.element,C.size);C.J=new g.C2(function(){g.e6(C.element,"ytp-popup-animating");b.detach();g.L2(b.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);C.J.dispose();C.J=null},250,C); +C.J.start()}; +JOl=function(C){C.W&&g.hZ(C.W);C.J&&g.hZ(C.J)}; +Dj=function(C){g.sd.call(this,C,"ytp-shopping-product-menu");this.Zb=new g.Xs(this.Z);g.D(this,this.Zb);this.hide();g.Od(this,this.Zb);g.qC(this.Z,this.element,4)}; +QnK=function(C,b,h){var N,p=b==null?void 0:(N=b.text)==null?void 0:N.simpleText;p&&(h=Rv1(C,h,p,b==null?void 0:b.icon,b==null?void 0:b.secondaryIcon),b.navigationEndpoint&&h.listen("click",function(){C.Z.LO("innertubeCommand",b.navigationEndpoint);C.hide()},C))}; +UKc=function(C,b,h){var N,p=b==null?void 0:(N=b.text)==null?void 0:N.simpleText;p&&Rv1(C,h,p,b==null?void 0:b.icon).listen("click",function(){var P;(b==null?void 0:(P=b.icon)==null?void 0:P.iconType)==="HIDE"?C.Z.publish("featuredproductdismissed"):b.serviceEndpoint&&C.Z.LO("innertubeCommand",b.serviceEndpoint);C.hide()},C)}; +Rv1=function(C,b,h,N,p){b=new g.U_(g.Xz({},[],!1,!!p),b,h);p&&b.updateValue("secondaryIcon",XSK(p));b.setIcon(XSK(N));g.D(C,b);C.Zb.hk(b,!0);return b}; +XSK=function(C){if(!C)return null;switch(C.iconType){case "ACCOUNT_CIRCLE":return{B:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{B:"path",T:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 1c4.96 0 9 4.04 9 9 0 1.42-.34 2.76-.93 3.96-1.53-1.72-3.98-2.89-7.38-3.03A3.99 3.99 0 0016 9c0-2.21-1.79-4-4-4S8 6.79 8 9c0 1.97 1.43 3.6 3.31 3.93-3.4.14-5.85 1.31-7.38 3.03C3.34 14.76 3 13.42 3 12c0-4.96 4.04-9 9-9zM9 9c0-1.65 1.35-3 3-3s3 1.35 3 3-1.35 3-3 3-3-1.35-3-3zm3 12c-3.16 0-5.94-1.64-7.55-4.12C6.01 14.93 8.61 13.9 12 13.9c3.39 0 5.99 1.03 7.55 2.98C17.94 19.36 15.16 21 12 21z", +fill:"#fff"}}]};case "FLAG":return{B:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{B:"path",T:{d:"M13.18 4L13.42 5.2L13.58 6H14.4H19V13H13.82L13.58 11.8L13.42 11H12.6H6V4H13.18ZM14 3H5V21H6V12H12.6L13 14H20V5H14.4L14 3Z",fill:"white"}}]};case "HELP":return HBl();case "HIDE":return{B:"svg",T:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{B:"g",U:[{B:"path",T:{d:"M16.24,9.17L13.41,12l2.83,2.83l-1.41,1.41L12,13.41l-2.83,2.83l-1.41-1.41L10.59,12L7.76,9.17l1.41-1.41L12,10.59 l2.83-2.83L16.24,9.17z M4.93,4.93c-3.91,3.91-3.91,10.24,0,14.14c3.91,3.91,10.24,3.91,14.14,0c3.91-3.91,3.91-10.24,0-14.14 C15.17,1.02,8.83,1.02,4.93,4.93z M18.36,5.64c3.51,3.51,3.51,9.22,0,12.73s-9.22,3.51-12.73,0s-3.51-9.22,0-12.73 C9.15,2.13,14.85,2.13,18.36,5.64z"}}]}]}; +case "OPEN_IN_NEW":return qb()}}; +dT=function(C){QF.call(this,C,!1,!0);this.isCounterfactual=this.K=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.L=!0;this.overflowButton=new g.n({B:"button",J4:["ytp-featured-product-overflow-icon","ytp-button"],T:{"aria-haspopup":"true"}});this.overflowButton.hide();g.D(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.n({B:"img",C:"ytp-suggested-action-badge-img",T:{src:"{{url}}"}}); +this.thumbnailImage.hide();g.D(this,this.thumbnailImage);this.thumbnailIcon=new g.n({B:"div",C:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.D(this,this.thumbnailIcon);this.banner=new g.n({B:"a",C:"ytp-suggested-action-container",U:[this.thumbnailImage,this.thumbnailIcon,{B:"div",C:"ytp-suggested-action-details",U:[{B:"text",C:"ytp-suggested-action-title",BE:"{{title}}"},{B:"text",C:"ytp-suggested-action-subtitle",BE:"{{subtitle}}"},{B:"text",C:"ytp-suggested-action-metadata-text", +BE:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.D(this,this.banner);this.banner.Gi(this.N.element);this.S(this.Z,"videodatachange",this.onVideoDataChange);this.S(this.Z,g.p8("suggested_action_view_model"),this.Hj4);this.S(this.Z,g.PZ("suggested_action_view_model"),this.QVo);this.S(this.overflowButton.element,"click",this.mD);this.S(C,"featuredproductdismissed",this.Ga);this.Z.createServerVe(this.banner.element,this.banner,!0)}; +K2V=function(C){C.isInitialized&&(C.enabled=C.isVisible,C.N2=C.isVisible,RY(C),C.Xw(),C.thumbnailImage.Kj(C.isVisible),C.shouldHideDismissButton||C.dismissButton.Kj(C.isVisible),C.shouldShowOverflowButton&&C.overflowButton.Kj(C.isVisible))}; +WY=function(){dT.apply(this,arguments)}; +snl=function(C){O_.call(this,C);this.j=new WY(this.api);g.D(this,this.j);g.qC(this.api,this.j.element,4)}; +Ed=function(C){O_.call(this,C);var b=this;this.j="";this.N=!0;this.K=this.api.D("html5_enable_audio_track_stickiness_phase_two");var h=new g.ui(C);g.D(this,h);h.S(C,"internalaudioformatchange",function(N,p){OP_(b,N,p)}); +h.S(C,"videoplayerreset",function(){vjl(b)}); +h.S(C,"videodatachange",function(N,p){b.onVideoDataChange(N,p)})}; +OP_=function(C,b,h){if(h){var N="";DKH(C,b)&&(N=b,C.K||(C.j=b),C.api.D("html5_sabr_enable_server_xtag_selection")&&(h=C.api.getVideoData(void 0,!0)))&&(h.n$=b);if(C.K&&N&&dK6(C,N)){var p;Px(Ih(C.api.Y(),(p=C.api.getVideoData())==null?void 0:g.X5(p)),function(P){W2l(C,N,P)})}}}; +vjl=function(C){if(C.j)Ej1(C);else{var b;if(C.K&&((b=Rc())==null?0:b.size)){var h;Px(Ih(C.api.Y(),(h=C.api.getVideoData())==null?void 0:g.X5(h)),function(N){if((N=njx(N))&&dK6(C,N)){var p=C.api.getVideoData(void 0,!0);p&&(p.n$=N)}})}}}; +Ej1=function(C){var b=C.api.getVideoData(void 0,!0);b&&(b.n$=C.j)}; +W2l=function(C,b,h){njx(h)!==b&&(tLc([{settingItemId:na(h),settingOptionValue:{stringValue:b}}]),Px(C.CZ(),function(N){PxS(N,na(h),{stringValue:b})}))}; +TOl=function(C,b){jO(Px(Px(C.CZ(),function(h){return gMc(h,[na(b)])}),function(h){if(h){h=g.z(h); +for(var N=h.next();!N.done;N=h.next()){var p=N.value;N=p.key;p=p.value;N&&p&&tLc([{settingItemId:N,settingOptionValue:p}])}}}),function(){C.N=!0})}; +DKH=function(C,b){C=C.api.getAvailableAudioTracks();C=g.z(C);for(var h=C.next();!h.done;h=C.next())if(h=h.value,h.getLanguageInfo().getId()===b)return h;return null}; +njx=function(C){C=na(C);var b=Rc();C=b?b.get(C):void 0;return C&&C.stringValue?C.stringValue:""}; +na=function(C){var b=(484).toString();C&&(b=(483).toString());return b}; +dK6=function(C,b){var h;return b.split(".")[0]!==""&&((h=C.api.getVideoData())==null?void 0:!Ov(h))}; +tLc=function(C){var b=Rc();b||(b=new Map);C=g.z(C);for(var h=C.next();!h.done;h=C.next())h=h.value,b.set(h.settingItemId,h.settingOptionValue);b=JSON.stringify(Object.fromEntries(b));g.R1("yt-player-user-settings",b,2592E3)}; +g.tn=function(C,b,h,N,p,P,c){g.U_.call(this,g.Xz({"aria-haspopup":"true"}),b,C);this.xg=N;this.L=!1;this.N=null;this.options={};this.K=new g.Xs(h,void 0,C,p,P,c);g.D(this,this.K);this.listen("keydown",this.gw);this.listen("click",this.open)}; +BOo=function(C){if(C.N){var b=C.options[C.N];b.element.getAttribute("aria-checked");b.element.setAttribute("aria-checked","false");C.N=null}}; +Iwc=function(C,b){g.tn.call(this,"Sleep timer",g.Cl.SLEEP_TIMER,C,b);this.Z=C;this.V={};this.W=this.AX("Off");this.J=this.j="";C.D("web_settings_menu_icons")&&this.setIcon({B:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{B:"path",T:{d:"M16.67,4.31C19.3,5.92,21,8.83,21,12c0,4.96-4.04,9-9,9c-2.61,0-5.04-1.12-6.72-3.02C5.52,17.99,5.76,18,6,18 c6.07,0,11-4.93,11-11C17,6.08,16.89,5.18,16.67,4.31 M14.89,2.43C15.59,3.8,16,5.35,16,7c0,5.52-4.48,10-10,10 c-1,0-1.97-0.15-2.89-0.43C4.77,19.79,8.13,22,12,22c5.52,0,10-4.48,10-10C22,7.48,19,3.67,14.89,2.43L14.89,2.43z M12,6H6v1h4.5 L6,10.99v0.05V12h6v-1H7.5L12,7.01V6.98V6L12,6z", +fill:"#fff"}}]});this.X=new g.n({B:"div",J4:["ytp-menuitem-label-wrapper"],U:[{B:"div",BE:"End of video"},{B:"div",J4:["ytp-menuitem-sublabel"],BE:"{{content}}"}]});g.D(this,this.X);this.listen("click",this.onClick);this.S(C,"videodatachange",this.onVideoDataChange);this.S(C,"presentingplayerstatechange",this.l$);this.S(C,"settingsMenuVisibilityChanged",this.PFo);C.createClientVe(this.element,this,218889);this.l$();this.Z.LO("onSleepTimerFeatureAvailable")}; +xKx=function(C){var b="Off 10 15 20 30 45 60".split(" "),h;((h=C.Z.getVideoData())==null?0:h.isLivePlayback)||b.push("End of video");h=C.Z.getPlaylist();var N;h&&((N=h.listId)==null?void 0:N.type)!=="RD"&&b.push("End of playlist");C.GC(g.q_(b,C.AX));C.V=g.FE(b,C.AX,C);b=C.AX("End of video");C.options[b]&&g.QG(C.options[b],C.X)}; +wSV=function(C,b){var h=C.V[b],N=h==="End of video"||h==="End of playlist";h==="Off"&&(C.j="");C.Z.getPlayerState()!==0&&C.Z.getPlayerState()!==5||!N?(C.W=b,g.tn.prototype.GO.call(C,b),C.ra(b),C.Z.LO("onSleepTimerSettingsChanged",h)):C.Z.LO("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"Video has already ended"}}}}})}; +T$=function(C){O_.call(this,C);var b=this;C.addEventListener("settingsMenuInitialized",function(){b.menuItem||(b.menuItem=new Iwc(b.api,b.api.r8()),g.D(b,b.menuItem))}); +C.addEventListener("openSettingsMenuItem",function(h){if(h==="menu_item_sleep_timer"){if(!b.menuItem){var N;(N=b.api.r8())==null||N.mE()}b.menuItem.open()}}); +w9(C,"resetSleepTimerMenuSettings",function(){b.resetSleepTimerMenuSettings()}); +w9(C,"setSleepTimerTimeLeft",function(h){b.setSleepTimerTimeLeft(h)}); +w9(C,"setVideoTimeLeft",function(h){b.setVideoTimeLeft(h)})}; +CV1=function(C){O_.call(this,C);var b=this;this.events=new g.ui(C);g.D(this,this.events);this.events.S(C,"onSnackbarMessage",function(h){switch(h){case 1:h=b.api.getPlayerStateObject(),h.isBuffering()&&g.B(h,8)&&g.B(h,16)&&b.api.LO("innertubeCommand",{openPopupAction:{popup:{notificationActionRenderer:{responseText:{runs:[{text:"Experiencing interruptions?"}]},actionButton:{buttonRenderer:{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:{runs:[{text:"Find out why"}]},navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers", +webPageType:"WEB_PAGE_TYPE_UNKNOWN"}},urlEndpoint:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers",target:"TARGET_NEW_WINDOW"}},loggingDirectives:{clientVeSpec:{uiType:232471}}}},loggingDirectives:{clientVeSpec:{uiType:232470}}}},durationHintMs:5E3,popupType:"TOAST"}})}})}; +g.IY=function(C,b,h,N,p){b=b===void 0?!1:b;N=N===void 0?!1:N;p=p===void 0?!1:p;g.cr.call(this);this.V=p;this.J=!1;this.X=new AJ(this);this.G=this.W=null;this.N=this.K=!1;g.D(this,this.X);this.target=C;this.j=b;this.L=h||C;this.J=N;b&&(g.BE&&this.target.setAttribute("draggable","true"),p||(this.target.style.touchAction="none"));BY(this)}; +xC=function(C){g.rU(C.X,!C.j)}; +BY=function(C){C.G=null;C.W=null;C.S(wT("over"),C.rK);C.S("touchstart",C.xz);C.j&&C.S(wT("down"),C.pbD)}; +bhx=function(C,b){for(var h=0;hp.start&&h>=5;f+=u}G=f.substr(0,4)+" "+f.substr(4,4)+" "+f.substr(8,4)+" "+(f.substr(12,4)+" "+f.substr(16, +4))}else G="";L={video_id_and_cpn:String(b.videoId)+" / "+G,codecs:"",dims_and_frames:"",bandwidth_kbps:L.toFixed(0)+" Kbps",buffer_health_seconds:Y.toFixed(2)+" s",date:""+(new Date).toString(),drm_style:a?"":"display:none",drm:a,debug_info:h,extra_debug_info:"",bandwidth_style:F,network_activity_style:F,network_activity_bytes:Z.toFixed(0)+" KB",shader_info:l,shader_info_style:l?"":"display:none",playback_categories:""};Z=N.clientWidth+"x"+N.clientHeight+(p>1?"*"+p.toFixed(2):"");Y="-";c.totalVideoFrames&& +(Y=(c.droppedVideoFrames||0)+" dropped of "+c.totalVideoFrames);L.dims_and_frames=Z+" / "+Y;C=C.getVolume();c=poW(b);var v;Z=((v=b.X)==null?0:v.audio.j)?"DRC":Math.round(C*c)+"%";v=Math.round(C)+"% / "+Z;C=b.VX.toFixed(1);isFinite(Number(C))&&(v+=" (content loudness "+C+"dB)");L.volume=v;L.resolution=N.videoWidth+"x"+N.videoHeight;if(N=b.K){if(v=N.video)C=v.fps,C>1&&(L.resolution+="@"+C),(C=P.Jb$)&&C.video&&(L.resolution+=" / "+C.video.width+"x"+C.video.height,C.video.fps>1&&(L.resolution+="@"+C.video.fps)), +L.codecs=PVl(N),!b.X||N.audio&&N.video?N.nz&&(L.codecs+=" / "+N.nz+"A"):L.codecs+=" / "+PVl(b.X),v.K||v.primaries?(C=v.K||"unknown",C==="smpte2084"?C+=" (PQ)":C==="arib-std-b67"&&(C+=" (HLG)"),L.color=C+" / "+(v.primaries||"unknown"),L.color_style=""):L.color_style="display:none";if(N.debugInfo)for(L.fmt_debug_info="",N=g.z(N.debugInfo),v=N.next();!v.done;v=N.next())v=v.value,L.fmt_debug_info+=v.label+":"+v.text+" ";L.fmt_debug_info_style=L.fmt_debug_info&&L.fmt_debug_info.length>0?"":"display:none"}N= +b.isLivePlayback;v=b.y_;L.live_mode_style=N||v?"":"display:none";L.live_latency_style=N?"":"display:none";if(v)L.live_mode="Post-Live"+(g9(b)?" Manifestless":"");else if(N){v=La(e,"livelatency");L.live_latency_secs=v.toFixed(2)+"s";N=g9(b)?"Manifestless, ":"";b.Qz&&(N+="Windowed, ");C="Uncertain";if(v>=0&&v<120)if(b.latencyClass&&b.latencyClass!=="UNKNOWN")switch(b.latencyClass){case "NORMAL":C="Optimized for Normal Latency";break;case "LOW":C="Optimized for Low Latency";break;case "ULTRALOW":C="Optimized for Ultra Low Latency"; +break;default:C="Unknown Latency Setting"}else C=b.isLowLatencyLiveStream?"Optimized for Low Latency":"Optimized for Smooth Streaming";N+=C;(v=P.S_E)&&(N+=", seq "+v.sequence);L.live_mode=N}!P.isGapless||Tt(b)&&P.nf||(L.playback_categories+="Gapless ");L.playback_categories_style=L.playback_categories?"":"display:none";L.bandwidth_samples=e1(e,"bandwidth");L.network_activity_samples=e1(e,"networkactivity");L.live_latency_samples=e1(e,"livelatency");L.buffer_health_samples=e1(e,"bufferhealth");P=g.d9(b); +if(b.cotn||P)L.cotn_and_local_media=(b.cotn?b.cotn:"null")+" / "+P;L.cotn_and_local_media_style=L.cotn_and_local_media?"":"display:none";hE(b,"web_player_release_debug")?(L.release_name=bc[47],L.release_style=""):L.release_style="display:none";L.debug_info&&V.length>0&&L.debug_info.length+V.length<=60?L.debug_info+=" "+V:L.extra_debug_info=V;L.extra_debug_info_style=L.extra_debug_info&&L.extra_debug_info.length>0?"":"display:none";return L}; +PVl=function(C){var b=/codecs="([^"]*)"/.exec(C.mimeType);return b&&b[1]?b[1]+" ("+C.itag+")":C.itag}; +PS=function(C,b,h,N,p){g.n.call(this,{B:"div",C:"ytp-horizonchart"});this.J=b;this.sampleCount=h;this.X=N;this.W=p;this.index=0;this.heightPx=-1;this.N=this.K=null;this.j=Math.round(C/h);this.element.style.width=this.j*this.sampleCount+"px";this.element.style.height=this.J+"em"}; +jL=function(C,b){if(C.heightPx===-1){var h=null;try{h=g.CM("CANVAS"),C.K=h.getContext("2d")}catch(e){}if(C.K){var N=C.j*C.sampleCount;C.N=h;C.N.width=N;C.N.style.width=N+"px";C.element.appendChild(C.N)}else for(C.sampleCount=Math.floor(C.sampleCount/4),C.j*=4,h=0;h1?2:1,C.N.height=C.heightPx*h,C.N.style.height= +C.heightPx+"px",C.K.scale(1,h)));b=g.z(b);for(N=b.next();!N.done;N=b.next()){h=C;var p=C.index,P=N.value;for(N=0;N+20&&g.N7(b.N.element);N.classList.add("ytp-timely-actions-overlay");b.N.element.appendChild(N)}); +g.D(this,this.N);g.qC(this.api,this.N.element,4)}; +zWx=function(C){C.timelyActions&&(C.X=C.timelyActions.reduce(function(b,h){if(h.cueRangeId===void 0)return b;b[h.cueRangeId]=0;return b},{}))}; +LP=function(C,b){if(C.timelyActions){C=g.z(C.timelyActions);for(var h=C.next();!h.done;h=C.next())if(h=h.value,h.cueRangeId===b)return h}}; +Hhl=function(C,b){if((C=LP(C,b))&&C.onCueRangeExit)return sr(C.onCueRangeExit)}; +VUS=function(C){if(C.j!==void 0){var b=(b=LP(C,C.j))&&b.onCueRangeEnter?sr(b.onCueRangeEnter):void 0;var h=LP(C,C.j);if(h&&h.additionalTrigger){var N=!1;for(var p=g.z(h.additionalTrigger),P=p.next();!P.done;P=p.next())P=P.value,P.type&&P.args&&C.W[P.type]!==void 0&&(N=N||C.W[P.type](P.args))}else N=!0;b&&N&&(C.api.LO("innertubeCommand",b),C.setTimeout(h),C.X[C.j]!==void 0&&C.X[C.j]++)}}; +Gd1=function(C,b){return C.K===void 0?!1:b.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(b.seekLengthMilliseconds)===5E3?C.K===72:b.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(b.seekLengthMilliseconds)===1E4?C.K===74:b.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(b.seekLengthMilliseconds)===5E3?C.K===71:b.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(b.seekLengthMilliseconds)===1E4?C.K===73:!1}; +Ss1=function(C){if(C=C.getWatchNextResponse()){var b,h;C=(b=C.playerOverlays)==null?void 0:(h=b.playerOverlayRenderer)==null?void 0:h.timelyActionsOverlayViewModel;b=g.d(C,MUW);if(b!=null&&b.timelyActions)return b==null?void 0:b.timelyActions.map(function(N){return g.d(N,qsV)}).filter(function(N){return!!N})}}; +ms1=function(C){O_.call(this,C);var b=this;CX(this.api,"getPlaybackRate",function(){return b.api.getPlaybackRate()}); +CX(this.api,"setPlaybackRate",function(h){typeof h==="number"&&b.api.setPlaybackRate(h)})}; +fAW=function(C){C=C.p9();if(!C)return!1;C=g.PQ(C).exp||"";return C.includes("xpv")||C.includes("xpe")}; +ALl=function(C){C=g.z(g.Zw(C,!0));for(var b=C.next();!b.done;b=C.next())if(fAW(b.value))return!0;return!1}; +yLx=function(C,b){C=g.z(g.Zw(C,!0));for(var h=C.next();!h.done;h=C.next())if(h=h.value,fAW(h)){var N={potc:"1",pot:b};h.url&&(h.url=jX(h.url,N))}}; +rLl=function(C){var b=new pt_,h={},N=(h["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",h);return new Vs(b,C,function(){return N})}; +an=function(C){O_.call(this,C);var b=this;this.useLivingRoomPoToken=!1;this.X=new g.o0;this.DJ=null;this.J=!1;this.N=null;this.G=!1;var h=C.Y().getWebPlayerContextConfig();this.events=new g.ui(C);g.D(this,this.events);this.events.S(C,"spsumpreject",function(N,p,P){b.G=p;N&&b.J&&!b.N&&(b.D("html5_generate_content_po_token")&&P?b.D7(P):b.D("html5_generate_session_po_token")&&ihl(b));b.N||b.api.jp("stp",{s:+b.J,b:+b.G})}); +this.events.S(C,"poTokenVideoBindingChange",function(N){b.D7(N)}); +this.useLivingRoomPoToken=!(h==null||!h.useLivingRoomPoToken);C.addEventListener("csiinitialized",function(){b.DJ=C.FX();var N=(b.D("html5_generate_session_po_token")||b.D("html5_generate_content_po_token"))&&!b.useLivingRoomPoToken;try{if(b.D("html5_use_shared_owl_instance"))JLl(b);else if(N){b.DJ.Jy("pot_isc");b.D("html5_new_wpo_client")||ukK(b);var p=g.Zc(b.api.Y().experiments,"html5_webpo_kaios_defer_timeout_ms");p?(b.D("html5_new_wpo_client")&&(b.K=tF()),g.Fu(function(){Yj(b)},p)):b.D("html5_webpo_idle_priority_job")? +(b.D("html5_new_wpo_client")&&(b.K=tF()),g.wU(g.bf(),function(){Yj(b)})):Yj(b)}}catch(P){P instanceof Error&&g.QB(P)}}); +C.addEventListener("trackListLoaded",this.F8.bind(this));C.OL(this)}; +RWo=function(C){var b=ds(C.experiments,"html5_web_po_request_key");return b?b:g.m9(C)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; +UsS=function(C,b){var h=new nn(b);return Object.assign({},QXS(C,h),{HE:function(){return h.HE()}, +dispose:function(){return void h.dispose()}})}; +lS=function(C,b){if(C.D("html5_webpo_bge_ctmp")){var h,N={hwpo:!!C.j,hwpor:!((h=C.j)==null||!h.isReady())};C.api.jp(b,N)}}; +JLl=function(C){var b,h;g.R(function(N){if(N.j==1)return lS(C,"swpo_i"),C.K=tF(),on(C),g.J(N,ip(),2);if(N.j!=3)return b=N.K,lS(C,"swpo_co"),g.J(N,hMW(b),3);h=N.K;C.j=QXS(C,h);lS(C,"swpo_cc");C.j.ready().then(function(){C.X.resolve();lS(C,"swpo_re")}); +g.Fu(function(){Yj(C);lS(C,"swpo_si")},0); +g.$_(N)})}; +ukK=function(C){var b=C.api.Y(),h=RWo(b),N=rLl(h);b=new I3({G_:h,DZ:N,onEvent:function(p){(p=XHl[p])&&C.DJ.Jy(p)}, +onError:g.QB,QM:$O1(b.experiments),N7:function(){return void C.api.jp("itr",{})}, +BsO:b.experiments.Fo("html5_web_po_disable_remote_logging")||Kqo.includes(g.XX(b.nO)||"")});b.ready().then(function(){return void C.X.resolve()}); +g.D(C,b);C.j=b}; +sXl=function(C){var b=C.api.Y(),h=rLl(RWo(b)),N=h.WR.bind(h);h.WR=function(e){var L;return g.R(function(Z){if(Z.j==1)return g.J(Z,N(e),2);L=Z.K;C.api.jp("itr",{});return Z.return(L)})}; +try{var p=new MB({DZ:h,BV:{maxAttempts:5},ZG:{disable:b.experiments.Fo("html5_web_po_disable_remote_logging")||Kqo.includes(g.XX(b.nO)||""),Ae:$O1(b.experiments),cZ6:C.D("wpo_dis_lfdms")?0:1E3},Jkf:g.QB});var P=UsS(C,{eh:p,DZ:h,onError:g.QB});P.ready().then(function(){return void C.X.resolve()}); +g.D(C,p);g.D(C,P);C.j=P}catch(e){g.QB(e);var c;(c=p)==null||c.dispose()}}; +Yj=function(C){var b=C.api.Y();C.DJ.Jy("pot_ist");C.j?C.j.start():C.D("html5_new_wpo_client")&&sXl(C);C.D("html5_bandaid_attach_content_po_token")||(C.D("html5_generate_session_po_token")&&(on(C),ihl(C)),b=g.Zc(b.experiments,"html5_session_po_token_interval_time_ms")||0,b>0&&(C.W=g.Gu(function(){on(C)},b)),C.J=!0)}; +on=function(C){var b,h,N,p;g.R(function(P){if(!C.D("html5_generate_session_po_token")||C.useLivingRoomPoToken)return P.return();b=C.api.Y();h=g.BC("EOM_VISITOR_DATA")||g.BC("VISITOR_DATA");N=b.BT?b.datasyncId:h;p=ds(b.experiments,"html5_mock_content_binding_for_session_token")||b.livingRoomPoTokenId||N;b.k6=Fq(C,p);g.$_(P)})}; +Fq=function(C,b){if(!C.j)return C.K?C.K(b):"";try{var h=C.j.isReady();C.DJ.Jy(h?"pot_cms":"pot_csms");var N="";N=C.D("html5_web_po_token_disable_caching")?C.j.ZQ({Kf:b}):C.j.ZQ({Kf:b,Ni:{jr:b,Woo:150,Ex:!0,x5:!0}});C.DJ.Jy(h?"pot_cmf":"pot_csmf");if(h){var p;(p=C.N)==null||p.resolve();C.N=null;if(C.G){C.G=!1;var P;(P=C.api.app.i$())==null||P.wF(!1)}}return N}catch(c){return g.QB(c),""}}; +ihl=function(C){C.j&&(C.N=new nI,C.j.ready().then(function(){C.DJ.Jy("pot_if");on(C)}))}; +QXS=function(C,b){C.D("html5_web_po_token_disable_caching")||b.HJ(150);var h=!1;b.Nv().finally(function(){h=!0}); +return{isReady:function(){return h}, +ZQ:function(N){return b.ZQ({Kf:N.Kf,Hs:!0,J2:!0,Ni:N.Ni?{jr:N.Ni.jr,Ex:N.Ni.Ex,x5:N.Ni.x5}:void 0})}, +ready:function(){return g.R(function(N){if(N.j==1)return g.z6(N,2),g.J(N,b.Nv(),4);if(N.j!=2)return g.VH(N,0);g.MW(N);g.$_(N)})}, +start:function(){}}}; +Oho=function(C){O_.call(this,C);var b=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.ui(C);g.D(this,this.events);this.events.S(C,"heartbeatRequest",function(h){if(b.freePreviewUsageDetails.length||b.freePreviewWatchedDuration!==null)h.heartbeatRequestParams||(h.heartbeatRequestParams={}),h.heartbeatRequestParams.unpluggedParams||(h.heartbeatRequestParams.unpluggedParams={}),b.freePreviewUsageDetails.length>0?h.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= +b.freePreviewUsageDetails:h.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+b.freePreviewWatchedDuration}}); +w9(C,"setFreePreviewWatchedDuration",function(h){b.freePreviewWatchedDuration=h}); +w9(C,"setFreePreviewUsageDetails",function(h){b.freePreviewUsageDetails=h})}; +GD=function(C){g.O.call(this);this.features=[];var b=this.j,h=new o8(C),N=new vK(C),p=new An(C),P=new an(C);var c=g.Mo(C.Y())?void 0:new cV(C);var e=new fa(C),L=new eWl(C),Z=new ms1(C),Y=new lu(C);var a=g.Mo(C.Y())?new Oho(C):void 0;var l=C.D("html5_enable_ssap")?new pHo(C):void 0;var F=C.D("web_cinematic_watch_settings")&&(F=C.Y().getWebPlayerContextConfig())!=null&&F.cinematicSettingsAvailable?new NV(C):void 0;var G=new a8(C);var V=C.D("enable_courses_player_overlay_purchase")?new oll(C):void 0; +var q=g.vI(C.Y())?new ZxH(C):void 0;var f=new kq(C);var y=C.Y().X?new Pwc(C):void 0;var u=g.$7(C.Y())?new pxW(C):void 0;var K=C.D("web_player_move_autonav_toggle")&&C.Y().lF?new xGH(C):void 0;var v=g.vI(C.Y())?new gjx(C):void 0;var T=C.D("web_enable_speedmaster")&&g.vI(C.Y())?new hO(C):void 0;var t=C.Y().Xb?void 0:new FqU(C);var go=C.D("report_pml_debug_signal")?new txH(C):void 0;var jV=new F21(C),CW=new Jn(C);var W=C.D("enable_web_player_player_in_bar_feature")&&g.KF(C.Y())?new fwH(C):void 0;var w= +navigator.mediaSession&&window.MediaMetadata&&C.Y().bW?new qg(C):void 0;var H=C.D("html5_enable_drc")&&!C.Y().W?new jK(C):void 0;var E=new dY(C);var v1=g.vI(C.Y())?new snl(C):void 0;var Vj=C.D("html5_enable_d6de4")?new yF(C):void 0;var ad=g.vI(C.Y())&&C.D("web_sleep_timer")?new T$(C):void 0;var fW=g.$7(C.Y())?new cdc(C):void 0;var wo=new Ed(C),pd=new gC(C),Ge=new NO_(C);var m=C.D("enable_sabr_snackbar_message")?new CV1(C):void 0;var A=C.D("web_enable_timely_actions")?new $sl(C):void 0;b.call(this, +h,N,p,P,c,e,L,Z,Y,a,l,F,G,V,q,f,y,u,K,v,T,t,go,jV,CW,W,void 0,w,H,E,void 0,v1,Vj,ad,fW,void 0,wo,pd,Ge,void 0,m,A,new pl(C))}; +SL=function(){this.K=this.j=NaN}; +vd6=function(C,b){this.If=C;this.timerName="";this.N=!1;this.K=NaN;this.X=new SL;this.j=b||null;this.N=!1}; +DsH=function(C,b,h){var N=g.mG(b.Rf)&&!b.Rf.W;if(b.Rf.xs&&(HI(b.Rf)||b.Rf.Qz==="shortspage"||nO(b.Rf)||N)&&!C.N){C.N=!0;C.W=b.clientPlaybackNonce;g.BC("TIMING_ACTION")||Tf("TIMING_ACTION",C.If.csiPageType);C.If.csiServiceName&&Tf("CSI_SERVICE_NAME",C.If.csiServiceName);if(C.j){N=C.j.FX();for(var p=g.z(Object.keys(N)),P=p.next();!P.done;P=p.next())P=P.value,OG(P,N[P],C.timerName);N=g.CN(Kbl)(C.j.Un);g.vs(N,C.timerName);N=C.j;N.K={};N.Un={}}g.vs({playerInfo:{visibilityState:g.CN(XmW)()},playerType:"LATENCY_PLAYER_HTML5"}, +C.timerName);C.G!==b.clientPlaybackNonce||Number.isNaN(C.K)||(d8("_start",C.timerName)?h=g.CN(Q3)("_start",C.timerName)+C.K:g.QB(new g.tJ("attempted to log gapless pbs before CSI timeline started",{cpn:b.clientPlaybackNonce})));h&&!d8("pbs",C.timerName)&&C.tick("pbs",h)}}; +dsH=function(C,b,h,N,p,P,c){C=(C===h?"video":"ad")+"_to_"+(b===h?"video":"ad");if(C!=="video_to_ad"||P!=null&&P.nO){P=C==="ad_to_video"?P:N;h=P==null?void 0:P.Py;var e={};if(N==null?0:N.W)e.cttAuthInfo={token:N.W,videoId:N.videoId};p&&(e.startTime=p);Dd(C,e);var L,Z,Y;N={targetVideoId:(L=N==null?void 0:N.videoId)!=null?L:"empty_video",targetCpn:b,adVideoId:(Z=P==null?void 0:P.videoId)!=null?Z:"empty_video",adClientPlaybackNonce:(Y=h==null?void 0:h.cpn)!=null?Y:P==null?void 0:P.clientPlaybackNonce}; +h&&(N.adBreakType=h.adBreakType,N.adType=h.adType);g.vs(N,C);OG("pbs",c!=null?c:(0,g.Ai)(),C)}}; +zD=function(C){Tfl();tiS();C.timerName=""}; +Wqc=function(C){if(C.j){var b=C.j;b.K={};b.Un={}}C.N=!1;C.G=void 0;C.K=NaN}; +Edl=function(C,b){g.cr.call(this);this.Rf=C;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.j=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.V={};this.K=0;if(C=b.session_data)this.sessionData=hK(C,"&");this.index=Math.max(0,Number(b.index)||0);this.loop=!!b.loop;this.startSeconds=Number(b.startSeconds)||0;this.title=b.playlist_title||"";this.description=b.playlist_description||"";this.author= +b.author||b.playlist_author||"";b.video_id&&(this.items[this.index]=b);if(C=b.api)typeof C==="string"&&C.length===16?b.list="PL"+C:b.playlist=C;if(C=b.list)switch(b.listType){case "user_uploads":this.listId=new Y6("UU","PLAYER_"+C);break;default:var h=b.playlist_length;h&&(this.length=Number(h)||0);this.listId=g.aQ(C);if(C=b.video)this.items=C.slice(0),this.loaded=!0}else if(b.playlist){C=b.playlist.toString().split(",");this.index>0&&(this.items=[]);C=g.z(C);for(h=C.next();!h.done;h=C.next())(h= +h.value)&&this.items.push({video_id:h});this.length=this.items.length;if(C=b.video)this.items=C.slice(0),this.loaded=!0}this.setShuffle(!!b.shuffle);if(C=b.suggestedQuality)this.quality=C;this.V=k6(b,"playlist_");this.N=(b=b.thumbnail_ids)?b.split(","):[]}; +ndU=function(C){return!!(C.playlist||C.list||C.api)}; +tUK=function(C){var b=C.index+1;return b>=C.length?0:b}; +Tzo=function(C){var b=C.index-1;return b<0?C.length-1:b}; +g.HS=function(C,b,h,N){b=b!==void 0?b:C.index;b=C.items&&b in C.items?C.items[C.order[b]]:null;var p=null;b&&(h&&(b.autoplay="1"),N&&(b.autonav="1"),p=new g.QK(C.Rf,b),g.D(C,p),p.wG=!0,p.startSeconds=C.startSeconds||p.clipStart||0,C.listId&&(p.playlistId=C.listId.toString()));return p}; +Bzl=function(C,b){C.index=g.kv(b,0,C.length-1);C.startSeconds=0}; +IAK=function(C,b){if(b.video&&b.video.length){C.title=b.title||"";C.description=b.description;C.views=b.views;C.likes=b.likes;C.dislikes=b.dislikes;C.author=b.author||"";var h=b.loop;h&&(C.loop=h);h=g.HS(C);C.items=[];for(var N=g.z(b.video),p=N.next();!p.done;p=N.next())if(p=p.value)p.video_id=p.encrypted_id,C.items.push(p);C.length=C.items.length;(b=b.index)?C.index=b:C.findIndex(h);C.setShuffle(!1);C.loaded=!0;C.K++;C.j&&C.j()}}; +Csl=function(C,b){var h,N,p,P,c,e,L;return g.R(function(Z){if(Z.j==1){h=g.PN();var Y=C.Y(),a={context:g.ID(C),playbackContext:{contentPlaybackContext:{ancestorOrigins:Y.ancestorOrigins}}},l=Y.getWebPlayerContextConfig();if(l==null?0:l.encryptedHostFlags)a.playbackContext.contentPlaybackContext.encryptedHostFlags=l.encryptedHostFlags;if(l==null?0:l.hideInfo)a.playerParams={showinfo:!1};Y=Y.embedConfig;l=b.docid||b.video_id||b.videoId||b.id;if(!l){l=b.raw_embedded_player_response;if(!l){var F=b.embedded_player_response; +F&&(l=JSON.parse(F))}if(l){var G,V,q,f,y,u;l=((u=g.d((G=l)==null?void 0:(V=G.embedPreview)==null?void 0:(q=V.thumbnailPreviewRenderer)==null?void 0:(f=q.playButton)==null?void 0:(y=f.buttonRenderer)==null?void 0:y.navigationEndpoint,g.dF))==null?void 0:u.videoId)||null}else l=null}G=(G=l)?G:void 0;V=C.playlistId?C.playlistId:b.list;q=b.listType;if(V){var K;q==="user_uploads"?K={username:V}:K={playlistId:V};xsK(Y,G,b,K);a.playlistRequest=K}else b.playlist?(K={templistVideoIds:b.playlist.toString().split(",")}, +xsK(Y,G,b,K),a.playlistRequest=K):G&&(K={videoId:G},Y&&(K.serializedThirdPartyEmbedConfig=Y),a.singleVideoRequest=K);N=a;p=g.bg(wHl);g.z6(Z,2);return g.J(Z,g.TI(h,N,p),4)}if(Z.j!=2)return P=Z.K,c=C.Y(),b.raw_embedded_player_response=P,c.sX=ew(b,g.$7(c)),c.N=c.sX==="EMBEDDED_PLAYER_MODE_PFL",P&&(e=P,e.trackingParams&&$l(e.trackingParams)),Z.return(new g.QK(c,b));L=g.MW(Z);L instanceof Error||(L=Error("b259802748"));g.Ri(L);return Z.return(C)})}; +xsK=function(C,b,h,N){h.index&&(N.playlistIndex=String(Number(h.index)+1));N.videoId=b?b:"";C&&(N.serializedThirdPartyEmbedConfig=C)}; +g.MK=function(C,b){Vi.get(C);Vi.set(C,b)}; +g.qK=function(C){g.cr.call(this);this.loaded=!1;this.player=C}; +bcS=function(){this.K=[];this.j=[]}; +g.Zw=function(C,b){return b?C.j.concat(C.K):C.j}; +g.m2=function(C,b){switch(b.kind){case "asr":hsl(b,C.K);break;default:hsl(b,C.j)}}; +hsl=function(C,b){g.B$(b,function(h){return C.y8(h)})||b.push(C)}; +g.fP=function(C){g.O.call(this);this.h4=C;this.K=new bcS;this.X=null;this.G=[];this.L=[]}; +g.AO=function(C,b,h){g.fP.call(this,C);this.videoData=b;this.audioTrack=h;this.j=null;this.N=!1;this.G=b.i6;this.L=b.hA;this.N=g.AE(b)}; +g.yi=function(C,b){return B9(C.info)?b?C.info.itag===b:!0:!1}; +g.NBK=function(C,b){if(C.j!=null&&g.Mo(b.Y())&&!C.j.isManifestless&&C.j.j.rawcc!=null)return!0;if(!C.yV())return!1;b=!!C.j&&C.j.isManifestless&&Object.values(C.j.j).some(function(h){return g.yi(h,"386")}); +C=!!C.j&&!C.j.isManifestless&&g.rA6(C.j);return b||C}; +g.rO=function(C,b,h,N,p,P){g.fP.call(this,C);this.videoId=h;this.rQ=p;this.eventId=P;this.W={};this.j=null;C=N||g.PQ(b).hl||"";C=C.split("_").join("-");this.N=jX(b,{hl:C})}; +gBo=function(C,b){this.K=C;this.j=b;this.onFailure=void 0}; +pUH=function(C,b){return{GP:C.GP&&b.GP,d9:C.d9&&b.d9,sync:C.sync&&b.sync,streaming:C.streaming&&b.streaming}}; +JO=function(C,b){var h=PsU,N=this;this.path=C;this.N=b;this.X=h;this.capabilities={GP:!!this.N,d9:"WebAssembly"in window,sync:"WebAssembly"in window,streaming:"WebAssembly"in window&&"instantiateStreaming"in WebAssembly&&"compileStreaming"in WebAssembly};this.G=new gBo([{name:"compileStreaming",condition:function(p){return!!N.K&&p.streaming}, +HC:iS.cg("wmcx",function(){return WebAssembly.compileStreaming(fetch(N.path))}), +onFailure:function(){return N.capabilities.streaming=!1}}, +{name:"sync",condition:function(p){return p.sync}, +HC:function(){return Px(j$c(N),iS.cg("wmcs",function(p){return new WebAssembly.Module(p)}))}, +onFailure:function(){return N.capabilities.sync=!1}}, +{name:"async",condition:function(){return!0}, +HC:function(){return Px(j$c(N),iS.cg("wmca",function(p){return WebAssembly.compile(p)}))}, +onFailure:function(){return N.capabilities.d9=!1}}]); +this.W=new gBo([{name:"instantiateStreaming",condition:function(p){return p.d9&&p.streaming&&!N.K&&!N.j}, +HC:function(p,P){return iS.LT("wmix",function(){return WebAssembly.instantiateStreaming(fetch(N.path),P)}).then(function(c){N.j=hd(c.module); +return{instance:c.instance,E1:!1}})}, +onFailure:function(){return N.capabilities.streaming=!1}}, +{name:"sync",condition:function(p){return p.d9&&p.sync}, +HC:function(p,P){return Px(cYW(N,p),iS.cg("wmis",function(c){return{instance:new WebAssembly.Instance(c,P),E1:!1}}))}, +onFailure:function(){return N.capabilities.sync=!1}}, +{name:"async",condition:function(p){return p.d9}, +HC:function(p,P){return Px(Px(cYW(N,p),iS.cg("wmia",function(c){return WebAssembly.instantiate(c,P)})),function(c){return{instance:c, +E1:!1}})}, +onFailure:function(){return N.capabilities.d9=!1}}, +{name:"asmjs",condition:function(p){return p.GP}, +HC:function(p,P){return hd(iS.LT("wmij",function(){return N.N(P)}).then(function(c){return{instance:{exports:c}, +E1:!0}}))}, +onFailure:function(){return N.capabilities.GP=!1}}],function(p,P,c){return N.X(c,p.instance.exports)})}; +LFW=function(C){var b=kX1;return b.instantiate(C?pUH(b.capabilities,C):b.capabilities,new esH)}; +j$c=function(C){if(C.K)return C.K;var b=fetch(C.path).then(function(h){return h.arrayBuffer()}).then(function(h){C.K=hd(h); +return h}).then(void 0,function(h){g.QB(Error("wasm module fetch failure: "+h.message,{cause:h})); +C.K=void 0;throw h;}); +C.K=hd(b);return C.K}; +cYW=function(C,b){if(!b.d9)return NS(Error("wasm unavailable"));if(C.j)return C.j;C.j=jO(Px(C.compile(b),function(h){C.j=hd(h);return h}),function(h){g.QB(Error("wasm module compile failure: "+h.message,{cause:h})); +C.j=void 0;throw h;}); +return C.j}; +Zco=function(){}; +Yb_=function(){var C=this;this.proc_exit=function(){}; +this.fd_write=function(b,h,N){if(!C.exports)return 1;b=new Uint32Array(C.exports.memory.buffer,h,N*2);h=[];for(var p=0;p=11;C=C.api.Y().L&&Dw;return!(!b&&!C)}; +Ch=function(C,b){return!C.api.isInline()&&!IM_(C,mJ(b))&&g.qj(b)}; +BBW=function(C){C.Ay.vA();if(C.Z3&&C.ai)C.ai=!1;else if(!C.api.Y().rO&&!C.p$()){var b=C.api.getPlayerStateObject();g.B(b,2)&&g.G4(C.api)||C.m1(b);!C.api.Y().SC||b.isCued()||g.B(b,1024)?C.L6():C.Xc.isActive()?(C.DK(),C.Xc.stop()):C.Xc.start()}}; +wUU=function(C,b){var h;if((h=C.api.getVideoData())==null?0:h.mutedAutoplay){var N,p;if((N=b.target)==null?0:(p=N.className)==null?0:p.includes("ytp-info-panel"))return!1}return g.qj(b)&&C.api.isMutedByMutedAutoplay()?(C.api.unMute(),C.api.getPresentingPlayerType()===2&&C.api.playVideo(),b=C.api.getPlayerStateObject(),!g.B(b,4)||g.B(b,8)||g.B(b,2)||C.L6(),!0):!1}; +CXK=function(C,b,h){C.api.isFullscreen()?h<1-b&&C.api.toggleFullscreen():h>1+b&&C.api.toggleFullscreen()}; +TBc=function(C){var b=WQ()&&D1()>=67&&!C.api.Y().L;C=C.api.Y().disableOrganicUi;return!g.dJ("tizen")&&!Ey&&!b&&!C}; +bV=function(C,b){b=b===void 0?2:b;g.cr.call(this);this.api=C;this.j=null;this.B7=new AJ(this);g.D(this,this.B7);this.K=pmK;this.B7.S(this.api,"presentingplayerstatechange",this.zH);this.j=this.B7.S(this.api,"progresssync",this.cW);this.MG=b;this.MG===1&&this.cW()}; +g.hL=function(C){g.n.call(this,{B:"div",U:[{B:"div",C:"ytp-bezel-text-wrapper",U:[{B:"div",C:"ytp-bezel-text",BE:"{{title}}"}]},{B:"div",C:"ytp-bezel",T:{role:"status","aria-label":"{{label}}"},U:[{B:"div",C:"ytp-bezel-icon",BE:"{{icon}}"}]}]});this.Z=C;this.K=new g.C2(this.show,10,this);C=this.Z.D("delhi_modern_web_player")?1E3:500;this.j=new g.C2(this.hide,C,this);g.D(this,this.K);g.D(this,this.j);this.hide()}; +gz=function(C,b,h){if(b<=0){h=rK();b="muted";var N=0}else h=h?{B:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{B:"path",xr:!0,T:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{B:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{B:"path",xr:!0,T:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z", +fill:"#fff"}}]},N=Math.floor(b),b=N+"volume";Ns(C,h,b,N+"%")}; +buH=function(C,b){b=b?{B:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{B:"path",xr:!0,C:"ytp-svg-fill",T:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:zOl();var h=C.Z.getPlaybackRate(),N=g.ok("Speed is $RATE",{RATE:String(h)});Ns(C,b,N,h+"x")}; +hRH=function(C,b){b=b?"Subtitles/closed captions on":"Subtitles/closed captions off";Ns(C,bxS(),b)}; +Ns=function(C,b,h,N){N=N===void 0?"":N;C.updateValue("label",h===void 0?"":h);C.updateValue("icon",b);g.NM(C.j);C.K.start();C.updateValue("title",N);g.Zo(C.element,"ytp-bezel-text-hide",!N)}; +NRx=function(C,b){g.n.call(this,{B:"button",J4:["ytp-button","ytp-cards-button"],T:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.$7(C.Y()))},U:[{B:"span",C:"ytp-cards-button-icon-default",U:[{B:"div",C:"ytp-cards-button-icon",U:[C.Y().D("player_new_info_card_format")?MnK():{B:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{B:"path",xr:!0,C:"ytp-svg-fill",T:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]}, +{B:"div",C:"ytp-cards-button-title",BE:"Info"}]},{B:"span",C:"ytp-cards-button-icon-shopping",U:[{B:"div",C:"ytp-cards-button-icon",U:[{B:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{B:"path",C:"ytp-svg-shadow",T:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{B:"path",C:"ytp-svg-fill",T:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z", +"fill-opacity":"1"}},{B:"path",C:"ytp-svg-shadow-fill",T:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{B:"div", +C:"ytp-cards-button-title",BE:"Shopping"}]}]});this.Z=C;this.N=b;this.j=null;this.K=new g.b1(this,250,!0,100);g.D(this,this.K);g.Zo(this.N,"ytp-show-cards-title",g.$7(C.Y()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.f94);this.i4(!0)}; +gFx=function(C,b){g.n.call(this,{B:"div",C:"ytp-cards-teaser",U:[{B:"div",C:"ytp-cards-teaser-box"},{B:"div",C:"ytp-cards-teaser-text",U:C.Y().D("player_new_info_card_format")?[{B:"button",C:"ytp-cards-teaser-info-icon",T:{"aria-label":"Show cards","aria-haspopup":"true"},U:[MnK()]},{B:"span",C:"ytp-cards-teaser-label",BE:"{{text}}"},{B:"button",C:"ytp-cards-teaser-close-button",T:{"aria-label":"Close"},U:[g.zY()]}]:[{B:"span",C:"ytp-cards-teaser-label",BE:"{{text}}"}]}]});var h=this;this.Z=C;this.JL= +b;this.X=new g.b1(this,250,!1,250);this.j=null;this.L=new g.C2(this.LEO,300,this);this.J=new g.C2(this.FEE,2E3,this);this.W=[];this.K=null;this.V=new g.C2(function(){h.element.style.margin="0"},250); +this.onClickCommand=this.N=null;g.D(this,this.X);g.D(this,this.L);g.D(this,this.J);g.D(this,this.V);C.Y().D("player_new_info_card_format")?(g.c4(C.getRootNode(),"ytp-cards-teaser-dismissible"),this.S(this.dO("ytp-cards-teaser-close-button"),"click",this.TH),this.S(this.dO("ytp-cards-teaser-info-icon"),"click",this.fQ),this.S(this.dO("ytp-cards-teaser-label"),"click",this.fQ)):this.listen("click",this.fQ);this.S(b.element,"mouseover",this.f3);this.S(b.element,"mouseout",this.hm);this.S(C,"cardsteasershow", +this.Neh);this.S(C,"cardsteaserhide",this.QV);this.S(C,"cardstatechange",this.x9);this.S(C,"presentingplayerstatechange",this.x9);this.S(C,"appresize",this.d6);this.S(C,"onShowControls",this.d6);this.S(C,"onHideControls",this.uy);this.listen("mouseenter",this.VD)}; +pqW=function(C){g.n.call(this,{B:"button",J4:[ph.BUTTON,ph.TITLE_NOTIFICATIONS],T:{"aria-pressed":"{{pressed}}","aria-label":"{{label}}"},U:[{B:"div",C:ph.TITLE_NOTIFICATIONS_ON,T:{title:"Stop getting notified about every new video","aria-label":"Notify subscriptions"},U:[g.Mb()]},{B:"div",C:ph.TITLE_NOTIFICATIONS_OFF,T:{title:"Get notified about every new video","aria-label":"Notify subscriptions"},U:[{B:"svg",T:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},U:[{B:"path",T:{d:"M18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}]}]}); +this.api=C;this.j=!1;C.createClientVe(this.element,this,36927);this.listen("click",this.onClick,this);this.updateValue("pressed",!1);this.updateValue("label","Get notified about every new video")}; +PXl=function(C,b){C.j=b;C.element.classList.toggle(ph.NOTIFICATIONS_ENABLED,C.j);var h=C.api.getVideoData();h?(b=b?h.Cn:h.lE)?(C=C.api.CZ())?tN(C,b):g.Ri(Error("No innertube service available when updating notification preferences.")):g.Ri(Error("No update preferences command available.")):g.Ri(Error("No video data when updating notification preferences."))}; +cCS=function(C,b,h){var N=N===void 0?800:N;var p=p===void 0?600:p;var P=document.location.protocol;C=Vel(P+"//"+C+"/signin?context=popup","feature",b,"next",P+"//"+location.hostname+"/post_login");j7H(C,h,N,p)}; +j7H=function(C,b,h,N){h=h===void 0?800:h;N=N===void 0?600:N;if(C=g.Ko(window,C,"loginPopup","width="+h+",height="+N+",resizable=yes,scrollbars=yes"))$Qc(function(){b()}),C.moveTo((screen.width-h)/2,(screen.height-N)/2)}; +g.PH=function(C,b,h,N,p,P,c,e,L,Z,Y,a){C=C.charAt(0)+C.substring(1).toLowerCase();h=h.charAt(0)+h.substring(1).toLowerCase();if(b==="0"||b==="-1")b=null;if(N==="0"||N==="-1")N=null;var l=Y.Y(),F=l.userDisplayName&&g.mG(l);g.n.call(this,{B:"div",J4:["ytp-button","ytp-sb"],U:[{B:"div",C:"ytp-sb-subscribe",T:F?{title:g.ok("Subscribe as $USER_NAME",{USER_NAME:l.userDisplayName}),"aria-label":"Subscribe to channel","data-tooltip-image":t9(l),"data-tooltip-opaque":String(g.$7(l)),tabindex:"0",role:"button"}: +{"aria-label":"Subscribe to channel"},U:[{B:"div",C:"ytp-sb-text",U:[{B:"div",C:"ytp-sb-icon"},C]},b?{B:"div",C:"ytp-sb-count",BE:b}:""]},{B:"div",C:"ytp-sb-unsubscribe",T:F?{title:g.ok("Subscribed as $USER_NAME",{USER_NAME:l.userDisplayName}),"aria-label":"Unsubscribe to channel","data-tooltip-image":t9(l),"data-tooltip-opaque":String(g.$7(l)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},U:[{B:"div",C:"ytp-sb-text",U:[{B:"div",C:"ytp-sb-icon"},h]},N?{B:"div",C:"ytp-sb-count", +BE:N}:""]}],T:{"aria-live":"polite"}});var G=this;this.channelId=c;this.Z=Y;this.N=a;var V=this.dO("ytp-sb-subscribe"),q=this.dO("ytp-sb-unsubscribe");P&&g.c4(this.element,"ytp-sb-classic");if(p){e?this.j():this.K();var f=function(){if(l.q2){var u=G.channelId;if(L||Z){var K={c:u};var v;g.MS.isInitialized()&&(v=ScW(K));K=v||"";if(v=Y.getVideoData())if(v=v.subscribeCommand){var T=Y.CZ();T?(tN(T,v,{botguardResponse:K,feature:L}),Y.LO("SUBSCRIBE",u)):g.Ri(Error("No innertube service available when updating subscriptions."))}else g.Ri(Error("No subscribe command in videoData.")); +else g.Ri(Error("No video data available when updating subscription."))}q.focus();q.removeAttribute("aria-hidden");V.setAttribute("aria-hidden","true")}else cCS(g.Ua(G.Z.Y()),"sb_button",G.X)},y=function(){var u=G.channelId; +if(L||Z){var K=Y.getVideoData();tN(Y.CZ(),K.unsubscribeCommand,{feature:L});Y.LO("UNSUBSCRIBE",u)}V.focus();V.removeAttribute("aria-hidden");q.setAttribute("aria-hidden","true")}; +this.S(V,"click",f);this.S(q,"click",y);this.S(V,"keypress",function(u){u.keyCode===13&&f(u)}); +this.S(q,"keypress",function(u){u.keyCode===13&&y(u)}); +this.S(Y,"SUBSCRIBE",this.j);this.S(Y,"UNSUBSCRIBE",this.K);this.N&&F&&(Xo6(Y),lv(Y,V,this),lv(Y,q,this))}else g.c4(V,"ytp-sb-disabled"),g.c4(q,"ytp-sb-disabled")}; +LsK=function(C){g.n.call(this,{B:"div",C:"ytp-title-channel",U:[{B:"div",C:"ytp-title-beacon"},{B:"a",C:"ytp-title-channel-logo",T:{href:"{{channelLink}}",target:C.Y().V,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{B:"div",C:"ytp-title-expanded-overlay",T:{"aria-hidden":"{{flyoutUnfocusable}}"},U:[{B:"div",C:"ytp-title-expanded-heading",U:[{B:"div",C:"ytp-title-expanded-title",U:[{B:"a",BE:"{{expandedTitle}}",T:{href:"{{channelTitleLink}}",target:C.Y().V,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", +tabIndex:"{{channelTitleFocusable}}"}}]},{B:"div",C:"ytp-title-expanded-subtitle",BE:"{{expandedSubtitle}}",T:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var b=this;this.api=C;this.channel=this.dO("ytp-title-channel");this.K=this.dO("ytp-title-channel-logo");this.channelName=this.dO("ytp-title-expanded-title");this.W=this.dO("ytp-title-expanded-overlay");this.N=this.j=this.subscribeButton=null;this.X=!1;C.createClientVe(this.K,this,36925);C.createClientVe(this.channelName,this, +37220);g.$7(this.api.Y())&&kHo(this);this.S(C,"videodatachange",this.l$);this.S(C,"videoplayerreset",this.l$);this.S(this.channelName,"click",function(h){b.api.logClick(b.channelName);g.Ko(window,eR1(b));h.preventDefault()}); +this.S(this.K,"click",this.XWz);this.l$()}; +ZuW=function(C){if(!C.api.Y().Xs){var b=C.api.getVideoData(),h=new g.PH("Subscribe",null,"Subscribed",null,!0,!1,b.w8,b.subscribed,"channel_avatar",null,C.api,!0);C.api.createServerVe(h.element,C);var N;C.api.setTrackingParams(h.element,((N=b.subscribeButtonRenderer)==null?void 0:N.trackingParams)||null);C.S(h.element,"click",function(){C.api.logClick(h.element)}); +C.subscribeButton=h;g.D(C,C.subscribeButton);C.subscribeButton.Gi(C.W);C.subscribeButton.hide();var p=new pqW(C.api);C.j=p;g.D(C,p);p.Gi(C.W);p.hide();C.S(C.api,"SUBSCRIBE",function(){b.Ec&&(p.show(),C.api.logVisibility(p.element,!0))}); +C.S(C.api,"UNSUBSCRIBE",function(){b.Ec&&(p.hide(),C.api.logVisibility(p.element,!1),PXl(p,!1))})}}; +kHo=function(C){var b=C.api.Y();ZuW(C);C.updateValue("flyoutUnfocusable","true");C.updateValue("channelTitleFocusable","-1");C.updateValue("shouldHideExpandedTitleForA11y","true");C.updateValue("shouldHideExpandedSubtitleForA11y","true");b.K||b.CO||(C.S(C.channel,"mouseenter",C.I4),C.S(C.channel,"mouseleave",C.nC),C.S(C.channel,"focusin",C.I4),C.S(C.channel,"focusout",function(h){C.channel.contains(h.relatedTarget)||C.nC()})); +C.N=new g.C2(function(){C.isExpanded()&&(C.api.logVisibility(C.channelName,!1),C.subscribeButton&&(C.subscribeButton.hide(),C.api.logVisibility(C.subscribeButton.element,!1)),C.j&&(C.j.hide(),C.api.logVisibility(C.j.element,!1)),C.channel.classList.remove("ytp-title-expanded"),C.channel.classList.add("ytp-title-show-collapsed"))},500); +g.D(C,C.N);C.S(C.channel,Y51,function(){aF6(C)}); +C.S(C.api,"onHideControls",C.Hu);C.S(C.api,"appresize",C.Hu);C.S(C.api,"fullscreentoggled",C.Hu)}; +aF6=function(C){C.channel.classList.remove("ytp-title-show-collapsed");C.channel.classList.remove("ytp-title-show-expanded")}; +lFH=function(C){var b=C.api.getPlayerSize();return g.$7(C.api.Y())&&b.width>=524}; +eR1=function(C){var b=C.api.Y(),h=C.api.getVideoData(),N=g.Ta(b)+h.ob;g.Tg(h)&&(N="https://music.youtube.com"+h.ob);if(!g.$7(b))return N;b={};g.hR(C.api,"addEmbedsConversionTrackingParams",[b]);return g.dt(N,b)}; +jU=function(C){var b=g.Xz({"aria-haspopup":"true"});g.U_.call(this,b,C);this.listen("keydown",this.j)}; +cH=function(C,b){C.element.setAttribute("aria-haspopup",String(b))}; +oF1=function(C,b){g.n.call(this,{B:"div",C:"ytp-user-info-panel",T:{"aria-label":"User info"},U:C.Y().q2&&!C.D("embeds_web_always_enable_signed_out_state")?[{B:"div",C:"ytp-user-info-panel-icon",BE:"{{icon}}"},{B:"div",C:"ytp-user-info-panel-content",U:[{B:"div",C:"ytp-user-info-panel-info",T:{tabIndex:"{{userInfoFocusable}}",role:"text"},BE:"{{watchingAsUsername}}"},{B:"div",C:"ytp-user-info-panel-info",T:{tabIndex:"{{userInfoFocusable2}}",role:"text"},BE:"{{watchingAsEmail}}"}]}]:[{B:"div",C:"ytp-user-info-panel-icon", +BE:"{{icon}}"},{B:"div",C:"ytp-user-info-panel-content",U:[{B:"div",U:[{B:"text",T:{tabIndex:"{{userInfoFocusable}}"},BE:"Signed out"}]},{B:"div",C:"ytp-user-info-panel-login",U:[{B:"a",T:{tabIndex:"{{userInfoFocusable2}}",role:"button"},BE:C.Y().Xs?"":"Sign in on YouTube"}]}]}]});this.h4=C;this.j=b;C.Y().q2||C.Y().Xs||this.S(this.dO("ytp-user-info-panel-login"),"click",this.AV);this.closeButton=new g.n({B:"button",J4:["ytp-collapse","ytp-button"],T:{title:"Close"},U:[g.yA()]});this.closeButton.Gi(this.element); +g.D(this,this.closeButton);this.S(window,"blur",this.hide);this.S(document,"click",this.eY);this.l$()}; +GHW=function(C,b,h){g.Xs.call(this,C);this.xg=b;this.t8=h;this.getVideoUrl=new jU(6);this.gG=new jU(5);this.CS=new jU(4);this.jf=new jU(3);this.sf=new g.U_(g.Xz({href:"{{href}}",target:this.Z.Y().V},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.U_(g.Xz(),1,"Stats for nerds");this.bS=new g.YY({B:"div",J4:["ytp-copytext","ytp-no-contextmenu"],T:{draggable:"false",tabindex:"1"},BE:"{{text}}"});this.Jt=new Ud(this.Z,this.bS);this.EC=this.UY=null;g.$7(this.Z.Y())&&(this.closeButton= +new g.n({B:"button",J4:["ytp-collapse","ytp-button"],T:{title:"Close"},U:[g.yA()]}),g.D(this,this.closeButton),this.closeButton.Gi(this.element),this.closeButton.listen("click",this.gr,this));g.$7(this.Z.Y())&&(this.v5=new g.U_(g.Xz(),8,"Account"),g.D(this,this.v5),this.hk(this.v5,!0),this.v5.listen("click",this.zUo,this),C.createClientVe(this.v5.element,this.v5,137682));this.Z.Y().ZR&&(this.Fb=new tR("Loop",7),g.D(this,this.Fb),this.hk(this.Fb,!0),this.Fb.listen("click",this.ijf,this),C.createClientVe(this.Fb.element, +this.Fb,28661));g.D(this,this.getVideoUrl);this.hk(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.ckz,this);C.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.D(this,this.gG);this.hk(this.gG,!0);this.gG.listen("click",this.h8D,this);C.createClientVe(this.gG.element,this.gG,28660);g.D(this,this.CS);this.hk(this.CS,!0);this.CS.listen("click",this.rkz,this);C.createClientVe(this.CS.element,this.CS,28658);g.D(this,this.jf);this.hk(this.jf,!0);this.jf.listen("click",this.Mf2, +this);g.D(this,this.sf);this.hk(this.sf,!0);this.sf.listen("click",this.y8X,this);g.D(this,this.showVideoInfo);this.hk(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.T9X,this);g.D(this,this.bS);this.bS.listen("click",this.R8f,this);g.D(this,this.Jt);b=document.queryCommandSupported&&document.queryCommandSupported("copy");n_H("Chromium")>=43&&(b=!0);n_H("Firefox")<=40&&(b=!1);b&&(this.UY=new g.n({B:"textarea",C:"ytp-html5-clipboard",T:{readonly:"",tabindex:"-1"}}),g.D(this,this.UY), +this.UY.Gi(this.element));var N;(N=this.v5)==null||N.setIcon(Aio());var p;(p=this.Fb)==null||p.setIcon({B:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{B:"path",T:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]});this.jf.setIcon({B:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{B:"path",T:{"clip-rule":"evenodd",d:"M20 10V8H17.19C16.74 7.22 16.12 6.54 15.37 6.04L17 4.41L15.59 3L13.42 5.17C13.39 5.16 13.37 5.16 13.34 5.16C13.18 5.12 13.02 5.1 12.85 5.07C12.79 5.06 12.74 5.05 12.68 5.04C12.46 5.02 12.23 5 12 5C11.51 5 11.03 5.07 10.58 5.18L10.6 5.17L8.41 3L7 4.41L8.62 6.04H8.63C7.88 6.54 7.26 7.22 6.81 8H4V10H6.09C6.03 10.33 6 10.66 6 11V12H4V14H6V15C6 15.34 6.04 15.67 6.09 16H4V18H6.81C7.85 19.79 9.78 21 12 21C14.22 21 16.15 19.79 17.19 18H20V16H17.91C17.96 15.67 18 15.34 18 15V14H20V12H18V11C18 10.66 17.96 10.33 17.91 10H20ZM16 15C16 17.21 14.21 19 12 19C9.79 19 8 17.21 8 15V11C8 8.79 9.79 7 12 7C14.21 7 16 8.79 16 11V15ZM10 14H14V16H10V14ZM10 10H14V12H10V10Z", +fill:"white","fill-rule":"evenodd"}}]});this.sf.setIcon(HBl());this.showVideoInfo.setIcon(VnW());this.S(C,"onLoopChange",this.onLoopChange);this.S(C,"videodatachange",this.onVideoDataChange);FsK(this);this.LA(this.Z.getVideoData())}; +kd=function(C,b){var h=!1;if(C.UY){var N=C.UY.element;N.value=b;N.select();try{h=document.execCommand("copy")}catch(p){}}h?C.xg.QV():(C.bS.jh(b,"text"),g.Od(C.xg,C.Jt),wY(C.bS.element),C.UY&&(C.UY=null,FsK(C)));return h}; +FsK=function(C){var b=!!C.UY;g.QG(C.jf,b?"Copy debug info":"Get debug info");cH(C.jf,!b);g.QG(C.CS,b?"Copy embed code":"Get embed code");cH(C.CS,!b);g.QG(C.getVideoUrl,b?"Copy video URL":"Get video URL");cH(C.getVideoUrl,!b);g.QG(C.gG,b?"Copy video URL at current time":"Get video URL at current time");cH(C.gG,!b);C.CS.setIcon(b?S1U():null);C.getVideoUrl.setIcon(b?Hr():null);C.gG.setIcon(b?Hr():null)}; +S5_=function(C){return g.$7(C.Z.Y())?C.v5:C.Fb}; +zR_=function(C,b){g.sd.call(this,C);this.t8=b;this.X=new g.ui(this);this.N2=new g.C2(this.Reo,1E3,this);this.nO=this.N=null;g.D(this,this.X);g.D(this,this.N2);C.createClientVe(this.element,this,28656);g.c4(this.element,"ytp-contextmenu");$fl(this);this.hide()}; +$fl=function(C){g.rU(C.X);var b=C.Z.Y();b.playerStyle==="gvn"||b.K||b.CO||(b=C.Z.Ti(),C.X.S(b,"contextmenu",C.Zjo),C.X.S(b,"touchstart",C.vH,null,!0),C.X.S(b,"touchmove",C.Yn,null,!0),C.X.S(b,"touchend",C.Yn,null,!0))}; +Hu6=function(C){C.Z.isFullscreen()?g.qC(C.Z,C.element,10):C.Gi(JR(C).body)}; +eU=function(C,b,h){h=h===void 0?240:h;g.n.call(this,{B:"button",J4:["ytp-button","ytp-copylink-button"],T:{title:"{{title-attr}}","data-tooltip-opaque":String(g.$7(C.Y()))},U:[{B:"div",C:"ytp-copylink-icon",BE:"{{icon}}"},{B:"div",C:"ytp-copylink-title",BE:"Copy link",T:{"aria-hidden":"true"}}]});this.api=C;this.j=b;this.K=h;this.visible=!1;this.tooltip=this.j.x6();b=C.Y();this.tooltip.element.setAttribute("aria-live","polite");g.Zo(this.element,"ytp-show-copylink-title",g.$7(b));C.createClientVe(this.element, +this,86570);this.listen("click",this.onClick);this.S(C,"videodatachange",this.l$);this.S(C,"videoplayerreset",this.l$);this.S(C,"appresize",this.l$);this.l$();this.addOnDisposeCallback(g.aC(this.tooltip,this.element))}; +VAS=function(C){var b=C.api.Y(),h=C.api.getVideoData(),N=C.api.Ti().getPlayerSize().width;b=b.N;return!!h.videoId&&N>=C.K&&h.Fk&&!g.n6(h)&&!C.api.isEmbedsShortsMode()&&!b}; +MAU=function(C){C.updateValue("icon",GY());if(C.api.Y().K)C.tooltip.gC(C.element,"Link copied to clipboard");else{C.updateValue("title-attr","Link copied to clipboard");C.tooltip.B2();C.tooltip.gC(C.element);var b=C.listen("mouseleave",function(){C.D9(b);C.l$();C.tooltip.sV()})}}; +q5x=function(C,b){return g.R(function(h){if(h.j==1)return g.z6(h,2),g.J(h,navigator.clipboard.writeText(b),4);if(h.j!=2)return h.return(!0);g.MW(h);var N=h.return,p=!1,P=g.CM("TEXTAREA");P.value=b;P.setAttribute("readonly","");var c=C.api.getRootNode();c.appendChild(P);if(Tn){var e=window.getSelection();e.removeAllRanges();var L=document.createRange();L.selectNodeContents(P);e.addRange(L);P.setSelectionRange(0,b.length)}else P.select();try{p=document.execCommand("copy")}catch(Z){}c.removeChild(P); +return N.call(h,p)})}; +Lh=function(C){g.n.call(this,{B:"div",C:"ytp-doubletap-ui-legacy",U:[{B:"div",C:"ytp-doubletap-fast-forward-ve"},{B:"div",C:"ytp-doubletap-rewind-ve"},{B:"div",C:"ytp-doubletap-static-circle",U:[{B:"div",C:"ytp-doubletap-ripple"}]},{B:"div",C:"ytp-doubletap-overlay-a11y"},{B:"div",C:"ytp-doubletap-seek-info-container",U:[{B:"div",C:"ytp-doubletap-arrows-container",U:[{B:"span",C:"ytp-doubletap-base-arrow"},{B:"span",C:"ytp-doubletap-base-arrow"},{B:"span",C:"ytp-doubletap-base-arrow"}]},{B:"div", +C:"ytp-doubletap-tooltip",U:[{B:"div",C:"ytp-seek-icon-text-container",U:[{B:"div",C:"ytp-seek-icon",BE:"{{seekIcon}}"},{B:"div",C:"ytp-chapter-seek-text-legacy",BE:"{{seekText}}"}]},{B:"div",C:"ytp-doubletap-tooltip-label",BE:"{{seekTime}}"}]}]}]});this.Z=C;this.X=new g.C2(this.show,10,this);this.K=new g.C2(this.hide,700,this);this.J=this.N=0;this.KO=this.W=!1;this.j=this.dO("ytp-doubletap-static-circle");g.D(this,this.X);g.D(this,this.K);this.hide();this.L=this.dO("ytp-doubletap-fast-forward-ve"); +this.V=this.dO("ytp-doubletap-rewind-ve");this.Z.createClientVe(this.L,this,28240);this.Z.createClientVe(this.V,this,28239);this.Z.logVisibility(this.L,!0);this.Z.logVisibility(this.V,!0);this.W=C.D("web_show_cumulative_seek_time");this.KO=C.D("web_center_static_circles")}; +ZA=function(C,b,h,N){if(N=N===void 0?null:N){var p=b===-1?C.V.visualElement:C.L.visualElement;N={seekData:N};var P=g.mZ();P&&g.CN(wr)(void 0,P,p,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",N,void 0)}C.N=b===C.J?C.N+h:h;C.J=b;p=C.Z.Ti().getPlayerSize();C.W?C.K.stop():g.NM(C.K);C.X.start();C.element.setAttribute("data-side",b===-1?"back":"forward");g.c4(C.element,"ytp-time-seeking");C.j.style.width="110px";C.j.style.height="110px";N=p.width*.1-15;b===1?C.KO?(C.j.style.right=N+"px",C.j.style.left=""): +(C.j.style.right="",C.j.style.left=p.width*.8-30+"px"):b===-1&&(C.KO?(C.j.style.right="",C.j.style.left=N+"px"):(C.j.style.right="",C.j.style.left=p.width*.1-15+"px"));C.j.style.top=p.height*.5+15+"px";mfS(C,C.W?C.N:h)}; +fFW=function(C,b,h,N){N=N===void 0?null:N;g.NM(C.K);C.X.start();switch(b){case -1:b="back";break;case 1:b="forward";break;default:b=""}C.element.setAttribute("data-side",b);C.j.style.width="0";C.j.style.height="0";g.c4(C.element,"ytp-chapter-seek");C.updateValue("seekText",h);C.updateValue("seekTime","");h=C.dO("ytp-seek-icon");if(N){a:if(N){switch(N){case "PREMIUM_STANDALONE":N={B:"svg",T:{height:"24px",version:"1.1",viewBox:"-2 -2 24 24",width:"24px"},U:[{B:"path",T:{d:"M 0 1.43 C 0 .64 .64 0 1.43 0 L 18.56 0 C 19.35 0 20 .64 20 1.43 L 20 18.56 C 20 19.35 19.35 20 18.56 20 L 1.43 20 C .64 20 0 19.35 0 18.56 Z M 0 1.43 ", +fill:"#c00"}},{B:"path",T:{d:"M 7.88 11.42 L 7.88 15.71 L 5.37 15.71 L 5.37 3.52 L 10.12 3.52 C 11.04 3.52 11.84 3.69 12.54 4.02 C 13.23 4.36 13.76 4.83 14.14 5.45 C 14.51 6.07 14.70 6.77 14.70 7.56 C 14.70 8.75 14.29 9.69 13.48 10.38 C 12.66 11.07 11.53 11.42 10.08 11.42 Z M 7.88 9.38 L 10.12 9.38 C 10.79 9.38 11.30 9.23 11.64 8.91 C 11.99 8.60 12.17 8.16 12.17 7.57 C 12.17 6.98 11.99 6.5 11.64 6.12 C 11.29 5.76 10.80 5.57 10.18 5.56 L 7.88 5.56 Z M 7.88 9.38 ",fill:"#fff","fill-rule":"nonzero"}}]}; +break a;case "PREMIUM_STANDALONE_CAIRO":N={B:"svg",T:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},U:[{B:"rect",T:{fill:"white",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{B:"rect",T:{fill:"url(#ytp-premium-standalone-gradient)",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{B:"path",T:{d:"M12.75 13.02H9.98V11.56H12.75C13.24 11.56 13.63 11.48 13.93 11.33C14.22 11.17 14.44 10.96 14.58 10.68C14.72 10.40 14.79 10.09 14.79 9.73C14.79 9.39 14.72 9.08 14.58 8.78C14.44 8.49 14.22 8.25 13.93 8.07C13.63 7.89 13.24 7.80 12.75 7.80H10.54V17H8.70V6.33H12.75C13.58 6.33 14.28 6.48 14.86 6.77C15.44 7.06 15.88 7.46 16.18 7.97C16.48 8.48 16.64 9.06 16.64 9.71C16.64 10.40 16.48 10.99 16.18 11.49C15.88 11.98 15.44 12.36 14.86 12.62C14.28 12.89 13.58 13.02 12.75 13.02Z", +fill:"white"}},{B:"defs",U:[{B:"linearGradient",T:{gradientUnits:"userSpaceOnUse",id:"ytp-premium-standalone-gradient",x1:"2",x2:"22",y1:"22",y2:"2"},U:[{B:"stop",T:{offset:"0.3","stop-color":"#E1002D"}},{B:"stop",T:{offset:"0.9","stop-color":"#E01378"}}]}]}]};break a}N=void 0}else N=null;C.updateValue("seekIcon",N);h.style.display="inline-block"}else h.style.display="none"}; +mfS=function(C,b){b=g.ok("$TOTAL_SEEK_TIME seconds",{TOTAL_SEEK_TIME:b.toString()});C.updateValue("seekTime",b)}; +ACV=function(C){QF.call(this,C,!1,!0);this.q2=[];this.Yg=[];this.L=!0;this.badge.element.classList.add("ytp-featured-product");this.sX=new g.n({B:"div",C:"ytp-featured-product-open-in-new"});g.D(this,this.sX);this.countdownTimer=new g.n({B:"text",C:"ytp-featured-product-countdown",BE:"{{content}}"});this.countdownTimer.hide();g.D(this,this.countdownTimer);this.K=new g.n({B:"div",C:"ytp-featured-product-trending",U:[{B:"div",C:"ytp-featured-product-trending-icon"},{B:"text",C:"ytp-featured-product-trending-text", +BE:"{{trendingOffer}}"}]});this.K.hide();g.D(this,this.K);this.overflowButton=new g.n({B:"button",J4:["ytp-featured-product-overflow-icon","ytp-button"],T:{"aria-haspopup":"true"}});this.overflowButton.hide();g.D(this,this.overflowButton);this.J=new g.n({B:"text",C:"ytp-featured-product-exclusive-countdown",BE:"{{content}}",T:{id:"exclusiveCountdown","aria-hidden":"true"}});this.J.hide();g.D(this,this.J);this.W=new g.n({B:"div",C:"ytp-featured-product-exclusive-container",T:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"}, +U:[{B:"div",C:"ytp-featured-product-exclusive-badge-container",U:[{B:"div",C:"ytp-featured-product-exclusive-badge",U:[{B:"text",C:"ytp-featured-product-exclusive-badge-text",BE:"{{exclusive}}",T:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.J]});this.W.hide();g.D(this,this.W);this.banner=new g.n({B:"a",C:"ytp-featured-product-container",U:[{B:"div",C:"ytp-featured-product-thumbnail",U:[{B:"img",T:{src:"{{thumbnail}}"}},this.sX]},{B:"div",C:"ytp-featured-product-details",U:[{B:"text",C:"ytp-featured-product-title", +BE:"{{title}}"},this.Z.D("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{B:"div",C:"ytp-featured-product-price-container",T:{"aria-label":"{{priceA11yText}}"},U:[{B:"text",C:"ytp-featured-product-price-when-promotion-text-enabled",BE:"{{price}}",T:{"aria-hidden":"true"}},{B:"text",C:"ytp-featured-product-promotion-text",BE:"{{promotionText}}",T:{"aria-hidden":"true"}}]}:{B:"div",T:{"aria-label":"{{priceA11yText}}"},U:[{B:"text",C:"ytp-featured-product-price",BE:"{{price}}", +T:{"aria-hidden":"true"}},{B:"text",C:"ytp-featured-product-sales-original-price",BE:"{{salesOriginalPrice}}",T:{"aria-hidden":"true"}},{B:"text",C:"ytp-featured-product-price-drop-reference-price",BE:"{{priceDropReferencePrice}}",T:{"aria-hidden":"true"}}]},this.Z.D("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{B:"div",C:"ytp-featured-product-when-promotion-text-enabled",U:[{B:"text",C:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled",BE:"{{affiliateDisclaimer}}"}, +this.K,{B:"text",C:"ytp-featured-product-vendor-when-promotion-text-enabled",BE:"{{vendor}}"}]}:{B:"div",U:[{B:"text",C:"ytp-featured-product-affiliate-disclaimer",BE:"{{affiliateDisclaimer}}"},this.Z.D("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.W:null,this.K,{B:"text",C:"ytp-featured-product-vendor",BE:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.D(this,this.banner);this.banner.Gi(this.N.element);this.S(this.Z,g.p8("featured_product"),this.gJf);this.S(this.Z, +g.PZ("featured_product"),this.qN);this.S(this.Z,"videodatachange",this.onVideoDataChange);this.S(this.overflowButton.element,"click",this.jW);this.S(C,"featuredproductdismissed",this.Ga)}; +yCK=function(C){var b,h;C=(b=C.j)==null?void 0:(h=b.bannerData)==null?void 0:h.itemData;var N,p,P;return(C==null||!C.affiliateDisclaimer)&&(C==null?0:(N=C.exclusivesData)==null?0:N.exclusiveOfferLabelText)&&(C==null?0:(p=C.exclusivesData)==null?0:p.expirationTimestampMs)&&(C==null?0:(P=C.exclusivesData)==null?0:P.exclusiveOfferCountdownText)?!0:!1}; +iu6=function(C){var b,h,N,p,P=(b=C.j)==null?void 0:(h=b.bannerData)==null?void 0:(N=h.itemData)==null?void 0:(p=N.exclusivesData)==null?void 0:p.expirationTimestampMs;b=(Number(P)-Date.now())/1E3;if(b>0){if(b<604800){var c,e,L,Z;h=(c=C.j)==null?void 0:(e=c.bannerData)==null?void 0:(L=e.itemData)==null?void 0:(Z=L.exclusivesData)==null?void 0:Z.exclusiveOfferCountdownText;if(h!==void 0)for(c=Date.now(),e=g.z(h),L=e.next();!L.done;L=e.next())if(L=L.value,L!==void 0&&L.text!==void 0&&(Z=Number(L.textDisplayStartTimestampMs), +!isNaN(Z)&&c>=Z)){L.insertCountdown?(b=L.text.replace(/\$0/,String(eO({seconds:b}))),C.J.jh(b)):C.J.jh(L.text);C.J.show();break}}var Y,a,l,F;C.W.update({exclusive:(Y=C.j)==null?void 0:(a=Y.bannerData)==null?void 0:(l=a.itemData)==null?void 0:(F=l.exclusivesData)==null?void 0:F.exclusiveOfferLabelText});C.W.show();Yd(C);var G;(G=C.AZ)==null||G.start()}else rCS(C)}; +rCS=function(C){var b;(b=C.AZ)==null||b.stop();C.J.hide();C.W.hide();aX(C)}; +JCK=function(C){var b,h,N=(b=C.j)==null?void 0:(h=b.bannerData)==null?void 0:h.itemData;return C.Z.D("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(N==null||!N.priceReplacementText)&&(N==null?0:N.promotionText)?N==null?void 0:N.promotionText.content:null}; +uRo=function(C){var b,h,N=(b=C.j)==null?void 0:(h=b.bannerData)==null?void 0:h.itemData,p,P;if(!(N!=null&&N.priceReplacementText||C.Z.D("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(N==null?0:(p=N.dealsData)==null?0:(P=p.sales)==null?0:P.originalPrice)){var c,e;return N==null?void 0:(c=N.dealsData)==null?void 0:(e=c.sales)==null?void 0:e.originalPrice}return null}; +RRo=function(C){var b,h,N=(b=C.j)==null?void 0:(h=b.bannerData)==null?void 0:h.itemData,p,P,c,e;if(!((N==null?0:N.priceReplacementText)||C.Z.D("web_player_enable_featured_product_banner_promotion_text_on_desktop")||(N==null?0:(p=N.dealsData)==null?0:(P=p.sales)==null?0:P.originalPrice))&&(N==null?0:(c=N.dealsData)==null?0:(e=c.priceDrop)==null?0:e.referencePrice)){var L,Z;return N==null?void 0:(L=N.dealsData)==null?void 0:(Z=L.priceDrop)==null?void 0:Z.referencePrice}return null}; +Q7_=function(C){var b,h,N=(b=C.j)==null?void 0:(h=b.bannerData)==null?void 0:h.itemData;if(N==null?0:N.priceReplacementText)return N==null?void 0:N.priceReplacementText;if((N==null?0:N.promotionText)&&C.Z.D("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var p;return(N==null?void 0:N.price)+" "+(N==null?void 0:(p=N.promotionText)==null?void 0:p.content)}var P,c;if(N==null?0:(P=N.dealsData)==null?0:(c=P.sales)==null?0:c.originalPrice){var e,L;return N==null?void 0:(e=N.dealsData)== +null?void 0:(L=e.sales)==null?void 0:L.salesPriceAccessibilityLabel}var Z,Y;if(N==null?0:(Z=N.dealsData)==null?0:(Y=Z.priceDrop)==null?0:Y.referencePrice){var a,l;return(N==null?void 0:N.price)+" "+(N==null?void 0:(a=N.dealsData)==null?void 0:(l=a.priceDrop)==null?void 0:l.referencePrice)}return N==null?void 0:N.price}; +Uf1=function(C){if(C.Z.D("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var b,h,N;return C.K.Bb?null:(b=C.j)==null?void 0:(h=b.bannerData)==null?void 0:(N=h.itemData)==null?void 0:N.vendorName}var p,P,c,e,L,Z;return C.K.Bb||C.W.Bb||((p=C.j)==null?0:(P=p.bannerData)==null?0:(c=P.itemData)==null?0:c.affiliateDisclaimer)?null:(e=C.j)==null?void 0:(L=e.bannerData)==null?void 0:(Z=L.itemData)==null?void 0:Z.vendorName}; +Ks6=function(C,b){lV(C);if(b){var h=g.nj.getState().entities;h=e_(h,"featuredProductsEntity",b);if(h!=null&&h.productsData){b=[];h=g.z(h.productsData);for(var N=h.next();!N.done;N=h.next()){N=N.value;var p=void 0;if((p=N)!=null&&p.identifier&&N.featuredSegments){C.q2.push(N);var P=void 0;p=g.z((P=N)==null?void 0:P.featuredSegments);for(P=p.next();!P.done;P=p.next()){var c=P.value;P=Xq_(c.startTimeSec);P!==void 0&&(c=Xq_(c.endTimeSec),b.push(new g.Ny(P*1E3,c===void 0?0x7ffffffffffff:c*1E3,{id:N.identifier, +namespace:"featured_product"})))}}}C.Z.A8(b)}}}; +aX=function(C){if(C.trendingOfferEntityKey){var b=g.nj.getState().entities;if(b=e_(b,"trendingOfferEntity",C.trendingOfferEntityKey)){var h,N,p;b.encodedSkuId!==((h=C.j)==null?void 0:(N=h.bannerData)==null?void 0:(p=N.itemData)==null?void 0:p.encodedOfferSkuId)?Yd(C):(C.K.update({trendingOffer:b.shortLabel+" \u2022 "+b.countLabel}),C.K.show(),C.banner.update({vendor:Uf1(C)}))}else Yd(C)}else Yd(C)}; +Yd=function(C){C.K.hide();C.banner.update({vendor:Uf1(C)})}; +lV=function(C){C.q2=[];C.qN();C.Z.Sh("featured_product")}; +s7o=function(C){var b,h,N,p,P=(b=C.j)==null?void 0:(h=b.bannerData)==null?void 0:(N=h.itemData)==null?void 0:(p=N.hiddenProductOptions)==null?void 0:p.dropTimestampMs;b=(Number(P)-Date.now())/1E3;C.countdownTimer.jh(eO({seconds:b}));if(b>0){var c;(c=C.SC)==null||c.start()}}; +Ouo=function(C){var b;(b=C.SC)==null||b.stop();C.countdownTimer.hide()}; +Xq_=function(C){if(C!==void 0&&C.trim()!==""&&(C=Math.trunc(Number(C.trim())),!(isNaN(C)||C<0)))return C}; +EF6=function(C,b,h){g.n.call(this,{B:"div",J4:["ytp-info-panel-action-item"],U:[{B:"div",C:"ytp-info-panel-action-item-disclaimer",BE:"{{disclaimer}}"},{B:"a",J4:["ytp-info-panel-action-item-button","ytp-button"],T:{role:"button",href:"{{url}}",target:"_blank",rel:"noopener"},U:[{B:"div",C:"ytp-info-panel-action-item-icon",BE:"{{icon}}"},{B:"div",C:"ytp-info-panel-action-item-label",BE:"{{label}}"}]}]});this.Z=C;this.j=h;this.disclaimer=this.dO("ytp-info-panel-action-item-disclaimer");this.button= +this.dO("ytp-info-panel-action-item-button");this.bF=!1;this.Z.createServerVe(this.element,this,!0);this.listen("click",this.onClick);C="";h=g.d(b==null?void 0:b.onTap,Xt);var N=g.d(h,g.UY);this.bF=!1;N?(C=N.url||"",C.startsWith("//")&&(C="https:"+C),this.bF=!0,g.Re(this.button,g.JQ(C))):(N=g.d(h,vFU))&&!this.j?((C=N.phoneNumbers)&&C.length>0?(C="sms:"+C[0],N.messageText&&(C+="?&body="+encodeURI(N.messageText))):C="",this.bF=!0,g.Re(this.button,g.JQ(C,[DfS]))):(h=g.d(h,df_))&&!this.j&&(C=h.phoneNumber? +"tel:"+h.phoneNumber:"",this.bF=!0,g.Re(this.button,g.JQ(C,[WsS])));var p;if(h=(p=b.disclaimerText)==null?void 0:p.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var P;this.update({label:(P=b.bodyText)==null?void 0:P.content,icon:qb(),disclaimer:h})}else{this.disclaimer.style.display="none";var c;this.update({label:(c=b.bodyText)==null?void 0:c.content,icon:qb()})}this.Z.setTrackingParams(this.element,b.trackingParams||null);this.bF&&(this.K={externalLinkData:{url:C}})}; +nFS=function(C,b){var h=kY();g.iv.call(this,C,{B:"div",C:"ytp-info-panel-detail-skrim",U:[{B:"div",C:"ytp-info-panel-detail",T:{role:"dialog",id:h},U:[{B:"div",C:"ytp-info-panel-detail-header",U:[{B:"div",C:"ytp-info-panel-detail-title",BE:"{{title}}"},{B:"button",J4:["ytp-info-panel-detail-close","ytp-button"],T:{"aria-label":"Close"},U:[g.zY()]}]},{B:"div",C:"ytp-info-panel-detail-body",BE:"{{body}}"},{B:"div",C:"ytp-info-panel-detail-items"}]}]},250);this.j=b;this.items=this.dO("ytp-info-panel-detail-items"); +this.N=new g.ui(this);this.itemData=[];this.X=h;this.S(this.dO("ytp-info-panel-detail-close"),"click",this.QV);this.S(this.dO("ytp-info-panel-detail-skrim"),"click",this.QV);this.S(this.dO("ytp-info-panel-detail"),"click",function(N){N.stopPropagation()}); +g.D(this,this.N);this.Z.createServerVe(this.element,this,!0);this.S(C,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",C.getVideoData());this.hide()}; +tAl=function(C,b){C=g.z(C.itemData);for(var h=C.next();!h.done;h=C.next())h=h.value,h.Z.logVisibility(h.element,b)}; +IFl=function(C,b){g.n.call(this,{B:"div",C:"ytp-info-panel-preview",T:{"aria-live":"assertive","aria-atomic":"true","aria-owns":b.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.$7(C.Y()))},U:[{B:"div",C:"ytp-info-panel-preview-text",BE:"{{text}}"},{B:"div",C:"ytp-info-panel-preview-chevron",BE:"{{chevron}}"}]});var h=this;this.Z=C;this.TM=this.j=this.videoId=null;this.X=this.showControls=this.K=!1;this.S(this.element,"click",function(){C.logClick(h.element);C.p$();uv(b)}); +this.N=new g.b1(this,250,!1,100);g.D(this,this.N);this.Z.createServerVe(this.element,this,!0);this.S(C,"videodatachange",this.onVideoDataChange);this.S(C,"presentingplayerstatechange",this.XR);this.S(this.Z,"paidcontentoverlayvisibilitychange",this.Bt);this.S(this.Z,"infopaneldetailvisibilitychange",this.Bt);var N=C.getVideoData()||{};TRW(N)&&BRW(this,N);this.S(C,"onShowControls",this.ND);this.S(C,"onHideControls",this.KF)}; +BRW=function(C,b){if(!b.Dj||!C.Z.uN()){var h=b.Hp||1E4,N=TRW(b);C.j?b.videoId&&b.videoId!==C.videoId&&(g.NM(C.j),C.videoId=b.videoId,N?(xfS(C,h,b),C.mE()):(C.QV(),C.j.dispose(),C.j=null)):N&&(b.videoId&&(C.videoId=b.videoId),xfS(C,h,b),C.mE())}}; +TRW=function(C){var b,h,N,p;return!!((b=C.Fy)==null?0:(h=b.title)==null?0:h.content)||!!((N=C.Fy)==null?0:(p=N.bodyText)==null?0:p.content)}; +xfS=function(C,b,h){C.j&&C.j.dispose();C.j=new g.C2(C.zp4,b,C);g.D(C,C.j);var N;b=((N=h.Fy)==null?void 0:N.trackingParams)||null;C.Z.setTrackingParams(C.element,b);var p;var P,c;if(h==null?0:(P=h.Fy)==null?0:(c=P.title)==null?0:c.content){var e;N=(p=h.Fy)==null?void 0:(e=p.title)==null?void 0:e.content;var L,Z;if((L=h.Fy)==null?0:(Z=L.bodyText)==null?0:Z.content)N+=" \u2022 ";p=N}else p="";var Y,a;h=((Y=h.Fy)==null?void 0:(a=Y.bodyText)==null?void 0:a.content)||"";C.update({text:p+h,chevron:g.$Y()})}; +wqc=function(C,b){C.j&&(g.B(b,8)?(C.K=!0,C.mE(),C.j.start()):(g.B(b,2)||g.B(b,64))&&C.videoId&&(C.videoId=null))}; +oX=function(C){var b=null;try{b=C.toLocaleString("en",{style:"percent"})}catch(h){b=C.toLocaleString(void 0,{style:"percent"})}return b}; +Fk=function(C,b){var h=0;C=g.z(C);for(var N=C.next();!(N.done||N.value.startTime>b);N=C.next())h++;return h===0?h:h-1}; +CQl=function(C,b){for(var h=0,N=g.z(C),p=N.next();!p.done;p=N.next()){p=p.value;if(b=p.timeRangeStartMillis&&b0?b[0]:null;var h=g.Ei("ytp-chrome-bottom"),N=g.Ei("ytp-ad-module");C.X=!(h==null||!h.contains(b));C.L=!(N==null||!N.contains(b));C.V=!(b==null||!b.hasAttribute("data-tooltip-target-fixed"));return b}; +Fc6=function(C,b,h){if(!C.W){if(b){C.tooltipRenderer=b;b=C.tooltipRenderer.text;var N=!1,p;(b==null?0:(p=b.runs)==null?0:p.length)&&b.runs[0].text&&(C.update({title:b.runs[0].text.toString()}),N=!0);g.MT(C.title,N);b=C.tooltipRenderer.detailsText;p=!1;var P;if((b==null?0:(P=b.runs)==null?0:P.length)&&b.runs[0].text){N=b.runs[0].text.toString();P=N.indexOf("$TARGET_ICON");if(P>-1)if(C.tooltipRenderer.targetId){b=[];N=N.split("$TARGET_ICON");var c=new g.ev({B:"span",C:"ytp-promotooltip-details-icon", +U:[l4H[C.tooltipRenderer.targetId]]});g.D(C,c);for(var e=[],L=g.z(N),Z=L.next();!Z.done;Z=L.next())Z=new g.ev({B:"span",C:"ytp-promotooltip-details-component",BE:Z.value}),g.D(C,Z),e.push(Z);N.length===2?(b.push(e[0].element),b.push(c.element),b.push(e[1].element)):N.length===1&&(P===0?(b.push(c.element),b.push(e[0].element)):(b.push(e[0].element),b.push(c.element)));P=b.length?b:null}else P=null;else P=N;if(P){if(typeof P!=="string")for(g.N7(C.details),p=g.z(P),P=p.next();!P.done;P=p.next())C.details.appendChild(P.value); +else C.update({details:P});p=!0}}g.MT(C.details,p);p=C.tooltipRenderer.acceptButton;P=!1;var Y,a,l;((Y=g.d(p,g.yM))==null?0:(a=Y.text)==null?0:(l=a.runs)==null?0:l.length)&&g.d(p,g.yM).text.runs[0].text&&(C.update({acceptButtonText:g.d(p,g.yM).text.runs[0].text.toString()}),P=!0);g.MT(C.acceptButton,P);Y=C.tooltipRenderer.dismissButton;a=!1;var F,G,V;((F=g.d(Y,g.yM))==null?0:(G=F.text)==null?0:(V=G.runs)==null?0:V.length)&&g.d(Y,g.yM).text.runs[0].text&&(C.update({dismissButtonText:g.d(Y,g.yM).text.runs[0].text.toString()}), +a=!0);g.MT(C.dismissButton,a)}h&&(C.N=h);C.j=a4H(C);C.J=!1;C.Z.Y().D("web_player_hide_nitrate_promo_tooltip")||C.Kj(!0);o$V(C);C.Bb&&!C.KO&&(C.KO=!0,C.dn.fH(0));C.K&&C.Z.logVisibility(C.element,C.Bb)}}; +Ms=function(C){C.Kj(!1);C.K&&C.Z.logVisibility(C.element,C.Bb)}; +Grx=function(C){var b,h,N,p=((b=g.d(C.acceptButton,g.yM))==null?void 0:(h=b.text)==null?void 0:(N=h.runs)==null?void 0:N.length)&&!!g.d(C.acceptButton,g.yM).text.runs[0].text,P,c,e;b=((P=g.d(C.dismissButton,g.yM))==null?void 0:(c=P.text)==null?void 0:(e=c.runs)==null?void 0:e.length)&&!!g.d(C.dismissButton,g.yM).text.runs[0].text;return p||b}; +o$V=function(C){var b;if(!(b=!C.j)){b=C.j;var h=window.getComputedStyle(b);b=h.display==="none"||h.visibility==="hidden"||b.getAttribute("aria-hidden")==="true"}if(b||C.Z.isMinimized())C.Kj(!1);else if(b=g.Vx(C.j),b.width&&b.height){C.Z.AM(C.element,C.j);var N=C.Z.Ti().getPlayerSize().height;h=g.Vx(C.dO("ytp-promotooltip-container")).height;C.X?C.element.style.top=N-h-b.height-12+"px":C.V||(N=C.Z.f2().height-h-b.height-12,C.element.style.top=N+"px");N=C.dO("ytp-promotooltip-pointer");var p=g.zV(C.j, +C.Z.getRootNode()),P=Number(C.element.style.left.replace(/[^\d\.]/g,""));C=C.Z.isFullscreen()?18:12;N.style.left=p.x-P+b.width/2-C+"px";N.style.top=h+"px"}else C.Kj(!1)}; +qs=function(C){g.n.call(this,{B:"button",J4:["ytp-replay-button","ytp-button"],T:{title:"Replay"},U:[g.ft()]});this.Z=C;this.S(C,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.TE(C.getPlayerStateObject());lv(this.Z,this.element,this)}; +mq=function(C,b){b=b===void 0?240:b;g.n.call(this,{B:"button",J4:["ytp-button","ytp-search-button"],T:{title:"Search","data-tooltip-opaque":String(g.$7(C.Y()))},U:[{B:"div",C:"ytp-search-icon",BE:"{{icon}}"},{B:"div",C:"ytp-search-title",BE:"Search"}]});this.api=C;this.K=b;this.visible=!1;this.updateValue("icon",{B:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},U:[{B:"path",C:"ytp-svg-fill",T:{d:"M21.24,19.83l-5.64-5.64C16.48,13.02,17,11.57,17,10c0-3.87-3.13-7-7-7s-7,3.13-7,7c0,3.87,3.13,7,7,7 c1.57,0,3.02-0.52,4.19-1.4l5.64,5.64L21.24,19.83z M5,10c0-2.76,2.24-5,5-5s5,2.24,5,5c0,2.76-2.24,5-5,5S5,12.76,5,10z"}}]}); +C.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.j();this.S(C,"appresize",this.j);this.S(C,"videodatachange",this.j);lv(C,this.element,this)}; +g.fh=function(C,b,h,N){N=N===void 0?240:N;g.n.call(this,{B:"button",J4:["ytp-button","ytp-share-button"],T:{title:"Share","aria-haspopup":"true","aria-owns":h.element.id,"data-tooltip-opaque":String(g.$7(C.Y()))},U:[{B:"div",C:"ytp-share-icon",BE:"{{icon}}"},{B:"div",C:"ytp-share-title",BE:"Share"}]});this.api=C;this.j=b;this.N=h;this.X=N;this.K=this.visible=!1;this.tooltip=this.j.x6();C.createClientVe(this.element,this,28664);this.listen("click",this.onClick);this.S(C,"videodatachange",this.l$); +this.S(C,"videoplayerreset",this.l$);this.S(C,"appresize",this.l$);this.S(C,"presentingplayerstatechange",this.l$);this.l$();this.addOnDisposeCallback(g.aC(this.tooltip,this.element))}; +SfH=function(C){var b=C.api.Y(),h=C.api.getVideoData(),N=g.$7(b)&&g.z4(C.api)&&g.B(C.api.getPlayerStateObject(),128);b=b.N||b.disableSharing&&C.api.getPresentingPlayerType()!==2||!h.showShareButton||h.Fk||N||g.n6(h)||C.K;N=C.api.Ti().getPlayerSize().width;return!!h.videoId&&N>=C.X&&!b}; +$qV=function(C,b){b.name!=="InvalidStateError"&&b.name!=="AbortError"&&(b.name==="NotAllowedError"?(C.j.p$(),uv(C.N,C.element,!1)):g.Ri(b))}; +Hzl=function(C,b){var h=kY(),N=C.Y();h={B:"div",C:"ytp-share-panel",T:{id:kY(),role:"dialog","aria-labelledby":h},U:[{B:"div",C:"ytp-share-panel-inner-content",U:[{B:"div",C:"ytp-share-panel-title",T:{id:h},BE:"Share"},{B:"a",J4:["ytp-share-panel-link","ytp-no-contextmenu"],T:{href:"{{link}}",target:N.V,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},BE:"{{linkText}}"},{B:"label",C:"ytp-share-panel-include-playlist",U:[{B:"input",C:"ytp-share-panel-include-playlist-checkbox",T:{type:"checkbox", +checked:"true"}},"Include playlist"]},{B:"div",C:"ytp-share-panel-loading-spinner",U:[xz()]},{B:"div",C:"ytp-share-panel-service-buttons",BE:"{{buttons}}"},{B:"div",C:"ytp-share-panel-error",BE:"An error occurred while retrieving sharing information. Please try again later."}]},{B:"button",J4:["ytp-share-panel-close","ytp-button"],T:{title:"Close"},U:[g.zY()]}]};g.iv.call(this,C,h,250);var p=this;this.moreButton=null;this.api=C;this.tooltip=b.x6();this.N=[];this.W=this.dO("ytp-share-panel-inner-content"); +this.closeButton=this.dO("ytp-share-panel-close");this.S(this.closeButton,"click",this.QV);this.addOnDisposeCallback(g.aC(this.tooltip,this.closeButton));this.X=this.dO("ytp-share-panel-include-playlist-checkbox");this.S(this.X,"click",this.l$);this.j=this.dO("ytp-share-panel-link");this.addOnDisposeCallback(g.aC(this.tooltip,this.j));this.api.createClientVe(this.j,this,164503);this.S(this.j,"click",function(P){P.preventDefault();p.api.logClick(p.j);var c=p.api.getVideoUrl(!0,!0,!1,!1);c=zQS(p,c); +g.IC(c,p.api,P)&&p.api.LO("SHARE_CLICKED")}); +this.listen("click",this.Rx);this.S(C,"videoplayerreset",this.hide);this.S(C,"fullscreentoggled",this.onFullscreenToggled);this.S(C,"onLoopRangeChange",this.d84);this.hide()}; +M7W=function(C,b){V7S(C);for(var h=b.links||b.shareTargets,N=0,p={},P=0;P'),(V=F.document)&&V.write&&(V.write(Xn(G)),V.close()))):((F=g.Ko(F,V,l,u))&&G.noopener&&(F.opener=null),F&&G.noreferrer&&(F.opener=null));F&&(F.opener||(F.opener=window),F.focus());a.preventDefault()}}}(p)); +p.e9.addOnDisposeCallback(g.aC(C.tooltip,p.e9.element));e==="Facebook"?C.api.createClientVe(p.e9.element,p.e9,164504):e==="Twitter"&&C.api.createClientVe(p.e9.element,p.e9,164505);C.S(p.e9.element,"click",function(Y){return function(){C.api.logClick(Y.e9.element)}}(p)); +C.api.logVisibility(p.e9.element,!0);C.N.push(p.e9);N++}}var L=b.more||b.moreLink,Z=new g.n({B:"a",J4:["ytp-share-panel-service-button","ytp-button"],U:[{B:"span",C:"ytp-share-panel-service-button-more",U:[{B:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},U:[{B:"rect",T:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{B:"path",T:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z", +fill:"#4e4e4f","fill-rule":"evenodd"}}]}]}],T:{href:L,target:"_blank",title:"More"}});Z.listen("click",function(Y){var a=L;C.api.logClick(C.moreButton.element);a=zQS(C,a);g.IC(a,C.api,Y)&&C.api.LO("SHARE_CLICKED")}); +Z.addOnDisposeCallback(g.aC(C.tooltip,Z.element));C.api.createClientVe(Z.element,Z,164506);C.S(Z.element,"click",function(){C.api.logClick(Z.element)}); +C.api.logVisibility(Z.element,!0);C.N.push(Z);C.moreButton=Z;C.updateValue("buttons",C.N)}; +zQS=function(C,b){var h={};g.$7(C.api.Y())&&(g.hR(C.api,"addEmbedsConversionTrackingParams",[h]),b=g.dt(b,h));return b}; +V7S=function(C){for(var b=g.z(C.N),h=b.next();!h.done;h=b.next())h=h.value,h.detach(),g.eD(h);C.N=[]}; +AL=function(C){return C===void 0||C.startSec===void 0||C.endSec===void 0?!1:!0}; +qfS=function(C,b){C.startSec+=b;C.endSec+=b}; +f4_=function(C){QF.call(this,C);this.K=this.j=this.isContentForward=this.J=!1;mq_(this);this.S(this.Z,"changeProductsInVideoVisibility",this.X76);this.S(this.Z,"videodatachange",this.onVideoDataChange)}; +AGK=function(C){C.W&&C.Qz.element.removeChild(C.W.element);C.W=void 0}; +rG_=function(C,b){return b.map(function(h){var N,p;if((h=(N=g.d(h,yGl))==null?void 0:(p=N.thumbnail)==null?void 0:p.thumbnails)&&h.length!==0)return h[0].url}).filter(function(h){return h!==void 0}).map(function(h){h=new g.n({B:"img", +C:"ytp-suggested-action-product-thumbnail",T:{alt:"",src:h}});g.D(C,h);return h})}; +izS=function(C,b){C.isContentForward=b;g.Zo(C.badge.element,"ytp-suggested-action-badge-content-forward",b)}; +y$=function(C){var b=C.isContentForward&&!C.VZ();g.Zo(C.badge.element,"ytp-suggested-action-badge-preview-collapsed",b&&C.j);g.Zo(C.badge.element,"ytp-suggested-action-badge-preview-expanded",b&&C.K)}; +rz=function(C,b,h){return new g.Ny(C*1E3,b*1E3,{priority:9,namespace:h})}; +JGc=function(C){C.Z.Sh("shopping_overlay_visible");C.Z.Sh("shopping_overlay_preview_collapsed");C.Z.Sh("shopping_overlay_preview_expanded");C.Z.Sh("shopping_overlay_expanded")}; +mq_=function(C){C.S(C.Z,g.p8("shopping_overlay_visible"),function(){C.ws(!0)}); +C.S(C.Z,g.PZ("shopping_overlay_visible"),function(){C.ws(!1)}); +C.S(C.Z,g.p8("shopping_overlay_expanded"),function(){C.N2=!0;RY(C)}); +C.S(C.Z,g.PZ("shopping_overlay_expanded"),function(){C.N2=!1;RY(C)}); +C.S(C.Z,g.p8("shopping_overlay_preview_collapsed"),function(){C.j=!0;y$(C)}); +C.S(C.Z,g.PZ("shopping_overlay_preview_collapsed"),function(){C.j=!1;y$(C)}); +C.S(C.Z,g.p8("shopping_overlay_preview_expanded"),function(){C.K=!0;y$(C)}); +C.S(C.Z,g.PZ("shopping_overlay_preview_expanded"),function(){C.K=!1;y$(C)})}; +QsS=function(C){g.n.call(this,{B:"div",C:"ytp-shorts-title-channel",U:[{B:"a",C:"ytp-shorts-title-channel-logo",T:{href:"{{channelLink}}",target:C.Y().V,"aria-label":"{{channelLogoLabel}}"}},{B:"div",C:"ytp-shorts-title-expanded-heading",U:[{B:"div",C:"ytp-shorts-title-expanded-title",U:[{B:"a",BE:"{{expandedTitle}}",T:{href:"{{channelTitleLink}}",target:C.Y().V,tabIndex:"0"}}]}]}]});var b=this;this.api=C;this.j=this.dO("ytp-shorts-title-channel-logo");this.channelName=this.dO("ytp-shorts-title-expanded-title"); +this.subscribeButton=null;C.createClientVe(this.j,this,36925);this.S(this.j,"click",function(h){b.api.logClick(b.j);g.Ko(window,uSW(b));h.preventDefault()}); +C.createClientVe(this.channelName,this,37220);this.S(this.channelName,"click",function(h){b.api.logClick(b.channelName);g.Ko(window,uSW(b));h.preventDefault()}); +RQV(this);this.S(C,"videodatachange",this.l$);this.S(C,"videoplayerreset",this.l$);this.l$()}; +RQV=function(C){if(!C.api.Y().Xs){var b=C.api.getVideoData(),h=new g.PH("Subscribe",null,"Subscribed",null,!0,!1,b.w8,b.subscribed,"channel_avatar",null,C.api,!0);C.api.createServerVe(h.element,C);var N;C.api.setTrackingParams(h.element,((N=b.subscribeButtonRenderer)==null?void 0:N.trackingParams)||null);C.S(h.element,"click",function(){C.api.logClick(h.element)}); +C.subscribeButton=h;g.D(C,C.subscribeButton);C.subscribeButton.Gi(C.element)}}; +uSW=function(C){var b=C.api.Y(),h=C.api.getVideoData();h=g.Ta(b)+h.ob;if(!g.$7(b))return h;b={};g.hR(C.api,"addEmbedsConversionTrackingParams",[b]);return g.dt(h,b)}; +iV=function(C){g.iv.call(this,C,{B:"button",J4:["ytp-skip-intro-button","ytp-popup","ytp-button"],U:[{B:"div",C:"ytp-skip-intro-button-text",BE:"Skip Intro"}]},100);var b=this;this.N=!1;this.j=new g.C2(function(){b.hide()},5E3); +this.LK=this.b5=NaN;g.D(this,this.j);this.J=function(){b.show()}; +this.W=function(){b.hide()}; +this.X=function(){var h=b.Z.getCurrentTime();h>b.b5/1E3&&h0?{B:"svg",T:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},U:[{B:"path",J4:["ytp-circle-arrow","ytp-svg-fill"],T:{d:"m19,12c0,2.1 -0.93,4.07 -2.55,5.4c-1.62,1.34 -3.76,1.87 -5.86,1.46c-2.73,-0.53 -4.92,-2.72 -5.45,-5.45c-0.41,-2.1 .12,-4.24 1.46,-5.86c1.33,-1.62 3.3,-2.55 5.4,-2.55l1.27,0l-0.85,.85l1.41,1.41l3.35,-3.35l-3.35,-3.35l-1.41,1.41l1.01,1.03l-1.43,0c-2.7,0 -5.23,1.19 -6.95,3.28c-1.72,2.08 -2.4,4.82 -1.88,7.52c0.68,3.52 3.51,6.35 7.03,7.03c0.6,.11 1.19,.17 1.78,.17c2.09,0 4.11,-0.71 5.74,-2.05c2.09,-1.72 3.28,-4.25 3.28,-6.95l-2,0z"}}, +{B:"text",J4:["ytp-jump-button-text","ytp-svg-fill"],T:{x:"7.05",y:"15.05"}}]}:{B:"svg",T:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},U:[{B:"path",J4:["ytp-circle-arrow","ytp-svg-fill"],T:{d:"m18.95,6.28c-1.72,-2.09 -4.25,-3.28 -6.95,-3.28l-1.43,0l1.02,-1.02l-1.41,-1.41l-3.36,3.35l3.35,3.35l1.41,-1.41l-0.85,-0.86l1.27,0c2.1,0 4.07,.93 5.4,2.55c1.34,1.62 1.87,3.76 1.46,5.86c-0.53,2.73 -2.72,4.92 -5.45,5.45c-2.11,.41 -4.24,-0.12 -5.86,-1.46c-1.62,-1.33 -2.55,-3.3 -2.55,-5.4l-2,0c0,2.7 1.19,5.23 3.28,6.95c1.62,1.34 3.65,2.05 5.74,2.05c0.59,0 1.19,-0.06 1.78,-0.17c3.52,-0.68 6.35,-3.51 7.03,-7.03c0.52,-2.7 -0.17,-5.44 -1.88,-7.52z"}}, +{B:"text",J4:["ytp-jump-button-text","ytp-svg-fill"],T:{x:"6.5",y:"15"}}]}]});var h=this;this.Z=C;this.j=b;this.K=new g.C2(function(){h.N?(h.N=!1,h.K.start()):h.element.classList.remove("ytp-jump-spin","backwards")},250); +this.N=!1;(b=b>0)?this.Z.createClientVe(this.element,this,36843):this.Z.createClientVe(this.element,this,36844);var N=g.ok(b?"Seek forward $SECONDS seconds. (\u2192)":"Seek backwards $SECONDS seconds. (\u2190)",{SECONDS:Math.abs(this.j).toString()});this.update({title:N,"data-title-no-tooltip":N,"aria-keyshortcuts":b?"\u2192":"\u2190"});this.X=this.element.querySelector(".ytp-jump-button-text");this.X.textContent=Math.abs(this.j).toString();this.listen("click",this.onClick,this);lv(C,this.element, +this)}; +Dql=function(C,b){b?C.element.classList.add("ytp-jump-button-enabled"):C.element.classList.remove("ytp-jump-button-enabled");C.Z.logVisibility(C.element,b);C.Z.B2()}; +Xk=function(C,b){uV.call(this,C,b,"timedMarkerCueRange","View key moments");this.S(C,g.PZ("timedMarkerCueRange"),this.cW);this.S(C,"updatemarkervisibility",this.updateVideoData)}; +dqW=function(C){var b,h=(b=C.Z.getVideoData())==null?void 0:b.Vz;if(h)for(C=C.X.rO,h=g.z(h),b=h.next();!b.done;b=h.next())if(b=C[b.value]){var N=void 0,p=void 0,P=void 0;if(((N=b.onTap)==null?void 0:(p=N.innertubeCommand)==null?void 0:(P=p.changeEngagementPanelVisibilityAction)==null?void 0:P.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return b}}; +Kh=function(C){var b=C.D("web_enable_pip_on_miniplayer");g.n.call(this,{B:"button",J4:["ytp-miniplayer-button","ytp-button"],T:{title:"{{title}}","aria-keyshortcuts":"i","data-priority":"6","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},U:[b?{B:"svg",T:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},U:[{B:"g",T:{transform:"translate(96, -96) scale(0.8)"},U:[{B:"path",xr:!0,T:{d:"M96-480v-72h165L71-743l50-50 191 190v-165h72v288H96Zm72 288q-29.7 0-50.85-21.15Q96-234.3 96-264v-144h72v144h336v72H168Zm624-264v-240H456v-72h336q29.7 0 50.85 21.15Q864-725.7 864-696v240h-72ZM576-192v-192h288v192H576Z"}}]}]}: +yiW()]});this.Z=C;this.visible=!1;this.listen("click",this.onClick);this.S(C,"fullscreentoggled",this.l$);this.updateValue("title",g.oC(C,"Miniplayer","i"));this.update({"data-title-no-tooltip":"Miniplayer"});lv(C,this.element,this);C.createClientVe(this.element,this,62946);this.l$()}; +Os=function(C,b,h){h=h===void 0?!1:h;g.n.call(this,{B:"button",J4:["ytp-mute-button","ytp-button"],T:C.Y().t4?{title:"{{title}}","aria-keyshortcuts":"m","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}"}:{"aria-disabled":"true","aria-haspopup":"true"},BE:"{{icon}}"});this.Z=C;this.sX=h;this.j=null;this.X=this.V=this.W=this.N2=NaN;this.nO=this.J=null;this.N=[];this.K=[];this.visible=!1;this.L=null;C.D("delhi_modern_web_player")&&this.update({"data-priority":3}); +h=this.Z.Y();this.updateValue("icon",rK());this.tooltip=b.x6();this.j=new g.ev({B:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{B:"defs",U:[{B:"clipPath",T:{id:"ytp-svg-volume-animation-mask"},U:[{B:"path",T:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{B:"path",T:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{B:"path",C:"ytp-svg-volume-animation-mover",T:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{B:"clipPath",T:{id:"ytp-svg-volume-animation-slash-mask"}, +U:[{B:"path",C:"ytp-svg-volume-animation-mover",T:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{B:"path",xr:!0,J4:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],T:{"clip-path":"url(#ytp-svg-volume-animation-mask)",d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{B:"path",xr:!0,J4:["ytp-svg-fill","ytp-svg-volume-animation-hider"],T:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)", +d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z",fill:"#fff"}}]});g.D(this,this.j);this.J=this.j.dO("ytp-svg-volume-animation-speaker");this.nO=this.J.getAttribute("d");this.N=g.dk("ytp-svg-volume-animation-mover",this.j.element);this.K=g.dk("ytp-svg-volume-animation-hider",this.j.element);this.q2=new kj;g.D(this,this.q2);this.KO=new kj;g.D(this,this.KO);this.listen("click",this.kE4);this.S(C,"appresize",this.lV);this.S(C,"onVolumeChange",this.onVolumeChange);var N=null;h.t4?this.addOnDisposeCallback(g.aC(b.x6(), +this.element)):(b="Your browser doesn't support changing the volume. $BEGIN_LINKLearn More$END_LINK".split(/\$(BEGIN|END)_LINK/),N=new g.iv(C,{B:"span",J4:["ytp-popup","ytp-generic-popup"],T:{tabindex:"0"},U:[b[0],{B:"a",T:{href:"https://support.google.com/youtube/?p=noaudio",target:h.V},BE:b[2]},b[4]]},100,!0),g.D(this,N),N.hide(),N.subscribe("show",function(p){C.t0(N,p)}),g.qC(C,N.element,4)); +this.message=N;C.createClientVe(this.element,this,28662);this.lV(C.Ti().getPlayerSize());this.setVolume(C.getVolume(),C.isMuted())}; +n$U=function(C,b){C.N2=b;var h=C.nO;b&&(h+=aAl(Wco,E$U,b));C.J.setAttribute("d",h)}; +t7S=function(C,b){C.V=b;for(var h=20*b,N=0;N=3&&C.Z.getPresentingPlayerType()!==2}; +wyK=function(C){var b=$z(C.Z.N8());return b?C.j?b.iN():b.xC():!1}; +Byl=function(C){var b={duration:null,preview:null,text:null,title:null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},h=C.playlist!=null&&C.playlist.iN();h=g.z4(C.Z)&&(!C.j||h);var N=C.j&&g.mB(C.Z),p=wyK(C),P=C.j&&C.Z.getPresentingPlayerType()===5,c=g.oC(C.Z,"Next","SHIFT+n"),e=g.oC(C.Z,"Previous","SHIFT+p");if(P)b.title="Start video";else if(C.N)b.title="Replay";else if(h){var L=null;C.playlist&&(L=g.HS(C.playlist,C.j?tUK(C.playlist):Tzo(C.playlist)));if(L){if(L.videoId){var Z=C.playlist.listId; +b.url=C.Z.Y().getVideoUrl(L.videoId,Z?Z.toString():void 0)}b.text=L.title;b.duration=L.lengthText?L.lengthText:L.lengthSeconds?g.Mj(L.lengthSeconds):null;b.preview=L.Q6("mqdefault.jpg")}C.j?(b.title=c,b["data-title-no-tooltip"]="Next",b["aria-keyshortcuts"]="SHIFT+n"):(b.title=e,b["data-title-no-tooltip"]="Previous",b["aria-keyshortcuts"]="SHIFT+p")}else if(N){if(e=(L=C.videoData)==null?void 0:g.W7(L))b.url=e.CI(),b.text=e.title,b.duration=e.lengthText?e.lengthText:e.lengthSeconds?g.Mj(e.lengthSeconds): +null,b.preview=e.Q6("mqdefault.jpg");b.title=c;b["data-title-no-tooltip"]="Next";b["aria-keyshortcuts"]="SHIFT+n"}b.disabled=!N&&!h&&!p&&!P;C.update(b);C.J=!!b.url;N||h||C.N||p||P?C.K||(C.K=g.aC(C.tooltip,C.element),C.W=C.listen("click",C.onClick,C)):C.K&&(C.K(),C.K=null,C.D9(C.W),C.W=null);C.tooltip.B2();g.Zo(C.element,"ytp-playlist-ui",C.j&&h)}; +bK1=function(C,b){g.n.call(this,{B:"div",C:"ytp-fine-scrubbing",U:[{B:"div",C:"ytp-fine-scrubbing-draggable",U:[{B:"div",C:"ytp-fine-scrubbing-thumbnails",T:{tabindex:"0",role:"slider",type:"range","aria-label":"Click or scroll the panel for the precise seeking.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{B:"div",T:{"aria-hidden":"true"},C:"ytp-fine-scrubbing-cursor"},{B:"div",C:"ytp-fine-scrubbing-seek-time",T:{"aria-hidden":"true"}, +BE:"{{seekTime}}"},{B:"div",C:"ytp-fine-scrubbing-play",U:[m3()],T:{title:"Play from this position",role:"button"}},{B:"div",C:"ytp-fine-scrubbing-dismiss",U:[g.zY()],T:{title:"Exit precise seeking",role:"button"}}]});var h=this;this.api=C;this.W=this.dO("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.dO("ytp-fine-scrubbing-dismiss");this.nO=this.dO("ytp-fine-scrubbing-draggable");this.playButton=this.dO("ytp-fine-scrubbing-play");this.thumbnails=[];this.K=[];this.Df=this.j=0;this.Qz=void 0; +this.KO=NaN;this.rO=this.V=this.N=this.L=0;this.X=[];this.interval=this.frameCount=0;this.J=160;this.scale=1;this.t4=0;this.isEnabled=this.sX=!1;Cz1(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.aC(b,this.dismissButton));this.addOnDisposeCallback(g.aC(b,this.playButton));this.q2=new g.IY(this.nO,!0);this.q2.subscribe("dragstart",this.oN,this);this.q2.subscribe("dragmove",this.sH,this);this.q2.subscribe("dragend",this.dJ,this);this.S(C,"SEEK_COMPLETE",this.HQ);C.D("web_fix_fine_scrubbing_false_play")&& +this.S(C,"rootnodemousedown",function(N){h.N2=N}); +this.W.addEventListener("keydown",function(){}); +g.D(this,this.q2);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.W,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; +Cz1=function(C,b){var h=g.Mj(b),N=g.ok("Seek to $PROGRESS",{PROGRESS:g.Mj(b,!0)});C.update({ariamin:0,ariamax:Math.floor(C.api.getDuration()),arianow:Math.floor(b),arianowtext:N,seekTime:h})}; +ho6=function(C){C.KO=NaN;C.V=0;C.L=C.N}; +p2H=function(C){var b=C.api.hR();if(b){var h=90*C.scale,N=fj(b,160*C.scale);if(b=b.levels[N]){C.J=b.width;if(!C.X.length){N=[];for(var p=Aq(b,b.nE()),P=b.columns*b.rows,c=b.frameCount,e=0;e<=p;e++)for(var L=cC.X.length;)N= +void 0,(N=C.thumbnails.pop())==null||N.dispose();for(;C.thumbnails.lengthh.length;)N=void 0,(N=C.K.pop())==null||N.dispose(); +for(;C.K.length-h?-b/h*C.interval*.5:-(b+h/2)/h*C.interval}; +PzS=function(C){return-((C.W.offsetWidth||(C.frameCount-1)*C.J*C.scale)-C.j/2)}; +Nnl=function(){g.n.call(this,{B:"div",C:"ytp-fine-scrubbing-thumbnail"})}; +gNo=function(){g.n.call(this,{B:"div",C:"ytp-fine-scrubbing-chapter-title",U:[{B:"div",C:"ytp-fine-scrubbing-chapter-title-content",BE:"{{chapterTitle}}"}]})}; +crK=function(C){g.n.call(this,{B:"div",C:"ytp-heat-map-chapter",U:[{B:"svg",C:"ytp-heat-map-svg",T:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},U:[{B:"defs",U:[{B:"clipPath",T:{id:"{{id}}"},U:[{B:"path",C:"ytp-heat-map-path",T:{d:"",fill:"white"}}]},{B:"linearGradient",T:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},U:[{B:"stop",T:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{B:"stop",T:{offset:"100%", +"stop-color":"white","stop-opacity":"0"}}]}]},{B:"rect",C:"ytp-heat-map-graph",T:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{B:"rect",C:"ytp-heat-map-hover",T:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{B:"rect",C:"ytp-heat-map-play",T:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{B:"path",C:"ytp-modern-heat-map",T:{d:"",fill:"url(#ytp-heat-map-gradient-def)",height:"100%", +stroke:"white","stroke-opacity":"0.7","stroke-width":"2px",style:"display: none;",width:"100%",x:"0",y:"0"}}]}]});this.api=C;this.L=this.dO("ytp-heat-map-svg");this.W=this.dO("ytp-heat-map-path");this.X=this.dO("ytp-heat-map-graph");this.J=this.dO("ytp-heat-map-play");this.j=this.dO("ytp-heat-map-hover");this.N=this.dO("ytp-modern-heat-map");this.bF=!1;this.K=60;C=""+g.Il(this);this.update({id:C});C="url(#"+C+")";this.X.setAttribute("clip-path",C);this.J.setAttribute("clip-path",C);this.j.setAttribute("clip-path", +C)}; +kRS=function(C,b){b>0&&(C.K=b,C.L.style.height=C.K+"px")}; +WH=function(){g.n.call(this,{B:"div",C:"ytp-chapter-hover-container",U:[{B:"div",C:"ytp-progress-bar-padding"},{B:"div",C:"ytp-progress-list",U:[{B:"div",J4:["ytp-play-progress","ytp-swatch-background-color"]},{B:"div",C:"ytp-progress-linear-live-buffer"},{B:"div",C:"ytp-load-progress"},{B:"div",C:"ytp-hover-progress"},{B:"div",C:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.K=this.dO("ytp-progress-list");this.W=this.dO("ytp-progress-linear-live-buffer"); +this.X=this.dO("ytp-ad-progress-list");this.J=this.dO("ytp-load-progress");this.L=this.dO("ytp-play-progress");this.N=this.dO("ytp-hover-progress");this.j=this.dO("ytp-chapter-hover-container")}; +Es=function(C,b){g.Zv(C.j,"width",b)}; +eox=function(C,b){g.Zv(C.j,"margin-right",b+"px")}; +LVK=function(){this.K=this.position=this.N=this.j=this.X=this.width=NaN}; +ZK1=function(){g.n.call(this,{B:"div",C:"ytp-timed-marker"});this.j=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; +g.tL=function(C,b){g.YY.call(this,{B:"div",C:"ytp-progress-bar-container",T:{"aria-disabled":"true"},U:[{B:"div",J4:["ytp-heat-map-container"],U:[{B:"div",C:"ytp-heat-map-edu"}]},{B:"div",J4:["ytp-progress-bar"],T:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},U:[{B:"div",C:"ytp-chapters-container"},{B:"div",C:"ytp-timed-markers-container"},{B:"div",C:"ytp-clip-start-exclude"}, +{B:"div",C:"ytp-clip-end-exclude"},{B:"div",C:"ytp-scrubber-container",U:[{B:"div",J4:["ytp-scrubber-button","ytp-swatch-background-color"],U:[{B:"div",C:"ytp-scrubber-pull-indicator"},{B:"img",J4:["ytp-decorated-scrubber-button"]}]}]}]},{B:"div",J4:["ytp-fine-scrubbing-container"],U:[{B:"div",C:"ytp-fine-scrubbing-edu"}]},{B:"div",C:"ytp-bound-time-left",BE:"{{boundTimeLeft}}"},{B:"div",C:"ytp-bound-time-right",BE:"{{boundTimeRight}}"},{B:"div",C:"ytp-clip-start",T:{title:"{{clipstarttitle}}"},BE:"{{clipstarticon}}"}, +{B:"div",C:"ytp-clip-end",T:{title:"{{clipendtitle}}"},BE:"{{clipendicon}}"}]});this.api=C;this.pK=!1;this.w9=this.Eq=this.CO=this.J=this.OR=0;this.lF=null;this.Df={};this.SC={};this.clipEnd=Infinity;this.G$=this.dO("ytp-clip-end");this.IV=new g.IY(this.G$,!0);this.AZ=this.dO("ytp-clip-end-exclude");this.Xs=this.dO("ytp-clip-start-exclude");this.clipStart=0;this.ob=this.dO("ytp-clip-start");this.HW=new g.IY(this.ob,!0);this.V=this.kh=0;this.progressBar=this.dO("ytp-progress-bar");this.Vz={};this.rO= +{};this.Yg=this.dO("ytp-chapters-container");this.k6=this.dO("ytp-timed-markers-container");this.j=[];this.W=[];this.Xy={};this.ge=null;this.nO=-1;this.zi=this.q2=0;this.L=null;this.mw=this.dO("ytp-scrubber-button");this.yd=this.dO("ytp-decorated-scrubber-button");this.Dj=this.dO("ytp-scrubber-container");this.Yh=new g.ZZ;this.Fy=new LVK;this.N=new Rx(0,0);this.Wb=null;this.KO=this.fK=!1;this.LK=null;this.N2=this.dO("ytp-heat-map-container");this.aL=this.dO("ytp-heat-map-edu");this.X=[];this.heatMarkersDecorations= +[];this.m6=this.dO("ytp-fine-scrubbing-container");this.Yr=this.dO("ytp-fine-scrubbing-edu");this.K=void 0;this.sX=this.OU=this.Qz=!1;this.tooltip=b.x6();this.addOnDisposeCallback(g.aC(this.tooltip,this.G$));g.D(this,this.IV);this.IV.subscribe("hoverstart",this.Nm,this);this.IV.subscribe("hoverend",this.KM,this);this.S(this.G$,"click",this.DL);this.addOnDisposeCallback(g.aC(this.tooltip,this.ob));g.D(this,this.HW);this.HW.subscribe("hoverstart",this.Nm,this);this.HW.subscribe("hoverend",this.KM,this); +this.S(this.ob,"click",this.DL);YIx(this);this.S(C,"resize",this.eC);this.S(C,"presentingplayerstatechange",this.ZOf);this.S(C,"videodatachange",this.bN);this.S(C,"videoplayerreset",this.BOO);this.S(C,"cuerangesadded",this.T0p);this.S(C,"cuerangesremoved",this.xKf);this.S(C,"onLoopRangeChange",this.C3);this.S(C,"innertubeCommand",this.onClickCommand);this.S(C,g.p8("timedMarkerCueRange"),this.Be6);this.S(C,"updatemarkervisibility",this.qO);this.S(C,"serverstitchedvideochange",this.VqD);this.updateVideoData(C.getVideoData(), +!0);this.C3(C.getLoopRange());nh(this)&&!this.K&&(this.K=new bK1(this.api,this.tooltip),C=g.$X(this.element).x||0,this.K.eC(C,this.J),this.K.Gi(this.m6),g.D(this,this.K),this.S(this.K.dismissButton,"click",this.DC),this.S(this.K.playButton,"click",this.Kc),this.S(this.K.element,"dblclick",this.Kc));this.api.createClientVe(this.N2,this,139609,!0);this.api.createClientVe(this.aL,this,140127,!0);this.api.createClientVe(this.Yr,this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)}; +YIx=function(C){if(C.j.length===0){var b=new WH;C.j.push(b);g.D(C,b);b.Gi(C.Yg,0)}for(;C.j.length>1;)C.j.pop().dispose();Es(C.j[0],"100%");C.j[0].startTime=0;C.j[0].title=""}; +azl=function(C){var b=b===void 0?NaN:b;var h=new crK(C.api);C.X.push(h);g.D(C,h);h.Gi(C.N2);b>=0&&(h.element.style.width=b+"px")}; +lz6=function(C){for(;C.W.length;)C.W.pop().dispose()}; +FVV=function(C){var b,h,N,p,P;return(P=g.d((p=g.d((b=C.getWatchNextResponse())==null?void 0:(h=b.playerOverlays)==null?void 0:(N=h.playerOverlayRenderer)==null?void 0:N.decoratedPlayerBarRenderer,FJ))==null?void 0:p.playerBar,oNW))==null?void 0:P.chapters}; +GRl=function(C){for(var b=C.j,h=[],N=0;N=c&&V<=Y&&P.push(l)}L>0&&(C.N2.style.height=L+"px");c=C.X[N];Y=P;l=p;G=L;V=N===0;V=V===void 0?!1:V;kRS(c,G);a=Y;F=c.K;V=V===void 0?!1:V;var q=1E3/a.length,f=[];f.push({x:0,y:100});for(var y=0;y0&&(h=P[P.length-1])}g.Td(C);e=[];b=g.z(b.heatMarkersDecorations||[]);for(p=b.next();!p.done;p=b.next())if(p=g.d(p.value,qIl))L=p.label,N=h=Z=void 0,e.push({visibleTimeRangeStartMillis:(Z=p.visibleTimeRangeStartMillis)!=null?Z:-1,visibleTimeRangeEndMillis:(h=p.visibleTimeRangeEndMillis)!=null?h:-1,decorationTimeMillis:(N=p.decorationTimeMillis)!=null?N:NaN,label:L?g.oS(L):""});C.heatMarkersDecorations=e}}; +zoV=function(C,b){C.W.push(b);g.D(C,b);b.Gi(C.k6,C.k6.children.length)}; +HKl=function(C,b){b=g.z(b);for(var h=b.next();!h.done;h=b.next()){h=h.value;var N=BH(C,h.timeRangeStartMillis/(C.N.j*1E3),IX(C));g.Zv(h.element,"transform","translateX("+N+"px) scaleX(0.6)")}}; +SI1=function(C,b){var h=0,N=!1;b=g.z(b);for(var p=b.next();!p.done;p=b.next()){p=p.value;if(g.d(p,fzl)){p=g.d(p,fzl);var P={startTime:NaN,title:null,onActiveCommand:void 0},c=p.title;P.title=c?g.oS(c):"";c=p.timeRangeStartMillis;c!=null&&(P.startTime=c);P.onActiveCommand=p.onActiveCommand;p=P;h===0&&p.startTime!==0&&(C.j[h].startTime=0,C.j[h].title="",C.j[h].onActiveCommand=p.onActiveCommand,h++,N=!0);C.j.length<=h&&(P=new WH,C.j.push(P),g.D(C,P),P.Gi(C.Yg,C.Yg.children.length));C.j[h].startTime= +p.startTime;C.j[h].title=p.title?p.title:"";C.j[h].onActiveCommand=p.onActiveCommand;C.j[h].index=N?h-1:h}h++}for(;h=0;N--)if(C.j[N].width>0){eox(C.j[N],0);var p=Math.floor(C.j[N].width);C.j[N].width=p;Es(C.j[N],p+"px");break}C.j[h].width=0;Es(C.j[h],"0")}else h===C.j.length-1?(N=Math.floor(C.j[h].width+b),C.j[h].width=N,Es(C.j[h],N+"px")):(b=C.j[h].width+b,N=Math.round(b),b-=N,C.j[h].width=N,Es(C.j[h],N+"px"));h=0;if(C.X.length===C.j.length)for(b=0;b< +C.X.length;b++)N=C.j[b].width,C.X[b].element.style.width=N+"px",C.X[b].element.style.left=h+"px",h+=N+wz(C);C.api.D("delhi_modern_web_player")&&(C.j.length===1?C.j[0].K.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(C.j[0].K.classList.remove("ytp-progress-bar-end"),C.j[0].K.classList.add("ytp-progress-bar-start"),C.j[C.j.length-1].K.classList.add("ytp-progress-bar-end")))}; +Ar6=function(C,b){var h=0,N=!1,p=C.j.length,P=C.N.j*1E3;P===0&&(P=C.api.getProgressState().seekableEnd*1E3);if(P>0&&C.J>0){for(var c=C.J-wz(C)*C.q2,e=C.zi===0?3:c*C.zi,L=g.z(C.j),Z=L.next();!Z.done;Z=L.next())Z.value.width=0;for(;h1);Z=(P===0?0:L/P*c)+C.j[h].width;if(Z>e)C.j[h].width=Z;else{C.j[h].width=0;var Y=C,a=h,l=Y.j[a-1];l!==void 0&&l.width>0? +l.width+=Z:aC.zi&&(C.zi=L/P),N=!0)}h++}}return N}; +xd=function(C){if(C.J){var b=C.api.getProgressState(),h=C.api.getVideoData();if(!(h&&h.enableServerStitchedDai&&h.enablePreroll)||isFinite(b.current)){var N;if(((N=C.api.getVideoData())==null?0:Ev(N))&&b.airingStart&&b.airingEnd)var p=Cc(C,b.airingStart,b.airingEnd);else if(C.api.getPresentingPlayerType()===2&&C.api.Y().D("show_preskip_progress_bar_for_skippable_ads")){var P,c,e;p=(h=(p=C.api.getVideoData())==null?void 0:(P=p.getPlayerResponse())==null?void 0:(c=P.playerConfig)==null?void 0:(e=c.webPlayerConfig)== +null?void 0:e.skippableAdProgressBarDuration)?Cc(C,b.seekableStart,h/1E3):Cc(C,b.seekableStart,b.seekableEnd)}else p=Cc(C,b.seekableStart,b.seekableEnd);P=Qt(p,b.loaded,0);b=Qt(p,b.current,0);c=C.N.K!==p.K||C.N.j!==p.j;C.N=p;bs(C,b,P);c&&yrK(C);rr1(C)}}}; +Cc=function(C,b,h){return iKV(C)?new Rx(Math.max(b,C.Wb.startTimeMs/1E3),Math.min(h,C.Wb.endTimeMs/1E3)):new Rx(b,h)}; +Jrl=function(C,b){var h;if(((h=C.Wb)==null?void 0:h.type)==="repeatChapter"||(b==null?void 0:b.type)==="repeatChapter")b&&(b=C.j[Fk(C.j,b.startTimeMs)],g.Zo(b.j,"ytp-repeating-chapter",!1)),C.Wb&&(b=C.j[Fk(C.j,C.Wb.startTimeMs)],g.Zo(b.j,"ytp-repeating-chapter",!0)),C.j.forEach(function(N){g.Zo(N.j,"ytp-exp-chapter-hover-container",!C.Wb)})}; +NY=function(C,b){var h=C.N;h=h.K+b.K*h.getLength();if(C.j.length>1){h=hY(C,b.N,!0);for(var N=0,p=0;p0&&(N+=C.j[p].width,N+=wz(C));h=(C.j[h].startTime+(b.N-N)/C.j[h].width*((h===C.j.length-1?C.N.j*1E3:C.j[h+1].startTime)-C.j[h].startTime))/1E3||0}return h}; +gB=function(C,b,h,N,p){b=b<0?0:Math.floor(Math.min(b,C.api.getDuration())*1E3);h=h<0?0:Math.floor(Math.min(h,C.api.getDuration())*1E3);C=C.progressBar.visualElement;N={seekData:{startMediaTimeMs:b,endMediaTimeMs:h,seekSource:N}};(b=g.mZ())&&g.CN(wr)(void 0,b,C,p,N,void 0)}; +uUW=function(C,b,h){if(h>=C.j.length)return!1;var N=C.J-wz(C)*C.q2;return Math.abs(b-C.j[h].startTime/1E3)/C.N.j*N<4}; +yrK=function(C){C.mw.style.removeProperty("height");for(var b=g.z(Object.keys(C.Df)),h=b.next();!h.done;h=b.next())RoS(C,h.value);pc(C);bs(C,C.V,C.kh)}; +IX=function(C){var b=C.Yh.x;b=g.kv(b,0,C.J);C.Fy.update(b,C.J);return C.Fy}; +jm=function(C){return(C.KO?135:90)-PU(C)}; +PU=function(C){var b=48,h=C.api.Y();C.KO?b=54:g.$7(h)&&!h.K?b=40:C.api.D("delhi_modern_web_player")&&(b=68);return b}; +bs=function(C,b,h){C.V=b;C.kh=h;var N=IX(C),p=C.N.j;var P=C.N;P=P.K+C.V*P.getLength();var c=g.ok("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.Mj(P,!0),DURATION:g.Mj(p,!0)}),e=Fk(C.j,P*1E3);e=C.j[e].title;C.update({ariamin:Math.floor(C.N.K),ariamax:Math.floor(p),arianow:Math.floor(P),arianowtext:e?e+" "+c:c});p=C.clipStart;P=C.clipEnd;C.Wb&&C.api.getPresentingPlayerType()!==2&&(p=C.Wb.startTimeMs/1E3,P=C.Wb.endTimeMs/1E3);p=Qt(C.N,p,0);e=Qt(C.N,P,1);c=C.api.getVideoData();P=g.kv(b,p,e);h=(c==null? +0:g.d9(c))?1:g.kv(h,p,e);b=BH(C,b,N);g.Zv(C.Dj,"transform","translateX("+b+"px)");cU(C,N,p,P,"PLAY_PROGRESS");(c==null?0:Ev(c))?(b=C.api.getProgressState().seekableEnd)&&cU(C,N,P,Qt(C.N,b),"LIVE_BUFFER"):cU(C,N,p,h,"LOAD_PROGRESS");if(C.api.D("web_player_heat_map_played_bar")){var L;(L=C.X[0])!=null&&L.J.setAttribute("width",(P*100).toFixed(2)+"%")}}; +cU=function(C,b,h,N,p){var P=C.j.length,c=b.j-C.q2*wz(C),e=h*c;h=hY(C,e);var L=N*c;c=hY(C,L);p==="HOVER_PROGRESS"&&(c=hY(C,b.j*N,!0),L=b.j*N-QqU(C,b.j*N)*wz(C));N=Math.max(e-UU6(C,h),0);for(e=h;e=C.j.length)return C.J;for(var h=0,N=0;N0||C.AZ.clientWidth>0?(P=b.clientWidth/h,C=-1*C.Xs.clientWidth/h):(P/=h,C=-1*C.j[p].element.offsetLeft/h),g.Zv(b,"background-size",P+"px"),g.Zv(b,"background-position-x",C+"px"))}; +kB=function(C,b,h,N,p){p||C.api.Y().K?b.style.width=h+"px":g.Zv(b,"transform","scalex("+(N?h/N:0)+")")}; +hY=function(C,b,h){var N=0;(h===void 0?0:h)&&(b-=QqU(C,b)*wz(C));h=g.z(C.j);for(var p=h.next();!p.done;p=h.next()){p=p.value;if(b>p.width)b-=p.width;else break;N++}return N===C.j.length?N-1:N}; +BH=function(C,b,h){var N=b*C.N.j*1E3;for(var p=-1,P=g.z(C.j),c=P.next();!c.done;c=P.next())c=c.value,N>c.startTime&&c.width>0&&p++;N=p<0?0:p;p=h.j-wz(C)*C.q2;return b*p+wz(C)*N+h.X}; +QqU=function(C,b){for(var h=C.j.length,N=0,p=g.z(C.j),P=p.next();!P.done;P=p.next())if(P=P.value,P.width!==0)if(b>P.width)b-=P.width,b-=wz(C),N++;else break;return N===h?h-1:N}; +g.sqV=function(C,b,h,N){var p=C.J!==h,P=C.KO!==N;C.OR=b;C.J=h;C.KO=N;nh(C)&&(b=C.K)!=null&&(b.scale=N?1.5:1);yrK(C);C.j.length===1&&(C.j[0].width=h||0);p&&g.Td(C);C.K&&P&&nh(C)&&(C.K.isEnabled&&(h=C.KO?135:90,N=h-PU(C),C.m6.style.height=h+"px",g.Zv(C.N2,"transform","translateY("+-N+"px)"),g.Zv(C.progressBar,"transform","translateY("+-N+"px)")),p2H(C.K))}; +pc=function(C){var b=!!C.Wb&&C.api.getPresentingPlayerType()!==2,h=C.clipStart,N=C.clipEnd,p=!0,P=!0;b&&C.Wb?(h=C.Wb.startTimeMs/1E3,N=C.Wb.endTimeMs/1E3):(p=h>C.N.K,P=C.N.j>0&&NC.V);g.Zo(C.mw,"ytp-scrubber-button-hover",h===N&&C.j.length>1);if(C.api.D("web_player_heat_map_played_bar")){var P;(P=C.X[0])!=null&&P.j.setAttribute("width",(b.K*100).toFixed(2)+"%")}}}; +RoS=function(C,b){var h=C.Df[b];b=C.SC[b];var N=IX(C),p=Qt(C.N,h.start/1E3,0),P=PIl(h,C.KO)/N.width;var c=Qt(C.N,h.end/1E3,1);P!==Number.POSITIVE_INFINITY&&(p=g.kv(p,0,c-P));c=Math.min(c,p+P);h.color&&(b.style.background=h.color);h=p;b.style.left=Math.max(h*N.j+N.X,0)+"px";kB(C,b,g.kv((c-h)*N.j+N.X,0,N.width),N.width,!0)}; +OKW=function(C,b){var h=b.getId();C.Df[h]===b&&(g.pM(C.SC[h]),delete C.Df[h],delete C.SC[h])}; +nh=function(C){var b=g.vI(C.api.Y())&&(C.api.D("web_enable_pip_on_miniplayer")||C.api.D("web_enable_auto_pip")),h;return!((h=C.api.getVideoData())==null?0:h.isLivePlayback)&&!C.api.isMinimized()&&!C.api.isInline()&&(!C.api.S1()||!b)}; +em=function(C){C.K&&(C.K.disable(),C.CO=0,C.N2.style.removeProperty("transform"),C.progressBar.style.removeProperty("transform"),C.m6.style.removeProperty("height"),C.element.parentElement&&C.element.parentElement.style.removeProperty("height"))}; +vNW=function(C,b){var h=b/jm(C)*PU(C);g.Zv(C.progressBar,"transform","translateY("+-b+"px)");g.Zv(C.N2,"transform","translateY("+-b+"px)");g.Zv(C.m6,"transform","translateY("+h+"px)");C.m6.style.height=b+h+"px";C.element.parentElement&&(C.element.parentElement.style.height=PU(C)-h+"px")}; +DUl=function(C,b){b?C.L||(C.element.removeAttribute("aria-disabled"),C.L=new g.IY(C.progressBar,!0),C.L.subscribe("hovermove",C.Z96,C),C.L.subscribe("hoverend",C.B9i,C),C.L.subscribe("dragstart",C.w7O,C),C.L.subscribe("dragmove",C.RU4,C),C.L.subscribe("dragend",C.nth,C),C.LK=C.listen("keydown",C.WH)):C.L&&(C.element.setAttribute("aria-disabled","true"),C.D9(C.LK),C.L.cancel(),C.L.dispose(),C.L=null)}; +wz=function(C){return C.api.D("delhi_modern_web_player")?4:C.KO?3:2}; +iKV=function(C){var b;return!((b=C.Wb)==null||!b.postId)&&C.api.getPresentingPlayerType()!==2}; +Lc=function(C,b){g.n.call(this,{B:"button",J4:["ytp-remote-button","ytp-button"],T:{title:"Play on TV","aria-haspopup":"true","data-priority":"9"},BE:"{{icon}}"});this.Z=C;this.xg=b;this.j=null;this.S(C,"onMdxReceiversChange",this.l$);this.S(C,"presentingplayerstatechange",this.l$);this.S(C,"appresize",this.l$);C.createClientVe(this.element,this,139118);this.l$();this.listen("click",this.K,this);lv(C,this.element,this)}; +ZM=function(C,b){g.n.call(this,{B:"button",J4:["ytp-button","ytp-settings-button"],T:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":kY(),title:"Settings","data-tooltip-target-id":"ytp-settings-button"},U:[g.Au()]});this.Z=C;this.xg=b;this.K=!0;this.listen("click",this.N);this.S(C,"onPlaybackQualityChange",this.updateBadge);this.S(C,"videodatachange",this.updateBadge);this.S(C,"webglsettingschanged",this.updateBadge);this.S(C,"appresize",this.j);lv(C,this.element,this);this.Z.createClientVe(this.element, +this,28663);this.updateBadge();this.j(C.Ti().getPlayerSize())}; +dUo=function(C,b){C.K=!!b;C.j(C.Z.Ti().getPlayerSize())}; +YB=function(C,b){tR.call(this,"Annotations",g.Cl.gX);this.Z=C;this.xg=b;this.j=!1;C.D("web_settings_menu_icons")&&this.setIcon({B:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{B:"path",T:{d:"M17.5,7c1.93,0,3.5,1.57,3.5,3.5c0,1-0.53,4.5-0.85,6.5h-2.02l0.24-1.89l0.14-1.09l-1.1-0.03C15.5,13.94,14,12.4,14,10.5 C14,8.57,15.57,7,17.5,7 M6.5,7C8.43,7,10,8.57,10,10.5c0,1-0.53,4.5-0.85,6.5H7.13l0.24-1.89l0.14-1.09l-1.1-0.03 C4.5,13.94,3,12.4,3,10.5C3,8.57,4.57,7,6.5,7 M17.5,6C15.01,6,13,8.01,13,10.5c0,2.44,1.95,4.42,4.38,4.49L17,18h4c0,0,1-6,1-7.5 C22,8.01,19.99,6,17.5,6L17.5,6z M6.5,6C4.01,6,2,8.01,2,10.5c0,2.44,1.95,4.42,4.38,4.49L6,18h4c0,0,1-6,1-7.5 C11,8.01,8.99,6,6.5,6L6.5,6z", +fill:"white"}}]});this.S(C,"videodatachange",this.l$);this.S(C,"onApiChange",this.l$);this.subscribe("select",this.onSelect,this);this.l$()}; +a$=function(C,b){g.tn.call(this,"Audio track",g.Cl.AUDIO,C,b);this.Z=C;this.tracks={};g.c4(this.element,"ytp-audio-menu-item");this.countLabel=new g.n({B:"div",U:[{B:"span",BE:"Audio track"},{B:"span",C:"ytp-menuitem-label-count",BE:"{{content}}"}]});C.D("web_settings_menu_icons")&&this.setIcon({B:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{B:"path",T:{d:"M11.72,11.93C13.58,11.59,15,9.96,15,8c0-2.21-1.79-4-4-4C8.79,4,7,5.79,7,8c0,1.96,1.42,3.59,3.28,3.93 C4.77,12.21,2,15.76,2,20h18C20,15.76,17.23,12.21,11.72,11.93z M8,8c0-1.65,1.35-3,3-3s3,1.35,3,3s-1.35,3-3,3S8,9.65,8,8z M11,12.9c5.33,0,7.56,2.99,7.94,6.1H3.06C3.44,15.89,5.67,12.9,11,12.9z M16.68,11.44l-0.48-0.88C17.31,9.95,18,8.77,18,7.5 c0-1.27-0.69-2.45-1.81-3.06l0.49-0.88C18.11,4.36,19,5.87,19,7.5C19,9.14,18.11,10.64,16.68,11.44z M18.75,13.13l-0.5-0.87 C19.95,11.28,21,9.46,21,7.5s-1.05-3.78-2.75-4.76l0.5-0.87C20.75,3.03,22,5.19,22,7.5S20.76,11.97,18.75,13.13z", +fill:"white"}}]});g.D(this,this.countLabel);g.QG(this,this.countLabel);this.S(C,"videodatachange",this.l$);this.S(C,"onPlaybackAudioChange",this.l$);this.l$()}; +ls=function(C,b){tR.call(this,"Autoplay",g.Cl.PU);this.Z=C;this.xg=b;this.j=!1;this.N=[];this.S(C,"presentingplayerstatechange",this.K);this.subscribe("select",this.onSelect,this);C.createClientVe(this.element,this,113682);this.K()}; +WVo=function(C,b){g.U_.call(this,g.Xz({"aria-haspopup":"false"}),0,"More options");this.Z=C;this.xg=b;this.S(this.element,"click",this.onClick);this.xg.hk(this)}; +ENc=function(C,b){var h;g.vI(C.Y())&&(h={B:"div",C:"ytp-panel-footer-content",U:[{B:"span",BE:"Adjust download quality from your "},{B:"a",C:"ytp-panel-footer-content-link",BE:"Settings",T:{href:"/account_downloads"}}]});g.tn.call(this,"Quality",g.Cl.gJ,C,b,void 0,void 0,h);this.Z=C;this.nO={};this.V={};this.X={};this.q2=new Set;this.j=this.W=!1;this.J="unknown";this.KO="";this.N2=new g.Bm;g.D(this,this.N2);this.W=this.Z.D("web_player_use_new_api_for_quality_pullback");this.j=this.Z.D("web_player_enable_premium_hbr_playback_cap"); +C.D("web_settings_menu_icons")&&this.setIcon({B:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{B:"path",T:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",fill:"white"}}]});g.c4(this.K.element,"ytp-quality-menu");this.S(C,"videodatachange",this.Kn);this.S(C,"videoplayerreset",this.Kn);this.S(C,"onPlaybackQualityChange",this.bV);this.Kn();C.createClientVe(this.element,this,137721)}; +ttl=function(C,b,h){var N=C.nO[b],p=g.Un[b];return nN_(C,N?N.qualityLabel:p?p+"p":"Auto",b,h)}; +TnW=function(C,b,h,N,p){var P=(b=C.j?C.X[b]:C.V[b])&&b.quality,c=b&&b.qualityLabel;c=c?c:"Auto";N&&(c="("+c);C=nN_(C,c,P||"",p);N&&C.U.push(")");(N=(N=b&&b.paygatedQualityDetails)&&N.paygatedIndicatorText)&&h&&C.U.push({B:"div",C:"ytp-premium-label",BE:N});return C}; +nN_=function(C,b,h,N){b={B:"span",J4:N,U:[b]};var p;N="ytp-swatch-color";if(C.W||C.j)N="ytp-swatch-color-white";h==="highres"?p="8K":h==="hd2880"?p="5K":h==="hd2160"?p="4K":h.indexOf("hd")===0&&h!=="hd720"&&(p="HD");p&&(b.U.push(" "),b.U.push({B:"sup",C:N,BE:p}));return b}; +o$=function(C,b,h,N,p){var P={B:"div",C:"ytp-input-slider-section",U:[{B:"input",C:"ytp-input-slider",T:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};p&&P.U.unshift(p);g.n.call(this,P);this.N=C;this.X=b;this.W=h;this.initialValue=N;this.header=p;this.j=this.dO("ytp-input-slider");this.K=N?N:C;this.init();this.S(this.j,"input",this.J)}; +Iz6=function(C,b){C.K=b;C.updateValue("slidervalue",C.K);C.j.valueAsNumber=C.K;Bn_(C,b)}; +Bn_=function(C,b){C.j.style.setProperty("--yt-slider-shape-gradient-percent",(b-C.N)/(C.X-C.N)*100+"%")}; +FD=function(C){o$.call(this,C.getAvailablePlaybackRates()[0],C.getAvailablePlaybackRates()[C.getAvailablePlaybackRates().length-1],.05,C.getPlaybackRate(),{B:"div",C:"ytp-speedslider-indicator-container",U:[{B:"div",C:"ytp-speedslider-badge"},{B:"p",C:"ytp-speedslider-text"}]});this.Z=C;this.V=tYl(this.N2,this);g.c4(this.j,"ytp-speedslider");this.L=this.dO("ytp-speedslider-text");this.q2=this.dO("ytp-speedslider-badge");xUH(this);this.S(this.j,"change",this.nO);this.S(this.j,"keydown",this.KO)}; +xUH=function(C){C.L.textContent=C.K+"x";C.q2.classList.toggle("ytp-speedslider-premium-badge",C.K>2&&C.Z.D("enable_web_premium_varispeed"))}; +GX=function(C,b,h,N,p,P,c){g.n.call(this,{B:"div",C:"ytp-slider-section",T:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},U:[{B:"div",C:"ytp-slider",U:[{B:"div",C:"ytp-slider-handle"}]}]});this.L=C;this.V=b;this.K=h;this.N=N;this.KO=p;this.sX=P;this.range=this.N-this.K;this.Qz=this.dO("ytp-slider-section");this.X=this.dO("ytp-slider");this.N2=this.dO("ytp-slider-handle");this.J=new g.IY(this.X, +!0);this.j=c?c:h;g.D(this,this.J);this.J.subscribe("dragmove",this.GL,this);this.S(this.element,"keydown",this.Ei);this.S(this.element,"wheel",this.ox);this.init()}; +Sm=function(C){GX.call(this,.05,.05,C.getAvailablePlaybackRates()[0],C.getAvailablePlaybackRates()[C.getAvailablePlaybackRates().length-1],150,20,C.getPlaybackRate());this.Z=C;this.W=g.CM("P");this.q2=tYl(this.nO,this);g.c4(this.X,"ytp-speedslider");g.c4(this.W,"ytp-speedslider-text");C=this.W;var b=this.X;b.parentNode&&b.parentNode.insertBefore(C,b.nextSibling);w2_(this);this.S(this.Z,"onPlaybackRateChange",this.updateValues)}; +w2_=function(C){C.W.textContent=CLW(C,C.j)+"x"}; +CLW=function(C,b){C=Number(g.kv(b,C.K,C.N).toFixed(2));b=Math.floor((C+.001)*100%5+2E-15);var h=C;b!==0&&(h=C-b*.01);return Number(h.toFixed(2))}; +b16=function(C){g.YY.call(this,{B:"div",C:"ytp-speedslider-component"});C.D("web_settings_use_input_slider")?this.j=new FD(C):this.j=new Sm(C);g.D(this,this.j);this.element.appendChild(this.j.element)}; +h3H=function(C){var b=new b16(C);Ud.call(this,C,b,"Custom");g.D(this,b)}; +Nxc=function(C,b){var h=new h3H(C);g.tn.call(this,"Playback speed",g.Cl.kT,C,b,$B(C)?void 0:"Custom",$B(C)?void 0:function(){g.Od(b,h)}); +var N=this;this.W=!1;g.D(this,h);this.J=new FD(C);g.D(this,this.J);C.D("web_settings_menu_icons")&&this.setIcon({B:"svg",T:{height:"24",viewBox:"0 0 24 24",width:"24"},U:[{B:"path",T:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z", +fill:"white"}}]});this.Z=C;this.W=!1;this.KO=null;$B(C)?(this.j=g.ok("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.Z.getPlaybackRate().toString()}),this.X=this.Z.getPlaybackRate()):this.X=this.j=null;this.V=this.Z.getAvailablePlaybackRates();this.S(C,"presentingplayerstatechange",this.l$);var p;((p=this.Z.getVideoData())==null?0:p.qz())&&this.S(C,"serverstitchedvideochange",this.l$);this.S(this.J.j,"change",function(){N.W=!0;N.l$()}); +this.l$()}; +pMc=function(C,b){var h=goK(b);C.j&&(C.W||b===C.X)?(C.ra(C.j),C.jh(b.toString())):C.ra(h)}; +jPl=function(C){C.GC(C.V.map(goK));C.j=null;C.X=null;var b=C.Z.getPlaybackRate();if(!C.V.includes(b)||$B(C.Z))PLo(C,b),C.ra(C.j)}; +PLo=function(C,b){C.X=b;C.j=g.ok("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:b.toString()});b=C.V.map(goK);b.unshift(C.j);C.GC(b)}; +goK=function(C){return C.toString()}; +$B=function(C){return C.D("web_settings_menu_surface_custom_playback")}; +c61=function(C){return C.D("web_settings_menu_surface_custom_playback")&&C.D("web_settings_use_input_slider")}; +e3o=function(C,b,h,N){var p=new g.Xs(b,void 0,"Video Override");g.tn.call(this,N.text||"",C,b,h,"Video Override",function(){g.Od(h,p)}); +var P=this;g.c4(this.element,"ytp-subtitles-options-menu-item");this.setting=N.option.toString();C=N.options;this.settings=g.FE(C,this.iV,this);this.W=p;g.D(this,this.W);b=new g.U_({B:"div",C:"ytp-menuitemtitle",BE:"Allow for a different caption style if specified by the video."},0);g.D(this,b);this.W.hk(b,!0);this.X=new g.U_({B:"div",C:"ytp-menuitem",T:{role:"menuitemradio",tabindex:"0"},U:[{B:"div",C:"ytp-menuitem-label",BE:"On"}]},-1);g.D(this,this.X);this.W.hk(this.X,!0);this.S(this.X.element, +"click",function(){kPo(P,!0)}); +this.j=new g.U_({B:"div",C:"ytp-menuitem",T:{role:"menuitemradio",tabindex:"0"},U:[{B:"div",C:"ytp-menuitem-label",BE:"Off"}]},-2);g.D(this,this.j);this.W.hk(this.j,!0);this.S(this.j.element,"click",function(){kPo(P,!1)}); +this.GC(g.q_(C,this.iV))}; +kPo=function(C,b){C.publish("settingChange",C.setting+"Override",!b);C.xg.ql()}; +zX=function(C,b){g.Xs.call(this,C,void 0,"Options");var h=this;this.dL={};for(var N=0;N=0);if(!(b<0||b===C.X)){C.X=b;b=243*C.scale;var h=141*C.scale,N=PEW(C.K,C.X,b);KcK(C.bg,N,b,h,!0);C.nO.start()}}; +XMl=function(C){var b=C.j;C.type===3&&C.q2.stop();C.api.removeEventListener("appresize",C.N2);C.V||b.setAttribute("title",C.N);C.N="";C.j=null;C.updateValue("keyBoardShortcut","")}; +sP_=function(C){g.n.call(this,{B:"button",J4:["ytp-watch-later-button","ytp-button"],T:{title:"{{title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.$7(C.Y()))},U:[{B:"div",C:"ytp-watch-later-icon",BE:"{{icon}}"},{B:"div",C:"ytp-watch-later-title",BE:"Watch later"}]});this.Z=C;this.icon=null;this.visible=this.isRequestPending=this.j=!1;Xo6(C);C.createClientVe(this.element,this,28665);this.listen("click",this.onClick,this);this.S(C,"videoplayerreset",this.onReset);this.S(C,"appresize", +this.X6);this.S(C,"videodatachange",this.X6);this.S(C,"presentingplayerstatechange",this.X6);this.X6();C=this.Z.Y();var b=g.QJ("yt-player-watch-later-pending");C.X&&b?(fcW(),Kyo(this)):this.l$(2);g.Zo(this.element,"ytp-show-watch-later-title",g.$7(C));lv(this.Z,this.element,this)}; +O1l=function(C){var b=C.Z.getPlayerSize(),h=C.Z.Y(),N=C.Z.getVideoData(),p=g.$7(h)&&g.z4(C.Z)&&g.B(C.Z.getPlayerStateObject(),128),P=h.N;return h.mw&&b.width>=240&&!N.isAd()&&N.mw&&!p&&!g.n6(N)&&!C.Z.isEmbedsShortsMode()&&!P}; +voH=function(C,b){cCS(g.Ua(C.Z.Y()),"wl_button",function(){fcW({videoId:b});window.location.reload()})}; +Kyo=function(C){if(!C.isRequestPending){C.isRequestPending=!0;C.l$(3);var b=C.Z.getVideoData();b=C.j?b.removeFromWatchLaterCommand:b.addToWatchLaterCommand;var h=C.Z.CZ(),N=C.j?function(){C.j=!1;C.isRequestPending=!1;C.l$(2);C.Z.Y().J&&C.Z.LO("WATCH_LATER_VIDEO_REMOVED")}:function(){C.j=!0; +C.isRequestPending=!1;C.l$(1);C.Z.Y().K&&C.Z.gC(C.element);C.Z.Y().J&&C.Z.LO("WATCH_LATER_VIDEO_ADDED")}; +tN(h,b).then(N,function(){C.isRequestPending=!1;C.l$(4,"An error occurred. Please try again later.");C.Z.Y().J&&C.Z.LO("WATCH_LATER_ERROR","An error occurred. Please try again later.")})}}; +D21=function(C,b){if(b!==C.icon){switch(b){case 3:var h=xz();break;case 1:h=GY();break;case 2:h={B:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{B:"path",xr:!0,C:"ytp-svg-fill",T:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:h={B:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{B:"path", +xr:!0,T:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}C.updateValue("icon",h);C.icon=b}}; +g.R$=function(){g.xj.apply(this,arguments);this.Gv=(this.V3=g.$7(this.api.Y()))&&(this.api.Y().K||bU()||wJ());this.Nd=48;this.XT=69;this.D2=this.fZ=null;this.WO=[];this.w5=this.yy=this.BI=this.WC=this.t8=null;this.Z6=[];this.contextMenu=this.To=this.overflowButton=this.Dx=this.JL=this.searchButton=this.copyLinkButton=this.shareButton=this.hN=this.W6=this.title=this.channelAvatar=this.tv=this.tooltip=null;this.F5=!1;this.KH=this.dK=this.zY=this.TY=null;this.mB=this.Ws=this.EQ=!1}; +d2K=function(C){var b=C.api.Y(),h=g.B(C.api.getPlayerStateObject(),128);return b.X&&h&&!C.api.isFullscreen()}; +WyH=function(C){if(C.R2()&&!C.api.isEmbedsShortsMode()&&C.Dx){var b=C.api.D("web_player_hide_overflow_button_if_empty_menu");!C.hN||b&&!O1l(C.hN)||kr1(C.Dx,C.hN);!C.shareButton||b&&!SfH(C.shareButton)||kr1(C.Dx,C.shareButton);!C.copyLinkButton||b&&!VAS(C.copyLinkButton)||kr1(C.Dx,C.copyLinkButton)}else{if(C.Dx){b=C.Dx;for(var h=g.z(b.actionButtons),N=h.next();!N.done;N=h.next())N.value.detach();b.actionButtons=[]}C.searchButton&&!g.PP(C.W6.element,C.searchButton.element)&&C.searchButton.Gi(C.W6.element); +C.hN&&!g.PP(C.W6.element,C.hN.element)&&C.hN.Gi(C.W6.element);C.shareButton&&!g.PP(C.W6.element,C.shareButton.element)&&C.shareButton.Gi(C.W6.element);C.copyLinkButton&&!g.PP(C.W6.element,C.copyLinkButton.element)&&C.copyLinkButton.Gi(C.W6.element)}}; +EoW=function(C,b,h){b=h?b.lastElementChild:b.firstElementChild;for(var N=null;b;){if(l3(b,"display")!=="none"&&b.getAttribute("aria-hidden")!=="true"){var p=void 0;b.tabIndex>=0?p=b:p=EoW(C,b,h);p&&(N?h?p.tabIndex>N.tabIndex&&(N=p):p.tabIndexN/1E3+1)return{msg:"in-the-past"};if(P.isLivePlayback&&!isFinite(N))return{msg:"live-infinite"};(N=b.Q_())&&N.isView()&&(N=N.mediaElement);if(N&&N.Ce().length>12&&g.ZS(p))return{msg:"played-ranges"};if(!p.N)return null;if(!c)return{msg:"no-pvd-formats"};if(!p.N.j||!c.j)return{msg:"non-dash"};N=c.videoInfos[0];var e=p.N.videoInfos[0];C.J&&Tt(P)&&(N=b.C$(),e= +h.C$());if(!N||!e)return{msg:"no-video-info"};if(C.N&&(W9(N)||W9(e)))return{msg:"av1"};b=C.j&&P.Yw()&&Ye();if(e.containerType!==N.containerType)if(b)P.jp("sgap",{ierr:"container"});else return{msg:"container"};if(C.K&&!b&&(e.PE!==N.PE||e.PE===""||N.PE===""))return{msg:"codec"};if(C.X&&e.video&&N.video&&Math.abs(e.video.width/e.video.height-N.video.width/N.video.height)>.01)return{msg:"ratio"};if(g.ZS(P)&&g.ZS(p))return{msg:"content-protection"};c=c.j[0];p=p.N.j[0];h=c.audio;var L=p.audio;if(h.sampleRate!== +L.sampleRate&&!g.yX)if(b)P.jp("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:c.itag,cr:h.sampleRate,ni:p.itag,nr:L.sampleRate};return(h.numChannels||2)!==(L.numChannels||2)?{msg:"channel-count"}:C.G&&P.Yw()&&N.video.fps!==e.video.fps?{msg:"fps"}:null}; +BxV=function(C,b,h){var N=C.getVideoData(),p=b.getVideoData();if(!N.Y().supportsGaplessShorts())return{nq:"env"};if(h.W){if(N.LZ&&!N.isAd()||p.LZ&&!p.isAd())return{nq:"autoplay"}}else if(N.LZ||p.LZ)return{nq:"autoplay"};if(!N.L)return{nq:"client"};if(!C.nf())return{nq:"no-empty"};C=TxW(h,C,b,Infinity);return C!=null?{nq:C.msg}:null}; +XD=function(C){g.O.call(this);this.app=C;this.G=this.X=this.K=this.j=null;this.N=1;this.events=new g.ui(this);this.events.S(this.app.h4,g.PZ("gaplessshortslooprange"),this.L);g.D(this,this.events)}; +I$l=function(){this.X=this.W=this.N=this.J=this.G=this.K=this.j=!1}; +x2l=function(C){var b=new I$l;b.j=C.D("h5_gapless_support_types_diff");b.G=C.D("h5_gapless_error_on_fps_diff");b.J=C.D("html5_gapless_use_format_info_fix");b.N=C.D("html5_gapless_disable_on_av1")&&!C.D("html5_gapless_enable_on_av1");b.K=C.D("html5_gapless_check_codec_diff_strictly");b.W=C.D("html5_gapless_on_ad_autoplay");b.X=C.D("html5_gapless_disable_diff_aspect_radio");return b}; +g.Kc=function(C,b,h,N){N=N===void 0?!1:N;tA.call(this);this.mediaElement=C;this.start=b;this.end=h;this.j=N}; +wMS=function(C,b,h,N,p,P){P=P===void 0?0:P;g.O.call(this);var c=this;this.policy=C;this.j=b;this.K=h;this.bf=p;this.G=P;this.X=this.N=null;this.currentVideoDuration=this.W=-1;this.J=!1;this.v4=new nI;this.vM=N-b.Z9()*1E3;this.v4.then(void 0,function(){}); +this.timeout=new g.C2(function(){c.q9("timeout")},1E4); +g.D(this,this.timeout);this.L=isFinite(N);this.status={status:0,error:null}}; +htl=function(C){var b,h,N,p,P,c,e,L,Z,Y;return g.R(function(a){if(a.j==1){if(C.HE())return a.return(Promise.reject(Error(C.status.error||"disposed")));C.timeout.start();b=g.sb.nP();return g.J(a,C.v4,2)}g.sb.zP("gtfta",b);h=C.j.Q_();if(h.isEnded())return C.q9("ended_in_finishTransition"),a.return(Promise.reject(Error(C.status.error||"")));if(!C.X||!OO(C.X))return C.q9("next_mse_closed"),a.return(Promise.reject(Error(C.status.error||"")));if(C.K.Jj()!==C.X)return C.q9("next_mse_mismatch"),a.return(Promise.reject(Error(C.status.error|| +"")));N=C5o(C);p=N.TU;P=N.cq;c=N.P3;C.j.Ue(!1,!0);e=bqV(h,p,c,!C.K.getVideoData().isAd());C.K.setMediaElement(e);(L=C.j.bP())&&C.K.H1(L.iZ,L.uZ);C.L&&(C.K.seekTo(C.K.getCurrentTime()+.001,{z0:!0,S0:3,Cj:"gapless_pseudo"}),e.play(),Rf());Z=h.jf();Z.cpn=C.j.getVideoData().clientPlaybackNonce;Z.st=""+p;Z.et=""+c;C.K.jp("gapless",Z);C.j.jp("gaplessTo",{cpn:C.K.getVideoData().clientPlaybackNonce});Y=C.j.getPlayerType()===C.K.getPlayerType();C.j.oW(P,!0,!1,Y,C.K.getVideoData().clientPlaybackNonce);C.K.oW(C.K.getCurrentTime(), +!0,!0,Y,C.j.getVideoData().clientPlaybackNonce);C.K.M7();g.eI(function(){!C.K.getVideoData().nO&&C.K.getPlayerState().isOrWillBePlaying()&&C.K.sZ()}); +Ob(C,6);C.dispose();return a.return(Promise.resolve())})}; +P5c=function(C){if(C.K.getVideoData().N){var b=C.bf.Y().D("html5_gapless_suspend_next_loader")&&C.G===1;C.K.tQ(C.X,b,N5l(C));Ob(C,3);gxW(C);var h=pBc(C);b=h.Xu;h=h.ZX;b.subscribe("updateend",C.xE,C);h.subscribe("updateend",C.xE,C);C.xE(b);C.xE(h)}}; +gxW=function(C){C.j.unsubscribe("internalvideodatachange",C.HM,C);C.K.unsubscribe("internalvideodatachange",C.HM,C);C.bf.Y().D("html5_gapless_use_format_info_fix")&&(C.j.unsubscribe("internalvideoformatchange",C.HM,C),C.K.unsubscribe("internalvideoformatchange",C.HM,C));C.j.unsubscribe("mediasourceattached",C.HM,C);C.K.unsubscribe("statechange",C.Ya,C)}; +bqV=function(C,b,h,N){C=C.isView()?C.mediaElement:C;return new g.Kc(C,b,h,N)}; +Ob=function(C,b){b<=C.status.status||(C.status={status:b,error:null},b===5&&C.v4.resolve())}; +N5l=function(C){return C.bf.Y().D("html5_gapless_no_clear_buffer_timeline")&&C.G===1&&x6(C.j.getVideoData())}; +C5o=function(C){var b=C.j.Q_();b=b.isView()?b.start:0;var h=C.j.getVideoData().isLivePlayback?Infinity:C.j.CB(!0);h=Math.min(C.vM/1E3,h)+b;var N=C.L?100:0;C=h-C.K.l3()+N;return{Bl:b,TU:C,cq:h,P3:Infinity}}; +pBc=function(C){return{Xu:C.N.j.Ns,ZX:C.N.K.Ns}}; +vU=function(C){g.O.call(this);var b=this;this.app=C;this.G=this.K=this.j=null;this.L=!1;this.N=this.X=null;this.J=x2l(this.app.Y());this.W=function(){g.eI(function(){jBl(b)})}}; +cso=function(C,b,h,N,p){N=N===void 0?0:N;p=p===void 0?0:p;C.nf()||DM(C);C.X=new nI;C.j=b;var P=h,c=p===0;c=c===void 0?!0:c;var e=C.app.i$(),L=e.getVideoData().isLivePlayback?Infinity:e.CB(!0)*1E3;P>L&&(P=L-200,C.L=!0);c&&e.getCurrentTime()>=P/1E3?C.W():(C.K=e,c&&(c=P,P=C.K,C.app.h4.addEventListener(g.p8("vqueued"),C.W),c=isFinite(c)||c/1E3>P.getDuration()?c:0x8000000000000,C.G=new g.Ny(c,0x8000000000000,{namespace:"vqueued"}),P.addCueRange(C.G)));c=N/=1E3;P=b.getVideoData().j;N&&P&&C.K&&(e=N,L=0, +b.getVideoData().isLivePlayback&&(c=Math.min(h/1E3,C.K.CB(!0)),L=Math.max(0,c-C.K.getCurrentTime()),e=Math.min(N,b.CB()+L)),c=x8H(P,e)||N,c!==N&&C.j.jp("qvaln",{st:N,at:c,rm:L,ct:e}));b=c;N=C.j;N.getVideoData().OU=!0;N.getVideoData().L=!0;N.Us(!0);P={};C.K&&(P=C.K.YA(),c=C.K.getVideoData().clientPlaybackNonce,P={crt:(P*1E3).toFixed(),cpn:c});N.jp("queued",P);b!==0&&N.seekTo(b+.01,{z0:!0,S0:3,Cj:"videoqueuer_queued"});C.N=new wMS(C.J,C.app.i$(),C.j,h,C.app,p);h=C.N;h.status.status!==Infinity&&(Ob(h, +1),h.j.subscribe("internalvideodatachange",h.HM,h),h.K.subscribe("internalvideodatachange",h.HM,h),h.bf.Y().D("html5_gapless_use_format_info_fix")&&(h.j.subscribe("internalvideoformatchange",h.HM,h),h.K.subscribe("internalvideoformatchange",h.HM,h)),h.j.subscribe("mediasourceattached",h.HM,h),h.K.subscribe("statechange",h.Ya,h),h.j.subscribe("newelementrequired",h.dD,h),h.HM());return C.X}; +jBl=function(C){var b,h,N,p,P,c,e,L,Z;g.R(function(Y){switch(Y.j){case 1:if(C.HE()||!C.X||!C.j)return Y.return();C.L&&C.app.i$().DN(!0,!1);h=C.app.Y().D("html5_force_csdai_gapful_transition")&&((b=C.app.i$())==null?void 0:b.getVideoData().isDaiEnabled());N=null;if(!C.N||h){Y.WE(2);break}g.z6(Y,3);return g.J(Y,htl(C.N),5);case 5:g.VH(Y,2);break;case 3:N=p=g.MW(Y);case 2:if(!C.j)return Y.return();g.sb.LT("vqsp",function(){C.app.ub(C.j)}); +if(!C.j)return Y.return();P=C.j.Q_();C.app.Y().D("html5_gapless_seek_on_negative_time")&&P&&P.getCurrentTime()<-.01&&C.j.seekTo(0);g.sb.LT("vqpv",function(){C.app.playVideo()}); +if(N||h)C.j?(c=N?N.message:"forced",(e=C.K)==null||e.jp("gapfulfbk",{r:c}),C.j.nR(c)):(L=C.K)==null||L.jp("gapsp",{});Z=C.X;DM(C);Z&&Z.resolve();return Y.return(Promise.resolve())}})}; +DM=function(C,b){b=b===void 0?!1:b;if(C.K){if(C.G){var h=C.K;C.app.h4.removeEventListener(g.p8("vqueued"),C.W);h.removeCueRange(C.G)}C.K=null;C.G=null}C.N&&(C.N.status.status!==6&&(h=C.N,h.status.status!==Infinity&&h.G!==1&&h.q9("Canceled")),C.N=null);C.X=null;C.j&&!b&&C.j!==C.app.A4()&&C.j!==C.app.i$()&&nJ(C.j);C.j&&b&&C.j.yC();C.j=null;C.L=!1}; +kJW=function(C){var b;return((b=C.N)==null?void 0:b.currentVideoDuration)||-1}; +et_=function(C,b,h){if(C.nf())return"qie";if(C.j==null||C.j.vE.HE()||C.j.getVideoData()==null)return"qpd";if(b.videoId!==C.j.tb())return"vinm";if(kJW(C)<=0)return"ivd";if(h!==1)return"upt";if((h=C.N)==null)C=void 0;else if(h.getStatus().status!==5)C="niss";else if(TxW(h.policy,h.j,h.K,h.vM)!=null)C="pge";else{b=pBc(h);C=b.Xu;var N=b.ZX;b=g.Zc(h.bf.Y().experiments,"html5_shorts_gapless_next_buffer_in_seconds");h=h.W+b;N=pI(N.P7(),h);C=pI(C.P7(),h);C=!(b>0)||N&&C?null:"neb"}return C!=null?C:null}; +L41=function(){g.cr.call(this);var C=this;this.fullscreen=0;this.X=this.N=this.pictureInPicture=this.j=this.K=this.inline=!1;this.G=function(){C.ws()}; +LA1(this.G);this.W=this.getVisibilityState(this.r0(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.S1(),this.iQ(),this.Lt(),this.bY())}; +GG=function(C){return!(C.isMinimized()||C.isInline()||C.isBackground()||C.S1()||C.iQ()||C.Lt()||C.bY())}; +ZqS=function(C,b){g.O.call(this);this.N=this.X=null;this.j=C;this.K=b}; +F46=function(C){var b=C.experiments,h=b.Fo.bind(b);Y6_=h("html5_use_async_stopVideo");a3l=h("html5_pause_for_async_stopVideo");l3_=h("html5_not_reset_media_source");h("html5_listen_for_audio_output_changed")&&(yMS=!0);v6=h("html5_not_reset_media_source");oxK=h("html5_not_reset_media_source");LI=h("html5_retain_source_buffer_appends_for_debugging");hW6=h("web_enable_auto_pip")||h("web_enable_pip_on_miniplayer");h("html5_mediastream_applies_timestamp_offset")&&(eQ=!0);var N=g.Zc(b,"html5_cobalt_override_quic"); +N&&MD("QUIC",+(N>0));(N=g.Zc(b,"html5_cobalt_audio_write_ahead_ms"))&&MD("Media.AudioWriteDurationLocal",N);(N=h("html5_cobalt_enable_decode_to_texture"))&&MD("Media.PlayerConfiguration.DecodeToTexturePreferred",N?1:0);(C.tZ()||h("html5_log_cpu_info"))&&czc();Error.stackTraceLimit=50;var p=g.Zc(b,"html5_idle_rate_limit_ms");p&&Object.defineProperty(window,"requestIdleCallback",{value:function(P){return window.setTimeout(P,p)}}); +fPU(C.G);om=h("html5_use_ump_request_slicer");G0H=h("html5_record_now");h("html5_disable_streaming_xhr")&&(D5=!1);h("html5_byterate_constraints")&&(Bx=!0);h("html5_use_non_active_broadcast_for_post_live")&&(X2=!0);h("html5_sunset_aac_high_codec_family")&&(On["141"]="a")}; +GJW=function(C){return C.slice(12).replace(/_[a-z]/g,function(b){return b.toUpperCase().replace("_","")}).replace("Dot",".")}; +S6V=function(C){var b={},h;for(h in C.experiments.flags)if(h.startsWith("cobalt_h5vcc")){var N=GJW(h),p=g.Zc(C.experiments,h);N&&p&&(b[N]=MD(N,p))}return b}; +dB=function(C,b,h,N,p){p=p===void 0?[]:p;g.O.call(this);this.If=C;this.pJ=b;this.X=h;this.segments=p;this.j=void 0;this.K=new Map;p.length&&(this.j=p[0])}; +$k6=function(C){if(!(C.segments.length<2)){var b=C.segments.shift();if(b){var h=b.j,N=[];if(h.size){h=g.z(h.values());for(var p=h.next();!p.done;p=h.next()){p=g.z(p.value);for(var P=p.next();!P.done;P=p.next()){P=P.value;for(var c=g.z(P.segments),e=c.next();!e.done;e=c.next())(e=WU(e.value))&&N.push(e);P.removeAll()}}}(h=WU(b))&&N.push(h);N=g.z(N);for(h=N.next();!h.done;h=N.next())C.K.delete(h.value);b.dispose()}}}; +Eb=function(C,b,h,N){if(!C.j||b>h)return!1;b=new dB(C.If,b,h,C.j,N);N=g.z(N);for(h=N.next();!h.done;h=N.next()){h=h.value;var p=WU(h);p&&p!==WU(C.j)&&C.K.set(p,[h])}C=C.j;C.j.has(b.HF())?C.j.get(b.HF()).push(b):C.j.set(b.HF(),[b]);return!0}; +bT=function(C,b){return C.K.get(b)}; +ztc=function(C,b,h){C.K.set(b,h)}; +nc=function(C,b,h,N,p,P){return new HqK(h,h+(N||0),!N,b,C,p,P)}; +HqK=function(C,b,h,N,p,P,c){g.O.call(this);this.pJ=C;this.N=b;this.K=h;this.type=N;this.X=p;this.videoData=P;this.L4=c;this.j=new Map;L6(P)}; +WU=function(C){return C.videoData.clientPlaybackNonce}; +VyV=function(C){if(C.j.size)for(var b=g.z(C.j.values()),h=b.next();!h.done;h=b.next()){h=g.z(h.value);for(var N=h.next();!N.done;N=h.next())N.value.dispose()}C.j.clear()}; +Myc=function(C){this.end=this.start=C}; +g.tY=function(){this.j=new Map;this.N=new Map;this.K=new Map}; +g.TX=function(C,b,h,N){g.O.call(this);var p=this;this.api=C;this.If=b;this.playback=h;this.app=N;this.Qz=new g.tY;this.K=new Map;this.W=[];this.G=[];this.N=new Map;this.AZ=new Map;this.KO=new Map;this.CO=null;this.Yg=NaN;this.G$=this.SC=null;this.ob=new g.C2(function(){q6c(p,p.Yg,p.SC||void 0)}); +this.events=new g.ui(this);this.sI=15E3;this.nO=new g.C2(function(){p.sX=!0;p.playback.Bu(p.sI);mkK(p);p.Sr(!1)},this.sI); +this.sX=!1;this.J=new Map;this.zi=[];this.N2=null;this.w9=new Set;this.Df=[];this.IV=[];this.Yr=[];this.yd=[];this.j=void 0;this.q2=0;this.t4=!0;this.V=!1;this.rO=[];this.Yh=new Set;this.OU=new Set;this.aL=new Set;this.t6=0;this.m6=new Set;this.HW=0;this.rG=this.Xs=!1;this.nJ=this.X="";this.kh=null;this.dn={A_O:function(){return p.K}, +qF2:function(){return p.W}, +vAz:function(){return p.N}, +gx:function(P){p.onCueRangeEnter(p.K.get(P))}, +Px6:function(P){p.onCueRangeExit(p.K.get(P))}, +R$f:function(P,c){p.K.set(P,c)}, +dkO:function(P){p.nJ=P}, +KT:function(){return p.KT()}, +Ipf:function(P){return p.KO.get(P)}}; +this.playback.getPlayerType();this.playback.vZ(this);this.Vz=this.If.tZ();g.D(this,this.ob);g.D(this,this.events);g.D(this,this.nO);this.events.S(this.api,g.p8("serverstitchedcuerange"),this.onCueRangeEnter);this.events.S(this.api,g.PZ("serverstitchedcuerange"),this.onCueRangeExit)}; +rsl=function(C,b,h,N,p,P,c,e){var L=f3l(C,P,P+p);C.sX&&C.jC({adaftto:1});h||C.jC({missadcon:1,enter:P,len:p,aid:e});C.L&&!C.L.By&&(C.L.By=e);C.rG&&C.jC({adfbk:1,enter:P,len:p,aid:e});var Z=C.playback;c=c===void 0?P+p:c;P===c&&!p&&C.If.D("html5_allow_zero_duration_ads_on_timeline")&&C.jC({attl0d:1});P>c&&BU(C,{reason:"enterTime_greater_than_return",pJ:P,n9:c});var Y=Z.Mo()*1E3;PZ&&BU(C,{reason:"parent_return_greater_than_content_duration",n9:c,zMh:Z});Z=null;Y=g.ks(C.G,{n9:P},function(a,l){return a.n9-l.n9}); +Y>=0&&(Z=C.G[Y],Z.n9>P&&AsV(C,b.video_id||"",P,c,Z));if(L&&Z)for(Y=0;Y.5&&C.jC({ttdtb:1,delta:c,cpn:p.cpn,enter:b.adCpn,exit:h.adCpn,seek:N,skip:P});C.api.D("html5_ssdai_enable_media_end_cue_range")&&C.api.PY();if(b.isAd&&h.isAd){p=!!P;if(b.adCpn&&h.adCpn){var e=C.N.get(b.adCpn);var L=C.N.get(h.adCpn)}p?C.jC({igtransskip:1,enter:b.adCpn,exit:h.adCpn,seek:N,skip:P}):Cu(C,L,e,h.m3,b.m3,N,p)}else if(!b.isAd&&h.isAd){C.nJ=p.cpn;C.api.publish("serverstitchedvideochange");e=xB(C,"a2c");C.jC(e); +C.t6=0;if(e=h.sG)C.q2=e.end;var Z;h.adCpn&&(Z=C.N.get(h.adCpn));Z&&C.playback.nN(Z,p,h.m3,b.m3,N,!!P)}else if(b.isAd&&!h.isAd){var Y;b.adCpn&&(Y=C.N.get(b.adCpn));Y&&(C.q2=0,C.nJ=Y.cpn,wB(C,Y),Z=xB(C,"c2a",Y),C.jC(Z),C.t6=1,C.playback.nN(p,Y,h.m3,b.m3,N,!!P))}}; +hC=function(C,b,h){h=h===void 0?0:h;var N=g.ks(C.G,{pJ:(b+h)*1E3},function(e,L){return e.pJ-L.pJ}); +N=N<0?(N+2)*-1:N;if(N>=0)for(var p=b*1E3,P=N;P<=N+1&&P=c.pJ-h*1E3&&p<=c.n9+h*1E3)return{GV:c,oa:b}}return{GV:void 0,oa:b}}; +JsH=function(C,b){var h="";(b=iqW(C,b))&&(h=b.getId());return h?C.N.get(h):void 0}; +iqW=function(C,b){if(C.nJ){var h=C.K.get(C.nJ);if(h&&h.start-200<=b&&h.end+200>=b)return h}C=g.z(C.K.values());for(h=C.next();!h.done;h=C.next())if(h=h.value,h.start<=b&&h.end>=b)return h}; +q6c=function(C,b,h){var N=C.G$||C.app.i$().getPlayerState();Nf(C,!0);C.playback.seekTo(b,h);C=C.app.i$();b=C.getPlayerState();N.isOrWillBePlaying()&&!b.isOrWillBePlaying()?C.playVideo():N.isPaused()&&!b.isPaused()&&C.pauseVideo()}; +Nf=function(C,b){C.Yg=NaN;C.SC=null;C.ob.stop();C.CO&&b&&C.CO.Lu();C.G$=null;C.CO=null}; +uaV=function(C){var b=b===void 0?-1:b;var h=h===void 0?Infinity:h;for(var N=[],p=g.z(C.G),P=p.next();!P.done;P=p.next())P=P.value,(P.pJh)&&N.push(P);C.G=N;N=g.z(C.K.values());for(p=N.next();!p.done;p=N.next())p=p.value,p.start>=b&&p.end<=h&&(C.playback.removeCueRange(p),C.K.delete(p.getId()),C.jC({rmAdCR:1}));N=hC(C,b/1E3);b=N.GV;N=N.oa;if(b&&(N=N*1E3-b.pJ,p=b.pJ+N,b.durationMs=N,b.n9=p,N=C.K.get(b.cpn))){p=g.z(C.W);for(P=p.next();!P.done;P=p.next())P=P.value,P.start===N.end?P.start=b.pJ+ +b.durationMs:P.end===N.start&&(P.end=b.pJ);N.start=b.pJ;N.end=b.pJ+b.durationMs}if(b=hC(C,h/1E3).GV){var c;N="playback_timelinePlaybackId_"+b.v7+"_video_id_"+((c=b.videoData)==null?void 0:c.videoId)+"_durationMs_"+b.durationMs+"_enterTimeMs_"+b.pJ+"_parentReturnTimeMs_"+b.n9;C.RF("Invalid_clearEndTimeMs_"+h+"_that_falls_during_"+N+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; +RtK=function(C){C.Qz.clearAll();C.K.clear();C.W=[];C.G=[];C.N.clear();C.AZ.clear();C.KO.clear();C.J.clear();C.zi=[];C.N2=null;C.w9.clear();C.Df=[];C.IV=[];C.Yr=[];C.yd=[];C.rO=[];C.Yh.clear();C.OU.clear();C.aL.clear();C.m6.clear();C.sX=!1;C.j=void 0;C.q2=0;C.t4=!0;C.V=!1;C.t6=0;C.HW=0;C.Xs=!1;C.rG=!1;C.X="";C.nO.isActive()&&I$(C)}; +Uko=function(C,b,h,N,p,P){if(!C.rG)if(g.QBo(C,h))C.jC({gdu:"undec",seg:h,itag:p});else if(b=gR(C,b,h,N,P),!(C.playback.getVideoData().qz()&&(b==null?0:b.gp)))return b}; +gR=function(C,b,h,N,p){var P=C.J.get(h);if(!P){if(P=XBl(C,b))return P;b=C.nt(h-1,N!=null?N:2);if(p)return C.jC({misscue:p,sq:h,type:N,prevsstate:b==null?void 0:b.Vh,prevrecord:C.J.has(h-1)}),C.J.get(h-1);if((b==null?void 0:b.Vh)===2)return C.jC({adnf:1,sq:h,type:N,prevrecord:C.J.has(h-1)}),C.J.get(h-1)}return P}; +XBl=function(C,b){b+=C.c5();if(C.If.D("html5_lifa_overdecorate_fix"))a:{var h=1;h=h===void 0?0:h;var N=b*1E3;C=g.z(C.G);for(var p=C.next();!p.done;p=C.next()){p=p.value;var P=p.sS?p.sS*1E3:p.pJ;if(N>=p.pJ-h*1E3&&N<=P+p.durationMs+h*1E3){h={GV:p,oa:b};break a}}h={GV:void 0,oa:b}}else C.If.D("html5_use_time_without_threshold_first")&&(h=hC(C,b)),C.If.D("html5_use_time_without_threshold_first")&&((N=h)==null?0:N.GV)||(h=hC(C,b,1));var c;return(c=h)==null?void 0:c.GV}; +K4l=function(C,b){b=b===void 0?"":b;var h=CO(b)||void 0;if(!b||!h){var N;C.jC({adcfg:(N=b)==null?void 0:N.length,dcfg:h==null?void 0:h.length})}return h}; +sBc=function(C){if(C.rO.length)for(var b=g.z(C.rO),h=b.next();!h.done;h=b.next())C.onCueRangeExit(h.value);b=g.z(C.K.values());for(h=b.next();!h.done;h=b.next())C.playback.removeCueRange(h.value);b=g.z(C.W);for(h=b.next();!h.done;h=b.next())C.playback.removeCueRange(h.value);C.K.clear();C.W=[];C.Qz.clearAll();C.j||(C.t4=!0)}; +Cu=function(C,b,h,N,p,P,c){if(b&&h){C.nJ=h.cpn;wB(C,h);var e=xB(C,"a2a",h);C.jC(e);C.t6++;C.playback.nN(b,h,N||0,p||0,!!P,!!c)}else C.jC({misspbkonadtrans:1,enter:(h==null?void 0:h.cpn)||"",exit:(b==null?void 0:b.cpn)||"",seek:P,skip:c})}; +vxc=function(C,b,h,N){if(N)for(N=0;Nh){var P=p.end;p.end=b;Oqc(C,h,P)}else if(p.start>=b&&p.starth)p.start=h;else if(p.end>b&&p.end<=h&&p.start=b&&p.end<=h){C.playback.removeCueRange(p);if(C.rO.includes(p))C.onCueRangeExit(p);C.W.splice(N,1);continue}N++}else Oqc(C,b,h)}; +Oqc=function(C,b,h){b=C.Eg(b,h);h=!0;g.Ys(C.W,b,function(c,e){return c.start-e.start}); +for(var N=0;N0){var p=C.W[N],P=C.W[N-1];if(Math.round(P.end/1E3)>=Math.round(p.start/1E3)){P.end=p.end;p!==b?C.playback.removeCueRange(p):h=!1;C.W.splice(N,1);continue}}N++}if(h)for(C.playback.addCueRange(b),b=C.playback.JK("serverstitchedcuerange",36E5),b=g.z(b),h=b.next();!h.done;h=b.next())C.K.delete(h.value.getId())}; +pu=function(C,b,h){if(h===void 0||!h){h=g.z(C.zi);for(var N=h.next();!N.done;N=h.next()){N=N.value;if(b>=N.start&&b<=N.end)return;if(b===N.end+1){N.end+=1;return}}C.zi.push(new Myc(b))}}; +g.QBo=function(C,b){C=g.z(C.zi);for(var h=C.next();!h.done;h=C.next())if(h=h.value,b>=h.start&&b<=h.end)return!0;return!1}; +AsV=function(C,b,h,N,p){var P;b={reason:"overlapping_playbacks",g3p:b,pJ:h,n9:N,kIO:p.v7,UWo:((P=p.videoData)==null?void 0:P.videoId)||"",gC4:p.durationMs,Fpo:p.pJ,Lpz:p.n9};BU(C,b)}; +BU=function(C,b,h){C.playback.Z5(b,h)}; +Dk1=function(C,b){var h=[];C=C.KO.get(b);if(!C)return[];C=g.z(C);for(b=C.next();!b.done;b=C.next())b=b.value,b.cpn&&h.push(b.cpn);return h}; +dkW=function(C,b,h){var N=0;C=C.KO.get(h);if(!C)return-1;C=g.z(C);for(h=C.next();!h.done;h=C.next()){if(h.value.cpn===b)return N;N++}return-1}; +W4V=function(C,b){var h=0;C=C.KO.get(b);if(!C)return 0;C=g.z(C);for(b=C.next();!b.done;b=C.next())b=b.value,b.durationMs!==0&&b.n9!==b.pJ&&h++;return h}; +Exl=function(C,b,h){var N=!1;if(h&&(h=C.KO.get(h))){h=g.z(h);for(var p=h.next();!p.done;p=h.next())p=p.value,p.durationMs!==0&&p.n9!==p.pJ&&(p=p.cpn,b===p&&(N=!0),N&&!C.OU.has(p)&&(C.jC({decoratedAd:p}),C.OU.add(p)))}}; +mkK=function(C){C.Vz&&C.jC({adf:"0_"+((new Date).getTime()/1E3-C.HW)+"_isTimeout_"+C.sX})}; +f3l=function(C,b,h){if(C.Df.length)for(var N=g.z(C.Df),p=N.next(),P={};!p.done;P={uS:void 0},p=N.next()){P.uS=p.value;p=P.uS.startSecs*1E3;var c=P.uS.YJ*1E3+p;if(b>p&&bp&&h0&&N>b*1E3+C.bvz)&&(N=wBc(C,h))){b=!1;h=void 0;N=g.z(N.segments);for(p=N.next();!p.done;p=N.next()){p=p.value;if(b){h=p;break}WU(p)===C.nJ&&(b=!0)}N=void 0;if(h)N=WU(h);else if(b){var P;N=(P=C.timeline.j)==null?void 0:WU(P)}if(N)C.finishSegmentByCpn(C.nJ,N,2,void 0);else{var c;C.api.jp("ssap",{mfnc:1,mfncc:(c=C.timeline.j)== +null?void 0:WU(c)})}}}}; +B5S=function(C){return C.api.D("html5_force_ssap_gapful_switch")||C.api.D("html5_ssap_enable_legacy_browser_logic")&&!Ye()}; +N7S=function(C,b,h,N){C.ol.set(b,N);bHl(C,b,h);hll(C,h)}; +MV=function(C,b){C=bT(C.timeline,b);return(C==null?0:C.length)?C[0].HF():0}; +qV=function(C,b){var h=h===void 0?!1:h;var N=C.timeline.j;if(!N)return{clipId:"",Uc:0};var p=gZo(C,b,h);if(p)return{clipId:WU(p)||"",Uc:p.HF()};C.api.jp("mci",{cs:WU(N),mt:b,tl:ag(C),invt:!!h});return{clipId:"",Uc:0}}; +xL=function(C){var b=C.timeline.j;if(!b)return 0;C=0;if(b.j.size===0)return(b.tT()-b.HF())/1E3;b=b.j.values();b=g.z(b);for(var h=b.next();!h.done;h=b.next()){h=g.z(h.value);for(var N=h.next();!N.done;N=h.next())N=N.value,C+=(N.tT()-N.HF())/1E3}return C}; +PMH=function(C,b){return(C=pi1(C,b*1E3))?C.HF():0}; +jpl=function(C,b){var h=bT(C.timeline,b);b=0;if(h==null?0:h.length)for(C=g.z(h),h=C.next();!h.done;h=C.next())h=h.value,b+=(h.tT()-h.HF())/1E3;else return xL(C);return b}; +pi1=function(C,b){if(C=bT(C.timeline,C.nJ)){C=g.z(C);for(var h=C.next();!h.done;h=C.next())if(h=h.value,h.HF()<=b&&h.tT()>=b)return h}}; +cb1=function(C){var b=C.playback.getVideoData();C.nJ&&(C=C.ym.get(C.nJ))&&(b=C);return b}; +wBc=function(C,b,h){h=h===void 0?!1:h;var N=C.timeline.j;if(N){N=N.j;var p=Array.from(N.keys());g.Ls(p);b=g.ks(p,b);b=N.get(p[b<0?(b+2)*-1:b]);if(!h&&b){h=g.z(b);for(b=h.next();!b.done;b=h.next())if(b=b.value,b.HF()!==b.tT())return b;return C.timeline}return b&&b.length>0?b[b.length-1]:void 0}}; +gZo=function(C,b,h){h=h===void 0?!1:h;var N=wBc(C,b,h);if(N){if(C=N.segments,C.length){for(var p=g.z(C),P=p.next();!P.done;P=p.next())if(P=P.value,P.HF()<=b&&P.tT()>b)return P;if(h&&N.HF()===N.tT())return C[0]}}else C.api.jp("ssap",{ctnf:1})}; +ty_=function(C,b){var h;if(C.pN)for(h=C.Vv.shift();h&&h!==C.pN;)h=C.Vv.shift();else h=C.Vv.shift();if(h){if(C.FQ.has(h))ksW(C,h);else if(b===3||b===4)C.dS.stop(),C.api.playVideo(1,C.api.D("html5_ssap_keep_media_on_finish_segment"));C.ol.set(C.nJ,b);C.api.jp("ssap",{onvftn:1});hll(C,h);return!1}C.api.jp("ssap",{onvftv:1});C.dS.stop();return!0}; +ksW=function(C,b){b=bT(C.timeline,b);if(b==null?0:b.length)C.api.pauseVideo(),C.dS.start(b[0].L4)}; +hll=function(C,b){var h=C.playback.getVideoData(),N=h.clientPlaybackNonce;C.r5&&(C.events.D9(C.r5),C.r5=null,C.playback.Jf());var p=C.nJ,P=!1;if(p==="")p=N,P=!0;else if(p===void 0){var c=C.playback.vE.XE().jq;c&&C.timeline.K.has(c)&&(p=c);C.api.jp("ssap",{mcc:p+";"+b});C.playback.zE(new Mw("ssap.timelineerror",{e:"missing_current_cpn",pcpn:p,ccpn:b}))}if(p===b)P&&h&&elH(C,h,P);else{c=C.ol.get(p);if(!P&&(!c||c!==3&&c!==5&&c!==6&&c!==7)){var e=C.api.PY(C.nJ);C.api.jp("ssap",{nmec:e,cpc:C.nJ,ec:b})}c&& +c!==2||C.VO();C.nJ=b;C.VO();b=bT(C.timeline,C.nJ);if(b==null?0:b.length){b=b[0];e=b.getType();p!==N&&(C.p4=p,h=C.ym.get(p));c?C.ol.delete(p):c=P?1:2;C.api.D("html5_ssap_pacf_qoe_ctmp")&&e===2&&!b.K&&(C.r5=C.events.S(C.api,"onVideoProgress",C.o6X));C.api.jp("ssapt",{ostro:c,pcpn:p,ccpn:C.nJ});a:{var L=C.nJ;if(!C.DT.has(L))for(var Z=g.z(C.DT),Y=Z.next();!Y.done;Y=Z.next()){var a=g.z(Y.value);Y=a.next().value;a=a.next().value;if(a.getId().includes(L)){L=Y;break a}}}Y=L;Z=C.api.Y().D("html5_ssap_insert_su_before_nonvideo")&& +Y!==C.nJ;a=C.playback.vE.XE();if(a.jq!==Y){var l=a.CJ(a.jq);L=a.CJ(Y);a.jq=Y;L!==l&&(l.qoe&&(Y=l.qoe,Y.provider.If.tZ()&&Y.jp("ssap",{qoesus:"1",vid:Y.provider.videoData.videoId}),Z&&(Z=g.HO(Y.provider),Hw6(Y,Z,"SU")),isNaN(Y.W)||g.$G(Y.W)),L.resume())}Z=Math.max(0,Pq(C,p));L=C.playback.getCurrentTime();Y=Math.max(0,L-MV(C,C.nJ)/1E3);L=b.getVideoData();a=c===3||c===5||c===6||c===7;C.api.D("html5_ssap_skip_illegal_seeking")&&(l=C.playback.getPlayerState(),l=!g.B(l,8)&&g.B(l,16),a=a||l,l&&C.api.jp("ssap", +{iis:1}));l=C.playback;var F=p,G=C.nJ,V=C.playback.getPlayerState();l.vE.XE().t5(F,G,Z,Y,!1,a,V,!0);C.api.jp("ssapt",{ostri:c,pcpn:p,ccpn:C.nJ});var q;Z=p;Y=C.nJ;a=(q=C.Rt.get(p))!=null?q:(0,g.Ai)();dsH(Z,Y,N,L,a,h);C.Rt.delete(p);P?h=void 0:h||C.api.jp("ssap",{pvdm:p+";"+C.nJ,pvdmc:C.nJ===N?"1":"0"});C.api.jp("ssap",{tpac:p+";"+C.nJ,tpcc:N,tpv:(L==null?0:L.bF())?"1":"0"},!1,1);C.api.Y().D("html5_ssap_cleanup_player_switch_ad_player")&&C.api.Qu();C.api.publish("videodatachange","newdata",L,e,h,c); +b.K||C.playback.getVideoData().publish("dataupdated");C.FQ.delete(p);C.pN="";L&&e===1?elH(C,L):C.playback.jp("ssap",{nis:C.nJ});e===2?C.t6++:C.t6=0}}}; +elH=function(C,b,h){h=h===void 0?!1:h;if(b.startSeconds&&C.dk){var N=b.startSeconds;b=bT(C.timeline,b.clientPlaybackNonce);if(b==null?0:b.length)N+=b[0].HF()/1E3,C.api.D("htm5_ssap_ignore_initial_seek_if_too_big")&&N>=C.b_()||(C.playback.seekTo(N,{sJ:!0}),C.dk=!1,C.playback.jp("ssap",{is:C.nJ,co:h?"1":"0",tse:N.toFixed()}))}}; +bHl=function(C,b,h){b=bT(C.timeline,b);if(b!=null&&b.length&&(b=wBc(C,b[0].HF()))){b=g.z(b.segments);for(var N=b.next();!N.done;N=b.next()){N=N.value;if(WU(N)===h)break;if(N=WU(N)){var p=C.DT.get(N);p&&C.playback.removeCueRange(p);C.DT.delete(N)}}}}; +mA=function(C){return C.playback.getVideoData().clientPlaybackNonce}; +RN6=function(C,b){if(C.NP&&C.nJ!==b)return!1;if(C.D4)return!0;if(b=C.DT.get(b))if(b=b.getId().split(","),b.length>1)for(var h=0;hP)return jA(C,"enterAfterReturn enterTimeMs="+p+" is greater than parentReturnTimeMs="+P.toFixed(3),c,e),"";var Z=L.Mo()*1E3;if(pZ)return L="returnAfterDuration parentReturnTimeMs="+P.toFixed(3)+" is greater than parentDurationMs="+Z+". And timestampOffset in seconds is "+ +L.Z9(),jA(C,L,c,e),"";Z=null;for(var Y=g.z(C.K),a=Y.next();!a.done;a=Y.next()){a=a.value;if(p>=a.pJ&&pa.pJ)return jA(C,"overlappingReturn",c,e),"";if(P===a.pJ)return jA(C,"outOfOrder",c,e),"";p===a.n9&&(Z=a)}c="cs_childplayback_"+YZx++;e={sG:cq(N,!0),vM:Infinity,target:null};var l={v7:c,playerVars:b,playerType:h,durationMs:N,pJ:p,n9:P,Hj:e};C.K=C.K.concat(l).sort(function(V,q){return V.pJ-q.pJ}); +Z?aXl(C,Z,{sG:cq(Z.durationMs,!0),vM:Z.Hj.vM,target:l}):(b={sG:cq(p,!1),vM:p,target:l},C.G.set(b.sG,b),L.addCueRange(b.sG));b=!0;if(C.j===C.app.i$()&&(L=L.getCurrentTime()*1E3,L>=l.pJ&&Lb)break;if(P>b)return{GV:N,oa:b-p};h=P-N.n9/1E3}return{GV:null,oa:b-h}}; +LEo=function(C,b,h){h=h===void 0?{}:h;var N=C.W||C.app.i$().getPlayerState();Lu(C,!0);b=isFinite(b)?b:C.j.lN();var p=$uK(C,b);b=p.oa;var P=(p=p.GV)&&!kF(C,p)||!p&&C.j!==C.app.i$(),c=b*1E3;c=C.N&&C.N.start<=c&&c<=C.N.end;!P&&c||eA(C);p?lXo(C,p,b,h,N):zlo(C,b,h,N)}; +zlo=function(C,b,h,N){var p=C.j;p!==C.app.i$()&&C.app.xY();p.seekTo(b,Object.assign({},{Cj:"application_timelinemanager"},h));HH6(C,N)}; +lXo=function(C,b,h,N,p){var P=kF(C,b);if(!P){b.playerVars.prefer_gapless=!0;C.If.D("html5_enable_ssap_entity_id")&&(b.playerVars.cached_load=!0);var c=new g.QK(C.If,b.playerVars);c.v7=b.v7;C.api.wL(c,b.playerType)}c=C.app.i$();P||c.addCueRange(b.Hj.sG);c.seekTo(h,Object.assign({},{Cj:"application_timelinemanager"},N));HH6(C,p)}; +HH6=function(C,b){C=C.app.i$();var h=C.getPlayerState();b.isOrWillBePlaying()&&!h.isOrWillBePlaying()?C.playVideo():b.isPaused()&&!h.isPaused()&&C.pauseVideo()}; +Lu=function(C,b){C.KO=NaN;C.V=null;C.L.stop();C.X&&b&&C.X.Lu();C.W=null;C.X=null}; +kF=function(C,b){C=C.app.i$();return!!C&&C.getVideoData().v7===b.v7}; +VjW=function(C){var b=C.K.find(function(p){return kF(C,p)}); +if(b){var h=C.app.i$();eA(C);var N=new g.w6(8);b=SZl(C,b)/1E3;zlo(C,b,{},N);h.jp("forceParentTransition",{childPlayback:1});C.j.jp("forceParentTransition",{parentPlayback:1})}}; +qZW=function(C,b,h){b=b===void 0?-1:b;h=h===void 0?Infinity:h;for(var N=b,p=h,P=g.z(C.G),c=P.next();!c.done;c=P.next()){var e=g.z(c.value);c=e.next().value;e=e.next().value;e.vM>=N&&e.target&&e.target.n9<=p&&(C.j.removeCueRange(c),C.G.delete(c))}N=b;p=h;P=[];c=g.z(C.K);for(e=c.next();!e.done;e=c.next())if(e=e.value,e.pJ>=N&&e.n9<=p){var L=C;L.J===e&&eA(L);kF(L,e)&&L.app.xY()}else P.push(e);C.K=P;N=$uK(C,b/1E3);b=N.GV;N=N.oa;b&&(N*=1E3,Mj1(C,b,N,b.n9===b.pJ+b.durationMs?b.pJ+N:b.n9));(b=$uK(C,h/1E3).GV)&& +jA(C,"Invalid clearEndTimeMs="+h+" that falls during playback={timelinePlaybackId="+(b.v7+" video_id="+b.playerVars.video_id+" durationMs="+b.durationMs+" enterTimeMs="+b.pJ+" parentReturnTimeMs="+b.n9+"}.Child playbacks can only have duration updated not their start."))}; +Mj1=function(C,b,h,N){b.durationMs=h;b.n9=N;N={sG:cq(h,!0),vM:h,target:null};aXl(C,b,N);kF(C,b)&&C.app.i$().getCurrentTime()*1E3>h&&(b=SZl(C,b)/1E3,h=C.app.i$().getPlayerState(),zlo(C,b,{},h))}; +jA=function(C,b,h,N){C.j.jp("timelineerror",{e:b,cpn:h?h:void 0,videoId:N?N:void 0})}; +fX_=function(C){C&&C!=="web"&&mul.includes(C)}; +a7=function(C,b){g.O.call(this);var h=this;this.data=[];this.N=C||NaN;this.K=b||null;this.j=new g.C2(function(){ZF(h);YF(h)}); +g.D(this,this.j)}; +AbS=function(C){ZF(C);return C.data.map(function(b){return b.value})}; +ZF=function(C){var b=(0,g.Ai)();C.data.forEach(function(h){h.expireP?{width:b.width,height:b.width/p,aspectRatio:p}:pp?C.width=C.height*h:hL;if(GH(C)){var Z=Rll(C);var Y=isNaN(Z)||g.BG||Wp&&g.$1||L;Tn&&!g.So(601)?Z=p.aspectRatio:Y=Y||P.controlsType==="3";Y?L?(Y=P.D("place_shrunken_video_on_left_of_player")?16:C.getPlayerSize().width-b.width-16,Z=Math.max((C.getPlayerSize().height-b.height)/2,0),Y=new g.Pc(Y,Z,b.width, +b.height),C.No.style.setProperty("border-radius","12px")):Y=new g.Pc(0,0,b.width,b.height):(h=p.aspectRatio/Z,Y=new g.Pc((b.width-p.width/h)/2,(b.height-p.height)/2,p.width/h,p.height),h===1&&g.$1&&(Z=Y.width-b.height*Z,Z>0&&(Y.width+=Z,Y.height+=Z)));g.Zo(C.element,"ytp-fit-cover-video",Math.max(Y.width-p.width,Y.height-p.height)<1);if(e||C.xX)C.No.style.display="";C.Vo=!0}else{Y=-b.height;Tn?Y*=window.devicePixelRatio:g.WI&&(Y-=window.screen.height);Y=new g.Pc(0,Y,b.width,b.height);if(e||C.xX)C.No.style.display= +"none";C.Vo=!1}ju(C.Bd,Y)||(C.Bd=Y,g.fO(P)?(C.No.style.setProperty("width",Y.width+"px","important"),C.No.style.setProperty("height",Y.height+"px","important")):g.Hc(C.No,Y.getSize()),N=new g.ZZ(Y.left,Y.top),g.GV(C.No,Math.round(N.x),Math.round(N.y)),N=!0);b=new g.Pc((b.width-p.width)/2,(b.height-p.height)/2,p.width,p.height);ju(C.bZ,b)||(C.bZ=b,N=!0);g.Zv(C.No,"transform",h===1?"":"scaleX("+h+")");c&&L!==C.NT&&(L&&(C.No.addEventListener(bu,C.uD),C.No.addEventListener("transitioncancel",C.uD),C.No.classList.add(g.Qp.VIDEO_CONTAINER_TRANSITIONING)), +C.NT=L,C.app.h4.publish("playerUnderlayVisibilityChange",C.NT?"transitioning":"hidden"));return N}; +KEK=function(){this.csn=g.mZ();this.clientPlaybackNonce=null;this.elements=new Set;this.N=new Set;this.j=new Set;this.K=new Set}; +spV=function(C){if(C.csn!==g.mZ())if(C.csn==="UNDEFINED_CSN")C.csn=g.mZ();else{var b=g.mZ(),h=g.q6();if(b&&h){C.csn=b;for(var N=g.z(C.elements),p=N.next();!p.done;p=N.next())(p=p.value.visualElement)&&p.isClientVe()&&b&&h&&(g.HQ("combine_ve_grafts")?SO(F$(),p,h):g.CN(g.t_)(void 0,b,h,p))}if(b)for(C=g.z(C.j),h=C.next();!h.done;h=C.next())(h=h.value.visualElement)&&h.isClientVe()&&g.hu(b,h)}}; +g.SA=function(C,b,h,N){g.O.call(this);var p=this;this.logger=new g.T8("App");this.xR=this.Cf=!1;this.nA={};this.Uo=[];this.b7=!1;this.le=null;this.intentionalPlayback=!1;this.wK=!0;this.ZY=!1;this.NE=this.KW=null;this.Ej=!0;this.mediaElement=this.Wb=null;this.ZS=NaN;this.Pp=!1;this.L9=this.MP=this.Ib=this.Yt=this.screenLayer=this.playlist=null;this.FF=[];this.nW=0;this.dn={k2X:function(){return p.fv}, +VP:function(){return p.Ib}, +ya:function(c){p.Ib=c}, +lA:function(c,e){p.Ib&&p.Ib.lA(c,e)}}; +this.logger.debug("constructor begin");this.config=Blx(b||{});this.webPlayerContextConfig=h;kjU();b=this.config.args||{};this.If=new Rh(b,h,h?h.canaryState:this.config.assets.player_canary_state,N,this);g.D(this,this.If);F46(this.If);N=S6V(this.If);this.If.tZ()&&this.FF.push({key:"h5vcc",value:N});this.If.experiments.Fo("jspb_serialize_with_worker")&&Wto();this.If.experiments.Fo("gzip_gel_with_worker")&&QoU();this.If.K&&!OHl&&(window.addEventListener(FO?"touchstart":"click",thU,{capture:!0,passive:!0}), +OHl=!0);this.D("html5_onesie")&&(this.V5=new Vm(this.If),g.D(this,this.V5));this.WS=gU(HI(this.If)&&!0,b.enablesizebutton);this.Tg=gU(!1,b.player_wide);this.visibility=new L41;g.D(this,this.visibility);this.D("web_log_theater_mode_visibility")&&this.jz(gU(!1,b.player_wide));this.Cf=gU(!1,b.external_list);this.events=new g.ui(this);g.D(this,this.events);this.D("start_client_gcf")&&(it(QO(),{XV:ei,wT:pC6()}),this.k0=QO().resolve(ei),chl(this.k0));this.Vsf=new NC;g.D(this,this.Vsf);this.T2=new KEK;N= +new gY;this.h4=new g.Fz(this,N);g.D(this,this.h4);this.template=new Jbc(this);g.D(this,this.template);this.appState=1;this.zx=vZU(this);g.D(this,N);N={};this.uA=(N.internalvideodatachange=this.YS,N.playbackready=this.zWf,N.playbackstarted=this.TUp,N.statechange=this.VCh,N);this.KU=new GD(this.h4);this.Ms=DuK(this);N=this.D("html5_load_wasm");b=this.D("html5_allow_asmjs");if(N&&duc||b)this.If.Xz=Rsc(this.Ms,b),jO(Px(this.If.Xz,function(c){p.If.d9=c;var e;(e=p.i$())==null||e.jp("wasm",{a:c.E1})}),function(c){g.QB(c); +c="message"in c&&c.message||c.toString()||"";var e;(e=p.i$())==null||e.jp("wasm",{e:c})}); +else if(N&&!duc){var P;(P=this.i$())==null||P.jp("wasm",{e:"wasm unavailable"})}this.DJ=new vd6(this.If,this.Ms);this.h4.publish("csiinitialized");P=10;g.m9(this.If)&&(P=3);Ds(this.If)&&(P=g.Zc(this.If.experiments,"tvhtml5_unplugged_preload_cache_size"));P=new a7(P,function(c){c!==p.gU(c.getPlayerType())&&nJ(c)}); +g.D(this,P);this.fv=new ZqS(P,{});P=WEW(this);this.fv.SE(P.e2);EZH(this);P={};this.Rp=(P.airplayactivechange=this.onAirPlayActiveChange,P.airplayavailabilitychange=this.onAirPlayAvailabilityChange,P.beginseeking=this.gY,P.sabrCaptionsDataLoaded=this.QO,P.endseeking=this.zK,P.internalAbandon=this.lI,P.internalaudioformatchange=this.WQ,P.internalvideodatachange=this.onVideoDataChange,P.internalvideoformatchange=this.Qk,P.liveviewshift=this.tf2,P.playbackstalledatstart=this.v66,P.progresssync=this.dsz, +P.onAbnormalityDetected=this.bu,P.onSnackbarMessage=this.onSnackbarMessage,P.onLoadProgress=this.onLoadProgress,P.SEEK_COMPLETE=this.HQ,P.SEEK_TO=this.Fkz,P.onVideoProgress=this.onVideoProgress,P.onLoadedMetadata=this.onLoadedMetadata,P.onAutoplayBlocked=this.onAutoplayBlocked,P.onPlaybackPauseAtStart=this.vtf,P.playbackready=this.jLz,P.statechange=this.gD,P.newelementrequired=this.qm,P.heartbeatparams=this.hD,P.videoelementevent=this.SA,P.drmoutputrestricted=this.onDrmOutputRestricted,P.signatureexpired= +this.Vhp,P.nonfatalerror=this.z8h,P.reloadplayer=this.H9f,P);this.Ra=new g.ui(this);g.D(this,this.Ra);this.xq=new o7;g.D(this,this.xq);this.vz=this.q1=-1;this.fA=new g.C2(this.template.resize,16,this.template);g.D(this,this.fA);this.uf=new ZH6(this.h4,this.If,this.A4(),this);this.YC=new dB(this.If);this.wu=new vU(this);g.D(this,this.wu);this.cI=new XD(this);g.D(this,this.cI);fX_(this.If.j.c);this.events.S(this.h4,g.p8("appapi"),this.k$i);this.events.S(this.h4,g.PZ("appapi"),this.U8E);this.events.S(this.h4, +g.p8("appprogressboundary"),this.xso);this.events.S(this.h4,g.PZ("applooprange"),this.CA);this.events.S(this.h4,"presentingplayerstatechange",this.a$);this.events.S(this.h4,"resize",this.Mhf);this.template.Gi(vE(document,C));this.events.S(this.h4,"offlineslatestatechange",this.Vf4);this.events.S(this.h4,"sabrCaptionsTrackChanged",this.uZi);this.events.S(this.h4,"sabrCaptionsBufferedRangesUpdated",this.i9$);this.Ms.Z.Y().mu&&Rn(this.Ms,"offline");this.If.Vz&&g.MK("ux",g.Q8);C=g.Zc(this.If.experiments, +"html5_defer_fetch_att_ms");this.mq=new g.C2(this.je$,C,this);g.D(this,this.mq);this.PW().bF()&&(g.Xr()&&this.PW().q2.push("remote"),nZK(this));this.DJ.tick("fs");tjV(this);this.If.Vz&&Rn(this.Ms,"ux",!0);g.$7(this.Ms.Z.Y())&&Rn(this.Ms,"embed");this.D("web_player_sentinel_is_uniplayer")||g.QB(new g.tJ("Player experiment flags missing","web_player_sentinel_is_uniplayer"));C=this.D("web_player_sentinel_yt_experiments_sync");P=g.HQ("web_player_sentinel_yt_experiments_sync");C!==P&&g.QB(new g.tJ("b/195699950", +{yt:C,player:P}));h||g.QB(new g.tJ("b/179532961"));this.wX=T76(this);if(h=g.Zc(this.If.experiments,"html5_block_pip_safari_delay"))this.xl=new g.C2(this.K8,h,this),g.D(this,this.xl);Qv=this.If.yd;h=g.Zc(this.If.experiments,"html5_performance_impact_profiling_timer_ms");h>0&&(this.VW=new g.Vh(h),g.D(this,this.VW),this.events.S(this.VW,"tick",function(){p.Ol&&B76.zP("apit",p.Ol);p.Ol=B76.nP()})); +this.h4.publish("applicationInitialized");this.logger.debug("constructor end")}; +T76=function(C){function b(h){h.stack&&h.stack.indexOf("player")!==-1&&(C.i$()||C.A4()).Vp(h)} +Ur.subscribe("handleError",b);xt.push(b);return function(){Ur.unsubscribe("handleError",b);var h=xt.indexOf(b);h!==-1&&xt.splice(h,1)}}; +WEW=function(C){var b=new g.QK(C.If,C.config.args);C.h4.publish("initialvideodatacreated",b);return g.$F(C,1,b)}; +EZH=function(C){var b=C.A4();b.setPlaybackRate(C.If.X?1:IXx(C,Number(g.QJ("yt-player-playback-rate"))||1));b.Gu(C.uA,C);b.u4()}; +DuK=function(C){var b="",h=rbW(C);h.indexOf("//")===0&&(h=C.If.protocol+":"+h);var N=h.lastIndexOf("/base.js");N!==-1&&(b=h.substring(0,N+1));if(h=Error().stack)if(h=h.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))h=h[1],h.includes(b)||g.QB(Error("Player module URL mismatch: "+(h+" vs "+b+".")));b=new FFW(C.h4,b);xuW(C,b);return b}; +xuW=function(C,b){var h={};h=(h.destroyed=function(){C.onApiChange()},h); +b.N=h}; +vZU=function(C){if(C.If.storeUserVolume){C=g.QJ("yt-player-volume")||{};var b=C.volume;C={volume:isNaN(b)?100:g.kv(Math.floor(b),0,100),muted:!!C.muted}}else C={volume:100,muted:C.If.mute};return C}; +zH=function(C){C.mediaElement=C.If.deviceIsAudioOnly?new g.pP(g.CM("AUDIO")):Ub.pop()||new g.pP(g.CM("VIDEO"));g.D(C,C.mediaElement);var b=C.i$();b&&b.setMediaElement(C.mediaElement);try{C.If.Yr?(C.MP&&C.events.D9(C.MP),C.MP=C.events.S(C.mediaElement,"volumechange",C.grf)):(C.mediaElement.eK(C.zx.muted),C.mediaElement.setVolume(C.zx.volume/100))}catch(p){C.q9("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(p&&typeof p==="object"&&"message"in p&&typeof p.message==="string"&&p.message.replace(/[;:,]/g, +"_")));return}g.rU(C.Ra);wi_(C);b=C.template;var h=C.mediaElement.Rb();b.No=h;b.Br=!1;b.No.parentNode||gQ(b.CE,b.No,0);b.Bd=new g.Pc(0,0,0,0);Xil(b);FR(b);h=b.No;g.c4(h,"video-stream");g.c4(h,g.Qp.MAIN_VIDEO);var N=b.app.Y();N.NZ&&h.setAttribute("data-no-fullscreen","true");N.D("html5_local_playsinline")?"playsInline"in fE()&&(h.playsInline=!0):N.JC&&(h.setAttribute("webkit-playsinline",""),h.setAttribute("playsinline",""));N.XG&&b.No&&b.S(h,"click",h.play,h);try{C.mediaElement.activate()}catch(p){C.q9("html5.missingapi", +2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(p&&typeof p==="object"&&"message"in p&&typeof p.message==="string"&&p.message.replace(/[;:,]/g,"_")))}}; +biV=function(C){if(!C6V(C)){var b=C.A4().Q_();b&&(b=b.Yv(),b instanceof Promise&&b.catch(function(){})); +Hq(C,jg(C.getPlayerStateObject()))}}; +wi_=function(C){var b=C.mediaElement;ii()?C.Ra.S(b,"webkitpresentationmodechanged",C.YGh):window.document.pictureInPictureEnabled&&(C.Ra.S(b,"enterpictureinpicture",function(){C.ib(!0)}),C.Ra.S(b,"leavepictureinpicture",function(){C.ib(!1)})); +If&&(C.Ra.S(b,"webkitbeginfullscreen",function(){C.AC(3)}),C.Ra.S(b,"webkitendfullscreen",function(){C.AC(0)}))}; +hCc=function(C,b){var h=b.getPlayerType(),N=C.fv.gU(h);b!==C.A4()&&b!==N&&(N==null||nJ(N),C.fv.K[h]=b)}; +NZl=function(C,b){b=b===void 0?!0:b;C.logger.debug("start clear presenting player");var h;if(h=C.L9){h=C.L9;var N=C.mediaElement;h=!!N&&N===h.mediaElement}h&&(C.Ue(),zH(C));if(h=C.i$())h.Ue(!b),h.g4(C.Rp,C),h.getPlayerType()!==1&&nJ(h);C.fv.N=null;C.logger.debug("finish clear presenting player")}; +g.$F=function(C,b,h,N){var p=C.DJ;b===2&&(p=new vd6(C.If));return new g.oY(C.If,b,p,C.template,function(P,c,e){C.h4.publish(P,c,e)},function(){return C.h4.getVisibilityState()},C.visibility,C,h,N)}; +gm_=function(C,b,h,N){C=g.$F(C,b,h,N);C.u4();return C}; +V_=function(C,b){return C.vL(b)?C.A4():b}; +Mf=function(C,b){var h=C.i$(),N=C.A4();return h&&b===N&&C.vL(b)&&C.vL(h)?h:b}; +jKx=function(C){C.logger.debug("start application playback");if(C.A4().getPlayerState().isError())C.logger.debug("start application playback done, player in error state");else{var b=qf(C);C.PW().isLoaded();b&&C.Pm(6);p3U(C);fMx(C.Ms)||P6S(C)}}; +P6S=function(C){if(!qf(C)){var b=UC(C.Ms);b&&!b.created&&GXV(C.Ms)&&(C.logger.debug("reload ad module"),b.create())}}; +p3U=function(C){C.logger.debug("start presenter playback");var b=C.getVideoData(),h=C.Ms;fMx(h)||h.Dk();!duc&&h.Z.D("html5_allow_asmjs")&&uDc(h);Rn(h,"embed");Rn(h,"kids");Rn(h,"remote");Rn(h,"miniplayer");Rn(h,"offline");Rn(h,"unplugged");Rn(h,"ypc",!1,!0);Rn(h,"ypc_clickwrap",!1,!0);Rn(h,"yto",!1,!0);Rn(h,"webgl",!1,!0);AYc(h)||(Rn(h,"captions",!0),Rn(h,"endscreen"),h.BZ()||h.L7(),Rn(h,"creatorendscreen",!0));h.QJ();C.h4.publish("videoready",b)}; +ms=function(C){C=C.PW();C.bF();return Q4(C)}; +tjV=function(C){C.logger.debug("start prepare initial playback");C.CC();var b=C.config.args;zH(C);var h=C.PW();C.h4.Mz("onVolumeChange",C.zx);if(b&&ndU(b)){var N=KO(C.If);N&&!C.Cf&&(b.fetch=0);var p=g.$7(C.If);p&&!C.Cf&&(b.fetch=0);fu(C,b);g.$7(C.If)&&C.DJ.tick("ep_pr_s");if(!N||C.Cf)if(p&&!C.Cf)cw1(C);else if(!h.bF())C.playlist.onReady(function(){AC(C)})}C.ub(C.A4()); +g.B(C.A4().getPlayerState(),128)||(b=eiW(!C.If.deviceIsAudioOnly),b==="fmt.noneavailable"?C.q9("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):b==="html5.missingapi"?C.q9(b,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):h&&h.bF()&&ms(C)&&(C.If.Eq||C.If.Dj)?y_(C):h.yh?C.D("embeds_enable_full_length_inline_muted_autoplay")?C.h4.mutedAutoplay({durationMode:h.mutedAutoplayDurationMode}):C.h4.mutedAutoplay():g.QJ("yt-player-playback-on-reload")?(g.en("embedsItpPlayedOnReload",{playedOnReload:!0, +isLoggedIn:!!C.If.q2}),g.R1("yt-player-playback-on-reload",!1),y_(C)):nO(C.If)||kcK(C),g.vI(C.If)||vR(C.If)==="MWEB"?(g.wU(g.bf(),function(){rR(C)}),g.wU(g.bf(),function(){GB6()})):(rR(C),GB6()),C.logger.debug("finish prepare initial playback"))}; +rR=function(C){if(!C.D("use_rta_for_player"))if(C.D("fetch_att_independently"))g.be(C.mq);else{var b=C.getVideoData().botguardData;b&&g.Ad(b,C.If,C.getVideoData().H4||"")}}; +kcK=function(C){C.logger.debug("start initialize to CUED mode");C.h4.publish("initializingmode");C.Pm(2);C.D("embeds_web_enable_defer_loading_remote_js")&&g.d_(C.If)?g.wU(g.bf(),function(){Rn(C.Ms,"remote")}):Rn(C.Ms,"remote"); +Rn(C.Ms,"miniplayer");C.logger.debug("initialized to CUED mode")}; +y_=function(C){C.logger.debug("start initialize application playback");var b=C.A4();if(g.B(b.getPlayerState(),128))return!1;var h=b.getVideoData();ms(C)&&C.If.Dj&&(Ub.length&&C.xR?(iX(C,{muted:!1,volume:C.zx.volume},!1),JC(C,!1)):Ub.length||C.zx.muted||(iX(C,{muted:!0,volume:C.zx.volume},!1),JC(C,!0)));ms(C)&&g.$7(C.If)&&h.mutedAutoplay&&(iX(C,{muted:!0,volume:C.zx.volume},!1),JC(C,!0));h.AE&&iX(C,{muted:!0,volume:C.zx.volume},!1);eCV(C,1,h,!1);C.h4.publish("initializingmode");C.ub(C.A4());C.Pm(3); +var N;if(!(N=!C.If.nS)){if(N=C.L9){N=C.L9;var p=C.mediaElement;N=!!p&&p===N.mediaElement}N=N&&C.b7}N&&(C.Ue(),zH(C),b.setMediaElement(C.mediaElement));b.z_();if(g.B(b.getPlayerState(),128))return!1;h.du||Hq(C,3);return C.b7=!0}; +qf=function(C){C=$z(C.Ms);return!!C&&C.loaded}; +LpH=function(C,b){if(!C.Wb)return!1;var h=C.Wb.startTimeMs*.001-1,N=C.Wb.endTimeMs*.001;C.Wb.type==="repeatChapter"&&N--;return Math.abs(b-h)<=1E-6||Math.abs(b-N)<=1E-6||b>=h&&b<=N}; +aEl=function(C){var b=C.i$();b&&Tt(b.getVideoData())&&!b.Ct()&&(b=Zic(C)*1E3-C.getVideoData().Er,C.D("html5_gapless_new_slr")?(C=C.cI,YRl(C.app,"gaplessshortslooprange"),b=new g.Ny(0,b,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(C=C.app.i$())&&C.addCueRange(b)):C.setLoopRange({startTimeMs:0,endTimeMs:b,type:"shortsLoop"}))}; +lE6=function(C){var b=C.A4();if(!(g.B(b.getPlayerState(),64)&&C.PW().isLivePlayback&&C.Wb.startTimeMs<5E3)){if(C.Wb.type==="repeatChapter"){var h,N=(h=y$H(C.N8()))==null?void 0:h.pZ(),p;h=(p=C.getVideoData())==null?void 0:p.NZ;N instanceof g.xj&&h&&(p=h[Fk(h,C.Wb.startTimeMs)],N.renderChapterSeekingAnimation(0,p.title));isNaN(Number(C.Wb.loopCount))?C.Wb.loopCount=0:C.Wb.loopCount++;C.Wb.loopCount===1&&C.h4.LO("innertubeCommand",C.getVideoData().s9)}N={Cj:"application_loopRangeStart"};if(C.Wb.type=== +"clips"||C.Wb.type==="shortsLoop")N.seekSource=58;b.seekTo(C.Wb.startTimeMs*.001,N)}}; +IXx=function(C,b){var h=C.h4.getAvailablePlaybackRates();b=Number(b.toFixed(2));C=h[0];h=h[h.length-1];b<=C?b=C:b>=h?b=h:(C=Math.floor(b*100+.001)%5,b=C===0?b:Math.floor((b-C*.01)*100+.001)/100);return b}; +Zic=function(C,b){b=C.gU(b);if(!b)return 0;b=V_(C,b);return uX(C,b.CB(),b)}; +uX=function(C,b,h){if(C.vL(h)){h=h.getVideoData();if(R7(C))h=b;else{C=C.uf;for(var N=g.z(C.K),p=N.next();!p.done;p=N.next())if(p=p.value,h.v7===p.v7){b+=p.pJ/1E3;break}N=b;C=g.z(C.K);for(p=C.next();!p.done;p=C.next()){p=p.value;if(h.v7===p.v7)break;var P=p.pJ/1E3;if(P1&&(p=!1);if(!C.Pp||p!==b){h=h.lock(p?"portrait":"landscape");if(h!=null)h["catch"](function(){}); +C.Pp=!0}}else C.Pp&&(C.Pp=!1,h.unlock())}; +vq=function(C,b,h){C.h4.publish(b,h);var N=g.m9(C.If)||g.fO(C.If)||g.KF(C.If);if(h&&N){switch(b){case "cuerangemarkersupdated":var p="onCueRangeMarkersUpdated";break;case "cuerangesadded":p="onCueRangesAdded";break;case "cuerangesremoved":p="onCueRangesRemoved"}p&&C.h4.LO(p,h.map(function(P){return{getId:function(){return this.id}, +end:P.end,id:P.getId(),namespace:P.namespace==="ad"?"ad":"",start:P.start,style:P.style,visible:P.visible}}))}}; +DF=function(C,b,h,N,p,P){h=h===void 0?!0:h;var c=C.gU(p);c&&(c.getPlayerType()===2&&!C.vL(c)||g.SM(c.getVideoData()))||(C.getPresentingPlayerType()===3?$z(C.Ms).r3("control_seek",b,h):(c&&c===C.A4()&&C.Wb&&!LpH(C,b)&&C.setLoopRange(null),C.seekTo(b,h,N,p,P)))}; +iic=function(C,b,h,N){h&&(C.Ue(),zH(C));h=C.i$();h.Rz(b);var p=C.getVideoData(),P={};P.video_id=p.videoId;P.adformat=p.adFormat;if(!p.isLivePlayback||C.D("html5_reload_live_playback_to_current_time"))P.start=h.getCurrentTime(),P.resume="1";p.isLivePlayback&&g9(p)&&g.Mo(C.If)&&(P.live_utc_start=h.vF(),P.resume="1");p.N2&&(P.vvt=p.N2);p.W&&(P.vss_credentials_token=p.W,P.vss_credentials_token_type=p.KS);p.oauthToken&&(P.oauth_token=p.oauthToken);p.Rn&&(P.force_gvi=p.Rn);P.autoplay=1;P.reload_count=p.Xs+ +1;P.reload_reason=b;p.xm&&(P.unplugged_partner_opt_out=p.xm);p.AT&&(P.ypc_is_premiere_trailer=p.AT);p.playerParams&&(P.player_params=p.playerParams);C.loadVideoByPlayerVars(P,void 0,!0,void 0,void 0,N);b==="signature"&&C.Yt&&P6S(C)}; +JwW=function(C,b){C.PW().autonavState=b;g.R1("yt-player-autonavstate",b);C.h4.publish("autonavchange",b)}; +uhK=function(C){var b=C.getVideoData().wH,h=C.If.sI,N=C.isInline()&&!C.getVideoData().lC,p=C.mediaElement;b||h||N?p.Yi():(p.PJ(),iX(C,C.zx))}; +Q_=function(C){var b=UC(C.N8());b&&b.created&&(C.logger.debug("reset ad module"),b.destroy())}; +R7=function(C){return C.getVideoData().enableServerStitchedDai&&!!C.Yt}; +RCV=function(C,b){b.bounds=C.getBoundingClientRect();for(var h=g.z(["display","opacity","visibility","zIndex"]),N=h.next();!N.done;N=h.next())N=N.value,b[N]=l3(C,N);b.hidden=!!C.hidden}; +rbW=function(C){if(C.webPlayerContextConfig){var b=C.webPlayerContextConfig.trustedJsUrl;return b?qJ(b).toString():C.webPlayerContextConfig.jsUrl}return C.config.assets&&C.config.assets.js?C.config.assets.js:""}; +QKc=function(C,b){var h=C.gU(1);if(h){if(h.getVideoData().clientPlaybackNonce===b)return h;if((C=C.wu.j)&&C.getVideoData().clientPlaybackNonce===b)return C}return null}; +Ucl=function(C){return C.name==="TypeError"&&C.stack.includes("/s/player/")&&D1()<=105}; +X3S=function(C){return C.isTimeout?"NO_BID":"ERR_BID"}; +Kpl=function(){var C=null;up_().then(function(b){return C=b},function(b){return C=X3S(b)}); +return C}; +sKl=function(){var C=qR(1E3,"NO_BID");return zp(wJc([up_(),C]).jX(X3S),function(){C.cancel()})}; +dR=function(C){return C.lF?g.D7(g.vj(),140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; +Wq=function(C){this.player=C;this.N=this.j=1}; +Dcx=function(C,b,h,N,p,P){b.client||(b.client={});C.player.Y().D("h5_remove_url_for_get_ad_break")||(b.client.originalUrl=h);var c=kG(h),e=g.XX(h)?!1:!0;(c||e)&&typeof Intl!=="undefined"&&(b.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);e=g.XX(h)?!1:!0;if(c||e||N!==""){var L={};h=NQ(af(N)).split("&");var Z=new Map;h.forEach(function(Y){Y=Y.split("=");Y.length>1&&Z.set(Y[0].toString(),decodeURIComponent(Y[1].toString()))}); +Z.has("bid")&&(L.bid=Z.get("bid"));L.params=[];Oic.forEach(function(Y){Z.has(Y)&&(Y={key:Y,value:Z.get(Y)},L.params.push(Y))}); +vml(C,L);b.adSignalsInfo=L}b.client.unpluggedAppInfo||(b.client.unpluggedAppInfo={});b.client.unpluggedAppInfo.enableFilterMode=!1;h=p.j.cosver;h!=null&&h!=="cosver"&&(b.client.osVersion=h);h=p.j.cplatform;h!=null&&h!=="cplatform"&&h!==""&&(b.client.platform=h);h=p.j.cmodel;h!=null&&h!=="cmodel"&&(b.client.deviceModel=h);h=p.j.cplayer;h!=null&&h!=="cplayer"&&(b.client.playerType=h);h=p.j.cbrand;h!=null&&h!=="cbrand"&&(b.client.deviceMake=h);b.user||(b.user={});b.user.lockedSafetyMode=!1;(p.D("embeds_web_enable_iframe_api_send_full_embed_url")|| +p.D("embeds_enable_autoplay_and_visibility_signals"))&&g.mG(p)&&Jc6(b,P,C.player.getPlayerState(1))}; +Emc=function(C,b){var h=!1;if(b==="")return h;b.split(",").forEach(function(N){var p={},P={clientName:"UNKNOWN_INTERFACE",platform:"UNKNOWN_PLATFORM",clientVersion:""},c="ACTIVE";N[0]==="!"&&(N=N.substring(1),c="INACTIVE");N=N.split("-");N.length<3||(N[0]in dcW&&(P.clientName=dcW[N[0]]),N[1]in Wpc&&(P.platform=Wpc[N[1]]),P.applicationState=c,P.clientVersion=N.length>2?N[2]:"",p.remoteClient=P,C.remoteContexts?C.remoteContexts.push(p):C.remoteContexts=[p],h=!0)}); +return h}; +tNH=function(C){if(!("FLAG_AUTO_CAPTIONS_DEFAULT_ON"in nmK))return!1;C=C.split(RegExp("[:&]"));var b=nmK.FLAG_AUTO_CAPTIONS_DEFAULT_ON,h="f"+(1+Math.floor(b/31)).toString();b=1<=2?c[1]:"";var e=BZK.test(b),L=IEU.exec(b);L=L!=null&&L.length>=2?L[1]:"";var Z=xc6.exec(b);Z=Z!=null&&Z.length>=2&&!Number.isNaN(Number(Z[1]))?Number(Z[1]):1;var Y=w3W.exec(b);Y=Y!=null&&Y.length>=2?Y[1]:"0";var a=i2(C.player.Y().nO),l=C.player.getVideoData(1),F=g.xH(l.sX,!0),G="BISCOTTI_ID"in h?h.BISCOTTI_ID:"";Dcx(C,F,b,G.toString(),C.player.Y(), +l);l={splay:!1,lactMilliseconds:h.LACT.toString(),playerHeightPixels:Math.trunc(h.P_H),playerWidthPixels:Math.trunc(h.P_W),vis:Math.trunc(h.VIS),signatureTimestamp:20131,autonavState:dR(C.player.Y())};N&&(N={},Emc(N,h.YT_REMOTE)&&(l.mdxContext=N));if(N=CDo.includes(a)?void 0:g.KN("PREF")){for(var V=N.split(RegExp("[:&]")),q=0,f=V.length;q1&&y[1].toUpperCase()==="TRUE"){F.user.lockedSafetyMode=!0;break}}l.autoCaptionsDefaultOn= +tNH(N)}b=b5W.exec(b);(b=b!=null&&b.length>=2?b[1]:"")&&L&&(F.user.credentialTransferTokens=[{token:b,scope:"VIDEO"}]);b={contentPlaybackContext:l};c={adBlock:Math.trunc(h.AD_BLOCK),params:c,breakIndex:Z,breakPositionMs:Y,clientPlaybackNonce:h.CPN,topLevelDomain:a,isProxyAdTagRequest:e,context:F,adSignalsInfoString:NQ(af(G.toString())),overridePlaybackContext:b};p!==void 0&&(c.cueProcessedMs=Math.round(p).toString());L&&(c.videoId=L);h.LIVE_TARGETING_CONTEXT&&(c.liveTargetingParams=h.LIVE_TARGETING_CONTEXT); +h.AD_BREAK_LENGTH&&(c.breakLengthMs=Math.trunc(h.AD_BREAK_LENGTH*1E3).toString());P&&(c.driftFromHeadMs=P.toString());c.currentMediaTimeMs=Math.round(C.player.getCurrentTime(1)*1E3);(C=C.player.getGetAdBreakContext())&&(c.getAdBreakContext=C);return c}; +N3l=function(){Wq.apply(this,arguments)}; +gf1=function(C,b,h,N,p){var P=h.R1;var c=h.sG;var e=C.player.Y().A6,L=0;h.cueProcessedMs&&c&&!P&&(h=c.end-c.start,h>0&&(L=Math.floor(h/1E3)));var Z={AD_BLOCK:p,AD_BREAK_LENGTH:P?P.YJ:L,AUTONAV_STATE:dR(C.player.Y()),CA_TYPE:"image",CPN:C.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:C.player.m7()*1E3,LACT:Ap(),LIVE_INDEX:P?C.N++:1,LIVE_TARGETING_CONTEXT:P&&P.context?P.context:"",MIDROLL_POS:c?Math.round(c.start/1E3):0,MIDROLL_POS_MS:c?Math.round(c.start):0,VIS:C.player.getVisibilityState(), +P_H:C.player.Ti().xe().height,P_W:C.player.Ti().xe().width,YT_REMOTE:e?e.join(","):""},Y=YG(Z1);Object.keys(Y).forEach(function(a){Y[a]!=null&&(Z[a.toUpperCase()]=Y[a].toString())}); +N!==""&&(Z.BISCOTTI_ID=N);N={};LN(b)&&(N.sts="20131",(C=C.player.Y().forcedExperiments)&&(N.forced_experiments=C));return cQ(g.up(b,Z),N)}; +pdl=function(C,b){var h=C.player.Y(),N,p=(N=C.player.getVideoData(1))==null?void 0:N.oauthToken;return g.BI(h,p).then(function(P){if(P&&eX()){var c=yG();rY(c,P)}return g.TI(C.player.CZ(c),b,"/youtubei/v1/player/ad_break").then(function(e){return e})})}; +PDW=function(C){this.M2=C}; +jUV=function(C){this.Z=C}; +cS_=function(C){this.M2=C}; +e76=function(C){g.O.call(this);this.j=C;this.yG=kwl(this)}; +kwl=function(C){var b=new LZ6(C.j.UU);g.D(C,b);C=g.z([new PDW(C.j.M2),new jUV(C.j.Z),new cS_(C.j.M2),new io(C.j.gH,C.j.j2),new uo,new UD(C.j.Zv,C.j.cT,C.j.M2),new JB,new ri]);for(var h=C.next();!h.done;h=C.next())ZZo(b,h.value);C=g.z(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(h=C.next();!h.done;h=C.next())RN(b,h.value,function(){}); +return b}; +E5=function(C){var b=C.fO,h=C.Zf;C=C.BF;var N=new ADl,p={Nl:new cMx(b.get(),h),Zf:h};return{fJ:new TK(h,C,b,p),context:p,V6:N}}; +nu=function(C,b,h,N,p){g.O.call(this);this.K=b;this.EX=h;this.fO=N;this.kt=p;this.listeners=[];var P=new AJ(this);g.D(this,P);P.S(C,"internalAbandon",this.lI);this.addOnDisposeCallback(function(){g.rU(P)})}; +tC=function(C){this.Z=C;this.adVideoId=this.j=this.videoId=this.adCpn=this.contentCpn=null;this.G=!0;this.K=this.N=!1;this.adFormat=null;this.X="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; +LHo=function(C){C.contentCpn=null;C.adCpn=null;C.videoId=null;C.adVideoId=null;C.adFormat=null;C.X="AD_PLACEMENT_KIND_UNKNOWN";C.actionType="unknown_type";C.N=!1;C.K=!1}; +Z5l=function(C,b){C=g.z(b);for(b=C.next();!b.done;b=C.next())if((b=b.value.renderer)&&(b.instreamVideoAdRenderer||b.linearAdSequenceRenderer||b.sandwichedLinearAdRenderer||b.instreamSurveyAdRenderer)){OG("ad_i");g.vs({isMonetized:!0});break}}; +YMc=function(C){var b;(b=C.Z.getVideoData(1))!=null&&b.nO&&(C.K=!1,b={},C.j&&C.videoId&&(b.cttAuthInfo={token:C.j,videoId:C.videoId}),Dd("video_to_ad",b))}; +OX=function(C){C.K=!1;var b={};C.j&&C.videoId&&(b.cttAuthInfo={token:C.j,videoId:C.videoId});Dd("ad_to_video",b);aeK(C)}; +aeK=function(C){if(C.N)if(C.X==="AD_PLACEMENT_KIND_START"&&C.actionType==="video_to_ad")XB("video_to_ad");else{var b={adBreakType:Fm(C.X),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:C.videoStreamType};C.actionType==="ad_to_video"?(C.contentCpn&&(b.targetCpn=C.contentCpn),C.videoId&&(b.targetVideoId=C.videoId)):(C.adCpn&&(b.targetCpn=C.adCpn),C.adVideoId&&(b.targetVideoId=C.adVideoId));C.adFormat&&(b.adType=C.adFormat);C.contentCpn&& +(b.clientPlaybackNonce=C.contentCpn);C.videoId&&(b.videoId=C.videoId);C.adCpn&&(b.adClientPlaybackNonce=C.adCpn);C.adVideoId&&(b.adVideoId=C.adVideoId);g.vs(b,C.actionType)}}; +TH=function(C){g.O.call(this);this.Z=C;this.j=new Map;this.K=new AJ(this);g.D(this,this.K);this.K.S(this.Z,g.p8("ad"),this.onCueRangeEnter,this);this.K.S(this.Z,g.PZ("ad"),this.onCueRangeExit,this)}; +leS=function(C,b,h,N,p){g.Ny.call(this,b,h,{id:C,namespace:"ad",priority:p,visible:N})}; +Bq=function(C){this.Z=C}; +I7=function(C){this.Z=C;g.Zc(this.Z.Y().experiments,"tv_pacf_logging_sample_rate")}; +zy=function(C,b){b=b===void 0?!1:b;return C.Z.Y().D("html5_ssap_force_ads_ctmp")?!0:(b||C.Z.Y().tZ())&&C.Z.Y().D("html5_ssap_pacf_qoe_ctmp")}; +xF=function(C){var b,h;return(h=(b=C.Z.getVideoData(1))==null?void 0:g.sF(b))!=null?h:!1}; +tc=function(C,b){return C.Z.Y().D(b)}; +ofS=function(C){return C.Z.Y().D("substitute_ad_cpn_macro_in_ssdai")}; +aa=function(C){var b,h,N;return((b=C.Z.getVideoData(1).getPlayerResponse())==null?void 0:(h=b.playerConfig)==null?void 0:(N=h.daiConfig)==null?void 0:N.enableServerStitchedDai)||!1}; +SHW=function(C){return C.Z.Y().D("html5_enable_vod_slar_with_notify_pacf")}; +FHl=function(C){return C.Z.Y().D("html5_recognize_predict_start_cue_point")}; +nG=function(C){return C.Z.Y().experiments.Fo("enable_desktop_player_underlay")}; +GwV=function(C){return C.Z.Y().experiments.Fo("html5_load_empty_player_in_media_break_sub_lra")}; +yU=function(C){return C.Z.Y().experiments.Fo("html5_load_ads_instead_of_cue")}; +rP=function(C){return C.Z.Y().experiments.Fo("html5_preload_ads")}; +Dr=function(C){return C.Z.Y().experiments.Fo("enable_ads_control_flow_deterministic_id_generation")}; +SMS=function(C){return C.Z.Y().experiments.Fo("enable_desktop_discovery_video_abandon_pings")||g.sa(C.Z.Y())}; +$z_=function(C){return C.Z.Y().experiments.Fo("enable_progres_commands_lr_feeds")}; +z7V=function(C){return C.Z.Y().experiments.Fo("html5_cuepoint_identifier_logging")}; +H5c=function(C){switch(C){case "audio_audible":return"adaudioaudible";case "audio_measurable":return"adaudiomeasurable";case "fully_viewable_audible_half_duration_impression":return"adfullyviewableaudiblehalfdurationimpression";case "measurable_impression":return"adactiveviewmeasurable";case "overlay_unmeasurable_impression":return"adoverlaymeasurableimpression";case "overlay_unviewable_impression":return"adoverlayunviewableimpression";case "overlay_viewable_end_of_session_impression":return"adoverlayviewableendofsessionimpression"; +case "overlay_viewable_immediate_impression":return"adoverlayviewableimmediateimpression";case "viewable_impression":return"adviewableimpression";default:return null}}; +VC_=function(){g.cr.call(this);var C=this;this.j={};this.addOnDisposeCallback(function(){for(var b=g.z(Object.keys(C.j)),h=b.next();!h.done;h=b.next())delete C.j[h.value]})}; +wR=function(){if(MC6===null){MC6=new VC_;Ag(Mv).K="b";var C=Ag(Mv),b=Fp(C)=="h"||Fp(C)=="b",h=!(uP(),!1);b&&h&&(C.G=!0,C.W=new uTl)}return MC6}; +qMU=function(C,b,h){C.j[b]=h}; +mz6=function(C){switch(C){case "abandon":case "unmuted_abandon":return"abandon";case "active_view_fully_viewable_audible_half_duration":return"fully_viewable_audible_half_duration_impression";case "active_view_measurable":return"measurable_impression";case "active_view_viewable":return"viewable_impression";case "audio_audible":return"audio_audible";case "audio_measurable":return"audio_measurable";case "complete":case "unmuted_complete":return"complete";case "end_fullscreen":case "unmuted_end_fullscreen":return"exitfullscreen"; +case "first_quartile":case "unmuted_first_quartile":return"firstquartile";case "fullscreen":case "unmuted_fullscreen":return"fullscreen";case "impression":case "unmuted_impression":return"impression";case "midpoint":case "unmuted_midpoint":return"midpoint";case "mute":case "unmuted_mute":return"mute";case "pause":case "unmuted_pause":return"pause";case "progress":case "unmuted_progress":return"progress";case "resume":case "unmuted_resume":return"resume";case "swipe":case "skip":case "unmuted_skip":return"skip"; +case "start":case "unmuted_start":return"start";case "third_quartile":case "unmuted_third_quartile":return"thirdquartile";case "unmute":case "unmuted_unmute":return"unmute";default:return null}}; +Cz=function(C,b,h){this.EX=C;this.Z=b;this.Zf=h;this.K=new Set;this.j=new Map;wR().subscribe("adactiveviewmeasurable",this.Sb,this);wR().subscribe("adfullyviewableaudiblehalfdurationimpression",this.uq,this);wR().subscribe("adviewableimpression",this.Yb,this);wR().subscribe("adaudioaudible",this.bq,this);wR().subscribe("adaudiomeasurable",this.iq,this)}; +hG=function(C,b,h){var N=h.w_,p=h.HV,P=h.listener,c=h.Ko;h=h.Vm===void 0?!1:h.Vm;if(C.j.has(b))ZK("Unexpected registration of layout in LidarApi");else{if(c){if(C.K.has(c))return;C.K.add(c)}C.j.set(b,P);Pb(uP().aV,"fmd",1);d_U(Ag(Mv),N);var e=h?b:void 0;qMU(wR(),b,{hq:function(){if(!p)return{};var L=C.Z.getPresentingPlayerType(!0),Z;return(Z=C.Z.getVideoData(L))!=null&&Z.isAd()?{currentTime:C.EX.get().getCurrentTimeSec(L,!1,e),duration:p,isPlaying:bQ(C.EX.get(),L).isPlaying(),isVpaid:!1,isYouTube:!0, +volume:C.EX.get().isMuted()?0:C.EX.get().getVolume()/100}:{}}})}}; +Nq=function(C,b){C.j.has(b)?(C.j.delete(b),delete wR().j[b]):ZK("Unexpected unregistration of layout in LidarApi")}; +fe6=function(C,b){if(C.Z.isLifaAdPlaying()){var h=C.Z.f2(!0,!0);C.XP(b,h.width*.5*1.1,h.height*.25*1.1,h.width*.5*.9,h.height*.5*.9)}}; +rSK=function(C,b,h){var N={};ASc(C,N,b,h);ySK(N);N.LACT=gy(function(){return Ap().toString()}); +N.VIS=gy(function(){return C.getVisibilityState().toString()}); +N.SDKV="h.3.0";N.VOL=gy(function(){return C.isMuted()?"0":Math.round(C.getVolume()).toString()}); +N.VED="";return N}; +i5K=function(C,b){var h={};if(b)return h;if(!C.kind)return g.Ri(Error("AdPlacementConfig without kind")),h;if(C.kind==="AD_PLACEMENT_KIND_MILLISECONDS"||C.kind==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"){if(!C.adTimeOffset||!C.adTimeOffset.offsetStartMilliseconds)return g.Ri(Error("malformed AdPlacementConfig")),h;h.MIDROLL_POS=gy(Lb(Math.round(bF(C.adTimeOffset.offsetStartMilliseconds)/1E3).toString()))}else h.MIDROLL_POS=gy(Lb("0"));return h}; +gy=function(C){return{toString:function(){return C()}}}; +JSo=function(C,b,h){function N(e,L){(L=h[L])&&(P[e]=L)} +function p(e,L){(L=h[L])&&(P[e]=c(L))} +if(!h||g.yT(h))return C;var P=Object.assign({},C),c=b?encodeURIComponent:function(e){return e}; +p("DV_VIEWABILITY","doubleVerifyViewability");p("IAS_VIEWABILITY","integralAdsViewability");p("MOAT_INIT","moatInit");p("MOAT_VIEWABILITY","moatViewability");N("GOOGLE_VIEWABILITY","googleViewability");N("VIEWABILITY","viewability");return P}; +ASc=function(C,b,h,N){b.CPN=gy(function(){var p;(p=C.getVideoData(1))?p=p.clientPlaybackNonce:(g.QB(Error("Video data is null.")),p=null);return p}); +b.AD_MT=gy(function(){if(N!=null)var p=N;else{var P=h;C.Y().D("html5_ssap_use_cpn_to_get_time")||(P=void 0);if(C.Y().D("enable_h5_shorts_ad_fill_ad_mt_macro")||C.Y().D("enable_desktop_discovery_pings_ad_mt_macro")||g.sa(C.Y())){var c=C.getPresentingPlayerType(!0),e;p=((e=C.getVideoData(c))==null?0:e.isAd())?uM1(C,c,P):0}else p=uM1(C,2,P)}return Math.round(Math.max(0,p*1E3)).toString()}); +b.MT=gy(function(){return Math.round(Math.max(0,C.getCurrentTime(1,!1)*1E3)).toString()}); +b.P_H=gy(function(){return C.Ti().xe().height.toString()}); +b.P_W=gy(function(){return C.Ti().xe().width.toString()}); +b.PV_H=gy(function(){return C.Ti().getVideoContentRect().height.toString()}); +b.PV_W=gy(function(){return C.Ti().getVideoContentRect().width.toString()})}; +ySK=function(C){C.CONN=gy(Lb("0"));C.WT=gy(function(){return Date.now().toString()})}; +uM1=function(C,b,h){return h!==void 0?C.getCurrentTime(b,!1,h):C.getCurrentTime(b,!1)}; +R7V=function(){}; +QU1=function(C,b,h,N,p){var P,c,e,L,Z,Y,a,l,F,G,V,q,f;g.R(function(y){switch(y.j){case 1:P=!!b.scrubReferrer;c=g.up(b.baseUrl,JSo(h,P,N));e={};if(!b.headers){y.WE(2);break}L=C.X();if(!L.j){Z=L.getValue();y.WE(3);break}return g.J(y,L.j,4);case 4:Z=y.K;case 3:Y=Z;a=g.z(b.headers);for(l=a.next();!l.done;l=a.next())switch(F=l.value,F.headerType){case "VISITOR_ID":g.BC("VISITOR_DATA")&&(e["X-Goog-Visitor-Id"]=g.BC("VISITOR_DATA"));break;case "EOM_VISITOR_ID":g.BC("EOM_VISITOR_DATA")&&(e["X-Goog-EOM-Visitor-Id"]= +g.BC("EOM_VISITOR_DATA"));break;case "USER_AUTH":Y&&(e.Authorization="Bearer "+Y);break;case "PLUS_PAGE_ID":(G=C.G())&&(e["X-Goog-PageId"]=G);break;case "AUTH_USER":V=C.j();!Y&&V&&(e["X-Goog-AuthUser"]=V);break;case "DATASYNC_ID":if(q=void 0,(q=C.N())==null?0:q.Fo("enable_datasync_id_header_in_web_vss_pings"))f=C.K(),kG(c)&&g.BC("LOGGED_IN")&&f&&(e["X-YouTube-DataSync-Id"]=f)}"X-Goog-EOM-Visitor-Id"in e&&"X-Goog-Visitor-Id"in e&&delete e["X-Goog-Visitor-Id"];case 2:g.DY(c,void 0,P,Object.keys(e).length!== +0?e:void 0,"",!0,p),g.$_(y)}})}; +Uzc=function(C,b,h,N,p){this.X=C;this.G=b;this.j=h;this.K=N;this.N=p}; +Xd_=function(C,b){this.j=C;this.Zf=b}; +pz=function(C,b,h,N,p,P,c){var e=e===void 0?new Uzc(function(){var L=C.Y(),Z=C.getVideoData(1);return g.BI(L,Z?g.X5(Z):"")},function(){return C.Y().pageId},function(){return C.Y().q2},function(){var L; +return(L=C.Y().datasyncId)!=null?L:""},function(){return C.Y().experiments}):e; +this.Z=C;this.K=b;this.ZJ=h;this.fO=N;this.fJ=p;this.Zf=P;this.V6=c;this.X=e;this.Kl=null;this.j=new Map;this.N=new Xd_(e,this.Zf)}; +sUS=function(C,b,h,N,p){var P=Ho(C.K.get(),h);P?(h=Ak(C,KHS(P),P,void 0,void 0,N),b.hasOwnProperty("baseUrl")?C.X.send(b,h):C.N.send(b,h,{},p)):ZK("Trying to ping from an unknown layout",void 0,void 0,{layoutId:h})}; +oYU=function(C,b,h,N,p,P){N=N===void 0?[]:N;var c=Ho(C.K.get(),b);if(c){var e=C.ZJ.get().I$(b,h),L=Ak(C,KHS(c),c,p,P);N.forEach(function(Z,Y){Z.baseUrl&&(C.N.send(Z.baseUrl,L,e,Z.attributionSrcMode),Z.serializedAdPingMetadata&&C.fJ.K6("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,c,new B8W(Z,Y),void 0,void 0,c.adLayoutLoggingData))})}else ZK("Trying to track from an unknown layout.",void 0,void 0,{layoutId:b, +trackingType:h})}; +zk=function(C,b){C.Z.sendVideoStatsEngageEvent(b,void 0,2)}; +TO=function(C,b){g.en("adsClientStateChange",b)}; +O5W=function(C,b){C.j.has(b.Kt())?ZK("Trying to register an existing AdErrorInfoSupplier."):C.j.set(b.Kt(),b)}; +vfW=function(C,b){C.j.delete(b.Kt())||ZK("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; +x4=function(C,b,h){typeof h==="string"?C.Z.getVideoData(1).tp(b,h):C.Z.getVideoData(1).jp(b,h)}; +KHS=function(C){var b=pk(C.clientMetadata,"metadata_type_ad_placement_config");C=pk(C.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:b,bL:C}}; +Ak=function(C,b,h,N,p,P){var c=h?Dzx(C):{},e=h?dzl(C,h.layoutId):{},L=WHS(C),Z,Y=p!=null?p:(Z=Y4(C.fO.get(),2))==null?void 0:Z.clientPlaybackNonce;C.Z.Y().D("enable_player_logging_lr_home_infeed_ads")&&!Y&&(Y=Y4(C.fO.get(),1).clientPlaybackNonce);p=void 0;if(h){var a;if((a=C.V6.j.get(h.layoutId))==null?0:a.Vm)p=h.layoutId}a={};C=Object.assign({},rSK(C.Z,p,N),i5K(b.adPlacementConfig,(h==null?void 0:h.renderingContent)!==void 0),e,c,L,(a.FINAL=gy(function(){return"1"}),a.AD_CPN=gy(function(){return Y|| +""}),a)); +(h==null?void 0:h.renderingContent)!==void 0||(C.SLOT_POS=gy(function(){return(b.bL||0).toString()})); +h={};P=Object.assign({},C,P);C=g.z(Object.values(Efl));for(N=C.next();!N.done;N=C.next())N=N.value,c=P[N],c!=null&&c.toString()!=null&&(h[N]=c.toString());return h}; +Dzx=function(C){var b={},h,N=(h=C.Kl)==null?void 0:h.EB/1E3;N!=null&&(b.SURVEY_ELAPSED_MS=gy(function(){return Math.round(N*1E3).toString()})); +b.SURVEY_LOCAL_TIME_EPOCH_S=gy(function(){return Math.round(Date.now()/1E3).toString()}); +return b}; +dzl=function(C,b){C=C.j.get(b);if(!C)return{};C=C.qv();if(!C)return{};b={};return b.YT_ERROR_CODE=C.t9.toString(),b.ERRORCODE=C.aA.toString(),b.ERROR_MSG=C.errorMessage,b}; +WHS=function(C){var b={},h=C.Z.getVideoData(1);b.ASR=gy(function(){var N;return(N=h==null?void 0:h.pw)!=null?N:null}); +b.EI=gy(function(){var N;return(N=h==null?void 0:h.eventId)!=null?N:null}); +return b}; +Py=function(C,b,h){g.O.call(this);this.Z=C;this.gg=b;this.Zf=h;this.listeners=[];this.wY=null;this.f0=new Map;b=new g.ui(this);g.D(this,b);b.S(C,"videodatachange",this.Wwf);b.S(C,"serverstitchedvideochange",this.Lkf);this.xP=Y4(this)}; +Y4=function(C,b){var h=C.Z.getVideoData(b);return h?C.Hy(h,b||C.Z.getPresentingPlayerType(!0)):null}; +nfc=function(C,b,h){var N=C.Hy(b,h);C.xP=N;C.listeners.forEach(function(p){p.lD(N)})}; +tCK=function(C){switch(C){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7}}; +j7=function(C,b,h){g.O.call(this);this.Z=C;this.fO=b;this.Zf=h;this.listeners=[];this.oH=[];this.j=function(){ZK("Called 'doUnlockPreroll' before it's initialized.")}; +b=new AJ(this);h=new g.ui(this);g.D(this,h);g.D(this,b);b.S(C,"progresssync",this.qGp);b.S(C,"presentingplayerstatechange",this.N9f);b.S(C,"fullscreentoggled",this.onFullscreenToggled);b.S(C,"onVolumeChange",this.onVolumeChange);b.S(C,"minimized",this.pX);b.S(C,"overlayvisibilitychange",this.Pi);b.S(C,"shortsadswipe",this.Tn);b.S(C,"resize",this.eC);h.S(C,g.p8("appad"),this.Lf)}; +cy=function(C){xF(C.Zf.get())||C.j()}; +T3K=function(C,b){C.oH=C.oH.filter(function(h){return h!==b})}; +k$=function(C,b,h){return C.getCurrentTimeSec(b,h)}; +B3c=function(C,b){var h;b=(h=C.fO.get().f0.get(b))!=null?h:null;if(b===null)return ZK("Expected ad video start time on playback timeline"),0;C=C.Z.getCurrentTime(2,!0);return C0){var P=b.end.toString();p.forEach(function(c){(c=c.config&&c.config.adPlacementConfig)&&c.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&c.adTimeOffset&&c.adTimeOffset.offsetEndMilliseconds==="-1"&&c.adTimeOffset.offsetEndMilliseconds!==P&&(c.adTimeOffset.offsetEndMilliseconds=P)}); +N.map(function(c){return g.d(c,Ja)}).forEach(function(c){var e; +(c=c==null?void 0:(e=c.slotEntryTrigger)==null?void 0:e.mediaTimeRangeTrigger)&&c.offsetEndMilliseconds==="-1"&&(c.offsetEndMilliseconds=P)})}return{PA:p, +adSlots:N,Wg:!1,ssdaiAdsConfig:C.ssdaiAdsConfig}}; +as=function(C){g.O.call(this);this.Z=C;this.listeners=[];this.j=new AJ(this);g.D(this,this.j);this.j.S(this.Z,"aduxclicked",this.onAdUxClicked);this.j.S(this.Z,"aduxmouseover",this.S_);this.j.S(this.Z,"aduxmouseout",this.uu);this.j.S(this.Z,"muteadaccepted",this.ggf)}; +b7W=function(C,b,h){b=g.q_(b,function(N){return new KKW(N,h,N.id)}); +C.Z.LO("onAdUxUpdate",b)}; +lQ=function(C,b){C=g.z(C.listeners);for(var h=C.next();!h.done;h=C.next())b(h.value)}; +os=function(C,b){this.K=C;this.N=b===void 0?!1:b;this.j={}}; +h01=function(C,b){var h=C.startSecs+C.YJ;h=h<=0?null:h;if(h===null)return null;switch(C.event){case "start":case "continue":case "stop":break;case "predictStart":if(b)break;return null;default:return null}b=Math.max(C.startSecs,0);return{vl:new qM(b,h),uoE:new rE(b,h-b,C.context,C.identifier,C.event,C.j)}}; +Nul=function(){this.j=[]}; +adx=function(C,b,h){var N=g.ks(C.j,b);if(N>=0)return b;b=-N-1;return b>=C.j.length||C.j[b]>h?null:C.j[b]}; +FS=function(C,b,h){g.O.call(this);this.Z=C;this.Zf=b;this.M2=h;this.listeners=[];this.X=!1;this.Gm=[];this.j=null;this.G=new os(this,FHl(b.get()));this.N=new Nul;this.K=null}; +gPc=function(C,b){C.Gm.push(b);for(var h=!1,N=g.z(C.listeners),p=N.next();!p.done;p=N.next())h=p.value.o9(b)||h;C.X=h;z7V(C.Zf.get())&&x4(C.M2.get(),"onci","cpi."+b.identifier+";cpe."+b.event+";cps."+b.startSecs+";cbi."+h)}; +PmV=function(C,b){TO(C.M2.get(),{cuepointTrigger:{event:p06(b.event),cuepointId:b.identifier,totalCueDurationMs:b.YJ*1E3,playheadTimeMs:b.j,cueStartTimeMs:b.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:C.Z.getVideoData(1).clientPlaybackNonce}})}; +p06=function(C){switch(C){case "unknown":return"CUEPOINT_EVENT_UNKNOWN";case "start":return"CUEPOINT_EVENT_START";case "continue":return"CUEPOINT_EVENT_CONTINUE";case "stop":return"CUEPOINT_EVENT_STOP";case "predictStart":return"CUEPOINT_EVENT_PREDICT_START";default:return Pv(C,"Unexpected cuepoint event")}}; +Gr=function(C){this.Z=C}; +jr_=function(C,b){C.Z.cueVideoByPlayerVars(b,2)}; +S7=function(C){this.Z=C}; +$$=function(C){this.Z=C}; +cfl=function(C){switch(C){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7;default:Pv(C,"unknown transitionReason")}}; +kT6=function(C){this.Z=C}; +e0l=function(C,b,h,N,p){g.O.call(this);var P=this,c=Oc(function(){return new vo(P.Zf)}); +g.D(this,c);var e=Oc(function(){return new dc(c,P.Zf)}); +g.D(this,e);var L=Oc(function(){return new $D}); +g.D(this,L);var Z=Oc(function(){return new GK(C)}); +g.D(this,Z);var Y=Oc(function(){return new Wo(c,e,P.Zf)}); +g.D(this,Y);var a=Oc(function(){return new Bo}); +g.D(this,a);this.nj=Oc(function(){return new as(b)}); +g.D(this,this.nj);this.Hb=Oc(function(){return new Dc(p)}); +g.D(this,this.Hb);this.EU=Oc(function(){return new tC(b)}); +g.D(this,this.EU);this.pj=Oc(function(){return new TH(b)}); +g.D(this,this.pj);this.Ak=Oc(function(){return new Gr(b)}); +g.D(this,this.Ak);this.UU=Oc(function(){return new Bq(b)}); +g.D(this,this.UU);this.Zf=Oc(function(){return new I7(b)}); +g.D(this,this.Zf);var l=Oc(function(){return new Y$(N)}); +g.D(this,l);var F=Oc(function(){return new YU(P.Zf)}); +g.D(this,F);this.Lv=Oc(function(){return new S7(b)}); +g.D(this,this.Lv);this.IM=Oc(function(){return new Ec}); +g.D(this,this.IM);this.fO=Oc(function(){return new Py(b,a,P.Zf)}); +g.D(this,this.fO);var G=E5({fO:this.fO,Zf:this.Zf,BF:F}),V=G.context,q=G.V6;this.fJ=G.fJ;this.kt=Oc(function(){return new FS(b,P.Zf,P.M2)}); +g.D(this,this.kt);this.qo=Oc(function(){return new $$(b)}); +g.D(this,this.qo);this.EX=Oc(function(){return new j7(b,P.fO,P.Zf)}); +g.D(this,this.EX);G=Oc(function(){return new ex(c,Y,e,P.Zf,F,"SLOT_TYPE_ABOVE_FEED",P.EX,P.JR,P.b3)}); +g.D(this,G);this.Y6=Oc(function(){return new nk(P.Zf)}); +this.ZJ=Oc(function(){return new Cz(P.EX,b,P.Zf)}); +g.D(this,this.ZJ);this.M2=Oc(function(){return new pz(b,L,P.ZJ,P.fO,P.fJ,P.Zf,q)}); +g.D(this,this.M2);this.VQ=new oa(lO,zr,function(y,u,K,v){return E2(e.get(),y,u,K,v)},Z,Y,e,F,this.Zf,this.fO); +g.D(this,this.VQ);this.GM=new Fg(Z,G,h,this.Zf,C,this.fO,this.EX,this.EU);g.D(this,this.GM);var f=new nu(b,this.GM,this.EX,this.fO,this.kt);this.SS=Oc(function(){return f}); +this.gK=f;this.JR=new YD(Z,Y,this.SS,this.kt,this.EX,this.Zf,this.M2,this.qo);g.D(this,this.JR);this.V8=new Sx(Z,Y,this.pj,this.SS,V);g.D(this,this.V8);this.Di=new iE(this.Zf,Z,Y,G,this.fO,this.V8,h);g.D(this,this.Di);this.s2=Oc(function(){return new ZJ(l,e,F,P.Zf,P.M2,P.EX,P.qo)}); +g.D(this,this.s2);this.s_=Oc(function(){return new YW}); +g.D(this,this.s_);this.H6=new fS(C,this.nj,this.Zf);g.D(this,this.H6);this.UI=new A$(C);g.D(this,this.UI);this.wv=new y7(C);g.D(this,this.wv);this.g0=new iO(C,this.SS,V);g.D(this,this.g0);this.PF=new J$(C,this.pj,this.EX,this.fO,V);g.D(this,this.PF);this.Gy=new uO(C,this.fO);g.D(this,this.Gy);this.b3=new U3(C,this.kt,this.EX,this.M2,this.SS);g.D(this,this.b3);this.E_=new Ra(C);g.D(this,this.E_);this.h8=new O3(C);g.D(this,this.h8);this.P$=new Q7(C);g.D(this,this.P$);this.uX=new s3(C);g.D(this,this.uX); +this.h8=new O3(C);g.D(this,this.h8);this.RD=Oc(function(){return new V7}); +g.D(this,this.RD);this.eL=Oc(function(){return new MG(P.EX)}); +g.D(this,this.eL);this.Da=Oc(function(){return new UbS(P.nj,P.M2,C,L,P.ZJ)}); +g.D(this,this.Da);this.W$=Oc(function(){return new Ik(P.Di,Z,c)}); +g.D(this,this.W$);this.MU=Oc(function(){return new CE(P.Zf,P.M2,P.E_,P.ZJ)}); +g.D(this,this.MU);this.TQ=Oc(function(){return new Pz(C,P.h8,P.E_,P.fO,P.qo,P.EX,P.M2,a,P.kt,P.ZJ,P.Y6,P.Ak,P.pj,P.EU,P.UU,P.Hb,P.Lv,P.Zf,L,V,q)}); +g.D(this,this.TQ);this.e5=Oc(function(){return new xbH(P.EX,P.M2,P.Hb,P.Zf,P.ZJ,P.fO)}); +g.D(this,this.e5);this.Pj=Oc(function(){return new Ka_(P.nj,P.EX,P.M2,L,P.ZJ,P.wv,P.uX,P.Hb,P.Zf,h)}); +g.D(this,this.Pj);this.BU=Oc(function(){return new Xrl(P.nj,P.M2,L)}); +g.D(this,this.BU);this.M0=new Z4(C,this.IM,c);g.D(this,this.M0);this.uH={Mw:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Di],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.JR],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.VQ],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.GM],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.V8]]),r_:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.s2],["SLOT_TYPE_ABOVE_FEED",this.s_],["SLOT_TYPE_FORECASTING",this.s_], +["SLOT_TYPE_IN_PLAYER",this.s_],["SLOT_TYPE_PLAYER_BYTES",this.s_],["SLOT_TYPE_PLAYER_UNDERLAY",this.s_],["SLOT_TYPE_PLAYBACK_TRACKING",this.s_],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.s_]]),jJ:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.H6],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.H6],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.UI],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.UI],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.UI],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.UI],["TRIGGER_TYPE_SLOT_ID_ENTERED", +this.UI],["TRIGGER_TYPE_SLOT_ID_EXITED",this.UI],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.UI],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.UI],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.UI],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.UI],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.UI],["TRIGGER_TYPE_CLOSE_REQUESTED",this.wv],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.g0],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.PF],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", +this.PF],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.PF],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.PF],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.PF],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.PF],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.PF],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Gy],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Gy],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.E_],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", +this.g0],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.P$],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.uX],["TRIGGER_TYPE_AD_BREAK_STARTED",this.h8],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.b3],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.b3],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.b3],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.b3],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.b3]]),Lr:new Map([["SLOT_TYPE_ABOVE_FEED",this.RD], +["SLOT_TYPE_AD_BREAK_REQUEST",this.RD],["SLOT_TYPE_FORECASTING",this.RD],["SLOT_TYPE_IN_PLAYER",this.RD],["SLOT_TYPE_PLAYER_BYTES",this.eL],["SLOT_TYPE_PLAYER_UNDERLAY",this.RD],["SLOT_TYPE_PLAYBACK_TRACKING",this.RD],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.RD]]),NS:new Map([["SLOT_TYPE_ABOVE_FEED",this.Da],["SLOT_TYPE_AD_BREAK_REQUEST",this.W$],["SLOT_TYPE_FORECASTING",this.MU],["SLOT_TYPE_PLAYER_BYTES",this.TQ],["SLOT_TYPE_PLAYBACK_TRACKING",this.e5],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", +this.e5],["SLOT_TYPE_IN_PLAYER",this.Pj],["SLOT_TYPE_PLAYER_UNDERLAY",this.BU]])};this.listeners=[L.get()];this.Vc={Di:this.Di,cT:this.Zf.get(),Sp:this.Hb.get(),lZ:this.EX.get(),GM:this.GM,PC:c.get(),w3:this.IM.get(),j2:this.H6,gH:L.get(),Zv:this.fO.get()}}; +LL_=function(C,b,h,N,p){g.O.call(this);var P=this,c=Oc(function(){return new vo(P.Zf)}); +g.D(this,c);var e=Oc(function(){return new dc(c,P.Zf)}); +g.D(this,e);var L=Oc(function(){return new $D}); +g.D(this,L);var Z=Oc(function(){return new GK(C)}); +g.D(this,Z);var Y=Oc(function(){return new Wo(c,e,P.Zf)}); +g.D(this,Y);var a=Oc(function(){return new Bo}); +g.D(this,a);this.nj=Oc(function(){return new as(b)}); +g.D(this,this.nj);this.Hb=Oc(function(){return new Dc(p)}); +g.D(this,this.Hb);this.EU=Oc(function(){return new tC(b)}); +g.D(this,this.EU);this.pj=Oc(function(){return new TH(b)}); +g.D(this,this.pj);this.Ak=Oc(function(){return new Gr(b)}); +g.D(this,this.Ak);this.UU=Oc(function(){return new Bq(b)}); +g.D(this,this.UU);this.Zf=Oc(function(){return new I7(b)}); +g.D(this,this.Zf);var l=Oc(function(){return new Y$(N)}); +g.D(this,l);var F=Oc(function(){return new YU(P.Zf)}); +g.D(this,F);var G=Oc(function(){return new ex(c,Y,e,P.Zf,F,null,null,P.JR,P.b3)}); +g.D(this,G);this.Lv=Oc(function(){return new S7(b)}); +g.D(this,this.Lv);this.IM=Oc(function(){return new Ec}); +g.D(this,this.IM);this.fO=Oc(function(){return new Py(b,a,P.Zf)}); +g.D(this,this.fO);var V=E5({fO:this.fO,Zf:this.Zf,BF:F}),q=V.context,f=V.V6;this.fJ=V.fJ;this.kt=Oc(function(){return new FS(b,P.Zf,P.M2)}); +this.EX=Oc(function(){return new j7(b,P.fO,P.Zf)}); +g.D(this,this.EX);this.ZJ=Oc(function(){return new Cz(P.EX,b,P.Zf)}); +g.D(this,this.ZJ);this.M2=Oc(function(){return new pz(b,L,P.ZJ,P.fO,P.fJ,P.Zf,f)}); +g.D(this,this.M2);this.Y6=Oc(function(){return new nk(P.Zf)}); +g.D(this,this.Y6);this.VQ=new oa(lO,zr,function(u,K,v,T){return E2(e.get(),u,K,v,T)},Z,Y,e,F,this.Zf,this.fO); +g.D(this,this.VQ);this.GM=new Fg(Z,G,h,this.Zf,C,this.fO,this.EX,this.EU);g.D(this,this.GM);var y=new nu(b,this.GM,this.EX,this.fO,this.kt);this.SS=Oc(function(){return y}); +this.gK=y;this.JR=new YD(Z,Y,this.SS,this.kt,this.EX,this.Zf,this.M2);g.D(this,this.JR);this.V8=new Sx(Z,Y,this.pj,this.SS,q);g.D(this,this.V8);this.Di=new iE(this.Zf,Z,Y,G,this.fO,this.V8,h);g.D(this,this.Di);this.s2=Oc(function(){return new ZJ(l,e,F,P.Zf,P.M2,P.EX)}); +g.D(this,this.s2);this.s_=Oc(function(){return new YW}); +g.D(this,this.s_);this.H6=new fS(C,this.nj,this.Zf);g.D(this,this.H6);this.UI=new A$(C);g.D(this,this.UI);this.wv=new y7(C);g.D(this,this.wv);this.g0=new iO(C,this.SS,q);g.D(this,this.g0);this.PF=new J$(C,this.pj,this.EX,this.fO,q);g.D(this,this.PF);this.E_=new Ra(C);g.D(this,this.E_);this.P$=new Q7(C);g.D(this,this.P$);this.uX=new s3(C);g.D(this,this.uX);this.qo=Oc(function(){return new $$(b)}); +g.D(this,this.qo);this.h8=new O3(C);g.D(this,this.h8);this.b3=new U3(C,this.kt,this.EX,this.M2,this.SS);g.D(this,this.b3);this.RD=Oc(function(){return new V7}); +g.D(this,this.RD);this.eL=Oc(function(){return new MG(P.EX)}); +g.D(this,this.eL);this.W$=Oc(function(){return new Ik(P.Di,Z,c)}); +g.D(this,this.W$);this.MU=Oc(function(){return new CE(P.Zf,P.M2,P.E_,P.ZJ)}); +g.D(this,this.MU);this.Pj=Oc(function(){return new swW(P.nj,P.EX,P.M2,L,P.ZJ,P.wv,P.uX,P.Hb,P.Zf,h)}); +g.D(this,this.Pj);this.TQ=Oc(function(){return new jb(C,P.h8,P.E_,P.M2,P.ZJ,P.Y6,P.Ak,P.fO,P.EX,P.pj,P.EU,P.UU,P.Hb,P.Lv,P.Zf,P.qo,q,f)}); +g.D(this,this.TQ);this.M0=new Z4(C,this.IM,c);g.D(this,this.M0);this.uH={Mw:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Di],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.JR],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.VQ],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.GM],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.V8]]),r_:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.s2],["SLOT_TYPE_FORECASTING",this.s_],["SLOT_TYPE_IN_PLAYER",this.s_], +["SLOT_TYPE_PLAYER_BYTES",this.s_]]),jJ:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.H6],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.UI],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.UI],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.UI],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.UI],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.UI],["TRIGGER_TYPE_SLOT_ID_EXITED",this.UI],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.UI],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.UI],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.UI], +["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.UI],["TRIGGER_TYPE_CLOSE_REQUESTED",this.wv],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.g0],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.PF],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.PF],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.PF],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.E_],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.g0],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.P$],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", +this.uX],["TRIGGER_TYPE_AD_BREAK_STARTED",this.h8],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.b3],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.b3],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.b3],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.b3],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.b3]]),Lr:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.RD],["SLOT_TYPE_FORECASTING",this.RD],["SLOT_TYPE_IN_PLAYER",this.RD],["SLOT_TYPE_PLAYER_BYTES",this.eL]]), +NS:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.W$],["SLOT_TYPE_FORECASTING",this.MU],["SLOT_TYPE_IN_PLAYER",this.Pj],["SLOT_TYPE_PLAYER_BYTES",this.TQ]])};this.listeners=[L.get()];this.Vc={Di:this.Di,cT:this.Zf.get(),Sp:this.Hb.get(),lZ:this.EX.get(),GM:this.GM,PC:c.get(),w3:this.IM.get(),j2:this.H6,gH:L.get(),Zv:this.fO.get()}}; +Z7V=function(C,b,h,N,p){g.O.call(this);var P=this,c=Oc(function(){return new vo(P.Zf)}); +g.D(this,c);var e=Oc(function(){return new dc(c,P.Zf)}); +g.D(this,e);var L=Oc(function(){return new $D}); +g.D(this,L);var Z=Oc(function(){return new GK(C)}); +g.D(this,Z);var Y=Oc(function(){return new Wo(c,e,P.Zf)}); +g.D(this,Y);var a=Oc(function(){return new Bo}); +g.D(this,a);this.nj=Oc(function(){return new as(b)}); +g.D(this,this.nj);this.Hb=Oc(function(){return new Dc(p)}); +g.D(this,this.Hb);this.EU=Oc(function(){return new tC(b)}); +g.D(this,this.EU);this.pj=Oc(function(){return new TH(b)}); +g.D(this,this.pj);this.Ak=Oc(function(){return new Gr(b)}); +g.D(this,this.Ak);this.UU=Oc(function(){return new Bq(b)}); +g.D(this,this.UU);this.Zf=Oc(function(){return new I7(b)}); +g.D(this,this.Zf);var l=Oc(function(){return new Y$(N)}); +g.D(this,l);var F=Oc(function(){return new YU(P.Zf)}); +g.D(this,F);var G=Oc(function(){return new ex(c,Y,e,P.Zf,F,null,null,null,null)}); +g.D(this,G);this.Lv=Oc(function(){return new S7(b)}); +g.D(this,this.Lv);this.fO=Oc(function(){return new Py(b,a,P.Zf)}); +g.D(this,this.fO);var V=E5({fO:this.fO,Zf:this.Zf,BF:F}),q=V.context,f=V.V6;this.fJ=V.fJ;this.EX=Oc(function(){return new j7(b,P.fO,P.Zf)}); +g.D(this,this.EX);this.ZJ=Oc(function(){return new Cz(P.EX,b,P.Zf)}); +g.D(this,this.ZJ);this.M2=Oc(function(){return new pz(b,L,P.ZJ,P.fO,P.fJ,P.Zf,f)}); +g.D(this,this.M2);this.Y6=Oc(function(){return new nk(P.Zf)}); +g.D(this,this.Y6);this.VQ=new oa(lO,zr,function(u,K,v,T){return E2(e.get(),u,K,v,T)},Z,Y,e,F,this.Zf,this.fO); +g.D(this,this.VQ);this.GM=new Fg(Z,G,h,this.Zf,C,this.fO,this.EX,this.EU);g.D(this,this.GM);var y=new nu(b,this.GM,this.EX,this.fO);this.SS=Oc(function(){return y}); +this.gK=y;this.V8=new Sx(Z,Y,this.pj,this.SS,q);g.D(this,this.V8);this.Di=new iE(this.Zf,Z,Y,G,this.fO,this.V8,h);g.D(this,this.Di);this.s2=Oc(function(){return new ZJ(l,e,F,P.Zf,P.M2,P.EX)}); +g.D(this,this.s2);this.s_=Oc(function(){return new YW}); +g.D(this,this.s_);this.H6=new fS(C,this.nj,this.Zf);g.D(this,this.H6);this.UI=new A$(C);g.D(this,this.UI);this.g0=new iO(C,this.SS,q);g.D(this,this.g0);this.PF=new J$(C,this.pj,this.EX,this.fO,q);g.D(this,this.PF);this.E_=new Ra(C);g.D(this,this.E_);this.P$=new Q7(C);g.D(this,this.P$);this.qo=Oc(function(){return new $$(b)}); +g.D(this,this.qo);this.h8=new O3(C);g.D(this,this.h8);this.RD=Oc(function(){return new V7}); +g.D(this,this.RD);this.eL=Oc(function(){return new MG(P.EX)}); +g.D(this,this.eL);this.W$=Oc(function(){return new Ik(P.Di,Z,c)}); +g.D(this,this.W$);this.MU=Oc(function(){return new CE(P.Zf,P.M2,P.E_,P.ZJ)}); +g.D(this,this.MU);this.T6=Oc(function(){return new BKl(P.nj,P.EX,P.M2,L,h,P.Zf)}); +g.D(this,this.T6);this.TQ=Oc(function(){return new jb(C,P.h8,P.E_,P.M2,P.ZJ,P.Y6,P.Ak,P.fO,P.EX,P.pj,P.EU,P.UU,P.Hb,P.Lv,P.Zf,P.qo,q,f)}); +g.D(this,this.TQ);this.uH={Mw:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Di],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.VQ],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.GM],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.V8]]),r_:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.s2],["SLOT_TYPE_FORECASTING",this.s_],["SLOT_TYPE_IN_PLAYER",this.s_],["SLOT_TYPE_PLAYER_BYTES",this.s_]]),jJ:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.H6],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", +this.UI],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.UI],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.UI],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.UI],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.UI],["TRIGGER_TYPE_SLOT_ID_EXITED",this.UI],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.UI],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.UI],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.UI],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.g0],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.PF],["TRIGGER_TYPE_MEDIA_TIME_RANGE", +this.PF],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.E_],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.g0],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.P$],["TRIGGER_TYPE_AD_BREAK_STARTED",this.h8]]),Lr:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.RD],["SLOT_TYPE_ABOVE_FEED",this.RD],["SLOT_TYPE_FORECASTING",this.RD],["SLOT_TYPE_IN_PLAYER",this.RD],["SLOT_TYPE_PLAYER_BYTES",this.eL]]),NS:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.W$],["SLOT_TYPE_FORECASTING",this.MU],["SLOT_TYPE_IN_PLAYER", +this.T6],["SLOT_TYPE_PLAYER_BYTES",this.TQ]])};this.listeners=[L.get()];this.Vc={Di:this.Di,cT:this.Zf.get(),Sp:this.Hb.get(),lZ:this.EX.get(),GM:this.GM,PC:c.get(),w3:null,j2:this.H6,gH:L.get(),Zv:this.fO.get()}}; +Yto=function(C,b,h,N,p){g.O.call(this);var P=this,c=Oc(function(){return new vo(P.Zf)}); +g.D(this,c);var e=Oc(function(){return new dc(c,P.Zf)}); +g.D(this,e);var L=Oc(function(){return new $D}); +g.D(this,L);var Z=Oc(function(){return new GK(C)}); +g.D(this,Z);var Y=Oc(function(){return new Wo(c,e,P.Zf)}); +g.D(this,Y);var a=Oc(function(){return new Bo}); +g.D(this,a);this.qe=Oc(function(){return new kT6(b)}); +g.D(this,this.qe);this.nj=Oc(function(){return new as(b)}); +g.D(this,this.nj);this.Hb=Oc(function(){return new Dc(p)}); +g.D(this,this.Hb);this.EU=Oc(function(){return new tC(b)}); +g.D(this,this.EU);this.pj=Oc(function(){return new TH(b)}); +g.D(this,this.pj);this.Ak=Oc(function(){return new Gr(b)}); +g.D(this,this.Ak);this.UU=Oc(function(){return new Bq(b)}); +g.D(this,this.UU);this.Zf=Oc(function(){return new I7(b)}); +g.D(this,this.Zf);var l=Oc(function(){return new Y$(N)}); +g.D(this,l);var F=Oc(function(){return new YU(P.Zf)}); +g.D(this,F);var G=Oc(function(){return new ex(c,Y,e,P.Zf,F,null,null,null,null)}); +g.D(this,G);this.Lv=Oc(function(){return new S7(b)}); +g.D(this,this.Lv);this.fO=Oc(function(){return new Py(b,a,P.Zf)}); +g.D(this,this.fO);var V=E5({fO:this.fO,Zf:this.Zf,BF:F}),q=V.context,f=V.V6;this.fJ=V.fJ;this.EX=Oc(function(){return new j7(b,P.fO,P.Zf)}); +g.D(this,this.EX);this.ZJ=Oc(function(){return new Cz(P.EX,b,P.Zf)}); +g.D(this,this.ZJ);this.M2=Oc(function(){return new pz(b,L,P.ZJ,P.fO,P.fJ,P.Zf,f)}); +g.D(this,this.M2);this.Y6=Oc(function(){return new nk(P.Zf)}); +g.D(this,this.Y6);this.VQ=new oa(qHx,zr,function(u,K,v,T){return nRW(e.get(),u,K,v,T)},Z,Y,e,F,this.Zf,this.fO); +g.D(this,this.VQ);this.GM=new Fg(Z,G,h,this.Zf,C,this.fO,this.EX,this.EU);g.D(this,this.GM);var y=new nu(b,this.GM,this.EX,this.fO);this.SS=Oc(function(){return y}); +this.gK=y;this.V8=new Sx(Z,Y,this.pj,this.SS,q);g.D(this,this.V8);this.Di=new iE(this.Zf,Z,Y,G,this.fO,this.V8,h);g.D(this,this.Di);this.s2=Oc(function(){return new ZJ(l,e,F,P.Zf,P.M2,P.EX)}); +g.D(this,this.s2);this.s_=Oc(function(){return new YW}); +g.D(this,this.s_);this.H6=new fS(C,this.nj,this.Zf);g.D(this,this.H6);this.UI=new A$(C);g.D(this,this.UI);this.g0=new iO(C,this.SS,q);g.D(this,this.g0);this.PF=new J$(C,this.pj,this.EX,this.fO,q);g.D(this,this.PF);this.E_=new Ra(C);g.D(this,this.E_);this.P$=new Q7(C);g.D(this,this.P$);this.qo=Oc(function(){return new $$(b)}); +g.D(this,this.qo);this.h8=new O3(C);g.D(this,this.h8);this.RD=Oc(function(){return new V7}); +g.D(this,this.RD);this.eL=Oc(function(){return new MG(P.EX)}); +g.D(this,this.eL);this.W$=Oc(function(){return new Ik(P.Di,Z,c)}); +g.D(this,this.W$);this.MU=Oc(function(){return new CE(P.Zf,P.M2,P.E_,P.ZJ)}); +g.D(this,this.MU);this.TQ=Oc(function(){return new jb(C,P.h8,P.E_,P.M2,P.ZJ,P.Y6,P.Ak,P.fO,P.EX,P.pj,P.EU,P.UU,P.Hb,P.Lv,P.Zf,P.qo,q,f)}); +g.D(this,this.TQ);this.hY=Oc(function(){return new v5W(P.nj,P.EX,P.M2,L,P.qe,h,P.fO)}); +g.D(this,this.hY);this.uH={Mw:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Di],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.VQ],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.GM],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.V8]]),r_:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.s2],["SLOT_TYPE_FORECASTING",this.s_],["SLOT_TYPE_IN_PLAYER",this.s_],["SLOT_TYPE_PLAYER_BYTES",this.s_]]),jJ:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.H6],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", +this.UI],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.UI],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.UI],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.UI],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.UI],["TRIGGER_TYPE_SLOT_ID_EXITED",this.UI],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.UI],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.UI],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.UI],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.g0],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.PF],["TRIGGER_TYPE_MEDIA_TIME_RANGE", +this.PF],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.E_],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.g0],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.P$],["TRIGGER_TYPE_AD_BREAK_STARTED",this.h8]]),Lr:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.RD],["SLOT_TYPE_FORECASTING",this.RD],["SLOT_TYPE_IN_PLAYER",this.RD],["SLOT_TYPE_PLAYER_BYTES",this.eL]]),NS:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.W$],["SLOT_TYPE_FORECASTING",this.MU],["SLOT_TYPE_IN_PLAYER",this.hY],["SLOT_TYPE_PLAYER_BYTES", +this.TQ]])};this.listeners=[L.get()];this.Vc={Di:this.Di,cT:this.Zf.get(),Sp:this.Hb.get(),lZ:this.EX.get(),GM:this.GM,PC:c.get(),w3:null,j2:this.H6,gH:L.get(),Zv:this.fO.get()}}; +aWo=function(C,b,h,N,p){g.O.call(this);var P=this,c=Oc(function(){return new vo(P.Zf)}); +g.D(this,c);var e=Oc(function(){return new dc(c,P.Zf)}); +g.D(this,e);var L=Oc(function(){return new $D}); +g.D(this,L);var Z=Oc(function(){return new GK(C)}); +g.D(this,Z);var Y=Oc(function(){return new Wo(c,e,P.Zf)}); +g.D(this,Y);var a=Oc(function(){return new Bo}); +g.D(this,a);this.qe=Oc(function(){return new kT6(b)}); +g.D(this,this.qe);this.nj=Oc(function(){return new as(b)}); +g.D(this,this.nj);this.Hb=Oc(function(){return new Dc(p)}); +g.D(this,this.Hb);this.EU=Oc(function(){return new tC(b)}); +g.D(this,this.EU);this.pj=Oc(function(){return new TH(b)}); +g.D(this,this.pj);this.Ak=Oc(function(){return new Gr(b)}); +g.D(this,this.Ak);this.UU=Oc(function(){return new Bq(b)}); +g.D(this,this.UU);this.Zf=Oc(function(){return new I7(b)}); +g.D(this,this.Zf);var l=Oc(function(){return new Y$(N)}); +g.D(this,l);var F=Oc(function(){return new YU(P.Zf)}); +g.D(this,F);this.Lv=Oc(function(){return new S7(b)}); +g.D(this,this.Lv);this.fO=Oc(function(){return new Py(b,a,P.Zf)}); +g.D(this,this.fO);var G=E5({fO:this.fO,Zf:this.Zf,BF:F}),V=G.context,q=G.V6;this.fJ=G.fJ;this.kt=Oc(function(){return new FS(b,P.Zf,P.M2)}); +g.D(this,this.kt);this.qo=Oc(function(){return new $$(b)}); +g.D(this,this.qo);this.EX=Oc(function(){return new j7(b,P.fO,P.Zf)}); +g.D(this,this.EX);G=Oc(function(){return new ex(c,Y,e,P.Zf,F,null,P.EX,P.JR,P.b3,3)}); +g.D(this,G);this.Y6=Oc(function(){return new nk(P.Zf)}); +this.ZJ=Oc(function(){return new Cz(P.EX,b,P.Zf)}); +g.D(this,this.ZJ);this.M2=Oc(function(){return new pz(b,L,P.ZJ,P.fO,P.fJ,P.Zf,q)}); +g.D(this,this.M2);this.GM=new Fg(Z,G,h,this.Zf,C,this.fO,this.EX,this.EU);g.D(this,this.GM);var f=new nu(b,this.GM,this.EX,this.fO,this.kt);this.SS=Oc(function(){return f}); +this.gK=f;this.VQ=new oa(mlW,zr,function(y,u,K,v){return nRW(e.get(),y,u,K,v)},Z,Y,e,F,this.Zf,this.fO); +g.D(this,this.VQ);this.JR=new YD(Z,Y,this.SS,this.kt,this.EX,this.Zf,this.M2,this.qo);g.D(this,this.JR);this.V8=new Sx(Z,Y,this.pj,this.SS,V);g.D(this,this.V8);this.Di=new iE(this.Zf,Z,Y,G,this.fO,this.V8,h);g.D(this,this.Di);this.s2=Oc(function(){return new ZJ(l,e,F,P.Zf,P.M2,P.EX,P.qo)}); +g.D(this,this.s2);this.s_=Oc(function(){return new YW}); +g.D(this,this.s_);this.H6=new fS(C,this.nj,this.Zf);g.D(this,this.H6);this.UI=new A$(C);g.D(this,this.UI);this.g0=new iO(C,this.SS,V);g.D(this,this.g0);this.PF=new J$(C,this.pj,this.EX,this.fO,V);g.D(this,this.PF);this.Gy=new uO(C,this.fO);g.D(this,this.Gy);this.b3=new U3(C,this.kt,this.EX,this.M2,this.SS);g.D(this,this.b3);this.E_=new Ra(C);g.D(this,this.E_);this.P$=new Q7(C);g.D(this,this.P$);this.h8=new O3(C);g.D(this,this.h8);this.RD=Oc(function(){return new V7}); +g.D(this,this.RD);this.eL=Oc(function(){return new MG(P.EX)}); +g.D(this,this.eL);this.W$=Oc(function(){return new Ik(P.Di,Z,c)}); +g.D(this,this.W$);this.MU=Oc(function(){return new CE(P.Zf,P.M2,P.E_,P.ZJ)}); +g.D(this,this.MU);this.TQ=Oc(function(){return new Pz(C,P.h8,P.E_,P.fO,P.qo,P.EX,P.M2,a,P.kt,P.ZJ,P.Y6,P.Ak,P.pj,P.EU,P.UU,P.Hb,P.Lv,P.Zf,L,V,q)}); +g.D(this,this.TQ);this.Pj=Oc(function(){return new Dr1(P.nj,P.EX,P.M2,L,P.qe,h,P.Zf,P.fO)}); +g.D(this,this.Pj);this.uH={Mw:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.Di],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.JR],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.VQ],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.GM],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.V8]]),r_:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.s2],["SLOT_TYPE_FORECASTING",this.s_],["SLOT_TYPE_IN_PLAYER",this.s_],["SLOT_TYPE_PLAYER_BYTES",this.s_]]),jJ:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", +this.H6],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.UI],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.UI],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.UI],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.UI],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.UI],["TRIGGER_TYPE_SLOT_ID_EXITED",this.UI],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.UI],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.UI],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.UI],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.g0],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", +this.PF],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.PF],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.Gy],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.Gy],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.E_],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.g0],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.P$],["TRIGGER_TYPE_AD_BREAK_STARTED",this.h8],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.b3],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", +this.b3],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.b3],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.b3],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.b3]]),Lr:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.RD],["SLOT_TYPE_FORECASTING",this.RD],["SLOT_TYPE_IN_PLAYER",this.RD],["SLOT_TYPE_PLAYER_BYTES",this.eL]]),NS:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.W$],["SLOT_TYPE_FORECASTING",this.MU],["SLOT_TYPE_PLAYER_BYTES",this.TQ],["SLOT_TYPE_IN_PLAYER",this.Pj]])};this.listeners=[L.get()]; +this.Vc={Di:this.Di,cT:this.Zf.get(),Sp:this.Hb.get(),lZ:this.EX.get(),GM:this.GM,PC:c.get(),w3:null,j2:this.H6,gH:L.get(),Zv:this.fO.get()}}; +oPH=function(C,b,h,N){function p(){return P.K} +g.O.call(this);var P=this;C.Y().experiments.Fo("html5_dispose_of_manager_before_dependency")?(this.j=lWW(p,C,b,h,N),this.K=(new vk(this.j)).N(),g.D(this,this.K),g.D(this,this.j)):(this.j=lWW(p,C,b,h,N),g.D(this,this.j),this.K=(new vk(this.j)).N(),g.D(this,this.K))}; +Hy=function(C){return C.j.Vc}; +lWW=function(C,b,h,N,p){try{var P=b.Y();if(g.vI(P))var c=new e0l(C,b,h,N,p);else if(g.d_(P))c=new LL_(C,b,h,N,p);else if(u2(P))c=new Z7V(C,b,h,N,p);else if(g.KF(P))c=new Yto(C,b,h,N,p);else if(g.fO(P))c=new aWo(C,b,h,N,p);else throw new TypeError("Unknown web interface");return c}catch(e){return c=b.Y(),ZK("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:c.j.cplatform,interface:c.j.c,E3O:c.j.cver,G7p:c.j.ctheme,o3i:c.j.cplayer,O6$:c.playerStyle}),new wdx(C,b,h,N,p)}}; +FLV=function(C){dK.call(this,C)}; +GTS=function(C,b,h,N,p){xY.call(this,C,{B:"div",C:"ytp-ad-timed-pie-countdown-container",U:[{B:"svg",C:"ytp-ad-timed-pie-countdown",T:{viewBox:"0 0 20 20"},U:[{B:"circle",C:"ytp-ad-timed-pie-countdown-background",T:{r:"10",cx:"10",cy:"10"}},{B:"circle",C:"ytp-ad-timed-pie-countdown-inner",T:{r:"5",cx:"10",cy:"10"}},{B:"circle",C:"ytp-ad-timed-pie-countdown-outer",T:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",b,h,N,p);this.X=this.dO("ytp-ad-timed-pie-countdown-container");this.N=this.dO("ytp-ad-timed-pie-countdown-inner"); +this.W=this.dO("ytp-ad-timed-pie-countdown-outer");this.K=Math.ceil(2*Math.PI*5);this.hide()}; +StU=function(C,b,h,N,p,P){aS.call(this,C,{B:"div",C:"ytp-ad-action-interstitial",T:{tabindex:"0"},U:[{B:"div",C:"ytp-ad-action-interstitial-background-container"},{B:"div",C:"ytp-ad-action-interstitial-slot",U:[{B:"div",C:"ytp-ad-action-interstitial-instream-info"},{B:"div",C:"ytp-ad-action-interstitial-card",U:[{B:"div",C:"ytp-ad-action-interstitial-image-container"},{B:"div",C:"ytp-ad-action-interstitial-headline-container"},{B:"div",C:"ytp-ad-action-interstitial-description-container"},{B:"div", +C:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",b,h,N);this.Rd=p;this.Tq=P;this.navigationEndpoint=this.j=this.skipButton=this.K=this.actionButton=null;this.rO=this.dO("ytp-ad-action-interstitial-instream-info");this.Df=this.dO("ytp-ad-action-interstitial-image-container");this.V=new sY(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,"ytp-ad-action-interstitial-image");g.D(this,this.V);this.V.Gi(this.Df);this.sX=this.dO("ytp-ad-action-interstitial-headline-container"); +this.W=new Br(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,"ytp-ad-action-interstitial-headline");g.D(this,this.W);this.W.Gi(this.sX);this.N2=this.dO("ytp-ad-action-interstitial-description-container");this.N=new Br(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,"ytp-ad-action-interstitial-description");g.D(this,this.N);this.N.Gi(this.N2);this.kh=this.dO("ytp-ad-action-interstitial-background-container");this.CO=new sY(this.api,this.layoutId,this.interactionLoggingClientData, +this.Sp,"ytp-ad-action-interstitial-background",!0);g.D(this,this.CO);this.CO.Gi(this.kh);this.Yh=this.dO("ytp-ad-action-interstitial-action-button-container");this.slot=this.dO("ytp-ad-action-interstitial-slot");this.U_=this.dO("ytp-ad-action-interstitial-card");this.X=new AJ;g.D(this,this.X);this.hide()}; +$hK=function(C){var b=g.Ei("html5-video-player");b&&g.Zo(b,"ytp-ad-display-override",C)}; +MGS=function(C,b,h,N){aS.call(this,C,{B:"div",C:"ytp-ad-overlay-slot",U:[{B:"div",C:"ytp-ad-overlay-container"}]},"invideo-overlay",b,h,N);this.V=[];this.kh=this.sX=this.X=this.Yh=this.rO=null;this.CO=!1;this.W=null;this.N2=0;C=this.dO("ytp-ad-overlay-container");this.Df=new j5(C,45E3,6E3,.3,.4);g.D(this,this.Df);this.N=z0W(this);g.D(this,this.N);this.N.Gi(C);this.K=H7H(this);g.D(this,this.K);this.K.Gi(C);this.j=VGK(this);g.D(this,this.j);this.j.Gi(C);this.hide()}; +z0W=function(C){var b=new g.YY({B:"div",C:"ytp-ad-text-overlay",U:[{B:"div",C:"ytp-ad-overlay-ad-info-button-container"},{B:"div",C:"ytp-ad-overlay-close-container",U:[{B:"button",C:"ytp-ad-overlay-close-button",U:[iI(qt6)]}]},{B:"div",C:"ytp-ad-overlay-title",BE:"{{title}}"},{B:"div",C:"ytp-ad-overlay-desc",BE:"{{description}}"},{B:"div",J4:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"],BE:"{{displayUrl}}"}]});C.S(b.dO("ytp-ad-overlay-title"),"click",function(h){VI(C,b.element,h)}); +C.S(b.dO("ytp-ad-overlay-link"),"click",function(h){VI(C,b.element,h)}); +C.S(b.dO("ytp-ad-overlay-close-container"),"click",C.Gf);b.hide();return b}; +H7H=function(C){var b=new g.YY({B:"div",J4:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],U:[{B:"div",C:"ytp-ad-overlay-ad-info-button-container"},{B:"div",C:"ytp-ad-overlay-close-container",U:[{B:"button",C:"ytp-ad-overlay-close-button",U:[iI(qt6)]}]},{B:"div",C:"ytp-ad-overlay-text-image",U:[{B:"img",T:{src:"{{imageUrl}}"}}]},{B:"div",C:"ytp-ad-overlay-title",BE:"{{title}}"},{B:"div",C:"ytp-ad-overlay-desc",BE:"{{description}}"},{B:"div",J4:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], +BE:"{{displayUrl}}"}]});C.S(b.dO("ytp-ad-overlay-title"),"click",function(h){VI(C,b.element,h)}); +C.S(b.dO("ytp-ad-overlay-link"),"click",function(h){VI(C,b.element,h)}); +C.S(b.dO("ytp-ad-overlay-close-container"),"click",C.Gf);C.S(b.dO("ytp-ad-overlay-text-image"),"click",C.XFO);b.hide();return b}; +VGK=function(C){var b=new g.YY({B:"div",C:"ytp-ad-image-overlay",U:[{B:"div",C:"ytp-ad-overlay-ad-info-button-container"},{B:"div",C:"ytp-ad-overlay-close-container",U:[{B:"button",C:"ytp-ad-overlay-close-button",U:[iI(qt6)]}]},{B:"div",C:"ytp-ad-overlay-image",U:[{B:"img",T:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});C.S(b.dO("ytp-ad-overlay-image"),"click",function(h){VI(C,b.element,h)}); +C.S(b.dO("ytp-ad-overlay-close-container"),"click",C.Gf);b.hide();return b}; +mhl=function(C,b){if(b){var h=g.d(b,fG)||null;h==null?g.Ri(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(b=g.Ei("video-ads ytp-ad-module")||null,b==null?g.Ri(Error("Could not locate the root ads container element to attach the ad info dialog.")):(C.sX=new g.YY({B:"div",C:"ytp-ad-overlay-ad-info-dialog-container"}),g.D(C,C.sX),C.sX.Gi(b),b=new TY(C.api,C.layoutId,C.interactionLoggingClientData,C.Sp,C.sX.element,!1),g.D(C,b),b.init(Pr("ad-info-hover-text-button"),h,C.macros), +C.W?(b.Gi(C.W,0),b.subscribe("f",C.YIf,C),b.subscribe("e",C.sT,C),C.S(C.W,"click",C.m8O),C.S(g.Ei("ytp-ad-button",b.element),"click",function(){var N;if(g.d((N=g.d(h.button,g.yM))==null?void 0:N.serviceEndpoint,Tmo))C.CO=C.api.getPlayerState(1)===2,C.api.pauseVideo();else C.api.onAdUxClicked("ad-info-hover-text-button",C.layoutId)}),C.kh=b):g.Ri(Error("Ad info button container within overlay ad was not present."))))}else g.QB(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; +AfS=function(C,b){if(fWU(C,Mq)||C.api.isMinimized())return!1;var h=lI(b.title),N=lI(b.description);if(g.qp(h)||g.qp(N))return!1;C.createServerVe(C.N.element,b.trackingParams||null);C.N.updateValue("title",lI(b.title));C.N.updateValue("description",lI(b.description));C.N.updateValue("displayUrl",lI(b.displayUrl));b.navigationEndpoint&&g.g$(C.V,b.navigationEndpoint);C.N.show();C.Df.start();C.logVisibility(C.N.element,!0);C.S(C.N.element,"mouseover",function(){C.N2++}); +return!0}; +yfW=function(C,b){if(fWU(C,Mq)||C.api.isMinimized())return!1;var h=lI(b.title),N=lI(b.description);if(g.qp(h)||g.qp(N))return!1;C.createServerVe(C.K.element,b.trackingParams||null);C.K.updateValue("title",lI(b.title));C.K.updateValue("description",lI(b.description));C.K.updateValue("displayUrl",lI(b.displayUrl));C.K.updateValue("imageUrl",Y1V(b.image));b.navigationEndpoint&&g.g$(C.V,b.navigationEndpoint);C.Yh=b.imageNavigationEndpoint||null;C.K.show();C.Df.start();C.logVisibility(C.K.element,!0); +C.S(C.K.element,"mouseover",function(){C.N2++}); +return!0}; +rfc=function(C,b){if(C.api.isMinimized())return!1;var h=aQS(b.image),N=h;h.width0?(b=new U8(C.api,C.j),b.Gi(C.playerOverlay), +g.D(C,b)):g.Ri(Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(b)))}}else g.Ri(Error("addCommonComponents() needs to be called before starting countdown."))}; +vPH=function(C){function b(h){return{toString:function(){return h()}}} +C.macros.SURVEY_LOCAL_TIME_EPOCH_S=b(function(){var h=new Date;return(Math.round(h.valueOf()/1E3)+-1*h.getTimezoneOffset()*60).toString()}); +C.macros.SURVEY_ELAPSED_MS=b(function(){return(Date.now()-C.N).toString()})}; +Dhc=function(C,b,h,N,p){AG.call(this,C,b,h,N,"survey-question-multi-select");this.N2=p;this.noneOfTheAbove=null;this.submitEndpoints=[];this.W=null;this.hide()}; +dh1=function(C,b,h){C.noneOfTheAbove=new UhH(C.api,C.layoutId,C.interactionLoggingClientData,C.Sp);C.noneOfTheAbove.Gi(C.answers);C.noneOfTheAbove.init(Pr("survey-none-of-the-above"),b,h)}; +EPl=function(C){C.K.forEach(function(b){b.j.toggleButton(!1)}); +WLo(C,!0)}; +WLo=function(C,b){var h=C.X;C=nPV(C);b=b===void 0?!1:b;h.j&&(C?h.j.hide():h.j.show(),b&&h.j instanceof Gv&&!h.j.X&&gwV(h.j,!1));h.K&&(C?h.K.show():h.K.hide())}; +nPV=function(C){return C.K.some(function(b){return b.j.isToggled()})||C.noneOfTheAbove.button.isToggled()}; +yI=function(C,b,h,N,p){AG.call(this,C,b,h,N,"survey-question-single-select",function(c){P.api.Y().D("supports_multi_step_on_desktop")&&p([c])}); +var P=this;this.hide()}; +ry=function(C,b,h,N){aS.call(this,C,{B:"div",C:"ytp-ad-survey",U:[{B:"div",C:"ytp-ad-survey-questions"}]},"survey",b,h,N);this.questions=[];this.K=[];this.conditioningRules=[];this.j=0;this.W=this.dO("ytp-ad-survey-questions");this.api.Y().D("fix_survey_color_contrast_on_destop")&&this.dO("ytp-ad-survey").classList.add("color-contrast-fix");this.api.Y().D("web_enable_speedmaster")&&this.dO("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; +BuH=function(C,b){var h=C.K[b],N;(N=C.N)==null||N.dispose();g.d(h,qx)?tGW(C,g.d(h,qx),C.macros):g.d(h,Mx)&&Tux(C,g.d(h,Mx),C.macros);C.j=b}; +tGW=function(C,b,h){var N=new yI(C.api,C.layoutId,C.interactionLoggingClientData,C.Sp,C.X.bind(C));N.Gi(C.W);N.init(Pr("survey-question-single-select"),b,h);C.api.Y().D("supports_multi_step_on_desktop")?C.N=N:C.questions.push(N);g.D(C,N)}; +Tux=function(C,b,h){var N=new Dhc(C.api,C.layoutId,C.interactionLoggingClientData,C.Sp,C.X.bind(C));N.Gi(C.W);N.init(Pr("survey-question-multi-select"),b,h);C.api.Y().D("supports_multi_step_on_desktop")?C.N=N:C.questions.push(N);g.D(C,N)}; +iQ=function(C,b,h,N){aS.call(this,C,{B:"div",C:"ytp-ad-survey-interstitial",U:[{B:"div",C:"ytp-ad-survey-interstitial-contents",U:[{B:"div",C:"ytp-ad-survey-interstitial-logo",U:[{B:"div",C:"ytp-ad-survey-interstitial-logo-image"}]},{B:"div",C:"ytp-ad-survey-interstitial-text"}]}]},"survey-interstitial",b,h,N);this.j=this.actionButton=null;this.interstitial=this.dO("ytp-ad-survey-interstitial");this.K=this.dO("ytp-ad-survey-interstitial-contents");this.text=this.dO("ytp-ad-survey-interstitial-text"); +this.logoImage=this.dO("ytp-ad-survey-interstitial-logo-image");this.transition=new g.b1(this,500,!1,300);g.D(this,this.transition)}; +IWx=function(C,b){b=b&&Kt(b)||"";if(g.qp(b))g.QB(Error("Found ThumbnailDetails without valid image URL"));else{var h=C.style;C=C.style.cssText;var N=document.implementation.createHTMLDocument("").createElement("DIV");N.style.cssText=C;C=DT_(N.style);h.cssText=[C,'background-image:url("'+b+'");'].join("")}}; +xh6=function(C){var b=g.Ei("html5-video-player");b&&g.Zo(b,"ytp-ad-display-override",C)}; +JG=function(C,b,h,N,p,P){P=P===void 0?0:P;xY.call(this,C,{B:"div",C:"ytp-preview-ad",U:[{B:"div",C:"ytp-preview-ad__text"}]},"preview-ad",b,h,N,p);var c=this;this.N2=P;this.K=0;this.X=-1;this.N=this.dO("ytp-preview-ad__text");switch(this.N2){case 1:this.N.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.b1(this,400,!1,100,function(){c.hide()}); +g.D(this,this.transition);this.hide()}; +uQ=function(C,b,h,N){aS.call(this,C,{B:"img",C:"ytp-ad-avatar"},"ad-avatar",b,h,N);this.hide()}; +w06=function(C){switch(C.size){case "AD_AVATAR_SIZE_XXS":return 16;case "AD_AVATAR_SIZE_XS":return 24;case "AD_AVATAR_SIZE_S":return 32;case "AD_AVATAR_SIZE_M":return 36;case "AD_AVATAR_SIZE_L":return 56;case "AD_AVATAR_SIZE_XL":return 72;default:return 36}}; +Rs=function(C,b,h,N,p,P){p=p===void 0?!1:p;P=P===void 0?!1:P;aS.call(this,C,{B:"button",C:"ytp-ad-button-vm"},"ad-button",b,h,N);this.buttonText=this.buttonIcon=null;this.hide();this.j=p;this.K=P}; +C9c=function(C,b,h,N,p){xY.call(this,C,{B:"div",J4:["ytp-ad-avatar-lockup-card--inactive","ytp-ad-avatar-lockup-card"],U:[{B:"div",C:"ytp-ad-avatar-lockup-card__avatar_and_text_container",U:[{B:"div",C:"ytp-ad-avatar-lockup-card__text_container"}]}]},"ad-avatar-lockup-card",b,h,N,p);this.startMilliseconds=0;this.adAvatar=new uQ(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp);g.D(this,this.adAvatar);gQ(this.element,this.adAvatar.element,0);this.headline=new rG(this.api,this.layoutId, +this.interactionLoggingClientData,this.Sp);g.D(this,this.headline);this.headline.Gi(this.dO("ytp-ad-avatar-lockup-card__text_container"));this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline");this.description=new rG(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp);g.D(this,this.description);this.description.Gi(this.dO("ytp-ad-avatar-lockup-card__text_container"));this.description.element.classList.add("ytp-ad-avatar-lockup-card__description");this.adButton=new Rs(this.api, +this.layoutId,this.interactionLoggingClientData,this.Sp);g.D(this,this.adButton);this.adButton.Gi(this.element);this.hide()}; +QI=function(C,b,h,N){aS.call(this,C,{B:"button",C:"ytp-skip-ad-button",U:[{B:"div",C:"ytp-skip-ad-button__text"}]},"skip-button",b,h,N);var p=this;this.K=!1;this.X=this.dO("ytp-skip-ad-button__text");this.transition=new g.b1(this,500,!1,100,function(){p.hide()}); +g.D(this,this.transition);this.j=new j5(this.element,15E3,5E3,.5,.5,!0);g.D(this,this.j);this.hide()}; +bmK=function(C,b,h,N,p){xY.call(this,C,{B:"div",C:"ytp-skip-ad"},"skip-ad",b,h,N,p);this.skipOffsetMilliseconds=0;this.X=this.isSkippable=!1;var P;if((P=this.api.getVideoData())==null?0:P.isDaiEnabled())this.X=this.api.Y().D("clean_player_style_fix_on_web");if(this.X||!this.api.Y().experiments.Fo("disable_ad_preview_for_instream_ads"))this.K=new JG(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,this.j),g.D(this,this.K),this.K.Gi(this.element);this.N=new QI(this.api,this.layoutId, +this.interactionLoggingClientData,this.Sp);g.D(this,this.N);this.N.Gi(this.element);this.hide()}; +Uf=function(C,b,h,N){aS.call(this,C,{B:"div",C:"ytp-visit-advertiser-link"},"visit-advertiser-link",b,h,N);this.hide();this.api.D("enable_ad_pod_index_autohide")&&this.element.classList.add("ytp-visit-advertiser-link--clean-player");this.api.D("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-visit-advertiser-link--clean-player-with-light-shadow")}; +XS=function(C,b,h,N,p){aS.call(this,C,{B:"div",C:"ytp-ad-player-overlay-layout",U:[{B:"div",C:"ytp-ad-player-overlay-layout__player-card-container"},{B:"div",C:"ytp-ad-player-overlay-layout__ad-info-container"},{B:"div",C:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{B:"div",C:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",b,h,N);this.K=p;this.sX=this.dO("ytp-ad-player-overlay-layout__player-card-container");this.j=this.dO("ytp-ad-player-overlay-layout__ad-info-container"); +this.V=this.dO("ytp-ad-player-overlay-layout__skip-or-preview-container");this.N2=this.dO("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; +h$S=function(C,b,h,N){aS.call(this,C,{B:"div",C:"ytp-ad-grid-card-text",U:[{B:"div",C:"ytp-ad-grid-card-text__metadata",U:[{B:"div",C:"ytp-ad-grid-card-text__metadata__headline"},{B:"div",C:"ytp-ad-grid-card-text__metadata__description",U:[{B:"div",C:"ytp-ad-grid-card-text__metadata__description__line"},{B:"div",C:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{B:"div",C:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",b,h,N);this.headline=new rG(this.api,this.layoutId,this.interactionLoggingClientData, +this.Sp);g.D(this,this.headline);this.headline.Gi(this.dO("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new Rs(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,!0);g.D(this,this.moreInfoButton);this.moreInfoButton.Gi(this.dO("ytp-ad-grid-card-text__button"))}; +Kz=function(C,b,h,N){aS.call(this,C,{B:"div",C:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",b,h,N);this.j=[]}; +sf=function(C,b,h,N,p,P,c){xY.call(this,C,P,c,b,h,N,p);this.playerProgressOffsetMs=0;this.K=!1}; +NSU=function(C){var b=g.Ei("html5-video-player");b&&g.Zo(b,"ytp-ad-display-override",C)}; +gKW=function(C,b,h,N,p){sf.call(this,C,b,h,N,p,{B:"div",C:"ytp-display-underlay-text-grid-cards",U:[{B:"div",C:"ytp-display-underlay-text-grid-cards__content_container",U:[{B:"div",C:"ytp-display-underlay-text-grid-cards__content_container__header",U:[{B:"div",C:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{B:"div",C:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{B:"div",C:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, +{B:"div",C:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new Kz(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp);g.D(this,this.adGridCardCollection);this.adGridCardCollection.Gi(this.dO("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new Rs(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp);g.D(this,this.adButton);this.adButton.Gi(this.dO("ytp-display-underlay-text-grid-cards__content_container__ad_button")); +this.N=this.dO("ytp-display-underlay-text-grid-cards__content_container");this.X=this.dO("ytp-display-underlay-text-grid-cards__content_container__header")}; +Of=function(C,b,h,N){aS.call(this,C,{B:"div",C:"ytp-ad-details-line"},"ad-details-line",b,h,N);this.j=[];this.hide()}; +vy=function(C,b,h,N){aS.call(this,C,{B:"div",C:"ytp-image-background",U:[{B:"img",C:"ytp-image-background-image"}]},"image-background",b,h,N);this.hide()}; +p8l=function(C,b,h,N,p){xY.call(this,C,{B:"svg",C:"ytp-timed-pie-countdown",T:{viewBox:"0 0 20 20"},U:[{B:"circle",C:"ytp-timed-pie-countdown__background",T:{r:"10",cx:"10",cy:"10"}},{B:"circle",C:"ytp-timed-pie-countdown__inner",T:{r:"5",cx:"10",cy:"10"}},{B:"circle",C:"ytp-timed-pie-countdown__outer",T:{r:"10",cx:"10",cy:"10"}}]},"timed-pie-countdown",b,h,N,p);this.N=this.dO("ytp-timed-pie-countdown__inner");this.K=Math.ceil(2*Math.PI*5);this.hide()}; +D4=function(C,b,h,N){aS.call(this,C,{B:"div",C:"ytp-video-interstitial-buttoned-centered-layout",T:{tabindex:"0"},U:[{B:"div",C:"ytp-video-interstitial-buttoned-centered-layout__content",U:[{B:"div",C:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{B:"div",C:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",U:[{B:"div",C:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{B:"div",C:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, +{B:"div",C:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{B:"div",C:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{B:"div",C:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",b,h,N);this.K=null;this.X=this.dO("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.N=new AJ;g.D(this,this.N);this.hide()}; +P9V=function(C){var b=g.Ei("html5-video-player");b&&g.Zo(b,"ytp-ad-display-override",C)}; +j5W=function(C){if(!C.adAvatar||!g.d(C.adAvatar,dy))return g.Ri(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no avatar.")),!1;if(!C.headline)return g.Ri(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no headline.")),!1;if(!C.adBadge||!g.d(C.adBadge,Wy))return g.Ri(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad badge.")),!1;if(!C.adButton||!g.d(C.adButton,Ef))return g.Ri(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no action button.")),!1;if(!C.adInfoRenderer|| +!g.d(C.adInfoRenderer,fG))return g.Ri(Error("VideoInterstitialButtonedCenteredLayoutRenderer has no ad info button.")),!1;C=C.durationMilliseconds||0;return typeof C!=="number"||C<=0?(g.Ri(Error("durationMilliseconds was specified incorrectly in VideoInterstitialButtonedCenteredLayoutRenderer with a value of: "+C)),!1):!0}; +nz=function(C,b,h){dK.call(this,C);this.api=C;this.Sp=b;this.K={};C=new g.n({B:"div",J4:["video-ads","ytp-ad-module"]});g.D(this,C);Ey&&g.c4(C.element,"ytp-ads-tiny-mode");this.G=new zB(C.element);g.D(this,this.G);g.qC(this.api,C.element,4);nG(h)&&(h=new g.n({B:"div",J4:["ytp-ad-underlay"]}),g.D(this,h),this.N=new zB(h.element),g.D(this,this.N),g.qC(this.api,h.element,0));g.D(this,uyW())}; +ct1=function(C,b){C=g.rk(C.K,b.id,null);C==null&&g.QB(Error("Component not found for element id: "+b.id));return C||null}; +kUl=function(C){g.qK.call(this,C);var b=this;this.K=null;this.created=!1;this.N=C.Y().D("h5_use_refactored_get_ad_break")?new N3l(this.player):new Wq(this.player);this.X=function(){if(b.K!=null)return b.K;var N=new e76({j2:Hy(b.j).j2,Zv:Hy(b.j).Zv,Z:b.player,cT:Hy(b.j).cT,M2:b.j.j.M2,gH:Hy(b.j).gH,UU:b.j.j.UU});b.K=N.yG;return b.K}; +this.j=new oPH(this.player,this,this.N,this.X);g.D(this,this.j);var h=C.Y();!qo(h)||g.fO(h)||u2(h)||(g.D(this,new nz(C,Hy(this.j).Sp,Hy(this.j).cT)),g.D(this,new FLV(C)))}; +e$c=function(C){C.created!==C.loaded&&ZK("Created and loaded are out of sync")}; +Y7W=function(C){g.qK.prototype.load.call(C);var b=Hy(C.j).cT;try{C.player.getRootNode().classList.add("ad-created")}catch(L){ZK(L instanceof Error?L:String(L))}var h=C.player.getVideoData(1),N=h&&h.videoId||"",p=h&&h.getPlayerResponse()||{},P=(!C.player.Y().experiments.Fo("debug_ignore_ad_placements")&&p&&p.adPlacements||[]).map(function(L){return L.adPlacementRenderer}),c=((p==null?void 0:p.adSlots)||[]).map(function(L){return g.d(L,Ja)}); +p=p.playerConfig&&p.playerConfig.daiConfig&&p.playerConfig.daiConfig.enableDai||!1;h&&h.yV();P=L5S(P,c,b,Hy(C.j).PC);c=h&&h.clientPlaybackNonce||"";h=h&&h.Lk||!1;if(zy(b,!0)&&h){var e;b={};(e=C.player.getVideoData())==null||e.jp("p_cpb",(b.cc=c,b))}e=1E3*C.player.getDuration(1);ZmK(C);C.j.j.gK.UB(c,e,h,P.P_,P.fh,P.P_,p,N)}; +ZmK=function(C){var b,h;if(h=(b=C.player.getVideoData(1))==null||!b.Lk)b=C.player.Y(),h=qo(b)&&!g.Mo(b)&&b.playerStyle==="desktop-polymer";h&&(C=C.player.getInternalApi(),C.addEventListener("updateKevlarOrC3Companion",eTK),C.addEventListener("updateEngagementPanelAction",Lbl),C.addEventListener("changeEngagementPanelVisibility",ZQW),window.addEventListener("yt-navigate-start",aYc))}; +tG=function(C,b){b===C.X3&&(C.X3=void 0)}; +a2_=function(C){var b=Hy(C.j).GM,h=b.X().Tz("SLOT_TYPE_PLAYER_BYTES",1);b=Y4(b.fO.get(),1).clientPlaybackNonce;var N=!1;h=g.z(h);for(var p=h.next();!p.done;p=h.next()){p=p.value;var P=p.slotType==="SLOT_TYPE_PLAYER_BYTES"&&p.slotEntryTrigger instanceof z9?p.slotEntryTrigger.Kw:void 0;P&&P===b&&(N&&ZK("More than 1 preroll playerBytes slot detected",p),N=!0)}N||cy(Hy(C.j).lZ)}; +l2H=function(C){if(xF(Hy(C.j).cT))return!0;var b="";C=g.z(Hy(C.j).gH.Gn.keys());for(var h=C.next();!h.done;h=C.next()){h=h.value;if(h.slotType==="SLOT_TYPE_PLAYER_BYTES"&&h.u$==="core")return!0;b+=h.slotType+" "}Math.random()<.01&&ZK("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:b});return!1}; +oKW=function(C){C=g.z(Hy(C.j).gH.Gn.values());for(var b=C.next();!b.done;b=C.next())if(b.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; +Mcl=function(C,b,h,N,p,P){h=h===void 0?[]:h;N=N===void 0?"":N;p=p===void 0?"":p;var c=Hy(C.j).cT,e=C.player.getVideoData(1);e&&e.getPlayerResponse();e&&e.yV();h=L5S(b,h,c,Hy(C.j).PC);AU_(Hy(C.j).Di,N,h.P_,h.fh,b,p,P)}; +L5S=function(C,b,h,N){b={P_:[],fh:b};C=g.z(C);for(var p=C.next();!p.done;p=C.next())if((p=p.value)&&p.renderer!=null){var P=p.renderer;if(!h.Z.Y().D("html5_enable_vod_lasr_with_notify_pacf")){var c=void 0,e=void 0,L=void 0,Z=void 0,Y=N;g.d((Z=P.sandwichedLinearAdRenderer)==null?void 0:Z.adVideoStart,kD)?(c=g.d((L=P.sandwichedLinearAdRenderer)==null?void 0:L.adVideoStart,kD),c=DlV(c,Y),g.Or(P.sandwichedLinearAdRenderer.adVideoStart,kD,c)):g.d((e=P.linearAdSequenceRenderer)==null?void 0:e.adStart,kD)&& +(L=g.d((c=P.linearAdSequenceRenderer)==null?void 0:c.adStart,kD),c=DlV(L,Y),g.Or(P.linearAdSequenceRenderer.adStart,kD,c))}b.P_.push(p)}return b}; +g.Tr=function(C){if(typeof DOMParser!="undefined")return TC(new DOMParser,QOc(C),"application/xml");throw Error("Your browser does not support loading xml documents");}; +g.By=function(C){g.O.call(this);this.callback=C;this.j=new VE(0,0,.4,0,.2,1,1,1);this.delay=new g.wl(this.next,window,this);g.D(this,this.delay)}; +g.F5l=function(C){var b=C.Y();return b.OU&&!b.N&&g.$7(b)?C.isEmbedsShortsMode()?(C=C.f2(),Math.min(C.width,C.height)>=315):!C.R2():!1}; +g.Is=function(C){g.n.call(this,{B:"div",C:"ytp-more-videos-view",T:{tabIndex:"-1"}});var b=this;this.api=C;this.K=!0;this.N=new g.ui(this);this.j=[];this.suggestionData=[];this.columns=this.containerWidth=this.L=this.X=this.scrollPosition=0;this.title=new g.n({B:"h2",C:"ytp-related-title",BE:"{{title}}"});this.previous=new g.n({B:"button",J4:["ytp-button","ytp-previous"],T:{"aria-label":"Show previous suggested videos"},U:[g.Sv()]});this.J=new g.By(function(h){b.suggestions.element.scrollLeft=-h}); +this.next=new g.n({B:"button",J4:["ytp-button","ytp-next"],T:{"aria-label":"Show more suggested videos"},U:[g.$Y()]});g.D(this,this.N);this.W=C.Y().X;g.D(this,this.title);this.title.Gi(this.element);this.suggestions=new g.n({B:"div",C:"ytp-suggestions"});g.D(this,this.suggestions);this.suggestions.Gi(this.element);g.D(this,this.previous);this.previous.Gi(this.element);this.previous.listen("click",this.Dw,this);g.D(this,this.J);GUx(this);g.D(this,this.next);this.next.Gi(this.element);this.next.listen("click", +this.aC,this);this.N.S(this.api,"appresize",this.eC);this.N.S(this.api,"fullscreentoggled",this.Fn);this.N.S(this.api,"videodatachange",this.onVideoDataChange);this.eC(this.api.Ti().getPlayerSize());this.onVideoDataChange()}; +GUx=function(C){for(var b={He:0};b.He<16;b={He:b.He},++b.He){var h=new g.n({B:"a",C:"ytp-suggestion-link",T:{href:"{{link}}",target:C.api.Y().V,"aria-label":"{{aria_label}}"},U:[{B:"div",C:"ytp-suggestion-image"},{B:"div",C:"ytp-suggestion-overlay",T:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},U:[{B:"div",C:"ytp-suggestion-title",BE:"{{title}}"},{B:"div",C:"ytp-suggestion-author",BE:"{{author_and_views}}"},{B:"div",T:{"data-is-live":"{{is_live}}"},C:"ytp-suggestion-duration", +BE:"{{duration}}"}]}]});g.D(C,h);var N=h.dO("ytp-suggestion-link");g.Zv(N,"transitionDelay",b.He/20+"s");C.N.S(N,"click",function(p){return function(P){var c=p.He;if(C.K){var e=C.suggestionData[c],L=e.sessionData;C.W&&C.api.D("web_player_log_click_before_generating_ve_conversion_params")?(C.api.logClick(C.j[c].element),c=e.CI(),e={},g.HK(C.api,e),c=g.dt(c,e),g.IC(c,C.api,P)):g.BK(P,C.api,C.W,L||void 0)&&C.api.fk(e.videoId,L,e.playlistId)}else P.preventDefault(),document.activeElement.blur()}}(b)); +h.Gi(C.suggestions.element);C.j.push(h);C.api.createServerVe(h.element,h)}}; +S7H=function(C){if(C.api.Y().D("web_player_log_click_before_generating_ve_conversion_params"))for(var b=Math.floor(-C.scrollPosition/(C.X+8)),h=Math.min(b+C.columns,C.suggestionData.length)-1;b<=h;b++)C.api.logVisibility(C.j[b].element,!0)}; +g.x$=function(C){var b=C.api.zO()?32:16;b=C.L/2+b;C.next.element.style.bottom=b+"px";C.previous.element.style.bottom=b+"px";b=C.scrollPosition;var h=C.containerWidth-C.suggestionData.length*(C.X+8);g.Zo(C.element,"ytp-scroll-min",b>=0);g.Zo(C.element,"ytp-scroll-max",b<=h)}; +z$S=function(C){for(var b=C.suggestionData.length,h=0;h>>0)+"_",p=0;return b}); +Y_("Symbol.iterator",function(C){if(C)return C;C=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),h=0;h=P}}); +Y_("String.prototype.endsWith",function(C){return C?C:function(b,h){var N=Jl(this,b,"endsWith");b+="";h===void 0&&(h=N.length);h=Math.max(0,Math.min(h|0,N.length));for(var p=b.length;p>0&&h>0;)if(N[--h]!=b[--p])return!1;return p<=0}}); +Y_("Array.prototype.entries",function(C){return C?C:function(){return uc(this,function(b,h){return[b,h]})}}); +Y_("Math.imul",function(C){return C?C:function(b,h){b=Number(b);h=Number(h);var N=b&65535,p=h&65535;return N*p+((b>>>16&65535)*p+N*(h>>>16&65535)<<16>>>0)|0}}); +Y_("Math.trunc",function(C){return C?C:function(b){b=Number(b);if(isNaN(b)||b===Infinity||b===-Infinity||b===0)return b;var h=Math.floor(Math.abs(b));return b<0?-h:h}}); +Y_("Math.clz32",function(C){return C?C:function(b){b=Number(b)>>>0;if(b===0)return 32;var h=0;(b&4294901760)===0&&(b<<=16,h+=16);(b&4278190080)===0&&(b<<=8,h+=8);(b&4026531840)===0&&(b<<=4,h+=4);(b&3221225472)===0&&(b<<=2,h+=2);(b&2147483648)===0&&h++;return h}}); +Y_("Math.log10",function(C){return C?C:function(b){return Math.log(b)/Math.LN10}}); +Y_("Number.isNaN",function(C){return C?C:function(b){return typeof b==="number"&&isNaN(b)}}); +Y_("Array.prototype.keys",function(C){return C?C:function(){return uc(this,function(b){return b})}}); +Y_("Array.prototype.values",function(C){return C?C:function(){return uc(this,function(b,h){return h})}}); +Y_("Array.prototype.fill",function(C){return C?C:function(b,h,N){var p=this.length||0;h<0&&(h=Math.max(0,p+h));if(N==null||N>p)N=p;N=Number(N);N<0&&(N=Math.max(0,p+N));for(h=Number(h||0);h1342177279)throw new RangeError("Invalid count value");b|=0;for(var N="";b;)if(b&1&&(N+=h),b>>>=1)h+=h;return N}}); +Y_("Promise.prototype.finally",function(C){return C?C:function(b){return this.then(function(h){return Promise.resolve(b()).then(function(){return h})},function(h){return Promise.resolve(b()).then(function(){throw h; +})})}}); +Y_("String.prototype.padStart",function(C){return C?C:function(b,h){var N=Jl(this,null,"padStart");b-=N.length;h=h!==void 0?String(h):" ";return(b>0&&h?h.repeat(Math.ceil(b/h.length)).substring(0,b):"")+N}}); +Y_("Array.prototype.findIndex",function(C){return C?C:function(b,h){return lxH(this,b,h).aG}}); +Y_("Math.sign",function(C){return C?C:function(b){b=Number(b);return b===0||isNaN(b)?b:b>0?1:-1}}); +Y_("WeakSet",function(C){function b(h){this.j=new WeakMap;if(h){h=g.z(h);for(var N;!(N=h.next()).done;)this.add(N.value)}} +if(function(){if(!C||!Object.seal)return!1;try{var h=Object.seal({}),N=Object.seal({}),p=new C([h]);if(!p.has(h)||p.has(N))return!1;p.delete(h);p.add(N);return!p.has(h)&&p.has(N)}catch(P){return!1}}())return C; +b.prototype.add=function(h){this.j.set(h,!0);return this}; +b.prototype.has=function(h){return this.j.has(h)}; +b.prototype.delete=function(h){return this.j.delete(h)}; +return b}); +Y_("Array.prototype.copyWithin",function(C){function b(h){h=Number(h);return h===Infinity||h===-Infinity?h:h|0} +return C?C:function(h,N,p){var P=this.length;h=b(h);N=b(N);p=p===void 0?P:b(p);h=h<0?Math.max(P+h,0):Math.min(h,P);N=N<0?Math.max(P+N,0):Math.min(N,P);p=p<0?Math.max(P+p,0):Math.min(p,P);if(hN;)--p in this?this[--h]=this[p]:delete this[--h];return this}}); +Y_("Int8Array.prototype.copyWithin",QH);Y_("Uint8Array.prototype.copyWithin",QH);Y_("Uint8ClampedArray.prototype.copyWithin",QH);Y_("Int16Array.prototype.copyWithin",QH);Y_("Uint16Array.prototype.copyWithin",QH);Y_("Int32Array.prototype.copyWithin",QH);Y_("Uint32Array.prototype.copyWithin",QH);Y_("Float32Array.prototype.copyWithin",QH);Y_("Float64Array.prototype.copyWithin",QH);Y_("Array.prototype.at",function(C){return C?C:Ul}); +Y_("Int8Array.prototype.at",XK);Y_("Uint8Array.prototype.at",XK);Y_("Uint8ClampedArray.prototype.at",XK);Y_("Int16Array.prototype.at",XK);Y_("Uint16Array.prototype.at",XK);Y_("Int32Array.prototype.at",XK);Y_("Uint32Array.prototype.at",XK);Y_("Float32Array.prototype.at",XK);Y_("Float64Array.prototype.at",XK);Y_("String.prototype.at",function(C){return C?C:Ul}); +Y_("Array.prototype.findLastIndex",function(C){return C?C:function(b,h){return o_K(this,b,h).aG}}); +Y_("Int8Array.prototype.findLastIndex",KW);Y_("Uint8Array.prototype.findLastIndex",KW);Y_("Uint8ClampedArray.prototype.findLastIndex",KW);Y_("Int16Array.prototype.findLastIndex",KW);Y_("Uint16Array.prototype.findLastIndex",KW);Y_("Int32Array.prototype.findLastIndex",KW);Y_("Uint32Array.prototype.findLastIndex",KW);Y_("Float32Array.prototype.findLastIndex",KW);Y_("Float64Array.prototype.findLastIndex",KW);Y_("Number.parseInt",function(C){return C||parseInt});var Bt,B1,FS_;Bt=Bt||{};g.sl=this||self;B1="closure_uid_"+(Math.random()*1E9>>>0);FS_=0;g.S(P$,Error);g.O.prototype.Np=!1;g.O.prototype.HE=function(){return this.Np}; +g.O.prototype.dispose=function(){this.Np||(this.Np=!0,this.wO())}; +g.O.prototype[Symbol.dispose]=function(){this.dispose()}; +g.O.prototype.addOnDisposeCallback=function(C,b){this.Np?b!==void 0?C.call(b):C():(this.LS||(this.LS=[]),b&&(C=C.bind(b)),this.LS.push(C))}; +g.O.prototype.wO=function(){if(this.LS)for(;this.LS.length;)this.LS.shift()()};var VVK;g.S(YI,g.O);YI.prototype.share=function(){if(this.HE())throw Error("E:AD");this.X++;return this}; +YI.prototype.dispose=function(){--this.X||g.O.prototype.dispose.call(this)}; +VVK=Symbol.dispose;MVK.prototype.VH=function(C,b){this.j.VH("/client_streamz/bg/frs",C,b)}; +qlK.prototype.VH=function(C,b,h,N,p,P){this.j.VH("/client_streamz/bg/wrl",C,b,h,N,p,P)}; +mWH.prototype.j=function(C,b){this.K.Ne("/client_streamz/bg/ec",C,b)}; +fxK.prototype.VH=function(C,b,h,N){this.j.VH("/client_streamz/bg/el",C,b,h,N)}; +Al1.prototype.j=function(C,b,h){this.K.Ne("/client_streamz/bg/cec",C,b,h)}; +yll.prototype.j=function(C,b,h){this.K.Ne("/client_streamz/bg/po/csc",C,b,h)}; +rl_.prototype.j=function(C,b,h){this.K.Ne("/client_streamz/bg/po/ctav",C,b,h)}; +iWS.prototype.j=function(C,b,h){this.K.Ne("/client_streamz/bg/po/cwsc",C,b,h)};g.ho(SD,Error);SD.prototype.name="CustomError";var NwH;var Qz=void 0,Ry,uEl=typeof TextDecoder!=="undefined",UWK,Qll=typeof String.prototype.isWellFormed==="function",RUl=typeof TextEncoder!=="undefined";var Ao=String.prototype.trim?function(C){return C.trim()}:function(C){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(C)[1]},rx_=/&/g,iLc=//g,ujc=/"/g,Rrl=/'/g,Q6S=/\x00/g,yxK=/[\x00&<>"']/;var AtU=W1(1,!0),Jo=W1(610401301,!1);W1(899588437,!1);var ytK=W1(725719775,!1);W1(651175828,!1);W1(722764542,!1);W1(2147483644,!1);W1(2147483645,!1);W1(2147483646,AtU);W1(2147483647,!0);var uC=!!g.Dx("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var Rd,rtV=g.sl.navigator;Rd=rtV?rtV.userAgentData||null:null;var Ix_,f9,i3;Ix_=Array.prototype.indexOf?function(C,b){return Array.prototype.indexOf.call(C,b,void 0)}:function(C,b){if(typeof C==="string")return typeof b!=="string"||b.length!=1?-1:C.indexOf(b,0); +for(var h=0;h=0;h--)if(h in C&&C[h]===b)return h;return-1}; +g.oI=Array.prototype.forEach?function(C,b,h){Array.prototype.forEach.call(C,b,h)}:function(C,b,h){for(var N=C.length,p=typeof C==="string"?C.split(""):C,P=0;PparseFloat(UtU)){Q5o=String(wy);break a}}Q5o=UtU}var kec=Q5o,jdc={};var If,xG;g.i8=sE();If=W$()||UE("iPod");xG=UE("iPad");g.SR=dWU();g.yX=OE();g.$1=DU()&&!EE();var LhW={},VR=null,Zdo=YX||g.BE||typeof g.sl.btoa=="function";var zE6=typeof Uint8Array!=="undefined",lUo=!g.o2&&typeof btoa==="function",SEl=/[-_.]/g,FhW={"-":"+",_:"/",".":"="},m$={};qI.prototype.isEmpty=function(){return this.j==null}; +qI.prototype.sizeBytes=function(){var C=Aj(this);return C?C.length:0}; +var VDU;var qEc=void 0;var Jj=typeof Symbol==="function"&&typeof Symbol()==="symbol",fU6=new Set,s5V=i7("jas",void 0,!0,!0),SzU=i7(void 0,"2ex"),gw=i7(void 0,"1oa",!0),W5=i7(void 0,Symbol(),!0),F$c=i7(void 0,"0actk");Math.max.apply(Math,g.M(Object.values({CN$:1,luf:2,pTo:4,yjz:8,QI6:16,GV2:32,iff:64,Asp:128,UUi:256,kQX:512,tXp:1024,ht4:2048,F72:4096,p$p:8192,z3O:16384})));var u7=Jj?s5V:"bOf",yoW={bOf:{value:0,configurable:!0,writable:!0,enumerable:!1}},AoW=Object.defineProperties;var mP={},tx,Om_=[];QR(Om_,55);tx=Object.freeze(Om_);var VoS=Object.freeze({});var u0W=ns(function(C){return typeof C==="number"}),Jox=ns(function(C){return typeof C==="string"}),REl=ns(function(C){return typeof C==="boolean"}),bw=ns(function(C){return C!=null&&typeof C==="object"&&typeof C.then==="function"}),Cx=ns(function(C){return!!C&&(typeof C==="object"||typeof C==="function")});var TQ=typeof g.sl.BigInt==="function"&&typeof g.sl.BigInt(0)==="bigint";var Hv=ns(function(C){return TQ?C>=vK6&&C<=Dtl:C[0]==="-"?QdS(C,dtx):QdS(C,W5x)}),dtx=Number.MIN_SAFE_INTEGER.toString(),vK6=TQ?BigInt(Number.MIN_SAFE_INTEGER):void 0,W5x=Number.MAX_SAFE_INTEGER.toString(),Dtl=TQ?BigInt(Number.MAX_SAFE_INTEGER):void 0;var yjH=typeof Uint8Array.prototype.slice==="function",II=0,xs=0,NNl;var o6=typeof BigInt==="function"?BigInt.asIntN:void 0,BDH=typeof BigInt==="function"?BigInt.asUintN:void 0,SH=Number.isSafeInteger,kQ=Number.isFinite,Gx=Math.trunc,Odx=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var yr;var iK,auV;g.k=fu_.prototype;g.k.init=function(C,b,h,N){N=N===void 0?{}:N;this.dM=N.dM===void 0?!1:N.dM;C&&(C=z5(C),this.K=C.buffer,this.G=C.Ad,this.X=b||0,this.N=h!==void 0?this.X+h:this.K.length,this.j=this.X)}; +g.k.free=function(){this.clear();rw.length<100&&rw.push(this)}; +g.k.clear=function(){this.K=null;this.G=!1;this.j=this.N=this.X=0;this.dM=!1}; +g.k.reset=function(){this.j=this.X}; +g.k.W7=function(){var C=this.W;C||(C=this.K,C=this.W=new DataView(C.buffer,C.byteOffset,C.byteLength));return C}; +var rw=[];iB.prototype.free=function(){this.j.clear();this.K=this.X=-1;CK.length<100&&CK.push(this)}; +iB.prototype.reset=function(){this.j.reset();this.N=this.j.j;this.K=this.X=-1}; +var CK=[];g.k=X4.prototype;g.k.toJSON=function(){return rN(this)}; +g.k.Oq=function(C){return JSON.stringify(rN(this,C))}; +g.k.clone=function(){var C=this.Xq;return new this.constructor(Qr(C,C[u7]|0,!1))}; +g.k.Ad=function(){return!!((this.Xq[u7]|0)&2)}; +g.k.OM=mP;g.k.toString=function(){return this.Xq.toString()};var UI1,K$H;OQ.prototype.length=function(){return this.j.length}; +OQ.prototype.end=function(){var C=this.j;this.j=[];return C};var T5=t1(),EKl=t1(),nKW=t1(),t2K=t1(),TSl=t1(),BSx=t1(),I21=t1(),xtU=t1();var to1=Iy(function(C,b,h,N,p){if(C.K!==2)return!1;uB(C,pv(b,N,h),p);return!0},ns6),T$6=Iy(function(C,b,h,N,p){if(C.K!==2)return!1; +uB(C,pv(b,N,h,!0),p);return!0},ns6),Ph=Symbol(),hQ=Symbol(),Iul=Symbol(),CKV=Symbol(),xA,ww;var w8l=kT(function(C,b,h){if(C.K!==1)return!1;Lo(b,h,A1(C.j));return!0},Zq,I21),Cc0=kT(function(C,b,h){if(C.K!==1)return!1; +C=A1(C.j);Lo(b,h,C===0?void 0:C);return!0},Zq,I21),bW$=kT(function(C,b,h,N){if(C.K!==1)return!1; +h1(b,h,N,A1(C.j));return!0},Zq,I21),hUp=kT(function(C,b,h){if(C.K!==0)return!1; +Lo(b,h,M0(C.j));return!0},ae,TSl),Nod=kT(function(C,b,h){if(C.K!==0)return!1; +C=M0(C.j);Lo(b,h,C===0?void 0:C);return!0},ae,TSl),g_0=kT(function(C,b,h,N){if(C.K!==0)return!1; +h1(b,h,N,M0(C.j));return!0},ae,TSl),p1p=kT(function(C,b,h){if(C.K!==0)return!1; +Lo(b,h,q0(C.j));return!0},lq,t2K),PcD=kT(function(C,b,h){if(C.K!==0)return!1; +C=q0(C.j);Lo(b,h,C===0?void 0:C);return!0},lq,t2K),jld=kT(function(C,b,h,N){if(C.K!==0)return!1; +h1(b,h,N,q0(C.j));return!0},lq,t2K),clj=kT(function(C,b,h){if(C.K!==1)return!1; +Lo(b,h,fv(C.j));return!0},function(C,b,h){W$H(C,h,IUl(b))},BSx),k6E=e9(function(C,b,h){if(C.K!==1&&C.K!==2)return!1; +b=I6(b,b[u7]|0,h,!1,!1);if(C.K==2)for(h=q0(C.j)>>>0,h=C.j.j+h;C.j.j>>0);return!0},function(C,b,h){b=YQ(b); +b!=null&&b!=null&&(EQ(C,h,0),DB(C.j,b))},t1()),o_0=kT(function(C,b,h){if(C.K!==0)return!1; +Lo(b,h,q0(C.j));return!0},function(C,b,h){b=ZD(b); +b!=null&&(b=parseInt(b,10),EQ(C,h,0),Osl(C.j,b))},t1());g.S(cxU,X4);g.S(Fn,X4);var Hh=[1,2,3];var FSI=[0,Hh,YlE,jld,LSU];var G6I=[0,hr,[0,w8l,hUp]];g.S(GC,X4);var zC=[1,2,3];var SlE=[0,zC,g_0,bW$,gn,G6I];g.S(S9,X4);var $WU=[0,hr,FSI,SlE];var zU0=[0,[1,2,3],gn,[0,bz,-1,eUD],gn,[0,bz,-1,p1p,eUD],gn,[0,bz]];g.S($T,X4);$T.prototype.ir=function(){var C=nL(this,3,MA,3,void 0,!0);d$(C);return C[void 0]};$T.prototype.j=j6c([0,bz,zU0,ZWh,hr,$WU,clj,k6E]);g.S(erx,X4);var SWK=globalThis.trustedTypes,Vc;qN.prototype.toString=function(){return this.j+""};AQ.prototype.toString=function(){return this.j}; +var HLl=new AQ("about:invalid#zClosurez");var WsS=iq("tel"),DfS=iq("sms"),zrK=[iq("data"),iq("http"),iq("https"),iq("mailto"),iq("ftp"),new r2(function(C){return/^[^:]*([/?#]|$)/.test(C)})],VHc=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;Qc.prototype.toString=function(){return this.j+""};ON.prototype.toString=function(){return this.j+""};Wh.prototype.toString=function(){return this.j};var no={};g.HWd=String.prototype.repeat?function(C,b){return C.repeat(b)}:function(C,b){return Array(b+1).join(C)};g.k=h8.prototype;g.k.isEnabled=function(){if(!g.sl.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{qX:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; +g.k.set=function(C,b,h){var N=!1;if(typeof h==="object"){var p=h.cyE;N=h.secure||!1;var P=h.domain||void 0;var c=h.path||void 0;var e=h.qX}if(/[;=\s]/.test(C))throw Error('Invalid cookie name "'+C+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');e===void 0&&(e=-1);h=P?";domain="+P:"";c=c?";path="+c:"";N=N?";secure":"";e=e<0?"":e==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+e*1E3)).toUTCString();this.j.cookie=C+"="+b+h+c+e+N+(p!=null?";samesite="+ +p:"")}; +g.k.get=function(C,b){for(var h=C+"=",N=(this.j.cookie||"").split(";"),p=0,P;p=0;b--)this.remove(C[b])}; +var US=new h8(typeof document=="undefined"?null:document);gk.prototype.compress=function(C){var b,h,N,p;return g.R(function(P){switch(P.j){case 1:return b=new CompressionStream("gzip"),h=(new Response(b.readable)).arrayBuffer(),N=b.writable.getWriter(),g.J(P,N.write((new TextEncoder).encode(C)),2);case 2:return g.J(P,N.close(),3);case 3:return p=Uint8Array,g.J(P,h,4);case 4:return P.return(new p(P.K))}})}; +gk.prototype.isSupported=function(C){return C<1024?!1:typeof CompressionStream!=="undefined"};g.S(pR,X4);PE.prototype.setInterval=function(C){this.intervalMs=C;this.FZ&&this.enabled?(this.stop(),this.start()):this.FZ&&this.stop()}; +PE.prototype.start=function(){var C=this;this.enabled=!0;this.FZ||(this.FZ=setTimeout(function(){C.tick()},this.intervalMs),this.K=this.j())}; +PE.prototype.stop=function(){this.enabled=!1;this.FZ&&(clearTimeout(this.FZ),this.FZ=void 0)}; +PE.prototype.tick=function(){var C=this;if(this.enabled){var b=Math.max(this.j()-this.K,0);b0?h:void 0));h=OW(h,4,LL(p>0?p:void 0));h=OW(h,5,LL(P>0?P:void 0));p=h.Xq;P=p[u7]|0;h=P&2?h:new h.constructor(Qr(p,P,!0));cJ(c,eW,10,h)}c=this.j.clone();h=Date.now().toString();c=OW(c,4,zx(h));C=kA(c,Gz,3,C.slice());N&&(c=new je,N=OW(c,13,LL(N)), +c=new cE,N=cJ(c,je,2,N),c=new Fl,N=cJ(c,cE,1,N),N=SY(N,2,9),cJ(C,Fl,18,N));b&&oy(C,14,b);return C};var QyV=function(){if(!g.sl.addEventListener||!Object.defineProperty)return!1;var C=!1,b=Object.defineProperty({},"passive",{get:function(){C=!0}}); +try{var h=function(){}; +g.sl.addEventListener("test",h,b);g.sl.removeEventListener("test",h,b)}catch(N){}return C}();var Y51=G5K("AnimationEnd"),bu=G5K("TransitionEnd");g.VD.prototype.K=0;g.VD.prototype.reset=function(){this.j=this.N=this.X;this.K=0}; +g.VD.prototype.getValue=function(){return this.N};g.S(SQU,X4);var VV0=oe(SQU);g.S($06,X4);var P2=new function(){this.j=$06;this.isRepeated=0;this.K=jY;this.defaultValue=void 0};g.S(mk,g.O);g.k=mk.prototype;g.k.wO=function(){this.jx();this.K.stop();this.sX.stop();g.O.prototype.wO.call(this)}; +g.k.dispatch=function(C){if(C instanceof Gz)this.log(C);else try{var b=new Gz,h=C.Oq();var N=F4(b,8,h);this.log(N)}catch(p){}}; +g.k.log=function(C){if(this.Qz){C=C.clone();var b=this.t4++;C=oy(C,21,b);this.componentId&&F4(C,26,this.componentId);b=C;if(MoU(b)==null){var h=Date.now();h=Number.isFinite(h)?h.toString():"0";OW(b,1,zx(h))}tDU(KL(b,15))!=null||oy(b,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(h=this.experimentIds.clone(),cJ(b,pR,16,h));b=this.j.length-1E3+1;b>0&&(this.j.splice(0,b),this.X+=b);this.j.push(C);this.rV||this.K.enabled||this.K.start()}}; +g.k.flush=function(C,b){var h=this;if(this.j.length===0)C&&C();else if(this.q2&&this.V)this.N.K=3,qQH(this);else{var N=Date.now();if(this.rO>N&&this.nO0&&(h.nO=Date.now(),h.rO=h.nO+V);l=P2.j?P2.K(l,P2.j,175237375,!0):P2.K(l,175237375,null,!0);if(l=l===null?void 0:l)l=kI(l,1,-1),l!==-1&&(h.G=new g.VD(l<1?1:l,3E5,.1),h.K.setInterval(h.G.getValue()))}}C&&C();h.W=0},Z=function(a,l){var F=jD(p,Gz, +3); +var G;var V=(G=tDU(KL(p,14)))!=null?G:void 0;g.M7(h.G);h.K.setInterval(h.G.getValue());a===401&&P&&(h.Df=P);V&&(h.X+=V);l===void 0&&(l=h.isRetryable(a));l&&(h.j=F.concat(h.j),h.rV||h.K.enabled||h.K.start());b&&b("net-send-failed",a);++h.W},Y=function(){h.network&&h.network.send(e,L,Z)}; +c?c.then(function(a){e.requestHeaders["Content-Encoding"]="gzip";e.requestHeaders["Content-Type"]="application/binary";e.body=a;e.Jl=2;Y()},function(){Y()}):Y()}}}}; +g.k.jx=function(){this.N.isFinal=!0;this.flush();this.N.isFinal=!1}; +g.k.isRetryable=function(C){return 500<=C&&C<600||C===401||C===0};fM.prototype.send=function(C,b,h){var N=this,p,P,c,e,L,Z,Y,a,l,F;return g.R(function(G){switch(G.j){case 1:return P=(p=N.Ij?new AbortController:void 0)?setTimeout(function(){p.abort()},C.timeoutMillis):void 0,g.z6(G,2,3),c=Object.assign({},{method:C.requestType, +headers:Object.assign({},C.requestHeaders)},C.body&&{body:C.body},C.withCredentials&&{credentials:"include"},{signal:C.timeoutMillis&&p?p.signal:null}),g.J(G,fetch(C.url,c),5);case 5:e=G.K;if(e.status!==200){(L=h)==null||L(e.status);G.WE(3);break}if((Z=b)==null){G.WE(7);break}return g.J(G,e.text(),8);case 8:Z(G.K);case 7:case 3:g.qW(G);clearTimeout(P);g.mS(G,0);break;case 2:Y=g.MW(G);switch((a=Y)==null?void 0:a.name){case "AbortError":(l=h)==null||l(408);break;default:(F=h)==null||F(400)}G.WE(3)}})}; +fM.prototype.kp=function(){return 4};g.S(AW,g.O);AW.prototype.b8=function(){this.G=!0;return this}; +AW.prototype.build=function(){this.network||(this.network=new fM);var C=new mk({logSource:this.logSource,Jd:this.Jd?this.Jd:DAx,sessionIndex:this.sessionIndex,OXh:this.EY,AK:this.X,rV:!1,b8:this.G,Tc:this.Tc,network:this.network});g.D(this,C);if(this.K){var b=this.K,h=HP(C.N);F4(h,7,b)}C.J=new gk;this.componentId&&(C.componentId=this.componentId);this.Ih&&(C.Ih=this.Ih);this.pageId&&(C.pageId=this.pageId);this.j&&((h=this.j)?(C.experimentIds||(C.experimentIds=new pR),b=C.experimentIds,h=h.Oq(),F4(b, +4,h)):C.experimentIds&&OW(C.experimentIds,4));this.N&&(C.q2=C.V);FRW(C.N);this.network.l4&&this.network.l4(this.logSource);this.network.TsO&&this.network.TsO(C);return C};g.S(yD,g.O);yD.prototype.flush=function(C){C=C||[];if(C.length){for(var b=new erx,h=[],N=0;N-1?(b=C[c],h||(b.p7=!1)):(b=new J11(b,this.src,P,!!N,p),b.p7=h,C.push(b));return b}; +g.k.remove=function(C,b,h,N){C=C.toString();if(!(C in this.listeners))return!1;var p=this.listeners[C];b=O0(p,b,h,N);return b>-1?(Xl(p[b]),g.wD(p,b),p.length==0&&(delete this.listeners[C],this.j--),!0):!1}; +g.k.removeAll=function(C){C=C&&C.toString();var b=0,h;for(h in this.listeners)if(!C||h==C){for(var N=this.listeners[h],p=0;p-1?C[p]:null}; +g.k.hasListener=function(C,b){var h=C!==void 0,N=h?C.toString():"",p=b!==void 0;return g.HE(this.listeners,function(P){for(var c=0;c>>0);g.ho(g.wQ,g.O);g.wQ.prototype[r1o]=!0;g.k=g.wQ.prototype;g.k.addEventListener=function(C,b,h,N){g.D6(this,C,b,h,N)}; +g.k.removeEventListener=function(C,b,h,N){syo(this,C,b,h,N)}; +g.k.dispatchEvent=function(C){var b=this.Fr;if(b){var h=[];for(var N=1;b;b=b.Fr)h.push(b),++N}b=this.Nh;N=C.type||C;if(typeof C==="string")C=new g.R4(C,b);else if(C instanceof g.R4)C.target=C.target||b;else{var p=C;C=new g.R4(N,b);g.RV(C,p)}p=!0;var P;if(h)for(P=h.length-1;!C.K&&P>=0;P--){var c=C.currentTarget=h[P];p=Cb(c,N,!0,C)&&p}C.K||(c=C.currentTarget=b,p=Cb(c,N,!0,C)&&p,C.K||(p=Cb(c,N,!1,C)&&p));if(h)for(P=0;!C.K&&P0){this.K--;var C=this.j;this.j=C.next;C.next=null}else C=this.N();return C};var gt;Pt.prototype.add=function(C,b){var h=EAl.get();h.set(C,b);this.K?this.K.next=h:this.j=h;this.K=h}; +Pt.prototype.remove=function(){var C=null;this.j&&(C=this.j,this.j=this.j.next,this.j||(this.K=null),C.next=null);return C}; +var EAl=new bh(function(){return new jI},function(C){return C.reset()}); +jI.prototype.set=function(C,b){this.j=C;this.scope=b;this.next=null}; +jI.prototype.reset=function(){this.next=this.scope=this.j=null};var ct,kE=!1,d06=new Pt;TwW.prototype.reset=function(){this.context=this.K=this.N=this.j=null;this.X=!1}; +var Bwl=new bh(function(){return new TwW},function(C){C.reset()}); +g.o9.prototype.then=function(C,b,h){return gvl(this,he(typeof C==="function"?C:null),he(typeof b==="function"?b:null),h)}; +g.o9.prototype.$goog_Thenable=!0;g.k=g.o9.prototype;g.k.finally=function(C){var b=this;C=he(C);return new Promise(function(h,N){hnV(b,function(p){C();h(p)},function(p){C(); +N(p)})})}; +g.k.jX=function(C,b){return gvl(this,null,he(C),b)}; +g.k.catch=g.o9.prototype.jX;g.k.cancel=function(C){if(this.j==0){var b=new Ht(C);g.eI(function(){CF1(this,b)},this)}}; +g.k.m9$=function(C){this.j=0;lh(this,2,C)}; +g.k.g1f=function(C){this.j=0;lh(this,3,C)}; +g.k.Ok=function(){for(var C;C=bRl(this);)h4H(this,C,this.j,this.J);this.W=!1}; +var c8S=ze;g.ho(Ht,SD);Ht.prototype.name="cancel";g.ho(g.Vh,g.wQ);g.k=g.Vh.prototype;g.k.enabled=!1;g.k.Lj=null;g.k.setInterval=function(C){this.Zo=C;this.Lj&&this.enabled?(this.stop(),this.start()):this.Lj&&this.stop()}; +g.k.rLX=function(){if(this.enabled){var C=g.bC()-this.XI;C>0&&C0&&(this.getStatus(),this.W=setTimeout(this.yD.bind(this), +this.KO)),this.getStatus(),this.V=!0,this.j.send(C),this.V=!1}catch(c){this.getStatus(),iR1(this,c)}}; +g.k.yD=function(){typeof Bt!="undefined"&&this.j&&(this.X="Timed out after "+this.KO+"ms, aborting",this.K=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; +g.k.abort=function(C){this.j&&this.N&&(this.getStatus(),this.N=!1,this.G=!0,this.j.abort(),this.G=!1,this.K=C||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),Tp(this))}; +g.k.wO=function(){this.j&&(this.N&&(this.N=!1,this.G=!0,this.j.abort(),this.G=!1),Tp(this,!0));g.te.Re.wO.call(this)}; +g.k.QW=function(){this.HE()||(this.nO||this.V||this.G?J8H(this):this.otO())}; +g.k.otO=function(){J8H(this)}; +g.k.isActive=function(){return!!this.j}; +g.k.isComplete=function(){return g.I9(this)==4}; +g.k.getStatus=function(){try{return g.I9(this)>2?this.j.status:-1}catch(C){return-1}}; +g.k.getResponseHeader=function(C){if(this.j&&this.isComplete())return C=this.j.getResponseHeader(C),C===null?void 0:C}; +g.k.getLastError=function(){return typeof this.X==="string"?this.X:String(this.X)};hF.prototype.send=function(C,b,h){b=b===void 0?function(){}:b; +h=h===void 0?function(){}:h; +y8l(C.url,function(N){N=N.target;xE(N)?b(g.wt(N)):h(N.getStatus())},C.requestType,C.body,C.requestHeaders,C.timeoutMillis,C.withCredentials)}; +hF.prototype.kp=function(){return 1};gH.prototype.done=function(){this.logger.DH(this.event,NB()-this.startTime)}; +g.S(pn,YI);g.S(jl,pn);g.k=jl.prototype;g.k.R6=function(){}; +g.k.h_=function(){}; +g.k.DH=function(){}; +g.k.RF=function(){}; +g.k.M$=function(){}; +g.k.Oz=function(C,b,h){return h}; +g.k.gP=function(){}; +g.k.bz=function(){}; +g.k.Y$=function(){}; +g.k.E4=function(){}; +g.S(ca,pn);g.k=ca.prototype;g.k.update=function(C){this.logger.dispose();this.logger=C}; +g.k.h_=function(C){this.logger.h_(C)}; +g.k.DH=function(C,b){this.logger.DH(C,b)}; +g.k.RF=function(C){this.logger.RF(C)}; +g.k.M$=function(){this.logger.M$()}; +g.k.Oz=function(C,b,h){return this.logger.Oz(C,b,h)}; +g.k.gP=function(C){this.logger.gP(C)}; +g.k.bz=function(C){this.logger.bz(C)}; +g.k.Y$=function(C){this.logger.Y$(C)}; +g.k.E4=function(C){this.logger.E4(C)}; +g.k.KQ=function(C){this.logger instanceof Ln&&this.logger.KQ(C)}; +g.k.R6=function(C){this.logger.R6(C)}; +g.S(k3,g.O);g.S(el,pn);g.k=el.prototype;g.k.KQ=function(C){this.B$=C}; +g.k.R6=function(C){this.metrics.X6D.VH(C,this.u1)}; +g.k.h_=function(C){this.metrics.eventCount.j(C,this.u1)}; +g.k.DH=function(C,b){this.metrics.eM.VH(b,C,this.B$,this.u1)}; +g.k.RF=function(C){this.metrics.errorCount.j(C,this.B$,this.u1)}; +g.k.Oz=function(C,b,h){function N(c){if(!p.HE()){var e=NB()-P;p.metrics.Ba2.VH(e,C,b,c,p.B$,p.u1)}} +var p=this,P=NB();h.then(function(){N(0)},function(c){c instanceof fb?N(c.code):N(-1)}); +return h}; +g.k.gP=function(C){this.metrics.ne6.j(C,this.B$,this.u1)}; +g.k.bz=function(C){this.metrics.yE.j(C,this.B$,this.u1)}; +g.k.Y$=function(C){this.metrics.ZZO.j(C,this.B$,this.u1)}; +g.S(Ln,el);Ln.prototype.E4=function(C){var b=this;this.j.dispose();this.K&&this.service.dispose();this.service=this.options.qP("45",this.options.QM.concat(C));this.j=new k3(function(){return void b.service.kD()},this.options.iz); +this.metrics=QVK(this.service);this.N=C}; +Ln.prototype.M$=function(){XE6(this.j)};g.S(ZI,X4);g.S(Y3,X4);g.S(a0,X4);var mWj=oe(a0),ORV=function(C){return ns(function(b){return b instanceof C&&!((b.Xq[u7]|0)&2)})}(a0); +a0.messageId="bfkj";g.S(Kgc,X4);g.S(c$,X4);g.S(lY,X4);var vvl=oe(lY);g.S(FI,g.O);FI.prototype.snapshot=function(C){if(this.HE())throw Error("Already disposed");this.logger.h_("n");var b=this.logger.share();return this.N.then(function(h){var N=h.E7;return new Promise(function(p){var P=new gH(b,"n");N(function(c){P.done();b.R6(c.length);b.M$();b.dispose();p(c)},[C.Kf, +C.qV,C.xH,C.G4])})})}; +FI.prototype.HZ=function(C){var b=this;if(this.HE())throw Error("Already disposed");this.logger.h_("n");var h=Pa(this.logger,function(){return b.X([C.Kf,C.qV,C.xH,C.G4])},"n"); +this.logger.R6(h.length);this.logger.M$();return h}; +FI.prototype.zs=function(C){this.N.then(function(b){var h;(h=b.cbE)==null||h(C)})}; +FI.prototype.zq=function(){return this.logger.share()};g.S(z3,X4);g.S(Ha,X4);Vs.prototype.gV=function(C,b){var h=this,N,p,P,c,e;return g.R(function(L){if(L.j==1){var Z=new z3;N=G5(Z,1,h.G_);C&&G5(N,2,C);b&&G5(N,3,b);p=h.j();return g.J(L,h.client.create(N,p),2)}P=L.K;c=yR(Tx(P,2));if(c.length){Z=L.return;var Y=new Uint8Array(c.length);for(var a=0;a0;)b[h++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(C%62),C=Math.floor(C/62);return b.join("")}};var FkH;g.S(JF,g.O);JF.prototype.ZQ=function(C,b){var h=this.BY(C);b==null||b(h);return Pa(this.logger,function(){return g.$s(h,2)},this.N)}; +FkH=Symbol.dispose;g.S(Qs,JF);Qs.prototype.BY=function(C,b){var h=this;this.logger.h_(this.j);++this.G>=this.W&&this.K.resolve();var N=C();C=Pa(this.logger,function(){return h.X(N)},"C"); +if(C===void 0)throw new P$(17,"YNJ:Undefined");if(!(C instanceof Uint8Array))throw new P$(18,"ODM:Invalid");b==null||b(C);return C}; +g.S(UA,JF);UA.prototype.BY=function(){return this.X}; +g.S(XI,JF);XI.prototype.BY=function(){var C=this;return Pa(this.logger,function(){return H5(C.X)},"d")}; +XI.prototype.ZQ=function(){return this.X}; +g.S(Kn,JF);Kn.prototype.BY=function(){if(this.X)return this.X;this.X=GzK(this,function(C){return"_"+o9H(C)}); +return GzK(this,function(C){return C})}; +g.S(va,JF);va.prototype.BY=function(C){var b=C();if(b.length>118)throw new P$(19,"DFO:Invalid");C=Math.floor(Date.now()/1E3);var h=[Math.random()*255,Math.random()*255],N=h.concat([this.X&255,this.clientState],[C>>24&255,C>>16&255,C>>8&255,C&255]);C=new Uint8Array(2+N.length+b.length);C[0]=34;C[1]=N.length+b.length;C.set(N,2);C.set(b,2+N.length);b=C.subarray(2);for(N=h=h.length;N150))try{this.cache=new Lkl(C,this.logger)}catch(b){this.reportError(new P$(22,"GBJ:init",b))}}; +DI.prototype.reportError=function(C){this.logger.RF(C.code);this.onError(C);return C}; +g.S(nn,DI);nn.prototype.Nv=function(){return this.X.promise}; +nn.prototype.BY=function(C){return dH(this,Object.assign({},C),!1)}; +nn.prototype.ZQ=function(C){return dH(this,Object.assign({},C),!0)}; +var q06=function(C){return ns(function(b){if(!Cx(b))return!1;for(var h=g.z(Object.entries(C)),N=h.next();!N.done;N=h.next()){var p=g.z(N.value);N=p.next().value;p=p.next().value;if(!(N in b)){if(p.H6O===!0)continue;return!1}if(!p(b[N]))return!1}return!0})}({eh:function(C){return ns(function(b){return b instanceof C})}(MB)},"");g.S(T3,X4);var ylo=oe(T3);AWK.prototype.getMetadata=function(){return this.metadata};Ba.prototype.getMetadata=function(){return this.metadata}; +Ba.prototype.getStatus=function(){return this.status};I0.prototype.J=function(C,b){b=b===void 0?{}:b;return new AWK(C,this,b)}; +I0.prototype.getName=function(){return this.name};var rlI=new I0("/google.internal.waa.v1.Waa/Create",z3,T3,function(C){return C.Oq()},ylo);g.S(x3,X4);var fx0=new I0("/google.internal.waa.v1.Waa/GenerateIT",Ha,x3,function(C){return C.Oq()},oe(x3));var gEl=new Set(["SAPISIDHASH","APISIDHASH"]);var x7W=Promise;g.S(wH,X4);wH.prototype.getValue=function(){var C=KL(this,2);if(Array.isArray(C)||C instanceof X4)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return Tx(this,2)};g.S(C0,X4);C0.prototype.getMessage=function(){return ay(this,2)}; +var RXo=oe(C0);bb.prototype.x3=function(C,b){C=="data"?this.N.push(b):C=="metadata"?this.G.push(b):C=="status"?this.W.push(b):C=="end"?this.X.push(b):C=="error"&&this.K.push(b);return this}; +bb.prototype.removeListener=function(C,b){C=="data"?Pu(this.N,b):C=="metadata"?Pu(this.G,b):C=="status"?Pu(this.W,b):C=="end"?Pu(this.X,b):C=="error"&&Pu(this.K,b);return this}; +bb.prototype.cancel=function(){this.j.abort()}; +bb.prototype.cancel=bb.prototype.cancel;bb.prototype.removeListener=bb.prototype.removeListener;bb.prototype.on=bb.prototype.x3;g.S(rWS,Error);g.ho(g.jB,SiK);g.jB.prototype.j=function(){var C=new cu(this.X,this.N);this.K&&C.setCredentialsMode(this.K);return C}; +g.jB.prototype.setCredentialsMode=function(C){this.K=C}; +g.ho(cu,g.wQ);g.k=cu.prototype;g.k.open=function(C,b){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.KO=C;this.V=b;this.readyState=1;kk(this)}; +g.k.send=function(C){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.j=!0;var b={headers:this.L,method:this.KO,credentials:this.G,cache:void 0};C&&(b.body=C);(this.N2||g.sl).fetch(new Request(this.V,b)).then(this.qX6.bind(this),this.vr.bind(this))}; +g.k.abort=function(){this.response=this.responseText="";this.L=new Headers;this.status=0;this.N&&this.N.cancel("Request was aborted.").catch(function(){}); +this.readyState>=1&&this.j&&this.readyState!=4&&(this.j=!1,eB(this));this.readyState=0}; +g.k.qX6=function(C){if(this.j&&(this.X=C,this.K||(this.status=this.X.status,this.statusText=this.X.statusText,this.K=C.headers,this.readyState=2,kk(this)),this.j&&(this.readyState=3,kk(this),this.j)))if(this.responseType==="arraybuffer")C.arrayBuffer().then(this.x2X.bind(this),this.vr.bind(this));else if(typeof g.sl.ReadableStream!=="undefined"&&"body"in C){this.N=C.body.getReader();if(this.W){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.'); +this.response=[]}else this.response=this.responseText="",this.J=new TextDecoder;Q4o(this)}else C.text().then(this.d2o.bind(this),this.vr.bind(this))}; +g.k.jfX=function(C){if(this.j){if(this.W&&C.value)this.response.push(C.value);else if(!this.W){var b=C.value?C.value:new Uint8Array(0);if(b=this.J.decode(b,{stream:!C.done}))this.response=this.responseText+=b}C.done?eB(this):kk(this);this.readyState==3&&Q4o(this)}}; +g.k.d2o=function(C){this.j&&(this.response=this.responseText=C,eB(this))}; +g.k.x2X=function(C){this.j&&(this.response=C,eB(this))}; +g.k.vr=function(){this.j&&eB(this)}; +g.k.setRequestHeader=function(C,b){this.L.append(C,b)}; +g.k.getResponseHeader=function(C){return this.K?this.K.get(C.toLowerCase())||"":""}; +g.k.getAllResponseHeaders=function(){if(!this.K)return"";for(var C=[],b=this.K.entries(),h=b.next();!h.done;)h=h.value,C.push(h[0]+": "+h[1]),h=b.next();return C.join("\r\n")}; +g.k.setCredentialsMode=function(C){this.G=C}; +Object.defineProperty(cu.prototype,"withCredentials",{get:function(){return this.G==="include"}, +set:function(C){this.setCredentialsMode(C?"include":"same-origin")}});g.L0.prototype.toString=function(){var C=[],b=this.G;b&&C.push(GS(b,iWh,!0),":");var h=this.j;if(h||b=="file")C.push("//"),(b=this.L)&&C.push(GS(b,iWh,!0),"@"),C.push(g.Bh(h).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),h=this.N,h!=null&&C.push(":",String(h));if(h=this.K)this.j&&h.charAt(0)!="/"&&C.push("/"),C.push(GS(h,h.charAt(0)=="/"?Jld:uKo,!0));(h=this.X.toString())&&C.push("?",h);(h=this.W)&&C.push("#",GS(h,RUo));return C.join("")}; +g.L0.prototype.resolve=function(C){var b=this.clone(),h=!!C.G;h?g.ZH(b,C.G):h=!!C.L;h?b.L=C.L:h=!!C.j;h?g.Yk(b,C.j):h=C.N!=null;var N=C.K;if(h)g.a3(b,C.N);else if(h=!!C.K){if(N.charAt(0)!="/")if(this.j&&!this.K)N="/"+N;else{var p=b.K.lastIndexOf("/");p!=-1&&(N=b.K.slice(0,p+1)+N)}p=N;if(p==".."||p==".")N="";else if(g.mh(p,"./")||g.mh(p,"/.")){N=Mp(p,"/");p=p.split("/");for(var P=[],c=0;c1||P.length==1&&P[0]!="")&&P.pop(), +N&&c==p.length&&P.push("")):(P.push(e),N=!0)}N=P.join("/")}else N=p}h?b.K=N:h=C.X.toString()!=="";h?lb(b,C.X.clone()):h=!!C.W;h&&(b.W=C.W);return b}; +g.L0.prototype.clone=function(){return new g.L0(this)}; +var iWh=/[#\/\?@]/g,uKo=/[#\?:]/g,Jld=/[#\?]/g,XPl=/[#\?@]/g,RUo=/#/g;g.k=FT.prototype;g.k.add=function(C,b){zS(this);this.N=null;C=Hu(this,C);var h=this.j.get(C);h||this.j.set(C,h=[]);h.push(b);this.K=this.K+1;return this}; +g.k.remove=function(C){zS(this);C=Hu(this,C);return this.j.has(C)?(this.N=null,this.K=this.K-this.j.get(C).length,this.j.delete(C)):!1}; +g.k.clear=function(){this.j=this.N=null;this.K=0}; +g.k.isEmpty=function(){zS(this);return this.K==0}; +g.k.forEach=function(C,b){zS(this);this.j.forEach(function(h,N){h.forEach(function(p){C.call(b,p,N,this)},this)},this)}; +g.k.Yo=function(){zS(this);for(var C=Array.from(this.j.values()),b=Array.from(this.j.keys()),h=[],N=0;N0?String(C[0]):b}; +g.k.toString=function(){if(this.N)return this.N;if(!this.j)return"";for(var C=[],b=Array.from(this.j.keys()),h=0;h>>3;P.N!=1&&P.N!=2&&P.N!=15&&mf(P,c,e,"unexpected tag");P.j=1;P.K=0;P.X=0} +function h(L){P.X++;P.X==5&&L&240&&mf(P,c,e,"message length too long");P.K|=(L&127)<<(P.X-1)*7;L&128||(P.j=2,P.L=0,typeof Uint8Array!=="undefined"?P.G=new Uint8Array(P.K):P.G=Array(P.K),P.K==0&&p())} +function N(L){P.G[P.L++]=L;P.L==P.K&&p()} +function p(){if(P.N<15){var L={};L[P.N]=P.G;P.J.push(L)}P.j=0} +for(var P=this,c=C instanceof Array?C:new Uint8Array(C),e=0;e0?C:null};f0.prototype.isInputValid=function(){return this.j===null}; +f0.prototype.WL=function(){return this.j}; +f0.prototype.wM=function(){return!1}; +f0.prototype.parse=function(C){this.j!==null&&E96(this,C,"stream already broken");var b=null;try{var h=this.N;h.N||WkW(h,C,"stream already broken");h.j+=C;var N=Math.floor(h.j.length/4);if(N==0)var p=null;else{try{var P=aUU(h.j.slice(0,N*4))}catch(c){WkW(h,h.j,c.message)}h.K+=N*4;h.j=h.j.slice(N*4);p=P}b=p===null?null:this.X.parse(p)}catch(c){E96(this,C,c.message)}this.K+=C.length;return b};var UW0={INIT:0,bE:1,DD:2,dl:3,fP:4,h1:5,STRING:6,EH:7,PN:8,B0:9,Za:10,nh:11,dT:12,qn:13,Wf:14,oE:15,eN:16,Ou:17,Am:18,SW:19,aN:20};g.k=yV.prototype;g.k.isInputValid=function(){return this.G!=3}; +g.k.WL=function(){return this.V}; +g.k.done=function(){return this.G===2}; +g.k.wM=function(){return!1}; +g.k.parse=function(C){function b(){for(;l0;)if(G=C[l++], +P.L===4?P.L=0:P.L++,!G)break a;if(G==='"'&&!P.J){P.j=N();break}if(G==="\\"&&!P.J&&(P.J=!0,G=C[l++],!G))break;if(P.J)if(P.J=!1,G==="u"&&(P.L=1),G=C[l++])continue;else break;e.lastIndex=l;G=e.exec(C);if(!G){l=C.length+1;break}l=G.index+1;G=C[G.index];if(!G)break}P.N+=l-V;continue;case L.B0:if(!G)continue;G==="r"?P.j=L.Za:rX(P,C,l);continue;case L.Za:if(!G)continue;G==="u"?P.j=L.nh:rX(P,C,l);continue;case L.nh:if(!G)continue;G==="e"?P.j=N():rX(P,C,l);continue;case L.dT:if(!G)continue;G==="a"?P.j=L.qn: +rX(P,C,l);continue;case L.qn:if(!G)continue;G==="l"?P.j=L.Wf:rX(P,C,l);continue;case L.Wf:if(!G)continue;G==="s"?P.j=L.oE:rX(P,C,l);continue;case L.oE:if(!G)continue;G==="e"?P.j=N():rX(P,C,l);continue;case L.eN:if(!G)continue;G==="u"?P.j=L.Ou:rX(P,C,l);continue;case L.Ou:if(!G)continue;G==="l"?P.j=L.Am:rX(P,C,l);continue;case L.Am:if(!G)continue;G==="l"?P.j=N():rX(P,C,l);continue;case L.SW:G==="."?P.j=L.aN:rX(P,C,l);continue;case L.aN:if("0123456789.eE+-".indexOf(G)!==-1)continue;else l--,P.N--,P.j= +N();continue;default:rX(P,C,l)}}} +function N(){var G=c.pop();return G!=null?G:L.bE} +function p(G){P.K>1||(G||(G=a===-1?P.X+C.substring(Y,l):C.substring(a,l)),P.KO?P.W.push(G):P.W.push(JSON.parse(G)),a=l)} +for(var P=this,c=P.N2,e=P.nO,L=UW0,Z=C.length,Y=0,a=-1,l=0;l0?(F=P.W,P.W=[],F):null}return null};ib.prototype.isInputValid=function(){return this.G===null}; +ib.prototype.WL=function(){return this.G}; +ib.prototype.wM=function(){return!1}; +ib.prototype.parse=function(C){function b(L){P.K=6;P.G="The stream is broken @"+P.j+"/"+c+". Error: "+L+". With input:\n";throw Error(P.G);} +function h(){P.N=new yV({oCh:!0,Wl:!0})} +function N(L){if(L)for(var Z=0;Z1)&&b("extra status: "+L);P.W=!0;var Z={};Z[2]=L[0];P.X.push(Z)}} +for(var P=this,c=0;c0?(C=P.X,P.X=[],C):null};JX.prototype.jj=function(){return this.j}; +JX.prototype.getStatus=function(){return this.G}; +JX.prototype.KO=function(C){C=C.target;try{if(C==this.j)a:{var b=g.I9(this.j),h=this.j.K,N=this.j.getStatus(),p=g.wt(this.j);C=[];if(g.Cn(this.j)instanceof Array){var P=g.Cn(this.j);P.length>0&&P[0]instanceof Uint8Array&&(this.V=!0,C=P)}if(!(b<3||b==3&&!p&&C.length==0))if(N=N==200||N==206,b==4&&(h==8?U9(this,7):h==7?U9(this,8):N||U9(this,3)),this.K||(this.K=n9l(this.j),this.K==null&&U9(this,5)),this.G>2)XT(this);else{if(C.length>this.N){var c=C.length;h=[];try{if(this.K.wM())for(var e=0;ethis.N){e=p.slice(this.N);this.N=p.length;try{var Z=this.K.parse(e);Z!=null&&this.X&&this.X(Z)}catch(Y){U9(this,5);XT(this);break a}}b==4?(p.length!= +0||this.V?U9(this,2):U9(this,4),XT(this)):U9(this,1)}}}catch(Y){U9(this,6),XT(this)}};g.k=tWl.prototype;g.k.x3=function(C,b){var h=this.K[C];h||(h=[],this.K[C]=h);h.push(b);return this}; +g.k.addListener=function(C,b){this.x3(C,b);return this}; +g.k.removeListener=function(C,b){var h=this.K[C];h&&g.Cs(h,b);(C=this.j[C])&&g.Cs(C,b);return this}; +g.k.once=function(C,b){var h=this.j[C];h||(h=[],this.j[C]=h);h.push(b);return this}; +g.k.xo6=function(C){var b=this.K.data;b&&TQU(C,b);(b=this.j.data)&&TQU(C,b);this.j.data=[]}; +g.k.jDh=function(){switch(this.N.getStatus()){case 1:K0(this,"readable");break;case 5:case 6:case 4:case 7:case 3:K0(this,"error");break;case 8:K0(this,"close");break;case 2:K0(this,"end")}};BQl.prototype.serverStreaming=function(C,b,h,N){var p=this,P=C.substring(0,C.length-N.name.length);return I61(function(c){var e=c.mK,L=c.getMetadata(),Z=bb1(p,!1);L=hY1(p,L,Z,P+e.getName());var Y=NtU(Z,e.K,!0);c=e.j(c.tx);Z.send(L,"POST",c);return Y},this.X).call(this,N.J(b,h))};pt_.prototype.create=function(C,b){return Chx(this.j,this.K+"/$rpc/google.internal.waa.v1.Waa/Create",C,b||{},rlI)};var X1p=1,n0=new WeakMap;g.S(s9,g.O);s9.prototype.signal=function(){var C=new vu(!1);this.signals.add(C);g.D(this,C);return C}; +s9.prototype.Uz=function(C){return O9(this,C).Uz()}; +g.S(vu,g.O);g.k=vu.prototype;g.k.SI=function(){var C=this,b=X1p++;DH(function(){PhH(C,b)}); +return b}; +g.k.detach=function(C){var b=this;DH(function(){var h=b.slots.get(C);h&&h.l8()})}; +g.k.value=function(C){return this.promise(!0,C)}; +g.k.Uz=function(){return this.Kg}; +g.k.next=function(C){return this.promise(!1,C)}; +g.k.promise=function(C,b){var h=this,N=boK();DH(function(){if(h.HE())N.reject(new Ht("Signal initially disposed"));else if(b&&b.HE())N.reject(new Ht("Owner initially disposed"));else if(C&&h.Aw&&h.Rw)N.resolve(h.Kg);else if(h.LG.add(N),zp(N.promise,function(){h.LG.delete(N)}),b){var p=function(){N.reject(new Ht("Owner asynchronously disposed"))}; +zp(N.promise,function(){var P=n0.get(b);P&&g.Cs(P,p)}); +kpW(b,p)}}); +return N.promise}; +g.k.wO=function(){var C=this;g.O.prototype.wO.call(this);DH(function(){for(var b=g.z(C.slots.values()),h=b.next();!h.done;h=b.next())h=h.value.l8,h();C.slots.clear();b=g.z(C.LG);for(h=b.next();!h.done;h=b.next())h.value.reject(new Ht("Signal asynchronously disposed"));C.LG.clear()})}; +var Wu=[],E9=!1;g.S(tX,g.O);tX.prototype.start=function(){var C=this;if(this.HE())throw new Bu("Cannot start a disposed timer.");if(!this.W){this.X=0;if(this.J){var b=Date.now();this.handle=setInterval(function(){C.X=C.milliseconds>0?Math.trunc((Date.now()-b)/C.milliseconds):C.X+1;var h;(h=C.K)==null||h.resolve();C.K=void 0;if(C.N){var N;(N=C.j)!=null&&dX(O9(N,C.N),C)}C.wU.h7(C)},this.milliseconds)}else this.handle=setTimeout(function(){C.state=3; +C.handle=void 0;C.X=1;var h;(h=C.K)==null||h.resolve();C.K=void 0;if(C.N){var N;(N=C.j)!=null&&dX(O9(N,C.N),C)}C.wU.h7(C)},this.milliseconds); +this.state=1}}; +tX.prototype.cancel=function(){if(this.W){this.clear();this.state=2;var C;(C=this.K)==null||C.reject(new TS);var b;(b=this.wU.jo)==null||b.call(this);if(this.G){var h;(h=this.j)!=null&&dX(O9(h,this.G))}}}; +tX.prototype.wO=function(){this.clear();var C;(C=this.K)==null||C.reject(new Bu);this.state=4;g.O.prototype.wO.call(this)}; +tX.prototype.clear=function(){this.J?clearInterval(this.handle):clearTimeout(this.handle);this.handle=void 0}; +g.eV.Object.defineProperties(tX.prototype,{W:{configurable:!0,enumerable:!0,get:function(){return this.state===1}}, +isCancelled:{configurable:!0,enumerable:!0,get:function(){return this.state===2}}, +isExpired:{configurable:!0,enumerable:!0,get:function(){return this.state===3}}, +tick:{configurable:!0,enumerable:!0,get:function(){return this.X}}, +L:{configurable:!0,enumerable:!0,get:function(){switch(this.state){case 0:case 1:return this.K!=null||(this.K=new g.o0),this.K.promise;case 3:return Promise.resolve();case 2:return Promise.reject(new TS("Timer has been cancelled."));case 4:return Promise.reject(new Bu("Timer has been disposed."));default:Pv(this.state)}}}, +h7:{configurable:!0,enumerable:!0,get:function(){if(this.HE())throw new Bu("Cannot attach a signal to a disposed timer.");this.N||(this.j!=null||(this.j=new s9(this)),this.N=this.j.signal());return this.N}}, +jo:{configurable:!0,enumerable:!0,get:function(){if(this.HE())throw new Bu("Cannot attach a signal to a disposed timer.");this.G||(this.j!=null||(this.j=new s9(this)),this.G=this.j.signal());return this.G}}}); +g.S(TS,SD);g.S(Bu,SD);g.S(I3,DI);g.k=I3.prototype;g.k.isReady=function(){return!!this.j}; +g.k.ready=function(){var C=this;return g.R(function(b){return g.J(b,C.N.promise,0)})}; +g.k.gV=function(C){return ZbK(this,this.logger.Oz("c",C===void 0?1:C,this.DZ.gV(Sl().j,null)),new P$(10,"JVZ:Timeout"))}; +g.k.prefetch=function(){this.state===1&&(this.ih=this.gV())}; +g.k.start=function(){if(this.state===1){this.state=2;var C=new gH(this.logger,"r");this.ready().finally(function(){return void C.done()}); +ah_(this)}}; +g.k.BY=function(C){lho(this,C);return dH(this,Lrx(C),!1)}; +g.k.ZQ=function(C){lho(this,C);return dH(this,Lrx(C),!0)};var SqU={NONE:0,Buz:1},wt6={NA:0,Rjp:1,noO:2,xeO:3},RW={F4:"a",jSE:"d",VIDEO:"v"};wX.prototype.isVisible=function(){return this.IX?this.C9>=.3:this.C9>=.5};var ku={YB2:0,yRf:1},IhS={NONE:0,dZf:1,lTz:2};C9.prototype.getValue=function(){return this.K}; +g.S(bP,C9);bP.prototype.N=function(C){this.K===null&&g.fR(this.X,C)&&(this.K=C)}; +g.S(hg,C9);hg.prototype.N=function(C){this.K===null&&typeof C==="number"&&(this.K=C)}; +g.S(N_,C9);N_.prototype.N=function(C){this.K===null&&typeof C==="string"&&(this.K=C)};gg.prototype.disable=function(){this.K=!1}; +gg.prototype.enable=function(){this.K=!0}; +gg.prototype.isEnabled=function(){return this.K}; +gg.prototype.reset=function(){this.j={};this.K=!0;this.N={}};var u3=document,Yu=window;var b0c=!g.o2&&!DU();ef.prototype.now=function(){return 0}; +ef.prototype.K=function(){return 0}; +ef.prototype.N=function(){return 0}; +ef.prototype.j=function(){return 0};g.S(Zt,ef);Zt.prototype.now=function(){return L9()&&Yu.performance.now?Yu.performance.now():ef.prototype.now.call(this)}; +Zt.prototype.K=function(){return L9()&&Yu.performance.memory?Yu.performance.memory.totalJSHeapSize||0:ef.prototype.K.call(this)}; +Zt.prototype.N=function(){return L9()&&Yu.performance.memory?Yu.performance.memory.usedJSHeapSize||0:ef.prototype.N.call(this)}; +Zt.prototype.j=function(){return L9()&&Yu.performance.memory?Yu.performance.memory.jsHeapSizeLimit||0:ef.prototype.j.call(this)};var HbS=YE(function(){var C=!1;try{var b=Object.defineProperty({},"passive",{get:function(){C=!0}}); +g.sl.addEventListener("test",null,b)}catch(h){}return C});VIH.prototype.isVisible=function(){return oW(u3)===1};var qq1={Q$h:"allow-forms",yTh:"allow-modals",MQX:"allow-orientation-lock",rTz:"allow-pointer-lock",cTh:"allow-popups",hzz:"allow-popups-to-escape-sandbox",fxo:"allow-presentation",p2z:"allow-same-origin",lxz:"allow-scripts",tQ4:"allow-top-navigation",C1E:"allow-top-navigation-by-user-activation"},yel=YE(function(){return mRo()});var uX6=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");zb.prototype.p9=function(C,b,h){C=C+"//"+b+h;var N=XtV(this)-h.length;if(N<0)return"";this.j.sort(function(Z,Y){return Z-Y}); +h=null;b="";for(var p=0;p=L.length){N-=L.length;C+=L;b=this.N;break}h=h==null?P:h}}N="";h!=null&&(N=""+b+"trn="+h);return C+N};ye.prototype.setInterval=function(C,b){return Yu.setInterval(C,b)}; +ye.prototype.clearInterval=function(C){Yu.clearInterval(C)}; +ye.prototype.setTimeout=function(C,b){return Yu.setTimeout(C,b)}; +ye.prototype.clearTimeout=function(C){Yu.clearTimeout(C)};g.S(iP,X4);iP.prototype.j=j6c([0,Cc0,Nod,-2,PcD]);var xRS={ULh:1,A3:2,RuO:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};CYl.prototype.Kp=function(C){if(typeof C==="string"&&C.length!=0){var b=this.aV;if(b.K){C=C.split("&");for(var h=C.length-1;h>=0;h--){var N=C[h].split("="),p=decodeURIComponent(N[0]);N.length>1?(N=decodeURIComponent(N[1]),N=/^[0-9]+$/g.exec(N)?parseInt(N,10):N):N=1;(p=b.j[p])&&p.N(N)}}}};var jt=null;var XV=g.sl.performance,KSU=!!(XV&&XV.mark&&XV.measure&&XV.clearMarks),Qe=YE(function(){var C;if(C=KSU){var b=b===void 0?window:b;if(jt===null){jt="";try{C="";try{C=b.top.location.hash}catch(N){C=b.location.hash}if(C){var h=C.match(/\bdeid=([\d,]+)/);jt=h?h[1]:""}}catch(N){}}b=jt;C=!!b.indexOf&&b.indexOf("1337")>=0}return C}); +U4.prototype.disable=function(){this.j=!1;this.events!==this.K.google_js_reporting_queue&&(Qe()&&g.oI(this.events,PYV),this.events.length=0)}; +U4.prototype.start=function(C,b){if(!this.j)return null;var h=g3V()||NHl();C=new paU(C,b,h);b="goog_"+C.label+"_"+C.uniqueId+"_start";XV&&Qe()&&XV.mark(b);return C}; +U4.prototype.end=function(C){if(this.j&&typeof C.value==="number"){var b=g3V()||NHl();C.duration=b-C.value;b="goog_"+C.label+"_"+C.uniqueId+"_end";XV&&Qe()&&XV.mark(b);!this.j||this.events.length>2048||this.events.push(C)}};j0c.prototype.xS=function(C,b,h,N,p){p=p||this.VJ;try{var P=new zb;P.j.push(1);P.K[1]=Hb("context",C);b.error&&b.meta&&b.id||(b=new vb(Dt(b)));if(b.msg){var c=b.msg.substring(0,512);P.j.push(2);P.K[2]=Hb("msg",c)}var e=b.meta||{};if(this.C0)try{this.C0(e)}catch(F){}if(N)try{N(e)}catch(F){}N=[e];P.j.push(3);P.K[3]=N;var L=Q96();if(L.K){var Z=L.K.url||"";P.j.push(4);P.K[4]=Hb("top",Z)}var Y={url:L.j.url||""};if(L.j.url){var a=L.j.url.match(Qh);var l=ih(a[1],null,a[3],a[4])}else l="";Z=[Y,{url:l}];P.j.push(5); +P.K[5]=Z;bn_(this.j,p,P,h)}catch(F){try{bn_(this.j,p,{context:"ecmserr",rctx:C,msg:Dt(F),url:L&&L.j.url},h)}catch(G){}}return this.WZ}; +g.S(vb,hGl);var s4,O4,K9=new U4;s4=new function(){var C="https:";Yu&&Yu.location&&Yu.location.protocol==="http:"&&(C="http:");this.K=C;this.j=.01}; +O4=new j0c;Yu&&Yu.document&&(Yu.document.readyState=="complete"?k3o():K9.j&&lP(Yu,"load",function(){k3o()}));var ZnW=Date.now(),Bb=-1,tg=-1,yXU,IW=-1,Tb=!1;g.k=xu.prototype;g.k.getHeight=function(){return this.bottom-this.top}; +g.k.clone=function(){return new xu(this.top,this.right,this.bottom,this.left)}; +g.k.contains=function(C){return this&&C?C instanceof xu?C.left>=this.left&&C.right<=this.right&&C.top>=this.top&&C.bottom<=this.bottom:C.x>=this.left&&C.x<=this.right&&C.y>=this.top&&C.y<=this.bottom:!1}; +g.k.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.k.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.k.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.k.scale=function(C,b){b=typeof b==="number"?b:C;this.left*=C;this.right*=C;this.top*=b;this.bottom*=b;return this};hV.prototype.y8=function(C,b){return!!C&&(!(b===void 0?0:b)||this.volume==C.volume)&&this.N==C.N&&CV(this.j,C.j)&&!0};NT.prototype.Rb=function(){return this.J}; +NT.prototype.y8=function(C,b){return this.X.y8(C.X,b===void 0?!1:b)&&this.J==C.J&&CV(this.N,C.N)&&CV(this.W,C.W)&&this.j==C.j&&this.G==C.G&&this.K==C.K&&this.L==C.L};var slI={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},fT={PH:"start",RC:"firstquartile",pF:"midpoint",zL:"thirdquartile",COMPLETE:"complete",ERROR:"error",fF:"metric",PAUSE:"pause",FR:"resume",LF:"skip",Oi:"viewable_impression",CF:"mute",VG:"unmute",xZ:"fullscreen",B9:"exitfullscreen",e8:"bufferstart",VI:"bufferfinish",qA:"fully_viewable_audible_half_duration_impression",h3:"measurable_impression",m$:"abandon",wd:"engagedview",GA:"impression",v9:"creativeview",cH:"loaded", +V94:"progress",CLOSE:"close",C5O:"collapse",p5X:"overlay_resize",lZ4:"overlay_unmeasurable_impression",t9o:"overlay_unviewable_impression",b24:"overlay_viewable_immediate_impression",CR4:"overlay_viewable_end_of_session_impression",jl:"custom_metric_viewable",Ly:"audio_audible",UP:"audio_measurable",k9:"audio_impression"},O9H="start firstquartile midpoint thirdquartile resume loaded".split(" "),vuU=["start","firstquartile","midpoint","thirdquartile"],i06=["abandon"],tH={UNKNOWN:-1,PH:0,RC:1,pF:2, +zL:3,COMPLETE:4,fF:5,PAUSE:6,FR:7,LF:8,Oi:9,CF:10,VG:11,xZ:12,B9:13,qA:14,h3:15,m$:16,wd:17,GA:18,v9:19,cH:20,jl:21,e8:22,VI:23,k9:27,UP:28,Ly:29};var aI1={Ws6:"addEventListener",CY4:"getMaxSize",b5O:"getScreenSize",i5o:"getState",uQo:"getVersion",XM4:"removeEventListener",bIp:"isViewable"};g.k=g.Pc.prototype;g.k.clone=function(){return new g.Pc(this.left,this.top,this.width,this.height)}; +g.k.contains=function(C){return C instanceof g.ZZ?C.x>=this.left&&C.x<=this.left+this.width&&C.y>=this.top&&C.y<=this.top+this.height:this.left<=C.left&&this.left+this.width>=C.left+C.width&&this.top<=C.top&&this.top+this.height>=C.top+C.height}; +g.k.getSize=function(){return new g.oV(this.width,this.height)}; +g.k.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; +g.k.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; +g.k.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; +g.k.scale=function(C,b){b=typeof b==="number"?b:C;this.left*=C;this.width*=C;this.top*=b;this.height*=b;return this};var G3l={};fIW.prototype.update=function(C){C&&C.document&&(this.J=pV(!1,C,this.isMobileDevice),this.j=pV(!0,C,this.isMobileDevice),yF1(this,C),AF1(this,C))};Qx.prototype.cancel=function(){rg().clearTimeout(this.j);this.j=null}; +Qx.prototype.schedule=function(){var C=this,b=rg(),h=uP().j.j;this.j=b.setTimeout(Jg(h,Wb(143,function(){C.K++;C.N.sample()})),YAx())};g.k=Uo.prototype;g.k.VS=function(){return!1}; +g.k.initialize=function(){return this.isInitialized=!0}; +g.k.Ox=function(){return this.j.sX}; +g.k.MQ=function(){return this.j.KO}; +g.k.wi=function(C,b){if(!this.KO||(b===void 0?0:b))this.KO=!0,this.sX=C,this.L=0,this.j!=this||KV(this)}; +g.k.getName=function(){return this.j.rO}; +g.k.pB=function(){return this.j.DI()}; +g.k.DI=function(){return{}}; +g.k.L$=function(){return this.j.L}; +g.k.BN=function(){var C=JV();C.j=pV(!0,this.N,C.isMobileDevice)}; +g.k.Zh=function(){AF1(JV(),this.N)}; +g.k.gZ=function(){return this.X.j}; +g.k.sample=function(){}; +g.k.isActive=function(){return this.j.W}; +g.k.We=function(C){var b=this.j;this.j=C.L$()>=this.L?C:this;b!==this.j?(this.W=this.j.W,KV(this)):this.W!==this.j.W&&(this.W=this.j.W,KV(this))}; +g.k.g_=function(C){if(C.K===this.j){var b=!this.X.y8(C,this.V);this.X=C;b&&JF1(this)}}; +g.k.U1=function(){return this.V}; +g.k.dispose=function(){this.q2=!0}; +g.k.HE=function(){return this.q2};g.k=so.prototype;g.k.observe=function(){return!0}; +g.k.unobserve=function(){}; +g.k.XP=function(C){this.G=C}; +g.k.dispose=function(){if(!this.HE()){var C=this.K;g.Cs(C.G,this);C.V&&this.U1()&&inl(C);this.unobserve();this.nO=!0}}; +g.k.HE=function(){return this.nO}; +g.k.pB=function(){return this.K.pB()}; +g.k.L$=function(){return this.K.L$()}; +g.k.Ox=function(){return this.K.Ox()}; +g.k.MQ=function(){return this.K.MQ()}; +g.k.We=function(){}; +g.k.g_=function(){this.xU()}; +g.k.U1=function(){return this.q2};g.k=Oo.prototype;g.k.L$=function(){return this.j.L$()}; +g.k.Ox=function(){return this.j.Ox()}; +g.k.MQ=function(){return this.j.MQ()}; +g.k.create=function(C,b,h){var N=null;this.j&&(N=this.OC(C,b,h),Xo(this.j,N));return N}; +g.k.n3=function(){return this.ez()}; +g.k.ez=function(){return!1}; +g.k.init=function(C){return this.j.initialize()?(Xo(this.j,this),this.X=C,!0):!1}; +g.k.We=function(C){C.L$()==0&&this.X(C.Ox(),this)}; +g.k.g_=function(){}; +g.k.U1=function(){return!1}; +g.k.dispose=function(){this.G=!0}; +g.k.HE=function(){return this.G}; +g.k.pB=function(){return{}};vc.prototype.add=function(C,b,h){++this.N;C=new RGV(C,b,h);this.j.push(new RGV(C.K,C.j,C.N+this.N/4096));this.K=!0;return this};s0o.prototype.toString=function(){var C="//pagead2.googlesyndication.com//pagead/gen_204",b=da(this.j);b.length>0&&(C+="?"+b);return C};Wc.prototype.update=function(C,b,h){C&&(this.j+=b,this.K+=b,this.X+=b,this.N=Math.max(this.N,this.X));if(h===void 0?!C:h)this.X=0};var Wz6=[1,.75,.5,.3,0];Eo.prototype.update=function(C,b,h,N,p,P){P=P===void 0?!0:P;b=p?Math.min(C,b):b;for(p=0;p0&&b>=c;c=!(C>0&&C>=c)||h;this.j[p].update(P&&e,N,!P||c)}};xX.prototype.update=function(C,b,h,N){this.J=this.J!=-1?Math.min(this.J,b.C9):b.C9;this.N2=Math.max(this.N2,b.C9);this.nO=this.nO!=-1?Math.min(this.nO,b.I0):b.I0;this.sX=Math.max(this.sX,b.I0);this.zi.update(b.I0,h.I0,b.j,C,N);this.Df+=C;b.C9===0&&(this.rO+=C);this.K.update(b.C9,h.C9,b.j,C,N);h=N||h.IX!=b.IX?h.isVisible()&&b.isVisible():h.isVisible();b=!b.isVisible()||b.j;this.CO.update(h,C,b)}; +xX.prototype.I_=function(){return this.CO.N>=this.kh};if(u3&&u3.URL){var OWd=u3.URL,v_U;if(v_U=!!OWd){var DWe;a:{if(OWd){var dWE=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var c2=dWE.exec(decodeURIComponent(OWd));if(c2){DWe=c2[1]&&c2[1].length>1?c2[1].substring(1):"true";break a}}catch(C){}}DWe=""}v_U=DWe.length>0}O4.WZ=!v_U};var WSd=new xu(0,0,0,0);var waS=new xu(0,0,0,0);g.S(N1,g.O);g.k=N1.prototype; +g.k.wO=function(){if(this.H$.j){if(this.ZC.yp){var C=this.H$.j;C.removeEventListener&&C.removeEventListener("mouseover",this.ZC.yp,aW());this.ZC.yp=null}this.ZC.Qp&&(C=this.H$.j,C.removeEventListener&&C.removeEventListener("mouseout",this.ZC.Qp,aW()),this.ZC.Qp=null)}this.VL&&this.VL.dispose();this.iF&&this.iF.dispose();delete this.zv;delete this.dY;delete this.RO;delete this.H$.BO;delete this.H$.j;delete this.ZC;delete this.VL;delete this.iF;delete this.aV;g.O.prototype.wO.call(this)}; +g.k.ud=function(){return this.iF?this.iF.j:this.position}; +g.k.Kp=function(C){uP().Kp(C)}; +g.k.U1=function(){return!1}; +g.k.bM=function(){return new xX}; +g.k.i5=function(){return this.zv}; +g.k.yB=function(C){return NXK(this,C,1E4)}; +g.k.l$=function(C,b,h,N,p,P,c){this.zS||(this.pu&&(C=this.PX(C,h,p,c),N=N&&this.Gx.C9>=(this.IX()?.3:.5),this.OJ(P,C,N),this.yr=b,C.C9>0&&-1===this.uU&&(this.uU=b),this.kX==-1&&this.I_()&&(this.kX=b),this.Bs==-2&&(this.Bs=bA(this.ud())?C.C9:-1),this.Gx=C),this.dY(this))}; +g.k.OJ=function(C,b,h){this.i5().update(C,b,this.Gx,h)}; +g.k.Yl=function(){return new wX}; +g.k.PX=function(C,b,h,N){h=this.Yl();h.j=b;b=rg().K;b=oW(u3)===0?-1:b.isVisible()?0:1;h.K=b;h.C9=this.qd(C);h.IX=this.IX();h.I0=N;return h}; +g.k.qd=function(C){return this.opacity===0&&jf(this.aV,"opac")===1?0:C}; +g.k.IX=function(){return!1}; +g.k.eE=function(){return this.L6D||this.P$f}; +g.k.rK=function(){n9()}; +g.k.RB=function(){n9()}; +g.k.nT=function(){return 0}; +g.k.I_=function(){return this.zv.I_()}; +g.k.kG=function(){var C=this.pu;C=(this.hasCompleted||this.HE())&&!C;var b=uP().K!==2||this.CHo;return this.zS||b&&C?2:this.I_()?4:3}; +g.k.Eb=function(){return 0};g.pT.prototype.next=function(){return g.kN}; +g.kN={done:!0,value:void 0};g.pT.prototype.x7=function(){return this};g.S(kSH,wX);var et=Lfc([void 0,1,2,3,4,8,16]),LK=Lfc([void 0,4,8,16]),E_D={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:kS("p0",LK),p1:kS("p1",LK),p2:kS("p2",LK),p3:kS("p3",LK),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:c_("mtos1",[0,2,4],!1,LK),mtos2:c_("mtos2",[0,2,4],!1,LK),mtos3:c_("mtos3",[0,2,4],!1,LK),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:kS("a0",LK),a1:kS("a1",LK),a2:kS("a2",LK),a3:kS("a3",LK),ft:"ft",dft:"dft",at:"at",dat:"dat",as:"as", +vpt:"vpt",gmm:"gmm",std:"std",efpf:"efpf",swf:"swf",nio:"nio",px:"px",nnut:"nnut",vmer:"vmer",vmmk:"vmmk",vmiec:"vmiec",nmt:"nmt",tcm:"tcm",bt:"bt",pst:"pst",vpaid:"vpaid",dur:"dur",vmtime:"vmtime",dtos:"dtos",dtoss:"dtoss",dvs:"dvs",dfvs:"dfvs",dvpt:"dvpt",fmf:"fmf",vds:"vds",is:"is",i0:"i0",i1:"i1",i2:"i2",i3:"i3",ic:"ic",cs:"cs",c:"c",c0:kS("c0",LK),c1:kS("c1",LK),c2:kS("c2",LK),c3:kS("c3",LK),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:kS("qmtos",et),qnc:kS("qnc",et),qmv:kS("qmv",et),qnv:kS("qnv",et), +raf:"raf",rafc:"rafc",lte:"lte",ces:"ces",tth:"tth",femt:"femt",femvt:"femvt",emc:"emc",emuc:"emuc",emb:"emb",avms:"avms",nvat:"nvat",qi:"qi",psm:"psm",psv:"psv",psfv:"psfv",psa:"psa",pnk:"pnk",pnc:"pnc",pnmm:"pnmm",pns:"pns",ptlt:"ptlt",pngs:"pings",veid:"veid",ssb:"ssb",ss0:kS("ss0",LK),ss1:kS("ss1",LK),ss2:kS("ss2",LK),ss3:kS("ss3",LK),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids",omidpv:"omidpv",omidam:"omidam",omidct:"omidct",omidia:"omidia", +omiddc:"omiddc",omidlat:"omidlat",omiddit:"omiddit",nopd:"nopd",co:"co",tm:"tm",tu:"tu"},n_j=Object.assign({},E_D,{avid:Lb("audio"),avas:"avas",vs:"vs"}),tVE={atos:"atos",avt:c_("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(C,b){return function(h){return h[C]===void 0&&b!==void 0?b:h[C]}}("ss",0), +t:"t"};YS.prototype.getValue=function(){return this.K}; +YS.prototype.update=function(C,b){C>=32||(this.j&1<=.5;md(b.volume)&&(this.X=this.X!=-1?Math.min(this.X,b.volume):b.volume,this.W=Math.max(this.W,b.volume));P&&(this.q2+=C,this.V+=p?C:0);this.j.update(b.C9,h.C9,b.j,C,N,p);this.N.update(!0,C);this.G.update(p,C);this.KO.update(h.fullscreen,C);this.Vz.update(p&&!P,C);C=Math.floor(b.mediaTime/1E3);this.Qz.update(C,b.isVisible());this.Yh.update(C,b.C9>=1);this.m6.update(C, +jr(b))}};Ffl.prototype.K=function(C){this.N||(this.j(C)?(C=Agl(this.V,this.X,C),this.G|=C,C=C==0):C=!1,this.N=C)};g.S(oO,Ffl);oO.prototype.j=function(){return!0}; +oO.prototype.W=function(){return!1}; +oO.prototype.getId=function(){var C=this,b=A8(fT,function(h){return h==C.X}); +return tH[b].toString()}; +oO.prototype.toString=function(){var C="";this.W()&&(C+="c");this.N&&(C+="s");this.G>0&&(C+=":"+this.G);return this.getId()+C};g.S(FF,oO);FF.prototype.K=function(C,b){b=b===void 0?null:b;b!=null&&this.J.push(b);oO.prototype.K.call(this,C)};g.S(GW,GSl);GW.prototype.K=function(){return null}; +GW.prototype.N=function(){return[]};g.S(Sr,so);g.k=Sr.prototype;g.k.Tf=function(){if(this.element){var C=this.element,b=this.K.j.N;try{try{var h=MlK(C.getBoundingClientRect())}catch(Z){h=new xu(0,0,0,0)}var N=h.right-h.left,p=h.bottom-h.top,P=zG1(C,b),c=P.x,e=P.y;var L=new xu(Math.round(e),Math.round(c+N),Math.round(e+p),Math.round(c))}catch(Z){L=WSd.clone()}this.N=L;this.j=uIK(this,this.N)}}; +g.k.Im=function(){this.W=this.K.X.j}; +g.k.LL=function(C){var b=jf(this.aV,"od")==1;return xBK(C,this.W,this.element,b)}; +g.k.jB=function(){this.timestamp=n9()}; +g.k.xU=function(){this.jB();this.Tf();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var C=this.element;var b=new g.oV(C.videoWidth,C.videoHeight);C=this.j;var h=wg(C),N=C.getHeight(),p=b.width;b=b.height;p<=0||b<=0||h<=0||N<=0||(p/=b,b=h/N,C=C.clone(),p>b?(h/=p,N=(N-h)/2,N>0&&(N=C.top+N,C.top=Math.round(N),C.bottom=Math.round(N+h))):(N*=p,h=Math.round((h-N)/2),h>0&&(h=C.left+h,C.left=Math.round(h),C.right=Math.round(h+N))));this.j=C}this.Im(); +C=this.j;h=this.W;C=C.left<=h.right&&h.left<=C.right&&C.top<=h.bottom&&h.top<=C.bottom?new xu(Math.max(C.top,h.top),Math.min(C.right,h.right),Math.min(C.bottom,h.bottom),Math.max(C.left,h.left)):new xu(0,0,0,0);h=C.top>=C.bottom||C.left>=C.right?new xu(0,0,0,0):C;C=this.K.X;b=p=N=0;if((this.j.bottom-this.j.top)*(this.j.right-this.j.left)>0)if(this.LL(h))h=new xu(0,0,0,0);else{N=JV().X;b=new xu(0,N.height,N.width,0);var P;N=hH(h,(P=this.G)!=null?P:this.j);p=hH(h,JV().j);b=hH(h,b)}P=h.top>=h.bottom|| +h.left>=h.right?new xu(0,0,0,0):b3(h,-this.j.left,-this.j.top);Ru()||(p=N=0);this.V=new NT(C,this.element,this.j,P,N,p,this.timestamp,b)}; +g.k.getName=function(){return this.K.getName()};var Too=new xu(0,0,0,0);g.S($S,Sr);g.k=$S.prototype;g.k.observe=function(){this.X();return!0}; +g.k.g_=function(){Sr.prototype.xU.call(this)}; +g.k.jB=function(){}; +g.k.Tf=function(){}; +g.k.xU=function(){this.X();Sr.prototype.xU.call(this)}; +g.k.We=function(C){C=C.isActive();C!==this.L&&(C?this.X():(JV().j=new xu(0,0,0,0),this.j=new xu(0,0,0,0),this.W=new xu(0,0,0,0),this.timestamp=-1));this.L=C};var Zz={},AXc=(Zz.firstquartile=0,Zz.midpoint=1,Zz.thirdquartile=2,Zz.complete=3,Zz);g.S(H_,N1);g.k=H_.prototype;g.k.U1=function(){return!0}; +g.k.eJ=function(){return this.Ys==2}; +g.k.yB=function(C){return NXK(this,C,Math.max(1E4,this.N/3))}; +g.k.l$=function(C,b,h,N,p,P,c){var e=this,L=this.J(this)||{};g.RV(L,p);this.N=L.duration||this.N;this.V=L.isVpaid||this.V;this.rO=L.isYouTube||this.rO;rg();this.zi=!1;p=$4W(this,b);S96(this)===1&&(P=p);N1.prototype.l$.call(this,C,b,h,N,L,P,c);this.N$&&this.N$.N&&g.oI(this.W,function(Z){Z.K(e)})}; +g.k.OJ=function(C,b,h){N1.prototype.OJ.call(this,C,b,h);q1(this).update(C,b,this.Gx,h);this.kh=jr(this.Gx)&&jr(b);this.sX==-1&&this.Yh&&(this.sX=this.i5().N.j);this.I2.N=0;C=this.I_();b.isVisible()&&ZR(this.I2,"vs");C&&ZR(this.I2,"vw");md(b.volume)&&ZR(this.I2,"am");jr(b)?ZR(this.I2,"a"):ZR(this.I2,"mut");this.rp&&ZR(this.I2,"f");b.K!=-1&&(ZR(this.I2,"bm"),b.K==1&&(ZR(this.I2,"b"),jr(b)&&ZR(this.I2,"umutb")));jr(b)&&b.isVisible()&&ZR(this.I2,"avs");this.kh&&C&&ZR(this.I2,"avw");b.C9>0&&ZR(this.I2, +"pv");m8(this,this.i5().N.j,!0)&&ZR(this.I2,"gdr");Bc(this.i5().K,1)>=2E3&&ZR(this.I2,"pmx");this.zi&&ZR(this.I2,"tvoff")}; +g.k.bM=function(){return new aO}; +g.k.i5=function(){return this.zv}; +g.k.Yl=function(){return new kSH}; +g.k.PX=function(C,b,h,N){C=N1.prototype.PX.call(this,C,b,h,N===void 0?-1:N);C.fullscreen=this.rp;C.paused=this.eJ();C.volume=h.volume;md(C.volume)||(this.sI++,b=this.Gx,md(b.volume)&&(C.volume=b.volume));h=h.currentTime;C.mediaTime=h!==void 0&&h>=0?h:-1;return C}; +g.k.qd=function(C){return JV(),this.rp?1:N1.prototype.qd.call(this,C)}; +g.k.nT=function(){return 1}; +g.k.getDuration=function(){return this.N}; +g.k.kG=function(){return this.zS?2:H0l(this)?5:this.I_()?4:3}; +g.k.Eb=function(){return this.Vz?this.i5().G.N>=2E3?4:3:2}; +g.k.XP=function(C){this.iF&&this.iF.XP(C)};var Bod=g.bC();s3W.prototype.reset=function(){this.j=[];this.K=[]}; +var JH=Ag(s3W);g.S(Q1,Oo);g.k=Q1.prototype;g.k.getName=function(){return(this.K?this.K:this.j).getName()}; +g.k.pB=function(){return(this.K?this.K:this.j).pB()}; +g.k.L$=function(){return(this.K?this.K:this.j).L$()}; +g.k.init=function(C){var b=!1;(0,g.oI)(this.N,function(h){h.initialize()&&(b=!0)}); +b&&(this.X=C,Xo(this.j,this));return b}; +g.k.dispose=function(){(0,g.oI)(this.N,function(C){C.dispose()}); +Oo.prototype.dispose.call(this)}; +g.k.n3=function(){return i3(this.N,function(C){return C.VS()})}; +g.k.ez=function(){return i3(this.N,function(C){return C.VS()})}; +g.k.OC=function(C,b,h){return new Sr(C,this.j,b,h)}; +g.k.g_=function(C){this.K=C.K};var TXU={threshold:[0,.3,.5,.75,1]};g.S(UU,Sr);g.k=UU.prototype;g.k.observe=function(){var C=this;this.N2||(this.N2=n9());if(LzW(298,function(){return BXW(C)}))return!0; +this.K.wi("msf");return!1}; +g.k.unobserve=function(){if(this.X&&this.element)try{this.X.unobserve(this.element),this.L?(this.L.unobserve(this.element),this.L=null):this.J&&(this.J.disconnect(),this.J=null)}catch(C){}}; +g.k.xU=function(){var C=XF(this);C.length>0&&KT(this,C);Sr.prototype.xU.call(this)}; +g.k.Tf=function(){}; +g.k.LL=function(){return!1}; +g.k.Im=function(){}; +g.k.pB=function(){var C={};return Object.assign(this.K.pB(),(C.niot_obs=this.N2,C.niot_cbk=this.KO,C))}; +g.k.getName=function(){return"nio"};g.S(sU,Oo);sU.prototype.getName=function(){return"nio"}; +sU.prototype.ez=function(){return!JV().K&&this.j.j.N.IntersectionObserver!=null}; +sU.prototype.OC=function(C,b,h){return new UU(C,this.j,b,h)};g.S(OU,Uo);OU.prototype.gZ=function(){return JV().j}; +OU.prototype.VS=function(){var C=x4H();this.L!==C&&(this.j!=this&&C>this.j.L&&(this.j=this,KV(this)),this.L=C);return C==2};v_.prototype.sample=function(){W_(this,uA(),!1)}; +v_.prototype.X=function(){var C=Ru(),b=n9();C?(Tb||(Bb=b,g.oI(JH.j,function(h){var N=h.i5();N.t4=lA(N,b,h.Ys!=1)})),Tb=!0):(this.J=Ngl(this,b),Tb=!1,yXU=b,g.oI(JH.j,function(h){h.pu&&(h.i5().L=b)})); +W_(this,uA(),!C)}; +var DR=Ag(v_);var pbU=null,lp="",ab=!1;var cgK=jWS().PK,nT=jWS().Tu;var LIl={MLi:"visible",Ni6:"audible",Uez:"time",Pt6:"timetype"},Z9S={visible:function(C){return/^(100|[0-9]{1,2})$/.test(C)}, +audible:function(C){return C=="0"||C=="1"}, +timetype:function(C){return C=="mtos"||C=="tos"}, +time:function(C){return/^(100|[0-9]{1,2})%$/.test(C)||/^([0-9])+ms$/.test(C)}}; +eqx.prototype.setTime=function(C,b,h){b=="ms"?(this.N=C,this.X=-1):(this.N=-1,this.X=C);this.G=h===void 0?"tos":h;return this};g.S(IO,oO);IO.prototype.getId=function(){return this.J}; +IO.prototype.W=function(){return!0}; +IO.prototype.j=function(C){var b=C.i5(),h=C.getDuration();return i3(this.L,function(N){if(N.j!=void 0)var p=atW(N,b);else b:{switch(N.G){case "mtos":p=N.K?b.G.N:b.N.j;break b;case "tos":p=N.K?b.G.j:b.N.j;break b}p=0}p==0?N=!1:(N=N.N!=-1?N.N:h!==void 0&&h>0?N.X*h:-1,N=N!=-1&&p>=N);return N})};g.S(xS,Y9S);xS.prototype.j=function(C){var b=new Z0l;b.j=LT(C,E_D);b.K=LT(C,tVE);return b};g.S(wh,oO);wh.prototype.j=function(C){return H0l(C)};g.S(CU,GSl);g.S(bp,oO);bp.prototype.j=function(C){return C.i5().I_()};g.S(h5,FF);h5.prototype.j=function(C){var b=g.xI(this.J,jf(uP().aV,"ovms"));return!C.zS&&(C.Ys!=0||b)};g.S(Nv,CU);Nv.prototype.K=function(){return new h5(this.j)}; +Nv.prototype.N=function(){return[new bp("viewable_impression",this.j),new wh(this.j)]};g.S(gl,$S);gl.prototype.X=function(){var C=g.Dx("ima.admob.getViewability"),b=jf(this.aV,"queryid");typeof C==="function"&&b&&C(b)}; +gl.prototype.getName=function(){return"gsv"};g.S(pU,Oo);pU.prototype.getName=function(){return"gsv"}; +pU.prototype.ez=function(){var C=JV();uP();return C.K&&!1}; +pU.prototype.OC=function(C,b,h){return new gl(this.j,b,h)};g.S(PD,$S);PD.prototype.X=function(){var C=this,b=g.Dx("ima.bridge.getNativeViewability"),h=jf(this.aV,"queryid");typeof b==="function"&&h&&b(h,function(N){g.yT(N)&&C.J++;var p=N.opt_nativeViewVisibleBounds||{},P=N.opt_nativeViewHidden;C.j=qAW(N.opt_nativeViewBounds||{});var c=C.K.X;c.j=P?Too.clone():qAW(p);C.timestamp=N.opt_nativeTime||-1;JV().j=c.j;N=N.opt_nativeVolume;N!==void 0&&(c.volume=N)})}; +PD.prototype.getName=function(){return"nis"};g.S(cD,Oo);cD.prototype.getName=function(){return"nis"}; +cD.prototype.ez=function(){var C=JV();uP();return C.K&&!1}; +cD.prototype.OC=function(C,b,h){return new PD(this.j,b,h)};g.S(kn,Uo);g.k=kn.prototype;g.k.VS=function(){return this.K.vK!=null}; +g.k.DI=function(){var C={};this.Qz&&(C.mraid=this.Qz);this.nO&&(C.mlc=1);C.mtop=this.K.K3p;this.J&&(C.mse=this.J);this.Df&&(C.msc=1);C.mcp=this.K.compatibility;return C}; +g.k.Sc=function(C){var b=g.ro.apply(1,arguments);try{return this.K.vK[C].apply(this.K.vK,b)}catch(h){E4(538,h,.01,function(N){N.method=C})}}; +g.k.initialize=function(){var C=this;if(this.isInitialized)return!this.MQ();this.isInitialized=!0;if(this.K.compatibility===2)return this.J="ng",this.wi("w"),!1;if(this.K.compatibility===1)return this.J="mm",this.wi("w"),!1;JV().L=!0;this.N.document.readyState&&this.N.document.readyState=="complete"?Gbl(this):CT(this.N,"load",function(){rg().setTimeout(Wb(292,function(){return Gbl(C)}),100)},292); +return!0}; +g.k.BN=function(){var C=JV(),b=Vfl(this,"getMaxSize");C.j=new xu(0,b.width,b.height,0)}; +g.k.Zh=function(){JV().X=Vfl(this,"getScreenSize")}; +g.k.dispose=function(){$_U(this);Uo.prototype.dispose.call(this)};var Ttl=new function(C,b){this.key=C;this.defaultValue=b===void 0?!1:b;this.valueType="boolean"}("45378663");g.k=LU.prototype;g.k.ew=function(C){gh(C,!1);d4K(C)}; +g.k.Ub=function(){}; +g.k.xD=function(C,b,h,N){var p=this;C=new H_(Yu,C,h?b:-1,7,this.Qe(),this.yJ());C.Wi=N;FrU(C.aV);Pb(C.aV,"queryid",C.Wi);C.Kp("");PbV(C,function(){return p.Iw.apply(p,g.M(g.ro.apply(0,arguments)))},function(){return p.sfh.apply(p,g.M(g.ro.apply(0,arguments)))}); +(N=Ag(RO).j)&&hh6(C,N);this.N&&(C.XP(this.N),this.N=null);C.H$.BO&&Ag(wuc);return C}; +g.k.We=function(C){switch(C.L$()){case 0:if(C=Ag(RO).j)C=C.j,g.Cs(C.G,this),C.V&&this.U1()&&inl(C);Yn();break;case 2:dh()}}; +g.k.g_=function(){}; +g.k.U1=function(){return!1}; +g.k.sfh=function(C,b){C.zS=!0;switch(C.nT()){case 1:ygl(C,b);break;case 2:this.Wu(C)}}; +g.k.y4h=function(C){var b=C.J(C);b&&(b=b.volume,C.Vz=md(b)&&b>0);q9x(C,0);return AH(C,"start",Ru())}; +g.k.al=function(C,b,h){W_(DR,[C],!Ru());return this.RR(C,b,h)}; +g.k.RR=function(C,b,h){return AH(C,h,Ru())}; +g.k.afO=function(C){return Sa(C,"firstquartile",1)}; +g.k.HOO=function(C){C.Yh=!0;return Sa(C,"midpoint",2)}; +g.k.Mpf=function(C){return Sa(C,"thirdquartile",3)}; +g.k.ohi=function(C){var b=Sa(C,"complete",4);V1(C);return b}; +g.k.GiD=function(C){C.Ys=3;return AH(C,"error",Ru())}; +g.k.S3=function(C,b,h){b=Ru();if(C.eJ()&&!b){var N=C.i5(),p=n9();N.L=p}W_(DR,[C],!b);C.eJ()&&(C.Ys=1);return AH(C,h,b)}; +g.k.Qff=function(C,b){b=this.al(C,b||{},"skip");V1(C);return b}; +g.k.D2E=function(C,b){gh(C,!0);return this.al(C,b||{},"fullscreen")}; +g.k.EhD=function(C,b){gh(C,!1);return this.al(C,b||{},"exitfullscreen")}; +g.k.Pa=function(C,b,h){b=C.i5();var N=n9();b.t4=lA(b,N,C.Ys!=1);W_(DR,[C],!Ru());C.Ys==1&&(C.Ys=2);return AH(C,h,Ru())}; +g.k.J4O=function(C){W_(DR,[C],!Ru());return C.K()}; +g.k.qR=function(C){W_(DR,[C],!Ru());this.cD(C);V1(C);return C.K()}; +g.k.Iw=function(){}; +g.k.Wu=function(){}; +g.k.cD=function(){}; +g.k.RU=function(){}; +g.k.ye=function(){}; +g.k.yJ=function(){this.j||(this.j=this.ye());return this.j==null?new GW:new Nv(this.j)}; +g.k.Qe=function(){return new xS};g.S($n,oO);$n.prototype.j=function(C){return C.Eb()==4};g.S(zq,FF);zq.prototype.j=function(C){C=C.Eb();return C==3||C==4};g.S(HD,CU);HD.prototype.K=function(){return new zq(this.j)}; +HD.prototype.N=function(){return[new $n(this.j)]};g.S(Vw,Y9S);Vw.prototype.j=function(C){C&&(C.e===28&&(C=Object.assign({},C,{avas:3})),C.vs===4||C.vs===5)&&(C=Object.assign({},C,{vs:3}));var b=new Z0l;b.j=LT(C,n_j);b.K=LT(C,tVE);return b};uVo.prototype.K=function(){return g.Dx(this.j)};g.S(Mv,LU);g.k=Mv.prototype;g.k.Ub=function(C,b){var h=this,N=Ag(RO);if(N.j!=null)switch(N.j.getName()){case "nis":var p=XbK(this,C,b);break;case "gsv":p=U_c(this,C,b);break;case "exc":p=KIx(this,C)}p||(b.opt_overlayAdElement?p=void 0:b.opt_adElement&&(p=i9c(this,C,b.opt_adElement,b.opt_osdId)));p&&p.nT()==1&&(p.J==g.Zh&&(p.J=function(P){return h.RU(P)}),QWU(this,p,b)); +return p}; +g.k.RU=function(C){C.K=0;C.q2=0;if(C.X=="h"||C.X=="n"){uP();C.m6&&(uP(),Fp(this)!="h"&&Fp(this));var b=g.Dx("ima.common.getVideoMetadata");if(typeof b==="function")try{var h=b(C.Wi)}catch(p){C.K|=4}else C.K|=2}else if(C.X=="b")if(b=g.Dx("ytads.bulleit.getVideoMetadata"),typeof b==="function")try{h=b(C.Wi)}catch(p){C.K|=4}else C.K|=2;else if(C.X=="ml")if(b=g.Dx("ima.common.getVideoMetadata"),typeof b==="function")try{h=b(C.Wi)}catch(p){C.K|=4}else C.K|=2;else C.K|=1;C.K||(h===void 0?C.K|=8:h===null? +C.K|=16:g.yT(h)?C.K|=32:h.errorCode!=null&&(C.q2=h.errorCode,C.K|=64));h==null&&(h={});b=h;C.L=0;for(var N in slI)b[N]==null&&(C.L|=slI[N]);Jgl(b,"currentTime");Jgl(b,"duration");md(h.volume)&&md()&&(h.volume*=NaN);return h}; +g.k.ye=function(){uP();Fp(this)!="h"&&Fp(this);var C=sW6(this);return C!=null?new uVo(C):null}; +g.k.Wu=function(C){!C.j&&C.zS&&Gq(this,C,"overlay_unmeasurable_impression")&&(C.j=!0)}; +g.k.cD=function(C){C.qt&&(C.I_()?Gq(this,C,"overlay_viewable_end_of_session_impression"):Gq(this,C,"overlay_unviewable_impression"),C.qt=!1)}; +g.k.Iw=function(){}; +g.k.xD=function(C,b,h,N){if(BtW()){var p=jf(uP().aV,"mm"),P={};(p=(P[RW.F4]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",P[RW.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",P)[p])&&d_U(this,p);this.X==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&E4(1044,Error())}C=LU.prototype.xD.call(this,C,b,h,N);this.G&&(b=this.W,C.G==null&&(C.G=new j3o),b.j[C.Wi]=C.G,C.G.G=Bod);return C}; +g.k.ew=function(C){C&&C.nT()==1&&this.G&&delete this.W.j[C.Wi];return LU.prototype.ew.call(this,C)}; +g.k.yJ=function(){this.j||(this.j=this.ye());return this.j==null?new GW:this.X==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new HD(this.j):new Nv(this.j)}; +g.k.Qe=function(){return this.X==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new Vw:new xS}; +g.k.XP=function(C,b,h,N,p){b=new xu(h,b+N,h+p,b);(C=iA(JH,C))?C.XP(b):this.N=b}; +var IxI=dg(193,EuW,void 0,rgV);g.Ol("Goog_AdSense_Lidar_sendVastEvent",IxI);var xWp=Wb(194,function(C,b){b=b===void 0?{}:b;C=D_l(Ag(Mv),C,b);return WIU(C)}); +g.Ol("Goog_AdSense_Lidar_getViewability",xWp);var w1h=dg(195,function(){return dRH()}); +g.Ol("Goog_AdSense_Lidar_getUrlSignalsArray",w1h);var CCE=Wb(196,function(){return JSON.stringify(dRH())}); +g.Ol("Goog_AdSense_Lidar_getUrlSignalsList",CCE);var nux=(new Date("2024-01-01T00:00:00Z")).getTime();var Bgo=jlW(["//tpc.googlesyndication.com/sodar/",""]);g.S(J5,g.O);J5.prototype.Nv=function(){return this.wpc.f()}; +J5.prototype.HJ=function(C){this.wpc.c(C)}; +J5.prototype.BY=function(C){return this.wpc.m(C3o(C))}; +J5.prototype.ZQ=function(C){return this.wpc.mws(C3o(C))}; +g.S(A5,g.O);A5.prototype.snapshot=function(C){return this.eh.s(Object.assign({},C.Kf&&{c:C.Kf},C.qV&&{s:C.qV},C.G4!==void 0&&{p:C.G4}))}; +A5.prototype.zs=function(C){this.eh.e(C)}; +A5.prototype.zq=function(){return this.eh.l()};var w_U=(new Date).getTime();var Na6="://secure-...imrworldwide.com/ ://cdn.imrworldwide.com/ ://aksecure.imrworldwide.com/ ://[^.]*.moatads.com ://youtube[0-9]+.moatpixel.com ://pm.adsafeprotected.com/youtube ://pm.test-adsafeprotected.com/youtube ://e[0-9]+.yt.srs.doubleverify.com www.google.com/pagead/xsul www.youtube.com/pagead/slav".split(" "),gXV=/\bocr\b/;var P3x=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var HVc=0,zM_=0,Vu6=0;var Qw=null,Xp=!1,oXK=1,Oe=Symbol("SIGNAL"),vD={version:0,r$$:0,rh:!1,H2:void 0,vP:void 0,gf:void 0,Rq:0,SL:void 0,oX:void 0,sQ:!1,D0:!1,kind:"unknown",q6:function(){return!1}, +WD:function(){}, +Hq:function(){}, +hJO:function(){}};var YN=Symbol("UNSET"),aq=Symbol("COMPUTING"),lz=Symbol("ERRORED");Object.assign({},vD,{value:YN,rh:!0,error:null,G0:Rb,kind:"computed",q6:function(C){return C.value===YN||C.value===aq}, +WD:function(C){if(C.value===aq)throw Error("Detected cycle in computations.");var b=C.value;C.value=aq;var h=kVK(C),N=!1;try{var p=C.Lo();Ue(null);N=b!==YN&&b!==lz&&p!==lz&&C.G0(b,p)}catch(P){p=lz,C.error=P}finally{eMo(C,h)}N?C.value=b:(C.value=p,C.version++)}});var av1=Object.assign({},vD,{G0:Rb,value:void 0,kind:"signal"});Object.assign({},vD,{value:YN,rh:!0,error:null,G0:Rb,q6:function(C){return C.value===YN||C.value===aq}, +WD:function(C){if(C.value===aq)throw Error("Detected cycle in computations.");var b=C.value;C.value=aq;var h=kVK(C);try{var N=C.source();var p=C.Lo(N,b===YN||b===lz?void 0:{source:C.B0z,value:b});C.B0z=N}catch(P){p=lz,C.error=P}finally{eMo(C,h)}b!==YN&&p!==lz&&C.G0(b,p)?C.value=b:(C.value=p,C.version++)}});Object.assign({},vD,{D0:!0,sQ:!1,Hq:function(C){C.schedule!==null&&C.schedule(C.KA2)}, +x$E:!1,QRD:function(){}});GVW(!0);GVW(!1);var SoS=Object.assign({},{attributes:{},handleError:function(C){throw C;}},{CxD:!0, +iT$:!0,bB:!1,M46:!1,GIf:!1,ftE:!1,bTX:ytK});var Mul=Symbol("updater");g.S(dl,g.wQ);dl.prototype.dispose=function(){window.removeEventListener("offline",this.N);window.removeEventListener("online",this.N);this.OS.E2(this.G);delete dl.instance}; +dl.prototype.c6=function(){return this.j}; +dl.prototype.r9=function(){var C=this;this.G=this.OS.Vy(function(){var b;return g.R(function(h){if(h.j==1)return C.j?((b=window.navigator)==null?0:b.onLine)?h.WE(3):g.J(h,Db(C),3):g.J(h,Db(C),3);C.r9();g.$_(h)})},3E4)};Ee.prototype.set=function(C,b){b=b===void 0?!0:b;0<=C&&C<52&&Number.isInteger(C)&&this.data[C]!==b&&(this.data[C]=b,this.j=-1)}; +Ee.prototype.get=function(C){return!!this.data[C]};var t5;g.ho(g.wl,g.O);g.k=g.wl.prototype;g.k.start=function(){this.stop();this.X=!1;var C=AV6(this),b=yVW(this);C&&!b&&this.K.mozRequestAnimationFrame?(this.j=g.D6(this.K,"MozBeforePaint",this.N),this.K.mozRequestAnimationFrame(null),this.X=!0):this.j=C&&b?C.call(this.K,this.N):this.K.setTimeout(nAc(this.N),20)}; +g.k.stop=function(){if(this.isActive()){var C=AV6(this),b=yVW(this);C&&!b&&this.K.mozRequestAnimationFrame?BP(this.j):C&&b?b.call(this.K,this.j):this.K.clearTimeout(this.j)}this.j=null}; +g.k.isActive=function(){return this.j!=null}; +g.k.My=function(){this.X&&this.j&&BP(this.j);this.j=null;this.W.call(this.G,g.bC())}; +g.k.wO=function(){this.stop();g.wl.Re.wO.call(this)};g.ho(g.C2,g.O);g.k=g.C2.prototype;g.k.O5=0;g.k.wO=function(){g.C2.Re.wO.call(this);this.stop();delete this.j;delete this.K}; +g.k.start=function(C){this.stop();this.O5=g.MR(this.N,C!==void 0?C:this.Zo)}; +g.k.stop=function(){this.isActive()&&g.sl.clearTimeout(this.O5);this.O5=0}; +g.k.isActive=function(){return this.O5!=0}; +g.k.xa=function(){this.O5=0;this.j&&this.j.call(this.K)};g.gM.prototype[Symbol.iterator]=function(){return this}; +g.gM.prototype.next=function(){var C=this.j.next();return{value:C.done?void 0:this.K.call(void 0,C.value),done:C.done}};g.ho(g.Yb,g.wQ);g.k=g.Yb.prototype;g.k.isPlaying=function(){return this.j==1}; +g.k.isPaused=function(){return this.j==-1}; +g.k.DS=function(){this.hs("begin")}; +g.k.dg=function(){this.hs("end")}; +g.k.onFinish=function(){this.hs("finish")}; +g.k.onStop=function(){this.hs("stop")}; +g.k.hs=function(C){this.dispatchEvent(C)};var bdj=YE(function(){var C=g.CM("DIV"),b=g.BE?"-webkit":YX?"-moz":null,h="transition:opacity 1s linear;";b&&(h+=b+"-transition:opacity 1s linear;");b=CBS({style:h});if(C.nodeType===1&&/^(script|style)$/i.test(C.tagName))throw Error("");C.innerHTML=Xn(b);return g.au(C.firstChild,"transition")!=""});g.ho(a2,g.Yb);g.k=a2.prototype;g.k.play=function(){if(this.isPlaying())return!1;this.DS();this.hs("play");this.startTime=g.bC();this.j=1;if(bdj())return g.Zv(this.K,this.W),this.N=g.MR(this.bKE,void 0,this),!0;this.N0(!1);return!1}; +g.k.bKE=function(){g.Vx(this.K);JVl(this.K,this.J);g.Zv(this.K,this.X);this.N=g.MR((0,g.x_)(this.N0,this,!1),this.G*1E3)}; +g.k.stop=function(){this.isPlaying()&&this.N0(!0)}; +g.k.N0=function(C){g.Zv(this.K,"transition","");g.sl.clearTimeout(this.N);g.Zv(this.K,this.X);this.endTime=g.bC();this.j=0;if(C)this.onStop();else this.onFinish();this.dg()}; +g.k.wO=function(){this.stop();a2.Re.wO.call(this)}; +g.k.pause=function(){};var RM6={rgb:!0,rgba:!0,alpha:!0,rect:!0,image:!0,"linear-gradient":!0,"radial-gradient":!0,"repeating-linear-gradient":!0,"repeating-radial-gradient":!0,"cubic-bezier":!0,matrix:!0,perspective:!0,rotate:!0,rotate3d:!0,rotatex:!0,rotatey:!0,steps:!0,rotatez:!0,scale:!0,scale3d:!0,scalex:!0,scaley:!0,scalez:!0,skew:!0,skewx:!0,skewy:!0,translate:!0,translate3d:!0,translatex:!0,translatey:!0,translatez:!0};le("Element","attributes")||le("Node","attributes");le("Element","innerHTML")||le("HTMLElement","innerHTML");le("Node","nodeName");le("Node","nodeType");le("Node","parentNode");le("Node","childNodes");le("HTMLElement","style")||le("Element","style");le("HTMLStyleElement","sheet");var OVc=UTl("getPropertyValue"),vXH=UTl("setProperty");le("Element","namespaceURI")||le("Node","namespaceURI");var sul={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var EXK,$tU,Wdl,dTc,nXl;EXK=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]");$tU=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.hEh=RegExp("^[^\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]*[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"); +g.FY=RegExp("^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");Wdl=/^http:\/\/.*/;g.NDh=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");dTc=/\s+/;nXl=/[\d\u06f0-\u06f9]/;S6.prototype.x7=function(){return new $b(this.K())}; +S6.prototype[Symbol.iterator]=function(){return new zj(this.K())}; +S6.prototype.j=function(){return new zj(this.K())}; +g.S($b,g.pT);$b.prototype.next=function(){return this.K.next()}; +$b.prototype[Symbol.iterator]=function(){return new zj(this.K)}; +$b.prototype.j=function(){return new zj(this.K)}; +g.S(zj,S6);zj.prototype.next=function(){return this.N.next()};VE.prototype.clone=function(){return new VE(this.j,this.J,this.N,this.G,this.X,this.W,this.K,this.L)}; +VE.prototype.y8=function(C){return this.j==C.j&&this.J==C.J&&this.N==C.N&&this.G==C.G&&this.X==C.X&&this.W==C.W&&this.K==C.K&&this.L==C.L};qM.prototype.clone=function(){return new qM(this.start,this.end)}; +qM.prototype.getLength=function(){return this.end-this.start};(function(){if(ywS){var C=/Windows NT ([0-9.]+)/;return(C=C.exec(g.iC()))?C[1]:"0"}return Wp?(C=/1[0|1][_.][0-9_.]+/,(C=C.exec(g.iC()))?C[0].replace(/_/g,"."):"10"):g.Cp?(C=/Android\s+([^\);]+)(\)|;)/,(C=C.exec(g.iC()))?C[1]:""):JtH||uHU||R$l?(C=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(C=C.exec(g.iC()))?C[1].replace(/_/g,"."):""):""})();var Tac=function(){if(g.i8)return mX(/Firefox\/([0-9.]+)/);if(g.o2||g.BG||g.Ga)return kec;if(g.yX){if(EE()||nd()){var C=mX(/CriOS\/([0-9.]+)/);if(C)return C}return mX(/Chrome\/([0-9.]+)/)}if(g.$1&&!EE())return mX(/Version\/([0-9.]+)/);if(If||xG){if(C=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.iC()))return C[1]+"."+C[2]}else if(g.SR)return(C=mX(/Android\s+([0-9.]+)/))?C:mX(/Version\/([0-9.]+)/);return""}();g.ho(g.AZ,g.O);g.k=g.AZ.prototype;g.k.subscribe=function(C,b,h){var N=this.K[C];N||(N=this.K[C]=[]);var p=this.W;this.j[p]=C;this.j[p+1]=b;this.j[p+2]=h;this.W=p+3;N.push(p);return p}; +g.k.unsubscribe=function(C,b,h){if(C=this.K[C]){var N=this.j;if(C=C.find(function(p){return N[p+1]==b&&N[p+2]==h}))return this.v2(C)}return!1}; +g.k.v2=function(C){var b=this.j[C];if(b){var h=this.K[b];this.X!=0?(this.N.push(C),this.j[C+1]=function(){}):(h&&g.Cs(h,C),delete this.j[C],delete this.j[C+1],delete this.j[C+2])}return!!b}; +g.k.publish=function(C,b){var h=this.K[C];if(h){var N=Array(arguments.length-1),p=arguments.length,P;for(P=1;P0&&this.X==0)for(;h=this.N.pop();)this.v2(h)}}return P!=0}return!1}; +g.k.clear=function(C){if(C){var b=this.K[C];b&&(b.forEach(this.v2,this),delete this.K[C])}else this.j.length=0,this.K={}}; +g.k.wO=function(){g.AZ.Re.wO.call(this);this.clear();this.N.length=0};g.yE.prototype.set=function(C,b){b===void 0?this.j.remove(C):this.j.set(C,g.Ae(b))}; +g.yE.prototype.get=function(C){try{var b=this.j.get(C)}catch(h){return}if(b!==null)try{return JSON.parse(b)}catch(h){throw"Storage: Invalid value was encountered";}}; +g.yE.prototype.remove=function(C){this.j.remove(C)};g.ho(rM,g.yE);rM.prototype.set=function(C,b){rM.Re.set.call(this,C,xTo(b))}; +rM.prototype.K=function(C){C=rM.Re.get.call(this,C);if(C===void 0||C instanceof Object)return C;throw"Storage: Invalid value was encountered";}; +rM.prototype.get=function(C){if(C=this.K(C)){if(C=C.data,C===void 0)throw"Storage: Invalid value was encountered";}else C=void 0;return C};g.ho(ie,rM);ie.prototype.set=function(C,b,h){if(b=xTo(b)){if(h){if(h=h.length)return g.kN;var p=h.key(b++);if(C)return g.P_(p);p=h.getItem(p);if(typeof p!=="string")throw"Storage mechanism: Invalid value was encountered";return g.P_(p)}; +return N}; +g.k.clear=function(){QE(this);this.j.clear()}; +g.k.key=function(C){QE(this);return this.j.key(C)};g.ho(Uj,R2);g.ho(bTl,R2);g.ho(XY,ue);XY.prototype.set=function(C,b){this.K.set(this.j+C,b)}; +XY.prototype.get=function(C){return this.K.get(this.j+C)}; +XY.prototype.remove=function(C){this.K.remove(this.j+C)}; +XY.prototype.x7=function(C){var b=this.K[Symbol.iterator](),h=this,N=new g.pT;N.next=function(){var p=b.next();if(p.done)return p;for(p=p.value;p.slice(0,h.j.length)!=h.j;){p=b.next();if(p.done)return p;p=p.value}return g.P_(C?p.slice(h.j.length):h.K.get(p))}; +return N};sj.prototype.getValue=function(){return this.K}; +sj.prototype.clone=function(){return new sj(this.j,this.K)};g.k=Oj.prototype;g.k.P6=function(C,b){var h=this.j;h.push(new sj(C,b));C=h.length-1;b=this.j;for(h=b[C];C>0;){var N=C-1>>1;if(b[N].j>h.j)b[C]=b[N],C=N;else break}b[C]=h}; +g.k.remove=function(){var C=this.j,b=C.length,h=C[0];if(!(b<=0)){if(b==1)C.length=0;else{C[0]=C.pop();C=0;b=this.j;for(var N=b.length,p=b[C];C>1;){var P=C*2+1,c=C*2+2;P=cp.j)break;b[C]=b[P];C=P}b[C]=p}return h.getValue()}}; +g.k.hj=function(){for(var C=this.j,b=[],h=C.length,N=0;N>>16&65535|0;for(var P;h!==0;){P=h>2E3?2E3:h;h-=P;do p=p+b[N++]|0,C=C+p|0;while(--P);p%=65521;C%=65521}return p|C<<16|0};for(var oo={},oq,co$=[],FU=0;FU<256;FU++){oq=FU;for(var keC=0;keC<8;keC++)oq=oq&1?3988292384^oq>>>1:oq>>>1;co$[FU]=oq}oo=function(C,b,h,N){h=N+h;for(C^=-1;N>>8^co$[(C^b[N])&255];return C^-1};var PC={};PC={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"};var wM=[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],hh=[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],MrW=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],YUH=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],es=Array(576);W4(es);var Le=Array(60);W4(Le);var bH=Array(512);W4(bH);var xb=Array(256);W4(xb);var Ce=Array(29);W4(Ce);var NJ=Array(30);W4(NJ);var zec,HT1,VrS,$1l=!1;var zf;zf=[new $t(0,0,0,0,function(C,b){var h=65535;for(h>C.k7-5&&(h=C.k7-5);;){if(C.T$<=1){FZ(C);if(C.T$===0&&b===0)return 1;if(C.T$===0)break}C.q8+=C.T$;C.T$=0;var N=C.MZ+h;if(C.q8===0||C.q8>=N)if(C.T$=C.q8-N,C.q8=N,ZO(C,!1),C.g9.ID===0)return 1;if(C.q8-C.MZ>=C.Hi-262&&(ZO(C,!1),C.g9.ID===0))return 1}C.P6=0;if(b===4)return ZO(C,!0),C.g9.ID===0?3:4;C.q8>C.MZ&&ZO(C,!1);return 1}), +new $t(4,4,8,4,Gf),new $t(4,5,16,8,Gf),new $t(4,6,32,32,Gf),new $t(4,4,16,16,Ss),new $t(8,16,32,32,Ss),new $t(8,16,128,128,Ss),new $t(8,32,128,256,Ss),new $t(32,128,258,1024,Ss),new $t(32,258,258,4096,Ss)];var SUl={};SUl=function(){this.input=null;this.Su=this.ri=this.tM=0;this.output=null;this.YQ=this.ID=this.dF=0;this.msg="";this.state=null;this.pC=2;this.H7=0};var qUc=Object.prototype.toString; +HC.prototype.push=function(C,b){var h=this.g9,N=this.options.chunkSize;if(this.ended)return!1;var p=b===~~b?b:b===!0?4:0;typeof C==="string"?h.input=hel(C):qUc.call(C)==="[object ArrayBuffer]"?h.input=new Uint8Array(C):h.input=C;h.tM=0;h.ri=h.input.length;do{h.ID===0&&(h.output=new dM.TZ(N),h.dF=0,h.ID=N);C=GW6(h,p);if(C!==1&&C!==0)return this.dg(C),this.ended=!0,!1;if(h.ID===0||h.ri===0&&(p===4||p===2))if(this.options.jT==="string"){var P=dM.dB(h.output,h.dF);b=P;P=P.length;if(P<65537&&(b.subarray&& +jdC||!b.subarray))b=String.fromCharCode.apply(null,dM.dB(b,P));else{for(var c="",e=0;e0||h.ID===0)&&C!==1);if(p===4)return(h=this.g9)&&h.state?(N=h.state.status,N!==42&&N!==69&&N!==73&&N!==91&&N!==103&&N!==113&&N!==666?C=js(h,-2):(h.state=null,C=N===113?js(h,-3):0)):C=-2,this.dg(C),this.ended=!0,C===0;p===2&&(this.dg(0),h.ID=0);return!0}; +HC.prototype.dg=function(C){C===0&&(this.result=this.options.jT==="string"?this.chunks.join(""):dM.wZ(this.chunks));this.chunks=[];this.err=C;this.msg=this.g9.msg};var MJ="@@redux/INIT"+VS(),iTc="@@redux/REPLACE"+VS();var JHo=typeof Symbol==="function"&&Symbol.observable||"@@observable";var eEp=[0,axj,-3,pK];g.S(fe,X4);fe.prototype.getType=function(){return lB(this,11)};var niW=function(){var C=[0,o_0,lxj,bz,axj,bz,-1,pK,axj,pK,-1,o_0,pK,lxj,hr,eEp,bz,-1,pK];return function(b,h){if(CK.length){var N=CK.pop();is1(N,h);N.j.init(b,void 0,void 0,h);b=N}else b=new iB(b,h);try{var p=new fe,P=p.Xq;g2(C)(P,b);var c=p}finally{b.free()}return c}}();var U1W=1114057495;var Tmo=new g.Ah("adInfoDialogEndpoint");var aLS=new g.Ah("adPingingEndpoint");var RiV=new g.Ah("crossDeviceProgressCommand");var xg=new g.Ah("actionCompanionAdRenderer");var c9=new g.Ah("adActionInterstitialRenderer");var Lhd=new g.Ah("adDurationRemainingRenderer");var fG=new g.Ah("adHoverTextButtonRenderer");var n11=new g.Ah("adInfoDialogRenderer");var kD=new g.Ah("adMessageRenderer");var Aa=new g.Ah("adPreviewRenderer");var CG=new g.Ah("adsEngagementPanelRenderer");var jMK=new g.Ah("dismissablePanelTextPortraitImageRenderer");var pNW=new g.Ah("adsEngagementPanelSectionListViewModel");var ZdD=new g.Ah("flyoutCtaRenderer");var wq=new g.Ah("imageCompanionAdRenderer");var P9=new g.Ah("instreamAdPlayerOverlayRenderer");var sr_=new g.Ah("instreamSurveyAdBackgroundImageRenderer");var mD=new g.Ah("instreamSurveyAdPlayerOverlayRenderer");var FQ=new g.Ah("instreamSurveyAdRenderer"),qx=new g.Ah("instreamSurveyAdSingleSelectQuestionRenderer"),Mx=new g.Ah("instreamSurveyAdMultiSelectQuestionRenderer"),GR=new g.Ah("instreamSurveyAdAnswerRenderer"),YEj=new g.Ah("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var lE=new g.Ah("instreamVideoAdRenderer");var aUE=new g.Ah("textOverlayAdContentRenderer"),lUD=new g.Ah("enhancedTextOverlayAdContentRenderer"),oIC=new g.Ah("imageOverlayAdContentRenderer");var jZ=new g.Ah("playerOverlayLayoutRenderer");var k2=new g.Ah("videoInterstitialButtonedCenteredLayoutRenderer");var ZDU=new g.Ah("aboveFeedAdLayoutRenderer");var YTV=new g.Ah("belowPlayerAdLayoutRenderer");var LW_=new g.Ah("inPlayerAdLayoutRenderer");var $V=new g.Ah("playerBytesAdLayoutRenderer");var afW=new g.Ah("playerBytesSequenceItemAdLayoutRenderer");var VM=new g.Ah("playerUnderlayAdLayoutRenderer");var oj=new g.Ah("adIntroRenderer");var jF=new g.Ah("playerBytesSequentialLayoutRenderer");var nrl=new g.Ah("slidingTextPlayerOverlayRenderer");var GL=new g.Ah("surveyTextInterstitialRenderer");var lf_=new g.Ah("videoAdTrackingRenderer");var Fhp=new g.Ah("simpleAdBadgeRenderer");var hv=new g.Ah("skipAdRenderer"),GeI=new g.Ah("skipButtonRenderer");var Ja=new g.Ah("adSlotRenderer");var zL=new g.Ah("squeezebackPlayerSidePanelRenderer");var SEE=new g.Ah("timedPieCountdownRenderer");var dy=new g.Ah("adAvatarViewModel");var Wy=new g.Ah("adBadgeViewModel");var Ef=new g.Ah("adButtonViewModel");var $pC=new g.Ah("adDetailsLineViewModel");var zEe=new g.Ah("adDisclosureBannerViewModel");var HdC=new g.Ah("adPodIndexViewModel");var VDE=new g.Ah("imageBackgroundViewModel");var MDj=new g.Ah("adGridCardCollectionViewModel");var qEC=new g.Ah("adGridCardTextViewModel");var mpj=new g.Ah("adPreviewViewModel");var fUe=new g.Ah("playerAdAvatarLockupCardButtonedViewModel");var Aod=new g.Ah("skipAdButtonViewModel");var yod=new g.Ah("skipAdViewModel");var roD=new g.Ah("timedPieCountdownViewModel");var idd=new g.Ah("visitAdvertiserLinkViewModel");var bE=new g.Ah("bannerImageLayoutViewModel");var ha=new g.Ah("topBannerImageTextIconButtonedLayoutViewModel");var Nx=new g.Ah("adsEngagementPanelLayoutViewModel");var HA=new g.Ah("displayUnderlayTextGridCardsLayoutViewModel");g.F5=new g.Ah("browseEndpoint");var JoU=new g.Ah("confirmDialogEndpoint");var FJl=new g.Ah("rawColdConfigGroup");var oaW=new g.Ah("rawHotConfigGroup");g.F_=new g.Ah("commandExecutorCommand");g.S(sOU,X4);var IP_={sMh:0,cNi:1,Yap:32,UGf:61,ANf:67,TAf:103,zV2:86,SaD:42,mGE:60,fm$:62,ku$:73,F2E:76,V2$:88,eVp:90,It2:99,ikE:98,Okp:100,L2D:102,vC6:41,jRE:69,Kp4:70,Nf4:71,E7f:2,aZ$:27,ANDROID:3,u8i:54,Sef:14,VQE:91,Ye4:55,mif:24,Fso:20,Lso:18,UiX:21,P1$:104,OZz:30,vwD:29,jFD:28,JN$:101,Kuz:34,ezX:36,kxo:38,IOS:5,W0f:15,yCo:92,s0O:40,GCh:25,EfX:17,aup:19,DZf:64,HI6:66,JCo:26,rC6:22,cC6:33,h4z:68,fuh:35,Q06:53,MX6:37,of6:39,jMo:7,K2p:57,NAh:43,wKz:59,XKh:93,Ioi:74,BAp:75,Zki:85,ndD:65,xGz:80,dGO:8,Im2:10, +W2X:58,qap:63,RV6:72,ATE:23,Bfh:11,ZTp:13,fo4:12,vdi:16,uho:56,PWf:31,sID:77,S2i:84,gdO:87,mUX:89,Y26:94,jIz:95};g.S(yS,X4);yS.prototype.Ey=function(){return ay(this,3)}; +yS.prototype.M3=function(){return ay(this,5)}; +yS.prototype.p6=function(C){return F4(this,5,C)};g.S(rW,X4);g.S(OT6,X4);g.S(iH,X4);g.k=iH.prototype;g.k.getDeviceId=function(){return ay(this,6)}; +g.k.e7=function(C){var b=nL(this,9,ZD,3,void 0,!0);d$(b,C);return b[C]}; +g.k.getPlayerType=function(){return lB(this,36)}; +g.k.setHomeGroupInfo=function(C){return cJ(this,OT6,81,C)}; +g.k.clearLocationPlayabilityToken=function(){return OW(this,89)};g.S(Jh,X4);Jh.prototype.getValue=function(){return ay(this,N0(this,a7W)===2?2:-1)}; +var a7W=[2,3,4,5,6];g.S(uH,X4);uH.prototype.setTrackingParams=function(C){return OW(this,1,idW(C,!1))};g.S(Ro,X4);g.S(QS,X4);QS.prototype.e7=function(C){var b=nL(this,5,YQ,3,void 0,!0);d$(b,C);return b[C]};g.S(UB,X4);UB.prototype.getToken=function(){return ZB(this,2)}; +UB.prototype.setToken=function(C){return F4(this,2,C)};g.S(XZ,X4);XZ.prototype.setSafetyMode=function(C){return SY(this,5,C)};g.S(Ke,X4);Ke.prototype.pH=function(C){return cJ(this,iH,1,C)};var rb=new g.Ah("thumbnailLandscapePortraitRenderer");g.u0d=new g.Ah("changeEngagementPanelVisibilityAction");var SpH=new g.Ah("continuationCommand");g.REo=new g.Ah("openPopupAction");g.St=new g.Ah("webCommandMetadata");var mxH=new g.Ah("metadataBadgeRenderer");var GoU=new g.Ah("signalServiceEndpoint");var Xt=new g.Ah("innertubeCommand");var PZK=new g.Ah("loggingDirectives");var mvH={dUO:"EMBEDDED_PLAYER_MODE_UNKNOWN",nsi:"EMBEDDED_PLAYER_MODE_DEFAULT",xUz:"EMBEDDED_PLAYER_MODE_PFP",Rto:"EMBEDDED_PLAYER_MODE_PFL"};var wAW=new g.Ah("channelThumbnailEndpoint");var xxH=new g.Ah("embeddedPlayerErrorMessageRenderer");var tFc=new g.Ah("embeddedPlayerOverlayVideoDetailsRenderer"),COH=new g.Ah("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),bSS=new g.Ah("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var VFS=new g.Ah("embedsInfoPanelRenderer");var Qdh=new g.Ah("feedbackEndpoint");var Up$=new g.Ah("callToActionButtonViewModel");var X$I=new g.Ah("interactionLoggingCommandMetadata");var HeV={bk4:"WEB_DISPLAY_MODE_UNKNOWN",pKO:"WEB_DISPLAY_MODE_BROWSER",t2o:"WEB_DISPLAY_MODE_MINIMAL_UI",CW4:"WEB_DISPLAY_MODE_STANDALONE",lmp:"WEB_DISPLAY_MODE_FULLSCREEN"};g.S(sB,X4);sB.prototype.getPlayerType=function(){return lB(this,7)}; +sB.prototype.tb=function(){return ay(this,19)}; +sB.prototype.setVideoId=function(C){return F4(this,19,C)};g.S(OB,X4);g.S(dW,X4);g.S(WC,X4); +var KhI=[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];var sdo=new g.Ah("loggingContext");g.S(EB,X4);g.S(ne,X4);ne.prototype.tb=function(){return ZB(this,N0(this,LZ)===1?1:-1)}; +ne.prototype.setVideoId=function(C){return bB(this,1,LZ,Vr(C))}; +ne.prototype.getPlaylistId=function(){return ZB(this,N0(this,LZ)===2?2:-1)}; +var LZ=[1,2];g.S(vSW,X4);var EF=new g.Ah("changeKeyedMarkersVisibilityCommand");var OdU=new g.Ah("changeMarkersVisibilityCommand");var Aa_=new g.Ah("loadMarkersCommand");var vIe=new g.Ah("suggestedActionDataViewModel");var qsV=new g.Ah("timelyActionViewModel");var MUW=new g.Ah("timelyActionsOverlayViewModel");var yGl=new g.Ah("productListItemRenderer");var Dpe=new g.Ah("shoppingOverlayRenderer");var TbW=new g.Ah("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var dpj=new g.Ah("adFeedbackEndpoint");var Wh$=new g.Ah("menuEndpoint");var df_=new g.Ah("phoneDialerEndpoint");var vFU=new g.Ah("sendSmsEndpoint");var nVo=new g.Ah("copyTextEndpoint");var EIE=new g.Ah("shareEndpoint"),nID=new g.Ah("shareEntityEndpoint"),tDE=new g.Ah("shareEntityServiceEndpoint"),TDU=new g.Ah("webPlayerShareEntityServiceEndpoint");g.UY=new g.Ah("urlEndpoint");g.dF=new g.Ah("watchEndpoint");var BDj=new g.Ah("watchPlaylistEndpoint");g.IUE=new g.Ah("offlineOrchestrationActionCommand");var YCl=new g.Ah("compositeVideoOverlayRenderer");var xpE=new g.Ah("miniplayerRenderer");var WDl=new g.Ah("paidContentOverlayRenderer");var w$e=new g.Ah("playerMutedAutoplayOverlayRenderer"),C7E=new g.Ah("playerMutedAutoplayEndScreenRenderer");var KTW=new g.Ah("unserializedPlayerResponse"),bsd=new g.Ah("unserializedPlayerResponse");var h_C=new g.Ah("playlistEditEndpoint");var $N;g.yM=new g.Ah("buttonRenderer");$N=new g.Ah("toggleButtonRenderer");var grl=new g.Ah("counterfactualRenderer");var N$E=new g.Ah("resolveUrlCommandMetadata");var gsh=new g.Ah("modifyChannelNotificationPreferenceEndpoint");var Yro=new g.Ah("pingingEndpoint");var p5E=new g.Ah("unsubscribeEndpoint");g.Gg=new g.Ah("subscribeButtonRenderer");var P7E=new g.Ah("subscribeEndpoint");var apc=new g.Ah("buttonViewModel");var Pyl=new g.Ah("qrCodeRenderer");var wF1={z4X:"LIVING_ROOM_APP_MODE_UNSPECIFIED",kC$:"LIVING_ROOM_APP_MODE_MAIN",L04:"LIVING_ROOM_APP_MODE_KIDS",UZf:"LIVING_ROOM_APP_MODE_MUSIC",PNp:"LIVING_ROOM_APP_MODE_UNPLUGGED",F0D:"LIVING_ROOM_APP_MODE_GAMING"};var $xK=new g.Ah("autoplaySwitchButtonRenderer");var FJ,oNW,Eg6,fzl;FJ=new g.Ah("decoratedPlayerBarRenderer");oNW=new g.Ah("chapteredPlayerBarRenderer");Eg6=new g.Ah("multiMarkersPlayerBarRenderer");fzl=new g.Ah("chapterRenderer");g.$UU=new g.Ah("markerRenderer");var jIj=new g.Ah("decoratedPlayheadRenderer");var MFc=new g.Ah("desktopOverlayConfigRenderer");var cU6=new g.Ah("engagementPanelSectionListRenderer");var HGW=new g.Ah("gatedActionsOverlayViewModel");var Mtx=new g.Ah("heatMarkerRenderer");var VtW=new g.Ah("heatmapRenderer");var f8l=new g.Ah("watchToWatchTransitionRenderer");var BbK=new g.Ah("playlistPanelRenderer");var cjC=new g.Ah("productUpsellSuggestedActionViewModel");var kQE=new g.Ah("suggestedActionTimeRangeTrigger"),e_E=new g.Ah("suggestedActionsRenderer"),L$I=new g.Ah("suggestedActionRenderer");var qIl=new g.Ah("timedMarkerDecorationRenderer");var kyV=new g.Ah("cipher");var szS=new g.Ah("playerVars");var ZsD=new g.Ah("playerVars");var zR=g.sl.window,Yzp,auD,th=(zR==null?void 0:(Yzp=zR.yt)==null?void 0:Yzp.config_)||(zR==null?void 0:(auD=zR.ytcfg)==null?void 0:auD.data_)||{};g.Ol("yt.config_",th);var xt=[];var x1V=/^[\w.]*$/,trl={q:!0,search_query:!0},nSo=String(hK);var Z1=new function(){var C=window.document;this.j=window;this.K=C}; +g.Ol("yt.ads_.signals_.getAdSignalsString",function(C){return NQ(af(C))});g.bC();var CpU="XMLHttpRequest"in g.sl?function(){return new XMLHttpRequest}:null;var luU="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.M(luU);var gn1={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"},pDH="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(g.M(luU)),Yel=!1,hgS=Ppx,egx=mt;g.S(yv,SD);JK.prototype.then=function(C,b,h){return this.j?this.j.then(C,b,h):this.N===1&&C?(C=C.call(h,this.K))&&typeof C.then==="function"?C:Rf(C):this.N===2&&b?(C=b.call(h,this.K))&&typeof C.then==="function"?C:ua(C):this}; +JK.prototype.getValue=function(){return this.K}; +JK.prototype.$goog_Thenable=!0;var Qv=!1;var Tn=If||xG;var Mal=/^([0-9\.]+):([0-9\.]+)$/;g.S(Ya,SD);Ya.prototype.name="BiscottiError";g.S(Z7,SD);Z7.prototype.name="BiscottiMissingError";var A5c={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},a1=null;var mAS=jlW(["data-"]),XDW={};var oso=0,lU=g.BE?"webkit":YX?"moz":g.o2?"ms":g.Ga?"o":"",F$C=g.Dx("ytDomDomGetNextId")||function(){return++oso}; +g.Ol("ytDomDomGetNextId",F$C);var vnU={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};zm.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; +zm.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; +zm.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Hj=g.sl.ytEventsEventsListeners||{};g.Ol("ytEventsEventsListeners",Hj);var WOU=g.sl.ytEventsEventsCounter||{count:0};g.Ol("ytEventsEventsCounter",WOU);var Tll=YE(function(){var C=!1;try{var b=Object.defineProperty({},"passive",{get:function(){C=!0}}); +window.addEventListener("test",null,b)}catch(h){}return C}),En_=YE(function(){var C=!1; +try{var b=Object.defineProperty({},"capture",{get:function(){C=!0}}); +window.addEventListener("test",null,b)}catch(h){}return C});var H2;H2=window;g.Ai=H2.ytcsi&&H2.ytcsi.now?H2.ytcsi.now:H2.performance&&H2.performance.timing&&H2.performance.now&&H2.performance.timing.navigationStart?function(){return H2.performance.timing.navigationStart+H2.performance.now()}:function(){return(new Date).getTime()};g.ho(fp,g.O);fp.prototype.V=function(C){C.j===void 0&&Dvl(C);var b=C.j;C.K===void 0&&Dvl(C);this.j=new g.ZZ(b,C.K)}; +fp.prototype.ud=function(){return this.j||new g.ZZ}; +fp.prototype.KO=function(){if(this.j){var C=(0,g.Ai)();if(this.X!=0){var b=this.W,h=this.j,N=b.x-h.x;b=b.y-h.y;N=Math.sqrt(N*N+b*b)/(C-this.X);this.K[this.N]=Math.abs((N-this.G)/this.G)>.5?1:0;for(h=b=0;h<4;h++)b+=this.K[h]||0;b>=3&&this.J();this.G=N}this.X=C;this.W=this.j;this.N=(this.N+1)%4}}; +fp.prototype.wO=function(){g.$G(this.L);g.Ma(this.N2)};g.S(AJ,g.O);AJ.prototype.S=function(C,b,h,N,p){h=g.CN((0,g.x_)(h,N||this.sI));h={target:C,name:b,callback:h};var P;p&&Tll()&&(P={passive:!0});C.addEventListener(b,h.callback,P);this.J.push(h);return h}; +AJ.prototype.D9=function(C){for(var b=0;b=v.ES)||q.j.version>=T||q.j.objectStoreNames.contains(K)||y.push(K)}L=y;if(L.length===0){V.WE(5);break}Z=Object.keys(h.options.R_); +Y=e.objectStoreNames();if(h.Gh.options.version+1)throw l.close(),h.N=!1,UMl(h,F);return V.return(l);case 8:throw b(), +a instanceof Error&&!g.HQ("ytidb_async_stack_killswitch")&&(a.stack=a.stack+"\n"+c.substring(c.indexOf("\n")+1)),zn(a,h.name,"",(G=h.options.version)!=null?G:-1);}})} +function b(){h.j===N&&(h.j=void 0)} +var h=this;if(!this.N)throw UMl(this);if(this.j)return this.j;var N,p={blocking:function(P){P.close()}, +closed:b,Q24:b,upgrade:this.options.upgrade};return this.j=N=C()};var nB=new WG("YtIdbMeta",{R_:{databases:{ES:1}},upgrade:function(C,b){b(1)&&g.rm(C,"databases",{keyPath:"actualName"})}});var x1,IR=new function(){}(new function(){});new g.o0;g.S(bZ,WG);bZ.prototype.K=function(C,b,h){h=h===void 0?{}:h;return(this.options.shared?Eb_:WXK)(C,b,Object.assign({},h))}; +bZ.prototype.delete=function(C){C=C===void 0?{}:C;return(this.options.shared?BM1:nbc)(this.name,C)};var mIe={},xMV=g.h0("ytGcfConfig",{R_:(mIe.coldConfigStore={ES:1},mIe.hotConfigStore={ES:1},mIe),shared:!1,upgrade:function(C,b){b(1)&&(g.Xy(g.rm(C,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.Xy(g.rm(C,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, +version:1});g.S(gf,g.O);gf.prototype.wO=function(){for(var C=g.z(this.K),b=C.next();!b.done;b=C.next()){var h=this.j;b=h.indexOf(b.value);b>=0&&h.splice(b,1)}this.K.length=0;g.O.prototype.wO.call(this)};ei.prototype.p6=function(C){this.hotHashData=C;g.Ol("yt.gcf.config.hotHashData",this.hotHashData||null)};var fuI=typeof TextEncoder!=="undefined"?new TextEncoder:null,OeW=fuI?function(C){return fuI.encode(C)}:function(C){C=g.H$(C); +for(var b=new Uint8Array(C.length),h=0;h=b?!1:!0}; +g.k.pA=function(){var C=this;if(!XP(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.TO.M_("QUEUED",this.z5).then(function(b){b&&!C.rN(b,C.HD)?C.OS.Vy(function(){return g.R(function(h){if(h.j==1)return b.id===void 0?h.WE(2):g.J(h,C.TO.QA(b.id,C.z5),2);C.pA();g.$_(h)})}):C.fX.c6()&&C.s5()})};var Op;var $ao={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135, +mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28, +nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42, +assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225, +liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73, +visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88, +spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153, +vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,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,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,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};var yjj={},pQH=g.h0("ServiceWorkerLogsDatabase",{R_:(yjj.SWHealthLog={ES:1},yjj),shared:!0,upgrade:function(C,b){b(1)&&g.Xy(g.rm(C,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, +version:1});var df={},Ltl=0;var Wm;nQ.prototype.requestComplete=function(C,b){b&&(this.K=!0);C=this.removeParams(C);this.j.get(C)||this.j.set(C,b)}; +nQ.prototype.isEndpointCFR=function(C){C=this.removeParams(C);return(C=this.j.get(C))?!1:C===!1&&this.K?!0:null}; +nQ.prototype.removeParams=function(C){return C.split("?")[0]}; +nQ.prototype.removeParams=nQ.prototype.removeParams;nQ.prototype.isEndpointCFR=nQ.prototype.isEndpointCFR;nQ.prototype.requestComplete=nQ.prototype.requestComplete;nQ.getInstance=t0;g.S(To,g.wQ);g.k=To.prototype;g.k.c6=function(){return this.j.c6()}; +g.k.hM=function(C){this.j.j=C}; +g.k.TF=function(){var C=window.navigator.onLine;return C===void 0?!0:C}; +g.k.Cb=function(){this.K=!0}; +g.k.listen=function(C,b){return this.j.listen(C,b)}; +g.k.uJ=function(C){C=Db(this.j,C);C.then(function(b){g.HQ("use_cfr_monitor")&&t0().requestComplete("generate_204",b)}); +return C}; +To.prototype.sendNetworkCheckRequest=To.prototype.uJ;To.prototype.listen=To.prototype.listen;To.prototype.enableErrorFlushing=To.prototype.Cb;To.prototype.getWindowStatus=To.prototype.TF;To.prototype.networkStatusHint=To.prototype.hM;To.prototype.isNetworkAvailable=To.prototype.c6;To.getInstance=a1V;g.S(g.Bm,g.wQ);g.Bm.prototype.c6=function(){var C=g.Dx("yt.networkStatusManager.instance.isNetworkAvailable");return C?C.bind(this.K)():!0}; +g.Bm.prototype.hM=function(C){var b=g.Dx("yt.networkStatusManager.instance.networkStatusHint").bind(this.K);b&&b(C)}; +g.Bm.prototype.uJ=function(C){var b=this,h;return g.R(function(N){h=g.Dx("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(b.K);return g.HQ("skip_network_check_if_cfr")&&t0().isEndpointCFR("generate_204")?N.return(new Promise(function(p){var P;b.hM(((P=window.navigator)==null?void 0:P.onLine)||!0);p(b.c6())})):h?N.return(h(C)):N.return(!0)})};var It;g.S(xw,KQ);xw.prototype.writeThenSend=function(C,b){b||(b={});b=Cr(C,b);g.Bj()||(this.j=!1);KQ.prototype.writeThenSend.call(this,C,b)}; +xw.prototype.sendThenWrite=function(C,b,h){b||(b={});b=Cr(C,b);g.Bj()||(this.j=!1);KQ.prototype.sendThenWrite.call(this,C,b,h)}; +xw.prototype.sendAndWrite=function(C,b){b||(b={});b=Cr(C,b);g.Bj()||(this.j=!1);KQ.prototype.sendAndWrite.call(this,C,b)}; +xw.prototype.awaitInitialization=function(){return this.N.promise};var SSK=g.sl.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.Ol("ytNetworklessLoggingInitializationOptions",SSK);g.bt.prototype.isReady=function(){!this.config_&&lOU()&&(this.config_=g.ZY());return!!this.config_};var rjj,gj,Pl;rjj=g.sl.ytPubsubPubsubInstance||new g.AZ;gj=g.sl.ytPubsubPubsubSubscribedKeys||{};Pl=g.sl.ytPubsubPubsubTopicToKeys||{};g.pr=g.sl.ytPubsubPubsubIsSynchronous||{};g.AZ.prototype.subscribe=g.AZ.prototype.subscribe;g.AZ.prototype.unsubscribeByKey=g.AZ.prototype.v2;g.AZ.prototype.publish=g.AZ.prototype.publish;g.AZ.prototype.clear=g.AZ.prototype.clear;g.Ol("ytPubsubPubsubInstance",rjj);g.Ol("ytPubsubPubsubTopicToKeys",Pl);g.Ol("ytPubsubPubsubIsSynchronous",g.pr); +g.Ol("ytPubsubPubsubSubscribedKeys",gj);var qSl={};g.S($p,g.O);$p.prototype.append=function(C){if(!this.K)throw Error("This does not support the append operation");C=C.Rb();this.Rb().appendChild(C)}; +g.S(zB,$p);zB.prototype.Rb=function(){return this.j};g.S(AKo,g.O);var Hl=Date.now().toString();var fr={};var Jp=Symbol("injectionDeps");yO.prototype.toString=function(){return"InjectionToken("+this.name+")"}; +JKH.prototype.resolve=function(C){return C instanceof rj?ut(this,C.key,[],!0):ut(this,C,[])};var RF;var Ux=window;var Ox=g.HQ("web_enable_lifecycle_monitoring")&&Xb()!==0,sf_=g.HQ("web_enable_lifecycle_monitoring");UQW.prototype.cancel=function(){for(var C=g.z(this.j),b=C.next();!b.done;b=C.next())b=b.value,b.jobId===void 0||b.ZL||this.scheduler.E2(b.jobId),b.ZL=!0;this.K.resolve()};g.k=vl.prototype;g.k.install=function(C){this.plugins.push(C);return this}; +g.k.uninstall=function(){var C=this;g.ro.apply(0,arguments).forEach(function(b){b=C.plugins.indexOf(b);b>-1&&C.plugins.splice(b,1)})}; +g.k.transition=function(C,b){var h=this;Ox&&Rd6(this.state);var N=this.transitions.find(function(P){return Array.isArray(P.from)?P.from.find(function(c){return c===h.state&&P.jT===C}):P.from===h.state&&P.jT===C}); +if(N){this.K&&(XQc(this.K),this.K=void 0);ONV(this,C,b);this.state=C;Ox&&Kr(this.state);N=N.action.bind(this);var p=this.plugins.filter(function(P){return P[C]}).map(function(P){return P[C]}); +N(Ktc(this,p),b)}else throw Error("no transition specified from "+this.state+" to "+C);}; +g.k.Jy2=function(C){var b=g.ro.apply(1,arguments);g.bf();for(var h=g.z(C),N=h.next(),p={};!N.done;p={Bp:void 0},N=h.next())p.Bp=N.value,cZS(function(P){return function(){dj(P.Bp.name);Ex(function(){return P.Bp.callback.apply(P.Bp,g.M(b))}); +Wl(P.Bp.name)}}(p))}; +g.k.Hvf=function(C){var b=g.ro.apply(1,arguments),h,N,p,P;return g.R(function(c){c.j==1&&(g.bf(),h=g.z(C),N=h.next(),p={});if(c.j!=3){if(N.done)return c.WE(0);p.Xa=N.value;p.ou=void 0;P=function(e){return function(){dj(e.Xa.name);var L=Ex(function(){return e.Xa.callback.apply(e.Xa,g.M(b))}); +bw(L)?e.ou=g.HQ("web_lifecycle_error_handling_killswitch")?L.then(function(){Wl(e.Xa.name)}):L.then(function(){Wl(e.Xa.name)},function(Z){Qfx(Z); +Wl(e.Xa.name)}):Wl(e.Xa.name)}}(p); +cZS(P);return p.ou?g.J(c,p.ou,3):c.WE(3)}p={Xa:void 0,ou:void 0};N=h.next();return c.WE(2)})}; +g.k.Nt=function(C){var b=g.ro.apply(1,arguments),h=this,N=C.map(function(p){return{ej:function(){dj(p.name);Ex(function(){return p.callback.apply(p,g.M(b))}); +Wl(p.name)}, +priority:DG(h,p)}}); +N.length&&(this.K=new UQW(N))}; +g.eV.Object.defineProperties(vl.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var tp;g.S(nr,vl);nr.prototype.G=function(C,b){var h=this;this.j=g.wU(0,function(){h.currentState==="application_navigating"&&h.transition("none")},5E3); +C(b==null?void 0:b.event)}; +nr.prototype.W=function(C,b){this.j&&(g.WD.E2(this.j),this.j=null);C(b==null?void 0:b.event)};var ST=[];g.Ol("yt.logging.transport.getScrapedGelPayloads",function(){return ST});TB.prototype.storePayload=function(C,b){C=Bl(C);this.store[C]?this.store[C].push(b):(this.K={},this.store[C]=[b]);this.j++;g.HQ("more_accurate_gel_parser")&&(b=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(b));return C}; +TB.prototype.smartExtractMatchingEntries=function(C){if(!C.keys.length)return[];for(var b=xp(this,C.keys.splice(0,1)[0]),h=[],N=0;N=0){N=!1;break a}}N=!0}N&&(b=sr(b))&&this.QL(b)}}; +g.k.G9=function(C){return C}; +g.k.fD=function(C){var b=this.nO;b.J=!0;b.K=C.touches.length;b.j.isActive()&&(b.j.stop(),b.G=!0);C=C.touches;b.W=yKl(b,C)||C.length!=1;var h=C.item(0);b.W||!h?(b.L=Infinity,b.V=Infinity):(b.L=h.clientX,b.V=h.clientY);for(h=b.N.length=0;h=0)}if(h||C&&Math.pow(C.clientX-b.L,2)+Math.pow(C.clientY-b.V,2)>25)b.X=!0}; +g.k.cG=function(C){if(this.nO){var b=this.nO,h=C.changedTouches;h&&b.J&&b.K==1&&!b.X&&!b.G&&!b.W&&yKl(b,h)&&(b.KO=C,b.j.start());b.K=C.touches.length;b.K===0&&(b.J=!1,b.X=!1,b.N.length=0);b.G=!1}}; +g.k.QL=function(C){this.layoutId?this.Sp.executeCommand(C,this.layoutId):g.Ri(new g.tJ("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))}; +g.k.createServerVe=function(C,b){this.api.createServerVe(C,this);this.api.setTrackingParams(C,b)}; +g.k.logVisibility=function(C,b){this.api.hasVe(C)&&this.api.logVisibility(C,b,this.interactionLoggingClientData)}; +g.k.wO=function(){this.clear(null);this.D9(this.zi);for(var C=g.z(this.q2),b=C.next();!b.done;b=C.next())this.D9(b.value);g.YY.prototype.wO.call(this)};g.S(Ju,aS); +Ju.prototype.init=function(C,b,h){aS.prototype.init.call(this,C,b,h);this.j=b;if(b.text==null&&b.icon==null)g.QB(Error("ButtonRenderer did not have text or an icon set."));else{switch(b.style||null){case "STYLE_UNKNOWN":C="ytp-ad-button-link";break;default:C=null}C!=null&&g.c4(this.element,C);b.text!=null&&(C=g.oS(b.text),g.qp(C)||(this.element.setAttribute("aria-label",C),this.N=new g.YY({B:"span",C:"ytp-ad-button-text",BE:C}),g.D(this,this.N),this.N.Gi(this.element)));b.accessibilityData&&b.accessibilityData.accessibilityData&& +b.accessibilityData.accessibilityData.label&&!g.qp(b.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",b.accessibilityData.accessibilityData.label);b.icon!=null&&(b=iI(b.icon,this.X),b!=null&&(this.K=new g.YY({B:"span",C:"ytp-ad-button-icon",U:[b]}),g.D(this,this.K)),this.W?gQ(this.element,this.K.element,0):this.K.Gi(this.element))}}; +Ju.prototype.clear=function(){this.hide()}; +Ju.prototype.onClick=function(C){aS.prototype.onClick.call(this,C);C=g.z(Ji1(this));for(var b=C.next();!b.done;b=C.next())b=b.value,this.layoutId?this.Sp.executeCommand(b,this.layoutId):g.Ri(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.S(uI,g.O);uI.prototype.wO=function(){this.K&&g.Ma(this.K);this.j.clear();RS=null;g.O.prototype.wO.call(this)}; +uI.prototype.register=function(C,b){b&&this.j.set(C,b)}; +var RS=null;g.S(XW,aS); +XW.prototype.init=function(C,b,h){aS.prototype.init.call(this,C,b,h);C=b.hoverText||null;b=b.button&&g.d(b.button,g.yM)||null;b==null?g.Ri(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new Ju(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,void 0,void 0,void 0,void 0,this.N),g.D(this,this.button),this.button.init(Pr("button"),b,this.macros),C&&this.button.element.setAttribute("aria-label",g.oS(C)),this.button.Gi(this.element),this.V&&!g.j6(this.button.element, +"ytp-ad-clickable")&&g.c4(this.button.element,"ytp-ad-clickable"),this.N&&(g.c4(this.button.element,"ytp-ad-hover-text-button--clean-player"),this.api.D("clean_player_style_fix_on_web")&&g.c4(this.button.element,"ytp-ad-hover-text-button--clean-player-with-light-shadow")),C&&(this.K=new g.YY({B:"div",C:"ytp-ad-hover-text-container"}),this.W&&(b=new g.YY({B:"div",C:"ytp-ad-hover-text-callout"}),b.Gi(this.K.element),g.D(this,b)),g.D(this,this.K),this.K.Gi(this.element),b=QA(C),gQ(this.K.element,b,0)), +this.show())}; +XW.prototype.hide=function(){this.button&&this.button.hide();this.K&&this.K.hide();aS.prototype.hide.call(this)}; +XW.prototype.show=function(){this.button&&this.button.show();aS.prototype.show.call(this)};g.S(sY,aS); +sY.prototype.init=function(C,b,h){aS.prototype.init.call(this,C,b,h);h=(C=b.thumbnail)&&Kt(C)||"";g.qp(h)?Math.random()<.01&&g.QB(Error("Found AdImage without valid image URL")):(this.j?g.Zv(this.element,"backgroundImage","url("+h+")"):TA(this.element,{src:h}),TA(this.element,{alt:C&&C.accessibility&&C.accessibility.label||""}),b&&b.adRendererCommands&&b.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; +sY.prototype.clear=function(){this.hide()};g.S(OY,aS);g.k=OY.prototype;g.k.hide=function(){aS.prototype.hide.call(this);this.N&&this.N.focus()}; +g.k.show=function(){this.N=document.activeElement;aS.prototype.show.call(this);this.X.focus()}; +g.k.init=function(C,b,h){aS.prototype.init.call(this,C,b,h);this.K=b;b.dialogMessages||b.title!=null?b.confirmLabel==null?g.Ri(Error("ConfirmDialogRenderer.confirmLabel was not set.")):b.cancelLabel==null?g.Ri(Error("ConfirmDialogRenderer.cancelLabel was not set.")):U$V(this,b):g.Ri(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; +g.k.clear=function(){g.rU(this.j);this.hide()}; +g.k.Fl=function(){this.hide()}; +g.k.X5=function(){var C=this.K.cancelEndpoint;C&&(this.layoutId?this.Sp.executeCommand(C,this.layoutId):g.Ri(Error("Missing layoutId for confirm dialog.")));this.hide()}; +g.k.LW=function(){var C=this.K.confirmNavigationEndpoint||this.K.confirmEndpoint;C&&(this.layoutId?this.Sp.executeCommand(C,this.layoutId):g.Ri(Error("Missing layoutId for confirm dialog.")));this.hide()};g.S(vr,aS);g.k=vr.prototype; +g.k.init=function(C,b,h){aS.prototype.init.call(this,C,b,h);this.N=b;if(b.defaultText==null&&b.defaultIcon==null)g.Ri(Error("ToggleButtonRenderer must have either text or icon set."));else if(b.defaultIcon==null&&b.toggledIcon!=null)g.Ri(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(b.style){switch(b.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":C="ytp-ad-toggle-button-default-style";break;default:C=null}C!=null&&g.c4(this.X,C)}C={};b.defaultText? +(h=g.oS(b.defaultText),g.qp(h)||(C.buttonText=h,this.api.Y().experiments.Fo("a11y_h5_associate_survey_question")||this.j.setAttribute("aria-label",h),this.api.Y().experiments.Fo("fix_h5_toggle_button_a11y")&&this.K.setAttribute("aria-label",h))):g.MT(this.sX,!1);b.defaultTooltip&&(C.tooltipText=b.defaultTooltip,this.j.hasAttribute("aria-label")||this.K.setAttribute("aria-label",b.defaultTooltip));b.defaultIcon?(h=iI(b.defaultIcon),this.updateValue("untoggledIconTemplateSpec",h),b.toggledIcon?(this.N2= +!0,h=iI(b.toggledIcon),this.updateValue("toggledIconTemplateSpec",h)):(g.MT(this.V,!0),g.MT(this.W,!1)),g.MT(this.j,!1)):g.MT(this.K,!1);g.yT(C)||this.update(C);b.isToggled&&(g.c4(this.X,"ytp-ad-toggle-button-toggled"),this.toggleButton(b.isToggled));DN(this);this.S(this.element,"change",this.dj);this.show()}}; +g.k.onClick=function(C){this.q2.length>0&&(this.toggleButton(!this.isToggled()),this.dj());aS.prototype.onClick.call(this,C)}; +g.k.dj=function(){g.Zo(this.X,"ytp-ad-toggle-button-toggled",this.isToggled());for(var C=g.z(XGV(this,this.isToggled())),b=C.next();!b.done;b=C.next())b=b.value,this.layoutId?this.Sp.executeCommand(b,this.layoutId):g.Ri(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);DN(this)}; +g.k.clear=function(){this.hide()}; +g.k.toggleButton=function(C){g.Zo(this.X,"ytp-ad-toggle-button-toggled",C);this.j.checked=C;DN(this)}; +g.k.isToggled=function(){return this.j.checked};g.S(dK,AJ);dK.prototype.W=function(C){if(Array.isArray(C)){C=g.z(C);for(var b=C.next();!b.done;b=C.next())b=b.value,b instanceof KKW&&this.X(b)}};g.S(Wr,aS);g.k=Wr.prototype;g.k.init=function(C,b,h){aS.prototype.init.call(this,C,b,h);b.reasons?b.confirmLabel==null?g.Ri(Error("AdFeedbackRenderer.confirmLabel was not set.")):(b.cancelLabel==null&&g.QB(Error("AdFeedbackRenderer.cancelLabel was not set.")),b.title==null&&g.QB(Error("AdFeedbackRenderer.title was not set.")),D$o(this,b)):g.Ri(Error("AdFeedbackRenderer.reasons were not set."))}; +g.k.clear=function(){qa(this.W);qa(this.V);this.X.length=0;this.hide()}; +g.k.hide=function(){this.j&&this.j.hide();this.K&&this.K.hide();aS.prototype.hide.call(this);this.N&&this.N.focus()}; +g.k.show=function(){this.j&&this.j.show();this.K&&this.K.show();this.N=document.activeElement;aS.prototype.show.call(this);this.W.focus()}; +g.k.XK=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; +g.k.q_h=function(){this.hide()}; +EY.prototype.Rb=function(){return this.j.element}; +EY.prototype.getCommand=function(){return this.K}; +EY.prototype.isChecked=function(){return this.N.checked};g.S(nt,OY);nt.prototype.Fl=function(C){OY.prototype.Fl.call(this,C);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; +nt.prototype.X5=function(C){OY.prototype.X5.call(this,C);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; +nt.prototype.LW=function(C){OY.prototype.LW.call(this,C);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.S(tu,aS);g.k=tu.prototype; +g.k.init=function(C,b,h){aS.prototype.init.call(this,C,b,h);this.W=b;if(b.dialogMessage==null&&b.title==null)g.Ri(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{b.confirmLabel==null&&g.QB(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(C=b.closeOverlayRenderer&&g.d(b.closeOverlayRenderer,g.yM)||null)this.j=new Ju(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), +g.D(this,this.j),this.j.init(Pr("button"),C,this.macros),this.j.Gi(this.element);b.title&&(C=g.oS(b.title),this.updateValue("title",C));if(b.adReasons)for(C=b.adReasons,h=0;h=this.Df?(this.sX.hide(),this.CO=!0,this.publish("i")):this.N&&this.N.isTemplated()&&(C=Math.max(0,Math.ceil((this.Df-C)/1E3)),C!=this.Yh&&(IS(this.N,{TIME_REMAINING:String(C)}),this.Yh=C)))}};g.S(pF,xY);g.k=pF.prototype; +g.k.init=function(C,b,h){xY.prototype.init.call(this,C,b,h);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if((C=b.actionButton&&g.d(b.actionButton,g.yM))&&C.navigationEndpoint){var N=this.api.getVideoData(2);if(N!=null)if(b.image&&b.image.thumbnail){var p=b.image.thumbnail.thumbnails;p!=null&&p.length>0&&g.qp(g.w2(p[0].url))&&(p[0].url=N.profilePicture)}else g.QB(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.N.init(Pr("ad-image"),b.image,h);this.W.init(Pr("ad-text"), +b.headline,h);this.X.init(Pr("ad-text"),b.description,h);this.K.init(Pr("button"),C,h);h=BD(this.K.element);Tq(this.K.element,h+" This link opens in new tab");this.N2=C.navigationEndpoint;this.api.mQ()||this.show();this.api.Y().D("enable_larger_flyout_cta_on_desktop")&&(this.dO("ytp-flyout-cta").classList.add("ytp-flyout-cta-large"),this.dO("ytp-flyout-cta-body").classList.add("ytp-flyout-cta-body-large"),this.dO("ytp-flyout-cta-headline-container").classList.add("ytp-flyout-cta-headline-container-dark-background"), +this.dO("ytp-flyout-cta-description-container").classList.add("ytp-flyout-cta-description-container-dark-background"),this.dO("ytp-flyout-cta-text-container").classList.add("ytp-flyout-cta-text-container-large"),this.dO("ytp-flyout-cta-action-button-container").classList.add("ytp-flyout-cta-action-button-container-large"),this.K.element.classList.add("ytp-flyout-cta-action-button-large"),this.K.element.classList.add("ytp-flyout-cta-action-button-rounded-large"),this.dO("ytp-flyout-cta-icon-container").classList.add("ytp-flyout-cta-icon-container-large")); +this.api.addEventListener("playerUnderlayVisibilityChange",this.oU.bind(this));this.sX=b.startMs||0;wK(this)}else g.Ri(Error("FlyoutCtaRenderer has no valid action button."));else g.Ri(Error("FlyoutCtaRenderer has no description AdText."));else g.Ri(Error("FlyoutCtaRenderer has no headline AdText."));else g.QB(Error("FlyoutCtaRenderer has no image."))}; +g.k.onClick=function(C){xY.prototype.onClick.call(this,C);this.api.pauseVideo();!g.PP(this.K.element,C.target)&&this.N2&&(this.layoutId?this.Sp.executeCommand(this.N2,this.layoutId):g.Ri(Error("Missing layoutId for flyout cta.")))}; +g.k.TC=function(){if(this.j){var C=this.j.getProgressState();(C&&C.current||this.Df)&&1E3*C.current>=this.sX&&(CF(this),g.e6(this.element,"ytp-flyout-cta-inactive"),this.K.element.removeAttribute("tabIndex"))}}; +g.k.P5=function(){this.clear()}; +g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.oU.bind(this))}; +g.k.show=function(){this.K&&this.K.show();xY.prototype.show.call(this)}; +g.k.hide=function(){this.K&&this.K.hide();xY.prototype.hide.call(this)}; +g.k.oU=function(C){C=="hidden"?this.show():this.hide()};g.S(PX,aS);g.k=PX.prototype; +g.k.init=function(C,b,h){aS.prototype.init.call(this,C,b,h);this.j=b;if(this.j.rectangle)for(C=this.j.likeButton&&g.d(this.j.likeButton,$N),b=this.j.dislikeButton&&g.d(this.j.dislikeButton,$N),this.N.init(Pr("toggle-button"),C,h),this.K.init(Pr("toggle-button"),b,h),this.S(this.element,"change",this.Gt),this.X.show(100),this.show(),h=g.z(this.j&&this.j.impressionCommands||[]),C=h.next();!C.done;C=h.next())C=C.value,this.layoutId?this.Sp.executeCommand(C,this.layoutId):g.Ri(Error("Missing layoutId for instream user sentiment."))}; +g.k.clear=function(){this.hide()}; +g.k.hide=function(){this.N.hide();this.K.hide();aS.prototype.hide.call(this)}; +g.k.show=function(){this.N.show();this.K.show();aS.prototype.show.call(this)}; +g.k.Gt=function(){iV_(this.element,"ytp-ad-instream-user-sentiment-selected");this.j.postMessageAction&&this.api.LO("onYtShowToast",this.j.postMessageAction);this.X.hide()}; +g.k.onClick=function(C){this.q2.length>0&&this.Gt();aS.prototype.onClick.call(this,C)};g.S(j5,g.O);g.k=j5.prototype;g.k.wO=function(){this.reset();g.O.prototype.wO.call(this)}; +g.k.reset=function(){g.rU(this.X);this.W=!1;this.j&&this.j.stop();this.G.stop();this.N&&(this.N=!1,this.J.play())}; +g.k.start=function(){this.reset();this.X.S(this.K,"mouseover",this.aU,this);this.X.S(this.K,"mouseout",this.Eu,this);this.KO&&(this.X.S(this.K,"focusin",this.aU,this),this.X.S(this.K,"focusout",this.Eu,this));this.j?this.j.start():(this.W=this.N=!0,g.Zv(this.K,{opacity:this.V}))}; +g.k.aU=function(){this.N&&(this.N=!1,this.J.play());this.G.stop();this.j&&this.j.stop()}; +g.k.Eu=function(){this.W?this.G.start():this.j&&this.j.start()}; +g.k.Lh=function(){this.N||(this.N=!0,this.L.play(),this.W=!0)};var bQW=[new cX("b.f_",!1,0),new cX("j.s_",!1,2),new cX("r.s_",!1,4),new cX("e.h_",!1,6),new cX("i.s_",!0,8),new cX("s.t_",!1,10),new cX("p.h_",!1,12),new cX("s.i_",!1,14),new cX("f.i_",!1,16),new cX("a.b_",!1,18),new cX("a.o_",!1),new cX("g.o_",!1,22),new cX("p.i_",!1,24),new cX("p.m_",!1),new cX("i.k_",!0,28),new cX("n.k_",!0,20),new cX("i.f_",!1),new cX("a.s_",!0),new cX("m.c_",!1),new cX("n.h_",!1,26),new cX("o.p_",!1)].reduce(function(C,b){C[b.K]=b;return C},{});g.S(ox,xY);g.k=ox.prototype; +g.k.init=function(C,b,h){xY.prototype.init.call(this,C,b,h);this.N2=b;(this.sX=Nfl(this))&&g.QB(Error("hasAdControlInClickCommands_ is true."));if(!b||g.yT(b))g.Ri(Error("SkipButtonRenderer was not specified or empty."));else if(!b.message||g.yT(b.message))g.Ri(Error("SkipButtonRenderer.message was not specified or empty."));else{C=this.W?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"};b=iI(C);b==null?g.Ri(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+C.iconType+".")): +(this.X=new g.YY({B:"button",J4:[this.W?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],U:[{B:"span",C:this.W?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",U:[b]}]}),g.D(this,this.X),this.X.Gi(this.N.element),this.K=new Br(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,"ytp-ad-skip-button-text"),this.W&&this.K.element.classList.add("ytp-ad-skip-button-text-centered"),this.K.init(Pr("ad-text"),this.N2.message,h),g.D(this,this.K),gQ(this.X.element,this.K.element, +0));var N=N===void 0?null:N;h=this.api.Y();!(this.q2.length>0)&&h.K&&(Ey?0:"ontouchstart"in document.documentElement&&(MIc()||FV()))&&(this.D9(this.zi),N&&this.D9(N),this.q2=[this.S(this.element,"touchstart",this.fD,this),this.S(this.element,"touchmove",this.hV,this),this.S(this.element,"touchend",this.cG,this)])}}; +g.k.clear=function(){this.Df.reset();this.hide()}; +g.k.hide=function(){this.N.hide();this.K&&this.K.hide();CF(this);xY.prototype.hide.call(this)}; +g.k.onClick=function(C){if(this.X!=null){if(C){var b=C||window.event;b.returnValue=!1;b.preventDefault&&b.preventDefault()}var h;if(wGx(C,{contentCpn:((h=this.api.getVideoData(1))==null?void 0:h.clientPlaybackNonce)||""})===0)this.api.LO("onAbnormalityDetected");else if(xY.prototype.onClick.call(this,C),this.publish("j"),this.api.LO("onAdSkip"),this.CO||!this.sX)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; +g.k.G9=function(C){if(!this.CO)return this.sX&&ZK("SkipButton click commands not pruned while ALC exist"),C;var b,h=(b=g.d(C,g.F_))==null?void 0:b.commands;if(!h)return C;C=[];for(b=0;b=this.W&&gwV(this,!0)};g.S(S5,Ju);S5.prototype.init=function(C,b,h){Ju.prototype.init.call(this,C,b,h);C=!1;b.text!=null&&(C=g.oS(b.text),C=!g.qp(C));C?b.navigationEndpoint==null?g.QB(Error("No visit advertiser clickthrough provided in renderer,")):b.style!=="STYLE_UNKNOWN"?g.QB(Error("Button style was not a link-style type in renderer,")):this.show():g.QB(Error("No visit advertiser text was present in the renderer."))};g.S($H,aS); +$H.prototype.init=function(C,b,h){aS.prototype.init.call(this,C,b,h);C=b.text;g.qp(lI(C))?g.QB(Error("SimpleAdBadgeRenderer has invalid or empty text")):(C&&C.text&&(b=C.text,this.N&&!this.K&&(b=this.api.Y(),b=C.text+" "+(b&&b.K?"\u2022":"\u00b7")),b={text:b,isTemplated:C.isTemplated},C.style&&(b.style=C.style),C.targetId&&(b.targetId=C.targetId),C=new Br(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp),C.init(Pr("simple-ad-badge"),b,h),C.Gi(this.element),g.D(this,C)),this.show())}; +$H.prototype.clear=function(){this.hide()};g.S(zv,jv);g.S(HX,g.cr);g.k=HX.prototype;g.k.HR=function(){return this.durationMs}; +g.k.stop=function(){this.j&&this.B7.D9(this.j)}; +g.k.cW=function(C){this.K={seekableStart:0,seekableEnd:this.durationMs/1E3,current:C.current};this.publish("h")}; +g.k.getProgressState=function(){return this.K}; +g.k.pD=function(C){g.l1(C,2)&&this.publish("g")};g.S(Vt,g.cr);g.k=Vt.prototype;g.k.HR=function(){return this.durationMs}; +g.k.start=function(){this.j||(this.j=!0,this.FZ.start())}; +g.k.stop=function(){this.j&&(this.j=!1,this.FZ.stop())}; +g.k.cW=function(){this.EB+=100;var C=!1;this.EB>this.durationMs&&(this.EB=this.durationMs,this.FZ.stop(),C=!0);this.K={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.EB/1E3};this.publish("h");C&&this.publish("g")}; +g.k.getProgressState=function(){return this.K};g.S(mM,xY);g.k=mM.prototype;g.k.init=function(C,b,h){xY.prototype.init.call(this,C,b,h);var N;if(b==null?0:(N=b.templatedCountdown)==null?0:N.templatedAdText){C=b.templatedCountdown.templatedAdText;if(!C.isTemplated){g.QB(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.K=new Br(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp);this.K.init(Pr("ad-text"),C,{});this.K.Gi(this.element);g.D(this,this.K)}this.show()}; +g.k.clear=function(){this.hide()}; +g.k.hide=function(){CF(this);xY.prototype.hide.call(this)}; +g.k.P5=function(){this.hide()}; +g.k.TC=function(){if(this.j!=null){var C=this.j.getProgressState();if(C!=null&&C.current!=null&&this.K){var b=this.j instanceof HX?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:C.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.j instanceof Vt?C.seekableEnd:this.api.getDuration(2,!1);C=C.current;b=this.api.Y().experiments.Fo("enable_player_overlay_non_negative_remaining_duration_on_web")?Math.max(b-C,0):b-C;IS(this.K,{FORMATTED_AD_DURATION_REMAINING:String(g.Mj(b)), +TIME_REMAINING:String(Math.ceil(b))})}}}; +g.k.show=function(){wK(this);xY.prototype.show.call(this)};g.S(fF,Br);fF.prototype.onClick=function(C){Br.prototype.onClick.call(this,C);this.api.onAdUxClicked(this.componentType)};g.S(rG,aS);rG.prototype.init=function(C,b){aS.prototype.init.call(this,C,b,{});if(C=b.content){g.jW(this.element,C);var h,N;b=((h=b.interaction)==null?void 0:(N=h.accessibility)==null?void 0:N.label)||C;this.element.setAttribute("aria-label",b)}else g.Ri(Error("AdSimpleAttributedString does not have text content"))}; +rG.prototype.clear=function(){this.hide()}; +rG.prototype.onClick=function(C){aS.prototype.onClick.call(this,C)};g.S(i1,aS); +i1.prototype.init=function(C,b){aS.prototype.init.call(this,C,b,{});(C=b.label)&&C.content&&!g.qp(C.content)?(this.adBadgeText.init(Pr("ad-simple-attributed-string"),new AM(C)),(b=b.adPodIndex)&&b.content&&!g.qp(b.content)&&(this.j=new rG(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp),this.j.Gi(this.element),g.D(this,this.j),this.j.element.classList.add("ytp-ad-badge__pod-index"),this.j.init(Pr("ad-simple-attributed-string"),new AM(b))),this.element.classList.add(this.K?"ytp-ad-badge--stark-clean-player": +"ytp-ad-badge--stark"),this.show()):g.Ri(Error("No label is returned in AdBadgeViewModel."))}; +i1.prototype.show=function(){this.adBadgeText.show();var C;(C=this.j)==null||C.show();aS.prototype.show.call(this)}; +i1.prototype.hide=function(){this.adBadgeText.hide();var C;(C=this.j)==null||C.hide();aS.prototype.hide.call(this)};g.S(JM,aS); +JM.prototype.init=function(C,b){aS.prototype.init.call(this,C,b,{});(C=b.adPodIndex)&&C.content&&!g.qp(C.content)&&(this.j=new rG(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp),this.j.Gi(this.element),g.D(this,this.j),this.j.init(Pr("ad-simple-attributed-string"),new AM(C)),(this.api.Y().D("clean_player_style_fix_on_web")?b.visibilityCondition==="AD_POD_INDEX_VISIBILITY_CONDITION_AUTOHIDE":!this.K||b.visibilityCondition!=="AD_POD_INDEX_VISIBILITY_CONDITION_ALWAYS_SHOW_IF_NONSKIPPABLE")&&this.element.classList.add("ytp-ad-pod-index--autohide")); +this.element.classList.add("ytp-ad-pod-index--stark");this.api.D("clean_player_style_fix_on_web")&&this.element.classList.add("ytp-ad-pod-index--stark-with-light-shadow");this.show()}; +JM.prototype.show=function(){var C;(C=this.j)==null||C.show();aS.prototype.show.call(this)}; +JM.prototype.hide=function(){var C;(C=this.j)==null||C.hide();aS.prototype.hide.call(this)};g.S(u1,aS); +u1.prototype.init=function(C,b){aS.prototype.init.call(this,C,b,{});if(b!=null&&b.text){var h;if(((h=b.text)==null?0:h.content)&&!g.qp(b.text.content)){this.j=new g.YY({B:"div",C:"ytp-ad-disclosure-banner__text",BE:b.text.content});g.D(this,this.j);this.j.Gi(this.element);var N,p;C=((N=b.interaction)==null?void 0:(p=N.accessibility)==null?void 0:p.label)||b.text.content;this.element.setAttribute("aria-label",C);var P;if((P=b.interaction)==null?0:P.onTap)this.K=new g.YY({B:"div",C:"ytp-ad-disclosure-banner__chevron",U:[g.$Y()]}), +g.D(this,this.K),this.K.Gi(this.element);this.show()}}else g.Ri(Error("No banner text found in AdDisclosureBanner."))}; +u1.prototype.clear=function(){this.hide()};Rx.prototype.getLength=function(){return this.j-this.K};g.S(U8,g.YY);U8.prototype.cW=function(){var C=this.K.getProgressState(),b=C.seekableEnd;this.api.getPresentingPlayerType()===2&&this.api.Y().D("show_preskip_progress_bar_for_skippable_ads")&&(b=this.N?this.N/1E3:C.seekableEnd);C=Qt(new Rx(C.seekableStart,b),C.current,0);this.progressBar.style.width=C*100+"%"}; +U8.prototype.onStateChange=function(){g.fO(this.api.Y())||(this.api.getPresentingPlayerType()===2?this.j===-1&&(this.show(),this.j=this.K.subscribe("h",this.cW,this),this.cW()):this.j!==-1&&(this.hide(),this.K.v2(this.j),this.j=-1))};g.S(X_,aS); +X_.prototype.init=function(C,b,h,N){aS.prototype.init.call(this,C,b,h);h=!0;if(b.skipOrPreviewRenderer){var p=b.skipOrPreviewRenderer;C=g.d(p,hv);p=g.d(p,Aa);C?(p=new Gv(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,this.K,this.N2),p.Gi(this.V),p.init(Pr("skip-button"),C,this.macros),g.D(this,p)):p&&!this.api.Y().experiments.Fo("disable_ad_preview_for_instream_ads")&&(C=new Nj(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,this.K,!1),C.Gi(this.V),C.init(Pr("ad-preview"),p, +this.macros),gG(C),g.D(this,C));if(C=g.d(b.skipOrPreviewRenderer,hv)){h=!1;var P=C.skipOffsetMilliseconds}}b.brandInteractionRenderer&&(C=b.brandInteractionRenderer.brandInteractionRenderer,p=new PX(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp),p.Gi(this.Df),p.init(Pr("instream-user-sentiment"),C,this.macros),g.D(this,p));if(C=g.d(b,ZdD))if(C=g.d(C,ZdD))p=new pF(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,this.K,!!b.showWithoutLinkedMediaLayout),g.D(this,p), +p.Gi(this.W),p.init(Pr("flyout-cta"),C,this.macros);C=(this.api.Y().D("disable_ad_duration_remaining_for_instream_video_ads")||b.adPodIndex!==void 0)&&!1;N=N&&N.videoAdDurationSeconds;if(b.adBadgeRenderer){var c=b.adBadgeRenderer;p=g.d(c,Wy);p!=null?(c=new i1(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,C),g.D(this,c),c.Gi(this.j),c.init(Pr("ad-badge"),p,this.macros),this.N=c.element):(p=c.simpleAdBadgeRenderer,p==null&&(p={text:{text:"Ad",isTemplated:!1}}),c=new $H(this.api,this.layoutId, +this.interactionLoggingClientData,this.Sp,!0),g.D(this,c),c.Gi(this.j),c.init(Pr("simple-ad-badge"),p,this.macros))}b.adPodIndex&&(p=g.d(b.adPodIndex,HdC),p!=null&&(h=new JM(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,h),g.D(this,h),h.Gi(this.j),h.init(Pr("ad-pod-index"),p)));b.adDurationRemaining&&!b.showWithoutLinkedMediaLayout&&(h=b.adDurationRemaining.adDurationRemainingRenderer,h==null&&(h={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}), +N=new mM(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,this.K,N,C),g.D(this,N),N.Gi(this.j),N.init(Pr("ad-duration-remaining"),h,this.macros),C&&N.element.classList.add("ytp-ad-duration-remaining-autohide"));b.adInfoRenderer&&(N=g.d(b.adInfoRenderer,fG))&&(h=new TY(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,this.element,void 0,C),g.D(this,h),this.api.Y().D("enable_ad_pod_index_autohide")&&this.N!==null?this.j.insertBefore(h.element,this.N.nextSibling):h.Gi(this.j), +h.init(Pr("ad-info-hover-text-button"),N,this.macros));b.visitAdvertiserRenderer&&(h=g.d(b.visitAdvertiserRenderer,g.yM))&&(p=jtW(this)&&this.X?this.X:this.j)&&(N=new S5(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp),g.D(this,N),N.Gi(p),N.init(Pr("visit-advertiser"),h,this.macros),nU(N.element),h=BD(N.element),Tq(N.element,h+" This link opens in new tab"));!(N=this.api.Y())||g.qX(N)||N.controlsType!="3"&&!N.disableOrganicUi||(P=new U8(this.api,this.K,P,C),P.Gi(this.rO),g.D(this, +P));b.adDisclosureBannerRenderer&&(b=g.d(b.adDisclosureBannerRenderer,zEe))&&(P=new u1(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp),P.Gi(this.sX),P.init(Pr("ad-disclosure-banner"),b),g.D(this,P));this.api.Y().D("enable_updated_html5_player_focus_style")&&g.c4(this.element,"ytp-ad-player-overlay-updated-focus-style");C&&this.api.Y().K&&this.j.classList.add("ytp-ad-player-overlay-instream-info--clean-player-mweb");this.show()}; +X_.prototype.clear=function(){this.hide()};vX.prototype.set=function(C,b,h){h=h!==void 0?Date.now()+h:void 0;this.j.set(C,b,h)}; +vX.prototype.get=function(C){return this.j.get(C)}; +vX.prototype.remove=function(C){this.j.remove(C)};var E8=null,nF=null,tM=null,Ypl=null;g.Ol("yt.www.ads.eventcache.getLastCompanionData",function(){return E8}); +g.Ol("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); +g.Ol("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return nF}); +g.Ol("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return tM}); +g.Ol("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return Ypl});var lYK=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);Tv.prototype.handleResponse=function(C,b){if(!b)throw Error("request needs to be passed into ConsistencyService");var h,N;b=((h=b.oR.context)==null?void 0:(N=h.request)==null?void 0:N.consistencyTokenJars)||[];var p;(C=(p=C.responseContext)==null?void 0:p.consistencyTokenJar)&&this.replace(b,C)}; +Tv.prototype.replace=function(C,b){C=g.z(C);for(var h=C.next();!h.done;h=C.next())delete this.j[h.value.encryptedTokenJarContents];Fb6(this,b)};var X50=window.location.hostname.split(".").slice(-2).join("."),Ar;Ix.getInstance=function(){Ar=g.Dx("yt.clientLocationService.instance");Ar||(Ar=new Ix,g.Ol("yt.clientLocationService.instance",Ar));return Ar}; +g.k=Ix.prototype; +g.k.setLocationOnInnerTubeContext=function(C){C.client||(C.client={});if(this.j)C.client.locationInfo||(C.client.locationInfo={}),C.client.locationInfo.latitudeE7=Math.floor(this.j.coords.latitude*1E7),C.client.locationInfo.longitudeE7=Math.floor(this.j.coords.longitude*1E7),C.client.locationInfo.horizontalAccuracyMeters=Math.round(this.j.coords.accuracy),C.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.N||this.locationPlayabilityToken)C.client.locationPlayabilityToken=this.N|| +this.locationPlayabilityToken}; +g.k.handleResponse=function(C){var b;C=(b=C.responseContext)==null?void 0:b.locationPlayabilityToken;C!==void 0&&(this.locationPlayabilityToken=C,this.j=void 0,g.BC("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=BX(this))&&this.localStorage.set("yt-location-playability-token",C,15552E3):g.Xu("YT_CL",JSON.stringify({loctok:C}),15552E3,X50,!0))}; +g.k.clearLocationPlayabilityToken=function(C){C==="TVHTML5"?(this.localStorage=BX(this))&&this.localStorage.remove("yt-location-playability-token"):g.sS("YT_CL");this.N=void 0;this.K!==-1&&(clearTimeout(this.K),this.K=-1)}; +g.k.getCurrentPositionFromGeolocation=function(){var C=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var b=!1,h=1E4;g.BC("INNERTUBE_CLIENT_NAME")==="MWEB"&&(b=!0,h=15E3);return new Promise(function(N,p){navigator.geolocation.getCurrentPosition(function(P){C.j=P;N(P)},function(P){p(P)},{enableHighAccuracy:b, +maximumAge:0,timeout:h})})}; +g.k.createUnpluggedLocationInfo=function(C){var b={};C=C.coords;if(C==null?0:C.latitude)b.latitudeE7=Math.floor(C.latitude*1E7);if(C==null?0:C.longitude)b.longitudeE7=Math.floor(C.longitude*1E7);if(C==null?0:C.accuracy)b.locationRadiusMeters=Math.round(C.accuracy);return b}; +g.k.createLocationInfo=function(C){var b={};C=C.coords;if(C==null?0:C.latitude)b.latitudeE7=Math.floor(C.latitude*1E7);if(C==null?0:C.longitude)b.longitudeE7=Math.floor(C.longitude*1E7);return b};g.k=HQl.prototype;g.k.contains=function(C){return Object.prototype.hasOwnProperty.call(this.j,C)}; +g.k.get=function(C){if(this.contains(C))return this.j[C]}; +g.k.set=function(C,b){this.j[C]=b}; +g.k.Yo=function(){return Object.keys(this.j)}; +g.k.remove=function(C){delete this.j[C]};wG.prototype.getModuleId=function(C){return C.serviceId.getModuleId()}; +wG.prototype.get=function(C){a:{var b=this.mappings.get(C.toString());switch(b.type){case "mapping":C=b.value;break a;case "factory":b=b.value();this.mappings.set(C.toString(),{type:"mapping",value:b});C=b;break a;default:C=Pv(b)}}return C}; +wG.prototype.registerService=function(C,b){this.mappings.set(C.toString(),{type:"mapping",value:b});return C}; +new wG;var y2={},Vi6=(y2.WEB_UNPLUGGED="^unplugged/",y2.WEB_UNPLUGGED_ONBOARDING="^unplugged/",y2.WEB_UNPLUGGED_OPS="^unplugged/",y2.WEB_UNPLUGGED_PUBLIC="^unplugged/",y2.WEB_CREATOR="^creator/",y2.WEB_KIDS="^kids/",y2.WEB_EXPERIMENTS="^experiments/",y2.WEB_MUSIC="^music/",y2.WEB_REMIX="^music/",y2.WEB_MUSIC_EMBEDDED_PLAYER="^music/",y2.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",y2);hN.prototype.G=function(C,b,h){b=b===void 0?{}:b;h=h===void 0?at:h;var N={context:g.xH(C.clickTrackingParams,!1,this.X)};var p=this.K(C);if(p){this.j(N,p,b);var P;b=g.bg(this.N());(p=(P=g.d(C.commandMetadata,g.St))==null?void 0:P.apiUrl)&&(b=p);P=Sex(OS(b));C=Object.assign({},{command:C},void 0);N={input:P,ul:vQ(P),oR:N,config:C};N.config.TW?N.config.TW.identity=h:N.config.TW={identity:h};return N}g.Ri(new g.tJ("Error: Failed to create Request from Command.",C))}; +g.eV.Object.defineProperties(hN.prototype,{X:{configurable:!0,enumerable:!0,get:function(){return!1}}}); +g.S(Nr,hN);g.S(lg,Nr);lg.prototype.G=function(){return{input:"/getDatasyncIdsEndpoint",ul:vQ("/getDatasyncIdsEndpoint","GET"),oR:{}}}; +lg.prototype.N=function(){return[]}; +lg.prototype.K=function(){}; +lg.prototype.j=function(){};var K$j={},NjW=(K$j.GET_DATASYNC_IDS=Cg(lg),K$j);var rn={},sIE=(rn["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",rn["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",rn["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",rn["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",rn["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",rn["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",rn["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", +rn["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",rn["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",rn["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",rn["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",rn["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",rn["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",rn["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",rn["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", +rn["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",rn["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",rn["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",rn["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",rn["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",rn["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",rn["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", +rn["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",rn.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",rn["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",rn["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",rn["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",rn["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",rn["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",rn["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", +rn["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",rn["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",rn["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",rn["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",rn["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",rn["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",rn["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",rn["dialog.copyright_strikes"]= +"LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",rn["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",rn["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",rn.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",rn["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",rn["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",rn["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",rn["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",rn["owner.asset_groups"]= +"LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",rn["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",rn["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",rn["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",rn["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",rn["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",rn["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",rn["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",rn["owner.delivery"]= +"LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",rn["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",rn["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",rn["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",rn["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",rn["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",rn["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",rn["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",rn["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", +rn["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",rn["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",rn["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",rn["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",rn["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",rn["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",rn["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",rn["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",rn["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", +rn["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",rn["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",rn["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",rn["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",rn["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",rn["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",rn["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",rn["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", +rn),iz={},r0_=(iz.auto_search="LATENCY_ACTION_AUTO_SEARCH",iz.ad_to_ad="LATENCY_ACTION_AD_TO_AD",iz.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",iz.app_startup="LATENCY_ACTION_APP_STARTUP",iz.browse="LATENCY_ACTION_BROWSE",iz.cast_splash="LATENCY_ACTION_CAST_SPLASH",iz.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",iz.channels="LATENCY_ACTION_CHANNELS",iz.chips="LATENCY_ACTION_CHIPS",iz.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",iz.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", +iz.editor="LATENCY_ACTION_EDITOR",iz.embed="LATENCY_ACTION_EMBED",iz.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",iz.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",iz.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",iz.explore="LATENCY_ACTION_EXPLORE",iz.favorites="LATENCY_ACTION_FAVORITES",iz.home="LATENCY_ACTION_HOME",iz.inboarding="LATENCY_ACTION_INBOARDING",iz.library="LATENCY_ACTION_LIBRARY",iz.live="LATENCY_ACTION_LIVE",iz.live_pagination= +"LATENCY_ACTION_LIVE_PAGINATION",iz.management="LATENCY_ACTION_MANAGEMENT",iz.mini_app="LATENCY_ACTION_MINI_APP_PLAY",iz.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",iz.onboarding="LATENCY_ACTION_ONBOARDING",iz.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",iz.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",iz.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",iz.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",iz.prebuffer="LATENCY_ACTION_PREBUFFER", +iz.prefetch="LATENCY_ACTION_PREFETCH",iz.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",iz.profile_switcher="LATENCY_ACTION_LOGIN",iz.projects="LATENCY_ACTION_PROJECTS",iz.reel_watch="LATENCY_ACTION_REEL_WATCH",iz.results="LATENCY_ACTION_RESULTS",iz.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",iz.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",iz.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",iz.review="LATENCY_ACTION_REVIEW",iz.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER", +iz.search_ui="LATENCY_ACTION_SEARCH_UI",iz.search_suggest="LATENCY_ACTION_SUGGEST",iz.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",iz.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",iz.seek="LATENCY_ACTION_PLAYER_SEEK",iz.settings="LATENCY_ACTION_SETTINGS",iz.store="LATENCY_ACTION_STORE",iz.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",iz.tenx="LATENCY_ACTION_TENX",iz.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",iz.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",iz.watch="LATENCY_ACTION_WATCH", +iz.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",iz["watch,watch7"]="LATENCY_ACTION_WATCH",iz["watch,watch7_html5"]="LATENCY_ACTION_WATCH",iz["watch,watch7ad"]="LATENCY_ACTION_WATCH",iz["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",iz.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",iz.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",iz.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",iz.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",iz.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE", +iz.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",iz.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",iz.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",iz);Object.assign(r0_,sIE);g.S(Mr,lZ);var WbU=new ot("aft-recorded",Mr);var Oso=g.sl.ytLoggingGelSequenceIdObj_||{};g.Ol("ytLoggingGelSequenceIdObj_",Oso);var fg=g.sl.ytLoggingLatencyUsageStats_||{};g.Ol("ytLoggingLatencyUsageStats_",fg);qr.prototype.tick=function(C,b,h,N){AN(this,"tick_"+C+"_"+b)||g.en("latencyActionTicked",{tickName:C,clientActionNonce:b},{timestamp:h,cttAuthInfo:N})}; +qr.prototype.info=function(C,b,h){var N=Object.keys(C).join("");AN(this,"info_"+N+"_"+b)||(C=Object.assign({},C),C.clientActionNonce=b,g.en("latencyActionInfo",C,{cttAuthInfo:h}))}; +qr.prototype.jspbInfo=function(C,b,h){for(var N="",p=0;p=p.length?(b.append(p),C-=p.length):C?(b.append(new Uint8Array(p.buffer,p.byteOffset,C)),h.append(new Uint8Array(p.buffer,p.byteOffset+C,p.length-C)),C=0):h.append(p);return{Xt:b,j9:h}}; +g.k.isFocused=function(C){return C>=this.GQ&&C=64&&(this.W.set(C.subarray(0,64-this.K),this.K),b=64-this.K,this.K=0,d5l(this,this.W,0));for(;b+64<=h;b+=64)d5l(this,C,b);b=this.start&&(C=2&&h.ssdaiAdsConfig&&ZK("Unexpected ad placement renderers length",C.slot,null,{length:N.length});N.some(function(p){var P,c,e,L;return!!((P=p.renderer)==null?0:(c=P.linearAdSequenceRenderer)==null?0:(e=c.linearAds)==null?0:e.length)||!((L=p.renderer)==null||!L.instreamVideoAdRenderer)})||jS1(C)})}; +j0.prototype.eI=function(){nMl(this.j)};cZ.prototype.FA=function(){var C=this;EMU(this.K,function(){var b=pk(C.slot.clientMetadata,"metadata_type_ad_break_request_data");return b.cueProcessedMs?C.j.get().fetch({X7:b.getAdBreakUrl,cJ:new g.Ny(b.J$,b.HY),cueProcessedMs:b.cueProcessedMs}):C.j.get().fetch({X7:b.getAdBreakUrl,cJ:new g.Ny(b.J$,b.HY)})})}; +cZ.prototype.eI=function(){nMl(this.K)};kW.prototype.FA=function(){var C=this.slot.clientMetadata,b,h=(b=this.slot.fulfilledLayout)!=null?b:pk(C,"metadata_type_fulfilled_layout");qrl(this.callback,this.slot,h)}; +kW.prototype.eI=function(){GZ(this.callback,this.slot,new I("Got CancelSlotFulfilling request for "+this.slot.slotType+" in DirectFulfillmentAdapter.",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_FULFILLMENT_CANCELLATION_REQUEST"),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")};L8.prototype.build=function(C,b){return b.fulfilledLayout||e0(b,{qs:["metadata_type_fulfilled_layout"]})?new kW(C,b):this.N(C,b)};g.S(ZJ,L8); +ZJ.prototype.N=function(C,b){if(e0(b,{qs:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new j0(C,b,this.j,this.K,this.BF,this.Zf,this.M2,this.EX,this.qo);if(e0(b,{qs:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new cZ(C,b,this.j,this.K,this.BF,this.Zf);throw new I("Unsupported slot with type: "+b.slotType+" and client metadata: "+Pk(b.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.S(YW,L8);YW.prototype.N=function(C,b){throw new I("Unsupported slot with type: "+b.slotType+" and client metadata: "+Pk(b.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.k=cuc.prototype;g.k.Fq=function(){return this.slot}; +g.k.b$=function(){return this.layout}; +g.k.init=function(){}; +g.k.release=function(){}; +g.k.startRendering=function(C){if(C.layoutId!==this.layout.layoutId)this.callback.XH(this.slot,C,new No("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED");else{var b=pk(C.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.VV(this.slot,C),mnK(this.N, +this.slot,b)):ZK("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,C)}}; +g.k.XZ=function(C,b){C.layoutId!==this.layout.layoutId?this.callback.XH(this.slot,C,new No("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):(this.callback.oV(this.slot,C,b),ep1(this),L3c(this))};g.S(Gk,g.cr);g.k=Gk.prototype;g.k.Fq=function(){return this.K.slot}; +g.k.b$=function(){return this.K.layout}; +g.k.init=function(){this.N.get().addListener(this)}; +g.k.release=function(){this.N.get().removeListener(this);this.dispose()}; +g.k.ZK=function(){}; +g.k.w7=function(){}; +g.k.XJ=function(){}; +g.k.Ob=function(){}; +g.k.startRendering=function(C){var b=this;Ff(this.K,C,function(){return void b.Oh()})}; +g.k.Oh=function(){this.N.get().Oh(this.j)}; +g.k.XZ=function(C,b){var h=this;Ff(this.K,C,function(){var N=h.N.get();b7W(N,h.j,3);h.j=[];h.callback.oV(h.slot,C,b)})}; +g.k.wO=function(){this.N.HE()||this.N.get().removeListener(this);g.cr.prototype.wO.call(this)}; +g.eV.Object.defineProperties(Gk.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.K.slot}}, +layout:{configurable:!0,enumerable:!0,get:function(){return this.K.layout}}});mU.prototype.I$=function(C,b){b=b===void 0?!1:b;var h=(this.N.get(C)||[]).concat();if(b=b&&aN1(C)){var N=this.N.get(b);N&&h.push.apply(h,g.M(N))}yu(this,C,h);this.j.add(C);b&&this.j.add(b)}; +mU.prototype.LJ=function(C,b){b=b===void 0?!1:b;if(!this.j.has(C)){var h=b&&aN1(C);h&&(b=!this.j.has(h));this.I$(C,b)}};g.S(F36,jv);g.S(Rk,Gk);g.k=Rk.prototype;g.k.sR=function(C,b){HZ("ads-engagement-panel-layout",C,this.W.get().Gn,this.M2.get(),this.X,this.G,this.Fq(),this.b$(),b)}; +g.k.startRendering=function(C){$W(this.gO,this.Fq(),this.b$(),g.d(this.b$().renderingContent,Nx),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(b,h,N,p,P){return new F36(b,h,N,p,P)},this.j); +Gk.prototype.startRendering.call(this,C)}; +g.k.VV=function(C,b){this.G===b.layoutId&&(this.X===null?this.X=this.M2.get().Uq():ZK("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; +g.k.oV=function(){}; +g.k.zo=function(){}; +g.k.bH=function(){}; +g.k.lH=function(){}; +g.k.Jb=function(){}; +g.k.QP=function(){}; +g.k.tL=function(){}; +g.k.CX=function(){}; +g.k.d0=function(){}; +g.k.Go=function(){}; +g.k.kJ=function(){}; +g.k.wO=function(){oH(this.vW(),this);Gk.prototype.wO.call(this)};g.S(SYl,jv);g.S(Qu,Gk);g.k=Qu.prototype;g.k.sR=function(C,b){HZ("banner-image",C,this.W.get().Gn,this.M2.get(),this.X,this.G,this.Fq(),this.b$(),b)}; +g.k.startRendering=function(C){$W(this.gO,this.Fq(),this.b$(),g.d(this.b$().renderingContent,bE),this.callback,"metadata_type_banner_image_layout_view_model",function(b,h,N,p,P){return new SYl(b,h,N,p,P)},this.j); +Gk.prototype.startRendering.call(this,C)}; +g.k.VV=function(C,b){this.G===b.layoutId&&(this.X===null?this.X=this.M2.get().Uq():ZK("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; +g.k.oV=function(){}; +g.k.zo=function(){}; +g.k.bH=function(){}; +g.k.lH=function(){}; +g.k.Jb=function(){}; +g.k.QP=function(){}; +g.k.tL=function(){}; +g.k.CX=function(){}; +g.k.d0=function(){}; +g.k.Go=function(){}; +g.k.kJ=function(){}; +g.k.wO=function(){oH(this.vW(),this);Gk.prototype.wO.call(this)};g.S(UP,jv);g.S(Xf,Gk);g.k=Xf.prototype;g.k.sR=function(C,b){HZ("action-companion",C,this.W.get().Gn,this.M2.get(),this.X,this.G,this.Fq(),this.b$(),b)}; +g.k.startRendering=function(C){$W(this.gO,this.Fq(),this.b$(),g.d(this.b$().renderingContent,xg),this.callback,"metadata_type_action_companion_ad_renderer",function(b,h,N,p,P){return new UP(b,h,N,p,P)},this.j); +Gk.prototype.startRendering.call(this,C)}; +g.k.VV=function(C,b){b.layoutId===this.layout.layoutId?this.gO.LJ("impression"):this.G===b.layoutId&&(this.X===null?this.X=this.M2.get().Uq():ZK("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; +g.k.oV=function(){}; +g.k.zo=function(){}; +g.k.bH=function(){}; +g.k.lH=function(){}; +g.k.Jb=function(){}; +g.k.QP=function(){}; +g.k.tL=function(){}; +g.k.CX=function(){}; +g.k.d0=function(){}; +g.k.Go=function(){}; +g.k.kJ=function(){}; +g.k.wO=function(){oH(this.vW(),this);Gk.prototype.wO.call(this)};g.S(HtV,jv);g.S(K8,Gk);g.k=K8.prototype;g.k.sR=function(C,b){HZ("image-companion",C,this.W.get().Gn,this.M2.get(),this.X,this.G,this.Fq(),this.b$(),b)}; +g.k.startRendering=function(C){$W(this.gO,this.Fq(),this.b$(),g.d(this.b$().renderingContent,wq),this.callback,"metadata_type_image_companion_ad_renderer",function(b,h,N,p,P){return new HtV(b,h,N,p,P)},this.j); +Gk.prototype.startRendering.call(this,C)}; +g.k.VV=function(C,b){b.layoutId===this.layout.layoutId?this.gO.LJ("impression"):this.G===b.layoutId&&(this.X===null?this.X=this.M2.get().Uq():ZK("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; +g.k.oV=function(){}; +g.k.zo=function(){}; +g.k.bH=function(){}; +g.k.lH=function(){}; +g.k.Jb=function(){}; +g.k.QP=function(){}; +g.k.tL=function(){}; +g.k.CX=function(){}; +g.k.d0=function(){}; +g.k.Go=function(){}; +g.k.kJ=function(){}; +g.k.wO=function(){oH(this.vW(),this);Gk.prototype.wO.call(this)};g.S(MvS,jv);g.S(sP,Gk);g.k=sP.prototype;g.k.sR=function(C,b){HZ("shopping-companion",C,this.W.get().Gn,this.M2.get(),this.X,this.G,this.Fq(),this.b$(),b)}; +g.k.startRendering=function(C){$W(this.gO,this.Fq(),this.b$(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(b,h,N,p,P){return new MvS(b,h,N,p,P)},this.j); +Gk.prototype.startRendering.call(this,C)}; +g.k.VV=function(C,b){b.layoutId===this.layout.layoutId?this.gO.LJ("impression"):this.G===b.layoutId&&(this.X===null?this.X=this.M2.get().Uq():ZK("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; +g.k.oV=function(){}; +g.k.zo=function(){}; +g.k.bH=function(){}; +g.k.lH=function(){}; +g.k.Jb=function(){}; +g.k.QP=function(){}; +g.k.tL=function(){}; +g.k.CX=function(){}; +g.k.d0=function(){}; +g.k.Go=function(){}; +g.k.kJ=function(){}; +g.k.wO=function(){oH(this.vW(),this);Gk.prototype.wO.call(this)};g.S(vZ,Gk);g.k=vZ.prototype;g.k.startRendering=function(C){$W(this.gO,this.Fq(),this.b$(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(b,h,N,p,P){return new UP(b,h,N,p,P)},this.j); +Gk.prototype.startRendering.call(this,C)}; +g.k.VV=function(){}; +g.k.oV=function(){}; +g.k.zo=function(){}; +g.k.bH=function(){}; +g.k.lH=function(){}; +g.k.Jb=function(){}; +g.k.QP=function(){}; +g.k.tL=function(){}; +g.k.CX=function(){}; +g.k.d0=function(){}; +g.k.Go=function(){}; +g.k.kJ=function(){}; +g.k.wO=function(){oH(this.vW(),this);Gk.prototype.wO.call(this)}; +g.k.sR=function(){};g.k=ruW.prototype;g.k.Fq=function(){return this.slot}; +g.k.b$=function(){return this.layout}; +g.k.init=function(){this.EX.get().addListener(this);this.EX.get().oH.push(this);var C=pk(this.layout.clientMetadata,"metadata_type_video_length_seconds"),b=pk(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");Vu(this.layout.KJ)&&hG(this.ZJ.get(),this.layout.layoutId,{w_:b,HV:C,listener:this})}; +g.k.release=function(){this.EX.get().removeListener(this);T3K(this.EX.get(),this);Vu(this.layout.KJ)&&Nq(this.ZJ.get(),this.layout.layoutId)}; +g.k.startRendering=function(C){this.callback.VV(this.slot,C)}; +g.k.XZ=function(C,b){SMS(this.Zf.get())&&!this.j&&(this.gO.LJ("abandon"),this.j=!0);this.callback.oV(this.slot,C,b)}; +g.k.Lf=function(C){switch(C.id){case "part2viewed":this.gO.LJ("start");this.gO.LJ("impression");break;case "videoplaytime25":this.gO.LJ("first_quartile");break;case "videoplaytime50":this.gO.LJ("midpoint");break;case "videoplaytime75":this.gO.LJ("third_quartile");break;case "videoplaytime100":SMS(this.Zf.get())?this.j||(this.gO.LJ("complete"),this.j=!0):this.gO.LJ("complete");uG(this.gO)&&iG(this.gO,Infinity,!0);$z_(this.Zf.get())&&OP(this.K,Infinity,!0);break;case "engagedview":uG(this.gO)||this.gO.LJ("progress"); +break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:ZK("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; +g.k.onVolumeChange=function(){}; +g.k.xw=function(){}; +g.k.pX=function(){}; +g.k.Pi=function(){}; +g.k.onFullscreenToggled=function(){}; +g.k.UR=function(){}; +g.k.SQ=function(){}; +g.k.kS=function(C){$z_(this.Zf.get())&&OP(this.K,C*1E3,!1);uG(this.gO)&&iG(this.gO,C*1E3,!1)}; +g.k.Tn=function(){}; +g.k.Sb=function(){this.gO.LJ("active_view_measurable")}; +g.k.Yb=function(){this.gO.LJ("active_view_viewable")}; +g.k.uq=function(){this.gO.LJ("active_view_fully_viewable_audible_half_duration")}; +g.k.iq=function(){this.gO.LJ("audio_measurable")}; +g.k.bq=function(){this.gO.LJ("audio_audible")};g.S(DJ,Gk);g.k=DJ.prototype;g.k.init=function(){Gk.prototype.init.call(this);var C=pk(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.hZ};this.j.push(new zv(C,this.layout.layoutId,pk(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,!0))}; +g.k.pT=function(){this.X||this.EX.get().resumeVideo(1)}; +g.k.startRendering=function(C){Gk.prototype.startRendering.call(this,C);e7(this.EX.get(),"ad-showing");this.callback.VV(this.slot,C);this.G.X3=this}; +g.k.XZ=function(C,b){Gk.prototype.XZ.call(this,C,b);Lz(this.EX.get(),"ad-showing");tG(this.G,this)}; +g.k.sR=function(C){switch(C){case "ad-info-icon-button":(this.X=this.EX.get().eJ(1))||this.EX.get().pauseVideo();break;case "visit-advertiser":this.EX.get().pauseVideo()}}; +g.k.wO=function(){Gk.prototype.wO.call(this)};g.S(dL,jv);g.S(WZ,Gk);g.k=WZ.prototype;g.k.startRendering=function(C){$W(this.gO,this.Fq(),this.b$(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(b,h,N,p,P){return new dL(b,h,N,p,P)},this.j); +Gk.prototype.startRendering.call(this,C)}; +g.k.VV=function(){}; +g.k.oV=function(){}; +g.k.zo=function(){}; +g.k.bH=function(){}; +g.k.lH=function(){}; +g.k.Jb=function(){}; +g.k.QP=function(){}; +g.k.tL=function(){}; +g.k.CX=function(){}; +g.k.d0=function(){}; +g.k.Go=function(){}; +g.k.kJ=function(){}; +g.k.wO=function(){oH(this.vW(),this);Gk.prototype.wO.call(this)}; +g.k.sR=function(){};g.S(EP,jv);g.S(n8,Gk);n8.prototype.init=function(){Gk.prototype.init.call(this);this.j.push(new EP(g.d(this.layout.renderingContent,HA),this.layout.layoutId,{adsClientData:this.layout.hZ}))}; +n8.prototype.sR=function(){zK(this.X.get(),this.G)&&zk(this.M2.get(),3)}; +n8.prototype.startRendering=function(C){Gk.prototype.startRendering.call(this,C);this.callback.VV(this.slot,C)}; +n8.prototype.wO=function(){Gk.prototype.wO.call(this)};g.S(tk,jv);g.S(Tk,Gk);Tk.prototype.init=function(){Gk.prototype.init.call(this);var C=g.d(this.layout.renderingContent,c9)||pk(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),b=S0(this.gO);this.j.push(new tk(C,b,this.layout.layoutId,{adsClientData:this.layout.hZ},!0,!0))}; +Tk.prototype.startRendering=function(C){Gk.prototype.startRendering.call(this,C);this.callback.VV(this.slot,C)}; +Tk.prototype.sR=function(C,b){if(b===this.layout.layoutId)switch(C){case "skip-button":var h;(C=(h=pk(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:h.current)&&C.FM(this.Fq(),this.layout)}}; +Tk.prototype.wO=function(){Gk.prototype.wO.call(this)};Ik.prototype.build=function(C,b,h,N){if(BZ(N,{qs:["metadata_type_ad_break_response_data"],V_:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new cuc(C,h,N,this.K,this.N,this.j);throw new No("Unsupported layout with type: "+N.layoutType+" and client metadata: "+Pk(N.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.S(uWo,jv);g.S(xW,Gk);g.k=xW.prototype;g.k.sR=function(C,b){HZ("ads-engagement-panel",C,this.W.get().Gn,this.M2.get(),this.X,this.G,this.Fq(),this.b$(),b)}; +g.k.startRendering=function(C){$W(this.gO,this.Fq(),this.b$(),g.d(this.b$().renderingContent,CG),this.callback,"metadata_type_ads_engagement_panel_renderer",function(b,h,N,p,P){return new uWo(b,h,N,p,P)},this.j); +Gk.prototype.startRendering.call(this,C)}; +g.k.VV=function(C,b){b.layoutId===this.layout.layoutId?this.gO.LJ("impression"):this.G===b.layoutId&&(this.X===null?this.X=this.M2.get().Uq():ZK("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; +g.k.oV=function(){}; +g.k.zo=function(){}; +g.k.bH=function(){}; +g.k.lH=function(){}; +g.k.Jb=function(){}; +g.k.QP=function(){}; +g.k.tL=function(){}; +g.k.CX=function(){}; +g.k.d0=function(){}; +g.k.Go=function(){}; +g.k.kJ=function(){}; +g.k.wO=function(){oH(this.vW(),this);Gk.prototype.wO.call(this)};g.S(wL,Gk);g.k=wL.prototype;g.k.sR=function(C,b){HZ("top-banner-image-text-icon-buttoned",C,this.W.get().Gn,this.M2.get(),this.X,this.G,this.Fq(),this.b$(),b)}; +g.k.startRendering=function(C){$W(this.gO,this.Fq(),this.b$(),g.d(this.b$().renderingContent,ha),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(b,h,N,p,P){return new dL(b,h,N,p,P)},this.j); +Gk.prototype.startRendering.call(this,C)}; +g.k.VV=function(C,b){this.G===b.layoutId&&(this.X===null?this.X=this.M2.get().Uq():ZK("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; +g.k.oV=function(){}; +g.k.zo=function(){}; +g.k.bH=function(){}; +g.k.lH=function(){}; +g.k.Jb=function(){}; +g.k.QP=function(){}; +g.k.tL=function(){}; +g.k.CX=function(){}; +g.k.d0=function(){}; +g.k.Go=function(){}; +g.k.kJ=function(){}; +g.k.wO=function(){oH(this.vW(),this);Gk.prototype.wO.call(this)};UbS.prototype.build=function(C,b,h,N){if(BZ(N,RpV())||g.d(N.renderingContent,CG)!==void 0)return new xW(C,h,N,this.nj,this.M2,this.vW,this.ZJ,this.j);if(BZ(N,zpl())||g.d(N.renderingContent,xg)!==void 0)return new Xf(C,h,N,this.nj,this.M2,this.vW,this.ZJ,this.j);if(BZ(N,VvW())||g.d(N.renderingContent,wq)!==void 0)return new K8(C,h,N,this.nj,this.M2,this.vW,this.ZJ,this.j);if(BZ(N,qYS()))return new sP(C,h,N,this.nj,this.M2,this.vW,this.ZJ,this.j);if(BZ(N,yul()))return new vZ(C,h,N,this.nj,this.M2,this.vW, +this.ZJ,this.j);if(BZ(N,$b1())||g.d(N.renderingContent,bE)!==void 0)return new Qu(C,h,N,this.nj,this.M2,this.vW,this.ZJ,this.j);if(BZ(N,QSc())||g.d(N.renderingContent,ha)!==void 0)return new wL(C,h,N,this.nj,this.M2,this.vW,this.ZJ,this.j);if(BZ(N,itc()))return new WZ(C,h,N,this.nj,this.M2,this.vW,this.ZJ,this.j);if(BZ(N,GYx())||g.d(N.renderingContent,Nx)!==void 0)return new Rk(C,h,N,this.nj,this.M2,this.vW,this.ZJ,this.j);throw new No("Unsupported layout with type: "+N.layoutType+" and client metadata: "+ +Pk(N.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};Xrl.prototype.build=function(C,b,h,N){if(BZ(N,{qs:["metadata_type_linked_player_bytes_layout_id"],V_:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new n8(C,h,N,this.nj,this.M2,this.j);throw new No("Unsupported layout with type: "+N.layoutType+" and client metadata: "+Pk(N.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.k=K3V.prototype;g.k.Fq=function(){return this.slot}; +g.k.b$=function(){return this.layout}; +g.k.init=function(){}; +g.k.release=function(){}; +g.k.startRendering=function(C){C.layoutId!==this.layout.layoutId?this.callback.XH(this.slot,C,new No("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.callback.VV(this.slot,C),this.gO.LJ("impression"),vF(this.Ye,C,"normal"))}; +g.k.XZ=function(C,b){C.layoutId!==this.layout.layoutId?this.callback.XH(this.slot,C,new No("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):this.callback.oV(this.slot,C,b)};g.k=OtW.prototype;g.k.Fq=function(){return this.slot}; +g.k.b$=function(){return this.layout}; +g.k.init=function(){}; +g.k.release=function(){}; +g.k.startRendering=function(C){C.layoutId!==this.layout.layoutId?this.callback.XH(this.slot,C,new No("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.callback.VV(this.slot,C),this.gO.LJ("impression"),vF(this.Ye,C,"normal"))}; +g.k.XZ=function(C,b){C.layoutId!==this.layout.layoutId?this.callback.XH(this.slot,C,new No("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):this.callback.oV(this.slot,C,b)};CE.prototype.build=function(C,b,h,N){if(!this.Zf.get().Z.Y().D("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(BZ(N,sSl()))return new K3V(C,h,N,this.M2,this.Ye)}else if(BZ(N,{qs:[],V_:["LAYOUT_TYPE_FORECASTING"]}))return new OtW(C,h,N,this.M2,this.Ye);throw new No("Unsupported layout with type: "+N.layoutType+" and client metadata: "+Pk(N.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.S(dbS,jv);g.S(bi,Gk);g.k=bi.prototype;g.k.init=function(){Gk.prototype.init.call(this);var C=g.d(this.layout.renderingContent,jZ)||pk(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),b={adsClientData:this.layout.hZ};this.j.push(new dbS(C,pk(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,b))}; +g.k.pT=function(){this.X||this.EX.get().resumeVideo(2)}; +g.k.startRendering=function(C){Gk.prototype.startRendering.call(this,C);this.callback.VV(this.slot,C);this.G.X3=this}; +g.k.XZ=function(C,b){Gk.prototype.XZ.call(this,C,b);tG(this.G,this)}; +g.k.sR=function(C){if(zK(this.W.get(),this.J))switch(C){case "visit-advertiser-link":zk(this.M2.get(),3)}switch(C){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.X||this.EX.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.X=this.EX.get().eJ(2))||this.EX.get().pauseVideo();break;case "visit-advertiser-link":this.EX.get().pauseVideo();W31(this).JF();break;case "skip-button":if(C=W31(this), +this.layout.renderingContent&&!Ck(this.layout.clientMetadata,"metadata_type_dai")||!C.a8){var b;(C=(b=pk(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:b.current)&&C.FM(this.Fq(),this.layout)}else ZK("Requesting to skip by LegacyPlayerBytes when components enabled"),C.zy(this.Fq(),this.layout)}}; +g.k.wO=function(){Gk.prototype.wO.call(this)};g.S(hm,Gk);g.k=hm.prototype;g.k.init=function(){Gk.prototype.init.call(this);var C=g.d(this.layout.renderingContent,P9)||pk(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),b={adsClientData:this.layout.hZ},h;(h=!!this.layout.renderingContent)||(h=!Nw(this).a8);this.j.push(new zv(C,this.layout.layoutId,pk(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),b,h))}; +g.k.pT=function(){this.X||this.EX.get().resumeVideo(2)}; +g.k.startRendering=function(C){Gk.prototype.startRendering.call(this,C);this.callback.VV(this.slot,C);this.G.X3=this}; +g.k.XZ=function(C,b){Gk.prototype.XZ.call(this,C,b);tG(this.G,this)}; +g.k.sR=function(C){if(zK(this.W.get(),this.J))switch(C){case "visit-advertiser":zk(this.M2.get(),3)}switch(C){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.X||this.EX.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.X=this.EX.get().eJ(2))||this.EX.get().pauseVideo();break;case "visit-advertiser":this.EX.get().pauseVideo();Nw(this).JF();break;case "skip-button":if(C=Nw(this),this.layout.renderingContent&& +!Ck(this.layout.clientMetadata,"metadata_type_dai")||!C.a8){var b;(C=(b=pk(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:b.current)&&C.FM(this.Fq(),this.layout)}else ZK("Requesting to skip by LegacyPlayerBytes"),C.zy(this.Fq(),this.layout)}}; +g.k.wO=function(){Gk.prototype.wO.call(this)};g.S(nYl,jv);g.S(ge,Gk);g.k=ge.prototype;g.k.startRendering=function(C){var b=this;Ff(this.K,C,function(){b.j.push(new nYl(pk(b.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),C.layoutId,C.hZ));b.Oh();b.callback.VV(b.slot,C);g.B(bQ(b.EX.get(),1),512)&&b.callback.XH(b.Fq(),b.b$(),new No("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; +g.k.SQ=function(){}; +g.k.UR=function(C){if(C.state.isError()){var b;this.callback.XH(this.Fq(),this.b$(),new No("A player error happened during adNotify",{playerErrorCode:(b=C.state.N9)==null?void 0:b.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; +g.k.onFullscreenToggled=function(){}; +g.k.pX=function(){}; +g.k.Pi=function(){}; +g.k.xw=function(){}; +g.k.onVolumeChange=function(){}; +g.k.Lf=function(){}; +g.k.Tn=function(){}; +g.k.sR=function(){};g.S(TKl,jv);g.S(pE,Gk);pE.prototype.init=function(){Gk.prototype.init.call(this);var C=g.d(this.layout.renderingContent,k2),b=S0(this.gO);this.j.push(new TKl(C,b,this.layout.layoutId,{adsClientData:this.layout.hZ}))}; +pE.prototype.startRendering=function(C){Gk.prototype.startRendering.call(this,C);this.callback.VV(this.slot,C)}; +pE.prototype.sR=function(C,b){if(b===this.layout.layoutId)switch(C){case "skip-button":var h;(C=(h=pk(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:h.current)&&C.FM(this.Fq(),this.layout)}}; +pE.prototype.wO=function(){Gk.prototype.wO.call(this)};BKl.prototype.build=function(C,b,h,N){if(C=eZ(C,h,N,this.nj,this.EX,this.M2,this.K,this.j,this.Zf))return C;throw new No("Unsupported layout with type: "+N.layoutType+" and client metadata: "+Pk(N.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.k=INS.prototype;g.k.Fq=function(){return this.slot}; +g.k.b$=function(){return this.layout}; +g.k.init=function(){this.EX.get().addListener(this);this.EX.get().oH.push(this);var C=this.Wz(),b=pk(this.layout.clientMetadata,"metadata_type_active_view_traffic_type"),h=pk(this.layout.clientMetadata,"metadata_type_active_view_identifier");Vu(this.layout.KJ)&&hG(this.ZJ.get(),this.layout.layoutId,{w_:b,HV:C,listener:this,Ko:h})}; +g.k.release=function(){this.EX.get().removeListener(this);T3K(this.EX.get(),this);Vu(this.layout.KJ)&&Nq(this.ZJ.get(),this.layout.layoutId)}; +g.k.startRendering=function(C){this.callback.VV(this.slot,C)}; +g.k.XZ=function(C,b){Y2(this,"abandon");this.callback.oV(this.slot,C,b)}; +g.k.Lf=function(C){switch(C.id){case "part2viewed":this.gO.LJ("start");this.gO.LJ("impression");break;case "videoplaytime25":this.gO.LJ("first_quartile");break;case "videoplaytime50":this.gO.LJ("midpoint");break;case "videoplaytime75":this.gO.LJ("third_quartile");break;case "videoplaytime100":Y2(this,"complete");uG(this.gO)&&iG(this.gO,Infinity,!0);break;case "engagedview":uG(this.gO)||this.gO.LJ("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; +default:ZK("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; +g.k.onVolumeChange=function(){}; +g.k.xw=function(){}; +g.k.pX=function(){}; +g.k.Pi=function(){}; +g.k.onFullscreenToggled=function(){}; +g.k.UR=function(C){this.j||(g.l1(C,4)&&!g.l1(C,2)?rL(this.gO,"pause"):ax(C,4)<0&&!(ax(C,2)<0)&&rL(this.gO,"resume"))}; +g.k.SQ=function(){}; +g.k.kS=function(C){uG(this.gO)&&iG(this.gO,C*1E3,!1)}; +g.k.Tn=function(){Y2(this,"swipe")}; +g.k.Sb=function(){this.gO.LJ("active_view_measurable")}; +g.k.Yb=function(){this.gO.LJ("active_view_viewable")}; +g.k.uq=function(){this.gO.LJ("active_view_fully_viewable_audible_half_duration")}; +g.k.iq=function(){this.gO.LJ("audio_measurable")}; +g.k.bq=function(){this.gO.LJ("audio_audible")}; +g.k.Wz=function(){return this.layout.renderingContent?Y4(this.fO.get(),1).vD:pk(this.layout.clientMetadata,"metadata_type_video_length_seconds")};xbH.prototype.build=function(C,b,h,N){b=["metadata_type_ad_placement_config"];for(var p=g.z(f8()),P=p.next();!P.done;P=p.next())b.push(P.value);if(BZ(N,{qs:b,V_:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return h.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new INS(C,h,N,this.EX,this.M2,this.Zf,this.ZJ,this.fO):new ruW(C,h,N,this.EX,this.M2,this.Hb,this.Zf,this.ZJ);throw new No("Unsupported layout with type: "+N.layoutType+" and client metadata: "+Pk(N.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory."); +};var F7={contentCpn:"",d_:new Map};cMx.prototype.jC=function(C,b){var h={};b=Object.assign({},b,(h.cc=this.Zv.fI(),h));this.Zv.Z.jp(C,b)};var gQE,UI; +gQE={bZX:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",Xi4:"AUTHENTICATION_MALFORMED",wih:"AUTHENTICATION_MISSING",ZfX:"BAD_REQUEST",sFD:"CAST_SESSION_DEVICE_MISMATCHED",owz:"CAST_SESSION_VIDEO_MISMATCHED",GnX:"CAST_TOKEN_EXPIRED",Ewi:"CAST_TOKEN_FAILED",aop:"CAST_TOKEN_MALFORMED",Dlp:"CGI_PARAMS_MALFORMED",Hf$:"CGI_PARAMS_MISSING",V1p:"DEVICE_FALLBACK",GQi:"GENERIC_WITH_LINK_AND_CPN",EsE:"ERROR_HDCP",aTh:"LICENSE",H5$:"VIDEO_UNAVAILABLE",cRi:"FORMAT_UNAVAILABLE",tL$:"GEO_FAILURE", +eth:"HTML5_AUDIO_RENDERER_ERROR",O5O:"GENERIC_WITHOUT_LINK",ARD:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",Iuf:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",vfO:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",j0$:"HTML5_SPS_UMP_STATUS_REJECTED",qcp:"INVALID_DRM_MESSAGE",O2O:"PURCHASE_NOT_FOUND",AjD:"PURCHASE_REFUNDED",wM6:"RENTAL_EXPIRED",de$:"RETRYABLE_ERROR",Dei:"SERVER_ERROR",fRh:"SIGNATURE_EXPIRED",uC6:"STOPPED_BY_ANOTHER_PLAYBACK",SSo:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",YSi:"STREAMING_NOT_ALLOWED", +goo:"STREAM_LICENSE_NOT_FOUND",TGo:"TOO_MANY_REQUESTS",VJ2:"TOO_MANY_REQUESTS_WITH_LINK",ejX:"TOO_MANY_STREAMS_PER_ENTITLEMENT",OSX:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",amO:"VIDEO_FORBIDDEN",DG6:"VIDEO_NOT_FOUND",xlD:"BROWSER_OR_EXTENSION_ERROR"};UI={}; +g.tO=(UI.ALREADY_PINNED_ON_A_DEVICE="This video has already been downloaded on the maximum number of devices allowed by the copyright holder. Before you can play the video here, it needs to be unpinned on another device.",UI.DEVICE_FALLBACK="Sorry, this video is not available on this device.",UI.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",UI.LICENSE="Sorry, there was an error licensing this video.",UI.VIDEO_UNAVAILABLE= +"Video unavailable",UI.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",UI.GEO_FAILURE="This video isn't available in your country.",UI.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",UI.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",UI.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",UI.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="Your browser does not currently recognize any of the video formats available. $BEGIN_LINKClick here to visit our frequently asked questions about HTML5 video.$END_LINK", +UI.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",UI.HTML5_SPS_UMP_STATUS_REJECTED="Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",UI.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",UI.PURCHASE_NOT_FOUND="This video requires payment.",UI.PURCHASE_REFUNDED="This video's purchase has been refunded.",UI.RENTAL_EXPIRED="This video's rental has expired.",UI.CAST_SESSION_DEVICE_MISMATCHED= +"The device in the cast session doesn't match the requested one.",UI.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",UI.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",UI.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",UI.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",UI.SERVER_ERROR="There was an internal server error. Please try again later.",UI.STOPPED_BY_ANOTHER_PLAYBACK= +"Your account is playing this video in another location. Please reload this page to resume watching.",UI.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",UI.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",UI.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",UI.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",UI.TOO_MANY_REQUESTS="Please log in to watch this video.", +UI.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",UI.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",UI.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",UI.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",UI.VIDEO_FORBIDDEN="Access to this video is forbidden.",UI.VIDEO_NOT_FOUND="This video can not be found.",UI.BROWSER_OR_EXTENSION_ERROR= +"Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",UI);var pvp;var PKI=g.iC(),j6C=PKI.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!j6C||j6C.length<2)pvp=void 0;else{var cxE=PKI.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);pvp=cxE&&cxE.length===6?Number(cxE[5].replace("_",".")):0}var wO=pvp,Dw=wO>=0;g.S(g.ui,AJ);g.ui.prototype.S=function(C,b,h,N,p){return AJ.prototype.S.call(this,C,b,h,N,p)};var XU={},PR=(XU.FAIRPLAY="fairplay",XU.PLAYREADY="playready",XU.WIDEVINE="widevine",XU.CLEARKEY=null,XU.FLASHACCESS=null,XU.UNKNOWN=null,XU.WIDEVINE_CLASSIC=null,XU);RT.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var KK={},Zl=(KK.WIDTH={name:"width",video:!0,valid:640,US:99999},KK.HEIGHT={name:"height",video:!0,valid:360,US:99999},KK.FRAMERATE={name:"framerate",video:!0,valid:30,US:9999},KK.BITRATE={name:"bitrate",video:!0,valid:3E5,US:2E9},KK.EOTF={name:"eotf",video:!0,valid:"bt709",US:"catavision"},KK.CHANNELS={name:"channels",video:!1,valid:2,US:99},KK.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",US:"invalidformat"},KK.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", +US:"nope"},KK.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",US:"av99.0.05M.08"},KK.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",US:"invalid"},KK);var kx0=["h","H"],erU=["9","("],LP$=["9h","(h"],ZLD=["8","*"],YWd=["a","A"],aDD=["o","O"],lDC=["m","M"],oQI=["mac3","MAC3"],FP$=["meac3","MEAC3"],sI={},NP_=(sI.h=kx0,sI.H=kx0,sI["9"]=erU,sI["("]=erU,sI["9h"]=LP$,sI["(h"]=LP$,sI["8"]=ZLD,sI["*"]=ZLD,sI.a=YWd,sI.A=YWd,sI.o=aDD,sI.O=aDD,sI.m=lDC,sI.M=lDC,sI.mac3=oQI,sI.MAC3=oQI,sI.meac3=FP$,sI.MEAC3=FP$,sI),Gxd=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),TLl=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var x={},On=(x["0"]="f",x["160"]="h",x["133"]="h",x["134"]="h",x["135"]="h",x["136"]="h",x["137"]="h",x["264"]="h",x["266"]="h",x["138"]="h",x["298"]="h",x["299"]="h",x["304"]="h",x["305"]="h",x["214"]="h",x["216"]="h",x["374"]="h",x["375"]="h",x["140"]="a",x["141"]="ah",x["327"]="sa",x["258"]="m",x["380"]="mac3",x["328"]="meac3",x["161"]="H",x["142"]="H",x["143"]="H",x["144"]="H",x["222"]="H",x["223"]="H",x["145"]="H",x["224"]="H",x["225"]="H",x["146"]="H",x["226"]="H",x["227"]="H",x["147"]="H", +x["384"]="H",x["376"]="H",x["385"]="H",x["377"]="H",x["149"]="A",x["261"]="M",x["381"]="MAC3",x["329"]="MEAC3",x["598"]="9",x["278"]="9",x["242"]="9",x["243"]="9",x["244"]="9",x["775"]="9",x["776"]="9",x["777"]="9",x["778"]="9",x["779"]="9",x["780"]="9",x["781"]="9",x["782"]="9",x["783"]="9",x["247"]="9",x["248"]="9",x["353"]="9",x["355"]="9",x["356"]="9",x["271"]="9",x["577"]="9",x["313"]="9",x["579"]="9",x["272"]="9",x["302"]="9",x["303"]="9",x["407"]="9",x["408"]="9",x["308"]="9",x["315"]="9", +x["330"]="9h",x["331"]="9h",x["332"]="9h",x["333"]="9h",x["334"]="9h",x["335"]="9h",x["336"]="9h",x["337"]="9h",x["338"]="so",x["600"]="o",x["250"]="o",x["251"]="o",x["774"]="o",x["194"]="*",x["195"]="*",x["220"]="*",x["221"]="*",x["196"]="*",x["197"]="*",x["279"]="(",x["280"]="(",x["317"]="(",x["318"]="(",x["273"]="(",x["274"]="(",x["357"]="(",x["358"]="(",x["275"]="(",x["359"]="(",x["360"]="(",x["276"]="(",x["583"]="(",x["584"]="(",x["314"]="(",x["585"]="(",x["561"]="(",x["277"]="(",x["361"]="(h", +x["362"]="(h",x["363"]="(h",x["364"]="(h",x["365"]="(h",x["366"]="(h",x["591"]="(h",x["592"]="(h",x["367"]="(h",x["586"]="(h",x["587"]="(h",x["368"]="(h",x["588"]="(h",x["562"]="(h",x["409"]="(",x["410"]="(",x["411"]="(",x["412"]="(",x["557"]="(",x["558"]="(",x["394"]="1",x["395"]="1",x["396"]="1",x["397"]="1",x["398"]="1",x["399"]="1",x["720"]="1",x["721"]="1",x["400"]="1",x["401"]="1",x["571"]="1",x["402"]="1",x["694"]="1h",x["695"]="1h",x["696"]="1h",x["697"]="1h",x["698"]="1h",x["699"]="1h",x["700"]= +"1h",x["701"]="1h",x["702"]="1h",x["703"]="1h",x["386"]="3",x["387"]="w",x["406"]="6",x["787"]="1",x["788"]="1",x["645"]="(",x["646"]="(",x["647"]="(",x["648"]="(",x["649"]="(",x["650"]="(",x["651"]="(",x["652"]="(",x["653"]="(",x["654"]="(",x["655"]="(",x["656"]="(",x["657"]="(",x["658"]="(",x["659"]="(",x["660"]="(",x["661"]="(",x["662"]="(",x["663"]="(",x["664"]="(",x["665"]="(",x["666"]="(",x["667"]="(",x["668"]="(",x["669"]="(",x["670"]="(",x["671"]="(",x["672"]="(",x["673"]="(",x["674"]="(h", +x["675"]="(h",x["676"]="(h",x["677"]="(h",x["678"]="(h",x["679"]="(h",x["680"]="(h",x["681"]="(h",x["682"]="(h",x["683"]="(h",x["684"]="(h",x["685"]="(h",x["686"]="(h",x["687"]="(h",x["688"]="A",x["689"]="A",x["690"]="A",x["691"]="MEAC3",x["773"]="i",x["806"]="I",x["805"]="I",x["829"]="9",x["830"]="9",x["831"]="9",x["832"]="9",x["833"]="9",x["834"]="9",x["835"]="9",x["836"]="9",x["837"]="9",x["838"]="9",x["839"]="9",x["840"]="9",x["841"]="(",x["842"]="(",x["843"]="(",x["844"]="(",x["845"]="(",x["846"]= +"(",x["847"]="(",x["848"]="(",x["849"]="(",x["850"]="(",x["851"]="(",x["852"]="(",x["865"]="9",x["866"]="9",x["867"]="9",x["868"]="9",x["869"]="9",x["870"]="9",x["871"]="9",x["872"]="9",x["873"]="9",x["874"]="9",x["875"]="9",x["876"]="9",x["877"]="(",x["878"]="(",x["879"]="(",x["880"]="(",x["881"]="(",x["882"]="(",x["883"]="(",x["884"]="(",x["885"]="(",x["886"]="(",x["887"]="(",x["888"]="(",x);var OI={},X6U=(OI.STEREO_LAYOUT_UNKNOWN=0,OI.STEREO_LAYOUT_LEFT_RIGHT=1,OI.STEREO_LAYOUT_TOP_BOTTOM=2,OI);var v2,xl;v2={};g.Un=(v2.auto=0,v2.tiny=144,v2.light=144,v2.small=240,v2.medium=360,v2.large=480,v2.hd720=720,v2.hd1080=1080,v2.hd1440=1440,v2.hd2160=2160,v2.hd2880=2880,v2.highres=4320,v2);xl={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};var KE="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");X7.prototype.isHdr=function(){return this.K==="smpte2084"||this.K==="arib-std-b67"};v9.prototype.KK=function(){return this.containerType===2}; +v9.prototype.isEncrypted=function(){return!!this.f9}; +v9.prototype.Ab=function(){return!!this.audio}; +v9.prototype.CK=function(){return!!this.video};g.S(eJ,g.cr);g.k=eJ.prototype;g.k.appendBuffer=function(C,b,h){if(this.Ns.ea()!==this.appendWindowStart+this.start||this.Ns.GX()!==this.appendWindowEnd+this.start||this.Ns.Z9()!==this.timestampOffset+this.start)this.Ns.supports(1),this.Ns.Lp(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Ns.OV(this.timestampOffset+this.start);this.Ns.appendBuffer(C,b,h)}; +g.k.abort=function(){this.Ns.abort()}; +g.k.remove=function(C,b){this.Ns.remove(C+this.start,b+this.start)}; +g.k.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; +g.k.clear=function(){this.Ns.clear()}; +g.k.Lp=function(C,b){this.appendWindowStart=C;this.appendWindowEnd=b}; +g.k.Ic=function(){return this.timestampOffset+this.start}; +g.k.ea=function(){return this.appendWindowStart}; +g.k.GX=function(){return this.appendWindowEnd}; +g.k.OV=function(C){this.timestampOffset=C}; +g.k.Z9=function(){return this.timestampOffset}; +g.k.P7=function(C){C=this.Ns.P7(C===void 0?!1:C);return ke(C,this.start,this.end)}; +g.k.iY=function(){return this.Ns.iY()}; +g.k.zX=function(){return this.Ns.zX()}; +g.k.iR=function(){return this.Ns.iR()}; +g.k.ue=function(){return this.Ns.ue()}; +g.k.MI=function(){this.Ns.MI()}; +g.k.ZH=function(C){return this.Ns.ZH(C)}; +g.k.yF=function(){return this.Ns.yF()}; +g.k.cR=function(){return this.Ns.cR()}; +g.k.Hz=function(){return this.Ns.Hz()}; +g.k.T4=function(C,b,h){this.Ns.T4(C,b,h)}; +g.k.VR=function(C,b,h){this.Ns.VR(C,b,h)}; +g.k.a5=function(C,b){return this.Ns.a5(C,b)}; +g.k.supports=function(C){return this.Ns.supports(C)}; +g.k.ZA=function(){return this.Ns.ZA()}; +g.k.isView=function(){return!0}; +g.k.C7=function(){return this.Ns.C7()?this.isActive:!1}; +g.k.isLocked=function(){return this.yf&&!this.isActive}; +g.k.jf=function(C){C=this.Ns.jf(C);C.vw=this.start+"-"+this.end;return C}; +g.k.hn=function(){return this.Ns.hn()}; +g.k.IG=function(){return this.Ns.IG()}; +g.k.Pz=function(){return this.Ns.Pz()}; +g.k.wO=function(){this.Ns.g4(this.XL);g.cr.prototype.wO.call(this)};var eQ=!1;g.S(Zm,g.cr);g.k=Zm.prototype;g.k.appendBuffer=function(C,b,h){this.Z2=!1;h&&(this.vp=h);if(C.length){var N;((N=this.rU)==null?0:N.appendBuffer)?this.rU.appendBuffer(C):this.rU?this.rU.append(C):this.iH&&this.iH.webkitSourceAppend(this.id,C)}b&&(b.isEncrypted()&&(this.j_=this.vp),b.type===3&&(this.Kv=b),this.Ai.push(b.RV()),this.Ai.length>4&&this.Ai.shift());this.kR&&(this.kR.length>=2||C.length>1048576?delete this.kR:this.kR.push(C))}; +g.k.abort=function(){try{this.rU?this.rU.abort():this.iH&&this.iH.webkitSourceAbort(this.id)}catch(C){oxK&&g.Ri(new g.tJ("Error while abort the source buffer: "+C.name+", "+C.message))}this.vp=this.Kv=null}; +g.k.remove=function(C,b,h){this.Z2=!1;var N;if((N=this.rU)==null?0:N.remove)h&&h({b:N8(this.P7()),s:C,e:b}),this.rU.remove(C,b)}; +g.k.removeAll=function(){this.remove(this.ea(),this.GX())}; +g.k.clear=function(){this.iR()||(this.abort(),this.removeAll(),this.j_=this.vp=this.Kv=null,this.appendWindowStart=this.timestampOffset=0,this.zf=hA([],[]),this.Z2=!1,this.kR=LI?[]:void 0,this.Sw=!0)}; +g.k.ea=function(){if(eQ&&this.CK)return this.appendWindowStart;var C;return((C=this.rU)==null?void 0:C.appendWindowStart)||0}; +g.k.GX=function(){var C;return((C=this.rU)==null?void 0:C.appendWindowEnd)||0}; +g.k.Lp=function(C,b){this.rU&&(eQ&&this.CK?(this.appendWindowStart=C,this.rU.appendWindowEnd=b):C>this.ea()?(this.rU.appendWindowEnd=b,this.rU.appendWindowStart=C):(this.rU.appendWindowStart=C,this.rU.appendWindowEnd=b))}; +g.k.Ic=function(){return this.timestampOffset}; +g.k.OV=function(C){eQ?this.timestampOffset=C:this.supports(1)&&(this.rU.timestampOffset=C)}; +g.k.Z9=function(){return eQ?this.timestampOffset:this.supports(1)?this.rU.timestampOffset:0}; +g.k.P7=function(C){if(C===void 0?0:C)return this.Z2||this.iY()||(this.zf=this.P7(!1),this.Z2=!0),this.zf;try{return this.rU?this.rU.buffered:this.iH?this.iH.webkitSourceBuffered(this.id):hA([0],[Infinity])}catch(b){return hA([],[])}}; +g.k.iY=function(){var C;return((C=this.rU)==null?void 0:C.updating)||!1}; +g.k.iR=function(){return this.Sw}; +g.k.ue=function(){return!this.Sw&&this.iY()}; +g.k.MI=function(){this.Sw=!1}; +g.k.ZH=function(C){var b=C==null?void 0:C.PE;C=C==null?void 0:C.containerType;return!b&&!C||b===this.PE&&C===this.containerType}; +g.k.yF=function(){return this.vp}; +g.k.cR=function(){return this.j_}; +g.k.a5=function(C,b){return this.containerType!==C||this.PE!==b}; +g.k.T4=function(C,b,h){if(this.containerType!==C||h&&this.a5(C,h))this.supports(4),Ye()&&this.rU.changeType(b),h&&(this.PE=h);this.containerType=C}; +g.k.VR=function(C,b,h){this.containerType&&this.a5(C,b)&&Ye()&&this.rU.changeType(h);this.containerType=C;this.PE=b}; +g.k.ZA=function(){return this.Kv}; +g.k.isView=function(){return!1}; +g.k.supports=function(C){switch(C){case 1:var b;return((b=this.rU)==null?void 0:b.timestampOffset)!==void 0;case 0:var h;return!((h=this.rU)==null||!h.appendBuffer);case 2:var N;return!((N=this.rU)==null||!N.remove);case 3:var p,P;return!!(((p=this.rU)==null?0:p.addEventListener)&&((P=this.rU)==null?0:P.removeEventListener));case 4:return!(!this.rU||!this.rU.changeType);default:return!1}}; +g.k.C7=function(){return!this.iY()}; +g.k.isLocked=function(){return!1}; +g.k.jf=function(C){C.to=this.Z9();C.up=this.iY();var b,h=((b=this.rU)==null?void 0:b.appendWindowStart)||0,N;b=((N=this.rU)==null?void 0:N.appendWindowEnd)||Infinity;C.aw=h.toFixed(3)+"-"+b.toFixed(3);return C}; +g.k.zX=function(){var C;return((C=this.rU)==null?void 0:C.writeHead)||0}; +g.k.hn=function(){for(var C={},b=0;b=7&&kvU(this,function(){g.Fu(function(){mjW(C,C.getCurrentTime(),0)},500)}); +return b}; +g.k.seekTo=function(C){this.qZ()>0&&(Dw&&wO<4&&(C=Math.max(.1,C)),this.setCurrentTime(C))}; +g.k.Oc=function(){if(!this.K&&this.pO)if(this.pO.G)try{var C;Dm(this,{l:"mer",sr:(C=this.vE)==null?void 0:C.v$(),rs:W6(this.pO)});this.pO.clear();this.K=this.pO;this.pO=void 0}catch(b){C=new g.tJ("Error while clearing Media Source in MediaElement: "+b.name+", "+b.message),g.Ri(C),this.stopVideo()}else this.stopVideo()}; +g.k.stopVideo=function(){var C=this;if(!this.K){var b;(b=this.pO)==null||V5K(b);if(Y6_){if(!this.N){var h=new nI;h.then(void 0,function(){}); +this.N=h;a3l&&this.pause();g.Fu(function(){C.N===h&&(IA(C),h.resolve())},200)}}else IA(this)}}; +g.k.fB=function(){var C=this.XX();return jJ(C)>0&&this.getDuration()?P6(C,this.getCurrentTime()):0}; +g.k.hd=function(){var C=this.getDuration();return C===Infinity?1:C?this.fB()/C:0}; +g.k.jf=function(){try{var C=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:N8(this.Ce(),",",3),vbu:N8(this.XX()),vbs:N8(this.Zd()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.qZ(),vns:""+this.Cq(),vec:""+this.LX(),vemsg:this.WL(),vvol:""+this.getVolume(),vdom:""+ +this.Sj(),vsrc:""+ +!!this.R$(),vw:""+C.width,vh:""+C.height}}catch(b){return{}}}; +g.k.hasError=function(){return this.LX()>0}; +g.k.addEventListener=function(C,b){this.X.listen(C,b,!1,this);this.eH(C)}; +g.k.removeEventListener=function(C,b){this.X.D9(C,b,!1,this)}; +g.k.dispatchEvent=function(C){if(this.N&&C.type==="pause")return!1;if(l3_){var b,h=((b=C.j)==null?void 0:b.timeStamp)||Infinity;b=h>performance.now()?h-Date.now()+performance.now():h;h=this.K||this.pO;if((h==null?0:h.iR())||b<=((h==null?void 0:h.W)||0)){var N;Dm(this,{l:"mede",sr:(N=this.vE)==null?void 0:N.v$(),et:C.type});return!1}if(this.n4)return Dm(this,{l:"medes",et:C.type}),h&&C.type==="seeking"&&(h.W=performance.now(),this.n4=!1),!1}return this.X.dispatchEvent(C)}; +g.k.PJ=function(){this.W=!1}; +g.k.Yi=function(){this.W=!0;this.eK(!0)}; +g.k.x4=function(){this.W&&!this.lM()&&this.eK(!0)}; +g.k.y8=function(C){return!!C&&C.Rb()===this.Rb()}; +g.k.wO=function(){this.J&&this.removeEventListener("volumechange",this.x4);Y6_&&IA(this);g.O.prototype.wO.call(this)}; +var Y6_=!1,a3l=!1,l3_=!1,yMS=!1;g.k=g.w6.prototype;g.k.isPaused=function(){return g.B(this,4)}; +g.k.isPlaying=function(){return g.B(this,8)&&!g.B(this,512)&&!g.B(this,64)&&!g.B(this,2)}; +g.k.isOrWillBePlaying=function(){return g.B(this,8)&&!g.B(this,2)&&!g.B(this,1024)}; +g.k.isCued=function(){return g.B(this,64)&&!g.B(this,8)&&!g.B(this,4)}; +g.k.isBuffering=function(){return g.B(this,1)&&!g.B(this,2)}; +g.k.isError=function(){return g.B(this,128)}; +g.k.isSuspended=function(){return g.B(this,512)}; +g.k.Xn=function(){return g.B(this,64)&&g.B(this,4)}; +g.k.toString=function(){return"PSt."+this.state.toString(16)}; +var Dz={},dn=(Dz.BUFFERING="buffering-mode",Dz.CUED="cued-mode",Dz.ENDED="ended-mode",Dz.PAUSED="paused-mode",Dz.PLAYING="playing-mode",Dz.SEEKING="seeking-mode",Dz.UNSTARTED="unstarted-mode",Dz);g.S(k4,g.O);g.k=k4.prototype;g.k.ut=function(){return this.N}; +g.k.Fq=function(){return this.slot}; +g.k.b$=function(){return this.layout}; +g.k.init=function(){var C=pk(this.layout.clientMetadata,"metadata_type_video_length_seconds"),b=pk(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");Vu(this.layout.KJ)&&hG(this.ZJ.get(),this.layout.layoutId,{w_:b,HV:C,listener:this,Vm:this.aD()});O5W(this.M2.get(),this);C=this.V6;b=this.layout.layoutId;var h={Vm:this.aD()};C.j.set(b,h);this.dP()}; +g.k.lQ=function(){}; +g.k.release=function(){Vu(this.layout.KJ)&&Nq(this.ZJ.get(),this.layout.layoutId);vfW(this.M2.get(),this);this.V6.j.delete(this.layout.layoutId);this.Rh()}; +g.k.G7=function(){}; +g.k.cY=function(){}; +g.k.startRendering=function(C){$2(eg(this));if(L3(this,C)){var b=this.j;zy(b.params.Nl.Zf.get(),!0)&&jxS(b,"p_sr",{});ZP(this);this.lX(C);this.aD()||this.Dg(!1)}}; +g.k.VV=function(C,b){if(b.layoutId===this.layout.layoutId){this.OI="rendering";this.K=this.EX.get().isMuted()||this.EX.get().getVolume()===0;this.LJ("impression");this.LJ("start");if(this.EX.get().isMuted()){GO(this,"mute");var h;C=((h=cF(this))==null?void 0:h.muteCommands)||[];d0(this.Hb.get(),C,this.layout.layoutId)}if(this.EX.get().isFullscreen()){this.I$("fullscreen");var N;h=((N=cF(this))==null?void 0:N.fullscreenCommands)||[];d0(this.Hb.get(),h,this.layout.layoutId)}this.aD()||(N=this.EU.get(), +N.N&&!N.K&&(N.G=!1,N.K=!0,N.actionType!=="ad_to_video"&&(EG("pbs",void 0,N.actionType),g.HQ("finalize_all_timelines")&&Bf_(N.actionType))));this.zV(1);this.wm(b);var p;b=((p=cF(this))==null?void 0:p.impressionCommands)||[];d0(this.Hb.get(),b,this.layout.layoutId)}}; +g.k.W_=function(C,b,h){this.J={t9:3,aA:C==="load_timeout"?402:400,errorMessage:b.message};this.LJ("error");var N;C=((N=cF(this))==null?void 0:N.errorCommands)||[];d0(this.Hb.get(),C,this.layout.layoutId);this.aD()||this.aM.XH(this.slot,this.layout,b,h)}; +g.k.Ot=function(){if(this.OI==="rendering"){GO(this,"pause");var C,b=((C=cF(this))==null?void 0:C.pauseCommands)||[];d0(this.Hb.get(),b,this.layout.layoutId);this.zV(2)}}; +g.k.AB=function(){if(this.OI==="rendering"){GO(this,"resume");var C,b=((C=cF(this))==null?void 0:C.resumeCommands)||[];d0(this.Hb.get(),b,this.layout.layoutId)}}; +g.k.YY=function(C,b){b=b===void 0?!1:b;if(this.OI==="rendering"){var h={currentTimeSec:C,flush:b};H9(this.j,"p_ip",h);iG(this.gO,C*1E3,b);this.K||iG(this.gO,C*1E3,b===void 0?!1:b);var N=this.j6();if(N){N/=1E3;if(C>=N*.25||b)this.LJ("first_quartile"),H9(this.j,"p_fq",h);if(C>=N*.5||b)this.LJ("midpoint"),H9(this.j,"p_sq",h);if(C>=N*.75||b)this.LJ("third_quartile"),H9(this.j,"p_tq",h);this.Zf.get().Z.Y().experiments.Fo("enable_progress_command_flush_on_kabuki")?OP(this.X,C*1E3,b):OP(this.X,C*1E3,QxU(this)? +b:!1)}}}; +g.k.fI=function(){var C;return((C=Y4(this.fO.get(),1))==null?void 0:C.clientPlaybackNonce)||""}; +g.k.Wz=function(){var C;return(C=Y4(this.fO.get(),2))==null?void 0:C.vD}; +g.k.Fi=function(C,b){C.layoutId!==this.layout.layoutId?this.aM.XH(this.slot,C,new No("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):b()}; +g.k.oV=function(C,b,h){if(b.layoutId===this.layout.layoutId)switch(this.OI="not_rendering",this.layoutExitReason=void 0,this.aD()||(C=h!=="normal"||this.position+1===this.W)&&this.Dg(C),this.eg(h),this.zV(0),h){case "abandoned":if(Jk(this.gO,"impression")){var N,p=((N=cF(this))==null?void 0:N.abandonCommands)||[];d0(this.Hb.get(),p,this.layout.layoutId)}break;case "normal":N=((p=cF(this))==null?void 0:p.completeCommands)||[];d0(this.Hb.get(),N,this.layout.layoutId);break;case "skipped":var P;N=((P= +cF(this))==null?void 0:P.skipCommands)||[];d0(this.Hb.get(),N,this.layout.layoutId)}}; +g.k.Kt=function(){return this.layout.layoutId}; +g.k.qv=function(){return this.J}; +g.k.Sb=function(){if(this.OI==="rendering"){this.gO.LJ("active_view_measurable");var C,b=((C=cF(this))==null?void 0:C.activeViewMeasurableCommands)||[];d0(this.Hb.get(),b,this.layout.layoutId)}}; +g.k.uq=function(){if(this.OI==="rendering"){this.gO.LJ("active_view_fully_viewable_audible_half_duration");var C,b=((C=cF(this))==null?void 0:C.activeViewFullyViewableAudibleHalfDurationCommands)||[];d0(this.Hb.get(),b,this.layout.layoutId)}}; +g.k.Yb=function(){if(this.OI==="rendering"){this.gO.LJ("active_view_viewable");var C,b=((C=cF(this))==null?void 0:C.activeViewViewableCommands)||[];d0(this.Hb.get(),b,this.layout.layoutId)}}; +g.k.bq=function(){if(this.OI==="rendering"){this.gO.LJ("audio_audible");var C,b=((C=cF(this))==null?void 0:C.activeViewAudioAudibleCommands)||[];d0(this.Hb.get(),b,this.layout.layoutId)}}; +g.k.iq=function(){if(this.OI==="rendering"){this.gO.LJ("audio_measurable");var C,b=((C=cF(this))==null?void 0:C.activeViewAudioMeasurableCommands)||[];d0(this.Hb.get(),b,this.layout.layoutId)}}; +g.k.Dg=function(C){this.EU.get().Dg(pk(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,C,this.position,this.W,!1)}; +g.k.onFullscreenToggled=function(C){if(this.OI==="rendering")if(C){this.I$("fullscreen");var b,h=((b=cF(this))==null?void 0:b.fullscreenCommands)||[];d0(this.Hb.get(),h,this.layout.layoutId)}else this.I$("end_fullscreen"),b=((h=cF(this))==null?void 0:h.endFullscreenCommands)||[],d0(this.Hb.get(),b,this.layout.layoutId)}; +g.k.onVolumeChange=function(){if(this.OI==="rendering")if(this.EX.get().isMuted()){GO(this,"mute");var C,b=((C=cF(this))==null?void 0:C.muteCommands)||[];d0(this.Hb.get(),b,this.layout.layoutId)}else GO(this,"unmute"),C=((b=cF(this))==null?void 0:b.unmuteCommands)||[],d0(this.Hb.get(),C,this.layout.layoutId)}; +g.k.pX=function(){}; +g.k.Pi=function(){}; +g.k.xw=function(){}; +g.k.Lf=function(){}; +g.k.Tn=function(){}; +g.k.I$=function(C){this.gO.I$(C,!this.K)}; +g.k.LJ=function(C){this.gO.LJ(C,!this.K)}; +g.k.aD=function(){var C=pk(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return C===void 0?(ZK("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.Zf.get().aD(C)};g.S(VU,k4);g.k=VU.prototype;g.k.dP=function(){}; +g.k.Rh=function(){var C=this.M2.get();C.Kl===this&&(C.Kl=null);this.FZ.stop()}; +g.k.G7=function(){this.FZ.stop();k4.prototype.Ot.call(this)}; +g.k.cY=function(){qO(this);k4.prototype.AB.call(this)}; +g.k.j6=function(){return pk(this.b$().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; +g.k.XZ=function(C,b){var h=this;this.Fi(C,function(){h.OI!=="rendering_stop_requested"&&(h.OI="rendering_stop_requested",h.layoutExitReason=b,aJ(h,b),h.FZ.stop())})}; +g.k.cW=function(){var C=Date.now(),b=C-this.Xl;this.Xl=C;this.EB+=b;this.EB>=this.j6()?this.Th():(this.YY(this.EB/1E3),MO(this,this.EB))}; +g.k.eg=function(){}; +g.k.SQ=function(){}; +g.S(m0,VU);g.k=m0.prototype;g.k.UR=function(C){if(this.OI!=="not_rendering"){C=l$(this,C);var b=this.EX.get().getPresentingPlayerType()===2;this.OI==="rendering_start_requested"?b&&LE(C)&&this.F1():b?g.l1(C,2)?ZK("Receive player ended event during MediaBreak",this.Fq(),this.b$()):oJ(this,C):this.xB()}}; +g.k.lX=function(){u_W(this);xzo(this.EX.get());this.M2.get().Kl=this;d8("pbp")||d8("pbs")||EG("pbp");d8("pbp","watch")||d8("pbs","watch")||EG("pbp",void 0,"watch");this.F1()}; +g.k.wm=function(C){this.EU.get();var b=pk(C.clientMetadata,"metadata_type_ad_placement_config").kind,h=this.position===0;C=pk(C.clientMetadata,"metadata_type_linked_in_player_layout_type");C={adBreakType:Fm(b),adType:nHc(C)};var N=void 0;h?b!=="AD_PLACEMENT_KIND_START"&&(N="video_to_ad"):N="ad_to_ad";OG("ad_mbs",void 0,N);g.vs(C,N);qO(this)}; +g.k.xB=function(){this.qc()}; +g.k.Th=function(){XXK(this);this.qc()}; +g.S(f3,VU);g.k=f3.prototype;g.k.UR=function(C){this.OI!=="not_rendering"&&(C=l$(this,C),oJ(this,C))}; +g.k.lX=function(){ZK("Not used in SSAP")}; +g.k.wm=function(){qO(this)}; +g.k.xB=function(){ZK("Not used in SSAP")}; +g.k.Th=function(){XXK(this);this.aM.gF(this.Fq(),this.b$(),"normal")}; +g.S(AI,f3);AI.prototype.XZ=function(C,b){var h=this;this.Fi(C,function(){li(h.N,b)&&(h.OI="rendering_stop_requested",h.layoutExitReason=b,aJ(h,b),h.FZ.stop())})}; +AI.prototype.startRendering=function(C){$2(eg(this));L3(this,C)&&(ZP(this),this.M2.get().Kl=this)};g.S(i$,k4);g.k=i$.prototype;g.k.xB=function(){this.qc()}; +g.k.UR=function(C){if(this.OI!=="not_rendering"){C=l$(this,C);var b=this.EX.get().getPresentingPlayerType()===2;this.OI==="rendering_start_requested"?b&&LE(C)&&this.F1():!b||g.l1(C,2)?this.qc():oJ(this,C)}}; +g.k.dP=function(){pk(this.b$().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=pk(this.b$().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; +g.k.Rh=function(){pk(this.b$().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.Mp){var C=this.context.Nl,b=this.Mp,h=this.b$().layoutId;if(zy(C.Zf.get(),!0)){var N={};C.jC("mccru",(N.cid=b,N.p_ac=h,N))}this.pj.get().removeCueRange(this.Mp)}this.Mp=void 0;var p;(p=this.VY)==null||p.dispose();this.BQ&&this.BQ.dispose()}; +g.k.lX=function(C){var b=yU(this.Zf.get()),h=rP(this.Zf.get());if(b&&h&&!this.aD()){h=pk(C.clientMetadata,"metadata_type_preload_player_vars");var N=g.Zc(this.Zf.get().Z.Y().experiments,"html5_preload_wait_time_secs");h&&this.BQ&&this.BQ.start(N*1E3)}OFl(this,C);u_W(this);b?(h=this.Ak.get(),C=pk(C.clientMetadata,"metadata_type_player_vars"),h.Z.loadVideoByPlayerVars(C,!1,2)):jr_(this.Ak.get(),pk(C.clientMetadata,"metadata_type_player_vars"));var p;(p=this.VY)==null||p.start();b||this.Ak.get().Z.playVideo(2)}; +g.k.wm=function(){var C;(C=this.VY)==null||C.stop();this.Mp="adcompletioncuerange:"+this.b$().layoutId;this.pj.get().addCueRange(this.Mp,0x7ffffffffffff,0x8000000000000,!1,this,2,2);C=this.context.Nl;var b=this.Mp,h=this.b$().layoutId;if(zy(C.Zf.get(),!0)){var N={};C.jC("mccr",(N.cid=b,N.p_ac=h,N))}(this.adCpn=JM_(this))||ZK("Media layout confirmed started, but ad CPN not set.");this.UU.get().DQ("onAdStart",this.adCpn);this.hw=Date.now()}; +g.k.j6=function(){return this.Wz()}; +g.k.JF=function(){this.gO.I$("clickthrough")}; +g.k.XZ=function(C,b){var h=this;this.Fi(C,function(){if(h.OI!=="rendering_stop_requested"){h.OI="rendering_stop_requested";h.layoutExitReason=b;aJ(h,b);var N;(N=h.VY)==null||N.stop();h.BQ&&h.BQ.stop();vH6(h)}})}; +g.k.onCueRangeEnter=function(C){if(C!==this.Mp)ZK("Received CueRangeEnter signal for unknown layout.",this.Fq(),this.b$(),{cueRangeId:C});else{var b=this.context.Nl,h=this.b$().layoutId;if(zy(b.Zf.get(),!0)){var N={};b.jC("mccre",(N.cid=C,N.p_ac=h,N))}this.pj.get().removeCueRange(this.Mp);this.Mp=void 0;tc(this.context.Zf.get(),"html5_ssap_flush_at_stop_rendering")&&this.aD()||(C=pk(this.b$().clientMetadata,"metadata_type_video_length_seconds"),this.YY(C,!0),this.LJ("complete"))}}; +g.k.eg=function(C){C!=="abandoned"&&this.UU.get().DQ("onAdComplete");this.UU.get().DQ("onAdEnd",this.adCpn)}; +g.k.onCueRangeExit=function(){}; +g.k.SQ=function(C){this.OI==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&C>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.EX.get().TI(!0),this.YY(C))}; +g.k.YY=function(C,b){k4.prototype.YY.call(this,C,b===void 0?!1:b);b=Date.now()-this.hw;var h=C*1E3,N={contentCpn:this.fI(),adCpn:JM_(this)};if(C>=5&&!this.nL){var p=b<1E3?0:1;kH(p,"i.k_",{metadata:N,Q2:b,MB:Math.floor(h/1E3)});Tf("IKDSTAT",p);p===0&&Dj_(this)&&this.UU.get().DQ("onAbnormalityDetected");this.nL=!0}this.Zf.get().Z.Y().experiments.Fo("enable_ik_opt")&&C-this.Om>=5&&(p=b=2||(this.Vd.XZ(this.layout,b),C=tc(this.params.context.Zf.get(),"html5_ssap_pass_transition_reason")&&b==="abandoned",this.o8()&&!C&&(tc(this.params.context.Zf.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(b)||ZK("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:b})),this.qo.get().finishSegmentByCpn(this.layout.layoutId, +Y4(this.fO.get(),1).clientPlaybackNonce,$4(b,this.params.context.Zf))),this.EX.get().removeListener(this),this.gL()&&oT(this.Vd.ut())&&this.Fg.oV(this.slot,this.layout,this.Vd.ut().j))}; +g.k.MX=function(C,b,h){pXo({cpn:C,Zv:this.fO.get(),Ac:!0});this.b$().layoutId!==C||tc(this.params.context.Zf.get(),"html5_ssap_pass_transition_reason")&&h===5||(this.Vd.ut().currentState<2&&(C=zO(h,this.params.context.Zf),C==="error"?this.Fg.XH(this.slot,this.layout,new No("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:h},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):vF(this.E_, +this.layout,C)),tc(this.params.context.Zf.get(),"html5_ssap_exit_without_waiting_for_transition")||this.Fg.oV(this.slot,this.layout,this.Vd.ut().j))};g.S(UX,g.O);g.k=UX.prototype;g.k.Fq=function(){return this.slot}; +g.k.b$=function(){return this.layout}; +g.k.lD=function(){}; +g.k.T5=function(){return this.AL[this.Tl]}; +g.k.hC=function(){return this.Tl}; +g.k.G7=function(C,b){var h=this.T5();b.layoutId!==K3(h,C,b)?ZK("pauseLayout for a PlayerBytes layout that is not currently active",C,b):h.G7()}; +g.k.cY=function(C,b){var h=this.T5();b.layoutId!==K3(h,C,b)?ZK("resumeLayout for a PlayerBytes layout that is not currently active",C,b):h.cY()}; +g.k.zy=function(C,b){var h=this.T5();xjH(this,C,b);wXU(h,C,b)&&this.dI(h.Fq(),h.b$(),"skipped")}; +g.k.FM=function(C,b){var h=this.T5();CgW(this);bgW(h,C,b)&&(C=hk_(this,h,C,b),C!==void 0&&(this.aD()?ZK("Should not happen. Should delete"):g5K(this,h.Fq(),h.b$(),C)))}; +g.k.CM=function(C,b){var h=Object.assign({},Xm(this),{layoutId:b.layoutId}),N=h.layoutId,p=h.Ac;if(h.Vm){var P={};SZ(h.Zv,"wrse",(P.ec=N,P.is=p,P.ctp=Gy(N),P))}fk(this.oM,C,b)}; +g.k.VV=function(C,b){var h;(h=this.T5())==null||h.VV(C,b)}; +g.k.oV=function(C,b,h){b.layoutId===this.b$().layoutId&&(this.T0=!1,oH(this.vW(),this));var N;(N=this.T5())==null||N.oV(C,b,h)}; +g.k.SQ=function(C){var b;(b=this.T5())==null||b.SQ(C)}; +g.k.An=function(C,b,h){this.hC()===-1&&(this.callback.VV(this.slot,this.layout),this.Tl++);var N=this.T5();N?(N.W_(C,b,h),this.aD()&&this.callback.XH(this.slot,this.layout,b,h)):ZK("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.hC()),layoutId:this.b$().layoutId})}; +g.k.onFullscreenToggled=function(C){var b;(b=this.T5())==null||b.onFullscreenToggled(C)}; +g.k.pX=function(C){var b;(b=this.T5())==null||b.pX(C)}; +g.k.xw=function(C){var b;(b=this.T5())==null||b.xw(C)}; +g.k.onVolumeChange=function(){var C;(C=this.T5())==null||C.onVolumeChange()}; +g.k.WJ=function(C,b,h){Ac(this.oM,C,b,h)}; +g.k.yR=function(C){C.startRendering(C.b$())}; +g.k.init=function(){var C=pk(this.b$().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");C&&(C.current=this);if(this.AL.length<1)throw new I("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.AL.length)});if(C=pk(this.b$().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))C.current=this;C=g.z(this.AL);for(var b=C.next();!b.done;b=C.next())b=b.value,b.init(),m6l(this.oM,this.slot,b.b$()),fLU(this.oM,this.slot,b.b$()); +if(this.aD())for(this.fO.get().addListener(this),wrS(IK_(this),this.fO.get()),C=IK_(this),C=g.z(C),b=C.next();!b.done;b=C.next())this.bA(b.value)}; +g.k.bA=function(C){var b=pk(C.clientMetadata,"metadata_type_player_vars");b?(C.layoutType!=="LAYOUT_TYPE_MEDIA"&&ZK("Non-video ad contains playerVars",this.slot,C),this.Ak.get().addPlayerResponseForAssociation({playerVars:b})):(C=t5W(C),this.Ak.get().addPlayerResponseForAssociation({Py:C}))}; +g.k.release=function(){var C=pk(this.b$().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");C&&(C.current=null);if(C=pk(this.b$().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))C.current=null;C=g.z(this.AL);for(var b=C.next();!b.done;b=C.next())b=b.value,A_o(this.oM,this.slot,b.b$()),b.release();this.aD()&&(this.fO.get().removeListener(this),C11())}; +g.k.Fi=function(C){return C.layoutId!==this.b$().layoutId?(this.callback.XH(this.Fq(),C,new No("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.b$().layoutId+("and LayoutType: "+this.b$().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; +g.k.Ru=function(){this.EX.get().addListener(this);lR(this.vW(),this)}; +g.k.UR=function(C){if(C.state.isError()){var b,h;this.An((b=C.state.N9)==null?void 0:b.errorCode,new No("There was a player error during this media layout.",{playerErrorCode:(h=C.state.N9)==null?void 0:h.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(b=this.T5())&&b.UR(C)}; +g.k.aD=function(){var C=pk(this.Fq().clientMetadata,"metadata_type_eligible_for_ssap");return C===void 0?(ZK("Expected SSAP eligibility in PlayerBytes slots",this.Fq(),this.b$()),!1):this.Zf.get().aD(C)}; +g.k.Pi=function(){}; +g.k.zo=function(){}; +g.k.bH=function(){}; +g.k.lH=function(){}; +g.k.Jb=function(){}; +g.k.QP=function(){}; +g.k.tL=function(){}; +g.k.CX=function(){}; +g.k.d0=function(){}; +g.k.Go=function(){}; +g.k.kJ=function(){}; +g.k.Lf=function(){}; +g.k.Tn=function(){}; +g.S(DP,UX);g.k=DP.prototype;g.k.So=function(C,b,h){this.dI(C,b,h)}; +g.k.im=function(C,b){this.dI(C,b,"error")}; +g.k.dI=function(C,b,h){var N=this;N81(this,C,b,h,function(){sX(N,N.hC()+1)})}; +g.k.startRendering=function(C){this.Fi(C)&&(this.Ru(),YMc(this.EU.get()),GwV(this.Zf.get())||xzo(this.EX.get()),this.hC()===-1&&sX(this,this.hC()+1))}; +g.k.XZ=function(C,b){var h=this;this.T0=!0;this.hC()===this.AL.length?this.callback.oV(this.slot,this.layout,b):(C=this.T5(),C.XZ(C.b$(),b),this.yq=function(){h.callback.oV(h.slot,h.layout,b)}); +this.EX.get().Z.xY();jr_(this.Ak.get(),{});C=bQ(this.EX.get(),1);C.isPaused()&&!g.B(C,2)&&this.EX.get().playVideo();this.EX.get().removeListener(this);this.T0&&pso(this)}; +g.k.MX=function(){}; +g.k.yv=function(){}; +g.k.gF=function(){}; +g.S(dP,UX);g.k=dP.prototype;g.k.So=function(C,b,h){C=Object.assign({},Xm(this),{layoutId:b.layoutId,layoutExitReason:h});b=C.layoutId;h=C.layoutExitReason;var N={};SZ(C.Zv,"prse",(N.xc=b,N.ler=h,N.ctp=Gy(b),N))}; +g.k.im=function(){ZK("onSubLayoutError in SSAP")}; +g.k.dI=function(){ZK("exitSubLayoutAndPlayNext in SSAP")}; +g.k.T5=function(){return this.Db}; +g.k.hC=function(){var C=this;return this.AL.findIndex(function(b){var h;return b.b$().layoutId===((h=C.Db)==null?void 0:h.b$().layoutId)})}; +g.k.yR=function(C){LF(this.Db===void 0,"replacing another adapter");this.Db=C;C.startRendering(C.b$())}; +g.k.WJ=function(C,b,h){Ac(this.oM,C,b,h);var N;LF(b.layoutId===((N=this.Db)==null?void 0:N.b$().layoutId),"currentAdapter does not match exiting layout",{slot:C?"slot: "+C.slotType:"",subLayout:e5(b)})&&(this.Db=void 0)}; +g.k.release=function(){UX.prototype.release.call(this);LF(this.Db===void 0,"currentAdapter is still active during release");this.Db=void 0}; +g.k.o8=function(){return this.EX.get().getPresentingPlayerType()===2}; +g.k.XZ=function(C,b){function h(){WF(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(b)||ZK("Composite stopRendering: Unexpected layout exit reason",this.slot,C,{layoutExitReason:b}))} +function N(){this.Db&&EX(this,this.Db,b);if(this.o8()&&(!WF(this)||b!=="abandoned")){h.call(this);var P;var c=((P=this.fO.get().Z.getVideoData())==null?void 0:P.clientPlaybackNonce)||"";P=Y4(this.fO.get(),1).clientPlaybackNonce;this.qo.get().finishSegmentByCpn(c,P,$4(b,this.Zf))}Pgc(this,b)} +function p(){if(this.Db){var P=this.Db;P.ut().currentState<2&&P.XZ(P.b$(),b);P=WF(this)&&b==="abandoned";this.o8()&&!P&&(h.call(this),this.qo.get().finishSegmentByCpn(this.Db.b$().layoutId,Y4(this.fO.get(),1).clientPlaybackNonce,$4(b,this.Zf)))}} +LF(C.layoutId===this.b$().layoutId,"StopRendering for wrong layout")&&li(this.Wj.K,b)&&(this.gL()?N.call(this):p.call(this))}; +g.k.oV=function(C,b,h){UX.prototype.oV.call(this,C,b,h);b.layoutId===this.b$().layoutId&&this.EX.get().removeListener(this)}; +g.k.fI=function(){return Y4(this.fO.get(),1).clientPlaybackNonce}; +g.k.MX=function(C,b,h){pXo(Object.assign({},Xm(this),{cpn:C}));if(!WF(this)||h!==5)if(this.gL()){if(this.Db&&this.Db.b$().layoutId!==b){var N=this.Db.b$().layoutId;N!==C&&ZK("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:N,exitingCpn:C,enteringCpn:b});C=zO(h,this.Zf);EX(this,this.Db,C)}else this.Db&&ZK("onClipExited: active layout is entering again");b===this.fI()&&cN6(this,h)}else{if(this.Db&&this.Db.b$().layoutId===C)jwH(this,this.Db,h);else{var p;ZK("Exiting cpn does not match active cpn", +this.slot,(N=this.Db)==null?void 0:N.b$(),{exitingCpn:C,transitionReason:h,activeCpn:(p=this.Db)==null?void 0:p.b$().layoutId})}b===this.fI()&&(this.Db!==void 0&&(ZK("active adapter is not properly exited",this.slot,this.layout,{activeLayout:e5(this.Db.b$())}),jwH(this,this.Db,h)),cN6(this,h),Pgc(this,this.Wj.K.j))}}; +g.k.gL=function(){return tc(this.Zf.get(),"html5_ssap_exit_without_waiting_for_transition")}; +g.k.startRendering=function(C){this.Fi(C)&&(C=this.Wj,LF(C.j===1,"tickStartRendering: state is not initial"),C.j=2,this.Ru())}; +g.k.yv=function(C){gHW(Object.assign({},Xm(this),{cpn:C}));var b=this.AL.find(function(h){return h.b$().layoutId===C}); +b?(this.Wj.j!==2&&(vRl(this.h8,this.slot.slotId),LF(this.Wj.j===2,"Expect started"),this.callback.VV(this.slot,this.layout)),this.yR(b),fk(this.oM,this.slot,b.b$())):kIW(this,C)}; +g.k.zy=function(C,b){xjH(this,C,b);var h=this.T5();h?wXU(h,C,b)&&ekW(this,"skipped"):Lac(this,"onSkipRequested")}; +g.k.FM=function(C,b){var h;a:{if(h=this.T5()){if(CgW(this),bgW(h,C,b)&&(C=hk_(this,h,C,b),C!==void 0)){h={jn:h,HXh:this.AL[C]};break a}}else Lac(this,"SkipWithAdPodSkip");h=void 0}if(C=h)h=C.jn,b=C.HXh,C=h.b$().layoutId,this.gL()?EX(this,h,"skipped"):h.XZ(h.b$(),"skipped"),h=b.b$().layoutId,this.qo.get().finishSegmentByCpn(C,h,$4("skipped",this.Zf))}; +g.k.CM=function(){ZK("Not used in html5_ssap_fix_layout_exit")}; +g.k.UR=function(C){var b;(b=this.T5())==null||b.UR(C)}; +g.k.An=function(){ZK("Not used in html5_ssap_fix_layout_exit")}; +g.k.gF=function(C,b,h){var N;if(((N=this.T5())==null?void 0:N.b$().layoutId)!==b.layoutId)return void ZK("requestToExitSubLayout: wrong layout");ekW(this,h)};g.S(n3,g.O);g.k=n3.prototype;g.k.Fq=function(){return this.Vd.Fq()}; +g.k.b$=function(){return this.Vd.b$()}; +g.k.init=function(){var C=pk(this.b$().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");C&&(C.current=this);this.dP()}; +g.k.dP=function(){this.Vd.init()}; +g.k.release=function(){var C=pk(this.b$().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");C&&(C.current=null);this.Rh()}; +g.k.Rh=function(){this.Vd.release()}; +g.k.G7=function(){this.Vd.G7()}; +g.k.cY=function(){this.Vd.cY()}; +g.k.zy=function(C,b){ZK("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.Fq(),this.b$(),{requestingSlot:C,requestingLayout:b})}; +g.k.startRendering=function(C){C.layoutId!==this.b$().layoutId?this.callback.XH(this.Fq(),C,new No("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.b$().layoutId+("and LayoutType: "+this.b$().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.EX.get().addListener(this),lR(this.vW(),this),YMc(this.EU.get()),GwV(this.Zf.get())||xzo(this.EX.get()),this.Vd.startRendering(C))}; +g.k.XZ=function(C,b){this.T0=!0;this.Vd.XZ(C,b);this.EX.get().Z.xY();jr_(this.Ak.get(),{});C=bQ(this.EX.get(),1);C.isPaused()&&!g.B(C,2)&&this.EX.get().playVideo();this.EX.get().removeListener(this);this.T0&&this.Vd.xB()}; +g.k.VV=function(C,b){this.Vd.VV(C,b)}; +g.k.oV=function(C,b,h){b.layoutId===this.b$().layoutId&&(this.T0=!1,oH(this.vW(),this));this.Vd.oV(C,b,h);b.layoutId===this.b$().layoutId&&OX(this.EU.get())}; +g.k.SQ=function(C){this.Vd.SQ(C)}; +g.k.UR=function(C){if(C.state.isError()){var b,h;this.An((b=C.state.N9)==null?void 0:b.errorCode,new No("There was a player error during this media layout.",{playerErrorCode:(h=C.state.N9)==null?void 0:h.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.Vd.UR(C)}; +g.k.An=function(C,b,h){this.Vd.W_(C,b,h)}; +g.k.onFullscreenToggled=function(C){this.Vd.onFullscreenToggled(C)}; +g.k.pX=function(C){this.Vd.pX(C)}; +g.k.xw=function(C){this.Vd.xw(C)}; +g.k.onVolumeChange=function(){this.Vd.onVolumeChange()}; +g.k.Pi=function(){}; +g.k.zo=function(){}; +g.k.bH=function(){}; +g.k.lH=function(){}; +g.k.Jb=function(){}; +g.k.QP=function(){}; +g.k.tL=function(){}; +g.k.CX=function(){}; +g.k.d0=function(){}; +g.k.Go=function(){}; +g.k.kJ=function(){}; +g.k.Lf=function(){}; +g.k.Tn=function(){};g.k=tI.prototype;g.k.Fq=function(){return this.slot}; +g.k.b$=function(){return this.layout}; +g.k.init=function(){this.kt.get().addListener(this);this.EX.get().addListener(this);var C=pk(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var b=pk(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.X){var h=this.kt.get().Gm.slice(-1)[0];h!==void 0&&(C=h.startSecs*1E3,b=(h.startSecs+h.YJ)*1E3)}this.lQ(C,b);var N;h=(N=this.fO.get().xP)==null?void 0:N.clientPlaybackNonce;N=this.layout.hZ.adClientDataEntry;TO(this.M2.get(),{daiStateTrigger:{filledAdsDurationMs:b-C,contentCpn:h, +adClientData:N}});var p=this.kt.get();p=adx(p.N,C,b);p!==null&&(TO(this.M2.get(),{daiStateTrigger:{filledAdsDurationMs:p-C,contentCpn:h,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:N}}),this.qo.get().yu(p,b))}; +g.k.release=function(){this.Rh();this.kt.get().removeListener(this);this.EX.get().removeListener(this)}; +g.k.startRendering=function(){this.lX();this.callback.VV(this.slot,this.layout)}; +g.k.XZ=function(C,b){this.Mt(b);this.driftRecoveryMs!==null&&(BF(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(ld6(this)-pk(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.EX.get().Z.m7()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.oV(this.slot,this.layout,b)}; +g.k.o9=function(){return!1}; +g.k.UE=function(C){var b=pk(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),h=pk(this.layout.clientMetadata,"metadata_type_layout_exit_ms");C*=1E3;if(b<=C&&C0&&ya(this.j(),b)}; +g.k.bH=function(C){this.G.delete(C.slotId);for(var b=[],h=g.z(this.JZ.values()),N=h.next();!N.done;N=h.next()){N=N.value;var p=N.trigger;p instanceof ny&&p.triggeringSlotId===C.slotId&&b.push(N)}b.length>0&&ya(this.j(),b)}; +g.k.lH=function(C){for(var b=[],h=g.z(this.JZ.values()),N=h.next();!N.done;N=h.next()){N=N.value;var p=N.trigger;p instanceof Qf&&p.slotType===C.slotType&&p.j!==C.slotId&&b.push(N)}b.length>0&&ya(this.j(),b)}; +g.k.Jb=function(C){this.N.add(C.slotId);for(var b=[],h=g.z(this.JZ.values()),N=h.next();!N.done;N=h.next())N=N.value,N.trigger instanceof vz&&C.slotId===N.trigger.triggeringSlotId&&b.push(N);b.length>0&&ya(this.j(),b)}; +g.k.QP=function(C){this.N.delete(C.slotId);this.X.add(C.slotId);for(var b=[],h=g.z(this.JZ.values()),N=h.next();!N.done;N=h.next())if(N=N.value,N.trigger instanceof DV)C.slotId===N.trigger.triggeringSlotId&&b.push(N);else if(N.trigger instanceof MZ){var p=N.trigger;C.slotId===p.slotId&&this.K.has(p.triggeringLayoutId)&&b.push(N)}b.length>0&&ya(this.j(),b)}; +g.k.tL=function(C){for(var b=[],h=g.z(this.JZ.values()),N=h.next();!N.done;N=h.next())N=N.value,N.trigger instanceof dq&&C.slotId===N.trigger.triggeringSlotId&&b.push(N);b.length>0&&ya(this.j(),b)}; +g.k.CX=function(C){for(var b=[],h=g.z(this.JZ.values()),N=h.next();!N.done;N=h.next())N=N.value,N.trigger instanceof Wz&&C.slotId===N.trigger.triggeringSlotId&&b.push(N);b.length>0&&ya(this.j(),b)}; +g.k.d0=function(C,b){this.W.add(b.layoutId)}; +g.k.Go=function(C,b){this.W.delete(b.layoutId)}; +g.k.VV=function(C,b){this.K.add(b.layoutId);for(var h=[],N=g.z(this.JZ.values()),p=N.next();!p.done;p=N.next())if(p=p.value,p.trigger instanceof qZ)b.layoutId===p.trigger.triggeringLayoutId&&h.push(p);else if(p.trigger instanceof Rz){var P=p.trigger;C.slotType===P.slotType&&b.layoutType===P.layoutType&&b.layoutId!==P.j&&h.push(p)}else p.trigger instanceof MZ&&(P=p.trigger,b.layoutId===P.triggeringLayoutId&&this.X.has(P.slotId)&&h.push(p));h.length>0&&ya(this.j(),h)}; +g.k.oV=function(C,b,h){this.K.delete(b.layoutId);C=[];for(var N=g.z(this.JZ.values()),p=N.next();!p.done;p=N.next())if(p=p.value,p.trigger instanceof fy&&b.layoutId===p.trigger.triggeringLayoutId&&C.push(p),p.trigger instanceof mT){var P=p.trigger;b.layoutId===P.triggeringLayoutId&&P.j.includes(h)&&C.push(p)}C.length>0&&ya(this.j(),C)}; +g.k.kJ=function(){}; +g.k.UB=function(){this.X.clear()}; +g.k.g8=function(){};g.S(y7,g.O);y7.prototype.O2=function(C,b,h,N){if(this.JZ.has(b.triggerId))throw new I("Tried to register duplicate trigger for slot.");if(!(b instanceof Hz))throw new I("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CloseRequestedTriggerAdapter");this.JZ.set(b.triggerId,new Bz(C,b,h,N))}; +y7.prototype.KI=function(C){this.JZ.delete(C.triggerId)};g.S(iO,g.O);iO.prototype.O2=function(C,b,h,N){if(this.JZ.has(b.triggerId))throw new I("Tried to register duplicate trigger for slot.");if(!(b instanceof z9||b instanceof Xi))throw new I("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.JZ.set(b.triggerId,new Bz(C,b,h,N))}; +iO.prototype.KI=function(C){this.JZ.delete(C.triggerId)}; +iO.prototype.UB=function(C){for(var b=[],h=b.push,N=h.apply,p=[],P=g.z(this.JZ.values()),c=P.next();!c.done;c=P.next())c=c.value,c.trigger instanceof z9&&c.trigger.Kw===C&&p.push(c);N.call(h,b,g.M(p));h=b.push;N=h.apply;p=[];P=g.z(this.JZ.values());for(c=P.next();!c.done;c=P.next())c=c.value,c.trigger instanceof Xi&&c.trigger.j!==C&&p.push(c);N.call(h,b,g.M(p));b.length&&ya(this.j(),b)}; +iO.prototype.g8=function(C){for(var b=[],h=b.push,N=h.apply,p=[],P=g.z(this.JZ.values()),c=P.next();!c.done;c=P.next()){c=c.value;var e=c.trigger;e instanceof Xi&&e.j===C&&p.push(c)}N.call(h,b,g.M(p));b.length&&ya(this.j(),b)};g.S(J$,g.O);g.k=J$.prototype;g.k.O2=function(C,b,h,N){if(this.JZ.has(b.triggerId))throw new I("Tried to register duplicate trigger for slot.");var p="adtriggercuerange:"+b.triggerId;if(b instanceof Jv)uL_(this,C,b,h,N,p,b.j.start,b.j.end,b.Kw,b.visible);else if(b instanceof Vf)uL_(this,C,b,h,N,p,0x7ffffffffffff,0x8000000000000,b.Kw,b.visible);else throw new I("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in CueRangeTriggerAdapter");}; +g.k.KI=function(C){var b=this.JZ.get(C.triggerId);b&&this.pj.get().removeCueRange(b.cueRangeId);this.JZ.delete(C.triggerId)}; +g.k.onCueRangeEnter=function(C){var b=Rbc(this,C);if(b&&(b=this.JZ.get(b)))if(g.B(bQ(this.EX.get()),32))this.j.add(b.cueRangeId);else{var h=b==null?void 0:b.wV.trigger;if(h instanceof Jv||h instanceof Vf){if(zy(this.context.Zf.get())){var N=b.wV.slot,p=b.wV.layout,P={};this.context.Nl.jC("cre",(P.ca=b.wV.category,P.tt=h.triggerType,P.st=N.slotType,P.lt=p==null?void 0:p.layoutType,P.cid=C,P))}ya(this.K(),[b.wV])}}}; +g.k.onCueRangeExit=function(C){(C=Rbc(this,C))&&(C=this.JZ.get(C))&&this.j.delete(C.cueRangeId)}; +g.k.UR=function(C){if(ax(C,16)<0){C=g.z(this.j);for(var b=C.next();!b.done;b=C.next())this.onCueRangeEnter(b.value,!0);this.j.clear()}}; +g.k.zo=function(){}; +g.k.bH=function(){}; +g.k.lH=function(){}; +g.k.Jb=function(){}; +g.k.QP=function(){}; +g.k.tL=function(){}; +g.k.CX=function(){}; +g.k.d0=function(){}; +g.k.Go=function(){}; +g.k.VV=function(){}; +g.k.oV=function(){}; +g.k.kJ=function(){}; +g.k.SQ=function(){}; +g.k.onFullscreenToggled=function(){}; +g.k.pX=function(){}; +g.k.Pi=function(){}; +g.k.xw=function(){}; +g.k.onVolumeChange=function(){}; +g.k.Lf=function(){}; +g.k.Tn=function(){};g.S(uO,g.O);g.k=uO.prototype; +g.k.O2=function(C,b,h,N){if(this.K.has(b.triggerId)||this.N.has(b.triggerId))throw new I("Tried to re-register the trigger.");C=new Bz(C,b,h,N);if(C.trigger instanceof ij)this.K.set(C.trigger.triggerId,C);else if(C.trigger instanceof Av)this.N.set(C.trigger.triggerId,C);else throw new I("Incorrect TriggerType: Tried to register trigger of type "+C.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.K.has(C.trigger.triggerId)&&C.slot.slotId===this.j&&ya(this.X(),[C])}; +g.k.KI=function(C){this.K.delete(C.triggerId);this.N.delete(C.triggerId)}; +g.k.lD=function(C){C=C.slotId;if(this.j!==C){var b=[];this.j!=null&&b.push.apply(b,g.M(QEl(this.N,this.j)));C!=null&&b.push.apply(b,g.M(QEl(this.K,C)));this.j=C;b.length&&ya(this.X(),b)}}; +g.k.MX=function(){}; +g.k.yv=function(){};g.S(Ra,g.O);g.k=Ra.prototype;g.k.O2=function(C,b,h,N){if(this.JZ.has(b.triggerId))throw new I("Tried to register duplicate trigger for slot.");if(!(b instanceof Uw))throw new I("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.JZ.set(b.triggerId,new Bz(C,b,h,N))}; +g.k.KI=function(C){this.JZ.delete(C.triggerId)}; +g.k.VV=function(){}; +g.k.oV=function(){}; +g.k.zo=function(){}; +g.k.bH=function(){}; +g.k.lH=function(){}; +g.k.Jb=function(){}; +g.k.QP=function(){}; +g.k.tL=function(){}; +g.k.CX=function(){}; +g.k.d0=function(){}; +g.k.Go=function(){}; +g.k.kJ=function(){};g.S(Q7,g.O);g.k=Q7.prototype;g.k.kJ=function(C,b){for(var h=[],N=g.z(this.JZ.values()),p=N.next();!p.done;p=N.next()){p=p.value;var P=p.trigger;P.opportunityType===C&&(P.associatedSlotId&&P.associatedSlotId!==b||h.push(p))}h.length&&ya(this.j(),h)}; +g.k.O2=function(C,b,h,N){if(this.JZ.has(b.triggerId))throw new I("Tried to register duplicate trigger for slot.");if(!(b instanceof WZU))throw new I("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in OpportunityEventTriggerAdapter");this.JZ.set(b.triggerId,new Bz(C,b,h,N))}; +g.k.KI=function(C){this.JZ.delete(C.triggerId)}; +g.k.zo=function(){}; +g.k.bH=function(){}; +g.k.lH=function(){}; +g.k.Jb=function(){}; +g.k.QP=function(){}; +g.k.tL=function(){}; +g.k.CX=function(){}; +g.k.d0=function(){}; +g.k.Go=function(){}; +g.k.VV=function(){}; +g.k.oV=function(){};g.S(U3,g.O);g.k=U3.prototype;g.k.O2=function(C,b,h,N){C=new Bz(C,b,h,N);if(b instanceof yf||b instanceof uj||b instanceof rq||b instanceof Ky||b instanceof drU){if(this.JZ.has(b.triggerId))throw new I("Tried to register duplicate trigger for slot.");this.JZ.set(b.triggerId,C);h=h.slotId;C=this.N.has(h)?this.N.get(h):new Set;C.add(b);this.N.set(h,C)}else throw new I("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in PrefetchTriggerAdapter");}; +g.k.KI=function(C){this.JZ.delete(C.triggerId)}; +g.k.zo=function(C){var b=C.slotId;if(this.N.has(b)){C=0;var h=new Set;b=g.z(this.N.get(b));for(var N=b.next();!N.done;N=b.next())if(N=N.value,h.add(N.triggerId),N instanceof uj&&N.breakDurationMs){C=N.breakDurationMs;break}Xg(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",C,h)}}; +g.k.bH=function(){}; +g.k.lH=function(){}; +g.k.Jb=function(){}; +g.k.QP=function(){}; +g.k.tL=function(){}; +g.k.CX=function(){}; +g.k.d0=function(){}; +g.k.Go=function(){}; +g.k.VV=function(){}; +g.k.oV=function(){}; +g.k.kJ=function(){}; +g.k.o9=function(C){if(this.j){this.K&&this.K.stop();this.X&&g.be(this.X);C=C.YJ*1E3+1E3;for(var b=0,h=g.z(this.JZ.values()),N=h.next();!N.done;N=h.next())N=N.value.trigger,N instanceof yf&&N.breakDurationMs<=C&&N.breakDurationMs>b&&(b=N.breakDurationMs);C=b;if(C>0)return Xg(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",C,new Set,!0),Xg(this,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",C,new Set,!1),!0}return!1}; +g.k.UE=function(){}; +g.k.UB=function(C){this.j&&this.j.contentCpn!==C?(ZK("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:C,fetchInstructionsCpn:this.j.contentCpn}),KS(this)):Xnl(this)}; +g.k.g8=function(C){this.j&&this.j.contentCpn!==C&&ZK("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:C,fetchInstructionsCpn:this.j.contentCpn},!0);KS(this)}; +g.k.OE=function(C){var b=this;if(this.j)ZK("Unexpected multiple fetch instructions for the current content");else{this.j=C;C=sE1(C);this.K=new g.C2(function(){Xnl(b)},C?C:6E5); +this.K.start();this.X=new g.C2(function(){b.j&&(b.K&&(b.K.stop(),b.K.start()),Ull(b,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},KCx(this.j)); +C=this.EX.get().getCurrentTimeSec(1,!1);for(var h=g.z(this.kt.get().Gm),N=h.next();!N.done;N=h.next())N=N.value,x4(this.M2.get(),"nocache","ct."+Date.now()+";cmt."+C+";d."+N.YJ.toFixed(3)+";tw."+(N.startSecs-C)+";cid."+N.identifier+";")}}; +g.k.wO=function(){g.O.prototype.wO.call(this);KS(this)};g.S(s3,g.O);g.k=s3.prototype;g.k.O2=function(C,b,h,N){if(this.JZ.has(b.triggerId))throw new I("Tried to register duplicate trigger for slot.");if(!(b instanceof T9))throw new I("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.JZ.set(b.triggerId,new Bz(C,b,h,N));C=this.j.has(b.triggeringLayoutId)?this.j.get(b.triggeringLayoutId):new Set;C.add(b);this.j.set(b.triggeringLayoutId,C)}; +g.k.KI=function(C){this.JZ.delete(C.triggerId);if(!(C instanceof T9))throw new I("Incorrect TriggerType: Tried to unregister trigger of type "+C.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var b=this.K.get(C.triggerId);b&&(b.dispose(),this.K.delete(C.triggerId));if(b=this.j.get(C.triggeringLayoutId))b.delete(C),b.size===0&&this.j.delete(C.triggeringLayoutId)}; +g.k.zo=function(){}; +g.k.bH=function(){}; +g.k.lH=function(){}; +g.k.Jb=function(){}; +g.k.QP=function(){}; +g.k.tL=function(){}; +g.k.CX=function(){}; +g.k.d0=function(){}; +g.k.Go=function(){}; +g.k.kJ=function(){}; +g.k.VV=function(C,b){var h=this;if(this.j.has(b.layoutId)){C=this.j.get(b.layoutId);C=g.z(C);var N=C.next();for(b={};!N.done;b={x_:void 0},N=C.next())b.x_=N.value,N=new g.C2(function(p){return function(){var P=h.JZ.get(p.x_.triggerId);ya(h.N(),[P])}}(b),b.x_.durationMs),N.start(),this.K.set(b.x_.triggerId,N)}}; +g.k.oV=function(){};g.S(O3,g.O);O3.prototype.O2=function(C,b,h,N){if(this.JZ.has(b.triggerId))throw new I("Tried to register duplicate trigger for slot.");if(!(b instanceof Sb))throw new I("Incorrect TriggerType: Tried to register trigger of type "+b.triggerType+" in VideoTransitionTriggerAdapter.");this.JZ.set(b.triggerId,new Bz(C,b,h,N))}; +O3.prototype.KI=function(C){this.JZ.delete(C.triggerId)};Wo.prototype.OY=function(C){return C.kind==="AD_PLACEMENT_KIND_START"};g.S(t$,g.O);g.k=t$.prototype;g.k.logEvent=function(C){this.K6(C)}; +g.k.qU=function(C,b,h){this.K6(C,void 0,void 0,void 0,b,void 0,void 0,void 0,b.adSlotLoggingData,void 0,void 0,h)}; +g.k.KZ=function(C,b,h,N){this.K6(C,void 0,void 0,void 0,b,h?h:void 0,void 0,void 0,b.adSlotLoggingData,h?h.adLayoutLoggingData:void 0,void 0,N)}; +g.k.BX=function(C,b,h,N){tc(this.Zf.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+C,"trigger:",h,"slot:",b,"layout:",N);eP(this.j.get())&&this.K6(C,void 0,void 0,void 0,b,N?N:void 0,void 0,h,b.adSlotLoggingData,N?N.adLayoutLoggingData:void 0)}; +g.k.jw=function(C,b,h,N,p){this.K6(C,b,h,N,void 0,void 0,void 0,void 0,void 0,void 0,void 0,p)}; +g.k.RI=function(C,b,h,N){this.K6("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,h,N,void 0,void 0,h.adSlotLoggingData,N?N.adLayoutLoggingData:void 0,{errorType:C,errorMessage:b})}; +g.k.K6=function(C,b,h,N,p,P,c,e,L,Z,Y,a){var l=this;a=a===void 0?0:a;tc(this.Zf.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+C,"slot:",p,"layout:",P,"ping:",c,"Opportunity:",{opportunityType:b,associatedSlotId:h,pjE:N,bB$:e,adSlotLoggingData:L,adLayoutLoggingData:Z});try{var F=function(){if(!l.Zf.get().Z.Y().D("html5_disable_client_tmp_logs")&&C!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){C||ZK("Empty PACF event type",p,P);var G=eP(l.j.get()),V={eventType:C,eventOrder:++l.eventCount},q={}; +p&&(q.slotData=kU(G,p));P&&(q.layoutData=zzl(G,P));c&&(q.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:c.j.serializedAdPingMetadata,pingIndex:c.index});e&&(q.triggerData=ck(e.trigger,e.category));b&&(q.opportunityData=HZK(G,b,h,N));G={organicPlaybackContext:{contentCpn:Y4(l.fO.get(),1).clientPlaybackNonce}};G.organicPlaybackContext.isLivePlayback=Y4(l.fO.get(),1).yV;var f;G.organicPlaybackContext.isMdxPlayback=(f=Y4(l.fO.get(),1))==null?void 0:f.isMdxPlayback; +var y;if((y=Y4(l.fO.get(),1))==null?0:y.daiEnabled)G.organicPlaybackContext.isDaiContent=!0;var u;if(f=(u=Y4(l.fO.get(),2))==null?void 0:u.clientPlaybackNonce)G.adVideoPlaybackContext={adVideoCpn:f};G&&(q.externalContext=G);V.adClientData=q;L&&(V.serializedSlotAdServingData=L.serializedSlotAdServingDataEntry);Z&&(V.serializedAdServingData=Z.serializedAdServingDataEntry);Y&&(V.errorInfo=Y);g.en("adsClientStateChange",{adsClientEvent:V})}}; +a&&a>0?g.wU(g.bf(),function(){return F()},a):F()}catch(G){tc(this.Zf.get(),"html5_log_pacf_logging_errors")&&g.wU(g.bf(),function(){ZK(G instanceof Error?G:String(G),p,P,{pacf_message:"exception during pacf logging"})})}};var $Ad=new Set("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED".split(" "));g.S(TK,t$);g.k=TK.prototype; +g.k.qU=function(C,b,h){t$.prototype.qU.call(this,C,b,h);zy(this.Zf.get())&&(h={},this.context.Nl.jC("pacf",(h.et=C,h.st=b.slotType,h.si=b.slotId,h)))}; +g.k.KZ=function(C,b,h,N){var p=$Ad.has(C);t$.prototype.KZ.call(this,C,b,h,N);zy(this.Zf.get(),p)&&(N={},this.context.Nl.jC("pacf",(N.et=C,N.st=b.slotType,N.si=b.slotId,N.lt=h==null?void 0:h.layoutType,N.li=h==null?void 0:h.layoutId,N.p_ac=h==null?void 0:h.layoutId,N)))}; +g.k.jw=function(C,b,h,N,p){t$.prototype.jw.call(this,C,b,h,N,p);zy(this.Zf.get())&&(h={},this.context.Nl.jC("pacf",(h.et=C,h.ot=b,h.ss=N==null?void 0:N.length,h)))}; +g.k.BX=function(C,b,h,N){t$.prototype.BX.call(this,C,b,h,N);if(zy(this.Zf.get())){var p={};this.context.Nl.jC("pacf",(p.et=C,p.tt=h.trigger.triggerType,p.tc=h.category,p.st=b.slotType,p.si=b.slotId,p.lt=N==null?void 0:N.layoutType,p.li=N==null?void 0:N.layoutId,p.p_ac=N==null?void 0:N.layoutId,p))}}; +g.k.RI=function(C,b,h,N){t$.prototype.RI.call(this,C,b,h,N);if(zy(this.Zf.get(),!0)){var p={};this.context.Nl.jC("perror",(p.ert=C,p.erm=b,p.st=h.slotType,p.si=h.slotId,p.lt=N==null?void 0:N.layoutType,p.li=N==null?void 0:N.layoutId,p.p_ac=N==null?void 0:N.layoutId,p))}}; +g.k.K6=function(C,b,h,N,p,P,c,e,L,Z,Y){if(g.m9(this.Zf.get().Z.Y())){var a=this.Zf.get();a=g.Zc(a.Z.Y().experiments,"H5_async_logging_delay_ms")}else a=void 0;t$.prototype.K6.call(this,C,b,h,N,p,P,c,e,L,Z,Y,a)};Bo.prototype.clear=function(){this.j.clear()};wc.prototype.resolve=function(C){Ia(this,C)}; +wc.prototype.reject=function(C){xD(this,C)}; +wc.prototype.state=function(){return this.currentState==="done"?{state:"done",result:this.result}:this.currentState==="fail"?{state:"fail",error:this.error}:{state:"wait"}}; +wc.prototype.wait=function(){var C=this;return function h(){return Yll(h,function(N){if(N.j==1)return g.H1(N,2),g.J(N,{xO:C},4);if(N.j!=2)return N.return(N.K);g.qW(N);return g.mS(N,0)})}()}; +var eaV=ns(function(C){return Cx(C)?C instanceof wc:!1});var kl=window.RJf||"en";Yl.prototype.pH=function(C){this.client=C}; +Yl.prototype.j=function(){this.clear();this.csn=g.mZ()}; +Yl.prototype.clear=function(){this.N.clear();this.K.clear();this.X.clear();this.csn=null};lw.prototype.pH=function(C){g.CN(ac().pH).bind(ac())(C)}; +lw.prototype.clear=function(){g.CN(ac().clear).bind(ac())()};g.k=oc.prototype;g.k.pH=function(C){this.client=C}; +g.k.Mq=function(C,b){var h=this;b=b===void 0?{}:b;g.CN(function(){var N,p,P,c=((N=g.d(C==null?void 0:C.commandMetadata,g.St))==null?void 0:N.rootVe)||((p=g.d(C==null?void 0:C.commandMetadata,X$I))==null?void 0:(P=p.screenVisualElement)==null?void 0:P.uiType);if(c){N=g.d(C==null?void 0:C.commandMetadata,N$E);if(N==null?0:N.parentTrackingParams){var e=g.VB(N.parentTrackingParams);if(N.parentCsn)var L=N.parentCsn}else b.clickedVisualElement?e=b.clickedVisualElement:C.clickTrackingParams&&(e=g.VB(C.clickTrackingParams)); +a:{N=g.d(C,g.dF);p=g.d(C,BDj);if(N){if(p=N0S(N,"VIDEO")){N={token:p,videoId:N.videoId};break a}}else if(p&&(N=N0S(p,"PLAYLIST"))){N={token:N,playlistId:p.playlistId};break a}N=void 0}b=Object.assign({},{cttAuthInfo:N,parentCsn:L},b);if(g.HQ("expectation_logging")){var Z;b.loggingExpectations=((Z=g.d(C==null?void 0:C.commandMetadata,X$I))==null?void 0:Z.loggingExpectations)||void 0}G0(h,c,e,b)}else g.QB(new g.tJ("Error: Trying to create a new screen without a rootVeType",C))})()}; +g.k.clickCommand=function(C,b,h){C=C.clickTrackingParams;h=h===void 0?0:h;C?(h=g.mZ(h===void 0?0:h))?(kno(this.client,h,g.VB(C),b),b=!0):b=!1:b=!1;return b}; +g.k.stateChanged=function(C,b,h){this.visualElementStateChanged(g.VB(C),b,h===void 0?0:h)}; +g.k.visualElementStateChanged=function(C,b,h){h=h===void 0?0:h;h===0&&this.K.has(h)?this.L.push([C,b]):cc1(this,C,b,h)};Hx.prototype.fetch=function(C,b,h){var N=this,p=L9c(C,b,h);return new Promise(function(P,c){function e(){if(h==null?0:h.lr)try{var Z=N.handleResponse(C,p.status,p.response,h);P(Z)}catch(Y){c(Y)}else P(N.handleResponse(C,p.status,p.response,h))} +p.onerror=e;p.onload=e;var L;p.send((L=b.body)!=null?L:null)})}; +Hx.prototype.handleResponse=function(C,b,h,N){h=h.replace(")]}'","");try{var p=JSON.parse(h)}catch(P){g.QB(new g.tJ("JSON parsing failed after XHR fetch",C,b,h));if((N==null?0:N.lr)&&h)throw new g.Nn(1,"JSON parsing failed after XHR fetch");p={}}b!==200&&(g.QB(new g.tJ("XHR API fetch failed",C,b,h)),p=Object.assign({},p,{errorMetadata:{status:b}}));return p};Vp.getInstance=function(){var C=g.Dx("ytglobal.storage_");C||(C=new Vp,g.Ol("ytglobal.storage_",C));return C}; +Vp.prototype.estimate=function(){var C,b,h;return g.R(function(N){C=navigator;return((b=C.storage)==null?0:b.estimate)?N.return(C.storage.estimate()):((h=C.webkitTemporaryStorage)==null?0:h.queryUsageAndQuota)?N.return(Zk6()):N.return()})}; +g.Ol("ytglobal.storageClass_",Vp);cG.prototype.RF=function(C){this.handleError(C)}; +cG.prototype.logEvent=function(C,b){switch(C){case "IDB_DATA_CORRUPTED":g.HQ("idb_data_corrupted_killswitch")||this.j("idbDataCorrupted",b);break;case "IDB_UNEXPECTEDLY_CLOSED":this.j("idbUnexpectedlyClosed",b);break;case "IS_SUPPORTED_COMPLETED":g.HQ("idb_is_supported_completed_killswitch")||this.j("idbIsSupportedCompleted",b);break;case "QUOTA_EXCEEDED":acl(this,b);break;case "TRANSACTION_ENDED":this.N&&Math.random()<=.1&&this.j("idbTransactionEnded",b);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":C= +Object.assign({},b,{hasWindowUnloaded:this.K}),this.j("idbTransactionAborted",C)}};var W2={},Bqo=g.h0("yt-player-local-media",{R_:(W2.index={ES:2},W2.media={ES:2},W2.captions={ES:5},W2),shared:!1,upgrade:function(C,b){b(2)&&(g.rm(C,"index"),g.rm(C,"media"));b(5)&&g.rm(C,"captions");b(6)&&(Ji(C,"metadata"),Ji(C,"playerdata"))}, +version:5});var zr0={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1,kitkat:4.4,lollipop:5.1,marshmallow:6,nougat:7.1},EI;a:{var nK=g.iC();nK=nK.toLowerCase();if(g.mh(nK,"android")){var HLE=nK.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(HLE){var VHC=parseFloat(HLE[1]);if(VHC<100){EI=VHC;break a}}var MH$=nK.match("("+Object.keys(zr0).join("|")+")");EI=MH$?zr0[MH$[0]]:0}else EI=void 0}var MX=EI,VY=MX>=0;var CdH=window;var lco=YE(function(){var C,b;return(b=(C=window).matchMedia)==null?void 0:b.call(C,"(prefers-reduced-motion: reduce)").matches});var qS;g.MS=new y6;qS=0;var mu={Zm:function(C,b){C.splice(0,b)}, +xQ:function(C){C.reverse()}, +F7:function(C,b){var h=C[0];C[0]=C[b%C.length];C[b%C.length]=h}};var Ydl=new Set(["embed_config","endscreen_ad_tracking","home_group_info","ic_track"]);var D5=VPV()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.BG?!0:!1;var tgK={HZo:"adunit",Tih:"detailpage",w$i:"editpage",Z5f:"embedded",Ycf:"leanback",PRi:"previewpage",T8o:"profilepage",eW:"unplugged",LCX:"playlistoverview",iS4:"sponsorshipsoffer",MJ2:"shortspage",FLp:"handlesclaiming",NHf:"immersivelivepage",Luf:"creatormusic",XTh:"immersivelivepreviewpage",s$h:"admintoolyurt",ys$:"shortsaudiopivot",uz$:"consumption"};var tr,qWD,y8;tr={};g.Qp=(tr.STOP_EVENT_PROPAGATION="html5-stop-propagation",tr.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",tr.IV_DRAWER_OPEN="ytp-iv-drawer-open",tr.MAIN_VIDEO="html5-main-video",tr.VIDEO_CONTAINER="html5-video-container",tr.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",tr.HOUSE_BRAND="house-brand",tr);qWD={};y8=(qWD.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",qWD.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",qWD);var rc_={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var R9W={ANDROID:3,ANDROID_KIDS:18,ANDROID_MUSIC:21,ANDROID_UNPLUGGED:29,WEB:1,WEB_REMIX:67,WEB_UNPLUGGED:41,IOS:5,IOS_KIDS:19,IOS_MUSIC:26,IOS_UNPLUGGED:33},Qk6={android:"ANDROID","android.k":"ANDROID_KIDS","android.m":"ANDROID_MUSIC","android.up":"ANDROID_UNPLUGGED",youtube:"WEB","youtube.m":"WEB_REMIX","youtube.up":"WEB_UNPLUGGED",ytios:"IOS","ytios.k":"IOS_KIDS","ytios.m":"IOS_MUSIC","ytios.up":"IOS_UNPLUGGED"},eKU={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var l8W={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.nx.prototype.getLanguageInfo=function(){return this.z$}; +g.nx.prototype.getXtags=function(){if(!this.xtags){var C=this.id.split(";");C.length>1&&(this.xtags=C[1])}return this.xtags}; +g.nx.prototype.toString=function(){return this.z$.name}; +g.nx.prototype.getLanguageInfo=g.nx.prototype.getLanguageInfo;td.prototype.y8=function(C){return this.K===C.K&&this.j===C.j&&this.N===C.N&&this.reason===C.reason&&(!Bx||this.OX===C.OX)}; +td.prototype.isLocked=function(){return this.N&&!!this.K&&this.K===this.j}; +td.prototype.compose=function(C){if(C.N&&Ic(C))return RQ;if(C.N||Ic(this))return C;if(this.N||Ic(C))return this;var b=this.K&&C.K?Math.max(this.K,C.K):this.K||C.K,h=this.j&&C.j?Math.min(this.j,C.j):this.j||C.j;b=Math.min(b,h);var N=0;Bx&&(N=this.OX!==0&&C.OX!==0?Math.min(this.OX,C.OX):this.OX===0?C.OX:this.OX);return Bx&&b===this.K&&h===this.j&&N===this.OX||!Bx&&b===this.K&&h===this.j?this:Bx?new td(b,h,!1,h===this.j&&N===this.OX?this.reason:C.reason,N):new td(b,h,!1,h===this.j?this.reason:C.reason)}; +td.prototype.X=function(C){return!C.video||Bx&&this.OX!==0&&this.OX=0}; +g.k.tK=function(){var C=this.segments[this.segments.length-1];return C?C.endTime:NaN}; +g.k.Mo=function(){return this.segments[0].startTime}; +g.k.wp=function(){return this.segments.length}; +g.k.yw=function(){return 0}; +g.k.nZ=function(C){return(C=this.Px(C))?C.yz:-1}; +g.k.gI=function(C){return(C=this.H5(C))?C.sourceURL:""}; +g.k.getStartTime=function(C){return(C=this.H5(C))?C.startTime:0}; +g.k.Qg=function(C){return this.getStartTime(C)+this.getDuration(C)}; +g.k.Lq=NW(1);g.k.isLoaded=function(){return this.segments.length>0}; +g.k.H5=function(C){if(this.j&&this.j.yz===C)return this.j;C=g.ks(this.segments,new $0(C,0,0,0,""),function(b,h){return b.yz-h.yz}); +return this.j=C>=0?this.segments[C]:null}; +g.k.Px=function(C){if(this.j&&this.j.startTime<=C&&C=0?this.segments[C]:this.segments[Math.max(0,-C-2)]}; +g.k.append=function(C){if(C.length)if(C=g.NI(C),this.segments.length){var b=this.segments.length?g.to(this.segments).endTime:0,h=C[0].yz-this.Fs();h>1&&xWW(this.segments);for(h=h>0?0:-h+1;hC.yz&&this.index.SJ()<=C.yz+1}; +g.k.update=function(C,b,h){this.index.append(C);eSH(this.index,h);C=this.index;C.K=b;C.N="update"}; +g.k.MK=function(){return this.FE()?!0:F2.prototype.MK.call(this)}; +g.k.Nk=function(C,b){var h=this.index.gI(C),N=this.index.getStartTime(C),p=this.index.getDuration(C),P;b?p=P=0:P=this.info.OX>0?this.info.OX*p:1E3;return new y0([new Hw(3,this,void 0,"liveCreateRequestInfoForSegment",C,N,p,0,P,!b)],h)}; +g.k.u_=function(){return this.FE()?0:this.initRange.length}; +g.k.T1=function(){return!1};Uu.prototype.update=function(C){var b=void 0;this.K&&(b=this.K);var h=new Uu,N=Array.from(C.getElementsByTagName("S"));if(N.length){var p=+Rv(C,"timescale")||1,P=(+N[0].getAttribute("t")||0)/p,c=+Rv(C,"startNumber")||0;h.X=P;var e=b?b.startSecs+b.YJ:0,L=Date.parse(N6l(Rv(C,"yt:segmentIngestTime")))/1E3;h.G=C.parentElement.tagName==="SegmentTemplate";h.G&&(h.J=Rv(C,"media"));C=b?c-b.yz:1;h.W=C>0?0:-C+1;C=g.z(N);for(N=C.next();!N.done;N=C.next()){N=N.value;for(var Z=+N.getAttribute("d")/p,Y=(+N.getAttribute("yt:sid")|| +0)/p,a=+N.getAttribute("r")||0,l=0;l<=a;l++)if(b&&c<=b.yz)c++;else{var F=new bIV(c,e,Z,L+Y,P);h.j.push(F);var G=N;var V=p,q=F.startSecs;F=G.getAttribute("yt:cuepointTimeOffset");var f=G.getAttribute("yt:cuepointDuration");if(F&&f){F=Number(F);q=-F/V+q;V=Number(f)/V;f=G.getAttribute("yt:cuepointContext")||null;var y=G.getAttribute("yt:cuepointIdentifier")||"";G=G.getAttribute("yt:cuepointEvent")||"";G=new rE(q,V,f,y,fDE[G]||"unknown",F)}else G=null;G&&h.N.push(G);c++;e+=Z;P+=Z;L+=Z+Y}}h.j.length&& +(h.K=g.to(h.j))}this.W=h.W;this.K=h.K||this.K;g.g$(this.j,h.j);g.g$(this.N,h.N);this.G=h.G;this.J=h.J;this.X===-1&&(this.X=h.getStreamTimeOffset())}; +Uu.prototype.getStreamTimeOffset=function(){return this.X===-1?0:this.X};g.S(K$,g.z2);g.k=K$.prototype;g.k.DA=function(){return this.ip}; +g.k.C2=function(C,b){C=Ou(this,C);return C>=0&&(b||!this.segments[C].pending)}; +g.k.SJ=function(){return this.DR?this.segments.length?this.Px(this.Mo()).yz:-1:g.z2.prototype.SJ.call(this)}; +g.k.Mo=function(){if(this.y_)return 0;if(!this.DR)return g.z2.prototype.Mo.call(this);if(!this.segments.length)return 0;var C=Math.max(g.to(this.segments).endTime-this.hc,0);return this.G5>0&&this.Px(C).yz0)return this.bR/1E3;if(!this.segments.length)return g.z2.prototype.tK.call(this);var C=this.Fs();if(!this.DR||C<=this.segments[this.segments.length-1].yz)C=this.segments[this.segments.length-1];else{var b=this.segments[this.segments.length-1];C=new $0(C,Math.max(0,b.startTime-(b.yz-C)*this.ip),this.ip,0,"sq/"+C,void 0,void 0,!0)}return this.y_?Math.min(this.hc,C.endTime):C.endTime}; +g.k.wp=function(){return this.DR?this.segments.length?this.Fs()-this.SJ()+1:0:g.z2.prototype.wp.call(this)}; +g.k.Fs=function(){var C=Math.min(this.Ee,Math.max(g.z2.prototype.Fs.call(this),this.qW)),b=this.hc*1E3;b=this.bR>0&&this.bR0&&this.qW>0&&!b&&(b=this.Px(this.hc))&&(C=Math.min(b.yz-1,C));return C}; +g.k.MJ=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; +g.k.K7=function(C){var b=Ou(this,C.yz);if(b>=0)this.segments[b]=C;else if(this.segments.splice(-(b+1),0,C),this.Nw&&C.yz%(300/this.ip)===0){var h=this.segments[0].yz,N=Math.floor(this.Nw/this.ip);C=C.yz-N;b=-(b+1)-N;b>0&&C>h&&(this.segments=this.segments.slice(b))}}; +g.k.rI=function(){return this.qW}; +g.k.zb=function(C){return X2?!this.K&&C>=0&&this.Fs()<=C:g.z2.prototype.zb.call(this,C)}; +g.k.Px=function(C){if(!this.DR)return g.z2.prototype.Px.call(this,C);if(!this.segments.length)return null;var b=this.segments[this.segments.length-1];if(C=b.endTime)b=b.yz+Math.floor((C-b.endTime)/this.ip+1);else{b=eo(this.segments,function(N){return C=N.endTime?1:0}); +if(b>=0)return this.segments[b];var h=-(b+1);b=this.segments[h-1];h=this.segments[h];b=Math.floor((C-b.endTime)/((h.startTime-b.endTime)/(h.yz-b.yz-1))+1)+b.yz}return this.H5(b)}; +g.k.H5=function(C){if(!this.DR)return g.z2.prototype.H5.call(this,C);if(!this.segments.length)return null;var b=Ou(this,C);if(b>=0)return this.segments[b];var h=-(b+1);b=this.ip;if(h===0)var N=Math.max(0,this.segments[0].startTime-(this.segments[0].yz-C)*b);else h===this.segments.length?(N=this.segments[this.segments.length-1],N=N.endTime+(C-N.yz-1)*b):(N=this.segments[h-1],b=this.segments[h],b=(b.startTime-N.endTime)/(b.yz-N.yz-1),N=N.endTime+(C-N.yz-1)*b);return new $0(C,N,b,0,"sq/"+C,void 0,void 0, +!0)}; +var X2=!1;g.S(vw,u0);g.k=vw.prototype;g.k.uQ=function(){return!0}; +g.k.MK=function(){return!0}; +g.k.KB=function(C){return this.Ka()&&C.N&&!C.X||!C.j.index.zb(C.yz)}; +g.k.lP=function(){}; +g.k.gh=function(C,b){return typeof C!=="number"||isFinite(C)?u0.prototype.gh.call(this,C,b===void 0?!1:b):new y0([new Hw(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.jL,void 0,this.jL*this.info.OX)],"")}; +g.k.Nk=function(C,b){var h=h===void 0?!1:h;if(this.index.C2(C))return u0.prototype.Nk.call(this,C,b);var N=this.index.getStartTime(C),p=Math.round(this.jL*this.info.OX),P=this.jL;b&&(P=p=0);return new y0([new Hw(h?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",C,N,P,void 0,p,!b)],C>=0?"sq/"+C:"")};g.S(DT,F2);g.k=DT.prototype;g.k.uR=function(){return!1}; +g.k.Ka=function(){return!1}; +g.k.uQ=function(){return!1}; +g.k.lP=function(){return new y0([new Hw(1,this,void 0,"otfInit")],this.G)}; +g.k.Zc=function(){return null}; +g.k.A1=function(C){this.KB(C);return L16(this,m6(C),!1)}; +g.k.gh=function(C,b){b=b===void 0?!1:b;C=this.index.nZ(C);b&&(C=Math.min(this.index.Fs(),C+1));return L16(this,C,!0)}; +g.k.Bn=function(C){C.info.type===1&&(this.j||(this.j=VC(C.j)),C.K&&C.K.uri==="http://youtube.com/streaming/otf/durations/112015"&&ZI1(this,C.K))}; +g.k.KB=function(C){return C.N===0?!0:this.index.Fs()>C.yz&&this.index.SJ()<=C.yz+1}; +g.k.u_=function(){return 0}; +g.k.T1=function(){return!1};dd.prototype.W7=function(){return this.j.W7()};g.k=g.Bw.prototype;g.k.C2=function(C){return C<=this.Fs()}; +g.k.yw=function(C){return this.offsets[C]}; +g.k.getStartTime=function(C){return this.startTicks[C]/this.j}; +g.k.Qg=function(C){return this.getStartTime(C)+this.getDuration(C)}; +g.k.Lq=NW(0);g.k.vF=function(){return NaN}; +g.k.getDuration=function(C){C=this.Ww(C);return C>=0?C/this.j:-1}; +g.k.Ww=function(C){return C+1=0}; +g.k.tK=function(){return this.K?this.startTicks[this.count]/this.j:NaN}; +g.k.Mo=function(){return 0}; +g.k.wp=function(){return this.count}; +g.k.gI=function(){return""}; +g.k.nZ=function(C){C=g.ks(this.startTicks.subarray(0,this.count),C*this.j);return C>=0?C:Math.max(0,-C-2)}; +g.k.isLoaded=function(){return this.Fs()>=0}; +g.k.Jg=function(C,b){if(C>=this.Fs())return 0;var h=0;for(b=this.getStartTime(C)+b;Cthis.getStartTime(C);C++)h=Math.max(h,zBW(this,C)/this.getDuration(C));return h}; +g.k.resize=function(C){C+=2;var b=this.offsets;this.offsets=new Float64Array(C+1);var h=this.startTicks;this.startTicks=new Float64Array(C+1);for(C=0;C0&&C&&(h=h.range.end+1,C=Math.min(C,this.info.contentLength-h),C>0&&N.push(new Hw(4,this,$i(h,C),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,b)));return new y0(N)}; +g.k.Bn=function(C){if(C.info.type===1){if(this.j)return;this.j=VC(C.j)}else if(C.info.type===2){if(this.G||this.index.Fs()>=0)return;if(g.tm(this.info)){var b=this.index,h=C.W7();C=C.info.range.start;var N=g.QL(h,0,1936286840);h=HEH(N);b.j=h.timescale;var p=h.Mf;b.offsets[0]=h.wW+C+N.size;b.startTicks[0]=p;b.K=!0;C=h.hW.length;for(N=0;N0&&C===P[0].gM)for(C=0;C=b+h)break}p.length||g.Ri(new g.tJ("b189619593",""+C,""+b,""+h));return new y0(p)}; +g.k.Dh=function(C){for(var b=this.F$(C.info),h=C.info.range.start+C.info.K,N=[],p=0;p=this.index.yw(h+1);)h++;return this.oQ(h,b,C.N).UX}; +g.k.KB=function(C){C.b1();return this.MK()?!0:C.range.end+1this.info.contentLength&&(b=new GE(b.start,this.info.contentLength-1)),new y0([new Hw(4,C.j,b,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,C.clipId)]);C.type===4&&(C=this.F$(C),C=C[C.length-1]);var h=0,N=C.range.start+C.K+C.N;C.type===3&&(C.b1(),h=C.yz,N===C.range.end+1&&(h+=1));return this.oQ(h,N,b)}; +g.k.A1=function(){return null}; +g.k.gh=function(C,b,h){b=b===void 0?!1:b;C=this.index.nZ(C);b&&(C=Math.min(this.index.Fs(),C+1));return this.oQ(C,this.index.yw(C),0,h)}; +g.k.uR=function(){return!0}; +g.k.Ka=function(){return!0}; +g.k.uQ=function(){return!1}; +g.k.u_=function(){return this.indexRange.length+this.initRange.length}; +g.k.T1=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var B2={},K1V=(B2.COLOR_PRIMARIES_BT709="bt709",B2.COLOR_PRIMARIES_BT2020="bt2020",B2.COLOR_PRIMARIES_UNKNOWN=null,B2.COLOR_PRIMARIES_UNSPECIFIED=null,B2),Iq={},VJW=(Iq.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",Iq.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",Iq.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",Iq.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",Iq.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,Iq.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,Iq);g.wd.prototype.getName=function(){return this.name}; +g.wd.prototype.getId=function(){return this.id}; +g.wd.prototype.getIsDefault=function(){return this.isDefault}; +g.wd.prototype.toString=function(){return this.name}; +g.wd.prototype.getName=g.wd.prototype.getName;g.wd.prototype.getId=g.wd.prototype.getId;g.wd.prototype.getIsDefault=g.wd.prototype.getIsDefault;var fmc=/action_display_post/;var AAS,hP,NE;g.S(gs,g.cr);g.k=gs.prototype;g.k.isLoading=function(){return this.state===1}; +g.k.Yf=function(){return this.state===3}; +g.k.QD6=function(C){var b=C.getElementsByTagName("Representation");if(C.getElementsByTagName("SegmentList").length>0||C.getElementsByTagName("SegmentTemplate").length>0){this.yV=this.K=!0;this.timeline||(this.timeline=new p6U);kFl(this.timeline,C);this.publish("refresh");for(C=0;C=0?Y=SS(l):a=a+"?range="+l}L.call(e,new $0(Z.yz,Z.startSecs,Z.YJ,Z.j,a,Y,Z.K))}N=p}h.update(N,this.isLive,this.m6)}eBW(this.timeline);return!0}this.duration=hBS(Rv(C,"mediaPresentationDuration")); +a:{for(C=0;C0))return this.J8()-C}}C=this.j;for(var b in C){var h=C[b].index;if(h.isLoaded()&&!B9(C[b].info))return h.Mo()}return 0}; +g.k.getStreamTimeOffset=function(){return this.J}; +g.k.vF=function(C){for(var b in this.j){var h=this.j[b].index;if(h.isLoaded()){var N=h.nZ(C),p=h.vF(N);if(p)return p+C-h.getStartTime(N)}}return NaN}; +var GM=null,AxD,S$=!((AxD=navigator.mediaCapabilities)==null||!AxD.decodingInfo),W1l={commentary:1,alternate:2,dub:3,main:4};var Sq=new Set,$y=new Map;VZ.prototype.clone=function(C){return new VZ(this.flavor,C,this.K,this.experiments)}; +VZ.prototype.jf=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; +VZ.prototype.getInfo=function(){switch(this.keySystem){case "com.youtube.playready":return"PRY";case "com.microsoft.playready":return"PRM";case "com.widevine.alpha":return"WVA";case "com.youtube.widevine.l3":return"WVY";case "com.youtube.fairplay":return"FPY";case "com.youtube.fairplay.sbdl":return"FPC";case "com.apple.fps.1_0":return"FPA";default:return this.keySystem}}; +var yx0={},u8=(yx0.playready=["com.youtube.playready","com.microsoft.playready"],yx0.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],yx0),xN={},sDl=(xN.widevine="DRM_SYSTEM_WIDEVINE",xN.fairplay="DRM_SYSTEM_FAIRPLAY",xN.playready="DRM_SYSTEM_PLAYREADY",xN),wn={},rxI=(wn.widevine=1,wn.fairplay=2,wn.playready=3,wn);QZ.prototype.VH=function(C,b){b=b===void 0?1:b;this.Js+=b;this.K+=C;C/=b;for(var h=0;h0)N+="."+RG[p].toFixed(0)+"_"+h.j[p].toFixed(0);else break;h=N}h&&(C[b]=h)}this.j=new pFl;return C}; +g.k.toString=function(){return""};g.k=L0l.prototype;g.k.isActive=function(){return!1}; +g.k.sM=function(){}; +g.k.tJ=function(){}; +g.k.cg=function(C,b){return b}; +g.k.nP=function(){}; +g.k.zP=function(){}; +g.k.LT=function(C,b){return b()}; +g.k.Bw=function(){return{}}; +g.k.toString=function(){return""};var C1,iLC,Jxe,ujC,Rro,Q6h,bL,iS,nl,B76,Oy;C1=new L0l;iLC=!!+Io("html5_enable_profiler");Jxe=!!+Io("html5_onesie_enable_profiler");ujC=!!+Io("html5_offline_encryption_enable_profiler");Rro=!!+Io("html5_performance_impact_profiling_timer_ms");Q6h=!!+Io("html5_drm_enable_profiler");bL=iLC||Jxe||ujC||Rro||Q6h?new jJ1:C1;g.sb=iLC?bL:C1;iS=Jxe?bL:C1;nl=ujC?bL:C1;B76=Rro?bL:C1;Oy=Q6h?bL:C1;var sy;g.S(Xc,g.O); +Xc.prototype.initialize=function(C,b){for(var h=this,N=g.z(Object.keys(C)),p=N.next();!p.done;p=N.next()){p=g.z(C[p.value]);for(var P=p.next();!P.done;P=p.next())if(P=P.value,P.f9)for(var c=g.z(Object.keys(P.f9)),e=c.next();!e.done;e=c.next()){var L=e.value;e=L;L=u8[L];!L&&this.D("html5_enable_vp9_fairplay")&&e==="fairplay"&&(L=["com.youtube.fairplay.sbdl"]);if(L){L=g.z(L);for(var Z=L.next();!Z.done;Z=L.next())Z=Z.value,this.N[Z]=this.N[Z]||new VZ(e,Z,P.f9[e],this.Rf.experiments),this.j[e]=this.j[e]|| +{},this.j[e][P.mimeType]=!0}}}nN()&&(this.N["com.youtube.fairplay"]=new VZ("fairplay","com.youtube.fairplay","",this.Rf.experiments),this.D("html5_enable_vp9_fairplay")||(this.j.fairplay=this.j.fairplay||{},this.j.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.j.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.K=g4H(b,this.useCobaltWidevine,this.D("html5_enable_safari_fairplay"),this.D("html5_enable_vp9_fairplay")).filter(function(Y){return!!h.N[Y]})}; +Xc.prototype.D=function(C){return this.Rf.experiments.Fo(C)};var UA0={"":"LIVE_STREAM_MODE_UNKNOWN",dvr:"LIVE_STREAM_MODE_DVR",lp:"LIVE_STREAM_MODE_LP",post:"LIVE_STREAM_MODE_POST",window:"LIVE_STREAM_MODE_WINDOW",live:"LIVE_STREAM_MODE_LIVE"};GO6.prototype.D=function(C){return this.experiments.Fo(C)};var BPS={RED:"red",XmO:"white"};SXl.prototype.Fo=function(C){C=this.flags[C];JSON.stringify(C);return C==="true"};var H3l=Promise.resolve(),mOW=window.queueMicrotask?window.queueMicrotask.bind(window):VgW;WR.prototype.canPlayType=function(C,b){C=C.canPlayType?C.canPlayType(b):!1;Tn?C=C||XvE[b]:MX===2.2?C=C||KPE[b]:WQ()&&(C=C||s6I[b]);return!!C}; +WR.prototype.isTypeSupported=function(C){return this.KO?window.cast.receiver.platform.canDisplayType(C):re(C)}; +var KPE={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},s6I={"application/x-mpegURL":"maybe"},XvE={"application/x-mpegURL":"maybe"};g.S(BR,g.cr);BR.prototype.add=function(C,b){if(!this.items[C]&&(b.ij||b.Ii||b.nY)){var h=this.items,N=b;Object.isFrozen&&!Object.isFrozen(b)&&(N=Object.create(b),Object.freeze(N));h[C]=N;this.publish("vast_info_card_add",C)}}; +BR.prototype.remove=function(C){var b=this.get(C);delete this.items[C];return b}; +BR.prototype.get=function(C){return this.items[C]||null}; +BR.prototype.isEmpty=function(){return g.yT(this.items)};g.S(IG,g.HW);IG.prototype.j=function(C,b){return g.HW.prototype.j.call(this,C,b)}; +IG.prototype.K=function(C,b,h){var N=this;return g.R(function(p){return p.j==1?g.J(p,g.HW.prototype.K.call(N,C,b,h),2):p.return(p.K)})}; +g.S(ws,g.V6);ws.prototype.encrypt=function(C,b){return g.V6.prototype.encrypt.call(this,C,b)};var b2;h9.prototype.add=function(C){if(this.pos+20>this.data.length){var b=new Uint8Array(this.data.length*2);b.set(this.data);this.data=b}for(;C>31;)this.data[this.pos++]=b2[(C&31)+32],C>>=5;this.data[this.pos++]=b2[C|0]}; +h9.prototype.Oq=function(){return g.fD(this.data.subarray(0,this.pos))}; +h9.prototype.reset=function(){this.pos=0};g_.prototype.eQ=function(C,b){var h=Math.pow(this.alpha,C);this.j=b*(1-h)+h*this.j;this.K+=C}; +g_.prototype.w0=function(){return this.j/(1-Math.pow(this.alpha,this.K))};pO.prototype.eQ=function(C,b){for(var h=0;h<10;h++){var N=this.j[h],p=N+(h===0?C:0),P=1*Math.pow(2,h);if(p<=P)break;N=Math.min(1,(p-P*.5)/N);for(p=0;p<16;p++)P=this.values[h*16+p]*N,this.values[(h+1)*16+p]+=P,this.j[h+1]+=P,this.values[h*16+p]-=P,this.j[h]-=P}N=h=0;p=8192;b>8192&&(h=Math.ceil(Math.log(b/8192)/Math.log(2)),N=8192*Math.pow(2,h-1),p=N*2);h+2>16?this.values[15]+=C:(b=(b-N)/(p-N),this.values[h]+=C*(1-b),this.values[h+1]+=C*b);this.j[0]+=C}; +pO.prototype.w0=function(){var C=C===void 0?this.K:C;var b=b===void 0?.02:b;var h=h===void 0?.98:h;for(var N=this.N,p=0;p<16;p++)N[p]=this.values[p];p=this.j[0];for(var P=1;P<11;P++){var c=this.j[P];if(c===0)break;for(var e=Math.min(1,(C-p)/c),L=0;L<16;L++)N[L]+=this.values[P*16+L]*e;p+=c*e;if(e<1)break}for(P=C=c=0;P<16;P++){e=c+N[P]/p;C+=Math.max(0,Math.min(e,h)-Math.max(c,b))*(P>0?8192*Math.pow(2,P-1):0);if(e>h)break;c=e}return C/(h-b)};PI.prototype.eQ=function(C,b){C=Math.min(this.j,Math.max(1,Math.round(C*this.resolution)));C+this.K>=this.j&&(this.N=!0);for(;C--;)this.values[this.K]=b,this.K=(this.K+1)%this.j;this.rh=!0}; +PI.prototype.percentile=function(C){var b=this;if(!this.N&&this.K===0)return 0;this.rh&&(g.Ls(this.G,function(h,N){return b.values[h]-b.values[N]}),this.rh=!1); +return this.values[this.G[Math.round(C*((this.N?this.j:this.K)-1))]]||0}; +PI.prototype.w0=function(){return this.W?(this.percentile(this.X-this.W)+this.percentile(this.X)+this.percentile(this.X+this.W))/3:this.percentile(this.X)};g.S(jR,g.O);jR.prototype.CO=function(){var C;(C=this.rO)==null||C.start();if(l2(this)&&this.policy.L){var b;(b=this.bf)==null||b.Ca()}};O3U.prototype.D=function(C){return this.experiments.Fo(C)};g.S(DOW,g.O);var TPV="blogger gac books docs duo flix google-live google-one play shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),by1={zz4:"caoe",Ta$:"capsv",nwO:"cbrand",R3i:"cbr",dlE:"cbrver",QFX:"cchip",piE:"ccappver",t1p:"ccrv",rR4:"cfrmver",ZIE:"c",xZz:"cver",R42:"ctheme",nf$:"cplayer",n76:"cmodel",H2O:"cnetwork",huX:"cos",fZi:"cosver",SVf:"cplatform",ZSi:"crqyear"};g.S(Rh,g.O);g.k=Rh.prototype;g.k.D=function(C){return this.experiments.Fo(C)}; +g.k.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; +g.k.getVideoUrl=function(C,b,h,N,p,P,c){b={list:b};h&&(p?b.time_continue=h:b.t=h);h=c?"music.youtube.com":g.Ua(this);p=h==="www.youtube.com";!P&&N&&p?P="https://youtu.be/"+C:g.fO(this)?(P="https://"+h+"/fire",b.v=C):(P&&p?(P=this.protocol+"://"+h+"/shorts/"+C,N&&(b.feature="share")):(P=this.protocol+"://"+h+"/watch",b.v=C),Tn&&(C=D1W())&&(b.ebc=C));return g.dt(P,b)}; +g.k.getVideoEmbedCode=function(C,b,h,N){b="https://"+g.Ua(this)+"/embed/"+b;N&&(b=g.dt(b,{list:N}));N=h.width;h=h.height;b=xT(b);C=xT(C!=null?C:"YouTube video player");return'')}; +g.k.supportsGaplessAudio=function(){return g.yX&&!Tn&&D1()>=74||g.i8&&g.So(68)?!0:!1}; +g.k.supportsGaplessShorts=function(){return!this.D("html5_enable_short_gapless")||this.CO||g.$1?!1:!0}; +g.k.getPlayerType=function(){return this.j.cplayer}; +g.k.tZ=function(){return this.ge}; +var pzK=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],Cj_=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],Nql=[19];var h6={},cvK=(h6["140"]={numChannels:2},h6["141"]={numChannels:2},h6["251"]={audioSampleRate:48E3,numChannels:2},h6["774"]={audioSampleRate:48E3,numChannels:2},h6["380"]={numChannels:6},h6["328"]={numChannels:6},h6["773"]={},h6),N2={},PjV=(N2["1"]='video/mp4; codecs="av01.0.08M.08"',N2["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',N2["9"]='video/webm; codecs="vp9"',N2["("]='video/webm; codecs="vp9"',N2["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"',N2.h='video/mp4; codecs="avc1.64001e"', +N2.H='video/mp4; codecs="avc1.64001e"',N2.o='audio/webm; codecs="opus"',N2.a='audio/mp4; codecs="mp4a.40.2"',N2.ah='audio/mp4; codecs="mp4a.40.2"',N2.mac3='audio/mp4; codecs="ac-3"; channels=6',N2.meac3='audio/mp4; codecs="ec-3"; channels=6',N2.i='audio/mp4; codecs="iamf.001.001.Opus"',N2),gx={},jz1=(gx["337"]={width:3840,height:2160,bitrate:3E7,fps:30},gx["336"]={width:2560,height:1440,bitrate:15E6,fps:30},gx["335"]={width:1920,height:1080,bitrate:75E5,fps:30},gx["702"]={width:7680,height:4320,bitrate:4E7, +fps:60},gx["701"]={width:3840,height:2160,bitrate:2E7,fps:60},gx["700"]={width:2560,height:1440,bitrate:1E7,fps:60},gx["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},gx["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},gx["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},gx["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"},gx["409"]={width:1280,height:720,bitrate:1996E3, +fps:60,cryptoblockformat:"subsample"},gx["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},gx["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},gx["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},gx["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},gx["315"]={width:3840,height:2160,bitrate:2E7,fps:60},gx["308"]={width:2560,height:1440,bitrate:1E7,fps:60},gx["303"]= +{width:1920,height:1080,bitrate:5E6,fps:60},gx["302"]={width:1280,height:720,bitrate:25E5,fps:60},gx["299"]={width:1920,height:1080,bitrate:75E5,fps:60},gx["298"]={width:1280,height:720,bitrate:35E5,fps:60},gx["571"]={width:7680,height:4320,bitrate:3E7,fps:60},gx["401"]={width:3840,height:2160,bitrate:15E6,fps:60},gx["400"]={width:2560,height:1440,bitrate:75E5,fps:60},gx["399"]={width:1920,height:1080,bitrate:2E6,fps:60},gx["398"]={width:1280,height:720,bitrate:1E6,fps:60},gx["397"]={width:854,height:480, +bitrate:4E5,fps:30},gx["396"]={width:640,height:360,bitrate:25E4,fps:30},gx["787"]={width:1080,height:608,bitrate:2E5,fps:30},gx["788"]={width:1080,height:608,bitrate:4E5,fps:30},gx["313"]={width:3840,height:2160,bitrate:8E6,fps:30},gx["271"]={width:2560,height:1440,bitrate:4E6,fps:30},gx["248"]={width:1920,height:1080,bitrate:2E6,fps:30},gx["247"]={width:1280,height:720,bitrate:15E5,fps:30},gx["244"]={width:854,height:480,bitrate:52E4,fps:30},gx["243"]={width:640,height:360,bitrate:28E4,fps:30}, +gx["137"]={width:1920,height:1080,bitrate:4E6,fps:30},gx["136"]={width:1280,height:720,bitrate:3E6,fps:30},gx["135"]={width:854,height:480,bitrate:1E6,fps:30},gx["385"]={width:1920,height:1080,bitrate:6503313,fps:60},gx["376"]={width:1280,height:720,bitrate:5706960,fps:60},gx["384"]={width:1280,height:720,bitrate:3660979,fps:60},gx["225"]={width:1280,height:720,bitrate:5805E3,fps:30},gx["224"]={width:1280,height:720,bitrate:453E4,fps:30},gx["145"]={width:1280,height:720,bitrate:2682052,fps:30},gx);g.k=w_.prototype;g.k.getInfo=function(){return this.j}; +g.k.I7=function(){return null}; +g.k.oZ=function(){var C=this.I7();return C?(C=g.PQ(C.dU),Number(C.expire)):NaN}; +g.k.g$=function(){}; +g.k.getHeight=function(){return this.j.video.height};ZyS.prototype.build=function(){lVl(this);var C=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],b={};a:if(this.j)var h=this.j;else{h="";for(var N=g.z(this.N),p=N.next();!p.done;p=N.next())if(p=p.value,p.z$){if(p.z$.getIsDefault()){h=p.z$.getId();break a}h||(h=p.z$.getId())}}N=g.z(this.N);for(p=N.next();!p.done;p=N.next())if(p=p.value,this.W||!p.z$||p.z$.getId()===h)b[p.itag]||(b[p.itag]=[]),b[p.itag].push(p);h=g.z(this.K);for(N=h.next();!N.done;N=h.next())if(N=N.value,p=b[N.j]){p=g.z(p);for(var P=p.next();!P.done;P= +p.next()){var c=C,e=c.push;P=P.value;var L="#EXT-X-MEDIA:TYPE=AUDIO,",Z="YES",Y="audio";if(P.z$){Y=P.z$;var a=Y.getId().split(".")[0];a&&(L+='LANGUAGE="'+a+'",');(this.j?this.j===Y.getId():Y.getIsDefault())||(Z="NO");Y=Y.getName()}a="";N!==null&&(a=N.itag.toString());a=bW(this,P.url,a);L=L+('NAME="'+Y+'",DEFAULT='+(Z+',AUTOSELECT=YES,GROUP-ID="'))+(aVU(P,N)+'",URI="'+(a+'"'));e.call(c,L)}}h=g.z(this.G);for(N=h.next();!N.done;N=h.next())N=N.value,p=OLd,N=(c=N.z$)?'#EXT-X-MEDIA:URI="'+bW(this,N.url)+ +'",TYPE=SUBTITLES,GROUP-ID="'+p+'",LANGUAGE="'+c.getId()+'",NAME="'+c.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,N&&C.push(N);h=this.G.length>0?OLd:void 0;N=g.z(this.K);for(p=N.next();!p.done;p=N.next())p=p.value,e=b[p.j],c=void 0,((c=e)==null?void 0:c.length)>0&&(c=p,e=e[0],e="#EXT-X-STREAM-INF:BANDWIDTH="+(c.bitrate+e.bitrate)+',CODECS="'+(c.codecs+","+e.codecs+'",RESOLUTION=')+(c.width+"x"+c.height+',AUDIO="')+(aVU(e,c)+'",')+(h?'SUBTITLES="'+h+'",':"")+"CLOSED-CAPTIONS=NONE",c.fps>1&&(e+= +",FRAME-RATE="+c.fps),c.yS&&(e+=",VIDEO-RANGE="+c.yS),C.push(e),C.push(bW(this,p.url,"")));return C.join("\n")}; +var OLd="text";g.S(hq,w_);hq.prototype.oZ=function(){return this.expiration}; +hq.prototype.I7=function(){if(!this.dU||this.dU.HE()){var C=this.K.build();C="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(C);this.dU=new aA(C)}return this.dU};g.S(Nm,w_);Nm.prototype.I7=function(){return new aA(this.K.p9())}; +Nm.prototype.g$=function(){this.K=G2(this.K)};g.S(gF,w_);gF.prototype.I7=function(){return new aA(this.K)};var p1={},qwW=(p1.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",p1.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",p1.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",p1);g.k=g.pj.prototype;g.k.getId=function(){return this.id}; +g.k.getName=function(){return this.name}; +g.k.isServable=function(){return this.j}; +g.k.p9=function(){return this.url}; +g.k.getXtags=function(){return this.xtags}; +g.k.toString=function(){return this.languageCode+": "+g.P7(this)+" - "+this.vssId+" - "+(this.captionId||"")}; +g.k.y8=function(C){return C?this.toString()===C.toString():!1}; +g.k.bF=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var rvK={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},iyW={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},Jv1=/^(\d*)_((\d*)_?(\d*))$/;var RuW={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},Qzx={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var PM={},vQd=(PM.ALWAYS=1,PM.BY_REQUEST=3,PM.UNKNOWN=void 0,PM),jh={},DAU=(jh.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",jh.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",jh.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",jh.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",jh);var ApH; +ApH=function(C){for(var b=Object.keys(C),h={},N=0;NN-b?-1:C}; +g.k.nE=function(){return this.K.Fs()}; +g.k.ZD=function(){return this.K.SJ()}; +g.k.HN=function(C){this.K=C};g.S(uW,iW);uW.prototype.K=function(C,b){return iW.prototype.K.call(this,"$N|"+C,b)}; +uW.prototype.G=function(C,b,h){return new Jq(C,b,h,this.isLive)};var S26=[],OF=new Set;g.S(g.QK,g.cr);g.k=g.QK.prototype; +g.k.setData=function(C){C=C||{};var b=C.errordetail;b!=null&&(this.errorDetail=b);var h=C.errorcode;h!=null?this.errorCode=h:C.status==="fail"&&(this.errorCode="auth");var N=C.reason;N!=null&&(this.errorReason=N);var p=C.subreason;p!=null&&(this.fS=p);this.D("html5_enable_ssap_entity_id")||this.clientPlaybackNonce||(this.clientPlaybackNonce=C.cpn||(this.Rf.tZ()?"r"+g.M5(15):g.M5(16)));this.kh=gU(this.Rf.kh,C.livemonitor);ZG1(this,C);var P=C.raw_player_response;if(P)this.iT=P;else{var c=C.player_response; +c&&(P=JSON.parse(c))}if(this.D("html5_enable_ssap_entity_id")){var e=C.cached_load;e&&(this.Lk=gU(this.Lk,e));if(!this.clientPlaybackNonce){var L=C.cpn;L?(this.tp("ssei","shdc"),this.clientPlaybackNonce=L):this.clientPlaybackNonce=this.Rf.tZ()?"r"+g.M5(15):g.M5(16)}}P&&(this.playerResponse=P);if(this.playerResponse){var Z=this.playerResponse.annotations;if(Z)for(var Y=g.z(Z),a=Y.next();!a.done;a=Y.next()){var l=a.value.playerAnnotationsUrlsRenderer;if(l){l.adsOnly&&(this.l6=!0);var F=l.loadPolicy; +F&&(this.annotationsLoadPolicy=vQd[F]);var G=l.invideoUrl;G&&(this.m6=bG(G));break}}var V=this.playerResponse.attestation;V&&XzK(this,V);var q=this.playerResponse.cotn;q&&(this.cotn=q);var f=this.playerResponse.heartbeatParams;if(f){e6W(this)&&(this.bv=!0);var y=f.heartbeatToken;y&&(this.drmSessionId=f.drmSessionId||"",this.heartbeatToken=y,this.uv=Number(f.intervalMilliseconds),this.Sk=Number(f.maxRetries),this.YI=!!f.softFailOnError,this.Ev=!!f.useInnertubeHeartbeatsForDrm,this.VC=!0);this.heartbeatServerData= +f.heartbeatServerData;var u;this.Zu=!((u=f.heartbeatAttestationConfig)==null||!u.requiresAttestation)}var K=this.playerResponse.messages;K&&vgl(this,K);var v=this.playerResponse.overlay;if(v){var T=v.playerControlsOverlayRenderer;if(T)if(dZx(this,T.controlBgHtml),T.mutedAutoplay){var t=g.d(T.mutedAutoplay,w$e);if(t&&t.endScreen){var go=g.d(t.endScreen,C7E);go&&go.text&&(this.jV=g.oS(go.text))}}else this.mutedAutoplay=!1}var jV=this.playerResponse.playabilityStatus;if(jV){var CW=jV.backgroundability; +CW&&CW.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var W,w;if((W=jV.offlineability)==null?0:(w=W.offlineabilityRenderer)==null?0:w.offlineable)this.offlineable=!0;var H=jV.contextParams;H&&(this.contextParams=H);var E=jV.pictureInPicture;E&&E.pictureInPictureRenderer.playableInPip&&(this.pipable=!0);jV.playableInEmbed&&(this.allowEmbed=!0);var v1=jV.ypcClickwrap;if(v1){var Vj=v1.playerLegacyDesktopYpcClickwrapRenderer,ad=v1.ypcRentalActivationRenderer;if(Vj)this.xA=Vj.durationMessage|| +"",this.Dj=!0;else if(ad){var fW=ad.durationMessage;this.xA=fW?g.oS(fW):"";this.Dj=!0}}var wo=jV.errorScreen;if(wo){if(wo.playerLegacyDesktopYpcTrailerRenderer){var pd=wo.playerLegacyDesktopYpcTrailerRenderer;this.A$=pd.trailerVideoId||"";var Ge=wo.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var m=Ge&&Ge.ypcTrailerRenderer}else if(wo.playerLegacyDesktopYpcOfferRenderer)pd=wo.playerLegacyDesktopYpcOfferRenderer;else if(wo.ypcTrailerRenderer){m=wo.ypcTrailerRenderer;var A=m.fullVideoMessage;this.dh= +A?g.oS(A):"";var r,Q;this.A$=((r=g.d(m,bsd))==null?void 0:(Q=r.videoDetails)==null?void 0:Q.videoId)||""}pd&&(this.qp=pd.itemTitle||"",pd.itemUrl&&(this.Az=pd.itemUrl),pd.itemBuyUrl&&(this.Va=pd.itemBuyUrl),this.O0=pd.itemThumbnail||"",this.vx=pd.offerHeadline||"",this.e4=pd.offerDescription||"",this.JC=pd.offerId||"",this.IY=pd.offerButtonText||"",this.gy=pd.offerButtonFormattedText||null,this.O8=pd.overlayDurationMsec||NaN,this.dh=pd.fullVideoMessage||"",this.K5=!0);if(m){var X=g.d(m,bsd);if(X)this.QH= +{raw_player_response:X};else{var hl=g.d(m,ZsD);this.QH=hl?gJ(hl):null}this.K5=!0}}}var pW=this.playerResponse.playbackTracking;if(pW){var P1=C,U=Lj(pW.googleRemarketingUrl);U&&(this.googleRemarketingUrl=U);var LW=Lj(pW.youtubeRemarketingUrl);LW&&(this.youtubeRemarketingUrl=LW);var ol={},k_=Lj(pW.ptrackingUrl);if(k_){var ic=Za(k_),lC=ic.oid;lC&&(this.NB=lC);var v$=ic.pltype;v$&&(this.XD=v$);var aI=ic.ptchn;aI&&(this.Kh=aI);var nW=ic.ptk;nW&&(this.xb=encodeURIComponent(nW));var sz=ic.m;sz&&(this.FP= +sz)}var eY=Lj(pW.qoeUrl);if(eY){for(var uK=g.PQ(eY),nR=g.z(Object.keys(uK)),aV=nR.next();!aV.done;aV=nR.next()){var WP=aV.value,Oz=uK[WP];uK[WP]=Array.isArray(Oz)?Oz.join(","):Oz}this.lJ=uK;var E0=uK.cat;E0&&(this.D("html5_enable_qoe_cat_list")?this.df=this.df.concat(E0.split(",")):this.RM=E0);var zz=uK.live;zz&&(this.t1=zz);var lF=uK.drm_product;lF&&(this.ZT=lF)}var uh=Lj(pW.videostatsPlaybackUrl);if(uh){var lK=Za(uh),R9=lK.adformat;if(R9){P1.adformat=R9;var ub=this.Y(),R3=uiH(R9,this.d2,ub.X,ub.J); +R3&&(this.adFormat=R3)}var rH=lK.aqi;rH&&(P1.ad_query_id=rH);var CL=lK.autoplay;CL&&(this.LZ=CL=="1",this.qG=CL=="1",tE(this,"vss"));var nM=lK.autonav;nM&&(this.isAutonav=nM=="1");var ps=lK.delay;ps&&(this.SC=bF(ps));var mO=lK.ei;mO&&(this.eventId=mO);if(lK.adcontext||R9)this.LZ=!0,tE(this,"ad");var vC=lK.feature;vC&&(this.Hm=vC);var l7=lK.list;l7&&(this.playlistId=l7);var lJ=lK.of;lJ&&(this.Y5=lJ);var oA=lK.osid;oA&&(this.osid=oA);var F1=lK.referrer;F1&&(this.referrer=F1);var g8=lK.sdetail;g8&&(this.bX= +g8);var cc=lK.ssrt;cc&&(this.ix=cc=="1");var pg=lK.subscribed;pg&&(this.subscribed=pg=="1",this.J.subscribed=pg);var Ps=lK.uga;Ps&&(this.userGenderAge=Ps);var GF=lK.upt;GF&&(this.U0=GF);var SJ=lK.vm;SJ&&(this.videoMetadata=SJ);ol.playback=lK}var $e=Lj(pW.videostatsWatchtimeUrl);if($e){var zF=Za($e),H6=zF.ald;H6&&(this.cA=H6);ol.watchtime=zF}var Vq=Lj(pW.atrUrl);if(Vq){var y4=Za(Vq);ol.atr=y4}var fU=Lj(pW.engageUrl);if(fU){var r9=Za(fU);ol.engage=r9}this.iW=ol;if(pW.promotedPlaybackTracking){var t8= +pW.promotedPlaybackTracking;t8.startUrls&&(this.ju=t8.startUrls);t8.firstQuartileUrls&&(this.R7=t8.firstQuartileUrls);t8.secondQuartileUrls&&(this.qF=t8.secondQuartileUrls);t8.thirdQuartileUrls&&(this.o7=t8.thirdQuartileUrls);t8.completeUrls&&(this.BB=t8.completeUrls);t8.engagedViewUrls&&(t8.engagedViewUrls.length>1&&g.QB(new g.tJ("There are more than one engaged_view_urls.")),this.mu=t8.engagedViewUrls[0])}}var jd=this.playerResponse.playerCueRanges;jd&&jd.length>0&&(this.cueRanges=jd);var M8=this.playerResponse.playerCueRangeSet; +M8&&g.v7(this,M8);a:{var cs=this.playerResponse.adPlacements;if(cs)for(var q8=g.z(cs),k5=q8.next();!k5.done;k5=q8.next()){var m1=void 0,fI=void 0,AA=(m1=k5.value.adPlacementRenderer)==null?void 0:(fI=m1.renderer)==null?void 0:fI.videoAdTrackingRenderer;if(AA){var yq=AA;break a}}yq=null}var ed=yq;pW&&pW.promotedPlaybackTracking&&ed&&g.QB(new g.tJ("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));ed&&(this.Cl=!0);var r6=this.playerResponse.playerAds;if(r6)for(var i4= +C,iJ=g.z(r6),Lg=iJ.next();!Lg.done;Lg=iJ.next()){var JA=Lg.value;if(JA){var uJ=JA.playerLegacyDesktopWatchAdsRenderer;if(uJ){var yw=uJ.playerAdParams;if(yw){yw.autoplay=="1"&&(this.qG=this.LZ=!0);this.pw=yw.encodedAdSafetyReason||null;yw.showContentThumbnail!==void 0&&(this.R0=!!yw.showContentThumbnail);i4.enabled_engage_types=yw.enabledEngageTypes;break}}}}var HJ=this.playerResponse.playerConfig;if(HJ){var rl=HJ.manifestlessWindowedLiveConfig;if(rl){var Zd=Number(rl.minDvrSequence),$w=Number(rl.maxDvrSequence), +zo=Number(rl.minDvrMediaTimeMs),Hm=Number(rl.maxDvrMediaTimeMs),RA=Number(rl.startWalltimeMs);Zd&&(this.G5=Zd);zo&&(this.Df=zo/1E3,this.D("html5_sabr_parse_live_metadata_playback_boundaries")&&x6(this)&&(this.J_=zo/1E3));$w&&(this.Ee=$w);Hm&&(this.AZ=Hm/1E3,this.D("html5_sabr_parse_live_metadata_playback_boundaries")&&x6(this)&&(this.nI=Hm/1E3));RA&&(this.HW=RA/1E3);(Zd||zo)&&($w||Hm)&&(this.allowLiveDvr=this.isLivePlayback=this.Qz=!0,this.y_=!1)}var kX=HJ.daiConfig;if(kX){if(kX.enableDai){this.vL= +!0;var Vo=kX.enableServerStitchedDai;Vo&&(this.enableServerStitchedDai=Vo);var JE=kX.enablePreroll;JE&&(this.enablePreroll=JE)}var Qq;if(kX.daiType==="DAI_TYPE_SS_DISABLED"||((Qq=kX.debugInfo)==null?0:Qq.isDisabledUnpluggedChannel))this.BP=!0;kX.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.Uu=!0)}var QV=HJ.audioConfig;if(QV){var UO=QV.loudnessDb;UO!=null&&(this.VX=UO);var Y5=QV.trackAbsoluteLoudnessLkfs;Y5!=null&&(this.fl=Y5);var aw=QV.loudnessTargetLkfs;aw!=null&&(this.loudnessTargetLkfs=aw);QV.audioMuted&& +(this.wH=!0);QV.muteOnStart&&(this.AE=!0);var eu=QV.loudnessNormalizationConfig;if(eu){eu.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);eu.preserveStatefulLoudnessTarget&&(this.preserveStatefulLoudnessTarget=!0);var X1=eu.minimumLoudnessTargetLkfs;X1!=null&&(this.minimumLoudnessTargetLkfs=X1);var RD=eu.maxStatefulTimeThresholdSec;RD!=null&&(this.maxStatefulTimeThresholdSec=RD)}this.D("web_player_audio_playback_from_audio_config")&&QV.playAudioOnly&&(this.Eq=!0)}var KI=HJ.playbackEndConfig; +if(KI){var DO=KI.endSeconds,hIc=KI.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(DO&&(this.endSeconds=DO),hIc&&(this.limitedPlaybackDurationInSeconds=hIc))}var IZ=HJ.fairPlayConfig;if(IZ){var NY_=IZ.certificate;NY_&&(this.Yh=CO(NY_));var gzU=Number(IZ.keyRotationPeriodMs);gzU>0&&(this.U$=gzU);var pKo=Number(IZ.keyPrefetchMarginMs);pKo>0&&(this.kN=pKo)}var T7=HJ.playbackStartConfig;if(T7){this.uW=Number(T7.startSeconds);var PvU=T7.liveUtcStartSeconds,jCK=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds> +0;PvU&&!jCK&&(this.liveUtcStartSeconds=Number(PvU));var N2S=T7.startPosition;if(N2S){var cR6=N2S.utcTimeMillis;cR6&&!jCK&&(this.liveUtcStartSeconds=Number(cR6)*.001);var k4_=N2S.streamTimeMillis;k4_&&(this.OG=Number(k4_)*.001)}this.progressBarStartPosition=T7.progressBarStartPosition;this.progressBarEndPosition=T7.progressBarEndPosition}else{var gTl=HJ.skippableSegmentsConfig;if(gTl){var eIW=gTl.introSkipDurationMs;eIW&&(this.lW=Number(eIW)/1E3);var LBV=gTl.outroSkipDurationMs;LBV&&(this.Sz=Number(LBV)/ +1E3)}}var phW=HJ.skippableIntroConfig;if(phW){var ZXK=Number(phW.startMs),Y_o=Number(phW.endMs);isNaN(ZXK)||isNaN(Y_o)||(this.b5=ZXK,this.LK=Y_o)}var a_H=HJ.streamSelectionConfig;a_H&&(this.aL=Number(a_H.maxBitrate));var l_1=HJ.vrConfig;l_1&&(this.YB=l_1.partialSpherical=="1");var kV=HJ.webDrmConfig;if(kV){kV.skipWidevine&&(this.QI=!0);var ozU=kV.widevineServiceCert;ozU&&(this.HT=CO(ozU));kV.useCobaltWidevine&&(this.useCobaltWidevine=!0);kV.startWithNoQualityConstraint&&(this.n5=!0)}var Ib=HJ.mediaCommonConfig; +if(Ib){var xc=Ib.dynamicReadaheadConfig;if(xc){this.maxReadAheadMediaTimeMs=xc.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=xc.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs=xc.readAheadGrowthRateMs||NaN;var FBV,G4S=Ib==null?void 0:(FBV=Ib.mediaUstreamerRequestConfig)==null?void 0:FBV.videoPlaybackUstreamerConfig;G4S&&(this.Mi=CO(G4S));var PqK=Ib==null?void 0:Ib.sabrContextUpdates;if(PqK&&PqK.length>0)for(var S_1=g.z(PqK),jec=S_1.next();!jec.done;jec=S_1.next()){var lt=jec.value; +if(lt.type&<.value){var CH0={type:lt.type,scope:lt.scope,value:CO(lt.value)||void 0,sendByDefault:lt.sendByDefault};this.sabrContextUpdates.set(lt.type,CH0)}}}var $Cl=Ib.serverPlaybackStartConfig;$Cl&&(this.serverPlaybackStartConfig=$Cl);Ib.useServerDrivenAbr&&(this.zZ=!0);var zIW=Ib.requestPipeliningConfig;zIW&&(this.requestPipeliningConfig=zIW)}var HX_=HJ.inlinePlaybackConfig;HX_&&(this.lC=!!HX_.showAudioControls);var wI=HJ.embeddedPlayerConfig;if(wI){this.embeddedPlayerConfig=wI;var cQK=wI.embeddedPlayerMode; +if(cQK){var V3H=this.Y();V3H.sX=cQK;V3H.N=cQK==="EMBEDDED_PLAYER_MODE_PFL"}var M3c=wI.permissions;M3c&&(this.allowImaMonetization=!!M3c.allowImaMonetization)}var q__=HJ.ssapConfig;q__&&(this.CY=q__.ssapPrerollEnabled||!1);var Cw=HJ.webPlayerConfig;Cw&&(Cw.gatewayExperimentGroup&&(this.gatewayExperimentGroup=Cw.gatewayExperimentGroup),Cw.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var xn=this.playerResponse.streamingData;if(xn){var kCc=xn.formats;if(kCc){for(var eF=[],mCW=g.z(kCc),enl=mCW.next();!enl.done;enl= +mCW.next()){var LoS=enl.value;eF.push(LoS.itag+"/"+LoS.width+"x"+LoS.height)}this.ey=eF.join(",");eF=[];for(var f_c=g.z(kCc),ZoK=f_c.next();!ZoK.done;ZoK=f_c.next()){var LG=ZoK.value,Z8={itag:LG.itag,type:LG.mimeType,quality:LG.quality},ARU=LG.url;ARU&&(Z8.url=ARU);var bd=Sk(LG),beD=bd.RH,hAp=bd.Uf,NW0=bd.s;bd.Bv&&(Z8.url=beD,Z8.sp=hAp,Z8.s=NW0);eF.push(g.Dh(Z8))}this.OR=eF.join(",")}var YN1=xn.hlsFormats;if(YN1){var yRx=HJ||null,hz={};if(yRx){var aq_=yRx.audioPairingConfig;if(aq_&&aq_.pairs)for(var rRl= +g.z(aq_.pairs),lqW=rRl.next();!lqW.done;lqW=rRl.next()){var iXS=lqW.value,oTH=iXS.videoItag;hz[oTH]||(hz[oTH]=[]);hz[oTH].push(iXS.audioItag)}}for(var JRx={},uzc=g.z(YN1),Foc=uzc.next();!Foc.done;Foc=uzc.next()){var RIU=Foc.value;JRx[RIU.itag]=RIU.bitrate}for(var QCW=[],UCW=g.z(YN1),GC_=UCW.next();!GC_.done;GC_=UCW.next()){var NR=GC_.value,fV={itag:NR.itag,type:NR.mimeType,url:NR.url,bitrate:NR.bitrate,width:NR.width,height:NR.height,fps:NR.fps},Nd=NR.audioTrack;if(Nd){var XK_=Nd.displayName;XK_&& +(fV.name=XK_,fV.audio_track_id=Nd.id,Nd.audioIsDefault&&(fV.is_default="1"))}if(NR.drmFamilies){for(var KBU=[],sCK=g.z(NR.drmFamilies),SNc=sCK.next();!SNc.done;SNc=sCK.next())KBU.push(PR[SNc.value]);fV.drm_families=KBU.join(",")}var gp=hz[NR.itag];if(gp&&gp.length){fV.audio_itag=gp.join(",");var OX_=JRx[gp[0]];OX_&&(fV.bitrate+=OX_)}var vzc=MJW(NR);vzc&&(fV.eotf=vzc);NR.audioChannels&&(fV.audio_channels=NR.audioChannels);QCW.push(g.Dh(fV))}this.hlsFormats=QCW.join(",")}var $NH=xn.licenseInfos;if($NH&& +$NH.length>0){for(var DCK={},dCl=g.z($NH),znW=dCl.next();!znW.done;znW=dCl.next()){var WBH=znW.value,Ezl=WBH.drmFamily,nz6=WBH.url;Ezl&&nz6&&(DCK[PR[Ezl]]=nz6)}this.f9=DCK}var t3l=xn.drmParams;t3l&&(this.drmParams=t3l);var TYl=xn.dashManifestUrl;TYl&&(this.Yr=g.dt(TYl,{cpn:this.clientPlaybackNonce}));var BYW=xn.hlsManifestUrl;BYW&&(this.hlsvp=BYW);var I_l=xn.probeUrl;I_l&&(this.probeUrl=bG(g.dt(I_l,{cpn:this.clientPlaybackNonce})));var xCc=xn.serverAbrStreamingUrl;xCc&&(this.A6=new g.Y0(xCc,!0))}var wKH= +this.playerResponse.trackingParams;wKH&&(this.sX=wKH);var tj=this.playerResponse.videoDetails;if(tj){var AV=C,HoS=tj.videoId;HoS&&(this.videoId=HoS,AV.video_id||(AV.video_id=HoS));var Cul=tj.channelId;Cul&&(this.J.uid=Cul.substring(2));var V9l=tj.title;V9l&&(this.title=V9l,AV.title||(AV.title=V9l));var M96=tj.lengthSeconds;M96&&(this.lengthSeconds=Number(M96),AV.length_seconds||(AV.length_seconds=M96));var bl1=tj.keywords;bl1&&(this.keywords=FD6(bl1));var qN1=tj.channelId;qN1&&(this.w8=qN1,AV.ucid|| +(AV.ucid=qN1));var hDx=tj.viewCount;hDx&&(this.rawViewCount=Number(hDx));var mNo=tj.author;mNo&&(this.author=mNo,AV.author||(AV.author=mNo));var NCW=tj.shortDescription;NCW&&(this.shortDescription=NCW);var gq1=tj.isCrawlable;gq1&&(this.isListed=gq1);var pVU=tj.musicVideoType;pVU&&(this.musicVideoType=pVU);var fql=tj.isLive;fql!=null&&(this.isLivePlayback=fql);if(fql||tj.isUpcoming)this.isPremiere=!tj.isLiveContent;var Pul=tj.thumbnail;Pul&&(this.V=ez(Pul));var j8_=tj.isExternallyHostedPodcast;j8_&& +(this.isExternallyHostedPodcast=j8_);var AQl=tj.viewerLivestreamJoinPosition;if(AQl==null?0:AQl.utcTimeMillis)this.qg=bF(AQl.utcTimeMillis);var cy1=HJ||null,yQx=C;tj.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);tj.isUpcoming&&(this.isUpcoming=!0);if(tj.isPostLiveDvr){this.y_=!0;var k8W=tj.latencyClass;k8W&&(this.latencyClass=DAU[k8W]||"UNKNOWN");tj.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var rQV=!1;this.kh?(this.allowLiveDvr=nA()?!0:xG&&wO<5?!1:!0,this.isLivePlayback= +!0):tj.isLive?(yQx.livestream="1",this.allowLiveDvr=tj.isLiveDvrEnabled?nA()?!0:xG&&wO<5?!1:!0:!1,this.partnerId=27,rQV=!0):tj.isUpcoming&&(rQV=!0);if(tj.isLive||this.kh&&this.D("html5_parse_live_monitor_flags")){tj.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);var eD6=tj.latencyClass;eD6&&(this.latencyClass=DAU[eD6]||"UNKNOWN");var LnW=tj.liveChunkReadahead;LnW&&(this.liveChunkReadahead=LnW);var BN=cy1&&cy1.livePlayerConfig;if(BN){BN.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0); +BN.hasSubfragmentedWebm&&(this.rq=!0);BN.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var Zll=BN.liveExperimentalContentId;Zll&&(this.liveExperimentalContentId=Number(Zll));var YhW=BN.isLiveHeadPlayable;this.D("html5_live_head_playable")&&YhW!=null&&(this.isLiveHeadPlayable=YhW)}}rQV&&(this.isLivePlayback=!0,yQx.adformat&&yQx.adformat.split("_")[1]!=="8"||this.q2.push("heartbeat"),this.VC=!0)}var ako=tj.isPrivate;ako!==void 0&&(this.isPrivate=gU(this.isPrivate,ako))}if(jV){var lk_= +tj||null,oqx=!1,IM=jV.errorScreen;oqx=IM&&(IM.playerLegacyDesktopYpcOfferRenderer||IM.playerLegacyDesktopYpcTrailerRenderer||IM.ypcTrailerRenderer)?!0:lk_&&lk_.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(jV.status);if(!oqx){this.errorCode=mZ6(jV.errorCode)||"auth";var pw=IM&&IM.playerErrorMessageRenderer;if(pw){this.playerErrorMessageRenderer=pw;var Fn1=pw.reason;Fn1&&(this.errorReason=g.oS(Fn1));var ioU=pw.subreason;ioU&&(this.fS=g.oS(ioU),this.O$=ioU)}else this.errorReason= +jV.reason||null;var JQx=jV.status;if(JQx==="LOGIN_REQUIRED")this.errorDetail="1";else if(JQx==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(JQx==="AGE_CHECK_REQUIRED"){var G8K=jV.errorScreen,ShV=G8K&&G8K.playerKavRenderer;this.errorDetail=ShV&&ShV.kavUrl?"4":"3"}else this.errorDetail=jV.isBlockedInRestrictedMode?"5":"0"}}var $VU=this.playerResponse.interstitialPods;$VU&&Oy1(this,$VU);this.m6&&this.eventId&&(this.m6=cQ(this.m6,{ei:this.eventId}));var unV=this.playerResponse.captions;if(unV&& +unV.playerCaptionsTracklistRenderer)a:{var yx=unV.playerCaptionsTracklistRenderer;this.captionTracks=[];if(yx.captionTracks)for(var zD1=g.z(yx.captionTracks),Rnl=zD1.next();!Rnl.done;Rnl=zD1.next()){var ra=Rnl.value,Hll=a8_(ra.baseUrl);if(!Hll)break a;var QeW={is_translateable:!!ra.isTranslatable,languageCode:ra.languageCode,languageName:ra.name&&g.oS(ra.name),url:Hll,vss_id:ra.vssId,kind:ra.kind};QeW.name=ra.trackName;QeW.displayName=ra.name&&g.oS(ra.name);this.captionTracks.push(new g.pj(QeW))}this.MF= +yx.audioTracks||[];this.Nj=yx.defaultAudioTrackIndex||0;this.i6=[];if(yx.translationLanguages)for(var VKo=g.z(yx.translationLanguages),UNK=VKo.next();!UNK.done;UNK=VKo.next()){var xr=UNK.value,oF={};oF.languageCode=xr.languageCode;oF.languageName=g.oS(xr.languageName);if(xr.translationSourceTrackIndices){oF.translationSourceTrackIndices=[];for(var MKH=g.z(xr.translationSourceTrackIndices),XhS=MKH.next();!XhS.done;XhS=MKH.next())oF.translationSourceTrackIndices.push(XhS.value)}if(xr.excludeAudioTrackIndices){oF.excludeAudioTrackIndices= +[];for(var qhS=g.z(xr.excludeAudioTrackIndices),KoV=qhS.next();!KoV.done;KoV=qhS.next())oF.excludeAudioTrackIndices.push(KoV.value)}this.i6.push(oF)}this.hA=[];if(yx.defaultTranslationSourceTrackIndices)for(var mVS=g.z(yx.defaultTranslationSourceTrackIndices),sex=mVS.next();!sex.done;sex=mVS.next())this.hA.push(sex.value);this.b6=!!yx.contribute&&!!yx.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.uW=Number(this.clipConfig.startTimeMs)* +.001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&DZl(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var fkl;this.compositeLiveIngestionOffsetToken=(fkl=this.playerResponse.playbackTracking)==null?void 0:fkl.compositeLiveIngestionOffsetToken;var Ay1;this.compositeLiveStatusToken=(Ay1=this.playerResponse.playbackTracking)==null?void 0: +Ay1.compositeLiveStatusToken}XJ(this,C);C.queue_info&&(this.queueInfo=C.queue_info);var yyc=C.hlsdvr;yyc!=null&&(this.allowLiveDvr=Number(yyc)===1?nA()?!0:xG&&wO<5?!1:!0:!1);this.adQueryId=C.ad_query_id||null;this.pw||(this.pw=C.encoded_ad_safety_reason||null);this.QY=C.agcid||null;this.WB=C.ad_id||null;this.a7=C.ad_sys||null;this.Vt=C.encoded_ad_playback_context||null;this.wH=gU(this.wH,C.infringe||C.muted);this.Xd=C.authkey;this.z3=C.authuser;this.mutedAutoplay=gU(this.mutedAutoplay,C&&C.playmuted); +this.D("embeds_enable_full_length_inline_muted_autoplay")&&(this.mutedAutoplayDurationMode=Pj(this.mutedAutoplayDurationMode,C&&C.muted_autoplay_duration_mode));this.yh=gU(this.yh,C&&C.mutedautoplay);var Pf=C.length_seconds;Pf&&(this.lengthSeconds=typeof Pf==="string"?bF(Pf):Pf);if(this.isAd()||this.wG||!g.Lp(g.yY(this.Rf)))this.endSeconds=Pj(this.endSeconds,this.Sz||C.end||C.endSeconds);else{var gtj=g.yY(this.Rf),jp=this.lengthSeconds;switch(gtj){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":jp> +30?this.limitedPlaybackDurationInSeconds=30:jp<30&&jp>10&&(this.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=jp*.2}}this.sX=jw(this.sX,C.itct);this.xI=gU(this.xI,C.noiba);this.cV=gU(this.cV,C.is_live_destination);this.isLivePlayback=gU(this.isLivePlayback,C.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.yV();C.isUpcoming&&(this.isUpcoming=gU(this.isUpcoming,C.isUpcoming));this.y_= +gU(this.y_,C.post_live_playback);this.Qz&&(this.y_=!1);this.isMdxPlayback=gU(this.isMdxPlayback,C.mdx);var cf=C.mdx_control_mode;cf&&(this.mdxControlMode=typeof cf==="number"?cf:bF(cf));this.isInlinePlaybackNoAd=gU(this.isInlinePlaybackNoAd,C.is_inline_playback_no_ad);this.Xs=Pj(this.Xs,C.reload_count);this.reloadReason=jw(this.reloadReason,C.reload_reason);this.R0=gU(this.R0,C.show_content_thumbnail);this.pP=gU(this.pP,C.utpsa);this.cycToken=C.cyc||null;this.fn=C.tkn||null;var ryl=k6(C);Object.keys(ryl).length> +0&&(this.V=ryl);this.N2=jw(this.N2,C.vvt);this.mdxEnvironment=jw(this.mdxEnvironment,C.mdx_environment);C.source_container_playlist_id&&(this.sourceContainerPlaylistId=C.source_container_playlist_id);C.serialized_mdx_metadata&&(this.serializedMdxMetadata=C.serialized_mdx_metadata);this.Zw=C.osig;this.eventId||(this.eventId=C.eventid);this.osid||(this.osid=C.osid);this.playlistId=jw(this.playlistId,C.list);C.index&&(this.playlistIndex=this.playlistIndex===void 0?Pj(0,C.index):Pj(this.playlistIndex, +C.index));this.Ch=C.pyv_view_beacon_url;this.gR=C.pyv_quartile25_beacon_url;this.K1=C.pyv_quartile50_beacon_url;this.U3=C.pyv_quartile75_beacon_url;this.C8=C.pyv_quartile100_beacon_url;var ill=C.session_data;!this.Em&&ill&&(this.Em=hK(ill,"&").feature);this.isFling=Pj(this.isFling?1:0,C.is_fling)===1;this.vnd=Pj(this.vnd,C.vnd);this.forceAdsUrl=jw(this.forceAdsUrl,C.force_ads_url);this.sB=jw(this.sB,C.ctrl);this.OB=jw(this.OB,C.ytr);this.BC=C.ytrcc;this.Vq=C.ytrexp;this.Ew=C.ytrext;this.IV=jw(this.IV, +C.adformat);this.d2=jw(this.d2,C.attrib);this.slotPosition=Pj(this.slotPosition,C.slot_pos);this.breakType=C.break_type;this.ix=gU(this.ix,C.ssrt);this.videoId=ka(C)||this.videoId;this.W=jw(this.W,C.vss_credentials_token);this.KS=jw(this.KS,C.vss_credentials_token_type);this.Eq=gU(this.Eq,C.audio_only);this.G$=gU(this.G$,C.aac_high);this.ZF=gU(this.ZF,C.prefer_low_quality_audio);this.uE=gU(this.uE,C.uncap_inline_quality);this.D("html5_enable_qoe_cat_list")?C.qoe_cat&&(this.df=this.df.concat(C.qoe_cat.split(","))): +this.RM=jw(this.RM,C.qoe_cat);this.ZR=gU(this.ZR,C.download_media);var JyW=C.prefer_gapless;this.L=JyW!=null?gU(this.L,JyW):this.L?this.L:this.Rf.preferGapless&&this.Rf.supportsGaplessShorts();dl1(this.playerResponse)&&this.q2.push("ad");var uN6=C.adaptive_fmts;uN6&&(this.adaptiveFormats=uN6,this.jp("adpfmts",{},!0));var RDH=C.allow_embed;RDH&&(this.allowEmbed=Number(RDH)===1);var Q8c=C.backgroundable;Q8c&&(this.backgroundable=Number(Q8c)===1);var UVl=C.autonav;UVl&&(this.isAutonav=Number(UVl)=== +1);var XVx=C.autoplay;XVx&&(this.LZ=this.qG=Number(XVx)===1,tE(this,"c"));var KnW=C.iv_load_policy;KnW&&(this.annotationsLoadPolicy=pp(this.annotationsLoadPolicy,KnW,r_));var s8o=C.cc_lang_pref;s8o&&(this.captionsLanguagePreference=jw(s8o,this.captionsLanguagePreference));var OlU=C.cc_load_policy;OlU&&(this.wy=pp(this.wy,OlU,r_));var vqW;this.deviceCaptionsOn=(vqW=C.device_captions_on)!=null?vqW:void 0;var DVW;this.h9=(DVW=C.device_captions_lang_pref)!=null?DVW:"";var dVS;this.Ym=(dVS=C.viewer_selected_caption_langs)!= +null?dVS:[];if(!this.D("html5_enable_ssap_entity_id")){var Wnl=C.cached_load;Wnl&&(this.Lk=gU(this.Lk,Wnl))}if(C.dash==="0"||C.dash===0||C.dash===!1)this.Sv=!0;var EqK=C.dashmpd;EqK&&(this.Yr=g.dt(EqK,{cpn:this.clientPlaybackNonce}));var nqU=C.delay;nqU&&(this.SC=bF(nqU));var Ool=this.Sz||C.end;if(this.yd?Ool!=null:Ool!=void 0)this.clipEnd=Pj(this.clipEnd,Ool);var tKU=C.fmt_list;tKU&&(this.ey=tKU);C.heartbeat_preroll&&this.q2.push("heartbeat");this.XC=-Math.floor(Math.random()*10);this.oJ=-Math.floor(Math.random()* +40);var TCo=C.is_listed;TCo&&(this.isListed=gU(this.isListed,TCo));var BCx=C.is_private;BCx&&(this.isPrivate=gU(this.isPrivate,BCx));var Ik_=C.is_dni;Ik_&&(this.jS=gU(this.jS,Ik_));var xVl=C.dni_color;xVl&&(this.Oa=jw(this.Oa,xVl));var wV1=C.pipable;wV1&&(this.pipable=gU(this.pipable,wV1));this.py=(this.yY=this.pipable&&this.Rf.dh)&&!this.Rf.showMiniplayerButton;var Cr6=C.paid_content_overlay_duration_ms;Cr6&&(this.paidContentOverlayDurationMs=bF(Cr6));var bCW=C.paid_content_overlay_text;bCW&&(this.paidContentOverlayText= +bCW);var h1c=C.url_encoded_fmt_stream_map;h1c&&(this.OR=h1c);var Nvx=C.hls_formats;Nvx&&(this.hlsFormats=Nvx);var gh1=C.hlsvp;gh1&&(this.hlsvp=gh1);var kL=C.live_start_walltime;kL&&(this.CP=typeof kL==="number"?kL:bF(kL));var ep=C.live_manifest_duration;ep&&(this.xs=typeof ep==="number"?ep:bF(ep));var ppS=C.player_params;ppS&&(this.playerParams=ppS);var Prl=C.partnerid;Prl&&(this.partnerId=Pj(this.partnerId,Prl));var jmK=C.probe_url;jmK&&(this.probeUrl=bG(g.dt(jmK,{cpn:this.clientPlaybackNonce}))); +var vT1=C.pyv_billable_url;vT1&&x6l(vT1)&&(this.mu=vT1);var DNx=C.pyv_conv_url;DNx&&x6l(DNx)&&(this.Z0=DNx);GLW(this,C);this.startSeconds>0?this.D("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.uW||this.lW||C.start||C.startSeconds)&&this.jp("lss",{css:this.startSeconds,pcss:this.uW,iss:this.lW,ps:C.start||void 0,pss:C.startSeconds||void 0}):this.Yg=this.startSeconds=Pj(this.startSeconds,this.uW||this.lW||C.start||C.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds> +0)){var cT_=C.live_utc_start;if(cT_!=null)this.liveUtcStartSeconds=Number(cT_);else{var dNK=this.startSeconds;dNK&&isFinite(dNK)&&dNK>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var kil=C.utc_start_millis;kil&&(this.liveUtcStartSeconds=Number(kil)*.001)}var e1l=C.stream_time_start_millis;e1l&&(this.OG=Number(e1l)*.001);var WoK=this.lW||C.start;(this.yd?WoK==null||Number(C.resume)===1:WoK==void 0||C.resume=="1")||this.isLivePlayback|| +(this.clipStart=Pj(this.clipStart,WoK));var L_W=C.url_encoded_third_party_media;L_W&&(this.Du=pN(L_W));var ETH=C.ypc_offer_button_formatted_text;if(ETH){var ZCl=JSON.parse(ETH);this.gy=ZCl!=null?ZCl:null;this.Y9=ETH}var YkS=C.ypc_offer_button_text;YkS&&(this.IY=YkS);var ag_=C.ypc_offer_description;ag_&&(this.e4=ag_);var lg6=C.ypc_offer_headline;lg6&&(this.vx=lg6);var oh6=C.ypc_full_video_message;oh6&&(this.dh=oh6);var F_V=C.ypc_offer_id;F_V&&(this.JC=F_V);var GiU=C.ypc_buy_url;GiU&&(this.Va=GiU); +var SkW=C.ypc_item_thumbnail;SkW&&(this.O0=SkW);var $3c=C.ypc_item_title;$3c&&(this.qp=$3c);var z1W=C.ypc_item_url;z1W&&(this.Az=z1W);var HC_=C.ypc_vid;HC_&&(this.A$=HC_);C.ypc_overlay_timeout&&(this.O8=Number(C.ypc_overlay_timeout));var V4W=C.ypc_trailer_player_vars;V4W&&(this.QH=gJ(V4W));var M4S=C.ypc_original_itct;M4S&&(this.rJ=M4S);this.w8=jw(this.w8,C.ucid);C.baseUrl&&(this.J.baseUrl=C.baseUrl);C.uid&&(this.J.uid=C.uid);C.oeid&&(this.J.oeid=C.oeid);C.ieid&&(this.J.ieid=C.ieid);C.ppe&&(this.J.ppe= +C.ppe);C.engaged&&(this.J.engaged=C.engaged);C.subscribed&&(this.J.subscribed=C.subscribed);this.J.focEnabled=gU(this.J.focEnabled,C.focEnabled);this.J.rmktEnabled=gU(this.J.rmktEnabled,C.rmktEnabled);this.kY=C.storyboard_spec||null;this.Le=C.live_storyboard_spec||null;this.Io=C.iv_endscreen_url||null;this.VC=gU(this.VC,C.ypc_license_checker_module);this.K5=gU(this.K5,C.ypc_module);this.Dj=gU(this.Dj,C.ypc_clickwrap_module);this.K5&&this.q2.push("ypc");this.Dj&&this.q2.push("ypc_clickwrap");this.xK= +{video_id:C.video_id,eventid:C.eventid,cbrand:C.cbrand,cbr:C.cbr,cbrver:C.cbrver,c:C.c,cver:C.cver,ctheme:C.ctheme,cplayer:C.cplayer,cmodel:C.cmodel,cnetwork:C.cnetwork,cos:C.cos,cosver:C.cosver,cplatform:C.cplatform,user_age:C.user_age,user_display_image:C.user_display_image,user_display_name:C.user_display_name,user_gender:C.user_gender,csi_page_type:C.csi_page_type,csi_service_name:C.csi_service_name,enablecsi:C.enablecsi,enabled_engage_types:C.enabled_engage_types};Y2S(this,C);var qko=C.cotn; +qko&&(this.cotn=qko);if(iGH(this))b4(this)&&(this.isLivePlayback&&this.Yr&&(this.Xz=!0),this.Yh&&(this.tN=!0));else if(Jal(this))this.Xz=!0;else{var m3l,fg1,AT1=((m3l=this.playerResponse)==null?void 0:(fg1=m3l.streamingData)==null?void 0:fg1.adaptiveFormats)||[];if(AT1.length>0)var YV=raV(this,AT1);else{var yT_=this.adaptiveFormats;if(yT_&&!b4(this)){hE(this,"html5_enable_cobalt_experimental_vp9_decoder")&&(S$=!0);var w1=k8(yT_),nTl=this.f9,rTH=this.lengthSeconds,pCe=this.isLivePlayback,aj=this.y_, +CY=this.Rf,PHj=sAx(w1);if(pCe||aj){var iCo=CY==null?void 0:CY.experiments,sA=new gs("",iCo,!0);sA.yV=!0;sA.isManifestless=!0;sA.K=!aj;sA.isLive=!aj;sA.y_=aj;for(var JTc=g.z(w1),t9K=JTc.next();!t9K.done;t9K=JTc.next()){var bo=t9K.value,uel=cR(bo,nTl),Fb=ky(bo.url,bo.sp,bo.s),R11=Fb.get("id");R11&&R11.includes("%7E")&&(sA.V=!0);var QmU=void 0,joo=(QmU=iCo)==null?void 0:QmU.Fo("html5_max_known_end_time_rebase"),cho=Number(bo.target_duration_sec)||5,kfE=Number(bo.max_dvr_duration_sec)||14400,U3W=Number(Fb.get("mindsq")|| +Fb.get("min_sq")||"0"),XpK=Number(Fb.get("maxdsq")||Fb.get("max_sq")||"0")||Infinity;sA.G5=sA.G5||U3W;sA.Ee=sA.Ee||XpK;var eA$=!B9(uel);Fb&&b8(sA,new vw(Fb,uel,{jL:cho,DR:eA$,hc:kfE,G5:U3W,Ee:XpK,Nw:300,y_:aj,Gd:joo}))}var K__=sA}else{if(PHj==="FORMAT_STREAM_TYPE_OTF"){var Lw=rTH;Lw=Lw===void 0?0:Lw;var hB=new gs("",CY==null?void 0:CY.experiments,!1);hB.duration=Lw||0;for(var smc=g.z(w1),T2o=smc.next();!T2o.done;T2o=smc.next()){var NH=T2o.value,B2H=cR(NH,nTl,hB.duration),IqH=ky(NH.url,NH.sp,NH.s); +if(IqH)if(B2H.streamType==="FORMAT_STREAM_TYPE_OTF")b8(hB,new DT(IqH,B2H,"sq/0"));else{var L7o=SS(NH.init),ZeE=SS(NH.index);b8(hB,new xi(IqH,B2H,L7o,ZeE))}}hB.isOtf=!0;var OCU=hB}else{var Zn=rTH;Zn=Zn===void 0?0:Zn;var YL=new gs("",CY==null?void 0:CY.experiments,!1);YL.duration=Zn||0;for(var vh6=g.z(w1),xNW=vh6.next();!xNW.done;xNW=vh6.next()){var gi=xNW.value,YBp=cR(gi,nTl,YL.duration),aOU=SS(gi.init),lOE=SS(gi.index),D3x=ky(gi.url,gi.sp,gi.s);D3x&&b8(YL,new xi(D3x,YBp,aOU,lOE))}OCU=YL}K__=OCU}var d3H= +K__;if(w1.length>0){var W_l=w1[0];if(this.Y().playerStyle==="hangouts-meet"&&W_l.url){var otd=g.PQ(W_l.url);this.XG=this.XG||Number(otd.expire)}}var F7p=this.isLivePlayback&&!this.y_&&!this.Qz&&!this.isPremiere;this.D("html5_live_head_playable")&&(!NF(this)&&F7p&&this.jp("missingLiveHeadPlayable",{}),this.Rf.KO==="yt"&&(d3H.CO=!0));YV=d3H}else YV=null;this.jp("pafmts",{isManifestFilled:!!YV})}if(YV){PT(this,YV);var EhU=!0}else EhU=!1;EhU?this.enableServerStitchedDai=this.enableServerStitchedDai&& +g9(this):this.Yr&&(this.Rf.KO==="yt"&&this.yV()&&this.D("drm_manifestless_unplugged")&&this.D("html5_deprecate_manifestful_fallback")?this.jp("deprecateMflFallback",{}):this.Xz=!0)}var whV=C.adpings;whV&&(this.hH=whV?gJ(whV):null);var nhV=C.feature;nhV&&(this.Hm=nhV);var t4U=C.referrer;t4U&&(this.referrer=t4U);this.clientScreenNonce=jw(this.clientScreenNonce,C.csn);this.JQ=Pj(this.JQ,C.root_ve_type);this.Ck=Pj(this.Ck,C.kids_age_up_mode);this.yd||C.kids_app_info==void 0||(this.kidsAppInfo=C.kids_app_info); +this.yd&&C.kids_app_info!=null&&(this.kidsAppInfo=C.kids_app_info);this.P1=gU(this.P1,C.upg_content_filter_mode);this.unpluggedFilterModeType=Pj(this.unpluggedFilterModeType,C.unplugged_filter_mode_type);var Tvc=C.unplugged_location_info;Tvc&&(this.KO=Tvc);var BvW=C.unplugged_partner_opt_out;BvW&&(this.xm=jw("",BvW));this.g2=gU(this.g2,C.disable_watch_next);this.xo=jw(this.xo,C.internal_ip_override);this.rz=!!C.is_yto_interstitial;(this.interstitials.length||this.rz)&&this.q2.push("yto");var Igx= +C.mC;Igx&&(this.mC=Igx);var x36;this.t4=(x36=C.csi_timer)!=null?x36:"";this.Rn=!!C.force_gvi;C.watchUrl&&(this.watchUrl=C.watchUrl);var GB=C.watch_endpoint;this.D("html5_attach_watch_endpoint_ustreamer_config")&&GB&&AvH(this,GB);if(GB==null?0:GB.ustreamerConfig)this.cK=CO(GB.ustreamerConfig);var wpx,Clx,bfc=GB==null?void 0:(wpx=GB.loggingContext)==null?void 0:(Clx=wpx.qoeLoggingContext)==null?void 0:Clx.serializedContextData;bfc&&(this.E9=bfc);g.$7(this.Rf)&&this.Rf.R0&&(this.embedsRct=jw(this.embedsRct, +C.rct),this.embedsRctn=jw(this.embedsRctn,C.rctn));this.du=this.du||!!C.pause_at_start;C.default_active_source_video_id&&(this.defaultActiveSourceVideoId=C.default_active_source_video_id)}; +g.k.Y=function(){return this.Rf}; +g.k.D=function(C){return this.Rf.D(C)}; +g.k.hL=function(){return!this.isLivePlayback||this.allowLiveDvr}; +g.k.hasSupportedAudio51Tracks=function(){var C;return!((C=this.ge)==null||!C.Vz)}; +g.k.getUserAudio51Preference=function(){var C=1;Ds(this.Rf)&&this.D("html5_ytv_surround_toggle_default_off")?C=0:g.sa(this.Rf)&&this.isLivePlayback&&this.o$()&&(C=0);var b;return(b=g.QJ("yt-player-audio51"))!=null?b:C}; +g.k.Zs=function(){this.HE()||(this.j.K||this.j.unsubscribe("refresh",this.Zs,this),this.n8(-1))}; +g.k.n8=function(C){if(!this.isLivePlayback||!this.G||this.G.flavor!=="fairplay"){var b=veW(this.j,this.lT);if(b.length>0){for(var h=g.z(b),N=h.next();!N.done;N=h.next())N=N.value,N.startSecs=Math.max(N.startSecs,this.Mo());this.publish("cuepointupdated",b,C);this.lT+=b.length;if(g9(this)&&this.Rf.tZ())for(b=g.z(b),h=b.next();!h.done;h=b.next())h=h.value,this.jp("cuepoint",{segNum:C,event:h.event,startSecs:h.startSecs,id:h.identifier.slice(-16)}),h.event==="start"&&(h=h.startSecs,this.Gl.start=this.CO, +this.Gl.end=h+3)}}}; +g.k.Eo=function(){this.HE()||(this.loading=!1,this.publish("dataloaded"))}; +g.k.o$=function(){return this.Cw!==void 0?this.Cw:this.Cw=!!this.f9||!!this.j&&Pe(this.j)}; +g.k.Hy=function(C){var b=this;if(this.HE())return ua();this.w9=this.zi=this.N=null;hE(this,"html5_high_res_logging_always")&&(this.Rf.ge=!0);return XAU(this,C).then(void 0,function(){return KDx(b,C)}).then(void 0,function(){return sjS(b)}).then(void 0,function(){return vV_(b)})}; +g.k.hR=function(){if(this.cotn)return null;var C=g.Mo(this.Rf)||this.D("web_l3_storyboard");if(!this.Xb)if(this.playerResponse&&this.playerResponse.storyboards){var b=this.playerResponse.storyboards,h=b.playerStoryboardSpecRenderer;h&&h.spec?this.Xb=new iW(h.spec,this.lengthSeconds,void 0,!1,C):(b=b.playerLiveStoryboardSpecRenderer)&&b.spec&&this.j&&(h=WPl(this.j.j).index)&&(this.Xb=new uW(b.spec,this.j.isLive,h,C))}else this.kY?this.Xb=new iW(this.kY,this.lengthSeconds,void 0,!1,C):this.Le&&this.j&& +(b=WPl(this.j.j).index)&&(this.Xb=new uW(this.Le,this.j.isLive,b,C));return this.Xb}; +g.k.getStoryboardFormat=function(){if(this.cotn)return null;if(this.playerResponse&&this.playerResponse.storyboards){var C=this.playerResponse.storyboards;return(C=C.playerStoryboardSpecRenderer||C.playerLiveStoryboardSpecRenderer)&&C.spec||null}return this.kY||this.Le}; +g.k.J8=function(){return this.j&&!isNaN(this.j.J8())?this.j.J8():g9(this)?0:this.lengthSeconds}; +g.k.Mo=function(){return this.j&&!isNaN(this.j.Mo())?this.j.Mo():0}; +g.k.getPlaylistSequenceForTime=function(C){if(this.j&&this.K){var b=this.j.j[this.K.id];if(!b)return null;var h=b.index.nZ(C);b=b.index.getStartTime(h);return{sequence:h,elapsed:Math.floor((C-b)*1E3)}}return null}; +g.k.bF=function(){return!this.HE()&&!(!this.videoId&&!this.Du)}; +g.k.mS=function(){var C,b,h;return!!this.adaptiveFormats||!!((C=this.playerResponse)==null?0:(b=C.streamingData)==null?0:(h=b.adaptiveFormats)==null?0:h.length)}; +g.k.isLoaded=function(){return UF(this)&&!this.Xz&&!this.tN}; +g.k.Q6=function(C){C||(C="hqdefault.jpg");var b=this.V[C];return b||this.Rf.N2||C==="pop1.jpg"||C==="pop2.jpg"||C==="sddefault.jpg"||C==="hq720.jpg"||C==="maxresdefault.jpg"?b:XO(this.Rf,this.videoId,C)}; +g.k.yV=function(){return this.isLivePlayback||this.y_||this.Qz||!(!this.liveUtcStartSeconds||!this.xs)}; +g.k.isOtf=function(){return!!this.j&&(this.j.isOtf||!this.y_&&!this.isLivePlayback&&this.j.K)}; +g.k.getAvailableAudioTracks=function(){return this.N?this.N.getAvailableAudioTracks().length>0?this.N.getAvailableAudioTracks():this.Ep||[]:[]}; +g.k.getAudioTrack=function(){var C=this;if(this.X&&!Ty(this.X))return g.B$(this.getAvailableAudioTracks(),function(N){return N.id===C.X.id})||this.BT; +if(this.Ep){if(!this.MW)for(var b=g.z(this.Ep),h=b.next();!h.done;h=b.next())if(h=h.value,h.z$.getIsDefault()){this.MW=h;break}return this.MW||this.BT}return this.BT}; +g.k.getPlayerResponse=function(){return this.playerResponse}; +g.k.getWatchNextResponse=function(){return this.rO}; +g.k.getHeartbeatResponse=function(){return this.XM}; +g.k.CI=function(){return this.watchUrl?this.watchUrl:this.Rf.getVideoUrl(this.videoId)}; +g.k.YF=function(){return!!this.j&&(iIW(this.j)||JAl(this.j)||u1o(this.j))}; +g.k.getEmbeddedPlayerResponse=function(){return this.fZ}; +g.k.Yw=function(){return(this.eventLabel||this.Rf.Qz)==="shortspage"}; +g.k.isAd=function(){return this.hU||!!this.adFormat}; +g.k.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; +g.k.qz=function(){var C,b,h;return this.isDaiEnabled()&&!!((C=this.playerResponse)==null?0:(b=C.playerConfig)==null?0:(h=b.daiConfig)==null?0:h.ssaEnabledPlayback)}; +g.k.wB=function(){return e6W(this)?this.bv:this.VC||this.AT}; +g.k.YD=function(){return this.K5||this.AT}; +g.k.q5=function(){return hE(this,"html5_samsung_vp9_live")}; +g.k.jp=function(C,b,h){this.publish("ctmp",C,b,h)}; +g.k.tp=function(C,b,h){this.publish("ctmpstr",C,b,h)}; +g.k.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; +g.k.getGetAdBreakContext=function(C,b){C=C===void 0?NaN:C;b=b===void 0?NaN:b;var h={isSabr:x6(this)},N,p=(N=this.getHeartbeatResponse())==null?void 0:N.adBreakHeartbeatParams;p&&(h.adBreakHeartbeatParams=p);if(this.D("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.j&&!isNaN(C)&&!isNaN(b)){b=C-b;for(var P in this.j.j)if(N=this.j.j[P],N.info.CK()||N.info.Ab())if(N=N.index,N.isLoaded()){P=N.nZ(b);N=N.vF(P)+b-N.getStartTime(P);this.jp("gabc",{t:C.toFixed(3),mt:b.toFixed(3),sg:P,igt:N.toFixed(3)}); +h.livePlaybackPosition={utcTimeMillis:""+(N*1E3).toFixed(0)};break}}return h}; +g.k.isEmbedsShortsMode=function(C,b){if(!g.$7(this.Rf))return!1;var h;if(!this.D("embeds_enable_emc3ds_shorts")&&((h=this.Rf.getWebPlayerContextConfig())==null?0:h.embedsEnableEmc3ds)||(this.Rf.sX||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||b)return!1;var N,p;return!!(((N=this.embeddedPlayerConfig)==null?0:(p=N.embeddedPlayerFlags)==null?0:p.isShortsExperienceEligible)&&C.width<=C.height)}; +g.k.wO=function(){g.cr.prototype.wO.call(this);this.hH=null;delete this.Kd;delete this.accountLinkingConfig;delete this.j;this.N=this.XM=this.playerResponse=this.rO=null;this.OR=this.adaptiveFormats="";delete this.botguardData;this.Vz=this.suggestions=this.tH=null;this.sabrContextUpdates.clear()};var Fxx={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},GKW={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},lr_={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},ZS6={0:"YT_KIDS_AGE_UP_MODE_UNKNOWN",1:"YT_KIDS_AGE_UP_MODE_OFF",2:"YT_KIDS_AGE_UP_MODE_TWEEN",3:"YT_KIDS_AGE_UP_MODE_PRESCHOOL"},arc={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},Y3l={0:"UNPLUGGED_FILTER_MODE_TYPE_UNKNOWN",1:"UNPLUGGED_FILTER_MODE_TYPE_NONE",2:"UNPLUGGED_FILTER_MODE_TYPE_PG", +3:"UNPLUGGED_FILTER_MODE_TYPE_PG_THIRTEEN"},oD6={0:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_UNSPECIFIED",1:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_30_SECONDS",2:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_FULL"};g.S(x8,g.O);g.k=x8.prototype;g.k.handleExternalCall=function(C,b,h){var N=this.state.J[C],p=this.state.L[C],P=N;if(p)if(h&&IH(h,NNE))P=p;else if(!N)throw Error('API call from an untrusted origin: "'+h+'"');this.logApiCall(C,h);if(P){h=!1;N=g.z(b);for(p=N.next();!p.done;p=N.next())if(String(p.value).includes("javascript:")){h=!0;break}h&&g.QB(Error('Dangerous call to "'+C+'" with ['+b+"]."));return P.apply(this,b)}throw Error('Unknown API method: "'+C+'".');}; +g.k.logApiCall=function(C,b,h){var N=this.app.Y();N.tN&&!this.state.V.has(C)&&(this.state.V.add(C),g.en("webPlayerApiCalled",{callerUrl:N.loaderUrl,methodName:C,origin:b||void 0,playerStyle:N.playerStyle||void 0,embeddedPlayerMode:N.sX,errorCode:h}))}; +g.k.publish=function(C){var b=g.ro.apply(1,arguments);this.state.N.publish.apply(this.state.N,[C].concat(g.M(b)));if(C==="videodatachange"||C==="resize"||C==="cardstatechange")this.state.K.publish.apply(this.state.K,[C].concat(g.M(b))),this.state.X.publish.apply(this.state.X,[C].concat(g.M(b)))}; +g.k.LO=function(C){var b=g.ro.apply(1,arguments);this.state.N.publish.apply(this.state.N,[C].concat(g.M(b)));this.state.K.publish.apply(this.state.K,[C].concat(g.M(b)))}; +g.k.IL=function(C){var b=g.ro.apply(1,arguments);this.state.N.publish.apply(this.state.N,[C].concat(g.M(b)));this.state.K.publish.apply(this.state.K,[C].concat(g.M(b)));this.state.X.publish.apply(this.state.X,[C].concat(g.M(b)))}; +g.k.Mz=function(C){var b=g.ro.apply(1,arguments);this.state.N.publish.apply(this.state.N,[C].concat(g.M(b)));this.state.K.publish.apply(this.state.K,[C].concat(g.M(b)));this.state.X.publish.apply(this.state.X,[C].concat(g.M(b)));this.state.G.publish.apply(this.state.G,[C].concat(g.M(b)))}; +g.k.D=function(C){return this.app.Y().D(C)}; +g.k.wO=function(){if(this.state.element){var C=this.state.element,b;for(b in this.state.j)this.state.j.hasOwnProperty(b)&&(C[b]=null);this.state.element=null}g.O.prototype.wO.call(this)};g.S(NC,g.AZ);NC.prototype.publish=function(C){var b=g.ro.apply(1,arguments);if(this.G.has(C))return this.G.get(C).push(b),!0;var h=!1;try{for(b=[b],this.G.set(C,b);b.length;)h=g.AZ.prototype.publish.call.apply(g.AZ.prototype.publish,[this,C].concat(g.M(b.shift())))}finally{this.G.delete(C)}return h};g.S(gY,g.O);gY.prototype.wO=function(){this.G.dispose();this.X.dispose();this.K.dispose();this.N.dispose();this.V=this.j=this.L=this.J=this.W=void 0};var q31=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.S(PK,x8);g.k=PK.prototype;g.k.getApiInterface=function(){return Array.from(this.state.W)}; +g.k.Wo=function(C,b){this.state.G.subscribe(C,b)}; +g.k.nJ4=function(C,b){this.state.G.unsubscribe(C,b)}; +g.k.getPlayerState=function(C){return omU(this.app,C)}; +g.k.CU=function(){return omU(this.app)}; +g.k.tSh=function(C,b,h){kz(this)&&(s5(this.app,!0,1),DF(this.app,C,b,h,1))}; +g.k.getCurrentTime=function(C,b,h){var N=this.getPlayerState(C);if(this.app.getAppState()===2&&N===5){var p;return((p=this.app.getVideoData())==null?void 0:p.startSeconds)||0}return this.D("web_player_max_seekable_on_ended")&&N===0?Zic(this.app,C):C?this.app.getCurrentTime(C,b,h):this.app.getCurrentTime(C)}; +g.k.DU=function(){return this.app.getCurrentTime(1)}; +g.k.rW=function(){var C=this.app.vF(1);return isNaN(C)?this.getCurrentTime(1):C}; +g.k.QU=function(){return this.app.getDuration(1)}; +g.k.Uh=function(C,b){C=g.kv(Math.floor(C),0,100);isFinite(C)&&iX(this.app,{volume:C,muted:this.isMuted()},b)}; +g.k.epE=function(C){this.Uh(C,!1)}; +g.k.B_=function(C){iX(this.app,{muted:!0,volume:this.getVolume()},C)}; +g.k.tCo=function(){this.B_(!1)}; +g.k.s4=function(C){cK(this.app)&&!this.D("embeds_enable_emc3ds_muted_autoplay")||iX(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},C)}; +g.k.Yqz=function(){cK(this.app)&&this.D("embeds_enable_emc3ds_muted_autoplay")||this.s4(!1)}; +g.k.getPlayerMode=function(){var C={};this.app.getVideoData().jS&&(C.pfp={enableIma:g.n6(this.app.getVideoData())&&this.app.PW().allowImaMonetization,autoplay:Q4(this.app.PW()),mutedAutoplay:this.app.PW().mutedAutoplay});return C}; +g.k.V0=function(){var C=this.app.getPresentingPlayerType();if(C===2&&!this.app.vL()){var b=UC(this.app.N8());if(!l2H(b)||oKW(b))return}C===3?$z(this.app.N8()).r3("control_play"):this.app.Y().D("html5_ssap_ignore_play_for_ad")&&g.sF(this.app.PW())&&C===2||this.app.playVideo(C)}; +g.k.C3O=function(){s5(this.app,!0,1);this.V0()}; +g.k.pauseVideo=function(C){var b=this.app.getPresentingPlayerType();if(b!==2||this.app.vL()||l2H(UC(this.app.N8())))b===3?$z(this.app.N8()).r3("control_pause"):this.app.pauseVideo(b,C)}; +g.k.W3E=function(){var C=this.app,b=!1;C.If.HW&&(C.h4.publish("pageTransition"),b=!0);C.stopVideo(b)}; +g.k.clearVideo=function(){}; +g.k.getAvailablePlaybackRates=function(){var C=this.app.Y();return C.enableSpeedOptions?["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(C.X?C.ancestorOrigins[0]:window.location.origin)||C.Ck?uEE:C.supportsVarispeedExtendedFeatures?R_E:C.D("web_remix_allow_up_to_3x_playback_rate")&&g.KF(C)?QIh:fK:[1]}; +g.k.getPlaybackQuality=function(C){return(C=this.app.gU(C))?C.getPlaybackQuality():"unknown"}; +g.k.koO=function(){}; +g.k.getAvailableQualityLevels=function(C){return(C=this.app.gU(C))?(C=g.q_(C.IR(),function(b){return b.quality}),C.length&&(C[0]==="auto"&&C.shift(),C=C.concat(["auto"])),C):[]}; +g.k.oK=function(){return this.getAvailableQualityLevels(1)}; +g.k.YO=function(){return this.L1()}; +g.k.gW=function(){return 1}; +g.k.getVideoLoadedFraction=function(C){return this.app.getVideoLoadedFraction(C)}; +g.k.L1=function(){return this.getVideoLoadedFraction()}; +g.k.kO=function(){return 0}; +g.k.getSize=function(){var C=this.app.Ti().getPlayerSize();return{width:C.width,height:C.height}}; +g.k.setSize=function(){this.app.Ti().resize()}; +g.k.loadVideoById=function(C,b,h,N){if(!C)return!1;C=pX(C,b,h);return this.app.loadVideoByPlayerVars(C,N)}; +g.k.NUp=function(C,b,h){C=this.loadVideoById(C,b,h,1);s5(this.app,C,1)}; +g.k.cueVideoById=function(C,b,h,N){C=pX(C,b,h);this.app.cueVideoByPlayerVars(C,N)}; +g.k.Kb=function(C,b,h){this.cueVideoById(C,b,h,1)}; +g.k.loadVideoByUrl=function(C,b,h,N){C=MxS(C,b,h);return this.app.loadVideoByPlayerVars(C,N)}; +g.k.BUO=function(C,b,h){C=this.loadVideoByUrl(C,b,h,1);s5(this.app,C,1)}; +g.k.cueVideoByUrl=function(C,b,h,N){C=MxS(C,b,h);this.app.cueVideoByPlayerVars(C,N)}; +g.k.wx=function(C,b,h){this.cueVideoByUrl(C,b,h,1)}; +g.k.Pk=function(){var C=this.app.Y();if(C.N2)return"";var b=this.app.PW(),h=void 0;b.isLivePlayback||(h=Math.floor(this.app.getCurrentTime(1)));return C.getVideoUrl(b.videoId,this.getPlaylistId()||void 0,h)}; +g.k.Jh=function(){return this.app.getDebugText()}; +g.k.getVideoEmbedCode=function(){var C=this.app.Y();if(C.N2)return"";var b=this.app.PW();return C.getVideoEmbedCode(b.isPrivate?"":b.title,this.app.PW().videoId,this.app.Ti().getPlayerSize(),this.getPlaylistId()||void 0)}; +g.k.x0=function(C,b,h){return VN1(this.app,C,b,h)}; +g.k.removeCueRange=function(C){return qRo(this.app,C)}; +g.k.loadPlaylist=function(C,b,h,N){this.app.loadPlaylist(C,b,h,N)}; +g.k.jbh=function(C,b,h,N){this.loadPlaylist(C,b,h,N);s5(this.app,!0,1)}; +g.k.cuePlaylist=function(C,b,h,N){this.app.cuePlaylist(C,b,h,N)}; +g.k.nextVideo=function(C,b){this.app.nextVideo(C,b)}; +g.k.Csf=function(){this.nextVideo();s5(this.app,!0,1)}; +g.k.previousVideo=function(C){this.app.previousVideo(C)}; +g.k.P3f=function(){this.previousVideo();s5(this.app,!0,1)}; +g.k.playVideoAt=function(C){this.app.playVideoAt(C)}; +g.k.tsD=function(C){this.playVideoAt(C);s5(this.app,!0,1)}; +g.k.setShuffle=function(C){var b=this.app.getPlaylist();b&&b.setShuffle(C)}; +g.k.setLoop=function(C){var b=this.app.getPlaylist();b&&(b.loop=C)}; +g.k.iG=function(){var C=this.app.getPlaylist();if(!C)return null;for(var b=[],h=0;h=400)if(C=this.PW(),this.Z.Y().D("client_respect_autoplay_switch_button_renderer"))C=!!C.autoplaySwitchButtonRenderer;else{var b,h,N,p;C=!!((b=C.getWatchNextResponse())==null?0:(h=b.contents)==null?0:(N=h.twoColumnWatchNextResults)==null?0:(p=N.autoplay)==null?0:p.autoplay)!==!1}if(C)this.j||(this.j=!0,this.Kj(this.j),this.Z.Y().D("web_player_autonav_toggle_always_listen")||Tcl(this), +b=this.PW(),this.Jm(b.autonavState),this.Z.logVisibility(this.element,this.j));else if(this.j=!1,this.Kj(this.j),!this.Z.Y().D("web_player_autonav_toggle_always_listen"))for(this.Z.Y().D("web_player_autonav_toggle_always_listen"),b=g.z(this.K),h=b.next();!h.done;h=b.next())this.D9(h.value)}; +g.k.Jm=function(C){Ir6(this)?this.isChecked=C!==1:((C=C!==1)||(g.vj(),C=g.HQ("web_autonav_allow_off_by_default")&&!g.D7(0,141)&&g.BC("AUTONAV_OFF_BY_DEFAULT")?!1:!g.D7(0,140)),this.isChecked=C);Bcx(this)}; +g.k.onClick=function(){this.isChecked=!this.isChecked;this.Z.yZ(this.isChecked?2:1);Bcx(this);if(Ir6(this)){var C=this.PW().autoplaySwitchButtonRenderer;this.isChecked&&(C==null?0:C.onEnabledCommand)?this.Z.LO("innertubeCommand",C.onEnabledCommand):!this.isChecked&&(C==null?0:C.onDisabledCommand)&&this.Z.LO("innertubeCommand",C.onDisabledCommand)}this.Z.logClick(this.element)}; +g.k.getValue=function(){return this.isChecked}; +g.k.PW=function(){return this.Z.getVideoData(1)};g.S(xGH,O_);g.S(tR,g.U_);tR.prototype.onClick=function(){this.enabled&&(T4(this,!this.checked),this.publish("select",this.checked))}; +tR.prototype.getValue=function(){return this.checked}; +tR.prototype.setEnabled=function(C){(this.enabled=C)?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")};var CwV=["en-CA","en","es-MX","fr-CA"];g.S(hy,tR);hy.prototype.l$=function(C){C?this.j||(this.xg.hk(this),this.j=!0):this.j&&(this.xg.Sq(this),this.j=!1);this.j&&T4(this,oUH())}; +hy.prototype.X=function(){g.e6(this.element,"ytp-menuitem-highlight-transition-enabled")}; +hy.prototype.N=function(C){var b=oUH();C!==b&&(b=g.vj(),Wj(190,C),Wj(192,!0),b.save(),this.Z.LO("cinematicSettingsToggleChange",C))}; +hy.prototype.wO=function(){this.j&&this.xg.Sq(this);tR.prototype.wO.call(this)};g.S(NV,O_);NV.prototype.updateCinematicSettings=function(C){this.j=C;var b;(b=this.menuItem)==null||b.l$(C);this.api.publish("onCinematicSettingsVisibilityChange",C)};g.S(gC,O_);gC.prototype.YS=function(C,b){b=b.clipConfig;C==="dataloaded"&&b&&b.startTimeMs!=null&&b.endTimeMs!=null&&this.api.setLoopRange({startTimeMs:Math.floor(Number(b.startTimeMs)),endTimeMs:Math.floor(Number(b.endTimeMs)),postId:b.postId,type:"clips"})};g.S(pl,O_);pl.prototype.setCreatorEndscreenVisibility=function(C){var b;(b=OC(this.api.N8()))==null||b.Kj(C)}; +pl.prototype.j=function(C){function b(N){N==="creatorendscreen"&&(N=OC(h.api.N8()))&&N.F54(h.hideButton)} +var h=this;this.hideButton=C;this.events.S(this.api,"modulecreated",b);b("creatorendscreen")};g.S(PV,tR);PV.prototype.N=function(C){this.X(C?1:0)}; +PV.prototype.K=function(){var C=this.hasDrcAudioTrack(),b=this.j()===1&&C;T4(this,b);this.setEnabled(C)}; +PV.prototype.wO=function(){this.xg.Sq(this);tR.prototype.wO.call(this)};g.S(jK,O_);jK.prototype.getDrcUserPreference=function(){return this.j}; +jK.prototype.setDrcUserPreference=function(C){g.R1("yt-player-drc-pref",C,31536E3);C!==this.j&&(this.j=C,this.updateEnvironmentData(),this.K()&&this.api.w2())}; +jK.prototype.updateEnvironmentData=function(){this.api.Y().LK=this.j===1}; +jK.prototype.K=function(){var C,b,h=(C=this.api.getVideoData())==null?void 0:(b=C.N)==null?void 0:b.j;if(!h)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.D("mta_drc_mutual_exclusion_removal")){var N=this.api.getAudioTrack().z$.id;return i3(h,function(p){var P;return p.audio.j&&((P=p.z$)==null?void 0:P.id)===N})}return i3(h,function(p){var P; +return((P=p.audio)==null?void 0:P.j)===!0})};g.S(cV,O_);cV.prototype.onVideoDataChange=function(){var C=this,b=this.api.getVideoData();this.api.Sh("embargo",1);var h=b==null?void 0:b.DF.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(h==null?0:h.length)?glK(this,h.filter(function(N){return NVx(C,N)})):(b==null?0:b.cueRanges)&&glK(this,b.cueRanges.filter(function(N){return NVx(C,N)}))}; +cV.prototype.K=function(C){return C.embargo!==void 0}; +cV.prototype.wO=function(){O_.prototype.wO.call(this);this.j={}};g.S(kq,O_); +kq.prototype.addEmbedsConversionTrackingParams=function(C){var b=this.api.Y(),h=b.widgetReferrer,N=b.zi,p=this.j,P="",c=b.getWebPlayerContextConfig();c&&(P=c.embedsIframeOriginParam||"");h.length>0&&(C.embeds_widget_referrer=h);N.length>0&&(C.embeds_referring_euri=N);b.X&&P.length>0&&(C.embeds_referring_origin=P);c&&c.embedsFeature&&(C.feature=c.embedsFeature);p.length>0&&(b.D("embeds_web_enable_lite_experiment_control_arm_logging")?p.unshift(28572):g.Lp(g.yY(b))&&p.unshift(159628),b=p.join(","),b= +g.ES()?b:g.zQ(b,4),C.source_ve_path=b);this.j.length=0};g.S(pxW,O_);g.S(Pwc,O_);g.S(eK,g.O);eK.prototype.wO=function(){g.O.prototype.wO.call(this);this.j=null;this.K&&this.K.disconnect()};g.S(cdc,O_);g.S(Ll,g.n);Ll.prototype.show=function(){g.n.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; +Ll.prototype.onVideoDataChange=function(C){var b,h,N=(b=this.api.getVideoData())==null?void 0:(h=b.getPlayerResponse())==null?void 0:h.playabilityStatus;N&&(b=k0H(N),g.B(this.api.getPlayerStateObject(),128)||C==="dataloaderror"||!b?(this.K=0,Zk(this),this.hide()):(C=(b.remainingTimeSecs||0)*1E3,C>0&&(this.show(),this.updateValue("label",Lx(b.label)),Lux(this,C))))}; +Ll.prototype.wO=function(){Zk(this);g.n.prototype.wO.call(this)};g.S(ZxH,O_);g.S(Yq,g.n);Yq.prototype.onClick=function(){this.h4.logClick(this.element);this.h4.LO("onFullerscreenEduClicked")}; +Yq.prototype.l$=function(){this.h4.isFullscreen()?this.K?this.j.hide():this.j.show():this.hide();this.h4.logVisibility(this.element,this.h4.isFullscreen()&&!this.K)};g.S(a8,O_);a8.prototype.updateFullerscreenEduButtonSubtleModeState=function(C){var b;(b=this.j)!=null&&(g.Zo(b.element,"ytp-fullerscreen-edu-button-subtle",C),C&&!b.N&&(b.element.setAttribute("title","Scroll for details"),lv(b.h4,b.element,b),b.N=!0))}; +a8.prototype.updateFullerscreenEduButtonVisibility=function(C){var b;(b=this.j)!=null&&(b.K=C,b.l$())};g.S(YKH,g.n);g.S(oll,O_);g.S(lu,O_);lu.prototype.getSphericalProperties=function(){var C=g.VG(this.api.N8());return C?C.getSphericalProperties():{}}; +lu.prototype.setSphericalProperties=function(C){if(C){var b=g.VG(this.api.N8());b&&b.setSphericalProperties(C,!0)}};g.S(o8,O_);g.k=o8.prototype;g.k.createClientVe=function(C,b,h,N){this.api.createClientVe(C,b,h,N===void 0?!1:N)}; +g.k.createServerVe=function(C,b,h){this.api.createServerVe(C,b,h===void 0?!1:h)}; +g.k.setTrackingParams=function(C,b){this.api.setTrackingParams(C,b)}; +g.k.logClick=function(C,b){this.api.logClick(C,b)}; +g.k.logVisibility=function(C,b,h){this.api.logVisibility(C,b,h)}; +g.k.hasVe=function(C){return this.api.hasVe(C)}; +g.k.destroyVe=function(C){this.api.destroyVe(C)};var G0H=!1;G8.prototype.setPlaybackRate=function(C){this.playbackRate=Math.max(1,C)}; +G8.prototype.getPlaybackRate=function(){return this.playbackRate};VQ.prototype.xW=function(C){var b=g.IT(C.info.j.info,this.cE.yV),h=C.info.yz+this.X,N=C.info.startTime*1E3;if(this.policy.m6)try{N=this.policy.m6?g.Eu(C)*1E3:C.info.startTime*1E3}catch(c){Math.random()>.99&&this.logger&&(N=VC(C.j).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:C.info.RV(),encodedDataView:g.$s(N,4)})),N=C.info.startTime*1E3}var p=C.info.clipId,P=this.policy.m6?g.oeW(C)*1E3:C.info.duration*1E3;this.policy.m6&&(N<0||P<0)&&(this.logger&&(this.logger({missingSegInfo:C.info.RV(), +startTimeMs:N,durationMs:P}),this.policy.ZR||(N<0&&(N=C.info.startTime*1E3),P<0&&(P=C.info.duration*1E3))),this.policy.ZR&&(N<0&&(N=C.info.startTime*1E3),P<0&&(P=C.info.duration*1E3)));return{formatId:b,yz:h,startTimeMs:N,clipId:p,yj:P}}; +VQ.prototype.OV=function(C){this.timestampOffset=C};mn.prototype.seek=function(C,b){C!==this.j&&(this.seekCount=0);this.j=C;var h=this.videoTrack.K,N=this.audioTrack.K,p=this.audioTrack.rU,P=USK(this,this.videoTrack,C,this.videoTrack.rU,b);b=USK(this,this.audioTrack,this.policy.lF?C:P,p,b);C=Math.max(C,P,b);this.G=!0;this.cE.isManifestless&&(ixo(this,this.videoTrack,h),ixo(this,this.audioTrack,N));return C}; +mn.prototype.isSeeking=function(){return this.G}; +mn.prototype.Id=function(C){this.N=C}; +var Qc6=2/24;var scH=0;g.k=XN.prototype;g.k.cO=function(){this.KO=this.now();XFW(this.BW,this.KO);this.wU.cO()}; +g.k.s8=function(C,b){var h=this.policy.K?(0,g.Ai)():0;Kl(this,C,b);C-this.W<10&&this.K>0||this.Mg(C,b);this.wU.s8(C,b);this.policy.K&&(C=(0,g.Ai)()-h,this.ob+=C,this.zi=Math.max(C,this.zi))}; +g.k.Mg=function(C,b){var h=(C-this.W)/1E3,N=b-this.N;this.cM||(Zs(this.BW,h,N),this.bl(h,N));this.W=C;this.N=b}; +g.k.Xh=function(){this.sX&&Ox6(this);this.wU.Xh()}; +g.k.q$=function(C){this.sX||(this.sX=this.G-this.Yg+C,this.IV=this.G,this.Xs=this.J)}; +g.k.Cr=function(C,b){C=C===void 0?this.J:C;b=b===void 0?this.G:b;this.K>0||(this.V=C,this.K=b,this.N2=this.isActive=!0)}; +g.k.fq=function(){return this.ip||2}; +g.k.Qb=function(){}; +g.k.Dp=function(){var C,b={rn:this.requestNumber,rt:(this.J-this.j).toFixed(),lb:this.G,stall:(1E3*this.X).toFixed(),ht:(this.KO-this.j).toFixed(),elt:(this.V-this.j).toFixed(),elb:this.K,d:(C=this.Qz)==null?void 0:C.Oq()};this.url&&FuU(b,this.url);this.policy.K&&(b.mph=this.zi.toFixed(),b.tph=this.ob.toFixed());b.ulb=this.q2;b.ult=this.L;b.abw=this.rO;return b}; +g.k.now=function(){return(0,g.Ai)()}; +g.k.deactivate=function(){this.isActive&&(this.isActive=!1)};g.S(Oh,XN);g.k=Oh.prototype;g.k.Dp=function(){var C=XN.prototype.Dp.call(this);C.pb=this.Ux;C.pt=(1E3*this.Vz).toFixed();C.se=this.AZ;return C}; +g.k.jZ=function(){var C=this.wU;this.Yh||(this.Yh=C.jZ?C.jZ():1);return this.Yh}; +g.k.zg=function(){return this.LI?this.jZ()!==1:!1}; +g.k.fW=function(C,b,h){if(!this.SC){this.SC=!0;if(!this.cM){Kl(this,C,b);this.Mg(C,b);var N=this.jZ();this.AZ=h;if(!this.policy.G||!this.cM)if(N===2&&this.policy.G){N=C-this.V0)||vV(this,N,b),this.K>0&&eR(this.BW,b,this.X));C=(C-this.j)/1E3||.01;this.policy.KO&&!(this.K>0)||k7(this.BW,C,this.N,DSW(this),this.Qm)}this.deactivate()}}; +g.k.yO=function(C,b,h){h&&(this.Yh=2);C<0&&this.ip&&(C=this.ip);b?this.m6+=C:this.Df+=C}; +g.k.fq=function(){return this.Df||this.m6||XN.prototype.fq.call(this)}; +g.k.Mg=function(C,b){var h=(C-this.W)/1E3,N=b-this.N,p=this.jZ();this.isActive?p===1&&((N>0||this.policy.W)&&(h>.2||N<1024)?(this.X+=h,N>0&&h>.2&&vV(this,this.kf?h:.05,N),this.sI=!0):N>0&&(vV(this,h,N),this.sI=!0)):b&&b>=this.policy.j&&this.Cr(C,b);XN.prototype.Mg.call(this,C,b)}; +g.k.Gs=function(C){if(!this.cM){Kl(this,C,this.G);var b=(C-this.j)/1E3;this.jZ()!==2&&this.K>0&&(this.X+=(C-this.W)/1E3,eR(this.BW,this.N,this.X));k7(this.BW,b,this.N,DSW(this),this.Qm,!0);C=(C-this.W)/1E3;Zs(this.BW,C,0);this.bl(C,0)}}; +g.k.Cr=function(C,b){C=C===void 0?this.J:C;b=b===void 0?this.G:b;if(!(this.K>0)&&(XN.prototype.Cr.call(this,C,b),this.jZ()===1)){b=(this.KO-this.j)/1E3;var h=(C-this.KO)/1E3;this.LI&&Dk(this,this.now());this.G$||this.cM||(this.ip&&(h=Math.max(0,h-this.ip)),C=this.BW,C.L.eQ(1,b),C.sX.eQ(1,h))}}; +g.k.C1=function(){this.LI&&Dk(this,this.now());return this.CO}; +g.k.Nb=function(){var C;if(C=this.N>this.Yy)C=(C=this.N)?C>=this.policy.j:!1;return C}; +g.k.Yp=function(){return this.kh}; +g.k.sL=function(C){C=C===void 0?this.now():C;if(this.LI){Dk(this,C);if(this.Yh?this.zg():this.nO!==this.t4){var b=this.t4;if(C0?h+C:h+Math.max(C,b)}; +g.k.Jn=function(){return this.now()-this.V}; +g.k.Lc=function(){return(this.N-this.K)*1E3/this.Jn()||0}; +g.k.uo=function(){return this.V};dC.prototype.feed=function(C){Sc(this.j,C);this.r9()}; +dC.prototype.r9=function(){if(this.X){if(!this.j.getLength())return;var C=this.j.split(this.N-this.K),b=C.Xt;C=C.j9;if(!this.wU.q$(this.X,b,this.K,this.N))return;this.K+=b.getLength();this.j=C;this.K===this.N&&(this.X=this.N=this.K=void 0)}for(;;){var h=0;C=g.z(nlx(this.j,h));b=C.next().value;h=C.next().value;h=g.z(nlx(this.j,h));C=h.next().value;h=h.next().value;if(b<0||C<0)break;if(!this.j.FS(h,C)){if(!this.wU.q$||!this.j.FS(h,1))break;h=this.j.split(h).j9;this.wU.q$(b,h,0,C)&&(this.X=b,this.K= +h.getLength(),this.N=C,this.j=new G7([]));break}C=this.j.split(h).j9.split(C);h=C.j9;this.wU.Jv(b,C.Xt);this.j=h}}; +dC.prototype.dispose=function(){this.j=new G7};g.k=WV.prototype;g.k.DE=function(){return 0}; +g.k.rI=function(){return null}; +g.k.aZ=function(){return null}; +g.k.Ia=function(){return this.state>=1}; +g.k.isComplete=function(){return this.state>=3}; +g.k.Yf=function(){return this.state===5}; +g.k.onStateChange=function(){}; +g.k.TE=function(C){var b=this.state;this.state=C;this.onStateChange(b);this.callback&&this.callback(this,b)}; +g.k.qw=function(C){C&&this.state=this.xhr.HEADERS_RECEIVED}; +g.k.getResponseHeader=function(C){try{return this.xhr.getResponseHeader(C)}catch(b){return""}}; +g.k.IQ=function(){return+this.getResponseHeader("content-length")}; +g.k.Qw=function(){return this.K}; +g.k.Nr=function(){return this.status>=200&&this.status<300&&!!this.K}; +g.k.SX=function(){return this.j.getLength()>0}; +g.k.Mr=function(){var C=this.j;this.j=new G7;return C}; +g.k.eA=function(){return this.j}; +g.k.abort=function(){this.HE=!0;this.xhr.abort()}; +g.k.Ta=function(){return!0}; +g.k.qT=function(){return this.N}; +g.k.WL=function(){return""};g.k=Ipl.prototype;g.k.getResponseHeader=function(C){return C==="content-type"?this.j.get("type"):""}; +g.k.abort=function(){}; +g.k.LB=function(){return!0}; +g.k.IQ=function(){return this.range.length}; +g.k.Qw=function(){return this.loaded}; +g.k.Nr=function(){return!!this.loaded}; +g.k.SX=function(){return!!this.K.getLength()}; +g.k.Mr=function(){var C=this.K;this.K=new G7;return C}; +g.k.eA=function(){return this.K}; +g.k.Ta=function(){return!0}; +g.k.qT=function(){return!!this.error}; +g.k.WL=function(){return this.error};g.k=wx1.prototype;g.k.start=function(C){var b={credentials:"include",cache:"no-store"};Object.assign(b,this.J);this.X&&(b.signal=this.X.signal);C=new Request(C,b);fetch(C).then(this.V,this.onError).then(void 0,k1)}; +g.k.onDone=function(){this.HE()||this.wU.Xh()}; +g.k.getResponseHeader=function(C){return this.responseHeaders?this.responseHeaders.get(C):null}; +g.k.LB=function(){return!!this.responseHeaders}; +g.k.Qw=function(){return this.K}; +g.k.IQ=function(){return+this.getResponseHeader("content-length")}; +g.k.Nr=function(){return this.status>=200&&this.status<300&&!!this.K}; +g.k.SX=function(){return!!this.j.getLength()}; +g.k.Mr=function(){this.SX();var C=this.j;this.j=new G7;return C}; +g.k.eA=function(){this.SX();return this.j}; +g.k.HE=function(){return this.G}; +g.k.abort=function(){this.N&&this.N.cancel().catch(function(){}); +this.X&&this.X.abort();this.G=!0}; +g.k.Ta=function(){return!0}; +g.k.qT=function(){return this.W}; +g.k.WL=function(){return this.errorMessage};g.k=Ckc.prototype;g.k.onDone=function(){if(!this.HE){this.status=this.xhr.status;try{this.response=this.xhr.response,this.K=this.response.byteLength}catch(C){}this.j=!0;this.wU.Xh()}}; +g.k.aB=function(){this.xhr.readyState===2&&this.wU.cO()}; +g.k.PL=function(C){this.HE||(this.status=this.xhr.status,this.j||(this.K=C.loaded),this.wU.s8((0,g.Ai)(),C.loaded))}; +g.k.LB=function(){return this.xhr.readyState>=2}; +g.k.getResponseHeader=function(C){try{return this.xhr.getResponseHeader(C)}catch(b){return g.QB(Error("Could not read XHR header "+C)),""}}; +g.k.IQ=function(){return+this.getResponseHeader("content-length")}; +g.k.Qw=function(){return this.K}; +g.k.Nr=function(){return this.status>=200&&this.status<300&&this.j&&!!this.K}; +g.k.SX=function(){return this.j&&!!this.response&&!!this.response.byteLength}; +g.k.Mr=function(){this.SX();var C=this.response;this.response=void 0;return new G7([new Uint8Array(C)])}; +g.k.eA=function(){this.SX();return new G7([new Uint8Array(this.response)])}; +g.k.abort=function(){this.HE=!0;this.xhr.abort()}; +g.k.Ta=function(){return!1}; +g.k.qT=function(){return!1}; +g.k.WL=function(){return""};g.T8.prototype.info=function(){}; +g.T8.prototype.debug=function(){}; +g.T8.prototype.j=NW(46);var g0K=new Map,jLH=new Map,peV=new function(){var C=this;this.j=new Map;this.dn={Bho:function(){return C.j}}};g.S(I8,g.O);I8.prototype.II=function(){if(!this.Ss.length)return[];var C=this.Ss;this.Ss=[];this.N=g.to(C).info;return C}; +I8.prototype.TR=function(){return this.Ss}; +I8.prototype.wO=function(){g.O.prototype.wO.call(this);this.j=null;this.Ss.length=0;this.UX.length=0;this.N=null};g.S(wC,g.O);g.k=wC.prototype; +g.k.W5f=function(){if(!this.HE()){var C=(0,g.Ai)(),b=!1;if(this.policy.R0){C=C-(this.timing.K>0?this.timing.V:this.timing.j)-this.timing.fq()*1E3;var h=ki(CC(this),!1);C>=2E3*h?b=!0:C>=this.policy.qp*h&&(this.j=this.policy.n5)}else if(this.timing.K>0){if(this.G){this.policy.HW&&(this.j=0);return}var N=this.timing.Yp();this.timing.sL();var p=this.timing.Yp();p-N>=this.policy.Fy*.8?(this.j++,this.logger.debug(function(){return"Mispredicted by "+(p-N).toFixed(0)}),b=this.j>=5):this.j=0}else{var P=C- +this.timing.C1(); +this.policy.n5&&P>0&&(this.j+=1);b=ki(CC(this),!1)*this.policy.R7;(b=P>b*1E3)&&this.logger.debug(function(){return"Elbow late by "+P.toFixed(3)})}this.j>0&&this.wU.Rc(); +b?this.jP(!1):this.K.start()}}; +g.k.jP=function(C){this.X=!0;C&&!this.policy.zZ&&(C=CC(this),C.K+=1);this.wU.qI();this.lastError="net.timeout";hT(this)}; +g.k.canRetry=function(C){var b=CC(this);C=C?this.policy.mF:this.policy.A6;return b.timedOut0&&(b=b.j.getUint8(0),C.ubyte=b,h===1&&b===0&&(C.b248180278=!0))}this.FH&&(C.rc=this.policy.XC?this.FH:this.FH.toString());this.policy.OU&&this.F_&&(C.tr=this.F_);C.itag=this.info.UX[0].j.info.itag;C.ml=""+ +this.info.UX[0].j.MK();C.sq=""+this.info.UX[0].yz;this.EG&&(C.ifi=""+ +F3(this.info.dU.N));this.FH!==410&&this.FH!==500&&this.FH!==503||(C.fmt_unav="true");var N;(h=this.errorMessage||((N=this.xhr)==null? +void 0:N.WL()))&&(C.msg=h);this.Of&&(C.smb="1");this.info.isDecorated()&&(C.sdai="1");return C}; +g.k.q_=function(){return dSW(this.timing)}; +g.k.WL=function(){return this.xhr.WL()||""}; +g.k.Nb=function(){return this.isComplete()||this.timing.Nb()}; +g.k.s8=function(){!this.HE()&&this.xhr&&(this.FH=this.xhr.status,this.policy.GW&&this.ER&&this.lR(!1),this.UV()?this.qw(2):!this.Wv&&this.Nb()&&(this.qw(),this.Wv=!0))}; +g.k.cO=function(){if(!this.HE()&&this.xhr){if(!this.fE&&this.xhr.LB()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var C=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.fE=((0,g.Ai)()-C)/1E3}this.xhr.LB()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.pY&&!Ac1()&&g.R1("yt-player-headers-readable",!0,2592E3);C=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var b=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),h;(h=this.qS)==null||h.stop();this.qW=C||this.qW; +this.bR=b||this.bR}}; +g.k.Xh=function(){var C=this.xhr;if(!this.HE()&&C){this.FH=C.status;C=this.Wn(C);if(this.policy.OU){var b;(b=this.qS)==null||b.stop()}C===5?hT(this.Qd):this.TE(C);this.Qd.K.stop()}}; +g.k.Wn=function(C){var b=this;sL6(this);if(N3(this.Qd,this.xhr.status,this.D8?this.timing.N2||this.WI:this.xhr.Nr(),!1,this.Bh))return 5;var h="";gv(this.Qd,this.xhr)&&(h=Yml(this.Qd,this.xhr));if(h)return cw(CC(this.Qd)),this.info.p5(this.EG,h),3;h=C.Qw();if(this.NL){this.lR(!0);sL6(this);if(N3(this.Qd,this.xhr.status,this.timing.N2||this.WI,!1,this.Bh))return 5;if(!this.X4){if(this.WI)return cw(CC(this.Qd)),3;this.Qd.lastError="net.closed";return 5}}else{if(N3(this.Qd,this.xhr.status,this.xhr.Nr(), +!1,this.Bh))return 5;var N=this.info.N;if(N&&N!==h||C.qT())return this.Qd.lastError="net.closed",5;this.lR(!0)}N=tO1(this)?C.getResponseHeader("X-Bandwidth-Est"):0;if(C=tO1(this)?C.getResponseHeader("X-Bandwidth-Est3"):0)this.e3=!0,this.policy.TX&&(N=C);LmU(this.Qd,h,N?Number(N):0,this.info.UX[0].type===5);this.logger.debug(function(){var p=b.timing;return"Succeeded, rtpd="+(p.Vz*1E3+p.j-Date.now()).toFixed(0)}); +return 4}; +g.k.canRetry=function(){this.HE();var C=this.info.isDecorated();return this.Qd.canRetry(C)}; +g.k.onStateChange=function(){this.isComplete()&&(this.policy.n$?this.qI():this.timing.deactivate())}; +g.k.jP=function(C){this.Qd.jP(C)}; +g.k.Rc=function(){this.callback&&this.callback(this,this.state)}; +g.k.mX=function(){return this.Qd.mX()}; +g.k.dispose=function(){WV.prototype.dispose.call(this);this.Qd.dispose();var C;(C=this.qS)==null||C.dispose();this.policy.n$||this.qI()}; +g.k.qI=function(){this.logger.debug("Abort");this.xhr&&this.xhr.abort();this.timing.deactivate()}; +g.k.II=function(){if(!this.TR().length)return[];this.Gg=!0;return this.ER.II()}; +g.k.UV=function(){if(this.state<1)return!1;if(this.ER&&this.ER.Ss.length)return!0;var C;return((C=this.xhr)==null?0:C.SX())?!0:!1}; +g.k.TR=function(){this.lR(!1);return this.ER?this.ER.TR():[]}; +g.k.lR=function(C){try{if(C||this.xhr.LB()&&this.xhr.SX()&&!gv(this.Qd,this.xhr)&&!this.hv)this.ER||(this.ER=new I8(this.policy,this.info.UX)),this.xhr.SX()&&(this.NL?this.NL.feed(this.xhr.Mr()):xq(this.ER,this.xhr.Mr(),C&&!this.xhr.SX()))}catch(b){this.NL?U9S(this,b):g.QB(b)}}; +g.k.Jv=function(C,b){switch(C){case 21:C=b.split(1).j9;XeH(this,C);break;case 22:this.X4=!0;xq(this.ER,new G7([]),!0);break;case 43:if(C=X9(new iy(b),1))this.info.p5(this.EG,C),this.WI=!0;break;case 45:b=EK(new iy(b));C=b.tf;b=b.Cp;C&&b&&(this.M5=C/b);break;case 44:this.PQ=fJV(new iy(b));var h,N,p;!this.timing.N2&&((h=this.PQ)==null?void 0:h.action)===4&&((N=this.PQ)==null?0:(p=N.LV)==null?0:p.D8)&&(this.D8=this.PQ.LV.D8);break;case 53:this.policy.OU&&(C=M0x(new iy(b)).fT)&&(this.qS||(this.fT=C,this.qS= +new g.C2(this.lL,C,this)),this.qS.start());break;case 60:this.Tp=Wx(new iy(b));break;case 58:if(C=h9_(new iy(b)))this.A_=C,C.A_===3&&(this.Bh=!0)}}; +g.k.q$=function(C,b,h,N){h||this.timing.q$(N);if(C!==21)return!1;if(C=this.policy.GW)if(N=b.getLength()+h===N,C*=this.info.UX[0].j.info.OX,!N&&b.getLength()0)return!1;if(!this.xhr.LB())return this.logger.debug("No headers, cannot tell if head segment."),!0;if(this.NL)var C=!this.info.N;else this.xhr.IQ()?C=!1:(C=this.xhr.getResponseHeader("content-type"),C=C==="audio/mp4"||C==="video/mp4"||C==="video/webm");if(!C)return!1;if(isNaN(this.info.y6)){C=this.xhr.getResponseHeader("x-head-seqnum");var b=this.timing.policy.V?1:0;if(!C)this.logger.debug("No x-head-seqnum, cannot tell if head segment."); +else if(Number(C)>this.info.UX[0].yz+b)return!1}return!0}; +g.k.V9=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; +g.k.rI=function(){this.xhr&&(this.qW=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.qW}; +g.k.aZ=function(){this.xhr&&(this.bR=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.bR}; +g.k.LX=function(){return this.Qd.LX()}; +g.k.lL=function(){if(!this.HE()&&this.xhr){this.F_="heartbeat";var C=this.Qd;C.j+=2;this.Rc()}};g.S(Zg,XN);g.k=Zg.prototype;g.k.Mg=function(C,b){var h=(C-this.W)/1E3,N=b-this.N;this.K>0?N>0&&(this.nO&&(h>.2||N<1024?(this.X+=h,h>.2&&O_o(this,.05,N)):O_o(this,h,N)),this.Df&&(this.t4+=N,this.CO+=h)):b>this.policy.j&&this.Cr(C,b);XN.prototype.Mg.call(this,C,b)}; +g.k.fW=function(C,b){Kl(this,C,b);this.Mg(C,b);this.nO&&(b=this.N*this.snapshot.stall+this.N/this.snapshot.byterate,this.K>0&&eR(this.BW,this.t4,this.X),C=(C-this.j)/1E3||.01,this.policy.KO&&!(this.K>0)||k7(this.BW,C,this.N,b,!1))}; +g.k.Gs=function(C){Kl(this,C,this.G);var b=(C-this.W)/1E3;Zs(this.BW,b,0);this.bl(b,0);!this.nO&&this.K>0||(b=this.N*this.snapshot.stall+this.N/this.snapshot.byterate,this.K>0&&(this.X+=(C-this.W)/1E3,eR(this.BW,this.t4,this.X)),k7(this.BW,((C-this.j)/1E3||.01)*this.policy.q2,this.N,b,!1,!0))}; +g.k.Lx=function(C){C=C.kz||2147483647;(C&2)!==2&&(this.Df=!1);(C&1)===1&&(this.nO=!0)}; +g.k.tD=function(C){C=C.kz||2147483647;(C&2)===2&&(this.Df=!1);(C&1)===1&&(this.nO=!1)}; +g.k.uo=function(){return this.V}; +g.k.Jn=function(){var C=this.Df?this.now()-this.W:0;return Math.max(this.CO*1E3+C,1)}; +g.k.Lc=function(){return this.t4*1E3/this.Jn()}; +g.k.Cr=function(C,b){C=C===void 0?this.J:C;b=b===void 0?this.G:b;this.K>0||(XN.prototype.Cr.call(this,C,b),b=this.BW,C=(C-this.KO)/1E3,b.L.eQ(1,(this.KO-this.j)/1E3),b.sX.eQ(1,C))}; +g.k.Qb=function(C){this.m6=C}; +g.k.Dp=function(){var C=XN.prototype.Dp.call(this);C.rbw=this.Lc();C.rbe=+this.Df;C.gbe=+this.nO;C.ackt=(this.m6-this.j).toFixed();return C}; +g.k.sL=function(){}; +g.k.Yp=function(){return NaN}; +g.k.C1=function(){return this.j+this.snapshot.delay*1E3};Yh.prototype.Jv=function(C,b){b.getLength();switch(C){case 20:C=new iy(b);C={Wm:RM(C,1),videoId:X9(C,2),itag:RM(C,3),lmt:RM(C,4),xtags:X9(C,5),zT:RM(C,6),TJ:QC(C,8),dA:RM(C,9),lti:RM(C,10),startMs:RM(C,11),durationMs:RM(C,12),f6:RM(C,14),timeRange:KD(C,15,sHK),IS:RM(C,16),EZ:RM(C,17),clipId:X9(C,1E3)};this.R9(C);break;case 21:this.ZP(b,!1);break;case 22:this.t_(b);break;case 31:C=vN(b,oW_);this.D$(C);break;case 52:C=vN(b,qPW);this.DG(C);break;default:this.e_(C,b)}}; +Yh.prototype.R9=function(){}; +Yh.prototype.e_=function(){};g.S(am,Yh);g.k=am.prototype; +g.k.e_=function(C,b){b.getLength();switch(C){case 35:this.CT(b);break;case 44:this.SO(b);break;case 43:this.DP(b);break;case 53:this.ET(b);break;case 55:C=new iy(b);(C={timeline:KD(C,1,yko),yy$:KD(C,2,Jkl)},C.timeline)&&C.timeline.mY&&this.wU.fm(C.timeline.mY,C.timeline.j2E,C.yy$);break;case 56:this.iI();break;case 57:this.UN(b);break;case 42:this.va(b);break;case 45:this.bx(b);break;case 59:this.uI(b);break;case 51:this.g3(b);break;case 49:this.Lx(b);break;case 50:this.tD(b);break;case 47:this.Yu(b); +break;case 58:this.MS(b);break;case 61:this.wU.RL.Qb((0,g.Ai)());break;case 66:this.WY(b);break;case 46:this.Cx(b);break;case 67:this.onSnackbarMessage(b)}}; +g.k.g3=function(C){C=new iy(C);C={ZBz:OT(C,1,Dp),B_f:OT(C,2,Dp)};this.wU.g3(C)}; +g.k.uI=function(C){var b=new iy(C);C=sT(b,1);var h=sT(b,2);b=sT(b,3);this.wU.uI(C,h,b)}; +g.k.bx=function(C){C=EK(new iy(C));this.wU.bx(C)}; +g.k.Yu=function(C){C=vN(C,SPU);this.wU.Yu(C)}; +g.k.va=function(C){C=new iy(C);C={videoId:X9(C,1),formatId:KD(C,2,Dp),endTimeMs:RM(C,3),Y1p:RM(C,4),mimeType:X9(C,5),CL:KD(C,6,e9W),indexRange:KD(C,7,e9W),ZE:KD(C,8,LUo)};this.wU.va(C)}; +g.k.UN=function(C){C=Jkl(new iy(C));this.wU.UN(C)}; +g.k.iI=function(){this.wU.iI()}; +g.k.CT=function(C){C=FUH(new iy(C));this.wU.CT(C)}; +g.k.ET=function(C){C=M0x(new iy(C));this.wU.ET(C)}; +g.k.SO=function(C){C=fJV(new iy(C));this.wU.SO(C)}; +g.k.DP=function(C){C={redirectUrl:X9(new iy(C),1)};this.wU.DP(C)}; +g.k.ZP=function(C){var b=C.getUint8(0);if(C.getLength()!==1){C=C.split(1).j9;var h=this.K[b]||null;h&&zi(this.wU.NK,b,h,C)}}; +g.k.t_=function(C){C=C.getUint8(0);var b=this.K[C]||null;b&&this.wU.t_(C,b)}; +g.k.DG=function(C){this.wU.DG(C)}; +g.k.R9=function(C){var b=C.Wm,h=C.TJ,N=C.zT,p=C.EZ,P=C.IS,c=C.dA,e=C.startMs,L=C.durationMs,Z=C.timeRange,Y=C.f6,a=C.clipId,l=ov(C);C=Gxd.has(On[""+C.itag]);this.K[b]=l;this.wU.yO(l,C,{Wm:b,TJ:!!h,zT:N!=null?N:-1,dA:c!=null?c:-1,startMs:e!=null?e:-1,durationMs:L!=null?L:-1,f6:Y,EZ:p,IS:P,clipId:a,timeRange:Z})}; +g.k.Lx=function(C){C={kz:RM(new iy(C),1)};this.wU.Lx(C)}; +g.k.tD=function(C){C={kz:RM(new iy(C),1)};this.wU.tD(C)}; +g.k.D$=function(C){this.wU.D$(C)}; +g.k.MS=function(C){C=h9_(new iy(C));this.wU.MS(C)}; +g.k.WY=function(C){C={mV:KD(new iy(C),1,H8o)};this.wU.WY(C)}; +g.k.onSnackbarMessage=function(C){C=RM(new iy(C),1);this.wU.onSnackbarMessage(C)}; +g.k.Cx=function(C){C={reloadPlaybackParams:KD(new iy(C),1,b86)};this.wU.Cx(C)};g.S(lr,g.O);g.k=lr.prototype;g.k.hK=function(){return Array.from(this.Sf.keys())}; +g.k.Y3=function(C){C=this.Sf.get(C);var b=C.Ss;C.Hx+=b.getLength();C.Ss=new G7;return b}; +g.k.nX=function(C){return this.Sf.get(C).nX}; +g.k.er=function(C){return this.Sf.get(C).er}; +g.k.yO=function(C,b,h,N){this.Sf.get(C)||E0K(this,C,b);b=this.Sf.get(C);if(this.cE){C=tkx(this,C,h);if(N)for(var p=g.z(C),P=p.next();!P.done;P=p.next()){P=P.value;var c=N;P.V=c;P.startTime+=c;P.c7+=c;P.cF+=c}n0c(this,h.Wm,b,C)}else h.TJ?b.tP=h.f6:b.o6.push(h),b.Yk.push(h)}; +g.k.Zt=function(C){var b;return((b=this.Sf.get(C))==null?void 0:b.UX)||[]}; +g.k.qw=function(){for(var C=g.z(this.Sf.values()),b=C.next();!b.done;b=C.next())b=b.value,b.NH&&(b.PL&&b.PL(),b.NH=!1)}; +g.k.t_=function(C,b){this.logger.debug(function(){return"[onMediaEnd] formatId: "+b}); +var h=this.Sf.get(b);if(om){if(h&&!h.nX){if(h.gi.get(C))h.gi.get(C).jb=!0;else{var N;((N=this.Zi)==null?0:N.Yr)&&h.gi.set(C,{data:new G7,yn:0,jb:!0})}h.er=!0}}else h&&!h.er&&(h.er=!0)}; +g.k.II=function(C){if(om){var b=this.Sf.get(C);if(b)for(var h=g.z(b.gi),N=h.next();!N.done;N=h.next()){var p=g.z(N.value);N=p.next().value;p=p.next().value;var P=b.LH.get(N);if(V0(P[0])){if(!p.jb)continue;var c=P,e=p.data;e.getLength();P=0;var L=[];c=g.z(c);for(var Z=c.next();!Z.done;Z=c.next()){Z=Z.value;var Y=Z.N,a=$r(e,P,Y);P+=Y;L.push(new dd(Z,a))}b.y5.push.apply(b.y5,g.M(L))}else if(p.data.getLength()>0||!P[0].range&&p.jb)e=void 0,P=P[0],L=p.yn,c=p.data,P.range||(e=p.jb),Z=c.getLength(),e=new dd(BeS(P, +P.K+L,Z,e),c),p.yn+=e.info.N,b.y5.push(e);b.gi.get(N).data=new G7;p.jb&&b.gi.delete(N)}C=this.Sf.get(C);if(!C)return[];b=C.y5;C.y5=[];h=g.z(b);for(N=h.next();!N.done;N=h.next())C.Hx+=N.value.info.N;return b||[]}h=(b=this.Sf.get(C))==null?void 0:b.ER;if(!h)return[];this.lR(C,h);return h.II()}; +g.k.UV=function(C){if(om)return $h(this,C);var b,h,N;return!!((h=(b=this.Sf.get(C))==null?void 0:b.ER)==null?0:(N=h.TR())==null?0:N.length)||$h(this,C)}; +g.k.lR=function(C,b){for(;$h(this,C);){var h=this.Y3(C);var N=C;N=this.Sf.get(N).nX&&!S4(this,N);xq(b,h,N&&WmS(this,C))}}; +g.k.wO=function(){g.O.prototype.wO.call(this);for(var C=g.z(this.Sf.keys()),b=C.next();!b.done;b=C.next())Fe(this,b.value);var h;if((h=this.Zi)==null?0:h.Zu)for(C=g.z(this.Sf.values()),b=C.next();!b.done;b=C.next())b=b.value,b.gi.clear(),b.LH.clear(),b.y5.length=0,b.UX.length=0,b.Yk.length=0,b.o6.length=0;this.Sf.clear()}; +var om=!1;g.S(Hp,g.O);g.k=Hp.prototype;g.k.s8=function(){!this.HE()&&this.xhr&&(this.lR(!1),CJ(this.wU,this))}; +g.k.cO=function(){}; +g.k.Xh=function(){if(!this.HE()&&this.xhr){var C=this.Wn();C===5?hT(this.Qd):this.TE(C);this.Qd.K.stop();var b;(b=this.o5)==null||b.stop()}}; +g.k.Wn=function(){var C="";gv(this.Qd,this.xhr)&&(C=Yml(this.Qd,this.xhr));if(C)return this.info.dU.p5(this.EG,C),3;this.lR(!0);if(N3(this.Qd,this.xhr.status,this.xhr.Nr(),this.info.eT(),this.Bh))return 5;if(this.kx)return 3;LmU(this.Qd,this.xhr.Qw(),0,this.eT());this.policy.yd&&Hjl(this.wU);return 4}; +g.k.lR=function(C){var b=this.xhr;if((C||!gv(this.Qd,this.xhr))&&b.SX()){C=b.Mr();var h=C.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+h}); +this.NL.feed(C)}}; +g.k.Jv=function(C,b){this.xhr.Ta()&&C===21&&x9H(this);this.Ur.Jv(C,b)}; +g.k.q$=function(C,b,h,N){h||(this.RL.q$(N),this.policy.xb&&C===21&&x9H(this));if(C!==21)return!1;this.RL.N2=!0;C=b.getLength();h||(this.fC=b.getUint8(0),b=b.split(1).j9);var p=this.policy.Ew,P=this.Ur.K[this.fC],c=this.cE.N.get(P);if(p&&c&&(p*=c.info.OX,C+h!==N&&C0){this.policy.R0&&this.Qd.K.stop();C=this.RL.Jn();b=this.RL.Lc();var h=weV(this,C);if(!(b>h.jA||h.De>0&&this.info.Mv()>h.De)){this.GD=(0,g.Ai)();var N;(N=this.o5)==null||N.stop();this.policy.yd&&(N=this.wU,C={vC:Math.round(b*C/1E3),iX:C},N.policy.yd&&(N.sX=C,N.kC++));this.jP(!1)}}}}; +g.k.jP=function(C){this.Qd.jP(C)}; +g.k.SO=function(C){this.wU.SO(C,this.ML())}; +g.k.DP=function(C){this.kx=!0;this.info.dU.p5(this.EG,C.redirectUrl)}; +g.k.Lx=function(C){this.RL instanceof Zg&&this.RL.Lx(C)}; +g.k.tD=function(C){this.RL instanceof Zg&&this.RL.tD(C)}; +g.k.fm=function(C,b,h){this.wU.fm(C,b,h,this.ML())}; +g.k.va=function(C){var b=C.formatId,h=ov({itag:b.itag,lmt:b.lmt,xtags:b.xtags}),N,p,P=new GE(((N=C.CL)==null?void 0:N.first)||0,((p=C.CL)==null?void 0:p.eF)||0),c,e;N=new GE(((c=C.indexRange)==null?void 0:c.first)||0,((e=C.indexRange)==null?void 0:e.eF)||0);if(!this.cE.N.get(h)){h=C.ZE||{};if(this.policy.MW){var L,Z;C=(L=C.mimeType)!=null?L:"";L=(Z=b.itag)!=null?Z:0;Z=On[""+L];h.mimeType=Z!=="9"&&Z!=="9h"?C:'video/webm; codecs="'+["vp09",Z==="9h"?"02":"00","51",Z==="9h"?"10":"08","01.01.01.01.00"].join(".")+ +'"'}else h.mimeType=C.mimeType;h.itag=b.itag;h.lastModified=""+(b.lmt||0);h.xtags=b.xtags;b=this.cE;Z=ky("");L=j$(h,null);b8(b,new xi(Z,L,P,N))}}; +g.k.bx=function(C){this.wU.bx(C)}; +g.k.onSnackbarMessage=function(C){if(this.policy.Hp)this.wU.onSnackbarMessage(C)}; +g.k.D$=function(C){this.tF=C;this.xn=(0,g.Ai)();this.wU.D$(C)}; +g.k.uI=function(C,b,h){this.wU.uI(C,b,h)}; +g.k.UN=function(C){C.scope===2&&(this.MSD=C);this.wU.UN(C)}; +g.k.iI=function(){this.SV=!0;this.wU.iI()}; +g.k.g3=function(C){this.policy.OG&&this.wU.g3(C)}; +g.k.Yu=function(C){this.wU.Yu(C,this.ML())}; +g.k.MS=function(C){C.A_===3&&(this.Bh=!0);this.wU.MS(C)}; +g.k.WY=function(C){this.wU.WY(C)}; +g.k.Cx=function(C){this.wU.Cx(C)}; +g.k.canRetry=function(){this.HE();return this.Qd.canRetry(!1)}; +g.k.dispose=function(){if(!this.HE()){g.O.prototype.dispose.call(this);this.Qd.dispose();var C;(C=this.o5)==null||C.dispose();this.TE(-1);this.qI()}}; +g.k.TE=function(C){this.state=C;CJ(this.wU,this)}; +g.k.eT=function(){return this.info.eT()}; +g.k.Vl=function(){return this.SV}; +g.k.zz=function(){return this.MSD}; +g.k.yO=function(C,b,h){h.clipId&&(this.clipId=h.clipId);this.policy.G&&!b&&(this.oF=h.dA,this.Yq=h.startMs);var N=0;this.policy.AT&&this.Cg&&this.clipId&&(N=MV(this.Cg,this.clipId)/1E3);this.NK.yO(C,b,h,N);this.policy.nI&&this.tF&&this.RL instanceof Oh&&(N=this.tF.lh,this.RL.yO(h.durationMs/1E3,b,N>0&&h.dA+1>=N));this.NK.Sf.get(C).zl=!0}; +g.k.t_=function(C,b){this.NK.t_(C,b)}; +g.k.DG=function(C){this.requestIdentifier=C}; +g.k.II=function(C){return this.NK.II(C)}; +g.k.Zt=function(C){return this.NK.Zt(C)}; +g.k.UV=function(C){return this.NK.UV(C)}; +g.k.hK=function(){return this.NK.hK()}; +g.k.jZ=function(){return 1}; +g.k.ML=function(){return this.RL.requestNumber}; +g.k.UO=function(){return this.requestIdentifier}; +g.k.xG=function(){return this.clipId}; +g.k.p9=function(){return this.EG.p9()}; +g.k.Ar=function(){this.qI()}; +g.k.qI=function(){this.RL.deactivate();var C;(C=this.xhr)==null||C.abort()}; +g.k.isComplete=function(){return this.state>=3}; +g.k.Pv=function(){return this.state===3}; +g.k.Yf=function(){return this.state===5}; +g.k.zw=function(){return this.state===4}; +g.k.sA=function(){return this.isComplete()}; +g.k.Ia=function(){return this.state>=1}; +g.k.mX=function(){return this.policy.HW?this.Qd.mX():0}; +g.k.Rc=function(){this.policy.HW&&CJ(this.wU,this)}; +g.k.Si=function(){return as1(this.info)}; +g.k.LX=function(){return this.Qd.LX()}; +g.k.NW=function(){var C=alc(this.Qd);Object.assign(C,o7K(this.info));C.req="sabr";C.rn=this.ML();var b;if((b=this.xhr)==null?0:b.status)C.rc=this.policy.XC?this.xhr.status:this.xhr.status.toString();var h;(b=(h=this.xhr)==null?void 0:h.WL())&&(C.msg=b);this.GD&&(h=weV(this,this.GD-this.RL.uo()),C.letm=h.eDi,C.mrbps=h.jA,C.mram=h.De);return C}; +g.k.ma=function(){return{oF:this.oF,Yq:this.Yq,isDecorated:this.info.isDecorated()}};C0c.prototype.tick=function(C,b){this.ticks[C]=b?window.performance.timing.navigationStart+b:(0,g.Ai)()};g.S(M3,g.cr);g.k=M3.prototype; +g.k.fz=function(C,b,h,N){var p=!1;this.policy.Yh&&(p=h?this.q2===C.yz:this.nO===C.yz);if(this.W&&N&&!p){N=[];p=[];var P=[],c=void 0,e=0;b&&(N=b.j,p=b.K,P=b.X,c=b.N,e=b.Vh,this.jp("sdai",{sq:C.yz,ssvicpns:N.join("."),ssvid:p.join(".")}));this.policy.Yh&&(h?this.q2=C.yz:this.nO=C.yz);this.W.Ph(C.yz,C.startTime,this.K,N,p,P,h,e,c)}if(this.policy.Yh){if(h||this.policy.RS){this.K===1&&m_(this,5,"noad");var L;C.yz!==((L=this.j)==null?void 0:L.yz)&&(Z$l(this,C,b,h),isNaN(C.startTime)||fC(this,C.yz,rv(this, +C.startTime,C.yz),!!b,this.W))}}else h&&Z$l(this,C,b)}; +g.k.q7=function(C,b,h){var N=this.videoTrack.j.index.Fs()<=b;this.j={qK:C,yz:b,oG:h};N&&q3(this,C,b)}; +g.k.YP=function(){this.W&&this.W.YP()}; +g.k.jp=function(C,b,h){(C!=="sdai"||this.policy.O0||(h===void 0?0:h))&&this.Xo.jp(C,b)}; +g.k.WK=function(C,b){var h=this.videoTrack.j.index.nZ(C);if(h>=0){var N;var p=((N=b.uf.nt(h,2))==null?void 0:N.qJ)||"";if(this.policy.G||p)return b.mT(C,h),AT(this.Xo,C,C,h),this.jp("sdai",{cmskpad:1,t:C.toFixed(3),sq:h}),!0}this.jp("sdai",{cmskpad:0,t:C.toFixed(3),sq:h});return!1};g.S(Rm,g.O);Rm.prototype.JN=function(C,b,h){h=h===void 0?{}:h;this.policy.Ml=HR(C,h,this.X,b===void 0?!1:b)};sk.prototype.rS=function(C){var b=this;if(this.policy.Vt){var h=new Set(C);h.size===this.sX.size&&[].concat(g.M(h)).every(function(N){return b.sX.has(N)})||(this.Xo.jp("lwnmow",{itagDenylist:[].concat(g.M(C)).join(",")}),this.Xo.W1(!!h.size),this.V=-1,this.sX=h,Ok(this,this.j),this.rO=!0)}}; +sk.prototype.JN=function(C,b,h){h=h===void 0?{}:h;var N=this.policy.Ml;this.G.JN(C,b===void 0?!1:b,h);if(N!==this.policy.Ml){Ok(this,this.j);vp(this);var p,P;N>this.policy.Ml&&((p=this.N)==null?0:W9(p.info))&&((P=this.nextVideo)==null||!W9(P.info))&&(this.KO=!0)}};Ek.prototype.OV=function(C){this.timestampOffset=C;this.flush()}; +Ek.prototype.flush=function(){if(this.j.pos>0){var C={a:this.track.Ab(),u:this.j.Oq(),pd:Math.round(this.X),ad:Math.round(this.N)},b=this.K;if(b){var h=b.j.info;C.itag=h.itag;h.j&&(C.xtags=h.j);C.sq=b.yz;C.st=b.startTime;C.sd=b.duration;this.track.policy.m4&&(C.si=b.RV());b.X&&(C.esl=b.K+b.N);b.b1()&&(C.eos=1)}isNaN(this.timestampOffset)||(C.to=this.timestampOffset);var N;if(b=(N=this.track.rU)==null?void 0:N.jf({})){for(var p in b)this.W[p]!==b[p]&&(C["sb_"+p]=b[p]);this.W=b}this.track.jp("sbu", +C);this.j.reset();this.buffered=[];this.G=this.N=this.X=0;this.timestampOffset=this.K=void 0}};tT.prototype.dispose=function(){this.N2=!0}; +tT.prototype.HE=function(){return this.N2}; +g.S(Cf,Error);var BTW=new Uint8Array([0,0,0,38,112,115,115,104,0,0,0,0,237,239,139,169,121,214,74,206,163,200,39,220,213,29,33,237,0,0,0,6,72,227,220,149,155,6]);Ni.prototype.skip=function(C){this.offset+=C}; +Ni.prototype.yw=function(){return this.offset};g.k=C86.prototype;g.k.f1=function(){return this.K}; +g.k.BK=function(){return this.K.length?this.K[this.K.length-1]:null}; +g.k.j1=function(){this.K=[];cg(this);Pg(this)}; +g.k.Y3=function(C){this.t4=this.K.shift().info;C.info.y8(this.t4)}; +g.k.Zt=function(){return g.q_(this.K,function(C){return C.info})}; +g.k.Ab=function(){return!!this.W.info.audio}; +g.k.getDuration=function(){return this.W.index.tK()};g.S(fl,WV);g.k=fl.prototype;g.k.onStateChange=function(){this.HE()&&(Gi(this.NK,this.formatId),this.j.dispose())}; +g.k.NW=function(){var C=d9W(this.NK,this.formatId),b;var h=((b=this.NK.Sf.get(this.formatId))==null?void 0:b.bytesReceived)||0;var N;b=((N=this.NK.Sf.get(this.formatId))==null?void 0:N.Hx)||0;return{expected:C,received:h,bytesShifted:b,sliceLength:S4(this.NK,this.formatId),isAnyMediaEndReceived:this.NK.er(this.formatId)}}; +g.k.q_=function(){return 0}; +g.k.Nb=function(){return!0}; +g.k.II=function(){return this.NK.II(this.formatId)}; +g.k.TR=function(){return[]}; +g.k.UV=function(){return this.NK.UV(this.formatId)}; +g.k.LX=function(){return this.lastError}; +g.k.mX=function(){return 0};g.S(Zi,g.O);g.k=Zi.prototype;g.k.Ab=function(){return!!this.j.info.audio}; +g.k.BK=function(){return this.X.BK()}; +g.k.Y3=function(C){this.X.Y3(C);var b;(b=this.L)!=null&&(b.G.add(C.info.yz),b.j=qKl(b,b.Pb,b.L2,C,b.j),b.N=C,b.W=(0,g.Ai)());this.OX=Math.max(this.OX,C.info.j.info.OX||0)}; +g.k.getDuration=function(){if(this.policy.K){var C=this.Xo.VP();if(C)return xL(C)}return this.j.index.tK()}; +g.k.j1=function(){yQ(this);this.X.j1()}; +g.k.i_=function(){return this.X}; +g.k.isRequestPending=function(C){return this.N.length?C===this.N[this.N.length-1].info.UX[0].yz:!1}; +g.k.OV=function(C){var b;(b=this.L)==null||b.OV(C);var h;(h=this.V)==null||h.OV(C)}; +g.k.jp=function(C,b){this.Xo.jp(C,b)}; +g.k.YA=function(){return this.Xo.YA()}; +g.k.dispose=function(){var C;(C=this.V)==null||C.flush();g.O.prototype.dispose.call(this)};g.S(XA,g.O);XA.prototype.N=function(){this.K++>15||(this.j=!this.j,new dE_(this.Xo,this.policy,this.BW,this.dU,this.j),this.delay.start())}; +g.k=dE_.prototype;g.k.cO=function(){}; +g.k.s8=function(){}; +g.k.Xh=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.Qw()===this.size)this.Xo.jp("rqs",this.getInfo());else{var C="net.connect";this.xhr.status>200?C="net.badstatus":this.xhr.LB()&&(C="net.closed");this.onError(C)}}; +g.k.onError=function(C){var b=this;this.Xo.handleError(C,this.getInfo());FN("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(h){b.Xo.jp("pathprobe",h)},function(h){b.Xo.handleError(h.errorCode,h.details)})}; +g.k.getInfo=function(){var C=this.timing.Dp();C.shost=lk(this.location.Oe);C.pb=this.size;return C};g.S(Kf,g.O); +Kf.prototype.J=function(C,b){if(C.J){this.cE.isLive?(C=this.cE.G5&&this.cE.X?C.j.Nk(this.cE.G5,!1):C.j.gh(Infinity),C.y6=this.y6):C=C.j.Nk(0,!1);if(this.KO){var h=this.KO;C.y6===0&&(C.G=h.L)}else C.G=this.V;return C}h=C.K;if(!h.j.MK())return h.j.uR()?(C=$q(this.G,C.j.info.OX,b.j.info.OX,0),C=h.j.Zc(h,C)):C=h.j.A1(h),C;var N=h.cF-this.Xo.getCurrentTime(),p=!h.range||h.N===0&&h.K===0?0:h.range.length-(h.K+h.N),P=h.j;this.UA(C,N)&&p===0&&(this.cE.isManifestless?P=C.j:(P=h.startTime+jq,h.N&&(P+=h.duration), +Jy(C,P),h=C.K,P=h.j));P.uR()?(p=this.N,b=$q(this.G,P.info.OX,b.j.info.OX,N,p.X.length>0&&p.L===0&&this.Xo.OF),N=A7(C),C=h.j.Zc(h,b),(b=C.N)&&C.UX.length>1&&(N||C.dU.K||C.UX[0].j!==h.j?C=h.j.Zc(h,C.UX[0].N):(N=C.UX[C.UX.length-1],P=N.N/b,!N.X&&P<.4&&(C=h.j.Zc(h,b-N.N))))):(h.yz<0&&(b=f$(h),b.pr=""+C.N.length,this.Xo.isSeeking()&&(b.sk="1"),b.snss=h.G,this.Xo.jp("nosq",b)),C=P.A1(h));if(this.policy.q2)for(h=g.z(C.UX),b=h.next();!b.done;b=h.next())b.value.type=6;return C}; +Kf.prototype.UA=function(C,b){if(!A7(C)||!C.j.MK())return!1;var h=this.N.rO||f5c(C)||b<=this.policy.BB||this.N.KO;this.logger.debug(function(){return"ready to adapt: "+h+", upgrade pending: "+f5c(C)+", health: "+b}); +return h}; +Kf.prototype.wO=function(){g.O.prototype.wO.call(this)}; +var jq=2/24;g.S(t7,g.O);t7.prototype.M4=function(C,b,h){var N;var p=((N=this.K)==null?void 0:N.reason)==="m"?"m":this.K&&g7c(this,this.K)?this.K.reason:"a";this.Xo.M4(new ur(C,p,h));Wg(this.Xo,b,C,!0)}; +t7.prototype.z9=function(C,b){for(var h=g.z(this.q2),N=h.next();!N.done;N=h.next())if(N=N.value,N.id===C)return this.Zi.xf||(this.N=[N]),this.W=this.cE.j[C],QN(this.Zi)&&(this.KO=!0),new ur(this.W,b?"t":"m");this.N=[];return null}; +t7.prototype.JN=function(C,b,h){h=h===void 0?{}:h;this.j.JN(C,b===void 0?!1:b,h)};ld.prototype.setData=function(C,b,h,N){var p=this;N=N===void 0?{}:N;if(h==null?0:h.AZ)this.bJ=IlH(this,h,N),C.Ke=this.dU.Ke();if(this.eT())return!0;this.data=C;this.j=ZOx(C,b,function(P,c){var e;(e=p.wU)==null||e.jC(P,c)},h==null?void 0:h.N); +if(!this.j)return!1;this.K=g.PW(this.j,PGc);return!0}; +ld.prototype.eT=function(){return this.requestType===1}; +ld.prototype.Mv=function(){var C;return((C=this.wU)==null?void 0:C.Mv())||0}; +ld.prototype.isDecorated=function(){var C;return!((C=this.data)==null||!C.Vw)};og.prototype.encrypt=function(C){this.d9.exports.AES128CTRCipher_encrypt(this.cipher,C.byteOffset,C.byteLength);return C}; +og.prototype.HE=function(){return this.cipher===0}; +og.prototype.dispose=function(){this.d9.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};Gh.prototype.encrypt=function(C,b){return hd(this.subtleCrypto.encrypt({name:"AES-CTR",length:128,counter:b},this.key,C).catch(function(h){return Promise.reject(h.name+": "+h.message)}).then(function(h){return new Uint8Array(h)}))}; +Gh.prototype.HE=function(){return this.j}; +Gh.prototype.dispose=function(){this.j=!0}; +iS.tJ(Gh,{encrypt:Fw("oan2")});Sp.prototype.encrypt=function(C,b){GN(this.K,b);return hd(this.K.encrypt(C))}; +Sp.prototype.HE=function(){return this.j}; +Sp.prototype.dispose=function(){this.j=!0}; +iS.tJ(Sp,{encrypt:Fw("oap")});$L.prototype.encrypt=function(C,b){var h=this.d9.GY(b),N=this.j;N.d9.exports.AES128CTRCipher_setCounter(N.cipher,(h!=null?h:b).byteOffset);b=this.d9.GY(C);this.j.encrypt(b!=null?b:C);h&&this.d9.free(h.byteOffset);return b?hd(this.d9.Ma(b)):hd(C)}; +$L.prototype.HE=function(){return this.j.HE()}; +$L.prototype.dispose=function(){this.j.dispose()}; +iS.tJ($L,{encrypt:Fw("oalw")});zh.prototype.encrypt=function(C,b){var h=this,N=NS("");C.length<=this.MC&&this.j&&!this.X&&(N=jO(N,function(){return h.j?h.j.encrypt(C,b):NS("wasm unavailable")})); +C.length<=this.Vs&&(this.j&&this.X&&(N=jO(N,function(){return h.j?h.j.encrypt(C,b):NS("wasm unavailable")})),N=jO(N,function(){return $Xx(h,C,b)})); +return jO(jO(N,function(){return zmo(h,C,b)}),function(){return $Xx(h,C,b)})}; +zh.prototype.HE=function(){return this.G}; +zh.prototype.dispose=function(){this.G=!0;var C;(C=this.N)==null||Px(C,g.eD);g.eD(this.j);g.eD(this.K)};Hf.prototype.encrypt=function(C){(0,g.Ai)();return(new ws(this.j.j)).encrypt(C,this.iv)}; +Hf.prototype.decrypt=function(C,b){(0,g.Ai)();return(new ws(this.j.j)).decrypt(C,b)}; +Hf.prototype.HE=function(){return this.N}; +Hf.prototype.dispose=function(){this.N=!0;g.eD(this.K)};g.S(Vm,g.O);Vm.prototype.N=function(C,b){if(b){b=b instanceof g.Y0?b:Md(this,b);var h;((h=this.j.get(C))==null?void 0:lk(h.location))!==lk(b)&&this.j.set(C,new r9S(b,C))}else this.j.delete(C)}; +Vm.prototype.load=function(){var C=this,b,h,N,p,P,c,e,L,Z,Y;return g.R(function(a){switch(a.j){case 1:b=C.j.get(0);g.z6(a,2);var l;if(l=b&&!C.K)l=lk(b.location),l=C.K===br(l);if(l){a.WE(4);break}return g.J(a,mv(C,C.K?2:0),5);case 5:if(h=a.K)C.N(0,h),F3(h)&&C.N(1,G2(h));case 4:g.VH(a,3);break;case 2:N=g.MW(a);g.QB(N);if(!C.K){a.WE(3);break}C.K=!1;return g.J(a,C.load(),7);case 7:return a.return();case 3:if(!C.If.experiments.Fo("html5_onesie_probe_ec_hosts")){a.WE(0);break}g.z6(a,9);p=C;P=p.N;c=3;return g.J(a, +mv(C,1),11);case 11:return P.call(p,c,a.K),e=C,L=e.N,Z=4,g.J(a,mv(C,2),12);case 12:L.call(e,Z,a.K);g.VH(a,0);break;case 9:Y=g.MW(a),g.QB(Y),g.$_(a)}})}; +Vm.prototype.J=function(){var C=this,b,h;return g.R(function(N){g.be(C.L);b=g.Zc(C.If.experiments,"html5_onesie_prewarm_max_lact_ms");if(Ap()>=b)return N.return();(h=C.j.get(0))&&A9S(C,h);g.$_(N)})}; +var mX6={zu$:0,Eo2:1,jnO:2,aR6:3,P5$:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};fw.prototype.decrypt=function(C){var b=this,h,N,p,P,c,e;return g.R(function(L){switch(L.j){case 1:if(b.j.length&&!b.j[0].isEncrypted)return L.return();b.K=!0;b.Fw.xt("omd_s");h=new Uint8Array(16);zN()?N=new IG(C):p=new ws(C);case 2:if(!b.j.length||!b.j[0].isEncrypted){L.WE(4);break}P=b.j.shift();if(!N){c=p.decrypt(P.buffer.f5(),h);L.WE(5);break}return g.J(L,N.decrypt(P.buffer.f5(),h),6);case 6:c=L.K;case 5:e=c;for(var Z=0;Z=4)){var b=Wf(this),h=this.xhr;b.rc=h.status;C&&(b.ab=!0);if(h.WL()){var N="onesie.net";b.msg=h.WL()}else h.status>=400?N="onesie.net.badstatus":h.Nr()?this.qx||(N="onesie.response.noplayerresponse"):N=h.status===204?"onesie.net.nocontent":"onesie.net.connect";N?this.wi(new Mw(N,b)):(this.xt("or_fs"),this.RL.fW((0,g.Ai)(),h.Qw(),0),this.TE(4),this.tj&&this.jp("rqs",b));this.tj&&this.jp("ombre", +"ok."+ +!N);this.Dr=!1;nw(this);dp(this.Fw);if(!this.oA){this.U6.stop();var p;(p=this.mI)==null||p.stop()}var P;if(C=(P=this.Ez)==null?void 0:y9W(P))for(P=0;P1E3){var C;(C=this.RL)==null||C.Gs((0,g.Ai)());C=Wf(this);if(this.If.tZ()&&this.xhr instanceof Eh){var b=this.xhr;C.xrs=b.xhr.readyState;C.xpb=b.j.getLength();C.xdc=b.X}this.wi(new Mw("net.timeout",C))}}else(0,g.Ai)()-this.RL.j>1E4&&((b=this.RL)==null||b.Gs((0,g.Ai)()),this.d7());this.isComplete()||this.jH.start()}}; +g.k.d7=function(){this.logger.info("Onesie request timed out");this.Dr=!1;if(!nw(this)){var C=Wf(this);C.timeout="1";this.wi(new Mw("onesie.request",C))}}; +g.k.wi=function(C){var b=this;C=ml(C);this.bQ?this.vE.zE(C):(this.v4.reject(C),this.bQ=!0);dp(this.Fw);this.oA||this.U6.stop();this.xt("or_fe");var h,N;(h=this.Ez)==null||(N=y9W(h))==null||N.forEach(function(p){b.jp("pathprobe",p)}); +this.TE(5);this.dispose()}; +g.k.isComplete=function(){return this.state>=3}; +g.k.zw=function(){return this.state===4}; +g.k.sA=function(C){var b,h;return this.isComplete()||!!((b=this.oe)==null?0:(h=b.get(C))==null?0:h.j)}; +g.k.Pv=function(){return!1}; +g.k.Yf=function(){return this.state===5}; +g.k.notifySubscribers=function(C){for(var b=0;b102400&&!this.gQ&&(this.xt("or100k"),this.gQ=!0);if(C.SX()){var b=C.Mr(),h=b.getLength();this.logger.debug(function(){return"handleAvailableSlices: slice length "+h}); +this.tj&&this.jp("ombrss","len."+h);this.NL.feed(b)}if(this.oe)for(var N=g.z(this.oe.keys()),p=N.next();!p.done;p=N.next()){var P=p.value;C=void 0;(C=this.oe.get(P))==null||C.qw();this.notifySubscribers(P)}}catch(c){this.wi(c)}}; +g.k.ML=function(){return this.RL.requestNumber}; +g.k.UO=function(C){return this.pV.get(C)}; +g.k.ma=function(){return{oF:this.oF,Yq:this.Yq,isDecorated:!1}};g.S(tz,g.O);g.k=tz.prototype;g.k.rg=function(C,b){this.N2=void 0;Hjl(this);SFx(this,C,b)}; +g.k.LR=function(C){if(this.j.length===0)return!1;var b=this.j[0];return b instanceof E$?C===this.Xo.getCurrentTime()*1E3:!(b instanceof Hp&&lsW(b.info))&&Math.abs(b.Si()-C)<50}; +g.k.CT=function(C){this.K=C;this.N2=(0,g.Ai)()+(C.backoffTimeMs||0)}; +g.k.SO=function(C,b){if(C.action===void 0){var h=this.vE.td();h!==void 0&&this.Xo.Z$(h)}else if(C.action!==0||!this.t4)switch(C.action===0&&this.policy.tA&&(C.action=2),h={},h.reason=C.Ab6,h.action=C.action,h.rn=b,C.action){case 1:this.policy.G&&this.X&&this.X.mM(void 0,void 0,h);break;case 0:this.t4=!0;this.videoData.qz()&&this.policy.G&&this.X&&this.X.mM(void 0,void 0,h,!1);this.Xo.gb(h);break;case 2:this.Xo.handleError("sabr.config",h,1);break;case 5:OaW(this.vE,!0);break;case 6:OaW(this.vE,!1); +break;case 3:this.policy.AZ&&((C=this.cE.L)!=null&&(C.L=!0),this.Xo.handleError("sabr.hostfallback",h))}}; +g.k.fm=function(C,b,h,N){if(this.policy.K){this.Xo.jp("ssap",{rn:N,v:b,tl:Mzl(C)});var p=this.Xo.VP();C={d_:C,context:h,version:b};$mx(this,h);p?z2U(this,p,C):(this.Xo.jp("ssap",{cacheclips:1,rn:N,v:b}),this.L=C)}}; +g.k.UN=function(C){var b=this.policy.Va;this.Xo.jp("ssap",{onsbrctxt:C.type,dflt:C.sendByDefault,enable:b?1:0});b&&($mx(this,C),this.vE.UN(C))}; +g.k.iI=function(){}; +g.k.bx=function(C){if(C.tf!==void 0&&C.Cp){var b=C.tf/C.Cp;this.audioTrack.J=!1;this.videoTrack.J=!1;if(this.policy.N2||this.policy.LS||this.policy.uW)this.Xo.v6.K=!1;this.Xo.gA(b,1);if(this.vE.getCurrentTime()!==b){var h={Cj:"sabr_seek",vY:!0,sJ:!0};C.seekSource&&(h.seekSource=C.seekSource);QQ(this.Xo,b+.1,h)}}}; +g.k.onSnackbarMessage=function(C){this.vE.publish("onSnackbarMessage",C)}; +g.k.D$=function(C){C.lh&&C.K4&&oG(this.cE,C.lh,C.K4);this.policy.l6&&(C.Lg&&C.kM&&(this.cE.J_=C.Lg/C.kM),C.yK&&C.ME&&(this.cE.nI=C.yK/C.ME));C.C4!=null&&this.vE.ZN(C.C4);this.policy.Fk&&C.RE&&(C=((0,g.Ai)()-C.RE)/1E3,this.Xo.dV.eQ(1,C))}; +g.k.MS=function(C){this.Xo.MS(C)}; +g.k.uI=function(C,b,h){this.policy.N&&this.Xo.jp("sabrctxtplc",{start:C?C.join("_"):"",stop:b?b.join("_"):"",discard:h?h.join("_"):""});if(C){C=g.z(C);for(var N=C.next();!N.done;N=C.next())this.lY.add(N.value)}if(b)for(b=g.z(b),C=b.next();!C.done;C=b.next())C=C.value,this.lY.has(C)&&this.lY.delete(C);if(h)for(h=g.z(h),b=h.next();!b.done;b=h.next())b=b.value,this.videoData.sabrContextUpdates.has(b)&&(this.videoData.sabrContextUpdates.delete(b),b===3&&(this.videoData.mF=""))}; +g.k.g3=function(){}; +g.k.X_=function(C){this.W=C}; +g.k.Ax=function(C){this.Df=C}; +g.k.Yu=function(C,b){Ug(this.policy,C,4,b)}; +g.k.WY=function(C){if(C==null?0:C.mV)if(C=C.mV.n1){C=g.z(C);for(var b=C.next();!b.done;b=C.next())if(b=b.value,b.formatId){var h=this.cE.N.get(ov(b.formatId));h&&h.info&&(h.info.debugInfo=b.debugInfo)}}}; +g.k.Cx=function(C){(C=C==null?void 0:C.reloadPlaybackParams)&&this.vE.publish("reloadplayer",C)}; +g.k.tb=function(){return this.vE.tb()||""}; +g.k.Mv=function(){var C=Hg(this.audioTrack,!0)*1E3,b=Hg(this.videoTrack,!0)*1E3;return Math.min(C,b)}; +g.k.jC=function(C,b){this.Xo.jp(C,b)}; +g.k.VB=function(C){Wex(this.Xo,fTW(this.m6,C))}; +g.k.wO=function(){g.O.prototype.wO.call(this);this.K=void 0;SFx(this,!0,"i");this.j=[]};qFW.prototype.r9=function(C,b){if(this.X)return rq1(this,b);if(b=Uh(C)){var h=b.K;h&&h.N&&h.j&&(C=C.N.length?C.N[0]:null)&&C.state>=2&&!C.Yf()&&C.info.y6===0&&(this.X=C,this.J=h,this.K=b.info,this.W=this.startTimeSecs=Date.now()/1E3,this.G=this.K.startTime)}return NaN}; +qFW.prototype.clear=function(){this.K=this.J=this.X=null;this.j=this.G=this.W=this.startTimeSecs=NaN;this.N=!1};g.S(g.g4,g.O);g.k=g.g4.prototype;g.k.initialize=function(C,b,h){this.logger.debug(function(){return"Initialized, t="+C}); +C=C||0;this.policy.j||(b=y4_(this.j),tzW(this.vE,new ur(b.video,b.reason)),this.vE.La(new ur(b.audio,b.reason)));this.cE.isManifestless&&wRU(this.G);this.J&&fal(this.J,this.videoTrack.j);b=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var N=!this.cE.isManifestless;this.policy.u6&&(N=N||this.cE.y_);this.policy.sX||(this.currentTime=N?C:b);this.policy.N2&&this.seek(this.getCurrentTime(),{}).jX(function(){}); +if(this.policy.j){var p;((p=this.KO)==null?0:NFV(p,this.tb()||""))&&QQl(this)&&R2l(this,this.videoTrack)&&R2l(this,this.audioTrack)&&(VzS(this.N,this.KO),this.policy.W&&uJo(this))}else this.N2&&(Umc(this,this.videoTrack),Umc(this,this.audioTrack),D9l(this.N2),delete this.N2);h?(this.policy.Dj?(this.ob=h,PO(this,h)):PO(this,!1),g.be(this.vQ)):(h=this.getCurrentTime()===0,vg(this.G,this.videoTrack,this.videoTrack.j,h),vg(this.G,this.audioTrack,this.audioTrack.j,h),this.policy.j&&PWx(this.N,!0),this.policy.N2|| +this.seek(this.getCurrentTime(),{}).jX(function(){}),this.timing.tick("gv")); +(this.cE.G5||this.cE.Ee||this.cE.Df||this.cE.AZ||this.cE.HW)&&this.vE.nH(this.cE)}; +g.k.resume=function(){if(this.isSuspended||this.OF){this.logger.debug("Resumed.");this.Aa=this.OF=this.isSuspended=!1;try{this.r9()}catch(C){g.Ri(C)}}}; +g.k.Ct=function(){return!this.policy.ob}; +g.k.YE=function(C,b){C=C===void 0?!1:C;b=b===void 0?!1:b;this.logger.debug("detaching media source");Ojl(this);this.vE.v$()&&(this.W=NaN);C?(this.logger.debug("enable updateMetadataWithoutMediaSource"),this.policy.Qz&&this.jp("loader",{setsmb:1}),this.policy.q2=!0,this.j1()):(this.policy.Dj?PO(this,this.ob):PO(this,!1),b||this.j1())}; +g.k.setAudioTrack=function(C,b,h){h=h===void 0?!1:h;if(!this.HE()){var N=!isNaN(b);h&&N&&(this.audioTrack.KO=Date.now(),this.policy.pK&&(this.Yh=!0));if(this.policy.j){var p=this.K.z9(C.id,N);this.logger.debug(function(){return"Logging new audio format: "+p.j.info.id}); +this.vE.La(p)}else{var P=mL_(this.j,C.id,N);this.logger.debug(function(){return"Logging new audio format: "+P.audio.info.id}); +this.vE.La(new ur(P.audio,P.reason))}if(N&&(h=this.audioTrack.j.index.nZ(b),this.jp("setAudio",{id:C.id,cmt:b,sq:h}),h>=0)){this.policy.j&&(this.K.L=!0,this.rg(!0,"mosaic"));VN(this.audioTrack,h,NaN,NaN);!this.policy.fK&&this.cE.isLive&&l8(this.cE,h,!1);return}this.vE.xd()}}; +g.k.setPlaybackRate=function(C){C!==this.V.getPlaybackRate()&&this.V.setPlaybackRate(C)}; +g.k.b4=function(C){var b=this.N.W;this.N.X_(C);this.jp("scfidc",{curr:ov(b),"new":ov(C)});C&&ov(C)!==ov(b)&&(this.rg(!1,"caption change"),this.r9())}; +g.k.CH=function(C){this.N.Ax(C)}; +g.k.M4=function(C){var b=C.j.info.Ab();this.logger.debug(function(){return"New "+(b?"audio":"video")+" format from SABR: "+bJ(C.j.info)}); +b?this.vE.La(C):tzW(this.vE,C)}; +g.k.VB=function(C){ML(C.UX[C.UX.length-1])&&Wex(this,fTW(this.j,C.UX[0].j))}; +g.k.Bm=function(){return this.vE.Bm()}; +g.k.uM=function(){return this.vE.uM()}; +g.k.MS=function(C){this.vE.Y().tZ()&&this.jp("sps",{status:C.A_||""});if(C.A_===1)this.vE.videoData.JA=0;else if(C.A_===2||C.A_===3){var b=!1;if(C.A_===3){b=this.vE.iP();var h;this.IV=(h=C.XL6)!=null?h:Infinity;this.vE.videoData.JA=b+1;(b=Eg(this))&&this.wF(!0)}this.vE.Q0(!0,b)}}; +g.k.Be=function(){return this.vE.Be()}; +g.k.l1=function(){return this.vE.l1()}; +g.k.lk=function(C){this.vE.lk(C)}; +g.k.Y_O=function(){var C,b=(C=this.vE.Q_())==null?void 0:C.getCurrentTime();b?this.vE.jp("rms",{cta:b}):g.be(this.AZ)}; +g.k.r9=function(){dmK(this);if(this.pO&&OO(this.pO)&&!this.pO.iY()&&(!this.policy.sX||isFinite(this.getCurrentTime()))){var C=aZ(this.videoTrack);C=this.policy.iT&&C&&C.b1();this.cE.isManifestless&&this.cE.X&&LA(this.cE)?(this.W=LA(this.cE),this.pO.zI(this.W)):Fc(this.cE)&&!C?isNaN(this.W)?(this.W=this.getCurrentTime()+3600,this.pO.zI(this.W)):this.W<=this.getCurrentTime()+1800&&(this.W=Math.max(this.W+1800,this.getCurrentTime()+3600),this.pO.zI(this.W)):this.pO.isView||(C=Math.max(this.audioTrack.getDuration(), +this.videoTrack.getDuration()),(!isFinite(this.W)||this.W!==C)&&C>0&&(this.pO.zI(C),this.W=C))}if(!this.HE())if(e$(this.cE)&&this.cE.Yf()){var b=this.cE;this.handleError("manifest.net.retryexhausted",b.Yh?{rc:b.FH}:{rc:b.FH.toString()},1)}else if(this.policy.j)a:{try{o6l(this.N);this.cE.isManifestless&&this.policy.W&&uu(this.v6);if(sQU(this)&&this.pO&&!d6(this.pO)&&this.videoTrack.Df&&this.audioTrack.Df){this.jp("ssap",{delaysb:1,v:this.videoTrack.j.info.id,vf:this.videoTrack.j.info.PE,a:this.audioTrack.j.info.id, +af:this.audioTrack.j.info.PE});var h=this.pO,N=this.videoTrack.j,p=this.audioTrack.j;!d6(h)&&p&&N&&($j1(h,N.info,p.info,this.policy.Xy),v6S(this,h))}var P;((P=this.pO)==null?0:d6(P))&&this.CG();this.policy.j||pJ(this);PWx(this.N)}catch(e){g.QB(e);b=e;if(b.message.includes("changeType")){this.jp("ssap",{exp:b.name,msg:b.message,s:b.stack});break a}this.handleError("fmt.unplayable",{exp:b.name,msg:b.message,s:b.stack},1)}Z6H(this);g.be(this.CO)}else if(!this.cE.K||!rPK(this.videoTrack)&&!rPK(this.audioTrack)|| +(this.videoTrack.G||this.audioTrack.G)&&this.policy.SC?h=!1:(this.j1(),this.vE.seekTo(Infinity,{Cj:"checkLoaderTracksSync",gA:!0}),h=!0),!h){dmK(this);this.cE.isManifestless&&(iAl(this.videoTrack),iAl(this.audioTrack),uu(this.v6),(h=Uh(this.videoTrack))&&h.K&&(h=h.K.N&&!this.policy.QQ,this.jp(h===this.policy.L.Do?"strm":"strmbug",{strm:h,sfmp4:this.policy.L.Do,dfs:this.policy.QQ},!0)));if(this.pO)this.CG();else if(this.policy.X){var c;h=!1;if(this.policy.a7)for(N=g.z([this.videoTrack,this.audioTrack]), +p=N.next();!p.done;p=N.next()){P=p.value;for(p=Uh(P);p&&P.BK()!==aZ(P);p=Uh(P))P.Y3(p);h=h||!!p}else(b=Uh(this.videoTrack))&&this.videoTrack.Y3(b),(c=Uh(this.audioTrack))&&this.audioTrack.Y3(c);SQ(this.videoTrack)&&SQ(this.audioTrack)?this.logger.debug("Received all background data; disposing"):(b||c||h)&&wp(this)}pJ(this);vg(this.G,this.videoTrack,this.videoTrack.j,!1);vg(this.G,this.audioTrack,this.audioTrack.j,!1);this.policy.iE||n6K(this,this.videoTrack,this.audioTrack);nyl(this.G,this.videoTrack, +this.audioTrack);nyl(this.G,this.audioTrack,this.videoTrack);Z6H(this);this.J&&(b=this.J,b.X?(c=b.W+b.policy.U0,b.N||(c=Math.min(c,b.startTimeSecs+b.policy.HT)),b=Math.max(0,c*1E3-Date.now())):b=NaN,isNaN(b)||g.be(this.Xs,b));g.be(this.CO)}}; +g.k.gb=function(C){this.vE.gb(C)}; +g.k.CG=function(){var C=this;if(this.pO){var b=this.pO.j,h=this.pO.K;FNc(this,this.audioTrack);FNc(this,this.videoTrack);var N=BFW(this);if(N){if(this.policy.Zp){if(!b.yF()){var p=Uh(this.audioTrack);if(p){if(!ND(this,this.audioTrack,b,p.info))return;w7o(this,this.audioTrack,b,p)}}if(!h.yF()&&(p=Uh(this.videoTrack))){if(!ND(this,this.videoTrack,h,p.info))return;w7o(this,this.videoTrack,h,p)}}this.m2||(this.m2=(0,g.Ai)(),this.logger.debug(function(){return"Appends pause start "+C.m2+" reason "+N}), +this.policy.N&&this.jp("apdps",{r:N}))}else if(this.m2&&(TFo(this,this.m2),this.m2=0),Ia_(this),p=!1,this.policy.K&&il(this.videoTrack)||!g8V(this,this.videoTrack,h)||(p=!0,NdS(this.timing),jvU(this.timing)),this.pO&&!this.pO.nX()&&(this.policy.K&&il(this.audioTrack)||!g8V(this,this.audioTrack,b)||(p=!0,giW(this.timing),c4V(this.timing)),!this.HE()&&this.pO)){if(!this.policy.ob&&SQ(this.videoTrack)&&SQ(this.audioTrack)&&OO(this.pO)&&!this.pO.iY()){h=!1; +h=aZ(this.audioTrack);if(this.policy.K){var P;b=(P=this.Ib)==null?void 0:qV(P,h.c7*1E3);h=!(!b||b.clipId!==h.clipId);this.jp("ssap",{eos:h})}else P=h.j,h=P===this.cE.j[P.info.id];h&&(this.logger.debug("Setting EOS"),zil(this.pO),K0o(this.schedule))}p&&!this.pO.isAsync()&&wp(this)}}}; +g.k.CD=function(C){var b,h=C===((b=this.pO)==null?void 0:b.j)?this.audioTrack:this.videoTrack,N;(N=h.q2)==null||N.stop();var p;if((p=Uh(h))==null?0:p.isLocked){if(this.vE.Y().tZ()){var P;this.jp("eosl",{ounlock:(P=Uh(h))==null?void 0:P.info.RV()})}var c;ewW(this,C===((c=this.pO)==null?void 0:c.j))}var e;if(this.policy.pK&&C===((e=this.pO)==null?void 0:e.j)&&this.kh){b=this.kh-this.getCurrentTime();var L;this.vE.jp("asl",{l:b,xtag:(L=aZ(this.audioTrack))==null?void 0:L.j.info.j});this.Yh=!1;this.kh= +0}C.iR()&&C.P7().length===0&&(C.MI(),this.pO&&!this.pO.iR()&&(this.vE.Y().tZ()&&this.vE.jp("rms",{ld:"seek"}),this.pO.W=performance.now(),this.vE.Xx(),this.vE.Y().tZ()&&g.be(this.AZ)));var Z;(Z=h.V)!=null&&nC(Z,0);this.policy.zi&&this.policy.VC&&this.pO&&(h=C.ZA())&&h.b1()&&!pI(C.P7(),Math.min(h.c7+jq,h.cF))&&this.jp("sbunb",{st:h.c7,et:h.cF});this.policy.Xs?dI(this):this.r9()}; +g.k.PsD=function(C){if(this.pO){var b=aZ(C===this.pO.j?this.audioTrack:this.videoTrack);if(C=C.Pz())for(var h=0;hthis.N&&(this.N=h,g.yT(this.j)||(this.j={},this.X.stop(),this.K.stop())),this.j[b]=C,g.be(this.K))}}; +eq.prototype.G=function(){for(var C=g.z(Object.keys(this.j)),b=C.next();!b.done;b=C.next()){var h=b.value;b=this.publish;for(var N=this.N,p=this.j[h].match(Qh),P=[],c=g.z(p[6].split("&")),e=c.next();!e.done;e=c.next())e=e.value,e.indexOf("cpi=")===0?P.push("cpi="+N.toString()):e.indexOf("ek=")===0?P.push("ek="+g.Bh(h)):P.push(e);p[6]="?"+P.join("&");h="skd://"+p.slice(2).join("");p=h.length*2;N=new Uint8Array(p+4);N[0]=p%256;N[1]=(p-N[0])/256;for(p=0;p0)for(var h=g.z(this.j),N=h.next();!N.done;N=h.next())if(b===N.value.info.cryptoPeriodIndex){b=!0;break a}b=!1}if(!b){b=(0,g.Ai)();a:{h=C.cryptoPeriodIndex;if(!isNaN(h)){N=g.z(this.N.values());for(var p=N.next();!p.done;p=N.next())if(Math.abs(p.value.cryptoPeriodIndex-h)<=1){h=!0;break a}}h=!1}h?(h=C.j,h=Math.max(0,Math.random()*((isNaN(h)?120:h)-30))*1E3):h=0;this.publish("log_qoe",{wvagt:"delay."+h,cpi:C.cryptoPeriodIndex,reqlen:this.j.length, +ignore:this.X});h<=0?H6W(this,C):this.X||(this.j.push({time:b+h,info:C}),g.be(this.K,h))}}; +LJ.prototype.wO=function(){this.j=[];kO.prototype.wO.call(this)};var oP={},fSx=(oP.DRM_TRACK_TYPE_AUDIO="AUDIO",oP.DRM_TRACK_TYPE_SD="SD",oP.DRM_TRACK_TYPE_HD="HD",oP.DRM_TRACK_TYPE_UHD1="UHD1",oP);g.S(qvl,g.O);g.S(yE_,g.cr);g.k=yE_.prototype;g.k.lx=function(C){var b=this;this.HE()||C.size<=0||(C.forEach(function(h,N){var p=mY(b.K)?N:h;N=new Uint8Array(mY(b.K)?h:N);mY(b.K)&&n8_(N);h=g.$s(N,4);n8_(N);N=g.$s(N,4);b.j[h]?b.j[h].status=p:b.j[N]?b.j[N].status=p:b.j[h]={type:"",status:p}}),v81(this,","),Z9(this,{onkeystatuschange:1}),this.status="kc",this.publish("keystatuseschange",this))}; +g.k.error=function(C,b,h,N){this.HE()||(this.publish("licenseerror",C,b,h,N),C==="drm.provision"&&(C=(Date.now()-this.W)/1E3,this.W=NaN,this.publish("ctmp","provf",{et:C.toFixed(3)})));qw(b)&&this.dispose()}; +g.k.shouldRetry=function(C,b){return this.sX&&this.J?!1:!C&&this.requestNumber===b.requestNumber}; +g.k.wO=function(){this.j={};g.cr.prototype.wO.call(this)}; +g.k.jf=function(){var C={ctype:this.V.contentType||"",length:this.V.initData.length,requestedKeyIds:this.q2,cryptoPeriodIndex:this.cryptoPeriodIndex};this.N&&(C.keyStatuses=this.j);return C}; +g.k.getInfo=function(){var C=this.X.join();if(YO(this)){var b=new Set,h;for(h in this.j)this.j[h].status!=="usable"&&b.add(this.j[h].type);C+="/UKS."+Array.from(b)}return C+="/"+this.cryptoPeriodIndex}; +g.k.p9=function(){return this.url};g.S(a_,g.O);g.k=a_.prototype;g.k.bK=function(C){if(this.G){var b=C.messageType||"license-request";this.G(new Uint8Array(C.message),b)}}; +g.k.lx=function(){this.J&&this.J(this.j.keyStatuses)}; +g.k.onClosed=function(){this.HE()||g.dJ("xboxone")&&this.N&&this.N("closed")}; +g.k.Ht=function(C){this.G&&this.G(C.message,"license-request")}; +g.k.Ds=function(C){if(this.N){if(this.K){var b=this.K.error.code;C=this.K.error.systemCode}else b=C.errorCode,C=C.systemCode;this.N("t.prefixedKeyError;c."+b+";sc."+C,b,C)}}; +g.k.El=function(){this.W&&this.W()}; +g.k.update=function(C){var b=this;if(this.j)return(Oy.isActive()?Oy.LT("emeupd",function(){return b.j.update(C)}):this.j.update(C)).then(null,Zp(function(h){T9l(b,"t.update",h)})); +this.K?this.K.update(C):this.element.addKey?this.element.addKey(this.L.keySystem,C,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.L.keySystem,C,this.initData,this.sessionId);return Rf()}; +g.k.wO=function(){this.j&&(this.V?this.j.close().catch(g.QB):this.j.close());this.element=null;g.O.prototype.wO.call(this)};g.S(lT,g.O);g.k=lT.prototype;g.k.SI=function(){var C=this;if(this.j.keySystemAccess)return(Oy.isActive()?Oy.LT("emenew",function(){return C.j.keySystemAccess.createMediaKeys()}):this.j.keySystemAccess.createMediaKeys()).then(function(h){if(!C.HE())if(C.K=h,Oy.isActive())Oy.LT("emeset",function(){return C.element.setMediaKeys(h)}); +else{var N;(N=C.element)==null||N.setMediaKeys(h)}}); +if(qE(this.j))this.N=new (ME())(this.j.keySystem);else if(fA(this.j)){this.N=new (ME())(this.j.keySystem);var b;(b=this.element)==null||b.webkitSetMediaKeys(this.N)}else Oy.isActive()&&this.jp("emev",{v:"01b"}),yJ(this.G,this.element,["keymessage","webkitkeymessage"],this.SY),yJ(this.G,this.element,["keyerror","webkitkeyerror"],this.uK),yJ(this.G,this.element,["keyadded","webkitkeyadded"],this.iK);return null}; +g.k.setServerCertificate=function(){return this.K.setServerCertificate?this.j.flavor==="widevine"&&this.j.HT?this.K.setServerCertificate(this.j.HT):yZ(this.j)&&this.j.Yh?this.K.setServerCertificate(this.j.Yh):null:null}; +g.k.createSession=function(C,b){var h=C.initData;if(this.j.keySystemAccess){b&&b("createsession");var N=this.K.createSession();AP(this.j)?h=B96(h,this.j.Yh):yZ(this.j)&&(h=zwU(h)||new Uint8Array(0));b&&b("genreq");var p=Oy.isActive()?Oy.LT("emegen",function(){return N.generateRequest(C.contentType,h)}):N.generateRequest(C.contentType,h); +var P=new a_(null,null,null,N,null,this.J);p.then(function(){b&&b("genreqsuccess")},Zp(function(e){T9l(P,"t.generateRequest",e)})); +return P}if(qE(this.j))return xFc(this,h);if(fA(this.j))return IS_(this,h);if((p=this.element)==null?0:p.generateKeyRequest)this.element.generateKeyRequest(this.j.keySystem,h);else{var c;(c=this.element)==null||c.webkitGenerateKeyRequest(this.j.keySystem,h)}return this.X=new a_(this.element,this.j,h,null,null,this.J)}; +g.k.SY=function(C){var b=wTc(this,C);b&&b.Ht(C)}; +g.k.uK=function(C){var b=wTc(this,C);b&&b.Ds(C)}; +g.k.iK=function(C){var b=wTc(this,C);b&&b.El(C)}; +g.k.getMetrics=function(){if(this.K&&this.K.getMetrics)try{var C=this.K.getMetrics()}catch(b){}return C}; +g.k.wO=function(){this.N=this.K=null;var C;(C=this.X)==null||C.dispose();C=g.z(Object.values(this.W));for(var b=C.next();!b.done;b=C.next())b.value.dispose();this.W={};g.O.prototype.wO.call(this);delete this.element};g.k=o_.prototype;g.k.get=function(C){C=this.findIndex(C);return C!==-1?this.values[C]:null}; +g.k.remove=function(C){C=this.findIndex(C);C!==-1&&(this.keys.splice(C,1),this.values.splice(C,1))}; +g.k.removeAll=function(){this.keys=[];this.values=[]}; +g.k.set=function(C,b){var h=this.findIndex(C);h!==-1?this.values[h]=b:(this.keys.push(C),this.values.push(b))}; +g.k.findIndex=function(C){return g.Id(this.keys,function(b){return g.Zu(C,b)})};g.S(hyl,g.cr);g.k=hyl.prototype;g.k.Doh=function(C){this.QX({onecpt:1});C.initData&&pgl(this,new Uint8Array(C.initData),C.initDataType)}; +g.k.Pfh=function(C){this.QX({onndky:1});pgl(this,C.initData,C.contentType)}; +g.k.HO=function(C){this.QX({onneedkeyinfo:1});this.If.D("html5_eme_loader_sync")&&(this.J.get(C.initData)||this.J.set(C.initData,C));gcW(this,C)}; +g.k.ph=function(C){this.N.push(C);F8(this)}; +g.k.createSession=function(C){var b=jZH(this)?TdH(C):g.$s(C.initData);this.K.get(b);this.q2=!0;C=new yE_(this.videoData,this.If,C,this.drmSessionId);this.K.set(b,C);C.subscribe("ctmp",this.H_,this);C.subscribe("keystatuseschange",this.lx,this);C.subscribe("licenseerror",this.c_,this);C.subscribe("newlicense",this.Wt,this);C.subscribe("newsession",this.oy,this);C.subscribe("sessionready",this.pM,this);C.subscribe("fairplay_next_need_key_info",this.nM,this);this.If.D("html5_enable_vp9_fairplay")&&C.subscribe("qualitychange", +this.Nn,this);this.If.D("html5_enable_sabr_drm_hd720p")&&C.subscribe("sabrlicenseconstraint",this.SGf,this);u5W(C,this.X)}; +g.k.Wt=function(C){this.HE()||(this.QX({onnelcswhb:1}),C&&!this.heartbeatParams&&(this.heartbeatParams=C,this.publish("heartbeatparams",C)))}; +g.k.oy=function(){this.HE()||(this.QX({newlcssn:1}),this.N.shift(),this.q2=!1,F8(this))}; +g.k.pM=function(){if(qE(this.j)&&(this.QX({onsnrdy:1}),this.Df--,this.Df===0)){var C=this.KO,b,h;(b=C.element)==null||(h=b.msSetMediaKeys)==null||h.call(b,C.N)}}; +g.k.lx=function(C){if(!this.HE()){!this.Qz&&this.videoData.D("html5_log_drm_metrics_on_key_statuses")&&(c7o(this),this.Qz=!0);this.QX({onksch:1});var b=this.Nn;if(!YO(C)&&g.BG&&C.K.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var h="large";else{h=[];var N=!0;if(YO(C))for(var p=g.z(Object.keys(C.j)),P=p.next();!P.done;P=p.next())P=P.value,C.j[P].status==="usable"&&h.push(C.j[P].type),C.j[P].status!=="unknown"&&(N=!1);if(!YO(C)||N)h=C.X;h=O6c(h)}b.call(this,h);this.publish("keystatuseschange", +C)}}; +g.k.H_=function(C,b){this.HE()||this.publish("ctmp",C,b)}; +g.k.nM=function(C,b){this.HE()||this.publish("fairplay_next_need_key_info",C,b)}; +g.k.c_=function(C,b,h,N){this.HE()||(this.videoData.D("html5_log_drm_metrics_on_error")&&c7o(this),this.publish("licenseerror",C,b,h,N))}; +g.k.cC=function(){return this.L}; +g.k.Nn=function(C){var b=g.T0("auto",C,!1,"l");if(this.videoData.n5){if(this.L.y8(b))return}else if(XZc(this.L,C))return;this.L=b;this.publish("qualitychange");this.QX({updtlq:C})}; +g.k.SGf=function(C){this.videoData.sabrLicenseConstraint=C}; +g.k.wO=function(){this.j.keySystemAccess&&this.element&&(this.nO?this.element.setMediaKeys(null).catch(g.QB):this.element.setMediaKeys(null));this.element=null;this.N=[];for(var C=g.z(this.K.values()),b=C.next();!b.done;b=C.next())b=b.value,b.unsubscribe("ctmp",this.H_,this),b.unsubscribe("keystatuseschange",this.lx,this),b.unsubscribe("licenseerror",this.c_,this),b.unsubscribe("newlicense",this.Wt,this),b.unsubscribe("newsession",this.oy,this),b.unsubscribe("sessionready",this.pM,this),b.unsubscribe("fairplay_next_need_key_info", +this.nM,this),this.If.D("html5_enable_vp9_fairplay")&&b.unsubscribe("qualitychange",this.Nn,this),b.dispose();this.K.clear();this.W.removeAll();this.J.removeAll();this.heartbeatParams=null;g.cr.prototype.wO.call(this)}; +g.k.jf=function(){for(var C={systemInfo:this.j.jf(),sessions:[]},b=g.z(this.K.values()),h=b.next();!h.done;h=b.next())C.sessions.push(h.value.jf());return C}; +g.k.getInfo=function(){return this.K.size<=0?"no session":""+this.K.values().next().value.getInfo()+(this.G?"/KR":"")}; +g.k.QX=function(C,b){b=b===void 0?!1:b;this.HE()||(VX(C),(this.If.tZ()||b)&&this.publish("ctmp","drmlog",C))};g.S(YgH,g.O);g.k=YgH.prototype;g.k.N1=function(){return!!this.Kx}; +g.k.kB=function(){return this.K}; +g.k.handleError=function(C){var b=this;Sg_(this,C);if((C.errorCode!=="html5.invalidstate"&&C.errorCode!=="fmt.unplayable"&&C.errorCode!=="fmt.unparseable"||!G1S(this,C.errorCode,C.details))&&!VQ1(this,C)){if(this.Rf.KO!=="yt"&&zyx(this,C)&&this.videoData.XG&&(0,g.Ai)()/1E3>this.videoData.XG&&this.Rf.KO==="hm"){var h=Object.assign({e:C.errorCode},C.details);h.stalesigexp="1";h.expire=this.videoData.XG;h.init=this.videoData.Ro/1E3;h.now=(0,g.Ai)()/1E3;h.systelapsed=((0,g.Ai)()-this.videoData.Ro)/1E3; +C=new Mw(C.errorCode,h,2);this.vE.u3(C.errorCode,2,"SIGNATURE_EXPIRED",VX(C.details))}if(qw(C.severity)){var N;h=(N=this.vE.Xo)==null?void 0:N.j.j;if(this.Rf.D("html5_use_network_error_code_enums"))if($ic(C)&&h&&h.isLocked())var p="FORMAT_UNAVAILABLE";else if(this.Rf.W||C.errorCode!=="auth"||C.details.rc!==429)C.errorCode==="ump.spsrejectfailure"&&(p="HTML5_SPS_UMP_STATUS_REJECTED");else{p="TOO_MANY_REQUESTS";var P="6"}else $ic(C)&&h&&h.isLocked()?p="FORMAT_UNAVAILABLE":this.Rf.W||C.errorCode!=="auth"|| +C.details.rc!=="429"?C.errorCode==="ump.spsrejectfailure"&&(p="HTML5_SPS_UMP_STATUS_REJECTED"):(p="TOO_MANY_REQUESTS",P="6");this.vE.u3(C.errorCode,C.severity,p,VX(C.details),P)}else this.vE.publish("nonfatalerror",C),N=/^pp/.test(this.videoData.clientPlaybackNonce),this.zE(C.errorCode,C.details),N&&C.errorCode==="manifest.net.connect"&&(C="https://www.youtube.com/generate_204?cpn="+this.videoData.clientPlaybackNonce+"&t="+(0,g.Ai)(),FN(C,"manifest",function(c){b.W=!0;b.jp("pathprobe",c)},function(c){b.zE(c.errorCode, +c.details)}))}}; +g.k.jp=function(C,b){this.vE.CJ().jp(C,b)}; +g.k.zE=function(C,b){b=VX(b);this.vE.CJ().zE(C,b)};mix.prototype.sO=function(C,b){return(b===void 0?0:b)?{Au:C?$O(this,C):RQ,qf:C?QZK(this,C):RQ,N06:C?uAW(this,C):RQ,w2h:C?vcS(this,C.videoData):RQ,mz:C?Dic(this,C.videoData,C):RQ,ZXo:C?ifl(this,C):RQ,d9O:y7l(this)}:{Au:C?$O(this,C):RQ}}; +mix.prototype.D=function(C){return this.If.D(C)};g.S(zG,g.O);zG.prototype.onError=function(C){if(C!=="player.fatalexception"||this.provider.D("html5_exception_to_health"))C==="sabr.fallback"&&(this.encounteredSabrFallback=!0),C.match(dA0)?this.networkErrorCount++:this.nonNetworkErrorCount++}; +zG.prototype.send=function(){if(!(this.N||this.j<0)){EcU(this);var C=g.HO(this.provider)-this.j,b="PLAYER_PLAYBACK_STATE_UNKNOWN",h=this.playerState.N9;this.playerState.isError()?b=h&&h.errorCode==="auth"?"PLAYER_PLAYBACK_STATE_UNKNOWN":"PLAYER_PLAYBACK_STATE_ERROR":g.B(this.playerState,2)?b="PLAYER_PLAYBACK_STATE_ENDED":g.B(this.playerState,64)?b="PLAYER_PLAYBACK_STATE_UNSTARTED":g.B(this.playerState,16)||g.B(this.playerState,32)?b="PLAYER_PLAYBACK_STATE_SEEKING":g.B(this.playerState,1)&&g.B(this.playerState, +4)?b="PLAYER_PLAYBACK_STATE_PAUSED_BUFFERING":g.B(this.playerState,1)?b="PLAYER_PLAYBACK_STATE_BUFFERING":g.B(this.playerState,4)?b="PLAYER_PLAYBACK_STATE_PAUSED":g.B(this.playerState,8)&&(b="PLAYER_PLAYBACK_STATE_PLAYING");h=UA0[aD(this.provider.videoData)];a:switch(this.provider.If.playerCanaryState){case "canary":var N="HTML5_PLAYER_CANARY_TYPE_EXPERIMENT";break a;case "holdback":N="HTML5_PLAYER_CANARY_TYPE_CONTROL";break a;default:N="HTML5_PLAYER_CANARY_TYPE_UNSPECIFIED"}var p=ncH(this.provider), +P=this.K<0?C:this.K-this.j;C=this.provider.If.Fy+36E5<(0,g.Ai)();b={started:this.K>=0,stateAtSend:b,joinLatencySecs:P,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:N,playerCanaryStage:p,isAd:this.provider.videoData.isAd(),liveMode:h,hasDrm:!!g.ZS(this.provider.videoData),isGapless:this.provider.videoData.L,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, +encounteredSabrFallback:this.encounteredSabrFallback,isSabr:x6(this.provider.videoData)};C||g.en("html5PlayerHealthEvent",b);this.N=!0;this.dispose()}}; +zG.prototype.wO=function(){this.N||this.send();window.removeEventListener("error",this.GT);window.removeEventListener("unhandledrejection",this.GT);g.O.prototype.wO.call(this)}; +var dA0=/\bnet\b/;g.S(TIK,g.O);TIK.prototype.wO=function(){Ii6(this);g.O.prototype.wO.call(this)};var xiU=/[?&]cpn=/;g.S(Vn,g.O);Vn.prototype.flush=function(){var C={};this.K&&(C.pe=this.K);this.j.length>0&&(C.pt=this.j.join("."));this.j=[];return C}; +Vn.prototype.stop=function(){var C=this,b,h,N;return g.R(function(p){if(p.j==1)return g.z6(p,2),g.J(p,(b=C.X)==null?void 0:b.stop(),4);if(p.j!=2)return(h=p.K)&&C.logTrace(h),g.VH(p,0);N=g.MW(p);C.K=pfl(N.message);g.$_(p)})}; +Vn.prototype.logTrace=function(C){this.encoder.reset();this.encoder.add(1);this.encoder.add(C.resources.length);for(var b=g.z(C.resources),h=b.next();!h.done;h=b.next()){h=h.value.replace("https://www.youtube.com/s/","");this.encoder.add(h.length);for(var N=0;N=0?C:g.HO(this.provider),["PL","B","S"].indexOf(this.TM)>-1&&(!g.yT(this.j)||C>=this.G+30)&&(g.mQ(this,C,"vps",[this.TM]),this.G=C),!g.yT(this.j))){this.sequenceNumber===7E3&&g.QB(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){A2(this,C);var b=this.provider.vE.Gz();b=g.z(b);for(var h=b.next();!h.done;h=b.next())h=h.value,this.jp(h.key,h.value);b=C;h=this.provider.vE.Qs();var N=h.droppedVideoFrames||0,p=h.totalVideoFrames|| +0,P=N-this.iZ,c=p&&!this.uZ;N>h.totalVideoFrames||P>5E3?GhW(this,"html5.badframedropcount","df."+N+";tf."+h.totalVideoFrames):(P>0||c)&&g.mQ(this,b,"df",[P]);this.iZ=N;this.uZ=p;this.V>0&&(g.mQ(this,C,"glf",[this.V]),this.V=0);bL.isActive()&&(C=bL.Bw(),Object.keys(C).length>0&&this.jp("profile",C));this.G$&&yn(this,"lwnmow");this.provider.If.tZ()&&this.provider.D("html5_record_now")&&this.jp("now",{wt:(0,g.Ai)()});C={};this.provider.videoData.K&&(C.fmt=this.provider.videoData.K.itag,(b=this.provider.videoData.X)&& +b.itag!==C.fmt&&(C.afmt=b.itag));C.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(C.adcpn=this.adCpn);this.KO&&(C.addocid=this.KO);this.contentCpn&&(C.ccpn=this.contentCpn);this.nO&&(C.cdocid=this.nO);this.provider.videoData.cotn&&(C.cotn=this.provider.videoData.cotn);C.el=f6(this.provider.videoData);C.content_v=u4(this.provider.videoData);C.ns=this.provider.If.KO;C.fexp=zal(this.provider.If.experiments).toString();C.cl=(725870172).toString();(b=this.provider.videoData.adFormat||this.adFormat)&& +(C.adformat=b);(b=aD(this.provider.videoData))&&(C.live=b);this.provider.videoData.o$()&&(C.drm=1,this.provider.videoData.G&&(C.drm_system=rxI[this.provider.videoData.G.flavor]||0),this.provider.videoData.ZT&&(C.drm_product=this.provider.videoData.ZT));eX()&&this.provider.videoData.W&&(C.ctt=this.provider.videoData.W,C.cttype=this.provider.videoData.KS,this.provider.videoData.mdxEnvironment&&(C.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(C.dai= +this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.zt&&(C.dai_fallback="1")):this.provider.videoData.v7?C.dai="cs":this.provider.videoData.BP&&(C.dai="disabled");C.seq=this.sequenceNumber++;if(this.provider.videoData.lJ){if(b=this.provider.videoData.lJ,C&&b)for(b.ns==="3pp"&&(C.ns="3pp"),this.w9.has(b.ns)&&yn(this,"hbps"),b.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=b.shbpslc),h=g.z(Object.keys(b)),N=h.next();!N.done;N=h.next())N=N.value,this.OU.has(N)|| +(C[N]=b[N])}else C.event="streamingstats",C.docid=this.provider.videoData.videoId,C.ei=this.provider.videoData.eventId;this.isEmbargoed&&(C.embargoed="1");Object.assign(C,this.provider.If.j);if(b=C.seq)b={cpn:this.provider.videoData.clientPlaybackNonce,sequenceNumber:+b,serializedWatchEndpointLoggingContext:this.provider.videoData.E9},this.serializedHouseBrandPlayerServiceLoggingContext&&(b.serializedHouseBrandPlayerServiceLoggingContext=H5(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0), +this.provider.videoData.playerResponseCpn&&(b.playerResponseCpn=this.provider.videoData.playerResponseCpn),qD.length&&(b.decoderInfo=qD),this.provider.vE.VP()&&(b.transitionStitchType=4,this.q2&&(b.timestampOffsetMsecs=this.q2)),this.remoteControlMode&&(b.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(b.remoteConnectedDevices=this.remoteConnectedDevices),b=g.PW(b,kkl),b=g.$s(b,4),this.j.qclc=[b];C=g.dt("//"+this.provider.If.xo+"/api/stats/qoe",C);h=b="";N=g.z(Object.keys(this.j)); +for(p=N.next();!p.done;p=N.next())p=p.value,this.j[p]===null?g.QB(new g.tJ("Stats report key has invalid value",p)):(p="&"+p+"="+this.j[p].join(","),p.length>100?h+=p:b+=p);anW(this,C+b,h.replace(/ /g,"%20"))}this.j={}}}; +g.k.W1=function(C){this.G$=C}; +g.k.jg=function(){if(this.provider.videoData.G){var C=this.provider.videoData.G;yn(this,"eme-"+(C.keySystemAccess?"final":qE(C)?"ms":AP(C)?"ytfp":fA(C)?"safarifp":"nonfinal"))}}; +g.k.Qk=function(C){var b=g.HO(this.provider);if(!this.provider.If.experiments.Fo("html5_refactor_sabr_video_format_selection_logging")||C.j.id!==this.t4){var h=[C.j.id,C.K,this.t4,C.reason];C.token&&h.push(C.token);g.mQ(this,b,"vfs",h);this.t4=C.j.id;h=this.provider.vE.getPlayerSize();if(h.width>0&&h.height>0){h=[Math.round(h.width),Math.round(h.height)];var N=g.Oa();N>1&&h.push(N);g.mQ(this,b,"view",h)}this.kh||(this.provider.If.tZ()&&yn(this,"rqs2"),this.provider.videoData.j&&N9(this.provider.videoData.j)&& +(this.j.preload=["1"]));this.N=this.kh=!0}C.reason==="m"&&++this.lF===100&&S$K(this,2);g.mQ(this,b,"vps",[this.TM]);this.reportStats(b)}; +g.k.WQ=function(C){var b=g.HO(this.provider);if(this.provider.If.experiments.Fo("html5_refactor_sabr_audio_format_selection_logging")){b=C.j;var h=[b.audio&&b.video?b.nz?b.nz:"":b.id];b.z$&&b.z$.id&&h.push(b.z$.id);b=h.join(";");b!==this.J&&(h=[b,this.J,C.reason],C.token&&h.push(C.token),g.mQ(this,g.HO(this.provider),"afs",h),this.J=b)}else C.j.id!==this.J&&(h=[C.j.id,this.J,C.reason],C.token&&h.push(C.token),g.mQ(this,b,"afs",h),this.J=C.j.id)}; +g.k.Kk=NW(55);g.k.eX=function(C){this.isEmbargoed=C}; +g.k.eq=NW(33);g.k.ke=NW(38);g.k.onPlaybackRateChange=function(C){var b=g.HO(this.provider);C&&C!==this.HW&&(g.mQ(this,b,"rate",[C]),this.HW=C);this.reportStats(b)}; +g.k.L5=NW(28);g.k.getPlayerState=function(C){if(g.B(C,128))return"ER";if(g.B(C,2048))return"B";if(g.B(C,512))return"SU";if(g.B(C,16)||g.B(C,32))return"S";if(C.isOrWillBePlaying()&&g.B(C,64))return"B";var b=WPd[jg(C)];g.m9(this.provider.If)&&b==="B"&&this.provider.vE.getVisibilityState()===3&&(b="SU");b==="B"&&g.B(C,4)&&(b="PB");return b}; +g.k.wO=function(){g.O.prototype.wO.call(this);g.$G(this.W);g.$G(this.Yg)}; +g.k.Gq=function(C){this.isOffline=C;g.mQ(this,g.HO(this.provider),"is_offline",[this.isOffline?"1":"0"])}; +g.k.jp=function(C,b,h){var N=this.j.ctmp||[],p=this.aL.indexOf(C)!==-1;p||this.aL.push(C);if(!h||!p){var P=typeof b!=="string"?VX(b):b;P=$d_(P);if(!h&&!/^t[.]/.test(P)){var c=g.HO(this.provider)*1E3;P="t."+c.toFixed()+";"+P}N.push(C+":"+P);this.logger.debug(function(){return"ctmp "+C+" "+P}); +this.j.ctmp=N;lnW(this);return c}}; +g.k.B1=function(C,b,h){this.X={Qe2:Number(this.jp("glrem",{nst:C.toFixed(),rem:b.toFixed(),ca:+h})),VK:C,wLp:b,isAd:h}}; +g.k.QC=function(C,b,h){g.mQ(this,g.HO(this.provider),"ad_playback",[C,b,h])}; +g.k.w4=function(C,b){var h=g.HO(this.provider)*1E3,N=this.j.daism||[];N.push("t."+h.toFixed(0)+";smw."+(C*1E3).toFixed(0)+";smo."+(b*1E3).toFixed(0));this.j.daism=N}; +g.k.resume=function(){var C=this;this.provider.If.tZ()&&this.jp("ssap",{qoesus:"0",vid:this.provider.videoData.videoId});isNaN(this.W)?oLl(this):this.W=g.Gu(function(){C.reportStats()},1E4)}; +var FC={},WPd=(FC[5]="N",FC[-1]="N",FC[3]="B",FC[0]="EN",FC[2]="PA",FC[1]="PL",FC[-1E3]="ER",FC[1E3]="N",FC),qD=[];Vpl.prototype.b_=function(){return this.j}; +Vpl.prototype.update=function(){if(this.J){var C=this.provider.vE.DB(this.provider.videoData.clientPlaybackNonce)||0,b=g.HO(this.provider);C>=this.provider.vE.getDuration()-.1&&(this.previouslyEnded=!0);if(C!==this.j||mdl(this,C,b)){var h;if(!(h=Cb-this.yr+2||mdl(this,C,b))){h=this.provider.vE.getVolume();var N=h!==this.V,p=this.provider.vE.isMuted()?1:0;p!==this.L?(this.L=p,h=!0):(!N||this.X>=0||(this.V=h,this.X=b),h=b-this.X,this.X>=0&&h>2?(this.X=-1,h=!0):h=!1)}h&&(uT(this),this.N= +C);this.yr=b;this.j=C}}};fnH.prototype.send=function(C){var b=this;if(!this.m6){var h=yz6(this),N=g.dt(this.uri,h);this.If.D("vss_through_gel_double")&&rzl(N);this.nO&&!this.If.D("html5_simplify_pings")?QgW(this,N):AzS(this,C).then(function(p){b.nO&&(p=p||{},p.method="POST",p.postParams={atr:b.attestationResponse});hKo(N,p,{token:b.KO,uw:b.Vz,mdxEnvironment:b.mdxEnvironment},b.If,C,b.q2,b.isFinal&&b.ge||b.sX||b.N&&b.Fy)}); +this.m6=!0}}; +fnH.prototype.K=function(C){C===void 0&&(C=NaN);return Number(C.toFixed(3)).toString()}; +var GP={},uwU=(GP.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,GP.LIVING_ROOM_APP_MODE_MAIN=1,GP.LIVING_ROOM_APP_MODE_KIDS=2,GP.LIVING_ROOM_APP_MODE_MUSIC=3,GP.LIVING_ROOM_APP_MODE_UNPLUGGED=4,GP.LIVING_ROOM_APP_MODE_GAMING=5,GP),Sh={},Jzl=(Sh.EMBEDDED_PLAYER_MODE_UNKNOWN=0,Sh.EMBEDDED_PLAYER_MODE_DEFAULT=1,Sh.EMBEDDED_PLAYER_MODE_PFP=2,Sh.EMBEDDED_PLAYER_MODE_PFL=3,Sh);g.S(Qn,g.O);g.k=Qn.prototype;g.k.PL=function(){this.j.update();ddS(this)&&(XfS(this),Kvc(this),this.Q7())}; +g.k.wO=function(){g.O.prototype.wO.call(this);KJ(this);Mpl(this.j)}; +g.k.jf=function(){return yz6(UL(this,"playback"))}; +g.k.Q7=function(){this.provider.videoData.J.eventLabel=f6(this.provider.videoData);this.provider.videoData.J.playerStyle=this.provider.If.playerStyle;this.provider.videoData.mu&&(this.provider.videoData.J.feature="pyv");this.provider.videoData.J.vid=this.provider.videoData.videoId;var C=this.provider.videoData.J;var b=this.provider.videoData;b=b.isAd()||!!b.mu;C.isAd=b}; +g.k.Uq=function(C){var b=UL(this,"engage");b.N2=C;return iwS(b,BpW(this.provider))};Tp6.prototype.isEmpty=function(){return this.endTime===this.startTime};OL.prototype.D=function(C){return this.If.D(C)}; +OL.prototype.getCurrentTime=function(C){if(this.D("html5_ssap_current_time_for_logging_refactor")){var b=this.vE.VP();if(b&&(C=C||b.pI()))return Pq(b,C)}else if(g.sF(this.videoData)){var h=this.vE.VP();if(h)return C=this.vE.getCurrentTime(),h=(((b=qV(h,C*1E3))==null?void 0:b.Uc)||0)/1E3,C-h}return this.vE.getCurrentTime()}; +OL.prototype.l3=function(C){if(this.D("html5_ssap_current_time_for_logging_refactor")){var b=this.vE.VP();if(b&&(C=C||b.pI()))return Pq(b,C)}else if(g.sF(this.videoData)){var h=this.vE.VP();if(h)return C=this.vE.l3(),h=(((b=qV(h,C*1E3))==null?void 0:b.Uc)||0)/1E3,C-h}return this.vE.l3()}; +var Inl={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.S(g.vO,g.O);g.k=g.vO.prototype;g.k.PL=function(){if(this.provider.videoData.enableServerStitchedDai&&this.jq){var C;(C=this.N.get(this.jq))==null||C.PL()}else this.j&&this.j.PL()}; +g.k.eX=function(C){this.qoe&&this.qoe.eX(C)}; +g.k.eq=NW(32);g.k.ke=NW(37);g.k.w4=function(C,b){this.qoe&&this.qoe.w4(C,b)}; +g.k.zE=function(C,b){this.qoe&&GhW(this.qoe,C,b);if(this.K)this.K.onError(C)}; +g.k.Qk=function(C){this.qoe&&this.qoe.Qk(C)}; +g.k.WQ=function(C){this.qoe&&this.qoe.WQ(C)}; +g.k.onPlaybackRateChange=function(C){if(this.qoe)this.qoe.onPlaybackRateChange(C);this.j&&uT(this.j.j)}; +g.k.Kk=NW(54);g.k.jp=function(C,b,h){this.qoe&&this.qoe.jp(C,b,h)}; +g.k.B1=function(C,b,h){this.qoe&&this.qoe.B1(C,b,h)}; +g.k.ZN=function(C){var b;(b=this.qoe)==null||b.ZN(C)}; +g.k.nH=function(C){var b;(b=this.qoe)==null||b.nH(C)}; +g.k.W1=function(C){this.qoe&&this.qoe.W1(C)}; +g.k.QC=function(C,b,h){this.qoe&&this.qoe.QC(C,b,h)}; +g.k.L5=NW(27);g.k.Bc=function(){if(this.qoe)return this.qoe.Bc()}; +g.k.jf=function(){if(this.provider.videoData.enableServerStitchedDai&&this.jq){var C,b;return(b=(C=this.N.get(this.jq))==null?void 0:C.jf())!=null?b:{}}return this.j?this.j.jf():{}}; +g.k.bP=function(){var C;return(C=this.qoe)==null?void 0:C.bP()}; +g.k.H1=function(C,b){var h;(h=this.qoe)==null||h.H1(C,b)}; +g.k.Uq=function(C){return this.j?this.j.Uq(C):function(){}}; +g.k.Q7=function(){this.j&&this.j.Q7()}; +g.k.getVideoData=function(){return this.provider.videoData}; +g.k.resume=function(){this.qoe&&this.qoe.resume()};g.S(d4,g.O); +d4.prototype.kc=function(C,b,h){if(this.j.has(C)){var N=this.j.get(C);if(b.videoId&&!xdK(N))this.K.jp("ssap",{rlc:C}),kGK(this,C);else return}if(!this.j.has(C)){N=new OL(b,this.If,this.vE);var p=Math.round(g.HO(this.K.provider)*1E3);N=new g.vO(N,p);xdK(N)||this.K.jp("nqv",{vv:b.videoId});p=this.K.getVideoData();this.j.set(C,N);if(N.qoe){var P=N.qoe,c=p.videoId||"";P.contentCpn=p.clientPlaybackNonce;P.nO=c}wf_(N);h===2&&(this.If.D("html5_log_ad_playback_docid")?(h=this.K,h.qoe&&(h=h.qoe,N=b.IV||"", +p=b.breakType||0,b=b.videoId||"",P=this.If.KO||"yt",g.mQ(h,g.HO(h.provider),"ad_playback",[C,N,p,b,P]))):this.K.QC(C,b.IV||"",b.breakType||0))}}; +d4.prototype.t5=function(C,b,h,N,p,P,c,e){if(C!==b){var L=this.CJ(C),Z=this.CJ(b),Y,a=C===((Y=L.getVideoData())==null?void 0:Y.clientPlaybackNonce),l;Y=b===((l=Z.getVideoData())==null?void 0:l.clientPlaybackNonce);var F;l=a?((F=L.getVideoData())==null?void 0:F.videoId)||"":"nvd";var G;F=Y?((G=Z.getVideoData())==null?void 0:G.videoId)||"":"nvd";a&&(L=L.qoe)!=null&&(iT(L,4,P?4:p?2:0,b,F,h),L.reportStats());Y&&(D9(Z),(b=Z.qoe)!=null&&(iT(b,4,P?5:p?3:1,C,l,N),b.reportStats()),hHS(Z,new g.YH(c,Z.TM)), +CTl(Z));e&&kGK(this,C)}}; +d4.prototype.CJ=function(C){C=C||this.jq;return this.j.get(C)||this.K};g.S(g.WO,g.O);g.k=g.WO.prototype; +g.k.A8=function(C,b){this.sync();b&&this.j.array.length>=2E3&&this.JK("captions",1E4);b=this.j;if(C.length>1&&C.length>b.array.length)b.array=b.array.concat(C),b.array.sort(b.j);else for(var h=g.z(C),N=h.next();!N.done;N=h.next())N=N.value,!b.array.length||b.j(N,b.array[b.array.length-1])>0?b.array.push(N):g.Ys(b.array,N,b.j);C=g.z(C);for(b=C.next();!b.done;b=C.next())b=b.value,b.namespace==="ad"&&this.X("ssap",{acrsid:b.getId(),acrsst:b.start,acrset:b.end,acrscpt:b.playerType});this.N=NaN;this.sync()}; +g.k.AR=function(C){C.length>1E4&&g.QB(new g.tJ("Over 10k cueRanges removal occurs with a sample: ",C[0]));if(!this.HE()){for(var b=g.z(C),h=b.next();!h.done;h=b.next())(h=h.value)&&h.namespace==="ad"&&this.X("ssap",{rcrid:h.getId(),rcst:h.start,rcet:h.end,rcpt:h.playerType});var N=new Set(C);this.K=this.K.filter(function(p){return!N.has(p)}); +oOc(this.j,N);this.sync()}}; +g.k.JK=function(C,b){var h=(isNaN(this.N)?g.B(this.W(),2)?0x8000000000000:this.V()*1E3:this.N)-b;b=this.l1().filter(function(N){return N.namespace===C&&N.endthis.j,P=g.B(h,8)&&g.B(h,16),c=this.vE.u5().isBackground()||h.isSuspended();Ng(this,this.zi,P&&!c,p,"qoe.slowseek",function(){},"timeout"); +var e=isFinite(this.j);e=P&&e&&AMc(b,this.j);var L=!N||Math.abs(N-this.j)>10,Z=this.If.D("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),Y=N===0&&this.K&&[11,10].includes(this.K);Ng(this,this.Vz,e&&L&&!c&&(!Z||!Y),p,"qoe.slowseek",function(){b.seekTo(C.j)},"set_cmt"); +L=e&&pI(b.XX(),this.j);var a=this.vE.Xo;e=!a||a.Ct();var l=function(){b.seekTo(C.j+.001)}; +Ng(this,this.t4,L&&e&&!c,p,"qoe.slowseek",l,"jiggle_cmt");e=function(){return C.vE.B6()}; +Ng(this,this.m6,L&&!c,p,"qoe.slowseek",e,"new_elem");L=PF(h);Z=h.isBuffering();var F=b.XX(),G=g6(F,N),V=G>=0&&F.end(G)>N+5,q=L&&Z&&V;Y=this.vE.getVideoData();Ng(this,this.CO,N<.002&&this.j<.002&&P&&g.m9(this.If)&&g.AE(Y)&&!c,p,"qoe.slowseek",e,"slow_seek_shorts");Ng(this,this.KO,Y.Yw()&&P&&!c&&!Y.nO,p,"qoe.slowseek",e,"slow_seek_gapless_shorts");Ng(this,this.nO,q&&!c,L&&!Z,"qoe.longrebuffer",l,"jiggle_cmt");Ng(this,this.q2,q&&!c,L&&!Z,"qoe.longrebuffer",e,"new_elem_nnr");if(a){var f=a.getCurrentTime(); +P=b.Ce();P=oH1(P,f);P=!a.isSeeking()&&N===P;Ng(this,this.Yg,L&&Z&&P&&!c,L&&!Z&&!P,"qoe.longrebuffer",function(){b.seekTo(f)},"seek_to_loader")}P={}; +l=g6(F,Math.max(N-3.5,0));q=l>=0&&N>F.end(l)-1.1;var y=l>=0&&l+1=0&&q&&y<11;P.close2edge=q;P.gapsize=y;P.buflen=F.length;this.K&&(P.seekSour=this.K);if(l=this.vE.VP()){q=l.pI();y=q!==qV(l,N*1E3).clipId;var u=g.Zc(this.If.experiments,"html5_ssap_skip_seeking_offset_ms"),K=(MV(l,q)+u)/1E3;Ng(this,this.Qz,y&&L&&Z&&!c,L&&!Z,"qoe.longrebuffer",function(){b.seekTo(K)},"ssap_clip_not_match")}Ng(this,this.sX,L&&Z&&!c,L&&!Z,"qoe.longrebuffer", +function(){},"timeout",P); +P=h.isSuspended();P=this.vE.zJ()&&!P;Ng(this,this.J,P,!P,"qoe.start15s",function(){C.vE.HL("ad")},"ads_preroll_timeout"); +l=N-this.X<.5;var v;P=!((v=this.vE.VP())==null||!v.tR());y=(q=Y.isAd()||P&&this.If.experiments.Fo("html5_ssap_skip_slow_ad"))&&L&&!Z&&l;v=function(){var T=C.vE,t=g.sF(T.videoData)&&T.Ib,go=T.bf.getVideoData();(go&&T.videoData.isAd()&&go.v7===T.getVideoData().v7||!T.videoData.vL)&&!t?T.u3("ad.rebuftimeout",2,"RETRYABLE_ERROR","skipslad.vid."+T.videoData.videoId):hE(T.videoData,"html5_ssap_skip_slow_ad")&&t&&T.Ib.tR()&&(T.zE(new Mw("ssap.transitionfailure",{cpn:qV(T.Ib,T.l3()).clipId,pcpn:T.Ib.pI(), +cmt:T.l3()})),T=T.Ib,t=T.playback.l3(),(t=pi1(T,t))&&CMc(T,t.tT()/1E3))}; +Ng(this,this.sI,y,!y,"ad.rebuftimeout",v,"skip_slow_ad");l=q&&Z&&pI(b.XX(),N+5)&&l;Ng(this,this.G$,l&&!c,!l,"ad.rebuftimeout",v,"skip_slow_ad_buf");v=h.isOrWillBePlaying()&&g.B(h,64)&&!c;Ng(this,this.ob,v,p,"qoe.start15s",function(){},"timeout"); +v=!!a&&!a.pO&&h.isOrWillBePlaying();Ng(this,this.Df,v,p,"qoe.start15s",e,"newElemMse");v=c6(F,0);l=g.B(h,16)||g.B(h,32);l=!c&&h.isOrWillBePlaying()&&Z&&!l&&(g.B(h,64)||N===0)&&v>5;Ng(this,this.kh,g.AE(Y)&&l,L&&!Z,"qoe.longrebuffer",function(){C.vE.xd()},"reset_media_source"); +Ng(this,this.Yh,g.AE(Y)&&l,L&&!Z,"qoe.longrebuffer",e,"reset_media_element");this.X===0&&(this.W=N);l=Z&&this.j===0&&N>1&&N===this.W;Ng(this,this.rO,g.AE(Y)&&l,L&&!Z,"qoe.slowseek",function(){b.seekTo(0)},"reseek_after_time_jump"); +c=h.isOrWillBePlaying()&&!c;V=this.vE.CB()-N<6&&!V&&this.vE.VM();Ng(this,this.L,Y.Yw()&&c&&Z&&V,L&&!Z,"qoe.longrebuffer",function(){C.vE.B6(!1,!0)},"handoff_end_long_buffer_reload"); +a=(a==null?void 0:Sv1(a))||NaN;a=F.length>1||!isNaN(a)&&a-.1<=N;Ng(this,this.V,Tt(Y)&&c&&Z&&a,L&&!Z,"qoe.longrebuffer",e,"gapless_slice_append_stuck");a=G>=0&&F.end(G)>=2;c=Tt(Y)&&this.vE.JB&&a&&!Y.nO&&c&&(Z||g.B(h,8)&&g.B(h,16));Ng(this,this.N2,c,p,"qoe.start15s",e,"gapless_slow_start");h=!!(P&&v>5&&h.isPlaying()&&N<.1);Ng(this,this.SC,h,N>.5&&L,"qoe.longrebuffer",e,"ssap_stuck_in_ad_beginning");this.X=N;this.G.start()}}; +hn.prototype.zE=function(C,b,h){b=this.jf(b);b.wn=h;b.wdup=this.N[C]?"1":"0";this.vE.zE(new Mw(C,b));this.N[C]=!0}; +hn.prototype.jf=function(C){C=Object.assign(this.vE.jf(!0),C.jf());this.j&&(C.stt=this.j.toFixed(3));this.vE.getVideoData().isLivePlayback&&(C.ct=this.vE.getCurrentTime().toFixed(3),C.to=this.vE.Z9().toFixed(3));delete C.uga;delete C.euri;delete C.referrer;delete C.fexp;delete C.vm;return C}; +Ca.prototype.reset=function(){this.j=this.K=this.N=this.startTimestamp=0;this.X=!1}; +Ca.prototype.test=function(C){if(!this.G||this.K)return!1;if(!C)return this.reset(),!1;C=(0,g.Ai)();if(!this.startTimestamp)this.startTimestamp=C,this.N=0;else if(this.N>=this.G)return this.K=C,!0;this.N+=1;return!1}; +Ca.prototype.jf=function(){var C={},b=(0,g.Ai)();this.startTimestamp&&(C.wsd=(b-this.startTimestamp).toFixed());this.K&&(C.wtd=(b-this.K).toFixed());this.j&&(C.wssd=(b-this.j).toFixed());return C};g.S(UD_,g.O);g.k=UD_.prototype;g.k.setMediaElement=function(C){(this.mediaElement=C)?(this.mediaElement&&(this.G||this.X||!this.mediaElement.D5()||this.seekTo(.01,{Cj:"seektimeline_setupMediaElement"})),gT(this)):PY(this)}; +g.k.getCurrentTime=function(){if(pa(this.vE)){if(!isNaN(this.K))return this.K}else if(!isNaN(this.K)&&isFinite(this.K))return this.K;return this.mediaElement&&B4V(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.X||0}; +g.k.td=function(){return this.Yh}; +g.k.l3=function(){return this.getCurrentTime()-this.Z9()}; +g.k.lN=function(){return this.j?this.j.lN():Infinity}; +g.k.isAtLiveHead=function(C){if(!this.j)return!1;C===void 0&&(C=this.getCurrentTime());return xO(this.j,C)}; +g.k.Dt=function(){return!!this.j&&this.j.Dt()}; +g.k.seekTo=function(C,b){var h=b===void 0?{}:b;b=h.qC===void 0?!1:h.qC;var N=h.kQ===void 0?0:h.kQ;var p=h.z0===void 0?!1:h.z0;var P=h.S0===void 0?0:h.S0;var c=h.Cj===void 0?"":h.Cj;var e=h.seekSource===void 0?void 0:h.seekSource;var L=h.gA===void 0?!1:h.gA;var Z=h.vY===void 0?!1:h.vY;h=h.sJ===void 0?!1:h.sJ;L&&(C+=this.Z9());x6(this.videoData)&&this.D("html5_sabr_enable_utc_seek_requests")&&e===29&&(this.Yh=void 0);L=C=this.J8())||!g.SM(this.videoData),Y||(V={st:V,mst:this.J8()},this.j&&this.D("html5_high_res_seek_logging")&&(V.ht=this.j.lN(),V.adft=y26(this.j)),this.vE.jp("seeknotallowed",V)),V=Y));if(!V)return this.N&&(this.N=null,tqW(this)),g.Gp(this.getCurrentTime());V=.005;Z&&this.D("html5_sabr_seek_no_shift_tolerance")&&(V=0);if(Math.abs(C-this.K)<=V&&this.N2)return this.G;c&&(V=C,(this.If.tZ()||this.D("html5_log_seek_reasons"))&& +this.vE.jp("seekreason",{reason:c,tgt:V}));e&&(this.q2.K=e);this.N2&&PY(this);this.G||(this.G=new nI);C&&!isFinite(C)&&OJ_(this,!1);(c=h||L)||(c=C,c=!(this.videoData.isLivePlayback&&this.videoData.N&&!this.videoData.N.j&&!(this.mediaElement&&this.mediaElement.qZ()>0&&TF(this.mediaElement)>0)||g9(this.videoData)&&this.Mo()===this.J8(!1)?0:isFinite(c)||!g9(this.videoData)));c||(C=cY(this,C,p));C&&!isFinite(C)&&OJ_(this,!1);this.X=C;this.t4=P;this.K=C;this.V=0;this.j&&(p=this.j,P=C,r2c(p,P,!1),iJl(p, +P));p=this.vE;P=C;c={qC:b,seekSource:e};p.Jk.X=P;h=p.XA;h.mediaTime=P;h.j=!0;c.qC&&p.T_(c);c=P>p.videoData.endSeconds&&P>p.videoData.limitedPlaybackDurationInSeconds;p.f$&&c&&isFinite(P)&&AnH(p);Pb.start&&AnH(this.vE);return this.G}; +g.k.J8=function(C){if(!this.videoData.isLivePlayback)return hvo(this.vE);var b;return Ev(this.videoData)&&((b=this.mediaElement)==null?0:b.isPaused())&&this.videoData.j?(C=this.getCurrentTime(),jax(this.vF(C)*1E3)+C):this.D("html5_sabr_parse_live_metadata_playback_boundaries")&&x6(this.videoData)&&this.videoData.j?C?this.videoData.j.N2||0:this.videoData.j.nI||0:g9(this.videoData)&&this.videoData.Qz&&this.videoData.j?this.videoData.j.J8()+this.timestampOffset:this.videoData.N&&this.videoData.N.j?!C&& +this.j?this.j.lN():hvo(this.vE)+this.timestampOffset:this.mediaElement?nN()?jax(this.mediaElement.vy().getTime()):TF(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; +g.k.Mo=function(){if(g.sF(this.videoData)){var C=this.vE;g.sF(C.videoData);var b,h;return(h=(b=C.Ib)==null?void 0:b.Mo())!=null?h:C.videoData.Mo()}if(this.D("html5_sabr_parse_live_metadata_playback_boundaries")&&x6(this.videoData)){var N;return((N=this.videoData.j)==null?void 0:N.J_)||0}b=this.videoData?this.videoData.Mo()+this.timestampOffset:this.timestampOffset;return Ev(this.videoData)&&this.videoData.j&&(h=Number((C=this.videoData.progressBarStartPosition)==null?void 0:C.utcTimeMillis)/1E3,C= +this.getCurrentTime(),C=this.vF(C)-C,!isNaN(h)&&!isNaN(C))?Math.max(b,h-C):b}; +g.k.Xx=function(){this.G||this.seekTo(this.X,{Cj:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; +g.k.Pc=function(){return this.N2&&!isFinite(this.K)}; +g.k.wO=function(){vO_(this,null);this.q2.dispose();g.O.prototype.wO.call(this)}; +g.k.jf=function(){var C={};this.Xo&&Object.assign(C,this.Xo.jf());this.mediaElement&&Object.assign(C,this.mediaElement.jf());return C}; +g.k.pm=function(C){this.timestampOffset=C}; +g.k.getStreamTimeOffset=function(){return g9(this.videoData)?0:this.videoData.j?this.videoData.j.getStreamTimeOffset():0}; +g.k.Z9=function(){return this.timestampOffset}; +g.k.vF=function(C){return this.videoData&&this.videoData.j?this.videoData.j.vF(C-this.timestampOffset):NaN}; +g.k.hd=function(){if(!this.mediaElement)return 0;if($8(this.videoData)){var C=this.mediaElement,b=C.XX();C=(jJ(b)>0&&C.getDuration()?b.end(b.length-1):0)+this.timestampOffset-this.Mo();b=this.J8()-this.Mo();return Math.max(0,Math.min(1,C/b))}return this.mediaElement.hd()}; +g.k.La=function(C){this.W&&(this.W.j=C)}; +g.k.il=function(C,b){this.vE.jp("requestUtcSeek",{time:C});x6(this.videoData)&&this.D("html5_sabr_enable_utc_seek_requests")&&(this.Yh=C);var h;(h=this.Xo)==null||h.il(C);b&&(this.nO=b)}; +g.k.Z$=function(C){x6(this.videoData)&&this.D("html5_sabr_enable_utc_seek_requests")&&(this.Yh=void 0);if(this.nO)this.vE.jp("utcSeekingFallback",{source:"streamTime",timeSeconds:this.nO}),this.vE.seekTo(this.nO,{Cj:"utcSeekingFallback_streamTime"}),this.nO=0;else{var b=this.getCurrentTime();isNaN(b)||(C=this.vF(b)-C,b-=C,this.vE.jp("utcSeekingFallback",{source:"estimate",timeSeconds:b}),this.vE.seekTo(b,{Cj:"utcSeekingFallback_estimate"}))}}; +g.k.xv=function(){this.nO=0}; +g.k.D=function(C){return this.If&&this.If.D(C)};g.S(kC,g.O);kC.prototype.start=function(){this.K.start()}; +kC.prototype.stop=function(){this.K.stop()}; +kC.prototype.clear=function(){for(var C=g.z(this.j.values()),b=C.next();!b.done;b=C.next())b.value.clear()}; +kC.prototype.sample=function(){for(var C=g.z(this.N),b=C.next();!b.done;b=C.next()){var h=g.z(b.value);b=h.next().value;h=h.next().value;this.j.has(b)||this.j.set(b,new hZo(EQE.has(b)));this.j.get(b).update(h())}this.K.start()}; +var EQE=new Set(["networkactivity"]);hZo.prototype.update=function(C){this.j?(this.buffer.add(C-this.Uz||0),this.Uz=C):this.buffer.add(C)}; +hZo.prototype.clear=function(){this.buffer.clear();this.Uz=0};Zj.prototype.Ia=function(){return this.started}; +Zj.prototype.start=function(){this.started=!0}; +Zj.prototype.reset=function(){this.finished=this.started=!1};var jYx=!1;g.S(g.oY,g.cr);g.k=g.oY.prototype;g.k.wO=function(){this.logger.debug("dispose");g.$G(this.A5);Zfl(this.ws);this.visibility.unsubscribe("visibilitystatechange",this.ws);$gl(this);S1(this);g.WD.E2(this.v1);this.Ue();this.BL=null;g.eD(this.videoData);g.eD(this.rH);g.eD(this.mW);g.eD(this.g6);g.Ld(this.uqO);this.f$=null;g.cr.prototype.wO.call(this)}; +g.k.QC=function(C,b,h,N,p){if(this.If.D("html5_log_ad_playback_docid")){var P=this.CJ();if(P.qoe){P=P.qoe;var c=this.If.KO||"yt";g.mQ(P,g.HO(P.provider),"ad_playback",[C,b,h,p,c])}}else this.CJ().QC(C,b,h);this.D("html5_log_media_perf_info")&&this.jp("adloudness",{ld:N.toFixed(3),cpn:C})}; +g.k.vc=function(){var C;return(C=this.Xo)==null?void 0:C.vc()}; +g.k.jy=function(){var C;return(C=this.Xo)==null?void 0:C.jy()}; +g.k.C$=function(){var C;return(C=this.Xo)==null?void 0:C.C$()}; +g.k.y9=function(){var C;return(C=this.Xo)==null?void 0:C.y9()}; +g.k.o$=function(){return this.videoData.o$()}; +g.k.v$=function(){return this.D("html5_not_reset_media_source")&&!this.o$()&&!this.videoData.isLivePlayback&&g.AE(this.videoData)&&!this.If.supportsGaplessShorts()}; +g.k.u4=function(){if(this.videoData.L){var C;if(!(C=this.videoData.GW)){var b;C=(b=this.bf.i$())==null?void 0:b.vc()}this.videoData.GW=C;if(!(C=this.videoData.E$)){var h;C=(h=this.bf.i$())==null?void 0:h.jy()}this.videoData.E$=C}if(I8H(this.videoData)||!WT(this.videoData))h=this.videoData.errorDetail,this.u3(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),h,h,this.videoData.fS||void 0);this.D("html5_generate_content_po_token")&&this.D7();this.D("html5_enable_d6de4")&&this.WV(); +if(this.D("html5_ssap_cleanup_player_switch_ad_player")||this.D("html5_ssap_cleanup_ad_player_on_new_data"))if(h=this.bf.PW())this.YK=h.clientPlaybackNonce}; +g.k.XE=function(){return this.IB}; +g.k.kc=function(){!this.AJ||this.AJ.HE();this.AJ=new g.vO(new OL(this.videoData,this.If,this));this.IB=new d4(this.If,this,this.AJ)}; +g.k.getVideoData=function(){return this.videoData}; +g.k.Y=function(){return this.If}; +g.k.sO=function(C){return this.zQ.sO(this.BL,C===void 0?!1:C)}; +g.k.CJ=function(C){if(C)a:{for(var b=this.IB,h=g.z(b.j.values()),N=h.next();!N.done;N=h.next())if(N=N.value,N.getVideoData().videoId===C){C=N;break a}C=b.K}else C=this.IB.CJ();return C}; +g.k.u5=function(){return this.visibility}; +g.k.uP=function(){return this.mediaElement&&this.mediaElement.y$()?this.mediaElement.Rb():null}; +g.k.Q_=function(){return this.mediaElement}; +g.k.JX=function(){if(this.D("html5_check_video_data_errors_before_playback_start")&&this.videoData.errorCode)return!1;this.Y().W&&this.Y().houseBrandUserStatus&&this.jp("hbut",{status:this.Y().houseBrandUserStatus});if(this.videoData.bF())return!0;this.u3("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; +g.k.Us=function(C){(C=C===void 0?!1:C)||g.sF(this.videoData)||D9(this.CJ());this.eU=C;!this.JX()||this.E8.Ia()?g.m9(this.If)&&this.videoData.isLivePlayback&&this.E8.Ia()&&!this.E8.finished&&!this.eU&&this.KC():(this.E8.start(),C=this.CJ(),g.HO(C.provider),C.qoe&&oLl(C.qoe),this.KC())}; +g.k.KC=function(){if(this.videoData.isLoaded()){var C=this.rH;g.Zc(C.Rf.experiments,"html5_player_min_build_cl")>0&&g.Zc(C.Rf.experiments,"html5_player_min_build_cl")>725870172&&Hfc(C,"oldplayer");M16(this)}else this.videoData.Xz||this.videoData.tN?this.eU&&g.m9(this.If)&&this.videoData.isLivePlayback||(this.videoData.Xz?RLW(this.videoData):(C=this.CJ(),C.qoe&&(C=C.qoe,yn(C,"protected"),C.provider.videoData.G?C.jg():C.provider.videoData.subscribe("dataloaded",C.jg,C)),yaH(this.videoData))):!this.videoData.loading&& +this.Mh&&zZH(this)}; +g.k.vZ=function(C){this.uf=C;this.Xo&&(aSU(this.Xo,new g.cO(C)),this.D("html5_check_decorator_on_cuepoint")&&this.jp("sdai",{sdsstm:1}))}; +g.k.ya=function(C){this.Ib=C;this.Xo&&this.Xo.ya(C)}; +g.k.ST=NW(15);g.k.isFullscreen=function(){return this.visibility.isFullscreen()}; +g.k.isBackground=function(){return this.visibility.isBackground()}; +g.k.w2=function(){var C=this;this.logger.debug("Updating for format change");Fs(this).then(function(){return l_(C)}); +this.playerState.isOrWillBePlaying()&&this.playVideo()}; +g.k.z_=function(){this.logger.debug("start readying playback");this.mediaElement&&this.mediaElement.activate();this.Us();this.JX()&&!g.B(this.playerState,128)&&(this.a_.Ia()||(this.a_.start(),this.videoData.du?this.WW(hI(this.playerState,4)):this.WW(hI(hI(this.playerState,8),1))),Hac(this))}; +g.k.Hr=function(){return this.E8.finished}; +g.k.sendAbandonmentPing=function(){g.B(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.iJ(!0),$gl(this),g.WD.E2(this.v1))}; +g.k.DN=function(C,b){C=C===void 0?!0:C;(b===void 0||b)&&this.mediaElement&&this.mediaElement.pause();this.WW(C?new g.w6(14):new g.w6)}; +g.k.rA=function(){N4K(this.CJ())}; +g.k.u3=function(C,b,h,N,p,P){this.logger.debug(function(){return"set player error: ec="+C+", detail="+p}); +var c,e;g.fR(gQE,h)?c=h:h?e=h:c="GENERIC_WITHOUT_LINK";N=(N||"")+(";a6s."+ec());if(C==="auth"||C==="drm.auth"||C==="heartbeat.stop")h&&(N+=";r."+h.replaceAll(" ","_")),P&&(N+="sr."+P.replaceAll(" ","_"));b={errorCode:C,errorDetail:p,errorMessage:e||g.tO[c]||"",OQ:c,fS:P||"",dN:N,Sa:b,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=C;G$(this,"dataloaderror");this.WW(b$(this.playerState,128,b));g.WD.E2(this.v1);S1(this);this.Oc()}; +g.k.HL=function(C){this.SZ=this.SZ.filter(function(b){return C!==b}); +this.logger.debug(function(){return"set preroll ready for "+C}); +g.sF(this.videoData)&&!this.uN()&&this.DJ.Jy("pl_pr");this.a_.Ia()&&Hac(this)}; +g.k.uN=function(){var C;(C=!!this.SZ.length)||(C=this.Zx.j.array[0],C=!!C&&C.start<=-0x8000000000000);return C}; +g.k.Dt=function(){return this.Jk.Dt()}; +g.k.isPlaying=function(){return this.playerState.isPlaying()}; +g.k.Xn=function(){return this.playerState.Xn()&&this.videoData.du}; +g.k.getPlayerState=function(){return this.playerState}; +g.k.b4=function(C){var b;(b=this.Xo)==null||b.b4(C)}; +g.k.CH=function(C){var b;(b=this.Xo)==null||b.CH(C)}; +g.k.getPlayerType=function(){return this.playerType}; +g.k.getPreferredQuality=function(){if(this.BL){var C=this.BL;C=C.videoData.RJ.compose(C.videoData.Pd);C=wV(C)}else C="auto";return C}; +g.k.bd=NW(20);g.k.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; +g.k.setMediaElement=function(C){this.logger.debug("set media element");if(this.mediaElement&&C.Rb()===this.mediaElement.Rb()&&(C.isView()||this.mediaElement.isView())){if(C.isView()||!this.mediaElement.isView())g.rU(this.QS),this.mediaElement=C,this.mediaElement.vE=this,vCS(this),this.Jk.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.Ue();if(!this.playerState.isError()){var b=NO(this.playerState,512);g.B(b,8)&&!g.B(b,2)&&(b=hI(b,1));C.isView()&&(b=NO(b,64));this.WW(b)}this.mediaElement= +C;this.mediaElement.vE=this;!g.m9(this.If)&&this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);vCS(this);this.Jk.setMediaElement(this.mediaElement);this.D("html5_prewarm_media_source")&&!this.rH.N1()&&M5W(this.mediaElement)}}; +g.k.Ue=function(C,b,h){C=C===void 0?!1:C;b=b===void 0?!1:b;h=h===void 0?!1:h;this.logger.debug("remove media element");if(this.mediaElement){var N=this.getCurrentTime();N>0&&(this.Jk.X=N);this.Jk.setMediaElement(null);!C&&this.v$()?QYU(this):this.yC(h);this.Xo&&(wp(this.Xo),VF(this,b));this.EN.stop();if(this.mediaElement&&(!this.a_.Ia()&&!this.zJ()||this.playerState.isError()||g.B(this.playerState,2)||this.WW(hI(this.playerState,512)),this.mediaElement)){g.rU(this.QS);if(C||!this.mediaElement.isView())this.DJ.Ap("mesv_s"), +this.mediaElement.stopVideo(),Mg(this);this.mediaElement=this.mediaElement.vE=null}}}; +g.k.playVideo=function(C,b){C=C===void 0?!1:C;b=b===void 0?!1:b;var h=this,N,p,P,c,e,L;return g.R(function(Z){if(Z.j==1){h.logger.debug("start play video");var Y=window.google_image_requests;Y&&Y.length>10&&(window.google_image_requests=Y.slice(-10));if(g.B(h.playerState,128))return Z.return();if(h.rH.kB())return h.publish("signatureexpired"),Z.return();h.mediaElement&&D9(h.CJ());h.z_();(g.B(h.playerState,64)||C)&&h.WW(hI(h.playerState,8));return h.a_.finished&&h.mediaElement?h.BL||!h.zR?Z.WE(2): +g.J(Z,h.zR,3):Z.return()}if(Z.j!=2&&g.B(h.playerState,128))return Z.return();if(!h.videoData.N)return h.videoData.isLivePlayback&&!g.tP(h.If.G,!0)?(N="html5.unsupportedlive",p=2):(N=h.videoData.o$()?"fmt.unplayable":"fmt.noneavailable",p=1),g.QB(Error("selectableFormats")),h.u3(N,p,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","selectableFormats.1"),Z.return();if(h.r0()&&h.videoData.N.j)return h.logger.debug("rebuild playbackData for airplay"),Z.return(Fs(h));if(pa(h))Y=h.Jk,NF(Y.videoData)?!Y.isAtLiveHead(Y.getCurrentTime())&& +Y.Dt()&&Y.vE.seekTo(Infinity,{Cj:"seektimeline_peggedToLive",seekSource:34}):g.sF(Y.videoData)&&Y.getCurrentTime()c;c=b.D("html5_dont_save_under_1080")&&c<1080;if(!p||!P&&!c){var e;p=r7K(b,(e=N.j)==null?void 0:e.videoInfos);e=b.vE.getPlaybackRate();e>1&&p&&(e=qXS(b.If.G,N.j.videoInfos,e),C.j!==0&&e=480;if(b.D("html5_exponential_memory_for_sticky")){L=b.If.fK;Z=1;var Y=Y===void 0?!1:Y;dOH(L,"sticky-lifetime");L.values["sticky-lifetime"]&&L.kA["sticky-lifetime"]||(L.values["sticky-lifetime"]=0,L.kA["sticky-lifetime"]=0);Y&&oh(L,"sticky-lifetime")>.0625&&(Z=L.kA["sticky-lifetime"]*2);L.values["sticky-lifetime"]+=1* +Math.pow(2,L.j/Z);L.kA["sticky-lifetime"]=Z;L.X.start()}if(b.D("html5_perf_cap_override_sticky")){Y=b.N;L=b.D("html5_perserve_av1_perf_cap");L=L===void 0?!1:L;if(L===void 0?0:L){Z=iw();b=g.z(Object.keys(Z));for(C=b.next();!C.done;C=b.next())C=C.value,C.indexOf("1")!==0&&delete Z[C];g.R1("yt-player-performance-cap",Z,2592E3)}else g.UJ("yt-player-performance-cap");mol(L);if(L){L=g.z($y.keys());for(Z=L.next();!Z.done;Z=L.next())Z=Z.value,Z.startsWith("1")||$y.delete(Z);L=g.z(Sq.values());for(Z=L.next();!Z.done;Z= +L.next())Z=Z.value,Z.startsWith("1")||Sq.delete(Z);L=g.z(Y.keys());for(Z=L.next();!Z.done;Z=L.next())Z=Z.value,Z.startsWith("1")||Y.delete(Z)}else $y.clear(),Sq.clear(),Y.clear()}}}this.Xo&&(Y=this.Xo,h=h||"",Y.policy.j?Xe(Y.K.j,h):Xe(Y.j.G,h));this.z7()}; +g.k.getUserPlaybackQualityPreference=function(){return this.videoData.N&&!this.videoData.N.j?wV(this.videoData.RJ):xl[yp()]}; +g.k.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; +g.k.setUserAudio51Preference=function(C,b){this.getUserAudio51Preference()!==C&&(this.jp("toggle51",{pref:C}),g.R1("yt-player-audio51",C,b?31536E3:2592E3),this.w2())}; +g.k.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; +g.k.setProximaLatencyPreference=function(C){var b=this.getProximaLatencyPreference();this.jp("proxima",{pref:C});g.R1("yt-player-proxima-pref",C,31536E3);b!==C&&(C=this.Jk,C.kh=!0,C.vE.seekTo(Infinity,{Cj:"seektimeline_proximaSeekToHead",seekSource:34}))}; +g.k.getProximaLatencyPreference=function(){var C;return(C=rV())!=null?C:0}; +g.k.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; +g.k.D7=function(){this.videoData.videoId?this.bf.D7(this.videoData):this.jp("povid",{})}; +g.k.WV=function(){this.videoData.videoId?this.bf.WV(this.videoData):this.jp("piavid",{})}; +g.k.z7=function(){if(!this.HE()&&!g.B(this.playerState,128)&&this.videoData.N){if(this.videoData.N.j)aY(this);else{var C=HY(this),b=this.videoData;a:{var h=this.videoData.w9;if(C.j){for(var N=g.z(h),p=N.next();!p.done;p=N.next()){p=p.value;var P=p.getInfo(),c=g.Un[P.video.quality];if((!C.N||P.video.quality!=="auto")&&c<=C.j){h=p;break a}}h=h[h.length-1]}else h=h[0]}b.zi=h;yno(this,C.reason,Wj1(this,this.videoData.zi))}if(this.D("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.Jk.J= +!1,this.playVideo()}}; +g.k.PZ=function(C,b){if(this.HE()||g.B(this.playerState,128))return!1;var h,N=!((h=this.videoData.N)==null||!h.j);h=N&&b?this.getCurrentTime()-this.Z9():NaN;if(this.If.experiments.Fo("html5_record_audio_format_intent")){var p=this.CJ();if(p.qoe){p=p.qoe;var P=[C.z$.id,isNaN(h)?"m":"t"];g.mQ(p,g.HO(p.provider),"afi",P)}}if(N)return b&&(N=dD6(this.Jk),this.jp("aswh",{id:C.id,xtags:C.xtags,bh:N.toFixed(3)})),this.Xo.setAudioTrack(C,h,b),!0;if(iao(this)){a:{b=this.mediaElement.audioTracks();for(N=0;N< +b.length;++N)if(h=b[N],h.label===C.z$.getName()){if(h.enabled){b=!1;break a}b=h.enabled=!0;break a}b=void 0}b&&this.jp("hlsaudio",{id:C.id})}else{a:if(b=this.videoData,b.X&&!Ty(b.X)||C===b.MW||!b.w9||b.w9.length<=0)b=!1;else{N=g.z(b.w9);for(h=N.next();!h.done;h=N.next()){h=h.value;if(!(h instanceof hq)){b=!1;break a}p=C.z$.getId();h.K&&(YwW(h.K,p),h.dU=null)}b.MW=C;b=!0}b&&l_(this)&&(this.publish("internalaudioformatchange",this.videoData,!0),this.jp("hlsaudio",{id:C.id}))}return!0}; +g.k.getAvailableAudioTracks=function(){return g.sF(this.videoData)&&this.Ib?cb1(this.Ib).getAvailableAudioTracks():this.videoData.getAvailableAudioTracks()}; +g.k.getAudioTrack=function(){if(iao(this)){var C=usS(this);if(C)return C}return this.videoData.getAudioTrack()}; +g.k.Ca=function(){if(this.videoData.D("html5_trigger_loader_when_idle_network")&&!this.videoData.yV()&&x6(this.videoData)){var C;(C=this.Xo)!=null&&C.r9()}}; +g.k.pW=function(){if(Tt(this.videoData)&&this.videoData.D("html5_gapless_append_early")){var C;(C=this.Xo)!=null&&C.r9()}}; +g.k.YE=function(C){C=C===void 0?!1:C;if(this.Xo){var b=this.Xo,h=b.YE;var N=this.videoData;N=N.D("html5_ssdai_use_post_for_media")&&N.enableServerStitchedDai?!1:g9(N)&&N.vL&&!N.isAd();h.call(b,N,C)}}; +g.k.yC=function(C){C=C===void 0?!1:C;this.pO&&(this.logger.debug("remove media source"),V5K(this.pO),this.YE(C),this.pO.dispose(),this.pO=null)}; +g.k.Jj=function(){return this.pO}; +g.k.tQ=function(C,b,h,N){function p(c){try{sYV(P,c,b,h)}catch(e){g.QB(e),P.handleError(new Mw("fmt.unplayable",{msi:"1",ename:e&&typeof e==="object"&&"name"in e?String(e.name):void 0},1))}} +var P=this;b=b===void 0?!1:b;h=h===void 0?!1:h;XYK(this,N===void 0?!1:N);this.pO=C;this.v$()&&W6(this.pO)==="open"?p(this.pO):GvV(this.pO,p)}; +g.k.HO=function(C){this.logger.debug("onNeedKeyInfo");this.fG.set(C.initData,C);this.UG&&(this.UG.HO(C),this.D("html5_eme_loader_sync")||this.fG.remove(C.initData))}; +g.k.lk=function(C){this.videoData.xN=g.T0("auto",C,!1,"u");aY(this)}; +g.k.La=function(C){var b=C.reason,h=C.j.info,N=C.token,p=C.videoId,P=this.CJ(p),c=g.sF(this.videoData)?P.getVideoData():this.videoData;if(h!==c.X){var e=!c.X;c.X=h;b!=="m"&&b!=="t"&&(b=e?"i":"a");var L=b==="m"||b==="t";this.If.experiments.Fo("html5_refactor_sabr_audio_format_selection_logging")?this.AA=new qgl(c,h,b,"",N,p):P.WQ(new qgl(c,h,b,"",N));this.publish("internalaudioformatchange",c,!e&&L)}this.Jk.La(C.j.index)}; +g.k.h5=function(C){this.publish("localmediachange",C)}; +g.k.JN=function(C){C=C===void 0?{}:C;var b;(b=this.Xo)==null||b.JN(this.If,IQ(this.videoData),C)}; +g.k.kB=function(){return this.rH.kB()}; +g.k.Rz=function(C){this.zE(new Mw("staleconfig",{reason:C}))}; +g.k.handleError=function(C){this.rH.handleError(C)}; +g.k.N1=function(){return this.rH.N1()}; +g.k.Z$=function(C){this.Jk.Z$(C)}; +g.k.B6=function(C,b,h){C=C===void 0?!1:C;b=b===void 0?!1:b;h=h===void 0?!1:h;var N=this,p,P,c;return g.R(function(e){if(e.j==1){N.Xo&&N.Xo.YP();N.Xo&&N.Xo.HE()&&S1(N);if(N.D("html5_enable_vp9_fairplay")&&N.o$()&&(p=N.videoData.j)!=null)for(var L in p.j)p.j.hasOwnProperty(L)&&(p.j[L].j=null,p.j[L].N=!1);N.WW(hI(N.playerState,2048));N.D("html5_ssap_keep_media_on_finish_segment")&&g.sF(N.videoData)?N.publish("newelementrequired",h):N.publish("newelementrequired");return C?g.J(e,Fs(N),2):e.WE(2)}N.videoData.yV()&& +((P=N.Xo)==null?0:P.nO)&&!pa(N)&&((c=N.isAtLiveHead())&&NF(N.videoData)?N.seekTo(Infinity,{Cj:"videoPlayer_getNewElement"}):N.videoData.y_&&N.Xo&&(L=N.Xo,L.cE.yV&&(L.cE.y_||L.cE.X||L.cE.isPremiere?(L.seek(0,{Cj:"loader_resetSqless"}),L.videoTrack.J=!0,L.audioTrack.J=!0,L.videoTrack.G=!0,L.audioTrack.G=!0):Fc(L.cE)&&nf(L))));b&&N.seekTo(0,{seekSource:105});g.B(N.playerState,8)&&(N.D("html5_ssap_keep_media_on_finish_segment")&&g.sF(N.videoData)?N.playVideo(!1,h):N.playVideo());g.$_(e)})}; +g.k.qY=function(C){this.jp("hgte",{ne:+C});this.videoData.L=!1;C&&this.B6();this.Xo&&Kel(this.Xo)}; +g.k.nR=function(C){this.jp("newelem",{r:C});this.B6()}; +g.k.pauseVideo=function(C){C=C===void 0?!1:C;if((g.B(this.playerState,64)||g.B(this.playerState,2))&&!C)if(g.B(this.playerState,8))this.WW(gP(this.playerState,4,8));else if(this.Xn())l_(this);else return;g.B(this.playerState,128)||(C?this.WW(hI(this.playerState,256)):this.WW(gP(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.SM(this.videoData)&&this.Xo&&VF(this,!1)}; +g.k.stopVideo=function(){this.pauseVideo();this.Xo&&(VF(this,!1),this.Xo.j1())}; +g.k.Oc=function(C,b){C=C===void 0?!1:C;b=b===void 0?!1:b;if(this.v$()&&b){var h;(h=this.mediaElement)==null||h.Oc()}else{var N;(N=this.mediaElement)==null||N.stopVideo()}Mg(this);S1(this);g.B(this.playerState,128)||(C?this.WW(NO(NO(hI(this.playerState,4),8),16)):this.WW(b$(this.playerState)));this.videoData.videoId&&this.If.Df.remove(this.videoData.videoId)}; +g.k.seekTo=function(C,b){b=b===void 0?{}:b;this.logger.debug(function(){return"SeekTo "+C+", "+JSON.stringify(b)}); +g.B(this.playerState,2)&&l_(this);b.t4D&&this.WW(hI(this.playerState,2048));b.seekSource!==58&&b.seekSource!==60||!this.D("html5_update_vss_during_gapless_seeking")||bJH(this.CJ(),b.seekSource);this.Jk.seekTo(C,b);this.Zx.sync()}; +g.k.T_=function(C){this.DJ.X.gY();g.B(this.playerState,32)||(this.WW(hI(this.playerState,32,C==null?void 0:C.seekSource)),g.B(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking",this));this.cW()}; +g.k.Lu=function(C){C=C==null?void 0:C.seekSource;g.B(this.playerState,32)?(this.WW(gP(this.playerState,16,32,C)),this.publish("endseeking",this)):g.B(this.playerState,2)||this.WW(hI(this.playerState,16,C));this.DJ.X.zK(this.videoData,this.playerState.isPaused())}; +g.k.J7=function(C){this.Lu(C)}; +g.k.Ha=function(){this.publish("SEEK_COMPLETE")}; +g.k.bu=function(){this.publish("onAbnormalityDetected")}; +g.k.UN=function(C){var b=this.bf,h=this.videoData.clientPlaybackNonce,N=this.playerType;if(C.scope===4){var p=C.type;if(p){var P=b.A4(),c=P.getVideoData().clientPlaybackNonce;N===1&&(c=h);(b=QKc(b,c))?(h=b.getVideoData())&&(C.writePolicy===2&&h.sabrContextUpdates.has(p)||h.sabrContextUpdates.set(p,C)):P.jp("scuset",{ncpf:"1",ccpn:c,crcpn:h})}else g.QB(Error("b/380308491: contextUpdateType is undefined"))}}; +g.k.Jq=function(){if(this.bf.PW().En&&this.playerType===2)return this.bf.Jq("")}; +g.k.getCurrentTime=function(){return this.Jk.getCurrentTime()}; +g.k.td=function(){return this.Jk.td()}; +g.k.l3=function(){return this.Jk.l3()}; +g.k.DB=function(C){return this.Ib&&(C=C||this.Ib.pI())?Pq(this.Ib,C):this.l3()}; +g.k.lN=function(){return this.Jk.lN()}; +g.k.getPlaylistSequenceForTime=function(C){return this.videoData.getPlaylistSequenceForTime(C-this.Z9())}; +g.k.fB=function(){var C=NaN;this.mediaElement&&(C=this.mediaElement.fB());return C>=0?C:this.getCurrentTime()}; +g.k.vF=function(){var C;return((C=this.videoData.j)==null?0:C.vF)?this.videoData.j.vF(this.getCurrentTime()-this.Z9()):this.mediaElement&&(C=this.mediaElement.vy())&&(C=C.getTime(),!isNaN(C))?C/1E3+this.getCurrentTime():NaN}; +g.k.getDuration=function(C){return g.sF(this.videoData)&&this.Ib?C?jpl(this.Ib,C):xL(this.Ib):this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.Z9():this.J8()?this.J8():0}; +g.k.ED=function(){var C=new c2V;if(this.Xo){var b=this.If.schedule,h=this.If.tZ();h=h===void 0?!1:h;C.U8=b.nO;C.IJ=b.t4;C.bandwidthEstimate=ah(b);if(h){h=(b.L.w0()*1E3).toFixed();var N=(b.sX.w0()*1E3).toFixed(),p=LO(b).toFixed(2),P=((b.J.w0()||0)*1E9).toFixed(2),c=b.N.w0().toFixed(0),e=b.Qz.w0().toFixed(0),L=b.V.percentile(.5).toFixed(2),Z=b.V.percentile(.92).toFixed(2),Y=b.V.percentile(.96).toFixed(2),a=b.V.percentile(.98).toFixed(2);b.j?b.j.reset():b.j=new h9;b.j.add(b.q2);b.j.add(b.interruptions.length); +for(var l=0,F=b.interruptions.length-1;F>=0;F--){var G=b.interruptions[F];b.j.add(G-l);l=G}l=0;for(F=b.X.length-1;F>=0;F--){G=b.X[F];var V=G.stamp/36E5;b.j.add(V-l);l=V;b.j.add(G.net/1E3);b.j.add(G.max)}b=b.j.Oq();C.j={ttr:h,ttm:N,d:p,st:P,bw:c,abw:e,v50:L,v92:Z,v96:Y,v98:a,"int":b}}YvW(this.Xo,C)}else this.mediaElement&&(C.I1=B6(this.mediaElement));C.U8=this.U8;C.IJ=this.IJ;C.N=this.isAtLiveHead()&&this.isPlaying()?G$H(this):NaN;return C}; +g.k.R5=function(C,b){this.IJ+=C;this.U8+=b}; +g.k.hd=function(){return this.mediaElement?g.SM(this.videoData)?1:$8(this.videoData)?this.isAtLiveHead()||this.Dt()?1:this.Jk.hd():this.mediaElement.hd():0}; +g.k.Gb=function(){var C=this.getCurrentTime();if(this.UG){var b="IT/"+(this.UG.j.getInfo()+"/"+wV(this.cC()));b+="/"+this.UG.getInfo()}else b="";var h=this.isGapless(),N=this.nf(),p=this.Bc(),P=g.z$(this),c=this.getPlayerState(),e=this.getPlaylistSequenceForTime(this.getCurrentTime());a:{var L=0;var Z="";if(this.uf){if(this.uf.rG){Z="D,";break a}L=this.uf.Q9();Z=this.uf.pI().substring(0,4)}else this.Ib&&(L=this.Ib.Q9(),Z=this.Ib.pI().substring(0,4));L>0?(L="AD"+L+", ",Z&&(L+=Z+", "),Z=L):Z=""}return{currentTime:C, +vR:b,isGapless:h,nf:N,I6:p,Jb$:P,playerState:c,S_E:e,x9z:this.rB,gk:Z,Ksi:this.Qs()}}; +g.k.jf=function(C){var b={};if(C===void 0?0:C){Object.assign(b,this.CJ().jf());this.mediaElement&&(Object.assign(b,this.mediaElement.jf()),Object.assign(b,this.Qs()));this.Xo&&Object.assign(b,this.Xo.jf());this.UG&&(b.drm=JSON.stringify(this.UG.jf()));b.state=this.playerState.state.toString(16);g.B(this.playerState,128)&&(b.debug_error=JSON.stringify(this.playerState.N9));this.uN()&&(b.prerolls=this.SZ.join(","));this.videoData.aL&&(b.ismb=this.videoData.aL);this.videoData.latencyClass!=="UNKNOWN"&& +(b.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(b.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)b.is_mosaic=1;this.videoData.cotn&&(b.is_offline=1,b.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(b.playerResponseCpn=this.videoData.playerResponseCpn);this.bf.isOrchestrationLeader()&&(b.leader=1);this.videoData.isLivePlayback&&(this.videoData.j&& +Yy(this.videoData.j)&&(b.segduration=Yy(this.videoData.j)),C=this.Jk,b.lat=C.W?VqU(C.W.X):0,b.liveutcstart=this.videoData.liveUtcStartSeconds);b.relative_loudness=this.videoData.VX.toFixed(3);if(C=g.z$(this))b.optimal_format=C.video.qualityLabel;b.user_qual=yp();b.release_version=bc[47];g.sF(this.videoData)&&this.Ib&&(b.ssap=ag(this.Ib))}b.debug_videoId=this.videoData.videoId;return b}; +g.k.addCueRange=function(C){this.Z8([C])}; +g.k.removeCueRange=function(C){this.Zx.AR([C])}; +g.k.Qx=function(){this.Zx.sync()}; +g.k.JK=function(C,b){return this.Zx.JK(C,b)}; +g.k.Z8=function(C,b){this.Zx.A8(C,b)}; +g.k.qr=function(C){this.Zx.AR(C)}; +g.k.N4=function(C){var b=this.Zx;C.length<=0||b.HE()||(C=b.j,C.array.sort(C.j))}; +g.k.l1=function(){return this.Zx.l1()||[]}; +g.k.tq=function(){return this.gq}; +g.k.r0=function(){return this.visibility.r0()}; +g.k.Vr=function(){this.mediaElement&&this.mediaElement.Vr()}; +g.k.sD4=function(){G$(this)}; +g.k.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; +g.k.SA=function(C){var b=C.target.R$();if(this.mediaElement&&this.mediaElement.R$()&&this.mediaElement.R$()===b){wY1(this,C.type);switch(C.type){case "error":var h=xe(this.mediaElement)||"",N=this.mediaElement.WL();if(h==="capability.changed"){this.D("html5_restart_on_capability_change")?(this.jp("capchg",{msg:N}),this.B6(!0)):Fs(this);return}if(this.mediaElement.hasError()&&(G1S(this.rH,h,{msg:N})||g.sF(this.videoData)&&this.Ib&&(N=this.playerState.N9,this.Ib.handleError(h,N==null?void 0:N.Sa))))return; +if(this.isBackground()&&this.mediaElement.LX()===4){this.Oc();$C(this,"unplayable");return}break;case "durationchange":h=this.mediaElement.getDuration();isFinite(h)&&(!this.pO||h>0)&&h!==1&&this.zI(h);break;case "ratechange":this.Xo&&this.Xo.setPlaybackRate(this.mediaElement.getPlaybackRate());FQ6(this.Zx);this.CJ().onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":bPS(this);this.publish("onLoadedMetadata");dgl(this);h=this.vF();this.videoData.qg&&(this.videoData.qg=h);break; +case "loadstart":dgl(this);break;case "progress":case "suspend":this.cW();this.publish("onLoadProgress",this,this.hd());break;case "playing":this.DJ.Ap("plev");this.SG&&!pa(this)&&(this.SG=!1,this.isAtLiveHead()||(this.logger.debug("seek to infinity on PLAYING"),this.seekTo(Infinity,{Cj:"videoplayer_onPlaying"})));break;case "timeupdate":h=this.mediaElement&&!this.mediaElement.getCurrentTime();N=this.mediaElement&&this.mediaElement.qZ()===0;if(h&&(!this.q4||N))return;this.q4=this.q4||!!this.mediaElement.getCurrentTime(); +Dgl(this);this.cW();if(!this.mediaElement||this.mediaElement.R$()!==b)return;this.publish("onVideoProgress",this,this.getCurrentTime());break;case "waiting":if(this.mediaElement.Ce().length>0&&this.mediaElement.XX().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.Xo)return;this.D("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.qZ()>2||!this.mediaElement.isSeeking()&&pI(this.mediaElement.XX(),this.mediaElement.getCurrentTime()))&& +(h=this.mediaElement.jf(),h.bh=B6(this.mediaElement).toFixed(3),this.jp("uwe",h));g.sF(this.videoData)&&this.Ib&&CMc(this.Ib,this.mediaElement.getCurrentTime());break;case "resize":bPS(this);this.videoData.K&&this.videoData.K.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.P0&&g.B(this.playerState,8)&&!g.B(this.playerState,1024)&&this.getCurrentTime()===0&&g.$1){$C(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.R$()=== +b){wO1(this.Jk,C,this.Ib||void 0);this.publish("videoelementevent",C);b=this.playerState;N=this.XA;var p=this.mediaElement;h=this.videoData.clientPlaybackNonce;var P=g.sF(this.videoData)&&this.Ib?xL(this.Ib):void 0;if(!g.B(b,128)){var c=b.state;p=p?p:C.target;var e=p.getCurrentTime();if(!g.B(b,64)||C.type!=="ended"&&C.type!=="pause"){P=P||p.getDuration();P=p.isEnded()||e>1&&Math.abs(e-P)<1.1;var L=C.type==="pause"&&p.isEnded();e=C.type==="ended"||C.type==="waiting"||C.type==="timeupdate"&&!g.B(b, +4)&&!t2(N,e);if(L||P&&e)p.Cq()>0&&p.R$()&&(c=14);else switch(C.type){case "error":xe(p)&&(c|=128);break;case "pause":g.B(b,256)?(c^=256)||(c=64):g.B(b,32)||g.B(b,2)||g.B(b,4)||(c=4,g.B(b,1)&&g.B(b,8)&&(c|=1));break;case "playing":e=c;c=(c|8)&-1093;e&4?(c|=1,C3(N,p,!0)):t2(N,p.getCurrentTime())&&(c&=-2);g.B(b,1)&&C3(N,p)&&(c|=1);break;case "seeking":c|=16;g.B(b,8)&&(c|=1);c&=-3;break;case "seeked":c&=-17;C3(N,p,!0);break;case "waiting":g.B(b,2)||(c|=1);C3(N,p);break;case "timeupdate":e=g.B(b,16),P= +g.B(b,4),(g.B(b,8)||e)&&!P&&t2(N,p.getCurrentTime())&&(c=8),C3(N,p)&&(c|=1)}}N=c;c=null;N&128&&(c=C.target,p=xe(c),e=1,p?(p==="capability.changed"&&(e=2),P="GENERIC_WITHOUT_LINK",L=c.jf(),L.mediaElem="1",/AUDIO_RENDERER/.test(c.WL())&&(P="HTML5_AUDIO_RENDERER_ERROR"),c={errorCode:p,errorMessage:g.tO[P]||"",OQ:P,dN:VX(L),Sa:e,cpn:b.N9?b.N9.cpn:""}):c=null,c&&(c.cpn=h));b=b$(b,N,c)}!g.B(this.playerState,1)&&g.B(b,1)&&xg1(this,"evt"+C.type);this.WW(b)}}}; +g.k.Fo$=function(C){C=C.j.availability==="available";C!==this.gq&&(this.gq=C,this.publish("airplayavailabilitychange"))}; +g.k.Lo6=function(){var C=(0,g.Ai)(),b=this.mediaElement.r0();this.jp("airplay",{ia:b});!b&&!isNaN(this.rP)&&C-this.rP<2E3||(this.rP=C,b!==this.r0()&&(C=this.visibility,C.j!==b&&(C.j=b,C.ws()),this.jp("airplay",{rbld:b}),this.w2()),this.publish("airplayactivechange"))}; +g.k.Sr=function(C){if(this.Xo){var b=this.Xo,h=b.X,N=b.getCurrentTime(),p=Date.now()-h.V;h.V=NaN;h.jp("sdai",{adfetchdone:C,d:p});C&&!isNaN(h.J)&&h.K!==3&&AT(h.Xo,N,h.J,h.G);h.policy.G?h.N=NaN:h.X=NaN;m_(h,4,h.K===3?"adfps":"adf");wp(b)}}; +g.k.sZ=function(){g.$G(this.A5);this.EN.stop();this.videoData.nO=!0;this.If.lW=!0;this.If.AZ=0;var C=this.rH;if(C.videoData.K){var b=C.Rf.G,h=C.videoData.K.PE;b.K.has(h)&&(b.K.delete(h),TM(b))}C.j.stop();this.rM();g.B(this.playerState,8)&&this.WW(NO(this.playerState,65));this.eU=!1;CTl(this.CJ());g.be(this.mW);this.publish("playbackstarted");(C=g.Dx("yt.scheduler.instance.clearPriorityThreshold"))?C():N$(0,0)}; +g.k.rM=function(){var C=this.bf.PW(),b={},h={};!d8("pbs",this.DJ.timerName)&&y3.measure&&y3.getEntriesByName&&(y3.getEntriesByName("mark_nr")[0]?IYl("mark_nr"):IYl());C.videoId&&(b.videoId=C.videoId);C.clientPlaybackNonce&&!this.D("web_player_early_cpn")&&(b.clientPlaybackNonce=C.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(h.isPausedOnLoad=!0);h.itag=C.K?Number(C.K.itag):-1;C.OU&&(h.preloadType=String(this.ow?2:1));b.liveStreamMode=UA0[aD(C)];b.playerInfo=h;this.DJ.infoGel(b); +if(this.Xo){C=this.Xo.timing;window&&window.performance&&window.performance.getEntriesByName&&(C.N&&(b=window.performance.getEntriesByName(C.N),b.length&&(b=b[0],C.tick("vri",b.fetchStart),C.tick("vdns",b.domainLookupEnd),C.tick("vreq",b.requestStart),C.tick("vrc",b.responseEnd))),C.K&&(b=window.performance.getEntriesByName(C.K),b.length&&(b=b[0],C.tick("ari",b.fetchStart),C.tick("adns",b.domainLookupEnd),C.tick("areq",b.requestStart),C.tick("arc",b.responseEnd))));C=C.ticks;for(var N in C)C.hasOwnProperty(N)&& +this.DJ.tick(N,C[N])}}; +g.k.Eh=function(C,b,h){C=(C+(this.zG===3?.3:0))/b;b=Math.floor(C*4);b>this.zG&&(this.jp("vpq",{q:b,cpn:h||this.videoData.clientPlaybackNonce,ratio:C.toFixed(3)}),this.zG=b)}; +g.k.Jf=function(){this.zG=-1}; +g.k.cW=function(C){var b=this;C=C===void 0?!1:C;if(this.mediaElement&&this.videoData){WQx(this.Jk,this.isPlaying());var h=this.getCurrentTime();!this.Xo||g.B(this.playerState,4)&&g.SM(this.videoData)||g.B(this.playerState,32)&&x6(this.videoData)||lSl(this.Xo,h);this.D("html5_ssap_pacf_qoe_ctmp")&&this.playerType===2&&this.Eh(h,this.videoData.lengthSeconds);h>5&&(this.Jk.X=h);var N=g.hi();N?g.WD.E2(this.v1):g.SX(this.v1);var p=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!p||Ev(this.videoData))&& +!g.B(this.playerState,128)){var P=function(){if(b.mediaElement&&!g.B(b.playerState,128)){b.If.tZ()&&wY1(b,"pfx");var c=b.getCurrentTime();b.D("html5_buffer_underrun_transition_fix")&&(c-=b.Z9());var e=B6(b.mediaElement),L=g.B(b.playerState,8),Z=t2(b.XA,c),Y=rMx(b.XA,c,(0,g.Ai)(),e);L&&Z?b.WW(NO(b.playerState,1)):L&&Y?(L=b.getDuration(),Z=NF(b.videoData),L&&Math.abs(L-c)<1.1?(b.jp("setended",{ct:c,bh:e,dur:L,live:Z}),b.mediaElement.wf()?(b.logger.debug("seek to 0 because of looping"),b.seekTo(0,{Cj:"videoplayer_loop", +seekSource:37})):b.DN()):(b.playerState.isBuffering()||xg1(b,"progress_fix"),b.WW(hI(b.playerState,1)))):(L&&!Z&&!Y&&c>0&&(L=(Date.now()-b.Kx)/1E3,Z=b.getDuration(),c>Z-1&&b.jp("misspg",{t:c.toFixed(2),d:Z.toFixed(2),r:L.toFixed(2),bh:e.toFixed(2)})),b.playerState.isPaused()&&b.playerState.isBuffering()&&B6(b.mediaElement)>5&&b.WW(NO(b.playerState,1)));b.cW()}}; +this.mediaElement.Ce().length===0?this.v1=N?g.WD.Vy(P,100):g.Fu(P,100):this.v1=N?g.WD.Vy(P,500):g.Fu(P,500)}this.videoData.CO=h;this.Ib&&this.Ib.VO();!C&&this.isPlaying()&&ECc(this);OfW(this.zQ,this.BL,this.Q_(),this.isBackground())&&aY(this);this.publish("progresssync",this,C);p&&Ev(this.videoData)&&this.publish("onVideoProgress",this,this.getCurrentTime())}}; +g.k.Oy=function(){this.u3("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; +g.k.Bc=function(){return this.CJ().Bc()}; +g.k.EO=function(){return this.Xo?this.Xo.EO():ah(this.If.schedule,!0)}; +g.k.WW=function(C){if(!g.p3(this.playerState,C)){this.logger.debug(function(){return"Setting state "+C.toString()}); +var b=new g.YH(C,this.playerState);this.playerState=C;CSH(this);var h=!this.KA.length;this.KA.push(b);var N=this.mediaElement&&this.mediaElement.isSeeking();N=b.oldState.state===8&&!N;g.l1(b,1)&&N&&g.B(this.playerState,8)&&!g.B(this.playerState,64)&&this.Xo&&(X7S(this.Xo),this.mediaElement&&B6(this.mediaElement)>=5&&KAW(this.zQ,this.BL)&&aY(this));(N=g.Zc(this.If.experiments,"html5_ad_timeout_ms"))&&this.videoData.isAd()&&g.B(C,1)&&(g.B(C,8)||g.B(C,16))?this.yl.start(N):this.yl.stop();(ax(b,8)<0|| +g.l1(b,1024))&&this.EN.stop();!g.l1(b,8)||this.videoData.nO||g.B(b.state,1024)||this.EN.start();g.B(b.state,8)&&ax(b,16)<0&&!g.B(b.state,32)&&!g.B(b.state,2)&&this.playVideo();g.B(b.state,2)&&$8(this.videoData)&&(this.zI(this.getCurrentTime()),this.cW(!0));g.l1(b,2)&&(this.iJ(!0),this.If.tZ()&&this.D("html5_sabr_parse_live_metadata_playback_boundaries")&&x6(this.videoData)&&this.videoData.j&&(N={minst:""+this.videoData.j.J_,cminst:""+(this.videoData.j.Mo()+this.Z9()),maxst:""+this.videoData.j.nI, +hts:""+this.videoData.j.N2,cmaxst:""+(this.videoData.j.J8()+this.Z9())},this.jp("sabrSeekableBoundaries",N)));g.l1(b,128)&&this.Oc();this.videoData.j&&this.videoData.isLivePlayback&&!this.WU&&(ax(b,8)<0?B6K(this.videoData.j):g.l1(b,8)&&this.videoData.j.resume());DD1(this.Jk,b);hHS(this.CJ(),b);if(h&&!this.HE())try{for(var p=g.z(this.KA),P=p.next();!P.done;P=p.next()){var c=P.value;GGc(this.Zx,c);this.publish("statechange",c)}}finally{this.KA.length=0}}}; +g.k.a9=function(){this.DJ.tick("qoes")}; +g.k.Xx=function(){this.Jk.Xx()}; +g.k.c_=function(C,b,h,N){a:{var p=this.rH;N=N===void 0?"LICENSE":N;h=h.substring(0,256);var P=qw(b);C==="drm.keyerror"&&this.UG&&this.UG.K.keys.length>1&&p.X<96&&(C="drm.sessionlimitexhausted",P=!1);if(P)if(p.videoData.K&&p.videoData.K.video.isHdr())MQl(p,C);else{if(p.vE.u3(C,b,N,h),li1(p,{detail:h}))break a}else p.zE(C,{detail:h});C==="drm.sessionlimitexhausted"&&(p.jp("retrydrm",{sessionLimitExhausted:1}),p.X++,Ijl(p.vE))}}; +g.k.l92=function(){var C=this,b=g.Zc(this.If.experiments,"html5_license_constraint_delay"),h=hJ();b&&h?(b=new g.C2(function(){C.z7();G$(C)},b),g.D(this,b),b.start()):(this.z7(),G$(this))}; +g.k.hD=function(C){this.publish("heartbeatparams",C)}; +g.k.lx=function(C){this.jp("keystatuses",DFc(C));var b="auto",h=!1;this.videoData.K&&(b=this.videoData.K.video.quality,h=this.videoData.K.video.isHdr());if(this.D("html5_drm_check_all_key_error_states")){var N=dFH(b,h);N=YO(C)?WNV(C,N):C.X.includes(N)}else{a:{b=dFH(b,h);for(N in C.j)if(C.j[N].status==="output-restricted"){var p=C.j[N].type;if(b===""||p==="AUDIO"||b===p){N=!0;break a}}N=!1}N=!N}if(this.D("html5_enable_vp9_fairplay")){if(h)if(C.L){var P;if((P=this.UG)==null?0:yZ(P.j))if((h=this.UG)== +null)h=0;else{b=P=void 0;p=g.z(h.K.values());for(var c=p.next();!c.done;c=p.next())c=c.value,P||(P=E86(c,"SD")),b||(b=E86(c,"AUDIO"));h.QX({sd:P,audio:b});h=P==="output-restricted"||b==="output-restricted"}else h=!N;if(h){this.jp("drm",{dshdr:1});MQl(this.rH);return}}else{this.videoData.mf||(this.videoData.mf=!0,this.jp("drm",{dphdr:1}),this.B6(!0));return}var e;if((e=this.UG)==null?0:yZ(e.j))return}else if(e=C.L&&N,h&&!e){MQl(this.rH);return}N||WNV(C,"AUDIO")&&WNV(C,"SD")||(this.logger.debug("All formats are output restricted, Retry or Abort"), +C=DFc(C),this.hf?(this.logger.debug("Output restricted, playback cannot continue"),this.publish("drmoutputrestricted"),this.D("html5_report_fatal_drm_restricted_error_killswitch")||this.u3("drm.keyerror",2,void 0,"info."+C)):(this.hf=!0,this.zE(new Mw("qoe.restart",Object.assign({},{retrydrm:1},C))),aY(this),Ijl(this)))}; +g.k.Cff=function(){if(!this.videoData.nO&&this.mediaElement&&!this.isBackground()){var C="0";this.mediaElement.qZ()>0&&B6(this.mediaElement)>=5&&this.videoData.N&&this.videoData.N.j&&(this.WW(hI(this.playerState,1)),xg1(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),C="1");CSH(this);var b=this.videoData.N;C={restartmsg:C,mfmt:!tq(this.videoData),mdrm:!(!(b&&b.videoInfos&&b.videoInfos.length&&b.videoInfos[0].f9)||this.UG),mfmtinfo:!this.videoData.K,prerolls:this.uN()?this.SZ.join(","): +"0"};if(this.UG){b=this.UG;if(b.K.size<=0){var h="ns;";b.V||(h+="nr;");b=h+="ql."+b.N.length}else b=DFc(b.K.values().next().value),b=VX(b);C.drmp=b}var N;Object.assign(C,((N=this.Xo)==null?void 0:N.jf())||{});var p;Object.assign(C,((p=this.mediaElement)==null?void 0:p.jf())||{});this.CJ().zE("qoe.start15s",VX(C));this.publish("loadsofttimeout")}}; +g.k.zI=function(C){this.videoData.lengthSeconds!==C&&(this.videoData.lengthSeconds=C,G$(this))}; +g.k.iJ=function(C,b){var h=this;C=C===void 0?!1:C;if(!this.GG)if(d8("att_s","player_att")||EG("att_s",void 0,"player_att"),this.D("use_rta_for_player"))(function(){var p,P,c,e;return g.R(function(L){switch(L.j){case 1:if(!(p=C)){L.WE(2);break}return g.J(L,g.qxK(),3);case 3:p=!L.K;case 2:if(p)return L.return();g.z6(L,4);P=PTc(h.CJ());if(!P)throw Error();c={};return g.J(L,g.M8l((c.cpn=h.videoData.clientPlaybackNonce,c.encryptedVideoId=h.videoData.videoId||"",c),3E4),6);case 6:e=L.K;if(h.GG)throw Error(); +if(!e.challenge)throw g.QB(Error("Not sending attestation ping; no attestation challenge string")),Error();h.GG=!0;var Z=[e.challenge];e.error?Z.push("r1c="+e.error):e.webResponse&&Z.push("r1a="+e.webResponse);var Y;((Y=e.adblockReporting)==null?void 0:Y.reportingStatus)!==void 0&&Z.push("r6a="+e.adblockReporting.reportingStatus);var a;((a=e.adblockReporting)==null?void 0:a.broadSpectrumDetectionResult)!==void 0&&Z.push("r6b="+e.adblockReporting.broadSpectrumDetectionResult);P(Z.join("&"));EG("att_f", +void 0,"player_att");g.VH(L,0);break;case 4:g.MW(L),EG("att_e",void 0,"player_att"),g.$_(L)}})})().then(function(){b==null||b()}); +else{var N=new g.z5_(this.videoData);if("c1a"in N.oI&&!g.MS.isInitialized()){EG("att_wb",void 0,"player_att");this.Yz===2&&Math.random()<.01&&g.QB(Error("Botguard not available after 2 attempts"));if(C)return;if(this.Yz<5){g.be(this.g6);this.Yz++;return}}(N=g.Hkl(N))?(EG("att_f",void 0,"player_att"),pOW(this.CJ(),N),this.GG=!0):EG("att_e",void 0,"player_att")}}; +g.k.CB=function(C){C=C===void 0?!1:C;if(NF(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.Dt()||g.SM(this.videoData)))C=this.getCurrentTime();else if(g.sF(this.videoData)&&this.Ib){C=this.Ib;var b=this.getCurrentTime();C=(C=gZo(C,b*1E3))?(C.tT()-C.HF())/1E3:0}else C=this.J8(C);return C}; +g.k.Sx=function(){return g.sF(this.videoData)?this.videoData.Mo():this.Mo()}; +g.k.J8=function(C){return this.Jk.J8(C===void 0?!1:C)}; +g.k.Mo=function(){return this.Jk.Mo()}; +g.k.Z9=function(){return this.Jk?this.Jk.Z9():0}; +g.k.getStreamTimeOffset=function(){return this.Jk?this.Jk.getStreamTimeOffset():0}; +g.k.c5=function(){var C=0;this.If.D("web_player_ss_media_time_offset")&&(C=this.getStreamTimeOffset()===0?this.Z9():this.getStreamTimeOffset());return C}; +g.k.setPlaybackRate=function(C){var b;this.playbackRate!==C&&r7K(this.zQ,(b=this.videoData.N)==null?void 0:b.videoInfos)&&(this.playbackRate=C,aY(this));this.playbackRate=C;this.mediaElement&&this.mediaElement.setPlaybackRate(C)}; +g.k.getPlaybackRate=function(){return this.playbackRate}; +g.k.getPlaybackQuality=function(){var C="unknown";if(this.videoData.K&&(C=this.videoData.K.video.quality,C==="auto"&&this.mediaElement)){var b=this.uP();b&&b.videoHeight>0&&(C=QX(b.videoWidth,b.videoHeight))}return C}; +g.k.isHdr=function(){return!!(this.videoData.K&&this.videoData.K.video&&this.videoData.K.video.isHdr())}; +g.k.Q7=function(){this.CJ().Q7()}; +g.k.sendVideoStatsEngageEvent=function(C,b){var h=this.CJ();h.j?(h=UL(h.j,"engage"),h.N2=C,h.send(b)):b&&b()}; +g.k.Uq=function(C){return this.CJ().Uq(C)}; +g.k.isAtLiveHead=function(C,b){b=b===void 0?!1:b;return NF(this.videoData)&&(this.wQ||b)?this.Jk.isAtLiveHead(C):!1}; +g.k.m7=function(){var C=this.J8(),b=this.getCurrentTime(),h;(h=!NF(this.videoData))||(h=this.Jk,h=!(h.j&&h.j.N));return h||this.Dt()||isNaN(C)||isNaN(b)?0:Math.max(0,C-b)}; +g.k.K_=function(C){(this.wQ=C)||this.EN.stop();this.videoData.j&&(C?this.videoData.j.resume():B6K(this.videoData.j));if(this.Xo){var b=this.videoData.D("html5_disable_preload_for_ssdai_with_preroll")&&this.zJ()&&this.videoData.isLivePlayback;C&&!b?this.Xo.resume():VF(this,!0)}g.B(this.playerState,2)||C?g.B(this.playerState,512)&&C&&this.WW(NO(this.playerState,512)):this.WW(hI(this.playerState,512));b=this.CJ();b.qoe&&(b=b.qoe,g.mQ(b,g.HO(b.provider),"stream",[C?"A":"I"]))}; +g.k.Vp=function(C){C={n:C.name,m:C.message};this.CJ().zE("player.exception",VX(C))}; +g.k.L5=NW(25);g.k.Kk=NW(52);g.k.eX=function(C){this.CJ().eX(C)}; +g.k.ZN=function(C){this.CJ().ZN(C)}; +g.k.W1=function(C){this.CJ().W1(C)}; +g.k.eq=NW(30);g.k.ke=NW(35);g.k.nH=function(C){this.CJ().nH(C)}; +g.k.Ze=function(){this.jp("hidden",{},!0)}; +g.k.Qs=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; +g.k.Ct=function(){return this.Xo?this.Xo.Ct():!0}; +g.k.setLoop=function(C){this.loop=C;this.mediaElement&&!g.m9(this.If)&&this.mediaElement.setLoop(C);this.Xo&&this.D("html5_loop_skip_set_end_of_stream")&&(C?this.Xo.policy.ob=!0:Kel(this.Xo))}; +g.k.wf=function(){return this.mediaElement&&!g.m9(this.If)?this.mediaElement.wf():this.loop}; +g.k.pm=function(C){this.jp("timestamp",{o:C.toString()});this.Jk.pm(C)}; +g.k.xt=function(C){this.DJ.tick(C)}; +g.k.Jy=function(C){return this.DJ.Jy(C)}; +g.k.Ap=function(C){this.DJ.Ap(C)}; +g.k.jp=function(C,b,h){h=h===void 0?!1:h;this.CJ().jp(C,b,h)}; +g.k.tp=function(C,b,h){h=h===void 0?!1:h;this.CJ().jp(C,b,h)}; +g.k.zE=function(C){this.CJ().zE(C.errorCode,VX(C.details));C=C.errorCode;if(this.videoData.isLivePlayback&&(C==="qoe.longrebuffer"||C==="qoe.slowseek")||C==="qoe.restart"){C=this.Xo?Syo(this.Xo.videoTrack):{};var b,h;this.jp("lasoe",Object.assign(this.Xo?Syo(this.Xo.audioTrack):{},(b=this.pO)==null?void 0:(h=b.j)==null?void 0:h.hn()));var N,p;this.jp("lvsoe",Object.assign(C,(N=this.pO)==null?void 0:(p=N.K)==null?void 0:p.hn()))}}; +g.k.B1=function(C,b,h){this.CJ().B1(C,b,h)}; +g.k.nN=function(C,b,h,N,p,P,c,e){var L;if((L=this.videoData.j)!=null&&L.isLive){var Z=b.playerType===2?b:C,Y=C.videoData.videoId,a=b.videoData.videoId;if(Y&&a){L=this.CJ();if(L.qoe){var l=L.qoe,F=C.cpn,G=b.cpn,V=Z.videoData.IV,q=l.provider.videoData.clientPlaybackNonce,f=l.provider.videoData.videoId,y=G!==q&&a!==f;q=F!==q&&Y!==f;l.reportStats();l.adCpn&&l.adCpn!==F||(l.adCpn=q?F:"",l.KO=q?Y:"",l.adFormat=q?V:void 0,iT(l,2,P?4:p?2:0,G,a,N),l.reportStats(),l.adCpn=y?G:"",l.KO=y?a:"",l.adFormat=y?V: +void 0,iT(l,2,P?5:p?3:1,F,Y,h),l.reportStats())}h=C.cpn;if(L.N.has(h)){if(p=L.N.get(h),sL(p,!0).send(),KJ(p),h!==L.provider.videoData.clientPlaybackNonce){ELK(p);var u;(u=L.j)==null||Owo(u);L.N.delete(h)}}else L.jq=L.provider.videoData.clientPlaybackNonce,L.jq&&L.j&&(L.N.set(L.jq,L.j),sL(L.j).send(),KJ(L.j));u=b.cpn;Z=Z.videoData;N-=this.c5();if(L.N.has(u)){N=L.N.get(u);var K=N.N&&isNaN(N.G)?X8(N):NaN;N=Wvo(N,!1);isNaN(K)||(N.J=K);N.send()}else N=j_V(L,L.provider,Z,N),L.N.set(u,N),nLl(N,new g.YH(hI(new g.w6, +8),new g.w6)),sgl(N),(K=L.j)==null||KJ(K);L.jq=u;this.D("html5_unify_csi_server_stitched_transition_logging")?dsH(C.cpn,b.cpn,this.videoData.clientPlaybackNonce,b.videoData,c,void 0,e):(K=this.videoData.clientPlaybackNonce,L=b.videoData,C=(C.cpn===K?"video":"ad")+"_to_"+(b.cpn===K?"video":"ad"),K={},L.W&&(K.cttAuthInfo={token:L.W,videoId:L.videoId}),c&&(K.startTime=c),Dd(C,K),g.vs({targetVideoId:L.videoId,targetCpn:b.cpn,isSsdai:!0},C),OG("pbs",e!=null?e:(0,g.Ai)(),C))}}else b=this.logger,NEo(b.tag, +5,"SSTEvent for nonSS",b.K)}; +g.k.Gz=function(){var C=this.bf,b=C.FF;C.FF=[];return b}; +g.k.gb=function(C){this.videoData.tU=!0;this.zE(new Mw("sabr.fallback",C));this.B6(!0)}; +g.k.FT=function(C,b){this.videoData.zt=!0;if(b===void 0||b)this.zE(new Mw("qoe.restart",C)),this.B6(!0);this.videoData.qz()&&this.D("html5_reload_caption_on_ssdai_fallback")&&this.bf.d4()}; +g.k.Bu=function(C){this.jp("sdai",{aftimeout:C});this.zE(new Mw("ad.fetchtimeout",{timeout:C}))}; +g.k.Z5=function(C,b){this.jp("timelineerror",C);C=new Mw("dai.timelineerror",C);b?this.u3("dai.timelineerror",1,"RETRYABLE_ERROR",VX(C.details)):this.zE(C)}; +g.k.YA=function(){return g.HO(this.CJ().provider)}; +g.k.getPlayerSize=function(){return this.w1.getPlayerSize()}; +g.k.xe=function(){return this.w1.xe()}; +g.k.FX=function(){return this.DJ}; +g.k.FG=function(){return this.bf.FG()}; +g.k.getVolume=function(){return this.bf.getVolume()}; +g.k.GI=function(){return this.bf.GI()}; +g.k.isMuted=function(){return this.bf.isMuted()}; +g.k.TP=function(){return this.bf.TP()}; +g.k.TD=function(){this.WU=!0}; +g.k.D=function(C){return this.If.D(C)}; +g.k.oW=function(C,b,h,N,p){this.jp("xvt",{m:C,g:b?1:0,tt:h?1:0,np:N?1:0,c:p})}; +g.k.MH=function(){var C;(C=this.Xo)==null||C.resume()}; +g.k.zJ=function(){return g.xI(this.SZ,"ad")}; +g.k.WK=function(){var C=this.getCurrentTime(),b=C-this.Z9();var h=this.mediaElement?jJ(this.mediaElement.XX()):0;h=Math.floor(Math.max(h-b,0))+100;var N;if(!this.D("html5_ssdai_disable_seek_to_skip")&&((N=this.Xo)==null?0:N.yL(b,this.J8())))return this.jp("sdai",{skipad:1,ct:b.toFixed(3),adj:0}),!0;var p;return((p=this.Xo)==null?0:p.WK(b,h))?(this.jp("sdai",{skipad:1,ct:b.toFixed(3),adj:h.toFixed(3)}),x6(this.videoData)&&this.Xo.seek(b+h,{seekSource:89,Cj:"videoplayer_skipServerStitchedAd"}),baS(this.Jk, +C),!0):!1}; +g.k.tZ=function(){return this.If.tZ()}; +g.k.Bm=function(){if(this.D("html5_generate_content_po_token"))return this.videoData.qj||"";this.bf.IE();return this.If.k6||""}; +g.k.uM=function(){if(this.videoData.videoId)return this.videoData.tA}; +g.k.tb=function(){return this.videoData.videoId}; +g.k.Be=function(){return this.bf.V5}; +g.k.UD=function(){return this.eU}; +g.k.VM=function(){return this.bf.VM()}; +g.k.il=function(C,b){this.Jk.il(C,b)}; +g.k.xv=function(){this.Jk.xv()}; +g.k.Q0=function(C,b){var h=this.D("html5_generate_content_po_token")?this.videoData:void 0;this.bf.Q0(C,b,h)}; +g.k.dC=function(C,b){var h;(h=this.Xo)==null||h.dC(C,b)}; +g.k.nu=function(){var C=this.Jj();return!!C&&C.nu()}; +g.k.VP=function(){return this.Ib}; +g.k.H1=function(C,b){this.CJ().H1(C,b)}; +g.k.bP=function(){return this.CJ().bP()}; +g.k.iP=function(){return this.videoData.JA}; +g.k.nf=function(){return this.bf.nf()}; +g.k.kF=function(){return this.bf.kF(this)}; +g.k.M7=function(){this.JB=!0}; +g.k.o4=function(){return this.YK}; +g.k.wF=function(C){var b;(b=this.Xo)==null||b.wF(C)};g.S(NO_,O_);g.S(gjx,O_);g.k=gjx.prototype;g.k.seekToChapterWithAnimation=function(C){var b=this;if(g.j3(this.api)&&!(C<0)){var h=this.api.getVideoData(),N=h.NZ;if(N&&C=0)return;b=~b;g.jo(this.items,b,0,C);gQ(this.menuItems.element,C.element,b)}C.subscribe("size-change",this.Wa,this);this.menuItems.publish("size-change")}; +g.k.Sq=function(C){C.unsubscribe("size-change",this.Wa,this);this.HE()||(g.Cs(this.items,C),this.menuItems.element.removeChild(C.element),this.menuItems.publish("size-change"))}; +g.k.Wa=function(){this.menuItems.publish("size-change")}; +g.k.focus=function(){for(var C=0,b=0;b1&&g.vY(this)}; +g.k.Hg=function(){JOl(this);this.Bb&&(rOK(this),g.Hc(this.element,this.size))}; +g.k.ql=function(){var C=this.j.pop();iPS(this,C,this.j[this.j.length-1],!0)}; +g.k.YL=function(C){if(!C.defaultPrevented)switch(C.keyCode){case 27:this.QV();C.preventDefault();break;case 37:this.j.length>1&&this.ql();C.preventDefault();break;case 39:C.preventDefault()}}; +g.k.focus=function(){this.j.length&&this.j[this.j.length-1].focus()}; +g.k.wO=function(){g.iv.prototype.wO.call(this);this.W&&this.W.dispose();this.J&&this.J.dispose()};g.S(Dj,g.sd);Dj.prototype.open=function(C,b){this.initialize(C.items)&&this.mE(b,!!b)}; +Dj.prototype.initialize=function(C){g.Ka(this.Zb);if(C===void 0||C.length===0)return!1;var b=C.length;C=g.z(C);for(var h=C.next();!h.done;h=C.next())this.hk(h.value,b--);return!0}; +Dj.prototype.hk=function(C,b){C.menuNavigationItemRenderer?QnK(this,C.menuNavigationItemRenderer,b):C.menuServiceItemRenderer&&UKc(this,C.menuServiceItemRenderer,b)};g.S(dT,QF);g.k=dT.prototype;g.k.JD=function(C){C.target!==this.dismissButton.element&&C.target!==this.overflowButton.element&&(this.JM(),this.onClickCommand&&this.Z.LO("innertubeCommand",this.onClickCommand))}; +g.k.Ga=function(){this.enabled=!1;this.V.hide()}; +g.k.r4=function(){return!!this.j&&this.enabled}; +g.k.onVideoDataChange=function(C,b){this.Or(b);if(this.j){this.vS();a:if(!this.isCounterfactual){var h,N,p;this.banner.update({title:(h=this.j)==null?void 0:h.title,subtitle:(N=this.j)==null?void 0:N.subtitle,metadata:(p=this.j)==null?void 0:p.metadataText});var P;this.onClickCommand=g.d((P=this.j)==null?void 0:P.onTap,Xt);var c;if(C=g.d((c=this.j)==null?void 0:c.onOverflow,Xt))this.J=g.d(C,Wh$);var e;if((e=this.j)==null?0:e.thumbnailImage){var L,Z;c=((L=this.j)==null?void 0:(Z=L.thumbnailImage)== +null?void 0:Z.sources)||[];if(c.length===0)break a;this.thumbnailImage.update({url:c[0].url})}else{var Y;if((Y=this.j)==null?0:Y.thumbnailIconName){var a;this.thumbnailIcon.update({icon:(a=this.j)==null?void 0:a.thumbnailIconName})}}var l;this.shouldShowOverflowButton=!((l=this.j)==null||!l.shouldShowOverflowButton);var F;this.shouldHideDismissButton=!((F=this.j)==null||!F.shouldHideDismissButton)}var G;this.banner.element.setAttribute("aria-label",((G=this.j)==null?void 0:G.a11yLabel)||"");var V; +this.CO=(V=this.j)==null?void 0:V.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;K2V(this)}}; +g.k.Hj4=function(){this.isVisible=!0;K2V(this)}; +g.k.QVo=function(){this.isVisible=!1;K2V(this)}; +g.k.Pr=function(){QF.prototype.Pr.call(this);this.K&&this.Z.logVisibility(this.banner.element,this.isVisible)}; +g.k.JM=function(){QF.prototype.JM.call(this,!1);this.K&&this.Z.logClick(this.banner.element)}; +g.k.mD=function(C){this.W||(this.W=new Dj(this.Z),g.D(this,this.W));var b,h;if((b=this.J)==null?0:(h=b.menu)==null?0:h.menuRenderer)this.W.open(this.J.menu.menuRenderer,C.target),C.preventDefault()}; +g.k.Or=function(){}; +g.k.vS=function(){}; +g.k.wO=function(){this.Z.Sh("suggested_action_view_model");QF.prototype.wO.call(this)};g.S(WY,dT); +WY.prototype.Or=function(C){var b,h,N;this.productUpsellSuggestedActionViewModel=g.d((b=C.getWatchNextResponse())==null?void 0:(h=b.playerOverlays)==null?void 0:(N=h.playerOverlayRenderer)==null?void 0:N.suggestedActionViewModel,cjC);var p;if((p=this.productUpsellSuggestedActionViewModel)==null?0:p.content){var P;this.j=g.d((P=this.productUpsellSuggestedActionViewModel)==null?void 0:P.content,vIe)}var c,e;if(this.K=!!((c=this.productUpsellSuggestedActionViewModel)==null?0:(e=c.loggingDirectives)==null? +0:e.trackingParams)){var L,Z;this.Z.setTrackingParams(this.banner.element,((L=this.productUpsellSuggestedActionViewModel)==null?void 0:(Z=L.loggingDirectives)==null?void 0:Z.trackingParams)||null)}var Y;this.isCounterfactual=!((Y=this.productUpsellSuggestedActionViewModel)==null||!Y.isCounterfactualServing)}; +WY.prototype.vS=function(){var C=[],b,h=g.z(((b=this.productUpsellSuggestedActionViewModel)==null?void 0:b.ranges)||[]);for(b=h.next();!b.done;b=h.next()){var N=b.value;N&&(b=Number(N.startTimeMilliseconds),N=Number(N.endTimeMilliseconds),isNaN(b)||isNaN(N)||C.push(new g.Ny(b,N,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.Z.A8(C)};g.S(snl,O_);g.S(Ed,O_);Ed.prototype.onVideoDataChange=function(C,b){var h=this;if(!Ov(b)&&(C==="newdata"&&vjl(this),this.K&&C==="dataloaded")){var N;Px(Ih(this.api.Y(),(N=this.api.getVideoData())==null?void 0:g.X5(N)),function(p){var P=njx(p);P&&(P=DKH(h,h.j||P))&&h.api.setAudioTrack(P,!0);h.N&&(h.N=!1,TOl(h,p))})}}; +Ed.prototype.CZ=function(){var C=this;if(g.m9(this.api.Y())){var b,h=g.BI(this.api.Y(),(b=this.api.getVideoData())==null?void 0:g.X5(b));return Px(hd(h),function(N){var p=yG();rY(p,N);return C.api.CZ(p)})}return hd(this.api.CZ())};g.S(g.tn,g.U_);g.k=g.tn.prototype;g.k.open=function(){g.Od(this.xg,this.K)}; +g.k.ra=function(C){BOo(this);var b=this.options[C];b&&(b.element.setAttribute("aria-checked","true"),this.jh(this.o0(C)),this.N=C)}; +g.k.GC=function(C){g.Ka(this.K);for(var b={},h=!1,N=0;N=0?this.j.playbackRate:1}catch(C){return 1}}; +g.k.setPlaybackRate=function(C){this.getPlaybackRate()!==C&&(this.j.playbackRate=C);return C}; +g.k.wf=function(){return this.j.loop}; +g.k.setLoop=function(C){this.j.loop=C}; +g.k.canPlayType=function(C,b){return this.j.canPlayType(C,b)}; +g.k.isPaused=function(){return this.j.paused}; +g.k.isSeeking=function(){return this.j.seeking}; +g.k.isEnded=function(){return this.j.ended}; +g.k.lM=function(){return this.j.muted}; +g.k.eK=function(C){Jm();this.j.muted=C}; +g.k.Ce=function(){return this.j.played||hA([],[])}; +g.k.XX=function(){try{var C=this.j.buffered}catch(b){}return C||hA([],[])}; +g.k.Zd=function(){return this.j.seekable||hA([],[])}; +g.k.vy=function(){var C=this.j;return C.getStartDate?C.getStartDate():null}; +g.k.getCurrentTime=function(){return this.j.currentTime}; +g.k.setCurrentTime=function(C){this.j.currentTime=C}; +g.k.getDuration=function(){return this.j.duration}; +g.k.load=function(){var C=this.j.playbackRate;try{this.j.load()}catch(b){}this.j.playbackRate=C}; +g.k.pause=function(){this.j.pause()}; +g.k.play=function(){var C=this.j.play();if(!C||!C.then)return null;C.then(void 0,function(){}); +return C}; +g.k.qZ=function(){return this.j.readyState}; +g.k.Cq=function(){return this.j.networkState}; +g.k.LX=function(){return this.j.error?this.j.error.code:null}; +g.k.WL=function(){return this.j.error?this.j.error.message:""}; +g.k.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.j instanceof window.HTMLVideoElement&&this.j.getVideoPlaybackQuality)return this.j.getVideoPlaybackQuality();if(this.j){var C=this.j,b=C.webkitDroppedFrameCount;if(C=C.webkitDecodedFrameCount)return{droppedVideoFrames:b||0,totalVideoFrames:C}}return{}}; +g.k.r0=function(){return!!this.j.webkitCurrentPlaybackTargetIsWireless}; +g.k.Vr=function(){return!!this.j.webkitShowPlaybackTargetPicker()}; +g.k.togglePictureInPicture=function(){var C=this.j,b=window.document;window.document.pictureInPictureEnabled?this.j!==b.pictureInPictureElement?C.requestPictureInPicture():b.exitPictureInPicture():ii()&&C.webkitSetPresentationMode(C.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; +g.k.ud=function(){var C=this.j;return new g.ZZ(C.offsetLeft,C.offsetTop)}; +g.k.getSize=function(){return g.Vx(this.j)}; +g.k.setSize=function(C){g.Hc(this.j,C)}; +g.k.getVolume=function(){return this.j.volume}; +g.k.setVolume=function(C){Jm();this.j.volume=C}; +g.k.eH=function(C){this.G[C]||(this.j.addEventListener(C,this.listener),this.G[C]=this.listener)}; +g.k.setAttribute=function(C,b){this.j.setAttribute(C,b)}; +g.k.removeAttribute=function(C){this.j.removeAttribute(C)}; +g.k.hasAttribute=function(C){return this.j.hasAttribute(C)}; +g.k.Ow=NW(57);g.k.vV=NW(59);g.k.jk=NW(61);g.k.rl=NW(63);g.k.Yv=function(){return $a(this.j)}; +g.k.Bj=function(C){g.c4(this.j,C)}; +g.k.aQ=function(C){return g.au(this.j,C)}; +g.k.Sj=function(){return g.PP(document.body,this.j)}; +g.k.audioTracks=function(){var C=this.j;if("audioTracks"in C)return C.audioTracks}; +g.k.wO=function(){for(var C=g.z(Object.keys(this.G)),b=C.next();!b.done;b=C.next())b=b.value,this.j.removeEventListener(b,this.G[b]);tA.prototype.wO.call(this)}; +g.k.Pu=function(C){this.j.disableRemotePlayback=C};g.S(PS,g.n);g.S(cS,g.n);cS.prototype.show=function(){g.n.prototype.show.call(this);this.l$();this.h4.D("html5_enable_moving_s4n_window")&&g.m9(this.h4.Y())&&this.L()}; +cS.prototype.hide=function(){g.n.prototype.hide.call(this);this.delay.stop();this.X.stop()}; +cS.prototype.l$=function(){var C=(0,g.Ai)(),b=jXl(this.h4);jL(this.j,b.bandwidth_samples);jL(this.J,b.network_activity_samples);jL(this.N,b.live_latency_samples);jL(this.K,b.buffer_health_samples);var h={};b=g.z(Object.entries(b));for(var N=b.next();!N.done;N=b.next()){var p=g.z(N.value);N=p.next().value;p=p.next().value;this.V[N]!==p&&(h[N]=" "+String(p));this.V[N]=p}this.update(h);C=(0,g.Ai)()-C>25?5E3:500;this.delay.start(C)}; +cS.prototype.L=function(){this.W?(this.position+=1,this.position>15&&(this.W=!1)):(--this.position,this.position<=0&&(this.W=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.X.start(2E4)};g.S(eWl,O_);g.S(kj,g.O);kj.prototype.j=function(){var C=(0,g.Ai)()-this.startTime;C=Cthis.X[C])&&(this.j=C,VUS(this))}; +g.k.onCueRangeExit=function(C){var b=Hhl(this,C);b&&this.j===C&&this.api.LO("innertubeCommand",b);this.clearTimeout();this.j=void 0}; +g.k.onTimeout=function(C){this.j!==void 0&&(C==null?void 0:C.cueRangeId)===this.j&&(C=Hhl(this,this.j))&&this.api.LO("innertubeCommand",C)}; +g.k.J7=function(C){this.K=C}; +g.k.Ha=function(){VUS(this);this.K=void 0}; +g.k.setTimeout=function(C){var b=this,h=Number(C==null?void 0:C.maxVisibleDurationMilliseconds);h&&(this.clearTimeout(),this.G=setTimeout(function(){b.onTimeout(C)},h))}; +g.k.clearTimeout=function(){this.G&&clearTimeout(this.G);this.G=void 0}; +g.k.wO=function(){this.timelyActions=this.K=this.j=this.videoId=void 0;this.X={};this.AR();this.clearTimeout();O_.prototype.wO.call(this)};g.S(ms1,O_);var zP={},XHl=(zP[1]="pot_ss",zP[2]="pot_sf",zP[3]="pot_se",zP[4]="pot_xs",zP[5]="pot_xf",zP[6]="pot_xe",zP),Kqo=["www.youtube-nocookie.com","www.youtubeeducation.com"];g.S(an,O_);an.prototype.wO=function(){this.W&&(g.$G(this.W),this.W=void 0);O_.prototype.wO.call(this)}; +an.prototype.IE=function(){(this.j?!this.j.isReady():this.K)&&on(this)}; +an.prototype.F8=function(C,b,h){var N=this;if(ALl(C)){var p=h||"",P;if((P=this.j)==null?0:P.isReady())b=Fq(this,p),yLx(C,b);else{var c=new g.o0;b.push(c.promise);this.X.promise.then(function(){var e=Fq(N,p);yLx(C,e);c.resolve()})}}}; +an.prototype.D7=function(C){var b=this;if(this.j||this.K)C.qj=Fq(this,C.videoId),this.j&&!this.j.isReady()&&(this.N=new nI,this.X.promise.then(function(){b.DJ.Jy("pot_if");C.qj=Fq(b,C.videoId)}))};g.S(Oho,O_);g.S(GD,g.O);GD.prototype.j=function(){for(var C=g.z(g.ro.apply(0,arguments)),b=C.next();!b.done;b=C.next())(b=b.value)&&this.features.push(b)}; +GD.prototype.wO=function(){for(var C=this.features.length-1;C>=0;C--)this.features[C].dispose();this.features.length=0;g.O.prototype.wO.call(this)};SL.prototype.gY=function(){this.K=(0,g.Ai)()}; +SL.prototype.reset=function(){this.j=this.K=NaN}; +SL.prototype.zK=function(C,b){if(C.clientPlaybackNonce&&!isNaN(this.j)){if(Math.random()<.01){b=b?"pbp":"pbs";var h={startTime:this.j};C.W&&(h.cttAuthInfo={token:C.W,videoId:C.videoId});Dd("seek",h);g.vs({clientPlaybackNonce:C.clientPlaybackNonce},"seek");isNaN(this.K)||OG("pl_ss",this.K,"seek");OG(b,(0,g.Ai)(),"seek")}this.reset()}};g.k=vd6.prototype;g.k.reset=function(){XB(this.timerName)}; +g.k.tick=function(C,b){OG(C,b,this.timerName)}; +g.k.Jy=function(C){return Ws(C,this.timerName)}; +g.k.Ap=function(C){HF(C,void 0,this.timerName)}; +g.k.infoGel=function(C){g.vs(C,this.timerName)};g.S(Edl,g.cr);g.k=Edl.prototype;g.k.iN=function(C){return this.loop||!!C||this.index+1=0}; +g.k.setShuffle=function(C){this.shuffle=C;C=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var b=0;b0)||vS(this,1,!0)}; +g.k.rj=function(){this.W=!0;this.j.D9(this.G);this.G=this.j.S(document,"mouseup",this.kL)}; +g.k.kL=function(){this.W=!1;vS(this,8,!1);this.j.D9(this.G);this.G=this.j.S(this.target,"mousedown",this.rj)}; +g.k.cN=function(C){if(C=(C=C.changedTouches)&&C[0])this.nO=C.identifier,this.j.D9(this.L),this.L=this.j.S(this.target,"touchend",this.UK,void 0,!0),vS(this,1024,!0)}; +g.k.UK=function(C){if(C=C.changedTouches)for(var b=0;b1280||P>720)if(p=h.Q6("maxresdefault.jpg"))break;if(N>640||P>480)if(p=h.Q6("maxresdefault.jpg"))break; +if(N>320||P>180)if(p=h.Q6("sddefault.jpg")||h.Q6("hqdefault.jpg")||h.Q6("mqdefault.jpg"))break;if(p=h.Q6("default.jpg"))break}g.d_(b)&&(b=new Image,b.addEventListener("load",function(){hc6()}),b.src=p?p:"",this.api.FX().tick("ftr")); +this.W.style.backgroundImage=p?"url("+p+")":""};g.S(g.EC,g.n);g.EC.prototype.resize=function(){}; +g.EC.prototype.K=function(C){var b=this;this.N=!1;DYo(this);var h=C.OQ,N=this.api.Y();h!=="GENERIC_WITHOUT_LINK"||N.W?h==="TOO_MANY_REQUESTS"?(N=this.api.getVideoData(),this.jh(TD(this,"TOO_MANY_REQUESTS_WITH_LINK",N.CI(),void 0,void 0,void 0,!1))):h!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||N.W?this.api.Y().D("html5_enable_bandaid_error_screen")&&h==="HTML5_SPS_UMP_STATUS_REJECTED"&&!N.W?(N=N.hostLanguage,C="//support.google.com/youtube?p=videoError",N&&(C=g.dt(C,{hl:N})),this.jh(TD(this,"HTML5_SPS_UMP_STATUS_REJECTED", +C))):this.api.Y().D("enable_adb_handling_in_sabr")&&h==="BROWSER_OR_EXTENSION_ERROR"&&!N.W?(N=N.hostLanguage,C="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",N&&(C=g.dt(C,{hl:N})),this.jh(TD(this,"BROWSER_OR_EXTENSION_ERROR",C))):this.jh(g.nP(C.errorMessage)):this.jh(TD(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(C=N.hostLanguage,h="//support.google.com/youtube/?p=player_error1",C&&(h=g.dt(h, +{hl:C})),this.jh(TD(this,"GENERIC_WITH_LINK_AND_CPN",h,!0)),N.HW&&!N.X&&vB_(this,function(P){if(g.BK(P,b.api,!KO(b.api.Y()))){P={as3:!1,html5:!0,player:!0,cpn:b.api.getVideoData().clientPlaybackNonce};var c=b.api;c.IL("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:P});c.isFullscreen()&&c.toggleFullscreen()}})); +if(this.N){var p=this.dO("ytp-error-link");p&&(this.api.createClientVe(p,this,216104),this.api.logVisibility(p,!0),vB_(this,function(){b.api.logClick(p)}))}}; +var Oc6=/([^<>]+)<\/a>/;g.S(dYU,g.n);g.k=dYU.prototype;g.k.onClick=function(C){this.innertubeCommand?(this.Z.LO("innertubeCommand",this.innertubeCommand),C.preventDefault()):g.BK(C,this.Z,!0);this.Z.logClick(this.element)}; +g.k.onVideoDataChange=function(C,b){EBl(this,b);this.TM&&nBl(this,this.TM)}; +g.k.PG=function(C){var b=this.Z.getVideoData();this.videoId!==b.videoId&&EBl(this,b);this.j&&nBl(this,C.state);this.TM=C.state}; +g.k.mE=function(){this.X.show();this.Z.publish("paidcontentoverlayvisibilitychange",!0);this.Z.logVisibility(this.element,!0)}; +g.k.QV=function(){this.X.hide();this.Z.publish("paidcontentoverlayvisibilitychange",!1);this.Z.logVisibility(this.element,!1)};g.S(BS,g.n);BS.prototype.hide=function(){this.j.stop();this.message.style.display="none";g.n.prototype.hide.call(this)}; +BS.prototype.onStateChange=function(C){this.TE(C.state)}; +BS.prototype.TE=function(C){(g.B(C,128)||this.api.UD()?0:g.B(C,16)||g.B(C,1))?this.j.start():this.hide()}; +BS.prototype.K=function(){this.message.style.display="block"};g.S(In,g.iv);In.prototype.onMutedAutoplayChange=function(C){this.N&&(C?(tmU(this),this.mE()):(this.j&&this.logClick(),this.QV()))}; +In.prototype.a$=function(C){this.api.isMutedByMutedAutoplay()&&g.l1(C,2)&&this.QV()}; +In.prototype.onClick=function(){this.api.unMute();this.logClick()}; +In.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.S(g.xj,g.ui);g.k=g.xj.prototype;g.k.init=function(){var C=this.api,b=C.getPlayerStateObject();this.qM=C.getPlayerSize();this.WW(b);this.B4();this.eC();this.api.publish("basechromeinitialized",this);this.Aq()&&this.api.publish("standardControlsInitialized")}; +g.k.onVideoDataChange=function(C,b){var h=this.jO!==b.videoId;if(h||C==="newdata"){C=this.api;C.isFullscreen()||(this.qM=C.getPlayerSize());var N;((N=this.api.getVideoData(1))==null?0:g.sF(N))&&this.wh()}h&&(this.jO=b.videoId,h=this.Ay,h.q2=3E3,vS(h,512,!0),this.B4());this.api.D("web_render_jump_buttons")&&b.showSeekingControls&&(this.ov=572)}; +g.k.Kk4=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; +g.k.Xp=function(){var C=this.api.oS()&&this.api.Fh(),b=this.api.S6();return this.EQ||C||this.ac||b}; +g.k.wh=function(){var C=!this.Xp();g.Zo(this.api.getRootNode(),"ytp-menu-shown",!C);var b;((b=this.api.getVideoData(1))==null?0:g.sF(b))&&g.Zo(this.api.getRootNode(),"ytp-hide-controls",!C)}; +g.k.bj=function(C){try{if(!g.PP(this.api.getRootNode(),C))return!1}catch(b){return!1}for(;C&&!exc(C);)C=C===this.api.getRootNode()?null:C.parentElement||null;return!!C}; +g.k.oB=function(C){var b=this.api.getRootNode();g.Zo(b,"ytp-autohide",C);g.Zo(b,"ytp-autohide-active",!0);this.kK.start(C?250:100);C&&(this.Z3=!1,g.e6(b,"ytp-touch-mode"));this.ai=!C;this.api.Y2(!C)}; +g.k.m9=function(){var C=this.api.getRootNode();g.Zo(C,"ytp-autohide-active",!1)}; +g.k.b9h=function(){this.mR=!0}; +g.k.CFE=function(C){if(this.api.Y().D("player_doubletap_to_seek")||this.api.Y().L)this.mR=!1,this.gB&&this.D9(this.gB),this.Dl===0&&Ch(this,C)?(this.DK(),this.Ik.start(),this.gB=this.S(this.api.Ti(),"touchmove",this.b9h,void 0,!0)):this.Ik.stop();xY6(this)&&Ch(this,C)&&!this.api.Y().L&&BBW(this);var b=this.UJ.C5();if(!g.$7(this.api.Y())&&FO&&wUU(this,C))b&&C.preventDefault();else if(this.Z3=!0,g.c4(this.api.getRootNode(),"ytp-touch-mode"),this.Ay.vA(),this.api.Y().D("player_doubletap_to_seek")||this.api.Y().L)if(b= +this.api.getPlayerStateObject(),!(!this.api.hL()||g.B(b,2)&&g.G4(this.api)||g.B(b,64))){b=Date.now()-this.j$;this.Dl+=1;if(b<=350){this.h0=!0;b=this.api.getPlayerSize().width/3;var h=this.api.getRootNode().getBoundingClientRect(),N=C.targetTouches[0].clientX-h.left;h=C.targetTouches[0].clientY-h.top;var p=(this.Dl-1)*10;N>0&&Nb*2&&N=650;this.Ay.resize();g.Zo(b,"ytp-fullscreen",this.api.isFullscreen());g.Zo(b,"ytp-large-width-mode",h);g.Zo(b,"ytp-small-mode",this.R2());g.Zo(b,"ytp-tiny-mode",this.JE());g.Zo(b,"ytp-big-mode",this.zO());this.m5&&this.m5.resize(C)}; +g.k.a$=function(C){this.WW(C.state);this.B4()}; +g.k.Av=NW(5);g.k.l_=function(){var C=!!this.jO&&!this.api.Ie()&&!this.gm,b=this.api.getPresentingPlayerType()===2,h=this.api.Y();if(b){if(uHU&&h.D("enable_visit_advertiser_support_on_ipad_mweb"))return!1;b=UC(this.api.N8());C&&(b&&b.player?C=(C=b.player.getVideoData(2))?C.isListed&&!g.Mo(b.player.Y()):!1:(ZK("showInfoBarDuringAd: this is null"),C=!1));return C}return C&&(h.wG||this.api.isFullscreen()||h.Xb)}; +g.k.B4=function(){var C=this.l_();this.PM!==C&&(this.PM=C,g.Zo(this.api.getRootNode(),"ytp-hide-info-bar",!C))}; +g.k.WW=function(C){var b=C.isCued()||this.api.uN()&&this.api.getPresentingPlayerType()!==3;b!==this.isCued&&(this.isCued=b,this.Fu&&this.D9(this.Fu),this.Fu=this.S(this.api.Ti(),"touchstart",this.CFE,void 0,b));var h=this.Ay,N=C.isPlaying()&&!g.B(C,32)||this.api.kW();vS(h,128,!N);h=this.Ay;N=this.api.getPresentingPlayerType()===3;vS(h,256,N);h=this.api.getRootNode();g.B(C,2)?N=[dn.ENDED]:(N=[],g.B(C,8)?N.push(dn.PLAYING):g.B(C,4)&&N.push(dn.PAUSED),g.B(C,1)&&!g.B(C,32)&&N.push(dn.BUFFERING),g.B(C, +32)&&N.push(dn.SEEKING),g.B(C,64)&&N.push(dn.UNSTARTED));g.Zu(this.Ql,N)||(g.L2(h,this.Ql),this.Ql=N,g.kb(h,N));N=this.api.Y();var p=g.B(C,2);a:{var P=this.api.Y();var c=P.controlsType;switch(c){case "2":case "0":P=!1;break a}P=c==="3"&&!g.B(C,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:oKW(UC(this.api.N8())))||this.api.S6()||g.$7(P)&&this.api.getPresentingPlayerType()===2?!1:!0}g.Zo(h,"ytp-hide-controls",!P);g.Zo(h,"ytp-native-controls",N.controlsType==="3"&&!b&&!p&&!this.ac);g.B(C, +128)&&!g.$7(N)?(this.m5||(this.m5=new g.EC(this.api),g.D(this,this.m5),g.qC(this.api,this.m5.element,4)),this.m5.K(C.N9),this.m5.show()):this.m5&&(this.m5.dispose(),this.m5=null)}; +g.k.p$=function(){return this.api.oS()&&this.api.Fh()?(this.api.Vk(!1,!1),!0):this.api.Ie()?(g.S3(this.api,!0),!0):!1}; +g.k.onMutedAutoplayChange=function(C){this.ac=C;this.wh()}; +g.k.zO=function(){return!1}; +g.k.R2=function(){return!this.zO()&&(this.api.getPlayerSize().width=0&&b.left>=0&&b.bottom>b.top&&b.right>b.left?b:null;b=this.size;C=C.clone();b=b.clone();N&&(c=b,p=5,(p&65)==65&&(C.x=N.right)&&(p&=-2),(p&132)==132&&(C.y=N.bottom)&&(p&=-5),C.xN.right&&(c.width=Math.min(N.right-C.x,P+c.width-N.left),c.width=Math.max(c.width,0))),C.x+c.width>N.right&&p&1&&(C.x=Math.max(N.right-c.width,N.left)),C.yN.bottom&&(c.height=Math.min(N.bottom-C.y,P+c.height-N.top),c.height=Math.max(c.height,0))),C.y+c.height>N.bottom&&p&4&&(C.y=Math.max(N.bottom-c.height,N.top)));N=new g.Pc(0,0,0,0);N.left=C.x;N.top=C.y;N.width= +b.width;N.height=b.height;g.GV(this.element,new g.ZZ(N.left,N.top));g.rU(this.X);this.X.S(JR(this),"contextmenu",this.orO);this.X.S(this.Z,"fullscreentoggled",this.onFullscreenToggled);this.X.S(this.Z,"pageTransition",this.Ix)}; +g.k.orO=function(C){if(!C.defaultPrevented){var b=mJ(C);g.PP(this.element,b)||this.QV();this.Z.Y().disableNativeContextMenu&&C.preventDefault()}}; +g.k.onFullscreenToggled=function(){this.QV();Hu6(this)}; +g.k.Ix=function(){this.QV()};g.S(eU,g.n);eU.prototype.onClick=function(){var C=this,b,h,N,p;return g.R(function(P){if(P.j==1)return b=C.api.Y(),h=C.api.getVideoData(),N=C.api.getPlaylistId(),p=b.getVideoUrl(h.videoId,N,void 0,!0),g.J(P,q5x(C,p),2);P.K&&MAU(C);C.api.logClick(C.element);g.$_(P)})}; +eU.prototype.l$=function(){this.updateValue("icon",{B:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{B:"path",xr:!0,C:"ytp-svg-fill",T:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3 c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.updateValue("title-attr","Copy link");this.visible=VAS(this);g.Zo(this.element,"ytp-copylink-button-visible",this.visible); +this.Kj(this.visible);this.tooltip.B2();this.api.logVisibility(this.element,this.visible&&this.G)}; +eU.prototype.us=function(C){g.n.prototype.us.call(this,C);this.api.logVisibility(this.element,this.visible&&C)}; +eU.prototype.wO=function(){g.n.prototype.wO.call(this);g.e6(this.element,"ytp-copylink-button-visible")};g.S(Lh,g.n);Lh.prototype.show=function(){g.n.prototype.show.call(this);g.be(this.K)}; +Lh.prototype.hide=function(){this.X.stop();this.N=0;this.dO("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.e6(this.element,"ytp-chapter-seek");g.e6(this.element,"ytp-time-seeking");g.n.prototype.hide.call(this)}; +Lh.prototype.WP=function(C,b,h,N){this.N=C===this.J?this.N+N:N;this.J=C;var p=C===-1?this.V:this.L;p&&this.Z.logClick(p);this.W?this.K.stop():g.NM(this.K);this.X.start();this.element.setAttribute("data-side",C===-1?"back":"forward");var P=3*this.Z.Ti().getPlayerSize().height;p=this.Z.Ti().getPlayerSize();p=p.width/3-3*p.height;this.j.style.width=P+"px";this.j.style.height=P+"px";C===1?(this.j.style.left="",this.j.style.right=p+"px"):C===-1&&(this.j.style.right="",this.j.style.left=p+"px");var c=P* +2.5;P=c/2;var e=this.dO("ytp-doubletap-ripple");e.style.width=c+"px";e.style.height=c+"px";C===1?(C=this.Z.Ti().getPlayerSize().width-b+Math.abs(p),e.style.left="",e.style.right=C-P+"px"):C===-1&&(C=Math.abs(p)+b,e.style.right="",e.style.left=C-P+"px");e.style.top="calc((33% + "+Math.round(h)+"px) - "+P+"px)";if(h=this.dO("ytp-doubletap-ripple"))h.classList.remove("ytp-doubletap-ripple"),h.classList.add("ytp-doubletap-ripple");mfS(this,this.W?this.N:N)};g.S(ACV,QF);g.k=ACV.prototype;g.k.jW=function(C){this.Df||(this.Df=new Dj(this.Z),g.D(this,this.Df));var b,h;if((b=this.G$)==null?0:(h=b.menu)==null?0:h.menuRenderer)this.Df.open(this.G$.menu.menuRenderer,C.target),C.preventDefault()}; +g.k.r4=function(){return!!this.j}; +g.k.VZ=function(){return!!this.j}; +g.k.JD=function(C){C.target===this.overflowButton.element?C.preventDefault():(this.Xs&&this.Z.LO("innertubeCommand",this.Xs),this.JM(!1))}; +g.k.Ga=function(){this.JM(!0);var C,b;((C=this.j)==null?0:(b=C.bannerData)==null?0:b.dismissedStatusKey)&&this.Yg.push(this.j.bannerData.dismissedStatusKey);this.qN()}; +g.k.Q4=function(){this.qN();lV(this)}; +g.k.gJf=function(C){var b=this,h;if(C.id!==((h=this.j)==null?void 0:h.identifier)){this.qN();h=g.z(this.q2);for(var N=h.next();!N.done;N=h.next()){var p=N.value,P=void 0,c=void 0;if((N=(P=p)==null?void 0:(c=P.bannerData)==null?void 0:c.itemData)&&p.identifier===C.id){c=P=void 0;var e=((P=p)==null?void 0:(c=P.bannerData)==null?void 0:c.dismissedStatusKey)||"";if(this.Yg.includes(e))break;this.j=p;this.banner.element.setAttribute("aria-label",N.accessibilityLabel||"");N.trackingParams&&(this.X=!0,this.Z.setTrackingParams(this.badge.element, +N.trackingParams));this.V.show();RY(this);this.sX.Kj(!N.stayInApp);Ouo(this);rCS(this);aX(this);this.Xs=g.d(N.onTapCommand,Xt);if(p=g.d(N.menuOnTap,Xt))this.G$=g.d(p,Wh$);p=void 0;this.banner.update({thumbnail:(p=(N.thumbnailSources||[])[0])==null?void 0:p.url,title:N.productTitle,price:N.priceReplacementText?N.priceReplacementText:N.price,salesOriginalPrice:uRo(this),priceDropReferencePrice:RRo(this),promotionText:JCK(this),priceA11yText:Q7_(this),affiliateDisclaimer:N.affiliateDisclaimer,vendor:Uf1(this)}); +e=c=P=p=void 0;((p=N)==null?0:(P=p.hiddenProductOptions)==null?0:P.showDropCountdown)&&((c=N)==null?0:(e=c.hiddenProductOptions)==null?0:e.dropTimestampMs)&&(this.SC=new g.C2(function(){s7o(b)},1E3),this.sX.hide(),this.countdownTimer.show(),s7o(this)); +this.Z.D("web_player_enable_featured_product_banner_exclusives_on_desktop")&&yCK(this)&&(this.AZ=new g.C2(function(){iu6(b)},1E3),iu6(this))}}}}; +g.k.qN=function(){this.j&&(this.j=void 0,this.Xw())}; +g.k.onVideoDataChange=function(C,b){var h=this;C==="dataloaded"&&lV(this);var N,p,P;C=g.d((N=b.getWatchNextResponse())==null?void 0:(p=N.playerOverlays)==null?void 0:(P=p.playerOverlayRenderer)==null?void 0:P.productsInVideoOverlayRenderer,Dpe);this.overflowButton.show();this.dismissButton.hide();var c=C==null?void 0:C.featuredProductsEntityKey;this.trendingOfferEntityKey=C==null?void 0:C.trendingOfferEntityKey;this.q2.length||(Ks6(this,c),aX(this));var e;(e=this.HW)==null||e.call(this);this.HW=g.nj.subscribe(function(){Ks6(h, +c);aX(h)})}; +g.k.wO=function(){lV(this);Ouo(this);rCS(this);QF.prototype.wO.call(this)};g.S(EF6,g.n);EF6.prototype.onClick=function(){this.Z.logClick(this.element,this.K)};g.S(nFS,g.iv);g.k=nFS.prototype;g.k.show=function(){g.iv.prototype.show.call(this);this.Z.publish("infopaneldetailvisibilitychange",!0);this.Z.logVisibility(this.element,!0);tAl(this,!0)}; +g.k.hide=function(){g.iv.prototype.hide.call(this);this.Z.publish("infopaneldetailvisibilitychange",!1);this.Z.logVisibility(this.element,!1);tAl(this,!1)}; +g.k.getId=function(){return this.X}; +g.k.Xk=function(){return this.itemData.length}; +g.k.onVideoDataChange=function(C,b){if(b){var h,N,p,P;this.update({title:((h=b.RS)==null?void 0:(N=h.title)==null?void 0:N.content)||"",body:((p=b.RS)==null?void 0:(P=p.bodyText)==null?void 0:P.content)||""});var c;C=((c=b.RS)==null?void 0:c.trackingParams)||null;this.Z.setTrackingParams(this.element,C);c=g.z(this.itemData);for(C=c.next();!C.done;C=c.next())C.value.dispose();this.itemData=[];var e;if((e=b.RS)==null?0:e.ctaButtons)for(b=g.z(b.RS.ctaButtons),e=b.next();!e.done;e=b.next())if(e=g.d(e.value, +Up$))e=new EF6(this.Z,e,this.j),e.bF&&(this.itemData.push(e),e.Gi(this.items))}}; +g.k.wO=function(){this.hide();g.iv.prototype.wO.call(this)};g.S(IFl,g.n);g.k=IFl.prototype;g.k.onVideoDataChange=function(C,b){BRW(this,b);this.TM&&wqc(this,this.TM)}; +g.k.XR=function(C){var b=this.Z.getVideoData();this.videoId!==b.videoId&&BRW(this,b);wqc(this,C.state);this.TM=C.state}; +g.k.Bt=function(C){(this.X=C)?this.hide():this.j&&this.show()}; +g.k.ND=function(){this.K||this.mE();this.showControls=!0}; +g.k.KF=function(){this.K||this.QV();this.showControls=!1}; +g.k.mE=function(){var C;if((C=this.Z)==null?0:C.D("embeds_web_enable_info_panel_sizing_fix")){var b;C=(b=this.Z)==null?void 0:b.getPlayerSize();b=C.width<380;var h;C=C.height<(((h=this.Z)==null?0:h.isEmbedsShortsMode())?400:280);var N,p;if((((N=this.Z)==null?0:N.getPlayerStateObject().isCued())||((p=this.Z)==null?0:g.B(p.getPlayerStateObject(),1024)))&&b&&C)return}this.j&&!this.X&&(this.N.show(),this.Z.publish("infopanelpreviewvisibilitychange",!0),this.Z.logVisibility(this.element,!0))}; +g.k.QV=function(){this.j&&!this.X&&(this.N.hide(),this.Z.publish("infopanelpreviewvisibilitychange",!1),this.Z.logVisibility(this.element,!1))}; +g.k.zp4=function(){this.K=!1;this.showControls||this.QV()};var BNe={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(BNe).reduce(function(C,b){C[BNe[b]]=b;return C},{}); +var ID0={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(ID0).reduce(function(C,b){C[ID0[b]]=b;return C},{}); +var xAo={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(xAo).reduce(function(C,b){C[xAo[b]]=b;return C},{});var wv0,CBh;wv0=[{option:"#fff",text:"White"},{option:"#ff0",text:"Yellow"},{option:"#0f0",text:"Green"},{option:"#0ff",text:"Cyan"},{option:"#00f",text:"Blue"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Red"},{option:"#080808",text:"Black"}];CBh=[{option:0,text:oX(0)},{option:.25,text:oX(.25)},{option:.5,text:oX(.5)},{option:.75,text:oX(.75)},{option:1,text:oX(1)}]; +g.$d=[{option:"fontFamily",text:"Font family",options:[{option:1,text:"Monospaced Serif"},{option:2,text:"Proportional Serif"},{option:3,text:"Monospaced Sans-Serif"},{option:4,text:"Proportional Sans-Serif"},{option:5,text:"Casual"},{option:6,text:"Cursive"},{option:7,text:"Small Capitals"}]},{option:"color",text:"Font color",options:wv0},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:oX(.5)},{option:-1,text:oX(.75)},{option:0,text:oX(1)},{option:1,text:oX(1.5)},{option:2, +text:oX(2)},{option:3,text:oX(3)},{option:4,text:oX(4)}]},{option:"background",text:"Background color",options:wv0},{option:"backgroundOpacity",text:"Background opacity",options:CBh},{option:"windowColor",text:"Window color",options:wv0},{option:"windowOpacity",text:"Window opacity",options:CBh},{option:"charEdgeStyle",text:"Character edge style",options:[{option:0,text:"None"},{option:4,text:"Drop Shadow"},{option:1,text:"Raised"},{option:2,text:"Depressed"},{option:3,text:"Outline"}]},{option:"textOpacity", +text:"Font opacity",options:[{option:.25,text:oX(.25)},{option:.5,text:oX(.5)},{option:.75,text:oX(.75)},{option:1,text:oX(1)}]}];var bvj=[27,9,33,34,13,32,187,61,43,189,173,95,79,87,67,80,78,75,70,65,68,87,83,107,221,109,219];g.S(pyW,g.ui);g.k=pyW.prototype; +g.k.jF=function(C){C.repeat||(this.N.x$=!1);var b=!1,h=C.keyCode,N=mJ(C),p=!C.altKey&&!C.ctrlKey&&!C.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||bvj.includes(h)),P=!1,c=!1,e=this.api.Y();C.defaultPrevented?(p=!1,c=!0):e.OG&&!this.api.isMutedByEmbedsMutedAutoplay()&&(p=!1);if(h===9)b=!0;else{if(N)switch(h){case 32:case 13:if(N.tagName==="BUTTON"||N.tagName==="A"||N.tagName==="INPUT")b=!0,p=!1;else if(p){var L=N.getAttribute("role");!L||L!=="option"&&L!=="button"&&L.indexOf("menuitem")!==0|| +(b=!0,N.click(),P=!0)}this.api.D("enable_key_press_enter_logging")&&(N=g.mZ(),L=VwU(247608),N&&L&&g.CN(wr)(void 0,N,L,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",void 0,void 0));break;case 37:case 39:case 36:case 35:b=N.getAttribute("role")==="slider";break;case 38:case 40:L=N.getAttribute("role"),N=h===38?N.previousSibling:N.nextSibling,L==="slider"?b=!0:p&&(L==="option"?(N&&N.getAttribute("role")==="option"&&N.focus(),P=b=!0):L&&L.indexOf("menuitem")===0&&(N&&N.hasAttribute("role")&&N.getAttribute("role").indexOf("menuitem")=== +0&&N.focus(),P=b=!0))}if(p&&!P)switch(h){case 38:P=Math.min(this.api.getVolume()+5,100);gz(this.t8,P,!1);this.api.setVolume(P);c=P=!0;break;case 40:P=Math.max(this.api.getVolume()-5,0);gz(this.t8,P,!0);this.api.setVolume(P);c=P=!0;break;case 36:this.api.hL()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),c=P=!0);break;case 35:this.api.hL()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),c=P=!0)}}b&&Gd(this,!0);(b||c)&&this.Ay.vA();(P|| +p&&this.handleGlobalKeyDown(h,C.shiftKey,C.ctrlKey,C.altKey,C.metaKey,C.key,C.code,C.repeat))&&C.preventDefault();e.J&&(C={keyCode:C.keyCode,altKey:C.altKey,ctrlKey:C.ctrlKey,metaKey:C.metaKey,shiftKey:C.shiftKey,handled:C.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.Mz("onKeyPress",C))}; +g.k.KL=function(C){var b=C.keyCode;(!this.api.D("web_player_spacebar_control_bugfix")||this.api.D("web_player_spacebar_control_bugfix")&&!this.X)&&this.handleGlobalKeyUp(b,C.shiftKey,C.ctrlKey,C.altKey,C.metaKey,C.key,C.code)&&C.preventDefault()}; +g.k.handleGlobalKeyUp=function(C,b,h,N,p,P,c){this.api.publish("keyboardserviceglobalkeyup",{keyCode:C,shiftKey:b,ctrlKey:h,altKey:N,metaKey:p,key:P,code:c});b=!1;if(this.N.x$)return b;(h=g.VG(this.api.N8()))&&(h=h.kq)&&h.Bb&&(h.Ag(C),b=!0);switch(C){case 9:Gd(this,!0);b=!0;break;case 32:if(this.api.D("web_speedmaster_spacebar_control")&&(!this.api.D("web_player_spacebar_control_bugfix")&&!this.X||this.api.D("web_player_spacebar_control_bugfix"))&&!this.api.Y().OG){var e,L;C=(e=this.progressBar)== +null?void 0:(L=e.K)==null?void 0:L.isEnabled;b=this.L6(C)}}return b}; +g.k.handleGlobalKeyDown=function(C,b,h,N,p,P,c,e){e||(this.N.x$=!1);var L=!1,Z=this.api.Y();if(Z.OG&&!this.api.isMutedByEmbedsMutedAutoplay())return L;var Y=g.VG(this.api.N8());if(Y&&(Y=Y.kq)&&Y.Bb)switch(C){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:L=Y.O3(C)}Z.W||L||(L=P||String.fromCharCode(C).toLowerCase(),this.K+=L,"awesome".indexOf(this.K)===0?(L=!0,7===this.K.length&&iV_(this.api.getRootNode(),"ytp-color-party")):(this.K=L,L="awesome".indexOf(this.K)===0));if(!L&&(!this.api.isMutedByEmbedsMutedAutoplay()|| +bvj.includes(C))){var a=this.api.getVideoData(),l,F;Y=(l=this.progressBar)==null?void 0:(F=l.K)==null?void 0:F.isEnabled;l=a?a.NZ:[];F=Wp?N:h;switch(C){case 80:b&&!Z.rO&&(Ns(this.t8,ri6(),"Previous"),this.api.previousVideo(),L=!0);break;case 78:b&&!Z.rO&&(Ns(this.t8,VA(),"Next"),this.api.nextVideo(),L=!0);break;case 74:this.api.hL()&&(this.api.startSeekCsiAction(),this.j?this.api.D("enable_key_press_seek_logging")?(L=SU(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),ZA(this.j, +-1,10,L)):ZA(this.j,-1,10):Ns(this.t8,{B:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{B:"path",xr:!0,C:"ytp-svg-fill",T:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), +this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,73),L=!0);break;case 76:this.api.hL()&&(this.api.startSeekCsiAction(),this.j?this.api.D("enable_key_press_seek_logging")?(L=SU(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),ZA(this.j,1,10,L)):ZA(this.j,1,10):Ns(this.t8,{B:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{B:"path",xr:!0,C:"ytp-svg-fill",T:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), +this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,74),L=!0);break;case 37:this.api.hL()&&(this.api.startSeekCsiAction(),F?(F=hQc(l,this.api.getCurrentTime()*1E3),F!==-1&&this.j!=null&&(fFW(this.j,-1,l[F].title),this.api.seekTo(l[F].startTime/1E3,void 0,void 0,void 0,53),L=!0)):(this.j?this.api.D("enable_key_press_seek_logging")?(L=SU(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"),ZA(this.j,-1,5,L)):ZA(this.j,-1,5):Ns(this.t8,{B:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36", +width:"100%"},U:[{B:"path",xr:!0,C:"ytp-svg-fill",T:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}), +this.api.seekBy(-5*this.api.getPlaybackRate(),void 0,void 0,71),L=!0));break;case 39:this.api.hL()&&(this.api.startSeekCsiAction(),F?(F=bzW(l,this.api.getCurrentTime()*1E3),F!==-1&&this.j!=null&&(fFW(this.j,1,l[F].title),this.api.seekTo(l[F].startTime/1E3,void 0,void 0,void 0,52),L=!0)):(this.j!=null?this.api.D("enable_key_press_seek_logging")?(L=SU(this,5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),ZA(this.j,1,5,L)):ZA(this.j,1,5):Ns(this.t8,{B:"svg",T:{height:"100%",version:"1.1", +viewBox:"0 0 36 36",width:"100%"},U:[{B:"path",xr:!0,C:"ytp-svg-fill",T:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}), +this.api.seekBy(5*this.api.getPlaybackRate(),void 0,void 0,72),L=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),gz(this.t8,this.api.getVolume(),!1)):(this.api.mute(),gz(this.t8,0,!0));L=!0;break;case 32:L=this.api.D("web_speedmaster_spacebar_control")?!this.api.Y().rO:this.L6(Y);break;case 75:L=this.L6(Y);break;case 190:b?Z.enableSpeedOptions&&js1(this)&&(L=this.api.getPlaybackRate(),this.api.setPlaybackRate(L+.25,!0),buH(this.t8,!1),L=!0):this.api.hL()&&(this.step(1),L=!0);break;case 188:b? +Z.enableSpeedOptions&&js1(this)&&(L=this.api.getPlaybackRate(),this.api.setPlaybackRate(L-.25,!0),buH(this.t8,!0),L=!0):this.api.hL()&&(this.step(-1),L=!0);break;case 70:woo(this.api)&&(this.api.toggleFullscreen().catch(function(){}),L=!0); +break;case 27:Y?(this.progressBar.DC(),L=!0):this.W()&&(L=!0)}if(Z.controlsType!=="3")switch(C){case 67:g.uS(this.api.N8())&&(Z=this.api.getOption("captions","track"),this.api.toggleSubtitles(),hRH(this.t8,!Z||Z&&!Z.displayName),L=!0);break;case 79:zd(this,"textOpacity");break;case 87:zd(this,"windowOpacity");break;case 187:case 61:zd(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:zd(this,"fontSizeIncrement",!0,!0)}var G;b||h||N||(C>=48&&C<=57?G=C-48:C>=96&&C<=105&&(G=C-96));G!=null&&this.api.hL()&& +(this.api.startSeekCsiAction(),Z=this.api.getProgressState(),this.api.seekTo(G/10*(Z.seekableEnd-Z.seekableStart)+Z.seekableStart,void 0,void 0,void 0,81),L=!0);L&&this.Ay.vA()}this.X||this.api.publish("keyboardserviceglobalkeydown",{keyCode:C,shiftKey:b,ctrlKey:h,altKey:N,metaKey:p,key:P,code:c,repeat:e},this.N);return L}; +g.k.step=function(C){this.api.hL();if(this.api.getPlayerStateObject().isPaused()){var b=this.api.getVideoData().K;b&&(b=b.video)&&this.api.seekBy(C/(b.fps||30),void 0,void 0,C>0?77:78)}}; +g.k.L6=function(C){if(!this.api.Y().rO){var b;var h,N=(b=this.api.getVideoData())==null?void 0:(h=b.getPlayerResponse())==null?void 0:h.playabilityStatus;if(N){var p;b=((p=g.d(N.miniplayer,xpE))==null?void 0:p.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else b=!1;b&&this.api.LO("onExpandMiniplayer");C?this.progressBar.Kc():(C=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.t8.m1(C),C?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; +g.k.wO=function(){g.NM(this.G);g.ui.prototype.wO.call(this)};g.S(g.HH,g.n);g.HH.prototype.C6=NW(11); +g.HH.prototype.l$=function(){var C=this.Z.Y(),b=C.N||this.Z.D("web_player_hide_overflow_button_if_empty_menu")&&this.Dx.isEmpty();C=g.$7(C)&&g.z4(this.Z)&&g.B(this.Z.getPlayerStateObject(),128);var h=this.Z.getPlayerSize();this.visible=this.Z.R2()&&!C&&h.width>=240&&!g.n6(this.Z.getVideoData())&&!b&&!this.j&&!this.Z.isEmbedsShortsMode();g.Zo(this.element,"ytp-overflow-button-visible",this.visible);this.visible&&this.Z.B2();this.Z.logVisibility(this.element,this.visible&&this.G)}; +g.HH.prototype.us=function(C){g.n.prototype.us.call(this,C);this.Z.logVisibility(this.element,this.visible&&C)}; +g.HH.prototype.wO=function(){g.n.prototype.wO.call(this);g.e6(this.element,"ytp-overflow-button-visible")};g.S(cGU,g.iv);g.k=cGU.prototype;g.k.wJ=function(C){C=mJ(C);g.PP(this.element,C)&&(g.PP(this.j,C)||g.PP(this.closeButton,C)||uv(this))}; +g.k.QV=function(){g.iv.prototype.QV.call(this);this.Z.sV(this.element)}; +g.k.show=function(){this.Bb&&this.Z.publish("OVERFLOW_PANEL_OPENED");g.iv.prototype.show.call(this);this.element.setAttribute("aria-modal","true");eQH(this,!0)}; +g.k.hide=function(){g.iv.prototype.hide.call(this);this.element.removeAttribute("aria-modal");eQH(this,!1)}; +g.k.onFullscreenToggled=function(C){!C&&this.C5()&&uv(this)}; +g.k.isEmpty=function(){return this.actionButtons.length===0}; +g.k.focus=function(){for(var C=g.z(this.actionButtons),b=C.next();!b.done;b=C.next())if(b=b.value,b.Bb){b.focus();break}};g.S(LcW,g.n);LcW.prototype.onClick=function(C){g.BK(C,this.api)&&this.api.playVideoAt(this.index)};g.S(ZzW,g.iv);g.k=ZzW.prototype;g.k.show=function(){g.iv.prototype.show.call(this);this.j.S(this.api,"videodatachange",this.q0);this.j.S(this.api,"onPlaylistUpdate",this.q0);this.q0()}; +g.k.hide=function(){g.iv.prototype.hide.call(this);g.rU(this.j);this.updatePlaylist(null)}; +g.k.q0=function(){this.updatePlaylist(this.api.getPlaylist());this.api.Y().N&&(this.dO("ytp-playlist-menu-title-name").removeAttribute("href"),this.N&&(this.D9(this.N),this.N=null))}; +g.k.hF=function(){var C=this.playlist,b=C.author,h=b?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",N={CURRENT_POSITION:String(C.index+1),PLAYLIST_LENGTH:String(C.getLength())};b&&(N.AUTHOR=b);this.update({title:C.title,subtitle:g.ok(h,N),playlisturl:this.api.getVideoUrl(!0)});b=C.K;if(b===this.X)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[C.index];else{h=g.z(this.playlistData);for(N=h.next();!N.done;N=h.next())N.value.dispose(); +h=C.getLength();this.playlistData=[];for(N=0;N=this.K&&!C.N&&!b.isAd()&&!this.api.isEmbedsShortsMode()}else C=!1;this.visible=C;this.Kj(this.visible);g.Zo(this.element,"ytp-search-button-visible",this.visible);g.Zo(this.element,"ytp-show-search-title",!this.api.R2());this.api.logVisibility(this.element,this.visible&&this.G)}; +mq.prototype.us=function(C){g.n.prototype.us.call(this,C);this.api.logVisibility(this.element,this.visible&&C)};g.S(g.fh,g.n);g.k=g.fh.prototype;g.k.bb=NW(8);g.k.onClick=function(){var C=this,b=this.api.Y(),h=this.api.getVideoData(this.api.getPresentingPlayerType()),N=this.api.getPlaylistId();b=this.api.D("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):b.getVideoUrl(h.videoId,N,void 0,!0);if(navigator.share)try{var p=navigator.share({title:h.title,url:b});p instanceof Promise&&p.catch(function(P){$qV(C,P)})}catch(P){P instanceof Error&&$qV(this,P)}else this.j.p$(),uv(this.N,this.element,!1); +this.api.logClick(this.element)}; +g.k.l$=function(){var C=this.api.Y(),b=this.api.isEmbedsShortsMode();g.Zo(this.element,"ytp-show-share-title",g.$7(C)&&!b);this.j.zO()&&b?(C=(this.api.Ti().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Zv(this.element,"right",C+"px")):b&&g.Zv(this.element,"right","0px");this.updateValue("icon",{B:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{B:"path",xr:!0,C:"ytp-svg-fill",T:{d:"m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z"}}]}); +this.visible=SfH(this);g.Zo(this.element,"ytp-share-button-visible",this.visible);this.Kj(this.visible);this.tooltip.B2();this.api.logVisibility(this.element,SfH(this)&&this.G)}; +g.k.us=function(C){g.n.prototype.us.call(this,C);this.api.logVisibility(this.element,this.visible&&C)}; +g.k.wO=function(){g.n.prototype.wO.call(this);g.e6(this.element,"ytp-share-button-visible")};g.S(Hzl,g.iv);g.k=Hzl.prototype;g.k.Rx=function(C){C=mJ(C);g.PP(this.W,C)||g.PP(this.closeButton,C)||uv(this)}; +g.k.QV=function(){g.iv.prototype.QV.call(this);this.tooltip.sV(this.element);this.api.logVisibility(this.j,!1);for(var C=g.z(this.N),b=C.next();!b.done;b=C.next())b=b.value,this.api.hasVe(b.element)&&this.api.logVisibility(b.element,!1)}; +g.k.show=function(){var C=this.Bb;g.iv.prototype.show.call(this);this.l$();C||this.api.LO("onSharePanelOpened")}; +g.k.d84=function(){this.Bb&&this.l$()}; +g.k.l$=function(){var C=this;g.c4(this.element,"ytp-share-panel-loading");g.e6(this.element,"ytp-share-panel-fail");var b=this.api.getVideoData(),h=this.api.getPlaylistId()&&this.X.checked;b.getSharePanelCommand&&tN(this.api.CZ(),b.getSharePanelCommand,{includeListId:h}).then(function(N){C.HE()||(g.e6(C.element,"ytp-share-panel-loading"),M7W(C,N))}); +b=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",b);this.updateValue("linkText",b);this.updateValue("shareLinkWithUrl",g.ok("Share link $URL",{URL:b}));wY(this.j);this.api.logVisibility(this.j,!0)}; +g.k.onFullscreenToggled=function(C){!C&&this.C5()&&uv(this)}; +g.k.focus=function(){this.j.focus()}; +g.k.wO=function(){g.iv.prototype.wO.call(this);V7S(this)};g.S(f4_,QF);g.k=f4_.prototype;g.k.wO=function(){JGc(this);QF.prototype.wO.call(this)}; +g.k.JD=function(C){C.target!==this.dismissButton.element&&(this.JM(!1),this.Z.LO("innertubeCommand",this.onClickCommand))}; +g.k.Ga=function(){this.m6=!0;this.JM(!0);this.Xw()}; +g.k.X76=function(C){this.J=C;this.Xw()}; +g.k.onVideoDataChange=function(C,b){if(C=!!b.videoId&&this.videoId!==b.videoId)this.videoId=b.videoId,this.m6=!1,this.nO=!0,this.L=this.N2=!1,JGc(this),izS(this,!1),this.K=this.j=!1,y$(this),AGK(this);if(C||!b.videoId)this.KO=this.X=!1;var h,N;if(b==null?0:(h=b.getPlayerResponse())==null?0:(N=h.videoDetails)==null?0:N.isLiveContent)this.ws(!1);else{var p,P,c;b=g.d((p=b.getWatchNextResponse())==null?void 0:(P=p.playerOverlays)==null?void 0:(c=P.playerOverlayRenderer)==null?void 0:c.productsInVideoOverlayRenderer, +Dpe);this.J=this.enabled=!1;if(b){if(p=b==null?void 0:b.featuredProductsEntityKey){P=g.nj.getState().entities;var e;if((e=e_(P,"featuredProductsEntity",p))==null?0:e.productsData){this.ws(!1);return}}this.enabled=!0;if(!this.X){var L;e=(L=b.badgeInteractionLogging)==null?void 0:L.trackingParams;(this.X=!!e)&&this.Z.setTrackingParams(this.badge.element,e||null)}if(!this.KO){var Z;if(this.KO=!((Z=b.dismissButton)==null||!Z.trackingParams)){var Y;this.Z.setTrackingParams(this.dismissButton.element,((Y= +b.dismissButton)==null?void 0:Y.trackingParams)||null)}}b.isContentForward&&(L=b.productsData,izS(this,!0),AGK(this),L=rG_(this,L),Z=[],L.length>0&&Z.push(L[0]),L.length>1&&(Y=new g.n({B:"div",C:"ytp-suggested-action-more-products-icon"}),g.D(this,Y),Z.push(Y),Z.push.apply(Z,g.M(L.slice(1)))),this.W=new g.n({B:"div",U:Z,C:"ytp-suggested-action-content-forward-container"}),g.D(this,this.W),this.Qz.element.append(this.W.element));this.text=g.oS(b.text);var a;if(L=(a=b.dismissButton)==null?void 0:a.a11yLabel)this.CO= +g.oS(L);this.onClickCommand=b.onClickCommand;this.timing=b.timing;this.A8()}AOU(this);RY(this);this.Xw()}}; +g.k.r4=function(){return!this.J&&this.enabled&&!this.m6&&!this.Z.R2()&&!this.ob&&(this.L||this.nO)}; +g.k.J5=function(C){QF.prototype.J5.call(this,C);if(this.j||this.K)this.timing&&AL(this.timing.preview)&&(this.j=!1,y$(this),this.K=!1,y$(this),this.Z.Sh("shopping_overlay_preview_collapsed"),this.Z.Sh("shopping_overlay_preview_expanded"),C=rz(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),AL(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.Z.Sh("shopping_overlay_expanded"),C.end=this.timing.expanded.endSec*1E3),this.Z.A8([C])), +this.N2=!0,RY(this);y$(this)}; +g.k.ws=function(C){(this.L=C)?(u_(this),RY(this,!1)):(JGc(this),this.rO.start());this.Xw()}; +g.k.A8=function(C){var b=this.timing;C=(C===void 0?0:C)+this.Z.getCurrentTime();var h=[],N=b.visible,p=b.preview;b=b.expanded;AL(N)&&(qfS(N,C),h.push(rz(N.startSec,N.endSec,"shopping_overlay_visible")));AL(p)&&(qfS(p,C),N=p.startSec+1,h.push(rz(p.startSec,N,"shopping_overlay_preview_collapsed")),h.push(rz(N,p.endSec,"shopping_overlay_preview_expanded")));AL(b)&&(qfS(b,C),h.push(rz(b.startSec,b.endSec,"shopping_overlay_expanded")));this.Z.A8(h)};g.S(QsS,g.n); +QsS.prototype.l$=function(){var C=this.api.Y();this.Kj(g.$7(C)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.Bb);var b=this.api.getVideoData(),h=!1;this.api.getPresentingPlayerType()===2?h=!!b.videoId&&!!b.isListed&&!!b.author&&!!b.ob&&!!b.profilePicture:g.$7(C)&&(h=!!b.videoId&&!!b.ob&&!!b.profilePicture&&!g.n6(b)&&!C.N&&!(C.L&&this.api.getPlayerSize().width<200));var N=b.profilePicture;C=g.$7(C)?b.expandedTitle:b.author;N=N===void 0? +"":N;C=C===void 0?"":C;h?(this.K!==N&&(this.j.style.backgroundImage="url("+N+")",this.K=N),this.updateValue("channelLogoLabel",g.ok("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:C})),g.c4(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.e6(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.j,h&&this.G);this.api.logVisibility(this.channelName,h&&this.G);this.subscribeButton&&(this.subscribeButton.channelId=b.w8);this.updateValue("expandedTitle",b.expandedTitle)};g.S(iV,g.iv);iV.prototype.show=function(){g.iv.prototype.show.call(this);this.j.start()}; +iV.prototype.hide=function(){g.iv.prototype.hide.call(this);this.j.stop()}; +iV.prototype.bN=function(C,b){C==="dataloaded"&&((this.b5=b.b5,this.LK=b.LK,isNaN(this.b5)||isNaN(this.LK))?this.N&&(this.Z.Sh("intro"),this.Z.removeEventListener(g.p8("intro"),this.J),this.Z.removeEventListener(g.PZ("intro"),this.W),this.Z.removeEventListener("onShowControls",this.X),this.hide(),this.N=!1):(this.Z.addEventListener(g.p8("intro"),this.J),this.Z.addEventListener(g.PZ("intro"),this.W),this.Z.addEventListener("onShowControls",this.X),C=new g.Ny(this.b5,this.LK,{priority:9,namespace:"intro"}), +this.Z.A8([C]),this.N=!0))};g.S(JL,g.n);JL.prototype.onClick=function(){this.Z.Vr()}; +JL.prototype.l$=function(){var C=!0;g.$7(this.Z.Y())&&(C=C&&this.Z.Ti().getPlayerSize().width>=480);this.Kj(C);this.updateValue("icon",this.Z.r0()?{B:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{B:"path",xr:!0,T:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]}: +{B:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{B:"path",xr:!0,C:"ytp-svg-fill",T:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]})};g.S(XyV,g.n);XyV.prototype.wO=function(){this.j=null;g.n.prototype.wO.call(this)};g.S(uV,g.n);uV.prototype.onClick=function(){this.Z.LO("innertubeCommand",this.K)}; +uV.prototype.V=function(C){C!==this.W&&(this.update({title:C,ariaLabel:C}),this.W=C);C?this.show():this.hide()}; +uV.prototype.L=function(){this.j.disabled=this.K==null;g.Zo(this.j,"ytp-chapter-container-disabled",this.j.disabled);this.cW()};g.S(RX,uV);RX.prototype.onClickCommand=function(C){g.d(C,EF)&&this.cW()}; +RX.prototype.updateVideoData=function(C,b){var h,N,p;C=g.d((h=b.getWatchNextResponse())==null?void 0:(N=h.playerOverlays)==null?void 0:(p=N.playerOverlayRenderer)==null?void 0:p.decoratedPlayerBarRenderer,FJ);h=g.d(C==null?void 0:C.playerBarActionButton,g.yM);this.Z.D("web_player_updated_entrypoint")&&(this.J=Lx(h==null?void 0:h.text));this.K=h==null?void 0:h.command;uV.prototype.L.call(this)}; +RX.prototype.cW=function(){var C=this.Z.D("web_player_updated_entrypoint")?this.J:"",b=this.X.j,h,N=((h=this.Z.getLoopRange())==null?void 0:h.type)==="clips";if(b.length>1&&!N){C=this.Z.getProgressState().current*1E3;h=Fk(b,C);C=b[h].title||"Chapters";if(h!==this.currentIndex||this.N)this.Z.LO("innertubeCommand",b[h].onActiveCommand),this.currentIndex=h;this.N=!1}else this.N=!0;uV.prototype.V.call(this,C)};g.S(Q$,g.n);Q$.prototype.W=function(C){g.B(C.state,32)?ssl(this,this.api.hR()):this.Bb&&(g.B(C.state,16)||g.B(C.state,1))||this.j.hide()}; +Q$.prototype.PL=function(){var C=this.api.getPlayerStateObject();(g.B(C,32)||g.B(C,16))&&Ozl(this)}; +Q$.prototype.J=function(){this.N=NaN;Ozl(this)}; +Q$.prototype.hide=function(){this.K&&ssl(this,null);g.n.prototype.hide.call(this)};g.S(v$K,g.n);g.k=v$K.prototype;g.k.onClick=function(){var C=this;if(this.Z.Y().SC||this.Z.Y().L){this.Z.logClick(this.element);try{this.Z.toggleFullscreen().catch(function(b){C.ys(b)})}catch(b){this.ys(b)}}else uv(this.message,this.element,!0)}; +g.k.ys=function(C){String(C).includes("fullscreen error")?g.QB(C):g.Ri(C);this.j5()}; +g.k.j5=function(){this.disable();this.message.mE(this.element,!0)}; +g.k.Fn=function(){Sw()===this.Z.getRootNode()?this.N.start():(this.N.stop(),this.message&&this.message.hide())}; +g.k.ly=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var C=window.screen.width*.9,b=window.screen.height*.9,h=Math.max(window.outerWidth,window.innerWidth),N=Math.max(window.outerHeight,window.innerHeight);if(h>N!==C>b){var p=h;h=N;N=p}C>h&&b>N&&this.j5()}}; +g.k.disable=function(){var C=this;if(!this.message){var b=(o1(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"Full screen is unavailable. $BEGIN_LINKLearn More$END_LINK":"Your browser doesn't support full screen. $BEGIN_LINKLearn More$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.iv(this.Z,{B:"div",J4:["ytp-popup","ytp-generic-popup"],T:{role:"alert",tabindex:"0"},U:[b[0],{B:"a",T:{href:"https://support.google.com/youtube/answer/6276924", +target:this.Z.Y().V},BE:b[2]},b[4]]},100,!0);this.message.hide();g.D(this,this.message);this.message.subscribe("show",function(h){C.K.t0(C.message,h)}); +g.qC(this.Z,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.j)();this.j=null}}; +g.k.l$=function(){var C=woo(this.Z),b=this.Z.Y().L&&this.Z.getPlayerSize().width<250;this.Kj(C&&!b);var h;((h=this.Z.Y())==null?0:h.D("embeds_use_parent_visibility_in_ve_logging"))?this.Z.logVisibility(this.element,this.Bb&&this.G):this.Z.logVisibility(this.element,this.Bb)}; +g.k.AC=function(C){if(C){var b={B:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{B:"g",C:"ytp-fullscreen-button-corner-2",U:[{B:"path",xr:!0,C:"ytp-svg-fill",T:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{B:"g",C:"ytp-fullscreen-button-corner-3",U:[{B:"path",xr:!0,C:"ytp-svg-fill",T:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{B:"g",C:"ytp-fullscreen-button-corner-0",U:[{B:"path",xr:!0,C:"ytp-svg-fill",T:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{B:"g", +C:"ytp-fullscreen-button-corner-1",U:[{B:"path",xr:!0,C:"ytp-svg-fill",T:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]};C=g.oC(this.Z,"Exit full screen","f");this.update({"data-title-no-tooltip":"Exit full screen"});document.activeElement===this.element&&this.Z.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(h){g.QB(h)})}else b={B:"svg", +T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{B:"g",C:"ytp-fullscreen-button-corner-0",U:[{B:"path",xr:!0,C:"ytp-svg-fill",T:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{B:"g",C:"ytp-fullscreen-button-corner-1",U:[{B:"path",xr:!0,C:"ytp-svg-fill",T:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{B:"g",C:"ytp-fullscreen-button-corner-2",U:[{B:"path",xr:!0,C:"ytp-svg-fill",T:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{B:"g",C:"ytp-fullscreen-button-corner-3", +U:[{B:"path",xr:!0,C:"ytp-svg-fill",T:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]},C=g.oC(this.Z,"Full screen","f"),this.update({"data-title-no-tooltip":"Full screen"});C=this.message?null:C;this.update({title:C,icon:b});this.K.x6().B2()}; +g.k.wO=function(){this.message||((0,this.j)(),this.j=null);g.n.prototype.wO.call(this)}; +g.k.us=function(C){g.n.prototype.us.call(this,C);var b;((b=this.Z.Y())==null?0:b.D("embeds_use_parent_visibility_in_ve_logging"))&&this.Z.logVisibility(this.element,this.Bb&&C)};g.S(Us,g.n);Us.prototype.onClick=function(){this.Z.logClick(this.element);this.Z.seekBy(this.j,!0);var C=this.j>0?1:-1,b=Math.abs(this.j),h=this.Z.pZ().WC;h&&ZA(h,C,b);this.K.isActive()?this.N=!0:(C=["ytp-jump-spin"],this.j<0&&C.push("backwards"),this.element.classList.add.apply(this.element.classList,g.M(C)),g.be(this.K))};g.S(Xk,uV);Xk.prototype.onClickCommand=function(C){g.d(C,OdU)&&this.cW()}; +Xk.prototype.updateVideoData=function(){var C,b;this.K=(C=dqW(this))==null?void 0:(b=C.onTap)==null?void 0:b.innertubeCommand;uV.prototype.L.call(this)}; +Xk.prototype.cW=function(){var C="",b=this.X.W,h,N=(h=dqW(this))==null?void 0:h.headerTitle;h=N?g.oS(N):"";var p;N=((p=this.Z.getLoopRange())==null?void 0:p.type)==="clips";b.length>1&&!N&&(C=this.Z.getProgressState().current*1E3,p=CQl(b,C),C=p!=null?b[p].title:h,p!=null&&p!==this.currentIndex&&(this.Z.LO("innertubeCommand",b[p].onActiveCommand),this.currentIndex=p));uV.prototype.V.call(this,C)};g.S(Kh,g.n);Kh.prototype.onClick=function(){this.Z.LO("onCollapseMiniplayer");this.Z.logClick(this.element)}; +Kh.prototype.l$=function(){this.visible=!this.Z.isFullscreen();this.Kj(this.visible);this.Z.logVisibility(this.element,this.visible&&this.G)}; +Kh.prototype.us=function(C){g.n.prototype.us.call(this,C);this.Z.logVisibility(this.element,this.visible&&C)};g.S(Os,g.n);g.k=Os.prototype;g.k.lV=function(C){this.visible=C.width>=300||this.sX;this.Kj(this.visible);this.Z.logVisibility(this.element,this.visible&&this.G)}; +g.k.kE4=function(){this.Z.Y().t4?this.Z.isMuted()?this.Z.unMute():this.Z.mute():uv(this.message,this.element,!0);this.Z.logClick(this.element)}; +g.k.onVolumeChange=function(C){this.setVolume(C.volume,C.muted)}; +g.k.setVolume=function(C,b){var h=this,N=b?0:C/100,p=this.Z.Y();C=N===0?1:C>50?1:0;if(this.W!==C){var P=this.N2;isNaN(P)?n$U(this,C):YsU(this.q2,function(e){n$U(h,P+(h.W-P)*e)},250); +this.W=C}N=N===0?1:0;if(this.X!==N){var c=this.V;isNaN(c)?t7S(this,N):YsU(this.KO,function(e){t7S(h,c+(h.X-c)*e)},250); +this.X=N}p.t4&&(p=g.oC(this.Z,"Mute","m"),N=g.oC(this.Z,"Unmute","m"),this.updateValue("title",b?N:p),this.update({"data-title-no-tooltip":b?"Unmute":"Mute"}),this.tooltip.B2())}; +g.k.us=function(C){g.n.prototype.us.call(this,C);this.Z.logVisibility(this.element,this.visible&&C)}; +var Wco=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",24.77," C",21.89,",",23.85," ",24,",",21.17," ",24,",",18," C",24,",",14.83," ",21.89,",",12.15," ",19,",",11.29," L",19,",",11.29," Z"],E$U=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",26.77," C",23.01,",",25.86," ",26,",",22.28," ",26,",",18," C",26,",",13.72," ", +23.01,",",10.14," ",19,",",9.23," L",19,",",11.29," Z"];g.S(g.vH,g.n);g.k=g.vH.prototype;g.k.onStateChange=function(C){this.TE(C.state);var b;((b=this.Z.Y())==null?0:b.D("embeds_use_parent_visibility_in_ve_logging"))&&this.Z.logVisibility(this.element,this.Bb&&this.G)}; +g.k.TE=function(C){var b=g.SM(this.Z.getVideoData()),h=!1;C.isOrWillBePlaying()?C=b?4:2:g.B(C,2)?(C=3,h=b):C=1;this.element.disabled=h;if(this.j!==C){b=null;switch(C){case 2:b=g.oC(this.Z,"Pause","k");this.update({"data-title-no-tooltip":"Pause"});break;case 3:b="Replay";this.update({"data-title-no-tooltip":"Replay"});break;case 1:b=g.oC(this.Z,"Play","k");this.update({"data-title-no-tooltip":"Play"});break;case 4:b="Stop live playback",this.update({"data-title-no-tooltip":"Stop live playback"})}C=== +3?this.update({title:b,icon:Tyl(C)}):(this.update({title:b}),(b=Tyl(C))&&this.j&&this.j!==3?lAW(this.transition,this.element,b):this.updateValue("icon",b));this.tooltip.B2();this.j=C}}; +g.k.onVideoDataChange=function(){g.Zo(this.element,"ytp-play-button-playlist",g.z4(this.Z))}; +g.k.L6=function(C){this.Z.logClick(this.element);if(this.Z.getPlayerStateObject().isOrWillBePlaying())this.Z.pauseVideo();else{if(this.Z.isMinimized()&&this.Z.getPlayerStateObject().isCued()){var b={},h;if((h=this.Z.getVideoData())==null?0:h.W)b.cttAuthInfo={token:this.Z.getVideoData().W,videoId:this.Z.getVideoData().videoId};Dd("direct_playback",b);this.Z.FX().timerName="direct_playback"}else this.j!==3||this.Z.Y().D("html5_no_csi_on_replay")||zD(this.Z.FX());this.Z.playVideo()}this.Z.isMinimized()&& +(C==null?void 0:C.type)==="click"&&this.element.blur()}; +g.k.us=function(C){g.n.prototype.us.call(this,C);var b;((b=this.Z.Y())==null?0:b.D("embeds_use_parent_visibility_in_ve_logging"))&&this.Z.logVisibility(this.element,this.Bb&&C)};g.S(g.DA,g.n);g.k=g.DA.prototype;g.k.onVideoDataChange=function(){I4S(this);this.X&&(this.D9(this.X),this.X=null);this.videoData=this.Z.getVideoData(1);if(this.playlist=this.Z.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.X=this.S(this.Z,"progresssync",this.xT);this.N=xql(this);Byl(this);this.WX(this.Z.Ti().getPlayerSize())}; +g.k.WX=function(C){C=C===void 0?this.Z.Ti().getPlayerSize():C;var b,h=((b=this.Z.getLoopRange())==null?void 0:b.type)==="clips";C=(g.z4(this.Z)||this.j&&g.mB(this.Z)&&!this.Z.D("web_hide_next_button")||wyK(this))&&!h&&(this.j||C.width>=400);this.Kj(C);this.Z.logVisibility(this.element,C)}; +g.k.onClick=function(C){this.Z.logClick(this.element);var b=!0;this.J?b=g.BK(C,this.Z):C.preventDefault();b&&(this.j&&this.Z.getPresentingPlayerType()===5?this.Z.publish("ytoprerollinternstitialnext"):this.j?(zD(this.Z.FX()),this.Z.publish("playlistnextbuttonclicked",this.element),this.Z.nextVideo(!0)):this.N?this.Z.seekTo(0):(zD(this.Z.FX()),this.Z.publish("playlistprevbuttonclicked",this.element),this.Z.previousVideo(!0)))}; +g.k.xT=function(){var C=xql(this);C!==this.N&&(this.N=C,Byl(this))}; +g.k.wO=function(){this.K&&(this.K(),this.K=null);I4S(this);g.n.prototype.wO.call(this)};g.S(bK1,g.n);g.k=bK1.prototype;g.k.qD=function(C){this.oN(C.pageX);this.sH(C.pageX+C.deltaX);ho6(this)}; +g.k.oN=function(C){this.KO=C-this.Df}; +g.k.sH=function(C){C-=this.Df;!isNaN(this.KO)&&this.thumbnails.length>0&&(this.V=C-this.KO,this.thumbnails.length>0&&this.V!==0&&(this.N=this.L+this.V,C=jq1(this,this.N),this.N<=this.j/2&&this.N>=PzS(this)?(this.api.seekTo(C,!1,void 0,void 0,25),g.Zv(this.nO,"transform","translateX("+(this.N-this.j/2)+"px)"),Cz1(this,C)):this.N=this.L))}; +g.k.dJ=function(){this.N2&&(this.N2.MY=!0);var C=(0,g.Ai)()-this.t4<300;if(Math.abs(this.V)<5&&!C){this.t4=(0,g.Ai)();C=this.KO+this.V;var b=this.j/2-C;this.oN(C);this.sH(C+b);ho6(this);this.api.logClick(this.W)}ho6(this)}; +g.k.HQ=function(){dz(this,this.api.getCurrentTime())}; +g.k.play=function(C){this.api.seekTo(jq1(this,this.N),void 0,void 0,void 0,26);this.api.playVideo();C&&this.api.logClick(this.playButton)}; +g.k.onExit=function(C){this.api.seekTo(this.rO,void 0,void 0,void 0,63);this.api.playVideo();C&&this.api.logClick(this.dismissButton)}; +g.k.eC=function(C,b){this.Df=C;this.j=b;dz(this,this.api.getCurrentTime())}; +g.k.enable=function(){this.isEnabled||(this.isEnabled=!0,this.rO=this.api.getCurrentTime(),Cz1(this,this.rO),g.Zo(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.Qz=this.S(this.element,"wheel",this.qD),this.logVisibility(this.isEnabled))}; +g.k.disable=function(){this.isEnabled=!1;this.hide();g.Zo(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.Qz&&this.D9(this.Qz);this.logVisibility(this.isEnabled)}; +g.k.reset=function(){this.disable();this.X=[];this.sX=!1}; +g.k.logVisibility=function(C){this.api.logVisibility(this.element,C);this.api.logVisibility(this.W,C);this.api.logVisibility(this.dismissButton,C);this.api.logVisibility(this.playButton,C)}; +g.k.wO=function(){for(;this.K.length;){var C=void 0;(C=this.K.pop())==null||C.dispose()}g.n.prototype.wO.call(this)}; +g.S(Nnl,g.n);g.S(gNo,g.n);g.S(crK,g.n);g.S(WH,g.n);WH.prototype.Rb=function(C){return C==="PLAY_PROGRESS"?this.L:C==="LOAD_PROGRESS"?this.J:C==="LIVE_BUFFER"?this.W:this.N};LVK.prototype.update=function(C,b,h,N){h=h===void 0?0:h;this.width=b;this.X=h;this.j=b-h-(N===void 0?0:N);this.position=g.kv(C,h,h+this.j);this.N=this.position-h;this.K=this.N/this.j};g.S(ZK1,g.n);g.S(g.tL,g.YY);g.k=g.tL.prototype; +g.k.qO=function(){var C=!1,b=this.api.getVideoData();if(!b)return C;this.api.Sh("timedMarkerCueRange");lz6(this);for(var h=g.z(b.Vz),N=h.next();!N.done;N=h.next()){N=N.value;var p=void 0,P=(p=this.rO[N])==null?void 0:p.markerType;p=void 0;var c=(p=this.rO[N])==null?void 0:p.markers;if(!c)break;if(P==="MARKER_TYPE_TIMESTAMPS"){C=g.z(c);for(P=C.next();!P.done;P=C.next()){p=P.value;P=new ZK1;c=void 0;P.title=((c=p.title)==null?void 0:c.simpleText)||"";P.timeRangeStartMillis=Number(p.startMillis);P.j= +Number(p.durationMillis);var e=c=void 0;P.onActiveCommand=(e=(c=p.onActive)==null?void 0:c.innertubeCommand)!=null?e:void 0;zoV(this,P)}HKl(this,this.W);C=this.W;P=this.Xy;p=[];c=null;for(e=0;eL&&(c.end=L);L=Nyx(L,L+Y);p.push(L);c=L;P[L.id]=C[e].onActiveCommand}}this.api.A8(p);this.ge=this.rO[N];C=!0}else if(P==="MARKER_TYPE_HEATMAP"){N=this.rO[N];Y=Z=p=L=e=c=void 0;if(N&& +N.markers){P=(p=(Y=N.markersMetadata)==null?void 0:(Z=Y.heatmapMetadata)==null?void 0:Z.minHeightDp)!=null?p:0;p=(c=(L=N.markersMetadata)==null?void 0:(e=L.heatmapMetadata)==null?void 0:e.maxHeightDp)!=null?c:60;c=this.j.length;e=null;for(L=0;L=Y&&G<=a&&Z.push(F)}p>0&&(this.N2.style.height= +p+"px");Y=this.X[L];a=Z;F=P;var V=p,q=L===0;q=q===void 0?!1:q;kRS(Y,V);l=a;G=Y.K;q=q===void 0?!1:q;var f=1E3/l.length,y=[];y.push({x:0,y:100});for(var u=0;u0&&(e=Z[Z.length-1])}g.Td(this)}p=void 0;P=[];if(N=(p=N.markersDecoration)==null?void 0:p.timedMarkerDecorations)for(N=g.z(N),p=N.next();!p.done;p=N.next())p=p.value,L=e=c=void 0,P.push({visibleTimeRangeStartMillis:(c=p.visibleTimeRangeStartMillis)!=null?c:-1,visibleTimeRangeEndMillis:(e=p.visibleTimeRangeEndMillis)!=null?e:-1,decorationTimeMillis:(L=p.decorationTimeMillis)!= +null?L:NaN,label:p.label?g.oS(p.label):""});N=P;this.heatMarkersDecorations=N}}b.wP=this.W;g.Zo(this.element,"ytp-timed-markers-enabled",C);return C}; +g.k.eC=function(){g.Td(this);xd(this);HKl(this,this.W);if(this.K){var C=g.$X(this.element).x||0;this.K.eC(C,this.J)}}; +g.k.onClickCommand=function(C){if(C=g.d(C,EF)){var b=C.key;C.isVisible&&b&&mUl(this,b)}}; +g.k.Be6=function(C){this.api.LO("innertubeCommand",this.Xy[C.id])}; +g.k.cW=function(){xd(this);var C=this.api.getCurrentTime();(Cthis.clipEnd)&&this.DL()}; +g.k.WH=function(C){if(!C.defaultPrevented){var b=!1;switch(C.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);b=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);b=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);b=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);b=!0;break;case 38:this.api.D("enable_key_press_seek_logging")&&gB(this,this.api.getCurrentTime(),this.api.getCurrentTime()+5,"SEEK_SOURCE_SEEK_FORWARD_5S","INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"); +this.api.seekBy(5,void 0,void 0,72);b=!0;break;case 40:this.api.D("enable_key_press_seek_logging")&&gB(this,this.api.getCurrentTime(),this.api.getCurrentTime()-5,"SEEK_SOURCE_SEEK_BACKWARD_5S","INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"),this.api.seekBy(-5,void 0,void 0,71),b=!0}b&&C.preventDefault()}}; +g.k.bN=function(C,b){this.updateVideoData(b,C==="newdata")}; +g.k.BOO=function(){this.bN("newdata",this.api.getVideoData())}; +g.k.updateVideoData=function(C,b){b=b===void 0?!1:b;var h=!!C&&C.bF();if(h&&(Ev(C)||iKV(this)?this.fK=!1:this.fK=C.allowLiveDvr,g.Zo(this.api.getRootNode(),"ytp-enable-live-buffer",!(C==null||!Ev(C))),this.api.D("enable_custom_playhead_parsing"))){var N,p,P,c=g.d((N=C.getWatchNextResponse())==null?void 0:(p=N.playerOverlays)==null?void 0:(P=p.playerOverlayRenderer)==null?void 0:P.decoratedPlayerBarRenderer,FJ);if(c==null?0:c.progressColor)for(N=0;N0;)this.X.pop().dispose();this.heatMarkersDecorations=[];this.Vz={};var a;(a=this.K)==null||a.reset();em(this);g.Zo(this.api.getRootNode(),"ytp-fine-scrubbing-exp",nh(this))}else this.DL();this.W2()}if(C){var l;a=((l=this.Wb)==null?void 0:l.type)==="clips";if(l=!C.isLivePlayback){l=this.api.getVideoData();b=g.Gt(l);h=FVV(l);var F;l=b!=null||h!=null&&h.length>0||((F=l.RX)== +null?void 0:F.length)>0}if(l&&!a){F=this.api.getVideoData();a=g.Gt(F);l=!1;if(a==null?0:a.markersMap){l=this.api.getVideoData();var G;l.YN=((G=a.visibleOnLoad)==null?void 0:G.key)||l.YN;G=g.z(a.markersMap);for(a=G.next();!a.done;a=G.next())a=a.value,a.key&&a.value&&(this.Vz[a.key]=a.value,a.value.onChapterRepeat&&(l.s9=a.value.onChapterRepeat));l.YN!=null&&mUl(this,l.YN);l=!0}var V;if(((V=F.RX)==null?void 0:V.length)>0){V=g.nj.getState().entities;G=g.z(F.RX);for(a=G.next();!a.done;a=G.next())if(a= +a.value,h=void 0,b=(h=e_(V,"macroMarkersListEntity",a))==null?void 0:h.markersList,e=h=void 0,((h=b)==null?void 0:h.markerType)==="MARKER_TYPE_TIMESTAMPS"||((e=b)==null?void 0:e.markerType)==="MARKER_TYPE_HEATMAP")this.rO[a]=b;l=this.qO()||l}!l&&(V=FVV(F))&&(SI1(this,V),F.NZ=this.j,GRl(this));Jrl(this,null);C.v0&&this.X.length===0&&(C=C.v0,V=C.key,C.isVisible&&V&&mUl(this,V))}else YIx(this),lz6(this)}xd(this)}; +g.k.ZOf=function(C){this.L&&!g.B(C.state,32)&&this.api.getPresentingPlayerType()!==3&&this.L.cancel();var b;((b=this.K)==null?0:b.isEnabled)&&g.B(C.state,8)&&this.api.pauseVideo();C=this.api.getPresentingPlayerType()===2||!this.api.hL()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.Zo(this.mw,"ytp-hide-scrubber-button",C)}; +g.k.C3=function(C){var b=!!this.Wb!==!!C,h=this.Wb;this.Wb=C;Jrl(this,h);(C==null?void 0:C.type)!=="clips"&&C||(C?(this.updateValue("clipstarticon",m$S()),this.updateValue("clipendicon",m$S()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",Gnl()),this.updateValue("clipendicon",FKl()),this.updateValue("clipstarttitle","Watch full video"),this.updateValue("clipendtitle","Watch full video")),b&&(this.updateVideoData(this.api.getVideoData(), +!0),g.Td(this)),pc(this));bs(this,this.V,this.kh)}; +g.k.Z96=function(C,b,h){var N=g.$X(this.element),p=IX(this).j,P=h?h.getAttribute("data-tooltip"):void 0,c=h?h.getAttribute("data-position"):void 0,e=h?h.getAttribute("data-offset-y"):void 0;e=e?Number(e):0;c&&(C=Qt(this.N,Number(h.getAttribute("data-position")),0)*p+g.$X(this.progressBar).x);this.Yh.x=C-N.x;this.Yh.y=b-N.y;C=IX(this);h=NY(this,C);b=0;var L;if((L=this.api.getVideoData())==null?0:Ev(L))(L=this.api.getProgressState().seekableEnd)&&h>L&&(h=L,C.position=Qt(this.N,L)*IX(this).j),b=this.N.K; +iKV(this)&&(b=this.N.K);L=P||g.Mj(this.fK?h-this.N.j:h-b);b=C.position+this.OR;h-=this.api.Z9();var Z;if((Z=this.K)==null||!Z.isEnabled)if(this.api.hR()){if(this.j.length>1){Z=hY(this,this.Yh.x,!0);if(!this.Wb)for(N=0;N1)for(N=0;N0)for(Z=this.Yh.x,N=g.z(this.W),p=N.next();!p.done;p=N.next())p=p.value,c=BH(this,p.timeRangeStartMillis/ +(this.N.j*1E3),IX(this)),g.Zo(p.element,"ytp-timed-marker-hover",c<=Z&&c+6>=Z);N=this.tooltip.scale;e=(isNaN(e)?0:e)-45*N;this.api.D("web_key_moments_markers")?this.ge?(Z=CQl(this.W,h*1E3),Z=Z!=null?this.W[Z].title:""):(Z=Fk(this.j,h*1E3),Z=this.j[Z].title):(Z=Fk(this.j,h*1E3),Z=this.j[Z].title);Z||(e+=16*N);this.tooltip.scale===.6&&(this.api.D("web_cairo_modern_miniplayer")?(e=this.api.Ti().getPlayerSize().height-225,e=Z?e+110:e+110+16,this.api.D("web_cairo_modern_miniplayer_inset_progress_bar")&& +(e-=12)):e=Z?110:126);N=Fk(this.j,h*1E3);this.nO=uUW(this,h,N)?N:uUW(this,h,N+1)?N+1:-1;g.Zo(this.api.getRootNode(),"ytp-progress-bar-snap",this.nO!==-1&&this.j.length>1);N=!1;p=g.z(this.heatMarkersDecorations);for(c=p.next();!c.done;c=p.next()){c=c.value;var Y=h*1E3;Y>=c.visibleTimeRangeStartMillis&&Y<=c.visibleTimeRangeEndMillis&&(Z=c.label,L=g.Mj(c.decorationTimeMillis/1E3),N=!0)}this.OU!==N&&(this.OU=N,this.api.logVisibility(this.aL,this.OU));g.Zo(this.api.getRootNode(),"ytp-progress-bar-decoration", +N);N=160*this.tooltip.scale*2;p=Z.length*(this.KO?8.55:5.7);p=p<=N?p:N;c=p<160*this.tooltip.scale;N=3;!c&&p/2>C.position&&(N=1);!c&&p/2>this.J-C.position&&(N=2);this.api.Y().L&&(e-=10);this.X.length&&this.X[0].bF&&(e-=14*(this.KO?2:1),this.Qz||(this.Qz=!0,this.api.logVisibility(this.N2,this.Qz)));var a;if(nh(this)&&(((a=this.K)==null?0:a.isEnabled)||this.CO>0)){var l;e-=((l=this.K)==null?0:l.isEnabled)?jm(this):this.CO}a=void 0;nh(this)&&!this.api.D("web_player_hide_fine_scrubbing_edu")&&(a="Pull up for precise seeking", +this.sX||(this.sX=!0,this.api.logVisibility(this.Yr,this.sX)));this.tooltip.AF(b,h,L,!!P,e,Z,N,a)}else this.tooltip.AF(b,h,L,!!P,e);g.c4(this.api.getRootNode(),"ytp-progress-bar-hover");rr1(this)}; +g.k.B9i=function(){this.W2();g.e6(this.api.getRootNode(),"ytp-progress-bar-hover");this.Qz&&(this.Qz=!1,this.api.logVisibility(this.N2,this.Qz));this.sX&&(this.sX=!1,this.api.logVisibility(this.Yr,this.sX))}; +g.k.w7O=function(C,b){nh(this)&&this.K&&(this.K.sX?dz(this.K,this.api.getCurrentTime()):p2H(this.K),this.K.show(),g.Zo(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.K.isEnabled));this.lF&&(this.lF.dispose(),this.lF=null);this.Eq=b;this.w9=this.api.getCurrentTime();this.j.length>1&&this.nO!==-1?this.api.seekTo(this.j[this.nO].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(NY(this,IX(this)),!1,void 0,void 0,7);g.c4(this.element,"ytp-drag");(this.pK=this.api.getPlayerStateObject().isOrWillBePlaying())&& +this.api.pauseVideo()}; +g.k.nth=function(){if(nh(this)&&this.K){var C=jm(this);this.CO>=C*.5?(this.K.enable(),dz(this.K,this.api.getCurrentTime()),vNW(this,C)):em(this)}if(g.B(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var b;if((b=this.K)==null?0:b.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.j.length>1&&this.nO!==-1)this.api.D("html5_enable_progress_bar_slide_seek_logging")&&gB(this,this.w9,this.j[this.nO].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", +"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.j[this.nO].startTime/1E3,void 0,void 0,void 0,7);else{C=NY(this,IX(this));this.api.D("html5_enable_progress_bar_slide_seek_logging")&&gB(this,this.w9,C,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(C,void 0,void 0,void 0,7);b=g.z(this.heatMarkersDecorations);for(var h=b.next();!h.done;h=b.next())h=h.value,C*1E3>=h.visibleTimeRangeStartMillis&&C*1E3<=h.visibleTimeRangeEndMillis&& +this.api.logClick(this.aL)}g.e6(this.element,"ytp-drag");this.pK&&!g.B(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; +g.k.RU4=function(C,b){C=IX(this);C=NY(this,C);this.api.seekTo(C,!1,void 0,void 0,7);var h;nh(this)&&((h=this.K)==null?0:h.sX)&&(dz(this.K,C),this.K.isEnabled||(h=jm(this),this.CO=g.kv(this.Eq-b-10,0,h),vNW(this,this.CO)))}; +g.k.W2=function(){this.tooltip.Hn()}; +g.k.Nm=function(){this.Wb||(this.updateValue("clipstarticon",o1H()),this.updateValue("clipendicon",o1H()),g.c4(this.element,"ytp-clip-hover"))}; +g.k.KM=function(){this.Wb||(this.updateValue("clipstarticon",Gnl()),this.updateValue("clipendicon",FKl()),g.e6(this.element,"ytp-clip-hover"))}; +g.k.DL=function(){this.clipStart=0;this.clipEnd=Infinity;pc(this);bs(this,this.V,this.kh)}; +g.k.T0p=function(C){C=g.z(C);for(var b=C.next();!b.done;b=C.next())if(b=b.value,b.visible){var h=b.getId();if(!this.Df[h]){var N=g.CM("DIV");b.tooltip&&N.setAttribute("data-tooltip",b.tooltip);this.Df[h]=b;this.SC[h]=N;g.P4(N,b.style);RoS(this,h);this.api.Y().D("disable_ad_markers_on_content_progress_bar")||this.j[0].X.appendChild(N)}}else OKW(this,b)}; +g.k.xKf=function(C){C=g.z(C);for(var b=C.next();!b.done;b=C.next())OKW(this,b.value)}; +g.k.DC=function(C){this.K&&(this.K.onExit(C!=null),em(this))}; +g.k.Kc=function(C){this.K&&(this.K.play(C!=null),em(this))}; +g.k.VqD=function(){DUl(this,this.api.hL())}; +g.k.wO=function(){DUl(this,!1);g.YY.prototype.wO.call(this)};g.S(Lc,g.n);Lc.prototype.isActive=function(){return!!this.Z.getOption("remote","casting")}; +Lc.prototype.l$=function(){var C=!1;this.Z.getOptions().includes("remote")&&(C=this.Z.getOption("remote","receivers").length>1);this.Kj(C&&this.Z.Ti().getPlayerSize().width>=400);this.Z.logVisibility(this.element,this.Bb);var b=1;C&&this.isActive()&&(b=2);if(this.j!==b){this.j=b;switch(b){case 1:this.updateValue("icon",{B:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},U:[{B:"path",xr:!0,T:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z", +fill:"#fff"}}]});break;case 2:this.updateValue("icon",g.lQK())}g.Zo(this.element,"ytp-remote-button-active",this.isActive())}}; +Lc.prototype.K=function(){if(this.Z.getOption("remote","quickCast"))this.Z.setOption("remote","quickCast",!0);else{var C=this.xg,b=this.element;if(C.C5())C.QV();else{C.initialize();a:{var h=g.z(C.Zb.items);for(var N=h.next();!N.done;N=h.next())if(N=N.value,N.priority===1){h=N;break a}h=null}h&&(h.open(),C.mE(b));C.mE(b)}}this.Z.logClick(this.element)};g.S(ZM,g.n);ZM.prototype.j=function(C){var b=this.Z.Y(),h=400;this.Z.D("web_player_small_hbp_settings_menu")&&b.W?h=300:b.L&&(h=200);C=this.K&&C.width>=h;this.Kj(C);this.Z.D("embeds_use_parent_visibility_in_ve_logging")?this.Z.logVisibility(this.element,C&&this.G):this.Z.logVisibility(this.element,C)}; +ZM.prototype.N=function(){if(this.xg.Bb)this.xg.QV();else{var C=g.uS(this.Z.N8());C&&!C.loaded&&(C.X8("tracklist",{includeAsr:!0}).length||C.load());this.Z.logClick(this.element);this.xg.mE(this.element)}}; +ZM.prototype.updateBadge=function(){var C=this.Z.isHdr(),b=this.Z.getPresentingPlayerType(),h=b!==2&&b!==3,N=g.MC(this.Z),p=h&&!!g.VG(this.Z.N8());b=p&&N.displayMode===1;N=p&&N.displayMode===2;h=(p=b||N)||!h?null:this.Z.getPlaybackQuality();g.Zo(this.element,"ytp-hdr-quality-badge",C);g.Zo(this.element,"ytp-hd-quality-badge",!C&&(h==="hd1080"||h==="hd1440"));g.Zo(this.element,"ytp-4k-quality-badge",!C&&h==="hd2160");g.Zo(this.element,"ytp-5k-quality-badge",!C&&h==="hd2880");g.Zo(this.element,"ytp-8k-quality-badge", +!C&&h==="highres");g.Zo(this.element,"ytp-3d-badge-grey",!C&&p&&b);g.Zo(this.element,"ytp-3d-badge",!C&&p&&N)};g.S(YB,tR);YB.prototype.isLoaded=function(){var C=g.sC(this.Z.N8());return C!==void 0&&C.loaded}; +YB.prototype.l$=function(){g.sC(this.Z.N8())!==void 0&&this.Z.getPresentingPlayerType()!==3?this.j||(this.xg.hk(this),this.j=!0):this.j&&(this.xg.Sq(this),this.j=!1);T4(this,this.isLoaded())}; +YB.prototype.onSelect=function(C){this.isLoaded();C?this.Z.loadModule("annotations_module"):this.Z.unloadModule("annotations_module");this.Z.publish("annotationvisibility",C)}; +YB.prototype.wO=function(){this.j&&this.xg.Sq(this);tR.prototype.wO.call(this)};g.S(a$,g.tn);a$.prototype.l$=function(){var C=this.Z.getAvailableAudioTracks();C.length>1?(this.GC(g.q_(C,this.j)),this.tracks=g.FE(C,this.j,this),this.countLabel.jh(C.length?" ("+C.length+")":""),this.publish("size-change"),this.ra(this.j(this.Z.getAudioTrack())),this.enable(!0)):this.enable(!1)}; +a$.prototype.GO=function(C){g.tn.prototype.GO.call(this,C);this.Z.setAudioTrack(this.tracks[C]);this.xg.ql()}; +a$.prototype.j=function(C){return C.toString()};g.S(ls,tR); +ls.prototype.K=function(){var C=this.Z.getPresentingPlayerType();if(C!==2&&C!==3&&g.mB(this.Z))this.j||(this.xg.hk(this),this.j=!0,this.N.push(this.S(this.Z,"videodatachange",this.K)),this.N.push(this.S(this.Z,"videoplayerreset",this.K)),this.N.push(this.S(this.Z,"onPlaylistUpdate",this.K)),this.N.push(this.S(this.Z,"autonavchange",this.X)),C=this.Z.getVideoData(),this.X(C.autonavState),this.Z.logVisibility(this.element,this.j));else if(this.j){this.xg.Sq(this);this.j=!1;C=g.z(this.N);for(var b=C.next();!b.done;b= +C.next())this.D9(b.value)}}; +ls.prototype.X=function(C){T4(this,C!==1)}; +ls.prototype.onSelect=function(C){this.Z.yZ(C?2:1);this.j&&(this.Z.logVisibility(this.element,this.j),this.Z.logClick(this.element))}; +ls.prototype.wO=function(){this.j&&this.xg.Sq(this);tR.prototype.wO.call(this)};g.S(WVo,g.U_);WVo.prototype.onClick=function(C){C.preventDefault();var b,h;(b=g.j3(this.Z))==null||(h=b.r8())==null||h.QV();var N,p;(N=g.j3(this.Z))==null||(p=N.dZ())==null||p.mE(C.target)};g.S(ENc,g.tn);g.k=ENc.prototype; +g.k.Kn=function(){var C=this.Z.getPresentingPlayerType();if(C!==2&&C!==3){this.nO=this.Z.IR();C=this.Z.getAvailableQualityLevels();if(this.j){this.X={};var b=g.hR(this.Z,"getAvailableQualityData",[]);b=g.z(b);for(var h=b.next();!h.done;h=b.next())h=h.value,this.X[h.qualityLabel]=h;b=Object.keys(this.X);C[C.length-1]==="auto"&&b.push("auto");this.q2=new Set(C)}else if(this.W){h=g.hR(this.Z,"getAvailableQualityData",[]);b=[];h=g.z(h);for(var N=h.next();!N.done;N=h.next())N=N.value,this.V[N.quality]= +N,N.quality&&b.push(N.quality);C[C.length-1]==="auto"&&b.push("auto")}else b=C;g.KxV(this.Z)&&this.Z.mS()&&b.unshift("missing-qualities");sal(this.Z)&&b.unshift("inline-survey");this.GC(b);C=this.Z.getVideoData().cotn?!0:!1;h=this.N2.c6();h=!g.vI(this.Z.Y())||!(C===void 0?0:C)||!(h===void 0||h);C=this.K;h=h===void 0?!1:h;C.xV&&g.Zo(C.dO("ytp-panel-footer"),"ytp-panel-hide-footer",h===void 0?!1:h);if(b.length){this.bV();this.enable(!0);return}}this.enable(!1)}; +g.k.bV=function(){if(this.j){var C=this.Z.getPreferredQuality();this.q2.has(C)&&(this.J=this.Z.getPlaybackQuality(),this.KO=this.Z.getPlaybackQualityLabel(),C==="auto"?(this.ra(C),this.jh(this.o0(C))):this.ra(this.KO))}else C=this.Z.getPreferredQuality(),this.options[C]&&(this.J=this.Z.getPlaybackQuality(),this.ra(C),C==="auto"&&this.jh(this.o0(C)))}; +g.k.GO=function(C){if(C!=="missing-qualities"){g.tn.prototype.GO.call(this,C);var b=this.j?this.X[C]:this.V[C];var h=b==null?void 0:b.quality,N=b==null?void 0:b.formatId,p=b==null?void 0:b.paygatedQualityDetails;b=p==null?void 0:p.endpoint;if(p){var P;p=(P=this.options[C])==null?void 0:P.element;this.Z.logClick(p)}if(this.j){var c,e;if((c=g.d(b,g.REo))==null?0:(e=c.popup)==null?0:e.notificationActionRenderer)this.Z.LO("innertubeCommand",b);else if(b){this.Z.LO("innertubeCommand",b);return}N?this.Z.setPlaybackQuality(h, +N):this.Z.setPlaybackQuality(h)}else{if(this.W){var L,Z;if((L=g.d(b,g.REo))==null?0:(Z=L.popup)==null?0:Z.notificationActionRenderer)this.Z.LO("innertubeCommand",b);else if(b){this.Z.LO("innertubeCommand",b);return}}this.Z.setPlaybackQuality(C)}this.xg.QV();this.Kn()}}; +g.k.open=function(){for(var C=g.z(Object.values(this.options)),b=C.next();!b.done;b=C.next()){b=b.value;var h=void 0;this.Z.hasVe((h=b)==null?void 0:h.element)&&(h=void 0,this.Z.logVisibility((h=b)==null?void 0:h.element,!0))}g.tn.prototype.open.call(this);this.Z.logClick(this.element)}; +g.k.Dc=function(C,b,h){var N=this;if(C==="missing-qualities")return new g.U_({B:"a",J4:["ytp-menuitem"],T:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.Z.Y().V,tabindex:"0",role:"menuitemradio"},U:[{B:"div",J4:["ytp-menuitem-label"],BE:"{{label}}"}]},b,this.o0(C));if(C!=="inline-survey"){var p,P=(p=this.j?this.X[C]:this.V[C])==null?void 0:p.paygatedQualityDetails;p=P==null?void 0:P.veType;P=P==null?void 0:P.trackingParams;b=g.tn.prototype.Dc.call(this,C,b,h);P?(this.Z.createServerVe(b.element, +this,!0),this.Z.setTrackingParams(b.element,P)):p&&this.Z.createClientVe(b.element,this,p,!0);return b}C=[{B:"span",BE:"Looks good?"}];h=g.z([!0,!1]);P=h.next();for(p={};!P.done;p={Qo:void 0},P=h.next())p.Qo=P.value,P=new g.n({B:"span",C:"ytp-menuitem-inline-survey-response",U:[p.Qo?q1V():$$_()],T:{tabindex:"0",role:"button"}}),P.listen("click",function(c){return function(){var e=N.Z.app.i$();e&&(e.jp("iqsr",{tu:c.Qo}),e.getVideoData().G8=!0);N.xg.QV();N.Kn()}}(p)),C.push(P); +return new g.U_({B:"div",C:"ytp-menuitem",T:{"aria-disabled":"true"},U:[{B:"div",J4:["ytp-menuitem-label"],U:C}]},b)}; +g.k.o0=function(C,b){b=b===void 0?!1:b;if(C==="missing-qualities")return{B:"div",BE:"Missing options?"};if(C==="inline-survey")return"";var h=this.W||this.j?[TnW(this,C,b,!1)]:[ttl(this,C)];var N=this.Z.getPreferredQuality();b||N!=="auto"||C!=="auto"||(h.push(" "),this.j?h.push(TnW(this,this.KO,b,!0,["ytp-menu-label-secondary"])):this.W?h.push(TnW(this,this.J,b,!0,["ytp-menu-label-secondary"])):h.push(ttl(this,this.J,["ytp-menu-label-secondary"])));return{B:"div",U:h}};g.S(o$,g.n);o$.prototype.init=function(){this.updateValue("minvalue",this.N);this.updateValue("maxvalue",this.X);this.updateValue("stepvalue",this.W);this.updateValue("slidervalue",this.K);Bn_(this,this.K)}; +o$.prototype.J=function(){Iz6(this,Number(this.j.value));this.j.focus()};g.S(FD,o$);FD.prototype.J=function(){o$.prototype.J.call(this);this.L&&xUH(this)}; +FD.prototype.nO=function(){this.V()}; +FD.prototype.N2=function(){this.Z.setPlaybackRate(this.K,!0)}; +FD.prototype.KO=function(C){if(!C.defaultPrevented){switch(C.code){case "ArrowDown":var b=-this.W;break;case "ArrowUp":b=this.W;break;default:return}Iz6(this,Math.min(this.X,Math.max(Number((this.K+b).toFixed(2)),this.N)));this.V();xUH(this);C.preventDefault()}};g.S(GX,g.n);g.k=GX.prototype;g.k.init=function(){this.Qa(this.j);this.updateValue("minvalue",this.K);this.updateValue("maxvalue",this.N)}; +g.k.Ei=function(C){if(!C.defaultPrevented){switch(C.keyCode){case 37:case 40:var b=-this.L;break;case 39:case 38:b=this.L;break;default:return}this.Qa(this.j+b);C.preventDefault()}}; +g.k.ox=function(C){var b=this.j;b+=(C.deltaX||-C.deltaY)<0?-this.V:this.V;this.Qa(b);C.preventDefault()}; +g.k.GL=function(C){C=(C-g.$X(this.X).x)/this.KO*this.range+this.K;this.Qa(C)}; +g.k.Qa=function(C,b){b=b===void 0?"":b;C=g.kv(C,this.K,this.N);b===""&&(b=C.toString());this.updateValue("valuenow",C);this.updateValue("valuetext",b);this.N2.style.left=(C-this.K)/this.range*(this.KO-this.sX)+"px";this.j=C}; +g.k.focus=function(){this.Qz.focus()};g.S(Sm,GX);Sm.prototype.nO=function(){this.Z.setPlaybackRate(this.j,!0)}; +Sm.prototype.Qa=function(C){GX.prototype.Qa.call(this,C,CLW(this,C).toString());this.W&&(w2_(this),this.q2())}; +Sm.prototype.updateValues=function(){var C=this.Z.getPlaybackRate();CLW(this,this.j)!==C&&(this.Qa(C),w2_(this))};g.S(b16,g.YY);b16.prototype.focus=function(){this.j.focus()};g.S(h3H,Ud);g.S(Nxc,g.tn);g.k=Nxc.prototype;g.k.o0=function(C){return C==="1"?"Normal":C.toLocaleString()}; +g.k.l$=function(){var C,b=(C=this.Z.getVideoData())==null?void 0:C.qz();C=this.Z.getPresentingPlayerType(b);this.enable(C!==2&&C!==3);jPl(this)}; +g.k.GC=function(C){g.tn.prototype.GC.call(this,C);this.J&&this.J.j.focus()}; +g.k.RY=function(C){g.tn.prototype.RY.call(this,C);C?(this.KO=this.S(this.Z,"onPlaybackRateChange",this.onPlaybackRateChange),jPl(this),pMc(this,this.Z.getPlaybackRate())):(this.D9(this.KO),this.KO=null)}; +g.k.onPlaybackRateChange=function(C){var b=this.Z.getPlaybackRate();!this.W&&this.V.includes(b)||PLo(this,b);pMc(this,C)}; +g.k.Dc=function(C,b,h){return C===this.j&&c61(this.Z)?g.tn.prototype.Dc.call(this,C,b,h,{B:"div",C:"ytp-speed-slider-menu-footer",U:[this.J]}):g.tn.prototype.Dc.call(this,C,b,h)}; +g.k.GO=function(C){g.tn.prototype.GO.call(this,C);C===this.j?this.Z.setPlaybackRate(this.X,!0):this.Z.setPlaybackRate(Number(C),!0);c61(this.Z)&&C===this.j||this.xg.ql()}; +g.k.n0=function(C){var b=C===this.j;this.W=!1;b&&$B(this.Z)&&!c61(this.Z)?(C=new h3H(this.Z),g.Od(this.xg,C)):g.tn.prototype.n0.call(this,C)};g.S(e3o,g.tn);g.k=e3o.prototype;g.k.ra=function(C){g.tn.prototype.ra.call(this,C)}; +g.k.iV=function(C){return C.option.toString()}; +g.k.getOption=function(C){return this.settings[C]}; +g.k.o0=function(C){return this.getOption(C).text||""}; +g.k.GO=function(C){g.tn.prototype.GO.call(this,C);this.publish("settingChange",this.setting,this.settings[C].option)};g.S(zX,g.Xs);zX.prototype.Qy=function(C){for(var b=g.z(Object.keys(C)),h=b.next();!h.done;h=b.next()){var N=h.value;if(h=this.dL[N]){var p=C[N].toString();N=!!C[N+"Override"];h.options[p]&&(h.ra(p),h.X.element.setAttribute("aria-checked",String(!N)),h.j.element.setAttribute("aria-checked",String(N)))}}}; +zX.prototype.U2=function(C,b){this.publish("settingChange",C,b)};g.S(HU,g.tn);HU.prototype.j=function(C){return C.languageCode}; +HU.prototype.o0=function(C){return this.languages[C].languageName||""}; +HU.prototype.GO=function(C){this.publish("select",C);this.Z.logClick(this.element);g.vY(this.xg)};g.S(YVS,g.tn);g.k=YVS.prototype;g.k.NF=function(C){return g.yT(C)?"__off__":C.displayName}; +g.k.o0=function(C){return C==="__off__"?"Off":C==="__translate__"?"Auto-translate":C==="__contribute__"?"Add subtitles/CC":C==="__correction__"?"Suggest caption corrections":(C==="__off__"?{}:this.tracks[C]).displayName}; +g.k.GO=function(C){if(C==="__translate__")this.j.open();else if(C==="__contribute__"){this.Z.pauseVideo();this.Z.isFullscreen()&&this.Z.toggleFullscreen();var b=g.fx(this.Z.Y(),this.Z.getVideoData());g.WX(b)}else if(C==="__correction__"){this.Z.pauseVideo();this.Z.isFullscreen()&&this.Z.toggleFullscreen();var h=a$W(this);V8(this,h);g.tn.prototype.GO.call(this,this.NF(h));var N,p;h=(b=this.Z.getVideoData().getPlayerResponse())==null?void 0:(N=b.captions)==null?void 0:(p=N.playerCaptionsTracklistRenderer)== +null?void 0:p.openTranscriptCommand;this.Z.LO("innertubeCommand",h);this.xg.ql();this.X&&this.Z.logClick(this.X)}else{if(C==="__correction__"){this.Z.pauseVideo();this.Z.isFullscreen()&&this.Z.toggleFullscreen();b=a$W(this);V8(this,b);g.tn.prototype.GO.call(this,this.NF(b));var P,c;b=(h=this.Z.getVideoData().getPlayerResponse())==null?void 0:(P=h.captions)==null?void 0:(c=P.playerCaptionsTracklistRenderer)==null?void 0:c.openTranscriptCommand;this.Z.LO("innertubeCommand",b)}else this.Z.logClick(this.element), +V8(this,C==="__off__"?{}:this.tracks[C]),g.tn.prototype.GO.call(this,C);this.xg.ql()}}; +g.k.l$=function(){var C=this.Z.getOptions();C=C&&C.indexOf("captions")!==-1;var b=this.Z.getVideoData(),h=b&&b.b6,N,p=!((N=this.Z.getVideoData())==null||!g.d9(N));N={};if(C||h){var P;if(C){var c=this.Z.getOption("captions","track");N=this.Z.getOption("captions","tracklist",{includeAsr:!0});var e=p?[]:this.Z.getOption("captions","translationLanguages");this.tracks=g.FE(N,this.NF,this);p=g.q_(N,this.NF);var L,Z;a$W(this)&&((P=b.getPlayerResponse())==null?0:(L=P.captions)==null?0:(Z=L.playerCaptionsTracklistRenderer)== +null?0:Z.openTranscriptCommand)&&p.push("__correction__");if(e.length&&!g.yT(c)){if((P=c.translationLanguage)&&P.languageName){var Y=P.languageName;P=e.findIndex(function(a){return a.languageName===Y}); +p$V(e,P)}Lyl(this.j,e);p.push("__translate__")}P=this.NF(c)}else this.tracks={},p=[],P="__off__";p.unshift("__off__");this.tracks.__off__={};h&&p.unshift("__contribute__");this.tracks[P]||(this.tracks[P]=c,p.push(P));this.GC(p);this.ra(P);c&&c.translationLanguage?this.j.ra(this.j.j(c.translationLanguage)):BOo(this.j);C&&this.W.Qy(this.Z.getSubtitlesUserSettings());this.countLabel.jh(N&&N.length?" ("+N.length+")":"");this.publish("size-change");this.Z.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; +g.k.ax=function(C){var b=this.Z.getOption("captions","track");b=g.J8(b);b.translationLanguage=this.j.languages[C];V8(this,b)}; +g.k.U2=function(C,b){if(C==="reset")this.Z.resetSubtitlesUserSettings();else{var h={};h[C]=b;this.Z.updateSubtitlesUserSettings(h)}Z1H(this,!0);this.J.start();this.W.Qy(this.Z.getSubtitlesUserSettings())}; +g.k.Us6=function(C){C||g.NM(this.J)}; +g.k.wO=function(){g.NM(this.J);g.tn.prototype.wO.call(this)}; +g.k.open=function(){g.tn.prototype.open.call(this);this.options.__correction__&&!this.X&&(this.X=this.options.__correction__.element,this.Z.createClientVe(this.X,this,167341),this.Z.logVisibility(this.X,!0))};g.S(l$V,g.sd);g.k=l$V.prototype; +g.k.initialize=function(){if(!this.isInitialized){var C=this.Z.Y();this.isInitialized=!0;try{this.w$=new ENc(this.Z,this)}catch(h){g.QB(Error("QualityMenuItem creation failed"))}g.D(this,this.w$);var b=new YVS(this.Z,this);g.D(this,b);C.N||(b=new YB(this.Z,this),g.D(this,b));C.enableSpeedOptions&&(b=new Nxc(this.Z,this),g.D(this,b));(g.$7(C)||C.W)&&(C.K||C.CO)&&(b=new WVo(this.Z,this),g.D(this,b));C.lF&&!C.D("web_player_move_autonav_toggle")&&(C=new ls(this.Z,this),g.D(this,C));C=new a$(this.Z,this); +g.D(this,C);this.Z.publish("settingsMenuInitialized");dUo(this.settingsButton,this.Zb.Xk())}}; +g.k.hk=function(C){this.initialize();this.Zb.hk(C);dUo(this.settingsButton,this.Zb.Xk())}; +g.k.Sq=function(C){this.Bb&&this.Zb.Xk()<=1&&this.hide();this.Zb.Sq(C);dUo(this.settingsButton,this.Zb.Xk())}; +g.k.mE=function(C){this.initialize();this.Zb.Xk()>0&&g.sd.prototype.mE.call(this,C)}; +g.k.QV=function(){this.UZ?this.UZ=!1:g.sd.prototype.QV.call(this)}; +g.k.show=function(){g.sd.prototype.show.call(this);g.c4(this.Z.getRootNode(),"ytp-settings-shown")}; +g.k.hide=function(){g.sd.prototype.hide.call(this);g.e6(this.Z.getRootNode(),"ytp-settings-shown")}; +g.k.ws=function(C){this.Z.logVisibility(this.element,C);this.Z.publish("settingsMenuVisibilityChanged",C)};g.S(FyK,g.n);g.k=FyK.prototype;g.k.onClick=function(){if(GPU(this)&&(this.Z.toggleSubtitles(),this.Z.logClick(this.element),!this.isEnabled())){var C=!1,b=g.D7(g.vj(),65);g.vI(this.Z.Y())&&b!=null&&(C=!b);C&&this.Z.Y().D("web_player_nitrate_promo_tooltip")&&this.Z.publish("showpromotooltip",this.element)}}; +g.k.n6o=function(C){var b,h;(b=g.j3(this.Z))==null||(h=b.r8())==null||h.mE(C)}; +g.k.isEnabled=function(){return!!this.Z.getOption("captions","track").displayName}; +g.k.l$=function(){var C=GPU(this),b=300;this.Z.Y().L&&(b=480);if(this.Z.Y().W){this.updateValue("title",g.oC(this.Z,"Subtitles/closed captions","c"));this.update({"data-title-no-tooltip":"Subtitles/closed captions"});var h=C}else{if(C)(h=this.dO("ytp-subtitles-button-icon"))==null||h.setAttribute("fill-opacity","1"),this.updateValue("title",g.oC(this.Z,"Subtitles/closed captions","c")),this.update({"data-title-no-tooltip":"Subtitles/closed captions"});else{var N;(N=this.dO("ytp-subtitles-button-icon"))== +null||N.setAttribute("fill-opacity","0.3");this.updateValue("title","Subtitles/closed captions unavailable");this.update({"data-title-no-tooltip":"Subtitles/closed captions unavailable"})}h=!0}this.tooltip.B2();h=h&&this.Z.Ti().getPlayerSize().width>=b;this.Kj(h);this.Z.D("embeds_use_parent_visibility_in_ve_logging")?this.Z.logVisibility(this.element,h&&this.G):this.Z.logVisibility(this.element,h);C?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; +g.k.us=function(C){g.n.prototype.us.call(this,C);this.Z.Y().D("embeds_use_parent_visibility_in_ve_logging")&&this.Z.logVisibility(this.element,this.Bb&&C)};g.S(g.MY,g.n);g.k=g.MY.prototype; +g.k.cW=function(){var C=this.api.Ti().getPlayerSize().width,b=this.L;this.api.Y().L&&(b=400);b=C>=b&&(!qY(this)||!g.B(this.api.getPlayerStateObject(),64));this.Kj(b);g.Zo(this.element,"ytp-time-display-allow-autohide",b&&C<400);C=this.api.getProgressState();if(b){b=this.api.getPresentingPlayerType();var h=this.api.getCurrentTime(b,!1);this.K&&(h-=C.airingStart);mF(this)&&(h-=this.Wb.startTimeMs/1E3);h=g.Mj(h);this.N!==h&&(this.updateValue("currenttime",h),this.N=h);b=mF(this)?g.Mj((this.Wb.endTimeMs- +this.Wb.startTimeMs)/1E3):g.Mj(this.api.getDuration(b,!1));this.X!==b&&(this.updateValue("duration",b),this.X=b)}SVx(this,C.isAtLiveHead);$2l(this,this.api.getLoopRange())}; +g.k.onLoopRangeChange=function(C){var b=this.Wb!==C;this.Wb=C;b&&(this.cW(),z3W(this))}; +g.k.G5o=function(){this.api.setLoopRange(null)}; +g.k.onVideoDataChange=function(C,b,h){this.updateVideoData((this.api.Y().D("enable_topsoil_wta_for_halftime")||this.api.Y().D("enable_topsoil_wta_for_halftime_live_infra"))&&h===2?this.api.getVideoData(1):b);this.cW();z3W(this)}; +g.k.updateVideoData=function(C){this.Ls=C.isLivePlayback&&!C.kh;this.K=Ev(C);this.isPremiere=C.isPremiere;g.Zo(this.element,"ytp-live",qY(this))}; +g.k.onClick=function(C){C.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; +g.k.wO=function(){this.j&&this.j();g.n.prototype.wO.call(this)};g.S(VhV,g.n);g.k=VhV.prototype;g.k.Fn=function(){var C=this.api.zO();this.N!==C&&(this.N=C,H1l(this,this.api.getVolume(),this.api.isMuted()))}; +g.k.uV=function(C){this.Kj(C.width>=350)}; +g.k.J3=function(C){if(!C.defaultPrevented){var b=C.keyCode,h=null;b===37?h=this.volume-5:b===39?h=this.volume+5:b===36?h=0:b===35&&(h=100);h!==null&&(h=g.kv(h,0,100),h===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(h)),C.preventDefault())}}; +g.k.D1=function(C){var b=C.deltaX||-C.deltaY;C.deltaMode?this.api.setVolume(this.volume+(b<0?-10:10)):this.api.setVolume(this.volume+g.kv(b/10,-10,10));C.preventDefault()}; +g.k.O9z=function(){fc(this,this.j,!0,this.K,this.api.S9());this.V=this.volume;this.api.isMuted()&&this.api.unMute()}; +g.k.HH=function(C){var b=this.N?78:52,h=this.N?18:12;C-=g.$X(this.L).x;this.api.setVolume(g.kv((C-h/2)/(b-h),0,1)*100)}; +g.k.eUp=function(){fc(this,this.j,!1,this.K,this.api.S9());this.volume===0&&(this.api.mute(),this.api.setVolume(this.V))}; +g.k.onVolumeChange=function(C){H1l(this,C.volume,C.muted)}; +g.k.Rm=function(){fc(this,this.j,this.isDragging,this.K,this.api.S9())}; +g.k.wO=function(){g.n.prototype.wO.call(this);g.e6(this.J,"ytp-volume-slider-active")};g.S(AY,g.n); +AY.prototype.onVideoDataChange=function(){var C=this.api.Y();this.eC();this.visible=!!this.api.getVideoData().videoId&&!g.n6(this.api.getVideoData(1));this.Kj(this.visible);this.api.logVisibility(this.element,this.visible&&this.G);if(this.visible){var b=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",b)}C.N&&(this.j&&(this.D9(this.j),this.j=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.c4(this.element,"no-link")); +b=this.api.Y();C=this.api.getVideoData();var h="";b.N||(b=g.Ua(b),b.indexOf("www.")===0&&(b=b.substring(4)),h=g.Tg(C)?"Watch on YouTube Music":b==="youtube.com"?"Watch on YouTube":g.ok("Watch on $WEBSITE",{WEBSITE:b}));this.updateValue("title",h)}; +AY.prototype.onClick=function(C){this.api.D("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var b=this.api.Y(),h=this.api.getVideoUrl(!g.qj(C),!1,!0,!0);if(g.$7(b)){var N={};g.$7(b)&&g.hR(this.api,"addEmbedsConversionTrackingParams",[N]);h=g.dt(h,N)}g.IC(h,this.api,C);this.api.D("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; +AY.prototype.eC=function(){var C={B:"svg",T:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},U:[{B:"path",xr:!0,C:"ytp-svg-fill",T:{d:"M 45.09 10 L 45.09 25.82 L 47.16 25.82 L 47.41 24.76 L 47.47 24.76 C 47.66 25.14 47.94 25.44 48.33 25.66 C 48.72 25.88 49.16 25.99 49.63 25.99 C 50.48 25.99 51.1 25.60 51.5 24.82 C 51.9 24.04 52.09 22.82 52.09 21.16 L 52.09 19.40 C 52.12 18.13 52.05 17.15 51.90 16.44 C 51.75 15.74 51.50 15.23 51.16 14.91 C 50.82 14.59 50.34 14.44 49.75 14.44 C 49.29 14.44 48.87 14.57 48.47 14.83 C 48.27 14.96 48.09 15.11 47.93 15.29 C 47.78 15.46 47.64 15.65 47.53 15.86 L 47.51 15.86 L 47.51 10 L 45.09 10 z M 8.10 10.56 L 10.96 20.86 L 10.96 25.82 L 13.42 25.82 L 13.42 20.86 L 16.32 10.56 L 13.83 10.56 L 12.78 15.25 C 12.49 16.62 12.31 17.59 12.23 18.17 L 12.16 18.17 C 12.04 17.35 11.84 16.38 11.59 15.23 L 10.59 10.56 L 8.10 10.56 z M 30.10 10.56 L 30.10 12.58 L 32.59 12.58 L 32.59 25.82 L 35.06 25.82 L 35.06 12.58 L 37.55 12.58 L 37.55 10.56 L 30.10 10.56 z M 19.21 14.46 C 18.37 14.46 17.69 14.63 17.17 14.96 C 16.65 15.29 16.27 15.82 16.03 16.55 C 15.79 17.28 15.67 18.23 15.67 19.43 L 15.67 21.06 C 15.67 22.24 15.79 23.19 16 23.91 C 16.21 24.62 16.57 25.15 17.07 25.49 C 17.58 25.83 18.27 26 19.15 26 C 20.02 26 20.69 25.83 21.19 25.5 C 21.69 25.17 22.06 24.63 22.28 23.91 C 22.51 23.19 22.63 22.25 22.63 21.06 L 22.63 19.43 C 22.63 18.23 22.50 17.28 22.27 16.56 C 22.04 15.84 21.68 15.31 21.18 14.97 C 20.68 14.63 20.03 14.46 19.21 14.46 z M 56.64 14.47 C 55.39 14.47 54.51 14.84 53.99 15.61 C 53.48 16.38 53.22 17.60 53.22 19.27 L 53.22 21.23 C 53.22 22.85 53.47 24.05 53.97 24.83 C 54.34 25.40 54.92 25.77 55.71 25.91 C 55.97 25.96 56.26 25.99 56.57 25.99 C 57.60 25.99 58.40 25.74 58.96 25.23 C 59.53 24.72 59.81 23.94 59.81 22.91 C 59.81 22.74 59.79 22.61 59.78 22.51 L 57.63 22.39 C 57.62 23.06 57.54 23.54 57.40 23.83 C 57.26 24.12 57.01 24.27 56.63 24.27 C 56.35 24.27 56.13 24.18 56.00 24.02 C 55.87 23.86 55.79 23.61 55.75 23.25 C 55.71 22.89 55.68 22.36 55.68 21.64 L 55.68 21.08 L 59.86 21.08 L 59.86 19.16 C 59.86 17.99 59.77 17.08 59.58 16.41 C 59.39 15.75 59.07 15.25 58.61 14.93 C 58.15 14.62 57.50 14.47 56.64 14.47 z M 23.92 14.67 L 23.92 23.00 C 23.92 24.03 24.11 24.79 24.46 25.27 C 24.82 25.76 25.35 26.00 26.09 26.00 C 27.16 26.00 27.97 25.49 28.5 24.46 L 28.55 24.46 L 28.76 25.82 L 30.73 25.82 L 30.73 14.67 L 28.23 14.67 L 28.23 23.52 C 28.13 23.73 27.97 23.90 27.77 24.03 C 27.57 24.16 27.37 24.24 27.15 24.24 C 26.89 24.24 26.70 24.12 26.59 23.91 C 26.48 23.70 26.43 23.35 26.43 22.85 L 26.43 14.67 L 23.92 14.67 z M 36.80 14.67 L 36.80 23.00 C 36.80 24.03 36.98 24.79 37.33 25.27 C 37.60 25.64 37.97 25.87 38.45 25.96 C 38.61 25.99 38.78 26.00 38.97 26.00 C 40.04 26.00 40.83 25.49 41.36 24.46 L 41.41 24.46 L 41.64 25.82 L 43.59 25.82 L 43.59 14.67 L 41.09 14.67 L 41.09 23.52 C 40.99 23.73 40.85 23.90 40.65 24.03 C 40.45 24.16 40.23 24.24 40.01 24.24 C 39.75 24.24 39.58 24.12 39.47 23.91 C 39.36 23.70 39.31 23.35 39.31 22.85 L 39.31 14.67 L 36.80 14.67 z M 56.61 16.15 C 56.88 16.15 57.08 16.23 57.21 16.38 C 57.33 16.53 57.42 16.79 57.47 17.16 C 57.52 17.53 57.53 18.06 57.53 18.78 L 57.53 19.58 L 55.69 19.58 L 55.69 18.78 C 55.69 18.05 55.71 17.52 55.75 17.16 C 55.79 16.81 55.87 16.55 56.00 16.39 C 56.13 16.23 56.32 16.15 56.61 16.15 z M 19.15 16.19 C 19.50 16.19 19.75 16.38 19.89 16.75 C 20.03 17.12 20.09 17.7 20.09 18.5 L 20.09 21.97 C 20.09 22.79 20.03 23.39 19.89 23.75 C 19.75 24.11 19.51 24.29 19.15 24.30 C 18.80 24.30 18.54 24.11 18.41 23.75 C 18.28 23.39 18.22 22.79 18.22 21.97 L 18.22 18.5 C 18.22 17.7 18.28 17.12 18.42 16.75 C 18.56 16.38 18.81 16.19 19.15 16.19 z M 48.63 16.22 C 48.88 16.22 49.08 16.31 49.22 16.51 C 49.36 16.71 49.45 17.05 49.50 17.52 C 49.55 17.99 49.58 18.68 49.58 19.55 L 49.58 21 L 49.59 21 C 49.59 21.81 49.57 22.45 49.5 22.91 C 49.43 23.37 49.32 23.70 49.16 23.89 C 49.00 24.08 48.78 24.17 48.51 24.17 C 48.30 24.17 48.11 24.12 47.94 24.02 C 47.76 23.92 47.62 23.78 47.51 23.58 L 47.51 17.25 C 47.59 16.95 47.75 16.70 47.96 16.50 C 48.17 16.31 48.39 16.22 48.63 16.22 z "}}]}, +b=28666,h=this.api.getVideoData();this.api.isEmbedsShortsMode()?C={B:"svg",T:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},U:[{B:"path",T:{d:"m.73 13.78 2.57-.05c-.05 2.31.36 3.04 1.34 3.04.95 0 1.34-.61 1.34-1.88 0-1.88-.97-2.83-2.37-4.04C1.47 8.99.55 7.96.55 5.23c0-2.60 1.15-4.14 4.17-4.14 2.91 0 4.12 1.70 3.71 5.20l-2.57.15c.05-2.39-.20-3.22-1.26-3.22-.97 0-1.31.64-1.31 1.82 0 1.77.74 2.31 2.34 3.84 1.98 1.88 3.09 2.98 3.09 5.54 0 3.24-1.26 4.48-4.20 4.48-3.06.02-4.30-1.62-3.78-5.12ZM9.67.74h2.83V4.58c0 1.15-.05 1.95-.15 2.93h.05c.54-1.15 1.44-1.75 2.60-1.75 1.75 0 2.5 1.23 2.5 3.35v9.53h-2.83V9.32c0-1.03-.25-1.54-.90-1.54-.48 0-.92.28-1.23.79V18.65H9.70V.74h-.02ZM18.67 13.27v-1.82c0-4.07 1.18-5.64 3.99-5.64 2.80 0 3.86 1.62 3.86 5.64v1.82c0 3.96-1.00 5.59-3.94 5.59-2.98 0-3.91-1.67-3.91-5.59Zm5 1.03v-3.94c0-1.72-.25-2.60-1.08-2.60-.79 0-1.05.87-1.05 2.60v3.94c0 1.80.25 2.62 1.05 2.62.82 0 1.08-.82 1.08-2.62ZM27.66 6.03h2.19l.25 2.73h.10c.28-2.01 1.21-3.01 2.39-3.01.15 0 .30.02.51.05l-.15 3.27c-1.18-.25-2.13-.05-2.57.72V18.63h-2.73V6.03ZM34.80 15.67V8.27h-1.03V6.05h1.15l.36-3.73h2.11V6.05h1.93v2.21h-1.80v6.98c0 1.18.15 1.44.61 1.44.41 0 .77-.05 1.10-.18l.36 1.80c-.85.41-1.93.54-2.60.54-1.82-.02-2.21-.97-2.21-3.19ZM40.26 14.81l2.39-.05c-.12 1.39.36 2.19 1.21 2.19.72 0 1.13-.46 1.13-1.10 0-.87-.79-1.46-2.16-2.5-1.62-1.23-2.60-2.16-2.60-4.20 0-2.24 1.18-3.32 3.63-3.32 2.60 0 3.63 1.28 3.42 4.35l-2.39.10c-.02-1.90-.28-2.44-1.08-2.44-.77 0-1.10.38-1.10 1.08 0 .97.56 1.44 1.49 2.11 2.21 1.64 3.24 2.47 3.24 4.53 0 2.26-1.28 3.40-3.73 3.40-2.78-.02-3.81-1.54-3.45-4.14Z", +fill:"#fff"}}]}:g.Tg(h)&&(C={B:"svg",T:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},U:[{B:"path",T:{d:"M33.96 20.91V15.45L37.43 4.11H34.84L33.52 9.26C33.22 10.44 32.95 11.67 32.75 12.81H32.59C32.48 11.81 32.16 10.50 31.84 9.24L30.56 4.11H27.97L31.39 15.45V20.91H33.96Z",fill:"white"}},{B:"path",T:{d:"M40.92 8.31C37.89 8.31 36.85 10.06 36.85 13.83V15.62C36.85 19.00 37.50 21.12 40.86 21.12C44.17 21.12 44.88 19.10 44.88 15.62V13.83C44.88 10.46 44.20 8.31 40.92 8.31ZM42.21 16.73C42.21 18.37 41.92 19.40 40.87 19.40C39.84 19.40 39.55 18.36 39.55 16.73V12.69C39.55 11.29 39.75 10.04 40.87 10.04C42.05 10.04 42.21 11.36 42.21 12.69V16.73Z", +fill:"white"}},{B:"path",T:{d:"M49.09 21.10C50.55 21.10 51.46 20.49 52.21 19.39H52.32L52.43 20.91H54.42V8.55H51.78V18.48C51.50 18.97 50.85 19.33 50.24 19.33C49.47 19.33 49.23 18.72 49.23 17.70V8.55H46.60V17.82C46.60 19.83 47.18 21.10 49.09 21.10Z",fill:"white"}},{B:"path",T:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{B:"path",T:{d:"M64.69 21.10C66.15 21.10 67.06 20.49 67.81 19.39H67.92L68.03 20.91H70.02V8.55H67.38V18.48C67.10 18.97 66.45 19.33 65.84 19.33C65.07 19.33 64.83 18.72 64.83 17.70V8.55H62.20V17.82C62.20 19.83 62.78 21.10 64.69 21.10Z", +fill:"white"}},{B:"path",T:{d:"M77.49 8.28C76.21 8.28 75.29 8.84 74.68 9.75H74.55C74.63 8.55 74.69 7.53 74.69 6.72V3.45H72.14L72.13 14.19L72.14 20.91H74.36L74.55 19.71H74.62C75.21 20.52 76.12 21.03 77.33 21.03C79.34 21.03 80.20 19.30 80.20 15.62V13.71C80.20 10.27 79.81 8.28 77.49 8.28ZM77.58 15.62C77.58 17.92 77.24 19.29 76.17 19.29C75.67 19.29 74.98 19.05 74.67 18.60V11.25C74.94 10.55 75.54 10.04 76.21 10.04C77.29 10.04 77.58 11.35 77.58 13.74V15.62Z",fill:"white"}},{B:"path",T:{d:"M89.47 13.51C89.47 10.53 89.17 8.32 85.74 8.32C82.51 8.32 81.79 10.47 81.79 13.63V15.80C81.79 18.88 82.45 21.12 85.66 21.12C88.20 21.12 89.51 19.85 89.36 17.39L87.11 17.27C87.08 18.79 86.73 19.41 85.72 19.41C84.45 19.41 84.39 18.20 84.39 16.40V15.56H89.47V13.51ZM85.68 9.98C86.90 9.98 86.99 11.13 86.99 13.08V14.09H84.39V13.08C84.39 11.15 84.47 9.98 85.68 9.98Z", +fill:"white"}},{B:"path",T:{d:"M93.18 20.86H95.50V13.57C95.50 11.53 95.46 9.36 95.30 6.46H95.56L95.99 8.24L98.73 20.86H101.09L103.78 8.24L104.25 6.46H104.49C104.37 9.03 104.30 11.35 104.30 13.57V20.86H106.63V4.06H102.67L101.25 10.27C100.65 12.85 100.22 16.05 99.97 17.68H99.78C99.60 16.02 99.15 12.83 98.56 10.29L97.10 4.06H93.18V20.86Z",fill:"white"}},{B:"path",T:{d:"M111.27 21.05C112.73 21.05 113.64 20.44 114.39 19.34H114.50L114.61 20.86H116.60V8.50H113.96V18.43C113.68 18.92 113.03 19.28 112.42 19.28C111.65 19.28 111.41 18.67 111.41 17.65V8.50H108.78V17.77C108.78 19.78 109.36 21.05 111.27 21.05Z", +fill:"white"}},{B:"path",T:{d:"M121.82 21.12C124.24 21.12 125.59 20.05 125.59 17.86C125.59 15.87 124.59 15.06 122.21 13.44C121.12 12.72 120.53 12.27 120.53 11.21C120.53 10.42 121.02 10.00 121.91 10.00C122.88 10.00 123.21 10.64 123.25 12.46L125.41 12.34C125.59 9.49 124.57 8.27 121.95 8.27C119.47 8.27 118.28 9.34 118.28 11.46C118.28 13.42 119.21 14.31 120.96 15.53C122.51 16.60 123.36 17.27 123.36 18.16C123.36 18.89 122.85 19.42 121.96 19.42C120.94 19.42 120.36 18.54 120.46 17.21L118.27 17.25C117.93 19.81 119.13 21.12 121.82 21.12Z", +fill:"white"}},{B:"path",T:{d:"M128.45 6.93C129.35 6.93 129.77 6.63 129.77 5.39C129.77 4.23 129.32 3.87 128.45 3.87C127.57 3.87 127.14 4.19 127.14 5.39C127.14 6.63 127.55 6.93 128.45 6.93ZM127.23 20.86H129.76V8.50H127.23V20.86Z",fill:"white"}},{B:"path",T:{d:"M135.41 21.06C136.67 21.06 137.38 20.91 137.95 20.37C138.80 19.63 139.15 18.48 139.09 16.54L136.78 16.42C136.78 18.54 136.44 19.34 135.45 19.34C134.36 19.34 134.18 18.15 134.18 15.99V13.43C134.18 11.07 134.41 9.95 135.47 9.95C136.35 9.95 136.70 10.69 136.70 13.05L138.99 12.89C139.15 11.20 138.98 9.82 138.18 9.05C137.58 8.49 136.69 8.27 135.51 8.27C132.48 8.27 131.54 10.19 131.54 13.84V15.53C131.54 19.18 132.25 21.06 135.41 21.06Z", +fill:"white"}}]},b=216163);g.Tg(h)?g.c4(this.element,"ytp-youtube-music-button"):g.e6(this.element,"ytp-youtube-music-button");C.T=Object.assign({},C.T,{"aria-hidden":"true"});this.updateValue("logoSvg",C);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,b,!0)}; +AY.prototype.us=function(C){g.n.prototype.us.call(this,C);this.api.logVisibility(this.element,this.visible&&C)};g.S(qV1,g.ui);g.k=qV1.prototype;g.k.PL=function(){if(this.Z.D("web_player_max_seekable_on_ended")||!g.B(this.Z.getPlayerStateObject(),2))this.progressBar.cW(),this.sX.cW()}; +g.k.oB=function(){this.jd();this.Ay.K?this.PL():this.progressBar.W2()}; +g.k.QG=function(){this.PL();this.L.start()}; +g.k.jd=function(){var C;if(C=!this.Z.Y().K){C=this.progressBar;var b=2*g.Oa()*C.J;C=C.N.getLength()*1E3/C.api.getPlaybackRate()/b<300}C=C&&this.Z.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;b=!C;this.Ay.K||(C=b=!1);b?this.N2||(this.N2=this.S(this.Z,"progresssync",this.PL)):this.N2&&(this.D9(this.N2),this.N2=null);C?this.L.isActive()||this.L.start():this.L.stop()}; +g.k.eC=function(){var C=this.Z.zO(),b=this.Z.Ti().getPlayerSize(),h=f$o(this),N=Math.max(b.width-h*2,100);if(this.Vz!==b.width||this.zi!==C){this.Vz=b.width;this.zi=C;var p=A6H(this);this.X.element.style.width=p+"px";this.X.element.style.left=h+"px";g.sqV(this.progressBar,h,p,C);this.Z.x6().SN=p}h=this.N;N=Math.min(570*(C?1.5:1),N);C=Math.min(413*(C?1.5:1),Math.round((b.height-y61(this))*.82));h.maxWidth=N;h.maxHeight=C;h.Hg();this.jd();this.Z.Y().D("html5_player_dynamic_bottom_gradient")&&Uql(this.kh, +b.height)}; +g.k.onVideoDataChange=function(){var C=this.Z.getVideoData();this.t4.style.background=C.jS?C.Oa:"";this.KO&&Dql(this.KO,C.showSeekingControls);this.V&&Dql(this.V,C.showSeekingControls)}; +g.k.Rb=function(){return this.X.element};g.S(r6l,QF);g.k=r6l.prototype;g.k.JD=function(C){C.target!==this.dismissButton.element&&(this.onClickCommand&&this.Z.LO("innertubeCommand",this.onClickCommand),this.Ga())}; +g.k.Ga=function(){this.enabled=!1;this.V.hide()}; +g.k.onVideoDataChange=function(C,b){C==="dataloaded"&&i1l(this);C=[];var h,N,p,P;if(b=(P=g.d((h=b.getWatchNextResponse())==null?void 0:(N=h.playerOverlays)==null?void 0:(p=N.playerOverlayRenderer)==null?void 0:p.suggestedActionsRenderer,e_E))==null?void 0:P.suggestedActions)for(h=g.z(b),N=h.next();!N.done;N=h.next())(N=g.d(N.value,L$I))&&g.d(N.trigger,kQE)&&C.push(N);if(C.length!==0){h=[];C=g.z(C);for(N=C.next();!N.done;N=C.next())if(N=N.value,p=g.d(N.trigger,kQE))P=(P=N.title)?g.oS(P):"View Chapters", +b=p.timeRangeStartMillis,p=p.timeRangeEndMillis,b!=null&&p!=null&&N.tapCommand&&(h.push(new g.Ny(b,p,{priority:9,namespace:"suggested_action_button_visible",id:P})),this.suggestedActions[P]=N.tapCommand);this.Z.A8(h)}}; +g.k.r4=function(){return this.enabled}; +g.k.ws=function(){this.enabled?this.rO.start():u_(this);this.Xw()}; +g.k.wO=function(){i1l(this);QF.prototype.wO.call(this)};var M2={},is=(M2.CHANNEL_NAME="ytp-title-channel-name",M2.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",M2.LINK="ytp-title-link",M2.SESSIONLINK="yt-uix-sessionlink",M2.SUBTEXT="ytp-title-subtext",M2.TEXT="ytp-title-text",M2.TITLE="ytp-title",M2);g.S(JY,g.n);JY.prototype.onClick=function(C){this.api.logClick(this.element);var b=this.api.Y(),h=this.api.getVideoUrl(!g.qj(C),!1,!0);g.$7(b)&&(b={},g.hR(this.api,"addEmbedsConversionTrackingParams",[b]),h=g.dt(h,b));g.IC(h,this.api,C)}; +JY.prototype.l$=function(){var C=this.api.getVideoData(),b=this.api.Y();this.updateValue("title",C.title);var h={B:"a",C:is.CHANNEL_NAME,T:{href:"{{channelLink}}",target:"_blank"},BE:"{{channelName}}"};this.api.Y().N&&(h={B:"span",C:is.CHANNEL_NAME,BE:"{{channelName}}",T:{tabIndex:"{{channelSubtextFocusable}}"}});this.updateValue("subtextElement",h);J6o(this);this.api.getPresentingPlayerType()===2&&(h=this.api.getVideoData(),h.videoId&&h.isListed&&h.author&&h.ob&&h.profilePicture?(this.updateValue("channelLink", +h.ob),this.updateValue("channelName",h.author),this.updateValue("channelTitleFocusable","0")):J6o(this));h=b.externalFullscreen||!this.api.isFullscreen()&&b.Xb;g.Zo(this.link,is.FULLERSCREEN_LINK,h);b.N2||!C.videoId||h||g.n6(C)||b.N?this.j&&(this.updateValue("url",null),this.D9(this.j),this.j=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.j||(this.j=this.S(this.link,"click",this.onClick)));b.N&&(this.element.classList.add("ytp-no-link"),this.updateValue("channelName",g.$7(b)?C.expandedTitle: +C.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.S(g.us,g.n);g.k=g.us.prototype;g.k.setEnabled=function(C){if(this.type!=null)if(C)switch(this.type){case 3:case 2:R36(this);this.J.show();break;default:this.J.show()}else this.J.hide();this.L=C}; +g.k.AF=function(C,b,h,N,p,P,c,e){if(!this.sX||this.env.L){this.type===3&&this.W2();this.type!==1&&(g.P4(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.L&&this.J.show(),this.K&&this.K.dispose(),(this.K=this.api.hR())&&this.K.subscribe("l",this.Ry,this));if(e){var L=g.Vx(this.bg).height||141;this.Qz.style.bottom=L+2+"px"}this.update({text:h,title:P!=null?P:"",eduText:e!=null?e:""});g.Zo(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!P);this.api.isInline()&&g.c4(this.bottomText, +"ytp-modern-tooltip-text");g.Zo(this.element,"ytp-text-detail",!!N);h=-1;this.K&&(h=fj(this.K,243*this.scale),this.env.D("web_l3_storyboard")&&this.K.levels.length===4&&(h=this.K.levels.length-1),h=eLK(this.K,h,b));U2W(this,h);if(c)switch(b=g.Vx(this.element).width,c){case 1:this.title.style.right="0";this.title.style.textAlign="left";break;case 2:this.title.style.right=b+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=b/2+"px",this.title.style.textAlign="center"}QPS(this, +!!N,C,p)}}; +g.k.Hn=function(){this.type===1&&this.W2()}; +g.k.gC=function(C,b){if(this.type)if(this.type===3)this.W2();else return;uCS(this,C,3,b)}; +g.k.B2=function(){this.j&&!this.V&&this.j.hasAttribute("title")&&(this.N=this.j.getAttribute("title")||"",this.j.removeAttribute("title"),this.L&&R36(this))}; +g.k.Ry=function(C,b){C<=this.X&&this.X<=b&&(C=this.X,this.X=NaN,U2W(this,C))}; +g.k.vgX=function(){caW(this.K,this.X,243*this.scale)}; +g.k.W2=function(){switch(this.type){case 2:var C=this.j;C.removeEventListener("mouseout",this.KO);C.addEventListener("mouseover",this.W);C.removeEventListener("blur",this.KO);C.addEventListener("focus",this.W);XMl(this);break;case 3:XMl(this);break;case 1:this.K&&(this.K.unsubscribe("l",this.Ry,this),this.K=null),this.api.removeEventListener("videoready",this.N2),this.nO.stop()}this.type=null;this.L&&this.J.hide()}; +g.k.sV=function(){if(this.j)for(var C=0;C=0;b--)if(this.WO[b]===C){this.WO.splice(b,1);break}vS(this.Ay,64,this.WO.length>0)}; +g.k.Xp=function(){this.api.oS()&&this.api.Fh();return!!this.D2||d2K(this)||g.xj.prototype.Xp.call(this)}; +g.k.Oo=NW(3);g.k.bb=NW(7);g.k.C6=NW(10); +g.k.wh=function(){var C=!this.Xp(),b=C&&this.api.oS()&&!g.B(this.api.getPlayerStateObject(),2)&&!g.n6(this.api.getVideoData())&&!this.api.Y().N&&!this.api.isEmbedsShortsMode(),h=this.V3&&g.z4(this.api)&&g.B(this.api.getPlayerStateObject(),128);C||h?(this.w5.show(),this.BI.show()):(this.w5.hide(),this.BI.hide(),this.api.sV(this.yy.element));b?this.JL.mE():this.JL.QV();this.To&&m2W(this.To,this.mB||!C);this.api.D("web_player_hide_overflow_button_if_empty_menu")&&WyH(this);g.xj.prototype.wh.call(this)}; +g.k.AM=function(C,b,h,N,p){C.style.left="";C.style.top="";C.style.bottom="";var P=g.Vx(C),c=N||this.To&&g.PP(this.To.Rb(),b),e=N=null;h!=null&&c||(N=g.Vx(b),e=g.zV(b,this.api.getRootNode()),h==null&&(h=e.x+N.width/2));h-=P.width/2;c?(b=this.To,N=f$o(b),e=A6H(b),c=this.api.Ti().getPlayerSize().height,h=g.kv(h,N,N+e-P.width),P=c-y61(b)-P.height):g.PP(this.yy.element,b)?(b=this.api.Ti().getPlayerSize().width,h=g.kv(h,12,b-P.width-12),P=this.zO()?this.XT:this.Nd,this.api.Y().playerStyle==="gvn"&&(P+= +20),this.V3&&(P-=this.zO()?26:18)):(b=this.api.Ti().getPlayerSize(),h=g.kv(h,12,b.width-P.width-12),P=e.y>(b.height-N.height)/2?e.y-P.height-12:e.y+N.height+12);C.style.top=P+(p||0)+"px";C.style.left=h+"px"}; +g.k.oB=function(C){C&&(this.api.sV(this.yy.element),this.To&&this.api.sV(this.To.Rb()));this.Gv&&(g.Zo(this.contextMenu.element,"ytp-autohide",C),g.Zo(this.contextMenu.element,"ytp-autohide-active",!0));g.xj.prototype.oB.call(this,C)}; +g.k.m9=function(){g.xj.prototype.m9.call(this);this.Gv&&(g.Zo(this.contextMenu.element,"ytp-autohide-active",!1),this.Gv&&(this.contextMenu.hide(),this.Dx&&this.Dx.hide()))}; +g.k.f2=function(C,b){var h=this.api.Ti().getPlayerSize();h=new g.Pc(0,0,h.width,h.height);if(C||this.Ay.K&&!this.Xp()){if(this.api.Y().wG||b)C=this.zO()?this.XT:this.Nd,h.top+=C,h.height-=C;this.To&&(h.height-=y61(this.To))}return h}; +g.k.Fn=function(C){var b=this.api.getRootNode();C?b.parentElement?(b.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.Y().externalFullscreen||(b.parentElement.insertBefore(this.TY.element,b),b.parentElement.insertBefore(this.zY.element,b.nextSibling))):g.Ri(Error("Player not in DOM.")):(b.setAttribute("aria-label","YouTube Video Player"),this.TY.detach(),this.zY.detach());this.eC();this.B4()}; +g.k.zO=function(){var C=this.api.Y();return this.api.isFullscreen()&&!C.L||!1}; +g.k.showControls=function(C){this.EQ=!C;this.wh()}; +g.k.eC=function(){var C=this.zO();this.tooltip.scale=C?1.5:1;this.contextMenu&&g.Zo(this.contextMenu.element,"ytp-big-mode",C);this.wh();this.api.D("web_player_hide_overflow_button_if_empty_menu")||WyH(this);this.B4();var b=this.api.isEmbedsShortsMode();b&&C?(C=(this.api.Ti().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.Zv(this.yy.element,"padding-left",C+"px"),g.Zv(this.yy.element,"padding-right",C+"px")):b&&(g.Zv(this.yy.element,"padding-left",""),g.Zv(this.yy.element,"padding-right", +""));g.xj.prototype.eC.call(this)}; +g.k.l_=function(){if(d2K(this)&&!g.z4(this.api))return!1;var C=this.api.getVideoData();return!g.$7(this.api.Y())||this.api.getPresentingPlayerType()===2||!this.fZ||((C=this.fZ||C.fZ)?(C=C.embedPreview)?(C=C.thumbnailPreviewRenderer,C=C.videoDetails&&g.d(C.videoDetails,tFc)||null):C=null:C=null,C&&C.collapsedRenderer&&C.expandedRenderer)?g.xj.prototype.l_.call(this):!1}; +g.k.B4=function(){g.xj.prototype.B4.call(this);this.api.logVisibility(this.title.element,!!this.PM);this.tv&&this.tv.us(!!this.PM);this.channelAvatar.us(!!this.PM);this.overflowButton&&this.overflowButton.us(this.R2()&&!!this.PM);this.shareButton&&this.shareButton.us(!this.R2()&&!!this.PM);this.hN&&this.hN.us(!this.R2()&&!!this.PM);this.searchButton&&this.searchButton.us(!this.R2()&&!!this.PM);this.copyLinkButton&&this.copyLinkButton.us(!this.R2()&&!!this.PM);if(!this.PM){this.api.sV(this.yy.element); +for(var C=0;C5&&b.jp("glrs",{cmt:h});b.seekTo(0,{seekSource:58});b.jp("glrre",{cmt:h})}}; +XD.prototype.wO=function(){this.j=null;g.O.prototype.wO.call(this)};g.S(g.Kc,tA);g.k=g.Kc.prototype;g.k.isView=function(){return!0}; +g.k.D5=function(){var C=this.mediaElement.getCurrentTime();if(C=4&&C!=="player-reload-after-handoff";this.status={status:Infinity,error:C};if(this.j&&this.K){var N=this.K.getVideoData().clientPlaybackNonce;this.j.zE(new Mw("dai.transitionfailure",Object.assign(b,{cpn:N,transitionTimeMs:this.vM,msg:C})));this.j.qY(h)}this.v4.reject(C);this.dispose()}}; +g.k.VM=function(){return this.status.status>=4&&this.status.status<6}; +g.k.wO=function(){gxW(this);this.j.unsubscribe("newelementrequired",this.dD,this);if(this.N){var C=this.N.K;this.N.j.Ns.unsubscribe("updateend",this.xE,this);C.Ns.unsubscribe("updateend",this.xE,this)}g.O.prototype.wO.call(this)}; +g.k.Ya=function(C){g.l1(C,128)&&this.q9("player-error-event")};g.S(vU,g.O);vU.prototype.clearQueue=function(C,b){C=C===void 0?!1:C;b=b===void 0?!1:b;this.X&&this.X.reject("Queue cleared");this.app.Y().D("html5_gapless_fallback_on_qoe_restart_v2")||b&&this.K&&this.K.qY(!1);DM(this,C)}; +vU.prototype.nf=function(){return!this.j}; +vU.prototype.VM=function(){var C;return((C=this.N)==null?void 0:C.VM())||!1}; +vU.prototype.wO=function(){DM(this);g.O.prototype.wO.call(this)};g.S(L41,g.cr);g.k=L41.prototype;g.k.getVisibilityState=function(C,b,h,N,p,P,c,e){return C?4:k1l()?3:b?2:h?1:N?5:p?7:P?8:c?9:e?10:0}; +g.k.AC=function(C){this.fullscreen!==C&&(this.fullscreen=C,this.ws())}; +g.k.setMinimized=function(C){this.K!==C&&(this.K=C,this.ws())}; +g.k.setInline=function(C){this.inline!==C&&(this.inline=C,this.ws())}; +g.k.ib=function(C){this.pictureInPicture!==C&&(this.pictureInPicture=C,this.ws())}; +g.k.setSqueezeback=function(C){this.N!==C&&(this.N=C,this.ws())}; +g.k.jz=function(C){this.X!==C&&(this.X=C,this.ws())}; +g.k.r0=function(){return this.j}; +g.k.GI=function(){return this.fullscreen!==0}; +g.k.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; +g.k.wq=function(){return this.fullscreen}; +g.k.isMinimized=function(){return this.K}; +g.k.isInline=function(){return this.inline}; +g.k.isBackground=function(){return k1l()}; +g.k.S1=function(){return this.pictureInPicture}; +g.k.iQ=function(){return!1}; +g.k.Lt=function(){return this.N}; +g.k.bY=function(){return this.X}; +g.k.ws=function(){this.publish("visibilitychange");var C=this.getVisibilityState(this.r0(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.S1(),this.iQ(),this.Lt(),this.bY());C!==this.W&&this.publish("visibilitystatechange");this.W=C}; +g.k.wO=function(){Zfl(this.G);g.cr.prototype.wO.call(this)};g.S(ZqS,g.O);g.k=ZqS.prototype;g.k.A4=function(){return this.X}; +g.k.SE=function(C){this.X=C}; +g.k.i$=function(){return this.N}; +g.k.ub=function(C){this.N=C}; +g.k.gU=function(C){return this.K[C]||null}; +g.k.wO=function(){for(var C=g.z(Object.values(this.K)),b=C.next();!b.done;b=C.next())nJ(b.value);g.O.prototype.wO.call(this)};g.S(dB,g.O);g.k=dB.prototype;g.k.enqueue=function(C,b){if(C.X!==this)return!1;if(this.segments.length===0||(b===void 0?0:b))this.j=C;this.segments.push(C);return!0}; +g.k.HF=function(){return this.pJ||0}; +g.k.tT=function(){return this.X||0}; +g.k.removeAll=function(){for(;this.segments.length;){var C=void 0;(C=this.segments.pop())==null||C.dispose()}this.K.clear();this.N=void 0}; +g.k.wO=function(){this.removeAll();g.O.prototype.wO.call(this)}; +g.S(HqK,g.O);g.k=HqK.prototype;g.k.HF=function(){return this.pJ}; +g.k.tT=function(){return this.N}; +g.k.getType=function(){return this.type}; +g.k.getVideoData=function(){return this.videoData}; +g.k.LA=function(C){L6(C);this.videoData=C}; +g.k.wO=function(){VyV(this);g.O.prototype.wO.call(this)};g.tY.prototype.nt=function(C,b){if(b===1)return this.j.get(C);if(b===2)return this.N.get(C);if(b===3)return this.K.get(C)}; +g.tY.prototype.Ng=NW(50);g.tY.prototype.Ph=function(C,b,h,N){h={qJ:N,Vh:h};b?this.N.set(C,h):this.j.set(C,h)}; +g.tY.prototype.clearAll=function(){this.j.clear();this.N.clear();this.K.clear()}; +g.S(g.TX,g.O);g.k=g.TX.prototype;g.k.Eg=function(C,b,h){return new g.Ny(C,b,{id:h,namespace:"serverstitchedcuerange",priority:9})}; +g.k.rE=function(C){var b=C.sS?C.sS*1E3:C.pJ,h=this.K.get(C.cpn);h&&this.playback.removeCueRange(h);this.K.delete(C.cpn);this.N.delete(C.cpn);h=this.G.indexOf(C);h>=0&&this.G.splice(h,1);h=[];for(var N=g.z(this.W),p=N.next();!p.done;p=N.next())p=p.value,p.end<=b?this.playback.removeCueRange(p):h.push(p);this.W=h;Oqc(this,0,b+C.durationMs)}; +g.k.onCueRangeEnter=function(C){this.rO.push(C);var b=C.getId();this.jC({oncueEnter:1,cpn:b,start:C.start,end:C.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.l3()||0).toFixed(3)});var h=b==="";this.m6.add(C.K);var N=this.N.get(b);if(h){var p;if(this.playback.getVideoData().qz()&&((p=this.j)==null?0:p.Bo)&&this.X){this.t6=0;this.j=void 0;this.kh&&(this.events.D9(this.kh),this.kh=null);this.X="";this.t4=!0;return}}else if(this.jC({enterAdCueRange:1}),this.playback.getVideoData().qz()&& +(N==null?0:N.gp))return;if(this.t4&&!this.j)this.t4=!1,!h&&N&&(h=this.playback.getCurrentTime(),bX(this,{sG:C,isAd:!0,aR:!0,m3:h,adCpn:b},{isAd:!1,aR:!1,m3:h}),this.nJ=N.cpn,wB(this,N),C=xB(this,"midab",N),this.jC(C),this.t6=1),this.V=!1;else if(this.j){if(this.j.aR)this.jC({a_pair_of_same_transition_occurs_enter:1,acpn:this.j.adCpn,transitionTime:this.j.m3,cpn:b,currentTime:this.playback.getCurrentTime()}),N=this.playback.getCurrentTime(),C={sG:C,isAd:!h,aR:!0,m3:N,adCpn:b},b={sG:this.j.sG,isAd:this.j.isAd, +aR:!1,m3:N,adCpn:this.j.adCpn},this.j.sG&&this.m6.delete(this.j.sG.K),bX(this,C,b);else{if(this.j.sG===C){this.jC({same_cue_range_pair_enter:1,acpn:this.j.adCpn,transitionTime:this.j.m3,cpn:b,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:C.start,cueRangeEndTime:C.end});this.j=void 0;return}if(this.j.adCpn===b){b&&this.jC({dchtsc:b});this.j=void 0;return}C={sG:C,isAd:!h,aR:!0,m3:this.playback.getCurrentTime(),adCpn:b};bX(this,C,this.j)}this.j=void 0;this.V=!1}else this.j={sG:C,isAd:!h, +aR:!0,m3:this.playback.getCurrentTime(),adCpn:b}}; +g.k.onCueRangeExit=function(C){var b=C.getId();this.jC({oncueExit:1,cpn:b,start:C.start,end:C.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.l3()||0).toFixed(3)});var h=b==="",N=this.N.get(b);if(this.playback.getVideoData().qz()&&!h&&N){if(N.gp)return;N.gp=!0;this.J.clear();if(this.If.D("html5_lifa_no_rewatch_ad_sbc"))if(this.playback.nu()){var p=N.pJ;this.playback.dC(p/1E3,(p+N.durationMs)/1E3)}else this.playback.jp("lifa",{remove:0})}if(this.m6.has(C.K))if(this.m6.delete(C.K), +this.rO=this.rO.filter(function(P){return P!==C}),this.t4&&(this.V=this.t4=!1,this.jC({cref:1})),this.j){if(this.j.aR){if(this.j.sG===C){this.jC({same_cue_range_pair_exit:1, +acpn:this.j.adCpn,transitionTime:this.j.m3,cpn:b,currentTime:this.playback.getCurrentTime(),cueRangeStartTime:C.start,cueRangeEndTime:C.end});this.j=void 0;return}if(this.j.adCpn===b){b&&this.jC({dchtsc:b});this.j=void 0;return}b={sG:C,isAd:!h,aR:!1,m3:this.playback.getCurrentTime(),adCpn:b};bX(this,this.j,b)}else if(this.jC({a_pair_of_same_transition_occurs_exit:1,pendingCpn:this.j.adCpn,transitionTime:this.j.m3,upcomingCpn:b,contentCpn:this.playback.getVideoData().clientPlaybackNonce,currentTime:this.playback.getCurrentTime()}), +this.j.adCpn===b)return;this.j=void 0;this.V=!1}else this.j={sG:C,isAd:!h,aR:!1,m3:this.playback.getCurrentTime(),adCpn:b};else this.jC({ignore_single_exit:1})}; +g.k.KT=function(){return{cpn:this.playback.getVideoData().clientPlaybackNonce,durationMs:0,pJ:0,playerType:1,n9:0,videoData:this.playback.getVideoData(),errorCount:0}}; +g.k.tR=function(){if(this.rG)return!1;var C=void 0;this.nJ&&(C=this.N.get(this.nJ));return this.playback.getVideoData().qz()?!!C&&!C.gp:!!C}; +g.k.seekTo=function(C,b,h,N){C=C===void 0?0:C;b=b===void 0?{}:b;h=h===void 0?!1:h;N=N===void 0?null:N;if(this.playback.getVideoData().qz()&&C<=this.q2/1E3)this.playback.pauseVideo(),this.q2=0,this.V=!0,this.playback.B6(),this.playback.seekTo(C),this.playback.playVideo();else if(this.V=!0,h)q6c(this,C,b);else{h=this.app.i$();var p=h===this.CO?this.G$:null;Nf(this,!1);this.Yg=C;this.SC=b;N!=null&&this.ob.start(N);h&&(this.G$=p||h.getPlayerState(),h.T_(),this.CO=h)}}; +g.k.wO=function(){Nf(this,!1);uaV(this);RtK(this);g.O.prototype.wO.call(this)}; +g.k.NV=function(C){this.Xs=C;this.jC({swebm:C})}; +g.k.p5=function(C,b,h){if(h&&b){var N=this.J.get(C);if(N){N.locations||(N.locations=new Map);var p=Number(b.split(";")[0]);h=new g.Y0(h);this.jC({hdlredir:1,itag:b,seg:C,hostport:lk(h)});N.locations.set(p,h)}}}; +g.k.PR=function(C,b,h,N,p,P){var c=N===3,e=Uko(this,C,b,N,h,P);if(!e){pu(this,b,c);var L=g.QBo(this,b)?"undec":"ncp";this.jC({gvprp:L,mt:C,seg:b,tt:N,itag:h,ce:P});return null}c||this.J.set(b,e);P=e.dG;var Z;N=((Z=this.nt(b-1,N,p))==null?void 0:Z.qJ)||"";N===""&&this.jC({eds:1});Z=K4l(this,e.ssdaiAdsConfig);p=this.playback.getVideoData();var Y;c=((Y=p.K)==null?void 0:Y.containerType)||0;Y=p.pn[c];e=e.eZ&&b>=e.eZ?e.eZ:void 0;Y={Wx:P?Dk1(this,P):[],lc:Z,qJ:N,DY:e,yI:bF(Y.split(";")[0]),MO:Y.split(";")[1]|| +""};e={Vw:Y};this.Vz&&(C={gvprpro:"v",sq:b,mt:C.toFixed(3),itag:h,acpns:((L=Y.Wx)==null?void 0:L.join("_"))||"none",abid:P},this.jC(C));return e}; +g.k.ex=function(C){a:{if(!this.rG){var b=XBl(this,C);if(!(this.playback.getVideoData().qz()&&(b==null?0:b.gp)))break a}b=void 0}var h=b;if(!h)return this.jC({gvprp:"ncp",mt:C}),null;b=h.dG;var N=K4l(this,h.ssdaiAdsConfig);h=h.eZ&&h.It&&C>=h.It?h.eZ:void 0;var p=this.playback.getVideoData(),P,c=((P=p.K)==null?void 0:P.containerType)||0;P=p.pn[c];P={Wx:b?Dk1(this,b):[],lc:N,DY:h,yI:bF(P.split(";")[0]),MO:P.split(";")[1]||""};if(this.If.D("html5_use_time_without_threshold_first")){var e;C={gvprpro:"v", +mt:C.toFixed(3),acpns:((e=P.Wx)==null?void 0:e.join("_"))||"none",abid:b};this.jC(C)}return P}; +g.k.Vu=function(C,b,h,N,p,P){var c=Number(h.split(";")[0]),e=N===3;C=Uko(this,C,b,N,h,P);this.jC({gdu:1,seg:b,itag:c,pb:""+!!C});if(!C)return pu(this,b,e),null;C.locations||(C.locations=new Map);if(!C.locations.has(c)){var L,Z;P=(L=C.videoData.getPlayerResponse())==null?void 0:(Z=L.streamingData)==null?void 0:Z.adaptiveFormats;if(!P)return this.jC({gdu:"noadpfmts",seg:b,itag:c}),pu(this,b,e),null;L=P.find(function(l){return l.itag===c}); +if(!L||!L.url){var Y=C.videoData.videoId;C=[];var a=g.z(P);for(N=a.next();!N.done;N=a.next())C.push(N.value.itag);this.jC({gdu:"nofmt",seg:b,vid:Y,itag:c,fullitag:h,itags:C.join(",")});pu(this,b,e);return null}C.locations.set(c,new g.Y0(L.url,!0))}P=C.locations.get(c);if(!P)return this.jC({gdu:"nourl",seg:b,itag:c}),pu(this,b,e),null;P=new Pw(P);this.Xs&&(P.get("dvc")?this.jC({dvc:P.get("dvc")||""}):P.set("dvc","webm"));(N=(a=this.nt(b-1,N,p))==null?void 0:a.qJ)&&P.set("daistate",N);C.eZ&&b>=C.eZ&& +P.set("skipsq",""+C.eZ);(a=this.playback.getVideoData().clientPlaybackNonce)&&P.set("cpn",a);a=[];C.dG&&(a=Dk1(this,C.dG),a.length>0&&P.set("acpns",a.join(",")));e||this.J.set(b,C);e=null;e=P.get("aids");N=P.p9();(N==null?void 0:N.length)>2048&&this.jC({urltoolong:1,sq:b,itag:c,len:N.length});this.Vz&&(N&&(P=C.cpn,p=C.dG,Exl(this,P,p),p&&!this.aL.has(p)&&(P=dkW(this,P,p),L=W4V(this,p),this.jC({iofa:P}),this.jC({noawnzd:L-P}),this.jC({acpns:a.join("."),aids:(Y=e)==null?void 0:Y.replace(/,/g,".")}), +this.aL.add(p))),this.jC({gdu:"v",seg:b,itag:h,ast:C.pJ.toFixed(3),alen:C.durationMs.toFixed(3),acpn:C.cpn,avid:C.videoData.videoId}));return N}; +g.k.yL=function(C,b,h){var N=gR(this,C,h);return(N=N?(N.pJ+N.durationMs)/1E3:0)&&b>N?(this.mT(C,h,!0),this.playback.seekTo(N),!0):!1}; +g.k.mT=function(C,b,h){h=h===void 0?!1:h;var N=gR(this,C,b);if(N){var p=void 0,P=N.dG;if(P){this.jC({skipadonsq:b,sts:h,abid:P,acpn:N.cpn,avid:N.videoData.videoId});h=this.KO.get(P);if(!h)return;h=g.z(h);for(P=h.next();!P.done;P=h.next())P=P.value,P.eZ=b,P.It=C,P.pJ>N.pJ&&(p=P)}this.X=N.cpn;sBc(this);C=this.playback.getCurrentTime();Cu(this,N,p,C,C,!1,!0)}}; +g.k.yA=function(){for(var C=g.z(this.G),b=C.next();!b.done;b=C.next())b=b.value,b.eZ=NaN,b.It=NaN;sBc(this);this.jC({rsac:"resetSkipAd",sac:this.X});this.X=""}; +g.k.nt=function(C,b,h){return this.Qz.nt(C,b,h)}; +g.k.Ng=NW(49); +g.k.Ph=function(C,b,h,N,p,P,c,e,L){N.length>0&&this.jC({onssinfo:1,sq:C,start:b.toFixed(3),cpns:N.join(","),ds:p.join(","),isVideo:c?1:0});L&&this.Qz.Ph(C,c,e,L);e=x6(this.playback.getVideoData())&&this.If.D("html5_process_all_cuepoints");if(c||e){if(N.length&&p.length)for(this.X&&this.X===N[0]&&this.jC({skipfail:1,sq:C,acpn:this.X}),C=b+this.c5(),c=0;c0&&(this.t6=0,this.nJ="",this.api.publish("serverstitchedvideochange"));this.playback.FT(h,N);return!0}; +g.k.YP=function(){this.jC({rstdaist:1});this.Qz.clearAll()}; +g.k.Jp=function(C){var b;if(C!==((b=this.N2)==null?void 0:b.identifier))this.jC({ignorenoad:C});else{this.w9.add(C);var h;((h=this.N2)==null?void 0:h.identifier)===C&&I$(this)}}; +g.k.Q9=function(){return this.t6}; +g.k.pI=function(){return this.nJ}; +g.k.Es=function(C){if(this.playback.getVideoData().qz()&&(this.If.D("html5_lifa_no_gab_on_predict_start")&&C.event==="predictStart"||C.event==="continue"||C.event==="stop"))return this.jC({cuepoint_skipped:C.event}),!1;var b=UC(this.api.N8());if(b=b?b.Es(C):!1)this.L={Ir:C.identifier,Zg:C.startSecs};else if(this.L&&this.L.Ir===C.identifier&&C.startSecs>this.L.Zg+1){this.jC({cueStChg:C.identifier,oldSt:this.L.Zg.toFixed(3),newSt:C.startSecs.toFixed(3),abid:this.L.By});if(this.L.By){var h=C.startSecs- +this.L.Zg,N=this.KO.get(this.L.By);if(N){N=g.z(N);for(var p=N.next();!p.done;p=N.next())p=p.value,p.pJ>=0&&(p.pJ+=h*1E3,this.If.D("html5_ssdai_update_timeline_on_start_time_change")&&(p.n9+=h*1E3),this.jC({newApEt:p.pJ,newApPrt:p.n9,acpn:p.cpn}))}}this.L.Zg=C.startSecs}return b}; +g.k.UQ=function(C){return this.rG?!1:!!XBl(this,C)}; +g.k.EJ=function(C){var b=this;this.playback.pauseVideo();var h=this.playback.getCurrentTime(),N=this.N.get(this.nJ),p=this.K.get(this.nJ);if(N){this.X=this.nJ;this.V=!1;N.gp=!0;var P=this.playback.getCurrentTime();this.j={sG:p,isAd:!0,aR:!1,m3:P,adCpn:this.nJ,Bo:N,f8f:C};this.playback.getVideoData().qz()&&this.playback.nN(N,this.KT(),P,this.playback.getCurrentTime(),!1,!0,C,(0,g.Ai)());if(p==null?0:p.start)this.q2=P*1E3-p.start;this.J.clear();this.playback.B6();this.nJ=this.KT().cpn;this.api.publish("serverstitchedvideochange"); +this.playback.seekTo(h,{seekSource:89,Cj:"lifa_skip"});this.playback.playVideo();this.kh||(this.kh=this.events.S(this.api,"progresssync",function(){b.rE(N)})); +return!0}this.jC({skipFail:h},!0);return!1}; +g.k.jC=function(C,b){((b===void 0?0:b)||this.Vz||this.playback.getVideoData().qz())&&this.playback.jp("sdai",C)}; +var ysc=0;g.S(nxW,g.TX);g.k=nxW.prototype;g.k.rE=function(C){var b=this.K.get(C.cpn);b&&this.playback.removeCueRange(b);this.K.delete(C.cpn);this.N.delete(C.cpn);C=this.G.indexOf(C);C>=0&&this.G.splice(C,1)}; +g.k.onCueRangeEnter=function(C){var b=C.getId();this.playback.jp("sdai",{oncueEnter:1,cpn:b,start:C.start,end:C.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.l3()||0).toFixed(3)});b=this.N.get(b);this.playback.jp("sdai",{enterAdCueRange:1});var h=this.nJ||this.KT().cpn,N;h=(N=this.N.get(h))!=null?N:this.KT();b&&(C={sG:C,IZ:h,zB:b,TB:this.playback.getCurrentTime()},this.t5(C))}; +g.k.onCueRangeExit=function(C){for(var b=this.playback.getCurrentTime()*1E3,h=C.getId(),N=g.z(this.K.values()),p=N.next();!p.done;p=N.next())if(p=p.value,p.getId()!==h&&b>=p.start&&b<=p.end)return;if(b=this.N.get(h))C={sG:C,IZ:b,zB:this.KT(),TB:this.playback.getCurrentTime()},this.t5(C)}; +g.k.t5=function(C){this.X||this.V||this.VO(this.nJ);var b=C.IZ,h=C.zB;if(h.cpn===this.nJ)this.playback.jp("sdai",{igtranssame:1,enter:h.cpn,exit:b.cpn});else{var N=this.V,p=!!this.X;this.X="";C=C.TB;var P=b.playerType===2?b.pJ/1E3+b.videoData.CO:this.KT().videoData.CO;if(b.playerType===2&&h.playerType===2)p?this.playback.jp("sdai",{igtransskip:1,enter:h.cpn,exit:b.cpn,seek:N,skip:this.X}):Cu(this,b,h,P,C,N,p);else{this.nJ=h.cpn;if(b.playerType===1&&h.playerType===2){this.q2=0;wB(this,h);var c=xB(this, +"c2a",h);this.playback.jp("sdai",c);this.t6++}else if(b.playerType===2&&h.playerType===1){c=b.videoData.CO;this.api.publish("serverstitchedvideochange");var e=xB(this,"a2c");this.playback.jp("sdai",e);this.t6=0;this.q2=c}this.playback.nN(b,h,P,C,N,p)}this.X="";this.V=!1}}; +g.k.seekTo=function(C,b,h,N){C=C===void 0?0:C;b=b===void 0?{}:b;h=h===void 0?!1:h;N=N===void 0?null:N;this.VO(this.nJ);g.TX.prototype.seekTo.call(this,C,b,h,N)}; +g.k.mT=function(C,b,h){h=h===void 0?!1:h;var N=gR(this,C,b);if(N){var p=void 0,P=N.dG;if(P){this.playback.jp("sdai",{skipadonsq:b,sts:h,abid:P,acpn:N.cpn,avid:N.videoData.videoId});h=this.KO.get(P);if(!h)return;h=g.z(h);for(P=h.next();!P.done;P=h.next())P=P.value,P.eZ=b,P.It=C,P.pJ>N.pJ&&(p=P)}this.VO(this.nJ);this.X=N.cpn;sBc(this);C=this.playback.getCurrentTime();Cu(this,N,p,C,C,!1,!0)}}; +g.k.Ph=function(C,b,h,N,p,P,c,e,L){N.length>0&&this.playback.jp("sdai",{onssinfo:1,sq:C,start:b.toFixed(3),cpns:N.join(","),ds:p.join(","),isVideo:c?1:0});L&&this.Qz.Ph(C,c,e,L);h=x6(this.playback.getVideoData())&&this.If.D("html5_process_all_cuepoints");if(c||h){if(N.length&&p.length)for(this.X&&this.X===N[0]&&this.playback.jp("sdai",{skipfail:1,sq:C,acpn:this.X}),C=b+this.c5(),c=0;c0?N:0}else this.KT().videoData.CO=this.playback.getCurrentTime()};g.S(I3o,g.O);g.k=I3o.prototype; +g.k.lA=function(C,b){b=b===void 0?"":b;if(this.timeline.N===b)return!0;var h=this.timeline.j,N=h==null?void 0:h.getVideoData();if(!h||!N)return this.api.jp("ssap",{htsm:h?0:1}),!1;if(this.api.D("html5_ssap_clear_timeline_before_update")){var p=this.timeline,P;(P=p.j)==null||VyV(P);p.K.clear()}p=WU(h);var c=!1;P=[];var e=new Map;h=[];var L=[],Z=0,Y=0,a=0,l=[];C=g.z(C);for(var F=C.next();!F.done;F=C.next())a:{var G=void 0,V=void 0,q=F.value,f=q.clipId;if(f){if(q.T7){a=q.T7.sj||0;F=q.T7.GU||1;var y= +Number(((q.T7.XN||0)/(q.T7.wE||1)*1E3).toFixed(0));a=F=y+Number((a/F*1E3).toFixed(0))}else F=y=a,this.FV.has(f)||this.FQ.add(f);var u=(V=e.get(f))!=null?V:0,K=this.timeline.N;V=!1;if(K&&this.api.D("html5_ssap_clear_timeline_before_update")){if(K=this.DT.get(f))K.start=y,K.end=F,V=!0}else{if(K){var v=f;K=y;var T=F,t=u,go=bT(this.timeline,v);if(go!=null&&go.length){t=e){this.ol.set(C,h);bHl(this,C,b);this.Rt.set(C,(0,g.Ai)());if(h=this.DT.get(b))for(h=h.getId().split(","),h=g.z(h),c=h.next();!c.done;c=h.next())c=c.value,c!==b&&this.FQ.has(c)&&(this.FQ.delete(c),this.FV.add(c));this.VO();b=P.HF()/1E3;P=void 0;h=(P=g.Zc(this.api.Y().experiments,"html5_ssap_skip_seeking_offset_ms"))!=null?P:0;this.api.D("html5_ssap_keep_media_on_finish_segment")?this.playback.seekTo(b+ +h/1E3,{vY:!0}):this.playback.seekTo(b+h/1E3);this.NP?(this.api.jp("ssap",{gpfreload:this.nJ}),B5S(this)||(this.NP=!1),this.playback.B6(!1,!1,this.api.D("html5_ssap_keep_media_on_finish_segment"))):N&&this.playback.B6(!1,!1,this.api.D("html5_ssap_keep_media_on_finish_segment"));p&&this.api.playVideo(1,this.api.D("html5_ssap_keep_media_on_finish_segment"));return[C]}}}return[]}; +g.k.b_=function(){var C=this.timeline.j;if(!C)return 0;var b=C.tT();C=g.z(C.j.values());for(var h=C.next();!h.done;h=C.next()){h=g.z(h.value);for(var N=h.next();!N.done;N=h.next())N=N.value,N.tT()>b&&(b=N.tT())}return b/1E3}; +g.k.Mo=function(){var C=this.playback.getCurrentTime()*1E3;var b=pi1(this,C);if(!b){var h=bT(this.timeline,this.nJ);if(h){h=g.z(h);for(var N=h.next();!N.done;N=h.next())N=N.value,N.HF()>C&&(b=N)}}return b&&b.getType()===1?b.HF()/1E3:0}; +g.k.getVideoData=function(C){if(C===2&&!this.tR()){if(this.p4&&this.ym.has(this.p4))return this.ym.get(this.p4);this.api.jp("ssap",{lpanf:""+mA(this)});return null}return cb1(this)}; +g.k.tR=function(){var C=bT(this.timeline,this.nJ);return(C==null?0:C.length)?C[0].getType()===2:!1}; +g.k.S6=function(){var C=bT(this.timeline,this.nJ);return(C==null?0:C.length)?C[0].K:!1}; +g.k.seekTo=function(C,b){b=b===void 0?{}:b;var h=PMH(this,this.playback.getCurrentTime());this.playback.seekTo(C+h/1E3,b)}; +g.k.Eg=function(C,b,h){return new g.Ny(C,b,{id:h,namespace:"ssap",priority:9})}; +g.k.onCueRangeEnter=function(C){if(!this.IW.has(C.getId())){this.api.jp("ssap",{oce:1,cpn:C.getId(),st:C.start,et:C.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.l3()||0).toFixed(3)});for(var b=C.getId().split(","),h=0;hh+1)for(N=h+1;N0?b:0}; +g.k.o6X=function(C){var b=this.ym.get(this.nJ);b&&this.playback.Eh(C-b.lF/1E3,b.lengthSeconds,this.nJ)}; +g.k.wO=function(){this.api.Y().tZ()&&this.api.jp("ssap",{di:""+this.nJ,dic:""+this.playback.getVideoData().clientPlaybackNonce});this.ym.clear();this.FQ.clear();this.IW.clear();this.ol.clear();this.Rt.clear();this.FV.clear();this.Vv=[];T5H(this);this.pN="";g.rU(this.events);g.O.prototype.wO.call(this)};g.S(ZH6,g.O);g.k=ZH6.prototype;g.k.onCueRangeEnter=function(C){if(this.j===this.app.i$()){var b=this.G.get(C);b?GsV(this,b.target,b.vM,C):this.zE("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:C.toString()})}else if(b=this.K.find(function(p){return p.Hj.sG===C})){var h=b.Hj,N=h.target; +h=h.vM;N?GsV(this,N,h,C):FE1(this,b.n9,h,C)}}; +g.k.onQueuedVideoLoaded=function(){var C=this.J;eA(this);if(C){if(!kF(this,C)){var b=this.app.i$();this.zE("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:b==null?void 0:b.getVideoData().clientPlaybackNonce,ccpn:""+C.playerVars.cpn})}this.app.i$().addCueRange(C.Hj.sG)}}; +g.k.seekTo=function(C,b,h,N){C=C===void 0?0:C;b=b===void 0?{}:b;N=N===void 0?null:N;if(h===void 0?0:h)LEo(this,C,b);else{h=this.app.i$()||null;var p=h===this.X?this.W:null;Lu(this,!1);this.KO=C;this.V=b;N!=null&&this.L.start(N);h&&(this.W=p||h.getPlayerState(),h.T_(),this.X=h)}}; +g.k.a$=function(C){g.l1(C,128)&&VjW(this)}; +g.k.isManifestless=function(){return g9(this.j.getVideoData())}; +g.k.wO=function(){Lu(this,!1);qZW(this);g.O.prototype.wO.call(this)}; +g.k.zE=function(C,b){this.j.zE(new Mw(C,b))}; +var YZx=0;var mul="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.S(a7,g.O);g.k=a7.prototype;g.k.get=function(C){ZF(this);var b=this.data.find(function(h){return h.key===C}); +return b?b.value:null}; +g.k.set=function(C,b,h){this.remove(C,!0);ZF(this);C={key:C,value:b,expire:Infinity};h&&isFinite(h)&&(h*=1E3,C.expire=(0,g.Ai)()+h);for(this.data.push(C);this.data.length>this.N;)(h=this.data.shift())&&lX(this,h,!0);YF(this)}; +g.k.remove=function(C,b){b=b===void 0?!1:b;var h=this.data.find(function(N){return N.key===C}); +h&&(lX(this,h,b),g.b7(this.data,function(N){return N.key===C}),YF(this))}; +g.k.removeAll=function(C){if(C=C===void 0?!1:C)for(var b=g.z(this.data),h=b.next();!h.done;h=b.next())lX(this,h.value,C);this.data=[];YF(this)}; +g.k.wO=function(){var C=this;g.O.prototype.wO.call(this);this.data.forEach(function(b){lX(C,b,!0)}); +this.data=[]};g.S(o7,g.O);o7.prototype.yg=function(C){if(C)return this.K.get(C)}; +o7.prototype.wO=function(){this.j.removeAll();this.K.removeAll();g.O.prototype.wO.call(this)};g.hxE=YE(function(){var C=window.AudioContext||window.webkitAudioContext;try{return new C}catch(b){return b.name}});g.S(Jbc,g.n);g.k=Jbc.prototype;g.k.Bj=function(){g.kb(this.element,g.ro.apply(0,arguments))}; +g.k.Ue=function(){this.No&&(this.No.removeEventListener("focus",this.I9),g.pM(this.No),this.No=null)}; +g.k.CC=function(){this.HE();var C=this.app.Y();C.nS||this.Bj("tag-pool-enabled");C.W&&this.Bj(g.Qp.HOUSE_BRAND);C.playerStyle==="gvn"&&(this.Bj("ytp-gvn"),this.element.style.backgroundColor="transparent");C.HW&&(this.oi=g.j8("yt-dom-content-change",this.resize,this));this.S(window,"orientationchange",this.resize,this);this.S(window,"resize",this.resize,this)}; +g.k.Y2=function(C){g.qX(this.app.Y());this.Br=!C;FR(this)}; +g.k.resize=function(){if(this.No){var C=this.xe();if(!C.isEmpty()){var b=!g.Fd(C,this.bZ.getSize()),h=Xil(this);b&&(this.bZ.width=C.width,this.bZ.height=C.height);C=this.app.Y();(h||b||C.HW)&&this.app.h4.publish("resize",this.getPlayerSize())}}}; +g.k.bN=function(C,b){this.updateVideoData(b)}; +g.k.updateVideoData=function(C){if(this.No){var b=this.app.Y();Tn&&(this.No.setAttribute("x-webkit-airplay","allow"),C.title?this.No.setAttribute("title",C.title):this.No.removeAttribute("title"));this.No.setAttribute("controlslist","nodownload");b.qp&&C.videoId&&(this.No.poster=C.Q6("default.jpg"))}b=g.l4(C,"yt:bgcolor");this.CE.style.backgroundColor=b?b:"";this.o3=cj(g.l4(C,"yt:stretch"));this.GK=cj(g.l4(C,"yt:crop"),!0);g.Zo(this.element,"ytp-dni",C.jS);this.resize()}; +g.k.setGlobalCrop=function(C){this.KR=cj(C,!0);this.resize()}; +g.k.setCenterCrop=function(C){this.Bq=C;this.resize()}; +g.k.AC=function(){}; +g.k.getPlayerSize=function(){var C=this.app.Y(),b=this.app.h4.isFullscreen(),h=C.externalFullscreen&&g.$7(C);if(b&&WQ()&&!h)return new g.oV(window.outerWidth,window.outerHeight);h=!isNaN(this.P8.width)&&!isNaN(this.P8.height);var N=this.app.Y().D("kevlar_player_enable_squeezeback_fullscreen_sizing");if(b&&!h&&N)return new g.oV(this.element.clientWidth,this.element.clientHeight);if(b||C.df){if(window.matchMedia){C="(width: "+window.innerWidth+"px) and (height: "+window.innerHeight+"px)";this.d3&&this.d3.media=== +C||(this.d3=window.matchMedia(C));var p=this.d3&&this.d3.matches}if(p)return new g.oV(window.innerWidth,window.innerHeight)}else if(h)return this.P8.clone();return new g.oV(this.element.clientWidth,this.element.clientHeight)}; +g.k.xe=function(){var C=this.app.Y().D("enable_desktop_player_underlay"),b=this.getPlayerSize(),h=g.Zc(this.app.Y().experiments,"player_underlay_min_player_width");return C&&this.vu&&b.width>h?(C=g.Zc(this.app.Y().experiments,"player_underlay_video_width_fraction"),new g.oV(Math.min(b.height*this.getVideoAspectRatio(),b.width*C),Math.min(b.height,b.width*C/this.getVideoAspectRatio()))):b}; +g.k.getVideoAspectRatio=function(){return isNaN(this.o3)?Rll(this):this.o3}; +g.k.getVideoContentRect=function(C){var b=this.xe();C=QpV(this,b,this.getVideoAspectRatio(),C);return new g.Pc((b.width-C.width)/2,(b.height-C.height)/2,C.width,C.height)}; +g.k.TI=function(C){this.vu=C;this.resize()}; +g.k.mQ=function(){return this.NT}; +g.k.onMutedAutoplayChange=function(){FR(this)}; +g.k.setInternalSize=function(C){g.Fd(this.P8,C)||(this.P8=C,this.resize())}; +g.k.wO=function(){this.oi&&g.cl(this.oi);this.Ue();g.n.prototype.wO.call(this)};g.k=KEK.prototype;g.k.click=function(C,b){this.elements.has(C);this.j.has(C);var h=g.mZ();h&&C.visualElement&&g.pt(h,C.visualElement,b)}; +g.k.createClientVe=function(C,b,h,N){var p=this;N=N===void 0?!1:N;this.elements.has(C);this.elements.add(C);h=VwU(h);C.visualElement=h;var P=g.mZ(),c=g.q6();P&&c&&(g.HQ("combine_ve_grafts")?SO(F$(),h,c):g.CN(g.t_)(void 0,P,c,h));b.addOnDisposeCallback(function(){p.elements.has(C)&&p.destroyVe(C)}); +N&&this.K.add(C)}; +g.k.createServerVe=function(C,b,h){var N=this;h=h===void 0?!1:h;this.elements.has(C);this.elements.add(C);b.addOnDisposeCallback(function(){N.destroyVe(C)}); +h&&this.K.add(C)}; +g.k.destroyVe=function(C){this.elements.has(C);this.elements.delete(C);this.N.delete(C);this.j.delete(C);this.K.delete(C)}; +g.k.Mq=function(C,b){this.clientPlaybackNonce!==b&&(this.clientPlaybackNonce=b,G0(F$(),C),spV(this))}; +g.k.setTrackingParams=function(C,b){this.elements.has(C);b&&(C.visualElement=g.VB(b))}; +g.k.Kj=function(C,b,h){this.elements.has(C);b?this.j.add(C):this.j.delete(C);var N=g.mZ(),p=C.visualElement;this.K.has(C)?N&&p&&(b?g.Nb(N,[p]):g.gK(N,[p])):b&&!this.N.has(C)&&(N&&p&&g.hu(N,p,void 0,h),this.N.add(C))}; +g.k.hasVe=function(C){return this.elements.has(C)};g.S(g.SA,g.O);g.SA.create=function(C,b,h,N){try{var p=typeof C==="string"?C:"player"+g.Il(C),P=q2[p];if(P){try{P.dispose()}catch(e){g.Ri(e)}q2[p]=null}var c=new g.SA(C,b,h,N);c.addOnDisposeCallback(function(){q2[p]=null;c.wX&&c.wX()}); +return q2[p]=c}catch(e){throw g.Ri(e),(e&&e instanceof Error?e:Error(String(e))).stack;}}; +g.k=g.SA.prototype;g.k.u5=function(){return this.visibility}; +g.k.SE=function(C){var b=this.A4();if(C!==b){C.getVideoData().autonavState=b.getVideoData().autonavState;b.g4(this.uA,this);var h=b.getPlaybackRate();nJ(b);this.fv.SE(C);C.setPlaybackRate(h);C.Gu(this.uA,this);nZK(this)}}; +g.k.CZ=function(){this.le||(this.le=g.PN(yG(),e5l()));return this.le}; +g.k.Ue=function(C){if(this.mediaElement){this.MP&&(this.events.D9(this.MP),this.MP=null);g.rU(this.Ra);var b=this.i$();b&&b.Ue(!0,!1,C);this.template.Ue();try{this.D("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.Hd()}catch(h){g.QB(h)}this.mediaElement=null}}; +g.k.ub=function(C,b){if(C!==this.i$()){this.logger.debug(function(){return"start set presenting player, type "+C.getPlayerType()+", vid "+C.getVideoData().videoId}); +var h=null,N=this.i$();N&&(h=N.getPlayerState(),this.logger.debug("set presenting player, destroy modules"),Qi(this.Ms,3),vq(this,"cuerangesremoved",N.l1()),this.wu&&!C.isGapless()&&N.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo(),N=C.v$()&&N.v$(),this.DJ.Ap("iv_s"),NZl(this,N));C.getPlayerType()===1&&this.SE(C);hCc(this,C);this.fv.ub(C);this.mediaElement&&C.setMediaElement(this.mediaElement);C.Gu(this.Rp,this);C.kB()?iic(this,"setPresenting",!1):(this.bN("newdata",C,C.getVideoData()), +h&&!g.p3(h,C.getPlayerState())&&this.gD(new g.YH(C.getPlayerState(),h)),b=b&&this.D("html5_player_preload_ad_fix")&&C.getPlayerType()===1,C.Hr()&&!b&&this.bN("dataloaded",C,C.getVideoData()),(b=(b=C.getVideoData().K)&&b.video)&&this.h4.Mz("onPlaybackQualityChange",b.quality),vq(this,"cuerangesadded",C.l1()),b=C.getPlayerState(),g.B(b,2)?biV(this):g.B(b,8)?C.playVideo():C.Xn()&&C.pauseVideo(),b=this.A4(),C.getPlayerType()===2&&(C.getVideoData().On=b.getVideoData().clientPlaybackNonce),C.getPlayerType()!== +2||this.vL()||(h=C.getVideoData(),b.QC(h.clientPlaybackNonce,h.IV||"",h.breakType||0,h.VX,h.videoId||"")),this.logger.debug("finish set presenting player"))}}; +g.k.xY=function(){if(this.A4()!==this.i$()){var C=this.i$();this.logger.debug(function(){return"release presenting player, type "+(C==null?void 0:C.getPlayerType())+", vid "+(C==null?void 0:C.getVideoData().videoId)}); +this.ub(this.A4())}}; +g.k.gU=function(C){if(C)if(C===1)C=this.A4();else if(this.getVideoData().enableServerStitchedDai&&C===2)C=this.getVideoData().enablePreroll?this.fv.gU(2)||this.i$():this.i$();else if(g.sF(this.getVideoData())&&C===2){if(C=this.D("html5_ssap_return_content_player_during_preroll"))if(C=this.Ib)C=this.Ib,C=C.nJ===""?!0:C.tR();C=C?this.i$():this.fv.gU(2)||this.i$()}else C=this.fv.gU(C)||null;else C=this.i$();return C}; +g.k.A4=function(){return this.fv.A4()}; +g.k.i$=function(){return this.fv.i$()}; +g.k.aH=NW(44);g.k.zWf=function(){qf(this)||(this.logger.debug("application playback ready"),this.Pm(5))}; +g.k.jLz=function(C){if(!qf(this)){this.logger.debug("playback ready");fES(this);var b=C.getPlayerState();C.Xn()?this.pauseVideo():b.isOrWillBePlaying()&&this.playVideo()}}; +g.k.canPlayType=function(C){return Am(C)}; +g.k.Y=function(){return this.If}; +g.k.getVideoData=function(){return this.i$().getVideoData()}; +g.k.Hc=NW(18);g.k.PW=function(){return this.A4().getVideoData()}; +g.k.getVideoLoadedFraction=function(C){C=this.gU(C);return C?g.d9(C.getVideoData())?1:(C=C.Q_())?C.hd():0:0}; +g.k.Ti=function(){return this.template}; +g.k.N8=function(){return this.Ms}; +g.k.FX=function(){return this.DJ}; +g.k.Il=function(C){var b=this.gU(1);b&&b.DN(C)}; +g.k.FG=function(){var C=this.Ms.FG();this.h4.publish("videoStatsPingCreated",C);return C}; +g.k.getVolume=function(){return Math.round(this.h4.getVolume())}; +g.k.isMuted=function(){return this.h4.isMuted()}; +g.k.TP=function(){if(this.A4()===this.i$()&&this.Wb)return this.Wb.postId}; +g.k.je$=function(){var C=this;this.D("use_rta_for_player")||(g.m9(this.If)?g.BI(this.If,g.X5(this.getVideoData())).then(function(b){rY(yG(),b);Vx6(C.getVideoData(),C.If,C.CZ())}):Vx6(this.getVideoData(),this.If,this.CZ()))}; +g.k.D7=function(C){this.h4.publish("poTokenVideoBindingChange",C)}; +g.k.WV=function(C){this.h4.publish("d6de4videobindingchange",C)}; +g.k.IE=function(){this.BD&&this.BD.IE()}; +g.k.OL=function(C){this.BD=C}; +g.k.wC=function(C){if(C===1){this.DJ.tick("vr");var b=this.i$();b.rM();DsH(this.DJ,b.getVideoData(),mco(this));yYx(this.Ms)}b=this.If;(nO(b)&&b.J||g.fO(b))&&(this.vL()||this.h4.Mz("onAdStateChange",C))}; +g.k.setLoopVideo=function(C){var b=this.i$();b===this.A4()&&b.wf()!==C&&(b.setLoop(C),this.h4.LO("onLoopChange",C))}; +g.k.getLoopVideo=function(){return this.i$().wf()}; +g.k.setLoopRange=function(C){var b=!1;!!this.Wb!==!!C?b=!0:this.Wb&&C&&(b=this.Wb.startTimeMs!==C.startTimeMs||this.Wb.endTimeMs!==C.endTimeMs||this.Wb.postId!==C.postId||this.Wb.type!==C.type);if(b){(b=this.i$())&&Tt(b.getVideoData())&&b.jp("slr",{et:(C==null?void 0:C.endTimeMs)||-1});b=this.A4();b.Sh("applooprange");if(C){var h=new g.Ny(C.startTimeMs,C.endTimeMs,{id:"looprange",namespace:"applooprange"});b.addCueRange(h)}else{this.PW().clipConfig=void 0;var N;((h=this.Wb)==null?void 0:h.type)!== +"repeatChapter"||isNaN(Number((N=this.Wb)==null?void 0:N.loopCount))||(h={loopCount:String(this.Wb.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.en("repeatChapterLoopEvent",h))}this.Wb=C;this.h4.LO("onLoopRangeChange",C||void 0);this.A4()===this.i$()&&(this.CA(),b.vE.rA())}}; +g.k.getLoopRange=function(){return this.Wb}; +g.k.CA=function(){var C="",b=this.A4();this.Wb?b!==this.i$()?C="pnea":LpH(this,b.getCurrentTime())&&(this.Wb.loopCount=0,C="ilr"):C="nlr";var h=this.i$();if(h&&Tt(h.getVideoData()))if(this.D("html5_gapless_log_loop_range_info")){var N,p;h.jp("slrre",{rej:C,ct:b.getCurrentTime(),lst:(N=this.Wb)==null?void 0:N.startTimeMs,let:(p=this.Wb)==null?void 0:p.endTimeMs})}else h.jp("slrre",{});C||lE6(this)}; +g.k.setPlaybackRate=function(C,b){if(!isNaN(C)){C=IXx(this,C);var h=this.A4();h.getPlaybackRate()!==C&&(h.setPlaybackRate(C),b&&!this.If.X&&g.R1("yt-player-playback-rate",C),this.h4.Mz("onPlaybackRateChange",C))}}; +g.k.getCurrentTime=function(C,b,h){b=b===void 0?!0:b;if(this.getPresentingPlayerType()===3)return $z(this.Ms).getCurrentTime();var N=C===2&&this.getVideoData().enableServerStitchedDai,p=g.sF(this.getVideoData());C=N||p?this.i$():this.gU(C);if(!C)return 0;if(p&&this.Ib)return b=this.Ib,C=C.getCurrentTime(),h?h=Pq(b,h):(h=PMH(b,C),h=C-h/1E3),h;if(b){if(N&&this.Yt&&(h=this.Yt.q2/1E3,h!==0))return h;h=Mf(this,C);return uX(this,h.getCurrentTime(),h)}N&&this.Yt?(h=this.Yt,C=C.getCurrentTime(),h=(h=iqW(h, +C*1E3))?C-h.start/1E3:C):h=C.getCurrentTime();return h}; +g.k.fB=function(){var C=this.gU();if(!C)return 0;C=Mf(this,C);return uX(this,C.fB(),C)}; +g.k.getDuration=function(C,b){b=b===void 0?!0:b;var h=this.getVideoData(),N=C===2&&h.enableServerStitchedDai,p=g.sF(h);var P=N||p?this.i$():this.gU(C);if(!P)return 0;if(h.hasProgressBarBoundaries()&&!N&&!p){var c,e=Number((c=h.progressBarStartPosition)==null?void 0:c.utcTimeMillis),L;h=Number((L=h.progressBarEndPosition)==null?void 0:L.utcTimeMillis);if(!isNaN(e)&&!isNaN(h))return(h-e)/1E3}if(p&&this.Ib)return b=jpl(this.Ib,this.Ib.pI()),C===1&&b===0?P.getDuration():b;if(b)return P=V_(this,P),uX(this, +P.getDuration(),P);N&&this.Yt?(C=this.Yt,P=P.getCurrentTime(),P=(P=JsH(C,P*1E3))?P.durationMs/1E3:0):P=P.getDuration();return P}; +g.k.vF=function(C){var b=this.gU(C);return b?this.vL(b)?(b=V_(this,b),b.vF()-b.getCurrentTime()+this.getCurrentTime(C)):b.vF():0}; +g.k.Fx=function(){return this.YC}; +g.k.addPlayerResponseForAssociation=function(C){this.Ib&&this.Ib.addPlayerResponseForAssociation(C)}; +g.k.finishSegmentByCpn=function(C,b,h){return this.Ib?this.Ib.finishSegmentByCpn(C,b,h):[]}; +g.k.CC=function(){this.template.CC();var C=this.h4;C.state.element=this.template.element;var b=C.state.element,h;for(h in C.state.j)C.state.j.hasOwnProperty(h)&&(b[h]=C.state.j[h]);(C=sbo(this.template.element))&&this.events.S(this.template,C,this.onFullscreenChange);this.events.S(window,"resize",this.r8O)}; +g.k.getDebugText=function(C){var b=this.A4().jf(C),h=this.i$(),N=this.A4();if(h&&h!==N){h=h.jf(C);N=g.z(Object.keys(h));for(var p=N.next();!p.done;p=N.next())p=p.value,b["ad"+p]=h[p];if(C){h=b;N={};if(p=vE(document,"movie_player"))N.bounds=p.getBoundingClientRect(),N["class"]=p.className;p={};var P=g.Ei("video-ads");P?(RCV(P,p),p.html=P.outerHTML):p.missing=1;P={};var c=g.Ei("videoAdUiSkipContainer"),e=g.Ei("ytp-ad-skip-button-container"),L=g.Ei("ytp-skip-ad-button"),Z=c||e||L;Z?(RCV(Z,P),P.ima=c? +1:0,P.bulleit=e?1:0,P.component=L?1:0):P.missing=1;N=JSON.stringify({player:N,videoAds:p,skipButton:P});h.ad_skipBtnDbgInfo=N}}C&&this.mediaElement&&(b["0sz"]=""+(+GA(this.mediaElement.getSize())===0),b.op=this.mediaElement.aQ("opacity"),h=this.mediaElement.ud().y+this.mediaElement.getSize().height,b.yof=""+(+h<=0),b.dis=this.mediaElement.aQ("display"));C&&((C=(0,g.r4)())&&(b.gpu=C),(C=this.If.playerStyle)&&(b.ps=C),this.If.CO&&(b.webview=1));b.debug_playbackQuality=this.h4.getPlaybackQuality(1); +b.debug_date=(new Date).toString();b.origin=window.origin;b.timestamp=Date.now();delete b.uga;delete b.q;return JSON.stringify(b,null,2)}; +g.k.getFeedbackProductData=function(){var C={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.Y().experiments.experimentIds.join(", "),player_release:bc[47]},b=this.getPlayerStateObject().N9;b&&(C.player_error_code=b.errorCode,C.player_error_details=JSON.stringify(b.errorDetail));return C}; +g.k.getPresentingPlayerType=function(C){if(this.appState===1)return 1;if(qf(this))return 3;var b;if(C&&((b=this.Yt)==null?0:b.tR(this.getCurrentTime())))return 2;var h;return g.sF(this.getVideoData())&&((h=this.Ib)==null?0:h.tR())?2:this.i$().getPlayerType()}; +g.k.S6=function(){return g.sF(this.getVideoData())&&this.Ib?this.Ib.S6():!1}; +g.k.getPlayerStateObject=function(C){return this.getPresentingPlayerType()===3?$z(this.Ms).TM:this.gU(C).getPlayerState()}; +g.k.getAppState=function(){return this.appState}; +g.k.SA=function(C){switch(C.type){case "loadedmetadata":this.fA.start();C=g.z(this.Uo);for(var b=C.next();!b.done;b=C.next())b=b.value,MNW(this,b.id,b.j$$,b.ve2,void 0,!1);this.Uo=[];break;case "loadstart":this.DJ.Ap("gv");break;case "progress":case "timeupdate":jJ(C.target.XX())>=2&&this.DJ.Ap("l2s");break;case "playing":g.WI&&this.fA.start();if(g.m9(this.If))C=!1;else{var h=this.i$();b=g.VG(this.N8());C=this.mediaElement.aQ("display")==="none"||GA(this.mediaElement.getSize())===0;var N=GH(this.template), +p=h.getVideoData();h=g.KF(this.If);p=B7(p);b=!N||b||h||p||this.If.sI;C=C&&!b}C&&(C=this.i$(),C.Ze(),this.getVideoData().Xs||(this.getVideoData().Xs=1,this.qm(),C.playVideo()))}}; +g.k.onLoadProgress=function(C,b){this.h4.IL("onLoadProgress",b)}; +g.k.v66=function(){this.h4.publish("playbackstalledatstart")}; +g.k.QO=function(C,b){this.h4.publish("sabrCaptionsDataLoaded",C,b)}; +g.k.uZi=function(C){var b;(b=this.i$())==null||b.b4(C)}; +g.k.i9$=function(C){var b;(b=this.i$())==null||b.CH(C)}; +g.k.onVideoProgress=function(C,b){C=Mf(this,C.e2);b=uX(this,C.getCurrentTime(),C);this.h4.Mz("onVideoProgress",b)}; +g.k.onAutoplayBlocked=function(){this.h4.Mz("onAutoplayBlocked");var C,b=(C=this.i$())==null?void 0:C.getVideoData();b&&(b.x8=!0);this.D("embeds_enable_autoplay_and_visibility_signals")&&g.$7(this.If)&&(C={autoplayBrowserPolicy:UK(),autoplayIntended:X$(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.en("embedsAutoplayStatusChanged",C))}; +g.k.dsz=function(){this.h4.publish("progresssync")}; +g.k.vtf=function(){this.h4.IL("onPlaybackPauseAtStart")}; +g.k.VCh=function(C){if(this.getPresentingPlayerType()===1){g.l1(C,1)&&!g.B(C.state,64)&&this.PW().isLivePlayback&&this.A4().isAtLiveHead()&&this.h4.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.l1(C,2)){if(this.Wb&&this.Wb.endTimeMs>=(this.getDuration()-1)*1E3){lE6(this);return}biV(this)}if(g.B(C.state,128)){var b=C.state;this.cancelPlayback(5);b=b.N9;JSON.stringify({errorData:b,debugInfo:this.getDebugText(!0)});this.h4.Mz("onError",Qac(b.errorCode));this.h4.IL("onDetailedError",{errorCode:b.errorCode, +errorDetail:b.errorDetail,message:b.errorMessage,messageKey:b.OQ,cpn:b.cpn});(0,g.Ai)()-this.If.Fy>6048E5&&this.h4.IL("onReloadRequired")}b={};if(C.state.isPlaying()&&!C.state.isBuffering()&&!d8("pbresume","ad_to_video")&&d8("_start","ad_to_video")){var h=this.getVideoData();b.clientPlaybackNonce=h.clientPlaybackNonce;h.videoId&&(b.videoId=h.videoId);g.vs(b,"ad_to_video");OG("pbresume",void 0,"ad_to_video");yYx(this.Ms)}this.h4.publish("applicationplayerstatechange",C)}}; +g.k.gD=function(C){this.getPresentingPlayerType()!==3&&this.h4.publish("presentingplayerstatechange",C)}; +g.k.a$=function(C){Hq(this,jg(C.state));g.B(C.state,1024)&&this.h4.isMutedByMutedAutoplay()&&(iX(this,{muted:!1,volume:this.zx.volume},!1),JC(this,!1))}; +g.k.YS=function(C,b,h){C==="newdata"&&nZK(this);this.h4.publish("applicationvideodatachange",C,h)}; +g.k.WQ=function(C,b){this.h4.IL("onPlaybackAudioChange",this.h4.getAudioTrack().z$.name);this.h4.publish("internalaudioformatchange",this.h4.getAudioTrack().z$.id,b)}; +g.k.Qk=function(C){var b=this.i$().getVideoData();C===b&&this.h4.Mz("onPlaybackQualityChange",C.K.video.quality)}; +g.k.Qu=function(){var C=this.fv.gU(2);if(C){var b=C.getVideoData();C=C.o4();var h;(h=this.i$())==null||h.jp("ssdai",{cleanaply:1,acpn:b==null?void 0:b.clientPlaybackNonce,avid:b.videoId,ccpn:C,sccpn:this.PW().clientPlaybackNonce===C?1:0,isDai:this.PW().enableServerStitchedDai?1:0});delete this.fv.K[2]}}; +g.k.onVideoDataChange=function(C,b,h){this.bN(C,b.e2,h)}; +g.k.bN=function(C,b,h){this.logger.debug(function(){return"on video data change "+C+", player type "+b.getPlayerType()+", vid "+h.videoId}); +this.If.tZ()&&b.jp("vdc",{type:C,vid:h.videoId||"",cpn:h.clientPlaybackNonce||""});b===this.A4()&&(this.If.Fz=h.oauthToken);if(b===this.A4()){this.getVideoData().enableServerStitchedDai&&!this.Yt?(this.D("html5_check_decorator_on_cuepoint")&&this.A4().jp("sdai",{initSstm:1}),this.Yt=this.D("html5_enable_ssdai_transition_with_only_enter_cuerange")?new nxW(this.h4,this.If,this.A4(),this):new g.TX(this.h4,this.If,this.A4(),this)):!this.getVideoData().enableServerStitchedDai&&this.Yt&&(this.Yt.dispose(), +this.Yt=null);var N,p;!g.sF(this.getVideoData())||C!=="newdata"&&C!=="dataloaded"||this.getVideoData().clientPlaybackNonce===((N=this.YC.j)==null?void 0:(p=N.getVideoData())==null?void 0:p.clientPlaybackNonce)?!g.sF(this.getVideoData())&&this.Ib&&(this.Ib.dispose(),this.Ib=null):($k6(this.YC),this.D("html5_ssap_cleanup_ad_player_on_new_data")&&this.Qu(),N=nc(this.YC,1,0,this.getDuration(1)*1E3,this.getVideoData()),this.YC.enqueue(N,!0),Eb(this.YC,0,this.getDuration(1)*1E3,[N]),ztc(this.YC,this.getVideoData().clientPlaybackNonce, +[N]),this.Ib&&(this.Ib.dispose(),this.Ib=null),this.Ib=new I3o(this.h4,this.YC,this.A4()),this.fv.A4().ya(this.Ib))}if(C==="newdata")this.logger.debug("new video data, destroy modules"),Qi(this.Ms,2),this.h4.publish("videoplayerreset",b);else{if(!this.mediaElement)return;C==="dataloaded"&&(this.A4()===this.i$()?(J9(h.Rf,h.xK),jKx(this)):p3U(this));b.getPlayerType()===1&&(this.If.t4&&uhK(this),this.getVideoData().isLivePlayback&&!this.If.xA&&this.q9("html5.unsupportedlive",2,"DEVICE_FALLBACK"),h.isLoaded()&& +((EV6(h)||this.getVideoData().hH)&&this.h4.publish("legacyadtrackingpingchange",this.getVideoData()),h.hasProgressBarBoundaries()&&FpK(this)));this.h4.publish("videodatachange",C,h,b.getPlayerType())}this.h4.Mz("onVideoDataChange",{type:C,playertype:b.getPlayerType()});this.CA();(N=h.JQ)?this.T2.Mq(N,h.clientPlaybackNonce):spV(this.T2)}; +g.k.BJ=function(){fu(this,null);this.h4.IL("onPlaylistUpdate")}; +g.k.xso=function(C){delete this.nA[C.getId()];this.A4().removeCueRange(C);a:{C=this.getVideoData();var b,h,N,p,P,c,e,L,Z,Y,a=((b=C.rO)==null?void 0:(h=b.contents)==null?void 0:(N=h.singleColumnWatchNextResults)==null?void 0:(p=N.autoplay)==null?void 0:(P=p.autoplay)==null?void 0:P.sets)||((c=C.rO)==null?void 0:(e=c.contents)==null?void 0:(L=e.twoColumnWatchNextResults)==null?void 0:(Z=L.autoplay)==null?void 0:(Y=Z.autoplay)==null?void 0:Y.sets);if(a)for(b=g.z(a),h=b.next();!h.done;h=b.next())if(h= +h.value,p=N=void 0,h=h.autoplayVideo||((N=h.autoplayVideoRenderer)==null?void 0:(p=N.autoplayEndpointRenderer)==null?void 0:p.endpoint),N=g.d(h,g.dF),P=p=void 0,h!=null&&((p=N)==null?void 0:p.videoId)===C.videoId&&((P=N)==null?0:P.continuePlayback)){C=h;break a}C=null}(b=g.d(C,g.dF))&&this.h4.LO("onPlayVideo",{sessionData:{autonav:"1",itct:C==null?void 0:C.clickTrackingParams},videoId:b.videoId,watchEndpoint:b})}; +g.k.Pm=function(C){var b=this;C!==this.appState&&(this.logger.debug(function(){return"app state change "+b.appState+" -> "+C}),C===2&&this.getPresentingPlayerType()===1&&(Hq(this,-1),Hq(this,5)),this.appState=C,this.h4.publish("appstatechange",C))}; +g.k.q9=function(C,b,h,N,p){this.A4().u3(C,b,h,N,p)}; +g.k.S4=function(C,b){this.A4().handleError(new Mw(C,b))}; +g.k.isAtLiveHead=function(C,b){b=b===void 0?!1:b;var h=this.gU(C);if(!h)return!1;C=V_(this,h);h=Mf(this,h);return C!==h?C.isAtLiveHead(uX(this,h.getCurrentTime(),h),!0):C.isAtLiveHead(void 0,b)}; +g.k.m7=function(){var C=this.gU();return C?V_(this,C).m7():0}; +g.k.seekTo=function(C,b,h,N,p){b=b!==!1;if(N=this.gU(N))this.appState===2&&y_(this),this.vL(N)?R7(this)?this.Yt.seekTo(C,{seekSource:p},b,h):this.uf.seekTo(C,{seekSource:p},b,h):g.sF(this.getVideoData())&&this.Ib?this.Ib.seekTo(C,{qC:!b,kQ:h,Cj:"application",seekSource:p}):N.seekTo(C,{qC:!b,kQ:h,Cj:"application",seekSource:p})}; +g.k.seekBy=function(C,b,h,N){this.seekTo(this.getCurrentTime()+C,b,h,N)}; +g.k.HQ=function(){this.h4.Mz("SEEK_COMPLETE")}; +g.k.bu=function(){this.h4.LO("onAbnormalityDetected")}; +g.k.onSnackbarMessage=function(C){this.h4.LO("onSnackbarMessage",C)}; +g.k.Fkz=function(C,b){C=C.e2;var h=C.getVideoData();if(this.appState===1||this.appState===2)h.startSeconds=b;this.appState===2?g.B(C.getPlayerState(),512)||y_(this):this.h4.Mz("SEEK_TO",b)}; +g.k.onAirPlayActiveChange=function(){this.h4.publish("airplayactivechange");this.If.D("html5_external_airplay_events")&&this.h4.IL("onAirPlayActiveChange",this.h4.r0())}; +g.k.onAirPlayAvailabilityChange=function(){this.h4.publish("airplayavailabilitychange");this.If.D("html5_external_airplay_events")&&this.h4.IL("onAirPlayAvailabilityChange",this.h4.gq())}; +g.k.showAirplayPicker=function(){var C;(C=this.i$())==null||C.Vr()}; +g.k.gY=function(){this.h4.publish("beginseeking")}; +g.k.zK=function(){this.h4.publish("endseeking")}; +g.k.getStoryboardFormat=function(C){return(C=this.gU(C))?V_(this,C).getVideoData().getStoryboardFormat():null}; +g.k.hR=function(C){return(C=this.gU(C))?V_(this,C).getVideoData().hR():null}; +g.k.vL=function(C){C=C||this.i$();var b=!1;if(C){C=C.getVideoData();if(R7(this))C=C===this.Yt.playback.getVideoData();else a:if(b=this.uf,C===b.j.getVideoData()&&b.K.length)C=!0;else{b=g.z(b.K);for(var h=b.next();!h.done;h=b.next())if(C.v7===h.value.v7){C=!0;break a}C=!1}b=C}return b}; +g.k.ev=function(C,b,h,N,p,P,c){this.logger.debug(function(){return"Adding video to timeline id="+C.video_id+"\n lengthMs="+N+" enterTimeMs="+p}); +var e="",L=R7(this),Z;(Z=this.i$())==null||Z.jp("appattl",{sstm:this.Yt?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:L});e=L?rsl(this.Yt,C,b,h,N,p,P,c):oZK(this.uf,C,h,N,p,P);this.logger.debug(function(){return"Video added to timeline id="+C.video_id+" timelinePlaybackId="+e}); +return e}; +g.k.uh=function(C,b,h,N,p,P,c){if(R7(this)){var e=rsl(this.Yt,C,b,h,N,p,P,c);this.logger.debug(function(){return"Remaining video added to timeline id="+C.video_id+" timelinePlaybackId="+e})}return""}; +g.k.Jp=function(C){var b;(b=this.Yt)==null||b.Jp(C)}; +g.k.yu=function(C,b){C=C===void 0?-1:C;b=b===void 0?Infinity:b;R7(this)||qZW(this.uf,C,b)}; +g.k.sC=function(C,b,h){if(R7(this)){var N=this.Yt,p=N.AZ.get(C);p?(h===void 0&&(h=p.n9),p.durationMs=b,p.n9=h):N.RF("Invalid_timelinePlaybackId_"+C+"_specified")}else{N=this.uf;p=null;for(var P=g.z(N.K),c=P.next();!c.done;c=P.next())if(c=c.value,c.v7===C){p=c;break}p?(h===void 0&&(h=p.n9),Mj1(N,p,b,h)):jA(N,"InvalidTimelinePlaybackId timelinePlaybackId="+C)}}; +g.k.enqueueVideoByPlayerVars=function(C,b,h,N){h=h===void 0?Infinity:h;N=N===void 0?"":N;this.vL();C=new g.QK(this.If,C);N&&(C.v7=N);Gcl(this,C,b,h)}; +g.k.queueNextVideo=function(C,b,h,N,p){h=h===void 0?NaN:h;h=this.preloadVideoByPlayerVars(C,b===void 0?1:b,h,N===void 0?"":N,p===void 0?"":p);C=this.i$();h&&C&&(b=h.e2,this.D("html5_check_queue_on_data_loaded")?this.Y().supportsGaplessShorts()&&C.getVideoData().L&&(h=this.cI,N=this.wu.J,h.X!==b&&(h.K=C,h.X=b,h.N=1,h.j=b.getVideoData(),h.G=N,h.j.isLoaded()?h.W():h.j.subscribe("dataloaded",h.W,h))):(b=BxV(C,b,this.wu.J),b!=null?(C.jp("sgap",b),C.getVideoData().L&&C.qY(!1)):(C=h.getVideoData(),b=this.cI, +b.j!==C&&(b.j=C,b.N=1,C.isLoaded()?b.J():b.j.subscribe("dataloaded",b.J,b)))))}; +g.k.wI=function(C,b,h,N){var p=this;h=h===void 0?0:h;N=N===void 0?0:N;var P=this.i$();P&&V_(this,P).TD();cso(this.wu,C,b,h,N).then(function(){p.h4.IL("onQueuedVideoLoaded")},function(){})}; +g.k.nf=function(){return this.wu.nf()}; +g.k.kF=function(C){return this.wu.j===C.e2}; +g.k.clearQueue=function(C,b){C=C===void 0?!1:C;b=b===void 0?!1:b;this.logger.debug("Clearing queue");this.wu.clearQueue(C,b)}; +g.k.loadVideoByPlayerVars=function(C,b,h,N,p,P){b=b===void 0?1:b;var c=this.A4();if(b===2&&this.PW().enableServerStitchedDai&&c&&!c.zJ())return c.jp("lvonss",{vid:(C==null?void 0:C.videoId)||"",ptype:b}),!1;var e=!1;c=new g.QK(this.If,C);c.reloadPlaybackParams=P;g.d_(this.If)&&!c.LZ&&zD(this.DJ);var L;P=this.DJ;var Z=(L=c.t4)!=null?L:"";P.timerName=Z;this.DJ.Jy("pl_i");this.D("web_player_early_cpn")&&c.clientPlaybackNonce&&this.DJ.infoGel({clientPlaybackNonce:c.clientPlaybackNonce});if(S3x(c).supportsVp9Encoding=== +!1){var Y;(Y=this.i$())==null||Y.jp("noVp9",{})}if(this.Y().supportsGaplessShorts()){L=et_(this.wu,c,b);if(L==null){Hq(this,-1);C=this.wu;C.app.Y().D("html5_gapless_new_slr")?YRl(C.app,"gaplessshortslooprange"):C.app.setLoopRange(null);C.app.getVideoData().F6=!0;var a;(a=C.j)==null||a.MH();var l;(l=C.j)!=null&&D9(l.vE.CJ());h={Cj:"gapless_to_next_video",seekSource:60};var F;(F=C.app.i$())==null||F.seekTo(kJW(C),h);if(!C.app.getPlayerStateObject(b).isPlaying()){var G;(G=C.app.i$())==null||G.playVideo(!0)}C.W(); +return!0}F=this.D("html5_shorts_gapless_preload_fallback");G=this.wu.j;F&&G&&!G.vE.HE()&&(a=G.getVideoData(),a=this.If.D("html5_autonav_autoplay_in_preload_key")?U5(this,b,a):Ku(this,b,a.videoId,a.v7),this.fv.j.set(a,G,3600));this.wu.clearQueue(F);var V;(V=this.i$())==null||V.jp("sgap",{f:L})}if(p){for(;c.mC.length&&c.mC[0].isExpired();)c.mC.shift();e=c.mC.length-1;e=e>0&&p.K(c.mC[e])&&p.K(c.mC[e-1]);c.mC.push(p)}h||(C&&ndU(C)?(KO(this.If)&&!this.Cf&&(C.fetch=0),fu(this,C)):this.playlist&&fu(this, +null),C&&(this.Cf=gU(!1,C.external_list)));this.h4.publish("loadvideo");b=this.wL(c,b,N);e&&this.q9("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+c.mC.join()).replace(/[;:,]/g,"_"));return b}; +g.k.preloadVideoByPlayerVars=function(C,b,h,N,p){b=b===void 0?1:b;h=h===void 0?NaN:h;N=N===void 0?"":N;p=p===void 0?"":p;var P="";if(this.If.D("html5_autonav_autoplay_in_preload_key"))P=$cc(this,b,C,p);else{var c=ka(C);P=Ku(this,b,c,p)}if(this.fv.j.get(P))return this.logger.debug(function(){return"already preloaded "+P}),null; +C=new g.QK(this.If,C);p&&(C.v7=p);return SRW(this,C,b,h,N)}; +g.k.setMinimized=function(C){this.visibility.setMinimized(C);(C=JY6(this.Ms))&&(this.isMinimized()?C.load():C.unload());this.h4.publish("minimized")}; +g.k.setInline=function(C){this.visibility.setInline(C)}; +g.k.setInlinePreview=function(C){this.visibility.setInline(C)}; +g.k.ib=function(C){zCl(this,C)||this.visibility.ib(C)}; +g.k.setSqueezeback=function(C){this.visibility.setSqueezeback(C)}; +g.k.K8=function(){var C,b=(C=this.mediaElement)==null?void 0:C.Rb();b&&((this.D("html5_disable_pip_with_standard_api")||this.D("html5_pip_visibility_on_resize"))&&document.exitFullscreen().catch(function(){}),$a(b).catch(function(h){g.QB(h)}))}; +g.k.YGh=function(){this.mediaElement.Rb();this.mediaElement.Rb().webkitPresentationMode==="picture-in-picture"?this.ib(!0):this.ib(!1)}; +g.k.togglePictureInPicture=function(){var C=this.i$();C&&C.togglePictureInPicture()}; +g.k.wL=function(C,b,h){b=b===void 0?1:b;this.logger.debug(function(){return"start load video, id "+C.videoId+", type "+b}); +d8("_start",this.DJ.timerName)||g.CN(ug)(void 0,this.DJ.timerName);var N=!1,p=eCV(this,b,C,!1);p?(N=!0,C.dispose()):(p=gm_(this,b,C,h).e2,(this.D("html5_onesie")||this.D("html5_load_before_stop"))&&p.JX()&&p.Us(),this.fA.stop(),b===1&&b!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,b),this.ub(p));p===this.A4()&&(this.If.Fz=C.oauthToken);if(!p.JX())return!1;if(p===this.A4())return this.Pm(1),h=y_(this),N&&this.D("html5_player_preload_ad_fix")&&p.getPlayerType()===1&& +p.Hr()&&this.bN("dataloaded",p,p.getVideoData()),h;p.z_();return!0}; +g.k.cueVideoByPlayerVars=function(C,b){var h=this;b=b===void 0?1:b;var N=this.A4();if(this.PW().enableServerStitchedDai&&N&&!N.zJ()&&C&&Object.keys(C).length>0)N.jp("qvonss",{vid:(C==null?void 0:C.videoId)||"",ptype:b});else if(C&&ndU(C))if(this.wK=!0,fu(this,C),(C=g.HS(this.playlist))&&C.bF())O5(this,C,b);else this.playlist.onReady(function(){AC(h)}); +else{b||(b=this.getPresentingPlayerType());b===1&&this.BJ();N=new g.QK(this.If,C);var p=g.$7(this.If)&&!this.If.N2&&b===1&&!N.isAd()&&!N.IV;this.h4.publish("cuevideo");p?(this.i$().getVideoData().loading=!0,Csl(N,C?C:{}).then(function(P){O5(h,P,b)}),N.dispose()):O5(this,N,b)}}; +g.k.fk=function(C,b,h,N,p,P,c){if(!C&&!h)throw Error("Playback source is invalid");if(HI(this.If)||g.Mo(this.If))return b=b||{},b.lact=Ap(),b.vis=this.h4.getVisibilityState(),this.h4.LO("onPlayVideo",{videoId:C,watchEndpoint:P,sessionData:b,listId:h}),!1;Wqc(this.DJ);this.DJ.reset();C={video_id:C};N&&(C.autoplay="1");N&&(C.autonav="1");P&&(C.player_params=P.playerParams);c&&(C.oauth_token=c);h?(C.list=h,this.loadPlaylist(C)):this.loadVideoByPlayerVars(C,1);return!0}; +g.k.cuePlaylist=function(C,b,h,N){this.wK=!0;Hil(this,C,b,h,N)}; +g.k.loadPlaylist=function(C,b,h,N){this.wK=!1;Hil(this,C,b,h,N)}; +g.k.A0=function(){return this.h4.isMutedByMutedAutoplay()?!1:this.getPresentingPlayerType()===3?!0:!(!this.playlist||!this.playlist.iN())}; +g.k.cj=NW(13); +g.k.nextVideo=function(C,b){var h=g.W7(this.A4().getVideoData());g.mB(this.h4)&&h?this.fk(h.videoId,b?h.iO:h.sessionData,h.playlistId,b,void 0,h.UW||void 0):this.Cf?this.h4.IL("onPlaylistNext"):this.getPresentingPlayerType()===3?$z(this.Ms).nextVideo():!this.playlist||KO(this.If)&&!this.h4.isFullscreen()||(this.playlist.iN(C)&&Bzl(this.playlist,tUK(this.playlist)),this.playlist.loaded?(C=b&&this.If.D("html5_player_autonav_logging"),b&&this.h4.publish("playlistautonextvideo"),this.wL(g.HS(this.playlist,void 0, +b,C),1)):this.wK=!1)}; +g.k.previousVideo=function(C){this.Cf?this.h4.IL("onPlaylistPrevious"):this.getPresentingPlayerType()===3?$z(this.Ms).wN():!this.playlist||KO(this.If)&&!this.h4.isFullscreen()||(this.playlist.xC(C)&&Bzl(this.playlist,Tzo(this.playlist)),this.playlist.loaded?this.wL(g.HS(this.playlist),1):this.wK=!1)}; +g.k.playVideoAt=function(C){this.Cf?this.h4.IL("onPlaylistIndex",C):this.playlist&&(this.playlist.loaded?this.wL(g.HS(this.playlist,C),1):this.wK=!1,Bzl(this.playlist,C))}; +g.k.getPlaylist=function(){return this.playlist}; +g.k.qQ=NW(23);g.k.k$i=function(C){this.h4.Mz("onCueRangeEnter",C.getId())}; +g.k.U8E=function(C){this.h4.Mz("onCueRangeExit",C.getId())}; +g.k.d4=function(){var C=g.uS(this.N8());C&&C.d4()}; +g.k.Z8=function(C,b,h){var N=this.gU(b);if(N){var p=this.PW();if(g.sF(p)){if(this.Ib)if(this.D("html5_ssap_enable_cpn_triggered_media_end")&&N.getPlayerType()===2&&this.Ib.tR()&&(N=this.A4()),b===1)for(var P=MV(this.Ib,p.clientPlaybackNonce),c=g.z(C),e=c.next();!e.done;e=c.next())e=e.value,e.start+=P,e.end+=P,e.Uc=P,e.N=p.clientPlaybackNonce;else if(this.D("html5_ssap_enable_cpn_triggered_media_end")&&b===2)for(this.getPresentingPlayerType(),p=g.z(C),P=p.next();!P.done;P=p.next())P.value.N=this.Ib.pI(); +p=g.z(C);for(P=p.next();!P.done;P=p.next())c=void 0,P.value.playerType=(c=b)!=null?c:1}N.Z8(C,h);b&&this.getPresentingPlayerType()!==b||vq(this,"cuerangesadded",C)}}; +g.k.qr=function(C,b){var h=this.gU(b);h&&(h.qr(C),b&&this.getPresentingPlayerType()!==b||vq(this,"cuerangesremoved",C))}; +g.k.PY=function(C){var b=this.i$()||this.A4(),h=this.getPresentingPlayerType();return this.D("html5_ssap_enable_cpn_triggered_media_end")?b.PY(h,C):b.PY(h)}; +g.k.TUp=function(){function C(){var N=b.screenLayer||(b.isMinimized()?3:0),p=g.mZ(N);if(p&&p!=="UNDEFINED_CSN"){var P=b.If.D("web_player_attach_player_response_ve"),c=b.If.D("web_playback_associated_ve");N={cpn:b.getVideoData().clientPlaybackNonce,csn:p};b.getVideoData().sX&&(P||c)&&(P=g.VB(b.getVideoData().sX),g.hu(p,P),c&&(N.playbackVe=P.getAsJson()));b.getVideoData().queueInfo&&(N.queueInfo=b.getVideoData().queueInfo);p={};b.D("web_playback_associated_log_ctt")&&b.getVideoData().W&&(p.cttAuthInfo= +{token:b.getVideoData().W,videoId:b.getVideoData().videoId});g.en("playbackAssociated",N,p)}else g.QB(new g.tJ("CSN Missing or undefined during playback association"))} +var b=this,h=this.i$();this.getPresentingPlayerType();DsH(this.DJ,h.getVideoData(),mco(this));ms(this)&&this.If.X&&f6(this.PW())==="embedded"&&this.Ej&&Math.random()<.01&&g.en("autoplayTriggered",{intentional:this.intentionalPlayback});this.Ej=!1;yYx(this.Ms);this.D("web_player_defer_ad")&&P6S(this);this.h4.IL("onPlaybackStartExternal");(this.If.D("mweb_client_log_screen_associated"),u2(this.If))||C();h={};this.getVideoData().W&&(h.cttAuthInfo={token:this.getVideoData().W,videoId:this.getVideoData().videoId}); +h.sampleRate=20;Dd("player_att",h);if(this.getVideoData().botguardData||this.D("fetch_att_independently"))g.vI(this.If)||vR(this.If)==="MWEB"?g.wU(g.bf(),function(){rR(b)}):rR(this); +this.CA();aEl(this);this.D("embeds_enable_autoplay_and_visibility_signals")&&g.$7(this.If)&&(h={autoplayBrowserPolicy:UK(),autoplayIntended:X$(this.getVideoData()),autoplayStatus:ik1(this.getVideoData(),1),cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.en("embedsAutoplayStatusChanged",h))}; +g.k.lI=function(){this.h4.publish("internalAbandon");Q_(this)}; +g.k.onApiChange=function(){var C=this.i$();this.If.J&&C?this.h4.Mz("onApiChange",C.getPlayerType()):this.h4.Mz("onApiChange")}; +g.k.grf=function(){var C=this.mediaElement;C={volume:g.kv(Math.floor(C.getVolume()*100),0,100),muted:C.lM()};C.muted||JC(this,!1);this.zx=g.J8(C);this.h4.Mz("onVolumeChange",C)}; +g.k.mutedAutoplay=function(C){var b=this.getVideoData().videoId;isNaN(this.ZS)&&(this.ZS=this.getVideoData().startSeconds);if(!this.D("embeds_enable_full_length_inline_muted_autoplay"))b&&(this.loadVideoByPlayerVars({video_id:b,playmuted:!0,start:this.ZS}),this.h4.IL("onMutedAutoplayStarts"));else if((C==null?0:C.videoId)||b)this.loadVideoByPlayerVars({video_id:(C==null?0:C.videoId)?C==null?void 0:C.videoId:b,playmuted:!0,start:this.ZS,muted_autoplay_duration_mode:C==null?void 0:C.durationMode}), +this.h4.IL("onMutedAutoplayStarts")}; +g.k.onFullscreenChange=function(){var C=AwV(this);this.AC(C?1:0);rwl(this,!!C)}; +g.k.AC=function(C){var b=!!C,h=!!this.wq()!==b;this.visibility.AC(C);this.template.AC(b);this.D("html5_media_fullscreen")&&!b&&this.mediaElement&&AwV(this)===this.mediaElement.Rb()&&this.mediaElement.Yv();this.template.resize();h&&this.DJ.tick("fsc");h&&(this.h4.publish("fullscreentoggled",b),C=this.PW(),b={fullscreen:b,videoId:C.Ln||C.videoId,time:this.getCurrentTime()},this.h4.getPlaylistId()&&(b.listId=this.h4.getPlaylistId()),this.h4.Mz("onFullscreenChange",b))}; +g.k.GI=function(){return this.visibility.GI()}; +g.k.isFullscreen=function(){return this.visibility.isFullscreen()}; +g.k.wq=function(){return this.visibility.wq()}; +g.k.r8O=function(){if(this.i$()){var C=window.screen.width*window.screen.height,b=window.outerHeight*window.outerWidth;this.D("html5_disable_pip_with_standard_api")&&(this.nW=Math.max(this.nW,C,b));var h=this.wq();h!==0&&h!==1||this.AC(AwV(this)?1:0);if(this.D("html5_pip_visibility_on_resize"))C=h!==0&&b/this.nW<.33,this.visibility.ib(C),zCl(this,C);else if(this.D("html5_disable_pip_with_standard_api"))this.ib(b/C<.33);else{var N;this.mediaElement&&((N=this.getVideoData())==null||!N.backgroundable)&& +this.If.VX&&b/C<.33&&this.mediaElement.Yv()}}}; +g.k.tf2=function(C){this.getPresentingPlayerType()!==3&&this.h4.publish("liveviewshift",C)}; +g.k.playVideo=function(C,b){this.logger.debug(function(){return"play video, player type "+C}); +var h=this.gU(C);h&&(this.appState===2?(g.d_(this.If)&&zD(this.DJ),y_(this)):g.B(h.getPlayerState(),2)?(b=36,this.getVideoData().Yw()&&(b=37),this.seekTo(0,void 0,void 0,void 0,b)):h.playVideo(!1,b))}; +g.k.pauseVideo=function(C,b){(C=this.gU(C))&&C.pauseVideo(b)}; +g.k.stopVideo=function(C){C=C===void 0?!1:C;this.logger.debug(function(){return"stop video"}); +var b=this.A4().getVideoData(),h=new g.QK(this.If,{video_id:b.Ln||b.videoId,oauth_token:b.oauthToken});h.V=g.J8(b.V);var N;!C||(N=this.webPlayerContextConfig)!=null&&N.disableStaleness||(h.TX=!0);this.cancelPlayback(6);O5(this,h,1)}; +g.k.cancelPlayback=function(C,b){var h=this;this.logger.debug(function(){return"start cancel playback, type "+b}); +var N=this.gU(b);N?b===2&&N.getPlayerType()===1&&(c$W(this.PW())||g.sF(this.getVideoData()))?N.jp("canclpb",{r:"no_adpb_ssdai"}):(this.If.tZ()&&N.jp("canclpb",{r:C}),this.appState===1||this.appState===2?this.logger.debug(function(){return"cancel playback end, app not started, state "+h.appState}):(N===this.i$()&&(this.logger.debug("cancel playback, destroy modules"),Qi(this.Ms,C)),b===1&&(N.stopVideo(),Q_(this)),N.Oc(void 0,C!==6),vq(this,"cuerangesremoved",N.l1()),N.vE.Zx.reset(),this.wu&&N.isGapless()&& +(N.Ue(!0),N.setMediaElement(this.mediaElement)))):this.logger.debug("cancel playback end, no player to cancel")}; +g.k.sendVideoStatsEngageEvent=function(C,b,h){(b=this.gU(b))&&ggx(this.If,C)?b.sendVideoStatsEngageEvent(C,h):h&&h()}; +g.k.Uq=function(C){var b=this.gU();return b&&ggx(this.If,C)?b.Uq(C):null}; +g.k.updatePlaylist=function(){!KO(this.If)&&g.$7(this.If)&&cw1(this);this.h4.IL("onPlaylistUpdate")}; +g.k.setSizeStyle=function(C,b){this.WS=C;this.D("web_log_theater_mode_visibility")?this.jz(b):this.Tg=b;this.h4.publish("sizestylechange",C,b);this.template.resize()}; +g.k.jz=function(C){this.visibility.jz(C)}; +g.k.bY=function(){return this.D("web_log_theater_mode_visibility")?this.visibility.bY():this.Tg}; +g.k.isMinimized=function(){return this.visibility.isMinimized()}; +g.k.isInline=function(){return this.visibility.isInline()}; +g.k.S1=function(){return this.visibility.S1()}; +g.k.iQ=function(){return this.visibility.iQ()}; +g.k.Lt=function(){return this.visibility.Lt()}; +g.k.Pn=function(){return this.WS}; +g.k.getAdState=function(){if(this.getPresentingPlayerType()===3)return $z(this.Ms).getAdState();if(!this.vL()){var C=UC(this.N8());if(C)return C.getAdState()}return-1}; +g.k.Mhf=function(C){var b=this.template.getVideoContentRect();ju(this.NE,b)||(this.NE=b,(b=this.i$())&&b.z7(),(b=this.A4())&&b===this.i$()&&b.z7(),this.wq()===1&&this.Pp&&rwl(this,!0));this.KW&&g.Fd(this.KW,C)||(this.h4.publish("appresize",C),this.KW=C)}; +g.k.hL=function(){return this.h4.hL()}; +g.k.Vhp=function(){this.getPresentingPlayerType()===2&&this.uf.isManifestless()?VjW(this.uf):(this.Yt&&(uaV(this.Yt),Q_(this)),iic(this,"signature"))}; +g.k.H9f=function(C){C&&iic(this,"reloadPlayerEvent",void 0,C)}; +g.k.qm=function(C){this.Ue(C);zH(this)}; +g.k.z8h=function(C){if(C.errorCode==="manifest.net.badstatus"){var b=this.If.experiments.Fo("html5_use_network_error_code_enums")?401:"401";C.details.rc===b&&this.h4.LO("onPlayerRequestAuthFailed")}}; +g.k.hD=function(C){this.h4.publish("heartbeatparams",C)}; +g.k.yZ=function(C){this.h4.LO("onAutonavChangeRequest",C!==1)}; +g.k.Q_=function(){return this.mediaElement}; +g.k.setBlackout=function(C){if(this.If.sI!==C){this.If.sI=C;var b=this.i$();b&&(b.vE.rA(),this.If.t4&&uhK(this),b.eX(C))}}; +g.k.Vf4=function(){var C=this.i$();if(C){var b=!this.h4.kW();C.K_(b)}}; +g.k.onLoadedMetadata=function(){this.h4.IL("onLoadedMetadata")}; +g.k.onDrmOutputRestricted=function(){this.h4.IL("onDrmOutputRestricted")}; +g.k.jK=function(){this.intentionalPlayback=!0}; +g.k.wO=function(){this.Ms.dispose();this.KU.dispose();this.uf.dispose();this.Yt&&this.Yt.dispose();this.YC.removeAll();this.YC.dispose();this.Ib&&this.Ib.dispose();nJ(this.A4());this.Ue();this.fv.dispose();g.Ld(this.playlist);g.O.prototype.wO.call(this)}; +g.k.D=function(C){return this.If.D(C)}; +g.k.setScreenLayer=function(C){this.screenLayer=C}; +g.k.getInternalApi=function(){return this.h4.getInternalApi()}; +g.k.createSubtitlesModuleIfNeeded=function(){return this.Ms.createSubtitlesModuleIfNeeded()}; +g.k.isOrchestrationLeader=function(){var C=KP(this.Ms);return C?C.isOrchestrationLeader():!1}; +g.k.getVideoUrl=function(C,b,h,N,p){if(this.Wb&&this.Wb.postId)return C=this.If.getVideoUrl(C),C=nb(C,"v"),C.replace("/watch","/clip/"+this.Wb.postId);var P=this.h4.isEmbedsShortsMode()||this.If.Qz==="shortspage",c=g.Tg(this.getVideoData());return this.If.getVideoUrl(C,b,h,N,p,P,c)}; +g.k.VM=function(){return this.wu.VM()}; +g.k.Q0=function(C,b,h){this.h4.publish("spsumpreject",C,b,h)}; +g.k.Ca=function(){try{for(var C=g.z(Object.values(this.fv.K)),b=C.next();!b.done;b=C.next()){var h=b.value;h.vE.HE()||h.Ca()}if(this.D("html5_sabr_fetch_on_idle_network_preloaded_players"))for(var N=g.z(AbS(this.fv.j)),p=N.next();!p.done;p=N.next()){var P=p.value;P.vE.HE()||P.Ca()}this.A4().Ca()}catch(c){g.QB(c)}}; +g.k.EJ=function(){if(this.Yt){var C=(0,g.Ai)();return this.Yt.EJ(C)}return!1}; +g.k.Jq=function(C){var b=this.A4();C&&(b=QKc(this,C));if(b){var h=b.getVideoData();C=new Map;h=g.z(h.sabrContextUpdates);for(var N=h.next();!N.done;N=h.next()){var p=g.z(N.value);N=p.next().value;p=p.next().value;var P,c;if(c=p.scope===4)(P=b)==null?P=0:(c=void 0,P=!((c=P.vE.Xo)==null||!c.N.lY.has(N))),c=P;c&&C.set(N,p)}return C}this.A4().jp("scuget",{ncpf:"1",ccpn:C})}; +var q2={};var Nwj={wg:[{Xg:/Unable to load player module/,weight:20},{Xg:/Failed to fetch/,weight:500},{Xg:/XHR API fetch failed/,weight:10},{Xg:/JSON parsing failed after XHR fetch/,weight:10},{Xg:/Retrying OnePlatform request/,weight:10},{Xg:/CSN Missing or undefined during playback association/,weight:100},{Xg:/Non-recoverable error. Do not retry./,weight:0},{Xg:/Internal Error. Retry with an exponential backoff./,weight:0},{Xg:/API disabled by application./,weight:0}],Q3:[{callback:Ucl,weight:500}]};var BZK=/[&\?]action_proxy=1/,TZH=/[&\?]token=([\w-]*)/,IEU=/[&\?]video_id=([\w-]*)/,xc6=/[&\?]index=([\d-]*)/,w3W=/[&\?]m_pos_ms=([\d-]*)/,b5W=/[&\?]vvt=([\w-]*)/,Oic="ca_type dt el flash u_tz u_his u_h u_w u_ah u_aw u_cd u_nplug u_nmime frm u_java bc bih biw brdim vis wgl".split(" "),CDo="www.youtube-nocookie.com youtube-nocookie.com www.youtube-nocookie.com:443 youtube.googleapis.com www.youtubeedu.com www.youtubeeducation.com video.google.com redirector.gvt1.com".split(" "),dcW={android:"ANDROID", +"android.k":"ANDROID_KIDS","android.m":"ANDROID_MUSIC","android.up":"ANDROID_UNPLUGGED",youtube:"WEB","youtube.m":"WEB_REMIX","youtube.up":"WEB_UNPLUGGED",ytios:"IOS","ytios.k":"IOS_KIDS","ytios.m":"IOS_MUSIC","ytios.up":"IOS_UNPLUGGED"},Wpc={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},nmK={FLAG_AUTO_CAPTIONS_DEFAULT_ON:66,FLAG_AUTOPLAY_DISABLED:140,FLAG_AUTOPLAY_EXPLICITLY_SET:141};Wq.prototype.e6=function(C){this.player.FX().tick(C)}; +Wq.prototype.fetch=function(C,b){var h=this;if(!C.match(/\[BISCOTTI_ID\]/g))return this.K(C,b);var N=this.j===1;N&&this.e6("a_bid_s");var p=Kpl();if(p!==null)return N&&this.e6("a_bid_f"),this.K(C,b,p);p=sKl();N&&zp(p,function(){h.e6("a_bid_f")}); +return p.then(function(P){return h.K(C,b,P)})}; +Wq.prototype.K=function(C,b,h){var N=this,p=b===void 0?{}:b;b=p.R1;var P=p.sG;var c=p.cueProcessedMs;h=h===void 0?"":h;var e=this.player.getVideoData(1);p=this.player.Y().A6;var L=0;if(c&&P&&!b){var Z=P.end-P.start;Z>0&&(L=Math.floor(Z/1E3))}L=b?b.YJ:L;var Y={AD_BLOCK:this.j++,AD_BREAK_LENGTH:L,AUTONAV_STATE:dR(this.player.Y()),CA_TYPE:"image",CPN:e.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.m7()*1E3,LACT:Ap(),LIVE_INDEX:b?this.N++:1,LIVE_TARGETING_CONTEXT:b&&b.context?b.context:"",MIDROLL_POS:P? +Math.round(P.start/1E3):0,MIDROLL_POS_MS:P?Math.round(P.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.Ti().xe().height,P_W:this.player.Ti().xe().width,YT_REMOTE:p?p.join(","):""},a=YG(Z1);Object.keys(a).forEach(function(F){a[F]!=null&&(Y[F.toUpperCase()]=a[F].toString())}); +h!==""&&(Y.BISCOTTI_ID=h);h={};LN(C)&&(h.sts="20131",(b=this.player.Y().forcedExperiments)&&(h.forced_experiments=b));var l=cQ(g.up(C,Y),h);return l.split("?").length!==2?SI(Error("Invalid AdBreakInfo URL")):g.BI(this.player.Y(),e==null?void 0:e.oauthToken).then(function(F){if(F&&eX()){var G=yG();rY(G,F)}F=N.player.CZ(G);G=h7_(N,l,Y,e.isMdxPlayback,c);return g.TI(F,G,"/youtubei/v1/player/ad_break").then(function(V){return V})})}; +Wq.prototype.reset=function(){this.N=this.j=1};g.S(N3l,Wq); +N3l.prototype.K=function(C,b,h){b=b===void 0?{}:b;var N=b.R1;var p=b.sG;var P=b.cueProcessedMs;h=h===void 0?"":h;b=this.j;this.j++;var c=this.player.Y().D("h5_disable_macro_substitution_in_get_ad_break")?C:gf1(this,C,{R1:N,sG:p,cueProcessedMs:P},h,b);if(c.split("?").length!==2)return Math.random()<.1&&g.QB(Error("Invalid AdBreakInfo URL")),SI(Error("Invalid AdBreakInfo URL"));var e=this.player.getVideoData(1).isMdxPlayback,L=h;h=TZH.exec(c);h=h!=null&&h.length>=2?h[1]:"";C=BZK.test(c);var Z=IEU.exec(c); +Z=Z!=null&&Z.length>=2?Z[1]:"";var Y=xc6.exec(c);Y=Y!=null&&Y.length>=2&&!Number.isNaN(Number(Y[1]))?Number(Y[1]):1;var a=w3W.exec(c);a=a!=null&&a.length>=2?a[1]:"0";var l=i2(this.player.Y().nO),F=g.xH(this.player.getVideoData(1).sX,!0);Dcx(this,F,c,L===""?"":L,this.player.Y(),this.player.getVideoData(1));L={splay:!1,lactMilliseconds:String(Ap()),playerHeightPixels:Math.trunc(this.player.Ti().xe().height),playerWidthPixels:Math.trunc(this.player.Ti().xe().width),vis:Math.trunc(this.player.getVisibilityState()), +signatureTimestamp:20131,autonavState:dR(this.player.Y())};if(e){e={};var G=this.player.Y().A6;Emc(e,G?G.join(","):"")&&(L.mdxContext=e)}if(e=CDo.includes(l)?void 0:g.KN("PREF")){G=e.split(RegExp("[:&]"));for(var V=0,q=G.length;V1&&f[1].toUpperCase()==="TRUE"){F.user.lockedSafetyMode=!0;break}}L.autoCaptionsDefaultOn=tNH(e)}c=b5W.exec(c);(c=c!=null&&c.length>=2?c[1]:"")&&Z&&(F.user.credentialTransferTokens= +[{token:c,scope:"VIDEO"}]);c={contentPlaybackContext:L};L=this.player.getVideoData(1).getGetAdBreakContext();e=this.player.getVideoData(1).clientPlaybackNonce;G=P!==void 0?Math.round(P).toString():void 0;V=(N==null?0:N.context)?N.context:void 0;q=0;P&&p&&!N&&(p=p.end-p.start,p>0&&(q=Math.floor(p/1E3)));N=(N=Math.trunc((N?N.YJ:q)*1E3))?String(N):void 0;p=this.player.m7()*1E3;p=Number.isNaN(p)?0:Math.trunc(p);b={adBlock:b,params:h,breakIndex:Y,breakPositionMs:a,clientPlaybackNonce:e,topLevelDomain:l, +isProxyAdTagRequest:C,context:F,overridePlaybackContext:c,cueProcessedMs:G,videoId:Z?Z:void 0,liveTargetingParams:V,breakLengthMs:N,driftFromHeadMs:p?String(p):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:L?L:void 0};return pdl(this,b)};var gAp={BGD:"replaceUrlMacros",rjz:"onAboutThisAdPopupClosed",QS$:"executeCommand"};PDW.prototype.ir=function(){return"adPingingEndpoint"}; +PDW.prototype.mA=function(C,b,h){sUS(this.M2.get(),C,b,h)};jUV.prototype.ir=function(){return"changeEngagementPanelVisibilityAction"}; +jUV.prototype.mA=function(C){this.Z.LO("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:C})};cS_.prototype.ir=function(){return"loggingUrls"}; +cS_.prototype.mA=function(C,b,h){C=g.z(C);for(var N=C.next();!N.done;N=C.next())N=N.value,sUS(this.M2.get(),N.baseUrl,b,h,N.attributionSrcMode)};g.S(e76,g.O);g.S(nu,g.O);g.k=nu.prototype;g.k.addListener=function(C){this.listeners.push(C)}; +g.k.removeListener=function(C){this.listeners=this.listeners.filter(function(b){return b!==C})}; +g.k.UB=function(C,b,h,N,p,P,c,e){if(C==="")ZK("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(C!==this.j||h){this.j=C;this.EX.get().UB(C,b,h,N,p,P,c,e);this.fO.get().UB(C,b,h,N,p,P,c,e);var L;(L=this.kt)==null||L.get().UB(C,b,h,N,p,P,c,e);this.K.UB(C,b,h,N,p,P,c,e);L=g.z(this.listeners);for(var Z=L.next();!Z.done;Z=L.next())Z.value.UB(C,b,h,N,p,P,c,e)}else ZK("Duplicate content video loaded signal")}; +g.k.lI=function(){this.j&&this.g8(this.j)}; +g.k.g8=function(C){this.j=void 0;for(var b=g.z(this.listeners),h=b.next();!h.done;h=b.next())h.value.g8(C)};tC.prototype.Dg=function(C,b,h,N,p){LHo(this);this.G=!b&&h===0;var P=this.Z.getVideoData(1),c=this.Z.getVideoData(2);P&&(this.contentCpn=P.clientPlaybackNonce,this.videoId=P.videoId,this.j=P.W);c&&(this.adCpn=c.clientPlaybackNonce,this.adVideoId=c.videoId,this.adFormat=c.adFormat);this.X=C;N<=0?(LHo(this),this.G=!b&&h===0):(this.actionType=this.G?b?"unknown_type":"video_to_ad":b?"ad_to_video":"ad_to_ad",this.videoStreamType=p?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& +(this.N=!0,d8("_start",this.actionType)&&aeK(this)))}; +tC.prototype.reset=function(){return new tC(this.Z)};g.S(TH,g.O);TH.prototype.addCueRange=function(C,b,h,N,p,P,c){P=P===void 0?3:P;c=c===void 0?1:c;this.j.has(C)?ZK("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:C}):(C=new leS(C,b,h,N,P),this.j.set(C.id,{sG:C,listener:p,MG:c}),this.Z.A8([C],c))}; +TH.prototype.removeCueRange=function(C){var b=this.j.get(C);b?(this.Z.AR([b.sG],b.MG),this.j.delete(b.sG.id)):ZK("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:C})}; +TH.prototype.onCueRangeEnter=function(C){if(this.j.has(C.id))this.j.get(C.id).listener.onCueRangeEnter(C.id)}; +TH.prototype.onCueRangeExit=function(C){if(this.j.has(C.id))this.j.get(C.id).listener.onCueRangeExit(C.id)}; +g.S(leS,g.Ny);Bq.prototype.wC=function(C){this.Z.wC(C)}; +Bq.prototype.DQ=function(C){var b=g.ro.apply(1,arguments);C==="onAdStart"||C==="onAdEnd"?this.Z.Mz.apply(this.Z,[C].concat(g.M(b))):this.Z.LO.apply(this.Z,[C].concat(g.M(b)))};I7.prototype.aD=function(C){return C&&xF(this)};var MC6=null;g.S(VC_,g.cr);VC_.prototype.hq=function(C){return this.j.hasOwnProperty(C)?this.j[C].hq():{}}; +g.Ol("ytads.bulleit.getVideoMetadata",function(C){return wR().hq(C)}); +g.Ol("ytads.bulleit.triggerExternalActivityEvent",function(C,b,h){var N=wR();h=H5c(h);h!==null&&N.publish(h,{queryId:C,viewabilityString:b})});g.k=Cz.prototype;g.k.I$=function(C,b){if(!this.j.has(C))return{};if(b==="seek"){b=this.Z.Y().D("html5_dai_enable_active_view_creating_completed_adblock");b=b===void 0?!1:b;var h=Ag(Mv).Ub(C,{});h?V1(h):b&&(C=Ag(Mv).xD(null,n9(),!1,C),C.Ys=3,EkW([C]));return{}}b=mz6(b);if(b===null)return{};var N=this.Z.uP();if(!N)return{};var p=this.Z.getPresentingPlayerType(!0);if((h=this.Z.getVideoData(p))==null||!h.isAd())return{};h={opt_adElement:N,opt_fullscreen:this.EX.get().isFullscreen()};return EuW(b,C,h)}; +g.k.XP=function(C,b,h,N,p){this.j.has(C)&&(N<=0||p<=0||Ag(Mv).XP(C,b,h,N,p))}; +g.k.Sb=function(C){var b;(b=this.j.get(C.queryId))==null||b.Sb()}; +g.k.uq=function(C){var b;(b=this.j.get(C.queryId))==null||b.uq()}; +g.k.Yb=function(C){var b;(b=this.j.get(C.queryId))==null||b.Yb()}; +g.k.bq=function(C){var b;(b=this.j.get(C.queryId))==null||b.bq()}; +g.k.iq=function(C){var b;(b=this.j.get(C.queryId))==null||b.iq()};R7V.prototype.send=function(C,b,h,N){try{QU1(this,C,b,h,N===void 0?!1:N)}catch(p){}};g.S(Uzc,R7V);Xd_.prototype.send=function(C,b,h,N){var p=!1;try{if(N==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||N==="ATTRIBUTION_SRC_MODE_XHR_OPTION")p=!0,C=ZNV(C);N=p;var P=C.match(Qh);if(P[1]==="https")var c=C;else P[1]="https",c=ih("https",P[2],P[3],P[4],P[5],P[6],P[7]);var e=pco(c);P=[];var L=IRx(c)&&this.Zf.get().Z.Y().experiments.Fo("add_auth_headers_to_remarketing_google_dot_com_ping");if(LN(c)||L)P.push({headerType:"USER_AUTH"}),P.push({headerType:"PLUS_PAGE_ID"}),P.push({headerType:"VISITOR_ID"}),P.push({headerType:"EOM_VISITOR_ID"}), +P.push({headerType:"AUTH_USER"}),P.push({headerType:"DATASYNC_ID"});this.j.send({baseUrl:c,scrubReferrer:e,headers:P},b,h,N)}catch(Z){}};pz.prototype.Uq=function(){return this.Z.Uq(1)};g.S(Py,g.O);g.k=Py.prototype;g.k.fI=function(){return this.Z.getVideoData(1).clientPlaybackNonce}; +g.k.addListener=function(C){this.listeners.push(C)}; +g.k.removeListener=function(C){this.listeners=this.listeners.filter(function(b){return b!==C})}; +g.k.UB=function(){this.f0.clear();this.wY=null;this.gg.get().clear()}; +g.k.g8=function(){}; +g.k.Wwf=function(C,b,h,N,p){b.videoId==="nPpU29QrbiU"&&this.Z.jp("ads_ssm_vdc_s",{pt:h,dvt:C});aa(this.Zf.get())&&C!=="dataloaded"||nfc(this,b,h);if(xF(this.Zf.get())&&C==="newdata"&&p!==void 0){C=this.fI();var P=b.clientPlaybackNonce,c={};SZ(this,"rte",(c.ec=P,c.xc=N==null?void 0:N.clientPlaybackNonce,c.tr=p,c.pt=h,c.ia=P!==C,c.ctp=Gy(P),c));b=b.clientPlaybackNonce;N=N==null?void 0:N.clientPlaybackNonce;p=tCK(p);if(p!==1)if(N!==void 0)for(h=g.z(this.listeners),C=h.next();!C.done;C=h.next())C.value.MX(N, +b,p);else ZK("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:b,transitionReason:String(p)});p=g.z(this.listeners);for(N=p.next();!N.done;N=p.next())N.value.yv(b)}}; +g.k.Lkf=function(C,b){C!==void 0&&(this.wY=C,b===void 0?ZK("Expected ad video start time on SS video changed"):this.f0.set(C,b));var h=this.Z.getPresentingPlayerType(!0),N=this.Z.getVideoData(h);this.Z.getVideoData(1).jp("ads_ssvc",{pt:h,cpn:N==null?void 0:N.clientPlaybackNonce,crtt:this.Z.getCurrentTime(1,!1),atlh:this.Z.isAtLiveHead(),adstt:b});N?nfc(this,N,h):ZK("Expected video data on server stitched video changed",void 0,void 0,{cpn:this.Z.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:C})}; +g.k.Hy=function(C,b){var h=C.author,N=C.clientPlaybackNonce,p=C.isListed,P=C.v7,c=C.title,e=C.sB,L=C.OB,Z=C.isMdxPlayback,Y=C.KS,a=C.mdxEnvironment,l=C.isAutonav,F=C.qG,G=C.LZ,V=C.Lk,q=C.videoId||"",f=C.profilePicture||"",y=C.w8||"",u=C.Yw()||!1,K=C.qz()||!1;C=C.BC||void 0;P=this.gg.get().j.get(P)||{layoutId:null,slotId:null};var v=this.Z.getVideoData(1),T=v.yV();v=v.getPlayerResponse();b=1E3*this.Z.getDuration(b);var t=1E3*this.Z.getDuration(1),go,jV,CW=(v==null?void 0:(go=v.playerConfig)==null? +void 0:(jV=go.daiConfig)==null?void 0:jV.enableDai)||!1,W,w;go=(v==null?void 0:(W=v.playerConfig)==null?void 0:(w=W.daiConfig)==null?void 0:w.enablePreroll)||!1;return Object.assign({},P,{videoId:q,author:h,clientPlaybackNonce:N,vD:b,l5:t,daiEnabled:CW,f8:go,isListed:p,yV:T,profilePicture:f,title:c,w8:y,sB:e,OB:L,BC:C,isMdxPlayback:Z,KS:Y,mdxEnvironment:a,isAutonav:l,qG:F,LZ:G,Lk:V,Yw:u,qz:K})}; +g.k.wO=function(){this.listeners.length=0;this.xP=null;g.O.prototype.wO.call(this)};g.S(j7,g.O);g.k=j7.prototype;g.k.UB=function(){var C=this;xF(this.Zf.get())||(this.j=a9(function(){C.Z.HE()||C.Z.HL("ad",1)}))}; +g.k.g8=function(){}; +g.k.addListener=function(C){this.listeners.push(C)}; +g.k.removeListener=function(C){this.listeners=this.listeners.filter(function(b){return b!==C})}; +g.k.kS=function(){}; +g.k.playVideo=function(){this.Z.playVideo()}; +g.k.pauseVideo=function(){this.Z.pauseVideo()}; +g.k.resumeVideo=function(C){this.eJ(C)&&this.Z.playVideo()}; +g.k.eJ=function(C){return this.Z.getPlayerState(C)===2}; +g.k.getCurrentTimeSec=function(C,b,h){var N=this.fO.get().wY;if(C===2&&!b&&N!==null)return B3c(this,N);tc(this.Zf.get(),"html5_ssap_use_cpn_to_get_time")||(h=void 0);return h!==void 0?this.Z.getCurrentTime(C,b,h):this.Z.getCurrentTime(C,b)}; +g.k.getVolume=function(){return this.Z.getVolume()}; +g.k.isMuted=function(){return this.Z.isMuted()}; +g.k.getPresentingPlayerType=function(){return this.Z.getPresentingPlayerType(!0)}; +g.k.getPlayerState=function(C){return this.Z.getPlayerState(C)}; +g.k.isFullscreen=function(){return this.Z.isFullscreen()}; +g.k.isAtLiveHead=function(){return this.Z.isAtLiveHead()}; +g.k.TI=function(C){this.Z.TI(C)}; +g.k.qGp=function(){var C=this.Z.getPresentingPlayerType(!0),b=this.getCurrentTimeSec(C,!1);if(C===2){C=g.z(this.listeners);for(var h=C.next();!h.done;h=C.next())h.value.SQ(b)}else if(C===1)for(C=g.z(this.oH),h=C.next();!h.done;h=C.next())h.value.kS(b)}; +g.k.N9f=function(C){for(var b=g.z(this.listeners),h=b.next();!h.done;h=b.next())h.value.UR(C,this.getPresentingPlayerType())}; +g.k.onFullscreenToggled=function(C){for(var b=g.z(this.listeners),h=b.next();!h.done;h=b.next())h.value.onFullscreenToggled(C)}; +g.k.onVolumeChange=function(){for(var C=g.z(this.listeners),b=C.next();!b.done;b=C.next())b.value.onVolumeChange()}; +g.k.pX=function(){for(var C=this.Z.isMinimized(),b=g.z(this.listeners),h=b.next();!h.done;h=b.next())h.value.pX(C)}; +g.k.Pi=function(C){for(var b=g.z(this.listeners),h=b.next();!h.done;h=b.next())h.value.Pi(C)}; +g.k.eC=function(){for(var C=this.Z.Ti().xe(),b=g.z(this.listeners),h=b.next();!h.done;h=b.next())h.value.xw(C)}; +g.k.Lf=function(C){for(var b=g.z(this.listeners),h=b.next();!h.done;h=b.next())h.value.Lf(C)}; +g.k.Tn=function(){for(var C=g.z(this.listeners),b=C.next();!b.done;b=C.next())b.value.Tn()};g.S(wdx,g.O);g.S(Z4,g.O);Z4.prototype.wO=function(){this.IM.HE()||this.IM.get().removeListener(this);g.O.prototype.wO.call(this)};Y$.prototype.fetch=function(C){var b=C.cJ;return this.j.fetch(C.X7,{R1:C.R1===void 0?void 0:C.R1,sG:b,cueProcessedMs:C.cueProcessedMs===void 0?0:C.cueProcessedMs}).then(function(h){return CmW(h,b)})};g.S(as,g.O);g.k=as.prototype;g.k.addListener=function(C){this.listeners.push(C)}; +g.k.removeListener=function(C){this.listeners=this.listeners.filter(function(b){return b!==C})}; +g.k.Oh=function(C){b7W(this,C,1)}; +g.k.onAdUxClicked=function(C,b){lQ(this,function(h){h.sR(C,b)})}; +g.k.S_=function(C){lQ(this,function(b){b.w7(C)})}; +g.k.uu=function(C){lQ(this,function(b){b.XJ(C)})}; +g.k.ggf=function(C){lQ(this,function(b){b.Ob(C)})};os.prototype.reduce=function(C){switch(C.event){case "unknown":return}var b=C.identifier;var h=this.j[b];h?b=h:(h={H8:null,wc:-Infinity},b=this.j[b]=h);h=C.startSecs+C.j/1E3;if(!(h=this.j.startSecs&&h.startSecs<=this.j.startSecs+this.j.YJ)){var N=void 0;z7V(this.Zf.get())&&h.identifier!==((N=this.j)==null?void 0:N.identifier)&& +x4(this.M2.get(),"ocud","cpi."+h.identifier+";cpe."+h.event+";cps."+h.startSecs+";");N=void 0;h.identifier!==((N=this.j)==null?void 0:N.identifier)&&ZK("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.j=h,gPc(this,h)}}; +g.k.wO=function(){this.K!=null&&(this.K.unsubscribe("cuepointupdated",this.Ps,this),this.K=null);this.listeners.length=0;this.Gm.length=0;g.O.prototype.wO.call(this)};Gr.prototype.addPlayerResponseForAssociation=function(C){this.Z.addPlayerResponseForAssociation(C)};g.k=$$.prototype;g.k.ev=function(C,b,h,N,p,P,c){return this.Z.ev(C,b,h,N,p,P,c)}; +g.k.yu=function(C,b){this.Z.yu(C,b)}; +g.k.sC=function(C,b,h){this.Z.sC(C,b,h)}; +g.k.Jp=function(C){this.Z.Jp(C)}; +g.k.uh=function(C,b,h,N,p,P,c){this.Z.uh(C,b,h,N,p,P,c)}; +g.k.WK=function(C){return this.Z.WK(C)}; +g.k.finishSegmentByCpn=function(C,b,h){h=cfl(h);this.Z.finishSegmentByCpn(C,b,h)};g.S(e0l,g.O);g.S(LL_,g.O);g.S(Z7V,g.O);g.S(Yto,g.O);g.S(aWo,g.O);g.S(oPH,g.O);oPH.prototype.N=function(){return this.K};g.S(FLV,dK); +FLV.prototype.X=function(C){var b=C.content;if(b.componentType==="shopping-companion")switch(C.actionType){case 1:case 2:C=this.j.getVideoData(1);this.j.LO("updateKevlarOrC3Companion",{contentVideoId:C&&C.videoId,shoppingCompanionCarouselRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});break;case 3:this.j.LO("updateKevlarOrC3Companion",{})}else if(b.componentType==="action-companion")switch(C.actionType){case 1:case 2:C=this.j.getVideoData(1); +this.j.LO("updateKevlarOrC3Companion",{contentVideoId:C&&C.videoId,actionCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});break;case 3:b.renderer&&(b=this.j.getVideoData(1),this.j.LO("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.j.LO("updateKevlarOrC3Companion",{})}else if(b.componentType==="image-companion")switch(C.actionType){case 1:case 2:C=this.j.getVideoData(1);this.j.LO("updateKevlarOrC3Companion", +{contentVideoId:C&&C.videoId,imageCompanionAdRenderer:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});break;case 3:b=this.j.getVideoData(1),this.j.LO("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.j.LO("updateKevlarOrC3Companion",{})}else if(b.componentType==="top-banner-image-text-icon-buttoned")switch(C.actionType){case 1:case 2:C=this.j.getVideoData(1);this.j.LO("updateKevlarOrC3Companion", +{contentVideoId:C&&C.videoId,topBannerImageTextIconButtonedLayoutViewModel:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});break;case 3:b.renderer&&(b=this.j.getVideoData(1),this.j.LO("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId})),this.j.LO("updateKevlarOrC3Companion",{})}else if(b.componentType==="banner-image")switch(C.actionType){case 1:case 2:C=this.j.getVideoData(1);this.j.LO("updateKevlarOrC3Companion", +{contentVideoId:C&&C.videoId,bannerImageLayoutViewModel:b.renderer,layoutId:b.layoutId,macros:b.macros,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});break;case 3:b=this.j.getVideoData(1),this.j.LO("updateKevlarOrC3Companion",{contentVideoId:b&&b.videoId}),this.j.LO("updateKevlarOrC3Companion",{})}else if(b.componentType==="ads-engagement-panel")switch(b=b.renderer,C.actionType){case 1:case 2:this.j.LO("updateEngagementPanelAction",b.addAction);this.j.LO("changeEngagementPanelVisibility", +b.expandAction);break;case 3:this.j.LO("changeEngagementPanelVisibility",b.hideAction),this.j.LO("updateEngagementPanelAction",b.removeAction)}else if(b.componentType==="ads-engagement-panel-layout"){var h=b.renderer;switch(C.actionType){case 1:case 2:this.j.LO("updateEngagementPanelAction",{action:sr(h.addAction),layoutId:b.layoutId,onLayoutVisibleCallback:b.j,interactionLoggingClientData:b.interactionLoggingClientData});this.j.LO("changeEngagementPanelVisibility",sr(h.expandAction));break;case 3:this.j.LO("changeEngagementPanelVisibility", +sr(h.hideAction)),this.j.LO("updateEngagementPanelAction",{action:sr(h.removeAction)})}}};g.S(GTS,xY);g.k=GTS.prototype;g.k.init=function(C,b,h){xY.prototype.init.call(this,C,b,h);g.Zv(this.N,"stroke-dasharray","0 "+this.K);this.N.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.W.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.X.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; +g.k.clear=function(){this.hide()}; +g.k.hide=function(){CF(this);xY.prototype.hide.call(this)}; +g.k.show=function(){wK(this);xY.prototype.show.call(this)}; +g.k.P5=function(){this.hide()}; +g.k.TC=function(){if(this.j){var C=this.j.getProgressState();C!=null&&C.current!=null&&g.Zv(this.N,"stroke-dasharray",C.current/C.seekableEnd*this.K+" "+this.K)}};g.S(StU,aS);g.k=StU.prototype; +g.k.init=function(C,b,h){aS.prototype.init.call(this,C,b,h);if(b.image&&b.image.thumbnail)if(b.headline)if(b.description)if(b.backgroundImage&&b.backgroundImage.thumbnail)if(b.actionButton&&g.d(b.actionButton,g.yM))if(C=b.durationMilliseconds||0,typeof C!=="number"||C<=0)g.Ri(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+C));else if(b.navigationEndpoint){var N=this.api.getVideoData(2);if(N!=null){var p=b.image.thumbnail.thumbnails;p!=null&& +p.length>0&&g.qp(g.w2(p[0].url))&&(p[0].url=N.profilePicture,g.qp(g.w2(N.profilePicture))&&b_l("VideoPlayer",239976093,"Expected non-empty profile picture."));p=b.backgroundImage.thumbnail.thumbnails;p!=null&&p.length>0&&g.qp(g.w2(p[0].url))&&(p[0].url=N.Q6());p=b.headline;p!=null&&g.qp(g.w2(p.text))&&(p.text=N.author)}this.V.init(Pr("ad-image"),b.image,h);this.W.init(Pr("ad-text"),b.headline,h);this.N.init(Pr("ad-text"),b.description,h);this.CO.init(Pr("ad-image"),b.backgroundImage,h);N=["ytp-ad-action-interstitial-action-button", +"ytp-ad-action-interstitial-action-button-rounded"];this.slot.classList.add("ytp-ad-action-interstitial-slot-dark-background");this.W.element.classList.add("ytp-ad-action-interstitial-headline-light");this.N.element.classList.add("ytp-ad-action-interstitial-description-light");N.push("ytp-ad-action-interstitial-action-button-dark");this.api.Y().K&&(N.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"),N.push("ytp-ad-action-interstitial-action-button-dark"));this.api.Y().D("enable_unified_action_endcap_on_web")&& +!this.api.Y().K&&(N.push("ytp-ad-action-interstitial-action-button-unified"),this.Yh.classList.add("ytp-ad-action-interstitial-action-button-container-unified"),this.V.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.kh.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.U_.classList.add("ytp-ad-action-interstitial-card-unified"),this.N2.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.N.element.classList.add("ytp-ad-action-interstitial-description-unified"), +this.sX.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.W.element.classList.add("ytp-ad-action-interstitial-headline-unified"),this.Df.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.rO.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new Ju(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,N);g.D(this,this.actionButton);this.actionButton.Gi(this.Yh); +this.actionButton.init(Pr("button"),g.d(b.actionButton,g.yM),h);nU(this.actionButton.element);N=BD(this.actionButton.element);Tq(this.actionButton.element,N+" This link opens in new tab");this.navigationEndpoint=b.navigationEndpoint;this.X.S(this.Df,"click",this.Ao,this);this.X.S(this.N2,"click",this.Ao,this);!this.api.Y().D("enable_clickable_headline_for_action_endcap_on_mweb")&&this.api.Y().K||this.X.S(this.sX,"click",this.Ao,this);this.j=this.Rd?new HX(this.api,C):new Vt(C);g.D(this,this.j);if(b.skipButton){(C= +g.d(b.skipButton,GeI))&&this.j&&(this.skipButton=new ox(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,this.j,this.Tq),g.D(this,this.skipButton),this.skipButton.Gi(this.element),this.skipButton.init(Pr("skip-button"),C,h));h=this.api.D("disable_ad_preview_for_instream_ads");if(C=b.adBadgeRenderer)if(C=g.d(C,Fhp))N=new $H(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,!0,h),N.Gi(this.rO),N.init(Pr("simple-ad-badge"),C,this.macros),g.D(this,N);if(C=b.adInfoRenderer)if(C= +g.d(C,fG))h=new TY(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,this.element,void 0,h),h.Gi(this.rO),h.init(Pr("ad-info-hover-text-button"),C,this.macros),g.D(this,h)}else b.nonskippableOverlayRenderer&&(C=g.d(b.nonskippableOverlayRenderer,Aa))&&this.j&&(this.K=new Nj(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,this.j,!1),g.D(this,this.K),this.K.Gi(this.element),this.K.init(Pr("ad-preview"),C,h));b.countdownRenderer&&(b=b.countdownRenderer,g.d(b,SEE)&&this.j&& +(h=new GTS(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,this.j),g.D(this,h),h.Gi(this.element),h.init(Pr("timed-pie-countdown"),g.d(b,SEE),this.macros)));this.show();this.element.focus()}else g.Ri(Error("AdActionInterstitialRenderer has no navigation endpoint."));else g.Ri(Error("AdActionInterstitialRenderer has no button."));else g.Ri(Error("AdActionInterstitialRenderer has no background AdImage."));else g.Ri(Error("AdActionInterstitialRenderer has no description AdText."));else g.Ri(Error("AdActionInterstitialRenderer has no headline AdText.")); +else g.Ri(Error("AdActionInterstitialRenderer has no image."))}; +g.k.clear=function(){g.rU(this.X);this.hide()}; +g.k.show=function(){$hK(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.K&&this.K.show();aS.prototype.show.call(this)}; +g.k.hide=function(){$hK(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.K&&this.K.hide();aS.prototype.hide.call(this)}; +g.k.Ao=function(){this.navigationEndpoint&&(this.layoutId?this.Sp.executeCommand(this.navigationEndpoint,this.layoutId):g.Ri(Error("Missing layoutId for ad action interstitial.")))};var qt6={iconType:"CLOSE"},Mq=new g.oV(320,63);g.S(MGS,aS);g.k=MGS.prototype; +g.k.init=function(C,b,h){aS.prototype.init.call(this,C,b,h);this.X=b;this.V=g.NI(this.X.onClickCommands||[]);this.rO=this.X.onErrorCommand||null;if(C=this.X.contentSupportedRenderer)C=this.X.contentSupportedRenderer,b=this.X.adInfoRenderer||null,g.d(C,aUE)?(this.W=g.Ei("ytp-ad-overlay-ad-info-button-container",this.N.element),mhl(this,b),C=AfS(this,g.d(C,aUE))):g.d(C,lUD)?(this.W=g.Ei("ytp-ad-overlay-ad-info-button-container",this.K.element),mhl(this,b),C=yfW(this,g.d(C,lUD))):g.d(C,oIC)?(this.W= +g.Ei("ytp-ad-overlay-ad-info-button-container",this.j.element),mhl(this,b),C=rfc(this,g.d(C,oIC))):(g.Ri(Error("InvideoOverlayAdRenderer content could not be initialized.")),C=!1);C&&(this.show(),i7l(this,!0))}; +g.k.clear=function(){i7l(this,!1);this.Df.reset();this.N2=0;this.N.hide();this.logVisibility(this.N.element,!1);this.K.hide();this.logVisibility(this.K.element,!1);this.j.hide();this.logVisibility(this.j.element,!1);this.hide();this.dispose()}; +g.k.XFO=function(){this.Yh&&(this.layoutId?this.Sp.executeCommand(this.Yh,this.layoutId):g.Ri(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; +g.k.Gf=function(){a:{if(this.X&&this.X.closeButton&&this.X.closeButton.buttonRenderer){var C=this.X.closeButton.buttonRenderer;if(C.serviceEndpoint){C=[C.serviceEndpoint];break a}}C=[]}C=g.z(C);for(var b=C.next();!b.done;b=C.next())b=b.value,this.layoutId?this.Sp.executeCommand(b,this.layoutId):g.Ri(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; +g.k.YIf=function(){this.CO||this.api.getPlayerState(1)!==2||this.api.playVideo()}; +g.k.sT=function(){this.CO||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.sT("invideo-overlay")}; +g.k.m8O=function(C){C.target===this.W&&g.Ei("ytp-ad-button",this.kh.element).click()};g.S(Jf6,xY);g.k=Jf6.prototype;g.k.init=function(C,b,h){xY.prototype.init.call(this,C,b,h);C=b.durationMs;this.N=C==null||C===0?0:C+this.j.getProgressState().current*1E3;if(b.text)var N=b.text.templatedAdText;else b.staticMessage&&(N=b.staticMessage);this.messageText.init(Pr("ad-text"),N,h);this.messageText.Gi(this.K.element);this.X.show(100);this.show()}; +g.k.clear=function(){this.hide()}; +g.k.hide=function(){uvU(this,!1);xY.prototype.hide.call(this);this.K.hide();this.messageText.hide();CF(this)}; +g.k.show=function(){uvU(this,!0);xY.prototype.show.call(this);wK(this);this.K.show();this.messageText.show()}; +g.k.P5=function(){this.hide()}; +g.k.TC=function(){if(this.j!=null){var C=this.j.getProgressState();C!=null&&C.current!=null&&(C=1E3*C.current,!this.N2&&C>=this.N?(this.X.hide(),this.N2=!0):this.messageText&&this.messageText.isTemplated()&&(C=Math.max(0,Math.ceil((this.N-C)/1E3)),C!==this.W&&(IS(this.messageText,{TIME_REMAINING:String(C)}),this.W=C)))}};g.S(R0W,aS);g.k=R0W.prototype; +g.k.init=function(C,b,h){aS.prototype.init.call(this,C,b,{});b.image&&b.image.thumbnail?b.headline?b.description?b.actionButton&&g.d(b.actionButton,g.yM)?(this.N.init(Pr("ad-image"),b.image,h),this.K.init(Pr("ad-text"),b.headline,h),this.X.init(Pr("ad-text"),b.description,h),C=["ytp-ad-underlay-action-button"],this.api.Y().D("use_blue_buttons_for_desktop_player_underlay")&&C.push("ytp-ad-underlay-action-button-blue"),this.actionButton=new Ju(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp, +C),b.backgroundColor&&g.Zv(this.element,"background-color",g.O8(b.backgroundColor)),g.D(this,this.actionButton),this.actionButton.Gi(this.W),this.actionButton.init(Pr("button"),g.d(b.actionButton,g.yM),h),b=g.Zc(this.api.Y().experiments,"player_underlay_video_width_fraction"),this.api.Y().D("place_shrunken_video_on_left_of_player")?(h=this.j,g.e6(h,"ytp-ad-underlay-left-container"),g.c4(h,"ytp-ad-underlay-right-container"),g.Zv(this.j,"margin-left",Math.round((b+.02)*100)+"%")):(h=this.j,g.e6(h,"ytp-ad-underlay-right-container"), +g.c4(h,"ytp-ad-underlay-left-container")),g.Zv(this.j,"width",Math.round((1-b-.04)*100)+"%"),this.api.mQ()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.gj.bind(this)),this.api.addEventListener("resize",this.mO.bind(this))):g.Ri(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.Ri(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.Ri(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.Ri(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; +g.k.show=function(){QrK(!0);this.actionButton&&this.actionButton.show();aS.prototype.show.call(this)}; +g.k.hide=function(){QrK(!1);this.actionButton&&this.actionButton.hide();aS.prototype.hide.call(this)}; +g.k.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.gj.bind(this));this.api.removeEventListener("resize",this.mO.bind(this));this.hide()}; +g.k.onClick=function(C){aS.prototype.onClick.call(this,C);this.actionButton&&g.PP(this.actionButton.element,C.target)&&this.api.pauseVideo()}; +g.k.gj=function(C){C==="transitioning"?(this.j.classList.remove("ytp-ad-underlay-clickable"),this.show()):C==="visible"?this.j.classList.add("ytp-ad-underlay-clickable"):C==="hidden"&&(this.hide(),this.j.classList.remove("ytp-ad-underlay-clickable"))}; +g.k.mO=function(C){C.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):C.width>875?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-medium"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large")):(this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")); +g.Zv(this.K.element,"font-size",C.width/40+"px")};g.S(qq,aS); +qq.prototype.init=function(C,b,h){aS.prototype.init.call(this,C,b,h);b.toggledLoggingParams&&(this.toggledLoggingParams=b.toggledLoggingParams);b.answer&&g.d(b.answer,g.yM)?(C=new Ju(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),C.Gi(this.answer),C.init(Pr("ytp-ad-survey-answer-button"),g.d(b.answer,g.yM),h),C.show()):b.answer&&g.d(b.answer,$N)&&(this.j=new vr(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp, +["ytp-ad-survey-answer-toggle-button"]),this.j.Gi(this.answer),g.D(this,this.j),this.j.init(Pr("survey-answer-button"),g.d(b.answer,$N),h));this.show()}; +qq.prototype.QL=function(C){this.layoutId?Wk(this.Sp,C,this.layoutId,this.macros):g.Ri(new g.tJ("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}))}; +qq.prototype.onClick=function(C){aS.prototype.onClick.call(this,C);if(this.api.Y().D("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; +qq.prototype.clear=function(){this.hide()};g.S(UhH,aS);UhH.prototype.init=function(C,b,h){aS.prototype.init.call(this,C,b,h);b.answer&&g.d(b.answer,$N)&&(this.button=new vr(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.Gi(this.j),this.button.init(Pr("survey-none-of-the-above-button"),g.d(b.answer,$N),h));this.show()};g.S(mc,Ju);mc.prototype.init=function(C,b,h){Ju.prototype.init.call(this,C,b,h);C=!1;b.text&&(b=g.oS(b.text),C=!g.qp(b));C||g.QB(Error("No submit text was present in the renderer."))}; +mc.prototype.onClick=function(C){this.publish("l");Ju.prototype.onClick.call(this,C)};g.S(fz,aS); +fz.prototype.init=function(C,b,h){aS.prototype.init.call(this,C,b,h);if(C=b.skipOrPreviewRenderer)g.d(C,hv)?(C=g.d(C,hv),h=new Gv(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,this.X,!0),h.Gi(this.skipOrPreview),h.init(Pr("skip-button"),C,this.macros),g.D(this,h),this.j=h):g.d(C,Aa)&&(C=g.d(C,Aa),h=new Nj(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,this.X,!1),h.Gi(this.skipOrPreview),h.init(Pr("ad-preview"),C,this.macros),gG(h),g.D(this,h),this.j=h);this.j== +null&&g.Ri(Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(b)));b.submitButton&&(C=b.submitButton,g.d(C,g.yM)&&(C=g.d(C,g.yM),h=new mc(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp),h.Gi(this.submitButton),h.init(Pr("survey-submit"),C,this.macros),g.D(this,h),this.K=h));C=this.api.D("disable_ad_preview_for_instream_ads");if(h=b.adBadgeRenderer){h=g.d(h,Fhp);var N=new $H(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,!0, +C,!0);N.Gi(this.N);N.init(Pr("simple-ad-badge"),h,this.macros);this.adBadge=N.element;g.D(this,N)}if(h=b.adDurationRemaining)h=g.d(h,Lhd),N=new mM(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,this.X,void 0,C),N.Gi(this.N),N.init(Pr("ad-duration-remaining"),h,this.macros),g.D(this,N);(b=b.adInfoRenderer)&&g.d(b,fG)&&(h=new TY(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,this.element,void 0,C),g.D(this,h),C&&this.adBadge!==void 0?this.N.insertBefore(h.element, +this.adBadge.nextSibling):h.Gi(this.N),h.init(Pr("ad-info-hover-text-button"),g.d(b,fG),this.macros));this.show()}; +fz.prototype.clear=function(){this.hide()};g.S(AG,aS);AG.prototype.init=function(C,b,h){aS.prototype.init.call(this,C,b,h);vPH(this)}; +AG.prototype.show=function(){this.N=Date.now();aS.prototype.show.call(this)}; +AG.prototype.M6=function(){};g.S(Dhc,AG);g.k=Dhc.prototype;g.k.init=function(C,b,h){var N=this;AG.prototype.init.call(this,C,b,h);b.questionText&&X0W(this,b.questionText);b.answers&&b.answers.forEach(function(p,P){g.d(p,GR)&&KL1(N,g.d(p,GR),h,P)}); +this.W=new Set(this.K.map(function(p){return p.j.j})); +(C=b.noneOfTheAbove)&&(C=g.d(C,YEj))&&dh1(this,C,h);b.surveyAdQuestionCommon&&O7x(this,b.surveyAdQuestionCommon);b.submitEndpoints&&(this.submitEndpoints=b.submitEndpoints);this.S(this.element,"change",this.onChange);this.show()}; +g.k.M6=function(){WLo(this,!1);this.X.K.subscribe("l",this.KwX,this)}; +g.k.onChange=function(C){C.target===this.noneOfTheAbove.button.j?EPl(this):this.W.has(C.target)&&(this.noneOfTheAbove.button.toggleButton(!1),WLo(this,!0))}; +g.k.KwX=function(){var C=[],b=this.K.reduce(function(p,P,c){var e=P.toggledLoggingParams;P.j&&P.j.isToggled()&&e&&(p.push(e),C.push(c));return p},[]).join("&"),h=this.submitEndpoints.map(function(p){if(!p.loggingUrls)return p; +p=g.uF(p);p.loggingUrls=p.loggingUrls.map(function(P){P.baseUrl&&(P.baseUrl=Wt(P.baseUrl,b));return P}); +return p}); +if(h){h=g.z(h);for(var N=h.next();!N.done;N=h.next())N=N.value,this.layoutId?Wk(this.Sp,N,this.layoutId,this.macros):g.Ri(Error("Missing layoutId for multi_select_question."))}this.api.Y().D("supports_multi_step_on_desktop")&&this.N2(C)}; +g.k.clear=function(){this.api.Y().D("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.S(yI,AG);yI.prototype.init=function(C,b,h){var N=this;AG.prototype.init.call(this,C,b,h);b.questionText&&X0W(this,b.questionText);b.answers&&b.answers.forEach(function(p,P){g.d(p,GR)&&KL1(N,g.d(p,GR),h,P)}); +b.surveyAdQuestionCommon?O7x(this,b.surveyAdQuestionCommon):g.Ri(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(b)));this.show()}; +yI.prototype.clear=function(){this.api.Y().D("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.S(ry,aS);ry.prototype.init=function(C,b,h){var N=this;aS.prototype.init.call(this,C,b,h);if(this.api.Y().D("supports_multi_step_on_desktop")){var p;this.conditioningRules=(p=b.conditioningRules)!=null?p:[];var P;this.K=(P=b.questions)!=null?P:[];var c;((c=b.questions)==null?0:c.length)&&BuH(this,0)}else(b.questions||[]).forEach(function(e){g.d(e,qx)?tGW(N,g.d(e,qx),h):g.d(e,Mx)&&Tux(N,g.d(e,Mx),h)}); +this.show()}; +ry.prototype.clear=function(){this.api.Y().D("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; +ry.prototype.X=function(C){var b=this;if(this.api.Y().D("supports_multi_step_on_desktop")){var h;if((h=this.conditioningRules)==null?0:h.length){var N;if(C.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(p){return p.questionIndex===b.j})==null)g.Ri(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); +else if(this.conditioningRules.forEach(function(p){if(p.questionIndex===b.j)switch(p.condition){case "CONDITION_ALL_OF":var P;if((P=p.answerIndices)==null?0:P.every(function(e){return C.includes(e)}))N=p.nextQuestionIndex; +break;case "CONDITION_ANY_OF":var c;if((c=p.answerIndices)==null?0:c.some(function(e){return C.includes(e)}))N=p.nextQuestionIndex; +break;default:g.Ri(Error("Expected specified condition in survey conditioning rules."))}}),N!=null)BuH(this,N); +else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.Ri(Error("No conditioning rules, yet survey is multi step. Expected questions.length to be 1.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}};g.S(iQ,aS); +iQ.prototype.init=function(C,b,h){var N=this;aS.prototype.init.call(this,C,b,h);C=b.timeoutSeconds||0;if(typeof C!=="number"||C<0)g.Ri(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+C));else if(b.timeoutCommands)if(b.text)if(b.ctaButton&&g.d(b.ctaButton,g.yM))if(b.brandImage)if(b.backgroundImage&&g.d(b.backgroundImage,rb)&&g.d(b.backgroundImage,rb).landscape){this.layoutId||g.Ri(Error("Missing layoutId for survey interstitial."));IWx(this.interstitial,g.d(b.backgroundImage, +rb).landscape);IWx(this.logoImage,b.brandImage);g.jW(this.text,g.oS(b.text));var p=["ytp-ad-survey-interstitial-action-button"];p.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new Ju(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,p);g.D(this,this.actionButton);this.actionButton.Gi(this.K);this.actionButton.init(Pr("button"),g.d(b.ctaButton,g.yM),h);this.actionButton.show();this.j=new HX(this.api,C*1E3);this.j.subscribe("g",function(){N.transition.hide()}); +g.D(this,this.j);this.S(this.element,"click",function(P){var c=P.target===N.interstitial;P=N.actionButton.element.contains(P.target);if(c||P)if(N.transition.hide(),c)N.api.onAdUxClicked(N.componentType,N.layoutId)}); +this.transition.show(100)}else g.Ri(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.Ri(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.Ri(Error("SurveyTextInterstitialRenderer has no button."));else g.Ri(Error("SurveyTextInterstitialRenderer has no text."));else g.Ri(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; +iQ.prototype.clear=function(){this.hide()}; +iQ.prototype.show=function(){xh6(!0);aS.prototype.show.call(this)}; +iQ.prototype.hide=function(){xh6(!1);aS.prototype.hide.call(this)};g.S(JG,xY);g.k=JG.prototype; +g.k.init=function(C,b){xY.prototype.init.call(this,C,b,{});if(b.durationMilliseconds){if(b.durationMilliseconds<0){g.Ri(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+b.durationMilliseconds));return}this.K=b.durationMilliseconds}else this.K=this.j.HR();var h;if((h=b.previewText)==null||!h.text||g.qp(b.previewText.text))g.Ri(Error("No text is returned for AdPreview."));else{this.W=b.previewText;b.previewText.isTemplated||g.jW(this.N,b.previewText.text);var N; +if(((N=this.api.getVideoData(1))==null?0:N.R0)&&b.previewImage){var p,P;(C=((P=mw(((p=b.previewImage)==null?void 0:p.sources)||[],52,!1))==null?void 0:P.url)||"")&&C.length?(this.previewImage=new g.YY({B:"img",C:"ytp-preview-ad__image",T:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",C),g.D(this,this.previewImage),this.previewImage.Gi(this.element)):g.Ri(Error("Failed to get imageUrl in AdPreview."))}else this.N.classList.add("ytp-preview-ad__text--padding--wide")}}; +g.k.clear=function(){this.hide()}; +g.k.hide=function(){CF(this);xY.prototype.hide.call(this)}; +g.k.show=function(){wK(this);xY.prototype.show.call(this)}; +g.k.P5=function(){this.hide()}; +g.k.TC=function(){if(this.j){var C=this.j.getProgressState();if(C!=null&&C.current)if(C=1E3*C.current,C>=this.K)this.transition.hide();else{var b;if((b=this.W)==null?0:b.isTemplated)if(b=Math.max(0,Math.ceil((this.K-C)/1E3)),b!==this.X){var h,N;(C=(h=this.W)==null?void 0:(N=h.text)==null?void 0:N.replace("{TIME_REMAINING}",String(b)))&&g.jW(this.N,C);this.X=b}}}};g.S(uQ,aS); +uQ.prototype.init=function(C,b){aS.prototype.init.call(this,C,b,{});var h,N;if((C=((N=mw(((h=b.image)==null?void 0:h.sources)||[],w06(b),!0))==null?void 0:N.url)||"")&&C.length){h=this.dO("ytp-ad-avatar");h.src=C;var p,P;if(N=(p=b.interaction)==null?void 0:(P=p.accessibility)==null?void 0:P.label)h.alt=N;switch(b.size){case "AD_AVATAR_SIZE_XXS":this.element.classList.add("ytp-ad-avatar--size-xxs");break;case "AD_AVATAR_SIZE_XS":this.element.classList.add("ytp-ad-avatar--size-xs");break;case "AD_AVATAR_SIZE_S":this.element.classList.add("ytp-ad-avatar--size-s"); +break;case "AD_AVATAR_SIZE_M":this.element.classList.add("ytp-ad-avatar--size-m");break;case "AD_AVATAR_SIZE_L":this.element.classList.add("ytp-ad-avatar--size-l");break;case "AD_AVATAR_SIZE_XL":this.element.classList.add("ytp-ad-avatar--size-xl");break;case "AD_AVATAR_SIZE_RESPONSIVE":this.element.classList.add("ytp-ad-avatar--size-responsive");break;default:this.element.classList.add("ytp-ad-avatar--size-m")}switch(b.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":this.element.classList.add("ytp-ad-avatar--rounded-corner"); +break;default:this.element.classList.add("ytp-ad-avatar--circular")}}else g.Ri(Error("Failed to get imageUrl in AdAvatar."))}; +uQ.prototype.clear=function(){this.hide()}; +uQ.prototype.onClick=function(C){aS.prototype.onClick.call(this,C)};g.S(Rs,aS); +Rs.prototype.init=function(C,b){aS.prototype.init.call(this,C,b,{});var h;C=(h=b.label)==null?void 0:h.content;if((h=C!=null&&!g.qp(C))||b.iconImage){h&&(this.buttonText=new g.YY({B:"span",C:"ytp-ad-button-vm__text",BE:C}),g.D(this,this.buttonText),this.buttonText.Gi(this.element));var N,p,P=((N=b.interaction)==null?0:(p=N.accessibility)==null?0:p.label)||h?C:"";P&&Tq(this.element,P+" This link opens in new tab");nU(this.element);if(b.iconImage){N=void 0;if(b.iconImage){a:{p=b.iconImage;if(p.sources)for(p= +g.z(p.sources),C=p.next();!C.done;C=p.next())if(C=C.value,P=void 0,(P=C.clientResource)==null?0:P.imageName){p=C;break a}p=void 0}if(p){var c;N={iconType:(c=p.clientResource)==null?void 0:c.imageName}}}c=iI(N,!1,this.K);c!=null&&(this.buttonIcon=new g.YY({B:"span",C:"ytp-ad-button-vm__icon",U:[c]}),g.D(this,this.buttonIcon),b.iconLeading?(gQ(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):h?(this.buttonIcon.Gi(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): +(this.buttonIcon.Gi(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(b.style){case "AD_BUTTON_STYLE_TRANSPARENT":this.element.classList.add("ytp-ad-button-vm--style-transparent");break;case "AD_BUTTON_STYLE_FILLED_WHITE":this.element.classList.add("ytp-ad-button-vm--style-filled-white");break;case "AD_BUTTON_STYLE_FILLED":this.element.classList.add(this.j?"ytp-ad-button-vm--style-filled-dark":"ytp-ad-button-vm--style-filled");break;default:this.element.classList.add("ytp-ad-button-vm--style-filled")}switch(b.size){case "AD_BUTTON_SIZE_COMPACT":this.element.classList.add("ytp-ad-button-vm--size-compact"); +break;case "AD_BUTTON_SIZE_LARGE":this.element.classList.add("ytp-ad-button-vm--size-large");break;default:this.element.classList.add("ytp-ad-button-vm--size-default")}}else g.QB(Error("AdButton does not have label or an icon."))}; +Rs.prototype.clear=function(){this.hide()}; +Rs.prototype.onClick=function(C){aS.prototype.onClick.call(this,C)};g.S(C9c,xY);g.k=C9c.prototype; +g.k.init=function(C,b){xY.prototype.init.call(this,C,b,{});this.api.Y().D("enable_larger_flyout_cta_on_desktop")&&(this.element.classList.add("ytp-ad-avatar-lockup-card--large"),this.dO("ytp-ad-avatar-lockup-card__avatar_and_text_container").classList.add("ytp-ad-avatar-lockup-card__avatar_and_text_container--large"),this.headline.element.classList.add("ytp-ad-avatar-lockup-card__headline--large"),this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--large"),this.adButton.element.classList.add("ytp-ad-avatar-lockup-card__button--large"), +this.adAvatar.element.classList.add("ytp-ad-avatar-lockup-card__ad_avatar--large"),gQ(this.dO("ytp-ad-avatar-lockup-card__avatar_and_text_container"),this.adAvatar.element,0));if(C=g.d(b.avatar,dy)){var h=b.headline;if(h){var N=b.description;if(N){var p=g.d(b.button,Ef);p?(this.adAvatar.init(Pr("ad-avatar"),C),this.headline.init(Pr("ad-simple-attributed-string"),new AM(h)),this.description.init(Pr("ad-simple-attributed-string"),new AM(N)),h.content&&h.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"), +this.adButton.init(Pr("ad-button"),p),this.startMilliseconds=b.startMs||0,this.api.mQ()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.F9.bind(this)),wK(this)):g.Ri(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Ri(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Ri(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.Ri(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; +g.k.TC=function(){if(this.j){var C=this.j.getProgressState();C&&C.current&&1E3*C.current>=this.startMilliseconds&&(CF(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; +g.k.P5=function(){this.clear()}; +g.k.onClick=function(C){this.api.pauseVideo();xY.prototype.onClick.call(this,C)}; +g.k.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.F9.bind(this))}; +g.k.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();xY.prototype.show.call(this)}; +g.k.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();xY.prototype.hide.call(this)}; +g.k.F9=function(C){C==="hidden"?this.show():this.hide()};g.S(QI,aS);g.k=QI.prototype; +g.k.init=function(C,b){aS.prototype.init.call(this,C,b,{});if(!b.label||g.qp(b.label))g.Ri(Error("No label is returned for SkipAdButton."));else if(g.jW(this.X,b.label),C=iI({iconType:"SKIP_NEXT_NEW"}),C==null)g.Ri(Error("Unable to retrieve icon for SkipAdButton"));else if(this.N=new g.YY({B:"span",C:"ytp-skip-ad-button__icon",U:[C]}),g.D(this,this.N),this.N.Gi(this.element),this.api.Y().experiments.Fo("enable_skip_to_next_messaging")&&(b=g.w2(b.targetId)))this.K=!0,this.element.setAttribute("data-tooltip-target-id",b), +this.element.setAttribute("data-tooltip-target-fixed","")}; +g.k.onClick=function(C){C&&C.preventDefault();var b,h;wGx(C,{contentCpn:(h=(b=this.api.getVideoData(1))==null?void 0:b.clientPlaybackNonce)!=null?h:""})===0?this.api.LO("onAbnormalityDetected"):(aS.prototype.onClick.call(this,C),this.api.LO("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; +g.k.clear=function(){this.j.reset();this.hide()}; +g.k.hide=function(){aS.prototype.hide.call(this)}; +g.k.show=function(){this.j.start();aS.prototype.show.call(this);this.K&&this.api.Y().experiments.Fo("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.S(bmK,xY);g.k=bmK.prototype; +g.k.init=function(C,b){xY.prototype.init.call(this,C,b,{});C=g.d(b.preskipState,mpj);if(this.X||!this.api.Y().experiments.Fo("disable_ad_preview_for_instream_ads")){if(!C){g.Ri(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}var h;(h=this.K)==null||h.init(Pr("preview-ad"),C);(h=this.K)!=null&&(h.transition.show(100),h.show())}(h=g.d(b.skippableState,Aod))?(b.skipOffsetMilliseconds!=null?this.skipOffsetMilliseconds=b.skipOffsetMilliseconds:(g.QB(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds= +5E3),this.N.init(Pr("skip-button"),h),this.show()):g.Ri(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; +g.k.show=function(){wK(this);xY.prototype.show.call(this)}; +g.k.hide=function(){!this.isSkippable&&this.K?this.K.hide():this.N&&this.N.hide();CF(this);xY.prototype.hide.call(this)}; +g.k.clear=function(){var C;(C=this.K)==null||C.clear();this.N&&this.N.clear();CF(this);xY.prototype.hide.call(this)}; +g.k.P5=function(){this.hide()}; +g.k.TC=function(){if(1E3*this.j.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var C;(C=this.K)!=null&&C.transition.hide();(C=this.N)!=null&&(C.transition.show(),C.show())}};g.S(Uf,aS); +Uf.prototype.init=function(C,b){aS.prototype.init.call(this,C,b,{});if(b.label){var h;((h=b.label)==null?0:h.content)&&!g.qp(b.label.content)&&(this.linkText=new g.YY({B:"span",C:"ytp-visit-advertiser-link__text",BE:b.label.content}),g.D(this,this.linkText),this.linkText.Gi(this.element));var N,p;if((N=b.interaction)==null?0:(p=N.accessibility)==null?0:p.label)Tq(this.element,b.interaction.accessibility.label+" This link opens in new tab");else{var P;((P=b.label)==null?0:P.content)&&!g.qp(b.label.content)&&Tq(this.element, +b.label.content+" This link opens in new tab")}nU(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.Ri(Error("No label found in VisitAdvertiserLink."))}; +Uf.prototype.onClick=function(C){aS.prototype.onClick.call(this,C);this.api.onAdUxClicked(this.componentType,this.layoutId)}; +Uf.prototype.clear=function(){this.hide()};g.S(XS,aS); +XS.prototype.init=function(C,b,h,N){aS.prototype.init.call(this,C,b,{});if(b.skipOrPreview){h=b.skipOrPreview;C=g.d(h,yod);h=g.d(h,mpj);var p,P=this.api.Y().D("clean_player_style_fix_on_web")&&((p=this.api.getVideoData())==null?void 0:p.isDaiEnabled());C?(this.mT=new bmK(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,this.K),g.D(this,this.mT),this.mT.Gi(this.V),this.mT.init(Pr("skip-ad"),C)):!h||this.api.Y().experiments.Fo("disable_ad_preview_for_instream_ads")&&!P||(this.X=new JG(this.api, +this.layoutId,this.interactionLoggingClientData,this.Sp,this.K,1),g.D(this,this.X),this.X.Gi(this.V),this.X.init(Pr("ad-preview"),h),p=this.X,p.transition.show(100),p.show());if(p=g.d(b.skipOrPreview,yod))var c=p.skipOffsetMilliseconds}b.playerAdCard&&(p=g.d(b.playerAdCard,fUe))&&(this.playerAdCard=new C9c(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,this.K),g.D(this,this.playerAdCard),this.playerAdCard.Gi(this.sX),this.playerAdCard.init(Pr("ad-avatar-lockup-card"),p));p=this.api.Y().D("disable_ad_duration_remaining_for_instream_video_ads")|| +b.adPodIndex!==void 0;b.adBadgeRenderer&&((C=g.d(b.adBadgeRenderer,Wy))?(this.N=new i1(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,p),g.D(this,this.N),this.N.Gi(this.j),this.N.init(Pr("ad-badge"),C)):g.Ri(Error("AdBadgeViewModel is not found in player overlay layout.")));b.adPodIndex&&(C=g.d(b.adPodIndex,HdC))&&(this.adPodIndex=new JM(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,g.d(b.skipOrPreview,yod)===void 0),g.D(this,this.adPodIndex),this.adPodIndex.Gi(this.j), +this.adPodIndex.init(Pr("ad-pod-index"),C));b.adInfoRenderer&&(C=g.d(b.adInfoRenderer,fG))&&(this.adInfoButton=new TY(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,this.element,void 0,p),g.D(this,this.adInfoButton),this.api.Y().D("enable_ad_pod_index_autohide")&&this.N!==void 0?this.j.insertBefore(this.adInfoButton.element,this.N.element.nextSibling):this.adInfoButton.Gi(this.j),this.adInfoButton.init(Pr("ad-info-hover-text-button"),C,this.macros));var e;C=this.api.Y().D("clean_player_style_fix_on_web")&& +((e=this.api.getVideoData())==null?void 0:e.isDaiEnabled());b.adDurationRemaining&&(!p||C)&&(e=g.d(b.adDurationRemaining,Lhd))&&(this.adDurationRemaining=new mM(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,this.K,N.videoAdDurationSeconds,p),g.D(this,this.adDurationRemaining),p&&this.adPodIndex!==void 0?this.j.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adInfoButton!==void 0?p?this.j.insertBefore(this.adDurationRemaining.element,this.adInfoButton.element.nextSibling): +this.j.insertBefore(this.adDurationRemaining.element,this.adInfoButton.element):this.adDurationRemaining.Gi(this.j),this.adDurationRemaining.init(Pr("ad-duration-remaining"),e,this.macros),p&&this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));b.visitAdvertiserLink&&(N=g.d(b.visitAdvertiserLink,idd))&&(this.visitAdvertiserLink=new Uf(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp),g.D(this,this.visitAdvertiserLink),this.visitAdvertiserLink.Gi(this.j), +this.visitAdvertiserLink.init(Pr("visit-advertiser-link"),N));b.adDisclosureBanner&&(b=g.d(b.adDisclosureBanner,zEe))&&(this.adDisclosureBanner=new u1(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp),g.D(this,this.adDisclosureBanner),this.adDisclosureBanner.Gi(this.N2),this.adDisclosureBanner.init(Pr("ad-disclosure-banner"),b));this.api.Y().D("show_preskip_progress_bar_for_skippable_ads")&&(this.W=new U8(this.api,this.K,c,p),g.D(this,this.W),g.qC(this.api,this.W.element,4));this.show()}; +XS.prototype.clear=function(){this.hide()};g.S(h$S,aS);g.k=h$S.prototype; +g.k.init=function(C,b){aS.prototype.init.call(this,C,b,{});if(b!=null&&b.title)if(C=b.title)if(this.headline.init(Pr("ad-simple-attributed-string"),new AM(C)),C=g.d(b.moreInfoButton,Ef)){if(this.moreInfoButton.init(Pr("ad-button"),C),b.descriptions)b.descriptions.length>0&&(C=b.descriptions[0])&&(this.j=new rG(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp),g.D(this,this.j),this.j.Gi(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.j.init(Pr("ad-simple-attributed-string"), +new AM(C))),b.descriptions.length>1&&(b=b.descriptions[1])&&(this.K=new rG(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp),g.D(this,this.K),this.K.Gi(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.K.init(Pr("ad-simple-attributed-string"),new AM(b)))}else g.Ri(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.Ri(Error("No headline found in AdGridCardText."));else g.Ri(Error("No headline found in AdGridCardText."))}; +g.k.onClick=function(C){aS.prototype.onClick.call(this,C);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; +g.k.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var C;(C=this.j)==null||C.clear();var b;(b=this.K)==null||b.clear()}; +g.k.hide=function(){this.headline.hide();this.moreInfoButton.hide();var C;(C=this.j)==null||C.hide();var b;(b=this.K)==null||b.hide();aS.prototype.hide.call(this)}; +g.k.show=function(){aS.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var C;(C=this.j)==null||C.show();var b;(b=this.K)==null||b.show()};g.S(Kz,aS);Kz.prototype.init=function(C,b){aS.prototype.init.call(this,C,b,{});if(b!=null&&b.gridCards)if(b.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.Ri(Error("Only single column style is currently supported in AdGridCardCollection."));else for(C=g.z(b.gridCards),b=C.next();!b.done;b=C.next()){if(b=g.d(b.value,qEC)){var h=new h$S(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp);g.D(this,h);h.Gi(this.element);h.init(Pr("ad-grid-card-text"),b);this.j.push(h)}}else g.Ri(Error("No grid cards found in AdGridCardCollection."))}; +Kz.prototype.show=function(){for(var C=g.z(this.j),b=C.next();!b.done;b=C.next())b.value.show();aS.prototype.show.call(this)}; +Kz.prototype.clear=function(){this.hide();for(var C=g.z(this.j),b=C.next();!b.done;b=C.next())b.value.clear()}; +Kz.prototype.hide=function(){for(var C=g.z(this.j),b=C.next();!b.done;b=C.next())b.value.hide();aS.prototype.hide.call(this)};g.S(sf,xY);g.k=sf.prototype;g.k.init=function(C,b,h,N,p){p=p===void 0?0:p;xY.prototype.init.call(this,C,b,h,N);this.playerProgressOffsetMs=p;wK(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.Nx.bind(this));this.api.addEventListener("resize",this.L3.bind(this));this.api.mQ()?(this.K=!0,this.api.TI(!0),this.show()):this.hide()}; +g.k.TC=function(){if(this.j){var C=this.j.getProgressState();C&&C.current&&!this.K&&1E3*C.current>=this.playerProgressOffsetMs&&(this.K=!0,this.api.TI(!0),this.show())}}; +g.k.P5=function(){this.K&&this.api.TI(!1);this.hide()}; +g.k.clear=function(){this.api.TI(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.Nx.bind(this));this.api.removeEventListener("resize",this.L3.bind(this));CF(this);this.hide()}; +g.k.hide=function(){NSU(!1);xY.prototype.hide.call(this)}; +g.k.show=function(){NSU(!0);xY.prototype.show.call(this)};g.S(gKW,sf);g.k=gKW.prototype; +g.k.init=function(C,b,h,N){if(b!=null&&b.adGridCardCollection)if(b!=null&&b.adButton){var p=Number(b.playerProgressOffsetMs||"0");isNaN(p)?sf.prototype.init.call(this,C,b,h,N):sf.prototype.init.call(this,C,b,h,N,p);C=b.headline;h=g.d(b.adAvatar,dy);C&&h?(this.headline=new rG(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp),g.D(this,this.headline),this.headline.Gi(this.dO("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(Pr("ad-simple-attributed-string"),new AM(C)), +this.adAvatar=new uQ(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp),g.D(this,this.adAvatar),this.adAvatar.Gi(this.dO("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(Pr("ad-avatar"),h)):this.X.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");C=g.d(b.adGridCardCollection,MDj);this.adGridCardCollection.init(Pr("ad-grid-card-collection"),C);b=g.d(b.adButton,Ef);this.adButton.init(Pr("ad-button"),b); +this.hide()}else g.Ri(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.Ri(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; +g.k.onClick=function(C){(this.adButton&&g.PP(this.adButton.element,C.target)||this.adAvatar&&g.PP(this.adAvatar.element,C.target))&&this.api.pauseVideo();sf.prototype.onClick.call(this,C);this.api.onAdUxClicked(this.componentType,this.layoutId)}; +g.k.L3=function(){}; +g.k.clear=function(){this.hide();var C;(C=this.headline)==null||C.clear();var b;(b=this.adAvatar)==null||b.clear();this.adGridCardCollection.clear();this.adButton.clear();sf.prototype.clear.call(this)}; +g.k.show=function(){var C;(C=this.headline)==null||C.show();var b;(b=this.adAvatar)==null||b.show();this.adGridCardCollection.show();this.adButton.show();sf.prototype.show.call(this)}; +g.k.hide=function(){var C;(C=this.headline)==null||C.hide();var b;(b=this.adAvatar)==null||b.hide();this.adGridCardCollection.hide();this.adButton.hide();sf.prototype.hide.call(this)}; +g.k.Nx=function(C){C==="transitioning"?(this.N.classList.remove("ytp-ad-underlay-clickable"),this.show()):C==="visible"?this.N.classList.add("ytp-ad-underlay-clickable"):C==="hidden"&&(this.hide(),this.N.classList.remove("ytp-ad-underlay-clickable"))};g.S(Of,aS); +Of.prototype.init=function(C,b){aS.prototype.init.call(this,C,b,{});if(b.attributes===void 0)g.Ri(Error("No attributes found in AdDetailsLineViewModel."));else if(b.style===void 0)g.Ri(Error("No style found in AdDetailsLineViewModel."));else{C=g.z(b.attributes);for(var h=C.next();!h.done;h=C.next())if(h=h.value,h.text!==void 0){h=h.text;var N=b.style,p=new rG(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp);g.D(this,p);p.Gi(this.element);a:switch(N){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":N="ytp-ad-details-line__text--style-responsive"; +break a;default:N="ytp-ad-details-line__text--style-standard"}p.element.classList.add(N);p.init(Pr("ad-simple-attributed-string"),new AM(h));this.j.push(p)}this.show()}}; +Of.prototype.show=function(){this.j.forEach(function(C){C.show()}); +aS.prototype.show.call(this)}; +Of.prototype.clear=function(){this.hide()}; +Of.prototype.hide=function(){this.j.forEach(function(C){C.hide()}); +aS.prototype.hide.call(this)};g.S(vy,aS);vy.prototype.init=function(C,b){aS.prototype.init.call(this,C,b,{});var h,N;(C=((N=mw(((h=b.image)==null?void 0:h.sources)||[]))==null?void 0:N.url)||"")&&C.length?(h=this.dO("ytp-image-background-image"),g.Zv(h,"backgroundImage","url("+C+")"),b.blurLevel!==void 0&&g.Zv(h,"filter","blur("+b.blurLevel+"px)"),b.gradient!==void 0&&(b=new g.n({B:"div",J4:["ytp-image-background--gradient-vertical"]}),g.D(this,b),b.Gi(this.element)),this.show()):g.Ri(Error("Failed to get imageUrl in ImageBackground."))}; +vy.prototype.clear=function(){this.hide()};g.S(p8l,xY);g.k=p8l.prototype;g.k.init=function(C,b){xY.prototype.init.call(this,C,b,{});g.Zv(this.N,"stroke-dasharray","0 "+this.K);this.show()}; +g.k.clear=function(){this.hide()}; +g.k.hide=function(){CF(this);xY.prototype.hide.call(this)}; +g.k.show=function(){wK(this);xY.prototype.show.call(this)}; +g.k.P5=function(){this.hide()}; +g.k.TC=function(){if(this.j){var C=this.j.getProgressState();C!=null&&C.current!=null&&g.Zv(this.N,"stroke-dasharray",C.current/C.seekableEnd*this.K+" "+this.K)}};g.S(D4,aS); +D4.prototype.init=function(C,b){aS.prototype.init.call(this,C,b,{});if(j5W(b)){this.adAvatar=new uQ(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp);g.D(this,this.adAvatar);this.adAvatar.Gi(this.dO("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(Pr("ad-avatar"),g.d(b.adAvatar,dy));this.headline=new rG(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp);g.D(this,this.headline);this.headline.Gi(this.dO("ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"));this.headline.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline"); +this.headline.init(Pr("ad-simple-attributed-string"),new AM(b.headline));if(C=g.d(b.adDetailsLine,$pC))this.detailsLine=new Of(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp),g.D(this,this.detailsLine),this.detailsLine.Gi(this.dO("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(Pr("ad-details-line"),C);this.adButton=new Rs(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,!0);g.D(this,this.adButton); +this.adButton.Gi(this.dO("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(Pr("ad-button"),g.d(b.adButton,Ef));C=this.api.D("disable_ad_preview_for_instream_ads");this.adBadge=new i1(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,C);g.D(this,this.adBadge);this.adBadge.Gi(this.X);this.adBadge.init(Pr("ad-badge"),g.d(b.adBadge,Wy));this.adInfoButton=new TY(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp,this.element, +void 0,C);g.D(this,this.adInfoButton);this.adInfoButton.Gi(this.X);this.adInfoButton.init(Pr("ad-info-hover-text-button"),g.d(b.adInfoRenderer,fG),this.macros);if(C=g.d(b.skipAdButton,Aod))this.skipAdButton=new QI(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp),g.D(this,this.skipAdButton),this.skipAdButton.Gi(this.element),this.skipAdButton.init(Pr("skip-button"),C);this.K=new Vt(b.durationMilliseconds);g.D(this,this.K);if(C=g.d(b.countdownViewModel,roD))this.j=new p8l(this.api, +this.layoutId,this.interactionLoggingClientData,this.Sp,this.K),g.D(this,this.j),this.j.Gi(this.dO("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.j.init(Pr("timed-pie-countdown"),C);if(b=g.d(b.imageBackground,VDE))this.imageBackground=new vy(this.api,this.layoutId,this.interactionLoggingClientData,this.Sp),g.D(this,this.imageBackground),this.imageBackground.Gi(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"), +this.imageBackground.init(Pr("image-background"),b);this.show();this.element.focus()}}; +D4.prototype.clear=function(){g.rU(this.N);this.hide()}; +D4.prototype.show=function(){P9V(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();aS.prototype.show.call(this)}; +D4.prototype.hide=function(){P9V(!1);this.adAvatar&&this.adAvatar.hide();this.headline&&this.headline.hide();this.adButton&&this.adButton.hide();this.detailsLine&&this.detailsLine.hide();this.adBadge&&this.adBadge.hide();this.adInfoButton&&this.adInfoButton.hide();this.skipAdButton&&this.skipAdButton.hide();this.j&&this.j.hide();this.imageBackground&&this.imageBackground.hide();aS.prototype.hide.call(this)};var pJe="ad-attribution-bar ad-channel-thumbnail advertiser-name ad-preview ad-title skip-button visit-advertiser".split(" ").concat("shopping-companion action-companion image-companion ads-engagement-panel ads-engagement-panel-layout banner-image top-banner-image-text-icon-buttoned".split(" "));g.S(nz,dK); +nz.prototype.X=function(C){var b=C.id,h=C.content,N=h.componentType;if(!pJe.includes(N))switch(C.actionType){case 1:C=this.api;var p=this.Sp,P=h.layoutId,c=h.interactionLoggingClientData,e=h instanceof tk?h.Rd:!1,L=h instanceof tk||h instanceof zv?h.Tq:!1;c=c===void 0?{}:c;e=e===void 0?!1:e;L=L===void 0?!1:L;switch(N){case "invideo-overlay":C=new MGS(C,P,c,p);break;case "player-overlay":C=new X_(C,P,c,p,new bV(C),L);break;case "player-overlay-layout":C=new XS(C,P,c,p,new bV(C));break;case "survey":C= +new ry(C,P,c,p);break;case "ad-action-interstitial":C=new StU(C,P,c,p,e,L);break;case "video-interstitial-buttoned-centered":C=new D4(C,P,c,p);break;case "survey-interstitial":C=new iQ(C,P,c,p);break;case "ad-message":C=new Jf6(C,P,c,p,new bV(C,1));break;case "player-underlay":C=new R0W(C,P,c,p);break;case "display-underlay-text-grid-cards":C=new gKW(C,P,c,p,new bV(C));break;default:C=null}if(!C){g.QB(Error("No UI component returned from ComponentFactory for type: "+N));break}g.mg(this.K,b)?g.QB(Error("Ad UI component already registered: "+ +b)):this.K[b]=C;C.bind(h);h instanceof EP?this.N?this.N.append(C.fp):g.QB(Error("Underlay view was not created but UnderlayRenderer was created")):this.G.append(C.fp);break;case 2:b=ct1(this,C);if(b==null)break;b.bind(h);break;case 3:h=ct1(this,C),h!=null&&(g.eD(h),g.mg(this.K,b)?(h=this.K,b in h&&delete h[b]):g.QB(Error("Ad UI component does not exist: "+b)))}}; +nz.prototype.wO=function(){g.Ld(Object.values(this.K));this.K={};dK.prototype.wO.call(this)};g.S(kUl,g.qK);g.k=kUl.prototype;g.k.create=function(){try{e$c(this),this.load(),this.created=!0,e$c(this)}catch(C){ZK(C instanceof Error?C:String(C))}}; +g.k.load=function(){try{Y7W(this)}finally{xF(Hy(this.j).cT)&&this.player.HL("ad",1)}}; +g.k.destroy=function(){var C=this.player.getVideoData(1);this.j.j.gK.g8(C&&C.clientPlaybackNonce||"");this.unload();this.created=!1}; +g.k.unload=function(){g.qK.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(b){ZK(b instanceof Error?b:String(b))}if(this.K!=null){var C=this.K;this.K=null;C.dispose()}this.N.reset()}; +g.k.Aj=function(){return!1}; +g.k.getAdState=function(){return-1}; +g.k.getOptions=function(){return Object.values(gAp)}; +g.k.X8=function(C,b){b=b===void 0?{}:b;switch(C){case "replaceUrlMacros":return C=b,C.url?(b=rSK(this.player),Object.assign(b,C.Wp$),C=g.up(C.url,b)):C=null,C;case "onAboutThisAdPopupClosed":this.pT(b);break;case "executeCommand":C=b;C.command&&C.layoutId&&this.executeCommand(C);break;default:return null}}; +g.k.Es=function(C){var b;return!((b=this.j.j.kt)==null||!b.get().Es(C))}; +g.k.pT=function(C){C.isMuted&&k_l(Hy(this.j).gH,Hy(this.j).j2,C.layoutId);this.X3&&this.X3.pT()}; +g.k.executeCommand=function(C){Hy(this.j).Sp.executeCommand(C.command,C.layoutId)};g.Ol("yt.player.Application.create",g.SA.create);g.Ol("yt.player.Application.createAlternate",g.SA.create);s1o(rr(),Nwj);var PBh=g.Dx("ytcsi.tick");PBh&&PBh("pe");g.MK("ad",kUl);g.S(g.By,g.O);g.By.prototype.start=function(C,b,h){this.config={from:C,jT:b,duration:h,startTime:(0,g.Ai)()};this.next()}; +g.By.prototype.stop=function(){this.delay.stop();this.config=void 0}; +g.By.prototype.next=function(){if(this.config){var C=this.config,b=C.from,h=C.jT,N=C.duration;C=C.startTime;var p=(0,g.Ai)()-C;C=this.j;N=tux(C,p/N);if(N==0)C=C.J;else if(N==1)C=C.L;else{p=LR(C.J,C.G,N);var P=LR(C.G,C.W,N);C=LR(C.W,C.L,N);p=LR(p,P,N);P=LR(P,C,N);C=LR(p,P,N)}C=g.kv(C,0,1);this.callback(b+(h-b)*C);C<1&&this.delay.start()}};g.S(g.Is,g.n);g.k=g.Is.prototype;g.k.hasSuggestions=function(){return this.suggestionData.length>0}; +g.k.aC=function(){this.K&&this.scrollTo(this.scrollPosition-this.containerWidth)}; +g.k.show=function(){g.n.prototype.show.call(this);S7H(this)}; +g.k.Dw=function(){this.K&&this.scrollTo(this.scrollPosition+this.containerWidth)}; +g.k.Fn=function(){this.eC(this.api.Ti().getPlayerSize())}; +g.k.eC=function(C){var b=this.api.isEmbedsShortsMode()?.5625:16/9,h=this.api.zO();C=C.width-(h?112:58);h=Math.ceil(C/(h?320:192));var N=(C-h*8)/h;b=Math.floor(N/b);for(var p=g.z(this.j),P=p.next();!P.done;P=p.next())P=P.value.dO("ytp-suggestion-image"),P.style.width=N+"px",P.style.height=b+"px";this.suggestions.element.style.height=b+"px";this.X=N;this.L=b;this.containerWidth=C;this.columns=h;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.x$(this)}; +g.k.onVideoDataChange=function(){var C=this.api.Y(),b=this.api.getVideoData();this.W=b.jS?!1:C.X;this.suggestionData=b.suggestions?g.er(b.suggestions,function(h){return h&&!h.playlistId}):[]; +z$S(this);b.jS?this.title.update({title:g.ok("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:b.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"More shorts":"More videos"})}; +g.k.scrollTo=function(C){C=g.kv(C,this.containerWidth-this.suggestionData.length*(this.X+8),0);this.J.start(this.scrollPosition,C,1E3);this.scrollPosition=C;g.x$(this);S7H(this)};})(_yt_player);